1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8103],{38559:(t,e,i)=>{i.d(e,{$:()=>a,s:()=>o});var n=i(74268),s=i(69781),r=i(93049),o=class extends s.k{#t;#e;#i;#n;constructor(t){super(),this.#t=t.client,this.mutationId=t.mutationId,this.#i=t.mutationCache,this.#e=[],this.state=t.state||a(),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.#e.includes(t)||(this.#e.push(t),this.clearGcTimeout(),this.#i.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.#e=this.#e.filter(e=>e!==t),this.scheduleGc(),this.#i.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.#e.length||("pending"===this.state.status?this.scheduleGc():this.#i.remove(this))}continue(){return this.#n?.continue()??this.execute(this.state.variables)}async execute(t){let e=()=>{this.#s({type:"continue"})},i={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#n=(0,r.II)({fn:()=>this.options.mutationFn?this.options.mutationFn(t,i):Promise.reject(Error("No mutationFn found")),onFail:(t,e)=>{this.#s({type:"failed",failureCount:t,error:e})},onPause:()=>{this.#s({type:"pause"})},onContinue:e,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#i.canRun(this)});let n="pending"===this.state.status,s=!this.#n.canStart();try{if(n)e();else{this.#s({type:"pending",variables:t,isPaused:s}),this.#i.config.onMutate&&await this.#i.config.onMutate(t,this,i);let e=await this.options.onMutate?.(t,i);e!==this.state.context&&this.#s({type:"pending",context:e,variables:t,isPaused:s})}let r=await this.#n.start();return await this.#i.config.onSuccess?.(r,t,this.state.context,this,i),await this.options.onSuccess?.(r,t,this.state.context,i),await this.#i.config.onSettled?.(r,null,this.state.variables,this.state.context,this,i),await this.options.onSettled?.(r,null,t,this.state.context,i),this.#s({type:"success",data:r}),r}catch(e){try{await this.#i.config.onError?.(e,t,this.state.context,this,i)}catch(t){Promise.reject(t)}try{await this.options.onError?.(e,t,this.state.context,i)}catch(t){Promise.reject(t)}try{await this.#i.config.onSettled?.(void 0,e,this.state.variables,this.state.context,this,i)}catch(t){Promise.reject(t)}try{await this.options.onSettled?.(void 0,e,t,this.state.context,i)}catch(t){Promise.reject(t)}throw this.#s({type:"error",error:e}),e}finally{this.#i.runNext(this)}}#s(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),n.jG.batch(()=>{this.#e.forEach(e=>{e.onMutationUpdate(t)}),this.#i.notify({mutation:this,type:"updated",action:t})})}};function a(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}},47095:(t,e,i)=>{i.d(e,{vC:()=>w});var n=i(12115);function s(){return(s=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t}).apply(this,arguments)}i(95155);var r=["shift","alt","meta","mod","ctrl"],o={esc:"escape",return:"enter",".":"period",",":"comma","-":"slash"," ":"space","`":"backquote","#":"backslash","+":"bracketright",ShiftLeft:"shift",ShiftRight:"shift",AltLeft:"alt",AltRight:"alt",MetaLeft:"meta",MetaRight:"meta",OSLeft:"meta",OSRight:"meta",ControlLeft:"ctrl",ControlRight:"ctrl"};function a(t){return(o[t]||t).trim().toLowerCase().replace(/key|digit|numpad|arrow/,"")}function u(t,e){return void 0===e&&(e=","),t.split(e)}function c(t,e,i){void 0===e&&(e="+");var n=t.toLocaleLowerCase().split(e).map(function(t){return a(t)}),o={alt:n.includes("alt"),ctrl:n.includes("ctrl")||n.includes("control"),shift:n.includes("shift"),meta:n.includes("meta"),mod:n.includes("mod")},u=n.filter(function(t){return!r.includes(t)});return s({},o,{keys:u,description:i})}"undefined"!=typeof document&&(document.addEventListener("keydown",function(t){void 0!==t.key&&d([a(t.key),a(t.code)])}),document.addEventListener("keyup",function(t){void 0!==t.key&&f([a(t.key),a(t.code)])})),"undefined"!=typeof window&&window.addEventListener("blur",function(){l.clear()});var l=new Set;function h(t){return Array.isArray(t)}function d(t){var e=Array.isArray(t)?t:[t];l.has("meta")&&l.forEach(function(t){return!r.includes(t)&&l.delete(t.toLowerCase())}),e.forEach(function(t){return l.add(t.toLowerCase())})}function f(t){var e=Array.isArray(t)?t:[t];"meta"===t?l.clear():e.forEach(function(t){return l.delete(t.toLowerCase())})}function p(t,e){var i=t.target;void 0===e&&(e=!1);var n=i&&i.tagName;return h(e)?!!(n&&e&&e.some(function(t){return t.toLowerCase()===n.toLowerCase()})):!!(n&&e&&!0===e)}
1var v=function(t,e,i){void 0===i&&(i=!1);var n,s=e.alt,r=e.meta,o=e.mod,u=e.shift,c=e.ctrl,d=e.keys,f=t.key,p=t.code,v=t.ctrlKey,y=t.metaKey,m=t.shiftKey,b=t.altKey,C=a(p),w=f.toLowerCase();if(!(null!=d&&d.includes(C))&&!(null!=d&&d.includes(w))&&!["ctrl","control","unknown","meta","alt","shift","os"].includes(C))return!1;if(!i){if(!b===s&&"alt"!==w||!m===u&&"shift"!==w)return!1;if(o){if(!y&&!v)return!1}else if(!y===r&&"meta"!==w&&"os"!==w||!v===c&&"ctrl"!==w&&"control"!==w)return!1}return!!(d&&1===d.length&&(d.includes(w)||d.includes(C)))||(d?(void 0===n&&(n=","),(h(d)?d:d.split(n)).every(function(t){return l.has(t.trim().toLowerCase())})):!d||!1)},y=(0,n.createContext)(void 0),m=(0,n.createContext)({hotkeys:[],enabledScopes:[],toggleScope:function(){},enableScope:function(){},disableScope:function(){}}),b=function(t){t.stopPropagation(),t.preventDefault(),t.stopImmediatePropagation()},C="undefined"!=typeof window?n.useLayoutEffect:n.useEffect;function w(t,e,i,s){var r,o=(0,n.useRef)(null),l=(0,n.useRef)(!1),w=i instanceof Array?s instanceof Array?void 0:s:i,g=h(t)?t.join(null==w?void 0:w.splitKey):t,k=i instanceof Array?i:s instanceof Array?s:void 0,E=(0,n.useCallback)(e,null!=k?k:[]),O=(0,n.useRef)(E);k?O.current=E:O.current=e;var R=(!function t(e,i){return e&&i&&"object"==typeof e&&"object"==typeof i?Object.keys(e).length===Object.keys(i).length&&Object.keys(e).reduce(function(n,s){return n&&t(e[s],i[s])},!0):e===i}((r=(0,n.useRef)(void 0)).current,w)&&(r.current=w),r.current),M=(0,n.useContext)(m).enabledScopes,x=(0,n.useContext)(y);return C(function(){var t;if((null==R?void 0:R.enabled)!==!1&&(t=null==R?void 0:R.scopes,0===M.length&&t?(console.warn('A hotkey has the "scopes" option set, however no active scopes were found. If you want to use the global scopes feature, you need to wrap your app in a <HotkeysProvider>'),!0):!t||M.some(function(e){return t.includes(e)})||M.includes("*"))){var e=function(t,e){var i;if(void 0===e&&(e=!1),!p(t,["input","textarea","select"])||p(t,null==R?void 0:R.enableOnFormTags)){if(null!==o.current){var n=o.current.getRootNode();if((n instanceof Document||n instanceof ShadowRoot)&&n.activeElement!==o.current&&!o.current.contains(n.activeElement))return void b(t)}(null==(i=t.target)||!i.isContentEditable||null!=R&&R.enableOnContentEditable)&&u(g,null==R?void 0:R.splitKey).forEach(function(i){var n,s,r,o=c(i,null==R?void 0:R.combinationKey);if(v(t,o,null==R?void 0:R.ignoreModifiers)||null!=(r=o.keys)&&r.includes("*")){if(null!=R&&null!=R.ignoreEventWhen&&R.ignoreEventWhen(t)||e&&l.current)return;if(("function"==typeof(n=null==R?void 0:R.preventDefault)&&n(t,o)||!0===n)&&t.preventDefault(),"function"==typeof(s=null==R?void 0:R.enabled)?!s(t,o):!0!==s&&void 0!==s)return void b(t);O.current(t,o),e||(l.current=!0)}})}},i=function(t){void 0!==t.key&&(d(a(t.code)),((null==R?void 0:R.keydown)===void 0&&(null==R?void 0:R.keyup)!==!0||null!=R&&R.keydown)&&e(t))},n=function(t){void 0!==t.key&&(f(a(t.code)),l.current=!1,null!=R&&R.keyup&&e(t,!0))},s=o.current||(null==w?void 0:w.document)||document;return s.addEventListener("keyup",n),s.addEventListener("keydown",i),x&&u(g,null==R?void 0:R.splitKey).forEach(function(t){return x.addHotkey(c(t,null==R?void 0:R.combinationKey,null==R?void 0:R.description))}),function(){s.removeEventListener("keyup",n),s.removeEventListener("keydown",i),x&&u(g,null==R?void 0:R.splitKey).forEach(function(t){return x.removeHotkey(c(t,null==R?void 0:R.combinationKey,null==R?void 0:R.description))})}}},[g,R,M]),o}},80549:(t,e,i)=>{i.d(e,{useMutation:()=>l});var n=i(12115),s=i(38559),r=i(74268),o=i(38445),a=i(34049),u=class extends o.Q{#t;#r=void 0;#o;#a;constructor(t,e){super(),this.#t=t,this.setOptions(e),this.bindMethods(),this.#u()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){let e=this.options;this.options=this.#t.defaultMutationOptions(t),(0,a.f8)(this.options,e)||this.#t.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#o,observer:this}),e?.mutationKey&&this.options.mutationKey&&(0,a.EN)(e.mutationKey)!==(0,a.EN)(this.options.mutationKey)?this.reset():this.#o?.state.status==="pending"&&this.#o.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#o?.removeObserver(this)}onMutationUpdate(t){this.#u(),this.#c(t)}getCurrentResult(){return this.#r}reset(){this.#o?.removeObserver(this),this.#o=void 0,this.#u(),this.#c()}mutate(t,e){return this.#a=e,this.#o?.removeObserver(this),this.#o=this.#t.getMutationCache().build(this.#t,this.options),this.#o.addObserver(this),this.#o.execute(t)}#u(){let t=this.#o?.state??(0,s.$)();this.#r={...t,isPending:"pending"===t.status,isSuccess:"success"===t.status,isError:"error"===t.status,isIdle:"idle"===t.status,mutate:this.mutate,reset:this.reset}}#c(t){r.jG.batch(()=>
1{if(this.#a&&this.hasListeners()){let e=this.#r.variables,i=this.#r.context,n={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};if(t?.type==="success"){try{this.#a.onSuccess?.(t.data,e,i,n)}catch(t){Promise.reject(t)}try{this.#a.onSettled?.(t.data,null,e,i,n)}catch(t){Promise.reject(t)}}else if(t?.type==="error"){try{this.#a.onError?.(t.error,e,i,n)}catch(t){Promise.reject(t)}try{this.#a.onSettled?.(void 0,t.error,e,i,n)}catch(t){Promise.reject(t)}}}this.listeners.forEach(t=>{t(this.#r)})})}},c=i(99776);function l(t,e){let i=(0,c.useQueryClient)(e),[s]=n.useState(()=>new u(i,t));n.useEffect(()=>{s.setOptions(t)},[s,t]);let o=n.useSyncExternalStore(n.useCallback(t=>s.subscribe(r.jG.batchCalls(t)),[s]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),l=n.useCallback((t,e)=>{s.mutate(t,e).catch(a.lQ)},[s]);if(o.error&&(0,a.GU)(s.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:l,mutateAsync:o.mutate}}}}]);
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.