-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path2924-b754fea40917b5dd1871.js
1 lines (1 loc) · 73.8 KB
/
2924-b754fea40917b5dd1871.js
1
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2924],{8664:function(t,e){var r,n,o;"undefined"===typeof self||self,n=[],void 0===(o="function"===typeof(r=function(){var t=function(t,e){if(!t||"string"!=typeof t)throw new SyntaxError("Not enough arguments");this.URL=t,this.setOptions(e);var r=this;setTimeout((function(){r.poll()}),0)};if(t.prototype={CONNECTING:0,OPEN:1,CLOSED:2,defaultOptions:{loggingEnabled:!1,loggingPrefix:"eventsource",interval:500,bufferSizeLimit:262144,silentTimeout:3e5,getArgs:{evs_buffer_size_limit:262144},xhrHeaders:{Accept:"text/event-stream","Cache-Control":"no-cache","X-Requested-With":"XMLHttpRequest"}},setOptions:function(t){var e,r=this.defaultOptions;for(e in r)r.hasOwnProperty(e)&&(this[e]=r[e]);for(e in t)e in r&&t.hasOwnProperty(e)&&(this[e]=t[e]);this.getArgs&&this.bufferSizeLimit&&(this.getArgs.evs_buffer_size_limit=this.bufferSizeLimit),"undefined"!==typeof console&&"undefined"!==typeof console.log||(this.loggingEnabled=!1)},log:function(t){this.loggingEnabled&&console.log("["+this.loggingPrefix+"]:"+t)},poll:function(){try{if(this.readyState==this.CLOSED)return;this.cleanup(),this.readyState=this.CONNECTING,this.cursor=0,this.cache="",this._xhr=new this.XHR(this),this.resetNoActivityTimer()}catch(t){this.log("There were errors inside the pool try-catch"),this.dispatchEvent("error",{type:"error",data:t.message})}},pollAgain:function(t){var e=this;e.readyState=e.CONNECTING,e.dispatchEvent("error",{type:"error",data:"Reconnecting "}),this._pollTimer=setTimeout((function(){e.poll()}),t||0)},cleanup:function(){this.log("evs cleaning up"),this._pollTimer&&(clearInterval(this._pollTimer),this._pollTimer=null),this._noActivityTimer&&(clearInterval(this._noActivityTimer),this._noActivityTimer=null),this._xhr&&(this._xhr.abort(),this._xhr=null)},resetNoActivityTimer:function(){if(this.silentTimeout){this._noActivityTimer&&clearInterval(this._noActivityTimer);var t=this;this._noActivityTimer=setTimeout((function(){t.log("Timeout! silentTImeout:"+t.silentTimeout),t.pollAgain()}),this.silentTimeout)}},close:function(){this.readyState=this.CLOSED,this.log("Closing connection. readyState: "+this.readyState),this.cleanup()},_onxhrdata:function(){var t=this._xhr;if(t.isReady()&&!t.hasError()){this.resetNoActivityTimer(),this.readyState==this.CONNECTING&&(this.readyState=this.OPEN,this.dispatchEvent("open",{type:"open"}));var e=t.getBuffer();e.length>this.bufferSizeLimit&&(this.log("buffer.length > this.bufferSizeLimit"),this.pollAgain()),0==this.cursor&&e.length>0&&"\ufeff"==e.substring(0,1)&&(this.cursor=1);var r=this.lastMessageIndex(e);if(r[0]>=this.cursor){var n=r[1],o=e.substring(this.cursor,n);this.parseStream(o),this.cursor=n}t.isDone()&&(this.log("request.isDone(). reopening the connection"),this.pollAgain(this.interval))}else this.readyState!==this.CLOSED&&(this.log("this.readyState !== this.CLOSED"),this.pollAgain(this.interval))},parseStream:function(t){var e,n,o,i,s,a,c=(t=this.cache+this.normalizeToLF(t)).split("\n\n");for(e=0;e<c.length-1;e++){o="message",i=[];var u=c[e].split("\n");for(n=0;n<u.length;n++)0==(s=this.trimWhiteSpace(u[n])).indexOf("event")?o=s.replace(/event:?\s*/,""):0==s.indexOf("retry")?(a=parseInt(s.replace(/retry:?\s*/,""),10),isNaN(a)||(this.interval=a)):0==s.indexOf("data")?i.push(s.replace(/data:?\s*/,"")):0==s.indexOf("id:")?this.lastEventId=s.replace(/id:?\s*/,""):0==s.indexOf("id")&&(this.lastEventId=null);if(i.length&&this.readyState!=this.CLOSED){var f=new r(o,i.join("\n"),"undefined"!==typeof window&&"undefined"!==typeof window.location?window.location.origin:null,this.lastEventId);this.dispatchEvent(o,f)}}this.cache=c[c.length-1]},dispatchEvent:function(t,e){var r=this["_"+t+"Handlers"];if(r)for(var n=0;n<r.length;n++)r[n].call(this,e);this["on"+t]&&this["on"+t].call(this,e)},addEventListener:function(t,e){this["_"+t+"Handlers"]||(this["_"+t+"Handlers"]=[]),this["_"+t+"Handlers"].push(e)},removeEventListener:function(t,e){var r=this["_"+t+"Handlers"];if(r)for(var n=r.length-1;n>=0;--n)if(r[n]===e){r.splice(n,1);break}},_pollTimer:null,_noactivityTimer:null,_xhr:null,lastEventId:null,cache:"",cursor:0,onerror:null,onmessage:null,onopen:null,readyState:0,urlWithParams:function(t,e){var r=[];if(e){var n,o,i=encodeURIComponent;for(n in e)e.hasOwnProperty(n)&&(o=i(n)+"="+i(e[n]),r.push(o))}return r.length>0?-1==t.indexOf("?")?t+"?"+r.join("&"):t+"&"+r.join("&"):t},lastMessageIndex:function(t){var e=t.lastIndexOf("\n\n"),r=t.lastIndexOf("\r\r"),n=t.lastIndexOf("\r\n\r\n");return n>Math.max(e,r)?[n,n+4]:[Math.max(e,r),Math.max(e,r)+2]},trimWhiteSpace:function(t){var e=/^(\s|\u00A0)+|(\s|\u00A0)+$/g;return t.replace(e,"")},normalizeToLF:function(t){return t.replace(/\r\n|\r/g,"\n")}},n()){t.isPolyfill="IE_8-9";var e=t.prototype.defaultOptions;e.xhrHeaders=null,e.getArgs.evs_preamble=2056,t.prototype.XHR=function(t){var e=new XDomainRequest;this._request=e,e.onprogress=function(){e._ready=!0,t._onxhrdata()},e.onload=function(){this._loaded=!0,t._onxhrdata()},e.onerror=function(){this._failed=!0,t.readyState=t.CLOSED,t.dispatchEvent("error",{type:"error",data:"XDomainRequest error"})},e.ontimeout=function(){this._failed=!0,t.readyState=t.CLOSED,t.dispatchEvent("error",{type:"error",data:"XDomainRequest timed out"})};var r={};if(t.getArgs){var n=t.getArgs;for(var o in n)n.hasOwnProperty(o)&&(r[o]=n[o]);t.lastEventId&&(r.evs_last_event_id=t.lastEventId)}e.open("GET",t.urlWithParams(t.URL,r)),e.send()},t.prototype.XHR.prototype={useXDomainRequest:!0,_request:null,_ready:!1,_loaded:!1,_failed:!1,isReady:function(){return this._request._ready},isDone:function(){return this._request._loaded},hasError:function(){return this._request._failed},getBuffer:function(){var t="";try{t=this._request.responseText||""}catch(e){}return t},abort:function(){this._request&&this._request.abort()}}}else t.isPolyfill="XHR",t.prototype.XHR=function(t){var e=new XMLHttpRequest;this._request=e,t._xhr=this,e.onreadystatechange=function(){e.readyState>1&&t.readyState!=t.CLOSED&&(200==e.status||e.status>=300&&e.status<400?t._onxhrdata():(e._failed=!0,t.readyState=t.CLOSED,t.dispatchEvent("error",{type:"error",data:"The server responded with "+e.status}),t.close()))},e.onprogress=function(){},e.open("GET",t.urlWithParams(t.URL,t.getArgs),!0);var r=t.xhrHeaders;for(var n in r)r.hasOwnProperty(n)&&e.setRequestHeader(n,r[n]);t.lastEventId&&e.setRequestHeader("Last-Event-Id",t.lastEventId),e.send()},t.prototype.XHR.prototype={useXDomainRequest:!1,_request:null,_failed:!1,isReady:function(){return this._request.readyState>=2},isDone:function(){return 4==this._request.readyState},hasError:function(){return this._failed||this._request.status>=400},getBuffer:function(){var t="";try{t=this._request.responseText||""}catch(e){}return t},abort:function(){this._request&&this._request.abort()}};function r(t,e,r,n){this.bubbles=!1,this.cancelBubble=!1,this.cancelable=!1,this.data=e||null,this.origin=r||"",this.lastEventId=n||"",this.type=t||"message"}function n(){return Boolean("undefined"!==typeof window&&window.XDomainRequest&&window.XMLHttpRequest&&void 0===(new XMLHttpRequest).responseType)}return t})?r.apply(e,n):r)||(t.exports=o)},24886:function(t,e,r){"use strict";function n(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==r)return;var n,o,i=[],s=!0,a=!1;try{for(r=r.call(t);!(s=(n=r.next()).done)&&(i.push(n.value),!e||i.length!==e);s=!0);}catch(c){a=!0,o=c}finally{try{s||null==r.return||r.return()}finally{if(a)throw o}}return i}(t,e)||function(t,e){if(!t)return;if("string"===typeof t)return o(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return o(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var i=r(76493),s=r(5334).map,a=r(45185).filter,c=r(19597),u=r(36601);function f(t){this.client=t}function l(t){var e=t.document;return Object.defineProperty(e,"document",{enumerable:!1,get:function(){return console.warn("The promise returned from client.asset.upload(...) now resolves with the asset document"),e}}),e}function p(t,e){return"undefined"!==typeof window&&e instanceof window.File?i({filename:!1===t.preserveFilename?void 0:e.name,contentType:e.type},t):t}i(f.prototype,{upload:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};u.validateAssetType(t);var n=r.extract||void 0;n&&!n.length&&(n=["none"]);var o=u.hasDataset(this.client.clientConfig),i="image"===t?"images":"files",c=p(r,e),f=c.tag,h=c.label,d=c.title,y=c.description,b=c.creditLine,v=c.filename,m=c.source,g={label:h,title:d,description:y,filename:v,meta:n,creditLine:b};m&&(g.sourceId=m.id,g.sourceName=m.name,g.sourceUrl=m.url);var w=this.client._requestObservable({tag:f,method:"POST",timeout:c.timeout||0,uri:"/assets/".concat(i,"/").concat(o),headers:c.contentType?{"Content-Type":c.contentType}:{},query:g,body:e});return this.client.isPromiseAPI()?w.pipe(a((function(t){return"response"===t.type})),s((function(t){return l(t.body)}))).toPromise():w},delete:function(t,e){console.warn("client.assets.delete() is deprecated, please use client.delete(<document-id>)");var r=e||"";return/^(image|file)-/.test(r)?t._id&&(r=t._id):r="".concat(t,"-").concat(r),u.hasDataset(this.client.clientConfig),this.client.delete(r)},getImageUrl:function(t,e){var r=t._ref||t;if("string"!==typeof r)throw new Error("getImageUrl() needs either an object with a _ref, or a string with an asset document ID");if(!/^image-[A-Za-z0-9_]+-\d+x\d+-[a-z]{1,5}$/.test(r))throw new Error('Unsupported asset ID "'.concat(r,'". URL generation only works for auto-generated IDs.'));var o=n(r.split("-"),4),i=o[1],s=o[2],a=o[3];u.hasDataset(this.client.clientConfig);var f=this.client.clientConfig,l=f.projectId,p=f.dataset,h=e?c(e):"";return"https://cdn.sanity.io/images/".concat(l,"/").concat(p,"/").concat(i,"-").concat(s,".").concat(a).concat(h)}}),t.exports=f},69973:function(t,e,r){"use strict";function n(t){this.client=t}r(76493)(n.prototype,{getLoginProviders:function(){return this.client.request({uri:"/auth/providers"})},logout:function(){return this.client.request({uri:"/auth/logout",method:"POST"})}}),t.exports=n},63029:function(t,e,r){"use strict";var n=r(95146),o=r(76493),i=r(36601),s=r(98603),a={apiHost:"https://api.sanity.io",apiVersion:"1",useProjectHostname:!0,gradientMode:!1,isPromiseAPI:!0},c=["localhost","127.0.0.1","0.0.0.0"];e.defaultConfig=a,e.initConfig=function(t,r){var u=o({},r,t);u.apiVersion||s.printNoApiVersionSpecifiedWarning();var f=o({},a,u),l=f.gradientMode,p=!l&&f.useProjectHostname;if("undefined"===typeof Promise){var h=n("js-client-promise-polyfill");throw new Error("No native Promise-implementation found, polyfill needed - see ".concat(h))}if(l&&!f.namespace)throw new Error("Configuration must contain `namespace` when running in gradient mode");if(p&&!f.projectId)throw new Error("Configuration must contain `projectId`");var d="undefined"!==typeof window&&window.location&&window.location.hostname,y=d&&function(t){return-1!==c.indexOf(t)}(window.location.hostname);if(d&&y&&f.token&&!0!==f.ignoreBrowserTokenWarning?s.printBrowserTokenWarning():(!d||y)&&f.useCdn&&f.token?s.printCdnTokenWarning():"undefined"===typeof f.useCdn&&s.printCdnWarning(),p&&i.projectId(f.projectId),!l&&f.dataset&&i.dataset(f.dataset,f.gradientMode),"requestTagPrefix"in f&&(f.requestTagPrefix=f.requestTagPrefix?i.requestTag(f.requestTagPrefix).replace(/\.+$/,""):void 0),f.apiVersion="".concat(f.apiVersion).replace(/^v/,""),f.isDefaultApi=f.apiHost===a.apiHost,f.useCdn=Boolean(f.useCdn)&&!f.token&&!f.withCredentials,e.validateApiVersion(f.apiVersion),f.gradientMode)f.url=f.apiHost,f.cdnUrl=f.apiHost;else{var b=f.apiHost.split("://",2),v=b[0],m=b[1],g=f.isDefaultApi?"apicdn.sanity.io":m;f.useProjectHostname?(f.url="".concat(v,"://").concat(f.projectId,".").concat(m,"/v").concat(f.apiVersion),f.cdnUrl="".concat(v,"://").concat(f.projectId,".").concat(g,"/v").concat(f.apiVersion)):(f.url="".concat(f.apiHost,"/v").concat(f.apiVersion),f.cdnUrl=f.url)}return f},e.validateApiVersion=function(t){if("1"!==t&&"X"!==t){var e=new Date(t);if(!(/^\d{4}-\d{2}-\d{2}$/.test(t)&&e instanceof Date&&e.getTime()>0))throw new Error("Invalid API version string, expected `1` or date in format `YYYY-MM-DD`")}}},88316:function(t,e,r){"use strict";function n(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var o=r(76493),i=r(45185).filter,s=r(5334).map,a=r(36601),c=r(23760),u=r(21821),f=r(40155),l=r(2076),p=r(34882),h=function(t,e){return!1===t?void 0:"undefined"===typeof t?e:t},d=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{returnIds:!0,returnDocuments:h(t.returnDocuments,!0),visibility:t.visibility||"sync"}},y=function(t){return"response"===t.type},b=function(t){return t.body},v=function(t,e){return t.reduce((function(t,r){return t[e(r)]=r,t}),Object.create(null))},m=function(t){return t.toPromise()};t.exports={listen:p,getDataUrl:function(t,e){var r=this.clientConfig,n=r.gradientMode?r.namespace:a.hasDataset(r),o="/".concat(t,"/").concat(n),i=e?"".concat(o,"/").concat(e):o;return(this.clientConfig.gradientMode?i:"/data".concat(i)).replace(/\/($|\?)/,"$1")},fetch:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=!1===r.filterResponse?function(t){return t}:function(t){return t.result},o=this._dataRequest("query",{query:t,params:e},r).pipe(s(n));return this.isPromiseAPI()?m(o):o},getDocument:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={uri:this.getDataUrl("doc",t),json:!0,tag:e.tag},n=this._requestObservable(r).pipe(i(y),s((function(t){return t.body.documents&&t.body.documents[0]})));return this.isPromiseAPI()?m(n):n},getDocuments:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={uri:this.getDataUrl("doc",t.join(",")),json:!0,tag:e.tag},n=this._requestObservable(r).pipe(i(y),s((function(e){var r=v(e.body.documents||[],(function(t){return t._id}));return t.map((function(t){return r[t]||null}))})));return this.isPromiseAPI()?m(n):n},create:function(t,e){return this._create(t,"create",e)},createIfNotExists:function(t,e){return a.requireDocumentId("createIfNotExists",t),this._create(t,"createIfNotExists",e)},createOrReplace:function(t,e){return a.requireDocumentId("createOrReplace",t),this._create(t,"createOrReplace",e)},patch:function(t,e){return new l(t,e,this)},delete:function(t,e){return this.dataRequest("mutate",{mutations:[{delete:c(t)}]},e)},mutate:function(t,e){var r=t instanceof l||t instanceof f?t.serialize():t,n=Array.isArray(r)?r:[r],o=e&&e.transactionId;return this.dataRequest("mutate",{mutations:n,transactionId:o},e)},transaction:function(t){return new f(t,this)},dataRequest:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=this._dataRequest(t,e,r);return this.isPromiseAPI()?m(n):n},_dataRequest:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o="mutate"===t,a="query"===t,c=!o&&u(e),f=!o&&c.length<11264,l=f?c:"",p=r.returnFirst,h=r.timeout,v=r.token,m=r.tag,g=this.getDataUrl(t,l),w={method:f?"GET":"POST",uri:g,json:!0,body:f?void 0:e,query:o&&d(r),timeout:h,token:v,tag:m,canUseCdn:a};return this._requestObservable(w).pipe(i(y),s(b),s((function(t){if(!o)return t;var e=t.results||[];if(r.returnDocuments)return p?e[0]&&e[0].document:e.map((function(t){return t.document}));var i=p?"documentId":"documentIds",s=p?e[0]&&e[0].id:e.map((function(t){return t.id}));return n({transactionId:t.transactionId,results:e},i,s)})))},_create:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=n({},e,t),s=o({returnFirst:!0,returnDocuments:!0},r);return this.dataRequest("mutate",{mutations:[i]},s)}}},21821:function(t){"use strict";var e=["tag"];function r(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}var n=encodeURIComponent;t.exports=function(t){var o=t.query,i=t.params,s=void 0===i?{}:i,a=t.options,c=void 0===a?{}:a,u=c.tag,f=r(c,e),l="query=".concat(n(o)),p=u?"?tag=".concat(n(u),"&").concat(l):"?".concat(l),h=Object.keys(s).reduce((function(t,e){return"".concat(t,"&").concat(n("$".concat(e)),"=").concat(n(JSON.stringify(s[e])))}),p);return Object.keys(f).reduce((function(t,e){return c[e]?"".concat(t,"&").concat(n(e),"=").concat(n(c[e])):t}),h)}},34882:function(t,e,r){"use strict";function n(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function o(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?n(Object(r),!0).forEach((function(e){i(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function i(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var s=r(76493),a=r(84512),c=r(34053),u=r(95146),f=r(53296),l=r(87877),p=r(23273),h=r(21821),d=["Using token with listeners is not supported in browsers. ","For more info, see ".concat(u("js-client-listener-tokens-browser"),".")],y=l((function(){return console.warn(d.join(" "))})),b=Boolean("undefined"!==typeof window&&window.EventSource),v=b?window.EventSource:c,m=["includePreviousRevision","includeResult","visibility","effectFormat","tag"],g={includeResult:!0};function w(t){try{var e=t.data&&JSON.parse(t.data)||{};return s({type:t.type},e)}catch(r){return r}}function _(t){if(t instanceof Error)return t;var e=w(t);return e instanceof Error?e:new Error(function(t){if(!t.error)return t.message||"Unknown listener error";if(t.error.description)return t.error.description;return"string"===typeof t.error?t.error:JSON.stringify(t.error,null,2)}(e))}t.exports=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=this.clientConfig,i=n.url,s=n.token,c=n.withCredentials,u=n.requestTagPrefix,l=r.tag&&u?[u,r.tag].join("."):r.tag,d=o(o({},p(r,g)),{},{tag:l}),O=f(d,m),E=h({query:t,params:e,options:O,tag:l}),x="".concat(i).concat(this.getDataUrl("listen",E));if(x.length>14800)return new a((function(t){return t.error(new Error("Query too large for listener"))}));var S=d.events?d.events:["mutation"],j=-1!==S.indexOf("reconnect");s&&b&&y();var P={};return(s||c)&&(P.withCredentials=!0),s&&(P.headers={Authorization:"Bearer ".concat(s)}),new a((function(t){var e,r=u(),n=!1;function o(){n||(j&&t.next({type:"reconnect"}),n||r.readyState===v.CLOSED&&(c(),clearTimeout(e),e=setTimeout(f,100)))}function i(e){t.error(_(e))}function s(e){var r=w(e);return r instanceof Error?t.error(r):t.next(r)}function a(e){n=!0,c(),t.complete()}function c(){r.removeEventListener("error",o,!1),r.removeEventListener("channelError",i,!1),r.removeEventListener("disconnect",a,!1),S.forEach((function(t){return r.removeEventListener(t,s,!1)})),r.close()}function u(){var t=new v(x,P);return t.addEventListener("error",o,!1),t.addEventListener("channelError",i,!1),t.addEventListener("disconnect",a,!1),S.forEach((function(e){return t.addEventListener(e,s,!1)})),t}function f(){r=u()}return function(){n=!0,c()}}))}},2076:function(t,e,r){"use strict";function n(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var o=r(48743),i=r(76493),s=r(23760),a=r(36601),c=a.validateObject,u=a.validateInsert;function f(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this.selection=t,this.operations=i({},e),this.client=r}i(f.prototype,{clone:function(){return new f(this.selection,i({},this.operations),this.client)},merge:function(t){c("merge",t);var e=(new Error).stack.toString().split("\n").filter((function(t){return t.trim()})).slice(2);return console.warn('The "merge" patch has been deprecated and will be removed in the future\n'.concat(e.join("\n"))),this._assign("merge",o(this.operations.merge||{},t))},set:function(t){return this._assign("set",t)},diffMatchPatch:function(t){return c("diffMatchPatch",t),this._assign("diffMatchPatch",t)},unset:function(t){if(!Array.isArray(t))throw new Error("unset(attrs) takes an array of attributes to unset, non-array given");return this.operations=i({},this.operations,{unset:t}),this},setIfMissing:function(t){return this._assign("setIfMissing",t)},replace:function(t){return c("replace",t),this._set("set",{$:t})},inc:function(t){return this._assign("inc",t)},dec:function(t){return this._assign("dec",t)},insert:function(t,e,r){var o;return u(t,e,r),this._assign("insert",(n(o={},t,e),n(o,"items",r),o))},append:function(t,e){return this.insert("after","".concat(t,"[-1]"),e)},prepend:function(t,e){return this.insert("before","".concat(t,"[0]"),e)},splice:function(t,e,r,n){var o=e<0?e-1:e,i="undefined"===typeof r||-1===r?-1:Math.max(0,e+r),s=o<0&&i>=0?"":i,a="".concat(t,"[").concat(o,":").concat(s,"]");return this.insert("replace",a,n||[])},ifRevisionId:function(t){return this.operations.ifRevisionID=t,this},serialize:function(){return i(s(this.selection),this.operations)},toJSON:function(){return this.serialize()},commit:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this.client)throw new Error("No `client` passed to patch, either provide one or pass the patch to a clients `mutate()` method");var e="string"===typeof this.selection,r=i({returnFirst:e,returnDocuments:!0},t);return this.client.mutate({patch:this.serialize()},r)},reset:function(){return this.operations={},this},_set:function(t,e){return this._assign(t,e,!1)},_assign:function(t,e){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return c(t,e),this.operations=i({},this.operations,n({},t,i({},r&&this.operations[t]||{},e))),this}}),t.exports=f},40155:function(t,e,r){"use strict";function n(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var o=r(76493),i=r(36601),s=r(2076),a={returnDocuments:!1};function c(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0;this.trxId=r,this.operations=t,this.client=e}o(c.prototype,{clone:function(){return new c(this.operations.slice(0),this.client,this.trxId)},create:function(t){return i.validateObject("create",t),this._add({create:t})},createIfNotExists:function(t){var e="createIfNotExists";return i.validateObject(e,t),i.requireDocumentId(e,t),this._add(n({},e,t))},createOrReplace:function(t){var e="createOrReplace";return i.validateObject(e,t),i.requireDocumentId(e,t),this._add(n({},e,t))},delete:function(t){return i.validateDocumentId("delete",t),this._add({delete:{id:t}})},patch:function(t,e){var r="function"===typeof e;if(t instanceof s)return this._add({patch:t.serialize()});if(r){var n=e(new s(t,{},this.client));if(!(n instanceof s))throw new Error("function passed to `patch()` must return the patch");return this._add({patch:n.serialize()})}return this._add({patch:o({id:t},e)})},transactionId:function(t){return t?(this.trxId=t,this):this.trxId},serialize:function(){return this.operations.slice()},toJSON:function(){return this.serialize()},commit:function(t){if(!this.client)throw new Error("No `client` passed to transaction, either provide one or pass the transaction to a clients `mutate()` method");return this.client.mutate(this.serialize(),o({transactionId:this.trxId},a,t||{}))},reset:function(){return this.operations=[],this},_add:function(t){return this.operations.push(t),this}}),t.exports=c},26343:function(t,e,r){"use strict";var n=r(76493),o=r(36601);function i(t){this.request=t.request.bind(t)}n(i.prototype,{create:function(t,e){return this._modify("PUT",t,e)},edit:function(t,e){return this._modify("PATCH",t,e)},delete:function(t){return this._modify("DELETE",t)},list:function(){return this.request({uri:"/datasets"})},_modify:function(t,e,r){return o.dataset(e),this.request({method:t,uri:"/datasets/".concat(e),body:r})}}),t.exports=i},99461:function(t){"use strict";t.exports=[]},67:function(t,e,r){"use strict";var n=r(68055),o=r(76493);function i(t){var e=a(t);i.super.call(this,e.message),o(this,e)}function s(t){var e=a(t);s.super.call(this,e.message),o(this,e)}function a(t){var e=t.body,r={response:t,statusCode:t.statusCode,responseBody:c(e,t)};return e.error&&e.message?(r.message="".concat(e.error," - ").concat(e.message),r):e.error&&e.error.description?(r.message=e.error.description,r.details=e.error,r):(r.message=e.error||e.message||function(t){var e=t.statusMessage?" ".concat(t.statusMessage):"";return"".concat(t.method,"-request to ").concat(t.url," resulted in HTTP ").concat(t.statusCode).concat(e)}(t),r)}function c(t,e){return-1!==(e.headers["content-type"]||"").toLowerCase().indexOf("application/json")?JSON.stringify(t,null,2):t}n(i),n(s),e.ClientError=i,e.ServerError=s},19597:function(t){"use strict";t.exports=function(t){var e=[];for(var r in t)t.hasOwnProperty(r)&&e.push("".concat(encodeURIComponent(r),"=").concat(encodeURIComponent(t[r])));return e.length>0?"?".concat(e.join("&")):""}},63866:function(t,e,r){"use strict";var n=r(64850),o=r(76493),i=r(25839),s=r(88760),a=r(17202),c=r(64894),u=r(84512),f=r(67),l=f.ClientError,p=f.ServerError,h={onResponse:function(t){if(t.statusCode>=500)throw new p(t);if(t.statusCode>=400)throw new l(t);return t}},d={onResponse:function(t){var e=t.headers["x-sanity-warning"];return(Array.isArray(e)?e:[e]).filter(Boolean).forEach((function(t){return console.warn(t)})),t}},y=n(r(99461).concat([d,s(),a(),c(),h,i({implementation:u})]));function b(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:y;return e(o({maxRedirects:0},t))}b.defaultRequester=y,b.ClientError=l,b.ServerError=p,t.exports=b},75033:function(t,e,r){"use strict";var n=r(76493),o="X-Sanity-Project-ID";t.exports=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={},i=e.token||t.token;i&&(r.Authorization="Bearer ".concat(i)),e.useGlobalApi||t.useProjectHostname||!t.projectId||(r[o]=t.projectId);var s=Boolean("undefined"===typeof e.withCredentials?t.token||t.withCredentials:e.withCredentials),a="undefined"===typeof e.timeout?t.timeout:e.timeout;return n({},e,{headers:n({},r,e.headers||{}),timeout:"undefined"===typeof a?3e5:a,proxy:e.proxy||t.proxy,json:!0,withCredentials:s})}},48943:function(t,e,r){"use strict";function n(t){this.client=t}r(76493)(n.prototype,{list:function(){return this.client.request({uri:"/projects"})},getById:function(t){return this.client.request({uri:"/projects/".concat(t)})}}),t.exports=n},92924:function(t,e,r){"use strict";function n(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function o(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var i=r(76493),s=r(45185).filter,a=r(5334).map,c=r(2076),u=r(40155),f=r(88316),l=r(26343),p=r(48943),h=r(24886),d=r(18232),y=r(69973),b=r(63866),v=r(75033),m=r(63029),g=m.defaultConfig,w=m.initConfig,_=r(36601);function O(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:g;if(!(this instanceof O))return new O(t);if(this.config(t),this.assets=new h(this),this.datasets=new l(this),this.projects=new p(this),this.users=new d(this),this.auth=new y(this),this.clientConfig.isPromiseAPI){var e=i({},this.clientConfig,{isPromiseAPI:!1});this.observable=new O(e)}}i(O.prototype,f),i(O.prototype,{clone:function(){return new O(this.config())},config:function(t){if("undefined"===typeof t)return i({},this.clientConfig);if(this.observable){var e=i({},t,{isPromiseAPI:!1});this.observable.config(e)}return this.clientConfig=w(t,this.clientConfig||{}),this},withConfig:function(t){return this.clone().config(t)},getUrl:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=e?this.clientConfig.cdnUrl:this.clientConfig.url;return"".concat(r,"/").concat(t.replace(/^\//,""))},isPromiseAPI:function(){return this.clientConfig.isPromiseAPI},_requestObservable:function(t){var e=t.url||t.uri,r="undefined"===typeof t.canUseCdn?["GET","HEAD"].indexOf(t.method||"GET")>=0&&0===e.indexOf("/data/"):t.canUseCdn,s=this.clientConfig.useCdn&&r,a=t.tag&&this.clientConfig.requestTagPrefix?[this.clientConfig.requestTagPrefix,t.tag].join("."):t.tag||this.clientConfig.requestTagPrefix;a&&(t.query=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?n(Object(r),!0).forEach((function(e){o(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({tag:_.requestTag(a)},t.query));var c=v(this.clientConfig,i({},t,{url:this.getUrl(e,s)}));return b(c,this.clientConfig.requester)},request:function(t){var e=this._requestObservable(t).pipe(s((function(t){return"response"===t.type})),a((function(t){return t.body})));return this.isPromiseAPI()?function(t){return t.toPromise()}(e):e}}),O.Patch=c,O.Transaction=u,O.ClientError=b.ClientError,O.ServerError=b.ServerError,O.requester=b.defaultRequester,t.exports=O},18232:function(t,e,r){"use strict";function n(t){this.client=t}r(76493)(n.prototype,{getById:function(t){return this.client.request({uri:"/users/".concat(t)})}}),t.exports=n},23273:function(t){"use strict";t.exports=function(t,e){return Object.keys(e).concat(Object.keys(t)).reduce((function(r,n){return r[n]="undefined"===typeof t[n]?e[n]:t[n],r}),{})}},23760:function(t){"use strict";t.exports=function(t){if("string"===typeof t||Array.isArray(t))return{id:t};if(t&&t.query)return"params"in t?{query:t.query,params:t.params}:{query:t.query};var e=["* Document ID (<docId>)","* Array of document IDs","* Object containing `query`"].join("\n");throw new Error("Unknown selection - must be one of:\n\n".concat(e))}},87877:function(t){"use strict";t.exports=function(t){var e,r=!1;return function(){return r||(e=t.apply(void 0,arguments),r=!0),e}}},53296:function(t){"use strict";t.exports=function(t,e){return e.reduce((function(e,r){return"undefined"===typeof t[r]||(e[r]=t[r]),e}),{})}},36601:function(t,e){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var n=["image","file"],o=["before","after","replace"];e.dataset=function(t){if(!/^(~[a-z0-9]{1}[-\w]{0,63}|[a-z0-9]{1}[-\w]{0,63})$/.test(t))throw new Error("Datasets can only contain lowercase characters, numbers, underscores and dashes, and start with tilde, and be maximum 64 characters")},e.projectId=function(t){if(!/^[-a-z0-9]+$/i.test(t))throw new Error("`projectId` can only contain only a-z, 0-9 and dashes")},e.validateAssetType=function(t){if(-1===n.indexOf(t))throw new Error("Invalid asset type: ".concat(t,". Must be one of ").concat(n.join(", ")))},e.validateObject=function(t,e){if(null===e||"object"!==r(e)||Array.isArray(e))throw new Error("".concat(t,"() takes an object of properties"))},e.requireDocumentId=function(t,r){if(!r._id)throw new Error("".concat(t,'() requires that the document contains an ID ("_id" property)'));e.validateDocumentId(t,r._id)},e.validateDocumentId=function(t,e){if("string"!==typeof e||!/^[a-z0-9_.-]+$/i.test(e))throw new Error("".concat(t,'(): "').concat(e,'" is not a valid document ID'))},e.validateInsert=function(t,e,r){var n="insert(at, selector, items)";if(-1===o.indexOf(t)){var i=o.map((function(t){return'"'.concat(t,'"')})).join(", ");throw new Error("".concat(n,' takes an "at"-argument which is one of: ').concat(i))}if("string"!==typeof e)throw new Error("".concat(n,' takes a "selector"-argument which must be a string'));if(!Array.isArray(r))throw new Error("".concat(n,' takes an "items"-argument which must be an array'))},e.hasDataset=function(t){if(!t.gradientMode&&!t.dataset)throw new Error("`dataset` must be provided to perform queries");return t.dataset||""},e.requestTag=function(t){if("string"!==typeof t||!/^[a-z0-9._-]{1,75}$/i.test(t))throw new Error("Tag can only contain alphanumeric characters, underscores, dashes and dots, and be between one and 75 characters long.");return t}},98603:function(t,e,r){"use strict";var n=r(95146),o=r(87877),i=function(t){return o((function(){for(var e,r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return(e=console).warn.apply(e,[t.join(" ")].concat(n))}))};e.printCdnWarning=i(["You are not using the Sanity CDN. That means your data is always fresh, but the CDN is faster and","cheaper. Think about it! For more info, see ".concat(n("js-client-cdn-configuration"),"."),"To hide this warning, please set the `useCdn` option to either `true` or `false` when creating","the client."]),e.printBrowserTokenWarning=i(["You have configured Sanity client to use a token in the browser. This may cause unintentional security issues.","See ".concat(n("js-client-browser-token")," for more information and how to hide this warning.")]),e.printCdnTokenWarning=i(["You have set `useCdn` to `true` while also specifying a token. This is usually not what you","want. The CDN cannot be used with an authorization token, since private data cannot be cached.","See ".concat(n("js-client-usecdn-token")," for more information.")]),e.printNoApiVersionSpecifiedWarning=i(["Using the Sanity client without specifying an API version is deprecated.","See ".concat(n("js-client-api-version"))])},34053:function(t,e,r){var n=r(8664);t.exports="undefined"!==typeof window&&window.EventSource?window.EventSource:n.EventSource},95146:function(t){t.exports=function(t){return"https://docs.sanity.io/help/"+t}},3882:function(t,e,r){"use strict";var n=r(78554).Observable,o=r(76493),i=r(5334).map,s=r(45185).filter,a=r(99163).reduce;function c(){n.apply(this,arguments)}function u(t,e){var r=!1;return function(){return r||(r=!0,console.warn(new Error("Calling observable.".concat(t,"(...) is deprecated. Please use observable.pipe(").concat(t,"(...)) instead")))),this.pipe(e.apply(this,arguments))}}c.prototype=Object.create(o(Object.create(null),n.prototype)),Object.defineProperty(c.prototype,"constructor",{value:c,enumerable:!1,writable:!0,configurable:!0}),c.prototype.lift=function(t){var e=new c;return e.source=this,e.operator=t,e},c.prototype.map=u("map",i),c.prototype.filter=u("filter",s),c.prototype.reduce=u("filter",a),t.exports=c},84512:function(t,e,r){t.exports=r(3882)},45185:function(t,e,r){e.filter=r(97939).filter},5334:function(t,e,r){e.map=r(48502).map},99163:function(t,e,r){e.reduce=r(7).reduce},48743:function(t,e,r){"use strict";var n=r(38309),o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function s(t){if(null===t||void 0===t)throw new TypeError("Sources cannot be null or undefined");return Object(t)}function a(t,e,r){var i=e[r];if(void 0!==i&&null!==i){if(o.call(t,r)&&(void 0===t[r]||null===t[r]))throw new TypeError("Cannot convert undefined or null to object ("+r+")");o.call(t,r)&&n(i)?t[r]=c(Object(t[r]),e[r]):t[r]=i}}function c(t,e){if(t===e)return t;for(var r in e=Object(e))o.call(e,r)&&a(t,e,r);if(Object.getOwnPropertySymbols)for(var n=Object.getOwnPropertySymbols(e),s=0;s<n.length;s++)i.call(e,n[s])&&a(t,e,n[s]);return t}t.exports=function(t){t=s(t);for(var e=1;e<arguments.length;e++)c(t,arguments[e]);return t}},64850:function(t,e,r){t.exports=r(98167)},98167:function(t,e,r){"use strict";var n=r(71419),o=r(1110),i=r(77598),s=r(88907),a=r(60637),c=["request","response","progress","error","abort"],u=["processOptions","validateOptions","interceptRequest","finalizeOptions","onRequest","onResponse","onError","onReturn","onHeaders"];t.exports=function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a,f=[],l=u.reduce((function(t,e){return t[e]=t[e]||[],t}),{processOptions:[i],validateOptions:[s]});function p(t){var e=c.reduce((function(t,e){return t[e]=n(),t}),{}),i=o(l),s=i("processOptions",t);i("validateOptions",s);var a={options:s,channels:e,applyMiddleware:i},u=null,f=e.request.subscribe((function(t){u=r(t,(function(r,n){return function(t,n,o){var s=t,a=n;if(!s)try{a=i("onResponse",n,o)}catch(r){a=null,s=r}(s=s&&i("onError",s,o))?e.error.publish(s):a&&e.response.publish(a)}(r,n,t)}))}));e.abort.subscribe((function(){f(),u&&u.abort()}));var p=i("onReturn",e,a);return p===e&&e.request.publish(a),p}return p.use=function(t){if(!t)throw new Error("Tried to add middleware that resolved to falsey value");if("function"===typeof t)throw new Error("Tried to add middleware that was a function. It probably expects you to pass options to it.");if(t.onReturn&&l.onReturn.length>0)throw new Error("Tried to add new middleware with `onReturn` handler, but another handler has already been registered for this event");return u.forEach((function(e){t[e]&&l[e].push(t[e])})),f.push(t),p},p.clone=function(){return t(f)},e.forEach(p.use),p}},77598:function(t,e,r){"use strict";var n=r(76493),o=r(80899),i="undefined"!==typeof navigator&&"ReactNative"===navigator.product,s=Object.prototype.hasOwnProperty,a={timeout:i?6e4:12e4};function c(t){var e=[];for(var r in t)s.call(t,r)&&n(r,t[r]);return e.length?e.join("&"):"";function n(t,r){Array.isArray(r)?r.forEach((function(e){return n(t,e)})):e.push([t,r].map(encodeURIComponent).join("="))}}function u(t){if(!1===t||0===t)return!1;if(t.connect||t.socket)return t;var e=Number(t);return isNaN(e)?u(a.timeout):{connect:e,socket:e}}t.exports=function(t){var e="string"===typeof t?n({url:t},a):n({},a,t),r=o(e.url,{},!0);return e.timeout=u(e.timeout),e.query&&(r.query=n({},r.query,function(t){var e={};for(var r in t)void 0!==t[r]&&(e[r]=t[r]);return e}(e.query))),e.method=e.body&&!e.method?"POST":(e.method||"GET").toUpperCase(),e.url=r.toString(c),e}},88907:function(t){"use strict";var e=/^https?:\/\//i;t.exports=function(t){if(!e.test(t.url))throw new Error('"'+t.url+'" is not a valid URL')}},88760:function(t,e,r){"use strict";var n="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=r(76493),i=r(99312),s=["boolean","string","number"];t.exports=function(){return{processOptions:function(t){var e,r=t.body;return r&&!("function"===typeof r.pipe)&&!((e=r).constructor&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e))&&(-1!==s.indexOf("undefined"===typeof r?"undefined":n(r))||Array.isArray(r)||i(r))?o({},t,{body:JSON.stringify(t.body),headers:o({},t.headers,{"Content-Type":"application/json"})}):t}}}},17202:function(t,e,r){"use strict";var n=r(76493);function o(t){try{return JSON.parse(t)}catch(e){throw e.message="Failed to parsed response body as JSON: "+e.message,e}}t.exports=function(t){return{onResponse:function(e){var r=e.headers["content-type"]||"",i=t&&t.force||-1!==r.indexOf("application/json");return e.body&&r&&i?n({},e,{body:o(e.body)}):e},processOptions:function(t){return n({},t,{headers:n({Accept:"application/json"},t.headers)})}}}},25839:function(t,e,r){"use strict";var n=r(49917),o=r(76493);t.exports=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.implementation||n.Observable;if(!e)throw new Error("`Observable` is not available in global scope, and no implementation was passed");return{onReturn:function(t,r){return new e((function(e){return t.error.subscribe((function(t){return e.error(t)})),t.progress.subscribe((function(t){return e.next(o({type:"progress"},t))})),t.response.subscribe((function(t){e.next(o({type:"response"},t)),e.complete()})),t.request.publish(r),function(){return t.abort.publish()}}))}}}},32305:function(t){"use strict";t.exports=function(){return{onRequest:function(t){if("xhr"===t.adapter){var e=t.request,r=t.context;"upload"in e&&"onprogress"in e.upload&&(e.upload.onprogress=n("upload")),"onprogress"in e&&(e.onprogress=n("download"))}function n(t){return function(e){var n=e.lengthComputable?e.loaded/e.total*100:-1;r.channels.progress.publish({stage:t,percent:n,total:e.total,loaded:e.loaded,lengthComputable:e.lengthComputable})}}}}}},64894:function(t,e,r){"use strict";t.exports=r(32305)},43886:function(t,e,r){"use strict";var n=r(45666),o=r(51404),i=r(98749),s="undefined"===typeof window?void 0:window,a=s?"xhr":"fetch",c="function"===typeof XMLHttpRequest?XMLHttpRequest:function(){},u="withCredentials"in new c,f="undefined"===typeof XDomainRequest?void 0:XDomainRequest,l=u?c:f;s||(c=i,l=i),t.exports=function(t,e){var r=t.options,i=t.applyMiddleware("finalizeOptions",r),u={},f=s&&s.location&&!n(s.location.href,i.url),p=t.applyMiddleware("interceptRequest",void 0,{adapter:a,context:t});if(p){var h=setTimeout(e,0,null,p);return{abort:function(){return clearTimeout(h)}}}var d=f?new l:new c,y=s&&s.XDomainRequest&&d instanceof s.XDomainRequest,b=i.headers,v=i.timeout,m=!1,g=!1,w=!1;if(d.onerror=x,d.ontimeout=x,d.onabort=function(){m=!0},d.onprogress=function(){},d[y?"onload":"onreadystatechange"]=function(){!function(){if(!v)return;E(),u.socket=setTimeout((function(){return O("ESOCKETTIMEDOUT")}),v.socket)}(),m||4!==d.readyState&&!y||0!==d.status&&function(){if(m||g||w)return;if(0===d.status)return void x(new Error("Unknown XHR error"));E(),g=!0,e(null,function(){var t=d.status,e=d.statusText;if(y&&void 0===t)t=200;else{if(t>12e3&&t<12156)return x();t=1223===d.status?204:d.status,e=1223===d.status?"No Content":e}return{body:d.response||d.responseText,url:i.url,method:i.method,headers:y?{}:o(d.getAllResponseHeaders()),statusCode:t,statusMessage:e}}())}()},d.open(i.method,i.url,!0),d.withCredentials=!!i.withCredentials,b&&d.setRequestHeader)for(var _ in b)b.hasOwnProperty(_)&&d.setRequestHeader(_,b[_]);else if(b&&y)throw new Error("Headers cannot be set on an XDomainRequest object");return i.rawBody&&(d.responseType="arraybuffer"),t.applyMiddleware("onRequest",{options:i,adapter:a,request:d,context:t}),d.send(i.body||null),v&&(u.connect=setTimeout((function(){return O("ETIMEDOUT")}),v.connect)),{abort:function(){m=!0,d&&d.abort()}};function O(e){w=!0,d.abort();var r=new Error("ESOCKETTIMEDOUT"===e?"Socket timed out on request to "+i.url:"Connection timed out on request to "+i.url);r.code=e,t.channels.error.publish(r)}function E(){(m||d.readyState>=2&&u.connect)&&clearTimeout(u.connect),u.socket&&clearTimeout(u.socket)}function x(t){if(!g){E(),g=!0,d=null;var r=t||new Error("Network error while attempting to reach "+i.url);r.isNetworkError=!0,r.request=i,e(r)}}}},98749:function(t){"use strict";function e(){this.readyState=0}e.prototype.open=function(t,e){this._method=t,this._url=e,this._resHeaders="",this.readyState=1,this.onreadystatechange()},e.prototype.abort=function(){this._controller&&this._controller.abort()},e.prototype.getAllResponseHeaders=function(){return this._resHeaders},e.prototype.setRequestHeader=function(t,e){this._headers=this._headers||{},this._headers[t]=e},e.prototype.send=function(t){var e=this,r=this._controller="function"===typeof AbortController&&new AbortController,n="arraybuffer"!==this.responseType,o={method:this._method,headers:this._headers,signal:r&&r.signal,body:t};"undefined"!==typeof window&&(o.credentials=this.withCredentials?"include":"omit"),fetch(this._url,o).then((function(t){return t.headers.forEach((function(t,r){e._resHeaders+=r+": "+t+"\r\n"})),e.status=t.status,e.statusText=t.statusText,e.readyState=3,n?t.text():t.arrayBuffer()})).then((function(t){n?e.responseText=t:e.response=t,e.readyState=4,e.onreadystatechange()})).catch((function(t){"AbortError"!==t.name?e.onerror(t):e.onabort()}))},t.exports=e},60637:function(t,e,r){"use strict";t.exports=r(43886)},49917:function(t,e,r){"use strict";"undefined"!==typeof window?t.exports=window:"undefined"!==typeof r.g?t.exports=r.g:"undefined"!==typeof self?t.exports=self:t.exports={}},1110:function(t){"use strict";t.exports=function(t){return function(e,r){for(var n=arguments.length,o=Array(n>2?n-2:0),i=2;i<n;i++)o[i-2]=arguments[i];for(var s="onError"===e,a=r,c=0;c<t[e].length;c++){var u=t[e][c];if(a=u.apply(void 0,[a].concat(o)),s&&!a)break}return a}}},38309:function(t){"use strict";t.exports=function(t){var e=typeof t;return null!==t&&("object"===e||"function"===e)}},99312:function(t,e,r){"use strict";var n=r(18820);function o(t){return!0===n(t)&&"[object Object]"===Object.prototype.toString.call(t)}t.exports=function(t){var e,r;return!1!==o(t)&&("function"===typeof(e=t.constructor)&&(!1!==o(r=e.prototype)&&!1!==r.hasOwnProperty("isPrototypeOf")))}},18820:function(t){"use strict";t.exports=function(t){return null!=t&&"object"===typeof t&&!1===Array.isArray(t)}},68055:function(t,e){"use strict";var r="undefined"!==typeof Reflect?Reflect.construct:void 0,n=Object.defineProperty,o=Error.captureStackTrace;function i(t){void 0!==t&&n(this,"message",{configurable:!0,value:t,writable:!0});var e=this.constructor.name;void 0!==e&&e!==this.name&&n(this,"name",{configurable:!0,value:e,writable:!0}),o(this,this.constructor)}void 0===o&&(o=function(t){var e=new Error;n(t,"stack",{configurable:!0,get:function(){var t=e.stack;return n(this,"stack",{configurable:!0,value:t,writable:!0}),t},set:function(e){n(t,"stack",{configurable:!0,value:e,writable:!0})}})}),i.prototype=Object.create(Error.prototype,{constructor:{configurable:!0,value:i,writable:!0}});var s=function(){function t(t,e){return n(t,"name",{configurable:!0,value:e})}try{var e=function(){};if(t(e,"foo"),"foo"===e.name)return t}catch(r){}}();(t.exports=function(t,e){if(null==e||e===Error)e=i;else if("function"!==typeof e)throw new TypeError("super_ should be a function");var n;if("string"===typeof t)n=t,t=void 0!==r?function(){return r(e,arguments,this.constructor)}:function(){e.apply(this,arguments)},void 0!==s&&(s(t,n),n=void 0);else if("function"!==typeof t)throw new TypeError("constructor should be either a string or a function");t.super_=t.super=e;var o={constructor:{configurable:!0,value:t,writable:!0}};return void 0!==n&&(o.name={configurable:!0,value:n,writable:!0}),t.prototype=Object.create(e.prototype,o),t}).BaseError=i},71419:function(t){t.exports=function(){var t=[];return{subscribe:function(e){return t.push(e),function(){var r=t.indexOf(e);r>-1&&t.splice(r,1)}},publish:function(){for(var e=0;e<t.length;e++)t[e].apply(null,arguments)}}}},73676:function(t,e,r){var n,o=(n=r(48966))&&"object"==typeof n&&"default"in n?n.default:n,i=/https?|ftp|gopher|file/;function s(t){"string"==typeof t&&(t=g(t));var e=function(t,e,r){var n=t.auth,o=t.hostname,i=t.protocol||"",s=t.pathname||"",a=t.hash||"",c=t.query||"",u=!1;n=n?encodeURIComponent(n).replace(/%3A/i,":")+"@":"",t.host?u=n+t.host:o&&(u=n+(~o.indexOf(":")?"["+o+"]":o),t.port&&(u+=":"+t.port)),c&&"object"==typeof c&&(c=e.encode(c));var f=t.search||c&&"?"+c||"";return i&&":"!==i.substr(-1)&&(i+=":"),t.slashes||(!i||r.test(i))&&!1!==u?(u="//"+(u||""),s&&"/"!==s[0]&&(s="/"+s)):u||(u=""),a&&"#"!==a[0]&&(a="#"+a),f&&"?"!==f[0]&&(f="?"+f),{protocol:i,host:u,pathname:s=s.replace(/[?#]/g,encodeURIComponent),search:f=f.replace("#","%23"),hash:a}}(t,o,i);return""+e.protocol+e.host+e.pathname+e.search+e.hash}var a="http://",c="w.w",u=a+c,f=/^([a-z0-9.+-]*:\/\/\/)([a-z0-9.+-]:\/*)?/i,l=/https?|ftp|gopher|file/;function p(t,e){var r="string"==typeof t?g(t):t;t="object"==typeof t?s(t):t;var n=g(e),o="";r.protocol&&!r.slashes&&(o=r.protocol,t=t.replace(r.protocol,""),o+="/"===e[0]||"/"===t[0]?"/":""),o&&n.protocol&&(o="",n.slashes||(o=n.protocol,e=e.replace(n.protocol,"")));var i=t.match(f);i&&!n.protocol&&(t=t.substr((o=i[1]+(i[2]||"")).length),/^\/\/[^/]/.test(e)&&(o=o.slice(0,-1)));var c=new URL(t,u+"/"),p=new URL(e,c).toString().replace(u,""),h=n.protocol||r.protocol;return h+=r.slashes||n.slashes?"//":"",!o&&h?p=p.replace(a,h):o&&(p=p.replace(a,"")),l.test(p)||~e.indexOf(".")||"/"===t.slice(-1)||"/"===e.slice(-1)||"/"!==p.slice(-1)||(p=p.slice(0,-1)),o&&(p=o+("/"===p[0]?p.substr(1):p)),p}function h(){}h.prototype.parse=g,h.prototype.format=s,h.prototype.resolve=p,h.prototype.resolveObject=p;var d=/^https?|ftp|gopher|file/,y=/^(.*?)([#?].*)/,b=/^([a-z0-9.+-]*:)(\/{0,3})(.*)/i,v=/^([a-z0-9.+-]*:)?\/\/\/*/i,m=/^([a-z0-9.+-]*:)(\/{0,2})\[(.*)\]$/i;function g(t,e,r){if(void 0===e&&(e=!1),void 0===r&&(r=!1),t&&"object"==typeof t&&t instanceof h)return t;var n=(t=t.trim()).match(y);t=n?n[1].replace(/\\/g,"/")+n[2]:t.replace(/\\/g,"/"),m.test(t)&&"/"!==t.slice(-1)&&(t+="/");var i=!/(^javascript)/.test(t)&&t.match(b),a=v.test(t),f="";i&&(d.test(i[1])||(f=i[1].toLowerCase(),t=""+i[2]+i[3]),i[2]||(a=!1,d.test(i[1])?(f=i[1],t=""+i[3]):t="//"+i[3]),3!==i[2].length&&1!==i[2].length||(f=i[1],t="/"+i[3]));var l,p=(n?n[1]:t).match(/^https?:\/\/[^/]+(:[0-9]+)(?=\/|$)/),g=p&&p[1],w=new h,_="",O="";try{l=new URL(t)}catch(o){_=o,f||r||!/^\/\//.test(t)||/^\/\/.+[@.]/.test(t)||(O="/",t=t.substr(1));try{l=new URL(t,u)}catch(t){return w.protocol=f,w.href=f,w}}w.slashes=a&&!O,w.host=l.host===c?"":l.host,w.hostname=l.hostname===c?"":l.hostname.replace(/(\[|\])/g,""),w.protocol=_?f||null:l.protocol,w.search=l.search.replace(/\\/g,"%5C"),w.hash=l.hash.replace(/\\/g,"%5C");var E=t.split("#");!w.search&&~E[0].indexOf("?")&&(w.search="?"),w.hash||""!==E[1]||(w.hash="#"),w.query=e?o.decode(l.search.substr(1)):w.search.substr(1),w.pathname=O+(i?function(t){return t.replace(/['^|`]/g,(function(t){return"%"+t.charCodeAt().toString(16).toUpperCase()})).replace(/((?:%[0-9A-F]{2})+)/g,(function(t,e){try{return decodeURIComponent(e).split("").map((function(t){var e=t.charCodeAt();return e>256||/^[a-z0-9]$/i.test(t)?t:"%"+e.toString(16).toUpperCase()})).join("")}catch(t){return e}}))}(l.pathname):l.pathname),"about:"===w.protocol&&"blank"===w.pathname&&(w.protocol="",w.pathname=""),_&&"/"!==t[0]&&(w.pathname=w.pathname.substr(1)),f&&!d.test(f)&&"/"!==t.slice(-1)&&"/"===w.pathname&&(w.pathname=""),w.path=w.pathname+w.search,w.auth=[l.username,l.password].map(decodeURIComponent).filter(Boolean).join(":"),w.port=l.port,g&&!w.host.endsWith(g)&&(w.host+=g,w.port=g.slice(1)),w.href=O?""+w.pathname+w.search+w.hash:s(w);var x=/^(file)/.test(w.href)?["host","hostname"]:[];return Object.keys(w).forEach((function(t){~x.indexOf(t)||(w[t]=w[t]||null)})),w}e.parse=g,e.format=s,e.resolve=p,e.resolveObject=function(t,e){return g(p(t,e))},e.Url=h},51404:function(t){var e=function(t){return t.replace(/^\s+|\s+$/g,"")};t.exports=function(t){if(!t)return{};for(var r,n={},o=e(t).split("\n"),i=0;i<o.length;i++){var s=o[i],a=s.indexOf(":"),c=e(s.slice(0,a)).toLowerCase(),u=e(s.slice(a+1));"undefined"===typeof n[c]?n[c]=u:(r=n[c],"[object Array]"===Object.prototype.toString.call(r)?n[c].push(u):n[c]=[n[c],u])}return n}},39350:function(t){"use strict";function e(t,e){return Object.prototype.hasOwnProperty.call(t,e)}t.exports=function(t,r,n,o){r=r||"&",n=n||"=";var i={};if("string"!==typeof t||0===t.length)return i;var s=/\+/g;t=t.split(r);var a=1e3;o&&"number"===typeof o.maxKeys&&(a=o.maxKeys);var c=t.length;a>0&&c>a&&(c=a);for(var u=0;u<c;++u){var f,l,p,h,d=t[u].replace(s,"%20"),y=d.indexOf(n);y>=0?(f=d.substr(0,y),l=d.substr(y+1)):(f=d,l=""),p=decodeURIComponent(f),h=decodeURIComponent(l),e(i,p)?Array.isArray(i[p])?i[p].push(h):i[p]=[i[p],h]:i[p]=h}return i}},94104:function(t){"use strict";var e=function(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}};t.exports=function(t,r,n,o){return r=r||"&",n=n||"=",null===t&&(t=void 0),"object"===typeof t?Object.keys(t).map((function(o){var i=encodeURIComponent(e(o))+n;return Array.isArray(t[o])?t[o].map((function(t){return i+encodeURIComponent(e(t))})).join(r):i+encodeURIComponent(e(t[o]))})).filter(Boolean).join(r):o?encodeURIComponent(e(o))+n+encodeURIComponent(e(t)):""}},48966:function(t,e,r){"use strict";e.decode=e.parse=r(39350),e.encode=e.stringify=r(94104)},88157:function(t,e){"use strict";var r=Object.prototype.hasOwnProperty;function n(t){try{return decodeURIComponent(t.replace(/\+/g," "))}catch(e){return null}}function o(t){try{return encodeURIComponent(t)}catch(e){return null}}e.stringify=function(t,e){e=e||"";var n,i,s=[];for(i in"string"!==typeof e&&(e="?"),t)if(r.call(t,i)){if((n=t[i])||null!==n&&undefined!==n&&!isNaN(n)||(n=""),i=o(i),n=o(n),null===i||null===n)continue;s.push(i+"="+n)}return s.length?e+s.join("&"):""},e.parse=function(t){for(var e,r=/([^=?#&]+)=?([^&]*)/g,o={};e=r.exec(t);){var i=n(e[1]),s=n(e[2]);null===i||null===s||i in o||(o[i]=s)}return o}},53096:function(t){"use strict";t.exports=function(t,e){if(e=e.split(":")[0],!(t=+t))return!1;switch(e){case"http":case"ws":return 80!==t;case"https":case"wss":return 443!==t;case"ftp":return 21!==t;case"gopher":return 70!==t;case"file":return!1}return 0!==t}},78554:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(93346),o=r(76231),i=r(56638),s=r(11095),a=r(20472),c=function(){function t(t){this._isScalar=!1,t&&(this._subscribe=t)}return t.prototype.lift=function(e){var r=new t;return r.source=this,r.operator=e,r},t.prototype.subscribe=function(t,e,r){var n=this.operator,i=o.toSubscriber(t,e,r);if(n?i.add(n.call(i,this.source)):i.add(this.source||a.config.useDeprecatedSynchronousErrorHandling&&!i.syncErrorThrowable?this._subscribe(i):this._trySubscribe(i)),a.config.useDeprecatedSynchronousErrorHandling&&i.syncErrorThrowable&&(i.syncErrorThrowable=!1,i.syncErrorThrown))throw i.syncErrorValue;return i},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){a.config.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),n.canReportError(t)?t.error(e):console.warn(e)}},t.prototype.forEach=function(t,e){var r=this;return new(e=u(e))((function(e,n){var o;o=r.subscribe((function(e){try{t(e)}catch(r){n(r),o&&o.unsubscribe()}}),n,e)}))},t.prototype._subscribe=function(t){var e=this.source;return e&&e.subscribe(t)},t.prototype[i.observable]=function(){return this},t.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return 0===t.length?this:s.pipeFromArray(t)(this)},t.prototype.toPromise=function(t){var e=this;return new(t=u(t))((function(t,r){var n;e.subscribe((function(t){return n=t}),(function(t){return r(t)}),(function(){return t(n)}))}))},t.create=function(e){return new t(e)},t}();function u(t){if(t||(t=a.config.Promise||Promise),!t)throw new Error("no Promise impl found");return t}e.Observable=c},27684:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(20472),o=r(1272);e.empty={closed:!0,next:function(t){},error:function(t){if(n.config.useDeprecatedSynchronousErrorHandling)throw t;o.hostReportError(t)},complete:function(){}}},36799:function(t,e,r){"use strict";var n=this&&this.__extends||function(){var t=function(e,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=r(69527),i=r(27684),s=r(19683),a=r(87659),c=r(20472),u=r(1272),f=function(t){function e(r,n,o){var s=t.call(this)||this;switch(s.syncErrorValue=null,s.syncErrorThrown=!1,s.syncErrorThrowable=!1,s.isStopped=!1,arguments.length){case 0:s.destination=i.empty;break;case 1:if(!r){s.destination=i.empty;break}if("object"===typeof r){r instanceof e?(s.syncErrorThrowable=r.syncErrorThrowable,s.destination=r,r.add(s)):(s.syncErrorThrowable=!0,s.destination=new l(s,r));break}default:s.syncErrorThrowable=!0,s.destination=new l(s,r,n,o)}return s}return n(e,t),e.prototype[a.rxSubscriber]=function(){return this},e.create=function(t,r,n){var o=new e(t,r,n);return o.syncErrorThrowable=!1,o},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e.prototype._unsubscribeAndRecycle=function(){var t=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this},e}(s.Subscription);e.Subscriber=f;var l=function(t){function e(e,r,n,s){var a,c=t.call(this)||this;c._parentSubscriber=e;var u=c;return o.isFunction(r)?a=r:r&&(a=r.next,n=r.error,s=r.complete,r!==i.empty&&(u=Object.create(r),o.isFunction(u.unsubscribe)&&c.add(u.unsubscribe.bind(u)),u.unsubscribe=c.unsubscribe.bind(c))),c._context=u,c._next=a,c._error=n,c._complete=s,c}return n(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;c.config.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},e.prototype.error=function(t){if(!this.isStopped){var e=this._parentSubscriber,r=c.config.useDeprecatedSynchronousErrorHandling;if(this._error)r&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)r?(e.syncErrorValue=t,e.syncErrorThrown=!0):u.hostReportError(t),this.unsubscribe();else{if(this.unsubscribe(),r)throw t;u.hostReportError(t)}}},e.prototype.complete=function(){var t=this;if(!this.isStopped){var e=this._parentSubscriber;if(this._complete){var r=function(){return t._complete.call(t._context)};c.config.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,r),this.unsubscribe()):(this.__tryOrUnsub(r),this.unsubscribe())}else this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(r){if(this.unsubscribe(),c.config.useDeprecatedSynchronousErrorHandling)throw r;u.hostReportError(r)}},e.prototype.__tryOrSetError=function(t,e,r){if(!c.config.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,r)}catch(n){return c.config.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=n,t.syncErrorThrown=!0,!0):(u.hostReportError(n),!0)}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(f);e.SafeSubscriber=l},19683:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(31065),o=r(82387),i=r(69527),s=r(92028),a=function(){function t(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}var e;return t.prototype.unsubscribe=function(){var e;if(!this.closed){var r=this,a=r._parentOrParents,u=r._ctorUnsubscribe,f=r._unsubscribe,l=r._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,a instanceof t)a.remove(this);else if(null!==a)for(var p=0;p<a.length;++p){a[p].remove(this)}if(i.isFunction(f)){u&&(this._unsubscribe=void 0);try{f.call(this)}catch(y){e=y instanceof s.UnsubscriptionError?c(y.errors):[y]}}if(n.isArray(l)){p=-1;for(var h=l.length;++p<h;){var d=l[p];if(o.isObject(d))try{d.unsubscribe()}catch(y){e=e||[],y instanceof s.UnsubscriptionError?e=e.concat(c(y.errors)):e.push(y)}}}if(e)throw new s.UnsubscriptionError(e)}},t.prototype.add=function(e){var r=e;if(!e)return t.EMPTY;switch(typeof e){case"function":r=new t(e);case"object":if(r===this||r.closed||"function"!==typeof r.unsubscribe)return r;if(this.closed)return r.unsubscribe(),r;if(!(r instanceof t)){var n=r;(r=new t)._subscriptions=[n]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}var o=r._parentOrParents;if(null===o)r._parentOrParents=this;else if(o instanceof t){if(o===this)return r;r._parentOrParents=[o,this]}else{if(-1!==o.indexOf(this))return r;o.push(this)}var i=this._subscriptions;return null===i?this._subscriptions=[r]:i.push(r),r},t.prototype.remove=function(t){var e=this._subscriptions;if(e){var r=e.indexOf(t);-1!==r&&e.splice(r,1)}},t.EMPTY=((e=new t).closed=!0,e),t}();function c(t){return t.reduce((function(t,e){return t.concat(e instanceof s.UnsubscriptionError?e.errors:e)}),[])}e.Subscription=a},20472:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=!1;e.config={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){var e=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+e.stack)}else r&&console.log("RxJS: Back to a better error behavior. Thank you. <3");r=t},get useDeprecatedSynchronousErrorHandling(){return r}}},5044:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(78554);e.EMPTY=new n.Observable((function(t){return t.complete()})),e.empty=function(t){return t?function(t){return new n.Observable((function(e){return t.schedule((function(){return e.complete()}))}))}(t):e.EMPTY}},21281:function(t,e,r){"use strict";var n=this&&this.__extends||function(){var t=function(e,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=r(36799);e.defaultIfEmpty=function(t){return void 0===t&&(t=null),function(e){return e.lift(new i(t))}};var i=function(){function t(t){this.defaultValue=t}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.defaultValue))},t}(),s=function(t){function e(e,r){var n=t.call(this,e)||this;return n.defaultValue=r,n.isEmpty=!0,n}return n(e,t),e.prototype._next=function(t){this.isEmpty=!1,this.destination.next(t)},e.prototype._complete=function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()},e}(o.Subscriber)},97939:function(t,e,r){"use strict";var n=this&&this.__extends||function(){var t=function(e,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=r(36799);e.filter=function(t,e){return function(r){return r.lift(new i(t,e))}};var i=function(){function t(t,e){this.predicate=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.predicate,this.thisArg))},t}(),s=function(t){function e(e,r,n){var o=t.call(this,e)||this;return o.predicate=r,o.thisArg=n,o.count=0,o}return n(e,t),e.prototype._next=function(t){var e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(r){return void this.destination.error(r)}e&&this.destination.next(t)},e}(o.Subscriber)},48502:function(t,e,r){"use strict";var n=this&&this.__extends||function(){var t=function(e,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=r(36799);e.map=function(t,e){return function(r){if("function"!==typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return r.lift(new i(t,e))}};var i=function(){function t(t,e){this.project=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.project,this.thisArg))},t}();e.MapOperator=i;var s=function(t){function e(e,r,n){var o=t.call(this,e)||this;return o.project=r,o.count=0,o.thisArg=n||o,o}return n(e,t),e.prototype._next=function(t){var e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(r){return void this.destination.error(r)}this.destination.next(e)},e}(o.Subscriber)},7:function(t,e,r){"use strict";var n=r(61317),o=r(23954),i=r(21281),s=r(11095);e.reduce=function(t,e){return arguments.length>=2?function(r){return s.pipe(n.scan(t,e),o.takeLast(1),i.defaultIfEmpty(e))(r)}:function(e){return s.pipe(n.scan((function(e,r,n){return t(e,r,n+1)})),o.takeLast(1))(e)}}},61317:function(t,e,r){"use strict";var n=this&&this.__extends||function(){var t=function(e,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=r(36799);e.scan=function(t,e){var r=!1;return arguments.length>=2&&(r=!0),function(n){return n.lift(new i(t,e,r))}};var i=function(){function t(t,e,r){void 0===r&&(r=!1),this.accumulator=t,this.seed=e,this.hasSeed=r}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.accumulator,this.seed,this.hasSeed))},t}(),s=function(t){function e(e,r,n,o){var i=t.call(this,e)||this;return i.accumulator=r,i._seed=n,i.hasSeed=o,i.index=0,i}return n(e,t),Object.defineProperty(e.prototype,"seed",{get:function(){return this._seed},set:function(t){this.hasSeed=!0,this._seed=t},enumerable:!0,configurable:!0}),e.prototype._next=function(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)},e.prototype._tryNext=function(t){var e,r=this.index++;try{e=this.accumulator(this.seed,t,r)}catch(n){this.destination.error(n)}this.seed=e,this.destination.next(e)},e}(o.Subscriber)},23954:function(t,e,r){"use strict";var n=this&&this.__extends||function(){var t=function(e,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=r(36799),i=r(31255),s=r(5044);e.takeLast=function(t){return function(e){return 0===t?s.empty():e.lift(new a(t))}};var a=function(){function t(t){if(this.total=t,this.total<0)throw new i.ArgumentOutOfRangeError}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.total))},t}(),c=function(t){function e(e,r){var n=t.call(this,e)||this;return n.total=r,n.ring=new Array,n.count=0,n}return n(e,t),e.prototype._next=function(t){var e=this.ring,r=this.total,n=this.count++;e.length<r?e.push(t):e[n%r]=t},e.prototype._complete=function(){var t=this.destination,e=this.count;if(e>0)for(var r=this.count>=this.total?this.total:this.count,n=this.ring,o=0;o<r;o++){var i=e++%r;t.next(n[i])}t.complete()},e}(o.Subscriber)},56638:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.observable="function"===typeof Symbol&&Symbol.observable||"@@observable"},87659:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.rxSubscriber="function"===typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random(),e.$$rxSubscriber=e.rxSubscriber},31255:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t}();e.ArgumentOutOfRangeError=r},92028:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t){return Error.call(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(t,e){return e+1+") "+t.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t}();e.UnsubscriptionError=r},93346:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(36799);e.canReportError=function(t){for(;t;){var e=t,r=e.closed,o=e.destination,i=e.isStopped;if(r||i)return!1;t=o&&o instanceof n.Subscriber?o:null}return!0}},1272:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.hostReportError=function(t){setTimeout((function(){throw t}),0)}},19037:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.identity=function(t){return t}},31065:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isArray=Array.isArray||function(t){return t&&"number"===typeof t.length}},69527:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isFunction=function(t){return"function"===typeof t}},82387:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isObject=function(t){return null!==t&&"object"===typeof t}},11095:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(19037);function o(t){return 0===t.length?n.identity:1===t.length?t[0]:function(e){return t.reduce((function(t,e){return e(t)}),e)}}e.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return o(t)},e.pipeFromArray=o},76231:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(36799),o=r(87659),i=r(27684);e.toSubscriber=function(t,e,r){if(t){if(t instanceof n.Subscriber)return t;if(t[o.rxSubscriber])return t[o.rxSubscriber]()}return t||e||r?new n.Subscriber(t,e,r):new n.Subscriber(i.empty)}},45666:function(t,e,r){"use strict";var n=r(73676);t.exports=function(t,e,r){if(t===e)return!0;var o=n.parse(t,!1,!0),i=n.parse(e,!1,!0),s=0|o.port||("https"===o.protocol?443:80),a=0|i.port||("https"===i.protocol?443:80),c={proto:o.protocol===i.protocol,hostname:o.hostname===i.hostname,port:s===a};return c.proto&&c.hostname&&(c.port||r)}},80899:function(t,e,r){"use strict";var n=r(53096),o=r(88157),i=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,s=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,a=/^[a-zA-Z]:/,c=new RegExp("^[\\x09\\x0A\\x0B\\x0C\\x0D\\x20\\xA0\\u1680\\u180E\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200A\\u202F\\u205F\\u3000\\u2028\\u2029\\uFEFF]+");function u(t){return(t||"").toString().replace(c,"")}var f=[["#","hash"],["?","query"],function(t,e){return h(e.protocol)?t.replace(/\\/g,"/"):t},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d+)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],l={hash:1,query:1};function p(t){var e,n=("undefined"!==typeof window?window:"undefined"!==typeof r.g?r.g:"undefined"!==typeof self?self:{}).location||{},o={},s=typeof(t=t||n);if("blob:"===t.protocol)o=new y(unescape(t.pathname),{});else if("string"===s)for(e in o=new y(t,{}),l)delete o[e];else if("object"===s){for(e in t)e in l||(o[e]=t[e]);void 0===o.slashes&&(o.slashes=i.test(t.href))}return o}function h(t){return"file:"===t||"ftp:"===t||"http:"===t||"https:"===t||"ws:"===t||"wss:"===t}function d(t,e){t=u(t),e=e||{};var r,n=s.exec(t),o=n[1]?n[1].toLowerCase():"",i=!!n[2],a=!!n[3],c=0;return i?a?(r=n[2]+n[3]+n[4],c=n[2].length+n[3].length):(r=n[2]+n[4],c=n[2].length):a?(r=n[3]+n[4],c=n[3].length):r=n[4],"file:"===o?c>=2&&(r=r.slice(2)):h(o)?r=n[4]:o?i&&(r=r.slice(2)):c>=2&&h(e.protocol)&&(r=n[4]),{protocol:o,slashes:i||h(o),slashesCount:c,rest:r}}function y(t,e,r){if(t=u(t),!(this instanceof y))return new y(t,e,r);var i,s,c,l,b,v,m=f.slice(),g=typeof e,w=this,_=0;for("object"!==g&&"string"!==g&&(r=e,e=null),r&&"function"!==typeof r&&(r=o.parse),i=!(s=d(t||"",e=p(e))).protocol&&!s.slashes,w.slashes=s.slashes||i&&e.slashes,w.protocol=s.protocol||e.protocol||"",t=s.rest,("file:"===s.protocol&&(2!==s.slashesCount||a.test(t))||!s.slashes&&(s.protocol||s.slashesCount<2||!h(w.protocol)))&&(m[3]=[/(.*)/,"pathname"]);_<m.length;_++)"function"!==typeof(l=m[_])?(c=l[0],v=l[1],c!==c?w[v]=t:"string"===typeof c?~(b=t.indexOf(c))&&("number"===typeof l[2]?(w[v]=t.slice(0,b),t=t.slice(b+l[2])):(w[v]=t.slice(b),t=t.slice(0,b))):(b=c.exec(t))&&(w[v]=b[1],t=t.slice(0,b.index)),w[v]=w[v]||i&&l[3]&&e[v]||"",l[4]&&(w[v]=w[v].toLowerCase())):t=l(t,w);r&&(w.query=r(w.query)),i&&e.slashes&&"/"!==w.pathname.charAt(0)&&(""!==w.pathname||""!==e.pathname)&&(w.pathname=function(t,e){if(""===t)return e;for(var r=(e||"/").split("/").slice(0,-1).concat(t.split("/")),n=r.length,o=r[n-1],i=!1,s=0;n--;)"."===r[n]?r.splice(n,1):".."===r[n]?(r.splice(n,1),s++):s&&(0===n&&(i=!0),r.splice(n,1),s--);return i&&r.unshift(""),"."!==o&&".."!==o||r.push(""),r.join("/")}(w.pathname,e.pathname)),"/"!==w.pathname.charAt(0)&&h(w.protocol)&&(w.pathname="/"+w.pathname),n(w.port,w.protocol)||(w.host=w.hostname,w.port=""),w.username=w.password="",w.auth&&(l=w.auth.split(":"),w.username=l[0]||"",w.password=l[1]||""),w.origin="file:"!==w.protocol&&h(w.protocol)&&w.host?w.protocol+"//"+w.host:"null",w.href=w.toString()}y.prototype={set:function(t,e,r){var i=this;switch(t){case"query":"string"===typeof e&&e.length&&(e=(r||o.parse)(e)),i[t]=e;break;case"port":i[t]=e,n(e,i.protocol)?e&&(i.host=i.hostname+":"+e):(i.host=i.hostname,i[t]="");break;case"hostname":i[t]=e,i.port&&(e+=":"+i.port),i.host=e;break;case"host":i[t]=e,/:\d+$/.test(e)?(e=e.split(":"),i.port=e.pop(),i.hostname=e.join(":")):(i.hostname=e,i.port="");break;case"protocol":i.protocol=e.toLowerCase(),i.slashes=!r;break;case"pathname":case"hash":if(e){var s="pathname"===t?"/":"#";i[t]=e.charAt(0)!==s?s+e:e}else i[t]=e;break;default:i[t]=e}for(var a=0;a<f.length;a++){var c=f[a];c[4]&&(i[c[1]]=i[c[1]].toLowerCase())}return i.origin="file:"!==i.protocol&&h(i.protocol)&&i.host?i.protocol+"//"+i.host:"null",i.href=i.toString(),i},toString:function(t){t&&"function"===typeof t||(t=o.stringify);var e,r=this,n=r.protocol;n&&":"!==n.charAt(n.length-1)&&(n+=":");var i=n+(r.slashes||h(r.protocol)?"//":"");return r.username&&(i+=r.username,r.password&&(i+=":"+r.password),i+="@"),i+=r.host+r.pathname,(e="object"===typeof r.query?t(r.query):r.query)&&(i+="?"!==e.charAt(0)?"?"+e:e),r.hash&&(i+=r.hash),i}},y.extractProtocol=d,y.location=p,y.trimLeft=u,y.qs=o,t.exports=y}}]);