ember-source 1.13.1 → 1.13.1.1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of ember-source might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/dist/ember-template-compiler.js +552 -552
- data/dist/ember-testing.js +86 -86
- data/dist/ember.debug.js +1839 -1839
- data/dist/ember.js +1839 -1839
- data/dist/ember.min.js +17 -17
- data/dist/ember.prod.js +1749 -1749
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b2e2b0cf083a861ec36e0accf6a2be601a7572ab
|
4
|
+
data.tar.gz: d8792cb5c39c106017c9dde2c0b6955714855c5a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ae43ca40bd8c09b3a83e9b20ea1aa8aaa1a2f3988dff56d09d21c2b92a2ef6a1042531c40775d7ca6aab3a5a58764bd5a5e2de7e471efdad721a402f00b280cf
|
7
|
+
data.tar.gz: 19f6f2966aac0accb41c8b5feb65466340e1e1c535afa44b1a753a58dcd14e8431a3311d6ca5ad1993e93207e85dc9d2c326b01d1d24a5e256ab508e95186207
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.13.1
|
1
|
+
1.13.1.1
|
@@ -152,7 +152,7 @@ enifed("ember-debug", ["exports", "ember-metal/core", "ember-metal/error", "embe
|
|
152
152
|
its return value will be used as condition.
|
153
153
|
@public
|
154
154
|
*/
|
155
|
-
_emberMetalCore
|
155
|
+
_emberMetalCore["default"].assert = function (desc, test) {
|
156
156
|
var throwAssertion;
|
157
157
|
|
158
158
|
if (isPlainFunction(test)) {
|
@@ -162,7 +162,7 @@ enifed("ember-debug", ["exports", "ember-metal/core", "ember-metal/error", "embe
|
|
162
162
|
}
|
163
163
|
|
164
164
|
if (throwAssertion) {
|
165
|
-
throw new _emberMetalError
|
165
|
+
throw new _emberMetalError["default"]("Assertion Failed: " + desc);
|
166
166
|
}
|
167
167
|
};
|
168
168
|
|
@@ -176,11 +176,11 @@ enifed("ember-debug", ["exports", "ember-metal/core", "ember-metal/error", "embe
|
|
176
176
|
will be displayed.
|
177
177
|
@public
|
178
178
|
*/
|
179
|
-
_emberMetalCore
|
179
|
+
_emberMetalCore["default"].warn = function (message, test) {
|
180
180
|
if (!test) {
|
181
|
-
_emberMetalLogger
|
182
|
-
if ("trace" in _emberMetalLogger
|
183
|
-
_emberMetalLogger
|
181
|
+
_emberMetalLogger["default"].warn("WARNING: " + message);
|
182
|
+
if ("trace" in _emberMetalLogger["default"]) {
|
183
|
+
_emberMetalLogger["default"].trace();
|
184
184
|
}
|
185
185
|
}
|
186
186
|
};
|
@@ -197,8 +197,8 @@ enifed("ember-debug", ["exports", "ember-metal/core", "ember-metal/error", "embe
|
|
197
197
|
@param {String} message A debug message to display.
|
198
198
|
@public
|
199
199
|
*/
|
200
|
-
_emberMetalCore
|
201
|
-
_emberMetalLogger
|
200
|
+
_emberMetalCore["default"].debug = function (message) {
|
201
|
+
_emberMetalLogger["default"].debug("DEBUG: " + message);
|
202
202
|
};
|
203
203
|
|
204
204
|
/**
|
@@ -218,11 +218,11 @@ enifed("ember-debug", ["exports", "ember-metal/core", "ember-metal/error", "embe
|
|
218
218
|
The `id` should be namespaced by dots, e.g. "view.helper.select".
|
219
219
|
@public
|
220
220
|
*/
|
221
|
-
_emberMetalCore
|
222
|
-
if (_emberMetalCore
|
223
|
-
_emberDebugDeprecationManager
|
221
|
+
_emberMetalCore["default"].deprecate = function (message, test, options) {
|
222
|
+
if (_emberMetalCore["default"].ENV.RAISE_ON_DEPRECATION) {
|
223
|
+
_emberDebugDeprecationManager["default"].setDefaultLevel(_emberDebugDeprecationManager.deprecationLevels.RAISE);
|
224
224
|
}
|
225
|
-
if (_emberDebugDeprecationManager
|
225
|
+
if (_emberDebugDeprecationManager["default"].getLevel(options && options.id) === _emberDebugDeprecationManager.deprecationLevels.SILENCE) {
|
226
226
|
return;
|
227
227
|
}
|
228
228
|
|
@@ -242,8 +242,8 @@ enifed("ember-debug", ["exports", "ember-metal/core", "ember-metal/error", "embe
|
|
242
242
|
message = message + (" [deprecation id: " + options.id + "]");
|
243
243
|
}
|
244
244
|
|
245
|
-
if (_emberDebugDeprecationManager
|
246
|
-
throw new _emberMetalError
|
245
|
+
if (_emberDebugDeprecationManager["default"].getLevel(options && options.id) === _emberDebugDeprecationManager.deprecationLevels.RAISE) {
|
246
|
+
throw new _emberMetalError["default"](message);
|
247
247
|
}
|
248
248
|
|
249
249
|
var error;
|
@@ -256,13 +256,13 @@ enifed("ember-debug", ["exports", "ember-metal/core", "ember-metal/error", "embe
|
|
256
256
|
}
|
257
257
|
|
258
258
|
if (arguments.length === 3) {
|
259
|
-
_emberMetalCore
|
259
|
+
_emberMetalCore["default"].assert("options argument to Ember.deprecate should be an object", options && typeof options === "object");
|
260
260
|
if (options.url) {
|
261
261
|
message += " See " + options.url + " for more details.";
|
262
262
|
}
|
263
263
|
}
|
264
264
|
|
265
|
-
if (_emberMetalCore
|
265
|
+
if (_emberMetalCore["default"].LOG_STACKTRACE_ON_DEPRECATION && error.stack) {
|
266
266
|
var stack;
|
267
267
|
var stackStr = "";
|
268
268
|
|
@@ -279,7 +279,7 @@ enifed("ember-debug", ["exports", "ember-metal/core", "ember-metal/error", "embe
|
|
279
279
|
message = message + stackStr;
|
280
280
|
}
|
281
281
|
|
282
|
-
_emberMetalLogger
|
282
|
+
_emberMetalLogger["default"].warn("DEPRECATION: " + message);
|
283
283
|
};
|
284
284
|
|
285
285
|
/**
|
@@ -301,9 +301,9 @@ enifed("ember-debug", ["exports", "ember-metal/core", "ember-metal/error", "embe
|
|
301
301
|
@return {Function} a new function that wrapped the original function with a deprecation warning
|
302
302
|
@private
|
303
303
|
*/
|
304
|
-
_emberMetalCore
|
304
|
+
_emberMetalCore["default"].deprecateFunc = function (message, func) {
|
305
305
|
return function () {
|
306
|
-
_emberMetalCore
|
306
|
+
_emberMetalCore["default"].deprecate(message);
|
307
307
|
return func.apply(this, arguments);
|
308
308
|
};
|
309
309
|
};
|
@@ -327,7 +327,7 @@ enifed("ember-debug", ["exports", "ember-metal/core", "ember-metal/error", "embe
|
|
327
327
|
@since 1.5.0
|
328
328
|
@public
|
329
329
|
*/
|
330
|
-
_emberMetalCore
|
330
|
+
_emberMetalCore["default"].runInDebug = function (func) {
|
331
331
|
func();
|
332
332
|
};
|
333
333
|
|
@@ -344,32 +344,32 @@ enifed("ember-debug", ["exports", "ember-metal/core", "ember-metal/error", "embe
|
|
344
344
|
|
345
345
|
function _warnIfUsingStrippedFeatureFlags(FEATURES, featuresWereStripped) {
|
346
346
|
if (featuresWereStripped) {
|
347
|
-
_emberMetalCore
|
348
|
-
_emberMetalCore
|
347
|
+
_emberMetalCore["default"].warn("Ember.ENV.ENABLE_ALL_FEATURES is only available in canary builds.", !_emberMetalCore["default"].ENV.ENABLE_ALL_FEATURES);
|
348
|
+
_emberMetalCore["default"].warn("Ember.ENV.ENABLE_OPTIONAL_FEATURES is only available in canary builds.", !_emberMetalCore["default"].ENV.ENABLE_OPTIONAL_FEATURES);
|
349
349
|
|
350
350
|
for (var key in FEATURES) {
|
351
351
|
if (FEATURES.hasOwnProperty(key) && key !== "isEnabled") {
|
352
|
-
_emberMetalCore
|
352
|
+
_emberMetalCore["default"].warn("FEATURE[\"" + key + "\"] is set as enabled, but FEATURE flags are only available in canary builds.", !FEATURES[key]);
|
353
353
|
}
|
354
354
|
}
|
355
355
|
}
|
356
356
|
}
|
357
357
|
|
358
|
-
if (!_emberMetalCore
|
358
|
+
if (!_emberMetalCore["default"].testing) {
|
359
359
|
// Complain if they're using FEATURE flags in builds other than canary
|
360
|
-
_emberMetalCore
|
360
|
+
_emberMetalCore["default"].FEATURES["features-stripped-test"] = true;
|
361
361
|
var featuresWereStripped = true;
|
362
362
|
|
363
|
-
if (_emberMetalCore
|
363
|
+
if (_emberMetalCore["default"].FEATURES.isEnabled("features-stripped-test")) {
|
364
364
|
featuresWereStripped = false;
|
365
365
|
}
|
366
366
|
|
367
|
-
delete _emberMetalCore
|
368
|
-
_warnIfUsingStrippedFeatureFlags(_emberMetalCore
|
367
|
+
delete _emberMetalCore["default"].FEATURES["features-stripped-test"];
|
368
|
+
_warnIfUsingStrippedFeatureFlags(_emberMetalCore["default"].ENV.FEATURES, featuresWereStripped);
|
369
369
|
|
370
370
|
// Inform the developer about the Ember Inspector if not installed.
|
371
|
-
var isFirefox = _emberMetalEnvironment
|
372
|
-
var isChrome = _emberMetalEnvironment
|
371
|
+
var isFirefox = _emberMetalEnvironment["default"].isFirefox;
|
372
|
+
var isChrome = _emberMetalEnvironment["default"].isChrome;
|
373
373
|
|
374
374
|
if (typeof window !== "undefined" && (isFirefox || isChrome) && window.addEventListener) {
|
375
375
|
window.addEventListener("load", function () {
|
@@ -382,15 +382,15 @@ enifed("ember-debug", ["exports", "ember-metal/core", "ember-metal/error", "embe
|
|
382
382
|
downloadURL = "https://addons.mozilla.org/en-US/firefox/addon/ember-inspector/";
|
383
383
|
}
|
384
384
|
|
385
|
-
_emberMetalCore
|
385
|
+
_emberMetalCore["default"].debug("For more advanced debugging, install the Ember Inspector from " + downloadURL);
|
386
386
|
}
|
387
387
|
}, false);
|
388
388
|
}
|
389
389
|
}
|
390
390
|
|
391
|
-
_emberMetalCore
|
391
|
+
_emberMetalCore["default"].Debug = {
|
392
392
|
_addDeprecationLevel: function (id, level) {
|
393
|
-
_emberDebugDeprecationManager
|
393
|
+
_emberDebugDeprecationManager["default"].setLevel(id, level);
|
394
394
|
},
|
395
395
|
_deprecationLevels: _emberDebugDeprecationManager.deprecationLevels
|
396
396
|
};
|
@@ -406,7 +406,7 @@ enifed("ember-debug", ["exports", "ember-metal/core", "ember-metal/error", "embe
|
|
406
406
|
var runningNonEmberDebugJS = false;
|
407
407
|
exports.runningNonEmberDebugJS = runningNonEmberDebugJS;
|
408
408
|
if (runningNonEmberDebugJS) {
|
409
|
-
_emberMetalCore
|
409
|
+
_emberMetalCore["default"].warn("Please use `ember.debug.js` instead of `ember.js` for development and debugging.");
|
410
410
|
}
|
411
411
|
});
|
412
412
|
/*global __fail__*/
|
@@ -418,9 +418,9 @@ enifed('ember-debug/deprecation-manager', ['exports', 'ember-metal/dictionary',
|
|
418
418
|
};
|
419
419
|
|
420
420
|
exports.deprecationLevels = deprecationLevels;
|
421
|
-
exports
|
421
|
+
exports["default"] = {
|
422
422
|
defaultLevel: deprecationLevels.LOG,
|
423
|
-
individualLevels: (0, _emberMetalDictionary
|
423
|
+
individualLevels: (0, _emberMetalDictionary["default"])(null),
|
424
424
|
setDefaultLevel: function (level) {
|
425
425
|
this.defaultLevel = level;
|
426
426
|
},
|
@@ -449,7 +449,7 @@ enifed("ember-metal", ["exports", "ember-metal/core", "ember-metal/merge", "embe
|
|
449
449
|
_emberMetalComputed.computed.gte = _emberMetalComputed_macros.gte;
|
450
450
|
_emberMetalComputed.computed.lt = _emberMetalComputed_macros.lt;
|
451
451
|
_emberMetalComputed.computed.lte = _emberMetalComputed_macros.lte;
|
452
|
-
_emberMetalComputed.computed.alias = _emberMetalAlias
|
452
|
+
_emberMetalComputed.computed.alias = _emberMetalAlias["default"];
|
453
453
|
_emberMetalComputed.computed.oneWay = _emberMetalComputed_macros.oneWay;
|
454
454
|
_emberMetalComputed.computed.reads = _emberMetalComputed_macros.oneWay;
|
455
455
|
_emberMetalComputed.computed.readOnly = _emberMetalComputed_macros.readOnly;
|
@@ -463,166 +463,166 @@ enifed("ember-metal", ["exports", "ember-metal/core", "ember-metal/merge", "embe
|
|
463
463
|
// END IMPORTS
|
464
464
|
|
465
465
|
// BEGIN EXPORTS
|
466
|
-
var EmberInstrumentation = _emberMetalCore
|
466
|
+
var EmberInstrumentation = _emberMetalCore["default"].Instrumentation = {};
|
467
467
|
EmberInstrumentation.instrument = _emberMetalInstrumentation.instrument;
|
468
468
|
EmberInstrumentation.subscribe = _emberMetalInstrumentation.subscribe;
|
469
469
|
EmberInstrumentation.unsubscribe = _emberMetalInstrumentation.unsubscribe;
|
470
470
|
EmberInstrumentation.reset = _emberMetalInstrumentation.reset;
|
471
471
|
|
472
|
-
_emberMetalCore
|
473
|
-
_emberMetalCore
|
472
|
+
_emberMetalCore["default"].instrument = _emberMetalInstrumentation.instrument;
|
473
|
+
_emberMetalCore["default"].subscribe = _emberMetalInstrumentation.subscribe;
|
474
474
|
|
475
|
-
_emberMetalCore
|
475
|
+
_emberMetalCore["default"]._Cache = _emberMetalCache["default"];
|
476
476
|
|
477
|
-
_emberMetalCore
|
478
|
-
_emberMetalCore
|
479
|
-
_emberMetalCore
|
480
|
-
_emberMetalCore
|
481
|
-
_emberMetalCore
|
477
|
+
_emberMetalCore["default"].generateGuid = _emberMetalUtils.generateGuid;
|
478
|
+
_emberMetalCore["default"].GUID_KEY = _emberMetalUtils.GUID_KEY;
|
479
|
+
_emberMetalCore["default"].create = _emberMetalPlatformCreate["default"];
|
480
|
+
_emberMetalCore["default"].keys = _emberMetalKeys["default"];
|
481
|
+
_emberMetalCore["default"].platform = {
|
482
482
|
defineProperty: _emberMetalProperties.defineProperty,
|
483
483
|
hasPropertyAccessors: _emberMetalPlatformDefine_property.hasPropertyAccessors
|
484
484
|
};
|
485
485
|
|
486
|
-
var EmberArrayPolyfills = _emberMetalCore
|
486
|
+
var EmberArrayPolyfills = _emberMetalCore["default"].ArrayPolyfills = {};
|
487
487
|
|
488
488
|
EmberArrayPolyfills.map = _emberMetalArray.map;
|
489
489
|
EmberArrayPolyfills.forEach = _emberMetalArray.forEach;
|
490
490
|
EmberArrayPolyfills.filter = _emberMetalArray.filter;
|
491
491
|
EmberArrayPolyfills.indexOf = _emberMetalArray.indexOf;
|
492
492
|
|
493
|
-
_emberMetalCore
|
494
|
-
_emberMetalCore
|
495
|
-
_emberMetalCore
|
496
|
-
_emberMetalCore
|
497
|
-
_emberMetalCore
|
498
|
-
_emberMetalCore
|
499
|
-
_emberMetalCore
|
500
|
-
_emberMetalCore
|
501
|
-
_emberMetalCore
|
502
|
-
_emberMetalCore
|
503
|
-
_emberMetalCore
|
504
|
-
_emberMetalCore
|
505
|
-
_emberMetalCore
|
506
|
-
_emberMetalCore
|
507
|
-
_emberMetalCore
|
508
|
-
_emberMetalCore
|
509
|
-
_emberMetalCore
|
510
|
-
_emberMetalCore
|
511
|
-
|
512
|
-
_emberMetalCore
|
513
|
-
|
514
|
-
_emberMetalCore
|
515
|
-
_emberMetalCore
|
516
|
-
_emberMetalCore
|
517
|
-
_emberMetalCore
|
518
|
-
|
519
|
-
_emberMetalCore
|
520
|
-
|
521
|
-
_emberMetalCore
|
522
|
-
_emberMetalCore
|
523
|
-
_emberMetalCore
|
524
|
-
_emberMetalCore
|
525
|
-
_emberMetalCore
|
526
|
-
_emberMetalCore
|
527
|
-
_emberMetalCore
|
528
|
-
_emberMetalCore
|
529
|
-
_emberMetalCore
|
530
|
-
_emberMetalCore
|
531
|
-
|
532
|
-
_emberMetalCore
|
533
|
-
|
534
|
-
_emberMetalCore
|
535
|
-
_emberMetalCore
|
536
|
-
_emberMetalCore
|
537
|
-
_emberMetalCore
|
538
|
-
_emberMetalCore
|
539
|
-
_emberMetalCore
|
540
|
-
|
541
|
-
_emberMetalCore
|
542
|
-
|
543
|
-
_emberMetalCore
|
544
|
-
_emberMetalCore
|
545
|
-
|
546
|
-
_emberMetalCore
|
547
|
-
_emberMetalCore
|
548
|
-
_emberMetalCore
|
549
|
-
|
550
|
-
_emberMetalCore
|
551
|
-
_emberMetalCore
|
552
|
-
|
553
|
-
_emberMetalCore
|
554
|
-
_emberMetalCore
|
555
|
-
|
556
|
-
_emberMetalCore
|
557
|
-
_emberMetalCore
|
558
|
-
_emberMetalCore
|
559
|
-
_emberMetalCore
|
560
|
-
|
561
|
-
_emberMetalCore
|
562
|
-
_emberMetalCore
|
563
|
-
|
564
|
-
_emberMetalCore
|
565
|
-
_emberMetalCore
|
566
|
-
_emberMetalCore
|
567
|
-
_emberMetalCore
|
568
|
-
_emberMetalCore
|
569
|
-
|
570
|
-
_emberMetalCore
|
571
|
-
|
572
|
-
_emberMetalCore
|
573
|
-
_emberMetalCore
|
574
|
-
_emberMetalCore
|
575
|
-
|
576
|
-
_emberMetalCore
|
577
|
-
_emberMetalCore
|
578
|
-
_emberMetalCore
|
579
|
-
_emberMetalCore
|
580
|
-
_emberMetalCore
|
581
|
-
_emberMetalCore
|
582
|
-
_emberMetalCore
|
583
|
-
_emberMetalCore
|
584
|
-
_emberMetalCore
|
585
|
-
_emberMetalCore
|
586
|
-
|
587
|
-
_emberMetalCore
|
588
|
-
_emberMetalCore
|
589
|
-
_emberMetalCore
|
590
|
-
_emberMetalCore
|
591
|
-
_emberMetalCore
|
592
|
-
_emberMetalCore
|
593
|
-
_emberMetalCore
|
594
|
-
_emberMetalCore
|
595
|
-
|
596
|
-
_emberMetalCore
|
597
|
-
_emberMetalCore
|
598
|
-
_emberMetalCore
|
599
|
-
_emberMetalCore
|
600
|
-
|
601
|
-
_emberMetalCore
|
493
|
+
_emberMetalCore["default"].Error = _emberMetalError["default"];
|
494
|
+
_emberMetalCore["default"].guidFor = _emberMetalUtils.guidFor;
|
495
|
+
_emberMetalCore["default"].META_DESC = _emberMetalUtils.META_DESC;
|
496
|
+
_emberMetalCore["default"].EMPTY_META = _emberMetalUtils.EMPTY_META;
|
497
|
+
_emberMetalCore["default"].meta = _emberMetalUtils.meta;
|
498
|
+
_emberMetalCore["default"].getMeta = _emberMetalUtils.getMeta;
|
499
|
+
_emberMetalCore["default"].setMeta = _emberMetalUtils.setMeta;
|
500
|
+
_emberMetalCore["default"].metaPath = _emberMetalUtils.metaPath;
|
501
|
+
_emberMetalCore["default"].inspect = _emberMetalUtils.inspect;
|
502
|
+
_emberMetalCore["default"].tryCatchFinally = _emberMetalUtils.deprecatedTryCatchFinally;
|
503
|
+
_emberMetalCore["default"].makeArray = _emberMetalUtils.makeArray;
|
504
|
+
_emberMetalCore["default"].canInvoke = _emberMetalUtils.canInvoke;
|
505
|
+
_emberMetalCore["default"].tryInvoke = _emberMetalUtils.tryInvoke;
|
506
|
+
_emberMetalCore["default"].tryFinally = _emberMetalUtils.deprecatedTryFinally;
|
507
|
+
_emberMetalCore["default"].wrap = _emberMetalUtils.wrap;
|
508
|
+
_emberMetalCore["default"].apply = _emberMetalUtils.apply;
|
509
|
+
_emberMetalCore["default"].applyStr = _emberMetalUtils.applyStr;
|
510
|
+
_emberMetalCore["default"].uuid = _emberMetalUtils.uuid;
|
511
|
+
|
512
|
+
_emberMetalCore["default"].Logger = _emberMetalLogger["default"];
|
513
|
+
|
514
|
+
_emberMetalCore["default"].get = _emberMetalProperty_get.get;
|
515
|
+
_emberMetalCore["default"].getWithDefault = _emberMetalProperty_get.getWithDefault;
|
516
|
+
_emberMetalCore["default"].normalizeTuple = _emberMetalProperty_get.normalizeTuple;
|
517
|
+
_emberMetalCore["default"]._getPath = _emberMetalProperty_get._getPath;
|
518
|
+
|
519
|
+
_emberMetalCore["default"].EnumerableUtils = _emberMetalEnumerable_utils["default"];
|
520
|
+
|
521
|
+
_emberMetalCore["default"].on = _emberMetalEvents.on;
|
522
|
+
_emberMetalCore["default"].addListener = _emberMetalEvents.addListener;
|
523
|
+
_emberMetalCore["default"].removeListener = _emberMetalEvents.removeListener;
|
524
|
+
_emberMetalCore["default"]._suspendListener = _emberMetalEvents.suspendListener;
|
525
|
+
_emberMetalCore["default"]._suspendListeners = _emberMetalEvents.suspendListeners;
|
526
|
+
_emberMetalCore["default"].sendEvent = _emberMetalEvents.sendEvent;
|
527
|
+
_emberMetalCore["default"].hasListeners = _emberMetalEvents.hasListeners;
|
528
|
+
_emberMetalCore["default"].watchedEvents = _emberMetalEvents.watchedEvents;
|
529
|
+
_emberMetalCore["default"].listenersFor = _emberMetalEvents.listenersFor;
|
530
|
+
_emberMetalCore["default"].accumulateListeners = _emberMetalEvents.accumulateListeners;
|
531
|
+
|
532
|
+
_emberMetalCore["default"]._ObserverSet = _emberMetalObserver_set["default"];
|
533
|
+
|
534
|
+
_emberMetalCore["default"].propertyWillChange = _emberMetalProperty_events.propertyWillChange;
|
535
|
+
_emberMetalCore["default"].propertyDidChange = _emberMetalProperty_events.propertyDidChange;
|
536
|
+
_emberMetalCore["default"].overrideChains = _emberMetalProperty_events.overrideChains;
|
537
|
+
_emberMetalCore["default"].beginPropertyChanges = _emberMetalProperty_events.beginPropertyChanges;
|
538
|
+
_emberMetalCore["default"].endPropertyChanges = _emberMetalProperty_events.endPropertyChanges;
|
539
|
+
_emberMetalCore["default"].changeProperties = _emberMetalProperty_events.changeProperties;
|
540
|
+
|
541
|
+
_emberMetalCore["default"].defineProperty = _emberMetalProperties.defineProperty;
|
542
|
+
|
543
|
+
_emberMetalCore["default"].set = _emberMetalProperty_set.set;
|
544
|
+
_emberMetalCore["default"].trySet = _emberMetalProperty_set.trySet;
|
545
|
+
|
546
|
+
_emberMetalCore["default"].OrderedSet = _emberMetalMap.OrderedSet;
|
547
|
+
_emberMetalCore["default"].Map = _emberMetalMap.Map;
|
548
|
+
_emberMetalCore["default"].MapWithDefault = _emberMetalMap.MapWithDefault;
|
549
|
+
|
550
|
+
_emberMetalCore["default"].getProperties = _emberMetalGet_properties["default"];
|
551
|
+
_emberMetalCore["default"].setProperties = _emberMetalSet_properties["default"];
|
552
|
+
|
553
|
+
_emberMetalCore["default"].watchKey = _emberMetalWatch_key.watchKey;
|
554
|
+
_emberMetalCore["default"].unwatchKey = _emberMetalWatch_key.unwatchKey;
|
555
|
+
|
556
|
+
_emberMetalCore["default"].flushPendingChains = _emberMetalChains.flushPendingChains;
|
557
|
+
_emberMetalCore["default"].removeChainWatcher = _emberMetalChains.removeChainWatcher;
|
558
|
+
_emberMetalCore["default"]._ChainNode = _emberMetalChains.ChainNode;
|
559
|
+
_emberMetalCore["default"].finishChains = _emberMetalChains.finishChains;
|
560
|
+
|
561
|
+
_emberMetalCore["default"].watchPath = _emberMetalWatch_path.watchPath;
|
562
|
+
_emberMetalCore["default"].unwatchPath = _emberMetalWatch_path.unwatchPath;
|
563
|
+
|
564
|
+
_emberMetalCore["default"].watch = _emberMetalWatching.watch;
|
565
|
+
_emberMetalCore["default"].isWatching = _emberMetalWatching.isWatching;
|
566
|
+
_emberMetalCore["default"].unwatch = _emberMetalWatching.unwatch;
|
567
|
+
_emberMetalCore["default"].rewatch = _emberMetalWatching.rewatch;
|
568
|
+
_emberMetalCore["default"].destroy = _emberMetalWatching.destroy;
|
569
|
+
|
570
|
+
_emberMetalCore["default"].expandProperties = _emberMetalExpand_properties["default"];
|
571
|
+
|
572
|
+
_emberMetalCore["default"].ComputedProperty = _emberMetalComputed.ComputedProperty;
|
573
|
+
_emberMetalCore["default"].computed = _emberMetalComputed.computed;
|
574
|
+
_emberMetalCore["default"].cacheFor = _emberMetalComputed.cacheFor;
|
575
|
+
|
576
|
+
_emberMetalCore["default"].addObserver = _emberMetalObserver.addObserver;
|
577
|
+
_emberMetalCore["default"].observersFor = _emberMetalObserver.observersFor;
|
578
|
+
_emberMetalCore["default"].removeObserver = _emberMetalObserver.removeObserver;
|
579
|
+
_emberMetalCore["default"].addBeforeObserver = _emberMetalObserver.addBeforeObserver;
|
580
|
+
_emberMetalCore["default"]._suspendBeforeObserver = _emberMetalObserver._suspendBeforeObserver;
|
581
|
+
_emberMetalCore["default"]._suspendBeforeObservers = _emberMetalObserver._suspendBeforeObservers;
|
582
|
+
_emberMetalCore["default"]._suspendObserver = _emberMetalObserver._suspendObserver;
|
583
|
+
_emberMetalCore["default"]._suspendObservers = _emberMetalObserver._suspendObservers;
|
584
|
+
_emberMetalCore["default"].beforeObserversFor = _emberMetalObserver.beforeObserversFor;
|
585
|
+
_emberMetalCore["default"].removeBeforeObserver = _emberMetalObserver.removeBeforeObserver;
|
586
|
+
|
587
|
+
_emberMetalCore["default"].IS_BINDING = _emberMetalMixin.IS_BINDING;
|
588
|
+
_emberMetalCore["default"].required = _emberMetalMixin.required;
|
589
|
+
_emberMetalCore["default"].aliasMethod = _emberMetalMixin.aliasMethod;
|
590
|
+
_emberMetalCore["default"].observer = _emberMetalMixin.observer;
|
591
|
+
_emberMetalCore["default"].immediateObserver = _emberMetalMixin.immediateObserver;
|
592
|
+
_emberMetalCore["default"].beforeObserver = _emberMetalMixin.beforeObserver;
|
593
|
+
_emberMetalCore["default"].mixin = _emberMetalMixin.mixin;
|
594
|
+
_emberMetalCore["default"].Mixin = _emberMetalMixin.Mixin;
|
595
|
+
|
596
|
+
_emberMetalCore["default"].oneWay = _emberMetalBinding.oneWay;
|
597
|
+
_emberMetalCore["default"].bind = _emberMetalBinding.bind;
|
598
|
+
_emberMetalCore["default"].Binding = _emberMetalBinding.Binding;
|
599
|
+
_emberMetalCore["default"].isGlobalPath = _emberMetalBinding.isGlobalPath;
|
600
|
+
|
601
|
+
_emberMetalCore["default"].run = _emberMetalRun_loop["default"];
|
602
602
|
|
603
603
|
/**
|
604
604
|
@class Backburner
|
605
605
|
@for Ember
|
606
606
|
@private
|
607
607
|
*/
|
608
|
-
_emberMetalCore
|
608
|
+
_emberMetalCore["default"].Backburner = _backburner["default"];
|
609
609
|
// this is the new go forward, once Ember Data updates to using `_Backburner` we
|
610
610
|
// can remove the non-underscored version.
|
611
|
-
_emberMetalCore
|
611
|
+
_emberMetalCore["default"]._Backburner = _backburner["default"];
|
612
612
|
|
613
|
-
_emberMetalCore
|
614
|
-
_emberMetalCore
|
613
|
+
_emberMetalCore["default"].libraries = new _emberMetalLibraries["default"]();
|
614
|
+
_emberMetalCore["default"].libraries.registerCoreLibrary("Ember", _emberMetalCore["default"].VERSION);
|
615
615
|
|
616
|
-
_emberMetalCore
|
617
|
-
_emberMetalCore
|
618
|
-
_emberMetalCore
|
619
|
-
_emberMetalCore
|
616
|
+
_emberMetalCore["default"].isNone = _emberMetalIs_none["default"];
|
617
|
+
_emberMetalCore["default"].isEmpty = _emberMetalIs_empty["default"];
|
618
|
+
_emberMetalCore["default"].isBlank = _emberMetalIs_blank["default"];
|
619
|
+
_emberMetalCore["default"].isPresent = _emberMetalIs_present["default"];
|
620
620
|
|
621
|
-
_emberMetalCore
|
621
|
+
_emberMetalCore["default"].merge = _emberMetalMerge["default"];
|
622
622
|
|
623
|
-
if (_emberMetalCore
|
624
|
-
_emberMetalCore
|
625
|
-
Stream: _emberMetalStreamsStream
|
623
|
+
if (_emberMetalCore["default"].FEATURES.isEnabled("ember-metal-stream")) {
|
624
|
+
_emberMetalCore["default"].stream = {
|
625
|
+
Stream: _emberMetalStreamsStream["default"],
|
626
626
|
|
627
627
|
isStream: _emberMetalStreamsUtils.isStream,
|
628
628
|
subscribe: _emberMetalStreamsUtils.subscribe,
|
@@ -658,16 +658,16 @@ enifed("ember-metal", ["exports", "ember-metal/core", "ember-metal/merge", "embe
|
|
658
658
|
@param {Exception} error the error object
|
659
659
|
@public
|
660
660
|
*/
|
661
|
-
_emberMetalCore
|
661
|
+
_emberMetalCore["default"].onerror = null;
|
662
662
|
// END EXPORTS
|
663
663
|
|
664
664
|
// do this for side-effects of updating Ember.assert, warn, etc when
|
665
665
|
// ember-debug is present
|
666
|
-
if (_emberMetalCore
|
666
|
+
if (_emberMetalCore["default"].__loader.registry["ember-debug"]) {
|
667
667
|
requireModule("ember-debug");
|
668
668
|
}
|
669
669
|
|
670
|
-
exports
|
670
|
+
exports["default"] = _emberMetalCore["default"];
|
671
671
|
});
|
672
672
|
/**
|
673
673
|
@module ember
|
@@ -676,7 +676,7 @@ enifed("ember-metal", ["exports", "ember-metal/core", "ember-metal/merge", "embe
|
|
676
676
|
|
677
677
|
// BEGIN IMPORTS
|
678
678
|
enifed("ember-metal/alias", ["exports", "ember-metal/property_get", "ember-metal/property_set", "ember-metal/core", "ember-metal/error", "ember-metal/properties", "ember-metal/computed", "ember-metal/platform/create", "ember-metal/utils", "ember-metal/dependent_keys"], function (exports, _emberMetalProperty_get, _emberMetalProperty_set, _emberMetalCore, _emberMetalError, _emberMetalProperties, _emberMetalComputed, _emberMetalPlatformCreate, _emberMetalUtils, _emberMetalDependent_keys) {
|
679
|
-
exports
|
679
|
+
exports["default"] = alias;
|
680
680
|
exports.AliasedProperty = AliasedProperty;
|
681
681
|
|
682
682
|
function alias(altKey) {
|
@@ -689,7 +689,7 @@ enifed("ember-metal/alias", ["exports", "ember-metal/property_get", "ember-metal
|
|
689
689
|
this._dependentKeys = [altKey];
|
690
690
|
}
|
691
691
|
|
692
|
-
AliasedProperty.prototype = (0, _emberMetalPlatformCreate
|
692
|
+
AliasedProperty.prototype = (0, _emberMetalPlatformCreate["default"])(_emberMetalProperties.Descriptor.prototype);
|
693
693
|
|
694
694
|
AliasedProperty.prototype.get = function AliasedProperty_get(obj, keyName) {
|
695
695
|
return (0, _emberMetalProperty_get.get)(obj, this.altKey);
|
@@ -708,7 +708,7 @@ enifed("ember-metal/alias", ["exports", "ember-metal/property_get", "ember-metal
|
|
708
708
|
};
|
709
709
|
|
710
710
|
AliasedProperty.prototype.setup = function (obj, keyName) {
|
711
|
-
_emberMetalCore
|
711
|
+
_emberMetalCore["default"].assert("Setting alias '" + keyName + "' on self", this.altKey !== keyName);
|
712
712
|
var m = (0, _emberMetalUtils.meta)(obj);
|
713
713
|
if (m.watching[keyName]) {
|
714
714
|
(0, _emberMetalDependent_keys.addDependentKeys)(this, obj, keyName, m);
|
@@ -728,7 +728,7 @@ enifed("ember-metal/alias", ["exports", "ember-metal/property_get", "ember-metal
|
|
728
728
|
};
|
729
729
|
|
730
730
|
function AliasedProperty_readOnlySet(obj, keyName, value) {
|
731
|
-
throw new _emberMetalError
|
731
|
+
throw new _emberMetalError["default"]("Cannot set read-only property '" + keyName + "' on object: " + (0, _emberMetalUtils.inspect)(obj));
|
732
732
|
}
|
733
733
|
|
734
734
|
AliasedProperty.prototype.oneWay = function () {
|
@@ -906,7 +906,7 @@ enifed("ember-metal/binding", ["exports", "ember-metal/core", "ember-metal/prope
|
|
906
906
|
@default false
|
907
907
|
@public
|
908
908
|
*/
|
909
|
-
_emberMetalCore
|
909
|
+
_emberMetalCore["default"].LOG_BINDINGS = false || !!_emberMetalCore["default"].ENV.LOG_BINDINGS;
|
910
910
|
|
911
911
|
/**
|
912
912
|
Returns true if the provided path is global (e.g., `MyApp.fooController.bar`)
|
@@ -920,7 +920,7 @@ enifed("ember-metal/binding", ["exports", "ember-metal/core", "ember-metal/prope
|
|
920
920
|
*/
|
921
921
|
|
922
922
|
function getWithGlobals(obj, path) {
|
923
|
-
return (0, _emberMetalProperty_get.get)((0, _emberMetalPath_cache.isGlobal)(path) ? _emberMetalCore
|
923
|
+
return (0, _emberMetalProperty_get.get)((0, _emberMetalPath_cache.isGlobal)(path) ? _emberMetalCore["default"].lookup : obj, path);
|
924
924
|
}
|
925
925
|
|
926
926
|
// ..........................................................
|
@@ -1032,7 +1032,7 @@ enifed("ember-metal/binding", ["exports", "ember-metal/core", "ember-metal/prope
|
|
1032
1032
|
@public
|
1033
1033
|
*/
|
1034
1034
|
connect: function (obj) {
|
1035
|
-
_emberMetalCore
|
1035
|
+
_emberMetalCore["default"].assert("Must pass a valid object to Ember.Binding.connect()", !!obj);
|
1036
1036
|
|
1037
1037
|
var fromPath = this._from;
|
1038
1038
|
var toPath = this._to;
|
@@ -1060,7 +1060,7 @@ enifed("ember-metal/binding", ["exports", "ember-metal/core", "ember-metal/prope
|
|
1060
1060
|
@public
|
1061
1061
|
*/
|
1062
1062
|
disconnect: function (obj) {
|
1063
|
-
_emberMetalCore
|
1063
|
+
_emberMetalCore["default"].assert("Must pass a valid object to Ember.Binding.disconnect()", !!obj);
|
1064
1064
|
|
1065
1065
|
var twoWay = !this._oneWay;
|
1066
1066
|
|
@@ -1096,7 +1096,7 @@ enifed("ember-metal/binding", ["exports", "ember-metal/core", "ember-metal/prope
|
|
1096
1096
|
|
1097
1097
|
// if we haven't scheduled the binding yet, schedule it
|
1098
1098
|
if (existingDir === undefined) {
|
1099
|
-
_emberMetalRun_loop
|
1099
|
+
_emberMetalRun_loop["default"].schedule("sync", this, this._sync, obj);
|
1100
1100
|
this._direction = dir;
|
1101
1101
|
}
|
1102
1102
|
|
@@ -1108,7 +1108,7 @@ enifed("ember-metal/binding", ["exports", "ember-metal/core", "ember-metal/prope
|
|
1108
1108
|
},
|
1109
1109
|
|
1110
1110
|
_sync: function (obj) {
|
1111
|
-
var log = _emberMetalCore
|
1111
|
+
var log = _emberMetalCore["default"].LOG_BINDINGS;
|
1112
1112
|
|
1113
1113
|
// don't synchronize destroyed objects or disconnected bindings
|
1114
1114
|
if (obj.isDestroyed || !this._readyToSync) {
|
@@ -1128,7 +1128,7 @@ enifed("ember-metal/binding", ["exports", "ember-metal/core", "ember-metal/prope
|
|
1128
1128
|
if (direction === "fwd") {
|
1129
1129
|
var fromValue = getWithGlobals(obj, this._from);
|
1130
1130
|
if (log) {
|
1131
|
-
_emberMetalCore
|
1131
|
+
_emberMetalCore["default"].Logger.log(" ", this.toString(), "->", fromValue, obj);
|
1132
1132
|
}
|
1133
1133
|
if (this._oneWay) {
|
1134
1134
|
(0, _emberMetalProperty_set.trySet)(obj, toPath, fromValue);
|
@@ -1141,10 +1141,10 @@ enifed("ember-metal/binding", ["exports", "ember-metal/core", "ember-metal/prope
|
|
1141
1141
|
} else if (direction === "back") {
|
1142
1142
|
var toValue = (0, _emberMetalProperty_get.get)(obj, this._to);
|
1143
1143
|
if (log) {
|
1144
|
-
_emberMetalCore
|
1144
|
+
_emberMetalCore["default"].Logger.log(" ", this.toString(), "<-", toValue, obj);
|
1145
1145
|
}
|
1146
1146
|
(0, _emberMetalObserver._suspendObserver)(obj, fromPath, this, this.fromDidChange, function () {
|
1147
|
-
(0, _emberMetalProperty_set.trySet)((0, _emberMetalPath_cache.isGlobal)(fromPath) ? _emberMetalCore
|
1147
|
+
(0, _emberMetalProperty_set.trySet)((0, _emberMetalPath_cache.isGlobal)(fromPath) ? _emberMetalCore["default"].lookup : obj, fromPath, toValue);
|
1148
1148
|
});
|
1149
1149
|
}
|
1150
1150
|
}
|
@@ -1374,10 +1374,10 @@ enifed("ember-metal/binding", ["exports", "ember-metal/core", "ember-metal/prope
|
|
1374
1374
|
});
|
1375
1375
|
// Ember.Logger, Ember.LOG_BINDINGS, assert
|
1376
1376
|
enifed('ember-metal/cache', ['exports', 'ember-metal/dictionary'], function (exports, _emberMetalDictionary) {
|
1377
|
-
exports
|
1377
|
+
exports["default"] = Cache;
|
1378
1378
|
|
1379
1379
|
function Cache(limit, func) {
|
1380
|
-
this.store = (0, _emberMetalDictionary
|
1380
|
+
this.store = (0, _emberMetalDictionary["default"])(null);
|
1381
1381
|
this.size = 0;
|
1382
1382
|
this.misses = 0;
|
1383
1383
|
this.hits = 0;
|
@@ -1419,7 +1419,7 @@ enifed('ember-metal/cache', ['exports', 'ember-metal/dictionary'], function (exp
|
|
1419
1419
|
},
|
1420
1420
|
|
1421
1421
|
purge: function () {
|
1422
|
-
this.store = (0, _emberMetalDictionary
|
1422
|
+
this.store = (0, _emberMetalDictionary["default"])(null);
|
1423
1423
|
this.size = 0;
|
1424
1424
|
this.hits = 0;
|
1425
1425
|
this.misses = 0;
|
@@ -1430,7 +1430,7 @@ enifed("ember-metal/chains", ["exports", "ember-metal/core", "ember-metal/proper
|
|
1430
1430
|
exports.flushPendingChains = flushPendingChains;
|
1431
1431
|
exports.finishChains = finishChains;
|
1432
1432
|
|
1433
|
-
var warn = _emberMetalCore
|
1433
|
+
var warn = _emberMetalCore["default"].warn;
|
1434
1434
|
var FIRST_KEY = /^([^\.]+)/;
|
1435
1435
|
|
1436
1436
|
function firstKey(path) {
|
@@ -2004,7 +2004,7 @@ enifed("ember-metal/computed", ["exports", "ember-metal/property_set", "ember-me
|
|
2004
2004
|
@chainable
|
2005
2005
|
@public
|
2006
2006
|
*/
|
2007
|
-
ComputedPropertyPrototype
|
2007
|
+
ComputedPropertyPrototype["volatile"] = function () {
|
2008
2008
|
this._cacheable = false;
|
2009
2009
|
return this;
|
2010
2010
|
};
|
@@ -2074,7 +2074,7 @@ enifed("ember-metal/computed", ["exports", "ember-metal/property_set", "ember-me
|
|
2074
2074
|
|
2075
2075
|
args = [];
|
2076
2076
|
for (var i = 0, l = arguments.length; i < l; i++) {
|
2077
|
-
(0, _emberMetalExpand_properties
|
2077
|
+
(0, _emberMetalExpand_properties["default"])(arguments[i], addArg);
|
2078
2078
|
}
|
2079
2079
|
|
2080
2080
|
this._dependentKeys = args;
|
@@ -2269,7 +2269,7 @@ enifed("ember-metal/computed", ["exports", "ember-metal/property_set", "ember-me
|
|
2269
2269
|
var cachedValue, ret;
|
2270
2270
|
|
2271
2271
|
if (this._readOnly) {
|
2272
|
-
throw new _emberMetalError
|
2272
|
+
throw new _emberMetalError["default"]("Cannot set read-only property \"" + keyName + "\" on object: " + (0, _emberMetalUtils.inspect)(obj));
|
2273
2273
|
}
|
2274
2274
|
|
2275
2275
|
if (cacheable && cache && cache[keyName] !== undefined) {
|
@@ -2538,7 +2538,7 @@ enifed("ember-metal/computed_macros", ["exports", "ember-metal/core", "ember-met
|
|
2538
2538
|
|
2539
2539
|
function empty(dependentKey) {
|
2540
2540
|
return (0, _emberMetalComputed.computed)(dependentKey + ".length", function () {
|
2541
|
-
return (0, _emberMetalIs_empty
|
2541
|
+
return (0, _emberMetalIs_empty["default"])((0, _emberMetalProperty_get.get)(this, dependentKey));
|
2542
2542
|
});
|
2543
2543
|
}
|
2544
2544
|
|
@@ -2570,7 +2570,7 @@ enifed("ember-metal/computed_macros", ["exports", "ember-metal/core", "ember-met
|
|
2570
2570
|
|
2571
2571
|
function notEmpty(dependentKey) {
|
2572
2572
|
return (0, _emberMetalComputed.computed)(dependentKey + ".length", function () {
|
2573
|
-
return !(0, _emberMetalIs_empty
|
2573
|
+
return !(0, _emberMetalIs_empty["default"])((0, _emberMetalProperty_get.get)(this, dependentKey));
|
2574
2574
|
});
|
2575
2575
|
}
|
2576
2576
|
|
@@ -2605,7 +2605,7 @@ enifed("ember-metal/computed_macros", ["exports", "ember-metal/core", "ember-met
|
|
2605
2605
|
|
2606
2606
|
function none(dependentKey) {
|
2607
2607
|
return (0, _emberMetalComputed.computed)(dependentKey, function () {
|
2608
|
-
return (0, _emberMetalIs_none
|
2608
|
+
return (0, _emberMetalIs_none["default"])((0, _emberMetalProperty_get.get)(this, dependentKey));
|
2609
2609
|
});
|
2610
2610
|
}
|
2611
2611
|
|
@@ -2993,7 +2993,7 @@ enifed("ember-metal/computed_macros", ["exports", "ember-metal/core", "ember-met
|
|
2993
2993
|
@public
|
2994
2994
|
*/
|
2995
2995
|
var any = generateComputedWithProperties(function (properties) {
|
2996
|
-
_emberMetalCore
|
2996
|
+
_emberMetalCore["default"].deprecate("Usage of Ember.computed.any is deprecated, use `Ember.computed.or` instead.");
|
2997
2997
|
for (var key in properties) {
|
2998
2998
|
if (properties.hasOwnProperty(key) && properties[key]) {
|
2999
2999
|
return properties[key];
|
@@ -3030,10 +3030,10 @@ enifed("ember-metal/computed_macros", ["exports", "ember-metal/core", "ember-met
|
|
3030
3030
|
@public
|
3031
3031
|
*/
|
3032
3032
|
var collect = generateComputedWithProperties(function (properties) {
|
3033
|
-
var res = _emberMetalCore
|
3033
|
+
var res = _emberMetalCore["default"].A();
|
3034
3034
|
for (var key in properties) {
|
3035
3035
|
if (properties.hasOwnProperty(key)) {
|
3036
|
-
if ((0, _emberMetalIs_none
|
3036
|
+
if ((0, _emberMetalIs_none["default"])(properties[key])) {
|
3037
3037
|
res.push(null);
|
3038
3038
|
} else {
|
3039
3039
|
res.push(properties[key]);
|
@@ -3107,7 +3107,7 @@ enifed("ember-metal/computed_macros", ["exports", "ember-metal/core", "ember-met
|
|
3107
3107
|
*/
|
3108
3108
|
|
3109
3109
|
function oneWay(dependentKey) {
|
3110
|
-
return (0, _emberMetalAlias
|
3110
|
+
return (0, _emberMetalAlias["default"])(dependentKey).oneWay();
|
3111
3111
|
}
|
3112
3112
|
|
3113
3113
|
/**
|
@@ -3159,7 +3159,7 @@ enifed("ember-metal/computed_macros", ["exports", "ember-metal/core", "ember-met
|
|
3159
3159
|
*/
|
3160
3160
|
|
3161
3161
|
function readOnly(dependentKey) {
|
3162
|
-
return (0, _emberMetalAlias
|
3162
|
+
return (0, _emberMetalAlias["default"])(dependentKey).readOnly();
|
3163
3163
|
}
|
3164
3164
|
|
3165
3165
|
/**
|
@@ -3194,12 +3194,12 @@ enifed("ember-metal/computed_macros", ["exports", "ember-metal/core", "ember-met
|
|
3194
3194
|
function defaultTo(defaultPath) {
|
3195
3195
|
return (0, _emberMetalComputed.computed)({
|
3196
3196
|
get: function (key) {
|
3197
|
-
_emberMetalCore
|
3197
|
+
_emberMetalCore["default"].deprecate("Usage of Ember.computed.defaultTo is deprecated, use `Ember.computed.oneWay` instead.");
|
3198
3198
|
return (0, _emberMetalProperty_get.get)(this, defaultPath);
|
3199
3199
|
},
|
3200
3200
|
|
3201
3201
|
set: function (key, newValue, cachedValue) {
|
3202
|
-
_emberMetalCore
|
3202
|
+
_emberMetalCore["default"].deprecate("Usage of Ember.computed.defaultTo is deprecated, use `Ember.computed.oneWay` instead.");
|
3203
3203
|
return newValue != null ? newValue : (0, _emberMetalProperty_get.get)(this, defaultPath);
|
3204
3204
|
}
|
3205
3205
|
});
|
@@ -3223,11 +3223,11 @@ enifed("ember-metal/computed_macros", ["exports", "ember-metal/core", "ember-met
|
|
3223
3223
|
function deprecatingAlias(dependentKey) {
|
3224
3224
|
return (0, _emberMetalComputed.computed)(dependentKey, {
|
3225
3225
|
get: function (key) {
|
3226
|
-
_emberMetalCore
|
3226
|
+
_emberMetalCore["default"].deprecate("Usage of `" + key + "` is deprecated, use `" + dependentKey + "` instead.");
|
3227
3227
|
return (0, _emberMetalProperty_get.get)(this, dependentKey);
|
3228
3228
|
},
|
3229
3229
|
set: function (key, value) {
|
3230
|
-
_emberMetalCore
|
3230
|
+
_emberMetalCore["default"].deprecate("Usage of `" + key + "` is deprecated, use `" + dependentKey + "` instead.");
|
3231
3231
|
(0, _emberMetalProperty_set.set)(this, dependentKey, value);
|
3232
3232
|
return value;
|
3233
3233
|
}
|
@@ -3481,7 +3481,7 @@ enifed('ember-metal/core', ['exports'], function (exports) {
|
|
3481
3481
|
};
|
3482
3482
|
}
|
3483
3483
|
|
3484
|
-
exports
|
3484
|
+
exports["default"] = Ember;
|
3485
3485
|
});
|
3486
3486
|
enifed("ember-metal/dependent_keys", ["exports", "ember-metal/platform/create", "ember-metal/watching"], function (exports, _emberMetalPlatformCreate, _emberMetalWatching) {
|
3487
3487
|
exports.addDependentKeys = addDependentKeys;
|
@@ -3520,7 +3520,7 @@ enifed("ember-metal/dependent_keys", ["exports", "ember-metal/platform/create",
|
|
3520
3520
|
} else if (!depsMeta.hasOwnProperty(depKey)) {
|
3521
3521
|
// otherwise if the dependency list is inherited from
|
3522
3522
|
// a superclass, clone the hash
|
3523
|
-
keys = depsMeta[depKey] = (0, _emberMetalPlatformCreate
|
3523
|
+
keys = depsMeta[depKey] = (0, _emberMetalPlatformCreate["default"])(keys);
|
3524
3524
|
}
|
3525
3525
|
return keys;
|
3526
3526
|
}
|
@@ -3590,7 +3590,7 @@ enifed("ember-metal/deprecate_property", ["exports", "ember-metal/core", "ember-
|
|
3590
3590
|
|
3591
3591
|
function deprecateProperty(object, deprecatedKey, newKey) {
|
3592
3592
|
function deprecate() {
|
3593
|
-
_emberMetalCore
|
3593
|
+
_emberMetalCore["default"].deprecate("Usage of `" + deprecatedKey + "` is deprecated, use `" + newKey + "` instead.");
|
3594
3594
|
}
|
3595
3595
|
|
3596
3596
|
if (_emberMetalPlatformDefine_property.hasPropertyAccessors) {
|
@@ -3614,7 +3614,7 @@ enifed("ember-metal/deprecate_property", ["exports", "ember-metal/core", "ember-
|
|
3614
3614
|
@submodule ember-metal
|
3615
3615
|
*/
|
3616
3616
|
enifed('ember-metal/dictionary', ['exports', 'ember-metal/platform/create'], function (exports, _emberMetalPlatformCreate) {
|
3617
|
-
exports
|
3617
|
+
exports["default"] = makeDictionary;
|
3618
3618
|
|
3619
3619
|
// the delete is meant to hint at runtimes that this object should remain in
|
3620
3620
|
// dictionary mode. This is clearly a runtime specific hack, but currently it
|
@@ -3623,7 +3623,7 @@ enifed('ember-metal/dictionary', ['exports', 'ember-metal/platform/create'], fun
|
|
3623
3623
|
// only makes sense for long-lived dictionaries that aren't instantiated often.
|
3624
3624
|
|
3625
3625
|
function makeDictionary(parent) {
|
3626
|
-
var dict = (0, _emberMetalPlatformCreate
|
3626
|
+
var dict = (0, _emberMetalPlatformCreate["default"])(parent);
|
3627
3627
|
dict['_dict'] = null;
|
3628
3628
|
delete dict['_dict'];
|
3629
3629
|
return dict;
|
@@ -3672,7 +3672,7 @@ enifed('ember-metal/enumerable_utils', ['exports', 'ember-metal/core', 'ember-me
|
|
3672
3672
|
return obj.map ? obj.map(callback, thisArg) : _emberMetalArray.map.call(obj, callback, thisArg);
|
3673
3673
|
}
|
3674
3674
|
|
3675
|
-
var deprecatedMap = _emberMetalCore
|
3675
|
+
var deprecatedMap = _emberMetalCore["default"].deprecateFunc('Ember.EnumberableUtils.map is deprecated, please refactor to use Array.prototype.map.', map);
|
3676
3676
|
|
3677
3677
|
/**
|
3678
3678
|
Calls the forEach function on the passed object with a specified callback. This
|
@@ -3690,7 +3690,7 @@ enifed('ember-metal/enumerable_utils', ['exports', 'ember-metal/core', 'ember-me
|
|
3690
3690
|
return obj.forEach ? obj.forEach(callback, thisArg) : _emberMetalArray.forEach.call(obj, callback, thisArg);
|
3691
3691
|
}
|
3692
3692
|
|
3693
|
-
var deprecatedForEach = _emberMetalCore
|
3693
|
+
var deprecatedForEach = _emberMetalCore["default"].deprecateFunc('Ember.EnumberableUtils.forEach is deprecated, please refactor to use Array.prototype.forEach.', forEach);
|
3694
3694
|
|
3695
3695
|
/**
|
3696
3696
|
Calls the filter function on the passed object with a specified callback. This
|
@@ -3711,7 +3711,7 @@ enifed('ember-metal/enumerable_utils', ['exports', 'ember-metal/core', 'ember-me
|
|
3711
3711
|
return obj.filter ? obj.filter(callback, thisArg) : _emberMetalArray.filter.call(obj, callback, thisArg);
|
3712
3712
|
}
|
3713
3713
|
|
3714
|
-
var deprecatedFilter = _emberMetalCore
|
3714
|
+
var deprecatedFilter = _emberMetalCore["default"].deprecateFunc('Ember.EnumberableUtils.filter is deprecated, please refactor to use Array.prototype.filter.', filter);
|
3715
3715
|
|
3716
3716
|
/**
|
3717
3717
|
Calls the indexOf function on the passed object with a specified callback. This
|
@@ -3729,7 +3729,7 @@ enifed('ember-metal/enumerable_utils', ['exports', 'ember-metal/core', 'ember-me
|
|
3729
3729
|
return obj.indexOf ? obj.indexOf(element, index) : _emberMetalArray.indexOf.call(obj, element, index);
|
3730
3730
|
}
|
3731
3731
|
|
3732
|
-
var deprecatedIndexOf = _emberMetalCore
|
3732
|
+
var deprecatedIndexOf = _emberMetalCore["default"].deprecateFunc('Ember.EnumberableUtils.indexOf is deprecated, please refactor to use Array.prototype.indexOf.', indexOf);
|
3733
3733
|
|
3734
3734
|
/**
|
3735
3735
|
Returns an array of indexes of the first occurrences of the passed elements
|
@@ -3758,7 +3758,7 @@ enifed('ember-metal/enumerable_utils', ['exports', 'ember-metal/core', 'ember-me
|
|
3758
3758
|
});
|
3759
3759
|
}
|
3760
3760
|
|
3761
|
-
var deprecatedIndexesOf = _emberMetalCore
|
3761
|
+
var deprecatedIndexesOf = _emberMetalCore["default"].deprecateFunc('Ember.EnumerableUtils.indexesOf is deprecated.', indexesOf);
|
3762
3762
|
|
3763
3763
|
/**
|
3764
3764
|
Adds an object to an array. If the array already includes the object this
|
@@ -3780,7 +3780,7 @@ enifed('ember-metal/enumerable_utils', ['exports', 'ember-metal/core', 'ember-me
|
|
3780
3780
|
}
|
3781
3781
|
}
|
3782
3782
|
|
3783
|
-
var deprecatedAddObject = _emberMetalCore
|
3783
|
+
var deprecatedAddObject = _emberMetalCore["default"].deprecateFunc('Ember.EnumerableUtils.addObject is deprecated.', addObject);
|
3784
3784
|
|
3785
3785
|
/**
|
3786
3786
|
Removes an object from an array. If the array does not contain the passed
|
@@ -3802,7 +3802,7 @@ enifed('ember-metal/enumerable_utils', ['exports', 'ember-metal/core', 'ember-me
|
|
3802
3802
|
}
|
3803
3803
|
}
|
3804
3804
|
|
3805
|
-
var deprecatedRemoveObject = _emberMetalCore
|
3805
|
+
var deprecatedRemoveObject = _emberMetalCore["default"].deprecateFunc('Ember.EnumerableUtils.removeObject is deprecated.', removeObject);
|
3806
3806
|
|
3807
3807
|
function _replace(array, idx, amt, objects) {
|
3808
3808
|
var args = [].concat(objects);
|
@@ -3866,7 +3866,7 @@ enifed('ember-metal/enumerable_utils', ['exports', 'ember-metal/core', 'ember-me
|
|
3866
3866
|
}
|
3867
3867
|
}
|
3868
3868
|
|
3869
|
-
var deprecatedReplace = _emberMetalCore
|
3869
|
+
var deprecatedReplace = _emberMetalCore["default"].deprecateFunc('Ember.EnumerableUtils.replace is deprecated.', replace);
|
3870
3870
|
|
3871
3871
|
/**
|
3872
3872
|
Calculates the intersection of two arrays. This method returns a new array
|
@@ -3905,11 +3905,11 @@ enifed('ember-metal/enumerable_utils', ['exports', 'ember-metal/core', 'ember-me
|
|
3905
3905
|
return result;
|
3906
3906
|
}
|
3907
3907
|
|
3908
|
-
var deprecatedIntersection = _emberMetalCore
|
3908
|
+
var deprecatedIntersection = _emberMetalCore["default"].deprecateFunc('Ember.EnumerableUtils.intersection is deprecated.', intersection);
|
3909
3909
|
|
3910
3910
|
// TODO: this only exists to maintain the existing api, as we move forward it
|
3911
3911
|
// should only be part of the "global build" via some shim
|
3912
|
-
exports
|
3912
|
+
exports["default"] = {
|
3913
3913
|
_replace: _replace,
|
3914
3914
|
addObject: deprecatedAddObject,
|
3915
3915
|
filter: deprecatedFilter,
|
@@ -3941,7 +3941,7 @@ enifed('ember-metal/environment', ['exports', 'ember-metal/core'], function (exp
|
|
3941
3941
|
// by searching for window and document.createElement. An environment
|
3942
3942
|
// with DOM may disable the DOM functionality of Ember explicitly by
|
3943
3943
|
// defining a `disableBrowserEnvironment` ENV.
|
3944
|
-
var hasDOM = typeof window !== 'undefined' && typeof document !== 'undefined' && typeof document.createElement !== 'undefined' && !_emberMetalCore
|
3944
|
+
var hasDOM = typeof window !== 'undefined' && typeof document !== 'undefined' && typeof document.createElement !== 'undefined' && !_emberMetalCore["default"].ENV.disableBrowserEnvironment;
|
3945
3945
|
|
3946
3946
|
if (hasDOM) {
|
3947
3947
|
environment = {
|
@@ -3965,7 +3965,7 @@ enifed('ember-metal/environment', ['exports', 'ember-metal/core'], function (exp
|
|
3965
3965
|
};
|
3966
3966
|
}
|
3967
3967
|
|
3968
|
-
exports
|
3968
|
+
exports["default"] = environment;
|
3969
3969
|
});
|
3970
3970
|
enifed('ember-metal/error', ['exports', 'ember-metal/platform/create'], function (exports, _emberMetalPlatformCreate) {
|
3971
3971
|
|
@@ -3999,9 +3999,9 @@ enifed('ember-metal/error', ['exports', 'ember-metal/platform/create'], function
|
|
3999
3999
|
}
|
4000
4000
|
}
|
4001
4001
|
|
4002
|
-
EmberError.prototype = (0, _emberMetalPlatformCreate
|
4002
|
+
EmberError.prototype = (0, _emberMetalPlatformCreate["default"])(Error.prototype);
|
4003
4003
|
|
4004
|
-
exports
|
4004
|
+
exports["default"] = EmberError;
|
4005
4005
|
});
|
4006
4006
|
enifed("ember-metal/events", ["exports", "ember-metal/core", "ember-metal/utils", "ember-metal/platform/create"], function (exports, _emberMetalCore, _emberMetalUtils, _emberMetalPlatformCreate) {
|
4007
4007
|
exports.accumulateListeners = accumulateListeners;
|
@@ -4060,11 +4060,11 @@ enifed("ember-metal/events", ["exports", "ember-metal/core", "ember-metal/utils"
|
|
4060
4060
|
var listeners = meta.listeners;
|
4061
4061
|
|
4062
4062
|
if (!listeners) {
|
4063
|
-
listeners = meta.listeners = (0, _emberMetalPlatformCreate
|
4063
|
+
listeners = meta.listeners = (0, _emberMetalPlatformCreate["default"])(null);
|
4064
4064
|
listeners.__source__ = obj;
|
4065
4065
|
} else if (listeners.__source__ !== obj) {
|
4066
4066
|
// setup inherited copy of the listeners object
|
4067
|
-
listeners = meta.listeners = (0, _emberMetalPlatformCreate
|
4067
|
+
listeners = meta.listeners = (0, _emberMetalPlatformCreate["default"])(listeners);
|
4068
4068
|
listeners.__source__ = obj;
|
4069
4069
|
}
|
4070
4070
|
|
@@ -4121,7 +4121,7 @@ enifed("ember-metal/events", ["exports", "ember-metal/core", "ember-metal/utils"
|
|
4121
4121
|
*/
|
4122
4122
|
|
4123
4123
|
function addListener(obj, eventName, target, method, once) {
|
4124
|
-
_emberMetalCore
|
4124
|
+
_emberMetalCore["default"].assert("You must pass at least an object and event name to Ember.addListener", !!obj && !!eventName);
|
4125
4125
|
|
4126
4126
|
if (!method && "function" === typeof target) {
|
4127
4127
|
method = target;
|
@@ -4161,7 +4161,7 @@ enifed("ember-metal/events", ["exports", "ember-metal/core", "ember-metal/utils"
|
|
4161
4161
|
@public
|
4162
4162
|
*/
|
4163
4163
|
function removeListener(obj, eventName, target, method) {
|
4164
|
-
_emberMetalCore
|
4164
|
+
_emberMetalCore["default"].assert("You must pass at least an object and event name to Ember.removeListener", !!obj && !!eventName);
|
4165
4165
|
|
4166
4166
|
if (!method && "function" === typeof target) {
|
4167
4167
|
method = target;
|
@@ -4334,7 +4334,7 @@ enifed("ember-metal/events", ["exports", "ember-metal/core", "ember-metal/utils"
|
|
4334
4334
|
|
4335
4335
|
function sendEvent(obj, eventName, params, actions) {
|
4336
4336
|
// first give object a chance to handle it
|
4337
|
-
if (obj !== _emberMetalCore
|
4337
|
+
if (obj !== _emberMetalCore["default"] && "function" === typeof obj.sendEvent) {
|
4338
4338
|
obj.sendEvent(eventName, params);
|
4339
4339
|
}
|
4340
4340
|
|
@@ -4466,7 +4466,7 @@ enifed("ember-metal/events", ["exports", "ember-metal/core", "ember-metal/utils"
|
|
4466
4466
|
@submodule ember-metal
|
4467
4467
|
*/
|
4468
4468
|
enifed('ember-metal/expand_properties', ['exports', 'ember-metal/error', 'ember-metal/array'], function (exports, _emberMetalError, _emberMetalArray) {
|
4469
|
-
exports
|
4469
|
+
exports["default"] = expandProperties;
|
4470
4470
|
|
4471
4471
|
/**
|
4472
4472
|
@module ember
|
@@ -4504,7 +4504,7 @@ enifed('ember-metal/expand_properties', ['exports', 'ember-metal/error', 'ember-
|
|
4504
4504
|
|
4505
4505
|
function expandProperties(pattern, callback) {
|
4506
4506
|
if (pattern.indexOf(' ') > -1) {
|
4507
|
-
throw new _emberMetalError
|
4507
|
+
throw new _emberMetalError["default"]('Brace expanded properties cannot contain spaces, e.g. \'user.{firstName, lastName}\' should be \'user.{firstName,lastName}\'');
|
4508
4508
|
}
|
4509
4509
|
|
4510
4510
|
if ('string' === typeof pattern) {
|
@@ -4540,7 +4540,7 @@ enifed('ember-metal/expand_properties', ['exports', 'ember-metal/error', 'ember-
|
|
4540
4540
|
}
|
4541
4541
|
});
|
4542
4542
|
enifed("ember-metal/get_properties", ["exports", "ember-metal/property_get", "ember-metal/utils"], function (exports, _emberMetalProperty_get, _emberMetalUtils) {
|
4543
|
-
exports
|
4543
|
+
exports["default"] = getProperties;
|
4544
4544
|
|
4545
4545
|
/**
|
4546
4546
|
To get multiple properties at once, call `Ember.getProperties`
|
@@ -4606,12 +4606,12 @@ enifed("ember-metal/injected_property", ["exports", "ember-metal/core", "ember-m
|
|
4606
4606
|
var possibleDesc = this[keyName];
|
4607
4607
|
var desc = possibleDesc !== null && typeof possibleDesc === "object" && possibleDesc.isDescriptor ? possibleDesc : undefined;
|
4608
4608
|
|
4609
|
-
_emberMetalCore
|
4609
|
+
_emberMetalCore["default"].assert("Attempting to lookup an injected property on an object without a container, ensure that the object was instantiated via a container.", this.container);
|
4610
4610
|
|
4611
4611
|
return this.container.lookup(desc.type + ":" + (desc.name || keyName));
|
4612
4612
|
}
|
4613
4613
|
|
4614
|
-
InjectedProperty.prototype = (0, _emberMetalPlatformCreate
|
4614
|
+
InjectedProperty.prototype = (0, _emberMetalPlatformCreate["default"])(_emberMetalProperties.Descriptor.prototype);
|
4615
4615
|
|
4616
4616
|
var InjectedPropertyPrototype = InjectedProperty.prototype;
|
4617
4617
|
var ComputedPropertyPrototype = _emberMetalComputed.ComputedProperty.prototype;
|
@@ -4624,7 +4624,7 @@ enifed("ember-metal/injected_property", ["exports", "ember-metal/core", "ember-m
|
|
4624
4624
|
|
4625
4625
|
InjectedPropertyPrototype.teardown = ComputedPropertyPrototype.teardown;
|
4626
4626
|
|
4627
|
-
exports
|
4627
|
+
exports["default"] = InjectedProperty;
|
4628
4628
|
});
|
4629
4629
|
// Ember.assert
|
4630
4630
|
enifed("ember-metal/instrumentation", ["exports", "ember-metal/core", "ember-metal/utils"], function (exports, _emberMetalCore, _emberMetalUtils) {
|
@@ -4763,7 +4763,7 @@ enifed("ember-metal/instrumentation", ["exports", "ember-metal/core", "ember-met
|
|
4763
4763
|
|
4764
4764
|
var payload = _payload();
|
4765
4765
|
|
4766
|
-
var STRUCTURED_PROFILE = _emberMetalCore
|
4766
|
+
var STRUCTURED_PROFILE = _emberMetalCore["default"].STRUCTURED_PROFILE;
|
4767
4767
|
var timeName;
|
4768
4768
|
if (STRUCTURED_PROFILE) {
|
4769
4769
|
timeName = name + ": " + payload.object;
|
@@ -4872,7 +4872,7 @@ enifed("ember-metal/instrumentation", ["exports", "ember-metal/core", "ember-met
|
|
4872
4872
|
}
|
4873
4873
|
});
|
4874
4874
|
enifed('ember-metal/is_blank', ['exports', 'ember-metal/is_empty'], function (exports, _emberMetalIs_empty) {
|
4875
|
-
exports
|
4875
|
+
exports["default"] = isBlank;
|
4876
4876
|
|
4877
4877
|
/**
|
4878
4878
|
A value is blank if it is empty or a whitespace string.
|
@@ -4900,7 +4900,7 @@ enifed('ember-metal/is_blank', ['exports', 'ember-metal/is_empty'], function (ex
|
|
4900
4900
|
*/
|
4901
4901
|
|
4902
4902
|
function isBlank(obj) {
|
4903
|
-
return (0, _emberMetalIs_empty
|
4903
|
+
return (0, _emberMetalIs_empty["default"])(obj) || typeof obj === 'string' && obj.match(/\S/) === null;
|
4904
4904
|
}
|
4905
4905
|
});
|
4906
4906
|
enifed('ember-metal/is_empty', ['exports', 'ember-metal/property_get', 'ember-metal/is_none'], function (exports, _emberMetalProperty_get, _emberMetalIs_none) {
|
@@ -4930,7 +4930,7 @@ enifed('ember-metal/is_empty', ['exports', 'ember-metal/property_get', 'ember-me
|
|
4930
4930
|
@public
|
4931
4931
|
*/
|
4932
4932
|
function isEmpty(obj) {
|
4933
|
-
var none = (0, _emberMetalIs_none
|
4933
|
+
var none = (0, _emberMetalIs_none["default"])(obj);
|
4934
4934
|
if (none) {
|
4935
4935
|
return none;
|
4936
4936
|
}
|
@@ -4962,7 +4962,7 @@ enifed('ember-metal/is_empty', ['exports', 'ember-metal/property_get', 'ember-me
|
|
4962
4962
|
return false;
|
4963
4963
|
}
|
4964
4964
|
|
4965
|
-
exports
|
4965
|
+
exports["default"] = isEmpty;
|
4966
4966
|
});
|
4967
4967
|
enifed("ember-metal/is_none", ["exports"], function (exports) {
|
4968
4968
|
/**
|
@@ -4989,10 +4989,10 @@ enifed("ember-metal/is_none", ["exports"], function (exports) {
|
|
4989
4989
|
return obj === null || obj === undefined;
|
4990
4990
|
}
|
4991
4991
|
|
4992
|
-
exports
|
4992
|
+
exports["default"] = isNone;
|
4993
4993
|
});
|
4994
4994
|
enifed('ember-metal/is_present', ['exports', 'ember-metal/is_blank'], function (exports, _emberMetalIs_blank) {
|
4995
|
-
exports
|
4995
|
+
exports["default"] = isPresent;
|
4996
4996
|
|
4997
4997
|
/**
|
4998
4998
|
A value is present if it not `isBlank`.
|
@@ -5021,7 +5021,7 @@ enifed('ember-metal/is_present', ['exports', 'ember-metal/is_blank'], function (
|
|
5021
5021
|
*/
|
5022
5022
|
|
5023
5023
|
function isPresent(obj) {
|
5024
|
-
return !(0, _emberMetalIs_blank
|
5024
|
+
return !(0, _emberMetalIs_blank["default"])(obj);
|
5025
5025
|
}
|
5026
5026
|
});
|
5027
5027
|
enifed('ember-metal/keys', ['exports', 'ember-metal/platform/define_property'], function (exports, _emberMetalPlatformDefine_property) {
|
@@ -5074,7 +5074,7 @@ enifed('ember-metal/keys', ['exports', 'ember-metal/platform/define_property'],
|
|
5074
5074
|
})();
|
5075
5075
|
}
|
5076
5076
|
|
5077
|
-
exports
|
5077
|
+
exports["default"] = keys;
|
5078
5078
|
});
|
5079
5079
|
enifed("ember-metal/libraries", ["exports", "ember-metal/core", "ember-metal/enumerable_utils"], function (exports, _emberMetalCore, _emberMetalEnumerable_utils) {
|
5080
5080
|
|
@@ -5115,7 +5115,7 @@ enifed("ember-metal/libraries", ["exports", "ember-metal/core", "ember-metal/enu
|
|
5115
5115
|
}
|
5116
5116
|
this._registry.splice(index, 0, { name: name, version: version });
|
5117
5117
|
} else {
|
5118
|
-
_emberMetalCore
|
5118
|
+
_emberMetalCore["default"].warn("Library \"" + name + "\" is already registered with Ember.");
|
5119
5119
|
}
|
5120
5120
|
},
|
5121
5121
|
|
@@ -5134,20 +5134,20 @@ enifed("ember-metal/libraries", ["exports", "ember-metal/core", "ember-metal/enu
|
|
5134
5134
|
},
|
5135
5135
|
|
5136
5136
|
each: function (callback) {
|
5137
|
-
_emberMetalCore
|
5137
|
+
_emberMetalCore["default"].deprecate("Using Ember.libraries.each() is deprecated. Access to a list of registered libraries is currently a private API. If you are not knowingly accessing this method, your out-of-date Ember Inspector may be doing so.");
|
5138
5138
|
(0, _emberMetalEnumerable_utils.forEach)(this._registry, function (lib) {
|
5139
5139
|
callback(lib.name, lib.version);
|
5140
5140
|
});
|
5141
5141
|
}
|
5142
5142
|
};
|
5143
5143
|
|
5144
|
-
if (_emberMetalCore
|
5144
|
+
if (_emberMetalCore["default"].FEATURES.isEnabled("ember-libraries-isregistered")) {
|
5145
5145
|
Libraries.prototype.isRegistered = function (name) {
|
5146
5146
|
return !!this._getLibraryByName(name);
|
5147
5147
|
};
|
5148
5148
|
}
|
5149
5149
|
|
5150
|
-
exports
|
5150
|
+
exports["default"] = Libraries;
|
5151
5151
|
});
|
5152
5152
|
enifed("ember-metal/logger", ["exports", "ember-metal/core", "ember-metal/error"], function (exports, _emberMetalCore, _emberMetalError) {
|
5153
5153
|
|
@@ -5157,8 +5157,8 @@ enifed("ember-metal/logger", ["exports", "ember-metal/core", "ember-metal/error"
|
|
5157
5157
|
|
5158
5158
|
function consoleMethod(name) {
|
5159
5159
|
var consoleObj, logToConsole;
|
5160
|
-
if (_emberMetalCore
|
5161
|
-
consoleObj = _emberMetalCore
|
5160
|
+
if (_emberMetalCore["default"].imports.console) {
|
5161
|
+
consoleObj = _emberMetalCore["default"].imports.console;
|
5162
5162
|
} else if (typeof console !== "undefined") {
|
5163
5163
|
consoleObj = console;
|
5164
5164
|
}
|
@@ -5190,7 +5190,7 @@ enifed("ember-metal/logger", ["exports", "ember-metal/core", "ember-metal/error"
|
|
5190
5190
|
if (!test) {
|
5191
5191
|
try {
|
5192
5192
|
// attempt to preserve the stack
|
5193
|
-
throw new _emberMetalError
|
5193
|
+
throw new _emberMetalError["default"]("assertion failed: " + message);
|
5194
5194
|
} catch (error) {
|
5195
5195
|
setTimeout(function () {
|
5196
5196
|
throw error;
|
@@ -5207,7 +5207,7 @@ enifed("ember-metal/logger", ["exports", "ember-metal/core", "ember-metal/error"
|
|
5207
5207
|
@namespace Ember
|
5208
5208
|
@private
|
5209
5209
|
*/
|
5210
|
-
exports
|
5210
|
+
exports["default"] = {
|
5211
5211
|
/**
|
5212
5212
|
Logs the arguments to the console.
|
5213
5213
|
You can pass as many arguments as you want and they will be joined together with a space.
|
@@ -5307,7 +5307,7 @@ enifed("ember-metal/map", ["exports", "ember-metal/utils", "ember-metal/array",
|
|
5307
5307
|
}
|
5308
5308
|
|
5309
5309
|
function copyNull(obj) {
|
5310
|
-
var output = (0, _emberMetalPlatformCreate
|
5310
|
+
var output = (0, _emberMetalPlatformCreate["default"])(null);
|
5311
5311
|
|
5312
5312
|
for (var prop in obj) {
|
5313
5313
|
// hasOwnPropery is not needed because obj is Object.create(null);
|
@@ -5367,7 +5367,7 @@ enifed("ember-metal/map", ["exports", "ember-metal/utils", "ember-metal/array",
|
|
5367
5367
|
@private
|
5368
5368
|
*/
|
5369
5369
|
clear: function () {
|
5370
|
-
this.presenceSet = (0, _emberMetalPlatformCreate
|
5370
|
+
this.presenceSet = (0, _emberMetalPlatformCreate["default"])(null);
|
5371
5371
|
this.list = [];
|
5372
5372
|
this.size = 0;
|
5373
5373
|
},
|
@@ -5403,7 +5403,7 @@ enifed("ember-metal/map", ["exports", "ember-metal/utils", "ember-metal/array",
|
|
5403
5403
|
remove: function (obj, _guid) {
|
5404
5404
|
Ember.deprecate("Calling `OrderedSet.prototype.remove` has been deprecated, please use `OrderedSet.prototype.delete` instead.", this._silenceRemoveDeprecation);
|
5405
5405
|
|
5406
|
-
return this
|
5406
|
+
return this["delete"](obj, _guid);
|
5407
5407
|
},
|
5408
5408
|
|
5409
5409
|
/**
|
@@ -5414,7 +5414,7 @@ enifed("ember-metal/map", ["exports", "ember-metal/utils", "ember-metal/array",
|
|
5414
5414
|
@return {Boolean}
|
5415
5415
|
@private
|
5416
5416
|
*/
|
5417
|
-
delete: function (obj, _guid) {
|
5417
|
+
"delete": function (obj, _guid) {
|
5418
5418
|
var guid = _guid || (0, _emberMetalUtils.guidFor)(obj);
|
5419
5419
|
var presenceSet = this.presenceSet;
|
5420
5420
|
var list = this.list;
|
@@ -5541,7 +5541,7 @@ enifed("ember-metal/map", ["exports", "ember-metal/utils", "ember-metal/array",
|
|
5541
5541
|
if (this instanceof this.constructor) {
|
5542
5542
|
this._keys = OrderedSet.create();
|
5543
5543
|
this._keys._silenceRemoveDeprecation = true;
|
5544
|
-
this._values = (0, _emberMetalPlatformCreate
|
5544
|
+
this._values = (0, _emberMetalPlatformCreate["default"])(null);
|
5545
5545
|
this.size = 0;
|
5546
5546
|
} else {
|
5547
5547
|
missingNew("OrderedSet");
|
@@ -5628,7 +5628,7 @@ enifed("ember-metal/map", ["exports", "ember-metal/utils", "ember-metal/array",
|
|
5628
5628
|
remove: function (key) {
|
5629
5629
|
Ember.deprecate("Calling `Map.prototype.remove` has been deprecated, please use `Map.prototype.delete` instead.");
|
5630
5630
|
|
5631
|
-
return this
|
5631
|
+
return this["delete"](key);
|
5632
5632
|
},
|
5633
5633
|
|
5634
5634
|
/**
|
@@ -5639,7 +5639,7 @@ enifed("ember-metal/map", ["exports", "ember-metal/utils", "ember-metal/array",
|
|
5639
5639
|
@return {Boolean} true if an item was removed, false otherwise
|
5640
5640
|
@private
|
5641
5641
|
*/
|
5642
|
-
delete: function (key) {
|
5642
|
+
"delete": function (key) {
|
5643
5643
|
if (this.size === 0) {
|
5644
5644
|
return false;
|
5645
5645
|
}
|
@@ -5649,7 +5649,7 @@ enifed("ember-metal/map", ["exports", "ember-metal/utils", "ember-metal/array",
|
|
5649
5649
|
var values = this._values;
|
5650
5650
|
var guid = (0, _emberMetalUtils.guidFor)(key);
|
5651
5651
|
|
5652
|
-
if (keys
|
5652
|
+
if (keys["delete"](key, guid)) {
|
5653
5653
|
delete values[guid];
|
5654
5654
|
this.size = keys.size;
|
5655
5655
|
return true;
|
@@ -5713,7 +5713,7 @@ enifed("ember-metal/map", ["exports", "ember-metal/utils", "ember-metal/array",
|
|
5713
5713
|
*/
|
5714
5714
|
clear: function () {
|
5715
5715
|
this._keys.clear();
|
5716
|
-
this._values = (0, _emberMetalPlatformCreate
|
5716
|
+
this._values = (0, _emberMetalPlatformCreate["default"])(null);
|
5717
5717
|
this.size = 0;
|
5718
5718
|
},
|
5719
5719
|
|
@@ -5760,7 +5760,7 @@ enifed("ember-metal/map", ["exports", "ember-metal/utils", "ember-metal/array",
|
|
5760
5760
|
}
|
5761
5761
|
};
|
5762
5762
|
|
5763
|
-
MapWithDefault.prototype = (0, _emberMetalPlatformCreate
|
5763
|
+
MapWithDefault.prototype = (0, _emberMetalPlatformCreate["default"])(Map.prototype);
|
5764
5764
|
MapWithDefault.prototype.constructor = MapWithDefault;
|
5765
5765
|
MapWithDefault.prototype._super$constructor = Map;
|
5766
5766
|
MapWithDefault.prototype._super$get = Map.prototype.get;
|
@@ -5797,7 +5797,7 @@ enifed("ember-metal/map", ["exports", "ember-metal/utils", "ember-metal/array",
|
|
5797
5797
|
}));
|
5798
5798
|
};
|
5799
5799
|
|
5800
|
-
exports
|
5800
|
+
exports["default"] = Map;
|
5801
5801
|
exports.OrderedSet = OrderedSet;
|
5802
5802
|
exports.Map = Map;
|
5803
5803
|
exports.MapWithDefault = MapWithDefault;
|
@@ -5825,7 +5825,7 @@ enifed("ember-metal/map", ["exports", "ember-metal/utils", "ember-metal/array",
|
|
5825
5825
|
`Ember.Map.create()` for symmetry with other Ember classes.
|
5826
5826
|
*/
|
5827
5827
|
enifed('ember-metal/merge', ['exports', 'ember-metal/keys'], function (exports, _emberMetalKeys) {
|
5828
|
-
exports
|
5828
|
+
exports["default"] = merge;
|
5829
5829
|
exports.assign = assign;
|
5830
5830
|
|
5831
5831
|
/**
|
@@ -5851,7 +5851,7 @@ enifed('ember-metal/merge', ['exports', 'ember-metal/keys'], function (exports,
|
|
5851
5851
|
return original;
|
5852
5852
|
}
|
5853
5853
|
|
5854
|
-
var props = (0, _emberMetalKeys
|
5854
|
+
var props = (0, _emberMetalKeys["default"])(updates);
|
5855
5855
|
var prop;
|
5856
5856
|
var length = props.length;
|
5857
5857
|
|
@@ -5874,7 +5874,7 @@ enifed('ember-metal/merge', ['exports', 'ember-metal/keys'], function (exports,
|
|
5874
5874
|
continue;
|
5875
5875
|
}
|
5876
5876
|
|
5877
|
-
var updates = (0, _emberMetalKeys
|
5877
|
+
var updates = (0, _emberMetalKeys["default"])(arg);
|
5878
5878
|
|
5879
5879
|
for (var _i = 0, _l = updates.length; _i < _l; _i++) {
|
5880
5880
|
var prop = updates[_i];
|
@@ -5938,7 +5938,7 @@ enifed("ember-metal/mixin", ["exports", "ember-metal/core", "ember-metal/merge",
|
|
5938
5938
|
if (!ret) {
|
5939
5939
|
ret = m.mixins = {};
|
5940
5940
|
} else if (!m.hasOwnProperty("mixins")) {
|
5941
|
-
ret = m.mixins = (0, _emberMetalPlatformCreate
|
5941
|
+
ret = m.mixins = (0, _emberMetalPlatformCreate["default"])(ret);
|
5942
5942
|
}
|
5943
5943
|
return ret;
|
5944
5944
|
}
|
@@ -6001,7 +6001,7 @@ enifed("ember-metal/mixin", ["exports", "ember-metal/core", "ember-metal/merge",
|
|
6001
6001
|
// Since multiple mixins may inherit from the same parent, we need
|
6002
6002
|
// to clone the computed property so that other mixins do not receive
|
6003
6003
|
// the wrapped version.
|
6004
|
-
property = (0, _emberMetalPlatformCreate
|
6004
|
+
property = (0, _emberMetalPlatformCreate["default"])(property);
|
6005
6005
|
property._getter = (0, _emberMetalUtils.wrap)(property._getter, superProperty._getter);
|
6006
6006
|
if (superProperty._setter) {
|
6007
6007
|
if (property._setter) {
|
@@ -6074,13 +6074,13 @@ enifed("ember-metal/mixin", ["exports", "ember-metal/core", "ember-metal/merge",
|
|
6074
6074
|
function applyMergedProperties(obj, key, value, values) {
|
6075
6075
|
var baseValue = values[key] || obj[key];
|
6076
6076
|
|
6077
|
-
_emberMetalCore
|
6077
|
+
_emberMetalCore["default"].assert("You passed in `" + JSON.stringify(value) + "` as the value for `" + key + "` but `" + key + "` cannot be an Array", !(0, _emberMetalUtils.isArray)(value));
|
6078
6078
|
|
6079
6079
|
if (!baseValue) {
|
6080
6080
|
return value;
|
6081
6081
|
}
|
6082
6082
|
|
6083
|
-
var newBase = (0, _emberMetalMerge
|
6083
|
+
var newBase = (0, _emberMetalMerge["default"])({}, baseValue);
|
6084
6084
|
var hasFunction = false;
|
6085
6085
|
|
6086
6086
|
for (var prop in value) {
|
@@ -6143,7 +6143,7 @@ enifed("ember-metal/mixin", ["exports", "ember-metal/core", "ember-metal/merge",
|
|
6143
6143
|
|
6144
6144
|
for (var i = 0, l = mixins.length; i < l; i++) {
|
6145
6145
|
currentMixin = mixins[i];
|
6146
|
-
_emberMetalCore
|
6146
|
+
_emberMetalCore["default"].assert("Expected hash or Mixin instance, got " + Object.prototype.toString.call(currentMixin), typeof currentMixin === "object" && currentMixin !== null && Object.prototype.toString.call(currentMixin) !== "[object Array]");
|
6147
6147
|
|
6148
6148
|
props = mixinProperties(m, currentMixin);
|
6149
6149
|
if (props === CONTINUE) {
|
@@ -6187,7 +6187,7 @@ enifed("ember-metal/mixin", ["exports", "ember-metal/core", "ember-metal/merge",
|
|
6187
6187
|
if (!bindings) {
|
6188
6188
|
bindings = m.bindings = {};
|
6189
6189
|
} else if (!m.hasOwnProperty("bindings")) {
|
6190
|
-
bindings = m.bindings = (0, _emberMetalPlatformCreate
|
6190
|
+
bindings = m.bindings = (0, _emberMetalPlatformCreate["default"])(m.bindings);
|
6191
6191
|
}
|
6192
6192
|
bindings[key] = value;
|
6193
6193
|
}
|
@@ -6212,7 +6212,7 @@ enifed("ember-metal/mixin", ["exports", "ember-metal/core", "ember-metal/merge",
|
|
6212
6212
|
stream.subscribe(onNotify);
|
6213
6213
|
|
6214
6214
|
if (obj._streamBindingSubscriptions === undefined) {
|
6215
|
-
obj._streamBindingSubscriptions = (0, _emberMetalPlatformCreate
|
6215
|
+
obj._streamBindingSubscriptions = (0, _emberMetalPlatformCreate["default"])(null);
|
6216
6216
|
}
|
6217
6217
|
|
6218
6218
|
obj._streamBindingSubscriptions[key] = onNotify;
|
@@ -6422,7 +6422,7 @@ enifed("ember-metal/mixin", ["exports", "ember-metal/core", "ember-metal/merge",
|
|
6422
6422
|
@namespace Ember
|
6423
6423
|
@public
|
6424
6424
|
*/
|
6425
|
-
exports
|
6425
|
+
exports["default"] = Mixin;
|
6426
6426
|
|
6427
6427
|
function Mixin(args, properties) {
|
6428
6428
|
this.properties = properties;
|
@@ -6458,7 +6458,7 @@ enifed("ember-metal/mixin", ["exports", "ember-metal/core", "ember-metal/merge",
|
|
6458
6458
|
Mixin.finishPartial = finishPartial;
|
6459
6459
|
|
6460
6460
|
// ES6TODO: this relies on a global state?
|
6461
|
-
_emberMetalCore
|
6461
|
+
_emberMetalCore["default"].anyUnprocessedMixins = false;
|
6462
6462
|
|
6463
6463
|
/**
|
6464
6464
|
@method create
|
@@ -6472,7 +6472,7 @@ enifed("ember-metal/mixin", ["exports", "ember-metal/core", "ember-metal/merge",
|
|
6472
6472
|
}
|
6473
6473
|
|
6474
6474
|
// ES6TODO: this relies on a global state?
|
6475
|
-
_emberMetalCore
|
6475
|
+
_emberMetalCore["default"].anyUnprocessedMixins = true;
|
6476
6476
|
var M = this;
|
6477
6477
|
return new M(args, undefined);
|
6478
6478
|
};
|
@@ -6501,7 +6501,7 @@ enifed("ember-metal/mixin", ["exports", "ember-metal/core", "ember-metal/merge",
|
|
6501
6501
|
|
6502
6502
|
for (idx = 0; idx < len; idx++) {
|
6503
6503
|
currentMixin = arguments[idx];
|
6504
|
-
_emberMetalCore
|
6504
|
+
_emberMetalCore["default"].assert("Expected hash or Mixin instance, got " + Object.prototype.toString.call(currentMixin), typeof currentMixin === "object" && currentMixin !== null && Object.prototype.toString.call(currentMixin) !== "[object Array]");
|
6505
6505
|
|
6506
6506
|
if (currentMixin instanceof Mixin) {
|
6507
6507
|
mixins.push(currentMixin);
|
@@ -6649,7 +6649,7 @@ enifed("ember-metal/mixin", ["exports", "ember-metal/core", "ember-metal/merge",
|
|
6649
6649
|
*/
|
6650
6650
|
|
6651
6651
|
function required() {
|
6652
|
-
_emberMetalCore
|
6652
|
+
_emberMetalCore["default"].deprecate("Ember.required is deprecated as its behavior is inconsistent and unreliable.", false);
|
6653
6653
|
return REQUIRED;
|
6654
6654
|
}
|
6655
6655
|
|
@@ -6736,11 +6736,11 @@ enifed("ember-metal/mixin", ["exports", "ember-metal/core", "ember-metal/merge",
|
|
6736
6736
|
paths = [];
|
6737
6737
|
|
6738
6738
|
for (var i = 0; i < _paths.length; ++i) {
|
6739
|
-
(0, _emberMetalExpand_properties
|
6739
|
+
(0, _emberMetalExpand_properties["default"])(_paths[i], addWatchedProperty);
|
6740
6740
|
}
|
6741
6741
|
|
6742
6742
|
if (typeof func !== "function") {
|
6743
|
-
throw new _emberMetalCore
|
6743
|
+
throw new _emberMetalCore["default"].Error("Ember.observer called without a function");
|
6744
6744
|
}
|
6745
6745
|
|
6746
6746
|
func.__ember_observes__ = paths;
|
@@ -6774,11 +6774,11 @@ enifed("ember-metal/mixin", ["exports", "ember-metal/core", "ember-metal/merge",
|
|
6774
6774
|
*/
|
6775
6775
|
|
6776
6776
|
function immediateObserver() {
|
6777
|
-
_emberMetalCore
|
6777
|
+
_emberMetalCore["default"].deprecate("Usage of `Ember.immediateObserver` is deprecated, use `Ember.observer` instead.");
|
6778
6778
|
|
6779
6779
|
for (var i = 0, l = arguments.length; i < l; i++) {
|
6780
6780
|
var arg = arguments[i];
|
6781
|
-
_emberMetalCore
|
6781
|
+
_emberMetalCore["default"].assert("Immediate observers must observe internal properties only, not properties on other objects.", typeof arg !== "string" || arg.indexOf(".") === -1);
|
6782
6782
|
}
|
6783
6783
|
|
6784
6784
|
return observer.apply(this, arguments);
|
@@ -6852,11 +6852,11 @@ enifed("ember-metal/mixin", ["exports", "ember-metal/core", "ember-metal/merge",
|
|
6852
6852
|
paths = [];
|
6853
6853
|
|
6854
6854
|
for (var i = 0; i < _paths.length; ++i) {
|
6855
|
-
(0, _emberMetalExpand_properties
|
6855
|
+
(0, _emberMetalExpand_properties["default"])(_paths[i], addWatchedProperty);
|
6856
6856
|
}
|
6857
6857
|
|
6858
6858
|
if (typeof func !== "function") {
|
6859
|
-
throw new _emberMetalCore
|
6859
|
+
throw new _emberMetalCore["default"].Error("Ember.beforeObserver called without a function");
|
6860
6860
|
}
|
6861
6861
|
|
6862
6862
|
func.__ember_observesBefore__ = paths;
|
@@ -7020,7 +7020,7 @@ enifed("ember-metal/observer_set", ["exports", "ember-metal/utils", "ember-metal
|
|
7020
7020
|
...
|
7021
7021
|
]
|
7022
7022
|
*/
|
7023
|
-
exports
|
7023
|
+
exports["default"] = ObserverSet;
|
7024
7024
|
|
7025
7025
|
function ObserverSet() {
|
7026
7026
|
this.clear();
|
@@ -7080,23 +7080,23 @@ enifed('ember-metal/path_cache', ['exports', 'ember-metal/cache'], function (exp
|
|
7080
7080
|
var IS_GLOBAL_PATH = /^[A-Z$].*[\.]/;
|
7081
7081
|
var HAS_THIS = 'this.';
|
7082
7082
|
|
7083
|
-
var isGlobalCache = new _emberMetalCache
|
7083
|
+
var isGlobalCache = new _emberMetalCache["default"](1000, function (key) {
|
7084
7084
|
return IS_GLOBAL.test(key);
|
7085
7085
|
});
|
7086
7086
|
|
7087
|
-
var isGlobalPathCache = new _emberMetalCache
|
7087
|
+
var isGlobalPathCache = new _emberMetalCache["default"](1000, function (key) {
|
7088
7088
|
return IS_GLOBAL_PATH.test(key);
|
7089
7089
|
});
|
7090
7090
|
|
7091
|
-
var hasThisCache = new _emberMetalCache
|
7091
|
+
var hasThisCache = new _emberMetalCache["default"](1000, function (key) {
|
7092
7092
|
return key.lastIndexOf(HAS_THIS, 0) === 0;
|
7093
7093
|
});
|
7094
7094
|
|
7095
|
-
var firstDotIndexCache = new _emberMetalCache
|
7095
|
+
var firstDotIndexCache = new _emberMetalCache["default"](1000, function (key) {
|
7096
7096
|
return key.indexOf('.');
|
7097
7097
|
});
|
7098
7098
|
|
7099
|
-
var firstKeyCache = new _emberMetalCache
|
7099
|
+
var firstKeyCache = new _emberMetalCache["default"](1000, function (path) {
|
7100
7100
|
var index = firstDotIndexCache.get(path);
|
7101
7101
|
if (index === -1) {
|
7102
7102
|
return path;
|
@@ -7105,7 +7105,7 @@ enifed('ember-metal/path_cache', ['exports', 'ember-metal/cache'], function (exp
|
|
7105
7105
|
}
|
7106
7106
|
});
|
7107
7107
|
|
7108
|
-
var tailPathCache = new _emberMetalCache
|
7108
|
+
var tailPathCache = new _emberMetalCache["default"](1000, function (path) {
|
7109
7109
|
var index = firstDotIndexCache.get(path);
|
7110
7110
|
if (index !== -1) {
|
7111
7111
|
return path.slice(index + 1);
|
@@ -7239,7 +7239,7 @@ enifed('ember-metal/platform/create', ['exports', 'ember-metal/platform/define_p
|
|
7239
7239
|
}
|
7240
7240
|
|
7241
7241
|
if (properties !== undefined) {
|
7242
|
-
(0, _emberMetalPlatformDefine_properties
|
7242
|
+
(0, _emberMetalPlatformDefine_properties["default"])(object, properties);
|
7243
7243
|
}
|
7244
7244
|
|
7245
7245
|
return object;
|
@@ -7248,7 +7248,7 @@ enifed('ember-metal/platform/create', ['exports', 'ember-metal/platform/define_p
|
|
7248
7248
|
create = Object.create;
|
7249
7249
|
}
|
7250
7250
|
|
7251
|
-
exports
|
7251
|
+
exports["default"] = create;
|
7252
7252
|
});
|
7253
7253
|
enifed("ember-metal/platform/define_properties", ["exports", "ember-metal/platform/define_property"], function (exports, _emberMetalPlatformDefine_property) {
|
7254
7254
|
|
@@ -7269,7 +7269,7 @@ enifed("ember-metal/platform/define_properties", ["exports", "ember-metal/platfo
|
|
7269
7269
|
Object.defineProperties = defineProperties;
|
7270
7270
|
}
|
7271
7271
|
|
7272
|
-
exports
|
7272
|
+
exports["default"] = defineProperties;
|
7273
7273
|
});
|
7274
7274
|
enifed('ember-metal/platform/define_property', ['exports'], function (exports) {
|
7275
7275
|
/*globals Node */
|
@@ -7441,7 +7441,7 @@ enifed("ember-metal/properties", ["exports", "ember-metal/core", "ember-metal/ut
|
|
7441
7441
|
|
7442
7442
|
function MANDATORY_SETTER_FUNCTION(name) {
|
7443
7443
|
return function SETTER_FUNCTION(value) {
|
7444
|
-
_emberMetalCore
|
7444
|
+
_emberMetalCore["default"].assert("You must use Ember.set() to set the `" + name + "` property (of " + this + ") to `" + value + "`.", false);
|
7445
7445
|
};
|
7446
7446
|
}
|
7447
7447
|
|
@@ -7517,7 +7517,7 @@ enifed("ember-metal/properties", ["exports", "ember-metal/core", "ember-metal/ut
|
|
7517
7517
|
if (desc instanceof Descriptor) {
|
7518
7518
|
value = desc;
|
7519
7519
|
|
7520
|
-
if (_emberMetalCore
|
7520
|
+
if (_emberMetalCore["default"].FEATURES.isEnabled("mandatory-setter")) {
|
7521
7521
|
if (watching && _emberMetalPlatformDefine_property.hasPropertyAccessors) {
|
7522
7522
|
(0, _emberMetalPlatformDefine_property.defineProperty)(obj, keyName, {
|
7523
7523
|
configurable: true,
|
@@ -7538,7 +7538,7 @@ enifed("ember-metal/properties", ["exports", "ember-metal/core", "ember-metal/ut
|
|
7538
7538
|
if (desc == null) {
|
7539
7539
|
value = data;
|
7540
7540
|
|
7541
|
-
if (_emberMetalCore
|
7541
|
+
if (_emberMetalCore["default"].FEATURES.isEnabled("mandatory-setter")) {
|
7542
7542
|
if (watching && _emberMetalPlatformDefine_property.hasPropertyAccessors) {
|
7543
7543
|
meta.values[keyName] = data;
|
7544
7544
|
(0, _emberMetalPlatformDefine_property.defineProperty)(obj, keyName, {
|
@@ -7583,8 +7583,8 @@ enifed("ember-metal/property_events", ["exports", "ember-metal/utils", "ember-me
|
|
7583
7583
|
var PROPERTY_DID_CHANGE = (0, _emberMetalUtils.symbol)("PROPERTY_DID_CHANGE");
|
7584
7584
|
|
7585
7585
|
exports.PROPERTY_DID_CHANGE = PROPERTY_DID_CHANGE;
|
7586
|
-
var beforeObserverSet = new _emberMetalObserver_set
|
7587
|
-
var observerSet = new _emberMetalObserver_set
|
7586
|
+
var beforeObserverSet = new _emberMetalObserver_set["default"]();
|
7587
|
+
var observerSet = new _emberMetalObserver_set["default"]();
|
7588
7588
|
var deferred = 0;
|
7589
7589
|
|
7590
7590
|
// ..........................................................
|
@@ -7945,13 +7945,13 @@ enifed("ember-metal/property_get", ["exports", "ember-metal/core", "ember-metal/
|
|
7945
7945
|
|
7946
7946
|
if (!keyName && "string" === typeof obj) {
|
7947
7947
|
keyName = obj;
|
7948
|
-
obj = _emberMetalCore
|
7948
|
+
obj = _emberMetalCore["default"].lookup;
|
7949
7949
|
}
|
7950
7950
|
|
7951
|
-
_emberMetalCore
|
7952
|
-
_emberMetalCore
|
7951
|
+
_emberMetalCore["default"].assert("Cannot call get with " + keyName + " key.", !!keyName);
|
7952
|
+
_emberMetalCore["default"].assert("Cannot call get with '" + keyName + "' on an undefined object.", obj !== undefined);
|
7953
7953
|
|
7954
|
-
if ((0, _emberMetalIs_none
|
7954
|
+
if ((0, _emberMetalIs_none["default"])(obj)) {
|
7955
7955
|
return _getPath(obj, keyName);
|
7956
7956
|
}
|
7957
7957
|
|
@@ -7974,7 +7974,7 @@ enifed("ember-metal/property_get", ["exports", "ember-metal/core", "ember-metal/
|
|
7974
7974
|
if (desc) {
|
7975
7975
|
return desc.get(obj, keyName);
|
7976
7976
|
} else {
|
7977
|
-
if (_emberMetalCore
|
7977
|
+
if (_emberMetalCore["default"].FEATURES.isEnabled("mandatory-setter")) {
|
7978
7978
|
if (_emberMetalPlatformDefine_property.hasPropertyAccessors && meta && meta.watching[keyName] > 0) {
|
7979
7979
|
ret = meta.values[keyName];
|
7980
7980
|
} else {
|
@@ -8020,7 +8020,7 @@ enifed("ember-metal/property_get", ["exports", "ember-metal/core", "ember-metal/
|
|
8020
8020
|
}
|
8021
8021
|
|
8022
8022
|
if (!target || isGlobal) {
|
8023
|
-
target = _emberMetalCore
|
8023
|
+
target = _emberMetalCore["default"].lookup;
|
8024
8024
|
}
|
8025
8025
|
|
8026
8026
|
if (isGlobal && (0, _emberMetalPath_cache.isPath)(path)) {
|
@@ -8037,7 +8037,7 @@ enifed("ember-metal/property_get", ["exports", "ember-metal/core", "ember-metal/
|
|
8037
8037
|
|
8038
8038
|
function validateIsPath(path) {
|
8039
8039
|
if (!path || path.length === 0) {
|
8040
|
-
throw new _emberMetalError
|
8040
|
+
throw new _emberMetalError["default"]("Object in path " + path + " could not be found or was destroyed.");
|
8041
8041
|
}
|
8042
8042
|
}
|
8043
8043
|
|
@@ -8074,7 +8074,7 @@ enifed("ember-metal/property_get", ["exports", "ember-metal/core", "ember-metal/
|
|
8074
8074
|
return value;
|
8075
8075
|
}
|
8076
8076
|
|
8077
|
-
exports
|
8077
|
+
exports["default"] = get;
|
8078
8078
|
});
|
8079
8079
|
/**
|
8080
8080
|
@module ember-metal
|
@@ -8104,15 +8104,15 @@ enifed("ember-metal/property_set", ["exports", "ember-metal/core", "ember-metal/
|
|
8104
8104
|
|
8105
8105
|
function set(obj, keyName, value, tolerant) {
|
8106
8106
|
if (typeof obj === "string") {
|
8107
|
-
_emberMetalCore
|
8107
|
+
_emberMetalCore["default"].assert("Path '" + obj + "' must be global if no obj is given.", (0, _emberMetalPath_cache.isGlobalPath)(obj));
|
8108
8108
|
value = keyName;
|
8109
8109
|
keyName = obj;
|
8110
|
-
obj = _emberMetalCore
|
8110
|
+
obj = _emberMetalCore["default"].lookup;
|
8111
8111
|
}
|
8112
8112
|
|
8113
|
-
_emberMetalCore
|
8113
|
+
_emberMetalCore["default"].assert("Cannot call set with '" + keyName + "' key.", !!keyName);
|
8114
8114
|
|
8115
|
-
if (obj === _emberMetalCore
|
8115
|
+
if (obj === _emberMetalCore["default"].lookup) {
|
8116
8116
|
return setPath(obj, keyName, value, tolerant);
|
8117
8117
|
}
|
8118
8118
|
|
@@ -8138,8 +8138,8 @@ enifed("ember-metal/property_set", ["exports", "ember-metal/core", "ember-metal/
|
|
8138
8138
|
return setPath(obj, keyName, value, tolerant);
|
8139
8139
|
}
|
8140
8140
|
|
8141
|
-
_emberMetalCore
|
8142
|
-
_emberMetalCore
|
8141
|
+
_emberMetalCore["default"].assert("You need to provide an object and key to `set`.", !!obj && keyName !== undefined);
|
8142
|
+
_emberMetalCore["default"].assert("calling set on destroyed object", !obj.isDestroyed);
|
8143
8143
|
|
8144
8144
|
if (desc) {
|
8145
8145
|
desc.set(obj, keyName, value);
|
@@ -8158,7 +8158,7 @@ enifed("ember-metal/property_set", ["exports", "ember-metal/core", "ember-metal/
|
|
8158
8158
|
obj.setUnknownProperty(keyName, value);
|
8159
8159
|
} else if (meta && meta.watching[keyName] > 0) {
|
8160
8160
|
if (meta.proto !== obj) {
|
8161
|
-
if (_emberMetalCore
|
8161
|
+
if (_emberMetalCore["default"].FEATURES.isEnabled("mandatory-setter")) {
|
8162
8162
|
if (_emberMetalPlatformDefine_property.hasPropertyAccessors) {
|
8163
8163
|
currentValue = meta.values[keyName];
|
8164
8164
|
} else {
|
@@ -8171,7 +8171,7 @@ enifed("ember-metal/property_set", ["exports", "ember-metal/core", "ember-metal/
|
|
8171
8171
|
// only trigger a change if the value has changed
|
8172
8172
|
if (value !== currentValue) {
|
8173
8173
|
(0, _emberMetalProperty_events.propertyWillChange)(obj, keyName);
|
8174
|
-
if (_emberMetalCore
|
8174
|
+
if (_emberMetalCore["default"].FEATURES.isEnabled("mandatory-setter")) {
|
8175
8175
|
if (_emberMetalPlatformDefine_property.hasPropertyAccessors) {
|
8176
8176
|
if (currentValue === undefined && !(keyName in obj) || !Object.prototype.propertyIsEnumerable.call(obj, keyName)) {
|
8177
8177
|
(0, _emberMetalProperties.defineProperty)(obj, keyName, null, value); // setup mandatory setter
|
@@ -8212,14 +8212,14 @@ enifed("ember-metal/property_set", ["exports", "ember-metal/core", "ember-metal/
|
|
8212
8212
|
}
|
8213
8213
|
|
8214
8214
|
if (!keyName || keyName.length === 0) {
|
8215
|
-
throw new _emberMetalError
|
8215
|
+
throw new _emberMetalError["default"]("Property set failed: You passed an empty path");
|
8216
8216
|
}
|
8217
8217
|
|
8218
8218
|
if (!root) {
|
8219
8219
|
if (tolerant) {
|
8220
8220
|
return;
|
8221
8221
|
} else {
|
8222
|
-
throw new _emberMetalError
|
8222
|
+
throw new _emberMetalError["default"]("Property set failed: object in path \"" + path + "\" could not be found or was destroyed.");
|
8223
8223
|
}
|
8224
8224
|
}
|
8225
8225
|
|
@@ -8256,7 +8256,7 @@ enifed('ember-metal/run_loop', ['exports', 'ember-metal/core', 'ember-metal/util
|
|
8256
8256
|
}
|
8257
8257
|
|
8258
8258
|
// ES6TODO: should Backburner become es6?
|
8259
|
-
var backburner = new _backburner
|
8259
|
+
var backburner = new _backburner["default"](['sync', 'actions', 'destroy'], {
|
8260
8260
|
GUID_KEY: _emberMetalUtils.GUID_KEY,
|
8261
8261
|
sync: {
|
8262
8262
|
before: _emberMetalProperty_events.beginPropertyChanges,
|
@@ -8265,7 +8265,7 @@ enifed('ember-metal/run_loop', ['exports', 'ember-metal/core', 'ember-metal/util
|
|
8265
8265
|
defaultQueue: 'actions',
|
8266
8266
|
onBegin: onBegin,
|
8267
8267
|
onEnd: onEnd,
|
8268
|
-
onErrorTarget: _emberMetalCore
|
8268
|
+
onErrorTarget: _emberMetalCore["default"],
|
8269
8269
|
onErrorMethod: 'onerror'
|
8270
8270
|
});
|
8271
8271
|
|
@@ -8301,7 +8301,7 @@ enifed('ember-metal/run_loop', ['exports', 'ember-metal/core', 'ember-metal/util
|
|
8301
8301
|
@return {Object} return value from invoking the passed function.
|
8302
8302
|
@public
|
8303
8303
|
*/
|
8304
|
-
exports
|
8304
|
+
exports["default"] = run;
|
8305
8305
|
|
8306
8306
|
function run() {
|
8307
8307
|
return backburner.run.apply(backburner, arguments);
|
@@ -8893,7 +8893,7 @@ enifed('ember-metal/run_loop', ['exports', 'ember-metal/core', 'ember-metal/util
|
|
8893
8893
|
// Make sure it's not an autorun during testing
|
8894
8894
|
function checkAutoRun() {
|
8895
8895
|
if (!run.currentRunLoop) {
|
8896
|
-
_emberMetalCore
|
8896
|
+
_emberMetalCore["default"].assert('You have turned on testing mode, which disabled the run-loop\'s autorun.\n You will need to wrap any code with asynchronous side-effects in a run', !_emberMetalCore["default"].testing);
|
8897
8897
|
}
|
8898
8898
|
}
|
8899
8899
|
|
@@ -8915,7 +8915,7 @@ enifed('ember-metal/run_loop', ['exports', 'ember-metal/core', 'ember-metal/util
|
|
8915
8915
|
});
|
8916
8916
|
/* queue, target, method */ /*target, method*/ /*queue, target, method*/
|
8917
8917
|
enifed("ember-metal/set_properties", ["exports", "ember-metal/property_events", "ember-metal/property_set", "ember-metal/keys"], function (exports, _emberMetalProperty_events, _emberMetalProperty_set, _emberMetalKeys) {
|
8918
|
-
exports
|
8918
|
+
exports["default"] = setProperties;
|
8919
8919
|
|
8920
8920
|
/**
|
8921
8921
|
Set a list of properties on an object. These properties are set inside
|
@@ -8944,7 +8944,7 @@ enifed("ember-metal/set_properties", ["exports", "ember-metal/property_events",
|
|
8944
8944
|
return obj;
|
8945
8945
|
}
|
8946
8946
|
(0, _emberMetalProperty_events.changeProperties)(function () {
|
8947
|
-
var props = (0, _emberMetalKeys
|
8947
|
+
var props = (0, _emberMetalKeys["default"])(properties);
|
8948
8948
|
var propertyName;
|
8949
8949
|
|
8950
8950
|
for (var i = 0, l = props.length; i < l; i++) {
|
@@ -8957,7 +8957,7 @@ enifed("ember-metal/set_properties", ["exports", "ember-metal/property_events",
|
|
8957
8957
|
}
|
8958
8958
|
});
|
8959
8959
|
enifed("ember-metal/streams/conditional", ["exports", "ember-metal/streams/stream", "ember-metal/streams/utils", "ember-metal/platform/create"], function (exports, _emberMetalStreamsStream, _emberMetalStreamsUtils, _emberMetalPlatformCreate) {
|
8960
|
-
exports
|
8960
|
+
exports["default"] = conditional;
|
8961
8961
|
|
8962
8962
|
function conditional(test, consequent, alternate) {
|
8963
8963
|
if ((0, _emberMetalStreamsUtils.isStream)(test)) {
|
@@ -8980,7 +8980,7 @@ enifed("ember-metal/streams/conditional", ["exports", "ember-metal/streams/strea
|
|
8980
8980
|
this.alternate = alternate;
|
8981
8981
|
}
|
8982
8982
|
|
8983
|
-
ConditionalStream.prototype = (0, _emberMetalPlatformCreate
|
8983
|
+
ConditionalStream.prototype = (0, _emberMetalPlatformCreate["default"])(_emberMetalStreamsStream["default"].prototype);
|
8984
8984
|
|
8985
8985
|
ConditionalStream.prototype.compute = function () {
|
8986
8986
|
var oldTestResult = this.oldTestResult;
|
@@ -9022,7 +9022,7 @@ enifed("ember-metal/streams/dependency", ["exports", "ember-metal/core", "ember-
|
|
9022
9022
|
@constructor
|
9023
9023
|
*/
|
9024
9024
|
function Dependency(depender, dependee) {
|
9025
|
-
_emberMetalCore
|
9025
|
+
_emberMetalCore["default"].assert("Dependency error: Depender must be a stream", (0, _emberMetalStreamsUtils.isStream)(depender));
|
9026
9026
|
|
9027
9027
|
this.next = null;
|
9028
9028
|
this.prev = null;
|
@@ -9031,9 +9031,9 @@ enifed("ember-metal/streams/dependency", ["exports", "ember-metal/core", "ember-
|
|
9031
9031
|
this.unsubscription = null;
|
9032
9032
|
}
|
9033
9033
|
|
9034
|
-
(0, _emberMetalMerge
|
9034
|
+
(0, _emberMetalMerge["default"])(Dependency.prototype, {
|
9035
9035
|
subscribe: function () {
|
9036
|
-
_emberMetalCore
|
9036
|
+
_emberMetalCore["default"].assert("Dependency error: Dependency tried to subscribe while already subscribed", !this.unsubscription);
|
9037
9037
|
|
9038
9038
|
this.unsubscription = (0, _emberMetalStreamsUtils.subscribe)(this.dependee, this.depender.notify, this.depender);
|
9039
9039
|
},
|
@@ -9084,14 +9084,14 @@ enifed("ember-metal/streams/dependency", ["exports", "ember-metal/core", "ember-
|
|
9084
9084
|
// }
|
9085
9085
|
});
|
9086
9086
|
|
9087
|
-
exports
|
9087
|
+
exports["default"] = Dependency;
|
9088
9088
|
});
|
9089
9089
|
enifed('ember-metal/streams/key-stream', ['exports', 'ember-metal/core', 'ember-metal/merge', 'ember-metal/platform/create', 'ember-metal/property_get', 'ember-metal/property_set', 'ember-metal/observer', 'ember-metal/streams/stream', 'ember-metal/streams/utils'], function (exports, _emberMetalCore, _emberMetalMerge, _emberMetalPlatformCreate, _emberMetalProperty_get, _emberMetalProperty_set, _emberMetalObserver, _emberMetalStreamsStream, _emberMetalStreamsUtils) {
|
9090
9090
|
|
9091
9091
|
function KeyStream(source, key) {
|
9092
|
-
_emberMetalCore
|
9093
|
-
_emberMetalCore
|
9094
|
-
_emberMetalCore
|
9092
|
+
_emberMetalCore["default"].assert('KeyStream error: source must be a stream', (0, _emberMetalStreamsUtils.isStream)(source)); // TODO: This isn't necessary.
|
9093
|
+
_emberMetalCore["default"].assert('KeyStream error: key must be a non-empty string', typeof key === 'string' && key.length > 0);
|
9094
|
+
_emberMetalCore["default"].assert('KeyStream error: key must not have a \'.\'', key.indexOf('.') === -1);
|
9095
9095
|
|
9096
9096
|
// used to get the original path for debugging and legacy purposes
|
9097
9097
|
var label = labelFor(source, key);
|
@@ -9107,9 +9107,9 @@ enifed('ember-metal/streams/key-stream', ['exports', 'ember-metal/core', 'ember-
|
|
9107
9107
|
return source.label ? source.label + '.' + key : key;
|
9108
9108
|
}
|
9109
9109
|
|
9110
|
-
KeyStream.prototype = (0, _emberMetalPlatformCreate
|
9110
|
+
KeyStream.prototype = (0, _emberMetalPlatformCreate["default"])(_emberMetalStreamsStream["default"].prototype);
|
9111
9111
|
|
9112
|
-
(0, _emberMetalMerge
|
9112
|
+
(0, _emberMetalMerge["default"])(KeyStream.prototype, {
|
9113
9113
|
compute: function () {
|
9114
9114
|
var object = this.sourceDep.getValue();
|
9115
9115
|
if (object) {
|
@@ -9129,7 +9129,7 @@ enifed('ember-metal/streams/key-stream', ['exports', 'ember-metal/core', 'ember-
|
|
9129
9129
|
this.notify();
|
9130
9130
|
},
|
9131
9131
|
|
9132
|
-
_super$revalidate: _emberMetalStreamsStream
|
9132
|
+
_super$revalidate: _emberMetalStreamsStream["default"].prototype.revalidate,
|
9133
9133
|
|
9134
9134
|
revalidate: function (value) {
|
9135
9135
|
this._super$revalidate(value);
|
@@ -9145,7 +9145,7 @@ enifed('ember-metal/streams/key-stream', ['exports', 'ember-metal/core', 'ember-
|
|
9145
9145
|
}
|
9146
9146
|
},
|
9147
9147
|
|
9148
|
-
_super$deactivate: _emberMetalStreamsStream
|
9148
|
+
_super$deactivate: _emberMetalStreamsStream["default"].prototype.deactivate,
|
9149
9149
|
|
9150
9150
|
_clearObservedObject: function () {
|
9151
9151
|
if (this.observedObject) {
|
@@ -9160,7 +9160,7 @@ enifed('ember-metal/streams/key-stream', ['exports', 'ember-metal/core', 'ember-
|
|
9160
9160
|
}
|
9161
9161
|
});
|
9162
9162
|
|
9163
|
-
exports
|
9163
|
+
exports["default"] = KeyStream;
|
9164
9164
|
});
|
9165
9165
|
enifed("ember-metal/streams/proxy-stream", ["exports", "ember-metal/merge", "ember-metal/streams/stream", "ember-metal/platform/create"], function (exports, _emberMetalMerge, _emberMetalStreamsStream, _emberMetalPlatformCreate) {
|
9166
9166
|
|
@@ -9169,9 +9169,9 @@ enifed("ember-metal/streams/proxy-stream", ["exports", "ember-metal/merge", "emb
|
|
9169
9169
|
this.sourceDep = this.addMutableDependency(source);
|
9170
9170
|
}
|
9171
9171
|
|
9172
|
-
ProxyStream.prototype = (0, _emberMetalPlatformCreate
|
9172
|
+
ProxyStream.prototype = (0, _emberMetalPlatformCreate["default"])(_emberMetalStreamsStream["default"].prototype);
|
9173
9173
|
|
9174
|
-
(0, _emberMetalMerge
|
9174
|
+
(0, _emberMetalMerge["default"])(ProxyStream.prototype, {
|
9175
9175
|
compute: function () {
|
9176
9176
|
return this.sourceDep.getValue();
|
9177
9177
|
},
|
@@ -9186,7 +9186,7 @@ enifed("ember-metal/streams/proxy-stream", ["exports", "ember-metal/merge", "emb
|
|
9186
9186
|
}
|
9187
9187
|
});
|
9188
9188
|
|
9189
|
-
exports
|
9189
|
+
exports["default"] = ProxyStream;
|
9190
9190
|
});
|
9191
9191
|
enifed("ember-metal/streams/stream", ["exports", "ember-metal/core", "ember-metal/platform/create", "ember-metal/path_cache", "ember-metal/observer", "ember-metal/streams/utils", "ember-metal/streams/subscriber", "ember-metal/streams/dependency"], function (exports, _emberMetalCore, _emberMetalPlatformCreate, _emberMetalPath_cache, _emberMetalObserver, _emberMetalStreamsUtils, _emberMetalStreamsSubscriber, _emberMetalStreamsDependency) {
|
9192
9192
|
|
@@ -9226,7 +9226,7 @@ enifed("ember-metal/streams/stream", ["exports", "ember-metal/core", "ember-meta
|
|
9226
9226
|
},
|
9227
9227
|
|
9228
9228
|
_makeChildStream: function (key) {
|
9229
|
-
KeyStream = KeyStream || _emberMetalCore
|
9229
|
+
KeyStream = KeyStream || _emberMetalCore["default"].__loader.require("ember-metal/streams/key-stream")["default"];
|
9230
9230
|
return new KeyStream(this, key);
|
9231
9231
|
},
|
9232
9232
|
|
@@ -9236,7 +9236,7 @@ enifed("ember-metal/streams/stream", ["exports", "ember-metal/core", "ember-meta
|
|
9236
9236
|
|
9237
9237
|
getKey: function (key) {
|
9238
9238
|
if (this.children === undefined) {
|
9239
|
-
this.children = (0, _emberMetalPlatformCreate
|
9239
|
+
this.children = (0, _emberMetalPlatformCreate["default"])(null);
|
9240
9240
|
}
|
9241
9241
|
|
9242
9242
|
var keyStream = this.children[key];
|
@@ -9254,7 +9254,7 @@ enifed("ember-metal/streams/stream", ["exports", "ember-metal/core", "ember-meta
|
|
9254
9254
|
var tailPath = (0, _emberMetalPath_cache.getTailPath)(path);
|
9255
9255
|
|
9256
9256
|
if (this.children === undefined) {
|
9257
|
-
this.children = (0, _emberMetalPlatformCreate
|
9257
|
+
this.children = (0, _emberMetalPlatformCreate["default"])(null);
|
9258
9258
|
}
|
9259
9259
|
|
9260
9260
|
var keyStream = this.children[firstKey];
|
@@ -9307,7 +9307,7 @@ enifed("ember-metal/streams/stream", ["exports", "ember-metal/core", "ember-meta
|
|
9307
9307
|
},
|
9308
9308
|
|
9309
9309
|
addMutableDependency: function (object) {
|
9310
|
-
var dependency = new _emberMetalStreamsDependency
|
9310
|
+
var dependency = new _emberMetalStreamsDependency["default"](this, object);
|
9311
9311
|
|
9312
9312
|
if (this.isActive) {
|
9313
9313
|
dependency.subscribe();
|
@@ -9366,7 +9366,7 @@ enifed("ember-metal/streams/stream", ["exports", "ember-metal/core", "ember-meta
|
|
9366
9366
|
if (value !== this.observedProxy) {
|
9367
9367
|
this._clearObservedProxy();
|
9368
9368
|
|
9369
|
-
ProxyMixin = ProxyMixin || _emberMetalCore
|
9369
|
+
ProxyMixin = ProxyMixin || _emberMetalCore["default"].__loader.require("ember-runtime/mixins/-proxy")["default"];
|
9370
9370
|
|
9371
9371
|
if (ProxyMixin.detect(value)) {
|
9372
9372
|
(0, _emberMetalObserver.addObserver)(value, "content", this, this.notify);
|
@@ -9406,9 +9406,9 @@ enifed("ember-metal/streams/stream", ["exports", "ember-metal/core", "ember-meta
|
|
9406
9406
|
},
|
9407
9407
|
|
9408
9408
|
subscribe: function (callback, context) {
|
9409
|
-
_emberMetalCore
|
9409
|
+
_emberMetalCore["default"].assert("You tried to subscribe to a stream but the callback provided was not a function.", typeof callback === "function");
|
9410
9410
|
|
9411
|
-
var subscriber = new _emberMetalStreamsSubscriber
|
9411
|
+
var subscriber = new _emberMetalStreamsSubscriber["default"](callback, context, this);
|
9412
9412
|
if (this.subscriberHead === null) {
|
9413
9413
|
this.subscriberHead = this.subscriberTail = subscriber;
|
9414
9414
|
} else {
|
@@ -9505,7 +9505,7 @@ enifed("ember-metal/streams/stream", ["exports", "ember-metal/core", "ember-meta
|
|
9505
9505
|
}
|
9506
9506
|
}
|
9507
9507
|
|
9508
|
-
exports
|
9508
|
+
exports["default"] = Stream;
|
9509
9509
|
});
|
9510
9510
|
enifed("ember-metal/streams/subscriber", ["exports", "ember-metal/merge"], function (exports, _emberMetalMerge) {
|
9511
9511
|
|
@@ -9526,7 +9526,7 @@ enifed("ember-metal/streams/subscriber", ["exports", "ember-metal/merge"], funct
|
|
9526
9526
|
this.context = context;
|
9527
9527
|
}
|
9528
9528
|
|
9529
|
-
(0, _emberMetalMerge
|
9529
|
+
(0, _emberMetalMerge["default"])(Subscriber.prototype, {
|
9530
9530
|
removeFrom: function (stream) {
|
9531
9531
|
var next = this.next;
|
9532
9532
|
var prev = this.prev;
|
@@ -9547,7 +9547,7 @@ enifed("ember-metal/streams/subscriber", ["exports", "ember-metal/merge"], funct
|
|
9547
9547
|
}
|
9548
9548
|
});
|
9549
9549
|
|
9550
|
-
exports
|
9550
|
+
exports["default"] = Subscriber;
|
9551
9551
|
});
|
9552
9552
|
enifed('ember-metal/streams/utils', ['exports', './stream'], function (exports, _stream) {
|
9553
9553
|
exports.isStream = isStream;
|
@@ -9752,7 +9752,7 @@ enifed('ember-metal/streams/utils', ['exports', './stream'], function (exports,
|
|
9752
9752
|
var hasStream = scanArray(array);
|
9753
9753
|
if (hasStream) {
|
9754
9754
|
var i, l;
|
9755
|
-
var stream = new _stream
|
9755
|
+
var stream = new _stream["default"](function () {
|
9756
9756
|
return concat(readArray(array), separator);
|
9757
9757
|
}, function () {
|
9758
9758
|
var labels = labelsFor(array);
|
@@ -9816,7 +9816,7 @@ enifed('ember-metal/streams/utils', ['exports', './stream'], function (exports,
|
|
9816
9816
|
}
|
9817
9817
|
|
9818
9818
|
function or(first, second) {
|
9819
|
-
var stream = new _stream
|
9819
|
+
var stream = new _stream["default"](function () {
|
9820
9820
|
return first.value() || second.value();
|
9821
9821
|
}, function () {
|
9822
9822
|
return '' + labelFor(first) + ' || ' + labelFor(second);
|
@@ -9838,7 +9838,7 @@ enifed('ember-metal/streams/utils', ['exports', './stream'], function (exports,
|
|
9838
9838
|
function zip(streams, callback, label) {
|
9839
9839
|
Ember.assert('Must call zip with a label', !!label);
|
9840
9840
|
|
9841
|
-
var stream = new _stream
|
9841
|
+
var stream = new _stream["default"](function () {
|
9842
9842
|
var array = readArray(streams);
|
9843
9843
|
return callback ? callback(array) : array;
|
9844
9844
|
}, function () {
|
@@ -9855,7 +9855,7 @@ enifed('ember-metal/streams/utils', ['exports', './stream'], function (exports,
|
|
9855
9855
|
function zipHash(object, callback, label) {
|
9856
9856
|
Ember.assert('Must call zipHash with a label', !!label);
|
9857
9857
|
|
9858
|
-
var stream = new _stream
|
9858
|
+
var stream = new _stream["default"](function () {
|
9859
9859
|
var hash = readHash(object);
|
9860
9860
|
return callback ? callback(hash) : hash;
|
9861
9861
|
}, function () {
|
@@ -9905,7 +9905,7 @@ enifed('ember-metal/streams/utils', ['exports', './stream'], function (exports,
|
|
9905
9905
|
function chain(value, fn, label) {
|
9906
9906
|
Ember.assert('Must call chain with a label', !!label);
|
9907
9907
|
if (isStream(value)) {
|
9908
|
-
var stream = new _stream
|
9908
|
+
var stream = new _stream["default"](fn, function () {
|
9909
9909
|
return '' + label + '(' + labelFor(value) + ')';
|
9910
9910
|
});
|
9911
9911
|
stream.addDependency(value);
|
@@ -10260,7 +10260,7 @@ enifed("ember-metal/utils", ["exports", "ember-metal/core", "ember-metal/platfor
|
|
10260
10260
|
// Placeholder for non-writable metas.
|
10261
10261
|
var EMPTY_META = new Meta(null);
|
10262
10262
|
|
10263
|
-
if (_emberMetalCore
|
10263
|
+
if (_emberMetalCore["default"].FEATURES.isEnabled("mandatory-setter")) {
|
10264
10264
|
if (_emberMetalPlatformDefine_property.hasPropertyAccessors) {
|
10265
10265
|
EMPTY_META.values = {};
|
10266
10266
|
}
|
@@ -10301,7 +10301,7 @@ enifed("ember-metal/utils", ["exports", "ember-metal/core", "ember-metal/platfor
|
|
10301
10301
|
|
10302
10302
|
ret = new Meta(obj);
|
10303
10303
|
|
10304
|
-
if (_emberMetalCore
|
10304
|
+
if (_emberMetalCore["default"].FEATURES.isEnabled("mandatory-setter")) {
|
10305
10305
|
if (_emberMetalPlatformDefine_property.hasPropertyAccessors) {
|
10306
10306
|
ret.values = {};
|
10307
10307
|
}
|
@@ -10315,15 +10315,15 @@ enifed("ember-metal/utils", ["exports", "ember-metal/core", "ember-metal/platfor
|
|
10315
10315
|
(0, _emberMetalPlatformDefine_property.defineProperty)(obj, "__ember_meta__", META_DESC);
|
10316
10316
|
}
|
10317
10317
|
|
10318
|
-
ret = (0, _emberMetalPlatformCreate
|
10319
|
-
ret.watching = (0, _emberMetalPlatformCreate
|
10318
|
+
ret = (0, _emberMetalPlatformCreate["default"])(ret);
|
10319
|
+
ret.watching = (0, _emberMetalPlatformCreate["default"])(ret.watching);
|
10320
10320
|
ret.cache = undefined;
|
10321
10321
|
ret.cacheMeta = undefined;
|
10322
10322
|
ret.source = obj;
|
10323
10323
|
|
10324
|
-
if (_emberMetalCore
|
10324
|
+
if (_emberMetalCore["default"].FEATURES.isEnabled("mandatory-setter")) {
|
10325
10325
|
if (_emberMetalPlatformDefine_property.hasPropertyAccessors) {
|
10326
|
-
ret.values = (0, _emberMetalPlatformCreate
|
10326
|
+
ret.values = (0, _emberMetalPlatformCreate["default"])(ret.values);
|
10327
10327
|
}
|
10328
10328
|
}
|
10329
10329
|
|
@@ -10378,7 +10378,7 @@ enifed("ember-metal/utils", ["exports", "ember-metal/core", "ember-metal/platfor
|
|
10378
10378
|
*/
|
10379
10379
|
|
10380
10380
|
function metaPath(obj, path, writable) {
|
10381
|
-
_emberMetalCore
|
10381
|
+
_emberMetalCore["default"].deprecate("Ember.metaPath is deprecated and will be removed from future releases.");
|
10382
10382
|
var _meta = meta(obj, writable);
|
10383
10383
|
var keyName, value;
|
10384
10384
|
|
@@ -10395,7 +10395,7 @@ enifed("ember-metal/utils", ["exports", "ember-metal/core", "ember-metal/platfor
|
|
10395
10395
|
if (!writable) {
|
10396
10396
|
return undefined;
|
10397
10397
|
}
|
10398
|
-
value = _meta[keyName] = (0, _emberMetalPlatformCreate
|
10398
|
+
value = _meta[keyName] = (0, _emberMetalPlatformCreate["default"])(value);
|
10399
10399
|
value.__ember_source__ = obj;
|
10400
10400
|
}
|
10401
10401
|
|
@@ -10590,7 +10590,7 @@ enifed("ember-metal/utils", ["exports", "ember-metal/core", "ember-metal/platfor
|
|
10590
10590
|
}
|
10591
10591
|
|
10592
10592
|
var deprecatedTryFinally = function () {
|
10593
|
-
_emberMetalCore
|
10593
|
+
_emberMetalCore["default"].deprecate("tryFinally is deprecated. Please use JavaScript's native try/finally.", false);
|
10594
10594
|
return tryFinally.apply(this, arguments);
|
10595
10595
|
};
|
10596
10596
|
|
@@ -10679,7 +10679,7 @@ enifed("ember-metal/utils", ["exports", "ember-metal/core", "ember-metal/platfor
|
|
10679
10679
|
}
|
10680
10680
|
|
10681
10681
|
var deprecatedTryCatchFinally = function () {
|
10682
|
-
_emberMetalCore
|
10682
|
+
_emberMetalCore["default"].deprecate("tryCatchFinally is deprecated. Please use JavaScript's native try/catch/finally.", false);
|
10683
10683
|
return tryCatchFinally.apply(this, arguments);
|
10684
10684
|
};
|
10685
10685
|
|
@@ -10878,7 +10878,7 @@ enifed("ember-metal/watch_key", ["exports", "ember-metal/core", "ember-metal/uti
|
|
10878
10878
|
obj.willWatchProperty(keyName);
|
10879
10879
|
}
|
10880
10880
|
|
10881
|
-
if (_emberMetalCore
|
10881
|
+
if (_emberMetalCore["default"].FEATURES.isEnabled("mandatory-setter")) {
|
10882
10882
|
if (_emberMetalPlatformDefine_property.hasPropertyAccessors) {
|
10883
10883
|
handleMandatorySetter(m, obj, keyName);
|
10884
10884
|
}
|
@@ -10888,7 +10888,7 @@ enifed("ember-metal/watch_key", ["exports", "ember-metal/core", "ember-metal/uti
|
|
10888
10888
|
}
|
10889
10889
|
}
|
10890
10890
|
|
10891
|
-
if (_emberMetalCore
|
10891
|
+
if (_emberMetalCore["default"].FEATURES.isEnabled("mandatory-setter")) {
|
10892
10892
|
var handleMandatorySetter = function handleMandatorySetter(m, obj, keyName) {
|
10893
10893
|
var descriptor = Object.getOwnPropertyDescriptor && Object.getOwnPropertyDescriptor(obj, keyName);
|
10894
10894
|
var configurable = descriptor ? descriptor.configurable : true;
|
@@ -10935,7 +10935,7 @@ enifed("ember-metal/watch_key", ["exports", "ember-metal/core", "ember-metal/uti
|
|
10935
10935
|
obj.didUnwatchProperty(keyName);
|
10936
10936
|
}
|
10937
10937
|
|
10938
|
-
if (_emberMetalCore
|
10938
|
+
if (_emberMetalCore["default"].FEATURES.isEnabled("mandatory-setter")) {
|
10939
10939
|
if (!desc && _emberMetalPlatformDefine_property.hasPropertyAccessors && keyName in obj) {
|
10940
10940
|
(0, _emberMetalPlatformDefine_property.defineProperty)(obj, keyName, {
|
10941
10941
|
configurable: true,
|
@@ -11112,42 +11112,42 @@ enifed("ember-metal/watching", ["exports", "ember-metal/utils", "ember-metal/cha
|
|
11112
11112
|
*/
|
11113
11113
|
enifed("ember-template-compiler", ["exports", "ember-metal/core", "ember-template-compiler/system/precompile", "ember-template-compiler/system/compile", "ember-template-compiler/system/template", "ember-template-compiler/plugins", "ember-template-compiler/plugins/transform-each-in-to-block-params", "ember-template-compiler/plugins/transform-with-as-to-hash", "ember-template-compiler/plugins/transform-bind-attr-to-attributes", "ember-template-compiler/plugins/transform-each-into-collection", "ember-template-compiler/plugins/transform-single-arg-each", "ember-template-compiler/plugins/transform-old-binding-syntax", "ember-template-compiler/plugins/transform-old-class-binding-syntax", "ember-template-compiler/plugins/transform-item-class", "ember-template-compiler/plugins/transform-component-attrs-into-mut", "ember-template-compiler/plugins/transform-component-curly-to-readonly", "ember-template-compiler/plugins/transform-angle-bracket-components", "ember-template-compiler/plugins/transform-input-on-to-onEvent", "ember-template-compiler/plugins/deprecate-view-and-controller-paths", "ember-template-compiler/plugins/deprecate-view-helper", "ember-template-compiler/compat"], function (exports, _emberMetalCore, _emberTemplateCompilerSystemPrecompile, _emberTemplateCompilerSystemCompile, _emberTemplateCompilerSystemTemplate, _emberTemplateCompilerPlugins, _emberTemplateCompilerPluginsTransformEachInToBlockParams, _emberTemplateCompilerPluginsTransformWithAsToHash, _emberTemplateCompilerPluginsTransformBindAttrToAttributes, _emberTemplateCompilerPluginsTransformEachIntoCollection, _emberTemplateCompilerPluginsTransformSingleArgEach, _emberTemplateCompilerPluginsTransformOldBindingSyntax, _emberTemplateCompilerPluginsTransformOldClassBindingSyntax, _emberTemplateCompilerPluginsTransformItemClass, _emberTemplateCompilerPluginsTransformComponentAttrsIntoMut, _emberTemplateCompilerPluginsTransformComponentCurlyToReadonly, _emberTemplateCompilerPluginsTransformAngleBracketComponents, _emberTemplateCompilerPluginsTransformInputOnToOnEvent, _emberTemplateCompilerPluginsDeprecateViewAndControllerPaths, _emberTemplateCompilerPluginsDeprecateViewHelper, _emberTemplateCompilerCompat) {
|
11114
11114
|
|
11115
|
-
(0, _emberTemplateCompilerPlugins.registerPlugin)("ast", _emberTemplateCompilerPluginsTransformWithAsToHash
|
11116
|
-
(0, _emberTemplateCompilerPlugins.registerPlugin)("ast", _emberTemplateCompilerPluginsTransformEachInToBlockParams
|
11117
|
-
(0, _emberTemplateCompilerPlugins.registerPlugin)("ast", _emberTemplateCompilerPluginsTransformBindAttrToAttributes
|
11118
|
-
(0, _emberTemplateCompilerPlugins.registerPlugin)("ast", _emberTemplateCompilerPluginsTransformSingleArgEach
|
11119
|
-
(0, _emberTemplateCompilerPlugins.registerPlugin)("ast", _emberTemplateCompilerPluginsTransformEachIntoCollection
|
11120
|
-
(0, _emberTemplateCompilerPlugins.registerPlugin)("ast", _emberTemplateCompilerPluginsTransformOldBindingSyntax
|
11121
|
-
(0, _emberTemplateCompilerPlugins.registerPlugin)("ast", _emberTemplateCompilerPluginsTransformOldClassBindingSyntax
|
11122
|
-
(0, _emberTemplateCompilerPlugins.registerPlugin)("ast", _emberTemplateCompilerPluginsTransformItemClass
|
11123
|
-
(0, _emberTemplateCompilerPlugins.registerPlugin)("ast", _emberTemplateCompilerPluginsTransformComponentAttrsIntoMut
|
11124
|
-
(0, _emberTemplateCompilerPlugins.registerPlugin)("ast", _emberTemplateCompilerPluginsTransformComponentCurlyToReadonly
|
11125
|
-
(0, _emberTemplateCompilerPlugins.registerPlugin)("ast", _emberTemplateCompilerPluginsTransformAngleBracketComponents
|
11126
|
-
(0, _emberTemplateCompilerPlugins.registerPlugin)("ast", _emberTemplateCompilerPluginsTransformInputOnToOnEvent
|
11127
|
-
(0, _emberTemplateCompilerPlugins.registerPlugin)("ast", _emberTemplateCompilerPluginsDeprecateViewAndControllerPaths
|
11128
|
-
(0, _emberTemplateCompilerPlugins.registerPlugin)("ast", _emberTemplateCompilerPluginsDeprecateViewHelper
|
11129
|
-
|
11130
|
-
exports._Ember = _emberMetalCore
|
11131
|
-
exports.precompile = _emberTemplateCompilerSystemPrecompile
|
11132
|
-
exports.compile = _emberTemplateCompilerSystemCompile
|
11133
|
-
exports.template = _emberTemplateCompilerSystemTemplate
|
11115
|
+
(0, _emberTemplateCompilerPlugins.registerPlugin)("ast", _emberTemplateCompilerPluginsTransformWithAsToHash["default"]);
|
11116
|
+
(0, _emberTemplateCompilerPlugins.registerPlugin)("ast", _emberTemplateCompilerPluginsTransformEachInToBlockParams["default"]);
|
11117
|
+
(0, _emberTemplateCompilerPlugins.registerPlugin)("ast", _emberTemplateCompilerPluginsTransformBindAttrToAttributes["default"]);
|
11118
|
+
(0, _emberTemplateCompilerPlugins.registerPlugin)("ast", _emberTemplateCompilerPluginsTransformSingleArgEach["default"]);
|
11119
|
+
(0, _emberTemplateCompilerPlugins.registerPlugin)("ast", _emberTemplateCompilerPluginsTransformEachIntoCollection["default"]);
|
11120
|
+
(0, _emberTemplateCompilerPlugins.registerPlugin)("ast", _emberTemplateCompilerPluginsTransformOldBindingSyntax["default"]);
|
11121
|
+
(0, _emberTemplateCompilerPlugins.registerPlugin)("ast", _emberTemplateCompilerPluginsTransformOldClassBindingSyntax["default"]);
|
11122
|
+
(0, _emberTemplateCompilerPlugins.registerPlugin)("ast", _emberTemplateCompilerPluginsTransformItemClass["default"]);
|
11123
|
+
(0, _emberTemplateCompilerPlugins.registerPlugin)("ast", _emberTemplateCompilerPluginsTransformComponentAttrsIntoMut["default"]);
|
11124
|
+
(0, _emberTemplateCompilerPlugins.registerPlugin)("ast", _emberTemplateCompilerPluginsTransformComponentCurlyToReadonly["default"]);
|
11125
|
+
(0, _emberTemplateCompilerPlugins.registerPlugin)("ast", _emberTemplateCompilerPluginsTransformAngleBracketComponents["default"]);
|
11126
|
+
(0, _emberTemplateCompilerPlugins.registerPlugin)("ast", _emberTemplateCompilerPluginsTransformInputOnToOnEvent["default"]);
|
11127
|
+
(0, _emberTemplateCompilerPlugins.registerPlugin)("ast", _emberTemplateCompilerPluginsDeprecateViewAndControllerPaths["default"]);
|
11128
|
+
(0, _emberTemplateCompilerPlugins.registerPlugin)("ast", _emberTemplateCompilerPluginsDeprecateViewHelper["default"]);
|
11129
|
+
|
11130
|
+
exports._Ember = _emberMetalCore["default"];
|
11131
|
+
exports.precompile = _emberTemplateCompilerSystemPrecompile["default"];
|
11132
|
+
exports.compile = _emberTemplateCompilerSystemCompile["default"];
|
11133
|
+
exports.template = _emberTemplateCompilerSystemTemplate["default"];
|
11134
11134
|
exports.registerPlugin = _emberTemplateCompilerPlugins.registerPlugin;
|
11135
11135
|
});
|
11136
11136
|
|
11137
11137
|
// used for adding Ember.Handlebars.compile for backwards compat
|
11138
11138
|
enifed("ember-template-compiler/compat", ["exports", "ember-metal/core", "ember-template-compiler/compat/precompile", "ember-template-compiler/system/compile", "ember-template-compiler/system/template"], function (exports, _emberMetalCore, _emberTemplateCompilerCompatPrecompile, _emberTemplateCompilerSystemCompile, _emberTemplateCompilerSystemTemplate) {
|
11139
11139
|
|
11140
|
-
var EmberHandlebars = _emberMetalCore
|
11140
|
+
var EmberHandlebars = _emberMetalCore["default"].Handlebars = _emberMetalCore["default"].Handlebars || {};
|
11141
11141
|
|
11142
|
-
EmberHandlebars.precompile = _emberTemplateCompilerCompatPrecompile
|
11143
|
-
EmberHandlebars.compile = _emberTemplateCompilerSystemCompile
|
11144
|
-
EmberHandlebars.template = _emberTemplateCompilerSystemTemplate
|
11142
|
+
EmberHandlebars.precompile = _emberTemplateCompilerCompatPrecompile["default"];
|
11143
|
+
EmberHandlebars.compile = _emberTemplateCompilerSystemCompile["default"];
|
11144
|
+
EmberHandlebars.template = _emberTemplateCompilerSystemTemplate["default"];
|
11145
11145
|
});
|
11146
11146
|
enifed('ember-template-compiler/compat/precompile', ['exports', 'ember-template-compiler/system/compile_options'], function (exports, _emberTemplateCompilerSystemCompile_options) {
|
11147
11147
|
|
11148
11148
|
var compile, compileSpec;
|
11149
11149
|
|
11150
|
-
exports
|
11150
|
+
exports["default"] = function (string) {
|
11151
11151
|
if ((!compile || !compileSpec) && Ember.__loader.registry['htmlbars-compiler/compiler']) {
|
11152
11152
|
var Compiler = requireModule('htmlbars-compiler/compiler');
|
11153
11153
|
|
@@ -11162,7 +11162,7 @@ enifed('ember-template-compiler/compat/precompile', ['exports', 'ember-template-
|
|
11162
11162
|
var asObject = arguments[1] === undefined ? true : arguments[1];
|
11163
11163
|
var compileFunc = asObject ? compile : compileSpec;
|
11164
11164
|
|
11165
|
-
return compileFunc(string, (0, _emberTemplateCompilerSystemCompile_options
|
11165
|
+
return compileFunc(string, (0, _emberTemplateCompilerSystemCompile_options["default"])());
|
11166
11166
|
};
|
11167
11167
|
});
|
11168
11168
|
/**
|
@@ -11199,7 +11199,7 @@ enifed('ember-template-compiler/plugins', ['exports'], function (exports) {
|
|
11199
11199
|
plugins[type].push(Plugin);
|
11200
11200
|
}
|
11201
11201
|
|
11202
|
-
exports
|
11202
|
+
exports["default"] = plugins;
|
11203
11203
|
});
|
11204
11204
|
enifed("ember-template-compiler/plugins/deprecate-view-and-controller-paths", ["exports", "ember-metal/core", "ember-template-compiler/system/calculate-location-display"], function (exports, _emberMetalCore, _emberTemplateCompilerSystemCalculateLocationDisplay) {
|
11205
11205
|
|
@@ -11255,12 +11255,12 @@ enifed("ember-template-compiler/plugins/deprecate-view-and-controller-paths", ["
|
|
11255
11255
|
}
|
11256
11256
|
|
11257
11257
|
function deprecatePath(moduleName, node, path) {
|
11258
|
-
_emberMetalCore
|
11258
|
+
_emberMetalCore["default"].deprecate("Using `{{" + (path && path.type === "PathExpression" && path.parts[0]) + "}}` or any path based on it " + (0, _emberTemplateCompilerSystemCalculateLocationDisplay["default"])(moduleName, node.loc) + "has been deprecated.", function deprecatePath_test() {
|
11259
11259
|
var noDeprecate = true;
|
11260
11260
|
|
11261
11261
|
var viewKeyword = path && path.type === "PathExpression" && path.parts && path.parts[0];
|
11262
11262
|
if (viewKeyword === "view") {
|
11263
|
-
noDeprecate = _emberMetalCore
|
11263
|
+
noDeprecate = _emberMetalCore["default"].ENV._ENABLE_LEGACY_VIEW_SUPPORT;
|
11264
11264
|
} else if (viewKeyword === "controller") {
|
11265
11265
|
noDeprecate = false;
|
11266
11266
|
}
|
@@ -11273,7 +11273,7 @@ enifed("ember-template-compiler/plugins/deprecate-view-and-controller-paths", ["
|
|
11273
11273
|
return node.type === "MustacheStatement" || node.type === "BlockStatement";
|
11274
11274
|
}
|
11275
11275
|
|
11276
|
-
exports
|
11276
|
+
exports["default"] = DeprecateViewAndControllerPaths;
|
11277
11277
|
});
|
11278
11278
|
enifed("ember-template-compiler/plugins/deprecate-view-helper", ["exports", "ember-metal/core", "ember-template-compiler/system/calculate-location-display"], function (exports, _emberMetalCore, _emberTemplateCompilerSystemCalculateLocationDisplay) {
|
11279
11279
|
|
@@ -11289,7 +11289,7 @@ enifed("ember-template-compiler/plugins/deprecate-view-helper", ["exports", "emb
|
|
11289
11289
|
@param {AST} ast The AST to be transformed.
|
11290
11290
|
*/
|
11291
11291
|
DeprecateViewHelper.prototype.transform = function DeprecateViewHelper_transform(ast) {
|
11292
|
-
if (!!_emberMetalCore
|
11292
|
+
if (!!_emberMetalCore["default"].ENV._ENABLE_LEGACY_VIEW_SUPPORT) {
|
11293
11293
|
return ast;
|
11294
11294
|
}
|
11295
11295
|
var walker = new this.syntax.Walker();
|
@@ -11314,19 +11314,19 @@ enifed("ember-template-compiler/plugins/deprecate-view-helper", ["exports", "emb
|
|
11314
11314
|
} else if (paramValue === "select") {
|
11315
11315
|
deprecateSelect(moduleName, node);
|
11316
11316
|
} else {
|
11317
|
-
_emberMetalCore
|
11317
|
+
_emberMetalCore["default"].deprecate("Using the `{{view \"string\"}}` helper is deprecated. " + (0, _emberTemplateCompilerSystemCalculateLocationDisplay["default"])(moduleName, node.loc), false, { url: "http://emberjs.com/deprecations/v1.x#toc_ember-view", id: "view.helper" });
|
11318
11318
|
}
|
11319
11319
|
}
|
11320
11320
|
|
11321
11321
|
function deprecateSelect(moduleName, node) {
|
11322
|
-
_emberMetalCore
|
11322
|
+
_emberMetalCore["default"].deprecate("Using `{{view \"select\"}}` is deprecated. " + (0, _emberTemplateCompilerSystemCalculateLocationDisplay["default"])(moduleName, node.loc), false, { url: "http://emberjs.com/deprecations/v1.x#toc_ember-select", id: "view.helper.select" });
|
11323
11323
|
}
|
11324
11324
|
|
11325
11325
|
function validate(node) {
|
11326
11326
|
return (node.type === "MustacheStatement" || node.type === "BlockStatement") && node.path.parts[0] === "view";
|
11327
11327
|
}
|
11328
11328
|
|
11329
|
-
exports
|
11329
|
+
exports["default"] = DeprecateViewHelper;
|
11330
11330
|
});
|
11331
11331
|
enifed('ember-template-compiler/plugins/transform-angle-bracket-components', ['exports'], function (exports) {
|
11332
11332
|
function TransformAngleBracketComponents() {
|
@@ -11357,7 +11357,7 @@ enifed('ember-template-compiler/plugins/transform-angle-bracket-components', ['e
|
|
11357
11357
|
return node.type === 'ComponentNode';
|
11358
11358
|
}
|
11359
11359
|
|
11360
|
-
exports
|
11360
|
+
exports["default"] = TransformAngleBracketComponents;
|
11361
11361
|
});
|
11362
11362
|
enifed("ember-template-compiler/plugins/transform-bind-attr-to-attributes", ["exports", "ember-metal/core", "ember-template-compiler/system/string", "ember-template-compiler/system/calculate-location-display"], function (exports, _emberMetalCore, _emberTemplateCompilerSystemString, _emberTemplateCompilerSystemCalculateLocationDisplay) {
|
11363
11363
|
|
@@ -11437,7 +11437,7 @@ enifed("ember-template-compiler/plugins/transform-bind-attr-to-attributes", ["ex
|
|
11437
11437
|
case "SubExpression":
|
11438
11438
|
return b.mustache(value.path, value.params, value.hash);
|
11439
11439
|
default:
|
11440
|
-
_emberMetalCore
|
11440
|
+
_emberMetalCore["default"].assert("Unsupported attribute value type: " + value.type);
|
11441
11441
|
}
|
11442
11442
|
} else {
|
11443
11443
|
switch (value.type) {
|
@@ -11448,7 +11448,7 @@ enifed("ember-template-compiler/plugins/transform-bind-attr-to-attributes", ["ex
|
|
11448
11448
|
case "SubExpression":
|
11449
11449
|
return b.mustache(value.path, value.params, value.hash);
|
11450
11450
|
default:
|
11451
|
-
_emberMetalCore
|
11451
|
+
_emberMetalCore["default"].assert("Unsupported attribute value type: " + value.type);
|
11452
11452
|
}
|
11453
11453
|
}
|
11454
11454
|
};
|
@@ -11497,17 +11497,17 @@ enifed("ember-template-compiler/plugins/transform-bind-attr-to-attributes", ["ex
|
|
11497
11497
|
// After: class="{{if some.path "foo" "bar"}} ..."
|
11498
11498
|
return b.sexpr(b.path("if"), [b.path(parts[0]), b.string(parts[1]), b.string(parts[2])]);
|
11499
11499
|
default:
|
11500
|
-
_emberMetalCore
|
11500
|
+
_emberMetalCore["default"].assert("Unsupported bind-attr class syntax: `" + value + "`");
|
11501
11501
|
}
|
11502
11502
|
};
|
11503
11503
|
|
11504
11504
|
function isBindAttrModifier(modifier, moduleName) {
|
11505
11505
|
var name = modifier.path.original;
|
11506
11506
|
|
11507
|
-
var moduleInfo = (0, _emberTemplateCompilerSystemCalculateLocationDisplay
|
11507
|
+
var moduleInfo = (0, _emberTemplateCompilerSystemCalculateLocationDisplay["default"])(moduleName, modifier.path.loc);
|
11508
11508
|
|
11509
11509
|
if (name === "bind-attr" || name === "bindAttr") {
|
11510
|
-
_emberMetalCore
|
11510
|
+
_emberMetalCore["default"].deprecate("The `" + name + "` helper " + moduleInfo + "is deprecated in favor of " + "HTMLBars-style bound attributes.");
|
11511
11511
|
return true;
|
11512
11512
|
} else {
|
11513
11513
|
return false;
|
@@ -11520,9 +11520,9 @@ enifed("ember-template-compiler/plugins/transform-bind-attr-to-attributes", ["ex
|
|
11520
11520
|
|
11521
11521
|
if (attr.name === name) {
|
11522
11522
|
if (name === "class") {
|
11523
|
-
_emberMetalCore
|
11523
|
+
_emberMetalCore["default"].assert("You cannot set `class` manually and via `{{bind-attr}}` helper " + "on the same element. Please use `{{bind-attr}}`'s `:static-class` " + "syntax instead.");
|
11524
11524
|
} else {
|
11525
|
-
_emberMetalCore
|
11525
|
+
_emberMetalCore["default"].assert("You cannot set `" + name + "` manually and via `{{bind-attr}}` " + "helper on the same element.");
|
11526
11526
|
}
|
11527
11527
|
}
|
11528
11528
|
}
|
@@ -11533,7 +11533,7 @@ enifed("ember-template-compiler/plugins/transform-bind-attr-to-attributes", ["ex
|
|
11533
11533
|
return (0, _emberTemplateCompilerSystemString.dasherize)(parts[parts.length - 1]);
|
11534
11534
|
}
|
11535
11535
|
|
11536
|
-
exports
|
11536
|
+
exports["default"] = TransformBindAttrToAttributes;
|
11537
11537
|
});
|
11538
11538
|
/**
|
11539
11539
|
@module ember
|
@@ -11583,7 +11583,7 @@ enifed('ember-template-compiler/plugins/transform-component-attrs-into-mut', ['e
|
|
11583
11583
|
}
|
11584
11584
|
}
|
11585
11585
|
|
11586
|
-
exports
|
11586
|
+
exports["default"] = TransformComponentAttrsIntoMut;
|
11587
11587
|
});
|
11588
11588
|
enifed('ember-template-compiler/plugins/transform-component-curly-to-readonly', ['exports'], function (exports) {
|
11589
11589
|
function TransformComponentCurlyToReadonly() {
|
@@ -11630,7 +11630,7 @@ enifed('ember-template-compiler/plugins/transform-component-curly-to-readonly',
|
|
11630
11630
|
}
|
11631
11631
|
}
|
11632
11632
|
|
11633
|
-
exports
|
11633
|
+
exports["default"] = TransformComponentCurlyToReadonly;
|
11634
11634
|
});
|
11635
11635
|
enifed("ember-template-compiler/plugins/transform-each-in-to-block-params", ["exports", "ember-metal/core", "ember-template-compiler/system/calculate-location-display"], function (exports, _emberMetalCore, _emberTemplateCompilerSystemCalculateLocationDisplay) {
|
11636
11636
|
/**
|
@@ -11680,7 +11680,7 @@ enifed("ember-template-compiler/plugins/transform-each-in-to-block-params", ["ex
|
|
11680
11680
|
var moduleInfo = undefined;
|
11681
11681
|
|
11682
11682
|
if (node.type === "BlockStatement") {
|
11683
|
-
moduleInfo = (0, _emberTemplateCompilerSystemCalculateLocationDisplay
|
11683
|
+
moduleInfo = (0, _emberTemplateCompilerSystemCalculateLocationDisplay["default"])(moduleName, node.program.loc);
|
11684
11684
|
|
11685
11685
|
if (node.program.blockParams.length) {
|
11686
11686
|
throw new Error("You cannot use keyword (`{{#each foo in bar}}`) and block params (`{{#each bar as |foo|}}`) at the same time " + moduleInfo + ".");
|
@@ -11688,12 +11688,12 @@ enifed("ember-template-compiler/plugins/transform-each-in-to-block-params", ["ex
|
|
11688
11688
|
|
11689
11689
|
node.program.blockParams = [keyword];
|
11690
11690
|
} else {
|
11691
|
-
moduleInfo = (0, _emberTemplateCompilerSystemCalculateLocationDisplay
|
11691
|
+
moduleInfo = (0, _emberTemplateCompilerSystemCalculateLocationDisplay["default"])(moduleName, node.loc);
|
11692
11692
|
|
11693
11693
|
node.hash.pairs.push(b.pair("keyword", b.string(keyword)));
|
11694
11694
|
}
|
11695
11695
|
|
11696
|
-
_emberMetalCore
|
11696
|
+
_emberMetalCore["default"].deprecate("Using the '{{#each item in model}}' form of the {{#each}} helper " + moduleInfo + "is deprecated. " + "Please use the block param form instead ('{{#each model as |item|}}').", false, { url: "http://emberjs.com/guides/deprecations/#toc_code-in-code-syntax-for-code-each-code" });
|
11697
11697
|
}
|
11698
11698
|
});
|
11699
11699
|
|
@@ -11704,7 +11704,7 @@ enifed("ember-template-compiler/plugins/transform-each-in-to-block-params", ["ex
|
|
11704
11704
|
return (node.type === "BlockStatement" || node.type === "MustacheStatement") && node.path.original === "each" && node.params.length === 3 && node.params[1].type === "PathExpression" && node.params[1].original === "in";
|
11705
11705
|
}
|
11706
11706
|
|
11707
|
-
exports
|
11707
|
+
exports["default"] = TransformEachInToBlockParams;
|
11708
11708
|
});
|
11709
11709
|
enifed('ember-template-compiler/plugins/transform-each-in-to-hash', ['exports'], function (exports) {
|
11710
11710
|
/**
|
@@ -11772,10 +11772,10 @@ enifed('ember-template-compiler/plugins/transform-each-in-to-hash', ['exports'],
|
|
11772
11772
|
return (node.type === 'BlockStatement' || node.type === 'MustacheStatement') && node.sexpr.path.original === 'each' && node.sexpr.params.length === 3 && node.sexpr.params[1].type === 'PathExpression' && node.sexpr.params[1].original === 'in';
|
11773
11773
|
};
|
11774
11774
|
|
11775
|
-
exports
|
11775
|
+
exports["default"] = TransformEachInToHash;
|
11776
11776
|
});
|
11777
11777
|
enifed('ember-template-compiler/plugins/transform-each-into-collection', ['exports', 'ember-metal/core', 'ember-template-compiler/system/calculate-location-display'], function (exports, _emberMetalCore, _emberTemplateCompilerSystemCalculateLocationDisplay) {
|
11778
|
-
exports
|
11778
|
+
exports["default"] = TransformEachIntoCollection;
|
11779
11779
|
|
11780
11780
|
function TransformEachIntoCollection(options) {
|
11781
11781
|
this.options = options;
|
@@ -11793,9 +11793,9 @@ enifed('ember-template-compiler/plugins/transform-each-into-collection', ['expor
|
|
11793
11793
|
return;
|
11794
11794
|
}
|
11795
11795
|
|
11796
|
-
var moduleInfo = (0, _emberTemplateCompilerSystemCalculateLocationDisplay
|
11796
|
+
var moduleInfo = (0, _emberTemplateCompilerSystemCalculateLocationDisplay["default"])(moduleName, legacyHashKey.loc);
|
11797
11797
|
|
11798
|
-
_emberMetalCore
|
11798
|
+
_emberMetalCore["default"].deprecate('Using \'' + legacyHashKey.key + '\' with \'{{each}}\' ' + moduleInfo + 'is deprecated. Please refactor to a component.');
|
11799
11799
|
|
11800
11800
|
var list = node.params.shift();
|
11801
11801
|
node.path = b.path('collection');
|
@@ -11884,10 +11884,10 @@ enifed("ember-template-compiler/plugins/transform-input-on-to-onEvent", ["export
|
|
11884
11884
|
var on = hashPairForKey(node.hash, "on");
|
11885
11885
|
var onEvent = hashPairForKey(node.hash, "onEvent");
|
11886
11886
|
var normalizedOn = on || onEvent;
|
11887
|
-
var moduleInfo = (0, _emberTemplateCompilerSystemCalculateLocationDisplay
|
11887
|
+
var moduleInfo = (0, _emberTemplateCompilerSystemCalculateLocationDisplay["default"])(moduleName, node.loc);
|
11888
11888
|
|
11889
11889
|
if (normalizedOn && normalizedOn.value.type !== "StringLiteral") {
|
11890
|
-
_emberMetalCore
|
11890
|
+
_emberMetalCore["default"].deprecate("Using a dynamic value for '#{normalizedOn.key}=' with the '{{input}}' helper " + moduleInfo + "is deprecated.");
|
11891
11891
|
|
11892
11892
|
normalizedOn.key = "onEvent";
|
11893
11893
|
return; // exit early, as we cannot transform further
|
@@ -11897,7 +11897,7 @@ enifed("ember-template-compiler/plugins/transform-input-on-to-onEvent", ["export
|
|
11897
11897
|
removeFromHash(node.hash, action);
|
11898
11898
|
|
11899
11899
|
if (!action) {
|
11900
|
-
_emberMetalCore
|
11900
|
+
_emberMetalCore["default"].deprecate("Using '{{input " + normalizedOn.key + "=\"" + normalizedOn.value.value + "\" ...}}' without specifying an action " + moduleInfo + "will do nothing.");
|
11901
11901
|
|
11902
11902
|
return; // exit early, if no action was available there is nothing to do
|
11903
11903
|
}
|
@@ -11911,7 +11911,7 @@ enifed("ember-template-compiler/plugins/transform-input-on-to-onEvent", ["export
|
|
11911
11911
|
|
11912
11912
|
var expected = "" + (normalizedOn ? normalizedOn.value.value : "enter") + "=\"" + action.value.original + "\"";
|
11913
11913
|
|
11914
|
-
_emberMetalCore
|
11914
|
+
_emberMetalCore["default"].deprecate("Using '{{input " + specifiedOn + "action=\"" + action.value.original + "\"}}' " + moduleInfo + "is deprecated. Please use '{{input " + expected + "}}' instead.");
|
11915
11915
|
if (!normalizedOn) {
|
11916
11916
|
normalizedOn = b.pair("onEvent", b.string("enter"));
|
11917
11917
|
}
|
@@ -11951,10 +11951,10 @@ enifed("ember-template-compiler/plugins/transform-input-on-to-onEvent", ["export
|
|
11951
11951
|
hash.pairs = newPairs;
|
11952
11952
|
}
|
11953
11953
|
|
11954
|
-
exports
|
11954
|
+
exports["default"] = TransformInputOnToOnEvent;
|
11955
11955
|
});
|
11956
11956
|
enifed('ember-template-compiler/plugins/transform-item-class', ['exports'], function (exports) {
|
11957
|
-
exports
|
11957
|
+
exports["default"] = TransformItemClass;
|
11958
11958
|
|
11959
11959
|
function TransformItemClass() {
|
11960
11960
|
this.syntax = null;
|
@@ -12005,7 +12005,7 @@ enifed('ember-template-compiler/plugins/transform-item-class', ['exports'], func
|
|
12005
12005
|
}
|
12006
12006
|
});
|
12007
12007
|
enifed('ember-template-compiler/plugins/transform-old-binding-syntax', ['exports', 'ember-metal/core', 'ember-template-compiler/system/calculate-location-display'], function (exports, _emberMetalCore, _emberTemplateCompilerSystemCalculateLocationDisplay) {
|
12008
|
-
exports
|
12008
|
+
exports["default"] = TransformOldBindingSyntax;
|
12009
12009
|
|
12010
12010
|
function TransformOldBindingSyntax(options) {
|
12011
12011
|
this.syntax = null;
|
@@ -12026,18 +12026,18 @@ enifed('ember-template-compiler/plugins/transform-old-binding-syntax', ['exports
|
|
12026
12026
|
var key = pair.key;
|
12027
12027
|
var value = pair.value;
|
12028
12028
|
|
12029
|
-
var sourceInformation = (0, _emberTemplateCompilerSystemCalculateLocationDisplay
|
12029
|
+
var sourceInformation = (0, _emberTemplateCompilerSystemCalculateLocationDisplay["default"])(moduleName, pair.loc);
|
12030
12030
|
|
12031
12031
|
if (key === 'classBinding') {
|
12032
12032
|
return;
|
12033
12033
|
}
|
12034
12034
|
|
12035
|
-
_emberMetalCore
|
12035
|
+
_emberMetalCore["default"].assert('Setting \'attributeBindings\' via template helpers is not allowed ' + sourceInformation, key !== 'attributeBindings');
|
12036
12036
|
|
12037
12037
|
if (key.substr(-7) === 'Binding') {
|
12038
12038
|
var newKey = key.slice(0, -7);
|
12039
12039
|
|
12040
|
-
_emberMetalCore
|
12040
|
+
_emberMetalCore["default"].deprecate('You\'re using legacy binding syntax: ' + key + '=' + exprToString(value) + ' ' + sourceInformation + '. Please replace with ' + newKey + '=' + value.original);
|
12041
12041
|
|
12042
12042
|
pair.key = newKey;
|
12043
12043
|
if (value.type === 'StringLiteral') {
|
@@ -12070,7 +12070,7 @@ enifed('ember-template-compiler/plugins/transform-old-binding-syntax', ['exports
|
|
12070
12070
|
}
|
12071
12071
|
});
|
12072
12072
|
enifed('ember-template-compiler/plugins/transform-old-class-binding-syntax', ['exports'], function (exports) {
|
12073
|
-
exports
|
12073
|
+
exports["default"] = TransformOldClassBindingSyntax;
|
12074
12074
|
|
12075
12075
|
function TransformOldClassBindingSyntax(options) {
|
12076
12076
|
this.syntax = null;
|
@@ -12208,7 +12208,7 @@ enifed('ember-template-compiler/plugins/transform-old-class-binding-syntax', ['e
|
|
12208
12208
|
}
|
12209
12209
|
});
|
12210
12210
|
enifed('ember-template-compiler/plugins/transform-single-arg-each', ['exports'], function (exports) {
|
12211
|
-
exports
|
12211
|
+
exports["default"] = TransformSingleArgEach;
|
12212
12212
|
|
12213
12213
|
function TransformSingleArgEach() {
|
12214
12214
|
this.syntax = null;
|
@@ -12276,7 +12276,7 @@ enifed("ember-template-compiler/plugins/transform-with-as-to-hash", ["exports",
|
|
12276
12276
|
throw new Error("You cannot use keyword (`{{with foo as bar}}`) and block params (`{{with foo as |bar|}}`) at the same time.");
|
12277
12277
|
}
|
12278
12278
|
|
12279
|
-
var moduleInfo = (0, _emberTemplateCompilerSystemCalculateLocationDisplay
|
12279
|
+
var moduleInfo = (0, _emberTemplateCompilerSystemCalculateLocationDisplay["default"])(moduleName, node.program.loc);
|
12280
12280
|
|
12281
12281
|
Ember.deprecate("Using {{with}} without block syntax " + moduleInfo + "is deprecated. " + "Please use standard block form (`{{#with foo as |bar|}}`) " + "instead.", false, { url: "http://emberjs.com/deprecations/v1.x/#toc_code-as-code-sytnax-for-code-with-code" });
|
12282
12282
|
|
@@ -12293,14 +12293,14 @@ enifed("ember-template-compiler/plugins/transform-with-as-to-hash", ["exports",
|
|
12293
12293
|
return node.type === "BlockStatement" && node.path.original === "with" && node.params.length === 3 && node.params[1].type === "PathExpression" && node.params[1].original === "as";
|
12294
12294
|
};
|
12295
12295
|
|
12296
|
-
exports
|
12296
|
+
exports["default"] = TransformWithAsToHash;
|
12297
12297
|
});
|
12298
12298
|
/**
|
12299
12299
|
@module ember
|
12300
12300
|
@submodule ember-htmlbars
|
12301
12301
|
*/
|
12302
12302
|
enifed('ember-template-compiler/system/calculate-location-display', ['exports'], function (exports) {
|
12303
|
-
exports
|
12303
|
+
exports["default"] = calculateLocationDisplay;
|
12304
12304
|
|
12305
12305
|
function calculateLocationDisplay(moduleName, _loc) {
|
12306
12306
|
var loc = _loc || {};
|
@@ -12349,7 +12349,7 @@ enifed("ember-template-compiler/system/compile", ["exports", "ember-template-com
|
|
12349
12349
|
@param {Object} options This is an options hash to augment the compiler options.
|
12350
12350
|
*/
|
12351
12351
|
|
12352
|
-
exports
|
12352
|
+
exports["default"] = function (templateString, options) {
|
12353
12353
|
if (!compile && Ember.__loader.registry["htmlbars-compiler/compiler"]) {
|
12354
12354
|
compile = requireModule("htmlbars-compiler/compiler").compile;
|
12355
12355
|
}
|
@@ -12358,9 +12358,9 @@ enifed("ember-template-compiler/system/compile", ["exports", "ember-template-com
|
|
12358
12358
|
throw new Error("Cannot call `compile` without the template compiler loaded. Please load `ember-template-compiler.js` prior to calling `compile`.");
|
12359
12359
|
}
|
12360
12360
|
|
12361
|
-
var templateSpec = compile(templateString, (0, _emberTemplateCompilerSystemCompile_options
|
12361
|
+
var templateSpec = compile(templateString, (0, _emberTemplateCompilerSystemCompile_options["default"])(options));
|
12362
12362
|
|
12363
|
-
return (0, _emberTemplateCompilerSystemTemplate
|
12363
|
+
return (0, _emberTemplateCompilerSystemTemplate["default"])(templateSpec);
|
12364
12364
|
};
|
12365
12365
|
});
|
12366
12366
|
enifed("ember-template-compiler/system/compile_options", ["exports", "ember-metal/core", "ember-metal/merge", "ember-template-compiler/plugins"], function (exports, _emberMetalCore, _emberMetalMerge, _emberTemplateCompilerPlugins) {
|
@@ -12370,9 +12370,9 @@ enifed("ember-template-compiler/system/compile_options", ["exports", "ember-meta
|
|
12370
12370
|
@property compileOptions
|
12371
12371
|
*/
|
12372
12372
|
|
12373
|
-
exports
|
12373
|
+
exports["default"] = function (_options) {
|
12374
12374
|
var disableComponentGeneration = true;
|
12375
|
-
if (_emberMetalCore
|
12375
|
+
if (_emberMetalCore["default"].FEATURES.isEnabled("ember-htmlbars-component-generation")) {
|
12376
12376
|
disableComponentGeneration = false;
|
12377
12377
|
}
|
12378
12378
|
|
@@ -12389,7 +12389,7 @@ enifed("ember-template-compiler/system/compile_options", ["exports", "ember-meta
|
|
12389
12389
|
options.disableComponentGeneration = disableComponentGeneration;
|
12390
12390
|
|
12391
12391
|
var plugins = {
|
12392
|
-
ast: _emberTemplateCompilerPlugins
|
12392
|
+
ast: _emberTemplateCompilerPlugins["default"].ast.slice()
|
12393
12393
|
};
|
12394
12394
|
|
12395
12395
|
if (options.plugins && options.plugins.ast) {
|
@@ -12426,7 +12426,7 @@ enifed('ember-template-compiler/system/precompile', ['exports', 'ember-template-
|
|
12426
12426
|
@param {String} templateString This is the string to be compiled by HTMLBars.
|
12427
12427
|
*/
|
12428
12428
|
|
12429
|
-
exports
|
12429
|
+
exports["default"] = function (templateString, options) {
|
12430
12430
|
if (!compileSpec && Ember.__loader.registry['htmlbars-compiler/compiler']) {
|
12431
12431
|
compileSpec = requireModule('htmlbars-compiler/compiler').compileSpec;
|
12432
12432
|
}
|
@@ -12435,7 +12435,7 @@ enifed('ember-template-compiler/system/precompile', ['exports', 'ember-template-
|
|
12435
12435
|
throw new Error('Cannot call `compileSpec` without the template compiler loaded. Please load `ember-template-compiler.js` prior to calling `compileSpec`.');
|
12436
12436
|
}
|
12437
12437
|
|
12438
|
-
return compileSpec(templateString, (0, _emberTemplateCompilerSystemCompile_options
|
12438
|
+
return compileSpec(templateString, (0, _emberTemplateCompilerSystemCompile_options["default"])(options));
|
12439
12439
|
};
|
12440
12440
|
});
|
12441
12441
|
/**
|
@@ -12479,7 +12479,7 @@ enifed("ember-template-compiler/system/template", ["exports", "htmlbars-runtime/
|
|
12479
12479
|
@param {Function} templateSpec This is the compiled HTMLBars template spec.
|
12480
12480
|
*/
|
12481
12481
|
|
12482
|
-
exports
|
12482
|
+
exports["default"] = function (templateSpec) {
|
12483
12483
|
if (!templateSpec.render) {
|
12484
12484
|
templateSpec = (0, _htmlbarsRuntimeHooks.wrap)(templateSpec);
|
12485
12485
|
}
|
@@ -12518,7 +12518,7 @@ enifed("htmlbars-compiler/compiler", ["exports", "../htmlbars-syntax/parser", ".
|
|
12518
12518
|
|
12519
12519
|
function compileSpec(string, options) {
|
12520
12520
|
var ast = (0, _htmlbarsSyntaxParser.preprocess)(string, options);
|
12521
|
-
var compiler = new _templateCompiler
|
12521
|
+
var compiler = new _templateCompiler["default"](options);
|
12522
12522
|
var program = compiler.compile(ast);
|
12523
12523
|
return program;
|
12524
12524
|
}
|
@@ -12566,7 +12566,7 @@ enifed("htmlbars-compiler/compiler", ["exports", "../htmlbars-syntax/parser", ".
|
|
12566
12566
|
*/
|
12567
12567
|
|
12568
12568
|
function compile(string, options) {
|
12569
|
-
return (0, _htmlbarsRuntimeHooks.wrap)(template(compileSpec(string, options)), _htmlbarsRuntimeRender
|
12569
|
+
return (0, _htmlbarsRuntimeHooks.wrap)(template(compileSpec(string, options)), _htmlbarsRuntimeRender["default"]);
|
12570
12570
|
}
|
12571
12571
|
});
|
12572
12572
|
/*jshint evil:true*/
|
@@ -12582,7 +12582,7 @@ enifed("htmlbars-compiler/fragment-javascript-compiler", ["exports", "./utils",
|
|
12582
12582
|
this.depth = -1;
|
12583
12583
|
}
|
12584
12584
|
|
12585
|
-
exports
|
12585
|
+
exports["default"] = FragmentJavaScriptCompiler;
|
12586
12586
|
|
12587
12587
|
FragmentJavaScriptCompiler.prototype.compile = function (opcodes, options) {
|
12588
12588
|
this.source.length = 0;
|
@@ -12674,10 +12674,10 @@ enifed("htmlbars-compiler/fragment-opcode-compiler", ["exports", "./template-vis
|
|
12674
12674
|
this.opcodes = [];
|
12675
12675
|
}
|
12676
12676
|
|
12677
|
-
exports
|
12677
|
+
exports["default"] = FragmentOpcodeCompiler;
|
12678
12678
|
|
12679
12679
|
FragmentOpcodeCompiler.prototype.compile = function (ast) {
|
12680
|
-
var templateVisitor = new _templateVisitor
|
12680
|
+
var templateVisitor = new _templateVisitor["default"]();
|
12681
12681
|
templateVisitor.visit(ast);
|
12682
12682
|
|
12683
12683
|
(0, _utils.processOpcodes)(this, templateVisitor.actions);
|
@@ -12758,7 +12758,7 @@ enifed("htmlbars-compiler/hydration-javascript-compiler", ["exports", "./utils",
|
|
12758
12758
|
this.hooks = undefined;
|
12759
12759
|
}
|
12760
12760
|
|
12761
|
-
exports
|
12761
|
+
exports["default"] = HydrationJavaScriptCompiler;
|
12762
12762
|
|
12763
12763
|
var prototype = HydrationJavaScriptCompiler.prototype;
|
12764
12764
|
|
@@ -13016,10 +13016,10 @@ enifed("htmlbars-compiler/hydration-opcode-compiler", ["exports", "./template-vi
|
|
13016
13016
|
this.elementNum = -1;
|
13017
13017
|
}
|
13018
13018
|
|
13019
|
-
exports
|
13019
|
+
exports["default"] = HydrationOpcodeCompiler;
|
13020
13020
|
|
13021
13021
|
HydrationOpcodeCompiler.prototype.compile = function (ast) {
|
13022
|
-
var templateVisitor = new _templateVisitor
|
13022
|
+
var templateVisitor = new _templateVisitor["default"]();
|
13023
13023
|
templateVisitor.visit(ast);
|
13024
13024
|
|
13025
13025
|
(0, _utils.processOpcodes)(this, templateVisitor.actions);
|
@@ -13333,15 +13333,15 @@ enifed('htmlbars-compiler/template-compiler', ['exports', './fragment-opcode-com
|
|
13333
13333
|
function TemplateCompiler(options) {
|
13334
13334
|
this.options = options || {};
|
13335
13335
|
this.consumerBuildMeta = this.options.buildMeta || function () {};
|
13336
|
-
this.fragmentOpcodeCompiler = new _fragmentOpcodeCompiler
|
13337
|
-
this.fragmentCompiler = new _fragmentJavascriptCompiler
|
13338
|
-
this.hydrationOpcodeCompiler = new _hydrationOpcodeCompiler
|
13339
|
-
this.hydrationCompiler = new _hydrationJavascriptCompiler
|
13336
|
+
this.fragmentOpcodeCompiler = new _fragmentOpcodeCompiler["default"]();
|
13337
|
+
this.fragmentCompiler = new _fragmentJavascriptCompiler["default"]();
|
13338
|
+
this.hydrationOpcodeCompiler = new _hydrationOpcodeCompiler["default"]();
|
13339
|
+
this.hydrationCompiler = new _hydrationJavascriptCompiler["default"]();
|
13340
13340
|
this.templates = [];
|
13341
13341
|
this.childTemplates = [];
|
13342
13342
|
}
|
13343
13343
|
|
13344
|
-
exports
|
13344
|
+
exports["default"] = TemplateCompiler;
|
13345
13345
|
|
13346
13346
|
var dynamicNodes = {
|
13347
13347
|
mustache: true,
|
@@ -13350,7 +13350,7 @@ enifed('htmlbars-compiler/template-compiler', ['exports', './fragment-opcode-com
|
|
13350
13350
|
};
|
13351
13351
|
|
13352
13352
|
TemplateCompiler.prototype.compile = function (ast) {
|
13353
|
-
var templateVisitor = new _templateVisitor
|
13353
|
+
var templateVisitor = new _templateVisitor["default"]();
|
13354
13354
|
templateVisitor.visit(ast);
|
13355
13355
|
|
13356
13356
|
var normalizedActions = [];
|
@@ -13711,7 +13711,7 @@ enifed('htmlbars-compiler/template-visitor', ['exports'], function (exports) {
|
|
13711
13711
|
return this.frameStack.pop();
|
13712
13712
|
};
|
13713
13713
|
|
13714
|
-
exports
|
13714
|
+
exports["default"] = TemplateVisitor;
|
13715
13715
|
|
13716
13716
|
// Returns the index of `domNode` in the `nodes` array, skipping
|
13717
13717
|
// over any nodes which do not represent DOM nodes.
|
@@ -13763,8 +13763,8 @@ enifed('htmlbars-runtime', ['exports', './htmlbars-runtime/hooks', './htmlbars-r
|
|
13763
13763
|
clearMorph: _htmlbarsUtilTemplateUtils.clearMorph
|
13764
13764
|
};
|
13765
13765
|
|
13766
|
-
exports.hooks = _htmlbarsRuntimeHooks
|
13767
|
-
exports.render = _htmlbarsRuntimeRender
|
13766
|
+
exports.hooks = _htmlbarsRuntimeHooks["default"];
|
13767
|
+
exports.render = _htmlbarsRuntimeRender["default"];
|
13768
13768
|
exports.internal = internal;
|
13769
13769
|
});
|
13770
13770
|
enifed("htmlbars-runtime/expression-visitor", ["exports", "../htmlbars-util/object-utils", "../htmlbars-util/morph-utils"], function (exports, _htmlbarsUtilObjectUtils, _htmlbarsUtilMorphUtils) {
|
@@ -13955,7 +13955,7 @@ enifed("htmlbars-runtime/expression-visitor", ["exports", "../htmlbars-util/obje
|
|
13955
13955
|
inverseId = node[4];
|
13956
13956
|
var paramsAndHash = this.linkParamsAndHash(env, scope, morph, path, [], attrs);
|
13957
13957
|
var templates = {
|
13958
|
-
default: template.templates[templateId],
|
13958
|
+
"default": template.templates[templateId],
|
13959
13959
|
inverse: template.templates[inverseId]
|
13960
13960
|
};
|
13961
13961
|
|
@@ -13971,7 +13971,7 @@ enifed("htmlbars-runtime/expression-visitor", ["exports", "../htmlbars-util/obje
|
|
13971
13971
|
});
|
13972
13972
|
|
13973
13973
|
exports.AlwaysDirtyVisitor = AlwaysDirtyVisitor;
|
13974
|
-
exports
|
13974
|
+
exports["default"] = (0, _htmlbarsUtilObjectUtils.merge)((0, _htmlbarsUtilObjectUtils.createObject)(base), {
|
13975
13975
|
// [ 'block', path, params, hash, templateId, inverseId ]
|
13976
13976
|
block: function (node, morph, env, scope, template, visitor) {
|
13977
13977
|
dirtyCheck(env, morph, visitor, function (visitor) {
|
@@ -14171,7 +14171,7 @@ enifed("htmlbars-runtime/hooks", ["exports", "./render", "../morph-range/morph-l
|
|
14171
14171
|
options.self = self;
|
14172
14172
|
options.blockArguments = blockArguments;
|
14173
14173
|
|
14174
|
-
return (0, _render
|
14174
|
+
return (0, _render["default"])(template, env, scope, options);
|
14175
14175
|
}
|
14176
14176
|
};
|
14177
14177
|
}
|
@@ -14239,7 +14239,7 @@ enifed("htmlbars-runtime/hooks", ["exports", "./render", "../morph-range/morph-l
|
|
14239
14239
|
morph.lastYielded = { self: self, template: template, shadowTemplate: null };
|
14240
14240
|
|
14241
14241
|
// Render the template that was selected by the helper
|
14242
|
-
(0, _render
|
14242
|
+
(0, _render["default"])(template, env, scope, { renderNode: morph, self: self, blockArguments: blockArguments });
|
14243
14243
|
};
|
14244
14244
|
}
|
14245
14245
|
|
@@ -14291,7 +14291,7 @@ enifed("htmlbars-runtime/hooks", ["exports", "./render", "../morph-range/morph-l
|
|
14291
14291
|
var morphList, morphMap;
|
14292
14292
|
|
14293
14293
|
if (!morph.morphList) {
|
14294
|
-
morph.morphList = new _morphRangeMorphList
|
14294
|
+
morph.morphList = new _morphRangeMorphList["default"]();
|
14295
14295
|
morph.morphMap = {};
|
14296
14296
|
morph.setMorphList(morph.morphList);
|
14297
14297
|
}
|
@@ -14363,7 +14363,7 @@ enifed("htmlbars-runtime/hooks", ["exports", "./render", "../morph-range/morph-l
|
|
14363
14363
|
morph.lastYielded = { self: self, template: template, shadowTemplate: shadowTemplate };
|
14364
14364
|
|
14365
14365
|
// Render the shadow template with the block available
|
14366
|
-
(0, _render
|
14366
|
+
(0, _render["default"])(shadowTemplate.raw, env, shadowScope, { renderNode: morph, self: self, blockArguments: blockArguments });
|
14367
14367
|
};
|
14368
14368
|
|
14369
14369
|
function blockToYield(env, blockArguments, self, renderNode, shadowParent, visitor) {
|
@@ -14378,7 +14378,7 @@ enifed("htmlbars-runtime/hooks", ["exports", "./render", "../morph-range/morph-l
|
|
14378
14378
|
scope = env.hooks.createChildScope(parentScope);
|
14379
14379
|
}
|
14380
14380
|
|
14381
|
-
(0, _render
|
14381
|
+
(0, _render["default"])(template, env, scope, { renderNode: renderNode, self: self, blockArguments: blockArguments });
|
14382
14382
|
}
|
14383
14383
|
}
|
14384
14384
|
}
|
@@ -14663,7 +14663,7 @@ enifed("htmlbars-runtime/hooks", ["exports", "./render", "../morph-range/morph-l
|
|
14663
14663
|
if (redirect) {
|
14664
14664
|
switch (redirect) {
|
14665
14665
|
case "component":
|
14666
|
-
env.hooks.component(morph, env, scope, path, params, hash, { default: template, inverse: inverse }, visitor);break;
|
14666
|
+
env.hooks.component(morph, env, scope, path, params, hash, { "default": template, inverse: inverse }, visitor);break;
|
14667
14667
|
case "inline":
|
14668
14668
|
env.hooks.inline(morph, env, scope, path, params, hash, visitor);break;
|
14669
14669
|
case "block":
|
@@ -15124,10 +15124,10 @@ enifed("htmlbars-runtime/hooks", ["exports", "./render", "../morph-range/morph-l
|
|
15124
15124
|
|
15125
15125
|
function component(morph, env, scope, tagName, params, attrs, templates, visitor) {
|
15126
15126
|
if (env.hooks.hasHelper(env, scope, tagName)) {
|
15127
|
-
return env.hooks.block(morph, env, scope, tagName, params, attrs, templates
|
15127
|
+
return env.hooks.block(morph, env, scope, tagName, params, attrs, templates["default"], templates.inverse, visitor);
|
15128
15128
|
}
|
15129
15129
|
|
15130
|
-
componentFallback(morph, env, scope, tagName, attrs, templates
|
15130
|
+
componentFallback(morph, env, scope, tagName, attrs, templates["default"]);
|
15131
15131
|
}
|
15132
15132
|
|
15133
15133
|
function concat(env, params) {
|
@@ -15143,7 +15143,7 @@ enifed("htmlbars-runtime/hooks", ["exports", "./render", "../morph-range/morph-l
|
|
15143
15143
|
for (var name in attrs) {
|
15144
15144
|
element.setAttribute(name, env.hooks.getValue(attrs[name]));
|
15145
15145
|
}
|
15146
|
-
var fragment = (0, _render
|
15146
|
+
var fragment = (0, _render["default"])(template, env, scope, {}).fragment;
|
15147
15147
|
element.appendChild(fragment);
|
15148
15148
|
morph.setNode(element);
|
15149
15149
|
}
|
@@ -15162,7 +15162,7 @@ enifed("htmlbars-runtime/hooks", ["exports", "./render", "../morph-range/morph-l
|
|
15162
15162
|
env.hooks.bindScope(env, scope);
|
15163
15163
|
}
|
15164
15164
|
|
15165
|
-
exports
|
15165
|
+
exports["default"] = {
|
15166
15166
|
// fundamental hooks that you will likely want to override
|
15167
15167
|
bindLocal: bindLocal,
|
15168
15168
|
bindSelf: bindSelf,
|
@@ -15254,14 +15254,14 @@ enifed("htmlbars-runtime/morph", ["exports", "../morph-range", "../htmlbars-util
|
|
15254
15254
|
return morph;
|
15255
15255
|
};
|
15256
15256
|
|
15257
|
-
var prototype = HTMLBarsMorph.prototype = (0, _htmlbarsUtilObjectUtils.createObject)(_morphRange
|
15257
|
+
var prototype = HTMLBarsMorph.prototype = (0, _htmlbarsUtilObjectUtils.createObject)(_morphRange["default"].prototype);
|
15258
15258
|
prototype.constructor = HTMLBarsMorph;
|
15259
|
-
prototype.super$constructor = _morphRange
|
15259
|
+
prototype.super$constructor = _morphRange["default"];
|
15260
15260
|
|
15261
|
-
exports
|
15261
|
+
exports["default"] = HTMLBarsMorph;
|
15262
15262
|
});
|
15263
15263
|
enifed("htmlbars-runtime/render", ["exports", "../htmlbars-util/array-utils", "../htmlbars-util/morph-utils", "./expression-visitor", "./morph", "../htmlbars-util/template-utils", "../htmlbars-util/void-tag-names"], function (exports, _htmlbarsUtilArrayUtils, _htmlbarsUtilMorphUtils, _expressionVisitor, _morph, _htmlbarsUtilTemplateUtils, _htmlbarsUtilVoidTagNames) {
|
15264
|
-
exports
|
15264
|
+
exports["default"] = render;
|
15265
15265
|
exports.manualElement = manualElement;
|
15266
15266
|
exports.attachAttributes = attachAttributes;
|
15267
15267
|
exports.createChildMorph = createChildMorph;
|
@@ -15375,7 +15375,7 @@ enifed("htmlbars-runtime/render", ["exports", "../htmlbars-util/array-utils", ".
|
|
15375
15375
|
dom.setAttribute(el1, key, attributes[key]);
|
15376
15376
|
}
|
15377
15377
|
|
15378
|
-
if (!_htmlbarsUtilVoidTagNames
|
15378
|
+
if (!_htmlbarsUtilVoidTagNames["default"][tagName]) {
|
15379
15379
|
var el2 = dom.createComment("");
|
15380
15380
|
dom.appendChild(el1, el2);
|
15381
15381
|
}
|
@@ -15479,7 +15479,7 @@ enifed("htmlbars-runtime/render", ["exports", "../htmlbars-util/array-utils", ".
|
|
15479
15479
|
};
|
15480
15480
|
|
15481
15481
|
RenderResult.prototype.revalidate = function (env, self, blockArguments, scope) {
|
15482
|
-
this.revalidateWith(env, scope, self, blockArguments, _expressionVisitor
|
15482
|
+
this.revalidateWith(env, scope, self, blockArguments, _expressionVisitor["default"]);
|
15483
15483
|
};
|
15484
15484
|
|
15485
15485
|
RenderResult.prototype.rerender = function (env, self, blockArguments, scope) {
|
@@ -15586,7 +15586,7 @@ enifed("htmlbars-runtime/render", ["exports", "../htmlbars-util/array-utils", ".
|
|
15586
15586
|
}
|
15587
15587
|
|
15588
15588
|
function createChildMorph(dom, parentMorph, contextualElement) {
|
15589
|
-
var morph = _morph
|
15589
|
+
var morph = _morph["default"].empty(dom, contextualElement || parentMorph.contextualElement);
|
15590
15590
|
initializeNode(morph, parentMorph.ownerNode);
|
15591
15591
|
return morph;
|
15592
15592
|
}
|
@@ -15614,9 +15614,9 @@ enifed("htmlbars-runtime/render", ["exports", "../htmlbars-util/array-utils", ".
|
|
15614
15614
|
}
|
15615
15615
|
});
|
15616
15616
|
enifed("htmlbars-syntax", ["exports", "./htmlbars-syntax/walker", "./htmlbars-syntax/builders", "./htmlbars-syntax/parser"], function (exports, _htmlbarsSyntaxWalker, _htmlbarsSyntaxBuilders, _htmlbarsSyntaxParser) {
|
15617
|
-
exports.Walker = _htmlbarsSyntaxWalker
|
15618
|
-
exports.builders = _htmlbarsSyntaxBuilders
|
15619
|
-
exports.parse = _htmlbarsSyntaxParser
|
15617
|
+
exports.Walker = _htmlbarsSyntaxWalker["default"];
|
15618
|
+
exports.builders = _htmlbarsSyntaxBuilders["default"];
|
15619
|
+
exports.parse = _htmlbarsSyntaxParser["default"];
|
15620
15620
|
});
|
15621
15621
|
enifed("htmlbars-syntax/builders", ["exports"], function (exports) {
|
15622
15622
|
exports.buildMustache = buildMustache;
|
@@ -15839,7 +15839,7 @@ enifed("htmlbars-syntax/builders", ["exports"], function (exports) {
|
|
15839
15839
|
}
|
15840
15840
|
}
|
15841
15841
|
|
15842
|
-
exports
|
15842
|
+
exports["default"] = {
|
15843
15843
|
mustache: buildMustache,
|
15844
15844
|
block: buildBlock,
|
15845
15845
|
partial: buildPartial,
|
@@ -15852,10 +15852,10 @@ enifed("htmlbars-syntax/builders", ["exports"], function (exports) {
|
|
15852
15852
|
sexpr: buildSexpr,
|
15853
15853
|
path: buildPath,
|
15854
15854
|
string: buildString,
|
15855
|
-
boolean: buildBoolean,
|
15855
|
+
"boolean": buildBoolean,
|
15856
15856
|
number: buildNumber,
|
15857
15857
|
undefined: buildUndefined,
|
15858
|
-
null: buildNull,
|
15858
|
+
"null": buildNull,
|
15859
15859
|
concat: buildConcat,
|
15860
15860
|
hash: buildHash,
|
15861
15861
|
pair: buildPair,
|
@@ -16012,14 +16012,14 @@ enifed('htmlbars-syntax/handlebars/compiler/ast', ['exports'], function (exports
|
|
16012
16012
|
|
16013
16013
|
// Must be exported as an object rather than the root of the module as the jison lexer
|
16014
16014
|
// must modify the object to operate properly.
|
16015
|
-
exports
|
16015
|
+
exports["default"] = AST;
|
16016
16016
|
});
|
16017
16017
|
enifed('htmlbars-syntax/handlebars/compiler/base', ['exports', './parser', './ast', './whitespace-control', './helpers', '../utils'], function (exports, _parser, _ast, _whitespaceControl, _helpers, _utils) {
|
16018
16018
|
exports.parse = parse;
|
16019
|
-
exports.parser = _parser
|
16019
|
+
exports.parser = _parser["default"];
|
16020
16020
|
|
16021
16021
|
var yy = {};
|
16022
|
-
(0, _utils.extend)(yy, _helpers, _ast
|
16022
|
+
(0, _utils.extend)(yy, _helpers, _ast["default"]);
|
16023
16023
|
|
16024
16024
|
function parse(input, options) {
|
16025
16025
|
// Just return if an already-compiled AST was passed in.
|
@@ -16027,15 +16027,15 @@ enifed('htmlbars-syntax/handlebars/compiler/base', ['exports', './parser', './as
|
|
16027
16027
|
return input;
|
16028
16028
|
}
|
16029
16029
|
|
16030
|
-
_parser
|
16030
|
+
_parser["default"].yy = yy;
|
16031
16031
|
|
16032
16032
|
// Altering the shared object here, but this is ok as parser is a sync operation
|
16033
16033
|
yy.locInfo = function (locInfo) {
|
16034
16034
|
return new yy.SourceLocation(options && options.srcName, locInfo);
|
16035
16035
|
};
|
16036
16036
|
|
16037
|
-
var strip = new _whitespaceControl
|
16038
|
-
return strip.accept(_parser
|
16037
|
+
var strip = new _whitespaceControl["default"]();
|
16038
|
+
return strip.accept(_parser["default"].parse(input));
|
16039
16039
|
}
|
16040
16040
|
});
|
16041
16041
|
enifed('htmlbars-syntax/handlebars/compiler/helpers', ['exports', '../exception'], function (exports, _exception) {
|
@@ -16097,7 +16097,7 @@ enifed('htmlbars-syntax/handlebars/compiler/helpers', ['exports', '../exception'
|
|
16097
16097
|
|
16098
16098
|
if (!isLiteral && (part === '..' || part === '.' || part === 'this')) {
|
16099
16099
|
if (dig.length > 0) {
|
16100
|
-
throw new _exception
|
16100
|
+
throw new _exception["default"]('Invalid path: ' + original, { loc: locInfo });
|
16101
16101
|
} else if (part === '..') {
|
16102
16102
|
depth++;
|
16103
16103
|
depthString += '../';
|
@@ -16122,7 +16122,7 @@ enifed('htmlbars-syntax/handlebars/compiler/helpers', ['exports', '../exception'
|
|
16122
16122
|
if (openRawBlock.path.original !== close) {
|
16123
16123
|
var errorNode = { loc: openRawBlock.path.loc };
|
16124
16124
|
|
16125
|
-
throw new _exception
|
16125
|
+
throw new _exception["default"](openRawBlock.path.original + ' doesn\'t match ' + close, errorNode);
|
16126
16126
|
}
|
16127
16127
|
|
16128
16128
|
locInfo = this.locInfo(locInfo);
|
@@ -16136,7 +16136,7 @@ enifed('htmlbars-syntax/handlebars/compiler/helpers', ['exports', '../exception'
|
|
16136
16136
|
if (close && close.path && openBlock.path.original !== close.path.original) {
|
16137
16137
|
var errorNode = { loc: openBlock.path.loc };
|
16138
16138
|
|
16139
|
-
throw new _exception
|
16139
|
+
throw new _exception["default"](openBlock.path.original + ' doesn\'t match ' + close.path.original, errorNode);
|
16140
16140
|
}
|
16141
16141
|
|
16142
16142
|
program.blockParams = openBlock.blockParams;
|
@@ -16832,7 +16832,7 @@ enifed("htmlbars-syntax/handlebars/compiler/parser", ["exports"], function (expo
|
|
16832
16832
|
this.yy = {};
|
16833
16833
|
}Parser.prototype = parser;parser.Parser = Parser;
|
16834
16834
|
return new Parser();
|
16835
|
-
})();exports
|
16835
|
+
})();exports["default"] = handlebars;
|
16836
16836
|
});
|
16837
16837
|
enifed('htmlbars-syntax/handlebars/compiler/visitor', ['exports', '../exception', './ast'], function (exports, _exception, _ast) {
|
16838
16838
|
|
@@ -16849,8 +16849,8 @@ enifed('htmlbars-syntax/handlebars/compiler/visitor', ['exports', '../exception'
|
|
16849
16849
|
var value = this.accept(node[name]);
|
16850
16850
|
if (this.mutating) {
|
16851
16851
|
// Hacky sanity check:
|
16852
|
-
if (value && (!value.type || !_ast
|
16853
|
-
throw new _exception
|
16852
|
+
if (value && (!value.type || !_ast["default"][value.type])) {
|
16853
|
+
throw new _exception["default"]('Unexpected node type "' + value.type + '" found when accepting ' + name + ' on ' + node.type);
|
16854
16854
|
}
|
16855
16855
|
node[name] = value;
|
16856
16856
|
}
|
@@ -16862,7 +16862,7 @@ enifed('htmlbars-syntax/handlebars/compiler/visitor', ['exports', '../exception'
|
|
16862
16862
|
this.acceptKey(node, name);
|
16863
16863
|
|
16864
16864
|
if (!node[name]) {
|
16865
|
-
throw new _exception
|
16865
|
+
throw new _exception["default"](node.type + ' requires ' + name);
|
16866
16866
|
}
|
16867
16867
|
},
|
16868
16868
|
|
@@ -16951,13 +16951,13 @@ enifed('htmlbars-syntax/handlebars/compiler/visitor', ['exports', '../exception'
|
|
16951
16951
|
}
|
16952
16952
|
};
|
16953
16953
|
|
16954
|
-
exports
|
16954
|
+
exports["default"] = Visitor;
|
16955
16955
|
});
|
16956
16956
|
/* content */ /* comment */ /* path */ /* string */ /* number */ /* bool */ /* literal */ /* literal */
|
16957
16957
|
enifed('htmlbars-syntax/handlebars/compiler/whitespace-control', ['exports', './visitor'], function (exports, _visitor) {
|
16958
16958
|
|
16959
16959
|
function WhitespaceControl() {}
|
16960
|
-
WhitespaceControl.prototype = new _visitor
|
16960
|
+
WhitespaceControl.prototype = new _visitor["default"]();
|
16961
16961
|
|
16962
16962
|
WhitespaceControl.prototype.Program = function (program) {
|
16963
16963
|
var isRoot = !this.isRootSeen;
|
@@ -17156,7 +17156,7 @@ enifed('htmlbars-syntax/handlebars/compiler/whitespace-control', ['exports', './
|
|
17156
17156
|
return current.leftStripped;
|
17157
17157
|
}
|
17158
17158
|
|
17159
|
-
exports
|
17159
|
+
exports["default"] = WhitespaceControl;
|
17160
17160
|
});
|
17161
17161
|
enifed('htmlbars-syntax/handlebars/exception', ['exports'], function (exports) {
|
17162
17162
|
var errorProps = ['description', 'fileName', 'lineNumber', 'message', 'name', 'number', 'stack'];
|
@@ -17191,7 +17191,7 @@ enifed('htmlbars-syntax/handlebars/exception', ['exports'], function (exports) {
|
|
17191
17191
|
|
17192
17192
|
Exception.prototype = new Error();
|
17193
17193
|
|
17194
|
-
exports
|
17194
|
+
exports["default"] = Exception;
|
17195
17195
|
});
|
17196
17196
|
enifed('htmlbars-syntax/handlebars/safe-string', ['exports'], function (exports) {
|
17197
17197
|
// Build out our basic SafeString type
|
@@ -17203,7 +17203,7 @@ enifed('htmlbars-syntax/handlebars/safe-string', ['exports'], function (exports)
|
|
17203
17203
|
return '' + this.string;
|
17204
17204
|
};
|
17205
17205
|
|
17206
|
-
exports
|
17206
|
+
exports["default"] = SafeString;
|
17207
17207
|
});
|
17208
17208
|
enifed('htmlbars-syntax/handlebars/utils', ['exports'], function (exports) {
|
17209
17209
|
exports.extend = extend;
|
@@ -17379,7 +17379,7 @@ enifed("htmlbars-syntax/node-handlers", ["exports", "./builders", "../htmlbars-u
|
|
17379
17379
|
var escaped = rawMustache.escaped;
|
17380
17380
|
var loc = rawMustache.loc;
|
17381
17381
|
|
17382
|
-
var mustache = _builders
|
17382
|
+
var mustache = _builders["default"].mustache(path, params, hash, !escaped, loc);
|
17383
17383
|
|
17384
17384
|
if (this.tokenizer.state === "comment") {
|
17385
17385
|
this.tokenizer.addChar("{{" + this.sourceForMustache(mustache) + "}}");
|
@@ -17485,7 +17485,7 @@ enifed("htmlbars-syntax/node-handlers", ["exports", "./builders", "../htmlbars-u
|
|
17485
17485
|
return node;
|
17486
17486
|
}
|
17487
17487
|
|
17488
|
-
exports
|
17488
|
+
exports["default"] = nodeHandlers;
|
17489
17489
|
});
|
17490
17490
|
enifed("htmlbars-syntax/parser", ["exports", "./handlebars/compiler/base", "./tokenizer", "../simple-html-tokenizer/entity-parser", "../simple-html-tokenizer/char-refs/full", "./node-handlers", "./token-handlers", "../htmlbars-syntax"], function (exports, _handlebarsCompilerBase, _tokenizer, _simpleHtmlTokenizerEntityParser, _simpleHtmlTokenizerCharRefsFull, _nodeHandlers, _tokenHandlers, _htmlbarsSyntax) {
|
17491
17491
|
exports.preprocess = preprocess;
|
@@ -17521,14 +17521,14 @@ enifed("htmlbars-syntax/parser", ["exports", "./handlebars/compiler/base", "./to
|
|
17521
17521
|
return combined;
|
17522
17522
|
}
|
17523
17523
|
|
17524
|
-
exports
|
17524
|
+
exports["default"] = preprocess;
|
17525
17525
|
|
17526
17526
|
function HTMLProcessor(source, options) {
|
17527
17527
|
this.options = options || {};
|
17528
17528
|
this.elementStack = [];
|
17529
|
-
this.tokenizer = new _tokenizer.Tokenizer(new _simpleHtmlTokenizerEntityParser
|
17530
|
-
this.nodeHandlers = _nodeHandlers
|
17531
|
-
this.tokenHandlers = _tokenHandlers
|
17529
|
+
this.tokenizer = new _tokenizer.Tokenizer(new _simpleHtmlTokenizerEntityParser["default"](_simpleHtmlTokenizerCharRefsFull["default"]));
|
17530
|
+
this.nodeHandlers = _nodeHandlers["default"];
|
17531
|
+
this.tokenHandlers = _tokenHandlers["default"];
|
17532
17532
|
|
17533
17533
|
if (typeof source === "string") {
|
17534
17534
|
this.source = splitLines(source);
|
@@ -17608,7 +17608,7 @@ enifed("htmlbars-syntax/token-handlers", ["exports", "./builders", "./utils", ".
|
|
17608
17608
|
};
|
17609
17609
|
|
17610
17610
|
this.elementStack.push(element);
|
17611
|
-
if (_htmlbarsUtilVoidTagNames
|
17611
|
+
if (_htmlbarsUtilVoidTagNames["default"].hasOwnProperty(tag.tagName) || tag.selfClosing) {
|
17612
17612
|
tokenHandlers.EndTag.call(this, tag, true);
|
17613
17613
|
}
|
17614
17614
|
},
|
@@ -17688,7 +17688,7 @@ enifed("htmlbars-syntax/token-handlers", ["exports", "./builders", "./utils", ".
|
|
17688
17688
|
function validateEndTag(tag, element, selfClosing) {
|
17689
17689
|
var error;
|
17690
17690
|
|
17691
|
-
if (_htmlbarsUtilVoidTagNames
|
17691
|
+
if (_htmlbarsUtilVoidTagNames["default"][tag.tagName] && !selfClosing) {
|
17692
17692
|
// EngTag is also called by StartTag for void and self-closing tags (i.e.
|
17693
17693
|
// <input> or <br />, so we need to check for that here. Otherwise, we would
|
17694
17694
|
// throw an error for those cases.
|
@@ -17708,7 +17708,7 @@ enifed("htmlbars-syntax/token-handlers", ["exports", "./builders", "./utils", ".
|
|
17708
17708
|
return "`" + tag.tagName + "` (on line " + tag.loc.end.line + ")";
|
17709
17709
|
}
|
17710
17710
|
|
17711
|
-
exports
|
17711
|
+
exports["default"] = tokenHandlers;
|
17712
17712
|
});
|
17713
17713
|
/*block*/
|
17714
17714
|
enifed("htmlbars-syntax/tokenizer", ["exports", "../simple-html-tokenizer", "./utils", "../htmlbars-util/array-utils", "./builders"], function (exports, _simpleHtmlTokenizer, _utils, _htmlbarsUtilArrayUtils, _builders) {
|
@@ -17717,7 +17717,7 @@ enifed("htmlbars-syntax/tokenizer", ["exports", "../simple-html-tokenizer", "./u
|
|
17717
17717
|
if (this.token.type === "EndTag") {
|
17718
17718
|
throw new Error("Invalid end tag: closing tag must not have attributes, in " + formatTokenInfo(this) + ".");
|
17719
17719
|
}
|
17720
|
-
this.currentAttribute = _builders
|
17720
|
+
this.currentAttribute = _builders["default"].attr(char.toLowerCase(), [], null);
|
17721
17721
|
this.token.attributes.push(this.currentAttribute);
|
17722
17722
|
this.state = "attributeName";
|
17723
17723
|
};
|
@@ -17750,7 +17750,7 @@ enifed("htmlbars-syntax/tokenizer", ["exports", "../simple-html-tokenizer", "./u
|
|
17750
17750
|
if (value.length > 0 && value[value.length - 1].type === "TextNode") {
|
17751
17751
|
value[value.length - 1].chars += char;
|
17752
17752
|
} else {
|
17753
|
-
value.push(_builders
|
17753
|
+
value.push(_builders["default"].text(char));
|
17754
17754
|
}
|
17755
17755
|
}
|
17756
17756
|
};
|
@@ -17773,7 +17773,7 @@ enifed("htmlbars-syntax/tokenizer", ["exports", "../simple-html-tokenizer", "./u
|
|
17773
17773
|
var hash = mustache.hash;
|
17774
17774
|
var loc = mustache.loc;
|
17775
17775
|
|
17776
|
-
var modifier = _builders
|
17776
|
+
var modifier = _builders["default"].elementModifier(path, params, hash, loc);
|
17777
17777
|
this.token.modifiers.push(modifier);
|
17778
17778
|
};
|
17779
17779
|
|
@@ -17782,20 +17782,20 @@ enifed("htmlbars-syntax/tokenizer", ["exports", "../simple-html-tokenizer", "./u
|
|
17782
17782
|
var length = parts.length;
|
17783
17783
|
|
17784
17784
|
if (length === 0) {
|
17785
|
-
return _builders
|
17785
|
+
return _builders["default"].text("");
|
17786
17786
|
} else if (length === 1 && parts[0].type === "TextNode") {
|
17787
17787
|
return parts[0];
|
17788
17788
|
} else if (!attr.quoted) {
|
17789
17789
|
return parts[0];
|
17790
17790
|
} else {
|
17791
|
-
return _builders
|
17791
|
+
return _builders["default"].concat((0, _htmlbarsUtilArrayUtils.map)(parts, prepareConcatPart));
|
17792
17792
|
}
|
17793
17793
|
}
|
17794
17794
|
|
17795
17795
|
function prepareConcatPart(node) {
|
17796
17796
|
switch (node.type) {
|
17797
17797
|
case "TextNode":
|
17798
|
-
return _builders
|
17798
|
+
return _builders["default"].string(node.chars);
|
17799
17799
|
case "MustacheStatement":
|
17800
17800
|
return (0, _utils.unwrapMustache)(node);
|
17801
17801
|
default:
|
@@ -17893,7 +17893,7 @@ enifed('htmlbars-syntax/walker', ['exports'], function (exports) {
|
|
17893
17893
|
this.stack = [];
|
17894
17894
|
}
|
17895
17895
|
|
17896
|
-
exports
|
17896
|
+
exports["default"] = Walker;
|
17897
17897
|
|
17898
17898
|
Walker.prototype.visit = function (node, callback) {
|
17899
17899
|
if (!node) {
|
@@ -18123,7 +18123,7 @@ enifed("htmlbars-test-helpers", ["exports", "../simple-html-tokenizer", "../html
|
|
18123
18123
|
}
|
18124
18124
|
});
|
18125
18125
|
enifed('htmlbars-util', ['exports', './htmlbars-util/safe-string', './htmlbars-util/handlebars/utils', './htmlbars-util/namespaces', './htmlbars-util/morph-utils'], function (exports, _htmlbarsUtilSafeString, _htmlbarsUtilHandlebarsUtils, _htmlbarsUtilNamespaces, _htmlbarsUtilMorphUtils) {
|
18126
|
-
exports.SafeString = _htmlbarsUtilSafeString
|
18126
|
+
exports.SafeString = _htmlbarsUtilSafeString["default"];
|
18127
18127
|
exports.escapeExpression = _htmlbarsUtilHandlebarsUtils.escapeExpression;
|
18128
18128
|
exports.getAttrNamespace = _htmlbarsUtilNamespaces.getAttrNamespace;
|
18129
18129
|
exports.validateChildMorphs = _htmlbarsUtilMorphUtils.validateChildMorphs;
|
@@ -18197,7 +18197,7 @@ enifed('htmlbars-util/handlebars/safe-string', ['exports'], function (exports) {
|
|
18197
18197
|
return '' + this.string;
|
18198
18198
|
};
|
18199
18199
|
|
18200
|
-
exports
|
18200
|
+
exports["default"] = SafeString;
|
18201
18201
|
});
|
18202
18202
|
enifed('htmlbars-util/handlebars/utils', ['exports'], function (exports) {
|
18203
18203
|
exports.extend = extend;
|
@@ -18540,7 +18540,7 @@ enifed("htmlbars-util/quoting", ["exports"], function (exports) {
|
|
18540
18540
|
}
|
18541
18541
|
});
|
18542
18542
|
enifed('htmlbars-util/safe-string', ['exports', './handlebars/safe-string'], function (exports, _handlebarsSafeString) {
|
18543
|
-
exports
|
18543
|
+
exports["default"] = _handlebarsSafeString["default"];
|
18544
18544
|
});
|
18545
18545
|
enifed("htmlbars-util/template-utils", ["exports", "../htmlbars-util/morph-utils"], function (exports, _htmlbarsUtilMorphUtils) {
|
18546
18546
|
exports.RenderState = RenderState;
|
@@ -18742,7 +18742,7 @@ enifed("htmlbars-util/void-tag-names", ["exports", "./array-utils"], function (e
|
|
18742
18742
|
voidMap[tagName] = true;
|
18743
18743
|
});
|
18744
18744
|
|
18745
|
-
exports
|
18745
|
+
exports["default"] = voidMap;
|
18746
18746
|
});
|
18747
18747
|
enifed('morph-range', ['exports', './morph-range/utils'], function (exports, _morphRangeUtils) {
|
18748
18748
|
|
@@ -19011,7 +19011,7 @@ enifed('morph-range', ['exports', './morph-range/utils'], function (exports, _mo
|
|
19011
19011
|
this.insertBeforeNode(parent, null);
|
19012
19012
|
};
|
19013
19013
|
|
19014
|
-
exports
|
19014
|
+
exports["default"] = Morph;
|
19015
19015
|
});
|
19016
19016
|
enifed('morph-range/morph-list', ['exports', './utils'], function (exports, _utils) {
|
19017
19017
|
|
@@ -19097,7 +19097,7 @@ enifed('morph-range/morph-list', ['exports', './utils'], function (exports, _uti
|
|
19097
19097
|
morph.destroy();
|
19098
19098
|
};
|
19099
19099
|
|
19100
|
-
exports
|
19100
|
+
exports["default"] = MorphList;
|
19101
19101
|
});
|
19102
19102
|
enifed('morph-range/morph-list.umd', ['exports', './morph-list'], function (exports, _morphList) {
|
19103
19103
|
|
@@ -19110,7 +19110,7 @@ enifed('morph-range/morph-list.umd', ['exports', './morph-list'], function (expo
|
|
19110
19110
|
root.MorphList = factory();
|
19111
19111
|
}
|
19112
19112
|
})(this, function () {
|
19113
|
-
return _morphList
|
19113
|
+
return _morphList["default"];
|
19114
19114
|
});
|
19115
19115
|
});
|
19116
19116
|
enifed("morph-range/utils", ["exports"], function (exports) {
|
@@ -19151,10 +19151,10 @@ enifed("morph-range/utils", ["exports"], function (exports) {
|
|
19151
19151
|
}
|
19152
19152
|
});
|
19153
19153
|
enifed('simple-html-tokenizer', ['exports', './simple-html-tokenizer/tokenizer', './simple-html-tokenizer/tokenize', './simple-html-tokenizer/generator', './simple-html-tokenizer/generate', './simple-html-tokenizer/tokens'], function (exports, _simpleHtmlTokenizerTokenizer, _simpleHtmlTokenizerTokenize, _simpleHtmlTokenizerGenerator, _simpleHtmlTokenizerGenerate, _simpleHtmlTokenizerTokens) {
|
19154
|
-
exports.Tokenizer = _simpleHtmlTokenizerTokenizer
|
19155
|
-
exports.tokenize = _simpleHtmlTokenizerTokenize
|
19156
|
-
exports.Generator = _simpleHtmlTokenizerGenerator
|
19157
|
-
exports.generate = _simpleHtmlTokenizerGenerate
|
19154
|
+
exports.Tokenizer = _simpleHtmlTokenizerTokenizer["default"];
|
19155
|
+
exports.tokenize = _simpleHtmlTokenizerTokenize["default"];
|
19156
|
+
exports.Generator = _simpleHtmlTokenizerGenerator["default"];
|
19157
|
+
exports.generate = _simpleHtmlTokenizerGenerate["default"];
|
19158
19158
|
exports.StartTag = _simpleHtmlTokenizerTokens.StartTag;
|
19159
19159
|
exports.EndTag = _simpleHtmlTokenizerTokens.EndTag;
|
19160
19160
|
exports.Chars = _simpleHtmlTokenizerTokens.Chars;
|
@@ -19162,7 +19162,7 @@ enifed('simple-html-tokenizer', ['exports', './simple-html-tokenizer/tokenizer',
|
|
19162
19162
|
});
|
19163
19163
|
/*jshint boss:true*/
|
19164
19164
|
enifed("simple-html-tokenizer/char-refs/full", ["exports"], function (exports) {
|
19165
|
-
exports
|
19165
|
+
exports["default"] = {
|
19166
19166
|
AElig: [198],
|
19167
19167
|
AMP: [38],
|
19168
19168
|
Aacute: [193],
|
@@ -21291,7 +21291,7 @@ enifed("simple-html-tokenizer/char-refs/full", ["exports"], function (exports) {
|
|
21291
21291
|
};
|
21292
21292
|
});
|
21293
21293
|
enifed("simple-html-tokenizer/char-refs/min", ["exports"], function (exports) {
|
21294
|
-
exports
|
21294
|
+
exports["default"] = {
|
21295
21295
|
quot: [34],
|
21296
21296
|
amp: [38],
|
21297
21297
|
apos: [39],
|
@@ -21305,22 +21305,22 @@ enifed('simple-html-tokenizer/entity-parser', ['exports'], function (exports) {
|
|
21305
21305
|
}
|
21306
21306
|
|
21307
21307
|
EntityParser.prototype.parse = function (tokenizer) {
|
21308
|
-
var input = tokenizer.input.slice(tokenizer
|
21308
|
+
var input = tokenizer.input.slice(tokenizer["char"]);
|
21309
21309
|
var matches = input.match(/^#(?:x|X)([0-9A-Fa-f]+);/);
|
21310
21310
|
if (matches) {
|
21311
|
-
tokenizer
|
21311
|
+
tokenizer["char"] += matches[0].length;
|
21312
21312
|
return String.fromCharCode(parseInt(matches[1], 16));
|
21313
21313
|
}
|
21314
21314
|
matches = input.match(/^#([0-9]+);/);
|
21315
21315
|
if (matches) {
|
21316
|
-
tokenizer
|
21316
|
+
tokenizer["char"] += matches[0].length;
|
21317
21317
|
return String.fromCharCode(parseInt(matches[1], 10));
|
21318
21318
|
}
|
21319
21319
|
matches = input.match(/^([A-Za-z]+);/);
|
21320
21320
|
if (matches) {
|
21321
21321
|
var codepoints = this.namedCodepoints[matches[1]];
|
21322
21322
|
if (codepoints) {
|
21323
|
-
tokenizer
|
21323
|
+
tokenizer["char"] += matches[0].length;
|
21324
21324
|
for (var i = 0, buffer = ''; i < codepoints.length; i++) {
|
21325
21325
|
buffer += String.fromCharCode(codepoints[i]);
|
21326
21326
|
}
|
@@ -21329,13 +21329,13 @@ enifed('simple-html-tokenizer/entity-parser', ['exports'], function (exports) {
|
|
21329
21329
|
}
|
21330
21330
|
};
|
21331
21331
|
|
21332
|
-
exports
|
21332
|
+
exports["default"] = EntityParser;
|
21333
21333
|
});
|
21334
21334
|
enifed('simple-html-tokenizer/generate', ['exports', './generator'], function (exports, _generator) {
|
21335
|
-
exports
|
21335
|
+
exports["default"] = generate;
|
21336
21336
|
|
21337
21337
|
function generate(tokens) {
|
21338
|
-
var generator = new _generator
|
21338
|
+
var generator = new _generator["default"]();
|
21339
21339
|
return generator.generate(tokens);
|
21340
21340
|
}
|
21341
21341
|
});
|
@@ -21352,7 +21352,7 @@ enifed("simple-html-tokenizer/generator", ["exports"], function (exports) {
|
|
21352
21352
|
"`": "`"
|
21353
21353
|
};
|
21354
21354
|
function escapeChar(char) {
|
21355
|
-
return map[char];
|
21355
|
+
return map["char"];
|
21356
21356
|
}
|
21357
21357
|
return function escape(string) {
|
21358
21358
|
if (!test.test(string)) {
|
@@ -21380,7 +21380,7 @@ enifed("simple-html-tokenizer/generator", ["exports"], function (exports) {
|
|
21380
21380
|
escape: function (text) {
|
21381
21381
|
var unsafeCharsMap = this.unsafeCharsMap;
|
21382
21382
|
return text.replace(this.unsafeChars, function (char) {
|
21383
|
-
return unsafeCharsMap[char] || char;
|
21383
|
+
return unsafeCharsMap["char"] || char;
|
21384
21384
|
});
|
21385
21385
|
},
|
21386
21386
|
|
@@ -21434,13 +21434,13 @@ enifed("simple-html-tokenizer/generator", ["exports"], function (exports) {
|
|
21434
21434
|
}
|
21435
21435
|
};
|
21436
21436
|
|
21437
|
-
exports
|
21437
|
+
exports["default"] = Generator;
|
21438
21438
|
});
|
21439
21439
|
enifed('simple-html-tokenizer/tokenize', ['exports', './tokenizer', './entity-parser', './char-refs/full'], function (exports, _tokenizer, _entityParser, _charRefsFull) {
|
21440
|
-
exports
|
21440
|
+
exports["default"] = tokenize;
|
21441
21441
|
|
21442
21442
|
function tokenize(input) {
|
21443
|
-
var tokenizer = new _tokenizer
|
21443
|
+
var tokenizer = new _tokenizer["default"](new _entityParser["default"](_charRefsFull["default"]));
|
21444
21444
|
return tokenizer.tokenize(input);
|
21445
21445
|
}
|
21446
21446
|
});
|
@@ -21453,7 +21453,7 @@ enifed('simple-html-tokenizer/tokenizer', ['exports', './utils', './tokens'], fu
|
|
21453
21453
|
this.state = null;
|
21454
21454
|
this.token = null;
|
21455
21455
|
|
21456
|
-
this
|
21456
|
+
this["char"] = -1;
|
21457
21457
|
this.line = -1;
|
21458
21458
|
this.column = -1;
|
21459
21459
|
|
@@ -21469,7 +21469,7 @@ enifed('simple-html-tokenizer/tokenizer', ['exports', './utils', './tokens'], fu
|
|
21469
21469
|
this.state = 'data';
|
21470
21470
|
this.token = null;
|
21471
21471
|
|
21472
|
-
this
|
21472
|
+
this["char"] = 0;
|
21473
21473
|
this.line = 1;
|
21474
21474
|
this.column = 0;
|
21475
21475
|
|
@@ -21513,8 +21513,8 @@ enifed('simple-html-tokenizer/tokenizer', ['exports', './utils', './tokens'], fu
|
|
21513
21513
|
},
|
21514
21514
|
|
21515
21515
|
lex: function () {
|
21516
|
-
while (this
|
21517
|
-
var char = this.input.charAt(this
|
21516
|
+
while (this["char"] < this.input.length) {
|
21517
|
+
var char = this.input.charAt(this["char"]++);
|
21518
21518
|
if (char) {
|
21519
21519
|
if (char === '\n') {
|
21520
21520
|
this.line++;
|
@@ -21674,8 +21674,8 @@ enifed('simple-html-tokenizer/tokenizer', ['exports', './utils', './tokens'], fu
|
|
21674
21674
|
},
|
21675
21675
|
|
21676
21676
|
markupDeclaration: function (char) {
|
21677
|
-
if (char === '-' && this.input.charAt(this
|
21678
|
-
this
|
21677
|
+
if (char === '-' && this.input.charAt(this["char"]) === '-') {
|
21678
|
+
this["char"]++;
|
21679
21679
|
this.createComment();
|
21680
21680
|
}
|
21681
21681
|
},
|
@@ -21842,7 +21842,7 @@ enifed('simple-html-tokenizer/tokenizer', ['exports', './utils', './tokens'], fu
|
|
21842
21842
|
} else if (char === '>') {
|
21843
21843
|
return this.emitToken();
|
21844
21844
|
} else {
|
21845
|
-
this
|
21845
|
+
this["char"]--;
|
21846
21846
|
this.state = 'beforeAttributeName';
|
21847
21847
|
}
|
21848
21848
|
},
|
@@ -21852,7 +21852,7 @@ enifed('simple-html-tokenizer/tokenizer', ['exports', './utils', './tokens'], fu
|
|
21852
21852
|
this.selfClosing();
|
21853
21853
|
return this.emitToken();
|
21854
21854
|
} else {
|
21855
|
-
this
|
21855
|
+
this["char"]--;
|
21856
21856
|
this.state = 'beforeAttributeName';
|
21857
21857
|
}
|
21858
21858
|
},
|
@@ -21865,7 +21865,7 @@ enifed('simple-html-tokenizer/tokenizer', ['exports', './utils', './tokens'], fu
|
|
21865
21865
|
}
|
21866
21866
|
};
|
21867
21867
|
|
21868
|
-
exports
|
21868
|
+
exports["default"] = Tokenizer;
|
21869
21869
|
});
|
21870
21870
|
enifed('simple-html-tokenizer/tokens', ['exports'], function (exports) {
|
21871
21871
|
exports.StartTag = StartTag;
|