PageSourceSearch

https://static.sketchfab.com/static/builds/web/dist/87a5add62ddbe83a3ee5b10d8b28bc05-v2.js

js sketchfab.com collected 2026-09-24 08:24:41 UTC 3,513 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunksketchfab=self.webpackChunksketchfab||[]).push([[733],{GuWZ:(e,t,n)=>{n.r(t);var o=n("eKF4"),i=n("Z1Nz"),r=n.n(i),s=n("TxBr"),a=n("5hHH"),c=n("iu9k");const u=["models:embed","models:embed_specific_version"],l=["misc:fallback_generator","misc:fallback_generator_viewer","models:view","models:view_without_slug"],h=o.Z.me().get("isStaff"),f=()=>!(u.some((e=>(0,c.EQ)(e,window.location.pathname)))&&(()=>{try{window.parent.location.host}catch(e){return!1}return!0})()||h&&l.some((e=>(0,c.EQ)(e,window.location.pathname))));o.Z.me().canAccessFeature("ff_analytics_package")&&f()&&((0,i.init)({getCSRFToken:function(){return s.ZP.get("sb_csrftoken")||""}}),r()("PAGE_VIEWED"),a.Z.listen((()=>f()&&r()("PAGE_VIEWED"))))},Z1Nz:function(e,t,n){var o=n("Oyie"),i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=o))((function(o,r){function s(e){try{c(i.next(e))}catch(e){r(e)}}function a(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.init=void 0;const r=n("lXhu");t.init=function(e){(0,r.setSettings)(e),(0,r.setSessionUid)(),r.EventBag.length>0&&(0,r.post)()},t.default=function(e){return i(this,void 0,void 0,(function*(){const t=Object.assign({Url:window.location.href,Referer:document.referrer,Screen:{width:window.screen.width,height:window.screen.height},Browser:{width:window.outerWidth,height:window.outerHeight}},"string"==typeof e?{EventName:e}:e);r.EventBag.push(t),(0,r.post)()}))}},lXhu:function(e,t,n){var o=n("Oyie"),i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=o))((function(o,r){function s(e){try{c(i.next(e))}catch(e){r(e)}}function a(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.post=t._post=t.setSessionUid=t.EventBag=t.setSettings=t.getSettings=void 0;let r={domain:window.location.origin,endpoint:"/a/ramen",interval:1e3,maxEventsLength:10},s=null;function a(){return r}t.getSettings=a,t.setSettings=function(e){return r=Object.assign(Object.assign({},r),e)};const c=(e=>{try{const t=localStorage.getItem(e);return t?JSON.parse(t):[]}catch(e){console.error("Can't read in localStorage",e)}return[]})("userEvents");t.EventBag=new Proxy(c,{set:function(e,t,n){e[t]=n;try{localStorage.setItem("userEvents",JSON.stringify(e))}catch(e){console.error("Can't write to localStorage",e)}return!0}});function u(){return i(this,void 0,void 0,(function*(){const e=a();if(0===t.EventBag.length||!s)return;const n=t.EventBag.map((e=>Object.assign(Object.assign({},e),{SessionUid:s}))),o=JSON.stringify({events:n}),i=new URL(e.endpoint,e.domain).toString();fetch(i,{method:"POST",headers:Object.assign({"Content-Type":"application/json","x-csrftoken":e.getCSRFToken()},e.headers),body:o}).then((e=>{if(!e.ok)throw new Error("Invalid response");t.EventBag.length=0})).catch((e=>{console.error(e)}))}))}t.setSessionUid=()=>
1{if(!s)try{s=window.crypto.randomUUID().replace(/-/g,"")}catch(e){console.error("setSessionUid failed",e)}},t._post=u,t.post=function(e,n,o){let i;return(...r)=>{clearTimeout(i),i=setTimeout((()=>{e.apply(this,r)}),n),t.EventBag.length>=o&&(e.apply(this,r),clearTimeout(i))}}(u,a().interval,a().maxEventsLength)}}]);
2//# sourceMappingURL=87a5add62ddbe83a3ee5b10d8b28bc05-v2.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.