react 0.13.0-alpha.1 → 0.13.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/JSXTransformer.js +452 -360
- package/dist/react-with-addons.js +1407 -1021
- package/dist/react-with-addons.min.js +5 -6
- package/dist/react.js +1317 -933
- package/dist/react.min.js +5 -6
- package/lib/AutoFocusMixin.js +1 -1
- package/lib/BeforeInputEventPlugin.js +4 -4
- package/lib/CSSProperty.js +1 -1
- package/lib/CSSPropertyOperations.js +1 -1
- package/lib/CallbackQueue.js +2 -2
- package/lib/ChangeEventPlugin.js +1 -1
- package/lib/ClientReactRootIndex.js +1 -1
- package/lib/DOMChildrenOperations.js +6 -4
- package/lib/DOMProperty.js +1 -1
- package/lib/DOMPropertyOperations.js +1 -1
- package/lib/Danger.js +6 -5
- package/lib/DefaultEventPluginOrder.js +1 -1
- package/lib/EnterLeaveEventPlugin.js +1 -1
- package/lib/EventConstants.js +1 -1
- package/lib/EventPluginHub.js +9 -7
- package/lib/EventPluginRegistry.js +1 -1
- package/lib/EventPluginUtils.js +1 -1
- package/lib/EventPropagators.js +1 -1
- package/lib/FallbackCompositionState.js +6 -4
- package/lib/HTMLDOMPropertyConfig.js +12 -7
- package/lib/LinkedStateMixin.js +1 -1
- package/lib/LinkedValueUtils.js +3 -3
- package/lib/LocalEventTrapMixin.js +1 -1
- package/lib/MobileSafariClickEventPlugin.js +1 -1
- package/lib/Object.assign.js +1 -1
- package/lib/PooledClass.js +1 -1
- package/lib/React.js +4 -2
- package/lib/ReactBrowserComponentMixin.js +1 -1
- package/lib/ReactBrowserEventEmitter.js +2 -2
- package/lib/ReactCSSTransitionGroup.js +1 -1
- package/lib/ReactCSSTransitionGroupChild.js +4 -2
- package/lib/ReactChildReconciler.js +2 -2
- package/lib/ReactChildren.js +10 -8
- package/lib/ReactClass.js +30 -72
- package/lib/ReactComponent.js +10 -1
- package/lib/ReactComponentBase.js +126 -0
- package/lib/ReactComponentBrowserEnvironment.js +1 -1
- package/lib/ReactComponentEnvironment.js +2 -2
- package/lib/ReactComponentWithPureRenderMixin.js +1 -1
- package/lib/ReactCompositeComponent.js +90 -17
- package/lib/ReactContext.js +1 -1
- package/lib/ReactCurrentOwner.js +1 -1
- package/lib/ReactDOM.js +1 -1
- package/lib/ReactDOMButton.js +1 -1
- package/lib/ReactDOMComponent.js +23 -8
- package/lib/ReactDOMForm.js +1 -1
- package/lib/ReactDOMIDOperations.js +1 -1
- package/lib/ReactDOMImg.js +1 -1
- package/lib/ReactDOMInput.js +1 -1
- package/lib/ReactDOMOption.js +1 -1
- package/lib/ReactDOMSelect.js +2 -2
- package/lib/ReactDOMSelection.js +1 -1
- package/lib/ReactDOMTextComponent.js +1 -1
- package/lib/ReactDOMTextarea.js +1 -1
- package/lib/ReactDefaultBatchingStrategy.js +1 -1
- package/lib/ReactDefaultInjection.js +1 -1
- package/lib/ReactDefaultPerf.js +1 -1
- package/lib/ReactElement.js +5 -4
- package/lib/ReactElementValidator.js +91 -1
- package/lib/ReactEmptyComponent.js +12 -1
- package/lib/ReactEventEmitterMixin.js +1 -1
- package/lib/ReactEventListener.js +3 -3
- package/lib/ReactInjection.js +1 -1
- package/lib/ReactInputSelection.js +1 -1
- package/lib/ReactInstanceHandles.js +3 -2
- package/lib/ReactInstanceMap.js +1 -1
- package/lib/ReactLink.js +1 -1
- package/lib/ReactMarkupChecksum.js +1 -1
- package/lib/ReactMount.js +10 -3
- package/lib/ReactMultiChild.js +12 -3
- package/lib/ReactMultiChildUpdateTypes.js +1 -1
- package/lib/ReactNativeComponent.js +1 -1
- package/lib/ReactOwner.js +1 -1
- package/lib/ReactPerf.js +1 -1
- package/lib/ReactPropTransferer.js +2 -2
- package/lib/ReactPropTypeLocationNames.js +1 -1
- package/lib/ReactPropTypeLocations.js +1 -1
- package/lib/ReactPropTypes.js +13 -5
- package/lib/ReactPutListenerQueue.js +1 -1
- package/lib/ReactReconcileTransaction.js +1 -1
- package/lib/ReactRef.js +1 -1
- package/lib/ReactRootIndex.js +1 -1
- package/lib/ReactServerRendering.js +3 -2
- package/lib/ReactServerRenderingTransaction.js +1 -1
- package/lib/ReactStateSetters.js +1 -1
- package/lib/ReactTestUtils.js +1 -1
- package/lib/ReactTransitionChildMapping.js +1 -1
- package/lib/ReactTransitionEvents.js +1 -1
- package/lib/ReactTransitionGroup.js +1 -1
- package/lib/ReactUpdates.js +4 -4
- package/lib/ReactWithAddons.js +1 -1
- package/lib/SVGDOMPropertyConfig.js +1 -1
- package/lib/SelectEventPlugin.js +3 -3
- package/lib/ServerReactRootIndex.js +1 -1
- package/lib/SimpleEventPlugin.js +1 -1
- package/lib/SyntheticClipboardEvent.js +1 -2
- package/lib/SyntheticCompositionEvent.js +1 -2
- package/lib/SyntheticDragEvent.js +1 -1
- package/lib/SyntheticEvent.js +11 -3
- package/lib/SyntheticFocusEvent.js +1 -1
- package/lib/SyntheticInputEvent.js +1 -2
- package/lib/SyntheticKeyboardEvent.js +1 -1
- package/lib/SyntheticMouseEvent.js +1 -1
- package/lib/SyntheticTouchEvent.js +1 -1
- package/lib/SyntheticUIEvent.js +1 -1
- package/lib/SyntheticWheelEvent.js +1 -1
- package/lib/Transaction.js +3 -3
- package/lib/ViewportMetrics.js +1 -1
- package/lib/accumulate.js +1 -1
- package/lib/accumulateInto.js +1 -1
- package/lib/adler32.js +1 -1
- package/lib/cloneWithProps.js +1 -1
- package/lib/createFullPageComponent.js +1 -1
- package/lib/dangerousStyleValue.js +1 -1
- package/lib/escapeTextForBrowser.js +6 -6
- package/lib/findDOMNode.js +8 -9
- package/lib/flattenChildren.js +10 -8
- package/lib/forEachAccumulated.js +1 -1
- package/lib/getEventCharCode.js +1 -1
- package/lib/getEventKey.js +1 -1
- package/lib/getEventModifierState.js +1 -1
- package/lib/getEventTarget.js +1 -1
- package/lib/getIteratorFn.js +1 -1
- package/lib/getNodeForCharacterOffset.js +2 -2
- package/lib/getReactRootElementInContainer.js +1 -1
- package/lib/getTextContentAccessor.js +1 -1
- package/lib/instantiateReactComponent.js +1 -1
- package/lib/isEventSupported.js +1 -1
- package/lib/isTextInputElement.js +1 -1
- package/lib/joinClasses.js +1 -1
- package/lib/keyMirror.js +1 -1
- package/lib/memoizeStringOnly.js +4 -5
- package/lib/onlyChild.js +1 -1
- package/lib/setInnerHTML.js +12 -1
- package/lib/shallowEqual.js +1 -1
- package/lib/shouldUpdateReactComponent.js +41 -7
- package/lib/traverseAllChildren.js +1 -1
- package/lib/update.js +1 -1
- package/lib/warning.js +8 -1
- package/package.json +1 -1
package/dist/JSXTransformer.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* JSXTransformer v0.13.0-alpha.
|
|
2
|
+
* JSXTransformer v0.13.0-alpha.2
|
|
3
3
|
*/
|
|
4
4
|
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.JSXTransformer=e()}}(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(_dereq_,module,exports){
|
|
5
5
|
/**
|
|
@@ -15,10 +15,10 @@
|
|
|
15
15
|
|
|
16
16
|
'use strict';
|
|
17
17
|
|
|
18
|
-
var buffer = _dereq_(
|
|
19
|
-
var transform = _dereq_(
|
|
20
|
-
var typesSyntax = _dereq_(
|
|
21
|
-
var visitors = _dereq_(
|
|
18
|
+
var buffer = _dereq_(2);
|
|
19
|
+
var transform = _dereq_(21).transform;
|
|
20
|
+
var typesSyntax = _dereq_(33);
|
|
21
|
+
var visitors = _dereq_(37);
|
|
22
22
|
|
|
23
23
|
var headEl;
|
|
24
24
|
var dummyAnchor;
|
|
@@ -342,7 +342,7 @@ module.exports = {
|
|
|
342
342
|
exec: exec
|
|
343
343
|
};
|
|
344
344
|
|
|
345
|
-
},{
|
|
345
|
+
},{}],2:[function(_dereq_,module,exports){
|
|
346
346
|
/*!
|
|
347
347
|
* The buffer module from node.js, for the browser.
|
|
348
348
|
*
|
|
@@ -350,16 +350,17 @@ module.exports = {
|
|
|
350
350
|
* @license MIT
|
|
351
351
|
*/
|
|
352
352
|
|
|
353
|
-
var base64 = _dereq_(
|
|
354
|
-
var ieee754 = _dereq_(
|
|
355
|
-
var isArray = _dereq_(
|
|
353
|
+
var base64 = _dereq_(3)
|
|
354
|
+
var ieee754 = _dereq_(4)
|
|
355
|
+
var isArray = _dereq_(5)
|
|
356
356
|
|
|
357
357
|
exports.Buffer = Buffer
|
|
358
|
-
exports.SlowBuffer =
|
|
358
|
+
exports.SlowBuffer = SlowBuffer
|
|
359
359
|
exports.INSPECT_MAX_BYTES = 50
|
|
360
360
|
Buffer.poolSize = 8192 // not used by this implementation
|
|
361
361
|
|
|
362
362
|
var kMaxLength = 0x3fffffff
|
|
363
|
+
var rootParent = {}
|
|
363
364
|
|
|
364
365
|
/**
|
|
365
366
|
* If `Buffer.TYPED_ARRAY_SUPPORT`:
|
|
@@ -419,8 +420,6 @@ function Buffer (subject, encoding, noZero) {
|
|
|
419
420
|
if (type === 'number')
|
|
420
421
|
length = subject > 0 ? subject >>> 0 : 0
|
|
421
422
|
else if (type === 'string') {
|
|
422
|
-
if (encoding === 'base64')
|
|
423
|
-
subject = base64clean(subject)
|
|
424
423
|
length = Buffer.byteLength(subject, encoding)
|
|
425
424
|
} else if (type === 'object' && subject !== null) { // assume object is array-like
|
|
426
425
|
if (subject.type === 'Buffer' && isArray(subject.data))
|
|
@@ -429,7 +428,7 @@ function Buffer (subject, encoding, noZero) {
|
|
|
429
428
|
} else
|
|
430
429
|
throw new TypeError('must start with number, buffer, array or string')
|
|
431
430
|
|
|
432
|
-
if (
|
|
431
|
+
if (length > kMaxLength)
|
|
433
432
|
throw new RangeError('Attempt to allocate Buffer larger than maximum ' +
|
|
434
433
|
'size: 0x' + kMaxLength.toString(16) + ' bytes')
|
|
435
434
|
|
|
@@ -465,6 +464,18 @@ function Buffer (subject, encoding, noZero) {
|
|
|
465
464
|
}
|
|
466
465
|
}
|
|
467
466
|
|
|
467
|
+
if (length > 0 && length <= Buffer.poolSize)
|
|
468
|
+
buf.parent = rootParent
|
|
469
|
+
|
|
470
|
+
return buf
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
function SlowBuffer(subject, encoding, noZero) {
|
|
474
|
+
if (!(this instanceof SlowBuffer))
|
|
475
|
+
return new SlowBuffer(subject, encoding, noZero)
|
|
476
|
+
|
|
477
|
+
var buf = new Buffer(subject, encoding, noZero)
|
|
478
|
+
delete buf.parent
|
|
468
479
|
return buf
|
|
469
480
|
}
|
|
470
481
|
|
|
@@ -615,7 +626,7 @@ Buffer.prototype.toString = function (encoding, start, end) {
|
|
|
615
626
|
}
|
|
616
627
|
|
|
617
628
|
Buffer.prototype.equals = function (b) {
|
|
618
|
-
if(!Buffer.isBuffer(b)) throw new TypeError('Argument must be a Buffer')
|
|
629
|
+
if (!Buffer.isBuffer(b)) throw new TypeError('Argument must be a Buffer')
|
|
619
630
|
return Buffer.compare(this, b) === 0
|
|
620
631
|
}
|
|
621
632
|
|
|
@@ -675,7 +686,7 @@ function hexWrite (buf, string, offset, length) {
|
|
|
675
686
|
}
|
|
676
687
|
|
|
677
688
|
function utf8Write (buf, string, offset, length) {
|
|
678
|
-
var charsWritten = blitBuffer(utf8ToBytes(string), buf, offset, length)
|
|
689
|
+
var charsWritten = blitBuffer(utf8ToBytes(string, buf.length - offset), buf, offset, length)
|
|
679
690
|
return charsWritten
|
|
680
691
|
}
|
|
681
692
|
|
|
@@ -694,7 +705,7 @@ function base64Write (buf, string, offset, length) {
|
|
|
694
705
|
}
|
|
695
706
|
|
|
696
707
|
function utf16leWrite (buf, string, offset, length) {
|
|
697
|
-
var charsWritten = blitBuffer(utf16leToBytes(string), buf, offset, length, 2)
|
|
708
|
+
var charsWritten = blitBuffer(utf16leToBytes(string, buf.length - offset), buf, offset, length, 2)
|
|
698
709
|
return charsWritten
|
|
699
710
|
}
|
|
700
711
|
|
|
@@ -714,6 +725,10 @@ Buffer.prototype.write = function (string, offset, length, encoding) {
|
|
|
714
725
|
}
|
|
715
726
|
|
|
716
727
|
offset = Number(offset) || 0
|
|
728
|
+
|
|
729
|
+
if (length < 0 || offset < 0 || offset > this.length)
|
|
730
|
+
throw new RangeError('attempt to write outside buffer bounds');
|
|
731
|
+
|
|
717
732
|
var remaining = this.length - offset
|
|
718
733
|
if (!length) {
|
|
719
734
|
length = remaining
|
|
@@ -792,13 +807,19 @@ function asciiSlice (buf, start, end) {
|
|
|
792
807
|
end = Math.min(buf.length, end)
|
|
793
808
|
|
|
794
809
|
for (var i = start; i < end; i++) {
|
|
795
|
-
ret += String.fromCharCode(buf[i])
|
|
810
|
+
ret += String.fromCharCode(buf[i] & 0x7F)
|
|
796
811
|
}
|
|
797
812
|
return ret
|
|
798
813
|
}
|
|
799
814
|
|
|
800
815
|
function binarySlice (buf, start, end) {
|
|
801
|
-
|
|
816
|
+
var ret = ''
|
|
817
|
+
end = Math.min(buf.length, end)
|
|
818
|
+
|
|
819
|
+
for (var i = start; i < end; i++) {
|
|
820
|
+
ret += String.fromCharCode(buf[i])
|
|
821
|
+
}
|
|
822
|
+
return ret
|
|
802
823
|
}
|
|
803
824
|
|
|
804
825
|
function hexSlice (buf, start, end) {
|
|
@@ -847,16 +868,21 @@ Buffer.prototype.slice = function (start, end) {
|
|
|
847
868
|
if (end < start)
|
|
848
869
|
end = start
|
|
849
870
|
|
|
871
|
+
var newBuf
|
|
850
872
|
if (Buffer.TYPED_ARRAY_SUPPORT) {
|
|
851
|
-
|
|
873
|
+
newBuf = Buffer._augment(this.subarray(start, end))
|
|
852
874
|
} else {
|
|
853
875
|
var sliceLen = end - start
|
|
854
|
-
|
|
876
|
+
newBuf = new Buffer(sliceLen, undefined, true)
|
|
855
877
|
for (var i = 0; i < sliceLen; i++) {
|
|
856
878
|
newBuf[i] = this[i + start]
|
|
857
879
|
}
|
|
858
|
-
return newBuf
|
|
859
880
|
}
|
|
881
|
+
|
|
882
|
+
if (newBuf.length)
|
|
883
|
+
newBuf.parent = this.parent || this
|
|
884
|
+
|
|
885
|
+
return newBuf
|
|
860
886
|
}
|
|
861
887
|
|
|
862
888
|
/*
|
|
@@ -869,6 +895,35 @@ function checkOffset (offset, ext, length) {
|
|
|
869
895
|
throw new RangeError('Trying to access beyond buffer length')
|
|
870
896
|
}
|
|
871
897
|
|
|
898
|
+
Buffer.prototype.readUIntLE = function (offset, byteLength, noAssert) {
|
|
899
|
+
offset = offset >>> 0
|
|
900
|
+
byteLength = byteLength >>> 0
|
|
901
|
+
if (!noAssert)
|
|
902
|
+
checkOffset(offset, byteLength, this.length)
|
|
903
|
+
|
|
904
|
+
var val = this[offset]
|
|
905
|
+
var mul = 1
|
|
906
|
+
var i = 0
|
|
907
|
+
while (++i < byteLength && (mul *= 0x100))
|
|
908
|
+
val += this[offset + i] * mul
|
|
909
|
+
|
|
910
|
+
return val
|
|
911
|
+
}
|
|
912
|
+
|
|
913
|
+
Buffer.prototype.readUIntBE = function (offset, byteLength, noAssert) {
|
|
914
|
+
offset = offset >>> 0
|
|
915
|
+
byteLength = byteLength >>> 0
|
|
916
|
+
if (!noAssert)
|
|
917
|
+
checkOffset(offset, byteLength, this.length)
|
|
918
|
+
|
|
919
|
+
var val = this[offset + --byteLength]
|
|
920
|
+
var mul = 1
|
|
921
|
+
while (byteLength > 0 && (mul *= 0x100))
|
|
922
|
+
val += this[offset + --byteLength] * mul;
|
|
923
|
+
|
|
924
|
+
return val
|
|
925
|
+
}
|
|
926
|
+
|
|
872
927
|
Buffer.prototype.readUInt8 = function (offset, noAssert) {
|
|
873
928
|
if (!noAssert)
|
|
874
929
|
checkOffset(offset, 1, this.length)
|
|
@@ -907,6 +962,44 @@ Buffer.prototype.readUInt32BE = function (offset, noAssert) {
|
|
|
907
962
|
this[offset + 3])
|
|
908
963
|
}
|
|
909
964
|
|
|
965
|
+
Buffer.prototype.readIntLE = function (offset, byteLength, noAssert) {
|
|
966
|
+
offset = offset >>> 0
|
|
967
|
+
byteLength = byteLength >>> 0
|
|
968
|
+
if (!noAssert)
|
|
969
|
+
checkOffset(offset, byteLength, this.length)
|
|
970
|
+
|
|
971
|
+
var val = this[offset]
|
|
972
|
+
var mul = 1
|
|
973
|
+
var i = 0
|
|
974
|
+
while (++i < byteLength && (mul *= 0x100))
|
|
975
|
+
val += this[offset + i] * mul
|
|
976
|
+
mul *= 0x80
|
|
977
|
+
|
|
978
|
+
if (val >= mul)
|
|
979
|
+
val -= Math.pow(2, 8 * byteLength)
|
|
980
|
+
|
|
981
|
+
return val
|
|
982
|
+
}
|
|
983
|
+
|
|
984
|
+
Buffer.prototype.readIntBE = function (offset, byteLength, noAssert) {
|
|
985
|
+
offset = offset >>> 0
|
|
986
|
+
byteLength = byteLength >>> 0
|
|
987
|
+
if (!noAssert)
|
|
988
|
+
checkOffset(offset, byteLength, this.length)
|
|
989
|
+
|
|
990
|
+
var i = byteLength
|
|
991
|
+
var mul = 1
|
|
992
|
+
var val = this[offset + --i]
|
|
993
|
+
while (i > 0 && (mul *= 0x100))
|
|
994
|
+
val += this[offset + --i] * mul
|
|
995
|
+
mul *= 0x80
|
|
996
|
+
|
|
997
|
+
if (val >= mul)
|
|
998
|
+
val -= Math.pow(2, 8 * byteLength)
|
|
999
|
+
|
|
1000
|
+
return val
|
|
1001
|
+
}
|
|
1002
|
+
|
|
910
1003
|
Buffer.prototype.readInt8 = function (offset, noAssert) {
|
|
911
1004
|
if (!noAssert)
|
|
912
1005
|
checkOffset(offset, 1, this.length)
|
|
@@ -975,8 +1068,40 @@ Buffer.prototype.readDoubleBE = function (offset, noAssert) {
|
|
|
975
1068
|
|
|
976
1069
|
function checkInt (buf, value, offset, ext, max, min) {
|
|
977
1070
|
if (!Buffer.isBuffer(buf)) throw new TypeError('buffer must be a Buffer instance')
|
|
978
|
-
if (value > max || value < min) throw new
|
|
979
|
-
if (offset + ext > buf.length) throw new
|
|
1071
|
+
if (value > max || value < min) throw new RangeError('value is out of bounds')
|
|
1072
|
+
if (offset + ext > buf.length) throw new RangeError('index out of range')
|
|
1073
|
+
}
|
|
1074
|
+
|
|
1075
|
+
Buffer.prototype.writeUIntLE = function (value, offset, byteLength, noAssert) {
|
|
1076
|
+
value = +value
|
|
1077
|
+
offset = offset >>> 0
|
|
1078
|
+
byteLength = byteLength >>> 0
|
|
1079
|
+
if (!noAssert)
|
|
1080
|
+
checkInt(this, value, offset, byteLength, Math.pow(2, 8 * byteLength), 0)
|
|
1081
|
+
|
|
1082
|
+
var mul = 1
|
|
1083
|
+
var i = 0
|
|
1084
|
+
this[offset] = value & 0xFF
|
|
1085
|
+
while (++i < byteLength && (mul *= 0x100))
|
|
1086
|
+
this[offset + i] = (value / mul) >>> 0 & 0xFF
|
|
1087
|
+
|
|
1088
|
+
return offset + byteLength
|
|
1089
|
+
}
|
|
1090
|
+
|
|
1091
|
+
Buffer.prototype.writeUIntBE = function (value, offset, byteLength, noAssert) {
|
|
1092
|
+
value = +value
|
|
1093
|
+
offset = offset >>> 0
|
|
1094
|
+
byteLength = byteLength >>> 0
|
|
1095
|
+
if (!noAssert)
|
|
1096
|
+
checkInt(this, value, offset, byteLength, Math.pow(2, 8 * byteLength), 0)
|
|
1097
|
+
|
|
1098
|
+
var i = byteLength - 1
|
|
1099
|
+
var mul = 1
|
|
1100
|
+
this[offset + i] = value & 0xFF
|
|
1101
|
+
while (--i >= 0 && (mul *= 0x100))
|
|
1102
|
+
this[offset + i] = (value / mul) >>> 0 & 0xFF
|
|
1103
|
+
|
|
1104
|
+
return offset + byteLength
|
|
980
1105
|
}
|
|
981
1106
|
|
|
982
1107
|
Buffer.prototype.writeUInt8 = function (value, offset, noAssert) {
|
|
@@ -1056,6 +1181,50 @@ Buffer.prototype.writeUInt32BE = function (value, offset, noAssert) {
|
|
|
1056
1181
|
return offset + 4
|
|
1057
1182
|
}
|
|
1058
1183
|
|
|
1184
|
+
Buffer.prototype.writeIntLE = function (value, offset, byteLength, noAssert) {
|
|
1185
|
+
value = +value
|
|
1186
|
+
offset = offset >>> 0
|
|
1187
|
+
if (!noAssert) {
|
|
1188
|
+
checkInt(this,
|
|
1189
|
+
value,
|
|
1190
|
+
offset,
|
|
1191
|
+
byteLength,
|
|
1192
|
+
Math.pow(2, 8 * byteLength - 1) - 1,
|
|
1193
|
+
-Math.pow(2, 8 * byteLength - 1))
|
|
1194
|
+
}
|
|
1195
|
+
|
|
1196
|
+
var i = 0
|
|
1197
|
+
var mul = 1
|
|
1198
|
+
var sub = value < 0 ? 1 : 0
|
|
1199
|
+
this[offset] = value & 0xFF
|
|
1200
|
+
while (++i < byteLength && (mul *= 0x100))
|
|
1201
|
+
this[offset + i] = ((value / mul) >> 0) - sub & 0xFF
|
|
1202
|
+
|
|
1203
|
+
return offset + byteLength
|
|
1204
|
+
}
|
|
1205
|
+
|
|
1206
|
+
Buffer.prototype.writeIntBE = function (value, offset, byteLength, noAssert) {
|
|
1207
|
+
value = +value
|
|
1208
|
+
offset = offset >>> 0
|
|
1209
|
+
if (!noAssert) {
|
|
1210
|
+
checkInt(this,
|
|
1211
|
+
value,
|
|
1212
|
+
offset,
|
|
1213
|
+
byteLength,
|
|
1214
|
+
Math.pow(2, 8 * byteLength - 1) - 1,
|
|
1215
|
+
-Math.pow(2, 8 * byteLength - 1))
|
|
1216
|
+
}
|
|
1217
|
+
|
|
1218
|
+
var i = byteLength - 1
|
|
1219
|
+
var mul = 1
|
|
1220
|
+
var sub = value < 0 ? 1 : 0
|
|
1221
|
+
this[offset + i] = value & 0xFF
|
|
1222
|
+
while (--i >= 0 && (mul *= 0x100))
|
|
1223
|
+
this[offset + i] = ((value / mul) >> 0) - sub & 0xFF
|
|
1224
|
+
|
|
1225
|
+
return offset + byteLength
|
|
1226
|
+
}
|
|
1227
|
+
|
|
1059
1228
|
Buffer.prototype.writeInt8 = function (value, offset, noAssert) {
|
|
1060
1229
|
value = +value
|
|
1061
1230
|
offset = offset >>> 0
|
|
@@ -1121,8 +1290,9 @@ Buffer.prototype.writeInt32BE = function (value, offset, noAssert) {
|
|
|
1121
1290
|
}
|
|
1122
1291
|
|
|
1123
1292
|
function checkIEEE754 (buf, value, offset, ext, max, min) {
|
|
1124
|
-
if (value > max || value < min) throw new
|
|
1125
|
-
if (offset + ext > buf.length) throw new
|
|
1293
|
+
if (value > max || value < min) throw new RangeError('value is out of bounds')
|
|
1294
|
+
if (offset + ext > buf.length) throw new RangeError('index out of range')
|
|
1295
|
+
if (offset < 0) throw new RangeError('index out of range')
|
|
1126
1296
|
}
|
|
1127
1297
|
|
|
1128
1298
|
function writeFloat (buf, value, offset, littleEndian, noAssert) {
|
|
@@ -1161,18 +1331,19 @@ Buffer.prototype.copy = function (target, target_start, start, end) {
|
|
|
1161
1331
|
|
|
1162
1332
|
if (!start) start = 0
|
|
1163
1333
|
if (!end && end !== 0) end = this.length
|
|
1334
|
+
if (target_start >= target.length) target_start = target.length
|
|
1164
1335
|
if (!target_start) target_start = 0
|
|
1336
|
+
if (end > 0 && end < start) end = start
|
|
1165
1337
|
|
|
1166
1338
|
// Copy 0 bytes; we're done
|
|
1167
|
-
if (end === start) return
|
|
1168
|
-
if (target.length === 0 || source.length === 0) return
|
|
1339
|
+
if (end === start) return 0
|
|
1340
|
+
if (target.length === 0 || source.length === 0) return 0
|
|
1169
1341
|
|
|
1170
1342
|
// Fatal error conditions
|
|
1171
|
-
if (
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
if (
|
|
1175
|
-
if (end < 0 || end > source.length) throw new TypeError('sourceEnd out of bounds')
|
|
1343
|
+
if (target_start < 0)
|
|
1344
|
+
throw new RangeError('targetStart out of bounds')
|
|
1345
|
+
if (start < 0 || start >= source.length) throw new RangeError('sourceStart out of bounds')
|
|
1346
|
+
if (end < 0) throw new RangeError('sourceEnd out of bounds')
|
|
1176
1347
|
|
|
1177
1348
|
// Are we oob?
|
|
1178
1349
|
if (end > this.length)
|
|
@@ -1189,6 +1360,8 @@ Buffer.prototype.copy = function (target, target_start, start, end) {
|
|
|
1189
1360
|
} else {
|
|
1190
1361
|
target._set(this.subarray(start, start + len), target_start)
|
|
1191
1362
|
}
|
|
1363
|
+
|
|
1364
|
+
return len
|
|
1192
1365
|
}
|
|
1193
1366
|
|
|
1194
1367
|
// fill(value, start=0, end=buffer.length)
|
|
@@ -1197,14 +1370,14 @@ Buffer.prototype.fill = function (value, start, end) {
|
|
|
1197
1370
|
if (!start) start = 0
|
|
1198
1371
|
if (!end) end = this.length
|
|
1199
1372
|
|
|
1200
|
-
if (end < start) throw new
|
|
1373
|
+
if (end < start) throw new RangeError('end < start')
|
|
1201
1374
|
|
|
1202
1375
|
// Fill 0 bytes; we're done
|
|
1203
1376
|
if (end === start) return
|
|
1204
1377
|
if (this.length === 0) return
|
|
1205
1378
|
|
|
1206
|
-
if (start < 0 || start >= this.length) throw new
|
|
1207
|
-
if (end < 0 || end > this.length) throw new
|
|
1379
|
+
if (start < 0 || start >= this.length) throw new RangeError('start out of bounds')
|
|
1380
|
+
if (end < 0 || end > this.length) throw new RangeError('end out of bounds')
|
|
1208
1381
|
|
|
1209
1382
|
var i
|
|
1210
1383
|
if (typeof value === 'number') {
|
|
@@ -1270,11 +1443,15 @@ Buffer._augment = function (arr) {
|
|
|
1270
1443
|
arr.compare = BP.compare
|
|
1271
1444
|
arr.copy = BP.copy
|
|
1272
1445
|
arr.slice = BP.slice
|
|
1446
|
+
arr.readUIntLE = BP.readUIntLE
|
|
1447
|
+
arr.readUIntBE = BP.readUIntBE
|
|
1273
1448
|
arr.readUInt8 = BP.readUInt8
|
|
1274
1449
|
arr.readUInt16LE = BP.readUInt16LE
|
|
1275
1450
|
arr.readUInt16BE = BP.readUInt16BE
|
|
1276
1451
|
arr.readUInt32LE = BP.readUInt32LE
|
|
1277
1452
|
arr.readUInt32BE = BP.readUInt32BE
|
|
1453
|
+
arr.readIntLE = BP.readIntLE
|
|
1454
|
+
arr.readIntBE = BP.readIntBE
|
|
1278
1455
|
arr.readInt8 = BP.readInt8
|
|
1279
1456
|
arr.readInt16LE = BP.readInt16LE
|
|
1280
1457
|
arr.readInt16BE = BP.readInt16BE
|
|
@@ -1285,10 +1462,14 @@ Buffer._augment = function (arr) {
|
|
|
1285
1462
|
arr.readDoubleLE = BP.readDoubleLE
|
|
1286
1463
|
arr.readDoubleBE = BP.readDoubleBE
|
|
1287
1464
|
arr.writeUInt8 = BP.writeUInt8
|
|
1465
|
+
arr.writeUIntLE = BP.writeUIntLE
|
|
1466
|
+
arr.writeUIntBE = BP.writeUIntBE
|
|
1288
1467
|
arr.writeUInt16LE = BP.writeUInt16LE
|
|
1289
1468
|
arr.writeUInt16BE = BP.writeUInt16BE
|
|
1290
1469
|
arr.writeUInt32LE = BP.writeUInt32LE
|
|
1291
1470
|
arr.writeUInt32BE = BP.writeUInt32BE
|
|
1471
|
+
arr.writeIntLE = BP.writeIntLE
|
|
1472
|
+
arr.writeIntBE = BP.writeIntBE
|
|
1292
1473
|
arr.writeInt8 = BP.writeInt8
|
|
1293
1474
|
arr.writeInt16LE = BP.writeInt16LE
|
|
1294
1475
|
arr.writeInt16BE = BP.writeInt16BE
|
|
@@ -1305,11 +1486,13 @@ Buffer._augment = function (arr) {
|
|
|
1305
1486
|
return arr
|
|
1306
1487
|
}
|
|
1307
1488
|
|
|
1308
|
-
var INVALID_BASE64_RE = /[^+\/0-9A-z]/g
|
|
1489
|
+
var INVALID_BASE64_RE = /[^+\/0-9A-z\-]/g
|
|
1309
1490
|
|
|
1310
1491
|
function base64clean (str) {
|
|
1311
1492
|
// Node strips out invalid characters like \n and \t from the string, base64-js does not
|
|
1312
1493
|
str = stringtrim(str).replace(INVALID_BASE64_RE, '')
|
|
1494
|
+
// Node converts strings with length < 2 to ''
|
|
1495
|
+
if (str.length < 2) return ''
|
|
1313
1496
|
// Node allows for non-padded base64 strings (missing trailing ===), base64-js does not
|
|
1314
1497
|
while (str.length % 4 !== 0) {
|
|
1315
1498
|
str = str + '='
|
|
@@ -1333,22 +1516,100 @@ function toHex (n) {
|
|
|
1333
1516
|
return n.toString(16)
|
|
1334
1517
|
}
|
|
1335
1518
|
|
|
1336
|
-
function utf8ToBytes
|
|
1337
|
-
var
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1519
|
+
function utf8ToBytes(string, units) {
|
|
1520
|
+
var codePoint, length = string.length
|
|
1521
|
+
var leadSurrogate = null
|
|
1522
|
+
units = units || Infinity
|
|
1523
|
+
var bytes = []
|
|
1524
|
+
var i = 0
|
|
1525
|
+
|
|
1526
|
+
for (; i<length; i++) {
|
|
1527
|
+
codePoint = string.charCodeAt(i)
|
|
1528
|
+
|
|
1529
|
+
// is surrogate component
|
|
1530
|
+
if (codePoint > 0xD7FF && codePoint < 0xE000) {
|
|
1531
|
+
|
|
1532
|
+
// last char was a lead
|
|
1533
|
+
if (leadSurrogate) {
|
|
1534
|
+
|
|
1535
|
+
// 2 leads in a row
|
|
1536
|
+
if (codePoint < 0xDC00) {
|
|
1537
|
+
if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
|
|
1538
|
+
leadSurrogate = codePoint
|
|
1539
|
+
continue
|
|
1540
|
+
}
|
|
1541
|
+
|
|
1542
|
+
// valid surrogate pair
|
|
1543
|
+
else {
|
|
1544
|
+
codePoint = leadSurrogate - 0xD800 << 10 | codePoint - 0xDC00 | 0x10000
|
|
1545
|
+
leadSurrogate = null
|
|
1546
|
+
}
|
|
1348
1547
|
}
|
|
1548
|
+
|
|
1549
|
+
// no lead yet
|
|
1550
|
+
else {
|
|
1551
|
+
|
|
1552
|
+
// unexpected trail
|
|
1553
|
+
if (codePoint > 0xDBFF) {
|
|
1554
|
+
if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
|
|
1555
|
+
continue
|
|
1556
|
+
}
|
|
1557
|
+
|
|
1558
|
+
// unpaired lead
|
|
1559
|
+
else if (i + 1 === length) {
|
|
1560
|
+
if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
|
|
1561
|
+
continue
|
|
1562
|
+
}
|
|
1563
|
+
|
|
1564
|
+
// valid lead
|
|
1565
|
+
else {
|
|
1566
|
+
leadSurrogate = codePoint
|
|
1567
|
+
continue
|
|
1568
|
+
}
|
|
1569
|
+
}
|
|
1570
|
+
}
|
|
1571
|
+
|
|
1572
|
+
// valid bmp char, but last char was a lead
|
|
1573
|
+
else if (leadSurrogate) {
|
|
1574
|
+
if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
|
|
1575
|
+
leadSurrogate = null
|
|
1576
|
+
}
|
|
1577
|
+
|
|
1578
|
+
// encode utf8
|
|
1579
|
+
if (codePoint < 0x80) {
|
|
1580
|
+
if ((units -= 1) < 0) break
|
|
1581
|
+
bytes.push(codePoint)
|
|
1582
|
+
}
|
|
1583
|
+
else if (codePoint < 0x800) {
|
|
1584
|
+
if ((units -= 2) < 0) break
|
|
1585
|
+
bytes.push(
|
|
1586
|
+
codePoint >> 0x6 | 0xC0,
|
|
1587
|
+
codePoint & 0x3F | 0x80
|
|
1588
|
+
);
|
|
1589
|
+
}
|
|
1590
|
+
else if (codePoint < 0x10000) {
|
|
1591
|
+
if ((units -= 3) < 0) break
|
|
1592
|
+
bytes.push(
|
|
1593
|
+
codePoint >> 0xC | 0xE0,
|
|
1594
|
+
codePoint >> 0x6 & 0x3F | 0x80,
|
|
1595
|
+
codePoint & 0x3F | 0x80
|
|
1596
|
+
);
|
|
1597
|
+
}
|
|
1598
|
+
else if (codePoint < 0x200000) {
|
|
1599
|
+
if ((units -= 4) < 0) break
|
|
1600
|
+
bytes.push(
|
|
1601
|
+
codePoint >> 0x12 | 0xF0,
|
|
1602
|
+
codePoint >> 0xC & 0x3F | 0x80,
|
|
1603
|
+
codePoint >> 0x6 & 0x3F | 0x80,
|
|
1604
|
+
codePoint & 0x3F | 0x80
|
|
1605
|
+
);
|
|
1606
|
+
}
|
|
1607
|
+
else {
|
|
1608
|
+
throw new Error('Invalid code point')
|
|
1349
1609
|
}
|
|
1350
1610
|
}
|
|
1351
|
-
|
|
1611
|
+
|
|
1612
|
+
return bytes
|
|
1352
1613
|
}
|
|
1353
1614
|
|
|
1354
1615
|
function asciiToBytes (str) {
|
|
@@ -1360,10 +1621,13 @@ function asciiToBytes (str) {
|
|
|
1360
1621
|
return byteArray
|
|
1361
1622
|
}
|
|
1362
1623
|
|
|
1363
|
-
function utf16leToBytes (str) {
|
|
1624
|
+
function utf16leToBytes (str, units) {
|
|
1364
1625
|
var c, hi, lo
|
|
1365
1626
|
var byteArray = []
|
|
1366
1627
|
for (var i = 0; i < str.length; i++) {
|
|
1628
|
+
|
|
1629
|
+
if ((units -= 2) < 0) break
|
|
1630
|
+
|
|
1367
1631
|
c = str.charCodeAt(i)
|
|
1368
1632
|
hi = c >> 8
|
|
1369
1633
|
lo = c % 256
|
|
@@ -1375,7 +1639,7 @@ function utf16leToBytes (str) {
|
|
|
1375
1639
|
}
|
|
1376
1640
|
|
|
1377
1641
|
function base64ToBytes (str) {
|
|
1378
|
-
return base64.toByteArray(str)
|
|
1642
|
+
return base64.toByteArray(base64clean(str))
|
|
1379
1643
|
}
|
|
1380
1644
|
|
|
1381
1645
|
function blitBuffer (src, dst, offset, length, unitSize) {
|
|
@@ -1396,7 +1660,7 @@ function decodeUtf8Char (str) {
|
|
|
1396
1660
|
}
|
|
1397
1661
|
}
|
|
1398
1662
|
|
|
1399
|
-
},{
|
|
1663
|
+
},{}],3:[function(_dereq_,module,exports){
|
|
1400
1664
|
var lookup = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
|
|
1401
1665
|
|
|
1402
1666
|
;(function (exports) {
|
|
@@ -1411,12 +1675,16 @@ var lookup = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
|
|
|
1411
1675
|
var NUMBER = '0'.charCodeAt(0)
|
|
1412
1676
|
var LOWER = 'a'.charCodeAt(0)
|
|
1413
1677
|
var UPPER = 'A'.charCodeAt(0)
|
|
1678
|
+
var PLUS_URL_SAFE = '-'.charCodeAt(0)
|
|
1679
|
+
var SLASH_URL_SAFE = '_'.charCodeAt(0)
|
|
1414
1680
|
|
|
1415
1681
|
function decode (elt) {
|
|
1416
1682
|
var code = elt.charCodeAt(0)
|
|
1417
|
-
if (code === PLUS
|
|
1683
|
+
if (code === PLUS ||
|
|
1684
|
+
code === PLUS_URL_SAFE)
|
|
1418
1685
|
return 62 // '+'
|
|
1419
|
-
if (code === SLASH
|
|
1686
|
+
if (code === SLASH ||
|
|
1687
|
+
code === SLASH_URL_SAFE)
|
|
1420
1688
|
return 63 // '/'
|
|
1421
1689
|
if (code < NUMBER)
|
|
1422
1690
|
return -1 //no match
|
|
@@ -1866,74 +2134,44 @@ var substr = 'ab'.substr(-1) === 'b'
|
|
|
1866
2134
|
}
|
|
1867
2135
|
;
|
|
1868
2136
|
|
|
1869
|
-
}).call(this,_dereq_(
|
|
1870
|
-
},{
|
|
2137
|
+
}).call(this,_dereq_(7))
|
|
2138
|
+
},{}],7:[function(_dereq_,module,exports){
|
|
1871
2139
|
// shim for using process in browser
|
|
1872
2140
|
|
|
1873
2141
|
var process = module.exports = {};
|
|
2142
|
+
var queue = [];
|
|
2143
|
+
var draining = false;
|
|
1874
2144
|
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
var canMutationObserver = typeof window !== 'undefined'
|
|
1879
|
-
&& window.MutationObserver;
|
|
1880
|
-
var canPost = typeof window !== 'undefined'
|
|
1881
|
-
&& window.postMessage && window.addEventListener
|
|
1882
|
-
;
|
|
1883
|
-
|
|
1884
|
-
if (canSetImmediate) {
|
|
1885
|
-
return function (f) { return window.setImmediate(f) };
|
|
2145
|
+
function drainQueue() {
|
|
2146
|
+
if (draining) {
|
|
2147
|
+
return;
|
|
1886
2148
|
}
|
|
1887
|
-
|
|
1888
|
-
var
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
});
|
|
1899
|
-
|
|
1900
|
-
observer.observe(hiddenDiv, { attributes: true });
|
|
1901
|
-
|
|
1902
|
-
return function nextTick(fn) {
|
|
1903
|
-
if (!queue.length) {
|
|
1904
|
-
hiddenDiv.setAttribute('yes', 'no');
|
|
1905
|
-
}
|
|
1906
|
-
queue.push(fn);
|
|
1907
|
-
};
|
|
2149
|
+
draining = true;
|
|
2150
|
+
var currentQueue;
|
|
2151
|
+
var len = queue.length;
|
|
2152
|
+
while(len) {
|
|
2153
|
+
currentQueue = queue;
|
|
2154
|
+
queue = [];
|
|
2155
|
+
var i = -1;
|
|
2156
|
+
while (++i < len) {
|
|
2157
|
+
currentQueue[i]();
|
|
2158
|
+
}
|
|
2159
|
+
len = queue.length;
|
|
1908
2160
|
}
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
if (queue.length > 0) {
|
|
1916
|
-
var fn = queue.shift();
|
|
1917
|
-
fn();
|
|
1918
|
-
}
|
|
1919
|
-
}
|
|
1920
|
-
}, true);
|
|
1921
|
-
|
|
1922
|
-
return function nextTick(fn) {
|
|
1923
|
-
queue.push(fn);
|
|
1924
|
-
window.postMessage('process-tick', '*');
|
|
1925
|
-
};
|
|
2161
|
+
draining = false;
|
|
2162
|
+
}
|
|
2163
|
+
process.nextTick = function (fun) {
|
|
2164
|
+
queue.push(fun);
|
|
2165
|
+
if (!draining) {
|
|
2166
|
+
setTimeout(drainQueue, 0);
|
|
1926
2167
|
}
|
|
1927
|
-
|
|
1928
|
-
return function nextTick(fn) {
|
|
1929
|
-
setTimeout(fn, 0);
|
|
1930
|
-
};
|
|
1931
|
-
})();
|
|
2168
|
+
};
|
|
1932
2169
|
|
|
1933
2170
|
process.title = 'browser';
|
|
1934
2171
|
process.browser = true;
|
|
1935
2172
|
process.env = {};
|
|
1936
2173
|
process.argv = [];
|
|
2174
|
+
process.version = ''; // empty string to avoid regexp issues
|
|
1937
2175
|
|
|
1938
2176
|
function noop() {}
|
|
1939
2177
|
|
|
@@ -1954,6 +2192,7 @@ process.cwd = function () { return '/' };
|
|
|
1954
2192
|
process.chdir = function (dir) {
|
|
1955
2193
|
throw new Error('process.chdir is not supported');
|
|
1956
2194
|
};
|
|
2195
|
+
process.umask = function() { return 0; };
|
|
1957
2196
|
|
|
1958
2197
|
},{}],8:[function(_dereq_,module,exports){
|
|
1959
2198
|
var Base62 = (function (my) {
|
|
@@ -9607,11 +9846,11 @@ parseYieldExpression: true, parseAwaitExpression: true
|
|
|
9607
9846
|
* Licensed under the New BSD license. See LICENSE.txt or:
|
|
9608
9847
|
* http://opensource.org/licenses/BSD-3-Clause
|
|
9609
9848
|
*/
|
|
9610
|
-
exports.SourceMapGenerator = _dereq_(
|
|
9611
|
-
exports.SourceMapConsumer = _dereq_(
|
|
9612
|
-
exports.SourceNode = _dereq_(
|
|
9849
|
+
exports.SourceMapGenerator = _dereq_(16).SourceMapGenerator;
|
|
9850
|
+
exports.SourceMapConsumer = _dereq_(15).SourceMapConsumer;
|
|
9851
|
+
exports.SourceNode = _dereq_(17).SourceNode;
|
|
9613
9852
|
|
|
9614
|
-
},{
|
|
9853
|
+
},{}],11:[function(_dereq_,module,exports){
|
|
9615
9854
|
/* -*- Mode: js; js-indent-level: 2; -*- */
|
|
9616
9855
|
/*
|
|
9617
9856
|
* Copyright 2011 Mozilla Foundation and contributors
|
|
@@ -9619,11 +9858,11 @@ exports.SourceNode = _dereq_('./source-map/source-node').SourceNode;
|
|
|
9619
9858
|
* http://opensource.org/licenses/BSD-3-Clause
|
|
9620
9859
|
*/
|
|
9621
9860
|
if (typeof define !== 'function') {
|
|
9622
|
-
var define = _dereq_(
|
|
9861
|
+
var define = _dereq_(19)(module, _dereq_);
|
|
9623
9862
|
}
|
|
9624
9863
|
define(function (_dereq_, exports, module) {
|
|
9625
9864
|
|
|
9626
|
-
var util = _dereq_(
|
|
9865
|
+
var util = _dereq_(18);
|
|
9627
9866
|
|
|
9628
9867
|
/**
|
|
9629
9868
|
* A data structure which is a combination of an array and a set. Adding a new
|
|
@@ -9710,7 +9949,7 @@ define(function (_dereq_, exports, module) {
|
|
|
9710
9949
|
|
|
9711
9950
|
});
|
|
9712
9951
|
|
|
9713
|
-
},{
|
|
9952
|
+
},{}],12:[function(_dereq_,module,exports){
|
|
9714
9953
|
/* -*- Mode: js; js-indent-level: 2; -*- */
|
|
9715
9954
|
/*
|
|
9716
9955
|
* Copyright 2011 Mozilla Foundation and contributors
|
|
@@ -9748,11 +9987,11 @@ define(function (_dereq_, exports, module) {
|
|
|
9748
9987
|
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
9749
9988
|
*/
|
|
9750
9989
|
if (typeof define !== 'function') {
|
|
9751
|
-
var define = _dereq_(
|
|
9990
|
+
var define = _dereq_(19)(module, _dereq_);
|
|
9752
9991
|
}
|
|
9753
9992
|
define(function (_dereq_, exports, module) {
|
|
9754
9993
|
|
|
9755
|
-
var base64 = _dereq_(
|
|
9994
|
+
var base64 = _dereq_(13);
|
|
9756
9995
|
|
|
9757
9996
|
// A single base 64 digit can contain 6 bits of data. For the base 64 variable
|
|
9758
9997
|
// length quantities we use in the source map spec, the first bit is the sign,
|
|
@@ -9856,7 +10095,7 @@ define(function (_dereq_, exports, module) {
|
|
|
9856
10095
|
|
|
9857
10096
|
});
|
|
9858
10097
|
|
|
9859
|
-
},{
|
|
10098
|
+
},{}],13:[function(_dereq_,module,exports){
|
|
9860
10099
|
/* -*- Mode: js; js-indent-level: 2; -*- */
|
|
9861
10100
|
/*
|
|
9862
10101
|
* Copyright 2011 Mozilla Foundation and contributors
|
|
@@ -9864,7 +10103,7 @@ define(function (_dereq_, exports, module) {
|
|
|
9864
10103
|
* http://opensource.org/licenses/BSD-3-Clause
|
|
9865
10104
|
*/
|
|
9866
10105
|
if (typeof define !== 'function') {
|
|
9867
|
-
var define = _dereq_(
|
|
10106
|
+
var define = _dereq_(19)(module, _dereq_);
|
|
9868
10107
|
}
|
|
9869
10108
|
define(function (_dereq_, exports, module) {
|
|
9870
10109
|
|
|
@@ -9900,7 +10139,7 @@ define(function (_dereq_, exports, module) {
|
|
|
9900
10139
|
|
|
9901
10140
|
});
|
|
9902
10141
|
|
|
9903
|
-
},{
|
|
10142
|
+
},{}],14:[function(_dereq_,module,exports){
|
|
9904
10143
|
/* -*- Mode: js; js-indent-level: 2; -*- */
|
|
9905
10144
|
/*
|
|
9906
10145
|
* Copyright 2011 Mozilla Foundation and contributors
|
|
@@ -9908,7 +10147,7 @@ define(function (_dereq_, exports, module) {
|
|
|
9908
10147
|
* http://opensource.org/licenses/BSD-3-Clause
|
|
9909
10148
|
*/
|
|
9910
10149
|
if (typeof define !== 'function') {
|
|
9911
|
-
var define = _dereq_(
|
|
10150
|
+
var define = _dereq_(19)(module, _dereq_);
|
|
9912
10151
|
}
|
|
9913
10152
|
define(function (_dereq_, exports, module) {
|
|
9914
10153
|
|
|
@@ -9983,7 +10222,7 @@ define(function (_dereq_, exports, module) {
|
|
|
9983
10222
|
|
|
9984
10223
|
});
|
|
9985
10224
|
|
|
9986
|
-
},{
|
|
10225
|
+
},{}],15:[function(_dereq_,module,exports){
|
|
9987
10226
|
/* -*- Mode: js; js-indent-level: 2; -*- */
|
|
9988
10227
|
/*
|
|
9989
10228
|
* Copyright 2011 Mozilla Foundation and contributors
|
|
@@ -9991,14 +10230,14 @@ define(function (_dereq_, exports, module) {
|
|
|
9991
10230
|
* http://opensource.org/licenses/BSD-3-Clause
|
|
9992
10231
|
*/
|
|
9993
10232
|
if (typeof define !== 'function') {
|
|
9994
|
-
var define = _dereq_(
|
|
10233
|
+
var define = _dereq_(19)(module, _dereq_);
|
|
9995
10234
|
}
|
|
9996
10235
|
define(function (_dereq_, exports, module) {
|
|
9997
10236
|
|
|
9998
|
-
var util = _dereq_(
|
|
9999
|
-
var binarySearch = _dereq_(
|
|
10000
|
-
var ArraySet = _dereq_(
|
|
10001
|
-
var base64VLQ = _dereq_(
|
|
10237
|
+
var util = _dereq_(18);
|
|
10238
|
+
var binarySearch = _dereq_(14);
|
|
10239
|
+
var ArraySet = _dereq_(11).ArraySet;
|
|
10240
|
+
var base64VLQ = _dereq_(12);
|
|
10002
10241
|
|
|
10003
10242
|
/**
|
|
10004
10243
|
* A SourceMapConsumer instance represents a parsed source map which we can
|
|
@@ -10462,7 +10701,7 @@ define(function (_dereq_, exports, module) {
|
|
|
10462
10701
|
|
|
10463
10702
|
});
|
|
10464
10703
|
|
|
10465
|
-
},{
|
|
10704
|
+
},{}],16:[function(_dereq_,module,exports){
|
|
10466
10705
|
/* -*- Mode: js; js-indent-level: 2; -*- */
|
|
10467
10706
|
/*
|
|
10468
10707
|
* Copyright 2011 Mozilla Foundation and contributors
|
|
@@ -10470,13 +10709,13 @@ define(function (_dereq_, exports, module) {
|
|
|
10470
10709
|
* http://opensource.org/licenses/BSD-3-Clause
|
|
10471
10710
|
*/
|
|
10472
10711
|
if (typeof define !== 'function') {
|
|
10473
|
-
var define = _dereq_(
|
|
10712
|
+
var define = _dereq_(19)(module, _dereq_);
|
|
10474
10713
|
}
|
|
10475
10714
|
define(function (_dereq_, exports, module) {
|
|
10476
10715
|
|
|
10477
|
-
var base64VLQ = _dereq_(
|
|
10478
|
-
var util = _dereq_(
|
|
10479
|
-
var ArraySet = _dereq_(
|
|
10716
|
+
var base64VLQ = _dereq_(12);
|
|
10717
|
+
var util = _dereq_(18);
|
|
10718
|
+
var ArraySet = _dereq_(11).ArraySet;
|
|
10480
10719
|
|
|
10481
10720
|
/**
|
|
10482
10721
|
* An instance of the SourceMapGenerator represents a source map which is
|
|
@@ -10844,7 +11083,7 @@ define(function (_dereq_, exports, module) {
|
|
|
10844
11083
|
|
|
10845
11084
|
});
|
|
10846
11085
|
|
|
10847
|
-
},{
|
|
11086
|
+
},{}],17:[function(_dereq_,module,exports){
|
|
10848
11087
|
/* -*- Mode: js; js-indent-level: 2; -*- */
|
|
10849
11088
|
/*
|
|
10850
11089
|
* Copyright 2011 Mozilla Foundation and contributors
|
|
@@ -10852,12 +11091,12 @@ define(function (_dereq_, exports, module) {
|
|
|
10852
11091
|
* http://opensource.org/licenses/BSD-3-Clause
|
|
10853
11092
|
*/
|
|
10854
11093
|
if (typeof define !== 'function') {
|
|
10855
|
-
var define = _dereq_(
|
|
11094
|
+
var define = _dereq_(19)(module, _dereq_);
|
|
10856
11095
|
}
|
|
10857
11096
|
define(function (_dereq_, exports, module) {
|
|
10858
11097
|
|
|
10859
|
-
var SourceMapGenerator = _dereq_(
|
|
10860
|
-
var util = _dereq_(
|
|
11098
|
+
var SourceMapGenerator = _dereq_(16).SourceMapGenerator;
|
|
11099
|
+
var util = _dereq_(18);
|
|
10861
11100
|
|
|
10862
11101
|
/**
|
|
10863
11102
|
* SourceNodes provide a way to abstract over interpolating/concatenating
|
|
@@ -11217,7 +11456,7 @@ define(function (_dereq_, exports, module) {
|
|
|
11217
11456
|
|
|
11218
11457
|
});
|
|
11219
11458
|
|
|
11220
|
-
},{
|
|
11459
|
+
},{}],18:[function(_dereq_,module,exports){
|
|
11221
11460
|
/* -*- Mode: js; js-indent-level: 2; -*- */
|
|
11222
11461
|
/*
|
|
11223
11462
|
* Copyright 2011 Mozilla Foundation and contributors
|
|
@@ -11225,7 +11464,7 @@ define(function (_dereq_, exports, module) {
|
|
|
11225
11464
|
* http://opensource.org/licenses/BSD-3-Clause
|
|
11226
11465
|
*/
|
|
11227
11466
|
if (typeof define !== 'function') {
|
|
11228
|
-
var define = _dereq_(
|
|
11467
|
+
var define = _dereq_(19)(module, _dereq_);
|
|
11229
11468
|
}
|
|
11230
11469
|
define(function (_dereq_, exports, module) {
|
|
11231
11470
|
|
|
@@ -11424,7 +11663,7 @@ define(function (_dereq_, exports, module) {
|
|
|
11424
11663
|
|
|
11425
11664
|
});
|
|
11426
11665
|
|
|
11427
|
-
},{
|
|
11666
|
+
},{}],19:[function(_dereq_,module,exports){
|
|
11428
11667
|
(function (process,__filename){
|
|
11429
11668
|
/** vim: et:ts=4:sw=4:sts=4
|
|
11430
11669
|
* @license amdefine 0.1.0 Copyright (c) 2011, The Dojo Foundation All Rights Reserved.
|
|
@@ -11451,7 +11690,7 @@ function amdefine(module, requireFn) {
|
|
|
11451
11690
|
var defineCache = {},
|
|
11452
11691
|
loaderCache = {},
|
|
11453
11692
|
alreadyCalled = false,
|
|
11454
|
-
path = _dereq_(
|
|
11693
|
+
path = _dereq_(6),
|
|
11455
11694
|
makeRequire, stringRequire;
|
|
11456
11695
|
|
|
11457
11696
|
/**
|
|
@@ -11726,8 +11965,8 @@ function amdefine(module, requireFn) {
|
|
|
11726
11965
|
|
|
11727
11966
|
module.exports = amdefine;
|
|
11728
11967
|
|
|
11729
|
-
}).call(this,_dereq_(
|
|
11730
|
-
},{
|
|
11968
|
+
}).call(this,_dereq_(7),"/node_modules/jstransform/node_modules/source-map/node_modules/amdefine/amdefine.js")
|
|
11969
|
+
},{}],20:[function(_dereq_,module,exports){
|
|
11731
11970
|
/**
|
|
11732
11971
|
* Copyright 2013 Facebook, Inc.
|
|
11733
11972
|
*
|
|
@@ -11836,8 +12075,8 @@ exports.parseAsObject = parseAsObject;
|
|
|
11836
12075
|
/*jslint node: true*/
|
|
11837
12076
|
"use strict";
|
|
11838
12077
|
|
|
11839
|
-
var esprima = _dereq_(
|
|
11840
|
-
var utils = _dereq_(
|
|
12078
|
+
var esprima = _dereq_(9);
|
|
12079
|
+
var utils = _dereq_(22);
|
|
11841
12080
|
|
|
11842
12081
|
var getBoundaryNode = utils.getBoundaryNode;
|
|
11843
12082
|
var declareIdentInScope = utils.declareIdentInLocalScope;
|
|
@@ -12052,7 +12291,7 @@ function transform(visitors, source, options) {
|
|
|
12052
12291
|
state.g.visitors = visitors;
|
|
12053
12292
|
|
|
12054
12293
|
if (options.sourceMap) {
|
|
12055
|
-
var SourceMapGenerator = _dereq_(
|
|
12294
|
+
var SourceMapGenerator = _dereq_(10).SourceMapGenerator;
|
|
12056
12295
|
state.g.sourceMap = new SourceMapGenerator({file: options.filename || 'transformed.js'});
|
|
12057
12296
|
}
|
|
12058
12297
|
|
|
@@ -12070,7 +12309,7 @@ function transform(visitors, source, options) {
|
|
|
12070
12309
|
exports.transform = transform;
|
|
12071
12310
|
exports.Syntax = Syntax;
|
|
12072
12311
|
|
|
12073
|
-
},{
|
|
12312
|
+
},{}],22:[function(_dereq_,module,exports){
|
|
12074
12313
|
/**
|
|
12075
12314
|
* Copyright 2013 Facebook, Inc.
|
|
12076
12315
|
*
|
|
@@ -12089,7 +12328,7 @@ exports.Syntax = Syntax;
|
|
|
12089
12328
|
|
|
12090
12329
|
|
|
12091
12330
|
/*jslint node: true*/
|
|
12092
|
-
var Syntax = _dereq_(
|
|
12331
|
+
var Syntax = _dereq_(9).Syntax;
|
|
12093
12332
|
var leadingIndentRegexp = /(^|\n)( {2}|\t)/g;
|
|
12094
12333
|
var nonWhiteRegexp = /(\S)/g;
|
|
12095
12334
|
|
|
@@ -12478,7 +12717,7 @@ function indentBefore(start, state) {
|
|
|
12478
12717
|
|
|
12479
12718
|
function getDocblock(state) {
|
|
12480
12719
|
if (!state.g.docblock) {
|
|
12481
|
-
var docblock = _dereq_(
|
|
12720
|
+
var docblock = _dereq_(20);
|
|
12482
12721
|
state.g.docblock =
|
|
12483
12722
|
docblock.parseAsObject(docblock.extract(state.g.source));
|
|
12484
12723
|
}
|
|
@@ -12693,7 +12932,7 @@ exports.getNodeSourceText = getNodeSourceText;
|
|
|
12693
12932
|
exports.getTempVar = getTempVar;
|
|
12694
12933
|
exports.getTempVarWithValue = getTempVarWithValue;
|
|
12695
12934
|
|
|
12696
|
-
},{
|
|
12935
|
+
},{}],23:[function(_dereq_,module,exports){
|
|
12697
12936
|
/**
|
|
12698
12937
|
* Copyright 2013 Facebook, Inc.
|
|
12699
12938
|
*
|
|
@@ -12734,11 +12973,11 @@ exports.getTempVarWithValue = getTempVarWithValue;
|
|
|
12734
12973
|
* }.bind(this));
|
|
12735
12974
|
*
|
|
12736
12975
|
*/
|
|
12737
|
-
var restParamVisitors = _dereq_(
|
|
12738
|
-
var destructuringVisitors = _dereq_(
|
|
12976
|
+
var restParamVisitors = _dereq_(28);
|
|
12977
|
+
var destructuringVisitors = _dereq_(25);
|
|
12739
12978
|
|
|
12740
|
-
var Syntax = _dereq_(
|
|
12741
|
-
var utils = _dereq_(
|
|
12979
|
+
var Syntax = _dereq_(9).Syntax;
|
|
12980
|
+
var utils = _dereq_(22);
|
|
12742
12981
|
|
|
12743
12982
|
/**
|
|
12744
12983
|
* @public
|
|
@@ -12853,7 +13092,7 @@ exports.visitorList = [
|
|
|
12853
13092
|
];
|
|
12854
13093
|
|
|
12855
13094
|
|
|
12856
|
-
},{
|
|
13095
|
+
},{}],24:[function(_dereq_,module,exports){
|
|
12857
13096
|
/**
|
|
12858
13097
|
* Copyright 2013 Facebook, Inc.
|
|
12859
13098
|
*
|
|
@@ -12877,10 +13116,10 @@ exports.visitorList = [
|
|
|
12877
13116
|
*/
|
|
12878
13117
|
'use strict';
|
|
12879
13118
|
|
|
12880
|
-
var base62 = _dereq_(
|
|
12881
|
-
var Syntax = _dereq_(
|
|
12882
|
-
var utils = _dereq_(
|
|
12883
|
-
var reservedWordsHelper = _dereq_(
|
|
13119
|
+
var base62 = _dereq_(8);
|
|
13120
|
+
var Syntax = _dereq_(9).Syntax;
|
|
13121
|
+
var utils = _dereq_(22);
|
|
13122
|
+
var reservedWordsHelper = _dereq_(32);
|
|
12884
13123
|
|
|
12885
13124
|
var declareIdentInLocalScope = utils.declareIdentInLocalScope;
|
|
12886
13125
|
var initScopeMetadata = utils.initScopeMetadata;
|
|
@@ -13422,7 +13661,7 @@ exports.visitorList = [
|
|
|
13422
13661
|
visitSuperMemberExpression
|
|
13423
13662
|
];
|
|
13424
13663
|
|
|
13425
|
-
},{
|
|
13664
|
+
},{}],25:[function(_dereq_,module,exports){
|
|
13426
13665
|
/**
|
|
13427
13666
|
* Copyright 2014 Facebook, Inc.
|
|
13428
13667
|
*
|
|
@@ -13462,12 +13701,12 @@ exports.visitorList = [
|
|
|
13462
13701
|
* var x, $__0 = init({ip, port}), ip = $__0.ip, port = $__0.port;
|
|
13463
13702
|
*
|
|
13464
13703
|
*/
|
|
13465
|
-
var Syntax = _dereq_(
|
|
13466
|
-
var utils = _dereq_(
|
|
13704
|
+
var Syntax = _dereq_(9).Syntax;
|
|
13705
|
+
var utils = _dereq_(22);
|
|
13467
13706
|
|
|
13468
|
-
var reservedWordsHelper = _dereq_(
|
|
13469
|
-
var restParamVisitors = _dereq_(
|
|
13470
|
-
var restPropertyHelpers = _dereq_(
|
|
13707
|
+
var reservedWordsHelper = _dereq_(32);
|
|
13708
|
+
var restParamVisitors = _dereq_(28);
|
|
13709
|
+
var restPropertyHelpers = _dereq_(30);
|
|
13471
13710
|
|
|
13472
13711
|
// -------------------------------------------------------
|
|
13473
13712
|
// 1. Structured variable declarations.
|
|
@@ -13704,7 +13943,7 @@ exports.visitorList = [
|
|
|
13704
13943
|
exports.renderDestructuredComponents = renderDestructuredComponents;
|
|
13705
13944
|
|
|
13706
13945
|
|
|
13707
|
-
},{
|
|
13946
|
+
},{}],26:[function(_dereq_,module,exports){
|
|
13708
13947
|
/**
|
|
13709
13948
|
* Copyright 2013 Facebook, Inc.
|
|
13710
13949
|
*
|
|
@@ -13736,9 +13975,9 @@ exports.renderDestructuredComponents = renderDestructuredComponents;
|
|
|
13736
13975
|
*
|
|
13737
13976
|
*/
|
|
13738
13977
|
|
|
13739
|
-
var Syntax = _dereq_(
|
|
13740
|
-
var utils = _dereq_(
|
|
13741
|
-
var reservedWordsHelper = _dereq_(
|
|
13978
|
+
var Syntax = _dereq_(9).Syntax;
|
|
13979
|
+
var utils = _dereq_(22);
|
|
13980
|
+
var reservedWordsHelper = _dereq_(32);
|
|
13742
13981
|
|
|
13743
13982
|
function visitObjectConciseMethod(traverse, node, path, state) {
|
|
13744
13983
|
var isGenerator = node.value.generator;
|
|
@@ -13775,7 +14014,7 @@ exports.visitorList = [
|
|
|
13775
14014
|
visitObjectConciseMethod
|
|
13776
14015
|
];
|
|
13777
14016
|
|
|
13778
|
-
},{
|
|
14017
|
+
},{}],27:[function(_dereq_,module,exports){
|
|
13779
14018
|
/**
|
|
13780
14019
|
* Copyright 2013 Facebook, Inc.
|
|
13781
14020
|
*
|
|
@@ -13806,8 +14045,8 @@ exports.visitorList = [
|
|
|
13806
14045
|
* function init({port, ip, coords: {x, y}}) { ... }
|
|
13807
14046
|
*
|
|
13808
14047
|
*/
|
|
13809
|
-
var Syntax = _dereq_(
|
|
13810
|
-
var utils = _dereq_(
|
|
14048
|
+
var Syntax = _dereq_(9).Syntax;
|
|
14049
|
+
var utils = _dereq_(22);
|
|
13811
14050
|
|
|
13812
14051
|
/**
|
|
13813
14052
|
* @public
|
|
@@ -13830,7 +14069,7 @@ exports.visitorList = [
|
|
|
13830
14069
|
];
|
|
13831
14070
|
|
|
13832
14071
|
|
|
13833
|
-
},{
|
|
14072
|
+
},{}],28:[function(_dereq_,module,exports){
|
|
13834
14073
|
/**
|
|
13835
14074
|
* Copyright 2013 Facebook, Inc.
|
|
13836
14075
|
*
|
|
@@ -13866,8 +14105,8 @@ exports.visitorList = [
|
|
|
13866
14105
|
* }
|
|
13867
14106
|
*
|
|
13868
14107
|
*/
|
|
13869
|
-
var Syntax = _dereq_(
|
|
13870
|
-
var utils = _dereq_(
|
|
14108
|
+
var Syntax = _dereq_(9).Syntax;
|
|
14109
|
+
var utils = _dereq_(22);
|
|
13871
14110
|
|
|
13872
14111
|
|
|
13873
14112
|
|
|
@@ -13938,7 +14177,7 @@ exports.visitorList = [
|
|
|
13938
14177
|
visitFunctionBodyWithRestParam
|
|
13939
14178
|
];
|
|
13940
14179
|
|
|
13941
|
-
},{
|
|
14180
|
+
},{}],29:[function(_dereq_,module,exports){
|
|
13942
14181
|
/**
|
|
13943
14182
|
* Copyright 2013 Facebook, Inc.
|
|
13944
14183
|
*
|
|
@@ -13962,8 +14201,8 @@ exports.visitorList = [
|
|
|
13962
14201
|
*/
|
|
13963
14202
|
'use strict';
|
|
13964
14203
|
|
|
13965
|
-
var Syntax = _dereq_(
|
|
13966
|
-
var utils = _dereq_(
|
|
14204
|
+
var Syntax = _dereq_(9).Syntax;
|
|
14205
|
+
var utils = _dereq_(22);
|
|
13967
14206
|
|
|
13968
14207
|
/**
|
|
13969
14208
|
* http://people.mozilla.org/~jorendorff/es6-draft.html#sec-12.1.9
|
|
@@ -14096,7 +14335,7 @@ exports.visitorList = [
|
|
|
14096
14335
|
visitTaggedTemplateExpression
|
|
14097
14336
|
];
|
|
14098
14337
|
|
|
14099
|
-
},{
|
|
14338
|
+
},{}],30:[function(_dereq_,module,exports){
|
|
14100
14339
|
/**
|
|
14101
14340
|
* Copyright 2013 Facebook, Inc.
|
|
14102
14341
|
*
|
|
@@ -14119,8 +14358,8 @@ exports.visitorList = [
|
|
|
14119
14358
|
* Desugars ES7 rest properties into ES5 object iteration.
|
|
14120
14359
|
*/
|
|
14121
14360
|
|
|
14122
|
-
var Syntax = _dereq_(
|
|
14123
|
-
var utils = _dereq_(
|
|
14361
|
+
var Syntax = _dereq_(9).Syntax;
|
|
14362
|
+
var utils = _dereq_(22);
|
|
14124
14363
|
|
|
14125
14364
|
// TODO: This is a pretty massive helper, it should only be defined once, in the
|
|
14126
14365
|
// transform's runtime environment. We don't currently have a runtime though.
|
|
@@ -14179,7 +14418,7 @@ function renderRestExpression(accessorExpression, excludedProperties) {
|
|
|
14179
14418
|
|
|
14180
14419
|
exports.renderRestExpression = renderRestExpression;
|
|
14181
14420
|
|
|
14182
|
-
},{
|
|
14421
|
+
},{}],31:[function(_dereq_,module,exports){
|
|
14183
14422
|
/**
|
|
14184
14423
|
* Copyright 2004-present Facebook. All Rights Reserved.
|
|
14185
14424
|
*/
|
|
@@ -14195,8 +14434,8 @@ exports.renderRestExpression = renderRestExpression;
|
|
|
14195
14434
|
*
|
|
14196
14435
|
*/
|
|
14197
14436
|
|
|
14198
|
-
var Syntax = _dereq_(
|
|
14199
|
-
var utils = _dereq_(
|
|
14437
|
+
var Syntax = _dereq_(9).Syntax;
|
|
14438
|
+
var utils = _dereq_(22);
|
|
14200
14439
|
|
|
14201
14440
|
function visitObjectLiteralSpread(traverse, node, path, state) {
|
|
14202
14441
|
utils.catchup(node.range[0], state);
|
|
@@ -14289,7 +14528,7 @@ exports.visitorList = [
|
|
|
14289
14528
|
visitObjectLiteralSpread
|
|
14290
14529
|
];
|
|
14291
14530
|
|
|
14292
|
-
},{
|
|
14531
|
+
},{}],32:[function(_dereq_,module,exports){
|
|
14293
14532
|
/**
|
|
14294
14533
|
* Copyright 2014 Facebook, Inc.
|
|
14295
14534
|
*
|
|
@@ -14341,8 +14580,8 @@ exports.isReservedWord = function(word) {
|
|
|
14341
14580
|
};
|
|
14342
14581
|
|
|
14343
14582
|
},{}],33:[function(_dereq_,module,exports){
|
|
14344
|
-
var esprima = _dereq_(
|
|
14345
|
-
var utils = _dereq_(
|
|
14583
|
+
var esprima = _dereq_(9);
|
|
14584
|
+
var utils = _dereq_(22);
|
|
14346
14585
|
|
|
14347
14586
|
var Syntax = esprima.Syntax;
|
|
14348
14587
|
|
|
@@ -14489,7 +14728,7 @@ exports.visitorList = [
|
|
|
14489
14728
|
visitTypeAnnotatedObjectOrArrayPattern
|
|
14490
14729
|
];
|
|
14491
14730
|
|
|
14492
|
-
},{
|
|
14731
|
+
},{}],34:[function(_dereq_,module,exports){
|
|
14493
14732
|
/**
|
|
14494
14733
|
* Copyright 2013-2014, Facebook, Inc.
|
|
14495
14734
|
* All rights reserved.
|
|
@@ -14501,16 +14740,15 @@ exports.visitorList = [
|
|
|
14501
14740
|
/*global exports:true*/
|
|
14502
14741
|
"use strict";
|
|
14503
14742
|
|
|
14504
|
-
var Syntax = _dereq_(
|
|
14505
|
-
var utils = _dereq_(
|
|
14743
|
+
var Syntax = _dereq_(21).Syntax;
|
|
14744
|
+
var utils = _dereq_(22);
|
|
14506
14745
|
|
|
14507
|
-
var FALLBACK_TAGS = _dereq_('./xjs').knownTags;
|
|
14508
14746
|
var renderXJSExpressionContainer =
|
|
14509
|
-
_dereq_(
|
|
14510
|
-
var renderXJSLiteral = _dereq_(
|
|
14511
|
-
var quoteAttrName = _dereq_(
|
|
14747
|
+
_dereq_(36).renderXJSExpressionContainer;
|
|
14748
|
+
var renderXJSLiteral = _dereq_(36).renderXJSLiteral;
|
|
14749
|
+
var quoteAttrName = _dereq_(36).quoteAttrName;
|
|
14512
14750
|
|
|
14513
|
-
var trimLeft = _dereq_(
|
|
14751
|
+
var trimLeft = _dereq_(36).trimLeft;
|
|
14514
14752
|
|
|
14515
14753
|
/**
|
|
14516
14754
|
* Customized desugar processor for React JSX. Currently:
|
|
@@ -14550,17 +14788,8 @@ function visitReactTag(traverse, object, path, state) {
|
|
|
14550
14788
|
// We assume that the React runtime is already in scope
|
|
14551
14789
|
utils.append('React.createElement(', state);
|
|
14552
14790
|
|
|
14553
|
-
// Identifiers with lower case or hypthens are fallback tags (strings).
|
|
14554
14791
|
// XJSMemberExpressions are not.
|
|
14555
14792
|
if (nameObject.type === Syntax.XJSIdentifier && isTagName(nameObject.name)) {
|
|
14556
|
-
// This is a temporary error message to assist upgrades
|
|
14557
|
-
if (!FALLBACK_TAGS.hasOwnProperty(nameObject.name)) {
|
|
14558
|
-
throw new Error(
|
|
14559
|
-
'Lower case component names (' + nameObject.name + ') are no longer ' +
|
|
14560
|
-
'supported in JSX: See http://fb.me/react-jsx-lower-case'
|
|
14561
|
-
);
|
|
14562
|
-
}
|
|
14563
|
-
|
|
14564
14793
|
utils.append('"' + nameObject.name + '"', state);
|
|
14565
14794
|
utils.move(nameObject.range[1], state);
|
|
14566
14795
|
} else {
|
|
@@ -14744,7 +14973,7 @@ exports.visitorList = [
|
|
|
14744
14973
|
visitReactTag
|
|
14745
14974
|
];
|
|
14746
14975
|
|
|
14747
|
-
},{
|
|
14976
|
+
},{}],35:[function(_dereq_,module,exports){
|
|
14748
14977
|
/**
|
|
14749
14978
|
* Copyright 2013-2014, Facebook, Inc.
|
|
14750
14979
|
* All rights reserved.
|
|
@@ -14756,8 +14985,8 @@ exports.visitorList = [
|
|
|
14756
14985
|
/*global exports:true*/
|
|
14757
14986
|
"use strict";
|
|
14758
14987
|
|
|
14759
|
-
var Syntax = _dereq_(
|
|
14760
|
-
var utils = _dereq_(
|
|
14988
|
+
var Syntax = _dereq_(21).Syntax;
|
|
14989
|
+
var utils = _dereq_(22);
|
|
14761
14990
|
|
|
14762
14991
|
function addDisplayName(displayName, object, state) {
|
|
14763
14992
|
if (object &&
|
|
@@ -14839,7 +15068,7 @@ exports.visitorList = [
|
|
|
14839
15068
|
visitReactDisplayName
|
|
14840
15069
|
];
|
|
14841
15070
|
|
|
14842
|
-
},{
|
|
15071
|
+
},{}],36:[function(_dereq_,module,exports){
|
|
14843
15072
|
/**
|
|
14844
15073
|
* Copyright 2013-2014, Facebook, Inc.
|
|
14845
15074
|
* All rights reserved.
|
|
@@ -14850,144 +15079,8 @@ exports.visitorList = [
|
|
|
14850
15079
|
*/
|
|
14851
15080
|
/*global exports:true*/
|
|
14852
15081
|
"use strict";
|
|
14853
|
-
var Syntax = _dereq_(
|
|
14854
|
-
var utils = _dereq_(
|
|
14855
|
-
|
|
14856
|
-
var knownTags = {
|
|
14857
|
-
a: true,
|
|
14858
|
-
abbr: true,
|
|
14859
|
-
address: true,
|
|
14860
|
-
applet: true,
|
|
14861
|
-
area: true,
|
|
14862
|
-
article: true,
|
|
14863
|
-
aside: true,
|
|
14864
|
-
audio: true,
|
|
14865
|
-
b: true,
|
|
14866
|
-
base: true,
|
|
14867
|
-
bdi: true,
|
|
14868
|
-
bdo: true,
|
|
14869
|
-
big: true,
|
|
14870
|
-
blockquote: true,
|
|
14871
|
-
body: true,
|
|
14872
|
-
br: true,
|
|
14873
|
-
button: true,
|
|
14874
|
-
canvas: true,
|
|
14875
|
-
caption: true,
|
|
14876
|
-
circle: true,
|
|
14877
|
-
cite: true,
|
|
14878
|
-
code: true,
|
|
14879
|
-
col: true,
|
|
14880
|
-
colgroup: true,
|
|
14881
|
-
command: true,
|
|
14882
|
-
data: true,
|
|
14883
|
-
datalist: true,
|
|
14884
|
-
dd: true,
|
|
14885
|
-
defs: true,
|
|
14886
|
-
del: true,
|
|
14887
|
-
details: true,
|
|
14888
|
-
dfn: true,
|
|
14889
|
-
dialog: true,
|
|
14890
|
-
div: true,
|
|
14891
|
-
dl: true,
|
|
14892
|
-
dt: true,
|
|
14893
|
-
ellipse: true,
|
|
14894
|
-
em: true,
|
|
14895
|
-
embed: true,
|
|
14896
|
-
fieldset: true,
|
|
14897
|
-
figcaption: true,
|
|
14898
|
-
figure: true,
|
|
14899
|
-
footer: true,
|
|
14900
|
-
form: true,
|
|
14901
|
-
g: true,
|
|
14902
|
-
h1: true,
|
|
14903
|
-
h2: true,
|
|
14904
|
-
h3: true,
|
|
14905
|
-
h4: true,
|
|
14906
|
-
h5: true,
|
|
14907
|
-
h6: true,
|
|
14908
|
-
head: true,
|
|
14909
|
-
header: true,
|
|
14910
|
-
hgroup: true,
|
|
14911
|
-
hr: true,
|
|
14912
|
-
html: true,
|
|
14913
|
-
i: true,
|
|
14914
|
-
iframe: true,
|
|
14915
|
-
img: true,
|
|
14916
|
-
input: true,
|
|
14917
|
-
ins: true,
|
|
14918
|
-
kbd: true,
|
|
14919
|
-
keygen: true,
|
|
14920
|
-
label: true,
|
|
14921
|
-
legend: true,
|
|
14922
|
-
li: true,
|
|
14923
|
-
line: true,
|
|
14924
|
-
linearGradient: true,
|
|
14925
|
-
link: true,
|
|
14926
|
-
main: true,
|
|
14927
|
-
map: true,
|
|
14928
|
-
mark: true,
|
|
14929
|
-
marquee: true,
|
|
14930
|
-
mask: false,
|
|
14931
|
-
menu: true,
|
|
14932
|
-
menuitem: true,
|
|
14933
|
-
meta: true,
|
|
14934
|
-
meter: true,
|
|
14935
|
-
nav: true,
|
|
14936
|
-
noscript: true,
|
|
14937
|
-
object: true,
|
|
14938
|
-
ol: true,
|
|
14939
|
-
optgroup: true,
|
|
14940
|
-
option: true,
|
|
14941
|
-
output: true,
|
|
14942
|
-
p: true,
|
|
14943
|
-
param: true,
|
|
14944
|
-
path: true,
|
|
14945
|
-
pattern: false,
|
|
14946
|
-
picture: true,
|
|
14947
|
-
polygon: true,
|
|
14948
|
-
polyline: true,
|
|
14949
|
-
pre: true,
|
|
14950
|
-
progress: true,
|
|
14951
|
-
q: true,
|
|
14952
|
-
radialGradient: true,
|
|
14953
|
-
rect: true,
|
|
14954
|
-
rp: true,
|
|
14955
|
-
rt: true,
|
|
14956
|
-
ruby: true,
|
|
14957
|
-
s: true,
|
|
14958
|
-
samp: true,
|
|
14959
|
-
script: true,
|
|
14960
|
-
section: true,
|
|
14961
|
-
select: true,
|
|
14962
|
-
small: true,
|
|
14963
|
-
source: true,
|
|
14964
|
-
span: true,
|
|
14965
|
-
stop: true,
|
|
14966
|
-
strong: true,
|
|
14967
|
-
style: true,
|
|
14968
|
-
sub: true,
|
|
14969
|
-
summary: true,
|
|
14970
|
-
sup: true,
|
|
14971
|
-
svg: true,
|
|
14972
|
-
table: true,
|
|
14973
|
-
tbody: true,
|
|
14974
|
-
td: true,
|
|
14975
|
-
text: true,
|
|
14976
|
-
textarea: true,
|
|
14977
|
-
tfoot: true,
|
|
14978
|
-
th: true,
|
|
14979
|
-
thead: true,
|
|
14980
|
-
time: true,
|
|
14981
|
-
title: true,
|
|
14982
|
-
tr: true,
|
|
14983
|
-
track: true,
|
|
14984
|
-
tspan: true,
|
|
14985
|
-
u: true,
|
|
14986
|
-
ul: true,
|
|
14987
|
-
'var': true,
|
|
14988
|
-
video: true,
|
|
14989
|
-
wbr: true
|
|
14990
|
-
};
|
|
15082
|
+
var Syntax = _dereq_(21).Syntax;
|
|
15083
|
+
var utils = _dereq_(22);
|
|
14991
15084
|
|
|
14992
15085
|
function renderXJSLiteral(object, isLast, state, start, end) {
|
|
14993
15086
|
var lines = object.value.split(/\r\n|\n|\r/);
|
|
@@ -15083,24 +15176,23 @@ function trimLeft(value) {
|
|
|
15083
15176
|
return value.replace(/^[ ]+/, '');
|
|
15084
15177
|
}
|
|
15085
15178
|
|
|
15086
|
-
exports.knownTags = knownTags;
|
|
15087
15179
|
exports.renderXJSExpressionContainer = renderXJSExpressionContainer;
|
|
15088
15180
|
exports.renderXJSLiteral = renderXJSLiteral;
|
|
15089
15181
|
exports.quoteAttrName = quoteAttrName;
|
|
15090
15182
|
exports.trimLeft = trimLeft;
|
|
15091
15183
|
|
|
15092
|
-
},{
|
|
15184
|
+
},{}],37:[function(_dereq_,module,exports){
|
|
15093
15185
|
/*global exports:true*/
|
|
15094
|
-
var es6ArrowFunctions = _dereq_(
|
|
15095
|
-
var es6Classes = _dereq_(
|
|
15096
|
-
var es6Destructuring = _dereq_(
|
|
15097
|
-
var es6ObjectConciseMethod = _dereq_(
|
|
15098
|
-
var es6ObjectShortNotation = _dereq_(
|
|
15099
|
-
var es6RestParameters = _dereq_(
|
|
15100
|
-
var es6Templates = _dereq_(
|
|
15101
|
-
var es7SpreadProperty = _dereq_(
|
|
15102
|
-
var react = _dereq_(
|
|
15103
|
-
var reactDisplayName = _dereq_(
|
|
15186
|
+
var es6ArrowFunctions = _dereq_(23);
|
|
15187
|
+
var es6Classes = _dereq_(24);
|
|
15188
|
+
var es6Destructuring = _dereq_(25);
|
|
15189
|
+
var es6ObjectConciseMethod = _dereq_(26);
|
|
15190
|
+
var es6ObjectShortNotation = _dereq_(27);
|
|
15191
|
+
var es6RestParameters = _dereq_(28);
|
|
15192
|
+
var es6Templates = _dereq_(29);
|
|
15193
|
+
var es7SpreadProperty = _dereq_(31);
|
|
15194
|
+
var react = _dereq_(34);
|
|
15195
|
+
var reactDisplayName = _dereq_(35);
|
|
15104
15196
|
|
|
15105
15197
|
/**
|
|
15106
15198
|
* Map from transformName => orderedListOfVisitors.
|
|
@@ -15197,5 +15289,5 @@ exports.getVisitorsBySet = getVisitorsBySet;
|
|
|
15197
15289
|
exports.getAllVisitors = getAllVisitors;
|
|
15198
15290
|
exports.transformVisitors = transformVisitors;
|
|
15199
15291
|
|
|
15200
|
-
},{
|
|
15292
|
+
},{}]},{},[1])(1)
|
|
15201
15293
|
});
|