PageSourceSearch

https://chalk.ai/_next/static/chunks/1m0xycaakw8zn.js

js chalk.ai collected 2026-10-01 11:25:18 UTC 43,687 bytes, 3 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,57806,137895,e=>{"use strict";let t,n,r,i;var s=e.i(763716),o=e.i(9768),a=Object.create,u=Object.defineProperty,l=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,d=Object.getPrototypeOf,h=Object.prototype.hasOwnProperty,f=(t=(t,n)=>{var r,i;let s;r=t,i=function(e){var t,n=void 0===Number.MAX_SAFE_INTEGER?0x1fffffffffffff:Number.MAX_SAFE_INTEGER,r=new WeakMap,i=(t=function(e,t){return r.set(e,t),t},function(e){var i=r.get(e),s=void 0===i?e.size:i<0x40000000?i+1:0;if(!e.has(s))return t(e,s);if(e.size<0x20000000){for(;e.has(s);)s=Math.floor(0x40000000*Math.random());return t(e,s)}if(e.size>n)throw Error("Congratulations, you created a collection of unique numbers which uses all available integers!");for(;e.has(s);)s=Math.floor(Math.random()*n);return t(e,s)});e.addUniqueNumber=function(e){var t=i(e);return e.add(t),t},e.generateUniqueNumber=i},"object"==typeof t&&"u">typeof n?i(t):"function"==typeof define&&define.amd?void 0!==(s=i(exports))&&e.v(s):i((r="u">typeof globalThis?globalThis:r||self).fastUniqueNumbers={})},()=>(n||t((n={exports:{}}).exports,n),n.exports));o.Component;i=null!=(r=f())?a(d(r)):{},((e,t,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let r of c(t))h.call(e,r)||void 0===r||u(e,r,{get:()=>t[r],enumerable:!(n=l(t,r))||n.enumerable});return})(r&&r.__esModule?i:u(i,"default",{value:r,enumerable:!0}),r);var p=(typeof window>"u"?"undefined":typeof window)=="object",m={setTimeout:p?setTimeout.bind(window):setTimeout,clearTimeout:p?clearTimeout.bind(window):clearTimeout,setInterval:p?setInterval.bind(window):setInterval,clearInterval:p?clearInterval.bind(window):clearInterval},v={},b=class{name;closed=!1;mc=new MessageChannel;constructor(e){this.name=e,v[e]=v[e]||[],v[e].push(this),this.mc.port1.start(),this.mc.port2.start(),this.onStorage=this.onStorage.bind(this),window.addEventListener("storage",this.onStorage)}onStorage(e){if(e.storageArea!==window.localStorage||e.key.substring(0,this.name.length)!==this.name||null===e.newValue)return;let t=JSON.parse(e.newValue);this.mc.port2.postMessage(t)}postMessage(e){if(this.closed)throw Error("InvalidStateError");let t=JSON.stringify(e),n=`${this.name}:${String(Date.now())}${String(Math.random())}`;window.localStorage.setItem(n,t),m.setTimeout(()=>{window.localStorage.removeItem(n)},500),v[this.name].forEach(e=>{e!==this&&e.mc.port2.postMessage(JSON.parse(t))})}close(){if(this.closed)return;this.closed=!0,this.mc.port1.close(),this.mc.port2.close(),window.removeEventListener("storage",this.onStorage);let e=v[this.name].indexOf(this);v[this.name].splice(e,1)}get onmessage(){return this.mc.port1.onmessage}set onmessage(e){this.mc.port1.onmessage=e}get onmessageerror(){return this.mc.port1.onmessageerror}set onmessageerror(e){this.mc.port1.onmessageerror=e}addEventListener(e,t){return this.mc.port1.addEventListener(e,t)}removeEventListener(e,t){return this.mc.port1.removeEventListener(e,t)}dispatchEvent(e){return this.mc.port1.dispatchEvent(e)}},g=typeof window>"u"?void 0:"function"==typeof window.BroadcastChannel?window.BroadcastChannel:b;function x(){return Math.random().toString(36).substring(2)}var y=class{options;channel;token=x();isLeader=!1;isDead=!1;isApplying=!1;reApply=!1;intervals=[];listeners=[];deferred;constructor(e,t){this.channel=e,this.options=t,this.apply=this.apply.bind(this),this.awaitLeadership=this.awaitLeadership.bind(this),this.sendAction=this.sendAction.bind(this)}async apply(){if(this.isLeader||this.isDead)return!1;if(this.isApplying)return this.reApply=!0,!1;this.isApplying=!0;let e=!1,t=t=>{let{token:n,action:r}=t.data;n!==this.token&&(0===r&&n>this.token&&(e=!0),1===r&&(e=!0))};this.channel.addEventListener("message",t);try{return this.sendAction(0),await function(e=0){return new Promise(t=>m.setTimeout(t,e))}(this.options.responseTime),this.channel.removeEventListener("message",t),this.isApplying=!1,e?!!this.reApply&&this.apply():(this.assumeLead(),!0)}catch{return!1}}awaitLeadership(){if(this.isLeader)return Promise.resolve();let e=!1,t=null;return new Promise(n=>{let r=()=>{if(e)return;e=!0;try{m.clearInterval(t)}catch{}let r=this.intervals.indexOf(t);r>=0&&this.intervals.splice(r,1),this.channel.removeEventListener("message",i),n()};t=m.setInterval(()=>{this.apply().then(()=>{this.isLeader&&r()})},this.options.fallbackInterval),this.intervals.push(t);let i=e=>{let{action:t}=e.data;2===t&&this.apply().then(()=>{this.isLeader&&r()})};this.channel.addEventListener("message",i)})}sendAction(e){this.channel.postMessage({action:e,token:this.token})}assumeLead(){this.isLeader=!0;let e=e=>{let{action:t}=e.data;0===t&&this.sendAction(1)};return this.channel.addEventListener("message",e),this.listeners.push(e),this.sendAction(1)}waitForLeadership(){return this.deferred||(this.deferred=this.awaitLeadership()),this.deferred}close(){if(!this.isDead){this.isDead=!0,this.isLeader=!1,this.sendAction(2);
1try{this.listeners.forEach(e=>this.channel.removeEventListener("message",e)),this.intervals.forEach(e=>m.clearInterval(e))}catch{}}}},w=class{channel;options;elector;token=x();registry=new Map;allIdle=!1;isLastActive=!1;constructor(e){let{channelName:t}=e;this.options=e,this.channel=new g(t),this.registry.set(this.token,1),e.leaderElection&&(this.elector=new y(this.channel,{fallbackInterval:2e3,responseTime:100}),this.elector.waitForLeadership()),this.channel.addEventListener("message",e=>{let{action:t,token:n,data:r}=e.data;switch(t){case 3:this.registry.set(n,2);break;case 4:this.registry.delete(n);break;case 5:this.idle(n);break;case 6:this.active(n);break;case 7:this.prompt(n);break;case 8:this.start(n);break;case 9:this.reset(n);break;case 10:this.activate(n);break;case 11:this.pause(n);break;case 12:this.resume(n);break;case 13:this.options.onMessage(r)}}),this.send(3)}get isLeader(){if(!this.elector)throw Error('❌ Leader election is not enabled. To Enable it set the "leaderElection" property to true.');return this.elector.isLeader}prompt(e=this.token){this.registry.set(e,0);let t=[...this.registry.values()].every(e=>0===e);e===this.token&&this.send(7),t&&this.options.onPrompt()}idle(e=this.token){this.registry.set(e,2);let t=[...this.registry.values()].every(e=>2===e);e===this.token&&this.send(5),!this.allIdle&&t&&(this.allIdle=!0,this.options.onIdle())}active(e=this.token){this.allIdle=!1,this.registry.set(e,1);let t=[...this.registry.values()].some(e=>1===e);e===this.token&&this.send(6),t&&this.options.onActive(),this.isLastActive=e===this.token}start(e=this.token){this.allIdle=!1,this.registry.set(e,1),e===this.token?this.send(8):this.options.start(!0),this.isLastActive=e===this.token}reset(e=this.token){this.allIdle=!1,this.registry.set(e,1),e===this.token?this.send(9):this.options.reset(!0),this.isLastActive=e===this.token}activate(e=this.token){this.allIdle=!1,this.registry.set(e,1),e===this.token?this.send(10):this.options.activate(!0),this.isLastActive=e===this.token}pause(e=this.token){e===this.token?this.send(11):this.options.pause(!0)}resume(e=this.token){e===this.token?this.send(12):this.options.resume(!0)}message(e){try{this.channel.postMessage({action:13,token:this.token,data:e})}catch{}}send(e){try{this.channel.postMessage({action:e,token:this.token})}catch{}}close(){this.options.leaderElection&&this.elector.close(),this.send(4),this.channel.close()}},E=p?document:null,C=["mousemove","keydown","wheel","DOMMouseScroll","mousewheel","mousedown","touchstart","touchmove","MSPointerDown","MSPointerMove","visibilitychange","focus"];function M(e,t){let n=0;return function(...r){let i=new Date().getTime();if(!(i-n<t))return n=i,e(...r)}}function A({timeout:e=12e5,promptTimeout:t=0,promptBeforeIdle:n=0,element:r=E,events:i=C,timers:s,immediateEvents:a=[],onPresenceChange:u=()=>{},onPrompt:l=()=>{},onIdle:c=()=>{},onActive:d=()=>{},onAction:h=()=>{},onMessage:f=()=>{},debounce:v=0,throttle:b=0,eventsThrottle:g=200,startOnMount:x=!0,startManually:y=!1,stopOnIdle:I=!1,crossTab:k=!1,name:S="idle-timer",syncTimers:T=0,leaderElection:R=!1,disabled:N=!1}={}){let O=(0,o.useRef)(Date.now()),D=(0,o.useRef)(Date.now()),V=(0,o.useRef)(null),L=(0,o.useRef)(null),j=(0,o.useRef)(0),B=(0,o.useRef)(0),G=(0,o.useRef)(0),Z=(0,o.useRef)(0),F=(0,o.useRef)(!1),P=(0,o.useRef)(!1),X=(0,o.useRef)(!1),J=(0,o.useRef)(!0),z=(0,o.useRef)(!1),Y=(0,o.useRef)(null),W=(0,o.useRef)(null),K=(0,o.useRef)(e),H=(0,o.useRef)(0);(0,o.useEffect)(()=>{if(t&&console.warn("⚠️ IdleTimer -- The `promptTimeout` property has been deprecated in favor of `promptBeforeIdle`. It will be removed in the next major release."),n&&t)throw Error("❌ Both promptTimeout and promptBeforeIdle can not be set. The promptTimeout property will be deprecated 
1in a future version.");if(e>=0x7fffffff)throw Error("❌ The value for the timeout property must fit in a 32 bit signed integer, 2147483647.");if(t>=0x7fffffff)throw Error("❌ The value for the promptTimeout property must fit in a 32 bit signed integer, 2147483647.");if(n>=0x7fffffff)throw Error("❌ The value for the promptBeforeIdle property must fit in a 32 bit signed integer, 2147483647.");if(n>=e)throw Error(`\u274C The value for the promptBeforeIdle property must be less than the timeout property, ${e}.`);if(n?(K.current=e-n,H.current=n):(K.current=e,H.current=t),!J.current){if(y||N)return;F.current&&(er.current(null,eG),W.current&&W.current.active()),eg()}},[e,t,n,y,N]);let U=(0,o.useRef)(I);(0,o.useEffect)(()=>{U.current=I},[I]);let Q=(0,o.useRef)(a),_=(0,o.useRef)(r),q=(0,o.useRef)([...new Set([...i,...a]).values()]),$=(0,o.useRef)(N);(0,o.useEffect)(()=>{$.current=N,!J.current&&(N?ew():y||eg())},[N]);let ee=(0,o.useRef)(u);(0,o.useEffect)(()=>{ee.current=u},[u]);let et=(0,o.useRef)(l);(0,o.useEffect)(()=>{et.current=l},[l]);let en=(0,o.useRef)(c);(0,o.useEffect)(()=>{en.current=c},[c]);let er=(0,o.useRef)(d);(0,o.useEffect)(()=>{er.current=d},[d]);let ei=(0,o.useRef)(h);(0,o.useEffect)(()=>{ei.current=h},[h]);let es=(0,o.useRef)(f);(0,o.useEffect)(()=>{es.current=f},[f]);let eo=(0,o.useMemo)(()=>{let e=(e,t)=>ei.current(e,t);return v>0?function(e,t){let n;function r(...i){n&&clearTimeout(n),n=setTimeout(()=>{e(...i),n=null},t)}return r.cancel=function(){clearTimeout(n)},r}(e,v):b>0?M(e,b):e},[b,v]),ea=(0,o.useRef)();(0,o.useEffect)(()=>{k&&T&&(ea.current=M(()=>{W.current.active()},T))},[k,T]);let eu=()=>{null!==Y.current&&(m.clearTimeout(Y.current),Y.current=null)},el=(e,t=!0)=>{eu(),Y.current=m.setTimeout(ef,e||K.current),t&&(L.current=Date.now())},ec=e=>{P.current||F.current||(et.current(e,eG),ee.current({type:"active",prompted:!0},eG)),Z.current=0,G.current=Date.now(),P.current=!0,el(H.current,!1)},ed=()=>{eu(),F.current||(en.current(null,eG),ee.current({type:"idle"},eG)),F.current=!0,V.current=Date.now(),U.current?eb():P.current&&(G.current=0,P.current=!1)},eh=e=>{eu(),(F.current||P.current)&&(er.current(e,eG),ee.current({type:"active",prompted:!1},eG)),P.current=!1,G.current=0,F.current=!1,j.current+=Date.now()-V.current,B.current+=Date.now()-V.current,ev(),el()},ef=e=>{if(!F.current){eo.cancel&&eo.cancel();let t=Date.now()-L.current;return K.current+H.current<t||!(H.current>0)||P.current?void(W.current?W.current.idle():ed()):void(W.current?W.current.prompt():ec(e))}W.current?W.current.active():eh(e)},ep=e=>{if(x||L.current||(L.current=Date.now(),er.current(null,eG)),eo(e,eG),P.current)return;if(eu(),!F.current&&Q.current.includes(e.type))return void ef(e);let t=Date.now()-L.current;F.current&&!I||!F.current&&t>=K.current?ef(e):(X.current=!1,Z.current=0,G.current=0,el(),k&&T&&ea.current())},em=(0,o.useRef)(ep);(0,o.useEffect)(()=>{let e=z.current;e&&eb(),g>0?em.current=M(ep,g):em.current=ep,e&&ev()},[g,b,v,ei,k,T]);let ev=()=>{p&&_.current&&(z.current||(q.current.forEach(e=>{_.current.addEventListener(e,em.current,{capture:!0,passive:!0})}),z.current=!0))},eb=(e=!1)=>{p&&_.current&&(z.current||e)&&(q.current.forEach(e=>{_.current.removeEventListener(e,em.current,{capture:!0})}),z.current=!1)},eg=(0,o.useCallback)(e=>!$.current&&(eu(),ev(),F.current=!1,P.current=!1,X.current=!1,Z.current=0,G.current=0,W.current&&!e&&W.current.start(),el(),!0),[Y,F,$,K,W]),ex=(0,o.useCallback)(e=>!$.current&&(eu(),ev(),D.current=Date.now(),j.current+=Date.now()-V.current,B.current+=Date.now()-V.current,j.current=0,F.current=!1,P.current=!1,X.current=!1,Z.current=0,G.current=0,W.current&&!e&&W.current.reset(),y||el(),!0),[Y,F,K,y,$,W]),ey=(0,o.useCallback)(e=>!$.current&&(eu(),ev(),(F.current||P.current)&&eh(),F.current=!1,P.current=!1,X.current=!1,Z.current=0,G.current=0,D.current=Date.now(),W.current&&!e&&W.current.activate(),el(),!0),[Y,F,P,$,K,W]),ew=(0,o.useCallback)((e=!1)=>!$.current&&!X.current&&(Z.current=eT(),X.current=!0,eb(),eu(),W.current&&!e&&W.current.pause(),!0),[Y,$,W]),eE=(0,o.useCallback)((e=!1)=>!$.current&&!!X.current&&(X.current=!1,P.current||ev(),F.current||el(Z.current),G.current&&(G.current=Date.now()),W.current&&!e&&W.current.resume(),!0),[Y,K,$,Z,W]),eC=(0,o.useCallback)((e,t)=>(W.current?(t&&es.current(e,eG),W.current.message(e)):t&&es.current(e,eG),!0),[f]),eM=(0,o.useCallback)(()=>F.current,[F]),eA=(0,o.useCallback)(()=>P.current,[P]),eI=(0,o.useCallback)(()=>W.current?W.current.isLeader:null,[W]),ek=(0,o.useCallback)(()=>W.current?W.current.isLastActive:null,[W]),eS=(0,o.useCallback)(()=>W.current?W.current.token:null,[W]),eT=(0,o.useCallback)(()=>
1{if(X.current)return Z.current;let e=Math.floor((Z.current?Z.current:H.current+K.current)-(L.current?Date.now()-L.current:0));return e<0?0:Math.abs(e)},[K,H,P,Z,L]),eR=(0,o.useCallback)(()=>Math.round(Date.now()-D.current),[D]),eN=(0,o.useCallback)(()=>Math.round(Date.now()-O.current),[O]),eO=(0,o.useCallback)(()=>V.current?new Date(V.current):null,[V]),eD=(0,o.useCallback)(()=>L.current?new Date(L.current):null,[L]),eV=(0,o.useCallback)(()=>F.current?Math.round(Date.now()-V.current+j.current):Math.round(j.current),[V,j]),eL=(0,o.useCallback)(()=>F.current?Math.round(Date.now()-V.current+B.current):Math.round(B.current),[V,B]),ej=(0,o.useCallback)(()=>{let e=Math.round(eR()-eV());return e>=0?e:0},[V,j]),eB=(0,o.useCallback)(()=>{let e=Math.round(eN()-eL());return e>=0?e:0},[V,j]);(0,o.useEffect)(()=>{if(v>0&&b>0)throw Error("❌ onAction can either be throttled or debounced, not both.");s&&(m.setTimeout=s.setTimeout,m.clearTimeout=s.clearTimeout,m.setInterval=s.setInterval,m.clearInterval=s.clearInterval);let e=()=>{W.current&&W.current.close(),eo.cancel&&eo.cancel(),eu(),eb(!0)};return p&&window.addEventListener("beforeunload",e),()=>{p&&window.removeEventListener("beforeunload",e),W.current&&W.current.close(),eo.cancel&&eo.cancel(),eu(),eb(!0)}},[]),(0,o.useEffect)(()=>{W.current&&W.current.close(),k?W.current=new w({channelName:S,leaderElection:R,onPrompt:()=>{ec()},onIdle:()=>{ed()},onActive:()=>{eh()},onMessage:e=>{es.current(e,eG)},start:eg,reset:ex,activate:ey,pause:ew,resume:eE}):W.current=null},[k,S,R,et,en,er,es,eg,ex,ew,eE]),(0,o.useEffect)(()=>{J.current||(eu(),eb(!0)),y||N||(x?eg():ev())},[y,x,N,J]),(0,o.useEffect)(()=>{if(!J.current){let e=[...new Set([...i,...a]).values()];eb(),q.current=e,_.current=r,Q.current=a,y||N||(x?eg():ev())}},[r,JSON.stringify(i),JSON.stringify(a),J,N,y,x]),(0,o.useEffect)(()=>{J.current&&(J.current=!1)},[J]);let eG={message:eC,start:eg,reset:ex,activate:ey,pause:ew,resume:eE,isIdle:eM,isPrompted:eA,isLeader:eI,isLastActiveTab:ek,getTabId:eS,getRemainingTime:eT,getElapsedTime:eR,getTotalElapsedTime:eN,getLastIdleTime:eO,getLastActiveTime:eD,getIdleTime:eV,getTotalIdleTime:eL,getActiveTime:ej,getTotalActiveTime:eB,setOnPresenceChange:e=>{u=e,ee.current=e},setOnPrompt:e=>{l=e,et.current=e},setOnIdle:e=>{c=e,en.current=e},setOnActive:e=>{d=e,er.current=e},setOnAction:e=>{h=e,ei.current=e},setOnMessage:e=>{f=e,es.current=e}};return eG}(0,o.createContext)(null).Consumer,e.s(["useIdleTimer",0,A],137895);let I=(0,o.createContext)(null),k=(0,o.createContext)(null);function S(e){let[t,n]=(0,o.useState)(()=>"u"<typeof document||"visible"===document.visibilityState),r=(0,o.useCallback)(()=>{n("visible"===document.visibilityState)},[]);return(0,o.useEffect)(()=>{if(e)return r(),document.addEventListener("visibilitychange",r),()=>{document.removeEventListener("visibilitychange",r)}},[e,r]),t}function T(){let e=(0,o.useContext)(I),t=S(null==e);return e??t}function R(e){let[t,n]=(0,o.useState)(()=>"u"<typeof document||document.hasFocus());return(0,o.useEffect)(()=>{if(!e)return;n(document.hasFocus());let t=setInterval(()=>{n(document.hasFocus())},1e3);return()=>clearInterval(t)},[e]),t}function N(e){let t=(0,o.useContext)(k),n=R(e&&null==t);return t??n}let O=(0,o.createContext)(!1);e.s(["GLOBAL_IDLE_TIMEOUT",0,6e4,"GlobalIdleContext",0,O,"GlobalIdleWrapper",0,({children:e})=>{let t,n,[r,i]=(0,o.useState)(!1),{tabIsActive:a,documentHasFocus:u}=(n=R(t=S(!0)),(0,o.useMemo)(()=>({tabIsActive:t,documentHasFocus:n}),[t,n])),l=a&&u;return A({timeout:6e4,onIdle:()=>i(!0),onActive:()=>i(!1),eventsThrottle:500}),(0,s.jsx)(I.Provider,{value:a,children:(0,s.jsx)(k.Provider,{value:u,children:(0,s.jsx)(O.Provider,{value:r||!l,children:e})})})},"useDocumentHasFocus",0,N,"useTabActive",0,T,"useTabActiveAndFocused",0,function(e,t=60){let n=T(),r=N(n),i=n&&r,s=(0,o.useRef)(null),a=(0,o.useRef)(i);return(0,o.useEffect)(()=>{if(i){if(!a.current){let n=s.current;s.current=null,null!=e&&null!=n&&(Date.now()-n)/1e3>t&&e()}}else a.current&&(s.current=Date.now());a.current=i},[i,e,t]),i}],57806)},262050,e=>{"use strict";var t=e.i(57806),n=e.i(9768);e.i(137895),e.s(["useIdle",0,function({onExitIdle:e,onEnterIdle:r}={}){let i=(0,n.useContext)(t.GlobalIdleContext);return(0,n.useEffect)(()=>{i?r?.():e?.()},[i,r,e]),i}])},590986,e=>{"use strict";let t;var n=e.i(200169),r=((t=r||{})[t.None=1]="None",t[t.Focusable=2]="Focusable",t[t.Hidden=4]="Hidden",t);let i=(0,n.forwardRefWithAs)(function(e,t){var r;let{features:i=1,...s}=e,o={ref:t,"aria-hidden":(2&i)==2||(null!=(r=s["aria-hidden"])?r:void 0),hidden:(4&i)==4||void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(4&i)==4&&(2&i)!=2&&{display:"none"}}};return(0,n.useRender)()({ourProps:o,theirProps:s,slot:{},defaultTag:"span",name:"Hidden"})});e.s(["Hidden",0,i,"HiddenFeatures",0,r])},771005,e=>{"use strict";let t="chalk:dropdown-menu-open";e.s(["announceDropdownMenuOpen",0,e=>{document.dispatchEvent(new CustomEvent(t,{detail:{id:e}}))},"subscribeToOtherDropdownMenuOpen",0,(e,n)=>{let r=t=>{t instanceof CustomEvent&&t.detail.id!==e&&n()};return document.addEventListener(t,r),()=>document.removeEventListener(t,r)}])},493748,e=>{"use strict";var t=e.i(796665),n=e.i(961142),r=e.i(313201),i=e.i(9768);let s=4;e.s(["MENU_TRIGGER_GAP",0,s,"MENU_VIEWPORT_MARGIN",0,12,"useDropdownFloatingV2",0,({open:e,offset:o=s,maxHeight:a,...u})=>{let[l,c]=(0,i.useState)(void 0),[d,h]=(0,i.useState)(void 0),[f,p]=(0,i.useState)(void 0),{refs:m,floatingStyles:v}=(0,r.useFloating)({open:e,middleware:[(0,n.offset)(o),(0,n.flip)({padding:12}),(0,n.shift)({padding:12}),(0,n.size)({padding:12,apply({availableHeight:e,availableWidth:t,rects:n}
1){c(Math.max(0,e)),h(Math.max(0,t)),p(n.reference.width)}})],whileElementsMounted:e?t.autoUpdate:void 0,...u});return{refs:m,floatingStyles:v,menuMaxHeight:null==l?a:null==a?l:Math.min(a,l),menuMaxWidth:d,triggerWidth:f}}])},601386,e=>{"use strict";var t=e.i(763716),n=e.i(94704),r=e.i(398104);e.s(["LoadingDots",0,function({size:e="sm",color:i="bg-white",className:s,...o}){let a={xxs:"w-1 h-1",xs:"w-1 h-1",sm:"w-1.5 h-1.5",md:"w-2 h-2",lg:"w-2 h-2",xl:"w-2.5 h-2.5","2xl":"h-[14px] w-[14px]","3xl":"w-6 h-6"}[e];return(0,t.jsx)("span",{className:(0,n.classNames)("inline-flex",{xxs:"gap-1",xs:"gap-1",sm:"gap-1.5",md:"gap-1.5",lg:"gap-1.5",xl:"gap-2","2xl":"gap-2.5","3xl":"gap-2.5"}[e],s),...o,children:(0,r.default)(3).map(e=>(0,t.jsx)("span",{className:(0,n.classNames)("rounded-full",["animate-dot-1","animate-dot-2","animate-dot-3"][e],i,a)},e))})}])},285244,e=>{"use strict";var t=e.i(763716),n=e.i(601386),r=e.i(9768),i=e.i(94704),s=e.i(530447),o=e.i(247392),a=e.i(329609);let u={full:"button-full",flat:"button-flat",outline:"button-outline",text:"button-text"},l={full:"button-full-disabled",flat:"button-flat-disabled",outline:"button-outline-disabled",text:"button-text-disabled"},c={xxs:"px-2.5 py-1 text-xxs font-medium",xs:"px-2.5 py-1 text-xs font-medium",sm:"px-3 py-1.5 text-xs font-medium",md:"px-cds-10 py-1.5 text-cds-sm font-medium",lg:"px-6 py-2 text-base font-medium",xl:"px-6 py-2 text-cds-lg font-medium"},d={primary:"button-primary",secondary:"button-secondary",danger:"button-danger","danger-subdued":"focus:ring-cds-bright-green-400",warning:"button-warning",white:"button-white","accent-lime":"button-accent-lime"},h={primary:{full:"button-primary-full",flat:"button-primary-flat",outline:"button-primary-outline",text:"button-primary-text"},"accent-lime":{full:"button-secondary-lime-full",flat:"button-secondary-lime-flat",outline:"button-secondary-lime-outline",text:"button-secondary-lime-text"},secondary:{full:"button-secondary-full",flat:"button-secondary-flat",outline:"button-secondary-outline",text:"border-0 text-zinc-600 hover:text-zinc-700 active:text-zinc-800 hover:bg-zinc-600/5 active:bg-zinc-600/10"},danger:{full:"button-danger-full",flat:"button-danger-flat",outline:"button-danger-outline",text:"button-danger-text"},"danger-subdued":{full:"border-zinc-300 text-zinc-700 fill-zinc-500 bg-white hover:bg-red-700 focus:bg-red-700 active:bg-red-800 focus:text-white focus:fill-white hover:text-white hover:fill-white active:fill-white active:text-white hover:border-red-800",flat:"border-zinc-300 text-zinc-700 fill-zinc-500 bg-white hover:bg-red-700 focus:bg-red-700 active:bg-red-800 focus:text-white focus:fill-white hover:text-white hover:fill-white active:fill-white active:text-white hover:border-red-800",outline:"border-zinc-300 text-zinc-600 fill-zinc-600 focus:text-red-700 focus:border-red-300 focus:fill-red-600 hover:text-red-700 hover:border-red-300 hover:fill-red-600 active:text-red-800 active:bg-red-600/10 hover:border-red-700 active:border-red-800",text:"text-zinc-600 focus:text-red-700 focus:fill-red-700 focus:bg-red-600/5 hover:text-red-700 hover:fill-red-700  hover:bg-red-600/5 active:text-red-800 active:bg-red-600/10"},warning:{full:"button-warning-full",flat:"button-warning-flat",outline:"button-warning-outline",text:"button-warning-text"},white:{full:"button-white-full",flat:"button-white-flat",outline:"button-white-outline",text:"button-white-text"}},f={primary:{full:"button-primary-full-loading",flat:"button-primary-flat-loading",outline:"button-primary-outline-loading",text:"button-primary-text-loading"},"accent-lime":{full:"button-secondary-lime-full-loading",flat:"button-secondary-lime-flat-loading",outline:"button-secondary-lime-outline-loading",text:"button-secondary-lime-text-loading"},secondary:{full:"button-secondary-full-loading",flat:"button-secondary-flat-loading",outline:"button-secondary-outline-loading",text:"button-secondary-text-loading"},danger:{full:"button-danger-full-loading",flat:"button-danger-flat-loading",outline:"button-danger-outline-loading",text:"button-danger-text-loading"},"danger-subdued":{full:"shadow-inner-md bg-red-800",flat:"shadow-inner bg-red-800",outline:"button-danger-outline-loading",text:"button-danger-text-loading"},warning:{full:"button-warning-full-loading",flat:"button-warning-flat-loading",outline:"button-warning-outline-loading",text:"button-warning-text-loading"},white:{full:"button-white-full-loading",flat:"button-white-flat-loading",outline:"button-white-outline-loading",text:"button-white-text-loading"}},p=(0,r.forwardRef)(function({type:e="button",children:o,className:a,disabled:p,block:m,color:v="secondary",kind:b="full",loading:g,hideFocus:x,size:y="sm",onClick:w,...E},C){let[M,A]=(0,r.useState)(!1),I=(0,r.useCallback)((...e)=>{let t=w?.(...e);"object"==typeof t&&(0,s.isDefined)(t)&&"then"in t&&"function"==typeof t&&(A(!0),Promise.resolve(t).finally(()=>A(!1)))},[w]),k=g||M;return(0,t.jsxs)("button",{ref:C,className:(0,i.classNames)("button",!x&&"button-focusable",c[y],u[b],d[v],h[v][b],m?"flex":"inl
1ine-flex",k&&"button-loading",k&&f[v][b],p&&l[b],a),disabled:p||k,...E,onClick:I,type:e,children:[o,k&&(0,t.jsx)("span",{className:(0,i.classNames)("absolute inset-0 flex justify-center items-center"),children:(0,t.jsx)(n.LoadingDots,{size:y})})]})}),m=(0,r.forwardRef)(function({children:e,className:n,block:r,color:s="secondary",kind:l="full",hideFocus:f,size:p="sm",onClick:m,target:v,noIcon:b,...g},x){return(0,t.jsxs)(o.default,{ref:x,className:(0,i.classNames)("button",!f&&"button-focusable",c[p],u[l],d[s],h[s][l],r?"flex":"inline-flex",n),target:v,...g,children:[e,!b&&(0,t.jsx)(a.Icon,{name:"_blank"===v?"arrowExternal":"arrowRight",size:p})]})}),v=(0,r.forwardRef)(function({children:e,className:r,disabled:s,block:o,color:a="secondary",kind:p="full",loading:m,hideFocus:v,size:b="sm",...g},x){return(0,t.jsxs)("div",{ref:x,className:(0,i.classNames)("button",!v&&"button-focusable",c[b],u[p],d[a],h[a][p],o?"flex":"inline-flex",m&&"button-loading",m&&f[a][p],s&&l[p],r),...g,children:[e,m&&(0,t.jsx)("span",{className:(0,i.classNames)("absolute inset-0 flex justify-center items-center"),children:(0,t.jsx)(n.LoadingDots,{size:b})})]})});e.s(["Button",0,p,"ButtonColors",0,["primary","secondary","danger","danger-subdued","warning","white","accent-lime"],"ButtonKinds",0,["full","flat","outline","text"],"ButtonSizes",0,["xxs","xs","sm","md","lg","xl"],"DivButton",0,v,"LinkButton",0,m])},69200,e=>{"use strict";var t=e.i(763716),n=e.i(9768),r=e.i(329609),i=e.i(285244),s=e.i(645096),o=e.i(931803),a=e.i(279663),u=e.i(123303),l=e.i(29177),c=e.i(771005),d=e.i(493748),h=e.i(780742),f=e.i(513520),p=e.i(94704),m=e.i(313201),v=e.i(556120);let b=(e,t,n)=>{if(null==e)return!1;if(t.target instanceof Node&&e.contains(t.target))return!0;let r=e.getBoundingClientRect();return t.clientX>=r.left-n&&t.clientX<=r.right+n&&t.clientY>=r.top-n&&t.clientY<=r.bottom+n},g=n.default.createContext(null),x=({children:e,open:x,close:w,trigger:E,buttonIcon:C="more",buttonIconPlacement:M,buttonClassName:A,buttonChrome:I="icon",buttonButtonVariant:k="secondary",buttonDisabled:S,buttonAriaLabel:T,buttonLabel:R="Tools",buttonSize:N,buttonText:O,buttonTooltip:D=R,buttonVariant:V,className:L,closeOnMouseLeave:j=!0,menuClassName:B,width:G=196,floatOptions:Z=h.EMPTY_OBJECT})=>{let F=(0,n.useId)(),P=(0,n.useMemo)(()=>y(e),[e]),X=(0,n.useContext)(g),J="3xs"===N||"2xs"===N?"xs":N??"sm",{refs:z,floatingStyles:Y,menuMaxHeight:W}=(0,d.useDropdownFloatingV2)({open:x,strategy:"absolute",...Z});(0,n.useEffect)(()=>{if(x)return X?.setMenuOpen(!0),()=>X?.setMenuOpen(!1)},[x,X]),(0,n.useEffect)(()=>(0,c.subscribeToOtherDropdownMenuOpen)(F,w),[w,F]),(0,n.useEffect)(()=>{x&&(0,c.announceDropdownMenuOpen)(F)},[F,x]),(0,n.useEffect)(()=>{if(!x||!j)return;let e=!1,t=t=>{let n=z.reference.current,r=z.floating.current,i=r?.querySelectorAll(a.MENU_SUBMENU_LAYER_SELECTOR);n instanceof Element&&b(n,t,24)||b(r,t,24)||[...i??[]].some(e=>b(e,t,24))?e=!0:e&&w()};return document.addEventListener("pointermove",t),()=>document.removeEventListener("pointermove",t)},[x,j,w,z.reference,z.floating]);let K=(0,n.useCallback)(()=>{z.floating.current?.querySelector(a.MENU_SUBMENU_LAYER_SELECTOR)==null&&w()},[w,z.floating]),H={"--dropdown-menu-max-height":null==W?void 0:`${W}px`},U=null!=E?(0,t.jsx)(v.MenuButton,{as:n.Fragment,disabled:S,children:E}):null!=O&&"button"===I?(0,t.jsx)(v.MenuButton,{as:s.ButtonV2,type:"button",icon:C,iconPlacement:M,size:J,variant:k,disabled:S,"aria-label":T,"aria-haspopup":"menu","aria-expanded":x,className:A,children:O}):null==O&&"button"===I?(0,t.jsx)(u.TooltipV2,{content:x?null:D,placement:"bottom",children:(0,t.jsx)(v.MenuButton,{as:s.ButtonV2,type:"button",icon:C,size:J,variant:k,disabled:S,"aria-label":R,"aria-haspopup":"menu","aria-expanded":x,className:A})}):null==O&&null==V?(0,t.jsx)(v.MenuButton,{as:l.ToolbarIconButtonV2,icon:C,disabled:S,"aria-label":R,"aria-haspopup":"menu","aria-expanded":x,tooltip:x?null:D}):null==O?(0,t.jsx)(u.TooltipV2,{content:x?null:D,placement:"bottom",children:(0,t.jsx)(v.MenuButton,{as:s.IconButtonV2,type:"button",icon:C,size:N??"sm",variant:V,disabled:S,"aria-label":R,"aria-haspopup":"menu","aria-expanded":x,className:A})}):(0,t.jsxs)(v.MenuButton,{as:i.Button,type:"button",color:"white",disabled:S,className:"flex items-center gap-2","aria-label":R,"aria-haspopup":"menu","aria-expanded":x,children:[(0,t.jsx)("div",{children:O}),(0,t.jsx)(r.Icon,{name:C})]});return(0,t.jsxs)("div",{className:L,children:[(0,t.jsx)("div",{ref:z.setReference,className:null!=E?"h-full w-full":"inline-flex",onPointerDownCapture:()=>{x||(0,c.announceDropdownMenuOpen)(F)},children:U}),(0,t.jsx)(m.FloatingPortal,{children:(0,t.jsx)("div",{ref:z.setFloating,style:{...Y,zIndex:f.ZIndex.POPOVER,width:G},className:(0,p.classNames)(f.ZIndexClass.POPOVER,"design-system-typography"),role:"presentation",onClick:e=>e.stopPropagation(),children:(0,t.jsx)(v.MenuItems,{as:o.MenuContainerV2,onKeyDownCapture:e=>{if("Enter"!==e.key&&" "!==e.key)return;let t=e.currentTarget.getAttribute("aria-activedescendant"),n=e.target===e.currentTarget?null==t?null:d
1ocument.getElementById(t):e.target;n instanceof HTMLButtonElement&&"true"===n.dataset.menuKeepOpen&&!n.disabled&&(e.preventDefault(),e.stopPropagation(),n.click())},modal:!1,onMouseLeave:j?K:void 0,style:H,className:(0,p.classNames)("w-full focus:outline-none","max-h-[var(--dropdown-menu-max-height,none)] overflow-y-auto has-[[aria-haspopup]]:max-h-none has-[[aria-haspopup]]:overflow-y-visible",B),children:P?e:(0,t.jsx)(o.MenuSectionV2,{children:e})})})})]})},y=e=>n.default.Children.toArray(e).some(e=>!!n.default.isValidElement(e)&&(e.type===o.MenuSectionV2||e.type===n.Fragment&&y(e.props.children))),w=({active:e,className:r,highlighted:i,closeOnSelect:s=!0,destructive:u=!1,href:l,intent:c,onClick:d,submenu:h,submenuItems:f,...m})=>{let b=(0,n.useCallback)(e=>{s||e.preventDefault(),d?.(e)},[s,d]),g=h??(null!=f&&f.length>0?(0,t.jsx)(o.MenuContainerV2,{className:"min-w-48",children:(0,t.jsx)(o.MenuSectionV2,{children:f.map((e,t)=>(0,n.createElement)(w,{...e,key:"string"==typeof e.label?e.label:t}))})}):void 0);return(0,t.jsx)(v.MenuItem,{disabled:m.disabled,as:n.Fragment,children:({active:n})=>(0,t.jsx)(a.MenuItemV2,{size:"sm",active:e,highlighted:i||n,href:null==g?l:void 0,onClick:null==g?b:void 0,submenu:g,className:(0,p.classNames)(r,u&&"!text-red-500 [&_.menu-item-v2-left-icon]:!text-red-500"),intent:c,"data-menu-keep-open":!s||void 0,...m})})};e.s(["HoverRevealToolbarV2",0,({children:e,className:r,revealClassName:i="group-hover:w-auto group-hover:pointer-events-auto group-hover:opacity-100 group-focus-within:w-auto group-focus-within:pointer-events-auto group-focus-within:opacity-100"})=>{let[s,o]=(0,n.useState)(0),a=(0,n.useCallback)(e=>{o(t=>Math.max(0,t+(e?1:-1)))},[]),u=(0,n.useMemo)(()=>({setMenuOpen:a}),[a]);return(0,t.jsx)(g.Provider,{value:u,children:(0,t.jsx)("div",{className:(0,p.classNames)("flex w-0 items-center gap-0 overflow-hidden opacity-0 transition-opacity duration-75","pointer-events-none",i,s>0&&"w-auto pointer-events-auto opacity-100",r),children:e})})},"IconButtonDropdownMenuItemV2",0,w,"IconButtonDropdownMenuV2",0,({children:e,trigger:n,buttonIcon:r="more",buttonIconPlacement:i,buttonClassName:s,buttonChrome:o,buttonButtonVariant:a,buttonDisabled:u,buttonAriaLabel:l,buttonLabel:c="Tools",buttonSize:d,buttonText:f,buttonTooltip:p=c,buttonVariant:m,className:b,closeOnMouseLeave:g=!0,menuClassName:y,width:w=196,floatOptions:E=h.EMPTY_OBJECT})=>(0,t.jsx)(v.Menu,{children:({open:h,close:v})=>(0,t.jsx)(x,{open:h,close:v,trigger:n,buttonIcon:r,buttonIconPlacement:i,buttonClassName:s,buttonChrome:o,buttonButtonVariant:a,buttonDisabled:u,buttonAriaLabel:l,buttonLabel:c,buttonSize:d,buttonText:f,buttonTooltip:p,buttonVariant:m,className:b,closeOnMouseLeave:g,menuClassName:y,width:w,floatOptions:E,children:e})})])},751909,102720,e=>{"use strict";var t=e.i(652415),n=e.i(414452),r=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),(0,n.isValidTimeout)(this.gcTime)&&(this.#e=setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(n.isServer?1/0:3e5))}clearGcTimeout(){this.#e&&(clearTimeout(this.#e),this.#e=void 0)}};e.s(["Removable",0,r],102720);var i=e.i(505074),s=class extends r{#t;#n;#r;#i;constructor(e){super(),this.mutationId=e.mutationId,this.#n=e.defaultOptions,this.#r=e.mutationCache,this.#t=[],this.state=e.state||o(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options={...this.#n,...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.#r.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#r.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#t.length||("pending"===this.state.status?this.scheduleGc():this.#r.remove(this))}continue(){return this.#i?.continue()??this.execute(this.state.variables)}async execute(e){let t=()=>(this.#i=(0,i.createRetryer)({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(Error("No mutationFn found")),onFail:(e,t)=>{this.#s({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#s({type:"pause"})},onContinue:()=>{this.#s({type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.#i.promise),n="pending"===this.state.status;try{if(!n){this.#s({type:"pending",variables:e}),await this.#r.config.onMutate?.(e,this);let t=await this.options.onMutate?.(e);t!==this.state.context&&this.#s({type:"pending",context:t,variables:e})}let r=await t();return await this.#r.config.onSuccess?.(r,e,this.state.context,this),await this.options.onSuccess?.(r,e,this.state.context),await this.#r.config.onSettled?.(r,null,this.state.variables,this.state.context,this),await this.options.onSettled?.(r,null,e,this.state.context),this.#s({type:"success",data:r}),r}catch(t){try{throw await this.#r.config.onError?.(t,e,this.state.context,this),await this.options.onError?.(t,e,this.state.context),await this.#r.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this),await this.options.onSettled?.(void 0,t,e,this.state.context),t}finally{this.#s({type:"error",error:t})}}}#s(e){let n=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};
1case"pending":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!(0,i.canFetch)(this.options.networkMode),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=n(this.state),t.notifyManager.batch(()=>{this.#t.forEach(t=>{t.onMutationUpdate(e)}),this.#r.notify({mutation:this,type:"updated",action:e})})}};function o(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}e.s(["Mutation",0,s,"getDefaultState",0,o],751909)},98030,e=>{"use strict";var t=e.i(9768),n=e.i(751909),r=e.i(652415),i=e.i(180548),s=e.i(414452),o=class extends i.Subscribable{#o;#a=void 0;#u;#l;constructor(e,t){super(),this.#o=e,this.setOptions(t),this.bindMethods(),this.#c()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.#o.defaultMutationOptions(e),(0,s.shallowEqualObjects)(this.options,t)||this.#o.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#u,observer:this}),t?.mutationKey&&this.options.mutationKey&&(0,s.hashKey)(t.mutationKey)!==(0,s.hashKey)(this.options.mutationKey)?this.reset():this.#u?.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#u?.removeObserver(this)}onMutationUpdate(e){this.#c(),this.#d(e)}getCurrentResult(){return this.#a}reset(){this.#u?.removeObserver(this),this.#u=void 0,this.#c(),this.#d()}mutate(e,t){return this.#l=t,this.#u?.removeObserver(this),this.#u=this.#o.getMutationCache().build(this.#o,this.options),this.#u.addObserver(this),this.#u.execute(e)}#c(){let e=this.#u?.state??(0,n.getDefaultState)();this.#a={...e,isPending:"pending"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset}}#d(e){r.notifyManager.batch(()=>{if(this.#l&&this.hasListeners()){let t=this.#a.variables,n=this.#a.context;e?.type==="success"?(this.#l.onSuccess?.(e.data,t,n),this.#l.onSettled?.(e.data,null,t,n)):e?.type==="error"&&(this.#l.onError?.(e.error,t,n),this.#l.onSettled?.(void 0,e.error,t,n))}this.listeners.forEach(e=>{e(this.#a)})})}},a=e.i(887734),u=e.i(611190);e.s(["useMutation",0,function(e,n){let i=(0,a.useQueryClient)(n),[s]=t.useState(()=>new o(i,e));t.useEffect(()=>{s.setOptions(e)},[s,e]);let l=t.useSyncExternalStore(t.useCallback(e=>s.subscribe(r.notifyManager.batchCalls(e)),[s]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),c=t.useCallback((e,t)=>{s.mutate(e,t).catch(u.noop)},[s]);if(l.error&&(0,u.shouldThrowError)(s.options.throwOnError,[l.error]))throw l.error;return{...l,mutate:c,mutateAsync:l.mutate}}],98030)},552401,e=>{"use strict";var t=e.i(347289),n=e.i(98030),r=e.i(9768),i=e.i(453294);e.s(["useMutation",0,function(e,{transport:s,...o}={}){let a=(0,i.useTransport)(),u=s??a,l=(0,r.useCallback)(async n=>(0,t.callUnaryMethod)(u,e,n),[u,e]);return(0,n.useMutation)({...o,mutationFn:l})}])},629651,153844,e=>{"use strict";var t=e.i(552401),n=e.i(657667);e.i(291280);var r=e.i(36389),i=e.i(224426);let s=(0,n.fileDesc)("Ch9jaGFsay9zZXJ2ZXIvdjEvaW52ZW50b3J5LnByb3RvEg9jaGFsay5zZXJ2ZXIudjEiHAoaR2V0VGVhbU5hdmJhckNvdW50c1JlcXVlc3QipQEKG0dldFRlYW1OYXZiYXJDb3VudHNSZXNwb25zZRIQCghwcm9qZWN0cxgBIAEoAxIQCghhY2NvdW50cxgCIAEoAxIQCghjbHVzdGVycxgDIAEoAxISCgpyZWdpc3RyaWVzGAQgASgDEhEKBHZwY3MYBSABKANIAIgBARIUCgdzdG9yYWdlGAYgASgDSAGIAQFCBwoFX3ZwY3NCCgoIX3N0b3JhZ2UiHwodR2V0UHJvamVjdE5hdmJhckNvdW50c1JlcXVlc3Qi3wQKHkdldFByb2plY3ROYXZiYXJDb3VudHNSZXNwb25zZRIRCglyZXNvbHZlcnMYASABKAMSEAoIZmVhdHVyZXMYAiABKAMSFQoNbmFtZWRfcXVlcmllcxgDIAEoAxIgChhhY3RpdmVfc2NoZWR1bGVkX3F1ZXJpZXMYBCABKAMSFgoOc2NhbGluZ19ncm91cHMYBSABKAMSFgoKY29udGFpbmVycxgGIAEoA0ICGAESEQoJc2FuZGJveGVzGBQgASgDEhEKCW5vdGVib29rcxgHIAEoAxIRCglmdW5jdGlvbnMYCCABKAMSEQoJc25hcHNob3RzGAkgASgDEhgKEG5vdGVib29rX2tlcm5lbHMYFSABKAMSDgoGaW1hZ2VzGBYgASgDEg4KBm1vZGVscxgKIAEoAxIWCg5vcGVuX2luY2lkZW50cxgLIAEoAxIQCgh3ZWJob29rcxgMIAE
1oAxIUCgxpbnRlZ3JhdGlvbnMYDSABKAMSDwoHc2VjcmV0cxgOIAEoAxIhChlvZmZsaW5lX3N0b3JlX2Nvbm5lY3Rpb25zGA8gASgDEhUKDW5hbWVkX3Byb21wdHMYECABKAMSFQoNb25saW5lX3N0b3JlcxgRIAEoAxIYChB2ZWN0b3JfZGF0YWJhc2VzGBIgASgDEhgKEGNvbmZpZ192YXJpYWJsZXMYEyABKAMSEwoLZXZhbHVhdGlvbnMYFyABKAMSFQoNYWNjZXNzX3Rva2VucxgeIAEoAxIWCg5haV9jb25uZWN0aW9ucxgfIAEoAxIPCgdidWNrZXRzGCAgASgDMpACChBJbnZlbnRvcnlTZXJ2aWNlEngKE0dldFRlYW1OYXZiYXJDb3VudHMSKy5jaGFsay5zZXJ2ZXIudjEuR2V0VGVhbU5hdmJhckNvdW50c1JlcXVlc3QaLC5jaGFsay5zZXJ2ZXIudjEuR2V0VGVhbU5hdmJhckNvdW50c1Jlc3BvbnNlIgaQAgGAfQISgQEKFkdldFByb2plY3ROYXZiYXJDb3VudHMSLi5jaGFsay5zZXJ2ZXIudjEuR2V0UHJvamVjdE5hdmJhckNvdW50c1JlcXVlc3QaLy5jaGFsay5zZXJ2ZXIudjEuR2V0UHJvamVjdE5hdmJhckNvdW50c1Jlc3BvbnNlIgaQAgGAfQJCFFoSc2VydmVyL3YxO3NlcnZlcnYxYgZwcm90bzM",[i.file_chalk_auth_v1_permissions]),o=(0,r.serviceDesc)(s,0);e.s(["InventoryService",0,o],153844);let a=new Set(["chalk.scalinggroup.v1.ScalingGroupManagerService","chalk.externalfunctioncatalog.v1.ExternalFunctionCatalogService","chalk.sandbox.v1.SandboxService","chalk.sandbox.v2.SandboxService","chalk.container.v1.ContainerService","chalk.notebook.v1.NotebookDocumentService","chalk.server.v1.WebhookService","chalk.server.v1.IntegrationsService","chalk.server.v1.EnvironmentSecretsService","chalk.server.v1.OfflineStoreConnectionService","chalk.agent.v1.AiProviderConnectionService","chalk.server.v1.ModelRegistryService","chalk.server.v1.PromptService","chalk.server.v1.TeamService","chalk.server.v1.CloudAccountCredentialsService","chalk.server.v1.CloudComponentsService"]);var u=e.i(887734),l=e.i(9768),c=e.i(319337);let d=e=>t=>{let{queryKey:n}=t,[r,i]=n;return"connect-query"===r&&null!=i&&"object"==typeof i&&"serviceName"in i&&i.serviceName===e.typeName},h=e=>d(e.parent),f=(e,t)=>{c.default.error(`Error making request ${e.parent.name}.${e.name}: ${t.rawMessage}`,{style:{overflowWrap:"anywhere"}})};e.s(["WITHOUT_DEFAULT_ERROR_TOAST",0,{onError:()=>void 0},"makeInvalidationPredicateForMutation",0,h,"makeInvalidationPredicateForQueries",0,e=>t=>{let{queryKey:n}=t,[r,i]=n;if("connect-query"!==r||null==i||"object"!=typeof i||!("serviceName"in i)||!("methodName"in i))return!1;let{serviceName:s,methodName:o}=i;return e.some(e=>e.parent.typeName===s&&e.name===o)},"showDefaultGRPCMutationErrorToast",0,f,"useGRPCMutation",0,(e,n,r)=>{let i=(0,l.useContext)(u.QueryClientContext),s=(0,l.useCallback)((...t)=>{(n?.onSuccess?.(...t),i)&&(!1!==r&&i.invalidateQueries({predicate:h(e),...r}),a.has(e.parent.typeName)&&i.invalidateQueries({predicate:d(o)}))},[n,i,e,r]);return(0,t.useMutation)(e,{onError:t=>f(e,t),...n,onSuccess:s})},"useInvalidateServiceQueries",0,e=>{let t=(0,l.useContext)(u.QueryClientContext);return(0,l.useCallback)(async()=>{await t?.invalidateQueries({predicate:d(e)})},[t,e])}],629651)},263465,e=>{"use strict";var t=e.i(763716),n=e.i(123303),r=e.i(440565),i=e.i(690663),s=e.i(9768);e.s(["SelectMenuV2",0,e=>{let{className:o,disabled:a=!1,disabledTooltip:u,label:l,description:c,labelTrailingAction:d,required:h=!1,options:f,placeholder:p,separateFirstOption:m=!1,loading:v=!1,size:b="sm",triggerAriaLabel:g,error:x,onBlur:y,onScrollBottom:w,loadingMore:E,itemRenderer:C,valueRenderer:M,containerClassName:A,emptyMessage:I="No results",menuClassName:k="max-h-[320px] overflow-y-auto no-show-scroll",menuWidth:S,menuPlacement:T,forceIndent:R,noneOptionMuted:N}=e,O={label:l,description:c,labelTrailingAction:d,required:h,triggerAriaLabel:g,error:x,onBlur:y,onScrollBottom:w,loadingMore:E,size:b,placeholder:p,options:(0,s.useMemo)(()=>{if(m&&f.length>1&&!f.some(i.isDropdownOptionGroup)){let[e,...t]=f;return[{label:"",options:[e]},{label:"",options:t}]}return[...f]},[f,m]),itemRenderer:C,valueRenderer:M,disabled:a,loading:v,className:o,containerClassName:A,menuClassName:k,menuWidth:S,menuPlacement:T,emptyMessage:I,forceIndent:R,noneOptionMuted:N},D="multi"===e.variant?(0,t.jsx)(r.DropdownImplV2,{...O,mode:{kind:"select",includeNoneOption:!1},variant:"multi",value:e.value,onChange:e.onChange,displayLimit:e.displayLimit}):(0,t.jsx)(r.DropdownImplV2,{...O,mode:{kind:"select",includeNoneOption:e.includeNoneOption??!1},leftIcon:e.leftIcon,leftIconClassName:e.leftIconClassName,triggerTextVariant:e.triggerTextVariant,triggerVariant:e.triggerVariant??"default",hideChevron:e.hideChevron,placeholderValue:e.placeholderValue,value:e.value,onChange:t=>{if(null==t){e.includeNoneOption&&e.onChange(null);return}e.onChange(t)}
1});return a&&u?(0,t.jsx)(n.TooltipV2,{content:u,placement:"bottom-start",children:(0,t.jsx)("span",{className:"inline-flex [&_*]:pointer-events-none",children:D})}):D}])}]);
2
3//# sourceMappingURL=04fneupucgnz3.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.