PageSourceSearch

https://www.universal.org/wp-content/themes/portaluniversal-child/…/scripts/see-more_ab69828af4c216b42ed1.js

js universal.org collected 2026-09-24 09:35:20 UTC 21,074 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[590,652],{5459:function(t,e){var o=function(){};o.remove=function(t){var e=t.querySelector(".m-loader-wrapper");t&&e&&e.remove()},e.A=o},8331:function(t,e,o){var s=o(2790),i=o(5459),n=o(450),r=o(1669),a=function(){};a.handle=function(t){var e=t.list,o=t.section,a=t.content,c=t.sliderContainer,l=t.isArticle;if(e){var d=a;c&&window.innerWidth>1024&&(a=a.querySelector(".slick-list .slick-track")),e.map((function(t){t.id&&(t.type="podcast",a.appendChild(s.A.podcast(new n.A(t),l)))})),o&&i.A.remove(o),c&&r(d).slick("reinit")}},e.A=a},4271:function(t,e,o){o.r(e);var s=o(5689),i=o(7452),n=o(9220),r=o(2455),a=window.universal_ajax_object,c=a.security,l=a.route,d=function(){this.button=document.querySelector('[data-see="seemore"]'),this.button&&(this.fetch=(0,r.A)({headers:{},fallback:function(t){return new s.A({method:"get",endpoint:t,customURI:!0}).send().then((function(t){return t.data}))}}),this.init())};d.prototype.init=function(){var t=this;this.args={},this.page=0,this.total=0,this.baseUrl="posts/v2",this.seemoreWrapper=document.querySelector("#seemore-wrapper"),this.wrapper=document.querySelector(".content-list-post"),this.button=document.querySelector('[data-see="seemore"]'),this.keyword=document.querySelector(".m-search-form-field"),this.button.addEventListener("click",(function(e){return t.listenerClick(e)}),!1)},d.prototype.listenerClick=function(t){var e=this;t.preventDefault(),this.parameters(),this.buttonOldText=this.button.innerHTML,this.button.innerHTML=(this.seemoreWrapper.dataset.loading||"..")+"  ",this.button.disabled=!0,this.seemore=t.target,this.button.classList.add("loading"),this.addLoad();var o="?"+this.prepareParameters(this.args),s=""+l+this.baseUrl+"/seemore"+o;return this.fetch(s).then((function(t){return e.handleResponse(t)}
1)).catch((function(t){return e.handleError(t)})),!1},d.prototype.sanitizeString=function(t){return t.trim()},d.prototype.prepareParameters=function(t){return Object.keys(t).map((function(e){return encodeURIComponent(e)+"="+encodeURIComponent(t[e])})).join("&")},d.prototype.parameters=function(){var t=this.seemoreWrapper.dataset;this.page=parseInt(t.page)+1,this.args={nonce:c.nonce,term:t.term,cat:t.cat,page:this.page,template:!0},""!==t.issearch.trim()&&"1"===t.issearch&&(this.args.search=this.sanitizeString(this.keyword.value));var e=document.querySelector('input[name="home"]');e&&(this.args.home=e.value)},d.prototype.handleResponse=function(t){if(this.button.disabled=!1,this.seemoreWrapper.dataset.page=this.page,t.html&&0===Object.keys(t.html).length&&Object.getPrototypeOf(t.html)===Object.prototype)return this.seemoreWrapper.style.display="none",void(this.seemoreWrapper.innerHTML="Não há mais postagem");this.total=t.information.max_num_pages,this.wrapper.insertAdjacentHTML("beforeend",t.html),this.seemore.innerHTML=this.buttonOldText,this.button.classList.remove("loading"),this.page>=this.total&&(this.seemoreWrapper.style.display="none"),new n.default},d.prototype.handleError=function(){this.button.disabled=!1,this.seemore.innerHTML=this.buttonOldText},d.prototype.addLoad=function(){this.button.insertAdjacentHTML("beforeend",i.A.loadingPoints())},e.default=d},9220:function(t,e,o){o.r(e),o.d(e,{default:function(){return q}});var s=o(5689),i=o(1968),n=window.universal_ajax_object,r=n.security,a=n.appRoutes,c=function(t){var e=t.collection,o=t.type,s=t.verb,i=t.useParams,n=t.limit,r=t.page,c=t.data;this.collection=e,this.type=o,this.data=c||!1,this.routes=a[o],this.method=s||"get",this.limit=n||12,this.page=r||1,this.useParams=i||!1};c.prototype.fetch=function(){var t=this.buildEndpoint(),e={method:this.method,endpoint:t,headers:i.A,customURI:!0};this.data&&(e.data=this.data);var o=new s.A(e);return o.send()},c.prototype.buildEndpoint=function(){var t=r.url,e=""+t+this.routes;if(("blog"===this.type||"category"===this.type)&&!document.querySelector("span#my-follow")){this.method="post";var o=this.type+"_list";return""+t+a[o]}return this.useParams?e+"?limit="+this.limit+"&page="+this.page:e};var l=c,d=o(140),u=o(2790),p=o(3490),h=o(7089),f=function(t){var e=t.authorId,o=t.authorName,s=t.favorite,i=t.follow,n=t.id,r=t.image,a=t.shareUrl,c=t.tag,l=t.tagId,d=t.title,u=t.type_share;this.id=n,this.title=d,this.favorite=s,this.follow=i,this.image=r,this.tag=c,this.tagId=l,this.url=a,this.type=u,this.idCategory=e,this.category=o,this.parseCategory(t),this.listObject={id:this.id,idCategory:this.idCategory,category:this.category,url:this.url,type:this.type,favorite:this.favorite,follow:this.follow,color:"white",list:["share","favorite","follow"]}};f.prototype.parseCategory=function(t){"noticias"===this.type&&(this.idCategory=t.tagId,this.category=t.tag)};var m=f,v=o(450),g=o(2458),y=function(t){var e=t.id,o=t.title,s=t.author,i=t.music,n=t.favorite,r=t.duration,a=t.hasSubtitles,c=t.subtitles,l=t.playlist;this.id=e,this.title=o,this.category=s,this.favorite=n,this.file=i,this.hasSubtitles=a,this.subtitles=c,this.playlist=l||[],this.follow=!1,this.type="music",this.hash=(+new Date+100*Math.random()).toString(36),this.url=this.buildUrl();var d=g.A.parseDuration(r),u=d.newDuration,p=d.textDuration;this.duration=u,this.textDuration=p,this.listObject={id:this.id,idCategory:0,category:this.category,url:this.url,type:this.type,hash:this.hash,favorite:this.favorite,follow:this.follow,color:"blue",list:["share","favorite"]}};y.prototype.buildUrl=function(){return" Acesse o Portal Universal e ouça nossas canções. "+window.location.origin+"/musicas"};var b=y,w=function(t,e,o){this.posts=t,this.wrap=e;var s=this.handleFavorite()[o];s&&s(t)};w.prototype.handleFavorite=function(){var t=this;return{category:function(e){return t.category(e)},blogs:function(e){return t.blogs(e)},podcasts:function(e){return t.podcasts(e)},music:function(e){return t.music(e)},radio:function(e){return t.radio(e)},church:function(e){return t.church(e)}}},w.prototype.category=function(t){var e=this.section("category",3);this.populateBlogAndCategory(t,e)},w.prototype.blogs=function(t){var e=this.section("blogs",3);this.populateBlogAndCategory(t,e)},w.prototype.populateBlogAndCategory=function(t,e){t.forEach((function(t){t.id&&e.appendChild(u.A.post(new m(t)))})),e.classList.add("count-"+t.length),this.wrap.appendChild(e),this.activeFirstContent()},w.prototype.podcasts=function(t){var e=this.section("podcasts",4);t.forEach((function(t){t.id&&(t.favorite=!0,t.follow=!0,t.type="podcast",e.appendChild(u.A.podcast(new v.A(t))))})),e.classList.add("count-"+t.length),this.wrap.appendChild(e),this.activeFirstContent()},w.prototype.radio=function(t){var e=this.section("radio",4);t.forEach((function(t){t.id&&e.appendChild(h.A.viewRadioFavorite(t,!1))})),e.classList.add("count-"+t.length),this.wrap.appendChild(e),this.activeFirstContent()},w.prototype.music=function(t){var e=this.section("music",4);t.forEach((function(t){t.id&&e.appendChild(u.A.podcast(new b(t)))})),e.classList.add("count-"+t.length),this.wrap.appendChild(e),this.activeFirstContent()},w.prototype.church=function(t){var e=this.section("church",3);
1t.forEach((function(t){t.id&&(t.id=t.churchId?t.churchId:t.id,e.appendChild(p.A.addressCardTwo(t,!0)))})),e.classList.add("count-"+t.length),this.wrap.appendChild(e),this.activeFirstContent()},w.prototype.section=function(t,e){var o=document.createElement("div");return o.classList.add("m-tabs-content","content-grid","content-grid-scroll","col-"+e,"items-"+t),o.dataset.tab="items-"+t,o},w.prototype.activeFirstContent=function(){if(!this.isActiveTab()){var t=this.wrap.children[1],e=t.dataset.tab;document.querySelector('[data-target=".'+e+'"]').classList.add("active"),t.classList.add("active")}},w.prototype.isActiveTab=function(){var t=!1;return[].slice.call(this.wrap.children).forEach((function(e){e.classList.contains("active")&&(t=!0)})),t};var L=w,A=o(8331),C=function(t){if(this.sectionListened=document.getElementById("section-listener-podcasts"),this.sectionListened){this.contentListened=document.getElementById("content-listener-podcasts");var e={list:t,section:this.sectionListened,content:this.contentListened,sliderContainer:!0};A.A.handle(e)}},S=o(7452),k=o(5459),I=window.universal_ajax_object.text,P=function(){this.PromiseAll=[],this.objPromise={};var t=d.A.get("dtoken"),e=document.querySelector("span#my-page");t&&void 0!==t&&!e&&(this.sectionFavorite=document.getElementById("section-items-favorites"),this.contentWrap=document.querySelector("#favorite-content"),this.init())};P.prototype.init=function(){var t=this;for(var e in this.listToPromise={category:document.querySelectorAll('[data-type="category"]'),blog:document.querySelectorAll('[data-type="blog"]'),promise:document.querySelectorAll('[data-type="promise"]'),univer:document.querySelectorAll('[data-type="univer"]')},document.querySelector('input[name="podcastId"]')||(this.listToPromise.podcast=document.querySelectorAll('[data-type="podcast"]')),this.listToPromise)this.buildPromises(this.listToPromise[e],e);0!==this.PromiseAll.length&&(this.addLoad(),Promise.allSettled(this.PromiseAll.map((function(t){return t.fetch()}))).then((function(e){return t.processResponse(e)})).catch(console.log),this.loadItemFavorite())},P.prototype.buildPromises=function(t,e){if(0!==t.length){var o=document.querySelector(".page-promise");if("promise"!==e||!o){var s,i=this.buildRequestData(t,e),n=new l(i),r=this.handleType();this.PromiseAll.push(n),r[e]&&(s=r[e],this.objPromise[s]={instance:n,type:e})}}},P.prototype.buildRequestData=function(t,e){var o={collection:t,type:e};"promise"!==e&&"univer"!==e||(o={collection:t,type:e,useParams:!0});var s=document.querySelector("span#my-follow");return"blog"!==e&&"category"!==e||s||(o.data=this.parseDataToRequestList(e)),o},P.prototype.handleType=function(){return{blog:"blogs",blogs:"blogs",category:"news",podcast:"home-podcast",promise:"promise",univer:"univer"}},P.prototype.processResponse=function(t){for(var e in t){if(!t[e])return;var o=t[e].value,s=o.request,i=o.data;if(!s)return;var n=s.responseURL.split("?")[0].split("/"),r=n.pop();"list"===r&&(r=n.pop()),"news-home"!==r&&"blog-home"!==r||(r="blog"===(r=r.split("-")[0])?"blogs":r),this.success(r,i)}this.unAddFollow()},P.prototype.success=function(t,e){var o=this.objPromise[t].type,s=this.handleResponse();s[o]&&e&&s[o](e)},P.prototype.handleResponse=function(){var t=this;return{blog:function(e){return t.blog(e)},blogs:function(e){return t.blog(e)},podcast:function(e){return t.podcast(e)},category:function(e){return t.category(e)},promise:function(e){return t.promise(e)},univer:function(e){return t.univer(e)}}},P.prototype.blog=function(t){var e=this,o=t.followedAuthors,s=t.favoritePosts,i=t.blogs,n=t.favorites;if(i&&i.map((function(t){var o=t.authorId,s=t.follow;e.setBadge(o,s),e.setOptList(o,s),e.toggleCard("blog",s)})),o)for(var r in o)this.setBadge(r,o[r]),this.setOptList(r,o[r]),this.toggleCard("blog",o[r]);n&&n.length>0&&this.handleIfPostWasFavorite("blogs",n),s&&this.handleIfPostWasFavorite("blog",s)},P.prototype.category=function(t){var e=this,o=t.favoritePosts,s=t.followedCategories,i=t.categories,n=t.favorites;if(i&&i.length>0&&i.map((function(t){var o=t.tagId,s=t.follow;e.setBadge(o,s),e.setOptList(o,s),e.toggleCard("category",s)})),n&&n.length>0&&this.handleIfPostWasFavorite("category",n),s)for(var r in s)this.setBadge(r,
1s[r]),this.setOptList(r,s[r]),this.toggleCard("category",s[r]);o&&this.handleIfPostWasFavorite("category",o)},P.prototype.handleIfPostWasFavorite=function(t,e){0!==Object.keys(e).length&&(this.setFavorite(e,"list"),this.handleFavorite(t,e))},P.prototype.podcast=function(t){var e=this,o=t.podcastCategorie,s=t.playedsfavorite,i=t.recentPlayUser;o&&o.length>0&&o.map((function(t){var o=t.id,s=t.follow;e.setBadge(o,s),e.setOptList(o,s),e.toggleCard("podcast",s)})),s&&s.length>0&&(this.setFavorite(s),this.handleFavorite("podcasts",s)),i&&i.length>0&&new C(i)},P.prototype.promise=function(t){var e=t.follow;this.setOptList(0,e,"promise"),this.toggleCard("promise",e)},P.prototype.univer=function(t){var e=t.follow;this.setOptList(0,e,"univer"),this.toggleCard("univer",e)},P.prototype.setBadge=function(t,e){var o=document.querySelector('span[data-id-category="'+t+'"]');o&&e&&(o.innerHTML=o.classList.contains("active")?I.follow:I.unfollow,o.classList.toggle("active"))},P.prototype.setOptList=function(t,e,o){var s=this;void 0===t&&(t=0),void 0===o&&(o="");var i=this.getListAll(o,t);i&&i.length>0&&e&&i.forEach((function(e){s.replaceTagInButton(e,t),e.classList.toggle("followable")}))},P.prototype.toggleCard=function(t,e){var o=document.querySelector('.following-list-item[data-type="'+t+'"]');o&&o.classList.contains("loggedin")&&e&&o.classList.add("active")},P.prototype.getListAll=function(t,e){return void 0===t&&(t=""),t?document.querySelectorAll('.opt[data-type="'+t+'"]'):document.querySelectorAll('.opt[data-id-category="'+e+'"]')},P.prototype.replaceTagInButton=function(t,e,o){void 0===o&&(o="");var s=t.classList.contains("followable")?I.follow:I.unfollow,i=this.getButtonListAll(o,e);i&&i.length>0&&i.forEach((function(t){t.classList.toggle("active");var e=t.querySelector("span"),o=e.innerText.split(" "),i=(o[0],o.slice(1));e.innerHTML=s.split(" ",2)[1]+" "+[].concat(i).join(" ")}))},P.prototype.getButtonListAll=function(t,e){return t?document.querySelectorAll('[data-following][data-type="'+t+'"]'):document.querySelectorAll('[data-following][data-id-share="'+e+'"]')},P.prototype.setFavorite=function(t,e){var o=this;void 0===e&&(e="");var s=document.querySelectorAll(".opt[data-id-share]");s&&("list"!==e?t.map((function(t){return o.applyFavorite(s,t)})):this.applyFavoriteInList(s,t))},P.prototype.loadItemFavorite=function(){var t=this,e=[],o=[];(["music","radio","church"].forEach((function(t){if(document.querySelector('[data-type="'+t+'"]')){var s=new l({type:t+"-favorite",useParams:!0,limit:16});o.push(t),e.push(s.fetch())}})),0!==e.length)&&Promise.all(e).then((function(e){return t.processResponsePromises(e,o)}))},P.prototype.processResponsePromises=function(t,e){var o=this.setResponsePromises();for(var s in t){var i=t[s],n=e[s];o[n]&&o[n](i.data),s===e.length&&this.lastRequest(i.data)}},P.prototype.setResponsePromises=function(){var t=this;return{music:function(e){return t.handleFavorite("music",e)},radio:function(e){return t.handleFavorite("radio",e.list)},church:function(e){return t.handleFavorite("church",e.list)}}},P.prototype.handleFavorite=function(t,e){this.sectionFavorite&&(k.A.remove(this.contentWrap),new L(e,this.contentWrap,t))},P.prototype.lastRequest=function(t){t.count>0||k.A.remove(this.contentWrap)},P.prototype.addLoad=function(){var t=document.querySelectorAll(".m-badge-follow");t.length<1||t.forEach((function(t){t.classList.add("is-no-event"),t.innerHTML=S.A.loadingPoints()}))},P.prototype.unAddFollow=function(){var t=document.querySelectorAll(".m-badge-follow");t.length<1||t.forEach((function(t){t.classList.remove("is-no-event"),t.classList.contains("active")||(t.innerHTML=I.follow)}))},P.prototype.parseDataToRequestList=function(t){var e=this,o=[],s=[];return document.querySelectorAll('.opt[data-type="'+t+'"], .m-badge-follow[data-type="'+t+'"]').forEach((function(t){var i=t.dataset,n=i.idCategory,r=i.idShare;s=e.addItemInList(n,s),o=e.addItemInList(r,o)})),"blog"===t?{posts:o,authors:s}:{posts:o,categories:s}},P.prototype.addItemInList=function(t,e){return"0"===t||void 0===t||e.includes(t)||e.push(t),e},P.prototype.applyFavorite=function(t,e){var o=e.id;o&&t.forEach((function(t){parseInt(o)===parseInt(t.dataset.idShare)&&t.classList.add("favorite")}))},P.prototype.applyFavoriteInList=function(t,e){for(var o in e)e[o]&&this.applyFavorite(t,{id:o})};var q=P},3490:function(t,e,o){var s=o(7452),i=o(8710),n=o(8918),r=window.universal_ajax_object,a=r.apiUrl,c=r.text,l=function(){};l.addressCard=function(t){var e=t.item,o=t.extra;void 0===o&&(o="");var s=t.optInText,i=e.thumb,n=e.coverFile,r=e.city,a=e.name,c=e.id,d=i||n,u=l.getShareLink(e),p=e.favorite,h=l.getOptListSvg(u,c,p),f=this.subNames(e,o),m=f.subName,v=f.subTitle,g=f.address,y=f.location,b=this.addressButtons(o,g,y,u);return'\n        <div class="m-address">\n          '+(o||s?"":h)+'\n          <a href="'+u+'">\n           '+l.getImage("",d,r,"m-address-thumb")+'\n          </a>\n          \n          <div class="m-address-tex">\n            <a href="'+u+'">\n              '+v+'\n              <h3 class="m-address-text-title is-fz-20 is-fz-t-20 is-fz-m-18 is-fw-600">'+a+"</h3>\n              "+m+"\n            </a>\n            "+(o?h:"")+"\n            "+(s?h:"")+"            \n          </div>\n        </div>\n        "+b+"\n        "},l.addressCardTwo=function(t,e){void 0===e&&(e=!0);var o=t.id,s=t.address,i=t.number,n=t.burgh,r=t.cep,a=t.city,c=t.uf,d=t.thumb,u=t.coverFile,p=t.name,h=t.country,f=t.completeAddress,m=f||s+" - "+i+" - "+n+" "+r+" - "+a+" - "+c+" - "+h,v=d||u,g=l.getShareLink(t),y=document.createElement("article");return y.classList.add("m-address-v2","m-address-extra","block-address"),y.setAttribute("data-target-id",o),y.innerHTML='\n      <a class="m-address" href="'+g+'" >   \n          <div class="m-address-thumb">\n            '+l.getImage("",v,m,"m-address-v2-thumb")+'\n          </div>      \n       </a>\n      <div class="m-address-tex">\n          <a  href="'+g+'" >  \n            <p class="m-address-text-location is-fz-12 is-fz-t-12 is-fz-m-12 is-fw-700">'+a+", "+c+'</p>\n            <h3 class="m-address-text-title is-fz-17 is-fz-t-17 is-fz-m-14 is-fw-600">'+p+'</h3>\n            <p class="m-address-text-location is-fz-12 is-fz-t-12 is-fz-m-12 is-fw-700">'+m+"</p>\n          </a>
1\n          "+l.getOptListSvg(g,o,e)+"\n        </div>        \n     "+l.addressButtons(t,m,s,g)+"\n    ",y},l.makeAddressSlug=function(t){var e=t.uf,o=t.name,s=t.id;return i.A.parse(e+"-"+o+"-"+s)},l.getShareLink=function(t){var e=l.makeAddressSlug(t);return a+"/"+c.address.nameUrl+"/"+e},l.subNames=function(t,e){var o=t.provinceName,s=t.cityName,i=t.city,n=t.country,r=t.uf,a=t.address,c=t.number,l=t.burgh,d=t.cep,u=t.completeAddress,p="",h=o&&s?s+", "+o:"",f=h=i&&r?i+", "+r:h;return l=l?" - "+l:"",d=d?" - CEP: "+d:"",i=i?" - "+i:"",r=r?" - "+r:"",c=c?" - "+c:"",n=n?" - "+n:"",e&&(p='<p class="m-address-text-location is-fz-16 is-fz-t-16 is-fz-m-14 is-fw-600">'+h+"</p>",f=u||""+a+c+l+d+i+r+n),{subName:'<p class="m-address-text-location is-fz-16 is-fz-t-16 is-fz-m-14 is-fw-600">'+f+"</p>",subTitle:p,address:f,location:h}},l.getOptListSvg=function(t,e,o){return'\n        <div \n            class="opt opt-white followable '+(o=o?"favorite":"")+'" \n            data-share="open" \n            data-id-share="'+e+'" \n            data-url="'+t+'" \n            data-follow="followable" \n            data-list=\'["share"]\'\n            data-type="church"\n            data-logged="'+(document.body.classList.contains("logged-in")?1:0)+'"\n            >\n            '+s.A.svg({icon:"vertical-dots",stroke:!1})+"\n        </div>\n    "},l.getImage=function(t,e,o,s){return"\n        "+(t?this.likeAddress(t):"")+'\n      <div class="'+s+'">\n        '+n.o.markup({src:e,alt:o})+"\n      </div>"},l.getAddress=function(t){return t?'\n        <p class="m-address-v2-local">\n          '+s.A.svg({icon:"location",stroke:!0})+"\n          "+t+"\n        </p>\n    ":""},l.getPhone=function(t){return t?'\n        <p class="m-address-v2-phone">\n          '+s.A.svg({icon:"phone-address",stroke:!0})+"\n          "+t+"\n        </p>\n    ":""},l.likeAddress=function(t){return'<input type="checkbox" id="like-'+t+'" class="m-like-checkbox">\n            <label for="like-'+t+'" class="m-like-label">\n                '+s.A.svg({icon:"favorite-v2",stroke:!1})+"       \n            </label>"},l.addressButtons=function(t,e,o,s){if(!t)return"";var i=c.address,n=i.map,r=i.info,a=i.copy,l=decodeURIComponent(e)+"-"+decodeURIComponent(o)+"-Brasil";return'\n        <div class="m-address-buttons">\n          <a class="m-btn m-address-buttons-copy is-fz-16 is-fz-t-16 is-fz-m-16 is-fw-700" \n              data-address="'+l+'">'+a+'</a>\n          <a href="https://www.google.com/maps/search/'+l+'" \n              class="m-btn m-address-buttons-map is-fz-16 is-fz-t-16 is-fz-m-16 is-fw-700"\n              target="_blank">'+n+'</a>\n          <a href="'+s+'"\n              class="m-btn m-address-buttons-info is-fz-16 is-fz-t-16 is-fz-m-16 is-fw-700">\n              '+r+"</a>\n        </div>"},e.A=l},2455:function(t,e,o){o.d(e,{A:function(){return i}});var s=window.universal_ajax_object.assetPath;function i(t){var e=t.headers,o=t.fallback,i=null,n=new Map,r=0;return function(t){var a=function(){if(!1===i)return null;if(i)return i;if(!window.Worker)return i=!1,null;try{(i=new Worker(s+"scripts/workers/fetch-worker.js")).addEventListener("message",(function(t){var e=t.data||{},o=e.id,s=e.data,i=e.error,r=n.get(o);r&&(n.delete(o),i?r.reject(new Error(i)):r.resolve(s))}))}catch(t){return i=!1,null}return i}();return a?new Promise((function(o,s){var i=++r;n.set(i,{resolve:o,reject:s}),a.postMessage({id:i,url:t,headers:e})})):o(t)}}}}]);

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.