Kargi-Sitesi/.angular/cache/18.2.11/babel-webpack/2976a3ebca288d85a9cdd7135bc095f35fdad3ad7496e51087d8a72a768d698f.json

1 line
2.2 KiB
JSON
Raw Permalink Normal View History

2024-11-04 02:30:09 +00:00
{"ast":null,"code":"import { ArgumentOutOfRangeError } from '../util/ArgumentOutOfRangeError';\nimport { filter } from './filter';\nimport { throwIfEmpty } from './throwIfEmpty';\nimport { defaultIfEmpty } from './defaultIfEmpty';\nimport { take } from './take';\nexport function elementAt(index, defaultValue) {\n if (index < 0) {\n throw new ArgumentOutOfRangeError();\n }\n const hasDefaultValue = arguments.length >= 2;\n return source => source.pipe(filter((v, i) => i === index), take(1), hasDefaultValue ? defaultIfEmpty(defaultValue) : throwIfEmpty(() => new ArgumentOutOfRangeError()));\n}","map":{"version":3,"names":["ArgumentOutOfRangeError","filter","throwIfEmpty","defaultIfEmpty","take","elementAt","index","defaultValue","hasDefaultValue","arguments","length","source","pipe","v","i"],"sources":["/home/arctichawk1/Desktop/Projects/Public/Kargi-Sitesi/node_modules/rxjs/_esm2015/internal/operators/elementAt.js"],"sourcesContent":["import { ArgumentOutOfRangeError } from '../util/ArgumentOutOfRangeError';\nimport { filter } from './filter';\nimport { throwIfEmpty } from './throwIfEmpty';\nimport { defaultIfEmpty } from './defaultIfEmpty';\nimport { take } from './take';\nexport function elementAt(index, defaultValue) {\n if (index < 0) {\n throw new ArgumentOutOfRangeError();\n }\n const hasDefaultValue = arguments.length >= 2;\n return (source) => source.pipe(filter((v, i) => i === index), take(1), hasDefaultValue\n ? defaultIfEmpty(defaultValue)\n : throwIfEmpty(() => new ArgumentOutOfRangeError()));\n}\n"],"mappings":"AAAA,SAASA,uBAAuB,QAAQ,iCAAiC;AACzE,SAASC,MAAM,QAAQ,UAAU;AACjC,SAASC,YAAY,QAAQ,gBAAgB;AAC7C,SAASC,cAAc,QAAQ,kBAAkB;AACjD,SAASC,IAAI,QAAQ,QAAQ;AAC7B,OAAO,SAASC,SAASA,CAACC,KAAK,EAAEC,YAAY,EAAE;EAC3C,IAAID,KAAK,GAAG,CAAC,EAAE;IACX,MAAM,IAAIN,uBAAuB,CAAC,CAAC;EACvC;EACA,MAAMQ,eAAe,GAAGC,SAAS,CAACC,MAAM,IAAI,CAAC;EAC7C,OAAQC,MAAM,IAAKA,MAAM,CAACC,IAAI,CAACX,MAAM,CAAC,CAACY,CAAC,EAAEC,CAAC,KAAKA,CAAC,KAAKR,KAAK,CAAC,EAAEF,IAAI,CAAC,CAAC,CAAC,EAAEI,eAAe,GAChFL,cAAc,CAACI,YAAY,CAAC,GAC5BL,YAAY,CAAC,MAAM,IAAIF,uBAAuB,CAAC,CAAC,CAAC,CAAC;AAC5D","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]}