1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2244],{52244:function(e,n,r){r.r(n),r.d(n,{RenderPromises:function(){return p},getDataFromTree:function(){return a},getMarkupFromTree:function(){return h},renderToStringWithData:function(){return l}});var t=r(97582),o=r(73914),i=r(85317),u=r(75028),s=r(5466);function c(){return new u.B(!1,function(){return{seen:!1,observable:null}})}var p=function(){function e(){this.queryPromises=new Map,this.queryInfoTrie=c(),this.stopped=!1}return e.prototype.stop=function(){this.stopped||(this.queryPromises.clear(),this.queryInfoTrie=c(),this.stopped=!0)},e.prototype.registerSSRObservable=function(e){this.stopped||(this.lookupQueryInfo(e.options).observable=e)},e.prototype.getSSRObservable=function(e){return this.lookupQueryInfo(e).observable},e.prototype.addQueryPromise=function(e,n){return this.stopped||this.lookupQueryInfo(e.getOptions()).seen?n?n():null:(this.queryPromises.set(e.getOptions(),new Promise(function(n){n(e.fetchData())})),null)},e.prototype.addObservableQueryPromise=function(e){return this.addQueryPromise({getOptions:function(){return e.options},fetchData:function(){return new Promise(function(n){var r=e.subscribe({next:function(e){e.loading||(n(),r.unsubscribe())},error:function(){n(),r.unsubscribe()},complete:function(){n()}})})}})},e.prototype.hasPromises=function(){return this.queryPromises.size>0},e.prototype.consumeAndAwaitPromises=function(){var e=this,n=[];return this.queryPromises.forEach(function(r,t){e.lookupQueryInfo(t).seen=!0,n.push(r)}),this.queryPromises.clear(),Promise.all(n)},e.prototype.lookupQueryInfo=function(e){return this.queryInfoTrie.lookup(e.query,(0,s.B)(e.variables))},e}(),f=r(97762);function a(e,n){return void 0===n&&(n={}),h({tree:e,context:n,renderFunction:f.uS})}function h(e){var n=e.tree,r=e.context,u=void 0===r?{}:r,s=e.renderFunction,c=void 0===s?f.uS:s,a=new p;return Promise.resolve().then(function e(){var r=(0,i.K)();return new Promise(function(e){e(c(o.createElement(r.Provider,{value:(0,t.pi)((0,t.pi)({},u),{renderPromises:a})},n)))}).then(function(n){return a.hasPromises()?a.consumeAndAwaitPromises().then(e):n}).finally(function(){a.stop()})})}function l(e){return h({tree:e,renderFunction:f.Dq})}}}]); 2//# sourceMappingURL=2244.b89e37c4c301cc54.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.