PageSourceSearch

https://www.veed.io/frontend-assets/dashboard-frontend/dashboard-static/useQuery-C0Cy1HKL.js

js veed.io collected 2026-09-24 08:24:27 UTC 18,853 bytes, 4 lines download raw bytes

1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`7a58fa93a7a0f4bfe4323bd10ecc06c7f61b8211`};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`44e12096-3748-4272-8f73-8d8e2e7109c8`,e._sentryDebugIdIdentifier=`sentry-dbid-44e12096-3748-4272-8f73-8d8e2e7109c8`)}catch{}})();import{s as e}from"./rolldown-runtime-BhwcDRyc.js";import{n as t}from"./jsx-runtime-CAwAWffi.js";import{c as n,d as r,o as i,u as a}from"./tslib.es6-Cy2_4XOa.js";var o=globalThis.__DEV__===!0;function s(e){try{return e()}catch{}}var c=s(()=>globalThis)||s(()=>window)||s(()=>self)||s(()=>global)||s(function(){return s.constructor(`return this`)()}),l=e(t(),1),u=`4.3.0`,d=new Map;function f(e){let t=d.get(e)||1;return d.set(e,t+1),`${e}:${t}:${Math.random().toString(36).slice(2)}`}function p(e,t=0){let n=f(`stringifyForDisplay`);return JSON.stringify(e,(e,t)=>t===void 0?n:t,t).split(JSON.stringify(n)).join(`<undefined>`)}var m=`Invariant Violation`,ee=class e extends Error{constructor(t=m){super(t),this.name=m,Object.setPrototypeOf(this,e.prototype)}},te=[`debug`,`log`,`warn`,`error`,`silent`],ne=te.indexOf(o?`log`:`silent`);function h(e,...t){if(!e)throw re(...t)}function g(e){return function(t,...n){if(te.indexOf(e)>=ne){let r=console[e]||console.log;if(typeof t==`number`){let e=t;t=v(e),t||(t=y(e,n),n=[])}r(t,...n)}}}h.debug=g(`debug`),h.log=g(`log`),h.warn=g(`warn`),h.error=g(`error`);function re(e,...t){return new ee(v(e,t)||y(e,t))}var ie=Symbol.for(`ApolloErrorMessageHandler_`+u);function _(e){if(typeof e==`string`)return e;try{return p(e,2).slice(0,1e3)}catch{return`<non-serializable>`}}function v(e,t=[]){if(e)return c[ie]&&c[ie](e,t.map(_))}function y(e,t=[]){if(e)return typeof e==`string`?t.reduce((e,t)=>e.replace(/%[sdfo]/,_(t)),e):`An error occurred! For more details, see the full error text at https://go.apollo.dev/c/err#${encodeURIComponent(JSON.stringify({version:u,message:e,args:t.map(_)}))}`}var b=Symbol.for(`__APOLLO_CONTEXT__`);function x(){h(`createContext`in l,39);let e=l.createContext[b];return e||(Object.defineProperty(l.createContext,b,{value:e=l.createContext({}),enumerable:!1,writable:!1,configurable:!0}),e.displayName=`ApolloContext`),e}function S(e){let t=l.useContext(x()),n=e||t.client;return h(!!n,30),n}var{toString:ae,hasOwnProperty:oe}=Object.prototype,C=Function.prototype.toString,w=new Map;function T(e,t){try{return E(e,t)}finally{w.clear()}}function E(e,t){if(e===t)return!0;let n=ae.call(e);if(n!==ae.call(t))return!1;switch(n){case`[object Array]`:if(e.length!==t.length)return!1;case`[object Object]`:{if(de(e,t))return!0;let n=se(e),r=se(t),i=n.length;if(i!==r.length)return!1;for(let e=0;e<i;++e)if(!oe.call(t,n[e]))return!1;for(let r=0;r<i;++r){let i=n[r];if(!E(e[i],t[i]))return!1}return!0}case`[object Error]`:return e.name===t.name&&e.message===t.message;case`[object Number]`:if(e!==e)return t!==t;case`[object Boolean]`:case`[object Date]`:return+e==+t;case`[object RegExp]`:case`[object String]`:return e==`${t}`;case`[object Map]`:case`[object Set]`:{if(e.size!==t.size)return!1;if(de(e,t))return!0;let r=e.entries(),i=n===`[object Map]`;for(;;){let e=r.next();if(e.done)break;let[n,a]=e.value;if(!t.has(n)||i&&!E(a,t.get(n)))return!1}return!0}case`[object Uint16Array]`:case`[object Uint8Array]`:case`[object Uint32Array]`:case`[object Int32Array]`:case`[object Int8Array]`:case`[object Int16Array]`:case`[object ArrayBuffer]`:e=new Uint8Array(e),t=new Uint8Array(t);case`[object DataView]`:{let n=e.byteLength;if(n===t.byteLength)for(;n--&&e[n]===t[n];);return n===-1}case`[object AsyncFunction]`:case`[object GeneratorFunction]`:case`[object AsyncGeneratorFunction]`:case`[object Function]`:{let n=C.call(e);return n===C.call(t)?!ue(n,le):!1}}return!1}function se(e){return Object.keys(e).filter(ce,e)}function ce(e){return this[e]!==void 0}var le=`{ [native code] }`;function ue(e,t){let n=e.length-t.length;return n>=0&&e.indexOf(t,n)===n}function de(e,t){let n=w.get(e);if(n){if(n.has(t))return!0}else w.set(e,n=new Set);return n.add(t),!1}function D(e){return typeof e==`function`}function fe(e){var t=e(function(e){Error.call(e),e.stack=Error().stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var O=fe(function(e){return function(t){e(this),this.message=t?t.length+` errors occurred during unsubscription:
2`+t.map(function(e,t){return t+1+`) `+e.toString()}).join(`
3  `):``,this.name=`UnsubscriptionError`,this.errors=t}});function k(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var A=function(){function e(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var e,t,i,o,s;if(!this.closed){this.closed=!0;var c=this._parentage;if(c)if(this._parentage=null,Array.isArray(c))try{for(var l=r(c),u=l.next();!u.done;u=l.next())u.value.remove(this)}catch(t){e={error:t}}finally{try{u&&!u.done&&(t=l.return)&&t.call(l)}finally{if(e)throw e.error}}else c.remove(this);var d=this.initialTeardown;
vendor: 4,593 bytes, line 3
3if(D(d))try{d()}catch(e){s=e instanceof O?e.errors:[e]}var f=this._finalizers;if(f){this._finalizers=null;try{for(var p=r(f),m=p.next();!m.done;m=p.next()){var ee=m.value;try{he(ee)}catch(e){s??=[],e instanceof O?s=a(a([],n(s)),n(e.errors)):s.push(e)}}}catch(e){i={error:e}}finally{try{m&&!m.done&&(o=p.return)&&o.call(p)}finally{if(i)throw i.error}}}if(s)throw new O(s)}},e.prototype.add=function(t){if(t&&t!==this)if(this.closed)he(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=this._finalizers??[]).push(t)}},e.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},e.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},e.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&k(t,e)},e.prototype.remove=function(t){var n=this._finalizers;n&&k(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=(function(){var t=new e;return t.closed=!0,t})(),e}(),pe=A.EMPTY;function me(e){return e instanceof A||e&&`closed`in e&&D(e.remove)&&D(e.add)&&D(e.unsubscribe)}function he(e){D(e)?e():e.unsubscribe()}var j={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},M={setTimeout:function(e,t){var r=[...arguments].slice(2),i=M.delegate;return i?.setTimeout?i.setTimeout.apply(i,a([e,t],n(r))):setTimeout.apply(void 0,a([e,t],n(r)))},clearTimeout:function(e){return(M.delegate?.clearTimeout||clearTimeout)(e)},delegate:void 0};function N(e){M.setTimeout(function(){var t=j.onUnhandledError;if(t)t(e);else throw e})}function P(){}var ge=(function(){return F(`C`,void 0,void 0)})();function _e(e){return F(`E`,void 0,e)}function ve(e){return F(`N`,e,void 0)}function F(e,t,n){return{kind:e,value:t,error:n}}var I=null;function ye(e){if(j.useDeprecatedSynchronousErrorHandling){var t=!I;if(t&&(I={errorThrown:!1,error:null}),e(),t){var n=I,r=n.errorThrown,i=n.error;if(I=null,r)throw i}}else e()}function be(e){j.useDeprecatedSynchronousErrorHandling&&I&&(I.errorThrown=!0,I.error=e)}var L=function(e){i(t,e);function t(t){var n=e.call(this)||this;return n.isStopped=!1,t?(n.destination=t,me(t)&&t.add(n)):n.destination=we,n}return t.create=function(e,t,n){return new z(e,t,n)},t.prototype.next=function(e){this.isStopped?V(ve(e),this):this._next(e)},t.prototype.error=function(e){this.isStopped?V(_e(e),this):(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped?V(ge,this):(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(A),xe=Function.prototype.bind;function R(e,t){return xe.call(e,t)}var Se=function(){function e(e){this.partialObserver=e}return e.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){B(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){B(e)}else B(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){B(e)}},e}(),z=function(e){i(t,e);function t(t,n,r){var i=e.call(this)||this,a;if(D(t)||!t)a={next:t??void 0,error:n??void 0,complete:r??void 0};else{var o;i&&j.useDeprecatedNextContext?(o=Object.create(t),o.unsubscribe=function(){return i.unsubscribe()},a={next:t.next&&R(t.next,o),error:t.error&&R(t.error,o),complete:t.complete&&R(t.complete,o)}):a=t}return i.destination=new Se(a),i}return t}(L);function B(e){j.useDeprecatedSynchronousErrorHandling?be(e):N(e)}function Ce(e){throw e}function V(e,t){var n=j.onStoppedNotification;n&&M.setTimeout(function(){return n(e,t)})}var we={closed:!0,next:P,error:Ce,complete:P},H={now:function(){return(H.delegate||Date).now()},delegate:void 0},Te=function(e){i(t,e);function t(t,n){return e.call(this)||this}return t.prototype.schedule=function(e,t){return t===void 0&&(t=0),this},t}(A),U={setInterval:function(e,t){var r=[...arguments].slice(2),i=U.delegate;return i?.setInterval?i.setInterval.apply(i,a([e,t],n(r))):setInterval.apply(void 0,a([e,t],n(r)))},clearInterval:function(e){return(U.delegate?.clearInterval||clearInterval)(e)},delegate:void 0},Ee=function(e){i(t,e);function t(t,n){var r=e.call(this,t,n)||this;
3return r.scheduler=t,r.work=n,r.pending=!1,r}return t.prototype.schedule=function(e,t){if(t===void 0&&(t=0),this.closed)return this;this.state=e;var n=this.id,r=this.scheduler;return n!=null&&(this.id=this.recycleAsyncId(r,n,t)),this.pending=!0,this.delay=t,this.id=this.id??this.requestAsyncId(r,this.id,t),this},t.prototype.requestAsyncId=function(e,t,n){return n===void 0&&(n=0),U.setInterval(e.flush.bind(e,this),n)},t.prototype.recycleAsyncId=function(e,t,n){if(n===void 0&&(n=0),n!=null&&this.delay===n&&this.pending===!1)return t;t!=null&&U.clearInterval(t)},t.prototype.execute=function(e,t){if(this.closed)return Error(`executing a cancelled action`);this.pending=!1;var n=this._execute(e,t);if(n)return n;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(e,t){var n=!1,r;try{this.work(e)}catch(e){n=!0,r=e||Error(`Scheduled action threw falsy error`)}if(n)return this.unsubscribe(),r},t.prototype.unsubscribe=function(){if(!this.closed){var t=this,n=t.id,r=t.scheduler,i=r.actions;this.work=this.state=this.scheduler=null,this.pending=!1,k(i,this),n!=null&&(this.id=this.recycleAsyncId(r,n,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t}(Te),De=1,Oe,W={};function ke(e){return e in W?(delete W[e],!0):!1}var Ae={setImmediate:function(e){var t=De++;return W[t]=!0,Oe||=Promise.resolve(),Oe.then(function(){return ke(t)&&e()}),t},clearImmediate:function(e){ke(e)}},je=Ae.setImmediate,Me=Ae.clearImmediate,G={setImmediate:function(){var e=[...arguments];return(G.delegate?.setImmediate||je).apply(void 0,a([],n(e)))},clearImmediate:function(e){return(G.delegate?.clearImmediate||Me)(e)},delegate:void 0},Ne=function(e){i(t,e);function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r}return t.prototype.requestAsyncId=function(t,n,r){return r===void 0&&(r=0),r!==null&&r>0?e.prototype.requestAsyncId.call(this,t,n,r):(t.actions.push(this),t._scheduled||=G.setImmediate(t.flush.bind(t,void 0)))},t.prototype.recycleAsyncId=function(t,n,r){if(r===void 0&&(r=0),r==null?this.delay>0:r>0)return e.prototype.recycleAsyncId.call(this,t,n,r);var i=t.actions;n!=null&&i[i.length-1]?.id!==n&&(G.clearImmediate(n),t._scheduled===n&&(t._scheduled=void 0))},t}(Ee),Pe=function(){function e(t,n){n===void 0&&(n=e.now),this.schedulerActionCtor=t,this.now=n}return e.prototype.schedule=function(e,t,n){return t===void 0&&(t=0),new this.schedulerActionCtor(this,e).schedule(n,t)},e.now=H.now,e}(),Fe=function(e){i(t,e);function t(t,n){n===void 0&&(n=Pe.now);var r=e.call(this,t,n)||this;return r.actions=[],r._active=!1,r}return t.prototype.flush=function(e){var t=this.actions;if(this._active){t.push(e);return}var n;this._active=!0;do if(n=e.execute(e.state,e.delay))break;while(e=t.shift());if(this._active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}},t}(Pe),Ie=new(function(e){i(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.flush=function(e){this._active=!0;var t=this._scheduled;this._scheduled=void 0;var n=this.actions,r;e||=n.shift();do if(r=e.execute(e.state,e.delay))break;while((e=n[0])&&e.id===t&&n.shift());if(this._active=!1,r){for(;(e=n[0])&&e.id===t&&n.shift();)e.unsubscribe();throw r}},t}(Fe))(Ne);function Le(e){return D(e?.lift)}function Re(e){return function(t){if(Le(t))return t.lift(function(t){try{return e(t,this)}catch(e){this.error(e)}});throw TypeError(`Unable to lift unknown Observable type`)}}function ze(e,t,n,r,i){return new Be(e,t,n,r,i)}var Be=function(e){i(t,e);function t(t,n,r,i,a,o){var s=e.call(this,t)||this;return s.onFinalize=a,s.shouldUnsubscribe=o,s._next=n?function(e){try{n(e)}catch(e){t.error(e)}}:e.prototype._next,s._error=i?function(e){try{i(e)}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._error,s._complete=r?function(){try{r()}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._complete,s}return t.prototype.unsubscribe=function(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var n=this.closed;e.prototype.unsubscribe.call(this),!n&&((t=this.onFinalize)==null||t.call(this))}},t}(L);function K(e,t,n,r,i){r===void 0&&(r=0),i===void 0&&(i=!1);var a=t.schedule(function(){n(),i?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(a),!i)return a}function Ve(e,t){return t===void 0&&(t=0),Re(function(n,r){n.subscribe(ze(r,function(n){return K(r,e,function(){return r.next(n)},t)},function(){return K(r,e,function(){return r.complete()},t)},function(n){return K(r,e,function(){return r.error(n)},t)}))})}
3var He=typeof s(()=>window.document.createElement)==`function`;function q(...e){let t={};return e.forEach(e=>{e&&Reflect.ownKeys(e).forEach(n=>{let r=e[n];r!==void 0&&(t[n]=r)})}),t}function J(e){return typeof e==`object`&&!!e}function Ue(e){let t=new Set([e]);return t.forEach(e=>{J(e)&&We(e)===e&&Object.getOwnPropertyNames(e).forEach(n=>{J(e[n])&&t.add(e[n])})}),e}function We(e){if(o&&!Object.isFrozen(e))try{Object.freeze(e)}catch(e){if(e instanceof TypeError)return null;throw e}return e}function Ge(e){return o&&Ue(e),e}function Y(e,t){return q(e,t,t.variables&&{variables:q({...e&&e.variables,...t.variables})})}var Ke=Symbol.for(`apollo.result.extensions`),qe=Symbol.for(`apollo.result.streamInfo`),Je=Symbol.for(`apollo.observableQuery.variablesUnknown`),Ye=Symbol.for(`apollo.cache.handleIncremental`),X;(function(e){e[e.loading=1]=`loading`,e[e.setVariables=2]=`setVariables`,e[e.fetchMore=3]=`fetchMore`,e[e.refetch=4]=`refetch`,e[e.poll=6]=`poll`,e[e.ready=7]=`ready`,e[e.error=8]=`error`,e[e.streaming=9]=`streaming`})(X||={});function Xe(e,t){let n=l.useRef(void 0);return(!n.current||!T(n.current.deps,t))&&(n.current={value:e(),deps:t}),n.current.value}var Ze=Symbol.for(`apollo.hook.wrappers`);function Qe(e,t,n){let r=[n.queryManager,e.startsWith(`use`)?l.useContext(x()):void 0],i=t;for(let t of r){let n=t?.[Ze]?.[e];n&&(i=n(i))}return i}var $e=!1,et=l.useSyncExternalStore,tt=s(()=>navigator.product)==`ReactNative`,nt=s(()=>navigator.userAgent.indexOf(`jsdom`)>=0)||!1,rt=(He||tt)&&!nt,it=et||((e,t,n)=>{let r=t();o&&!$e&&r!==t()&&($e=!0,h.error(36));let[{inst:i},a]=l.useState({inst:{value:r,getSnapshot:t}});return rt?l.useLayoutEffect(()=>{Object.assign(i,{value:r,getSnapshot:t}),Z(i)&&a({inst:i})},[e,r,t]):Object.assign(i,{value:r,getSnapshot:t}),l.useEffect(()=>(Z(i)&&a({inst:i}),e(function(){Z(i)&&a({inst:i})})),[e]),r});function Z({value:e,getSnapshot:t}){try{return e!==t()}catch{return!0}}var at=Symbol.for(`apollo.skipToken`),Q=Symbol(),$=function(e,...[t]){"use no memo";return Qe(`useQuery`,ot,S(typeof t==`object`?t.client:void 0))(e,t)};function ot(e,t={}){let n=S(typeof t==`object`?t.client:void 0),{ssr:r}=typeof t==`object`?t:{},i=ct(e,t,n.defaultOptions.watchQuery);function a(t){let r=n.watchQuery(i);return{client:n,query:e,observable:r,resultData:{current:r.getCurrentResult(),previousData:t?.resultData.current.data,variables:r.variables}}}let[o,s]=l.useState(a);(n!==o.client||e!==o.query)&&s(o=a(o));let{observable:c,resultData:u}=o;lt(i,c),dt(u,c,i);let d=ut(c,u,r),f=l.useMemo(()=>({refetch:c.refetch.bind(c),fetchMore:c.fetchMore.bind(c),updateQuery:c.updateQuery.bind(c),startPolling:c.startPolling.bind(c),stopPolling:c.stopPolling.bind(c),subscribeToMore:c.subscribeToMore.bind(c)}),[c]),p=u.previousData;return l.useMemo(()=>{let{partial:e,...t}=d;return{...t,client:n,observable:c,variables:c.variables,previousData:p,...f}},[d,n,c,p,f])}var st=Symbol();function ct(e,t,n){return Xe(()=>{if(t===at){let t={...Y(n,{query:e,fetchPolicy:`standby`}),[Je]:!0};return t[st]=!0,t}let r=Y(n,{...t,query:e});return t.skip&&(r.initialFetchPolicy=t.initialFetchPolicy||t.fetchPolicy,r.fetchPolicy=`standby`),r},[e,t,n])}function lt(e,t){"use no memo";e.fetchPolicy||=t.options.initialFetchPolicy}function ut(e,t,n){"use no memo";let r=e.options.fetchPolicy;return it(l.useCallback(n=>{let r=e.pipe(Ve(Ie)).subscribe(r=>{let i=t.current;T(i,r)&&T(t.variables,e.variables)||(t.variables=e.variables,i.data&&!T(i.data,r.data)&&(t.previousData=i.data),t.current=r,n())});return()=>{setTimeout(()=>r.unsubscribe())}},[e,t]),()=>t.current,()=>r!==`standby`&&n===!1||r===`no-cache`?$.ssrDisabledResult:t.current)}function dt(e,t,n){"use no memo";if(t[Q]&&!T(t[Q],n)){t[Q][st]&&!n.initialFetchPolicy&&(n.initialFetchPolicy=n.fetchPolicy),ft(t[Q],n)?t.reobserve(n):t.applyOptions(n);let r=t.getCurrentResult();T(r.data,e.current.data)||(e.previousData=e.current.data||e.previousData),e.current=r,e.variables=t.variables}t[Q]=n}function ft(e,t){return e.query!==t.query||!T(e.variables,t.variables)||e.fetchPolicy!==t.fetchPolicy&&(t.fetchPolicy===`standby`||e.fetchPolicy===`standby`)}$.ssrDisabledResult=Ge({loading:!0,data:void 0,dataState:`empty`,error:void 0,networkStatus:X.loading,partial:!0});export{fe as A,c as B,ye as C,A as D,pe as E,h as F,o as H,re as I,p as L,T as M,S as N,me as O,x as P,f as R,L as S,j as T,s as V,Re as _,Ke as a,H as b,Je as c,J as d,q as f,ze as g,K as h,X as i,D as j,k,Y as l,Ve as m,it as n,Ye as o,He as p,Xe as r,qe as s,$ as t,Ge as u,Fe as v,N as w,z as x,Ee as y,u as z};
4//# sourceMappingURL=useQuery-C0Cy1HKL.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.