esperanto-source 0.7.0.1 → 0.7.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 74793fe87882c4316ec0e42c0303dbfd38b0547c
4
- data.tar.gz: ec991184cfdc52b1c697c330d7fe7c94431384da
3
+ metadata.gz: 228bc5dc87aad1a23ac0312307baadaa4fa991b3
4
+ data.tar.gz: c6192b3d6521b51fef6654c76344071e7c5cb735
5
5
  SHA512:
6
- metadata.gz: 4997f99064e6c91a0f3798c6309c5f38028a92c8fc08114970e0ee99c3b86c0ddf74b87a854f0ac738fdabfaecf312acd52b54c1d552e49c5fa6209e9d13f338
7
- data.tar.gz: 3c63d37f7b49fbe1d058a3a65828203799800b3999ec1f43972fe162b3939d5d3b9420f2cfe7a6bb141c662818e958b543681162fd2c77aedb54e095a59a34fb
6
+ metadata.gz: 49a454027a6197a1b1b24e3eea12f8e8b19f671f4c9b0ca7d04884c5ecacd796ff86d287feeae964e9a3ee44cffea411a6d283eb0c7486a9fb18326edc088172
7
+ data.tar.gz: 04393440afc59b3fa5a181e4e832c1e8c82616a618e38962613f0e1a071a5a3c1de3ce073fb015b97e46d04dc14eb0256bf8c1bcb5845539a3a5ecb604af33b5
@@ -1,5 +1,5 @@
1
1
  module Esperanto
2
2
  module Source
3
- VERSION = '0.7.0.1'
3
+ VERSION = '0.7.1'
4
4
  end
5
5
  end
@@ -1,5 +1,5 @@
1
1
  /*
2
- esperanto.js v0.7.0 - 2015-05-12
2
+ esperanto.js v0.7.1 - 2015-05-27
3
3
  http://esperantojs.org
4
4
 
5
5
  Released under the MIT License.
@@ -11,8 +11,6 @@
11
11
  factory((global.esperanto = {}), global.acorn)
12
12
  }(this, function (exports, acorn) { 'use strict';
13
13
 
14
- var utils_hasNamedImports = hasNamedImports;
15
-
16
14
  function hasNamedImports(mod) {
17
15
  var i = mod.imports.length;
18
16
 
@@ -23,8 +21,6 @@
23
21
  }
24
22
  }
25
23
 
26
- var utils_hasNamedExports = hasNamedExports;
27
-
28
24
  function hasNamedExports(mod) {
29
25
  var i = mod.exports.length;
30
26
 
@@ -69,8 +65,6 @@
69
65
  }
70
66
  };
71
67
 
72
- var src_SourceMap = SourceMap;
73
-
74
68
  function utils_getRelativePath__getRelativePath ( from, to ) {
75
69
  var fromParts, toParts, i;
76
70
 
@@ -147,7 +141,7 @@
147
141
  getSemis( this.outro )
148
142
  );
149
143
 
150
- return new src_SourceMap({
144
+ return new SourceMap({
151
145
  file: ( options.file ? options.file.split( /[\/\\]/ ).pop() : null ),
152
146
  sources: this.sources.map( function ( source ) {
153
147
  return options.file ? utils_getRelativePath__getRelativePath( options.file, source.filename ) : source.filename;
@@ -256,7 +250,7 @@
256
250
  }
257
251
  };
258
252
 
259
- var src_Bundle = Bundle;
253
+
260
254
 
261
255
  function stringify ( source ) {
262
256
  return source.content.toString();
@@ -558,7 +552,7 @@
558
552
  generateMap: function ( options ) {
559
553
  options = options || {};
560
554
 
561
- return new src_SourceMap({
555
+ return new SourceMap({
562
556
  file: ( options.file ? options.file.split( /[\/\\]/ ).pop() : null ),
563
557
  sources: [ options.source ? utils_getRelativePath__getRelativePath( options.file || '', options.source ) : null ],
564
558
  sourcesContent: options.includeContent ? [ this.original ] : [ null ],
@@ -881,7 +875,7 @@
881
875
  }
882
876
  };
883
877
 
884
- MagicString.Bundle = src_Bundle;
878
+ MagicString.Bundle = Bundle;
885
879
 
886
880
  function adjust ( mappings, start, end, d ) {
887
881
  var i = end;
@@ -932,10 +926,6 @@
932
926
  return result;
933
927
  }
934
928
 
935
- var magic_string = MagicString;
936
-
937
- var ast_walk = walk;
938
-
939
929
  var shouldSkip = undefined;
940
930
  var shouldAbort = undefined;
941
931
  function walk(ast, _ref) {
@@ -1025,7 +1015,6 @@
1025
1015
  }
1026
1016
  }
1027
1017
 
1028
- var annotate = annotateAst;
1029
1018
  /*
1030
1019
  This module traverse a module's AST, attaching scope information
1031
1020
  to nodes as it goes, which is later used to determine which
@@ -1071,7 +1060,7 @@
1071
1060
 
1072
1061
  var envDepth = 0;
1073
1062
 
1074
- ast_walk(ast, {
1063
+ walk(ast, {
1075
1064
  enter: function (node) {
1076
1065
  if (node.type === 'ImportDeclaration' || node.type === 'ExportSpecifier') {
1077
1066
  node._skip = true;
@@ -1220,7 +1209,7 @@
1220
1209
  * @param {string} source - the module's original source code
1221
1210
  * @returns {object} - { imports, exports, defaultExport }
1222
1211
  */
1223
- var ast_findImportsAndExports = findImportsAndExports;
1212
+
1224
1213
 
1225
1214
  function findImportsAndExports(ast, source) {
1226
1215
  var imports = [];
@@ -1437,9 +1426,7 @@
1437
1426
  }
1438
1427
 
1439
1428
  var hasOwnProp = Object.prototype.hasOwnProperty;
1440
- var utils_hasOwnProp = hasOwnProp;
1441
1429
 
1442
- var ast_getUnscopedNames = getUnscopedNames;
1443
1430
  function getUnscopedNames(mod) {
1444
1431
  var unscoped = [],
1445
1432
  importedNames,
@@ -1454,10 +1441,10 @@
1454
1441
  });
1455
1442
  });
1456
1443
  }
1457
- return utils_hasOwnProp.call(importedNames, name);
1444
+ return hasOwnProp.call(importedNames, name);
1458
1445
  }
1459
1446
 
1460
- ast_walk(mod.ast, {
1447
+ walk(mod.ast, {
1461
1448
  enter: function (node) {
1462
1449
  // we're only interested in references, not property names etc
1463
1450
  if (node._skip) return this.skip();
@@ -1485,7 +1472,6 @@
1485
1472
  return unscoped;
1486
1473
  }
1487
1474
 
1488
- var utils_disallowConflictingImports = disallowConflictingImports;
1489
1475
  function disallowConflictingImports(imports) {
1490
1476
  var usedNames = {};
1491
1477
 
@@ -1504,7 +1490,7 @@
1504
1490
  }
1505
1491
 
1506
1492
  function checkName(name) {
1507
- if (utils_hasOwnProp.call(usedNames, name)) {
1493
+ if (hasOwnProp.call(usedNames, name)) {
1508
1494
  throw new SyntaxError('Duplicated import (\'' + name + '\')');
1509
1495
  }
1510
1496
 
@@ -1517,7 +1503,7 @@
1517
1503
  * @param {string} id - a module ID, or part thereof
1518
1504
  * @returns {string}
1519
1505
  */
1520
- var utils_sanitize = sanitize;
1506
+
1521
1507
 
1522
1508
  var RESERVED = 'break case class catch const continue debugger default delete do else export extends finally for function if import in instanceof let new return super switch this throw try typeof var void while with yield'.split(' ');
1523
1509
  var INVALID_CHAR = /[^a-zA-Z0-9_$]/g;
@@ -1537,8 +1523,6 @@
1537
1523
  return path.split(pathSplitRE);
1538
1524
  }
1539
1525
 
1540
- var getModule = getStandaloneModule;
1541
-
1542
1526
  var SOURCEMAPPINGURL_REGEX = /^# sourceMappingURL=/;
1543
1527
  function getStandaloneModule(options) {
1544
1528
  var code = undefined,
@@ -1554,7 +1538,7 @@
1554
1538
  var toRemove = [];
1555
1539
 
1556
1540
  var mod = {
1557
- body: new magic_string(code),
1541
+ body: new MagicString(code),
1558
1542
  ast: ast || acorn.parse(code, {
1559
1543
  ecmaVersion: 6,
1560
1544
  sourceType: 'module',
@@ -1573,13 +1557,13 @@
1573
1557
  return mod.body.remove(start, end);
1574
1558
  });
1575
1559
 
1576
- var _findImportsAndExports = ast_findImportsAndExports(mod.ast, code);
1560
+ var _findImportsAndExports = findImportsAndExports(mod.ast, code);
1577
1561
 
1578
1562
  var imports = _findImportsAndExports.imports;
1579
1563
  var exports = _findImportsAndExports.exports;
1580
1564
  var defaultExport = _findImportsAndExports.defaultExport;
1581
1565
 
1582
- utils_disallowConflictingImports(imports);
1566
+ disallowConflictingImports(imports);
1583
1567
 
1584
1568
  mod.imports = imports;
1585
1569
  mod.exports = exports;
@@ -1588,12 +1572,12 @@
1588
1572
  var conflicts = {};
1589
1573
 
1590
1574
  if (options.strict) {
1591
- annotate(mod.ast, {
1575
+ annotateAst(mod.ast, {
1592
1576
  trackAssignments: null
1593
1577
  });
1594
1578
 
1595
1579
  // TODO there's probably an easier way to get this array
1596
- Object.keys(mod.ast._declared).concat(ast_getUnscopedNames(mod)).forEach(function (n) {
1580
+ Object.keys(mod.ast._declared).concat(getUnscopedNames(mod)).forEach(function (n) {
1597
1581
  conflicts[n] = true;
1598
1582
  });
1599
1583
  }
@@ -1614,16 +1598,16 @@
1614
1598
  moduleId = x.path;
1615
1599
 
1616
1600
  // use existing value
1617
- if (utils_hasOwnProp.call(nameById, moduleId)) {
1601
+ if (hasOwnProp.call(nameById, moduleId)) {
1618
1602
  x.name = nameById[moduleId];
1619
1603
  return;
1620
1604
  }
1621
1605
 
1622
1606
  // if user supplied a function, defer to it
1623
1607
  if (userFn && (name = userFn(moduleId))) {
1624
- name = utils_sanitize(name);
1608
+ name = sanitize(name);
1625
1609
 
1626
- if (utils_hasOwnProp.call(usedNames, name)) {
1610
+ if (hasOwnProp.call(usedNames, name)) {
1627
1611
  // TODO write a test for this
1628
1612
  throw new Error('Naming collision: module ' + moduleId + ' cannot be called ' + name);
1629
1613
  }
@@ -1636,9 +1620,9 @@
1636
1620
  do {
1637
1621
  i = parts.length;
1638
1622
  while (i-- > 0) {
1639
- candidate = prefix + utils_sanitize(parts.slice(i).join('__'));
1623
+ candidate = prefix + sanitize(parts.slice(i).join('__'));
1640
1624
 
1641
- if (!utils_hasOwnProp.call(usedNames, candidate)) {
1625
+ if (!hasOwnProp.call(usedNames, candidate)) {
1642
1626
  name = candidate;
1643
1627
  break;
1644
1628
  }
@@ -1657,20 +1641,18 @@
1657
1641
  // use inferred names for default imports, wherever they
1658
1642
  // don't clash with path-based names
1659
1643
  imports.forEach(function (x) {
1660
- if (x.as && !utils_hasOwnProp.call(usedNames, x.as)) {
1644
+ if (x.as && !hasOwnProp.call(usedNames, x.as)) {
1661
1645
  inferredNames[x.path] = x.as;
1662
1646
  }
1663
1647
  });
1664
1648
 
1665
1649
  imports.forEach(function (x) {
1666
- if (utils_hasOwnProp.call(inferredNames, x.path)) {
1650
+ if (hasOwnProp.call(inferredNames, x.path)) {
1667
1651
  x.name = inferredNames[x.path];
1668
1652
  }
1669
1653
  });
1670
1654
  }
1671
1655
 
1672
- var utils_transformExportDeclaration = transformExportDeclaration;
1673
-
1674
1656
  function transformExportDeclaration(declaration, body) {
1675
1657
  if (!declaration) {
1676
1658
  return;
@@ -1717,8 +1699,6 @@
1717
1699
  }
1718
1700
  }
1719
1701
 
1720
- var utils_packageResult = packageResult;
1721
-
1722
1702
  var ABSOLUTE_PATH = /^(?:[A-Z]:)?[\/\\]/i;
1723
1703
 
1724
1704
  var warned = {};
@@ -1755,7 +1735,7 @@
1755
1735
  map = body.generateMap({
1756
1736
  includeContent: true,
1757
1737
  file: sourceMapFile,
1758
- source: sourceMapFile && !isBundle ? utils_packageResult__getRelativePath(sourceMapFile, options.sourceMapSource) : null
1738
+ source: sourceMapFile && !isBundle ? packageResult__getRelativePath(sourceMapFile, options.sourceMapSource) : null
1759
1739
  });
1760
1740
 
1761
1741
  if (options.sourceMap === 'inline') {
@@ -1782,7 +1762,7 @@
1782
1762
  };
1783
1763
  }
1784
1764
 
1785
- function utils_packageResult__getRelativePath(from, to) {
1765
+ function packageResult__getRelativePath(from, to) {
1786
1766
  var fromParts, toParts, i;
1787
1767
 
1788
1768
  fromParts = splitPath(from);
@@ -1812,7 +1792,7 @@
1812
1792
 
1813
1793
  function markBundleSourcemapLocations(bundle) {
1814
1794
  bundle.modules.forEach(function (mod) {
1815
- ast_walk(mod.ast, {
1795
+ walk(mod.ast, {
1816
1796
  enter: function (node) {
1817
1797
  mod.body.addSourcemapLocation(node.start);
1818
1798
  }
@@ -1821,7 +1801,7 @@
1821
1801
  }
1822
1802
 
1823
1803
  function markModuleSourcemapLocations(mod) {
1824
- ast_walk(mod.ast, {
1804
+ walk(mod.ast, {
1825
1805
  enter: function (node) {
1826
1806
  mod.body.addSourcemapLocation(node.start);
1827
1807
  }
@@ -1834,7 +1814,7 @@
1834
1814
  * @param {string} importerPath - the (relative to `base`) path of the importing module
1835
1815
  * @returns {string}
1836
1816
  */
1837
- var utils_resolveId = resolveId;
1817
+
1838
1818
 
1839
1819
  function resolveId(importPath, importerPath) {
1840
1820
  var resolved, importerParts, importParts;
@@ -1871,7 +1851,6 @@
1871
1851
  };
1872
1852
  }
1873
1853
 
1874
- var amd_getImportSummary = getImportSummary;
1875
1854
  function getImportSummary(_ref) {
1876
1855
  var imports = _ref.imports;
1877
1856
  var absolutePaths = _ref.absolutePaths;
@@ -1906,23 +1885,20 @@
1906
1885
  });
1907
1886
 
1908
1887
  var ids = absolutePaths ? paths.map(function (relativePath) {
1909
- return utils_resolveId(relativePath, name);
1888
+ return resolveId(relativePath, name);
1910
1889
  }) : paths.slice();
1911
1890
 
1912
1891
  return { ids: ids, paths: paths, names: names };
1913
1892
  }
1914
1893
 
1915
- var amd_processName = processName;
1916
1894
  function processName(name) {
1917
1895
  return name ? quote(name) + ', ' : '';
1918
1896
  }
1919
1897
 
1920
- var amd_processIds = processIds;
1921
1898
  function processIds(ids) {
1922
1899
  return ids.length ? '[' + ids.map(quote).join(', ') + '], ' : '';
1923
1900
  }
1924
1901
 
1925
- var amd_amdIntro = amdIntro;
1926
1902
  function amdIntro(_ref) {
1927
1903
  var name = _ref.name;
1928
1904
  var imports = _ref.imports;
@@ -1931,7 +1907,7 @@
1931
1907
  var absolutePaths = _ref.absolutePaths;
1932
1908
  var useStrict = _ref.useStrict;
1933
1909
 
1934
- var _getImportSummary = amd_getImportSummary({ name: name, imports: imports, absolutePaths: absolutePaths });
1910
+ var _getImportSummary = getImportSummary({ name: name, imports: imports, absolutePaths: absolutePaths });
1935
1911
 
1936
1912
  var ids = _getImportSummary.ids;
1937
1913
  var names = _getImportSummary.names;
@@ -1941,7 +1917,7 @@
1941
1917
  names.unshift('exports');
1942
1918
  }
1943
1919
 
1944
- var intro = '\ndefine(' + amd_processName(name) + '' + amd_processIds(ids) + 'function (' + names.join(', ') + ') {\n\n';
1920
+ var intro = '\ndefine(' + processName(name) + '' + processIds(ids) + 'function (' + names.join(', ') + ') {\n\n';
1945
1921
 
1946
1922
  if (useStrict) {
1947
1923
  intro += '' + indentStr + '\'use strict\';\n\n';
@@ -1950,15 +1926,15 @@
1950
1926
  return intro;
1951
1927
  }
1952
1928
 
1953
- var defaultsMode_amd = defaultsMode_amd__amd;
1954
- function defaultsMode_amd__amd(mod, options) {
1929
+ var amd__default = amd__amd;
1930
+ function amd__amd(mod, options) {
1955
1931
  mod.imports.forEach(function (x) {
1956
1932
  mod.body.remove(x.start, x.next);
1957
1933
  });
1958
1934
 
1959
- utils_transformExportDeclaration(mod.exports[0], mod.body);
1935
+ transformExportDeclaration(mod.exports[0], mod.body);
1960
1936
 
1961
- var intro = amd_amdIntro({
1937
+ var intro = amdIntro({
1962
1938
  name: options.amdName,
1963
1939
  imports: mod.imports,
1964
1940
  absolutePaths: options.absolutePaths,
@@ -1968,15 +1944,15 @@
1968
1944
 
1969
1945
  mod.body.trim().indent().prepend(intro).trim().append('\n\n});');
1970
1946
 
1971
- return utils_packageResult(mod, mod.body, options, 'toAmd');
1947
+ return packageResult(mod, mod.body, options, 'toAmd');
1972
1948
  }
1973
1949
 
1974
- var defaultsMode_cjs = defaultsMode_cjs__cjs;
1975
- function defaultsMode_cjs__cjs(mod, options) {
1950
+ var cjs__default = cjs__cjs;
1951
+ function cjs__cjs(mod, options) {
1976
1952
  var seen = {};
1977
1953
 
1978
1954
  mod.imports.forEach(function (x) {
1979
- if (!utils_hasOwnProp.call(seen, x.path)) {
1955
+ if (!hasOwnProp.call(seen, x.path)) {
1980
1956
  var replacement = x.isEmpty ? '' + req(x.path) + ';' : 'var ' + x.as + ' = ' + req(x.path) + ';';
1981
1957
  mod.body.replace(x.start, x.end, replacement);
1982
1958
 
@@ -2006,10 +1982,9 @@
2006
1982
  mod.body.prepend('\'use strict\';\n\n').trimLines();
2007
1983
  }
2008
1984
 
2009
- return utils_packageResult(mod, mod.body, options, 'toCjs');
1985
+ return packageResult(mod, mod.body, options, 'toCjs');
2010
1986
  }
2011
1987
 
2012
- var umd_umdIntro = umdIntro;
2013
1988
  function umdIntro(_ref) {
2014
1989
  var amdName = _ref.amdName;
2015
1990
  var name = _ref.name;
@@ -2025,9 +2000,9 @@
2025
2000
  var intro = undefined;
2026
2001
 
2027
2002
  if (!hasExports && !imports.length) {
2028
- intro = '(function (factory) {\n\t\t\t\t!(typeof exports === \'object\' && typeof module !== \'undefined\') &&\n\t\t\t\ttypeof define === \'function\' && define.amd ? define(' + amd_processName(amdName) + 'factory) :\n\t\t\t\tfactory()\n\t\t\t}(function () {' + useStrictPragma + '\n\n\t\t\t';
2003
+ intro = '(function (factory) {\n\t\t\t\t!(typeof exports === \'object\' && typeof module !== \'undefined\') &&\n\t\t\t\ttypeof define === \'function\' && define.amd ? define(' + processName(amdName) + 'factory) :\n\t\t\t\tfactory()\n\t\t\t}(function () {' + useStrictPragma + '\n\n\t\t\t';
2029
2004
  } else {
2030
- var _getImportSummary = amd_getImportSummary({ imports: imports, name: amdName, absolutePaths: absolutePaths });
2005
+ var _getImportSummary = getImportSummary({ imports: imports, name: amdName, absolutePaths: absolutePaths });
2031
2006
 
2032
2007
  var ids = _getImportSummary.ids;
2033
2008
  var paths = _getImportSummary.paths;
@@ -2048,7 +2023,7 @@
2048
2023
  names.unshift('exports');
2049
2024
  }
2050
2025
 
2051
- amdExport = 'define(' + amd_processName(amdName) + '' + amd_processIds(ids) + 'factory)';
2026
+ amdExport = 'define(' + processName(amdName) + '' + processIds(ids) + 'factory)';
2052
2027
  defaultsBlock = '';
2053
2028
  if (externalDefaults && externalDefaults.length > 0) {
2054
2029
  defaultsBlock = externalDefaults.map(function (x) {
@@ -2056,7 +2031,7 @@
2056
2031
  }).join('\n') + '\n\n';
2057
2032
  }
2058
2033
  } else {
2059
- amdExport = 'define(' + amd_processName(amdName) + '' + amd_processIds(ids) + 'factory)';
2034
+ amdExport = 'define(' + processName(amdName) + '' + processIds(ids) + 'factory)';
2060
2035
  cjsExport = (hasExports ? 'module.exports = ' : '') + ('factory(' + paths.map(req).join(', ') + ')');
2061
2036
  globalExport = (hasExports ? 'global.' + name + ' = ' : '') + ('factory(' + names.map(globalify).join(', ') + ')');
2062
2037
 
@@ -2086,26 +2061,23 @@
2086
2061
  EsperantoError.prototype.constructor = EsperantoError;
2087
2062
  EsperantoError.prototype.name = 'EsperantoError';
2088
2063
 
2089
- var utils_EsperantoError = EsperantoError;
2090
-
2091
- var umd_requireName = requireName;
2092
2064
  function requireName(options) {
2093
2065
  if (!options.name) {
2094
- throw new utils_EsperantoError('You must supply a `name` option for UMD modules', {
2066
+ throw new EsperantoError('You must supply a `name` option for UMD modules', {
2095
2067
  code: 'MISSING_NAME'
2096
2068
  });
2097
2069
  }
2098
2070
  }
2099
2071
 
2100
- var defaultsMode_umd = defaultsMode_umd__umd;
2101
- function defaultsMode_umd__umd(mod, options) {
2102
- umd_requireName(options);
2072
+ var umd__default = umd__umd;
2073
+ function umd__umd(mod, options) {
2074
+ requireName(options);
2103
2075
 
2104
2076
  mod.imports.forEach(function (x) {
2105
2077
  mod.body.remove(x.start, x.next);
2106
2078
  });
2107
2079
 
2108
- var intro = umd_umdIntro({
2080
+ var intro = umdIntro({
2109
2081
  hasExports: mod.exports.length > 0,
2110
2082
  imports: mod.imports,
2111
2083
  amdName: options.amdName,
@@ -2115,21 +2087,19 @@
2115
2087
  useStrict: options.useStrict !== false
2116
2088
  });
2117
2089
 
2118
- utils_transformExportDeclaration(mod.exports[0], mod.body);
2090
+ transformExportDeclaration(mod.exports[0], mod.body);
2119
2091
 
2120
2092
  mod.body.indent().prepend(intro).trimLines().append('\n\n}));');
2121
2093
 
2122
- return utils_packageResult(mod, mod.body, options, 'toUmd');
2094
+ return packageResult(mod, mod.body, options, 'toUmd');
2123
2095
  }
2124
2096
 
2125
2097
  var defaultsMode = {
2126
- amd: defaultsMode_amd,
2127
- cjs: defaultsMode_cjs,
2128
- umd: defaultsMode_umd
2098
+ amd: amd__default,
2099
+ cjs: cjs__default,
2100
+ umd: umd__default
2129
2101
  };
2130
2102
 
2131
- var utils_gatherImports = gatherImports;
2132
-
2133
2103
  function gatherImports(imports) {
2134
2104
  var chains = {};
2135
2105
  var identifierReplacements = {};
@@ -2154,8 +2124,6 @@
2154
2124
  return [chains, identifierReplacements];
2155
2125
  }
2156
2126
 
2157
- var utils_getExportNames = getExportNames;
2158
-
2159
2127
  function getExportNames(exports) {
2160
2128
  var result = {};
2161
2129
 
@@ -2183,7 +2151,7 @@
2183
2151
  * @param {array} imports - the array of imports
2184
2152
  * @returns {array} [ importedBindings, importedNamespaces ]
2185
2153
  */
2186
- var utils_getReadOnlyIdentifiers = getReadOnlyIdentifiers;
2154
+
2187
2155
 
2188
2156
  function getReadOnlyIdentifiers(imports) {
2189
2157
  var importedBindings = {},
@@ -2204,7 +2172,6 @@
2204
2172
  return [importedBindings, importedNamespaces];
2205
2173
  }
2206
2174
 
2207
- var ast_disallowIllegalReassignment = disallowIllegalReassignment;
2208
2175
  var bindingMessage = 'Cannot reassign imported binding ',
2209
2176
  namespaceMessage = 'Cannot reassign imported binding of namespace ';
2210
2177
  function disallowIllegalReassignment(node, importedBindings, importedNamespaces, scope) {
@@ -2230,15 +2197,14 @@
2230
2197
 
2231
2198
  var name = assignee.name;
2232
2199
 
2233
- if (utils_hasOwnProp.call(isNamespaceAssignment ? importedNamespaces : importedBindings, name) && !scope.contains(name)) {
2200
+ if (hasOwnProp.call(isNamespaceAssignment ? importedNamespaces : importedBindings, name) && !scope.contains(name)) {
2234
2201
  throw new Error((isNamespaceAssignment ? namespaceMessage : bindingMessage) + '`' + name + '`');
2235
2202
  }
2236
2203
  }
2237
2204
 
2238
- var ast_replaceIdentifiers = replaceIdentifiers;
2239
2205
  function replaceIdentifiers(body, node, identifierReplacements, scope) {
2240
2206
  var name = node.name;
2241
- var replacement = utils_hasOwnProp.call(identifierReplacements, name) && identifierReplacements[name];
2207
+ var replacement = hasOwnProp.call(identifierReplacements, name) && identifierReplacements[name];
2242
2208
 
2243
2209
  // TODO unchanged identifiers shouldn't have got this far -
2244
2210
  // remove the `replacement !== name` safeguard once that's the case
@@ -2248,7 +2214,6 @@
2248
2214
  }
2249
2215
  }
2250
2216
 
2251
- var ast_rewriteExportAssignments = rewriteExportAssignments;
2252
2217
  function rewriteExportAssignments(body, node, parent, exports, scope, capturedUpdates) {
2253
2218
  var assignee = undefined;
2254
2219
 
@@ -2270,7 +2235,7 @@
2270
2235
  return; // shadows an export
2271
2236
  }
2272
2237
 
2273
- if (exports && utils_hasOwnProp.call(exports, name)) {
2238
+ if (exports && hasOwnProp.call(exports, name)) {
2274
2239
  var exportAs = exports[name];
2275
2240
 
2276
2241
  if (!!capturedUpdates) {
@@ -2297,15 +2262,13 @@
2297
2262
  }
2298
2263
  }
2299
2264
 
2300
- var traverse = traverseAst;
2301
-
2302
2265
  function traverseAst(ast, body, identifierReplacements, importedBindings, importedNamespaces, exportNames) {
2303
2266
  var scope = ast._scope;
2304
2267
  var blockScope = ast._blockScope;
2305
2268
  var capturedUpdates = null;
2306
2269
  var previousCapturedUpdates = null;
2307
2270
 
2308
- ast_walk(ast, {
2271
+ walk(ast, {
2309
2272
  enter: function (node, parent) {
2310
2273
  // we're only interested in references, not property names etc
2311
2274
  if (node._skip) return this.skip();
@@ -2328,16 +2291,16 @@
2328
2291
  return;
2329
2292
  }
2330
2293
 
2331
- ast_disallowIllegalReassignment(node, importedBindings, importedNamespaces, scope);
2294
+ disallowIllegalReassignment(node, importedBindings, importedNamespaces, scope);
2332
2295
 
2333
2296
  // Rewrite assignments to exports inside functions, to keep bindings live.
2334
2297
  // This call may mutate `capturedUpdates`, which is used elsewhere
2335
2298
  if (scope !== ast._scope) {
2336
- ast_rewriteExportAssignments(body, node, parent, exportNames, scope, capturedUpdates);
2299
+ rewriteExportAssignments(body, node, parent, exportNames, scope, capturedUpdates);
2337
2300
  }
2338
2301
 
2339
2302
  if (node.type === 'Identifier' && parent.type !== 'FunctionExpression') {
2340
- ast_replaceIdentifiers(body, node, identifierReplacements, scope);
2303
+ replaceIdentifiers(body, node, identifierReplacements, scope);
2341
2304
  }
2342
2305
 
2343
2306
  // Replace top-level this with undefined ES6 8.1.1.5.4
@@ -2369,17 +2332,15 @@
2369
2332
  return ' exports.' + c.exportAs + ' = ' + c.name + ';';
2370
2333
  }
2371
2334
 
2372
- var utils_transformBody = transformBody;
2373
-
2374
2335
  function transformBody(mod, body, options) {
2375
- var _gatherImports = utils_gatherImports(mod.imports);
2336
+ var _gatherImports = gatherImports(mod.imports);
2376
2337
 
2377
2338
  var chains = _gatherImports[0];
2378
2339
  var identifierReplacements = _gatherImports[1];
2379
2340
 
2380
- var exportNames = utils_getExportNames(mod.exports);
2341
+ var exportNames = getExportNames(mod.exports);
2381
2342
 
2382
- var _getReadOnlyIdentifiers = utils_getReadOnlyIdentifiers(mod.imports);
2343
+ var _getReadOnlyIdentifiers = getReadOnlyIdentifiers(mod.imports);
2383
2344
 
2384
2345
  var importedBindings = _getReadOnlyIdentifiers[0];
2385
2346
  var importedNamespaces = _getReadOnlyIdentifiers[1];
@@ -2387,7 +2348,7 @@
2387
2348
  // ensure no conflict with `exports`
2388
2349
  identifierReplacements.exports = deconflict('exports', mod.ast._declared);
2389
2350
 
2390
- traverse(mod.ast, body, identifierReplacements, importedBindings, importedNamespaces, exportNames);
2351
+ traverseAst(mod.ast, body, identifierReplacements, importedBindings, importedNamespaces, exportNames);
2391
2352
 
2392
2353
  // Remove import statements from the body of the module
2393
2354
  mod.imports.forEach(function (x) {
@@ -2469,7 +2430,7 @@
2469
2430
  }
2470
2431
 
2471
2432
  function deconflict(name, declared) {
2472
- while (utils_hasOwnProp.call(declared, name)) {
2433
+ while (hasOwnProp.call(declared, name)) {
2473
2434
  name = '_' + name;
2474
2435
  }
2475
2436
 
@@ -2478,7 +2439,7 @@
2478
2439
 
2479
2440
  var strictMode_amd = strictMode_amd__amd;
2480
2441
  function strictMode_amd__amd(mod, options) {
2481
- var intro = amd_amdIntro({
2442
+ var intro = amdIntro({
2482
2443
  name: options.amdName,
2483
2444
  absolutePaths: options.absolutePaths,
2484
2445
  imports: mod.imports,
@@ -2487,13 +2448,13 @@
2487
2448
  useStrict: options.useStrict !== false
2488
2449
  });
2489
2450
 
2490
- utils_transformBody(mod, mod.body, {
2451
+ transformBody(mod, mod.body, {
2491
2452
  intro: intro,
2492
2453
  outro: '\n\n});',
2493
2454
  _evilES3SafeReExports: options._evilES3SafeReExports
2494
2455
  });
2495
2456
 
2496
- return utils_packageResult(mod, mod.body, options, 'toAmd');
2457
+ return packageResult(mod, mod.body, options, 'toAmd');
2497
2458
  }
2498
2459
 
2499
2460
  var strictMode_cjs = strictMode_cjs__cjs;
@@ -2502,7 +2463,7 @@
2502
2463
 
2503
2464
  // Create block of require statements
2504
2465
  var importBlock = mod.imports.map(function (x) {
2505
- if (!utils_hasOwnProp.call(seen, x.path)) {
2466
+ if (!hasOwnProp.call(seen, x.path)) {
2506
2467
  seen[x.path] = true;
2507
2468
 
2508
2469
  if (x.isEmpty) {
@@ -2513,7 +2474,7 @@
2513
2474
  }
2514
2475
  }).filter(Boolean).join('\n');
2515
2476
 
2516
- utils_transformBody(mod, mod.body, {
2477
+ transformBody(mod, mod.body, {
2517
2478
  header: importBlock,
2518
2479
  _evilES3SafeReExports: options._evilES3SafeReExports
2519
2480
  });
@@ -2522,14 +2483,14 @@
2522
2483
  mod.body.prepend('\'use strict\';\n\n').trimLines();
2523
2484
  }
2524
2485
 
2525
- return utils_packageResult(mod, mod.body, options, 'toCjs');
2486
+ return packageResult(mod, mod.body, options, 'toCjs');
2526
2487
  }
2527
2488
 
2528
2489
  var strictMode_umd = strictMode_umd__umd;
2529
2490
  function strictMode_umd__umd(mod, options) {
2530
- umd_requireName(options);
2491
+ requireName(options);
2531
2492
 
2532
- var intro = umd_umdIntro({
2493
+ var intro = umdIntro({
2533
2494
  hasExports: mod.exports.length > 0,
2534
2495
  imports: mod.imports,
2535
2496
  amdName: options.amdName,
@@ -2540,13 +2501,13 @@
2540
2501
  useStrict: options.useStrict !== false
2541
2502
  });
2542
2503
 
2543
- utils_transformBody(mod, mod.body, {
2504
+ transformBody(mod, mod.body, {
2544
2505
  intro: intro,
2545
2506
  outro: '\n\n}));',
2546
2507
  _evilES3SafeReExports: options._evilES3SafeReExports
2547
2508
  });
2548
2509
 
2549
- return utils_packageResult(mod, mod.body, options, 'toUmd');
2510
+ return packageResult(mod, mod.body, options, 'toUmd');
2550
2511
  }
2551
2512
 
2552
2513
  var strictMode = {
@@ -2561,14 +2522,14 @@
2561
2522
  strictMode: strictMode
2562
2523
  };
2563
2524
 
2564
- var builders_defaultsMode_amd = builders_defaultsMode_amd__amd;
2565
- function builders_defaultsMode_amd__amd(bundle, options) {
2525
+ var defaultsMode_amd = defaultsMode_amd__amd;
2526
+ function defaultsMode_amd__amd(bundle, options) {
2566
2527
  var defaultName = bundle.entryModule.identifierReplacements['default'];
2567
2528
  if (defaultName) {
2568
2529
  bundle.body.append('\n\nreturn ' + defaultName + ';');
2569
2530
  }
2570
2531
 
2571
- var intro = amd_amdIntro({
2532
+ var intro = amdIntro({
2572
2533
  name: options.amdName,
2573
2534
  imports: bundle.externalModules,
2574
2535
  indentStr: bundle.body.getIndentString(),
@@ -2576,11 +2537,11 @@
2576
2537
  });
2577
2538
 
2578
2539
  bundle.body.indent().prepend(intro).trimLines().append('\n\n});');
2579
- return utils_packageResult(bundle, bundle.body, options, 'toAmd', true);
2540
+ return packageResult(bundle, bundle.body, options, 'toAmd', true);
2580
2541
  }
2581
2542
 
2582
- var builders_defaultsMode_cjs = builders_defaultsMode_cjs__cjs;
2583
- function builders_defaultsMode_cjs__cjs(bundle, options) {
2543
+ var defaultsMode_cjs = defaultsMode_cjs__cjs;
2544
+ function defaultsMode_cjs__cjs(bundle, options) {
2584
2545
  var importBlock = bundle.externalModules.map(function (x) {
2585
2546
  return 'var ' + x.name + ' = ' + req(x.id) + ';';
2586
2547
  }).join('\n');
@@ -2598,16 +2559,16 @@
2598
2559
  bundle.body.prepend('\'use strict\';\n\n').trimLines();
2599
2560
  }
2600
2561
 
2601
- return utils_packageResult(bundle, bundle.body, options, 'toCjs', true);
2562
+ return packageResult(bundle, bundle.body, options, 'toCjs', true);
2602
2563
  }
2603
2564
 
2604
- var builders_defaultsMode_umd = builders_defaultsMode_umd__umd;
2605
- function builders_defaultsMode_umd__umd(bundle, options) {
2606
- umd_requireName(options);
2565
+ var defaultsMode_umd = defaultsMode_umd__umd;
2566
+ function defaultsMode_umd__umd(bundle, options) {
2567
+ requireName(options);
2607
2568
 
2608
2569
  var entry = bundle.entryModule;
2609
2570
 
2610
- var intro = umd_umdIntro({
2571
+ var intro = umdIntro({
2611
2572
  hasExports: entry.exports.length > 0,
2612
2573
  imports: bundle.externalModules,
2613
2574
  amdName: options.amdName,
@@ -2622,17 +2583,15 @@
2622
2583
 
2623
2584
  bundle.body.indent().prepend(intro).trimLines().append('\n\n}));');
2624
2585
 
2625
- return utils_packageResult(bundle, bundle.body, options, 'toUmd', true);
2586
+ return packageResult(bundle, bundle.body, options, 'toUmd', true);
2626
2587
  }
2627
2588
 
2628
2589
  var builders_defaultsMode = {
2629
- amd: builders_defaultsMode_amd,
2630
- cjs: builders_defaultsMode_cjs,
2631
- umd: builders_defaultsMode_umd
2590
+ amd: defaultsMode_amd,
2591
+ cjs: defaultsMode_cjs,
2592
+ umd: defaultsMode_umd
2632
2593
  };
2633
2594
 
2634
- var utils_getExportBlock = getExportBlock;
2635
-
2636
2595
  function getExportBlock(entry) {
2637
2596
  var name = entry.identifierReplacements["default"];
2638
2597
  return "exports['default'] = " + name + ";";
@@ -2659,10 +2618,10 @@
2659
2618
  }
2660
2619
 
2661
2620
  if (entry.defaultExport) {
2662
- bundle.body.append('\n\n' + utils_getExportBlock(entry));
2621
+ bundle.body.append('\n\n' + getExportBlock(entry));
2663
2622
  }
2664
2623
 
2665
- var intro = amd_amdIntro({
2624
+ var intro = amdIntro({
2666
2625
  name: options.amdName,
2667
2626
  imports: bundle.externalModules,
2668
2627
  hasExports: entry.exports.length,
@@ -2671,7 +2630,7 @@
2671
2630
  });
2672
2631
 
2673
2632
  bundle.body.indent().prepend(intro).trimLines().append('\n\n});');
2674
- return utils_packageResult(bundle, bundle.body, options, 'toAmd', true);
2633
+ return packageResult(bundle, bundle.body, options, 'toAmd', true);
2675
2634
  }
2676
2635
 
2677
2636
  function builders_strictMode_amd__needsDefault(externalModule) {
@@ -2697,24 +2656,24 @@
2697
2656
  }
2698
2657
 
2699
2658
  if (entry.defaultExport) {
2700
- bundle.body.append('\n\n' + utils_getExportBlock(entry));
2659
+ bundle.body.append('\n\n' + getExportBlock(entry));
2701
2660
  }
2702
2661
 
2703
2662
  if (options.useStrict !== false) {
2704
2663
  bundle.body.prepend('\'use strict\';\n\n').trimLines();
2705
2664
  }
2706
2665
 
2707
- return utils_packageResult(bundle, bundle.body, options, 'toCjs', true);
2666
+ return packageResult(bundle, bundle.body, options, 'toCjs', true);
2708
2667
  }
2709
2668
 
2710
2669
  var builders_strictMode_umd = builders_strictMode_umd__umd;
2711
2670
 
2712
2671
  function builders_strictMode_umd__umd(bundle, options) {
2713
- umd_requireName(options);
2672
+ requireName(options);
2714
2673
 
2715
2674
  var entry = bundle.entryModule;
2716
2675
 
2717
- var intro = umd_umdIntro({
2676
+ var intro = umdIntro({
2718
2677
  hasExports: entry.exports.length > 0,
2719
2678
  imports: bundle.externalModules,
2720
2679
  externalDefaults: bundle.externalModules.filter(builders_strictMode_umd__needsDefault),
@@ -2726,12 +2685,12 @@
2726
2685
  });
2727
2686
 
2728
2687
  if (entry.defaultExport) {
2729
- bundle.body.append('\n\n' + utils_getExportBlock(entry));
2688
+ bundle.body.append('\n\n' + getExportBlock(entry));
2730
2689
  }
2731
2690
 
2732
2691
  bundle.body.indent().prepend(intro).trimLines().append('\n\n}));');
2733
2692
 
2734
- return utils_packageResult(bundle, bundle.body, options, 'toUmd', true);
2693
+ return packageResult(bundle, bundle.body, options, 'toUmd', true);
2735
2694
  }
2736
2695
 
2737
2696
  function builders_strictMode_umd__needsDefault(externalModule) {
@@ -2750,7 +2709,6 @@
2750
2709
  strictMode: builders_strictMode
2751
2710
  };
2752
2711
 
2753
- var builders_concat = concat;
2754
2712
  function concat(bundle, options) {
2755
2713
  // This bundle must be self-contained - no imports or exports
2756
2714
  if (bundle.externalModules.length || bundle.entryModule.exports.length) {
@@ -2772,7 +2730,7 @@
2772
2730
 
2773
2731
  bundle.body.trimLines().indent(indent).prepend(intro).append(outro);
2774
2732
 
2775
- return utils_packageResult(bundle, bundle.body, options, 'toString', true);
2733
+ return packageResult(bundle, bundle.body, options, 'toString', true);
2776
2734
  }
2777
2735
 
2778
2736
  var deprecateMessage = 'options.defaultOnly has been deprecated, and is now standard behaviour. To use named imports/exports, pass `strict: true`.';
@@ -2782,7 +2740,7 @@
2782
2740
  return function (source) {
2783
2741
  var options = arguments[1] === undefined ? {} : arguments[1];
2784
2742
 
2785
- var mod = getModule({
2743
+ var mod = getStandaloneModule({
2786
2744
  source: source,
2787
2745
  getModuleName: options.getModuleName,
2788
2746
  strict: options.strict
@@ -2802,7 +2760,7 @@
2802
2760
 
2803
2761
  if (!options.strict) {
2804
2762
  // ensure there are no named imports/exports. TODO link to a wiki page...
2805
- if (utils_hasNamedImports(mod) || utils_hasNamedExports(mod)) {
2763
+ if (hasNamedImports(mod) || hasNamedExports(mod)) {
2806
2764
  throw new Error('You must be in strict mode (pass `strict: true`) to use named imports or exports');
2807
2765
  }
2808
2766
 
@@ -2836,7 +2794,7 @@
2836
2794
  },
2837
2795
 
2838
2796
  concat: function (options) {
2839
- return builders_concat(bundle, options || {});
2797
+ return concat(bundle, options || {});
2840
2798
  }
2841
2799
  };
2842
2800
 
@@ -2853,7 +2811,7 @@
2853
2811
 
2854
2812
  if (!options.strict) {
2855
2813
  // ensure there are no named imports/exports
2856
- if (utils_hasNamedExports(bundle.entryModule)) {
2814
+ if (hasNamedExports(bundle.entryModule)) {
2857
2815
  throw new Error('Entry module can only have named exports in strict mode (pass `strict: true`)');
2858
2816
  }
2859
2817
 
@@ -2897,4 +2855,4 @@
2897
2855
  exports.toUmd = toUmd;
2898
2856
 
2899
2857
  }));
2900
- //# sourceMappingURL=/Users/tricknotes/src/github.com/esperantojs/esperanto/.gobble-build/03-esperantoBundle/1/esperanto.browser.js.map
2858
+ //# sourceMappingURL=/www/ESPERANTO/esperanto/.gobble-build/03-esperantoBundle/1/esperanto.browser.js.map