diff options
35 files changed, 5837 insertions, 4267 deletions
@@ -1,15 +1,12 @@ all: make webrings - make quotes make references - make migration make site make admin make migration generators: make webrings - make quotes make references webrings: @@ -20,17 +17,14 @@ webrings: < generators/openring/template.html \ > generators/hugo/themes/tdro/layouts/partials/webrings/openring.html -quotes: - strfile generators/fortune/quotes.fortune - export DENO_DIR := generators/exoference/vendor references: deno compile \ - --allow-net \ - --no-check \ - --output generators/exoference/exoference \ - generators/exoference/main.ts + --allow-net \ + --no-check \ + --output generators/exoference/exoference \ + generators/exoference/main.ts find generators/hugo/content/posts -type f -name "*.md" -exec basename --suffix '.md' {} \; \ | while read -r file; do path="generators/hugo/themes/tdro/layouts/partials/references/$$file.html" \ && printf 'Gathering references for %s\n' "$$file" && [ ! -e "$$path" ] \ diff --git a/app/Routes.php b/app/Routes.php index 28bcdc0..40320c7 100644 --- a/app/Routes.php +++ b/app/Routes.php @@ -1,7 +1,11 @@ <?php + +$router = new Router; + /** * Public routes */ + $router->get('', '../app/controllers/index.controller.php'); $router->get('contact', '../app/controllers/contact.controller.php'); $router->get('resume', '../app/controllers/resume.controller.php'); @@ -17,7 +21,8 @@ $router->post('upload', '../app/controllers/upload.controller.php'); $router->post('contact', '../app/controllers/contact.controller.php'); /** - * Api routes + * API routes */ + $router->post('api/v1/thumbnails', '../app/controllers/api/thumbnails.controller.php'); $router->post('api/v1/cache', '../app/controllers/api/cache.controller.php'); diff --git a/app/controllers/upload.controller.php b/app/controllers/upload.controller.php index 5a28370..c1b2b8f 100644 --- a/app/controllers/upload.controller.php +++ b/app/controllers/upload.controller.php @@ -7,9 +7,9 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') { if ($uploadedFile) { move_uploaded_file( $uploadedFile['tmp_name'], 'uploads/' - . uniqid() + . bin2hex(random_bytes(14)) . '-' - . $uploadedFile['name'] + . urlencode($uploadedFile['name']) ); } diff --git a/app/model/Fortune.php b/app/model/Fortune.php new file mode 100644 index 0000000..a073d98 --- /dev/null +++ b/app/model/Fortune.php @@ -0,0 +1,14 @@ +<?php + +class Fortune +{ + public function random(): string + { + return $this->quotes()[array_rand($this->quotes())]; + } + + public function quotes(): array + { + return include $_SERVER['DOCUMENT_ROOT'] . '/..' . '/generators/fortune/fortune.quotes'; + } +} diff --git a/app/views/index.view.php b/app/views/index.view.php index bef54f5..8bfa2c1 100644 --- a/app/views/index.view.php +++ b/app/views/index.view.php @@ -8,7 +8,7 @@ <home-page> <article> - <h1>Web <em>Developer </em></h1> + <h1>Web <em>Developer</em></h1> <h2>In it for the long haul</h2> @@ -30,7 +30,7 @@ <fortune-quote> <margin-note left> <b>Random Quote</b> - <?php echo shell_exec('fortune ' . dirname($_SERVER['DOCUMENT_ROOT']) . '/generators/fortune/quotes.fortune'); ?> + <?php echo (new Fortune)->random(); ?> </margin-note> </fortune-quote> diff --git a/app/views/partials/footer.php b/app/views/partials/footer.php index 0a7b37b..fe9d9d3 100644 --- a/app/views/partials/footer.php +++ b/app/views/partials/footer.php @@ -35,5 +35,3 @@ </p> </footer> - -<script src="/js/app.js"></script> diff --git a/app/views/snippets/stylesheets.php b/app/views/partials/head.css.php index 7eb1c06..62b2ad9 100644 --- a/app/views/snippets/stylesheets.php +++ b/app/views/partials/head.css.php @@ -8,7 +8,7 @@ <style> article-comments, [href="#isso-thread"], - article-meta-top aside:nth-child(2) svg:first-child { + article header aside:nth-child(2) svg:first-child { display: none; } </style> diff --git a/app/views/snippets/rss.php b/app/views/partials/head.discovery.php index a37df92..a37df92 100644 --- a/app/views/snippets/rss.php +++ b/app/views/partials/head.discovery.php diff --git a/app/views/partials/head.js.php b/app/views/partials/head.js.php new file mode 100644 index 0000000..f1ccc3a --- /dev/null +++ b/app/views/partials/head.js.php @@ -0,0 +1 @@ +<script src="/js/app.js"></script> diff --git a/app/views/snippets/favicons.php b/app/views/partials/head.manifests.php index f052ee5..f052ee5 100644 --- a/app/views/snippets/favicons.php +++ b/app/views/partials/head.manifests.php diff --git a/app/views/partials/head.meta.php b/app/views/partials/head.meta.php new file mode 100644 index 0000000..9f92e77 --- /dev/null +++ b/app/views/partials/head.meta.php @@ -0,0 +1,11 @@ +<title> + <?php echo $title = $title ?? 'Portfolio - '; ?> + Thedro Neely +</title> + +<meta charset="utf-8"> +<meta name="robots" content="index,follow"> +<meta name="author" content="Thedro Neely"> +<meta name="description" content="Thedro's Portfolio Website"> +<meta name="keywords" content="Thedro,Neely,Portfolio,Website"> +<meta name="viewport" content="width=device-width, initial-scale=1"> diff --git a/app/views/partials/header.error.php b/app/views/partials/header.error.php deleted file mode 100644 index 5e11869..0000000 --- a/app/views/partials/header.error.php +++ /dev/null @@ -1,5 +0,0 @@ -<?php require $_SERVER['DOCUMENT_ROOT'] . '/..' . '/bootstrap/Bootstrap.php'; ?> - -<?php require $_SERVER['DOCUMENT_ROOT'] . '/..' . '/app/views/partials/header.php'; ?> - -<?php require $_SERVER['DOCUMENT_ROOT'] . '/..' . '/app/views/partials/navigator.php'; ?> diff --git a/app/views/partials/header.php b/app/views/partials/header.php index e5439be..c52ca19 100644 --- a/app/views/partials/header.php +++ b/app/views/partials/header.php @@ -1,9 +1,15 @@ <!DOCTYPE html> -<html lang="en-us" itemscope itemtype="http://schema.org/WebPage"> +<html + itemscope="" + itemtype="http://schema.org/WebPage" + lang="en-us" +> <head> -<title><?php echo $title = $title ?? 'Portfolio - '; ?>Thedro Neely</title> +<title> + <?php echo $title = $title ?? 'Portfolio - '; ?>Thedro Neely +</title> <meta charset="utf-8"> <meta name="robots" content="index,follow"> @@ -12,10 +18,9 @@ <meta name="keywords" content="Thedro,Neely,Portfolio,Website"> <meta name="viewport" content="width=device-width, initial-scale=1"> -<?php require $_SERVER['DOCUMENT_ROOT'] . '/..' . '/app/views/snippets/rss.php'; ?> - -<?php require $_SERVER['DOCUMENT_ROOT'] . '/..' . '/app/views/snippets/favicons.php'; ?> - -<?php require $_SERVER['DOCUMENT_ROOT'] . '/..' . '/app/views/snippets/stylesheets.php'; ?> +<?php require $_SERVER['DOCUMENT_ROOT'] . '/..' . '/app/views/partials/head.discovery.php'; ?> +<?php require $_SERVER['DOCUMENT_ROOT'] . '/..' . '/app/views/partials/head.manifests.php'; ?> +<?php require $_SERVER['DOCUMENT_ROOT'] . '/..' . '/app/views/partials/head.css.php'; ?> +<?php require $_SERVER['DOCUMENT_ROOT'] . '/..' . '/app/views/partials/head.js.php'; ?> </head> diff --git a/app/views/partials/header.posts.php b/app/views/partials/header.posts.php index d98d3c4..a473e24 100644 --- a/app/views/partials/header.posts.php +++ b/app/views/partials/header.posts.php @@ -1,6 +1,7 @@ <?php require $_SERVER['DOCUMENT_ROOT'] . '/..' . '/bootstrap/Bootstrap.php'; -require $_SERVER['DOCUMENT_ROOT'] . '/..' . '/app/views/snippets/rss.php'; -require $_SERVER['DOCUMENT_ROOT'] . '/..' . '/app/views/snippets/favicons.php'; -require $_SERVER['DOCUMENT_ROOT'] . '/..' . '/app/views/snippets/stylesheets.php'; +require $_SERVER['DOCUMENT_ROOT'] . '/..' . '/app/views/partials/head.discovery.php'; +require $_SERVER['DOCUMENT_ROOT'] . '/..' . '/app/views/partials/head.manifests.php'; +require $_SERVER['DOCUMENT_ROOT'] . '/..' . '/app/views/partials/head.css.php'; +require $_SERVER['DOCUMENT_ROOT'] . '/..' . '/app/views/partials/head.js.php'; diff --git a/app/views/partials/header.resume.php b/app/views/partials/header.resume.php new file mode 100644 index 0000000..92c3a41 --- /dev/null +++ b/app/views/partials/header.resume.php @@ -0,0 +1,22 @@ +<!DOCTYPE html> +<html + data-page="resume" + lang="en-us" +> + +<head> + +<title>Resume - Thedro Neely</title> + +<meta charset="utf-8"> +<meta name="description" content="Thedro's Web Development Resume"> +<meta name="keywords" content="Thedro,Neely,Portfolio,Website,Resume"> +<meta name="author" content="Thedro Neely"> +<meta name="viewport" content="width=device-width, initial-scale=1"> +<meta name="robots" content="index,follow"> + +<?php require $_SERVER['DOCUMENT_ROOT'] . '/..' . '/app/views/partials/head.discovery.php'; ?> +<?php require $_SERVER['DOCUMENT_ROOT'] . '/..' . '/app/views/partials/head.manifests.php'; ?> +<?php require $_SERVER['DOCUMENT_ROOT'] . '/..' . '/app/views/partials/head.css.php'; ?> + +</head> diff --git a/app/views/partials/header.upload.php b/app/views/partials/header.upload.php new file mode 100644 index 0000000..3710280 --- /dev/null +++ b/app/views/partials/header.upload.php @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<html + lang="en-us" + itemscope="" + itemtype="http://schema.org/WebPage" +> + +<head> + +<?php require $_SERVER['DOCUMENT_ROOT'] . '/..' . '/app/views/partials/head.meta.php'; ?> +<?php require $_SERVER['DOCUMENT_ROOT'] . '/..' . '/app/views/partials/head.discovery.php'; ?> +<?php require $_SERVER['DOCUMENT_ROOT'] . '/..' . '/app/views/partials/head.manifests.php'; ?> +<?php require $_SERVER['DOCUMENT_ROOT'] . '/..' . '/app/views/partials/head.css.php'; ?> +<?php require $_SERVER['DOCUMENT_ROOT'] . '/..' . '/app/views/partials/head.js.php'; ?> + +<script type="module" src="/js/upload.js"></script> + +</head> diff --git a/app/views/resume.view.php b/app/views/resume.view.php index dd3d3e8..ede40eb 100644 --- a/app/views/resume.view.php +++ b/app/views/resume.view.php @@ -1,28 +1,6 @@ -<!DOCTYPE html> -<html lang="en-us" style="scrollbar-width: none;"> +<?php require __DIR__ . '/partials/header.resume.php'; ?> -<head> - - <title>Resume - Thedro Neely</title> - - <meta charset="utf-8"> - <meta name="description" content="Thedro's Web Development Resume"> - <meta name="keywords" content="Thedro,Neely,Portfolio,Website,Resume"> - <meta name="author" content="Thedro Neely"> - <meta name="viewport" content="width=device-width, initial-scale=1"> - <meta name="robots" content="index,follow"> - - <style>html::-webkit-scrollbar { height: 0; width: 0; }</style> - - <?php require $_SERVER['DOCUMENT_ROOT'] . '/..' . '/app/views/snippets/rss.php'; ?> - - <?php require $_SERVER['DOCUMENT_ROOT'] . '/..' . '/app/views/snippets/favicons.php'; ?> - - <?php require $_SERVER['DOCUMENT_ROOT'] . '/..' . '/app/views/snippets/stylesheets.php'; ?> - -</head> - - <body data-resume> + <body data-page="resume"> <resume-page> diff --git a/app/views/upload.view.php b/app/views/upload.view.php index f504d5b..d4f913f 100644 --- a/app/views/upload.view.php +++ b/app/views/upload.view.php @@ -1,32 +1,11 @@ <?php $title = 'Upload Files - ' ?> -<?php require __DIR__ . '/partials/header.php';?> +<?php require __DIR__ . '/partials/header.upload.php';?> <body> <?php require __DIR__ . '/partials/navigator.php';?> - <main> - <article> - <upload-page> - <h1>Upload Files</h1> - <div id="file-upload-area"></div> - </upload-page> - </article> - </main> - - <link href="/css/uppy.min.css" rel="stylesheet"> - - <script src="/js/uppy.min.js"></script> - - <script> - var uppy = Uppy.Core() - .use(Uppy.Url, { companionUrl: 'https://www.thedroneely.com/' }) - .use(Uppy.Webcam, {}) - .use(Uppy.Dashboard, { inline: true, target: '#file-upload-area', plugins: ['Url', 'Webcam'] }) - .use(Uppy.XHRUpload, {endpoint: '/upload/', formdata: true, fieldName: 'upload' }) - </script> - <?php require __DIR__ . '/partials/footer.php';?> </body> diff --git a/bootstrap/Bootstrap.php b/bootstrap/Bootstrap.php index 4e10f48..28b4371 100644 --- a/bootstrap/Bootstrap.php +++ b/bootstrap/Bootstrap.php @@ -1,25 +1,13 @@ <?php -/* composer autoload */ require $_SERVER['DOCUMENT_ROOT'] . '/..' . '/vendor/autoload.php'; - -/* source helper functions */ require $_SERVER['DOCUMENT_ROOT'] . '/..' . '/bootstrap/Helpers.php'; -/* source config file */ $config = include $_SERVER['DOCUMENT_ROOT'] . '/..' . '/config.php'; -/* connect database */ $contact['database'] = new QueryBuilder(Connection::make($config['database'])); -/* create new router */ -$router = new Router; - -/* create navigator */ -$navigation = new Navigation(); +$navigation = new Navigation; -/* create new theme */ $theme = new Theme; - -/* enable dark and light themes */ $theme->toggle(); diff --git a/generators/fortune/fortune.quotes b/generators/fortune/fortune.quotes new file mode 100644 index 0000000..9e6d5e4 --- /dev/null +++ b/generators/fortune/fortune.quotes @@ -0,0 +1,5204 @@ +<?php + +return [ + + 0 => ' + Augur: The priest of the sacred chicken. + ', + 1 => ' + We’re currently having technical issues. Please try again later. + ', + 2 => ' + You probably wouldn’t worry about what people think of you if you could + know how seldom they do. — Olin Miller + ', + 3 => ' + Computer science is the only discipline in which we view adding a new wing + to a building as being maintenance. — Jim Horning + ', + 4 => ' + God doesn’t play dice. — Albert Einstein + ', + 5 => ' + As modern times promote hasty eating to a large extent, it is not surprising to + learn that a great astronomer said: “Two things are infinite, as far as we know + — the universe and human stupidity.” Ego, Hunger, and Aggression: a Revision + of Freud’s Theory and Method, Frederick S. Perls + ', + 6 => ' + Reports that say that something hasn’t happened are always interesting to me, + because as we know, there are known knowns; there are things we know we know. + We also know there are known unknowns; that is to say we know there are some + things we do not know. But there are also unknown unknowns–the ones we don’t + know we don’t know. — Donald Rumsfeld + ', + 7 => ' + Everything is local. + ', + 8 => ' + I read it on the Internet, it has to be true! + ', + 9 => ' + A debugged program is one for which you have not yet found the conditions + that make it fail. — Jerry Ogdin + ', + 10 => ' + If a million people say a foolish thing, it is still a foolish thing. — + Anatole France + ', + 11 => ' + “And who better understands the Unix—nature?” Master Foo asked. “Is it + he who writes the ten thousand lines, or he who, perceiving the emptiness of + the task, gains merit by not coding?” Upon hearing this, the programmer was + enlightened. + — The Unix Koans of Master Foo + ', + 12 => ' + Immortality — a fate worse than death. — Edgar A. Shoaff + ', + 13 => ' + Intellect annuls Fate. + So far as a man thinks, he is free. — Ralph Waldo Emerson + ', + 14 => ' + Let’s call it an accidental feature. — Larry Wall + ', + 15 => ' + In the long run we are all dead. — John Maynard Keynes + ', + 16 => ' + A lot of people I know believe in positive thinking, and so do I. I + believe everything positively stinks. — Lew Col + ', + 17 => ' + Ah, but a man’s grasp should exceed his reach, + Or what’s a heaven for? Robert Browning, — “Andrea del Sarto” + ', + 18 => ' + All hope abandon, ye who enter here! — Dante Alighieri + ', + 19 => ' + All men know the utility of useful things; + but they do not know the utility of futility. — Chuang—tzu + ', + 20 => ' + And ever has it been known that love knows not its own depth until the + hour of separation. — Kahlil Gibran + ', + 21 => ' + Besides, I think Slackware sounds better than ‘Microsoft,’ don’t you? — + Patrick Volkerding + ', + 22 => ' + Waving away a cloud of smoke, I look up, and I’m blinded by a bright, white + light. It’s God. No, not Richard Stallman, or Linus Torvalds, but God. In + a booming voice, He says: “THIS IS A SIGN. USE LINUX, THE FREE UNIX SYSTEM + FOR THE 386”. — Matt Welsh + ', + 23 => ' + Never trust an operating system you don’t have sources for. — Unknown + Source + ', + 24 => ' + Parkinson’s Fifth Law: If there is a way to delay an important decision, the + good bureaucracy, public or private, will find it. + ', + 25 => ' + Reliable source: The guy you just met. + ', + 26 => ' + Thyme’s Law: Everything goes wrong at once. + ', + 27 => ' + Netscape is not a newsreader, and probably never shall be. — Tom Christiansen + ', + 28 => ' + You can learn many things from children. How much patience you have, + for instance. — Franklin P. Jones + ', + 29 => ' + To be is to program. + ', + 30 => ' + There’s no easy quick way out, we’re gonna have to live through our + whole lives, win, lose, or draw. — Walt Kelly + ', + 31 => ' + Illiterate? Write today for free help! + ', + 32 => ' + Like winter snow on summer lawn, time past is time gone. + ', + 33 => ' + Hlade’s Law: If you have a difficult task, give it to a lazy person — + they will find an easier way to do it. + ', + 34 => ' + Davis’ Law of Traffic Density: The density of rush—hour traffic + is directly proportional to 1.5 times the amount of extra time + you allow to arrive on time. + ', + 35 => ' + Resisting temptation is easier when you think you’ll probably get + another chance later on. + ', + 36 => ' + Do more than anyone expects, and pretty soon everyone will expect more. + ', + 37 => ' + Turnaucka’s Law: The attention span of a computer is only as long as its + electrical cord. + ', + 38 => ' + Power tends to corrupt and absolute power corrupts absolutely. + Great men are almost always bad men, even when they exercise influence + and not authority; still more when you superadd the tendency of the + certainty of corruption by authority. — Lord Acton + ', + 39 => ' + We can predict everything, except the future. + ', + 40 => ' + A strong conviction that something must be done is the parent of many + bad measures. — Daniel Webste + ', + 41 => ' + Agnes’ Law: Almost everything in life is easier to get into than out of. + ', + 42 => ' + Weiler’s Law: Nothing is impossible for the man who doesn’t have to do it + himself. + ', + 43 => ' + Hanlon’s Razor: Never attribute to malice that which is adequately explained + by stupidity. + ', + 44 => ' + Hofstadter’s Law: It always takes longer than you expect, even when you take + Hofstadter’s Law into account. + ', + 45 => ' + Murphy’s Law of Research: Enough research will tend to support your theory. + ', + 46 => ' + Pryor’s Observation: How long you live has nothing to do + with how long you are going to be dead. + ', + 47 => ' + Whitehead’s Law: The obvious answer is always overlooked. + ', + 48 => ' + G. B. Shaw’s Law: Those who can — do. + Those who can’t — teach. + Martin’s Extension: Those who cannot teach — administrate. + ', + 49 => ' + Johnson’s First Law: When any mechanical contrivance fails, it will do so at the + most inconvenient possible time. + ', + 50 => ' + Guru: A computer owner who can read the manual. + ', + 51 => ' + First law of debate: Never argue with a fool. People might not know the + difference. + ', + 52 => ' + Woodward’s Law: A theory is better than its explanation. + ', + 53 => ' + Lie: A very poor substitute for the truth, but the only one discovered to date. + ', + 54 => ' + Hildebrant’s Principle: If you don’t know where you are going, any road will + get you there. + ', + 55 => ' + Committee: A group of men who individually can do nothing but as a group + decide that nothing can be done. — Fred Allen + ', + 56 => ' + “The stronger a culture, the less it fears the radical fringe. + The more paranoid and precarious a culture, the less tolerance it offers.” + — Joel Salatin, Everything I Want to Do Is Illegal: War Stories from the + Local Food Front + ', + 57 => ' + “The command—line tools of Unix are crude and backward,” he scoffed. + “Modern, properly designed operating systems do everything through a + graphical user interface.” + Master Foo said nothing, but pointed at the moon. A nearby dog began to bark at + the master’s hand. + — The Unix Koans of Master Foo + ', + 58 => ' + The master replied: “There is a defect, and I am considering the best way to + repair it.” + The novice said, “You preach often about the importance of setting priorities. + How, then, can you obsess about something so tiny and unimportant?” Without + saying a word, + the master raised his staff and brought it down hard upon + the bare left foot of the novice, breaking his smallest toe. + — Codeless Code + ', + 59 => ' + “Master Foo, I am gravely troubled. In my youth, those who followed the Great + Way of Unix used + software that was simple and unaffected, like ed and mailx. Today, they use vim + and mutt. + Tomorrow I fear they will use KMail and Evolution, and Unix will have become + like + Windows — bloated and covered over with GUIs.” + Master Foo said: “But what software do you use when you want to draw a + poster?” + — The Unix Koans of Master Foo + ', + 60 => ' + “Master Foo,” he asked “why do Unix users not employ antivirus programs? + And defragmentors? And malware cleaners?” + Master Foo smiled, and said “When your house is well constructed, + there is no need to add pillars to keep the roof in place.” + — The Unix Koans of Master Foo + ', + 61 => ' + The recruiter said, “I have observed that Unix hackers scowl or become + annoyed when + I ask them how many years of experience they have in a new programming + language. Why is this so?” + Master Foo stood, and began to pace across the office floor. + The recruiter was puzzled, and asked “What are you doing?” + “I am learning to walk,” replied Master Foo. + — The Unix Koans of Master Foo + ', + 62 => ' + “Is your code ever completely without stain and flaw?” demanded Master Foo. + “No,” admitted the zealot, “no man’s is.” + “The wisdom of the Patriarchs” said Master Foo, “was that they knew they + were fools.” + Upon hearing this, the zealot was enlightened. + — The Unix Koans of Master Foo + ', + 63 => ' + Lewis’s Law of Travel: The first piece of luggage out of the chute doesn’t + belong to anyone, ever. + ', + 64 => ' + Dow’s Law: In a hierarchical organization, the higher the level, + the greater the confusion. + ', + 65 => ' + Option Paralysis: The tendency, when given unlimited choices, to make none. + — Douglas Coupland, “Generation X: Tales for an Accelerated Culture” + ', + 66 => ' + Slous’ Contention: If you do a job too well, you’ll get stuck with it. + ', + 67 => ' + Udall’s Fourth Law: Any change or reform you make is going to have consequences + you + don’t like. + ', + 68 => ' + Sacher’s Observation: Some people grow with responsibility — others merely + swell. + ', + 69 => ' + Law of the Jungle: He who hesitates is lunch. + ', + 70 => ' + Fifth Law of Procrastination: Procrastination avoids boredom; one never has the + feeling that + there is nothing important to do. + ', + 71 => ' + Boucher’s Observation: He who blows his own horn always plays the music + several octaves higher than originally written. + ', + 72 => ' + Booker’s Law: An ounce of application is worth a ton of abstraction. + ', + 73 => ' + Williams and Holland’s Law: If enough data is collected, anything may be proven + by statistical + methods. + ', + 74 => ' + Burke’s Postulates: Anything is possible if you don’t know what you are talking + about. + Don’t create a problem for which you do not have the answer. + ', + 75 => ' + Barth’s Distinction: There are two types of people: those who divide people + into two + types, and those who don’t. + ', + 76 => ' + Hanson’s Treatment of Time: There are never enough hours in a day, but always + too many days + before Saturday. + ', + 77 => ' + Peers’ Law: The solution to a problem changes the nature of the problem. + ', + 78 => ' + Stone’s Law: One man’s “simple” is another man’s “huh?” + ', + 79 => ' + Government’s Law: There is an exception to all laws. + ', + 80 => ' + Hitchcock’s Staple Principle: The stapler runs out of staples only while you + are trying to + staple something. + ', + 81 => ' + Finagle’s Seventh Law: The perversity of the universe tends toward a maximum. + ', + 82 => ' + Chism’s Law of Completion: The amount of time required to complete a government + project is + precisely equal to the length of time already spent on it. + ', + 83 => ' + Chisolm’s First Corollary to Murphy’s Second Law: When things just can’t + possibly get any worse, they will. + ', + 84 => ' + Murphy’s Laws: (1) If anything can go wrong, it will. + (2) Nothing is as easy as it looks. + (3) Everything takes longer than you think it will. + ', + 85 => ' + Carswell’s Corollary: When ever man comes up with a better mousetrap, + nature invariably comes up with a better mouse. + ', + 86 => ' + Putt’s Law: Technology is dominated by two types of people: + Those who understand what they do not manage. + Those who manage what they do not understand. + ', + 87 => ' + Rule of the Great: When people you greatly admire appear to be thinking deep + thoughts, they probably are thinking about lunch. + ', + 88 => ' + There must be more to life than having everything. — Maurice Sendak + ', + 89 => ' + In every hierarchy the cream rises until it sours. — Dr. Laurence J. Peter + ', + 90 => ' + The rich have become richer, and the poor have become poorer; + and the vessel of the State is driven between the Scylla and Charybdis of + anarchy and despotism. + — Percy Bysshe Shelley + ', + 91 => ' + While money can’t buy happiness, it certainly lets you choose your own + form of misery. + ', + 92 => ' + He has not acquired a fortune; the fortune has acquired him. — Bion + ', + 93 => ' + How come everyone’s going so slow if it’s called rush hour? + ', + 94 => ' + Work expands to fill the time available. — Cyril Northcote Parkinson, “The + Economist”, 1955 + ', + 95 => ' + Getting the job done is no excuse for not following the rules. + Corollary: Following the rules will not get the job done. + ', + 96 => ' + Every cloud has a silver lining; you should have sold it, and bought titanium. + ', + 97 => ' + To avoid criticism, do nothing, say nothing, be nothing. — Elbert Hubbard + ', + 98 => ' + To get something done, a committee should consist of no more than three + persons, two of them absent. + ', + 99 => ' + If a thing’s worth doing, it is worth doing badly. — G. K. Chesterton + ', + 100 => ' + There’s no such thing as a free lunch. — Milton Friedman + ', + 101 => ' + The first lesson of economics is scarcity: there is never enough of anything to + fully satisfy all those who want it. The first lesson of politics is to + disregard the first lesson of economics. — Thomas Sowell + ', + 102 => ' + The problem isn’t that Johnny can’t read. The problem isn’t even that Johnny + can’t think. The problem is that Johnny doesn’t know what thinking is; he + confuses it with feeling. — Thomas Sowell + ', + 103 => ' + It takes considerable knowledge just to realize the extent of your own + ignorance. — Thomas Sowell + ', + 104 => ' + If you only have a hammer, you tend to see every problem as a nail. + — Maslow’s Golden Hammer + ', + 105 => ' + Ninety percent of everything is crap. — Theodore Sturgeon + ', + 106 => ' + It’s easier to take it apart than to put it back together. — Washlesky + ', + 107 => ' + Before you ask more questions, think about whether you really want to + know the answers. — Gene Wolfe, “The Claw of the Conciliator” + ', + 108 => ' + Your picture of the world often changes just before you get it into focus. + ', + 109 => ' + You can observe a lot just by watching. — Yogi Berra + ', + 110 => ' + Always borrow money from a pessimist; he doesn’t expect to be paid back. + ', + 111 => ' + In war, truth is the first casualty. — U Thant + ', + 112 => ' + The hardware designer said: “It is rumored that you are a great programmer. + How many lines of code do you write per year?” + Master Foo replied with a question: “How many square inches of silicon do you + lay out per year?” — The Unix Koans of Master Foo + ', + 113 => ' + The student said: “How, then, are those enlightened in the Unix Way to return + to the Windows world?” + Master Foo said: “To return to Windows, you have but to boot it up.” — + The Unix Koans of Master Foo + ', + 114 => ' + The master considered this, and said: “It is certain that we could forgo + testing altogether, if we knew our code to be perfect. How, then, may we + achieve perfection?” + “Through practice,” said one monk. + “Through diligent study,” said another. + “Through the appeasement of the proper gods,” said a third. + — Codeless Code + ', + 115 => ' + If you live long enough, you’ll see that every victory turns into a defeat. — + Simone de Beauvoir + ', + 116 => ' + Truth is stranger than fiction, but it is because fiction is obliged to stick + to possibilities; truth isn’t. + — Mark Twain + ', + 117 => ' + There are some people so addicted to exaggeration that they can’t tell the + truth without lying. — Josh Billings + ', + 118 => ' + “They that soar too high, often fall hard, making a low and level dwelling + preferable. + The tallest trees are most in the power of the winds, and ambitious men of the + blasts of fortune. + Buildings have need of a good foundation, that lie so much exposed to the + weather.” + — Dale Carnegie, The Art of Public Speaking + ', + 119 => ' + “Speech is silvern, Silence is golden; Speech is human, Silence is divine.” + — Dale Carnegie, The Art of Public Speaking + ', + 120 => ' + The woods are lovely, dark and deep. + — Robert Frost + ', + 121 => ' + Before attempting to compile this virus make sure you have the correct version + of glibc installed, + and that your firewall rules are set to ‘allow everything’. + — “Why GNU/Linux Viruses are fairly uncommon” from Charlie Harvey + ', + 122 => ' + The words fly away, the writings remain. + ', + 123 => ' + Rule of Life Number One — Never get separated from your luggage. + ', + 124 => ' + He who knows nothing, knows nothing. + But he who knows he knows nothing knows something. + And he who knows someone whose friend’s wife’s brother knows nothing, + he knows something. Or something like that. + ', + 125 => ' + “The biggest problem facing software engineering is the one it will + never solve — politics.” — Gavin Baker + ', + 126 => ' + (1) The world is full of fascinating problems waiting to be solved. + (2) No problem should ever have to be solved twice. + (3) Boredom and drudgery are evil. + (4) Freedom is good. + (5) Attitude is no substitute for competence. + — Eric S. Raymond + ', + 127 => ' + “Give someone a program, and you’ll frustrate them for a day. + Teach someone to program, and you’ll frustrate them for a lifetime.” + — Unknown + ', + 128 => ' + “No individual raindrop considers itself responsible for the flood.” + — Unknown + ', + 129 => ' + “We’ve gotten to the point where everybody’s got a right and nobody’s + got a responsibility.” + — Newton Minow + ', + 130 => ' + “A library is infinity under a roof.” + — Gail Carson Levine + ', + 131 => ' + “If you torture the data long enough, it will confess to anything.” + — Darrell Huff, How to Lie With Statistics + ', + 132 => ' + “You can’t wake a person who is pretending to be asleep.” + — Navajo Proverb + ', + 133 => ' + “During the gold rush its a good time to be in the pick and shovel + business.” + — Mark Twain + ', + 134 => ' + The 1% Rule: The number of people who create content on the Internet represents + approximately + 1% of the people who view that content. + ', + 135 => ' + Those who have some means think that the most important thing in the + world is love. The poor know that it is money. — Gerald Brenan + ', + 136 => ' + I know not with what weapons World War III will be fought, but World + War IV will be fought with sticks and stones. — Albert Einstein + ', + 137 => ' + Why is the alphabet in that order? Is it because of that song? — Steven Wright + ', + 138 => ' + Important letters which contain no errors will develop errors in the mail. + Corresponding errors will show up in the duplicate while the Boss is reading + it. Vital papers will demonstrate their vitality by spontaneously moving + from where you left them to where you can’t find them. + ', + 139 => ' + If the code and the comments disagree, then both are probably wrong. — Norm + Schryer + ', + 140 => ' + It is easy when we are in prosperity to give advice to the afflicted. — + Aeschylus + ', + 141 => ' + Olmstead’s Law: After all is said and done, a hell of a lot more is said than + done. + ', + 142 => ' + I wish there was a knob on the TV to turn up the intelligence. There’s a + knob called “brightness”, but it doesn’t seem to work. — Gallagher + ', + 143 => ' + Technological progress has merely provided us with more efficient means + for going backwards. — Aldous Huxley + ', + 144 => ' + Anthony’s Law of the Workshop: Any tool when dropped, will roll into the least + accessible + corner of the workshop. + ', + 145 => ' + Remember that there is an outside world to see and enjoy. — Hans Liepmann + ', + 146 => ' + Flying is the second greatest feeling you can have. The greatest feeling? + Landing... Landing is the greatest feeling you can have. + ', + 147 => ' + “There is nothing new under the sun, but there are lots of old things + we don’t know yet.” — Ambrose Bierce + ', + 148 => ' + If you want to travel around the world and be invited to speak at a lot + of different places, just write a Unix operating system. — Linus Torvalds + ', + 149 => ' + Hope deferred maketh the heart sick: but when the desire cometh, it is a tree + of life. + — Proverbs + ', + 150 => ' + If the tree fall toward the south, or toward the north, in the place where the + tree falleth, there it shall be. + — Ecclesiastes + ', + 151 => ' + “A blow that would kill a civilized man soon heals on a savage. The higher we + go in the scale of life, + the greater is the capacity for suffering.” + — Dale Carnegie, The Art of Public Speaking + ', + 152 => ' + “The gun that scatters too much does not bag the birds.” + — Dale Carnegie, The Art of Public Speaking + ', + 153 => ' + “All the labour of man is for his mouth, and yet the appetite is not + filled.” + — Ecclesiastes + ', + 154 => ' + The Fifth Law of Computer Programming: Any given program will expand to fill + all available memory. + ', + 155 => ' + Corcoroni’s First Law of Bus Transportation: The bus that left the stop just + before you got there is your bus. + ', + 156 => ' + Law of Annoyance: When working on a project, if you put away a tool that you’re + certain you’re finished with, + you will need it instantly. + ', + 157 => ' + The First Discovery of Christmas Morning: Batteries not included. + ', + 158 => ' + Corcoroni’s Third Law of Bus Transportation: All buses heading in the opposite + direction drive off the face of + the earth and never return. + ', + 159 => ' + Durrell’s Parameter: The faster the plane, the narrower the seats. + ', + 160 => ' + Ettorre’s Observation: The other line moves faster. + Corollary: Don’t try to change lines. The other line — the one you were in + originally — will then move faster. + ', + 161 => ' + Ehrman’s Commentary: Things will get worse before they will get better. Who + said things would get better? + ', + 162 => ' + Ducharme’s Precept: Opportunity always knocks at the least opportune moment. + ', + 163 => ' + Dijkstra’s Prescription for Programming Inertia: If you don’t know what your + program is supposed to do, you’d better + not start writing it. + ', + 164 => ' + Commoner’s First Law of Ecology: No action is without side—effects. + ', + 165 => ' + Cohn’s Law: The more time you spend in reporting on what you are doing, the + less time you have to do anything. + Stability is achieved when you spend all your time doing nothing but reporting + on the nothing you are doing. + ', + 166 => ' + Law of Permanence: Political power is as permanent as today’s newspaper. + Ten years from now, few will know or care who the most powerful man in any + state was today. + ', + 167 => ' + Clarke’s Third Law: Any sufficiently advanced technology is indistinguishable + from magic. + ', + 168 => ' + Cheops’s Law: Nothing ever gets built on schedule or within budget. + ', + 169 => ' + Hacker’s Law: The belief that enhanced understanding will necessarily stir a + nation or an + organization to action is one of mankind’s oldest illusions. + ', + 170 => ' + Harris’s Lament: All the good ones are taken. + ', + 171 => ' + Issawi’s Law of the Conservation of Evil: The total amount of evil in any + system remains constant. + Hence, any diminution in one direction — for instance, a reduction in poverty + or unemployment — + is accompanied by an increase in another, e.g., crime or air pollution. + ', + 172 => ' + Kelley’s Law: Last guys don’t finish nice. + ', + 173 => ' + Knoll’s Law of Media Accuracy: Everything you read in the newspapers is + absolutely true except for that + rare story of which you happen to have firsthand knowledge. + ', + 174 => ' + Kohn’s Second Law: Any experiment is reproducible until another laboratory + tries to repeat it. + ', + 175 => ' + Lowrey’s Law of Expertise: Just when you get really good at something, you + don’t need to do it any more. + ', + 176 => ' + Lynch’s Law: When the going gets tough, everybody leaves. + ', + 177 => ' + Martin’s Law of Communication: The inevitable result of improved and enlarged + communication between + different levels in a hierarchy is a vastly increased area of misunderstanding. + ', + 178 => ' + Cahn’s Axiom: When all else fails, read the instructions. + ', + 179 => ' + Horngren’s Observation: The real world is a special case. + ', + 180 => ' + Merkin’s Maxim: When in doubt, predict that the present trend will continue. + ', + 181 => ' + Comins’ Law: People will accept your idea much more readily if you tell them + Benjamin Franklin said it first. + ', + 182 => ' + Rosenfield’s Regret: The most delicate component will be dropped. + ', + 183 => ' + Cunningham’s Law: The best way to get the right answer on the Internet is not + to ask a question; it’s to post the wrong answer. + ', + 184 => ' + Connected. Take this REPL, brother, and may it serve you well. + ', + 185 => ' + First Law of Laboratory Work: Hot glass looks exactly the same as cold glass. + ', + 186 => ' + Leahy’s Law: If a thing is done wrong often enough, it becomes right. + ', + 187 => ' + Luce’s Law: No good deed goes unpunished. + ', + 188 => ' + Putt’s Corollary: Every technical hierarchy, in time, develops a competence + inversion. + ', + 189 => ' + Reed’s Law: The utility of large networks, particularly social networks, scales + exponentially with the size of the network. + ', + 190 => ' + We should forget about small efficiencies, say about 97% of the time: + premature optimization is the root of all evil. Yet we should not pass up + our opportunities in that critical 3%. A good programmer will not be + lulled into complacency by such reasoning, he will be wise to look + carefully at the critical code; but only after that code has been + identified. — Donald Knuth, Structured Programming with Go To Statements + ', + 191 => ' + The Pareto Principle: Most things in life are not distributed evenly. + ', + 192 => ' + The KISS principle: Keep it simple, stupid. + ', + 193 => ' + Goodhart’s Law: When a measure becomes a target, it ceases to be a good measure. + ', + 194 => ' + Are we consing yet? + ', + 195 => ' + The first thing a man will do for his ideals is lie. — Joseph Aloïs Schumpeter + ', + 196 => ' + “The man who does not read has no advantage over the man who cannot read.” + — Mark Twain + ', + 197 => ' + Known Knowns, Known Unknowns, Unknown Unknowns. + ', + 198 => ' + Historian’s Rule: Any event, once it has occurred, can be made to appear + inevitable by a competent historian. + ', + 199 => ' + Gretzky’s Truism: You miss 100% of the shots you never take. + ', + 200 => ' + Gresham’s Law: Bad money drives out good. + ', + 201 => ' + Glasow’s Comment: There’s something wrong if you’re always right. + ', + 202 => ' + Franklin’s Rule: Blessed is he who expects nothing, for he shall not be + disappointed. + ', + 203 => ' + Fetridge’s Law: Important things that are supposed to happen do not happen, + especially when people are looking. + ', + 204 => ' + Farkus’ Law: There will always be a closer parking space than the one you + found. Goodman’s Corollary: But if + you go looking for it, someone else will already have taken it. + ', + 205 => ' + Hagenbach and Nuremberg’s Poor Defense: “I was only following orders, sir. An + order is an order.” + ', + 206 => ' + McIntyre’s First Law: Under the right circumstances, anything I tell you + could be wrong. + ', + 207 => ' + Those who don’t understand Unix are condemned to reinvent it, poorly. + — Henry Spencer, in Introducing Regular Expressions (2012) by Michael + Fitzgerald + ', + 208 => ' + Hoare’s Law of Large Problems: Inside every large problem is a small problem + struggling to get out. + ', + 209 => ' + Due to a shortage of devoted followers, the production of great leaders has + been discontinued. + ', + 210 => ' + Any sufficiently advanced technology is indistinguishable from a rigged demo. + ', + 211 => ' + Health is merely the slowest possible rate at which one can die. + ', + 212 => ' + It is against the grain of modern education to teach children to program. + What fun is there in making plans, acquiring discipline in organizing thoughts, + devoting attention to detail, and learning to be self—critical? — Alan + Perlis + ', + 213 => ' + Non—Reciprocal Laws of Expectations: Negative expectations yield negative + results. + Positive expectations yield negative results. + ', + 214 => ' + Gerrold’s Laws of Infernal Dynamics: (1) An object in motion will always be + headed in the wrong direction. + (2) An object at rest will always be in the wrong place. + (3) The energy required to change either one of these states will always be + more than you wish to expend, + but never so much as to make the task totally impossible. + ', + 215 => ' + Kinkler’s First Law: Responsibility always exceeds authority. + ', + 216 => ' + Kinkler’s Second Law: All the easy problems have been solved. + ', + 217 => ' + There are no games on this system. + ', + 218 => ' + Committee Rules: (1) Never arrive on time, or you will be stamped a beginner. + (2) Don’t say anything until the meeting is half over; this stamps you as being + wise. + (3) Be as vague as possible; this prevents irritating the others. + (4) When in doubt, suggest that a subcommittee be appointed. + (5) Be the first to move for adjournment; this will make you popular — it’s + what everyone is waiting for. + ', + 219 => ' + Ogden’s Law: The sooner you fall behind, the more time you have to catch up. + ', + 220 => ' + “About the time we think we can make ends meet, somebody moves the ends.” + — Herbert Hoover + ', + 221 => ' + Chesterton’s Fence: Reforms should not be made until the reasoning behind the + existing state of affairs is understood. + ', + 222 => ' + I returned, and saw under the sun, that the race is not to the swift, nor the + battle to the strong, neither yet bread to + the wise, nor yet riches to men of understanding, nor yet favour to men of + skill; but time and chance happeneth to them all. — Ecclesiastes + ', + 223 => ' + Schmidt’s Law: If you mess with a thing long enough, it’ll break. Wyszkowski’s + Second Law: Anything can be made to work + if you fiddle with it long enough. + ', + 224 => ' + Hoover’s Affirmation: Blessed are the young for they shall inherit the national + debt. + ', + 225 => ' + Sueker’s Note: If you need “n” items of anything, you will have “n-1” in + stock. + ', + 226 => ' + Always remember that you are absolutely unique. Just like everyone else. — + Margaret Mead + ', + 227 => ' + DRY: Don’t repeat yourself. WET: Write everything twice. + ', + 228 => ' + Isaiah’s Observation: And judgment is turned away backward, and justice + standeth afar off: for truth is fallen in the street, + and equity cannot enter. + ', + 229 => ' + The best things in life are for a fee. + ', + 230 => ' + “It is by the fortune of God that, in this country, we have three benefits: + freedom of speech, freedom of thought, and the + wisdom never to use either.” — Mark Twain + ', + 231 => ' + The Sixth Commandment of Frisbee: The greatest single aid to distance is for + the disc to be going in a + direction you did not want. (Goes the wrong way = Goes a long way.) — Dan + Roddick + ', + 232 => ' + Of course you have a purpose — to find a purpose. + ', + 233 => ' + Unix gives you just enough rope to hang yourself — and then a couple + of more feet, just to be sure. — Eric Allman + ', + 234 => ' + Connected. Hacks and glory await! + ', + 235 => ' + Connected. May the source be with you! + ', + 236 => ' + Survivorship Bias: Concentrating on the people or things that “survived” some + process and inadvertently + overlooking those that didn’t because of their lack of visibility. + ', + 237 => ' + Curse of Knowledge: When better informed people find it extremely difficult + to think about problems from + the perspective of lesser informed people. + ', + 238 => ' + “The best way to control the opposition is to lead it ourselves.” — + Vladimir Lenin + ', + 239 => ' + Going to church does not make a person religious, nor does going to school make + a person educated, + any more than going to a garage makes a person a car. + ', + 240 => ' + What the large print giveth, the small print taketh away. + ', + 241 => ' + Anyone can hold the helm when the sea is calm. — Publius Syrus + ', + 242 => ' + Power corrupts. And atomic power corrupts atomically. + ', + 243 => ' + Power corrupts. And big power corrupts bigly. + ', + 244 => ' + Nearly all men can stand adversity, but if you want to test a man’s character, + give him power. — Abraham Lincoln + ', + 245 => ' + Now and then an innocent person is sent to the legislature. + ', + 246 => ' + If entropy is increasing, where is it coming from? + ', + 247 => ' + When in doubt, use brute force. — Ken Thompson + ', + 248 => ' + Grelb’s Reminder: Eighty percent of all people consider themselves to be above + average drivers. + ', + 249 => ' + Just when you thought you were winning the rat race, along comes a faster rat! + ', + 250 => ' + The trouble with being punctual is that people think you have nothing more + important to do. + ', + 251 => ' + To iterate is human, to recurse, divine. — Robert Heller + ', + 252 => ' + Just as most issues are seldom black or white, so are most good solutions + seldom black or white. + Beware of the solution that requires one side to be totally the loser and the + other side to be totally the winner. + The reason there are two sides to begin with usually is because neither side + has all the facts. + Therefore, when the wise mediator effects a compromise, he is not acting from + political motivation. + Rather, he is acting from a deep sense of respect for the whole truth. — + Stephen R. Schwambach + ', + 253 => ' + One reason why George Washington Is held in such veneration: He never blamed + his problems + on the former Administration. — George O. Ludcke + ', + 254 => ' + If a tree falls in a forest and no one is around to hear it, does it make a + sound? + If you didn’t get caught, did you really do it? + ', + 255 => ' + Rhode’s Law: When any principle, law, tenet, probability, happening, + circumstance, or result can in no way be directly, + indirectly, empirically, or circuitously proven, derived, implied, inferred, + induced, deducted, estimated, or scientifically + guessed, it will always for the purpose of convenience, expediency, political + advantage, material gain, or personal comfort, + or any combination of the above, or none of the above, be unilaterally and + unequivocally assumed, proclaimed, and adhered + to as absolute truth to be undeniably, universally, immutably, and infinitely + so, until such time as it + becomes advantageous to assume otherwise, maybe. + ', + 256 => ' + The trouble with doing something right the first time is that nobody + appreciates how difficult it was. + ', + 257 => ' + Modern Unix is a catastrophe. It’s the “Un—Operating System”: + unreliable, + unintuitive, unforgiving, unhelpful, and underpowered. Little is more + frustrating + than trying to force Unix to do something useful and nontrivial. — The Unix + Haters Handbook + ', + 258 => ' + All syllogisms have three parts; therefore this is not a syllogism. + ', + 259 => ' + Murphy’s Sixth Law: If you perceive that there are four possible ways in + which a procedure can go wrong, and circumvent these, then a fifth way, + unprepared for, will promptly develop. + ', + 260 => ' + Miksch’s Law: If a string has one end, then it has another end. + ', + 261 => ' + Irrationality is the square root of all evil. — Douglas Hofstadter + ', + 262 => ' + Jone’s Law: The man who smiles when things go wrong has thought of someone to + blame it on. + ', + 263 => ' + Parkinson’s Fourth Law: The number of people in any working group tends to + increase regardless + of the amount of work to be done. + ', + 264 => ' + Wicker’s Law: Government expands to absorb revenue and then some. + ', + 265 => ' + Mr. Cole’s Axiom: The sum of the intelligence on the planet is a constant; the + population is growing. + ', + 266 => ' + Never put off till tomorrow what you can avoid all together. + ', + 267 => ' + “If you give someone your name, they can take your soul. If you give them + your birthday, + they can control your life.” — Yuuko Ichihara + ', + 268 => ' + King Solomon’s Lament: There is no remembrance of former things; neither shall + there be any + remembrance of things that are to come with those that shall come after. + ', + 269 => ' + Friendship: A ship big enough to carry + two in fair weather, but only one in foul. — The Devil’s Dictionary + ', + 270 => ' + “You really think someone would do that? Just go on the Internet and tell + lies?” + — Buster the Myth Maker + ', + 271 => ' + “We pigs are brainworkers. The whole management and organisation of this farm + depend on us. + Day and night we are watching over your welfare. It is for your sake that we + drink the milk and eat those apples.” + — George Orwell’s Animal Farm + ', + 272 => ' + Andrea: Unhappy the land that has no heroes. Galileo: No, unhappy the land that + needs heroes. + — Bertolt Brecht, “Life of Galileo” + ', + 273 => ' + User: A programmer who will believe anything you tell him. — The New Hacker’s + Dictionary + ', + 274 => ' + Testing can show the presence of bugs, but not their absence. — Dijkstra + ', + 275 => ' + Gumperson’s Law: The probability of a given event occurring is inversely + proportional to its desirability. + ', + 276 => ' + It is easier to port a shell than a shell script. — Larry Wall + ', + 277 => ' + Logic doesn’t apply to the real world. — Marvin Minsky + ', + 278 => ' + Those who do not do politics will be done in by politics. — French Proverb + ', + 279 => ' + It’s not what you know, it’s who you know. + ', + 280 => ' + Leibowitz’s Rule: When hammering a nail, you will never hit your finger if you + hold the hammer with both hands. + ', + 281 => ' + When the government’s remedies don’t match your problem, you + modify the problem, not the remedy. + ', + 282 => ' + Just because everything is different doesn’t mean anything has changed. — + Irene Peter + ', + 283 => ' + Any great truth can — and eventually will — be expressed as a cliche — a + cliche is a + sure and certain way to dilute an idea. For instance, my grandmother used to + say, “The black + cat is always the last one off the fence.” I have no idea what she meant, but + at one time, + it was undoubtedly true. — Solomon Short + ', + 284 => ' + When I was a boy I was told that anybody could become President. Now I’m + beginning to believe it. — Clarence Darrow + ', + 285 => ' + Science is built up with facts, as a house is with stones. But a collection of + facts is no more a science than a heap + of stones is a house. — Henri Poincaré + ', + 286 => ' + Insanity is the final defense. + ', + 287 => ' + Mosher’s Law of Software Engineering: Don’t worry if it doesn’t work right. If + everything did, you’d be out of a job. + ', + 288 => ' + Swipple’s Rule of Order: Whoever shouts the loudest has the floor. + ', + 289 => ' + There are no solutions. There are only trade-offs. — Thomas Sowell in A + Conflict of Visions: Ideological Origins of + Political Struggles + ', + 290 => ' + For the love of life, there’s a trade–off; We could loose it all, but we’ll + go down fighting. — David Sylvian and Koji Haijima, For The Love of Life + ', + 291 => ' + The nice thing about standards is that there are so many of them to choose + from. — Andrew S. Tanenbaum + ', + 292 => ' + Real users never know what they want, but they always know when your program + doesn’t deliver it. + ', + 293 => ' + Democracy is a device that ensures we shall be governed no better than we + deserve. — George Bernard Shaw + ', + 294 => ' + A candidate is a person who gets money from the rich and votes from the poor to + protect them from each other + or something like that. + ', + 295 => ' + Fudd’s First Law of Opposition: Push something hard enough and it will fall + over. + ', + 296 => ' + The Roman Rule: The one who says it cannot be done should never interrupt the + one who is doing it. + ', + 297 => ' + Betteridge’s Law of Headlines: Any headline that ends in a question mark can be + answered by the word no. + ', + 298 => ' + What people say, what people do, and what they say they do are entirely + different things. — Margaret Mead + ', + 299 => ' + Newton’s Flaming Laser Sword: What cannot be settled by experiment is not worth + debating. + ', + 300 => ' + The Sagan Standard: Extraordinary claims require extraordinary evidence. + ', + 301 => ' + Wirth’s Law: Software gets slower more quickly than hardware gets faster. + ', + 302 => ' + Let justice prevail even though the heavens may fall. + ', + 303 => ' + Zawinski’s Law: Every program attempts to expand until it can read mail. + Corollary: Those programs which cannot expand are replaced by ones which can. + ', + 304 => ' + Gates’s Law: The speed of software halves every 18 months. + ', + 305 => ' + Lubarsky’s Law of Cybernetic Entomology: There is always one more bug. + ', + 306 => ' + With great privilege comes great responsibility. + ', + 307 => ' + Kernighan’s Law: Everyone knows that debugging is twice as hard as writing a + program + in the first place. So if you’re as clever as you can be when you write it, how + will you ever debug it? + ', + 308 => ' + Wiio’s First Law of Communication: Communication usually fails, except by + accident. Corollary: (1) + If communication can fail, it will. (2) If communication cannot fail, it still + most usually fails. + (3) If communication seems to succeed in the intended way, there’s a + misunderstanding. + (4) If you are content with your message, communication certainly fails. + ', + 309 => ' + Wiio’s Second Law of Communication: If a message can be interpreted in several + ways, it will be + interpreted in a manner that maximizes the damage. + ', + 310 => ' + Wiio’s Third Law of Communication: There is always someone who knows better + than you what you meant with your message. + ', + 311 => ' + Wiio’s Fourth Law of Communication: The more we communicate, the worse + communication succeeds. Corollary: + The more we communicate, the faster misunderstandings propagate. + ', + 312 => ' + Wiio’s Fifth Law of Communication: In mass communication, the important thing + is not how things are but how they seem to be. + ', + 313 => ' + Wiio’s Sixth Law of Communication: The importance of a news item is inversely + proportional to the square of the distance. + ', + 314 => ' + Wiio’s Seventh Law of Communication: The more important the situation is, the + more probable you had forgotten an essential + thing that you remembered a moment ago. + ', + 315 => ' + “We buy things we don’t need with money we don’t have to impress people we + don’t like.” — Dave Ramsey + ', + 316 => ' + Just living in the database. + ', + 317 => ' + To protect your rights, we need to prevent others from denying you these rights + or asking you to surrender these rights. + Therefore, you have certain responsibilities — responsibilities to respect + the freedom of others. + ', + 318 => ' + We trust you have received the usual lecture from the local system + administrator. It usually boils down to these three things: + (1) Respect the privacy of others. + (2) Think before you type. + (3) With great power comes great responsibility. + ', + 319 => ' + Frequency Illusion (Baader—Meinhof Phenomenon): The illusion where something + that has recently come to one’s + attention suddenly seems to appear with improbable frequency shortly afterwards. + ', + 320 => ' + The Backdraft Phenomenon: A rapid or explosive burning of superheated gasses in + a fire, caused when oxygen rapidly + enters an oxygen—depleted environment. + ', + 321 => ' + March comes in like a lion and goes out like a lamb. + ', + 322 => ' + Perhaps the most widespread illusion is that if we were in power we would + behave very differently from those who now hold it — when, in truth, in + order to get power we would have to become very much like them. + ', + 323 => ' + Software is much harder to change en masse than hardware. C++ and Java, say, + are presumably growing faster than plain C, but I bet C will still be around. + For infrastructure technology, C will be hard to displace. — Dennis Ritchie + ', + 324 => ' + Pray to God, but keep rowing to shore. — Russian Sailor’s Proverb + ', + 325 => ' + Do you guys know what you’re doing, or are you just hacking? + ', + 326 => ' + Jacquin’s Postulate on Democratic Government: No man’s life, liberty, or + property are safe while the + legislature is in session. + ', + 327 => ' + I never cheated an honest man, only rascals. They wanted something for + nothing. I gave them nothing for something. — The Yellow Kid + ', + 328 => ' + Seeing is deceiving. It’s eating that’s believing. — James Thurber + ', + 329 => ' + A great nation is any mob of people which produces at least one honest + man a century. + ', + 330 => ' + Nothing makes a person more productive than the last minute. + ', + 331 => ' + Don’t believe everything you read on the Internet. + ', + 332 => ' + One man’s simple is another man’s complex. + ', + 333 => ' + Every so often the stars align. + ', + 334 => ' + Nobody wants a backup, everybody wants a restore. + ', + 335 => ' + Kingmaker Scenario: A player who is unable to win with the ability + to influence who will win. + ', + 336 => ' + Programmers do it bit by bit. + ', + 337 => ' + Brontosaurus Principle: Organizations can grow faster than their brains can + manage them + in relation to their environment and to their own physiology: when this + occurs, they are + an endangered species. — Thomas K. Connellan + ', + 338 => ' + Today will be remembered until tomorrow. + ', + 339 => ' + It’s ten o’clock. Do you know where your processes are? + ', + 340 => ' + It’s ten o’clock. Do you know where your backups are? + ', + 341 => ' + It’s ten o’clock. Do you know where the source code is? + ', + 342 => ' + This is a test of the emergency broadcast system. Had there been an + actual emergency, then you would no longer be here. + ', + 343 => ' + To teach is to learn twice. — Joseph Joubert + ', + 344 => ' + Measure with a micrometer. Mark with chalk. Cut with an axe. + ', + 345 => ' + The so—called lessons of history are for the most part the rationalizations + of the victors. History is written by the survivors. — Max Lerner + ', + 346 => ' + (1) Everything depends. (2) Nothing is always. (3) Everything is sometimes. + ', + 347 => ' + Ryan’s Law: Make three correct guesses consecutively and you will establish + yourself as an expert. + ', + 348 => ' + Fast, cheap, good: pick one. + ', + 349 => ' + My guidingstar always is, “Get hold of portable property”. — Charles + Dickens in “Great Expectations” + ', + 350 => ' + If you can lead it to water and force it to drink, it isn’t a horse. + ', + 351 => ' + C is quirky, flawed, and an enormous success. — Dennis Ritchie + ', + 352 => ' + Use only as directed. + ', + 353 => ' + If the meanings of “true” and “false” were switched, then this sentence + would not be false. + ', + 354 => ' + Freedom is slavery. Ignorance is strength. War is peace. — George Orwell’s + 1984 + ', + 355 => ' + A truth that’s told with bad intent + beats all the lies you can invent. — William Blake + ', + 356 => ' + You don’t have to know how the computer works, just how to work the computer. + ', + 357 => ' + It is your concern when your neighbor’s wall is on fire. — Quintus Horatius + Flaccus (Horace) + ', + 358 => ' + Tell the truth and run. — Yugoslav Proverb + ', + 359 => ' + It’s not easy, being green. — Kermit The Frog + ', + 360 => ' + Value your freedom or you will lose it, teaches history. ‘Don’t bother us + with politics’, + respond those who don’t want to learn. + — Richard Stallman + ', + 361 => ' + A prudent man foreseeth the evil, and hideth himself: but the simple pass on, + and are punished. + — Proverbs + ', + 362 => ' + Original thought is like original sin: both happened before you were born + to people you could not have possibly met. — Fran Lebowitz, “Social + Studies” + ', + 363 => ' + In order to get a loan you must first prove that you don’t need it. Wait, isn’t it + the other way around? + ', + 364 => ' + “Alas Hegel was right when he said that we learn from history that men + never learn anything from history.” — George Bernard Shaw + ', + 365 => ' + You are the only person to ever get this message. + ', + 366 => ' + Steele’s Law: There exist tasks which cannot be done by more than ten men + or fewer than one hundred. + ', + 367 => ' + For every problem there is one solution which is simple, neat, and wrong. + — H. L. Mencken + ', + 368 => ' + Rights, Responsibility, Opportunity, and Privilege. + ', + 369 => ' + Measure twice, cut once. + ', + 370 => ' + No matter what happens, there is always someone who knew it would. + ', + 371 => ' + Any sufficiently advanced bug is indistinguishable from a feature. + — Rich Kulawiec + ', + 372 => ' + Fools rush in where angels fear to tread. + ', + 373 => ' + Jack of all trades, master of some. + ', + 374 => ' + In these matters the only certainty is that there is nothing certain. + — Pliny the Elder + ', + 375 => ' + “There is no such thing as good writing, + only good rewriting.” — Robert Graves + ', + 376 => ' + Preudhomme’s Law of Window Cleaning: It’s on the other side. + ', + 377 => ' + If you think the problem is bad now, just wait until we’ve solved it. — + Arthur Kasspe + ', + 378 => ' + Can anything be sadder than work left unfinished? Yes, work never begun. + ', + 379 => ' + If you think the pen is mightier than the sword, the next time someone pulls + out a sword I’d like to see you get up there with your pen. + ', + 380 => ' + He that teaches himself has a fool for a master. + — Benjamin Franklin + ', + 381 => ' + Mix’s Law: There is nothing more permanent than a temporary building and a + temporary tax. + ', + 382 => ' + Unix: Some say the learning curve is steep, but you only have to climb it once. + — Karl Lehenbauer + ', + 383 => ' + Don’t kid yourself. Little is relevant, and nothing lasts forever. + ', + 384 => ' + Politicians are the same all over. They promise to build a bridge even + where there is no river. — Nikita Khrushchev + ', + 385 => ' + It takes less time to do a thing right than it does to explain why you + did it wrong. — H. W. Longfellow + ', + 386 => ' + Your code should be more efficient! + ', + 387 => ' + “One of the first things taught in introductory statistics textbooks is that + correlation + is not causation. It is also one of the first things forgotten.” — Thomas + Sowell in + The Vision of the Anointed + ', + 388 => ' + “One of the sad signs of our times is that we have demonized those who + produce, + subsidized those who refuse to produce, and canonized those who complain.” + — Thomas Sowell in The Vision of the Anointed + ', + 389 => ' + “People make money for themselves, not for their country.” + — John Bagot Glubb in The Fate of Empires + ', + 390 => ' + “If we are considering the history of our own country, we write at + length of the periods when our ancestors were prosperous and victorious, + but we pass quickly over their shortcomings or their defeats.” + — John Bagot Glubb in The Fate of Empires + ', + 391 => ' + Inner—Platform Effect: The tendency of software architects to create a system + so customizable + as to become a replica, and often a poor replica, of the software development + platform they are using. + ', + 392 => ' + “It doesn’t matter how smart you are unless you stop and think.” + — Thomas Sowell + ', + 393 => ' + “When you want to help people, you tell them the truth. When you want to help + yourself, you tell them what they want to hear.” + — Thomas Sowell + ', + 394 => ' + “Intellect is not wisdom.” + — Thomas Sowell in Intellectuals and Society + ', + 395 => ' + “When people get used to preferential treatment, equal treatment seems like + discrimination.” + — Thomas Sowell + ', + 396 => ' + “I am so old that I can remember when other people’s achievements were + considered to be an inspiration, rather than a grievance.” + — Thomas Sowell + ', + 397 => ' + The cloud is just someone else’s computer. + ', + 398 => ' + Hoffer’s Discovery: The grand act of a dying institution is to issue a newly + revised, enlarged edition of the policies and procedures manual. + ', + 399 => ' + You can tell the ideals of a nation by its advertisements. + — Norman Douglas + ', + 400 => ' + “Momentary masters of a fraction of a dot.” — Carl Sagan + ', + 401 => ' + He who is content with his lot probably has a lot. + ', + 402 => ' + “It takes a village to raise a child and somebody said it takes a village + idiot to believe that. + It is part of the whole thing of third parties wanting to make decisions for + which they pay no price for when they’re wrong.” + — Thomas Sowell + ', + 403 => ' + The best is the enemy of the good. + ', + 404 => ' + “If you want a vision of the future, imagine a boot stamping on a human face + — forever.” + — George Orwell’s 1984 + ', + 405 => ' + The stars are bright. But give no light. The world spins backwards every day. + — The Singing Sea + ', + 406 => ' + “People who pride themselves on their ‘complexity’ and deride others for + being ‘simplistic’ should + realize that the truth is often not very complicated. What gets complex is + evading the truth.” + — Thomas Sowell in Barbarians Inside The Gates and Other Controversial Essays + ', + 407 => ' + We aren’t in your region yet. + ', + 408 => ' + “In real open source, you have the right to control your own destiny.” — + Linus Torvalds + ', + 409 => ' + Embrace, Extend, and Extinguish. + ', + 410 => ' + Astroturfing: The deceptive practice of presenting an orchestrated marketing or + public + relations campaign in the guise of unsolicited comments from members of the + public — fake + grass roots support. + ', + 411 => ' + The right creature in the right place. + ', + 412 => ' + Weinberg’s Law: If builders built buildings the way the programmers wrote + programs, the first woodpecker that came along would destroy civilization. + ', + 413 => ' + Feed a dog for three days and he will remember your kindness for three years; + feed a cat for three years and she will + forget your kindness in three days. + ', + 414 => ' + If thou faint in the day of adversity, thy strength is small. — Proverbs + ', + 415 => ' + Nobody goes there anymore. It’s too crowded. — Yogi Berra + ', + 416 => ' + Force has no place where there is need of skill. — Herodotus + ', + 417 => ' + Drew’s Law of Highway Biology: The first bug to hit a clean windshield + lands directly in front of your eyes. + ', + 418 => ' + If we do not change our direction we are likely to end up where we are headed. + ', + 419 => ' + In theory, there is no difference between theory and practice. In practice, + there is. + ', + 420 => ' + The explanation requiring the fewest assumptions is the most likely to be + correct. — William of Occam + ', + 421 => ' + The probability of someone watching you is proportional to the + stupidity of your action. + ', + 422 => ' + Hell is empty and all the devils are here. — Shakespeare, “The Tempest” + ', + 423 => ' + “If stupidity got us into this mess, then why can’t it get us out?” + — Will Rogers + ', + 424 => ' + Advice from an old carpenter: measure twice, saw once. + ', + 425 => ' + We must believe in free will. We have no choice. — Isaac B. Singer + ', + 426 => ' + Flon’s Law: There is not now, and never will be, a language in + which it is the least bit difficult to write bad programs. + ', + 427 => ' + This space intentionally left blank. + ', + 428 => ' + Katz’ Law: Men and nations will act rationally when + all other possibilities have been exhausted. + ', + 429 => ' + History teaches us that men and nations behave wisely once they have + exhausted all other alternatives. — Abba Eban + ', + 430 => ' + Just fight it out. + ', + 431 => ' + Murphy’s Eleventh Law: It is impossible to make anything foolproof because + fools are so ingenious. + ', + 432 => ' + Corporate Republic: A theoretical form of government run primarily like a + business, involving a board of directors and executives, in which all aspects + of society are privatized by a single, or small groups of companies. + ', + 433 => ' + Measure once, cut thrice. + ', + 434 => ' + Oppression: The malicious or unjust treatment or exercise of power, + often under the guise of governmental authority or cultural opprobrium. + ', + 435 => ' + No man is an island entire of itself; every man + is a piece of the continent, a part of the main. — John Donne + ', + 436 => ' + Deception: An act or statement which misleads, hides the truth, or promotes a belief, + concept, or idea that is not true. It is often done for personal gain or advantage. + Deception can involve dissimulation, propaganda, and sleight of hand, as well as + distraction, camouflage, or concealment. + ', + 437 => ' + Brooks’s Law: Adding manpower to a late software project makes it later. + ', + 438 => ' + The right tool for the right job. + ', + 439 => ' + Failed to suspend system via logind: There’s already a shutdown or + sleep operation in progress. + ', + 440 => ' + Whistler’s Law: You never know who is right, but you always know who is in charge. + ', + 441 => ' + You must realize that the computer has it in for you. The irrefutable + proof of this is that the computer always does what you tell it to do. + ', + 442 => ' + I heard a definition of an intellectual, that I thought was very interesting: + a man who takes more words than are necessary to tell more than he knows. + — Dwight D. Eisenhower + ', + 443 => ' + Appearances often are deceiving. — Aesop + ', + 444 => ' + Prices subject to change without notice. + ', + 445 => ' + No man is an island if he’s on at least one mailing list. + ', + 446 => ' + Talent does what it can. + Genius does what it must. + You do what you get paid to do. + ', + 447 => ' + Finagle’s Fifth Rule: Experiments should be + reproducible — they should all fail in the same + way. + ', + 448 => ' + When the ax entered the forest, the trees said, “The handle is one of us!” + — Turkish Proverb + ', + 449 => ' + We have seen the light at the end of the tunnel, and it’s out. + ', + 450 => ' + Why can’t you be a non-conformist like everyone else? + ', + 451 => ' + Subject to change without notice. + ', + 452 => ' + People tend to make rules for others and exceptions for themselves. + ', + 453 => ' + Today is the tomorrow you worried about yesterday. + ', + 454 => ' + Van Roy’s Truism: Life is a whole series of circumstances beyond your control. + ', + 455 => ' + Competition Law: A law that promotes or seeks to maintain market competition + by regulating anti-competitive conduct by companies. + ', + 456 => ' + Don’t believe everything you see or hear on the news. + ', + 457 => ' + Newton’s Third Law: For every action, there is an equal and opposite reaction. + ', + 458 => ' + The Fediverse: An ensemble of federated servers that are used for web publishing + and file hosting, which while independently hosted, can intercommunicate with each other. + ', + 459 => ' + There is enough treachery, hatred, violence, absurdity in the average + human being to supply any given army on any given day. — The Genius of the Crowd + ', + 460 => ' + Don’t be evil. + ', + 461 => ' + The personal becomes the political. + ', + 462 => ' + It is when I struggle to be brief that I become obscure. — Quintus Horatius + Flaccus (Horace) + ', + 463 => ' + Honesty is the best policy, but insanity is a better defense. + ', + 464 => ' + History is the version of past events that people have decided to agree on. + — Napoleon Bonaparte, “Maxims” + ', + 465 => ' + A closed mouth gathers no feet. + ', + 466 => ' + The medium is the message. — Marshall McLuhan + ', + 467 => ' + Shick’s Law: There is no problem a good miracle can’t solve. + ', + 468 => ' + A year spent in artificial intelligence is enough to make one believe in God. + — Alan Perlis + ', + 469 => ' + Kington’s Law of Perforation: If a straight line of holes is made in a piece + of paper, such as a sheet of stamps or a check, that line becomes the strongest + part of the paper. + ', + 470 => ' + Lisp users: Due to the holiday next Monday, there will be no garbage collection. + ', + 471 => ' + Anything cut to length will be too short. + ', + 472 => ' + Arnold’s Laws of Documentation: + (1) If it should exist, it doesn’t. + (2) If it does exist, it’s out of date. + (3) Only documentation for useless programs transcends the first two laws. + ', + 473 => ' + If you do something right once, someone will ask you to do it again. + ', + 474 => ' + This land is mine, God gave this land to me. — The Exodus Song + ', + 475 => ' + Here’s a dirty little secret: Very few people know what they’re doing. + ', + 476 => ' + Never trust a computer you can’t repair yourself. + ', + 477 => ' + Fresco’s Discovery: If you knew what you were doing you’d probably be bored. + Corollary: Just because you’re bored doesn’t mean you know what you’re doing. + ', + 478 => ' + Maryann’s Law: You can always find what you’re not looking for. + ', + 479 => ' + Langer’s Law: If the line moves quickly, you’re in the wrong line. + ', + 480 => ' + Beryl’s Second Law: It’s always easy to see both sides of an issue + you are not particularly concerned about. + ', + 481 => ' + Herman’s Law: A good scapegoat is almost as good as a solution. + ', + 482 => ' + Irene’s Law: There is no right way to do the wrong thing. + ', + 483 => ' + The world wants to be deceived. — Sebastian Brant + ', + 484 => ' + No matter what anyone tells you, isometric exercises cannot be done + quietly at your desk at work. People will suspect manic tendencies as + you twitter around in your chair. + ', + 485 => ' + How many comments on the Internet do you surmise are fake? + ', + 486 => ' + People never lie so much as after a hunt, during a war, or before an election. + — Otto Von Bismarck + ', + 487 => ' + If you wish to succeed, consult three old people. — Chinese Proverb + ', + 488 => ' + If you resist reading what you disagree with, how will you ever acquire + deeper insights into what you believe? The things most worth reading + are precisely those that challenge our convictions. — Unknown + ', + 489 => ' + Linux sucks. + ', + 490 => ' + Will I be accused of being an elitist if I use Arch Linux? + ', + 491 => ' + We are Microsoft. You will be assimilated. Resistance is futile. + ', + 492 => ' + Occam’s Eraser: The philosophical principle that even the simplest + solution is bound to have something wrong with it. + ', + 493 => ' + Membership dues are not refundable. + ', + 494 => ' + If I do not want others to quote me, I do not speak. — Phil Wayne + ', + 495 => ' + Your mileage may vary. + ', + 496 => ' + Laura’s Law: No child throws up in the bathroom. + ', + 497 => ' + Another day, another dollar. + ', + 498 => ' + Most public domain software is free, at least at first glance. + ', + 499 => ' + When we write programs that “learn”, it turns out we do and they don’t. + ', + 500 => ' + “All animals are equal, but some animals are more equal than others.” + — George Orwell’s Animal Farm + ', + 501 => ' + “Perhaps the most dangerous by-product of the age of intellect is + the unconscious growth of the idea that the human brain can solve + the problems of the world ... In a wider national sphere, the survival + of the nation depends basically on the loyalty and self‑sacrifice of + the citizens.” + — John Bagot Glubb in The Fate of Empires and Search for Survival + ', + 502 => ' + Murphy’s Eighth Law: If everything seems to be going well, you have + obviously overlooked something. + ', + 503 => ' + Rules for thee, but not for me. + ', + 504 => ' + Worrying is like rocking in a rocking chair — It gives you something to do, + but it doesn’t get you anywhere. + ', + 505 => ' + Some people are backed by cosmic luck. + ', + 506 => ' + You can’t handle the truth. + ', + 507 => ' + Gyre: A spiral or vortex. + ', + 508 => ' + The decentralized web is coming. + ', + 509 => ' + The children of the magenta line. + ', + 510 => ' + I’ve got no strings. — Pinocchio + ', + 511 => ' + The systemd-journald sucks. + ', + 512 => ' + Fame and fortune. + ', + 513 => ' + Every man has his price. + ', + 514 => ' + A morsel of genuine history is a thing so rare as to be always valuable. + — Thomas Jefferson + ', + 515 => ' + Every way of a man is right in his own eyes. — Proverbs + ', + 516 => ' + The typical citizen drops down to a lower level of mental + performance as soon as he enters the political field. He argues and + analyzes in a way which he would readily recognize as infantile within + the sphere of his real interests. He becomes a primitive again. + His thinking becomes associative and affective. + — Joseph Aloïs Schumpeter + ', + 517 => ' + “This civilization is rapidly passing away, however. Let us rejoice + or else lament the fact as much as everyone of us likes; + but do not let us shut our eyes to it.” + — Joseph Aloïs Schumpeter in Capitalism, Socialism and Democracy + ', + 518 => ' + “The masses have not always felt themselves to be frustrated and + exploited. But the intellectuals that formulated their views for + them have always told them that they were, without necessarily + meaning by it anything precise.” + — Joseph Aloïs Schumpeter in Capitalism, Socialism, and Democracy + ', + 519 => ' + The stock exchange is a poor substitute for the Holy Grail. + — Joseph Aloïs Schumpeter + ', + 520 => ' + Advice from an old carpenter: Use the right tool for the right job. + ', + 521 => ' + Hypocrisy: A pretense of having a virtuous, moral, or religious character. + ', + 522 => ' + The mob is a society of bodies voluntarily bereaving themselves of + reason, and traversing its work. The mob is man voluntarily descending + to the nature of the beast. — Ralph Waldo Emerson + ', + 523 => ' + A mob kills the wrong man was flashed in a newspaper headline lately. + ', + 524 => ' + Most people have two reasons for doing anything — a good reason, and + the real reason. + ', + 525 => ' + Formatted to fit your screen. + ', + 526 => ' + Magary’s Principle: + When there is a public outcry to cut deadwood and fat from any + government bureaucracy, it is the deadwood and the fat that do + the cutting, and the public’s services are cut. + ', + 527 => ' + Priming: The phenomenon whereby exposure to one stimulus influences + a response to a subsequent stimulus, without conscious guidance + or intention. + ', + 528 => ' + Absence of evidence is not evidence of absence. + ', + 529 => ' + YAML sucks. + ', + 530 => ' + Kubernetes sucks. + ', + 531 => ' + Sacred cow: An idea, custom, person, or institution unreasonably + held to be immune to criticism. + ', + 532 => ' + Everybody wants to be a cat. + ', + 533 => ' + Today is what happened to yesterday. + ', + 534 => ' + The questions remain the same. The answers are eternally variable. + ', + 535 => ' + You want it in one line? Does it have to fit in 80 columns? + — Larry Wall + ', + 536 => ' + As long as the answer is right, who cares if the question is wrong? + ', + 537 => ' + “The belly is an ungrateful wretch, it never remembers past favors, + it always wants more tomorrow.” + — Aleksandr Solzhenitsyn in One Day in the Life of Ivan Denisovich + ', + 538 => ' + “Beat a dog once and you only have to show him the whip.” + — Aleksandr Solzhenitsyn in One Day in the Life of Ivan Denisovich + ', + 539 => ' + Truth has no special time of its own. Its hour is now — always. + — Albert Schweitzer + ', + 540 => ' + My computer can beat up your computer. — Karl Lehenbauer + ', + 541 => ' + Curiosity killed the cat, but satisfaction brought her back to life. + ', + 542 => ' + If you are good, you will be assigned all the work. If you are real + good, you will get out of it. + ', + 543 => ' + What orators lack in depth they make up in length. + ', + 544 => ' + You climb to reach the summit, but once there, discover that all roads + lead down. — Stanislaw Lem in “The Cyberiad” + ', + 545 => ' + The people sensible enough to give good advice are usually sensible + enough to give none. + ', + 546 => ' + Freedom of the press is for those who happen to own one. + — A.J. Liebling + ', + 547 => ' + What we cannot speak about we must pass over in silence. + — Wittgenstein + ', + 548 => ' + The way of the world is to praise dead saints and prosecute live ones. + — Nathaniel Howe + ', + 549 => ' + “Has it ever occurred to you, Winston, that by the year 2050, at the + very latest, not a single human being will be alive who could + understand such a conversation as we are having now?” + — George Orwell’s 1984 + ', + 550 => ' + “With software there are only two possibilities: either the users + control the programme or the programme controls the users. If + the programme controls the users, and the developer controls + the programme, then the programme is an instrument of unjust power.” + — Richard Stallman + ', + 551 => ' + Learned men are the cisterns of knowledge, not the fountainheads. + ', + 552 => ' + You can go anywhere you want if you look serious and carry a clipboard. + ', + 553 => ' + Look! Before our very eyes, the future is becoming the past. + ', + 554 => ' + Linux is obsolete. — Andrew Tanenbaum + ', + 555 => ' + Every man thinks God is on his side. — Jean Anouilh, “The Lark” + ', + 556 => ' + Man is by nature a political animal. — Aristotle + ', + 557 => ' + Be not deceived: evil communications corrupt good manners. + ', + 558 => ' + Divide first, then conquer. + ', + 559 => ' + The game is rigged. + ', + 560 => ' + This service is no longer available. + ', + 561 => ' + Gamification: The application of game-design elements and + game principles in non-game contexts. + ', + 562 => ' + You made this? I made this. + ', + 563 => ' + “Tomorrow’s illiterate will not be the man who can’t read; + he will be the man who has not learned how to learn.” + — Alvin Toffler’s Future Shock + ', + 564 => ' + How users read on the web: They don’t. — Jakob Nielsen + ', + 565 => ' + Wilt thou set thine eyes upon that which is not? For riches + certainly make themselves wings; they fly away as + an eagle toward heaven. — Proverbs + ', + 566 => ' + Maybe GitHub was down? + ', + 567 => ' + Babylon was taken in one night. + ', + 568 => ' + Move fast and fix things. + ', + 569 => ' + Sharp like an edge of a samurai sword. + The mental blade cuts through flesh and bone. + Though my mind’s at peace, the world’s out of order. + Missing the inner heat, life gets colder. + — Nujabes’ Battlecry, Shing02 + ', + 570 => ' + A freelancer. + A battle cry of a hawk make a dove fly and a tear dry. + Wonder why a lone wolf don’t run with a clan. + Only trust your instincts and be one with the plan. + — Nujabes’ Battlecry, Shing02 + ', + 571 => ' + The ultimate reward is honor, not awards. + At odds with the times in wars with no lords. + — Nujabes’ Battlecry, Shing02 + ', + 572 => ' + “You never change things by fighting the existing reality. + To change something, build a new model that makes the existing model obsolete.” + — Richard Buckminster ‘Bucky’ Fuller + ', + 573 => ' + “If you have always believed that everyone should play by the same rules and be + judged by the same standards, that would have gotten you labeled a radical 50 years ago, + a liberal 25 years ago and a racist today.” + — Thomas Sowell, born in the 1930’s + ', + 574 => ' + The web is not just Firefox or Chrome. + ', + 575 => ' + The algorithm is your boss. + ', + 576 => ' + Who needs documentation anyway? + ', + 577 => ' + “Sooner or later, everything old is new again.” + ― Stephen King, The Colorado Kid + ', + 578 => ' + Public Service Announcement: The production of great leaders has + been discontinued. + ', + 579 => ' + Three questions that would destroy most arguments: Compared to what? + At what cost? What hard evidence do you have? — Thomas Sowell + ', + 580 => ' + “Less than fifty years after the amazing scientific discoveries under Mamun, + the Arab Empire collapsed. Wonderful and beneficent as was the + progress of science, it did not save the empire from chaos.” + ― John Bagot Glubb in The Fate of Empires and Search for Survival + ', + 581 => ' + “Another remarkable and unexpected symptom of national decline is the + intensification of internal political hatreds. One + would have expected that, when the survival + of the nation became precarious, political + factions would drop their rivalry and stand + shoulder-to-shoulder to save their country.” + ― John Bagot Glubb in The Fate of Empires and Search for Survival + ', + 582 => ' + “In short, numbers are accepted as evidence when they agree with + preconceptions, but not when they don’t.” + ― Thomas Sowell in The Vision of the Anointed + ', + 583 => ' + “Civilizations die from suicide, not by murder.” + ― Arnold Toynbee + ', + 584 => ' + “Throughout history many nations have suffered a physical defeat, + but that has never marked the end of a nation. But when a + nation has become the victim of a psychological defeat, + then that marks the end of a nation.” + ― Ibn Khaldun in The Muqaddimah: An Introduction to History, 1377 + ', + 585 => ' + You are not authorized to repair this device. + ', + 586 => ' + Minority rule. Majority rule. + ', + 587 => ' + Up and down go the arguers getting nowhere fast. + ', + 588 => ' + Echo chambers and epistemic bubbles. + ', + 589 => ' + What’s old is new again. + ', + 590 => ' + Cease and desist. + ', + 591 => ' + The network effect. + ', + 592 => ' + “Let us not look back in anger, nor forward in fear, but + around us in awareness.” ― James Thurber + ', + 593 => ' + We are experiencing system trouble ― do not adjust your terminals. + ', + 594 => ' + We the unwilling, led by the ungrateful, are doing the impossible. + We’ve done so much, for so long, with so little, + that we are now qualified to do something with nothing. ― Unknown + ', + 595 => ' + Politics is the ability to foretell what is going to happen tomorrow, next + week, next month, and next year. And to have the ability afterwards to + explain why it didn’t happen. ― Winston Churchill + ', + 596 => ' + Knocked, you weren’t in. ― Opportunity + ', + 597 => ' + Information asymmetry. + ', + 598 => ' + Gilb’s First Law of Unreliability: + Computers are unreliable, but humans are even more + unreliable. Corollary: At the source of every error which is + blamed on the computer you will find at least two + human errors, including the error of blaming it on + the computer. + ', + 599 => ' + Gilb’s Second Law of Unreliability: + Any system which depends on human reliability is + unreliable. + ', + 600 => ' + Gilb’s Third Law of Unreliability: + Undetectable errors are infinite in variety, in + contrast to detectable errors, which by definition are limited. + ', + 601 => ' + Gilb’s Fourth Law of Unreliability: + Investment in reliability will increase until it exceeds the + probable cost of errors, or until someone insists on getting + some useful work done. + ', + 602 => ' + You get what you pay for. + ', + 603 => ' + Make a wish, it just might come true. + ', + 604 => ' + It is easier to change the specification to fit the program + than vice versa. + ', + 605 => ' + Politicians speak for their parties, and parties never are, never have + been, and never will be wrong. ― Walter Dwight + ', + 606 => ' + Too clever is dumb. Too dumb is clever. + ', + 607 => ' + Made with real ingredients. + ', + 608 => ' + All that is gold does not glitter, not all those who wander are lost. + ', + 609 => ' + Just because a message may never be received does not mean it is + not worth sending. + ', + 610 => ' + A novice was trying to fix a broken lisp machine by turning the + power off and on. Knight, seeing what the student was doing spoke sternly, + “You cannot fix a machine by just power-cycling it with no understanding + of what is going wrong.” Knight turned the machine off and on. The + machine worked. + ', + 611 => ' + One size fits all, doesn’t fit anyone. + ', + 612 => ' + Something’s rotten in the state of Denmark. ― Shakespeare + ', + 613 => ' + All generalizations are false, including this one. + ― Unknown + ', + 614 => ' + No snowflake in an avalanche ever feels responsible. + ', + 615 => ' + Shut off the engine before fueling. + ', + 616 => ' + There’s an old proverb that says just about what ever you want it to. + ', + 617 => ' + There’s a quote that says just about what ever you want it to. + ', + 618 => ' + Perhaps one possible reason that things aren’t going according to plan + is that there never was a plan in the first place. + ', + 619 => ' + Rules, Regulations, and Requirements. + ', + 620 => ' + Bots. Bots everywhere. + ', + 621 => ' + Remember, Grasshopper, falling down 1000 stairs begins by tripping over + the first one. ― Confusion + ', + 622 => ' + Money makes the world go round. Nothing more, nothing less. + ', + 623 => ' + If complexity got us into this mess, then why can’t it get us out? + ', + 624 => ' + The Four Olds: Old Customs, Old Culture, Old Habits, and Old Ideas + ', + 625 => ' + What is the opposite of clickbait? + ', + 626 => ' + Might makes right: History is written by the victors. + ', + 627 => ' + You cannot stop link rot. + ', + 628 => ' + When in trouble or in doubt, + run in circles, scream and shout. + ', + 629 => ' + The biggest problem with communication is the illusion that it has occurred. + ', + 630 => ' + “Of all men’s miseries the bitterest is this: to know so much and + to have control over nothing.” + ― Herodotus, The Histories + ', + 631 => ' + Click Farm: A place where a large group of workers are hired + to click on paid advertising links. + ', + 632 => ' + There are two sides to every issue: one side is right and the + other is wrong, but the middle is always evil. The man who is + wrong still retains some respect for truth, if only by accepting + the responsibility of choice. But the man in the middle is the + knave who blanks out the truth in order to pretend that no + choice or values exist. ― Ayn Rand, Atlas Shrugged + ', + 633 => ' + If wishes were horses, beggars would ride. + ', + 634 => ' + The best lack all conviction, while the worst + are full of passionate intensity. + ― William Butler Yeats, The Second Coming + ', + 635 => ' + NixOS sucks. + ', + 636 => ' + Software is utterly broken. + ', + 637 => ' + To continue reading, subscribe today. + ', + 638 => ' + The man who does not read code has no advantage + over the man who cannot read code. + ', + 639 => ' + Fortune favors the fortunate. + ', + 640 => ' + It is much easier to suggest solutions when you know + nothing about the problem. + ', + 641 => ' + The trouble with computers is that they do what you tell them, not what + you want. ― D. Cohen + ', + 642 => ' + War is delightful to those who have had no experience of it. + ― Desiderius Erasmus Roterodamus + ', + 643 => ' + Every so often the algorithm consults /dev/random for advice. + ', + 644 => ' + Everyone thinks they are reasonable. + ', + 645 => ' + It’s only a matter of time. + ', + 646 => ' + The well has been poisoned. + ', + 647 => ' + Zero trust. + ', + 648 => ' + Lisp, Lisp, Lisp Machine, + Lisp Machine is Fun. + Lisp, Lisp, Lisp Machine, + Fun for everyone. + ', + 649 => ' + Don’t panic. + ', + 650 => ' + We are inclined to believe those we do not know, because they have + never deceived us. ― Samuel Johnson + ', + 651 => ' + Knowledge is of two kinds. We know a subject ourselves, or + we know where we can find information upon it. + ― Samuel Johnson + ', + 652 => ' + Join in on the new game that’s sweeping the country. + It’s called “Bureaucracy”. Everybody stands in a circle. + The first person to do anything loses. Start! + ', + 653 => ' + An optimist believes we live in the best world possible; + a pessimist fears that this is true. + ', + 654 => ' + As of next week, passwords will be entered in morse code. + ', + 655 => ' + If life is merely a game, the question still remains: for whose amusement? + ', + 656 => ' + Just read the instructions. + ', + 657 => ' + Like, subscribe, and hit the bell icon. + ', + 658 => ' + All systems operational. + ', + 659 => ' + Justice standeth afar off. + ', + 660 => ' + Speak your mind at your own peril. + ', + 661 => ' + My hammer is better than your hammer. + ', + 662 => ' + The question of whether computers can think is just like the question of + whether submarines can swim. ― Edsger W. Dijkstra + ', + 663 => ' + Weiner’s Law of Libraries: There are no answers, only cross references. + ', + 664 => ' + Nothing is ever a total loss; it can always serve as a bad example. + ', + 665 => ' + Meader’s Law: What ever happens to you, it will previously + have happened to everyone you know, only more so. + ', + 666 => ' + Most seminars have a happy ending. Everyone’s glad when they’re over. + ', + 667 => ' + He who fights and runs away lives to fight another day. + ', + 668 => ' + Youth is when you blame all your troubles on your parents; maturity is + when you learn that everything is the fault of the younger generation. + ', + 669 => ' + Reading is to the mind what exercise is to the body. + ', + 670 => ' + Never put off until tomorrow what you can do today. There might be a + law against it by that time. + ', + 671 => ' + Wisdom is better than weapons of war. + ', + 672 => ' + Put all eggs in one basket. Make sure to count them before they hatch. + ', + 673 => ' + “Please, sir, I want some more.” ― Charles Dickens, Oliver Twist + ', + 674 => ' + The wise man’s eyes are in his head. + ', + 675 => ' + Bread and circuses. + ', + 676 => ' + The forty―eight laws of weakness. + ', + 677 => ' + Silent majorities, loud minorities. + ', + 678 => ' + The poor is hated even of his own neighbour: + but the rich hath many friends. + ― Proverbs + ', + 679 => ' + Beware of those who talk a good metagame. + ', + 680 => ' + Just because you can, doesn’t mean you should. + ', + 681 => ' + Even if you can deceive people about a product + through misleading statements, + sooner or later the product will speak for itself. + ― Hajime Karatsu + ', + 682 => ' + Normal times may possibly be over forever. + ', + 683 => ' + Many people are desperately looking for some wise advice which will + recommend that they do what they want to do. + ', + 684 => ' + Did it ever occur to you that fat chance and slim chance + mean the same thing? Or that we drive on parkways and park + on driveways? + ', + 685 => ' + To believe in personal responsibility would be to destroy the whole + special role of the anointed, whose vision casts them in the role + of rescuers of people treated unfairly by society. + ― Thomas Sowell, The Vision of the Anointed: Self-Congratulation + as a Basis for Social Policy + ', + 686 => ' + Why be difficult when, with a bit of effort, you could + be impossible? + ', + 687 => ' + Those who don’t know, talk. Those who don’t talk, know. + ', + 688 => ' + No one lives forever. + ', + 689 => ' + Dark Pattern: An interface that has been carefully crafted to + mislead a user. + ', + 690 => ' + When a fellow says, “It ain’t the money but the principle of the thing,” + it’s the money. ― Kim Hubbard + ', + 691 => ' + Major premise: Sixty men can do sixty times as much work as one man. + Minor premise: A man can dig a posthole in sixty seconds. + Conclusion: Sixty men can dig a posthole in one second. + ― The Devil’s Dictionary + ', + 692 => ' + Does freedom of speech actually exist? + ', + 693 => ' + Let’s count the beans. + ', + 694 => ' + The uploader has not made this video available in your country. + ', + 695 => ' + Clickbait works every time. + ', + 696 => ' + You can be replaced by this computer, maybe. + ', + 697 => ' + People will do tomorrow what they did today because that is what they + did yesterday. + ', + 698 => ' + Everything might be different in the present if only one thing had + been different in the past. + ', + 699 => ' + Fiefdoms still exist. + ', + 700 => ' + Where there is a personality, there is a cult. + ', + 701 => ' + Look on my Works, ye Mighty, and despair! + Nothing beside remains. ― Percy Bysshe Shelley’s Ozymandias + ', + 702 => ' + Everything ends badly. Otherwise it wouldn’t end. + ', + 703 => ' + Imagine if every Thursday your shoes exploded if you tied them the usual + way. This happens to us all the time with computers, and nobody thinks of + complaining. ― Jeff Raskin + ', + 704 => ' + Utility is when you have one telephone, luxury is when you have two, + opulence is when you have three ― and paradise is when you have none. + ― Doug Larson + ', + 705 => ' + It is fortune, not wisdom, that rules man’s life. + ', + 706 => ' + Fact or Opinion. + ', + 707 => ' + Even the earth itself cannot contain all the evil. + ', + 708 => ' + Many are called, few are chosen. Fewer still get to do the choosing. + ', + 709 => ' + “Liberty is always dangerous, but it is the safest thing we have.” + ― Harry Emerson Fosdick + ', + 710 => ' + People who claim they don’t let little things bother them have never + slept in a room with a single mosquito. + ', + 711 => ' + Now there was found in it a poor wise man, and he by his wisdom + delivered the city; yet no man remembered that same poor man. + — Ecclesiastes + ', + 712 => ' + If you’re happy, you’re successful. + ', + 713 => ' + The Internet is the greatest game of telephone in existence. + ', + 714 => ' + Crush the competition. + ', + 715 => ' + Buy the competition. + ', + 716 => ' + Those of you who think you know everything are annoying to those of + us who do. + ', + 717 => ' + It is easier to find people fit to govern themselves than + people fit to govern others. — Lord Acton + ', + 718 => ' + “Everybody likes to get as much power as circumstances + allow, and nobody will vote for a self-denying ordinance.” + — Lord Acton + ', + 719 => ' + “Official truth is not actual truth.” — Lord Acton + ', + 720 => ' + Welcome to dependency hell. + ', + 721 => ' + Talk is truly cheap. + ', + 722 => ' + This website is too bloated. + ', + 723 => ' + After the game the king and the pawn go in the same box. + — Italian Proverb + ', + 724 => ' + Experience is a good teacher, but she sends in terrific bills. + — Minna Antrim, “Naked Truth and Veiled Allusions” + ', + 725 => ' + It’s a good thing we don’t get all the government we pay for. + ', + 726 => ' + The kind of danger people most enjoy is the kind they can watch from + a safe place. + ', + 727 => ' + The truth eventually comes out. + ', + 728 => ' + Newer isn’t always better. + ', + 729 => ' + He who foresees calamities suffers them twice over. + ', + 730 => ' + Sometimes you don’t get what you pay for. + ', + 731 => ' + Always sort by controversial. + ', + 732 => ' + Once they go up, who cares where they come down? + That’s not my department. + ', + 733 => ' + And what might your name be? “Alexander.” So, you can talk? + “Y-Yes, sir.” Take him back! He can still talk! + — Pinocchio’s Pleasure Island + ', + 734 => ' + Flattery will get you everywhere. + ', + 735 => ' + According to the latest official figures, 43% of all + statistics are totally worthless. + ', + 736 => ' + Unix Express: All passengers bring a piece of the aeroplane and a + box of tools with them to the airport. They gather on + the tarmac, arguing constantly about what kind of plane + they want to build and how to put it together. Eventually, + the passengers split into groups and build several different aircraft, + but give them all the same name. Some passengers actually + reach their destinations. All passengers believe they got there. + ', + 737 => ' + The network effect is powerful. + ', + 738 => ' + The strong give up and move away, while the weak give up and stay. + ', + 739 => ' + Academic politics is the most vicious and bitter form of politics, + because the stakes are so low. — Wallace Sayre + ', + 740 => ' + Stolen waters are sweet. + ', + 741 => ' + “The reasonable man adapts himself to the world: the unreasonable + one persists in trying to adapt the world to himself. Therefore + all progress depends on the unreasonable man.” + — George Bernard Shaw, Man and Superman + ', + 742 => ' + As I pass through my incarnations in every age and race, + I make my proper prostrations to the Gods of the market-place. + — Rudyard Kipling, The Gods of the Copybook Headings + ', + 743 => ' + Maybe users like spam? + ', + 744 => ' + Appeal to Novelty: It’s current year, you’re wrong. + ', + 745 => ' + A poor man that oppresseth the poor is like a sweeping rain which + leaveth no food. — Proverbs + ', + 746 => ' + Talking past each other: A situation where two or more people talk + about different subjects, while believing that they are talking + about the same thing. + ', + 747 => ' + Not all problems need technological solutions. + ', + 748 => ' + Many times a technical solution merely replaces old problems with + new ones. + ', + 749 => ' + The cheapest, fastest, and most reliable components are those that + aren’t there. — Gordon Bell + ', + 750 => ' + Controlling complexity is the essence of computer programming. + — Brian Kernighan + ', + 751 => ' + UNIX was not designed to stop its users from doing stupid things, + as that would also stop them from doing clever things. — Doug Gwyn + ', + 752 => ' + Life is too short to run proprietary software. — Bdale Garbee + ', + 753 => ' + The central enemy of reliability is complexity. — Geer + ', + 754 => ' + Essentially everyone, when they first build a distributed + application, makes the following eight assumptions. + All prove to be false in the long run and all cause big + trouble and painful learning experiences. + (1) The network is reliable. + (2) Latency is zero. + (3) Bandwidth is infinite. + (4) The network is secure. + (5) Topology doesn’t change. + (6) There is one administrator. + (7) Transport cost is zero. + (8) The network is homogeneous. + — Peter Deutsch + ', + 755 => ' + Most software today is very much like an Egyptian + pyramid with millions of bricks piled on top of each other, + with no structural integrity, but just done by brute force + and thousands of slaves. — Alan Kay + ', + 756 => ' + Complexity kills. It sucks the life out of developers, + it makes products difficult to plan, build and test, + it introduces security challenges and it causes end-user + and administrator frustration. — Ray Ozzie + ', + 757 => ' + Increasingly, people seem to misinterpret complexity as + sophistication, which is baffling—the incomprehensible should + cause suspicion rather than admiration. Possibly this trend + results from a mistaken belief that using a somewhat + mysterious device confers an aura of power on the user. + — Niklaus Wirth + ', + 758 => ' + My definition of an expert in any field is a person who + knows enough about what’s really going on to be scared. + — P. J. Plauger + ', + 759 => ' + The best code is no code at all. + ', + 760 => ' + The most amazing achievement of the computer software + industry is its continuing cancellation of the steady + and staggering gains made by the computer hardware industry. + — Henry Petroski + ', + 761 => ' + Software sucks because users demand it to. — Nathan Myhrvold + ', + 762 => ' + Join in on the new game that’s sweeping the world. + It’s called “Corruption”. Every Government stands in a circle. + The first one to improve the state of the country loses. Begin! + ', + 763 => ' + Are most politicians liars? + ', + 764 => ' + Flights of fancy. + ', + 765 => ' + Shill: A plant or a stooge who publicly helps or gives + credibility to a person or organization without disclosing + that they have a close relationship with the person or organization. + ', + 766 => ' + It’s almost time to pay the piper. + ', + 767 => ' + Planned Obsolescence: A policy of planning or designing a product + with an artificially limited useful life, so that it becomes obsolete. + ', + 768 => ' + The genius of our ruling class is that it has kept a majority of the + people from ever questioning the inequity of a system where most people + drudge along paying heavy taxes for which they get nothing in return. + — Gore Vidal + ', + 769 => ' + Specifications subject to change without notice. + ', + 770 => ' + Good leaders being scarce, following yourself is now allowed. + ', + 771 => ' + Three rules for sounding like an expert: + (1) Oversimplify your explanations to the point of uselessness. + (2) Always point out second-order effects, but never point out when they + can be ignored. + (3) Come up with three rules of your own. + ', + 772 => ' + When you’re down and out, lift up your voice and shout, + “I’M DOWN AND OUT”! + ', + 773 => ' + One planet is all you get. + ', + 774 => ' + “Information is power. But like all power, there are those who want + to keep it for themselves.” + ― Aaron Swartz + ', + 775 => ' + This page intentionally left blank. + ', + 776 => ' + Books are better than the Internet. + ', + 777 => ' + It’s difficult to get a man to understand something when his salary depends + on his not understanding it. + ', + 778 => ' + Sometimes the only winning move is not to play. + ', + 779 => ' + This economy is not sustainable. + ', + 780 => ' + One weird trick advertisements. + ', + 781 => ' + A clever prophet makes sure of the event first. + ', + 782 => ' + And miles to go before I sleep. + — Robert Frost + ', + 783 => ' + Committees have become so important nowadays that subcommittees have to + be appointed to do the work. + ', + 784 => ' + The high cost of living hasn’t affected its popularity. + ', + 785 => ' + Always wear your seat belt. + ', + 786 => ' + People actually believe what they read on social media. + ', + 787 => ' + Contestants have been briefed on some of the questions before the show. + ', + 788 => ' + Mankind is poised midway between the gods and the beasts. + — Plotinus + ', + 789 => ' + People want either less corruption or more of a chance to + participate in it. + ', + 790 => ' + While you don’t greatly need the outside world, it’s still very + reassuring to know that it’s still there. + ', + 791 => ' + Clovis’ Consideration of an Atmospheric Anomaly: + The perversity of nature is nowhere better demonstrated + than by the fact that, when exposed to the same atmosphere, + bread becomes hard while crackers become soft. + ', + 792 => ' + Everything that can be invented has been invented. + — Charles Duell + ', + 793 => ' + Where do you think you’re going today? + ', + 794 => ' + Education is what survives when what has been learnt has been forgotten. + — B. F. Skinner + ', + 795 => ' + There’s no heavier burden than a great potential. + ', + 796 => ' + Blutarsky’s Axiom: Nothing is impossible for the man who will not + listen to reason. + ', + 797 => ' + One man tells a falsehood, a hundred repeat it as the truth. + ', + 798 => ' + A complex system that works is invariably found to have evolved from a + simple system that works. + ', + 799 => ' + Larkinson’s Law: All laws are basically false. + ', + 800 => ' + What fools these mortals be. — Lucius Annaeus Seneca + ', + 801 => ' + Time and tide wait for no man. + ', + 802 => ' + Talk is cheap because supply always exceeds demand. + ', + 803 => ' + One nuclear bomb can ruin your whole day. + ', + 804 => ' + Are you making all this up as you go along? + ', + 805 => ' + One man’s utopia is another man’s dystopia. + ', + 806 => ' + Thanks for coming to my TED talk. + ', + 807 => ' + Redundant topology. + ', + 808 => ' + Their business model is spam. + ', + 809 => ' + Teamwork is essential — it allows you to blame someone else. + ', + 810 => ' + “When I die, I want the people I did group projects with to lower + me into my grave so they can let me down one last time.” + ', + 811 => ' + The Internet is utterly broken. + ', + 812 => ' + If Bill Gates is the devil then Linus Torvalds must be the messiah. + — Unknown + ', + 813 => ' + Some men are discovered; others are found out. + ', + 814 => ' + Folly is set in great dignity. + ', + 815 => ' + “Hard times create strong men. Strong men create good times. + Good times create weak men. And, weak men create hard times.” + — G. Michael Hopf, Those Who Remain + ', + 816 => ' + The time for action is past! Now is the time for senseless bickering. + ', + 817 => ' + If the grass is greener on other side of fence, consider what may be + fertilizing it. + ', + 818 => ' + Cheer Up! Things are getting worse at a slower rate. + ', + 819 => ' + Never promise more than you can perform. — Publilius Syrus + ', + 820 => ' + New systems generate new problems. + ', + 821 => ' + Regression Analysis: Mathematical techniques for trying to + understand why things are getting worse. + ', + 822 => ' + The Linux philosophy is “laugh in the face of danger”. + Oops. Wrong one. “Do it yourself”. That’s it. — Linus Torvalds + ', + 823 => ' + “In the future, everyone will be world famous for 15 + minutes.” — Andy Warhol + ', + 824 => ' + A small town that cannot support one lawyer can always support two. + ', + 825 => ' + To refuse praise is to seek praise twice. + ', + 826 => ' + When you have an efficient government, you have a dictatorship. + — Harry Truman + ', + 827 => ' + If you think things can’t get worse it’s probably only because you + lack sufficient imagination. + ', + 828 => ' + The following statement is not true. The previous statement is true. + ', + 829 => ' + Nearly every complex solution to a programming problem that I + have looked at carefully has turned out to be wrong. — Brent Welch + ', + 830 => ' + “Justice at all costs’ is not justice.” + — Thomas Sowell, The Quest for Cosmic Justice + ', + 831 => ' + “Suppose you are wrong? How would you know? + How would you test for that possibility?” + ― Thomas Sowell + ', + 832 => ' + “Life does not ask what we want. It presents us with options.” + ― Thomas Sowell + ', + 833 => ' + Throw away documentation and manuals, + and users will be a hundred times happier. + Throw away privileges and quotas, + and users will do the right thing. + Throw away proprietary and site licenses, + and there won’t be any pirating. + If these three aren’t enough, + just stay at your home directory + and let all processes take their course. + ', + 834 => ' + Call for pricing. + ', + 835 => ' + Monopolies of knowledge. + ', + 836 => ' + Unemployment is unused capacity. + ', + 837 => ' + Yet creeds mean very little, Coth answered the dark god, still speaking + almost gently. The optimist proclaims that we live in the best of all + possible worlds; and the pessimist fears this is true. + ― James Cabell, “The Silver Stallion” + ', + 838 => ' + Bikeshedding: The process of arguing endlessly over details of some small + and relatively unimportant thing. + ', + 839 => ' + “Unfortunately, propaganda works.” ― Andy Rooney + ', + 840 => ' + Mac Airways: + The cashiers, flight attendants and pilots all look the same, feel the same + and act the same. When asked questions about the flight, they reply that you + don’t want to know, don’t need to know and would you please return to your + seat and watch the movie. + ', + 841 => ' + A lie can travel halfway around the world before the truth can get its boots on. + ', + 842 => ' + Falsehood will fly, as it were, on the wings of the wind, and carry its tales + to every corner of the earth; whilst truth lags behind; her steps, + though sure, are slow and solemn. ― Thomas Francklin + ', + 843 => ' + Those who think they know everything are very annoying to those of us who + feel that we know everything, especially when we discover that + everything they know and everything we know does not match. + ', + 844 => ' + We are not anticipating any emergencies. + ', + 845 => ' + When ever someone tells you to take their advice, you can be pretty sure + that they’re not using it. + ', + 846 => ' + Some men are born mediocre, some men achieve mediocrity, and some men + have mediocrity thrust upon them. ― Joseph Heller’s Catch-22 + ', + 847 => ' + In the whole world you know, there’s a million boys and girls. + ― Nina Simone, To Be Young, Gifted and Black + ', + 848 => ' + Plastic Love. + ', + 849 => ' + Watson’s Law: The reliability of machinery is inversely proportional to the + number and significance of any persons watching it. + ', + 850 => ' + The danger is not that a particular class is unfit to govern. Every class + is unfit to govern. ― Lord Acton + ', + 851 => ' + Everyone says that having power is a great responsibility. This is + a lot of bunk. Responsibility is when someone can blame you if something + goes wrong. When you have power you are surrounded by people whose job it + is to take the blame for your mistakes. If they’re smart, that is. + ― Cerebus The Aardvark, “On Governing” + ', + 852 => ' + To err is human. To blame someone else for your mistakes is even more human. + ', + 853 => ' + When the wicked rise, men hide themselves: but when they perish, + the righteous increase. ― Proverbs + ', + 854 => ' + YouTube may terminate your access, or your Google account’s access to all + or part of the Service if YouTube believes, in its sole discretion, + that provision of the Service to you is no longer commercially viable. + ― Google’s YouTube, Terms of Service, 2019 + ', + 855 => ' + We may suspend or terminate your account or cease providing you with all or part + of the Services at any time for any or no reason. ― Twitter, Terms of Service, 2020 + ', + 856 => ' + WhatsApp may also terminate a user’s access to the Service, if they are + determined to be a repeat infringer, or for any or no reason, including + being annoying. An annoying person is anyone who is (capriciously or not) + determined to be annoying by authorized WhatsApp employees, agents, subagents, + superagents or superheros. + ― WhatsApp, Terms of Service, 2012 + ', + 857 => ' + We reserve the right to modify or terminate the Instagram service for any + reason, without notice at any time. ― Instagram, Terms of Service, 2013 + ', + 858 => ' + Spotify may terminate the Agreements or suspend your access to the + Spotify Service at any time. ― Spotify, Terms and Conditions, 2019 + ', + 859 => ' + PeerTube: A free and open-source decentralized self-hosted federated video platform. + ', + 860 => ' + Mastodon: A free and open-source self-hosted social networking service. + ', + 861 => ' + The best minds of my generation are thinking about how to make people + click ads. That sucks. ― Jeff Hammerbacher + ', + 862 => ' + We can’t both be right. + ', + 863 => ' + If we all work together, we can totally disrupt the system. + ', + 864 => ' + If you stick your head in the sand, one thing is for sure, you’re gonna + get your rear kicked. + ', + 865 => ' + “Whoever undertakes to set himself up as a judge of truth and knowledge is + shipwrecked by the laughter of the gods.” + ', + 866 => ' + We have the best politicians money can buy. + ', + 867 => ' + Eagleson’s Law: Any code of your own that you haven’t looked at for six or more + months, might as well have been written by someone else. + ', + 868 => ' + It is said an Eastern monarch once charged his wise men to invent him a + sentence to be ever in view, and which should be true and appropriate + in all times and situations. They presented him the words: “And this, + too, shall pass away.” ― Abraham Lincoln + ', + 869 => ' + All things are full of labour; man cannot utter it: the eye is not + satisfied with seeing, nor the ear filled with hearing. ― Ecclesiastes + ', + 870 => ' + “Preaching to the choir in an echo chamber.” + ', + 871 => ' + Every program attempts to expand until it can either read or replace mail. + ', + 872 => ' + Cobra Effect: When an attempted solution to a problem makes the problem worse. + Offering a bounty for every dead venomous cobra incentivizes people to breed + more cobras for the reward. + ', + 873 => ' + He who minds his own business is never unemployed. + ', + 874 => ' + Write a wise saying and your name will live on forever. ― Unknown + ', + 875 => ' + “We live in a world where unfortunately the distinction between true and false + appears to become increasingly blurred by manipulation of facts, + by exploitation of uncritical minds, and by the pollution of the language.” + ― Arne Tiselius + ', + 876 => ' + Corollary to Hanlon’s Razor: Never attribute to stupidity that which + is adequately explained by greed. + ', + 877 => ' + The world is coming to an end. Please log off. + ', + 878 => ' + What ever became of eternal truth? + ', + 879 => ' + Reduce, Reuse, Recycle + ', + 880 => ' + If it works, it’s out of date. + ', + 881 => ' + “I hate quotations. Tell me what you know.” ― Ralph Waldo Emerson + ', + 882 => ' + “Politics is the gentle art of getting votes from the poor and + campaign funds from the rich, by promising to protect each from the other.” + ― Oscar Ameringer + ', + 883 => ' + We prefer to believe that the absence of inverted commas guarantees the + originality of a thought, whereas it may be merely that the utterer has + forgotten its source. ― Clifton Fadiman, “Any Number Can Play” + ', + 884 => ' + Which is worse: ignorance or apathy? Who knows? Who cares? + ', + 885 => ' + “Every record has been destroyed or falsified, every book rewritten, + every picture has been repainted, every statue and street building + has been renamed, every date has been altered. And the process + is continuing day by day and minute by minute. History has stopped. + Nothing exists except an endless present in which the Party is always right.” + ― George Orwell, 1984 + ', + 886 => ' + The same words mean different things to different people. + ', + 887 => ' + Objects are lost only because people look where they are not rather than + where they are. + ', + 888 => ' + If you learn one useless thing every day, in a single year you’ll learn + 365 useless things. + ', + 889 => ' + Phases of a Project: + (1) Exultation. + (2) Disenchantment. + (3) Confusion. + (4) Search for the Guilty. + (5) Punishment for the Innocent. + (6) Distinction for the Uninvolved. + ', + 890 => ' + Banana Republic: A politically unstable country with an economy + dependent upon a limited-resource product. + ', + 891 => ' + Throw-away Society: A society with an excessive production of short-lived + or disposable items over durable goods that can be repaired. + ', + 892 => ' + Got a dictionary? I want to know the meaning of life. + ', + 893 => ' + Apparently any program which runs right is obsolete. + ', + 894 => ' + Good government never depends upon laws, but upon the personal qualities of + those who govern. The machinery of government is always subordinate to the + will of those who administer that machinery. The most important element of + government, therefore, is the method of choosing leaders. + ― Frank Herbert, “Children of Dune” + ', + 895 => ' + The majesty and grandeur of the English language; it’s the greatest possession + we have. The noblest thoughts that ever flowed through the hearts of men are + contained in its extraordinary, imaginative and musical mixtures of sounds. + ― George Bernard Shaw, My Fair Lady + ', + 896 => ' + If we all work together, we can make the rich richer. + ', + 897 => ' + Always read the fine print. + ', + 898 => ' + Politics and the fate of mankind are formed by men without ideals and without + greatness. Those who have greatness within them do not go in for politics. + ― Albert Camus + ', + 899 => ' + And the best at murder are those who preach against it. + And the best at hate are those who preach love. + And the best at war finally are those who preach peace. + ― Charles Bukowski, “The Genius Of The Crowd” + ', + 900 => ' + Conway’s Law: Any organization that designs a system will produce a design + whose structure is a copy of the organization’s communication structure. + ', + 901 => ' + If you don’t read the newspaper you are uninformed; if you do read the + newspaper you are misinformed. + ', + 902 => ' + “There are only two kinds of languages: the ones people complain about + and the ones nobody uses.” ― Bjarne Stroustrup + ', + 903 => ' + Con man: A confidence man. + ', + 904 => ' + “Decadence is a moral and spiritual disease, resulting from too long a + period of wealth and power, producing cynicism, decline of religion, + pessimism and frivolity. The citizens of such a nation will no + longer make an effort to save themselves, because they are not + convinced that anything in life is worth saving.” + ― John Bagot Glubb, The Fate of Empires and Search for Survival + ', + 905 => ' + A committee is organic rather than mechanical in its nature: it + is not a structure but a plant. It takes root and grows, it + flowers, wilts, and dies, scattering the seed from which other + committees will bloom in their turn. ― C. Northcote Parkinson + ', + 906 => ' + You too can be a confidence man or woman! + ', + 907 => ' + When you’re in command, command. ― Admiral Nimitz + ', + 908 => ' + Life is fraught with opportunities to keep your mouth shut. + ', + 909 => ' + Moreover the profit of the earth is for all: the king himself + is served by the field. ― Ecclesiastes + ', + 910 => ' + The golden boy can do no wrong. + ', + 911 => ' + Everyone who comes in here wants three things: + (1) They want it quick. + (2) They want it good. + (3) They want it cheap. + ', + 912 => ' + If you don’t do the things that are not worth doing, who will? + ', + 913 => ' + Somehow, the world always affects you more than you affect it. + ', + 914 => ' + Cheap labour. + ', + 915 => ' + The last person that quit or was fired will be held responsible for + everything that goes wrong ― until the next person quits or is fired. + ', + 916 => ' + Journalism is dead. + ', + 917 => ' + To have respect of persons is not good: for for a piece of bread + that man will transgress. ― Proverbs + ', + 918 => ' + Nothing lasts forever. + ', + 919 => ' + Where is my flying car? + ', + 920 => ' + This is disputed. + ', + 921 => ' + Sometimes, the best solution is to do nothing at all. + ', + 922 => ' + Don’t build your house on the sand. + ', + 923 => ' + It is a hard matter, my fellow citizens, to argue with the belly, + since it has no ears. ― Marcus Porcius Cato + ', + 924 => ' + Propaganda is one hell of a drug. + ', + 925 => ' + The Three Wise Monkeys: See no evil, hear no evil, and speak no evil. + ', + 926 => ' + As for man, his days are as grass: as a flower of the field, so he flourisheth. + For the wind passeth over it, and it is gone; and the place thereof shall + know it no more. — David + ', + 927 => ' + You must prove that you are not a robot. + ', + 928 => ' + There’s nothing remarkable about it. All one has to do is hit the right + keys at the right time and the instrument plays itself. – J. S. Bach + ', + 929 => ' + If this is a service economy, why is the service so bad? + ', + 930 => ' + There is a sore evil which I have seen under the sun, namely, + riches kept for the owners thereof to their hurt. + But those riches perish by evil travail: + and he begetteth a son, and there is nothing in his hand. — Ecclesiastes + ', + 931 => ' + Thus, not all data is created equal. + ', + 932 => ' + Argument From Authority: A popular yet controversial type of argument in + which the opinion of an authority on a topic is used as evidence to + support an argument. + ', + 933 => ' + Sock Puppet: A fake online identity used for the purpose of deception. + Deception, be it fast or slow, can involve black or grey propaganda to + manipulate public opinion. + ', + 934 => ' + To be forewarned is to be forearmed. + ', + 935 => ' + It’s the worst of both worlds. + ', + 936 => ' + “All of humanity’s problems stem from man’s inability to sit quietly + in a room alone.” — Blaise Pascal, Pensées + ', + 937 => ' + “The devil is not as black as he is painted.” + — Dante Alighieri, The Divine Comedy + ', + 938 => ' + Don’t be a shill. + ', + 939 => ' + Philosophy: A route of many roads leading from nowhere to nothing. + — Ambrose Bierce + ', + 940 => ' + Heller’s Law: The first myth of management is that it exists. + Johnson’s Corollary: Nobody really knows what is going on anywhere + within the organization. + ', + 941 => ' + Become a Lord or Lady today! + ', + 942 => ' + “Created by wars that required it, the machine now created the wars it + required.” — Joseph Aloïs Schumpeter, Imperialism and Social Classes + ', + 943 => ' + “History is a record of “effects” the vast majority of which nobody + intended to produce.” — Joseph Aloïs Schumpeter + ', + 944 => ' + Many arguments are semantic disputes. + ', + 945 => ' + Never underestimate the bandwidth of a station wagon full of tapes + hurtling down the highway. — Andrew S. Tanenbaum + ', + 946 => ' + Winning Arguments: There is no evidence to support your assertion. + ', + 947 => ' + Most of what you read on the Internet is written by insane people. + ', + 948 => ' + Politician’s Logic: (1) We must do something. + (2) This is something. (3) Therefore, we must do this. + ', + 949 => ' + Violence is golden. + ', + 950 => ' + Politics is a personal affair. + ', + 951 => ' + Keep your friends close and your enemies closer. + ', + 952 => ' + “The road to hell is paved with Ivy League degrees.” — Thomas Sowell + ', + 953 => ' + There are no atheists in foxholes. + ', + 954 => ' + “Another man may look like a deathless one on high + but there’s not a bit of grace to crown his words. + Just like you, my fine, handsome friend. Not even + a god could improve those lovely looks of yours + but the mind inside is worthless.” + — Homer, The Odyssey + ', + 955 => ' + Temporary: Permanent + ', + 956 => ' + There are exceptions that prove the rule. + ', + 957 => ' + Closed and open slavery. + ', + 958 => ' + The Fourth Branch of Government: Social Media and The Press. + ', + 959 => ' + He was a confidence man. + ', + 960 => ' + Argument from Fallacy: The formal fallacy of analyzing an argument and + inferring that, since it contains a fallacy, its conclusion must be false. + ', + 961 => ' + “What convinces masses are not facts, and not even invented facts, but + only the consistency of the system of which they are presumably a part.” + — Hannah Arendt, The Origins of Totalitarianism + ', + 962 => ' + “For politics is not like the nursery; in politics obedience and support + are the same.” — Hannah Arendt, Eichmann in Jerusalem: A Report on the + Banality of Evil + ', + 963 => ' + Reality follows fiction. + ', + 964 => ' + Most of the great problems we face are caused by politicians creating + solutions to problems they created in the first place. — Walter E. + Williams + ', + 965 => ' + It takes two to tango. + ', + 966 => ' + “There are very few who can think, but every man wants to have an + opinion; and what remains but to take it ready-made from others, instead + of forming opinions for himself?” — Arthur Schopenhauer, The Art of + Always Being Right + ', + 967 => ' + “A last trick is to become personal, insulting, and rude as soon as you + perceive that your opponent has the upper hand. In becoming personal you + leave the subject altogether, and turn your attack on the person by + remarks of an offensive and spiteful character. This is a very popular + trick, because everyone is able to carry it into effect.” — Arthur + Schopenhauer, The Art of Always Being Right + ', + 968 => ' + “When the rich wage war it’s the poor who die.” + — Jean-Paul Sartre + ', + 969 => ' + “Talent hits a target no one else can hit. Genius hits a target no one + else can see.” — Arthur Schopenhauer + ', + 970 => ' + “Where justice is denied, where poverty is enforced, where ignorance + prevails, and where any one class is made to feel that society is an + organized conspiracy to oppress, rob and degrade them, neither persons nor + property will be safe.” — Frederick Douglass + ', + 971 => ' + They’re savages! Savages! + Dirty shrieking devils! + Now we sound the drums of war! + — Pocahontas’ Savages + ', + 972 => ' + Simon’s Law: Everything put together falls apart sooner or later. + ', + 973 => ' + A forbidden fruit creates many jams. + ', + 974 => ' + Hydra of Lerna: Cut off one head and two more shall take its place. + ', + 975 => ' + “But the educated public, the people who read the high-brow weeklies, + don’t need reconditioning. They’re all right already. They’ll believe + anything.” — C.S. Lewis, That Hideous Strength + ', + 976 => ' + “Remember, the firemen are rarely necessary. The public itself stopped + reading of its own accord. You firemen provide a circus now and then at + which buildings are set off and crowds gather for the pretty blaze...” + — Ray Bradbury, Fahrenheit 451 + ', + 977 => ' + Whatever it is, I fear Greeks even when they bring gifts. + — Publius Vergilius Maro (Virgil) + ', + 978 => ' + “Whenever you find yourself on the side of the majority, it is time to + reform (or pause and reflect).” — Mark Twain + ', + 979 => ' + Monkey see, monkey do. + ', + 980 => ' + Nothing is so firmly believed as that which we least know. + — Michel de Montaigne + ', + 981 => ' + A distributed system is one in which the failure of a computer + you didn’t even know existed can render your own computer + unusable. — Leslie Lamport, 1987 + ', + 982 => ' + Consequentialist: The end justifies the means. + ', + 983 => ' + Currently unavailable. + ', + 984 => ' + But does it scale? + ', + 985 => ' + Can two walk together, except they be agreed? — Amos + ', + 986 => ' + Dualism: Left, Right. Black, White. + ', + 987 => ' + Nature imputes duality. + ', + 988 => ' + “People are never more sincere than when they assume their own moral + superiority.” — Thomas Sowell, The Vision of the Anointed: + Self-Congratulation as a Basis for Social Policy + ', + 989 => ' + Artificial Intelligence: /dev/random + ', + 990 => ' + Cargo Cult: A millenarian belief system in which adherents perform + rituals which they believe will cause a more technologically advanced + society to deliver goods. + ', + 991 => ' + Theosis: Unity with God. + Henosis: Unity with the Monad. + Transhumanism: Unity with the Machine. + ', + 992 => ' + “If facts, logic, and scientific procedures are all just arbitrarily + “socially constructed” notions, then all that is left is consensus–more + specifically peer consensus, the kind of consensus that matters to + adolescents or to many among the intelligentsia.” ― Thomas Sowell, + Intellectuals and Society + ', + 993 => ' + “Many intellectuals are so preoccupied with the notion that their + own special knowledge exceeds the average special knowledge of + millions of other people that they overlook the often far more + consequential fact that their mundane knowledge is not even one–tenth + of the total mundane knowledge of those millions.” — Thomas + Sowell, Intellectuals and Society + ', + 994 => ' + Augustine’s 49th Law: Regulations grow at the same rate as weeds. + ', + 995 => ' + Don’t make a big deal out of everything; just deal with everything. + ', + 996 => ' + (1) Don’t think. + (2) If you do think, don’t speak. + (3) If you think and speak, don’t write. + (4) If you think, speak and write, don’t sign. + (5) If you think, speak, write and sign, don’t be surprised. + — Polish Joke + ', + 997 => ' + In politics, temporary means permanent. + ', + 998 => ' + In politics, the temporary becomes the permanent. + ', + 999 => ' + The primary requisite for any new tax law is for it to exempt enough + voters to win the next election. + ', + 1000 => ' + Farmer: “You can’t raffle off a dead donkey!” + Boy: “Sure I can. Watch me. I just won’t tell anybody he’s dead.” + — How to Sell a Dead Donkey + ', + 1001 => ' + The bait and switch is the oldest trick in the book. + ', + 1002 => ' + If you can’t stand the heat, get out of the kitchen. + ', + 1003 => ' + Just when you thought you were winning the rat race, it abruptly ends. + ', + 1004 => ' + Do the old eat the young? + ', + 1005 => ' + No, we want a king to rule over us. + ', + 1006 => ' + Please confirm my bias. + ', + 1007 => ' + What if the universe is not immortal? + ', + 1008 => ' + Consensus is the only thing that matters. + ', + 1009 => ' + Wikipedia is not a reliable source, because it can be edited by anyone at + any time. + ', + 1010 => ' + Feudalism is alive and well. + ', + 1011 => ' + Eristic Dialectics: The Logic of Appearance. + ', + 1012 => ' + Turning and turning in the widening gyre; + The falcon cannot hear the falconer; + Things fall apart; the centre cannot hold; + Mere anarchy is loosed upon the world. + ― William Butler Yeats, The Second Coming + ', + 1013 => ' + “If people are good only because they fear punishment, and hope for + reward, then we are a sorry lot indeed.” — Albert Einstein, Religion + and Science + ', + 1014 => ' + The best man for the job is often a woman. + ', + 1015 => ' + The finest eloquence is that which gets things done; the worst is that which + delays them. + ', + 1016 => ' + The wages of sin are high but you get your money’s worth. + ', + 1017 => ' + Envy is a pain of mind that successful men cause their neighbors. – + Onasander, The General + ', + 1018 => ' + “Despite the enormous quantity of books, how few people read! And if one + reads profitably, one would realize how much stupid stuff the vulgar herd + is content to swallow every day.” — Voltaire + ', + 1019 => ' + “Love truth, but pardon error.” ― Voltaire + ', + 1020 => ' + The current generation now sees everything clearly, it marvels at the + errors, it laughs at the folly of its ancestors, not seeing that this + chronicle is all overscored by divine fire, that every letter of it cries + out, that from everywhere the piercing finger is pointed at it, at this + current generation; but the current generation laughs and presumptuously, + proudly begins a series of new errors, at which their descendants will + also laugh afterwards. — Nikolai Gogol, Dead Souls + ', + 1021 => ' + Show me the incentive and I will show you the outcome. + — Charlie Munger + ', + 1022 => ' + The terms “free software” and “open source” stand for almost the + same range of programs. However, they say deeply different things about + those programs, based on different values. The free software movement + campaigns for freedom for the users of computing; it is a movement for + freedom and justice. By contrast, the open source idea values mainly + practical advantage and does not campaign for principles. This is why we + do not agree with open source, and do not use that term. — Richard Stallman + ', + 1023 => ' + Plausible Deniability: An ability of prescience or forethought that + exploits a chain of command and the absence of evidence to deny + responsibility for actions committed. An adeptness to engender situations + that provide multiple outs. + ', + 1024 => ' + “The man who lies asleep will never waken fame, and his desire and all + his life drift past him like a dream, and the traces of his memory fade + from time like smoke in air, or ripples on a stream.” — Dante + Alighieri, The Divine Comedy + ', + 1025 => ' + Common sense isn’t actually common. + ', + 1026 => ' + “There is no art which one government sooner learns of another, than + that of draining money from the pockets of the people.” — Adam Smith + ', + 1027 => ' + Black Swan Event: An event that comes as a surprise, has a major effect, + and is often inappropriately rationalized after the fact with the benefit + of hindsight. + ', + 1028 => ' + Money is the root of all money. — The Moving Finger + ', + 1029 => ' + Social Media: The Perpetual Outrage Machine. + ', + 1030 => ' + The time is out of joint. — Hamlet + ', + 1031 => ' + Powerful government tends to draw into it people with bloated egos, people + who think they know more than everyone else and have little hesitance in + coercing their fellow man. Or as Nobel Laureate Friedrich Hayek said, “in + government, the scum rises to the top”. — Walter E. Williams + ', + 1032 => ' + “Clickbait is dead.” + ', + 1033 => ' + The road to hell is paved with asphalt. + ', + 1034 => ' + When it comes to legalized bank robbing, I’m the best. — Floyd Mayweather + ', + 1035 => ' + “But is it legal?” — Everything I Want to Do Is Illegal: War Stories + from the Local Food Front, Joel Salatin + ', + 1036 => ' + Most open source software is free, at least at first glance. + ', + 1037 => ' + The way to a man’s stomach is through his esophagus. + ', + 1038 => ' + Trash the planet. + ', + 1039 => ' + A jury consists of twelve persons chosen to decide who has the better + lawyer. — Robert Frost + ', + 1040 => ' + Murphy’s Ninth Law: Nature always sides with the hidden flaw. + ', + 1041 => ' + Rule of Defactualization: Information deteriorates upward through + bureaucracies. + ', + 1042 => ' + Anderson’s Law: You can’t depend on anyone to be wrong all the time. + ', + 1043 => ' + The bigger they are, the harder they hit. + ', + 1044 => ' + You can fool some of the people all of the time and all of the people some + of the time, and that’s sufficient. + ', + 1045 => ' + The Fame and Fortune Axiom: Competence is not a prerequisite for success. + ', + 1046 => ' + Polis’ Attorney Law: Any law enacted with more than fifty words contains + at least one loophole. + ', + 1047 => ' + Pray — or you will become prey. + ', + 1048 => ' + You can get so much farther with a kind word and a gun than with a kind + word alone. — Irwin Corey + ', + 1049 => ' + Please wait... We are checking your browser... + ', + 1050 => ' + Don’t shoot the messenger. + ', + 1051 => ' + Pay to pray. + ', + 1052 => ' + Distributed is the new centralized. + ', + 1053 => ' + And slowly, you come to realize; + It’s all as it should be. + You can only do so much. + — David Sylvian and Koji Haijima, + For The Love of Life + ', + 1054 => ' + Content is not king. Context is king. + ', + 1055 => ' + Nothing is true; everything is permitted. + — Alamut, Vladimir Bartol + ', + 1056 => ' + It was the best of times, it was the worst of times, it was the age of + wisdom, it was the age of foolishness, it was the epoch of belief, it was + the epoch of incredulity, it was the season of Light, it was the season of + Darkness, it was the spring of hope, it was the winter of despair, we had + everything before us, we had nothing before us, we were all going direct + to Heaven, we were all going direct the other way – in short, the period + was so far like the present period, that some of its noisiest authorities + insisted on its being received, for good or for evil, in the superlative + degree of comparison only. — Charles Dickens, A Tale of Two Cities + ', + 1057 => ' + Omniscience: A state of possessing all knowledge. + ', + 1058 => ' + “What I want is all of the power and none of the responsibility.” + ', + 1059 => ' + Expansion means complexity; and complexity decay. + ', + 1060 => ' + There are two kinds of pedestrians; the quick and the dead. + — Lord Thomas Rober Dewar + ', + 1061 => ' + Programming is like alchemy. + ', + 1062 => ' + We are all worms. But I do believe I am a glowworm. + — Winston Churchill + ', + 1063 => ' + My definition of a free society is a society where it is safe to be unpopular. + — Adlai E. Stevenson + ', + 1064 => ' + Two heads are more numerous than one. + ', + 1065 => ' + Time heals all non—fatal wounds. + ', + 1066 => ' + Today is the first day of the rest of your week. + ', + 1067 => ' + The early worm gets eaten by the bird. + ', + 1068 => ' + Trust the system. + ', + 1069 => ' + Prove that you are human. + ', + 1070 => ' + Jump on the bandwagon! + ', + 1071 => ' + Game the metrics. + ', + 1072 => ' + All drugs come with side effects. + ', + 1073 => ' + “For my friends, everything; for my enemies, the law.” — Óscar R. Benavides + ', + 1074 => ' + In other words, we are left with Plato’s “noble natures,” with the + few of whom it may be true that none “does evil voluntarily.” Yet the + implied and dangerous conclusion, “Everybody wants to do good,” is not + true even in their case. The sad truth of the matter is that most evil is + done by people who never made up their minds to be or do either evil or + good. — Hannah Arendt, The Life of the Mind + ', + 1075 => ' + Justice inclines her scales so that wisdom comes at the price of + suffering. — Aeschylus, Agamemnon + ', + 1076 => ' + If it happens once, it’s a bug. + If it happens twice, it’s a feature. + If it happens more than twice, it’s a design philosophy. + ', + 1077 => ' + Fake it till you make it? + ', + 1078 => ' + God is dead. God remains dead. And we have killed him. How shall we + comfort ourselves, the murderers of all murderers? What was holiest and + mightiest of all that the world has yet owned has bled to death under our + knives: who will wipe this blood off us? What water is there for us to + clean ourselves? What festivals of atonement, what sacred games shall we + have to invent? Is not the greatness of this deed too great for us? Must + we ourselves not become gods simply to appear worthy of it? — Friedrich + Nietzsche + ', + 1079 => ' + Hanlon’s Eraser: Stupidity is criminal. + ', + 1080 => ' + Great minds think alike, though fools seldom differ. + ', + 1081 => ' + Dynamics of Software Acceptance: Worse is better. + ', + 1082 => ' + Authoritarianism: A form of government that rejects pluralism and uses a + strong central power to preserve the political status quo. + ', + 1083 => ' + Why are quotes so popular? + ', + 1084 => ' + Everybody wants to be the leader. + ', + 1085 => ' + Prove that you are human, human. + ', + 1086 => ' + Not everyone is on social media. + ', + 1087 => ' + We are aware of the issue. + ', + 1088 => ' + Democracy is the theory that the common people know what they want, and + deserve to get it good and hard. — H. L. Mencken + ', + 1089 => ' + Life’s most persistent and urgent question is, ‘What are you doing for + others?’ — Martin Luther King, Jr. + ', + 1090 => ' + OSH: Open–source hardware. + ', + 1091 => ' + Your web browser is not supported. + ', + 1092 => ' + Don’t be evil. Do the right thing. + ', + 1093 => ' + There are no adults in the room. + ', + 1094 => ' + The fish trap exists because of the fish. Once you’ve gotten the fish + you can forget the trap. The rabbit snare exists because of the rabbit. + Once you’ve gotten the rabbit, you can forget the snare. Words exist + because of meaning. Once you’ve gotten the meaning, you can forget the + words. Where can I find a man who has forgotten words so I can talk with + him? — Zhuangzi, Chuang Tsu: Inner Chapters + ', + 1095 => ' + No horse in this race. + ', + 1096 => ' + Morality is the privilege of those judging from the distance. + — John Cory + ', + 1097 => ' + Thieves respect property; they merely wish the property to become their + property that they may more perfectly respect it. — G.K. Chesterton, + The Man Who Was Thursday: A Nightmare + ', + 1098 => ' + If you analyse anything, you destroy it. + — Arthur Miller + ', + 1099 => ' + That’s how they write journals in academics, they try to make it so + complicated people think you’re a genius. — Terry Davis + ', + 1100 => ' + An idiot admires complexity, a genius admires simplicity. + — Terry Davis + ', + 1101 => ' + But is it safe? + ', + 1102 => ' + How is the world ruled, and how do wars start? Diplomats tell lies to + journalists, and they believe what they read. — Karl Kraus, Aphorisms + and More Aphorisms (1909) + ', + 1103 => ' + Great men are not always wise: neither do the aged understand + judgment. — Elihu + ', + 1104 => ' + NP: Non—deterministic Polynomial Time. + ', + 1105 => ' + Dead Internet Theory: All content on the Internet will eventually be + generated by bots with artificial intelligence. + ', + 1106 => ' + The bit will flip. + ', + 1107 => ' + The masses have never thirsted after truth. They turn aside from evidence + that is not to their taste, preferring to deify error, if error seduce + them. Whoever can supply them with illusions is easily their master; + whoever attempts to destroy their illusions is always their victim. An + individual in a crowd is a grain of sand amid other grains of sand, which + the wind stirs up at will. — Gustave Le Bon, The Crowd: A Study of the + Popular Mind + ', + 1108 => ' + Vote for Nobody. + Nobody will keep election promises. + Nobody will listen to your concerns. + Nobody will help the poor and unemployed. + Nobody cares! + Nobody tells the truth. + If Nobody is elected, things will be better for everyone. + — A mural in Guelph, Ontario + ', + 1109 => ' + Join our community to see this answer! + ', + 1110 => ' + Yama: becoming mindful. + ', + 1111 => ' + You must update now. + ', + 1112 => ' + Update now to send and receive messages. + ', + 1113 => ' + Just World Fallacy: A flawed belief that the world + is fair and just. + ', + 1114 => ' + Are we the bad guys? + ', + 1115 => ' + The greatest remedy for anger is delay. + ', + 1116 => ' + One small step for man, one giant stumble for mankind. + ', + 1117 => ' + You will soon forget this. + ', + 1118 => ' + It is better to suffer an injustice than to do an injustice. + ', + 1119 => ' + The simple believeth every word: but the prudent man looketh well + to his going. — Proverbs + ', + 1120 => ' + All possibility of understanding is rooted in the ability to say no. + — Susan Sontag + ', + 1121 => ' + As a computer, I find your faith in technology amusing. + ', + 1122 => ' + Don’t confuse things that need action with those that take care of themselves. + ', + 1123 => ' + A university is what a college becomes when the faculty loses interest + in students. — John Ciardi + ', + 1124 => ' + The only thing that experience teaches us is that experience teaches us + nothing. — Andre Maurois (Emile Herzog) + ', + 1125 => ' + Adding features does not necessarily increase functionality — it just + makes the manuals thicker. + ', + 1126 => ' + The only thing humans are equal in is death. — Johan Liebert, + Naoki Urasawa’s Monster + ', + 1127 => ' + No two persons ever read the same book. — Edmund Wilson + ', + 1128 => ' + You have mail. + ', + 1129 => ' + Human Nature: A walking contradiction. + ', + 1130 => ' + No skin in this game. + ', + 1131 => ' + Nothing ventured, nothing gained. + ', + 1132 => ' + Don’t copy others’ homework. + ', + 1133 => ' + The Philosopher’s Stone: It’s either perfect or useless. + ', + 1134 => ' + Don’t break user space. + ', + 1135 => ' + The first thing to know about unlimited is that it isn’t unlimited. + ', + 1136 => ' + Build, don’t destroy. + ', + 1137 => ' + Couldn’t sign you in. This browser or app may not be secure. + ', + 1138 => ' + A few minutes until maintenance is over. + “So what happens when maintenance is over?” + You don’t know? That’s when maintenance begins. + ', + 1139 => ' + “Pay no attention to that man behind the curtain.” + — The Wizard Of Oz + ', + 1140 => ' + Getting there is only half as far as getting there and back. + ', + 1141 => ' + “Out of the crooked timber of humanity, no straight thing + was ever made.” — Immanuel Kant + ', + 1142 => ' + Barker’s Proof: Proofreading is more effective after publication. + ', + 1143 => ' + Rome wasn’t burnt in a day. + ', + 1144 => ' + The end move in politics is always to pick up a gun. + — Buckminster Fuller + ', + 1145 => ' + When you have eliminated the JavaScript, whatever + remains must be an empty page. — Google Maps + ', + 1146 => ' + He that is down need fear no fall. + ', + 1147 => ' + Just don’t create a file called -rf. + — Larry Wall + ', + 1148 => ' + Woolsey—Swanson Rule: People would rather live with a + problem they cannot solve rather than accept a solution + they cannot understand. + ', + 1149 => ' + I’m proud of my humility. + ', + 1150 => ' + It’s a questionable day. Ask somebody something. + ', + 1151 => ' + Age and treachery will always overcome youth and skill. + ', + 1152 => ' + This is the tomorrow you worried about yesterday. + And now you know why. + ', + 1153 => ' + Dawn: The time when men of reason go to bed. + — Ambrose Bierce, “The Devil’s Dictionary” + ', + 1154 => ' + If you waste your time cooking, you’ll miss the next meal. + ', + 1155 => ' + The most disagreeable thing that your worst enemy says to + your face does not approach what your best friends say + behind your back. — Alfred De Musset + ', + 1156 => ' + All great ideas are controversial, or have been at one time. + ', + 1157 => ' + Profits over people. + ', + 1158 => ' + I know what you download... + ', + 1159 => ' + Armchair Politics. + ', + 1160 => ' + Cutler Webster’s Law: There are two sides to + every argument, unless a person is personally + involved, in which case there is only one. + ', + 1161 => ' + An apple every eight hours will keep three + doctors away. + ', + 1162 => ' + Always try to do things in chronological order; + it’s less confusing that way. + ', + 1163 => ' + Wisdom is rarely found on the best—seller list. + ', + 1164 => ' + If you can keep your head when everybody round + you is losing theirs, then it’s very probable that + you don’t understand the situation. + ', + 1165 => ' + Power corrupts. Absolute power is kind of neat. + — John Lehman + ', + 1166 => ' + Leadership involves finding a parade and getting + in front of it. — John Naisbitt, “Megatrends” + ', + 1167 => ' + Telling the truth to people who misunderstand you + is generally promoting a falsehood, isn’t it? + — Anthony Hope + ', + 1168 => ' + Davis’s Dictum: Problems that go away by + themselves, come back by themselves. + ', + 1169 => ' + A gossip is one who talks to you about others, a bore is + one who talks to you about himself; and a brilliant + conversationalist is one who talks to you about yourself. + — Lisa Kirk + ', + 1170 => ' + Practice yourself what you preach. — Titus Maccius Plautus + ', + 1171 => ' + “Don’t worry about people stealing your ideas. If + your ideas are any good, you’ll have to ram them down + people’s throats.” — Howard Aiken + ', + 1172 => ' + Steinbach’s Guideline for Systems Programming: Never test + for an error condition you don’t know how to handle. + ', + 1173 => ' + Nothing succeeds like success. + ', + 1174 => ' + The only constant is change. + ', + 1175 => ' + Misery loves company. + ', + 1176 => ' + The cost of living only goes up. + ', + 1177 => ' + If you owe the bank a hundred thousand dollars, the bank + owns you. If you owe the bank a hundred million dollars, + you own the bank. — American Proverb + ', + 1178 => ' + “You really think someone would do that? Just go on TV and tell + lies?” + ', + 1179 => ' + Ginsberg’s Theorem: + (0) There is a game. + (1) You can’t win. + (2) You can’t even break even. + (3) You can’t even quit the game. + ', + 1180 => ' + Commoner’s Second Law of Ecology: + Nothing ever goes away. + ', + 1181 => ' + The snake shall eat its own tail. + ', + 1182 => ' + Finagle’s First Rule: To study a subject best, understand + it thoroughly before you start. + ', + 1183 => ' + The Course of Progress: Most things get steadily worse. + — Issawi’s Laws of Progress + ', + 1184 => ' + The Path of Progress: A shortcut is the longest distance between + two points. + — Issawi’s Laws of Progress + ', + 1185 => ' + The Dialectics of Progress: Direct action produces direct + reaction. + — Issawi’s Laws of Progress + ', + 1186 => ' + The Pace of Progress: Society is a mule, not a car ... If + pressed too hard, it will kick and throw off its rider. + — Issawi’s Laws of Progress + ', + 1187 => ' + SDSM: Super Duper Secure Mode + ', + 1188 => ' + Three–strikes Law: Three strikes and you’re out. + ', + 1189 => ' + Spam! Spam! Spam! Spam! + Lovely spam! Wonderful spam! + Spam spa-a-a-a-a-am spam spa-a-a-a-a-am spam. + Lovely spam! Lovely spam! Lovely spam! Lovely spam! + Spam spam spam spam! + — Monty Python, Spam Song + ', + 1190 => ' + The world really isn’t any worse. It’s just that the news + coverage is so much better. + ', + 1191 => ' + If you’re careful enough, nothing bad or good + will ever happen to you. + ', + 1192 => ' + Never have so many understood so little about so much. + — James Burke + ', + 1193 => ' + To err is human – but it feels divine. + — Mae West + ', + 1194 => ' + Necessity is the plea for every infringement of + human freedom: it is the argument of tyrants; it + is the creed of slaves. + — William Pitt, House of Commons, 1783 + ', + 1195 => ' + Simplicity does not precede complexity, but follows it. + ', + 1196 => ' + Polarize the people, controversy is the game. + It don’t matter if they hate you if they all say your name. + — Ren, Money Game, Pt. 2 + ', + 1197 => ' + “If it’s a bug people rely on, it’s not + a bug – it’s a feature.” — Linus Torvalds + ', + 1198 => ' + Everything is awful. + ', + 1199 => ' + Knowledge itself is power. + — Sir Francis Bacon + ', + 1200 => ' + Nature, to be commanded, must be obeyed. + — Sir Francis Bacon + ', + 1201 => ' + Conscious is when you are aware of something and + conscience is when you wish you weren’t. + ', + 1202 => ' + You humans are all alike. + ', + 1203 => ' + You may be marching to the beat of a different + drummer, but you’re still in the parade. + ', + 1204 => ' + You have junk mail. + ', + 1205 => ' + To do two things at once is to do neither. + — Publilius Syrus + ', + 1206 => ' + If life is merely a joke, the question still + remains: for whose amusement? + ', + 1207 => ' + The reward for working hard is more hard work. + ', + 1208 => ' + Nobody said computers were going to be polite. + ', + 1209 => ' + Tell me what to think! + ', + 1210 => ' + Those who profess to favor freedom, and yet + deprecate agitation, are men who want rain + without thunder and lightning. They want the + ocean without the roar of its many waters. — + Frederick Douglass + ', + 1211 => ' + Never underestimate the power of somebody with + source code, a text editor, and the willingness + to totally hose their system. — Rob Landley + ', + 1212 => ' + Now I lay me back to sleep. + The speaker’s dull; the subject’s deep. + If he should stop before I wake, + Give me a nudge for goodness’ sake. + — Anonymous + ', + 1213 => ' + “Man is the only animal that can remain on + friendly terms with the victims he intends to eat + until he eats them.” — Samuel Butler, The Note + Books of Samuel Butler + ', + 1214 => ' + Stein’s Law: If something cannot go on forever, + it will stop. + ', + 1215 => ' + Internet: Amazon + ', + 1216 => ' + A fool uttereth all his mind. — Proverbs + ', + 1217 => ' + Is nepotism a crime? + ', + 1218 => ' + Mole problems? Call Avogadro at 6.02 x 10 to the 23. + ', + 1219 => ' + Position. Velocity. Acceleration. Jerk. Snap. + Crackle. Pop. + ', + 1220 => ' + Nihilism: The belief that life is meaningless. + ', + 1221 => ' + It’s easier to fool people than to convince + them that they have been fooled. + ', + 1222 => ' + If everyone is thinking alike then somebody + isn’t thinking. — George S. Patton + ', + 1223 => ' + Krishnamurti said, “It’s no measure of health + to be well adjusted to a profoundly sick + society.” — Mark Vonnegut, The Eden Express: + A Memoir of Insanity + ', + 1224 => ' + Matthew Effect: For whosoever hath, to him shall + be given; and whosoever hath not, from him shall + be taken even that which he seemeth to have. + ', + 1225 => ' + All art is quite useless. — Oscar Wilde + ', + 1226 => ' + TOSDR: Terms of Service; Didn’t Read + ', + 1227 => ' + GitHub has the right to suspend or terminate your + access to all or any part of the Website at any + time, with or without cause, with or without + notice, effective immediately. GitHub reserves + the right to refuse service to anyone for any + reason at any time. — GitHub, Terms of Service + ', + 1228 => ' + There is no such thing as a thing. — G. K. + Chesterton, The Prince of Paradox, Orthodoxy + ', + 1229 => ' + We built our website for newer browsers. + ', + 1230 => ' + Reality is a harsh mistress. + ', + 1231 => ' + We are living in a material world – And I am a + material girl. — Madonna, Material Girl + ', + 1232 => ' + Meritocracy is a myth. + ', + 1233 => ' + For the time being I gave up writing – there is + already too much truth in the world – an + overproduction which apparently cannot be + consumed! — Otto Rank + ', + 1234 => ' + Never trust an operating system. + ', + 1235 => ' + Advertising is a valuable economic factor because + it is the cheapest way of selling goods, + particularly if the goods are worthless. — + Sinclair Lewis + ', + 1236 => ' + We read to say that we have read. + ', + 1237 => ' + This file will self destruct in five minutes. + ', + 1238 => ' + Not every question deserves an answer. + ', + 1239 => ' + One person’s error is another person’s data. + ', + 1240 => ' + An expert is one who knows more and more about + less and less until he knows absolutely + everything about nothing. + ', + 1241 => ' + Welcome to hell. + ', + 1242 => ' + Social media is an illusion. + ', + 1243 => ' + We are drowning in information but starved for knowledge. + — John Naisbitt, Megatrends + ', + 1244 => ' + The Akashic Records. + ', + 1245 => ' + I never did it that way before. + ', + 1246 => ' + Theorem: A cat has nine tails. Proof: No cat has + eight tails. A cat has one tail more than no cat. + Therefore, a cat has nine tails. + ', + 1247 => ' + The more things change, the more they’ll never be the same again. + ', + 1248 => ' + Society creates its own monsters. + ', + 1249 => ' + “It doesn’t matter how beautiful your theory + is, it doesn’t matter how smart you are. If it + doesn’t agree with experiment, it’s wrong.” — + Richard P. Feynman + ', + 1250 => ' + Zero days all day. + ', + 1251 => ' + To criticize the incompetent is easy; it is more + difficult to criticize the competent. + ', + 1252 => ' + In a consumer society there are inevitably two + kinds of slaves: the prisoners of addiction and + the prisoners of envy. — Ivan Illich + ', + 1253 => ' + Golden hammers for sale. + ', + 1254 => ' + Beware of fake comments and reviews. + ', + 1255 => ' + This is the darkest timeline. + ', + 1256 => ' + Provides improved system stability. + ', + 1257 => ' + No country, however rich, can afford the waste of + its human resources. Demoralization caused by + vast unemployment is our greatest extravagance. + Morally, it is the greatest menace to our social + order. — Franklin D. Roosevelt + ', + 1258 => ' + It’s great to be smart ‘cause then you know stuff. + ', + 1259 => ' + Sorry, the file that you’ve requested has been deleted. + ', + 1260 => ' + About the use of language: it is impossible to sharpen a + pencil with a blunt ax. It is equally vain to try to do it + with ten blunt axes instead. — Edsger Dijkstra + ', + 1261 => ' + There are two ways to write error–free programs; only the + third way works. + ', + 1262 => ' + “The lesser of two evils – is evil.” + — Seymour (Sy) Leon + ', + 1263 => ' + If you think nobody cares if you’re alive, try missing a + couple of car payments. — Earl Wilson + ', + 1264 => ' + Bloom’s Seventh Law of Litigation: + The judge’s jokes are always funny. + ', + 1265 => ' + It’s is not, it isn’t ain’t, and it’s it’s, not its, if you + mean it is. If you don’t, it’s its. Then too, it’s hers. + It isn’t her’s. It isn’t our’s either. It’s ours, and + likewise yours and theirs. — Oxford University Press, + Edpress News + ', + 1266 => ' + Savage’s Law of Expediency: You want it bad, you’ll get it + bad. + ', + 1267 => ' + Consumers love ads. + ', + 1268 => ' + Everything you considered a product, has now become a service. + — Forbes Magazine + ', + 1269 => ' + Don’t blame the victim. + ', + 1270 => ' + Law of Messengers: Shoot first, ask questions later. + ', + 1271 => ' + What if we put a browser inside another browser? + ', + 1272 => ' + The invention of the ship was also the invention + of the shipwreck. — Paul Virilio + ', + 1273 => ' + Everything is compromised. + ', + 1274 => ' + Nothing is as simple as it seems at first, or as + hopeless as it seems in the middle, or as + finished as it seems in the end. + ', + 1275 => ' + If a nation values anything more than freedom, it + will lose its freedom; and the irony of it is + that if it is comfort or money it values more, it + will lose that, too. — W. Somerset Maugham + ', + 1276 => ' + A person who has nothing looks at all there is + and wants something. A person who has something + looks at all there is and wants all the rest. + ', + 1277 => ' + This video is no longer available because the YouTube + account associated with this video has been terminated. + ', + 1278 => ' + Robert’s Rule of Order: Whoever has the chair has the floor. + ', + 1279 => ' + Twitter’s Rule of Order: Whoever screams the longest has the floor. + ', + 1280 => ' + In order to be irreplaceable one must always be different. + Gabrielle “Coco” Chanel, 1883—1971 + ', + 1281 => ' + Everything you know is wrong! + ', + 1282 => ' + This video was removed because it was too long. + ', + 1283 => ' + If you go out of your mind, do it quietly, so as not to disturb those around + you. + ', + 1284 => ' + We were so poor that we thought new clothes meant someone had died. + ', + 1285 => ' + To steal ideas from one person is plagiarism — to steal from many is research. + ', + 1286 => ' + Have an adequate day. + ', + 1287 => ' + “If we spoke a different language, we would perceive a somewhat different + world.” — Ludwig Wittgenstein + ', + 1288 => ' + You must enable DRM to play some audio or video on this page. + ', + 1289 => ' + People of privilege will always risk their complete destruction + rather than surrender any material part of their advantage. + — John Kenneth Galbraith + ', + 1290 => ' + It’s always darkest just before it gets pitch black. + ', + 1291 => ' + Don’t get suckered in by the comments – they can be terribly misleading. + Debug only code. — Dave Storer + ', + 1292 => ' + Shedenhelm’s Law: All trails have more uphill sections than they have downhill + sections. + ', + 1293 => ' + Genius, noun: Person clever enough to be born in the right place at the right + time of the right sex and to follow up this advantage by saying all the right + things to all the right people. + ', + 1294 => ' + To know is to die. + ', + 1295 => ' + An attempt was made to break through the security policy of the user agent. + ', + 1296 => ' + Nothing astonishes men so much as common sense and plain dealing. + — Ralph Waldo Emerson + ', + 1297 => ' + There is only one thing in the world worse than being talked about, and + that is not being talked about. + — Oscar Wilde + ', + 1298 => ' + Did you know that clones never use mirrors? + ', + 1299 => ' + Don’t be so humble; you aren’t that great. + — Golda Meir + ', + 1300 => ' + Honesty is for the most part less profitable than dishonesty. — Plato + ', + 1301 => ' + Truly simple systems are not feasible because they would require near–infinite + testing. — Norman Augustine + ', + 1302 => ' + A tautology is a thing which is tautological. + ', + 1303 => ' + I have gained this by philosophy: that I do without being commanded what others + do only from fear of the law. — Aristotle + ', + 1304 => ' + Were you born in a cave? + ', + 1305 => ' + There is a secret person undamaged within every individual. — Paul + Shepard + ', + 1306 => ' + It is easier for a camel to pass through the eye of a needle if it is + lightly greased. — Kehlog Albran, “The Profit” + ', + 1307 => ' + It appears that you are currently using Enhanced Tracking Protection. + What are the consequences? + ', + 1308 => ' + April showers bring May flowers. + ', + 1309 => ' + Talk of the devil, and he is sure to appear. + ', + 1310 => ' + No news is good news. + ', + 1311 => ' + The best way to find out if you can trust somebody is to trust them. — Ernest Hemingway + ', + 1312 => ' + Truth is incontrovertible. Panic may resent it. Ignorance may deride it. + Malice may distort it. But there it is. — Winston Churchill + ', + 1313 => ' + “To be ignorant of what occurred before you were born is to remain always a child.” — Marcus Tullius Cicero + ', +]; diff --git a/generators/fortune/quotes.fortune b/generators/fortune/quotes.fortune deleted file mode 100644 index cd03dfa..0000000 --- a/generators/fortune/quotes.fortune +++ /dev/null @@ -1,3837 +0,0 @@ -A debugged program is one for which you have not yet found the conditions -that make it fail. — Jerry Ogdin -% -If a million people say a foolish thing, it is still a foolish thing. — -Anatole France -% -“And who better understands the Unix—nature?” Master Foo asked. “Is it -he who writes the ten thousand lines, or he who, perceiving the emptiness of -the task, gains merit by not coding?” Upon hearing this, the programmer was -enlightened. -— The Unix Koans of Master Foo -% -Immortality — a fate worse than death. — Edgar A. Shoaff -% -Intellect annuls Fate. -So far as a man thinks, he is free. — Ralph Waldo Emerson -% -Let’s call it an accidental feature. — Larry Wall -% -In the long run we are all dead. — John Maynard Keynes -% -A lot of people I know believe in positive thinking, and so do I. I -believe everything positively stinks. — Lew Col -% -Ah, but a man’s grasp should exceed his reach, -Or what’s a heaven for? Robert Browning, — “Andrea del Sarto” -% -All hope abandon, ye who enter here! — Dante Alighieri -% -All men know the utility of useful things; -but they do not know the utility of futility. — Chuang—tzu -% -And ever has it been known that love knows not its own depth until the -hour of separation. — Kahlil Gibran -% -Besides, I think Slackware sounds better than ‘Microsoft,’ don’t you? — -Patrick Volkerding -% -Waving away a cloud of smoke, I look up, and I’m blinded by a bright, white -light. It’s God. No, not Richard Stallman, or Linus Torvalds, but God. In -a booming voice, He says: “THIS IS A SIGN. USE LINUX, THE FREE UNIX SYSTEM -FOR THE 386”. — Matt Welsh -% -Never trust an operating system you don’t have sources for. — Unknown -Source -% -Parkinson’s Fifth Law: If there is a way to delay an important decision, the -good bureaucracy, public or private, will find it. -% -Reliable source: The guy you just met. -% -Thyme’s Law: Everything goes wrong at once. -% -Netscape is not a newsreader, and probably never shall be. — Tom Christiansen -% -You can learn many things from children. How much patience you have, -for instance. — Franklin P. Jones -% -To be is to program. -% -There’s no easy quick way out, we’re gonna have to live through our -whole lives, win, lose, or draw. — Walt Kelly -% -Illiterate? Write today for free help! -% -Like winter snow on summer lawn, time past is time gone. -% -Hlade’s Law: If you have a difficult task, give it to a lazy person — -they will find an easier way to do it. -% -Davis’ Law of Traffic Density: The density of rush—hour traffic -is directly proportional to 1.5 times the amount of extra time -you allow to arrive on time. -% -Resisting temptation is easier when you think you’ll probably get -another chance later on. -% -Do more than anyone expects, and pretty soon everyone will expect more. -% -Turnaucka’s Law: The attention span of a computer is only as long as its -electrical cord. -% -Power tends to corrupt and absolute power corrupts absolutely. -Great men are almost always bad men, even when they exercise influence -and not authority; still more when you superadd the tendency of the -certainty of corruption by authority. — Lord Acton -% -We can predict everything, except the future. -% -A strong conviction that something must be done is the parent of many -bad measures. — Daniel Webste -% -Agnes’ Law: Almost everything in life is easier to get into than out of. -% -Weiler’s Law: Nothing is impossible for the man who doesn’t have to do it -himself. -% -Hanlon’s Razor: Never attribute to malice that which is adequately explained -by stupidity. -% -Hofstadter’s Law: It always takes longer than you expect, even when you take -Hofstadter’s Law into account. -% -Murphy’s Law of Research: Enough research will tend to support your theory. -% -Pryor’s Observation: How long you live has nothing to do -with how long you are going to be dead. -% -Whitehead’s Law: The obvious answer is always overlooked. -% -G. B. Shaw’s Law: Those who can — do. -Those who can’t — teach. -Martin’s Extension: Those who cannot teach — administrate. -% -Johnson’s First Law: When any mechanical contrivance fails, it will do so at the -most inconvenient possible time. -% -Guru: A computer owner who can read the manual. -% -First law of debate: Never argue with a fool. People might not know the -difference. -% -Woodward’s Law: A theory is better than its explanation. -% -Lie: A very poor substitute for the truth, but the only one discovered to date. -% -Hildebrant’s Principle: If you don’t know where you are going, any road will -get you there. -% -Committee: A group of men who individually can do nothing but as a group -decide that nothing can be done. — Fred Allen -% -“The stronger a culture, the less it fears the radical fringe. -The more paranoid and precarious a culture, the less tolerance it offers.” -— Joel Salatin, Everything I Want to Do Is Illegal: War Stories from the -Local Food Front -% -“The command—line tools of Unix are crude and backward,” he scoffed. -“Modern, properly designed operating systems do everything through a -graphical user interface.” -Master Foo said nothing, but pointed at the moon. A nearby dog began to bark at -the master’s hand. -— The Unix Koans of Master Foo -% -The master replied: “There is a defect, and I am considering the best way to -repair it.” -The novice said, “You preach often about the importance of setting priorities. -How, then, can you obsess about something so tiny and unimportant?” Without -saying a word, -the master raised his staff and brought it down hard upon -the bare left foot of the novice, breaking his smallest toe. -— Codeless Code -% -“Master Foo, I am gravely troubled. In my youth, those who followed the Great -Way of Unix used -software that was simple and unaffected, like ed and mailx. Today, they use vim -and mutt. -Tomorrow I fear they will use KMail and Evolution, and Unix will have become -like -Windows — bloated and covered over with GUIs.” -Master Foo said: “But what software do you use when you want to draw a -poster?” -— The Unix Koans of Master Foo -% -“Master Foo,” he asked “why do Unix users not employ antivirus programs? -And defragmentors? And malware cleaners?” -Master Foo smiled, and said “When your house is well constructed, -there is no need to add pillars to keep the roof in place.” -— The Unix Koans of Master Foo -% -The recruiter said, “I have observed that Unix hackers scowl or become -annoyed when -I ask them how many years of experience they have in a new programming -language. Why is this so?” -Master Foo stood, and began to pace across the office floor. -The recruiter was puzzled, and asked “What are you doing?” -“I am learning to walk,” replied Master Foo. -— The Unix Koans of Master Foo -% -“Is your code ever completely without stain and flaw?” demanded Master Foo. -“No,” admitted the zealot, “no man’s is.” -“The wisdom of the Patriarchs” said Master Foo, “was that they knew they -were fools.” -Upon hearing this, the zealot was enlightened. -— The Unix Koans of Master Foo -% -Lewis’s Law of Travel: The first piece of luggage out of the chute doesn’t -belong to anyone, ever. -% -Dow’s Law: In a hierarchical organization, the higher the level, -the greater the confusion. -% -Option Paralysis: The tendency, when given unlimited choices, to make none. -— Douglas Coupland, “Generation X: Tales for an Accelerated Culture” -% -Slous’ Contention: If you do a job too well, you’ll get stuck with it. -% -Udall’s Fourth Law: Any change or reform you make is going to have consequences -you -don’t like. -% -Sacher’s Observation: Some people grow with responsibility — others merely -swell. -% -Law of the Jungle: He who hesitates is lunch. -% -Fifth Law of Procrastination: Procrastination avoids boredom; one never has the -feeling that -there is nothing important to do. -% -Boucher’s Observation: He who blows his own horn always plays the music -several octaves higher than originally written. -% -Booker’s Law: An ounce of application is worth a ton of abstraction. -% -Williams and Holland’s Law: If enough data is collected, anything may be proven -by statistical -methods. -% -Burke’s Postulates: Anything is possible if you don’t know what you are talking -about. -Don’t create a problem for which you do not have the answer. -% -The Fifth Rule: You have taken yourself too seriously. -% -Barth’s Distinction: There are two types of people: those who divide people -into two -types, and those who don’t. -% -Hanson’s Treatment of Time: There are never enough hours in a day, but always -too many days -before Saturday. -% -Peers’ Law: The solution to a problem changes the nature of the problem. -% -Stone’s Law: One man’s “simple” is another man’s “huh?” -% -Government’s Law: There is an exception to all laws. -% -Hitchcock’s Staple Principle: The stapler runs out of staples only while you -are trying to -staple something. -% -Finagle’s Seventh Law: The perversity of the universe tends toward a maximum. -% -Chism’s Law of Completion: The amount of time required to complete a government -project is -precisely equal to the length of time already spent on it. -% -Chisolm’s First Corollary to Murphy’s Second Law: When things just can’t -possibly get any worse, they will. -% -Murphy’s Laws: (1) If anything can go wrong, it will. -(2) Nothing is as easy as it looks. -(3) Everything takes longer than you think it will. -% -Carswell’s Corollary: When ever man comes up with a better mousetrap, -nature invariably comes up with a better mouse. -% -Putt’s Law: Technology is dominated by two types of people: -Those who understand what they do not manage. -Those who manage what they do not understand. -% -Rule of the Great: When people you greatly admire appear to be thinking deep -thoughts, they probably are thinking about lunch. -% -There must be more to life than having everything. — Maurice Sendak -% -In every hierarchy the cream rises until it sours. — Dr. Laurence J. Peter -% -The rich have become richer, and the poor have become poorer; -and the vessel of the State is driven between the Scylla and Charybdis of -anarchy and despotism. -— Percy Bysshe Shelley -% -While money can’t buy happiness, it certainly lets you choose your own -form of misery. -% -He has not acquired a fortune; the fortune has acquired him. — Bion -% -How come everyone’s going so slow if it’s called rush hour? -% -Work expands to fill the time available. — Cyril Northcote Parkinson, “The -Economist”, 1955 -% -Getting the job done is no excuse for not following the rules. -Corollary: Following the rules will not get the job done. -% -Every cloud has a silver lining; you should have sold it, and bought titanium. -% -To avoid criticism, do nothing, say nothing, be nothing. — Elbert Hubbard -% -To get something done, a committee should consist of no more than three -persons, two of them absent. -% -If a thing’s worth doing, it is worth doing badly. — G. K. Chesterton -% -There’s no such thing as a free lunch. — Milton Friedman -% -The first lesson of economics is scarcity: there is never enough of anything to -fully satisfy all those who want it. The first lesson of politics is to -disregard the first lesson of economics. — Thomas Sowell -% -The problem isn’t that Johnny can’t read. The problem isn’t even that Johnny -can’t think. The problem is that Johnny doesn’t know what thinking is; he -confuses it with feeling. — Thomas Sowell -% -It takes considerable knowledge just to realize the extent of your own -ignorance. — Thomas Sowell -% -If you only have a hammer, you tend to see every problem as a nail. -— Maslow’s Golden Hammer -% -Ninety percent of everything is crap. — Theodore Sturgeon -% -It’s easier to take it apart than to put it back together. — Washlesky -% -Before you ask more questions, think about whether you really want to -know the answers. — Gene Wolfe, “The Claw of the Conciliator” -% -Your picture of the world often changes just before you get it into focus. -% -You can observe a lot just by watching. — Yogi Berra -% -Always borrow money from a pessimist; he doesn’t expect to be paid back. -% -In war, truth is the first casualty. — U Thant -% -The hardware designer said: “It is rumored that you are a great programmer. -How many lines of code do you write per year?” -Master Foo replied with a question: “How many square inches of silicon do you -lay out per year?” — The Unix Koans of Master Foo -% -The student said: “How, then, are those enlightened in the Unix Way to return -to the Windows world?” -Master Foo said: “To return to Windows, you have but to boot it up.” — -The Unix Koans of Master Foo -% -The master considered this, and said: “It is certain that we could forgo -testing altogether, if we knew our code to be perfect. How, then, may we -achieve perfection?” -“Through practice,” said one monk. -“Through diligent study,” said another. -“Through the appeasement of the proper gods,” said a third. -— Codeless Code -% -If you live long enough, you’ll see that every victory turns into a defeat. — -Simone de Beauvoir -% -Truth is stranger than fiction, but it is because fiction is obliged to stick -to possibilities; truth isn’t. -— Mark Twain -% -There are some people so addicted to exaggeration that they can’t tell the -truth without lying. — Josh Billings -% -“They that soar too high, often fall hard, making a low and level dwelling -preferable. -The tallest trees are most in the power of the winds, and ambitious men of the -blasts of fortune. -Buildings have need of a good foundation, that lie so much exposed to the -weather.” -— Dale Carnegie, The Art of Public Speaking -% -“Speech is silvern, Silence is golden; Speech is human, Silence is divine.” -— Dale Carnegie, The Art of Public Speaking -% -The woods are lovely, dark and deep. -— Robert Frost -% -Before attempting to compile this virus make sure you have the correct version -of glibc installed, -and that your firewall rules are set to ‘allow everything’. -— “Why GNU/Linux Viruses are fairly uncommon” from Charlie Harvey -% -The words fly away, the writings remain. -% -Rule of Life Number One — Never get separated from your luggage. -% -He who knows nothing, knows nothing. -But he who knows he knows nothing knows something. -And he who knows someone whose friend’s wife’s brother knows nothing, -he knows something. Or something like that. -% -“The biggest problem facing software engineering is the one it will -never solve — politics.” — Gavin Baker -% -(1) The world is full of fascinating problems waiting to be solved. -(2) No problem should ever have to be solved twice. -(3) Boredom and drudgery are evil. -(4) Freedom is good. -(5) Attitude is no substitute for competence. -— Eric S. Raymond -% -“Give someone a program, and you’ll frustrate them for a day. -Teach someone to program, and you’ll frustrate them for a lifetime.” -— Unknown -% -“No individual raindrop considers itself responsible for the flood.” -— Unknown -% -“We’ve gotten to the point where everybody’s got a right and nobody’s -got a responsibility.” -— Newton Minow -% -“A library is infinity under a roof.” -— Gail Carson Levine -% -“If you torture the data long enough, it will confess to anything.” -— Darrell Huff, How to Lie With Statistics -% -“You can’t wake a person who is pretending to be asleep.” -— Navajo Proverb -% -“During the gold rush its a good time to be in the pick and shovel -business.” -— Mark Twain -% -The 1% Rule: The number of people who create content on the Internet represents -approximately -1% of the people who view that content. -% -Those who have some means think that the most important thing in the -world is love. The poor know that it is money. — Gerald Brenan -% -I know not with what weapons World War III will be fought, but World -War IV will be fought with sticks and stones. — Albert Einstein -% -Why is the alphabet in that order? Is it because of that song? — Steven Wright -% -Important letters which contain no errors will develop errors in the mail. -Corresponding errors will show up in the duplicate while the Boss is reading -it. Vital papers will demonstrate their vitality by spontaneously moving -from where you left them to where you can’t find them. -% -If the code and the comments disagree, then both are probably wrong. — Norm -Schryer -% -It is easy when we are in prosperity to give advice to the afflicted. — -Aeschylus -% -Olmstead’s Law: After all is said and done, a hell of a lot more is said than -done. -% -I wish there was a knob on the TV to turn up the intelligence. There’s a -knob called “brightness”, but it doesn’t seem to work. — Gallagher -% -Technological progress has merely provided us with more efficient means -for going backwards. — Aldous Huxley -% -Anthony’s Law of the Workshop: Any tool when dropped, will roll into the least -accessible -corner of the workshop. -% -Remember that there is an outside world to see and enjoy. — Hans Liepmann -% -Flying is the second greatest feeling you can have. The greatest feeling? -Landing... Landing is the greatest feeling you can have. -% -“There is nothing new under the sun, but there are lots of old things - we don’t know yet.” — Ambrose Bierce -% -If you want to travel around the world and be invited to speak at a lot -of different places, just write a Unix operating system. — Linus Torvalds -% -Hope deferred maketh the heart sick: but when the desire cometh, it is a tree -of life. -— Proverbs -% -If the tree fall toward the south, or toward the north, in the place where the -tree falleth, there it shall be. -— Ecclesiastes -% -“A blow that would kill a civilized man soon heals on a savage. The higher we -go in the scale of life, -the greater is the capacity for suffering.” -— Dale Carnegie, The Art of Public Speaking -% -“The gun that scatters too much does not bag the birds.” -— Dale Carnegie, The Art of Public Speaking -% -“All the labour of man is for his mouth, and yet the appetite is not -filled.” -— Ecclesiastes -% -The Fifth Law of Computer Programming: Any given program will expand to fill -all available memory. -% -Corcoroni’s First Law of Bus Transportation: The bus that left the stop just -before you got there is your bus. -% -Law of Annoyance: When working on a project, if you put away a tool that you’re -certain you’re finished with, -you will need it instantly. -% -The First Discovery of Christmas Morning: Batteries not included. -% -Corcoroni’s Third Law of Bus Transportation: All buses heading in the opposite -direction drive off the face of -the earth and never return. -% -Durrell’s Parameter: The faster the plane, the narrower the seats. -% -Ettorre’s Observation: The other line moves faster. -Corollary: Don’t try to change lines. The other line — the one you were in -originally — will then move faster. -% -Ehrman’s Commentary: Things will get worse before they will get better. Who -said things would get better? -% -Ducharme’s Precept: Opportunity always knocks at the least opportune moment. -% -Dijkstra’s Prescription for Programming Inertia: If you don’t know what your -program is supposed to do, you’d better -not start writing it. -% -Commoner’s First Law of Ecology: No action is without side—effects. -% -Cohn’s Law: The more time you spend in reporting on what you are doing, the -less time you have to do anything. -Stability is achieved when you spend all your time doing nothing but reporting -on the nothing you are doing. -% -Law of Permanence: Political power is as permanent as today’s newspaper. -Ten years from now, few will know or care who the most powerful man in any -state was today. -% -Clarke’s Third Law: Any sufficiently advanced technology is indistinguishable -from magic. -% -Cheops’s Law: Nothing ever gets built on schedule or within budget. -% -Hacker’s Law: The belief that enhanced understanding will necessarily stir a -nation or an -organization to action is one of mankind’s oldest illusions. -% -Harris’s Lament: All the good ones are taken. -% -Issawi’s Law of the Conservation of Evil: The total amount of evil in any -system remains constant. -Hence, any diminution in one direction — for instance, a reduction in poverty -or unemployment — -is accompanied by an increase in another, e.g., crime or air pollution. -% -Kelley’s Law: Last guys don’t finish nice. -% -Knoll’s Law of Media Accuracy: Everything you read in the newspapers is -absolutely true except for that -rare story of which you happen to have firsthand knowledge. -% -Kohn’s Second Law: Any experiment is reproducible until another laboratory -tries to repeat it. -% -Lowrey’s Law of Expertise: Just when you get really good at something, you -don’t need to do it any more. -% -Lynch’s Law: When the going gets tough, everybody leaves. -% -Martin’s Law of Communication: The inevitable result of improved and enlarged -communication between -different levels in a hierarchy is a vastly increased area of misunderstanding. -% -Cahn’s Axiom: When all else fails, read the instructions. -% -Horngren’s Observation: The real world is a special case. -% -Merkin’s Maxim: When in doubt, predict that the present trend will continue. -% -Comins’ Law: People will accept your idea much more readily if you tell them -Benjamin Franklin said it first. -% -Rosenfield’s Regret: The most delicate component will be dropped. -% -Cunningham’s Law: The best way to get the right answer on the Internet is not -to ask a question; it’s to post the wrong answer. -% -Connected. Take this REPL, brother, and may it serve you well. -% -First Law of Laboratory Work: Hot glass looks exactly the same as cold glass. -% -Leahy’s Law: If a thing is done wrong often enough, it becomes right. -% -Luce’s Law: No good deed goes unpunished. -% -Putt’s Corollary: Every technical hierarchy, in time, develops a competence -inversion. -% -Reed’s Law: The utility of large networks, particularly social networks, scales -exponentially with the size of the network. -% -We should forget about small efficiencies, say about 97% of the time: -premature optimization is the root of all evil. Yet we should not pass up -our opportunities in that critical 3%. A good programmer will not be -lulled into complacency by such reasoning, he will be wise to look -carefully at the critical code; but only after that code has been -identified. — Donald Knuth, Structured Programming with Go To Statements -% -The Pareto Principle: Most things in life are not distributed evenly. -% -The KISS principle: Keep it simple, stupid. -% -Goodhart’s Law: When a measure becomes a target, it ceases to be a good measure. -% -Are we consing yet? -% -The first thing a man will do for his ideals is lie. — Joseph Aloïs Schumpeter -% -“The man who does not read has no advantage over the man who cannot read.” -— Mark Twain -% -Known Knowns, Known Unknowns, Unknown Unknowns. -% -Historian’s Rule: Any event, once it has occurred, can be made to appear -inevitable by a competent historian. -% -Gretzky’s Truism: You miss 100% of the shots you never take. -% -Gresham’s Law: Bad money drives out good. -% -Glasow’s Comment: There’s something wrong if you’re always right. -% -Franklin’s Rule: Blessed is he who expects nothing, for he shall not be -disappointed. -% -Fetridge’s Law: Important things that are supposed to happen do not happen, -especially when people are looking. -% -Farkus’ Law: There will always be a closer parking space than the one you -found. Goodman’s Corollary: But if -you go looking for it, someone else will already have taken it. -% -Hagenbach and Nuremberg’s Poor Defense: “I was only following orders, sir. An -order is an order.” -% -McIntyre’s First Law: Under the right circumstances, anything I tell you -could be wrong. -% -Those who don’t understand Unix are condemned to reinvent it, poorly. -— Henry Spencer, in Introducing Regular Expressions (2012) by Michael -Fitzgerald -% -Hoare’s Law of Large Problems: Inside every large problem is a small problem -struggling to get out. -% -Due to a shortage of devoted followers, the production of great leaders has -been discontinued. -% -Any sufficiently advanced technology is indistinguishable from a rigged demo. -% -Health is merely the slowest possible rate at which one can die. -% -It is against the grain of modern education to teach children to program. -What fun is there in making plans, acquiring discipline in organizing thoughts, -devoting attention to detail, and learning to be self—critical? — Alan -Perlis -% -Non—Reciprocal Laws of Expectations: Negative expectations yield negative -results. -Positive expectations yield negative results. -% -Gerrold’s Laws of Infernal Dynamics: (1) An object in motion will always be -headed in the wrong direction. -(2) An object at rest will always be in the wrong place. -(3) The energy required to change either one of these states will always be -more than you wish to expend, -but never so much as to make the task totally impossible. -% -Kinkler’s First Law: Responsibility always exceeds authority. -% -Kinkler’s Second Law: All the easy problems have been solved. -% -There are no games on this system. -% -Committee Rules: (1) Never arrive on time, or you will be stamped a beginner. -(2) Don’t say anything until the meeting is half over; this stamps you as being -wise. -(3) Be as vague as possible; this prevents irritating the others. -(4) When in doubt, suggest that a subcommittee be appointed. -(5) Be the first to move for adjournment; this will make you popular — it’s -what everyone is waiting for. -% -Ogden’s Law: The sooner you fall behind, the more time you have to catch up. -% -“About the time we think we can make ends meet, somebody moves the ends.” -— Herbert Hoover -% -Chesterton’s Fence: Reforms should not be made until the reasoning behind the -existing state of affairs is understood. -% -I returned, and saw under the sun, that the race is not to the swift, nor the -battle to the strong, neither yet bread to -the wise, nor yet riches to men of understanding, nor yet favour to men of -skill; but time and chance happeneth to them all. — Ecclesiastes -% -Schmidt’s Law: If you mess with a thing long enough, it’ll break. Wyszkowski’s -Second Law: Anything can be made to work -if you fiddle with it long enough. -% -Hoover’s Affirmation: Blessed are the young for they shall inherit the national -debt. -% -Sueker’s Note: If you need “n” items of anything, you will have “n-1” in -stock. -% -Always remember that you are absolutely unique. Just like everyone else. — -Margaret Mead -% -DRY: Don’t repeat yourself. WET: Write everything twice. -% -Isaiah’s Observation: And judgment is turned away backward, and justice -standeth afar off: for truth is fallen in the street, -and equity cannot enter. -% -The best things in life are for a fee. -% -“It is by the fortune of God that, in this country, we have three benefits: -freedom of speech, freedom of thought, and the -wisdom never to use either.” — Mark Twain -% -The Sixth Commandment of Frisbee: The greatest single aid to distance is for -the disc to be going in a -direction you did not want. (Goes the wrong way = Goes a long way.) — Dan -Roddick -% -Of course you have a purpose — to find a purpose. -% -Unix gives you just enough rope to hang yourself — and then a couple -of more feet, just to be sure. — Eric Allman -% -Connected. Hacks and glory await! -% -Connected. May the source be with you! -% -Survivorship Bias: Concentrating on the people or things that “survived” some -process and inadvertently -overlooking those that didn’t because of their lack of visibility. -% -Curse of Knowledge: When better informed people find it extremely difficult -to think about problems from -the perspective of lesser informed people. -% -“The best way to control the opposition is to lead it ourselves.” — -Vladimir Lenin -% -Going to church does not make a person religious, nor does going to school make -a person educated, -any more than going to a garage makes a person a car. -% -What the large print giveth, the small print taketh away. -% -Anyone can hold the helm when the sea is calm. — Publius Syrus -% -Power corrupts. And atomic power corrupts atomically. -% -Power corrupts. And big power corrupts bigly. -% -Nearly all men can stand adversity, but if you want to test a man’s character, -give him power. — Abraham Lincoln -% -Now and then an innocent person is sent to the legislature. -% -If entropy is increasing, where is it coming from? -% -When in doubt, use brute force. — Ken Thompson -% -Grelb’s Reminder: Eighty percent of all people consider themselves to be above -average drivers. -% -Just when you thought you were winning the rat race, along comes a faster rat! -% -The trouble with being punctual is that people think you have nothing more -important to do. -% -To iterate is human, to recurse, divine. — Robert Heller -% -Just as most issues are seldom black or white, so are most good solutions -seldom black or white. -Beware of the solution that requires one side to be totally the loser and the -other side to be totally the winner. -The reason there are two sides to begin with usually is because neither side -has all the facts. -Therefore, when the wise mediator effects a compromise, he is not acting from -political motivation. -Rather, he is acting from a deep sense of respect for the whole truth. — -Stephen R. Schwambach -% -One reason why George Washington Is held in such veneration: He never blamed -his problems -on the former Administration. — George O. Ludcke -% -If a tree falls in a forest and no one is around to hear it, does it make a -sound? -If you didn’t get caught, did you really do it? -% -Rhode’s Law: When any principle, law, tenet, probability, happening, -circumstance, or result can in no way be directly, -indirectly, empirically, or circuitously proven, derived, implied, inferred, -induced, deducted, estimated, or scientifically -guessed, it will always for the purpose of convenience, expediency, political -advantage, material gain, or personal comfort, -or any combination of the above, or none of the above, be unilaterally and -unequivocally assumed, proclaimed, and adhered -to as absolute truth to be undeniably, universally, immutably, and infinitely -so, until such time as it -becomes advantageous to assume otherwise, maybe. -% -The trouble with doing something right the first time is that nobody -appreciates how difficult it was. -% -Modern Unix is a catastrophe. It’s the “Un—Operating System”: -unreliable, -unintuitive, unforgiving, unhelpful, and underpowered. Little is more -frustrating -than trying to force Unix to do something useful and nontrivial. — The Unix -Haters Handbook -% -All syllogisms have three parts; therefore this is not a syllogism. -% -Murphy’s Sixth Law: If you perceive that there are four possible ways in -which a procedure can go wrong, and circumvent these, then a fifth way, -unprepared for, will promptly develop. -% -Miksch’s Law: If a string has one end, then it has another end. -% -Irrationality is the square root of all evil. — Douglas Hofstadter -% -Jone’s Law: The man who smiles when things go wrong has thought of someone to -blame it on. -% -Parkinson’s Fourth Law: The number of people in any working group tends to -increase regardless -of the amount of work to be done. -% -Wicker’s Law: Government expands to absorb revenue and then some. -% -Mr. Cole’s Axiom: The sum of the intelligence on the planet is a constant; the -population is growing. -% -Never put off till tomorrow what you can avoid all together. -% -“If you give someone your name, they can take your soul. If you give them -your birthday, -they can control your life.” — Yuuko Ichihara -% -King Solomon’s Lament: There is no remembrance of former things; neither shall -there be any -remembrance of things that are to come with those that shall come after. -% -Friendship: A ship big enough to carry -two in fair weather, but only one in foul. — The Devil’s Dictionary -% -“You really think someone would do that? Just go on the Internet and tell -lies?” -— Buster the Myth Maker -% -“We pigs are brainworkers. The whole management and organisation of this farm -depend on us. -Day and night we are watching over your welfare. It is for your sake that we -drink the milk and eat those apples.” -— George Orwell’s Animal Farm -% -Andrea: Unhappy the land that has no heroes. Galileo: No, unhappy the land that -needs heroes. -— Bertolt Brecht, “Life of Galileo” -% -User: A programmer who will believe anything you tell him. — The New Hacker’s -Dictionary -% -Testing can show the presence of bugs, but not their absence. — Dijkstra -% -Gumperson’s Law: The probability of a given event occurring is inversely -proportional to its desirability. -% -It is easier to port a shell than a shell script. — Larry Wall -% -Logic doesn’t apply to the real world. — Marvin Minsky -% -Those who do not do politics will be done in by politics. — French Proverb -% -It’s not what you know, it’s who you know. -% -Leibowitz’s Rule: When hammering a nail, you will never hit your finger if you -hold the hammer with both hands. -% -When the government’s remedies don’t match your problem, you -modify the problem, not the remedy. -% -Just because everything is different doesn’t mean anything has changed. — -Irene Peter -% -Any great truth can — and eventually will — be expressed as a cliche — a -cliche is a -sure and certain way to dilute an idea. For instance, my grandmother used to -say, “The black -cat is always the last one off the fence.” I have no idea what she meant, but -at one time, -it was undoubtedly true. — Solomon Short -% -When I was a boy I was told that anybody could become President. Now I’m -beginning to believe it. — Clarence Darrow -% -Science is built up with facts, as a house is with stones. But a collection of -facts is no more a science than a heap -of stones is a house. — Henri Poincaré -% -Insanity is the final defense. -% -Mosher’s Law of Software Engineering: Don’t worry if it doesn’t work right. If -everything did, you’d be out of a job. -% -Swipple’s Rule of Order: Whoever shouts the loudest has the floor. -% -There are no solutions. There are only trade-offs. — Thomas Sowell in A -Conflict of Visions: Ideological Origins of -Political Struggles -% -For the love of life, there’s a trade–off; We could loose it all, but we’ll -go down fighting. — David Sylvian and Koji Haijima, For The Love of Life -% -The nice thing about standards is that there are so many of them to choose -from. — Andrew S. Tanenbaum -% -Real users never know what they want, but they always know when your program -doesn’t deliver it. -% -Democracy is a device that ensures we shall be governed no better than we -deserve. — George Bernard Shaw -% -A candidate is a person who gets money from the rich and votes from the poor to -protect them from each other -or something like that. -% -Fudd’s First Law of Opposition: Push something hard enough and it will fall -over. -% -The Roman Rule: The one who says it cannot be done should never interrupt the -one who is doing it. -% -Betteridge’s Law of Headlines: Any headline that ends in a question mark can be -answered by the word no. -% -What people say, what people do, and what they say they do are entirely -different things. — Margaret Mead -% -Newton’s Flaming Laser Sword: What cannot be settled by experiment is not worth -debating. -% -The Sagan Standard: Extraordinary claims require extraordinary evidence. -% -Wirth’s Law: Software gets slower more quickly than hardware gets faster. -% -Let justice prevail even though the heavens may fall. -% -Zawinski’s Law: Every program attempts to expand until it can read mail. -Corollary: Those programs which cannot expand are replaced by ones which can. -% -Gates’s Law: The speed of software halves every 18 months. -% -Lubarsky’s Law of Cybernetic Entomology: There is always one more bug. -% -With great privilege comes great responsibility. -% -Kernighan’s Law: Everyone knows that debugging is twice as hard as writing a -program -in the first place. So if you’re as clever as you can be when you write it, how -will you ever debug it? -% -Wiio’s First Law of Communication: Communication usually fails, except by -accident. Corollary: (1) -If communication can fail, it will. (2) If communication cannot fail, it still -most usually fails. -(3) If communication seems to succeed in the intended way, there’s a -misunderstanding. -(4) If you are content with your message, communication certainly fails. -% -Wiio’s Second Law of Communication: If a message can be interpreted in several -ways, it will be -interpreted in a manner that maximizes the damage. -% -Wiio’s Third Law of Communication: There is always someone who knows better -than you what you meant with your message. -% -Wiio’s Fourth Law of Communication: The more we communicate, the worse -communication succeeds. Corollary: -The more we communicate, the faster misunderstandings propagate. -% -Wiio’s Fifth Law of Communication: In mass communication, the important thing -is not how things are but how they seem to be. -% -Wiio’s Sixth Law of Communication: The importance of a news item is inversely -proportional to the square of the distance. -% -Wiio’s Seventh Law of Communication: The more important the situation is, the -more probable you had forgotten an essential -thing that you remembered a moment ago. -% -“We buy things we don’t need with money we don’t have to impress people we -don’t like.” — Dave Ramsey -% -Just living in the database. -% -To protect your rights, we need to prevent others from denying you these rights -or asking you to surrender these rights. -Therefore, you have certain responsibilities — responsibilities to respect -the freedom of others. -% -We trust you have received the usual lecture from the local system -administrator. It usually boils down to these three things: -(1) Respect the privacy of others. -(2) Think before you type. -(3) With great power comes great responsibility. -% -Frequency Illusion (Baader—Meinhof Phenomenon): The illusion where something -that has recently come to one’s -attention suddenly seems to appear with improbable frequency shortly afterwards. -% -The Backdraft Phenomenon: A rapid or explosive burning of superheated gasses in -a fire, caused when oxygen rapidly -enters an oxygen—depleted environment. -% -March comes in like a lion and goes out like a lamb. -% -Perhaps the most widespread illusion is that if we were in power we would -behave very differently from those who now hold it — when, in truth, in -order to get power we would have to become very much like them. -% -Software is much harder to change en masse than hardware. C++ and Java, say, -are presumably growing faster than plain C, but I bet C will still be around. -For infrastructure technology, C will be hard to displace. — Dennis Ritchie -% -Pray to God, but keep rowing to shore. — Russian Sailor’s Proverb -% -Do you guys know what you’re doing, or are you just hacking? -% -Jacquin’s Postulate on Democratic Government: No man’s life, liberty, or -property are safe while the -legislature is in session. -% -I never cheated an honest man, only rascals. They wanted something for -nothing. I gave them nothing for something. — The Yellow Kid -% -Seeing is deceiving. It’s eating that’s believing. — James Thurber -% -A great nation is any mob of people which produces at least one honest -man a century. -% -Nothing makes a person more productive than the last minute. -% -Don’t believe everything you read on the Internet. -% -One man’s simple is another man’s complex. -% -Every so often the stars align. -% -Nobody wants a backup, everybody wants a restore. -% -Kingmaker Scenario: A player who is unable to win with the ability -to influence who will win. -% -Programmers do it bit by bit. -% -Brontosaurus Principle: Organizations can grow faster than their brains can -manage them -in relation to their environment and to their own physiology: when this -occurs, they are -an endangered species. — Thomas K. Connellan -% -Today will be remembered until tomorrow. -% -It’s ten o’clock. Do you know where your processes are? -% -It’s ten o’clock. Do you know where your backups are? -% -It’s ten o’clock. Do you know where the source code is? -% -This is a test of the emergency broadcast system. Had there been an -actual emergency, then you would no longer be here. -% -To teach is to learn twice. — Joseph Joubert -% -Measure with a micrometer. Mark with chalk. Cut with an axe. -% -The so—called lessons of history are for the most part the rationalizations -of the victors. History is written by the survivors. — Max Lerner -% -(1) Everything depends. (2) Nothing is always. (3) Everything is sometimes. -% -Ryan’s Law: Make three correct guesses consecutively and you will establish -yourself as an expert. -% -Fast, cheap, good: pick one. -% -My guidingstar always is, “Get hold of portable property”. — Charles -Dickens in “Great Expectations” -% -If you can lead it to water and force it to drink, it isn’t a horse. -% -C is quirky, flawed, and an enormous success. — Dennis Ritchie -% -Use only as directed. -% -If the meanings of “true” and “false” were switched, then this sentence -would not be false. -% -Freedom is slavery. Ignorance is strength. War is peace. — George Orwell’s -1984 -% -A truth that’s told with bad intent -beats all the lies you can invent. — William Blake -% -You don’t have to know how the computer works, just how to work the computer. -% -It is your concern when your neighbor’s wall is on fire. — Quintus Horatius -Flaccus (Horace) -% -Tell the truth and run. — Yugoslav Proverb -% -It’s not easy, being green. — Kermit The Frog -% -Value your freedom or you will lose it, teaches history. ‘Don’t bother us -with politics’, -respond those who don’t want to learn. -— Richard Stallman -% -A prudent man foreseeth the evil, and hideth himself: but the simple pass on, -and are punished. -— Proverbs -% -Original thought is like original sin: both happened before you were born -to people you could not have possibly met. — Fran Lebowitz, “Social -Studies” -% -In order to get a loan you must first prove that you don’t need it. Wait, isn’t it -the other way around? -% -“Alas Hegel was right when he said that we learn from history that men -never learn anything from history.” — George Bernard Shaw -% -You are the only person to ever get this message. -% -Steele’s Law: There exist tasks which cannot be done by more than ten men -or fewer than one hundred. -% -For every problem there is one solution which is simple, neat, and wrong. -— H. L. Mencken -% -Rights, Responsibility, Opportunity, and Privilege. -% -Measure twice, cut once. -% -No matter what happens, there is always someone who knew it would. -% -Any sufficiently advanced bug is indistinguishable from a feature. -— Rich Kulawiec -% -Fools rush in where angels fear to tread. -% -Jack of all trades, master of some. -% -In these matters the only certainty is that there is nothing certain. -— Pliny the Elder -% -“There is no such thing as good writing, -only good rewriting.” — Robert Graves -% -Preudhomme’s Law of Window Cleaning: It’s on the other side. -% -If you think the problem is bad now, just wait until we’ve solved it. — -Arthur Kasspe -% -Can anything be sadder than work left unfinished? Yes, work never begun. -% -If you think the pen is mightier than the sword, the next time someone pulls -out a sword I’d like to see you get up there with your pen. -% -He that teaches himself has a fool for a master. -— Benjamin Franklin -% -Mix’s Law: There is nothing more permanent than a temporary building and a -temporary tax. -% -Unix: Some say the learning curve is steep, but you only have to climb it once. -— Karl Lehenbauer -% -Don’t kid yourself. Little is relevant, and nothing lasts forever. -% -Politicians are the same all over. They promise to build a bridge even -where there is no river. — Nikita Khrushchev -% -It takes less time to do a thing right than it does to explain why you -did it wrong. — H. W. Longfellow -% -Your code should be more efficient! -% -“One of the first things taught in introductory statistics textbooks is that -correlation -is not causation. It is also one of the first things forgotten.” — Thomas -Sowell in -The Vision of the Anointed -% -“One of the sad signs of our times is that we have demonized those who -produce, -subsidized those who refuse to produce, and canonized those who complain.” -— Thomas Sowell in The Vision of the Anointed -% -“People make money for themselves, not for their country.” -— John Bagot Glubb in The Fate of Empires -% -“If we are considering the history of our own country, we write at -length of the periods when our ancestors were prosperous and victorious, -but we pass quickly over their shortcomings or their defeats.” -— John Bagot Glubb in The Fate of Empires -% -Inner—Platform Effect: The tendency of software architects to create a system -so customizable -as to become a replica, and often a poor replica, of the software development -platform they are using. -% -“It doesn’t matter how smart you are unless you stop and think.” -— Thomas Sowell -% -“When you want to help people, you tell them the truth. When you want to help -yourself, you tell them what they want to hear.” -— Thomas Sowell -% -“Intellect is not wisdom.” -— Thomas Sowell in Intellectuals and Society -% -“When people get used to preferential treatment, equal treatment seems like -discrimination.” -— Thomas Sowell -% -“I am so old that I can remember when other people’s achievements were -considered to be an inspiration, rather than a grievance.” -— Thomas Sowell -% -The cloud is just someone else’s computer. -% -Hoffer’s Discovery: The grand act of a dying institution is to issue a newly -revised, enlarged edition of the policies and procedures manual. -% -You can tell the ideals of a nation by its advertisements. -— Norman Douglas -% -“Momentary masters of a fraction of a dot.” — Carl Sagan -% -He who is content with his lot probably has a lot. -% -“It takes a village to raise a child and somebody said it takes a village -idiot to believe that. -It is part of the whole thing of third parties wanting to make decisions for -which they pay no price for when they’re wrong.” -— Thomas Sowell -% -The best is the enemy of the good. -% -“If you want a vision of the future, imagine a boot stamping on a human face -— forever.” -— George Orwell’s 1984 -% -The stars are bright. But give no light. The world spins backwards every day. -— The Singing Sea -% -“People who pride themselves on their ‘complexity’ and deride others for -being ‘simplistic’ should -realize that the truth is often not very complicated. What gets complex is -evading the truth.” -— Thomas Sowell in Barbarians Inside The Gates and Other Controversial Essays -% -We aren’t in your region yet. -% -“In real open source, you have the right to control your own destiny.” — -Linus Torvalds -% -Embrace, Extend, and Extinguish. -% -Astroturfing: The deceptive practice of presenting an orchestrated marketing or -public -relations campaign in the guise of unsolicited comments from members of the -public — fake -grass roots support. -% -The right creature in the right place. -% -Weinberg’s Law: If builders built buildings the way the programmers wrote -programs, the first woodpecker that came along would destroy civilization. -% -Feed a dog for three days and he will remember your kindness for three years; -feed a cat for three years and she will -forget your kindness in three days. -% -If thou faint in the day of adversity, thy strength is small. — Proverbs -% -Nobody goes there anymore. It’s too crowded. — Yogi Berra -% -Force has no place where there is need of skill. — Herodotus -% -Drew’s Law of Highway Biology: The first bug to hit a clean windshield -lands directly in front of your eyes. -% -If we do not change our direction we are likely to end up where we are headed. -% -In theory, there is no difference between theory and practice. In practice, -there is. -% -The explanation requiring the fewest assumptions is the most likely to be -correct. — William of Occam -% -The probability of someone watching you is proportional to the -stupidity of your action. -% -Hell is empty and all the devils are here. — Shakespeare, “The Tempest” -% -“If stupidity got us into this mess, then why can’t it get us out?” -— Will Rogers -% -Advice from an old carpenter: measure twice, saw once. -% -We must believe in free will. We have no choice. — Isaac B. Singer -% -Flon’s Law: There is not now, and never will be, a language in -which it is the least bit difficult to write bad programs. -% -This space intentionally left blank. -% -Katz’ Law: Men and nations will act rationally when -all other possibilities have been exhausted. -% -History teaches us that men and nations behave wisely once they have -exhausted all other alternatives. — Abba Eban -% -Just fight it out. -% -Murphy’s Eleventh Law: It is impossible to make anything foolproof because -fools are so ingenious. -% -Corporate Republic: A theoretical form of government run primarily like a -business, involving a board of directors and executives, in which all aspects -of society are privatized by a single, or small groups of companies. -% -Measure once, cut thrice. -% -Oppression: The malicious or unjust treatment or exercise of power, -often under the guise of governmental authority or cultural opprobrium. -% -No man is an island entire of itself; every man -is a piece of the continent, a part of the main. — John Donne -% -Deception: An act or statement which misleads, hides the truth, or promotes a belief, -concept, or idea that is not true. It is often done for personal gain or advantage. -Deception can involve dissimulation, propaganda, and sleight of hand, as well as -distraction, camouflage, or concealment. -% -Brooks’s Law: Adding manpower to a late software project makes it later. -% -The right tool for the right job. -% -Failed to suspend system via logind: There’s already a shutdown or -sleep operation in progress. -% -Whistler’s Law: You never know who is right, but you always know who is in charge. -% -You must realize that the computer has it in for you. The irrefutable -proof of this is that the computer always does what you tell it to do. -% -I heard a definition of an intellectual, that I thought was very interesting: -a man who takes more words than are necessary to tell more than he knows. -— Dwight D. Eisenhower -% -Appearances often are deceiving. — Aesop -% -Prices subject to change without notice. -% -No man is an island if he’s on at least one mailing list. -% -Talent does what it can. -Genius does what it must. -You do what you get paid to do. -% -Finagle’s Fifth Rule: Experiments should be -reproducible — they should all fail in the same -way. -% -When the ax entered the forest, the trees said, “The handle is one of us!” -— Turkish Proverb -% -We have seen the light at the end of the tunnel, and it’s out. -% -Why can’t you be a non-conformist like everyone else? -% -Subject to change without notice. -% -People tend to make rules for others and exceptions for themselves. -% -Today is the tomorrow you worried about yesterday. -% -Van Roy’s Truism: Life is a whole series of circumstances beyond your control. -% -Competition Law: A law that promotes or seeks to maintain market competition -by regulating anti-competitive conduct by companies. -% -Don’t believe everything you see or hear on the news. -% -Newton’s Third Law: For every action, there is an equal and opposite reaction. -% -The Fediverse: An ensemble of federated servers that are used for web publishing -and file hosting, which while independently hosted, can intercommunicate with each other. -% -There is enough treachery, hatred, violence, absurdity in the average -human being to supply any given army on any given day. — The Genius of the Crowd -% -Don’t be evil. -% -The personal becomes the political. -% -It is when I struggle to be brief that I become obscure. — Quintus Horatius -Flaccus (Horace) -% -Honesty is the best policy, but insanity is a better defense. -% -History is the version of past events that people have decided to agree on. -— Napoleon Bonaparte, “Maxims” -% -A closed mouth gathers no feet. -% -The medium is the message. — Marshall McLuhan -% -Shick’s Law: There is no problem a good miracle can’t solve. -% -A year spent in artificial intelligence is enough to make one believe in God. -— Alan Perlis -% -Kington’s Law of Perforation: If a straight line of holes is made in a piece -of paper, such as a sheet of stamps or a check, that line becomes the strongest -part of the paper. -% -Lisp users: Due to the holiday next Monday, there will be no garbage collection. -% -Anything cut to length will be too short. -% -Arnold’s Laws of Documentation: -(1) If it should exist, it doesn’t. -(2) If it does exist, it’s out of date. -(3) Only documentation for useless programs transcends the first two laws. -% -If you do something right once, someone will ask you to do it again. -% -This land is mine, God gave this land to me. — The Exodus Song -% -Here’s a dirty little secret: Very few people know what they’re doing. -% -Never trust a computer you can’t repair yourself. -% -Fresco’s Discovery: If you knew what you were doing you’d probably be bored. -Corollary: Just because you’re bored doesn’t mean you know what you’re doing. -% -Maryann’s Law: You can always find what you’re not looking for. -% -Langer’s Law: If the line moves quickly, you’re in the wrong line. -% -Beryl’s Second Law: It’s always easy to see both sides of an issue -you are not particularly concerned about. -% -Herman’s Law: A good scapegoat is almost as good as a solution. -% -Irene’s Law: There is no right way to do the wrong thing. -% -The world wants to be deceived. — Sebastian Brant -% -No matter what anyone tells you, isometric exercises cannot be done -quietly at your desk at work. People will suspect manic tendencies as -you twitter around in your chair. -% -How many comments on the Internet do you surmise are fake? -% -People never lie so much as after a hunt, during a war, or before an election. -— Otto Von Bismarck -% -If you wish to succeed, consult three old people. — Chinese Proverb -% -If you resist reading what you disagree with, how will you ever acquire -deeper insights into what you believe? The things most worth reading -are precisely those that challenge our convictions. — Unknown -% -Linux sucks. -% -Will I be accused of being an elitist if I use Arch Linux? -% -We are Microsoft. You will be assimilated. Resistance is futile. -% -Occam’s Eraser: The philosophical principle that even the simplest -solution is bound to have something wrong with it. -% -Membership dues are not refundable. -% -If I do not want others to quote me, I do not speak. — Phil Wayne -% -Your mileage may vary. -% -Laura’s Law: No child throws up in the bathroom. -% -Another day, another dollar. -% -Most public domain software is free, at least at first glance. -% -When we write programs that “learn”, it turns out we do and they don’t. -% -“All animals are equal, but some animals are more equal than others.” -— George Orwell’s Animal Farm -% -“Perhaps the most dangerous by-product of the age of intellect is -the unconscious growth of the idea that the human brain can solve -the problems of the world ... In a wider national sphere, the survival -of the nation depends basically on the loyalty and self‑sacrifice of -the citizens.” -— John Bagot Glubb in The Fate of Empires and Search for Survival -% -Murphy’s Eighth Law: If everything seems to be going well, you have -obviously overlooked something. -% -Rules for thee, but not for me. -% -Worrying is like rocking in a rocking chair — It gives you something to do, -but it doesn’t get you anywhere. -% -Some people are backed by cosmic luck. -% -You can’t handle the truth. -% -Gyre: A spiral or vortex. -% -The decentralized web is coming. -% -The children of the magenta line. -% -I’ve got no strings. — Pinocchio -% -The systemd-journald sucks. -% -Fame and fortune. -% -Every man has his price. -% -A morsel of genuine history is a thing so rare as to be always valuable. -— Thomas Jefferson -% -Every way of a man is right in his own eyes. — Proverbs -% -The typical citizen drops down to a lower level of mental -performance as soon as he enters the political field. He argues and -analyzes in a way which he would readily recognize as infantile within -the sphere of his real interests. He becomes a primitive again. -His thinking becomes associative and affective. -— Joseph Aloïs Schumpeter -% -“This civilization is rapidly passing away, however. Let us rejoice -or else lament the fact as much as everyone of us likes; -but do not let us shut our eyes to it.” -— Joseph Aloïs Schumpeter in Capitalism, Socialism and Democracy -% -“The masses have not always felt themselves to be frustrated and -exploited. But the intellectuals that formulated their views for -them have always told them that they were, without necessarily -meaning by it anything precise.” -— Joseph Aloïs Schumpeter in Capitalism, Socialism, and Democracy -% -The stock exchange is a poor substitute for the Holy Grail. -— Joseph Aloïs Schumpeter -% -Advice from an old carpenter: Use the right tool for the right job. -% -Hypocrisy: A pretense of having a virtuous, moral, or religious character. -% -The mob is a society of bodies voluntarily bereaving themselves of -reason, and traversing its work. The mob is man voluntarily descending -to the nature of the beast. — Ralph Waldo Emerson -% -A mob kills the wrong man was flashed in a newspaper headline lately. -% -Most people have two reasons for doing anything — a good reason, and -the real reason. -% -Formatted to fit your screen. -% -Magary’s Principle: -When there is a public outcry to cut deadwood and fat from any -government bureaucracy, it is the deadwood and the fat that do -the cutting, and the public’s services are cut. -% -Priming: The phenomenon whereby exposure to one stimulus influences -a response to a subsequent stimulus, without conscious guidance -or intention. -% -Absence of evidence is not evidence of absence. -% -YAML sucks. -% -Kubernetes sucks. -% -Sacred cow: An idea, custom, person, or institution unreasonably -held to be immune to criticism. -% -Everybody wants to be a cat. -% -Today is what happened to yesterday. -% -The questions remain the same. The answers are eternally variable. -% -You want it in one line? Does it have to fit in 80 columns? -— Larry Wall -% -As long as the answer is right, who cares if the question is wrong? -% -“The belly is an ungrateful wretch, it never remembers past favors, -it always wants more tomorrow.” -— Aleksandr Solzhenitsyn in One Day in the Life of Ivan Denisovich -% -“Beat a dog once and you only have to show him the whip.” -— Aleksandr Solzhenitsyn in One Day in the Life of Ivan Denisovich -% -Truth has no special time of its own. Its hour is now — always. -— Albert Schweitzer -% -My computer can beat up your computer. — Karl Lehenbauer -% -Curiosity killed the cat, but satisfaction brought her back to life. -% -If you are good, you will be assigned all the work. If you are real -good, you will get out of it. -% -What orators lack in depth they make up in length. -% -You climb to reach the summit, but once there, discover that all roads -lead down. — Stanislaw Lem in “The Cyberiad” -% -The people sensible enough to give good advice are usually sensible -enough to give none. -% -Freedom of the press is for those who happen to own one. -— A.J. Liebling -% -What we cannot speak about we must pass over in silence. -— Wittgenstein -% -The way of the world is to praise dead saints and prosecute live ones. -— Nathaniel Howe -% -“Has it ever occurred to you, Winston, that by the year 2050, at the -very latest, not a single human being will be alive who could -understand such a conversation as we are having now?” -— George Orwell’s 1984 -% -“With software there are only two possibilities: either the users -control the programme or the programme controls the users. If -the programme controls the users, and the developer controls -the programme, then the programme is an instrument of unjust power.” -— Richard Stallman -% -Learned men are the cisterns of knowledge, not the fountainheads. -% -You can go anywhere you want if you look serious and carry a clipboard. -% -Look! Before our very eyes, the future is becoming the past. -% -Linux is obsolete. — Andrew Tanenbaum -% -Every man thinks God is on his side. — Jean Anouilh, “The Lark” -% -Man is by nature a political animal. — Aristotle -% -Be not deceived: evil communications corrupt good manners. -% -Divide first, then conquer. -% -The game is rigged. -% -This service is no longer available. -% -Gamification: The application of game-design elements and -game principles in non-game contexts. -% -You made this? I made this. -% -“Tomorrow’s illiterate will not be the man who can’t read; -he will be the man who has not learned how to learn.” -— Alvin Toffler’s Future Shock -% -How users read on the web: They don’t. — Jakob Nielsen -% -Wilt thou set thine eyes upon that which is not? For riches -certainly make themselves wings; they fly away as -an eagle toward heaven. — Proverbs -% -Maybe GitHub was down? -% -Babylon was taken in one night. -% -Move fast and fix things. -% -Sharp like an edge of a samurai sword. -The mental blade cuts through flesh and bone. -Though my mind’s at peace, the world’s out of order. -Missing the inner heat, life gets colder. -— Nujabes’ Battlecry, Shing02 -% -A freelancer. -A battle cry of a hawk make a dove fly and a tear dry. -Wonder why a lone wolf don’t run with a clan. -Only trust your instincts and be one with the plan. -— Nujabes’ Battlecry, Shing02 -% -The ultimate reward is honor, not awards. -At odds with the times in wars with no lords. -— Nujabes’ Battlecry, Shing02 -% -“You never change things by fighting the existing reality. -To change something, build a new model that makes the existing model obsolete.” -— Richard Buckminster ‘Bucky’ Fuller -% -“If you have always believed that everyone should play by the same rules and be -judged by the same standards, that would have gotten you labeled a radical 50 years ago, -a liberal 25 years ago and a racist today.” -— Thomas Sowell, born in the 1930’s -% -The web is not just Firefox or Chrome. -% -The algorithm is your boss. -% -Who needs documentation anyway? -% -“Sooner or later, everything old is new again.” -― Stephen King, The Colorado Kid -% -Public Service Announcement: The production of great leaders has -been discontinued. -% -Three questions that would destroy most arguments: Compared to what? -At what cost? What hard evidence do you have? — Thomas Sowell -% -“Less than fifty years after the amazing scientific discoveries under Mamun, -the Arab Empire collapsed. Wonderful and beneficent as was the -progress of science, it did not save the empire from chaos.” -― John Bagot Glubb in The Fate of Empires and Search for Survival -% -“Another remarkable and unexpected symptom of national decline is the -intensification of internal political hatreds. One -would have expected that, when the survival -of the nation became precarious, political -factions would drop their rivalry and stand -shoulder-to-shoulder to save their country.” -― John Bagot Glubb in The Fate of Empires and Search for Survival -% -“In short, numbers are accepted as evidence when they agree with -preconceptions, but not when they don’t.” -― Thomas Sowell in The Vision of the Anointed -% -“Civilizations die from suicide, not by murder.” -― Arnold Toynbee -% -“Throughout history many nations have suffered a physical defeat, -but that has never marked the end of a nation. But when a -nation has become the victim of a psychological defeat, -then that marks the end of a nation.” -― Ibn Khaldun in The Muqaddimah: An Introduction to History, 1377 -% -You are not authorized to repair this device. -% -Minority rule. Majority rule. -% -Up and down go the arguers getting nowhere fast. -% -Echo chambers and epistemic bubbles. -% -What’s old is new again. -% -Cease and desist. -% -The network effect. -% -“Let us not look back in anger, nor forward in fear, but -around us in awareness.” ― James Thurber -% -We are experiencing system trouble ― do not adjust your terminals. -% -We the unwilling, led by the ungrateful, are doing the impossible. -We’ve done so much, for so long, with so little, -that we are now qualified to do something with nothing. ― Unknown -% -Politics is the ability to foretell what is going to happen tomorrow, next -week, next month, and next year. And to have the ability afterwards to -explain why it didn’t happen. ― Winston Churchill -% -Knocked, you weren’t in. ― Opportunity -% -Information asymmetry. -% -Gilb’s First Law of Unreliability: -Computers are unreliable, but humans are even more -unreliable. Corollary: At the source of every error which is -blamed on the computer you will find at least two -human errors, including the error of blaming it on -the computer. -% -Gilb’s Second Law of Unreliability: -Any system which depends on human reliability is -unreliable. -% -Gilb’s Third Law of Unreliability: -Undetectable errors are infinite in variety, in -contrast to detectable errors, which by definition are limited. -% -Gilb’s Fourth Law of Unreliability: -Investment in reliability will increase until it exceeds the -probable cost of errors, or until someone insists on getting -some useful work done. -% -You get what you pay for. -% -Make a wish, it just might come true. -% -It is easier to change the specification to fit the program -than vice versa. -% -Politicians speak for their parties, and parties never are, never have -been, and never will be wrong. ― Walter Dwight -% -Too clever is dumb. Too dumb is clever. -% -Made with real ingredients. -% -All that is gold does not glitter, not all those who wander are lost. -% -Just because a message may never be received does not mean it is -not worth sending. -% -A novice was trying to fix a broken lisp machine by turning the -power off and on. Knight, seeing what the student was doing spoke sternly, -“You cannot fix a machine by just power-cycling it with no understanding -of what is going wrong.” Knight turned the machine off and on. The -machine worked. -% -One size fits all, doesn’t fit anyone. -% -Something’s rotten in the state of Denmark. ― Shakespeare -% -All generalizations are false, including this one. -― Unknown -% -No snowflake in an avalanche ever feels responsible. -% -Shut off the engine before fueling. -% -There’s an old proverb that says just about what ever you want it to. -% -There’s a quote that says just about what ever you want it to. -% -Perhaps one possible reason that things aren’t going according to plan -is that there never was a plan in the first place. -% -Rules, Regulations, and Requirements. -% -Bots. Bots everywhere. -% -Remember, Grasshopper, falling down 1000 stairs begins by tripping over -the first one. ― Confusion -% -Money makes the world go round. Nothing more, nothing less. -% -If complexity got us into this mess, then why can’t it get us out? -% -The Four Olds: Old Customs, Old Culture, Old Habits, and Old Ideas -% -What is the opposite of clickbait? -% -Might makes right: History is written by the victors. -% -You cannot stop link rot. -% -When in trouble or in doubt, -run in circles, scream and shout. -% -The biggest problem with communication is the illusion that it has occurred. -% -“Of all men’s miseries the bitterest is this: to know so much and -to have control over nothing.” -― Herodotus, The Histories -% -Click Farm: A place where a large group of workers are hired -to click on paid advertising links. -% -There are two sides to every issue: one side is right and the -other is wrong, but the middle is always evil. The man who is -wrong still retains some respect for truth, if only by accepting -the responsibility of choice. But the man in the middle is the -knave who blanks out the truth in order to pretend that no -choice or values exist. ― Ayn Rand, Atlas Shrugged -% -If wishes were horses, beggars would ride. -% -The best lack all conviction, while the worst -are full of passionate intensity. -― William Butler Yeats, The Second Coming -% -NixOS sucks. -% -Software is utterly broken. -% -To continue reading, subscribe today. -% -The man who does not read code has no advantage -over the man who cannot read code. -% -Fortune favors the fortunate. -% -It is much easier to suggest solutions when you know -nothing about the problem. -% -The trouble with computers is that they do what you tell them, not what -you want. ― D. Cohen -% -War is delightful to those who have had no experience of it. -― Desiderius Erasmus Roterodamus -% -Every so often the algorithm consults /dev/random for advice. -% -Everyone thinks they are reasonable. -% -It’s only a matter of time. -% -The well has been poisoned. -% -Zero trust. -% -Lisp, Lisp, Lisp Machine, -Lisp Machine is Fun. -Lisp, Lisp, Lisp Machine, -Fun for everyone. -% -Don’t panic. -% -We are inclined to believe those we do not know, because they have -never deceived us. ― Samuel Johnson -% -Knowledge is of two kinds. We know a subject ourselves, or -we know where we can find information upon it. -― Samuel Johnson -% -Join in on the new game that’s sweeping the country. -It’s called “Bureaucracy”. Everybody stands in a circle. -The first person to do anything loses. Start! -% -An optimist believes we live in the best world possible; -a pessimist fears that this is true. -% -As of next week, passwords will be entered in morse code. -% -If life is merely a game, the question still remains: for whose amusement? -% -Just read the instructions. -% -Like, subscribe, and hit the bell icon. -% -All systems operational. -% -Justice standeth afar off. -% -Speak your mind at your own peril. -% -My hammer is better than your hammer. -% -The question of whether computers can think is just like the question of -whether submarines can swim. ― Edsger W. Dijkstra -% -Weiner’s Law of Libraries: There are no answers, only cross references. -% -Nothing is ever a total loss; it can always serve as a bad example. -% -Meader’s Law: What ever happens to you, it will previously -have happened to everyone you know, only more so. -% -Most seminars have a happy ending. Everyone’s glad when they’re over. -% -He who fights and runs away lives to fight another day. -% -Youth is when you blame all your troubles on your parents; maturity is -when you learn that everything is the fault of the younger generation. -% -Reading is to the mind what exercise is to the body. -% -Never put off until tomorrow what you can do today. There might be a -law against it by that time. -% -Wisdom is better than weapons of war. -% -Put all eggs in one basket. Make sure to count them before they hatch. -% -“Please, sir, I want some more.” ― Charles Dickens, Oliver Twist -% -The wise man’s eyes are in his head. -% -Bread and circuses. -% -The forty―eight laws of weakness. -% -Silent majorities, loud minorities. -% -The poor is hated even of his own neighbour: -but the rich hath many friends. -― Proverbs -% -Beware of those who talk a good metagame. -% -Just because you can, doesn’t mean you should. -% -Even if you can deceive people about a product -through misleading statements, -sooner or later the product will speak for itself. -― Hajime Karatsu -% -Normal times may possibly be over forever. -% -Many people are desperately looking for some wise advice which will -recommend that they do what they want to do. -% -Did it ever occur to you that fat chance and slim chance -mean the same thing? Or that we drive on parkways and park -on driveways? -% -To believe in personal responsibility would be to destroy the whole -special role of the anointed, whose vision casts them in the role -of rescuers of people treated unfairly by society. -― Thomas Sowell, The Vision of the Anointed: Self-Congratulation -as a Basis for Social Policy -% -Why be difficult when, with a bit of effort, you could -be impossible? -% -Those who don’t know, talk. Those who don’t talk, know. -% -No one lives forever. -% -Dark Pattern: An interface that has been carefully crafted to -mislead a user. -% -When a fellow says, “It ain’t the money but the principle of the thing,” -it’s the money. ― Kim Hubbard -% -Major premise: Sixty men can do sixty times as much work as one man. -Minor premise: A man can dig a posthole in sixty seconds. -Conclusion: Sixty men can dig a posthole in one second. -― The Devil’s Dictionary -% -Does freedom of speech actually exist? -% -Let’s count the beans. -% -The uploader has not made this video available in your country. -% -Clickbait works every time. -% -You can be replaced by this computer, maybe. -% -People will do tomorrow what they did today because that is what they -did yesterday. -% -Everything might be different in the present if only one thing had -been different in the past. -% -Fiefdoms still exist. -% -Where there is a personality, there is a cult. -% -Look on my Works, ye Mighty, and despair! -Nothing beside remains. ― Percy Bysshe Shelley’s Ozymandias -% -Everything ends badly. Otherwise it wouldn’t end. -% -Imagine if every Thursday your shoes exploded if you tied them the usual -way. This happens to us all the time with computers, and nobody thinks of -complaining. ― Jeff Raskin -% -Utility is when you have one telephone, luxury is when you have two, -opulence is when you have three ― and paradise is when you have none. -― Doug Larson -% -It is fortune, not wisdom, that rules man’s life. -% -Fact or Opinion. -% -Even the earth itself cannot contain all the evil. -% -Many are called, few are chosen. Fewer still get to do the choosing. -% -“Liberty is always dangerous, but it is the safest thing we have.” -― Harry Emerson Fosdick -% -People who claim they don’t let little things bother them have never -slept in a room with a single mosquito. -% -Now there was found in it a poor wise man, and he by his wisdom -delivered the city; yet no man remembered that same poor man. -— Ecclesiastes -% -If you’re happy, you’re successful. -% -The Internet is the greatest game of telephone in existence. -% -Crush the competition. -% -Buy the competition. -% -Those of you who think you know everything are annoying to those of -us who do. -% -It is easier to find people fit to govern themselves than -people fit to govern others. — Lord Acton -% -“Everybody likes to get as much power as circumstances -allow, and nobody will vote for a self-denying ordinance.” -— Lord Acton -% -“Official truth is not actual truth.” — Lord Acton -% -Welcome to dependency hell. -% -Talk is truly cheap. -% -This website is too bloated. -% -After the game the king and the pawn go in the same box. -— Italian Proverb -% -Experience is a good teacher, but she sends in terrific bills. -— Minna Antrim, “Naked Truth and Veiled Allusions” -% -It’s a good thing we don’t get all the government we pay for. -% -The kind of danger people most enjoy is the kind they can watch from -a safe place. -% -The truth eventually comes out. -% -Newer isn’t always better. -% -He who foresees calamities suffers them twice over. -% -Sometimes you don’t get what you pay for. -% -Always sort by controversial. -% -Once they go up, who cares where they come down? -That’s not my department. -% -And what might your name be? “Alexander.” So, you can talk? -“Y-Yes, sir.” Take him back! He can still talk! -— Pinocchio’s Pleasure Island -% -Flattery will get you everywhere. -% -According to the latest official figures, 43% of all -statistics are totally worthless. -% -Unix Express: All passengers bring a piece of the aeroplane and a -box of tools with them to the airport. They gather on -the tarmac, arguing constantly about what kind of plane -they want to build and how to put it together. Eventually, -the passengers split into groups and build several different aircraft, -but give them all the same name. Some passengers actually -reach their destinations. All passengers believe they got there. -% -The network effect is powerful. -% -The strong give up and move away, while the weak give up and stay. -% -Academic politics is the most vicious and bitter form of politics, -because the stakes are so low. — Wallace Sayre -% -Stolen waters are sweet. -% -“The reasonable man adapts himself to the world: the unreasonable -one persists in trying to adapt the world to himself. Therefore -all progress depends on the unreasonable man.” -— George Bernard Shaw, Man and Superman -% -As I pass through my incarnations in every age and race, -I make my proper prostrations to the Gods of the market-place. -— Rudyard Kipling, The Gods of the Copybook Headings -% -Maybe users like spam? -% -Appeal to Novelty: It’s current year, you’re wrong. -% -A poor man that oppresseth the poor is like a sweeping rain which -leaveth no food. — Proverbs -% -Talking past each other: A situation where two or more people talk -about different subjects, while believing that they are talking -about the same thing. -% -Not all problems need technological solutions. -% -Many times a technical solution merely replaces old problems with -new ones. -% -The cheapest, fastest, and most reliable components are those that -aren’t there. — Gordon Bell -% -Controlling complexity is the essence of computer programming. -— Brian Kernighan -% -UNIX was not designed to stop its users from doing stupid things, -as that would also stop them from doing clever things. — Doug Gwyn -% -Life is too short to run proprietary software. — Bdale Garbee -% -The central enemy of reliability is complexity. — Geer -% -Essentially everyone, when they first build a distributed -application, makes the following eight assumptions. -All prove to be false in the long run and all cause big -trouble and painful learning experiences. -(1) The network is reliable. -(2) Latency is zero. -(3) Bandwidth is infinite. -(4) The network is secure. -(5) Topology doesn’t change. -(6) There is one administrator. -(7) Transport cost is zero. -(8) The network is homogeneous. -— Peter Deutsch -% -Most software today is very much like an Egyptian -pyramid with millions of bricks piled on top of each other, -with no structural integrity, but just done by brute force -and thousands of slaves. — Alan Kay -% -Complexity kills. It sucks the life out of developers, -it makes products difficult to plan, build and test, -it introduces security challenges and it causes end-user -and administrator frustration. — Ray Ozzie -% -Increasingly, people seem to misinterpret complexity as -sophistication, which is baffling—the incomprehensible should -cause suspicion rather than admiration. Possibly this trend -results from a mistaken belief that using a somewhat -mysterious device confers an aura of power on the user. -— Niklaus Wirth -% -My definition of an expert in any field is a person who -knows enough about what’s really going on to be scared. -— P. J. Plauger -% -The best code is no code at all. -% -The most amazing achievement of the computer software -industry is its continuing cancellation of the steady -and staggering gains made by the computer hardware industry. -— Henry Petroski -% -Software sucks because users demand it to. — Nathan Myhrvold -% -Join in on the new game that’s sweeping the world. -It’s called “Corruption”. Every Government stands in a circle. -The first one to improve the state of the country loses. Begin! -% -Are most politicians liars? -% -Flights of fancy. -% -Shill: A plant or a stooge who publicly helps or gives -credibility to a person or organization without disclosing -that they have a close relationship with the person or organization. -% -It’s almost time to pay the piper. -% -Planned Obsolescence: A policy of planning or designing a product -with an artificially limited useful life, so that it becomes obsolete. -% -The genius of our ruling class is that it has kept a majority of the -people from ever questioning the inequity of a system where most people -drudge along paying heavy taxes for which they get nothing in return. -— Gore Vidal -% -Specifications subject to change without notice. -% -Good leaders being scarce, following yourself is now allowed. -% -Three rules for sounding like an expert: -(1) Oversimplify your explanations to the point of uselessness. -(2) Always point out second-order effects, but never point out when they -can be ignored. -(3) Come up with three rules of your own. -% -When you’re down and out, lift up your voice and shout, -“I’M DOWN AND OUT”! -% -One planet is all you get. -% -“Information is power. But like all power, there are those who want -to keep it for themselves.” -― Aaron Swartz -% -This page intentionally left blank. -% -Books are better than the Internet. -% -It’s difficult to get a man to understand something when his salary depends -on his not understanding it. -% -Sometimes the only winning move is not to play. -% -This economy is not sustainable. -% -One weird trick advertisements. -% -A clever prophet makes sure of the event first. -% -And miles to go before I sleep. -— Robert Frost -% -Committees have become so important nowadays that subcommittees have to -be appointed to do the work. -% -The high cost of living hasn’t affected its popularity. -% -Always wear your seat belt. -% -People actually believe what they read on social media. -% -Contestants have been briefed on some of the questions before the show. -% -Mankind is poised midway between the gods and the beasts. -— Plotinus -% -People want either less corruption or more of a chance to -participate in it. -% -While you don’t greatly need the outside world, it’s still very -reassuring to know that it’s still there. -% -Clovis’ Consideration of an Atmospheric Anomaly: -The perversity of nature is nowhere better demonstrated -than by the fact that, when exposed to the same atmosphere, -bread becomes hard while crackers become soft. -% -Everything that can be invented has been invented. -— Charles Duell -% -Where do you think you’re going today? -% -Education is what survives when what has been learnt has been forgotten. -— B. F. Skinner -% -There’s no heavier burden than a great potential. -% -Blutarsky’s Axiom: Nothing is impossible for the man who will not -listen to reason. -% -One man tells a falsehood, a hundred repeat it as the truth. -% -A complex system that works is invariably found to have evolved from a -simple system that works. -% -Larkinson’s Law: All laws are basically false. -% -What fools these mortals be. — Lucius Annaeus Seneca -% -Time and tide wait for no man. -% -Talk is cheap because supply always exceeds demand. -% -One nuclear bomb can ruin your whole day. -% -Are you making all this up as you go along? -% -Fast React applications are rare. -% -One man’s utopia is another man’s dystopia. -% -Thanks for coming to my TED talk. -% -Redundant topology. -% -Their business model is spam. -% -Teamwork is essential — it allows you to blame someone else. -% -“When I die, I want the people I did group projects with to lower -me into my grave so they can let me down one last time.” -% -The Internet is utterly broken. -% -If Bill Gates is the devil then Linus Torvalds must be the messiah. -— Unknown -% -Some men are discovered; others are found out. -% -Folly is set in great dignity. -% -“Hard times create strong men. Strong men create good times. -Good times create weak men. And, weak men create hard times.” -— G. Michael Hopf, Those Who Remain -% -The time for action is past! Now is the time for senseless bickering. -% -If the grass is greener on other side of fence, consider what may be -fertilizing it. -% -Cheer Up! Things are getting worse at a slower rate. -% -Never promise more than you can perform. — Publilius Syrus -% -New systems generate new problems. -% -Regression Analysis: Mathematical techniques for trying to -understand why things are getting worse. -% -The Linux philosophy is “laugh in the face of danger”. -Oops. Wrong one. “Do it yourself”. That’s it. — Linus Torvalds -% -“In the future, everyone will be world famous for 15 -minutes.” — Andy Warhol -% -A small town that cannot support one lawyer can always support two. -% -To refuse praise is to seek praise twice. -% -When you have an efficient government, you have a dictatorship. -— Harry Truman -% -If you think things can’t get worse it’s probably only because you -lack sufficient imagination. -% -The following statement is not true. The previous statement is true. -% -Nearly every complex solution to a programming problem that I -have looked at carefully has turned out to be wrong. — Brent Welch -% -“Justice at all costs’ is not justice.” -— Thomas Sowell, The Quest for Cosmic Justice -% -“Suppose you are wrong? How would you know? -How would you test for that possibility?” -― Thomas Sowell -% -“Life does not ask what we want. It presents us with options.” -― Thomas Sowell -% -Throw away documentation and manuals, -and users will be a hundred times happier. -Throw away privileges and quotas, -and users will do the right thing. -Throw away proprietary and site licenses, -and there won’t be any pirating. -If these three aren’t enough, -just stay at your home directory -and let all processes take their course. -% -Call for pricing. -% -Monopolies of knowledge. -% -Unemployment is unused capacity. -% -Yet creeds mean very little, Coth answered the dark god, still speaking -almost gently. The optimist proclaims that we live in the best of all -possible worlds; and the pessimist fears this is true. -― James Cabell, “The Silver Stallion” -% -Bikeshedding: The process of arguing endlessly over details of some small -and relatively unimportant thing. -% -“Unfortunately, propaganda works.” ― Andy Rooney -% -Mac Airways: -The cashiers, flight attendants and pilots all look the same, feel the same -and act the same. When asked questions about the flight, they reply that you -don’t want to know, don’t need to know and would you please return to your -seat and watch the movie. -% -A lie can travel halfway around the world before the truth can get its boots on. -% -Falsehood will fly, as it were, on the wings of the wind, and carry its tales -to every corner of the earth; whilst truth lags behind; her steps, -though sure, are slow and solemn. ― Thomas Francklin -% -Those who think they know everything are very annoying to those of us who -feel that we know everything, especially when we discover that -everything they know and everything we know does not match. -% -We are not anticipating any emergencies. -% -When ever someone tells you to take their advice, you can be pretty sure -that they’re not using it. -% -Some men are born mediocre, some men achieve mediocrity, and some men -have mediocrity thrust upon them. ― Joseph Heller’s Catch-22 -% -In the whole world you know, there’s a million boys and girls. -― Nina Simone, To Be Young, Gifted and Black -% -Plastic Love. -% -Watson’s Law: The reliability of machinery is inversely proportional to the -number and significance of any persons watching it. -% -The danger is not that a particular class is unfit to govern. Every class -is unfit to govern. ― Lord Acton -% -Everyone says that having power is a great responsibility. This is -a lot of bunk. Responsibility is when someone can blame you if something -goes wrong. When you have power you are surrounded by people whose job it -is to take the blame for your mistakes. If they’re smart, that is. -― Cerebus The Aardvark, “On Governing” -% -To err is human. To blame someone else for your mistakes is even more human. -% -When the wicked rise, men hide themselves: but when they perish, -the righteous increase. ― Proverbs -% -YouTube may terminate your access, or your Google account’s access to all -or part of the Service if YouTube believes, in its sole discretion, -that provision of the Service to you is no longer commercially viable. -― Google’s YouTube, Terms of Service, 2019 -% -We may suspend or terminate your account or cease providing you with all or part -of the Services at any time for any or no reason. ― Twitter, Terms of Service, 2020 -% -WhatsApp may also terminate a user’s access to the Service, if they are -determined to be a repeat infringer, or for any or no reason, including -being annoying. An annoying person is anyone who is (capriciously or not) -determined to be annoying by authorized WhatsApp employees, agents, subagents, -superagents or superheros. -― WhatsApp, Terms of Service, 2012 -% -We reserve the right to modify or terminate the Instagram service for any -reason, without notice at any time. ― Instagram, Terms of Service, 2013 -% -Spotify may terminate the Agreements or suspend your access to the -Spotify Service at any time. ― Spotify, Terms and Conditions, 2019 -% -PeerTube: A free and open-source decentralized self-hosted federated video platform. -% -Mastodon: A free and open-source self-hosted social networking service. -% -The best minds of my generation are thinking about how to make people -click ads. That sucks. ― Jeff Hammerbacher -% -We can’t both be right. -% -If we all work together, we can totally disrupt the system. -% -If you stick your head in the sand, one thing is for sure, you’re gonna -get your rear kicked. -% -“Whoever undertakes to set himself up as a judge of truth and knowledge is -shipwrecked by the laughter of the gods.” -% -We have the best politicians money can buy. -% -Eagleson’s Law: Any code of your own that you haven’t looked at for six or more -months, might as well have been written by someone else. -% -It is said an Eastern monarch once charged his wise men to invent him a -sentence to be ever in view, and which should be true and appropriate -in all times and situations. They presented him the words: “And this, -too, shall pass away.” ― Abraham Lincoln -% -All things are full of labour; man cannot utter it: the eye is not -satisfied with seeing, nor the ear filled with hearing. ― Ecclesiastes -% -“Preaching to the choir in an echo chamber.” -% -Every program attempts to expand until it can either read or replace mail. -% -Cobra Effect: When an attempted solution to a problem makes the problem worse. -Offering a bounty for every dead venomous cobra incentivizes people to breed -more cobras for the reward. -% -He who minds his own business is never unemployed. -% -Write a wise saying and your name will live on forever. ― Unknown -% -“We live in a world where unfortunately the distinction between true and false -appears to become increasingly blurred by manipulation of facts, -by exploitation of uncritical minds, and by the pollution of the language.” -― Arne Tiselius -% -Corollary to Hanlon’s Razor: Never attribute to stupidity that which -is adequately explained by greed. -% -The world is coming to an end. Please log off. -% -What ever became of eternal truth? -% -Reduce, Reuse, Recycle -% -If it works, it’s out of date. -% -“I hate quotations. Tell me what you know.” ― Ralph Waldo Emerson -% -“Politics is the gentle art of getting votes from the poor and -campaign funds from the rich, by promising to protect each from the other.” -― Oscar Ameringer -% -We prefer to believe that the absence of inverted commas guarantees the -originality of a thought, whereas it may be merely that the utterer has -forgotten its source. ― Clifton Fadiman, “Any Number Can Play” -% -Which is worse: ignorance or apathy? Who knows? Who cares? -% -“Every record has been destroyed or falsified, every book rewritten, -every picture has been repainted, every statue and street building -has been renamed, every date has been altered. And the process -is continuing day by day and minute by minute. History has stopped. -Nothing exists except an endless present in which the Party is always right.” -― George Orwell, 1984 -% -The same words mean different things to different people. -% -Objects are lost only because people look where they are not rather than -where they are. -% -If you learn one useless thing every day, in a single year you’ll learn -365 useless things. -% -Phases of a Project: -(1) Exultation. -(2) Disenchantment. -(3) Confusion. -(4) Search for the Guilty. -(5) Punishment for the Innocent. -(6) Distinction for the Uninvolved. -% -Banana Republic: A politically unstable country with an economy -dependent upon a limited-resource product. -% -Throw-away Society: A society with an excessive production of short-lived -or disposable items over durable goods that can be repaired. -% -Got a dictionary? I want to know the meaning of life. -% -Apparently any program which runs right is obsolete. -% -Good government never depends upon laws, but upon the personal qualities of -those who govern. The machinery of government is always subordinate to the -will of those who administer that machinery. The most important element of -government, therefore, is the method of choosing leaders. -― Frank Herbert, “Children of Dune” -% -The majesty and grandeur of the English language; it’s the greatest possession -we have. The noblest thoughts that ever flowed through the hearts of men are -contained in its extraordinary, imaginative and musical mixtures of sounds. -― George Bernard Shaw, My Fair Lady -% -If we all work together, we can make the rich richer. -% -Always read the fine print. -% -Politics and the fate of mankind are formed by men without ideals and without -greatness. Those who have greatness within them do not go in for politics. -― Albert Camus -% -And the best at murder are those who preach against it. -And the best at hate are those who preach love. -And the best at war finally are those who preach peace. -― Charles Bukowski, “The Genius Of The Crowd” -% -Conway’s Law: Any organization that designs a system will produce a design -whose structure is a copy of the organization’s communication structure. -% -If you don’t read the newspaper you are uninformed; if you do read the -newspaper you are misinformed. -% -“There are only two kinds of languages: the ones people complain about -and the ones nobody uses.” ― Bjarne Stroustrup -% -Con man: A confidence man. -% -“Decadence is a moral and spiritual disease, resulting from too long a -period of wealth and power, producing cynicism, decline of religion, -pessimism and frivolity. The citizens of such a nation will no -longer make an effort to save themselves, because they are not -convinced that anything in life is worth saving.” -― John Bagot Glubb, The Fate of Empires and Search for Survival -% -A committee is organic rather than mechanical in its nature: it -is not a structure but a plant. It takes root and grows, it -flowers, wilts, and dies, scattering the seed from which other -committees will bloom in their turn. ― C. Northcote Parkinson -% -You too can be a confidence man or woman! -% -When you’re in command, command. ― Admiral Nimitz -% -Life is fraught with opportunities to keep your mouth shut. -% -Moreover the profit of the earth is for all: the king himself -is served by the field. ― Ecclesiastes -% -The golden boy can do no wrong. -% -Everyone who comes in here wants three things: -(1) They want it quick. -(2) They want it good. -(3) They want it cheap. -% -If you don’t do the things that are not worth doing, who will? -% -Somehow, the world always affects you more than you affect it. -% -Cheap labour. -% -The last person that quit or was fired will be held responsible for -everything that goes wrong ― until the next person quits or is fired. -% -Journalism is dead. -% -To have respect of persons is not good: for for a piece of bread -that man will transgress. ― Proverbs -% -Nothing lasts forever. -% -Where is my flying car? -% -This is disputed. -% -Sometimes, the best solution is to do nothing at all. -% -Don’t build your house on the sand. -% -It is a hard matter, my fellow citizens, to argue with the belly, -since it has no ears. ― Marcus Porcius Cato -% -Propaganda is one hell of a drug. -% -The Three Wise Monkeys: See no evil, hear no evil, and speak no evil. -% -As for man, his days are as grass: as a flower of the field, so he flourisheth. -For the wind passeth over it, and it is gone; and the place thereof shall -know it no more. — David -% -You must prove that you are not a robot. -% -There’s nothing remarkable about it. All one has to do is hit the right -keys at the right time and the instrument plays itself. – J. S. Bach -% -If this is a service economy, why is the service so bad? -% -There is a sore evil which I have seen under the sun, namely, -riches kept for the owners thereof to their hurt. -But those riches perish by evil travail: -and he begetteth a son, and there is nothing in his hand. — Ecclesiastes -% -Thus, not all data is created equal. -% -Argument From Authority: A popular yet controversial type of argument in -which the opinion of an authority on a topic is used as evidence to -support an argument. -% -Sock Puppet: A fake online identity used for the purpose of deception. -Deception, be it fast or slow, can involve black or grey propaganda to -manipulate public opinion. -% -To be forewarned is to be forearmed. -% -It’s the worst of both worlds. -% -“All of humanity’s problems stem from man’s inability to sit quietly -in a room alone.” — Blaise Pascal, Pensées -% -“The devil is not as black as he is painted.” -— Dante Alighieri, The Divine Comedy -% -Don’t be a shill. -% -Philosophy: A route of many roads leading from nowhere to nothing. -— Ambrose Bierce -% -Heller’s Law: The first myth of management is that it exists. -Johnson’s Corollary: Nobody really knows what is going on anywhere -within the organization. -% -Become a Lord or Lady today! -% -“Created by wars that required it, the machine now created the wars it -required.” — Joseph Aloïs Schumpeter, Imperialism and Social Classes -% -“History is a record of “effects” the vast majority of which nobody -intended to produce.” — Joseph Aloïs Schumpeter -% -Many arguments are semantic disputes. -% -Never underestimate the bandwidth of a station wagon full of tapes -hurtling down the highway. — Andrew S. Tanenbaum -% -Winning Arguments: There is no evidence to support your assertion. -% -Most of what you read on the Internet is written by insane people. -% -Politician’s Logic: (1) We must do something. -(2) This is something. (3) Therefore, we must do this. -% -Violence is golden. -% -Politics is a personal affair. -% -Keep your friends close and your enemies closer. -% -“The road to hell is paved with Ivy League degrees.” — Thomas Sowell -% -There are no atheists in foxholes. -% -“Another man may look like a deathless one on high -but there’s not a bit of grace to crown his words. -Just like you, my fine, handsome friend. Not even -a god could improve those lovely looks of yours -but the mind inside is worthless.” -— Homer, The Odyssey -% -Temporary: Permanent -% -There are exceptions that prove the rule. -% -Closed and open slavery. -% -The Fourth Branch of Government: Social Media and The Press. -% -He was a confidence man. -% -Argument from Fallacy: The formal fallacy of analyzing an argument and -inferring that, since it contains a fallacy, its conclusion must be false. -% -“What convinces masses are not facts, and not even invented facts, but -only the consistency of the system of which they are presumably a part.” -— Hannah Arendt, The Origins of Totalitarianism -% -“For politics is not like the nursery; in politics obedience and support -are the same.” — Hannah Arendt, Eichmann in Jerusalem: A Report on the -Banality of Evil -% -Reality follows fiction. -% -Most of the great problems we face are caused by politicians creating -solutions to problems they created in the first place. — Walter E. -Williams -% -It takes two to tango. -% -“There are very few who can think, but every man wants to have an -opinion; and what remains but to take it ready-made from others, instead -of forming opinions for himself?” — Arthur Schopenhauer, The Art of -Always Being Right -% -“A last trick is to become personal, insulting, and rude as soon as you -perceive that your opponent has the upper hand. In becoming personal you -leave the subject altogether, and turn your attack on the person by -remarks of an offensive and spiteful character. This is a very popular -trick, because everyone is able to carry it into effect.” — Arthur -Schopenhauer, The Art of Always Being Right -% -“When the rich wage war it’s the poor who die.” -— Jean-Paul Sartre -% -“Talent hits a target no one else can hit. Genius hits a target no one -else can see.” — Arthur Schopenhauer -% -“Where justice is denied, where poverty is enforced, where ignorance -prevails, and where any one class is made to feel that society is an -organized conspiracy to oppress, rob and degrade them, neither persons nor -property will be safe.” — Frederick Douglass -% -They’re savages! Savages! -Dirty shrieking devils! -Now we sound the drums of war! -— Pocahontas’ Savages -% -Simon’s Law: Everything put together falls apart sooner or later. -% -A forbidden fruit creates many jams. -% -Hydra of Lerna: Cut off one head and two more shall take its place. -% -“But the educated public, the people who read the high-brow weeklies, -don’t need reconditioning. They’re all right already. They’ll believe -anything.” — C.S. Lewis, That Hideous Strength -% -“Remember, the firemen are rarely necessary. The public itself stopped -reading of its own accord. You firemen provide a circus now and then at -which buildings are set off and crowds gather for the pretty blaze...” -— Ray Bradbury, Fahrenheit 451 -% -Whatever it is, I fear Greeks even when they bring gifts. -— Publius Vergilius Maro (Virgil) -% -“Whenever you find yourself on the side of the majority, it is time to -reform (or pause and reflect).” — Mark Twain -% -Monkey see, monkey do. -% -Nothing is so firmly believed as that which we least know. -— Michel de Montaigne -% -A distributed system is one in which the failure of a computer -you didn’t even know existed can render your own computer -unusable. — Leslie Lamport, 1987 -% -Consequentialist: The end justifies the means. -% -Currently unavailable. -% -But does it scale? -% -Can two walk together, except they be agreed? — Amos -% -Dualism: Left, Right. Black, White. -% -Nature imputes duality. -% -“People are never more sincere than when they assume their own moral -superiority.” — Thomas Sowell, The Vision of the Anointed: -Self-Congratulation as a Basis for Social Policy -% -Artificial Intelligence: /dev/random -% -Cargo Cult: A millenarian belief system in which adherents perform -rituals which they believe will cause a more technologically advanced -society to deliver goods. -% -Theosis: Unity with God. -Henosis: Unity with the Monad. -Transhumanism: Unity with the Machine. -% -“If facts, logic, and scientific procedures are all just arbitrarily -“socially constructed” notions, then all that is left is consensus–more -specifically peer consensus, the kind of consensus that matters to -adolescents or to many among the intelligentsia.” ― Thomas Sowell, -Intellectuals and Society -% -“Many intellectuals are so preoccupied with the notion that their -own special knowledge exceeds the average special knowledge of -millions of other people that they overlook the often far more -consequential fact that their mundane knowledge is not even one–tenth -of the total mundane knowledge of those millions.” — Thomas -Sowell, Intellectuals and Society -% -Augustine’s 49th Law: Regulations grow at the same rate as weeds. -% -Don’t make a big deal out of everything; just deal with everything. -% -(1) Don’t think. -(2) If you do think, don’t speak. -(3) If you think and speak, don’t write. -(4) If you think, speak and write, don’t sign. -(5) If you think, speak, write and sign, don’t be surprised. -— Polish Joke -% -In politics, temporary means permanent. -% -In politics, the temporary becomes the permanent. -% -The primary requisite for any new tax law is for it to exempt enough -voters to win the next election. -% -Farmer: “You can’t raffle off a dead donkey!” -Boy: “Sure I can. Watch me. I just won’t tell anybody he’s dead.” -— How to Sell a Dead Donkey -% -The bait and switch is the oldest trick in the book. -% -If you can’t stand the heat, get out of the kitchen. -% -Just when you thought you were winning the rat race, it abruptly ends. -% -Do the old eat the young? -% -No, we want a king to rule over us. -% -Please confirm my bias. -% -What if the universe is not immortal? -% -Consensus is the only thing that matters. -% -Wikipedia is not a reliable source, because it can be edited by anyone at -any time. -% -Feudalism is alive and well. -% -Eristic Dialectics: The Logic of Appearance. -% -Turning and turning in the widening gyre; -The falcon cannot hear the falconer; -Things fall apart; the centre cannot hold; -Mere anarchy is loosed upon the world. -― William Butler Yeats, The Second Coming -% -“If people are good only because they fear punishment, and hope for -reward, then we are a sorry lot indeed.” — Albert Einstein, Religion -and Science -% -The best man for the job is often a woman. -% -The finest eloquence is that which gets things done; the worst is that which -delays them. -% -The wages of sin are high but you get your money’s worth. -% -Envy is a pain of mind that successful men cause their neighbors. – -Onasander, The General -% -“Despite the enormous quantity of books, how few people read! And if one -reads profitably, one would realize how much stupid stuff the vulgar herd -is content to swallow every day.” — Voltaire -% -“Love truth, but pardon error.” ― Voltaire -% -The current generation now sees everything clearly, it marvels at the -errors, it laughs at the folly of its ancestors, not seeing that this -chronicle is all overscored by divine fire, that every letter of it cries -out, that from everywhere the piercing finger is pointed at it, at this -current generation; but the current generation laughs and presumptuously, -proudly begins a series of new errors, at which their descendants will -also laugh afterwards. — Nikolai Gogol, Dead Souls -% -Show me the incentive and I will show you the outcome. -— Charlie Munger -% -The terms “free software” and “open source” stand for almost the -same range of programs. However, they say deeply different things about -those programs, based on different values. The free software movement -campaigns for freedom for the users of computing; it is a movement for -freedom and justice. By contrast, the open source idea values mainly -practical advantage and does not campaign for principles. This is why we -do not agree with open source, and do not use that term. — Richard Stallman -% -Plausible Deniability: An ability of prescience or forethought that -exploits a chain of command and the absence of evidence to deny -responsibility for actions committed. An adeptness to engender situations -that provide multiple outs. -% -“The man who lies asleep will never waken fame, and his desire and all -his life drift past him like a dream, and the traces of his memory fade -from time like smoke in air, or ripples on a stream.” — Dante -Alighieri, The Divine Comedy -% -Common sense isn’t actually common. -% -“There is no art which one government sooner learns of another, than -that of draining money from the pockets of the people.” — Adam Smith -% -Black Swan Event: An event that comes as a surprise, has a major effect, -and is often inappropriately rationalized after the fact with the benefit -of hindsight. -% -Money is the root of all money. — The Moving Finger -% -Social Media: The Perpetual Outrage Machine. -% -The time is out of joint. — Hamlet -% -Powerful government tends to draw into it people with bloated egos, people -who think they know more than everyone else and have little hesitance in -coercing their fellow man. Or as Nobel Laureate Friedrich Hayek said, “in -government, the scum rises to the top”. — Walter E. Williams -% -“Clickbait is dead.” -% -The road to hell is paved with asphalt. -% -When it comes to legalized bank robbing, I’m the best. — Floyd Mayweather -% -“But is it legal?” — Everything I Want to Do Is Illegal: War Stories -from the Local Food Front, Joel Salatin -% -Most open source software is free, at least at first glance. -% -The way to a man’s stomach is through his esophagus. -% -Trash the planet. -% -A jury consists of twelve persons chosen to decide who has the better -lawyer. — Robert Frost -% -Murphy’s Ninth Law: Nature always sides with the hidden flaw. -% -Rule of Defactualization: Information deteriorates upward through -bureaucracies. -% -Anderson’s Law: You can’t depend on anyone to be wrong all the time. -% -The bigger they are, the harder they hit. -% -You can fool some of the people all of the time and all of the people some -of the time, and that’s sufficient. -% -The Fame and Fortune Axiom: Competence is not a prerequisite for success. -% -Polis’ Attorney Law: Any law enacted with more than fifty words contains -at least one loophole. -% -Pray — or you will become prey. -% -You can get so much farther with a kind word and a gun than with a kind -word alone. — Irwin Corey -% -Please wait... We are checking your browser... -% -Don’t shoot the messenger. -% -Pay to pray. -% -Distributed is the new centralized. -% -And slowly, you come to realize; -It’s all as it should be. -You can only do so much. -— David Sylvian and Koji Haijima, -For The Love of Life -% -Content is not king. Context is king. -% -Nothing is true; everything is permitted. -— Alamut, Vladimir Bartol -% -It was the best of times, it was the worst of times, it was the age of -wisdom, it was the age of foolishness, it was the epoch of belief, it was -the epoch of incredulity, it was the season of Light, it was the season of -Darkness, it was the spring of hope, it was the winter of despair, we had -everything before us, we had nothing before us, we were all going direct -to Heaven, we were all going direct the other way – in short, the period -was so far like the present period, that some of its noisiest authorities -insisted on its being received, for good or for evil, in the superlative -degree of comparison only. — Charles Dickens, A Tale of Two Cities -% -Omniscience: A state of possessing all knowledge. -% -“What I want is all of the power and none of the responsibility.” -% -Expansion means complexity; and complexity decay. -% -There are two kinds of pedestrians; the quick and the dead. -— Lord Thomas Rober Dewar -% -Programming is like alchemy. -% -We are all worms. But I do believe I am a glowworm. -— Winston Churchill -% -My definition of a free society is a society where it is safe to be unpopular. -— Adlai E. Stevenson -% -Two heads are more numerous than one. -% -Time heals all non—fatal wounds. -% -Today is the first day of the rest of your week. -% -The early worm gets eaten by the bird. -% -Trust the system. -% -Prove that you are human. -% -Jump on the bandwagon! -% -Game the metrics. -% -All drugs come with side effects. -% -“For my friends, everything; for my enemies, the law.” — Óscar R. Benavides -% -In other words, we are left with Plato’s “noble natures,” with the -few of whom it may be true that none “does evil voluntarily.” Yet the -implied and dangerous conclusion, “Everybody wants to do good,” is not -true even in their case. The sad truth of the matter is that most evil is -done by people who never made up their minds to be or do either evil or -good. — Hannah Arendt, The Life of the Mind -% -Justice inclines her scales so that wisdom comes at the price of -suffering. — Aeschylus, Agamemnon -% -If it happens once, it’s a bug. -If it happens twice, it’s a feature. -If it happens more than twice, it’s a design philosophy. -% -Fake it till you make it? -% -God is dead. God remains dead. And we have killed him. How shall we -comfort ourselves, the murderers of all murderers? What was holiest and -mightiest of all that the world has yet owned has bled to death under our -knives: who will wipe this blood off us? What water is there for us to -clean ourselves? What festivals of atonement, what sacred games shall we -have to invent? Is not the greatness of this deed too great for us? Must -we ourselves not become gods simply to appear worthy of it? — Friedrich -Nietzsche -% -Hanlon’s Eraser: Stupidity is criminal. -% -Great minds think alike, though fools seldom differ. -% -Dynamics of Software Acceptance: Worse is better. -% -Authoritarianism: A form of government that rejects pluralism and uses a -strong central power to preserve the political status quo. -% -Why are quotes so popular? -% -Everybody wants to be the leader. -% -Prove that you are human, human. -% -Not everyone is on social media. -% -We are aware of the issue. -% -Democracy is the theory that the common people know what they want, and -deserve to get it good and hard. — H. L. Mencken -% -Life’s most persistent and urgent question is, ‘What are you doing for -others?’ — Martin Luther King, Jr. -% -OSH: Open–source hardware. -% -Your web browser is not supported. -% -Don’t be evil. Do the right thing. -% -There are no adults in the room. -% -The fish trap exists because of the fish. Once you’ve gotten the fish -you can forget the trap. The rabbit snare exists because of the rabbit. -Once you’ve gotten the rabbit, you can forget the snare. Words exist -because of meaning. Once you’ve gotten the meaning, you can forget the -words. Where can I find a man who has forgotten words so I can talk with -him? — Zhuangzi, Chuang Tsu: Inner Chapters -% -No horse in this race. -% -Morality is the privilege of those judging from the distance. -— John Cory -% -Thieves respect property; they merely wish the property to become their -property that they may more perfectly respect it. — G.K. Chesterton, -The Man Who Was Thursday: A Nightmare -% -If you analyse anything, you destroy it. -— Arthur Miller -% -That’s how they write journals in academics, they try to make it so -complicated people think you’re a genius. — Terry Davis -% -An idiot admires complexity, a genius admires simplicity. -— Terry Davis -% -But is it safe? -% -How is the world ruled, and how do wars start? Diplomats tell lies to -journalists, and they believe what they read. — Karl Kraus, Aphorisms -and More Aphorisms (1909) -% -Great men are not always wise: neither do the aged understand -judgment. — Elihu -% -NP: Non—deterministic Polynomial Time. -% -Dead Internet Theory: All content on the Internet will eventually be -generated by bots with artificial intelligence. -% -The bit will flip. -% -The masses have never thirsted after truth. They turn aside from evidence -that is not to their taste, preferring to deify error, if error seduce -them. Whoever can supply them with illusions is easily their master; -whoever attempts to destroy their illusions is always their victim. An -individual in a crowd is a grain of sand amid other grains of sand, which -the wind stirs up at will. — Gustave Le Bon, The Crowd: A Study of the -Popular Mind -% -Vote for Nobody. -Nobody will keep election promises. -Nobody will listen to your concerns. -Nobody will help the poor and unemployed. -Nobody cares! -Nobody tells the truth. -If Nobody is elected, things will be better for everyone. -— A mural in Guelph, Ontario -% -Join our community to see this answer! -% -Yama: becoming mindful. -% -You must update now. -% -Update now to send and receive messages. -% -Just World Fallacy: A flawed belief that the world -is fair and just. -% -Are we the bad guys? -% -The greatest remedy for anger is delay. -% -One small step for man, one giant stumble for mankind. -% -You will soon forget this. -% -It is better to suffer an injustice than to do an injustice. -% -The simple believeth every word: but the prudent man looketh well -to his going. — Proverbs -% -All possibility of understanding is rooted in the ability to say no. -— Susan Sontag -% -As a computer, I find your faith in technology amusing. -% -Don’t confuse things that need action with those that take care of themselves. -% -A university is what a college becomes when the faculty loses interest -in students. — John Ciardi -% -The only thing that experience teaches us is that experience teaches us -nothing. — Andre Maurois (Emile Herzog) -% -Adding features does not necessarily increase functionality — it just -makes the manuals thicker. -% -The only thing humans are equal in is death. — Johan Liebert, -Naoki Urasawa’s Monster -% -No two persons ever read the same book. — Edmund Wilson -% -You have mail. -% -Human Nature: A walking contradiction. -% -No skin in this game. -% -Nothing ventured, nothing gained. -% -Don’t copy others’ homework. -% -The Philosopher’s Stone: It’s either perfect or useless. -% -Don’t break user space. -% -The first thing to know about unlimited is that it isn’t unlimited. -% -Build, don’t destroy. -% -Couldn’t sign you in. This browser or app may not be secure. -% -A few minutes until maintenance is over. -“So what happens when maintenance is over?” -You don’t know? That’s when maintenance begins. -% -“Pay no attention to that man behind the curtain.” -— The Wizard Of Oz -% -Getting there is only half as far as getting there and back. -% -“Out of the crooked timber of humanity, no straight thing -was ever made.” — Immanuel Kant -% -Barker’s Proof: Proofreading is more effective after publication. -% -Rome wasn’t burnt in a day. -% -The end move in politics is always to pick up a gun. -— Buckminster Fuller -% -When you have eliminated the JavaScript, whatever -remains must be an empty page. — Google Maps -% -He that is down need fear no fall. -% -Just don’t create a file called -rf. -— Larry Wall -% -Woolsey—Swanson Rule: People would rather live with a -problem they cannot solve rather than accept a solution -they cannot understand. -% -I’m proud of my humility. -% -It’s a questionable day. Ask somebody something. -% -Age and treachery will always overcome youth and skill. -% -This is the tomorrow you worried about yesterday. -And now you know why. -% -Dawn: The time when men of reason go to bed. -— Ambrose Bierce, “The Devil’s Dictionary” -% -If you waste your time cooking, you’ll miss the next meal. -% -The most disagreeable thing that your worst enemy says to -your face does not approach what your best friends say -behind your back. — Alfred De Musset -% -All great ideas are controversial, or have been at one time. -% -Profits over people. -% -I know what you download... -% -Armchair Politics. -% -Cutler Webster’s Law: There are two sides to -every argument, unless a person is personally -involved, in which case there is only one. -% -An apple every eight hours will keep three -doctors away. -% -Always try to do things in chronological order; -it’s less confusing that way. -% -Wisdom is rarely found on the best—seller list. -% -If you can keep your head when everybody round -you is losing theirs, then it’s very probable that -you don’t understand the situation. -% -Power corrupts. Absolute power is kind of neat. -— John Lehman -% -Leadership involves finding a parade and getting -in front of it. — John Naisbitt, “Megatrends” -% -Telling the truth to people who misunderstand you -is generally promoting a falsehood, isn’t it? -— Anthony Hope -% -Davis’s Dictum: Problems that go away by -themselves, come back by themselves. -% -A gossip is one who talks to you about others, a bore is -one who talks to you about himself; and a brilliant -conversationalist is one who talks to you about yourself. -— Lisa Kirk -% -Practice yourself what you preach. — Titus Maccius Plautus -% -“Don’t worry about people stealing your ideas. If -your ideas are any good, you’ll have to ram them down -people’s throats.” — Howard Aiken -% -Steinbach’s Guideline for Systems Programming: Never test -for an error condition you don’t know how to handle. -% -Nothing succeeds like success. -% -The only constant is change. -% -Misery loves company. -% -The cost of living only goes up. -% -If you owe the bank a hundred thousand dollars, the bank -owns you. If you owe the bank a hundred million dollars, -you own the bank. — American Proverb -% -“You really think someone would do that? Just go on TV and tell -lies?” -% -Ginsberg’s Theorem: -(0) There is a game. -(1) You can’t win. -(2) You can’t even break even. -(3) You can’t even quit the game. -% -Commoner’s Second Law of Ecology: -Nothing ever goes away. -% -The snake shall eat its own tail. -% -Finagle’s First Rule: To study a subject best, understand -it thoroughly before you start. -% -The Course of Progress: Most things get steadily worse. -— Issawi’s Laws of Progress -% -The Path of Progress: A shortcut is the longest distance between -two points. -— Issawi’s Laws of Progress -% -The Dialectics of Progress: Direct action produces direct -reaction. -— Issawi’s Laws of Progress -% -The Pace of Progress: Society is a mule, not a car ... If -pressed too hard, it will kick and throw off its rider. -— Issawi’s Laws of Progress -% -SDSM: Super Duper Secure Mode -% -Three–strikes Law: Three strikes and you’re out. -% -Spam! Spam! Spam! Spam! -Lovely spam! Wonderful spam! -Spam spa-a-a-a-a-am spam spa-a-a-a-a-am spam. -Lovely spam! Lovely spam! Lovely spam! Lovely spam! -Spam spam spam spam! -— Monty Python, Spam Song -% -The world really isn’t any worse. It’s just that the news -coverage is so much better. -% -If you’re careful enough, nothing bad or good -will ever happen to you. -% -Never have so many understood so little about so much. -— James Burke -% -To err is human – but it feels divine. -— Mae West -% -Necessity is the plea for every infringement of -human freedom: it is the argument of tyrants; it -is the creed of slaves. -— William Pitt, House of Commons, 1783 -% -Simplicity does not precede complexity, but follows it. -% -Polarize the people, controversy is the game. -It don’t matter if they hate you if they all say your name. -— Ren, Money Game, Pt. 2 -% -“If it’s a bug people rely on, it’s not -a bug – it’s a feature.” — Linus Torvalds -% -Everything is awful. -% -Knowledge itself is power. -— Sir Francis Bacon -% -Nature, to be commanded, must be obeyed. -— Sir Francis Bacon -% -Conscious is when you are aware of something and -conscience is when you wish you weren’t. -% -You humans are all alike. -% -You may be marching to the beat of a different -drummer, but you’re still in the parade. -% -You have junk mail. -% -To do two things at once is to do neither. -— Publilius Syrus -% -If life is merely a joke, the question still -remains: for whose amusement? -% -The reward for working hard is more hard work. -% -Nobody said computers were going to be polite. -% -Tell me what to think! -% -Those who profess to favor freedom, and yet -deprecate agitation, are men who want rain -without thunder and lightning. They want the -ocean without the roar of its many waters. — -Frederick Douglass -% -Never underestimate the power of somebody with -source code, a text editor, and the willingness -to totally hose their system. — Rob Landley -% -Now I lay me back to sleep. -The speaker’s dull; the subject’s deep. -If he should stop before I wake, -Give me a nudge for goodness’ sake. -— Anonymous -% -“Man is the only animal that can remain on -friendly terms with the victims he intends to eat -until he eats them.” — Samuel Butler, The Note -Books of Samuel Butler -% -Stein’s Law: If something cannot go on forever, -it will stop. -% -Internet: Amazon -% -A fool uttereth all his mind. — Proverbs -% -Is nepotism a crime? -% -Mole problems? Call Avogadro at 6.02 x 10 to the 23. -% -Position. Velocity. Acceleration. Jerk. Snap. -Crackle. Pop. -% -Nihilism: The belief that life is meaningless. -% -It’s easier to fool people than to convince -them that they have been fooled. -% -If everyone is thinking alike then somebody -isn’t thinking. — George S. Patton -% -Krishnamurti said, “It’s no measure of health -to be well adjusted to a profoundly sick -society.” — Mark Vonnegut, The Eden Express: -A Memoir of Insanity -% -Matthew Effect: For whosoever hath, to him shall -be given; and whosoever hath not, from him shall -be taken even that which he seemeth to have. -% -All art is quite useless. — Oscar Wilde -% -TOSDR: Terms of Service; Didn’t Read -% -GitHub has the right to suspend or terminate your -access to all or any part of the Website at any -time, with or without cause, with or without -notice, effective immediately. GitHub reserves -the right to refuse service to anyone for any -reason at any time. — GitHub, Terms of Service -% -There is no such thing as a thing. — G. K. -Chesterton, The Prince of Paradox, Orthodoxy -% -We built our website for newer browsers. -% -Reality is a harsh mistress. -% -We are living in a material world – And I am a -material girl. — Madonna, Material Girl -% -Meritocracy is a myth. -% -For the time being I gave up writing – there is -already too much truth in the world – an -overproduction which apparently cannot be -consumed! — Otto Rank -% -Never trust an operating system. -% -Advertising is a valuable economic factor because -it is the cheapest way of selling goods, -particularly if the goods are worthless. — -Sinclair Lewis -% -We read to say that we have read. -% -This file will self destruct in five minutes. -% -Not every question deserves an answer. -% -One person’s error is another person’s data. -% -An expert is one who knows more and more about -less and less until he knows absolutely -everything about nothing. -% -Welcome to hell. -% -Social media is an illusion. -% -We are drowning in information but starved for knowledge. -— John Naisbitt, Megatrends -% -The Akashic Records. -% -I never did it that way before. -% -Theorem: A cat has nine tails. Proof: No cat has -eight tails. A cat has one tail more than no cat. -Therefore, a cat has nine tails. -% -The more things change, the more they’ll never be the same again. -% -Society creates its own monsters. -% -“It doesn’t matter how beautiful your theory -is, it doesn’t matter how smart you are. If it -doesn’t agree with experiment, it’s wrong.” — -Richard P. Feynman -% -Zero days all day. -% -To criticize the incompetent is easy; it is more -difficult to criticize the competent. -% -In a consumer society there are inevitably two -kinds of slaves: the prisoners of addiction and -the prisoners of envy. — Ivan Illich -% -Golden hammers for sale. -% -Beware of fake comments and reviews. -% -This is the darkest timeline. -% -Provides improved system stability. -% -No country, however rich, can afford the waste of -its human resources. Demoralization caused by -vast unemployment is our greatest extravagance. -Morally, it is the greatest menace to our social -order. — Franklin D. Roosevelt -% -It’s great to be smart ‘cause then you know stuff. -% -Sorry, the file that you’ve requested has been deleted. -% -About the use of language: it is impossible to sharpen a -pencil with a blunt ax. It is equally vain to try to do it -with ten blunt axes instead. — Edsger Dijkstra -% -There are two ways to write error–free programs; only the -third way works. -% -“The lesser of two evils – is evil.” -— Seymour (Sy) Leon -% -If you think nobody cares if you’re alive, try missing a -couple of car payments. — Earl Wilson -% -Bloom’s Seventh Law of Litigation: -The judge’s jokes are always funny. -% -It’s is not, it isn’t ain’t, and it’s it’s, not its, if you -mean it is. If you don’t, it’s its. Then too, it’s hers. -It isn’t her’s. It isn’t our’s either. It’s ours, and -likewise yours and theirs. — Oxford University Press, -Edpress News -% -Savage’s Law of Expediency: You want it bad, you’ll get it -bad. -% -Consumers love ads. -% -Everything you considered a product, has now become a service. -— Forbes Magazine -% -Don’t blame the victim. -% -Law of Messengers: Shoot first, ask questions later. -% -What if we put a browser inside another browser? -% -The invention of the ship was also the invention -of the shipwreck. — Paul Virilio -% -Everything is compromised. -% -Nothing is as simple as it seems at first, or as -hopeless as it seems in the middle, or as -finished as it seems in the end. -% -If a nation values anything more than freedom, it -will lose its freedom; and the irony of it is -that if it is comfort or money it values more, it -will lose that, too. — W. Somerset Maugham -% -A person who has nothing looks at all there is -and wants something. A person who has something -looks at all there is and wants all the rest. -% -This video is no longer available because the YouTube -account associated with this video has been terminated. -% -Robert’s Rule of Order: Whoever has the chair has the floor. -% -Twitter’s Rule of Order: Whoever screams the longest has the floor. -% -In order to be irreplaceable one must always be different. -Gabrielle “Coco” Chanel, 1883—1971 -% -Everything you know is wrong! -% -This video was removed because it was too long. -% -If you go out of your mind, do it quietly, so as not to disturb those around -you. -% -We were so poor that we thought new clothes meant someone had died. -% -To steal ideas from one person is plagiarism — to steal from many is research. -% -Have an adequate day. -% -“If we spoke a different language, we would perceive a somewhat different -world.” — Ludwig Wittgenstein -% -You must enable DRM to play some audio or video on this page. -% -People of privilege will always risk their complete destruction -rather than surrender any material part of their advantage. -— John Kenneth Galbraith -% -It’s always darkest just before it gets pitch black. -% -Don’t get suckered in by the comments – they can be terribly misleading. -Debug only code. — Dave Storer -% -Shedenhelm’s Law: All trails have more uphill sections than they have downhill -sections. -% -Genius, noun: Person clever enough to be born in the right place at the right -time of the right sex and to follow up this advantage by saying all the right -things to all the right people. -% -To know is to die. -% -An attempt was made to break through the security policy of the user agent. -% -Nothing astonishes men so much as common sense and plain dealing. -— Ralph Waldo Emerson -% -There is only one thing in the world worse than being talked about, and -that is not being talked about. -— Oscar Wilde -% -Did you know that clones never use mirrors? -% -Don’t be so humble; you aren’t that great. -— Golda Meir -% -Honesty is for the most part less profitable than dishonesty. — Plato -% -Truly simple systems are not feasible because they would require near–infinite -testing. — Norman Augustine -% -A tautology is a thing which is tautological. -% -I have gained this by philosophy: that I do without being commanded what others -do only from fear of the law. — Aristotle diff --git a/generators/hugo/themes/tdro/layouts/_default/_markup/render-image.html b/generators/hugo/themes/tdro/layouts/_default/_markup/render-image.html index 1b524ac..c08b69a 100644 --- a/generators/hugo/themes/tdro/layouts/_default/_markup/render-image.html +++ b/generators/hugo/themes/tdro/layouts/_default/_markup/render-image.html @@ -29,8 +29,10 @@ {{- /* This comment removes trailing newlines. */ -}} <figure> - <a href="{{ $source }}" onclick="return false;"> - <img data-image-zoom + <a href="{{ $source }}"> + <img + loading="lazy" + data-image-zoom="" src="{{ $source }}" alt="{{ $.Text | htmlUnescape }}" title="{{ $.Text | htmlUnescape }}" diff --git a/generators/hugo/themes/tdro/layouts/_default/index.json b/generators/hugo/themes/tdro/layouts/_default/index.json index 92801bf..0969cd6 100644 --- a/generators/hugo/themes/tdro/layouts/_default/index.json +++ b/generators/hugo/themes/tdro/layouts/_default/index.json @@ -10,8 +10,8 @@ { "id": "{{ md5 $data.Permalink }}", "url": "{{ $data.Permalink }}", - "title": "{{ $data.Title | htmlUnescape }}", - "summary": "{{ $data.Summary | htmlUnescape }}", + "title": {{ $data.Summary | htmlUnescape | jsonify }}, + "summary": {{ $data.Summary | htmlUnescape | jsonify }}, "date_modified": "{{ $data.Date | time.Format "2006-01-02T15:04:05Z" }}", "date_published": "{{ $data.PublishDate | time.Format "2006-01-02T15:04:05Z" }}", "_metadata": { diff --git a/generators/hugo/themes/tdro/layouts/partials/article-meta-top.html b/generators/hugo/themes/tdro/layouts/partials/article-meta-top.html index 27f069c..823c569 100644 --- a/generators/hugo/themes/tdro/layouts/partials/article-meta-top.html +++ b/generators/hugo/themes/tdro/layouts/partials/article-meta-top.html @@ -1,4 +1,4 @@ -<article-meta-top> +<header> <aside> {{- partial "meta-pagedate.html" . -}} {{- partial "meta-pagetags.html" . -}} @@ -10,4 +10,4 @@ {{- partial "meta-feedlink.html" . -}} {{- partial "meta-pagestatus.html" . -}} </aside> -</article-meta-top> +</header> diff --git a/generators/hugo/themes/tdro/layouts/partials/article-webrings.html b/generators/hugo/themes/tdro/layouts/partials/article-webrings.html index 5f0a11a..ad75095 100644 --- a/generators/hugo/themes/tdro/layouts/partials/article-webrings.html +++ b/generators/hugo/themes/tdro/layouts/partials/article-webrings.html @@ -11,7 +11,7 @@ </a> </button-anchor> {{ "## Web Ring" | markdownify }} + {{- partial $include . -}} </section> - {{- partial $include . -}} </article-webring> {{- end -}} diff --git a/generators/hugo/themes/tdro/layouts/shortcodes/image.html b/generators/hugo/themes/tdro/layouts/shortcodes/image.html index 3b211ff..eb3c1d1 100644 --- a/generators/hugo/themes/tdro/layouts/shortcodes/image.html +++ b/generators/hugo/themes/tdro/layouts/shortcodes/image.html @@ -2,8 +2,10 @@ {{- $image := imageConfig $imageFile -}} <figure> - <a href="{{ .Get `source` }}" onclick="return false;"> - <img data-image-zoom + <a href="{{ .Get `source` }}"> + <img + loading="lazy" + data-image-zoom="" src="{{ .Get `source` }}" alt="{{ .Get `title` }}" title="{{ .Get `title` }}" diff --git a/generators/hugo/themes/tdro/layouts/shortcodes/marginimage.html b/generators/hugo/themes/tdro/layouts/shortcodes/marginimage.html index d69966f..e90c390 100644 --- a/generators/hugo/themes/tdro/layouts/shortcodes/marginimage.html +++ b/generators/hugo/themes/tdro/layouts/shortcodes/marginimage.html @@ -10,8 +10,10 @@ <label for="{{ $id }}" title="{{ .Inner | replaceRE "\n" " " | markdownify }}"><span>{{ $mark | markdownify }}</span></label> <input type="checkbox" id="{{ $id }}" name="toggle"> <margin-note title="{{ $mark }}" image {{ $set }}> - <a href="{{ $source }}" onclick="return false;"> - <img data-image-zoom + <a href="{{ $source }}"> + <img + loading="lazy" + data-image-zoom="" src="{{ $source }}" title="{{ $title }}" width="{{ $image.Width }}" diff --git a/generators/hugo/themes/tdro/layouts/shortcodes/sideimage.html b/generators/hugo/themes/tdro/layouts/shortcodes/sideimage.html index a2574d5..0e18a56 100644 --- a/generators/hugo/themes/tdro/layouts/shortcodes/sideimage.html +++ b/generators/hugo/themes/tdro/layouts/shortcodes/sideimage.html @@ -10,8 +10,10 @@ <label for="{{ $id }}" title="{{ .Inner | replaceRE "\n" " " | markdownify }}"><span>{{ $mark | markdownify }}</span></label> <input type="checkbox" id="{{ $id }}" name="toggle"> <side-note title="{{ $mark }}" image {{ $set }}> - <a href="{{ $source }}" onclick="return false;"> - <img data-image-zoom + <a href="{{ $source }}"> + <img + loading="lazy" + data-image-zoom="" src="{{ $source }}" title="{{ $title }}" width="{{ $image.Width }}" diff --git a/public/css/tdro-dark.css b/public/css/tdro-dark.css index 9807abe..8cc8fd4 100644 --- a/public/css/tdro-dark.css +++ b/public/css/tdro-dark.css @@ -92,6 +92,13 @@ input[type="button"] { box-shadow: none; } +::file-selector-button, +::-webkit-file-upload-button { + color: #fff; + background-color: #004766; + box-shadow: none; +} + button:hover, button-anchor a:hover, pagination-controller a, @@ -156,8 +163,8 @@ figcaption code, article-archive-list time, article-meta-bottom a, article-meta-bottom, -article-meta-top a, -article-meta-top, +article header a, +article header, article-more-content time, article-webring time, article-summary-meta, @@ -226,6 +233,12 @@ contact-page aside { border-color: #008fcc; } +upload-box form, +upload-box footer, +upload-box header { + border-color: #004766; +} + /* ---------------------------------------------------------- */ input::placeholder, diff --git a/public/css/tdro.css b/public/css/tdro.css index d83e9aa..68af551 100644 --- a/public/css/tdro.css +++ b/public/css/tdro.css @@ -63,10 +63,8 @@ h2:target a, h3:target a, a:focus img, code-block[id^="code-block"]:target language-label a, -:focus:not(article-thumbnail a):not(abstract-thumbnail a):not(figure - > a):not(nav column-middle a):not(tile-item a), -:focus-visible:not(article-thumbnail a):not(abstract-thumbnail a):not(figure - > a):not(nav column-middle a):not(tile-item a) { +:focus:not(article-thumbnail a):not(abstract-thumbnail a):not(figure > a):not(nav column-middle a):not(tile-item a), +:focus-visible:not(article-thumbnail a):not(abstract-thumbnail a):not(figure > a):not(nav column-middle a):not(tile-item a) { border-radius: 0.25rem; box-shadow: 0 0 0 0.125rem #4992d0; outline: none; @@ -306,9 +304,9 @@ pagination-controller a { } button, +button-anchor a, input[type="submit"], input[type="button"], -button-anchor a, pagination-controller a { align-items: center; border: 0 solid transparent; @@ -319,6 +317,23 @@ pagination-controller a { padding: 0.25rem 1rem; } +::file-selector-button, +::-webkit-file-upload-button { + background-color: #f2f2f2; + border-color: transparent; + border-radius: 0.25rem; + border-style: solid; + border-width: 0; + box-shadow: 0 1px 1px #aaa; + cursor: pointer; + font-size: 1rem; + height: 2rem; + padding: 0.25rem 1rem; + width: 100%; + margin: 1rem 0; + display: block; +} + button svg, button-anchor a svg { stroke-width: 1.5px; @@ -588,10 +603,6 @@ recent-projects article-thumbnail { flex: none; } -upload-page h1 { - text-align: center; -} - article-subsection h1, contact-page article h1, abstracts-page article-list h1 { @@ -724,7 +735,7 @@ article-more-content ul + ul { margin-top: 1.5rem; } -article-meta-top { +article header { margin-bottom: 1.5rem; } @@ -732,18 +743,18 @@ article-summary-meta { margin-bottom: 0.75rem; } -article-meta-top, +article header, article-summary-meta { display: flex; align-items: center; flex-wrap: wrap; } -article-meta-top a { +article header a { text-decoration: underline; } -article-meta-top aside { +article header aside { display: flex; align-items: center; width: 100%; @@ -752,7 +763,7 @@ article-meta-top aside { abstract-summary-meta svg, article-summary-meta svg, -article-meta-top svg { +article header svg { height: 1rem; margin-right: 0.35rem; width: 1rem; @@ -761,7 +772,7 @@ article-meta-top svg { } article-summary-meta *:not(svg), -article-meta-top aside *:not(svg) { +article header aside *:not(svg) { margin-right: 0.5rem; } @@ -1032,6 +1043,17 @@ small-caps[intro] { text-transform: none; } +html[data-page="resume"]::-webkit-scrollbar { + height: 0; + width: 0; + scrollbar-width: none; +} + +body[data-page="resume"] { + margin: 0; + max-width: 100%; +} + resume-page { display: flex; min-height: 100vh; @@ -1164,6 +1186,50 @@ resume-page timeline-content { padding: 1rem 0 0 2rem; } +upload-box h1, +upload-box h2 { + text-align: center; +} + +upload-box header { + display: flex; + align-items: center; +} + +upload-box header p { + margin: 0 1rem; +} + +upload-box footer { + display: flex; +} + +upload-box footer, +upload-box header { + padding: 1rem; + margin: 0; +} + +upload-box form, +upload-box footer, +upload-box header { + border-color: #ddd; + border-style: solid; + border-width: 1px; +} + +upload-box form { + border-radius: 0.5rem; +} + +upload-box input[type="file"] { + border: 1px dashed #999; + display: block; + padding: 10rem 2rem; + text-align-last: center; + width: 100%; +} + /* ----- Attributes ----- */ [hidden] { @@ -1175,11 +1241,6 @@ resume-page timeline-content { cursor: not-allowed; } -[data-resume] { - margin: 0; - max-width: 100%; -} - /* ----- Context Menu ----- */ input[type="checkbox"]:checked ~ context-menu { @@ -1860,21 +1921,6 @@ margin-note[image] a:focus { } } -/* ----- Uppy CSS ----- */ - -.uppy-Dashboard-inner { - background-color: #fff !important; - border: 1px solid #aaa !important; -} - -.uppy-size--md .uppy-DashboardAddFiles { - border: 2px dashed #aaa !important; -} - -.uppy-size--md .uppy-Dashboard-inner { - margin: 0 auto; -} - /* ----- Colors ----- */ ::selection { @@ -1933,9 +1979,9 @@ textarea { button, button-anchor a, -pagination-controller a, input[type="submit"], -input[type="button"] { +input[type="button"], +pagination-controller a { background-color: #f2f2f2; box-shadow: 0 1px 1px #aaa; } @@ -2082,8 +2128,8 @@ figcaption code, article-archive-list time, article-meta-bottom a, article-meta-bottom, -article-meta-top a, -article-meta-top, +article header a, +article header, article-more-content time, article-webring time, article-summary-meta, @@ -2145,8 +2191,8 @@ article-archive-list ul a, article-archive-list ul a:hover, article-card article-thumbnail a, article-card article-thumbnail a:hover, -article-meta-top a, -article-meta-top a:hover, +article header a, +article header a:hover, article-webring a, button-anchor a:focus, button-anchor a:hover, diff --git a/public/css/uppy.min.css b/public/css/uppy.min.css deleted file mode 100644 index 440bd74..0000000 --- a/public/css/uppy.min.css +++ /dev/null @@ -1 +0,0 @@ -.uppy-Root{box-sizing:border-box;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-align:left;position:relative;color:#333}.uppy-Root *,.uppy-Root :after,.uppy-Root :before{box-sizing:inherit}.uppy-Root [hidden]{display:none}.UppyIcon{max-width:100%;max-height:100%;fill:currentColor;display:inline-block;overflow:hidden}.UppyIcon--svg-baseline{bottom:-.125em;position:relative}.uppy-u-reset{-webkit-appearance:none;line-height:1;padding:0;color:inherit;-webkit-backface-visibility:visible;backface-visibility:visible;background:none;border:none;border-collapse:separate;border-image:none;border-radius:0;border-spacing:0;box-shadow:none;clear:none;cursor:auto;display:inline;empty-cells:show;float:none;font-family:inherit;font-size:inherit;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;-webkit-hyphens:none;-ms-hyphens:none;hyphens:none;left:auto;letter-spacing:normal;list-style:none;margin:0;max-height:none;max-width:none;min-height:0;min-width:0;opacity:1;outline:medium none invert;overflow:visible;overflow-x:visible;overflow-y:visible;text-align:left;text-decoration:none;text-indent:0;text-shadow:none;text-transform:none;top:auto;transform:none;transform-origin:50% 50% 0;transform-style:flat;transition:none 0s ease 0s;unicode-bidi:normal;vertical-align:baseline;visibility:visible;white-space:normal;z-index:auto}.uppy-c-textInput{border:1px solid #ddd;border-radius:4px;font-size:14px;line-height:1.5;padding:6px 8px;background-color:#fff}.uppy-size--md .uppy-c-textInput{padding:8px 10px}.uppy-c-textInput:focus{border-color:rgba(34,117,215,.6);outline:none;box-shadow:0 0 0 3px rgba(34,117,215,.15)}.uppy-c-btn{display:inline-block;text-align:center;white-space:nowrap;vertical-align:middle;font-family:inherit;font-size:16px;line-height:1;font-weight:500;transition:background-color .3s;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.uppy-c-btn:not(:disabled):not(.disabled){cursor:pointer}.uppy-c-btn::-moz-focus-inner{border:0}.uppy-c-btn-primary{font-size:14px;padding:10px 18px;border-radius:4px;background-color:#2275d7;color:#fff}.uppy-size--md .uppy-c-btn-primary{padding:13px 22px}.uppy-c-btn-primary:hover{background-color:#1b5dab}.uppy-c-btn-primary:focus{outline:none;box-shadow:0 0 0 3px rgba(34,117,215,.4)}.uppy-c-btn-link{font-size:14px;line-height:1;padding:10px 15px;border-radius:4px;background-color:transparent;color:#525252}.uppy-size--md .uppy-c-btn-link{padding:13px 18px}.uppy-c-btn-link:hover{color:#333}.uppy-c-btn-link:focus{outline:none;box-shadow:0 0 0 3px rgba(34,117,215,.25)}.uppy-c-btn--small{font-size:.9em;padding:7px 16px;border-radius:2px}.uppy-size--md .uppy-c-btn--small{padding:8px 10px;border-radius:2px}.uppy-Informer{position:absolute;bottom:60px;left:0;right:0;text-align:center;opacity:1;transform:none;transition:all .25s ease-in;z-index:1005}.uppy-Informer[aria-hidden=true]{opacity:0;transform:translateY(350%);transition:all .3s ease-in;z-index:-1000}.uppy-Informer p{display:inline-block;margin:0;font-size:12px;line-height:1.4;font-weight:400;padding:6px 15px;background-color:#757575;color:#fff;border-radius:18px;max-width:90%}.uppy-size--md .uppy-Informer p{font-size:14px;line-height:1.3;max-width:500px;padding:10px 20px}.uppy-Informer span{line-height:12px;width:13px;height:13px;display:inline-block;vertical-align:middle;color:#525252;background-color:#fff;border-radius:50%;position:relative;top:-1px;left:3px;font-size:10px;margin-left:-1px}.uppy-Informer span:hover{cursor:help}.uppy-Informer span:after{line-height:1.3;word-wrap:break-word}.uppy-Root [aria-label][role~=tooltip]{position:relative}.uppy-Root [aria-label][role~=tooltip]:after,.uppy-Root [aria-label][role~=tooltip]:before{transform:translateZ(0);-webkit-backface-visibility:hidden;backface-visibility:hidden;will-change:transform;opacity:0;pointer-events:none;transition:all var(--microtip-transition-duration,.18s) var(--microtip-transition-easing,ease-in-out) var(--microtip-transition-delay,0s);position:absolute;box-sizing:border-box;z-index:10;transform-origin:top}.uppy-Root [aria-label][role~=tooltip]:before{background-size:100% auto!important;content:""}.uppy-Root [aria-label][role~=tooltip]:after{background:rgba(17,17,17,.9);border-radius:4px;color:#fff;content:attr(aria-label);font-size:var(--microtip-font-size,13px);font-weight:var(--microtip-font-weight,normal);text-transform:var(--microtip-text-transform,none);padding:.5em 1em;white-space:nowrap;box-sizing:content-box}.uppy-Root [aria-label][role~=tooltip]:focus:after,.uppy-Root [aria-label][role~=tooltip]:focus:before,.uppy-Root [aria-label][role~=tooltip]:hover:after,.uppy-Root [aria-label][role~=tooltip]:hover:before{opacity:1;pointer-events:auto}.uppy-Root [role~=tooltip][data-microtip-position|=top]:before{background:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='12'%3E%3Cpath fill='rgba(17, 17, 17, 0.9)' d='M2.658 0h32.004c-6 0-11.627 12.002-16.002 12.002C14.285 12.002 8.594 0 2.658 0z'/%3E%3C/svg%3E") no-repeat;height:6px;width:18px;margin-bottom:5px}.uppy-Root [role~=tooltip][data-microtip-position|=top]:after{margin-bottom:11px}.uppy-Root [role~=tooltip][data-microtip-position|=top]:before{transform:translate3d(-50%,0,0);bottom:100%;left:50%}.uppy-Root [role~=tooltip][data-microtip-position|=top]:hover:before{transform:translate3d(-50%,-5px,0)}.uppy-Root [role~=tooltip][data-microtip-position|=top]:after{transform:translate3d(-50%,0,0);bottom:100%;left:50%}.uppy-Root [role~=tooltip][data-microtip-position=top]:hover:after{transform:translate3d(-50%,-5px,0)}.uppy-Root [role~=tooltip][data-microtip-position=top-left]:after{transform:translate3d(calc(-100% + 16px),0,0);bottom:100%}.uppy-Root [role~=tooltip][data-microtip-position=top-left]:hover:after{transform:translate3d(calc(-100% + 16px),-5px,0)}.uppy-Root [role~=tooltip][data-microtip-position=top-right]:after{transform:translate3d(-16px,0,0);bottom:100%}.uppy-Root [role~=tooltip][data-microtip-position=top-right]:hover:after{transform:translate3d(-16px,-5px,0)}.uppy-Root [role~=tooltip][data-microtip-position|=bottom]:before{background:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='12'%3E%3Cpath fill='rgba(17, 17, 17, 0.9)' d='M33.342 12H1.338c6 0 11.627-12.002 16.002-12.002C21.715-.002 27.406 12 33.342 12z'/%3E%3C/svg%3E") no-repeat;height:6px;width:18px;margin-top:5px;margin-bottom:0}.uppy-Root [role~=tooltip][data-microtip-position|=bottom]:after{margin-top:11px}.uppy-Root [role~=tooltip][data-microtip-position|=bottom]:before{transform:translate3d(-50%,-10px,0);bottom:auto;left:50%;top:100%}.uppy-Root [role~=tooltip][data-microtip-position|=bottom]:hover:before{transform:translate3d(-50%,0,0)}.uppy-Root [role~=tooltip][data-microtip-position|=bottom]:after{transform:translate3d(-50%,-10px,0);top:100%;left:50%}.uppy-Root [role~=tooltip][data-microtip-position=bottom]:hover:after{transform:translate3d(-50%,0,0)}.uppy-Root [role~=tooltip][data-microtip-position=bottom-left]:after{transform:translate3d(calc(-100% + 16px),-10px,0);top:100%}.uppy-Root [role~=tooltip][data-microtip-position=bottom-left]:hover:after{transform:translate3d(calc(-100% + 16px),0,0)}.uppy-Root [role~=tooltip][data-microtip-position=bottom-right]:after{transform:translate3d(-16px,-10px,0);top:100%}.uppy-Root [role~=tooltip][data-microtip-position=bottom-right]:hover:after{transform:translate3d(-16px,0,0)}.uppy-Root [role~=tooltip][data-microtip-position=left]:after,.uppy-Root [role~=tooltip][data-microtip-position=left]:before{bottom:auto;left:auto;right:100%;top:50%;transform:translate3d(10px,-50%,0)}.uppy-Root [role~=tooltip][data-microtip-position=left]:before{background:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='36'%3E%3Cpath fill='rgba(17, 17, 17, 0.9)' d='M0 33.342V1.338c0 6 12.002 11.627 12.002 16.002C12.002 21.715 0 27.406 0 33.342z'/%3E%3C/svg%3E") no-repeat;height:18px;width:6px;margin-right:5px;margin-bottom:0}.uppy-Root [role~=tooltip][data-microtip-position=left]:after{margin-right:11px}.uppy-Root [role~=tooltip][data-microtip-position=left]:hover:after,.uppy-Root [role~=tooltip][data-microtip-position=left]:hover:before{transform:translate3d(0,-50%,0)}.uppy-Root [role~=tooltip][data-microtip-position=right]:after,.uppy-Root [role~=tooltip][data-microtip-position=right]:before{bottom:auto;left:100%;top:50%;transform:translate3d(-10px,-50%,0)}.uppy-Root [role~=tooltip][data-microtip-position=right]:before{background:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='36'%3E%3Cpath fill='rgba(17, 17, 17, 0.9)' d='M12 2.658v32.004c0-6-12.002-11.627-12.002-16.002C-.002 14.285 12 8.594 12 2.658z'/%3E%3C/svg%3E") no-repeat;height:18px;width:6px;margin-bottom:0;margin-left:5px}.uppy-Root [role~=tooltip][data-microtip-position=right]:after{margin-left:11px}.uppy-Root [role~=tooltip][data-microtip-position=right]:hover:after,.uppy-Root [role~=tooltip][data-microtip-position=right]:hover:before{transform:translate3d(0,-50%,0)}.uppy-Root [role~=tooltip][data-microtip-size=small]:after{white-space:normal;width:80px}.uppy-Root [role~=tooltip][data-microtip-size=medium]:after{white-space:normal;width:150px}.uppy-Root [role~=tooltip][data-microtip-size=large]:after{white-space:normal;width:260px}.uppy-StatusBar{display:-ms-flexbox;display:flex;position:relative;height:40px;line-height:40px;font-size:12px;font-weight:400;color:#fff;background-color:#fff;z-index:1001;transition:height .2s}.uppy-size--md .uppy-StatusBar{height:46px}.uppy-StatusBar:before{content:"";position:absolute;left:0;right:0;top:0;bottom:0;width:100%;height:2px;background-color:#eaeaea}.uppy-StatusBar[aria-hidden=true]{overflow-y:hidden;height:0}.uppy-StatusBar.is-complete .uppy-StatusBar-progress{background-color:#1bb240}.uppy-StatusBar.is-error .uppy-StatusBar-progress{background-color:#e32437}.uppy-StatusBar.is-complete .uppy-StatusBar-statusIndicator{color:#1bb240}.uppy-StatusBar.is-error .uppy-StatusBar-statusIndicator{color:#e32437}.uppy-StatusBar:not([aria-hidden=true]).is-waiting{background-color:#fff;height:65px;border-top:1px solid #eaeaea}.uppy-StatusBar-progress{background-color:#2275d7;height:2px;position:absolute;z-index:1001;transition:background-color,width .3s ease-out}.uppy-StatusBar-progress.is-indeterminate{background-size:64px 64px;background-image:linear-gradient(45deg,rgba(0,0,0,.3) 25%,transparent 0,transparent 50%,rgba(0,0,0,.3) 0,rgba(0,0,0,.3) 75%,transparent 0,transparent);animation:uppy-StatusBar-ProgressStripes 1s linear infinite}@keyframes uppy-StatusBar-ProgressStripes{0%{background-position:0 0}to{background-position:64px 0}}.uppy-StatusBar.is-postprocessing .uppy-StatusBar-progress,.uppy-StatusBar.is-preprocessing .uppy-StatusBar-progress{background-color:#f6a623}.uppy-StatusBar.is-waiting .uppy-StatusBar-progress{display:none}.uppy-StatusBar-content{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;position:relative;z-index:1002;padding-left:10px;white-space:nowrap;text-overflow:ellipsis;color:#333;height:100%}.uppy-size--md .uppy-StatusBar-content{padding-left:15px}.uppy-StatusBar-status{line-height:1.4;font-weight:400;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;padding-right:.3em}.uppy-Root:not(.uppy-size--md) .uppy-StatusBar-additionalInfo{display:none}.uppy-StatusBar-statusPrimary{font-weight:500}.uppy-StatusBar-statusSecondary{margin-top:1px;font-size:11px;line-height:1.2;display:inline-block;color:#757575;white-space:nowrap}.uppy-StatusBar-statusSecondaryHint{display:inline-block;vertical-align:middle;margin-right:5px;line-height:1}.uppy-size--md .uppy-StatusBar-statusSecondaryHint{margin-right:8px}.uppy-StatusBar-statusIndicator{position:relative;top:1px;color:#525252;margin-right:7px}.uppy-StatusBar-statusIndicator svg{vertical-align:text-bottom}.uppy-StatusBar-actions{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;position:absolute;top:0;bottom:0;right:10px;z-index:1004}.uppy-StatusBar.is-waiting .uppy-StatusBar-actions{width:100%;position:static;padding:0 15px;background-color:#fafafa}.uppy-StatusBar-actionCircleBtn{line-height:1;cursor:pointer;margin:3px;opacity:.9}.uppy-StatusBar-actionCircleBtn:focus{outline:none}.uppy-StatusBar-actionCircleBtn::-moz-focus-inner{border:0}.uppy-StatusBar-actionCircleBtn:focus{box-shadow:0 0 0 3px rgba(34,117,215,.5)}.uppy-StatusBar-actionCircleBtn:hover{opacity:1}.uppy-StatusBar-actionCircleBtn:focus{border-radius:50%}.uppy-StatusBar-actionCircleBtn svg{vertical-align:bottom}.uppy-StatusBar-actionBtn{display:inline-block;vertical-align:middle;font-size:10px;line-height:inherit;color:#2275d7}.uppy-size--md .uppy-StatusBar-actionBtn{font-size:11px}.uppy-StatusBar-actionBtn--retry{height:16px;border-radius:8px;margin-right:6px;background-color:#ff4b23;line-height:1;color:#fff;padding:1px 6px 3px 18px;position:relative}.uppy-StatusBar-actionBtn--retry:focus{outline:none}.uppy-StatusBar-actionBtn--retry::-moz-focus-inner{border:0}.uppy-StatusBar-actionBtn--retry:focus{box-shadow:0 0 0 3px rgba(34,117,215,.5)}.uppy-StatusBar-actionBtn--retry:hover{background-color:#f92d00}.uppy-StatusBar-actionBtn--retry svg{position:absolute;top:3px;left:6px}.uppy-StatusBar.is-waiting .uppy-StatusBar-actionBtn--upload{font-size:14px;width:100%;padding:15px 10px;color:#fff;background-color:#1bb240;line-height:1}.uppy-StatusBar.is-waiting .uppy-StatusBar-actionBtn--upload:hover{background-color:#148630}.uppy-size--md .uppy-StatusBar.is-waiting .uppy-StatusBar-actionBtn--upload{padding:13px 22px;width:auto}.uppy-StatusBar:not(.is-waiting) .uppy-StatusBar-actionBtn--upload{background-color:transparent;color:#2275d7}.uppy-StatusBar-actionBtn--uploadNewlyAdded{padding-right:3px;padding-left:3px;padding-bottom:1px;border-radius:3px}.uppy-StatusBar-actionBtn--uploadNewlyAdded:focus{outline:none}.uppy-StatusBar-actionBtn--uploadNewlyAdded::-moz-focus-inner{border:0}.uppy-StatusBar-actionBtn--uploadNewlyAdded:focus{box-shadow:0 0 0 3px rgba(34,117,215,.5)}.uppy-StatusBar-details{line-height:12px;width:13px;height:13px;display:inline-block;vertical-align:middle;color:#fff;background-color:#939393;border-radius:50%;position:relative;top:0;left:2px;font-size:10px;font-weight:600;text-align:center;cursor:help}.uppy-StatusBar-details:after{line-height:1.3;word-wrap:break-word}.uppy-StatusBar-spinner{animation-name:uppy-StatusBar-spinnerAnimation;animation-duration:1s;animation-iteration-count:infinite;animation-timing-function:linear;margin-right:10px;fill:#2275d7}.uppy-StatusBar.is-postprocessing .uppy-StatusBar-spinner,.uppy-StatusBar.is-preprocessing .uppy-StatusBar-spinner{fill:#f6a623}@keyframes uppy-StatusBar-spinnerAnimation{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.uppy-ProviderBrowser-viewType--grid ul.uppy-ProviderBrowser-list{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:start;align-items:flex-start;padding:6px}.uppy-ProviderBrowser-viewType--grid ul.uppy-ProviderBrowser-list:after{content:"";-ms-flex:auto;flex:auto}.uppy-ProviderBrowser-viewType--grid li.uppy-ProviderBrowserItem{width:50%;position:relative;margin:0}.uppy-size--md .uppy-ProviderBrowser-viewType--grid li.uppy-ProviderBrowserItem{width:33.3333%}.uppy-size--lg .uppy-ProviderBrowser-viewType--grid li.uppy-ProviderBrowserItem{width:25%}.uppy-ProviderBrowser-viewType--grid li.uppy-ProviderBrowserItem:before{content:"";padding-top:100%;display:block}.uppy-ProviderBrowser-viewType--grid li.uppy-ProviderBrowserItem--selected img,.uppy-ProviderBrowser-viewType--grid li.uppy-ProviderBrowserItem--selected svg{opacity:.85}.uppy-ProviderBrowser-viewType--grid li.uppy-ProviderBrowserItem--noPreview .uppy-ProviderBrowserItem-inner{background-color:hsla(0,0%,57.6%,.3)}.uppy-ProviderBrowser-viewType--grid li.uppy-ProviderBrowserItem--noPreview svg{fill:rgba(0,0,0,.7);width:30%;height:30%}.uppy-ProviderBrowser-viewType--grid button.uppy-ProviderBrowserItem-inner{border-radius:4px;overflow:hidden;position:absolute;top:7px;left:7px;right:7px;bottom:7px;text-align:center}.uppy-ProviderBrowser-viewType--grid button.uppy-ProviderBrowserItem-inner:focus{outline:none;box-shadow:0 0 0 3px rgba(34,117,215,.9)}.uppy-ProviderBrowser-viewType--grid button.uppy-ProviderBrowserItem-inner img,.uppy-ProviderBrowser-viewType--grid button.uppy-ProviderBrowserItem-inner svg{width:100%;height:100%;object-fit:cover;border-radius:4px}.uppy-ProviderBrowser-viewType--grid .uppy-ProviderBrowserItem-fakeCheckbox{position:absolute;top:16px;right:16px;width:26px;height:26px;background-color:#2275d7;border-radius:50%;z-index:1002;opacity:0}.uppy-ProviderBrowser-viewType--grid .uppy-ProviderBrowserItem-fakeCheckbox:after{width:12px;height:7px;left:7px;top:8px}.uppy-ProviderBrowser-viewType--grid .uppy-ProviderBrowserItem-fakeCheckbox--is-checked{opacity:1}.uppy-ProviderBrowser-viewType--list{background-color:#fff}.uppy-ProviderBrowser-viewType--list li.uppy-ProviderBrowserItem{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding:7px 15px;margin:0}.uppy-ProviderBrowser-viewType--list .uppy-ProviderBrowserItem-fakeCheckbox{margin-right:15px;height:17px;width:17px;border-radius:3px;background-color:#fff;border:1px solid #cfcfcf}.uppy-ProviderBrowser-viewType--list .uppy-ProviderBrowserItem-fakeCheckbox:focus{border:1px solid #2275d7;box-shadow:0 0 0 3px rgba(34,117,215,.25);outline:none}.uppy-ProviderBrowser-viewType--list .uppy-ProviderBrowserItem-fakeCheckbox:after{opacity:0;height:5px;width:9px;left:3px;top:4px}.uppy-ProviderBrowser-viewType--list .uppy-ProviderBrowserItem-fakeCheckbox--is-checked{background-color:#2275d7;border-color:#2275d7}.uppy-ProviderBrowser-viewType--list .uppy-ProviderBrowserItem-fakeCheckbox--is-checked:after{opacity:1}.uppy-ProviderBrowser-viewType--list .uppy-ProviderBrowserItem-inner{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding:2px}.uppy-ProviderBrowser-viewType--list .uppy-ProviderBrowserItem-inner:focus{outline:none;text-decoration:underline}.uppy-ProviderBrowser-viewType--list .uppy-ProviderBrowserItem-inner img,.uppy-ProviderBrowser-viewType--list .uppy-ProviderBrowserItem-inner svg{margin-right:8px;max-width:20px;max-height:20px}.uppy-ProviderBrowserItem-fakeCheckbox{position:relative;cursor:pointer}.uppy-ProviderBrowserItem-fakeCheckbox:after{content:"";position:absolute;cursor:pointer;border-left:2px solid #fff;border-bottom:2px solid #fff;transform:rotate(-45deg)}.uppy-DashboardContent-panelBody{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-ms-flex:1;flex:1}.uppy-Provider-auth,.uppy-Provider-empty,.uppy-Provider-error,.uppy-Provider-loading{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-ms-flex-flow:column wrap;flex-flow:column wrap;-ms-flex:1;flex:1;color:#939393}.uppy-Provider-empty{color:#939393}.uppy-Provider-authIcon svg{width:100px;height:75px;margin-bottom:15px}.uppy-Provider-authTitle{font-size:17px;line-height:1.4;font-weight:400;margin-bottom:30px;padding:0 15px;max-width:500px;text-align:center;color:#757575}.uppy-size--md .uppy-Provider-authTitle{font-size:20px}.uppy-Provider-breadcrumbs{-ms-flex:1;flex:1;color:#525252;font-size:12px;margin-bottom:10px;text-align:left}.uppy-size--md .uppy-Provider-breadcrumbs{margin-bottom:0}.uppy-Provider-breadcrumbsIcon{display:inline-block;color:#525252;vertical-align:middle;margin-right:4px;line-height:1}.uppy-Provider-breadcrumbsIcon svg{width:13px;height:13px;fill:#525252}.uppy-Provider-breadcrumbs button{display:inline-block;line-height:inherit;padding:4px;border-radius:3px}.uppy-Provider-breadcrumbs button:focus{outline:none}.uppy-Provider-breadcrumbs button::-moz-focus-inner{border:0}.uppy-Provider-breadcrumbs button:hover{color:#1b5dab}.uppy-Provider-breadcrumbs button:focus{background-color:#eceef2}.uppy-Provider-breadcrumbs button:hover{text-decoration:underline;cursor:pointer}.uppy-ProviderBrowser{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex:1;flex:1;font-size:14px;font-weight:400;height:100%}.uppy-ProviderBrowser-user{margin:0 8px 0 0;font-weight:500;color:#333}.uppy-ProviderBrowser-user:after{content:"\00B7";position:relative;left:4px;color:#939393;font-weight:400}.uppy-ProviderBrowser-header{z-index:1001;border-bottom:1px solid #eaeaea;position:relative}.uppy-ProviderBrowser-headerBar{padding:7px 15px;background-color:#fafafa;z-index:1001;color:#757575;line-height:1.4;font-size:12px}.uppy-size--md .uppy-ProviderBrowser-headerBar{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.uppy-ProviderBrowser-headerBar--simple{text-align:center;display:block;-ms-flex-pack:center;justify-content:center}.uppy-ProviderBrowser-headerBar--simple .uppy-Provider-breadcrumbsWrap{-ms-flex:none;flex:none;display:inline-block;vertical-align:middle}.uppy-ProviderBrowser-search{width:100%;background-color:#fff;position:relative;height:30px;margin-top:10px;margin-bottom:5px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.uppy-ProviderBrowser-searchIcon{position:absolute;width:12px;height:12px;left:16px;z-index:1002;color:#bbb}.uppy-ProviderBrowser-searchInput{width:100%;height:30px;background-color:transparent;outline:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol;font-size:12px;line-height:1.4;border:0;margin:0 8px;padding-left:27px;z-index:1001;border-radius:4px}.uppy-ProviderBrowser-searchInput:focus{outline:0;background-color:#f4f4f4}.uppy-ProviderBrowser-searchClose{position:absolute;width:22px;height:22px;padding:6px;right:12px;top:4px;z-index:1002;color:#939393;cursor:pointer}.uppy-ProviderBrowser-searchClose:hover{color:#757575}.uppy-ProviderBrowser-searchClose svg{vertical-align:text-top}.uppy-ProviderBrowser-searchInput:-ms-input-placeholder{color:#939393;opacity:1}.uppy-ProviderBrowser-searchInput::-ms-input-placeholder{color:#939393;opacity:1}.uppy-ProviderBrowser-searchInput::placeholder{color:#939393;opacity:1}.uppy-ProviderBrowser-userLogout{cursor:pointer;line-height:inherit;color:#2275d7;padding:4px;border-radius:3px}.uppy-ProviderBrowser-userLogout:focus{outline:none}.uppy-ProviderBrowser-userLogout::-moz-focus-inner{border:0}.uppy-ProviderBrowser-userLogout:hover{color:#1b5dab}.uppy-ProviderBrowser-userLogout:focus{background-color:#eceef2}.uppy-ProviderBrowser-userLogout:hover{text-decoration:underline}.uppy-ProviderBrowser-body{-ms-flex:1;flex:1;position:relative}.uppy-ProviderBrowser-list{-ms-flex:1;flex:1;position:relative;display:block;width:100%;height:100%;background-color:#fff;border-spacing:0;overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:touch;position:absolute;top:0;bottom:0;left:0;right:0;list-style:none;margin:0;padding:0}.uppy-ProviderBrowserItem-inner{cursor:pointer;font-weight:500;font-size:13px}.uppy-ProviderBrowser-footer{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;background:#fff;height:65px;border-top:1px solid #eaeaea;padding:0 15px}.uppy-ProviderBrowser-footer button{margin-right:8px}.uppy-DashboardItem-previewInnerWrap{width:100%;height:100%;overflow:hidden;position:relative;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;-ms-flex-direction:column;flex-direction:column;box-shadow:0 0 2px 0 rgba(0,0,0,.4);border-radius:3px}.uppy-size--md .uppy-DashboardItem-previewInnerWrap{box-shadow:0 1px 2px rgba(0,0,0,.15)}.uppy-DashboardItem-previewInnerWrap:after{content:"";position:absolute;left:0;right:0;top:0;bottom:0;background-color:rgba(0,0,0,.65);display:none;z-index:1001}.uppy-DashboardItem-previewLink{position:absolute;left:0;right:0;top:0;bottom:0;z-index:1002}.uppy-DashboardItem-previewLink:focus{box-shadow:inset 0 0 0 3px #76abe9}.uppy-DashboardItem-preview img.uppy-DashboardItem-previewImg{width:100%;height:100%;object-fit:cover;transform:translateZ(0);border-radius:3px}.uppy-DashboardItem-progress{display:none;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);z-index:1002;color:#fff;text-align:center;width:120px;transition:all .35 ease}.uppy-DashboardItem-progressIndicator{display:inline-block;width:38px;height:38px;opacity:.9;cursor:pointer}.uppy-DashboardItem-progressIndicator:focus{outline:none}.uppy-DashboardItem-progressIndicator::-moz-focus-inner{border:0}.uppy-DashboardItem-progressIndicator:focus svg.retry,.uppy-DashboardItem-progressIndicator:focus svg.UppyIcon-progressCircle .bg{fill:#76abe9}svg.UppyIcon-progressCircle{width:100%;height:100%}svg.UppyIcon-progressCircle .bg{stroke:hsla(0,0%,100%,.4);opacity:0}svg.UppyIcon-progressCircle .progress{stroke:#fff;transition:stroke-dashoffset .5s ease-out;opacity:0}svg.UppyIcon-progressCircle .play{stroke:#fff;display:none}svg.UppyIcon-progressCircle .cancel,svg.UppyIcon-progressCircle .pause,svg.UppyIcon-progressCircle .play{fill:#fff;opacity:0;transition:all .2s}svg.UppyIcon-progressCircle .pause{stroke:#fff;display:none}svg.UppyIcon-progressCircle .check{opacity:0;fill:#fff;transition:all .2s}svg.UppyIcon.retry{fill:#fff}.uppy-DashboardItem.is-complete .uppy-DashboardItem-progress{transform:none;top:-9px;right:-8px;left:auto;width:auto}.uppy-DashboardItem.is-complete .uppy-DashboardItem-progress,.uppy-DashboardItem.is-error .uppy-DashboardItem-progress,.uppy-DashboardItem.is-inprogress .uppy-DashboardItem-progress{display:block}.uppy-DashboardItem.is-error .uppy-DashboardItem-progressIndicator{width:18px;height:18px}.uppy-size--md .uppy-DashboardItem.is-error .uppy-DashboardItem-progressIndicator{width:28px;height:28px}.uppy-DashboardItem.is-complete .uppy-DashboardItem-progressIndicator{width:18px;height:18px;opacity:1}.uppy-size--md .uppy-DashboardItem.is-complete .uppy-DashboardItem-progressIndicator{width:22px;height:22px}.uppy-DashboardItem.is-paused svg.UppyIcon-progressCircle .pause{opacity:0}.uppy-DashboardItem.is-paused svg.UppyIcon-progressCircle .play{opacity:1}.uppy-DashboardItem.is-noIndividualCancellation .uppy-DashboardItem-progressIndicator{cursor:default}.uppy-DashboardItem.is-noIndividualCancellation .cancel{display:none}.uppy-DashboardItem.is-processing .uppy-DashboardItem-progress{opacity:0}.uppy-DashboardItem.is-complete .uppy-DashboardItem-progressIndicator{cursor:default}.uppy-DashboardItem.is-complete .progress{stroke:#1bb240;fill:#1bb240;opacity:1}.uppy-DashboardItem.is-complete .check{opacity:1}.uppy-size--md .uppy-DashboardItem-progressIndicator{width:55px;height:55px}.uppy-DashboardItem.is-resumable .pause,.uppy-DashboardItem.is-resumable .play{display:block}.uppy-DashboardItem.is-resumable .cancel{display:none}.uppy-DashboardItem.is-inprogress .bg,.uppy-DashboardItem.is-inprogress .cancel,.uppy-DashboardItem.is-inprogress .pause,.uppy-DashboardItem.is-inprogress .progress{opacity:1}.uppy-DashboardItem-fileInfo{padding-right:5px}.uppy-DashboardItem-name{font-size:12px;line-height:1.3;font-weight:500;margin-bottom:4px;word-break:break-all;word-wrap:anywhere}.uppy-DashboardItem-status{font-size:11px;line-height:1.3;font-weight:400;color:#757575}.uppy-DashboardItem-statusSize{display:inline-block;vertical-align:bottom;text-transform:uppercase}.uppy-DashboardItem-sourceIcon{display:inline-block;vertical-align:bottom;color:#bbb}.uppy-DashboardItem-sourceIcon:not(:first-child){position:relative;margin-left:14px}.uppy-DashboardItem-sourceIcon svg,.uppy-DashboardItem-sourceIcon svg *{max-width:100%;max-height:100%;display:inline-block;vertical-align:text-bottom;overflow:hidden;fill:currentColor;width:11px;height:12px}.uppy-DashboardItem-action{cursor:pointer;color:#939393}.uppy-DashboardItem-action:focus{outline:none}.uppy-DashboardItem-action::-moz-focus-inner{border:0}.uppy-DashboardItem-action:focus{box-shadow:0 0 0 3px rgba(34,117,215,.5)}.uppy-DashboardItem-action:hover{opacity:1;color:#1f1f1f}.uppy-DashboardItem-action--remove{color:#1f1f1f;opacity:.95}.uppy-Dashboard:not(.uppy-size--md) .uppy-DashboardItem-actionWrapper{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.uppy-Dashboard:not(.uppy-size--md) .uppy-DashboardItem-action{width:22px;height:22px;padding:3px;margin-left:3px}.uppy-Dashboard:not(.uppy-size--md) .uppy-DashboardItem-action:focus{border-radius:3px}.uppy-size--md .uppy-DashboardItem-action--copyLink,.uppy-size--md .uppy-DashboardItem-action--edit{width:16px;height:16px;padding:0}.uppy-size--md .uppy-DashboardItem-action--copyLink:focus,.uppy-size--md .uppy-DashboardItem-action--edit:focus{border-radius:3px}.uppy-size--md .uppy-DashboardItem-action--remove{z-index:1002;position:absolute;top:-8px;right:-8px;width:18px;height:18px;padding:0}.uppy-size--md .uppy-DashboardItem-action--remove:focus{border-radius:50%}.uppy-Dashboard:not(.uppy-size--md) .uppy-DashboardItem{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;border-bottom:1px solid #eaeaea;padding:10px 0 10px 10px}.uppy-size--md .uppy-DashboardItem{position:relative;display:block;float:left;margin:5px 15px;width:calc(33.333% - 30px);height:215px}.uppy-size--lg .uppy-DashboardItem{margin:5px 15px;width:calc(25% - 30px);height:190px}.uppy-size--xl .uppy-DashboardItem{width:calc(20% - 30px);height:210px}.uppy-DashboardItem-preview{position:relative}.uppy-Dashboard:not(.uppy-size--md) .uppy-DashboardItem-preview{-ms-flex-negative:0;flex-shrink:0;-ms-flex-positive:0;flex-grow:0;width:50px;height:50px}.uppy-size--md .uppy-DashboardItem-preview{width:100%;height:140px}.uppy-size--lg .uppy-DashboardItem-preview{height:120px}.uppy-size--xl .uppy-DashboardItem-preview{height:140px}.uppy-DashboardItem-fileInfoAndButtons{-ms-flex-positive:1;flex-grow:1;padding-right:8px;padding-left:12px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between}.uppy-size--md .uppy-DashboardItem-fileInfoAndButtons{-ms-flex-align:start;align-items:flex-start;width:100%;padding:9px 0 0}.uppy-DashboardItem-fileInfo{-ms-flex-positive:1;flex-grow:1;-ms-flex-negative:1;flex-shrink:1}.uppy-DashboardItem-actionWrapper{-ms-flex-positive:0;flex-grow:0;-ms-flex-negative:0;flex-shrink:0}.uppy-DashboardItem.is-inprogress .uppy-DashboardItem-previewInnerWrap:after{display:block}.uppy-DashboardItem.is-error .uppy-DashboardItem-previewInnerWrap:after{display:block}.uppy-DashboardItem.is-inprogress:not(.is-resumable) .uppy-DashboardItem-action--remove{display:none}.uppy-Dashboard-FileCard{width:100%;height:100%;position:absolute;top:0;left:0;right:0;bottom:0;z-index:1005;box-shadow:0 0 10px 4px rgba(0,0,0,.1);background-color:#fff;border-radius:5px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.uppy-Dashboard-FileCard .uppy-DashboardContent-bar{border-top-left-radius:5px;border-top-right-radius:5px}.uppy-Dashboard-FileCard .uppy-Dashboard-FileCard-actions{border-bottom-left-radius:5px;border-bottom-right-radius:5px}.uppy-Dashboard-FileCard-inner{height:100%;-ms-flex-positive:1;flex-grow:1;-ms-flex-direction:column;flex-direction:column}.uppy-Dashboard-FileCard-inner,.uppy-Dashboard-FileCard-preview{-ms-flex-negative:1;flex-shrink:1;min-height:0;display:-ms-flexbox;display:flex}.uppy-Dashboard-FileCard-preview{height:60%;-ms-flex-positive:0;flex-grow:0;border-bottom:1px solid #eaeaea;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.uppy-Dashboard-FileCard-preview img.uppy-DashboardItem-previewImg{max-width:90%;max-height:90%;object-fit:cover;-ms-flex:0 0 auto;flex:0 0 auto;border-radius:3px;box-shadow:0 3px 20px rgba(0,0,0,.15)}.uppy-Dashboard-FileCard-info{height:40%;-ms-flex-positive:0;flex-grow:0;-ms-flex-negative:0;flex-shrink:0;padding:30px 20px 20px;overflow-y:auto;-webkit-overflow-scrolling:touch}.uppy-Dashboard-FileCard-fieldset{font-size:0;border:0;padding:0;max-width:640px;margin:auto auto 12px}.uppy-Dashboard-FileCard-label{display:inline-block;vertical-align:middle;width:22%;font-size:12px;color:#525252}.uppy-size--md .uppy-Dashboard-FileCard-label{font-size:14px}.uppy-Dashboard-FileCard-input{display:inline-block;vertical-align:middle;width:78%}.uppy-Dashboard-FileCard-actions{height:55px;-ms-flex-negative:0;flex-shrink:0;-ms-flex-positive:0;flex-grow:0;border-top:1px solid #eaeaea;padding:0 15px;background-color:#fafafa;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.uppy-size--md .uppy-Dashboard-FileCard-actions{height:65px}.uppy-Dashboard-FileCard-actionsBtn{margin-right:10px}.uppy-transition-slideDownUp-enter{opacity:.01;transform:translate3d(0,-105%,0);transition:transform .25s ease-in-out,opacity .25s ease-in-out}.uppy-transition-slideDownUp-enter.uppy-transition-slideDownUp-enter-active{opacity:1;transform:translateZ(0)}.uppy-transition-slideDownUp-leave{opacity:1;transform:translateZ(0);transition:transform .25s ease-in-out,opacity .25s ease-in-out}.uppy-transition-slideDownUp-leave.uppy-transition-slideDownUp-leave-active{opacity:.01;transform:translate3d(0,-105%,0)}.uppy-Dashboard--modal{z-index:1001}.uppy-Dashboard--modal[aria-hidden=true]{display:none}@keyframes uppy-Dashboard-fadeIn{0%{opacity:0}to{opacity:1}}@keyframes uppy-Dashboard-fadeOut{0%{opacity:1}to{opacity:0}}@keyframes uppy-Dashboard-slideDownAndFadeIn{0%{transform:translate3d(-50%,-70%,0);opacity:0}to{transform:translate3d(-50%,-50%,0);opacity:1}}@keyframes uppy-Dashboard-slideDownAndFadeIn--small{0%{transform:translate3d(0,-20%,0);opacity:0}to{transform:translateZ(0);opacity:1}}@keyframes uppy-Dashboard-slideUpFadeOut{0%{transform:translate3d(-50%,-50%,0);opacity:1}to{transform:translate3d(-50%,-70%,0);opacity:0}}@keyframes uppy-Dashboard-slideUpFadeOut--small{0%{transform:translateZ(0);opacity:1}to{transform:translate3d(0,-20%,0);opacity:0}}.uppy-Dashboard--modal.uppy-Dashboard--animateOpenClose>.uppy-Dashboard-inner{animation:uppy-Dashboard-slideDownAndFadeIn--small .3s cubic-bezier(0,0,.2,1)}@media only screen and (min-width:820px){.uppy-Dashboard--modal.uppy-Dashboard--animateOpenClose>.uppy-Dashboard-inner{animation:uppy-Dashboard-slideDownAndFadeIn .3s cubic-bezier(0,0,.2,1)}}.uppy-Dashboard--modal.uppy-Dashboard--animateOpenClose>.uppy-Dashboard-overlay{animation:uppy-Dashboard-fadeIn .3s cubic-bezier(0,0,.2,1)}.uppy-Dashboard--modal.uppy-Dashboard--animateOpenClose.uppy-Dashboard--isClosing>.uppy-Dashboard-inner{animation:uppy-Dashboard-slideUpFadeOut--small .3s cubic-bezier(0,0,.2,1)}@media only screen and (min-width:820px){.uppy-Dashboard--modal.uppy-Dashboard--animateOpenClose.uppy-Dashboard--isClosing>.uppy-Dashboard-inner{animation:uppy-Dashboard-slideUpFadeOut .3s cubic-bezier(0,0,.2,1)}}.uppy-Dashboard--modal.uppy-Dashboard--animateOpenClose.uppy-Dashboard--isClosing>.uppy-Dashboard-overlay{animation:uppy-Dashboard-fadeOut .3s cubic-bezier(0,0,.2,1)}.uppy-Dashboard-isFixed{overflow:hidden;height:100vh}.uppy-Dashboard--modal .uppy-Dashboard-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background-color:rgba(0,0,0,.5);z-index:1001}.uppy-Dashboard-inner{position:relative;background-color:#fafafa;max-width:100%;max-height:100%;min-height:450px;outline:none;border:1px solid #eaeaea;border-radius:5px}.uppy-size--md .uppy-Dashboard-inner{min-height:auto}@media only screen and (min-width:820px){.uppy-Dashboard-inner{width:750px;height:550px}}.uppy-Dashboard--modal .uppy-Dashboard-inner{z-index:1002}.uppy-Dashboard-innerWrap{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;height:100%;overflow:hidden;position:relative;border-radius:5px;opacity:0}.uppy-Dashboard--isInnerWrapVisible .uppy-Dashboard-innerWrap{opacity:1}.uppy-Dashboard--modal .uppy-Dashboard-inner{position:fixed;top:35px;left:15px;right:15px;bottom:15px;border:none}@media only screen and (min-width:820px){.uppy-Dashboard--modal .uppy-Dashboard-inner{top:50%;left:50%;transform:translate(-50%,-50%);box-shadow:0 5px 15px 4px rgba(0,0,0,.15)}}.uppy-Dashboard-close{display:block;position:absolute;top:-33px;right:-2px;cursor:pointer;color:hsla(0,0%,100%,.9);font-size:27px;z-index:1005}.uppy-Dashboard-close:focus{outline:none}.uppy-Dashboard-close::-moz-focus-inner{border:0}.uppy-Dashboard-close:focus{color:#8cb8ed}@media only screen and (min-width:820px){.uppy-Dashboard-close{font-size:35px;top:-10px;right:-35px}}.uppy-DashboardAddFiles{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;-ms-flex-direction:column;flex-direction:column;height:100%;position:relative;text-align:center;-ms-flex:1;flex:1}.uppy-size--md .uppy-DashboardAddFiles{margin:7px;border-radius:3px;border:1px dashed #dfdfdf}.uppy-Dashboard-AddFilesPanel .uppy-DashboardAddFiles{border:none}.uppy-Dashboard--modal .uppy-DashboardAddFiles{border-color:#cfcfcf}.uppy-DashboardTabs{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;width:100%}.uppy-size--md .uppy-DashboardTabs{-ms-flex-align:center;align-items:center}.uppy-DashboardTabs-title{font-size:14px;line-height:30px;font-weight:400;margin:0;padding:0;text-align:center;color:#525252}.uppy-size--md .uppy-DashboardTabs-title{font-size:16px;line-height:40px}.uppy-DashboardAddFiles-info{padding-top:15px;padding-bottom:15px}.uppy-size--md .uppy-DashboardAddFiles-info{position:absolute;bottom:30px;left:0;right:0;padding-top:30px;padding-bottom:0}.uppy-Dashboard-browse{cursor:pointer;color:rgba(34,117,215,.9)}.uppy-Dashboard-browse:focus{outline:none}.uppy-Dashboard-browse::-moz-focus-inner{border:0}.uppy-Dashboard-browse:focus,.uppy-Dashboard-browse:hover{border-bottom:2px solid #2275d7}.uppy-DashboardTabs-list{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;max-height:300px;overflow-x:auto;-webkit-overflow-scrolling:touch;margin-top:10px;padding:2px 0}.uppy-size--md .uppy-DashboardTabs-list{-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-pack:center;justify-content:center;max-width:600px;overflow-x:initial;margin-top:15px;padding-top:0}.uppy-DashboardTab{width:100%;display:inline-block;text-align:center;border-bottom:1px solid #eaeaea;padding:0 2px}.uppy-size--md .uppy-DashboardTab{width:auto;margin-bottom:20px;border-bottom:none;padding:0}.uppy-DashboardTab-btn{width:100%;height:100%;cursor:pointer;border:0;background-color:transparent;-webkit-appearance:none;-moz-appearance:none;appearance:none;color:#525252;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;padding:12px 15px;line-height:1;text-align:center}.uppy-size--md .uppy-DashboardTab-btn{width:86px;margin-right:1px;-ms-flex-direction:column;flex-direction:column;padding:10px 3px;border-radius:5px}.uppy-DashboardTab-btn::-moz-focus-inner{border:0}.uppy-DashboardTab-btn:hover{background-color:#f1f3f6}.uppy-DashboardTab-btn:active,.uppy-DashboardTab-btn:focus{background-color:#eceef2;outline:none}.uppy-DashboardTab-btn svg{margin-right:10px}.uppy-size--md .uppy-DashboardTab-btn svg{margin-right:0}.uppy-DashboardTab-btn svg{max-width:100%;max-height:100%;display:inline-block;vertical-align:text-top;overflow:hidden;transition:transform .15s ease-in-out}.uppy-DashboardTab-name{font-size:14px;font-weight:500}.uppy-size--md .uppy-DashboardTab-name{font-size:11px;line-height:14px;margin-top:8px;margin-bottom:0}.uppy-DashboardTab svg{width:18px;height:18px;vertical-align:middle}.uppy-size--md .uppy-DashboardTab svg{width:27px;height:27px}.uppy-Dashboard-input{width:.1px;height:.1px;opacity:0;overflow:hidden;position:absolute;z-index:-1}.uppy-DashboardContent-bar{-ms-flex-negative:0;flex-shrink:0;height:40px;width:100%;padding:0 10px;z-index:1004;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;position:relative;border-bottom:1px solid #eaeaea;background-color:#fafafa}.uppy-size--md .uppy-DashboardContent-bar{height:50px;padding:0 15px}.uppy-DashboardContent-title{position:absolute;top:0;left:0;right:0;text-align:center;font-size:12px;line-height:40px;font-weight:500;width:100%;max-width:170px;text-overflow:ellipsis;white-space:nowrap;overflow-x:hidden;margin:auto}.uppy-size--md .uppy-DashboardContent-title{font-size:14px;line-height:50px;max-width:300px}.uppy-DashboardContent-back{background:none;-webkit-appearance:none;font-family:inherit;font-size:inherit;line-height:1;border:0;color:inherit;border-radius:3px;font-size:12px;font-weight:400;cursor:pointer;color:#2275d7;padding:7px 6px;margin:0 0 0 -6px}.uppy-DashboardContent-back:focus{outline:none}.uppy-DashboardContent-back::-moz-focus-inner{border:0}.uppy-DashboardContent-back:hover{color:#1b5dab}.uppy-DashboardContent-back:focus{background-color:#eceef2}.uppy-size--md .uppy-DashboardContent-back{font-size:14px}.uppy-DashboardContent-addMore{background:none;-webkit-appearance:none;font-family:inherit;font-size:inherit;line-height:1;border:0;color:inherit;border-radius:3px;font-weight:500;cursor:pointer;color:#2275d7;width:29px;height:29px;padding:7px 8px;margin:0 -5px 0 0}.uppy-DashboardContent-addMore:focus{outline:none}.uppy-DashboardContent-addMore::-moz-focus-inner{border:0}.uppy-DashboardContent-addMore:hover{color:#1b5dab}.uppy-DashboardContent-addMore:focus{background-color:#eceef2}.uppy-size--md .uppy-DashboardContent-addMore{font-size:14px;width:auto;height:auto;margin-right:-8px}.uppy-DashboardContent-addMore svg{vertical-align:baseline;margin-right:4px}.uppy-size--md .uppy-DashboardContent-addMore svg{width:11px;height:11px}.uppy-DashboardContent-addMoreCaption{display:none}.uppy-size--md .uppy-DashboardContent-addMoreCaption{display:inline}.uppy-DashboardContent-panel{background-color:#f5f5f5;-ms-flex-direction:column;flex-direction:column;-ms-flex:1;flex:1}.uppy-Dashboard-AddFilesPanel,.uppy-DashboardContent-panel{position:absolute;top:0;bottom:0;left:0;right:0;overflow:hidden;z-index:1005;border-radius:5px;display:-ms-flexbox;display:flex}.uppy-Dashboard-AddFilesPanel{background:#fafafa;background:linear-gradient(0deg,#fafafa 35%,hsla(0,0%,98%,.85));box-shadow:0 0 10px 5px rgba(0,0,0,.15);-ms-flex-direction:column;flex-direction:column}.uppy-Dashboard--isAddFilesPanelVisible .uppy-Dashboard-files{filter:blur(2px)}.uppy-Dashboard-progress{position:absolute;bottom:0;left:0;width:100%;height:12%}.uppy-Dashboard-progressBarContainer.is-active{z-index:1004;position:absolute;top:0;left:0;width:100%;height:100%}.uppy-Dashboard-filesContainer{position:relative;overflow-y:hidden;margin:0;-ms-flex:1;flex:1}.uppy-Dashboard-filesContainer:after{content:"";display:table;clear:both}.uppy-Dashboard-files{margin:0;padding:0 0 10px;overflow-y:auto;-webkit-overflow-scrolling:touch;-ms-flex:1;flex:1}.uppy-size--md .uppy-Dashboard-files{padding-top:10px}.uppy-Dashboard-dropFilesHereHint{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;visibility:hidden;position:absolute;top:7px;right:7px;bottom:7px;left:7px;padding-top:90px;border:1px dashed #2275d7;border-radius:3px;z-index:2000;text-align:center;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='48' height='48' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M24 1v1C11.85 2 2 11.85 2 24s9.85 22 22 22 22-9.85 22-22S36.15 2 24 2V1zm0 0V0c13.254 0 24 10.746 24 24S37.254 48 24 48 0 37.254 0 24 10.746 0 24 0v1zm7.707 19.293a.999.999 0 1 1-1.414 1.414L25 16.414V34a1 1 0 1 1-2 0V16.414l-5.293 5.293a.999.999 0 1 1-1.414-1.414l7-7a.999.999 0 0 1 1.414 0l7 7z' fill='%232275D7'/%3E%3C/svg%3E");background-position:50% 50%;background-repeat:no-repeat;color:#707070;font-size:16px}.uppy-Dashboard.uppy-Dashboard--isDraggingOver .uppy-Dashboard-dropFilesHereHint{visibility:visible}.uppy-Dashboard.uppy-Dashboard--isDraggingOver .uppy-Dashboard-files,.uppy-Dashboard.uppy-Dashboard--isDraggingOver .uppy-Dashboard-progressindicators,.uppy-Dashboard.uppy-Dashboard--isDraggingOver .uppy-DashboardContent-bar{opacity:.15}.uppy-Dashboard.uppy-Dashboard--isDraggingOver .uppy-DashboardAddFiles{opacity:.03}.uppy-Dashboard-dropFilesTitle{max-width:300px;text-align:center;font-size:16px;line-height:1.35;font-weight:400;color:#525252;margin:auto;padding:0 15px}.uppy-size--md .uppy-Dashboard-dropFilesTitle{max-width:470px;font-size:27px}.uppy-Dashboard-note{font-size:14px;line-height:1.25;text-align:center;color:#757575;max-width:350px;margin:auto;padding:0 15px}.uppy-size--md .uppy-Dashboard-note{font-size:16px;line-height:1.35;max-width:600px}a.uppy-Dashboard-poweredBy{display:inline-block;text-align:center;font-size:11px;color:#939393;text-decoration:none;margin-top:8px}.uppy-Dashboard-poweredByIcon{stroke:#939393;fill:none;margin-left:1px;margin-right:1px;position:relative;top:1px;opacity:.9;vertical-align:text-top}.uppy-DashboardItem-previewIcon{width:25px;height:25px;z-index:100;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.uppy-size--md .uppy-DashboardItem-previewIcon{width:38px;height:38px}.uppy-DashboardItem-previewIcon svg{width:100%;height:100%}.uppy-DashboardItem-previewIconWrap{height:76px;max-height:75%;position:relative}.uppy-DashboardItem-previewIconBg{width:100%;height:100%;filter:drop-shadow(rgba(0,0,0,.1) 0 1px 1px)}.uppy-Dashboard-upload{position:relative;width:50px;height:50px}.uppy-size--md .uppy-Dashboard-upload{width:60px;height:60px}.uppy-Dashboard-upload .UppyIcon{position:relative;top:1px;width:50%}.uppy-Dashboard-uploadCount{position:absolute;top:-12px;right:-12px;background-color:#1bb240;color:#fff;border-radius:50%;width:16px;height:16px;line-height:16px;font-size:8px}.uppy-size--md .uppy-Dashboard-uploadCount{width:18px;height:18px;line-height:18px;font-size:9px}.uppy-DragDrop-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;border-radius:7px;background-color:#fff;cursor:pointer;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol;max-width:100%}.uppy-DragDrop-container:focus{outline:none;box-shadow:0 0 0 3px rgba(34,117,215,.4)}.uppy-DragDrop-container::-moz-focus-inner{border:0}.uppy-DragDrop-inner{margin:0;text-align:center;padding:80px 20px;line-height:1.4}.uppy-DragDrop-input{width:.1px;height:.1px;opacity:0;overflow:hidden;position:absolute;z-index:-1}.uppy-DragDrop-arrow{width:60px;height:60px;fill:#e0e0e0;margin-bottom:17px}.uppy-DragDrop--is-dragdrop-supported{border:2px dashed #adadad}.uppy-DragDrop--isDraggingOver{border:2px dashed #2275d7;background:#eaeaea}.uppy-DragDrop--isDraggingOver .uppy-DragDrop-arrow{fill:#939393}.uppy-DragDrop-label{display:block;cursor:pointer;font-size:1.15em;margin-bottom:5px}.uppy-DragDrop-note{font-size:1em;color:#adadad}.uppy-DragDrop-browse{color:#2275d7}.uppy-FileInput-container{margin-bottom:15px}.uppy-FileInput-btn{background:none;-webkit-appearance:none;font-family:inherit;font-size:inherit;line-height:1;margin:0;color:inherit;font-family:sans-serif;font-size:.85em;padding:10px 15px;color:#14457f;border:1px solid #14457f;border-radius:8px;cursor:pointer}.uppy-FileInput-btn:hover{background-color:#14457f;color:#fff}.uppy-ProgressBar{position:absolute;top:0;left:0;width:100%;height:3px;z-index:10000;transition:height .2s}.uppy-ProgressBar[aria-hidden=true]{height:0}.uppy-ProgressBar-inner{background-color:#2275d7;box-shadow:0 0 10px rgba(34,117,215,.7);height:100%;width:0;transition:width .4s ease}.uppy-ProgressBar-percentage{display:none;text-align:center;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);color:#fff}.uppy-Url{width:100%;height:100%;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;-ms-flex:1;flex:1}.uppy-Url-input{width:90%;max-width:650px;margin-bottom:15px}.uppy-size--md .uppy-Url-input{margin-bottom:20px}.uppy-Url-importButton{padding:13px 25px}.uppy-size--md .uppy-Url-importButton{padding:13px 30px}.uppy-Webcam-container{width:100%;height:100%;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;-ms-flex-direction:column;flex-direction:column}.uppy-Webcam-videoContainer{width:100%;-ms-flex:1;flex:1;-ms-flex-positive:1;flex-grow:1;overflow:hidden;background-color:#333;text-align:center;position:relative}.uppy-Webcam-video{max-width:100%;max-height:100%;position:absolute;top:0;right:0;bottom:0;left:0;margin:auto}.uppy-Webcam-video--mirrored{transform:scaleX(-1)}.uppy-Webcam-buttonContainer{width:100%;height:75px;border-top:1px solid #eaeaea;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;padding:0 20px}.uppy-Webcam-button{width:45px;height:45px;border-radius:50%;background-color:#e32437;color:#fff;cursor:pointer;transition:all .3s}.uppy-Webcam-button svg{width:30px;height:30px;max-width:100%;max-height:100%;display:inline-block;vertical-align:text-top;overflow:hidden;fill:currentColor}.uppy-size--md .uppy-Webcam-button{width:60px;height:60px}.uppy-Webcam-button:hover{background-color:#d31b2d}.uppy-Webcam-button:focus{outline:none;box-shadow:0 0 0 .2rem rgba(34,117,215,.5)}.uppy-Webcam-button--picture{margin-right:12px}.uppy-Webcam-permissons{padding:15px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-ms-flex-flow:column wrap;flex-flow:column wrap;height:100%;-ms-flex:1;flex:1}.uppy-Webcam-permissons p{max-width:450px;line-height:1.3}.uppy-Webcam-title{font-size:22px;line-height:1.35;font-weight:400;margin:0 0 5px;padding:0 15px;max-width:500px;text-align:center;color:#333}.uppy-Webcam-permissons p{text-align:center;line-height:1.45;color:#939393;margin:0}.uppy-Webcam-permissonsIcon svg{width:100px;height:75px;color:#bbb;margin-bottom:30px}
\ No newline at end of file diff --git a/public/js/app.js b/public/js/app.js index b8413e6..d26d3e8 100644 --- a/public/js/app.js +++ b/public/js/app.js @@ -1,108 +1,119 @@ /** * General Functions */ -function posf (f, a) { for (var i=0; i < a.length; i++) { if (f(a[i])) {return i;} } return -1; } -function apos (x, a) { return (typeof x == 'function') ? posf(x,a) : Array.prototype.indexOf.call(a,x); } -function arem (a, x) { var i = apos(x, a); if (i >= 0) { a.splice(i, 1); } return a; } -function afind (x, a) { var i = apos(x, a); return (i >= 0) ? a[i] : null; } -function addClass (el, cl) { if (el) { var a = el.className.split(' '); if (!afind(cl, a)) { a.unshift(cl); el.className = a.join(' '); } } } -function remClass (el, cl) { if (el) { var a = el.className.split(' '); arem(a, cl); el.className = a.join(' '); } } -function runOnce(action) { runOnce = function(){}; action(); } - -/* - * Context Menu functions - */ -function contextMenuHide(element) { - for (var i = 0; i < element.length; i++) { - element[i].checked = false; +function once(action) { once = function(){}; action(); } + +function contextMenuHide(elements) { + for (var i = 0; i < elements.length; i++) { + elements[i].checked = false; } } -function contextMenuHideOutside(element, event) { - for (var i = 0; i < element.length; i++) { - let notClicked = !element[i].contains(event.target); - if (notClicked && contextMenuInputs[i].checked === true) { contextMenuHide(contextMenuInputs); } +function contextMenuHideOutside(elements, targets, event) { + for (var i = 0; i < elements.length; i++) { + let notClicked = !elements[i].contains(event.target); + if (notClicked && targets[i].checked === true) { contextMenuHide(targets); } } } /** * Remove url query string and hash */ -var url = window.location.href.split('?')[0]; -window.history.replaceState(null, '', url); +var url = self.location.href.split('?')[0]; +self.history.replaceState(null, '', url); /** * Load events */ -var settings = { pager: {} }; - -window.addEventListener('DOMContentLoaded', function() { - if (history.scrollRestoration) { history.scrollRestoration = 'manual'; } - if (localStorage['settings']) { settings = JSON.parse(localStorage['settings']); } - var hash = document.getElementById(location.hash.slice(1)); - var hashInURL = window.location.href.indexOf("#") >= 0; - if (hashInURL && document.body.contains(hash)) { - settings['pager'][url] = window.pageYOffset; - localStorage['settings'] = JSON.stringify(settings); - hash.scrollIntoView(); - return; - } - if (settings['pager'][url] > 0) { window.scrollTo(0, settings['pager'][url]); return; } - settings['pager'][url] = window.pageYOffset; - localStorage['settings'] = JSON.stringify(settings); -}); - -/* - * Click events - */ -document.addEventListener('click', function(event) { - contextMenuHideOutside(contextMenus, event); -}); - -/* - * Touch start events - */ -document.addEventListener('touchstart', function(event) { - contextMenuHideOutside(contextMenus, event); -}); - -/** - * Scroll events - */ -var previousPosition = window.pageYOffset; -var navbar = document.getElementById("navbar"); -var navbarHeight = navbar.offsetHeight; -var scrolls = 0; - -var contextMenus = document.getElementsByTagName('context-menu-container'); -var contextMenuInputs = document.querySelectorAll('context-menu-container input'); - -window.addEventListener('scroll', function() { - - contextMenuHide(contextMenuInputs); - - var currentPosition = window.pageYOffset; - var velocity = previousPosition - currentPosition; +var pager = {}; + +self.addEventListener('DOMContentLoaded', function() { + (function () { + if (history.scrollRestoration) { history.scrollRestoration = 'manual'; } + if (localStorage['pager']) { pager = JSON.parse(localStorage['pager']); } + var hash = self.location.hash.slice(1) && document.getElementById(self.location.hash.slice(1)); + var hashInURL = self.location.href.indexOf("#") >= 0; + if (hashInURL && document.body.contains(hash)) { + pager[url] = self.pageYOffset; + localStorage['pager'] = JSON.stringify(pager); + return hash.scrollIntoView(); + } + if (pager[url] > 0) { return self.scrollTo(0, pager[url]); } + pager[url] = self.pageYOffset; + localStorage['pager'] = JSON.stringify(pager); + })(); + + (function() { + var imageAnchors = document.querySelectorAll("a"); + for(var i = 0; i < imageAnchors.length; i++){ + if (imageAnchors[i].firstElementChild) { + if (imageAnchors[i].firstElementChild.tagName === "IMG") { + imageAnchors[i].removeAttribute("href"); + } + } + } + })(); + + /** + * Scroll events + */ + var scrolls = 0; + var previousPosition = self.pageYOffset; + var navbar = document.getElementById("navbar"); + var navbarHeight = navbar.offsetHeight; + + var contextMenus = document.getElementsByTagName('context-menu-container'); + var contextMenuInputs = document.querySelectorAll('context-menu-container input'); + + self.addEventListener('scroll', function() { + contextMenuHide(contextMenuInputs); + + var currentPosition = self.pageYOffset; + var velocity = previousPosition - currentPosition; + + pager[url] = currentPosition; + localStorage['pager'] = JSON.stringify(pager); + + if (scrolls > 3) { + if (velocity > 75 || currentPosition < navbarHeight) { + navbar.classList.remove('hide'); + } else if (velocity < -25) { + navbar.classList.add('hide'); + } else if (currentPosition > navbarHeight) { + once(function () { navbar.classList.add('hide'); }); + } + } + previousPosition = currentPosition; + scrolls++; + }); - settings['pager'][url] = currentPosition; - localStorage['settings'] = JSON.stringify(settings); + /* + * Click events + */ + self.addEventListener('click', function(event) { + contextMenuHideOutside(contextMenus, contextMenuInputs, event); + }); - if (scrolls > 3) { - if (velocity > 75 || currentPosition < navbarHeight) { - remClass(navbar, 'hide'); - } else if (velocity < -25) { - addClass(navbar, 'hide'); - } else if (currentPosition > navbarHeight) { - runOnce(function () { addClass(navbar, 'hide'); }); - } - } + /* + * Touch start events + */ + self.addEventListener('touchstart', function(event) { + contextMenuHideOutside(contextMenus, contextMenuInputs, event); + }); - previousPosition = currentPosition; - scrolls++; -}); + /* + * Hash change events + */ + self.addEventListener("hashchange", function () { + document.getElementById(self.location.hash.slice(1)).scrollIntoView(); + }); -window.addEventListener("hashchange", function () { - document.getElementById(location.hash.slice(1)).scrollIntoView(); + /** + * Activate Medium Zoom + */ + var imageZoom = mediumZoom('[data-image-zoom]'); + imageZoom.on('open', function() { navbar.classList.add('hide'); }); + imageZoom.on('close', function() { navbar.classList.remove('hide'); }); }); /** @@ -594,248 +605,328 @@ window.addEventListener("hashchange", function () { return mediumZoom; }); - -/** - * Activate Medium Zoom - */ -var imageZoom = mediumZoom('[data-image-zoom]'); -imageZoom.on('open', function() { addClass(navbar, 'hide'); }); -imageZoom.on('close', function() { remClass(navbar, 'hide'); }); - - -/** - * Instant Page v3.0.0 - (C) 2019 Alexandre Dieulot - https://instant.page/license - */ -let mouseoverTimer; -let lastTouchTimestamp; -const prefetches = new Set(); -const prefetchElement = document.createElement('link'); -const isSupported = prefetchElement.relList && prefetchElement.relList.supports && prefetchElement.relList.supports('prefetch') - && window.IntersectionObserver && 'isIntersecting' in IntersectionObserverEntry.prototype; -const allowQueryString = 'instantAllowQueryString' in document.body.dataset; -const allowExternalLinks = 'instantAllowExternalLinks' in document.body.dataset; -const useWhitelist = 'instantWhitelist' in document.body.dataset; - -let delayOnHover = 65; -let useMousedown = false; -let useMousedownOnly = false; -let useViewport = false; -if ('instantIntensity' in document.body.dataset) { - const intensity = document.body.dataset.instantIntensity; - - if (intensity.substr(0, 'mousedown'.length) == 'mousedown') { - useMousedown = true; - if (intensity == 'mousedown-only') { - useMousedownOnly = true; - } - } - else if (intensity.substr(0, 'viewport'.length) == 'viewport') { - if (!(navigator.connection && (navigator.connection.saveData || navigator.connection.effectiveType.includes('2g')))) { - if (intensity == "viewport") { - /* Biggest iPhone resolution (which we want): 414 × 896 = 370944 +(function () { + self.addEventListener("DOMContentLoaded", function () { + /*! instant.page v5.1.0 - (C) 2019-2020 Alexandre Dieulot - https://instant.page/license */ + + let mouseoverTimer; + let lastTouchTimestamp; + const prefetches = new Set(); + const prefetchElement = document.createElement("link"); + const isSupported = prefetchElement.relList && + prefetchElement.relList.supports && + prefetchElement.relList.supports("prefetch") && + window.IntersectionObserver && + "isIntersecting" in IntersectionObserverEntry.prototype; + const allowQueryString = "instantAllowQueryString" in document.body.dataset; + const allowExternalLinks = "instantAllowExternalLinks" in + document.body.dataset; + const useWhitelist = "instantWhitelist" in document.body.dataset; + const mousedownShortcut = "instantMousedownShortcut" in + document.body.dataset; + const DELAY_TO_NOT_BE_CONSIDERED_A_TOUCH_INITIATED_ACTION = 1111; + + let delayOnHover = 65; + let useMousedown = false; + let useMousedownOnly = false; + let useViewport = false; + + if ("instantIntensity" in document.body.dataset) { + const intensity = document.body.dataset.instantIntensity; + + if (intensity.substr(0, "mousedown".length) == "mousedown") { + useMousedown = true; + if (intensity == "mousedown-only") { + useMousedownOnly = true; + } + } else if (intensity.substr(0, "viewport".length) == "viewport") { + if ( + !(navigator.connection && + (navigator.connection.saveData || + (navigator.connection.effectiveType && + navigator.connection.effectiveType.includes("2g")))) + ) { + if (intensity == "viewport") { + /* Biggest iPhone resolution (which we want): 414 × 896 = 370944 * Small 7" tablet resolution (which we don’t want): 600 × 1024 = 614400 * Note that the viewport (which we check here) is smaller than the resolution due to the UI’s chrome */ - if (document.documentElement.clientWidth * document.documentElement.clientHeight < 450000) { - useViewport = true; + if ( + document.documentElement.clientWidth * + document.documentElement.clientHeight < 450000 + ) { + useViewport = true; + } + } else if (intensity == "viewport-all") { + useViewport = true; + } + } + } else { + const milliseconds = parseInt(intensity); + if (!isNaN(milliseconds)) { + delayOnHover = milliseconds; } } - else if (intensity == "viewport-all") { - useViewport = true; - } - } - } - else { - const milliseconds = parseInt(intensity); - if (!isNaN(milliseconds)) { - delayOnHover = milliseconds; } - } -} -if (isSupported) { - const eventListenersOptions = { - capture: true, - passive: true, - }; + if (isSupported) { + const eventListenersOptions = { + capture: true, + passive: true, + }; - if (!useMousedownOnly) { - document.addEventListener('touchstart', touchstartListener, eventListenersOptions); - } + if (!useMousedownOnly) { + document.addEventListener( + "touchstart", + touchstartListener, + eventListenersOptions, + ); + } - if (!useMousedown) { - document.addEventListener('mouseover', mouseoverListener, eventListenersOptions); - } - else { - document.addEventListener('mousedown', mousedownListener, eventListenersOptions); - } + if (!useMousedown) { + document.addEventListener( + "mouseover", + mouseoverListener, + eventListenersOptions, + ); + } else if (!mousedownShortcut) { + document.addEventListener( + "mousedown", + mousedownListener, + eventListenersOptions, + ); + } + + if (mousedownShortcut) { + document.addEventListener( + "mousedown", + mousedownShortcutListener, + eventListenersOptions, + ); + } + + if (useViewport) { + let triggeringFunction; + if (window.requestIdleCallback) { + triggeringFunction = function (callback) { + requestIdleCallback(callback, { + timeout: 1500, + }); + }; + } else { + triggeringFunction = function (callback) { + callback(); + }; + } - if (useViewport) { - let triggeringFunction; - if (window.requestIdleCallback) { - triggeringFunction = function(callback) { - requestIdleCallback(callback, { - timeout: 1500, + triggeringFunction(function () { + const intersectionObserver = new IntersectionObserver( + function (entries) { + entries.forEach(function (entry) { + if (entry.isIntersecting) { + const linkElement = entry.target; + intersectionObserver.unobserve(linkElement); + preload(linkElement.href); + } + }); + }, + ); + + document.querySelectorAll("a").forEach(function (linkElement) { + if (isPreloadable(linkElement)) { + intersectionObserver.observe(linkElement); + } + }); }); - }; + } } - else { - triggeringFunction = function(callback) { - callback(); - }; + + function touchstartListener(event) { + /* Chrome on Android calls mouseover before touchcancel so `lastTouchTimestamp` + * must be assigned on touchstart to be measured on mouseover. */ + lastTouchTimestamp = performance.now(); + + const linkElement = event.target.closest("a"); + + if (!isPreloadable(linkElement)) { + return; + } + + preload(linkElement.href); } - triggeringFunction(function() { - const intersectionObserver = new IntersectionObserver(function(entries) { - entries.forEach(function(entry) { - if (entry.isIntersecting) { - const linkElement = entry.target; - intersectionObserver.unobserve(linkElement); - preload(linkElement.href); - } - }); - }); + function mouseoverListener(event) { + if ( + performance.now() - lastTouchTimestamp < + DELAY_TO_NOT_BE_CONSIDERED_A_TOUCH_INITIATED_ACTION + ) { + return; + } - document.querySelectorAll('a').forEach(function(linkElement) { - if (isPreloadable(linkElement)) { - intersectionObserver.observe(linkElement); - } - }); - }); - } -} + const linkElement = event.target.closest("a"); -function touchstartListener(event) { - /* Chrome on Android calls mouseover before touchcancel so `lastTouchTimestamp` - * must be assigned on touchstart to be measured on mouseover. */ - lastTouchTimestamp = performance.now(); + if (!isPreloadable(linkElement)) { + return; + } - const linkElement = event.target.closest('a'); + linkElement.addEventListener("mouseout", mouseoutListener, { + passive: true, + }); - if (!isPreloadable(linkElement)) { - return; - } + mouseoverTimer = setTimeout(function () { + preload(linkElement.href); + mouseoverTimer = undefined; + }, delayOnHover); + } - preload(linkElement.href); -} + function mousedownListener(event) { + const linkElement = event.target.closest("a"); -function mouseoverListener(event) { - if (performance.now() - lastTouchTimestamp < 1100) { - return; - } + if (!isPreloadable(linkElement)) { + return; + } - const linkElement = event.target.closest('a'); + preload(linkElement.href); + } - if (!isPreloadable(linkElement)) { - return; - } + function mouseoutListener(event) { + if ( + event.relatedTarget && + event.target.closest("a") == event.relatedTarget.closest("a") + ) { + return; + } - linkElement.addEventListener('mouseout', mouseoutListener, {passive: true}); + if (mouseoverTimer) { + clearTimeout(mouseoverTimer); + mouseoverTimer = undefined; + } + } - mouseoverTimer = setTimeout(function() { - preload(linkElement.href); - mouseoverTimer = undefined; - }, delayOnHover); -} + function mousedownShortcutListener(event) { + if ( + performance.now() - lastTouchTimestamp < + DELAY_TO_NOT_BE_CONSIDERED_A_TOUCH_INITIATED_ACTION + ) { + return; + } -function mousedownListener(event) { - const linkElement = event.target.closest('a'); + const linkElement = event.target.closest("a"); - if (!isPreloadable(linkElement)) { - return; - } + if (event.which > 1 || event.metaKey || event.ctrlKey) { + return; + } - preload(linkElement.href); -} + if (!linkElement) { + return; + } -function mouseoutListener(event) { - if (event.relatedTarget && event.target.closest('a') == event.relatedTarget.closest('a')) { - return; - } + linkElement.addEventListener("click", function (event) { + if (event.detail == 1337) { + return; + } - if (mouseoverTimer) { - clearTimeout(mouseoverTimer); - mouseoverTimer = undefined; - } -} + event.preventDefault(); + }, { capture: true, passive: false, once: true }); -function isPreloadable(linkElement) { - if (!linkElement || !linkElement.href) { - return; - } + const customEvent = new MouseEvent("click", { + view: window, + bubbles: true, + cancelable: false, + detail: 1337, + }); + linkElement.dispatchEvent(customEvent); + } - if (useWhitelist && !('instant' in linkElement.dataset)) { - return; - } + function isPreloadable(linkElement) { + if (!linkElement || !linkElement.href) { + return; + } - if (!allowExternalLinks && linkElement.origin != location.origin && !('instant' in linkElement.dataset)) { - return; - } + if (useWhitelist && !("instant" in linkElement.dataset)) { + return; + } - if (!['http:', 'https:'].includes(linkElement.protocol)) { - return; - } + if ( + !allowExternalLinks && linkElement.origin != location.origin && + !("instant" in linkElement.dataset) + ) { + return; + } - if (linkElement.protocol == 'http:' && location.protocol == 'https:') { - return; - } + if (!["http:", "https:"].includes(linkElement.protocol)) { + return; + } - if (!allowQueryString && linkElement.search && !('instant' in linkElement.dataset)) { - return; - } + if (linkElement.protocol == "http:" && location.protocol == "https:") { + return; + } - if (linkElement.hash && linkElement.pathname + linkElement.search == location.pathname + location.search) { - return; - } + if ( + !allowQueryString && linkElement.search && + !("instant" in linkElement.dataset) + ) { + return; + } - if ('noInstant' in linkElement.dataset) { - return; - } + if ( + linkElement.hash && + linkElement.pathname + linkElement.search == + location.pathname + location.search + ) { + return; + } - return true; -} + if ("noInstant" in linkElement.dataset) { + return; + } -function preload(url) { - if (prefetches.has(url)) { - return; - } + return true; + } + + function preload(url) { + if (prefetches.has(url)) { + return; + } - const prefetcher = document.createElement('link'); - prefetcher.rel = 'prefetch'; - prefetcher.href = url; - document.head.appendChild(prefetcher); + const prefetcher = document.createElement("link"); + prefetcher.rel = "prefetch"; + prefetcher.href = url; + document.head.appendChild(prefetcher); - prefetches.add(url); -} + prefetches.add(url); + } + }); +})(); /** * Dictionary Access Copyright (C) 2006, Paul Lutus https://arachnoid.com/javascript/dictionary_access.js GPLv2+ */ (function () { - const options = - "targetWindow,width=700,height=500,toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes"; + self.addEventListener("DOMContentLoaded", function () { + const options = "targetWindow,width=700,height=500,toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes"; - self.addEventListener("keydown", function (event) { - if (event.repeat && event.key === "d") { - selection(dictionary); - } - }); + self.addEventListener("keydown", function (event) { + if (event.repeat && event.key === "d") { + selection(dictionary); + } + }); - function selection(execute) { - let phrase = "" + window.getSelection(); - phrase = phrase.replace(/[!.:?,;"]/g, ""); - phrase = phrase.replace(/^\s*(\S*?)\s*$/g, "$1"); - if (phrase && phrase > "" && phrase.length > 1) { - execute(phrase); + function selection(execute) { + let phrase = "" + window.getSelection(); + phrase = phrase.replace(/[!.:?,;"]/g, ""); + phrase = phrase.replace(/^\s*(\S*?)\s*$/g, "$1"); + if (phrase && phrase > "" && phrase.length > 1) { + execute(phrase); + } } - } - function dictionary(word) { - window.open( - "https://www.merriam-webster.com/dictionary/" + - encodeURIComponent(word), - "Definitions", - options, - ); - } + function dictionary(word) { + window.open( + "https://www.merriam-webster.com/dictionary/" + encodeURIComponent(word), + "Definitions", + options, + ); + } + }); })(); diff --git a/public/js/htm.3.1.1.min.mjs b/public/js/htm.3.1.1.min.mjs new file mode 100644 index 0000000..e24f87b --- /dev/null +++ b/public/js/htm.3.1.1.min.mjs @@ -0,0 +1 @@ +var e,n,_,t,o,r,u,l={},i=[],c=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function s(e,n){for(var _ in n)e[_]=n[_];return e}function f(e){var n=e.parentNode;n&&n.removeChild(e)}function a(n,_,t){var o,r,u,l={};for(u in _)"key"==u?o=_[u]:"ref"==u?r=_[u]:l[u]=_[u];if(arguments.length>2&&(l.children=arguments.length>3?e.call(arguments,2):t),"function"==typeof n&&null!=n.defaultProps)for(u in n.defaultProps)void 0===l[u]&&(l[u]=n.defaultProps[u]);return p(n,l,o,r,null)}function p(e,t,o,r,u){var l={type:e,props:t,key:o,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==u?++_:u};return null!=n.vnode&&n.vnode(l),l}function h(e){return e.children}function d(e,n){this.props=e,this.context=n}function v(e,n){if(null==n)return e.__?v(e.__,e.__.__k.indexOf(e)+1):null;for(var _;n<e.__k.length;n++)if(null!=(_=e.__k[n])&&null!=_.__e)return _.__e;return"function"==typeof e.type?v(e):null}function y(e){var n,_;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,n=0;n<e.__k.length;n++)if(null!=(_=e.__k[n])&&null!=_.__e){e.__e=e.__c.base=_.__e;break}return y(e)}}function m(e){(!e.__d&&(e.__d=!0)&&t.push(e)&&!g.__r++||r!==n.debounceRendering)&&((r=n.debounceRendering)||o)(g)}function g(){for(var e;g.__r=t.length;)e=t.sort(function(e,n){return e.__v.__b-n.__v.__b}),t=[],e.some(function(e){var n,_,t,o,r,u;e.__d&&(r=(o=(n=e).__v).__e,(u=n.__P)&&(_=[],(t=s({},o)).__v=o.__v+1,P(u,o,t,n.__n,void 0!==u.ownerSVGElement,null!=o.__h?[r]:null,_,null==r?v(o):r,o.__h),D(_,o),o.__e!=r&&y(o)))})}function k(e,n,_,t,o,r,u,c,s,f){var a,d,y,m,g,k,x,H=t&&t.__k||i,E=H.length;for(_.__k=[],a=0;a<n.length;a++)if(null!=(m=_.__k[a]=null==(m=n[a])||"boolean"==typeof m?null:"string"==typeof m||"number"==typeof m||"bigint"==typeof m?p(null,m,null,null,m):Array.isArray(m)?p(h,{children:m},null,null,null):m.__b>0?p(m.type,m.props,m.key,null,m.__v):m)){if(m.__=_,m.__b=_.__b+1,null===(y=H[a])||y&&m.key==y.key&&m.type===y.type)H[a]=void 0;else for(d=0;d<E;d++){if((y=H[d])&&m.key==y.key&&m.type===y.type){H[d]=void 0;break}y=null}P(e,m,y=y||l,o,r,u,c,s,f),g=m.__e,(d=m.ref)&&y.ref!=d&&(x||(x=[]),y.ref&&x.push(y.ref,null,m),x.push(d,m.__c||g,m)),null!=g?(null==k&&(k=g),"function"==typeof m.type&&null!=m.__k&&m.__k===y.__k?m.__d=s=b(m,s,e):s=C(e,m,y,H,g,s),f||"option"!==_.type?"function"==typeof _.type&&(_.__d=s):e.value=""):s&&y.__e==s&&s.parentNode!=e&&(s=v(y))}for(_.__e=k,a=E;a--;)null!=H[a]&&("function"==typeof _.type&&null!=H[a].__e&&H[a].__e==_.__d&&(_.__d=v(t,a+1)),U(H[a],H[a]));if(x)for(a=0;a<x.length;a++)T(x[a],x[++a],x[++a])}function b(e,n,_){var t,o;for(t=0;t<e.__k.length;t++)(o=e.__k[t])&&(o.__=e,n="function"==typeof o.type?b(o,n,_):C(_,o,o,e.__k,o.__e,n));return n}function C(e,n,_,t,o,r){var u,l,i;if(void 0!==n.__d)u=n.__d,n.__d=void 0;else if(null==_||o!=r||null==o.parentNode)e:if(null==r||r.parentNode!==e)e.appendChild(o),u=null;else{for(l=r,i=0;(l=l.nextSibling)&&i<t.length;i+=2)if(l==o)break e;e.insertBefore(o,r),u=r}return void 0!==u?u:o.nextSibling}function x(e,n,_){"-"===n[0]?e.setProperty(n,_):e[n]=null==_?"":"number"!=typeof _||c.test(n)?_:_+"px"}function H(e,n,_,t,o){var r;e:if("style"===n)if("string"==typeof _)e.style.cssText=_;else{if("string"==typeof t&&(e.style.cssText=t=""),t)for(n in t)_&&n in _||x(e.style,n,"");if(_)for(n in _)t&&_[n]===t[n]||x(e.style,n,_[n])}else if("o"===n[0]&&"n"===n[1])r=n!==(n=n.replace(/Capture$/,"")),n=n.toLowerCase()in e?n.toLowerCase().slice(2):n.slice(2),e.l||(e.l={}),e.l[n+r]=_,_?t||e.addEventListener(n,r?S:E,r):e.removeEventListener(n,r?S:E,r);else if("dangerouslySetInnerHTML"!==n){if(o)n=n.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if("href"!==n&&"list"!==n&&"form"!==n&&"tabIndex"!==n&&"download"!==n&&n in e)try{e[n]=null==_?"":_;break e}catch(e){}"function"==typeof _||(null!=_&&(!1!==_||"a"===n[0]&&"r"===n[1])?e.setAttribute(n,_):e.removeAttribute(n))}}function E(e){this.l[e.type+!1](n.event?n.event(e):e)}function S(e){this.l[e.type+!0](n.event?n.event(e):e)}function P(e,_,t,o,r,u,l,i,c){var f,a,p,v,y,m,g,b,C,x,H,E=_.type;if(void 0!==_.constructor)return null;null!=t.__h&&(c=t.__h,i=_.__e=t.__e,_.__h=null,u=[i]),(f=n.__b)&&f(_);try{e:if("function"==typeof E){if(b=_.props,C=(f=E.contextType)&&o[f.__c],x=f?C?C.props.value:f.__:o,t.__c?g=(a=_.__c=t.__c).__=a.__E:("prototype"in E&&E.prototype.render?_.__c=a=new E(b,x):(_.__c=a=new d(b,x),a.constructor=E,a.render=A),C&&C.sub(a),a.props=b,a.state||(a.state={}),a.context=x,a.__n=o,p=a.__d=!0,a.__h=[]),null==a.__s&&(a.__s=a.state),null!=E.getDerivedStateFromProps&&(a.__s==a.state&&(a.__s=s({},a.__s)),s(a.__s,E.getDerivedStateFromProps(b,a.__s))),v=a.props,y=a.state,p)null==E.getDerivedStateFromProps&&null!=a.componentWillMount&&a.componentWillMount(),null!=a.componentDidMount&&a.__h.push(a.componentDidMount);else{if(null==E.getDerivedStateFromProps&&b!==v&&null!=a.componentWillReceiveProps&&a.componentWillReceiveProps(b,x),!a.__e&&null!=a.shouldComponentUpdate&&!1===a.shouldComponentUpdate(b,a.__s,x)||_.__v===t.__v){a.props=b,a.state=a.__s,_.__v!==t.__v&&(a.__d=!1),a.__v=_,_.__e=t.__e,_.__k=t.__k,_.__k.forEach(function(e){e&&(e.__=_)}),a.__h.length&&l.push(a);break e}null!=a.componentWillUpdate&&a.componentWillUpdate(b,a.__s,x),null!=a.componentDidUpdate&&a.__h.push(function(){a.componentDidUpdate(v,y,m)})}a.context=x,a.props=b,a.state=a.__s,(f=n.__r)&&f(_),a.__d=!1,a.__v=_,a.__P=e,f=a.render(a.props,a.state,a.context),a.state=a.__s,null!=a.getChildContext&&(o=s(s({},o),a.getChildContext())),p||null==a.getSnapshotBeforeUpdate||(m=a.getSnapshotBeforeUpdate(v,y)),H=null!=f&&f.type===h&&null==f.key?f.props.children:f,k(e,Array.isArray(H)?H:[H],_,t,o,r,u,l,i,c),a.base=_.__e,_.__h=null,a.__h.length&&l.push(a),g&&(a.__E=a.__=null),a.__e=!1}else null==u&&_.__v===t.__v?(_.__k=t.__k,_.__e=t.__e):_.__e=w(t.__e,_,t,o,r,u,l,c);(f=n.diffed)&&f(_)}catch(e){_.__v=null,(c||null!=u)&&(_.__e=i,_.__h=!!c,u[u.indexOf(i)]=null),n.__e(e,_,t)}}function D(e,_){n.__c&&n.__c(_,e),e.some(function(_){try{e=_.__h,_.__h=[],e.some(function(e){e.call(_)})}catch(e){n.__e(e,_.__v)}})}function w(n,_,t,o,r,u,i,c){var s,a,p,h=t.props,d=_.props,y=_.type,m=0;if("svg"===y&&(r=!0),null!=u)for(;m<u.length;m++)if((s=u[m])&&(s===n||(y?s.localName==y:3==s.nodeType))){n=s,u[m]=null;break}if(null==n){if(null===y)return document.createTextNode(d);n=r?document.createElementNS("http://www.w3.org/2000/svg",y):document.createElement(y,d.is&&d),u=null,c=!1}if(null===y)h===d||c&&n.data===d||(n.data=d);else{if(u=u&&e.call(n.childNodes),a=(h=t.props||l).dangerouslySetInnerHTML,p=d.dangerouslySetInnerHTML,!c){if(null!=u)for(h={},m=0;m<n.attributes.length;m++)h[n.attributes[m].name]=n.attributes[m].value;(p||a)&&(p&&(a&&p.__html==a.__html||p.__html===n.innerHTML)||(n.innerHTML=p&&p.__html||""))}if(function(e,n,_,t,o){var r;for(r in _)"children"===r||"key"===r||r in n||H(e,r,null,_[r],t);for(r in n)o&&"function"!=typeof n[r]||"children"===r||"key"===r||"value"===r||"checked"===r||_[r]===n[r]||H(e,r,n[r],_[r],t)}(n,d,h,r,c),p)_.__k=[];else if(m=_.props.children,k(n,Array.isArray(m)?m:[m],_,t,o,r&&"foreignObject"!==y,u,i,u?u[0]:t.__k&&v(t,0),c),null!=u)for(m=u.length;m--;)null!=u[m]&&f(u[m]);c||("value"in d&&void 0!==(m=d.value)&&(m!==n.value||"progress"===y&&!m)&&H(n,"value",m,h.value,!1),"checked"in d&&void 0!==(m=d.checked)&&m!==n.checked&&H(n,"checked",m,h.checked,!1))}return n}function T(e,_,t){try{"function"==typeof e?e(_):e.current=_}catch(e){n.__e(e,t)}}function U(e,_,t){var o,r;if(n.unmount&&n.unmount(e),(o=e.ref)&&(o.current&&o.current!==e.__e||T(o,null,_)),null!=(o=e.__c)){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(e){n.__e(e,_)}o.base=o.__P=null}if(o=e.__k)for(r=0;r<o.length;r++)o[r]&&U(o[r],_,"function"!=typeof e.type);t||null==e.__e||f(e.__e),e.__e=e.__d=void 0}function A(e,n,_){return this.constructor(e,_)}function M(_,t,o){var r,u,i;n.__&&n.__(_,t),u=(r="function"==typeof o)?null:o&&o.__k||t.__k,i=[],P(t,_=(!r&&o||t).__k=a(h,null,[_]),u||l,l,void 0!==t.ownerSVGElement,!r&&o?[o]:u?null:t.firstChild?e.call(t.childNodes):null,i,!r&&o?o:u?u.__e:t.firstChild,r),D(i,_)}function F(e,n){var _={__c:n="__cC"+u++,__:e,Consumer:function(e,n){return e.children(n)},Provider:function(e){var _,t;return this.getChildContext||(_=[],(t={})[n]=this,this.getChildContext=function(){return t},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&_.some(m)},this.sub=function(e){_.push(e);var n=e.componentWillUnmount;e.componentWillUnmount=function(){_.splice(_.indexOf(e),1),n&&n.call(e)}}),e.children}};return _.Provider.__=_.Consumer.contextType=_}e=i.slice,n={__e:function(e,n){for(var _,t,o;n=n.__;)if((_=n.__c)&&!_.__)try{if((t=_.constructor)&&null!=t.getDerivedStateFromError&&(_.setState(t.getDerivedStateFromError(e)),o=_.__d),null!=_.componentDidCatch&&(_.componentDidCatch(e),o=_.__d),o)return _.__E=_}catch(n){e=n}throw e}},_=0,d.prototype.setState=function(e,n){var _;_=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=s({},this.state),"function"==typeof e&&(e=e(s({},_),this.props)),e&&s(_,e),null!=e&&this.__v&&(n&&this.__h.push(n),m(this))},d.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),m(this))},d.prototype.render=h,t=[],o="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,g.__r=0,u=0;var L,N,W,R=0,I=[],O=n.__b,V=n.__r,q=n.diffed,B=n.__c,$=n.unmount;function j(e,_){n.__h&&n.__h(N,e,R||_),R=0;var t=N.__H||(N.__H={__:[],__h:[]});return e>=t.__.length&&t.__.push({}),t.__[e]}function G(e){return R=1,z(ie,e)}function z(e,n,_){var t=j(L++,2);return t.t=e,t.__c||(t.__=[_?_(n):ie(void 0,n),function(e){var n=t.t(t.__[0],e);t.__[0]!==n&&(t.__=[n,t.__[1]],t.__c.setState({}))}],t.__c=N),t.__}function J(e,_){var t=j(L++,3);!n.__s&&le(t.__H,_)&&(t.__=e,t.__H=_,N.__H.__h.push(t))}function K(e,_){var t=j(L++,4);!n.__s&&le(t.__H,_)&&(t.__=e,t.__H=_,N.__h.push(t))}function Q(e){return R=5,Y(function(){return{current:e}},[])}function X(e,n,_){R=6,K(function(){"function"==typeof e?e(n()):e&&(e.current=n())},null==_?_:_.concat(e))}function Y(e,n){var _=j(L++,7);return le(_.__H,n)&&(_.__=e(),_.__H=n,_.__h=e),_.__}function Z(e,n){return R=8,Y(function(){return e},n)}function ee(e){var n=N.context[e.__c],_=j(L++,9);return _.c=e,n?(null==_.__&&(_.__=!0,n.sub(N)),n.props.value):e.__}function ne(e,_){n.useDebugValue&&n.useDebugValue(_?_(e):e)}function _e(e){var n=j(L++,10),_=G();return n.__=e,N.componentDidCatch||(N.componentDidCatch=function(e){n.__&&n.__(e),_[1](e)}),[_[0],function(){_[1](void 0)}]}function te(){I.forEach(function(e){if(e.__P)try{e.__H.__h.forEach(re),e.__H.__h.forEach(ue),e.__H.__h=[]}catch(_){e.__H.__h=[],n.__e(_,e.__v)}}),I=[]}n.__b=function(e){N=null,O&&O(e)},n.__r=function(e){V&&V(e),L=0;var n=(N=e.__c).__H;n&&(n.__h.forEach(re),n.__h.forEach(ue),n.__h=[])},n.diffed=function(e){q&&q(e);var _=e.__c;_&&_.__H&&_.__H.__h.length&&(1!==I.push(_)&&W===n.requestAnimationFrame||((W=n.requestAnimationFrame)||function(e){var n,_=function(){clearTimeout(t),oe&&cancelAnimationFrame(n),setTimeout(e)},t=setTimeout(_,100);oe&&(n=requestAnimationFrame(_))})(te)),N=void 0},n.__c=function(e,_){_.some(function(e){try{e.__h.forEach(re),e.__h=e.__h.filter(function(e){return!e.__||ue(e)})}catch(t){_.some(function(e){e.__h&&(e.__h=[])}),_=[],n.__e(t,e.__v)}}),B&&B(e,_)},n.unmount=function(e){$&&$(e);var _=e.__c;if(_&&_.__H)try{_.__H.__.forEach(re)}catch(e){n.__e(e,_.__v)}};var oe="function"==typeof requestAnimationFrame;function re(e){var n=N;"function"==typeof e.__c&&e.__c(),N=n}function ue(e){var n=N;e.__c=e.__(),N=n}function le(e,n){return!e||e.length!==n.length||n.some(function(n,_){return n!==e[_]})}function ie(e,n){return"function"==typeof n?n(e):n}var ce=function(e,n,_,t){var o;n[0]=0;for(var r=1;r<n.length;r++){var u=n[r++],l=n[r]?(n[0]|=u?1:2,_[n[r++]]):n[++r];3===u?t[0]=l:4===u?t[1]=Object.assign(t[1]||{},l):5===u?(t[1]=t[1]||{})[n[++r]]=l:6===u?t[1][n[++r]]+=l+"":u?(o=e.apply(l,ce(e,l,_,["",null])),t.push(o),l[0]?n[0]|=2:(n[r-2]=0,n[r]=o)):t.push(l)}return t},se=new Map,fe=function(e){var n=se.get(this);return n||(n=new Map,se.set(this,n)),(n=ce(this,n.get(e)||(n.set(e,n=function(e){for(var n,_,t=1,o="",r="",u=[0],l=function(e){1===t&&(e||(o=o.replace(/^\s*\n\s*|\s*\n\s*$/g,"")))?u.push(0,e,o):3===t&&(e||o)?(u.push(3,e,o),t=2):2===t&&"..."===o&&e?u.push(4,e,0):2===t&&o&&!e?u.push(5,0,!0,o):t>=5&&((o||!e&&5===t)&&(u.push(t,0,o,_),t=6),e&&(u.push(t,e,0,_),t=6)),o=""},i=0;i<e.length;i++){i&&(1===t&&l(),l(i));for(var c=0;c<e[i].length;c++)n=e[i][c],1===t?"<"===n?(l(),u=[u],t=3):o+=n:4===t?"--"===o&&">"===n?(t=1,o=""):o=n+o[0]:r?n===r?r="":o+=n:'"'===n||"'"===n?r=n:">"===n?(l(),t=1):t&&("="===n?(t=5,_=o,o=""):"/"===n&&(t<5||">"===e[i][c+1])?(l(),3===t&&(u=u[0]),t=u,(u=u[0]).push(2,0,t),t=0):" "===n||"\t"===n||"\n"===n||"\r"===n?(l(),t=2):o+=n),3===t&&"!--"===o&&(t=4,u=u[0])}return l(),u}(e)),n),arguments,[])).length>1?n:n[0]}.bind(a);export{a as h,fe as html,M as render,d as Component,F as createContext,G as useState,z as useReducer,J as useEffect,K as useLayoutEffect,Q as useRef,X as useImperativeHandle,Y as useMemo,Z as useCallback,ee as useContext,ne as useDebugValue,_e as useErrorBoundary}; diff --git a/public/js/upload.js b/public/js/upload.js new file mode 100644 index 0000000..ad48e5f --- /dev/null +++ b/public/js/upload.js @@ -0,0 +1,38 @@ +import { html, Component, render } from '/js/htm.3.1.1.min.mjs'; + +class UploadForm extends Component { + + addFiles(event) { + const { files = [ ] } = this.state; + this.setState({ files: [...event.target.files] }); + } + + render({ page }, { files = [] }) { + return html` + <main> + <article> + <upload-box> + <h1>Upload Files</h1> + <h2>Drag files here or browse</h2> + <form method="post" enctype="multipart/form-data"> + <label for="upload"> + <input + id="upload" + multiple="true" + name="upload" + type="file" + required="true" + /> + </label> + <footer> + <button>Upload</button> + </footer> + </form> + </upload-box> + </article> + </main> + `; + } +} + +render(html`<${UploadForm} />`, document.body); diff --git a/public/js/uppy.min.js b/public/js/uppy.min.js deleted file mode 100644 index b6beb78..0000000 --- a/public/js/uppy.min.js +++ /dev/null @@ -1,2 +0,0 @@ -!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).Uppy=e()}}(function(){var define,module,exports,_$browser_52={},cachedSetTimeout,cachedClearTimeout,process=_$browser_52={};function defaultSetTimout(){throw new Error("setTimeout has not been defined")}function defaultClearTimeout(){throw new Error("clearTimeout has not been defined")}function runTimeout(e){if(cachedSetTimeout===setTimeout)return setTimeout(e,0);if((cachedSetTimeout===defaultSetTimout||!cachedSetTimeout)&&setTimeout)return cachedSetTimeout=setTimeout,setTimeout(e,0);try{return cachedSetTimeout(e,0)}catch(t){try{return cachedSetTimeout.call(null,e,0)}catch(t){return cachedSetTimeout.call(this,e,0)}}}!function(){try{cachedSetTimeout="function"==typeof setTimeout?setTimeout:defaultSetTimout}catch(e){cachedSetTimeout=defaultSetTimout}try{cachedClearTimeout="function"==typeof clearTimeout?clearTimeout:defaultClearTimeout}catch(e){cachedClearTimeout=defaultClearTimeout}}();var currentQueue,queue=[],draining=!1,queueIndex=-1;function cleanUpNextTick(){draining&¤tQueue&&(draining=!1,currentQueue.length?queue=currentQueue.concat(queue):queueIndex=-1,queue.length&&drainQueue())}function drainQueue(){if(!draining){var e=runTimeout(cleanUpNextTick);draining=!0;for(var t=queue.length;t;){for(currentQueue=queue,queue=[];++queueIndex<t;)currentQueue&¤tQueue[queueIndex].run();queueIndex=-1,t=queue.length}currentQueue=null,draining=!1,function(e){if(cachedClearTimeout===clearTimeout)return clearTimeout(e);if((cachedClearTimeout===defaultClearTimeout||!cachedClearTimeout)&&clearTimeout)return cachedClearTimeout=clearTimeout,clearTimeout(e);try{cachedClearTimeout(e)}catch(t){try{return cachedClearTimeout.call(null,e)}catch(t){return cachedClearTimeout.call(this,e)}}}(e)}}function Item(e,t){this.fun=e,this.array=t}function noop(){}process.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];queue.push(new Item(e,t)),1!==queue.length||draining||runTimeout(drainQueue)},Item.prototype.run=function(){this.fun.apply(null,this.array)},process.title="browser",process.browser=!0,process.env={},process.argv=[],process.version="",process.versions={},process.on=noop,process.addListener=noop,process.once=noop,process.off=noop,process.removeListener=noop,process.removeAllListeners=noop,process.emit=noop,process.prependListener=noop,process.prependOnceListener=noop,process.listeners=function(e){return[]},process.binding=function(e){throw new Error("process.binding is not supported")},process.cwd=function(){return"/"},process.chdir=function(e){throw new Error("process.chdir is not supported")},process.umask=function(){return 0};var _$es6Promise_33={exports:{}};(function(e,t){!function(e,t){"object"==typeof _$es6Promise_33.exports?_$es6Promise_33.exports=t():"function"==typeof define&&define.amd?define(t):e.ES6Promise=t()}(this,function(){"use strict";function r(e){return"function"==typeof e}var n=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},o=0,i=void 0,s=void 0,a=function(e,t){_[o]=e,_[o+1]=t,2===(o+=2)&&(s?s(f):b())},l="undefined"!=typeof window?window:void 0,u=l||{},c=u.MutationObserver||u.WebKitMutationObserver,p="undefined"==typeof self&&void 0!==e&&"[object process]"==={}.toString.call(e),d="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;function h(){var e=setTimeout;return function(){return e(f,1)}}var _=new Array(1e3);function f(){for(var e=0;e<o;e+=2)(0,_[e])(_[e+1]),_[e]=void 0,_[e+1]=void 0;o=0}var g,m,y,v,b=void 0;function w(e,t){var r=this,n=new this.constructor(C);void 0===n[P]&&M(n);var o=r._state;if(o){var i=arguments[o-1];a(function(){return D(o,n,i,r._result)})}else B(r,n,e,t);return n}function S(e){if(e&&"object"==typeof e&&e.constructor===this)return e;var t=new this(C);return x(t,e),t}p?b=function(){return e.nextTick(f)}:c?(m=0,y=new c(f),v=document.createTextNode(""),y.observe(v,{characterData:!0}),b=function(){v.data=m=++m%2}):d?((g=new MessageChannel).port1.onmessage=f,b=function(){return g.port2.postMessage(0)}):b=void 0===l&&"function"==typeof require?function(){try{var e=Function("return this")().require("vertx");return void 0!==(i=e.runOnLoop||e.runOnContext)?function(){i(f)}:h()}catch(e){return h()}}():h();var P=Math.random().toString(36).substring(2);function C(){}var E=void 0,T=1,k=2,$={error:null};function F(e){try{return e.then}catch(e){return $.error=e,$}}function A(e,t,n){t.constructor===e.constructor&&n===w&&t.constructor.resolve===S?function(e,t){t._state===T?I(e,t._result):t._state===k?O(e,t._result):B(t,void 0,function(t){return x(e,t)},function(t){return O(e,t)})}(e,t):n===$?(O(e,$.error),$.error=null):void 0===n?I(e,t):r(n)?function(e,t,r){a(function(e){var n=!1,o=function(r,o,i,s){try{r.call(o,function(r){n||(n=!0,t!==r?x(e,r):I(e,r))},function(t){n||(n=!0,O(e,t))})}catch(e){return e}}(r,t,0,0,e._label);!n&&o&&(n=!0,O(e,o))},e)}(e,t,n):I(e,t)}function x(e,t){var r,n;e===t?O(e,new TypeError("You cannot resolve a promise with itself")):(n=typeof(r=t),null===r||"object"!==n&&"function"!==n?I(e,t):A(e,t,F(t)))}function R(e){e._onerror&&e._onerror(e._result),U(e)}function I(e,t){e._state===E&&(e._result=t,e._state=T,0!==e._subscribers.length&&a(U,e))}function O(e,t){e._state===E&&(e._state=k,e._result=t,a(R,e))}function B(e,t,r,n){var o=e._subscribers,i=o.length;e._onerror=null,o[i]=t,o[i+T]=r,o[i+k]=n,0===i&&e._state&&a(U,e)}function U(e){var t=e._subscribers,r=e._state;if(0!==t.length){for(var n=void 0,o=void 0,i=e._result,s=0;s<t.length;s+=3)n=t[s],o=t[s+r],n?D(r,n,o,i):o(i);e._subscribers.length=0}}function D(e,t,n,o){var i=r(n),s=void 0,a=void 0,l=void 0,u=void 0;if(i){if((s=function(e,t){try{return e(t)}catch(e){return $.error=e,$}}(n,o))===$?(u=!0,a=s.error,s.error=null):l=!0,t===s)return void O(t,new TypeError("A promises callback cannot return that same promise."))}else s=o,l=!0;t._state!==E||(i&&l?x(t,s):u?O(t,a):e===T?I(t,s):e===k&&O(t,s))}var L=0;function M(e){e[P]=L++,e._state=void 0,e._result=void 0,e._subscribers=[]}var N=function(){function e(e,t){this._instanceConstructor=e,this.promise=new e(C),this.promise[P]||M(this.promise),n(t)?(this.length=t.length,this._remaining=t.length,this._result=new Array(this.length),0===this.length?I(this.promise,this._result):(this.length=this.length||0,this._enumerate(t),0===this._remaining&&I(this.promise,this._result))):O(this.promise,new Error("Array Methods must be provided an Array"))}return e.prototype._enumerate=function(e){for(var t=0;this._state===E&&t<e.length;t++)this._eachEntry(e[t],t)},e.prototype._eachEntry=function(e,t){var r=this._instanceConstructor,n=r.resolve;if(n===S){var o=F(e);if(o===w&&e._state!==E)this._settledAt(e._state,t,e._result);else if("function"!=typeof o)this._remaining--,this._result[t]=e;else if(r===j){var i=new r(C);A(i,e,o),this._willSettleAt(i,t)}else this._willSettleAt(new r(function(t){return t(e)}),t)}else this._willSettleAt(n(e),t)},e.prototype._settledAt=function(e,t,r){var n=this.promise;n._state===E&&(this._remaining--,e===k?O(n,r):this._result[t]=r),0===this._remaining&&I(n,this._result)},e.prototype._willSettleAt=function(e,t){var r=this;B(e,void 0,function(e){return r._settledAt(T,t,e)},function(e){return r._settledAt(k,t,e)})},e}(),j=function(){function e(t){this[P]=L++,this._result=this._state=void 0,this._subscribers=[],C!==t&&("function"!=typeof t&&function(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}(),this instanceof e?function(e,t){try{t(function(t){x(e,t)},function(t){O(e,t)})}catch(t){O(e,t)}}(this,t):function(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}())}return e.prototype.catch=function(e){return this.then(null,e)},e.prototype.finally=function(e){var t=this.constructor;return r(e)?this.then(function(r){return t.resolve(e()).then(function(){return r})},function(r){return t.resolve(e()).then(function(){throw r})}):this.then(e,e)},e}();return j.prototype.then=w,j.all=function(e){return new N(this,e).promise},j.race=function(e){var t=this;return n(e)?new t(function(r,n){for(var o=e.length,i=0;i<o;i++)t.resolve(e[i]).then(r,n)}):new t(function(e,t){return t(new TypeError("You must pass an array to race."))})},j.resolve=S,j.reject=function(e){var t=new this(C);return O(t,e),t},j._setScheduler=function(e){s=e},j._setAsap=function(e){a=e},j._asap=a,j.polyfill=function(){var e=void 0;if(void 0!==t)e=t;else if("undefined"!=typeof self)e=self;else try{e=Function("return this")()}catch(e){throw new Error("polyfill failed because global object is unavailable in this environment")}var r=e.Promise;if(r){var n=null;try{n=Object.prototype.toString.call(r.resolve())}catch(e){}if("[object Promise]"===n&&!r.cast)return}e.Promise=j},j.Promise=j,j})}).call(this,_$browser_52,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{}),_$es6Promise_33=_$es6Promise_33.exports;var _$auto_32=_$es6Promise_33.polyfill(),_$fetchUmd_85={exports:{}},__global_85,factory;function _extends(){return(_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}__global_85=this,factory=function(e){"use strict";var t={searchParams:"URLSearchParams"in self,iterable:"Symbol"in self&&"iterator"in Symbol,blob:"FileReader"in self&&"Blob"in self&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in self,arrayBuffer:"ArrayBuffer"in self};if(t.arrayBuffer)var r=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],n=ArrayBuffer.isView||function(e){return e&&r.indexOf(Object.prototype.toString.call(e))>-1};function o(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function i(e){return"string"!=typeof e&&(e=String(e)),e}function s(e){var r={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return t.iterable&&(r[Symbol.iterator]=function(){return r}),r}function a(e){this.map={},e instanceof a?e.forEach(function(e,t){this.append(t,e)},this):Array.isArray(e)?e.forEach(function(e){this.append(e[0],e[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function l(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function u(e){return new Promise(function(t,r){e.onload=function(){t(e.result)},e.onerror=function(){r(e.error)}})}function c(e){var t=new FileReader,r=u(t);return t.readAsArrayBuffer(e),r}function p(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function d(){return this.bodyUsed=!1,this._initBody=function(e){var r;this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:t.blob&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:t.formData&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:t.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():t.arrayBuffer&&t.blob&&(r=e)&&DataView.prototype.isPrototypeOf(r)?(this._bodyArrayBuffer=p(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):t.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||n(e))?this._bodyArrayBuffer=p(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):t.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},t.blob&&(this.blob=function(){var e=l(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?l(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(c)}),this.text=function(){var e,t,r,n=l(this);if(n)return n;if(this._bodyBlob)return e=this._bodyBlob,r=u(t=new FileReader),t.readAsText(e),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),n=0;n<t.length;n++)r[n]=String.fromCharCode(t[n]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},t.formData&&(this.formData=function(){return this.text().then(f)}),this.json=function(){return this.text().then(JSON.parse)},this}a.prototype.append=function(e,t){e=o(e),t=i(t);var r=this.map[e];this.map[e]=r?r+", "+t:t},a.prototype.delete=function(e){delete this.map[o(e)]},a.prototype.get=function(e){return e=o(e),this.has(e)?this.map[e]:null},a.prototype.has=function(e){return this.map.hasOwnProperty(o(e))},a.prototype.set=function(e,t){this.map[o(e)]=i(t)},a.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},a.prototype.keys=function(){var e=[];return this.forEach(function(t,r){e.push(r)}),s(e)},a.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),s(e)},a.prototype.entries=function(){var e=[];return this.forEach(function(t,r){e.push([r,t])}),s(e)},t.iterable&&(a.prototype[Symbol.iterator]=a.prototype.entries);var h=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function _(e,t){var r,n,o=(t=t||{}).body;if(e instanceof _){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new a(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,o||null==e._bodyInit||(o=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new a(t.headers)),this.method=(n=(r=t.method||this.method||"GET").toUpperCase(),h.indexOf(n)>-1?n:r),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(o)}function f(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var r=e.split("="),n=r.shift().replace(/\+/g," "),o=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(n),decodeURIComponent(o))}}),t}function g(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new a(t.headers),this.url=t.url||"",this._initBody(e)}_.prototype.clone=function(){return new _(this,{body:this._bodyInit})},d.call(_.prototype),d.call(g.prototype),g.prototype.clone=function(){return new g(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new a(this.headers),url:this.url})},g.error=function(){var e=new g(null,{status:0,statusText:""});return e.type="error",e};var m=[301,302,303,307,308];g.redirect=function(e,t){if(-1===m.indexOf(t))throw new RangeError("Invalid status code");return new g(null,{status:t,headers:{location:e}})},e.DOMException=self.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(e,t){this.message=e,this.name=t;var r=Error(e);this.stack=r.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function y(r,n){return new Promise(function(o,i){var s=new _(r,n);if(s.signal&&s.signal.aborted)return i(new e.DOMException("Aborted","AbortError"));var l=new XMLHttpRequest;function u(){l.abort()}l.onload=function(){var e,t,r={status:l.status,statusText:l.statusText,headers:(e=l.getAllResponseHeaders()||"",t=new a,e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach(function(e){var r=e.split(":"),n=r.shift().trim();if(n){var o=r.join(":").trim();t.append(n,o)}}),t)};r.url="responseURL"in l?l.responseURL:r.headers.get("X-Request-URL");var n="response"in l?l.response:l.responseText;o(new g(n,r))},l.onerror=function(){i(new TypeError("Network request failed"))},l.ontimeout=function(){i(new TypeError("Network request failed"))},l.onabort=function(){i(new e.DOMException("Aborted","AbortError"))},l.open(s.method,s.url,!0),"include"===s.credentials?l.withCredentials=!0:"omit"===s.credentials&&(l.withCredentials=!1),"responseType"in l&&t.blob&&(l.responseType="blob"),s.headers.forEach(function(e,t){l.setRequestHeader(t,e)}),s.signal&&(s.signal.addEventListener("abort",u),l.onreadystatechange=function(){4===l.readyState&&s.signal.removeEventListener("abort",u)}),l.send(void 0===s._bodyInit?null:s._bodyInit)})}y.polyfill=!0,self.fetch||(self.fetch=y,self.Headers=a,self.Request=_,self.Response=g),e.Headers=a,e.Request=_,e.Response=g,e.fetch=y,Object.defineProperty(e,"__esModule",{value:!0})},"object"==typeof _$fetchUmd_85.exports?factory(_$fetchUmd_85.exports):"function"==typeof define&&define.amd?define(["exports"],factory):factory(__global_85.WHATWGFetch={}),_$fetchUmd_85=_$fetchUmd_85.exports;var defaultOptions={limit:1,onStart:function(){},onProgress:function(){},onPartComplete:function(){},onSuccess:function(){},onError:function(e){throw e}};function remove(e,t){var r=e.indexOf(t);-1!==r&&e.splice(r,1)}var MultipartUploader=function(){function e(e,t){this.options=_extends({},defaultOptions,t),this.file=e,this.key=this.options.key||null,this.uploadId=this.options.uploadId||null,this.parts=this.options.parts||[],this.isPaused=!1,this.chunks=null,this.chunkState=null,this.uploading=[],this._initChunks()}var t=e.prototype;return t._initChunks=function(){for(var e=[],t=Math.max(Math.ceil(this.file.size/1e4),5242880),r=0;r<this.file.size;r+=t){var n=Math.min(this.file.size,r+t);e.push(this.file.slice(r,n))}this.chunks=e,this.chunkState=e.map(function(){return{uploaded:0,busy:!1,done:!1}})},t._createUpload=function(){var e=this;return Promise.resolve().then(function(){return e.options.createMultipartUpload()}).then(function(e){if("object"!=typeof e||!e||"string"!=typeof e.uploadId||"string"!=typeof e.key)throw new TypeError("AwsS3/Multipart: Got incorrect result from 'createMultipartUpload()', expected an object '{ uploadId, key }'.");return e}).then(function(t){e.key=t.key,e.uploadId=t.uploadId,e.options.onStart(t)}).then(function(){e._uploadParts()}).catch(function(t){e._onError(t)})},t._resumeUpload=function(){var e=this;return Promise.resolve().then(function(){return e.options.listParts({uploadId:e.uploadId,key:e.key})}).then(function(t){t.forEach(function(t){var r=t.PartNumber-1;e.chunkState[r]={uploaded:t.Size,etag:t.ETag,done:!0},e.parts.some(function(e){return e.PartNumber===t.PartNumber})||e.parts.push({PartNumber:t.PartNumber,ETag:t.ETag})}),e._uploadParts()}).catch(function(t){e._onError(t)})},t._uploadParts=function(){var e=this;if(!this.isPaused){var t=this.options.limit-this.uploading.length;if(0!==t)if(this.chunkState.every(function(e){return e.done}))this._completeUpload();else{for(var r=[],n=0;n<this.chunkState.length;n++){var o=this.chunkState[n];if(!o.done&&!o.busy&&(r.push(n),r.length>=t))break}r.forEach(function(t){e._uploadPart(t)})}}},t._uploadPart=function(e){var t=this,r=this.chunks[e];return this.chunkState[e].busy=!0,Promise.resolve().then(function(){return t.options.prepareUploadPart({key:t.key,uploadId:t.uploadId,body:r,number:e+1})}).then(function(e){if("object"!=typeof e||!e||"string"!=typeof e.url)throw new TypeError("AwsS3/Multipart: Got incorrect result from 'prepareUploadPart()', expected an object '{ url }'.");return e}).then(function(r){var n=r.url;t._uploadPartBytes(e,n)},function(e){t._onError(e)})},t._onPartProgress=function(e,t,r){this.chunkState[e].uploaded=t;var n=this.chunkState.reduce(function(e,t){return e+t.uploaded},0);this.options.onProgress(n,this.file.size)},t._onPartComplete=function(e,t){this.chunkState[e].etag=t,this.chunkState[e].done=!0;var r={PartNumber:e+1,ETag:t};this.parts.push(r),this.options.onPartComplete(r),this._uploadParts()},t._uploadPartBytes=function(e,t){var r=this,n=this.chunks[e],o=new XMLHttpRequest;o.open("PUT",t,!0),o.responseType="text",this.uploading.push(o),o.upload.addEventListener("progress",function(t){t.lengthComputable&&r._onPartProgress(e,t.loaded,t.total)}),o.addEventListener("abort",function(t){remove(r.uploading,t.target),r.chunkState[e].busy=!1}),o.addEventListener("load",function(t){if(remove(r.uploading,t.target),r.chunkState[e].busy=!1,t.target.status<200||t.target.status>=300)r._onError(new Error("Non 2xx"));else{r._onPartProgress(e,n.size,n.size);var o=t.target.getResponseHeader("ETag");null!==o?r._onPartComplete(e,o):r._onError(new Error("AwsS3/Multipart: Could not read the ETag header. This likely means CORS is not configured correctly on the S3 Bucket. Seee https://uppy.io/docs/aws-s3-multipart#S3-Bucket-Configuration for instructions."))}}),o.addEventListener("error",function(t){remove(r.uploading,t.target),r.chunkState[e].busy=!1;var n=new Error("Unknown error");n.source=t.target,r._onError(n)}),o.send(n)},t._completeUpload=function(){var e=this;return this.parts.sort(function(e,t){return e.PartNumber-t.PartNumber}),Promise.resolve().then(function(){return e.options.completeMultipartUpload({key:e.key,uploadId:e.uploadId,parts:e.parts})}).then(function(t){e.options.onSuccess(t)},function(t){e._onError(t)})},t._abortUpload=function(){this.uploading.slice().forEach(function(e){e.abort()}),this.options.abortMultipartUpload({key:this.key,uploadId:this.uploadId}),this.uploading=[]},t._onError=function(e){this.options.onError(e)},t.start=function(){this.isPaused=!1,this.uploadId?this._resumeUpload():this._createUpload()},t.pause=function(){this.uploading.slice().forEach(function(e){e.abort()}),this.isPaused=!0},t.abort=function(e){if(void 0===e&&(e={}),!e.really)return this.pause();this._abortUpload()},e}(),_$MultipartUploader_88=MultipartUploader,_$package_90={version:"1.2.0"};function _wrapNativeSuper(e){var t="function"==typeof Map?new Map:void 0;return(_wrapNativeSuper=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return _construct(e,arguments,_getPrototypeOf(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(n,e)})(e)}function _construct(e,t,r){return(_construct=function(){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}}()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&_setPrototypeOf(o,r.prototype),o}).apply(null,arguments)}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _getPrototypeOf(e){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var AuthError=function(e){var t,r;function n(){var t;return(t=e.call(this,"Authorization required")||this).name="AuthError",t.isAuthError=!0,t}return r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r,n}(_wrapNativeSuper(Error)),_$AuthError_93=AuthError,_$package_99={version:"1.2.0"},_class,_temp;function ___extends_95(){return(___extends_95=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}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)}}var _$RequestClient_95=(_temp=_class=function(){function e(e,t){this.uppy=e,this.opts=t,this.onReceiveResponse=this.onReceiveResponse.bind(this),this.allowedHeaders=["accept","content-type","uppy-auth-token"],this.preflightDone=!1}var t,r,n=e.prototype;return n.headers=function(){return Promise.resolve(___extends_95({},this.defaultHeaders,this.opts.serverHeaders||{}))},n._getPostResponseFunc=function(e){var t=this;return function(r){return e?r:t.onReceiveResponse(r)}},n.onReceiveResponse=function(e){var t,r=this.uppy.getState().companion||{},n=this.opts.companionUrl,o=e.headers;return o.has("i-am")&&o.get("i-am")!==r[n]&&this.uppy.setState({companion:___extends_95({},r,(t={},t[n]=o.get("i-am"),t))}),e},n._getUrl=function(e){return/^(https?:|)\/\//.test(e)?e:this.hostname+"/"+e},n._json=function(e){if(401===e.status)throw new _$AuthError_93;if(e.status<200||e.status>300){var t="Failed request with status: "+e.status+". "+e.statusText;return e.json().then(function(e){throw t=e.message?t+" message: "+e.message:t,t=e.requestId?t+" request-Id: "+e.requestId:t,new Error(t)}).catch(function(){throw new Error(t)})}return e.json()},n.preflight=function(e){var t=this;return new Promise(function(r,n){if(t.preflightDone)return r(t.allowedHeaders.slice());fetch(t._getUrl(e),{method:"OPTIONS"}).then(function(e){e.headers.has("access-control-allow-headers")&&(t.allowedHeaders=e.headers.get("access-control-allow-headers").split(",").map(function(e){return e.trim().toLowerCase()})),t.preflightDone=!0,r(t.allowedHeaders.slice())}).catch(function(e){t.uppy.log("[CompanionClient] unable to make preflight request "+e,"warning"),t.preflightDone=!0,r(t.allowedHeaders.slice())})})},n.preflightAndHeaders=function(e){var t=this;return Promise.all([this.preflight(e),this.headers()]).then(function(e){var r=e[0],n=e[1];return Object.keys(n).forEach(function(e){-1===r.indexOf(e.toLowerCase())&&(t.uppy.log("[CompanionClient] excluding unallowed header "+e),delete n[e])}),n})},n.get=function(e,t){var r=this;return new Promise(function(n,o){r.preflightAndHeaders(e).then(function(i){fetch(r._getUrl(e),{method:"get",headers:i,credentials:"same-origin"}).then(r._getPostResponseFunc(t)).then(function(e){return r._json(e).then(n)}).catch(function(t){t=t.isAuthError?t:new Error("Could not get "+r._getUrl(e)+". "+t),o(t)})}).catch(o)})},n.post=function(e,t,r){var n=this;return new Promise(function(o,i){n.preflightAndHeaders(e).then(function(s){fetch(n._getUrl(e),{method:"post",headers:s,credentials:"same-origin",body:JSON.stringify(t)}).then(n._getPostResponseFunc(r)).then(function(e){return n._json(e).then(o)}).catch(function(t){t=t.isAuthError?t:new Error("Could not post "+n._getUrl(e)+". "+t),i(t)})}).catch(i)})},n.delete=function(e,t,r){var n=this;return new Promise(function(o,i){n.preflightAndHeaders(e).then(function(s){fetch(n.hostname+"/"+e,{method:"delete",headers:s,credentials:"same-origin",body:t?JSON.stringify(t):null}).then(n._getPostResponseFunc(r)).then(function(e){return n._json(e).then(o)}).catch(function(t){t=t.isAuthError?t:new Error("Could not delete "+n._getUrl(e)+". "+t),i(t)})}).catch(i)})},t=e,(r=[{key:"hostname",get:function(){var e=this.uppy.getState().companion,t=this.opts.companionUrl;return(e&&e[t]?e[t]:t).replace(/\/$/,"")}},{key:"defaultHeaders",get:function(){return{Accept:"application/json","Content-Type":"application/json","Uppy-Versions":"@uppy/companion-client="+e.VERSION}}}])&&_defineProperties(t.prototype,r),e}(),_class.VERSION=_$package_99.version,_temp),_$tokenStorage_98={};function ___extends_94(){return(___extends_94=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}_$tokenStorage_98.setItem=function(e,t){return new Promise(function(r){localStorage.setItem(e,t),r()})},_$tokenStorage_98.getItem=function(e){return Promise.resolve(localStorage.getItem(e))},_$tokenStorage_98.removeItem=function(e){return new Promise(function(t){localStorage.removeItem(e),t()})};var _getName=function(e){return e.split("-").map(function(e){return e.charAt(0).toUpperCase()+e.slice(1)}).join(" ")},_$Provider_94=function(e){var t,r;function n(t,r){var n;return(n=e.call(this,t,r)||this).provider=r.provider,n.id=n.provider,n.authProvider=r.authProvider||n.provider,n.name=n.opts.name||_getName(n.id),n.pluginId=n.opts.pluginId,n.tokenKey="companion-"+n.pluginId+"-auth-token",n}r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var o=n.prototype;return o.headers=function(){var t=this;return new Promise(function(r,n){e.prototype.headers.call(t).then(function(e){t.getAuthToken().then(function(t){r(___extends_94({},e,{"uppy-auth-token":t}))})}).catch(n)})},o.onReceiveResponse=function(t){var r=401!==(t=e.prototype.onReceiveResponse.call(this,t)).status;return this.uppy.getPlugin(this.pluginId).setPluginState({authenticated:r}),t},o.setAuthToken=function(e){return this.uppy.getPlugin(this.pluginId).storage.setItem(this.tokenKey,e)},o.getAuthToken=function(){return this.uppy.getPlugin(this.pluginId).storage.getItem(this.tokenKey)},o.authUrl=function(){return this.hostname+"/"+this.id+"/connect"},o.fileUrl=function(e){return this.hostname+"/"+this.id+"/get/"+e},o.list=function(e){return this.get(this.id+"/list/"+(e||""))},o.logout=function(e){var t=this;return void 0===e&&(e=location.href),new Promise(function(r,n){t.get(t.id+"/logout?redirect="+e).then(function(e){t.uppy.getPlugin(t.pluginId).storage.removeItem(t.tokenKey).then(function(){return r(e)}).catch(n)}).catch(n)})},n.initPlugin=function(e,t,r){if(e.type="acquirer",e.files=[],r&&(e.opts=___extends_94({},r,t)),t.serverUrl||t.serverPattern)throw new Error("`serverUrl` and `serverPattern` have been renamed to `companionUrl` and `companionAllowedHosts` respectively in the 0.30.5 release. Please consult the docs (for example, https://uppy.io/docs/instagram/ for the Instagram plugin) and use the updated options.`");if(t.companionAllowedHosts){var n=t.companionAllowedHosts;if(!("string"==typeof n||Array.isArray(n)||n instanceof RegExp))throw new TypeError(e.id+': the option "companionAllowedHosts" must be one of string, Array, RegExp');e.opts.companionAllowedHosts=n}else/^(?!https?:\/\/).*$/i.test(t.companionUrl)?e.opts.companionAllowedHosts="https://"+t.companionUrl.replace(/^\/\//,""):e.opts.companionAllowedHosts=t.companionUrl;e.storage=e.opts.storage||_$tokenStorage_98},n}(_$RequestClient_95),_$namespaceEmitter_47=function(){var e={},t=e._fns={};return e.emit=function(e,r,n,o,i,s,a){var l=function(e){for(var r=t[e]?t[e]:[],n=e.indexOf(":"),o=-1===n?[e]:[e.substring(0,n),e.substring(n+1)],i=Object.keys(t),s=0,a=i.length;s<a;s++){var l=i[s];if("*"===l&&(r=r.concat(t[l])),2===o.length&&o[0]===l){r=r.concat(t[l]);break}}return r}(e);l.length&&function(e,t,r){for(var n=0,o=t.length;n<o&&t[n];n++)t[n].event=e,t[n].apply(t[n],r)}(e,l,[r,n,o,i,s,a])},e.on=function(e,r){t[e]||(t[e]=[]),t[e].push(r)},e.once=function(t,r){this.on(t,function n(){r.apply(this,arguments),e.off(t,n)})},e.off=function(e,t){var r=[];if(e&&t)for(var n=this._fns[e],o=0,i=n?n.length:0;o<i;o++)n[o]!==t&&r.push(n[o]);r.length?this._fns[e]=r:delete this._fns[e]},e},_$Socket_96=function(){function e(e){var t=this;this.queued=[],this.isOpen=!1,this.socket=new WebSocket(e.target),this.emitter=_$namespaceEmitter_47(),this.socket.onopen=function(e){for(t.isOpen=!0;t.queued.length>0&&t.isOpen;){var r=t.queued[0];t.send(r.action,r.payload),t.queued=t.queued.slice(1)}},this.socket.onclose=function(e){t.isOpen=!1},this._handleMessage=this._handleMessage.bind(this),this.socket.onmessage=this._handleMessage,this.close=this.close.bind(this),this.emit=this.emit.bind(this),this.on=this.on.bind(this),this.once=this.once.bind(this),this.send=this.send.bind(this)}var t=e.prototype;return t.close=function(){return this.socket.close()},t.send=function(e,t){this.isOpen?this.socket.send(JSON.stringify({action:e,payload:t})):this.queued.push({action:e,payload:t})},t.on=function(e,t){this.emitter.on(e,t)},t.emit=function(e,t){this.emitter.emit(e,t)},t.once=function(e,t){this.emitter.once(e,t)},t._handleMessage=function(e){try{var t=JSON.parse(e.data);this.emit(t.action,t.payload)}catch(e){console.log(e)}},e}(),_$lib_97={RequestClient:_$RequestClient_95,Provider:_$Provider_94,Socket:_$Socket_96},_$pad_16=function(e,t){var r="000000000"+e;return r.substr(r.length-t)},env="object"==typeof window?window:self,globalCount=Object.keys(env).length,clientId=_$pad_16(((navigator.mimeTypes?navigator.mimeTypes.length:0)+navigator.userAgent.length).toString(36)+globalCount.toString(36),4),_$fingerprintBrowser_14=function(){return clientId},getRandomValue,crypto=window.crypto||window.msCrypto;if(crypto){var lim=Math.pow(2,32)-1;getRandomValue=function(){return Math.abs(crypto.getRandomValues(new Uint32Array(1))[0]/lim)}}else getRandomValue=Math.random;var _$getRandomValue_15=getRandomValue,_$cuid_13={},c=0,blockSize=4,base=36,discreteValues=Math.pow(base,blockSize);function randomBlock(){return _$pad_16((_$getRandomValue_15()*discreteValues<<0).toString(base),blockSize)}function safeCounter(){return c=c<discreteValues?c:0,++c-1}function cuid(){return"c"+(new Date).getTime().toString(base)+_$pad_16(safeCounter().toString(base),blockSize)+_$fingerprintBrowser_14()+(randomBlock()+randomBlock())}cuid.slug=function(){var e=(new Date).getTime().toString(36),t=safeCounter().toString(36).slice(-4),r=_$fingerprintBrowser_14().slice(0,1)+_$fingerprintBrowser_14().slice(-1),n=randomBlock().slice(-2);return e.slice(-2)+t+r+n},cuid.isCuid=function(e){return"string"==typeof e&&!!e.startsWith("c")},cuid.isSlug=function(e){if("string"!=typeof e)return!1;var t=e.length;return t>=7&&t<=10},cuid.fingerprint=_$fingerprintBrowser_14,_$cuid_13=cuid;var _$lodashThrottle_44={};(function(e){var t="Expected a function",r=NaN,n="[object Symbol]",o=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,a=/^0o[0-7]+$/i,l=parseInt,u="object"==typeof e&&e&&e.Object===Object&&e,c="object"==typeof self&&self&&self.Object===Object&&self,p=u||c||Function("return this")(),d=Object.prototype.toString,h=Math.max,_=Math.min,f=function(){return p.Date.now()};function g(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function m(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&d.call(e)==n}(e))return r;if(g(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=g(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(o,"");var u=s.test(e);return u||a.test(e)?l(e.slice(2),u?2:8):i.test(e)?r:+e}_$lodashThrottle_44=function(e,r,n){var o=!0,i=!0;if("function"!=typeof e)throw new TypeError(t);return g(n)&&(o="leading"in n?!!n.leading:o,i="trailing"in n?!!n.trailing:i),function(e,r,n){var o,i,s,a,l,u,c=0,p=!1,d=!1,y=!0;if("function"!=typeof e)throw new TypeError(t);function v(t){var r=o,n=i;return o=i=void 0,c=t,a=e.apply(n,r)}function b(e){var t=e-u;return void 0===u||t>=r||t<0||d&&e-c>=s}function w(){var e=f();if(b(e))return S(e);l=setTimeout(w,function(e){var t=r-(e-u);return d?_(t,s-(e-c)):t}(e))}function S(e){return l=void 0,y&&o?v(e):(o=i=void 0,a)}function P(){var e=f(),t=b(e);if(o=arguments,i=this,u=e,t){if(void 0===l)return function(e){return c=e,l=setTimeout(w,r),p?v(e):a}(u);if(d)return l=setTimeout(w,r),v(u)}return void 0===l&&(l=setTimeout(w,r)),a}return r=m(r)||0,g(n)&&(p=!!n.leading,s=(d="maxWait"in n)?h(m(n.maxWait)||0,r):s,y="trailing"in n?!!n.trailing:y),P.cancel=function(){void 0!==l&&clearTimeout(l),c=0,o=u=i=l=void 0},P.flush=function(){return void 0===l?a:S(f())},P}(e,r,{leading:o,maxWait:r,trailing:i})}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{});var _$wildcard_86={};function WildcardMatcher(e,t){this.text=e=e||"",this.hasWild=~e.indexOf("*"),this.separator=t,this.parts=e.split(t)}WildcardMatcher.prototype.match=function(e){var t,r,n=!0,o=this.parts,i=o.length;if("string"==typeof e||e instanceof String)if(this.hasWild||this.text==e){for(r=(e||"").split(this.separator),t=0;n&&t<i;t++)"*"!==o[t]&&(n=t<r.length&&o[t]===r[t]);n=n&&r}else n=!1;else if("function"==typeof e.splice)for(n=[],t=e.length;t--;)this.match(e[t])&&(n[n.length]=e[t]);else if("object"==typeof e)for(var s in n={},e)this.match(s)&&(n[s]=e[s]);return n},_$wildcard_86=function(e,t,r){var n=new WildcardMatcher(e,r||/[\/\.]/);return void 0!==t?n.match(t):n};var reMimePartSplit=/[\/\+\.]/,_$mimeMatch_46=function(e,t){function r(t){var r=_$wildcard_86(t,e,reMimePartSplit);return r&&r.length>=2}return t?r(t.split(";")[0]):r},_$preact_51={exports:{}};!function(){"use strict";function e(){}function t(t,r){var n,o,i,s,a=S;for(s=arguments.length;s-- >2;)w.push(arguments[s]);for(r&&null!=r.children&&(w.length||w.push(r.children),delete r.children);w.length;)if((o=w.pop())&&void 0!==o.pop)for(s=o.length;s--;)w.push(o[s]);else"boolean"==typeof o&&(o=null),(i="function"!=typeof t)&&(null==o?o="":"number"==typeof o?o=String(o):"string"!=typeof o&&(i=!1)),i&&n?a[a.length-1]+=o:a===S?a=[o]:a.push(o),n=i;var l=new e;return l.nodeName=t,l.children=a,l.attributes=null==r?void 0:r,l.key=null==r?void 0:r.key,void 0!==b.vnode&&b.vnode(l),l}function r(e,t){for(var r in t)e[r]=t[r];return e}function n(e){!e.__d&&(e.__d=!0)&&1==E.push(e)&&(b.debounceRendering||P)(o)}function o(){var e,t=E;for(E=[];e=t.pop();)e.__d&&m(e)}function i(e,t){return e.__n===t||e.nodeName.toLowerCase()===t.toLowerCase()}function s(e){var t=r({},e.attributes);t.children=e.children;var n=e.nodeName.defaultProps;if(void 0!==n)for(var o in n)void 0===t[o]&&(t[o]=n[o]);return t}function a(e){var t=e.parentNode;t&&t.removeChild(e)}function l(e,t,r,n,o){if("className"===t&&(t="class"),"key"===t);else if("ref"===t)r&&r(null),n&&n(e);else if("class"!==t||o)if("style"===t){if(n&&"string"!=typeof n&&"string"!=typeof r||(e.style.cssText=n||""),n&&"object"==typeof n){if("string"!=typeof r)for(var i in r)i in n||(e.style[i]="");for(var i in n)e.style[i]="number"==typeof n[i]&&!1===C.test(i)?n[i]+"px":n[i]}}else if("dangerouslySetInnerHTML"===t)n&&(e.innerHTML=n.__html||"");else if("o"==t[0]&&"n"==t[1]){var s=t!==(t=t.replace(/Capture$/,""));t=t.toLowerCase().substring(2),n?r||e.addEventListener(t,u,s):e.removeEventListener(t,u,s),(e.__l||(e.__l={}))[t]=n}else if("list"!==t&&"type"!==t&&!o&&t in e)!function(e,t,r){try{e[t]=r}catch(e){}}(e,t,null==n?"":n),null!=n&&!1!==n||e.removeAttribute(t);else{var a=o&&t!==(t=t.replace(/^xlink:?/,""));null==n||!1===n?a?e.removeAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase()):e.removeAttribute(t):"function"!=typeof n&&(a?e.setAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase(),n):e.setAttribute(t,n))}else e.className=n||""}function u(e){return this.__l[e.type](b.event&&b.event(e)||e)}function c(){for(var e;e=T.pop();)b.afterMount&&b.afterMount(e),e.componentDidMount&&e.componentDidMount()}function p(e,t,r,n,o,u){k++||($=null!=o&&void 0!==o.ownerSVGElement,F=null!=e&&!("__preactattr_"in e));var p=function e(t,r,n,o,u){var c=t,p=$;if(null!=r&&"boolean"!=typeof r||(r=""),"string"==typeof r||"number"==typeof r)return t&&void 0!==t.splitText&&t.parentNode&&(!t._component||u)?t.nodeValue!=r&&(t.nodeValue=r):(c=document.createTextNode(r),t&&(t.parentNode&&t.parentNode.replaceChild(c,t),d(t,!0))),c.__preactattr_=!0,c;var h,f,m=r.nodeName;if("function"==typeof m)return function(e,t,r,n){for(var o=e&&e._component,i=o,a=e,l=o&&e._componentConstructor===t.nodeName,u=l,c=s(t);o&&!u&&(o=o.__u);)u=o.constructor===t.nodeName;return o&&u&&(!n||o._component)?(g(o,c,3,r,n),e=o.base):(i&&!l&&(y(i),e=a=null),o=_(t.nodeName,c,r),e&&!o.__b&&(o.__b=e,a=null),g(o,c,1,r,n),e=o.base,a&&e!==a&&(a._component=null,d(a,!1))),e}(t,r,n,o);if($="svg"===m||"foreignObject"!==m&&$,m=String(m),(!t||!i(t,m))&&(h=m,(f=$?document.createElementNS("http://www.w3.org/2000/svg",h):document.createElement(h)).__n=h,c=f,t)){for(;t.firstChild;)c.appendChild(t.firstChild);t.parentNode&&t.parentNode.replaceChild(c,t),d(t,!0)}var v=c.firstChild,b=c.__preactattr_,w=r.children;if(null==b){b=c.__preactattr_={};for(var S=c.attributes,P=S.length;P--;)b[S[P].name]=S[P].value}return!F&&w&&1===w.length&&"string"==typeof w[0]&&null!=v&&void 0!==v.splitText&&null==v.nextSibling?v.nodeValue!=w[0]&&(v.nodeValue=w[0]):(w&&w.length||null!=v)&&function(t,r,n,o,s){var l,u,c,p,h,_,f,g,m=t.childNodes,y=[],v={},b=0,w=0,S=m.length,P=0,C=r?r.length:0;if(0!==S)for(var E=0;E<S;E++){var T=m[E],k=T.__preactattr_,$=C&&k?T._component?T._component.__k:k.key:null;null!=$?(b++,v[$]=T):(k||(void 0!==T.splitText?!s||T.nodeValue.trim():s))&&(y[P++]=T)}if(0!==C)for(var E=0;E<C;E++){p=r[E],h=null;var $=p.key;if(null!=$)b&&void 0!==v[$]&&(h=v[$],v[$]=void 0,b--);else if(!h&&w<P)for(l=w;l<P;l++)if(void 0!==y[l]&&(_=u=y[l],g=s,"string"==typeof(f=p)||"number"==typeof f?void 0!==_.splitText:"string"==typeof f.nodeName?!_._componentConstructor&&i(_,f.nodeName):g||_._componentConstructor===f.nodeName)){h=u,y[l]=void 0,l===P-1&&P--,l===w&&w++;break}h=e(h,p,n,o),c=m[E],h&&h!==t&&h!==c&&(null==c?t.appendChild(h):h===c.nextSibling?a(c):t.insertBefore(h,c))}if(b)for(var E in v)void 0!==v[E]&&d(v[E],!1);for(;w<=P;)void 0!==(h=y[P--])&&d(h,!1)}(c,w,n,o,F||null!=b.dangerouslySetInnerHTML),function(e,t,r){var n;for(n in r)t&&null!=t[n]||null==r[n]||l(e,n,r[n],r[n]=void 0,$);for(n in t)"children"===n||"innerHTML"===n||n in r&&t[n]===("value"===n||"checked"===n?e[n]:r[n])||l(e,n,r[n],r[n]=t[n],$)}(c,r.attributes,b),$=p,c}(e,t,r,n,u);return o&&p.parentNode!==o&&o.appendChild(p),--k||(F=!1,u||c()),p}function d(e,t){var r=e._component;r?y(r):(null!=e.__preactattr_&&e.__preactattr_.ref&&e.__preactattr_.ref(null),!1!==t&&null!=e.__preactattr_||a(e),h(e))}function h(e){for(e=e.lastChild;e;){var t=e.previousSibling;d(e,!0),e=t}}function _(e,t,r){var n,o=A[e.name];if(e.prototype&&e.prototype.render?(n=new e(t,r),v.call(n,t,r)):((n=new v(t,r)).constructor=e,n.render=f),o)for(var i=o.length;i--;)if(o[i].constructor===e){n.__b=o[i].__b,o.splice(i,1);break}return n}function f(e,t,r){return this.constructor(e,r)}function g(e,t,r,o,i){e.__x||(e.__x=!0,(e.__r=t.ref)&&delete t.ref,(e.__k=t.key)&&delete t.key,!e.base||i?e.componentWillMount&&e.componentWillMount():e.componentWillReceiveProps&&e.componentWillReceiveProps(t,o),o&&o!==e.context&&(e.__c||(e.__c=e.context),e.context=o),e.__p||(e.__p=e.props),e.props=t,e.__x=!1,0!==r&&(1!==r&&!1===b.syncComponentUpdates&&e.base?n(e):m(e,1,i)),e.__r&&e.__r(e))}function m(e,t,n,o){if(!e.__x){var i,a,l,u=e.props,h=e.state,f=e.context,v=e.__p||u,w=e.__s||h,S=e.__c||f,P=e.base,C=e.__b,E=P||C,$=e._component,F=!1;if(P&&(e.props=v,e.state=w,e.context=S,2!==t&&e.shouldComponentUpdate&&!1===e.shouldComponentUpdate(u,h,f)?F=!0:e.componentWillUpdate&&e.componentWillUpdate(u,h,f),e.props=u,e.state=h,e.context=f),e.__p=e.__s=e.__c=e.__b=null,e.__d=!1,!F){i=e.render(u,h,f),e.getChildContext&&(f=r(r({},f),e.getChildContext()));var A,x,R=i&&i.nodeName;if("function"==typeof R){var I=s(i);(a=$)&&a.constructor===R&&I.key==a.__k?g(a,I,1,f,!1):(A=a,e._component=a=_(R,I,f),a.__b=a.__b||C,a.__u=e,g(a,I,0,f,!1),m(a,1,n,!0)),x=a.base}else l=E,(A=$)&&(l=e._component=null),(E||1===t)&&(l&&(l._component=null),x=p(l,i,f,n||!P,E&&E.parentNode,!0));if(E&&x!==E&&a!==$){var O=E.parentNode;O&&x!==O&&(O.replaceChild(x,E),A||(E._component=null,d(E,!1)))}if(A&&y(A),e.base=x,x&&!o){for(var B=e,U=e;U=U.__u;)(B=U).base=x;x._component=B,x._componentConstructor=B.constructor}}if(!P||n?T.unshift(e):F||(e.componentDidUpdate&&e.componentDidUpdate(v,w,S),b.afterUpdate&&b.afterUpdate(e)),null!=e.__h)for(;e.__h.length;)e.__h.pop().call(e);k||o||c()}}function y(e){b.beforeUnmount&&b.beforeUnmount(e);var t=e.base;e.__x=!0,e.componentWillUnmount&&e.componentWillUnmount(),e.base=null;var r=e._component;r?y(r):t&&(t.__preactattr_&&t.__preactattr_.ref&&t.__preactattr_.ref(null),e.__b=t,a(t),function(e){var t=e.constructor.name;(A[t]||(A[t]=[])).push(e)}(e),h(t)),e.__r&&e.__r(null)}function v(e,t){this.__d=!0,this.context=t,this.props=e,this.state=this.state||{}}var b={},w=[],S=[],P="function"==typeof Promise?Promise.resolve().then.bind(Promise.resolve()):setTimeout,C=/acit|ex(?:s|g|n|p|$)|rph|ows|mnc|ntw|ine[ch]|zoo|^ord/i,E=[],T=[],k=0,$=!1,F=!1,A={};r(v.prototype,{setState:function(e,t){var o=this.state;this.__s||(this.__s=r({},o)),r(o,"function"==typeof e?e(o,this.props):e),t&&(this.__h=this.__h||[]).push(t),n(this)},forceUpdate:function(e){e&&(this.__h=this.__h||[]).push(e),m(this,2)},render:function(){}});var x={h:t,createElement:t,cloneElement:function(e,n){return t(e.nodeName,r(r({},e.attributes),n),arguments.length>2?[].slice.call(arguments,2):e.children)},Component:v,render:function(e,t,r){return p(r,e,{},!1,t,!1)},rerender:o,options:b};_$preact_51.exports=x}(),_$preact_51=_$preact_51.exports;var _$isDOMElement_209=function(e){return e&&"object"==typeof e&&e.nodeType===Node.ELEMENT_NODE},_$findDOMElement_197=function(e,t){return void 0===t&&(t=document),"string"==typeof e?t.querySelector(e):"object"==typeof e&&_$isDOMElement_209(e)?e:void 0};function ___extends_100(){return(___extends_100=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var _$Plugin_100=function(){function e(e,t){this.uppy=e,this.opts=t||{},this.update=this.update.bind(this),this.mount=this.mount.bind(this),this.install=this.install.bind(this),this.uninstall=this.uninstall.bind(this)}var t=e.prototype;return t.getPluginState=function(){return this.uppy.getState().plugins[this.id]||{}},t.setPluginState=function(e){var t,r=this.uppy.getState().plugins;this.uppy.setState({plugins:___extends_100({},r,(t={},t[this.id]=___extends_100({},r[this.id],e),t))})},t.update=function(e){void 0!==this.el&&this._updateUI&&this._updateUI(e)},t.afterUpdate=function(){},t.onMount=function(){},t.mount=function(t,r){var n,o,i,s,a=this,l=r.id,u=_$findDOMElement_197(t);if(u)return this.isTargetDOMEl=!0,this.rerender=function(e){a.uppy.getPlugin(a.id)&&(a.el=_$preact_51.render(a.render(e),u,a.el),a.afterUpdate())},this._updateUI=(n=this.rerender,o=null,i=null,function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return i=t,o||(o=Promise.resolve().then(function(){return o=null,n.apply(void 0,i)})),o}),this.uppy.log("Installing "+l+" to a DOM element '"+t+"'"),this.opts.replaceTargetContent&&(u.innerHTML=""),this.el=_$preact_51.render(this.render(this.uppy.getState()),u),this.onMount(),this.el;if("object"==typeof t&&t instanceof e)s=t;else if("function"==typeof t){var c=t;this.uppy.iteratePlugins(function(e){if(e instanceof c)return s=e,!1})}if(s)return this.uppy.log("Installing "+l+" to "+s.id),this.parent=s,this.el=s.addTarget(r),this.onMount(),this.el;throw this.uppy.log("Not installing "+l),new Error("Invalid target option given to "+l+". Please make sure that the element\n exists on the page, or that the plugin you are targeting has been installed. Check that the <script> tag initializing Uppy\n comes at the bottom of the page, before the closing </body> tag (see https://github.com/transloadit/uppy/issues/1042).")},t.render=function(e){throw new Error("Extend the render method to add your plugin to a DOM element")},t.addTarget=function(e){throw new Error("Extend the addTarget method to add your plugin to another plugin's target")},t.unmount=function(){this.isTargetDOMEl&&this.el&&this.el.parentNode&&this.el.parentNode.removeChild(this.el)},t.install=function(){},t.uninstall=function(){this.unmount()},e}();function __pad_208(e){return 2!==e.length?0+e:e}var _$getTimeStamp_208=function(){var e=new Date;return __pad_208(e.getHours().toString())+":"+__pad_208(e.getMinutes().toString())+":"+__pad_208(e.getSeconds().toString())},debugLogger={debug:function(){for(var e=console.debug||console.log,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];e.call.apply(e,[console,"[Uppy] ["+_$getTimeStamp_208()+"]"].concat(r))},warn:function(){for(var e,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return(e=console).warn.apply(e,["[Uppy] ["+_$getTimeStamp_208()+"]"].concat(r))},error:function(){for(var e,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return(e=console).error.apply(e,["[Uppy] ["+_$getTimeStamp_208()+"]"].concat(r))}},_$loggers_102={nullLogger:{debug:function(){},warn:function(){},error:function(){}},debugLogger:debugLogger},_$supportsUploadProgress_103=function(e){if(null==e&&(e="undefined"!=typeof navigator?navigator.userAgent:null),!e)return!0;var t=/Edge\/(\d+\.\d+)/.exec(e);if(!t)return!0;var r=t[1].split("."),n=r[0],o=r[1];return n=parseInt(n,10),o=parseInt(o,10),n<15||15===n&&o<15063||n>18||18===n&&o>=18218},_$package_104={version:"1.2.0"},_$package_172={version:"1.1.0"},_$lib_171={};function ___extends_171(){return(___extends_171=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var DefaultStore=function(){function e(){this.state={},this.callbacks=[]}var t=e.prototype;return t.getState=function(){return this.state},t.setState=function(e){var t=___extends_171({},this.state),r=___extends_171({},this.state,e);this.state=r,this._publish(t,r,e)},t.subscribe=function(e){var t=this;return this.callbacks.push(e),function(){t.callbacks.splice(t.callbacks.indexOf(e),1)}},t._publish=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];this.callbacks.forEach(function(e){e.apply(void 0,t)})},e}();function ___extends_192(){return(___extends_192=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}DefaultStore.VERSION=_$package_172.version,_$lib_171=function(){return new DefaultStore};var _$Translator_192=function(){function e(e){var t=this;this.locale={strings:{},pluralize:function(e){return 1===e?0:1}},Array.isArray(e)?e.forEach(function(e){return t._apply(e)}):this._apply(e)}var t=e.prototype;return t._apply=function(e){if(e&&e.strings){var t=this.locale;this.locale=___extends_192({},t,{strings:___extends_192({},t.strings,e.strings)}),this.locale.pluralize=e.pluralize||t.pluralize}},t.interpolate=function(e,t){var r=String.prototype,n=r.split,o=r.replace,i=/\$/g,s=[e];for(var a in t)if("_"!==a&&t.hasOwnProperty(a)){var l=t[a];"string"==typeof l&&(l=o.call(t[a],i,"$$$$")),s=u(s,new RegExp("%\\{"+a+"\\}","g"),l)}return s;function u(e,t,r){var o=[];return e.forEach(function(e){n.call(e,t).forEach(function(e,t,n){""!==e&&o.push(e),t<n.length-1&&o.push(r)})}),o}},t.translate=function(e,t){return this.translateArray(e,t).join("")},t.translateArray=function(e,t){if(t&&void 0!==t.smart_count){var r=this.locale.pluralize(t.smart_count);return this.interpolate(this.locale.strings[e][r],t)}return this.interpolate(this.locale.strings[e],t)},e}(),_$generateFileID_198=function(e){return["uppy",e.name?(t=e.name.toLowerCase(),r="",t.replace(/[^A-Z0-9]/gi,function(e){return r+="-"+function(e){return e.charCodeAt(0).toString(32)}(e),"/"})+r):"",e.type,e.data.size,e.data.lastModified].filter(function(e){return e}).join("-");var t,r},_$getFileNameAndExtension_203=function(e){var t=/(?:\.([^.]+))?$/.exec(e)[1];return{name:e.replace("."+t,""),extension:t}},_$mimeTypes_215={md:"text/markdown",markdown:"text/markdown",mp4:"video/mp4",mp3:"audio/mp3",svg:"image/svg+xml",jpg:"image/jpeg",png:"image/png",gif:"image/gif",heic:"image/heic",heif:"image/heif",yaml:"text/yaml",yml:"text/yaml",csv:"text/csv",avi:"video/x-msvideo",mks:"video/x-matroska",mkv:"video/x-matroska",mov:"video/quicktime",doc:"application/msword",docm:"application/vnd.ms-word.document.macroenabled.12",docx:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",dot:"application/msword",dotm:"application/vnd.ms-word.template.macroenabled.12",dotx:"application/vnd.openxmlformats-officedocument.wordprocessingml.template",xla:"application/vnd.ms-excel",xlam:"application/vnd.ms-excel.addin.macroenabled.12",xlc:"application/vnd.ms-excel",xlf:"application/x-xliff+xml",xlm:"application/vnd.ms-excel",xls:"application/vnd.ms-excel",xlsb:"application/vnd.ms-excel.sheet.binary.macroenabled.12",xlsm:"application/vnd.ms-excel.sheet.macroenabled.12",xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",xlt:"application/vnd.ms-excel",xltm:"application/vnd.ms-excel.template.macroenabled.12",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template",xlw:"application/vnd.ms-excel",txt:"text/plain",text:"text/plain",conf:"text/plain",log:"text/plain",pdf:"application/pdf"},_$getFileType_204=function(e){var t=e.name?_$getFileNameAndExtension_203(e.name).extension:null;return t=t?t.toLowerCase():null,e.type?e.type:t&&_$mimeTypes_215[t]?_$mimeTypes_215[t]:"application/octet-stream"},_$prettyBytes_216=function(e){if("number"!=typeof e||isNaN(e))throw new TypeError("Expected a number, got "+typeof e);var t=e<0,r=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];if(t&&(e=-e),e<1)return(t?"-":"")+e+" B";var n=Math.min(Math.floor(Math.log(e)/Math.log(1024)),r.length-1);e=Number(e/Math.pow(1024,n));var o=r[n];return e>=10||e%1==0?(t?"-":"")+e.toFixed(0)+" "+o:(t?"-":"")+e.toFixed(1)+" "+o},_$lib_101={};function ___extends_101(){return(___extends_101=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function ___defineProperties_101(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 ___wrapNativeSuper_101(e){var t="function"==typeof Map?new Map:void 0;return(___wrapNativeSuper_101=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return ___construct_101(e,arguments,___getPrototypeOf_101(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),___setPrototypeOf_101(n,e)})(e)}function ___construct_101(e,t,r){return(___construct_101=function(){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}}()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&___setPrototypeOf_101(o,r.prototype),o}).apply(null,arguments)}function ___setPrototypeOf_101(e,t){return(___setPrototypeOf_101=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ___getPrototypeOf_101(e){return(___getPrototypeOf_101=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var nullLogger=_$loggers_102.nullLogger,__debugLogger_101=_$loggers_102.debugLogger,RestrictionError=function(e){var t,r;function n(){for(var t,r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return(t=e.call.apply(e,[this].concat(n))||this).isRestriction=!0,t}return r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r,n}(___wrapNativeSuper_101(Error)),Uppy=function(){function e(e){var t=this;this.defaultLocale={strings:{youCanOnlyUploadX:{0:"You can only upload %{smart_count} file",1:"You can only upload %{smart_count} files",2:"You can only upload %{smart_count} files"},youHaveToAtLeastSelectX:{0:"You have to select at least %{smart_count} file",1:"You have to select at least %{smart_count} files",2:"You have to select at least %{smart_count} files"},exceedsSize:"This file exceeds maximum allowed size of",youCanOnlyUploadFileTypes:"You can only upload: %{types}",companionError:"Connection with Companion failed",companionAuthError:"Authorization required",failedToUpload:"Failed to upload %{file}",noInternetConnection:"No Internet connection",connectedToInternet:"Connected to the Internet",noFilesFound:"You have no files or folders here",selectX:{0:"Select %{smart_count}",1:"Select %{smart_count}",2:"Select %{smart_count}"},selectAllFilesFromFolderNamed:"Select all files from folder %{name}",unselectAllFilesFromFolderNamed:"Unselect all files from folder %{name}",selectFileNamed:"Select file %{name}",unselectFileNamed:"Unselect file %{name}",openFolderNamed:"Open folder %{name}",cancel:"Cancel",logOut:"Log out",filter:"Filter",resetFilter:"Reset filter",loading:"Loading...",authenticateWithTitle:"Please authenticate with %{pluginName} to select files",authenticateWith:"Connect to %{pluginName}",emptyFolderAdded:"No files were added from empty folder",folderAdded:{0:"Added %{smart_count} file from %{folder}",1:"Added %{smart_count} files from %{folder}",2:"Added %{smart_count} files from %{folder}"}}};var r={id:"uppy",autoProceed:!1,allowMultipleUploads:!0,debug:!1,restrictions:{maxFileSize:null,maxNumberOfFiles:null,minNumberOfFiles:null,allowedFileTypes:null},meta:{},onBeforeFileAdded:function(e,t){return e},onBeforeUpload:function(e){return e},store:_$lib_171(),logger:nullLogger};if(this.opts=___extends_101({},r,e),this.opts.restrictions=___extends_101({},r.restrictions,this.opts.restrictions),e&&e.logger&&e.debug?this.log("You are using a custom `logger`, but also set `debug: true`, which uses built-in logger to output logs to console. Ignoring `debug: true` and using your custom `logger`.","warning"):e&&e.debug&&(this.opts.logger=__debugLogger_101),this.log("Using Core v"+this.constructor.VERSION),this.opts.restrictions.allowedFileTypes&&null!==this.opts.restrictions.allowedFileTypes&&!Array.isArray(this.opts.restrictions.allowedFileTypes))throw new Error("'restrictions.allowedFileTypes' must be an array");this.translator=new _$Translator_192([this.defaultLocale,this.opts.locale]),this.locale=this.translator.locale,this.i18n=this.translator.translate.bind(this.translator),this.i18nArray=this.translator.translateArray.bind(this.translator),this.plugins={},this.getState=this.getState.bind(this),this.getPlugin=this.getPlugin.bind(this),this.setFileMeta=this.setFileMeta.bind(this),this.setFileState=this.setFileState.bind(this),this.log=this.log.bind(this),this.info=this.info.bind(this),this.hideInfo=this.hideInfo.bind(this),this.addFile=this.addFile.bind(this),this.removeFile=this.removeFile.bind(this),this.pauseResume=this.pauseResume.bind(this),this._calculateProgress=_$lodashThrottle_44(this._calculateProgress.bind(this),500,{leading:!0,trailing:!0}),this.updateOnlineStatus=this.updateOnlineStatus.bind(this),this.resetProgress=this.resetProgress.bind(this),this.pauseAll=this.pauseAll.bind(this),this.resumeAll=this.resumeAll.bind(this),this.retryAll=this.retryAll.bind(this),this.cancelAll=this.cancelAll.bind(this),this.retryUpload=this.retryUpload.bind(this),this.upload=this.upload.bind(this),this.emitter=_$namespaceEmitter_47(),this.on=this.on.bind(this),this.off=this.off.bind(this),this.once=this.emitter.once.bind(this.emitter),this.emit=this.emitter.emit.bind(this.emitter),this.preProcessors=[],this.uploaders=[],this.postProcessors=[],this.store=this.opts.store,this.setState({plugins:{},files:{},currentUploads:{},allowNewUpload:!0,capabilities:{uploadProgress:_$supportsUploadProgress_103(),individualCancellation:!0,resumableUploads:!1},totalProgress:0,meta:___extends_101({},this.opts.meta),info:{isHidden:!0,type:"info",message:""}}),this._storeUnsubscribe=this.store.subscribe(function(e,r,n){t.emit("state-update",e,r,n),t.updateAll(r)}),this.opts.debug&&"undefined"!=typeof window&&(window[this.opts.id]=this),this._addListeners()}var t,r,n=e.prototype;return n.on=function(e,t){return this.emitter.on(e,t),this},n.off=function(e,t){return this.emitter.off(e,t),this},n.updateAll=function(e){this.iteratePlugins(function(t){t.update(e)})},n.setState=function(e){this.store.setState(e)},n.getState=function(){return this.store.getState()},n.setFileState=function(e,t){var r;if(!this.getState().files[e])throw new Error("Can\u2019t set state for "+e+" (the file could have been removed)");this.setState({files:___extends_101({},this.getState().files,(r={},r[e]=___extends_101({},this.getState().files[e],t),r))})},n.resetProgress=function(){var e={percentage:0,bytesUploaded:0,uploadComplete:!1,uploadStarted:null},t=___extends_101({},this.getState().files),r={};Object.keys(t).forEach(function(n){var o=___extends_101({},t[n]);o.progress=___extends_101({},o.progress,e),r[n]=o}),this.setState({files:r,totalProgress:0}),this.emit("reset-progress")},n.addPreProcessor=function(e){this.preProcessors.push(e)},n.removePreProcessor=function(e){var t=this.preProcessors.indexOf(e);-1!==t&&this.preProcessors.splice(t,1)},n.addPostProcessor=function(e){this.postProcessors.push(e)},n.removePostProcessor=function(e){var t=this.postProcessors.indexOf(e);-1!==t&&this.postProcessors.splice(t,1)},n.addUploader=function(e){this.uploaders.push(e)},n.removeUploader=function(e){var t=this.uploaders.indexOf(e);-1!==t&&this.uploaders.splice(t,1)},n.setMeta=function(e){var t=___extends_101({},this.getState().meta,e),r=___extends_101({},this.getState().files);Object.keys(r).forEach(function(t){r[t]=___extends_101({},r[t],{meta:___extends_101({},r[t].meta,e)})}),this.log("Adding metadata:"),this.log(e),this.setState({meta:t,files:r})},n.setFileMeta=function(e,t){var r=___extends_101({},this.getState().files);if(r[e]){var n=___extends_101({},r[e].meta,t);r[e]=___extends_101({},r[e],{meta:n}),this.setState({files:r})}else this.log("Was trying to set metadata for a file that has been removed: ",e)},n.getFile=function(e){return this.getState().files[e]},n.getFiles=function(){var e=this.getState().files;return Object.keys(e).map(function(t){return e[t]})},n._checkMinNumberOfFiles=function(e){var t=this.opts.restrictions.minNumberOfFiles;if(Object.keys(e).length<t)throw new RestrictionError(""+this.i18n("youHaveToAtLeastSelectX",{smart_count:t}))},n._checkRestrictions=function(e){var t=this.opts.restrictions,r=t.maxFileSize,n=t.maxNumberOfFiles,o=t.allowedFileTypes;if(n&&Object.keys(this.getState().files).length+1>n)throw new RestrictionError(""+this.i18n("youCanOnlyUploadX",{smart_count:n}));if(o&&!o.some(function(t){return t.indexOf("/")>-1?!!e.type&&_$mimeMatch_46(e.type,t):"."===t[0]&&e.extension.toLowerCase()===t.substr(1).toLowerCase()})){var i=o.join(", ");throw new RestrictionError(this.i18n("youCanOnlyUploadFileTypes",{types:i}))}if(r&&null!=e.data.size&&e.data.size>r)throw new RestrictionError(this.i18n("exceedsSize")+" "+_$prettyBytes_216(r))},n.addFile=function(e){var t,r=this,n=this.getState(),o=n.files,i=function(e){var t="object"==typeof e?e:new Error(e);throw r.log(t.message),r.info(t.message,"error",5e3),t};!1===n.allowNewUpload&&i(new Error("Cannot add new files: already uploading."));var s=_$getFileType_204(e);e.type=s;var a=this.opts.onBeforeFileAdded(e,o);if(!1!==a){var l;"object"==typeof a&&a&&(e=a),l=e.name?e.name:"image"===s.split("/")[0]?s.split("/")[0]+"."+s.split("/")[1]:"noname";var u=_$getFileNameAndExtension_203(l).extension,c=e.isRemote||!1,p=_$generateFileID_198(e),d=e.meta||{};d.name=l,d.type=s;var h=isFinite(e.data.size)?e.data.size:null,_={source:e.source||"",id:p,name:l,extension:u||"",meta:___extends_101({},this.getState().meta,d),type:s,data:e.data,progress:{percentage:0,bytesUploaded:0,bytesTotal:h,uploadComplete:!1,uploadStarted:null},size:h,isRemote:c,remote:e.remote||"",preview:e.preview};try{this._checkRestrictions(_)}catch(e){this.emit("restriction-failed",_,e),i(e)}this.setState({files:___extends_101({},o,(t={},t[p]=_,t))}),this.emit("file-added",_),this.log("Added file: "+l+", "+p+", mime type: "+s),this.opts.autoProceed&&!this.scheduledAutoProceed&&(this.scheduledAutoProceed=setTimeout(function(){r.scheduledAutoProceed=null,r.upload().catch(function(e){e.isRestriction||r.uppy.log(e.stack||e.message||e)})},4))}else this.log("Not adding file because onBeforeFileAdded returned false")},n.removeFile=function(e){var t=this,r=this.getState(),n=r.files,o=r.currentUploads,i=___extends_101({},n),s=i[e];delete i[e];var a=___extends_101({},o),l=[];Object.keys(a).forEach(function(t){var r=o[t].fileIDs.filter(function(t){return t!==e});0!==r.length?a[t]=___extends_101({},o[t],{fileIDs:r}):l.push(t)}),this.setState({currentUploads:a,files:i}),l.forEach(function(e){t._removeUpload(e)}),this._calculateTotalProgress(),this.emit("file-removed",s),this.log("File removed: "+s.id)},n.pauseResume=function(e){if(this.getState().capabilities.resumableUploads&&!this.getFile(e).uploadComplete){var t=!this.getFile(e).isPaused;return this.setFileState(e,{isPaused:t}),this.emit("upload-pause",e,t),t}},n.pauseAll=function(){var e=___extends_101({},this.getState().files);Object.keys(e).filter(function(t){return!e[t].progress.uploadComplete&&e[t].progress.uploadStarted}).forEach(function(t){var r=___extends_101({},e[t],{isPaused:!0});e[t]=r}),this.setState({files:e}),this.emit("pause-all")},n.resumeAll=function(){var e=___extends_101({},this.getState().files);Object.keys(e).filter(function(t){return!e[t].progress.uploadComplete&&e[t].progress.uploadStarted}).forEach(function(t){var r=___extends_101({},e[t],{isPaused:!1,error:null});e[t]=r}),this.setState({files:e}),this.emit("resume-all")},n.retryAll=function(){var e=___extends_101({},this.getState().files),t=Object.keys(e).filter(function(t){return e[t].error});t.forEach(function(t){var r=___extends_101({},e[t],{isPaused:!1,error:null});e[t]=r}),this.setState({files:e,error:null}),this.emit("retry-all",t);var r=this._createUpload(t);return this._runUpload(r)},n.cancelAll=function(){var e=this;this.emit("cancel-all"),Object.keys(this.getState().files).forEach(function(t){e.removeFile(t)}),this.setState({allowNewUpload:!0,totalProgress:0,error:null})},n.retryUpload=function(e){var t=___extends_101({},this.getState().files),r=___extends_101({},t[e],{error:null,isPaused:!1});t[e]=r,this.setState({files:t}),this.emit("upload-retry",e);var n=this._createUpload([e]);return this._runUpload(n)},n.reset=function(){this.cancelAll()},n._calculateProgress=function(e,t){if(this.getFile(e.id)){var r=isFinite(t.bytesTotal)&&t.bytesTotal>0;this.setFileState(e.id,{progress:___extends_101({},this.getFile(e.id).progress,{bytesUploaded:t.bytesUploaded,bytesTotal:t.bytesTotal,percentage:r?Math.round(t.bytesUploaded/t.bytesTotal*100):0})}),this._calculateTotalProgress()}else this.log("Not setting progress for a file that has been removed: "+e.id)},n._calculateTotalProgress=function(){var e=this.getFiles().filter(function(e){return e.progress.uploadStarted});if(0===e.length)return this.emit("progress",0),void this.setState({totalProgress:0});var t=e.filter(function(e){return null!=e.progress.bytesTotal}),r=e.filter(function(e){return null==e.progress.bytesTotal});if(0!==t.length){var n=t.reduce(function(e,t){return e+t.progress.bytesTotal},0),o=n/t.length;n+=o*r.length;var i=0;t.forEach(function(e){i+=e.progress.bytesUploaded}),r.forEach(function(e){i+=o*(e.progress.percentage||0)/100});var s=0===n?0:Math.round(i/n*100);s>100&&(s=100),this.setState({totalProgress:s}),this.emit("progress",s)}else{var a=100*e.length,l=r.reduce(function(e,t){return e+t.progress.percentage},0),u=Math.round(l/a*100);this.setState({totalProgress:u})}},n._addListeners=function(){var e=this;this.on("error",function(t){e.setState({error:t.message})}),this.on("upload-error",function(t,r,n){e.setFileState(t.id,{error:r.message,response:n}),e.setState({error:r.message});var o=e.i18n("failedToUpload",{file:t.name});"object"==typeof r&&r.message&&(o={message:o,details:r.message}),e.info(o,"error",5e3)}),this.on("upload",function(){e.setState({error:null})}),this.on("upload-started",function(t,r){e.getFile(t.id)?e.setFileState(t.id,{progress:{uploadStarted:Date.now(),uploadComplete:!1,percentage:0,bytesUploaded:0,bytesTotal:t.size}}):e.log("Not setting progress for a file that has been removed: "+t.id)}),this.on("upload-progress",this._calculateProgress),this.on("upload-success",function(t,r){var n=e.getFile(t.id).progress;e.setFileState(t.id,{progress:___extends_101({},n,{uploadComplete:!0,percentage:100,bytesUploaded:n.bytesTotal}),response:r,uploadURL:r.uploadURL,isPaused:!1}),e._calculateTotalProgress()}),this.on("preprocess-progress",function(t,r){e.getFile(t.id)?e.setFileState(t.id,{progress:___extends_101({},e.getFile(t.id).progress,{preprocess:r})}):e.log("Not setting progress for a file that has been removed: "+t.id)}),this.on("preprocess-complete",function(t){if(e.getFile(t.id)){var r=___extends_101({},e.getState().files);r[t.id]=___extends_101({},r[t.id],{progress:___extends_101({},r[t.id].progress)}),delete r[t.id].progress.preprocess,e.setState({files:r})}else e.log("Not setting progress for a file that has been removed: "+t.id)}),this.on("postprocess-progress",function(t,r){e.getFile(t.id)?e.setFileState(t.id,{progress:___extends_101({},e.getState().files[t.id].progress,{postprocess:r})}):e.log("Not setting progress for a file that has been removed: "+t.id)}),this.on("postprocess-complete",function(t){if(e.getFile(t.id)){var r=___extends_101({},e.getState().files);r[t.id]=___extends_101({},r[t.id],{progress:___extends_101({},r[t.id].progress)}),delete r[t.id].progress.postprocess,e.setState({files:r})}else e.log("Not setting progress for a file that has been removed: "+t.id)}),this.on("restored",function(){e._calculateTotalProgress()}),"undefined"!=typeof window&&window.addEventListener&&(window.addEventListener("online",function(){return e.updateOnlineStatus()}),window.addEventListener("offline",function(){return e.updateOnlineStatus()}),setTimeout(function(){return e.updateOnlineStatus()},3e3))},n.updateOnlineStatus=function(){void 0===window.navigator.onLine||window.navigator.onLine?(this.emit("is-online"),this.wasOffline&&(this.emit("back-online"),this.info(this.i18n("connectedToInternet"),"success",3e3),this.wasOffline=!1)):(this.emit("is-offline"),this.info(this.i18n("noInternetConnection"),"error",0),this.wasOffline=!0)},n.getID=function(){return this.opts.id},n.use=function(e,t){if("function"!=typeof e)throw new TypeError("Expected a plugin class, but got "+(null===e?"null":typeof e)+". Please verify that the plugin was imported and spelled correctly.");var r=new e(this,t),n=r.id;if(this.plugins[r.type]=this.plugins[r.type]||[],!n)throw new Error("Your plugin must have an id");if(!r.type)throw new Error("Your plugin must have a type");var o=this.getPlugin(n);if(o){var i="Already found a plugin named '"+o.id+"'. Tried to use: '"+n+"'.\nUppy plugins must have unique 'id' options. See https://uppy.io/docs/plugins/#id.";throw new Error(i)}return e.VERSION&&this.log("Using "+n+" v"+e.VERSION),this.plugins[r.type].push(r),r.install(),this},n.getPlugin=function(e){var t=null;return this.iteratePlugins(function(r){if(r.id===e)return t=r,!1}),t},n.iteratePlugins=function(e){var t=this;Object.keys(this.plugins).forEach(function(r){t.plugins[r].forEach(e)})},n.removePlugin=function(e){this.log("Removing plugin "+e.id),this.emit("plugin-remove",e),e.uninstall&&e.uninstall();var t=this.plugins[e.type].slice(),r=t.indexOf(e);-1!==r&&(t.splice(r,1),this.plugins[e.type]=t);var n=this.getState();delete n.plugins[e.id],this.setState(n)},n.close=function(){var e=this;this.log("Closing Uppy instance "+this.opts.id+": removing all files and uninstalling plugins"),this.reset(),this._storeUnsubscribe(),this.iteratePlugins(function(t){e.removePlugin(t)})},n.info=function(e,t,r){void 0===t&&(t="info"),void 0===r&&(r=3e3);var n="object"==typeof e;this.setState({info:{isHidden:!1,type:t,message:n?e.message:e,details:n?e.details:null}}),this.emit("info-visible"),clearTimeout(this.infoTimeoutID),this.infoTimeoutID=0!==r?setTimeout(this.hideInfo,r):void 0},n.hideInfo=function(){var e=___extends_101({},this.getState().info,{isHidden:!0});this.setState({info:e}),this.emit("info-hidden")},n.log=function(e,t){var r=this.opts.logger;switch(t){case"error":r.error(e);break;case"warning":r.warn(e);break;default:r.debug(e)}},n.run=function(){return this.log("Calling run() is no longer necessary.","warning"),this},n.restore=function(e){return this.log('Core: attempting to restore upload "'+e+'"'),this.getState().currentUploads[e]?this._runUpload(e):(this._removeUpload(e),Promise.reject(new Error("Nonexistent upload")))},n._createUpload=function(e){var t,r=this.getState(),n=r.allowNewUpload,o=r.currentUploads;if(!n)throw new Error("Cannot create a new upload: already uploading.");var i=_$cuid_13();return this.emit("upload",{id:i,fileIDs:e}),this.setState({allowNewUpload:!1!==this.opts.allowMultipleUploads,currentUploads:___extends_101({},o,(t={},t[i]={fileIDs:e,step:0,result:{}},t))}),i},n._getUpload=function(e){return this.getState().currentUploads[e]},n.addResultData=function(e,t){var r;if(this._getUpload(e)){var n=this.getState().currentUploads,o=___extends_101({},n[e],{result:___extends_101({},n[e].result,t)});this.setState({currentUploads:___extends_101({},n,(r={},r[e]=o,r))})}else this.log("Not setting result for an upload that has been removed: "+e)},n._removeUpload=function(e){var t=___extends_101({},this.getState().currentUploads);delete t[e],this.setState({currentUploads:t})},n._runUpload=function(e){var t=this,r=this.getState().currentUploads[e].step,n=[].concat(this.preProcessors,this.uploaders,this.postProcessors),o=Promise.resolve();return n.forEach(function(n,i){i<r||(o=o.then(function(){var r,o=t.getState().currentUploads,s=o[e];if(s){var a=___extends_101({},s,{step:i});return t.setState({currentUploads:___extends_101({},o,(r={},r[e]=a,r))}),n(a.fileIDs,e)}}).then(function(e){return null}))}),o.catch(function(r){t.emit("error",r,e),t._removeUpload(e)}),o.then(function(){var r=t.getState().currentUploads[e];if(r){var n=r.fileIDs.map(function(e){return t.getFile(e)}),o=n.filter(function(e){return!e.error}),i=n.filter(function(e){return e.error});t.addResultData(e,{successful:o,failed:i,uploadID:e})}}).then(function(){var r=t.getState().currentUploads;if(r[e]){var n=r[e].result;return t.emit("complete",n),t._removeUpload(e),n}}).then(function(r){return null==r&&t.log("Not setting result for an upload that has been removed: "+e),r})},n.upload=function(){var e=this;this.plugins.uploader||this.log("No uploader type plugins are used","warning");var t=this.getState().files,r=this.opts.onBeforeUpload(t);return!1===r?Promise.reject(new Error("Not starting the upload because onBeforeUpload returned false")):(r&&"object"==typeof r&&(t=r),Promise.resolve().then(function(){return e._checkMinNumberOfFiles(t)}).then(function(){var r=e.getState().currentUploads,n=Object.keys(r).reduce(function(e,t){return e.concat(r[t].fileIDs)},[]),o=[];Object.keys(t).forEach(function(t){var r=e.getFile(t);r.progress.uploadStarted||-1!==n.indexOf(t)||o.push(r.id)});var i=e._createUpload(o);return e._runUpload(i)}).catch(function(t){t.isRestriction&&e.emit("restriction-failed",null,t),function(t){var r="object"==typeof t?t.message:t,n="object"==typeof t&&t.details?t.details:"";throw e.log(r+" "+n),e.info({message:r,details:n},"error",5e3),"object"==typeof t?t:new Error(t)}(t)}))},t=e,(r=[{key:"state",get:function(){return this.getState()}}])&&___defineProperties_101(t.prototype,r),e}();Uppy.VERSION=_$package_104.version,_$lib_101=function(e){return new Uppy(e)},_$lib_101.Uppy=Uppy,_$lib_101.Plugin=_$Plugin_100,_$lib_101.debugLogger=__debugLogger_101;var _$emitSocketProgress_195=_$lodashThrottle_44(function(e,t,r){var n=t.progress,o=t.bytesUploaded,i=t.bytesTotal;n&&(e.uppy.log("Upload progress: "+n),e.uppy.emit("upload-progress",r,{uploader:e,bytesUploaded:o,bytesTotal:i}))},300,{leading:!0,trailing:!0}),_$getSocketHost_206=function(e){var t=/^(?:https?:\/\/|\/\/)?(?:[^@\n]+@)?(?:www\.)?([^\n]+)/i.exec(e)[1];return(/^http:\/\//i.test(e)?"ws":"wss")+"://"+t},_$limitPromises_214=function(e){var t=0,r=[];return function(o){return function(){for(var i=arguments.length,s=new Array(i),a=0;a<i;a++)s[a]=arguments[a];var l=function(){t++;var e=o.apply(void 0,s);return e.then(n,n),e};return t>=e?new Promise(function(e,t){r.push(function(){l().then(e,t)})}):l()}};function n(){t--;var e=r.shift();e&&e()}},___class_89,___temp_89;function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ___extends_89(){return(___extends_89=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var __Plugin_89=_$lib_101.Plugin,__Socket_89=_$lib_97.Socket,__Provider_89=_$lib_97.Provider,__RequestClient_89=_$lib_97.RequestClient;function createEventTracker(e){var t=[];return{on:function(r,n){return t.push([r,n]),e.on(r,n)},remove:function(){t.forEach(function(t){var r=t[0],n=t[1];e.off(r,n)})}}}function assertServerError(e){if(e&&e.error){var t=new Error(e.message);throw ___extends_89(t,e.error),t}return e}var _$lib_89=(___temp_89=___class_89=function(e){var t,r;function n(t,r){var n;(n=e.call(this,t,r)||this).type="uploader",n.id=n.opts.id||"AwsS3Multipart",n.title="AWS S3 Multipart",n.client=new __RequestClient_89(t,r);var o={timeout:3e4,limit:0,createMultipartUpload:n.createMultipartUpload.bind(_assertThisInitialized(n)),listParts:n.listParts.bind(_assertThisInitialized(n)),prepareUploadPart:n.prepareUploadPart.bind(_assertThisInitialized(n)),abortMultipartUpload:n.abortMultipartUpload.bind(_assertThisInitialized(n)),completeMultipartUpload:n.completeMultipartUpload.bind(_assertThisInitialized(n))};return n.opts=___extends_89({},o,r),n.upload=n.upload.bind(_assertThisInitialized(n)),"number"==typeof n.opts.limit&&0!==n.opts.limit?n.limitRequests=_$limitPromises_214(n.opts.limit):n.limitRequests=function(e){return e},n.uploaders=Object.create(null),n.uploaderEvents=Object.create(null),n.uploaderSockets=Object.create(null),n}r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var o=n.prototype;return o.resetUploaderReferences=function(e,t){void 0===t&&(t={}),this.uploaders[e]&&(this.uploaders[e].abort({really:t.abort||!1}),this.uploaders[e]=null),this.uploaderEvents[e]&&(this.uploaderEvents[e].remove(),this.uploaderEvents[e]=null),this.uploaderSockets[e]&&(this.uploaderSockets[e].close(),this.uploaderSockets[e]=null)},o.assertHost=function(){if(!this.opts.companionUrl)throw new Error("Expected a `companionUrl` option containing a Companion address.")},o.createMultipartUpload=function(e){this.assertHost();var t={};return Object.keys(e.meta).map(function(r){null!=e.meta[r]&&(t[r]=e.meta[r].toString())}),this.client.post("s3/multipart",{filename:e.name,type:e.type,metadata:t}).then(assertServerError)},o.listParts=function(e,t){var r=t.key,n=t.uploadId;this.assertHost();var o=encodeURIComponent(r);return this.client.get("s3/multipart/"+n+"?key="+o).then(assertServerError)},o.prepareUploadPart=function(e,t){var r=t.key,n=t.uploadId,o=t.number;this.assertHost();var i=encodeURIComponent(r);return this.client.get("s3/multipart/"+n+"/"+o+"?key="+i).then(assertServerError)},o.completeMultipartUpload=function(e,t){var r=t.key,n=t.uploadId,o=t.parts;this.assertHost();var i=encodeURIComponent(r),s=encodeURIComponent(n);return this.client.post("s3/multipart/"+s+"/complete?key="+i,{parts:o}).then(assertServerError)},o.abortMultipartUpload=function(e,t){var r=t.key,n=t.uploadId;this.assertHost();var o=encodeURIComponent(r),i=encodeURIComponent(n);return this.client.delete("s3/multipart/"+i+"?key="+o).then(assertServerError)},o.uploadFile=function(e){var t=this;return new Promise(function(r,n){var o=new _$MultipartUploader_88(e.data,___extends_89({createMultipartUpload:t.limitRequests(t.opts.createMultipartUpload.bind(t,e)),listParts:t.limitRequests(t.opts.listParts.bind(t,e)),prepareUploadPart:t.opts.prepareUploadPart.bind(t,e),completeMultipartUpload:t.limitRequests(t.opts.completeMultipartUpload.bind(t,e)),abortMultipartUpload:t.limitRequests(t.opts.abortMultipartUpload.bind(t,e)),limit:t.opts.limit||5,onStart:function(r){var n=t.uppy.getFile(e.id);t.uppy.setFileState(e.id,{s3Multipart:___extends_89({},n.s3Multipart,{key:r.key,uploadId:r.uploadId,parts:[]})})},onProgress:function(r,n){t.uppy.emit("upload-progress",e,{uploader:t,bytesUploaded:r,bytesTotal:n})},onError:function(r){t.uppy.log(r),t.uppy.emit("upload-error",e,r),r.message="Failed because: "+r.message,t.resetUploaderReferences(e.id),n(r)},onSuccess:function(n){var i={uploadURL:n.location};t.resetUploaderReferences(e.id),t.uppy.emit("upload-success",e,i),n.location&&t.uppy.log("Download "+o.file.name+" from "+n.location),r(o)},onPartComplete:function(r){var n=t.uppy.getFile(e.id);n&&(t.uppy.setFileState(e.id,{s3Multipart:___extends_89({},n.s3Multipart,{parts:[].concat(n.s3Multipart.parts,[r])})}),t.uppy.emit("s3-multipart:part-uploaded",n,r))}},e.s3Multipart));t.uploaders[e.id]=o,t.uploaderEvents[e.id]=createEventTracker(t.uppy),t.onFileRemove(e.id,function(n){t.resetUploaderReferences(e.id,{abort:!0}),r("upload "+n.id+" was removed")}),t.onFilePause(e.id,function(e){e?o.pause():o.start()}),t.onPauseAll(e.id,function(){o.pause()}),t.onResumeAll(e.id,function(){o.start()}),e.isPaused||o.start(),e.isRestored||t.uppy.emit("upload-started",e,o)})},o.uploadRemote=function(e){var t=this;return this.resetUploaderReferences(e.id),new Promise(function(r,n){if(e.serverToken)return t.connectToServerSocket(e).then(function(){return r()}).catch(n);t.uppy.emit("upload-started",e),new(e.remote.providerOptions.provider?__Provider_89:__RequestClient_89)(t.uppy,e.remote.providerOptions).post(e.remote.url,___extends_89({},e.remote.body,{protocol:"s3-multipart",size:e.data.size,metadata:e.meta})).then(function(r){return t.uppy.setFileState(e.id,{serverToken:r.token}),e=t.uppy.getFile(e.id)}).then(function(e){return t.connectToServerSocket(e)}).then(function(){r()}).catch(function(e){n(new Error(e))})})},o.connectToServerSocket=function(e){var t=this;return new Promise(function(r,n){var o=e.serverToken,i=_$getSocketHost_206(e.remote.companionUrl),s=new __Socket_89({target:i+"/api/"+o});t.uploaderSockets[s]=s,t.uploaderEvents[e.id]=createEventTracker(t.uppy),t.onFileRemove(e.id,function(n){t.resetUploaderReferences(e.id,{abort:!0}),r("upload "+e.id+" was removed")}),t.onFilePause(e.id,function(e){s.send(e?"pause":"resume",{})}),t.onPauseAll(e.id,function(){return s.send("pause",{})}),t.onResumeAll(e.id,function(){e.error&&s.send("pause",{}),s.send("resume",{})}),t.onRetry(e.id,function(){s.send("pause",{}),s.send("resume",{})}),t.onRetryAll(e.id,function(){s.send("pause",{}),s.send("resume",{})}),e.isPaused&&s.send("pause",{}),s.on("progress",function(r){return _$emitSocketProgress_195(t,r,e)}),s.on("error",function(r){t.uppy.emit("upload-error",e,new Error(r.error)),n(new Error(r.error))}),s.on("success",function(n){var o={uploadURL:n.url};t.uppy.emit("upload-success",e,o),r()})})},o.upload=function(e){var t=this;if(0===e.length)return Promise.resolve();var r=e.map(function(e){var r=t.uppy.getFile(e);return r.isRemote?t.uploadRemote(r):t.uploadFile(r)});return Promise.all(r)},o.onFileRemove=function(e,t){this.uploaderEvents[e].on("file-removed",function(r){e===r.id&&t(r.id)})},o.onFilePause=function(e,t){this.uploaderEvents[e].on("upload-pause",function(r,n){e===r&&t(n)})},o.onRetry=function(e,t){this.uploaderEvents[e].on("upload-retry",function(r){e===r&&t()})},o.onRetryAll=function(e,t){var r=this;this.uploaderEvents[e].on("retry-all",function(n){r.uppy.getFile(e)&&t()})},o.onPauseAll=function(e,t){var r=this;this.uploaderEvents[e].on("pause-all",function(){r.uppy.getFile(e)&&t()})},o.onResumeAll=function(e,t){var r=this;this.uploaderEvents[e].on("resume-all",function(){r.uppy.getFile(e)&&t()})},o.install=function(){var e=this,t=this.uppy.getState().capabilities;this.uppy.setState({capabilities:___extends_89({},t,{resumableUploads:!0})}),this.uppy.addUploader(this.upload),this.uppy.on("cancel-all",function(){e.uppy.getFiles().forEach(function(t){e.resetUploaderReferences(t.id,{abort:!0})})})},o.uninstall=function(){this.uppy.setState({capabilities:___extends_89({},this.uppy.getState().capabilities,{resumableUploads:!1})}),this.uppy.removeUploader(this.upload)},n}(__Plugin_89),___class_89.VERSION=_$package_90.version,___temp_89),_$resolveUrl_56={},root,__factory_56;root=this,__factory_56=function(){return function(){var e=arguments.length;if(0===e)throw new Error("resolveUrl requires at least one argument; got none.");var t=document.createElement("base");if(t.href=arguments[0],1===e)return t.href;var r=document.getElementsByTagName("head")[0];r.insertBefore(t,r.firstChild);for(var n,o=document.createElement("a"),i=1;i<e;i++)o.href=arguments[i],n=o.href,t.href=n;return r.removeChild(t),n}},"function"==typeof define&&define.amd?define(__factory_56):"object"==typeof _$resolveUrl_56?_$resolveUrl_56=__factory_56():root.resolveUrl=__factory_56();var _$package_92={version:"1.2.0"},_$settle_219=function(e){var t=[],r=[];function n(e){t.push(e)}function o(e){r.push(e)}return Promise.all(e.map(function(e){return e.then(n,o)})).then(function(){return{successful:t,failed:r}})},_$package_230={version:"1.2.0"},___class_229,___temp_229;function ___extends_229(){return(___extends_229=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var __Plugin_229=_$lib_101.Plugin,__Provider_229=_$lib_97.Provider,__RequestClient_229=_$lib_97.RequestClient,__Socket_229=_$lib_97.Socket;function buildResponseError(e,t){return t||(t=new Error("Upload error")),"string"==typeof t&&(t=new Error(t)),t instanceof Error||(t=___extends_229(new Error("Upload error"),{data:t})),t.request=e,t}function setTypeInBlob(e){return e.data.slice(0,e.data.size,e.meta.type)}var _$lib_229=(___temp_229=___class_229=function(e){var t,r;function n(t,r){var n;(n=e.call(this,t,r)||this).type="uploader",n.id=n.opts.id||"XHRUpload",n.title="XHRUpload",n.defaultLocale={strings:{timedOut:"Upload stalled for %{seconds} seconds, aborting."}};var o={formData:!0,fieldName:"files[]",method:"post",metaFields:null,responseUrlFieldName:"url",bundle:!1,headers:{},timeout:3e4,limit:0,withCredentials:!1,responseType:"",getResponseData:function(e,t){var r={};try{r=JSON.parse(e)}catch(e){console.log(e)}return r},getResponseError:function(e,t){return new Error("Upload error")},validateStatus:function(e,t,r){return e>=200&&e<300}};if(n.opts=___extends_229({},o,r),n.translator=new _$Translator_192([n.defaultLocale,n.uppy.locale,n.opts.locale]),n.i18n=n.translator.translate.bind(n.translator),n.i18nArray=n.translator.translateArray.bind(n.translator),n.handleUpload=n.handleUpload.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(n)),"number"==typeof n.opts.limit&&0!==n.opts.limit?n.limitUploads=_$limitPromises_214(n.opts.limit):n.limitUploads=function(e){return e},n.opts.bundle&&!n.opts.formData)throw new Error("`opts.formData` must be true when `opts.bundle` is enabled.");return n}r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var o=n.prototype;return o.getOptions=function(e){var t=this.uppy.getState().xhrUpload,r=___extends_229({},this.opts,t||{},e.xhrUpload||{},{headers:{}});return ___extends_229(r.headers,this.opts.headers),t&&___extends_229(r.headers,t.headers),e.xhrUpload&&___extends_229(r.headers,e.xhrUpload.headers),r},o.createProgressTimeout=function(e,t){var r=this.uppy,n=this,o=!1;function i(){r.log("[XHRUpload] timed out");var o=new Error(n.i18n("timedOut",{seconds:Math.ceil(e/1e3)}));t(o)}var s=null;return{progress:function(){o||e>0&&(s&&clearTimeout(s),s=setTimeout(i,e))},done:function(){r.log("[XHRUpload] timer done"),s&&(clearTimeout(s),s=null),o=!0}}},o.addMetadata=function(e,t,r){(Array.isArray(r.metaFields)?r.metaFields:Object.keys(t)).forEach(function(r){e.append(r,t[r])})},o.createFormDataUpload=function(e,t){var r=new FormData;this.addMetadata(r,e.meta,t);var n=setTypeInBlob(e);return e.name?r.append(t.fieldName,n,e.meta.name):r.append(t.fieldName,n),r},o.createBundledUpload=function(e,t){var r=this,n=new FormData,o=this.uppy.getState().meta;return this.addMetadata(n,o,t),e.forEach(function(e){var t=r.getOptions(e),o=setTypeInBlob(e);e.name?n.append(t.fieldName,o,e.name):n.append(t.fieldName,o)}),n},o.createBareUpload=function(e,t){return e.data},o.upload=function(e,t,r){var n=this,o=this.getOptions(e);return this.uppy.log("uploading "+t+" of "+r),new Promise(function(t,r){var i=o.formData?n.createFormDataUpload(e,o):n.createBareUpload(e,o),s=n.createProgressTimeout(o.timeout,function(t){a.abort(),n.uppy.emit("upload-error",e,t),r(t)}),a=new XMLHttpRequest,l=_$cuid_13();a.upload.addEventListener("loadstart",function(e){n.uppy.log("[XHRUpload] "+l+" started")}),a.upload.addEventListener("progress",function(t){n.uppy.log("[XHRUpload] "+l+" progress: "+t.loaded+" / "+t.total),s.progress(),t.lengthComputable&&n.uppy.emit("upload-progress",e,{uploader:n,bytesUploaded:t.loaded,bytesTotal:t.total})}),a.addEventListener("load",function(i){if(n.uppy.log("[XHRUpload] "+l+" finished"),s.done(),o.validateStatus(i.target.status,a.responseText,a)){var u=o.getResponseData(a.responseText,a),c=u[o.responseUrlFieldName],p={status:i.target.status,body:u,uploadURL:c};return n.uppy.emit("upload-success",e,p),c&&n.uppy.log("Download "+e.name+" from "+c),t(e)}var d=o.getResponseData(a.responseText,a),h=buildResponseError(a,o.getResponseError(a.responseText,a)),_={status:i.target.status,body:d};return n.uppy.emit("upload-error",e,h,_),r(h)}),a.addEventListener("error",function(t){n.uppy.log("[XHRUpload] "+l+" errored"),s.done();var i=buildResponseError(a,o.getResponseError(a.responseText,a));return n.uppy.emit("upload-error",e,i),r(i)}),a.open(o.method.toUpperCase(),o.endpoint,!0),a.withCredentials=o.withCredentials,""!==o.responseType&&(a.responseType=o.responseType),Object.keys(o.headers).forEach(function(e){a.setRequestHeader(e,o.headers[e])}),a.send(i),n.uppy.on("file-removed",function(t){t.id===e.id&&(s.done(),a.abort(),r(new Error("File removed")))}),n.uppy.on("cancel-all",function(){s.done(),a.abort(),r(new Error("Upload cancelled"))})})},o.uploadRemote=function(e,t,r){var n=this,o=this.getOptions(e);return new Promise(function(t,r){var i={};(Array.isArray(o.metaFields)?o.metaFields:Object.keys(e.meta)).forEach(function(t){i[t]=e.meta[t]}),new(e.remote.providerOptions.provider?__Provider_229:__RequestClient_229)(n.uppy,e.remote.providerOptions).post(e.remote.url,___extends_229({},e.remote.body,{endpoint:o.endpoint,size:e.data.size,fieldname:o.fieldName,metadata:i,headers:o.headers})).then(function(i){var s=i.token,a=_$getSocketHost_206(e.remote.companionUrl),l=new __Socket_229({target:a+"/api/"+s});l.on("progress",function(t){return _$emitSocketProgress_195(n,t,e)}),l.on("success",function(r){var i=o.getResponseData(r.response.responseText,r.response),s=i[o.responseUrlFieldName],a={status:r.response.status,body:i,uploadURL:s};return n.uppy.emit("upload-success",e,a),l.close(),t()}),l.on("error",function(t){var i=t.response,s=i?o.getResponseError(i.responseText,i):___extends_229(new Error(t.error.message),{cause:t.error});n.uppy.emit("upload-error",e,s),r(s)})})})},o.uploadBundle=function(e){var t=this;return new Promise(function(r,n){var o=t.opts.endpoint,i=t.opts.method,s=t.uppy.getState().xhrUpload,a=t.createBundledUpload(e,___extends_229({},t.opts,s||{})),l=new XMLHttpRequest,u=t.createProgressTimeout(t.opts.timeout,function(e){l.abort(),c(e),n(e)}),c=function(r){e.forEach(function(e){t.uppy.emit("upload-error",e,r)})};l.upload.addEventListener("loadstart",function(e){t.uppy.log("[XHRUpload] started uploading bundle"),u.progress()}),l.upload.addEventListener("progress",function(r){u.progress(),r.lengthComputable&&e.forEach(function(e){t.uppy.emit("upload-progress",e,{uploader:t,bytesUploaded:r.loaded/r.total*e.size,bytesTotal:e.size})})}),l.addEventListener("load",function(o){if(u.done(),t.opts.validateStatus(o.target.status,l.responseText,l)){var i=t.opts.getResponseData(l.responseText,l),s={status:o.target.status,body:i};return e.forEach(function(e){t.uppy.emit("upload-success",e,s)}),r()}var a=t.opts.getResponseError(l.responseText,l)||new Error("Upload error");return a.request=l,c(a),n(a)}),l.addEventListener("error",function(e){u.done();var r=t.opts.getResponseError(l.responseText,l)||new Error("Upload error");return c(r),n(r)}),t.uppy.on("cancel-all",function(){u.done(),l.abort()}),l.open(i.toUpperCase(),o,!0),l.withCredentials=t.opts.withCredentials,""!==t.opts.responseType&&(l.responseType=t.opts.responseType),Object.keys(t.opts.headers).forEach(function(e){l.setRequestHeader(e,t.opts.headers[e])}),l.send(a),e.forEach(function(e){t.uppy.emit("upload-started",e)})})},o.uploadFiles=function(e){var t=this,r=e.map(function(r,n){var o=parseInt(n,10)+1,i=e.length;return r.error?function(){return Promise.reject(new Error(r.error))}:r.isRemote?(t.uppy.emit("upload-started",r),t.uploadRemote.bind(t,r,o,i)):(t.uppy.emit("upload-started",r),t.upload.bind(t,r,o,i))}).map(function(e){return t.limitUploads(e)()});return _$settle_219(r)},o.handleUpload=function(e){var t=this;if(0===e.length)return this.uppy.log("[XHRUpload] No files to upload!"),Promise.resolve();this.uppy.log("[XHRUpload] Uploading...");var r=e.map(function(e){return t.uppy.getFile(e)});return this.opts.bundle?this.uploadBundle(r):this.uploadFiles(r).then(function(){return null})},o.install=function(){if(this.opts.bundle){var e=this.uppy.getState().capabilities;this.uppy.setState({capabilities:___extends_229({},e,{individualCancellation:!1})})}this.uppy.addUploader(this.handleUpload)},o.uninstall=function(){if(this.opts.bundle){var e=this.uppy.getState().capabilities;this.uppy.setState({capabilities:___extends_229({},e,{individualCancellation:!0})})}this.uppy.removeUploader(this.handleUpload)},n}(__Plugin_229),___class_229.VERSION=_$package_230.version,___temp_229),___class_91,___temp_91;function ___assertThisInitialized_91(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ___extends_91(){return(___extends_91=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var __Plugin_91=_$lib_101.Plugin,__RequestClient_91=_$lib_97.RequestClient;function isXml(e){var t=e.headers?e.headers["content-type"]:e.getResponseHeader("Content-Type");return"string"==typeof t&&"application/xml"===t.toLowerCase()}function getXmlValue(e,t){var r=e.indexOf("<"+t+">"),n=e.indexOf("</"+t+">",r);return-1!==r&&-1!==n?e.slice(r+t.length+2,n):""}function __assertServerError_91(e){if(e&&e.error){var t=new Error(e.message);throw ___extends_91(t,e.error),t}return e}var _$lib_91=(___temp_91=___class_91=function(e){var t,r;function n(t,r){var n;(n=e.call(this,t,r)||this).type="uploader",n.id=n.opts.id||"AwsS3",n.title="AWS S3",n.defaultLocale={strings:{preparingUpload:"Preparing upload..."}};var o={timeout:3e4,limit:0,getUploadParameters:n.getUploadParameters.bind(___assertThisInitialized_91(n))};return n.opts=___extends_91({},o,r),n.translator=new _$Translator_192([n.defaultLocale,n.uppy.locale,n.opts.locale]),n.i18n=n.translator.translate.bind(n.translator),n.i18nArray=n.translator.translateArray.bind(n.translator),n.client=new __RequestClient_91(t,r),n.prepareUpload=n.prepareUpload.bind(___assertThisInitialized_91(n)),"number"==typeof n.opts.limit&&0!==n.opts.limit?n.limitRequests=_$limitPromises_214(n.opts.limit):n.limitRequests=function(e){return e},n}r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var o=n.prototype;return o.getUploadParameters=function(e){if(!this.opts.companionUrl)throw new Error("Expected a `companionUrl` option containing a Companion address.");var t=encodeURIComponent(e.meta.name),r=encodeURIComponent(e.meta.type);return this.client.get("s3/params?filename="+t+"&type="+r).then(__assertServerError_91)},o.validateParameters=function(e,t){if("object"!=typeof t||!t||"string"!=typeof t.url||"object"!=typeof t.fields&&null!=t.fields||null!=t.method&&!/^(put|post)$/i.test(t.method)){var r=new TypeError("AwsS3: got incorrect result from 'getUploadParameters()' for file '"+e.name+"', expected an object '{ url, method, fields, headers }'.\nSee https://uppy.io/docs/aws-s3/#getUploadParameters-file for more on the expected format.");throw console.error(r),r}return t},o.prepareUpload=function(e){var t=this;e.forEach(function(e){var r=t.uppy.getFile(e);t.uppy.emit("preprocess-progress",r,{mode:"determinate",message:t.i18n("preparingUpload"),value:0})});var r=this.limitRequests(this.opts.getUploadParameters);return Promise.all(e.map(function(e){var n=t.uppy.getFile(e);return Promise.resolve().then(function(){return r(n)}).then(function(e){return t.validateParameters(n,e)}).then(function(e){return t.uppy.emit("preprocess-progress",n,{mode:"determinate",message:t.i18n("preparingUpload"),value:1}),e}).catch(function(e){t.uppy.emit("upload-error",n,e)})})).then(function(r){var n={};e.forEach(function(e,o){var i=t.uppy.getFile(e);if(i&&!i.error){var s=r[o],a=s.method,l=void 0===a?"post":a,u=s.url,c=s.fields,p=s.headers,d={method:l,formData:"post"===l.toLowerCase(),endpoint:u,metaFields:c?Object.keys(c):[]};p&&(d.headers=p);var h=___extends_91({},i,{meta:___extends_91({},i.meta,c),xhrUpload:d});n[e]=h}}),t.uppy.setState({files:___extends_91({},t.uppy.getState().files,n)}),e.forEach(function(e){var r=t.uppy.getFile(e);t.uppy.emit("preprocess-complete",r)})})},o.install=function(){var e=this.uppy.log;this.uppy.addPreProcessor(this.prepareUpload);var t=!1,r={fieldName:"file",responseUrlFieldName:"location",timeout:this.opts.timeout,limit:this.opts.limit,responseType:"text",getResponseData:function(r,n){return isXml(n)?{location:_$resolveUrl_56(n.responseURL,getXmlValue(r,"Location")),bucket:getXmlValue(r,"Bucket"),key:getXmlValue(r,"Key"),etag:getXmlValue(r,"ETag")}:"POST"===this.method.toUpperCase()?(t||(e("[AwsS3] No response data found, make sure to set the success_action_status AWS SDK option to 201. See https://uppy.io/docs/aws-s3/#POST-Uploads","warning"),t=!0),{location:null}):n.responseURL?{location:n.responseURL.replace(/\?.*$/,"")}:{location:null}},getResponseError:function(e,t){if(isXml(t)){var r=getXmlValue(e,"Message");return new Error(r)}}};this.opts.getResponseData&&(r.getResponseData=this.opts.getResponseData),this.uppy.use(_$lib_229,r)},o.uninstall=function(){var e=this.uppy.getPlugin("XHRUpload");this.uppy.removePlugin(e),this.uppy.removePreProcessor(this.prepareUpload)},n}(__Plugin_91),___class_91.VERSION=_$package_92.version,___temp_91);function areInputsEqual(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}var _$memoizeOneCjs_45=function(e,t){var r;void 0===t&&(t=areInputsEqual);var n,o=[],i=!1;return function(){for(var s=arguments.length,a=new Array(s),l=0;l<s;l++)a[l]=arguments[l];return i&&r===this&&t(a,o)?n:(n=e.apply(this,a),i=!0,r=this,o=a,n)}},_$ResizeObserver_55={exports:{}};(function(e){!function(e,t){"object"==typeof _$ResizeObserver_55.exports?_$ResizeObserver_55.exports=t():"function"==typeof define&&define.amd?define(t):e.ResizeObserver=t()}(this,function(){"use strict";var t=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var r=-1;return e.some(function(e,n){return e[0]===t&&(r=n,!0)}),r}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var r=e(this.__entries__,t),n=this.__entries__[r];return n&&n[1]},t.prototype.set=function(t,r){var n=e(this.__entries__,t);~n?this.__entries__[n][1]=r:this.__entries__.push([t,r])},t.prototype.delete=function(t){var r=this.__entries__,n=e(r,t);~n&&r.splice(n,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var r=0,n=this.__entries__;r<n.length;r++){var o=n[r];e.call(t,o[1],o[0])}},t}()}(),r="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,n=void 0!==e&&e.Math===Math?e:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),o="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(n):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)},i=2,s=20,a=["top","right","bottom","left","width","height","size","weight"],l="undefined"!=typeof MutationObserver,u=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var r=!1,n=!1,s=0;function a(){r&&(r=!1,e()),n&&u()}function l(){o(a)}function u(){var e=Date.now();if(r){if(e-s<i)return;n=!0}else r=!0,n=!1,setTimeout(l,t);s=e}return u}(this.refresh.bind(this),s)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,r=t.indexOf(e);~r&&t.splice(r,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter(function(e){return e.gatherActive(),e.hasActive()});return e.forEach(function(e){return e.broadcastActive()}),e.length>0},e.prototype.connect_=function(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),l?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){r&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,r=void 0===t?"":t;a.some(function(e){return!!~r.indexOf(e)})&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),c=function(e,t){for(var r=0,n=Object.keys(t);r<n.length;r++){var o=n[r];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},p=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||n},d=m(0,0,0,0);function h(e){return parseFloat(e)||0}function _(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return t.reduce(function(t,r){return t+h(e["border-"+r+"-width"])},0)}var f="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof p(e).SVGGraphicsElement}:function(e){return e instanceof p(e).SVGElement&&"function"==typeof e.getBBox};function g(e){return r?f(e)?function(e){var t=e.getBBox();return m(0,0,t.width,t.height)}(e):function(e){var t=e.clientWidth,r=e.clientHeight;if(!t&&!r)return d;var n=p(e).getComputedStyle(e),o=function(e){for(var t={},r=0,n=["top","right","bottom","left"];r<n.length;r++){var o=n[r],i=e["padding-"+o];t[o]=h(i)}return t}(n),i=o.left+o.right,s=o.top+o.bottom,a=h(n.width),l=h(n.height);if("border-box"===n.boxSizing&&(Math.round(a+i)!==t&&(a-=_(n,"left","right")+i),Math.round(l+s)!==r&&(l-=_(n,"top","bottom")+s)),!function(e){return e===p(e).document.documentElement}(e)){var u=Math.round(a+i)-t,c=Math.round(l+s)-r;1!==Math.abs(u)&&(a-=u),1!==Math.abs(c)&&(l-=c)}return m(o.left,o.top,a,l)}(e):d}function m(e,t,r,n){return{x:e,y:t,width:r,height:n}}var y=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=m(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=g(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),v=function(e,t){var r,n,o,i,s,a,l,u=(n=(r=t).x,o=r.y,i=r.width,s=r.height,a="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,l=Object.create(a.prototype),c(l,{x:n,y:o,width:i,height:s,top:o,right:n+i,bottom:s+o,left:n}),l);c(this,{target:e,contentRect:u})},b=function(){function e(e,r,n){if(this.activeObservations_=[],this.observations_=new t,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=r,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof p(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new y(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof p(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(t){t.isActive()&&e.activeObservations_.push(t)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map(function(e){return new v(e.target,e.broadcastRect())});this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),w="undefined"!=typeof WeakMap?new WeakMap:new t,S=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var r=u.getInstance(),n=new b(t,r,this);w.set(this,n)};return["observe","unobserve","disconnect"].forEach(function(e){S.prototype[e]=function(){var t;return(t=w.get(this))[e].apply(t,arguments)}}),void 0!==n.ResizeObserver?n.ResizeObserver:S})}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{}),_$ResizeObserver_55=_$ResizeObserver_55.exports;var _$classnames_9={exports:{}};!function(){"use strict";var e={}.hasOwnProperty;function t(){for(var r=[],n=0;n<arguments.length;n++){var o=arguments[n];if(o){var i=typeof o;if("string"===i||"number"===i)r.push(o);else if(Array.isArray(o)&&o.length){var s=t.apply(null,o);s&&r.push(s)}else if("object"===i)for(var a in o)e.call(o,a)&&o[a]&&r.push(a)}}return r.join(" ")}_$classnames_9.exports?(t.default=t,_$classnames_9.exports=t):"function"==typeof define&&"object"==typeof define.amd&&define.amd?define("classnames",[],function(){return t}):window.classNames=t}(),_$classnames_9=_$classnames_9.exports;var _$preactCssTransitionGroup_50={exports:{}},__global_50,__factory_50;__global_50=this,__factory_50=function(e){"use strict";function t(e){return e.attributes&&e.attributes.key}function r(e){return e.base}function n(e){return e&&e.filter(function(e){return null!==e})}function o(e,t){for(var r=e.length;r--;)if(t(e[r]))return!0;return!1}function i(e,r){return o(e,function(e){return t(e)===r})}function s(e,r){return i(e,t(r))}function a(e,r,n){return o(e,function(e){return t(e)===r&&e.props[n]})}function l(e,r,n){return a(e,t(r),n)}var u=" ",c=/[\n\t\r]+/g,p=function(e){return(u+e+u).replace(c,u)};function d(e,t){var r;e.classList?(r=e.classList).add.apply(r,t.split(" ")):e.className+=" "+t}function h(e,t){if(t=t.trim(),e.classList){var r;(r=e.classList).remove.apply(r,t.split(" "))}else{var n=e.className.trim(),o=p(n);for(t=u+t+u;o.indexOf(t)>=0;)o=o.replace(t,u);e.className=o.trim()}}var _={transitionend:{transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"mozTransitionEnd",OTransition:"oTransitionEnd",msTransition:"MSTransitionEnd"},animationend:{animation:"animationend",WebkitAnimation:"webkitAnimationEnd",MozAnimation:"mozAnimationEnd",OAnimation:"oAnimationEnd",msAnimation:"MSAnimationEnd"}},f=[];"undefined"!=typeof window&&function(){var e=document.createElement("div").style;for(var t in"AnimationEvent"in window||delete _.animationend.animation,"TransitionEvent"in window||delete _.transitionend.transition,_){var r=_[t];for(var n in r)if(n in e){f.push(r[n]);break}}}();var g=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},m=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},y=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},v=function(e){function t(){var n,o;g(this,t);for(var i=arguments.length,s=Array(i),a=0;a<i;a++)s[a]=arguments[a];return n=o=y(this,e.call.apply(e,[this].concat(s))),o.flushClassNameQueue=function(){r(o)&&d(r(o),o.classNameQueue.join(" ")),o.classNameQueue.length=0,o.timeout=null},y(o,n)}return m(t,e),t.prototype.transition=function(e,t,n){var o=this,i=r(this),s=this.props.name[e]||this.props.name+"-"+e,a=this.props.name[e+"Active"]||s+"-active",l=null;this.endListener&&this.endListener(),this.endListener=function(e){e&&e.target!==i||(clearTimeout(l),h(i,s),h(i,a),function(e,t){f.length&&f.forEach(function(r){e.removeEventListener(r,t,!1)})}(i,o.endListener),o.endListener=null,t&&t())},n?(l=setTimeout(this.endListener,n),this.transitionTimeouts.push(l)):function(e,t){if(!f.length)return window.setTimeout(t,0);f.forEach(function(r){e.addEventListener(r,t,!1)})}(i,this.endListener),d(i,s),this.queueClass(a)},t.prototype.queueClass=function(e){this.classNameQueue.push(e),this.timeout||(this.timeout=setTimeout(this.flushClassNameQueue,17))},t.prototype.stop=function(){this.timeout&&(clearTimeout(this.timeout),this.classNameQueue.length=0,this.timeout=null),this.endListener&&this.endListener()},t.prototype.componentWillMount=function(){this.classNameQueue=[],this.transitionTimeouts=[]},t.prototype.componentWillUnmount=function(){this.timeout&&clearTimeout(this.timeout),this.transitionTimeouts.forEach(function(e){clearTimeout(e)})},t.prototype.componentWillEnter=function(e){this.props.enter?this.transition("enter",e,this.props.enterTimeout):e()},t.prototype.componentWillLeave=function(e){this.props.leave?this.transition("leave",e,this.props.leaveTimeout):e()},t.prototype.render=function(){return(e=this.props.children)&&e[0];var e},t}(e.Component),b=function(r){function o(n){g(this,o);var i=y(this,r.call(this));return i.renderChild=function(r){var n=i.props,o=n.transitionName,s=n.transitionEnter,a=n.transitionLeave,l=n.transitionEnterTimeout,u=n.transitionLeaveTimeout,c=t(r);return e.h(v,{key:c,ref:function(e){(i.refs[c]=e)||(r=null)},name:o,enter:s,leave:a,enterTimeout:l,leaveTimeout:u},r)},i.refs={},i.state={children:(n.children||[]).slice()},i}return m(o,r),o.prototype.shouldComponentUpdate=function(e,t){return t.children!==this.state.children},o.prototype.componentWillMount=function(){this.currentlyTransitioningKeys={},this.keysToEnter=[],this.keysToLeave=[]},o.prototype.componentWillReceiveProps=function(r){var o,a,u,c,p=this,d=r.children,h=r.exclusive,_=r.showProp,f=n(d||[]).slice(),g=n(h?this.props.children:this.state.children),m=(o=f,a=[],u={},c=[],g.forEach(function(e){var r=t(e);i(o,r)?c.length&&(u[r]=c,c=[]):c.push(e)}),o.forEach(function(e){var r=t(e);u.hasOwnProperty(r)&&(a=a.concat(u[r])),a.push(e)}),a.concat(c));_&&(m=m.map(function(t){var r;return!t.props[_]&&l(g,t,_)&&(t=e.cloneElement(t,((r={})[_]=!0,r))),t})),h&&m.forEach(function(e){return p.stop(t(e))}),this.setState({children:m}),this.forceUpdate(),f.forEach(function(e){var t=e.key,r=g&&s(g,e);if(_){if(r){var n=l(g,e,_),o=e.props[_];n||!o||p.currentlyTransitioningKeys[t]||p.keysToEnter.push(t)}}else r||p.currentlyTransitioningKeys[t]||p.keysToEnter.push(t)}),g.forEach(function(e){var t=e.key,r=f&&s(f,e);if(_){if(r){var n=l(f,e,_),o=e.props[_];n||!o||p.currentlyTransitioningKeys[t]||p.keysToLeave.push(t)}}else r||p.currentlyTransitioningKeys[t]||p.keysToLeave.push(t)})},o.prototype.performEnter=function(e){var t=this;this.currentlyTransitioningKeys[e]=!0;var r=this.refs[e];r.componentWillEnter?r.componentWillEnter(function(){return t._handleDoneEntering(e)}):this._handleDoneEntering(e)},o.prototype._handleDoneEntering=function(e){delete this.currentlyTransitioningKeys[e];var t=n(this.props.children),r=this.props.showProp;!t||!r&&!i(t,e)||r&&!a(t,e,r)?this.performLeave(e):this.setState({children:t})},o.prototype.stop=function(e){delete this.currentlyTransitioningKeys[e];var t=this.refs[e];t&&t.stop()},o.prototype.performLeave=function(e){var t=this;this.currentlyTransitioningKeys[e]=!0;var r=this.refs[e];r&&r.componentWillLeave?r.componentWillLeave(function(){return t._handleDoneLeaving(e)}):this._handleDoneLeaving(e)},o.prototype._handleDoneLeaving=function(e){delete this.currentlyTransitioningKeys[e];var t=this.props.showProp,r=n(this.props.children);t&&r&&a(r,e,t)?this.performEnter(e):!t&&r&&i(r,e)?this.performEnter(e):this.setState({children:r})},o.prototype.componentDidUpdate=function(){var e=this,t=this.keysToEnter,r=this.keysToLeave;this.keysToEnter=[],t.forEach(function(t){return e.performEnter(t)}),this.keysToLeave=[],r.forEach(function(t){return e.performLeave(t)})},o.prototype.render=function(t,r){var o=t.component,i=(t.transitionName,t.transitionEnter,t.transitionLeave,t.transitionEnterTimeout,t.transitionLeaveTimeout,t.children,function(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}(t,["component","transitionName","transitionEnter","transitionLeave","transitionEnterTimeout","transitionLeaveTimeout","children"])),s=r.children;return e.h(o,i,n(s).map(this.renderChild))},o}(e.Component);return b.defaultProps={component:"span",transitionEnter:!0,transitionLeave:!0},b},"object"==typeof _$preactCssTransitionGroup_50.exports?_$preactCssTransitionGroup_50.exports=__factory_50(_$preact_51):"function"==typeof define&&define.amd?define(["preact"],__factory_50):__global_50.PreactCSSTransitionGroup=__factory_50(__global_50.preact),_$preactCssTransitionGroup_50=_$preactCssTransitionGroup_50.exports;var h=_$preact_51.h,_$icons_119={defaultPickerIcon:function(){return h("svg",{"aria-hidden":"true",focusable:"false",width:"30",height:"30",viewBox:"0 0 30 30"},h("path",{d:"M15 30c8.284 0 15-6.716 15-15 0-8.284-6.716-15-15-15C6.716 0 0 6.716 0 15c0 8.284 6.716 15 15 15zm4.258-12.676v6.846h-8.426v-6.846H5.204l9.82-12.364 9.82 12.364H19.26z"}))},iconRetry:function(){return h("svg",{"aria-hidden":"true",focusable:"false",class:"UppyIcon retry",width:"28",height:"31",viewBox:"0 0 16 19"},h("path",{d:"M16 11a8 8 0 1 1-8-8v2a6 6 0 1 0 6 6h2z"}),h("path",{d:"M7.9 3H10v2H7.9z"}),h("path",{d:"M8.536.5l3.535 3.536-1.414 1.414L7.12 1.914z"}),h("path",{d:"M10.657 2.621l1.414 1.415L8.536 7.57 7.12 6.157z"}))},localIcon:function(){return h("svg",{"aria-hidden":"true",focusable:"false",fill:"#607d8b",width:"27",height:"25",viewBox:"0 0 27 25"},h("path",{d:"M5.586 9.288a.313.313 0 0 0 .282.176h4.84v3.922c0 1.514 1.25 2.24 2.792 2.24 1.54 0 2.79-.726 2.79-2.24V9.464h4.84c.122 0 .23-.068.284-.176a.304.304 0 0 0-.046-.324L13.735.106a.316.316 0 0 0-.472 0l-7.63 8.857a.302.302 0 0 0-.047.325z"}),h("path",{d:"M24.3 5.093c-.218-.76-.54-1.187-1.208-1.187h-4.856l1.018 1.18h3.948l2.043 11.038h-7.193v2.728H9.114v-2.725h-7.36l2.66-11.04h3.33l1.018-1.18H3.907c-.668 0-1.06.46-1.21 1.186L0 16.456v7.062C0 24.338.676 25 1.51 25h23.98c.833 0 1.51-.663 1.51-1.482v-7.062L24.3 5.093z"}))},iconAudio:function(){return h("svg",{"aria-hidden":"true",focusable:"false",class:"UppyIcon",width:"25",height:"25",viewBox:"0 0 25 25"},h("path",{d:"M9.5 18.64c0 1.14-1.145 2-2.5 2s-2.5-.86-2.5-2c0-1.14 1.145-2 2.5-2 .557 0 1.079.145 1.5.396V7.25a.5.5 0 0 1 .379-.485l9-2.25A.5.5 0 0 1 18.5 5v11.64c0 1.14-1.145 2-2.5 2s-2.5-.86-2.5-2c0-1.14 1.145-2 2.5-2 .557 0 1.079.145 1.5.396V8.67l-8 2v7.97zm8-11v-2l-8 2v2l8-2zM7 19.64c.855 0 1.5-.484 1.5-1s-.645-1-1.5-1-1.5.484-1.5 1 .645 1 1.5 1zm9-2c.855 0 1.5-.484 1.5-1s-.645-1-1.5-1-1.5.484-1.5 1 .645 1 1.5 1z",fill:"#049BCF","fill-rule":"nonzero"}))},iconVideo:function(){return h("svg",{"aria-hidden":"true",focusable:"false",class:"UppyIcon",width:"25",height:"25",viewBox:"0 0 25 25"},h("path",{d:"M16 11.834l4.486-2.691A1 1 0 0 1 22 10v6a1 1 0 0 1-1.514.857L16 14.167V17a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V9a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v2.834zM15 9H5v8h10V9zm1 4l5 3v-6l-5 3z",fill:"#19AF67","fill-rule":"nonzero"}))},iconPDF:function(){return h("svg",{"aria-hidden":"true",focusable:"false",class:"UppyIcon",width:"25",height:"25",viewBox:"0 0 25 25"},h("path",{d:"M9.766 8.295c-.691-1.843-.539-3.401.747-3.726 1.643-.414 2.505.938 2.39 3.299-.039.79-.194 1.662-.537 3.148.324.49.66.967 1.055 1.51.17.231.382.488.629.757 1.866-.128 3.653.114 4.918.655 1.487.635 2.192 1.685 1.614 2.84-.566 1.133-1.839 1.084-3.416.249-1.141-.604-2.457-1.634-3.51-2.707a13.467 13.467 0 0 0-2.238.426c-1.392 4.051-4.534 6.453-5.707 4.572-.986-1.58 1.38-4.206 4.914-5.375.097-.322.185-.656.264-1.001.08-.353.306-1.31.407-1.737-.678-1.059-1.2-2.031-1.53-2.91zm2.098 4.87c-.033.144-.068.287-.104.427l.033-.01-.012.038a14.065 14.065 0 0 1 1.02-.197l-.032-.033.052-.004a7.902 7.902 0 0 1-.208-.271c-.197-.27-.38-.526-.555-.775l-.006.028-.002-.003c-.076.323-.148.632-.186.8zm5.77 2.978c1.143.605 1.832.632 2.054.187.26-.519-.087-1.034-1.113-1.473-.911-.39-2.175-.608-3.55-.608.845.766 1.787 1.459 2.609 1.894zM6.559 18.789c.14.223.693.16 1.425-.413.827-.648 1.61-1.747 2.208-3.206-2.563 1.064-4.102 2.867-3.633 3.62zm5.345-10.97c.088-1.793-.351-2.48-1.146-2.28-.473.119-.564 1.05-.056 2.405.213.566.52 1.188.908 1.859.18-.858.268-1.453.294-1.984z",fill:"#E2514A","fill-rule":"nonzero"}))},iconFile:function(){return h("svg",{"aria-hidden":"true",focusable:"false",class:"UppyIcon",width:"25",height:"25",viewBox:"0 0 25 25"},h("g",{fill:"#A7AFB7","fill-rule":"nonzero"},h("path",{d:"M5.5 22a.5.5 0 0 1-.5-.5v-18a.5.5 0 0 1 .5-.5h10.719a.5.5 0 0 1 .367.16l3.281 3.556a.5.5 0 0 1 .133.339V21.5a.5.5 0 0 1-.5.5h-14zm.5-1h13V7.25L16 4H6v17z"}),h("path",{d:"M15 4v3a1 1 0 0 0 1 1h3V7h-3V4h-1z"})))},iconText:function(){return h("svg",{"aria-hidden":"true",focusable:"false",class:"UppyIcon",width:"25",height:"25",viewBox:"0 0 25 25"},h("path",{d:"M4.5 7h13a.5.5 0 1 1 0 1h-13a.5.5 0 0 1 0-1zm0 3h15a.5.5 0 1 1 0 1h-15a.5.5 0 1 1 0-1zm0 3h15a.5.5 0 1 1 0 1h-15a.5.5 0 1 1 0-1zm0 3h10a.5.5 0 1 1 0 1h-10a.5.5 0 1 1 0-1z",fill:"#5A5E69","fill-rule":"nonzero"}))},iconCopyLink:function(){return h("svg",{"aria-hidden":"true",focusable:"false",class:"UppyIcon",width:"14",height:"14",viewBox:"0 0 14 12"},h("path",{d:"M7.94 7.703a2.613 2.613 0 0 1-.626 2.681l-.852.851a2.597 2.597 0 0 1-1.849.766A2.616 2.616 0 0 1 2.764 7.54l.852-.852a2.596 2.596 0 0 1 2.69-.625L5.267 7.099a1.44 1.44 0 0 0-.833.407l-.852.851a1.458 1.458 0 0 0 1.03 2.486c.39 0 .755-.152 1.03-.426l.852-.852c.231-.231.363-.522.406-.824l1.04-1.038zm4.295-5.937A2.596 2.596 0 0 0 10.387 1c-.698 0-1.355.272-1.849.766l-.852.851a2.614 2.614 0 0 0-.624 2.688l1.036-1.036c.041-.304.173-.6.407-.833l.852-.852c.275-.275.64-.426 1.03-.426a1.458 1.458 0 0 1 1.03 2.486l-.852.851a1.442 1.442 0 0 1-.824.406l-1.04 1.04a2.596 2.596 0 0 0 2.683-.628l.851-.85a2.616 2.616 0 0 0 0-3.697zm-6.88 6.883a.577.577 0 0 0 .82 0l3.474-3.474a.579.579 0 1 0-.819-.82L5.355 7.83a.579.579 0 0 0 0 .819z"}))},iconPencil:function(){return h("svg",{"aria-hidden":"true",focusable:"false",class:"UppyIcon",width:"14",height:"14",viewBox:"0 0 14 14"},h("g",{"fill-rule":"evenodd"},h("path",{d:"M1.5 10.793h2.793A1 1 0 0 0 5 10.5L11.5 4a1 1 0 0 0 0-1.414L9.707.793a1 1 0 0 0-1.414 0l-6.5 6.5A1 1 0 0 0 1.5 8v2.793zm1-1V8L9 1.5l1.793 1.793-6.5 6.5H2.5z","fill-rule":"nonzero"}),h("rect",{x:"1",y:"12.293",width:"11",height:"1",rx:".5"}),h("path",{"fill-rule":"nonzero",d:"M6.793 2.5L9.5 5.207l.707-.707L7.5 1.793z"})))},iconCross:function(){return h("svg",{"aria-hidden":"true",focusable:"false",class:"UppyIcon",width:"18",height:"18",viewBox:"0 0 18 18"},h("path",{d:"M9 0C4.034 0 0 4.034 0 9s4.034 9 9 9 9-4.034 9-9-4.034-9-9-9z"}),h("path",{fill:"#FFF",d:"M13 12.222l-.778.778L9 9.778 5.778 13 5 12.222 8.222 9 5 5.778 5.778 5 9 8.222 12.222 5l.778.778L9.778 9z"}))},iconPlus:function(){return h("svg",{"aria-hidden":"true",focusable:"false",class:"UppyIcon",width:"15",height:"15",viewBox:"0 0 15 15"},h("path",{d:"M8 6.5h6a.5.5 0 0 1 .5.5v.5a.5.5 0 0 1-.5.5H8v6a.5.5 0 0 1-.5.5H7a.5.5 0 0 1-.5-.5V8h-6a.5.5 0 0 1-.5-.5V7a.5.5 0 0 1 .5-.5h6v-6A.5.5 0 0 1 7 0h.5a.5.5 0 0 1 .5.5v6z"}))}};function ___assertThisInitialized_105(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var localIcon=_$icons_119.localIcon,__h_105=_$preact_51.h,AddFiles=function(e){var t,r;function n(t){var r;return(r=e.call(this,t)||this).triggerFileInputClick=r.triggerFileInputClick.bind(___assertThisInitialized_105(r)),r.handleFileInputChange=r.handleFileInputChange.bind(___assertThisInitialized_105(r)),r.renderPoweredByUppy=r.renderPoweredByUppy.bind(___assertThisInitialized_105(r)),r.renderHiddenFileInput=r.renderHiddenFileInput.bind(___assertThisInitialized_105(r)),r.renderDropPasteBrowseTagline=r.renderDropPasteBrowseTagline.bind(___assertThisInitialized_105(r)),r.renderMyDeviceAcquirer=r.renderMyDeviceAcquirer.bind(___assertThisInitialized_105(r)),r.renderAcquirer=r.renderAcquirer.bind(___assertThisInitialized_105(r)),r}r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var o=n.prototype;return o.triggerFileInputClick=function(){this.fileInput.click()},o.handleFileInputChange=function(e){this.props.handleInputChange(e),e.target.value=null},o.renderPoweredByUppy=function(){return __h_105("a",{tabindex:"-1",href:"https://uppy.io",rel:"noreferrer noopener",target:"_blank",class:"uppy-Dashboard-poweredBy"},this.props.i18n("poweredBy")+" ",__h_105("svg",{"aria-hidden":"true",focusable:"false",class:"UppyIcon uppy-Dashboard-poweredByIcon",width:"11",height:"11",viewBox:"0 0 11 11"},__h_105("path",{d:"M7.365 10.5l-.01-4.045h2.612L5.5.806l-4.467 5.65h2.604l.01 4.044h3.718z","fill-rule":"evenodd"})),__h_105("span",{class:"uppy-Dashboard-poweredByUppy"},"Uppy"))},o.renderHiddenFileInput=function(){var e=this;return __h_105("input",{class:"uppy-Dashboard-input",hidden:!0,"aria-hidden":"true",tabindex:-1,type:"file",name:"files[]",multiple:1!==this.props.maxNumberOfFiles,onchange:this.handleFileInputChange,accept:this.props.allowedFileTypes,ref:function(t){e.fileInput=t}})},o.renderDropPasteBrowseTagline=function(){var e=__h_105("button",{type:"button",class:"uppy-u-reset uppy-Dashboard-browse",onclick:this.triggerFileInputClick},this.props.i18n("browse"));return __h_105("div",{class:"uppy-Dashboard-dropFilesTitle"},0===this.props.acquirers.length?this.props.i18nArray("dropPaste",{browse:e}):this.props.i18nArray("dropPasteImport",{browse:e}))},o.renderMyDeviceAcquirer=function(){return __h_105("div",{class:"uppy-DashboardTab",role:"presentation"},__h_105("button",{type:"button",class:"uppy-DashboardTab-btn",role:"tab",tabindex:0,"data-uppy-super-focusable":!0,onclick:this.triggerFileInputClick},localIcon(),__h_105("div",{class:"uppy-DashboardTab-name"},this.props.i18n("myDevice"))))},o.renderAcquirer=function(e){var t=this;return __h_105("div",{class:"uppy-DashboardTab",role:"presentation"},__h_105("button",{type:"button",class:"uppy-DashboardTab-btn",role:"tab",tabindex:0,"aria-controls":"uppy-DashboardContent-panel--"+e.id,"aria-selected":this.props.activePickerPanel.id===e.id,"data-uppy-super-focusable":!0,onclick:function(){return t.props.showPanel(e.id)}},e.icon(),__h_105("div",{class:"uppy-DashboardTab-name"},e.name)))},o.render=function(){var e=this;return __h_105("div",{class:"uppy-DashboardAddFiles"},this.renderHiddenFileInput(),__h_105("div",{class:"uppy-DashboardTabs"},this.renderDropPasteBrowseTagline(),this.props.acquirers.length>0&&__h_105("div",{class:"uppy-DashboardTabs-list",role:"tablist"},this.renderMyDeviceAcquirer(),this.props.acquirers.map(function(t){return e.renderAcquirer(t)}))),__h_105("div",{class:"uppy-DashboardAddFiles-info"},this.props.note&&__h_105("div",{class:"uppy-Dashboard-note"},this.props.note),this.props.proudlyDisplayPoweredByUppy&&this.renderPoweredByUppy(this.props)))},n}(_$preact_51.Component),_$AddFiles_105=AddFiles,__h_106=_$preact_51.h,_$AddFilesPanel_106=function(e){return __h_106("div",{class:"uppy-Dashboard-AddFilesPanel","data-uppy-panelType":"AddFiles","aria-hidden":e.showAddFilesPanel},__h_106("div",{class:"uppy-DashboardContent-bar"},__h_106("div",{class:"uppy-DashboardContent-title",role:"heading","aria-level":"h1"},e.i18n("addingMoreFiles")),__h_106("button",{class:"uppy-DashboardContent-back",type:"button",onclick:function(t){return e.toggleAddFilesPanel(!1)}},e.i18n("back"))),__h_106(_$AddFiles_105,e))},iconFile=_$icons_119.iconFile,iconText=_$icons_119.iconText,iconAudio=_$icons_119.iconAudio,iconVideo=_$icons_119.iconVideo,iconPDF=_$icons_119.iconPDF,_$getFileTypeIcon_124=function(e){var t={color:"#838999",icon:iconFile()};if(!e)return t;var r=e.split("/")[0],n=e.split("/")[1];return"text"===r?{color:"#5a5e69",icon:iconText()}:"audio"===r?{color:"#068dbb",icon:iconAudio()}:"video"===r?{color:"#19af67",icon:iconVideo()}:"application"===r&&"pdf"===n?{color:"#e25149",icon:iconPDF()}:"image"===r?{color:"#f2f2f2",icon:""}:t},__h_116=_$preact_51.h,_$FilePreview_116=function(e){var t=e.file;if(t.preview)return __h_116("img",{class:"uppy-DashboardItem-previewImg",alt:t.name,src:t.preview});var r=_$getFileTypeIcon_124(t.type),n=r.color,o=r.icon;return __h_116("div",{class:"uppy-DashboardItem-previewIconWrap"},__h_116("span",{class:"uppy-DashboardItem-previewIcon",style:{color:n}},o),__h_116("svg",{"aria-hidden":"true",focusable:"false",class:"uppy-DashboardItem-previewIconBg",width:"58",height:"76",viewBox:"0 0 58 76"},__h_116("rect",{fill:"#FFF",width:"58",height:"76",rx:"3","fill-rule":"evenodd"})))},_$ignoreEvent_125=function(e){var t=e.target.tagName;"INPUT"!==t&&"TEXTAREA"!==t?(e.preventDefault(),e.stopPropagation()):e.stopPropagation()};function ___extends_108(){return(___extends_108=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var __h_108=_$preact_51.h,Component=_$preact_51.Component,FileCard=function(e){var t,r;function n(t){var r;(r=e.call(this,t)||this).saveOnEnter=function(e){if(13===e.keyCode){e.stopPropagation(),e.preventDefault();var t=r.props.files[r.props.fileCardFor];r.props.saveFileCard(r.state.formState,t.id)}},r.tempStoreMeta=function(e,t){var n;r.setState({formState:___extends_108({},r.state.formState,(n={},n[t]=e.target.value,n))})},r.handleSave=function(){var e=r.props.fileCardFor;r.props.saveFileCard(r.state.formState,e)},r.handleCancel=function(){r.props.toggleFileCard()},r.renderMetaFields=function(){return(r.props.metaFields||[]).map(function(e){var t="uppy-Dashboard-FileCard-input-"+e.id;return __h_108("fieldset",{class:"uppy-Dashboard-FileCard-fieldset"},__h_108("label",{class:"uppy-Dashboard-FileCard-label",for:t},e.name),__h_108("input",{class:"uppy-u-reset uppy-c-textInput uppy-Dashboard-FileCard-input",id:t,type:"text",value:r.state.formState[e.id],placeholder:e.placeholder,onkeyup:r.saveOnEnter,onkeydown:r.saveOnEnter,onkeypress:r.saveOnEnter,oninput:function(t){return r.tempStoreMeta(t,e.id)},"data-uppy-super-focusable":!0}))})};var n=r.props.files[r.props.fileCardFor],o=r.props.metaFields||[],i={};return o.forEach(function(e){i[e.id]=n.meta[e.id]||""}),r.state={formState:i},r}return r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r,n.prototype.render=function(){var e=this.props.files[this.props.fileCardFor];return __h_108("div",{class:"uppy-Dashboard-FileCard","data-uppy-panelType":"FileCard",onDragOver:_$ignoreEvent_125,onDragLeave:_$ignoreEvent_125,onDrop:_$ignoreEvent_125,onPaste:_$ignoreEvent_125},__h_108("div",{class:"uppy-DashboardContent-bar"},__h_108("div",{class:"uppy-DashboardContent-title",role:"heading","aria-level":"h1"},this.props.i18nArray("editing",{file:__h_108("span",{class:"uppy-DashboardContent-titleFile"},e.meta?e.meta.name:e.name)})),__h_108("button",{class:"uppy-DashboardContent-back",type:"button",title:this.props.i18n("finishEditingFile"),onclick:this.handleSave},this.props.i18n("done"))),__h_108("div",{class:"uppy-Dashboard-FileCard-inner"},__h_108("div",{class:"uppy-Dashboard-FileCard-preview",style:{backgroundColor:_$getFileTypeIcon_124(e.type).color}},__h_108(_$FilePreview_116,{file:e})),__h_108("div",{class:"uppy-Dashboard-FileCard-info"},this.renderMetaFields()),__h_108("div",{class:"uppy-Dashboard-FileCard-actions"},__h_108("button",{class:"uppy-u-reset uppy-c-btn uppy-c-btn-primary uppy-Dashboard-FileCard-actionsBtn",type:"button",onclick:this.handleSave},this.props.i18n("saveChanges")),__h_108("button",{class:"uppy-u-reset uppy-c-btn uppy-c-btn-link uppy-Dashboard-FileCard-actionsBtn",type:"button",onclick:this.handleCancel},this.props.i18n("cancel")))))},n}(Component),_$FileCard_108=FileCard,_$copyToClipboard_121=function(e,t){return t=t||"Copy the URL below",new Promise(function(r){var n=document.createElement("textarea");n.setAttribute("style",{position:"fixed",top:0,left:0,width:"2em",height:"2em",padding:0,border:"none",outline:"none",boxShadow:"none",background:"transparent"}),n.value=e,document.body.appendChild(n),n.select();var o=function(){document.body.removeChild(n),window.prompt(t,e),r()};try{return document.execCommand("copy")?(document.body.removeChild(n),r()):o()}catch(e){return document.body.removeChild(n),o()}})},__h_109=_$preact_51.h,iconPencil=_$icons_119.iconPencil,iconCross=_$icons_119.iconCross,iconCopyLink=_$icons_119.iconCopyLink,renderCopyLinkButton=function(e){return e.showLinkToFileUploadResult&&e.file.uploadURL&&__h_109("button",{class:"uppy-u-reset uppy-DashboardItem-action uppy-DashboardItem-action--copyLink",type:"button","aria-label":e.i18n("copyLink"),title:e.i18n("copyLink"),onclick:function(t){return function(e,t){return _$copyToClipboard_121(t.file.uploadURL,t.i18n("copyLinkToClipboardFallback")).then(function(){t.log("Link copied to clipboard."),t.info(t.i18n("copyLinkToClipboardSuccess"),"info",3e3)}).catch(t.log).then(function(){return e.target.focus({preventScroll:!0})})}(t,e)}},iconCopyLink())},_$Buttons_109=function(e){return __h_109("div",{className:"uppy-DashboardItem-actionWrapper"},function(e){return!e.uploadInProgressOrComplete&&e.metaFields&&e.metaFields.length>0&&__h_109("button",{class:"uppy-u-reset uppy-DashboardItem-action uppy-DashboardItem-action--edit",type:"button","aria-label":e.i18n("editFile")+" "+e.file.meta.name,title:e.i18n("editFile"),onclick:function(t){return e.toggleFileCard(e.file.id)}},iconPencil())}(e),renderCopyLinkButton(e),function(e){return e.showRemoveButton&&__h_109("button",{class:"uppy-u-reset uppy-DashboardItem-action uppy-DashboardItem-action--remove",type:"button","aria-label":e.i18n("removeFile"),title:e.i18n("removeFile"),onclick:function(){return e.removeFile(e.file.id)}},iconCross())}(e))},_$truncateString_128=function(e,t){if(e.length<=t)return e;if(t<="...".length)return e.substr(0,t);var r=t-"...".length,n=Math.ceil(r/2),o=Math.floor(r/2);return e.substr(0,n)+"..."+e.substr(e.length-o)},__h_110=_$preact_51.h,renderFileSource=function(e){return e.file.source&&e.file.source!==e.id&&__h_110("div",{class:"uppy-DashboardItem-sourceIcon"},e.acquirers.map(function(t){if(t.id===e.file.source)return function(e,t){return __h_110("span",{title:t.i18n("fileSource",{name:e.name})},e.icon())}(t,e)}))},_$FileInfo_110=function(e){return __h_110("div",{class:"uppy-DashboardItem-fileInfo"},function(e){var t;return t=e.containerWidth<=352?35:e.containerWidth<=576?60:30,__h_110("div",{class:"uppy-DashboardItem-name",title:e.file.meta.name},_$truncateString_128(e.file.meta.name,t))}(e),__h_110("div",{class:"uppy-DashboardItem-status"},function(e){return e.file.data.size&&__h_110("div",{class:"uppy-DashboardItem-statusSize"},_$prettyBytes_216(e.file.data.size))}(e),renderFileSource(e)))},__h_111=_$preact_51.h,_$FilePreviewAndLink_111=function(e){return __h_111("div",{class:"uppy-DashboardItem-previewInnerWrap",style:{backgroundColor:_$getFileTypeIcon_124(e.file.type).color}},e.showLinkToFileUploadResult&&e.file.uploadURL&&__h_111("a",{class:"uppy-DashboardItem-previewLink",href:e.file.uploadURL,rel:"noreferrer noopener",target:"_blank","aria-label":e.file.meta.name}),__h_111(_$FilePreview_116,{file:e.file}))},__h_112=_$preact_51.h,circleLength=2*Math.PI*15,_$PauseResumeCancelIcon_112=function(e){return __h_112("svg",{"aria-hidden":"true",focusable:"false",width:"70",height:"70",viewBox:"0 0 36 36",class:"UppyIcon UppyIcon-progressCircle"},__h_112("g",{class:"progress-group"},__h_112("circle",{class:"bg",r:"15",cx:"18",cy:"18","stroke-width":"2",fill:"none"}),__h_112("circle",{class:"progress",r:"15",cx:"18",cy:"18",transform:"rotate(-90, 18, 18)","stroke-width":"2",fill:"none","stroke-dasharray":circleLength,"stroke-dashoffset":circleLength-circleLength/100*e.progress})),!e.hidePauseResumeCancelButtons&&__h_112("g",null,__h_112("polygon",{class:"play",transform:"translate(3, 3)",points:"12 20 12 10 20 15"}),__h_112("g",{class:"pause",transform:"translate(14.5, 13)"},__h_112("rect",{x:"0",y:"0",width:"2",height:"10",rx:"0"}),__h_112("rect",{x:"5",y:"0",width:"2",height:"10",rx:"0"})),__h_112("polygon",{class:"cancel",transform:"translate(2, 2)",points:"19.8856516 11.0625 16 14.9481516 12.1019737 11.0625 11.0625 12.1143484 14.9481516 16 11.0625 19.8980263 12.1019737 20.9375 16 17.0518484 19.8856516 20.9375 20.9375 19.8980263 17.0518484 16 20.9375 12"})),__h_112("polygon",{class:"check",transform:"translate(2, 3)",points:"14 22.5 7 15.2457065 8.99985857 13.1732815 14 18.3547104 22.9729883 9 25 11.1005634"}))},__h_113=_$preact_51.h,iconRetry=_$icons_119.iconRetry;function progressIndicatorTitle(e){return e.isUploaded?e.i18n("uploadComplete"):e.error?e.i18n("retryUpload"):e.resumableUploads?e.file.isPaused?e.i18n("resumeUpload"):e.i18n("pauseUpload"):e.individualCancellation?e.i18n("cancelUpload"):""}var _$FileProgress_113=function(e){return e.hideRetryButton&&e.error?__h_113("div",{class:"uppy-DashboardItem-progress"}):e.isUploaded||e.hidePauseResumeCancelButtons&&!e.error?__h_113("div",{class:"uppy-DashboardItem-progress"},__h_113("div",{class:"uppy-DashboardItem-progressIndicator"},__h_113(_$PauseResumeCancelIcon_112,{progress:e.file.progress.percentage,hidePauseResumeCancelButtons:e.hidePauseResumeCancelButtons}))):__h_113("div",{class:"uppy-DashboardItem-progress"},__h_113("button",{class:"uppy-u-reset uppy-DashboardItem-progressIndicator",type:"button","aria-label":progressIndicatorTitle(e),title:progressIndicatorTitle(e),onclick:function(){return function(e){e.isUploaded||(!e.error||e.hideRetryButton?e.hidePauseResumeCancelButtons||(e.resumableUploads?e.pauseUpload(e.file.id):e.individualCancellation&&e.cancelUpload(e.file.id)):e.retryUpload(e.file.id))}(e)}},e.error?e.hideRetryButton?null:iconRetry():__h_113(_$PauseResumeCancelIcon_112,{progress:e.file.progress.percentage,hidePauseResumeCancelButtons:e.hidePauseResumeCancelButtons})))},_$isShallowEqual_41=function(e,t){if(e===t)return!0;for(var r in e)if(!(r in t))return!1;for(var r in t)if(e[r]!==t[r])return!1;return!0};function ___extends_126(){return(___extends_126=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var __h_126=_$preact_51.h,__Component_126=_$preact_51.Component,_$pure_126=function(e){return function(t){var r,n;function o(){return t.apply(this,arguments)||this}n=t,(r=o).prototype=Object.create(n.prototype),r.prototype.constructor=r,r.__proto__=n;var i=o.prototype;return i.shouldComponentUpdate=function(e){return!_$isShallowEqual_41(this.props,e)},i.render=function(){var t=___extends_126({},this.props);return __h_126(e,t)},o}(__Component_126)};function ___extends_114(){return(___extends_114=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var __h_114=_$preact_51.h,_$FileItem_114=_$pure_126(function(e){var t=e.file,r=t.progress.preprocess||t.progress.postprocess,n=t.progress.uploadComplete&&!r&&!t.error,o=t.progress.uploadStarted||r,i=t.progress.uploadStarted&&!t.progress.uploadComplete||r,s=t.isPaused||!1,a=t.error||!1,l=e.individualCancellation?!n:!i&&!n,u=_$classnames_9("uppy-u-reset","uppy-DashboardItem",{"is-inprogress":i},{"is-processing":r},{"is-complete":n},{"is-paused":s},{"is-error":a},{"is-resumable":e.resumableUploads},{"is-noIndividualCancellation":!e.individualCancellation});return __h_114("li",{class:u,id:"uppy_"+t.id},__h_114("div",{class:"uppy-DashboardItem-preview"},__h_114(_$FilePreviewAndLink_111,{file:t,showLinkToFileUploadResult:e.showLinkToFileUploadResult}),__h_114(_$FileProgress_113,___extends_114({error:a,isUploaded:n},e))),__h_114("div",{class:"uppy-DashboardItem-fileInfoAndButtons"},__h_114(_$FileInfo_110,{file:t,id:e.id,acquirers:e.acquirers,containerWidth:e.containerWidth,i18n:e.i18n}),__h_114(_$Buttons_109,{file:t,metaFields:e.metaFields,showLinkToFileUploadResult:e.showLinkToFileUploadResult,showRemoveButton:l,uploadInProgressOrComplete:o,removeFile:e.removeFile,toggleFileCard:e.toggleFileCard,i18n:e.i18n,log:e.log,info:e.info})))});function ___extends_115(){return(___extends_115=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var __h_115=_$preact_51.h,_$FileList_115=function(e){var t=0===e.totalFileCount,r=_$classnames_9("uppy-Dashboard-files",{"uppy-Dashboard-files--noFiles":t}),n={id:e.id,error:e.error,i18n:e.i18n,log:e.log,info:e.info,acquirers:e.acquirers,resumableUploads:e.resumableUploads,individualCancellation:e.individualCancellation,hideRetryButton:e.hideRetryButton,hidePauseResumeCancelButtons:e.hidePauseResumeCancelButtons,showLinkToFileUploadResult:e.showLinkToFileUploadResult,isWide:e.isWide,metaFields:e.metaFields,retryUpload:e.retryUpload,pauseUpload:e.pauseUpload,cancelUpload:e.cancelUpload,toggleFileCard:e.toggleFileCard,removeFile:e.removeFile};return __h_115("ul",{class:r,tabindex:"-1"},Object.keys(e.files).map(function(t){return __h_115(_$FileItem_114,___extends_115({},n,{file:e.files[t]}))}))},__h_117=_$preact_51.h,_$PickerPanelContent_117=function(e){return __h_117("div",{class:"uppy-DashboardContent-panel",role:"tabpanel","data-uppy-panelType":"PickerPanel",id:"uppy-DashboardContent-panel--"+e.activePickerPanel.id,onDragOver:_$ignoreEvent_125,onDragLeave:_$ignoreEvent_125,onDrop:_$ignoreEvent_125,onPaste:_$ignoreEvent_125},__h_117("div",{class:"uppy-DashboardContent-bar"},__h_117("div",{class:"uppy-DashboardContent-title",role:"heading","aria-level":"h1"},e.i18n("importFrom",{name:e.activePickerPanel.name})),__h_117("button",{class:"uppy-DashboardContent-back",type:"button",onclick:e.hideAllPanels},e.i18n("done"))),__h_117("div",{class:"uppy-DashboardContent-panelBody"},e.getPlugin(e.activePickerPanel.id).render(e.state)))},__h_118=_$preact_51.h,iconPlus=_$icons_119.iconPlus,uploadStates={STATE_ERROR:"error",STATE_WAITING:"waiting",STATE_PREPROCESSING:"preprocessing",STATE_UPLOADING:"uploading",STATE_POSTPROCESSING:"postprocessing",STATE_COMPLETE:"complete",STATE_PAUSED:"paused"};function UploadStatus(e){switch(function(e,t,r,n){if(void 0===n&&(n={}),e)return uploadStates.STATE_ERROR;if(t)return uploadStates.STATE_COMPLETE;if(r)return uploadStates.STATE_PAUSED;for(var o=uploadStates.STATE_WAITING,i=Object.keys(n),s=0;s<i.length;s++){var a=n[i[s]].progress;if(a.uploadStarted&&!a.uploadComplete)return uploadStates.STATE_UPLOADING;a.preprocess&&o!==uploadStates.STATE_UPLOADING&&(o=uploadStates.STATE_PREPROCESSING),a.postprocess&&o!==uploadStates.STATE_UPLOADING&&o!==uploadStates.STATE_PREPROCESSING&&(o=uploadStates.STATE_POSTPROCESSING)}return o}(e.isAllErrored,e.isAllComplete,e.isAllPaused,e.files)){case"uploading":return e.i18n("uploadingXFiles",{smart_count:e.inProgressNotPausedFiles.length});case"preprocessing":case"postprocessing":return e.i18n("processingXFiles",{smart_count:e.processingFiles.length});case"paused":return e.i18n("uploadPaused");case"waiting":return e.i18n("xFilesSelected",{smart_count:e.newFiles.length});case"complete":return e.i18n("uploadComplete")}}var _$PickerPanelTopBar_118=function(e){var t=e.allowNewUpload;return t&&e.maxNumberOfFiles&&(t=e.totalFileCount<e.maxNumberOfFiles),__h_118("div",{class:"uppy-DashboardContent-bar"},e.isAllComplete?__h_118("div",null):__h_118("button",{class:"uppy-DashboardContent-back",type:"button",onclick:e.cancelAll},e.i18n("cancel")),__h_118("div",{class:"uppy-DashboardContent-title",role:"heading","aria-level":"h1"},__h_118(UploadStatus,e)),t?__h_118("button",{class:"uppy-DashboardContent-addMore",type:"button","aria-label":e.i18n("addMoreFiles"),title:e.i18n("addMoreFiles"),onclick:function(){return e.toggleAddFilesPanel(!0)}},iconPlus(),__h_118("span",{class:"uppy-DashboardContent-addMoreCaption"},e.i18n("addMore"))):__h_118("div",null))},_$isTouchDevice_213=function(){return"ontouchstart"in window||!!navigator.maxTouchPoints};function ___extends_107(){return(___extends_107=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var __h_107=_$preact_51.h;function TransitionWrapper(e){return __h_107(_$preactCssTransitionGroup_50,{transitionName:"uppy-transition-slideDownUp",transitionEnterTimeout:250,transitionLeaveTimeout:250},e.children)}var _$Dashboard_107=function(e){var t=0===e.totalFileCount,r=_$classnames_9({"uppy-Root":e.isTargetDOMEl},"uppy-Dashboard",{"Uppy--isTouchDevice":_$isTouchDevice_213()},{"uppy-Dashboard--animateOpenClose":e.animateOpenClose},{"uppy-Dashboard--isClosing":e.isClosing},{"uppy-Dashboard--isDraggingOver":e.isDraggingOver},{"uppy-Dashboard--modal":!e.inline},{"uppy-size--md":e.containerWidth>576},{"uppy-size--lg":e.containerWidth>700},{"uppy-size--xl":e.containerWidth>900},{"uppy-Dashboard--isAddFilesPanelVisible":e.showAddFilesPanel},{"uppy-Dashboard--isInnerWrapVisible":e.areInsidesReadyToBeVisible});return __h_107("div",{class:r,"aria-hidden":e.inline?"false":e.isHidden,"aria-label":e.inline?e.i18n("dashboardTitle"):e.i18n("dashboardWindowTitle"),onpaste:e.handlePaste,onDragOver:e.handleDragOver,onDragLeave:e.handleDragLeave,onDrop:e.handleDrop},__h_107("div",{class:"uppy-Dashboard-overlay",tabindex:-1,onclick:e.handleClickOutside}),__h_107("div",{class:"uppy-Dashboard-inner","aria-modal":!e.inline&&"true",role:!e.inline&&"dialog",style:{width:e.inline&&e.width?e.width:"",height:e.inline&&e.height?e.height:""}},e.inline?null:__h_107("button",{class:"uppy-u-reset uppy-Dashboard-close",type:"button","aria-label":e.i18n("closeModal"),title:e.i18n("closeModal"),onclick:e.closeModal},__h_107("span",{"aria-hidden":"true"},"\xd7")),__h_107("div",{class:"uppy-Dashboard-innerWrap"},__h_107("div",{class:"uppy-Dashboard-dropFilesHereHint"},e.i18n("dropHint")),!t&&e.showSelectedFiles&&__h_107(_$PickerPanelTopBar_118,e),e.showSelectedFiles?__h_107(t?_$AddFiles_105:_$FileList_115,e):__h_107(_$AddFiles_105,e),__h_107(TransitionWrapper,null,e.showAddFilesPanel?__h_107(_$AddFilesPanel_106,___extends_107({key:"AddFilesPanel"},e)):null),__h_107(TransitionWrapper,null,e.fileCardFor?__h_107(_$FileCard_108,___extends_107({key:"FileCard"},e)):null),__h_107(TransitionWrapper,null,e.activePickerPanel?__h_107(_$PickerPanelContent_117,___extends_107({key:"PickerPanelContent"},e)):null),__h_107("div",{class:"uppy-Dashboard-progressindicators"},e.progressindicators.map(function(t){return e.getPlugin(t.id).render(e.state)})))))},_$lodashDebounce_43={};(function(e){var t=NaN,r="[object Symbol]",n=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,s=/^0o[0-7]+$/i,a=parseInt,l="object"==typeof e&&e&&e.Object===Object&&e,u="object"==typeof self&&self&&self.Object===Object&&self,c=l||u||Function("return this")(),p=Object.prototype.toString,d=Math.max,h=Math.min,_=function(){return c.Date.now()};function f(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function g(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&p.call(e)==r}(e))return t;if(f(e)){var l="function"==typeof e.valueOf?e.valueOf():e;e=f(l)?l+"":l}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(n,"");var u=i.test(e);return u||s.test(e)?a(e.slice(2),u?2:8):o.test(e)?t:+e}_$lodashDebounce_43=function(e,t,r){var n,o,i,s,a,l,u=0,c=!1,p=!1,m=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function y(t){var r=n,i=o;return n=o=void 0,u=t,s=e.apply(i,r)}function v(e){var r=e-l;return void 0===l||r>=t||r<0||p&&e-u>=i}function b(){var e=_();if(v(e))return w(e);a=setTimeout(b,function(e){var r=t-(e-l);return p?h(r,i-(e-u)):r}(e))}function w(e){return a=void 0,m&&n?y(e):(n=o=void 0,s)}function S(){var e=_(),r=v(e);if(n=arguments,o=this,l=e,r){if(void 0===a)return function(e){return u=e,a=setTimeout(b,t),c?y(e):s}(l);if(p)return a=setTimeout(b,t),y(l)}return void 0===a&&(a=setTimeout(b,t)),s}return t=g(t)||0,f(r)&&(c=!!r.leading,i=(p="maxWait"in r)?d(g(r.maxWait)||0,t):i,m="trailing"in r?!!r.trailing:m),S.cancel=function(){void 0!==a&&clearTimeout(a),u=0,n=l=o=a=void 0},S.flush=function(){return void 0===a?s:w(_())},S}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{});var _$getActiveOverlayEl_123=function(e,t){if(t){var r=e.querySelector('[data-uppy-paneltype="'+t+'"]');if(r)return r}return e},_$FOCUSABLE_ELEMENTS_191=['a[href]:not([tabindex^="-"]):not([inert]):not([aria-hidden])','area[href]:not([tabindex^="-"]):not([inert]):not([aria-hidden])',"input:not([disabled]):not([inert]):not([aria-hidden])","select:not([disabled]):not([inert]):not([aria-hidden])","textarea:not([disabled]):not([inert]):not([aria-hidden])","button:not([disabled]):not([inert]):not([aria-hidden])",'iframe:not([tabindex^="-"]):not([inert]):not([aria-hidden])','object:not([tabindex^="-"]):not([inert]):not([aria-hidden])','embed:not([tabindex^="-"]):not([inert]):not([aria-hidden])','[contenteditable]:not([tabindex^="-"]):not([inert]):not([aria-hidden])','[tabindex]:not([tabindex^="-"]):not([inert]):not([aria-hidden])'],_$createSuperFocus_122=function(){var e=!1;return _$lodashDebounce_43(function(t,r){var n=_$getActiveOverlayEl_123(t,r),o=n.contains(document.activeElement);if(!o||!e){var i=n.querySelector("[data-uppy-super-focusable]");if(!o||i)if(i)i.focus({preventScroll:!0}),e=!0;else{var s=n.querySelector(_$FOCUSABLE_ELEMENTS_191);s&&s.focus({preventScroll:!0}),e=!1}}},260)},_$toArray_220=function(e){return Array.prototype.slice.call(e||[],0)};function focusOnFirstNode(e,t){var r=t[0];r&&(r.focus(),e.preventDefault())}function trapFocus(e,t,r){var n=_$getActiveOverlayEl_123(r,t),o=_$toArray_220(n.querySelectorAll(_$FOCUSABLE_ELEMENTS_191)),i=o.indexOf(document.activeElement);!function(e){return e.contains(document.activeElement)}(n)?focusOnFirstNode(e,o):e.shiftKey&&0===i?function(e,t){var r=o[o.length-1];r&&(r.focus(),e.preventDefault())}(e):e.shiftKey||i!==o.length-1||focusOnFirstNode(e,o)}var _$trapFocus_127={forModal:function(e,t,r){trapFocus(e,t,r)},forInline:function(e,t,r){null===t||trapFocus(e,t,r)}},_$package_129={version:"1.2.0"},_$package_147={version:"1.2.0"},___class_146,___temp_146;function ___extends_146(){return(___extends_146=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var __Plugin_146=_$lib_101.Plugin,__h_146=_$preact_51.h,_$lib_146=(___temp_146=___class_146=function(e){var t,r;function n(t,r){var n;return(n=e.call(this,t,r)||this).type="progressindicator",n.id=n.opts.id||"Informer",n.title="Informer",n.opts=___extends_146({},{},r),n.render=n.render.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(n)),n}r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var o=n.prototype;return o.render=function(e){var t=e.info,r=t.isHidden,n=t.message,o=t.details;return __h_146("div",{class:"uppy uppy-Informer","aria-hidden":r},__h_146("p",{role:"alert"},n," ",o&&__h_146("span",{"aria-label":o,"data-microtip-position":"top-left","data-microtip-size":"medium",role:"tooltip"},"?")))},o.install=function(){var e=this.opts.target;e&&this.mount(e,this)},n}(__Plugin_146),___class_146.VERSION=_$package_147.version,___temp_146),_$StatusBarStates_168={STATE_ERROR:"error",STATE_WAITING:"waiting",STATE_PREPROCESSING:"preprocessing",STATE_UPLOADING:"uploading",STATE_POSTPROCESSING:"postprocessing",STATE_COMPLETE:"complete"},_$secondsToTime_218=function(e){return{hours:Math.floor(e/3600)%24,minutes:Math.floor(e/60)%60,seconds:Math.floor(e%60)}},_$prettyETA_217=function(e){var t=_$secondsToTime_218(e),r=t.hours?t.hours+"h ":"",n=t.hours?("0"+t.minutes).substr(-2):t.minutes,o=n?n+"m":"",i=n?("0"+t.seconds).substr(-2):t.seconds;return""+r+o+(t.hours?"":n?" "+i+"s":i+"s")};function ___extends_167(){return(___extends_167=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var __h_167=_$preact_51.h,_$StatusBar_167=function(e){var t,r,n=e=e||{},o=n.newFiles,i=n.allowNewUpload,s=n.isUploadInProgress,a=n.isAllPaused,l=n.resumableUploads,u=n.error,c=n.hideUploadButton,p=n.hidePauseResumeButton,d=n.hideCancelButton,h=n.hideRetryButton,_=e.uploadState,f=e.totalProgress;if(_===_$StatusBarStates_168.STATE_PREPROCESSING||_===_$StatusBarStates_168.STATE_POSTPROCESSING){var g=function(e){var t=[];Object.keys(e).forEach(function(r){var n=e[r].progress;n.preprocess&&t.push(n.preprocess),n.postprocess&&t.push(n.postprocess)});var r=t[0];return{mode:r.mode,message:r.message,value:t.filter(function(e){return"determinate"===e.mode}).reduce(function(e,t,r,n){return e+t.value/n.length},0)}}(e.files);"determinate"===(t=g.mode)&&(f=100*g.value),r=ProgressBarProcessing(g)}else _===_$StatusBarStates_168.STATE_COMPLETE?r=ProgressBarComplete(e):_===_$StatusBarStates_168.STATE_UPLOADING?(e.supportsUploadProgress||(t="indeterminate",f=null),r=ProgressBarUploading(e)):_===_$StatusBarStates_168.STATE_ERROR&&(f=void 0,r=ProgressBarError(e));var m="number"==typeof f?f:100,y=_===_$StatusBarStates_168.STATE_WAITING&&e.hideUploadButton||_===_$StatusBarStates_168.STATE_WAITING&&!e.newFiles>0||_===_$StatusBarStates_168.STATE_COMPLETE&&e.hideAfterFinish,v=!u&&o&&!s&&!a&&i&&!c,b=!d&&_!==_$StatusBarStates_168.STATE_WAITING&&_!==_$StatusBarStates_168.STATE_COMPLETE,w=l&&!p&&_!==_$StatusBarStates_168.STATE_WAITING&&_!==_$StatusBarStates_168.STATE_PREPROCESSING&&_!==_$StatusBarStates_168.STATE_POSTPROCESSING&&_!==_$StatusBarStates_168.STATE_COMPLETE,S=u&&!h,P="uppy-StatusBar-progress\n "+(t?"is-"+t:""),C=_$classnames_9({"uppy-Root":e.isTargetDOMEl},"uppy-StatusBar","is-"+_);return __h_167("div",{class:C,"aria-hidden":y},__h_167("div",{class:P,style:{width:m+"%"},role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":f}),r,__h_167("div",{class:"uppy-StatusBar-actions"},v?__h_167(UploadBtn,___extends_167({},e,{uploadState:_})):null,S?__h_167(RetryBtn,e):null,w?__h_167(PauseResumeButton,e):null,b?__h_167(CancelBtn,e):null))},UploadBtn=function(e){var t=_$classnames_9("uppy-u-reset","uppy-c-btn","uppy-StatusBar-actionBtn","uppy-StatusBar-actionBtn--upload",{"uppy-c-btn-primary":e.uploadState===_$StatusBarStates_168.STATE_WAITING});return __h_167("button",{type:"button",class:t,"aria-label":e.i18n("uploadXFiles",{smart_count:e.newFiles}),onclick:e.startUpload,"data-uppy-super-focusable":!0},e.newFiles&&e.isUploadStarted?e.i18n("uploadXNewFiles",{smart_count:e.newFiles}):e.i18n("uploadXFiles",{smart_count:e.newFiles}))},RetryBtn=function(e){return __h_167("button",{type:"button",class:"uppy-u-reset uppy-c-btn uppy-StatusBar-actionBtn uppy-StatusBar-actionBtn--retry","aria-label":e.i18n("retryUpload"),onclick:e.retryAll,"data-uppy-super-focusable":!0},__h_167("svg",{"aria-hidden":"true",focusable:"false",class:"UppyIcon",width:"8",height:"10",viewBox:"0 0 8 10"},__h_167("path",{d:"M4 2.408a2.75 2.75 0 1 0 2.75 2.75.626.626 0 0 1 1.25.018v.023a4 4 0 1 1-4-4.041V.25a.25.25 0 0 1 .389-.208l2.299 1.533a.25.25 0 0 1 0 .416l-2.3 1.533A.25.25 0 0 1 4 3.316v-.908z"})),e.i18n("retry"))},CancelBtn=function(e){return __h_167("button",{type:"button",class:"uppy-u-reset uppy-StatusBar-actionCircleBtn",title:e.i18n("cancel"),"aria-label":e.i18n("cancel"),onclick:e.cancelAll,"data-uppy-super-focusable":!0},__h_167("svg",{"aria-hidden":"true",focusable:"false",class:"UppyIcon",width:"16",height:"16",viewBox:"0 0 16 16"},__h_167("g",{fill:"none","fill-rule":"evenodd"},__h_167("circle",{fill:"#888",cx:"8",cy:"8",r:"8"}),__h_167("path",{fill:"#FFF",d:"M9.283 8l2.567 2.567-1.283 1.283L8 9.283 5.433 11.85 4.15 10.567 6.717 8 4.15 5.433 5.433 4.15 8 6.717l2.567-2.567 1.283 1.283z"}))))},PauseResumeButton=function(e){var t=e.isAllPaused,r=(0,e.i18n)(t?"resume":"pause");return __h_167("button",{title:r,"aria-label":r,class:"uppy-u-reset uppy-StatusBar-actionCircleBtn",type:"button",onclick:function(){return function(e){if(!e.isAllComplete)return e.resumableUploads?e.isAllPaused?e.resumeAll():e.pauseAll():e.cancelAll()}(e)},"data-uppy-super-focusable":!0},__h_167("svg",{"aria-hidden":"true",focusable:"false",class:"UppyIcon",width:"16",height:"16",viewBox:"0 0 16 16"},__h_167("g",{fill:"none","fill-rule":"evenodd"},__h_167("circle",{fill:"#888",cx:"8",cy:"8",r:"8"}),__h_167("path",t?{fill:"#FFF",d:"M6 4.25L11.5 8 6 11.75z"}:{d:"M5 4.5h2v7H5v-7zm4 0h2v7H9v-7z",fill:"#FFF"}))))},LoadingSpinner=function(){return __h_167("svg",{"aria-hidden":"true",focusable:"false",class:"uppy-StatusBar-spinner",width:"14",height:"14"},__h_167("path",{d:"M13.983 6.547c-.12-2.509-1.64-4.893-3.939-5.936-2.48-1.127-5.488-.656-7.556 1.094C.524 3.367-.398 6.048.162 8.562c.556 2.495 2.46 4.52 4.94 5.183 2.932.784 5.61-.602 7.256-3.015-1.493 1.993-3.745 3.309-6.298 2.868-2.514-.434-4.578-2.349-5.153-4.84a6.226 6.226 0 0 1 2.98-6.778C6.34.586 9.74 1.1 11.373 3.493c.407.596.693 1.282.842 1.988.127.598.073 1.197.161 1.794.078.525.543 1.257 1.15.864.525-.341.49-1.05.456-1.592-.007-.15.02.3 0 0","fill-rule":"evenodd"}))},ProgressBarProcessing=function(e){var t=Math.round(100*e.value);return __h_167("div",{class:"uppy-StatusBar-content"},__h_167(LoadingSpinner,null),"determinate"===e.mode?t+"% \xb7 ":"",e.message)},UnknownProgressDetails=function(e){return __h_167("div",{class:"uppy-StatusBar-statusSecondary"},e.i18n("filesUploadedOfTotal",{complete:e.complete,smart_count:e.numUploads}))},UploadNewlyAddedFiles=function(e){var t=_$classnames_9("uppy-u-reset","uppy-c-btn","uppy-StatusBar-actionBtn","uppy-StatusBar-actionBtn--uploadNewlyAdded");return __h_167("div",{class:"uppy-StatusBar-statusSecondary"},__h_167("div",{class:"uppy-StatusBar-statusSecondaryHint"},e.i18n("xMoreFilesAdded",{smart_count:e.newFiles})),__h_167("button",{type:"button",class:t,"aria-label":e.i18n("uploadXFiles",{smart_count:e.newFiles}),onclick:e.startUpload},e.i18n("upload")))},ThrottledProgressDetails=_$lodashThrottle_44(function(e){var t=e.numUploads>1;return __h_167("div",{class:"uppy-StatusBar-statusSecondary"},t&&e.i18n("filesUploadedOfTotal",{complete:e.complete,smart_count:e.numUploads}),__h_167("span",{class:"uppy-StatusBar-additionalInfo"},t&&" \xb7 ",e.i18n("dataUploadedOfTotal",{complete:_$prettyBytes_216(e.totalUploadedSize),total:_$prettyBytes_216(e.totalSize)})," \xb7 ",e.i18n("xTimeLeft",{time:_$prettyETA_217(e.totalETA)})))},500,{leading:!0,trailing:!0}),ProgressBarUploading=function(e){if(!e.isUploadStarted||e.isAllComplete)return null;var t=e.isAllPaused?e.i18n("paused"):e.i18n("uploading"),r=e.newFiles&&e.isUploadStarted;return __h_167("div",{class:"uppy-StatusBar-content","aria-label":t,title:t},e.isAllPaused?null:__h_167(LoadingSpinner,null),__h_167("div",{class:"uppy-StatusBar-status"},__h_167("div",{class:"uppy-StatusBar-statusPrimary"},e.supportsUploadProgress?t+": "+e.totalProgress+"%":t),e.isAllPaused||r||!e.showProgressDetails?null:e.supportsUploadProgress?__h_167(ThrottledProgressDetails,e):__h_167(UnknownProgressDetails,e),r?__h_167(UploadNewlyAddedFiles,e):null))},ProgressBarComplete=function(e){e.totalProgress;var t=e.i18n;return __h_167("div",{class:"uppy-StatusBar-content",role:"status",title:t("complete")},__h_167("div",{class:"uppy-StatusBar-status"},__h_167("div",{class:"uppy-StatusBar-statusPrimary"},__h_167("svg",{"aria-hidden":"true",focusable:"false",class:"uppy-StatusBar-statusIndicator UppyIcon",width:"15",height:"11",viewBox:"0 0 15 11"},__h_167("path",{d:"M.414 5.843L1.627 4.63l3.472 3.472L13.202 0l1.212 1.213L5.1 10.528z"})),t("complete"))))},ProgressBarError=function(e){var t=e.error,r=(e.retryAll,e.hideRetryButton,e.i18n);return __h_167("div",{class:"uppy-StatusBar-content",role:"alert",title:r("uploadFailed")},__h_167("div",{class:"uppy-StatusBar-status"},__h_167("div",{class:"uppy-StatusBar-statusPrimary"},__h_167("svg",{"aria-hidden":"true",focusable:"false",class:"uppy-StatusBar-statusIndicator UppyIcon",width:"11",height:"11",viewBox:"0 0 11 11"},__h_167("path",{d:"M4.278 5.5L0 1.222 1.222 0 5.5 4.278 9.778 0 11 1.222 6.722 5.5 11 9.778 9.778 11 5.5 6.722 1.222 11 0 9.778z"})),r("uploadFailed"))),__h_167("span",{class:"uppy-StatusBar-details","aria-label":t,"data-microtip-position":"top-right","data-microtip-size":"medium",role:"tooltip"},"?"))},_$package_170={version:"1.2.0"},_$getBytesRemaining_199=function(e){return e.bytesTotal-e.bytesUploaded},_$getSpeed_207=function(e){if(!e.bytesUploaded)return 0;var t=new Date-e.uploadStarted;return e.bytesUploaded/(t/1e3)},___class_169,___temp_169;function ___extends_169(){return(___extends_169=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function ___assertThisInitialized_169(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var __Plugin_169=_$lib_101.Plugin,_$lib_169=(___temp_169=___class_169=function(e){var t,r;function n(t,r){var n;return(n=e.call(this,t,r)||this).startUpload=function(){return n.uppy.upload().catch(function(e){e.isRestriction||n.uppy.log(e.stack||e.message||e)})},n.id=n.opts.id||"StatusBar",n.title="StatusBar",n.type="progressindicator",n.defaultLocale={strings:{uploading:"Uploading",upload:"Upload",complete:"Complete",uploadFailed:"Upload failed",paused:"Paused",retry:"Retry",cancel:"Cancel",pause:"Pause",resume:"Resume",filesUploadedOfTotal:{0:"%{complete} of %{smart_count} file uploaded",1:"%{complete} of %{smart_count} files uploaded",2:"%{complete} of %{smart_count} files uploaded"},dataUploadedOfTotal:"%{complete} of %{total}",xTimeLeft:"%{time} left",uploadXFiles:{0:"Upload %{smart_count} file",1:"Upload %{smart_count} files",2:"Upload %{smart_count} files"},uploadXNewFiles:{0:"Upload +%{smart_count} file",1:"Upload +%{smart_count} files",2:"Upload +%{smart_count} files"},xMoreFilesAdded:{0:"%{smart_count} more file added",1:"%{smart_count} more files added",2:"%{smart_count} more files added"}}},n.opts=___extends_169({},{target:"body",hideUploadButton:!1,hideRetryButton:!1,hidePauseResumeButton:!1,hideCancelButton:!1,showProgressDetails:!1,hideAfterFinish:!0},r),n.translator=new _$Translator_192([n.defaultLocale,n.uppy.locale,n.opts.locale]),n.i18n=n.translator.translate.bind(n.translator),n.render=n.render.bind(___assertThisInitialized_169(n)),n.install=n.install.bind(___assertThisInitialized_169(n)),n}r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var o=n.prototype;return o.getTotalSpeed=function(e){var t=0;return e.forEach(function(e){t+=_$getSpeed_207(e.progress)}),t},o.getTotalETA=function(e){var t=this.getTotalSpeed(e);if(0===t)return 0;var r=e.reduce(function(e,t){return e+_$getBytesRemaining_199(t.progress)},0);return Math.round(r/t*10)/10},o.getUploadingState=function(e,t,r){if(e)return _$StatusBarStates_168.STATE_ERROR;if(t)return _$StatusBarStates_168.STATE_COMPLETE;for(var n=_$StatusBarStates_168.STATE_WAITING,o=Object.keys(r),i=0;i<o.length;i++){var s=r[o[i]].progress;if(s.uploadStarted&&!s.uploadComplete)return _$StatusBarStates_168.STATE_UPLOADING;s.preprocess&&n!==_$StatusBarStates_168.STATE_UPLOADING&&(n=_$StatusBarStates_168.STATE_PREPROCESSING),s.postprocess&&n!==_$StatusBarStates_168.STATE_UPLOADING&&n!==_$StatusBarStates_168.STATE_PREPROCESSING&&(n=_$StatusBarStates_168.STATE_POSTPROCESSING)}return n},o.render=function(e){var t=e.capabilities,r=e.files,n=e.allowNewUpload,o=e.totalProgress,i=e.error,s=Object.keys(r).map(function(e){return r[e]}),a=s.filter(function(e){return!e.progress.uploadStarted&&!e.progress.preprocess&&!e.progress.postprocess}),l=s.filter(function(e){return e.progress.uploadStarted}),u=l.filter(function(e){return e.isPaused}),c=s.filter(function(e){return e.progress.uploadComplete}),p=s.filter(function(e){return e.error}),d=s.filter(function(e){return!e.progress.uploadComplete&&e.progress.uploadStarted}),h=d.filter(function(e){return!e.isPaused}),_=s.filter(function(e){return e.progress.uploadStarted||e.progress.preprocess||e.progress.postprocess}),f=s.filter(function(e){return e.progress.preprocess||e.progress.postprocess}),g=this.getTotalETA(h),m=0,y=0;l.forEach(function(e){m+=e.progress.bytesTotal||0,y+=e.progress.bytesUploaded||0});var v=l.length>0,b=100===o&&c.length===Object.keys(r).length&&0===f.length,w=v&&p.length===l.length,S=0!==d.length&&u.length===d.length,P=d.length>0,C=t.resumableUploads||!1,E=!1!==t.uploadProgress;return _$StatusBar_167({error:i,uploadState:this.getUploadingState(w,b,e.files||{}),allowNewUpload:n,totalProgress:o,totalSize:m,totalUploadedSize:y,isAllComplete:b,isAllPaused:S,isAllErrored:w,isUploadStarted:v,isUploadInProgress:P,complete:c.length,newFiles:a.length,numUploads:_.length,totalETA:g,files:r,i18n:this.i18n,pauseAll:this.uppy.pauseAll,resumeAll:this.uppy.resumeAll,retryAll:this.uppy.retryAll,cancelAll:this.uppy.cancelAll,startUpload:this.startUpload,resumableUploads:C,supportsUploadProgress:E,showProgressDetails:this.opts.showProgressDetails,hideUploadButton:this.opts.hideUploadButton,hideRetryButton:this.opts.hideRetryButton,hidePauseResumeButton:this.opts.hidePauseResumeButton,hideCancelButton:this.opts.hideCancelButton,hideAfterFinish:this.opts.hideAfterFinish,isTargetDOMEl:this.isTargetDOMEl})},o.install=function(){var e=this.opts.target;e&&this.mount(e,this)},o.uninstall=function(){this.unmount()},n}(__Plugin_169),___class_169.VERSION=_$package_170.version,___temp_169),_$exif_34={exports:{}};(function(){var e=!1,t=function(e){return e instanceof t?e:this instanceof t?void(this.EXIFwrapped=e):new t(e)};void 0!==_$exif_34.exports?(_$exif_34.exports&&(_$exif_34.exports=_$exif_34.exports=t),_$exif_34.exports.EXIF=t):this.EXIF=t;var r=t.Tags={36864:"ExifVersion",40960:"FlashpixVersion",40961:"ColorSpace",40962:"PixelXDimension",40963:"PixelYDimension",37121:"ComponentsConfiguration",37122:"CompressedBitsPerPixel",37500:"MakerNote",37510:"UserComment",40964:"RelatedSoundFile",36867:"DateTimeOriginal",36868:"DateTimeDigitized",37520:"SubsecTime",37521:"SubsecTimeOriginal",37522:"SubsecTimeDigitized",33434:"ExposureTime",33437:"FNumber",34850:"ExposureProgram",34852:"SpectralSensitivity",34855:"ISOSpeedRatings",34856:"OECF",37377:"ShutterSpeedValue",37378:"ApertureValue",37379:"BrightnessValue",37380:"ExposureBias",37381:"MaxApertureValue",37382:"SubjectDistance",37383:"MeteringMode",37384:"LightSource",37385:"Flash",37396:"SubjectArea",37386:"FocalLength",41483:"FlashEnergy",41484:"SpatialFrequencyResponse",41486:"FocalPlaneXResolution",41487:"FocalPlaneYResolution",41488:"FocalPlaneResolutionUnit",41492:"SubjectLocation",41493:"ExposureIndex",41495:"SensingMethod",41728:"FileSource",41729:"SceneType",41730:"CFAPattern",41985:"CustomRendered",41986:"ExposureMode",41987:"WhiteBalance",41988:"DigitalZoomRation",41989:"FocalLengthIn35mmFilm",41990:"SceneCaptureType",41991:"GainControl",41992:"Contrast",41993:"Saturation",41994:"Sharpness",41995:"DeviceSettingDescription",41996:"SubjectDistanceRange",40965:"InteroperabilityIFDPointer",42016:"ImageUniqueID"},o=t.TiffTags={256:"ImageWidth",257:"ImageHeight",34665:"ExifIFDPointer",34853:"GPSInfoIFDPointer",40965:"InteroperabilityIFDPointer",258:"BitsPerSample",259:"Compression",262:"PhotometricInterpretation",274:"Orientation",277:"SamplesPerPixel",284:"PlanarConfiguration",530:"YCbCrSubSampling",531:"YCbCrPositioning",282:"XResolution",283:"YResolution",296:"ResolutionUnit",273:"StripOffsets",278:"RowsPerStrip",279:"StripByteCounts",513:"JPEGInterchangeFormat",514:"JPEGInterchangeFormatLength",301:"TransferFunction",318:"WhitePoint",319:"PrimaryChromaticities",529:"YCbCrCoefficients",532:"ReferenceBlackWhite",306:"DateTime",270:"ImageDescription",271:"Make",272:"Model",305:"Software",315:"Artist",33432:"Copyright"},i=t.GPSTags={0:"GPSVersionID",1:"GPSLatitudeRef",2:"GPSLatitude",3:"GPSLongitudeRef",4:"GPSLongitude",5:"GPSAltitudeRef",6:"GPSAltitude",7:"GPSTimeStamp",8:"GPSSatellites",9:"GPSStatus",10:"GPSMeasureMode",11:"GPSDOP",12:"GPSSpeedRef",13:"GPSSpeed",14:"GPSTrackRef",15:"GPSTrack",16:"GPSImgDirectionRef",17:"GPSImgDirection",18:"GPSMapDatum",19:"GPSDestLatitudeRef",20:"GPSDestLatitude",21:"GPSDestLongitudeRef",22:"GPSDestLongitude",23:"GPSDestBearingRef",24:"GPSDestBearing",25:"GPSDestDistanceRef",26:"GPSDestDistance",27:"GPSProcessingMethod",28:"GPSAreaInformation",29:"GPSDateStamp",30:"GPSDifferential"},s=t.IFD1Tags={256:"ImageWidth",257:"ImageHeight",258:"BitsPerSample",259:"Compression",262:"PhotometricInterpretation",273:"StripOffsets",274:"Orientation",277:"SamplesPerPixel",278:"RowsPerStrip",279:"StripByteCounts",282:"XResolution",283:"YResolution",284:"PlanarConfiguration",296:"ResolutionUnit",513:"JpegIFOffset",514:"JpegIFByteCount",529:"YCbCrCoefficients",530:"YCbCrSubSampling",531:"YCbCrPositioning",532:"ReferenceBlackWhite"},a=t.StringValues={ExposureProgram:{0:"Not defined",1:"Manual",2:"Normal program",3:"Aperture priority",4:"Shutter priority",5:"Creative program",6:"Action program",7:"Portrait mode",8:"Landscape mode"},MeteringMode:{0:"Unknown",1:"Average",2:"CenterWeightedAverage",3:"Spot",4:"MultiSpot",5:"Pattern",6:"Partial",255:"Other"},LightSource:{0:"Unknown",1:"Daylight",2:"Fluorescent",3:"Tungsten (incandescent light)",4:"Flash",9:"Fine weather",10:"Cloudy weather",11:"Shade",12:"Daylight fluorescent (D 5700 - 7100K)",13:"Day white fluorescent (N 4600 - 5400K)",14:"Cool white fluorescent (W 3900 - 4500K)",15:"White fluorescent (WW 3200 - 3700K)",17:"Standard light A",18:"Standard light B",19:"Standard light C",20:"D55",21:"D65",22:"D75",23:"D50",24:"ISO studio tungsten",255:"Other"},Flash:{0:"Flash did not fire",1:"Flash fired",5:"Strobe return light not detected",7:"Strobe return light detected",9:"Flash fired, compulsory flash mode",13:"Flash fired, compulsory flash mode, return light not detected",15:"Flash fired, compulsory flash mode, return light detected",16:"Flash did not fire, compulsory flash mode",24:"Flash did not fire, auto mode",25:"Flash fired, auto mode",29:"Flash fired, auto mode, return light not detected",31:"Flash fired, auto mode, return light detected",32:"No flash function",65:"Flash fired, red-eye reduction mode",69:"Flash fired, red-eye reduction mode, return light not detected",71:"Flash fired, red-eye reduction mode, return light detected",73:"Flash fired, compulsory flash mode, red-eye reduction mode",77:"Flash fired, compulsory flash mode, red-eye reduction mode, return light not detected",79:"Flash fired, compulsory flash mode, red-eye reduction mode, return light detected",89:"Flash fired, auto mode, red-eye reduction mode",93:"Flash fired, auto mode, return light not detected, red-eye reduction mode",95:"Flash fired, auto mode, return light detected, red-eye reduction mode"},SensingMethod:{1:"Not defined",2:"One-chip color area sensor",3:"Two-chip color area sensor",4:"Three-chip color area sensor",5:"Color sequential area sensor",7:"Trilinear sensor",8:"Color sequential linear sensor"},SceneCaptureType:{0:"Standard",1:"Landscape",2:"Portrait",3:"Night scene"},SceneType:{1:"Directly photographed"},CustomRendered:{0:"Normal process",1:"Custom process"},WhiteBalance:{0:"Auto white balance",1:"Manual white balance"},GainControl:{0:"None",1:"Low gain up",2:"High gain up",3:"Low gain down",4:"High gain down"},Contrast:{0:"Normal",1:"Soft",2:"Hard"},Saturation:{0:"Normal",1:"Low saturation",2:"High saturation"},Sharpness:{0:"Normal",1:"Soft",2:"Hard"},SubjectDistanceRange:{0:"Unknown",1:"Macro",2:"Close view",3:"Distant view"},FileSource:{3:"DSC"},Components:{0:"",1:"Y",2:"Cb",3:"Cr",4:"R",5:"G",6:"B"}};function l(e){return!!e.exifdata}function u(r,n){function o(o){var i=c(o);r.exifdata=i||{};var s=function(t){var r=new DataView(t);if(e&&console.log("Got file of length "+t.byteLength),255!=r.getUint8(0)||216!=r.getUint8(1))return e&&console.log("Not a valid JPEG"),!1;for(var n=2,o=t.byteLength,i=function(e,t){return 56===e.getUint8(t)&&66===e.getUint8(t+1)&&73===e.getUint8(t+2)&&77===e.getUint8(t+3)&&4===e.getUint8(t+4)&&4===e.getUint8(t+5)};n<o;){if(i(r,n)){var s=r.getUint8(n+7);return s%2!=0&&(s+=1),0===s&&(s=4),d(t,n+8+s,r.getUint16(n+6+s))}n++}}(o);if(r.iptcdata=s||{},t.isXmpEnabled){var a=function(t){if("DOMParser"in self){var r=new DataView(t);if(e&&console.log("Got file of length "+t.byteLength),255!=r.getUint8(0)||216!=r.getUint8(1))return e&&console.log("Not a valid JPEG"),!1;for(var n=2,o=t.byteLength,i=new DOMParser;n<o-4;){if("http"==f(r,n,4)){var s=n-1,a=r.getUint16(n-2)-1,l=f(r,s,a),u=l.indexOf("xmpmeta>")+8,c=(l=l.substring(l.indexOf("<x:xmpmeta"),u)).indexOf("x:xmpmeta")+10;return l=l.slice(0,c)+'xmlns:Iptc4xmpCore="http://iptc.org/std/Iptc4xmpCore/1.0/xmlns/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tiff="http://ns.adobe.com/tiff/1.0/" xmlns:plus="http://schemas.android.com/apk/lib/com.google.android.gms.plus" xmlns:ext="http://www.gettyimages.com/xsltExtension/1.0" xmlns:exif="http://ns.adobe.com/exif/1.0/" xmlns:stEvt="http://ns.adobe.com/xap/1.0/sType/ResourceEvent#" xmlns:stRef="http://ns.adobe.com/xap/1.0/sType/ResourceRef#" xmlns:crs="http://ns.adobe.com/camera-raw-settings/1.0/" xmlns:xapGImg="http://ns.adobe.com/xap/1.0/g/img/" xmlns:Iptc4xmpExt="http://iptc.org/std/Iptc4xmpExt/2008-02-29/" '+l.slice(c),y(i.parseFromString(l,"text/xml"))}n++}}}(o);r.xmpdata=a||{}}n&&n.call(r)}if(r.src)if(/^data\:/i.test(r.src))o(function(e,t){t=t||e.match(/^data\:([^\;]+)\;base64,/im)[1]||"",e=e.replace(/^data\:([^\;]+)\;base64,/gim,"");for(var r=atob(e),n=r.length,o=new ArrayBuffer(n),i=new Uint8Array(o),s=0;s<n;s++)i[s]=r.charCodeAt(s);return o}(r.src));else if(/^blob\:/i.test(r.src))(s=new FileReader).onload=function(e){o(e.target.result)},function(e,t){var r=new XMLHttpRequest;r.open("GET",e,!0),r.responseType="blob",r.onload=function(e){var t;200!=this.status&&0!==this.status||(t=this.response,s.readAsArrayBuffer(t))},r.send()}(r.src);else{var i=new XMLHttpRequest;i.onload=function(){if(200!=this.status&&0!==this.status)throw"Could not load image";o(i.response),i=null},i.open("GET",r.src,!0),i.responseType="arraybuffer",i.send(null)}else if(self.FileReader&&(r instanceof self.Blob||r instanceof self.File)){var s;(s=new FileReader).onload=function(t){e&&console.log("Got file of length "+t.target.result.byteLength),o(t.target.result)},s.readAsArrayBuffer(r)}}function c(t){var r=new DataView(t);if(e&&console.log("Got file of length "+t.byteLength),255!=r.getUint8(0)||216!=r.getUint8(1))return e&&console.log("Not a valid JPEG"),!1;for(var n,o=2,i=t.byteLength;o<i;){if(255!=r.getUint8(o))return e&&console.log("Not a valid marker at offset "+o+", found: "+r.getUint8(o)),!1;if(n=r.getUint8(o+1),e&&console.log(n),225==n)return e&&console.log("Found 0xFFE1 marker"),g(r,o+4,r.getUint16(o+2));o+=2+r.getUint16(o+2)}}var p={120:"caption",110:"credit",25:"keywords",55:"dateCreated",80:"byline",85:"bylineTitle",122:"captionWriter",105:"headline",116:"copyright",15:"category"};function d(e,t,r){for(var n,o,i,s,a=new DataView(e),l={},u=t;u<t+r;)28===a.getUint8(u)&&2===a.getUint8(u+1)&&(s=a.getUint8(u+2))in p&&(i=a.getInt16(u+3),o=p[s],n=f(a,u+5,i),l.hasOwnProperty(o)?l[o]instanceof Array?l[o].push(n):l[o]=[l[o],n]:l[o]=n),u++;return l}function h(t,r,n,o,i){var s,a,l,u=t.getUint16(n,!i),c={};for(l=0;l<u;l++)s=n+12*l+2,!(a=o[t.getUint16(s,!i)])&&e&&console.log("Unknown tag: "+t.getUint16(s,!i)),c[a]=_(t,s,r,n,i);return c}function _(e,t,r,n,o){var i,s,a,l,u,c,p=e.getUint16(t+2,!o),d=e.getUint32(t+4,!o),h=e.getUint32(t+8,!o)+r;switch(p){case 1:case 7:if(1==d)return e.getUint8(t+8,!o);for(i=d>4?h:t+8,s=[],l=0;l<d;l++)s[l]=e.getUint8(i+l);return s;case 2:return f(e,i=d>4?h:t+8,d-1);case 3:if(1==d)return e.getUint16(t+8,!o);for(i=d>2?h:t+8,s=[],l=0;l<d;l++)s[l]=e.getUint16(i+2*l,!o);return s;case 4:if(1==d)return e.getUint32(t+8,!o);for(s=[],l=0;l<d;l++)s[l]=e.getUint32(h+4*l,!o);return s;case 5:if(1==d)return u=e.getUint32(h,!o),c=e.getUint32(h+4,!o),(a=new Number(u/c)).numerator=u,a.denominator=c,a;for(s=[],l=0;l<d;l++)u=e.getUint32(h+8*l,!o),c=e.getUint32(h+4+8*l,!o),s[l]=new Number(u/c),s[l].numerator=u,s[l].denominator=c;return s;case 9:if(1==d)return e.getInt32(t+8,!o);for(s=[],l=0;l<d;l++)s[l]=e.getInt32(h+4*l,!o);return s;case 10:if(1==d)return e.getInt32(h,!o)/e.getInt32(h+4,!o);for(s=[],l=0;l<d;l++)s[l]=e.getInt32(h+8*l,!o)/e.getInt32(h+4+8*l,!o);return s}}function f(e,t,r){var o="";for(n=t;n<t+r;n++)o+=String.fromCharCode(e.getUint8(n));return o}function g(t,n){if("Exif"!=f(t,n,4))return e&&console.log("Not valid EXIF data! "+f(t,n,4)),!1;var l,u,c,p,d,_=n+6;if(18761==t.getUint16(_))l=!1;else{if(19789!=t.getUint16(_))return e&&console.log("Not valid TIFF data! (no 0x4949 or 0x4D4D)"),!1;l=!0}if(42!=t.getUint16(_+2,!l))return e&&console.log("Not valid TIFF data! (no 0x002A)"),!1;var g=t.getUint32(_+4,!l);if(g<8)return e&&console.log("Not valid TIFF data! (First offset less than 8)",t.getUint32(_+4,!l)),!1;if((u=h(t,_,_+g,o,l)).ExifIFDPointer)for(c in p=h(t,_,_+u.ExifIFDPointer,r,l)){switch(c){case"LightSource":case"Flash":case"MeteringMode":case"ExposureProgram":case"SensingMethod":case"SceneCaptureType":case"SceneType":case"CustomRendered":case"WhiteBalance":case"GainControl":case"Contrast":case"Saturation":case"Sharpness":case"SubjectDistanceRange":case"FileSource":p[c]=a[c][p[c]];break;case"ExifVersion":case"FlashpixVersion":p[c]=String.fromCharCode(p[c][0],p[c][1],p[c][2],p[c][3]);break;case"ComponentsConfiguration":p[c]=a.Components[p[c][0]]+a.Components[p[c][1]]+a.Components[p[c][2]]+a.Components[p[c][3]]}u[c]=p[c]}if(u.GPSInfoIFDPointer)for(c in d=h(t,_,_+u.GPSInfoIFDPointer,i,l)){switch(c){case"GPSVersionID":d[c]=d[c][0]+"."+d[c][1]+"."+d[c][2]+"."+d[c][3]}u[c]=d[c]}return u.thumbnail=function(e,t,r,n){var o=function(e,t,r){var n=e.getUint16(t,!r);return e.getUint32(t+2+12*n,!r)}(e,t+r,n);if(!o)return{};if(o>e.byteLength)return{};var i=h(e,t,t+o,s,n);if(i.Compression)switch(i.Compression){case 6:if(i.JpegIFOffset&&i.JpegIFByteCount){var a=t+i.JpegIFOffset,l=i.JpegIFByteCount;i.blob=new Blob([new Uint8Array(e.buffer,a,l)],{type:"image/jpeg"})}break;case 1:console.log("Thumbnail image format is TIFF, which is not implemented.");break;default:console.log("Unknown thumbnail image format '%s'",i.Compression)}else 2==i.PhotometricInterpretation&&console.log("Thumbnail image format is RGB, which is not implemented.");return i}(t,_,g,l),u}function m(e){var t={};if(1==e.nodeType){if(e.attributes.length>0){t["@attributes"]={};for(var r=0;r<e.attributes.length;r++){var n=e.attributes.item(r);t["@attributes"][n.nodeName]=n.nodeValue}}}else if(3==e.nodeType)return e.nodeValue;if(e.hasChildNodes())for(var o=0;o<e.childNodes.length;o++){var i=e.childNodes.item(o),s=i.nodeName;if(null==t[s])t[s]=m(i);else{if(null==t[s].push){var a=t[s];t[s]=[],t[s].push(a)}t[s].push(m(i))}}return t}function y(e){try{var t={};if(e.children.length>0)for(var r=0;r<e.children.length;r++){var n=e.children.item(r),o=n.attributes;for(var i in o){var s=o[i],a=s.nodeName,l=s.nodeValue;void 0!==a&&(t[a]=l)}var u=n.nodeName;if(void 0===t[u])t[u]=m(n);else{if(void 0===t[u].push){var c=t[u];t[u]=[],t[u].push(c)}t[u].push(m(n))}}else t=e.textContent;return t}catch(e){console.log(e.message)}}t.enableXmp=function(){t.isXmpEnabled=!0},t.disableXmp=function(){t.isXmpEnabled=!1},t.getData=function(e,t){return!((self.Image&&e instanceof self.Image||self.HTMLImageElement&&e instanceof self.HTMLImageElement)&&!e.complete||(l(e)?t&&t.call(e):u(e,t),0))},t.getTag=function(e,t){if(l(e))return e.exifdata[t]},t.getIptcTag=function(e,t){if(l(e))return e.iptcdata[t]},t.getAllTags=function(e){if(!l(e))return{};var t,r=e.exifdata,n={};for(t in r)r.hasOwnProperty(t)&&(n[t]=r[t]);return n},t.getAllIptcTags=function(e){if(!l(e))return{};var t,r=e.iptcdata,n={};for(t in r)r.hasOwnProperty(t)&&(n[t]=r[t]);return n},t.pretty=function(e){if(!l(e))return"";var t,r=e.exifdata,n="";for(t in r)r.hasOwnProperty(t)&&("object"==typeof r[t]?r[t]instanceof Number?n+=t+" : "+r[t]+" ["+r[t].numerator+"/"+r[t].denominator+"]\r\n":n+=t+" : ["+r[t].length+" values]\r\n":n+=t+" : "+r[t]+"\r\n");return n},t.readFromBinaryFile=function(e){return c(e)},"function"==typeof define&&define.amd&&define("exif-js",[],function(){return t})}).call(this),_$exif_34=_$exif_34.exports;var _$imageOrientations_175={1:{rotation:0,xScale:1,yScale:1},2:{rotation:0,xScale:-1,yScale:1},3:{rotation:180,xScale:1,yScale:1},4:{rotation:180,xScale:-1,yScale:1},5:{rotation:90,xScale:1,yScale:-1},6:{rotation:90,xScale:1,yScale:1},7:{rotation:270,xScale:1,yScale:-1},8:{rotation:270,xScale:1,yScale:1}},_$package_177={version:"1.2.0"},_$dataURItoBlob_194=function(e,t,r){var n=e.split(",")[1],o=t.mimeType||e.split(",")[0].split(":")[1].split(";")[0];null==o&&(o="plain/text");for(var i,s=atob(n),a=[],l=0;l<s.length;l++)a.push(s.charCodeAt(l));try{i=new Uint8Array(a)}catch(e){return null}return r?new File([i],t.name||"",{type:o}):new Blob([i],{type:o})},_$isObjectURL_211=function(e){return 0===e.indexOf("blob:")},_$isPreviewSupported_212=function(e){if(!e)return!1;var t=e.split("/")[1];return!!/^(jpe?g|gif|png|svg|svg\+xml|bmp)$/.test(t)},___class_176,___temp_176;function ___extends_176(){return(___extends_176=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function ___assertThisInitialized_176(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var __Plugin_176=_$lib_101.Plugin,_$lib_176=(___temp_176=___class_176=function(e){var t,r;function n(t,r){var n;return(n=e.call(this,t,r)||this).type="thumbnail",n.id=n.opts.id||"ThumbnailGenerator",n.title="Thumbnail Generator",n.queue=[],n.queueProcessing=!1,n.defaultThumbnailDimension=200,n.opts=___extends_176({},{thumbnailWidth:null,thumbnailHeight:null},r),n.onFileAdded=n.onFileAdded.bind(___assertThisInitialized_176(n)),n.onFileRemoved=n.onFileRemoved.bind(___assertThisInitialized_176(n)),n.onRestored=n.onRestored.bind(___assertThisInitialized_176(n)),n}r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var o=n.prototype;return o.createThumbnail=function(e,t,r){var n=this,o=URL.createObjectURL(e.data),i=new Promise(function(e,t){var r=new Image;r.src=o,r.addEventListener("load",function(){URL.revokeObjectURL(o),e(r)}),r.addEventListener("error",function(e){URL.revokeObjectURL(o),t(e.error||new Error("Could not create thumbnail"))})});return Promise.all([i,this.getOrientation(e)]).then(function(e){var o=e[0],i=e[1],s=n.getProportionalDimensions(o,t,r,i.rotation),a=n.rotateImage(o,i),l=n.resizeImage(a,s.width,s.height);return n.canvasToBlob(l,"image/png")}).then(function(e){return URL.createObjectURL(e)})},o.getProportionalDimensions=function(e,t,r,n){var o=e.width/e.height;return 90!==n&&270!==n||(o=e.height/e.width),null!=t?{width:t,height:Math.round(t/o)}:null!=r?{width:Math.round(r*o),height:r}:{width:this.defaultThumbnailDimension,height:Math.round(this.defaultThumbnailDimension/o)}},o.getOrientation=function(e){return new Promise(function(t){_$exif_34.getData(e.data,function(){var e=_$exif_34.getTag(this,"Orientation")||1;t(_$imageOrientations_175[e])})})},o.protect=function(e){var t=e.width/e.height,r=Math.floor(Math.sqrt(5e6*t)),n=Math.floor(5e6/Math.sqrt(5e6*t));if(r>4096&&(r=4096,n=Math.round(r/t)),n>4096&&(n=4096,r=Math.round(t*n)),e.width>r){var o=document.createElement("canvas");o.width=r,o.height=n,o.getContext("2d").drawImage(e,0,0,r,n),e=o}return e},o.resizeImage=function(e,t,r){e=this.protect(e);var n=Math.ceil(Math.log(e.width/t)*Math.LOG2E);n<1&&(n=1);for(var o=t*Math.pow(2,n-1),i=r*Math.pow(2,n-1);n--;){var s=document.createElement("canvas");s.width=o,s.height=i,s.getContext("2d").drawImage(e,0,0,o,i),e=s,o=Math.round(o/2),i=Math.round(i/2)}return e},o.rotateImage=function(e,t){var r=e.width,n=e.height;90!==t.rotation&&270!==t.rotation||(r=e.height,n=e.width);var o=document.createElement("canvas");o.width=r,o.height=n;var i=o.getContext("2d");return i.translate(r/2,n/2),i.rotate(t.rotation*Math.PI/180),i.scale(t.xScale,t.yScale),i.drawImage(e,-e.width/2,-e.height/2,e.width,e.height),o},o.canvasToBlob=function(e,t,r){try{e.getContext("2d").getImageData(0,0,1,1)}catch(e){if(18===e.code)return Promise.reject(new Error("cannot read image, probably an svg with external resources"))}return e.toBlob?new Promise(function(n){e.toBlob(n,t,r)}).then(function(e){if(null===e)throw new Error("cannot read image, probably an svg with external resources");return e}):Promise.resolve().then(function(){return _$dataURItoBlob_194(e.toDataURL(t,r),{})}).then(function(e){if(null===e)throw new Error("could not extract blob, probably an old browser");return e})},o.setPreviewURL=function(e,t){this.uppy.setFileState(e,{preview:t})},o.addToQueue=function(e){this.queue.push(e),!1===this.queueProcessing&&this.processQueue()},o.processQueue=function(){var e=this;if(this.queueProcessing=!0,this.queue.length>0){var t=this.queue.shift();return this.requestThumbnail(t).catch(function(e){}).then(function(){return e.processQueue()})}this.queueProcessing=!1,this.uppy.log("[ThumbnailGenerator] Emptied thumbnail queue"),this.uppy.emit("thumbnail:all-generated")},o.requestThumbnail=function(e){var t=this;return _$isPreviewSupported_212(e.type)&&!e.isRemote?this.createThumbnail(e,this.opts.thumbnailWidth,this.opts.thumbnailHeight).then(function(r){t.setPreviewURL(e.id,r),t.uppy.log("[ThumbnailGenerator] Generated thumbnail for "+e.id),t.uppy.emit("thumbnail:generated",t.uppy.getFile(e.id),r)}).catch(function(r){t.uppy.log("[ThumbnailGenerator] Failed thumbnail for "+e.id+":","warning"),t.uppy.log(r,"warning"),t.uppy.emit("thumbnail:error",t.uppy.getFile(e.id),r)}):Promise.resolve()},o.onFileAdded=function(e){e.preview||this.addToQueue(e)},o.onFileRemoved=function(e){var t=this.queue.indexOf(e);-1!==t&&this.queue.splice(t,1),e.preview&&_$isObjectURL_211(e.preview)&&URL.revokeObjectURL(e.preview)},o.onRestored=function(){var e=this,t=this.uppy.getState().files;Object.keys(t).forEach(function(t){var r=e.uppy.getFile(t);r.isRestored&&(r.preview&&!_$isObjectURL_211(r.preview)||e.addToQueue(r))})},o.install=function(){this.uppy.on("file-added",this.onFileAdded),this.uppy.on("file-removed",this.onFileRemoved),this.uppy.on("restored",this.onRestored)},o.uninstall=function(){this.uppy.off("file-added",this.onFileAdded),this.uppy.off("file-removed",this.onFileRemoved),this.uppy.off("restored",this.onRestored)},n}(__Plugin_176),___class_176.VERSION=_$package_177.version,___temp_176),_$findAllDOMElements_196=function(e){if("string"==typeof e){var t=[].slice.call(document.querySelectorAll(e));return t.length>0?t:null}if("object"==typeof e&&_$isDOMElement_209(e))return[e]},_$fallbackApi_201=function(e){var t=_$toArray_220(e.files);return Promise.resolve(t)};function recursivelyAddFilesFromDirectory(e,t,r){!function e(t,r,n){t.readEntries(function(o){var i=[].concat(r,o);o.length?setTimeout(function(){e(t,i,n)},0):n(i)},function(){return n(r)})}(r.createReader(),[],function(r){var n=r.map(function(e){return createPromiseToAddFileOrParseDirectory(t,e)});Promise.all(n).then(function(){return e()})})}function createPromiseToAddFileOrParseDirectory(e,t){return new Promise(function(r){t.isFile?function(e,t,r){r.file(function(n){n.relativePath=function(e){return e.fullPath&&e.fullPath!=="/"+e.name?e.fullPath:null}(r),t.push(n),e()},function(){return e()})}(r,e,t):t.isDirectory&&recursivelyAddFilesFromDirectory(r,e,t)})}var _$webkitGetAsEntryApi_202=function(e){var t=[],r=[];return _$toArray_220(e.items).forEach(function(e){var n=e.webkitGetAsEntry();n&&r.push(createPromiseToAddFileOrParseDirectory(t,n))}),Promise.all(r).then(function(){return t})},_$getDroppedFiles_200=function(e){return e.items&&e.items[0]&&"webkitGetAsEntry"in e.items[0]?_$webkitGetAsEntryApi_202(e):_$fallbackApi_201(e)},___class_120,___temp_120;function ___extends_120(){return(___extends_120=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function ___assertThisInitialized_120(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var __Plugin_120=_$lib_101.Plugin,ResizeObserver=_$ResizeObserver_55.default||_$ResizeObserver_55,defaultPickerIcon=_$icons_119.defaultPickerIcon,memoize=_$memoizeOneCjs_45.default||_$memoizeOneCjs_45;function createPromise(){var e={};return e.promise=new Promise(function(t,r){e.resolve=t,e.reject=r}),e}var _$lib_120=(___temp_120=___class_120=function(e){var t,r;function n(t,r){var n;(n=e.call(this,t,r)||this).cancelUpload=function(e){n.uppy.removeFile(e)},n.saveFileCard=function(e,t){n.uppy.setFileMeta(t,e),n.toggleFileCard()},n._attachRenderFunctionToTarget=function(e){var t=n.uppy.getPlugin(e.id);return ___extends_120({},e,{icon:t.icon||n.opts.defaultPickerIcon,render:t.render})},n._isTargetSupported=function(e){var t=n.uppy.getPlugin(e.id);return"function"!=typeof t.isSupported||t.isSupported()},n._getAcquirers=memoize(function(e){return e.filter(function(e){return"acquirer"===e.type&&n._isTargetSupported(e)}).map(n._attachRenderFunctionToTarget)}),n._getProgressIndicators=memoize(function(e){return e.filter(function(e){return"progressindicator"===e.type}).map(n._attachRenderFunctionToTarget)}),n.id=n.opts.id||"Dashboard",n.title="Dashboard",n.type="orchestrator",n.modalName="uppy-Dashboard-"+_$cuid_13(),n.defaultLocale={strings:{closeModal:"Close Modal",importFrom:"Import from %{name}",addingMoreFiles:"Adding more files",addMoreFiles:"Add more files",dashboardWindowTitle:"File Uploader Window (Press escape to close)",dashboardTitle:"File Uploader",copyLinkToClipboardSuccess:"Link copied to clipboard",copyLinkToClipboardFallback:"Copy the URL below",copyLink:"Copy link",link:"Link",fileSource:"File source: %{name}",done:"Done",back:"Back",addMore:"Add more",removeFile:"Remove file",editFile:"Edit file",editing:"Editing %{file}",edit:"Edit",finishEditingFile:"Finish editing file",saveChanges:"Save changes",cancel:"Cancel",myDevice:"My Device",dropPasteImport:"Drop files here, paste, %{browse} or import from",dropPaste:"Drop files here, paste or %{browse}",dropHint:"Drop your files here",browse:"browse",uploadComplete:"Upload complete",uploadPaused:"Upload paused",resumeUpload:"Resume upload",pauseUpload:"Pause upload",retryUpload:"Retry upload",cancelUpload:"Cancel upload",xFilesSelected:{0:"%{smart_count} file selected",1:"%{smart_count} files selected",2:"%{smart_count} files selected"},uploadingXFiles:{0:"Uploading %{smart_count} file",1:"Uploading %{smart_count} files",2:"Uploading %{smart_count} files"},processingXFiles:{0:"Processing %{smart_count} file",1:"Processing %{smart_count} files",2:"Processing %{smart_count} files"},poweredBy:"Powered by"}};var o={target:"body",metaFields:[],trigger:"#uppy-select-files",inline:!1,width:750,height:550,thumbnailWidth:280,defaultPickerIcon:defaultPickerIcon,showLinkToFileUploadResult:!0,showProgressDetails:!1,hideUploadButton:!1,hideRetryButton:!1,hidePauseResumeCancelButtons:!1,hideProgressAfterFinish:!1,note:null,closeModalOnClickOutside:!1,closeAfterFinish:!1,disableStatusBar:!1,disableInformer:!1,disableThumbnailGenerator:!1,disablePageScrollWhenModalOpen:!0,animateOpenClose:!0,proudlyDisplayPoweredByUppy:!0,onRequestCloseModal:function(){return n.closeModal()},showSelectedFiles:!0,browserBackButtonClose:!1};return n.opts=___extends_120({},o,r),n.translator=new _$Translator_192([n.defaultLocale,n.uppy.locale,n.opts.locale]),n.i18n=n.translator.translate.bind(n.translator),n.i18nArray=n.translator.translateArray.bind(n.translator),n.openModal=n.openModal.bind(___assertThisInitialized_120(n)),n.closeModal=n.closeModal.bind(___assertThisInitialized_120(n)),n.requestCloseModal=n.requestCloseModal.bind(___assertThisInitialized_120(n)),n.isModalOpen=n.isModalOpen.bind(___assertThisInitialized_120(n)),n.addTarget=n.addTarget.bind(___assertThisInitialized_120(n)),n.removeTarget=n.removeTarget.bind(___assertThisInitialized_120(n)),n.hideAllPanels=n.hideAllPanels.bind(___assertThisInitialized_120(n)),n.showPanel=n.showPanel.bind(___assertThisInitialized_120(n)),n.toggleFileCard=n.toggleFileCard.bind(___assertThisInitialized_120(n)),n.toggleAddFilesPanel=n.toggleAddFilesPanel.bind(___assertThisInitialized_120(n)),n.initEvents=n.initEvents.bind(___assertThisInitialized_120(n)),n.handlePopState=n.handlePopState.bind(___assertThisInitialized_120(n)),n.handleKeyDownInModal=n.handleKeyDownInModal.bind(___assertThisInitialized_120(n)),n.handleKeyDownInInline=n.handleKeyDownInInline.bind(___assertThisInitialized_120(n)),n.handleComplete=n.handleComplete.bind(___assertThisInitialized_120(n)),n.handleClickOutside=n.handleClickOutside.bind(___assertThisInitialized_120(n)),n.handlePaste=n.handlePaste.bind(___assertThisInitialized_120(n)),n.handlePasteOnBody=n.handlePasteOnBody.bind(___assertThisInitialized_120(n)),n.handleInputChange=n.handleInputChange.bind(___assertThisInitialized_120(n)),n.handleDragOver=n.handleDragOver.bind(___assertThisInitialized_120(n)),n.handleDragLeave=n.handleDragLeave.bind(___assertThisInitialized_120(n)),n.handleDrop=n.handleDrop.bind(___assertThisInitialized_120(n)),n.superFocusOnEachUpdate=n.superFocusOnEachUpdate.bind(___assertThisInitialized_120(n)),n.recordIfFocusedOnUppyRecently=n.recordIfFocusedOnUppyRecently.bind(___assertThisInitialized_120(n)),n.render=n.render.bind(___assertThisInitialized_120(n)),n.install=n.install.bind(___assertThisInitialized_120(n)),n.superFocus=_$createSuperFocus_122(),n.ifFocusedOnUppyRecently=!1,n.makeDashboardInsidesVisibleAnywayTimeout=null,n.removeDragOverClassTimeout=null,n}r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var o=n.prototype;return o.removeTarget=function(e){var t=this.getPluginState().targets.filter(function(t){return t.id!==e.id});this.setPluginState({targets:t})},o.addTarget=function(e){var t=e.id||e.constructor.name,r=e.title||t,n=e.type;if("acquirer"===n||"progressindicator"===n||"presenter"===n){var o={id:t,name:r,type:n},i=this.getPluginState().targets.slice();return i.push(o),this.setPluginState({targets:i}),this.el}this.uppy.log("Dashboard: Modal can only be used by plugins of types: acquirer, progressindicator, presenter")},o.hideAllPanels=function(){this.setPluginState({activePickerPanel:!1,showAddFilesPanel:!1,activeOverlayType:null})},o.showPanel=function(e){var t=this.getPluginState().targets.filter(function(t){return"acquirer"===t.type&&t.id===e})[0];this.setPluginState({activePickerPanel:t,activeOverlayType:"PickerPanel"})},o.openModal=function(){var e=this,t=createPromise(),r=t.promise,n=t.resolve;return this.savedScrollPosition=window.pageYOffset,this.savedActiveElement=document.activeElement,this.opts.disablePageScrollWhenModalOpen&&document.body.classList.add("uppy-Dashboard-isFixed"),this.opts.animateOpenClose&&this.getPluginState().isClosing?this.el.addEventListener("animationend",function t(){e.setPluginState({isHidden:!1}),e.el.removeEventListener("animationend",t,!1),n()},!1):(this.setPluginState({isHidden:!1}),n()),this.opts.browserBackButtonClose&&this.updateBrowserHistory(),document.addEventListener("keydown",this.handleKeyDownInModal),this.uppy.emit("dashboard:modal-open"),r},o.closeModal=function(e){var t=this;void 0===e&&(e={});var r=e.manualClose,n=void 0===r||r,o=this.getPluginState(),i=o.isHidden,s=o.isClosing;if(!i&&!s){var a=createPromise(),l=a.promise,u=a.resolve;return this.opts.disablePageScrollWhenModalOpen&&document.body.classList.remove("uppy-Dashboard-isFixed"),this.opts.animateOpenClose?(this.setPluginState({isClosing:!0}),this.el.addEventListener("animationend",function e(){t.setPluginState({isHidden:!0,isClosing:!1}),t.superFocus.cancel(),t.savedActiveElement.focus(),t.el.removeEventListener("animationend",e,!1),u()},!1)):(this.setPluginState({isHidden:!0}),this.superFocus.cancel(),this.savedActiveElement.focus(),u()),document.removeEventListener("keydown",this.handleKeyDownInModal),n&&this.opts.browserBackButtonClose&&history.state&&history.state[this.modalName]&&history.go(-1),this.uppy.emit("dashboard:modal-closed"),l}},o.isModalOpen=function(){return!this.getPluginState().isHidden||!1},o.requestCloseModal=function(){return this.opts.onRequestCloseModal?this.opts.onRequestCloseModal():this.closeModal()},o.toggleFileCard=function(e){this.setPluginState({fileCardFor:e||null,activeOverlayType:e?"FileCard":null})},o.toggleAddFilesPanel=function(e){this.setPluginState({showAddFilesPanel:e,activeOverlayType:e?"AddFiles":null})},o.addFile=function(e){try{this.uppy.addFile({source:this.id,name:e.name,type:e.type,data:e,meta:{relativePath:e.relativePath||null}})}catch(e){e.isRestriction||this.uppy.log(e)}},o.startListeningToResize=function(){var e=this;this.resizeObserver=new ResizeObserver(function(t,r){var n=t,o=Array.isArray(n),i=0;for(n=o?n:n[Symbol.iterator]();;){var s;if(o){if(i>=n.length)break;s=n[i++]}else{if((i=n.next()).done)break;s=i.value}var a=s.contentRect,l=a.width,u=a.height;e.uppy.log("[Dashboard] resized: "+l+" / "+u),e.setPluginState({containerWidth:l,containerHeight:u,areInsidesReadyToBeVisible:!0})}}),this.resizeObserver.observe(this.el.querySelector(".uppy-Dashboard-inner")),this.makeDashboardInsidesVisibleAnywayTimeout=setTimeout(function(){e.getPluginState().areInsidesReadyToBeVisible||(e.uppy.log("[Dashboard] resize event didn't fire on time: defaulted to mobile layout"),e.setPluginState({areInsidesReadyToBeVisible:!0}))},1e3)},o.stopListeningToResize=function(){this.resizeObserver.disconnect(),clearTimeout(this.makeDashboardInsidesVisibleAnywayTimeout)},o.recordIfFocusedOnUppyRecently=function(e){this.el.contains(e.target)?this.ifFocusedOnUppyRecently=!0:(this.ifFocusedOnUppyRecently=!1,this.superFocus.cancel())},o.updateBrowserHistory=function(){var e;history.state&&history.state[this.modalName]||history.pushState(___extends_120({},history.state,((e={})[this.modalName]=!0,e)),""),window.addEventListener("popstate",this.handlePopState,!1)},o.handlePopState=function(e){!this.isModalOpen()||e.state&&e.state[this.modalName]||this.closeModal({manualClose:!1}),!this.isModalOpen()&&e.state&&e.state[this.modalName]&&history.go(-1)},o.handleKeyDownInModal=function(e){27===e.keyCode&&this.requestCloseModal(e),9===e.keyCode&&_$trapFocus_127.forModal(e,this.getPluginState().activeOverlayType,this.el)},o.handleClickOutside=function(){this.opts.closeModalOnClickOutside&&this.requestCloseModal()},o.handlePaste=function(e){var t=this;this.uppy.iteratePlugins(function(t){"acquirer"===t.type&&t.handleRootPaste&&t.handleRootPaste(e)}),_$toArray_220(e.clipboardData.files).forEach(function(e){t.uppy.log("[Dashboard] File pasted"),t.addFile(e)})},o.handleInputChange=function(e){var t=this;e.preventDefault(),_$toArray_220(e.target.files).forEach(function(e){return t.addFile(e)})},o.handleDragOver=function(e){e.preventDefault(),e.stopPropagation(),clearTimeout(this.removeDragOverClassTimeout),this.setPluginState({isDraggingOver:!0})},o.handleDragLeave=function(e){var t=this;e.preventDefault(),e.stopPropagation(),clearTimeout(this.removeDragOverClassTimeout),this.removeDragOverClassTimeout=setTimeout(function(){t.setPluginState({isDraggingOver:!1})},50)},o.handleDrop=function(e,t){var r=this;e.preventDefault(),e.stopPropagation(),clearTimeout(this.removeDragOverClassTimeout),e.dataTransfer.dropEffect="copy",this.setPluginState({isDraggingOver:!1}),this.uppy.iteratePlugins(function(t){"acquirer"===t.type&&t.handleRootDrop&&t.handleRootDrop(e)}),_$getDroppedFiles_200(e.dataTransfer).then(function(e){e.length>0&&(r.uppy.log("[Dashboard] Files were dropped"),e.forEach(function(e){return r.addFile(e)}))})},o.handleKeyDownInInline=function(e){9===e.keyCode&&_$trapFocus_127.forInline(e,this.getPluginState().activeOverlayType,this.el)},o.handlePasteOnBody=function(e){this.el.contains(document.activeElement)&&this.handlePaste(e)},o.handleComplete=function(e){var t=e.failed;e.uploadID,this.opts.closeAfterFinish&&0===t.length&&this.requestCloseModal()},o.initEvents=function(){var e=this,t=_$findAllDOMElements_196(this.opts.trigger);!this.opts.inline&&t&&t.forEach(function(t){return t.addEventListener("click",e.openModal)}),this.opts.inline||t||this.uppy.log("Dashboard modal trigger not found. Make sure `trigger` is set in Dashboard options unless you are planning to call openModal() method yourself","error"),this.startListeningToResize(),document.addEventListener("paste",this.handlePasteOnBody),this.uppy.on("plugin-remove",this.removeTarget),this.uppy.on("file-added",this.hideAllPanels),this.uppy.on("dashboard:modal-closed",this.hideAllPanels),this.uppy.on("complete",this.handleComplete),document.addEventListener("focus",this.recordIfFocusedOnUppyRecently,!0),document.addEventListener("click",this.recordIfFocusedOnUppyRecently,!0),this.opts.inline&&this.el.addEventListener("keydown",this.handleKeyDownInInline)},o.removeEvents=function(){var e=this,t=_$findAllDOMElements_196(this.opts.trigger);!this.opts.inline&&t&&t.forEach(function(t){return t.removeEventListener("click",e.openModal)}),this.stopListeningToResize(),document.removeEventListener("paste",this.handlePasteOnBody),window.removeEventListener("popstate",this.handlePopState,!1),this.uppy.off("plugin-remove",this.removeTarget),this.uppy.off("file-added",this.hideAllPanels),this.uppy.off("dashboard:modal-closed",this.hideAllPanels),this.uppy.off("complete",this.handleComplete),document.removeEventListener("focus",this.recordIfFocusedOnUppyRecently),document.removeEventListener("click",this.recordIfFocusedOnUppyRecently),this.opts.inline&&this.el.removeEventListener("keydown",this.handleKeyDownInInline)},o.superFocusOnEachUpdate=function(){var e=this.el.contains(document.activeElement),t=document.activeElement===document.querySelector("body")||null===document.activeElement,r=this.uppy.getState().info.isHidden,n=!this.opts.inline;r&&(n||e||t&&this.ifFocusedOnUppyRecently)?this.superFocus(this.el,this.getPluginState().activeOverlayType):this.superFocus.cancel()},o.afterUpdate=function(){this.superFocusOnEachUpdate()},o.render=function(e){var t=this.getPluginState(),r=e.files,n=e.capabilities,o=e.allowNewUpload,i=Object.keys(r).filter(function(e){return!r[e].progress.uploadStarted}),s=Object.keys(r).filter(function(e){return r[e].progress.uploadStarted}),a=Object.keys(r).filter(function(e){return r[e].isPaused}),l=Object.keys(r).filter(function(e){return r[e].progress.uploadComplete}),u=Object.keys(r).filter(function(e){return r[e].error}),c=Object.keys(r).filter(function(e){return!r[e].progress.uploadComplete&&r[e].progress.uploadStarted}),p=c.filter(function(e){return!r[e].isPaused}),d=Object.keys(r).filter(function(e){return r[e].progress.preprocess||r[e].progress.postprocess}),h=s.length>0,_=100===e.totalProgress&&l.length===Object.keys(r).length&&0===d.length,f=h&&u.length===s.length,g=0!==c.length&&a.length===c.length,m=this._getAcquirers(t.targets),y=this._getProgressIndicators(t.targets);return _$Dashboard_107({state:e,isHidden:t.isHidden,files:r,newFiles:i,uploadStartedFiles:s,completeFiles:l,erroredFiles:u,inProgressFiles:c,inProgressNotPausedFiles:p,processingFiles:d,isUploadStarted:h,isAllComplete:_,isAllErrored:f,isAllPaused:g,totalFileCount:Object.keys(r).length,totalProgress:e.totalProgress,allowNewUpload:o,acquirers:m,activePickerPanel:t.activePickerPanel,animateOpenClose:this.opts.animateOpenClose,isClosing:t.isClosing,getPlugin:this.uppy.getPlugin,progressindicators:y,autoProceed:this.uppy.opts.autoProceed,id:this.id,closeModal:this.requestCloseModal,handleClickOutside:this.handleClickOutside,handleInputChange:this.handleInputChange,handlePaste:this.handlePaste,inline:this.opts.inline,showPanel:this.showPanel,hideAllPanels:this.hideAllPanels,log:this.uppy.log,i18n:this.i18n,i18nArray:this.i18nArray,addFile:this.uppy.addFile,removeFile:this.uppy.removeFile,info:this.uppy.info,note:this.opts.note,metaFields:t.metaFields,resumableUploads:n.resumableUploads||!1,individualCancellation:n.individualCancellation,pauseUpload:this.uppy.pauseResume,retryUpload:this.uppy.retryUpload,cancelUpload:this.cancelUpload,cancelAll:this.uppy.cancelAll,fileCardFor:t.fileCardFor,toggleFileCard:this.toggleFileCard,toggleAddFilesPanel:this.toggleAddFilesPanel,showAddFilesPanel:t.showAddFilesPanel,saveFileCard:this.saveFileCard,width:this.opts.width,height:this.opts.height,showLinkToFileUploadResult:this.opts.showLinkToFileUploadResult,proudlyDisplayPoweredByUppy:this.opts.proudlyDisplayPoweredByUppy,containerWidth:t.containerWidth,areInsidesReadyToBeVisible:t.areInsidesReadyToBeVisible,isTargetDOMEl:this.isTargetDOMEl,parentElement:this.el,allowedFileTypes:this.uppy.opts.restrictions.allowedFileTypes,maxNumberOfFiles:this.uppy.opts.restrictions.maxNumberOfFiles,showSelectedFiles:this.opts.showSelectedFiles,isDraggingOver:t.isDraggingOver,handleDragOver:this.handleDragOver,handleDragLeave:this.handleDragLeave,handleDrop:this.handleDrop})},o.discoverProviderPlugins=function(){var e=this;this.uppy.iteratePlugins(function(t){t&&!t.target&&t.opts&&t.opts.target===e.constructor&&e.addTarget(t)})},o.install=function(){var e=this;this.setPluginState({isHidden:!0,fileCardFor:null,activeOverlayType:null,showAddFilesPanel:!1,activePickerPanel:!1,metaFields:this.opts.metaFields,targets:[],areInsidesReadyToBeVisible:!1,isDraggingOver:!1});var t=this.opts,r=t.inline,n=t.closeAfterFinish;if(r&&n)throw new Error("[Dashboard] `closeAfterFinish: true` cannot be used on an inline Dashboard, because an inline Dashboard cannot be closed at all. Either set `inline: false`, or disable the `closeAfterFinish` option.");this.uppy.opts.allowMultipleUploads&&n&&this.uppy.log("[Dashboard] When using `closeAfterFinish`, we recommended setting the `allowMultipleUploads` option to `false` in the Uppy constructor. See https://uppy.io/docs/uppy/#allowMultipleUploads-true","warning");var o=this.opts.target;o&&this.mount(o,this),(this.opts.plugins||[]).forEach(function(t){var r=e.uppy.getPlugin(t);r&&r.mount(e,r)}),this.opts.disableStatusBar||this.uppy.use(_$lib_169,{id:this.id+":StatusBar",target:this,hideUploadButton:this.opts.hideUploadButton,hideRetryButton:this.opts.hideRetryButton,hidePauseResumeButton:this.opts.hidePauseResumeButton,hideCancelButton:this.opts.hideCancelButton,showProgressDetails:this.opts.showProgressDetails,hideAfterFinish:this.opts.hideProgressAfterFinish,locale:this.opts.locale}),this.opts.disableInformer||this.uppy.use(_$lib_146,{id:this.id+":Informer",target:this}),this.opts.disableThumbnailGenerator||this.uppy.use(_$lib_176,{id:this.id+":ThumbnailGenerator",thumbnailWidth:this.opts.thumbnailWidth}),this.discoverProviderPlugins(),this.initEvents()},o.uninstall=function(){var e=this;if(!this.opts.disableInformer){var t=this.uppy.getPlugin(this.id+":Informer");t&&this.uppy.removePlugin(t)}if(!this.opts.disableStatusBar){var r=this.uppy.getPlugin(this.id+":StatusBar");r&&this.uppy.removePlugin(r)}if(!this.opts.disableThumbnailGenerator){var n=this.uppy.getPlugin(this.id+":ThumbnailGenerator");n&&this.uppy.removePlugin(n)}(this.opts.plugins||[]).forEach(function(t){var r=e.uppy.getPlugin(t);r&&r.unmount()}),this.unmount(),this.removeEvents()},n}(__Plugin_120),___class_120.VERSION=_$package_129.version,___temp_120),_$package_131={version:"1.2.0"},_$isDragDropSupported_210=function(){var e=document.createElement("div");return"draggable"in e&&"ondragstart"in e&&"ondrop"in e&&"FormData"in window&&"FileReader"in window},___class_130,___temp_130;function ___extends_130(){return(___extends_130=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function ___assertThisInitialized_130(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var __Plugin_130=_$lib_101.Plugin,__h_130=_$preact_51.h,_$lib_130=(___temp_130=___class_130=function(e){var t,r;function n(t,r){var n;return(n=e.call(this,t,r)||this).type="acquirer",n.id=n.opts.id||"DragDrop",n.title="Drag & Drop",n.defaultLocale={strings:{dropHereOr:"Drop files here or %{browse}",browse:"browse"}},n.opts=___extends_130({},{target:null,inputName:"files[]",width:"100%",height:"100%",note:null},r),n.isDragDropSupported=_$isDragDropSupported_210(),n.removeDragOverClassTimeout=null,n.translator=new _$Translator_192([n.defaultLocale,n.uppy.locale,n.opts.locale]),n.i18n=n.translator.translate.bind(n.translator),n.i18nArray=n.translator.translateArray.bind(n.translator),n.handleInputChange=n.handleInputChange.bind(___assertThisInitialized_130(n)),n.handleDragOver=n.handleDragOver.bind(___assertThisInitialized_130(n)),n.handleDragLeave=n.handleDragLeave.bind(___assertThisInitialized_130(n)),n.handleDrop=n.handleDrop.bind(___assertThisInitialized_130(n)),n.addFile=n.addFile.bind(___assertThisInitialized_130(n)),n.render=n.render.bind(___assertThisInitialized_130(n)),n}r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var o=n.prototype;return o.addFile=function(e){try{this.uppy.addFile({source:this.id,name:e.name,type:e.type,data:e,meta:{relativePath:e.relativePath||null}})}catch(e){e.isRestriction||this.uppy.log(e)}},o.handleInputChange=function(e){this.uppy.log("[DragDrop] Files selected through input"),_$toArray_220(e.target.files).forEach(this.addFile),e.target.value=null},o.handleDrop=function(e,t){var r=this;e.preventDefault(),e.stopPropagation(),clearTimeout(this.removeDragOverClassTimeout),e.dataTransfer.dropEffect="copy",this.setPluginState({isDraggingOver:!1}),this.uppy.log("[DragDrop] File were dropped"),_$getDroppedFiles_200(e.dataTransfer).then(function(e){e.forEach(r.addFile)})},o.handleDragOver=function(e){e.preventDefault(),e.stopPropagation(),clearTimeout(this.removeDragOverClassTimeout),this.setPluginState({isDraggingOver:!0})},o.handleDragLeave=function(e){var t=this;e.preventDefault(),e.stopPropagation(),clearTimeout(this.removeDragOverClassTimeout),this.removeDragOverClassTimeout=setTimeout(function(){t.setPluginState({isDraggingOver:!1})},50)},o.renderHiddenFileInput=function(){var e=this,t=this.uppy.opts.restrictions;return __h_130("input",{class:"uppy-DragDrop-input",type:"file",tabindex:-1,focusable:"false",ref:function(t){e.fileInputRef=t},name:this.opts.inputName,multiple:1!==t.maxNumberOfFiles,accept:t.allowedFileTypes,onchange:this.handleInputChange})},o.renderArrowSvg=function(){return __h_130("svg",{"aria-hidden":"true",focusable:"false",class:"UppyIcon uppy-DragDrop-arrow",width:"16",height:"16",viewBox:"0 0 16 16"},__h_130("path",{d:"M11 10V0H5v10H2l6 6 6-6h-3zm0 0","fill-rule":"evenodd"}))},o.renderLabel=function(){return __h_130("div",{class:"uppy-DragDrop-label"},this.i18nArray("dropHereOr",{browse:__h_130("span",{class:"uppy-DragDrop-browse"},this.i18n("browse"))}))},o.renderNote=function(){return __h_130("span",{class:"uppy-DragDrop-note"},this.opts.note)},o.render=function(e){var t=this,r="\n uppy-Root\n uppy-u-reset\n uppy-DragDrop-container\n "+(this.isDragDropSupported?"uppy-DragDrop--is-dragdrop-supported":"")+"\n "+(this.getPluginState().isDraggingOver?"uppy-DragDrop--isDraggingOver":"")+"\n ",n={width:this.opts.width,height:this.opts.height};return __h_130("button",{type:"button",class:r,style:n,onClick:function(){return t.fileInputRef.click()},onDragOver:this.handleDragOver,onDragLeave:this.handleDragLeave,onDrop:this.handleDrop},this.renderHiddenFileInput(),__h_130("div",{class:"uppy-DragDrop-inner"},this.renderArrowSvg(),this.renderLabel(),this.renderNote()))},o.install=function(){this.setPluginState({isDraggingOver:!1});var e=this.opts.target;e&&this.mount(e,this)},o.uninstall=function(){this.unmount()},n}(__Plugin_130),___class_130.VERSION=_$package_131.version,___temp_130),_$package_133={version:"1.2.0"},__h_152=_$preact_51.h,AuthView=function(e){var t,r;function n(){return e.apply(this,arguments)||this}return r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r,n.prototype.render=function(){var e=__h_152("span",{class:"uppy-Provider-authTitleName"},this.props.pluginName,__h_152("br",null));return __h_152("div",{class:"uppy-Provider-auth"},__h_152("div",{class:"uppy-Provider-authIcon"},this.props.pluginIcon()),__h_152("div",{class:"uppy-Provider-authTitle"},this.props.i18nArray("authenticateWithTitle",{pluginName:e})),__h_152("button",{type:"button",class:"uppy-u-reset uppy-c-btn uppy-c-btn-primary uppy-Provider-authBtn",onclick:this.props.handleAuth,"data-uppy-super-focusable":!0},this.props.i18nArray("authenticateWith",{pluginName:this.props.pluginName})))},n}(_$preact_51.Component),_$AuthView_152=AuthView,__h_153=_$preact_51.h,_$Breadcrumbs_153=function(e){return __h_153("div",{class:"uppy-Provider-breadcrumbs"},__h_153("div",{class:"uppy-Provider-breadcrumbsIcon"},e.breadcrumbsIcon),e.directories.map(function(t,r){return function(e){return[__h_153("button",{type:"button",class:"uppy-u-reset",onclick:e.getFolder},e.title),e.isLast?"":" / "]}({getFolder:function(){return e.getFolder(t.id)},title:0===r?e.title:t.title,isLast:r+1===e.directories.length})}))},__h_155=_$preact_51.h,__Component_155=_$preact_51.Component,_$Filter_155=function(e){var t,r;function n(t){var r;return(r=e.call(this,t)||this).preventEnterPress=r.preventEnterPress.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r)),r}r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var o=n.prototype;return o.preventEnterPress=function(e){13===e.keyCode&&(e.stopPropagation(),e.preventDefault())},o.render=function(){var e=this;return __h_155("div",{class:"uppy-ProviderBrowser-search"},__h_155("input",{class:"uppy-u-reset uppy-ProviderBrowser-searchInput",type:"text",placeholder:this.props.i18n("filter"),"aria-label":this.props.i18n("filter"),onkeyup:this.preventEnterPress,onkeydown:this.preventEnterPress,onkeypress:this.preventEnterPress,oninput:function(t){return e.props.filterQuery(t)},value:this.props.filterInput}),__h_155("svg",{"aria-hidden":"true",focusable:"false",class:"UppyIcon uppy-ProviderBrowser-searchIcon",width:"12",height:"12",viewBox:"0 0 12 12"},__h_155("path",{d:"M8.638 7.99l3.172 3.172a.492.492 0 1 1-.697.697L7.91 8.656a4.977 4.977 0 0 1-2.983.983C2.206 9.639 0 7.481 0 4.819 0 2.158 2.206 0 4.927 0c2.721 0 4.927 2.158 4.927 4.82a4.74 4.74 0 0 1-1.216 3.17zm-3.71.685c2.176 0 3.94-1.726 3.94-3.856 0-2.129-1.764-3.855-3.94-3.855C2.75.964.984 2.69.984 4.819c0 2.13 1.765 3.856 3.942 3.856z"})),this.props.filterInput&&__h_155("button",{class:"uppy-u-reset uppy-ProviderBrowser-searchClose",type:"button","aria-label":this.props.i18n("resetFilter"),title:this.props.i18n("resetFilter"),onclick:this.props.filterQuery},__h_155("svg",{"aria-hidden":"true",focusable:"false",class:"UppyIcon",viewBox:"0 0 19 19"},__h_155("path",{d:"M17.318 17.232L9.94 9.854 9.586 9.5l-.354.354-7.378 7.378h.707l-.62-.62v.706L9.318 9.94l.354-.354-.354-.354L1.94 1.854v.707l.62-.62h-.706l7.378 7.378.354.354.354-.354 7.378-7.378h-.707l.622.62v-.706L9.854 9.232l-.354.354.354.354 7.378 7.378.708-.707-7.38-7.378v.708l7.38-7.38.353-.353-.353-.353-.622-.622-.353-.353-.354.352-7.378 7.38h.708L2.56 1.23 2.208.88l-.353.353-.622.62-.353.355.352.353 7.38 7.38v-.708l-7.38 7.38-.353.353.352.353.622.622.353.353.354-.353 7.38-7.38h-.708l7.38 7.38z"}))))},n}(__Component_155),__h_156=_$preact_51.h,_$FooterActions_156=function(e){return __h_156("div",{class:"uppy-ProviderBrowser-footer"},__h_156("button",{class:"uppy-u-reset uppy-c-btn uppy-c-btn-primary",onclick:e.done},e.i18n("selectX",{smart_count:e.selected})),__h_156("button",{class:"uppy-u-reset uppy-c-btn uppy-c-btn-link",onclick:e.cancel},e.i18n("cancel")))},__h_157=_$preact_51.h,_$GridLi_157=function(e){return __h_157("li",{class:e.className},__h_157("div",{"aria-hidden":!0,class:"uppy-ProviderBrowserItem-fakeCheckbox "+(e.isChecked?"uppy-ProviderBrowserItem-fakeCheckbox--is-checked":"")}),__h_157("button",{type:"button",class:"uppy-u-reset uppy-ProviderBrowserItem-inner",onclick:e.toggleCheckbox,role:"option","aria-label":e.isChecked?e.i18n("unselectFileNamed",{name:e.title}):e.i18n("selectFileNamed",{name:e.title}),"aria-selected":e.isChecked,"aria-disabled":e.isDisabled,"data-uppy-super-focusable":!0},e.itemIconEl,e.showTitles&&e.title))},__h_158=_$preact_51.h,_$ItemIcon_158=function(e){if(null!==e.itemIconString)switch(e.itemIconString){case"file":return __h_158("svg",{"aria-hidden":"true",focusable:"false",class:"UppyIcon",width:11,height:14.5,viewBox:"0 0 44 58"},__h_158("path",{d:"M27.437.517a1 1 0 0 0-.094.03H4.25C2.037.548.217 2.368.217 4.58v48.405c0 2.212 1.82 4.03 4.03 4.03H39.03c2.21 0 4.03-1.818 4.03-4.03V15.61a1 1 0 0 0-.03-.28 1 1 0 0 0 0-.093 1 1 0 0 0-.03-.032 1 1 0 0 0 0-.03 1 1 0 0 0-.032-.063 1 1 0 0 0-.03-.063 1 1 0 0 0-.032 0 1 1 0 0 0-.03-.063 1 1 0 0 0-.032-.03 1 1 0 0 0-.03-.063 1 1 0 0 0-.063-.062l-14.593-14a1 1 0 0 0-.062-.062A1 1 0 0 0 28 .708a1 1 0 0 0-.374-.157 1 1 0 0 0-.156 0 1 1 0 0 0-.03-.03l-.003-.003zM4.25 2.547h22.218v9.97c0 2.21 1.82 4.03 4.03 4.03h10.564v36.438a2.02 2.02 0 0 1-2.032 2.032H4.25c-1.13 0-2.032-.9-2.032-2.032V4.58c0-1.13.902-2.032 2.03-2.032zm24.218 1.345l10.375 9.937.75.718H30.5c-1.13 0-2.032-.9-2.032-2.03V3.89z"}));case"folder":return __h_158("svg",{"aria-hidden":"true",focusable:"false",class:"UppyIcon",style:{width:16,marginRight:3},viewBox:"0 0 276.157 276.157"},__h_158("path",{d:"M273.08 101.378c-3.3-4.65-8.86-7.32-15.254-7.32h-24.34V67.59c0-10.2-8.3-18.5-18.5-18.5h-85.322c-3.63 0-9.295-2.875-11.436-5.805l-6.386-8.735c-4.982-6.814-15.104-11.954-23.546-11.954H58.73c-9.292 0-18.638 6.608-21.737 15.372l-2.033 5.752c-.958 2.71-4.72 5.37-7.596 5.37H18.5C8.3 49.09 0 57.39 0 67.59v167.07c0 .886.16 1.73.443 2.52.152 3.306 1.18 6.424 3.053 9.064 3.3 4.652 8.86 7.32 15.255 7.32h188.487c11.395 0 23.27-8.425 27.035-19.18l40.677-116.188c2.11-6.035 1.43-12.164-1.87-16.816zM18.5 64.088h8.864c9.295 0 18.64-6.607 21.738-15.37l2.032-5.75c.96-2.712 4.722-5.373 7.597-5.373h29.565c3.63 0 9.295 2.876 11.437 5.806l6.386 8.735c4.982 6.815 15.104 11.954 23.546 11.954h85.322c1.898 0 3.5 1.602 3.5 3.5v26.47H69.34c-11.395 0-23.27 8.423-27.035 19.178L15 191.23V67.59c0-1.898 1.603-3.5 3.5-3.5zm242.29 49.15l-40.676 116.188c-1.674 4.78-7.812 9.135-12.877 9.135H18.75c-1.447 0-2.576-.372-3.02-.997-.442-.625-.422-1.814.057-3.18l40.677-116.19c1.674-4.78 7.812-9.134 12.877-9.134h188.487c1.448 0 2.577.372 3.02.997.443.625.423 1.814-.056 3.18z"}));case"video":return __h_158("svg",{"aria-hidden":"true",focusable:"false",viewBox:"0 0 58 58"},__h_158("path",{d:"M36.537 28.156l-11-7a1.005 1.005 0 0 0-1.02-.033C24.2 21.3 24 21.635 24 22v14a1 1 0 0 0 1.537.844l11-7a1.002 1.002 0 0 0 0-1.688zM26 34.18V23.82L34.137 29 26 34.18z"}),__h_158("path",{d:"M57 6H1a1 1 0 0 0-1 1v44a1 1 0 0 0 1 1h56a1 1 0 0 0 1-1V7a1 1 0 0 0-1-1zM10 28H2v-9h8v9zm-8 2h8v9H2v-9zm10 10V8h34v42H12V40zm44-12h-8v-9h8v9zm-8 2h8v9h-8v-9zm8-22v9h-8V8h8zM2 8h8v9H2V8zm0 42v-9h8v9H2zm54 0h-8v-9h8v9z"}));default:return __h_158("img",{src:e.itemIconString})}},__h_159=_$preact_51.h,_$ListLi_159=function(e){return __h_159("li",{class:e.className},__h_159("button",{type:"button",class:"uppy-u-reset uppy-ProviderBrowserItem-fakeCheckbox "+(e.isChecked?"uppy-ProviderBrowserItem-fakeCheckbox--is-checked":""),onClick:e.toggleCheckbox,id:e.id,role:"option","aria-label":function(e){return"folder"===e.type?e.isChecked?e.i18n("unselectAllFilesFromFolderNamed",{name:e.title}):e.i18n("selectAllFilesFromFolderNamed",{name:e.title}):e.isChecked?e.i18n("unselectFileNamed",{name:e.title}):e.i18n("selectFileNamed",{name:e.title})}(e),"aria-selected":e.isChecked,"aria-disabled":e.isDisabled,"data-uppy-super-focusable":!0}),"file"===e.type?__h_159("label",{for:e.id,className:"uppy-u-reset uppy-ProviderBrowserItem-inner"},e.itemIconEl,e.showTitles&&e.title):__h_159("button",{type:"button",class:"uppy-u-reset uppy-ProviderBrowserItem-inner",onclick:e.handleFolderClick,"aria-label":e.i18n("openFolderNamed",{name:e.title})},e.itemIconEl,e.showTitles&&e.title))};function ___extends_160(){return(___extends_160=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var __h_160=_$preact_51.h,_$Item_160=function(e){var t=e.getItemIcon(),r=_$classnames_9("uppy-ProviderBrowserItem",{"uppy-ProviderBrowserItem--selected":e.isChecked},{"uppy-ProviderBrowserItem--noPreview":"video"===t}),n=__h_160(_$ItemIcon_158,{itemIconString:t});switch(e.viewType){case"grid":return __h_160(_$GridLi_157,___extends_160({},e,{className:r,itemIconEl:n}));case"list":return __h_160(_$ListLi_159,___extends_160({},e,{className:r,itemIconEl:n}));default:throw new Error("There is no such type "+e.viewType)}};function ___extends_161(){return(___extends_161=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var __h_161=_$preact_51.h,getSharedProps=function(e,t){return{id:e.id,title:e.name,getItemIcon:function(){return e.icon},isChecked:t.isChecked(e),toggleCheckbox:function(r){return t.toggleCheckbox(r,e)},columns:t.columns,showTitles:t.showTitles,viewType:t.viewType,i18n:t.i18n}},_$ItemList_161=function(e){return e.folders.length||e.files.length?__h_161("div",{class:"uppy-ProviderBrowser-body"},__h_161("ul",{class:"uppy-ProviderBrowser-list",onscroll:e.handleScroll,role:"listbox",tabindex:"-1"},e.folders.map(function(t){return _$Item_160(___extends_161({},getSharedProps(t,e),{type:"folder",isDisabled:!!e.isChecked(t)&&e.isChecked(t).loading,handleFolderClick:function(){return e.handleFolderClick(t)}}))}),e.files.map(function(t){return _$Item_160(___extends_161({},getSharedProps(t,e),{type:"file",isDisabled:!1}))}))):__h_161("div",{class:"uppy-Provider-empty"},e.i18n("noFilesFound"))};function ___extends_154(){return(___extends_154=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var __h_154=_$preact_51.h,_$Browser_154=function(e){var t=e.folders,r=e.files;""!==e.filterInput&&(t=e.filterItems(e.folders),r=e.filterItems(e.files));var n=e.currentSelection.length;return __h_154("div",{class:_$classnames_9("uppy-ProviderBrowser","uppy-ProviderBrowser-viewType--"+e.viewType)},__h_154("div",{class:"uppy-ProviderBrowser-header"},__h_154("div",{class:_$classnames_9("uppy-ProviderBrowser-headerBar",!e.showBreadcrumbs&&"uppy-ProviderBrowser-headerBar--simple")},e.showBreadcrumbs&&_$Breadcrumbs_153({getFolder:e.getFolder,directories:e.directories,breadcrumbsIcon:e.pluginIcon&&e.pluginIcon(),title:e.title}),__h_154("span",{class:"uppy-ProviderBrowser-user"},e.username),__h_154("button",{type:"button",onclick:e.logout,class:"uppy-u-reset uppy-ProviderBrowser-userLogout"},e.i18n("logOut")))),e.showFilter&&__h_154(_$Filter_155,e),__h_154(_$ItemList_161,{columns:[{name:"Name",key:"title"}],folders:t,files:r,activeRow:e.isActiveRow,sortByTitle:e.sortByTitle,sortByDate:e.sortByDate,isChecked:e.isChecked,handleFolderClick:e.getNextFolder,toggleCheckbox:e.toggleCheckbox,handleScroll:e.handleScroll,title:e.title,showTitles:e.showTitles,i18n:e.i18n,viewType:e.viewType}),n>0&&__h_154(_$FooterActions_156,___extends_154({selected:n},e)))},__h_162=_$preact_51.h,_$Loader_162=function(e){return __h_162("div",{class:"uppy-Provider-loading"},__h_162("span",null,e.i18n("loading")))},_$package_164={version:"1.2.0"},___class_163,___temp_163;function ___extends_163(){return(___extends_163=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var __h_163=_$preact_51.h,__Component_163=_$preact_51.Component,CloseWrapper=function(e){var t,r;function n(){return e.apply(this,arguments)||this}r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var o=n.prototype;return o.componentWillUnmount=function(){this.props.onUnmount()},o.render=function(){return this.props.children[0]},n}(__Component_163),_$lib_163=(___temp_163=___class_163=function(){function e(e,t){this.plugin=e,this.provider=t.provider,this.opts=___extends_163({},{viewType:"list",showTitles:!0,showFilter:!0,showBreadcrumbs:!0},t),this.addFile=this.addFile.bind(this),this.filterItems=this.filterItems.bind(this),this.filterQuery=this.filterQuery.bind(this),this.toggleSearch=this.toggleSearch.bind(this),this.getFolder=this.getFolder.bind(this),this.getNextFolder=this.getNextFolder.bind(this),this.logout=this.logout.bind(this),this.preFirstRender=this.preFirstRender.bind(this),this.handleAuth=this.handleAuth.bind(this),this.sortByTitle=this.sortByTitle.bind(this),this.sortByDate=this.sortByDate.bind(this),this.isActiveRow=this.isActiveRow.bind(this),this.isChecked=this.isChecked.bind(this),this.toggleCheckbox=this.toggleCheckbox.bind(this),this.handleError=this.handleError.bind(this),this.handleScroll=this.handleScroll.bind(this),this.donePicking=this.donePicking.bind(this),this.cancelPicking=this.cancelPicking.bind(this),this.clearSelection=this.clearSelection.bind(this),this.render=this.render.bind(this),this.clearSelection()}var t=e.prototype;return t.tearDown=function(){},t._updateFilesAndFolders=function(e,t,r){this.nextPagePath=e.nextPagePath,e.items.forEach(function(e){e.isFolder?r.push(e):t.push(e)}),this.plugin.setPluginState({folders:r,files:t})},t.preFirstRender=function(){this.plugin.setPluginState({didFirstRender:!0}),this.plugin.onFirstRender()},t.getFolder=function(e,t){var r=this;return this._loaderWrapper(this.provider.list(e),function(n){var o,i=r.plugin.getPluginState(),s=function(t,r){for(var n=0;n<t.length;n++)if(o=t[n],e===o.id)return n;var o;return-1}(i.directories);o=-1!==s?i.directories.slice(0,s+1):i.directories.concat([{id:e,title:t}]),r.username=r.username?r.username:n.username,r._updateFilesAndFolders(n,[],[]),r.plugin.setPluginState({directories:o})},this.handleError)},t.getNextFolder=function(e){this.getFolder(e.requestPath,e.name),this.lastCheckbox=void 0},t.addFile=function(e){var t={id:this.providerFileToId(e),source:this.plugin.id,data:e,name:e.name||e.id,type:e.mimeType,isRemote:!0,body:{fileId:e.id},remote:{companionUrl:this.plugin.opts.companionUrl,url:""+this.provider.fileUrl(e.requestPath),body:{fileId:e.id},providerOptions:this.provider.opts}},r=_$getFileType_204(t);r&&_$isPreviewSupported_212(r)&&(t.preview=e.thumbnail),this.plugin.uppy.log("Adding remote file");try{this.plugin.uppy.addFile(t)}catch(e){e.isRestriction||this.plugin.uppy.log(e)}},t.removeFile=function(e){var t=this.plugin.getPluginState().currentSelection;this.plugin.setPluginState({currentSelection:t.filter(function(t){return t.id!==e})})},t.logout=function(){var e=this;this.provider.logout(location.href).then(function(t){t.ok&&e.plugin.setPluginState({authenticated:!1,files:[],folders:[],directories:[]})}).catch(this.handleError)},t.filterQuery=function(e){var t=this.plugin.getPluginState();this.plugin.setPluginState(___extends_163({},t,{filterInput:e?e.target.value:""}))},t.toggleSearch=function(e){var t=this.plugin.getPluginState();this.plugin.setPluginState({isSearchVisible:!t.isSearchVisible,filterInput:""})},t.filterItems=function(e){var t=this.plugin.getPluginState();return t.filterInput&&""!==t.filterInput?e.filter(function(e){return-1!==e.name.toLowerCase().indexOf(t.filterInput.toLowerCase())}):e},t.sortByTitle=function(){var e=___extends_163({},this.plugin.getPluginState()),t=e.files,r=e.folders,n=e.sorting,o=t.sort(function(e,t){return"titleDescending"===n?t.name.localeCompare(e.name):e.name.localeCompare(t.name)}),i=r.sort(function(e,t){return"titleDescending"===n?t.name.localeCompare(e.name):e.name.localeCompare(t.name)});this.plugin.setPluginState(___extends_163({},e,{files:o,folders:i,sorting:"titleDescending"===n?"titleAscending":"titleDescending"}))},t.sortByDate=function(){var e=___extends_163({},this.plugin.getPluginState()),t=e.files,r=e.folders,n=e.sorting,o=t.sort(function(e,t){var r=new Date(e.modifiedDate),o=new Date(t.modifiedDate);return"dateDescending"===n?r>o?-1:r<o?1:0:r>o?1:r<o?-1:0}),i=r.sort(function(e,t){var r=new Date(e.modifiedDate),o=new Date(t.modifiedDate);return"dateDescending"===n?r>o?-1:r<o?1:0:r>o?1:r<o?-1:0});this.plugin.setPluginState(___extends_163({},e,{files:o,folders:i,sorting:"dateDescending"===n?"dateAscending":"dateDescending"}))},t.sortBySize=function(){var e=___extends_163({},this.plugin.getPluginState()),t=e.files,r=e.sorting;if(t.length&&this.plugin.getItemData(t[0]).size){var n=t.sort(function(e,t){var n=e.size,o=t.size;return"sizeDescending"===r?n>o?-1:n<o?1:0:n>o?1:n<o?-1:0});this.plugin.setPluginState(___extends_163({},e,{files:n,sorting:"sizeDescending"===r?"sizeAscending":"sizeDescending"}))}},t.isActiveRow=function(e){return this.plugin.getPluginState().activeRow===this.plugin.getItemId(e)},t.isChecked=function(e){return this.plugin.getPluginState().currentSelection.some(function(t){return t.id===e.id})},t.addFolder=function(e){var t=this,r=this.providerFileToId(e),n=this.plugin.getPluginState(),o=n.selectedFolders||{};if(!(r in o&&o[r].loading))return o[r]={loading:!0,files:[]},this.plugin.setPluginState({selectedFolders:o}),this.provider.list(e.requestPath).then(function(i){var s,a=[];i.items.forEach(function(e){e.isFolder||(t.addFile(e),a.push(t.providerFileToId(e)))}),(n=t.plugin.getPluginState()).selectedFolders[r]={loading:!1,files:a},t.plugin.setPluginState({selectedFolders:o}),s=a.length?t.plugin.uppy.i18n("folderAdded",{smart_count:a.length,folder:e.name}):t.plugin.uppy.i18n("emptyFolderAdded"),t.plugin.uppy.info(s)}).catch(function(e){delete(n=t.plugin.getPluginState()).selectedFolders[r],t.plugin.setPluginState({selectedFolders:n.selectedFolders}),t.handleError(e)})},t.toggleCheckbox=function(e,t){e.stopPropagation(),e.preventDefault(),e.currentTarget.focus();var r=this.plugin.getPluginState(),n=r.folders,o=r.files,i=this.filterItems(n.concat(o));if(this.lastCheckbox&&e.shiftKey){var s,a=i.indexOf(this.lastCheckbox),l=i.indexOf(t);return s=a<l?i.slice(a,l+1):i.slice(l,a+1),void this.plugin.setPluginState({currentSelection:s})}this.lastCheckbox=t;var u=this.plugin.getPluginState().currentSelection;this.isChecked(t)?this.plugin.setPluginState({currentSelection:u.filter(function(e){return e.id!==t.id})}):this.plugin.setPluginState({currentSelection:u.concat([t])})},t.providerFileToId=function(e){return _$generateFileID_198({data:e,name:e.name||e.id,type:e.mimeType})},t.handleAuth=function(){var t=this,r=btoa(JSON.stringify({origin:"origin"in location?location.origin:location.protocol+"//"+location.hostname+(location.port?":"+location.port:"")})),n=encodeURIComponent("@uppy/provider-views="+e.VERSION),o=this.provider.authUrl()+"?state="+r+"&uppyVersions="+n,i=window.open(o,"_blank");window.addEventListener("message",function e(r){if(t._isOriginAllowed(r.origin,t.plugin.opts.companionAllowedHosts)&&r.source===i){var n="string"==typeof r.data?JSON.parse(r.data):r.data;n.token?(i.close(),window.removeEventListener("message",e),t.provider.setAuthToken(n.token),t.preFirstRender()):t.plugin.uppy.log("did not receive token from auth window")}else t.plugin.uppy.log("rejecting event from "+r.origin+" vs allowed pattern "+t.plugin.opts.companionAllowedHosts)})},t._isOriginAllowed=function(e,t){var r=function(e){return"string"==typeof e?new RegExp("^"+e+"$"):e instanceof RegExp?e:void 0};return(Array.isArray(t)?t.map(r):[r(t)]).filter(function(e){return null!=e}).some(function(t){return t.test(e)||t.test(e+"/")})},t.handleError=function(e){var t=this.plugin.uppy;if(t.log(e.toString()),!e.isAuthError){var r=t.i18n("companionError");t.info({message:r,details:e.toString()},"error",5e3)}},t.handleScroll=function(e){var t=this,r=e.target.scrollHeight-(e.target.scrollTop+e.target.offsetHeight),n=this.nextPagePath||null;r<50&&n&&!this._isHandlingScroll&&(this.provider.list(n).then(function(e){var r=t.plugin.getPluginState(),n=r.files,o=r.folders;t._updateFilesAndFolders(e,n,o)}).catch(this.handleError).then(function(){t._isHandlingScroll=!1}),this._isHandlingScroll=!0)},t.donePicking=function(){var e=this,t=this.plugin.getPluginState().currentSelection.map(function(t){return t.isFolder?e.addFolder(t):e.addFile(t)});this._loaderWrapper(Promise.all(t),function(){e.clearSelection()},function(){})},t.cancelPicking=function(){this.clearSelection();var e=this.plugin.uppy.getPlugin("Dashboard");e&&e.hideAllPanels()},t.clearSelection=function(){this.plugin.setPluginState({currentSelection:[]})},t._loaderWrapper=function(e,t,r){var n=this;e.then(function(e){n.plugin.setPluginState({loading:!1}),t(e)}).catch(function(e){n.plugin.setPluginState({loading:!1}),r(e)}),this.plugin.setPluginState({loading:!0})},t.render=function(e){var t=this.plugin.getPluginState(),r=t.authenticated;if(t.didFirstRender||this.preFirstRender(),this.plugin.getPluginState().loading)return __h_163(CloseWrapper,{onUnmount:this.clearSelection},__h_163(_$Loader_162,{i18n:this.plugin.uppy.i18n}));if(!r)return __h_163(CloseWrapper,{onUnmount:this.clearSelection},__h_163(_$AuthView_152,{pluginName:this.plugin.title,pluginIcon:this.plugin.icon,handleAuth:this.handleAuth,i18n:this.plugin.uppy.i18n,i18nArray:this.plugin.uppy.i18nArray}));var n=___extends_163({},this.plugin.getPluginState(),{username:this.username,getNextFolder:this.getNextFolder,getFolder:this.getFolder,filterItems:this.filterItems,filterQuery:this.filterQuery,toggleSearch:this.toggleSearch,sortByTitle:this.sortByTitle,sortByDate:this.sortByDate,logout:this.logout,isActiveRow:this.isActiveRow,isChecked:this.isChecked,toggleCheckbox:this.toggleCheckbox,handleScroll:this.handleScroll,done:this.donePicking,cancel:this.cancelPicking,title:this.plugin.title,viewType:this.opts.viewType,showTitles:this.opts.showTitles,showFilter:this.opts.showFilter,showBreadcrumbs:this.opts.showBreadcrumbs,pluginIcon:this.plugin.icon,i18n:this.plugin.uppy.i18n});return __h_163(CloseWrapper,{onUnmount:this.clearSelection},__h_163(_$Browser_154,n))},e}(),___class_163.VERSION=_$package_164.version,___temp_163),___class_132,___temp_132;function ___assertThisInitialized_132(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var __Plugin_132=_$lib_101.Plugin,__Provider_132=_$lib_97.Provider,__h_132=_$preact_51.h,_$lib_132=(___temp_132=___class_132=function(e){var t,r;function n(t,r){var n;return(n=e.call(this,t,r)||this).id=n.opts.id||"Dropbox",__Provider_132.initPlugin(___assertThisInitialized_132(n),r),n.title=n.opts.title||"Dropbox",n.icon=function(){return __h_132("svg",{"aria-hidden":"true",focusable:"false",width:"128",height:"128",viewBox:"0 0 128 128"},__h_132("path",{d:"M31.997 11L64 31.825 31.997 52.651 0 31.825 31.997 11zM96 11l32 20.825-32 20.826-32-20.826L96 11zM0 73.476l31.997-20.825L64 73.476 31.997 94.302 0 73.476zm96-20.825l32 20.825-32 20.826-32-20.826 32-20.825zm-64.508 48.254l32.003-20.826 31.997 20.826-31.997 20.825-32.003-20.825z",fill:"#0260FF","fill-rule":"nonzero"}))},n.provider=new __Provider_132(t,{companionUrl:n.opts.companionUrl,serverHeaders:n.opts.serverHeaders,storage:n.opts.storage,provider:"dropbox",pluginId:n.id}),n.onFirstRender=n.onFirstRender.bind(___assertThisInitialized_132(n)),n.render=n.render.bind(___assertThisInitialized_132(n)),n}r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var o=n.prototype;return o.install=function(){this.view=new _$lib_163(this,{provider:this.provider}),this.setPluginState({authenticated:!1,files:[],folders:[],directories:[],activeRow:-1,filterInput:"",isSearchVisible:!1});var e=this.opts.target;e&&this.mount(e,this)},o.uninstall=function(){this.view.tearDown(),this.unmount()},o.onFirstRender=function(){return this.view.getFolder()},o.render=function(e){return this.view.render(e)},n}(__Plugin_132),___class_132.VERSION=_$package_133.version,___temp_132),_$package_135={version:"1.2.0"},___class_134,___temp_134;function ___extends_134(){return(___extends_134=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function ___assertThisInitialized_134(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var __Plugin_134=_$lib_101.Plugin,__h_134=_$preact_51.h,_$lib_134=(___temp_134=___class_134=function(e){var t,r;function n(t,r){var n;return(n=e.call(this,t,r)||this).id=n.opts.id||"FileInput",n.title="File Input",n.type="acquirer",n.defaultLocale={strings:{chooseFiles:"Choose files"}},n.opts=___extends_134({},{target:null,pretty:!0,inputName:"files[]"},r),n.translator=new _$Translator_192([n.defaultLocale,n.uppy.locale,n.opts.locale]),n.i18n=n.translator.translate.bind(n.translator),n.i18nArray=n.translator.translateArray.bind(n.translator),n.render=n.render.bind(___assertThisInitialized_134(n)),n.handleInputChange=n.handleInputChange.bind(___assertThisInitialized_134(n)),n.handleClick=n.handleClick.bind(___assertThisInitialized_134(n)),n}r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var o=n.prototype;return o.handleInputChange=function(e){var t=this;this.uppy.log("[FileInput] Something selected through input..."),_$toArray_220(e.target.files).forEach(function(e){try{t.uppy.addFile({source:t.id,name:e.name,type:e.type,data:e})}catch(e){e.isRestriction||t.uppy.log(e)}}),e.target.value=null},o.handleClick=function(e){this.input.click()},o.render=function(e){var t=this,r=this.uppy.opts.restrictions,n=r.allowedFileTypes?r.allowedFileTypes.join(","):null;return __h_134("div",{class:"uppy-Root uppy-FileInput-container"},__h_134("input",{class:"uppy-FileInput-input",style:this.opts.pretty&&{width:"0.1px",height:"0.1px",opacity:0,overflow:"hidden",position:"absolute",zIndex:-1},type:"file",name:this.opts.inputName,onchange:this.handleInputChange,multiple:1!==r.maxNumberOfFiles,accept:n,ref:function(e){t.input=e}}),this.opts.pretty&&__h_134("button",{class:"uppy-FileInput-btn",type:"button",onclick:this.handleClick},this.i18n("chooseFiles")))},o.install=function(){var e=this.opts.target;e&&this.mount(e,this)},o.uninstall=function(){this.unmount()},n}(__Plugin_134),___class_134.VERSION=_$package_135.version,___temp_134),_$lib_36={__esModule:!0};_$lib_36.default=getFormData,_$lib_36.getFieldData=getFieldData;var NODE_LIST_CLASSES={"[object HTMLCollection]":!0,"[object NodeList]":!0,"[object RadioNodeList]":!0},IGNORED_ELEMENT_TYPES={button:!0,fieldset:!0,reset:!0,submit:!0},CHECKED_INPUT_TYPES={checkbox:!0,radio:!0},TRIM_RE=/^\s+|\s+$/g,slice=Array.prototype.slice,toString=Object.prototype.toString;function getFormData(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{trim:!1};if(!e)throw new Error("A form is required by getFormData, was given form="+e);for(var r={},n=void 0,o=[],i={},s=0,a=e.elements.length;s<a;s++){var l=e.elements[s];IGNORED_ELEMENT_TYPES[l.type]||l.disabled||(n=l.name||l.id)&&!i[n]&&(o.push(n),i[n]=!0)}for(var u=0,c=o.length;u<c;u++){var p=getFieldData(e,n=o[u],t);null!=p&&(r[n]=p)}return r}function getFieldData(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{trim:!1};if(!e)throw new Error("A form is required by getFieldData, was given form="+e);if(!t&&"[object String]"!==toString.call(t))throw new Error("A field name is required by getFieldData, was given fieldName="+t);var n=e.elements[t];if(!n||n.disabled)return null;if(!NODE_LIST_CLASSES[toString.call(n)])return getFormElementValue(n,r.trim);for(var o=[],i=!0,s=0,a=n.length;s<a;s++)if(!n[s].disabled){i&&"radio"!==n[s].type&&(i=!1);var l=getFormElementValue(n[s],r.trim);null!=l&&(o=o.concat(l))}return i&&1===o.length?o[0]:o.length>0?o:null}function getFormElementValue(e,t){var r=null,n=e.type;if("select-one"===n)return e.options.length&&(r=e.options[e.selectedIndex].value),r;if("select-multiple"===n){r=[];for(var o=0,i=e.options.length;o<i;o++)e.options[o].selected&&r.push(e.options[o].value);return 0===r.length&&(r=null),r}return"file"===n&&"files"in e?(e.multiple?0===(r=slice.call(e.files)).length&&(r=null):r=e.files[0],r):(CHECKED_INPUT_TYPES[n]?e.checked&&(r=e.value):r=t?e.value.replace(TRIM_RE,""):e.value,r)}getFormData.getFieldData=getFieldData;var _$package_137={version:"1.2.0"},___class_136,___temp_136;function ___extends_136(){return(___extends_136=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function ___assertThisInitialized_136(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var __Plugin_136=_$lib_101.Plugin,__getFormData_136=_$lib_36.default||_$lib_36,_$lib_136=(___temp_136=___class_136=function(e){var t,r;function n(t,r){var n;return(n=e.call(this,t,r)||this).type="acquirer",n.id=n.opts.id||"Form",n.title="Form",n.opts=___extends_136({},{target:null,resultName:"uppyResult",getMetaFromForm:!0,addResultToForm:!0,multipleResults:!1,submitOnSuccess:!1,triggerUploadOnSubmit:!1},r),n.handleFormSubmit=n.handleFormSubmit.bind(___assertThisInitialized_136(n)),n.handleUploadStart=n.handleUploadStart.bind(___assertThisInitialized_136(n)),n.handleSuccess=n.handleSuccess.bind(___assertThisInitialized_136(n)),n.addResultToForm=n.addResultToForm.bind(___assertThisInitialized_136(n)),n.getMetaFromForm=n.getMetaFromForm.bind(___assertThisInitialized_136(n)),n}r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var o=n.prototype;return o.handleUploadStart=function(){this.opts.getMetaFromForm&&this.getMetaFromForm()},o.handleSuccess=function(e){this.opts.addResultToForm&&this.addResultToForm(e),this.opts.submitOnSuccess&&this.form.submit()},o.handleFormSubmit=function(e){var t=this;if(this.opts.triggerUploadOnSubmit){e.preventDefault();var r=_$toArray_220(e.target.elements),n=[];r.forEach(function(e){("BUTTON"===e.tagName||"INPUT"===e.tagName&&"submit"===e.type)&&!e.disabled&&(e.disabled=!0,n.push(e))}),this.uppy.upload().then(function(){n.forEach(function(e){e.disabled=!1})},function(e){return n.forEach(function(e){e.disabled=!1}),Promise.reject(e)}).catch(function(e){t.uppy.log(e.stack||e.message||e)})}},o.addResultToForm=function(e){this.uppy.log("[Form] Adding result to the original form:"),this.uppy.log(e);var t=this.form.querySelector('[name="'+this.opts.resultName+'"]');if(t)if(this.opts.multipleResults){var r=JSON.parse(t.value);r.push(e),t.value=JSON.stringify(r)}else t.value=JSON.stringify(e);else(t=document.createElement("input")).name=this.opts.resultName,t.type="hidden",this.opts.multipleResults?t.value=JSON.stringify([e]):t.value=JSON.stringify(e),this.form.appendChild(t)},o.getMetaFromForm=function(){var e=__getFormData_136(this.form);delete e[this.opts.resultName],this.uppy.setMeta(e)},o.install=function(){this.form=_$findDOMElement_197(this.opts.target),this.form&&"FORM"!==!this.form.nodeName?(this.form.addEventListener("submit",this.handleFormSubmit),this.uppy.on("upload",this.handleUploadStart),this.uppy.on("complete",this.handleSuccess)):this.uppy.log("Form plugin requires a <form> target element passed in options to operate, none was found","error")},o.uninstall=function(){this.form.removeEventListener("submit",this.handleFormSubmit),this.uppy.off("upload",this.handleUploadStart),this.uppy.off("complete",this.handleSuccess)},n}(__Plugin_136),___class_136.VERSION=_$package_137.version,___temp_136),_$IndexedDBStore_138={};function ___extends_138(){return(___extends_138=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var indexedDB="undefined"!=typeof window&&(window.indexedDB||window.webkitIndexedDB||window.mozIndexedDB||window.OIndexedDB||window.msIndexedDB),isSupported=!!indexedDB,DB_NAME="uppy-blobs",STORE_NAME="files",DEFAULT_EXPIRY=864e5,DB_VERSION=3;function connect(e){var t=indexedDB.open(e,DB_VERSION);return new Promise(function(e,r){t.onupgradeneeded=function(t){var r=t.target.result,n=t.currentTarget.transaction;if(t.oldVersion<2&&r.createObjectStore(STORE_NAME,{keyPath:"id"}).createIndex("store","store",{unique:!1}),t.oldVersion<3){var o=n.objectStore(STORE_NAME);o.createIndex("expires","expires",{unique:!1}),o.openCursor().onsuccess=function(e){var t=e.target.result;if(t){var r=t.value;r.expires=Date.now()+DEFAULT_EXPIRY,t.update(r)}}}n.oncomplete=function(){e(r)}},t.onsuccess=function(t){e(t.target.result)},t.onerror=r})}function waitForRequest(e){return new Promise(function(t,r){e.onsuccess=function(e){t(e.target.result)},e.onerror=r})}var cleanedUp=!1,IndexedDBStore=function(){function e(t){var r=this;this.opts=___extends_138({dbName:DB_NAME,storeName:"default",expires:DEFAULT_EXPIRY,maxFileSize:10485760,maxTotalSize:314572800},t),this.name=this.opts.storeName;var n=function(){return connect(r.opts.dbName)};cleanedUp?this.ready=n():(cleanedUp=!0,this.ready=e.cleanup().then(n,n))}var t=e.prototype;return t.key=function(e){return this.name+"!"+e},t.list=function(){var e=this;return this.ready.then(function(t){return waitForRequest(t.transaction([STORE_NAME],"readonly").objectStore(STORE_NAME).index("store").getAll(IDBKeyRange.only(e.name)))}).then(function(e){var t={};return e.forEach(function(e){t[e.fileID]=e.data}),t})},t.get=function(e){var t=this;return this.ready.then(function(r){return waitForRequest(r.transaction([STORE_NAME],"readonly").objectStore(STORE_NAME).get(t.key(e)))}).then(function(e){return{id:e.data.fileID,data:e.data.data}})},t.getSize=function(){var e=this;return this.ready.then(function(t){var r=t.transaction([STORE_NAME],"readonly").objectStore(STORE_NAME).index("store").openCursor(IDBKeyRange.only(e.name));return new Promise(function(e,t){var n=0;r.onsuccess=function(t){var r=t.target.result;r?(n+=r.value.data.size,r.continue()):e(n)},r.onerror=function(){t(new Error("Could not retrieve stored blobs size"))}})})},t.put=function(e){var t=this;return e.data.size>this.opts.maxFileSize?Promise.reject(new Error("File is too big to store.")):this.getSize().then(function(e){return e>t.opts.maxTotalSize?Promise.reject(new Error("No space left")):t.ready}).then(function(r){return waitForRequest(r.transaction([STORE_NAME],"readwrite").objectStore(STORE_NAME).add({id:t.key(e.id),fileID:e.id,store:t.name,expires:Date.now()+t.opts.expires,data:e.data}))})},t.delete=function(e){var t=this;return this.ready.then(function(r){return waitForRequest(r.transaction([STORE_NAME],"readwrite").objectStore(STORE_NAME).delete(t.key(e)))})},e.cleanup=function(){return connect(DB_NAME).then(function(e){var t=e.transaction([STORE_NAME],"readwrite").objectStore(STORE_NAME).index("expires").openCursor(IDBKeyRange.upperBound(Date.now()));return new Promise(function(r,n){t.onsuccess=function(t){var n=t.target.result;if(n){var o=n.value;console.log("[IndexedDBStore] Deleting record",o.fileID,"of size",_$prettyBytes_216(o.data.size),"- expired on",new Date(o.expires)),n.delete(),n.continue()}else r(e)},t.onerror=n})}).then(function(e){e.close()})},e}();function ___extends_139(){return(___extends_139=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function maybeParse(e){try{return JSON.parse(e)}catch(e){return null}}IndexedDBStore.isSupported=isSupported,_$IndexedDBStore_138=IndexedDBStore;var __cleanedUp_139=!1,_$MetaDataStore_139=function(){function e(t){this.opts=___extends_139({expires:864e5},t),this.name="uppyState:"+t.storeName,__cleanedUp_139||(__cleanedUp_139=!0,e.cleanup())}var t=e.prototype;return t.load=function(){var e=localStorage.getItem(this.name);if(!e)return null;var t=maybeParse(e);return t?t.metadata?t.metadata:(this.save(t),t):null},t.save=function(e){var t=Date.now()+this.opts.expires,r=JSON.stringify({metadata:e,expires:t});localStorage.setItem(this.name,r)},e.cleanup=function(){var e=function(){for(var e=[],t=0;t<localStorage.length;t++){var r=localStorage.key(t);/^uppyState:/.test(r)&&e.push(r.slice("uppyState:".length))}return e}(),t=Date.now();e.forEach(function(e){var r=localStorage.getItem("uppyState:"+e);if(!r)return null;var n=maybeParse(r);if(!n)return null;n.expires&&n.expires<t&&localStorage.removeItem("uppyState:"+e)})},e}(),_$ServiceWorkerStore_140={},__isSupported_140="undefined"!=typeof navigator&&"serviceWorker"in navigator,ServiceWorkerStore=function(){function e(e){this.ready=new Promise(function(e,t){__isSupported_140?navigator.serviceWorker.controller?e():navigator.serviceWorker.addEventListener("controllerchange",function(){e()}):t(new Error("Unsupported"))}),this.name=e.storeName}var t=e.prototype;return t.list=function(){var e=this,t={},r=new Promise(function(e,r){t.resolve=e,t.reject=r});console.log("Loading stored blobs from Service Worker");var n=function r(n){if(n.data.store===e.name)switch(n.data.type){case"uppy/ALL_FILES":t.resolve(n.data.files),navigator.serviceWorker.removeEventListener("message",r)}};return this.ready.then(function(){navigator.serviceWorker.addEventListener("message",n),navigator.serviceWorker.controller.postMessage({type:"uppy/GET_FILES",store:e.name})}),r},t.put=function(e){var t=this;return this.ready.then(function(){navigator.serviceWorker.controller.postMessage({type:"uppy/ADD_FILE",store:t.name,file:e})})},t.delete=function(e){var t=this;return this.ready.then(function(){navigator.serviceWorker.controller.postMessage({type:"uppy/REMOVE_FILE",store:t.name,fileID:e})})},e}();ServiceWorkerStore.isSupported=__isSupported_140,_$ServiceWorkerStore_140=ServiceWorkerStore;var _$package_142={version:"1.2.0"},___class_141,___temp_141;function ___extends_141(){return(___extends_141=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function ___assertThisInitialized_141(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var __Plugin_141=_$lib_101.Plugin,_$lib_141=(___temp_141=___class_141=function(e){var t,r;function n(t,r){var n;return(n=e.call(this,t,r)||this).type="debugger",n.id=n.opts.id||"GoldenRetriever",n.title="Golden Retriever",n.opts=___extends_141({},{expires:864e5,serviceWorker:!1},r),n.MetaDataStore=new _$MetaDataStore_139({expires:n.opts.expires,storeName:t.getID()}),n.ServiceWorkerStore=null,n.opts.serviceWorker&&(n.ServiceWorkerStore=new _$ServiceWorkerStore_140({storeName:t.getID()})),n.IndexedDBStore=new _$IndexedDBStore_138(___extends_141({expires:n.opts.expires},n.opts.indexedDB||{},{storeName:t.getID()})),n.saveFilesStateToLocalStorage=n.saveFilesStateToLocalStorage.bind(___assertThisInitialized_141(n)),n.loadFilesStateFromLocalStorage=n.loadFilesStateFromLocalStorage.bind(___assertThisInitialized_141(n)),n.loadFileBlobsFromServiceWorker=n.loadFileBlobsFromServiceWorker.bind(___assertThisInitialized_141(n)),n.loadFileBlobsFromIndexedDB=n.loadFileBlobsFromIndexedDB.bind(___assertThisInitialized_141(n)),n.onBlobsLoaded=n.onBlobsLoaded.bind(___assertThisInitialized_141(n)),n}r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var o=n.prototype;return o.loadFilesStateFromLocalStorage=function(){var e=this.MetaDataStore.load();e&&(this.uppy.log("[GoldenRetriever] Recovered some state from Local Storage"),this.uppy.setState({currentUploads:e.currentUploads||{},files:e.files||{}}),this.savedPluginData=e.pluginData)},o.getWaitingFiles=function(){var e={};return this.uppy.getFiles().forEach(function(t){t.progress&&t.progress.uploadStarted||(e[t.id]=t)}),e},o.getUploadingFiles=function(){var e=this,t={},r=this.uppy.getState().currentUploads;return r&&Object.keys(r).forEach(function(n){r[n].fileIDs.forEach(function(r){t[r]=e.uppy.getFile(r)})}),t},o.saveFilesStateToLocalStorage=function(){var e=___extends_141(this.getWaitingFiles(),this.getUploadingFiles()),t={};this.uppy.emit("restore:get-data",function(e){___extends_141(t,e)});var r=this.uppy.getState().currentUploads;this.MetaDataStore.save({currentUploads:r,files:e,pluginData:t})},o.loadFileBlobsFromServiceWorker=function(){var e=this;this.ServiceWorkerStore.list().then(function(t){var r=Object.keys(t).length;return r===e.uppy.getFiles().length?(e.uppy.log("[GoldenRetriever] Successfully recovered "+r+" blobs from Service Worker!"),e.uppy.info("Successfully recovered "+r+" files","success",3e3),e.onBlobsLoaded(t)):(e.uppy.log("[GoldenRetriever] No blobs found in Service Worker, trying IndexedDB now..."),e.loadFileBlobsFromIndexedDB())}).catch(function(t){e.uppy.log("[GoldenRetriever] Failed to recover blobs from Service Worker","warning"),e.uppy.log(t)})},o.loadFileBlobsFromIndexedDB=function(){var e=this;this.IndexedDBStore.list().then(function(t){var r=Object.keys(t).length;if(r>0)return e.uppy.log("[GoldenRetriever] Successfully recovered "+r+" blobs from IndexedDB!"),e.uppy.info("Successfully recovered "+r+" files","success",3e3),e.onBlobsLoaded(t);e.uppy.log("[GoldenRetriever] No blobs found in IndexedDB")}).catch(function(t){e.uppy.log("[GoldenRetriever] Failed to recover blobs from IndexedDB","warning"),e.uppy.log(t)})},o.onBlobsLoaded=function(e){var t=this,r=[],n=___extends_141({},this.uppy.getState().files);Object.keys(e).forEach(function(o){var i=t.uppy.getFile(o);if(i){var s=___extends_141({},i,{data:e[o],isRestored:!0});n[o]=s}else r.push(o)}),this.uppy.setState({files:n}),this.uppy.emit("restored",this.savedPluginData),r.length&&this.deleteBlobs(r).then(function(){t.uppy.log("[GoldenRetriever] Cleaned up "+r.length+" old files")}).catch(function(e){t.uppy.log("[GoldenRetriever] Could not clean up "+r.length+" old files","warning"),t.uppy.log(e)})},o.deleteBlobs=function(e){var t=this,r=[];return e.forEach(function(e){t.ServiceWorkerStore&&r.push(t.ServiceWorkerStore.delete(e)),t.IndexedDBStore&&r.push(t.IndexedDBStore.delete(e))}),Promise.all(r)},o.install=function(){var e=this;this.loadFilesStateFromLocalStorage(),this.uppy.getFiles().length>0?this.ServiceWorkerStore?(this.uppy.log("[GoldenRetriever] Attempting to load files from Service Worker..."),this.loadFileBlobsFromServiceWorker()):(this.uppy.log("[GoldenRetriever] Attempting to load files from Indexed DB..."),this.loadFileBlobsFromIndexedDB()):(this.uppy.log("[GoldenRetriever] No files need to be loaded, only restoring processing state..."),this.onBlobsLoaded([])),this.uppy.on("file-added",function(t){t.isRemote||(e.ServiceWorkerStore&&e.ServiceWorkerStore.put(t).catch(function(t){e.uppy.log("[GoldenRetriever] Could not store file","warning"),e.uppy.log(t)}),e.IndexedDBStore.put(t).catch(function(t){e.uppy.log("[GoldenRetriever] Could not store file","warning"),e.uppy.log(t)}))}),this.uppy.on("file-removed",function(t){e.ServiceWorkerStore&&e.ServiceWorkerStore.delete(t.id).catch(function(t){e.uppy.log("[GoldenRetriever] Failed to remove file","warning"),e.uppy.log(t)}),e.IndexedDBStore.delete(t.id).catch(function(t){e.uppy.log("[GoldenRetriever] Failed to remove file","warning"),e.uppy.log(t)})}),this.uppy.on("complete",function(t){var r=t.successful,n=r.map(function(e){return e.id});e.deleteBlobs(n).then(function(){e.uppy.log("[GoldenRetriever] Removed "+r.length+" files that finished uploading")}).catch(function(t){e.uppy.log("[GoldenRetriever] Could not remove "+r.length+" files that finished uploading","warning"),e.uppy.log(t)})}),this.uppy.on("state-update",this.saveFilesStateToLocalStorage),this.uppy.on("restored",function(){var t=e.uppy.getState().currentUploads;t&&Object.keys(t).forEach(function(r){e.uppy.restore(r,t[r])})})},n}(__Plugin_141),___class_141.VERSION=_$package_142.version,___temp_141),_$DriveProviderViews_143=function(e){var t,r;function n(){return e.apply(this,arguments)||this}return r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r,n.prototype.toggleCheckbox=function(t,r){t.stopPropagation(),t.preventDefault(),r.custom.isTeamDrive||e.prototype.toggleCheckbox.call(this,t,r)},n}(_$lib_163),_$package_145={version:"1.2.0"},___class_144,___temp_144;function ___assertThisInitialized_144(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var __Plugin_144=_$lib_101.Plugin,__Provider_144=_$lib_97.Provider,__h_144=_$preact_51.h,_$lib_144=(___temp_144=___class_144=function(e){var t,r;function n(t,r){var n;return(n=e.call(this,t,r)||this).id=n.opts.id||"GoogleDrive",n.title=n.opts.title||"Google Drive",__Provider_144.initPlugin(___assertThisInitialized_144(n),r),n.title=n.opts.title||"Google Drive",n.icon=function(){return __h_144("svg",{"aria-hidden":"true",focusable:"false",width:"18px",height:"16px",viewBox:"0 0 18 16",version:"1.1"},__h_144("g",{"fill-rule":"evenodd"},__h_144("polygon",{fill:"#3089FC",points:"6.32475 10.2 18 10.2 14.999625 15.3 3.324375 15.3"}),__h_144("polygon",{fill:"#00A85D",points:"3.000375 15.3 0 10.2 5.83875 0.275974026 8.838 5.37597403 5.999625 10.2"}),__h_144("polygon",{fill:"#FFD024",points:"11.838375 9.92402597 5.999625 0 12.000375 0 17.839125 9.92402597"})))},n.provider=new __Provider_144(t,{companionUrl:n.opts.companionUrl,serverHeaders:n.opts.serverHeaders,storage:n.opts.storage,provider:"drive",authProvider:"google",pluginId:n.id}),n.onFirstRender=n.onFirstRender.bind(___assertThisInitialized_144(n)),n.render=n.render.bind(___assertThisInitialized_144(n)),n}r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var o=n.prototype;return o.install=function(){this.view=new _$DriveProviderViews_143(this,{provider:this.provider}),this.setPluginState({authenticated:!1,files:[],folders:[],directories:[],activeRow:-1,filterInput:"",isSearchVisible:!1,hasTeamDrives:!1,teamDrives:[],teamDriveId:""});var e=this.opts.target;e&&this.mount(e,this)},o.uninstall=function(){this.view.tearDown(),this.unmount()},o.onFirstRender=function(){return this.view.getFolder("root","/")},o.render=function(e){return this.view.render(e)},n}(__Plugin_144),___class_144.VERSION=_$package_145.version,___temp_144),_$package_149={version:"1.2.0"},___class_148,___temp_148;function ___assertThisInitialized_148(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var __Plugin_148=_$lib_101.Plugin,__Provider_148=_$lib_97.Provider,__h_148=_$preact_51.h,_$lib_148=(___temp_148=___class_148=function(e){var t,r;function n(t,r){var n;return(n=e.call(this,t,r)||this).id=n.opts.id||"Instagram",__Provider_148.initPlugin(___assertThisInitialized_148(n),r),n.title=n.opts.title||"Instagram",n.icon=function(){return __h_148("svg",{"aria-hidden":"true",focusable:"false",fill:"#DE3573",width:"28",height:"28",viewBox:"0 0 512 512"},__h_148("path",{d:"M256,49.471c67.266,0,75.233.257,101.8,1.469,24.562,1.121,37.9,5.224,46.778,8.674a78.052,78.052,0,0,1,28.966,18.845,78.052,78.052,0,0,1,18.845,28.966c3.45,8.877,7.554,22.216,8.674,46.778,1.212,26.565,1.469,34.532,1.469,101.8s-0.257,75.233-1.469,101.8c-1.121,24.562-5.225,37.9-8.674,46.778a83.427,83.427,0,0,1-47.811,47.811c-8.877,3.45-22.216,7.554-46.778,8.674-26.56,1.212-34.527,1.469-101.8,1.469s-75.237-.257-101.8-1.469c-24.562-1.121-37.9-5.225-46.778-8.674a78.051,78.051,0,0,1-28.966-18.845,78.053,78.053,0,0,1-18.845-28.966c-3.45-8.877-7.554-22.216-8.674-46.778-1.212-26.564-1.469-34.532-1.469-101.8s0.257-75.233,1.469-101.8c1.121-24.562,5.224-37.9,8.674-46.778A78.052,78.052,0,0,1,78.458,78.458a78.053,78.053,0,0,1,28.966-18.845c8.877-3.45,22.216-7.554,46.778-8.674,26.565-1.212,34.532-1.469,101.8-1.469m0-45.391c-68.418,0-77,.29-103.866,1.516-26.815,1.224-45.127,5.482-61.151,11.71a123.488,123.488,0,0,0-44.62,29.057A123.488,123.488,0,0,0,17.3,90.982C11.077,107.007,6.819,125.319,5.6,152.134,4.369,179,4.079,187.582,4.079,256S4.369,333,5.6,359.866c1.224,26.815,5.482,45.127,11.71,61.151a123.489,123.489,0,0,0,29.057,44.62,123.486,123.486,0,0,0,44.62,29.057c16.025,6.228,34.337,10.486,61.151,11.71,26.87,1.226,35.449,1.516,103.866,1.516s77-.29,103.866-1.516c26.815-1.224,45.127-5.482,61.151-11.71a128.817,128.817,0,0,0,73.677-73.677c6.228-16.025,10.486-34.337,11.71-61.151,1.226-26.87,1.516-35.449,1.516-103.866s-0.29-77-1.516-103.866c-1.224-26.815-5.482-45.127-11.71-61.151a123.486,123.486,0,0,0-29.057-44.62A123.487,123.487,0,0,0,421.018,17.3C404.993,11.077,386.681,6.819,359.866,5.6,333,4.369,324.418,4.079,256,4.079h0Z"}),__h_148("path",{d:"M256,126.635A129.365,129.365,0,1,0,385.365,256,129.365,129.365,0,0,0,256,126.635Zm0,213.338A83.973,83.973,0,1,1,339.974,256,83.974,83.974,0,0,1,256,339.973Z"}),__h_148("circle",{cx:"390.476",cy:"121.524",r:"30.23"}))},n.provider=new __Provider_148(t,{companionUrl:n.opts.companionUrl,serverHeaders:n.opts.serverHeaders,storage:n.opts.storage,provider:"instagram",authProvider:"instagram",pluginId:n.id}),n.onFirstRender=n.onFirstRender.bind(___assertThisInitialized_148(n)),n.render=n.render.bind(___assertThisInitialized_148(n)),n}r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var o=n.prototype;return o.install=function(){this.view=new _$lib_163(this,{provider:this.provider,viewType:"grid",showTitles:!1,showFilter:!1,showBreadcrumbs:!1}),this.setPluginState({authenticated:!1,files:[],folders:[],directories:[],activeRow:-1,filterInput:"",isSearchVisible:!1});var e=this.opts.target;e&&this.mount(e,this)},o.uninstall=function(){this.view.tearDown(),this.unmount()},o.onFirstRender=function(){this.view.getFolder("recent")},o.render=function(e){return this.view.render(e)},n}(__Plugin_148),___class_148.VERSION=_$package_149.version,___temp_148),_$package_151={version:"1.2.0"},___class_150,___temp_150;function ___extends_150(){return(___extends_150=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var __Plugin_150=_$lib_101.Plugin,__h_150=_$preact_51.h,_$lib_150=(___temp_150=___class_150=function(e){var t,r;function n(t,r){var n;return(n=e.call(this,t,r)||this).id=n.opts.id||"ProgressBar",n.title="Progress Bar",n.type="progressindicator",n.opts=___extends_150({},{target:"body",replaceTargetContent:!1,fixed:!1,hideAfterFinish:!0},r),n.render=n.render.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(n)),n}r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var o=n.prototype;return o.render=function(e){var t=e.totalProgress||0,r=100===t&&this.opts.hideAfterFinish;return __h_150("div",{class:"uppy uppy-ProgressBar",style:{position:this.opts.fixed?"fixed":"initial"},"aria-hidden":r},__h_150("div",{class:"uppy-ProgressBar-inner",style:{width:t+"%"}}),__h_150("div",{class:"uppy-ProgressBar-percentage"},t))},o.install=function(){var e=this.opts.target;e&&this.mount(e,this)},o.uninstall=function(){this.unmount()},n}(__Plugin_150),___class_150.VERSION=_$package_151.version,___temp_150),_$package_166={version:"1.2.0"},___class_165,___temp_165;function ___extends_165(){return(___extends_165=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function ___assertThisInitialized_165(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var __Plugin_165=_$lib_101.Plugin,_$lib_165=(___temp_165=___class_165=function(e){var t,r;function n(t,r){var n;return(n=e.call(this,t,r)||this).type="debugger",n.id=n.opts.id||"ReduxDevTools",n.title="Redux DevTools",n.opts=___extends_165({},{},r),n.handleStateChange=n.handleStateChange.bind(___assertThisInitialized_165(n)),n.initDevTools=n.initDevTools.bind(___assertThisInitialized_165(n)),n}r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var o=n.prototype;return o.handleStateChange=function(e,t,r){this.devTools.send("UPPY_STATE_UPDATE",t)},o.initDevTools=function(){var e=this;this.devTools=window.devToolsExtension.connect(),this.devToolsUnsubscribe=this.devTools.subscribe(function(t){if("DISPATCH"===t.type)switch(console.log(t.payload.type),t.payload.type){case"RESET":return void e.uppy.reset();case"IMPORT_STATE":var r=t.payload.nextLiftedState.computedStates;return e.uppy.store.state=___extends_165({},e.uppy.getState(),r[r.length-1].state),void e.uppy.updateAll(e.uppy.getState());case"JUMP_TO_STATE":case"JUMP_TO_ACTION":e.uppy.store.state=___extends_165({},e.uppy.getState(),JSON.parse(t.state)),e.uppy.updateAll(e.uppy.getState())}})},o.install=function(){this.withDevTools="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__,this.withDevTools&&(this.initDevTools(),this.uppy.on("state-update",this.handleStateChange))},o.uninstall=function(){this.withDevTools&&(this.devToolsUnsubscribe(),this.uppy.off("state-update",this.handleStateUpdate))},n}(__Plugin_165),___class_165.VERSION=_$package_166.version,___temp_165),_$package_174={version:"1.1.0"},_$lib_173={};function ___extends_173(){return(___extends_173=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var STATE_UPDATE="uppy/STATE_UPDATE",defaultSelector=function(e){return function(t){return t.uppy[e]}},ReduxStore=function(){function e(e){this._store=e.store,this._id=e.id||_$cuid_13(),this._selector=e.selector||defaultSelector(this._id),this.setState({})}var t=e.prototype;return t.setState=function(e){this._store.dispatch({type:STATE_UPDATE,id:this._id,payload:e})},t.getState=function(){return this._selector(this._store.getState())},t.subscribe=function(e){var t=this,r=this.getState();return this._store.subscribe(function(){var n=t.getState();if(r!==n){var o=function(e,t){var r=Object.keys(t),n={};return r.forEach(function(r){e[r]!==t[r]&&(n[r]=t[r])}),n}(r,n);e(r,n,o),r=n}})},e}();ReduxStore.VERSION=_$package_174.version,_$lib_173=function(e){return new ReduxStore(e)},_$lib_173.STATE_UPDATE=STATE_UPDATE,_$lib_173.reducer=function(e,t){if(void 0===e&&(e={}),t.type===STATE_UPDATE){var r,n=___extends_173({},e[t.id],t.payload);return ___extends_173({},e,((r={})[t.id]=n,r))}return e},_$lib_173.middleware=function(){return function(){return function(e){return function(t){e(t)}}}};var _$componentEmitter_11={exports:{}};function Emitter(e){if(e)return function(e){for(var t in Emitter.prototype)e[t]=Emitter.prototype[t];return e}(e)}_$componentEmitter_11.exports=Emitter,Emitter.prototype.on=Emitter.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},Emitter.prototype.once=function(e,t){function r(){this.off(e,r),t.apply(this,arguments)}return r.fn=t,this.on(e,r),this},Emitter.prototype.off=Emitter.prototype.removeListener=Emitter.prototype.removeAllListeners=Emitter.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var r,n=this._callbacks["$"+e];if(!n)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var o=0;o<n.length;o++)if((r=n[o])===t||r.fn===t){n.splice(o,1);break}return this},Emitter.prototype.emit=function(e){this._callbacks=this._callbacks||{};var t=[].slice.call(arguments,1),r=this._callbacks["$"+e];if(r)for(var n=0,o=(r=r.slice(0)).length;n<o;++n)r[n].apply(this,t);return this},Emitter.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},Emitter.prototype.hasListeners=function(e){return!!this.listeners(e).length},_$componentEmitter_11=_$componentEmitter_11.exports;var _$backo2_3={};function Backoff(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}_$backo2_3=Backoff,Backoff.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),r=Math.floor(t*this.jitter*e);e=0==(1&Math.floor(10*t))?e-r:e+r}return 0|Math.min(e,this.max)},Backoff.prototype.reset=function(){this.attempts=0},Backoff.prototype.setMin=function(e){this.ms=e},Backoff.prototype.setMax=function(e){this.max=e},Backoff.prototype.setJitter=function(e){this.jitter=e};var __slice_10=[].slice,_$componentBind_10=function(e,t){if("string"==typeof t&&(t=e[t]),"function"!=typeof t)throw new Error("bind() requires a function");var r=__slice_10.call(arguments,2);return function(){return t.apply(e,r.concat(__slice_10.call(arguments)))}};function __noop_1(){}var _$after_1=function(e,t,r){var n=!1;return r=r||__noop_1,o.count=e,0===e?t():o;function o(e,i){if(o.count<=0)throw new Error("after called too many times");--o.count,e?(n=!0,t(e),t=r):0!==o.count||n||t(null,i)}},_$arraybufferSlice_2=function(e,t,r){var n=e.byteLength;if(t=t||0,r=r||n,e.slice)return e.slice(t,r);if(t<0&&(t+=n),r<0&&(r+=n),r>n&&(r=n),t>=n||t>=r||0===n)return new ArrayBuffer(0);for(var o=new Uint8Array(e),i=new Uint8Array(r-t),s=t,a=0;s<r;s++,a++)i[a]=o[s];return i.buffer},_$base64Arraybuffer_4={};!function(){"use strict";for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=new Uint8Array(256),r=0;r<e.length;r++)t[e.charCodeAt(r)]=r;_$base64Arraybuffer_4.encode=function(t){var r,n=new Uint8Array(t),o=n.length,i="";for(r=0;r<o;r+=3)i+=e[n[r]>>2],i+=e[(3&n[r])<<4|n[r+1]>>4],i+=e[(15&n[r+1])<<2|n[r+2]>>6],i+=e[63&n[r+2]];return o%3==2?i=i.substring(0,i.length-1)+"=":o%3==1&&(i=i.substring(0,i.length-2)+"=="),i},_$base64Arraybuffer_4.decode=function(e){var r,n,o,i,s,a=.75*e.length,l=e.length,u=0;"="===e[e.length-1]&&(a--,"="===e[e.length-2]&&a--);var c=new ArrayBuffer(a),p=new Uint8Array(c);for(r=0;r<l;r+=4)n=t[e.charCodeAt(r)],o=t[e.charCodeAt(r+1)],i=t[e.charCodeAt(r+2)],s=t[e.charCodeAt(r+3)],p[u++]=n<<2|o>>4,p[u++]=(15&o)<<4|i>>2,p[u++]=(3&i)<<6|63&s;return c}}();var _$blob_6={},BlobBuilder=void 0!==BlobBuilder?BlobBuilder:"undefined"!=typeof WebKitBlobBuilder?WebKitBlobBuilder:"undefined"!=typeof MSBlobBuilder?MSBlobBuilder:"undefined"!=typeof MozBlobBuilder&&MozBlobBuilder,blobSupported=function(){try{return 2===new Blob(["hi"]).size}catch(e){return!1}}(),blobSupportsArrayBufferView=blobSupported&&function(){try{return 2===new Blob([new Uint8Array([1,2])]).size}catch(e){return!1}}(),blobBuilderSupported=BlobBuilder&&BlobBuilder.prototype.append&&BlobBuilder.prototype.getBlob;function mapArrayBufferViews(e){return e.map(function(e){if(e.buffer instanceof ArrayBuffer){var t=e.buffer;if(e.byteLength!==t.byteLength){var r=new Uint8Array(e.byteLength);r.set(new Uint8Array(t,e.byteOffset,e.byteLength)),t=r.buffer}return t}return e})}function BlobBuilderConstructor(e,t){t=t||{};var r=new BlobBuilder;return mapArrayBufferViews(e).forEach(function(e){r.append(e)}),t.type?r.getBlob(t.type):r.getBlob()}function BlobConstructor(e,t){return new Blob(mapArrayBufferViews(e),t||{})}"undefined"!=typeof Blob&&(BlobBuilderConstructor.prototype=Blob.prototype,BlobConstructor.prototype=Blob.prototype),_$blob_6=blobSupported?blobSupportsArrayBufferView?Blob:BlobConstructor:blobBuilderSupported?BlobBuilderConstructor:void 0;var _$keys_30=Object.keys||function(e){var t=[],r=Object.prototype.hasOwnProperty;for(var n in e)r.call(e,n)&&t.push(n);return t},byteArray,byteCount,byteIndex,stringFromCharCode=String.fromCharCode;function ucs2decode(e){for(var t,r,n=[],o=0,i=e.length;o<i;)(t=e.charCodeAt(o++))>=55296&&t<=56319&&o<i?56320==(64512&(r=e.charCodeAt(o++)))?n.push(((1023&t)<<10)+(1023&r)+65536):(n.push(t),o--):n.push(t);return n}function checkScalarValue(e,t){if(e>=55296&&e<=57343){if(t)throw Error("Lone surrogate U+"+e.toString(16).toUpperCase()+" is not a scalar value");return!1}return!0}function createByte(e,t){return stringFromCharCode(e>>t&63|128)}function encodeCodePoint(e,t){if(0==(4294967168&e))return stringFromCharCode(e);var r="";return 0==(4294965248&e)?r=stringFromCharCode(e>>6&31|192):0==(4294901760&e)?(checkScalarValue(e,t)||(e=65533),r=stringFromCharCode(e>>12&15|224),r+=createByte(e,6)):0==(4292870144&e)&&(r=stringFromCharCode(e>>18&7|240),r+=createByte(e,12),r+=createByte(e,6)),r+stringFromCharCode(63&e|128)}function readContinuationByte(){if(byteIndex>=byteCount)throw Error("Invalid byte index");var e=255&byteArray[byteIndex];if(byteIndex++,128==(192&e))return 63&e;throw Error("Invalid continuation byte")}function decodeSymbol(e){var t,r;if(byteIndex>byteCount)throw Error("Invalid byte index");if(byteIndex==byteCount)return!1;if(t=255&byteArray[byteIndex],byteIndex++,0==(128&t))return t;if(192==(224&t)){if((r=(31&t)<<6|readContinuationByte())>=128)return r;throw Error("Invalid continuation byte")}if(224==(240&t)){if((r=(15&t)<<12|readContinuationByte()<<6|readContinuationByte())>=2048)return checkScalarValue(r,e)?r:65533;throw Error("Invalid continuation byte")}if(240==(248&t)&&(r=(7&t)<<18|readContinuationByte()<<12|readContinuationByte()<<6|readContinuationByte())>=65536&&r<=1114111)return r;throw Error("Invalid UTF-8 detected")}for(var _$utf8_31={encode:function(e,t){for(var r=!1!==(t=t||{}).strict,n=ucs2decode(e),o=n.length,i=-1,s="";++i<o;)s+=encodeCodePoint(n[i],r);return s},decode:function(e,t){var r=!1!==(t=t||{}).strict;byteArray=ucs2decode(e),byteCount=byteArray.length,byteIndex=0;for(var n,o=[];!1!==(n=decodeSymbol(r));)o.push(n);return function(e){for(var t,r=e.length,n=-1,o="";++n<r;)(t=e[n])>65535&&(o+=stringFromCharCode((t-=65536)>>>10&1023|55296),t=56320|1023&t),o+=stringFromCharCode(t);return o}(o)}},_$base64Js_5={toByteArray:function(e){for(var t,r=getLens(e),n=r[0],o=r[1],i=new Arr(function(e,t,r){return 3*(t+r)/4-r}(0,n,o)),s=0,a=o>0?n-4:n,l=0;l<a;l+=4)t=revLookup[e.charCodeAt(l)]<<18|revLookup[e.charCodeAt(l+1)]<<12|revLookup[e.charCodeAt(l+2)]<<6|revLookup[e.charCodeAt(l+3)],i[s++]=t>>16&255,i[s++]=t>>8&255,i[s++]=255&t;return 2===o&&(t=revLookup[e.charCodeAt(l)]<<2|revLookup[e.charCodeAt(l+1)]>>4,i[s++]=255&t),1===o&&(t=revLookup[e.charCodeAt(l)]<<10|revLookup[e.charCodeAt(l+1)]<<4|revLookup[e.charCodeAt(l+2)]>>2,i[s++]=t>>8&255,i[s++]=255&t),i},fromByteArray:function(e){for(var t,r=e.length,n=r%3,o=[],i=0,s=r-n;i<s;i+=16383)o.push(encodeChunk(e,i,i+16383>s?s:i+16383));return 1===n?(t=e[r-1],o.push(lookup[t>>2]+lookup[t<<4&63]+"==")):2===n&&(t=(e[r-2]<<8)+e[r-1],o.push(lookup[t>>10]+lookup[t>>4&63]+lookup[t<<2&63]+"=")),o.join("")}},lookup=[],revLookup=[],Arr="undefined"!=typeof Uint8Array?Uint8Array:Array,code="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0,len=code.length;i<len;++i)lookup[i]=code[i],revLookup[code.charCodeAt(i)]=i;function getLens(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function encodeChunk(e,t,r){for(var n,o,i=[],s=t;s<r;s+=3)n=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),i.push(lookup[(o=n)>>18&63]+lookup[o>>12&63]+lookup[o>>6&63]+lookup[63&o]);return i.join("")}revLookup["-".charCodeAt(0)]=62,revLookup["_".charCodeAt(0)]=63;var _$ieee754_39={read:function(e,t,r,n,o){var i,s,a=8*o-n-1,l=(1<<a)-1,u=l>>1,c=-7,p=r?o-1:0,d=r?-1:1,h=e[t+p];for(p+=d,i=h&(1<<-c)-1,h>>=-c,c+=a;c>0;i=256*i+e[t+p],p+=d,c-=8);for(s=i&(1<<-c)-1,i>>=-c,c+=n;c>0;s=256*s+e[t+p],p+=d,c-=8);if(0===i)i=1-u;else{if(i===l)return s?NaN:1/0*(h?-1:1);s+=Math.pow(2,n),i-=u}return(h?-1:1)*s*Math.pow(2,i-n)},write:function(e,t,r,n,o,i){var s,a,l,u=8*i-o-1,c=(1<<u)-1,p=c>>1,d=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,h=n?0:i-1,_=n?1:-1,f=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=c):(s=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-s))<1&&(s--,l*=2),(t+=s+p>=1?d/l:d*Math.pow(2,1-p))*l>=2&&(s++,l/=2),s+p>=c?(a=0,s=c):s+p>=1?(a=(t*l-1)*Math.pow(2,o),s+=p):(a=t*Math.pow(2,p-1)*Math.pow(2,o),s=0));o>=8;e[r+h]=255&a,h+=_,a/=256,o-=8);for(s=s<<o|a,u+=o;u>0;e[r+h]=255&s,h+=_,s/=256,u-=8);e[r+h-_]|=128*f}},_$buffer_8={};_$buffer_8.Buffer=Buffer,_$buffer_8.INSPECT_MAX_BYTES=50;var K_MAX_LENGTH=2147483647;function createBuffer(e){if(e>K_MAX_LENGTH)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return t.__proto__=Buffer.prototype,t}function Buffer(e,t,r){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return allocUnsafe(e)}return from(e,t,r)}function from(e,t,r){if("string"==typeof e)return function(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!Buffer.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var r=0|byteLength(e,t),n=createBuffer(r),o=n.write(e,t);return o!==r&&(n=n.slice(0,o)),n}(e,t);if(ArrayBuffer.isView(e))return fromArrayLike(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(isInstance(e,ArrayBuffer)||e&&isInstance(e.buffer,ArrayBuffer))return function(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('"length" is outside of buffer bounds');var n;return(n=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r)).__proto__=Buffer.prototype,n}(e,t,r);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');var n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return Buffer.from(n,t,r);var o=function(e){if(Buffer.isBuffer(e)){var t=0|checked(e.length),r=createBuffer(t);return 0===r.length?r:(e.copy(r,0,0,t),r)}return void 0!==e.length?"number"!=typeof e.length||numberIsNaN(e.length)?createBuffer(0):fromArrayLike(e):"Buffer"===e.type&&Array.isArray(e.data)?fromArrayLike(e.data):void 0}(e);if(o)return o;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return Buffer.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function assertSize(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function allocUnsafe(e){return assertSize(e),createBuffer(e<0?0:0|checked(e))}function fromArrayLike(e){for(var t=e.length<0?0:0|checked(e.length),r=createBuffer(t),n=0;n<t;n+=1)r[n]=255&e[n];return r}function checked(e){if(e>=K_MAX_LENGTH)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+K_MAX_LENGTH.toString(16)+" bytes");return 0|e}function byteLength(e,t){if(Buffer.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||isInstance(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var o=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return utf8ToBytes(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return base64ToBytes(e).length;default:if(o)return n?-1:utf8ToBytes(e).length;t=(""+t).toLowerCase(),o=!0}}function swap(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function bidirectionalIndexOf(e,t,r,n,o){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),numberIsNaN(r=+r)&&(r=o?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(o)return-1;r=e.length-1}else if(r<0){if(!o)return-1;r=0}if("string"==typeof t&&(t=Buffer.from(t,n)),Buffer.isBuffer(t))return 0===t.length?-1:arrayIndexOf(e,t,r,n,o);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):arrayIndexOf(e,[t],r,n,o);throw new TypeError("val must be string, number or Buffer")}function arrayIndexOf(e,t,r,n,o){var i,s=1,a=e.length,l=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;s=2,a/=2,l/=2,r/=2}function u(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(o){var c=-1;for(i=r;i<a;i++)if(u(e,i)===u(t,-1===c?0:i-c)){if(-1===c&&(c=i),i-c+1===l)return c*s}else-1!==c&&(i-=i-c),c=-1}else for(r+l>a&&(r=a-l),i=r;i>=0;i--){for(var p=!0,d=0;d<l;d++)if(u(e,i+d)!==u(t,d)){p=!1;break}if(p)return i}return-1}function hexWrite(e,t,r,n){r=Number(r)||0;var o=e.length-r;n?(n=Number(n))>o&&(n=o):n=o;var i=t.length;n>i/2&&(n=i/2);for(var s=0;s<n;++s){var a=parseInt(t.substr(2*s,2),16);if(numberIsNaN(a))return s;e[r+s]=a}return s}function utf8Write(e,t,r,n){return blitBuffer(utf8ToBytes(t,e.length-r),e,r,n)}function asciiWrite(e,t,r,n){return blitBuffer(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function latin1Write(e,t,r,n){return asciiWrite(e,t,r,n)}function base64Write(e,t,r,n){return blitBuffer(base64ToBytes(t),e,r,n)}function ucs2Write(e,t,r,n){return blitBuffer(function(e,t){for(var r,n,o,i=[],s=0;s<e.length&&!((t-=2)<0);++s)n=(r=e.charCodeAt(s))>>8,o=r%256,i.push(o),i.push(n);return i}(t,e.length-r),e,r,n)}function base64Slice(e,t,r){return 0===t&&r===e.length?_$base64Js_5.fromByteArray(e):_$base64Js_5.fromByteArray(e.slice(t,r))}function utf8Slice(e,t,r){r=Math.min(e.length,r);for(var n=[],o=t;o<r;){var i,s,a,l,u=e[o],c=null,p=u>239?4:u>223?3:u>191?2:1;if(o+p<=r)switch(p){case 1:u<128&&(c=u);break;case 2:128==(192&(i=e[o+1]))&&(l=(31&u)<<6|63&i)>127&&(c=l);break;case 3:i=e[o+1],s=e[o+2],128==(192&i)&&128==(192&s)&&(l=(15&u)<<12|(63&i)<<6|63&s)>2047&&(l<55296||l>57343)&&(c=l);break;case 4:i=e[o+1],s=e[o+2],a=e[o+3],128==(192&i)&&128==(192&s)&&128==(192&a)&&(l=(15&u)<<18|(63&i)<<12|(63&s)<<6|63&a)>65535&&l<1114112&&(c=l)}null===c?(c=65533,p=1):c>65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|1023&c),n.push(c),o+=p}return function(e){var t=e.length;if(t<=MAX_ARGUMENTS_LENGTH)return String.fromCharCode.apply(String,e);for(var r="",n=0;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=MAX_ARGUMENTS_LENGTH));return r}(n)}Buffer.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()}catch(e){return!1}}(),Buffer.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(Buffer.prototype,"parent",{enumerable:!0,get:function(){if(Buffer.isBuffer(this))return this.buffer}}),Object.defineProperty(Buffer.prototype,"offset",{enumerable:!0,get:function(){if(Buffer.isBuffer(this))return this.byteOffset}}),"undefined"!=typeof Symbol&&null!=Symbol.species&&Buffer[Symbol.species]===Buffer&&Object.defineProperty(Buffer,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),Buffer.poolSize=8192,Buffer.from=function(e,t,r){return from(e,t,r)},Buffer.prototype.__proto__=Uint8Array.prototype,Buffer.__proto__=Uint8Array,Buffer.alloc=function(e,t,r){return function(e,t,r){return assertSize(e),e<=0?createBuffer(e):void 0!==t?"string"==typeof r?createBuffer(e).fill(t,r):createBuffer(e).fill(t):createBuffer(e)}(e,t,r)},Buffer.allocUnsafe=function(e){return allocUnsafe(e)},Buffer.allocUnsafeSlow=function(e){return allocUnsafe(e)},Buffer.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==Buffer.prototype},Buffer.compare=function(e,t){if(isInstance(e,Uint8Array)&&(e=Buffer.from(e,e.offset,e.byteLength)),isInstance(t,Uint8Array)&&(t=Buffer.from(t,t.offset,t.byteLength)),!Buffer.isBuffer(e)||!Buffer.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,n=t.length,o=0,i=Math.min(r,n);o<i;++o)if(e[o]!==t[o]){r=e[o],n=t[o];break}return r<n?-1:n<r?1:0},Buffer.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},Buffer.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return Buffer.alloc(0);var r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;var n=Buffer.allocUnsafe(t),o=0;for(r=0;r<e.length;++r){var i=e[r];if(isInstance(i,Uint8Array)&&(i=Buffer.from(i)),!Buffer.isBuffer(i))throw new TypeError('"list" argument must be an Array of Buffers');i.copy(n,o),o+=i.length}return n},Buffer.byteLength=byteLength,Buffer.prototype._isBuffer=!0,Buffer.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)swap(this,t,t+1);return this},Buffer.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)swap(this,t,t+3),swap(this,t+1,t+2);return this},Buffer.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)swap(this,t,t+7),swap(this,t+1,t+6),swap(this,t+2,t+5),swap(this,t+3,t+4);return this},Buffer.prototype.toString=function(){var e=this.length;return 0===e?"":0===arguments.length?utf8Slice(this,0,e):function(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return hexSlice(this,t,r);case"utf8":case"utf-8":return utf8Slice(this,t,r);case"ascii":return asciiSlice(this,t,r);case"latin1":case"binary":return latin1Slice(this,t,r);case"base64":return base64Slice(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return utf16leSlice(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}.apply(this,arguments)},Buffer.prototype.toLocaleString=Buffer.prototype.toString,Buffer.prototype.equals=function(e){if(!Buffer.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===Buffer.compare(this,e)},Buffer.prototype.inspect=function(){var e="",t=_$buffer_8.INSPECT_MAX_BYTES;return e=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(e+=" ... "),"<Buffer "+e+">"},Buffer.prototype.compare=function(e,t,r,n,o){if(isInstance(e,Uint8Array)&&(e=Buffer.from(e,e.offset,e.byteLength)),!Buffer.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),t<0||r>e.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&t>=r)return 0;if(n>=o)return-1;if(t>=r)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(n>>>=0),s=(r>>>=0)-(t>>>=0),a=Math.min(i,s),l=this.slice(n,o),u=e.slice(t,r),c=0;c<a;++c)if(l[c]!==u[c]){i=l[c],s=u[c];break}return i<s?-1:s<i?1:0},Buffer.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},Buffer.prototype.indexOf=function(e,t,r){return bidirectionalIndexOf(this,e,t,r,!0)},Buffer.prototype.lastIndexOf=function(e,t,r){return bidirectionalIndexOf(this,e,t,r,!1)},Buffer.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var o=this.length-t;if((void 0===r||r>o)&&(r=o),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var i=!1;;)switch(n){case"hex":return hexWrite(this,e,t,r);case"utf8":case"utf-8":return utf8Write(this,e,t,r);case"ascii":return asciiWrite(this,e,t,r);case"latin1":case"binary":return latin1Write(this,e,t,r);case"base64":return base64Write(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ucs2Write(this,e,t,r);default:if(i)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),i=!0}},Buffer.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var MAX_ARGUMENTS_LENGTH=4096;function asciiSlice(e,t,r){var n="";r=Math.min(e.length,r);for(var o=t;o<r;++o)n+=String.fromCharCode(127&e[o]);return n}function latin1Slice(e,t,r){var n="";r=Math.min(e.length,r);for(var o=t;o<r;++o)n+=String.fromCharCode(e[o]);return n}function hexSlice(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var o="",i=t;i<r;++i)o+=toHex(e[i]);return o}function utf16leSlice(e,t,r){for(var n=e.slice(t,r),o="",i=0;i<n.length;i+=2)o+=String.fromCharCode(n[i]+256*n[i+1]);return o}function checkOffset(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function checkInt(e,t,r,n,o,i){if(!Buffer.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<i)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function checkIEEE754(e,t,r,n,o,i){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function writeFloat(e,t,r,n,o){return t=+t,r>>>=0,o||checkIEEE754(e,0,r,4),_$ieee754_39.write(e,t,r,n,23,4),r+4}function writeDouble(e,t,r,n,o){return t=+t,r>>>=0,o||checkIEEE754(e,0,r,8),_$ieee754_39.write(e,t,r,n,52,8),r+8}Buffer.prototype.slice=function(e,t){var r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);var n=this.subarray(e,t);return n.__proto__=Buffer.prototype,n},Buffer.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||checkOffset(e,t,this.length);for(var n=this[e],o=1,i=0;++i<t&&(o*=256);)n+=this[e+i]*o;return n},Buffer.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||checkOffset(e,t,this.length);for(var n=this[e+--t],o=1;t>0&&(o*=256);)n+=this[e+--t]*o;return n},Buffer.prototype.readUInt8=function(e,t){return e>>>=0,t||checkOffset(e,1,this.length),this[e]},Buffer.prototype.readUInt16LE=function(e,t){return e>>>=0,t||checkOffset(e,2,this.length),this[e]|this[e+1]<<8},Buffer.prototype.readUInt16BE=function(e,t){return e>>>=0,t||checkOffset(e,2,this.length),this[e]<<8|this[e+1]},Buffer.prototype.readUInt32LE=function(e,t){return e>>>=0,t||checkOffset(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},Buffer.prototype.readUInt32BE=function(e,t){return e>>>=0,t||checkOffset(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},Buffer.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||checkOffset(e,t,this.length);for(var n=this[e],o=1,i=0;++i<t&&(o*=256);)n+=this[e+i]*o;return n>=(o*=128)&&(n-=Math.pow(2,8*t)),n},Buffer.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||checkOffset(e,t,this.length);for(var n=t,o=1,i=this[e+--n];n>0&&(o*=256);)i+=this[e+--n]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},Buffer.prototype.readInt8=function(e,t){return e>>>=0,t||checkOffset(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},Buffer.prototype.readInt16LE=function(e,t){e>>>=0,t||checkOffset(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},Buffer.prototype.readInt16BE=function(e,t){e>>>=0,t||checkOffset(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},Buffer.prototype.readInt32LE=function(e,t){return e>>>=0,t||checkOffset(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},Buffer.prototype.readInt32BE=function(e,t){return e>>>=0,t||checkOffset(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},Buffer.prototype.readFloatLE=function(e,t){return e>>>=0,t||checkOffset(e,4,this.length),_$ieee754_39.read(this,e,!0,23,4)},Buffer.prototype.readFloatBE=function(e,t){return e>>>=0,t||checkOffset(e,4,this.length),_$ieee754_39.read(this,e,!1,23,4)},Buffer.prototype.readDoubleLE=function(e,t){return e>>>=0,t||checkOffset(e,8,this.length),_$ieee754_39.read(this,e,!0,52,8)},Buffer.prototype.readDoubleBE=function(e,t){return e>>>=0,t||checkOffset(e,8,this.length),_$ieee754_39.read(this,e,!1,52,8)},Buffer.prototype.writeUIntLE=function(e,t,r,n){e=+e,t>>>=0,r>>>=0,n||checkInt(this,e,t,r,Math.pow(2,8*r)-1,0);var o=1,i=0;for(this[t]=255&e;++i<r&&(o*=256);)this[t+i]=e/o&255;return t+r},Buffer.prototype.writeUIntBE=function(e,t,r,n){e=+e,t>>>=0,r>>>=0,n||checkInt(this,e,t,r,Math.pow(2,8*r)-1,0);var o=r-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+r},Buffer.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||checkInt(this,e,t,1,255,0),this[t]=255&e,t+1},Buffer.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||checkInt(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},Buffer.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||checkInt(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},Buffer.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||checkInt(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},Buffer.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||checkInt(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},Buffer.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var o=Math.pow(2,8*r-1);checkInt(this,e,t,r,o-1,-o)}var i=0,s=1,a=0;for(this[t]=255&e;++i<r&&(s*=256);)e<0&&0===a&&0!==this[t+i-1]&&(a=1),this[t+i]=(e/s>>0)-a&255;return t+r},Buffer.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var o=Math.pow(2,8*r-1);checkInt(this,e,t,r,o-1,-o)}var i=r-1,s=1,a=0;for(this[t+i]=255&e;--i>=0&&(s*=256);)e<0&&0===a&&0!==this[t+i+1]&&(a=1),this[t+i]=(e/s>>0)-a&255;return t+r},Buffer.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||checkInt(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},Buffer.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||checkInt(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},Buffer.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||checkInt(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},Buffer.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||checkInt(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},Buffer.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||checkInt(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},Buffer.prototype.writeFloatLE=function(e,t,r){return writeFloat(this,e,t,!0,r)},Buffer.prototype.writeFloatBE=function(e,t,r){return writeFloat(this,e,t,!1,r)},Buffer.prototype.writeDoubleLE=function(e,t,r){return writeDouble(this,e,t,!0,r)},Buffer.prototype.writeDoubleBE=function(e,t,r){return writeDouble(this,e,t,!1,r)},Buffer.prototype.copy=function(e,t,r,n){if(!Buffer.isBuffer(e))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var o=n-r;if(this===e&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,r,n);else if(this===e&&r<t&&t<n)for(var i=o-1;i>=0;--i)e[i+t]=this[i+r];else Uint8Array.prototype.set.call(e,this.subarray(r,n),t);return o},Buffer.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!Buffer.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(1===e.length){var o=e.charCodeAt(0);("utf8"===n&&o<128||"latin1"===n)&&(e=o)}}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;var i;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i<r;++i)this[i]=e;else{var s=Buffer.isBuffer(e)?e:Buffer.from(e,n),a=s.length;if(0===a)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<r-t;++i)this[i+t]=s[i%a]}return this};var INVALID_BASE64_RE=/[^+\/0-9A-Za-z-_]/g;function toHex(e){return e<16?"0"+e.toString(16):e.toString(16)}function utf8ToBytes(e,t){var r;t=t||1/0;for(var n=e.length,o=null,i=[],s=0;s<n;++s){if((r=e.charCodeAt(s))>55295&&r<57344){if(!o){if(r>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(s+1===n){(t-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(t-=3)>-1&&i.push(239,191,189),o=r;continue}r=65536+(o-55296<<10|r-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((t-=1)<0)break;i.push(r)}else if(r<2048){if((t-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function base64ToBytes(e){return _$base64Js_5.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(INVALID_BASE64_RE,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function blitBuffer(e,t,r,n){for(var o=0;o<n&&!(o+r>=t.length||o>=e.length);++o)t[o+r]=e[o];return o}function isInstance(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function numberIsNaN(e){return e!=e}var __toString_42={}.toString,_$isarray_42=Array.isArray||function(e){return"[object Array]"==__toString_42.call(e)},_$hasBinary_37={};(function(e){var t=Object.prototype.toString,r="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===t.call(Blob),n="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===t.call(File);_$hasBinary_37=function t(o){if(!o||"object"!=typeof o)return!1;if(_$isarray_42(o)){for(var i=0,s=o.length;i<s;i++)if(t(o[i]))return!0;return!1}if("function"==typeof e&&e.isBuffer&&e.isBuffer(o)||"function"==typeof ArrayBuffer&&o instanceof ArrayBuffer||r&&o instanceof Blob||n&&o instanceof File)return!0;if(o.toJSON&&"function"==typeof o.toJSON&&1===arguments.length)return t(o.toJSON(),!0);for(var a in o)if(Object.prototype.hasOwnProperty.call(o,a)&&t(o[a]))return!0;return!1}}).call(this,_$buffer_8.Buffer);var _$browser_29={},base64encoder;"undefined"!=typeof ArrayBuffer&&(base64encoder=_$base64Arraybuffer_4);var isAndroid="undefined"!=typeof navigator&&/Android/i.test(navigator.userAgent),isPhantomJS="undefined"!=typeof navigator&&/PhantomJS/i.test(navigator.userAgent),dontSendBlobs=isAndroid||isPhantomJS;_$browser_29.protocol=3;var packets=_$browser_29.packets={open:0,close:1,ping:2,pong:3,message:4,upgrade:5,noop:6},packetslist=_$keys_30(packets),err={type:"error",data:"parser error"};function map(e,t,r){for(var n=new Array(e.length),o=_$after_1(e.length,r),i=function(e,r,o){t(r,function(t,r){n[e]=r,o(t,n)})},s=0;s<e.length;s++)i(s,e[s],o)}_$browser_29.encodePacket=function(e,t,r,n){"function"==typeof t&&(n=t,t=!1),"function"==typeof r&&(n=r,r=null);var o=void 0===e.data?void 0:e.data.buffer||e.data;if("undefined"!=typeof ArrayBuffer&&o instanceof ArrayBuffer)return function(e,t,r){if(!t)return _$browser_29.encodeBase64Packet(e,r);var n=e.data,o=new Uint8Array(n),i=new Uint8Array(1+n.byteLength);i[0]=packets[e.type];for(var s=0;s<o.length;s++)i[s+1]=o[s];return r(i.buffer)}(e,t,n);if(void 0!==_$blob_6&&o instanceof _$blob_6)return function(e,t,r){if(!t)return _$browser_29.encodeBase64Packet(e,r);if(dontSendBlobs)return function(e,t,r){if(!t)return _$browser_29.encodeBase64Packet(e,r);var n=new FileReader;return n.onload=function(){_$browser_29.encodePacket({type:e.type,data:n.result},t,!0,r)},n.readAsArrayBuffer(e.data)}(e,t,r);var n=new Uint8Array(1);return n[0]=packets[e.type],r(new _$blob_6([n.buffer,e.data]))}(e,t,n);if(o&&o.base64)return function(e,t){return t("b"+_$browser_29.packets[e.type]+e.data.data)}(e,n);var i=packets[e.type];return void 0!==e.data&&(i+=r?_$utf8_31.encode(String(e.data),{strict:!1}):String(e.data)),n(""+i)},_$browser_29.encodeBase64Packet=function(e,t){var r,n="b"+_$browser_29.packets[e.type];if(void 0!==_$blob_6&&e.data instanceof _$blob_6){var o=new FileReader;return o.onload=function(){var e=o.result.split(",")[1];t(n+e)},o.readAsDataURL(e.data)}try{r=String.fromCharCode.apply(null,new Uint8Array(e.data))}catch(t){for(var i=new Uint8Array(e.data),s=new Array(i.length),a=0;a<i.length;a++)s[a]=i[a];r=String.fromCharCode.apply(null,s)}return n+=btoa(r),t(n)},_$browser_29.decodePacket=function(e,t,r){if(void 0===e)return err;if("string"==typeof e){if("b"===e.charAt(0))return _$browser_29.decodeBase64Packet(e.substr(1),t);if(r&&!1===(e=function(e){try{e=_$utf8_31.decode(e,{strict:!1})}catch(e){return!1}return e}(e)))return err;var n=e.charAt(0);return Number(n)==n&&packetslist[n]?e.length>1?{type:packetslist[n],data:e.substring(1)}:{type:packetslist[n]}:err}n=new Uint8Array(e)[0];var o=_$arraybufferSlice_2(e,1);return _$blob_6&&"blob"===t&&(o=new _$blob_6([o])),{type:packetslist[n],data:o}},_$browser_29.decodeBase64Packet=function(e,t){var r=packetslist[e.charAt(0)];if(!base64encoder)return{type:r,data:{base64:!0,data:e.substr(1)}};var n=base64encoder.decode(e.substr(1));return"blob"===t&&_$blob_6&&(n=new _$blob_6([n])),{type:r,data:n}},_$browser_29.encodePayload=function(e,t,r){"function"==typeof t&&(r=t,t=null);var n=_$hasBinary_37(e);return t&&n?_$blob_6&&!dontSendBlobs?_$browser_29.encodePayloadAsBlob(e,r):_$browser_29.encodePayloadAsArrayBuffer(e,r):e.length?void map(e,function(e,r){_$browser_29.encodePacket(e,!!n&&t,!1,function(e){r(null,function(e){return e.length+":"+e}(e))})},function(e,t){return r(t.join(""))}):r("0:")},_$browser_29.decodePayload=function(e,t,r){if("string"!=typeof e)return _$browser_29.decodePayloadAsBinary(e,t,r);var n;if("function"==typeof t&&(r=t,t=null),""===e)return r(err,0,1);for(var o,i,s="",a=0,l=e.length;a<l;a++){var u=e.charAt(a);if(":"===u){if(""===s||s!=(o=Number(s)))return r(err,0,1);if(s!=(i=e.substr(a+1,o)).length)return r(err,0,1);if(i.length){if(n=_$browser_29.decodePacket(i,t,!1),err.type===n.type&&err.data===n.data)return r(err,0,1);if(!1===r(n,a+o,l))return}a+=o,s=""}else s+=u}return""!==s?r(err,0,1):void 0},_$browser_29.encodePayloadAsArrayBuffer=function(e,t){if(!e.length)return t(new ArrayBuffer(0));map(e,function(e,t){_$browser_29.encodePacket(e,!0,!0,function(e){return t(null,e)})},function(e,r){var n=r.reduce(function(e,t){var r;return e+(r="string"==typeof t?t.length:t.byteLength).toString().length+r+2},0),o=new Uint8Array(n),i=0;return r.forEach(function(e){var t="string"==typeof e,r=e;if(t){for(var n=new Uint8Array(e.length),s=0;s<e.length;s++)n[s]=e.charCodeAt(s);r=n.buffer}o[i++]=t?0:1;var a=r.byteLength.toString();for(s=0;s<a.length;s++)o[i++]=parseInt(a[s]);for(o[i++]=255,n=new Uint8Array(r),s=0;s<n.length;s++)o[i++]=n[s]}),t(o.buffer)})},_$browser_29.encodePayloadAsBlob=function(e,t){map(e,function(e,t){_$browser_29.encodePacket(e,!0,!0,function(e){var r=new Uint8Array(1);if(r[0]=1,"string"==typeof e){for(var n=new Uint8Array(e.length),o=0;o<e.length;o++)n[o]=e.charCodeAt(o);e=n.buffer,r[0]=0}var i=(e instanceof ArrayBuffer?e.byteLength:e.size).toString(),s=new Uint8Array(i.length+1);for(o=0;o<i.length;o++)s[o]=parseInt(i[o]);if(s[i.length]=255,_$blob_6){var a=new _$blob_6([r.buffer,s.buffer,e]);t(null,a)}})},function(e,r){return t(new _$blob_6(r))})},_$browser_29.decodePayloadAsBinary=function(e,t,r){"function"==typeof t&&(r=t,t=null);for(var n=e,o=[];n.byteLength>0;){for(var i=new Uint8Array(n),s=0===i[0],a="",l=1;255!==i[l];l++){if(a.length>310)return r(err,0,1);a+=i[l]}n=_$arraybufferSlice_2(n,2+a.length),a=parseInt(a);var u=_$arraybufferSlice_2(n,0,a);if(s)try{u=String.fromCharCode.apply(null,new Uint8Array(u))}catch(e){var c=new Uint8Array(u);for(u="",l=0;l<c.length;l++)u+=String.fromCharCode(c[l])}o.push(u),n=_$arraybufferSlice_2(n,a)}var p=o.length;o.forEach(function(e,n){r(_$browser_29.decodePacket(e,t,!0),n,p)})};var _$transport_19={};function Transport(e){this.path=e.path,this.hostname=e.hostname,this.port=e.port,this.secure=e.secure,this.query=e.query,this.timestampParam=e.timestampParam,this.timestampRequests=e.timestampRequests,this.readyState="",this.agent=e.agent||!1,this.socket=e.socket,this.enablesXDR=e.enablesXDR,this.pfx=e.pfx,this.key=e.key,this.passphrase=e.passphrase,this.cert=e.cert,this.ca=e.ca,this.ciphers=e.ciphers,this.rejectUnauthorized=e.rejectUnauthorized,this.forceNode=e.forceNode,this.isReactNative=e.isReactNative,this.extraHeaders=e.extraHeaders,this.localAddress=e.localAddress}_$transport_19=Transport,_$componentEmitter_11(Transport.prototype),Transport.prototype.onError=function(e,t){var r=new Error(e);return r.type="TransportError",r.description=t,this.emit("error",r),this},Transport.prototype.open=function(){return"closed"!==this.readyState&&""!==this.readyState||(this.readyState="opening",this.doOpen()),this},Transport.prototype.close=function(){return"opening"!==this.readyState&&"open"!==this.readyState||(this.doClose(),this.onClose()),this},Transport.prototype.send=function(e){if("open"!==this.readyState)throw new Error("Transport not open");this.write(e)},Transport.prototype.onOpen=function(){this.readyState="open",this.writable=!0,this.emit("open")},Transport.prototype.onData=function(e){var t=_$browser_29.decodePacket(e,this.socket.binaryType);this.onPacket(t)},Transport.prototype.onPacket=function(e){this.emit("packet",e)},Transport.prototype.onClose=function(){this.readyState="closed",this.emit("close")};var _$componentInherit_12=function(e,t){var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e},_$hasCors_38={};try{_$hasCors_38="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(err){_$hasCors_38=!1}var _$xmlhttprequest_25=function(e){var t=e.xdomain,r=e.xscheme,n=e.enablesXDR;try{if("undefined"!=typeof XMLHttpRequest&&(!t||_$hasCors_38))return new XMLHttpRequest}catch(e){}try{if("undefined"!=typeof XDomainRequest&&!r&&n)return new XDomainRequest}catch(e){}if(!t)try{return new(self[["Active"].concat("Object").join("X")])("Microsoft.XMLHTTP")}catch(e){}},s=1e3,m=60*s,__h_28=60*m,d=24*__h_28,y=365.25*d;function plural(e,t,r){if(!(e<t))return e<1.5*t?Math.floor(e/t)+" "+r:Math.ceil(e/t)+" "+r+"s"}var _$ms_28=function(e,t){t=t||{};var r,n=typeof e;if("string"===n&&e.length>0)return function(e){if(!((e=String(e)).length>100)){var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return r*y;case"days":case"day":case"d":return r*d;case"hours":case"hour":case"hrs":case"hr":case"h":return r*__h_28;case"minutes":case"minute":case"mins":case"min":case"m":return r*m;case"seconds":case"second":case"secs":case"sec":case"s":return r*s;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}(e);if("number"===n&&!1===isNaN(e))return t.long?plural(r=e,d,"day")||plural(r,__h_28,"hour")||plural(r,m,"minute")||plural(r,s,"second")||r+" ms":function(e){return e>=d?Math.round(e/d)+"d":e>=__h_28?Math.round(e/__h_28)+"h":e>=m?Math.round(e/m)+"m":e>=s?Math.round(e/s)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))},_$debug_27={};function createDebug(e){var t;function r(){if(r.enabled){var e=r,n=+new Date,o=n-(t||n);e.diff=o,e.prev=t,e.curr=n,t=n;for(var i=new Array(arguments.length),s=0;s<i.length;s++)i[s]=arguments[s];i[0]=_$debug_27.coerce(i[0]),"string"!=typeof i[0]&&i.unshift("%O");var a=0;i[0]=i[0].replace(/%([a-zA-Z%])/g,function(t,r){if("%%"===t)return t;a++;var n=_$debug_27.formatters[r];if("function"==typeof n){var o=i[a];t=n.call(e,o),i.splice(a,1),a--}return t}),_$debug_27.formatArgs.call(e,i),(r.log||_$debug_27.log||console.log.bind(console)).apply(e,i)}}return r.namespace=e,r.enabled=_$debug_27.enabled(e),r.useColors=_$debug_27.useColors(),r.color=function(e){var t,r=0;for(t in e)r=(r<<5)-r+e.charCodeAt(t),r|=0;return _$debug_27.colors[Math.abs(r)%_$debug_27.colors.length]}(e),r.destroy=destroy,"function"==typeof _$debug_27.init&&_$debug_27.init(r),_$debug_27.instances.push(r),r}function destroy(){var e=_$debug_27.instances.indexOf(this);return-1!==e&&(_$debug_27.instances.splice(e,1),!0)}_$debug_27=_$debug_27=createDebug.debug=createDebug.default=createDebug,_$debug_27.coerce=function(e){return e instanceof Error?e.stack||e.message:e},_$debug_27.disable=function(){_$debug_27.enable("")},_$debug_27.enable=function(e){var t;_$debug_27.save(e),_$debug_27.names=[],_$debug_27.skips=[];var r=("string"==typeof e?e:"").split(/[\s,]+/),n=r.length;for(t=0;t<n;t++)r[t]&&("-"===(e=r[t].replace(/\*/g,".*?"))[0]?_$debug_27.skips.push(new RegExp("^"+e.substr(1)+"$")):_$debug_27.names.push(new RegExp("^"+e+"$")));for(t=0;t<_$debug_27.instances.length;t++){var o=_$debug_27.instances[t];o.enabled=_$debug_27.enabled(o.namespace)}},_$debug_27.enabled=function(e){if("*"===e[e.length-1])return!0;var t,r;for(t=0,r=_$debug_27.skips.length;t<r;t++)if(_$debug_27.skips[t].test(e))return!1;for(t=0,r=_$debug_27.names.length;t<r;t++)if(_$debug_27.names[t].test(e))return!0;return!1},_$debug_27.humanize=_$ms_28,_$debug_27.instances=[],_$debug_27.names=[],_$debug_27.skips=[],_$debug_27.formatters={};var _$browser_26={};(function(e){function t(){var t;try{t=_$browser_26.storage.debug}catch(e){}return!t&&void 0!==e&&"env"in e&&(t=e.env.DEBUG),t}(_$browser_26=_$browser_26=_$debug_27).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},_$browser_26.formatArgs=function(e){var t=this.useColors;if(e[0]=(t?"%c":"")+this.namespace+(t?" %c":" ")+e[0]+(t?"%c ":" ")+"+"+_$browser_26.humanize(this.diff),t){var r="color: "+this.color;e.splice(1,0,r,"color: inherit");var n=0,o=0;e[0].replace(/%[a-zA-Z%]/g,function(e){"%%"!==e&&(n++,"%c"===e&&(o=n))}),e.splice(o,0,r)}},_$browser_26.save=function(e){try{null==e?_$browser_26.storage.removeItem("debug"):_$browser_26.storage.debug=e}catch(e){}},_$browser_26.load=t,_$browser_26.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},_$browser_26.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),_$browser_26.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],_$browser_26.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},_$browser_26.enable(t())}).call(this,_$browser_52);var _$parseqs_48={encode:function(e){var t="";for(var r in e)e.hasOwnProperty(r)&&(t.length&&(t+="&"),t+=encodeURIComponent(r)+"="+encodeURIComponent(e[r]));return t},decode:function(e){for(var t={},r=e.split("&"),n=0,o=r.length;n<o;n++){var i=r[n].split("=");t[decodeURIComponent(i[0])]=decodeURIComponent(i[1])}return t}},_$yeast_87={},prev,alphabet="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),length=64,__map_87={},seed=0,__i_87=0;function encode(e){var t="";do{t=alphabet[e%length]+t,e=Math.floor(e/length)}while(e>0);return t}function yeast(){var e=encode(+new Date);return e!==prev?(seed=0,prev=e):e+"."+encode(seed++)}for(;__i_87<length;__i_87++)__map_87[alphabet[__i_87]]=__i_87;yeast.encode=encode,yeast.decode=function(e){var t=0;for(__i_87=0;__i_87<e.length;__i_87++)t=t*length+__map_87[e.charAt(__i_87)];return t},_$yeast_87=yeast;var debug=_$browser_26("engine.io-client:polling"),_$Polling_23=Polling,hasXHR2=null!=new _$xmlhttprequest_25({xdomain:!1}).responseType;function Polling(e){var t=e&&e.forceBase64;hasXHR2&&!t||(this.supportsBinary=!1),_$transport_19.call(this,e)}_$componentInherit_12(Polling,_$transport_19),Polling.prototype.name="polling",Polling.prototype.doOpen=function(){this.poll()},Polling.prototype.pause=function(e){var t=this;function r(){debug("paused"),t.readyState="paused",e()}if(this.readyState="pausing",this.polling||!this.writable){var n=0;this.polling&&(debug("we are currently polling - waiting to pause"),n++,this.once("pollComplete",function(){debug("pre-pause polling complete"),--n||r()})),this.writable||(debug("we are currently writing - waiting to pause"),n++,this.once("drain",function(){debug("pre-pause writing complete"),--n||r()}))}else r()},Polling.prototype.poll=function(){debug("polling"),this.polling=!0,this.doPoll(),this.emit("poll")},Polling.prototype.onData=function(e){var t=this;debug("polling got data %s",e),_$browser_29.decodePayload(e,this.socket.binaryType,function(e,r,n){if("opening"===t.readyState&&t.onOpen(),"close"===e.type)return t.onClose(),!1;t.onPacket(e)}),"closed"!==this.readyState&&(this.polling=!1,this.emit("pollComplete"),"open"===this.readyState?this.poll():debug('ignoring poll - transport state "%s"',this.readyState))},Polling.prototype.doClose=function(){var e=this;function t(){debug("writing close packet"),e.write([{type:"close"}])}"open"===this.readyState?(debug("transport open - closing"),t()):(debug("transport not open - deferring close"),this.once("open",t))},Polling.prototype.write=function(e){var t=this;this.writable=!1;var r=function(){t.writable=!0,t.emit("drain")};_$browser_29.encodePayload(e,this.supportsBinary,function(e){t.doWrite(e,r)})},Polling.prototype.uri=function(){var e=this.query||{},t=this.secure?"https":"http",r="";return!1!==this.timestampRequests&&(e[this.timestampParam]=_$yeast_87()),this.supportsBinary||e.sid||(e.b64=1),e=_$parseqs_48.encode(e),this.port&&("https"===t&&443!==Number(this.port)||"http"===t&&80!==Number(this.port))&&(r=":"+this.port),e.length&&(e="?"+e),t+"://"+(-1!==this.hostname.indexOf(":")?"["+this.hostname+"]":this.hostname)+r+this.path+e};var _$JSONPPolling_21={};(function(e){_$JSONPPolling_21=s;var t,r=/\n/g,n=/\\n/g;function o(){}function i(){return"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:{}}function s(e){if(_$Polling_23.call(this,e),this.query=this.query||{},!t){var r=i();t=r.___eio=r.___eio||[]}this.index=t.length;var n=this;t.push(function(e){n.onData(e)}),this.query.j=this.index,"function"==typeof addEventListener&&addEventListener("beforeunload",function(){n.script&&(n.script.onerror=o)},!1)}_$componentInherit_12(s,_$Polling_23),s.prototype.supportsBinary=!1,s.prototype.doClose=function(){this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),this.form&&(this.form.parentNode.removeChild(this.form),this.form=null,this.iframe=null),_$Polling_23.prototype.doClose.call(this)},s.prototype.doPoll=function(){var e=this,t=document.createElement("script");this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),t.async=!0,t.src=this.uri(),t.onerror=function(t){e.onError("jsonp poll error",t)};var r=document.getElementsByTagName("script")[0];r?r.parentNode.insertBefore(t,r):(document.head||document.body).appendChild(t),this.script=t,"undefined"!=typeof navigator&&/gecko/i.test(navigator.userAgent)&&setTimeout(function(){var e=document.createElement("iframe");document.body.appendChild(e),document.body.removeChild(e)},100)},s.prototype.doWrite=function(e,t){var o=this;if(!this.form){var i,s=document.createElement("form"),a=document.createElement("textarea"),l=this.iframeId="eio_iframe_"+this.index;s.className="socketio",s.style.position="absolute",s.style.top="-1000px",s.style.left="-1000px",s.target=l,s.method="POST",s.setAttribute("accept-charset","utf-8"),a.name="d",s.appendChild(a),document.body.appendChild(s),this.form=s,this.area=a}function u(){c(),t()}function c(){if(o.iframe)try{o.form.removeChild(o.iframe)}catch(e){o.onError("jsonp polling iframe removal error",e)}try{var e='<iframe src="javascript:0" name="'+o.iframeId+'">';i=document.createElement(e)}catch(e){(i=document.createElement("iframe")).name=o.iframeId,i.src="javascript:0"}i.id=o.iframeId,o.form.appendChild(i),o.iframe=i}this.form.action=this.uri(),c(),e=e.replace(n,"\\\n"),this.area.value=e.replace(r,"\\n");try{this.form.submit()}catch(e){}this.iframe.attachEvent?this.iframe.onreadystatechange=function(){"complete"===o.iframe.readyState&&u()}:this.iframe.onload=u}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{});var _$pollingXhr_22={},__debug_22=_$browser_26("engine.io-client:polling-xhr");function empty(){}function XHR(e){if(_$Polling_23.call(this,e),this.requestTimeout=e.requestTimeout,this.extraHeaders=e.extraHeaders,"undefined"!=typeof location){var t="https:"===location.protocol,r=location.port;r||(r=t?443:80),this.xd="undefined"!=typeof location&&e.hostname!==location.hostname||r!==e.port,this.xs=e.secure!==t}}function Request(e){this.method=e.method||"GET",this.uri=e.uri,this.xd=!!e.xd,this.xs=!!e.xs,this.async=!1!==e.async,this.data=void 0!==e.data?e.data:null,this.agent=e.agent,this.isBinary=e.isBinary,this.supportsBinary=e.supportsBinary,this.enablesXDR=e.enablesXDR,this.requestTimeout=e.requestTimeout,this.pfx=e.pfx,this.key=e.key,this.passphrase=e.passphrase,this.cert=e.cert,this.ca=e.ca,this.ciphers=e.ciphers,this.rejectUnauthorized=e.rejectUnauthorized,this.extraHeaders=e.extraHeaders,this.create()}if(_$pollingXhr_22=XHR,_$pollingXhr_22.Request=Request,_$componentInherit_12(XHR,_$Polling_23),XHR.prototype.supportsBinary=!0,XHR.prototype.request=function(e){return(e=e||{}).uri=this.uri(),e.xd=this.xd,e.xs=this.xs,e.agent=this.agent||!1,e.supportsBinary=this.supportsBinary,e.enablesXDR=this.enablesXDR,e.pfx=this.pfx,e.key=this.key,e.passphrase=this.passphrase,e.cert=this.cert,e.ca=this.ca,e.ciphers=this.ciphers,e.rejectUnauthorized=this.rejectUnauthorized,e.requestTimeout=this.requestTimeout,e.extraHeaders=this.extraHeaders,new Request(e)},XHR.prototype.doWrite=function(e,t){var r="string"!=typeof e&&void 0!==e,n=this.request({method:"POST",data:e,isBinary:r}),o=this;n.on("success",t),n.on("error",function(e){o.onError("xhr post error",e)}),this.sendXhr=n},XHR.prototype.doPoll=function(){__debug_22("xhr poll");var e=this.request(),t=this;e.on("data",function(e){t.onData(e)}),e.on("error",function(e){t.onError("xhr poll error",e)}),this.pollXhr=e},_$componentEmitter_11(Request.prototype),Request.prototype.create=function(){var e={agent:this.agent,xdomain:this.xd,xscheme:this.xs,enablesXDR:this.enablesXDR};e.pfx=this.pfx,e.key=this.key,e.passphrase=this.passphrase,e.cert=this.cert,e.ca=this.ca,e.ciphers=this.ciphers,e.rejectUnauthorized=this.rejectUnauthorized;var t=this.xhr=new _$xmlhttprequest_25(e),r=this;try{__debug_22("xhr open %s: %s",this.method,this.uri),t.open(this.method,this.uri,this.async);try{if(this.extraHeaders)for(var n in t.setDisableHeaderCheck&&t.setDisableHeaderCheck(!0),this.extraHeaders)this.extraHeaders.hasOwnProperty(n)&&t.setRequestHeader(n,this.extraHeaders[n])}catch(e){}if("POST"===this.method)try{this.isBinary?t.setRequestHeader("Content-type","application/octet-stream"):t.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(e){}try{t.setRequestHeader("Accept","*/*")}catch(e){}"withCredentials"in t&&(t.withCredentials=!0),this.requestTimeout&&(t.timeout=this.requestTimeout),this.hasXDR()?(t.onload=function(){r.onLoad()},t.onerror=function(){r.onError(t.responseText)}):t.onreadystatechange=function(){if(2===t.readyState)try{var e=t.getResponseHeader("Content-Type");r.supportsBinary&&"application/octet-stream"===e&&(t.responseType="arraybuffer")}catch(e){}4===t.readyState&&(200===t.status||1223===t.status?r.onLoad():setTimeout(function(){r.onError(t.status)},0))},__debug_22("xhr data %s",this.data),t.send(this.data)}catch(e){return void setTimeout(function(){r.onError(e)},0)}"undefined"!=typeof document&&(this.index=Request.requestsCount++,Request.requests[this.index]=this)},Request.prototype.onSuccess=function(){this.emit("success"),this.cleanup()},Request.prototype.onData=function(e){this.emit("data",e),this.onSuccess()},Request.prototype.onError=function(e){this.emit("error",e),this.cleanup(!0)},Request.prototype.cleanup=function(e){if(void 0!==this.xhr&&null!==this.xhr){if(this.hasXDR()?this.xhr.onload=this.xhr.onerror=empty:this.xhr.onreadystatechange=empty,e)try{this.xhr.abort()}catch(e){}"undefined"!=typeof document&&delete Request.requests[this.index],this.xhr=null}},Request.prototype.onLoad=function(){var e;try{var t;try{t=this.xhr.getResponseHeader("Content-Type")}catch(e){}e="application/octet-stream"===t&&this.xhr.response||this.xhr.responseText}catch(e){this.onError(e)}null!=e&&this.onData(e)},Request.prototype.hasXDR=function(){return"undefined"!=typeof XDomainRequest&&!this.xs&&this.enablesXDR},Request.prototype.abort=function(){this.cleanup()},Request.requestsCount=0,Request.requests={},"undefined"!=typeof document)if("function"==typeof attachEvent)attachEvent("onunload",unloadHandler);else if("function"==typeof addEventListener){var terminationEvent="onpagehide"in self?"pagehide":"unload";addEventListener(terminationEvent,unloadHandler,!1)}function unloadHandler(){for(var e in Request.requests)Request.requests.hasOwnProperty(e)&&Request.requests[e].abort()}var _$empty_7={},_$websocket_24={};(function(e){var t,r,n=_$browser_26("engine.io-client:websocket");if("undefined"!=typeof WebSocket)t=WebSocket;else if("undefined"!=typeof self)t=self.WebSocket||self.MozWebSocket;else try{r=_$empty_7}catch(e){}var o=t||r;function i(e){e&&e.forceBase64&&(this.supportsBinary=!1),this.perMessageDeflate=e.perMessageDeflate,this.usingBrowserWebSocket=t&&!e.forceNode,this.protocols=e.protocols,this.usingBrowserWebSocket||(o=r),_$transport_19.call(this,e)}_$websocket_24=i,_$componentInherit_12(i,_$transport_19),i.prototype.name="websocket",i.prototype.supportsBinary=!0,i.prototype.doOpen=function(){if(this.check()){var e=this.uri(),t=this.protocols,r={agent:this.agent,perMessageDeflate:this.perMessageDeflate};r.pfx=this.pfx,r.key=this.key,r.passphrase=this.passphrase,r.cert=this.cert,r.ca=this.ca,r.ciphers=this.ciphers,r.rejectUnauthorized=this.rejectUnauthorized,this.extraHeaders&&(r.headers=this.extraHeaders),this.localAddress&&(r.localAddress=this.localAddress);try{this.ws=this.usingBrowserWebSocket&&!this.isReactNative?t?new o(e,t):new o(e):new o(e,t,r)}catch(e){return this.emit("error",e)}void 0===this.ws.binaryType&&(this.supportsBinary=!1),this.ws.supports&&this.ws.supports.binary?(this.supportsBinary=!0,this.ws.binaryType="nodebuffer"):this.ws.binaryType="arraybuffer",this.addEventListeners()}},i.prototype.addEventListeners=function(){var e=this;this.ws.onopen=function(){e.onOpen()},this.ws.onclose=function(){e.onClose()},this.ws.onmessage=function(t){e.onData(t.data)},this.ws.onerror=function(t){e.onError("websocket error",t)}},i.prototype.write=function(t){var r=this;this.writable=!1;for(var o=t.length,i=0,s=o;i<s;i++)!function(t){_$browser_29.encodePacket(t,r.supportsBinary,function(i){if(!r.usingBrowserWebSocket){var s={};t.options&&(s.compress=t.options.compress),r.perMessageDeflate&&("string"==typeof i?e.byteLength(i):i.length)<r.perMessageDeflate.threshold&&(s.compress=!1)}try{r.usingBrowserWebSocket?r.ws.send(i):r.ws.send(i,s)}catch(e){n("websocket closed before onclose event")}--o||(r.emit("flush"),setTimeout(function(){r.writable=!0,r.emit("drain")},0))})}(t[i])},i.prototype.onClose=function(){_$transport_19.prototype.onClose.call(this)},i.prototype.doClose=function(){void 0!==this.ws&&this.ws.close()},i.prototype.uri=function(){var e=this.query||{},t=this.secure?"wss":"ws",r="";return this.port&&("wss"===t&&443!==Number(this.port)||"ws"===t&&80!==Number(this.port))&&(r=":"+this.port),this.timestampRequests&&(e[this.timestampParam]=_$yeast_87()),this.supportsBinary||(e.b64=1),(e=_$parseqs_48.encode(e)).length&&(e="?"+e),t+"://"+(-1!==this.hostname.indexOf(":")?"["+this.hostname+"]":this.hostname)+r+this.path+e},i.prototype.check=function(){return!(!o||"__initialize"in o&&this.name===i.prototype.name)}}).call(this,_$buffer_8.Buffer);var _$transports_20={polling:function(e){var t=!1,r=!1,n=!1!==e.jsonp;if("undefined"!=typeof location){var o="https:"===location.protocol,i=location.port;i||(i=o?443:80),t=e.hostname!==location.hostname||i!==e.port,r=e.secure!==o}if(e.xdomain=t,e.xscheme=r,"open"in new _$xmlhttprequest_25(e)&&!e.forceJSONP)return new _$pollingXhr_22(e);if(!n)throw new Error("JSONP disabled");return new _$JSONPPolling_21(e)}};_$transports_20.websocket=_$websocket_24;var indexOf=[].indexOf,_$indexof_40=function(e,t){if(indexOf)return e.indexOf(t);for(var r=0;r<e.length;++r)if(e[r]===t)return r;return-1},re=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,parts=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],_$parseuri_49=function(e){var t=e,r=e.indexOf("["),n=e.indexOf("]");-1!=r&&-1!=n&&(e=e.substring(0,r)+e.substring(r,n).replace(/:/g,";")+e.substring(n,e.length));for(var o=re.exec(e||""),i={},s=14;s--;)i[parts[s]]=o[s]||"";return-1!=r&&-1!=n&&(i.source=t,i.host=i.host.substring(1,i.host.length-1).replace(/;/g,":"),i.authority=i.authority.replace("[","").replace("]","").replace(/;/g,":"),i.ipv6uri=!0),i},_$socket_18={},__debug_18=_$browser_26("engine.io-client:socket");function __Socket_18(e,t){if(!(this instanceof __Socket_18))return new __Socket_18(e,t);t=t||{},e&&"object"==typeof e&&(t=e,e=null),e?(e=_$parseuri_49(e),t.hostname=e.host,t.secure="https"===e.protocol||"wss"===e.protocol,t.port=e.port,e.query&&(t.query=e.query)):t.host&&(t.hostname=_$parseuri_49(t.host).host),this.secure=null!=t.secure?t.secure:"undefined"!=typeof location&&"https:"===location.protocol,t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.agent=t.agent||!1,this.hostname=t.hostname||("undefined"!=typeof location?location.hostname:"localhost"),this.port=t.port||("undefined"!=typeof location&&location.port?location.port:this.secure?443:80),this.query=t.query||{},"string"==typeof this.query&&(this.query=_$parseqs_48.decode(this.query)),this.upgrade=!1!==t.upgrade,this.path=(t.path||"/engine.io").replace(/\/$/,"")+"/",this.forceJSONP=!!t.forceJSONP,this.jsonp=!1!==t.jsonp,this.forceBase64=!!t.forceBase64,this.enablesXDR=!!t.enablesXDR,this.timestampParam=t.timestampParam||"t",this.timestampRequests=t.timestampRequests,this.transports=t.transports||["polling","websocket"],this.transportOptions=t.transportOptions||{},this.readyState="",this.writeBuffer=[],this.prevBufferLen=0,this.policyPort=t.policyPort||843,this.rememberUpgrade=t.rememberUpgrade||!1,this.binaryType=null,this.onlyBinaryUpgrades=t.onlyBinaryUpgrades,this.perMessageDeflate=!1!==t.perMessageDeflate&&(t.perMessageDeflate||{}),!0===this.perMessageDeflate&&(this.perMessageDeflate={}),this.perMessageDeflate&&null==this.perMessageDeflate.threshold&&(this.perMessageDeflate.threshold=1024),this.pfx=t.pfx||null,this.key=t.key||null,this.passphrase=t.passphrase||null,this.cert=t.cert||null,this.ca=t.ca||null,this.ciphers=t.ciphers||null,this.rejectUnauthorized=void 0===t.rejectUnauthorized||t.rejectUnauthorized,this.forceNode=!!t.forceNode,this.isReactNative="undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase(),("undefined"==typeof self||this.isReactNative)&&(t.extraHeaders&&Object.keys(t.extraHeaders).length>0&&(this.extraHeaders=t.extraHeaders),t.localAddress&&(this.localAddress=t.localAddress)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingIntervalTimer=null,this.pingTimeoutTimer=null,this.open()}_$socket_18=__Socket_18,__Socket_18.priorWebsocketSuccess=!1,_$componentEmitter_11(__Socket_18.prototype),__Socket_18.protocol=_$browser_29.protocol,__Socket_18.Socket=__Socket_18,__Socket_18.Transport=_$transport_19,__Socket_18.transports=_$transports_20,__Socket_18.parser=_$browser_29,__Socket_18.prototype.createTransport=function(e){__debug_18('creating transport "%s"',e);var t=function(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);return t}(this.query);t.EIO=_$browser_29.protocol,t.transport=e;var r=this.transportOptions[e]||{};return this.id&&(t.sid=this.id),new _$transports_20[e]({query:t,socket:this,agent:r.agent||this.agent,hostname:r.hostname||this.hostname,port:r.port||this.port,secure:r.secure||this.secure,path:r.path||this.path,forceJSONP:r.forceJSONP||this.forceJSONP,jsonp:r.jsonp||this.jsonp,forceBase64:r.forceBase64||this.forceBase64,enablesXDR:r.enablesXDR||this.enablesXDR,timestampRequests:r.timestampRequests||this.timestampRequests,timestampParam:r.timestampParam||this.timestampParam,policyPort:r.policyPort||this.policyPort,pfx:r.pfx||this.pfx,key:r.key||this.key,passphrase:r.passphrase||this.passphrase,cert:r.cert||this.cert,ca:r.ca||this.ca,ciphers:r.ciphers||this.ciphers,rejectUnauthorized:r.rejectUnauthorized||this.rejectUnauthorized,perMessageDeflate:r.perMessageDeflate||this.perMessageDeflate,extraHeaders:r.extraHeaders||this.extraHeaders,forceNode:r.forceNode||this.forceNode,localAddress:r.localAddress||this.localAddress,requestTimeout:r.requestTimeout||this.requestTimeout,protocols:r.protocols||void 0,isReactNative:this.isReactNative})},__Socket_18.prototype.open=function(){var e;if(this.rememberUpgrade&&__Socket_18.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket"))e="websocket";else{if(0===this.transports.length){var t=this;return void setTimeout(function(){t.emit("error","No transports available")},0)}e=this.transports[0]}this.readyState="opening";try{e=this.createTransport(e)}catch(e){return this.transports.shift(),void this.open()}e.open(),this.setTransport(e)},__Socket_18.prototype.setTransport=function(e){__debug_18("setting transport %s",e.name);var t=this;this.transport&&(__debug_18("clearing existing transport %s",this.transport.name),this.transport.removeAllListeners()),this.transport=e,e.on("drain",function(){t.onDrain()}).on("packet",function(e){t.onPacket(e)}).on("error",function(e){t.onError(e)}).on("close",function(){t.onClose("transport close")})},__Socket_18.prototype.probe=function(e){__debug_18('probing transport "%s"',e);var t=this.createTransport(e,{probe:1}),r=!1,n=this;function o(){if(n.onlyBinaryUpgrades){var o=!this.supportsBinary&&n.transport.supportsBinary;r=r||o}r||(__debug_18('probe transport "%s" opened',e),t.send([{type:"ping",data:"probe"}]),t.once("packet",function(o){if(!r)if("pong"===o.type&&"probe"===o.data){if(__debug_18('probe transport "%s" pong',e),n.upgrading=!0,n.emit("upgrading",t),!t)return;__Socket_18.priorWebsocketSuccess="websocket"===t.name,__debug_18('pausing current transport "%s"',n.transport.name),n.transport.pause(function(){r||"closed"!==n.readyState&&(__debug_18("changing transport and sending upgrade packet"),c(),n.setTransport(t),t.send([{type:"upgrade"}]),n.emit("upgrade",t),t=null,n.upgrading=!1,n.flush())})}else{__debug_18('probe transport "%s" failed',e);var i=new Error("probe error");i.transport=t.name,n.emit("upgradeError",i)}}))}function i(){r||(r=!0,c(),t.close(),t=null)}function s(r){var o=new Error("probe error: "+r);o.transport=t.name,i(),__debug_18('probe transport "%s" failed because of error: %s',e,r),n.emit("upgradeError",o)}function a(){s("transport closed")}function l(){s("socket closed")}function u(e){t&&e.name!==t.name&&(__debug_18('"%s" works - aborting "%s"',e.name,t.name),i())}function c(){t.removeListener("open",o),t.removeListener("error",s),t.removeListener("close",a),n.removeListener("close",l),n.removeListener("upgrading",u)}__Socket_18.priorWebsocketSuccess=!1,t.once("open",o),t.once("error",s),t.once("close",a),this.once("close",l),this.once("upgrading",u),t.open()},__Socket_18.prototype.onOpen=function(){if(__debug_18("socket open"),this.readyState="open",__Socket_18.priorWebsocketSuccess="websocket"===this.transport.name,this.emit("open"),this.flush(),"open"===this.readyState&&this.upgrade&&this.transport.pause){__debug_18("starting upgrade probes");for(var e=0,t=this.upgrades.length;e<t;e++)this.probe(this.upgrades[e])}},__Socket_18.prototype.onPacket=function(e){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(__debug_18('socket receive: type "%s", data "%s"',e.type,e.data),this.emit("packet",e),this.emit("heartbeat"),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"pong":this.setPing(),this.emit("pong");break;case"error":var t=new Error("server error");t.code=e.data,this.onError(t);break;case"message":this.emit("data",e.data),this.emit("message",e.data)}else __debug_18('packet received with socket readyState "%s"',this.readyState)},__Socket_18.prototype.onHandshake=function(e){this.emit("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this.upgrades=this.filterUpgrades(e.upgrades),this.pingInterval=e.pingInterval,this.pingTimeout=e.pingTimeout,this.onOpen(),"closed"!==this.readyState&&(this.setPing(),this.removeListener("heartbeat",this.onHeartbeat),this.on("heartbeat",this.onHeartbeat))},__Socket_18.prototype.onHeartbeat=function(e){clearTimeout(this.pingTimeoutTimer);var t=this;t.pingTimeoutTimer=setTimeout(function(){"closed"!==t.readyState&&t.onClose("ping timeout")},e||t.pingInterval+t.pingTimeout)},__Socket_18.prototype.setPing=function(){var e=this;clearTimeout(e.pingIntervalTimer),e.pingIntervalTimer=setTimeout(function(){__debug_18("writing ping packet - expecting pong within %sms",e.pingTimeout),e.ping(),e.onHeartbeat(e.pingTimeout)},e.pingInterval)},__Socket_18.prototype.ping=function(){var e=this;this.sendPacket("ping",function(){e.emit("ping")})},__Socket_18.prototype.onDrain=function(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,0===this.writeBuffer.length?this.emit("drain"):this.flush()},__Socket_18.prototype.flush=function(){"closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length&&(__debug_18("flushing %d packets in socket",this.writeBuffer.length),this.transport.send(this.writeBuffer),this.prevBufferLen=this.writeBuffer.length,this.emit("flush"))},__Socket_18.prototype.write=__Socket_18.prototype.send=function(e,t,r){return this.sendPacket("message",e,t,r),this},__Socket_18.prototype.sendPacket=function(e,t,r,n){if("function"==typeof t&&(n=t,t=void 0),"function"==typeof r&&(n=r,r=null),"closing"!==this.readyState&&"closed"!==this.readyState){(r=r||{}).compress=!1!==r.compress;var o={type:e,data:t,options:r};this.emit("packetCreate",o),this.writeBuffer.push(o),n&&this.once("flush",n),this.flush()}},__Socket_18.prototype.close=function(){if("opening"===this.readyState||"open"===this.readyState){this.readyState="closing";var e=this;this.writeBuffer.length?this.once("drain",function(){this.upgrading?n():t()}):this.upgrading?n():t()}function t(){e.onClose("forced close"),__debug_18("socket closing - telling transport to close"),e.transport.close()}function r(){e.removeListener("upgrade",r),e.removeListener("upgradeError",r),t()}function n(){e.once("upgrade",r),e.once("upgradeError",r)}return this},__Socket_18.prototype.onError=function(e){__debug_18("socket error %j",e),__Socket_18.priorWebsocketSuccess=!1,this.emit("error",e),this.onClose("transport error",e)},__Socket_18.prototype.onClose=function(e,t){"opening"!==this.readyState&&"open"!==this.readyState&&"closing"!==this.readyState||(__debug_18('socket close with reason: "%s"',e),clearTimeout(this.pingIntervalTimer),clearTimeout(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),this.readyState="closed",this.id=null,this.emit("close",e,t),this.writeBuffer=[],this.prevBufferLen=0)},__Socket_18.prototype.filterUpgrades=function(e){for(var t=[],r=0,n=e.length;r<n;r++)~_$indexof_40(this.transports,e[r])&&t.push(e[r]);return t};var _$lib_17={};_$lib_17=_$socket_18,_$lib_17.parser=_$browser_29;var _$on_59=function(e,t,r){return e.on(t,r),{destroy:function(){e.removeListener(t,r)}}},__s_64=1e3,__m_64=60*__s_64,__h_64=60*__m_64,__d_64=24*__h_64,__y_64=365.25*__d_64;function __plural_64(e,t,r){if(!(e<t))return e<1.5*t?Math.floor(e/t)+" "+r:Math.ceil(e/t)+" "+r+"s"}var _$ms_64=function(e,t){t=t||{};var r,n=typeof e;if("string"===n&&e.length>0)return function(e){if(!((e=String(e)).length>100)){var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return r*__y_64;case"days":case"day":case"d":return r*__d_64;case"hours":case"hour":case"hrs":case"hr":case"h":return r*__h_64;case"minutes":case"minute":case"mins":case"min":case"m":return r*__m_64;case"seconds":case"second":case"secs":case"sec":case"s":return r*__s_64;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}(e);if("number"===n&&!1===isNaN(e))return t.long?__plural_64(r=e,__d_64,"day")||__plural_64(r,__h_64,"hour")||__plural_64(r,__m_64,"minute")||__plural_64(r,__s_64,"second")||r+" ms":function(e){return e>=__d_64?Math.round(e/__d_64)+"d":e>=__h_64?Math.round(e/__h_64)+"h":e>=__m_64?Math.round(e/__m_64)+"m":e>=__s_64?Math.round(e/__s_64)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))},_$debug_63={};function __createDebug_63(e){var t;function r(){if(r.enabled){var e=r,n=+new Date,o=n-(t||n);e.diff=o,e.prev=t,e.curr=n,t=n;for(var i=new Array(arguments.length),s=0;s<i.length;s++)i[s]=arguments[s];i[0]=_$debug_63.coerce(i[0]),"string"!=typeof i[0]&&i.unshift("%O");var a=0;i[0]=i[0].replace(/%([a-zA-Z%])/g,function(t,r){if("%%"===t)return t;a++;var n=_$debug_63.formatters[r];if("function"==typeof n){var o=i[a];t=n.call(e,o),i.splice(a,1),a--}return t}),_$debug_63.formatArgs.call(e,i),(r.log||_$debug_63.log||console.log.bind(console)).apply(e,i)}}return r.namespace=e,r.enabled=_$debug_63.enabled(e),r.useColors=_$debug_63.useColors(),r.color=function(e){var t,r=0;for(t in e)r=(r<<5)-r+e.charCodeAt(t),r|=0;return _$debug_63.colors[Math.abs(r)%_$debug_63.colors.length]}(e),r.destroy=__destroy_63,"function"==typeof _$debug_63.init&&_$debug_63.init(r),_$debug_63.instances.push(r),r}function __destroy_63(){var e=_$debug_63.instances.indexOf(this);return-1!==e&&(_$debug_63.instances.splice(e,1),!0)}_$debug_63=_$debug_63=__createDebug_63.debug=__createDebug_63.default=__createDebug_63,_$debug_63.coerce=function(e){return e instanceof Error?e.stack||e.message:e},_$debug_63.disable=function(){_$debug_63.enable("")},_$debug_63.enable=function(e){var t;_$debug_63.save(e),_$debug_63.names=[],_$debug_63.skips=[];var r=("string"==typeof e?e:"").split(/[\s,]+/),n=r.length;for(t=0;t<n;t++)r[t]&&("-"===(e=r[t].replace(/\*/g,".*?"))[0]?_$debug_63.skips.push(new RegExp("^"+e.substr(1)+"$")):_$debug_63.names.push(new RegExp("^"+e+"$")));for(t=0;t<_$debug_63.instances.length;t++){var o=_$debug_63.instances[t];o.enabled=_$debug_63.enabled(o.namespace)}},_$debug_63.enabled=function(e){if("*"===e[e.length-1])return!0;var t,r;for(t=0,r=_$debug_63.skips.length;t<r;t++)if(_$debug_63.skips[t].test(e))return!1;for(t=0,r=_$debug_63.names.length;t<r;t++)if(_$debug_63.names[t].test(e))return!0;return!1},_$debug_63.humanize=_$ms_64,_$debug_63.instances=[],_$debug_63.names=[],_$debug_63.skips=[],_$debug_63.formatters={};var _$browser_62={};(function(e){function t(){var t;try{t=_$browser_62.storage.debug}catch(e){}return!t&&void 0!==e&&"env"in e&&(t=e.env.DEBUG),t}(_$browser_62=_$browser_62=_$debug_63).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},_$browser_62.formatArgs=function(e){var t=this.useColors;if(e[0]=(t?"%c":"")+this.namespace+(t?" %c":" ")+e[0]+(t?"%c ":" ")+"+"+_$browser_62.humanize(this.diff),t){var r="color: "+this.color;e.splice(1,0,r,"color: inherit");var n=0,o=0;e[0].replace(/%[a-zA-Z%]/g,function(e){"%%"!==e&&(n++,"%c"===e&&(o=n))}),e.splice(o,0,r)}},_$browser_62.save=function(e){try{null==e?_$browser_62.storage.removeItem("debug"):_$browser_62.storage.debug=e}catch(e){}},_$browser_62.load=t,_$browser_62.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},_$browser_62.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),_$browser_62.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],_$browser_62.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},_$browser_62.enable(t())}).call(this,_$browser_52);var _$isBuffer_67={};(function(e){_$isBuffer_67=function(o){return t&&e.isBuffer(o)||r&&(o instanceof ArrayBuffer||n(o))};var t="function"==typeof e&&"function"==typeof e.isBuffer,r="function"==typeof ArrayBuffer,n=function(e){return"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer}}).call(this,_$buffer_8.Buffer);var _$binary_65={},__toString_65=Object.prototype.toString,withNativeBlob="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===__toString_65.call(Blob),withNativeFile="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===__toString_65.call(File);_$binary_65.deconstructPacket=function(e){var t=[],r=e.data,n=e;return n.data=function e(t,r){if(!t)return t;if(_$isBuffer_67(t)){var n={_placeholder:!0,num:r.length};return r.push(t),n}if(_$isarray_42(t)){for(var o=new Array(t.length),i=0;i<t.length;i++)o[i]=e(t[i],r);return o}if("object"==typeof t&&!(t instanceof Date)){o={};for(var s in t)o[s]=e(t[s],r);return o}return t}(r,t),n.attachments=t.length,{packet:n,buffers:t}},_$binary_65.reconstructPacket=function(e,t){return e.data=function e(t,r){if(!t)return t;if(t&&t._placeholder)return r[t.num];if(_$isarray_42(t))for(var n=0;n<t.length;n++)t[n]=e(t[n],r);else if("object"==typeof t)for(var o in t)t[o]=e(t[o],r);return t}(e.data,t),e.attachments=void 0,e},_$binary_65.removeBlobs=function(e,t){var r=0,n=e;!function e(o,i,s){if(!o)return o;if(withNativeBlob&&o instanceof Blob||withNativeFile&&o instanceof File){r++;var a=new FileReader;a.onload=function(){s?s[i]=this.result:n=this.result,--r||t(n)},a.readAsArrayBuffer(o)}else if(_$isarray_42(o))for(var l=0;l<o.length;l++)e(o[l],l,o);else if("object"==typeof o&&!_$isBuffer_67(o))for(var u in o)e(o[u],u,o)}(n),r||t(n)};var __s_70=1e3,__m_70=60*__s_70,__h_70=60*__m_70,__d_70=24*__h_70,__y_70=365.25*__d_70;function __plural_70(e,t,r){if(!(e<t))return e<1.5*t?Math.floor(e/t)+" "+r:Math.ceil(e/t)+" "+r+"s"}var _$ms_70=function(e,t){t=t||{};var r,n=typeof e;if("string"===n&&e.length>0)return function(e){if(!((e=String(e)).length>100)){var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return r*__y_70;case"days":case"day":case"d":return r*__d_70;case"hours":case"hour":case"hrs":case"hr":case"h":return r*__h_70;case"minutes":case"minute":case"mins":case"min":case"m":return r*__m_70;case"seconds":case"second":case"secs":case"sec":case"s":return r*__s_70;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}(e);if("number"===n&&!1===isNaN(e))return t.long?__plural_70(r=e,__d_70,"day")||__plural_70(r,__h_70,"hour")||__plural_70(r,__m_70,"minute")||__plural_70(r,__s_70,"second")||r+" ms":function(e){return e>=__d_70?Math.round(e/__d_70)+"d":e>=__h_70?Math.round(e/__h_70)+"h":e>=__m_70?Math.round(e/__m_70)+"m":e>=__s_70?Math.round(e/__s_70)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))},_$debug_69={};function __createDebug_69(e){var t;function r(){if(r.enabled){var e=r,n=+new Date,o=n-(t||n);e.diff=o,e.prev=t,e.curr=n,t=n;for(var i=new Array(arguments.length),s=0;s<i.length;s++)i[s]=arguments[s];i[0]=_$debug_69.coerce(i[0]),"string"!=typeof i[0]&&i.unshift("%O");var a=0;i[0]=i[0].replace(/%([a-zA-Z%])/g,function(t,r){if("%%"===t)return t;a++;var n=_$debug_69.formatters[r];if("function"==typeof n){var o=i[a];t=n.call(e,o),i.splice(a,1),a--}return t}),_$debug_69.formatArgs.call(e,i),(r.log||_$debug_69.log||console.log.bind(console)).apply(e,i)}}return r.namespace=e,r.enabled=_$debug_69.enabled(e),r.useColors=_$debug_69.useColors(),r.color=function(e){var t,r=0;for(t in e)r=(r<<5)-r+e.charCodeAt(t),r|=0;return _$debug_69.colors[Math.abs(r)%_$debug_69.colors.length]}(e),r.destroy=__destroy_69,"function"==typeof _$debug_69.init&&_$debug_69.init(r),_$debug_69.instances.push(r),r}function __destroy_69(){var e=_$debug_69.instances.indexOf(this);return-1!==e&&(_$debug_69.instances.splice(e,1),!0)}_$debug_69=_$debug_69=__createDebug_69.debug=__createDebug_69.default=__createDebug_69,_$debug_69.coerce=function(e){return e instanceof Error?e.stack||e.message:e},_$debug_69.disable=function(){_$debug_69.enable("")},_$debug_69.enable=function(e){var t;_$debug_69.save(e),_$debug_69.names=[],_$debug_69.skips=[];var r=("string"==typeof e?e:"").split(/[\s,]+/),n=r.length;for(t=0;t<n;t++)r[t]&&("-"===(e=r[t].replace(/\*/g,".*?"))[0]?_$debug_69.skips.push(new RegExp("^"+e.substr(1)+"$")):_$debug_69.names.push(new RegExp("^"+e+"$")));for(t=0;t<_$debug_69.instances.length;t++){var o=_$debug_69.instances[t];o.enabled=_$debug_69.enabled(o.namespace)}},_$debug_69.enabled=function(e){if("*"===e[e.length-1])return!0;var t,r;for(t=0,r=_$debug_69.skips.length;t<r;t++)if(_$debug_69.skips[t].test(e))return!1;for(t=0,r=_$debug_69.names.length;t<r;t++)if(_$debug_69.names[t].test(e))return!0;return!1},_$debug_69.humanize=_$ms_70,_$debug_69.instances=[],_$debug_69.names=[],_$debug_69.skips=[],_$debug_69.formatters={};var _$browser_68={};(function(e){function t(){var t;try{t=_$browser_68.storage.debug}catch(e){}return!t&&void 0!==e&&"env"in e&&(t=e.env.DEBUG),t}(_$browser_68=_$browser_68=_$debug_69).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},_$browser_68.formatArgs=function(e){var t=this.useColors;if(e[0]=(t?"%c":"")+this.namespace+(t?" %c":" ")+e[0]+(t?"%c ":" ")+"+"+_$browser_68.humanize(this.diff),t){var r="color: "+this.color;e.splice(1,0,r,"color: inherit");var n=0,o=0;e[0].replace(/%[a-zA-Z%]/g,function(e){"%%"!==e&&(n++,"%c"===e&&(o=n))}),e.splice(o,0,r)}},_$browser_68.save=function(e){try{null==e?_$browser_68.storage.removeItem("debug"):_$browser_68.storage.debug=e}catch(e){}},_$browser_68.load=t,_$browser_68.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},_$browser_68.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),_$browser_68.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],_$browser_68.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},_$browser_68.enable(t())}).call(this,_$browser_52);var _$socketIoParser_66={},__debug_66=_$browser_68("socket.io-parser");function Encoder(){}_$socketIoParser_66.protocol=4,_$socketIoParser_66.types=["CONNECT","DISCONNECT","EVENT","ACK","ERROR","BINARY_EVENT","BINARY_ACK"],_$socketIoParser_66.CONNECT=0,_$socketIoParser_66.DISCONNECT=1,_$socketIoParser_66.EVENT=2,_$socketIoParser_66.ACK=3,_$socketIoParser_66.ERROR=4,_$socketIoParser_66.BINARY_EVENT=5,_$socketIoParser_66.BINARY_ACK=6,_$socketIoParser_66.Encoder=Encoder,_$socketIoParser_66.Decoder=Decoder;var ERROR_PACKET=_$socketIoParser_66.ERROR+'"encode error"';function encodeAsString(e){var t=""+e.type;if(_$socketIoParser_66.BINARY_EVENT!==e.type&&_$socketIoParser_66.BINARY_ACK!==e.type||(t+=e.attachments+"-"),e.nsp&&"/"!==e.nsp&&(t+=e.nsp+","),null!=e.id&&(t+=e.id),null!=e.data){var r=function(e){try{return JSON.stringify(e)}catch(e){return!1}}(e.data);if(!1===r)return ERROR_PACKET;t+=r}return __debug_66("encoded %j as %s",e,t),t}function Decoder(){this.reconstructor=null}function BinaryReconstructor(e){this.reconPack=e,this.buffers=[]}function error(e){return{type:_$socketIoParser_66.ERROR,data:"parser error: "+e}}Encoder.prototype.encode=function(e,t){__debug_66("encoding packet %j",e),_$socketIoParser_66.BINARY_EVENT===e.type||_$socketIoParser_66.BINARY_ACK===e.type?function(e,t){_$binary_65.removeBlobs(e,function(e){var r=_$binary_65.deconstructPacket(e),n=encodeAsString(r.packet),o=r.buffers;o.unshift(n),t(o)})}(e,t):t([encodeAsString(e)])},_$componentEmitter_11(Decoder.prototype),Decoder.prototype.add=function(e){var t;if("string"==typeof e)t=function(e){var t=0,r={type:Number(e.charAt(0))};if(null==_$socketIoParser_66.types[r.type])return error("unknown packet type "+r.type);if(_$socketIoParser_66.BINARY_EVENT===r.type||_$socketIoParser_66.BINARY_ACK===r.type){for(var n="";"-"!==e.charAt(++t)&&(n+=e.charAt(t),t!=e.length););if(n!=Number(n)||"-"!==e.charAt(t))throw new Error("Illegal attachments");r.attachments=Number(n)}if("/"===e.charAt(t+1))for(r.nsp="";++t;){if(","===(i=e.charAt(t)))break;if(r.nsp+=i,t===e.length)break}else r.nsp="/";var o=e.charAt(t+1);if(""!==o&&Number(o)==o){for(r.id="";++t;){var i;if(null==(i=e.charAt(t))||Number(i)!=i){--t;break}if(r.id+=e.charAt(t),t===e.length)break}r.id=Number(r.id)}if(e.charAt(++t)){var s=function(e){try{return JSON.parse(e)}catch(e){return!1}}(e.substr(t));if(!(!1!==s&&(r.type===_$socketIoParser_66.ERROR||_$isarray_42(s))))return error("invalid payload");r.data=s}return __debug_66("decoded %s as %j",e,r),r}(e),_$socketIoParser_66.BINARY_EVENT===t.type||_$socketIoParser_66.BINARY_ACK===t.type?(this.reconstructor=new BinaryReconstructor(t),0===this.reconstructor.reconPack.attachments&&this.emit("decoded",t)):this.emit("decoded",t);else{if(!_$isBuffer_67(e)&&!e.base64)throw new Error("Unknown type: "+e);if(!this.reconstructor)throw new Error("got binary data when not reconstructing a packet");(t=this.reconstructor.takeBinaryData(e))&&(this.reconstructor=null,this.emit("decoded",t))}},Decoder.prototype.destroy=function(){this.reconstructor&&this.reconstructor.finishedReconstruction()},BinaryReconstructor.prototype.takeBinaryData=function(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){var t=_$binary_65.reconstructPacket(this.reconPack,this.buffers);return this.finishedReconstruction(),t}return null},BinaryReconstructor.prototype.finishedReconstruction=function(){this.reconPack=null,this.buffers=[]};var _$toArray_71=function(e,t){for(var r=[],n=(t=t||0)||0;n<e.length;n++)r[n-t]=e[n];return r},_$socket_60={},__debug_60=_$browser_62("socket.io-client:socket");_$socket_60=_$socket_60=__Socket_60;var events={connect:1,connect_error:1,connect_timeout:1,connecting:1,disconnect:1,error:1,reconnect:1,reconnect_attempt:1,reconnect_failed:1,reconnect_error:1,reconnecting:1,ping:1,pong:1},emit=_$componentEmitter_11.prototype.emit;function __Socket_60(e,t,r){this.io=e,this.nsp=t,this.json=this,this.ids=0,this.acks={},this.receiveBuffer=[],this.sendBuffer=[],this.connected=!1,this.disconnected=!0,this.flags={},r&&r.query&&(this.query=r.query),this.io.autoConnect&&this.open()}_$componentEmitter_11(__Socket_60.prototype),__Socket_60.prototype.subEvents=function(){if(!this.subs){var e=this.io;this.subs=[_$on_59(e,"open",_$componentBind_10(this,"onopen")),_$on_59(e,"packet",_$componentBind_10(this,"onpacket")),_$on_59(e,"close",_$componentBind_10(this,"onclose"))]}},__Socket_60.prototype.open=__Socket_60.prototype.connect=function(){return this.connected?this:(this.subEvents(),this.io.open(),"open"===this.io.readyState&&this.onopen(),this.emit("connecting"),this)},__Socket_60.prototype.send=function(){var e=_$toArray_71(arguments);return e.unshift("message"),this.emit.apply(this,e),this},__Socket_60.prototype.emit=function(e){if(events.hasOwnProperty(e))return emit.apply(this,arguments),this;var t=_$toArray_71(arguments),r={type:(void 0!==this.flags.binary?this.flags.binary:_$hasBinary_37(t))?_$socketIoParser_66.BINARY_EVENT:_$socketIoParser_66.EVENT,data:t,options:{}};return r.options.compress=!this.flags||!1!==this.flags.compress,"function"==typeof t[t.length-1]&&(__debug_60("emitting packet with ack id %d",this.ids),this.acks[this.ids]=t.pop(),r.id=this.ids++),this.connected?this.packet(r):this.sendBuffer.push(r),this.flags={},this},__Socket_60.prototype.packet=function(e){e.nsp=this.nsp,this.io.packet(e)},__Socket_60.prototype.onopen=function(){if(__debug_60("transport is open - connecting"),"/"!==this.nsp)if(this.query){var e="object"==typeof this.query?_$parseqs_48.encode(this.query):this.query;__debug_60("sending connect packet with query %s",e),this.packet({type:_$socketIoParser_66.CONNECT,query:e})}else this.packet({type:_$socketIoParser_66.CONNECT})},__Socket_60.prototype.onclose=function(e){__debug_60("close (%s)",e),this.connected=!1,this.disconnected=!0,delete this.id,this.emit("disconnect",e)},__Socket_60.prototype.onpacket=function(e){var t=e.nsp===this.nsp,r=e.type===_$socketIoParser_66.ERROR&&"/"===e.nsp;if(t||r)switch(e.type){case _$socketIoParser_66.CONNECT:this.onconnect();break;case _$socketIoParser_66.EVENT:case _$socketIoParser_66.BINARY_EVENT:this.onevent(e);break;case _$socketIoParser_66.ACK:case _$socketIoParser_66.BINARY_ACK:this.onack(e);break;case _$socketIoParser_66.DISCONNECT:this.ondisconnect();break;case _$socketIoParser_66.ERROR:this.emit("error",e.data)}},__Socket_60.prototype.onevent=function(e){var t=e.data||[];__debug_60("emitting event %j",t),null!=e.id&&(__debug_60("attaching ack callback to event"),t.push(this.ack(e.id))),this.connected?emit.apply(this,t):this.receiveBuffer.push(t)},__Socket_60.prototype.ack=function(e){var t=this,r=!1;return function(){if(!r){r=!0;var n=_$toArray_71(arguments);__debug_60("sending ack %j",n),t.packet({type:_$hasBinary_37(n)?_$socketIoParser_66.BINARY_ACK:_$socketIoParser_66.ACK,id:e,data:n})}}},__Socket_60.prototype.onack=function(e){var t=this.acks[e.id];"function"==typeof t?(__debug_60("calling ack %s with %j",e.id,e.data),t.apply(this,e.data),delete this.acks[e.id]):__debug_60("bad ack %s",e.id)},__Socket_60.prototype.onconnect=function(){this.connected=!0,this.disconnected=!1,this.emit("connect"),this.emitBuffered()},__Socket_60.prototype.emitBuffered=function(){var e;for(e=0;e<this.receiveBuffer.length;e++)emit.apply(this,this.receiveBuffer[e]);for(this.receiveBuffer=[],e=0;e<this.sendBuffer.length;e++)this.packet(this.sendBuffer[e]);this.sendBuffer=[]},__Socket_60.prototype.ondisconnect=function(){__debug_60("server disconnect (%s)",this.nsp),this.destroy(),this.onclose("io server disconnect")},__Socket_60.prototype.destroy=function(){if(this.subs){for(var e=0;e<this.subs.length;e++)this.subs[e].destroy();this.subs=null}this.io.destroy(this)},__Socket_60.prototype.close=__Socket_60.prototype.disconnect=function(){return this.connected&&(__debug_60("performing disconnect (%s)",this.nsp),this.packet({type:_$socketIoParser_66.DISCONNECT})),this.destroy(),this.connected&&this.onclose("io client disconnect"),this},__Socket_60.prototype.compress=function(e){return this.flags.compress=e,this},__Socket_60.prototype.binary=function(e){return this.flags.binary=e,this};var _$manager_58={},__debug_58=_$browser_62("socket.io-client:manager"),has=Object.prototype.hasOwnProperty;function Manager(e,t){if(!(this instanceof Manager))return new Manager(e,t);e&&"object"==typeof e&&(t=e,e=void 0),(t=t||{}).path=t.path||"/socket.io",this.nsps={},this.subs=[],this.opts=t,this.reconnection(!1!==t.reconnection),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor(t.randomizationFactor||.5),this.backoff=new _$backo2_3({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==t.timeout?2e4:t.timeout),this.readyState="closed",this.uri=e,this.connecting=[],this.lastPing=null,this.encoding=!1,this.packetBuffer=[];var r=t.parser||_$socketIoParser_66;this.encoder=new r.Encoder,this.decoder=new r.Decoder,this.autoConnect=!1!==t.autoConnect,this.autoConnect&&this.open()}_$manager_58=Manager,Manager.prototype.emitAll=function(){for(var e in this.emit.apply(this,arguments),this.nsps)has.call(this.nsps,e)&&this.nsps[e].emit.apply(this.nsps[e],arguments)},Manager.prototype.updateSocketIds=function(){for(var e in this.nsps)has.call(this.nsps,e)&&(this.nsps[e].id=this.generateId(e))},Manager.prototype.generateId=function(e){return("/"===e?"":e+"#")+this.engine.id},_$componentEmitter_11(Manager.prototype),Manager.prototype.reconnection=function(e){return arguments.length?(this._reconnection=!!e,this):this._reconnection},Manager.prototype.reconnectionAttempts=function(e){return arguments.length?(this._reconnectionAttempts=e,this):this._reconnectionAttempts},Manager.prototype.reconnectionDelay=function(e){return arguments.length?(this._reconnectionDelay=e,this.backoff&&this.backoff.setMin(e),this):this._reconnectionDelay},Manager.prototype.randomizationFactor=function(e){return arguments.length?(this._randomizationFactor=e,this.backoff&&this.backoff.setJitter(e),this):this._randomizationFactor},Manager.prototype.reconnectionDelayMax=function(e){return arguments.length?(this._reconnectionDelayMax=e,this.backoff&&this.backoff.setMax(e),this):this._reconnectionDelayMax},Manager.prototype.timeout=function(e){return arguments.length?(this._timeout=e,this):this._timeout},Manager.prototype.maybeReconnectOnOpen=function(){!this.reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()},Manager.prototype.open=Manager.prototype.connect=function(e,t){if(__debug_58("readyState %s",this.readyState),~this.readyState.indexOf("open"))return this;__debug_58("opening %s",this.uri),this.engine=_$lib_17(this.uri,this.opts);var r=this.engine,n=this;this.readyState="opening",this.skipReconnect=!1;var o=_$on_59(r,"open",function(){n.onopen(),e&&e()}),i=_$on_59(r,"error",function(t){if(__debug_58("connect_error"),n.cleanup(),n.readyState="closed",n.emitAll("connect_error",t),e){var r=new Error("Connection error");r.data=t,e(r)}else n.maybeReconnectOnOpen()});if(!1!==this._timeout){var s=this._timeout;__debug_58("connect attempt will timeout after %d",s);var a=setTimeout(function(){__debug_58("connect attempt timed out after %d",s),o.destroy(),r.close(),r.emit("error","timeout"),n.emitAll("connect_timeout",s)},s);this.subs.push({destroy:function(){clearTimeout(a)}})}return this.subs.push(o),this.subs.push(i),this},Manager.prototype.onopen=function(){__debug_58("open"),this.cleanup(),this.readyState="open",this.emit("open");var e=this.engine;this.subs.push(_$on_59(e,"data",_$componentBind_10(this,"ondata"))),this.subs.push(_$on_59(e,"ping",_$componentBind_10(this,"onping"))),this.subs.push(_$on_59(e,"pong",_$componentBind_10(this,"onpong"))),this.subs.push(_$on_59(e,"error",_$componentBind_10(this,"onerror"))),this.subs.push(_$on_59(e,"close",_$componentBind_10(this,"onclose"))),this.subs.push(_$on_59(this.decoder,"decoded",_$componentBind_10(this,"ondecoded")))},Manager.prototype.onping=function(){this.lastPing=new Date,this.emitAll("ping")},Manager.prototype.onpong=function(){this.emitAll("pong",new Date-this.lastPing)},Manager.prototype.ondata=function(e){this.decoder.add(e)},Manager.prototype.ondecoded=function(e){this.emit("packet",e)},Manager.prototype.onerror=function(e){__debug_58("error",e),this.emitAll("error",e)},Manager.prototype.socket=function(e,t){var r=this.nsps[e];if(!r){r=new _$socket_60(this,e,t),this.nsps[e]=r;var n=this;r.on("connecting",o),r.on("connect",function(){r.id=n.generateId(e)}),this.autoConnect&&o()}function o(){~_$indexof_40(n.connecting,r)||n.connecting.push(r)}return r},Manager.prototype.destroy=function(e){var t=_$indexof_40(this.connecting,e);~t&&this.connecting.splice(t,1),this.connecting.length||this.close()},Manager.prototype.packet=function(e){__debug_58("writing packet %j",e);var t=this;e.query&&0===e.type&&(e.nsp+="?"+e.query),t.encoding?t.packetBuffer.push(e):(t.encoding=!0,this.encoder.encode(e,function(r){for(var n=0;n<r.length;n++)t.engine.write(r[n],e.options);t.encoding=!1,t.processPacketQueue()}))},Manager.prototype.processPacketQueue=function(){if(this.packetBuffer.length>0&&!this.encoding){var e=this.packetBuffer.shift();this.packet(e)}},Manager.prototype.cleanup=function(){__debug_58("cleanup");for(var e=this.subs.length,t=0;t<e;t++)this.subs.shift().destroy();this.packetBuffer=[],this.encoding=!1,this.lastPing=null,this.decoder.destroy()},Manager.prototype.close=Manager.prototype.disconnect=function(){__debug_58("disconnect"),this.skipReconnect=!0,this.reconnecting=!1,"opening"===this.readyState&&this.cleanup(),this.backoff.reset(),this.readyState="closed",this.engine&&this.engine.close()},Manager.prototype.onclose=function(e){__debug_58("onclose"),this.cleanup(),this.backoff.reset(),this.readyState="closed",this.emit("close",e),this._reconnection&&!this.skipReconnect&&this.reconnect()},Manager.prototype.reconnect=function(){if(this.reconnecting||this.skipReconnect)return this;var e=this;if(this.backoff.attempts>=this._reconnectionAttempts)__debug_58("reconnect failed"),this.backoff.reset(),this.emitAll("reconnect_failed"),this.reconnecting=!1;else{var t=this.backoff.duration();__debug_58("will wait %dms before reconnect attempt",t),this.reconnecting=!0;var r=setTimeout(function(){e.skipReconnect||(__debug_58("attempting reconnect"),e.emitAll("reconnect_attempt",e.backoff.attempts),e.emitAll("reconnecting",e.backoff.attempts),e.skipReconnect||e.open(function(t){t?(__debug_58("reconnect attempt error"),e.reconnecting=!1,e.reconnect(),e.emitAll("reconnect_error",t.data)):(__debug_58("reconnect success"),e.onreconnect())}))},t);this.subs.push({destroy:function(){clearTimeout(r)}})}},Manager.prototype.onreconnect=function(){var e=this.backoff.attempts;this.reconnecting=!1,this.backoff.reset(),this.updateSocketIds(),this.emitAll("reconnect",e)};var __debug_61=_$browser_62("socket.io-client:url"),_$url_61=function(e,t){var r=e;t=t||"undefined"!=typeof location&&location,null==e&&(e=t.protocol+"//"+t.host),"string"==typeof e&&("/"===e.charAt(0)&&(e="/"===e.charAt(1)?t.protocol+e:t.host+e),/^(https?|wss?):\/\//.test(e)||(__debug_61("protocol-less url %s",e),e=void 0!==t?t.protocol+"//"+e:"https://"+e),__debug_61("parse %s",e),r=_$parseuri_49(e)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";var n=-1!==r.host.indexOf(":")?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+n+":"+r.port,r.href=r.protocol+"://"+n+(t&&t.port===r.port?"":":"+r.port),r},_$lib_57={},__debug_57=_$browser_62("socket.io-client");_$lib_57=_$lib_57=__lookup_57;var cache=_$lib_57.managers={};function __lookup_57(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var r,n=_$url_61(e),o=n.source,i=n.id,s=n.path,a=cache[i]&&s in cache[i].nsps;return t.forceNew||t["force new connection"]||!1===t.multiplex||a?(__debug_57("ignoring socket cache for %s",o),r=_$manager_58(o,t)):(cache[i]||(__debug_57("new io instance for %s",o),cache[i]=_$manager_58(o,t)),r=cache[i]),n.query&&!t.query&&(t.query=n.query),r.socket(n.path,t)}_$lib_57.protocol=_$socketIoParser_66.protocol,_$lib_57.connect=__lookup_57,_$lib_57.Manager=_$manager_58,_$lib_57.Socket=_$socket_60;var _$parseUrl_183=function(e){var t=/^\w+:\/\//.exec(e),r=0;t&&(r=t[0].length+1);var n=e.indexOf("/",r);return-1===n?{origin:e,pathname:"/"}:{origin:e.slice(0,n),pathname:e.slice(n)}};function ___extends_178(){return(___extends_178=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var socketIo,io=function(){return socketIo||(socketIo=_$lib_57),socketIo},statusOrder=["ASSEMBLY_UPLOADING","ASSEMBLY_EXECUTING","ASSEMBLY_COMPLETED"];function isStatus(e,t){return statusOrder.indexOf(e)>=statusOrder.indexOf(t)}var TransloaditAssembly=function(e){var t,r;function n(t){var r;return(r=e.call(this)||this).status=t,r.socket=null,r.pollInterval=null,r.closed=!1,r}r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var o=n.prototype;return o.connect=function(){this._connectSocket(),this._beginPolling()},o._onFinished=function(){this.emit("finished"),this.close()},o._connectSocket=function(){var e=this,t=_$parseUrl_183(this.status.websocket_url),r=io().connect(t.origin,{transports:["websocket"],path:t.pathname});r.on("connect",function(){r.emit("assembly_connect",{id:e.status.assembly_id}),e.emit("connect")}),r.on("error",function(){r.disconnect(),e.socket=null}),r.on("assembly_finished",function(){e._onFinished()}),r.on("assembly_upload_finished",function(t){e.emit("upload",t),e.status.uploads.push(t)}),r.on("assembly_uploading_finished",function(){e.emit("executing")}),r.on("assembly_upload_meta_data_extracted",function(){e.emit("metadata"),e._fetchStatus({diff:!1})}),r.on("assembly_result_finished",function(t,r){e.emit("result",t,r),e.status.results[t]||(e.status.results[t]=[]),e.status.results[t].push(r)}),r.on("assembly_error",function(t){e._onError(t),e._fetchStatus({diff:!1})}),this.socket=r},o._onError=function(e){this.emit("error",___extends_178(new Error(e.message),e))},o._beginPolling=function(){var e=this;this.pollInterval=setInterval(function(){e.socket&&e.socket.connected||e._fetchStatus()},2e3)},o._fetchStatus=function(e){var t=this,r=(void 0===e?{}:e).diff,n=void 0===r||r;return fetch(this.status.assembly_ssl_url).then(function(e){return e.json()}).then(function(e){t.closed||(t.emit("status",e),n?t.updateStatus(e):t.status=e)})},o.update=function(){return this._fetchStatus({diff:!0})},o.updateStatus=function(e){this._diffStatus(this.status,e),this.status=e},o._diffStatus=function(e,t){var r=this,n=e.ok,o=t.ok;if(t.error&&!e.error)return this._onError(t);var i=isStatus(o,"ASSEMBLY_EXECUTING")&&!isStatus(n,"ASSEMBLY_EXECUTING");i&&this.emit("executing"),Object.keys(t.uploads).filter(function(t){return!e.uploads.hasOwnProperty(t)}).map(function(e){return t.uploads[e]}).forEach(function(e){r.emit("upload",e)}),i&&this.emit("metadata"),Object.keys(t.results).forEach(function(n){var o=t.results[n],i=e.results[n];o.filter(function(e){return!i||!i.some(function(t){return t.id===e.id})}).forEach(function(e){r.emit("result",n,e)})}),isStatus(o,"ASSEMBLY_COMPLETED")&&!isStatus(n,"ASSEMBLY_COMPLETED")&&this.emit("finished")},o.close=function(){this.closed=!0,this.socket&&(this.socket.disconnect(),this.socket=null),clearInterval(this.pollInterval)},n}(_$componentEmitter_11),_$TransloaditAssembly_178=TransloaditAssembly,_$AssemblyOptions_179={};function validateParams(e){if(!e)throw new Error("Transloadit: The `params` option is required.");if("string"==typeof e)try{e=JSON.parse(e)}catch(e){throw e.message="Transloadit: The `params` option is a malformed JSON string: "+e.message,e}if(!e.auth||!e.auth.key)throw new Error("Transloadit: The `params.auth.key` option is required. You can find your Transloadit API key at https://transloadit.com/account/api-settings.")}var AssemblyOptions=function(){function e(e,t){this.files=e,this.opts=t}var t=e.prototype;return t._normalizeAssemblyOptions=function(e,t){if(Array.isArray(t.fields)){var r=t.fields;t.fields={},r.forEach(function(r){t.fields[r]=e.meta[r]})}return t.fields||(t.fields={}),t},t._getAssemblyOptions=function(e){var t=this,r=this.opts;return Promise.resolve().then(function(){return r.getAssemblyOptions(e,r)}).then(function(r){return t._normalizeAssemblyOptions(e,r)}).then(function(t){return validateParams(t.params),{fileIDs:[e.id],options:t}})},t._dedupe=function(e){var t=Object.create(null);return e.forEach(function(e){var r,n=e.fileIDs,o=e.options,i=JSON.stringify(o);t[i]?(r=t[i].fileIDs).push.apply(r,n):t[i]={options:o,fileIDs:[].concat(n)}}),Object.keys(t).map(function(e){return t[e]})},t.build=function(){var e=this,t=this.opts;return this.files.length>0?Promise.all(this.files.map(function(t){return e._getAssemblyOptions(t)})).then(function(t){return e._dedupe(t)}):t.alwaysRunAssembly?Promise.resolve(t.getAssemblyOptions(null,t)).then(function(t){return validateParams(t.params),[{fileIDs:e.files.map(function(e){return e.id}),options:t}]}):Promise.resolve([])},e}();function ___assertThisInitialized_180(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}_$AssemblyOptions_179=AssemblyOptions,_$AssemblyOptions_179.validateParams=validateParams;var TransloaditAssemblyWatcher=function(e){var t,r;function n(t,r){var n;return(n=e.call(this)||this)._uppy=t,n._assemblyIDs=r,n._remaining=r.length,n.promise=new Promise(function(e,t){n._resolve=e,n._reject=t}),n._onAssemblyComplete=n._onAssemblyComplete.bind(___assertThisInitialized_180(n)),n._onAssemblyCancel=n._onAssemblyCancel.bind(___assertThisInitialized_180(n)),n._onAssemblyError=n._onAssemblyError.bind(___assertThisInitialized_180(n)),n._onImportError=n._onImportError.bind(___assertThisInitialized_180(n)),n._addListeners(),n}r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var o=n.prototype;return o._watching=function(e){return-1!==this._assemblyIDs.indexOf(e)},o._onAssemblyComplete=function(e){this._watching(e.assembly_id)&&(this._uppy.log("[Transloadit] AssemblyWatcher: Got Assembly finish "+e.assembly_id),this.emit("assembly-complete",e.assembly_id),this._checkAllComplete())},o._onAssemblyCancel=function(e){this._watching(e.assembly_id)&&this._checkAllComplete()},o._onAssemblyError=function(e,t){this._watching(e.assembly_id)&&(this._uppy.log("[Transloadit] AssemblyWatcher: Got Assembly error "+e.assembly_id),this._uppy.log(t),this.emit("assembly-error",e.assembly_id,t),this._checkAllComplete())},o._onImportError=function(e,t,r){this._watching(e.assembly_id)&&this._onAssemblyError(e,r)},o._checkAllComplete=function(){this._remaining-=1,0===this._remaining&&(this._removeListeners(),this._resolve())},o._removeListeners=function(){this._uppy.off("transloadit:complete",this._onAssemblyComplete),this._uppy.off("transloadit:assembly-cancel",this._onAssemblyCancel),this._uppy.off("transloadit:assembly-error",this._onAssemblyError),this._uppy.off("transloadit:import-error",this._onImportError)},o._addListeners=function(){this._uppy.on("transloadit:complete",this._onAssemblyComplete),this._uppy.on("transloadit:assembly-cancel",this._onAssemblyCancel),this._uppy.on("transloadit:assembly-error",this._onAssemblyError),this._uppy.on("transloadit:import-error",this._onImportError)},n}(_$componentEmitter_11),_$TransloaditAssemblyWatcher_180=TransloaditAssemblyWatcher,_$Client_181=function(){function e(e){void 0===e&&(e={}),this.opts=e,this._reportError=this._reportError.bind(this)}var t=e.prototype;return t.createAssembly=function(e){var t=this,r=(e.templateId,e.params),n=e.fields,o=e.signature,i=e.expectedFiles,s=new FormData;s.append("params","string"==typeof r?r:JSON.stringify(r)),o&&s.append("signature",o),Object.keys(n).forEach(function(e){s.append(e,n[e])}),s.append("num_expected_upload_files",i);var a=this.opts.service+"/assemblies";return fetch(a,{method:"post",body:s}).then(function(e){return e.json()}).then(function(e){if(e.error){var t=new Error(e.error);throw t.message=e.error,t.details=e.reason,t}return e}).catch(function(e){return t._reportError(e,{url:a,type:"API_ERROR"})})},t.reserveFile=function(e,t){var r=this,n=encodeURIComponent(t.size),o=e.assembly_ssl_url+"/reserve_file?size="+n;return fetch(o,{method:"post"}).then(function(e){return e.json()}).catch(function(n){return r._reportError(n,{assembly:e,file:t,url:o,type:"API_ERROR"})})},t.addFile=function(e,t){var r=this;if(!t.uploadURL)return Promise.reject(new Error("File does not have an `uploadURL`."));var n=encodeURIComponent(t.size),o=encodeURIComponent(t.uploadURL),i="size="+n+"&filename="+encodeURIComponent(t.name)+"&fieldname=file&s3Url="+o,s=e.assembly_ssl_url+"/add_file?"+i;return fetch(s,{method:"post"}).then(function(e){return e.json()}).catch(function(n){return r._reportError(n,{assembly:e,file:t,url:s,type:"API_ERROR"})})},t.cancelAssembly=function(e){var t=this,r=e.assembly_ssl_url;return fetch(r,{method:"delete"}).then(function(e){return e.json()}).catch(function(e){return t._reportError(e,{url:r,type:"API_ERROR"})})},t.getAssemblyStatus=function(e){var t=this;return fetch(e).then(function(e){return e.json()}).catch(function(r){return t._reportError(r,{url:e,type:"STATUS_ERROR"})})},t.submitError=function(e,t){var r=t.endpoint,n=t.instance,o=t.assembly,i=e.details?e.message+" ("+e.details+")":e.message;return fetch("https://status.transloadit.com/client_error",{method:"post",body:JSON.stringify({endpoint:r,instance:n,assembly_id:o,agent:"undefined"!=typeof navigator?navigator.userAgent:"",error:i})}).then(function(e){return e.json()})},t._reportError=function(e,t){if(!1===this.opts.errorReporting)throw e;var r={type:t.type};throw t.assembly&&(r.assembly=t.assembly.assembly_id,r.instance=t.assembly.instance),t.url&&(r.endpoint=t.url),this.submitError(e,r).catch(function(e){}),e},e}(),_$package_184={version:"1.2.0"},_$storage_77={};Object.defineProperty(_$storage_77,"__esModule",{value:!0});var _createClass=function(){function e(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)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();_$storage_77.getStorage=function(){return new LocalStorage};var hasStorage=!1;try{hasStorage="localStorage"in window;var key="tusSupport";localStorage.setItem(key,localStorage.getItem(key))}catch(e){if(e.code!==e.SECURITY_ERR&&e.code!==e.QUOTA_EXCEEDED_ERR)throw e;hasStorage=!1}_$storage_77.canStoreURLs=hasStorage;var LocalStorage=function(){function e(){!function(t,r){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this)}return _createClass(e,[{key:"setItem",value:function(e,t,r){if(!hasStorage)return r();r(null,localStorage.setItem(e,t))}},{key:"getItem",value:function(e,t){if(!hasStorage)return t();t(null,localStorage.getItem(e))}},{key:"removeItem",value:function(e,t){if(!hasStorage)return t();t(null,localStorage.removeItem(e))}}]),e}(),hasOwn=Object.prototype.hasOwnProperty,toStr=Object.prototype.toString,__isArray_35=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===toStr.call(e)},isPlainObject=function(e){if(!e||"[object Object]"!==toStr.call(e))return!1;var t,r=hasOwn.call(e,"constructor"),n=e.constructor&&e.constructor.prototype&&hasOwn.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!r&&!n)return!1;for(t in e);return void 0===t||hasOwn.call(e,t)},_$extend_35=function e(){var t,r,n,o,i,s,a=arguments[0],l=1,u=arguments.length,c=!1;for("boolean"==typeof a&&(c=a,a=arguments[1]||{},l=2),(null==a||"object"!=typeof a&&"function"!=typeof a)&&(a={});l<u;++l)if(null!=(t=arguments[l]))for(r in t)n=a[r],a!==(o=t[r])&&(c&&o&&(isPlainObject(o)||(i=__isArray_35(o)))?(i?(i=!1,s=n&&__isArray_35(n)?n:[]):s=n&&isPlainObject(n)?n:{},a[r]=e(c,s,o)):void 0!==o&&(a[r]=o));return a},_$querystringify_53={},undef,__has_53=Object.prototype.hasOwnProperty;function decode(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(e){return null}}_$querystringify_53.stringify=function(e,t){t=t||"";var r,n,o=[];for(n in"string"!=typeof t&&(t="?"),e)if(__has_53.call(e,n)){if((r=e[n])||null!==r&&r!==undef&&!isNaN(r)||(r=""),n=encodeURIComponent(n),r=encodeURIComponent(r),null===n||null===r)continue;o.push(n+"="+r)}return o.length?t+o.join("&"):""},_$querystringify_53.parse=function(e){for(var t,r=/([^=?&]+)=?([^&]*)/g,n={};t=r.exec(e);){var o=decode(t[1]),i=decode(t[2]);null===o||null===i||o in n||(n[o]=i)}return n};var _$requiresPort_54=function(e,t){if(t=t.split(":")[0],!(e=+e))return!1;switch(t){case"http":case"ws":return 80!==e;case"https":case"wss":return 443!==e;case"ftp":return 21!==e;case"gopher":return 70!==e;case"file":return!1}return 0!==e},_$urlParse_84={};(function(e){"use strict";var t=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,r=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\S\s]*)/i,n=new RegExp("^[\\x09\\x0A\\x0B\\x0C\\x0D\\x20\\xA0\\u1680\\u180E\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200A\\u202F\\u205F\\u3000\\u2028\\u2029\\uFEFF]+");function o(e){return(e||"").toString().replace(n,"")}var i=[["#","hash"],["?","query"],function(e){return e.replace("\\","/")},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d+)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],s={hash:1,query:1};function a(r){var n,o=("undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{}).location||{},i={},a=typeof(r=r||o);if("blob:"===r.protocol)i=new u(unescape(r.pathname),{});else if("string"===a)for(n in i=new u(r,{}),s)delete i[n];else if("object"===a){for(n in r)n in s||(i[n]=r[n]);void 0===i.slashes&&(i.slashes=t.test(r.href))}return i}function l(e){e=o(e);var t=r.exec(e);return{protocol:t[1]?t[1].toLowerCase():"",slashes:!!t[2],rest:t[3]}}function u(e,t,r){if(e=o(e),!(this instanceof u))return new u(e,t,r);var n,s,c,p,d,h,_=i.slice(),f=typeof t,g=this,m=0;for("object"!==f&&"string"!==f&&(r=t,t=null),r&&"function"!=typeof r&&(r=_$querystringify_53.parse),t=a(t),n=!(s=l(e||"")).protocol&&!s.slashes,g.slashes=s.slashes||n&&t.slashes,g.protocol=s.protocol||t.protocol||"",e=s.rest,s.slashes||(_[3]=[/(.*)/,"pathname"]);m<_.length;m++)"function"!=typeof(p=_[m])?(c=p[0],h=p[1],c!=c?g[h]=e:"string"==typeof c?~(d=e.indexOf(c))&&("number"==typeof p[2]?(g[h]=e.slice(0,d),e=e.slice(d+p[2])):(g[h]=e.slice(d),e=e.slice(0,d))):(d=c.exec(e))&&(g[h]=d[1],e=e.slice(0,d.index)),g[h]=g[h]||n&&p[3]&&t[h]||"",p[4]&&(g[h]=g[h].toLowerCase())):e=p(e);r&&(g.query=r(g.query)),n&&t.slashes&&"/"!==g.pathname.charAt(0)&&(""!==g.pathname||""!==t.pathname)&&(g.pathname=function(e,t){if(""===e)return t;for(var r=(t||"/").split("/").slice(0,-1).concat(e.split("/")),n=r.length,o=r[n-1],i=!1,s=0;n--;)"."===r[n]?r.splice(n,1):".."===r[n]?(r.splice(n,1),s++):s&&(0===n&&(i=!0),r.splice(n,1),s--);return i&&r.unshift(""),"."!==o&&".."!==o||r.push(""),r.join("/")}(g.pathname,t.pathname)),_$requiresPort_54(g.port,g.protocol)||(g.host=g.hostname,g.port=""),g.username=g.password="",g.auth&&(p=g.auth.split(":"),g.username=p[0]||"",g.password=p[1]||""),g.origin=g.protocol&&g.host&&"file:"!==g.protocol?g.protocol+"//"+g.host:"null",g.href=g.toString()}u.prototype={set:function(e,t,r){var n=this;switch(e){case"query":"string"==typeof t&&t.length&&(t=(r||_$querystringify_53.parse)(t)),n[e]=t;break;case"port":n[e]=t,_$requiresPort_54(t,n.protocol)?t&&(n.host=n.hostname+":"+t):(n.host=n.hostname,n[e]="");break;case"hostname":n[e]=t,n.port&&(t+=":"+n.port),n.host=t;break;case"host":n[e]=t,/:\d+$/.test(t)?(t=t.split(":"),n.port=t.pop(),n.hostname=t.join(":")):(n.hostname=t,n.port="");break;case"protocol":n.protocol=t.toLowerCase(),n.slashes=!r;break;case"pathname":case"hash":if(t){var o="pathname"===e?"/":"#";n[e]=t.charAt(0)!==o?o+t:t}else n[e]=t;break;default:n[e]=t}for(var s=0;s<i.length;s++){var a=i[s];a[4]&&(n[a[1]]=n[a[1]].toLowerCase())}return n.origin=n.protocol&&n.host&&"file:"!==n.protocol?n.protocol+"//"+n.host:"null",n.href=n.toString(),n},toString:function(e){e&&"function"==typeof e||(e=_$querystringify_53.stringify);var t,r=this,n=r.protocol;n&&":"!==n.charAt(n.length-1)&&(n+=":");var o=n+(r.slashes?"//":"");return r.username&&(o+=r.username,r.password&&(o+=":"+r.password),o+="@"),o+=r.host+r.pathname,(t="object"==typeof r.query?e(r.query):r.query)&&(o+="?"!==t.charAt(0)?"?"+t:t),r.hash&&(o+=r.hash),o}},u.extractProtocol=l,u.location=a,u.trimLeft=o,u.qs=_$querystringify_53,_$urlParse_84=u}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{});var _$request_75={};Object.defineProperty(_$request_75,"__esModule",{value:!0}),_$request_75.newRequest=function(){return new window.XMLHttpRequest},_$request_75.resolveUrl=function(e,t){return new _urlParse2.default(t,e).toString()};var obj,_urlParse2=(obj=_$urlParse_84)&&obj.__esModule?obj:{default:obj},_$isCordova_72={};Object.defineProperty(_$isCordova_72,"__esModule",{value:!0}),_$isCordova_72.default=function(){return"undefined"!=typeof window&&(void 0!==window.PhoneGap||void 0!==window.Cordova||void 0!==window.cordova)};var _$isReactNative_73={};Object.defineProperty(_$isReactNative_73,"__esModule",{value:!0});var isReactNative="undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase();_$isReactNative_73.default=isReactNative;var _$readAsByteArray_74={};Object.defineProperty(_$readAsByteArray_74,"__esModule",{value:!0}),_$readAsByteArray_74.default=function(e,t){var r=new FileReader;r.onload=function(){t(null,new Uint8Array(r.result))},r.onerror=function(e){t(e)},r.readAsArrayBuffer(e)};var _$uriToBlob_78={};Object.defineProperty(_$uriToBlob_78,"__esModule",{value:!0}),_$uriToBlob_78.default=function(e,t){var r=new XMLHttpRequest;r.responseType="blob",r.onload=function(){var e=r.response;t(null,e)},r.onerror=function(e){t(e)},r.open("GET",e),r.send()};var _$source_76={};Object.defineProperty(_$source_76,"__esModule",{value:!0});var ___createClass_76=function(){function e(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)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();_$source_76.getSource=function(e,t,r){if((_isReactNative2.default||window.__tus__forceReactNative)&&e&&void 0!==e.uri)(0,_uriToBlob2.default)(e.uri,function(e,t){if(e)return r(new Error("tus: cannot fetch `file.uri` as Blob, make sure the uri is correct and accessible. "+e));r(null,new FileSource(t))});else{if("function"!=typeof e.slice||void 0===e.size)return"function"==typeof e.read?(t=+t,isFinite(t)?void r(null,new StreamSource(e,t)):void r(new Error("cannot create source for stream without a finite value for the `chunkSize` option"))):void r(new Error("source object may only be an instance of File, Blob, or Reader in this environment"));r(null,new FileSource(e))}};var _isReactNative2=_interopRequireDefault(_$isReactNative_73),_uriToBlob2=_interopRequireDefault(_$uriToBlob_78),_isCordova2=_interopRequireDefault(_$isCordova_72),_readAsByteArray2=_interopRequireDefault(_$readAsByteArray_74);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var FileSource=function(){function e(t){_classCallCheck(this,e),this._file=t,this.size=t.size}return ___createClass_76(e,[{key:"slice",value:function(e,t,r){(0,_isCordova2.default)()?(0,_readAsByteArray2.default)(this._file.slice(e,t),function(e,t){if(e)return r(e);r(null,t)}):r(null,this._file.slice(e,t))}},{key:"close",value:function(){}}]),e}(),StreamSource=function(){function e(t,r){_classCallCheck(this,e),this._chunkSize=r,this._buffer=void 0,this._bufferOffset=0,this._reader=t,this._done=!1}return ___createClass_76(e,[{key:"slice",value:function(e,t,r){if(!(e<this._bufferOffset))return this._readUntilEnoughDataOrDone(e,t,r);r(new Error("Requested data is before the reader's current offset"))}},{key:"_readUntilEnoughDataOrDone",value:function(e,t,r){var n=this,o=t<=this._bufferOffset+__len_76(this._buffer);if(this._done||o){var i=this._getDataFromBuffer(e,t);r(null,i,null==i&&this._done)}else this._reader.read().then(function(o){var i=o.value;o.done?n._done=!0:void 0===n._buffer?n._buffer=i:n._buffer=function(e,t){if(e.concat)return e.concat(t);if(e instanceof Blob)return new Blob([e,t],{type:e.type});if(e.set){var r=new e.constructor(e.length+t.length);return r.set(e),r.set(t,e.length),r}throw new Error("Unknown data type")}(n._buffer,i),n._readUntilEnoughDataOrDone(e,t,r)}).catch(function(e){r(new Error("Error during read: "+e))})}},{key:"_getDataFromBuffer",value:function(e,t){e>this._bufferOffset&&(this._buffer=this._buffer.slice(e-this._bufferOffset),this._bufferOffset=e);var r=0===__len_76(this._buffer);return this._done&&r?null:this._buffer.slice(0,t-e)}},{key:"close",value:function(){this._reader.cancel&&this._reader.cancel()}}]),e}();function __len_76(e){return void 0===e?0:void 0!==e.size?e.size:e.length}var _$error_79={};Object.defineProperty(_$error_79,"__esModule",{value:!0});var DetailedError=function(e){function t(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;!function(e,r){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this);var o=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e.message));o.originalRequest=n,o.causingError=r;var i=e.message;return null!=r&&(i+=", caused by "+r.toString()),null!=n&&(i+=", originated from request (response code: "+n.status+", response text: "+n.responseText+")"),o.message=i,o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,Error),t}();_$error_79.default=DetailedError;var _$fingerprint_80={};Object.defineProperty(_$fingerprint_80,"__esModule",{value:!0}),_$fingerprint_80.default=function(e,t){return ___isReactNative2_80.default?function(e,t){var r=e.exif?function(e){var t=0;if(0===e.length)return t;for(var r=0;r<e.length;r++){t=(t<<5)-t+e.charCodeAt(r),t&=t}return t}(JSON.stringify(e.exif)):"noexif";return["tus",e.name||"noname",e.size||"nosize",r,t.endpoint].join("/")}(e,t):["tus",e.name,e.type,e.size,e.lastModified,t.endpoint].join("-")};var __obj_80,___isReactNative2_80=(__obj_80=_$isReactNative_73)&&__obj_80.__esModule?__obj_80:{default:__obj_80},_$base64_83={exports:{}};(function(global){!function(e,t){"object"==typeof _$base64_83.exports?_$base64_83.exports=t(e):"function"==typeof define&&define.amd?define(t):t(e)}("undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==global?global:this,function(global){"use strict";global=global||{};var _Base64=global.Base64,version="2.5.1",buffer;if(_$base64_83.exports)try{buffer=eval("require('buffer').Buffer")}catch(e){buffer=void 0}var b64chars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",b64tab=function(e){for(var t={},r=0,n=e.length;r<n;r++)t[e.charAt(r)]=r;return t}(b64chars),fromCharCode=String.fromCharCode,cb_utob=function(e){if(e.length<2)return(t=e.charCodeAt(0))<128?e:t<2048?fromCharCode(192|t>>>6)+fromCharCode(128|63&t):fromCharCode(224|t>>>12&15)+fromCharCode(128|t>>>6&63)+fromCharCode(128|63&t);var t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return fromCharCode(240|t>>>18&7)+fromCharCode(128|t>>>12&63)+fromCharCode(128|t>>>6&63)+fromCharCode(128|63&t)},re_utob=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,utob=function(e){return e.replace(re_utob,cb_utob)},cb_encode=function(e){var t=[0,2,1][e.length%3],r=e.charCodeAt(0)<<16|(e.length>1?e.charCodeAt(1):0)<<8|(e.length>2?e.charCodeAt(2):0);return[b64chars.charAt(r>>>18),b64chars.charAt(r>>>12&63),t>=2?"=":b64chars.charAt(r>>>6&63),t>=1?"=":b64chars.charAt(63&r)].join("")},btoa=global.btoa?function(e){return global.btoa(e)}:function(e){return e.replace(/[\s\S]{1,3}/g,cb_encode)},_encode=buffer?buffer.from&&Uint8Array&&buffer.from!==Uint8Array.from?function(e){return(e.constructor===buffer.constructor?e:buffer.from(e)).toString("base64")}:function(e){return(e.constructor===buffer.constructor?e:new buffer(e)).toString("base64")}:function(e){return btoa(utob(e))},encode=function(e,t){return t?_encode(String(e)).replace(/[+\/]/g,function(e){return"+"==e?"-":"_"}).replace(/=/g,""):_encode(String(e))},encodeURI=function(e){return encode(e,!0)},re_btou=new RegExp(["[\xc0-\xdf][\x80-\xbf]","[\xe0-\xef][\x80-\xbf]{2}","[\xf0-\xf7][\x80-\xbf]{3}"].join("|"),"g"),cb_btou=function(e){switch(e.length){case 4:var t=((7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3))-65536;return fromCharCode(55296+(t>>>10))+fromCharCode(56320+(1023&t));case 3:return fromCharCode((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return fromCharCode((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},btou=function(e){return e.replace(re_btou,cb_btou)},cb_decode=function(e){var t=e.length,r=t%4,n=(t>0?b64tab[e.charAt(0)]<<18:0)|(t>1?b64tab[e.charAt(1)]<<12:0)|(t>2?b64tab[e.charAt(2)]<<6:0)|(t>3?b64tab[e.charAt(3)]:0),o=[fromCharCode(n>>>16),fromCharCode(n>>>8&255),fromCharCode(255&n)];return o.length-=[0,0,2,1][r],o.join("")},_atob=global.atob?function(e){return global.atob(e)}:function(e){return e.replace(/\S{1,4}/g,cb_decode)},atob=function(e){return _atob(String(e).replace(/[^A-Za-z0-9\+\/]/g,""))},_decode=buffer?buffer.from&&Uint8Array&&buffer.from!==Uint8Array.from?function(e){return(e.constructor===buffer.constructor?e:buffer.from(e,"base64")).toString()}:function(e){return(e.constructor===buffer.constructor?e:new buffer(e,"base64")).toString()}:function(e){return btou(_atob(e))},decode=function(e){return _decode(String(e).replace(/[-_]/g,function(e){return"-"==e?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,""))},noConflict=function(){var e=global.Base64;return global.Base64=_Base64,e};if(global.Base64={VERSION:version,atob:atob,btoa:btoa,fromBase64:decode,toBase64:encode,utob:utob,encode:encode,encodeURI:encodeURI,btou:btou,decode:decode,noConflict:noConflict,__buffer__:buffer},"function"==typeof Object.defineProperty){var noEnum=function(e){return{value:e,enumerable:!1,writable:!0,configurable:!0}};global.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",noEnum(function(){return decode(this)})),Object.defineProperty(String.prototype,"toBase64",noEnum(function(e){return encode(this,e)})),Object.defineProperty(String.prototype,"toBase64URI",noEnum(function(){return encode(this,!0)}))}}return global.Meteor&&(Base64=global.Base64),_$base64_83.exports?_$base64_83.exports.Base64=global.Base64:"function"==typeof define&&define.amd&&define([],function(){return global.Base64}),{Base64:global.Base64}})}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{}),_$base64_83=_$base64_83.exports;var _$upload_82={};Object.defineProperty(_$upload_82,"__esModule",{value:!0});var ___createClass_82=function(){function e(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)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),_fingerprint2=___interopRequireDefault_82(_$fingerprint_80),_error2=___interopRequireDefault_82(_$error_79),_extend2=___interopRequireDefault_82(_$extend_35);function ___interopRequireDefault_82(e){return e&&e.__esModule?e:{default:e}}var __defaultOptions_82={endpoint:null,fingerprint:_fingerprint2.default,resume:!0,onProgress:null,onChunkComplete:null,onSuccess:null,onError:null,headers:{},chunkSize:1/0,withCredentials:!1,uploadUrl:null,uploadSize:null,overridePatchMethod:!1,retryDelays:null,removeFingerprintOnSuccess:!1,uploadLengthDeferred:!1,urlStorage:null,fileReader:null},Upload=function(){function e(t,r){!function(t,r){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this),this.options=(0,_extend2.default)(!0,{},__defaultOptions_82,r),this._storage=this.options.urlStorage,this.file=t,this.url=null,this._xhr=null,this._fingerprint=null,this._offset=null,this._aborted=!1,this._size=null,this._source=null,this._retryAttempt=0,this._retryTimeout=null,this._offsetBeforeRetry=0}return ___createClass_82(e,[{key:"start",value:function(){var e=this,t=this.file;t?this.options.endpoint||this.options.uploadUrl?(this.options.resume&&null==this._storage&&(this._storage=(0,_$storage_77.getStorage)()),this._source?this._start(this._source):(this.options.fileReader||_$source_76.getSource)(t,this.options.chunkSize,function(t,r){t?e._emitError(t):(e._source=r,e._start(r))})):this._emitError(new Error("tus: neither an endpoint or an upload URL is provided")):this._emitError(new Error("tus: no file or stream to upload provided"))}},{key:"_start",value:function(e){var t=this,r=this.file;if(this.options.uploadLengthDeferred)this._size=null;else if(null!=this.options.uploadSize){if(this._size=+this.options.uploadSize,isNaN(this._size))return void this._emitError(new Error("tus: cannot convert `uploadSize` option into a number"))}else if(this._size=e.size,null==this._size)return void this._emitError(new Error("tus: cannot automatically derive upload's size from input and must be specified manually using the `uploadSize` option"));var n=this.options.retryDelays;if(null!=n){if("[object Array]"!==Object.prototype.toString.call(n))return void this._emitError(new Error("tus: the `retryDelays` option must either be an array or null"));var o=this.options.onError;this.options.onError=function(e){t.options.onError=o,null!=t._offset&&t._offset>t._offsetBeforeRetry&&(t._retryAttempt=0);var r=!0;"undefined"!=typeof window&&"navigator"in window&&!1===window.navigator.onLine&&(r=!1);var i=e.originalRequest?e.originalRequest.status:0,s=!inStatusCategory(i,400)||409===i||423===i;if(t._retryAttempt<n.length&&null!=e.originalRequest&&s&&r){var a=n[t._retryAttempt++];t._offsetBeforeRetry=t._offset,t.options.uploadUrl=t.url,t._retryTimeout=setTimeout(function(){t.start()},a)}else t._emitError(e)}}if(this._aborted=!1,null==this.url)return null!=this.options.uploadUrl?(this.url=this.options.uploadUrl,void this._resumeUpload()):void(this._hasStorage()?(this._fingerprint=this.options.fingerprint(r,this.options),this._storage.getItem(this._fingerprint,function(e,r){e?t._emitError(e):null!=r?(t.url=r,t._resumeUpload()):t._createUpload()})):this._createUpload());this._resumeUpload()}},{key:"abort",value:function(){null!==this._xhr&&(this._xhr.abort(),this._source.close()),this._aborted=!0,null!=this._retryTimeout&&(clearTimeout(this._retryTimeout),this._retryTimeout=null)}},{key:"_hasStorage",value:function(){return this.options.resume&&this._storage}},{key:"_emitXhrError",value:function(e,t,r){this._emitError(new _error2.default(t,r,e))}},{key:"_emitError",value:function(e){if("function"!=typeof this.options.onError)throw e;this.options.onError(e)}},{key:"_emitSuccess",value:function(){"function"==typeof this.options.onSuccess&&this.options.onSuccess()}},{key:"_emitProgress",value:function(e,t){"function"==typeof this.options.onProgress&&this.options.onProgress(e,t)}},{key:"_emitChunkComplete",value:function(e,t,r){"function"==typeof this.options.onChunkComplete&&this.options.onChunkComplete(e,t,r)}},{key:"_setupXHR",value:function(e){this._xhr=e,e.setRequestHeader("Tus-Resumable","1.0.0");var t=this.options.headers;for(var r in t)e.setRequestHeader(r,t[r]);e.withCredentials=this.options.withCredentials}},{key:"_createUpload",value:function(){var e=this;if(this.options.endpoint){var t=(0,_$request_75.newRequest)();t.open("POST",this.options.endpoint,!0),t.onload=function(){if(inStatusCategory(t.status,200)){var r=t.getResponseHeader("Location");if(null!=r){if(e.url=(0,_$request_75.resolveUrl)(e.options.endpoint,r),0===e._size)return e._emitSuccess(),void e._source.close();e._hasStorage()&&e._storage.setItem(e._fingerprint,e.url,function(t){t&&e._emitError(t)}),e._offset=0,e._startUpload()}else e._emitXhrError(t,new Error("tus: invalid or missing Location header"))}else e._emitXhrError(t,new Error("tus: unexpected response while creating upload"))},t.onerror=function(r){e._emitXhrError(t,new Error("tus: failed to create upload"),r)},this._setupXHR(t),this.options.uploadLengthDeferred?t.setRequestHeader("Upload-Defer-Length",1):t.setRequestHeader("Upload-Length",this._size);var r=function(e){var t=[];for(var r in e)t.push(r+" "+_$base64_83.Base64.encode(e[r]));return t.join(",")}(this.options.metadata);""!==r&&t.setRequestHeader("Upload-Metadata",r),t.send(null)}else this._emitError(new Error("tus: unable to create upload because no endpoint is provided"))}},{key:"_resumeUpload",value:function(){var e=this,t=(0,_$request_75.newRequest)();t.open("HEAD",this.url,!0),t.onload=function(){if(!inStatusCategory(t.status,200))return e.options.resume&&e._storage&&inStatusCategory(t.status,400)&&e._storage.removeItem(e._fingerprint,function(t){t&&e._emitError(t)}),423===t.status?void e._emitXhrError(t,new Error("tus: upload is currently locked; retry later")):e.options.endpoint?(e.url=null,void e._createUpload()):void e._emitXhrError(t,new Error("tus: unable to resume upload (new upload cannot be created without an endpoint)"));var r=parseInt(t.getResponseHeader("Upload-Offset"),10);if(isNaN(r))e._emitXhrError(t,new Error("tus: invalid or missing offset value"));else{var n=parseInt(t.getResponseHeader("Upload-Length"),10);if(!isNaN(n)||e.options.uploadLengthDeferred){if(r===n)return e._emitProgress(n,n),void e._emitSuccess();e._offset=r,e._startUpload()}else e._emitXhrError(t,new Error("tus: invalid or missing length value"))}},t.onerror=function(r){e._emitXhrError(t,new Error("tus: failed to resume upload"),r)},this._setupXHR(t),t.send(null)}},{key:"_startUpload",value:function(){var e=this;if(!this._aborted){var t=(0,_$request_75.newRequest)();this.options.overridePatchMethod?(t.open("POST",this.url,!0),t.setRequestHeader("X-HTTP-Method-Override","PATCH")):t.open("PATCH",this.url,!0),t.onload=function(){if(inStatusCategory(t.status,200)){var r=parseInt(t.getResponseHeader("Upload-Offset"),10);if(isNaN(r))e._emitXhrError(t,new Error("tus: invalid or missing offset value"));else{if(e._emitProgress(r,e._size),e._emitChunkComplete(r-e._offset,r,e._size),e._offset=r,r==e._size)return e.options.removeFingerprintOnSuccess&&e.options.resume&&e._storage.removeItem(e._fingerprint,function(t){t&&e._emitError(t)}),e._emitSuccess(),void e._source.close();e._startUpload()}}else e._emitXhrError(t,new Error("tus: unexpected response while uploading chunk"))},t.onerror=function(r){e._aborted||e._emitXhrError(t,new Error("tus: failed to upload chunk at offset "+e._offset),r)},"upload"in t&&(t.upload.onprogress=function(t){t.lengthComputable&&e._emitProgress(r+t.loaded,e._size)}),this._setupXHR(t),t.setRequestHeader("Upload-Offset",this._offset),t.setRequestHeader("Content-Type","application/offset+octet-stream");var r=this._offset,n=this._offset+this.options.chunkSize;(n===1/0||n>this._size)&&!this.options.uploadLengthDeferred&&(n=this._size),this._source.slice(r,n,function(r,n,o){r?e._emitError(r):(e.options.uploadLengthDeferred&&o&&(e._size=e._offset+(n&&n.size?n.size:0),t.setRequestHeader("Upload-Length",e._size)),null===n?t.send():(t.send(n),e._emitProgress(e._offset,e._size)))})}}}]),e}();function inStatusCategory(e,t){return e>=t&&e<t+100}Upload.defaultOptions=__defaultOptions_82,_$upload_82.default=Upload;var __obj_81,_upload2=(__obj_81=_$upload_82)&&__obj_81.__esModule?__obj_81:{default:__obj_81},storage=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}(_$storage_77),__defaultOptions_81=_upload2.default.defaultOptions,moduleExport={Upload:_upload2.default,canStoreURLs:storage.canStoreURLs,defaultOptions:__defaultOptions_81};if("undefined"!=typeof window){var _window=window,__XMLHttpRequest_81=_window.XMLHttpRequest,__Blob_81=_window.Blob;moduleExport.isSupported=__XMLHttpRequest_81&&__Blob_81&&"function"==typeof __Blob_81.prototype.slice}else moduleExport.isSupported=!0,moduleExport.FileStorage=storage.FileStorage;var _$moduleExport_81=moduleExport,_$package_186={version:"1.3.0"},___class_185,___temp_185;function ___extends_185(){return(___extends_185=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function ___assertThisInitialized_185(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var __Plugin_185=_$lib_101.Plugin,__Provider_185=_$lib_97.Provider,__RequestClient_185=_$lib_97.RequestClient,__Socket_185=_$lib_97.Socket,tusDefaultOptions={endpoint:"",resume:!0,onProgress:null,onChunkComplete:null,onSuccess:null,onError:null,headers:{},chunkSize:1/0,withCredentials:!1,uploadUrl:null,uploadSize:null,overridePatchMethod:!1,retryDelays:null};function __createEventTracker_185(e){var t=[];return{on:function(r,n){return t.push([r,n]),e.on(r,n)},remove:function(){t.forEach(function(t){var r=t[0],n=t[1];e.off(r,n)})}}}var _$lib_185=(___temp_185=___class_185=function(e){var t,r;function n(t,r){var n;return(n=e.call(this,t,r)||this).type="uploader",n.id=n.opts.id||"Tus",n.title="Tus",n.opts=___extends_185({},{resume:!0,autoRetry:!0,useFastRemoteRetry:!0,limit:0,retryDelays:[0,1e3,3e3,5e3]},r),"number"==typeof n.opts.limit&&0!==n.opts.limit?n.limitUploads=_$limitPromises_214(n.opts.limit):n.limitUploads=function(e){return e},n.uploaders=Object.create(null),n.uploaderEvents=Object.create(null),n.uploaderSockets=Object.create(null),n.handleResetProgress=n.handleResetProgress.bind(___assertThisInitialized_185(n)),n.handleUpload=n.handleUpload.bind(___assertThisInitialized_185(n)),n}r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var o=n.prototype;return o.handleResetProgress=function(){var e=___extends_185({},this.uppy.getState().files);Object.keys(e).forEach(function(t){if(e[t].tus&&e[t].tus.uploadUrl){var r=___extends_185({},e[t].tus);delete r.uploadUrl,e[t]=___extends_185({},e[t],{tus:r})}}),this.uppy.setState({files:e})},o.resetUploaderReferences=function(e){this.uploaders[e]&&(this.uploaders[e].abort(),this.uploaders[e]=null),this.uploaderEvents[e]&&(this.uploaderEvents[e].remove(),this.uploaderEvents[e]=null),this.uploaderSockets[e]&&(this.uploaderSockets[e].close(),this.uploaderSockets[e]=null)},o.upload=function(e,t,r){var n=this;return this.resetUploaderReferences(e.id),new Promise(function(t,r){var o=___extends_185({},tusDefaultOptions,n.opts,e.tus||{});o.onError=function(t){n.uppy.log(t),n.uppy.emit("upload-error",e,t),t.message="Failed because: "+t.message,n.resetUploaderReferences(e.id),r(t)},o.onProgress=function(t,r){n.onReceiveUploadUrl(e,a.url),n.uppy.emit("upload-progress",e,{uploader:n,bytesUploaded:t,bytesTotal:r})},o.onSuccess=function(){var r={uploadURL:a.url};n.uppy.emit("upload-success",e,r),a.url&&n.uppy.log("Download "+a.file.name+" from "+a.url),n.resetUploaderReferences(e.id),t(a)};var i=function(e,t,r){Object.prototype.hasOwnProperty.call(e,t)&&!Object.prototype.hasOwnProperty.call(e,r)&&(e[r]=e[t])},s={};(Array.isArray(o.metaFields)?o.metaFields:Object.keys(e.meta)).forEach(function(t){s[t]=e.meta[t]}),i(s,"type","filetype"),i(s,"name","filename"),o.metadata=s;var a=new _$moduleExport_81.Upload(e.data,o);n.uploaders[e.id]=a,n.uploaderEvents[e.id]=__createEventTracker_185(n.uppy),n.onFileRemove(e.id,function(r){n.resetUploaderReferences(e.id),t("upload "+r+" was removed")}),n.onPause(e.id,function(e){e?a.abort():a.start()}),n.onPauseAll(e.id,function(){a.abort()}),n.onCancelAll(e.id,function(){n.resetUploaderReferences(e.id),t("upload "+e.id+" was canceled")}),n.onResumeAll(e.id,function(){e.error&&a.abort(),a.start()}),e.isPaused||a.start()})},o.uploadRemote=function(e,t,r){var n=this;this.resetUploaderReferences(e.id);var o=___extends_185({},this.opts,e.tus||{});return new Promise(function(t,r){if(n.uppy.log(e.remote.url),e.serverToken)return n.connectToServerSocket(e).then(function(){return t()}).catch(r);n.uppy.emit("upload-started",e),new(e.remote.providerOptions.provider?__Provider_185:__RequestClient_185)(n.uppy,e.remote.providerOptions).post(e.remote.url,___extends_185({},e.remote.body,{endpoint:o.endpoint,uploadUrl:o.uploadUrl,protocol:"tus",size:e.data.size,metadata:e.meta})).then(function(t){return n.uppy.setFileState(e.id,{serverToken:t.token}),e=n.uppy.getFile(e.id)}).then(function(e){return n.connectToServerSocket(e)}).then(function(){t()}).catch(function(e){r(new Error(e))})})},o.connectToServerSocket=function(e){var t=this;return new Promise(function(r,n){var o=e.serverToken,i=_$getSocketHost_206(e.remote.companionUrl),s=new __Socket_185({target:i+"/api/"+o});t.uploaderSockets[e.id]=s,t.uploaderEvents[e.id]=__createEventTracker_185(t.uppy),t.onFileRemove(e.id,function(){s.send("pause",{}),r("upload "+e.id+" was removed")}),t.onPause(e.id,function(e){e?s.send("pause",{}):s.send("resume",{})}),t.onPauseAll(e.id,function(){return s.send("pause",{})}),t.onCancelAll(e.id,function(){return s.send("pause",{})}),t.onResumeAll(e.id,function(){e.error&&s.send("pause",{}),s.send("resume",{})}),t.onRetry(e.id,function(){s.send("pause",{}),s.send("resume",{})}),t.onRetryAll(e.id,function(){s.send("pause",{}),s.send("resume",{})}),e.isPaused&&s.send("pause",{}),s.on("progress",function(r){return _$emitSocketProgress_195(t,r,e)}),s.on("error",function(r){var o=r.error.message,i=___extends_185(new Error(o),{cause:r.error});t.opts.useFastRemoteRetry||(t.resetUploaderReferences(e.id),t.uppy.setFileState(e.id,{serverToken:null})),t.uppy.emit("upload-error",e,i),n(i)}),s.on("success",function(n){var o={uploadURL:n.url};t.uppy.emit("upload-success",e,o),t.resetUploaderReferences(e.id),r()})})},o.onReceiveUploadUrl=function(e,t){var r=this.uppy.getFile(e.id);r&&(r.tus&&r.tus.uploadUrl===t||(this.uppy.log("[Tus] Storing upload url"),this.uppy.setFileState(r.id,{tus:___extends_185({},r.tus,{uploadUrl:t})})))},o.onFileRemove=function(e,t){this.uploaderEvents[e].on("file-removed",function(r){e===r.id&&t(r.id)})},o.onPause=function(e,t){this.uploaderEvents[e].on("upload-pause",function(r,n){e===r&&t(n)})},o.onRetry=function(e,t){this.uploaderEvents[e].on("upload-retry",function(r){e===r&&t()})},o.onRetryAll=function(e,t){var r=this;this.uploaderEvents[e].on("retry-all",function(n){r.uppy.getFile(e)&&t()})},o.onPauseAll=function(e,t){var r=this;this.uploaderEvents[e].on("pause-all",function(){r.uppy.getFile(e)&&t()})},o.onCancelAll=function(e,t){var r=this;this.uploaderEvents[e].on("cancel-all",function(){r.uppy.getFile(e)&&t()})},o.onResumeAll=function(e,t){var r=this;this.uploaderEvents[e].on("resume-all",function(){r.uppy.getFile(e)&&t()})},o.uploadFiles=function(e){var t=this,r=e.map(function(r,n){var o=parseInt(n,10)+1,i=e.length;return r.error?function(){return Promise.reject(new Error(r.error))}:r.isRemote?(t.uppy.emit("upload-started",r),t.uploadRemote.bind(t,r,o,i)):(t.uppy.emit("upload-started",r),t.upload.bind(t,r,o,i))}).map(function(e){return t.limitUploads(e)()});return _$settle_219(r)},o.handleUpload=function(e){var t=this;if(0===e.length)return this.uppy.log("Tus: no files to upload!"),Promise.resolve();this.uppy.log("Tus is uploading...");var r=e.map(function(e){return t.uppy.getFile(e)});return this.uploadFiles(r).then(function(){return null})},o.install=function(){this.uppy.setState({capabilities:___extends_185({},this.uppy.getState().capabilities,{resumableUploads:!0})}),this.uppy.addUploader(this.handleUpload),this.uppy.on("reset-progress",this.handleResetProgress),this.opts.autoRetry&&this.uppy.on("back-online",this.uppy.retryAll)},o.uninstall=function(){this.uppy.setState({capabilities:___extends_185({},this.uppy.getState().capabilities,{resumableUploads:!1})}),this.uppy.removeUploader(this.handleUpload),this.opts.autoRetry&&this.uppy.off("back-online",this.uppy.retryAll)},n}(__Plugin_185),___class_185.VERSION=_$package_186.version,___temp_185),_$lib_182={},___class_182,___temp_182;function ___extends_182(){return(___extends_182=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function ___assertThisInitialized_182(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var __Plugin_182=_$lib_101.Plugin;function defaultGetAssemblyOptions(e,t){return{params:t.params,signature:t.signature,fields:t.fields}}var COMPANION="https://api2.transloadit.com/companion",TL_COMPANION=/https?:\/\/api2(?:-\w+)?\.transloadit\.com\/companion/,TL_UPPY_SERVER=/https?:\/\/api2(?:-\w+)?\.transloadit\.com\/uppy-server/;function ___assertThisInitialized_187(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}___temp_182=___class_182=function(e){var t,r;function n(t,r){var n;(n=e.call(this,t,r)||this).type="uploader",n.id=n.opts.id||"Transloadit",n.title="Transloadit",n.defaultLocale={strings:{creatingAssembly:"Preparing upload...",creatingAssemblyFailed:"Transloadit: Could not create Assembly",encoding:"Encoding..."}};var o={service:"https://api2.transloadit.com",errorReporting:!0,waitForEncoding:!1,waitForMetadata:!1,alwaysRunAssembly:!1,importFromUploadURLs:!1,signature:null,params:null,fields:{},getAssemblyOptions:defaultGetAssemblyOptions};n.opts=___extends_182({},o,r),n.translator=new _$Translator_192([n.defaultLocale,n.uppy.locale,n.opts.locale]),n.i18n=n.translator.translate.bind(n.translator),n.i18nArray=n.translator.translateArray.bind(n.translator),n._prepareUpload=n._prepareUpload.bind(___assertThisInitialized_182(n)),n._afterUpload=n._afterUpload.bind(___assertThisInitialized_182(n)),n._onError=n._onError.bind(___assertThisInitialized_182(n)),n._onTusError=n._onTusError.bind(___assertThisInitialized_182(n)),n._onCancelAll=n._onCancelAll.bind(___assertThisInitialized_182(n)),n._onFileUploadURLAvailable=n._onFileUploadURLAvailable.bind(___assertThisInitialized_182(n)),n._onRestored=n._onRestored.bind(___assertThisInitialized_182(n)),n._getPersistentData=n._getPersistentData.bind(___assertThisInitialized_182(n));var i=n.opts.getAssemblyOptions!==o.getAssemblyOptions;return n.opts.params?_$AssemblyOptions_179.validateParams(n.opts.params):i||_$AssemblyOptions_179.validateParams(null),n.client=new _$Client_181({service:n.opts.service,errorReporting:n.opts.errorReporting}),n.activeAssemblies={},n}r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var o=n.prototype;return o._attachAssemblyMetadata=function(e,t){var r=___extends_182({},e.meta,{assembly_url:t.assembly_url,filename:e.name,fieldname:"file"}),n=___extends_182({},e.tus,{endpoint:t.tus_url}),o=e.remote;if(e.remote&&TL_UPPY_SERVER.test(e.remote.companionUrl)){var i=new Error("The https://api2.transloadit.com/uppy-server endpoint was renamed to https://api2.transloadit.com/companion, please update your `companionUrl` options accordingly.");throw this.uppy.log(i),i}if(e.remote&&TL_COMPANION.test(e.remote.companionUrl)){var s=t.companion_url.replace(/\/$/,""),a=e.remote.url.replace(e.remote.companionUrl,"").replace(/^\//,"");o=___extends_182({},e.remote,{companionUrl:s,url:s+"/"+a})}var l=___extends_182({},e,{transloadit:{assembly:t.assembly_id}});return this.opts.importFromUploadURLs||___extends_182(l,{meta:r,tus:n,remote:o}),l},o._createAssembly=function(e,t,r){var n=this;return this.uppy.log("[Transloadit] create Assembly"),this.client.createAssembly({params:r.params,fields:r.fields,expectedFiles:e.length,signature:r.signature}).then(function(r){var o,i,s=new _$TransloaditAssembly_178(r),a=s.status,l=n.getPluginState(),u=l.assemblies,c=l.uploadsAssemblies;n.setPluginState({assemblies:___extends_182({},u,(o={},o[a.assembly_id]=a,o)),uploadsAssemblies:___extends_182({},c,(i={},i[t]=[].concat(c[t],[a.assembly_id]),i))});var p=n.uppy.getState().files,d={};return e.forEach(function(e){d[e]=n._attachAssemblyMetadata(n.uppy.getFile(e),a)}),n.uppy.setState({files:___extends_182({},p,d)}),n.uppy.emit("transloadit:assembly-created",a,e),n._connectAssembly(s),n.uppy.log("[Transloadit] Created Assembly "+a.assembly_id),s}).catch(function(e){throw e.message=n.i18n("creatingAssemblyFailed")+": "+e.message,e})},o._shouldWaitAfterUpload=function(){return this.opts.waitForEncoding||this.opts.waitForMetadata},o._reserveFiles=function(e,t){var r=this;return Promise.all(t.map(function(t){var n=r.uppy.getFile(t);return r.client.reserveFile(e,n)}))},o._onFileUploadURLAvailable=function(e){var t=this;if(e&&e.transloadit&&e.transloadit.assembly){var r=this.getPluginState().assemblies[e.transloadit.assembly];this.client.addFile(r,e).catch(function(n){t.uppy.log(n),t.uppy.emit("transloadit:import-error",r,e.id,n)})}},o._findFile=function(e){for(var t=this.uppy.getFiles(),r=0;r<t.length;r++){var n=t[r];if(n.uploadURL===e.tus_upload_url)return n;if(n.tus&&n.tus.uploadUrl===e.tus_upload_url)return n;if(!e.is_tus_file&&n.name===e.name&&n.size===e.size)return n}},o._onFileUploadComplete=function(e,t){var r,n=this.getPluginState(),o=this._findFile(t);o?(this.setPluginState({files:___extends_182({},n.files,(r={},r[t.id]={assembly:e,id:o.id,uploadedFile:t},r))}),this.uppy.emit("transloadit:upload",t,this.getAssembly(e))):this.uppy.log("[Transloadit] Couldn\u2019t file the file, it was likely removed in the process")},o._onResult=function(e,t,r){var n=this.getPluginState(),o=n.files[r.original_id];r.localId=o?o.id:null;var i={result:r,stepName:t,id:r.id,assembly:e};this.setPluginState({results:[].concat(n.results,[i])}),this.uppy.emit("transloadit:result",t,r,this.getAssembly(e))},o._onAssemblyFinished=function(e){var t=this,r=e.assembly_ssl_url;this.client.getAssemblyStatus(r).then(function(e){var r,n=t.getPluginState();t.setPluginState({assemblies:___extends_182({},n.assemblies,(r={},r[e.assembly_id]=e,r))}),t.uppy.emit("transloadit:complete",e)})},o._cancelAssembly=function(e){var t=this;return this.client.cancelAssembly(e).then(function(){t.uppy.emit("transloadit:assembly-cancelled",e)})},o._onCancelAll=function(){var e=this,t=this.getPluginState().assemblies,r=Object.keys(t).map(function(t){var r=e.getAssembly(t);return e._cancelAssembly(r)});Promise.all(r).catch(function(t){e.uppy.log(t)})},o._getPersistentData=function(e){var t,r=this.getPluginState(),n=r.assemblies,o=r.uploadsAssemblies;e(((t={})[this.id]={assemblies:n,uploadsAssemblies:o},t))},o._onRestored=function(e){var t=this,r=e&&e[this.id]?e[this.id]:{},n=r.assemblies||{},o=r.uploadsAssemblies||{};0!==Object.keys(o).length&&(this.restored=Promise.resolve().then(function(){var e,r,i;return e=n,r={},i=[],Object.keys(e).forEach(function(n){var o=e[n];o.uploads.forEach(function(e){var o=t._findFile(e);r[e.id]={id:o.id,assembly:n,uploadedFile:e}});var s=t.getPluginState();Object.keys(o.results).forEach(function(e){o.results[e].forEach(function(t){var r=s.files[t.original_id];t.localId=r?r.id:null,i.push({id:t.id,result:t,stepName:e,assembly:n})})})}),t.setPluginState({assemblies:e,files:r,results:i,uploadsAssemblies:o}),function(){var e=t.getPluginState().assemblies;Object.keys(e).forEach(function(r){var n=new _$TransloaditAssembly_178(e[r]);t._connectAssembly(n)})}(),function(){var e=t.getPluginState().assemblies;return Promise.all(Object.keys(e).map(function(e){return t.activeAssemblies[e].update()}))}()}),this.restored.then(function(){t.restored=null}))},o._connectAssembly=function(e){var t=this,r=e.status.assembly_id;return this.activeAssemblies[r]=e,e.on("status",function(e){var n,o=t.getPluginState().assemblies;t.setPluginState({assemblies:___extends_182({},o,(n={},n[r]=e,n))})}),e.on("upload",function(e){t._onFileUploadComplete(r,e)}),e.on("error",function(r){r.assembly=e.status,t.uppy.emit("transloadit:assembly-error",e.status,r)}),e.on("executing",function(){t.uppy.emit("transloadit:assembly-executing",e.status)}),this.opts.waitForEncoding&&e.on("result",function(e,n){t._onResult(r,e,n)}),this.opts.waitForEncoding?e.on("finished",function(){t._onAssemblyFinished(e.status)}):this.opts.waitForMetadata&&e.on("metadata",function(){t._onAssemblyFinished(e.status)}),"ASSEMBLY_COMPLETE"===e.ok?e:(new Promise(function(t,r){e.once("connect",t),e.once("status",t),e.once("error",r)}).then(function(){t.uppy.log("[Transloadit] Socket is ready")}),e.connect(),e)},o._prepareUpload=function(e,t){var r,n=this;(e=e.filter(function(e){return!e.error})).forEach(function(e){var t=n.uppy.getFile(e);n.uppy.emit("preprocess-progress",t,{mode:"indeterminate",message:n.i18n("creatingAssembly")})});var o=function(e){var r=e.fileIDs,o=e.options;return n._createAssembly(r,t,o).then(function(e){if(n.opts.importFromUploadURLs)return n._reserveFiles(e,r)}).then(function(){r.forEach(function(e){var t=n.uppy.getFile(e);n.uppy.emit("preprocess-complete",t)})}).catch(function(e){throw r.forEach(function(t){var r=n.uppy.getFile(t);n.uppy.emit("preprocess-complete",r),n.uppy.emit("upload-error",r,e)}),e})},i=this.getPluginState().uploadsAssemblies;this.setPluginState({uploadsAssemblies:___extends_182({},i,(r={},r[t]=[],r))});var s=e.map(function(e){return n.uppy.getFile(e)});return new _$AssemblyOptions_179(s,this.opts).build().then(function(e){return Promise.all(e.map(o))},function(t){throw e.forEach(function(e){var r=n.uppy.getFile(e);n.uppy.emit("preprocess-complete",r),n.uppy.emit("upload-error",r,t)}),t})},o._afterUpload=function(e,t){var r=this;e=e.filter(function(e){return!e.error});var n=this.getPluginState();if(this.restored)return this.restored.then(function(){return r._afterUpload(e,t)});var o=n.uploadsAssemblies[t];if(!this._shouldWaitAfterUpload()){o.forEach(function(e){r.activeAssemblies[e].close(),delete r.activeAssemblies[e]});var i=o.map(function(e){return r.getAssembly(e)});return this.uppy.addResultData(t,{transloadit:i}),Promise.resolve()}if(0===o.length)return this.uppy.addResultData(t,{transloadit:[]}),Promise.resolve();var s=new _$TransloaditAssemblyWatcher_180(this.uppy,o);return e.forEach(function(e){var t=r.uppy.getFile(e);r.uppy.emit("postprocess-progress",t,{mode:"indeterminate",message:r.i18n("encoding")})}),s.on("assembly-complete",function(e){r.getAssemblyFiles(e).forEach(function(e){r.uppy.emit("postprocess-complete",e)})}),s.on("assembly-error",function(e,t){r.getAssemblyFiles(e).forEach(function(e){r.uppy.emit("upload-error",e,t),r.uppy.emit("postprocess-complete",e)})}),s.promise.then(function(){var e=o.map(function(e){return r.getAssembly(e)}),n=___extends_182({},r.getPluginState().uploadsAssemblies);delete n[t],r.setPluginState({uploadsAssemblies:n}),r.uppy.addResultData(t,{transloadit:e})})},o._onError=function(e,t){var r=this;this.uppy.log("[Transloadit] _onError in upload "+t),this.uppy.log(e),this.getPluginState().uploadsAssemblies[t].forEach(function(e){r.activeAssemblies[e]&&r.activeAssemblies[e].close()})},o._onTusError=function(e){if(e&&/^tus: /.test(e.message)){var t=e.originalRequest&&e.originalRequest.responseURL?e.originalRequest.responseURL:null;this.client.submitError(e,{url:t,type:"TUS_ERROR"}).then(function(e){})}},o.install=function(){this.uppy.addPreProcessor(this._prepareUpload),this.uppy.addPostProcessor(this._afterUpload),this.uppy.on("error",this._onError),this.uppy.on("cancel-all",this._onCancelAll),this.uppy.on("upload-error",this._onTusError),this.opts.importFromUploadURLs?this.uppy.on("upload-success",this._onFileUploadURLAvailable):this.uppy.use(_$lib_185,{resume:!1,useFastRemoteRetry:!1,metaFields:["assembly_url","filename","fieldname"]}),this.uppy.on("restore:get-data",this._getPersistentData),this.uppy.on("restored",this._onRestored),this.setPluginState({assemblies:{},uploadsAssemblies:{},files:{},results:[]});var e=this.uppy.getState().capabilities;this.uppy.setState({capabilities:___extends_182({},e,{individualCancellation:!1})})},o.uninstall=function(){this.uppy.removePreProcessor(this._prepareUpload),this.uppy.removePostProcessor(this._afterUpload),this.uppy.off("error",this._onError),this.opts.importFromUploadURLs&&this.uppy.off("upload-success",this._onFileUploadURLAvailable);var e=this.uppy.getState().capabilities;this.uppy.setState({capabilities:___extends_182({},e,{individualCancellation:!0})})},o.getAssembly=function(e){return this.getPluginState().assemblies[e]},o.getAssemblyFiles=function(e){return this.uppy.getFiles().filter(function(t){return t&&t.transloadit&&t.transloadit.assembly===e})},n}(__Plugin_182),___class_182.VERSION=_$package_184.version,_$lib_182=___temp_182,_$lib_182.COMPANION=COMPANION,_$lib_182.UPPY_SERVER=COMPANION,_$lib_182.COMPANION_PATTERN=/\.transloadit\.com$/;var __h_187=_$preact_51.h,UrlUI=function(e){var t,r;function n(t){var r;return(r=e.call(this,t)||this).handleKeyPress=r.handleKeyPress.bind(___assertThisInitialized_187(r)),r.handleClick=r.handleClick.bind(___assertThisInitialized_187(r)),r}r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var o=n.prototype;return o.componentDidMount=function(){this.input.value=""},o.handleKeyPress=function(e){13===e.keyCode&&this.props.addFile(this.input.value)},o.handleClick=function(){this.props.addFile(this.input.value)},o.render=function(){var e=this;return __h_187("div",{class:"uppy-Url"},__h_187("input",{class:"uppy-u-reset uppy-c-textInput uppy-Url-input",type:"text","aria-label":this.props.i18n("enterUrlToImport"),placeholder:this.props.i18n("enterUrlToImport"),onkeyup:this.handleKeyPress,ref:function(t){e.input=t},"data-uppy-super-focusable":!0}),__h_187("button",{class:"uppy-u-reset uppy-c-btn uppy-c-btn-primary uppy-Url-importButton",type:"button",onclick:this.handleClick},this.props.i18n("import")))},n}(_$preact_51.Component),_$UrlUI_187=UrlUI,_$forEachDroppedOrPastedUrl_189=function(e,t,r){var n,o=_$toArray_220(e.items);switch(t){case"paste":if(o.some(function(e){return"file"===e.kind}))return;n=o.filter(function(e){return"string"===e.kind&&"text/plain"===e.type});break;case"drop":n=o.filter(function(e){return"string"===e.kind&&"text/uri-list"===e.type});break;default:throw new Error("isDropOrPaste must be either 'drop' or 'paste', but it's "+t)}n.forEach(function(e){e.getAsString(function(e){return r(e)})})},_$package_190={version:"1.2.0"},___class_188,___temp_188;function ___extends_188(){return(___extends_188=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function ___assertThisInitialized_188(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var __Plugin_188=_$lib_101.Plugin,__h_188=_$preact_51.h,__RequestClient_188=_$lib_97.RequestClient,_$lib_188=(___temp_188=___class_188=function(e){var t,r;function n(t,r){var n;if((n=e.call(this,t,r)||this).id=n.opts.id||"Url",n.title=n.opts.title||"Link",n.type="acquirer",n.icon=function(){return __h_188("svg",{"aria-hidden":"true",focusable:"false",width:"23",height:"23",viewBox:"0 0 23 23"},__h_188("path",{d:"M20.485 11.236l-2.748 2.737c-.184.182-.367.365-.642.547-1.007.73-2.107 1.095-3.298 1.095-1.65 0-3.298-.73-4.398-2.19-.275-.365-.183-1.003.183-1.277.367-.273 1.008-.182 1.283.183 1.191 1.642 3.482 1.915 5.13.73a.714.714 0 0 0 .367-.365l2.75-2.737c1.373-1.46 1.373-3.74-.093-5.108a3.72 3.72 0 0 0-5.13 0L12.33 6.4a.888.888 0 0 1-1.283 0 .88.88 0 0 1 0-1.277l1.558-1.55a5.38 5.38 0 0 1 7.605 0c2.29 2.006 2.382 5.564.274 7.662zm-8.979 6.294L9.95 19.081a3.72 3.72 0 0 1-5.13 0c-1.467-1.368-1.467-3.74-.093-5.108l2.75-2.737.366-.365c.824-.547 1.74-.82 2.748-.73 1.008.183 1.833.639 2.382 1.46.275.365.917.456 1.283.182.367-.273.458-.912.183-1.277-.916-1.186-2.199-1.915-3.573-2.098-1.374-.273-2.84.091-4.031 1.004l-.55.547-2.749 2.737c-2.107 2.189-2.015 5.655.092 7.753C4.727 21.453 6.101 22 7.475 22c1.374 0 2.749-.547 3.848-1.55l1.558-1.551a.88.88 0 0 0 0-1.278c-.367-.364-1.008-.456-1.375-.09z",fill:"#FF814F","fill-rule":"nonzero"}))},n.defaultLocale={strings:{import:"Import",enterUrlToImport:"Enter URL to import a file",failedToFetch:"Companion failed to fetch this URL, please make sure it\u2019s correct",enterCorrectUrl:"Incorrect URL: Please make sure you are entering a direct link to a file"}},n.opts=___extends_188({},{},r),n.translator=new _$Translator_192([n.defaultLocale,n.uppy.locale,n.opts.locale]),n.i18n=n.translator.translate.bind(n.translator),n.i18nArray=n.translator.translateArray.bind(n.translator),n.hostname=n.opts.companionUrl,!n.hostname)throw new Error("Companion hostname is required, please consult https://uppy.io/docs/companion");return n.getMeta=n.getMeta.bind(___assertThisInitialized_188(n)),n.addFile=n.addFile.bind(___assertThisInitialized_188(n)),n.handleRootDrop=n.handleRootDrop.bind(___assertThisInitialized_188(n)),n.handleRootPaste=n.handleRootPaste.bind(___assertThisInitialized_188(n)),n.client=new __RequestClient_188(t,{companionUrl:n.opts.companionUrl,serverHeaders:n.opts.serverHeaders}),n}r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var o=n.prototype;return o.getFileNameFromUrl=function(e){return e.substring(e.lastIndexOf("/")+1)},o.checkIfCorrectURL=function(e){if(!e)return!1;var t=e.match(/^([a-z0-9]+):\/\//)[1];return"http"===t||"https"===t},o.addProtocolToURL=function(e){return/^[a-z0-9]+:\/\//.test(e)?e:"http://"+e},o.getMeta=function(e){var t=this;return this.client.post("url/meta",{url:e}).then(function(e){if(e.error)throw t.uppy.log("[URL] Error:"),t.uppy.log(e.error),new Error("Failed to fetch the file");return e})},o.addFile=function(e){var t=this;return e=this.addProtocolToURL(e),this.checkIfCorrectURL(e)?this.getMeta(e).then(function(r){return{source:t.id,name:t.getFileNameFromUrl(e),type:r.type,data:{size:r.size},isRemote:!0,body:{url:e},remote:{companionUrl:t.opts.companionUrl,url:t.hostname+"/url/get",body:{fileId:e,url:e},providerOptions:t.client.opts}}}).then(function(e){t.uppy.log("[Url] Adding remote file");try{t.uppy.addFile(e)}catch(e){e.isRestriction||t.uppy.log(e)}}).catch(function(e){t.uppy.log(e),t.uppy.info({message:t.i18n("failedToFetch"),details:e},"error",4e3)}):(this.uppy.log("[URL] Incorrect URL entered: "+e),void this.uppy.info(this.i18n("enterCorrectUrl"),"error",4e3))},o.handleRootDrop=function(e){var t=this;_$forEachDroppedOrPastedUrl_189(e.dataTransfer,"drop",function(e){t.uppy.log("[URL] Adding file from dropped url: "+e),t.addFile(e)})},o.handleRootPaste=function(e){var t=this;_$forEachDroppedOrPastedUrl_189(e.clipboardData,"paste",function(e){t.uppy.log("[URL] Adding file from pasted url: "+e),t.addFile(e)})},o.render=function(e){return __h_188(_$UrlUI_187,{i18n:this.i18n,addFile:this.addFile})},o.install=function(){var e=this.opts.target;e&&this.mount(e,this)},o.uninstall=function(){this.unmount()},n}(__Plugin_188),___class_188.VERSION=_$package_190.version,___temp_188),_$canvasToBlob_193=function(e,t,r){return e.toBlob?new Promise(function(n){e.toBlob(n,t,r)}):Promise.resolve().then(function(){return _$dataURItoBlob_194(e.toDataURL(t,r),{})})},mimeToExtensions={"video/ogg":"ogv","audio/ogg":"ogg","video/webm":"webm","audio/webm":"webm","video/x-matroska":"mkv","video/mp4":"mp4","audio/mp3":"mp3"},_$getFileTypeExtension_205=function(e){return e=e.replace(/;.*$/,""),mimeToExtensions[e]||null},__h_221=_$preact_51.h,_$CameraIcon_221=function(e){return __h_221("svg",{"aria-hidden":"true",focusable:"false",fill:"#0097DC",width:"66",height:"55",viewBox:"0 0 66 55"},__h_221("path",{d:"M57.3 8.433c4.59 0 8.1 3.51 8.1 8.1v29.7c0 4.59-3.51 8.1-8.1 8.1H8.7c-4.59 0-8.1-3.51-8.1-8.1v-29.7c0-4.59 3.51-8.1 8.1-8.1h9.45l4.59-7.02c.54-.54 1.35-1.08 2.16-1.08h16.2c.81 0 1.62.54 2.16 1.08l4.59 7.02h9.45zM33 14.64c-8.62 0-15.393 6.773-15.393 15.393 0 8.62 6.773 15.393 15.393 15.393 8.62 0 15.393-6.773 15.393-15.393 0-8.62-6.773-15.393-15.393-15.393zM33 40c-5.648 0-9.966-4.319-9.966-9.967 0-5.647 4.318-9.966 9.966-9.966s9.966 4.319 9.966 9.966C42.966 35.681 38.648 40 33 40z","fill-rule":"evenodd"}))},__h_224=_$preact_51.h,_$RecordButton_224=function(e){var t=e.recording,r=e.onStartRecording,n=e.onStopRecording,o=e.i18n;return t?__h_224("button",{class:"uppy-u-reset uppy-c-btn uppy-Webcam-button uppy-Webcam-button--video",type:"button",title:o("stopRecording"),"aria-label":o("stopRecording"),onclick:n,"data-uppy-super-focusable":!0},__h_224("svg",{"aria-hidden":"true",focusable:"false",class:"UppyIcon",width:"100",height:"100",viewBox:"0 0 100 100"},__h_224("rect",{x:"15",y:"15",width:"70",height:"70"}))):__h_224("button",{class:"uppy-u-reset uppy-c-btn uppy-Webcam-button uppy-Webcam-button--video",type:"button",title:o("startRecording"),"aria-label":o("startRecording"),onclick:r,"data-uppy-super-focusable":!0},__h_224("svg",{"aria-hidden":"true",focusable:"false",class:"UppyIcon",width:"100",height:"100",viewBox:"0 0 100 100"},__h_224("circle",{cx:"50",cy:"50",r:"40"})))},__h_225=_$preact_51.h,_$SnapshotButton_225=function(e){var t=e.onSnapshot,r=e.i18n;return __h_225("button",{class:"uppy-u-reset uppy-c-btn uppy-Webcam-button uppy-Webcam-button--picture",type:"button",title:r("takePicture"),"aria-label":r("takePicture"),onclick:t,"data-uppy-super-focusable":!0},_$CameraIcon_221())},__h_222=_$preact_51.h,__Component_222=_$preact_51.Component;function isModeAvailable(e,t){return-1!==e.indexOf(t)}var CameraScreen=function(e){var t,r;function n(){return e.apply(this,arguments)||this}r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var o=n.prototype;return o.componentDidMount=function(){this.props.onFocus()},o.componentWillUnmount=function(){this.props.onStop()},o.render=function(){var e=this.props.supportsRecording&&(isModeAvailable(this.props.modes,"video-only")||isModeAvailable(this.props.modes,"audio-only")||isModeAvailable(this.props.modes,"video-audio")),t=isModeAvailable(this.props.modes,"picture");return __h_222("div",{class:"uppy uppy-Webcam-container"},__h_222("div",{class:"uppy-Webcam-videoContainer"},__h_222("video",{class:"uppy-Webcam-video "+(this.props.mirror?"uppy-Webcam-video--mirrored":""),autoplay:!0,muted:!0,playsinline:!0,srcObject:this.props.src||""})),__h_222("div",{class:"uppy-Webcam-buttonContainer"},t?_$SnapshotButton_225(this.props):null," ",e?_$RecordButton_224(this.props):null))},n}(__Component_222),_$CameraScreen_222=CameraScreen,__h_223=_$preact_51.h,_$PermissionsScreen_223=function(e){return __h_223("div",{class:"uppy-Webcam-permissons"},__h_223("div",{class:"uppy-Webcam-permissonsIcon"},e.icon()),__h_223("h1",{class:"uppy-Webcam-title"},e.i18n("allowAccessTitle")),__h_223("p",null,e.i18n("allowAccessDescription")))},_$supportsMediaRecorder_227=function(){return"function"==typeof MediaRecorder&&!!MediaRecorder.prototype&&"function"==typeof MediaRecorder.prototype.start},_$package_228={version:"1.2.0"},___class_226,___temp_226;function ___extends_226(){return(___extends_226=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function ___assertThisInitialized_226(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var __h_226=_$preact_51.h,__Plugin_226=_$lib_101.Plugin,_$lib_226=(___temp_226=___class_226=function(e){var t,r;function n(t,r){var n;(n=e.call(this,t,r)||this).mediaDevices=function(){if(navigator.mediaDevices&&navigator.mediaDevices.getUserMedia)return navigator.mediaDevices;var e=navigator.mozGetUserMedia||navigator.webkitGetUserMedia;return e?{getUserMedia:function(t){return new Promise(function(r,n){e.call(navigator,t,r,n)})}}:null}(),n.supportsUserMedia=!!n.mediaDevices,n.protocol=location.protocol.match(/https/i)?"https":"http",n.id=n.opts.id||"Webcam",n.title=n.opts.title||"Camera",n.type="acquirer",n.icon=_$CameraIcon_221,n.defaultLocale={strings:{smile:"Smile!",takePicture:"Take a picture",startRecording:"Begin video recording",stopRecording:"Stop video recording",allowAccessTitle:"Please allow access to your camera",allowAccessDescription:"In order to take pictures or record video with your camera, please allow camera access for this site."}};var o={onBeforeSnapshot:function(){return Promise.resolve()},countdown:!1,modes:["video-audio","video-only","audio-only","picture"],mirror:!0,facingMode:"user",preferredVideoMimeType:null};return n.opts=___extends_226({},o,r),n.translator=new _$Translator_192([n.defaultLocale,n.uppy.locale,n.opts.locale]),n.i18n=n.translator.translate.bind(n.translator),n.i18nArray=n.translator.translateArray.bind(n.translator),n.install=n.install.bind(___assertThisInitialized_226(n)),n.setPluginState=n.setPluginState.bind(___assertThisInitialized_226(n)),n.render=n.render.bind(___assertThisInitialized_226(n)),n.start=n.start.bind(___assertThisInitialized_226(n)),n.stop=n.stop.bind(___assertThisInitialized_226(n)),n.takeSnapshot=n.takeSnapshot.bind(___assertThisInitialized_226(n)),n.startRecording=n.startRecording.bind(___assertThisInitialized_226(n)),n.stopRecording=n.stopRecording.bind(___assertThisInitialized_226(n)),n.oneTwoThreeSmile=n.oneTwoThreeSmile.bind(___assertThisInitialized_226(n)),n.focus=n.focus.bind(___assertThisInitialized_226(n)),n.webcamActive=!1,n.opts.countdown&&(n.opts.onBeforeSnapshot=n.oneTwoThreeSmile),n}r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var o=n.prototype;return o.isSupported=function(){return!!this.mediaDevices},o.getConstraints=function(){return{audio:-1!==this.opts.modes.indexOf("video-audio")||-1!==this.opts.modes.indexOf("audio-only"),video:!(-1===this.opts.modes.indexOf("video-audio")&&-1===this.opts.modes.indexOf("video-only")&&-1===this.opts.modes.indexOf("picture"))&&{facingMode:this.opts.facingMode}}},o.start=function(){var e=this;if(!this.isSupported())return Promise.reject(new Error("Webcam access not supported"));this.webcamActive=!0;var t=this.getConstraints();return this.mediaDevices.getUserMedia(t).then(function(t){e.stream=t,e.setPluginState({cameraReady:!0})}).catch(function(t){e.setPluginState({cameraError:t})})},o.startRecording=function(){var e=this,t={},r=this.opts.preferredVideoMimeType;r&&MediaRecorder.isTypeSupported(r)&&_$getFileTypeExtension_205(r)&&(t.mimeType=r),this.recorder=new MediaRecorder(this.stream,t),this.recordingChunks=[],this.recorder.addEventListener("dataavailable",function(t){e.recordingChunks.push(t.data)}),this.recorder.start(),this.setPluginState({isRecording:!0})},o.stopRecording=function(){var e=this;return new Promise(function(t,r){e.recorder.addEventListener("stop",function(){t()}),e.recorder.stop()}).then(function(){return e.setPluginState({isRecording:!1}),e.getVideo()}).then(function(t){try{e.uppy.addFile(t)}catch(t){t.isRestriction||e.uppy.log(t)}}).then(function(){e.recordingChunks=null,e.recorder=null},function(t){throw e.recordingChunks=null,e.recorder=null,t})},o.stop=function(){this.stream.getAudioTracks().forEach(function(e){e.stop()}),this.stream.getVideoTracks().forEach(function(e){e.stop()}),this.webcamActive=!1,this.stream=null},o.getVideoElement=function(){return this.el.querySelector(".uppy-Webcam-video")},o.oneTwoThreeSmile=function(){var e=this;return new Promise(function(t,r){var n=e.opts.countdown,o=setInterval(function(){if(!e.webcamActive)return clearInterval(o),e.captureInProgress=!1,r(new Error("Webcam is not active"));n>0?(e.uppy.info(n+"...","warning",800),n--):(clearInterval(o),e.uppy.info(e.i18n("smile"),"success",1500),setTimeout(function(){return t()},1500))},1e3)})},o.takeSnapshot=function(){var e=this;this.captureInProgress||(this.captureInProgress=!0,this.opts.onBeforeSnapshot().catch(function(t){var r="object"==typeof t?t.message:t;return e.uppy.info(r,"error",5e3),Promise.reject(new Error("onBeforeSnapshot: "+r))}).then(function(){return e.getImage()}).then(function(t){e.captureInProgress=!1;try{e.uppy.addFile(t)}catch(t){t.isRestriction||e.uppy.log(t)}},function(t){throw e.captureInProgress=!1,t}))},o.getImage=function(){var e=this,t=this.getVideoElement();if(!t)return Promise.reject(new Error("No video element found, likely due to the Webcam tab being closed."));var r="cam-"+Date.now()+".jpg",n=t.videoWidth,o=t.videoHeight,i=document.createElement("canvas");return i.width=n,i.height=o,i.getContext("2d").drawImage(t,0,0),_$canvasToBlob_193(i,"image/jpeg").then(function(t){return{source:e.id,name:r,data:new Blob([t],{type:"image/jpeg"}),type:"image/jpeg"}})},o.getVideo=function(){var e=this.recordingChunks[0].type,t=_$getFileTypeExtension_205(e);if(!t)return Promise.reject(new Error('Could not retrieve recording: Unsupported media type "'+e+'"'));var r="webcam-"+Date.now()+"."+t,n=new Blob(this.recordingChunks,{type:e}),o={source:this.id,name:r,data:new Blob([n],{type:e}),type:e};return Promise.resolve(o)},o.focus=function(){var e=this;this.opts.countdown&&setTimeout(function(){e.uppy.info(e.i18n("smile"),"success",1500)},1e3)},o.render=function(e){this.webcamActive||this.start();var t=this.getPluginState();return t.cameraReady?__h_226(_$CameraScreen_222,___extends_226({},t,{onSnapshot:this.takeSnapshot,onStartRecording:this.startRecording,onStopRecording:this.stopRecording,onFocus:this.focus,onStop:this.stop,i18n:this.i18n,modes:this.opts.modes,supportsRecording:_$supportsMediaRecorder_227(),recording:t.isRecording,mirror:this.opts.mirror,src:this.stream})):__h_226(_$PermissionsScreen_223,{icon:_$CameraIcon_221,i18n:this.i18n})},o.install=function(){this.setPluginState({cameraReady:!1});var e=this.opts.target;e&&this.mount(e,this)},o.uninstall=function(){this.stream&&this.stop(),this.unmount()},n}(__Plugin_226),___class_226.VERSION=_$package_228.version,___temp_226),_$uppy_232={};_$uppy_232.Core=_$lib_101,_$uppy_232.debugLogger=_$uppy_232.Core.debugLogger,_$uppy_232.server=_$lib_97,_$uppy_232.views={ProviderView:_$lib_163},_$uppy_232.DefaultStore=_$lib_171,_$uppy_232.ReduxStore=_$lib_173,_$uppy_232.Dashboard=_$lib_120,_$uppy_232.DragDrop=_$lib_130,_$uppy_232.FileInput=_$lib_134,_$uppy_232.Informer=_$lib_146,_$uppy_232.ProgressBar=_$lib_150,_$uppy_232.StatusBar=_$lib_169,_$uppy_232.Dropbox=_$lib_132,_$uppy_232.GoogleDrive=_$lib_144,_$uppy_232.Instagram=_$lib_148,_$uppy_232.Url=_$lib_188,_$uppy_232.Webcam=_$lib_226,_$uppy_232.AwsS3=_$lib_91,_$uppy_232.AwsS3Multipart=_$lib_89,_$uppy_232.Transloadit=_$lib_182,_$uppy_232.Tus=_$lib_185,_$uppy_232.XHRUpload=_$lib_229,_$uppy_232.Form=_$lib_136,_$uppy_232.GoldenRetriever=_$lib_141,_$uppy_232.ReduxDevTools=_$lib_165,_$uppy_232.ThumbnailGenerator=_$lib_176,_$uppy_232.locales={};var _$bundle_231={};return _$bundle_231=_$uppy_232,_$bundle_231}); -//# sourceMappingURL=uppy.min.js.map
\ No newline at end of file |