PageSourceSearch

https://neoloop.ai/chunk-Y4ECCS32.js

js neoloop.ai collected 2026-09-24 11:04:15 UTC 5,700 bytes, 1 lines download raw bytes

1function _(r,e,i,s){function n(t){return t instanceof i?t:new i(function(o){o(t)})}return new(i||(i=Promise))(function(t,o){function l(a){try{c(s.next(a))}catch(h){o(h)}}function u(a){try{c(s.throw(a))}catch(h){o(h)}}function c(a){a.done?t(a.value):n(a.value).then(l,u)}c((s=s.apply(r,e||[])).next())})}function j(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var w,S;function A(){return S||(S=1,w=function r(e,i){if(e===i)return!0;if(e&&i&&typeof e=="object"&&typeof i=="object"){if(e.constructor!==i.constructor)return!1;var s,n,t;if(Array.isArray(e)){if(s=e.length,s!=i.length)return!1;for(n=s;n--!==0;)if(!r(e[n],i[n]))return!1;return!0}if(e.constructor===RegExp)return e.source===i.source&&e.flags===i.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===i.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===i.toString();if(t=Object.keys(e),s=t.length,s!==Object.keys(i).length)return!1;for(n=s;n--!==0;)if(!Object.prototype.hasOwnProperty.call(i,t[n]))return!1;for(n=s;n--!==0;){var o=t[n];if(!r(e[o],i[o]))return!1}return!0}return e!==e&&i!==i}),w}var C=A(),D=j(C),k="__googleMapsScriptId",d=(function(r){return r[r.INITIALIZED=0]="INITIALIZED",r[r.LOADING=1]="LOADING",r[r.SUCCESS=2]="SUCCESS",r[r.FAILURE=3]="FAILURE",r})(d||{}),O=class r{constructor({apiKey:e,authReferrerPolicy:i,channel:s,client:n,id:t=k,language:o,libraries:l=[],mapIds:u,nonce:c,region:a,retries:h=3,url:g="https://maps.googleapis.com/maps/api/js",version:p}){if(this.callbacks=[],this.done=!1,this.loading=!1,this.errors=[],this.apiKey=e,this.authReferrerPolicy=i,this.channel=s,this.client=n,this.id=t||k,this.language=o,this.libraries=l,this.mapIds=u,this.nonce=c,this.region=a,this.retries=h,this.url=g,this.version=p,r.instance){if(!D(this.options,r.instance.options))throw new Error(`Loader must not be called again with different options. ${JSON.stringify(this.options)} !== ${JSON.stringify(r.instance.options)}`);return r.instance}r.instance=this}get options(){return{version:this.version,apiKey:this.apiKey,channel:this.channel,client:this.client,id:this.id,libraries:this.libraries,language:this.language,region:this.region,mapIds:this.mapIds,nonce:this.nonce,url:this.url,authReferrerPolicy:this.authReferrerPolicy}}get status(){return this.errors.length?d.FAILURE:this.done?d.SUCCESS:this.loading?d.LOADING:d.INITIALIZED}get failed(){return this.done&&!this.loading&&this.errors.length>=this.retries+1}createUrl(){let e=this.url;return e+="?callback=__googleMapsCallback&loading=async",this.apiKey&&(e+=`&key=${this.apiKey}`),this.channel&&(e+=`&channel=${this.channel}`),this.client&&(e+=`&client=${this.client}`),this.libraries.length>0&&(e+=`&libraries=${this.libraries.join(",")}`),this.language&&(e+=`&language=${this.language}`),this.region&&(e+=`&region=${this.region}`),this.version&&(e+=`&v=${this.version}`),this.mapIds&&(e+=`&map_ids=${this.mapIds.join(",")}`),this.authReferrerPolicy&&(e+=`&auth_referrer_policy=${this.authReferrerPolicy}`),e}deleteScript(){let e=document.getElementById(this.id);e&&e.remove()}load(){return this.loadPromise()}loadPromise(){return new Promise((e,i)=>{this.loadCallback(s=>{s?i(s.error):e(window.google)})})}importLibrary(e){return this.execute(),google.maps.importLibrary(e)}loadCallback(e){this.callbacks.push(e),this.execute()}setScript(){var e,i;if(document.getElementById(this.id)){this.callback();return}let s={key:this.apiKey,channel:this.channel,client:this.client,libraries:this.libraries.length&&this.libraries,v:this.version,mapIds:this.mapIds,language:this.language,region:this.region,authReferrerPolicy:this.authReferrerPolicy};Object.keys(s).forEach(t=>!s[t]&&delete s[t]),!((i=(e=window?.google)===null||e===void 0?void 0:e.maps)===null||i===void 0)&&i.importLibrary||(t=>{let o,l,u,c="The Google Maps JavaScript API",a="google",h="importLibrary",g="__ib__",p=document,f=window;f=f[a]||(f[a]={});let m=f.maps||(f.maps={}),I=new Set,y=new URLSearchParams,P=()=>o||(o=new Promise((v,b)=>_(this,void 0,void 0,function*(){var E;yield l=p.createElement("script"),l.id=this.id,y.set("libraries",[...I]+"");for(u in t)y.set(u.replace(/[A-Z]/g,R=>
1"_"+R[0].toLowerCase()),t[u]);y.set("callback",a+".maps."+g),l.src=this.url+"?"+y,m[g]=v,l.onerror=()=>o=b(Error(c+" could not load.")),l.nonce=this.nonce||((E=p.querySelector("script[nonce]"))===null||E===void 0?void 0:E.nonce)||"",p.head.append(l)})));m[h]?console.warn(c+" only loads once. Ignoring:",t):m[h]=(v,...b)=>I.add(v)&&P().then(()=>m[h](v,...b))})(s);let n=this.libraries.map(t=>this.importLibrary(t));n.length||n.push(this.importLibrary("core")),Promise.all(n).then(()=>this.callback(),t=>{let o=new ErrorEvent("error",{error:t});this.loadErrorCallback(o)})}reset(){this.deleteScript(),this.done=!1,this.loading=!1,this.errors=[],this.onerrorEvent=null}resetIfRetryingFailed(){this.failed&&this.reset()}loadErrorCallback(e){if(this.errors.push(e),this.errors.length<=this.retries){let i=this.errors.length*Math.pow(2,this.errors.length);console.error(`Failed to load Google Maps script, retrying in ${i} ms.`),setTimeout(()=>{this.deleteScript(),this.setScript()},i)}else this.onerrorEvent=e,this.callback()}callback(){this.done=!0,this.loading=!1,this.callbacks.forEach(e=>{e(this.onerrorEvent)}),this.callbacks=[]}execute(){if(this.resetIfRetryingFailed(),!this.loading)if(this.done)this.callback();else{if(window.google&&window.google.maps&&window.google.maps.version){console.warn("Google Maps already loaded outside @googlemaps/js-api-loader. This may result in undesirable behavior as options and script parameters may not match."),this.callback();return}this.loading=!0,this.setScript()}}};export{O as a};

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.