blob: 7a12994026cd133d4b86d35928c09f3ec8611331 [file] [log] [blame]
/**
* @license Angular v8.0.0-beta.10+1.sha-a28b3e3
* (c) 2010-2019 Google LLC. https://angular.io/
* License: MIT
*/
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("rxjs"),require("@angular/platform-browser")):"function"==typeof define&&define.amd?define("@angular/http",["exports","@angular/core","rxjs","@angular/platform-browser"],t):t(((e=e||self).ng=e.ng||{},e.ng.http={}),e.ng.core,e.rxjs,e.ng.platformBrowser)}(this,function(e,t,n,r){"use strict";var o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function s(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function a(e,t,n,r){var o,s=arguments.length,a=s<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var i=e.length-1;i>=0;i--)(o=e[i])&&(a=(s<3?o(a):s>3?o(t,n,a):o(t,n))||a);return s>3&&a&&Object.defineProperty(t,n,a),a}function i(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function u(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,s=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=s.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=s.return)&&n.call(s)}finally{if(o)throw o.error}}return a}
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
var p,c,l,h,d,f=function(){function e(){}return e.prototype.build=function(){return new XMLHttpRequest},a([t.Injectable(),i("design:paramtypes",[])],e)}();
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/(
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
p=e.RequestMethod||(e.RequestMethod={}))[p.Get=0]="Get",p[p.Post=1]="Post",p[p.Put=2]="Put",p[p.Delete=3]="Delete",p[p.Options=4]="Options",p[p.Head=5]="Head",p[p.Patch=6]="Patch",(c=e.ReadyState||(e.ReadyState={}))[c.Unsent=0]="Unsent",c[c.Open=1]="Open",c[c.HeadersReceived=2]="HeadersReceived",c[c.Loading=3]="Loading",c[c.Done=4]="Done",c[c.Cancelled=5]="Cancelled",(l=e.ResponseType||(e.ResponseType={}))[l.Basic=0]="Basic",l[l.Cors=1]="Cors",l[l.Default=2]="Default",l[l.Error=3]="Error",l[l.Opaque=4]="Opaque",function(e){e[e.NONE=0]="NONE",e[e.JSON=1]="JSON",e[e.FORM=2]="FORM",e[e.FORM_DATA=3]="FORM_DATA",e[e.TEXT=4]="TEXT",e[e.BLOB=5]="BLOB",e[e.ARRAY_BUFFER=6]="ARRAY_BUFFER"}(h||(h={})),(d=e.ResponseContentType||(e.ResponseContentType={}))[d.Text=0]="Text",d[d.Json=1]="Json",d[d.ArrayBuffer=2]="ArrayBuffer",d[d.Blob=3]="Blob";
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
var y=function(){function e(t){var n=this;this._headers=new Map,this._normalizedNames=new Map,t&&(t instanceof e?t.forEach(function(e,t){e.forEach(function(e){return n.append(t,e)})}):Object.keys(t).forEach(function(e){var r=Array.isArray(t[e])?t[e]:[t[e]];n.delete(e),r.forEach(function(t){return n.append(e,t)})}))}return e.fromResponseHeaderString=function(t){var n=new e;return t.split("\n").forEach(function(e){var t=e.indexOf(":");if(t>0){var r=e.slice(0,t),o=e.slice(t+1).trim();n.set(r,o)}}),n},e.prototype.append=function(e,t){var n=this.getAll(e);null===n?this.set(e,t):n.push(t)},e.prototype.delete=function(e){var t=e.toLowerCase();this._normalizedNames.delete(t),this._headers.delete(t)},e.prototype.forEach=function(e){var t=this;this._headers.forEach(function(n,r){return e(n,t._normalizedNames.get(r),t._headers)})},e.prototype.get=function(e){var t=this.getAll(e);return null===t?null:t.length>0?t[0]:null},e.prototype.has=function(e){return this._headers.has(e.toLowerCase())},e.prototype.keys=function(){return Array.from(this._normalizedNames.values())},e.prototype.set=function(e,t){Array.isArray(t)?t.length&&this._headers.set(e.toLowerCase(),[t.join(",")]):this._headers.set(e.toLowerCase(),[t]),this.mayBeSetNormalizedName(e)},e.prototype.values=function(){return Array.from(this._headers.values())},e.prototype.toJSON=function(){var e=this,t={};return this._headers.forEach(function(n,r){var o=[];n.forEach(function(e){return o.push.apply(o,function t(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(u(arguments[t]));return e}(e.split(",")))}),t[e._normalizedNames.get(r)]=o}),t},e.prototype.getAll=function(e){return this.has(e)&&this._headers.get(e.toLowerCase())||null},e.prototype.entries=function(){throw new Error('"entries" method is not implemented on Headers class')},e.prototype.mayBeSetNormalizedName=function(e){var t=e.toLowerCase();this._normalizedNames.has(t)||this._normalizedNames.set(t,e)},e}(),m=function(){function e(e){void 0===e&&(e={});var t=e.body,n=e.status,r=e.headers,o=e.statusText,s=e.type,a=e.url;this.body=null!=t?t:null,this.status=null!=n?n:null,this.headers=null!=r?r:null,this.statusText=null!=o?o:null,this.type=null!=s?s:null,this.url=null!=a?a:null}return e.prototype.merge=function(t){return new e({body:t&&null!=t.body?t.body:this.body,status:t&&null!=t.status?t.status:this.status,headers:t&&null!=t.headers?t.headers:this.headers,statusText:t&&null!=t.statusText?t.statusText:this.statusText,type:t&&null!=t.type?t.type:this.type,url:t&&null!=t.url?t.url:this.url})},e}(),_=function(n){function r(){return n.call(this,{status:200,statusText:"Ok",type:e.ResponseType.Default,headers:new y})||this}return s(r,n),a([t.Injectable(),i("design:paramtypes",[])],r)}(m),b=function b(){},g=function g(){},R=function R(){};
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
function w(t){if("string"!=typeof t)return t;switch(t.toUpperCase()){case"GET":return e.RequestMethod.Get;case"POST":return e.RequestMethod.Post;case"PUT":return e.RequestMethod.Put;case"DELETE":return e.RequestMethod.Delete;case"OPTIONS":return e.RequestMethod.Options;case"HEAD":return e.RequestMethod.Head;case"PATCH":return e.RequestMethod.Patch}throw new Error('Invalid request method. The method "'+t+'" is not supported.')}var v=function(e){return e>=200&&e<300},O=function(){function e(){}return e.prototype.encodeKey=function(e){return T(e)},e.prototype.encodeValue=function(e){return T(e)},e}();function T(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}var C=function(){function e(e,t){void 0===e&&(e=""),void 0===t&&(t=new O),this.rawParams=e,this.queryEncoder=t,this.paramsMap=
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
function n(e){void 0===e&&(e="");var t=new Map;return e.length>0&&e.split("&").forEach(function(e){var n=e.indexOf("="),r=u(-1==n?[e,""]:[e.slice(0,n),e.slice(n+1)],2),o=r[0],s=r[1],a=t.get(o)||[];a.push(s),t.set(o,a)}),t}(e)}return e.prototype.clone=function(){var t=new e("",this.queryEncoder);return t.appendAll(this),t},e.prototype.has=function(e){return this.paramsMap.has(e)},e.prototype.get=function(e){var t=this.paramsMap.get(e);return Array.isArray(t)?t[0]:null},e.prototype.getAll=function(e){return this.paramsMap.get(e)||[]},e.prototype.set=function(e,t){if(null!=t){var n=this.paramsMap.get(e)||[];n.length=0,n.push(t),this.paramsMap.set(e,n)}else this.delete(e)},e.prototype.setAll=function(e){var t=this;e.paramsMap.forEach(function(e,n){var r=t.paramsMap.get(n)||[];r.length=0,r.push(e[0]),t.paramsMap.set(n,r)})},e.prototype.append=function(e,t){if(null!=t){var n=this.paramsMap.get(e)||[];n.push(t),this.paramsMap.set(e,n)}},e.prototype.appendAll=function(e){var t=this;e.paramsMap.forEach(function(e,n){for(var r=t.paramsMap.get(n)||[],o=0;o<e.length;++o)r.push(e[o]);t.paramsMap.set(n,r)})},e.prototype.replaceAll=function(e){var t=this;e.paramsMap.forEach(function(e,n){var r=t.paramsMap.get(n)||[];r.length=0;for(var o=0;o<e.length;++o)r.push(e[o]);t.paramsMap.set(n,r)})},e.prototype.toString=function(){var e=this,t=[];return this.paramsMap.forEach(function(n,r){n.forEach(function(n){return t.push(e.queryEncoder.encodeKey(r)+"="+e.queryEncoder.encodeValue(n))})}),t.join("&")},e.prototype.delete=function(e){this.paramsMap.delete(e)},e}(),E=function(){function e(){}return e.prototype.json=function(){return"string"==typeof this._body?JSON.parse(this._body):this._body instanceof ArrayBuffer?JSON.parse(this.text()):this._body},e.prototype.text=function(e){if(void 0===e&&(e="legacy"),this._body instanceof C)return this._body.toString();if(this._body instanceof ArrayBuffer)switch(e){case"legacy":return String.fromCharCode.apply(null,new Uint16Array(this._body));case"iso-8859":return String.fromCharCode.apply(null,new Uint8Array(this._body));default:throw new Error("Invalid value for encodingHint: "+e)}return null==this._body?"":"object"==typeof this._body?JSON.stringify(this._body,null,2):this._body.toString()},e.prototype.arrayBuffer=function(){return this._body instanceof ArrayBuffer?this._body:function e(t){for(var n=new Uint16Array(t.length),r=0,o=t.length;r<o;r++)n[r]=t.charCodeAt(r);return n.buffer}(this.text())},e.prototype.blob=function(){if(this._body instanceof Blob)return this._body;if(this._body instanceof ArrayBuffer)return new Blob([this._body]);throw new Error("The request body isn't either a blob or an array buffer")},e}(),A=function(e){function t(t){var n=e.call(this)||this;return n._body=t.body,n.status=t.status,n.ok=n.status>=200&&n.status<=299,n.statusText=t.statusText,n.headers=t.headers,n.type=t.type,n.url=t.url,n}return s(t,e),t.prototype.toString=function(){return"Response with status: "+this.status+" "+this.statusText+" for URL: "+this.url},t}(E),S=0,q="__ng_jsonp__",M=null;
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/function B(){var e="object"==typeof window?window:{};return null===M&&(M=e[q]={}),M}var N=function(){function e(){}return e.prototype.build=function(e){var t=document.createElement("script");return t.src=e,t},e.prototype.nextRequestID=function(){return"__req"+S++},e.prototype.requestCallback=function(e){return q+"."+e+".finished"},e.prototype.exposeConnection=function(e,t){B()[e]=t},e.prototype.removeConnection=function(e){B()[e]=null},e.prototype.send=function(e){document.body.appendChild(e)},e.prototype.cleanup=function(e){e.parentNode&&e.parentNode.removeChild(e)},a([t.Injectable()],e)}(),x="JSONP injected script did not invoke callback.",P="JSONP requests must use GET request method.",L=function(){function t(t,r,o){var s=this;if(this._dom=r,this.baseResponseOptions=o,this._finished=!1,t.method!==e.RequestMethod.Get)throw new TypeError(P);this.request=t,this.response=new n.Observable(function(n){s.readyState=e.ReadyState.Loading;var a=s._id=r.nextRequestID();r.exposeConnection(a,s);var i=r.requestCallback(s._id),u=t.url;u.indexOf("=JSONP_CALLBACK&")>-1?u=u.replace("=JSONP_CALLBACK&","="+i+"&"):u.lastIndexOf("=JSONP_CALLBACK")===u.length-"=JSONP_CALLBACK".length&&(u=u.substring(0,u.length-"=JSONP_CALLBACK".length)+"="+i);var p=s._script=r.build(u),c=function(t){if(s.readyState!==e.ReadyState.Cancelled){if(s.readyState=e.ReadyState.Done,r.cleanup(p),!s._finished){var a=new m({body:x,type:e.ResponseType.Error,url:u});return o&&(a=o.merge(a)),void n.error(new A(a))}var i=new m({body:s._responseData,url:u});s.baseResponseOptions&&(i=s.baseResponseOptions.merge(i)),n.next(new A(i)),n.complete()}},l=function(t){if(s.readyState!==e.ReadyState.Cancelled){s.readyState=e.ReadyState.Done,r.cleanup(p);var a=new m({body:t.message,type:e.ResponseType.Error});o&&(a=o.merge(a)),n.error(new A(a))}};return p.addEventListener("load",c),p.addEventListener("error",l),r.send(p),function(){s.readyState=e.ReadyState.Cancelled,p.removeEventListener("load",c),p.removeEventListener("error",l),s._dom.cleanup(p)}})}return t.prototype.finished=function(t){this._finished=!0,this._dom.removeConnection(this._id),this.readyState!==e.ReadyState.Cancelled&&(this._responseData=t)},t}(),j=function(e){function n(t,n){var r=e.call(this)||this;return r._browserJSONP=t,r._baseResponseOptions=n,r}return s(n,e),n.prototype.createConnection=function(e){return new L(e,this._browserJSONP,this._baseResponseOptions)},a([t.Injectable(),i("design:paramtypes",[N,m])],n)}(b),k=/^\)\]\}',?\n/,F=function(){function t(t,r,o){var s=this;this.request=t,this.response=new n.Observable(function(n){var a=r.build();a.open(e.RequestMethod[t.method].toUpperCase(),t.url),null!=t.withCredentials&&(a.withCredentials=t.withCredentials);var i=function(){var e=1223===a.status?204:a.status,r=null;204!==e&&"string"==typeof(r=void 0===a.response?a.responseText:a.response)&&(r=r.replace(k,"")),0===e&&(e=r?200:0);var s=y.fromResponseHeaderString(a.getAllResponseHeaders()),i=function u(e){return"responseURL"in e?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(a)||t.url,p=new m({body:r,status:e,headers:s,statusText:a.statusText||"OK",url:i});null!=o&&(p=o.merge(p));var c=new A(p);if(c.ok=v(e),c.ok)return n.next(c),void n.complete();n.error(c)},u=function(t){var r=new m({body:t,type:e.ResponseType.Error,status:a.status,statusText:a.statusText});null!=o&&(r=o.merge(r)),n.error(new A(r))};if(s.setDetectedContentType(t,a),null==t.headers&&(t.headers=new y),t.headers.has("Accept")||t.headers.append("Accept","application/json, text/plain, */*"),t.headers.forEach(function(e,t){return a.setRequestHeader(t,e.join(","))}),null!=t.responseType&&null!=a.responseType)switch(t.responseType){case e.ResponseContentType.ArrayBuffer:a.responseType="arraybuffer";break;case e.ResponseContentType.Json:a.responseType="json";break;case e.ResponseContentType.Text:a.responseType="text";break;case e.ResponseContentType.Blob:a.responseType="blob";break;default:throw new Error("The selected responseType is not supported")}return a.addEventListener("load",i),a.addEventListener("error",u),a.send(s.request.getBody()),function(){a.removeEventListener("load",i),a.removeEventListener("error",u),a.abort()}})}return t.prototype.setDetectedContentType=function(e,t){if(null==e.headers||null==e.headers.get("Content-Type"))switch(e.contentType){case h.NONE:break;case h.JSON:t.setRequestHeader("content-type","application/json");break;case h.FORM:t.setRequestHeader("content-type","application/x-www-form-urlencoded;charset=UTF-8");break;case h.TEXT:t.setRequestHeader("content-type","text/plain");break;case h.BLOB:var n=e.blob();n.type&&t.setRequestHeader("content-type",n.type)}},t}(),D=function(){function e(e,t){void 0===e&&(e="XSRF-TOKEN"),void 0===t&&(t="X-XSRF-TOKEN"),this._cookieName=e,this._headerName=t}return e.prototype.configureRequest=function(e){var t=rgetDOM().getCookie(this._cookieName);t&&e.headers.set(this._headerName,t)},e}(),H=function(){function e(e,t,n){this._browserXHR=e,this._baseResponseOptions=t,this._xsrfStrategy=n}return e.prototype.createConnection=function(e){return this._xsrfStrategy.configureRequest(e),new F(e,this._browserXHR,this._baseResponseOptions)},a([t.Injectable(),i("design:paramtypes",[f,m,R])],e)}(),J=function(){function e(e){void 0===e&&(e={});var t=e.method,n=e.headers,r=e.body,o=e.url,s=e.search,a=e.params,i=e.withCredentials,u=e.responseType;this.method=null!=t?w(t):null,this.headers=null!=n?n:null,this.body=null!=r?r:null,this.url=null!=o?o:null,this.params=this._mergeSearchParams(a||s),this.withCredentials=null!=i?i:null,this.responseType=null!=u?u:null}return Object.defineProperty(e.prototype,"search",{get:function(){return this.params},set:function(e){this.params=e},enumerable:!0,configurable:!0}),e.prototype.merge=function(t){return new e({method:t&&null!=t.method?t.method:this.method,headers:t&&null!=t.headers?t.headers:new y(this.headers),body:t&&null!=t.body?t.body:this.body,url:t&&null!=t.url?t.url:this.url,params:t&&this._mergeSearchParams(t.params||t.search),withCredentials:t&&null!=t.withCredentials?t.withCredentials:this.withCredentials,responseType:t&&null!=t.responseType?t.responseType:this.responseType})},e.prototype._mergeSearchParams=function(e){return e?e instanceof C?e.clone():"string"==typeof e?new C(e):this._parseParams(e):this.params},e.prototype._parseParams=function(e){var t=this;void 0===e&&(e={});var n=new C;return Object.keys(e).forEach(function(r){var o=e[r];Array.isArray(o)?o.forEach(function(e){return t._appendParam(r,e,n)}):t._appendParam(r,o,n)}),n},e.prototype._appendParam=function(e,t,n){"string"!=typeof t&&(t=JSON.stringify(t)),n.append(e,t)},e}(),U=function(n){function r(){return n.call(this,{method:e.RequestMethod.Get,headers:new y})||this}return s(r,n),a([t.Injectable(),i("design:paramtypes",[])],r)}(J),X=function(e){function t(t){var n=e.call(this)||this,r=t.url;n.url=t.url;var o,s=t.params||t.search;if(s&&(o="object"!=typeof s||s instanceof C?s.toString():function a(e){var t=new C;return Object.keys(e).forEach(function(n){var r=e[n];r&&Array.isArray(r)?r.forEach(function(e){return t.append(n,e.toString())}):t.append(n,r.toString())}),t}(s).toString()).length>0){var i="?";-1!=n.url.indexOf("?")&&(i="&"==n.url[n.url.length-1]?"":"&"),n.url=r+i+o}return n._body=t.body,n.method=w(t.method),n.headers=new y(t.headers),n.contentType=n.detectContentType(),n.withCredentials=t.withCredentials,n.responseType=t.responseType,n}return s(t,e),t.prototype.detectContentType=function(){switch(this.headers.get("content-type")){case"application/json":return h.JSON;case"application/x-www-form-urlencoded":return h.FORM;case"multipart/form-data":return h.FORM_DATA;case"text/plain":case"text/html":return h.TEXT;case"application/octet-stream":return this._body instanceof Y?h.ARRAY_BUFFER:h.BLOB;default:return this.detectContentTypeFromBody()}},t.prototype.detectContentTypeFromBody=function(){return null==this._body?h.NONE:this._body instanceof C?h.FORM:this._body instanceof K?h.FORM_DATA:this._body instanceof z?h.BLOB:this._body instanceof Y?h.ARRAY_BUFFER:this._body&&"object"==typeof this._body?h.JSON:h.TEXT},t.prototype.getBody=function(){switch(this.contentType){case h.JSON:case h.FORM:return this.text();case h.FORM_DATA:return this._body;case h.TEXT:return this.text();case h.BLOB:return this.blob();case h.ARRAY_BUFFER:return this.arrayBuffer();default:return null}},t}(E),I=function(){},G="object"==typeof window?window:I,K=G.FormData||I,z=G.Blob||I,Y=G.ArrayBuffer||I;
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
function V(e,t){return e.createConnection(t).response}function Q(e,t,n,r){return e.merge(new J(t?{method:t.method||n,url:t.url||r,search:t.search,params:t.params,headers:t.headers,body:t.body,withCredentials:t.withCredentials,responseType:t.responseType}:{method:n,url:r}))}var $=function(){function n(e,t){this._backend=e,this._defaultOptions=t}return n.prototype.request=function(t,n){var r;if("string"==typeof t)r=V(this._backend,new X(Q(this._defaultOptions,n,e.RequestMethod.Get,t)));else{if(!(t instanceof X))throw new Error("First argument must be a url string or Request instance.");r=V(this._backend,t)}return r},n.prototype.get=function(t,n){return this.request(new X(Q(this._defaultOptions,n,e.RequestMethod.Get,t)))},n.prototype.post=function(t,n,r){return this.request(new X(Q(this._defaultOptions.merge(new J({body:n})),r,e.RequestMethod.Post,t)))},n.prototype.put=function(t,n,r){return this.request(new X(Q(this._defaultOptions.merge(new J({body:n})),r,e.RequestMethod.Put,t)))},n.prototype.delete=function(t,n){return this.request(new X(Q(this._defaultOptions,n,e.RequestMethod.Delete,t)))},n.prototype.patch=function(t,n,r){return this.request(new X(Q(this._defaultOptions.merge(new J({body:n})),r,e.RequestMethod.Patch,t)))},n.prototype.head=function(t,n){return this.request(new X(Q(this._defaultOptions,n,e.RequestMethod.Head,t)))},n.prototype.options=function(t,n){return this.request(new X(Q(this._defaultOptions,n,e.RequestMethod.Options,t)))},a([t.Injectable(),i("design:paramtypes",[b,J])],n)}(),W=function(n){function r(e,t){return n.call(this,e,t)||this}return s(r,n),r.prototype.request=function(t,n){if("string"==typeof t&&(t=new X(Q(this._defaultOptions,n,e.RequestMethod.Get,t))),!(t instanceof X))throw new Error("First argument must be a url string or Request instance.");if(t.method!==e.RequestMethod.Get)throw new Error("JSONP requests must use GET request method.");return V(this._backend,t)},a([t.Injectable(),i("design:paramtypes",[b,J])],r)}($);
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
function Z(){return new D}function ee(e,t){return new $(e,t)}function te(e,t){return new W(e,t)}var ne=function(){return a([t.NgModule({providers:[{provide:$,useFactory:ee,deps:[H,J]},f,{provide:J,useClass:U},{provide:m,useClass:_},H,{provide:R,useFactory:Z}]})],function e(){})}(),re=function(){return a([t.NgModule({providers:[{provide:W,useFactory:te,deps:[j,J]},N,{provide:J,useClass:U},{provide:m,useClass:_},j]})],function e(){})}(),oe=new t.Version("8.0.0-beta.10+1.sha-a28b3e3");
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
eangular_packages_http_http_e=N,eangular_packages_http_http_f=E,eangular_packages_http_http_a=Z,eangular_packages_http_http_b=ee,eangular_packages_http_http_c=te,e.BrowserXhr=f,e.JSONPBackend=j,e.JSONPConnection=L,e.CookieXSRFStrategy=D,e.XHRBackend=H,e.XHRConnection=F,e.BaseRequestOptions=U,e.RequestOptions=J,e.BaseResponseOptions=_,e.ResponseOptions=m,e.Headers=y,e.Http=$,e.Jsonp=W,e.HttpModule=ne,e.JsonpModule=re,e.Connection=g,e.ConnectionBackend=b,e.XSRFStrategy=R,e.Request=X,e.Response=A,e.QueryEncoder=O,e.URLSearchParams=C,e.VERSION=oe,Object.defineProperty(e,"__esModule",{value:!0})});