Kargi-Sitesi/.angular/cache/18.2.11/babel-webpack/4d57d57d41515d23b52d3ab449d34b5af739b7dbe823fd448594928f6924fdb2.json

1 line
No EOL
3.7 KiB
JSON

{"ast":null,"code":"import { Subscriber } from '../Subscriber';\nimport { ArgumentOutOfRangeError } from '../util/ArgumentOutOfRangeError';\nimport { empty } from '../observable/empty';\nexport function take(count) {\n return source => {\n if (count === 0) {\n return empty();\n } else {\n return source.lift(new TakeOperator(count));\n }\n };\n}\nclass TakeOperator {\n constructor(total) {\n this.total = total;\n if (this.total < 0) {\n throw new ArgumentOutOfRangeError();\n }\n }\n call(subscriber, source) {\n return source.subscribe(new TakeSubscriber(subscriber, this.total));\n }\n}\nclass TakeSubscriber extends Subscriber {\n constructor(destination, total) {\n super(destination);\n this.total = total;\n this.count = 0;\n }\n _next(value) {\n const total = this.total;\n const count = ++this.count;\n if (count <= total) {\n this.destination.next(value);\n if (count === total) {\n this.destination.complete();\n this.unsubscribe();\n }\n }\n }\n}","map":{"version":3,"names":["Subscriber","ArgumentOutOfRangeError","empty","take","count","source","lift","TakeOperator","constructor","total","call","subscriber","subscribe","TakeSubscriber","destination","_next","value","next","complete","unsubscribe"],"sources":["/home/arctichawk1/Desktop/Projects/Public/Kargi-Sitesi/node_modules/rxjs/_esm2015/internal/operators/take.js"],"sourcesContent":["import { Subscriber } from '../Subscriber';\nimport { ArgumentOutOfRangeError } from '../util/ArgumentOutOfRangeError';\nimport { empty } from '../observable/empty';\nexport function take(count) {\n return (source) => {\n if (count === 0) {\n return empty();\n }\n else {\n return source.lift(new TakeOperator(count));\n }\n };\n}\nclass TakeOperator {\n constructor(total) {\n this.total = total;\n if (this.total < 0) {\n throw new ArgumentOutOfRangeError;\n }\n }\n call(subscriber, source) {\n return source.subscribe(new TakeSubscriber(subscriber, this.total));\n }\n}\nclass TakeSubscriber extends Subscriber {\n constructor(destination, total) {\n super(destination);\n this.total = total;\n this.count = 0;\n }\n _next(value) {\n const total = this.total;\n const count = ++this.count;\n if (count <= total) {\n this.destination.next(value);\n if (count === total) {\n this.destination.complete();\n this.unsubscribe();\n }\n }\n }\n}\n"],"mappings":"AAAA,SAASA,UAAU,QAAQ,eAAe;AAC1C,SAASC,uBAAuB,QAAQ,iCAAiC;AACzE,SAASC,KAAK,QAAQ,qBAAqB;AAC3C,OAAO,SAASC,IAAIA,CAACC,KAAK,EAAE;EACxB,OAAQC,MAAM,IAAK;IACf,IAAID,KAAK,KAAK,CAAC,EAAE;MACb,OAAOF,KAAK,CAAC,CAAC;IAClB,CAAC,MACI;MACD,OAAOG,MAAM,CAACC,IAAI,CAAC,IAAIC,YAAY,CAACH,KAAK,CAAC,CAAC;IAC/C;EACJ,CAAC;AACL;AACA,MAAMG,YAAY,CAAC;EACfC,WAAWA,CAACC,KAAK,EAAE;IACf,IAAI,CAACA,KAAK,GAAGA,KAAK;IAClB,IAAI,IAAI,CAACA,KAAK,GAAG,CAAC,EAAE;MAChB,MAAM,IAAIR,uBAAuB,CAAD,CAAC;IACrC;EACJ;EACAS,IAAIA,CAACC,UAAU,EAAEN,MAAM,EAAE;IACrB,OAAOA,MAAM,CAACO,SAAS,CAAC,IAAIC,cAAc,CAACF,UAAU,EAAE,IAAI,CAACF,KAAK,CAAC,CAAC;EACvE;AACJ;AACA,MAAMI,cAAc,SAASb,UAAU,CAAC;EACpCQ,WAAWA,CAACM,WAAW,EAAEL,KAAK,EAAE;IAC5B,KAAK,CAACK,WAAW,CAAC;IAClB,IAAI,CAACL,KAAK,GAAGA,KAAK;IAClB,IAAI,CAACL,KAAK,GAAG,CAAC;EAClB;EACAW,KAAKA,CAACC,KAAK,EAAE;IACT,MAAMP,KAAK,GAAG,IAAI,CAACA,KAAK;IACxB,MAAML,KAAK,GAAG,EAAE,IAAI,CAACA,KAAK;IAC1B,IAAIA,KAAK,IAAIK,KAAK,EAAE;MAChB,IAAI,CAACK,WAAW,CAACG,IAAI,CAACD,KAAK,CAAC;MAC5B,IAAIZ,KAAK,KAAKK,KAAK,EAAE;QACjB,IAAI,CAACK,WAAW,CAACI,QAAQ,CAAC,CAAC;QAC3B,IAAI,CAACC,WAAW,CAAC,CAAC;MACtB;IACJ;EACJ;AACJ","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]}