PageSourceSearch

https://sveasolar.com/_next/static/chunks/02gkdr2.640l1.js

js sveasolar.com collected 2026-09-29 09:25:54 UTC 44,649 bytes, 4 lines download raw bytes

1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="12c5f55e-e73e-63a6-e140-977e7e2a490a")}catch(e){}}();
2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,278702,t=>{"use strict";var e={setTimeout:(t,e)=>setTimeout(t,e),clearTimeout:t=>clearTimeout(t),setInterval:(t,e)=>setInterval(t,e),clearInterval:t=>clearInterval(t)},s=new class{#t=e;#e=!1;setTimeoutProvider(t){this.#t=t}setTimeout(t,e){return this.#t.setTimeout(t,e)}clearTimeout(t){this.#t.clearTimeout(t)}setInterval(t,e){return this.#t.setInterval(t,e)}clearInterval(t){this.#t.clearInterval(t)}};t.s(["systemSetTimeoutZero",0,function(t){setTimeout(t,0)},"timeoutManager",0,s])},13154,t=>{"use strict";var e=t.i(278702),s="u"<typeof window||"Deno"in globalThis;function r(t,e){return(e?.queryKeyHashFn||i)(t)}function i(t){return JSON.stringify(t,(t,e)=>u(e)?Object.keys(e).sort().reduce((t,s)=>(t[s]=e[s],t),{}):e)}function n(t,e){return t===e||typeof t==typeof e&&!!t&&!!e&&"object"==typeof t&&"object"==typeof e&&Object.keys(e).every(s=>n(t[s],e[s]))}var o=Object.prototype.hasOwnProperty;function a(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function u(t){if(!h(t))return!1;let e=t.constructor;if(void 0===e)return!0;let s=e.prototype;return!!h(s)&&!!s.hasOwnProperty("isPrototypeOf")&&Object.getPrototypeOf(t)===Object.prototype}function h(t){return"[object Object]"===Object.prototype.toString.call(t)}var l=Symbol();t.s(["addConsumeAwareSignal",0,function(t,e,s){let r,i=!1;return Object.defineProperty(t,"signal",{enumerable:!0,get:()=>(r??=e(),i||(i=!0,r.aborted?s():r.addEventListener("abort",s,{once:!0})),r)}),t},"addToEnd",0,function(t,e,s=0){let r=[...t,e];return s&&r.length>s?r.slice(1):r},"addToStart",0,function(t,e,s=0){let r=[e,...t];return s&&r.length>s?r.slice(0,-1):r},"ensureQueryFn",0,function(t,e){return!t.queryFn&&e?.initialPromise?()=>e.initialPromise:t.queryFn&&t.queryFn!==l?t.queryFn:()=>Promise.reject(Error(`Missing queryFn: '${t.queryHash}'`))},"functionalUpdate",0,function(t,e){return"function"==typeof t?t(e):t},"hashKey",0,i,"hashQueryKeyByOptions",0,r,"isServer",0,s,"isValidTimeout",0,function(t){return"number"==typeof t&&t>=0&&t!==1/0},"matchMutation",0,function(t,e){let{exact:s,status:r,predicate:o,mutationKey:a}=t;if(a){if(!e.options.mutationKey)return!1;if(s){if(i(e.options.mutationKey)!==i(a))return!1}else if(!n(e.options.mutationKey,a))return!1}return(!r||e.state.status===r)&&(!o||!!o(e))},"matchQuery",0,function(t,e){let{type:s="all",exact:i,fetchStatus:o,predicate:a,queryKey:u,stale:h}=t;if(u){if(i){if(e.queryHash!==r(u,e.options))return!1}else if(!n(e.queryKey,u))return!1}if("all"!==s){let t=e.isActive();if("active"===s&&!t||"inactive"===s&&t)return!1}return("boolean"!=typeof h||e.isStale()===h)&&(!o||o===e.state.fetchStatus)&&(!a||!!a(e))},"noop",0,function(){},"partialMatchKey",0,n,"replaceData",0,function(t,e,s){return"function"==typeof s.structuralSharing?s.structuralSharing(t,e):!1!==s.structuralSharing?function t(e,s,r=0){if(e===s)return e;if(r>500)return s;let i=a(e)&&a(s);if(!i&&!(u(e)&&u(s)))return s;let n=(i?e:Object.keys(e)).length,h=i?s:Object.keys(s),l=h.length,c=i?Array(l):{},d=0;for(let a=0;a<l;a++){let u=i?a:h[a],l=e[u],p=s[u];if(l===p){c[u]=l,(i?a<n:o.call(e,u))&&d++;continue}if(null===l||null===p||"object"!=typeof l||"object"!=typeof p){c[u]=p;continue}let f=t(l,p,r+1);c[u]=f,f===l&&d++}return n===l&&d===n?e:c}(t,e):e},"resolveQueryBoolean",0,function(t,e){return"function"==typeof t?t(e):t},"resolveStaleTime",0,function(t,e){return"function"==typeof t?t(e):t},"shallowEqualObjects",0,function(t,e){if(!e||Object.keys(t).length!==Object.keys(e).length)return!1;for(let s in t)if(t[s]!==e[s])return!1;return!0},"shouldThrowError",0,function(t,e){return"function"==typeof t?t(...e):!!t},"skipToken",0,l,"sleep",0,function(t){return new Promise(s=>{e.timeoutManager.setTimeout(s,t)})},"timeUntilStale",0,function(t,e){return Math.max(t+(e||0)-Date.now(),0)}])},35890,t=>{"use strict";let e,s,r,i,n,o;var a=t.i(278702).systemSetTimeoutZero,u=(e=[],s=0,r=t=>{t()},i=t=>{t()},n=a,{batch:t=>{let o;s++;try{o=t()}finally{let t;--s||(t=e,e=[],t.length&&n(()=>{i(()=>{t.forEach(t=>{r(t)})})}))}return o},batchCalls:t=>(...e)=>{o(()=>{t(...e)})},schedule:o=t=>{s?e.push(t):n(()=>{r(t)})},setNotifyFunction:t=>{r=t},setBatchNotifyFunction:t=>{i=t},setScheduler:t=>{n=t}});t.s(["notifyManager",0,u])},433977,773487,101253,577668,t=>{"use strict";var e=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}};t.s(["Subscribable",0,e],773487);var s=new class extends e{#s;#r;#i;constructor(){super(),this.#i=t=>{if("u">typeof window&&window.addEventListener){let e=()=>t();return window.addEventListener("visibilitychange",e,!1),()=>{window.removeEventListener("visibilitychange",e)}}}}onSubscribe(){this.#r||this.setEventListener(this.#i)}onUnsubscribe(){this.hasListeners()||(this.#r?.(),this.#r=void 0)}setEventListener(t){this.#i=t,this.#r?.(),this.#r=t(t=>{"boolean"==typeof t?this.setFocused(t):this.onFocus()})}setFocused(t){this.#s!==t&&(this.#s=t,this.onFocus())}onFocus(){let t=this.isFocused();
2this.listeners.forEach(e=>{e(t)})}isFocused(){return"boolean"==typeof this.#s?this.#s:globalThis.document?.visibilityState!=="hidden"}};t.s(["focusManager",0,s],433977);var r=new class extends e{#n=!0;#r;#i;constructor(){super(),this.#i=t=>{if("u">typeof window&&window.addEventListener){let e=()=>t(!0),s=()=>t(!1);return window.addEventListener("online",e,!1),window.addEventListener("offline",s,!1),()=>{window.removeEventListener("online",e),window.removeEventListener("offline",s)}}}}onSubscribe(){this.#r||this.setEventListener(this.#i)}onUnsubscribe(){this.hasListeners()||(this.#r?.(),this.#r=void 0)}setEventListener(t){this.#i=t,this.#r?.(),this.#r=t(this.setOnline.bind(this))}setOnline(t){this.#n!==t&&(this.#n=t,this.listeners.forEach(e=>{e(t)}))}isOnline(){return this.#n}};t.s(["onlineManager",0,r],101253),t.i(13154),t.s(["pendingThenable",0,function(){let t,e,s=new Promise((s,r)=>{t=s,e=r});function r(t){Object.assign(s,t),delete s.resolve,delete s.reject}return s.status="pending",s.catch(()=>{}),s.resolve=e=>{r({status:"fulfilled",value:e}),t(e)},s.reject=t=>{r({status:"rejected",reason:t}),e(t)},s}],577668)},948897,t=>{"use strict";let e;var s=t.i(13154),r=(e=()=>s.isServer,{isServer:()=>e(),setIsServer(t){e=t}});t.s(["environmentManager",0,r])},973397,t=>{"use strict";var e=t.i(433977),s=t.i(101253),r=t.i(577668),i=t.i(948897),n=t.i(13154);function o(t){return Math.min(1e3*2**t,3e4)}function a(t){return(t??"online")!=="online"||s.onlineManager.isOnline()}var u=class extends Error{constructor(t){super("CancelledError"),this.revert=t?.revert,this.silent=t?.silent}};t.s(["CancelledError",0,u,"canFetch",0,a,"createRetryer",0,function(t){let h,l=!1,c=0,d=(0,r.pendingThenable)(),p=()=>e.focusManager.isFocused()&&("always"===t.networkMode||s.onlineManager.isOnline())&&t.canRun(),f=()=>a(t.networkMode)&&t.canRun(),y=t=>{"pending"===d.status&&(h?.(),d.resolve(t))},m=t=>{"pending"===d.status&&(h?.(),d.reject(t))},g=()=>new Promise(e=>{h=t=>{("pending"!==d.status||p())&&e(t)},t.onPause?.()}).then(()=>{h=void 0,"pending"===d.status&&t.onContinue?.()}),b=()=>{let e;if("pending"!==d.status)return;let s=0===c?t.initialPromise:void 0;try{e=s??t.fn()}catch(t){e=Promise.reject(t)}Promise.resolve(e).then(y).catch(e=>{if("pending"!==d.status)return;let s=t.retry??3*!i.environmentManager.isServer(),r=t.retryDelay??o,a="function"==typeof r?r(c,e):r,u=!0===s||"number"==typeof s&&c<s||"function"==typeof s&&s(c,e);l||!u?m(e):(c++,t.onFail?.(c,e),(0,n.sleep)(a).then(()=>p()?void 0:g()).then(()=>{l?m(e):b()}))})};return{promise:d,status:()=>d.status,cancel:e=>{if("pending"===d.status){let s=new u(e);m(s),t.onCancel?.(s)}},continue:()=>(h?.(),d),cancelRetry:()=>{l=!0},continueRetry:()=>{l=!1},canStart:f,start:()=>(f()?b():g().then(b),d)}}])},387701,t=>{"use strict";var e=t.i(278702),s=t.i(948897),r=t.i(13154),i=class{#o;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),(0,r.isValidTimeout)(this.gcTime)&&(this.#o=e.timeoutManager.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(s.environmentManager.isServer()?1/0:3e5))}clearGcTimeout(){void 0!==this.#o&&(e.timeoutManager.clearTimeout(this.#o),this.#o=void 0)}};t.s(["Removable",0,i])},378620,t=>{"use strict";var e=t.i(13154);t.i(399831);var s=t.i(35890),r=t.i(973397),i=t.i(387701);function n(t,{pages:e,pageParams:s}){let r=e.length-1;return e.length>0?t.getNextPageParam(e[r],e,s[r],s):void 0}var o=class extends i.Removable{#a;#u;#h;#l;#c;#d;#p;#f;constructor(t){super(),this.#f=!1,this.#p=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.#c=t.client,this.#l=this.#c.getQueryCache(),this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.#u=u(this.options),this.state=t.state??this.#u,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#a}get promise(){return this.#d?.promise}setOptions(t){if(this.options={...this.#p,...t},t?._type&&(this.#a=t._type),this.updateGcTime(this.options.gcTime),this.state&&void 0===this.state.data){let t=u(this.options);void 0!==t.data&&(this.setState(a(t.data,t.dataUpdatedAt)),this.#u=t)}}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.#l.remove(this)}setData(t,s){let r=(0,e.replaceData)(this.state.data,t,this.options);return this.#y({data:r,type:"success",dataUpdatedAt:s?.updatedAt,manual:s?.manual}),r}setState(t){this.#y({type:"setState",state:t})}cancel(t){let s=this.#d?.promise;return this.#d?.cancel(t),s?s.then(e.noop).catch(e.noop):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#u}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(t=>!1!==(0,e.resolveQueryBoolean)(t.options.enabled,this))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===e.skipToken||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdate
2Count>0}isStatic(){return this.getObserversCount()>0&&this.observers.some(t=>"static"===(0,e.resolveStaleTime)(t.options.staleTime,this))}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):void 0===this.state.data||this.state.isInvalidated}isStaleByTime(t=0){return void 0===this.state.data||"static"!==t&&(!!this.state.isInvalidated||!(0,e.timeUntilStale)(this.state.dataUpdatedAt,t))}onFocus(){let t=this.observers.find(t=>t.shouldFetchOnWindowFocus());t?.refetch({cancelRefetch:!1}),this.#d?.continue()}onOnline(){let t=this.observers.find(t=>t.shouldFetchOnReconnect());t?.refetch({cancelRefetch:!1}),this.#d?.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.#l.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(e=>e!==t),this.observers.length||(this.#d&&(this.#f||this.#m()?this.#d.cancel({revert:!0}):this.#d.cancelRetry()),this.scheduleGc()),this.#l.notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}#m(){return"paused"===this.state.fetchStatus&&"pending"===this.state.status}invalidate(){this.state.isInvalidated||this.#y({type:"invalidate"})}async fetch(t,s){var i;let o;if("idle"!==this.state.fetchStatus&&this.#d?.status()!=="rejected"){if(void 0!==this.state.data&&s?.cancelRefetch)this.cancel({silent:!0});else if(this.#d)return this.#d.continueRetry(),this.#d.promise}if(t&&this.setOptions(t),!this.options.queryFn){let t=this.observers.find(t=>t.options.queryFn);t&&this.setOptions(t.options)}let a=new AbortController,u=t=>{Object.defineProperty(t,"signal",{enumerable:!0,get:()=>(this.#f=!0,a.signal)})},h=()=>{let t,r=(0,e.ensureQueryFn)(this.options,s),i=(u(t={client:this.#c,queryKey:this.queryKey,meta:this.meta}),t);return(this.#f=!1,this.options.persister)?this.options.persister(r,i,this):r(i)},l=(u(o={fetchOptions:s,options:this.options,queryKey:this.queryKey,client:this.#c,state:this.state,fetchFn:h}),o),c="infinite"===this.#a?(i=this.options.pages,{onFetch:(t,s)=>{let r=t.options,o=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],u=t.state.data?.pageParams||[],h={pages:[],pageParams:[]},l=0,c=async()=>{let s=!1,c=(0,e.ensureQueryFn)(t.options,t.fetchOptions),d=async(r,i,n)=>{let o;if(s)return Promise.reject(t.signal.reason);if(null==i&&r.pages.length)return Promise.resolve(r);let a=(o={client:t.client,queryKey:t.queryKey,pageParam:i,direction:n?"backward":"forward",meta:t.options.meta},(0,e.addConsumeAwareSignal)(o,()=>t.signal,()=>s=!0),o),u=await c(a),{maxPages:h}=t.options,l=n?e.addToStart:e.addToEnd;return{pages:l(r.pages,u,h),pageParams:l(r.pageParams,i,h)}};if(o&&a.length){let t="backward"===o,e={pages:a,pageParams:u},s=(t?function(t,{pages:e,pageParams:s}){return e.length>0?t.getPreviousPageParam?.(e[0],e,s[0],s):void 0}:n)(r,e);h=await d(e,s,t)}else{let t=i??a.length;do{let t=0===l?u[0]??r.initialPageParam:n(r,h);if(l>0&&null==t)break;h=await d(h,t),l++}while(l<t)}return h};t.options.persister?t.fetchFn=()=>t.options.persister?.(c,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},s):t.fetchFn=c}}):this.options.behavior;c?.onFetch(l,this),this.#h=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==l.fetchOptions?.meta)&&this.#y({type:"fetch",meta:l.fetchOptions?.meta}),this.#d=(0,r.createRetryer)({initialPromise:s?.initialPromise,fn:l.fetchFn,onCancel:t=>{t instanceof r.CancelledError&&t.revert&&this.setState({...this.#h,fetchStatus:"idle"}),a.abort()},onFail:(t,e)=>{this.#y({type:"failed",failureCount:t,error:e})},onPause:()=>{this.#y({type:"pause"})},onContinue:()=>{this.#y({type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0});try{let t=await this.#d.start();if(void 0===t)throw Error(`${this.queryHash} data is undefined`);return this.setData(t),this.#l.config.onSuccess?.(t,this),this.#l.config.onSettled?.(t,this.state.error,this),t}catch(t){if(t instanceof r.CancelledError){if(t.silent)return this.#d.promise;else if(t.revert){if(void 0===this.state.data)throw t;return this.state.data}}throw this.#y({type:"error",error:t}),this.#l.config.onError?.(t,this),this.#l.config.onSettled?.(this.state.data,t,this),t}finally{this.scheduleGc()}}#y(t){let e=e=>{switch(t.type){case"failed":return{...e,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...e,fetchStatus:"paused"};case"continue":return{...e,fetchStatus:"fetching"};case"fetch":var s,i;return{...e,...(s=e.data,i=this.options,{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:(0,r.canFetch)(i.networkMode)?"fetching":"paused",...void 0===s&&{error:null,status:"pending"}}),fetchMeta:t.meta??null};case"success":let n={...e,...a(t.data,t.dataUpdatedAt),dataUpdateCount:e.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#h=t.manual?n:void 0,n;case"error":let o=t.error;
2return{...e,error:o,errorUpdateCount:e.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:e.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...e,isInvalidated:!0};case"setState":return{...e,...t.state}}};this.state=e(this.state),s.notifyManager.batch(()=>{this.observers.forEach(t=>{t.onQueryUpdate()}),this.#l.notify({query:this,type:"updated",action:t})})}};function a(t,e){return{data:t,dataUpdatedAt:e??Date.now(),error:null,isInvalidated:!1,status:"success"}}function u(t){let e="function"==typeof t.initialData?t.initialData():t.initialData,s=void 0!==e,r=s?"function"==typeof t.initialDataUpdatedAt?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:s?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:s?"success":"pending",fetchStatus:"idle"}}var h=t.i(773487),l=class extends h.Subscribable{constructor(t={}){super(),this.config=t,this.#g=new Map}#g;build(t,s,r){let i=s.queryKey,n=s.queryHash??(0,e.hashQueryKeyByOptions)(i,s),a=this.get(n);return a||(a=new o({client:t,queryKey:i,queryHash:n,options:t.defaultQueryOptions(s),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(a)),a}add(t){this.#g.has(t.queryHash)||(this.#g.set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){let e=this.#g.get(t.queryHash);
2e&&(t.destroy(),e===t&&this.#g.delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){s.notifyManager.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return this.#g.get(t)}getAll(){return[...this.#g.values()]}find(t){let s={exact:!0,...t};return this.getAll().find(t=>(0,e.matchQuery)(s,t))}findAll(t={}){let s=this.getAll();return Object.keys(t).length>0?s.filter(s=>(0,e.matchQuery)(t,s)):s}notify(t){s.notifyManager.batch(()=>{this.listeners.forEach(e=>{e(t)})})}onFocus(){s.notifyManager.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){s.notifyManager.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}};t.s(["QueryCache",0,l],378620)},129996,t=>{"use strict";var e=t.i(35890),s=t.i(387701),r=t.i(973397),i=class extends s.Removable{#c;#b;#v;#d;constructor(t){super(),this.#c=t.client,this.mutationId=t.mutationId,this.#v=t.mutationCache,this.#b=[],this.state=t.state||n(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){this.#b.includes(t)||(this.#b.push(t),this.clearGcTimeout(),this.#v.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.#b=this.#b.filter(e=>e!==t),this.scheduleGc(),this.#v.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.#b.length||("pending"===this.state.status?this.scheduleGc():this.#v.remove(this))}continue(){return this.#d?.continue()??this.execute(this.state.variables)}async execute(t){let e=()=>{this.#y({type:"continue"})},s={client:this.#c,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#d=(0,r.createRetryer)({fn:()=>this.options.mutationFn?this.options.mutationFn(t,s):Promise.reject(Error("No mutationFn found")),onFail:(t,e)=>{this.#y({type:"failed",failureCount:t,error:e})},onPause:()=>{this.#y({type:"pause"})},onContinue:e,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#v.canRun(this)});let i="pending"===this.state.status,n=!this.#d.canStart();try{if(i)e();else{this.#y({type:"pending",variables:t,isPaused:n}),this.#v.config.onMutate&&await this.#v.config.onMutate(t,this,s);let e=await this.options.onMutate?.(t,s);e!==this.state.context&&this.#y({type:"pending",context:e,variables:t,isPaused:n})}let r=await this.#d.start();return await this.#v.config.onSuccess?.(r,t,this.state.context,this,s),await this.options.onSuccess?.(r,t,this.state.context,s),await this.#v.config.onSettled?.(r,null,this.state.variables,this.state.context,this,s),await this.options.onSettled?.(r,null,t,this.state.context,s),this.#y({type:"success",data:r}),r}catch(e){try{await this.#v.config.onError?.(e,t,this.state.context,this,s)}catch(t){Promise.reject(t)}try{await this.options.onError?.(e,t,this.state.context,s)}catch(t){Promise.reject(t)}try{await this.#v.config.onSettled?.(void 0,e,this.state.variables,this.state.context,this,s)}catch(t){Promise.reject(t)}try{await this.options.onSettled?.(void 0,e,t,this.state.context,s)}catch(t){Promise.reject(t)}throw this.#y({type:"error",error:e}),e}finally{this.#v.runNext(this)}}#y(t){this.state=(e=>{switch(t.type){case"failed":return{...e,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...e,isPaused:!0};case"continue":return{...e,isPaused:!1};case"pending":return{...e,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...e,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...e,data:void 0,error:t.error,failureCount:e.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}})(this.state),e.notifyManager.batch(()=>{this.#b.forEach(e=>{e.onMutationUpdate(t)}),this.#v.notify({mutation:this,type:"updated",action:t})})}};function n(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}t.s(["Mutation",0,i,"getDefaultState",0,n])},93439,t=>{"use strict";var e=t.i(13154),s=t.i(378620),r=t.i(35890),i=t.i(129996),n=t.i(773487),o=class extends n.Subscribable{constructor(t={}){super(),this.config=t,this.#w=new Set,this.#S=new Map,this.#C=0}#w;#S;#C;build(t,e,s){let r=new i.Mutation({client:t,mutationCache:this,mutationId:++this.#C,options:t.defaultMutationOptions(e),state:s});return this.add(r),r}add(t){this.#w.add(t);let e=a(t);if("string"==typeof e){let s=this.#S.get(e);s?s.push(t):this.#S.set(e,[t])}this.notify({type:"added",mutation:t})}remove(t){if(this.#w.delete(t)){let e=a(t);if("string"==typeof e){let s=this.#S.get(e);if(s)if(s.length>1){let e=s.indexOf(t);-1!==e&&s.splice(e,1)}else s[0]===t&&this.#S.delete(e)}}this.notify({type:"removed",mutation:t})}canRun(t){let e=a(t);if("string"!=typeof e)return!0;{let s=this.#S.get(e),r=s?.find(t=>"pending"===t.state.status);return!r||r===t}}runNext(t){let e=a(t);if("string"!=typeof e)return Promise.resolve();{let s=this.#S.get(e)?.find(e=>
2e!==t&&e.state.isPaused);return s?.continue()??Promise.resolve()}}clear(){r.notifyManager.batch(()=>{this.#w.forEach(t=>{this.notify({type:"removed",mutation:t})}),this.#w.clear(),this.#S.clear()})}getAll(){return Array.from(this.#w)}find(t){let s={exact:!0,...t};return this.getAll().find(t=>(0,e.matchMutation)(s,t))}findAll(t={}){return this.getAll().filter(s=>(0,e.matchMutation)(t,s))}notify(t){r.notifyManager.batch(()=>{this.listeners.forEach(e=>{e(t)})})}resumePausedMutations(){let t=this.getAll().filter(t=>t.state.isPaused);return r.notifyManager.batch(()=>Promise.all(t.map(t=>t.continue().catch(e.noop))))}};function a(t){return t.options.scope?.id}var u=t.i(433977),h=t.i(101253),l=class{#R;#v;#p;#O;#q;#T;#P;#E;constructor(t={}){this.#R=t.queryCache||new s.QueryCache,this.#v=t.mutationCache||new o,this.#p=t.defaultOptions||{},this.#O=new Map,this.#q=new Map,this.#T=0}mount(){this.#T++,1===this.#T&&(this.#P=u.focusManager.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#R.onFocus())}),this.#E=h.onlineManager.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#R.onOnline())}))}unmount(){this.#T--,0===this.#T&&(this.#P?.(),this.#P=void 0,this.#E?.(),this.#E=void 0)}isFetching(t){return this.#R.findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return this.#v.findAll({...t,status:"pending"}).length}getQueryData(t){let e=this.defaultQueryOptions({queryKey:t});return this.#R.get(e.queryHash)?.state.data}ensureQueryData(t){let s=this.defaultQueryOptions(t),r=this.#R.build(this,s),i=r.state.data;return void 0===i?this.fetchQuery(t):(t.revalidateIfStale&&r.isStaleByTime((0,e.resolveStaleTime)(s.staleTime,r))&&this.prefetchQuery(s),Promise.resolve(i))}getQueriesData(t){return this.#R.findAll(t).map(({queryKey:t,state:e})=>[t,e.data])}setQueryData(t,s,r){let i=this.defaultQueryOptions({queryKey:t}),n=this.#R.get(i.queryHash),o=n?.state.data,a=(0,e.functionalUpdate)(s,o);if(void 0!==a)return this.#R.build(this,i).setData(a,{...r,manual:!0})}setQueriesData(t,e,s){return r.notifyManager.batch(()=>this.#R.findAll(t).map(({queryKey:t})=>[t,this.setQueryData(t,e,s)]))}getQueryState(t){let e=this.defaultQueryOptions({queryKey:t});return this.#R.get(e.queryHash)?.state}removeQueries(t){let e=this.#R;r.notifyManager.batch(()=>{e.findAll(t).forEach(t=>{e.remove(t)})})}resetQueries(t,e){let s=this.#R;return r.notifyManager.batch(()=>(s.findAll(t).forEach(t=>{t.reset()}),this.refetchQueries({type:"active",...t},e)))}cancelQueries(t,s={}){let i={revert:!0,...s};return Promise.all(r.notifyManager.batch(()=>this.#R.findAll(t).map(t=>t.cancel(i)))).then(e.noop).catch(e.noop)}invalidateQueries(t,e={}){return r.notifyManager.batch(()=>(this.#R.findAll(t).forEach(t=>{t.invalidate()}),t?.refetchType==="none")?Promise.resolve():this.refetchQueries({...t,type:t?.refetchType??t?.type??"active"},e))}refetchQueries(t,s={}){let i={...s,cancelRefetch:s.cancelRefetch??!0};return Promise.all(r.notifyManager.batch(()=>this.#R.findAll(t).filter(t=>!t.isDisabled()&&!t.isStatic()).map(t=>{let s=t.fetch(void 0,i);return i.throwOnError||(s=s.catch(e.noop)),"paused"===t.state.fetchStatus?Promise.resolve():s}))).then(e.noop)}fetchQuery(t){let s=this.defaultQueryOptions(t);void 0===s.retry&&(s.retry=!1);let r=this.#R.build(this,s);return r.isStaleByTime((0,e.resolveStaleTime)(s.staleTime,r))?r.fetch(s):Promise.resolve(r.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(e.noop).catch(e.noop)}fetchInfiniteQuery(t){return t._type="infinite",this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(e.noop).catch(e.noop)}ensureInfiniteQueryData(t){return t._type="infinite",this.ensureQueryData(t)}resumePausedMutations(){return h.onlineManager.isOnline()?this.#v.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#R}getMutationCache(){return this.#v}getDefaultOptions(){return this.#p}setDefaultOptions(t){this.#p=t}setQueryDefaults(t,s){this.#O.set((0,e.hashKey)(t),{queryKey:t,defaultOptions:s})}getQueryDefaults(t){let s=[...this.#O.values()],r={};return s.forEach(s=>{(0,e.partialMatchKey)(t,s.queryKey)&&Object.assign(r,s.defaultOptions)}),r}setMutationDefaults(t,s){this.#q.set((0,e.hashKey)(t),{mutationKey:t,defaultOptions:s})}getMutationDefaults(t){let s=[...this.#q.values()],r={};
2return s.forEach(s=>{(0,e.partialMatchKey)(t,s.mutationKey)&&Object.assign(r,s.defaultOptions)}),r}defaultQueryOptions(t){if(t._defaulted)return t;let s={...this.#p.queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return s.queryHash||(s.queryHash=(0,e.hashQueryKeyByOptions)(s.queryKey,s)),void 0===s.refetchOnReconnect&&(s.refetchOnReconnect="always"!==s.networkMode),void 0===s.throwOnError&&(s.throwOnError=!!s.suspense),!s.networkMode&&s.persister&&(s.networkMode="offlineFirst"),s.queryFn===e.skipToken&&(s.enabled=!1),s}defaultMutationOptions(t){return t?._defaulted?t:{...this.#p.mutations,...t?.mutationKey&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){this.#R.clear(),this.#v.clear()}};t.s(["QueryClient",0,l],93439)},647857,537793,t=>{"use strict";var e,s,r,i,n,o,a,u,h,l,c,d;Object.hasOwn||Object.defineProperty(Object,"hasOwn",{value:function(t,e){if(null==t)throw TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(Object(t),e)},configurable:!0,enumerable:!1,writable:!0});
2class p extends Error{response;request;options;constructor(t,e,s){const r=t.status||0===t.status?t.status:"",i=t.statusText??"",n=`${r} ${i}`.trim(),o=n?`status code ${n}`:"an unknown error";super(`Request failed with ${o}: ${e.method} ${e.url}`),this.name="HTTPError",this.response=t,this.request=e,this.options=s}}class f extends Error{name="NonError";value;constructor(t){let e="Non-error value was thrown";try{"string"==typeof t?e=t:t&&"object"==typeof t&&"message"in t&&"string"==typeof t.message&&(e=t.message)}catch{}super(e),this.value=t}}class y extends Error{name="ForceRetryError";customDelay;code;customRequest;constructor(t){const e=t?.cause?t.cause instanceof Error?t.cause:new f(t.cause):void 0;super(t?.code?`Forced retry: ${t.code}`:"Forced retry",e?{cause:e}:void 0),this.customDelay=t?.delay,this.code=t?.code,this.customRequest=t?.request}}let m=(()=>{let t=!1,e=!1,s="function"==typeof globalThis.Request;if("function"==typeof globalThis.ReadableStream&&s)try{e=new globalThis.Request("https://empty.invalid",{body:new globalThis.ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type")}catch(t){if(t instanceof Error&&"unsupported BodyInit type"===t.message)return!1;throw t}return t&&!e})(),g="function"==typeof globalThis.AbortController,b="function"==typeof globalThis.AbortSignal&&"function"==typeof globalThis.AbortSignal.any,v="function"==typeof globalThis.ReadableStream,w="function"==typeof globalThis.FormData,S=["get","post","put","patch","head","delete"],C={json:"application/json",text:"text/*",formData:"multipart/form-data",arrayBuffer:"*/*",blob:"*/*",bytes:"*/*"},R=new TextEncoder().encode("------WebKitFormBoundaryaxpyiPgbbPti10Rw").length,O=Symbol("stop");class q{options;constructor(t){this.options=t}}let T=t=>new q(t),P={json:!0,parseJson:!0,stringifyJson:!0,searchParams:!0,prefixUrl:!0,retry:!0,timeout:!0,hooks:!0,throwHttpErrors:!0,onDownloadProgress:!0,onUploadProgress:!0,fetch:!0,context:!0},E={next:!0},j={method:!0,headers:!0,body:!0,mode:!0,credentials:!0,cache:!0,redirect:!0,referrer:!0,referrerPolicy:!0,integrity:!0,keepalive:!0,signal:!0,window:!0,duplex:!0},A=(t,e,s)=>{let r,i=0;return t.pipeThrough(new TransformStream({transform(t,n){if(n.enqueue(t),r){i+=r.byteLength;let t=0===e?0:i/e;t>=1&&(t=1-Number.EPSILON),s?.({percent:t,totalBytes:Math.max(e,i),transferredBytes:i},r)}r=t},flush(){r&&(i+=r.byteLength,s?.({percent:1,totalBytes:Math.max(e,i),transferredBytes:i},r))}}))},M=t=>null!==t&&"object"==typeof t,x=(...t)=>{for(let e of t)if((!M(e)||Array.isArray(e))&&void 0!==e)throw TypeError("The `options` argument must be an object");return L({},...t)},F=(t={},e={})=>{let s=new globalThis.Headers(t),r=e instanceof globalThis.Headers;for(let[t,i]of new globalThis.Headers(e).entries())r&&"undefined"===i||void 0===i?s.delete(t):s.set(t,i);return s};function D(t,e,s){return Object.hasOwn(e,s)&&void 0===e[s]?[]:L(t[s]??[],e[s]??[])}let U=(t={},e={})=>({beforeRequest:D(t,e,"beforeRequest"),beforeRetry:D(t,e,"beforeRetry"),afterResponse:D(t,e,"afterResponse"),beforeError:D(t,e,"beforeError")}),k=(t,e)=>{let s=new URLSearchParams;for(let r of[t,e])if(void 0!==r)if(r instanceof URLSearchParams)for(let[t,e]of r.entries())s.append(t,e);else if(Array.isArray(r))for(let t of r){if(!Array.isArray(t)||2!==t.length)throw TypeError("Array search parameters must be provided in [[key, value], ...] format");s.append(String(t[0]),String(t[1]))}else if(M(r))for(let[t,e]of Object.entries(r))void 0!==e&&s.append(t,String(e));else for(let[t,e]of new URLSearchParams(r).entries())s.append(t,e);return s},L=(...t)=>{let e,s={},r={},i={},n=[];for(let o of t)if(Array.isArray(o))Array.isArray(s)||(s=[]),s=[...s,...o];else if(M(o)){for(let[t,r]of Object.entries(o)){if("signal"===t&&r instanceof globalThis.AbortSignal){n.push(r);continue}if("context"===t){if(null!=r&&(!M(r)||Array.isArray(r)))throw TypeError("The `context` option must be an object");s={...s,context:null==r?{}:{...s.context,...r}};continue}if("searchParams"===t){e=null==r?void 0:void 0===e?r:k(e,r);continue}M(r)&&t in s&&(r=L(s[t],r)),s={...s,[t]:r}}M(o.hooks)&&(i=U(i,o.hooks),s.hooks=i),M(o.headers)&&(r=F(r,o.headers),s.headers=r)}return void 0!==e&&(s.searchParams=e),n.length>0&&(1===n.length?s.signal=n[0]:b?s.signal=AbortSignal.any(n):s.signal=n.at(-1)),s},Q={limit:2,methods:["get","put","head","delete","options","trace"],statusCodes:[408,413,429,500,502,503,504],afterStatusCodes:[413,429,503],maxRetryAfter:1/0,backoffLimit:1/0,delay:t=>.3*2**(t-1)*1e3,jitter:void 0,retryOnTimeout:!1};
2class I extends Error{request;constructor(t){super(`Request timed out: ${t.method} ${t.url}`),this.name="TimeoutError",this.request=t}}async function H(t,e,s,r){return new Promise((i,n)=>{let o=setTimeout(()=>{s&&s.abort(),n(new I(t))},r.timeout);r.fetch(t,e).then(i).catch(n).then(()=>{clearTimeout(o)})})}async function B(t,{signal:e}){return new Promise((s,r)=>{function i(){clearTimeout(n),r(e.reason)}e&&(e.throwIfAborted(),e.addEventListener("abort",i,{once:!0}));let n=setTimeout(()=>{e?.removeEventListener("abort",i),s()},t)})}class K{static create(t,e){let s=new K(t,e),r=async()=>{if("number"==typeof s.#j.timeout&&s.#j.timeout>0x7fffffff)throw RangeError("The `timeout` option cannot be greater than 2147483647");await Promise.resolve();let t=await s.#A();for(let e of s.#j.hooks.afterResponse){let r,i=s.#M(t.clone());try{r=await e(s.request,s.#x(),i,{retryCount:s.#F})}catch(e){throw s.#D(i),s.#D(t),e}if(r instanceof q)throw s.#D(i),s.#D(t),new y(r.options);let n=r instanceof globalThis.Response?r:t;i!==n&&s.#D(i),t!==n&&s.#D(t),t=n}if(s.#M(t),!t.ok&&("function"==typeof s.#j.throwHttpErrors?s.#j.throwHttpErrors(t.status):s.#j.throwHttpErrors)){let e=new p(t,s.request,s.#x());for(let t of s.#j.hooks.beforeError)e=await t(e,{retryCount:s.#F});throw e}if(s.#j.onDownloadProgress){if("function"!=typeof s.#j.onDownloadProgress)throw TypeError("The `onDownloadProgress` option must be a function");if(!v)throw Error("Streams are not supported in your environment. `ReadableStream` is missing.");let r=t.clone();s.#D(t);var e=s.#j.onDownloadProgress;if(!r.body)return r;if(204===r.status)return new Response(null,{status:r.status,statusText:r.statusText,headers:r.headers});let i=Math.max(0,Number(r.headers.get("content-length"))||0);return new Response(A(r.body,i,e),{status:r.status,statusText:r.statusText,headers:r.headers})}return t},i=s.#U(r).finally(()=>{let t=s.#k;s.#L(t?.body??void 0),s.#L(s.request.body??void 0)});for(let[t,r]of Object.entries(C))("bytes"!==t||"function"==typeof globalThis.Response?.prototype?.bytes)&&(i[t]=async()=>{s.request.headers.set("accept",s.request.headers.get("accept")||r);let n=await i;if("json"===t){if(204===n.status)return"";let t=await n.text();return""===t?"":e.parseJson?e.parseJson(t):JSON.parse(t)}return n[t]()});return i}static #Q(t){return!t||"object"!=typeof t||Array.isArray(t)||t instanceof URLSearchParams?t:Object.fromEntries(Object.entries(t).filter(([,t])=>void 0!==t))}request;#I;#F=0;#H;#j;#k;#B;#K;constructor(t,e={}){if(this.#H=t,this.#j={...e,headers:F(this.#H.headers,e.headers),hooks:U({beforeRequest:[],beforeRetry:[],beforeError:[],afterResponse:[]},e.hooks),method:(t=>S.includes(t)?t.toUpperCase():t)(e.method??this.#H.method??"GET"),prefixUrl:String(e.prefixUrl||""),retry:((t={})=>{if("number"==typeof t)return{...Q,limit:t};if(t.methods&&!Array.isArray(t.methods))throw Error("retry.methods must be an array");if(t.methods&&=t.methods.map(t=>t.toLowerCase()),t.statusCodes&&!Array.isArray(t.statusCodes))throw Error("retry.statusCodes must be an array");let e=Object.fromEntries(Object.entries(t).filter(([,t])=>void 0!==t));return{...Q,...e}})(e.retry),throwHttpErrors:e.throwHttpErrors??!0,timeout:e.timeout??1e4,fetch:e.fetch??globalThis.fetch.bind(globalThis),context:e.context??{}},"string"!=typeof this.#H&&!(this.#H instanceof URL||this.#H instanceof globalThis.Request))throw TypeError("`input` must be a string, URL, or Request");if(this.#j.prefixUrl&&"string"==typeof this.#H){if(this.#H.startsWith("/"))throw Error("`input` must not begin with a slash when using `prefixUrl`");this.#j.prefixUrl.endsWith("/")||(this.#j.prefixUrl+="/"),this.#H=this.#j.prefixUrl+this.#H}g&&b&&(this.#B=this.#j.signal??this.#H.signal,this.#I=new globalThis.AbortController,this.#j.signal=this.#B?AbortSignal.any([this.#B,this.#I.signal]):this.#I.signal),m&&(this.#j.duplex="half"),void 0!==this.#j.json&&(this.#j.body=this.#j.stringifyJson?.(this.#j.json)??JSON.stringify(this.#j.json),this.#j.headers.set("content-type",this.#j.headers.get("content-type")??"application/json"));const s=e.headers&&new globalThis.Headers(e.headers).has("content-type");if(this.#H instanceof globalThis.Request&&(w&&this.#j.body instanceof globalThis.FormData||this.#j.body instanceof URLSearchParams)&&!s&&this.#j.headers.delete("content-type"),this.request=new globalThis.Request(this.#H,this.#j),(t=>void 0!==t&&(Array.isArray(t)?t.length>0:t instanceof URLSearchParams?t.size>0:"object"==typeof t?Object.keys(t).length>0:"string"==typeof t?t.trim().length>0:!!t))(this.#j.searchParams)){const t="string"==typeof this.#j.searchParams?this.#j.searchParams.replace(/^\?/,""):new URLSearchParams(K.#Q(this.#j.searchParams)).toString(),e=this.request.url.replace(/(?:\?.*?)?(?=#|$)/,"?"+t);this.request=new globalThis.Request(e,this.#j)}if(this.#j.onUploadProgress){if("function"!=typeof this.#j.onUploadProgress)throw TypeError("The `onUploadProgress` option must be a function");if(!m)throw Error("Request streams are not supported in your environment. The `duplex` option for `Request` is not available.");this.request=this.#N(this.request,this.#j.body??void 0)}}#z(){let t=this.#j.retry.delay(this.#F),e=t;
2return!0===this.#j.retry.jitter?e=Math.random()*t:"function"==typeof this.#j.retry.jitter&&(!Number.isFinite(e=this.#j.retry.jitter(t))||e<0)&&(e=t),Math.min(this.#j.retry.backoffLimit??1/0,e)}async #$(t){if(this.#F++,this.#F>this.#j.retry.limit)throw t;let e=t instanceof Error?t:new f(t);if(e instanceof y)return e.customDelay??this.#z();if(!this.#j.retry.methods.includes(this.request.method.toLowerCase()))throw t;if(void 0!==this.#j.retry.shouldRetry){let s=await this.#j.retry.shouldRetry({error:e,retryCount:this.#F});if(!1===s)throw t;if(!0===s)return this.#z()}if((t instanceof I||t?.name===I.name)&&!this.#j.retry.retryOnTimeout)throw t;if(t instanceof p||t?.name===p.name){if(!this.#j.retry.statusCodes.includes(t.response.status))throw t;let e=t.response.headers.get("Retry-After")??t.response.headers.get("RateLimit-Reset")??t.response.headers.get("X-RateLimit-Retry-After")??t.response.headers.get("X-RateLimit-Reset")??t.response.headers.get("X-Rate-Limit-Reset");if(e&&this.#j.retry.afterStatusCodes.includes(t.response.status)){let t=1e3*Number(e);Number.isNaN(t)?t=Date.parse(e)-Date.now():t>=Date.parse("2024-01-01")&&(t-=Date.now());let s=this.#j.retry.maxRetryAfter??t;return t<s?t:s}if(413===t.response.status)throw t}return this.#z()}#M(t){return this.#j.parseJson&&(t.json=async()=>this.#j.parseJson(await t.text())),t}#L(t){t&&t.cancel().catch(()=>void 0)}#D(t){this.#L(t.body??void 0)}async #U(t){try{return await t()}catch(s){let e=Math.min(await this.#$(s),0x7fffffff);if(this.#F<1)throw s;if(await B(e,this.#B?{signal:this.#B}:{}),s instanceof y&&s.customRequest){let t=this.#j.signal?new globalThis.Request(s.customRequest,{signal:this.#j.signal}):new globalThis.Request(s.customRequest);this.#G(t)}for(let t of this.#j.hooks.beforeRetry){let e=await t({request:this.request,options:this.#x(),error:s,retryCount:this.#F});if(e instanceof globalThis.Request){this.#G(e);break}if(e instanceof globalThis.Response)return e;if(e===O)return}return this.#U(t)}}async #A(){for(let t of(this.#I?.signal.aborted&&(this.#I=new globalThis.AbortController,this.#j.signal=this.#B?AbortSignal.any([this.#B,this.#I.signal]):this.#I.signal,this.request=new globalThis.Request(this.request,{signal:this.#j.signal})),this.#j.hooks.beforeRequest)){let e=await t(this.request,this.#x(),{retryCount:this.#F});if(e instanceof Response)return e;if(e instanceof globalThis.Request){this.#G(e);break}}let t=((t,e)=>{let s={};for(let r in e)Object.hasOwn(e,r)&&(r in j||r in P||r in t&&!(r in E)||(s[r]=e[r]));return s})(this.request,this.#j);return(this.#k=this.request,this.request=this.#k.clone(),!1===this.#j.timeout)?this.#j.fetch(this.#k,t):H(this.#k,t,this.#I,this.#j)}#x(){if(!this.#K){let{hooks:t,...e}=this.#j;this.#K=Object.freeze(e)}return this.#K}#G(t){this.#K=void 0,this.request=this.#N(t)}#N(t,e){return this.#j.onUploadProgress&&t.body?((t,e,s)=>{if(!t.body)return t;let r=(t=>{if(!t)return 0;if(t instanceof FormData){let e=0;for(let[s,r]of t)e+=R,e+=new TextEncoder().encode(`Content-Disposition: form-data; name="${s}"`).length,e+="string"==typeof r?new TextEncoder().encode(r).length:r.size;return e}if(t instanceof Blob)return t.size;if(t instanceof ArrayBuffer)return t.byteLength;if("string"==typeof t)return new TextEncoder().encode(t).length;if(t instanceof URLSearchParams)return new TextEncoder().encode(t.toString()).length;if("byteLength"in t)return t.byteLength;if("object"==typeof t&&null!==t)try{let e=JSON.stringify(t);return new TextEncoder().encode(e).length}catch{}return 0})(s??t.body);return new Request(t,{duplex:"half",body:A(t.body,r,e)})})(t,this.#j.onUploadProgress,e??this.#j.body??void 0):t}}let N=t=>{let e=(e,s)=>K.create(e,x(t,s));for(let s of S)e[s]=(e,r)=>K.create(e,x(t,r,{method:s}));return e.create=t=>N(x(t)),e.extend=e=>("function"==typeof e&&(e=e(t??{})),N(x(t,e))),e.stop=O,e.retry=T,e},z=N();(a=e||(e={})).SE1="SE1",a.SE2="SE2",a.SE3="SE3",a.SE4="SE4",(u=s||(s={})).HOUR="HOUR",u.DAY="DAY",u.MONTH="MONTH",(h=r||(r={})).O="O",h.P="P",(l=i||(i={})).SveaSolarHourlyRate="SveaSolarHourlyRate",l.IkeaHourlyRate="IkeaHourlyRate",l.SveaSolarHourlyRateEpc="SveaSolarHourlyRateEpc",l.SveaSolarHourlyRateLeasing="SveaSolarHourlyRateLeasing",(c=n||(n={}))[c.StandAlone=0]="StandAlone",c[c.AddOn=1]="AddOn",(d=o||(o={}))[d.Default=0]="Default",d[d.LimaVox=1]="LimaVox",t.s(["EnergyOfferType",0,i],537793),t.s(["SiteApiClient",0,class{constructor(t,e){Object.defineProperty(this,"client",{enumerable:!0,configurable:!0,writable:!0,value:void 0});const s=e?{Authorization:`Bearer ${e}`}:void 0;this.client=z.create({prefixUrl:t,headers:s,timeout:6e4})}async getHealthLive(){return await this.client.get("health/live").text()}async getHealthReady(){return await this.client.get("health/ready").json()}async postLeadReferral(t,e){return await this.client.post("lead/referral",{json:t,headers:{"X-Form-Url":e}}).json()}async postLeadEmployeeReferral(t,e){return await this.client.post("lead/employee-referral",{json:t,headers:{"X-Form-Url":e}}).json()}async postLeadAira(t,e){return await this.client.post("lead/aira",{json:t,headers:{"X-Form-Url":e}}).json()}async postStoreOrder(t,e){return await this.client.post("store/order",{json:t,headers:{"X-Form-Url":e}}).json()}async postLeadResidential(t,e){return await this.client.post("lead/residential",{json:t,headers:{"X-Form-Url":e}}).json()}async postLeadCommercial(t,e){return await this.client.post("lead/commercial",{json:t,headers:{"X-Form-Url":e}}).json()}async postLeadSalesPartner(t,e){return await this.client.post("lead/sales-partner",{json:t,headers:{"X-Form-Url":e}}).json()}async postLeadStepper(t,e){return await this.client.post("lead/stepper",{json:t,headers:{"X-Form-Url":e}}).json()}async getEnergyGridAreaByPostalCode(t){return await this.client.get(`energy/grid-area/postal-code/${t}`).json()}async getEnergyInfoByPostalCode(t){return await this.client.get(`energy/info-by-postalcode/${t}`).json()}async getEnergyInfoByCoordinates(t,e){let s=new URLSearchParams({lat:t.toString(),lon:e.toString()});return await this.client.get("energy/info-by-coordinates",{searchParams:s}).json()}async getSalesforceContactById(t){return await this.client.get(`salesforce/contact/${t}`).json()}async postEnergyBankIdSign(t){return await this.client.post("energy/bankid/sign",{json:t}).json()}async getEnergyBankIdCollect(t){return await this.client.get(`energy/bankid/collect/${t}`).json()}async postEnergyBankIdCancel(t){return await this.client.post(`energy/bankid/cancel/${t}`).json()}async getDummy(){return await this.client.get("dummy").text()}async postEnergyContractUploadDocuments(t,e){let s=new FormData;return s.append("powerOfAttorneyPdf",t),s.append("energyContractPdf",e),await this.client.post("energy/contract/upload-documents",{body:s}).json()}async postEnergyContractSignup(t){return await this.client.post("energy/contract/signup",{json:t}).json()}async postElectricityContractCancellation(t){return await this.client.post("cancellation/electricity-contract",{json:t}).json()}}],647857)},966461,t=>{"use strict";var e=t.i(93439);let s=new(t.i(647857)).SiteApiClient("https://site.sveasolar.com","eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjoiU1ZFQV9XRUJTSVRFIiwiaWF0IjoxNzgyODY4MTkyLCJleHAiOjE3OTE1MDgxOTJ9.jwC6qXOIH0vW767zI4UnXwyr5I--CnBley3_nnCZmpo"),r=new e.QueryClient({});t.s(["siteApiClient",0,s,"siteApiReactQueryClient",0,r])}]);
3
4//# debugId=12c5f55e-e73e-63a6-e140-977e7e2a490a

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.