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:`2c7ca2dffb71b2403d2b84bb17b79815f35e088a`};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`3adceda0-6e39-464a-95d2-c526798ebf37`,e._sentryDebugIdIdentifier=`sentry-dbid-3adceda0-6e39-464a-95d2-c526798ebf37`)}catch{}})();import{n as e}from"./1.26.67.0-2c7ca2d-store.js";import{A as t,b as n,j as r,l as i,r as a,s as o,u as s}from"./1.26.67.0-2c7ca2d-_zod-compiler-runtime.js";var c={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},l=new class{#e=c;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}};function u(e){setTimeout(e,0)}var d=typeof window>`u`||`Deno`in globalThis;function f(){}function p(e,t){return typeof e==`function`?e(t):e}function m(e){return typeof e==`number`&&e>=0&&e!==1/0}function h(e,t){return Math.max(e+(t||0)-Date.now(),0)}function g(e,t){return typeof e==`function`?e(t):e}function _(e,t){let{type:n=`all`,exact:r,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o){if(r){if(t.queryHash!==y(o,t.options))return!1}else if(!x(t.queryKey,o))return!1}if(n!==`all`){let e=t.isActive();if(n===`active`&&!e||n===`inactive`&&e)return!1}return!(typeof s==`boolean`&&t.isStale()!==s||i&&i!==t.state.fetchStatus||a&&!a(t))}function v(e,t){let{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(b(t.options.mutationKey)!==b(a))return!1}else if(!x(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function y(e,t){return(t?.queryKeyHashFn||b)(e)}function b(e){return JSON.stringify(e,(e,t)=>E(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function x(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(e&&t&&typeof e==`object`&&typeof t==`object`){if(Array.isArray(e)&&Array.isArray(t)){if(t.length>e.length)return!1;for(let n=0;n<t.length;n++)if(!x(e[n],t[n]))return!1;return!0}let n=Object.keys(t);for(let r of n)if(!x(e[r],t[r]))return!1;return!0}return!1}var S=Object.prototype.hasOwnProperty;function C(e,t,n=0){if(e===t)return e;if(n>500)return t;let r=T(e)&&T(t);if(!r&&!(E(e)&&E(t)))return t;let i=(r?e:Object.keys(e)).length,a=r?t:Object.keys(t),o=a.length,s=r?Array(o):{},c=0;for(let l=0;l<o;l++){let o=r?l:a[l],u=e[o],d=t[o];if(u===d){s[o]=u,(r?l<i:S.call(e,o))&&c++;continue}if(u===null||d===null||typeof u!=`object`||typeof d!=`object`){s[o]=d;continue}let f=C(u,d,n+1);s[o]=f,f===u&&c++}return i===o&&c===i?e:s}function w(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(e[n]!==t[n])return!1;return!0}function T(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function E(e){if(!D(e))return!1;let t=Object.getPrototypeOf(e),n=t?.constructor;if(n===void 0)return!0;if(typeof n!=`function`)return!1;let r=n.prototype;return!(!D(r)||!r.hasOwnProperty(`isPrototypeOf`)||t!==Object.prototype)}function D(e){return Object.prototype.toString.call(e)===`[object Object]`}function O(e){return new Promise(t=>{l.setTimeout(t,e)})}function k(e,t,n){return typeof n.structuralSharing==`function`?n.structuralSharing(e,t):n.structuralSharing===!1?t:C(e,t)}function A(e){return e}function j(e,t,n=0){let r=[...e,t];return n&&r.length>n?r.slice(1):r}function M(e,t,n=0){let r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var N=Symbol();function P(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===N?()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function F(e,t){return typeof e==`function`?e(...t):!!e}function I(e,t,n){let r=!1,i;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(i??=t(),r?i:(r=!0,i.aborted?n():i.addEventListener(`abort`,n,{once:!0}),i))}),e}var L=()=>d,R=()=>L(),z=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},B=new class extends z{#e;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e();return window.addEventListener(`visibilitychange`,t,!1),()=>{window.removeEventListener(`visibilitychange`,t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(e=>{typeof e==`boolean`?this.setFocused(e):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){let e=this.isFocused();
1this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e==`boolean`?this.#e:globalThis.document?.visibilityState!==`hidden`}},V=u;function H(){let e=[],t=0,n=e=>{e()},r=e=>{e()},i=V,a=r=>{t?e.push(r):i(()=>{n(r)})},o=()=>{let t=e;e=[],t.length&&i(()=>{r(()=>{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||o()}return n},batchCalls:e=>(...t)=>{a(()=>{e(...t)})},schedule:a,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{i=e}}}var U=H(),W=new class extends z{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e(!0),n=()=>e(!1);return window.addEventListener(`online`,t,!1),window.addEventListener(`offline`,n,!1),()=>{window.removeEventListener(`online`,t),window.removeEventListener(`offline`,n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#e}};function G(e){return Math.min(1e3*2**e,3e4)}function K(e){return(e??`online`)!==`online`||W.isOnline()}var q=class extends Error{constructor(e){super(`CancelledError`),this.revert=e?.revert,this.silent=e?.silent}};function J(e){let t=!1,n=0,r,i=`pending`,a,o,s=new Promise((e,t)=>{a=e,o=t});s.catch(f);let c=()=>i!==`pending`,l=t=>{if(!c()){let n=new q(t);g(n),e.onCancel?.(n)}},u=()=>{t=!0},d=()=>{t=!1},p=()=>B.isFocused()&&(e.networkMode===`always`||W.isOnline())&&e.canRun(),m=()=>K(e.networkMode)&&e.canRun(),h=e=>{c()||(r?.(),i=`resolved`,a(e))},g=e=>{c()||(r?.(),i=`rejected`,o(e))},_=()=>new Promise(t=>{r=e=>{(c()||p())&&t(e)},e.onPause?.()}).then(()=>{r=void 0,c()||e.onContinue?.()}),v=()=>{if(c())return;let r,i=n===0?e.initialPromise:void 0;try{r=i??e.fn()}catch(e){r=Promise.reject(e)}Promise.resolve(r).then(h).catch(r=>{if(c())return;let i=e.retry??(R()?0:3),a=e.retryDelay??G,o=typeof a==`function`?a(n,r):a,s=i===!0||typeof i==`number`&&n<i||typeof i==`function`&&i(n,r);if(t||!s){g(r);return}n++,e.onFail?.(n,r),O(o).then(()=>p()?void 0:_()).then(()=>{t?g(r):v()})})};return{promise:s,status:()=>i,cancel:l,continue:()=>(r?.(),s),cancelRetry:u,continueRetry:d,canStart:m,start:()=>(m()?v():_().then(v),s)}}var Y=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),m(this.gcTime)&&(this.#e=l.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(R()?1/0:3e5))}clearGcTimeout(){this.#e!==void 0&&(l.clearTimeout(this.#e),this.#e=void 0)}};function X(e){return{onFetch:(t,n)=>{let r=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],o=t.state.data?.pageParams||[],s={pages:[],pageParams:[]},c=0,l=async()=>{let n=!1,l=e=>{I(e,()=>t.signal,()=>n=!0)},u=P(t.options,t.fetchOptions),d=async(e,r,i)=>{if(n)return Promise.reject(t.signal.reason);if(r==null&&e.pages.length)return Promise.resolve(e);let a=(()=>{let e={client:t.client,queryKey:t.queryKey,pageParam:r,direction:i?`backward`:`forward`,meta:t.options.meta};return l(e),e})(),o=await u(a),{maxPages:s}=t.options,c=i?M:j;return{pages:c(e.pages,o,s),pageParams:c(e.pageParams,r,s)}};if(i&&a.length){let e=i===`backward`,t=e?te:ee,n={pages:a,pageParams:o};s=await d(n,t(r,n),e)}else{let t=e??a.length;do{let e=c===0?o[0]??r.initialPageParam:ee(r,s);if(c>0&&e==null)break;s=await d(s,e),c++}while(c<t)}return s};t.fetchFn=t.options.persister?()=>t.options.persister?.(l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):l}}}function ee(e,{pages:t,pageParams:n}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function te(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}function ne(e,t){return t?ee(e,t)!=null:!1}function re(e,t){return!t||!e.getPreviousPageParam?!1:te(e,t)!=null}var ie=class extends Y{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e){super(),this.#s=!1,this.#o=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#i=e.client,this.#r=this.#i.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=se(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#e}get promise(){return this.#a?.promise}setOptions(e){if(this.options={...this.#o,...e},e?._type&&(this.#e=e._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){let e=se(this.options);e.data!==void 0&&(this.setState(oe(e.data,e.dataUpdatedAt)),this.#t=e)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus===`idle`&&this.#r.remove(this)}setData(e,t){let n=k(this.state.data,e,this.options);return this.#c({data:n,type:`success`,dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e){this.#c({type:`setState`,state:e})}cancel(e){let t=this.#a?.promise;return this.#a?.cancel(e),t?t.then(f).catch(f):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#t}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>g(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===N||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdate
1Count>0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>g(e.options.staleTime,this)===`static`)}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e===`static`?!1:this.state.isInvalidated?!0:!h(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#r.notify({type:`observerAdded`,query:this,observer:e}))}removeObserver(e){let t=this.observers.indexOf(e);t!==-1&&(this.observers.splice(t,1),this.observers.length||(this.#a&&(this.#s||this.state.fetchStatus===`paused`&&this.state.status===`pending`?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#r.notify({type:`observerRemoved`,query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#c({type:`invalidate`})}async fetch(e,t){if(this.state.fetchStatus!==`idle`&&this.#a?.status()!==`rejected`){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let n=new AbortController,r=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#s=!0,n.signal)})},i=()=>{let e=P(this.options,t),n=(()=>{let e={client:this.#i,queryKey:this.queryKey,meta:this.meta};return r(e),e})();return this.#s=!1,this.options.persister?this.options.persister(e,n,this):e(n)},a=(()=>{let e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:i};return r(e),e})();(this.#e===`infinite`?X(this.options.pages):this.options.behavior)?.onFetch(a,this),this.#n=this.state,(this.state.fetchStatus===`idle`||this.state.fetchMeta!==a.fetchOptions?.meta)&&this.#c({type:`fetch`,meta:a.fetchOptions?.meta});let o=this.#a=J({initialPromise:t?.initialPromise,fn:a.fetchFn,onCancel:e=>{e instanceof q&&e.revert&&this.setState({...this.#n,fetchStatus:`idle`}),n.abort()},onFail:(e,t)=>{this.#c({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#c({type:`pause`})},onContinue:()=>{this.#c({type:`continue`})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0});try{let e=await o.start();if(e===void 0)throw Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#r.config.onSuccess?.(e,this),this.#r.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof q){if(e.silent)return this.#a.promise;if(e.revert){if(this.state.data===void 0)throw e;return this.state.data}}throw this.#c({type:`error`,error:e}),this.#r.config.onError?.(e,this),this.#r.config.onSettled?.(this.state.data,e,this),e}finally{this.#a===o&&(this.#a=void 0),this.scheduleGc()}}#c(e){let t=t=>{switch(e.type){case`failed`:return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case`pause`:return{...t,fetchStatus:`paused`};case`continue`:return{...t,fetchStatus:`fetching`};case`fetch`:return{...t,...ae(t.data,this.options),fetchMeta:e.meta??null};case`success`:let n={...t,...oe(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:`idle`,fetchFailureCount:0,fetchFailureReason:null}};return this.#n=e.manual?n:void 0,n;case`error`:let r=e.error;return{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:`idle`,status:`error`,isInvalidated:!0};case`invalidate`:return{...t,isInvalidated:!0};case`setState`:return{...t,...e.state}}};this.state=t(this.state),U.batch(()=>{this.observers.slice().forEach(e=>{e.onQueryUpdate()}),this.#r.notify({query:this,type:`updated`,action:e})})}};function ae(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:K(t.networkMode)?`fetching`:`paused`,...e===void 0&&{error:null,status:`pending`}}}function oe(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:`success`}}function se(e){let t=typeof e.initialData==`function`?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt==`function`?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdate
1Count:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?`success`:`pending`,fetchStatus:`idle`}}var ce=class extends Y{#e;#t;#n;#r;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||le(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:`observerAdded`,mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:`observerRemoved`,mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status===`pending`?this.scheduleGc():this.#n.remove(this))}continue(){return this.#r?.continue()??(this.state.status===`pending`?this.execute(this.state.variables):Promise.resolve())}async execute(e){let t=()=>{this.#i({type:`continue`})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey},r=this.#r=J({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(Error(`No mutationFn found`)),onFail:(e,t)=>{this.#i({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#i({type:`pause`})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)}),i=this.state.status===`pending`,a=!r.canStart();try{if(i)t();else{this.#i({type:`pending`,variables:e,isPaused:a}),this.#n.config.onMutate&&await this.#n.config.onMutate(e,this,n);let t=await this.options.onMutate?.(e,n);t!==this.state.context&&this.#i({type:`pending`,context:t,variables:e,isPaused:a})}let o=await r.start();return await this.#n.config.onSuccess?.(o,e,this.state.context,this,n),await this.options.onSuccess?.(o,e,this.state.context,n),await this.#n.config.onSettled?.(o,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(o,null,e,this.state.context,n),this.#i({type:`success`,data:o}),o}catch(t){try{await this.#n.config.onError?.(t,e,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onError?.(t,e,this.state.context,n)}catch(e){Promise.reject(e)}try{await this.#n.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onSettled?.(void 0,t,e,this.state.context,n)}catch(e){Promise.reject(e)}throw this.#i({type:`error`,error:t}),t}finally{this.#r===r&&(this.#r=void 0),this.#n.runNext(this)}}#i(e){let t=t=>{switch(e.type){case`failed`:return{...t,failureCount:e.failureCount,failureReason:e.error};case`pause`:return{...t,isPaused:!0};case`continue`:return{...t,isPaused:!1};case`pending`:return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:`pending`,variables:e.variables,submittedAt:Date.now()};case`success`:return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:`success`,isPaused:!1};case`error`:return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:`error`}}};this.state=t(this.state),U.batch(()=>{this.#t.forEach(t=>{t.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:`updated`,action:e})})}};function le(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:`idle`,variables:void 0,submittedAt:0}}var ue=class extends z{#e;#t;#n;constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}build(e,t,n){let r=new ce({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);let t=de(e);if(typeof t==`string`){let n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:`added`,mutation:e})}remove(e){if(this.#e.delete(e)){let t=de(e);if(typeof t==`string`){let n=this.#t.get(t);if(n){if(n.length>1){let t=n.indexOf(e);t!==-1&&n.splice(t,1)}else n[0]===e&&this.#t.delete(t)}}}this.notify({type:`removed`,mutation:e})}canRun(e){let t=de(e);if(typeof t==`string`){let n=this.#t.get(t)?.find(e=>
1e.state.status===`pending`);return!n||n===e}return!0}runNext(e){let t=de(e);return typeof t==`string`?(this.#t.get(t)?.find(t=>t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){U.batch(()=>{this.#e.forEach(e=>{this.notify({type:`removed`,mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>v(t,e))}findAll(e={}){return this.getAll().filter(t=>v(e,t))}notify(e){U.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return U.batch(()=>Promise.all(e.map(e=>e.continue().catch(f))))}};function de(e){return e.options.scope?.id}var fe=class extends z{#e;constructor(e={}){super(),this.config=e,this.#e=new Map}build(e,t,n){let r=t.queryKey,i=t.queryHash??y(r,t),a=this.get(i);return a||(a=new ie({client:e,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:`added`,query:e}))}remove(e){this.#e.get(e.queryHash)===e&&(e.destroy(),this.#e.delete(e.queryHash),this.notify({type:`removed`,query:e}))}clear(){U.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>_(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>_(e,t)):t}notify(e){U.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){U.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){U.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},pe=class{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e={}){this.#e=e.queryCache||new fe,this.#t=e.mutationCache||new ue,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#o=B.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=W.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#o?.(),this.#o=void 0,this.#s?.(),this.#s=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:`fetching`}).length}isMutating(e){return this.#t.findAll({...e,status:`pending`}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=this.#e.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(g(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let r=this.defaultQueryOptions({queryKey:e}),i=this.#e.get(r.queryHash)?.state.data,a=p(t,i);if(a!==void 0)return this.#e.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return U.batch(()=>this.#e.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){let t=this.#e;U.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#e;return U.batch(()=>{let r=n.findAll(e),i=new Set(r);return r.forEach(e=>{e.reset()}),this.refetchQueries({type:`active`,predicate:e=>i.has(e)},t)})}cancelQueries(e,t={}){let n={revert:!0,...t},r=U.batch(()=>this.#e.findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(f).catch(f)}invalidateQueries(e,t={}){return U.batch(()=>(this.#e.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType===`none`?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??`active`},t)))}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0},r=U.batch(()=>this.#e.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(f)),e.state.fetchStatus===`paused`?Promise.resolve():t}));return Promise.all(r).then(f)}async query(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t),r=n.isStaleByTime(g(t.staleTime,n))?await n.fetch(t):n.state.data,i=t.select;return i?i(r):r}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t);return n.isStaleByTime(g(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(f).catch(f)}infiniteQuery(e){return e._type=`infinite`,this.query(e)}
1fetchInfiniteQuery(e){return e._type=`infinite`,this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(f).catch(f)}ensureInfiniteQueryData(e){return e._type=`infinite`,this.ensureQueryData(e)}resumePausedMutations(){return W.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(b(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#r.values()],n={};return t.forEach(t=>{x(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#i.set(b(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#i.values()],n={};return t.forEach(t=>{x(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||=y(t.queryKey,t),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!==`always`),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode=`offlineFirst`),t.queryFn===N&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},me=function(e){return e.Pendente=`P`,e.Ativo=`A`,e.Bloqueado=`B`,e}({}),Z=function(e){return e[e.Administrador=1]=`Administrador`,e[e.Gerente=2]=`Gerente`,e[e.Comprador=3]=`Comprador`,e[e.Financeiro=4]=`Financeiro`,e[e.FinanceiroAvancado=5]=`FinanceiroAvancado`,e[e.Vendedor=6]=`Vendedor`,e[e.VendedorAvancado=7]=`VendedorAvancado`,e[e.AplicativoIntegrado=8]=`AplicativoIntegrado`,e[e.Operador=9]=`Operador`,e}({}),he=new pe({defaultOptions:{queries:{gcTime:3e4,refetchOnWindowFocus:!1,retry:!1,staleTime:3e4}}});function ge(){return e.getState().empresaIdpk}function _e(){return e.getState().login}function Q(){let e=ge();return e&&_e()?.usuario_empresa.find(t=>t.use_empresa_idpk===e)||null}function ve(){return Q()?.empresa[0]||null}function ye(){let e=Q();if(!e||e.use_vendedor===`N`)return null;let t=_e();return t?{idpk:t.usu_idpk,nome:t.usu_nome}:null}function be(t){let n=e.getState().login?.usuario_empresa.find(e=>e.use_empresa_idpk===t);e.setState({empresaIdpk:t,isFintech:n?.empresa[0]?.emp_sistema_tipo_uso===`F`}),he.clear()}function xe(t){e.setState(e=>{if(!e.login)return e;let n=e.login.usuario_empresa.map(e=>e.use_empresa_idpk===t.emp_idpk?{...e,empresa:[t]}:e);return{login:{...e.login,usuario_empresa:n}}})}function Se(){let e=Q()?.use_usuario_tipo_idpk;return e===Z.Administrador||e===Z.Gerente}function Ce(){return Q()?.use_usuario_tipo_idpk===Z.Administrador}function we(){if(!ye())return!0;let e=Q()?.use_usuario_tipo_idpk;return e===Z.Administrador||e===Z.Gerente||e===Z.Financeiro||e===Z.FinanceiroAvancado||e===Z.VendedorAvancado}function Te(){return Se()}function Ee(e){let t=ve();return!!t&&e.includes(t.emp_fintech_extrato_temporario)}var $=function(e){return e[e.Bloqueado=0]=`Bloqueado`,e[e.Completo=1]=`Completo`,e[e.Parcial=2]=`Parcial`,e[e.Limitada=3]=`Limitada`,e}({}),De=function(e){return e[e.Todos=0]=`Todos`,e[e.PainelWeb=1]=`PainelWeb`,e[e.SistemasIntegrados=2]=`SistemasIntegrados`,e[e.Gestok=77477]=`Gestok`,e[e.MercurioWebApp=514871]=`MercurioWebApp`,e[e.MercurioLocal=517341123]=`MercurioLocal`,e[e.SmartPOS=7458751]=`SmartPOS`,e}(De||{}),Oe=(()=>{var e=new Set([0,1,2,77477,514871,517341123,7458751]);function c(t){return typeof t==`object`&&!!t&&!Array.isArray(t)&&Number.isFinite(t.upp_empresa_idpk)&&Number.isFinite(t.upp_idpk)&&Number.isFinite(t.upp_usuario_tipo_idpk)&&(t.upp_cadastro_cliente===0||t.upp_cadastro_cliente===1||t.upp_cadastro_cliente===2||t.upp_cadastro_cliente===3)&&(t.upp_cadastro_fornecedor===0||t.upp_cadastro_fornecedor===1||t.upp_cadastro_fornecedor===2||t.upp_cadastro_fornecedor===3)&&(t.upp_cadastro_produto===0||t.upp_cadastro_produto===1||t.upp_cadastro_produto===2||t.upp_cadastro_produto===3)&&(t.upp_cadastro_transportadora===0||t.upp_cadastro_transportadora===1||t.upp_cadastro_transportadora===2||t.upp_cadastro_transportadora===3)&&(t.upp_cliente_condicao_pagamento===0||t.upp_cliente_condicao_pagamento===1||t.upp_cliente_condicao_pagamento===2||t.upp_cliente_condicao_pagamento===3)&&(t.upp_cliente_forma_pagamento===0||t.upp_cliente_forma_pagamento===1||t.upp_cliente_forma_pagamento===2||t.upp_cliente_forma_pagamento===3)&&(t.upp_compra_compra===0||t.upp_compra_compra===1||t.upp_compra_compra===2||t.upp_compra_compra===3)&&(t.upp_configuracao_configuracao===0||t.upp_configuracao_configuracao===1||t.upp_configuracao_configuracao===2||t.upp_configuracao_configuracao===3)&&(t.upp_estoque_estoque===0||t.upp_estoque_estoque===1||t.upp_estoque_estoque===2||t.upp_estoque_estoque===3)&&(t.upp_financeiro_boleto===0||t.upp_financeiro_boleto===1||t.upp_financeiro_boleto===2||t.upp_financeiro_boleto===3)&&(t.upp_financeiro_cartao===0||t.upp_financeiro_cartao===1||t.upp_financeiro_cartao===2||t.upp_financeiro_cartao===3)&&(t.upp_financeiro_conta_pagar===0||t.upp_financeiro_conta_pagar===1||t.upp_financeiro_conta_pagar===2||t.upp_financeiro_conta_pagar===3)&&(t.upp_financeiro_conta_receber===0||t.upp_financeiro_conta_receber===1||t.upp_financeiro_conta_receber===2||t.upp_financeiro_conta_receber===3)&&(t.upp_financeiro_estorno===0||t.upp_financeiro_estorno===1||t.upp_financeiro_estorno===2||t.upp_financeiro_estorno===3)&&(t.upp_financeiro_movimentacao===0||t.upp_financeiro_movimentacao===1||t.upp_financeiro_movimentacao===2||t.upp_financeiro_movimentacao===3)&&(t.upp_financeiro_pix===0||t.upp_financeiro_pix===1||t.upp_financeiro_pix===2||t.upp_financeiro_pix===3)&&(t.upp_fintech_administrativo===0||t.upp_fintech_administrativo===1||t.upp_fintech_administrativo===2||t.upp_fintech_administrativo===3)&&(t.upp_fiscal_buscador_notas===0||t.upp_fiscal_buscador_notas===1||t.upp_fiscal_buscador_notas===2||t.upp_fiscal_buscador_notas===3)&&(t.upp_fiscal_mdfe===0||t.upp_fiscal_mdfe===1||t.upp_fiscal_mdfe===2||t.upp_fiscal_mdfe===3)&&(t.upp_fiscal_nfce===0||t.upp_fiscal_nfce===1||t.upp_fiscal_nfce===2||t.upp_fiscal_nfce===3)&&(t.upp_fiscal_nfe===0||t.upp_fiscal_nfe===1||t.upp_fiscal_nfe===2||t.upp_fiscal_nfe===3)&&(t.upp_fiscal_nfse===0||t.upp_fiscal_nfse===1||t.upp_fiscal_nfse===2||t.upp_fiscal_nfse===3)&&(t.upp_fiscal_regras===0||t.upp_fiscal_regras===1||t.upp_fiscal_regras===2||t.upp_fiscal_regras===3)&&(t.upp_logistica===0||t.upp_logistica===1||t.upp_logistica===2||t.upp_logistica===3)&&(t.upp_logistica_conferencia===0||t.upp_logistica_conferencia===1||t.upp_logistica_conferencia===2||t.upp_logistica_conferencia===3)&&(t.upp_logistica_separacao===0||t.upp_logistica_separacao===1||t.upp_logistica_separacao===2||t.upp_logistica_separacao===3)&&(t.upp_notificacao_notificacao===0||t.upp_notificacao_notificacao===1||t.upp_notificacao_notificacao===2||t.upp_notificacao_notificacao===3)&&(t.upp_relatorio_cadastro===0||t.upp_relatorio_cadastro===1||t.upp_relatorio_cadastro===2||t.upp_relatorio_cadastro===3)&&(t.upp_relatorio_compra===0||t.upp_relatorio_compra===1||t.upp_relatorio_compra===2||t.upp_relatorio_compra===3)&&(t.upp_relatorio_estoque===0||t.upp_relatorio_estoque===1||t.upp_relatorio_estoque===2||t.upp_relatorio_estoque===3)&&(t.upp_relatorio_financeiro===0||t.upp_relatorio_financeiro===1||t.upp_relatorio_financeiro===2||t.upp_relatorio_financeiro===3)&&(t.upp_relatorio_fiscal===0||t.upp_relatorio_fiscal===1||t.upp_relatorio_fiscal===2||t.upp_relatorio_fiscal===3)&&(t.upp_relatorio_venda===0||t.upp_relatorio_venda===1||t.upp_relatorio_venda===2||t.upp_relatorio_venda===3)&&(t.upp_sistema_personalizado===0||t.upp_sistema_personalizado===1||t.upp_sistema_personalizado===2||t.upp_sistema_personalizado===3)&&(t.upp_venda_atendimento===0||t.upp_venda_atendimento===1||t.upp_venda_atendimento===2||t.upp_venda_atendimento===3)&&(t.upp_venda_comissao===0||t.upp_venda_comissao===1||t.upp_venda_comissao===2||t.upp_venda_comissao===3)&&(t.upp_venda_contrato===0||t.upp_venda_contrato===1||t.upp_venda_contrato===2||t.upp_venda_contrato===3)&&(t.upp_venda_devolucao===0||t.upp_venda_devolucao===1||t.upp_venda_devolucao===2||t.upp_venda_devolucao===3)&&(t.upp_venda_romaneio===0||t.upp_venda_romaneio===1||t.upp_venda_romaneio===2||t.upp_venda_romaneio===3)&&(t.upp_venda_venda===0||t.upp_venda_venda===1||t.upp_venda_venda===2||t.upp_venda_venda===3)&&(t.upp_venda_venda_externa===0||t.upp_venda_venda_externa===1||t.upp_venda_venda_externa===2||t.upp_venda_venda_externa===3)&&e.has(t.upp_sistema_acesso)}var l={};function u(t){var n,r,i,a,o,s,c,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T,E,D,O,k,A,j,M,N,P,F,I,L,R,z,B,V,H,U,W,G,K,q,J;return typeof t!=`object`||!t||Array.isArray(t)||(n=t.upp_empresa_idpk,!Number.isFinite(n))||(r=t.upp_idpk,!Number.isFinite(r))||(i=t.upp_usuario_tipo_idpk,!Number.isFinite(i))||
1(a=t.upp_cadastro_cliente,a!==0&&a!==1&&a!==2&&a!==3)||(o=t.upp_cadastro_fornecedor,o!==0&&o!==1&&o!==2&&o!==3)||(s=t.upp_cadastro_produto,s!==0&&s!==1&&s!==2&&s!==3)||(c=t.upp_cadastro_transportadora,c!==0&&c!==1&&c!==2&&c!==3)||(u=t.upp_cliente_condicao_pagamento,u!==0&&u!==1&&u!==2&&u!==3)||(d=t.upp_cliente_forma_pagamento,d!==0&&d!==1&&d!==2&&d!==3)||(f=t.upp_compra_compra,f!==0&&f!==1&&f!==2&&f!==3)||(p=t.upp_configuracao_configuracao,p!==0&&p!==1&&p!==2&&p!==3)||(m=t.upp_estoque_estoque,m!==0&&m!==1&&m!==2&&m!==3)||(h=t.upp_financeiro_boleto,h!==0&&h!==1&&h!==2&&h!==3)||(g=t.upp_financeiro_cartao,g!==0&&g!==1&&g!==2&&g!==3)||(_=t.upp_financeiro_conta_pagar,_!==0&&_!==1&&_!==2&&_!==3)||(v=t.upp_financeiro_conta_receber,v!==0&&v!==1&&v!==2&&v!==3)||(y=t.upp_financeiro_estorno,y!==0&&y!==1&&y!==2&&y!==3)||(b=t.upp_financeiro_movimentacao,b!==0&&b!==1&&b!==2&&b!==3)||(x=t.upp_financeiro_pix,x!==0&&x!==1&&x!==2&&x!==3)||(S=t.upp_fintech_administrativo,S!==0&&S!==1&&S!==2&&S!==3)||(C=t.upp_fiscal_buscador_notas,C!==0&&C!==1&&C!==2&&C!==3)||(w=t.upp_fiscal_mdfe,w!==0&&w!==1&&w!==2&&w!==3)||(T=t.upp_fiscal_nfce,T!==0&&T!==1&&T!==2&&T!==3)||(E=t.upp_fiscal_nfe,E!==0&&E!==1&&E!==2&&E!==3)||(D=t.upp_fiscal_nfse,D!==0&&D!==1&&D!==2&&D!==3)||(O=t.upp_fiscal_regras,O!==0&&O!==1&&O!==2&&O!==3)||(k=t.upp_logistica,k!==0&&k!==1&&k!==2&&k!==3)||(A=t.upp_logistica_conferencia,A!==0&&A!==1&&A!==2&&A!==3)||(j=t.upp_logistica_separacao,j!==0&&j!==1&&j!==2&&j!==3)||(M=t.upp_notificacao_notificacao,M!==0&&M!==1&&M!==2&&M!==3)||(N=t.upp_relatorio_cadastro,N!==0&&N!==1&&N!==2&&N!==3)||(P=t.upp_relatorio_compra,P!==0&&P!==1&&P!==2&&P!==3)||(F=t.upp_relatorio_estoque,F!==0&&F!==1&&F!==2&&F!==3)||(I=t.upp_relatorio_financeiro,I!==0&&I!==1&&I!==2&&I!==3)||(L=t.upp_relatorio_fiscal,L!==0&&L!==1&&L!==2&&L!==3)||(R=t.upp_relatorio_venda,R!==0&&R!==1&&R!==2&&R!==3)||(z=t.upp_sistema_personalizado,z!==0&&z!==1&&z!==2&&z!==3)||(B=t.upp_venda_atendimento,B!==0&&B!==1&&B!==2&&B!==3)||(V=t.upp_venda_comissao,V!==0&&V!==1&&V!==2&&V!==3)||(H=t.upp_venda_contrato,H!==0&&H!==1&&H!==2&&H!==3)||(U=t.upp_venda_devolucao,U!==0&&U!==1&&U!==2&&U!==3)||(W=t.upp_venda_romaneio,W!==0&&W!==1&&W!==2&&W!==3)||(G=t.upp_venda_venda,G!==0&&G!==1&&G!==2&&G!==3)||(K=t.upp_venda_venda_externa,K!==0&&K!==1&&K!==2&&K!==3)||(q=t.upp_sistema_acesso,!e.has(q))?l:(J={upp_cadastro_cliente:a,upp_cadastro_fornecedor:o,upp_cadastro_produto:s,upp_cadastro_transportadora:c,upp_cliente_condicao_pagamento:u,upp_cliente_forma_pagamento:d,upp_compra_compra:f,upp_configuracao_configuracao:p,upp_empresa_idpk:n,upp_estoque_estoque:m,upp_financeiro_boleto:h,upp_financeiro_cartao:g,upp_financeiro_conta_pagar:_,upp_financeiro_conta_receber:v,upp_financeiro_estorno:y,upp_financeiro_movimentacao:b,upp_financeiro_pix:x,upp_fintech_administrativo:S,upp_fiscal_buscador_notas:C,upp_fiscal_mdfe:w,upp_fiscal_nfce:T,upp_fiscal_nfe:E,upp_fiscal_nfse:D,upp_fiscal_regras:O,upp_idpk:r,upp_logistica:k,upp_logistica_conferencia:A,upp_logistica_separacao:j,upp_notificacao_notificacao:M,upp_relatorio_cadastro:N,upp_relatorio_compra:P,upp_relatorio_estoque:F,upp_relatorio_financeiro:I,upp_relatorio_fiscal:L,upp_relatorio_venda:R,upp_sistema_acesso:q,upp_sistema_personalizado:z,upp_usuario_tipo_idpk:i,upp_venda_atendimento:B,upp_venda_comissao:V,upp_venda_contrato:H,upp_venda_devolucao:U,upp_venda_romaneio:W,upp_venda_venda:G,upp_venda_venda_externa:K},J)}function d(t){var n=[],r=t;if(typeof r!=`object`||!r||Array.isArray(r))n.push(o(`object`,r,[]));else{var a=r.upp_cadastro_cliente;a!==0&&a!==1&&a!==2&&a!==3&&n.push(i([0,1,2,3],a,[`upp_cadastro_cliente`]));var s=r.upp_cadastro_fornecedor;s!==0&&s!==1&&s!==2&&s!==3&&n.push(i([0,1,2,3],s,[`upp_cadastro_fornecedor`]));var c=r.upp_cadastro_produto;c!==0&&c!==1&&c!==2&&c!==3&&n.push(i([0,1,2,3],c,[`upp_cadastro_produto`]));var l=r.upp_cadastro_transportadora;l!==0&&l!==1&&l!==2&&l!==3&&n.push(i([0,1,2,3],l,[`upp_cadastro_transportadora`]));var u=r.upp_cliente_condicao_pagamento;u!==0&&u!==1&&u!==2&&u!==3&&n.push(i([0,1,2,3],u,[`upp_cliente_condicao_pagamento`]));var d=r.upp_cliente_forma_pagamento;d!==0&&d!==1&&d!==2&&d!==3&&n.push(i([0,1,2,3],d,[`upp_cliente_forma_pagamento`]));var f=r.upp_compra_compra;f!==0&&f!==1&&f!==2&&f!==3&&n.push(i([0,1,2,3],f,[`upp_compra_compra`]));var p=r.upp_configuracao_configuracao;p!==0&&p!==1&&p!==2&&p!==3&&n.push(i([0,1,2,3],p,[`upp_configuracao_configuracao`]));var m=r.upp_empresa_idpk;typeof m==`number`?Number.isNaN(m)?n.push({expected:`number`,code:`invalid_type`,received:`NaN`,input:m,path:[`upp_empresa_idpk`]}):Number.isFinite(m)||n.push({expected:`number`,code:`invalid_type`,received:String(m),input:m,path:[`upp_empresa_idpk`]}):n.push(o(`number`,m,[`upp_empresa_idpk`]));var h=r.upp_estoque_estoque;h!==0&&h!==1&&h!==2&&h!==3&&n.push(i([0,1,2,3],h,[`upp_estoque_estoque`]));var g=r.upp_financeiro_boleto;g!==0&&g!==1&&g!==2&&g!==3&&n.push(i([0,1,2,3],g,[`upp_financeiro_boleto`]));var _=r.upp_financeiro_cartao;_!==0&&_!==1&&_!==2&&_!==3&&n.push(i([0,1,2,3],_,[`upp_financeiro_cartao`]));var v=r.upp_financeiro_conta_pagar;v!==0&&v!==1&&v!==2&&v!==3&&n.push(i([0,1,2,3],v,[`upp_financeiro_conta_pagar`]));var y=r.upp_financeiro_conta_receber;y!==0&&y!==1&&y!==2&&y!==3&&n.push(i([0,1,2,3],y,[`upp_financeiro_conta_receber`]));var b=r.upp_financeiro_estorno;b!==0&&b!==1&&b!==2&&b!==3&&n.push(i([0,1,2,3],b,[`upp_financeiro_estorno`]));var x=r.upp_financeiro_movimentacao;x!==0&&x!==1&&x!==2&&x!==3&&n.push(i([0,1,2,3],x,[`upp_financeiro_movimentacao`]));var S=r.upp_financeiro_pix;S!==0&&S!==1&&S!==2&&S!==3&&n.push(i([0,1,2,3],S,[`upp_financeiro_pix`]));var C=r.upp_fintech_administrativo;
1C!==0&&C!==1&&C!==2&&C!==3&&n.push(i([0,1,2,3],C,[`upp_fintech_administrativo`]));var w=r.upp_fiscal_buscador_notas;w!==0&&w!==1&&w!==2&&w!==3&&n.push(i([0,1,2,3],w,[`upp_fiscal_buscador_notas`]));var T=r.upp_fiscal_mdfe;T!==0&&T!==1&&T!==2&&T!==3&&n.push(i([0,1,2,3],T,[`upp_fiscal_mdfe`]));var E=r.upp_fiscal_nfce;E!==0&&E!==1&&E!==2&&E!==3&&n.push(i([0,1,2,3],E,[`upp_fiscal_nfce`]));var D=r.upp_fiscal_nfe;D!==0&&D!==1&&D!==2&&D!==3&&n.push(i([0,1,2,3],D,[`upp_fiscal_nfe`]));var O=r.upp_fiscal_nfse;O!==0&&O!==1&&O!==2&&O!==3&&n.push(i([0,1,2,3],O,[`upp_fiscal_nfse`]));var k=r.upp_fiscal_regras;k!==0&&k!==1&&k!==2&&k!==3&&n.push(i([0,1,2,3],k,[`upp_fiscal_regras`]));var A=r.upp_idpk;typeof A==`number`?Number.isNaN(A)?n.push({expected:`number`,code:`invalid_type`,received:`NaN`,input:A,path:[`upp_idpk`]}):Number.isFinite(A)||n.push({expected:`number`,code:`invalid_type`,received:String(A),input:A,path:[`upp_idpk`]}):n.push(o(`number`,A,[`upp_idpk`]));var j=r.upp_logistica;j!==0&&j!==1&&j!==2&&j!==3&&n.push(i([0,1,2,3],j,[`upp_logistica`]));var M=r.upp_logistica_conferencia;M!==0&&M!==1&&M!==2&&M!==3&&n.push(i([0,1,2,3],M,[`upp_logistica_conferencia`]));var N=r.upp_logistica_separacao;N!==0&&N!==1&&N!==2&&N!==3&&n.push(i([0,1,2,3],N,[`upp_logistica_separacao`]));var P=r.upp_notificacao_notificacao;P!==0&&P!==1&&P!==2&&P!==3&&n.push(i([0,1,2,3],P,[`upp_notificacao_notificacao`]));var F=r.upp_relatorio_cadastro;F!==0&&F!==1&&F!==2&&F!==3&&n.push(i([0,1,2,3],F,[`upp_relatorio_cadastro`]));var I=r.upp_relatorio_compra;I!==0&&I!==1&&I!==2&&I!==3&&n.push(i([0,1,2,3],I,[`upp_relatorio_compra`]));var L=r.upp_relatorio_estoque;L!==0&&L!==1&&L!==2&&L!==3&&n.push(i([0,1,2,3],L,[`upp_relatorio_estoque`]));var R=r.upp_relatorio_financeiro;R!==0&&R!==1&&R!==2&&R!==3&&n.push(i([0,1,2,3],R,[`upp_relatorio_financeiro`]));var z=r.upp_relatorio_fiscal;z!==0&&z!==1&&z!==2&&z!==3&&n.push(i([0,1,2,3],z,[`upp_relatorio_fiscal`]));var B=r.upp_relatorio_venda;B!==0&&B!==1&&B!==2&&B!==3&&n.push(i([0,1,2,3],B,[`upp_relatorio_venda`]));var V=r.upp_sistema_acesso;
1e.has(V)||n.push(i([0,1,2,77477,514871,517341123,7458751],V,[`upp_sistema_acesso`]));var H=r.upp_sistema_personalizado;H!==0&&H!==1&&H!==2&&H!==3&&n.push(i([0,1,2,3],H,[`upp_sistema_personalizado`]));var U=r.upp_usuario_tipo_idpk;typeof U==`number`?Number.isNaN(U)?n.push({expected:`number`,code:`invalid_type`,received:`NaN`,input:U,path:[`upp_usuario_tipo_idpk`]}):Number.isFinite(U)||n.push({expected:`number`,code:`invalid_type`,received:String(U),input:U,path:[`upp_usuario_tipo_idpk`]}):n.push(o(`number`,U,[`upp_usuario_tipo_idpk`]));var W=r.upp_venda_atendimento;W!==0&&W!==1&&W!==2&&W!==3&&n.push(i([0,1,2,3],W,[`upp_venda_atendimento`]));var G=r.upp_venda_comissao;G!==0&&G!==1&&G!==2&&G!==3&&n.push(i([0,1,2,3],G,[`upp_venda_comissao`]));var K=r.upp_venda_contrato;K!==0&&K!==1&&K!==2&&K!==3&&n.push(i([0,1,2,3],K,[`upp_venda_contrato`]));var q=r.upp_venda_devolucao;q!==0&&q!==1&&q!==2&&q!==3&&n.push(i([0,1,2,3],q,[`upp_venda_devolucao`]));var J=r.upp_venda_romaneio;J!==0&&J!==1&&J!==2&&J!==3&&n.push(i([0,1,2,3],J,[`upp_venda_romaneio`]));var Y=r.upp_venda_venda;Y!==0&&Y!==1&&Y!==2&&Y!==3&&n.push(i([0,1,2,3],Y,[`upp_venda_venda`]));var X=r.upp_venda_venda_externa;X!==0&&X!==1&&X!==2&&X!==3&&n.push(i([0,1,2,3],X,[`upp_venda_venda_externa`])),r={upp_cadastro_cliente:a,upp_cadastro_fornecedor:s,upp_cadastro_produto:c,upp_cadastro_transportadora:l,upp_cliente_condicao_pagamento:u,upp_cliente_forma_pagamento:d,upp_compra_compra:f,upp_configuracao_configuracao:p,upp_empresa_idpk:m,upp_estoque_estoque:h,upp_financeiro_boleto:g,upp_financeiro_cartao:_,upp_financeiro_conta_pagar:v,upp_financeiro_conta_receber:y,upp_financeiro_estorno:b,upp_financeiro_movimentacao:x,upp_financeiro_pix:S,upp_fintech_administrativo:C,upp_fiscal_buscador_notas:w,upp_fiscal_mdfe:T,upp_fiscal_nfce:E,upp_fiscal_nfe:D,upp_fiscal_nfse:O,upp_fiscal_regras:k,upp_idpk:A,upp_logistica:j,upp_logistica_conferencia:M,upp_logistica_separacao:N,upp_notificacao_notificacao:P,upp_relatorio_cadastro:F,upp_relatorio_compra:I,upp_relatorio_estoque:L,upp_relatorio_financeiro:R,upp_relatorio_fiscal:z,upp_relatorio_venda:B,upp_sistema_acesso:V,upp_sistema_personalizado:H,upp_usuario_tipo_idpk:U,upp_venda_atendimento:W,upp_venda_comissao:G,upp_venda_contrato:K,upp_venda_devolucao:q,upp_venda_romaneio:J,upp_venda_venda:Y,upp_venda_venda_externa:X}}return n}function f(e){var t=u(e);return t===l?a(d,e):{success:!0,data:t}}return s(f,r({upp_cadastro_cliente:n($),upp_cadastro_fornecedor:n($),upp_cadastro_produto:n($),upp_cadastro_transportadora:n($),upp_cliente_condicao_pagamento:n($),upp_cliente_forma_pagamento:n($),upp_compra_compra:n($),upp_configuracao_configuracao:n($),upp_empresa_idpk:t(),upp_estoque_estoque:n($),upp_financeiro_boleto:n($),upp_financeiro_cartao:n($),upp_financeiro_conta_pagar:n($),upp_financeiro_conta_receber:n($),upp_financeiro_estorno:n($),upp_financeiro_movimentacao:n($),upp_financeiro_pix:n($),upp_fintech_administrativo:n($),upp_fiscal_buscador_notas:n($),upp_fiscal_mdfe:n($),upp_fiscal_nfce:n($),upp_fiscal_nfe:n($),upp_fiscal_nfse:n($),upp_fiscal_regras:n($),upp_idpk:t(),upp_logistica:n($),upp_logistica_conferencia:n($),upp_logistica_separacao:n($),upp_notificacao_notificacao:n($),upp_relatorio_cadastro:n($),upp_relatorio_compra:n($),upp_relatorio_estoque:n($),upp_relatorio_financeiro:n($),upp_relatorio_fiscal:n($),upp_relatorio_venda:n($),upp_sistema_acesso:n(De),upp_sistema_personalizado:n($),upp_usuario_tipo_idpk:t(),upp_venda_atendimento:n($),upp_venda_comissao:n($),upp_venda_contrato:n($),upp_venda_devolucao:n($),upp_venda_romaneio:n($),upp_venda_venda:n($),upp_venda_venda_externa:n($)}),null,c)})();function ke(e){return e===$.Parcial||e===$.Completo}function Ae(e){return e===$.Completo}function je(e,t){return Object.keys(e).reduce((n,r)=>{let i=e[r],a=t?.[r];return n[r]=i===$.Completo?Ae(a):ke(a),n},{})}function Me(e){return Q()?.usuario_tipo_permissao?.[e]||$.Bloqueado}function Ne(){return Q()?.usuario_tipo_permissao||{}}function Pe(e,t){let n=Me(e);return t===$.Completo?Ae(n):ke(n)}export{z as A,F as B,Z as C,re as D,ne as E,f as F,h as H,k as I,C as L,b as M,m as N,U as O,A as P,g as R,me as S,ae as T,l as U,N as V,Se as _,je as a,xe as b,Oe as c,we as d,ve as f,Ce as g,Q as h,ke as i,R as j,B as k,Ee as l,_e as m,Ne as n,Pe as o,ge as p,Ae as r,$ as s,Me as t,Te as u,ye as v,le as w,he as x,be as y,w as z}; 2//# sourceMappingURL=1.26.67.0-2c7ca2d-permission.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.