jskit_rails 1.0.9 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 61de66fb2210341c4c8f9ec6ec8db4846672b4c6
4
- data.tar.gz: b8fc20d83af93bdbd190622f0753614fcc7512ce
3
+ metadata.gz: 9beb5d2740de5a1adf241aebe5c298ebdb13d71f
4
+ data.tar.gz: 32f4e95c3b3cb6059eac8e495b1673d129a57b83
5
5
  SHA512:
6
- metadata.gz: ac225237eb732cb39e55451423e1efa0083c7cb4178a99970b859528d7727724923b8b81117aeaaab7cf520069565bab8f9bacdfc4b62e334129779853907917
7
- data.tar.gz: 324ea12b42ece035acfefc52ec02c99887bb95e33f545a017bf1d64c58370ab32bfe28f3d2a642a1de158154cdf8e96e2bb4459c4502583e7250e794b03523a7
6
+ metadata.gz: c3615446c81229d8da9c9552be8872a66d700d42801977a6abe3cc40e4d8301f32cde91f9697b1553593ac191214efdd85945542a4249d0660364526a03a324a
7
+ data.tar.gz: a3b2438f97ec481a185df9fbcbfa1ec31ee9c8feaa1ac0af5736907d04818e7087b7d5293b67fd36fe3cbaec0e0d51b0a841a20e3f5be3b84e9d8500b719e35a
@@ -1,260 +1,5 @@
1
1
  (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);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.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){
2
2
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){
3
- var def = require("./polyfill");
4
- var _ = require("lodash");
5
- var BaseController = require("./controller");
6
- var Dispatcher = require("backbone-events-standalone");
7
-
8
- /**
9
- Application object which serves as a namespace
10
- and interface to create and interact with controllers.
11
-
12
- @class Application
13
- */
14
- function Application() {
15
- /**
16
- Controllers namespace that contains
17
- controller instances.
18
-
19
- @property Controllers
20
- @type {Object}
21
- @default {}
22
- */
23
- this.Controllers = {};
24
- /**
25
- Global dispatcher to handle communication
26
- between components of the application.
27
-
28
- @property Dispatcher
29
- */
30
- this.Dispatcher = Dispatcher;
31
- }
32
-
33
- /**
34
- Create a new controller with the given attributes
35
- and return a new instance.
36
-
37
- @private
38
- @method createControllerInstance
39
- @param attributes {Object} Attributes to assign to the new Controller
40
- @return {Controller} new Controller instance
41
- */
42
- function createControllerInstance(attributes, name) {
43
- function Controller() { BaseController.call(this); }
44
- Controller.prototype = Object.create(BaseController.prototype);
45
- Controller.prototype.constructor = Controller;
46
- _.extend(Controller.prototype, attributes);
47
- this[name + "Controller"] = Controller;
48
- return new Controller;
49
- }
50
-
51
- /**
52
- Register each action with the Dispatcher.
53
-
54
- @private
55
- @method registerControllerActions
56
- @param controller {Controller} Controller whose actions you wish to register.
57
- @param actions {Array} Actions you wish to register.
58
- @param name {String} Name of the controller to namespace the event.
59
- @param namespace {String} Namespace of the event
60
- */
61
- function registerControllerActions(controller, actions, name, namespace) {
62
- _(actions).each(function(action) {
63
- if (!controller[action] || !_.isFunction(controller[action])) {
64
- throw new Error("'" + name + "' Controller has an action '" + action + "' defined with no corresponding method");
65
- }
66
-
67
- var eventName = _([namespace, "controller", underscoreName(name), action]).compact().join(":");
68
- this.Dispatcher.on(eventName, controller[action], controller);
69
- }, this);
70
- }
71
-
72
- function underscoreName(name) {
73
- return name.replace(/([A-Z])/g, " $1").replace(/^\s?/, "").replace(/-|\s/g, "_").toLowerCase();
74
- }
75
-
76
- /**
77
- Register application controller actions with the Dispatcher.
78
-
79
- @private
80
- @method registerApplicationControllerActions
81
- @param controller {Controller} Controller whose actions you wish to register.
82
- @param namespace {String} Namespace of the event
83
- */
84
- function registerApplicationControllerActions(controller, namespace) {
85
- if (!controller.init) throw new Error("'Application' Controller: init is undefined");
86
- var eventName = _([namespace, "controller", "all"]).compact().join(":");
87
- this.Dispatcher.on(eventName, controller.init, controller);
88
- }
89
-
90
- /**
91
- Create a new controller instance on the
92
- Controllers namespace with the given name
93
- and attributes. Register all the controller's
94
- actions with the Dispatcher.
95
-
96
- @method createController
97
- @param name {String} Name of the controller
98
- @return {Controller}
99
- */
100
- def(Application, "createController", function(name, attributes) {
101
- var controller = createControllerInstance.call(this, attributes, name);
102
- registerControllerActions.call(this, controller, attributes.actions, name, attributes.namespace);
103
- if (name.match(/^Application$/i)) registerApplicationControllerActions.call(this, controller, attributes.namespace);
104
- return this.Controllers[name] = controller;
105
- });
106
-
107
- module.exports = Application;
108
-
109
- }).call(this,require("1YiZ5S"),typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/application.js","/")
110
- },{"./controller":2,"./polyfill":4,"1YiZ5S":10,"backbone-events-standalone":6,"buffer":7,"lodash":11}],2:[function(require,module,exports){
111
- (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){
112
- var def = require("./polyfill");
113
- var _ = require("lodash");
114
- /**
115
- Object which contains actions to be triggered by
116
- the global dispatcher.
117
-
118
- @class Controller
119
- */
120
- function Controller() {
121
- this.initialize();
122
- _.bindAll.apply(this, [this].concat(_.functions(this)));
123
- }
124
-
125
- /**
126
- By default initialize commits no operation.
127
- This method is a post-instantiation hook
128
- that will be called to do any setup needed
129
- for the controller.
130
-
131
- @method initialize
132
- */
133
- def(Controller, "initialize", function() {});
134
-
135
- /**
136
- Array of methods on this controller that shoul
137
- fire when action events are triggered.
138
-
139
- @property actions
140
- @type {Array}
141
- @default []
142
- */
143
- def(Controller, 'actions', [], true, true, true);
144
-
145
- module.exports = Controller;
146
-
147
- }).call(this,require("1YiZ5S"),typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/controller.js","/")
148
- },{"./polyfill":4,"1YiZ5S":10,"buffer":7,"lodash":11}],3:[function(require,module,exports){
149
- (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){
150
- var Application = require("./application");
151
- /**
152
- Global object to interface with JSKit.
153
-
154
- @class JSKit
155
- */
156
- global.JSKit = {
157
- /**
158
- Create a controller and wire up it's actions.
159
-
160
- @method createApplication
161
- @return {Application} Application object
162
- */
163
- createApplication: function() {
164
- return new Application;
165
- }
166
- };
167
-
168
- }).call(this,require("1YiZ5S"),typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/fake_48c770cd.js","/")
169
- },{"./application":1,"1YiZ5S":10,"buffer":7}],4:[function(require,module,exports){
170
- (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){
171
- // ES5 15.2.3.5 Object.create ( O [, Properties] )
172
- if (typeof Object.create !== "function") {
173
- Object.create = function (prototype, properties) {
174
- if (typeof prototype !== "object") { throw new Error("Object.create(prototype, properties): prototype is not an Object"); }
175
- function Ctor() {}
176
- Ctor.prototype = prototype;
177
- var o = new Ctor();
178
- if (prototype) { o.constructor = Ctor; }
179
- if (properties !== undefined) {
180
- if (properties !== Object(properties)) { throw new Error("Object.create(prototype, properties): properties is not an Object"); }
181
- Object.defineProperties(o, properties);
182
- }
183
- return o;
184
- };
185
- }
186
-
187
- // ES 15.2.3.6 Object.defineProperty ( O, P, Attributes )
188
- // Partial support for most common case - getters, setters, and values
189
- (function() {
190
- if (!Object.defineProperty ||
191
- !(function () { try { Object.defineProperty({}, "x", {}); return true; } catch (e) { return false; } } ())) {
192
- var orig = Object.defineProperty;
193
- Object.defineProperty = function (o, prop, desc) {
194
- // In IE8 try built-in implementation for defining properties on DOM prototypes.
195
- if (orig) { try { return orig(o, prop, desc); } catch (e) {} }
196
-
197
- if (o !== Object(o)) { throw new Error("Object.defineProperty called on non-object"); }
198
- if (Object.prototype.__defineGetter__ && ("get" in desc)) {
199
- Object.prototype.__defineGetter__.call(o, prop, desc.get);
200
- }
201
- if (Object.prototype.__defineSetter__ && ("set" in desc)) {
202
- Object.prototype.__defineSetter__.call(o, prop, desc.set);
203
- }
204
- if ("value" in desc) {
205
- o[prop] = desc.value;
206
- }
207
- return o;
208
- };
209
- }
210
- }());
211
-
212
- /**
213
- Return the given property or a default value.
214
-
215
- @private
216
- @method setDefault
217
- @param property {*} Variable to return unless it's undefined
218
- @param defaultValue {*} Value to return if property is undefined
219
- @return {*}
220
- */
221
- function setDefault(property, defaultValue) {
222
- if (typeof property === "undefined") {
223
- return defaultValue;
224
- } else {
225
- return property;
226
- }
227
- }
228
-
229
- /**
230
- Define a property on a given constructor's prototype
231
- with the given name and value. You can optionally set
232
- the writeable, configurable, and enumerable values.
233
-
234
- @method def
235
- @param constructor {Object} Constructor to define a property on
236
- @param propertyName {String} Name of the property to define
237
- @param value {*} Value of the property
238
- @param writeable {Boolean} override the default writeable value (false)
239
- @param configurable {Boolean} override the default configurable value (false)
240
- @param enumerable {Boolean} override the default enumerable value (false)
241
- */
242
- module.exports = function(constructor, propertyName, value, writeable, configurable, enumerable) {
243
- writeable = setDefault(writeable, false);
244
- configurable = setDefault(configurable, false);
245
- enumerable = setDefault(enumerable, false);
246
-
247
- Object.defineProperty(constructor.prototype, propertyName, {
248
- writeable: writeable,
249
- configurable: configurable,
250
- enumerable: enumerable,
251
- value: value
252
- });
253
- };
254
-
255
- }).call(this,require("1YiZ5S"),typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/polyfill.js","/")
256
- },{"1YiZ5S":10,"buffer":7}],5:[function(require,module,exports){
257
- (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){
258
3
  /**
259
4
  * Standalone extraction of Backbone.Events, no external dependency required.
260
5
  * Degrades nicely when Backone/underscore are already available in the current
@@ -533,13 +278,13 @@ module.exports = function(constructor, propertyName, value, writeable, configura
533
278
  }
534
279
  })(this);
535
280
 
536
- }).call(this,require("1YiZ5S"),typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../node_modules/backbone-events-standalone/backbone-events-standalone.js","/../node_modules/backbone-events-standalone")
537
- },{"1YiZ5S":10,"buffer":7}],6:[function(require,module,exports){
281
+ }).call(this,require("oMfpAn"),typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../../node_modules/backbone-events-standalone/backbone-events-standalone.js","/../../node_modules/backbone-events-standalone")
282
+ },{"buffer":3,"oMfpAn":6}],2:[function(require,module,exports){
538
283
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){
539
284
  module.exports = require('./backbone-events-standalone');
540
285
 
541
- }).call(this,require("1YiZ5S"),typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../node_modules/backbone-events-standalone/index.js","/../node_modules/backbone-events-standalone")
542
- },{"./backbone-events-standalone":5,"1YiZ5S":10,"buffer":7}],7:[function(require,module,exports){
286
+ }).call(this,require("oMfpAn"),typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../../node_modules/backbone-events-standalone/index.js","/../../node_modules/backbone-events-standalone")
287
+ },{"./backbone-events-standalone":1,"buffer":3,"oMfpAn":6}],3:[function(require,module,exports){
543
288
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){
544
289
  /*!
545
290
  * The buffer module from node.js, for the browser.
@@ -1651,8 +1396,8 @@ function assert (test, message) {
1651
1396
  if (!test) throw new Error(message || 'Failed assertion')
1652
1397
  }
1653
1398
 
1654
- }).call(this,require("1YiZ5S"),typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../node_modules/gulp-browserify/node_modules/browserify/node_modules/buffer/index.js","/../node_modules/gulp-browserify/node_modules/browserify/node_modules/buffer")
1655
- },{"1YiZ5S":10,"base64-js":8,"buffer":7,"ieee754":9}],8:[function(require,module,exports){
1399
+ }).call(this,require("oMfpAn"),typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../../node_modules/gulp-browserify/node_modules/browserify/node_modules/buffer/index.js","/../../node_modules/gulp-browserify/node_modules/browserify/node_modules/buffer")
1400
+ },{"base64-js":4,"buffer":3,"ieee754":5,"oMfpAn":6}],4:[function(require,module,exports){
1656
1401
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){
1657
1402
  var lookup = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
1658
1403
 
@@ -1775,8 +1520,8 @@ var lookup = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
1775
1520
  exports.fromByteArray = uint8ToBase64
1776
1521
  }(typeof exports === 'undefined' ? (this.base64js = {}) : exports))
1777
1522
 
1778
- }).call(this,require("1YiZ5S"),typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../node_modules/gulp-browserify/node_modules/browserify/node_modules/buffer/node_modules/base64-js/lib/b64.js","/../node_modules/gulp-browserify/node_modules/browserify/node_modules/buffer/node_modules/base64-js/lib")
1779
- },{"1YiZ5S":10,"buffer":7}],9:[function(require,module,exports){
1523
+ }).call(this,require("oMfpAn"),typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../../node_modules/gulp-browserify/node_modules/browserify/node_modules/buffer/node_modules/base64-js/lib/b64.js","/../../node_modules/gulp-browserify/node_modules/browserify/node_modules/buffer/node_modules/base64-js/lib")
1524
+ },{"buffer":3,"oMfpAn":6}],5:[function(require,module,exports){
1780
1525
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){
1781
1526
  exports.read = function(buffer, offset, isLE, mLen, nBytes) {
1782
1527
  var e, m,
@@ -1863,8 +1608,8 @@ exports.write = function(buffer, value, offset, isLE, mLen, nBytes) {
1863
1608
  buffer[offset + i - d] |= s * 128;
1864
1609
  };
1865
1610
 
1866
- }).call(this,require("1YiZ5S"),typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../node_modules/gulp-browserify/node_modules/browserify/node_modules/buffer/node_modules/ieee754/index.js","/../node_modules/gulp-browserify/node_modules/browserify/node_modules/buffer/node_modules/ieee754")
1867
- },{"1YiZ5S":10,"buffer":7}],10:[function(require,module,exports){
1611
+ }).call(this,require("oMfpAn"),typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../../node_modules/gulp-browserify/node_modules/browserify/node_modules/buffer/node_modules/ieee754/index.js","/../../node_modules/gulp-browserify/node_modules/browserify/node_modules/buffer/node_modules/ieee754")
1612
+ },{"buffer":3,"oMfpAn":6}],6:[function(require,module,exports){
1868
1613
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){
1869
1614
  // shim for using process in browser
1870
1615
 
@@ -1930,8 +1675,8 @@ process.chdir = function (dir) {
1930
1675
  throw new Error('process.chdir is not supported');
1931
1676
  };
1932
1677
 
1933
- }).call(this,require("1YiZ5S"),typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../node_modules/gulp-browserify/node_modules/browserify/node_modules/process/browser.js","/../node_modules/gulp-browserify/node_modules/browserify/node_modules/process")
1934
- },{"1YiZ5S":10,"buffer":7}],11:[function(require,module,exports){
1678
+ }).call(this,require("oMfpAn"),typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../../node_modules/gulp-browserify/node_modules/browserify/node_modules/process/browser.js","/../../node_modules/gulp-browserify/node_modules/browserify/node_modules/process")
1679
+ },{"buffer":3,"oMfpAn":6}],7:[function(require,module,exports){
1935
1680
  (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){
1936
1681
  /**
1937
1682
  * @license
@@ -8719,5 +8464,131 @@ process.chdir = function (dir) {
8719
8464
  }
8720
8465
  }.call(this));
8721
8466
 
8722
- }).call(this,require("1YiZ5S"),typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../node_modules/lodash/dist/lodash.js","/../node_modules/lodash/dist")
8723
- },{"1YiZ5S":10,"buffer":7}]},{},[3])
8467
+ }).call(this,require("oMfpAn"),typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../../node_modules/lodash/dist/lodash.js","/../../node_modules/lodash/dist")
8468
+ },{"buffer":3,"oMfpAn":6}],8:[function(require,module,exports){
8469
+ (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){
8470
+ "use strict";
8471
+ Object.defineProperties(exports, {
8472
+ default: {get: function() {
8473
+ return $__default;
8474
+ }},
8475
+ __esModule: {value: true}
8476
+ });
8477
+ var $__lodash__,
8478
+ $__backbone_45_events_45_standalone__,
8479
+ $__controller__,
8480
+ $__def__;
8481
+ var _ = ($__lodash__ = require("lodash"), $__lodash__ && $__lodash__.__esModule && $__lodash__ || {default: $__lodash__}).default;
8482
+ var Dispatcher = ($__backbone_45_events_45_standalone__ = require("backbone-events-standalone"), $__backbone_45_events_45_standalone__ && $__backbone_45_events_45_standalone__.__esModule && $__backbone_45_events_45_standalone__ || {default: $__backbone_45_events_45_standalone__}).default;
8483
+ var BaseController = ($__controller__ = require("./controller"), $__controller__ && $__controller__.__esModule && $__controller__ || {default: $__controller__}).default;
8484
+ var def = ($__def__ = require("./def"), $__def__ && $__def__.__esModule && $__def__ || {default: $__def__}).default;
8485
+ function createControllerInstance(attributes, name) {
8486
+ var Controller = function Controller() {
8487
+ $traceurRuntime.defaultSuperCall(this, $Controller.prototype, arguments);
8488
+ };
8489
+ var $Controller = Controller;
8490
+ ($traceurRuntime.createClass)(Controller, {}, {}, BaseController);
8491
+ _.extend(Controller.prototype, attributes);
8492
+ this[name + "Controller"] = Controller;
8493
+ return new Controller;
8494
+ }
8495
+ function underscoreName(name) {
8496
+ return name.replace(/([A-Z])/g, " $1").replace(/^\s?/, "").replace(/-|\s/g, "_").toLowerCase();
8497
+ }
8498
+ function ensureActionIsDefined(controller, action, method, name) {
8499
+ if (!controller[method] || !_.isFunction(controller[method])) {
8500
+ throw new Error("'" + name + "' Controller has an action '" + action + "' defined with no corresponding method");
8501
+ }
8502
+ }
8503
+ function registerControllerEvent(controller, action, method, name, namespace) {
8504
+ var eventName = _([namespace, "controller", underscoreName(name), action]).compact().join(":");
8505
+ this.Dispatcher.on(eventName, controller[method], controller);
8506
+ }
8507
+ function registerControllerActions(controller, actions, name, namespace) {
8508
+ var $__4 = this;
8509
+ actions && actions.forEach((function(action) {
8510
+ var method = action;
8511
+ if (_.isObject(action)) {
8512
+ method = _(action).values().first();
8513
+ action = _(action).keys().first();
8514
+ }
8515
+ ensureActionIsDefined(controller, action, method, name);
8516
+ registerControllerEvent.call($__4, controller, action, method, name, namespace);
8517
+ }), this);
8518
+ }
8519
+ function registerApplicationControllerActions(controller, namespace) {
8520
+ if (!controller.init)
8521
+ throw new Error("'Application' Controller: init is undefined");
8522
+ var eventName = _([namespace, "controller", "all"]).compact().join(":");
8523
+ this.Dispatcher.on(eventName, controller.init, controller);
8524
+ }
8525
+ function Application() {
8526
+ this.Controllers = {};
8527
+ this.Dispatcher = Dispatcher;
8528
+ }
8529
+ def(Application, "createController", function(name, attributes) {
8530
+ var controller = createControllerInstance.call(this, attributes, name);
8531
+ registerControllerActions.call(this, controller, attributes.actions, name, attributes.namespace);
8532
+ if (name.match(/^Application$/i)) {
8533
+ registerApplicationControllerActions.call(this, controller, attributes.namespace);
8534
+ }
8535
+ return this.Controllers[name] = controller;
8536
+ });
8537
+ var $__default = Application;
8538
+
8539
+ }).call(this,require("oMfpAn"),typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/application.js","/")
8540
+ },{"./controller":9,"./def":10,"backbone-events-standalone":2,"buffer":3,"lodash":7,"oMfpAn":6}],9:[function(require,module,exports){
8541
+ (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){
8542
+ "use strict";
8543
+ Object.defineProperties(exports, {
8544
+ default: {get: function() {
8545
+ return $__default;
8546
+ }},
8547
+ __esModule: {value: true}
8548
+ });
8549
+ var $__lodash__,
8550
+ $__def__;
8551
+ var _ = ($__lodash__ = require("lodash"), $__lodash__ && $__lodash__.__esModule && $__lodash__ || {default: $__lodash__}).default;
8552
+ var def = ($__def__ = require("./def"), $__def__ && $__def__.__esModule && $__def__ || {default: $__def__}).default;
8553
+ var Controller = function Controller() {
8554
+ _.bindAll.apply(this, [this].concat(_.functions(this)));
8555
+ this.actions = [];
8556
+ this.initialize();
8557
+ };
8558
+ ($traceurRuntime.createClass)(Controller, {initialize: function() {}}, {});
8559
+ var $__default = Controller;
8560
+
8561
+ }).call(this,require("oMfpAn"),typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/controller.js","/")
8562
+ },{"./def":10,"buffer":3,"lodash":7,"oMfpAn":6}],10:[function(require,module,exports){
8563
+ (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){
8564
+ "use strict";
8565
+ Object.defineProperties(exports, {
8566
+ default: {get: function() {
8567
+ return $__default;
8568
+ }},
8569
+ __esModule: {value: true}
8570
+ });
8571
+ var $__default = function(constructor, propertyName, value) {
8572
+ var writeable = arguments[3] !== (void 0) ? arguments[3] : true;
8573
+ var configurable = arguments[4] !== (void 0) ? arguments[4] : true;
8574
+ var enumerable = arguments[5] !== (void 0) ? arguments[5] : true;
8575
+ Object.defineProperty(constructor.prototype, propertyName, {
8576
+ writeable: writeable,
8577
+ configurable: configurable,
8578
+ enumerable: enumerable,
8579
+ value: value
8580
+ });
8581
+ };
8582
+
8583
+ }).call(this,require("oMfpAn"),typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/def.js","/")
8584
+ },{"buffer":3,"oMfpAn":6}],11:[function(require,module,exports){
8585
+ (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){
8586
+ "use strict";
8587
+ var $__application__;
8588
+ var Application = ($__application__ = require("./application"), $__application__ && $__application__.__esModule && $__application__ || {default: $__application__}).default;
8589
+ (global || window).JSKit = {createApplication: function() {
8590
+ return new Application;
8591
+ }};
8592
+
8593
+ }).call(this,require("oMfpAn"),typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/fake_51cb3cf6.js","/")
8594
+ },{"./application":8,"buffer":3,"oMfpAn":6}]},{},[11])
@@ -1,2 +1,2 @@
1
- !function n(e,t,r){function o(u,a){if(!t[u]){if(!e[u]){var f="function"==typeof require&&require;if(!a&&f)return f(u,!0);if(i)return i(u,!0);throw new Error("Cannot find module '"+u+"'")}var l=t[u]={exports:{}};e[u][0].call(l.exports,function(n){var t=e[u][1][n];return o(t?t:n)},l,l.exports,n,e,t,r)}return t[u].exports}for(var i="function"==typeof require&&require,u=0;u<r.length;u++)o(r[u]);return o}({1:[function(n,e){(function(){function t(){this.Controllers={},this.Dispatcher=c}function r(n,e){function t(){l.call(this)}return t.prototype=Object.create(l.prototype),t.prototype.constructor=t,f.extend(t.prototype,n),this[e+"Controller"]=t,new t}function o(n,e,t,r){f(e).each(function(e){if(!n[e]||!f.isFunction(n[e]))throw new Error("'"+t+"' Controller has an action '"+e+"' defined with no corresponding method");var o=f([r,"controller",i(t),e]).compact().join(":");this.Dispatcher.on(o,n[e],n)},this)}function i(n){return n.replace(/([A-Z])/g," $1").replace(/^\s?/,"").replace(/-|\s/g,"_").toLowerCase()}function u(n,e){if(!n.init)throw new Error("'Application' Controller: init is undefined");var t=f([e,"controller","all"]).compact().join(":");this.Dispatcher.on(t,n.init,n)}var a=n("./polyfill"),f=n("lodash"),l=n("./controller"),c=n("backbone-events-standalone");a(t,"createController",function(n,e){var t=r.call(this,e,n);return o.call(this,t,e.actions,n,e.namespace),n.match(/^Application$/i)&&u.call(this,t,e.namespace),this.Controllers[n]=t}),e.exports=t}).call(this,n("1YiZ5S"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},n("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/application.js","/")},{"./controller":2,"./polyfill":4,"1YiZ5S":10,"backbone-events-standalone":6,buffer:7,lodash:11}],2:[function(n,e){(function(){function t(){this.initialize(),o.bindAll.apply(this,[this].concat(o.functions(this)))}var r=n("./polyfill"),o=n("lodash");r(t,"initialize",function(){}),r(t,"actions",[],!0,!0,!0),e.exports=t}).call(this,n("1YiZ5S"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},n("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/controller.js","/")},{"./polyfill":4,"1YiZ5S":10,buffer:7,lodash:11}],3:[function(n){(function(e,t){var r=n("./application");t.JSKit={createApplication:function(){return new r}}}).call(this,n("1YiZ5S"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},n("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/fake_48c770cd.js","/")},{"./application":1,"1YiZ5S":10,buffer:7}],4:[function(n,e){(function(){function n(n,e){return"undefined"==typeof n?e:n}"function"!=typeof Object.create&&(Object.create=function(n,e){function t(){}if("object"!=typeof n)throw new Error("Object.create(prototype, properties): prototype is not an Object");t.prototype=n;var r=new t;if(n&&(r.constructor=t),void 0!==e){if(e!==Object(e))throw new Error("Object.create(prototype, properties): properties is not an Object");Object.defineProperties(r,e)}return r}),function(){if(!Object.defineProperty||!function(){try{return Object.defineProperty({},"x",{}),!0}catch(n){return!1}}()){var n=Object.defineProperty;Object.defineProperty=function(e,t,r){if(n)try{return n(e,t,r)}catch(o){}if(e!==Object(e))throw new Error("Object.defineProperty called on non-object");return Object.prototype.__defineGetter__&&"get"in r&&Object.prototype.__defineGetter__.call(e,t,r.get),Object.prototype.__defineSetter__&&"set"in r&&Object.prototype.__defineSetter__.call(e,t,r.set),"value"in r&&(e[t]=r.value),e}}}(),e.exports=function(e,t,r,o,i,u){o=n(o,!1),i=n(i,!1),u=n(u,!1),Object.defineProperty(e.prototype,t,{writeable:o,configurable:i,enumerable:u,value:r})}}).call(this,n("1YiZ5S"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},n("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/polyfill.js","/")},{"1YiZ5S":10,buffer:7}],5:[function(n,e,t){(function(){!function(){function n(){return{keys:Object.keys||function(n){if("object"!=typeof n&&"function"!=typeof n||null===n)throw new TypeError("keys() called on a non-object");var e,t=[];for(e in n)n.hasOwnProperty(e)&&(t[t.length]=e);return t},uniqueId:function(n){var e=++l+"";return n?n+e:e},has:function(n,e){return a.call(n,e)},each:function(n,e,t){if(null!=n)if(u&&n.forEach===u)n.forEach(e,t);else if(n.length===+n.length){for(var r=0,o=n.length;o>r;r++)if(e.call(t,n[r],r,n)===i)return}else for(var a in n)if(this.has(n,a)&&e.call(t,n[a],a,n)===i)return},once:function(n){var e,t=!1;return function(){return t?e:(t=!0,e=n.apply(this,arguments),n=null,e)}}}}var r,o=this,i={},u=Array.prototype.forEach,a=Object.prototype.hasOwnProperty,f=Array.prototype.slice,l=0,c=n();r={on:function(n,e,t){if(!p(this,"on",n,[e,t])||!e)return this;this._events||(this._events={});var r=this._events[n]||(this._events[n]=[]);return r.push({callback:e,context:t,ctx:t||this}),this},once:function(n,e,t){if(!p(this,"once",n,[e,t])||!e)return this;var r=this,o=c.once(function(){r.off(n,o),e.apply(this,arguments)});return o._callback=e,this.on(n,o,t)},off:function(n,e,t){var r,o,i,u,a,f,l,s;if(!this._events||!p(this,"off",n,[e,t]))return this;if(!n&&!e&&!t)return this._events={},this;for(u=n?[n]:c.keys(this._events),a=0,f=u.length;f>a;a++)if(n=u[a],i=this._events[n]){if(this._events[n]=r=[],e||t)for(l=0,s=i.length;s>l;l++)o=i[l],(e&&e!==o.callback&&e!==o.callback._callback||t&&t!==o.context)&&r.push(o);r.length||delete this._events[n]}return this},trigger:function(n){if(!this._events)return this;var e=f.call(arguments,1);if(!p(this,"trigger",n,e))return this;var t=this._events[n],r=this._events.all;return t&&h(t,e),r&&h(r,arguments),this},stopListening:function(n,e,t){var r=this._listeners;if(!r)return this;var o=!e&&!t;"object"==typeof e&&(t=this),n&&((r={})[n._listenerId]=n);for(var i in r)r[i].off(e,t,this),o&&delete this._listeners[i];return this}};var s=/\s+/,p=function(n,e,t,r){if(!t)return!0;if("object"==typeof t){for(var o in t)n[e].apply(n,[o,t[o]].concat(r));return!1}if(s.test(t)){for(var i=t.split(s),u=0,a=i.length;a>u;u++)n[e].apply(n,[i[u]].concat(r));return!1}return!0},h=function(n,e){var t,r=-1,o=n.length,i=e[0],u=e[1],a=e[2];switch(e.length){case 0:for(;++r<o;)(t=n[r]).callback.call(t.ctx);return;case 1:for(;++r<o;)(t=n[r]).callback.call(t.ctx,i);return;case 2:for(;++r<o;)(t=n[r]).callback.call(t.ctx,i,u);return;case 3:for(;++r<o;)(t=n[r]).callback.call(t.ctx,i,u,a);return;default:for(;++r<o;)(t=n[r]).callback.apply(t.ctx,e)}},d={listenTo:"on",listenToOnce:"once"};c.each(d,function(n,e){r[e]=function(e,t,r){var o=this._listeners||(this._listeners={}),i=e._listenerId||(e._listenerId=c.uniqueId("l"));return o[i]=e,"object"==typeof t&&(r=this),e[n](t,r,this),this}}),r.bind=r.on,r.unbind=r.off,r.mixin=function(n){var e=["on","once","off","trigger","stopListening","listenTo","listenToOnce","bind","unbind"];return c.each(e,function(e){n[e]=this[e]},this),n},"function"==typeof define?define(function(){return r}):"undefined"!=typeof t?("undefined"!=typeof e&&e.exports&&(t=e.exports=r),t.BackboneEvents=r):o.BackboneEvents=r}(this)}).call(this,n("1YiZ5S"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},n("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../node_modules/backbone-events-standalone/backbone-events-standalone.js","/../node_modules/backbone-events-standalone")},{"1YiZ5S":10,buffer:7}],6:[function(n,e){(function(){e.exports=n("./backbone-events-standalone")}).call(this,n("1YiZ5S"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},n("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../node_modules/backbone-events-standalone/index.js","/../node_modules/backbone-events-standalone")},{"./backbone-events-standalone":5,"1YiZ5S":10,buffer:7}],7:[function(n,e,t){(function(e,r,o){function o(n,e,t){if(!(this instanceof o))return new o(n,e,t);var r=typeof n;if("base64"===e&&"string"===r)for(n=S(n);n.length%4!==0;)n+="=";var i;if("number"===r)i=L(n);else if("string"===r)i=o.byteLength(n,e);else{if("object"!==r)throw new Error("First argument needs to be a number, array or string.");i=L(n.length)}var u;o._useTypedArrays?u=o._augment(new Uint8Array(i)):(u=this,u.length=i,u._isBuffer=!0);var a;if(o._useTypedArrays&&"number"==typeof n.byteLength)u._set(n);else if(O(n))for(a=0;i>a;a++)u[a]=o.isBuffer(n)?n.readUInt8(a):n[a];else if("string"===r)u.write(n,0,e);else if("number"===r&&!o._useTypedArrays&&!t)for(a=0;i>a;a++)u[a]=0;return u}function i(n,e,t,r){t=Number(t)||0;var i=n.length-t;r?(r=Number(r),r>i&&(r=i)):r=i;var u=e.length;q(u%2===0,"Invalid hex string"),r>u/2&&(r=u/2);for(var a=0;r>a;a++){var f=parseInt(e.substr(2*a,2),16);q(!isNaN(f),"Invalid hex string"),n[t+a]=f}return o._charsWritten=2*a,a}function u(n,e,t,r){var i=o._charsWritten=Y(N(e),n,t,r);return i}function a(n,e,t,r){var i=o._charsWritten=Y(D(e),n,t,r);return i}function f(n,e,t,r){return a(n,e,t,r)}function l(n,e,t,r){var i=o._charsWritten=Y(M(e),n,t,r);return i}function c(n,e,t,r){var i=o._charsWritten=Y(F(e),n,t,r);return i}function s(n,e,t){return 0===e&&t===n.length?W.fromByteArray(n):W.fromByteArray(n.slice(e,t))}function p(n,e,t){var r="",o="";t=Math.min(n.length,t);for(var i=e;t>i;i++)n[i]<=127?(r+=Z(o)+String.fromCharCode(n[i]),o=""):o+="%"+n[i].toString(16);return r+Z(o)}function h(n,e,t){var r="";t=Math.min(n.length,t);for(var o=e;t>o;o++)r+=String.fromCharCode(n[o]);return r}function d(n,e,t){return h(n,e,t)}function g(n,e,t){var r=n.length;(!e||0>e)&&(e=0),(!t||0>t||t>r)&&(t=r);for(var o="",i=e;t>i;i++)o+=T(n[i]);return o}function v(n,e,t){for(var r=n.slice(e,t),o="",i=0;i<r.length;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}function y(n,e,t,r){r||(q("boolean"==typeof t,"missing or invalid endian"),q(void 0!==e&&null!==e,"missing offset"),q(e+1<n.length,"Trying to read beyond buffer length"));var o=n.length;if(!(e>=o)){var i;return t?(i=n[e],o>e+1&&(i|=n[e+1]<<8)):(i=n[e]<<8,o>e+1&&(i|=n[e+1])),i}}function b(n,e,t,r){r||(q("boolean"==typeof t,"missing or invalid endian"),q(void 0!==e&&null!==e,"missing offset"),q(e+3<n.length,"Trying to read beyond buffer length"));var o=n.length;if(!(e>=o)){var i;return t?(o>e+2&&(i=n[e+2]<<16),o>e+1&&(i|=n[e+1]<<8),i|=n[e],o>e+3&&(i+=n[e+3]<<24>>>0)):(o>e+1&&(i=n[e+1]<<16),o>e+2&&(i|=n[e+2]<<8),o>e+3&&(i|=n[e+3]),i+=n[e]<<24>>>0),i}}function m(n,e,t,r){r||(q("boolean"==typeof t,"missing or invalid endian"),q(void 0!==e&&null!==e,"missing offset"),q(e+1<n.length,"Trying to read beyond buffer length"));var o=n.length;if(!(e>=o)){var i=y(n,e,t,!0),u=32768&i;return u?-1*(65535-i+1):i}}function w(n,e,t,r){r||(q("boolean"==typeof t,"missing or invalid endian"),q(void 0!==e&&null!==e,"missing offset"),q(e+3<n.length,"Trying to read beyond buffer length"));var o=n.length;if(!(e>=o)){var i=b(n,e,t,!0),u=2147483648&i;return u?-1*(4294967295-i+1):i}}function _(n,e,t,r){return r||(q("boolean"==typeof t,"missing or invalid endian"),q(e+3<n.length,"Trying to read beyond buffer length")),z.read(n,e,t,23,4)}function E(n,e,t,r){return r||(q("boolean"==typeof t,"missing or invalid endian"),q(e+7<n.length,"Trying to read beyond buffer length")),z.read(n,e,t,52,8)}function j(n,e,t,r,o){o||(q(void 0!==e&&null!==e,"missing value"),q("boolean"==typeof r,"missing or invalid endian"),q(void 0!==t&&null!==t,"missing offset"),q(t+1<n.length,"trying to write beyond buffer length"),R(e,65535));var i=n.length;if(!(t>=i))for(var u=0,a=Math.min(i-t,2);a>u;u++)n[t+u]=(e&255<<8*(r?u:1-u))>>>8*(r?u:1-u)}function I(n,e,t,r,o){o||(q(void 0!==e&&null!==e,"missing value"),q("boolean"==typeof r,"missing or invalid endian"),q(void 0!==t&&null!==t,"missing offset"),q(t+3<n.length,"trying to write beyond buffer length"),R(e,4294967295));var i=n.length;if(!(t>=i))for(var u=0,a=Math.min(i-t,4);a>u;u++)n[t+u]=e>>>8*(r?u:3-u)&255}function k(n,e,t,r,o){o||(q(void 0!==e&&null!==e,"missing value"),q("boolean"==typeof r,"missing or invalid endian"),q(void 0!==t&&null!==t,"missing offset"),q(t+1<n.length,"Trying to write beyond buffer length"),P(e,32767,-32768));var i=n.length;t>=i||(e>=0?j(n,e,t,r,o):j(n,65535+e+1,t,r,o))}function B(n,e,t,r,o){o||(q(void 0!==e&&null!==e,"missing value"),q("boolean"==typeof r,"missing or invalid endian"),q(void 0!==t&&null!==t,"missing offset"),q(t+3<n.length,"Trying to write beyond buffer length"),P(e,2147483647,-2147483648));var i=n.length;t>=i||(e>=0?I(n,e,t,r,o):I(n,4294967295+e+1,t,r,o))}function A(n,e,t,r,o){o||(q(void 0!==e&&null!==e,"missing value"),q("boolean"==typeof r,"missing or invalid endian"),q(void 0!==t&&null!==t,"missing offset"),q(t+3<n.length,"Trying to write beyond buffer length"),$(e,3.4028234663852886e38,-3.4028234663852886e38));var i=n.length;t>=i||z.write(n,e,t,r,23,4)}function x(n,e,t,r,o){o||(q(void 0!==e&&null!==e,"missing value"),q("boolean"==typeof r,"missing or invalid endian"),q(void 0!==t&&null!==t,"missing offset"),q(t+7<n.length,"Trying to write beyond buffer length"),$(e,1.7976931348623157e308,-1.7976931348623157e308));var i=n.length;t>=i||z.write(n,e,t,r,52,8)}function S(n){return n.trim?n.trim():n.replace(/^\s+|\s+$/g,"")}function C(n,e,t){return"number"!=typeof n?t:(n=~~n,n>=e?e:n>=0?n:(n+=e,n>=0?n:0))}function L(n){return n=~~Math.ceil(+n),0>n?0:n}function U(n){return(Array.isArray||function(n){return"[object Array]"===Object.prototype.toString.call(n)})(n)}function O(n){return U(n)||o.isBuffer(n)||n&&"object"==typeof n&&"number"==typeof n.length}function T(n){return 16>n?"0"+n.toString(16):n.toString(16)}function N(n){for(var e=[],t=0;t<n.length;t++){var r=n.charCodeAt(t);if(127>=r)e.push(n.charCodeAt(t));else{var o=t;r>=55296&&57343>=r&&t++;for(var i=encodeURIComponent(n.slice(o,t+1)).substr(1).split("%"),u=0;u<i.length;u++)e.push(parseInt(i[u],16))}}return e}function D(n){for(var e=[],t=0;t<n.length;t++)e.push(255&n.charCodeAt(t));return e}function F(n){for(var e,t,r,o=[],i=0;i<n.length;i++)e=n.charCodeAt(i),t=e>>8,r=e%256,o.push(r),o.push(t);return o}function M(n){return W.toByteArray(n)}function Y(n,e,t,r){for(var o=0;r>o&&!(o+t>=e.length||o>=n.length);o++)e[o+t]=n[o];return o}function Z(n){try{return decodeURIComponent(n)}catch(e){return String.fromCharCode(65533)}}function R(n,e){q("number"==typeof n,"cannot write a non-number as a number"),q(n>=0,"specified a negative value for writing an unsigned value"),q(e>=n,"value is larger than maximum value for type"),q(Math.floor(n)===n,"value has a fractional component")}function P(n,e,t){q("number"==typeof n,"cannot write a non-number as a number"),q(e>=n,"value larger than maximum allowed value"),q(n>=t,"value smaller than minimum allowed value"),q(Math.floor(n)===n,"value has a fractional component")}function $(n,e,t){q("number"==typeof n,"cannot write a non-number as a number"),q(e>=n,"value larger than maximum allowed value"),q(n>=t,"value smaller than minimum allowed value")}function q(n,e){if(!n)throw new Error(e||"Failed assertion")}var W=n("base64-js"),z=n("ieee754");t.Buffer=o,t.SlowBuffer=o,t.INSPECT_MAX_BYTES=50,o.poolSize=8192,o._useTypedArrays=function(){try{var n=new ArrayBuffer(0),e=new Uint8Array(n);return e.foo=function(){return 42},42===e.foo()&&"function"==typeof e.subarray}catch(t){return!1}}(),o.isEncoding=function(n){switch(String(n).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},o.isBuffer=function(n){return!(null===n||void 0===n||!n._isBuffer)},o.byteLength=function(n,e){var t;switch(n+="",e||"utf8"){case"hex":t=n.length/2;break;case"utf8":case"utf-8":t=N(n).length;break;case"ascii":case"binary":case"raw":t=n.length;break;case"base64":t=M(n).length;break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":t=2*n.length;break;default:throw new Error("Unknown encoding")}return t},o.concat=function(n,e){if(q(U(n),"Usage: Buffer.concat(list, [totalLength])\nlist should be an Array."),0===n.length)return new o(0);if(1===n.length)return n[0];var t;if("number"!=typeof e)for(e=0,t=0;t<n.length;t++)e+=n[t].length;var r=new o(e),i=0;for(t=0;t<n.length;t++){var u=n[t];u.copy(r,i),i+=u.length}return r},o.prototype.write=function(n,e,t,r){if(isFinite(e))isFinite(t)||(r=t,t=void 0);else{var o=r;r=e,e=t,t=o}e=Number(e)||0;var s=this.length-e;t?(t=Number(t),t>s&&(t=s)):t=s,r=String(r||"utf8").toLowerCase();var p;switch(r){case"hex":p=i(this,n,e,t);break;case"utf8":case"utf-8":p=u(this,n,e,t);break;case"ascii":p=a(this,n,e,t);break;case"binary":p=f(this,n,e,t);break;case"base64":p=l(this,n,e,t);break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":p=c(this,n,e,t);break;default:throw new Error("Unknown encoding")}return p},o.prototype.toString=function(n,e,t){var r=this;if(n=String(n||"utf8").toLowerCase(),e=Number(e)||0,t=void 0!==t?Number(t):t=r.length,t===e)return"";var o;switch(n){case"hex":o=g(r,e,t);break;case"utf8":case"utf-8":o=p(r,e,t);break;case"ascii":o=h(r,e,t);break;case"binary":o=d(r,e,t);break;case"base64":o=s(r,e,t);break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":o=v(r,e,t);break;default:throw new Error("Unknown encoding")}return o},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},o.prototype.copy=function(n,e,t,r){var i=this;if(t||(t=0),r||0===r||(r=this.length),e||(e=0),r!==t&&0!==n.length&&0!==i.length){q(r>=t,"sourceEnd < sourceStart"),q(e>=0&&e<n.length,"targetStart out of bounds"),q(t>=0&&t<i.length,"sourceStart out of bounds"),q(r>=0&&r<=i.length,"sourceEnd out of bounds"),r>this.length&&(r=this.length),n.length-e<r-t&&(r=n.length-e+t);var u=r-t;if(100>u||!o._useTypedArrays)for(var a=0;u>a;a++)n[a+e]=this[a+t];else n._set(this.subarray(t,t+u),e)}},o.prototype.slice=function(n,e){var t=this.length;if(n=C(n,t,0),e=C(e,t,t),o._useTypedArrays)return o._augment(this.subarray(n,e));for(var r=e-n,i=new o(r,void 0,!0),u=0;r>u;u++)i[u]=this[u+n];return i},o.prototype.get=function(n){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(n)},o.prototype.set=function(n,e){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(n,e)},o.prototype.readUInt8=function(n,e){return e||(q(void 0!==n&&null!==n,"missing offset"),q(n<this.length,"Trying to read beyond buffer length")),n>=this.length?void 0:this[n]},o.prototype.readUInt16LE=function(n,e){return y(this,n,!0,e)},o.prototype.readUInt16BE=function(n,e){return y(this,n,!1,e)},o.prototype.readUInt32LE=function(n,e){return b(this,n,!0,e)},o.prototype.readUInt32BE=function(n,e){return b(this,n,!1,e)},o.prototype.readInt8=function(n,e){if(e||(q(void 0!==n&&null!==n,"missing offset"),q(n<this.length,"Trying to read beyond buffer length")),!(n>=this.length)){var t=128&this[n];return t?-1*(255-this[n]+1):this[n]}},o.prototype.readInt16LE=function(n,e){return m(this,n,!0,e)},o.prototype.readInt16BE=function(n,e){return m(this,n,!1,e)},o.prototype.readInt32LE=function(n,e){return w(this,n,!0,e)},o.prototype.readInt32BE=function(n,e){return w(this,n,!1,e)},o.prototype.readFloatLE=function(n,e){return _(this,n,!0,e)},o.prototype.readFloatBE=function(n,e){return _(this,n,!1,e)},o.prototype.readDoubleLE=function(n,e){return E(this,n,!0,e)},o.prototype.readDoubleBE=function(n,e){return E(this,n,!1,e)},o.prototype.writeUInt8=function(n,e,t){t||(q(void 0!==n&&null!==n,"missing value"),q(void 0!==e&&null!==e,"missing offset"),q(e<this.length,"trying to write beyond buffer length"),R(n,255)),e>=this.length||(this[e]=n)},o.prototype.writeUInt16LE=function(n,e,t){j(this,n,e,!0,t)},o.prototype.writeUInt16BE=function(n,e,t){j(this,n,e,!1,t)},o.prototype.writeUInt32LE=function(n,e,t){I(this,n,e,!0,t)},o.prototype.writeUInt32BE=function(n,e,t){I(this,n,e,!1,t)},o.prototype.writeInt8=function(n,e,t){t||(q(void 0!==n&&null!==n,"missing value"),q(void 0!==e&&null!==e,"missing offset"),q(e<this.length,"Trying to write beyond buffer length"),P(n,127,-128)),e>=this.length||(n>=0?this.writeUInt8(n,e,t):this.writeUInt8(255+n+1,e,t))},o.prototype.writeInt16LE=function(n,e,t){k(this,n,e,!0,t)},o.prototype.writeInt16BE=function(n,e,t){k(this,n,e,!1,t)},o.prototype.writeInt32LE=function(n,e,t){B(this,n,e,!0,t)},o.prototype.writeInt32BE=function(n,e,t){B(this,n,e,!1,t)},o.prototype.writeFloatLE=function(n,e,t){A(this,n,e,!0,t)},o.prototype.writeFloatBE=function(n,e,t){A(this,n,e,!1,t)},o.prototype.writeDoubleLE=function(n,e,t){x(this,n,e,!0,t)},o.prototype.writeDoubleBE=function(n,e,t){x(this,n,e,!1,t)},o.prototype.fill=function(n,e,t){if(n||(n=0),e||(e=0),t||(t=this.length),"string"==typeof n&&(n=n.charCodeAt(0)),q("number"==typeof n&&!isNaN(n),"value is not a number"),q(t>=e,"end < start"),t!==e&&0!==this.length){q(e>=0&&e<this.length,"start out of bounds"),q(t>=0&&t<=this.length,"end out of bounds");for(var r=e;t>r;r++)this[r]=n}},o.prototype.inspect=function(){for(var n=[],e=this.length,r=0;e>r;r++)if(n[r]=T(this[r]),r===t.INSPECT_MAX_BYTES){n[r+1]="...";break}return"<Buffer "+n.join(" ")+">"},o.prototype.toArrayBuffer=function(){if("undefined"!=typeof Uint8Array){if(o._useTypedArrays)return new o(this).buffer;for(var n=new Uint8Array(this.length),e=0,t=n.length;t>e;e+=1)n[e]=this[e];return n.buffer}throw new Error("Buffer.toArrayBuffer not supported in this browser")};var J=o.prototype;o._augment=function(n){return n._isBuffer=!0,n._get=n.get,n._set=n.set,n.get=J.get,n.set=J.set,n.write=J.write,n.toString=J.toString,n.toLocaleString=J.toString,n.toJSON=J.toJSON,n.copy=J.copy,n.slice=J.slice,n.readUInt8=J.readUInt8,n.readUInt16LE=J.readUInt16LE,n.readUInt16BE=J.readUInt16BE,n.readUInt32LE=J.readUInt32LE,n.readUInt32BE=J.readUInt32BE,n.readInt8=J.readInt8,n.readInt16LE=J.readInt16LE,n.readInt16BE=J.readInt16BE,n.readInt32LE=J.readInt32LE,n.readInt32BE=J.readInt32BE,n.readFloatLE=J.readFloatLE,n.readFloatBE=J.readFloatBE,n.readDoubleLE=J.readDoubleLE,n.readDoubleBE=J.readDoubleBE,n.writeUInt8=J.writeUInt8,n.writeUInt16LE=J.writeUInt16LE,n.writeUInt16BE=J.writeUInt16BE,n.writeUInt32LE=J.writeUInt32LE,n.writeUInt32BE=J.writeUInt32BE,n.writeInt8=J.writeInt8,n.writeInt16LE=J.writeInt16LE,n.writeInt16BE=J.writeInt16BE,n.writeInt32LE=J.writeInt32LE,n.writeInt32BE=J.writeInt32BE,n.writeFloatLE=J.writeFloatLE,n.writeFloatBE=J.writeFloatBE,n.writeDoubleLE=J.writeDoubleLE,n.writeDoubleBE=J.writeDoubleBE,n.fill=J.fill,n.inspect=J.inspect,n.toArrayBuffer=J.toArrayBuffer,n}}).call(this,n("1YiZ5S"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},n("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../node_modules/gulp-browserify/node_modules/browserify/node_modules/buffer/index.js","/../node_modules/gulp-browserify/node_modules/browserify/node_modules/buffer")},{"1YiZ5S":10,"base64-js":8,buffer:7,ieee754:9}],8:[function(n,e,t){(function(){var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";!function(e){"use strict";function t(n){var e=n.charCodeAt(0);return e===u?62:e===a?63:f>e?-1:f+10>e?e-f+26+26:c+26>e?e-c:l+26>e?e-l+26:void 0}function r(n){function e(n){l[s++]=n}var r,o,u,a,f,l;if(n.length%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var c=n.length;f="="===n.charAt(c-2)?2:"="===n.charAt(c-1)?1:0,l=new i(3*n.length/4-f),u=f>0?n.length-4:n.length;var s=0;for(r=0,o=0;u>r;r+=4,o+=3)a=t(n.charAt(r))<<18|t(n.charAt(r+1))<<12|t(n.charAt(r+2))<<6|t(n.charAt(r+3)),e((16711680&a)>>16),e((65280&a)>>8),e(255&a);return 2===f?(a=t(n.charAt(r))<<2|t(n.charAt(r+1))>>4,e(255&a)):1===f&&(a=t(n.charAt(r))<<10|t(n.charAt(r+1))<<4|t(n.charAt(r+2))>>2,e(a>>8&255),e(255&a)),l}function o(e){function t(e){return n.charAt(e)}function r(n){return t(n>>18&63)+t(n>>12&63)+t(n>>6&63)+t(63&n)}var o,i,u,a=e.length%3,f="";for(o=0,u=e.length-a;u>o;o+=3)i=(e[o]<<16)+(e[o+1]<<8)+e[o+2],f+=r(i);switch(a){case 1:i=e[e.length-1],f+=t(i>>2),f+=t(i<<4&63),f+="==";break;case 2:i=(e[e.length-2]<<8)+e[e.length-1],f+=t(i>>10),f+=t(i>>4&63),f+=t(i<<2&63),f+="="}return f}var i="undefined"!=typeof Uint8Array?Uint8Array:Array,u="+".charCodeAt(0),a="/".charCodeAt(0),f="0".charCodeAt(0),l="a".charCodeAt(0),c="A".charCodeAt(0);e.toByteArray=r,e.fromByteArray=o}("undefined"==typeof t?this.base64js={}:t)}).call(this,n("1YiZ5S"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},n("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../node_modules/gulp-browserify/node_modules/browserify/node_modules/buffer/node_modules/base64-js/lib/b64.js","/../node_modules/gulp-browserify/node_modules/browserify/node_modules/buffer/node_modules/base64-js/lib")},{"1YiZ5S":10,buffer:7}],9:[function(n,e,t){(function(){t.read=function(n,e,t,r,o){var i,u,a=8*o-r-1,f=(1<<a)-1,l=f>>1,c=-7,s=t?o-1:0,p=t?-1:1,h=n[e+s];for(s+=p,i=h&(1<<-c)-1,h>>=-c,c+=a;c>0;i=256*i+n[e+s],s+=p,c-=8);for(u=i&(1<<-c)-1,i>>=-c,c+=r;c>0;u=256*u+n[e+s],s+=p,c-=8);if(0===i)i=1-l;else{if(i===f)return u?0/0:1/0*(h?-1:1);u+=Math.pow(2,r),i-=l}return(h?-1:1)*u*Math.pow(2,i-r)},t.write=function(n,e,t,r,o,i){var u,a,f,l=8*i-o-1,c=(1<<l)-1,s=c>>1,p=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:i-1,d=r?1:-1,g=0>e||0===e&&0>1/e?1:0;for(e=Math.abs(e),isNaN(e)||1/0===e?(a=isNaN(e)?1:0,u=c):(u=Math.floor(Math.log(e)/Math.LN2),e*(f=Math.pow(2,-u))<1&&(u--,f*=2),e+=u+s>=1?p/f:p*Math.pow(2,1-s),e*f>=2&&(u++,f/=2),u+s>=c?(a=0,u=c):u+s>=1?(a=(e*f-1)*Math.pow(2,o),u+=s):(a=e*Math.pow(2,s-1)*Math.pow(2,o),u=0));o>=8;n[t+h]=255&a,h+=d,a/=256,o-=8);for(u=u<<o|a,l+=o;l>0;n[t+h]=255&u,h+=d,u/=256,l-=8);n[t+h-d]|=128*g}}).call(this,n("1YiZ5S"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},n("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../node_modules/gulp-browserify/node_modules/browserify/node_modules/buffer/node_modules/ieee754/index.js","/../node_modules/gulp-browserify/node_modules/browserify/node_modules/buffer/node_modules/ieee754")},{"1YiZ5S":10,buffer:7}],10:[function(n,e){(function(n){function t(){}var n=e.exports={};n.nextTick=function(){var n="undefined"!=typeof window&&window.setImmediate,e="undefined"!=typeof window&&window.postMessage&&window.addEventListener;if(n)return function(n){return window.setImmediate(n)};if(e){var t=[];return window.addEventListener("message",function(n){var e=n.source;if((e===window||null===e)&&"process-tick"===n.data&&(n.stopPropagation(),t.length>0)){var r=t.shift();r()}},!0),function(n){t.push(n),window.postMessage("process-tick","*")}}return function(n){setTimeout(n,0)}}(),n.title="browser",n.browser=!0,n.env={},n.argv=[],n.on=t,n.addListener=t,n.once=t,n.off=t,n.removeListener=t,n.removeAllListeners=t,n.emit=t,n.binding=function(){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(){throw new Error("process.chdir is not supported")}}).call(this,n("1YiZ5S"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},n("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../node_modules/gulp-browserify/node_modules/browserify/node_modules/process/browser.js","/../node_modules/gulp-browserify/node_modules/browserify/node_modules/process")},{"1YiZ5S":10,buffer:7}],11:[function(n,e,t){(function(n,r){(function(){function n(n,e,t){for(var r=(t||0)-1,o=n?n.length:0;++r<o;)if(n[r]===e)return r;return-1}function o(e,t){var r=typeof t;if(e=e.cache,"boolean"==r||null==t)return e[t]?0:-1;"number"!=r&&"string"!=r&&(r="object");var o="number"==r?t:w+t;return e=(e=e[r])&&e[o],"object"==r?e&&n(e,t)>-1?0:-1:e?0:-1}function i(n){var e=this.cache,t=typeof n;if("boolean"==t||null==n)e[n]=!0;else{"number"!=t&&"string"!=t&&(t="object");var r="number"==t?n:w+n,o=e[t]||(e[t]={});"object"==t?(o[r]||(o[r]=[])).push(n):o[r]=!0}}function u(n){return n.charCodeAt(0)}function a(n,e){for(var t=n.criteria,r=e.criteria,o=-1,i=t.length;++o<i;){var u=t[o],a=r[o];if(u!==a){if(u>a||"undefined"==typeof u)return 1;if(a>u||"undefined"==typeof a)return-1}}return n.index-e.index}function f(n){var e=-1,t=n.length,r=n[0],o=n[t/2|0],u=n[t-1];if(r&&"object"==typeof r&&o&&"object"==typeof o&&u&&"object"==typeof u)return!1;var a=s();a["false"]=a["null"]=a["true"]=a.undefined=!1;var f=s();for(f.array=n,f.cache=a,f.push=i;++e<t;)f.push(n[e]);return f}function l(n){return"\\"+V[n]}function c(){return y.pop()||[]}function s(){return b.pop()||{array:null,cache:null,criteria:null,"false":!1,index:0,"null":!1,number:null,object:null,push:null,string:null,"true":!1,undefined:!1,value:null}}function p(n){n.length=0,y.length<E&&y.push(n)}function h(n){var e=n.cache;e&&h(e),n.array=n.cache=n.criteria=n.object=n.number=n.string=n.value=null,b.length<E&&b.push(n)}function d(n,e,t){e||(e=0),"undefined"==typeof t&&(t=n?n.length:0);for(var r=-1,o=t-e||0,i=Array(0>o?0:o);++r<o;)i[r]=n[e+r];return i}function g(e){function t(n){return n&&"object"==typeof n&&!Xr(n)&&Or.call(n,"__wrapped__")?n:new r(n)}function r(n,e){this.__chain__=!!e,this.__wrapped__=n}function i(n){function e(){if(r){var n=d(r);Tr.apply(n,arguments)}if(this instanceof e){var i=b(t.prototype),u=t.apply(i,n||arguments);return Ce(u)?u:i}return t.apply(o,n||arguments)}var t=n[0],r=n[2],o=n[4];return Vr(e,n),e}function y(n,e,t,r,o){if(t){var i=t(n);if("undefined"!=typeof i)return i}var u=Ce(n);if(!u)return n;var a=Br.call(n);if(!z[a])return n;var f=Kr[a];switch(a){case Y:case Z:return new f(+n);case P:case W:return new f(n);case q:return i=f(n.source,x.exec(n)),i.lastIndex=n.lastIndex,i}var l=Xr(n);if(e){var s=!r;r||(r=c()),o||(o=c());for(var h=r.length;h--;)if(r[h]==n)return o[h];i=l?f(n.length):{}}else i=l?d(n):oo({},n);return l&&(Or.call(n,"index")&&(i.index=n.index),Or.call(n,"input")&&(i.input=n.input)),e?(r.push(n),o.push(i),(l?Ve:ao)(n,function(n,u){i[u]=y(n,e,t,r,o)}),s&&(p(r),p(o)),i):i}function b(n){return Ce(n)?Yr(n):{}}function E(n,e,t){if("function"!=typeof n)return Xt;if("undefined"==typeof e||!("prototype"in n))return n;var r=n.__bindData__;if("undefined"==typeof r&&(Gr.funcNames&&(r=!n.name),r=r||!Gr.funcDecomp,!r)){var o=Lr.call(n);Gr.funcNames||(r=!S.test(o)),r||(r=O.test(o),Vr(n,r))}if(r===!1||r!==!0&&1&r[1])return n;switch(t){case 1:return function(t){return n.call(e,t)};case 2:return function(t,r){return n.call(e,t,r)};case 3:return function(t,r,o){return n.call(e,t,r,o)};case 4:return function(t,r,o,i){return n.call(e,t,r,o,i)}}return Tt(n,e)}function V(n){function e(){var n=f?u:this;if(o){var h=d(o);Tr.apply(h,arguments)}if((i||c)&&(h||(h=d(arguments)),i&&Tr.apply(h,i),c&&h.length<a))return r|=16,V([t,s?r:-4&r,h,null,u,a]);if(h||(h=arguments),l&&(t=n[p]),this instanceof e){n=b(t.prototype);var g=t.apply(n,h);return Ce(g)?g:n}return t.apply(n,h)}var t=n[0],r=n[1],o=n[2],i=n[3],u=n[4],a=n[5],f=1&r,l=2&r,c=4&r,s=8&r,p=t;return Vr(e,n),e}function H(e,t){var r=-1,i=fe(),u=e?e.length:0,a=u>=_&&i===n,l=[];if(a){var c=f(t);c?(i=o,t=c):a=!1}for(;++r<u;){var s=e[r];i(t,s)<0&&l.push(s)}return a&&h(t),l}function Q(n,e,t,r){for(var o=(r||0)-1,i=n?n.length:0,u=[];++o<i;){var a=n[o];if(a&&"object"==typeof a&&"number"==typeof a.length&&(Xr(a)||pe(a))){e||(a=Q(a,e,t));var f=-1,l=a.length,c=u.length;for(u.length+=l;++f<l;)u[c++]=a[f]}else t||u.push(a)}return u}function ne(n,e,t,r,o,i){if(t){var u=t(n,e);if("undefined"!=typeof u)return!!u}if(n===e)return 0!==n||1/n==1/e;var a=typeof n,f=typeof e;if(!(n!==n||n&&G[a]||e&&G[f]))return!1;if(null==n||null==e)return n===e;var l=Br.call(n),s=Br.call(e);if(l==F&&(l=$),s==F&&(s=$),l!=s)return!1;switch(l){case Y:case Z:return+n==+e;case P:return n!=+n?e!=+e:0==n?1/n==1/e:n==+e;case q:case W:return n==_r(e)}var h=l==M;if(!h){var d=Or.call(n,"__wrapped__"),g=Or.call(e,"__wrapped__");if(d||g)return ne(d?n.__wrapped__:n,g?e.__wrapped__:e,t,r,o,i);if(l!=$)return!1;var v=n.constructor,y=e.constructor;if(v!=y&&!(Se(v)&&v instanceof v&&Se(y)&&y instanceof y)&&"constructor"in n&&"constructor"in e)return!1}var b=!o;o||(o=c()),i||(i=c());for(var m=o.length;m--;)if(o[m]==n)return i[m]==e;var w=0;if(u=!0,o.push(n),i.push(e),h){if(m=n.length,w=e.length,u=w==m,u||r)for(;w--;){var _=m,E=e[w];if(r)for(;_--&&!(u=ne(n[_],E,t,r,o,i)););else if(!(u=ne(n[w],E,t,r,o,i)))break
2
- }}else uo(e,function(e,a,f){return Or.call(f,a)?(w++,u=Or.call(n,a)&&ne(n[a],e,t,r,o,i)):void 0}),u&&!r&&uo(n,function(n,e,t){return Or.call(t,e)?u=--w>-1:void 0});return o.pop(),i.pop(),b&&(p(o),p(i)),u}function ee(n,e,t,r,o){(Xr(e)?Ve:ao)(e,function(e,i){var u,a,f=e,l=n[i];if(e&&((a=Xr(e))||fo(e))){for(var c=r.length;c--;)if(u=r[c]==e){l=o[c];break}if(!u){var s;t&&(f=t(l,e),(s="undefined"!=typeof f)&&(l=f)),s||(l=a?Xr(l)?l:[]:fo(l)?l:{}),r.push(e),o.push(l),s||ee(l,e,t,r,o)}}else t&&(f=t(l,e),"undefined"==typeof f&&(f=e)),"undefined"!=typeof f&&(l=f);n[i]=l})}function re(n,e){return n+Cr(Jr()*(e-n+1))}function oe(e,t,r){var i=-1,u=fe(),a=e?e.length:0,l=[],s=!t&&a>=_&&u===n,d=r||s?c():l;if(s){var g=f(d);u=o,d=g}for(;++i<a;){var v=e[i],y=r?r(v,i,e):v;(t?!i||d[d.length-1]!==y:u(d,y)<0)&&((r||s)&&d.push(y),l.push(v))}return s?(p(d.array),h(d)):r&&p(d),l}function ie(n){return function(e,r,o){var i={};r=t.createCallback(r,o,3);var u=-1,a=e?e.length:0;if("number"==typeof a)for(;++u<a;){var f=e[u];n(i,f,r(f,u,e),e)}else ao(e,function(e,t,o){n(i,e,r(e,t,o),o)});return i}}function ue(n,e,t,r,o,u){var a=1&e,f=2&e,l=4&e,c=16&e,s=32&e;if(!f&&!Se(n))throw new Er;c&&!t.length&&(e&=-17,c=t=!1),s&&!r.length&&(e&=-33,s=r=!1);var p=n&&n.__bindData__;if(p&&p!==!0)return p=d(p),p[2]&&(p[2]=d(p[2])),p[3]&&(p[3]=d(p[3])),!a||1&p[1]||(p[4]=o),!a&&1&p[1]&&(e|=8),!l||4&p[1]||(p[5]=u),c&&Tr.apply(p[2]||(p[2]=[]),t),s&&Fr.apply(p[3]||(p[3]=[]),r),p[1]|=e,ue.apply(null,p);var h=1==e||17===e?i:V;return h([n,e,t,r,o,u])}function ae(n){return no[n]}function fe(){var e=(e=t.indexOf)===yt?n:e;return e}function le(n){return"function"==typeof n&&Ar.test(n)}function ce(n){var e,t;return n&&Br.call(n)==$&&(e=n.constructor,!Se(e)||e instanceof e)?(uo(n,function(n,e){t=e}),"undefined"==typeof t||Or.call(n,t)):!1}function se(n){return eo[n]}function pe(n){return n&&"object"==typeof n&&"number"==typeof n.length&&Br.call(n)==F||!1}function he(n,e,t,r){return"boolean"!=typeof e&&null!=e&&(r=t,t=e,e=!1),y(n,e,"function"==typeof t&&E(t,r,1))}function de(n,e,t){return y(n,!0,"function"==typeof e&&E(e,t,1))}function ge(n,e){var t=b(n);return e?oo(t,e):t}function ve(n,e,r){var o;return e=t.createCallback(e,r,3),ao(n,function(n,t,r){return e(n,t,r)?(o=t,!1):void 0}),o}function ye(n,e,r){var o;return e=t.createCallback(e,r,3),me(n,function(n,t,r){return e(n,t,r)?(o=t,!1):void 0}),o}function be(n,e,t){var r=[];uo(n,function(n,e){r.push(e,n)});var o=r.length;for(e=E(e,t,3);o--&&e(r[o--],r[o],n)!==!1;);return n}function me(n,e,t){var r=Qr(n),o=r.length;for(e=E(e,t,3);o--;){var i=r[o];if(e(n[i],i,n)===!1)break}return n}function we(n){var e=[];return uo(n,function(n,t){Se(n)&&e.push(t)}),e.sort()}function _e(n,e){return n?Or.call(n,e):!1}function Ee(n){for(var e=-1,t=Qr(n),r=t.length,o={};++e<r;){var i=t[e];o[n[i]]=i}return o}function je(n){return n===!0||n===!1||n&&"object"==typeof n&&Br.call(n)==Y||!1}function Ie(n){return n&&"object"==typeof n&&Br.call(n)==Z||!1}function ke(n){return n&&1===n.nodeType||!1}function Be(n){var e=!0;if(!n)return e;var t=Br.call(n),r=n.length;return t==M||t==W||t==F||t==$&&"number"==typeof r&&Se(n.splice)?!r:(ao(n,function(){return e=!1}),e)}function Ae(n,e,t,r){return ne(n,e,"function"==typeof t&&E(t,r,2))}function xe(n){return Rr(n)&&!Pr(parseFloat(n))}function Se(n){return"function"==typeof n}function Ce(n){return!(!n||!G[typeof n])}function Le(n){return Oe(n)&&n!=+n}function Ue(n){return null===n}function Oe(n){return"number"==typeof n||n&&"object"==typeof n&&Br.call(n)==P||!1}function Te(n){return n&&"object"==typeof n&&Br.call(n)==q||!1}function Ne(n){return"string"==typeof n||n&&"object"==typeof n&&Br.call(n)==W||!1}function De(n){return"undefined"==typeof n}function Fe(n,e,r){var o={};return e=t.createCallback(e,r,3),ao(n,function(n,t,r){o[t]=e(n,t,r)}),o}function Me(n){var e=arguments,t=2;if(!Ce(n))return n;if("number"!=typeof e[2]&&(t=e.length),t>3&&"function"==typeof e[t-2])var r=E(e[--t-1],e[t--],2);else t>2&&"function"==typeof e[t-1]&&(r=e[--t]);for(var o=d(arguments,1,t),i=-1,u=c(),a=c();++i<t;)ee(n,o[i],r,u,a);return p(u),p(a),n}function Ye(n,e,r){var o={};if("function"!=typeof e){var i=[];uo(n,function(n,e){i.push(e)}),i=H(i,Q(arguments,!0,!1,1));for(var u=-1,a=i.length;++u<a;){var f=i[u];o[f]=n[f]}}else e=t.createCallback(e,r,3),uo(n,function(n,t,r){e(n,t,r)||(o[t]=n)});return o}function Ze(n){for(var e=-1,t=Qr(n),r=t.length,o=hr(r);++e<r;){var i=t[e];o[e]=[i,n[i]]}return o}function Re(n,e,r){var o={};if("function"!=typeof e)for(var i=-1,u=Q(arguments,!0,!1,1),a=Ce(n)?u.length:0;++i<a;){var f=u[i];f in n&&(o[f]=n[f])}else e=t.createCallback(e,r,3),uo(n,function(n,t,r){e(n,t,r)&&(o[t]=n)});return o}function Pe(n,e,r,o){var i=Xr(n);if(null==r)if(i)r=[];else{var u=n&&n.constructor,a=u&&u.prototype;r=b(a)}return e&&(e=t.createCallback(e,o,4),(i?Ve:ao)(n,function(n,t,o){return e(r,n,t,o)})),r}function $e(n){for(var e=-1,t=Qr(n),r=t.length,o=hr(r);++e<r;)o[e]=n[t[e]];return o}function qe(n){for(var e=arguments,t=-1,r=Q(e,!0,!1,1),o=e[2]&&e[2][e[1]]===n?1:r.length,i=hr(o);++t<o;)i[t]=n[r[t]];return i}function We(n,e,t){var r=-1,o=fe(),i=n?n.length:0,u=!1;return t=(0>t?qr(0,i+t):t)||0,Xr(n)?u=o(n,e,t)>-1:"number"==typeof i?u=(Ne(n)?n.indexOf(e,t):o(n,e,t))>-1:ao(n,function(n){return++r>=t?!(u=n===e):void 0}),u}function ze(n,e,r){var o=!0;e=t.createCallback(e,r,3);var i=-1,u=n?n.length:0;if("number"==typeof u)for(;++i<u&&(o=!!e(n[i],i,n)););else ao(n,function(n,t,r){return o=!!e(n,t,r)});return o}function Je(n,e,r){var o=[];e=t.createCallback(e,r,3);var i=-1,u=n?n.length:0;if("number"==typeof u)for(;++i<u;){var a=n[i];e(a,i,n)&&o.push(a)}else ao(n,function(n,t,r){e(n,t,r)&&o.push(n)});return o}function Ke(n,e,r){e=t.createCallback(e,r,3);var o=-1,i=n?n.length:0;if("number"!=typeof i){var u;return ao(n,function(n,t,r){return e(n,t,r)?(u=n,!1):void 0}),u}for(;++o<i;){var a=n[o];if(e(a,o,n))return a}}function Ge(n,e,r){var o;return e=t.createCallback(e,r,3),Xe(n,function(n,t,r){return e(n,t,r)?(o=n,!1):void 0}),o}function Ve(n,e,t){var r=-1,o=n?n.length:0;if(e=e&&"undefined"==typeof t?e:E(e,t,3),"number"==typeof o)for(;++r<o&&e(n[r],r,n)!==!1;);else ao(n,e);return n}function Xe(n,e,t){var r=n?n.length:0;if(e=e&&"undefined"==typeof t?e:E(e,t,3),"number"==typeof r)for(;r--&&e(n[r],r,n)!==!1;);else{var o=Qr(n);r=o.length,ao(n,function(n,t,i){return t=o?o[--r]:--r,e(i[t],t,i)})}return n}function He(n,e){var t=d(arguments,2),r=-1,o="function"==typeof e,i=n?n.length:0,u=hr("number"==typeof i?i:0);return Ve(n,function(n){u[++r]=(o?e:n[e]).apply(n,t)}),u}function Qe(n,e,r){var o=-1,i=n?n.length:0;if(e=t.createCallback(e,r,3),"number"==typeof i)for(var u=hr(i);++o<i;)u[o]=e(n[o],o,n);else u=[],ao(n,function(n,t,r){u[++o]=e(n,t,r)});return u}function nt(n,e,r){var o=-1/0,i=o;if("function"!=typeof e&&r&&r[e]===n&&(e=null),null==e&&Xr(n))for(var a=-1,f=n.length;++a<f;){var l=n[a];l>i&&(i=l)}else e=null==e&&Ne(n)?u:t.createCallback(e,r,3),Ve(n,function(n,t,r){var u=e(n,t,r);u>o&&(o=u,i=n)});return i}function et(n,e,r){var o=1/0,i=o;if("function"!=typeof e&&r&&r[e]===n&&(e=null),null==e&&Xr(n))for(var a=-1,f=n.length;++a<f;){var l=n[a];i>l&&(i=l)}else e=null==e&&Ne(n)?u:t.createCallback(e,r,3),Ve(n,function(n,t,r){var u=e(n,t,r);o>u&&(o=u,i=n)});return i}function tt(n,e,r,o){if(!n)return r;var i=arguments.length<3;e=t.createCallback(e,o,4);var u=-1,a=n.length;if("number"==typeof a)for(i&&(r=n[++u]);++u<a;)r=e(r,n[u],u,n);else ao(n,function(n,t,o){r=i?(i=!1,n):e(r,n,t,o)});return r}function rt(n,e,r,o){var i=arguments.length<3;return e=t.createCallback(e,o,4),Xe(n,function(n,t,o){r=i?(i=!1,n):e(r,n,t,o)}),r}function ot(n,e,r){return e=t.createCallback(e,r,3),Je(n,function(n,t,r){return!e(n,t,r)})}function it(n,e,t){if(n&&"number"!=typeof n.length&&(n=$e(n)),null==e||t)return n?n[re(0,n.length-1)]:v;var r=ut(n);return r.length=Wr(qr(0,e),r.length),r}function ut(n){var e=-1,t=n?n.length:0,r=hr("number"==typeof t?t:0);return Ve(n,function(n){var t=re(0,++e);r[e]=r[t],r[t]=n}),r}function at(n){var e=n?n.length:0;return"number"==typeof e?e:Qr(n).length}function ft(n,e,r){var o;e=t.createCallback(e,r,3);var i=-1,u=n?n.length:0;if("number"==typeof u)for(;++i<u&&!(o=e(n[i],i,n)););else ao(n,function(n,t,r){return!(o=e(n,t,r))});return!!o}function lt(n,e,r){var o=-1,i=Xr(e),u=n?n.length:0,f=hr("number"==typeof u?u:0);for(i||(e=t.createCallback(e,r,3)),Ve(n,function(n,t,r){var u=f[++o]=s();i?u.criteria=Qe(e,function(e){return n[e]}):(u.criteria=c())[0]=e(n,t,r),u.index=o,u.value=n}),u=f.length,f.sort(a);u--;){var l=f[u];f[u]=l.value,i||p(l.criteria),h(l)}return f}function ct(n){return n&&"number"==typeof n.length?d(n):$e(n)}function st(n){for(var e=-1,t=n?n.length:0,r=[];++e<t;){var o=n[e];o&&r.push(o)}return r}function pt(n){return H(n,Q(arguments,!0,!0,1))}function ht(n,e,r){var o=-1,i=n?n.length:0;for(e=t.createCallback(e,r,3);++o<i;)if(e(n[o],o,n))return o;return-1}function dt(n,e,r){var o=n?n.length:0;for(e=t.createCallback(e,r,3);o--;)if(e(n[o],o,n))return o;return-1}function gt(n,e,r){var o=0,i=n?n.length:0;if("number"!=typeof e&&null!=e){var u=-1;for(e=t.createCallback(e,r,3);++u<i&&e(n[u],u,n);)o++}else if(o=e,null==o||r)return n?n[0]:v;return d(n,0,Wr(qr(0,o),i))}function vt(n,e,t,r){return"boolean"!=typeof e&&null!=e&&(r=t,t="function"!=typeof e&&r&&r[e]===n?null:e,e=!1),null!=t&&(n=Qe(n,t,r)),Q(n,e)}function yt(e,t,r){if("number"==typeof r){var o=e?e.length:0;r=0>r?qr(0,o+r):r||0}else if(r){var i=Bt(e,t);return e[i]===t?i:-1}return n(e,t,r)}function bt(n,e,r){var o=0,i=n?n.length:0;if("number"!=typeof e&&null!=e){var u=i;for(e=t.createCallback(e,r,3);u--&&e(n[u],u,n);)o++}else o=null==e||r?1:e||o;return d(n,0,Wr(qr(0,i-o),i))}function mt(){for(var e=[],t=-1,r=arguments.length,i=c(),u=fe(),a=u===n,l=c();++t<r;){var s=arguments[t];(Xr(s)||pe(s))&&(e.push(s),i.push(a&&s.length>=_&&f(t?e[t]:l)))}var d=e[0],g=-1,v=d?d.length:0,y=[];n:for(;++g<v;){var b=i[0];if(s=d[g],(b?o(b,s):u(l,s))<0){for(t=r,(b||l).push(s);--t;)if(b=i[t],(b?o(b,s):u(e[t],s))<0)continue n;y.push(s)}}for(;r--;)b=i[r],b&&h(b);return p(i),p(l),y}function wt(n,e,r){var o=0,i=n?n.length:0;if("number"!=typeof e&&null!=e){var u=i;for(e=t.createCallback(e,r,3);u--&&e(n[u],u,n);)o++}else if(o=e,null==o||r)return n?n[i-1]:v;return d(n,qr(0,i-o))}function _t(n,e,t){var r=n?n.length:0;for("number"==typeof t&&(r=(0>t?qr(0,r+t):Wr(t,r-1))+1);r--;)if(n[r]===e)return r;return-1}function Et(n){for(var e=arguments,t=0,r=e.length,o=n?n.length:0;++t<r;)for(var i=-1,u=e[t];++i<o;)n[i]===u&&(Dr.call(n,i--,1),o--);return n}function jt(n,e,t){n=+n||0,t="number"==typeof t?t:+t||1,null==e&&(e=n,n=0);for(var r=-1,o=qr(0,xr((e-n)/(t||1))),i=hr(o);++r<o;)i[r]=n,n+=t;return i}function It(n,e,r){var o=-1,i=n?n.length:0,u=[];for(e=t.createCallback(e,r,3);++o<i;){var a=n[o];e(a,o,n)&&(u.push(a),Dr.call(n,o--,1),i--)}return u}function kt(n,e,r){if("number"!=typeof e&&null!=e){var o=0,i=-1,u=n?n.length:0;for(e=t.createCallback(e,r,3);++i<u&&e(n[i],i,n);)o++}else o=null==e||r?1:qr(0,e);return d(n,o)}function Bt(n,e,r,o){var i=0,u=n?n.length:i;for(r=r?t.createCallback(r,o,1):Xt,e=r(e);u>i;){var a=i+u>>>1;r(n[a])<e?i=a+1:u=a}return i}function At(){return oe(Q(arguments,!0,!0))}function xt(n,e,r,o){return"boolean"!=typeof e&&null!=e&&(o=r,r="function"!=typeof e&&o&&o[e]===n?null:e,e=!1),null!=r&&(r=t.createCallback(r,o,3)),oe(n,e,r)}function St(n){return H(n,d(arguments,1))}function Ct(){for(var n=-1,e=arguments.length;++n<e;){var t=arguments[n];if(Xr(t)||pe(t))var r=r?oe(H(r,t).concat(H(t,r))):t}return r||[]}function Lt(){for(var n=arguments.length>1?arguments:arguments[0],e=-1,t=n?nt(po(n,"length")):0,r=hr(0>t?0:t);++e<t;)r[e]=po(n,e);return r}function Ut(n,e){var t=-1,r=n?n.length:0,o={};for(e||!r||Xr(n[0])||(e=[]);++t<r;){var i=n[t];e?o[i]=e[t]:i&&(o[i[0]]=i[1])}return o}function Ot(n,e){if(!Se(e))throw new Er;return function(){return--n<1?e.apply(this,arguments):void 0}}function Tt(n,e){return arguments.length>2?ue(n,17,d(arguments,2),null,e):ue(n,1,null,null,e)}function Nt(n){for(var e=arguments.length>1?Q(arguments,!0,!1,1):we(n),t=-1,r=e.length;++t<r;){var o=e[t];n[o]=ue(n[o],1,null,null,n)}return n}function Dt(n,e){return arguments.length>2?ue(e,19,d(arguments,2),null,n):ue(e,3,null,null,n)}function Ft(){for(var n=arguments,e=n.length;e--;)if(!Se(n[e]))throw new Er;return function(){for(var e=arguments,t=n.length;t--;)e=[n[t].apply(this,e)];return e[0]}}function Mt(n,e){return e="number"==typeof e?e:+e||n.length,ue(n,4,null,null,null,e)}function Yt(n,e,t){var r,o,i,u,a,f,l,c=0,s=!1,p=!0;if(!Se(n))throw new Er;if(e=qr(0,e)||0,t===!0){var h=!0;p=!1}else Ce(t)&&(h=t.leading,s="maxWait"in t&&(qr(e,t.maxWait)||0),p="trailing"in t?t.trailing:p);var d=function(){var t=e-(go()-u);if(0>=t){o&&Sr(o);var s=l;o=f=l=v,s&&(c=go(),i=n.apply(a,r),f||o||(r=a=null))}else f=Nr(d,t)},g=function(){f&&Sr(f),o=f=l=v,(p||s!==e)&&(c=go(),i=n.apply(a,r),f||o||(r=a=null))};return function(){if(r=arguments,u=go(),a=this,l=p&&(f||!h),s===!1)var t=h&&!f;else{o||h||(c=u);var v=s-(u-c),y=0>=v;y?(o&&(o=Sr(o)),c=u,i=n.apply(a,r)):o||(o=Nr(g,v))}return y&&f?f=Sr(f):f||e===s||(f=Nr(d,e)),t&&(y=!0,i=n.apply(a,r)),!y||f||o||(r=a=null),i}}function Zt(n){if(!Se(n))throw new Er;var e=d(arguments,1);return Nr(function(){n.apply(v,e)},1)}function Rt(n,e){if(!Se(n))throw new Er;var t=d(arguments,2);return Nr(function(){n.apply(v,t)},e)}function Pt(n,e){if(!Se(n))throw new Er;var t=function(){var r=t.cache,o=e?e.apply(this,arguments):w+arguments[0];return Or.call(r,o)?r[o]:r[o]=n.apply(this,arguments)};return t.cache={},t}function $t(n){var e,t;if(!Se(n))throw new Er;return function(){return e?t:(e=!0,t=n.apply(this,arguments),n=null,t)}}function qt(n){return ue(n,16,d(arguments,1))}function Wt(n){return ue(n,32,null,d(arguments,1))}function zt(n,e,t){var r=!0,o=!0;if(!Se(n))throw new Er;return t===!1?r=!1:Ce(t)&&(r="leading"in t?t.leading:r,o="trailing"in t?t.trailing:o),J.leading=r,J.maxWait=e,J.trailing=o,Yt(n,e,J)}function Jt(n,e){return ue(e,16,[n])}function Kt(n){return function(){return n}}function Gt(n,e,t){var r=typeof n;if(null==n||"function"==r)return E(n,e,t);if("object"!=r)return er(n);var o=Qr(n),i=o[0],u=n[i];return 1!=o.length||u!==u||Ce(u)?function(e){for(var t=o.length,r=!1;t--&&(r=ne(e[o[t]],n[o[t]],null,!0)););return r}:function(n){var e=n[i];return u===e&&(0!==u||1/u==1/e)}}function Vt(n){return null==n?"":_r(n).replace(ro,ae)}function Xt(n){return n}function Ht(n,e,o){var i=!0,u=e&&we(e);e&&(o||u.length)||(null==o&&(o=e),a=r,e=n,n=t,u=we(e)),o===!1?i=!1:Ce(o)&&"chain"in o&&(i=o.chain);var a=n,f=Se(a);Ve(u,function(t){var r=n[t]=e[t];f&&(a.prototype[t]=function(){var e=this.__chain__,t=this.__wrapped__,o=[t];Tr.apply(o,arguments);var u=r.apply(n,o);if(i||e){if(t===u&&Ce(u))return this;u=new a(u),u.__chain__=e}return u})})}function Qt(){return e._=kr,this}function nr(){}function er(n){return function(e){return e[n]}}function tr(n,e,t){var r=null==n,o=null==e;if(null==t&&("boolean"==typeof n&&o?(t=n,n=1):o||"boolean"!=typeof e||(t=e,o=!0)),r&&o&&(e=1),n=+n||0,o?(e=n,n=0):e=+e||0,t||n%1||e%1){var i=Jr();return Wr(n+i*(e-n+parseFloat("1e-"+((i+"").length-1))),e)}return re(n,e)}function rr(n,e){if(n){var t=n[e];return Se(t)?n[e]():t}}function or(n,e,r){var o=t.templateSettings;n=_r(n||""),r=io({},r,o);var i,u=io({},r.imports,o.imports),a=Qr(u),f=$e(u),c=0,s=r.interpolate||U,p="__p += '",h=wr((r.escape||U).source+"|"+s.source+"|"+(s===C?A:U).source+"|"+(r.evaluate||U).source+"|$","g");n.replace(h,function(e,t,r,o,u,a){return r||(r=o),p+=n.slice(c,a).replace(T,l),t&&(p+="' +\n__e("+t+") +\n'"),u&&(i=!0,p+="';\n"+u+";\n__p += '"),r&&(p+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),c=a+e.length,e}),p+="';\n";var d=r.variable,g=d;g||(d="obj",p="with ("+d+") {\n"+p+"\n}\n"),p=(i?p.replace(I,""):p).replace(k,"$1").replace(B,"$1;"),p="function("+d+") {\n"+(g?"":d+" || ("+d+" = {});\n")+"var __t, __p = '', __e = _.escape"+(i?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var y="\n/*\n//# sourceURL="+(r.sourceURL||"/lodash/template/source["+D++ +"]")+"\n*/";try{var b=vr(a,"return "+p+y).apply(v,f)}catch(m){throw m.source=p,m}return e?b(e):(b.source=p,b)}function ir(n,e,t){n=(n=+n)>-1?n:0;var r=-1,o=hr(n);for(e=E(e,t,1);++r<n;)o[r]=e(r);return o}function ur(n){return null==n?"":_r(n).replace(to,se)}function ar(n){var e=++m;return _r(null==n?"":n)+e}function fr(n){return n=new r(n),n.__chain__=!0,n}function lr(n,e){return e(n),n}function cr(){return this.__chain__=!0,this}function sr(){return _r(this.__wrapped__)}function pr(){return this.__wrapped__}e=e?te.defaults(X.Object(),e,te.pick(X,N)):X;var hr=e.Array,dr=e.Boolean,gr=e.Date,vr=e.Function,yr=e.Math,br=e.Number,mr=e.Object,wr=e.RegExp,_r=e.String,Er=e.TypeError,jr=[],Ir=mr.prototype,kr=e._,Br=Ir.toString,Ar=wr("^"+_r(Br).replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/toString| for [^\]]+/g,".*?")+"$"),xr=yr.ceil,Sr=e.clearTimeout,Cr=yr.floor,Lr=vr.prototype.toString,Ur=le(Ur=mr.getPrototypeOf)&&Ur,Or=Ir.hasOwnProperty,Tr=jr.push,Nr=e.setTimeout,Dr=jr.splice,Fr=jr.unshift,Mr=function(){try{var n={},e=le(e=mr.defineProperty)&&e,t=e(n,n,n)&&e}catch(r){}return t}(),Yr=le(Yr=mr.create)&&Yr,Zr=le(Zr=hr.isArray)&&Zr,Rr=e.isFinite,Pr=e.isNaN,$r=le($r=mr.keys)&&$r,qr=yr.max,Wr=yr.min,zr=e.parseInt,Jr=yr.random,Kr={};Kr[M]=hr,Kr[Y]=dr,Kr[Z]=gr,Kr[R]=vr,Kr[$]=mr,Kr[P]=br,Kr[q]=wr,Kr[W]=_r,r.prototype=t.prototype;var Gr=t.support={};Gr.funcDecomp=!le(e.WinRTError)&&O.test(g),Gr.funcNames="string"==typeof vr.name,t.templateSettings={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:C,variable:"",imports:{_:t}},Yr||(b=function(){function n(){}return function(t){if(Ce(t)){n.prototype=t;var r=new n;n.prototype=null}return r||e.Object()}}());var Vr=Mr?function(n,e){K.value=e,Mr(n,"__bindData__",K)}:nr,Xr=Zr||function(n){return n&&"object"==typeof n&&"number"==typeof n.length&&Br.call(n)==M||!1},Hr=function(n){var e,t=n,r=[];if(!t)return r;if(!G[typeof n])return r;for(e in t)Or.call(t,e)&&r.push(e);return r},Qr=$r?function(n){return Ce(n)?$r(n):[]}:Hr,no={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},eo=Ee(no),to=wr("("+Qr(eo).join("|")+")","g"),ro=wr("["+Qr(no).join("")+"]","g"),oo=function(n,e,t){var r,o=n,i=o;if(!o)return i;var u=arguments,a=0,f="number"==typeof t?2:u.length;if(f>3&&"function"==typeof u[f-2])var l=E(u[--f-1],u[f--],2);else f>2&&"function"==typeof u[f-1]&&(l=u[--f]);for(;++a<f;)if(o=u[a],o&&G[typeof o])for(var c=-1,s=G[typeof o]&&Qr(o),p=s?s.length:0;++c<p;)r=s[c],i[r]=l?l(i[r],o[r]):o[r];return i},io=function(n,e,t){var r,o=n,i=o;if(!o)return i;for(var u=arguments,a=0,f="number"==typeof t?2:u.length;++a<f;)if(o=u[a],o&&G[typeof o])for(var l=-1,c=G[typeof o]&&Qr(o),s=c?c.length:0;++l<s;)r=c[l],"undefined"==typeof i[r]&&(i[r]=o[r]);return i},uo=function(n,e,t){var r,o=n,i=o;if(!o)return i;if(!G[typeof o])return i;e=e&&"undefined"==typeof t?e:E(e,t,3);for(r in o)if(e(o[r],r,n)===!1)return i;return i},ao=function(n,e,t){var r,o=n,i=o;if(!o)return i;if(!G[typeof o])return i;e=e&&"undefined"==typeof t?e:E(e,t,3);for(var u=-1,a=G[typeof o]&&Qr(o),f=a?a.length:0;++u<f;)if(r=a[u],e(o[r],r,n)===!1)return i;return i},fo=Ur?function(n){if(!n||Br.call(n)!=$)return!1;var e=n.valueOf,t=le(e)&&(t=Ur(e))&&Ur(t);return t?n==t||Ur(n)==t:ce(n)}:ce,lo=ie(function(n,e,t){Or.call(n,t)?n[t]++:n[t]=1}),co=ie(function(n,e,t){(Or.call(n,t)?n[t]:n[t]=[]).push(e)}),so=ie(function(n,e,t){n[t]=e}),po=Qe,ho=Je,go=le(go=gr.now)&&go||function(){return(new gr).getTime()},vo=8==zr(j+"08")?zr:function(n,e){return zr(Ne(n)?n.replace(L,""):n,e||0)};return t.after=Ot,t.assign=oo,t.at=qe,t.bind=Tt,t.bindAll=Nt,t.bindKey=Dt,t.chain=fr,t.compact=st,t.compose=Ft,t.constant=Kt,t.countBy=lo,t.create=ge,t.createCallback=Gt,t.curry=Mt,t.debounce=Yt,t.defaults=io,t.defer=Zt,t.delay=Rt,t.difference=pt,t.filter=Je,t.flatten=vt,t.forEach=Ve,t.forEachRight=Xe,t.forIn=uo,t.forInRight=be,t.forOwn=ao,t.forOwnRight=me,t.functions=we,t.groupBy=co,t.indexBy=so,t.initial=bt,t.intersection=mt,t.invert=Ee,t.invoke=He,t.keys=Qr,t.map=Qe,t.mapValues=Fe,t.max=nt,t.memoize=Pt,t.merge=Me,t.min=et,t.omit=Ye,t.once=$t,t.pairs=Ze,t.partial=qt,t.partialRight=Wt,t.pick=Re,t.pluck=po,t.property=er,t.pull=Et,t.range=jt,t.reject=ot,t.remove=It,t.rest=kt,t.shuffle=ut,t.sortBy=lt,t.tap=lr,t.throttle=zt,t.times=ir,t.toArray=ct,t.transform=Pe,t.union=At,t.uniq=xt,t.values=$e,t.where=ho,t.without=St,t.wrap=Jt,t.xor=Ct,t.zip=Lt,t.zipObject=Ut,t.collect=Qe,t.drop=kt,t.each=Ve,t.eachRight=Xe,t.extend=oo,t.methods=we,t.object=Ut,t.select=Je,t.tail=kt,t.unique=xt,t.unzip=Lt,Ht(t),t.clone=he,t.cloneDeep=de,t.contains=We,t.escape=Vt,t.every=ze,t.find=Ke,t.findIndex=ht,t.findKey=ve,t.findLast=Ge,t.findLastIndex=dt,t.findLastKey=ye,t.has=_e,t.identity=Xt,t.indexOf=yt,t.isArguments=pe,t.isArray=Xr,t.isBoolean=je,t.isDate=Ie,t.isElement=ke,t.isEmpty=Be,t.isEqual=Ae,t.isFinite=xe,t.isFunction=Se,t.isNaN=Le,t.isNull=Ue,t.isNumber=Oe,t.isObject=Ce,t.isPlainObject=fo,t.isRegExp=Te,t.isString=Ne,t.isUndefined=De,t.lastIndexOf=_t,t.mixin=Ht,t.noConflict=Qt,t.noop=nr,t.now=go,t.parseInt=vo,t.random=tr,t.reduce=tt,t.reduceRight=rt,t.result=rr,t.runInContext=g,t.size=at,t.some=ft,t.sortedIndex=Bt,t.template=or,t.unescape=ur,t.uniqueId=ar,t.all=ze,t.any=ft,t.detect=Ke,t.findWhere=Ke,t.foldl=tt,t.foldr=rt,t.include=We,t.inject=tt,Ht(function(){var n={};return ao(t,function(e,r){t.prototype[r]||(n[r]=e)}),n}(),!1),t.first=gt,t.last=wt,t.sample=it,t.take=gt,t.head=gt,ao(t,function(n,e){var o="sample"!==e;t.prototype[e]||(t.prototype[e]=function(e,t){var i=this.__chain__,u=n(this.__wrapped__,e,t);return i||null!=e&&(!t||o&&"function"==typeof e)?new r(u,i):u})}),t.VERSION="2.4.1",t.prototype.chain=cr,t.prototype.toString=sr,t.prototype.value=pr,t.prototype.valueOf=pr,Ve(["join","pop","shift"],function(n){var e=jr[n];t.prototype[n]=function(){var n=this.__chain__,t=e.apply(this.__wrapped__,arguments);return n?new r(t,n):t}}),Ve(["push","reverse","sort","unshift"],function(n){var e=jr[n];t.prototype[n]=function(){return e.apply(this.__wrapped__,arguments),this}}),Ve(["concat","slice","splice"],function(n){var e=jr[n];t.prototype[n]=function(){return new r(e.apply(this.__wrapped__,arguments),this.__chain__)}}),t}var v,y=[],b=[],m=0,w=+new Date+"",_=75,E=40,j=" \f \n\r\u2028\u2029 ᠎              ",I=/\b__p \+= '';/g,k=/\b(__p \+=) '' \+/g,B=/(__e\(.*?\)|\b__t\)) \+\n'';/g,A=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,x=/\w*$/,S=/^\s*function[ \n\r\t]+\w/,C=/<%=([\s\S]+?)%>/g,L=RegExp("^["+j+"]*0+(?=.$)"),U=/($^)/,O=/\bthis\b/,T=/['\n\r\t\u2028\u2029\\]/g,N=["Array","Boolean","Date","Function","Math","Number","Object","RegExp","String","_","attachEvent","clearTimeout","isFinite","isNaN","parseInt","setTimeout"],D=0,F="[object Arguments]",M="[object Array]",Y="[object Boolean]",Z="[object Date]",R="[object Function]",P="[object Number]",$="[object Object]",q="[object RegExp]",W="[object String]",z={};z[R]=!1,z[F]=z[M]=z[Y]=z[Z]=z[P]=z[$]=z[q]=z[W]=!0;var J={leading:!1,maxWait:0,trailing:!1},K={configurable:!1,enumerable:!1,value:null,writable:!1},G={"boolean":!1,"function":!0,object:!0,number:!1,string:!1,undefined:!1},V={"\\":"\\","'":"'","\n":"n","\r":"r"," ":"t","\u2028":"u2028","\u2029":"u2029"},X=G[typeof window]&&window||this,H=G[typeof t]&&t&&!t.nodeType&&t,Q=G[typeof e]&&e&&!e.nodeType&&e,ne=Q&&Q.exports===H&&H,ee=G[typeof r]&&r;!ee||ee.global!==ee&&ee.window!==ee||(X=ee);var te=g();"function"==typeof define&&"object"==typeof define.amd&&define.amd?(X._=te,define(function(){return te})):H&&Q?ne?(Q.exports=te)._=te:H._=te:X._=te}).call(this)}).call(this,n("1YiZ5S"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},n("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../node_modules/lodash/dist/lodash.js","/../node_modules/lodash/dist")},{"1YiZ5S":10,buffer:7}]},{},[3]);
1
+ !function n(e,t,r){function o(u,a){if(!t[u]){if(!e[u]){var f="function"==typeof require&&require;if(!a&&f)return f(u,!0);if(i)return i(u,!0);throw new Error("Cannot find module '"+u+"'")}var l=t[u]={exports:{}};e[u][0].call(l.exports,function(n){var t=e[u][1][n];return o(t?t:n)},l,l.exports,n,e,t,r)}return t[u].exports}for(var i="function"==typeof require&&require,u=0;u<r.length;u++)o(r[u]);return o}({1:[function(n,e,t){(function(){!function(){function n(){return{keys:Object.keys||function(n){if("object"!=typeof n&&"function"!=typeof n||null===n)throw new TypeError("keys() called on a non-object");var e,t=[];for(e in n)n.hasOwnProperty(e)&&(t[t.length]=e);return t},uniqueId:function(n){var e=++l+"";return n?n+e:e},has:function(n,e){return a.call(n,e)},each:function(n,e,t){if(null!=n)if(u&&n.forEach===u)n.forEach(e,t);else if(n.length===+n.length){for(var r=0,o=n.length;o>r;r++)if(e.call(t,n[r],r,n)===i)return}else for(var a in n)if(this.has(n,a)&&e.call(t,n[a],a,n)===i)return},once:function(n){var e,t=!1;return function(){return t?e:(t=!0,e=n.apply(this,arguments),n=null,e)}}}}var r,o=this,i={},u=Array.prototype.forEach,a=Object.prototype.hasOwnProperty,f=Array.prototype.slice,l=0,s=n();r={on:function(n,e,t){if(!p(this,"on",n,[e,t])||!e)return this;this._events||(this._events={});var r=this._events[n]||(this._events[n]=[]);return r.push({callback:e,context:t,ctx:t||this}),this},once:function(n,e,t){if(!p(this,"once",n,[e,t])||!e)return this;var r=this,o=s.once(function(){r.off(n,o),e.apply(this,arguments)});return o._callback=e,this.on(n,o,t)},off:function(n,e,t){var r,o,i,u,a,f,l,c;if(!this._events||!p(this,"off",n,[e,t]))return this;if(!n&&!e&&!t)return this._events={},this;for(u=n?[n]:s.keys(this._events),a=0,f=u.length;f>a;a++)if(n=u[a],i=this._events[n]){if(this._events[n]=r=[],e||t)for(l=0,c=i.length;c>l;l++)o=i[l],(e&&e!==o.callback&&e!==o.callback._callback||t&&t!==o.context)&&r.push(o);r.length||delete this._events[n]}return this},trigger:function(n){if(!this._events)return this;var e=f.call(arguments,1);if(!p(this,"trigger",n,e))return this;var t=this._events[n],r=this._events.all;return t&&h(t,e),r&&h(r,arguments),this},stopListening:function(n,e,t){var r=this._listeners;if(!r)return this;var o=!e&&!t;"object"==typeof e&&(t=this),n&&((r={})[n._listenerId]=n);for(var i in r)r[i].off(e,t,this),o&&delete this._listeners[i];return this}};var c=/\s+/,p=function(n,e,t,r){if(!t)return!0;if("object"==typeof t){for(var o in t)n[e].apply(n,[o,t[o]].concat(r));return!1}if(c.test(t)){for(var i=t.split(c),u=0,a=i.length;a>u;u++)n[e].apply(n,[i[u]].concat(r));return!1}return!0},h=function(n,e){var t,r=-1,o=n.length,i=e[0],u=e[1],a=e[2];switch(e.length){case 0:for(;++r<o;)(t=n[r]).callback.call(t.ctx);return;case 1:for(;++r<o;)(t=n[r]).callback.call(t.ctx,i);return;case 2:for(;++r<o;)(t=n[r]).callback.call(t.ctx,i,u);return;case 3:for(;++r<o;)(t=n[r]).callback.call(t.ctx,i,u,a);return;default:for(;++r<o;)(t=n[r]).callback.apply(t.ctx,e)}},d={listenTo:"on",listenToOnce:"once"};s.each(d,function(n,e){r[e]=function(e,t,r){var o=this._listeners||(this._listeners={}),i=e._listenerId||(e._listenerId=s.uniqueId("l"));return o[i]=e,"object"==typeof t&&(r=this),e[n](t,r,this),this}}),r.bind=r.on,r.unbind=r.off,r.mixin=function(n){var e=["on","once","off","trigger","stopListening","listenTo","listenToOnce","bind","unbind"];return s.each(e,function(e){n[e]=this[e]},this),n},"function"==typeof define?define(function(){return r}):"undefined"!=typeof t?("undefined"!=typeof e&&e.exports&&(t=e.exports=r),t.BackboneEvents=r):o.BackboneEvents=r}(this)}).call(this,n("oMfpAn"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},n("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../../node_modules/backbone-events-standalone/backbone-events-standalone.js","/../../node_modules/backbone-events-standalone")},{buffer:3,oMfpAn:6}],2:[function(n,e){(function(){e.exports=n("./backbone-events-standalone")}).call(this,n("oMfpAn"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},n("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../../node_modules/backbone-events-standalone/index.js","/../../node_modules/backbone-events-standalone")},{"./backbone-events-standalone":1,buffer:3,oMfpAn:6}],3:[function(n,e,t){(function(e,r,o){function o(n,e,t){if(!(this instanceof o))return new o(n,e,t);var r=typeof n;if("base64"===e&&"string"===r)for(n=x(n);n.length%4!==0;)n+="=";var i;if("number"===r)i=M(n);else if("string"===r)i=o.byteLength(n,e);else{if("object"!==r)throw new Error("First argument needs to be a number, array or string.");i=M(n.length)}var u;o._useTypedArrays?u=o._augment(new Uint8Array(i)):(u=this,u.length=i,u._isBuffer=!0);var a;if(o._useTypedArrays&&"number"==typeof n.byteLength)u._set(n);else if(S(n))for(a=0;i>a;a++)u[a]=o.isBuffer(n)?n.readUInt8(a):n[a];else if("string"===r)u.write(n,0,e);else if("number"===r&&!o._useTypedArrays&&!t)for(a=0;i>a;a++)u[a]=0;return u}function i(n,e,t,r){t=Number(t)||0;var i=n.length-t;r?(r=Number(r),r>i&&(r=i)):r=i;var u=e.length;z(u%2===0,"Invalid hex string"),r>u/2&&(r=u/2);for(var a=0;r>a;a++){var f=parseInt(e.substr(2*a,2),16);z(!isNaN(f),"Invalid hex string"),n[t+a]=f}return o._charsWritten=2*a,a}function u(n,e,t,r){var i=o._charsWritten=R(N(e),n,t,r);return i}function a(n,e,t,r){var i=o._charsWritten=R(O(e),n,t,r);return i}function f(n,e,t,r){return a(n,e,t,r)}function l(n,e,t,r){var i=o._charsWritten=R(F(e),n,t,r);return i}function s(n,e,t,r){var i=o._charsWritten=R(D(e),n,t,r);return i}function c(n,e,t){return J.fromByteArray(0===e&&t===n.length?n:n.slice(e,t))}function p(n,e,t){var r="",o="";t=Math.min(n.length,t);for(var i=e;t>i;i++)n[i]<=127?(r+=$(o)+String.fromCharCode(n[i]),o=""):o+="%"+n[i].toString(16);return r+$(o)}function h(n,e,t){var r="";t=Math.min(n.length,t);for(var o=e;t>o;o++)r+=String.fromCharCode(n[o]);return r}function d(n,e,t){return h(n,e,t)}function g(n,e,t){var r=n.length;(!e||0>e)&&(e=0),(!t||0>t||t>r)&&(t=r);for(var o="",i=e;t>i;i++)o+=T(n[i]);return o}function v(n,e,t){for(var r=n.slice(e,t),o="",i=0;i<r.length;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}function y(n,e,t,r){r||(z("boolean"==typeof t,"missing or invalid endian"),z(void 0!==e&&null!==e,"missing offset"),z(e+1<n.length,"Trying to read beyond buffer length"));var o=n.length;if(!(e>=o)){var i;return t?(i=n[e],o>e+1&&(i|=n[e+1]<<8)):(i=n[e]<<8,o>e+1&&(i|=n[e+1])),i}}function b(n,e,t,r){r||(z("boolean"==typeof t,"missing or invalid endian"),z(void 0!==e&&null!==e,"missing offset"),z(e+3<n.length,"Trying to read beyond buffer length"));var o=n.length;if(!(e>=o)){var i;return t?(o>e+2&&(i=n[e+2]<<16),o>e+1&&(i|=n[e+1]<<8),i|=n[e],o>e+3&&(i+=n[e+3]<<24>>>0)):(o>e+1&&(i=n[e+1]<<16),o>e+2&&(i|=n[e+2]<<8),o>e+3&&(i|=n[e+3]),i+=n[e]<<24>>>0),i}}function m(n,e,t,r){r||(z("boolean"==typeof t,"missing or invalid endian"),z(void 0!==e&&null!==e,"missing offset"),z(e+1<n.length,"Trying to read beyond buffer length"));var o=n.length;if(!(e>=o)){var i=y(n,e,t,!0),u=32768&i;return u?-1*(65535-i+1):i}}function w(n,e,t,r){r||(z("boolean"==typeof t,"missing or invalid endian"),z(void 0!==e&&null!==e,"missing offset"),z(e+3<n.length,"Trying to read beyond buffer length"));var o=n.length;if(!(e>=o)){var i=b(n,e,t,!0),u=2147483648&i;return u?-1*(4294967295-i+1):i}}function _(n,e,t,r){return r||(z("boolean"==typeof t,"missing or invalid endian"),z(e+3<n.length,"Trying to read beyond buffer length")),K.read(n,e,t,23,4)}function E(n,e,t,r){return r||(z("boolean"==typeof t,"missing or invalid endian"),z(e+7<n.length,"Trying to read beyond buffer length")),K.read(n,e,t,52,8)}function A(n,e,t,r,o){o||(z(void 0!==e&&null!==e,"missing value"),z("boolean"==typeof r,"missing or invalid endian"),z(void 0!==t&&null!==t,"missing offset"),z(t+1<n.length,"trying to write beyond buffer length"),P(e,65535));var i=n.length;if(!(t>=i))for(var u=0,a=Math.min(i-t,2);a>u;u++)n[t+u]=(e&255<<8*(r?u:1-u))>>>8*(r?u:1-u)}function I(n,e,t,r,o){o||(z(void 0!==e&&null!==e,"missing value"),z("boolean"==typeof r,"missing or invalid endian"),z(void 0!==t&&null!==t,"missing offset"),z(t+3<n.length,"trying to write beyond buffer length"),P(e,4294967295));var i=n.length;if(!(t>=i))for(var u=0,a=Math.min(i-t,4);a>u;u++)n[t+u]=e>>>8*(r?u:3-u)&255}function k(n,e,t,r,o){o||(z(void 0!==e&&null!==e,"missing value"),z("boolean"==typeof r,"missing or invalid endian"),z(void 0!==t&&null!==t,"missing offset"),z(t+1<n.length,"Trying to write beyond buffer length"),q(e,32767,-32768));var i=n.length;t>=i||(e>=0?A(n,e,t,r,o):A(n,65535+e+1,t,r,o))}function j(n,e,t,r,o){o||(z(void 0!==e&&null!==e,"missing value"),z("boolean"==typeof r,"missing or invalid endian"),z(void 0!==t&&null!==t,"missing offset"),z(t+3<n.length,"Trying to write beyond buffer length"),q(e,2147483647,-2147483648));var i=n.length;t>=i||(e>=0?I(n,e,t,r,o):I(n,4294967295+e+1,t,r,o))}function B(n,e,t,r,o){o||(z(void 0!==e&&null!==e,"missing value"),z("boolean"==typeof r,"missing or invalid endian"),z(void 0!==t&&null!==t,"missing offset"),z(t+3<n.length,"Trying to write beyond buffer length"),W(e,3.4028234663852886e38,-3.4028234663852886e38));var i=n.length;t>=i||K.write(n,e,t,r,23,4)}function C(n,e,t,r,o){o||(z(void 0!==e&&null!==e,"missing value"),z("boolean"==typeof r,"missing or invalid endian"),z(void 0!==t&&null!==t,"missing offset"),z(t+7<n.length,"Trying to write beyond buffer length"),W(e,1.7976931348623157e308,-1.7976931348623157e308));var i=n.length;t>=i||K.write(n,e,t,r,52,8)}function x(n){return n.trim?n.trim():n.replace(/^\s+|\s+$/g,"")}function L(n,e,t){return"number"!=typeof n?t:(n=~~n,n>=e?e:n>=0?n:(n+=e,n>=0?n:0))}function M(n){return n=~~Math.ceil(+n),0>n?0:n}function U(n){return(Array.isArray||function(n){return"[object Array]"===Object.prototype.toString.call(n)})(n)}function S(n){return U(n)||o.isBuffer(n)||n&&"object"==typeof n&&"number"==typeof n.length}function T(n){return 16>n?"0"+n.toString(16):n.toString(16)}function N(n){for(var e=[],t=0;t<n.length;t++){var r=n.charCodeAt(t);if(127>=r)e.push(n.charCodeAt(t));else{var o=t;r>=55296&&57343>=r&&t++;for(var i=encodeURIComponent(n.slice(o,t+1)).substr(1).split("%"),u=0;u<i.length;u++)e.push(parseInt(i[u],16))}}return e}function O(n){for(var e=[],t=0;t<n.length;t++)e.push(255&n.charCodeAt(t));return e}function D(n){for(var e,t,r,o=[],i=0;i<n.length;i++)e=n.charCodeAt(i),t=e>>8,r=e%256,o.push(r),o.push(t);return o}function F(n){return J.toByteArray(n)}function R(n,e,t,r){for(var o=0;r>o&&!(o+t>=e.length||o>=n.length);o++)e[o+t]=n[o];return o}function $(n){try{return decodeURIComponent(n)}catch(e){return String.fromCharCode(65533)}}function P(n,e){z("number"==typeof n,"cannot write a non-number as a number"),z(n>=0,"specified a negative value for writing an unsigned value"),z(e>=n,"value is larger than maximum value for type"),z(Math.floor(n)===n,"value has a fractional component")}function q(n,e,t){z("number"==typeof n,"cannot write a non-number as a number"),z(e>=n,"value larger than maximum allowed value"),z(n>=t,"value smaller than minimum allowed value"),z(Math.floor(n)===n,"value has a fractional component")}function W(n,e,t){z("number"==typeof n,"cannot write a non-number as a number"),z(e>=n,"value larger than maximum allowed value"),z(n>=t,"value smaller than minimum allowed value")}function z(n,e){if(!n)throw new Error(e||"Failed assertion")}var J=n("base64-js"),K=n("ieee754");t.Buffer=o,t.SlowBuffer=o,t.INSPECT_MAX_BYTES=50,o.poolSize=8192,o._useTypedArrays=function(){try{var n=new ArrayBuffer(0),e=new Uint8Array(n);return e.foo=function(){return 42},42===e.foo()&&"function"==typeof e.subarray}catch(t){return!1}}(),o.isEncoding=function(n){switch(String(n).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},o.isBuffer=function(n){return!(null===n||void 0===n||!n._isBuffer)},o.byteLength=function(n,e){var t;switch(n+="",e||"utf8"){case"hex":t=n.length/2;break;case"utf8":case"utf-8":t=N(n).length;break;case"ascii":case"binary":case"raw":t=n.length;break;case"base64":t=F(n).length;break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":t=2*n.length;break;default:throw new Error("Unknown encoding")}return t},o.concat=function(n,e){if(z(U(n),"Usage: Buffer.concat(list, [totalLength])\nlist should be an Array."),0===n.length)return new o(0);if(1===n.length)return n[0];var t;if("number"!=typeof e)for(e=0,t=0;t<n.length;t++)e+=n[t].length;var r=new o(e),i=0;for(t=0;t<n.length;t++){var u=n[t];u.copy(r,i),i+=u.length}return r},o.prototype.write=function(n,e,t,r){if(isFinite(e))isFinite(t)||(r=t,t=void 0);else{var o=r;r=e,e=t,t=o}e=Number(e)||0;var c=this.length-e;t?(t=Number(t),t>c&&(t=c)):t=c,r=String(r||"utf8").toLowerCase();var p;switch(r){case"hex":p=i(this,n,e,t);break;case"utf8":case"utf-8":p=u(this,n,e,t);break;case"ascii":p=a(this,n,e,t);break;case"binary":p=f(this,n,e,t);break;case"base64":p=l(this,n,e,t);break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":p=s(this,n,e,t);break;default:throw new Error("Unknown encoding")}return p},o.prototype.toString=function(n,e,t){var r=this;if(n=String(n||"utf8").toLowerCase(),e=Number(e)||0,t=void 0!==t?Number(t):t=r.length,t===e)return"";var o;switch(n){case"hex":o=g(r,e,t);break;case"utf8":case"utf-8":o=p(r,e,t);break;case"ascii":o=h(r,e,t);break;case"binary":o=d(r,e,t);break;case"base64":o=c(r,e,t);break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":o=v(r,e,t);break;default:throw new Error("Unknown encoding")}return o},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},o.prototype.copy=function(n,e,t,r){var i=this;if(t||(t=0),r||0===r||(r=this.length),e||(e=0),r!==t&&0!==n.length&&0!==i.length){z(r>=t,"sourceEnd < sourceStart"),z(e>=0&&e<n.length,"targetStart out of bounds"),z(t>=0&&t<i.length,"sourceStart out of bounds"),z(r>=0&&r<=i.length,"sourceEnd out of bounds"),r>this.length&&(r=this.length),n.length-e<r-t&&(r=n.length-e+t);var u=r-t;if(100>u||!o._useTypedArrays)for(var a=0;u>a;a++)n[a+e]=this[a+t];else n._set(this.subarray(t,t+u),e)}},o.prototype.slice=function(n,e){var t=this.length;if(n=L(n,t,0),e=L(e,t,t),o._useTypedArrays)return o._augment(this.subarray(n,e));for(var r=e-n,i=new o(r,void 0,!0),u=0;r>u;u++)i[u]=this[u+n];return i},o.prototype.get=function(n){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(n)},o.prototype.set=function(n,e){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(n,e)},o.prototype.readUInt8=function(n,e){return e||(z(void 0!==n&&null!==n,"missing offset"),z(n<this.length,"Trying to read beyond buffer length")),n>=this.length?void 0:this[n]},o.prototype.readUInt16LE=function(n,e){return y(this,n,!0,e)},o.prototype.readUInt16BE=function(n,e){return y(this,n,!1,e)},o.prototype.readUInt32LE=function(n,e){return b(this,n,!0,e)},o.prototype.readUInt32BE=function(n,e){return b(this,n,!1,e)},o.prototype.readInt8=function(n,e){if(e||(z(void 0!==n&&null!==n,"missing offset"),z(n<this.length,"Trying to read beyond buffer length")),!(n>=this.length)){var t=128&this[n];return t?-1*(255-this[n]+1):this[n]}},o.prototype.readInt16LE=function(n,e){return m(this,n,!0,e)},o.prototype.readInt16BE=function(n,e){return m(this,n,!1,e)},o.prototype.readInt32LE=function(n,e){return w(this,n,!0,e)},o.prototype.readInt32BE=function(n,e){return w(this,n,!1,e)},o.prototype.readFloatLE=function(n,e){return _(this,n,!0,e)},o.prototype.readFloatBE=function(n,e){return _(this,n,!1,e)},o.prototype.readDoubleLE=function(n,e){return E(this,n,!0,e)},o.prototype.readDoubleBE=function(n,e){return E(this,n,!1,e)},o.prototype.writeUInt8=function(n,e,t){t||(z(void 0!==n&&null!==n,"missing value"),z(void 0!==e&&null!==e,"missing offset"),z(e<this.length,"trying to write beyond buffer length"),P(n,255)),e>=this.length||(this[e]=n)},o.prototype.writeUInt16LE=function(n,e,t){A(this,n,e,!0,t)},o.prototype.writeUInt16BE=function(n,e,t){A(this,n,e,!1,t)},o.prototype.writeUInt32LE=function(n,e,t){I(this,n,e,!0,t)},o.prototype.writeUInt32BE=function(n,e,t){I(this,n,e,!1,t)},o.prototype.writeInt8=function(n,e,t){t||(z(void 0!==n&&null!==n,"missing value"),z(void 0!==e&&null!==e,"missing offset"),z(e<this.length,"Trying to write beyond buffer length"),q(n,127,-128)),e>=this.length||(n>=0?this.writeUInt8(n,e,t):this.writeUInt8(255+n+1,e,t))},o.prototype.writeInt16LE=function(n,e,t){k(this,n,e,!0,t)},o.prototype.writeInt16BE=function(n,e,t){k(this,n,e,!1,t)},o.prototype.writeInt32LE=function(n,e,t){j(this,n,e,!0,t)},o.prototype.writeInt32BE=function(n,e,t){j(this,n,e,!1,t)},o.prototype.writeFloatLE=function(n,e,t){B(this,n,e,!0,t)},o.prototype.writeFloatBE=function(n,e,t){B(this,n,e,!1,t)},o.prototype.writeDoubleLE=function(n,e,t){C(this,n,e,!0,t)},o.prototype.writeDoubleBE=function(n,e,t){C(this,n,e,!1,t)},o.prototype.fill=function(n,e,t){if(n||(n=0),e||(e=0),t||(t=this.length),"string"==typeof n&&(n=n.charCodeAt(0)),z("number"==typeof n&&!isNaN(n),"value is not a number"),z(t>=e,"end < start"),t!==e&&0!==this.length){z(e>=0&&e<this.length,"start out of bounds"),z(t>=0&&t<=this.length,"end out of bounds");for(var r=e;t>r;r++)this[r]=n}},o.prototype.inspect=function(){for(var n=[],e=this.length,r=0;e>r;r++)if(n[r]=T(this[r]),r===t.INSPECT_MAX_BYTES){n[r+1]="...";break}return"<Buffer "+n.join(" ")+">"},o.prototype.toArrayBuffer=function(){if("undefined"!=typeof Uint8Array){if(o._useTypedArrays)return new o(this).buffer;for(var n=new Uint8Array(this.length),e=0,t=n.length;t>e;e+=1)n[e]=this[e];return n.buffer}throw new Error("Buffer.toArrayBuffer not supported in this browser")};var V=o.prototype;o._augment=function(n){return n._isBuffer=!0,n._get=n.get,n._set=n.set,n.get=V.get,n.set=V.set,n.write=V.write,n.toString=V.toString,n.toLocaleString=V.toString,n.toJSON=V.toJSON,n.copy=V.copy,n.slice=V.slice,n.readUInt8=V.readUInt8,n.readUInt16LE=V.readUInt16LE,n.readUInt16BE=V.readUInt16BE,n.readUInt32LE=V.readUInt32LE,n.readUInt32BE=V.readUInt32BE,n.readInt8=V.readInt8,n.readInt16LE=V.readInt16LE,n.readInt16BE=V.readInt16BE,n.readInt32LE=V.readInt32LE,n.readInt32BE=V.readInt32BE,n.readFloatLE=V.readFloatLE,n.readFloatBE=V.readFloatBE,n.readDoubleLE=V.readDoubleLE,n.readDoubleBE=V.readDoubleBE,n.writeUInt8=V.writeUInt8,n.writeUInt16LE=V.writeUInt16LE,n.writeUInt16BE=V.writeUInt16BE,n.writeUInt32LE=V.writeUInt32LE,n.writeUInt32BE=V.writeUInt32BE,n.writeInt8=V.writeInt8,n.writeInt16LE=V.writeInt16LE,n.writeInt16BE=V.writeInt16BE,n.writeInt32LE=V.writeInt32LE,n.writeInt32BE=V.writeInt32BE,n.writeFloatLE=V.writeFloatLE,n.writeFloatBE=V.writeFloatBE,n.writeDoubleLE=V.writeDoubleLE,n.writeDoubleBE=V.writeDoubleBE,n.fill=V.fill,n.inspect=V.inspect,n.toArrayBuffer=V.toArrayBuffer,n}}).call(this,n("oMfpAn"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},n("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../../node_modules/gulp-browserify/node_modules/browserify/node_modules/buffer/index.js","/../../node_modules/gulp-browserify/node_modules/browserify/node_modules/buffer")},{"base64-js":4,buffer:3,ieee754:5,oMfpAn:6}],4:[function(n,e,t){(function(){var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";!function(e){"use strict";function t(n){var e=n.charCodeAt(0);return e===u?62:e===a?63:f>e?-1:f+10>e?e-f+26+26:s+26>e?e-s:l+26>e?e-l+26:void 0}function r(n){function e(n){l[c++]=n}var r,o,u,a,f,l;if(n.length%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var s=n.length;f="="===n.charAt(s-2)?2:"="===n.charAt(s-1)?1:0,l=new i(3*n.length/4-f),u=f>0?n.length-4:n.length;var c=0;for(r=0,o=0;u>r;r+=4,o+=3)a=t(n.charAt(r))<<18|t(n.charAt(r+1))<<12|t(n.charAt(r+2))<<6|t(n.charAt(r+3)),e((16711680&a)>>16),e((65280&a)>>8),e(255&a);return 2===f?(a=t(n.charAt(r))<<2|t(n.charAt(r+1))>>4,e(255&a)):1===f&&(a=t(n.charAt(r))<<10|t(n.charAt(r+1))<<4|t(n.charAt(r+2))>>2,e(a>>8&255),e(255&a)),l}function o(e){function t(e){return n.charAt(e)}function r(n){return t(n>>18&63)+t(n>>12&63)+t(n>>6&63)+t(63&n)}var o,i,u,a=e.length%3,f="";for(o=0,u=e.length-a;u>o;o+=3)i=(e[o]<<16)+(e[o+1]<<8)+e[o+2],f+=r(i);switch(a){case 1:i=e[e.length-1],f+=t(i>>2),f+=t(i<<4&63),f+="==";break;case 2:i=(e[e.length-2]<<8)+e[e.length-1],f+=t(i>>10),f+=t(i>>4&63),f+=t(i<<2&63),f+="="}return f}var i="undefined"!=typeof Uint8Array?Uint8Array:Array,u="+".charCodeAt(0),a="/".charCodeAt(0),f="0".charCodeAt(0),l="a".charCodeAt(0),s="A".charCodeAt(0);e.toByteArray=r,e.fromByteArray=o}("undefined"==typeof t?this.base64js={}:t)}).call(this,n("oMfpAn"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},n("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../../node_modules/gulp-browserify/node_modules/browserify/node_modules/buffer/node_modules/base64-js/lib/b64.js","/../../node_modules/gulp-browserify/node_modules/browserify/node_modules/buffer/node_modules/base64-js/lib")},{buffer:3,oMfpAn:6}],5:[function(n,e,t){(function(){t.read=function(n,e,t,r,o){var i,u,a=8*o-r-1,f=(1<<a)-1,l=f>>1,s=-7,c=t?o-1:0,p=t?-1:1,h=n[e+c];for(c+=p,i=h&(1<<-s)-1,h>>=-s,s+=a;s>0;i=256*i+n[e+c],c+=p,s-=8);for(u=i&(1<<-s)-1,i>>=-s,s+=r;s>0;u=256*u+n[e+c],c+=p,s-=8);if(0===i)i=1-l;else{if(i===f)return u?0/0:1/0*(h?-1:1);u+=Math.pow(2,r),i-=l}return(h?-1:1)*u*Math.pow(2,i-r)},t.write=function(n,e,t,r,o,i){var u,a,f,l=8*i-o-1,s=(1<<l)-1,c=s>>1,p=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:i-1,d=r?1:-1,g=0>e||0===e&&0>1/e?1:0;for(e=Math.abs(e),isNaN(e)||1/0===e?(a=isNaN(e)?1:0,u=s):(u=Math.floor(Math.log(e)/Math.LN2),e*(f=Math.pow(2,-u))<1&&(u--,f*=2),e+=u+c>=1?p/f:p*Math.pow(2,1-c),e*f>=2&&(u++,f/=2),u+c>=s?(a=0,u=s):u+c>=1?(a=(e*f-1)*Math.pow(2,o),u+=c):(a=e*Math.pow(2,c-1)*Math.pow(2,o),u=0));o>=8;n[t+h]=255&a,h+=d,a/=256,o-=8);for(u=u<<o|a,l+=o;l>0;n[t+h]=255&u,h+=d,u/=256,l-=8);n[t+h-d]|=128*g}}).call(this,n("oMfpAn"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},n("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../../node_modules/gulp-browserify/node_modules/browserify/node_modules/buffer/node_modules/ieee754/index.js","/../../node_modules/gulp-browserify/node_modules/browserify/node_modules/buffer/node_modules/ieee754")},{buffer:3,oMfpAn:6}],6:[function(n,e){(function(n){function t(){}var n=e.exports={};n.nextTick=function(){var n="undefined"!=typeof window&&window.setImmediate,e="undefined"!=typeof window&&window.postMessage&&window.addEventListener;if(n)return function(n){return window.setImmediate(n)};if(e){var t=[];return window.addEventListener("message",function(n){var e=n.source;if((e===window||null===e)&&"process-tick"===n.data&&(n.stopPropagation(),t.length>0)){var r=t.shift();r()}},!0),function(n){t.push(n),window.postMessage("process-tick","*")}}return function(n){setTimeout(n,0)}}(),n.title="browser",n.browser=!0,n.env={},n.argv=[],n.on=t,n.addListener=t,n.once=t,n.off=t,n.removeListener=t,n.removeAllListeners=t,n.emit=t,n.binding=function(){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(){throw new Error("process.chdir is not supported")}}).call(this,n("oMfpAn"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},n("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../../node_modules/gulp-browserify/node_modules/browserify/node_modules/process/browser.js","/../../node_modules/gulp-browserify/node_modules/browserify/node_modules/process")},{buffer:3,oMfpAn:6}],7:[function(n,e,t){(function(n,r){(function(){function n(n,e,t){for(var r=(t||0)-1,o=n?n.length:0;++r<o;)if(n[r]===e)return r;return-1}function o(e,t){var r=typeof t;if(e=e.cache,"boolean"==r||null==t)return e[t]?0:-1;"number"!=r&&"string"!=r&&(r="object");var o="number"==r?t:w+t;return e=(e=e[r])&&e[o],"object"==r?e&&n(e,t)>-1?0:-1:e?0:-1}function i(n){var e=this.cache,t=typeof n;if("boolean"==t||null==n)e[n]=!0;else{"number"!=t&&"string"!=t&&(t="object");var r="number"==t?n:w+n,o=e[t]||(e[t]={});"object"==t?(o[r]||(o[r]=[])).push(n):o[r]=!0}}function u(n){return n.charCodeAt(0)}function a(n,e){for(var t=n.criteria,r=e.criteria,o=-1,i=t.length;++o<i;){var u=t[o],a=r[o];if(u!==a){if(u>a||"undefined"==typeof u)return 1;if(a>u||"undefined"==typeof a)return-1}}return n.index-e.index}function f(n){var e=-1,t=n.length,r=n[0],o=n[t/2|0],u=n[t-1];if(r&&"object"==typeof r&&o&&"object"==typeof o&&u&&"object"==typeof u)return!1;var a=c();a["false"]=a["null"]=a["true"]=a.undefined=!1;var f=c();for(f.array=n,f.cache=a,f.push=i;++e<t;)f.push(n[e]);return f}function l(n){return"\\"+Z[n]}function s(){return y.pop()||[]}function c(){return b.pop()||{array:null,cache:null,criteria:null,"false":!1,index:0,"null":!1,number:null,object:null,push:null,string:null,"true":!1,undefined:!1,value:null}}function p(n){n.length=0,y.length<E&&y.push(n)}function h(n){var e=n.cache;e&&h(e),n.array=n.cache=n.criteria=n.object=n.number=n.string=n.value=null,b.length<E&&b.push(n)}function d(n,e,t){e||(e=0),"undefined"==typeof t&&(t=n?n.length:0);for(var r=-1,o=t-e||0,i=Array(0>o?0:o);++r<o;)i[r]=n[e+r];return i}function g(e){function t(n){return n&&"object"==typeof n&&!Gr(n)&&Sr.call(n,"__wrapped__")?n:new r(n)}function r(n,e){this.__chain__=!!e,this.__wrapped__=n}function i(n){function e(){if(r){var n=d(r);Tr.apply(n,arguments)}if(this instanceof e){var i=b(t.prototype),u=t.apply(i,n||arguments);return Le(u)?u:i}return t.apply(o,n||arguments)}var t=n[0],r=n[2],o=n[4];return Zr(e,n),e}function y(n,e,t,r,o){if(t){var i=t(n);if("undefined"!=typeof i)return i}var u=Le(n);if(!u)return n;var a=jr.call(n);if(!K[a])return n;var f=Xr[a];switch(a){case R:case $:return new f(+n);case q:case J:return new f(n);case z:return i=f(n.source,C.exec(n)),i.lastIndex=n.lastIndex,i}var l=Gr(n);if(e){var c=!r;r||(r=s()),o||(o=s());for(var h=r.length;h--;)if(r[h]==n)return o[h];i=l?f(n.length):{}}else i=l?d(n):oo({},n);return l&&(Sr.call(n,"index")&&(i.index=n.index),Sr.call(n,"input")&&(i.input=n.input)),e?(r.push(n),o.push(i),(l?Ze:ao)(n,function(n,u){i[u]=y(n,e,t,r,o)}),c&&(p(r),p(o)),i):i}function b(n){return Le(n)?Rr(n):{}}function E(n,e,t){if("function"!=typeof n)return Gt;if("undefined"==typeof e||!("prototype"in n))return n;var r=n.__bindData__;if("undefined"==typeof r&&(Yr.funcNames&&(r=!n.name),r=r||!Yr.funcDecomp,!r)){var o=Mr.call(n);Yr.funcNames||(r=!x.test(o)),r||(r=S.test(o),Zr(n,r))}if(r===!1||r!==!0&&1&r[1])return n;switch(t){case 1:return function(t){return n.call(e,t)};case 2:return function(t,r){return n.call(e,t,r)};case 3:return function(t,r,o){return n.call(e,t,r,o)};case 4:return function(t,r,o,i){return n.call(e,t,r,o,i)}}return Tt(n,e)}function Z(n){function e(){var n=f?u:this;if(o){var h=d(o);Tr.apply(h,arguments)}if((i||s)&&(h||(h=d(arguments)),i&&Tr.apply(h,i),s&&h.length<a))return r|=16,Z([t,c?r:-4&r,h,null,u,a]);if(h||(h=arguments),l&&(t=n[p]),this instanceof e){n=b(t.prototype);var g=t.apply(n,h);return Le(g)?g:n}return t.apply(n,h)}var t=n[0],r=n[1],o=n[2],i=n[3],u=n[4],a=n[5],f=1&r,l=2&r,s=4&r,c=8&r,p=t;return Zr(e,n),e}function H(e,t){var r=-1,i=fe(),u=e?e.length:0,a=u>=_&&i===n,l=[];if(a){var s=f(t);s?(i=o,t=s):a=!1}for(;++r<u;){var c=e[r];i(t,c)<0&&l.push(c)}return a&&h(t),l}function Q(n,e,t,r){for(var o=(r||0)-1,i=n?n.length:0,u=[];++o<i;){var a=n[o];if(a&&"object"==typeof a&&"number"==typeof a.length&&(Gr(a)||pe(a))){e||(a=Q(a,e,t));var f=-1,l=a.length,s=u.length;for(u.length+=l;++f<l;)u[s++]=a[f]}else t||u.push(a)}return u}function ne(n,e,t,r,o,i){if(t){var u=t(n,e);if("undefined"!=typeof u)return!!u}if(n===e)return 0!==n||1/n==1/e;var a=typeof n,f=typeof e;if(!(n!==n||n&&Y[a]||e&&Y[f]))return!1;if(null==n||null==e)return n===e;var l=jr.call(n),c=jr.call(e);if(l==D&&(l=W),c==D&&(c=W),l!=c)return!1;switch(l){case R:case $:return+n==+e;case q:return n!=+n?e!=+e:0==n?1/n==1/e:n==+e;case z:case J:return n==_r(e)}var h=l==F;if(!h){var d=Sr.call(n,"__wrapped__"),g=Sr.call(e,"__wrapped__");if(d||g)return ne(d?n.__wrapped__:n,g?e.__wrapped__:e,t,r,o,i);if(l!=W)return!1;var v=n.constructor,y=e.constructor;if(v!=y&&!(xe(v)&&v instanceof v&&xe(y)&&y instanceof y)&&"constructor"in n&&"constructor"in e)return!1}var b=!o;o||(o=s()),i||(i=s());for(var m=o.length;m--;)if(o[m]==n)return i[m]==e;var w=0;if(u=!0,o.push(n),i.push(e),h){if(m=n.length,w=e.length,u=w==m,u||r)for(;w--;){var _=m,E=e[w];if(r)for(;_--&&!(u=ne(n[_],E,t,r,o,i)););else if(!(u=ne(n[w],E,t,r,o,i)))break}}else uo(e,function(e,a,f){return Sr.call(f,a)?(w++,u=Sr.call(n,a)&&ne(n[a],e,t,r,o,i)):void 0}),u&&!r&&uo(n,function(n,e,t){return Sr.call(t,e)?u=--w>-1:void 0});return o.pop(),i.pop(),b&&(p(o),p(i)),u}function ee(n,e,t,r,o){(Gr(e)?Ze:ao)(e,function(e,i){var u,a,f=e,l=n[i];if(e&&((a=Gr(e))||fo(e))){for(var s=r.length;s--;)if(u=r[s]==e){l=o[s];break}if(!u){var c;t&&(f=t(l,e),(c="undefined"!=typeof f)&&(l=f)),c||(l=a?Gr(l)?l:[]:fo(l)?l:{}),r.push(e),o.push(l),c||ee(l,e,t,r,o)}}else t&&(f=t(l,e),"undefined"==typeof f&&(f=e)),"undefined"!=typeof f&&(l=f);n[i]=l})}function re(n,e){return n+Lr(Vr()*(e-n+1))}function oe(e,t,r){var i=-1,u=fe(),a=e?e.length:0,l=[],c=!t&&a>=_&&u===n,d=r||c?s():l;if(c){var g=f(d);u=o,d=g}for(;++i<a;){var v=e[i],y=r?r(v,i,e):v;(t?!i||d[d.length-1]!==y:u(d,y)<0)&&((r||c)&&d.push(y),l.push(v))}return c?(p(d.array),h(d)):r&&p(d),l}function ie(n){return function(e,r,o){var i={};r=t.createCallback(r,o,3);var u=-1,a=e?e.length:0;if("number"==typeof a)for(;++u<a;){var f=e[u];n(i,f,r(f,u,e),e)}else ao(e,function(e,t,o){n(i,e,r(e,t,o),o)});return i}}function ue(n,e,t,r,o,u){var a=1&e,f=2&e,l=4&e,s=16&e,c=32&e;if(!f&&!xe(n))throw new Er;s&&!t.length&&(e&=-17,s=t=!1),c&&!r.length&&(e&=-33,c=r=!1);var p=n&&n.__bindData__;if(p&&p!==!0)return p=d(p),p[2]&&(p[2]=d(p[2])),p[3]&&(p[3]=d(p[3])),!a||1&p[1]||(p[4]=o),!a&&1&p[1]&&(e|=8),!l||4&p[1]||(p[5]=u),s&&Tr.apply(p[2]||(p[2]=[]),t),c&&Dr.apply(p[3]||(p[3]=[]),r),p[1]|=e,ue.apply(null,p);var h=1==e||17===e?i:Z;return h([n,e,t,r,o,u])}function ae(n){return no[n]}function fe(){var e=(e=t.indexOf)===yt?n:e;return e}function le(n){return"function"==typeof n&&Br.test(n)}function se(n){var e,t;return n&&jr.call(n)==W&&(e=n.constructor,!xe(e)||e instanceof e)?(uo(n,function(n,e){t=e}),"undefined"==typeof t||Sr.call(n,t)):!1}function ce(n){return eo[n]}function pe(n){return n&&"object"==typeof n&&"number"==typeof n.length&&jr.call(n)==D||!1}function he(n,e,t,r){return"boolean"!=typeof e&&null!=e&&(r=t,t=e,e=!1),y(n,e,"function"==typeof t&&E(t,r,1))}function de(n,e,t){return y(n,!0,"function"==typeof e&&E(e,t,1))}function ge(n,e){var t=b(n);return e?oo(t,e):t}function ve(n,e,r){var o;return e=t.createCallback(e,r,3),ao(n,function(n,t,r){return e(n,t,r)?(o=t,!1):void 0}),o}function ye(n,e,r){var o;return e=t.createCallback(e,r,3),me(n,function(n,t,r){return e(n,t,r)?(o=t,!1):void 0}),o}function be(n,e,t){var r=[];uo(n,function(n,e){r.push(e,n)});var o=r.length;for(e=E(e,t,3);o--&&e(r[o--],r[o],n)!==!1;);return n}function me(n,e,t){var r=Qr(n),o=r.length;for(e=E(e,t,3);o--;){var i=r[o];if(e(n[i],i,n)===!1)break}return n}function we(n){var e=[];return uo(n,function(n,t){xe(n)&&e.push(t)}),e.sort()}function _e(n,e){return n?Sr.call(n,e):!1}function Ee(n){for(var e=-1,t=Qr(n),r=t.length,o={};++e<r;){var i=t[e];o[n[i]]=i}return o}function Ae(n){return n===!0||n===!1||n&&"object"==typeof n&&jr.call(n)==R||!1}function Ie(n){return n&&"object"==typeof n&&jr.call(n)==$||!1}function ke(n){return n&&1===n.nodeType||!1}function je(n){var e=!0;if(!n)return e;var t=jr.call(n),r=n.length;return t==F||t==J||t==D||t==W&&"number"==typeof r&&xe(n.splice)?!r:(ao(n,function(){return e=!1}),e)}function Be(n,e,t,r){return ne(n,e,"function"==typeof t&&E(t,r,2))}function Ce(n){return Pr(n)&&!qr(parseFloat(n))}function xe(n){return"function"==typeof n}function Le(n){return!(!n||!Y[typeof n])}function Me(n){return Se(n)&&n!=+n}function Ue(n){return null===n
2
+ }function Se(n){return"number"==typeof n||n&&"object"==typeof n&&jr.call(n)==q||!1}function Te(n){return n&&"object"==typeof n&&jr.call(n)==z||!1}function Ne(n){return"string"==typeof n||n&&"object"==typeof n&&jr.call(n)==J||!1}function Oe(n){return"undefined"==typeof n}function De(n,e,r){var o={};return e=t.createCallback(e,r,3),ao(n,function(n,t,r){o[t]=e(n,t,r)}),o}function Fe(n){var e=arguments,t=2;if(!Le(n))return n;if("number"!=typeof e[2]&&(t=e.length),t>3&&"function"==typeof e[t-2])var r=E(e[--t-1],e[t--],2);else t>2&&"function"==typeof e[t-1]&&(r=e[--t]);for(var o=d(arguments,1,t),i=-1,u=s(),a=s();++i<t;)ee(n,o[i],r,u,a);return p(u),p(a),n}function Re(n,e,r){var o={};if("function"!=typeof e){var i=[];uo(n,function(n,e){i.push(e)}),i=H(i,Q(arguments,!0,!1,1));for(var u=-1,a=i.length;++u<a;){var f=i[u];o[f]=n[f]}}else e=t.createCallback(e,r,3),uo(n,function(n,t,r){e(n,t,r)||(o[t]=n)});return o}function $e(n){for(var e=-1,t=Qr(n),r=t.length,o=hr(r);++e<r;){var i=t[e];o[e]=[i,n[i]]}return o}function Pe(n,e,r){var o={};if("function"!=typeof e)for(var i=-1,u=Q(arguments,!0,!1,1),a=Le(n)?u.length:0;++i<a;){var f=u[i];f in n&&(o[f]=n[f])}else e=t.createCallback(e,r,3),uo(n,function(n,t,r){e(n,t,r)&&(o[t]=n)});return o}function qe(n,e,r,o){var i=Gr(n);if(null==r)if(i)r=[];else{var u=n&&n.constructor,a=u&&u.prototype;r=b(a)}return e&&(e=t.createCallback(e,o,4),(i?Ze:ao)(n,function(n,t,o){return e(r,n,t,o)})),r}function We(n){for(var e=-1,t=Qr(n),r=t.length,o=hr(r);++e<r;)o[e]=n[t[e]];return o}function ze(n){for(var e=arguments,t=-1,r=Q(e,!0,!1,1),o=e[2]&&e[2][e[1]]===n?1:r.length,i=hr(o);++t<o;)i[t]=n[r[t]];return i}function Je(n,e,t){var r=-1,o=fe(),i=n?n.length:0,u=!1;return t=(0>t?zr(0,i+t):t)||0,Gr(n)?u=o(n,e,t)>-1:"number"==typeof i?u=(Ne(n)?n.indexOf(e,t):o(n,e,t))>-1:ao(n,function(n){return++r>=t?!(u=n===e):void 0}),u}function Ke(n,e,r){var o=!0;e=t.createCallback(e,r,3);var i=-1,u=n?n.length:0;if("number"==typeof u)for(;++i<u&&(o=!!e(n[i],i,n)););else ao(n,function(n,t,r){return o=!!e(n,t,r)});return o}function Ve(n,e,r){var o=[];e=t.createCallback(e,r,3);var i=-1,u=n?n.length:0;if("number"==typeof u)for(;++i<u;){var a=n[i];e(a,i,n)&&o.push(a)}else ao(n,function(n,t,r){e(n,t,r)&&o.push(n)});return o}function Xe(n,e,r){e=t.createCallback(e,r,3);var o=-1,i=n?n.length:0;if("number"!=typeof i){var u;return ao(n,function(n,t,r){return e(n,t,r)?(u=n,!1):void 0}),u}for(;++o<i;){var a=n[o];if(e(a,o,n))return a}}function Ye(n,e,r){var o;return e=t.createCallback(e,r,3),Ge(n,function(n,t,r){return e(n,t,r)?(o=n,!1):void 0}),o}function Ze(n,e,t){var r=-1,o=n?n.length:0;if(e=e&&"undefined"==typeof t?e:E(e,t,3),"number"==typeof o)for(;++r<o&&e(n[r],r,n)!==!1;);else ao(n,e);return n}function Ge(n,e,t){var r=n?n.length:0;if(e=e&&"undefined"==typeof t?e:E(e,t,3),"number"==typeof r)for(;r--&&e(n[r],r,n)!==!1;);else{var o=Qr(n);r=o.length,ao(n,function(n,t,i){return t=o?o[--r]:--r,e(i[t],t,i)})}return n}function He(n,e){var t=d(arguments,2),r=-1,o="function"==typeof e,i=n?n.length:0,u=hr("number"==typeof i?i:0);return Ze(n,function(n){u[++r]=(o?e:n[e]).apply(n,t)}),u}function Qe(n,e,r){var o=-1,i=n?n.length:0;if(e=t.createCallback(e,r,3),"number"==typeof i)for(var u=hr(i);++o<i;)u[o]=e(n[o],o,n);else u=[],ao(n,function(n,t,r){u[++o]=e(n,t,r)});return u}function nt(n,e,r){var o=-1/0,i=o;if("function"!=typeof e&&r&&r[e]===n&&(e=null),null==e&&Gr(n))for(var a=-1,f=n.length;++a<f;){var l=n[a];l>i&&(i=l)}else e=null==e&&Ne(n)?u:t.createCallback(e,r,3),Ze(n,function(n,t,r){var u=e(n,t,r);u>o&&(o=u,i=n)});return i}function et(n,e,r){var o=1/0,i=o;if("function"!=typeof e&&r&&r[e]===n&&(e=null),null==e&&Gr(n))for(var a=-1,f=n.length;++a<f;){var l=n[a];i>l&&(i=l)}else e=null==e&&Ne(n)?u:t.createCallback(e,r,3),Ze(n,function(n,t,r){var u=e(n,t,r);o>u&&(o=u,i=n)});return i}function tt(n,e,r,o){if(!n)return r;var i=arguments.length<3;e=t.createCallback(e,o,4);var u=-1,a=n.length;if("number"==typeof a)for(i&&(r=n[++u]);++u<a;)r=e(r,n[u],u,n);else ao(n,function(n,t,o){r=i?(i=!1,n):e(r,n,t,o)});return r}function rt(n,e,r,o){var i=arguments.length<3;return e=t.createCallback(e,o,4),Ge(n,function(n,t,o){r=i?(i=!1,n):e(r,n,t,o)}),r}function ot(n,e,r){return e=t.createCallback(e,r,3),Ve(n,function(n,t,r){return!e(n,t,r)})}function it(n,e,t){if(n&&"number"!=typeof n.length&&(n=We(n)),null==e||t)return n?n[re(0,n.length-1)]:v;var r=ut(n);return r.length=Jr(zr(0,e),r.length),r}function ut(n){var e=-1,t=n?n.length:0,r=hr("number"==typeof t?t:0);return Ze(n,function(n){var t=re(0,++e);r[e]=r[t],r[t]=n}),r}function at(n){var e=n?n.length:0;return"number"==typeof e?e:Qr(n).length}function ft(n,e,r){var o;e=t.createCallback(e,r,3);var i=-1,u=n?n.length:0;if("number"==typeof u)for(;++i<u&&!(o=e(n[i],i,n)););else ao(n,function(n,t,r){return!(o=e(n,t,r))});return!!o}function lt(n,e,r){var o=-1,i=Gr(e),u=n?n.length:0,f=hr("number"==typeof u?u:0);for(i||(e=t.createCallback(e,r,3)),Ze(n,function(n,t,r){var u=f[++o]=c();i?u.criteria=Qe(e,function(e){return n[e]}):(u.criteria=s())[0]=e(n,t,r),u.index=o,u.value=n}),u=f.length,f.sort(a);u--;){var l=f[u];f[u]=l.value,i||p(l.criteria),h(l)}return f}function st(n){return n&&"number"==typeof n.length?d(n):We(n)}function ct(n){for(var e=-1,t=n?n.length:0,r=[];++e<t;){var o=n[e];o&&r.push(o)}return r}function pt(n){return H(n,Q(arguments,!0,!0,1))}function ht(n,e,r){var o=-1,i=n?n.length:0;for(e=t.createCallback(e,r,3);++o<i;)if(e(n[o],o,n))return o;return-1}function dt(n,e,r){var o=n?n.length:0;for(e=t.createCallback(e,r,3);o--;)if(e(n[o],o,n))return o;return-1}function gt(n,e,r){var o=0,i=n?n.length:0;if("number"!=typeof e&&null!=e){var u=-1;for(e=t.createCallback(e,r,3);++u<i&&e(n[u],u,n);)o++}else if(o=e,null==o||r)return n?n[0]:v;return d(n,0,Jr(zr(0,o),i))}function vt(n,e,t,r){return"boolean"!=typeof e&&null!=e&&(r=t,t="function"!=typeof e&&r&&r[e]===n?null:e,e=!1),null!=t&&(n=Qe(n,t,r)),Q(n,e)}function yt(e,t,r){if("number"==typeof r){var o=e?e.length:0;r=0>r?zr(0,o+r):r||0}else if(r){var i=jt(e,t);return e[i]===t?i:-1}return n(e,t,r)}function bt(n,e,r){var o=0,i=n?n.length:0;if("number"!=typeof e&&null!=e){var u=i;for(e=t.createCallback(e,r,3);u--&&e(n[u],u,n);)o++}else o=null==e||r?1:e||o;return d(n,0,Jr(zr(0,i-o),i))}function mt(){for(var e=[],t=-1,r=arguments.length,i=s(),u=fe(),a=u===n,l=s();++t<r;){var c=arguments[t];(Gr(c)||pe(c))&&(e.push(c),i.push(a&&c.length>=_&&f(t?e[t]:l)))}var d=e[0],g=-1,v=d?d.length:0,y=[];n:for(;++g<v;){var b=i[0];if(c=d[g],(b?o(b,c):u(l,c))<0){for(t=r,(b||l).push(c);--t;)if(b=i[t],(b?o(b,c):u(e[t],c))<0)continue n;y.push(c)}}for(;r--;)b=i[r],b&&h(b);return p(i),p(l),y}function wt(n,e,r){var o=0,i=n?n.length:0;if("number"!=typeof e&&null!=e){var u=i;for(e=t.createCallback(e,r,3);u--&&e(n[u],u,n);)o++}else if(o=e,null==o||r)return n?n[i-1]:v;return d(n,zr(0,i-o))}function _t(n,e,t){var r=n?n.length:0;for("number"==typeof t&&(r=(0>t?zr(0,r+t):Jr(t,r-1))+1);r--;)if(n[r]===e)return r;return-1}function Et(n){for(var e=arguments,t=0,r=e.length,o=n?n.length:0;++t<r;)for(var i=-1,u=e[t];++i<o;)n[i]===u&&(Or.call(n,i--,1),o--);return n}function At(n,e,t){n=+n||0,t="number"==typeof t?t:+t||1,null==e&&(e=n,n=0);for(var r=-1,o=zr(0,Cr((e-n)/(t||1))),i=hr(o);++r<o;)i[r]=n,n+=t;return i}function It(n,e,r){var o=-1,i=n?n.length:0,u=[];for(e=t.createCallback(e,r,3);++o<i;){var a=n[o];e(a,o,n)&&(u.push(a),Or.call(n,o--,1),i--)}return u}function kt(n,e,r){if("number"!=typeof e&&null!=e){var o=0,i=-1,u=n?n.length:0;for(e=t.createCallback(e,r,3);++i<u&&e(n[i],i,n);)o++}else o=null==e||r?1:zr(0,e);return d(n,o)}function jt(n,e,r,o){var i=0,u=n?n.length:i;for(r=r?t.createCallback(r,o,1):Gt,e=r(e);u>i;){var a=i+u>>>1;r(n[a])<e?i=a+1:u=a}return i}function Bt(){return oe(Q(arguments,!0,!0))}function Ct(n,e,r,o){return"boolean"!=typeof e&&null!=e&&(o=r,r="function"!=typeof e&&o&&o[e]===n?null:e,e=!1),null!=r&&(r=t.createCallback(r,o,3)),oe(n,e,r)}function xt(n){return H(n,d(arguments,1))}function Lt(){for(var n=-1,e=arguments.length;++n<e;){var t=arguments[n];if(Gr(t)||pe(t))var r=r?oe(H(r,t).concat(H(t,r))):t}return r||[]}function Mt(){for(var n=arguments.length>1?arguments:arguments[0],e=-1,t=n?nt(po(n,"length")):0,r=hr(0>t?0:t);++e<t;)r[e]=po(n,e);return r}function Ut(n,e){var t=-1,r=n?n.length:0,o={};for(e||!r||Gr(n[0])||(e=[]);++t<r;){var i=n[t];e?o[i]=e[t]:i&&(o[i[0]]=i[1])}return o}function St(n,e){if(!xe(e))throw new Er;return function(){return--n<1?e.apply(this,arguments):void 0}}function Tt(n,e){return arguments.length>2?ue(n,17,d(arguments,2),null,e):ue(n,1,null,null,e)}function Nt(n){for(var e=arguments.length>1?Q(arguments,!0,!1,1):we(n),t=-1,r=e.length;++t<r;){var o=e[t];n[o]=ue(n[o],1,null,null,n)}return n}function Ot(n,e){return arguments.length>2?ue(e,19,d(arguments,2),null,n):ue(e,3,null,null,n)}function Dt(){for(var n=arguments,e=n.length;e--;)if(!xe(n[e]))throw new Er;return function(){for(var e=arguments,t=n.length;t--;)e=[n[t].apply(this,e)];return e[0]}}function Ft(n,e){return e="number"==typeof e?e:+e||n.length,ue(n,4,null,null,null,e)}function Rt(n,e,t){var r,o,i,u,a,f,l,s=0,c=!1,p=!0;if(!xe(n))throw new Er;if(e=zr(0,e)||0,t===!0){var h=!0;p=!1}else Le(t)&&(h=t.leading,c="maxWait"in t&&(zr(e,t.maxWait)||0),p="trailing"in t?t.trailing:p);var d=function(){var t=e-(go()-u);if(0>=t){o&&xr(o);var c=l;o=f=l=v,c&&(s=go(),i=n.apply(a,r),f||o||(r=a=null))}else f=Nr(d,t)},g=function(){f&&xr(f),o=f=l=v,(p||c!==e)&&(s=go(),i=n.apply(a,r),f||o||(r=a=null))};return function(){if(r=arguments,u=go(),a=this,l=p&&(f||!h),c===!1)var t=h&&!f;else{o||h||(s=u);var v=c-(u-s),y=0>=v;y?(o&&(o=xr(o)),s=u,i=n.apply(a,r)):o||(o=Nr(g,v))}return y&&f?f=xr(f):f||e===c||(f=Nr(d,e)),t&&(y=!0,i=n.apply(a,r)),!y||f||o||(r=a=null),i}}function $t(n){if(!xe(n))throw new Er;var e=d(arguments,1);return Nr(function(){n.apply(v,e)},1)}function Pt(n,e){if(!xe(n))throw new Er;var t=d(arguments,2);return Nr(function(){n.apply(v,t)},e)}function qt(n,e){if(!xe(n))throw new Er;var t=function(){var r=t.cache,o=e?e.apply(this,arguments):w+arguments[0];return Sr.call(r,o)?r[o]:r[o]=n.apply(this,arguments)};return t.cache={},t}function Wt(n){var e,t;if(!xe(n))throw new Er;return function(){return e?t:(e=!0,t=n.apply(this,arguments),n=null,t)}}function zt(n){return ue(n,16,d(arguments,1))}function Jt(n){return ue(n,32,null,d(arguments,1))}function Kt(n,e,t){var r=!0,o=!0;if(!xe(n))throw new Er;return t===!1?r=!1:Le(t)&&(r="leading"in t?t.leading:r,o="trailing"in t?t.trailing:o),V.leading=r,V.maxWait=e,V.trailing=o,Rt(n,e,V)}function Vt(n,e){return ue(e,16,[n])}function Xt(n){return function(){return n}}function Yt(n,e,t){var r=typeof n;if(null==n||"function"==r)return E(n,e,t);if("object"!=r)return er(n);var o=Qr(n),i=o[0],u=n[i];return 1!=o.length||u!==u||Le(u)?function(e){for(var t=o.length,r=!1;t--&&(r=ne(e[o[t]],n[o[t]],null,!0)););return r}:function(n){var e=n[i];return u===e&&(0!==u||1/u==1/e)}}function Zt(n){return null==n?"":_r(n).replace(ro,ae)}function Gt(n){return n}function Ht(n,e,o){var i=!0,u=e&&we(e);e&&(o||u.length)||(null==o&&(o=e),a=r,e=n,n=t,u=we(e)),o===!1?i=!1:Le(o)&&"chain"in o&&(i=o.chain);var a=n,f=xe(a);Ze(u,function(t){var r=n[t]=e[t];f&&(a.prototype[t]=function(){var e=this.__chain__,t=this.__wrapped__,o=[t];Tr.apply(o,arguments);var u=r.apply(n,o);if(i||e){if(t===u&&Le(u))return this;u=new a(u),u.__chain__=e}return u})})}function Qt(){return e._=kr,this}function nr(){}function er(n){return function(e){return e[n]}}function tr(n,e,t){var r=null==n,o=null==e;if(null==t&&("boolean"==typeof n&&o?(t=n,n=1):o||"boolean"!=typeof e||(t=e,o=!0)),r&&o&&(e=1),n=+n||0,o?(e=n,n=0):e=+e||0,t||n%1||e%1){var i=Vr();return Jr(n+i*(e-n+parseFloat("1e-"+((i+"").length-1))),e)}return re(n,e)}function rr(n,e){if(n){var t=n[e];return xe(t)?n[e]():t}}function or(n,e,r){var o=t.templateSettings;n=_r(n||""),r=io({},r,o);var i,u=io({},r.imports,o.imports),a=Qr(u),f=We(u),s=0,c=r.interpolate||U,p="__p += '",h=wr((r.escape||U).source+"|"+c.source+"|"+(c===L?B:U).source+"|"+(r.evaluate||U).source+"|$","g");n.replace(h,function(e,t,r,o,u,a){return r||(r=o),p+=n.slice(s,a).replace(T,l),t&&(p+="' +\n__e("+t+") +\n'"),u&&(i=!0,p+="';\n"+u+";\n__p += '"),r&&(p+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),s=a+e.length,e}),p+="';\n";var d=r.variable,g=d;g||(d="obj",p="with ("+d+") {\n"+p+"\n}\n"),p=(i?p.replace(I,""):p).replace(k,"$1").replace(j,"$1;"),p="function("+d+") {\n"+(g?"":d+" || ("+d+" = {});\n")+"var __t, __p = '', __e = _.escape"+(i?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var y="\n/*\n//# sourceURL="+(r.sourceURL||"/lodash/template/source["+O++ +"]")+"\n*/";try{var b=vr(a,"return "+p+y).apply(v,f)}catch(m){throw m.source=p,m}return e?b(e):(b.source=p,b)}function ir(n,e,t){n=(n=+n)>-1?n:0;var r=-1,o=hr(n);for(e=E(e,t,1);++r<n;)o[r]=e(r);return o}function ur(n){return null==n?"":_r(n).replace(to,ce)}function ar(n){var e=++m;return _r(null==n?"":n)+e}function fr(n){return n=new r(n),n.__chain__=!0,n}function lr(n,e){return e(n),n}function sr(){return this.__chain__=!0,this}function cr(){return _r(this.__wrapped__)}function pr(){return this.__wrapped__}e=e?te.defaults(G.Object(),e,te.pick(G,N)):G;var hr=e.Array,dr=e.Boolean,gr=e.Date,vr=e.Function,yr=e.Math,br=e.Number,mr=e.Object,wr=e.RegExp,_r=e.String,Er=e.TypeError,Ar=[],Ir=mr.prototype,kr=e._,jr=Ir.toString,Br=wr("^"+_r(jr).replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/toString| for [^\]]+/g,".*?")+"$"),Cr=yr.ceil,xr=e.clearTimeout,Lr=yr.floor,Mr=vr.prototype.toString,Ur=le(Ur=mr.getPrototypeOf)&&Ur,Sr=Ir.hasOwnProperty,Tr=Ar.push,Nr=e.setTimeout,Or=Ar.splice,Dr=Ar.unshift,Fr=function(){try{var n={},e=le(e=mr.defineProperty)&&e,t=e(n,n,n)&&e}catch(r){}return t}(),Rr=le(Rr=mr.create)&&Rr,$r=le($r=hr.isArray)&&$r,Pr=e.isFinite,qr=e.isNaN,Wr=le(Wr=mr.keys)&&Wr,zr=yr.max,Jr=yr.min,Kr=e.parseInt,Vr=yr.random,Xr={};Xr[F]=hr,Xr[R]=dr,Xr[$]=gr,Xr[P]=vr,Xr[W]=mr,Xr[q]=br,Xr[z]=wr,Xr[J]=_r,r.prototype=t.prototype;var Yr=t.support={};Yr.funcDecomp=!le(e.WinRTError)&&S.test(g),Yr.funcNames="string"==typeof vr.name,t.templateSettings={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:L,variable:"",imports:{_:t}},Rr||(b=function(){function n(){}return function(t){if(Le(t)){n.prototype=t;var r=new n;n.prototype=null}return r||e.Object()}}());var Zr=Fr?function(n,e){X.value=e,Fr(n,"__bindData__",X)}:nr,Gr=$r||function(n){return n&&"object"==typeof n&&"number"==typeof n.length&&jr.call(n)==F||!1},Hr=function(n){var e,t=n,r=[];if(!t)return r;if(!Y[typeof n])return r;for(e in t)Sr.call(t,e)&&r.push(e);return r},Qr=Wr?function(n){return Le(n)?Wr(n):[]}:Hr,no={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},eo=Ee(no),to=wr("("+Qr(eo).join("|")+")","g"),ro=wr("["+Qr(no).join("")+"]","g"),oo=function(n,e,t){var r,o=n,i=o;if(!o)return i;var u=arguments,a=0,f="number"==typeof t?2:u.length;if(f>3&&"function"==typeof u[f-2])var l=E(u[--f-1],u[f--],2);else f>2&&"function"==typeof u[f-1]&&(l=u[--f]);for(;++a<f;)if(o=u[a],o&&Y[typeof o])for(var s=-1,c=Y[typeof o]&&Qr(o),p=c?c.length:0;++s<p;)r=c[s],i[r]=l?l(i[r],o[r]):o[r];return i},io=function(n,e,t){var r,o=n,i=o;if(!o)return i;for(var u=arguments,a=0,f="number"==typeof t?2:u.length;++a<f;)if(o=u[a],o&&Y[typeof o])for(var l=-1,s=Y[typeof o]&&Qr(o),c=s?s.length:0;++l<c;)r=s[l],"undefined"==typeof i[r]&&(i[r]=o[r]);return i},uo=function(n,e,t){var r,o=n,i=o;if(!o)return i;if(!Y[typeof o])return i;e=e&&"undefined"==typeof t?e:E(e,t,3);for(r in o)if(e(o[r],r,n)===!1)return i;return i},ao=function(n,e,t){var r,o=n,i=o;if(!o)return i;if(!Y[typeof o])return i;e=e&&"undefined"==typeof t?e:E(e,t,3);for(var u=-1,a=Y[typeof o]&&Qr(o),f=a?a.length:0;++u<f;)if(r=a[u],e(o[r],r,n)===!1)return i;return i},fo=Ur?function(n){if(!n||jr.call(n)!=W)return!1;var e=n.valueOf,t=le(e)&&(t=Ur(e))&&Ur(t);return t?n==t||Ur(n)==t:se(n)}:se,lo=ie(function(n,e,t){Sr.call(n,t)?n[t]++:n[t]=1}),so=ie(function(n,e,t){(Sr.call(n,t)?n[t]:n[t]=[]).push(e)}),co=ie(function(n,e,t){n[t]=e}),po=Qe,ho=Ve,go=le(go=gr.now)&&go||function(){return(new gr).getTime()},vo=8==Kr(A+"08")?Kr:function(n,e){return Kr(Ne(n)?n.replace(M,""):n,e||0)};return t.after=St,t.assign=oo,t.at=ze,t.bind=Tt,t.bindAll=Nt,t.bindKey=Ot,t.chain=fr,t.compact=ct,t.compose=Dt,t.constant=Xt,t.countBy=lo,t.create=ge,t.createCallback=Yt,t.curry=Ft,t.debounce=Rt,t.defaults=io,t.defer=$t,t.delay=Pt,t.difference=pt,t.filter=Ve,t.flatten=vt,t.forEach=Ze,t.forEachRight=Ge,t.forIn=uo,t.forInRight=be,t.forOwn=ao,t.forOwnRight=me,t.functions=we,t.groupBy=so,t.indexBy=co,t.initial=bt,t.intersection=mt,t.invert=Ee,t.invoke=He,t.keys=Qr,t.map=Qe,t.mapValues=De,t.max=nt,t.memoize=qt,t.merge=Fe,t.min=et,t.omit=Re,t.once=Wt,t.pairs=$e,t.partial=zt,t.partialRight=Jt,t.pick=Pe,t.pluck=po,t.property=er,t.pull=Et,t.range=At,t.reject=ot,t.remove=It,t.rest=kt,t.shuffle=ut,t.sortBy=lt,t.tap=lr,t.throttle=Kt,t.times=ir,t.toArray=st,t.transform=qe,t.union=Bt,t.uniq=Ct,t.values=We,t.where=ho,t.without=xt,t.wrap=Vt,t.xor=Lt,t.zip=Mt,t.zipObject=Ut,t.collect=Qe,t.drop=kt,t.each=Ze,t.eachRight=Ge,t.extend=oo,t.methods=we,t.object=Ut,t.select=Ve,t.tail=kt,t.unique=Ct,t.unzip=Mt,Ht(t),t.clone=he,t.cloneDeep=de,t.contains=Je,t.escape=Zt,t.every=Ke,t.find=Xe,t.findIndex=ht,t.findKey=ve,t.findLast=Ye,t.findLastIndex=dt,t.findLastKey=ye,t.has=_e,t.identity=Gt,t.indexOf=yt,t.isArguments=pe,t.isArray=Gr,t.isBoolean=Ae,t.isDate=Ie,t.isElement=ke,t.isEmpty=je,t.isEqual=Be,t.isFinite=Ce,t.isFunction=xe,t.isNaN=Me,t.isNull=Ue,t.isNumber=Se,t.isObject=Le,t.isPlainObject=fo,t.isRegExp=Te,t.isString=Ne,t.isUndefined=Oe,t.lastIndexOf=_t,t.mixin=Ht,t.noConflict=Qt,t.noop=nr,t.now=go,t.parseInt=vo,t.random=tr,t.reduce=tt,t.reduceRight=rt,t.result=rr,t.runInContext=g,t.size=at,t.some=ft,t.sortedIndex=jt,t.template=or,t.unescape=ur,t.uniqueId=ar,t.all=Ke,t.any=ft,t.detect=Xe,t.findWhere=Xe,t.foldl=tt,t.foldr=rt,t.include=Je,t.inject=tt,Ht(function(){var n={};return ao(t,function(e,r){t.prototype[r]||(n[r]=e)}),n}(),!1),t.first=gt,t.last=wt,t.sample=it,t.take=gt,t.head=gt,ao(t,function(n,e){var o="sample"!==e;t.prototype[e]||(t.prototype[e]=function(e,t){var i=this.__chain__,u=n(this.__wrapped__,e,t);return i||null!=e&&(!t||o&&"function"==typeof e)?new r(u,i):u})}),t.VERSION="2.4.1",t.prototype.chain=sr,t.prototype.toString=cr,t.prototype.value=pr,t.prototype.valueOf=pr,Ze(["join","pop","shift"],function(n){var e=Ar[n];t.prototype[n]=function(){var n=this.__chain__,t=e.apply(this.__wrapped__,arguments);return n?new r(t,n):t}}),Ze(["push","reverse","sort","unshift"],function(n){var e=Ar[n];t.prototype[n]=function(){return e.apply(this.__wrapped__,arguments),this}}),Ze(["concat","slice","splice"],function(n){var e=Ar[n];t.prototype[n]=function(){return new r(e.apply(this.__wrapped__,arguments),this.__chain__)}}),t}var v,y=[],b=[],m=0,w=+new Date+"",_=75,E=40,A=" \f \n\r\u2028\u2029 ᠎              ",I=/\b__p \+= '';/g,k=/\b(__p \+=) '' \+/g,j=/(__e\(.*?\)|\b__t\)) \+\n'';/g,B=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,C=/\w*$/,x=/^\s*function[ \n\r\t]+\w/,L=/<%=([\s\S]+?)%>/g,M=RegExp("^["+A+"]*0+(?=.$)"),U=/($^)/,S=/\bthis\b/,T=/['\n\r\t\u2028\u2029\\]/g,N=["Array","Boolean","Date","Function","Math","Number","Object","RegExp","String","_","attachEvent","clearTimeout","isFinite","isNaN","parseInt","setTimeout"],O=0,D="[object Arguments]",F="[object Array]",R="[object Boolean]",$="[object Date]",P="[object Function]",q="[object Number]",W="[object Object]",z="[object RegExp]",J="[object String]",K={};K[P]=!1,K[D]=K[F]=K[R]=K[$]=K[q]=K[W]=K[z]=K[J]=!0;var V={leading:!1,maxWait:0,trailing:!1},X={configurable:!1,enumerable:!1,value:null,writable:!1},Y={"boolean":!1,"function":!0,object:!0,number:!1,string:!1,undefined:!1},Z={"\\":"\\","'":"'","\n":"n","\r":"r"," ":"t","\u2028":"u2028","\u2029":"u2029"},G=Y[typeof window]&&window||this,H=Y[typeof t]&&t&&!t.nodeType&&t,Q=Y[typeof e]&&e&&!e.nodeType&&e,ne=Q&&Q.exports===H&&H,ee=Y[typeof r]&&r;!ee||ee.global!==ee&&ee.window!==ee||(G=ee);var te=g();"function"==typeof define&&"object"==typeof define.amd&&define.amd?(G._=te,define(function(){return te})):H&&Q?ne?(Q.exports=te)._=te:H._=te:G._=te}).call(this)}).call(this,n("oMfpAn"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},n("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../../node_modules/lodash/dist/lodash.js","/../../node_modules/lodash/dist")},{buffer:3,oMfpAn:6}],8:[function(n,e,t){(function(){"use strict";function e(n,e){var t=function(){$traceurRuntime.defaultSuperCall(this,r.prototype,arguments)},r=t;return $traceurRuntime.createClass(t,{},{},g),h.extend(t.prototype,n),this[e+"Controller"]=t,new t}function r(n){return n.replace(/([A-Z])/g," $1").replace(/^\s?/,"").replace(/-|\s/g,"_").toLowerCase()}function o(n,e,t,r){if(!n[t]||!h.isFunction(n[t]))throw new Error("'"+r+"' Controller has an action '"+e+"' defined with no corresponding method")}function i(n,e,t,o,i){var u=h([i,"controller",r(o),e]).compact().join(":");this.Dispatcher.on(u,n[t],n)}function u(n,e,t,r){var u=this;e&&e.forEach(function(e){var a=e;h.isObject(e)&&(a=h(e).values().first(),e=h(e).keys().first()),o(n,e,a,t),i.call(u,n,e,a,t,r)},this)}function a(n,e){if(!n.init)throw new Error("'Application' Controller: init is undefined");var t=h([e,"controller","all"]).compact().join(":");this.Dispatcher.on(t,n.init,n)}function f(){this.Controllers={},this.Dispatcher=d}Object.defineProperties(t,{"default":{get:function(){return y}},__esModule:{value:!0}});var l,s,c,p,h=(l=n("lodash"),l&&l.__esModule&&l||{"default":l}).default,d=(s=n("backbone-events-standalone"),s&&s.__esModule&&s||{"default":s}).default,g=(c=n("./controller"),c&&c.__esModule&&c||{"default":c}).default,v=(p=n("./def"),p&&p.__esModule&&p||{"default":p}).default;v(f,"createController",function(n,t){var r=e.call(this,t,n);return u.call(this,r,t.actions,n,t.namespace),n.match(/^Application$/i)&&a.call(this,r,t.namespace),this.Controllers[n]=r});var y=f}).call(this,n("oMfpAn"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},n("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/application.js","/")},{"./controller":9,"./def":10,"backbone-events-standalone":2,buffer:3,lodash:7,oMfpAn:6}],9:[function(n,e,t){(function(){"use strict";Object.defineProperties(t,{"default":{get:function(){return u}},__esModule:{value:!0}});var e,r,o=(e=n("lodash"),e&&e.__esModule&&e||{"default":e}).default,i=((r=n("./def"),r&&r.__esModule&&r||{"default":r}).default,function(){o.bindAll.apply(this,[this].concat(o.functions(this))),this.actions=[],this.initialize()});$traceurRuntime.createClass(i,{initialize:function(){}},{});var u=i}).call(this,n("oMfpAn"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},n("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/controller.js","/")},{"./def":10,buffer:3,lodash:7,oMfpAn:6}],10:[function(n,e,t){(function(){"use strict";Object.defineProperties(t,{"default":{get:function(){return n}},__esModule:{value:!0}});var n=function(n,e,t){var r=void 0!==arguments[3]?arguments[3]:!0,o=void 0!==arguments[4]?arguments[4]:!0,i=void 0!==arguments[5]?arguments[5]:!0;Object.defineProperty(n.prototype,e,{writeable:r,configurable:o,enumerable:i,value:t})}}).call(this,n("oMfpAn"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},n("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/def.js","/")},{buffer:3,oMfpAn:6}],11:[function(n){(function(e,t){"use strict";var r,o=(r=n("./application"),r&&r.__esModule&&r||{"default":r}).default;(t||window).JSKit={createApplication:function(){return new o}}}).call(this,n("oMfpAn"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},n("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/fake_51cb3cf6.js","/")},{"./application":8,buffer:3,oMfpAn:6}]},{},[11]);
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jskit_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.9
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dayton Nolan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-11 00:00:00.000000000 Z
11
+ date: 2014-10-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails