-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
93 lines (85 loc) · 24 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta content='width=device-width, initial-scale=1, maximum-scale=1' name='viewport' />
<meta name="apple-mobile-web-app-capable" content="yes">
<title>Oblique Strategies Website</title>
<link rel="icon" href="ext/icons/icon128.png" />
<link rel="apple-touch-icon" href="assets/img/apple-icon-180x180.png"/>
<link rel="apple-touch-icon" sizes="76x76" href="assets/img/apple-icon-76x76.png"/>
<link rel="apple-touch-icon" sizes="120x120" href="assets/img/apple-icon-120x120.png"/>
<link rel="apple-touch-icon" sizes="152x152" href="assets/img/apple-icon-152x152.png"/>
<link rel="apple-touch-icon" sizes="167x167" href="assets/img/apple-icon-167x167.png"/>
<style>body,html{height:auto;height:100%;overflow:hidden;font-size:16px}body{font-family:Helvetica,arial,sans;background-color:hsla(0,0%,100%,.9);color:rgba(38,50,56,.9);background-size:cover;margin:0;line-height:1.5}body.ready{-webkit-transition:background-image,background-color .4s ease-in-out;transition:background-image,background-color .4s ease-in-out}body.dark{background-color:hsla(0,0%,100%,.9);color:hsla(0,0%,100%,.9)}.container{height:100%;z-index:1;position:relative}.container,.container h1{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.container h1{margin:auto;font-size:2rem;line-height:1.4;text-align:center;font-weight:400;white-space:pre-wrap;width:26em;height:15em;border-radius:1em;padding:0 2em;box-sizing:border-box;background:hsla(0,0%,100%,.9)}.container h1 span{margin:auto}@media (max-width:48em){.container h1{font-size:1.625em;width:18em;height:12em}}@media (max-width:32em){.container h1{font-size:1.25em;width:80%;height:12em}}body.dark .container h1{background:rgba(38,50,56,.9)}body.ready .container h1{-webkit-transition:color .4s ease-in-out;transition:color .4s ease-in-out}div.bg{position:fixed;top:0;right:0;bottom:0;left:0;-webkit-transition:opacity 1s ease-in;transition:opacity 1s ease-in;background-size:cover}.bg.fade-in{opacity:0}.colors{position:absolute;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;width:50%;left:25%;bottom:4em;height:120px;z-index:1}.colors,.colors>div{box-sizing:border-box}.colors>div{width:100px;height:100px;margin:10px}.svg-icon{width:2em;height:2em}.svg-icon circle,.svg-icon path,.svg-icon polygon,.svg-icon rect{transition:all .2s ease-in}.chrome .svg-icon{width:3em;height:3em}.svg-icon circle{stroke-width:1}.svg-icon path,.svg-icon polygon,.svg-icon rect{fill:#bababa}.svg-icon circle{stroke:#bababa}@media (max-width:17em){.container h1{max-width:100%}}.controls{position:absolute;bottom:1rem;right:1rem;z-index:1}.controls a{display:inline-block;margin-left:1.5rem;transition:color .3s ease-in;text-decoration:none;color:#bababa}.controls a.extension span{position:relative;top:-.5rem}.controls a:hover{color:#111}.controls a:hover .svg-icon path,.controls a:hover .svg-icon polygon,.controls a:hover .svg-icon rect{fill:#111}.controls a:hover .svg-icon circle{stroke:#111}body.dark .controls a{color:#888}body.dark .svg-icon path,body.dark .svg-icon polygon,body.dark .svg-icon rect{fill:#888}body.dark .svg-icon circle{stroke:#888}body.dark .controls a:hover{color:#eaeaea}body.dark .controls a:hover .svg-icon path,body.dark .controls a:hover .svg-icon polygon,body.dark .controls a:hover .svg-icon rect{fill:#eaeaea}body.dark .controls a:hover .svg-icon circle{stroke:#eaeaea}.about-modal{position:fixed;z-index:1;display:flex;top:0;left:0;bottom:0;right:0;background:hsla(0,0%,100%,.9);transform:translateY(100%);transition:all .3s ease-in-out}.about-modal .inner{margin:auto;padding:2em;background:#fff;border:1px solid #b0bec5;color:#455a64;width:400px;opacity:0;transition:all .4s ease-out;border-radius:4px}.about-modal .inner p{margin-bottom:0}.about-modal .inner h2{margin-top:0}.about-modal .inner a{color:#111;text-decoration:none;border-bottom:2px solid #b3e5fc;box-shadow:inset 0 -4px 0 #b3e5fc;transition:background .1s ease-out}.about-modal .inner a:hover{background:#b3e5fc}.about-modal .inner h2 small{font-weight:400;font-size:.4em;font-family:Menlo,Monaco,Consolas,Courier New,monospace;padding:2px 4px;color:#ab47bc;background-color:#f3e5f5}.about-modal .inner hr{border-style:solid;margin:1.5em 0;color:#b0bec5}.about-modal input[type=checkbox]{position:relative;top:-2px}body.dark .about-modal{background:rgba(0,0,0,.75)}body.show-about .about-modal{transform:translateY(0)}body.show-about .about-modal .inner{opacity:1}body.show-about .container{filter:blur(1px)}
/*# sourceMappingURL=main.css.map */
</style>
</head>
<body>
<div class="container">
<h1><span id="strategy"></span></h1>
</div>
<div class="about-modal">
<div class="inner">
<h2><a href="http://obliquestrategies.website">Oblique Strategies Website</a> <small id="ext-version"></small></h2>
<p>Based on <a href="https://en.wikipedia.org/wiki/Oblique_Strategies">Oblique Strategies</a> by Brian Eno and Peter Schmidt.</p>
<p>Credit to <a href="https://twitter.com/ceejbot">@ceejbot</a> for first adapting the cards into a <a href="https://github.com/ceejbot/oblique-strategies">node module</a>. This project is <a href="https://github.com/wookiehangover/oblique-tab">open source</a>.</p>
<hr/>
<p><label><input type="checkbox" name="unsplash" /> Use images from <a href="https://unsplash.com/">unsplash</a></label></p>
</div>
</div>
<div class="controls">
<a href="#" class="about">
<svg class="svg-icon" viewBox="0 0 20 20">
<path fill="none" d="M3.936,7.979c-1.116,0-2.021,0.905-2.021,2.021s0.905,2.021,2.021,2.021S5.957,11.116,5.957,10
S5.052,7.979,3.936,7.979z M3.936,11.011c-0.558,0-1.011-0.452-1.011-1.011s0.453-1.011,1.011-1.011S4.946,9.441,4.946,10
S4.494,11.011,3.936,11.011z M16.064,7.979c-1.116,0-2.021,0.905-2.021,2.021s0.905,2.021,2.021,2.021s2.021-0.905,2.021-2.021
S17.181,7.979,16.064,7.979z M16.064,11.011c-0.559,0-1.011-0.452-1.011-1.011s0.452-1.011,1.011-1.011S17.075,9.441,17.075,10
S16.623,11.011,16.064,11.011z M10,7.979c-1.116,0-2.021,0.905-2.021,2.021S8.884,12.021,10,12.021s2.021-0.905,2.021-2.021
S11.116,7.979,10,7.979z M10,11.011c-0.558,0-1.011-0.452-1.011-1.011S9.442,8.989,10,8.989S11.011,9.441,11.011,10
S10.558,11.011,10,11.011z"></path>
</svg>
</a>
<a href="#" class="theme">
<svg class="svg-icon" viewBox="0 0 20 20">
<path fill="none" d="M3.183,9.381H0.704v1.239h2.479V9.381z M2.989,16.135l0.876,0.877l1.752-1.754l-0.876-0.875L2.989,16.135z
M17.012,3.866l-0.877-0.876l-1.752,1.752l0.875,0.876L17.012,3.866z M10.62,0.705H9.38v2.479h1.239V0.705z M5.618,4.742
L3.865,2.989L2.989,3.866l1.753,1.752L5.618,4.742z M14.383,15.258l1.752,1.754l0.877-0.877l-1.754-1.752L14.383,15.258z
M9.38,19.297h1.239v-2.48H9.38V19.297z M16.816,9.381v1.239h2.479V9.381H16.816z M10,5.042c-2.738,0-4.958,2.22-4.958,4.958
c0,2.738,2.22,4.959,4.958,4.959c2.738,0,4.958-2.221,4.958-4.959C14.958,7.263,12.738,5.042,10,5.042z M10,13.727
c-2.058,0-3.726-1.668-3.726-3.727c0-2.058,1.668-3.726,3.726-3.726c2.059,0,3.727,1.668,3.727,3.726
C13.727,12.059,12.059,13.727,10,13.727z"></path>
</svg>
</a>
<a target="_blank" class="extension" href="https://chrome.google.com/webstore/detail/oblique-strategies-tab/mgmdhihgmkhangpfokjdhfhjaiadpopd">
<svg class="svg-icon" viewBox="0 0 20 20">
<path fill="none" d="M18.208,2.958H8.875V1.792c0-0.644-0.522-1.167-1.167-1.167H1.875c-0.644,0-1.167,0.522-1.167,1.167v16.333
c0,0.645,0.522,1.166,1.167,1.166h16.333c0.645,0,1.167-0.521,1.167-1.166v-14C19.375,3.48,18.853,2.958,18.208,2.958z
M18.208,17.542c0,0.322-0.261,0.583-0.583,0.583H2.458c-0.323,0-0.583-0.261-0.583-0.583V6.458h16.333V17.542z M17.625,5.292
H1.875V2.375c0-0.323,0.261-0.583,0.583-0.583h4.667c0.323,0,0.583,0.261,0.583,0.583v1.75h9.917c0.322,0,0.583,0.261,0.583,0.583
C18.208,5.031,17.947,5.292,17.625,5.292z"></path>
</svg>
<span>Get the Chrome Extension</span>
</a>
</div>
<div class="bg fade-in"></div>
<script>(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
var ob=require("oblique-strategies"),setBackground=require("./unsplash-background"),qs=document.querySelector.bind(document);exports.renderCard=function(){var e=ob.draw(),t=document.getElementById("strategy");t.innerHTML=String(e)},exports.handleThemeClick=function(e){var t=qs(".controls .theme");t.addEventListener("click",function(t){t.preventDefault();var n=document.body;n.classList.toggle("dark");var r=n.classList.contains("dark")?"dark":"light";e&&e(r)})},exports.handleAboutClick=function(){var e=document.body,t=qs(".controls .about");t.addEventListener("click",function(t){t.preventDefault(),e.classList.toggle("show-about")}),document.body.addEventListener("keyup",function(t){27===t.keyCode&&e.classList.remove("show-about")});var n=qs(".about-modal");n.addEventListener("click",function(t){t.preventDefault(),e.classList.remove("show-about")},!1);var r=qs(".about-modal .inner");r.addEventListener("click",function(e){e.stopPropagation()},!1)},exports.setUnsplash=function(e,t){var n=qs('input[name="unsplash"]');e===!0&&(setBackground(),n.setAttribute("checked",!0)),n.addEventListener("change",function(e){var n;e.currentTarget.checked?setBackground():(n=document.querySelector(".bg"))&&(n.style.background=null),t&&t(e.currentTarget.checked)},!0)},exports.updateVersion=function(e){var t=document.getElementById("ext-version");t.innerText="v"+e};
},{"./unsplash-background":3,"oblique-strategies":7}],2:[function(require,module,exports){
var version=require("../../ext/manifest.json").version,helpers=require("./helpers");document.addEventListener("DOMContentLoaded",function(){var e=localStorage.getItem("theme");"dark"===e&&document.body.classList.toggle("dark"),setTimeout(function(){helpers.renderCard(),document.body.classList.add("ready")},1e3),helpers.updateVersion(version),helpers.handleAboutClick(),helpers.handleThemeClick(function(e){window.localStorage.setItem("theme",e)});var t=JSON.parse(localStorage.getItem("unsplash"));helpers.setUnsplash(t,function(e){window.localStorage.setItem("unsplash",e)})});
},{"../../ext/manifest.json":4,"./helpers":1}],3:[function(require,module,exports){
function appendImage(e){var o=new Image;o.src=e,imagesLoaded(o).on("done",function(){var o=document.querySelector(".bg");o.style.setProperty("background-image","url("+e+")"),setTimeout(function(){o.classList.remove("fade-in")},100)})}var imagesLoaded=require("imagesloaded");module.exports=function(){appendImage("https://unsplash.it/"+window.outerWidth+"/"+window.outerHeight+"/?random")};
},{"imagesloaded":6}],4:[function(require,module,exports){
module.exports={"name":"Oblique Strategies Tab","version":"2.4.2","manifest_version":2,"description":"A tab replacement based on Oblique Strategies by Brian Eno and Peter Schmidt","homepage_url":"http://obliquestrategies.website","icons":{"16":"icons/icon16.png","48":"icons/icon48.png","128":"icons/icon128.png"},"chrome_url_overrides":{"newtab":"index.html"},"permissions":["storage"]}
},{}],5:[function(require,module,exports){
!function(e){"use strict";function n(n){var t=e.event;return t.target=t.target||t.srcElement||n,t}var t=document.documentElement,o=function(){};t.addEventListener?o=function(e,n,t){e.addEventListener(n,t,!1)}:t.attachEvent&&(o=function(e,t,o){e[t+o]=o.handleEvent?function(){var t=n(e);o.handleEvent.call(o,t)}:function(){var t=n(e);o.call(e,t)},e.attachEvent("on"+t,e[t+o])});var c=function(){};t.removeEventListener?c=function(e,n,t){e.removeEventListener(n,t,!1)}:t.detachEvent&&(c=function(e,n,t){e.detachEvent("on"+n,e[n+t]);try{delete e[n+t]}catch(o){e[n+t]=void 0}});var i={bind:o,unbind:c};"function"==typeof define&&define.amd?define(i):"object"==typeof exports?module.exports=i:e.eventie=i}(window);
},{}],6:[function(require,module,exports){
!function(e,t){"use strict";"function"==typeof define&&define.amd?define(["eventEmitter/EventEmitter","eventie/eventie"],function(i,n){return t(e,i,n)}):"object"==typeof exports?module.exports=t(e,require("wolfy87-eventemitter"),require("eventie")):e.imagesLoaded=t(e,e.EventEmitter,e.eventie)}(window,function(e,t,i){"use strict";function n(e,t){for(var i in t)e[i]=t[i];return e}function o(e){return"[object Array]"===d.call(e)}function r(e){var t=[];if(o(e))t=e;else if("number"==typeof e.length)for(var i=0,n=e.length;n>i;i++)t.push(e[i]);else t.push(e);return t}function s(e,t,i){if(!(this instanceof s))return new s(e,t);"string"==typeof e&&(e=document.querySelectorAll(e)),this.elements=r(e),this.options=n({},this.options),"function"==typeof t?i=t:n(this.options,t),i&&this.on("always",i),this.getImages(),c&&(this.jqDeferred=new c.Deferred);var o=this;setTimeout(function(){o.check()})}function h(e){this.img=e}function f(e){this.src=e,p[e]=this}var c=e.jQuery,a=e.console,u="undefined"!=typeof a,d=Object.prototype.toString;s.prototype=new t,s.prototype.options={},s.prototype.getImages=function(){this.images=[];for(var e=0,t=this.elements.length;t>e;e++){var i=this.elements[e];"IMG"===i.nodeName&&this.addImage(i);var n=i.nodeType;if(n&&(1===n||9===n||11===n))for(var o=i.querySelectorAll("img"),r=0,s=o.length;s>r;r++){var h=o[r];this.addImage(h)}}},s.prototype.addImage=function(e){var t=new h(e);this.images.push(t)},s.prototype.check=function(){function e(e,o){return t.options.debug&&u&&a.log("confirm",e,o),t.progress(e),i++,i===n&&t.complete(),!0}var t=this,i=0,n=this.images.length;if(this.hasAnyBroken=!1,!n)return void this.complete();for(var o=0;n>o;o++){var r=this.images[o];r.on("confirm",e),r.check()}},s.prototype.progress=function(e){this.hasAnyBroken=this.hasAnyBroken||!e.isLoaded;var t=this;setTimeout(function(){t.emit("progress",t,e),t.jqDeferred&&t.jqDeferred.notify&&t.jqDeferred.notify(t,e)})},s.prototype.complete=function(){var e=this.hasAnyBroken?"fail":"done";this.isComplete=!0;var t=this;setTimeout(function(){if(t.emit(e,t),t.emit("always",t),t.jqDeferred){var i=t.hasAnyBroken?"reject":"resolve";t.jqDeferred[i](t)}})},c&&(c.fn.imagesLoaded=function(e,t){var i=new s(this,e,t);return i.jqDeferred.promise(c(this))}),h.prototype=new t,h.prototype.check=function(){var e=p[this.img.src]||new f(this.img.src);if(e.isConfirmed)return void this.confirm(e.isLoaded,"cached was confirmed");if(this.img.complete&&void 0!==this.img.naturalWidth)return void this.confirm(0!==this.img.naturalWidth,"naturalWidth");var t=this;e.on("confirm",function(e,i){return t.confirm(e.isLoaded,i),!0}),e.check()},h.prototype.confirm=function(e,t){this.isLoaded=e,this.emit("confirm",this,t)};var p={};return f.prototype=new t,f.prototype.check=function(){if(!this.isChecked){var e=new Image;i.bind(e,"load",this),i.bind(e,"error",this),e.src=this.src,this.isChecked=!0}},f.prototype.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},f.prototype.onload=function(e){this.confirm(!0,"onload"),this.unbindProxyEvents(e)},f.prototype.onerror=function(e){this.confirm(!1,"onerror"),this.unbindProxyEvents(e)},f.prototype.confirm=function(e,t){this.isConfirmed=!0,this.isLoaded=e,this.emit("confirm",this,t)},f.prototype.unbindProxyEvents=function(e){i.unbind(e.target,"load",this),i.unbind(e.target,"error",this)},s});
},{"eventie":5,"wolfy87-eventemitter":8}],7:[function(require,module,exports){
var strategies=["(Organic) machinery","A line has two sides","A very small object Its center","Abandon desire","Abandon normal instructions","Abandon normal instruments","Accept advice","Accretion","Adding on","Allow an easement (an easement is the abandonment of a stricture)","Always first steps","Always give yourself credit for having more than personality (given by Arto Lindsay)","Are there sections? Consider transitions","Ask people to work against their better judgement","Ask your body","Assemble some of the elements in a group and treat the group","Balance the consistency principle with the inconsistency principle","Be dirty","Be extravagant","Be less critical","Breathe more deeply","Bridges\n--build\n--burn","Cascades","Change ambiguities to specifics","Change instrument roles","Change nothing and continue with immaculate consistency","Change specifics to ambiguities","Children\n--speaking\n--singing","Cluster analysis","Consider different fading systems","Consider transitions","Consult other sources\n--promising\n--unpromising","Convert a melodic element into a rhythmic element","Courage!","Cut a vital connection","Decorate, decorate","Define an area as `safe' and use it as an anchor","Destroy\n-nothing\n-the most important thing","Discard an axiom","Disciplined self-indulgence","Disconnect from desire","Discover the recipes you are using and abandon them","Display your talent","Distort time","Do nothing for as long as possible","Do something boring","Do the last thing first","Do the washing up","Do the words need changing?","Do we need holes?","Don't avoid what is easy","Don't be frightened of cliches","Don't break the silence","Don't stress one thing more than another","Dont be afraid of things because they're easy to do","Dont be frightened to display your talents","Emphasize differences","Emphasize repetitions","Emphasize the flaws","Faced with a choice, do both (given by Dieter Rot)","Feed the recording back out of the medium","Fill every beat with something","Find a safe part and use it as an anchor","Get your neck massaged","Ghost echoes","Give the game away","Give way to your worst impulse","Go outside. Shut the door.","Go slowly all the way round the outside","Go to an extreme, come part way back","Honor thy mistake as a hidden intention","How would someone else do it?","How would you have done it?","Humanize something free of error","Idiot glee (?)","Imagine the piece as a set of disconnected events","In total darkness, or in a very large room, very quietly","Infinitesimal gradations","Intentions\n--nobility of\n--humility of\n--credibility of","Into the impossible","Is it finished?","Is something missing?","Is the information correct?","Is the style right?","Is there something missing","It is quite possible (after all)","It is simply a matter of work","Just carry on","Left channel, right channel, center channel","Listen to the quiet voice","Look at the order in which you do things","Look closely at the most embarrassing details & amplify them","Lost in useless territory","Lowest common denominator","Magnify the most difficult details","Make a blank valuable by putting it in an exquisite frame","Make a sudden, destructive unpredictable action; incorporate","Make an exhaustive list of everything you might do & do the last thing on the list","Make it more sensual","Make what's perfect more human","Mechanicalize something idiosyncratic","Move towards the unimportant","Mute and continue","Not building a wall but making a brick","Once the search has begun, something will be found","Only a part, not the whole","Only one element of each kind","Overtly resist change","Pae White's non-blank graphic metacard","Put in earplugs","Question the heroic","Reevaluation (a warm feeling)","Remember those quiet evenings","Remove a restriction","Remove ambiguities and convert to specifics","Remove specifics and convert to ambiguities","Repetition is a form of change","Retrace your steps","Reverse","Short circuit (example; a man eating peas with the idea that they will improve his virility shovels them straight into his lap)","Simple subtraction","Simply a matter of work","Slow preparation, fast execution","Spectrum analysis","State the problem as clearly as possible","Take a break","Take away the elements in order of apparent non-importance","Take away the important parts","Tape your mouth (given by Ritva Saarikko)","The inconsistency principle","The most important thing is the thing most easily forgotten","The tape is now the music","Think\n--inside the work\n--outside the work","Think of the radio","Tidy up","Towards the insignificant","Trust in the you of now","Try faking it (from Stewart Brand)","Turn it upside down","Twist the spine","Use 'unqualified' people","Use an old idea","Use an unacceptable color","Use cliches","Use fewer notes","Use filters","Use something nearby as a model","Use your own ideas","Voice your suspicions","Water","What are the sections sections of? Imagine a caterpillar moving","What are you really thinking about just now?","What context would look right?","What is the reality of the situation?","What is the simplest solution?","What mistakes did you make last time?","What to increase? What to reduce? What to maintain?","What would your closest friend do?","What wouldn't you do?","When is it for?","Where is the edge?","Which parts can be grouped?","Work at a different speed","Would anyone want it?","You are an engineer","You can only make one dot at a time","You don't have to be ashamed of using your own ideas","[blank white card]"];exports.strategies=strategies,exports.draw=function(){var e=Math.floor(Math.random()*(strategies.length+1));return strategies[e]};
},{}],8:[function(require,module,exports){
(function(){"use strict";function e(){}function t(e,t){for(var n=e.length;n--;)if(e[n].listener===t)return n;return-1}function n(e){return function(){return this[e].apply(this,arguments)}}var r=e.prototype,i=this,s=i.EventEmitter;r.getListeners=function(e){var t,n,r=this._getEvents();if(e instanceof RegExp){t={};for(n in r)r.hasOwnProperty(n)&&e.test(n)&&(t[n]=r[n])}else t=r[e]||(r[e]=[]);return t},r.flattenListeners=function(e){var t,n=[];for(t=0;t<e.length;t+=1)n.push(e[t].listener);return n},r.getListenersAsObject=function(e){var t,n=this.getListeners(e);return n instanceof Array&&(t={},t[e]=n),t||n},r.addListener=function(e,n){var r,i=this.getListenersAsObject(e),s="object"==typeof n;for(r in i)i.hasOwnProperty(r)&&-1===t(i[r],n)&&i[r].push(s?n:{listener:n,once:!1});return this},r.on=n("addListener"),r.addOnceListener=function(e,t){return this.addListener(e,{listener:t,once:!0})},r.once=n("addOnceListener"),r.defineEvent=function(e){return this.getListeners(e),this},r.defineEvents=function(e){for(var t=0;t<e.length;t+=1)this.defineEvent(e[t]);return this},r.removeListener=function(e,n){var r,i,s=this.getListenersAsObject(e);for(i in s)s.hasOwnProperty(i)&&(r=t(s[i],n),-1!==r&&s[i].splice(r,1));return this},r.off=n("removeListener"),r.addListeners=function(e,t){return this.manipulateListeners(!1,e,t)},r.removeListeners=function(e,t){return this.manipulateListeners(!0,e,t)},r.manipulateListeners=function(e,t,n){var r,i,s=e?this.removeListener:this.addListener,o=e?this.removeListeners:this.addListeners;if("object"!=typeof t||t instanceof RegExp)for(r=n.length;r--;)s.call(this,t,n[r]);else for(r in t)t.hasOwnProperty(r)&&(i=t[r])&&("function"==typeof i?s.call(this,r,i):o.call(this,r,i));return this},r.removeEvent=function(e){var t,n=typeof e,r=this._getEvents();if("string"===n)delete r[e];else if(e instanceof RegExp)for(t in r)r.hasOwnProperty(t)&&e.test(t)&&delete r[t];else delete this._events;return this},r.removeAllListeners=n("removeEvent"),r.emitEvent=function(e,t){var n,r,i,s,o,u=this.getListenersAsObject(e);for(s in u)if(u.hasOwnProperty(s))for(n=u[s].slice(0),i=n.length;i--;)r=n[i],r.once===!0&&this.removeListener(e,r.listener),o=r.listener.apply(this,t||[]),o===this._getOnceReturnValue()&&this.removeListener(e,r.listener);return this},r.trigger=n("emitEvent"),r.emit=function(e){var t=Array.prototype.slice.call(arguments,1);return this.emitEvent(e,t)},r.setOnceReturnValue=function(e){return this._onceReturnValue=e,this},r._getOnceReturnValue=function(){return this.hasOwnProperty("_onceReturnValue")?this._onceReturnValue:!0},r._getEvents=function(){return this._events||(this._events={})},e.noConflict=function(){return i.EventEmitter=s,e},"function"==typeof define&&define.amd?define(function(){return e}):"object"==typeof module&&module.exports?module.exports=e:i.EventEmitter=e}).call(this);
},{}]},{},[2])
//# sourceMappingURL=dist/main.map.json</script>
</body>
</html>