PageSourceSearch

https://www.fueltech.com.br/cdn/shopifycloud/checkout-web/assets/c1/sandbox-2025-07.D1aPqhNY.worker.js

js fueltech.com.br collected 2026-09-25 18:51:35 UTC 30,953 bytes, 3 lines download raw bytes

1var __defProp=Object.defineProperty;var __defProps=Object.defineProperties;var __getOwnPropDescs=Object.getOwnPropertyDescriptors;var __getOwnPropSymbols=Object.getOwnPropertySymbols;var __hasOwnProp=Object.prototype.hasOwnProperty;var __propIsEnum=Object.prototype.propertyIsEnumerable;var __typeError=msg=>{throw TypeError(msg)};var __defNormalProp=(obj,key,value)=>key in obj?__defProp(obj,key,{enumerable:true,configurable:true,writable:true,value}):obj[key]=value;var __spreadValues=(a,b)=>{for(var prop in b||(b={}))if(__hasOwnProp.call(b,prop))__defNormalProp(a,prop,b[prop]);if(__getOwnPropSymbols)for(var prop of __getOwnPropSymbols(b)){if(__propIsEnum.call(b,prop))__defNormalProp(a,prop,b[prop])}return a};var __spreadProps=(a,b)=>__defProps(a,__getOwnPropDescs(b));var __objRest=(source,exclude)=>{var target={};for(var prop in source)if(__hasOwnProp.call(source,prop)&&exclude.indexOf(prop)<0)target[prop]=source[prop];if(source!=null&&__getOwnPropSymbols)for(var prop of __getOwnPropSymbols(source)){if(exclude.indexOf(prop)<0&&__propIsEnum.call(source,prop))target[prop]=source[prop]}return target};var __accessCheck=(obj,member,msg)=>member.has(obj)||__typeError("Cannot "+msg);var __privateGet=(obj,member,getter)=>(__accessCheck(obj,member,"read from private field"),getter?getter.call(obj):member.get(obj));var __privateAdd=(obj,member,value)=>member.has(obj)?__typeError("Cannot add the same private member more than once"):member instanceof WeakSet?member.add(obj):member.set(obj,value);var __privateSet=(obj,member,value,setter)=>(__accessCheck(obj,member,"write to private field"),setter?setter.call(obj,value):member.set(obj,value),value);var __privateMethod=(obj,member,method)=>(__accessCheck(obj,member,"access private method"),method);var __async=(__this,__arguments,generator)=>{return new Promise((resolve,reject)=>{var fulfilled=value=>{try{step(generator.next(value))}catch(e){reject(e)}};var rejected=value=>{try{step(generator.throw(value))}catch(e){reject(e)}};var step=x=>x.done?resolve(x.value):Promise.resolve(x.value).then(fulfilled,rejected);step((generator=generator.apply(__this,__arguments)).next())})};(function(){"use strict";var _e2,_e3,_e4,_l,_i,_c,_o,_d,_a,_t2,_h,_r,_n,_Pt_instances,u_fn,s_fn,m_fn,p_fn,b_fn,f_fn,g_fn;const L=Symbol.for("RemoteUi::Retain"),k=Symbol.for("RemoteUi::Release"),N=Symbol.for("RemoteUi::RetainedBy");class J{constructor(){this.memoryManaged=new Set}add(t){this.memoryManaged.add(t),t[N].add(this),t[L]()}release(){for(const t of this.memoryManaged)t[N].delete(this),t[k]();this.memoryManaged.clear()}}function H(e){return!!(e&&e[L]&&e[k])}function P(e,{deep:t=true}={}){return Y(e,t,new Map)}function Y(e,t,r){const n=r.get(e);if(n!=null)return n;const o=H(e);if(o&&e[L](),r.set(e,o),t){if(Array.isArray(e)){const a=e.reduce((i,u)=>Y(u,t,r)||i,o);return r.set(e,a),a}if(j(e)){const a=Object.keys(e).reduce((i,u)=>Y(e[u],t,r)||i,o);return r.set(e,a),a}}return r.set(e,o),o}function Z(e,{deep:t=true}={}){return G(e,t,new Map)}function G(e,t,r){const n=r.get(e);if(n!=null)return n;const o=H(e);if(o&&e[k](),r.set(e,o),t){if(Array.isArray(e)){const a=e.reduce((i,u)=>G(u,t,r)||i,o);return r.set(e,a),a}if(j(e)){const a=Object.keys(e).reduce((i,u)=>G(e[u],t,r)||i,o);return r.set(e,a),a}}return o}function j(e){if(e==null||typeof e!="object")return false;const t=Object.getPrototypeOf(e);return t==null||t===Object.prototype}const U="_@f",K="_@fn";function Re(e){var _a2;const t=typeof self<"u"&&self.name||((_a2=globalThis.location)==null?void 0:_a2.origin)||"unknown",r=e.uuid();let n=null;const o=new Map,a=new Map,i=new Map,u=new Map;return{encode:E,decode:l,call(s,c){return __async(this,null,function*(){const m=new J,p=a.get(s);if(p==null){const d=u.get(s)||"unknown",f=new Error("[".concat(t,"] You attempted to call a function that was already released. (function: ").concat(d,", endpoint: ").concat(r).concat(n!=null?", endpoint terminated ".concat(Date.now()-n,"ms ago"):"",")"));throw f.name="RemoteFunctionReleasedError",f}try{const d=H(p)?[m,...p[N]]:[m];return yield p(...l(c,d))}finally{m.release()}})},release(s){const c=a.get(s);c&&(a.delete(s),o.delete(c),u.set(s,c.name||"unknown"))}
1,terminate(){n=Date.now(),o.clear(),a.clear(),i.clear(),u.clear()}};function E(s,c=new Map){if(s==null)return[s];const m=c.get(s);if(m)return m;if(typeof s=="object"){if(Array.isArray(s)){c.set(s,[void 0]);const d=[],b=[s.map(g=>{const[y,S=[]]=E(g,c);return d.push(...S),y}),d];return c.set(s,b),b}if(j(s)){c.set(s,[void 0]);const d=[],b=[Object.keys(s).reduce((g,y)=>{const[S,h=[]]=E(s[y],c);return d.push(...h),__spreadProps(__spreadValues({},g),{[y]:S})},{}),d];return c.set(s,b),b}}if(typeof s=="function"){if(o.has(s)){const b=o.get(s),g=[{[U]:b}];return c.set(s,g),g}const d=e.uuid();o.set(s,d),a.set(d,s);const f=[{[U]:d,[K]:s.name||String(s).slice(0,100)}];return c.set(s,f),f}const p=[s];return c.set(s,p),p}function l(s,c){if(typeof s=="object"){if(s==null)return s;if(Array.isArray(s))return s.map(m=>l(m,c));if(U in s){const m=s[U];if(i.has(m))return i.get(m);let p=0,d=false,f=null;const b=()=>{p-=1,p===0&&(d=true,f=Date.now(),i.delete(m),e.release(m))},g=()=>{p+=1},y=new Set(c),S=K in s&&s[K]||"unknown",h=(...R)=>{if(d){const w=new Error("[".concat(t,"] You attempted to call a function that was already released. (function: ").concat(S,", endpoint: ").concat(r).concat(f!=null?", released ".concat(Date.now()-f,"ms ago"):"",", retained by ").concat(y.size,")"));throw w.name="RemoteFunctionReleasedError",w}if(!i.has(m)){const w=new Error("[".concat(t,"] You attempted to call a function that was already revoked. (function: ").concat(S,", endpoint: ").concat(r).concat(n!=null?", endpoint terminated ".concat(Date.now()-n,"ms ago"):"",", retained by ").concat(y.size,")"));throw w.name="RemoteFunctionRevokedError",w}return e.call(m,R)};Object.defineProperties(h,{[k]:{value:b,writable:false},[L]:{value:g,writable:false},[N]:{value:y,writable:false}});for(const R of y)R.add(h);return i.set(m,h),h}if(j(s))return Object.keys(s).reduce((m,p)=>__spreadProps(__spreadValues({},m),{[p]:l(s[p],c)}),{})}return s}}const ee=0,W=1,te=2,re=3,ne=5,z=6;class oe extends Error{constructor(t){const{callId:r,error:n,result:o}=t,a=n?" Error: ".concat(String(n)):"",i=o==null?"":" Result: ".concat(JSON.stringify(o));super("No resolver found for call ID: ".concat(r).concat(a).concat(i)),this.callId=void 0,this.error=void 0,this.result=void 0,this.groupingHash="RemoteUI::MissingResolverError",this.name="MissingResolverError",this.callId=r,this.error=n,this.result=o}}function Me(e,{uuid:t=xe,createEncoder:r=Re,callable:n}={}){let o=false,a=e;const i=new Map,u=new Map,E=Ae(m,n),l=r({uuid:t,release(f){s(re,[f])},call(f,b,g){const y=t(),S=p(y,g),[h,R]=l.encode(b);return s(ne,[y,f,h],R),S}});return a.addEventListener("message",c),{call:E,replace(f){const b=a;a=f,b.removeEventListener("message",c),f.addEventListener("message",c)},expose(f){for(const b of Object.keys(f)){const g=f[b];typeof g=="function"?i.set(b,g):i.delete(b)}},callable(...f){if(n!=null)for(const b of f)Object.defineProperty(E,b,{value:m(b),writable:false,configurable:true,enumerable:true})},terminate(){s(te,void 0),d(),a.terminate&&a.terminate()}};function s(f,b,g){o||a.postMessage(b?[f,b]:[f],g)}function c(f){return __async(this,null,function*(){if(o)return;const{data:b}=f;if(Pe(b))switch(b[0]){case te:{d();break}case ee:{const g=new J,[y,S,h]=b[1],R=i.get(S);try{if(R==null)throw new Error("No '".concat(S,"' method is exposed on this endpoint"));const[w,M]=l.encode(yield R(...l.decode(h,[g])));s(W,[y,void 0,w],M)}catch(w){const{name:M,message:x,stack:C}=w;throw s(W,[y,{name:M,message:x,stack:C}]),w}finally{g.release()}break}case W:{const[g,y,S]=b[1],h=u.get(g);if(h==null)throw new oe({callId:g,error:y,result:S});h(...b[1]),u.delete(g);break}case re:{const[g]=b[1];l.release(g);break}case z:{const[g,y,S]=b[1],h=u.get(g);if(h==null)throw new oe({callId:g,error:y,result:S});h(...b[1]),u.delete(g);break}case ne:{const[g,y,S]=b[1];try{const h=yield l.call(y,S),[R,w]=l.encode(h);s(z,[g,void 0,R],w)}catch(h){const{name:R,message:w,stack:M}=h;throw s(z,[g,{name:R,message:w,stack:M}]),h}break}}})}function m(f){return(...b)=>{if(o)return Promise.reject(new Error("You attempted to call a function on a terminated web worker."));if(typeof f!="string"&&typeof f!="number")return Promise.reject(new Error("Can\u2019t call a symbol method on a remote endpoint: ".concat(f.toString())));const g=t(),y=p(g),[S,h]=l.encode(b);return s(ee,[g,f,S],h),y}}function p(f,b){return new Promise((g,y)=>{u.set(f,(S,h,R)=>
1{if(h==null)g(R&&l.decode(R,b));else{const w=new Error;Object.assign(w,h),y(w)}})})}function d(){var f;o=true,i.clear(),u.clear(),(f=l.terminate)===null||f===void 0||f.call(l),a.removeEventListener("message",c)}}function xe(){return"".concat(D(),"-").concat(D(),"-").concat(D(),"-").concat(D())}function D(){return Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)}function Ae(e,t){let r;if(t==null){if(typeof Proxy!="function")throw new Error("You must pass an array of callable methods in environments without Proxies.");const n=new Map;r=new Proxy({},{get(o,a){if(n.has(a))return n.get(a);const i=e(a);return n.set(a,i),i}})}else{r={};for(const n of t)Object.defineProperty(r,n,{value:e(n),writable:false,configurable:true,enumerable:true})}return r}function Pe(e){return Array.isArray(e)&&typeof e[0]=="number"&&(e[1]==null||Array.isArray(e[1]))}function kt(e){return e}const Te=0;function $e(e){P(e);let t=e.initial,r=true,n=false;const o=new Set,a=Promise.resolve(e.subscribe(i)).then(u=>(n||i(u[1]),u));return{get current(){return t},subscribe(u){return o.add(u),()=>{o.delete(u)}},destroy(){return __async(this,null,function*(){r=false,o.clear();const[u]=yield a;u(),Z(e)})}};function i(u){if(n=true,!(!r||t===u)){t=u;for(const E of o)E(t)}}}const Ce="__remote_signal__";function Ie(e){"signal"in e&&Object.assign(e,{signal:Fe(e.signal)})}function Fe(e){if(Oe(e))return e;const t=new AbortController,{aborted:r,start:n}=e;return r?(t.abort(),t.signal):(n&&(P(n),n(o=>{o&&t.abort()})),t.signal.addEventListener("abort",()=>__async(null,null,function*(){Z(n)}),{once:true}),t.signal)}function Oe(e){return e!=null&&e.aborted!=null&&typeof e.addEventListener=="function"}class se extends Error{constructor(){super(...arguments),this.name="ExtensionSandboxError"}}class A extends Error{constructor(){super(...arguments),this.name="ExtensionUsageError"}}class _e extends Error{constructor(){super(...arguments),this.name="ExtensionAssetFetchError"}}function T(e){return(...t)=>{var _a2;try{return e(...t)}catch(r){throw r.name==="ExtensionUsageError"?r:new se((_a2=r==null?void 0:r.message)!=null?_a2:"Unknown error",{cause:r})}}}function Le({extensionTarget:e,announcementEmitter:t}){if(e!=="purchase.thank-you.announcement.render")return{};P(t);const r={};t.on("announcementClosed",()=>{T(()=>{if(r.close)for(const i of r.close)i()})()});function n(i,u){i==="close"&&(r[i]||(r[i]=new Set),r[i].add(u))}function o(i,u){i==="close"&&r[i]&&r[i].delete(u)}function a(){t.emit("closeAnnouncement")}return{announcement:{close:T(a),addEventListener:T(n),removeEventListener:T(o)}}}const ie="latn",ce="-u-nu-".concat(ie);function ae(e){try{const t=new Intl.Locale(e);return new Intl.Locale(t.baseName,{numberingSystem:ie}).toString()}catch(e2){return ke(e)}}function ke(e){return e.includes("-u-nu-")?e.replace(/-u-nu-[a-z0-9]+/i,ce):"".concat(e).concat(ce)}function Ne(e,t,r){const n=new Map,o=new Map;function a(l,_a2={}){var _b=_a2,{inExtensionLocale:s}=_b,c=__objRest(_b,["inExtensionLocale"]);if(c.style==="currency"&&(typeof c.currency!="string"||c.currency.length===0))throw new A('i18n.formatNumber(): currency option must be a valid currency code string when style is "currency"');const m=I(s===true?e.extensionLanguage:e.language),p=ue(m,c);let d=n.get(p);return d||(d=je(m,c),n.set(p,d)),d.format(l)}function i(l,_c2={}){var _d2=_c2,{inExtensionLocale:s}=_d2,c=__objRest(_d2,["inExtensionLocale"]);return a(l,__spreadValues({inExtensionLocale:s,style:"currency",currency:Be(e.currency)},c))}function u(l,_e5={}){var _f=_e5,{inExtensionLocale:s}=_f,c=__objRest(_f,["inExtensionLocale"]);const m=I(s===true?e.extensionLanguage:e.language),p=ue(m,c);let d=o.get(p);return d||(d=Ue(m,c),o.set(p,d)),d.format(l)}const E=(l,s={})=>{let c=t[l],m=false;const p=I(e.extensionLanguage);function d(w){if(r==="local")throw new A("translate(): ".concat(w));console.error(new A("translate(): ".concat(w)))}if(typeof s.count=="number"){const w=De(p).select(s.count),M="".concat(l,".").concat(w);if(c=t[M],c===void 0){const x=t["".concat(l,".other")];if(w!=="other"&&x!==void 0)c=x,console.warn(new A('translate(): MISSING PLURALIZATION KEY for locale "'.concat(p,'": "').concat(M,'". Using fallback key of "').concat(l,'.other".')));else if(typeof t[l]=="string")m=true,c=t[l];else{const C='MISSING PLURALIZATION KEY for locale "'.concat(p,'": "').concat(M,'"');return d(C),C}}}else if(typeof s.count=="string"&&typeof t[l]=="string")c=t[l];else if(s.count!==void 0){const w='INCORRECT TYPE for options.count. Mu
1st be typeof "number".';return d(w),w}if(c===void 0){const w=["".concat(l,".zero"),"".concat(l,".one"),"".concat(l,".two"),"".concat(l,".few"),"".concat(l,".many"),"".concat(l,".other")];let M='MISSING KEY for locale "'.concat(p,'": "').concat(l,'"');for(const x of w)if(t[x]!==void 0){M='MISSING PROPERTY "options.count" for pluralization.',d(M);break}return d(M),M}const f=[],b=/(.*?(?={{|$|\n))(?:{{(.+?(?=}}))}})?/g,g=new Set(Object.keys(s)),y=new Set,S=[];let h=b.exec(c),R=false;for(;h&&!(h.index>=c.length);){const w=h[0],M=h[2],x=M==null?void 0:M.trim(),C=f.length-1;let Q=h[1]||"",Se=false;if(x!==void 0)if(g.has(x))typeof s[x]=="string"||typeof s[x]=="number"?Q+=String(s[x]):M!==void 0&&(R=true,Se=true),y.add(x);else{const Lt='MISSING PLACEHOLDER VALUE for locale "'.concat(p,'": "options.').concat(M,'" is required for "').concat(l,'"');d(Lt),f.push(w),h=b.exec(c);continue}typeof f[C]=="string"?f[C]+=Q:f.push(Q),Se&&x!==void 0&&f.push(s[x]),h=b.exec(c)}for(const w of g)m===false&&w==="count"||y.has(w)||S.push('"{{'.concat(w,'}}"'));if(S.length>0){const w=S.length===1?"MISSING PLACEHOLDER":"MISSING PLACEHOLDERS";d("".concat(w,' for locale "').concat(p,'": ').concat(S.join(", "),' not found in "').concat(l,'"'))}return R?f:f.join("")};return{formatNumber:T(a),formatCurrency:T(i),formatDate:T(u),translate:T(E)}}function ue(e,t={}){return"".concat(e,"|").concat(JSON.stringify(t))}function V(e,t){try{return t(e)}catch(r){const n=qe(e);if(n&&n!==e)return t(n);throw r}}function je(e,t){return V(e,r=>new Intl.NumberFormat(ae(r),t))}function Ue(e,t){return V(e,r=>new Intl.DateTimeFormat(ae(r),t))}function De(e){return V(e,t=>new Intl.PluralRules(t))}function qe(e){var _a2;return(_a2=e.match(/^([a-z]{2,3})(?:[-_].*)?$/i))==null?void 0:_a2[1]}function I(e){return"current"in e?e.current.isoCode:e.isoCode}function Be(e){return"current"in e?e.current.isoCode:e.isoCode}function fe(e,t,r,n,o){const a=le(e);let i;t==="purchase.thank-you.announcement.render"&&o&&(i=Le({extensionTarget:t,announcementEmitter:o}));const u=__spreadValues(__spreadProps(__spreadValues({},a),{i18n:Ne(a.localization,r,n)}),i||{});return Ie(u),u.extensionPoint=t,u.extension.target=t,u}function le(e){if(He(e))return Ge(e);if(typeof e=="object"&&e!=null&&!Ye(e)){for(const t of Object.keys(e)){const r=e;r[t]=le(r[t])}return e}return e}function He(e){return typeof e=="object"&&e!=null&&"initial"in e&&typeof e.subscribe=="function"}function Ye(e){return typeof e=="object"&&e!=null&&"current"in e&&typeof e.subscribe=="function"}function Ge(e){const t=$e(e);return Object.defineProperty(t,Ce,{value:true}),Object.defineProperty(t,"value",{get(){return t.current}}),t}const Ke=50,We=1e3;function ze(e){let t=[];return o=>{t.push(o),t.length===1&&r()};function r(){if(typeof requestIdleCallback=="function"){requestIdleCallback(n,{timeout:We});return}setTimeout(n,Ke)}function n(){if(t.length===0)return;const o=t;t=[],e(o)}}const Ve=new Set(["extend","setSignals"]);function Xe(e,t,{shouldReport:r,reportedApiPropertyNames:n=new Set}={}){const o=new WeakMap,a=ze(t);if(!de(e))return e;return i(e,[]);function i(E,l){const s=o.get(E);if(s)return s;const c=new Proxy(E,{get(m,p){const d=Reflect.get(m,p,m);if(typeof p!="string"||!Object.prototype.hasOwnProperty.call(m,p))return d;const f=[...l,p];return(l.length>0||!Ve.has(p))&&u(f.join(".")),de(d)&&!ve(d)?i(d,f):d}});return o.set(E,c),c}function u(E){r&&!r()||n.has(E)||(n.add(E),a(E))}}function ve(e){return typeof e.subscribe=="function"&&("current"in e||"value"in e)}function de(e){if(typeof e!="object"||e===null)return false;const t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}class Qe{constructor(){__privateAdd(this,_e2,new Set)}throwDetachedOnce(t,r){const n=(()=>{try{return String(r)}catch(e){return"unknown error"}})();try{if(__privateGet(this,_e2).has(t))return;const o=new se("[extension-tts] ".concat(t," ExtensionSandboxError: ").concat(n),{cause:r});setTimeout(()=>{throw o},0),__privateGet(this,_e2).add(t)}catch(e){}}reset(){__privateGet(this,_e2).clear()}}_e2=new WeakMap;const F=new Qe;function Je(e,t){try{const r=e,n=r.query;if(typeof n!="function")return;P(n),r.query=function(...a){t.fetchStarted(true);try{return Reflect.apply(n,this,a).finally(()=>{t.fetchResolved()})}catch(i){throw t.fetchResolved(),i}}}catch(r){t.silence(),F.throwDetachedOnce("wrap-query-setup",r)}}function Ze(e,t){let r=e;do Object.getOwnPropertyNames(r).filter(n=>n in t&&t[n]!==false).forEach(n=>{try{const o=Object.getOwnPropertyDescriptor(r,n);Object.defineProperty(r,n,{value:t[n]===true?void 0:t[n],configurable:true,enumerable:o==null?void 0:o.enumerable,writable:false})}catch(e2){}}),r=Object.getPrototypeOf(r);while(r!==Object.prototype)}function et(e,t){Ze(e,t)}const tt="sandbox-js-eval-2025-07",rt=/^\/api\/.+\/graphql\.json$/,nt=/^(\/\/)?(\/)?storefront\/api\/(.+\/)?graphql\.json$/;function ot(e,t,r){const n=new URL(e),o=new URL(t),a=new URL("https://".concat(r)),i=rt.test(n.pathname)&&(n.host===o.host||n.host===a.host);return nt.test(n.pathname)||i}function st(){return __async(this,null,function*(){throw new A('permission to access the storefront API must be specified under [capabilities] with flag "api_access = true"; this can be done within your extension\'s configuration. View the docs for more information:\n\nhttps://shopify.dev/docs/api/checkout-ui-extensions/configuration#api-access')})}function X(){return __async(this,null,function*(){throw new A('permission to use fetch() must be specified under [capabilities] with flag "network_access = true"; this can be done within your extension\'s configuration. View the docs for more information:\n\nhttps://shopify.dev/docs/api/checkout-ui-extensions/configuration#network-access')})}function he(){throw new A('permission to use WebSocket must be specified under [capabilities] with flag "network_access = true"; this can be done within your extension\'s configuration. View the docs for more information:\n\nhttps://shopify.dev/docs/api/checkout-ui-extensions/configuration#network-access')}const it={XMLHttpRequestUpload:true,XMLHttpRequestEventTarget:true,XMLHttpRequest:true,Backgroun
1dFetchManager:true,BackgroundFetchRecord:true,BackgroundFetchRegistration:true,BackgroundFetchEvent:true,BackgroundFetchUpdateUIEvent:true,Cache:true,CacheStorage:true,caches:true,fetch:X,Request:true,Response:true,Headers:true,Worker:true,SharedWorker:true,WebSocket:he,EventSource:true,PaymentMethodChangeEvent:true,PaymentRequest:true,PaymentRequestUpdateEvent:true,PaymentResponse:true,PushEvent:true,PushManager:true,PushMessageData:true,PushSubscription:true,PushSubscriptionOptions:true,ServiceWorkerRegistration:true,importScripts:true},v=Me(self,{callable:[]});self.addEventListener("message",({data:e})=>{e!=null&&e.__replace instanceof MessagePort&&(v.replace(e.__replace),e.__replace.start())}),Object.defineProperty(self,"endpoint",{value:v,enumerable:false,writable:false,configurable:true});function ct(){const e=v;return e.callable("reload"),e.callable("apiFetch"),e.callable("extensionPerformanceMarkStarted"),e.callable("extensionPerformanceMarkFinished"),e.callable("reportSandboxError"),e.callable("reportApiRead"),e}function me(e){if(typeof e=="function"||e instanceof AbortSignal)return;if(typeof e!="object"||e==null)return e;const t={};for(const r in e)t[r]=me(e[r]);return t}const at=Request,ut=Response,ft=[101,103,204,205,304];function lt(_0){return __async(this,arguments,function*(e,t={}){const{port1:r,port2:n}=new MessageChannel;try{const o=new at(e,t);if(new URL(o.url).origin===self.origin)throw Error("Fetches to the iframe's origin are not allowed.");o.signal.throwIfAborted(),o.signal.addEventListener("abort",()=>{r.postMessage({action:"abort",reason:o.signal.reason})});const a=o.url,i={method:o.method,headers:[...o.headers],mode:o.mode,credentials:o.credentials,cache:o.cache,redirect:o.redirect,referrer:o.referrer,integrity:o.integrity,keepalive:o.keepalive},u=[n];o.method!=="GET"&&o.method!=="HEAD"&&(i.body=yield o.arrayBuffer(),u.push(i.body));const E={action:"fetch",url:a,requestInit:i,returnPort:n};return self.postMessage(E,u),new Promise((l,s)=>{r.addEventListener("message",c=>{if(c.data){if(c.data.error)s(c.data.error),r.close();else if(c.data.response){const{status:m}=c.data.response.init,p=ft.includes(m)?null:c.data.response.body;l(new ut(p,c.data.response.init)),r.close()}}}),r.start()})}catch(o){return r==null?void 0:r.close(),Promise.reject(o)}})}const dt=Date.now();function ht(){return pe(performance.now())}function pe(e){return typeof(performance==null?void 0:performance.timeOrigin)=="number"?e+performance.timeOrigin:e+dt}function mt(e){const t=pe(e.settledAt);return __spreadValues({startTime:t,timestamp:t,ttsCompletionReason:e.reason,ttsRenderObserved:e.renderedContent},e.fetchAttributable===true&&{ttsRequestCount:e.fetchCount})}function q(){return{startTime:ht(),timestamp:Date.now()}}function pt(e){return{extensionPerformanceMarkStarted:(t,r={})=>{e.call.extensionPerformanceMarkStarted(t,__spreadValues(__spreadValues({},q()),r))},extensionPerformanceMarkFinished:(t,r={})=>{e.call.extensionPerformanceMarkFinished(t,__spreadValues(__spreadValues({},q()),r))}}}class bt{constructor(){__privateAdd(this,_e3,new Map)}registerCapture(t,r){const n=__privateGet(this,_e3).get(t);n&&n!==r&&this.discardCapture(t,n),__privateGet(this,_e3).set(t,r)}discardCapture(t,r){try{if(__privateGet(this,_e3).get(t)!==r)return;try{r.silence()}finally{__privateGet(this,_e3).delete(t)}}catch(n){F.throwDetachedOnce("bridge-discard-capture",n)}}liveCaptureCount(){return __privateGet(this,_e3).size}isSoleCapture(t){return __privateGet(this,_e3).size===1&&__privateGet(this,_e3).has(t)}notifyFetchStarted(){const t=[...__privateGet(this,_e3).values()];try{for(const r of t)r.fetchStarted()}catch(r){F.throwDetachedOnce("bridge-notify-fetch-started",r)}return()=>{try{for(const r of t)r.fetchResolved()}catch(r){F.throwDetachedOnce("bridge-resolve-fetch",r)}}}reset(){__privateGet(this,_e3).clear()}}_e3=new WeakMap;const O=new bt,gt=Request,yt=Response,wt=e=>t=>__async(null,null,function*(){const r=yield e.call.apiFetch(t);return St(r)});let be;function Et(e){be=wt(e)}function St(_a2){var _b=_a2,{body:e}=_b,t=__objRest(_b,["body"]);return new yt(e,t)}function Rt({allowNetworkAccess:e,allowApiAccess:t,storefrontUrl:r,myshopifyDomain:n,metrics:o,extensionId:a,instanceId:i,capture:u}){const E=lt;return function(s,c){return __async(this,null,function*(){var _a2,_b;let m,p,d="external";const f=performance.now(),{startTime:b}=q();let g;u?(u.fetchStarted(true),g=()=>u.fetchResolved()):g=O.notifyFetchStarted();try{if(!e&&!t)throw yield X();let y;try{y=new gt(s,c)}catch(h){throw new A("Invalid request: ".concat(h))}if(ot(y.url,r,n)){if(d="storefront",!t)return yield st();const h=yield y.text(),R=yield be(__spreadProps(__spreadValues({},me(y)),{headers:y.headers?Array.from(y.headers.entries()):[],body:h}));return"status"in R&&typeof R.status=="number"&&(p=R.status),R}if(d="external",e){const h=yield E(s,c);return"status"in h&&typeof h.status=="number"&&(p=h.status),h}return yield X()}catch(y){throw y instanceof Error&&y.name==="ExtensionUsageError"?m="ExtensionUsageError":m="unknown",y}finally{g();let y="unknown",S="unknown";try{const M=typeof s=="string"?s:s.url;S=M,y=new URL(M).origin}catch(e2){}const R=((_b=(_a2=c==null?void 0:c.method)!=null?_a2:typeof s=="string"?void 0:s.method)!=null?_b:"GET").toUpperCase(),w=performance.now()-f;o.extensionPerformanceMarkFinished("extension-fetch-call",{type:"extension-fetch",startTime:b,duration:w,errorType:m,destination:d,httpStatus:p,httpMethod:R,origin:y,requestUrl:S,extensionId:a,instanceId:i})}})}}const B=new Map;function Mt(e){const t=Object.freeze({extend(r,n){B.set(r,n)},reload(){e.call.reload()}});Reflect.defineProperty(self,"shopify",{value:t,configurable:false,enumerable:true,writable:false})}function ge(e){return Array.isArray(e)?e.find(t=>B.has(t)):B.has(e)?e:void 0}const xt=500,At=1e4;class Pt{constructor(t){__privateAdd(this,_Pt_instances);__privateAdd(this,_e4);__privateAdd(this,_l);__privateAdd(this,_i);__privateAdd(this,_c,false);__privateAdd(this,_o,0);__privateAdd(this,_d,0);__privateAdd(this,_a,true);__privateAdd(this,_t2,false);__privateAdd(this,_h,false);__privateAdd(this,_r,null);__privateAdd(this,_n,null);__privateSet(this,_e4,t.emit),__privateSet(this,_l,t.isSoleCapture),this.recordMutation=__privateMethod(this,_Pt_instances,u_fn).call(this,this.recordMutation,"record-mutation"),this.fetchStarted=__privateMethod(this,_Pt_instances,u_fn).call(this,this.fetchStarted,"fetch-started"),this.fetchResolved=__privateMethod(this,_Pt_instances,u_fn).call(this,this.fetchResolved,"fetch-resolved");try{__privateSet(this,_n,setTimeout(()=>{try{__privateSet(this,_n,null),__privateMethod(this,_Pt_instances,b_fn).call(this,"exceeded-deadline")}
1catch(r){__privateMethod(this,_Pt_instances,s_fn).call(this,"deadline-timer",r)}},At))}catch(r){__privateMethod(this,_Pt_instances,s_fn).call(this,"capture-construct",r)}}recordMutation(){__privateGet(this,_t2)||(__privateSet(this,_c,true),__privateSet(this,_i,performance.now()),__privateMethod(this,_Pt_instances,p_fn).call(this,xt))}fetchStarted(t){if(__privateGet(this,_t2))return;const r=t!=null?t:__privateGet(this,_l).call(this);__privateGet(this,_a)&&!r&&__privateSet(this,_a,false),__privateSet(this,_d,__privateGet(this,_d)+1),__privateSet(this,_o,__privateGet(this,_o)+1)}fetchResolved(){__privateGet(this,_t2)||(__privateSet(this,_o,Math.max(0,__privateGet(this,_o)-1)),__privateMethod(this,_Pt_instances,m_fn).call(this)&&__privateMethod(this,_Pt_instances,p_fn).call(this,0))}silence(){__privateSet(this,_h,true),__privateSet(this,_t2,true),__privateMethod(this,_Pt_instances,f_fn).call(this),__privateMethod(this,_Pt_instances,g_fn).call(this)}}_e4=new WeakMap;_l=new WeakMap;_i=new WeakMap;_c=new WeakMap;_o=new WeakMap;_d=new WeakMap;_a=new WeakMap;_t2=new WeakMap;_h=new WeakMap;_r=new WeakMap;_n=new WeakMap;_Pt_instances=new WeakSet;u_fn=function(t,r){const n=t.bind(this);return(...o)=>{if(!__privateGet(this,_h))try{n(...o)}catch(a){__privateMethod(this,_Pt_instances,s_fn).call(this,r,a)}}};s_fn=function(t,r){this.silence(),F.throwDetachedOnce(t,r)};m_fn=function(){return!__privateGet(this,_t2)&&__privateGet(this,_c)&&__privateGet(this,_r)===null&&__privateGet(this,_o)===0};p_fn=function(t){__privateMethod(this,_Pt_instances,f_fn).call(this),__privateSet(this,_r,setTimeout(()=>{try{__privateSet(this,_r,null),__privateMethod(this,_Pt_instances,m_fn).call(this)&&__privateMethod(this,_Pt_instances,b_fn).call(this,"settled")}catch(r){__privateMethod(this,_Pt_instances,s_fn).call(this,"settle-timer",r)}},t))};b_fn=function(t){if(__privateSet(this,_t2,true),__privateMethod(this,_Pt_instances,f_fn).call(this),__privateMethod(this,_Pt_instances,g_fn).call(this),!__privateGet(this,_c)||__privateGet(this,_i)===void 0){__privateGet(this,_e4).call(this,{reason:t,renderedContent:false,fetchCount:0,settledAt:performance.now()});return}const r=__privateGet(this,_a);__privateGet(this,_e4).call(this,{reason:t,renderedContent:true,fetchAttributable:r,fetchCount:r?__privateGet(this,_d):0,settledAt:__privateGet(this,_i)})};f_fn=function(){__privateGet(this,_r)!==null&&(clearTimeout(__privateGet(this,_r)),__privateSet(this,_r,null))};g_fn=function(){__privateGet(this,_n)!==null&&(clearTimeout(__privateGet(this,_n)),__privateSet(this,_n,null))};function Tt(e,...t){if(e!==Te)return true;const[r]=t;return r.length>0}function $t(e,t){return(r,...n)=>{const o=e(r,...n);return Tt(r,...n)&&t.recordMutation(),o}}const Ct=q(),_=ct();Mt(_),Et(_);const $=pt(_);let ye=new Set;function It({allowNetworkAccess:e,allowApiAccess:t,storefrontUrl:r,myshopifyDomain:n}){ye=new Set,$.extensionPerformanceMarkFinished(tt,Ct);const o=__spreadProps(__spreadValues({},it),{fetch:Rt({allowNetworkAccess:e,allowApiAccess:t,storefrontUrl:r,myshopifyDomain:n,metrics:$})}),a=e||t?__spreadProps(__spreadValues({},o),{WebSocket:e?false:he,Request:false,Response:false,Headers:false}):o;et(self,a)}function Ft(e){return __async(this,null,function*(){try{$.extensionPerformanceMarkStarted("partner-js-eval"),eval==null?void 0:(0,eval)("".concat(e.scriptBody,"\n//# sourceURL=").concat(e.scriptUrl)),$.extensionPerformanceMarkFinished("partner-js-eval")}catch(t){throw(t==null?void 0:t.name)==="NetworkError"?new _e(String(t),{cause:t}):(t==null?void 0:t.name)==="ExtensionUsageError"||(t==null?void 0:t.name)==="ExtensionSandboxError"?t:new A(String(t),{cause:t})}})}function Ot(e,t,r,n,o,a,i,u){return __async(this,null,function*(){const E=new Pt({emit:l=>{$.extensionPerformanceMarkFinished("extension-tts",__spreadValues({instanceId:i},mt(l)))},isSoleCapture:()=>O.isSoleCapture(i)});try{O.registerCapture(i,E);const l=$t(t,E);P(t);const s={channel:l,components:r};P(s),P(n);const c=ge(e),m=fe(n,c,o,a,u);return Je(m,E),$.extensionPerformanceMarkStarted("extension-tts",{instanceId:i}),{output:yield Ee(c,i,s,we(m)),teardown:()=>__async(null,null,function*(){O.discardCapture(i,E)})}}catch(l){throw O.discardCapture(i,E),l}}
1)}function _t(e,t,r,n,o,a){return __async(this,null,function*(){P(t);const i=ge(e),u=fe(t,i,r,n,a);return{output:yield Ee(e,o,we(u)),teardown:()=>__async(null,null,function*(){})}})}function we(e){return Xe(e,t=>{_.call.reportApiRead(t)},{reportedApiPropertyNames:ye})}function Ee(e,t,...r){return __async(this,null,function*(){var _a2;$.extensionPerformanceMarkStarted("partner-js-exec",{instanceId:t});try{let n=(_a2=B.get(e))==null?void 0:_a2(...r);return typeof n=="object"&&n!=null&&"then"in n&&(n=yield n),n}catch(n){throw(n==null?void 0:n.name)==="ExtensionUsageError"||(n==null?void 0:n.name)==="ExtensionSandboxError"?n:new A(String(n),{cause:n})}finally{$.extensionPerformanceMarkFinished("partner-js-exec",{instanceId:t})}})}_.expose({sandbox:It,load:Ft,render:Ot,run:_t})})();
2
3//SANDBOX_EOF

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.