1 | {"version":3,"file":"collection.js","sourceRoot":"","sources":["../../../../../modules/@angular/router-deprecated/src/facade/collection.ts"],"names":[],"mappings":";AAAA,qBAAiF,QAAQ,CAAC,CAAA;AAE/E,WAAG,GAAG,aAAM,CAAC,GAAG,CAAC;AACjB,WAAG,GAAG,aAAM,CAAC,GAAG,CAAC;AAE5B,4EAA4E;AAC5E,sEAAsE;AACtE,IAAI,kBAAkB,GAAoC,CAAC;IACzD,IAAI,CAAC;QACH,EAAE,CAAC,CAAC,IAAI,WAAG,CAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,CAAC,CAAC,CAAC;YACtC,MAAM,CAAC,4BAA4B,KAAY,IAAmB,MAAM,CAAC,IAAI,WAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;QAC7F,CAAC;IACH,CAAE;IAAA,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IACb,CAAC;IACD,MAAM,CAAC,uCAAuC,KAAY;QACxD,IAAI,GAAG,GAAG,IAAI,WAAG,EAAE,CAAC;QACpB,GAAG,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;YACtC,IAAI,IAAI,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC;YACpB,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;QAC5B,CAAC;QACD,MAAM,CAAC,GAAG,CAAC;IACb,CAAC,CAAC;AACJ,CAAC,CAAC,EAAE,CAAC;AACL,IAAI,gBAAgB,GAAwC,CAAC;IAC3D,IAAI,CAAC;QACH,EAAE,CAAC,CAAC,IAAI,WAAG,CAAM,IAAI,WAAG,EAAE,CAAC,CAAC,CAAC,CAAC;YAC5B,MAAM,CAAC,0BAA0B,CAAgB,IAAmB,MAAM,CAAC,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G,CAAC,CAAC,CAAC,CAAC;IACzD,iBAAM,GAAb,UAAiB,CAAS,EAAE,CAAI,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IACpD,iBAAC;AAAD,CAAC,AAJD,IAIC;AAJY,kBAAU,aAItB,CAAA","sourcesContent":["import {getSymbolIterator, global, isArray, isBlank, isJsObject, isPresent} from './lang';\n\nexport var Map = global.Map;\nexport var Set = global.Set;\n\n// Safari and Internet Explorer do not support the iterable parameter to the\n// Map constructor. We work around that by manually adding the items.\nvar createMapFromPairs: {(pairs: any[]): Map<any, any>} = (function() {\n try {\n if (new Map(<any>[[1, 2]]).size === 1) {\n return function createMapFromPairs(pairs: any[]): Map<any, any> { return new Map(pairs); };\n }\n } catch (e) {\n }\n return function createMapAndPopulateFromPairs(pairs: any[]): Map<any, any> {\n var map = new Map();\n for (var i = 0; i < pairs.length; i++) {\n var pair = pairs[i];\n map.set(pair[0], pair[1]);\n }\n return map;\n };\n})();\nvar createMapFromMap: {(m: Map<any, any>): Map<any, any>} = (function() {\n try {\n if (new Map(<any>new Map())) {\n return function createMapFromMap(m: Map<any, any>): Map<any, any> { return new Map(<any>m); };\n }\n } catch (e) {\n }\n return function createMapAndPopulateFromMap(m: Map<any, any>): Map<any, any> {\n var map = new Map();\n m.forEach((v, k) => { map.set(k, v); });\n return map;\n };\n})();\nvar _clearValues: {(m: Map<any, any>): void} = (function() {\n if ((<any>(new Map()).keys()).next) {\n return function _clearValues(m: Map<any, any>) {\n var keyIterator = m.keys();\n var k: any /** TODO #???? */;\n while (!((k = (<any>keyIterator).next()).done)) {\n m.set(k.value, null);\n }\n };\n } else {\n return function _clearValuesWithForeEach(m: Map<any, any>) {\n m.forEach((v, k) => { m.set(k, null); });\n };\n }\n})();\n// Safari doesn't implement MapIterator.next(), which is used is Traceur's polyfill of Array.from\n// TODO(mlaval): remove the work around once we have a working polyfill of Array.from\nvar _arrayFromMap: {(m: Map<any, any>, getValues: boolean): any[]} = (function() {\n try {\n if ((<any>(new Map()).values()).next) {\n return function createArrayFromMap(m: Map<any, any>, getValues: boolean): any[] {\n return getValues ? (<any>Array).from(m.values()) : (<any>Array).from(m.keys());\n };\n }\n } catch (e) {\n }\n return function createArrayFromMapWithForeach(m: Map<any, any>, getValues: boolean): any[] {\n var res = ListWrapper.createFixedSize(m.size), i = 0;\n m.forEach((v, k) => {\n res[i] = getValues ? v : k;\n i++;\n });\n return res;\n };\n})();\n\nexport class MapWrapper {\n static clone<K, V>(m: Map<K, V>): Map<K, V> { return createMapFromMap(m); }\n static createFromStringMap<T>(stringMap: {[key: string]: T}): Map<string, T> {\n var result = new Map<string, T>();\n for (var prop in stringMap) {\n result.set(prop, stringMap[prop]);\n }\n return result;\n }\n static toStringMap<T>(m: Map<string, T>): {[key: string]: T} {\n var r: {[key: string]: T} = {};\n m.forEach((v, k) => r[k] = v);\n return r;\n }\n static createFromPairs(pairs: any[]): Map<any, any> { return createMapFromPairs(pairs); }\n static clearValues(m: Map<any, any>) { _clearValues(m); }\n static iterable<T>(m: T): T { return m; }\n static keys<K>(m: Map<K, any>): K[] { return _arrayFromMap(m, false); }\n static values<V>(m: Map<any, V>): V[] { return _arrayFromMap(m, true); }\n}\n\n/**\n * Wraps Javascript Objects\n */\nexport class StringMapWrapper {\n static create(): {[k: /*any*/ string]: any} {\n // Note: We are not using Object.create(null) here due to\n // performance!\n // http://jsperf.com/ng2-object-create-null\n return {};\n }\n static contains(map: {[key: string]: any}, key: string): boolean {\n return map.hasOwnProperty(key);\n }\n static get<V>(map: {[key: string]: V}, key: string): V {\n return map.hasOwnProperty(key) ? map[key] : undefined;\n }\n static set<V>(map: {[key: string]: V}, key: string, value: V) { map[key] = value; }\n static keys(map: {[key: string]: any}): string[] { return Object.keys(map); }\n static values<T>(map: {[key: string]: T}): T[] {\n return Object.keys(map).reduce((r, a) => {\n r.push(map[a]);\n return r;\n }, []);\n }\n static isEmpty(map: {[key: string]: any}): boolean {\n for (var prop in map) {\n return false;\n }\n return true;\n }\n static delete (map: {[key: string]: any}, key: string) { delete map[key]; }\n static forEach<K, V>(map: {[key: string]: V}, callback: /*(V, K) => void*/ Function) {\n for (var prop in map) {\n if (map.hasOwnProperty(prop)) {\n callback(map[prop], prop);\n }\n }\n }\n\n static merge<V>(m1: {[key: string]: V}, m2: {[key: string]: V}): {[key: string]: V} {\n var m: {[key: string]: V} = {};\n\n for (var attr in m1) {\n if (m1.hasOwnProperty(attr)) {\n m[attr] = m1[attr];\n }\n }\n\n for (var attr in m2) {\n if (m2.hasOwnProperty(attr)) {\n m[attr] = m2[attr];\n }\n }\n\n return m;\n }\n\n static equals<V>(m1: {[key: string]: V}, m2: {[key: string]: V}): boolean {\n var k1 = Object.keys(m1);\n var k2 = Object.keys(m2);\n if (k1.length != k2.length) {\n return false;\n }\n var key: any /** TODO #???? */;\n for (var i = 0; i < k1.length; i++) {\n key = k1[i];\n if (m1[key] !== m2[key]) {\n return false;\n }\n }\n return true;\n }\n}\n\n/**\n * A boolean-valued function over a value, possibly including context information\n * regarding that value's position in an array.\n */\nexport interface Predicate<T> { (value: T, index?: number, array?: T[]): boolean; }\n\nexport class ListWrapper {\n // JS has no way to express a statically fixed size list, but dart does so we\n // keep both methods.\n static createFixedSize(size: number): any[] { return new Array(size); }\n static createGrowableSize(size: number): any[] { return new Array(size); }\n static clone<T>(array: T[]): T[] { return array.slice(0); }\n static forEachWithIndex<T>(array: T[], fn: (t: T, n: number) => void) {\n for (var i = 0; i < array.length; i++) {\n fn(array[i], i);\n }\n }\n static first<T>(array: T[]): T {\n if (!array) return null;\n return array[0];\n }\n static last<T>(array: T[]): T {\n if (!array || array.length == 0) return null;\n return array[array.length - 1];\n }\n static indexOf<T>(array: T[], value: T, startIndex: number = 0): number {\n return array.indexOf(value, startIndex);\n }\n static contains<T>(list: T[], el: T): boolean { return list.indexOf(el) !== -1; }\n static reversed<T>(array: T[]): T[] {\n var a = ListWrapper.clone(array);\n return a.reverse();\n }\n static concat(a: any[], b: any[]): any[] { return a.concat(b); }\n static insert<T>(list: T[], index: number, value: T) { list.splice(index, 0, value); }\n static removeAt<T>(list: T[], index: number): T {\n var res = list[index];\n list.splice(index, 1);\n return res;\n }\n static removeAll<T>(list: T[], items: T[]) {\n for (var i = 0; i < items.length; ++i) {\n var index = list.indexOf(items[i]);\n list.splice(index, 1);\n }\n }\n static remove<T>(list: T[], el: T): boolean {\n var index = list.indexOf(el);\n if (index > -1) {\n list.splice(index, 1);\n return true;\n }\n return false;\n }\n static clear(list: any[]) { list.length = 0; }\n static isEmpty(list: any[]): boolean { return list.length == 0; }\n static fill(list: any[], value: any, start: number = 0, end: number = null) {\n list.fill(value, start, end === null ? list.length : end);\n }\n static equals(a: any[], b: any[]): boolean {\n if (a.length != b.length) return false;\n for (var i = 0; i < a.length; ++i) {\n if (a[i] !== b[i]) return false;\n }\n return true;\n }\n static slice<T>(l: T[], from: number = 0, to: number = null): T[] {\n return l.slice(from, to === null ? undefined : to);\n }\n static splice<T>(l: T[], from: number, length: number): T[] { return l.splice(from, length); }\n static sort<T>(l: T[], compareFn?: (a: T, b: T) => number) {\n if (isPresent(compareFn)) {\n l.sort(compareFn);\n } else {\n l.sort();\n }\n }\n static toString<T>(l: T[]): string { return l.toString(); }\n static toJSON<T>(l: T[]): string { return JSON.stringify(l); }\n\n static maximum<T>(list: T[], predicate: (t: T) => number): T {\n if (list.length == 0) {\n return null;\n }\n var solution: any /** TODO #???? */ = null;\n var maxValue = -Infinity;\n for (var index = 0; index < list.length; index++) {\n var candidate = list[index];\n if (isBlank(candidate)) {\n continue;\n }\n var candidateValue = predicate(candidate);\n if (candidateValue > maxValue) {\n solution = candidate;\n maxValue = candidateValue;\n }\n }\n return solution;\n }\n\n static flatten<T>(list: Array<T|T[]>): T[] {\n var target: any[] /** TODO #???? */ = [];\n _flattenArray(list, target);\n return target;\n }\n\n static addAll<T>(list: Array<T>, source: Array<T>): void {\n for (var i = 0; i < source.length; i++) {\n list.push(source[i]);\n }\n }\n}\n\nfunction _flattenArray(source: any[], target: any[]): any[] {\n if (isPresent(source)) {\n for (var i = 0; i < source.length; i++) {\n var item = source[i];\n if (isArray(item)) {\n _flattenArray(item, target);\n } else {\n target.push(item);\n }\n }\n }\n return target;\n}\n\n\nexport function isListLikeIterable(obj: any): boolean {\n if (!isJsObject(obj)) return false;\n return isArray(obj) ||\n (!(obj instanceof Map) && // JS Map are iterables but return entries as [k, v]\n getSymbolIterator() in obj); // JS Iterable have a Symbol.iterator prop\n}\n\nexport function areIterablesEqual(a: any, b: any, comparator: Function): boolean {\n var iterator1 = a[getSymbolIterator()]();\n var iterator2 = b[getSymbolIterator()]();\n\n while (true) {\n let item1 = iterator1.next();\n let item2 = iterator2.next();\n if (item1.done && item2.done) return true;\n if (item1.done || item2.done) return false;\n if (!comparator(item1.value, item2.value)) return false;\n }\n}\n\nexport function iterateListLike(obj: any, fn: Function) {\n if (isArray(obj)) {\n for (var i = 0; i < obj.length; i++) {\n fn(obj[i]);\n }\n } else {\n var iterator = obj[getSymbolIterator()]();\n var item: any /** TODO #???? */;\n while (!((item = iterator.next()).done)) {\n fn(item.value);\n }\n }\n}\n\n// Safari and Internet Explorer do not support the iterable parameter to the\n// Set constructor. We work around that by manually adding the items.\nvar createSetFromList: {(lst: any[]): Set<any>} = (function() {\n var test = new Set([1, 2, 3]);\n if (test.size === 3) {\n return function createSetFromList(lst: any[]): Set<any> { return new Set(lst); };\n } else {\n return function createSetAndPopulateFromList(lst: any[]): Set<any> {\n var res = new Set(lst);\n if (res.size !== lst.length) {\n for (var i = 0; i < lst.length; i++) {\n res.add(lst[i]);\n }\n }\n return res;\n };\n }\n})();\nexport class SetWrapper {\n static createFromList<T>(lst: T[]): Set<T> { return createSetFromList(lst); }\n static has<T>(s: Set<T>, key: T): boolean { return s.has(key); }\n static delete<K>(m: Set<K>, k: K) { m.delete(k); }\n}\n"]} |