recce-nightly 1.22.0.20251014__py3-none-any.whl → 1.22.0.20251015.post1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of recce-nightly might be problematic. Click here for more details.

@@ -0,0 +1,10 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[970],{99:(e,t,r)=>{var n=r(62479),i=r(22719),o=r(88255);e.exports=function(e,t){var r=this.__data__;if(r instanceof n){var a=r.__data__;if(!i||a.length<199)return a.push([e,t]),this.size=++r.size,this;r=this.__data__=new o(a)}return r.set(e,t),this.size=r.size,this}},634:(e,t,r)=>{"use strict";r.d(t,{X:()=>s});var n=r(76808),i=r(80715),o=r(60460);let a=e=>{let t=(0,i.memo)((0,i.forwardRef)((t,r)=>{let{asChild:a,children:s,...l}=t;if(!a)return(0,i.createElement)(e,{...l,ref:r},s);if(!(0,i.isValidElement)(s))return null;let u=i.Children.only(s),c=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(r=(t=Object.getOwnPropertyDescriptor(e,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?e.props.ref:e.props.ref||e.ref}(u);return(0,i.cloneElement)(u,{...(0,n.v6)(l,u.props),ref:r?(0,o.t)(r,c):c})}));return t.displayName=e.displayName||e.name,t},s=(()=>{let e=new Map;return new Proxy(a,{apply:(e,t,r)=>a(r[0]),get:(t,r)=>(e.has(r)||e.set(r,a(r)),e.get(r))})})()},733:(e,t,r)=>{var n=r(9452),i=r(73530);e.exports=function(e){return n(function(t,r){var n=-1,o=r.length,a=o>1?r[o-1]:void 0,s=o>2?r[2]:void 0;for(a=e.length>3&&"function"==typeof a?(o--,a):void 0,s&&i(r[0],r[1],s)&&(a=o<3?void 0:a,o=1),t=Object(t);++n<o;){var l=r[n];l&&e(t,l,n,a)}return t})}},743:e=>{e.exports=function(e,t,r,n){for(var i=e.length,o=r+(n?1:-1);n?o--:++o<i;)if(t(e[o],o,e))return o;return -1}},818:(e,t,r)=>{"use strict";var n=r(80715),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=n.useState,a=n.useEffect,s=n.useLayoutEffect,l=n.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!i(e,r)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),n=o({inst:{value:r,getSnapshot:t}}),i=n[0].inst,c=n[1];return s(function(){i.value=r,i.getSnapshot=t,u(i)&&c({inst:i})},[e,r,t]),a(function(){return u(i)&&c({inst:i}),e(function(){u(i)&&c({inst:i})})},[e]),l(r),r};t.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:c},865:e=>{function t(){var e={};e._next=e._prev=e,this._sentinel=e}function r(e){e._prev._next=e._next,e._next._prev=e._prev,delete e._next,delete e._prev}function n(e,t){if("_next"!==e&&"_prev"!==e)return t}e.exports=t,t.prototype.dequeue=function(){var e=this._sentinel,t=e._prev;if(t!==e)return r(t),t},t.prototype.enqueue=function(e){var t=this._sentinel;e._prev&&e._next&&r(e),e._next=t._next,t._next._prev=e,t._next=e,e._prev=t},t.prototype.toString=function(){for(var e=[],t=this._sentinel,r=t._prev;r!==t;)e.push(JSON.stringify(r,n)),r=r._prev;return"["+e.join(", ")+"]"}},1187:(e,t,r)=>{var n=r(48613),i=r(26380),o=r(30039).Graph;e.exports={debugOrdering:function(e){var t=i.buildLayerMatrix(e),r=new o({compound:!0,multigraph:!0}).setGraph({});return n.forEach(e.nodes(),function(t){r.setNode(t,{label:t}),r.setParent(t,"layer"+e.node(t).rank)}),n.forEach(e.edges(),function(e){r.setEdge(e.v,e.w,{},e.name)}),n.forEach(t,function(e,t){r.setNode("layer"+t,{rank:"same"}),n.reduce(e,function(e,t){return r.setEdge(e,t,{style:"invis"}),t})}),r}}},1264:(e,t,r)=>{var n=r(44712);e.exports=function(e){try{n(e)}catch(e){if(e instanceof n.CycleException)return!1;throw e}return!0}},1303:(e,t,r)=>{var n=r(70545),i=r(97643),o=r(60050);e.exports=function(e,t){return e&&e.length?n(e,i(t,2),o):void 0}},1349:e=>{e.exports=function(e,t){return e.has(t)}},1934:(e,t,r)=>{var n=r(60663),i=r(95785);e.exports=function(e){return n.filter(i(e),function(t){return t.length>1||1===t.length&&e.hasEdge(t[0],t[0])})}},1970:(e,t,r)=>{"use strict";r.d(t,{S:()=>d,u:()=>c});var n,i=r(77534),o=r(48566),a=r(75794),s="layer:request-dismiss",l={layers:[],branches:[],count(){return this.layers.length},pointerBlockingLayers(){return this.layers.filter(e=>e.pointerBlocking)},topMostPointerBlockingLayer(){return[...this.pointerBlockingLayers()].slice(-1)[0]},hasPointerBlockingLayer(){return this.pointerBlockingLayers().length>0},isBelowPointerBlockingLayer(e){return this.indexOf(e)<(this.topMostPointerBlockingLayer()?this.indexOf(this.topMostPointerBlockingLayer()?.node):-1)},isTopMost(e){let t=this.layers[this.count()-1];return t?.node===e},getNestedLayers(e){return Array.from(this.layers).slice(this.indexOf(e)+1)},getLayersByType(e){return this.layers.filter(t=>t.type===e)},getNestedLayersByType(e,t){let r=this.indexOf(e);return -1===r?[]:this.layers.slice(r+1).filter(e=>e.type===t)},getParentLayerOfType(e,t){let r=this.indexOf(e);if(!(r<=0))return this.layers.slice(0,r).reverse().find(e=>e.type===t)},countNestedLayersOfType(e,t){return this.getNestedLayersByType(e,t).length},isInNestedLayer(e,t){return this.getNestedLayers(e).some(e=>(0,i.gR)(e.node,t))},isInBranch(e){return Array.from(this.branches).some(t=>(0,i.gR)(t,e))},add(e){this.layers.push(e),this.syncLayers()},addBranch(e){this.branches.push(e)},remove(e){let t=this.indexOf(e);t<0||(t<this.count()-1&&this.getNestedLayers(e).forEach(t=>l.dismiss(t.node,e)),this.layers.splice(t,1),this.syncLayers())},removeBranch(e){let t=this.branches.indexOf(e);t>=0&&this.branches.splice(t,1)},syncLayers(){this.layers.forEach((e,t)=>{e.node.style.setProperty("--layer-index",`${t}`),e.node.removeAttribute("data-nested"),e.node.removeAttribute("data-has-nested"),this.getParentLayerOfType(e.node,e.type)&&e.node.setAttribute("data-nested",e.type);let r=this.countNestedLayersOfType(e.node,e.type);r>0&&e.node.setAttribute("data-has-nested",e.type),e.node.style.setProperty("--nested-layer-count",`${r}`)})},indexOf(e){return this.layers.findIndex(t=>t.node===e)},dismiss(e,t){var r,n,i;let o=this.indexOf(e);if(-1===o)return;let a=this.layers[o];r=e,n=s,i=e=>{a.requestDismiss?.(e),e.defaultPrevented||a?.dismiss()},r.addEventListener(n,i,{once:!0}),function(e,t,r){let n=new(e.ownerDocument.defaultView||window).CustomEvent(t,{cancelable:!0,bubbles:!0,detail:r});e.dispatchEvent(n)}(e,s,{originalLayer:e,targetLayer:t,originalIndex:o,targetIndex:t?this.indexOf(t):-1}),this.syncLayers()},clear(){this.remove(this.layers[0].node)}};function u(){l.layers.forEach(({node:e})=>{e.style.pointerEvents=l.isBelowPointerBlockingLayer(e)?"none":"auto"})}function c(e,t){let{defer:r}=t,s=r?i.er:e=>e(),c=[];return c.push(s(()=>{let r=(0,a.Tn)(e)?e():e;c.push(function(e,t){var r;let{warnOnMissingNode:s=!0}=t;if(s&&!e)return void(0,a.R8)("[@zag-js/dismissable] node is `null` or `undefined`");if(!e)return;let{onDismiss:c,onRequestDismiss:d,pointerBlocking:f,exclude:h,debug:p,type:g="dialog"}=t;l.add({dismiss:c,node:e,type:g,pointerBlocking:f,requestDismiss:d}),u();let v=[f?function(e,t){let r=(0,i.YE)(e),o=[];return l.hasPointerBlockingLayer()&&!r.body.hasAttribute("data-inert")&&(n=document.body.style.pointerEvents,queueMicrotask(()=>{r.body.style.pointerEvents="none",r.body.setAttribute("data-inert","")})),t?.forEach(e=>{let[t,r]=(0,i.xk)(()=>{let t=e();return(0,i.sb)(t)?t:null},{timeout:1e3});t.then(e=>o.push((0,i.eC)(e,{pointerEvents:"auto"}))),o.push(r)}),()=>{l.hasPointerBlockingLayer()||(queueMicrotask(()=>{r.body.style.pointerEvents=n,r.body.removeAttribute("data-inert"),0===r.body.style.length&&r.body.removeAttribute("style")}),o.forEach(e=>e()))}}(e,t.persistentElements):void 0,(r=function(r){l.isTopMost(e)&&(t.onEscapeKeyDown?.(r),!r.defaultPrevented&&c&&(r.preventDefault(),c()))},(0,i.kn)((0,i.YE)(e),"keydown",e=>{"Escape"===e.key&&(e.isComposing||r?.(e))},{capture:!0})),(0,o.$)(e,{exclude:function(r){if(!e)return!1;let n="function"==typeof h?h():h,o=Array.isArray(n)?n:[n],a=t.persistentElements?.map(e=>e()).filter(i.sb);return a&&o.push(...a),o.some(e=>(0,i.gR)(e,r))||l.isInNestedLayer(e,r)},onFocusOutside:function(e){let r=(0,i.wt)(e.detail.originalEvent);!l.isInBranch(r)&&(t.onFocusOutside?.(e),t.onInteractOutside?.(e),e.defaultPrevented||(p&&console.log("onFocusOutside:",e.detail.originalEvent),c?.()))},onPointerDownOutside:function(r){let n=(0,i.wt)(r.detail.originalEvent);!(l.isBelowPointerBlockingLayer(e)||l.isInBranch(n))&&(t.onPointerDownOutside?.(r),t.onInteractOutside?.(r),r.defaultPrevented||(p&&console.log("onPointerDownOutside:",r.detail.originalEvent),c?.()))},defer:t.defer})];return()=>{l.remove(e),u(),e.style.pointerEvents="",v.forEach(e=>e?.())}}(r,t))})),()=>{c.forEach(e=>e?.())}}function d(e,t={}){let{defer:r}=t,n=r?i.er:e=>e(),o=[];return o.push(n(()=>{let t=(0,a.Tn)(e)?e():e;if(!t)return void(0,a.R8)("[@zag-js/dismissable] branch node is `null` or `undefined`");l.addBranch(t),o.push(()=>{l.removeBranch(t)})})),()=>{o.forEach(e=>e?.())}}},2439:(e,t,r)=>{"use strict";var n=r(48613),i=r(26380);e.exports={run:function(e){e.graph().dummyChains=[],n.forEach(e.edges(),function(t){!function(e,t){var r,n,o,a=t.v,s=e.node(a).rank,l=t.w,u=e.node(l).rank,c=t.name,d=e.edge(t),f=d.labelRank;if(u!==s+1){for(e.removeEdge(t),o=0,++s;s<u;++o,++s)d.points=[],n={width:0,height:0,edgeLabel:d,edgeObj:t,rank:s},r=i.addDummyNode(e,"edge",n,"_d"),s===f&&(n.width=d.width,n.height=d.height,n.dummy="edge-label",n.labelpos=d.labelpos),e.setEdge(a,r,{weight:d.weight},c),0===o&&e.graph().dummyChains.push(r),a=r;e.setEdge(a,l,{weight:d.weight},c)}}(e,t)})},undo:function(e){n.forEach(e.graph().dummyChains,function(t){var r,n=e.node(t),i=n.edgeLabel;for(e.setEdge(n.edgeObj,i);n.dummy;)r=e.successors(t)[0],e.removeNode(t),i.points.push({x:n.x,y:n.y}),"edge-label"===n.dummy&&(i.x=n.x,i.y=n.y,i.width=n.width,i.height=n.height),t=r,n=e.node(t)})}}},2609:(e,t,r)=>{"use strict";var n=r(48613);e.exports=function(e,t){var r={};return n.forEach(e,function(e,t){var i=r[e.v]={indegree:0,in:[],out:[],vs:[e.v],i:t};n.isUndefined(e.barycenter)||(i.barycenter=e.barycenter,i.weight=e.weight)}),n.forEach(t.edges(),function(e){var t=r[e.v],i=r[e.w];n.isUndefined(t)||n.isUndefined(i)||(i.indegree++,t.out.push(r[e.w]))}),function(e){for(var t=[];e.length;){var r=e.pop();t.push(r),n.forEach(r.in.reverse(),function(e){return function(t){!t.merged&&(n.isUndefined(t.barycenter)||n.isUndefined(e.barycenter)||t.barycenter>=e.barycenter)&&function(e,t){var r=0,n=0;e.weight&&(r+=e.barycenter*e.weight,n+=e.weight),t.weight&&(r+=t.barycenter*t.weight,n+=t.weight),e.vs=t.vs.concat(e.vs),e.barycenter=r/n,e.weight=n,e.i=Math.min(t.i,e.i),t.merged=!0}(e,t)}}(r)),n.forEach(r.out,function(t){return function(r){r.in.push(t),0==--r.indegree&&e.push(r)}}(r))}return n.map(n.filter(t,function(e){return!e.merged}),function(e){return n.pick(e,["vs","i","barycenter","weight"])})}(n.filter(r,function(e){return!e.indegree}))}},3479:(e,t,r)=>{"use strict";e.exports=r(818)},3522:(e,t,r)=>{e.exports=r(5182)(r(93475),"DataView")},3646:e=>{e.exports=function(e){return function(){return e}}},4072:(e,t,r)=>{"use strict";r.d(t,{X:()=>s,k:()=>l});var n=r(11485),i=r(49440),o=r(6965),a=r(84873),s=class extends a.k{#e;#t;#r;#n;#i;#o;#a;constructor(e){super(),this.#a=!1,this.#o=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#n=e.client,this.#r=this.#n.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#e=u(this.options),this.state=e.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#i?.promise}setOptions(e){if(this.options={...this.#o,...e},this.updateGcTime(this.options.gcTime),this.state&&void 0===this.state.data){let e=u(this.options);void 0!==e.data&&(this.setData(e.data,{updatedAt:e.dataUpdatedAt,manual:!0}),this.#e=e)}}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.#r.remove(this)}setData(e,t){let r=(0,n.pl)(this.state.data,e,this.options);return this.#s({data:r,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),r}setState(e,t){this.#s({type:"setState",state:e,setStateOptions:t})}cancel(e){let t=this.#i?.promise;return this.#i?.cancel(e),t?t.then(n.lQ).catch(n.lQ):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(e=>!1!==(0,n.Eh)(e.options.enabled,this))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===n.hT||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>"static"===(0,n.d2)(e.options.staleTime,this))}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):void 0===this.state.data||this.state.isInvalidated}isStaleByTime(e=0){return void 0===this.state.data||"static"!==e&&(!!this.state.isInvalidated||!(0,n.j3)(this.state.dataUpdatedAt,e))}onFocus(){let e=this.observers.find(e=>e.shouldFetchOnWindowFocus());e?.refetch({cancelRefetch:!1}),this.#i?.continue()}onOnline(){let e=this.observers.find(e=>e.shouldFetchOnReconnect());e?.refetch({cancelRefetch:!1}),this.#i?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#r.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#i&&(this.#a?this.#i.cancel({revert:!0}):this.#i.cancelRetry()),this.scheduleGc()),this.#r.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#s({type:"invalidate"})}async fetch(e,t){if("idle"!==this.state.fetchStatus&&this.#i?.status()!=="rejected"){if(void 0!==this.state.data&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#i)return this.#i.continueRetry(),this.#i.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let r=new AbortController,i=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#a=!0,r.signal)})},a=()=>{let e=(0,n.ZM)(this.options,t),r=(()=>{let e={client:this.#n,queryKey:this.queryKey,meta:this.meta};return i(e),e})();return(this.#a=!1,this.options.persister)?this.options.persister(e,r,this):e(r)},s=(()=>{let e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#n,state:this.state,fetchFn:a};return i(e),e})();this.options.behavior?.onFetch(s,this),this.#t=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==s.fetchOptions?.meta)&&this.#s({type:"fetch",meta:s.fetchOptions?.meta}),this.#i=(0,o.II)({initialPromise:t?.initialPromise,fn:s.fetchFn,onCancel:e=>{e instanceof o.cc&&e.revert&&this.setState({...this.#t,fetchStatus:"idle"}),r.abort()},onFail:(e,t)=>{this.#s({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#s({type:"pause"})},onContinue:()=>{this.#s({type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0});try{let e=await this.#i.start();if(void 0===e)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 o.cc){if(e.silent)return this.#i.promise;else if(e.revert){if(void 0===this.state.data)throw e;return this.state.data}}throw this.#s({type:"error",error:e}),this.#r.config.onError?.(e,this),this.#r.config.onSettled?.(this.state.data,e,this),e}finally{this.scheduleGc()}}#s(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,...l(t.data,this.options),fetchMeta:e.meta??null};case"success":let r={...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#t=e.manual?r:void 0,r;case"error":let n=e.error;return{...t,error:n,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:n,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}};this.state=t(this.state),i.jG.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#r.notify({query:this,type:"updated",action:e})})}};function l(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:(0,o.v_)(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}function u(e){let t="function"==typeof e.initialData?e.initialData():e.initialData,r=void 0!==t,n=r?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}},4084:(e,t,r)=>{var n=r(52417);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=!!t,t}},4157:(e,t,r)=>{var n=r(28951),i=r(22437),o=r(21705),a=r(22680),s=r(49005);e.exports=function(e,t,r){var l=e.constructor;switch(t){case"[object ArrayBuffer]":return n(e);case"[object Boolean]":case"[object Date]":return new l(+e);case"[object DataView]":return i(e,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return s(e,r);case"[object Map]":case"[object Set]":return new l;case"[object Number]":case"[object String]":return new l(e);case"[object RegExp]":return o(e);case"[object Symbol]":return a(e)}}},4317:(e,t,r)=>{var n=r(18230),i=1/0;e.exports=function(e){if("string"==typeof e||n(e))return e;var t=e+"";return"0"==t&&1/e==-i?"-0":t}},5108:(e,t,r)=>{"use strict";r.d(t,{A:()=>o,y:()=>a});var n=r(44627),i=r(82070);function o(e){var t=e.document.documentElement,r=(0,n.A)(e).on("dragstart.drag",i.Ay,i.Rw);"onselectstart"in t?r.on("selectstart.drag",i.Ay,i.Rw):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function a(e,t){var r=e.document.documentElement,o=(0,n.A)(e).on("dragstart.drag",null);t&&(o.on("click.drag",i.Ay,i.Rw),setTimeout(function(){o.on("click.drag",null)},0)),"onselectstart"in r?o.on("selectstart.drag",null):(r.style.MozUserSelect=r.__noselect,delete r.__noselect)}},5182:(e,t,r)=>{var n=r(20349),i=r(66014);e.exports=function(e,t){var r=i(e,t);return n(r)?r:void 0}},5268:(e,t,r)=>{var n=r(63281),i=r(96819),o=r(71680),a=r(29747),s=r(45387),l=r(81563),u=r(7088),c=r(14143),d="[object Arguments]",f="[object Array]",h="[object Object]",p=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,g,v,m){var b=l(e),y=l(t),x=b?f:s(e),w=y?f:s(t);x=x==d?h:x,w=w==d?h:w;var S=x==h,E=w==h,k=x==w;if(k&&u(e)){if(!u(t))return!1;b=!0,S=!1}if(k&&!S)return m||(m=new n),b||c(e)?i(e,t,r,g,v,m):o(e,t,x,r,g,v,m);if(!(1&r)){var C=S&&p.call(e,"__wrapped__"),O=E&&p.call(t,"__wrapped__");if(C||O){var I=C?e.value():e,_=O?t.value():t;return m||(m=new n),v(I,_,r,g,m)}}return!!k&&(m||(m=new n),a(e,t,r,g,v,m))}},5573:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,r){var n=typeof e;return!!(r=null==r?0x1fffffffffffff:r)&&("number"==n||"symbol"!=n&&t.test(e))&&e>-1&&e%1==0&&e<r}},5719:(e,t,r)=>{"use strict";r.d(t,{q:()=>i});var n=r(80715);function i(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{name:t,strict:r=!0,hookName:i="useContext",providerName:o="Provider",errorMessage:a,defaultValue:s}=e,l=(0,n.createContext)(s);return l.displayName=t,[l.Provider,function e(){let t=(0,n.useContext)(l);if(!t&&r){var s,u;let t=Error(null!=a?a:"".concat(i," returned `undefined`. Seems you forgot to wrap component within ").concat(o));throw t.name="ContextError",null==(s=(u=Error).captureStackTrace)||s.call(u,t,e),t}return t},l]}},5755:(e,t,r)=>{var n=r(93340),i=r(74582),o=r(81563),a=r(7088),s=r(5573),l=r(14143),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var r=o(e),c=!r&&i(e),d=!r&&!c&&a(e),f=!r&&!c&&!d&&l(e),h=r||c||d||f,p=h?n(e.length,String):[],g=p.length;for(var v in e)(t||u.call(e,v))&&!(h&&("length"==v||d&&("offset"==v||"parent"==v)||f&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||s(v,g)))&&p.push(v);return p}},5827:(e,t,r)=>{"use strict";var n=r(96213),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return n.isMemo(e)?a:s[e.$$typeof]||i}s[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[n.Memo]=a;var u=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(p){var i=h(r);i&&i!==p&&e(t,i,n)}var a=c(r);d&&(a=a.concat(d(r)));for(var s=l(t),g=l(r),v=0;v<a.length;++v){var m=a[v];if(!o[m]&&!(n&&n[m])&&!(g&&g[m])&&!(s&&s[m])){var b=f(r,m);try{u(t,m,b)}catch(e){}}}}return t}},5973:(e,t,r)=>{"use strict";var n=r(48613),i=r(30039).Graph,o=r(56435).slack;e.exports=function(e){var t,r,a,s,l=new i({directed:!1}),u=e.nodes()[0],c=e.nodeCount();for(l.setNode(u,{});t=l,r=e,n.forEach(t.nodes(),function e(i){n.forEach(r.nodeEdges(i),function(n){var a=n.v,s=i===a?n.w:a;t.hasNode(s)||o(r,n)||(t.setNode(s,{}),t.setEdge(i,s,{}),e(s))})}),t.nodeCount()<c;)a=function(e,t){return n.minBy(t.edges(),function(r){if(e.hasNode(r.v)!==e.hasNode(r.w))return o(t,r)})}(l,e),s=l.hasNode(a.v)?o(e,a):-o(e,a),function(e,t,r){n.forEach(e.nodes(),function(e){t.node(e).rank+=r})}(l,e,s);return l}},6426:(e,t,r)=>{e.exports=r(93475).Uint8Array},6652:(e,t,r)=>{"use strict";r.d(t,{ej:()=>V,hl:()=>M,Ug:()=>N,yt:()=>R,Wv:()=>A});var n=r(87259),i=r(76808),o=r(97207),a=r(72963),s=r(14115);let[l,u]=(0,r(5719).q)({name:"PopoverContext",hookName:"usePopoverContext",providerName:"<PopoverProvider />"});var c=r(53070),d=r(70568),f=r(80715),h=r(24359),p=r(30681),g=r(634);let v=(0,f.forwardRef)((e,t)=>{let r=u(),o=(0,s.c)(),a=(0,i.v6)({...r.getTriggerProps(),"aria-controls":o.unmounted?void 0:r.getTriggerProps()["aria-controls"]},e);return(0,n.jsx)(g.X.button,{...a,ref:t})});v.displayName="PopoverTrigger";let m=(0,f.forwardRef)((e,t)=>{let r=u(),o=(0,s.c)(),a=(0,i.v6)(r.getPositionerProps(),e);return o.unmounted?null:(0,n.jsx)(g.X.div,{...a,ref:t})});m.displayName="PopoverPositioner";var b=r(60460);let y=(0,f.forwardRef)((e,t)=>{let r=u(),o=(0,s.c)(),a=(0,i.v6)(r.getContentProps(),o.getPresenceProps(),e);return o.unmounted?null:(0,n.jsx)(g.X.div,{...a,ref:(0,b.t)(o.ref,t)})});y.displayName="PopoverContent";let x=(0,f.forwardRef)((e,t)=>{let r=u(),o=(0,i.v6)(r.getArrowTipProps(),e);return(0,n.jsx)(g.X.div,{...o,ref:t})});x.displayName="PopoverArrowTip";let w=(0,f.forwardRef)((e,t)=>{let r=u(),o=(0,i.v6)(r.getArrowProps(),e);return(0,n.jsx)(g.X.div,{...o,ref:t})});w.displayName="PopoverArrow";let S=(0,f.forwardRef)((e,t)=>{let r=u(),o=(0,i.v6)(r.getCloseTriggerProps(),e);return(0,n.jsx)(g.X.button,{...o,ref:t})});S.displayName="PopoverCloseTrigger";let E=(0,f.forwardRef)((e,t)=>{let r=u(),o=(0,i.v6)(r.getIndicatorProps(),e);return(0,n.jsx)(g.X.div,{...o,ref:t})});E.displayName="PopoverIndicator";let k=(0,f.forwardRef)((e,t)=>{let r=u(),o=(0,i.v6)(r.getTitleProps(),e);return(0,n.jsx)(g.X.div,{...o,ref:t})});k.displayName="PopoverTitle";let C=(0,f.forwardRef)((e,t)=>{let r=u(),o=(0,i.v6)(r.getDescriptionProps(),e);return(0,n.jsx)(g.X.div,{...o,ref:t})});C.displayName="PopoverDescription";let O=(0,f.forwardRef)((e,t)=>{let r=u(),o=(0,i.v6)(r.getAnchorProps(),e);return(0,n.jsx)(g.X.div,{...o,ref:t})});O.displayName="PopoverAnchor";let{withRootProvider:I,withContext:_,useStyles:T,PropsProvider:P}=(0,r(9242).c)({key:"popover"});I(e=>{let[t,{value:r,children:u}]=(0,o.s)(e),c=(0,a.x)((0,i.v6)({present:r.open},t));return(0,n.jsx)(l,{value:r,children:(0,n.jsx)(s.j,{value:c,children:u})})});let R=I(e=>{let[t,{children:r,...u}]=(0,o.s)(e),g=(e=>{let t=(0,f.useId)(),{getRootNode:r}=(0,h.w)(),{dir:n}=(0,p.g)(),i={id:t,dir:n,getRootNode:r,...e},o=(0,d.zl)(c.Aq,i);return c.Ng(o,d._B)})(u),v=(0,a.x)((0,i.v6)({present:g.open},t));return(0,n.jsx)(l,{value:g,children:(0,n.jsx)(s.j,{value:v,children:r})})}),A=_(v,"trigger",{forwardAsChild:!0}),N=_(m,"positioner",{forwardAsChild:!0}),M=_(y,"content",{forwardAsChild:!0}),L=_(x,"arrowTip",{forwardAsChild:!0});_(w,"arrow",{forwardAsChild:!0,defaultProps:{children:(0,n.jsx)(L,{})}}),_(S,"closeTrigger",{forwardAsChild:!0}),_(E,"indicator",{forwardAsChild:!0}),_(k,"title",{forwardAsChild:!0}),_(C,"description",{forwardAsChild:!0}),_("footer","footer"),_("header","header");let V=_("div","body");_(O,void 0,{forwardAsChild:!0})},6965:(e,t,r)=>{"use strict";r.d(t,{II:()=>c,cc:()=>u,v_:()=>l});var n=r(18023),i=r(8798),o=r(32047),a=r(11485);function s(e){return Math.min(1e3*2**e,3e4)}function l(e){return(e??"online")!=="online"||i.t.isOnline()}var u=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function c(e){let t,r=!1,c=0,d=(0,o.T)(),f=()=>n.m.isFocused()&&("always"===e.networkMode||i.t.isOnline())&&e.canRun(),h=()=>l(e.networkMode)&&e.canRun(),p=e=>{"pending"===d.status&&(t?.(),d.resolve(e))},g=e=>{"pending"===d.status&&(t?.(),d.reject(e))},v=()=>new Promise(r=>{t=e=>{("pending"!==d.status||f())&&r(e)},e.onPause?.()}).then(()=>{t=void 0,"pending"===d.status&&e.onContinue?.()}),m=()=>{let t;if("pending"!==d.status)return;let n=0===c?e.initialPromise:void 0;try{t=n??e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(p).catch(t=>{if("pending"!==d.status)return;let n=e.retry??3*!a.S$,i=e.retryDelay??s,o="function"==typeof i?i(c,t):i,l=!0===n||"number"==typeof n&&c<n||"function"==typeof n&&n(c,t);if(r||!l)return void g(t);c++,e.onFail?.(c,t),(0,a.yy)(o).then(()=>f()?void 0:v()).then(()=>{r?g(t):m()})})};return{promise:d,status:()=>d.status,cancel:t=>{if("pending"===d.status){let r=new u(t);g(r),e.onCancel?.(r)}},continue:()=>(t?.(),d),cancelRetry:()=>{r=!0},continueRetry:()=>{r=!1},canStart:h,start:()=>(h()?m():v().then(m),d)}}},6981:e=>{e.exports=function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}},7031:(e,t,r)=>{e.exports={components:r(68881),dijkstra:r(63999),dijkstraAll:r(90777),findCycles:r(1934),floydWarshall:r(18048),isAcyclic:r(1264),postorder:r(39017),preorder:r(46686),prim:r(57641),tarjan:r(95785),topsort:r(44712)}},7088:(e,t,r)=>{e=r.nmd(e);var n=r(93475),i=r(38649),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,s=a&&a.exports===o?n.Buffer:void 0,l=s?s.isBuffer:void 0;e.exports=l||i},7670:(e,t,r)=>{var n=r(88255);function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw TypeError("Expected a function");var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var a=e.apply(this,n);return r.cache=o.set(i,a)||o,a};return r.cache=new(i.Cache||n),r}i.Cache=n,e.exports=i},7890:e=>{e.exports=function(){}},8346:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{formatUrl:function(){return o},formatWithValidation:function(){return s},urlObjectKeys:function(){return a}});let n=r(52333)._(r(73570)),i=/https?|ftp|gopher|file/;function o(e){let{auth:t,hostname:r}=e,o=e.protocol||"",a=e.pathname||"",s=e.hash||"",l=e.query||"",u=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?u=t+e.host:r&&(u=t+(~r.indexOf(":")?"["+r+"]":r),e.port&&(u+=":"+e.port)),l&&"object"==typeof l&&(l=String(n.urlQueryToSearchParams(l)));let c=e.search||l&&"?"+l||"";return o&&!o.endsWith(":")&&(o+=":"),e.slashes||(!o||i.test(o))&&!1!==u?(u="//"+(u||""),a&&"/"!==a[0]&&(a="/"+a)):u||(u=""),s&&"#"!==s[0]&&(s="#"+s),c&&"?"!==c[0]&&(c="?"+c),""+o+u+(a=a.replace(/[?#]/g,encodeURIComponent))+(c=c.replace("#","%23"))+s}let a=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function s(e){return o(e)}},8798:(e,t,r)=>{"use strict";r.d(t,{t:()=>o});var n=r(67553),i=r(11485),o=new class extends n.Q{#l=!0;#u;#c;constructor(){super(),this.#c=e=>{if(!i.S$&&window.addEventListener){let t=()=>e(!0),r=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",r)}}}}onSubscribe(){this.#u||this.setEventListener(this.#c)}onUnsubscribe(){this.hasListeners()||(this.#u?.(),this.#u=void 0)}setEventListener(e){this.#c=e,this.#u?.(),this.#u=e(this.setOnline.bind(this))}setOnline(e){this.#l!==e&&(this.#l=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#l}}},8804:(e,t,r)=>{var n=r(17231),i=Array.prototype.splice;e.exports=function(e){var t=this.__data__,r=n(t,e);return!(r<0)&&(r==t.length-1?t.pop():i.call(t,r,1),--this.size,!0)}},9054:e=>{e.exports=function(e,t,r,n){var i=-1,o=null==e?0:e.length;for(n&&o&&(r=e[++i]);++i<o;)r=t(r,e[i],i,e);return r}},9118:(e,t,r)=>{var n=r(50147),i=r(51894);e.exports=function(e,t){return i(e||[],t||[],n)}},9242:(e,t,r)=>{"use strict";r.d(t,{c:()=>d});var n=r(87259),i=r(80715),o=r(30214),a=r(80223),s=r(10425),l=r(86697),u=r(38006),c=r(11563);let d=e=>{let{key:t,recipe:r}=e,d=(e=>e.charAt(0).toUpperCase()+e.slice(1))(t||r.className||"Component"),[f,h]=(0,o.q)({name:"".concat(d,"StylesContext"),errorMessage:"use".concat(d,"Styles returned is 'undefined'. Seems you forgot to wrap the components in \"<").concat(d,'.Root />" ')}),[p,g]=(0,o.q)({name:"".concat(d,"ClassNameContext"),errorMessage:"use".concat(d,"ClassNames returned is 'undefined'. Seems you forgot to wrap the components in \"<").concat(d,'.Root />" '),strict:!1}),[v,m]=(0,o.q)({strict:!1,name:"".concat(d,"PropsContext"),providerName:"".concat(d,"PropsContext"),defaultValue:{}});function b(e){let{unstyled:n,...o}=e,a=(0,c.y)({key:t,recipe:o.recipe||r}),[s,u]=(0,i.useMemo)(()=>a.splitVariantProps(o),[o,a]);return{styles:(0,i.useMemo)(()=>n?l.u:a(s),[n,s,a]),classNames:a.classNameMap,props:u}}return{StylesProvider:f,ClassNamesProvider:p,PropsProvider:v,usePropsContext:m,useRecipeResult:b,withProvider:(e,t,r)=>{let{defaultProps:o,...l}=null!=r?r:{},c=(0,u.B)(e,{},l),d=(0,i.forwardRef)((e,l)=>{var u,d;let h=m(),g=(0,i.useMemo)(()=>(0,a.v)(null!=o?o:{},h,e),[h,e]),{styles:v,props:y,classNames:x}=b(g),w=x[t],S=(0,n.jsx)(f,{value:v,children:(0,n.jsx)(p,{value:x,children:(0,n.jsx)(c,{ref:l,...y,css:[v[t],g.css],className:(0,s.cx)(g.className,w)})})});return null!=(d=null==r||null==(u=r.wrapElement)?void 0:u.call(r,S,g))?d:S});return d.displayName=e.displayName||e.name,d},withContext:(e,t,r)=>{let o=(0,u.B)(e,{},r),a=(0,i.forwardRef)((e,r)=>{let{unstyled:i,...a}=e,l=h(),u=g(),c=null==u?void 0:u[t];return(0,n.jsx)(o,{...a,css:[!i&&t?l[t]:void 0,e.css],ref:r,className:(0,s.cx)(e.className,c)})});return a.displayName=e.displayName||e.name,a},withRootProvider:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{defaultProps:r}=t,o=t=>{let o=m(),{styles:s,classNames:l,props:u}=b((0,i.useMemo)(()=>(0,a.v)(r,o,t),[o,t]));return(0,n.jsx)(f,{value:s,children:(0,n.jsx)(p,{value:l,children:(0,n.jsx)(e,{...u})})})};return o.displayName=e.displayName||e.name,o},useStyles:h,useClassNames:g}}},9452:(e,t,r)=>{var n=r(41480),i=r(42407),o=r(18145);e.exports=function(e,t){return o(i(e,t,n),e+"")}},9931:e=>{e.exports=function(e){return this.__data__.has(e)}},10182:e=>{e.exports=function(e,t){return null!=e&&t in Object(e)}},10399:(e,t,r)=>{var n=r(22439);e.exports=r(21042)(function(e,t){return null==e?{}:n(e,t)})},10425:(e,t,r)=>{"use strict";r.d(t,{cx:()=>n});let n=(...e)=>e.filter(Boolean).map(e=>e.trim()).join(" ")},10684:(e,t,r)=>{"use strict";r.d(t,{E:()=>n,U:()=>i});let n=(e,t)=>{if(!e||"string"!=typeof e)return{invalid:!0,value:e};let[r,n]=e.split("/");if(!r||!n||"currentBg"===r)return{invalid:!0,value:r};let i=t(`colors.${r}`),o=t.raw(`opacity.${n}`)?.value;if(!o&&isNaN(Number(n)))return{invalid:!0,value:r};let a=o?100*Number(o)+"%":`${n}%`,s=i??r;return{invalid:!1,color:s,value:`color-mix(in srgb, ${s} ${a}, transparent)`}},i=e=>(t,r)=>{let n=r.utils.colorMix(t);if(n.invalid)return{[e]:t};let i="--mix-"+e;return{[i]:n.value,[e]:`var(${i}, ${n.color})`}}},11006:(e,t,r)=>{"use strict";function n(e,t){let r={};for(let n in e){let i=t(n,e[n]);r[i[0]]=i[1]}return r}r.d(t,{N:()=>n})},11051:e=>{e.exports=function(e){return this.__data__.has(e)}},11467:e=>{var t=Object.prototype.hasOwnProperty;e.exports=function(e){var r=e.length,n=new e.constructor(r);return r&&"string"==typeof e[0]&&t.call(e,"index")&&(n.index=e.index,n.input=e.input),n}},11469:(e,t,r)=>{"use strict";r.d(t,{z:()=>a});var n=r(87259),i=r(80715),o=r(18249);let a=(0,i.forwardRef)(function(e,t){return(0,n.jsx)(o.B,{align:"center",...e,direction:"row",ref:t})})},11485:(e,t,r)=>{"use strict";r.d(t,{Cp:()=>g,EN:()=>p,Eh:()=>c,F$:()=>h,GU:()=>I,MK:()=>d,S$:()=>i,ZM:()=>O,ZZ:()=>k,Zw:()=>a,d2:()=>u,f8:()=>m,gn:()=>s,hT:()=>C,j3:()=>l,lQ:()=>o,nJ:()=>f,pl:()=>S,y9:()=>E,yy:()=>w});var n=r(51714),i="undefined"==typeof window||"Deno"in globalThis;function o(){}function a(e,t){return"function"==typeof e?e(t):e}function s(e){return"number"==typeof e&&e>=0&&e!==1/0}function l(e,t){return Math.max(e+(t||0)-Date.now(),0)}function u(e,t){return"function"==typeof e?e(t):e}function c(e,t){return"function"==typeof e?e(t):e}function d(e,t){let{type:r="all",exact:n,fetchStatus:i,predicate:o,queryKey:a,stale:s}=e;if(a){if(n){if(t.queryHash!==h(a,t.options))return!1}else if(!g(t.queryKey,a))return!1}if("all"!==r){let e=t.isActive();if("active"===r&&!e||"inactive"===r&&e)return!1}return("boolean"!=typeof s||t.isStale()===s)&&(!i||i===t.state.fetchStatus)&&(!o||!!o(t))}function f(e,t){let{exact:r,status:n,predicate:i,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(r){if(p(t.options.mutationKey)!==p(o))return!1}else if(!g(t.options.mutationKey,o))return!1}return(!n||t.state.status===n)&&(!i||!!i(t))}function h(e,t){return(t?.queryKeyHashFn||p)(e)}function p(e){return JSON.stringify(e,(e,t)=>y(t)?Object.keys(t).sort().reduce((e,r)=>(e[r]=t[r],e),{}):t)}function g(e,t){return e===t||typeof e==typeof t&&!!e&&!!t&&"object"==typeof e&&"object"==typeof t&&Object.keys(t).every(r=>g(e[r],t[r]))}var v=Object.prototype.hasOwnProperty;function m(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let r in e)if(e[r]!==t[r])return!1;return!0}function b(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function y(e){if(!x(e))return!1;let t=e.constructor;if(void 0===t)return!0;let r=t.prototype;return!!x(r)&&!!r.hasOwnProperty("isPrototypeOf")&&Object.getPrototypeOf(e)===Object.prototype}function x(e){return"[object Object]"===Object.prototype.toString.call(e)}function w(e){return new Promise(t=>{n.zs.setTimeout(t,e)})}function S(e,t,r){return"function"==typeof r.structuralSharing?r.structuralSharing(e,t):!1!==r.structuralSharing?function e(t,r){if(t===r)return t;let n=b(t)&&b(r);if(!n&&!(y(t)&&y(r)))return r;let i=(n?t:Object.keys(t)).length,o=n?r:Object.keys(r),a=o.length,s=n?Array(a):{},l=0;for(let u=0;u<a;u++){let a=n?u:o[u],c=t[a],d=r[a];if(c===d){s[a]=c,(n?u<i:v.call(t,a))&&l++;continue}if(null===c||null===d||"object"!=typeof c||"object"!=typeof d){s[a]=d;continue}let f=e(c,d);s[a]=f,f===c&&l++}return i===a&&l===i?t:s}(e,t):t}function E(e,t,r=0){let n=[...e,t];return r&&n.length>r?n.slice(1):n}function k(e,t,r=0){let n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var C=Symbol();function O(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:e.queryFn&&e.queryFn!==C?e.queryFn:()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`))}function I(e,t){return"function"==typeof e?e(...t):!!e}},11563:(e,t,r)=>{"use strict";r.d(t,{y:()=>o});var n=r(80715),i=r(78513);function o(e){let{key:t,recipe:r}=e,o=(0,i.$)();return(0,n.useMemo)(()=>{let e=r||(null!=t?o.getSlotRecipe(t):{});return o.sva(structuredClone(e))},[t,r,o])}},12187:(e,t,r)=>{"use strict";r.d(t,{wp:()=>P,dh:()=>T,XO:()=>_});var n=r(87259),i=r(76808),o=r(80715),a=r(60460),s=r(97563),l=r(634),u=r(77534),c=r(24359);let d="undefined"!=typeof window?o.useLayoutEffect:o.useEffect,[f,h]=(0,r(5719).q)({name:"FieldsetContext",hookName:"useFieldsetContext",providerName:"<FieldsetProvider />",strict:!1});var p=r(97580);let g=function(){var e,t,r,n,i;let a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},s=h(),l=(0,c.w)(),{ids:f,disabled:g=!!(null==s?void 0:s.disabled),invalid:v=!1,readOnly:m=!1,required:b=!1}=a,[y,x]=(0,o.useState)(!1),[w,S]=(0,o.useState)(!1),E=(0,o.useId)(),k=null!=(e=a.id)?e:E,C=(0,o.useRef)(null),O=null!=(t=null==f?void 0:f.control)?t:"field::".concat(k),I=null!=(r=null==f?void 0:f.errorText)?r:"field::".concat(k,"::error-text"),_=null!=(n=null==f?void 0:f.helperText)?n:"field::".concat(k,"::helper-text"),T=null!=(i=null==f?void 0:f.label)?i:"field::".concat(k,"::label");d(()=>{let e=C.current;if(!e)return;let t=()=>{let e=l.getRootNode();x(!!e.getElementById(I)),S(!!e.getElementById(_))};t();let r=new(l.getWindow()).MutationObserver(t);return r.observe(e,{childList:!0,subtree:!0}),()=>r.disconnect()},[l,I,_]);let P=(0,o.useMemo)(()=>{let e=[];return y&&v&&e.push(I),w&&e.push(_),e.join(" ")||void 0},[v,I,_,y,w]),R=(0,o.useMemo)(()=>()=>({...p.r.root.attrs,id:O,ref:C,role:"group","data-disabled":(0,u.sE)(g),"data-invalid":(0,u.sE)(v),"data-readonly":(0,u.sE)(m)}),[g,v,m,O]),A=(0,o.useMemo)(()=>()=>({...p.r.label.attrs,id:T,"data-disabled":(0,u.sE)(g),"data-invalid":(0,u.sE)(v),"data-readonly":(0,u.sE)(m),"data-required":(0,u.sE)(b),htmlFor:k}),[g,v,m,b,k,T]),N=(0,o.useMemo)(()=>()=>({"aria-describedby":P,"aria-invalid":(0,u.rq)(v),"data-invalid":(0,u.sE)(v),"data-required":(0,u.sE)(b),"data-readonly":(0,u.sE)(m),id:k,required:b,disabled:g,readOnly:m}),[P,v,b,m,k,g]),M=(0,o.useMemo)(()=>()=>({...N(),...p.r.input.attrs}),[N]),L=(0,o.useMemo)(()=>()=>({...N(),...p.r.textarea.attrs}),[N]),V=(0,o.useMemo)(()=>()=>({...N(),...p.r.select.attrs}),[N]),D=(0,o.useMemo)(()=>()=>({id:_,...p.r.helperText.attrs,"data-disabled":(0,u.sE)(g)}),[g,_]),F=(0,o.useMemo)(()=>()=>({id:I,...p.r.errorText.attrs,"aria-live":"polite"}),[I]);return{ariaDescribedby:P,ids:{root:O,control:k,label:T,errorText:I,helperText:_},refs:{rootRef:C},disabled:g,invalid:v,readOnly:m,required:b,getLabelProps:A,getRootProps:R,getInputProps:M,getTextareaProps:L,getSelectProps:V,getHelperTextProps:D,getErrorTextProps:F,getRequiredIndicatorProps:(0,o.useMemo)(()=>()=>({"aria-hidden":!0,...p.r.requiredIndicator.attrs}),[])}};var v=r(86483);let m=(0,o.forwardRef)((e,t)=>{let[r,o]=(0,s.P)()(e,["id","ids","disabled","invalid","readOnly","required"]),u=g(r),c=(0,i.v6)(u.getRootProps(),o);return(0,n.jsx)(v.S,{value:u,children:(0,n.jsx)(l.X.div,{...c,ref:(0,a.t)(t,u.refs.rootRef)})})});m.displayName="FieldRoot";let b=(0,o.forwardRef)((e,t)=>{let r=(0,v.f)(),o=(0,i.v6)(null==r?void 0:r.getLabelProps(),e);return(0,n.jsx)(l.X.label,{...o,ref:t})});b.displayName="FieldLabel";let y=(0,o.forwardRef)((e,t)=>{let r=(0,v.f)(),o=(0,i.v6)(null==r?void 0:r.getHelperTextProps(),e);return(0,n.jsx)(l.X.span,{...o,ref:t})});y.displayName="FieldHelperText";let x=(0,o.forwardRef)((e,t)=>{let r=(0,v.f)(),o=(0,i.v6)(r.getErrorTextProps(),e);return(null==r?void 0:r.invalid)?(0,n.jsx)(l.X.span,{...o,ref:t}):null});x.displayName="FieldErrorText";var w=r(9242),S=r(13544);let{withProvider:E,withContext:k,useStyles:C,useClassNames:O,PropsProvider:I}=(0,w.c)({key:"field"}),_=E(m,"root",{forwardAsChild:!0}),T=k(b,"label",{forwardAsChild:!0});k(y,"helperText",{forwardAsChild:!0});let P=k(x,"errorText",{forwardAsChild:!0});!function(e){let{viewBox:t="0 0 24 24",d:r,displayName:i,defaultProps:a={}}=e,s=o.Children.toArray(e.path);(0,o.forwardRef)((e,i)=>(0,n.jsx)(S.I,{ref:i,asChild:!1,viewBox:t,...a,...e,children:s.length?s:(0,n.jsx)("path",{fill:"currentColor",d:r})})).displayName=i}({d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"})},12266:(e,t,r)=>{e.exports="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g},12318:(e,t,r)=>{"use strict";r.d(t,{Aq:()=>E,MI:()=>f,Ng:()=>S});var n=r(43690),i=r(42642),o=r(76808),a=r(1970),s=r(77534),l=r(54246),u=r(91150),c=r(41562),d=r(75794),f=(0,n.y)("dialog").parts("trigger","backdrop","positioner","content","title","description","closeTrigger"),h=f.build(),p=e=>e.ids?.positioner??`dialog:${e.id}:positioner`,g=e=>e.ids?.backdrop??`dialog:${e.id}:backdrop`,v=e=>e.ids?.content??`dialog:${e.id}:content`,m=e=>e.ids?.trigger??`dialog:${e.id}:trigger`,b=e=>e.ids?.title??`dialog:${e.id}:title`,y=e=>e.ids?.description??`dialog:${e.id}:description`,x=e=>e.ids?.closeTrigger??`dialog:${e.id}:close`,w=e=>e.getById(v(e));function S(e,t){let{state:r,send:n,context:i,prop:o,scope:a}=e,s=o("aria-label"),l=r.matches("open");return{open:l,setOpen(e){r.matches("open")!==e&&n({type:e?"OPEN":"CLOSE"})},getTriggerProps:()=>t.button({...h.trigger.attrs,dir:o("dir"),id:m(a),"aria-haspopup":"dialog",type:"button","aria-expanded":l,"data-state":l?"open":"closed","aria-controls":v(a),onClick(e){e.defaultPrevented||n({type:"TOGGLE"})}}),getBackdropProps:()=>t.element({...h.backdrop.attrs,dir:o("dir"),hidden:!l,id:g(a),"data-state":l?"open":"closed"}),getPositionerProps:()=>t.element({...h.positioner.attrs,dir:o("dir"),id:p(a),style:{pointerEvents:l?void 0:"none"}}),getContentProps(){let e=i.get("rendered");return t.element({...h.content.attrs,dir:o("dir"),role:o("role"),hidden:!l,id:v(a),tabIndex:-1,"data-state":l?"open":"closed","aria-modal":!0,"aria-label":s||void 0,"aria-labelledby":s||!e.title?void 0:b(a),"aria-describedby":e.description?y(a):void 0})},getTitleProps:()=>t.element({...h.title.attrs,dir:o("dir"),id:b(a)}),getDescriptionProps:()=>t.element({...h.description.attrs,dir:o("dir"),id:y(a)}),getCloseTriggerProps:()=>t.button({...h.closeTrigger.attrs,dir:o("dir"),id:x(a),type:"button",onClick(e){e.defaultPrevented||(e.stopPropagation(),n({type:"CLOSE"}))}})}}var E=(0,o.Op)({props({props:e,scope:t}){let r="alertdialog"===e.role,n=r?()=>t.getById(x(t)):void 0,i="boolean"!=typeof e.modal||e.modal;return{role:"dialog",modal:i,trapFocus:i,preventScroll:i,closeOnInteractOutside:!r,closeOnEscape:!0,restoreFocus:!0,initialFocusEl:n,...e}},initialState:({prop:e})=>e("open")||e("defaultOpen")?"open":"closed",context:({bindable:e})=>({rendered:e(()=>({defaultValue:{title:!0,description:!0}}))}),watch({track:e,action:t,prop:r}){e([()=>r("open")],()=>{t(["toggleVisibility"])})},states:{open:{entry:["checkRenderedElements","syncZIndex"],effects:["trackDismissableElement","trapFocus","preventScroll","hideContentBelow"],on:{"CONTROLLED.CLOSE":{target:"closed"},CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],TOGGLE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}]}},closed:{on:{"CONTROLLED.OPEN":{target:"open"},OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}],TOGGLE:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}]}}},implementations:{guards:{isOpenControlled:({prop:e})=>void 0!=e("open")},effects:{trackDismissableElement:({scope:e,send:t,prop:r})=>(0,a.u)(()=>w(e),{type:"dialog",defer:!0,pointerBlocking:r("modal"),exclude:[e.getById(m(e))],onInteractOutside(e){r("onInteractOutside")?.(e),r("closeOnInteractOutside")||e.preventDefault()},persistentElements:r("persistentElements"),onFocusOutside:r("onFocusOutside"),onPointerDownOutside:r("onPointerDownOutside"),onRequestDismiss:r("onRequestDismiss"),onEscapeKeyDown(e){r("onEscapeKeyDown")?.(e),r("closeOnEscape")||e.preventDefault()},onDismiss(){t({type:"CLOSE",src:"interact-outside"})}}),preventScroll({scope:e,prop:t}){if(t("preventScroll"))return(0,u.k)(e.getDoc())},trapFocus({scope:e,prop:t}){if(t("trapFocus"))return(0,l.o)(()=>w(e),{preventScroll:!0,returnFocusOnDeactivate:!!t("restoreFocus"),initialFocus:t("initialFocusEl"),setReturnFocus:e=>t("finalFocusEl")?.()??e})},hideContentBelow({scope:e,prop:t}){if(t("modal"))return(0,i.M)(()=>[w(e)],{defer:!0})}},actions:{checkRenderedElements({context:e,scope:t}){(0,s.er)(()=>{e.set("rendered",{title:!!t.getById(b(t)),description:!!t.getById(y(t))})})},syncZIndex({scope:e}){(0,s.er)(()=>{let t=w(e);if(!t)return;let r=(0,s.L9)(t);[e.getById(p(e)),e.getById(g(e))].forEach(e=>{e?.style.setProperty("--z-index",r.zIndex),e?.style.setProperty("--layer-index",r.getPropertyValue("--layer-index"))})})},invokeOnClose({prop:e}){e("onOpenChange")?.({open:!1})},invokeOnOpen({prop:e}){e("onOpenChange")?.({open:!0})},toggleVisibility({prop:e,send:t,event:r}){t({type:e("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:r})}}}}),k=(0,c.x)()(["aria-label","closeOnEscape","closeOnInteractOutside","dir","finalFocusEl","getRootNode","getRootNode","id","id","ids","initialFocusEl","modal","onEscapeKeyDown","onFocusOutside","onInteractOutside","onOpenChange","onPointerDownOutside","onRequestDismiss","defaultOpen","open","persistentElements","preventScroll","restoreFocus","role","trapFocus"]);(0,d.PM)(k)},12625:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"errorOnce",{enumerable:!0,get:function(){return r}});let r=e=>{}},12673:(e,t,r)=>{"use strict";e.exports=r(78193)},12855:(e,t,r)=>{var n=r(39279),i=r(67772),o=r(33895);e.exports=function(e){return i(e)?o(e):n(e)}},13044:(e,t,r)=>{var n=r(9054),i=r(32191),o=r(97643),a=r(54204),s=r(81563);e.exports=function(e,t,r){var l=s(e)?n:a,u=arguments.length<3;return l(e,o(t,4),r,u,i)}},13430:(e,t,r)=>{var n=r(48613);e.exports=function(e){var t,r,i,o=(t=e,r={},i=0,n.forEach(t.children(),function e(o){var a=i;n.forEach(t.children(o),e),r[o]={low:a,lim:i++}}),r);n.forEach(e.graph().dummyChains,function(t){for(var r=e.node(t),n=r.edgeObj,i=function(e,t,r,n){var i,o,a=[],s=[],l=Math.min(t[r].low,t[n].low),u=Math.max(t[r].lim,t[n].lim);i=r;do a.push(i=e.parent(i));while(i&&(t[i].low>l||u>t[i].lim));for(o=i,i=n;(i=e.parent(i))!==o;)s.push(i);return{path:a.concat(s.reverse()),lca:o}}(e,o,n.v,n.w),a=i.path,s=i.lca,l=0,u=a[0],c=!0;t!==n.w;){if(r=e.node(t),c){for(;(u=a[l])!==s&&e.node(u).maxRank<r.rank;)l++;u===s&&(c=!1)}if(!c){for(;l<a.length-1&&e.node(u=a[l+1]).minRank<=r.rank;)l++;u=a[l]}e.setParent(t,u),t=e.successors(t)[0]}})}},13431:(e,t,r)=>{"use strict";function n(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}r.d(t,{o:()=>n})},13544:(e,t,r)=>{"use strict";r.d(t,{I:()=>c});var n=r(87259),i=r(80715),o=r(62523),a=r(38006),s=r(10425);let{useRecipeResult:l,PropsProvider:u}=(0,o.a)({key:"icon"}),c=i.forwardRef(function(e,t){let{styles:r,className:i,props:o}=l({asChild:!e.as,...e});return(0,n.jsx)(a.B.svg,{ref:t,focusable:!1,"aria-hidden":"true",...o,css:[r,e.css],className:(0,s.cx)(i,e.className)})})},13648:(e,t,r)=>{"use strict";r.d(t,{i:()=>s,s:()=>a});var n,i=r(80715),o=!!(n||(n=r.t(i,2))).useInsertionEffect&&(n||(n=r.t(i,2))).useInsertionEffect,a=o||function(e){return e()},s=o||i.useLayoutEffect},13837:(e,t,r)=>{var n=r(89718),i=r(59045),o=r(79910),a=Object.prototype,s=Function.prototype.toString,l=a.hasOwnProperty,u=s.call(Object);e.exports=function(e){if(!o(e)||"[object Object]"!=n(e))return!1;var t=i(e);if(null===t)return!0;var r=l.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&s.call(r)==u}},14018:(e,t,r)=>{"use strict";function n(e,t){if(Object.is(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(let[r,n]of e)if(!Object.is(n,t.get(r)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(let r of e)if(!t.has(r))return!1;return!0}let r=Object.keys(e);if(r.length!==Object.keys(t).length)return!1;for(let n of r)if(!Object.prototype.hasOwnProperty.call(t,n)||!Object.is(e[n],t[n]))return!1;return!0}r.d(t,{x:()=>n})},14115:(e,t,r)=>{"use strict";r.d(t,{c:()=>i,j:()=>n});let[n,i]=(0,r(5719).q)({name:"PresenceContext",hookName:"usePresenceContext",providerName:"<PresenceProvider />"})},14143:(e,t,r)=>{var n=r(40215),i=r(96729),o=r(17863),a=o&&o.isTypedArray;e.exports=a?i(a):n},14344:(e,t,r)=>{e.exports=r(5182)(r(93475),"Promise")},14426:(e,t,r)=>{var n=r(50147),i=r(79515),o=r(5573),a=r(94193),s=r(4317);e.exports=function(e,t,r,l){if(!a(e))return e;t=i(t,e);for(var u=-1,c=t.length,d=c-1,f=e;null!=f&&++u<c;){var h=s(t[u]),p=r;if("__proto__"===h||"constructor"===h||"prototype"===h)break;if(u!=d){var g=f[h];void 0===(p=l?l(g,h,f):void 0)&&(p=a(g)?g:o(t[u+1])?[]:{})}n(f,h,p),f=f[h]}return e}},14758:(e,t,r)=>{var n=r(70545),i=r(60050),o=r(41480);e.exports=function(e){return e&&e.length?n(e,o,i):void 0}},14907:(e,t,r)=>{"use strict";r.d(t,{V:()=>o});let n=/[^a-zA-Z0-9_\u0081-\uffff-]/g,i=/[A-Z]/g;function o(e,t={}){let{fallback:r="",prefix:a=""}=t,s=["-",a,`${e}`.replace(n,e=>`\\${e}`)].filter(Boolean).join("-").replace(i,e=>`-${e.toLowerCase()}`);return{var:s,ref:`var(${s}${r?`, ${r}`:""})`}}},15660:(e,t,r)=>{var n=r(51205),i=r(32191),o=r(75776),a=r(81563);e.exports=function(e,t){return(a(e)?n:i)(e,o(t))}},15946:(e,t,r)=>{var n=r(32978),i=r(55073),o=r(91377),a=r(59782),s=r(30822),l=r(44901),u=r(4317);e.exports=function(e,t){return a(e)&&s(t)?l(u(e),t):function(r){var a=i(r,e);return void 0===a&&a===t?o(r,e):n(t,a,3)}}},16131:(e,t,r)=>{"use strict";r.d(t,{T:()=>a});var n=r(87259),i=r(80715),o=r(18249);let a=(0,i.forwardRef)(function(e,t){return(0,n.jsx)(o.B,{align:"center",...e,direction:"column",ref:t})})},16512:(e,t,r)=>{var n=r(48613);e.exports=function(e,t,r){var i,o={};n.forEach(r,function(r){for(var n,a,s=e.parent(r);s;){if((n=e.parent(s))?(a=o[n],o[n]=s):(a=i,i=s),a&&a!==s)return void t.setEdge(a,s);s=n}})}},16722:(e,t,r)=>{"use strict";r.d(t,{SQ:()=>c,W9:()=>l,ZD:()=>h,oo:()=>f});var n=r(98492);let i="pushState",o="replaceState",a=["popstate",i,o,"hashchange"],s=e=>{for(let t of a)addEventListener(t,e);return()=>{for(let t of a)removeEventListener(t,e)}},l=(e,t)=>(0,n.rz)(s,e,t),u=()=>location.search,c=({ssrSearch:e=""}={})=>l(u,()=>e),d=()=>location.pathname,f=(e,{replace:t=!1,state:r=null}={})=>history[t?o:i](r,"",e),h=(e={})=>[(({ssrPath:e}={})=>l(d,e?()=>e:d))(e),f],p=Symbol.for("wouter_v3");if("undefined"!=typeof history&&void 0===window[p]){for(let e of[i,o]){let t=history[e];history[e]=function(){let r=t.apply(this,arguments),n=new Event(e);return n.arguments=arguments,dispatchEvent(n),r}}Object.defineProperty(window,p,{value:!0})}},16766:(e,t,r)=>{"use strict";r.d(t,{N:()=>o});let{withContext:n,PropsProvider:i}=(0,r(62523).a)({key:"link"}),o=n("a")},16960:(e,t,r)=>{"use strict";function n(e,t){if(e=function(e){let t;for(;t=e.sourceEvent;)e=t;return e}(e),void 0===t&&(t=e.currentTarget),t){var r=t.ownerSVGElement||t;if(r.createSVGPoint){var n=r.createSVGPoint();return n.x=e.clientX,n.y=e.clientY,[(n=n.matrixTransform(t.getScreenCTM().inverse())).x,n.y]}if(t.getBoundingClientRect){var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]}}return[e.pageX,e.pageY]}r.d(t,{A:()=>n})},17231:(e,t,r)=>{var n=r(45136);e.exports=function(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return -1}},17478:(e,t,r)=>{var n=r(29687),i=r(83660),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return i(e);var t=[];for(var r in Object(e))o.call(e,r)&&"constructor"!=r&&t.push(r);return t}},17618:(e,t,r)=>{"use strict";r.d(t,{j:()=>o});var n=r(80715),i=r(87804);function o(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,i.c)(e.onOpen),r=(0,i.c)(e.onClose),[o,a]=(0,n.useState)(e.defaultOpen||!1),s=void 0!==e.open?e.open:o,l=void 0!==e.open,u=(0,n.useCallback)(()=>{l||a(!1),null==r||r()},[l,r]),c=(0,n.useCallback)(()=>{l||a(!0),null==t||t()},[l,t]),d=(0,n.useCallback)(()=>{s?u():c()},[s,c,u]);return{open:s,onOpen:c,onClose:u,onToggle:d,setOpen:a}}},17710:(e,t,r)=>{"use strict";r.d(t,{LN:()=>F,Ay:()=>z,zr:()=>D});var n=r(63806),i=r(80377),o=r(91663),a=Array.prototype.find;function s(){return this.firstElementChild}var l=Array.prototype.filter;function u(){return Array.from(this.children)}function c(e){return Array(e.length)}function d(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}function f(e,t,r,n,i,o){for(var a,s=0,l=t.length,u=o.length;s<u;++s)(a=t[s])?(a.__data__=o[s],n[s]=a):r[s]=new d(e,o[s]);for(;s<l;++s)(a=t[s])&&(i[s]=a)}function h(e,t,r,n,i,o,a){var s,l,u,c=new Map,f=t.length,h=o.length,p=Array(f);for(s=0;s<f;++s)(l=t[s])&&(p[s]=u=a.call(l,l.__data__,s,t)+"",c.has(u)?i[s]=l:c.set(u,l));for(s=0;s<h;++s)u=a.call(e,o[s],s,o)+"",(l=c.get(u))?(n[s]=l,l.__data__=o[s],c.delete(u)):r[s]=new d(e,o[s]);for(s=0;s<f;++s)(l=t[s])&&c.get(p[s])===l&&(i[s]=l)}function p(e){return e.__data__}function g(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}d.prototype={constructor:d,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};var v=r(27946),m=r(52549);function b(e){return e.trim().split(/^|\s+/)}function y(e){return e.classList||new x(e)}function x(e){this._node=e,this._names=b(e.getAttribute("class")||"")}function w(e,t){for(var r=y(e),n=-1,i=t.length;++n<i;)r.add(t[n])}function S(e,t){for(var r=y(e),n=-1,i=t.length;++n<i;)r.remove(t[n])}function E(){this.textContent=""}function k(){this.innerHTML=""}function C(){this.nextSibling&&this.parentNode.appendChild(this)}function O(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}x.prototype={add:function(e){0>this._names.indexOf(e)&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};var I=r(20871);function _(e){var t=(0,v.A)(e);return(t.local?function(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}:function(e){return function(){var t=this.ownerDocument,r=this.namespaceURI;return r===I.g&&t.documentElement.namespaceURI===I.g?t.createElement(e):t.createElementNS(r,e)}})(t)}function T(){return null}function P(){var e=this.parentNode;e&&e.removeChild(this)}function R(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function A(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function N(e){return function(){var t=this.__on;if(t){for(var r,n=0,i=-1,o=t.length;n<o;++n)(r=t[n],e.type&&r.type!==e.type||r.name!==e.name)?t[++i]=r:this.removeEventListener(r.type,r.listener,r.options);++i?t.length=i:delete this.__on}}}function M(e,t,r){return function(){var n,i=this.__on,o=function(e){t.call(this,e,this.__data__)};if(i){for(var a=0,s=i.length;a<s;++a)if((n=i[a]).type===e.type&&n.name===e.name){this.removeEventListener(n.type,n.listener,n.options),this.addEventListener(n.type,n.listener=o,n.options=r),n.value=t;return}}this.addEventListener(e.type,o,r),n={type:e.type,name:e.name,value:t,listener:o,options:r},i?i.push(n):this.__on=[n]}}var L=r(86427);function V(e,t,r){var n=(0,L.A)(e),i=n.CustomEvent;"function"==typeof i?i=new i(t,r):(i=n.document.createEvent("Event"),r?(i.initEvent(t,r.bubbles,r.cancelable),i.detail=r.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}var D=[null];function F(e,t){this._groups=e,this._parents=t}function j(){return new F([[document.documentElement]],D)}F.prototype=j.prototype={constructor:F,select:function(e){"function"!=typeof e&&(e=(0,n.A)(e));for(var t=this._groups,r=t.length,i=Array(r),o=0;o<r;++o)for(var a,s,l=t[o],u=l.length,c=i[o]=Array(u),d=0;d<u;++d)(a=l[d])&&(s=e.call(a,a.__data__,d,l))&&("__data__"in a&&(s.__data__=a.__data__),c[d]=s);return new F(i,this._parents)},selectAll:function(e){if("function"==typeof e){var t;t=e,e=function(){var e;return e=t.apply(this,arguments),null==e?[]:Array.isArray(e)?e:Array.from(e)}}else e=(0,i.A)(e);for(var r=this._groups,n=r.length,o=[],a=[],s=0;s<n;++s)for(var l,u=r[s],c=u.length,d=0;d<c;++d)(l=u[d])&&(o.push(e.call(l,l.__data__,d,u)),a.push(l));return new F(o,a)},selectChild:function(e){var t;return this.select(null==e?s:(t="function"==typeof e?e:(0,o.j)(e),function(){return a.call(this.children,t)}))},selectChildren:function(e){var t;return this.selectAll(null==e?u:(t="function"==typeof e?e:(0,o.j)(e),function(){return l.call(this.children,t)}))},filter:function(e){"function"!=typeof e&&(e=(0,o.A)(e));for(var t=this._groups,r=t.length,n=Array(r),i=0;i<r;++i)for(var a,s=t[i],l=s.length,u=n[i]=[],c=0;c<l;++c)(a=s[c])&&e.call(a,a.__data__,c,s)&&u.push(a);return new F(n,this._parents)},data:function(e,t){if(!arguments.length)return Array.from(this,p);var r=t?h:f,n=this._parents,i=this._groups;"function"!=typeof e&&(w=e,e=function(){return w});for(var o=i.length,a=Array(o),s=Array(o),l=Array(o),u=0;u<o;++u){var c=n[u],d=i[u],g=d.length,v="object"==typeof(x=e.call(c,c&&c.__data__,u,n))&&"length"in x?x:Array.from(x),m=v.length,b=s[u]=Array(m),y=a[u]=Array(m);r(c,d,b,y,l[u]=Array(g),v,t);for(var x,w,S,E,k=0,C=0;k<m;++k)if(S=b[k]){for(k>=C&&(C=k+1);!(E=y[C])&&++C<m;);S._next=E||null}}return(a=new F(a,n))._enter=s,a._exit=l,a},enter:function(){return new F(this._enter||this._groups.map(c),this._parents)},exit:function(){return new F(this._exit||this._groups.map(c),this._parents)},join:function(e,t,r){var n=this.enter(),i=this,o=this.exit();return"function"==typeof e?(n=e(n))&&(n=n.selection()):n=n.append(e+""),null!=t&&(i=t(i))&&(i=i.selection()),null==r?o.remove():r(o),n&&i?n.merge(i).order():i},merge:function(e){for(var t=e.selection?e.selection():e,r=this._groups,n=t._groups,i=r.length,o=n.length,a=Math.min(i,o),s=Array(i),l=0;l<a;++l)for(var u,c=r[l],d=n[l],f=c.length,h=s[l]=Array(f),p=0;p<f;++p)(u=c[p]||d[p])&&(h[p]=u);for(;l<i;++l)s[l]=r[l];return new F(s,this._parents)},selection:function(){return this},order:function(){for(var e=this._groups,t=-1,r=e.length;++t<r;)for(var n,i=e[t],o=i.length-1,a=i[o];--o>=0;)(n=i[o])&&(a&&4^n.compareDocumentPosition(a)&&a.parentNode.insertBefore(n,a),a=n);return this},sort:function(e){function t(t,r){return t&&r?e(t.__data__,r.__data__):!t-!r}e||(e=g);for(var r=this._groups,n=r.length,i=Array(n),o=0;o<n;++o){for(var a,s=r[o],l=s.length,u=i[o]=Array(l),c=0;c<l;++c)(a=s[c])&&(u[c]=a);u.sort(t)}return new F(i,this._parents).order()},call:function(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var n=e[t],i=0,o=n.length;i<o;++i){var a=n[i];if(a)return a}return null},size:function(){let e=0;for(let t of this)++e;return e},empty:function(){return!this.node()},each:function(e){for(var t=this._groups,r=0,n=t.length;r<n;++r)for(var i,o=t[r],a=0,s=o.length;a<s;++a)(i=o[a])&&e.call(i,i.__data__,a,o);return this},attr:function(e,t){var r=(0,v.A)(e);if(arguments.length<2){var n=this.node();return r.local?n.getAttributeNS(r.space,r.local):n.getAttribute(r)}return this.each((null==t?r.local?function(e){return function(){this.removeAttributeNS(e.space,e.local)}}:function(e){return function(){this.removeAttribute(e)}}:"function"==typeof t?r.local?function(e,t){return function(){var r=t.apply(this,arguments);null==r?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,r)}}:function(e,t){return function(){var r=t.apply(this,arguments);null==r?this.removeAttribute(e):this.setAttribute(e,r)}}:r.local?function(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}:function(e,t){return function(){this.setAttribute(e,t)}})(r,t))},style:m.A,property:function(e,t){return arguments.length>1?this.each((null==t?function(e){return function(){delete this[e]}}:"function"==typeof t?function(e,t){return function(){var r=t.apply(this,arguments);null==r?delete this[e]:this[e]=r}}:function(e,t){return function(){this[e]=t}})(e,t)):this.node()[e]},classed:function(e,t){var r=b(e+"");if(arguments.length<2){for(var n=y(this.node()),i=-1,o=r.length;++i<o;)if(!n.contains(r[i]))return!1;return!0}return this.each(("function"==typeof t?function(e,t){return function(){(t.apply(this,arguments)?w:S)(this,e)}}:t?function(e){return function(){w(this,e)}}:function(e){return function(){S(this,e)}})(r,t))},text:function(e){return arguments.length?this.each(null==e?E:("function"==typeof e?function(e){return function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}}:function(e){return function(){this.textContent=e}})(e)):this.node().textContent},html:function(e){return arguments.length?this.each(null==e?k:("function"==typeof e?function(e){return function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}}:function(e){return function(){this.innerHTML=e}})(e)):this.node().innerHTML},raise:function(){return this.each(C)},lower:function(){return this.each(O)},append:function(e){var t="function"==typeof e?e:_(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})},insert:function(e,t){var r="function"==typeof e?e:_(e),i=null==t?T:"function"==typeof t?t:(0,n.A)(t);return this.select(function(){return this.insertBefore(r.apply(this,arguments),i.apply(this,arguments)||null)})},remove:function(){return this.each(P)},clone:function(e){return this.select(e?A:R)},datum:function(e){return arguments.length?this.property("__data__",e):this.node().__data__},on:function(e,t,r){var n,i,o=(e+"").trim().split(/^|\s+/).map(function(e){var t="",r=e.indexOf(".");return r>=0&&(t=e.slice(r+1),e=e.slice(0,r)),{type:e,name:t}}),a=o.length;if(arguments.length<2){var s=this.node().__on;if(s){for(var l,u=0,c=s.length;u<c;++u)for(n=0,l=s[u];n<a;++n)if((i=o[n]).type===l.type&&i.name===l.name)return l.value}return}for(n=0,s=t?M:N;n<a;++n)this.each(s(o[n],t,r));return this},dispatch:function(e,t){return this.each(("function"==typeof t?function(e,t){return function(){return V(this,e,t.apply(this,arguments))}}:function(e,t){return function(){return V(this,e,t)}})(e,t))},[Symbol.iterator]:function*(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var n,i=e[t],o=0,a=i.length;o<a;++o)(n=i[o])&&(yield n)}};let z=j},17777:(e,t,r)=>{var n=r(88255),i=r(80888),o=r(11051);function a(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new n;++t<r;)this.add(e[t])}a.prototype.add=a.prototype.push=i,a.prototype.has=o,e.exports=a},17863:(e,t,r)=>{e=r.nmd(e);var n=r(12266),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i&&n.process,s=function(){try{var e=o&&o.require&&o.require("util").types;if(e)return e;return a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s},18023:(e,t,r)=>{"use strict";r.d(t,{m:()=>o});var n=r(67553),i=r(11485),o=new class extends n.Q{#d;#u;#c;constructor(){super(),this.#c=e=>{if(!i.S$&&window.addEventListener){let t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#u||this.setEventListener(this.#c)}onUnsubscribe(){this.hasListeners()||(this.#u?.(),this.#u=void 0)}setEventListener(e){this.#c=e,this.#u?.(),this.#u=e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){this.#d!==e&&(this.#d=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return"boolean"==typeof this.#d?this.#d:globalThis.document?.visibilityState!=="hidden"}}},18026:(e,t,r)=>{var n=r(60678),i=r(14426),o=r(79515);e.exports=function(e,t,r){for(var a=-1,s=t.length,l={};++a<s;){var u=t[a],c=n(e,u);r(c,u)&&i(l,o(u,e),c)}return l}},18037:(e,t,r)=>{"use strict";r.d(t,{ob:()=>a,pf:()=>o,s9:()=>s});var n=r(5719),i=r(97563);let[o,a]=(0,n.q)({name:"RenderStrategyContext",hookName:"useRenderStrategyContext",providerName:"<RenderStrategyPropsProvider />"}),s=e=>(0,i.P)()(e,["lazyMount","unmountOnExit"])},18048:(e,t,r)=>{var n=r(60663);e.exports=function(e,t,r){var n,o,a,s,l;return n=e,o=t||i,a=r||function(t){return e.outEdges(t)},s={},(l=n.nodes()).forEach(function(e){s[e]={},s[e][e]={distance:0},l.forEach(function(t){e!==t&&(s[e][t]={distance:1/0})}),a(e).forEach(function(t){var r=t.v===e?t.w:t.v,n=o(t);s[e][r]={distance:n,predecessor:e}})}),l.forEach(function(e){var t=s[e];l.forEach(function(r){var n=s[r];l.forEach(function(r){var i=n[e],o=t[r],a=n[r],s=i.distance+o.distance;s<a.distance&&(a.distance=s,a.predecessor=o.predecessor)})})}),s};var i=n.constant(1)},18145:(e,t,r)=>{var n=r(61998);e.exports=r(52121)(n)},18230:(e,t,r)=>{var n=r(89718),i=r(79910);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==n(e)}},18249:(e,t,r)=>{"use strict";r.d(t,{B:()=>l});var n=r(87259),i=r(80715),o=r(38006),a=r(10425),s=r(71513);let l=(0,i.forwardRef)(function(e,t){let{direction:r="column",align:l,justify:u,gap:c="0.5rem",wrap:d,children:f,separator:h,className:p,...g}=e,v=(0,i.useMemo)(()=>(function(e){let{gap:t,direction:r}=e,n={column:{marginY:t,marginX:0,borderInlineStartWidth:0,borderTopWidth:"1px"},"column-reverse":{marginY:t,marginX:0,borderInlineStartWidth:0,borderTopWidth:"1px"},row:{marginX:t,marginY:0,borderInlineStartWidth:"1px",borderTopWidth:0},"row-reverse":{marginX:t,marginY:0,borderInlineStartWidth:"1px",borderTopWidth:0}};return{"&":(0,s.s)(r,e=>n[e])}})({gap:c,direction:r}),[c,r]),m=(0,i.useMemo)(()=>(0,i.isValidElement)(h)?i.Children.toArray(f).filter(e=>(0,i.isValidElement)(e)).map((e,t,r)=>{let o=void 0!==e.key?e.key:t,a=(0,i.cloneElement)(h,{css:[v,h.props.css]});return(0,n.jsxs)(i.Fragment,{children:[e,t===r.length-1?null:a]},o)}):f,[f,h,v]);return(0,n.jsx)(o.B.div,{ref:t,display:"flex",alignItems:l,justifyContent:u,flexDirection:r,flexWrap:d,gap:h?void 0:c,className:(0,a.cx)("chakra-stack",p),...g,children:m})})},18295:e=>{e.exports=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}},18643:e=>{e.exports=function(e){return e!=e}},19029:(e,t,r)=>{"use strict";r.d(t,{j:()=>i});var n=r(42070);let i=e=>n.y$(e)},19548:(e,t,r)=>{"use strict";r.d(t,{MI:()=>v,Ng:()=>N,Aq:()=>D});var n=r(43690),i=r(76808),o=r(77534),a=r(68683),s=r(75794),l=r(1970),u=(e,t)=>({x:e,y:t}),{min:c,max:d}=Math,{sign:f,abs:h,min:p}=Math,g=r(41562),v=(0,n.y)("menu").parts("arrow","arrowTip","content","contextTrigger","indicator","item","itemGroup","itemGroupLabel","itemIndicator","itemText","positioner","separator","trigger","triggerItem"),m=v.build(),b=e=>e.ids?.trigger??`menu:${e.id}:trigger`,y=e=>e.ids?.contextTrigger??`menu:${e.id}:ctx-trigger`,x=e=>e.ids?.content??`menu:${e.id}:content`,w=e=>e.ids?.positioner??`menu:${e.id}:popper`,S=(e,t)=>`${e.id}/${t}`,E=e=>e?.dataset.value??null,k=(e,t)=>e.ids?.groupLabel?.(t)??`menu:${e.id}:group-label:${t}`,C=e=>e.getById(x(e)),O=e=>e.getById(w(e)),I=e=>e.getById(b(e)),_=e=>e.getById(y(e)),T=e=>{let t=CSS.escape(x(e)),r=`[role^="menuitem"][data-ownedby=${t}]:not([data-disabled])`;return(0,o.YG)(C(e),r)},P=(e,t)=>!!t&&(e.id===t||e.dataset.value===t),R=e=>(0,o.sb)(e)&&(""===e.dataset.disabled||e.hasAttribute("disabled")),A="menu:select";function N(e,t){let{context:r,send:n,state:l,computed:u,prop:c,scope:d}=e,f=l.hasTag("open"),h=r.get("isSubmenu"),p=u("isTypingAhead"),g=c("composite"),v=r.get("currentPlacement"),E=r.get("anchorPoint"),C=r.get("highlightedValue"),O=(0,a.aC)({...c("positioning"),placement:E?"bottom":v});function I(e){return{id:S(d,e.value),disabled:!!e.disabled,highlighted:C===e.value}}function _(e){let t=e.valueText??e.value;return{...e,id:e.value,valueText:t}}function T(e){return{...I(_(e)),checked:!!e.checked}}function P(r){let{closeOnSelect:i,valueText:a,value:s}=r,l=I(r),u=S(d,s);return t.element({...m.item.attrs,id:u,role:"menuitem","aria-disabled":(0,o.rq)(l.disabled),"data-disabled":(0,o.sE)(l.disabled),"data-ownedby":x(d),"data-highlighted":(0,o.sE)(l.highlighted),"data-value":s,"data-valuetext":a,onDragStart(e){e.currentTarget.matches("a[href]")&&e.preventDefault()},onPointerMove(e){if(l.disabled||"mouse"!==e.pointerType)return;let t=e.currentTarget;l.highlighted||n({type:"ITEM_POINTERMOVE",id:u,target:t,closeOnSelect:i})},onPointerLeave(t){!l.disabled&&"mouse"===t.pointerType&&e.event.previous()?.type.includes("POINTER")&&n({type:"ITEM_POINTERLEAVE",id:u,target:t.currentTarget,closeOnSelect:i})},onPointerDown(e){l.disabled||n({type:"ITEM_POINTERDOWN",target:e.currentTarget,id:u,closeOnSelect:i})},onClick(e){(0,o.b9)(e)||(0,o.$b)(e)||l.disabled||n({type:"ITEM_CLICK",target:e.currentTarget,id:u,closeOnSelect:i})}})}return{highlightedValue:C,open:f,setOpen(e){l.hasTag("open")!==e&&n({type:e?"OPEN":"CLOSE"})},setHighlightedValue(e){n({type:"HIGHLIGHTED.SET",value:e})},setParent(e){n({type:"PARENT.SET",value:e,id:e.prop("id")})},setChild(e){n({type:"CHILD.SET",value:e,id:e.prop("id")})},reposition(e={}){n({type:"POSITIONING.SET",options:e})},addItemListener(e){let t=d.getById(e.id);if(!t)return;let r=()=>e.onSelect?.();return t.addEventListener(A,r),()=>t.removeEventListener(A,r)},getContextTriggerProps:()=>t.element({...m.contextTrigger.attrs,dir:c("dir"),id:y(d),"data-state":f?"open":"closed",onPointerDown(e){"mouse"!==e.pointerType&&n({type:"CONTEXT_MENU_START",point:(0,o.TH)(e)})},onPointerCancel(e){"mouse"!==e.pointerType&&n({type:"CONTEXT_MENU_CANCEL"})},onPointerMove(e){"mouse"!==e.pointerType&&n({type:"CONTEXT_MENU_CANCEL"})},onPointerUp(e){"mouse"!==e.pointerType&&n({type:"CONTEXT_MENU_CANCEL"})},onContextMenu(e){n({type:"CONTEXT_MENU",point:(0,o.TH)(e)}),e.preventDefault()},style:{WebkitTouchCallout:"none",WebkitUserSelect:"none",userSelect:"none"}}),getTriggerItemProps(e){let t=e.getTriggerProps();return(0,i.v6)(P({value:t.id}),t)},getTriggerProps:()=>t.button({...h?m.triggerItem.attrs:m.trigger.attrs,"data-placement":r.get("currentPlacement"),type:"button",dir:c("dir"),id:b(d),"data-uid":c("id"),"aria-haspopup":g?"menu":"dialog","aria-controls":x(d),"aria-expanded":f||void 0,"data-state":f?"open":"closed",onPointerMove(e){if("mouse"!==e.pointerType||R(e.currentTarget)||!h)return;let t=(0,o.TH)(e);n({type:"TRIGGER_POINTERMOVE",target:e.currentTarget,point:t})},onPointerLeave(e){if(R(e.currentTarget)||"mouse"!==e.pointerType||!h)return;let t=(0,o.TH)(e);n({type:"TRIGGER_POINTERLEAVE",target:e.currentTarget,point:t})},onPointerDown(e){!R(e.currentTarget)&&((0,o.fv)(e)||e.preventDefault())},onClick(e){!e.defaultPrevented&&(R(e.currentTarget)||n({type:"TRIGGER_CLICK",target:e.currentTarget}))},onBlur(){n({type:"TRIGGER_BLUR"})},onFocus(){n({type:"TRIGGER_FOCUS"})},onKeyDown(e){if(e.defaultPrevented)return;let t={ArrowDown(){n({type:"ARROW_DOWN"})},ArrowUp(){n({type:"ARROW_UP"})},Enter(){n({type:"ARROW_DOWN",src:"enter"})},Space(){n({type:"ARROW_DOWN",src:"space"})}}[(0,o.K)(e,{orientation:"vertical",dir:c("dir")})];t&&(e.preventDefault(),t(e))}}),getIndicatorProps:()=>t.element({...m.indicator.attrs,dir:c("dir"),"data-state":f?"open":"closed"}),getPositionerProps:()=>t.element({...m.positioner.attrs,dir:c("dir"),id:w(d),style:O.floating}),getArrowProps:()=>t.element({id:d.ids?.arrow??`menu:${d.id}:arrow`,...m.arrow.attrs,dir:c("dir"),style:O.arrow}),getArrowTipProps:()=>t.element({...m.arrowTip.attrs,dir:c("dir"),style:O.arrowTip}),getContentProps:()=>t.element({...m.content.attrs,id:x(d),"aria-label":c("aria-label"),hidden:!f,"data-state":f?"open":"closed",role:g?"menu":"dialog",tabIndex:0,dir:c("dir"),"aria-activedescendant":u("highlightedId")||void 0,"aria-labelledby":b(d),"data-placement":v,onPointerEnter(e){"mouse"===e.pointerType&&n({type:"MENU_POINTERENTER"})},onKeyDown(e){if(e.defaultPrevented||!(0,o.gR)(e.currentTarget,(0,o.wt)(e)))return;let t=(0,o.wt)(e);if(t?.closest("[role=menu]")!==e.currentTarget&&t!==e.currentTarget)return;if("Tab"===e.key&&!(0,o.KY)(e))return void e.preventDefault();let r={ArrowDown(){n({type:"ARROW_DOWN"})},ArrowUp(){n({type:"ARROW_UP"})},ArrowLeft(){n({type:"ARROW_LEFT"})},ArrowRight(){n({type:"ARROW_RIGHT"})},Enter(){n({type:"ENTER"})},Space(e){p?n({type:"TYPEAHEAD",key:e.key}):r.Enter?.(e)},Home(){n({type:"HOME"})},End(){n({type:"END"})}},i=r[(0,o.K)(e,{dir:c("dir")})];if(i){i(e),e.stopPropagation(),e.preventDefault();return}!(!c("typeahead")||!(0,o.TW)(e)||(0,o.VL)(e))&&((0,o.fg)(t)||(n({type:"TYPEAHEAD",key:e.key}),e.preventDefault()))}}),getSeparatorProps:()=>t.element({...m.separator.attrs,role:"separator",dir:c("dir"),"aria-orientation":"horizontal"}),getItemState:I,getItemProps:P,getOptionItemState:T,getOptionItemProps(e){let{type:r,disabled:i,closeOnSelect:a}=e,s=_(e),l=T(e);return{...P(s),...t.element({"data-type":r,...m.item.attrs,dir:c("dir"),"data-value":s.value,role:`menuitem${r}`,"aria-checked":!!l.checked,"data-state":l.checked?"checked":"unchecked",onClick(e){i||(0,o.b9)(e)||(0,o.$b)(e)||n({type:"ITEM_CLICK",target:e.currentTarget,option:s,closeOnSelect:a})}})}},getItemIndicatorProps(e){let r=T((0,s.wg)(e)),n=r.checked?"checked":"unchecked";return t.element({...m.itemIndicator.attrs,dir:c("dir"),"data-disabled":(0,o.sE)(r.disabled),"data-highlighted":(0,o.sE)(r.highlighted),"data-state":(0,s.cK)(e,"checked")?n:void 0,hidden:(0,s.cK)(e,"checked")?!r.checked:void 0})},getItemTextProps(e){let r=T((0,s.wg)(e)),n=r.checked?"checked":"unchecked";return t.element({...m.itemText.attrs,dir:c("dir"),"data-disabled":(0,o.sE)(r.disabled),"data-highlighted":(0,o.sE)(r.highlighted),"data-state":(0,s.cK)(e,"checked")?n:void 0})},getItemGroupLabelProps:e=>t.element({...m.itemGroupLabel.attrs,id:k(d,e.htmlFor),dir:c("dir")}),getItemGroupProps:e=>{let r;return t.element({id:(r=e.id,d.ids?.group?.(r)??`menu:${d.id}:group:${r}`),...m.itemGroup.attrs,dir:c("dir"),"aria-labelledby":k(d,e.id),role:"group"})}}}var{not:M,and:L,or:V}=(0,i.b6)(),D=(0,i.Op)({props:({props:e})=>({closeOnSelect:!0,typeahead:!0,composite:!0,loopFocus:!1,navigate(e){(0,o.Il)(e.node)},...e,positioning:{placement:"bottom-start",gutter:8,...e.positioning}}),initialState:({prop:e})=>e("open")||e("defaultOpen")?"open":"idle",context:({bindable:e,prop:t})=>({suspendPointer:e(()=>({defaultValue:!1})),highlightedValue:e(()=>({defaultValue:t("defaultHighlightedValue")||null,value:t("highlightedValue"),onChange(e){t("onHighlightChange")?.({highlightedValue:e})}})),lastHighlightedValue:e(()=>({defaultValue:null})),currentPlacement:e(()=>({defaultValue:void 0})),intentPolygon:e(()=>({defaultValue:null})),anchorPoint:e(()=>({defaultValue:null,hash:e=>`x: ${e?.x}, y: ${e?.y}`})),isSubmenu:e(()=>({defaultValue:!1}))}),refs:()=>({parent:null,children:{},typeaheadState:{...o.tt.defaultOptions},positioningOverride:{}}),computed:{isRtl:({prop:e})=>"rtl"===e("dir"),isTypingAhead:({refs:e})=>""!==e.get("typeaheadState").keysSoFar,highlightedId:({context:e,scope:t,refs:r})=>(function(e,t,r){let n=Object.keys(e).length>0;if(!t)return null;if(!n)return S(r,t);for(let r in e){let n=b(e[r].scope);if(n===t)return n}return S(r,t)})(r.get("children"),e.get("highlightedValue"),t)},watch({track:e,action:t,context:r,prop:n}){e([()=>r.get("isSubmenu")],()=>{t(["setSubmenuPlacement"])}),e([()=>r.hash("anchorPoint")],()=>{r.get("anchorPoint")&&t(["reposition"])}),e([()=>n("open")],()=>{t(["toggleVisibility"])})},on:{"PARENT.SET":{actions:["setParentMenu"]},"CHILD.SET":{actions:["setChildMenu"]},OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}],OPEN_AUTOFOCUS:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["highlightFirstItem","invokeOnOpen"]}],CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],"HIGHLIGHTED.RESTORE":{actions:["restoreHighlightedItem"]},"HIGHLIGHTED.SET":{actions:["setHighlightedItem"]}},states:{idle:{tags:["closed"],on:{"CONTROLLED.OPEN":{target:"open"},"CONTROLLED.CLOSE":{target:"closed"},CONTEXT_MENU_START:{target:"opening:contextmenu",actions:["setAnchorPoint"]},CONTEXT_MENU:[{guard:"isOpenControlled",actions:["setAnchorPoint","invokeOnOpen"]},{target:"open",actions:["setAnchorPoint","invokeOnOpen"]}],TRIGGER_CLICK:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}],TRIGGER_FOCUS:{guard:M("isSubmenu"),target:"closed"},TRIGGER_POINTERMOVE:{guard:"isSubmenu",target:"opening"}}},"opening:contextmenu":{tags:["closed"],effects:["waitForLongPress"],on:{"CONTROLLED.OPEN":{target:"open"},"CONTROLLED.CLOSE":{target:"closed"},CONTEXT_MENU_CANCEL:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],"LONG_PRESS.OPEN":[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}]}},opening:{tags:["closed"],effects:["waitForOpenDelay"],on:{"CONTROLLED.OPEN":{target:"open"},"CONTROLLED.CLOSE":{target:"closed"},BLUR:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],TRIGGER_POINTERLEAVE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],"DELAY.OPEN":[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}]}},closing:{tags:["open"],effects:["trackPointerMove","trackInteractOutside","waitForCloseDelay"],on:{"CONTROLLED.OPEN":{target:"open"},"CONTROLLED.CLOSE":{target:"closed",actions:["focusParentMenu","restoreParentHighlightedItem"]},MENU_POINTERENTER:{target:"open",actions:["clearIntentPolygon"]},POINTER_MOVED_AWAY_FROM_SUBMENU:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["focusParentMenu","restoreParentHighlightedItem"]}],"DELAY.CLOSE":[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["focusParentMenu","restoreParentHighlightedItem","invokeOnClose"]}]}},closed:{tags:["closed"],entry:["clearHighlightedItem","focusTrigger","resumePointer","clearAnchorPoint"],on:{"CONTROLLED.OPEN":[{guard:V("isOpenAutoFocusEvent","isArrowDownEvent"),target:"open",actions:["highlightFirstItem"]},{guard:"isArrowUpEvent",target:"open",actions:["highlightLastItem"]},{target:"open"}],CONTEXT_MENU_START:{target:"opening:contextmenu",actions:["setAnchorPoint"]},CONTEXT_MENU:[{guard:"isOpenControlled",actions:["setAnchorPoint","invokeOnOpen"]},{target:"open",actions:["setAnchorPoint","invokeOnOpen"]}],TRIGGER_CLICK:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}],TRIGGER_POINTERMOVE:{guard:"isTriggerItem",target:"opening"},TRIGGER_BLUR:{target:"idle"},ARROW_DOWN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["highlightFirstItem","invokeOnOpen"]}],ARROW_UP:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["highlightLastItem","invokeOnOpen"]}]}},open:{tags:["open"],effects:["trackInteractOutside","trackPositioning","scrollToHighlightedItem"],entry:["focusMenu","resumePointer"],on:{"CONTROLLED.CLOSE":[{target:"closed",guard:"isArrowLeftEvent",actions:["focusParentMenu"]},{target:"closed"}],TRIGGER_CLICK:[{guard:L(M("isTriggerItem"),"isOpenControlled"),actions:["invokeOnClose"]},{guard:M("isTriggerItem"),target:"closed",actions:["invokeOnClose"]}],CONTEXT_MENU:{actions:["setAnchorPoint","focusMenu"]},ARROW_UP:{actions:["highlightPrevItem","focusMenu"]},ARROW_DOWN:{actions:["highlightNextItem","focusMenu"]},ARROW_LEFT:[{guard:L("isSubmenu","isOpenControlled"),actions:["invokeOnClose"]},{guard:"isSubmenu",target:"closed",actions:["focusParentMenu","invokeOnClose"]}],HOME:{actions:["highlightFirstItem","focusMenu"]},END:{actions:["highlightLastItem","focusMenu"]},ARROW_RIGHT:{guard:"isTriggerItemHighlighted",actions:["openSubmenu"]},ENTER:[{guard:"isTriggerItemHighlighted",actions:["openSubmenu"]},{actions:["clickHighlightedItem"]}],ITEM_POINTERMOVE:[{guard:M("isPointerSuspended"),actions:["setHighlightedItem","focusMenu"]},{actions:["setLastHighlightedItem"]}],ITEM_POINTERLEAVE:{guard:L(M("isPointerSuspended"),M("isTriggerItem")),actions:["clearHighlightedItem"]},ITEM_CLICK:[{guard:L(M("isTriggerItemHighlighted"),M("isHighlightedItemEditable"),"closeOnSelect","isOpenControlled"),actions:["invokeOnSelect","setOptionState","closeRootMenu","invokeOnClose"]},{guard:L(M("isTriggerItemHighlighted"),M("isHighlightedItemEditable"),"closeOnSelect"),target:"closed",actions:["invokeOnSelect","setOptionState","closeRootMenu","invokeOnClose"]},{guard:L(M("isTriggerItemHighlighted"),M("isHighlightedItemEditable")),actions:["invokeOnSelect","setOptionState"]},{actions:["setHighlightedItem"]}],TRIGGER_POINTERMOVE:{guard:"isTriggerItem",actions:["setIntentPolygon"]},TRIGGER_POINTERLEAVE:{target:"closing"},ITEM_POINTERDOWN:{actions:["setHighlightedItem"]},TYPEAHEAD:{actions:["highlightMatchedItem"]},FOCUS_MENU:{actions:["focusMenu"]},"POSITIONING.SET":{actions:["reposition"]}}}},implementations:{guards:{closeOnSelect:({prop:e,event:t})=>!!(t?.closeOnSelect??e("closeOnSelect")),isTriggerItem:({event:e})=>(e=>!!e?.getAttribute("role")?.startsWith("menuitem")&&!!e?.hasAttribute("aria-controls"))(e.target),isTriggerItemHighlighted:({event:e,scope:t,computed:r})=>{let n=e.target??t.getById(r("highlightedId"));return!!n?.hasAttribute("aria-controls")},isSubmenu:({context:e})=>e.get("isSubmenu"),isPointerSuspended:({context:e})=>e.get("suspendPointer"),isHighlightedItemEditable:({scope:e,computed:t})=>(0,o.fg)(e.getById(t("highlightedId"))),isOpenControlled:({prop:e})=>void 0!==e("open"),isArrowLeftEvent:({event:e})=>e.previousEvent?.type==="ARROW_LEFT",isArrowUpEvent:({event:e})=>e.previousEvent?.type==="ARROW_UP",isArrowDownEvent:({event:e})=>e.previousEvent?.type==="ARROW_DOWN",isOpenAutoFocusEvent:({event:e})=>e.previousEvent?.type==="OPEN_AUTOFOCUS"},effects:{waitForOpenDelay({send:e}){let t=setTimeout(()=>{e({type:"DELAY.OPEN"})},100);return()=>clearTimeout(t)},waitForCloseDelay({send:e}){let t=setTimeout(()=>{e({type:"DELAY.CLOSE"})},300);return()=>clearTimeout(t)},waitForLongPress({send:e}){let t=setTimeout(()=>{e({type:"LONG_PRESS.OPEN"})},700);return()=>clearTimeout(t)},trackPositioning({context:e,prop:t,scope:r,refs:n}){if(_(r))return;let i={...t("positioning"),...n.get("positioningOverride")};return e.set("currentPlacement",i.placement),(0,a.Ox)(I(r),()=>O(r),{...i,defer:!0,onComplete(t){e.set("currentPlacement",t.placement)}})},trackInteractOutside({refs:e,scope:t,prop:r,context:n,send:i}){let a=!0;return(0,l.u)(()=>C(t),{type:"menu",defer:!0,exclude:[I(t)],onInteractOutside:r("onInteractOutside"),onRequestDismiss:r("onRequestDismiss"),onFocusOutside(e){r("onFocusOutside")?.(e);let n=(0,o.wt)(e.detail.originalEvent);if((0,o.gR)(_(t),n))return void e.preventDefault()},onEscapeKeyDown(t){r("onEscapeKeyDown")?.(t),n.get("isSubmenu")&&t.preventDefault(),F({parent:e.get("parent")})},onPointerDownOutside(e){r("onPointerDownOutside")?.(e);let n=(0,o.wt)(e.detail.originalEvent);if((0,o.gR)(_(t),n)&&e.detail.contextmenu)return void e.preventDefault();a=!e.detail.focusable},onDismiss(){i({type:"CLOSE",src:"interact-outside",restoreFocus:a})}})},trackPointerMove({context:e,scope:t,send:r,refs:n,flush:i}){let a=n.get("parent");i(()=>{a.context.set("suspendPointer",!0)});let s=t.getDoc();return(0,o.kn)(s,"pointermove",t=>{var n,i;n=e.get("intentPolygon"),i={x:t.clientX,y:t.clientY},n&&function(e,t){let{x:r,y:n}=t,i=!1;for(let t=0,o=e.length-1;t<e.length;o=t++){let a=e[t].x,s=e[t].y,l=e[o].x,u=e[o].y;s>n!=u>n&&r<(l-a)*(n-s)/(u-s)+a&&(i=!i)}return i}(n,i)||(r({type:"POINTER_MOVED_AWAY_FROM_SUBMENU"}),a.context.set("suspendPointer",!1))})},scrollToHighlightedItem({event:e,scope:t,computed:r}){let n=()=>{if(e.current().type.startsWith("ITEM_POINTER"))return;let n=t.getById(r("highlightedId")),i=C(t);(0,o.Rt)(n,{rootEl:i,block:"nearest"})};return(0,o.er)(()=>n()),(0,o.mx)(()=>C(t),{defer:!0,attributes:["aria-activedescendant"],callback:n})}},actions:{setAnchorPoint({context:e,event:t}){e.set("anchorPoint",e=>(0,s.n4)(e,t.point)?e:t.point)},setSubmenuPlacement({context:e,computed:t,refs:r}){if(!e.get("isSubmenu"))return;let n=t("isRtl")?"left-start":"right-start";r.set("positioningOverride",{placement:n,gutter:0})},reposition({context:e,scope:t,prop:r,event:n,refs:i}){let o=e.get("anchorPoint"),s={...r("positioning"),...i.get("positioningOverride")};(0,a.Ox)(I(t),()=>O(t),{...s,defer:!0,getAnchorRect:o?()=>({width:0,height:0,...o}):void 0,...n.options??{},listeners:!1,onComplete(t){e.set("currentPlacement",t.placement)}})},setOptionState({event:e}){if(!e.option)return;let{checked:t,onCheckedChange:r,type:n}=e.option;"radio"===n?r?.(!0):"checkbox"===n&&r?.(!t)},clickHighlightedItem({scope:e,computed:t,prop:r,context:n}){let i=e.getById(t("highlightedId"));if(!i||i.dataset.disabled)return;let a=n.get("highlightedValue");(0,o.IR)(i)?r("navigate")?.({value:a,node:i,href:i.href}):queueMicrotask(()=>i.click())},setIntentPolygon({context:e,scope:t,event:r}){let n=C(t),i=e.get("currentPlacement");if(!n||!i)return;let o=function(e,t){let{top:r,right:n,left:i,bottom:o}=function(e){let t=u(e.minX,e.minY),r=u(e.maxX,e.minY);return{top:t,right:r,bottom:u(e.maxX,e.maxY),left:u(e.minX,e.maxY)}}(function(e){let{x:t,y:r,width:n,height:i}=e,o=t+n/2,a=r+i/2;return{x:t,y:r,width:n,height:i,minX:t,minY:r,maxX:t+n,maxY:r+i,midX:o,midY:a,center:u(o,a)}}(e)),[a]=t.split("-");return({top:[i,r,n,o],right:[r,n,o,i],bottom:[r,i,o,n],left:[n,r,i,o]})[a]}(n.getBoundingClientRect(),i);if(!o)return;let s="right"===(0,a.bf)(i);e.set("intentPolygon",[{...r.point,x:r.point.x+(s?-5:5)},...o])},clearIntentPolygon({context:e}){e.set("intentPolygon",null)},clearAnchorPoint({context:e}){e.set("anchorPoint",null)},resumePointer({refs:e,flush:t}){let r=e.get("parent");r&&t(()=>{r.context.set("suspendPointer",!1)})},setHighlightedItem({context:e,event:t}){let r=t.value||E(t.target);e.set("highlightedValue",r)},clearHighlightedItem({context:e}){e.set("highlightedValue",null)},focusMenu({scope:e}){(0,o.er)(()=>{let t=C(e),r=(0,o.RD)({root:t,enabled:!(0,o.gR)(t,e.getActiveElement()),filter:e=>!e.role?.startsWith("menuitem")});r?.focus({preventScroll:!0})})},highlightFirstItem({context:e,scope:t}){(C(t)?queueMicrotask:o.er)(()=>{let r=(0,s.$1)(T(t));r&&e.set("highlightedValue",E(r))})},highlightLastItem({context:e,scope:t}){(C(t)?queueMicrotask:o.er)(()=>{let r=(0,s.HV)(T(t));r&&e.set("highlightedValue",E(r))})},highlightNextItem({context:e,scope:t,event:r,prop:n}){let i=((e,t)=>{let r=T(e),n=r.findIndex(e=>P(e,t.value));return(0,s.K2)(r,n,{loop:t.loop??t.loopFocus})})(t,{loop:r.loop,value:e.get("highlightedValue"),loopFocus:n("loopFocus")});e.set("highlightedValue",E(i))},highlightPrevItem({context:e,scope:t,event:r,prop:n}){let i=((e,t)=>{let r=T(e),n=r.findIndex(e=>P(e,t.value));return(0,s.YL)(r,n,{loop:t.loop??t.loopFocus})})(t,{loop:r.loop,value:e.get("highlightedValue"),loopFocus:n("loopFocus")});e.set("highlightedValue",E(i))},invokeOnSelect({context:e,prop:t,scope:r}){let n=e.get("highlightedValue");null!=n&&(!function(e,t){if(!e)return;let r=new((0,o.zk)(e)).CustomEvent(A,{detail:{value:t}});e.dispatchEvent(r)}(n?r.getById(S(r,n)):null,n),t("onSelect")?.({value:n}))},focusTrigger({scope:e,context:t,event:r}){t.get("isSubmenu")||t.get("anchorPoint")||!1===r.restoreFocus||queueMicrotask(()=>I(e)?.focus({preventScroll:!0}))},highlightMatchedItem({scope:e,context:t,event:r,refs:n}){let i=((e,t)=>{let r=T(e),n=r.find(e=>P(e,t.value));return(0,o.tt)(r,{state:t.typeaheadState,key:t.key,activeId:n?.id??null})})(e,{key:r.key,value:t.get("highlightedValue"),typeaheadState:n.get("typeaheadState")});i&&t.set("highlightedValue",E(i))},setParentMenu({refs:e,event:t,context:r}){e.set("parent",t.value),r.set("isSubmenu",!0)},setChildMenu({refs:e,event:t}){let r=e.get("children");r[t.id]=t.value,e.set("children",r)},closeRootMenu({refs:e}){F({parent:e.get("parent")})},openSubmenu({refs:e,scope:t,computed:r}){let n=t.getById(r("highlightedId")),i=n?.getAttribute("data-uid"),o=e.get("children"),a=i?o[i]:null;a?.send({type:"OPEN_AUTOFOCUS"})},focusParentMenu({refs:e}){e.get("parent")?.send({type:"FOCUS_MENU"})},setLastHighlightedItem({context:e,event:t}){e.set("lastHighlightedValue",E(t.target))},restoreHighlightedItem({context:e}){e.get("lastHighlightedValue")&&(e.set("highlightedValue",e.get("lastHighlightedValue")),e.set("lastHighlightedValue",null))},restoreParentHighlightedItem({refs:e}){e.get("parent")?.send({type:"HIGHLIGHTED.RESTORE"})},invokeOnOpen({prop:e}){e("onOpenChange")?.({open:!0})},invokeOnClose({prop:e}){e("onOpenChange")?.({open:!1})},toggleVisibility({prop:e,event:t,send:r}){r({type:e("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:t})}}}});function F(e){let t=e.parent;for(;t&&t.context.get("isSubmenu");)t=t.refs.get("parent");t?.send({type:"CLOSE"})}var j=(0,g.x)()(["anchorPoint","aria-label","closeOnSelect","composite","defaultHighlightedValue","defaultOpen","dir","getRootNode","highlightedValue","id","ids","loopFocus","navigate","onEscapeKeyDown","onFocusOutside","onHighlightChange","onInteractOutside","onOpenChange","onPointerDownOutside","onRequestDismiss","onSelect","open","positioning","typeahead"]);(0,s.PM)(j);var z=(0,g.x)()(["closeOnSelect","disabled","value","valueText"]);(0,s.PM)(z);var B=(0,g.x)()(["htmlFor"]);(0,s.PM)(B);var U=(0,g.x)()(["id"]);(0,s.PM)(U);var H=(0,g.x)()(["checked","closeOnSelect","disabled","onCheckedChange","type","value","valueText"]);(0,s.PM)(H)},19654:(e,t,r)=>{var n=r(94193),i=Object.create;e.exports=function(){function e(){}return function(t){if(!n(t))return{};if(i)return i(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}()},20029:(e,t,r)=>{"use strict";r.d(t,{a:()=>n});let n=(0,r(38006).B)("div");n.displayName="Box"},20349:(e,t,r)=>{var n=r(75114),i=r(92522),o=r(94193),a=r(40103),s=/^\[object .+?Constructor\]$/,l=Object.prototype,u=Function.prototype.toString,c=l.hasOwnProperty,d=RegExp("^"+u.call(c).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!o(e)||i(e))&&(n(e)?d:s).test(a(e))}},20383:(e,t,r)=>{var n=r(89718),i=r(79910);e.exports=function(e){return"number"==typeof e||i(e)&&"[object Number]"==n(e)}},20871:(e,t,r)=>{"use strict";r.d(t,{A:()=>i,g:()=>n});var n="http://www.w3.org/1999/xhtml";let i={svg:"http://www.w3.org/2000/svg",xhtml:n,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}},21042:(e,t,r)=>{var n=r(24756),i=r(42407),o=r(18145);e.exports=function(e){return o(i(e,void 0,n),e+"")}},21104:(e,t,r)=>{"use strict";r.d(t,{w:()=>f});var n=r(87259),i=r(80715),o=r(62523),a=r(38006),s=r(10425),l=r(69446),u=r(82415);let{useRecipeResult:c,PropsProvider:d}=(0,o.a)({key:"separator"}),f=(0,i.forwardRef)(function(e,t){let{styles:r,className:i,props:o}=c(e),d=e.orientation||"horizontal";return(0,n.jsx)(a.B.span,{ref:t,role:(0,l.Kg)(d)?"separator":"presentation","aria-orientation":(0,l.Kg)(d)?d:void 0,...(0,u.c)(o,["orientation"]),className:(0,s.cx)(i,e.className),css:[r,e.css]})})},21113:(e,t,r)=>{var n=r(48613),i=r(26380);function o(e,t,r,n,o,a){var s=o[t][a-1],l=i.addDummyNode(e,"border",{width:0,height:0,rank:a,borderType:t},r);o[t][a]=l,e.setParent(l,n),s&&e.setEdge(s,l,{weight:1})}e.exports=function(e){n.forEach(e.children(),function t(r){var i=e.children(r),a=e.node(r);if(i.length&&n.forEach(i,t),n.has(a,"minRank")){a.borderLeft=[],a.borderRight=[];for(var s=a.minRank,l=a.maxRank+1;s<l;++s)o(e,"borderLeft","_bl",r,a,s),o(e,"borderRight","_br",r,a,s)}})}},21317:(e,t,r)=>{"use strict";r.d(t,{gC:()=>R,k1:()=>_,aD:()=>P,Lv:()=>N,mk:()=>I,Sb:()=>T,l$:()=>O});var n=r(87259),i=r(70568),o=r(76808),a=r(42070),s=r(80715),l=r(24359),u=r(30681),c=r(634);let[d,f]=(0,r(5719).q)({name:"ToastContext",hookName:"useToastContext",providerName:"<ToastProvider />"}),h=(0,s.forwardRef)((e,t)=>{let{toaster:r,children:d,...f}=e,h=(0,u.g)(),g=(0,l.w)(),v=(0,i.zl)(a.Os.machine,{store:r,id:(0,s.useId)(),dir:null==h?void 0:h.dir,getRootNode:null==g?void 0:g.getRootNode}),m=a.Os.connect(v,i._B),b=(0,o.v6)(m.getGroupProps(),f);return(0,n.jsx)(c.X.div,{...b,ref:t,children:m.getToasts().map((e,t)=>(0,n.jsx)(p,{value:e,parent:v,index:t,children:e=>d(e)},e.id))})});h.displayName="Toaster";let p=e=>{let t=(0,l.w)(),r={...e.value,parent:e.parent,index:e.index,getRootNode:t.getRootNode},o=(0,i.zl)(a.Aq,{...r}),s=a.Ng(o,i._B);return(0,n.jsx)(d,{value:s,children:e.children(e.value)})};p.displayName="ToastActor";let g=(0,s.forwardRef)((e,t)=>{let r=f(),i=(0,o.v6)(r.getRootProps(),e);return(0,n.jsxs)("div",{...i,ref:t,children:[(0,n.jsx)("div",{...r.getGhostBeforeProps()}),e.children,(0,n.jsx)("div",{...r.getGhostAfterProps()})]})});g.displayName="ToastRoot";let v=(0,s.forwardRef)((e,t)=>{let r=f(),i=(0,o.v6)(r.getCloseTriggerProps(),e);return(0,n.jsx)(c.X.button,{...i,ref:t})});v.displayName="ToastCloseTrigger";let m=(0,s.forwardRef)((e,t)=>{let r=f(),i=(0,o.v6)(r.getTitleProps(),e);return(0,n.jsx)(c.X.div,{...i,ref:t})});m.displayName="ToastTitle";let b=(0,s.forwardRef)((e,t)=>{let r=f(),i=(0,o.v6)(r.getDescriptionProps(),e);return(0,n.jsx)(c.X.div,{...i,ref:t})});b.displayName="ToastDescription";let y=(0,s.forwardRef)((e,t)=>{let r=f(),i=(0,o.v6)(r.getActionTriggerProps(),e);return(0,n.jsx)(c.X.button,{...i,ref:t})});y.displayName="ToastActionTrigger";var x=r(9242),w=r(38006),S=r(45921);let{withProvider:E,withContext:k,useStyles:C}=(0,x.c)({key:"toast"}),O=(0,w.B)(h,{},{forwardAsChild:!0}),I=E(g,"root",{forwardAsChild:!0}),_=k(v,"closeTrigger",{forwardAsChild:!0,defaultProps:{children:(0,n.jsx)(S.US,{})}}),T=k(m,"title",{forwardAsChild:!0}),P=k(b,"description",{forwardAsChild:!0}),R=k(y,"actionTrigger",{forwardAsChild:!0}),A={warning:S.id,success:S.C1,error:S.id},N=(0,s.forwardRef)(function(e,t){let{unstyled:r,...i}=e,o=f(),a=C(),s=A[o.type];return s?(0,n.jsx)(s,{ref:t,...i,css:[r?void 0:a.indicator,e.css]}):null})},21694:(e,t,r)=>{var n=r(63281),i=r(59567),o=r(35385),a=r(87560),s=r(94193),l=r(93773),u=r(78478);e.exports=function e(t,r,c,d,f){t!==r&&o(r,function(o,l){if(f||(f=new n),s(o))a(t,r,l,c,e,d,f);else{var h=d?d(u(t,l),o,l+"",t,r,f):void 0;void 0===h&&(h=o),i(t,l,h)}},l)}},21705:e=>{var t=/\w*$/;e.exports=function(e){var r=new e.constructor(e.source,t.exec(e));return r.lastIndex=e.lastIndex,r}},22071:(e,t,r)=>{var n=r(63929),i=r(61517),o=r(93773);e.exports=function(e){return n(e,o,i)}},22437:(e,t,r)=>{var n=r(28951);e.exports=function(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}},22439:(e,t,r)=>{var n=r(18026),i=r(91377);e.exports=function(e,t){return n(e,t,function(t,r){return i(e,r)})}},22496:(e,t,r)=>{"use strict";r.d(t,{m:()=>eS});var n=new Map("WebkitAppearance,WebkitBorderBefore,WebkitBorderBeforeColor,WebkitBorderBeforeStyle,WebkitBorderBeforeWidth,WebkitBoxReflect,WebkitLineClamp,WebkitMask,WebkitMaskAttachment,WebkitMaskClip,WebkitMaskComposite,WebkitMaskImage,WebkitMaskOrigin,WebkitMaskPosition,WebkitMaskPositionX,WebkitMaskPositionY,WebkitMaskRepeat,WebkitMaskRepeatX,WebkitMaskRepeatY,WebkitMaskSize,WebkitOverflowScrolling,WebkitTapHighlightColor,WebkitTextFillColor,WebkitTextStroke,WebkitTextStrokeColor,WebkitTextStrokeWidth,WebkitTouchCallout,WebkitUserModify,WebkitUserSelect,accentColor,alignContent,alignItems,alignSelf,alignTracks,all,anchorName,anchorScope,animation,animationComposition,animationDelay,animationDirection,animationDuration,animationFillMode,animationIterationCount,animationName,animationPlayState,animationRange,animationRangeEnd,animationRangeStart,animationTimeline,animationTimingFunction,appearance,aspectRatio,backdropFilter,backfaceVisibility,background,backgroundAttachment,backgroundBlendMode,backgroundClip,backgroundColor,backgroundImage,backgroundOrigin,backgroundPosition,backgroundPositionX,backgroundPositionY,backgroundRepeat,backgroundSize,blockSize,border,borderBlock,borderBlockColor,borderBlockEnd,borderBlockEndColor,borderBlockEndStyle,borderBlockEndWidth,borderBlockStart,borderBlockStartColor,borderBlockStartStyle,borderBlockStartWidth,borderBlockStyle,borderBlockWidth,borderBottom,borderBottomColor,borderBottomLeftRadius,borderBottomRightRadius,borderBottomStyle,borderBottomWidth,borderCollapse,borderColor,borderEndEndRadius,borderEndStartRadius,borderImage,borderImageOutset,borderImageRepeat,borderImageSlice,borderImageSource,borderImageWidth,borderInline,borderInlineColor,borderInlineEnd,borderInlineEndColor,borderInlineEndStyle,borderInlineEndWidth,borderInlineStart,borderInlineStartColor,borderInlineStartStyle,borderInlineStartWidth,borderInlineStyle,borderInlineWidth,borderLeft,borderLeftColor,borderLeftStyle,borderLeftWidth,borderRadius,borderRight,borderRightColor,borderRightStyle,borderRightWidth,borderSpacing,borderStartEndRadius,borderStartStartRadius,borderStyle,borderTop,borderTopColor,borderTopLeftRadius,borderTopRightRadius,borderTopStyle,borderTopWidth,borderWidth,bottom,boxAlign,boxDecorationBreak,boxDirection,boxFlex,boxFlexGroup,boxLines,boxOrdinalGroup,boxOrient,boxPack,boxShadow,boxSizing,breakAfter,breakBefore,breakInside,captionSide,caret,caretColor,caretShape,clear,clip,clipPath,clipRule,color,colorInterpolationFilters,colorScheme,columnCount,columnFill,columnGap,columnRule,columnRuleColor,columnRuleStyle,columnRuleWidth,columnSpan,columnWidth,columns,contain,containIntrinsicBlockSize,containIntrinsicHeight,containIntrinsicInlineSize,containIntrinsicSize,containIntrinsicWidth,container,containerName,containerType,content,contentVisibility,counterIncrement,counterReset,counterSet,cursor,cx,cy,d,direction,display,dominantBaseline,emptyCells,fieldSizing,fill,fillOpacity,fillRule,filter,flex,flexBasis,flexDirection,flexFlow,flexGrow,flexShrink,flexWrap,float,floodColor,floodOpacity,font,fontFamily,fontFeatureSettings,fontKerning,fontLanguageOverride,fontOpticalSizing,fontPalette,fontSize,fontSizeAdjust,fontSmooth,fontStretch,fontStyle,fontSynthesis,fontSynthesisPosition,fontSynthesisSmallCaps,fontSynthesisStyle,fontSynthesisWeight,fontVariant,fontVariantAlternates,fontVariantCaps,fontVariantEastAsian,fontVariantEmoji,fontVariantLigatures,fontVariantNumeric,fontVariantPosition,fontVariationSettings,fontWeight,forcedColorAdjust,gap,grid,gridArea,gridAutoColumns,gridAutoFlow,gridAutoRows,gridColumn,gridColumnEnd,gridColumnGap,gridColumnStart,gridGap,gridRow,gridRowEnd,gridRowGap,gridRowStart,gridTemplate,gridTemplateAreas,gridTemplateColumns,gridTemplateRows,hangingPunctuation,height,hyphenateCharacter,hyphenateLimitChars,hyphens,imageOrientation,imageRendering,imageResolution,imeMode,initialLetter,initialLetterAlign,inlineSize,inset,insetBlock,insetBlockEnd,insetBlockStart,insetInline,insetInlineEnd,insetInlineStart,interpolateSize,isolation,justifyContent,justifyItems,justifySelf,justifyTracks,left,letterSpacing,lightingColor,lineBreak,lineClamp,lineHeight,lineHeightStep,listStyle,listStyleImage,listStylePosition,listStyleType,margin,marginBlock,marginBlockEnd,marginBlockStart,marginBottom,marginInline,marginInlineEnd,marginInlineStart,marginLeft,marginRight,marginTop,marginTrim,marker,markerEnd,markerMid,markerStart,mask,maskBorder,maskBorderMode,maskBorderOutset,maskBorderRepeat,maskBorderSlice,maskBorderSource,maskBorderWidth,maskClip,maskComposite,maskImage,maskMode,maskOrigin,maskPosition,maskRepeat,maskSize,maskType,masonryAutoFlow,mathDepth,mathShift,mathStyle,maxBlockSize,maxHeight,maxInlineSize,maxLines,maxWidth,minBlockSize,minHeight,minInlineSize,minWidth,mixBlendMode,objectFit,objectPosition,offset,offsetAnchor,offsetDistance,offsetPath,offsetPosition,offsetRotate,opacity,order,orphans,outline,outlineColor,outlineOffset,outlineStyle,outlineWidth,overflow,overflowAnchor,overflowBlock,overflowClipBox,overflowClipMargin,overflowInline,overflowWrap,overflowX,overflowY,overlay,overscrollBehavior,overscrollBehaviorBlock,overscrollBehaviorInline,overscrollBehaviorX,overscrollBehaviorY,padding,paddingBlock,paddingBlockEnd,paddingBlockStart,paddingBottom,paddingInline,paddingInlineEnd,paddingInlineStart,paddingLeft,paddingRight,paddingTop,page,pageBreakAfter,pageBreakBefore,pageBreakInside,paintOrder,perspective,perspectiveOrigin,placeContent,placeItems,placeSelf,pointerEvents,position,positionAnchor,positionArea,positionTry,positionTryFallbacks,positionTryOrder,positionVisibility,printColorAdjust,quotes,r,resize,right,rotate,rowGap,rubyAlign,rubyMerge,rubyPosition,rx,ry,scale,scrollBehavior,scrollMargin,scrollMarginBlock,scrollMarginBlockEnd,scrollMarginBlockStart,scrollMarginBottom,scrollMarginInline,scrollMarginInlineEnd,scrollMarginInlineStart,scrollMarginLeft,scrollMarginRight,scrollMarginTop,scrollPadding,scrollPaddingBlock,scrollPaddingBlockEnd,scrollPaddingBlockStart,scrollPaddingBottom,scrollPaddingInline,scrollPaddingInlineEnd,scrollPaddingInlineStart,scrollPaddingLeft,scrollPaddingRight,scrollPaddingTop,scrollSnapAlign,scrollSnapCoordinate,scrollSnapDestination,scrollSnapPointsX,scrollSnapPointsY,scrollSnapStop,scrollSnapType,scrollSnapTypeX,scrollSnapTypeY,scrollTimeline,scrollTimelineAxis,scrollTimelineName,scrollbarColor,scrollbarGutter,scrollbarWidth,shapeImageThreshold,shapeMargin,shapeOutside,shapeRendering,stopColor,stopOpacity,stroke,strokeDasharray,strokeDashoffset,strokeLinecap,strokeLinejoin,strokeMiterlimit,strokeOpacity,strokeWidth,tabSize,tableLayout,textAlign,textAlignLast,textAnchor,textBox,textBoxEdge,textBoxTrim,textCombineUpright,textDecoration,textDecorationColor,textDecorationLine,textDecorationSkip,textDecorationSkipInk,textDecorationStyle,textDecorationThickness,textEmphasis,textEmphasisColor,textEmphasisPosition,textEmphasisStyle,textIndent,textJustify,textOrientation,textOverflow,textRendering,textShadow,textSizeAdjust,textSpacingTrim,textTransform,textUnderlineOffset,textUnderlinePosition,textWrap,textWrapMode,textWrapStyle,timelineScope,top,touchAction,transform,transformBox,transformOrigin,transformStyle,transition,transitionBehavior,transitionDelay,transitionDuration,transitionProperty,transitionTimingFunction,translate,unicodeBidi,userSelect,vectorEffect,verticalAlign,viewTimeline,viewTimelineAxis,viewTimelineInset,viewTimelineName,viewTransitionName,visibility,whiteSpace,whiteSpaceCollapse,widows,width,willChange,wordBreak,wordSpacing,wordWrap,writingMode,x,y,zIndex,zoom,alignmentBaseline,baselineShift,colorInterpolation,colorRendering,glyphOrientationVertical".split(",").concat("".split(",")).map(e=>[e,!0])),i=/&|@/,o=function(e){let t=Object.create(null);return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}(e=>n.has(e)||e.startsWith("--")||i.test(e)),a=r(13431),s=r(11006),l=r(71513);function u(e,t){let r={};return(0,l.B)(e,(e,t)=>{e&&(r[t.join(".")]=e.value)},{stop:t}),r}var c=r(69446),d=r(86829);let f=e=>{let t=Object.create(null);return function(...r){let n=r.map(e=>d(e)).join("|");return void 0===t[n]&&(t[n]=e(...r)),t[n]}};var h=r(57122),p=r(32241),g=r(55263);function v(e=""){let t=new RegExp(String.raw`-?\d+(?:\.\d+|\d*)`),r=RegExp("px|em|rem"),n=e.match(RegExp(`${t.source}(${r.source})`));return n?.[1]}function m(e=""){if("number"==typeof e)return`${e}px`;let t=v(e);return t&&"px"!==t?"em"===t||"rem"===t?`${16*parseFloat(e)}px`:void 0:e}function b(e=""){let t=v(e);return t&&"rem"!==t?"em"===t?`${parseFloat(e)}rem`:"px"===t?`${parseFloat(e)/16}rem`:void 0:e}function y(e){let t=parseFloat(m(e)??"")-.04;return b(`${t}px`)}function x({min:e,max:t}){return null==e&&null==t?"":["@media screen",e&&`(min-width: ${e})`,t&&`(max-width: ${t})`].filter(Boolean).join(" and ")}let w=/^@|&|&$/;var S=r(61140);let E=e=>({minMax:RegExp(`(!?\\(\\s*min(-device-)?-${e})(.|
2
+ )+\\(\\s*max(-device)?-${e}`,"i"),min:RegExp(`\\(\\s*min(-device)?-${e}`,"i"),maxMin:RegExp(`(!?\\(\\s*max(-device)?-${e})(.|
3
+ )+\\(\\s*min(-device)?-${e}`,"i"),max:RegExp(`\\(\\s*max(-device)?-${e}`,"i")}),k=E("width"),C=E("height"),O=e=>({isMin:F(e.minMax,e.maxMin,e.min),isMax:F(e.maxMin,e.minMax,e.max)}),{isMin:I,isMax:_}=O(k),{isMin:T,isMax:P}=O(C),R=/print/i,A=/^print$/i,N=/(-?\d*\.?\d+)(ch|em|ex|px|rem)/,M=/(\d)/,L=Number.MAX_VALUE,V={ch:8.8984375,em:16,rem:16,ex:8.296875,px:1};function D(e){let t=N.exec(e)||(I(e)||T(e)?M.exec(e):null);return t?"0"===t[0]?0:parseFloat(t[1])*(V[t[2]]||1):L}function F(e,t,r){return n=>e.test(n)||!t.test(n)&&r.test(n)}let j=f((e,t)=>{let r=function(e,t){let r=R.test(e),n=A.test(e),i=R.test(t),o=A.test(t);return r&&i?!n&&o?1:n&&!o?-1:e.localeCompare(t):r?1:i?-1:null}(e,t);if(null!==r)return r;let n=I(e)||T(e),i=_(e)||P(e),o=I(t)||T(t),a=_(t)||P(t);if(n&&a)return -1;if(i&&o)return 1;let s=D(e),l=D(t);return s===L&&l===L?e.localeCompare(t):s===L?1:l===L?-1:s!==l?s>l?i?-1:1:i?1:-1:e.localeCompare(t)});function z(e){return e.sort(([e],[t])=>j(e,t))}let B=/\s*!(important)?/i;function U(e){var t;let{transform:r,conditions:n,normalize:i}=e,o=(t=e,f(function(...e){return(0,h.X)({},...function(e){let r=function(...e){return e.filter(e=>(0,c.Gv)(e)&&Object.keys((0,a.o)(e)).length>0)}(...e);return 1===r.length?r:r.map(e=>t.normalize(e))}(e))}));return f(function(...e){let t=i(o(...e)),a=Object.create(null);return(0,l.B)(t,(e,t)=>{let i,o,s=(i=e,!!(0,c.Kg)(i)&&B.test(i));if(null==e)return;let[u,...d]=n.sort(t).map(n.resolve);s&&(o=e,e=(0,c.Kg)(o)?o.replace(B,"").trim():o);let f=r(u,e)??Object.create(null);f=(0,l.B)(f,e=>(0,c.Kg)(e)&&s?`${e} !important`:e,{getKey:e=>n.expandAtRule(e)}),function(e,t,r){let n=e;for(let e of t)e&&(n[e]||(n[e]=Object.create(null)),n=n[e]);(0,h.X)(n,r)}(a,d.flat(),f)}),function e(t){let r=[],n=[],i={};for(let[o,a]of Object.entries(t))o.startsWith("@media")?r.push([o,a]):o.startsWith("@container")?n.push([o,a]):(0,c.Gv)(a)?i[o]=e(a):i[o]=a;let o=z(r),a=z(n);return{...i,...Object.fromEntries(o),...Object.fromEntries(a)}}(a)})}var H=r(10425),W=r(82415);let $=e=>({base:{},variants:{},defaultVariants:{},compoundVariants:[],...e}),q={reset:"reset",base:"base",tokens:"tokens",recipes:"recipes"},G={reset:0,base:1,tokens:2,recipes:3};var K=r(14907);let Y=/([\0-\x1f\x7f]|^-?\d)|^-$|^-|[^\x80-\uFFFF\w-]/g,X=function(e,t){return t?"\0"===e?"�":"-"===e&&1===e.length?"\\-":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16):"\\"+e},Q=e=>(e+"").replace(Y,X),J=(e,t)=>{let r="",n=0,i="char",o="",a="",s=[];for(;n<e.length;){let l=e[n];if("{"===l){let i=e.indexOf("}",n);if(-1===i)break;let o=e.slice(n+1,i);r+=t(o)??o,n=i+1;continue}if("token"===i&&","===l){""===e[n]&&n++,i="fallback",s.push(i);let l=t(o);l?.endsWith(")")&&(r+=l.slice(0,-1)),o="",a="";continue}if("fallback"===i&&", var("===a+l){let t=Z(e.slice(n+1))+n+1,o=e.slice(n+1,t);if(-1===t)break;r+=", var("+o+")",n=t+1,i=s.pop()??i,a="";continue}if("token"===i||"fallback"===i){if(n++,")"===l){i=s.pop()??i??"char",a+=l;let e=o?t(o)??Q(o):o;if(a){if(!(a=a.slice(1).trim()).startsWith("token(")&&a.endsWith(")")&&(a=a.slice(0,-1)),a.includes("token(")){let e=J(a,t);e&&(a=e.slice(0,-1))}else if(a){let e=t(a);e&&(a=e)}}let n=r.at(-1);a?n?.trim()?r+=e.slice(0,-1)+", "+a+")":r+=a:r+=e||")",o="",a="",i="char";continue}"token"===i&&(o+=l),"fallback"===i&&(a+=l);continue}let u=e.indexOf("token(",n);if(-1!==u){let t=u+6;r+=e.slice(n,u),n=t,i="token",s.push(i);continue}r+=l,n++}return r},Z=e=>{let t=0,r=["("];for(;t<e.length;){let n=e[t];if("("===n)r.push(n);else if(")"===n&&(r.pop(),0===r.length))break;t++}return t};function ee(e){let t={};return e.forEach((e,r)=>{e instanceof Map?t[r]=Object.fromEntries(e):t[r]=e}),t}let et=/({([^}]*)})/g,er=/[{}]/g,en=/\w+\.\w+/,ei=e=>{if(!(0,c.Kg)(e))return[];let t=e.match(et);return t?t.map(e=>e.replace(er,"")).map(e=>e.trim()):[]},eo=/calc/g;function ea(e){return(0,c.Gv)(e)&&e.reference?e.reference:String(e)}let es=(e,...t)=>t.map(ea).join(` ${e} `).replace(eo,""),el=(...e)=>`calc(${es("+",...e)})`,eu=(...e)=>`calc(${es("-",...e)})`,ec=(...e)=>`calc(${es("*",...e)})`,ed=(...e)=>`calc(${es("/",...e)})`,ef=e=>{let t=ea(e);return null==t||Number.isNaN(parseFloat(t))?ec(t,-1):String(t).startsWith("-")?String(t).slice(1):`-${t}`},eh=Object.assign(e=>({add:(...t)=>eh(el(e,...t)),subtract:(...t)=>eh(eu(e,...t)),multiply:(...t)=>eh(ec(e,...t)),divide:(...t)=>eh(ed(e,...t)),negate:()=>eh(ef(e)),toString:()=>e.toString()}),{add:el,subtract:eu,multiply:ec,divide:ed,negate:ef}),ep=new Set(["spacing","sizes","borderWidths","fontSizes","radii"]),eg=[{enforce:"pre",transform(e){let{prefix:t,allTokens:r,formatCssVar:n,formatTokenName:i,registerToken:o}=e;r.filter(({extensions:e})=>"spacing"===e.category).forEach(e=>{let r=e.path.slice(),a=n(r,t);if((0,c.Kg)(e.value)&&"0rem"===e.value)return;let s=structuredClone(e);Object.assign(s.extensions,{negative:!0,prop:`-${e.extensions.prop}`,originalPath:r}),s.value=eh.negate(a.ref);let l=s.path[s.path.length-1];null!=l&&(s.path[s.path.length-1]=`-${l}`),s.path&&(s.name=i(s.path)),o(s)})}},{enforce:"post",transform(e){let{allTokens:t,registerToken:r,formatTokenName:n}=e,i=t.filter(({extensions:e})=>"colors"===e.category),o=new Map,a=new Map;i.forEach(e=>{let{colorPalette:t}=e.extensions;t&&(t.keys.forEach(e=>{o.set(n(e),e)}),t.roots.forEach(r=>{let i=n(r),s=a.get(i)||[];if(s.push(e),a.set(i,s),e.extensions.default&&1===r.length){let e=t.keys[0]?.filter(Boolean);if(!e.length)return;let i=r.concat(e);o.set(n(i),[])}}))}),o.forEach(e=>{let t=["colors","colorPalette",...e].filter(Boolean),i=n(t),o=n(t.slice(1));r({name:i,value:i,originalValue:i,path:t,extensions:{condition:"base",originalPath:t,category:"colors",prop:o,virtual:!0}},"pre")})}},{enforce:"post",transform(e){e.allTokens.filter(e=>ep.has(e.extensions.category)&&!e.extensions.negative).forEach(e=>{Object.assign(e.extensions,{pixelValue:m(e.value)})})}},{enforce:"post",transform(e){e.allTokens=e.allTokens.filter(e=>""!==e.value)}}],ev=[{type:"extensions",enforce:"pre",name:"tokens/css-var",transform(e,t){let{prefix:r,formatCssVar:n}=t,{negative:i,originalPath:o}=e.extensions;return{cssVar:n((i?o:e.path).filter(Boolean),r)}}},{enforce:"post",type:"value",name:"tokens/conditionals",transform(e,t){let{prefix:r,formatCssVar:n}=t,i=ei(e.value);return i.length&&i.forEach(t=>{let i=n(t.split("."),r);e.value=e.value.replace(`{${i.ref}}`,i)}),e.value}},{type:"extensions",enforce:"pre",name:"tokens/colors/colorPalette",match:e=>"colors"===e.extensions.category&&!e.extensions.virtual,transform(e,t){let r=e.path.slice();if(r.pop(),r.shift(),0===r.length){let t=[...e.path];t.shift(),r=t}if(0===r.length)return{};let n=r.reduce((e,t,r,n)=>{let i=n.slice(0,r+1);return e.push(i),e},[]),i=r[0],o=t.formatTokenName(r),a=e.path.slice(e.path.indexOf(i)+1).reduce((e,t,r,n)=>(e.push(n.slice(r)),e),[]);return 0===a.length&&a.push([""]),{colorPalette:{value:o,roots:n,keys:a}}}}],em=e=>(0,c.Gv)(e)&&Object.prototype.hasOwnProperty.call(e,"value");function eb(e){return"DEFAULT"===e[0]?e:e.filter(e=>"DEFAULT"!==e)}function ey(e){return e.filter(e=>"base"!==e)}Array.from(new Set(["aspectRatios","zIndex","opacity","colors","fonts","fontSizes","fontWeights","lineHeights","letterSpacings","sizes","shadows","spacing","radii","cursor","borders","borderWidths","borderStyles","durations","easings","animations","blurs","gradients","breakpoints","assets"]));var ex=r(10684);let ew={};function eS(...e){let t=(0,S.S)(...e),{theme:r={},utilities:n={},globalCss:i={},cssVarsRoot:d=":where(:root, :host)",cssVarsPrefix:v="chakra",preflight:m}=t,E=function(e){let t=e.layers??q,r=Object.values(t).sort((e,t)=>G[e]-G[t]);return{names:r,atRule:`@layer ${r.join(", ")};`,wrap(r,n){if(e.disableLayers)return n;let i=t[r];return{[`@layer ${i}`]:n}}}}(t),k=function(e){let{prefix:t="",tokens:r={},semanticTokens:n={},breakpoints:i={}}=e,o=e=>e.join("."),u=[],d=new Map,h=new Map,p=new Map,g=new Map,v=new Map,m=new Map,b=new Map,y=new Map,x=[];function w(e,t){u.push(e),d.set(e.name,e),t&&y.forEach(r=>{r.enforce===t&&P(r,e)})}let S=i?{breakpoints:(0,l.s)(i,e=>({value:e})),sizes:(0,s.N)(i,(e,t)=>[`breakpoint-${e}`,{value:t}])}:{breakpoints:{},sizes:{}},E=(0,a.o)({...r,breakpoints:S.breakpoints,sizes:{...r.sizes,...S.sizes}});function k(e){return d.get(e)}let C={},O=f((e,t)=>v.get(e)??t),I=f(e=>C[e]||null),_=f(e=>J(e,e=>{if(!e)return;if(e.includes("/")){let t=((e,t)=>{if(!e||"string"!=typeof e)return{invalid:!0,value:e};let[r,n]=e.split("/");if(!r||!n)return{invalid:!0,value:r};let i=t(r),o=k(`opacity.${n}`)?.value;if(!o&&isNaN(Number(n)))return{invalid:!0,value:r};let a=o?100*Number(o)+"%":`${n}%`,s=i??r;return{invalid:!1,color:s,value:`color-mix(in srgb, ${s} ${a}, transparent)`}})(e,e=>O(e));if(t.invalid)throw Error("Invalid color mix at "+e+": "+t.value);return t.value}let t=O(e);return t||(en.test(e)?Q(e):e)})),T={prefix:t,allTokens:u,tokenMap:d,registerToken:w,getByName:k,formatTokenName:o,formatCssVar:(e,t)=>(0,K.V)(e.join("-"),{prefix:t}),flatMap:v,cssVarMap:p,categoryMap:b,colorPaletteMap:g,getVar:O,getCategoryValues:I,expandReferenceInValue:_};function P(e,t){if(t.extensions.references||(0,c.Tn)(e.match)&&!e.match(t))return;let r=e.transform(t,T);switch(!0){case"extensions"===e.type:Object.assign(t.extensions,r);break;case"value"===e.type:t.value=r;break;default:t[e.type]=r}}function R(e){x.forEach(t=>{t.enforce===e&&t.transform(T)})}function A(e){y.forEach(t=>{t.enforce===e&&u.forEach(e=>{P(t,e)})})}return(0,l.B)(E,(e,t)=>{let r=t.includes("DEFAULT"),n=(t=eb(t))[0],i=o(t),a=(0,c.Kg)(e)?{value:e}:e,s={value:a.value,originalValue:a.value,name:i,path:t,extensions:{condition:"base",originalPath:t,category:n,prop:o(t.slice(1))}};r&&(s.extensions.default=!0),w(s)},{stop:em}),(0,l.B)(n,(e,t)=>{let r=t.includes("DEFAULT"),n=(t=ey(eb(t)))[0],i=o(t),a=(0,c.Kg)(e.value)?{value:{base:e.value}}:e,s={value:a.value.base||"",originalValue:a.value.base||"",name:i,path:t,extensions:{originalPath:t,category:n,conditions:a.value,condition:"base",prop:o(t.slice(1))}};r&&(s.extensions.default=!0),w(s)},{stop:em}),!function(...e){e.forEach(e=>{y.set(e.name,e)})}(...ev),!function(...e){x.push(...e)}(...eg),R("pre"),A("pre"),u.forEach(e=>{let t=function(e){if(!e.extensions.conditions)return;let{conditions:t}=e.extensions,r=[];return(0,l.B)(t,(t,n)=>{let i=ey(n);if(!i.length)return;let o=structuredClone(e);o.value=t,o.extensions.condition=i.join(":"),r.push(o)}),r}(e);t&&0!==t.length&&t.forEach(e=>{w(e)})}),u.forEach(e=>{let t;if(t=e.value,!et.test(t))return;let r=ei(e.value).map(e=>k(e)).filter(Boolean);e.extensions.references=r.reduce((e,t)=>(e[t.name]=t,e),{})}),u.forEach(e=>{!function e(t){if(!t.extensions?.references)return t.extensions?.cssVar?.ref??t.value;let r=t.extensions.references??{};return t.value=Object.keys(r).reduce((t,n)=>{let i=r[n];if(i.extensions.conditions)return t;let o=e(i);return t.replace(`{${n}}`,o)},t.value),delete t.extensions.references,t.value}(e)}),R("post"),A("post"),u.forEach(e=>{let{condition:t}=e.extensions;t&&(h.has(t)||h.set(t,new Set),h.get(t).add(e));let{category:r,prop:n}=e.extensions;r&&(b.has(r)||b.set(r,new Map),b.get(r).set(n,e));let{condition:i,negative:a,virtual:s,cssVar:l}=e.extensions;!a&&!s&&i&&l&&(p.has(i)||p.set(i,new Map),p.get(i).set(l.var,e.value)),function(e){let{category:t,prop:r,cssVar:n,negative:i}=e.extensions;if(!t)return;m.has(t)||m.set(t,new Map);let o=i?e.extensions.conditions?e.originalValue:e.value:n.ref;m.get(t).set(r,o),v.set([t,r].join("."),o)}(e);let{colorPalette:u,virtual:c,default:d}=e.extensions;u&&!c&&u.roots.forEach(t=>{let r=o(t);g.has(r)||g.set(r,new Map);let n=k(o(function(e,t){let r=e.findIndex((r,n)=>t.every((t,r)=>e[n+r]===t));return -1===r||(e.splice(r,t.length),e.splice(r,0,"colorPalette")),e}([...e.path],[...t])));if(!n||!n.extensions.cssVar)return;let{var:i}=n.extensions.cssVar;if(g.get(r).set(i,e.extensions.cssVar.ref),d&&1===t.length){let r=k(o(["colors","colorPalette"]));if(!r)return;let n=k(o(e.path));if(!n)return;let i=u.keys[0]?.filter(Boolean);if(!i.length)return;let a=o(t.concat(i));g.has(a)||g.set(a,new Map),g.get(a).set(r.extensions.cssVar.var,n.extensions.cssVar.ref)}})}),C=ee(m),T}({breakpoints:r.breakpoints,tokens:r.tokens,semanticTokens:r.semanticTokens,prefix:v}),C=function(e){let t=Object.fromEntries(Object.entries(e).sort(([,e],[,t])=>parseInt(e,10)<parseInt(t,10)?-1:1).map(([e,t],r,n)=>{let i=null;return r<=n.length-1&&(i=n[r+1]?.[1]),null!=i&&(i=y(i)),[e,{name:e,min:b(t),max:i}]}));function r(e){return x(t[e])}let n=Object.fromEntries(Object.entries(function(){let e=Object.keys(t),n=function(e){let t=[];return e.forEach((r,n)=>{let i=n,o=e[++i];for(;o;)t.push([r,o]),o=e[++i]}),t}(e);return Object.fromEntries(e.flatMap(e=>{let n=t[e],i=[`${e}Down`,x({max:y(n.min)})];return[[e,x({min:n.min})],[`${e}Only`,r(e)],i]}).filter(([,e])=>""!==e).concat(n.map(([e,r])=>{let n=t[e],i=t[r];return[`${e}To${r.charAt(0).toUpperCase()+r.slice(1)}`,x({min:n.min,max:y(i.min)})]})))}()));return{values:Object.values(t),only:r,keys:function(){return(0,g.s)(["base",...Object.keys(t)])},conditions:n,getCondition:e=>n[e],up:function(e){return x({min:t[e].min})},down:function(e){return x({max:y(t[e].min)})}}}(r.breakpoints??ew),O=(e=>{let{breakpoints:t,conditions:r={}}=e,n=Object.assign({},(0,s.N)(r,(e,t)=>[`_${e}`,t]),t.conditions);function i(){return Object.keys(n)}function o(e){return i().includes(e)||w.test(e)||e.startsWith("_")}return{keys:i,sort:function(e){return e.filter(e=>"base"!==e).sort((e,t)=>{let r=o(e),n=o(t);return r&&!n?1:!r&&n?-1:0})},has:o,resolve:function(e){return Reflect.get(n,e)||e},breakpoints:t.keys(),expandAtRule:function(e){return e.startsWith("@breakpoint")?t.getCondition(e.replace("@breakpoint ","")):e}}})({conditions:t.conditions??ew,breakpoints:C}),I=function(e){var t;let r=(t=e.config,(0,s.N)(t,(e,t)=>[e,t])),n=e.tokens,i=new Map,o=new Map;function a(e,t){r[e]=t,l(e,t)}let l=(e,t)=>{let r=h(t);r&&(o.set(e,r),d(e,t))},u=new Map,d=(e,t)=>{if(!t)return;let r=h(t,e=>`type:Tokens["${e}"]`);if("object"==typeof r&&r.type)return void u.set(e,new Set([`type:${r.type}`]));if(r){let t=new Set(Object.keys(r));u.set(e,t)}let n=u.get(e)??new Set;t.property&&u.set(e,n.add(`CssProperties["${t.property}"]`))},h=(e,t)=>{let{values:r}=e,i=e=>{let r=t?.(e);return r?{[r]:r}:void 0};return(0,c.Kg)(r)?i?.(r)??n.getCategoryValues(r)??{}:Array.isArray(r)?r.reduce((e,t)=>(e[t]=t,e),{}):(0,c.Tn)(r)?r(t?i:n.getCategoryValues):r},p=f((e,t)=>({[e]:e.startsWith("--")?n.getVar(t,t):t})),g=Object.assign(n.getVar,{raw:e=>n.getByName(e)}),v=f((e,t)=>{let i=y(e);(0,c.Kg)(t)&&!t.includes("_EMO_")&&(t=n.expandReferenceInValue(t));let a=r[i];if(!a)return p(i,t);let s=o.get(i)?.[t];return a.transform?a.transform(s??t,{raw:t,token:g,utils:{colorMix:e=>(0,ex.E)(e,g)}}):p(e,s??t)});for(let[e,t]of Object.entries(r)){let{shorthand:r}=t??{};r&&(Array.isArray(r)?r:[r]).forEach(t=>i.set(t,e))}let m=ee(n.colorPaletteMap);for(let[e,t]of(a("colorPalette",{values:Object.keys(m),transform:f(e=>m[e])}),Object.entries(r)))t&&l(e,t);for(let[e,t]of Object.entries(r))t&&d(e,t);let b=i.size>0,y=f(e=>i.get(e)??e);return{keys:()=>[...Array.from(i.keys()),...Object.keys(r)],hasShorthand:b,transform:v,shorthands:i,resolveShorthand:y,register:a,getTypes:()=>{let e=new Map;for(let[t,r]of u.entries()){if(0===r.size){e.set(t,["string"]);continue}let n=Array.from(r).map(e=>e.startsWith("CssProperties")?e:e.startsWith("type:")?e.replace("type:",""):JSON.stringify(e));e.set(t,n)}return e},addPropertyType:(e,t)=>{let r=u.get(e)??new Set;u.set(e,new Set([...r,...t]))}}}({config:n,tokens:k}),{textStyles:_,layerStyles:T,animationStyles:P}=r;for(let[e,t]of Object.entries((0,a.o)({textStyle:_,layerStyle:T,animationStyle:P}))){let r=u(t??ew,eE);I.register(e,{values:Object.keys(r),transform:e=>V(r[e])})}I.addPropertyType("animationName",Object.keys(r.keyframes??ew));let R=new Set(["css",...I.keys(),...O.keys()]),A=f(e=>R.has(e)||o(e)),N=e=>Array.isArray(e)?e.reduce((e,t,r)=>{let n=O.breakpoints[r];return null!=t&&(e[n]=t),e},{}):e,M=function(e){let{utility:t,normalize:r}=e,{hasShorthand:n,resolveShorthand:i}=t;return function(e){return(0,l.B)(e,r,{stop:e=>Array.isArray(e),getKey:n?i:void 0})}}({utility:I,normalize:N}),L=function(e){let{conditions:t,isValidProperty:r}=e;return function(e){return(0,l.B)(e,e=>e,{getKey:(e,n)=>(0,c.Gv)(n)?t.has(e)||r(e)?e:(function(e){let t=[],r=0,n="",i=!1;for(let o=0;o<e.length;o++){let a=e[o];if("\\"===a&&!i){i=!0,n+=a;continue}if(i){i=!1,n+=a;continue}"("===a?r++:")"===a&&r--,","===a&&0===r?(t.push(n.trim()),n=""):n+=a}return n&&t.push(n.trim()),t})(e).map(e=>"&"+e).join(", "):e})}}({conditions:O,isValidProperty:A}),V=U({transform:I.transform,conditions:O,normalize:M}),D=function(e){let{css:t,conditions:r,normalize:n,layers:i}=e;return function o(l={}){let u=$(l),{base:c,defaultVariants:d,compoundVariants:f}=u,v=(0,s.N)(u.variants,(e,t)=>[e,(0,s.N)(t,(e,t)=>[e,n(t)])]),m=U({conditions:r,normalize:n,transform:(e,t)=>v[e]?.[t]}),b=(e={})=>{var r,o;let s,l=n({...d,...(0,a.o)(e)}),u={...c};(0,h.X)(u,m(l));let p=(r=f,o=l,s={},r.forEach(e=>{Object.entries(e).every(([e,t])=>"css"===e||(Array.isArray(t)?t:[t]).some(t=>o[e]===t))&&(s=t(s,e.css))}),s);return i.wrap("recipes",t(u,p))},y=Object.keys(v),x=(0,s.N)(v,(e,t)=>[e,Object.keys(t)]);return Object.assign(e=>t(b(e)),{className:l.className,__cva__:!0,variantMap:x,variantKeys:y,raw:b,config:l,splitVariantProps:e=>{let t=(0,W.c)(e,["recipe"]),[r,n]=(0,p.r)(t,y);return y.includes("colorPalette")||(r.colorPalette=e.colorPalette||d.colorPalette),y.includes("orientation")&&(n.orientation=e.orientation),[r,n]},merge(t){return o((function(e){let{css:t}=e;return function(e,r){let n=$(r.config),i=(0,g.s)(e.variantKeys,Object.keys(r.variants)),o=t(e.base,n.base),a=Object.fromEntries(i.map(r=>[r,t(e.config.variants[r],n.variants[r])])),s=(0,h.X)(e.config.defaultVariants,n.defaultVariants),l=[...e.compoundVariants,...n.compoundVariants];return{className:(0,H.cx)(e.className,r.className),base:o,variants:a,defaultVariants:s,compoundVariants:l}}})(e)(this,t))}})}}({css:V,conditions:O,normalize:M,layers:E}),F=function(e){let{cva:t}=e;return function(e={}){let r=Object.entries(((e={})=>{let t=(e.slots??[]).map(t=>{var r;let n,i;return[t,(r=t,{base:e.base?.[r]??{},variants:{},defaultVariants:e.defaultVariants??{},compoundVariants:e.compoundVariants?(n=e.compoundVariants,i=r,n.filter(e=>e.css[i]).map(e=>({...e,css:e.css[i]}))):[]})]});for(let[r,n]of Object.entries(e.variants??{}))for(let[e,i]of Object.entries(n))t.forEach(([t,n])=>{var o;(o=n.variants)[r]??(o[r]={}),n.variants[r][e]=i[t]??{}});return Object.fromEntries(t)})(e)).map(([e,r])=>[e,t(r)]),n=e.variants??{},i=Object.keys(n),o=(0,s.N)(n,(e,t)=>[e,Object.keys(t)]),a={};return e.className&&(a=Object.fromEntries(e.slots.map(t=>[t,`${e.className}__${t}`]))),Object.assign(function(e){return Object.fromEntries(r.map(([t,r])=>[t,r(e)]))},{variantMap:o,variantKeys:i,splitVariantProps:function(t){let r=(0,W.c)(t,["recipe"]),[n,o]=(0,p.r)(r,i);return i.includes("colorPalette")||(n.colorPalette=t.colorPalette||e.defaultVariants?.colorPalette),i.includes("orientation")&&(o.orientation=t.orientation),[n,o]},classNameMap:a})}}({cva:D});function j(){let e={};for(let[t,r]of k.cssVarMap.entries()){let n=Object.fromEntries(r);if(0===Object.keys(n).length)continue;let i="base"===t?d:O.resolve(t),o=i.startsWith("@"),a=V(L({[i]:o?{[d]:n}:n}));(0,h.X)(e,a)}return E.wrap("tokens",e)}function z(){let e=Object.assign({},(0,s.N)(r.keyframes??ew,(e,t)=>[`@keyframes ${e}`,t]),V(L(i)));return E.wrap("base",e)}function B(){let e=function(e){let{preflight:t}=e;if(!t)return{};let{scope:r="",level:n="parent"}=(0,c.Gv)(t)?t:{},i="";r&&"parent"===n?i=`${r} `:r&&"element"===n&&(i=`&${r}`);let o={"*":{margin:"0px",padding:"0px",font:"inherit",wordWrap:"break-word",WebkitTapHighlightColor:"transparent"},"*, *::before, *::after, *::backdrop":{boxSizing:"border-box",borderWidth:"0px",borderStyle:"solid",borderColor:"var(--global-color-border, currentColor)"},hr:{height:"0px",color:"inherit",borderTopWidth:"1px"},body:{minHeight:"100dvh",position:"relative"},img:{borderStyle:"none"},"img, svg, video, canvas, audio, iframe, embed, object":{display:"block",verticalAlign:"middle"},iframe:{border:"none"},"img, video":{maxWidth:"100%",height:"auto"},"p, h1, h2, h3, h4, h5, h6":{overflowWrap:"break-word"},"ol, ul":{listStyle:"none"},"code, kbd, pre, samp":{fontSize:"1em"},"button, [type='button'], [type='reset'], [type='submit']":{WebkitAppearance:"button",backgroundColor:"transparent",backgroundImage:"none"},"button, input, optgroup, select, textarea":{color:"inherit"},"button, select":{textTransform:"none"},table:{textIndent:"0px",borderColor:"inherit",borderCollapse:"collapse"},"*::placeholder":{opacity:"unset",color:"#9ca3af",userSelect:"none"},textarea:{resize:"vertical"},summary:{display:"list-item"},small:{fontSize:"80%"},"sub, sup":{fontSize:"75%",lineHeight:0,position:"relative",verticalAlign:"baseline"},sub:{bottom:"-0.25em"},sup:{top:"-0.5em"},dialog:{padding:"0px"},a:{color:"inherit",textDecoration:"inherit"},"abbr:where([title])":{textDecoration:"underline dotted"},"b, strong":{fontWeight:"bolder"},"code, kbd, samp, pre":{fontSize:"1em","--font-mono-fallback":"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New'",fontFamily:"var(--global-font-mono, var(--font-mono-fallback))"},'input[type="text"], input[type="email"], input[type="search"], input[type="password"]':{WebkitAppearance:"none",MozAppearance:"none"},"input[type='search']":{WebkitAppearance:"textfield",outlineOffset:"-2px"},"::-webkit-search-decoration, ::-webkit-search-cancel-button":{WebkitAppearance:"none"},"::-webkit-file-upload-button":{WebkitAppearance:"button",font:"inherit"},'input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button':{height:"auto"},"input[type='number']":{MozAppearance:"textfield"},":-moz-ui-invalid":{boxShadow:"none"},":-moz-focusring":{outline:"auto"},"[hidden]:where(:not([hidden='until-found']))":{display:"none !important"}},a={[r||"html"]:{lineHeight:1.5,"--font-fallback":"ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'",WebkitTextSizeAdjust:"100%",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",textRendering:"optimizeLegibility",touchAction:"manipulation",MozTabSize:"4",tabSize:"4",fontFamily:"var(--global-font-body, var(--font-fallback))"}};return"element"===n?Object.assign(a,Object.entries(o).reduce((e,[t,r])=>(e[t]={[i]:r},e),{})):i?a[i]=o:Object.assign(a,o),a}({preflight:m});return E.wrap("reset",e)}let Y=function(e){let t=new Map;return e.allTokens.forEach(e=>{let{cssVar:r,virtual:n,conditions:i}=e.extensions,o=i||n?r.ref:e.value;t.set(e.name,{value:o,variable:r.ref})}),t}(k),X=(e,t)=>Y.get(e)?.value||t;function Z(e){return Object.hasOwnProperty.call(r.recipes??ew,e)}function er(e){return Object.hasOwnProperty.call(r.slotRecipes??ew,e)}X.var=(e,t)=>Y.get(e)?.variable||t;let eo=[B(),z(),j()],ea={layerStyles:ek(r.layerStyles??ew),textStyles:ek(r.textStyles??ew),animationStyles:ek(r.animationStyles??ew),tokens:eC(k,Object.keys(r.tokens??ew),(e,t)=>!e.extensions.conditions&&!t.includes("colorPalette")),semanticTokens:eC(k,Object.keys(r.semanticTokens??ew),e=>!!e.extensions.conditions),keyframes:eO(r.keyframes??ew),breakpoints:eO(r.breakpoints??ew)};return{$$chakra:!0,_config:t,_global:eo,breakpoints:C,tokens:k,conditions:O,utility:I,token:X,properties:R,layers:E,isValidProperty:A,splitCssProps:function(e){return(0,p.r)(e,A)},normalizeValue:N,getTokenCss:j,getGlobalCss:z,getPreflightCss:B,css:V,cva:D,sva:F,getRecipe:function(e,t){return r.recipes?.[e]??t},getSlotRecipe:function(e,t){return r.slotRecipes?.[e]??t},hasRecipe:function(e){return Z(e)||er(e)},isRecipe:Z,isSlotRecipe:er,query:ea}}let eE=e=>(0,c.Gv)(e)&&"value"in e,ek=e=>({list:()=>Object.keys(u(e,eE)),search(e){return this.list().filter(t=>t.includes(e))}}),eC=(e,t,r)=>({categoryKeys:t,list:t=>Array.from(e.categoryMap.get(t)?.entries()??[]).reduce((e,[t,n])=>(r(n,t)&&e.push(t),e),[]),search(e,t){return this.list(e).filter(e=>e.includes(t))}}),eO=e=>({list:()=>Object.keys(e),search(e){return this.list().filter(t=>t.includes(e))}})},22680:(e,t,r)=>{var n=r(52420),i=n?n.prototype:void 0,o=i?i.valueOf:void 0;e.exports=function(e){return o?Object(o.call(e)):{}}},22719:(e,t,r)=>{e.exports=r(5182)(r(93475),"Map")},23151:(e,t,r)=>{var n=r(96980);e.exports=function(e,t){return function(r,i){if(null==r)return r;if(!n(r))return e(r,i);for(var o=r.length,a=t?o:-1,s=Object(r);(t?a--:++a<o)&&!1!==i(s[a],a,s););return r}}},23286:(e,t,r)=>{"use strict";var n=r(48613),i=r(42572),o=r(2439),a=r(47889),s=r(26380).normalizeRanks,l=r(13430),u=r(26380).removeEmptyRanks,c=r(47023),d=r(21113),f=r(61600),h=r(30955),p=r(69792),g=r(26380),v=r(30039).Graph;e.exports=function(e,t){var r=t&&t.debugTiming?g.time:g.notime;r("layout",function(){var t=r(" buildLayoutGraph",function(){var t,r,i;return t=e,r=new v({multigraph:!0,compound:!0}),i=O(t.graph()),r.setGraph(n.merge({},b,C(i,m),n.pick(i,y))),n.forEach(t.nodes(),function(e){var i=O(t.node(e));r.setNode(e,n.defaults(C(i,x),w)),r.setParent(e,t.parent(e))}),n.forEach(t.edges(),function(e){var i=O(t.edge(e));r.setEdge(e,n.merge({},E,C(i,S),n.pick(i,k)))}),r});r(" runLayout",function(){var e,v;e=t,(v=r)(" makeSpaceForEdgeLabels",function(){var t,r;r=(t=e).graph(),r.ranksep/=2,n.forEach(t.edges(),function(e){var n=t.edge(e);n.minlen*=2,"c"!==n.labelpos.toLowerCase()&&("TB"===r.rankdir||"BT"===r.rankdir?n.width+=n.labeloffset:n.height+=n.labeloffset)})}),v(" removeSelfEdges",function(){var t;t=e,n.forEach(t.edges(),function(e){if(e.v===e.w){var r=t.node(e.v);r.selfEdges||(r.selfEdges=[]),r.selfEdges.push({e:e,label:t.edge(e)}),t.removeEdge(e)}})}),v(" acyclic",function(){i.run(e)}),v(" nestingGraph.run",function(){c.run(e)}),v(" rank",function(){a(g.asNonCompoundGraph(e))}),v(" injectEdgeLabelProxies",function(){var t;t=e,n.forEach(t.edges(),function(e){var r=t.edge(e);if(r.width&&r.height){var n=t.node(e.v),i={rank:(t.node(e.w).rank-n.rank)/2+n.rank,e:e};g.addDummyNode(t,"edge-proxy",i,"_ep")}})}),v(" removeEmptyRanks",function(){u(e)}),v(" nestingGraph.cleanup",function(){c.cleanup(e)}),v(" normalizeRanks",function(){s(e)}),v(" assignRankMinMax",function(){var t,r;t=e,r=0,n.forEach(t.nodes(),function(e){var i=t.node(e);i.borderTop&&(i.minRank=t.node(i.borderTop).rank,i.maxRank=t.node(i.borderBottom).rank,r=n.max(r,i.maxRank))}),t.graph().maxRank=r}),v(" removeEdgeLabelProxies",function(){var t;t=e,n.forEach(t.nodes(),function(e){var r=t.node(e);"edge-proxy"===r.dummy&&(t.edge(r.e).labelRank=r.rank,t.removeNode(e))})}),v(" normalize.run",function(){o.run(e)}),v(" parentDummyChains",function(){l(e)}),v(" addBorderSegments",function(){d(e)}),v(" order",function(){h(e)}),v(" insertSelfEdges",function(){var t,r;t=e,r=g.buildLayerMatrix(t),n.forEach(r,function(e){var r=0;n.forEach(e,function(e,i){var o=t.node(e);o.order=i+r,n.forEach(o.selfEdges,function(e){g.addDummyNode(t,"selfedge",{width:e.label.width,height:e.label.height,rank:o.rank,order:i+ ++r,e:e.e,label:e.label},"_se")}),delete o.selfEdges})})}),v(" adjustCoordinateSystem",function(){f.adjust(e)}),v(" position",function(){p(e)}),v(" positionSelfEdges",function(){var t;t=e,n.forEach(t.nodes(),function(e){var r=t.node(e);if("selfedge"===r.dummy){var n=t.node(r.e.v),i=n.x+n.width/2,o=n.y,a=r.x-i,s=n.height/2;t.setEdge(r.e,r.label),t.removeNode(e),r.label.points=[{x:i+2*a/3,y:o-s},{x:i+5*a/6,y:o-s},{x:i+a,y:o},{x:i+5*a/6,y:o+s},{x:i+2*a/3,y:o+s}],r.label.x=r.x,r.label.y=r.y}})}),v(" removeBorderNodes",function(){var t;t=e,n.forEach(t.nodes(),function(e){if(t.children(e).length){var r=t.node(e),i=t.node(r.borderTop),o=t.node(r.borderBottom),a=t.node(n.last(r.borderLeft)),s=t.node(n.last(r.borderRight));r.width=Math.abs(s.x-a.x),r.height=Math.abs(o.y-i.y),r.x=a.x+r.width/2,r.y=i.y+r.height/2}}),n.forEach(t.nodes(),function(e){"border"===t.node(e).dummy&&t.removeNode(e)})}),v(" normalize.undo",function(){o.undo(e)}),v(" fixupEdgeLabelCoords",function(){var t;t=e,n.forEach(t.edges(),function(e){var r=t.edge(e);if(n.has(r,"x"))switch(("l"===r.labelpos||"r"===r.labelpos)&&(r.width-=r.labeloffset),r.labelpos){case"l":r.x-=r.width/2+r.labeloffset;break;case"r":r.x+=r.width/2+r.labeloffset}})}),v(" undoCoordinateSystem",function(){f.undo(e)}),v(" translateGraph",function(){!function(e){var t=1/0,r=0,i=1/0,o=0,a=e.graph(),s=a.marginx||0,l=a.marginy||0;function u(e){var n=e.x,a=e.y,s=e.width,l=e.height;t=Math.min(t,n-s/2),r=Math.max(r,n+s/2),i=Math.min(i,a-l/2),o=Math.max(o,a+l/2)}n.forEach(e.nodes(),function(t){u(e.node(t))}),n.forEach(e.edges(),function(t){var r=e.edge(t);n.has(r,"x")&&u(r)}),t-=s,i-=l,n.forEach(e.nodes(),function(r){var n=e.node(r);n.x-=t,n.y-=i}),n.forEach(e.edges(),function(r){var o=e.edge(r);n.forEach(o.points,function(e){e.x-=t,e.y-=i}),n.has(o,"x")&&(o.x-=t),n.has(o,"y")&&(o.y-=i)}),a.width=r-t+s,a.height=o-i+l}(e)}),v(" assignNodeIntersects",function(){var t;t=e,n.forEach(t.edges(),function(e){var r,n,i=t.edge(e),o=t.node(e.v),a=t.node(e.w);i.points?(r=i.points[0],n=i.points[i.points.length-1]):(i.points=[],r=a,n=o),i.points.unshift(g.intersectRect(o,r)),i.points.push(g.intersectRect(a,n))})}),v(" reversePoints",function(){var t;t=e,n.forEach(t.edges(),function(e){var r=t.edge(e);r.reversed&&r.points.reverse()})}),v(" acyclic.undo",function(){i.undo(e)})}),r(" updateInputGraph",function(){var r,i;r=e,i=t,n.forEach(r.nodes(),function(e){var t=r.node(e),n=i.node(e);t&&(t.x=n.x,t.y=n.y,i.children(e).length&&(t.width=n.width,t.height=n.height))}),n.forEach(r.edges(),function(e){var t=r.edge(e),o=i.edge(e);t.points=o.points,n.has(o,"x")&&(t.x=o.x,t.y=o.y)}),r.graph().width=i.graph().width,r.graph().height=i.graph().height})})};var m=["nodesep","edgesep","ranksep","marginx","marginy"],b={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},y=["acyclicer","ranker","rankdir","align"],x=["width","height"],w={width:0,height:0},S=["minlen","weight","width","height","labeloffset"],E={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},k=["labelpos"];function C(e,t){return n.mapValues(n.pick(e,t),Number)}function O(e){var t={};return n.forEach(e,function(e,r){t[r.toLowerCase()]=e}),t}},24253:(e,t,r)=>{var n=r(52417);e.exports=function(e){return n(this,e).get(e)}},24271:(e,t,r)=>{var n=r(89718),i=r(81563),o=r(79910);e.exports=function(e){return"string"==typeof e||!i(e)&&o(e)&&"[object String]"==n(e)}},24359:(e,t,r)=>{"use strict";r.d(t,{w:()=>i});let[n,i]=(0,r(5719).q)({name:"EnvironmentContext",hookName:"useEnvironmentContext",providerName:"<EnvironmentProvider />",strict:!1,defaultValue:{getRootNode:()=>document,getDocument:()=>document,getWindow:()=>window}})},24652:(e,t,r)=>{var n=r(45387),i=r(79910);e.exports=function(e){return i(e)&&"[object Map]"==n(e)}},24738:(e,t,r)=>{var n=r(81789),i=r(93773);e.exports=function(e){return n(e,i(e))}},24756:(e,t,r)=>{var n=r(40236);e.exports=function(e){return(null==e?0:e.length)?n(e,1):[]}},24795:(e,t,r)=>{var n=r(63281),i=r(51205),o=r(50147),a=r(93679),s=r(28944),l=r(28750),u=r(43623),c=r(62591),d=r(61696),f=r(56012),h=r(22071),p=r(45387),g=r(11467),v=r(4157),m=r(66241),b=r(81563),y=r(7088),x=r(47028),w=r(94193),S=r(27258),E=r(86622),k=r(93773),C="[object Arguments]",O="[object Function]",I="[object Object]",_={};_[C]=_["[object Array]"]=_["[object ArrayBuffer]"]=_["[object DataView]"]=_["[object Boolean]"]=_["[object Date]"]=_["[object Float32Array]"]=_["[object Float64Array]"]=_["[object Int8Array]"]=_["[object Int16Array]"]=_["[object Int32Array]"]=_["[object Map]"]=_["[object Number]"]=_[I]=_["[object RegExp]"]=_["[object Set]"]=_["[object String]"]=_["[object Symbol]"]=_["[object Uint8Array]"]=_["[object Uint8ClampedArray]"]=_["[object Uint16Array]"]=_["[object Uint32Array]"]=!0,_["[object Error]"]=_[O]=_["[object WeakMap]"]=!1,e.exports=function e(t,r,T,P,R,A){var N,M=1&r,L=2&r,V=4&r;if(T&&(N=R?T(t,P,R,A):T(t)),void 0!==N)return N;if(!w(t))return t;var D=b(t);if(D){if(N=g(t),!M)return u(t,N)}else{var F=p(t),j=F==O||"[object GeneratorFunction]"==F;if(y(t))return l(t,M);if(F==I||F==C||j&&!R){if(N=L||j?{}:m(t),!M)return L?d(t,s(N,t)):c(t,a(N,t))}else{if(!_[F])return R?t:{};N=v(t,F,M)}}A||(A=new n);var z=A.get(t);if(z)return z;A.set(t,N),S(t)?t.forEach(function(n){N.add(e(n,r,T,n,t,A))}):x(t)&&t.forEach(function(n,i){N.set(i,e(n,r,T,i,t,A))});var B=V?L?h:f:L?k:E,U=D?void 0:B(t);return i(U||t,function(n,i){U&&(n=t[i=n]),o(N,i,e(n,r,T,i,t,A))}),N}},25709:(e,t,r)=>{var n=r(69604),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(n){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return i.call(t,e)?t[e]:void 0}},26380:(e,t,r)=>{"use strict";var n=r(48613),i=r(30039).Graph;function o(e,t,r,i){var o;do o=n.uniqueId(i);while(e.hasNode(o));return r.dummy=t,e.setNode(o,r),o}function a(e){return n.max(n.map(e.nodes(),function(t){var r=e.node(t).rank;if(!n.isUndefined(r))return r}))}e.exports={addDummyNode:o,simplify:function(e){var t=new i().setGraph(e.graph());return n.forEach(e.nodes(),function(r){t.setNode(r,e.node(r))}),n.forEach(e.edges(),function(r){var n=t.edge(r.v,r.w)||{weight:0,minlen:1},i=e.edge(r);t.setEdge(r.v,r.w,{weight:n.weight+i.weight,minlen:Math.max(n.minlen,i.minlen)})}),t},asNonCompoundGraph:function(e){var t=new i({multigraph:e.isMultigraph()}).setGraph(e.graph());return n.forEach(e.nodes(),function(r){e.children(r).length||t.setNode(r,e.node(r))}),n.forEach(e.edges(),function(r){t.setEdge(r,e.edge(r))}),t},successorWeights:function(e){var t=n.map(e.nodes(),function(t){var r={};return n.forEach(e.outEdges(t),function(t){r[t.w]=(r[t.w]||0)+e.edge(t).weight}),r});return n.zipObject(e.nodes(),t)},predecessorWeights:function(e){var t=n.map(e.nodes(),function(t){var r={};return n.forEach(e.inEdges(t),function(t){r[t.v]=(r[t.v]||0)+e.edge(t).weight}),r});return n.zipObject(e.nodes(),t)},intersectRect:function(e,t){var r,n,i=e.x,o=e.y,a=t.x-i,s=t.y-o,l=e.width/2,u=e.height/2;if(!a&&!s)throw Error("Not possible to find intersection inside of the rectangle");return Math.abs(s)*l>Math.abs(a)*u?(s<0&&(u=-u),r=u*a/s,n=u):(a<0&&(l=-l),r=l,n=l*s/a),{x:i+r,y:o+n}},buildLayerMatrix:function(e){var t=n.map(n.range(a(e)+1),function(){return[]});return n.forEach(e.nodes(),function(r){var i=e.node(r),o=i.rank;n.isUndefined(o)||(t[o][i.order]=r)}),t},normalizeRanks:function(e){var t=n.min(n.map(e.nodes(),function(t){return e.node(t).rank}));n.forEach(e.nodes(),function(r){var i=e.node(r);n.has(i,"rank")&&(i.rank-=t)})},removeEmptyRanks:function(e){var t=n.min(n.map(e.nodes(),function(t){return e.node(t).rank})),r=[];n.forEach(e.nodes(),function(n){var i=e.node(n).rank-t;r[i]||(r[i]=[]),r[i].push(n)});var i=0,o=e.graph().nodeRankFactor;n.forEach(r,function(t,r){n.isUndefined(t)&&r%o!=0?--i:i&&n.forEach(t,function(t){e.node(t).rank+=i})})},addBorderNode:function(e,t,r,n){var i={width:0,height:0};return arguments.length>=4&&(i.rank=r,i.order=n),o(e,"border",i,t)},maxRank:a,partition:function(e,t){var r={lhs:[],rhs:[]};return n.forEach(e,function(e){t(e)?r.lhs.push(e):r.rhs.push(e)}),r},time:function(e,t){var r=n.now();try{return t()}finally{console.log(e+" time: "+(n.now()-r)+"ms")}},notime:function(e,t){return t()}}},26955:(e,t,r)=>{"use strict";var n=r(48613),i=r(30039).Graph,o=r(26380);function a(e,t){var r={};return n.reduce(t,function(t,i){var o=0,a=0,s=t.length,u=n.last(i);return n.forEach(i,function(t,c){var d=function(e,t){if(e.node(t).dummy)return n.find(e.predecessors(t),function(t){return e.node(t).dummy})}(e,t),f=d?e.node(d).order:s;(d||t===u)&&(n.forEach(i.slice(a,c+1),function(t){n.forEach(e.predecessors(t),function(n){var i=e.node(n),a=i.order;(a<o||f<a)&&!(i.dummy&&e.node(t).dummy)&&l(r,n,t)})}),a=c+1,o=f)}),i}),r}function s(e,t){var r={};function i(t,i,o,a,s){var u;n.forEach(n.range(i,o),function(i){u=t[i],e.node(u).dummy&&n.forEach(e.predecessors(u),function(t){var n=e.node(t);n.dummy&&(n.order<a||n.order>s)&&l(r,t,u)})})}return n.reduce(t,function(t,r){var o,a=-1,s=0;return n.forEach(r,function(n,l){if("border"===e.node(n).dummy){var u=e.predecessors(n);u.length&&(o=e.node(u[0]).order,i(r,s,l,a,o),s=l,a=o)}i(r,s,r.length,o,t.length)}),r}),r}function l(e,t,r){if(t>r){var n=t;t=r,r=n}var i=e[t];i||(e[t]=i={}),i[r]=!0}function u(e,t,r){if(t>r){var i=t;t=r,r=i}return n.has(e[t],r)}function c(e,t,r,i){var o={},a={},s={};return n.forEach(t,function(e){n.forEach(e,function(e,t){o[e]=e,a[e]=e,s[e]=t})}),n.forEach(t,function(e){var t=-1;n.forEach(e,function(e){var l=i(e);if(l.length)for(var c=((l=n.sortBy(l,function(e){return s[e]})).length-1)/2,d=Math.floor(c),f=Math.ceil(c);d<=f;++d){var h=l[d];a[e]===e&&t<s[h]&&!u(r,e,h)&&(a[h]=e,a[e]=o[e]=o[h],t=s[h])}})}),{root:o,align:a}}function d(e,t,r,o,a){var s,l,u,c,d,f,h,p,g,v,m={},b=(s=e,l=t,u=r,c=a,p=new i,v=(d=(g=s.graph()).nodesep,f=g.edgesep,h=c,function(e,t,r){var i,o,a=e.node(t),s=e.node(r);if(i=0+a.width/2,n.has(a,"labelpos"))switch(a.labelpos.toLowerCase()){case"l":o=-a.width/2;break;case"r":o=a.width/2}if(o&&(i+=h?o:-o),o=0,i+=(a.dummy?f:d)/2,i+=(s.dummy?f:d)/2,i+=s.width/2,n.has(s,"labelpos"))switch(s.labelpos.toLowerCase()){case"l":o=s.width/2;break;case"r":o=-s.width/2}return o&&(i+=h?o:-o),o=0,i}),n.forEach(l,function(e){var t;n.forEach(e,function(e){var r=u[e];if(p.setNode(r),t){var n=u[t],i=p.edge(n,r);p.setEdge(n,r,Math.max(v(s,e,t),i||0))}t=e})}),p),y=a?"borderLeft":"borderRight";function x(e,t){for(var r=b.nodes(),n=r.pop(),i={};n;)i[n]?e(n):(i[n]=!0,r.push(n),r=r.concat(t(n))),n=r.pop()}return x(function(e){m[e]=b.inEdges(e).reduce(function(e,t){return Math.max(e,m[t.v]+b.edge(t))},0)},b.predecessors.bind(b)),x(function(t){var r=b.outEdges(t).reduce(function(e,t){return Math.min(e,m[t.w]-b.edge(t))},1/0),n=e.node(t);r!==1/0&&n.borderType!==y&&(m[t]=Math.max(m[t],r))},b.successors.bind(b)),n.forEach(o,function(e){m[e]=m[r[e]]}),m}function f(e,t){return n.minBy(n.values(t),function(t){var r=-1/0,i=1/0;return n.forIn(t,function(t,n){var o,a,s=(o=e,a=n,o.node(a).width/2);r=Math.max(t+s,r),i=Math.min(t-s,i)}),r-i})}function h(e,t){var r=n.values(t),i=n.min(r),o=n.max(r);n.forEach(["u","d"],function(r){n.forEach(["l","r"],function(a){var s,l=r+a,u=e[l];if(u!==t){var c=n.values(u);(s="l"===a?i-n.min(c):o-n.max(c))&&(e[l]=n.mapValues(u,function(e){return e+s}))}})})}function p(e,t){return n.mapValues(e.ul,function(r,i){if(t)return e[t.toLowerCase()][i];var o=n.sortBy(n.map(e,i));return(o[1]+o[2])/2})}e.exports={positionX:function(e){var t,r=o.buildLayerMatrix(e),i=n.merge(a(e,r),s(e,r)),l={};n.forEach(["u","d"],function(o){t="u"===o?r:n.values(r).reverse(),n.forEach(["l","r"],function(r){"r"===r&&(t=n.map(t,function(e){return n.values(e).reverse()}));var a=("u"===o?e.predecessors:e.successors).bind(e),s=c(e,t,i,a),u=d(e,t,s.root,s.align,"r"===r);"r"===r&&(u=n.mapValues(u,function(e){return-e})),l[o+r]=u})});var u=f(e,l);return h(l,u),p(l,e.graph().align)},findType1Conflicts:a,findType2Conflicts:s,addConflict:l,hasConflict:u,verticalAlignment:c,horizontalCompaction:d,alignCoordinates:h,findSmallestWidthAlignment:f,balance:p}},26975:(e,t,r)=>{var n=r(48613),i=r(30039).Graph,o=r(865);e.exports=function(e,t){if(1>=e.nodeCount())return[];var r,u,c,d,f,h,p,g=(r=e,u=t||a,c=new i,d=0,f=0,n.forEach(r.nodes(),function(e){c.setNode(e,{v:e,in:0,out:0})}),n.forEach(r.edges(),function(e){var t=c.edge(e.v,e.w)||0,r=u(e);c.setEdge(e.v,e.w,t+r),f=Math.max(f,c.node(e.v).out+=r),d=Math.max(d,c.node(e.w).in+=r)}),h=n.range(f+d+3).map(function(){return new o}),p=d+1,n.forEach(c.nodes(),function(e){l(h,p,c.node(e))}),{graph:c,buckets:h,zeroIdx:p}),v=function(e,t,r){for(var n,i=[],o=t[t.length-1],a=t[0];e.nodeCount();){for(;n=a.dequeue();)s(e,t,r,n);for(;n=o.dequeue();)s(e,t,r,n);if(e.nodeCount()){for(var l=t.length-2;l>0;--l)if(n=t[l].dequeue()){i=i.concat(s(e,t,r,n,!0));break}}}return i}(g.graph,g.buckets,g.zeroIdx);return n.flatten(n.map(v,function(t){return e.outEdges(t.v,t.w)}),!0)};var a=n.constant(1);function s(e,t,r,i,o){var a=o?[]:void 0;return n.forEach(e.inEdges(i.v),function(n){var i=e.edge(n),s=e.node(n.v);o&&a.push({v:n.v,w:n.w}),s.out-=i,l(t,r,s)}),n.forEach(e.outEdges(i.v),function(n){var i=e.edge(n),o=n.w,a=e.node(o);a.in-=i,l(t,r,a)}),e.removeNode(i.v),a}function l(e,t,r){r.out?r.in?e[r.out-r.in+t].enqueue(r):e[e.length-1].enqueue(r):e[0].enqueue(r)}},27258:(e,t,r)=>{var n=r(94114),i=r(96729),o=r(17863),a=o&&o.isSet;e.exports=a?i(a):n},27448:(e,t,r)=>{"use strict";r.d(t,{f:()=>n});let n=r(78788).MI.extendWith("group")},27919:(e,t,r)=>{"use strict";r.d(t,{A:()=>ti});var n,i,o={};function a(e,t){return function(){return e.apply(t,arguments)}}r.r(o),r.d(o,{hasBrowserEnv:()=>ed,hasStandardBrowserEnv:()=>eh,hasStandardBrowserWebWorkerEnv:()=>ep,navigator:()=>ef,origin:()=>eg});var s=r(35244);let{toString:l}=Object.prototype,{getPrototypeOf:u}=Object,{iterator:c,toStringTag:d}=Symbol,f=(e=>t=>{let r=l.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),h=e=>(e=e.toLowerCase(),t=>f(t)===e),p=e=>t=>typeof t===e,{isArray:g}=Array,v=p("undefined");function m(e){return null!==e&&!v(e)&&null!==e.constructor&&!v(e.constructor)&&x(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}let b=h("ArrayBuffer"),y=p("string"),x=p("function"),w=p("number"),S=e=>null!==e&&"object"==typeof e,E=e=>{if("object"!==f(e))return!1;let t=u(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(d in e)&&!(c in e)},k=h("Date"),C=h("File"),O=h("Blob"),I=h("FileList"),_=h("URLSearchParams"),[T,P,R,A]=["ReadableStream","Request","Response","Headers"].map(h);function N(e,t,{allOwnKeys:r=!1}={}){let n,i;if(null!=e)if("object"!=typeof e&&(e=[e]),g(e))for(n=0,i=e.length;n<i;n++)t.call(null,e[n],n,e);else{let i;if(m(e))return;let o=r?Object.getOwnPropertyNames(e):Object.keys(e),a=o.length;for(n=0;n<a;n++)i=o[n],t.call(null,e[i],i,e)}}function M(e,t){let r;if(m(e))return null;t=t.toLowerCase();let n=Object.keys(e),i=n.length;for(;i-- >0;)if(t===(r=n[i]).toLowerCase())return r;return null}let L="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,V=e=>!v(e)&&e!==L,D=(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&u(Uint8Array)),F=h("HTMLFormElement"),j=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),z=h("RegExp"),B=(e,t)=>{let r=Object.getOwnPropertyDescriptors(e),n={};N(r,(r,i)=>{let o;!1!==(o=t(r,i,e))&&(n[i]=o||r)}),Object.defineProperties(e,n)},U=h("AsyncFunction"),H=(n="function"==typeof setImmediate,i=x(L.postMessage),n?setImmediate:i?((e,t)=>(L.addEventListener("message",({source:r,data:n})=>{r===L&&n===e&&t.length&&t.shift()()},!1),r=>{t.push(r),L.postMessage(e,"*")}))(`axios@${Math.random()}`,[]):e=>setTimeout(e)),W="undefined"!=typeof queueMicrotask?queueMicrotask.bind(L):void 0!==s&&s.nextTick||H,$={isArray:g,isArrayBuffer:b,isBuffer:m,isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||x(e.append)&&("formdata"===(t=f(e))||"object"===t&&x(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&b(e.buffer)},isString:y,isNumber:w,isBoolean:e=>!0===e||!1===e,isObject:S,isPlainObject:E,isEmptyObject:e=>{if(!S(e)||m(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:T,isRequest:P,isResponse:R,isHeaders:A,isUndefined:v,isDate:k,isFile:C,isBlob:O,isRegExp:z,isFunction:x,isStream:e=>S(e)&&x(e.pipe),isURLSearchParams:_,isTypedArray:D,isFileList:I,forEach:N,merge:function e(){let{caseless:t,skipUndefined:r}=V(this)&&this||{},n={},i=(i,o)=>{let a=t&&M(n,o)||o;E(n[a])&&E(i)?n[a]=e(n[a],i):E(i)?n[a]=e({},i):g(i)?n[a]=i.slice():r&&v(i)||(n[a]=i)};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&N(arguments[e],i);return n},extend:(e,t,r,{allOwnKeys:n}={})=>(N(t,(t,n)=>{r&&x(t)?e[n]=a(t,r):e[n]=t},{allOwnKeys:n}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:(e,t,r,n)=>{let i,o,a,s={};if(t=t||{},null==e)return t;do{for(o=(i=Object.getOwnPropertyNames(e)).length;o-- >0;)a=i[o],(!n||n(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=!1!==r&&u(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:f,kindOfTest:h,endsWith:(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;let n=e.indexOf(t,r);return -1!==n&&n===r},toArray:e=>{if(!e)return null;if(g(e))return e;let t=e.length;if(!w(t))return null;let r=Array(t);for(;t-- >0;)r[t]=e[t];return r},forEachEntry:(e,t)=>{let r,n=(e&&e[c]).call(e);for(;(r=n.next())&&!r.done;){let n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let r,n=[];for(;null!==(r=e.exec(t));)n.push(r);return n},isHTMLForm:F,hasOwnProperty:j,hasOwnProp:j,reduceDescriptors:B,freezeMethods:e=>{B(e,(t,r)=>{if(x(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;if(x(e[r])){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},toObjectSet:(e,t)=>{let r={};return(g(e)?e:String(e).split(t)).forEach(e=>{r[e]=!0}),r},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,r){return t.toUpperCase()+r}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e*=1)?e:t,findKey:M,global:L,isContextDefined:V,isSpecCompliantForm:function(e){return!!(e&&x(e.append)&&"FormData"===e[d]&&e[c])},toJSONObject:e=>{let t=Array(10),r=(e,n)=>{if(S(e)){if(t.indexOf(e)>=0)return;if(m(e))return e;if(!("toJSON"in e)){t[n]=e;let i=g(e)?[]:{};return N(e,(e,t)=>{let o=r(e,n+1);v(o)||(i[t]=o)}),t[n]=void 0,i}}return e};return r(e,0)},isAsyncFn:U,isThenable:e=>e&&(S(e)||x(e))&&x(e.then)&&x(e.catch),setImmediate:H,asap:W,isIterable:e=>null!=e&&x(e[c])};function q(e,t,r,n,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),i&&(this.response=i,this.status=i.status?i.status:null)}$.inherits(q,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:$.toJSONObject(this.config),code:this.code,status:this.status}}});let G=q.prototype,K={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{K[e]={value:e}}),Object.defineProperties(q,K),Object.defineProperty(G,"isAxiosError",{value:!0}),q.from=(e,t,r,n,i,o)=>{let a=Object.create(G);$.toFlatObject(e,a,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e);let s=e&&e.message?e.message:"Error",l=null==t&&e?e.code:t;return q.call(a,s,l,r,n,i),e&&null==a.cause&&Object.defineProperty(a,"cause",{value:e,configurable:!0}),a.name=e&&e.name||"Error",o&&Object.assign(a,o),a};var Y=r(44020).Buffer;function X(e){return $.isPlainObject(e)||$.isArray(e)}function Q(e){return $.endsWith(e,"[]")?e.slice(0,-2):e}function J(e,t,r){return e?e.concat(t).map(function(e,t){return e=Q(e),!r&&t?"["+e+"]":e}).join(r?".":""):t}let Z=$.toFlatObject($,{},null,function(e){return/^is[A-Z]/.test(e)}),ee=function(e,t,r){if(!$.isObject(e))throw TypeError("target must be an object");t=t||new FormData;let n=(r=$.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!$.isUndefined(t[e])})).metaTokens,i=r.visitor||u,o=r.dots,a=r.indexes,s=(r.Blob||"undefined"!=typeof Blob&&Blob)&&$.isSpecCompliantForm(t);if(!$.isFunction(i))throw TypeError("visitor must be a function");function l(e){if(null===e)return"";if($.isDate(e))return e.toISOString();if($.isBoolean(e))return e.toString();if(!s&&$.isBlob(e))throw new q("Blob is not supported. Use a Buffer instead.");return $.isArrayBuffer(e)||$.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Y.from(e):e}function u(e,r,i){let s=e;if(e&&!i&&"object"==typeof e)if($.endsWith(r,"{}"))r=n?r:r.slice(0,-2),e=JSON.stringify(e);else{var u;if($.isArray(e)&&(u=e,$.isArray(u)&&!u.some(X))||($.isFileList(e)||$.endsWith(r,"[]"))&&(s=$.toArray(e)))return r=Q(r),s.forEach(function(e,n){$.isUndefined(e)||null===e||t.append(!0===a?J([r],n,o):null===a?r:r+"[]",l(e))}),!1}return!!X(e)||(t.append(J(i,r,o),l(e)),!1)}let c=[],d=Object.assign(Z,{defaultVisitor:u,convertValue:l,isVisitable:X});if(!$.isObject(e))throw TypeError("data must be an object");return!function e(r,n){if(!$.isUndefined(r)){if(-1!==c.indexOf(r))throw Error("Circular reference detected in "+n.join("."));c.push(r),$.forEach(r,function(r,o){!0===(!($.isUndefined(r)||null===r)&&i.call(t,r,$.isString(o)?o.trim():o,n,d))&&e(r,n?n.concat(o):[o])}),c.pop()}}(e),t};function et(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function er(e,t){this._pairs=[],e&&ee(e,this,t)}let en=er.prototype;function ei(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function eo(e,t,r){let n;if(!t)return e;let i=r&&r.encode||ei;$.isFunction(r)&&(r={serialize:r});let o=r&&r.serialize;if(n=o?o(t,r):$.isURLSearchParams(t)?t.toString():new er(t,r).toString(i)){let t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+n}return e}en.append=function(e,t){this._pairs.push([e,t])},en.toString=function(e){let t=e?function(t){return e.call(this,t,et)}:et;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};class ea{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){$.forEach(this.handlers,function(t){null!==t&&e(t)})}}let es={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},el="undefined"!=typeof URLSearchParams?URLSearchParams:er,eu="undefined"!=typeof FormData?FormData:null,ec="undefined"!=typeof Blob?Blob:null,ed="undefined"!=typeof window&&"undefined"!=typeof document,ef="object"==typeof navigator&&navigator||void 0,eh=ed&&(!ef||0>["ReactNative","NativeScript","NS"].indexOf(ef.product)),ep="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,eg=ed&&window.location.href||"http://localhost",ev={...o,isBrowser:!0,classes:{URLSearchParams:el,FormData:eu,Blob:ec},protocols:["http","https","file","blob","url","data"]},em=function(e){if($.isFormData(e)&&$.isFunction(e.entries)){let t={};return $.forEachEntry(e,(e,r)=>{!function e(t,r,n,i){let o=t[i++];if("__proto__"===o)return!0;let a=Number.isFinite(+o),s=i>=t.length;return(o=!o&&$.isArray(n)?n.length:o,s)?$.hasOwnProp(n,o)?n[o]=[n[o],r]:n[o]=r:(n[o]&&$.isObject(n[o])||(n[o]=[]),e(t,r,n[o],i)&&$.isArray(n[o])&&(n[o]=function(e){let t,r,n={},i=Object.keys(e),o=i.length;for(t=0;t<o;t++)n[r=i[t]]=e[r];return n}(n[o]))),!a}($.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0]),r,t,0)}),t}return null},eb={transitional:es,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){let r,n=t.getContentType()||"",i=n.indexOf("application/json")>-1,o=$.isObject(e);if(o&&$.isHTMLForm(e)&&(e=new FormData(e)),$.isFormData(e))return i?JSON.stringify(em(e)):e;if($.isArrayBuffer(e)||$.isBuffer(e)||$.isStream(e)||$.isFile(e)||$.isBlob(e)||$.isReadableStream(e))return e;if($.isArrayBufferView(e))return e.buffer;if($.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1){var a,s;return(a=e,s=this.formSerializer,ee(a,new ev.classes.URLSearchParams,{visitor:function(e,t,r,n){return ev.isNode&&$.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)},...s})).toString()}if((r=$.isFileList(e))||n.indexOf("multipart/form-data")>-1){let t=this.env&&this.env.FormData;return ee(r?{"files[]":e}:e,t&&new t,this.formSerializer)}}if(o||i){t.setContentType("application/json",!1);var l=e;if($.isString(l))try{return(0,JSON.parse)(l),$.trim(l)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(l)}return e}],transformResponse:[function(e){let t=this.transitional||eb.transitional,r=t&&t.forcedJSONParsing,n="json"===this.responseType;if($.isResponse(e)||$.isReadableStream(e))return e;if(e&&$.isString(e)&&(r&&!this.responseType||n)){let r=t&&t.silentJSONParsing;try{return JSON.parse(e,this.parseReviver)}catch(e){if(!r&&n){if("SyntaxError"===e.name)throw q.from(e,q.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ev.classes.FormData,Blob:ev.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};$.forEach(["delete","get","head","post","put","patch"],e=>{eb.headers[e]={}});let ey=$.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),ex=Symbol("internals");function ew(e){return e&&String(e).trim().toLowerCase()}function eS(e){return!1===e||null==e?e:$.isArray(e)?e.map(eS):String(e)}function eE(e,t,r,n,i){if($.isFunction(n))return n.call(this,t,r);if(i&&(t=r),$.isString(t)){if($.isString(n))return -1!==t.indexOf(n);if($.isRegExp(n))return n.test(t)}}class ek{constructor(e){e&&this.set(e)}set(e,t,r){let n=this;function i(e,t,r){let i=ew(t);if(!i)throw Error("header name must be a non-empty string");let o=$.findKey(n,i);o&&void 0!==n[o]&&!0!==r&&(void 0!==r||!1===n[o])||(n[o||t]=eS(e))}let o=(e,t)=>$.forEach(e,(e,r)=>i(e,r,t));if($.isPlainObject(e)||e instanceof this.constructor)o(e,t);else{let n;if($.isString(e)&&(e=e.trim())&&(n=e,!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim())))o((e=>{let t,r,n,i={};return e&&e.split("\n").forEach(function(e){n=e.indexOf(":"),t=e.substring(0,n).trim().toLowerCase(),r=e.substring(n+1).trim(),!t||i[t]&&ey[t]||("set-cookie"===t?i[t]?i[t].push(r):i[t]=[r]:i[t]=i[t]?i[t]+", "+r:r)}),i})(e),t);else if($.isObject(e)&&$.isIterable(e)){let r={},n,i;for(let t of e){if(!$.isArray(t))throw TypeError("Object iterator must return a key-value pair");r[i=t[0]]=(n=r[i])?$.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}o(r,t)}else null!=e&&i(t,e,r)}return this}get(e,t){if(e=ew(e)){let r=$.findKey(this,e);if(r){let e=this[r];if(!t)return e;if(!0===t){let t,r=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;for(;t=n.exec(e);)r[t[1]]=t[2];return r}if($.isFunction(t))return t.call(this,e,r);if($.isRegExp(t))return t.exec(e);throw TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=ew(e)){let r=$.findKey(this,e);return!!(r&&void 0!==this[r]&&(!t||eE(this,this[r],r,t)))}return!1}delete(e,t){let r=this,n=!1;function i(e){if(e=ew(e)){let i=$.findKey(r,e);i&&(!t||eE(r,r[i],i,t))&&(delete r[i],n=!0)}}return $.isArray(e)?e.forEach(i):i(e),n}clear(e){let t=Object.keys(this),r=t.length,n=!1;for(;r--;){let i=t[r];(!e||eE(this,this[i],i,e,!0))&&(delete this[i],n=!0)}return n}normalize(e){let t=this,r={};return $.forEach(this,(n,i)=>{let o=$.findKey(r,i);if(o){t[o]=eS(n),delete t[i];return}let a=e?i.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,r)=>t.toUpperCase()+r):String(i).trim();a!==i&&delete t[i],t[a]=eS(n),r[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return $.forEach(this,(r,n)=>{null!=r&&!1!==r&&(t[n]=e&&$.isArray(r)?r.join(", "):r)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){let r=new this(e);return t.forEach(e=>r.set(e)),r}static accessor(e){let t=(this[ex]=this[ex]={accessors:{}}).accessors,r=this.prototype;function n(e){let n=ew(e);if(!t[n]){let i=$.toCamelCase(" "+e);["get","set","has"].forEach(t=>{Object.defineProperty(r,t+i,{value:function(r,n,i){return this[t].call(this,e,r,n,i)},configurable:!0})}),t[n]=!0}}return $.isArray(e)?e.forEach(n):n(e),this}}function eC(e,t){let r=this||eb,n=t||r,i=ek.from(n.headers),o=n.data;return $.forEach(e,function(e){o=e.call(r,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function eO(e){return!!(e&&e.__CANCEL__)}function eI(e,t,r){q.call(this,null==e?"canceled":e,q.ERR_CANCELED,t,r),this.name="CanceledError"}function e_(e,t,r){let n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new q("Request failed with status code "+r.status,[q.ERR_BAD_REQUEST,q.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}ek.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),$.reduceDescriptors(ek.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}}),$.freezeMethods(ek),$.inherits(eI,q,{__CANCEL__:!0});let eT=function(e,t){let r,n=Array(e=e||10),i=Array(e),o=0,a=0;return t=void 0!==t?t:1e3,function(s){let l=Date.now(),u=i[a];r||(r=l),n[o]=s,i[o]=l;let c=a,d=0;for(;c!==o;)d+=n[c++],c%=e;if((o=(o+1)%e)===a&&(a=(a+1)%e),l-r<t)return;let f=u&&l-u;return f?Math.round(1e3*d/f):void 0}},eP=function(e,t){let r,n,i=0,o=1e3/t,a=(t,o=Date.now())=>{i=o,r=null,n&&(clearTimeout(n),n=null),e(...t)};return[(...e)=>{let t=Date.now(),s=t-i;s>=o?a(e,t):(r=e,n||(n=setTimeout(()=>{n=null,a(r)},o-s)))},()=>r&&a(r)]},eR=(e,t,r=3)=>{let n=0,i=eT(50,250);return eP(r=>{let o=r.loaded,a=r.lengthComputable?r.total:void 0,s=o-n,l=i(s);n=o,e({loaded:o,total:a,progress:a?o/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&o<=a?(a-o)/l:void 0,event:r,lengthComputable:null!=a,[t?"download":"upload"]:!0})},r)},eA=(e,t)=>{let r=null!=e;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},eN=e=>(...t)=>$.asap(()=>e(...t)),eM=ev.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,ev.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(ev.origin),ev.navigator&&/(msie|trident)/i.test(ev.navigator.userAgent)):()=>!0,eL=ev.hasStandardBrowserEnv?{write(e,t,r,n,i,o){let a=[e+"="+encodeURIComponent(t)];$.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),$.isString(n)&&a.push("path="+n),$.isString(i)&&a.push("domain="+i),!0===o&&a.push("secure"),document.cookie=a.join("; ")},read(e){let t=document.cookie.match(RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function eV(e,t,r){let n=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);return e&&(n||!1==r)?t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e:t}let eD=e=>e instanceof ek?{...e}:e;function eF(e,t){t=t||{};let r={};function n(e,t,r,n){return $.isPlainObject(e)&&$.isPlainObject(t)?$.merge.call({caseless:n},e,t):$.isPlainObject(t)?$.merge({},t):$.isArray(t)?t.slice():t}function i(e,t,r,i){return $.isUndefined(t)?$.isUndefined(e)?void 0:n(void 0,e,r,i):n(e,t,r,i)}function o(e,t){if(!$.isUndefined(t))return n(void 0,t)}function a(e,t){return $.isUndefined(t)?$.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function s(r,i,o){return o in t?n(r,i):o in e?n(void 0,r):void 0}let l={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t,r)=>i(eD(e),eD(t),r,!0)};return $.forEach(Object.keys({...e,...t}),function(n){let o=l[n]||i,a=o(e[n],t[n],n);$.isUndefined(a)&&o!==s||(r[n]=a)}),r}let ej=e=>{let t=eF({},e),{data:r,withXSRFToken:n,xsrfHeaderName:i,xsrfCookieName:o,headers:a,auth:s}=t;if(t.headers=a=ek.from(a),t.url=eo(eV(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&a.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),$.isFormData(r)){if(ev.hasStandardBrowserEnv||ev.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if($.isFunction(r.getHeaders)){let e=r.getHeaders(),t=["content-type","content-length"];Object.entries(e).forEach(([e,r])=>{t.includes(e.toLowerCase())&&a.set(e,r)})}}if(ev.hasStandardBrowserEnv&&(n&&$.isFunction(n)&&(n=n(t)),n||!1!==n&&eM(t.url))){let e=i&&o&&eL.read(o);e&&a.set(i,e)}return t},ez="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,r){let n,i,o,a,s,l=ej(e),u=l.data,c=ek.from(l.headers).normalize(),{responseType:d,onUploadProgress:f,onDownloadProgress:h}=l;function p(){a&&a(),s&&s(),l.cancelToken&&l.cancelToken.unsubscribe(n),l.signal&&l.signal.removeEventListener("abort",n)}let g=new XMLHttpRequest;function v(){if(!g)return;let n=ek.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders());e_(function(e){t(e),p()},function(e){r(e),p()},{data:d&&"text"!==d&&"json"!==d?g.response:g.responseText,status:g.status,statusText:g.statusText,headers:n,config:e,request:g}),g=null}g.open(l.method.toUpperCase(),l.url,!0),g.timeout=l.timeout,"onloadend"in g?g.onloadend=v:g.onreadystatechange=function(){g&&4===g.readyState&&(0!==g.status||g.responseURL&&0===g.responseURL.indexOf("file:"))&&setTimeout(v)},g.onabort=function(){g&&(r(new q("Request aborted",q.ECONNABORTED,e,g)),g=null)},g.onerror=function(t){let n=new q(t&&t.message?t.message:"Network Error",q.ERR_NETWORK,e,g);n.event=t||null,r(n),g=null},g.ontimeout=function(){let t=l.timeout?"timeout of "+l.timeout+"ms exceeded":"timeout exceeded",n=l.transitional||es;l.timeoutErrorMessage&&(t=l.timeoutErrorMessage),r(new q(t,n.clarifyTimeoutError?q.ETIMEDOUT:q.ECONNABORTED,e,g)),g=null},void 0===u&&c.setContentType(null),"setRequestHeader"in g&&$.forEach(c.toJSON(),function(e,t){g.setRequestHeader(t,e)}),$.isUndefined(l.withCredentials)||(g.withCredentials=!!l.withCredentials),d&&"json"!==d&&(g.responseType=l.responseType),h&&([o,s]=eR(h,!0),g.addEventListener("progress",o)),f&&g.upload&&([i,a]=eR(f),g.upload.addEventListener("progress",i),g.upload.addEventListener("loadend",a)),(l.cancelToken||l.signal)&&(n=t=>{g&&(r(!t||t.type?new eI(null,e,g):t),g.abort(),g=null)},l.cancelToken&&l.cancelToken.subscribe(n),l.signal&&(l.signal.aborted?n():l.signal.addEventListener("abort",n)));let m=function(e){let t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(l.url);if(m&&-1===ev.protocols.indexOf(m))return void r(new q("Unsupported protocol "+m+":",q.ERR_BAD_REQUEST,e));g.send(u||null)})},eB=function*(e,t){let r,n=e.byteLength;if(!t||n<t)return void(yield e);let i=0;for(;i<n;)r=i+t,yield e.slice(i,r),i=r},eU=async function*(e,t){for await(let r of eH(e))yield*eB(r,t)},eH=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);let t=e.getReader();try{for(;;){let{done:e,value:r}=await t.read();if(e)break;yield r}}finally{await t.cancel()}},eW=(e,t,r,n)=>{let i,o=eU(e,t),a=0,s=e=>{!i&&(i=!0,n&&n(e))};return new ReadableStream({async pull(e){try{let{done:t,value:n}=await o.next();if(t){s(),e.close();return}let i=n.byteLength;if(r){let e=a+=i;r(e)}e.enqueue(new Uint8Array(n))}catch(e){throw s(e),e}},cancel:e=>(s(e),o.return())},{highWaterMark:2})},{isFunction:e$}=$,eq=(({Request:e,Response:t})=>({Request:e,Response:t}))($.global),{ReadableStream:eG,TextEncoder:eK}=$.global,eY=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},eX=e=>{let t,{fetch:r,Request:n,Response:i}=e=$.merge.call({skipUndefined:!0},eq,e),o=r?e$(r):"function"==typeof fetch,a=e$(n),s=e$(i);if(!o)return!1;let l=o&&e$(eG),u=o&&("function"==typeof eK?(t=new eK,e=>t.encode(e)):async e=>new Uint8Array(await new n(e).arrayBuffer())),c=a&&l&&eY(()=>{let e=!1,t=new n(ev.origin,{body:new eG,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),d=s&&l&&eY(()=>$.isReadableStream(new i("").body)),f={stream:d&&(e=>e.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{f[e]||(f[e]=(t,r)=>{let n=t&&t[e];if(n)return n.call(t);throw new q(`Response type '${e}' is not supported`,q.ERR_NOT_SUPPORT,r)})});let h=async e=>{if(null==e)return 0;if($.isBlob(e))return e.size;if($.isSpecCompliantForm(e)){let t=new n(ev.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return $.isArrayBufferView(e)||$.isArrayBuffer(e)?e.byteLength:($.isURLSearchParams(e)&&(e+=""),$.isString(e))?(await u(e)).byteLength:void 0},p=async(e,t)=>{let r=$.toFiniteNumber(e.getContentLength());return null==r?h(t):r};return async e=>{let t,{url:o,method:s,data:l,signal:u,cancelToken:h,timeout:g,onDownloadProgress:v,onUploadProgress:m,responseType:b,headers:y,withCredentials:x="same-origin",fetchOptions:w}=ej(e),S=r||fetch;b=b?(b+"").toLowerCase():"text";let E=((e,t)=>{let{length:r}=e=e?e.filter(Boolean):[];if(t||r){let r,n=new AbortController,i=function(e){if(!r){r=!0,a();let t=e instanceof Error?e:this.reason;n.abort(t instanceof q?t:new eI(t instanceof Error?t.message:t))}},o=t&&setTimeout(()=>{o=null,i(new q(`timeout ${t} of ms exceeded`,q.ETIMEDOUT))},t),a=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(i):e.removeEventListener("abort",i)}),e=null)};e.forEach(e=>e.addEventListener("abort",i));let{signal:s}=n;return s.unsubscribe=()=>$.asap(a),s}})([u,h&&h.toAbortSignal()],g),k=null,C=E&&E.unsubscribe&&(()=>{E.unsubscribe()});try{if(m&&c&&"get"!==s&&"head"!==s&&0!==(t=await p(y,l))){let e,r=new n(o,{method:"POST",body:l,duplex:"half"});if($.isFormData(l)&&(e=r.headers.get("content-type"))&&y.setContentType(e),r.body){let[e,n]=eA(t,eR(eN(m)));l=eW(r.body,65536,e,n)}}$.isString(x)||(x=x?"include":"omit");let r=a&&"credentials"in n.prototype,u={...w,signal:E,method:s.toUpperCase(),headers:y.normalize().toJSON(),body:l,duplex:"half",credentials:r?x:void 0};k=a&&new n(o,u);let h=await (a?S(k,w):S(o,u)),g=d&&("stream"===b||"response"===b);if(d&&(v||g&&C)){let e={};["status","statusText","headers"].forEach(t=>{e[t]=h[t]});let t=$.toFiniteNumber(h.headers.get("content-length")),[r,n]=v&&eA(t,eR(eN(v),!0))||[];h=new i(eW(h.body,65536,r,()=>{n&&n(),C&&C()}),e)}b=b||"text";let O=await f[$.findKey(f,b)||"text"](h,e);return!g&&C&&C(),await new Promise((t,r)=>{e_(t,r,{data:O,headers:ek.from(h.headers),status:h.status,statusText:h.statusText,config:e,request:k})})}catch(t){if(C&&C(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new q("Network Error",q.ERR_NETWORK,e,k),{cause:t.cause||t});throw q.from(t,t&&t.code,e,k)}}},eQ=new Map,eJ=e=>{let t=e?e.env:{},{fetch:r,Request:n,Response:i}=t,o=[n,i,r],a=o.length,s,l,u=eQ;for(;a--;)s=o[a],void 0===(l=u.get(s))&&u.set(s,l=a?new Map:eX(t)),u=l;return l};eJ();let eZ={http:null,xhr:ez,fetch:{get:eJ}};$.forEach(eZ,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});let e0=e=>`- ${e}`,e1=e=>$.isFunction(e)||null===e||!1===e,e2={getAdapter:(e,t)=>{let r,n,{length:i}=e=$.isArray(e)?e:[e],o={};for(let a=0;a<i;a++){let i;if(n=r=e[a],!e1(r)&&void 0===(n=eZ[(i=String(r)).toLowerCase()]))throw new q(`Unknown adapter '${i}'`);if(n&&($.isFunction(n)||(n=n.get(t))))break;o[i||"#"+a]=n}if(!n){let e=Object.entries(o).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new q("There is no suitable adapter to dispatch the request "+(i?e.length>1?"since :\n"+e.map(e0).join("\n"):" "+e0(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return n}};function e5(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new eI(null,e)}function e3(e){return e5(e),e.headers=ek.from(e.headers),e.data=eC.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),e2.getAdapter(e.adapter||eb.adapter,e)(e).then(function(t){return e5(e),t.data=eC.call(e,e.transformResponse,t),t.headers=ek.from(t.headers),t},function(t){return!eO(t)&&(e5(e),t&&t.response&&(t.response.data=eC.call(e,e.transformResponse,t.response),t.response.headers=ek.from(t.response.headers))),Promise.reject(t)})}let e4="1.12.2",e6={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{e6[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});let e8={};e6.transitional=function(e,t,r){function n(e,t){return"[Axios v"+e4+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,i,o)=>{if(!1===e)throw new q(n(i," has been removed"+(t?" in "+t:"")),q.ERR_DEPRECATED);return t&&!e8[i]&&(e8[i]=!0,console.warn(n(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,i,o)}},e6.spelling=function(e){return(t,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};let e7={assertOptions:function(e,t,r){if("object"!=typeof e)throw new q("options must be an object",q.ERR_BAD_OPTION_VALUE);let n=Object.keys(e),i=n.length;for(;i-- >0;){let o=n[i],a=t[o];if(a){let t=e[o],r=void 0===t||a(t,o,e);if(!0!==r)throw new q("option "+o+" must be "+r,q.ERR_BAD_OPTION_VALUE);continue}if(!0!==r)throw new q("Unknown option "+o,q.ERR_BAD_OPTION)}},validators:e6},e9=e7.validators;class te{constructor(e){this.defaults=e||{},this.interceptors={request:new ea,response:new ea}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=Error();let r=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?r&&!String(e.stack).endsWith(r.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+r):e.stack=r}catch(e){}}throw e}}_request(e,t){let r,n;"string"==typeof e?(t=t||{}).url=e:t=e||{};let{transitional:i,paramsSerializer:o,headers:a}=t=eF(this.defaults,t);void 0!==i&&e7.assertOptions(i,{silentJSONParsing:e9.transitional(e9.boolean),forcedJSONParsing:e9.transitional(e9.boolean),clarifyTimeoutError:e9.transitional(e9.boolean)},!1),null!=o&&($.isFunction(o)?t.paramsSerializer={serialize:o}:e7.assertOptions(o,{encode:e9.function,serialize:e9.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),e7.assertOptions(t,{baseUrl:e9.spelling("baseURL"),withXsrfToken:e9.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let s=a&&$.merge(a.common,a[t.method]);a&&$.forEach(["delete","get","head","post","put","patch","common"],e=>{delete a[e]}),t.headers=ek.concat(s,a);let l=[],u=!0;this.interceptors.request.forEach(function(e){("function"!=typeof e.runWhen||!1!==e.runWhen(t))&&(u=u&&e.synchronous,l.unshift(e.fulfilled,e.rejected))});let c=[];this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let d=0;if(!u){let e=[e3.bind(this),void 0];for(e.unshift(...l),e.push(...c),n=e.length,r=Promise.resolve(t);d<n;)r=r.then(e[d++],e[d++]);return r}n=l.length;let f=t;for(;d<n;){let e=l[d++],t=l[d++];try{f=e(f)}catch(e){t.call(this,e);break}}try{r=e3.call(this,f)}catch(e){return Promise.reject(e)}for(d=0,n=c.length;d<n;)r=r.then(c[d++],c[d++]);return r}getUri(e){return eo(eV((e=eF(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}}$.forEach(["delete","get","head","options"],function(e){te.prototype[e]=function(t,r){return this.request(eF(r||{},{method:e,url:t,data:(r||{}).data}))}}),$.forEach(["post","put","patch"],function(e){function t(t){return function(r,n,i){return this.request(eF(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}te.prototype[e]=t(),te.prototype[e+"Form"]=t(!0)});class tt{constructor(e){let t;if("function"!=typeof e)throw TypeError("executor must be a function.");this.promise=new Promise(function(e){t=e});let r=this;this.promise.then(e=>{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null}),this.promise.then=e=>{let t,n=new Promise(e=>{r.subscribe(e),t=e}).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e(function(e,n,i){r.reason||(r.reason=new eI(e,n,i),t(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason)return void e(this.reason);this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){let e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new tt(function(t){e=t}),cancel:e}}}let tr={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(tr).forEach(([e,t])=>{tr[t]=e});let tn=function e(t){let r=new te(t),n=a(te.prototype.request,r);return $.extend(n,te.prototype,r,{allOwnKeys:!0}),$.extend(n,r,null,{allOwnKeys:!0}),n.create=function(r){return e(eF(t,r))},n}(eb);tn.Axios=te,tn.CanceledError=eI,tn.CancelToken=tt,tn.isCancel=eO,tn.VERSION=e4,tn.toFormData=ee,tn.AxiosError=q,tn.Cancel=tn.CanceledError,tn.all=function(e){return Promise.all(e)},tn.spread=function(e){return function(t){return e.apply(null,t)}},tn.isAxiosError=function(e){return $.isObject(e)&&!0===e.isAxiosError},tn.mergeConfig=eF,tn.AxiosHeaders=ek,tn.formToJSON=e=>em($.isHTMLForm(e)?new FormData(e):e),tn.getAdapter=e2.getAdapter,tn.HttpStatusCode=tr,tn.default=tn;let ti=tn},27946:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(20871);function i(e){var t=e+="",r=t.indexOf(":");return r>=0&&"xmlns"!==(t=e.slice(0,r))&&(e=e.slice(r+1)),n.A.hasOwnProperty(t)?{space:n.A[t],local:e}:e}},28750:(e,t,r)=>{e=r.nmd(e);var n=r(93475),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i?n.Buffer:void 0,s=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var r=e.length,n=s?s(r):new e.constructor(r);return e.copy(n),n}},28858:(e,t,r)=>{"use strict";function n(e){var t=Object.create(null);return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}r.d(t,{A:()=>n})},28944:(e,t,r)=>{var n=r(81789),i=r(93773);e.exports=function(e,t){return e&&n(t,i(t),e)}},28951:(e,t,r)=>{var n=r(6426);e.exports=function(e){var t=new e.constructor(e.byteLength);return new n(t).set(new n(e)),t}},29358:(e,t,r)=>{var n=r(99686);e.exports=function(e){return null==e?"":n(e)}},29677:(e,t,r)=>{"use strict";r.d(t,{J:()=>s});var n=r(87259),i=r(80715),o=r(45921),a=r(87442);let s=i.forwardRef(function(e,t){return(0,n.jsx)(a.K,{variant:"ghost","aria-label":"Close",ref:t,...e,children:e.children??(0,n.jsx)(o.US,{})})})},29687:e=>{var t=Object.prototype;e.exports=function(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||t)}},29747:(e,t,r)=>{var n=r(56012),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,o,a,s){var l=1&r,u=n(e),c=u.length;if(c!=n(t).length&&!l)return!1;for(var d=c;d--;){var f=u[d];if(!(l?f in t:i.call(t,f)))return!1}var h=s.get(e),p=s.get(t);if(h&&p)return h==t&&p==e;var g=!0;s.set(e,t),s.set(t,e);for(var v=l;++d<c;){var m=e[f=u[d]],b=t[f];if(o)var y=l?o(b,m,f,t,e,s):o(m,b,f,e,t,s);if(!(void 0===y?m===b||a(m,b,r,o,s):y)){g=!1;break}v||(v="constructor"==f)}if(g&&!v){var x=e.constructor,w=t.constructor;x!=w&&"constructor"in e&&"constructor"in t&&!("function"==typeof x&&x instanceof x&&"function"==typeof w&&w instanceof w)&&(g=!1)}return s.delete(e),s.delete(t),g}},30005:(e,t,r)=>{var n=r(94193),i=r(29687),o=r(18295),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return o(e);var t=i(e),r=[];for(var s in e)"constructor"==s&&(t||!a.call(e,s))||r.push(s);return r}},30039:(e,t,r)=>{var n;try{n=r(35438)}catch(e){}n||(n=window.graphlib),e.exports=n},30214:(e,t,r)=>{"use strict";r.d(t,{q:()=>i});var n=r(80715);function i(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{name:t,strict:r=!0,hookName:i="useContext",providerName:o="Provider",errorMessage:a,defaultValue:s}=e,l=(0,n.createContext)(s);return l.displayName=t,[l.Provider,function e(){let t=(0,n.useContext)(l);if(!t&&r){var s,u;let t=Error(null!=a?a:"".concat(i," returned `undefined`. Seems you forgot to wrap component within ").concat(o));throw t.name="ContextError",null==(s=(u=Error).captureStackTrace)||s.call(u,t,e),t}return t},l]}},30681:(e,t,r)=>{"use strict";r.d(t,{g:()=>i});let[n,i]=(0,r(5719).q)({name:"LocaleContext",hookName:"useLocaleContext",providerName:"<LocaleProvider />",strict:!1,defaultValue:{dir:"ltr",locale:"en-US"}})},30822:(e,t,r)=>{var n=r(94193);e.exports=function(e){return e==e&&!n(e)}},30847:(e,t,r)=>{var n=r(63281),i=r(32978);e.exports=function(e,t,r,o){var a=r.length,s=a,l=!o;if(null==e)return!s;for(e=Object(e);a--;){var u=r[a];if(l&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++a<s;){var c=(u=r[a])[0],d=e[c],f=u[1];if(l&&u[2]){if(void 0===d&&!(c in e))return!1}else{var h=new n;if(o)var p=o(d,f,c,e,t,h);if(!(void 0===p?i(f,d,3,o,h):p))return!1}}return!0}},30955:(e,t,r)=>{"use strict";var n=r(48613),i=r(45790),o=r(37929),a=r(52818),s=r(56102),l=r(16512),u=r(30039).Graph,c=r(26380);function d(e,t,r){return n.map(t,function(t){return s(e,t,r)})}function f(e,t){n.forEach(t,function(t){n.forEach(t,function(t,r){e.node(t).order=r})})}e.exports=function(e){var t=c.maxRank(e),r=d(e,n.range(1,t+1),"inEdges"),s=d(e,n.range(t-1,-1,-1),"outEdges"),h=i(e);f(e,h);for(var p,g=1/0,v=0,m=0;m<4;++v,++m){(function(e,t){var r=new u;n.forEach(e,function(e){var i=e.graph().root,o=a(e,i,r,t);n.forEach(o.vs,function(t,r){e.node(t).order=r}),l(e,r,o.vs)})})(v%2?r:s,v%4>=2),h=c.buildLayerMatrix(e);var b=o(e,h);b<g&&(m=0,p=n.cloneDeep(h),g=b)}f(e,p)}},32047:(e,t,r)=>{"use strict";function n(){let e,t,r=new Promise((r,n)=>{e=r,t=n});function n(e){Object.assign(r,e),delete r.resolve,delete r.reject}return r.status="pending",r.catch(()=>{}),r.resolve=t=>{n({status:"fulfilled",value:t}),e(t)},r.reject=e=>{n({status:"rejected",reason:e}),t(e)},r}r.d(t,{T:()=>n})},32191:(e,t,r)=>{var n=r(67911);e.exports=r(23151)(n)},32230:(e,t,r)=>{var n=r(76420),i=/^\s+/;e.exports=function(e){return e?e.slice(0,n(e)+1).replace(i,""):e}},32241:(e,t,r)=>{"use strict";r.d(t,{r:()=>i});var n=r(69446);let i=(e,t)=>((e,t)=>{let r={},n={};for(let i of Object.keys(e))t(i)?n[i]=e[i]:r[i]=e[i];return[n,r]})(e,(0,n.Tn)(t)?t:e=>t.includes(e))},32307:(e,t,r)=>{var n=0/0,i=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,s=/^0o[0-7]+$/i,l=parseInt,u="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,c="object"==typeof self&&self&&self.Object===Object&&self,d=u||c||Function("return this")(),f=Object.prototype.toString,h=Math.max,p=Math.min,g=function(){return d.Date.now()};function v(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function m(e){if("number"==typeof e)return e;if("symbol"==typeof(t=e)||t&&"object"==typeof t&&"[object Symbol]"==f.call(t))return n;if(v(e)){var t,r="function"==typeof e.valueOf?e.valueOf():e;e=v(r)?r+"":r}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(i,"");var u=a.test(e);return u||s.test(e)?l(e.slice(2),u?2:8):o.test(e)?n:+e}e.exports=function(e,t,r){var n,i,o,a,s,l,u=0,c=!1,d=!1,f=!0;if("function"!=typeof e)throw TypeError("Expected a function");function b(t){var r=n,o=i;return n=i=void 0,u=t,a=e.apply(o,r)}function y(e){var r=e-l,n=e-u;return void 0===l||r>=t||r<0||d&&n>=o}function x(){var e,r,n,i=g();if(y(i))return w(i);s=setTimeout(x,(e=i-l,r=i-u,n=t-e,d?p(n,o-r):n))}function w(e){return(s=void 0,f&&n)?b(e):(n=i=void 0,a)}function S(){var e,r=g(),o=y(r);if(n=arguments,i=this,l=r,o){if(void 0===s)return u=e=l,s=setTimeout(x,t),c?b(e):a;if(d)return s=setTimeout(x,t),b(l)}return void 0===s&&(s=setTimeout(x,t)),a}return t=m(t)||0,v(r)&&(c=!!r.leading,o=(d="maxWait"in r)?h(m(r.maxWait)||0,t):o,f="trailing"in r?!!r.trailing:f),S.cancel=function(){void 0!==s&&clearTimeout(s),u=0,n=l=i=s=void 0},S.flush=function(){return void 0===s?a:w(g())},S}},32794:(e,t,r)=>{var n=r(62479);e.exports=function(){this.__data__=new n,this.size=0}},32855:(e,t,r)=>{"use strict";r.d(t,{A:()=>p});var n=r(77492),i=r(44627),o=r(16960),a=r(5108),s=r(82070);let l=e=>()=>e;function u(e,{sourceEvent:t,subject:r,target:n,identifier:i,active:o,x:a,y:s,dx:l,dy:u,dispatch:c}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},subject:{value:r,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},identifier:{value:i,enumerable:!0,configurable:!0},active:{value:o,enumerable:!0,configurable:!0},x:{value:a,enumerable:!0,configurable:!0},y:{value:s,enumerable:!0,configurable:!0},dx:{value:l,enumerable:!0,configurable:!0},dy:{value:u,enumerable:!0,configurable:!0},_:{value:c}})}function c(e){return!e.ctrlKey&&!e.button}function d(){return this.parentNode}function f(e,t){return null==t?{x:e.x,y:e.y}:t}function h(){return navigator.maxTouchPoints||"ontouchstart"in this}function p(){var e,t,r,p,g=c,v=d,m=f,b=h,y={},x=(0,n.A)("start","drag","end"),w=0,S=0;function E(e){e.on("mousedown.drag",k).filter(b).on("touchstart.drag",I).on("touchmove.drag",_,s.vr).on("touchend.drag touchcancel.drag",T).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function k(n,o){if(!p&&g.call(this,n,o)){var l=P(this,v.call(this,n,o),n,o,"mouse");l&&((0,i.A)(n.view).on("mousemove.drag",C,s.Rw).on("mouseup.drag",O,s.Rw),(0,a.A)(n.view),(0,s.GK)(n),r=!1,e=n.clientX,t=n.clientY,l("start",n))}}function C(n){if((0,s.Ay)(n),!r){var i=n.clientX-e,o=n.clientY-t;r=i*i+o*o>S}y.mouse("drag",n)}function O(e){(0,i.A)(e.view).on("mousemove.drag mouseup.drag",null),(0,a.y)(e.view,r),(0,s.Ay)(e),y.mouse("end",e)}function I(e,t){if(g.call(this,e,t)){var r,n,i=e.changedTouches,o=v.call(this,e,t),a=i.length;for(r=0;r<a;++r)(n=P(this,o,e,t,i[r].identifier,i[r]))&&((0,s.GK)(e),n("start",e,i[r]))}}function _(e){var t,r,n=e.changedTouches,i=n.length;for(t=0;t<i;++t)(r=y[n[t].identifier])&&((0,s.Ay)(e),r("drag",e,n[t]))}function T(e){var t,r,n=e.changedTouches,i=n.length;for(p&&clearTimeout(p),p=setTimeout(function(){p=null},500),t=0;t<i;++t)(r=y[n[t].identifier])&&((0,s.GK)(e),r("end",e,n[t]))}function P(e,t,r,n,i,a){var s,l,c,d=x.copy(),f=(0,o.A)(a||r,t);if(null!=(c=m.call(e,new u("beforestart",{sourceEvent:r,target:E,identifier:i,active:w,x:f[0],y:f[1],dx:0,dy:0,dispatch:d}),n)))return s=c.x-f[0]||0,l=c.y-f[1]||0,function r(a,h,p){var g,v=f;switch(a){case"start":y[i]=r,g=w++;break;case"end":delete y[i],--w;case"drag":f=(0,o.A)(p||h,t),g=w}d.call(a,e,new u(a,{sourceEvent:h,subject:c,target:E,identifier:i,active:g,x:f[0]+s,y:f[1]+l,dx:f[0]-v[0],dy:f[1]-v[1],dispatch:d}),n)}}return E.filter=function(e){return arguments.length?(g="function"==typeof e?e:l(!!e),E):g},E.container=function(e){return arguments.length?(v="function"==typeof e?e:l(e),E):v},E.subject=function(e){return arguments.length?(m="function"==typeof e?e:l(e),E):m},E.touchable=function(e){return arguments.length?(b="function"==typeof e?e:l(!!e),E):b},E.on=function(){var e=x.on.apply(x,arguments);return e===x?E:e},E.clickDistance=function(e){return arguments.length?(S=(e*=1)*e,E):Math.sqrt(S)},E}u.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e}},32978:(e,t,r)=>{var n=r(5268),i=r(79910);e.exports=function e(t,r,o,a,s){return t===r||(null!=t&&null!=r&&(i(t)||i(r))?n(t,r,o,a,e,s):t!=t&&r!=r)}},33036:(e,t,r)=>{var n=r(46410),i=r(97643),o=r(97780),a=r(81563);e.exports=function(e,t){return(a(e)?n:o)(e,i(t,3))}},33798:(e,t,r)=>{"use strict";r.d(t,{p:()=>d});var n=r(87259),i=r(76808),o=r(80715),a=r(634),s=r(86483);let l=(0,o.forwardRef)((e,t)=>{let r=(0,s.f)(),o=(0,i.v6)(null==r?void 0:r.getInputProps(),e);return(0,n.jsx)(a.X.input,{...o,ref:t})});l.displayName="FieldInput";let{withContext:u,PropsProvider:c}=(0,r(62523).a)({key:"input"}),d=u(l)},33895:e=>{var t="\ud800-\udfff",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",n="\ud83c[\udffb-\udfff]",i="[^"+t+"]",o="(?:\ud83c[\udde6-\uddff]){2}",a="[\ud800-\udbff][\udc00-\udfff]",s="(?:"+r+"|"+n+")?",l="[\\ufe0e\\ufe0f]?",u="(?:\\u200d(?:"+[i,o,a].join("|")+")"+l+s+")*",c=RegExp(n+"(?="+n+")|"+("(?:"+[i+r+"?",r,o,a,"["+t+"]"].join("|"))+")"+(l+s+u),"g");e.exports=function(e){for(var t=c.lastIndex=0;c.test(e);)++t;return t}},34643:(e,t,r)=>{"use strict";r.d(t,{$$:()=>a,Cj:()=>o});var n=r(80715);r(32307);var i="undefined"!=typeof window?n.useLayoutEffect:n.useEffect;function o(){let[e,t]=(0,n.useState)(null);return[e,(0,n.useCallback)(async e=>{if(!(null==navigator?void 0:navigator.clipboard))return console.warn("Clipboard not supported"),!1;try{return await navigator.clipboard.writeText(e),t(e),!0}catch(e){return console.warn("Copy failed",e),t(null),!1}},[])]}function a(e,t){let r=(0,n.useRef)(e);i(()=>{r.current=e},[e]),(0,n.useEffect)(()=>{if(null===t)return;let e=setInterval(()=>{r.current()},t);return()=>{clearInterval(e)}},[t])}},34892:e=>{e.exports=function(){this.__data__=[],this.size=0}},35089:(e,t,r)=>{"use strict";r.d(t,{uT:()=>E,Nv:()=>k,MQ:()=>w});var n=r(87259),i=r(86483),o=r(76808),a=r(80715),s=r(634);let l=(0,a.forwardRef)((e,t)=>{let r=(0,i.f)(),a=(0,o.v6)(null==r?void 0:r.getSelectProps(),e);return(0,n.jsx)(s.X.select,{...a,ref:t})});l.displayName="FieldSelect";var u=r(30214),c=r(9242),d=r(38006),f=r(70505),h=r(10425),p=r(45921);let[g,v]=(0,u.q)({name:"NativeSelectBasePropsContext",hookName:"useNativeSelectBaseProps",providerName:"<NativeSelectRoot />",strict:!1}),{withProvider:m,useClassNames:b,useStyles:y,PropsProvider:x}=(0,c.c)({key:"nativeSelect"}),w=m("div","root",{wrapElement(e,t){var r,o;let a=(0,i.f)(),s=!!(null!=(r=null==a?void 0:a.disabled)?r:t.disabled),l=!!(null!=(o=null==a?void 0:a.invalid)?o:t.invalid);return(0,n.jsx)(g,{value:{disabled:s,invalid:l},children:e})}}),S=(0,d.B)(l,{},{forwardAsChild:!0}),E=(0,a.forwardRef)(function(e,t){let{children:r,placeholder:i,unstyled:o,...a}=e,{disabled:s,invalid:l}=v(),u=y(),c=b();return(0,n.jsxs)(S,{disabled:s,"data-invalid":(0,f.s)(l),...a,ref:t,className:(0,h.cx)(c.field,e.className),css:[o?void 0:u.field,e.css],children:[i&&(0,n.jsx)("option",{value:"",children:i}),r]})});function k(e){var t;let{unstyled:r,...i}=e,o=y(),{disabled:a,invalid:s}=v(),l=b();return(0,n.jsx)(d.B.div,{...i,"data-disabled":(0,f.s)(a),"data-invalid":(0,f.s)(s),className:(0,h.cx)(l.indicator,e.className),css:[r?void 0:o.indicator,e.css],children:null!=(t=e.children)?t:(0,n.jsx)(p.D3,{})})}},35318:e=>{e.exports="2.1.8"},35385:(e,t,r)=>{e.exports=r(62569)()},35438:(e,t,r)=>{var n=r(45022);e.exports={Graph:n.Graph,json:r(40752),alg:r(7031),version:n.version}},35462:(e,t,r)=>{"use strict";r.d(t,{Aq:()=>m,MI:()=>u,Ng:()=>g});var n=r(43690),i=r(77534),o=r(87826),a=r(76808),s=r(41562),l=r(75794),u=(0,n.y)("switch").parts("root","label","control","thumb"),c=u.build(),d=e=>e.ids?.root??`switch:${e.id}`,f=e=>e.ids?.label??`switch:${e.id}:label`,h=e=>e.ids?.hiddenInput??`switch:${e.id}:input`,p=e=>e.getById(h(e));function g(e,t){let{context:r,send:n,prop:a,scope:s}=e,l=!!a("disabled"),u=!!a("readOnly"),g=!!a("required"),v=!!r.get("checked"),m=!l&&r.get("focused"),b=!l&&r.get("focusVisible"),y={"data-active":(0,i.sE)(r.get("active")),"data-focus":(0,i.sE)(m),"data-focus-visible":(0,i.sE)(b),"data-readonly":(0,i.sE)(u),"data-hover":(0,i.sE)(r.get("hovered")),"data-disabled":(0,i.sE)(l),"data-state":v?"checked":"unchecked","data-invalid":(0,i.sE)(a("invalid")),"data-required":(0,i.sE)(g)};return{checked:v,disabled:l,focused:m,setChecked(e){n({type:"CHECKED.SET",checked:e,isTrusted:!1})},toggleChecked(){n({type:"CHECKED.TOGGLE",checked:v,isTrusted:!1})},getRootProps:()=>t.label({...c.root.attrs,...y,dir:a("dir"),id:d(s),htmlFor:h(s),onPointerMove(){l||n({type:"CONTEXT.SET",context:{hovered:!0}})},onPointerLeave(){l||n({type:"CONTEXT.SET",context:{hovered:!1}})},onClick(e){!l&&((0,i.wt)(e)===p(s)&&e.stopPropagation(),(0,i.nr)()&&p(s)?.focus())}}),getLabelProps:()=>t.element({...c.label.attrs,...y,dir:a("dir"),id:f(s)}),getThumbProps:()=>t.element({...c.thumb.attrs,...y,dir:a("dir"),id:s.ids?.thumb??`switch:${s.id}:thumb`,"aria-hidden":!0}),getControlProps:()=>t.element({...c.control.attrs,...y,dir:a("dir"),id:s.ids?.control??`switch:${s.id}:control`,"aria-hidden":!0}),getHiddenInputProps:()=>t.input({id:h(s),type:"checkbox",required:a("required"),defaultChecked:v,disabled:l,"aria-labelledby":f(s),"aria-invalid":a("invalid"),name:a("name"),form:a("form"),value:a("value"),style:i.fe,onFocus(){n({type:"CONTEXT.SET",context:{focused:!0,focusVisible:(0,o.pP)()}})},onBlur(){n({type:"CONTEXT.SET",context:{focused:!1,focusVisible:!1}})},onClick(e){if(u)return void e.preventDefault();n({type:"CHECKED.SET",checked:e.currentTarget.checked,isTrusted:!0})}})}}var{not:v}=(0,a.b6)(),m=(0,a.Op)({props:({props:e})=>({defaultChecked:!1,label:"switch",value:"on",...e}),initialState:()=>"ready",context:({prop:e,bindable:t})=>({checked:t(()=>({defaultValue:e("defaultChecked"),value:e("checked"),onChange(t){e("onCheckedChange")?.({checked:t})}})),fieldsetDisabled:t(()=>({defaultValue:!1})),focusVisible:t(()=>({defaultValue:!1})),active:t(()=>({defaultValue:!1})),focused:t(()=>({defaultValue:!1})),hovered:t(()=>({defaultValue:!1}))}),computed:{isDisabled:({context:e,prop:t})=>t("disabled")||e.get("fieldsetDisabled")},watch({track:e,prop:t,context:r,action:n}){e([()=>t("disabled")],()=>{n(["removeFocusIfNeeded"])}),e([()=>r.get("checked")],()=>{n(["syncInputElement"])})},effects:["trackFormControlState","trackPressEvent","trackFocusVisible"],on:{"CHECKED.TOGGLE":[{guard:v("isTrusted"),actions:["toggleChecked","dispatchChangeEvent"]},{actions:["toggleChecked"]}],"CHECKED.SET":[{guard:v("isTrusted"),actions:["setChecked","dispatchChangeEvent"]},{actions:["setChecked"]}],"CONTEXT.SET":{actions:["setContext"]}},states:{ready:{}},implementations:{guards:{isTrusted:({event:e})=>!!e.isTrusted},effects:{trackPressEvent({computed:e,scope:t,context:r}){if(!e("isDisabled"))return(0,i.ru)({pointerNode:t.getById(d(t)),keyboardNode:p(t),isValidKey:e=>" "===e.key,onPress:()=>r.set("active",!1),onPressStart:()=>r.set("active",!0),onPressEnd:()=>r.set("active",!1)})},trackFocusVisible({computed:e,scope:t}){if(!e("isDisabled"))return(0,o.Yy)({root:t.getRootNode()})},trackFormControlState:({context:e,send:t,scope:r})=>(0,i.$S)(p(r),{onFieldsetDisabledChange(t){e.set("fieldsetDisabled",t)},onFormReset(){t({type:"CHECKED.SET",checked:!!e.initial("checked"),src:"form-reset"})}})},actions:{setContext({context:e,event:t}){for(let r in t.context)e.set(r,t.context[r])},syncInputElement({context:e,scope:t}){let r=p(t);r&&(0,i._T)(r,!!e.get("checked"))},removeFocusIfNeeded({context:e,prop:t}){t("disabled")&&e.set("focused",!1)},setChecked({context:e,event:t}){e.set("checked",t.checked)},toggleChecked({context:e}){e.set("checked",!e.get("checked"))},dispatchChangeEvent({context:e,scope:t}){let r=p(t);(0,i.uf)(r,{checked:e.get("checked")})}}}}),b=(0,s.x)()(["checked","defaultChecked","dir","disabled","form","getRootNode","id","ids","invalid","label","name","onCheckedChange","readOnly","required","value"]);(0,l.PM)(b)},35981:(e,t,r)=>{"use strict";function n(){return(n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}r.d(t,{A:()=>n})},37929:(e,t,r)=>{"use strict";var n=r(48613);e.exports=function(e,t){for(var r=0,i=1;i<t.length;++i)r+=function(e,t,r){for(var i=n.zipObject(r,n.map(r,function(e,t){return t})),o=n.flatten(n.map(t,function(t){return n.sortBy(n.map(e.outEdges(t),function(t){return{pos:i[t.w],weight:e.edge(t).weight}}),"pos")}),!0),a=1;a<r.length;)a<<=1;var s=2*a-1;a-=1;var l=n.map(Array(s),function(){return 0}),u=0;return n.forEach(o.forEach(function(e){var t=e.pos+a;l[t]+=e.weight;for(var r=0;t>0;)t%2&&(r+=l[t+1]),t=t-1>>1,l[t]+=e.weight;u+=e.weight*r})),u}(e,t[i-1],t[i]);return r}},38006:(e,t,r)=>{"use strict";r.d(t,{B:()=>_});var n=r(87259),i=r(28858),o=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,a=(0,i.A)(function(e){return o.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&91>e.charCodeAt(2)}),s=r(53078),l=r(45435),u=r(13648),c=r(96199),d=r(80715),f=r(80223);function h(e,t){if(null!=e){if("function"==typeof e)return e(t);try{e.current=t}catch(r){throw Error(`Cannot assign value '${t}' to ref '${e}'`)}}}var p=r(13431),g=r(10425),v=r(69446),m=r(55263),b=r(78513),y=r(32241);let x=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]),w=function(e){return e.default||e}(a),S=e=>"theme"!==e,E="undefined"!=typeof document,k=e=>{let{cache:t,serialized:r,isStringTag:i}=e;(0,c.SF)(t,r,i);let o=(0,u.s)(()=>(0,c.sk)(t,r,i));if(!E&&void 0!==o){let e=r.name,i=r.next;for(;void 0!==i;)e=(0,g.cx)(e,i.name),i=i.next;return(0,n.jsx)("style",{...{"data-emotion":(0,g.cx)(t.key,e),dangerouslySetInnerHTML:{__html:o},nonce:t.sheet.nonce}})}return null},C={path:["d"],text:["x","y"],circle:["cx","cy","r"],rect:["width","height","x","y","rx","ry"],ellipse:["cx","cy","rx","ry"],g:["transform"],stop:["offset","stopOpacity"]},O=(function(e){let t,r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(Object.prototype.hasOwnProperty.call(C,e)){o.forwardProps||(o.forwardProps=[]);let t=C[e];o.forwardProps=(0,m.s)([...o.forwardProps,...t])}let a=e.__emotion_real===e,u=a&&e.__emotion_base||e;void 0!==o&&(t=o.label,r=o.target);let E=[],O=(0,s.w)((t,m,C)=>{var O;let I,{cva:_,isValidProperty:P}=(0,b.$)(),R=i.__cva__?i:_(i),A=T(e.__emotion_cva,R);!o.shouldForwardProp&&o.forwardProps&&(I=o.forwardProps,o.shouldForwardProp=(e,t)=>!!I.includes(e)||!(null==t?void 0:t.includes(e))&&!P(e));let N=((e,t,r)=>{let n;if(t){let r=t.shouldForwardProp;n=e.__emotion_forwardProp&&r?t=>e.__emotion_forwardProp(t)&&r(t):r}return"function"!=typeof n&&r&&(n=e.__emotion_forwardProp),n})(e,o,a)||((t,r)=>{let n="string"==typeof e&&e.charCodeAt(0)>96?w:S,i=!(null==r?void 0:r.includes(t))&&!P(t);return n(t)&&i}),{props:M,styles:L}=function(e,t,r){let{css:n,isValidProperty:i}=(0,b.$)(),{children:o,...a}=e,s=(0,d.useMemo)(()=>{let[e,n]=(0,y.r)(a,e=>r(e,t.variantKeys)),[o,s]=(0,y.r)(n,t.variantKeys),[l,u]=(0,y.r)(s,i);return{forwardedProps:e,variantProps:o,styleProps:l,elementProps:u}},[t.variantKeys,r,a,i]),{css:l,...u}=s.styleProps,c=(0,d.useMemo)(()=>{let e={...s.variantProps};return t.variantKeys.includes("colorPalette")||(e.colorPalette=a.colorPalette),t.variantKeys.includes("orientation")||(e.orientation=a.orientation),t(e)},[t,s.variantProps,a.colorPalette,a.orientation]);return{styles:(0,d.useMemo)(()=>{let e;return n(c,...(Array.isArray(e=l)?e:[e]).filter(Boolean).flat(),u)},[n,c,l,u]),props:{...s.forwardedProps,...s.elementProps,children:o}}}(d.useMemo(()=>Object.assign({},o.defaultProps,(0,p.o)(t)),[t]),A,N),V="",D=[L],F=M;if(null==M.theme){for(let e in F={},M)F[e]=M[e];F.theme=d.useContext(s.T)}"string"==typeof M.className?V=(0,c.Rk)(m.registered,D,M.className):null!=M.className&&(V=(0,g.cx)(V,M.className));let j=(0,l.J)(E.concat(D),m.registered,F);j.styles&&(V=(0,g.cx)(V,"".concat(m.key,"-").concat(j.name))),void 0!==r&&(V=(0,g.cx)(V,r));let z=!N("as"),B=z&&M.as||u,U={};for(let e in M)if(!z||"as"!==e){if("string"==typeof e&&x.has(e)){U[e.replace("html","").toLowerCase()]=M[e];continue}N(e)&&(U[e]=M[e])}let H=V.trim();H?U.className=H:Reflect.deleteProperty(U,"className"),U.ref=C;let W=o.forwardAsChild||(null==(O=o.forwardProps)?void 0:O.includes("asChild"));if(M.asChild&&!W){let e=d.isValidElement(M.children)?d.Children.only(M.children):d.Children.toArray(M.children).find(d.isValidElement);if(!e)throw Error("[chakra-ui > factory] No valid child found");B=e.type,U.children=null,Reflect.deleteProperty(U,"asChild"),(U=(0,f.v)(U,e.props)).ref=function(...e){let t=e.filter(e=>null!=e),r=new Map;return e=>(t.forEach(t=>{let n=h(t,e);n&&r.set(t,n)}),()=>{t.forEach(e=>{let t=r.get(e);t&&"function"==typeof t?t():h(e,null)}),r.clear()})}(C,function(e){let t=d.version;return!(0,v.Kg)(t)||t.startsWith("18.")?e?.ref:e?.props?.ref}(e))}return U.as&&W?(U.as=void 0,(0,n.jsxs)(d.Fragment,{children:[(0,n.jsx)(k,{cache:m,serialized:j,isStringTag:"string"==typeof B}),(0,n.jsx)(B,{asChild:!0,...U,children:(0,n.jsx)(M.as,{children:U.children})})]})):(0,n.jsxs)(d.Fragment,{children:[(0,n.jsx)(k,{cache:m,serialized:j,isStringTag:"string"==typeof B}),(0,n.jsx)(B,{...U})]})});return O.displayName=void 0!==t?t:"chakra(".concat("string"==typeof u?u:u.displayName||u.name||"Component",")"),O.__emotion_real=O,O.__emotion_base=u,O.__emotion_forwardProp=o.shouldForwardProp,O.__emotion_cva=i,Object.defineProperty(O,"toString",{value:()=>".".concat(r)}),O}).bind(),I=new Map,_=new Proxy(O,{apply:(e,t,r)=>O(...r),get:(e,t)=>(I.has(t)||I.set(t,O(t)),I.get(t))}),T=(e,t)=>e&&!t?e:!e&&t?t:e.merge(t)},38201:(e,t,r)=>{"use strict";r.d(t,{rm:()=>en,Dr:()=>es,Uh:()=>eo,QC:()=>ea,S3:()=>el,y3:()=>et,iD:()=>ec,x0:()=>eu,il:()=>Z,bX:()=>er,cQ:()=>ee});var n=r(87259),i=r(76808),o=r(80715);let a=e=>{let t=(0,o.useRef)(e),r=(0,o.useRef)(!1);(0,o.useEffect)(()=>{t.current=e}),(0,o.useEffect)(()=>{!0!==r.current&&(r.current=!0,t.current())},[])};var s=r(97207),l=r(72963),u=r(14115),c=r(5719);let[d,f]=(0,c.q)({name:"MenuContext",hookName:"useMenuContext",providerName:"<MenuProvider />",strict:!1}),[h,p]=(0,c.q)({name:"MenuMachineContext",hookName:"useMenuMachineContext",providerName:"<MenuMachineProvider />",strict:!1}),[g,v]=(0,c.q)({name:"MenuMachineContext",hookName:"useMenuMachineContext",providerName:"<MenuMachineProvider />",strict:!1});var m=r(97563),b=r(19548),y=r(70568),x=r(24359),w=r(30681),S=r(634);let E=(0,o.forwardRef)((e,t)=>{let r=f(),o=(0,u.c)(),a=(0,i.v6)({...r.getTriggerProps(),"aria-controls":o.unmounted?void 0:r.getTriggerProps()["aria-controls"]},e);return(0,n.jsx)(S.X.button,{...a,ref:t})});E.displayName="MenuTrigger";let k=(0,o.forwardRef)((e,t)=>{let r=f(),o=(0,i.v6)(r.getContextTriggerProps(),e);return(0,n.jsx)(S.X.button,{...o,ref:t})});k.displayName="MenuContextTrigger";let C=(0,o.forwardRef)((e,t)=>{let r=f(),o=(0,i.v6)(r.getPositionerProps(),e);return(0,u.c)().unmounted?null:(0,n.jsx)(S.X.div,{...o,ref:t})});C.displayName="MenuPositioner";let O=(0,o.forwardRef)((e,t)=>{let r=f(),o=(0,i.v6)(r.getSeparatorProps(),e);return(0,n.jsx)(S.X.hr,{...o,ref:t})});O.displayName="MenuSeparator";var I=r(60460);let _=(0,o.forwardRef)((e,t)=>{let r=f(),o=(0,u.c)(),a=(0,i.v6)(r.getContentProps(),o.getPresenceProps(),e);return o.unmounted?null:(0,n.jsx)(S.X.div,{...a,ref:(0,I.t)(o.ref,t)})});_.displayName="MenuContent";let T=(0,o.forwardRef)((e,t)=>{let r=f(),o=(0,i.v6)(r.getArrowTipProps(),e);return(0,n.jsx)(S.X.div,{...o,ref:t})});T.displayName="MenuArrowTip";let P=(0,o.forwardRef)((e,t)=>{let r=f(),o=(0,i.v6)(r.getArrowProps(),e);return(0,n.jsx)(S.X.div,{...o,ref:t})});P.displayName="MenuArrow";let R=(0,o.forwardRef)((e,t)=>{let r=f(),o=(0,i.v6)(r.getIndicatorProps(),e);return(0,n.jsx)(S.X.div,{...o,ref:t})});R.displayName="MenuIndicator";let[A,N]=(0,c.q)({name:"MenuItemGroupContext",hookName:"useMenuItemGroupContext",providerName:"<MenuItemGroupProvider />"}),M=(0,o.forwardRef)((e,t)=>{let[r,a]=(0,m.P)()(e,["id"]),s=f(),l={id:(0,o.useId)(),...r},u=(0,i.v6)(s.getItemGroupProps(l),a);return(0,n.jsx)(A,{value:l,children:(0,n.jsx)(S.X.div,{...u,ref:t})})});M.displayName="MenuItemGroup";let L=(0,o.forwardRef)((e,t)=>{let r=f(),o=N(),a=(0,i.v6)(r.getItemGroupLabelProps({htmlFor:o.id}),e);return(0,n.jsx)(S.X.div,{...a,ref:t})});L.displayName="MenuItemGroupLabel";let[V,D]=(0,c.q)({name:"MenuItemContext",hookName:"useMenuItemContext",providerName:"<MenuItemProvider />"}),[F,j]=(0,c.q)({name:"MenuItemPropsContext",hookName:"useMenuItemPropsContext",providerName:"<MenuItemPropsProvider />"}),z=(0,o.forwardRef)((e,t)=>{let[r,a]=(0,m.P)()(e,["closeOnSelect","disabled","value","valueText","onSelect"]),s=f(),l=(0,i.v6)(s.getItemProps(r),a),u=s.getItemState(r);return(0,o.useEffect)(()=>s.addItemListener({id:u.id,onSelect:r.onSelect}),[u.id,r.onSelect]),(0,n.jsx)(F,{value:r,children:(0,n.jsx)(V,{value:u,children:(0,n.jsx)(S.X.div,{...l,ref:t})})})});z.displayName="MenuItem";let B=(0,o.forwardRef)((e,t)=>{var r;let o=v(),a=(0,i.v6)(null!=(r=null==o?void 0:o())?r:{},e);return(0,n.jsx)(F,{value:{value:a["data-value"]},children:(0,n.jsx)(S.X.div,{...a,ref:t})})});B.displayName="MenuTriggerItem";let U=(0,o.forwardRef)((e,t)=>{let r=f(),o=j(),a=(0,i.v6)(r.getItemTextProps(o),e);return(0,n.jsx)(S.X.div,{...a,ref:t})});U.displayName="MenuItemText";let H=(0,o.forwardRef)((e,t)=>{let r=f(),o=j(),a=(0,i.v6)(r.getItemIndicatorProps(o),e);return(0,n.jsx)(S.X.div,{...a,ref:t})});H.displayName="MenuItemIndicator";let W=(0,o.forwardRef)((e,t)=>{let[r,o]=(0,m.P)()(e,["checked","closeOnSelect","disabled","onCheckedChange","value","valueText"]),a={...r,type:"checkbox"},s=f(),l=(0,i.v6)(s.getOptionItemProps(a),o),u=s.getOptionItemState(a);return(0,n.jsx)(F,{value:a,children:(0,n.jsx)(V,{value:u,children:(0,n.jsx)(S.X.div,{...l,ref:t})})})});W.displayName="MenuCheckboxItem";let $=(0,o.forwardRef)((e,t)=>{let[r,a]=(0,m.P)()(e,["id","onValueChange","value"]),s=f(),l={id:(0,o.useId)(),...r},u=(0,i.v6)(s.getItemGroupProps({id:l.id}),a);return(0,n.jsx)(A,{value:l,children:(0,n.jsx)(S.X.div,{...u,ref:t})})});$.displayName="MenuRadioItemGroup";let q=(0,o.forwardRef)((e,t)=>{let[r,o]=(0,m.P)()(e,["closeOnSelect","disabled","value","valueText"]),a=f(),s=N(),l={...r,checked:s.value===r.value,type:"radio",onCheckedChange:()=>{var e;return null==(e=s.onValueChange)?void 0:e.call(s,{value:r.value})}},u=(0,i.v6)(a.getOptionItemProps(l),o),c=a.getOptionItemState(l);return(0,n.jsx)(F,{value:l,children:(0,n.jsx)(V,{value:c,children:(0,n.jsx)(S.X.div,{...u,ref:t})})})});q.displayName="MenuRadioItem";var G=r(9242),K=r(45921);let{withRootProvider:Y,withContext:X,useStyles:Q,PropsProvider:J}=(0,G.c)({key:"menu"});Y(e=>{let t=f(),r=p(),[c,{value:v,children:m}]=(0,s.s)(e),{api:b,service:y}=v,x=(0,l.x)((0,i.v6)({present:b.open},c));a(()=>{r&&t&&(t.setChild(y),b.setParent(r))});let w=(0,o.useCallback)(()=>null==t?void 0:t.getTriggerItemProps(b),[b,t]);return(0,n.jsx)(g,{value:w,children:(0,n.jsx)(h,{value:y,children:(0,n.jsx)(d,{value:b,children:(0,n.jsx)(u.j,{value:x,children:m})})})})});let Z=Y(e=>{let[t,r]=(0,s.s)(e),[c,v]=(0,m.P)()(r,["anchorPoint","aria-label","closeOnSelect","composite","defaultHighlightedValue","defaultOpen","highlightedValue","id","ids","loopFocus","navigate","onEscapeKeyDown","onFocusOutside","onHighlightChange","onInteractOutside","onOpenChange","onPointerDownOutside","onRequestDismiss","onSelect","open","positioning","typeahead"]),S=f(),E=p(),{api:k,service:C}=(e=>{let t=(0,o.useId)(),{getRootNode:r}=(0,x.w)(),{dir:n}=(0,w.g)(),i={id:t,dir:n,getRootNode:r,...e},a=(0,y.zl)(b.Aq,i);return{api:b.Ng(a,y._B),service:a}})(c),O=(0,l.x)((0,i.v6)({present:k.open},t));a(()=>{E&&S&&(S.setChild(C),k.setParent(E))});let I=(0,o.useCallback)(()=>null==S?void 0:S.getTriggerItemProps(k),[k,S]);return(0,n.jsx)(g,{value:I,children:(0,n.jsx)(h,{value:C,children:(0,n.jsx)(d,{value:k,children:(0,n.jsx)(u.j,{value:O,...v})})})})},{defaultProps:{lazyMount:!0,unmountOnExit:!0}}),ee=X(E,"trigger",{forwardAsChild:!0});X(k,"contextTrigger",{forwardAsChild:!0});let et=X(C,"positioner",{forwardAsChild:!0}),er=X(O,"separator",{forwardAsChild:!0}),en=X(_,"content",{forwardAsChild:!0}),ei=X(T,"arrowTip",{forwardAsChild:!0});X(P,"arrow",{forwardAsChild:!0,defaultProps:{children:(0,n.jsx)(ei,{})}}),X(R,"indicator",{forwardAsChild:!0});let eo=X(M,"itemGroup",{forwardAsChild:!0}),ea=X(L,"itemGroupLabel",{forwardAsChild:!0}),es=X(z,"item",{forwardAsChild:!0});X(B,"item",{forwardAsChild:!0}),X(U,"itemText",{forwardAsChild:!0}),X("kbd","itemCommand");let el=X(H,"itemIndicator",{forwardAsChild:!0,defaultProps:{children:(0,n.jsx)(K.Sr,{boxSize:"4"})}});X(W,"item",{forwardAsChild:!0});let eu=X($,"itemGroup",{forwardAsChild:!0}),ec=X(q,"item",{forwardAsChild:!0})},38649:e=>{e.exports=function(){return!1}},38942:(e,t,r)=>{var n=r(51205),i=r(19654),o=r(67911),a=r(97643),s=r(59045),l=r(81563),u=r(7088),c=r(75114),d=r(94193),f=r(14143);e.exports=function(e,t,r){var h=l(e),p=h||u(e)||f(e);if(t=a(t,4),null==r){var g=e&&e.constructor;r=p?h?new g:[]:d(e)&&c(g)?i(s(e)):{}}return(p?n:o)(e,function(e,n,i){return t(r,e,n,i)}),r}},39017:(e,t,r)=>{var n=r(51988);e.exports=function(e,t){return n(e,t,"post")}},39279:(e,t,r)=>{e.exports=r(80031)("length")},39947:(e,t,r)=>{"use strict";r.d(t,{rd:()=>w,qh:()=>b,Ix:()=>v,dO:()=>x,zy:()=>h,lq:()=>g});var n=r(16722),i=r(98492);let o=(e="")=>"/"===e?"":e,a=e=>{try{return decodeURI(e)}catch(t){return e}},s={hook:n.ZD,searchHook:n.SQ,parser:function(e,t){if(e instanceof RegExp)return{keys:!1,pattern:e};var r,n,i,o,a=[],s="",l=e.split("/");for(l[0]||l.shift();i=l.shift();)"*"===(r=i[0])?(a.push(r),s+="?"===i[1]?"(?:/(.*))?":"/(.*)"):":"===r?(n=i.indexOf("?",1),o=i.indexOf(".",1),a.push(i.substring(1,~n?n:~o?o:i.length)),s+=~n&&!~o?"(?:/([^/]+?))?":"/([^/]+?)",~o&&(s+=(~n?"?":"")+"\\"+i.substring(o))):s+="/"+i;return{keys:a,pattern:RegExp("^"+s+(t?"(?=$|/)":"/?$"),"i")}},base:"",ssrPath:void 0,ssrSearch:void 0,ssrContext:void 0,hrefs:e=>e},l=(0,i.q6)(s),u=()=>(0,i.NT)(l),c={},d=(0,i.q6)(c),f=e=>{let[t,r]=e.hook(e);return[((e="",t)=>((e,t)=>t.toLowerCase().indexOf(e.toLowerCase())?"~"+t:t.slice(e.length)||"/")(a(o(e)),a(t)))(e.base,t),(0,i._q)((t,n)=>r(((e,t)=>"~"===e[0]?e.slice(1):o(t)+e)(t,e.base),n))]},h=()=>f(u()),p=(e,t,r,n)=>{let{pattern:i,keys:o}=t instanceof RegExp?{keys:!1,pattern:t}:e(t||"*",n),a=i.exec(r)||[],[s,...l]=a;return void 0!==s?[!0,(()=>{let e=!1!==o?Object.fromEntries(o.map((e,t)=>[e,l[t]])):a.groups,t={...l};return e&&Object.assign(t,e),t})(),...n?[s]:[]]:[!1,null]},g=e=>p(u().parser,e,h()[0]),v=({children:e,...t})=>{let r=u(),n=t.hook?s:r,o=n,[a,c]=t.ssrPath?.split("?")??[];c&&(t.ssrSearch=c,t.ssrPath=a),t.hrefs=t.hrefs??t.hook?.hrefs;let d=(0,i.li)({}),f=d.current,h=f;for(let e in n){let r="base"===e?n[e]+(t[e]||""):t[e]||n[e];f===h&&r!==h[e]&&(d.current=h={...h}),h[e]=r,(r!==n[e]||r!==o[e])&&(o=h)}return(0,i.n)(l.Provider,{value:o,children:e})},m=({children:e,component:t},r)=>t?(0,i.n)(t,{params:r}):"function"==typeof e?e(r):e,b=({path:e,nest:t,match:r,...n})=>{let o=u(),[a]=f(o),[s,l,h]=r??p(o.parser,e,a,t),g=(e=>{let t=(0,i.li)(c),r=t.current;return t.current=Object.keys(e).length!==Object.keys(r).length||Object.entries(e).some(([e,t])=>t!==r[e])?e:r})({...(0,i.NT)(d),...l});if(!s)return null;let b=h?(0,i.n)(v,{base:h},m(n,g)):m(n,g);return(0,i.n)(d.Provider,{value:g,children:b})};(0,i.Rf)((e,t)=>{let r=u(),[n,o]=f(r),{to:a="",href:s=a,onClick:l,asChild:c,children:d,className:h,replace:p,state:g,...v}=e,m=(0,i._q)(t=>{t.ctrlKey||t.metaKey||t.altKey||t.shiftKey||0!==t.button||(l?.(t),t.defaultPrevented||(t.preventDefault(),o(s,e)))}),b=r.hrefs("~"===s[0]?s.slice(1):r.base+s,r);return c&&(0,i.zO)(d)?(0,i.Ob)(d,{onClick:m,href:b}):(0,i.n)("a",{...v,onClick:m,href:b,className:h?.call?h(n===s):h,children:d,ref:t})});let y=e=>Array.isArray(e)?e.flatMap(e=>y(e&&e.type===i.FK?e.props.children:e)):[e],x=({children:e,location:t})=>{let r=u(),[n]=f(r);for(let o of y(e)){let e=0;if((0,i.zO)(o)&&(e=p(r.parser,o.props.path,t||n,o.props.nest))[0])return(0,i.Ob)(o,{match:e})}return null},w=e=>{let{to:t,href:r=t}=e,n=u(),[,o]=f(n),a=(0,i._q)(()=>o(t||r,e)),{ssrContext:s}=n;return(0,i.Es)(()=>{a()},[]),s&&(s.redirectTo=t),null}},40103:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},40215:(e,t,r)=>{var n=r(89718),i=r(44686),o=r(79910),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return o(e)&&i(e.length)&&!!a[n(e)]}},40236:(e,t,r)=>{var n=r(88476),i=r(89071);e.exports=function e(t,r,o,a,s){var l=-1,u=t.length;for(o||(o=i),s||(s=[]);++l<u;){var c=t[l];r>0&&o(c)?r>1?e(c,r-1,o,a,s):n(s,c):a||(s[s.length]=c)}return s}},40497:(e,t,r)=>{var n=r(41171);e.exports=function(e,t){return!!(null==e?0:e.length)&&n(e,t,0)>-1}},40599:e=>{e.exports=function(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}},40752:(e,t,r)=>{var n=r(60663),i=r(46057);e.exports={write:function(e){var t,r,i={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:(t=e,n.map(t.nodes(),function(e){var r=t.node(e),i=t.parent(e),o={v:e};return n.isUndefined(r)||(o.value=r),n.isUndefined(i)||(o.parent=i),o})),edges:(r=e,n.map(r.edges(),function(e){var t=r.edge(e),i={v:e.v,w:e.w};return n.isUndefined(e.name)||(i.name=e.name),n.isUndefined(t)||(i.value=t),i}))};return n.isUndefined(e.graph())||(i.value=n.clone(e.graph())),i},read:function(e){var t=new i(e.options).setGraph(e.value);return n.each(e.nodes,function(e){t.setNode(e.v,e.value),e.parent&&t.setParent(e.v,e.parent)}),n.each(e.edges,function(e){t.setEdge({v:e.v,w:e.w,name:e.name},e.value)}),t}}},41171:(e,t,r)=>{var n=r(743),i=r(18643),o=r(94895);e.exports=function(e,t,r){return t==t?o(e,t,r):n(e,i,r)}},41249:(e,t,r)=>{var n=r(52417);e.exports=function(e,t){var r=n(this,e),i=r.size;return r.set(e,t),this.size+=+(r.size!=i),this}},41292:(e,t,r)=>{var n=r(69604);e.exports=function(){this.__data__=n?n(null):{},this.size=0}},41480:e=>{e.exports=function(e){return e}},41562:(e,t,r)=>{"use strict";function n(e){return new Proxy({},{get:(t,r)=>"style"===r?t=>e({style:t}).style:e})}r.d(t,{_:()=>n,x:()=>i});var i=()=>e=>Array.from(new Set(e))},42070:(e,t,r)=>{"use strict";r.d(t,{Aq:()=>y,Ng:()=>m,Os:()=>E,y$:()=>w});var n=r(77534),i=r(43690),o=r(76808),a=r(1970),s=r(75794),l=(0,i.y)("toast").parts("group","root","title","description","actionTrigger","closeTrigger").build(),u=(e,t)=>e.getById(`toast-group:${t}`),c=e=>`toast:${e.id}`,d=e=>e.getById(c(e)),f=e=>`toast:${e.id}:title`,h=e=>`toast:${e.id}:description`,p={info:5e3,error:5e3,success:2e3,loading:1/0,DEFAULT:5e3};function g(e,t){return e??p[t]??p.DEFAULT}var v=(0,o.Op)({props:({props:e})=>({dir:"ltr",id:(0,s.uR)(),...e,store:e.store}),initialState:({prop:e})=>e("store").attrs.overlap?"overlap":"stack",refs:()=>({lastFocusedEl:null,isFocusWithin:!1,dismissableCleanup:void 0}),context:({bindable:e})=>({toasts:e(()=>({defaultValue:[],sync:!0,hash:e=>e.map(e=>e.id).join(",")})),heights:e(()=>({defaultValue:[],sync:!0}))}),computed:{count:({context:e})=>e.get("toasts").length,overlap:({prop:e})=>e("store").attrs.overlap,placement:({prop:e})=>e("store").attrs.placement},effects:["subscribeToStore","trackDocumentVisibility","trackHotKeyPress"],watch({track:e,context:t,action:r}){e([()=>t.hash("toasts")],()=>{queueMicrotask(()=>{r(["collapsedIfEmpty","setDismissableBranch"])})})},exit:["clearDismissableBranch","clearLastFocusedEl"],on:{"DOC.HOTKEY":{actions:["focusRegionEl"]},"REGION.BLUR":[{guard:"isOverlapping",target:"overlap",actions:["collapseToasts","resumeToasts","restoreLastFocusedEl"]},{target:"stack",actions:["resumeToasts","restoreLastFocusedEl"]}],"TOAST.REMOVE":{actions:["removeToast","removeHeight"]},"TOAST.PAUSE":{actions:["pauseToasts"]}},states:{stack:{on:{"REGION.POINTER_LEAVE":[{guard:"isOverlapping",target:"overlap",actions:["resumeToasts","collapseToasts"]},{actions:["resumeToasts"]}],"REGION.OVERLAP":{target:"overlap",actions:["collapseToasts"]},"REGION.FOCUS":{actions:["setLastFocusedEl","pauseToasts"]},"REGION.POINTER_ENTER":{actions:["pauseToasts"]}}},overlap:{on:{"REGION.STACK":{target:"stack",actions:["expandToasts"]},"REGION.POINTER_ENTER":{target:"stack",actions:["pauseToasts","expandToasts"]},"REGION.FOCUS":{target:"stack",actions:["setLastFocusedEl","pauseToasts","expandToasts"]}}}},implementations:{guards:{isOverlapping:({computed:e})=>e("overlap")},effects:{subscribeToStore:({context:e,prop:t})=>t("store").subscribe(t=>{if(t.dismiss)return void e.set("toasts",e=>e.filter(e=>e.id!==t.id));e.set("toasts",e=>{let r=e.findIndex(e=>e.id===t.id);return -1!==r?[...e.slice(0,r),{...e[r],...t},...e.slice(r+1)]:[t,...e]})}),trackHotKeyPress:({prop:e,send:t})=>(0,n.kn)(document,"keydown",r=>{let{hotkey:n}=e("store").attrs;n.every(e=>r[e]||r.code===e)&&t({type:"DOC.HOTKEY"})},{capture:!0}),trackDocumentVisibility({prop:e,send:t,scope:r}){let{pauseOnPageIdle:i}=e("store").attrs;if(!i)return;let o=r.getDoc();return(0,n.kn)(o,"visibilitychange",()=>{t({type:"hidden"===o.visibilityState?"PAUSE_ALL":"RESUME_ALL"})})}},actions:{setDismissableBranch({refs:e,context:t,computed:r,scope:n}){let i=t.get("toasts"),o=r("placement"),s=i.length>0;if(!s)return void e.get("dismissableCleanup")?.();if(s&&e.get("dismissableCleanup"))return;let l=(0,a.S)(()=>u(n,o),{defer:!0});e.set("dismissableCleanup",l)},clearDismissableBranch({refs:e}){e.get("dismissableCleanup")?.()},focusRegionEl({scope:e,computed:t}){queueMicrotask(()=>{u(e,t("placement"))?.focus()})},pauseToasts({prop:e}){e("store").pause()},resumeToasts({prop:e}){e("store").resume()},expandToasts({prop:e}){e("store").expand()},collapseToasts({prop:e}){e("store").collapse()},removeToast({prop:e,event:t}){e("store").remove(t.id)},removeHeight({event:e,context:t}){e?.id!=null&&queueMicrotask(()=>{t.set("heights",t=>t.filter(t=>t.id!==e.id))})},collapsedIfEmpty({send:e,computed:t}){!t("overlap")||t("count")>1||e({type:"REGION.OVERLAP"})},setLastFocusedEl({refs:e,event:t}){!e.get("isFocusWithin")&&t.target&&(e.set("isFocusWithin",!0),e.set("lastFocusedEl",t.target))},restoreLastFocusedEl({refs:e}){e.get("lastFocusedEl")&&(e.get("lastFocusedEl")?.focus({preventScroll:!0}),e.set("lastFocusedEl",null),e.set("isFocusWithin",!1))},clearLastFocusedEl({refs:e}){e.get("lastFocusedEl")&&(e.get("lastFocusedEl")?.focus({preventScroll:!0}),e.set("lastFocusedEl",null),e.set("isFocusWithin",!1))}}}});function m(e,t){let{state:r,send:i,prop:o,scope:a,context:s,computed:u}=e,d=r.hasTag("visible"),p=r.hasTag("paused"),g=s.get("mounted"),v=u("frontmost"),m=o("parent").computed("placement"),b=o("type"),y=o("stacked"),x=o("title"),w=o("description"),S=o("action"),[E,k="center"]=m.split("-");return{type:b,title:x,description:w,placement:m,visible:d,paused:p,closable:!!o("closable"),pause(){i({type:"PAUSE"})},resume(){i({type:"RESUME"})},dismiss(){i({type:"DISMISS",src:"programmatic"})},getRootProps:()=>t.element({...l.root.attrs,dir:o("dir"),id:c(a),"data-state":d?"open":"closed","data-type":b,"data-placement":m,"data-align":k,"data-side":E,"data-mounted":(0,n.sE)(g),"data-paused":(0,n.sE)(p),"data-first":(0,n.sE)(v),"data-sibling":(0,n.sE)(!v),"data-stack":(0,n.sE)(y),"data-overlap":(0,n.sE)(!y),role:"status","aria-atomic":"true","aria-describedby":w?h(a):void 0,"aria-labelledby":x?f(a):void 0,tabIndex:0,style:function(e,t){let{prop:r,context:n,computed:i}=e,o=r("parent"),a=o.computed("placement"),{gap:s}=o.prop("store").attrs,[l]=a.split("-"),u=n.get("mounted"),c=n.get("remainingTime"),d=i("height"),f=i("frontmost"),h=!f,p=!r("stacked"),g=r("stacked"),v="loading"===r("type")?Number.MAX_SAFE_INTEGER:c,m=i("heightIndex")*s+i("heightBefore"),b={position:"absolute",pointerEvents:"auto","--opacity":"0","--remove-delay":`${r("removeDelay")}ms`,"--duration":`${v}ms`,"--initial-height":`${d}px`,"--offset":`${m}px`,"--index":r("index"),"--z-index":i("zIndex"),"--lift-amount":"calc(var(--lift) * var(--gap))","--y":"100%","--x":"0"},y=e=>Object.assign(b,e);return"top"===l?y({top:"0","--sign":"-1","--y":"-100%","--lift":"1"}):"bottom"===l&&y({bottom:"0","--sign":"1","--y":"100%","--lift":"-1"}),u&&(y({"--y":"0","--opacity":"1"}),g&&y({"--y":"calc(var(--lift) * var(--offset))","--height":"var(--initial-height)"})),t||y({"--opacity":"0",pointerEvents:"none"}),h&&p&&(y({"--base-scale":"var(--index) * 0.05 + 1","--y":"calc(var(--lift-amount) * var(--index))","--scale":"calc(-1 * var(--base-scale))","--height":"var(--first-height)"}),t||y({"--y":"calc(var(--sign) * 40%)"})),h&&g&&!t&&y({"--y":"calc(var(--lift) * var(--offset) + var(--lift) * -100%)"}),f&&!t&&y({"--y":"calc(var(--lift) * -100%)"}),b}(e,d),onKeyDown(e){e.defaultPrevented||"Escape"==e.key&&(i({type:"DISMISS",src:"keyboard"}),e.preventDefault())}}),getGhostBeforeProps:()=>t.element({"data-ghost":"before",style:function(e,t){let{computed:r}=e,n={position:"absolute",inset:"0",scale:"1 2",pointerEvents:t?"none":"auto"};return r("frontmost")&&!t&&Object.assign(n,{height:"calc(var(--initial-height) + 80%)"}),n}(e,d)}),getGhostAfterProps:()=>t.element({"data-ghost":"after",style:{position:"absolute",left:"0",height:"calc(var(--gap) + 2px)",bottom:"100%",width:"100%"}}),getTitleProps:()=>t.element({...l.title.attrs,id:f(a)}),getDescriptionProps:()=>t.element({...l.description.attrs,id:h(a)}),getActionTriggerProps:()=>t.button({...l.actionTrigger.attrs,type:"button",onClick(e){e.defaultPrevented||(S?.onClick?.(),i({type:"DISMISS",src:"user"}))}}),getCloseTriggerProps:()=>t.button({id:`toast${a.id}:close`,...l.closeTrigger.attrs,type:"button","aria-label":"Dismiss notification",onClick(e){e.defaultPrevented||i({type:"DISMISS",src:"user"})}})}}var{not:b}=(0,o.b6)(),y=(0,o.Op)({props:({props:e})=>((0,s.Pe)(e,["id","type","parent","removeDelay"],"toast"),{closable:!0,...e,duration:g(e.duration,e.type)}),initialState:({prop:e})=>"loading"===e("type")||e("duration")===1/0?"visible:persist":"visible",context:({prop:e,bindable:t})=>({remainingTime:t(()=>({defaultValue:g(e("duration"),e("type"))})),createdAt:t(()=>({defaultValue:Date.now()})),mounted:t(()=>({defaultValue:!1})),initialHeight:t(()=>({defaultValue:0}))}),refs:()=>({closeTimerStartTime:Date.now(),lastCloseStartTimerStartTime:0}),computed:{zIndex:({prop:e})=>{let t=e("parent").context.get("toasts"),r=t.findIndex(t=>t.id===e("id"));return t.length-r},height:({prop:e})=>{let t=e("parent").context.get("heights").find(t=>t.id===e("id"));return t?.height??0},heightIndex:({prop:e})=>e("parent").context.get("heights").findIndex(t=>t.id===e("id")),frontmost:({prop:e})=>0===e("index"),heightBefore:({prop:e})=>{let t=e("parent").context.get("heights"),r=t.findIndex(t=>t.id===e("id"));return t.reduce((e,t,n)=>n>=r?e:e+t.height,0)},shouldPersist:({prop:e})=>"loading"===e("type")||e("duration")===1/0},watch({track:e,prop:t,send:r}){e([()=>t("message")],()=>{let e=t("message");e&&r({type:e,src:"programmatic"})}),e([()=>t("type"),()=>t("duration")],()=>{r({type:"UPDATE"})})},on:{UPDATE:[{guard:"shouldPersist",target:"visible:persist",actions:["resetCloseTimer"]},{target:"visible:updating",actions:["resetCloseTimer"]}],MEASURE:{actions:["measureHeight"]}},entry:["setMounted","measureHeight","invokeOnVisible"],effects:["trackHeight"],states:{"visible:updating":{tags:["visible","updating"],effects:["waitForNextTick"],on:{SHOW:{target:"visible"}}},"visible:persist":{tags:["visible","paused"],on:{RESUME:{guard:b("isLoadingType"),target:"visible",actions:["setCloseTimer"]},DISMISS:{target:"dismissing"}}},visible:{tags:["visible"],effects:["waitForDuration"],on:{DISMISS:{target:"dismissing"},PAUSE:{target:"visible:persist",actions:["syncRemainingTime"]}}},dismissing:{entry:["invokeOnDismiss"],effects:["waitForRemoveDelay"],on:{REMOVE:{target:"unmounted",actions:["notifyParentToRemove"]}}},unmounted:{entry:["invokeOnUnmount"]}},implementations:{effects:{waitForRemoveDelay:({prop:e,send:t})=>(0,s.bK)(()=>{t({type:"REMOVE",src:"timer"})},e("removeDelay")),waitForDuration({send:e,context:t,computed:r}){if(!r("shouldPersist"))return(0,s.bK)(()=>{e({type:"DISMISS",src:"timer"})},t.get("remainingTime"))},waitForNextTick:({send:e})=>(0,s.bK)(()=>{e({type:"SHOW",src:"timer"})},0),trackHeight({scope:e,prop:t}){let r;return(0,n.er)(()=>{let n=d(e);if(!n)return;let i=new(e.getWin()).MutationObserver(()=>{let e=n.style.height;n.style.height="auto";let r=n.getBoundingClientRect().height;n.style.height=e;let i={id:t("id"),height:r};x(t("parent"),i)});i.observe(n,{childList:!0,subtree:!0,characterData:!0}),r=()=>i.disconnect()}),()=>r?.()}},guards:{isLoadingType:({prop:e})=>"loading"===e("type"),shouldPersist:({computed:e})=>e("shouldPersist")},actions:{setMounted({context:e}){(0,n.er)(()=>{e.set("mounted",!0)})},measureHeight({scope:e,prop:t,context:r}){queueMicrotask(()=>{let n=d(e);if(!n)return;let i=n.style.height;n.style.height="auto";let o=n.getBoundingClientRect().height;n.style.height=i,r.set("initialHeight",o);let a={id:t("id"),height:o};x(t("parent"),a)})},setCloseTimer({refs:e}){e.set("closeTimerStartTime",Date.now())},resetCloseTimer({context:e,refs:t,prop:r}){t.set("closeTimerStartTime",Date.now()),e.set("remainingTime",g(r("duration"),r("type")))},syncRemainingTime({context:e,refs:t}){e.set("remainingTime",e=>{let r=t.get("closeTimerStartTime"),n=Date.now()-r;return t.set("lastCloseStartTimerStartTime",Date.now()),e-n})},notifyParentToRemove({prop:e}){e("parent").send({type:"TOAST.REMOVE",id:e("id")})},invokeOnDismiss({prop:e,event:t}){e("onStatusChange")?.({status:"dismissing",src:t.src})},invokeOnUnmount({prop:e}){e("onStatusChange")?.({status:"unmounted"})},invokeOnVisible({prop:e}){e("onStatusChange")?.({status:"visible"})}}}});function x(e,t){let{id:r,height:n}=t;e.context.set("heights",e=>e.find(e=>e.id===r)?e.map(e=>e.id===r?{...e,height:n}:e):[{id:r,height:n},...e])}function w(e={}){let t={placement:"bottom",overlap:!1,max:24,gap:16,offsets:"1rem",hotkey:["altKey","KeyT"],removeDelay:200,pauseOnPageIdle:!0,...(0,s.oE)(e)},r=[],n=[],i=new Set,o=[],a=e=>(r.forEach(t=>t(e)),e),l=e=>{let r=e.id??`toast:${(0,s.uR)()}`,l=n.find(e=>e.id===r);return i.has(r)&&i.delete(r),l?n=n.map(t=>t.id===r?a({...t,...e,id:r}):t):(e=>{if(n.length>=t.max)return o.push(e);a(e),n.unshift(e)})({id:r,duration:t.duration,removeDelay:t.removeDelay,type:"info",...e,stacked:!t.overlap,gap:t.gap}),r},u=e=>{if(i.add(e),e)for(r.forEach(t=>t({id:e,dismiss:!0})),n=n.filter(t=>t.id!==e);o.length>0&&n.length<t.max;){let e=o.shift();e&&(a(e),n.unshift(e))}else n.forEach(e=>{r.forEach(t=>t({id:e.id,dismiss:!0}))}),n=[],o=[];return e};return{attrs:t,subscribe:e=>(r.push(e),()=>{let t=r.indexOf(e);r.splice(t,1)}),create:l,update:(e,t)=>l({id:e,...t}),remove:u,dismiss:e=>{n=null!=e?n.map(t=>t.id===e?a({...t,message:"DISMISS"}):t):n.map(e=>a({...e,message:"DISMISS"}))},error:e=>l({...e,type:"error"}),success:e=>l({...e,type:"success"}),info:e=>l({...e,type:"info"}),warning:e=>l({...e,type:"warning"}),loading:e=>l({...e,type:"loading"}),getVisibleToasts:()=>n.filter(e=>!i.has(e.id)),getCount:()=>n.length,promise:(e,t,r={})=>{let n;if(!t||!t.loading)return void(0,s.R8)("[zag-js > toast] toaster.promise() requires at least a 'loading' option to be specified");let i=l({...r,...t.loading,promise:e,type:"loading"}),o=!0,a=(0,s.Jg)(e).then(async e=>{if(n=["resolve",e],S(e)&&!e.ok){o=!1;let n=(0,s.Jg)(t.error,`HTTP Error! status: ${e.status}`);l({...r,...n,id:i,type:"error"})}else if(void 0!==t.success){o=!1;let n=(0,s.Jg)(t.success,e);l({...r,...n,id:i,type:"success"})}}).catch(async e=>{if(n=["reject",e],void 0!==t.error){o=!1;let n=(0,s.Jg)(t.error,e);l({...r,...n,id:i,type:"error"})}}).finally(()=>{o&&u(i),t.finally?.()});return{id:i,unwrap:()=>new Promise((e,t)=>a.then(()=>"reject"===n[0]?t(n[1]):e(n[1])).catch(t))}},pause:e=>{n=null!=e?n.map(t=>t.id===e?a({...t,message:"PAUSE"}):t):n.map(e=>a({...e,message:"PAUSE"}))},resume:e=>{n=null!=e?n.map(t=>t.id===e?a({...t,message:"RESUME"}):t):n.map(e=>a({...e,message:"RESUME"}))},isVisible:e=>!i.has(e)&&!!n.find(t=>t.id===e),isDismissed:e=>i.has(e),expand:()=>{n=n.map(e=>a({...e,stacked:!0}))},collapse:()=>{n=n.map(e=>a({...e,stacked:!1}))}}}var S=e=>e&&"object"==typeof e&&"ok"in e&&"boolean"==typeof e.ok&&"status"in e&&"number"==typeof e.status,E={connect:function(e,t){let{context:r,prop:i,send:o,refs:a,computed:s}=e;return{getCount:()=>r.get("toasts").length,getToasts:()=>r.get("toasts"),getGroupProps(r={}){let{label:u="Notifications"}=r,{hotkey:c}=i("store").attrs,d=c.join("+").replace(/Key/g,"").replace(/Digit/g,""),f=s("placement"),[h,p="center"]=f.split("-");return t.element({...l.group.attrs,dir:i("dir"),tabIndex:-1,"aria-label":`${f} ${u} ${d}`,id:`toast-group:${f}`,"data-placement":f,"data-side":h,"data-align":p,"aria-live":"polite",role:"region",style:function(e,t){let{prop:r,computed:i,context:o}=e,{offsets:a,gap:s}=r("store").attrs,l=o.get("heights"),u="string"==typeof a?{left:a,right:a,bottom:a,top:a}:a,c="rtl"===r("dir"),d=t.replace("-start",c?"-right":"-left").replace("-end",c?"-left":"-right"),f=d.includes("right"),h=d.includes("left"),p={position:"fixed",pointerEvents:i("count")>0?void 0:"none",display:"flex",flexDirection:"column","--gap":`${s}px`,"--first-height":`${l[0]?.height||0}px`,zIndex:n.hx},g="center";if(f&&(g="flex-end"),h&&(g="flex-start"),p.alignItems=g,d.includes("top")){let e=u.top;p.top=`max(env(safe-area-inset-top, 0px), ${e})`}if(d.includes("bottom")){let e=u.bottom;p.bottom=`max(env(safe-area-inset-bottom, 0px), ${e})`}if(!d.includes("left")){let e=u.right;p.insetInlineEnd=`calc(env(safe-area-inset-right, 0px) + ${e})`}if(!d.includes("right")){let e=u.left;p.insetInlineStart=`calc(env(safe-area-inset-left, 0px) + ${e})`}return p}(e,f),onMouseMove(){o({type:"REGION.POINTER_ENTER",placement:f})},onMouseLeave(){o({type:"REGION.POINTER_LEAVE",placement:f})},onFocus(e){o({type:"REGION.FOCUS",target:e.relatedTarget})},onBlur(e){a.get("isFocusWithin")&&!(0,n.gR)(e.currentTarget,e.relatedTarget)&&queueMicrotask(()=>o({type:"REGION.BLUR"}))}})},subscribe:e=>i("store").subscribe(()=>e(r.get("toasts")))}},machine:v}},42104:()=>{},42407:(e,t,r)=>{var n=r(6981),i=Math.max;e.exports=function(e,t,r){return t=i(void 0===t?e.length-1:t,0),function(){for(var o=arguments,a=-1,s=i(o.length-t,0),l=Array(s);++a<s;)l[a]=o[t+a];a=-1;for(var u=Array(t+1);++a<t;)u[a]=o[a];return u[t]=r(l),n(e,this,u)}}},42572:(e,t,r)=>{"use strict";var n=r(48613),i=r(26975);e.exports={run:function(e){var t,r,o,a,s,l="greedy"===e.graph().acyclicer?i(e,(t=e,function(e){return t.edge(e).weight})):(r=e,o=[],a={},s={},n.forEach(r.nodes(),function e(t){n.has(s,t)||(s[t]=!0,a[t]=!0,n.forEach(r.outEdges(t),function(t){n.has(a,t.w)?o.push(t):e(t.w)}),delete a[t])}),o);n.forEach(l,function(t){var r=e.edge(t);e.removeEdge(t),r.forwardName=t.name,r.reversed=!0,e.setEdge(t.w,t.v,r,n.uniqueId("rev"))})},undo:function(e){n.forEach(e.edges(),function(t){var r=e.edge(t);if(r.reversed){e.removeEdge(t);var n=r.forwardName;delete r.reversed,delete r.forwardName,e.setEdge(t.w,t.v,r,n)}})}}},42642:(e,t,r)=>{"use strict";r.d(t,{M:()=>c});var n=new WeakMap,i=new WeakMap,o={},a=0,s=e=>e&&(e.host||s(e.parentNode)),l=new Set(["script","output","status","next-route-announcer"]),u=e=>(Array.isArray(e)?e[0]:e).ownerDocument.body;function c(e,t={}){let{defer:r=!0}=t,d=[];return d.push((r?e=>{let t=requestAnimationFrame(()=>e());return()=>cancelAnimationFrame(t)}:e=>e())(()=>{let t=("function"==typeof e?e():e).filter(Boolean);0!==t.length&&d.push(((e,t=u(e),r="data-aria-hidden")=>{if(t)return((e,t)=>{let r,{parentNode:u,markerName:c,controlAttribute:d}=t,f=(r=u,(Array.isArray(e)?e:[e]).map(e=>{if(r.contains(e))return e;let t=s(e);return t&&r.contains(t)?t:(console.error("[zag-js > ariaHidden] target",e,"in not contained inside",r,". Doing nothing"),null)}).filter(e=>!!e));o[c]||(o[c]=new WeakMap);let h=o[c],p=[],g=new Set,v=new Set(f),m=e=>{!e||g.has(e)||(g.add(e),m(e.parentNode))};f.forEach(m);let b=e=>{!e||v.has(e)||Array.prototype.forEach.call(e.children,e=>{if(g.has(e))b(e);else try{let t;if(t=e,l.has(t.localName)||"status"===t.role||t.hasAttribute("aria-live")||t.matches("[data-live-announcer]"))return;let r=e.getAttribute(d),o="true"===r,a=(n.get(e)||0)+1,s=(h.get(e)||0)+1;n.set(e,a),h.set(e,s),p.push(e),1===a&&o&&i.set(e,!0),1===s&&e.setAttribute(c,""),o||e.setAttribute(d,"true")}catch(t){console.error("[zag-js > ariaHidden] cannot operate on ",e,t)}})};return b(u),g.clear(),a++,()=>{p.forEach(e=>{let t=n.get(e)-1,r=h.get(e)-1;n.set(e,t),h.set(e,r),t||(i.has(e)||e.removeAttribute(d),i.delete(e)),r||e.removeAttribute(c)}),--a||(n=new WeakMap,n=new WeakMap,i=new WeakMap,o={})}})(e,{parentNode:t,markerName:r,controlAttribute:"aria-hidden"})})(t))})),()=>{d.forEach(e=>e?.())}}},42805:(e,t,r)=>{"use strict";r.d(t,{_:()=>i});var n=r(80715);function i(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{sync:r=!1}=t,i=function(e){let t=(0,n.useRef)(e);return t.current=e,t}(e);return(0,n.useCallback)(function(){for(var e,t=arguments.length,n=Array(t),o=0;o<t;o++)n[o]=arguments[o];return r?queueMicrotask(()=>{var e;return null==(e=i.current)?void 0:e.call(i,...n)}):null==(e=i.current)?void 0:e.call(i,...n)},[r,i])}},43576:(e,t,r)=>{var n=r(32191);e.exports=function(e,t){var r=[];return n(e,function(e,n,i){t(e,n,i)&&r.push(e)}),r}},43623:e=>{e.exports=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}},43690:(e,t,r)=>{"use strict";r.d(t,{y:()=>n});var n=(e,t=[])=>({parts:(...r)=>{if(o(t))return n(e,r);throw Error("createAnatomy().parts(...) should only be called once. Did you mean to use .extendWith(...) ?")},extendWith:(...r)=>n(e,[...t,...r]),omit:(...r)=>n(e,t.filter(e=>!r.includes(e))),rename:e=>n(e,t),keys:()=>t,build:()=>[...new Set(t)].reduce((t,r)=>Object.assign(t,{[r]:{selector:`&[data-scope="${i(e)}"][data-part="${i(r)}"], & [data-scope="${i(e)}"][data-part="${i(r)}"]`,attrs:{"data-scope":i(e),"data-part":i(r)}}}),{})}),i=e=>e.replace(/([A-Z])([A-Z])/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase(),o=e=>0===e.length},43839:(e,t,r)=>{var n=r(57544);e.exports=function(e){var t=n(e),r=t%1;return t==t?r?t-r:t:0}},44020:e=>{!function(){var t={675:function(e,t){"use strict";t.byteLength=function(e){var t=l(e),r=t[0],n=t[1];return(r+n)*3/4-n},t.toByteArray=function(e){var t,r,o=l(e),a=o[0],s=o[1],u=new i((a+s)*3/4-s),c=0,d=s>0?a-4:a;for(r=0;r<d;r+=4)t=n[e.charCodeAt(r)]<<18|n[e.charCodeAt(r+1)]<<12|n[e.charCodeAt(r+2)]<<6|n[e.charCodeAt(r+3)],u[c++]=t>>16&255,u[c++]=t>>8&255,u[c++]=255&t;return 2===s&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,u[c++]=255&t),1===s&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,u[c++]=t>>8&255,u[c++]=255&t),u},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,o=[],a=0,s=n-i;a<s;a+=16383)o.push(function(e,t,n){for(var i,o=[],a=t;a<n;a+=3)i=(e[a]<<16&0xff0000)+(e[a+1]<<8&65280)+(255&e[a+2]),o.push(r[i>>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return o.join("")}(e,a,a+16383>s?s:a+16383));return 1===i?o.push(r[(t=e[n-1])>>2]+r[t<<4&63]+"=="):2===i&&o.push(r[(t=(e[n-2]<<8)+e[n-1])>>10]+r[t>>4&63]+r[t<<2&63]+"="),o.join("")};for(var r=[],n=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=o.length;a<s;++a)r[a]=o[a],n[o.charCodeAt(a)]=a;function l(e){var t=e.length;if(t%4>0)throw Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var n=r===t?0:4-r%4;return[r,n]}n[45]=62,n[95]=63},72:function(e,t,r){"use strict";var n=r(675),i=r(783),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function a(e){if(e>0x7fffffff)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,r){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return c(e)}return l(e,t,r)}function l(e,t,r){if("string"==typeof e){var n=e,i=t;if(("string"!=typeof i||""===i)&&(i="utf8"),!s.isEncoding(i))throw TypeError("Unknown encoding: "+i);var o=0|h(n,i),l=a(o),u=l.write(n,i);return u!==o&&(l=l.slice(0,u)),l}if(ArrayBuffer.isView(e))return d(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(T(e,ArrayBuffer)||e&&T(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(T(e,SharedArrayBuffer)||e&&T(e.buffer,SharedArrayBuffer)))return function(e,t,r){var n;if(t<0||e.byteLength<t)throw RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(n=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r),s.prototype),n}(e,t,r);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');var c=e.valueOf&&e.valueOf();if(null!=c&&c!==e)return s.from(c,t,r);var p=function(e){if(s.isBuffer(e)){var t=0|f(e.length),r=a(t);return 0===r.length||e.copy(r,0,0,t),r}return void 0!==e.length?"number"!=typeof e.length||function(e){return e!=e}(e.length)?a(0):d(e):"Buffer"===e.type&&Array.isArray(e.data)?d(e.data):void 0}(e);if(p)return p;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return s.from(e[Symbol.toPrimitive]("string"),t,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function c(e){return u(e),a(e<0?0:0|f(e))}function d(e){for(var t=e.length<0?0:0|f(e.length),r=a(t),n=0;n<t;n+=1)r[n]=255&e[n];return r}t.Buffer=s,t.SlowBuffer=function(e){return+e!=e&&(e=0),s.alloc(+e)},t.INSPECT_MAX_BYTES=50,t.kMaxLength=0x7fffffff,s.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),s.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),s.poolSize=8192,s.from=function(e,t,r){return l(e,t,r)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(e,t,r){return(u(e),e<=0)?a(e):void 0!==t?"string"==typeof r?a(e).fill(t,r):a(e).fill(t):a(e)},s.allocUnsafe=function(e){return c(e)},s.allocUnsafeSlow=function(e){return c(e)};function f(e){if(e>=0x7fffffff)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function h(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||T(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return C(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return I(e).length;default:if(i)return n?-1:C(e).length;t=(""+t).toLowerCase(),i=!0}}function p(e,t,r){var i,o,a,s=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=t;o<r;++o)i+=P[e[o]];return i}(this,t,r);case"utf8":case"utf-8":return b(this,t,r);case"ascii":return function(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(127&e[i]);return n}(this,t,r);case"latin1":case"binary":return function(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}(this,t,r);case"base64":return i=this,o=t,a=r,0===o&&a===i.length?n.fromByteArray(i):n.fromByteArray(i.slice(o,a));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(e,t,r){for(var n=e.slice(t,r),i="",o=0;o<n.length;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}(this,t,r);default:if(s)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),s=!0}}function g(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function v(e,t,r,n,i){var o;if(0===e.length)return -1;if("string"==typeof r?(n=r,r=0):r>0x7fffffff?r=0x7fffffff:r<-0x80000000&&(r=-0x80000000),(o=r*=1)!=o&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length)if(i)return -1;else r=e.length-1;else if(r<0)if(!i)return -1;else r=0;if("string"==typeof t&&(t=s.from(t,n)),s.isBuffer(t))return 0===t.length?-1:m(e,t,r,n,i);if("number"==typeof t){if(t&=255,"function"==typeof Uint8Array.prototype.indexOf)if(i)return Uint8Array.prototype.indexOf.call(e,t,r);else return Uint8Array.prototype.lastIndexOf.call(e,t,r);return m(e,[t],r,n,i)}throw TypeError("val must be string, number or Buffer")}function m(e,t,r,n,i){var o,a=1,s=e.length,l=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return -1;a=2,s/=2,l/=2,r/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var c=-1;for(o=r;o<s;o++)if(u(e,o)===u(t,-1===c?0:o-c)){if(-1===c&&(c=o),o-c+1===l)return c*a}else -1!==c&&(o-=o-c),c=-1}else for(r+l>s&&(r=s-l),o=r;o>=0;o--){for(var d=!0,f=0;f<l;f++)if(u(e,o+f)!==u(t,f)){d=!1;break}if(d)return o}return -1}s.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==s.prototype},s.compare=function(e,t){if(T(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),T(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,n=t.length,i=0,o=Math.min(r,n);i<o;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:+(n<r)},s.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(e,t){if(!Array.isArray(e))throw TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return s.alloc(0);if(void 0===t)for(r=0,t=0;r<e.length;++r)t+=e[r].length;var r,n=s.allocUnsafe(t),i=0;for(r=0;r<e.length;++r){var o=e[r];if(T(o,Uint8Array)&&(o=s.from(o)),!s.isBuffer(o))throw TypeError('"list" argument must be an Array of Buffers');o.copy(n,i),i+=o.length}return n},s.byteLength=h,s.prototype._isBuffer=!0,s.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)g(this,t,t+1);return this},s.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)g(this,t,t+3),g(this,t+1,t+2);return this},s.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)g(this,t,t+7),g(this,t+1,t+6),g(this,t+2,t+5),g(this,t+3,t+4);return this},s.prototype.toString=function(){var e=this.length;return 0===e?"":0==arguments.length?b(this,0,e):p.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(e){if(!s.isBuffer(e))throw TypeError("Argument must be a Buffer");return this===e||0===s.compare(this,e)},s.prototype.inspect=function(){var e="",r=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"},o&&(s.prototype[o]=s.prototype.inspect),s.prototype.compare=function(e,t,r,n,i){if(T(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,i>>>=0,this===e)return 0;for(var o=i-n,a=r-t,l=Math.min(o,a),u=this.slice(n,i),c=e.slice(t,r),d=0;d<l;++d)if(u[d]!==c[d]){o=u[d],a=c[d];break}return o<a?-1:+(a<o)},s.prototype.includes=function(e,t,r){return -1!==this.indexOf(e,t,r)},s.prototype.indexOf=function(e,t,r){return v(this,e,t,r,!0)},s.prototype.lastIndexOf=function(e,t,r){return v(this,e,t,r,!1)};function b(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i<r;){var o,a,s,l,u=e[i],c=null,d=u>239?4:u>223?3:u>191?2:1;if(i+d<=r)switch(d){case 1:u<128&&(c=u);break;case 2:(192&(o=e[i+1]))==128&&(l=(31&u)<<6|63&o)>127&&(c=l);break;case 3:o=e[i+1],a=e[i+2],(192&o)==128&&(192&a)==128&&(l=(15&u)<<12|(63&o)<<6|63&a)>2047&&(l<55296||l>57343)&&(c=l);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],(192&o)==128&&(192&a)==128&&(192&s)==128&&(l=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(c=l)}null===c?(c=65533,d=1):c>65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|1023&c),n.push(c),i+=d}var f=n,h=f.length;if(h<=4096)return String.fromCharCode.apply(String,f);for(var p="",g=0;g<h;)p+=String.fromCharCode.apply(String,f.slice(g,g+=4096));return p}function y(e,t,r){if(e%1!=0||e<0)throw RangeError("offset is not uint");if(e+t>r)throw RangeError("Trying to access beyond buffer length")}function x(e,t,r,n,i,o){if(!s.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw RangeError('"value" argument is out of bounds');if(r+n>e.length)throw RangeError("Index out of range")}function w(e,t,r,n,i,o){if(r+n>e.length||r<0)throw RangeError("Index out of range")}function S(e,t,r,n,o){return t*=1,r>>>=0,o||w(e,t,r,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,r,n,23,4),r+4}function E(e,t,r,n,o){return t*=1,r>>>=0,o||w(e,t,r,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,r,n,52,8),r+8}s.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i,o,a,s,l,u,c,d,f=this.length-t;if((void 0===r||r>f)&&(r=f),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var h=!1;;)switch(n){case"hex":return function(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;var o=t.length;n>o/2&&(n=o/2);for(var a=0;a<n;++a){var s,l=parseInt(t.substr(2*a,2),16);if((s=l)!=s)break;e[r+a]=l}return a}(this,e,t,r);case"utf8":case"utf-8":return i=t,o=r,_(C(e,this.length-i),this,i,o);case"ascii":return a=t,s=r,_(O(e),this,a,s);case"latin1":case"binary":return function(e,t,r,n){return _(O(t),e,r,n)}(this,e,t,r);case"base64":return l=t,u=r,_(I(e),this,l,u);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return c=t,d=r,_(function(e,t){for(var r,n,i=[],o=0;o<e.length&&!((t-=2)<0);++o)n=(r=e.charCodeAt(o))>>8,i.push(r%256),i.push(n);return i}(e,this.length-c),this,c,d);default:if(h)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),h=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},s.prototype.slice=function(e,t){var r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);var n=this.subarray(e,t);return Object.setPrototypeOf(n,s.prototype),n},s.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||y(e,t,this.length);for(var n=this[e],i=1,o=0;++o<t&&(i*=256);)n+=this[e+o]*i;return n},s.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||y(e,t,this.length);for(var n=this[e+--t],i=1;t>0&&(i*=256);)n+=this[e+--t]*i;return n},s.prototype.readUInt8=function(e,t){return e>>>=0,t||y(e,1,this.length),this[e]},s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||y(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||y(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||y(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+0x1000000*this[e+3]},s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||y(e,4,this.length),0x1000000*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||y(e,t,this.length);for(var n=this[e],i=1,o=0;++o<t&&(i*=256);)n+=this[e+o]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*t)),n},s.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||y(e,t,this.length);for(var n=t,i=1,o=this[e+--n];n>0&&(i*=256);)o+=this[e+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},s.prototype.readInt8=function(e,t){return(e>>>=0,t||y(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||y(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?0xffff0000|r:r},s.prototype.readInt16BE=function(e,t){e>>>=0,t||y(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?0xffff0000|r:r},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||y(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||y(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readFloatLE=function(e,t){return e>>>=0,t||y(e,4,this.length),i.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||y(e,4,this.length),i.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||y(e,8,this.length),i.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||y(e,8,this.length),i.read(this,e,!1,52,8)},s.prototype.writeUIntLE=function(e,t,r,n){if(e*=1,t>>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;x(this,e,t,r,i,0)}var o=1,a=0;for(this[t]=255&e;++a<r&&(o*=256);)this[t+a]=e/o&255;return t+r},s.prototype.writeUIntBE=function(e,t,r,n){if(e*=1,t>>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;x(this,e,t,r,i,0)}var o=r-1,a=1;for(this[t+o]=255&e;--o>=0&&(a*=256);)this[t+o]=e/a&255;return t+r},s.prototype.writeUInt8=function(e,t,r){return e*=1,t>>>=0,r||x(this,e,t,1,255,0),this[t]=255&e,t+1},s.prototype.writeUInt16LE=function(e,t,r){return e*=1,t>>>=0,r||x(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeUInt16BE=function(e,t,r){return e*=1,t>>>=0,r||x(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeUInt32LE=function(e,t,r){return e*=1,t>>>=0,r||x(this,e,t,4,0xffffffff,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},s.prototype.writeUInt32BE=function(e,t,r){return e*=1,t>>>=0,r||x(this,e,t,4,0xffffffff,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeIntLE=function(e,t,r,n){if(e*=1,t>>>=0,!n){var i=Math.pow(2,8*r-1);x(this,e,t,r,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o<r&&(a*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a|0)-s&255;return t+r},s.prototype.writeIntBE=function(e,t,r,n){if(e*=1,t>>>=0,!n){var i=Math.pow(2,8*r-1);x(this,e,t,r,i-1,-i)}var o=r-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a|0)-s&255;return t+r},s.prototype.writeInt8=function(e,t,r){return e*=1,t>>>=0,r||x(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,r){return e*=1,t>>>=0,r||x(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,r){return e*=1,t>>>=0,r||x(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeInt32LE=function(e,t,r){return e*=1,t>>>=0,r||x(this,e,t,4,0x7fffffff,-0x80000000),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,r){return e*=1,t>>>=0,r||x(this,e,t,4,0x7fffffff,-0x80000000),e<0&&(e=0xffffffff+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeFloatLE=function(e,t,r){return S(this,e,t,!0,r)},s.prototype.writeFloatBE=function(e,t,r){return S(this,e,t,!1,r)},s.prototype.writeDoubleLE=function(e,t,r){return E(this,e,t,!0,r)},s.prototype.writeDoubleBE=function(e,t,r){return E(this,e,t,!1,r)},s.prototype.copy=function(e,t,r,n){if(!s.isBuffer(e))throw TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r||0===e.length||0===this.length)return 0;if(t<0)throw RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var i=n-r;if(this===e&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,r,n);else if(this===e&&r<t&&t<n)for(var o=i-1;o>=0;--o)e[o+t]=this[o+r];else Uint8Array.prototype.set.call(e,this.subarray(r,n),t);return i},s.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw TypeError("encoding must be a string");if("string"==typeof n&&!s.isEncoding(n))throw TypeError("Unknown encoding: "+n);if(1===e.length){var i,o=e.charCodeAt(0);("utf8"===n&&o<128||"latin1"===n)&&(e=o)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw RangeError("Out of range index");if(r<=t)return this;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i<r;++i)this[i]=e;else{var a=s.isBuffer(e)?e:s.from(e,n),l=a.length;if(0===l)throw TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<r-t;++i)this[i+t]=a[i%l]}return this};var k=/[^+/0-9A-Za-z-_]/g;function C(e,t){t=t||1/0;for(var r,n=e.length,i=null,o=[],a=0;a<n;++a){if((r=e.charCodeAt(a))>55295&&r<57344){if(!i){if(r>56319||a+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return o}function O(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}function I(e){return n.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(k,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function _(e,t,r,n){for(var i=0;i<n&&!(i+r>=t.length)&&!(i>=e.length);++i)t[i+r]=e[i];return i}function T(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var P=function(){for(var e="0123456789abcdef",t=Array(256),r=0;r<16;++r)for(var n=16*r,i=0;i<16;++i)t[n+i]=e[r]+e[i];return t}()},783:function(e,t){t.read=function(e,t,r,n,i){var o,a,s=8*i-n-1,l=(1<<s)-1,u=l>>1,c=-7,d=r?i-1:0,f=r?-1:1,h=e[t+d];for(d+=f,o=h&(1<<-c)-1,h>>=-c,c+=s;c>0;o=256*o+e[t+d],d+=f,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=n;c>0;a=256*a+e[t+d],d+=f,c-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,n),o-=u}return(h?-1:1)*a*Math.pow(2,o-n)},t.write=function(e,t,r,n,i,o){var a,s,l,u=8*o-i-1,c=(1<<u)-1,d=c>>1,f=5960464477539062e-23*(23===i),h=n?0:o-1,p=n?1:-1,g=+(t<0||0===t&&1/t<0);for(isNaN(t=Math.abs(t))||t===1/0?(s=+!!isNaN(t),a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),a+d>=1?t+=f/l:t+=f*Math.pow(2,1-d),t*l>=2&&(a++,l/=2),a+d>=c?(s=0,a=c):a+d>=1?(s=(t*l-1)*Math.pow(2,i),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;e[r+h]=255&s,h+=p,s/=256,i-=8);for(a=a<<i|s,u+=i;u>0;e[r+h]=255&a,h+=p,a/=256,u-=8);e[r+h-p]|=128*g}}},r={};function n(e){var i=r[e];if(void 0!==i)return i.exports;var o=r[e]={exports:{}},a=!0;try{t[e](o,o.exports,n),a=!1}finally{a&&delete r[e]}return o.exports}n.ab="//",e.exports=n(72)}()},44336:(e,t,r)=>{"use strict";r.d(t,{o:()=>n});let n=(0,r(38006).B)("div",{base:{display:"flex",alignItems:"center",justifyContent:"center"},variants:{inline:{true:{display:"inline-flex"}}}});n.displayName="Center"},44508:(e,t,r)=>{var n=r(48613);e.exports=function(e,t){return n.map(t,function(t){var r=e.inEdges(t);if(!r.length)return{v:t};var i=n.reduce(r,function(t,r){var n=e.edge(r),i=e.node(r.v);return{sum:t.sum+n.weight*i.order,weight:t.weight+n.weight}},{sum:0,weight:0});return{v:t,barycenter:i.sum/i.weight,weight:i.weight}})}},44627:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(17710);function i(e){return"string"==typeof e?new n.LN([[document.querySelector(e)]],[document.documentElement]):new n.LN([[e]],n.zr)}},44686:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=0x1fffffffffffff}},44712:(e,t,r)=>{var n=r(60663);function i(e){var t={},r={},i=[];if(n.each(e.sinks(),function a(s){if(n.has(r,s))throw new o;n.has(t,s)||(r[s]=!0,t[s]=!0,n.each(e.predecessors(s),a),delete r[s],i.push(s))}),n.size(t)!==e.nodeCount())throw new o;return i}function o(){}e.exports=i,i.CycleException=o,o.prototype=Error()},44901:e=>{e.exports=function(e,t){return function(r){return null!=r&&r[e]===t&&(void 0!==t||e in Object(r))}}},45022:(e,t,r)=>{e.exports={Graph:r(46057),version:r(35318)}},45136:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},45212:(e,t,r)=>{e.exports={graphlib:r(30039),layout:r(23286),debug:r(1187),util:{time:r(26380).time,notime:r(26380).notime},version:r(86276)}},45387:(e,t,r)=>{var n=r(3522),i=r(22719),o=r(14344),a=r(65541),s=r(92779),l=r(89718),u=r(40103),c="[object Map]",d="[object Promise]",f="[object Set]",h="[object WeakMap]",p="[object DataView]",g=u(n),v=u(i),m=u(o),b=u(a),y=u(s),x=l;(n&&x(new n(new ArrayBuffer(1)))!=p||i&&x(new i)!=c||o&&x(o.resolve())!=d||a&&x(new a)!=f||s&&x(new s)!=h)&&(x=function(e){var t=l(e),r="[object Object]"==t?e.constructor:void 0,n=r?u(r):"";if(n)switch(n){case g:return p;case v:return c;case m:return d;case b:return f;case y:return h}return t}),e.exports=x},45435:(e,t,r)=>{"use strict";r.d(t,{J:()=>p});var n,i={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},o=r(28858),a=/[A-Z]|^ms/g,s=/_EMO_([^_]+?)_([^]*?)_EMO_/g,l=function(e){return 45===e.charCodeAt(1)},u=function(e){return null!=e&&"boolean"!=typeof e},c=(0,o.A)(function(e){return l(e)?e:e.replace(a,"-$&").toLowerCase()}),d=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(s,function(e,t,r){return n={name:t,styles:r,next:n},t})}return 1===i[e]||l(e)||"number"!=typeof t||0===t?t:t+"px"};function f(e,t,r){if(null==r)return"";if(void 0!==r.__emotion_styles)return r;switch(typeof r){case"boolean":return"";case"object":if(1===r.anim)return n={name:r.name,styles:r.styles,next:n},r.name;if(void 0!==r.styles){var i=r.next;if(void 0!==i)for(;void 0!==i;)n={name:i.name,styles:i.styles,next:n},i=i.next;return r.styles+";"}return function(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i<r.length;i++)n+=f(e,t,r[i])+";";else for(var o in r){var a=r[o];if("object"!=typeof a)null!=t&&void 0!==t[a]?n+=o+"{"+t[a]+"}":u(a)&&(n+=c(o)+":"+d(o,a)+";");else if(Array.isArray(a)&&"string"==typeof a[0]&&(null==t||void 0===t[a[0]]))for(var s=0;s<a.length;s++)u(a[s])&&(n+=c(o)+":"+d(o,a[s])+";");else{var l=f(e,t,a);switch(o){case"animation":case"animationName":n+=c(o)+":"+l+";";break;default:n+=o+"{"+l+"}"}}}return n}(e,t,r);case"function":if(void 0!==e){var o=n,a=r(e);return n=o,f(e,t,a)}}if(null==t)return r;var s=t[r];return void 0!==s?s:r}var h=/label:\s*([^\s;{]+)\s*(;|$)/g;function p(e,t,r){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var i,o=!0,a="";n=void 0;var s=e[0];null==s||void 0===s.raw?(o=!1,a+=f(r,t,s)):a+=s[0];for(var l=1;l<e.length;l++)a+=f(r,t,e[l]),o&&(a+=s[l]);h.lastIndex=0;for(var u="";null!==(i=h.exec(a));)u+="-"+i[1];return{name:function(e){for(var t,r=0,n=0,i=e.length;i>=4;++n,i-=4)t=(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))*0x5bd1e995+((t>>>16)*59797<<16),t^=t>>>24,r=(65535&t)*0x5bd1e995+((t>>>16)*59797<<16)^(65535&r)*0x5bd1e995+((r>>>16)*59797<<16);switch(i){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r^=255&e.charCodeAt(n),r=(65535&r)*0x5bd1e995+((r>>>16)*59797<<16)}return r^=r>>>13,(((r=(65535&r)*0x5bd1e995+((r>>>16)*59797<<16))^r>>>15)>>>0).toString(36)}(a)+u,styles:a,next:n}}},45633:(e,t,r)=>{"use strict";r.d(t,{Z:()=>l});var n=r(87259),i=r(77534),o=r(80715),a=r(86890),s=r(24359);let l=e=>{var t;let{children:r,disabled:i}=e,[l,d]=(0,o.useState)(null==(t=e.container)?void 0:t.current),f=(0,o.useSyncExternalStore)(c,()=>!1,()=>!0),{getRootNode:h}=(0,s.w)();if((0,o.useEffect)(()=>{d(()=>{var t;return null==(t=e.container)?void 0:t.current})},[e.container]),f||i)return(0,n.jsx)(n.Fragment,{children:r});let p=null!=l?l:u(h);return(0,n.jsx)(n.Fragment,{children:o.Children.map(r,e=>(0,a.createPortal)(e,p))})},u=e=>{let t=null==e?void 0:e(),r=t.getRootNode();return(0,i.Ng)(r)?r:(0,i.YE)(t).body},c=()=>()=>{}},45790:(e,t,r)=>{"use strict";var n=r(48613);e.exports=function(e){var t={},r=n.filter(e.nodes(),function(t){return!e.children(t).length}),i=n.max(n.map(r,function(t){return e.node(t).rank})),o=n.map(n.range(i+1),function(){return[]}),a=n.sortBy(r,function(t){return e.node(t).rank});return n.forEach(a,function r(i){n.has(t,i)||(t[i]=!0,o[e.node(i).rank].push(i),n.forEach(e.successors(i),r))}),o}},45921:(e,t,r)=>{"use strict";r.d(t,{C1:()=>u,D3:()=>a,Sr:()=>o,US:()=>f,Yt:()=>l,id:()=>c,mo:()=>d,vK:()=>s});var n=r(87259),i=r(38006);let o=e=>(0,n.jsx)(i.B.svg,{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...e,children:(0,n.jsx)("path",{d:"M20 6 9 17l-5-5"})}),a=e=>(0,n.jsx)(i.B.svg,{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...e,children:(0,n.jsx)("path",{d:"m6 9 6 6 6-6"})}),s=e=>(0,n.jsx)(i.B.svg,{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...e,children:(0,n.jsx)("path",{d:"m9 18 6-6-6-6"})}),l=e=>(0,n.jsxs)(i.B.svg,{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...e,children:[(0,n.jsx)("circle",{cx:"12",cy:"12",r:"1"}),(0,n.jsx)("circle",{cx:"19",cy:"12",r:"1"}),(0,n.jsx)("circle",{cx:"5",cy:"12",r:"1"})]}),u=e=>(0,n.jsx)(i.B.svg,{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 24 24",...e,children:(0,n.jsx)("path",{d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11.0026 16L6.75999 11.7574L8.17421 10.3431L11.0026 13.1716L16.6595 7.51472L18.0737 8.92893L11.0026 16Z"})}),c=e=>(0,n.jsx)(i.B.svg,{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 24 24",...e,children:(0,n.jsx)("path",{d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 15H13V17H11V15ZM11 7H13V13H11V7Z"})}),d=e=>(0,n.jsx)(i.B.svg,{viewBox:"0 0 24 24",fill:"currentColor",stroke:"currentColor",strokeWidth:"0",...e,children:(0,n.jsx)("path",{d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 7H13V9H11V7ZM11 11H13V17H11V11Z"})}),f=e=>(0,n.jsx)(i.B.svg,{viewBox:"0 0 24 24",fill:"currentColor",...e,children:(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.7071 6.70711C19.0976 6.31658 19.0976 5.68342 18.7071 5.29289C18.3166 4.90237 17.6834 4.90237 17.2929 5.29289L12 10.5858L6.70711 5.29289C6.31658 4.90237 5.68342 4.90237 5.29289 5.29289C4.90237 5.68342 4.90237 6.31658 5.29289 6.70711L10.5858 12L5.29289 17.2929C4.90237 17.6834 4.90237 18.3166 5.29289 18.7071C5.68342 19.0976 6.31658 19.0976 6.70711 18.7071L12 13.4142L17.2929 18.7071C17.6834 19.0976 18.3166 19.0976 18.7071 18.7071C19.0976 18.3166 19.0976 17.6834 18.7071 17.2929L13.4142 12L18.7071 6.70711Z"})})},46057:(e,t,r)=>{"use strict";var n=r(60663);function i(e){this._isDirected=!n.has(e,"directed")||e.directed,this._isMultigraph=!!n.has(e,"multigraph")&&e.multigraph,this._isCompound=!!n.has(e,"compound")&&e.compound,this._label=void 0,this._defaultNodeLabelFn=n.constant(void 0),this._defaultEdgeLabelFn=n.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children["\0"]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}function o(e,t){e[t]?e[t]++:e[t]=1}function a(e,t){--e[t]||delete e[t]}function s(e,t,r,i){var o=""+t,a=""+r;if(!e&&o>a){var s=o;o=a,a=s}return o+"\x01"+a+"\x01"+(n.isUndefined(i)?"\0":i)}function l(e,t){return s(e,t.v,t.w,t.name)}e.exports=i,i.prototype._nodeCount=0,i.prototype._edgeCount=0,i.prototype.isDirected=function(){return this._isDirected},i.prototype.isMultigraph=function(){return this._isMultigraph},i.prototype.isCompound=function(){return this._isCompound},i.prototype.setGraph=function(e){return this._label=e,this},i.prototype.graph=function(){return this._label},i.prototype.setDefaultNodeLabel=function(e){return n.isFunction(e)||(e=n.constant(e)),this._defaultNodeLabelFn=e,this},i.prototype.nodeCount=function(){return this._nodeCount},i.prototype.nodes=function(){return n.keys(this._nodes)},i.prototype.sources=function(){var e=this;return n.filter(this.nodes(),function(t){return n.isEmpty(e._in[t])})},i.prototype.sinks=function(){var e=this;return n.filter(this.nodes(),function(t){return n.isEmpty(e._out[t])})},i.prototype.setNodes=function(e,t){var r=arguments,i=this;return n.each(e,function(e){r.length>1?i.setNode(e,t):i.setNode(e)}),this},i.prototype.setNode=function(e,t){return n.has(this._nodes,e)?arguments.length>1&&(this._nodes[e]=t):(this._nodes[e]=arguments.length>1?t:this._defaultNodeLabelFn(e),this._isCompound&&(this._parent[e]="\0",this._children[e]={},this._children["\0"][e]=!0),this._in[e]={},this._preds[e]={},this._out[e]={},this._sucs[e]={},++this._nodeCount),this},i.prototype.node=function(e){return this._nodes[e]},i.prototype.hasNode=function(e){return n.has(this._nodes,e)},i.prototype.removeNode=function(e){var t=this;if(n.has(this._nodes,e)){var r=function(e){t.removeEdge(t._edgeObjs[e])};delete this._nodes[e],this._isCompound&&(this._removeFromParentsChildList(e),delete this._parent[e],n.each(this.children(e),function(e){t.setParent(e)}),delete this._children[e]),n.each(n.keys(this._in[e]),r),delete this._in[e],delete this._preds[e],n.each(n.keys(this._out[e]),r),delete this._out[e],delete this._sucs[e],--this._nodeCount}return this},i.prototype.setParent=function(e,t){if(!this._isCompound)throw Error("Cannot set parent in a non-compound graph");if(n.isUndefined(t))t="\0";else{t+="";for(var r=t;!n.isUndefined(r);r=this.parent(r))if(r===e)throw Error("Setting "+t+" as parent of "+e+" would create a cycle");this.setNode(t)}return this.setNode(e),this._removeFromParentsChildList(e),this._parent[e]=t,this._children[t][e]=!0,this},i.prototype._removeFromParentsChildList=function(e){delete this._children[this._parent[e]][e]},i.prototype.parent=function(e){if(this._isCompound){var t=this._parent[e];if("\0"!==t)return t}},i.prototype.children=function(e){if(n.isUndefined(e)&&(e="\0"),this._isCompound){var t=this._children[e];if(t)return n.keys(t)}else if("\0"===e)return this.nodes();else if(this.hasNode(e))return[]},i.prototype.predecessors=function(e){var t=this._preds[e];if(t)return n.keys(t)},i.prototype.successors=function(e){var t=this._sucs[e];if(t)return n.keys(t)},i.prototype.neighbors=function(e){var t=this.predecessors(e);if(t)return n.union(t,this.successors(e))},i.prototype.isLeaf=function(e){return 0===(this.isDirected()?this.successors(e):this.neighbors(e)).length},i.prototype.filterNodes=function(e){var t=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});t.setGraph(this.graph());var r=this;n.each(this._nodes,function(r,n){e(n)&&t.setNode(n,r)}),n.each(this._edgeObjs,function(e){t.hasNode(e.v)&&t.hasNode(e.w)&&t.setEdge(e,r.edge(e))});var i={};return this._isCompound&&n.each(t.nodes(),function(e){t.setParent(e,function e(n){var o=r.parent(n);return void 0===o||t.hasNode(o)?(i[n]=o,o):o in i?i[o]:e(o)}(e))}),t},i.prototype.setDefaultEdgeLabel=function(e){return n.isFunction(e)||(e=n.constant(e)),this._defaultEdgeLabelFn=e,this},i.prototype.edgeCount=function(){return this._edgeCount},i.prototype.edges=function(){return n.values(this._edgeObjs)},i.prototype.setPath=function(e,t){var r=this,i=arguments;return n.reduce(e,function(e,n){return i.length>1?r.setEdge(e,n,t):r.setEdge(e,n),n}),this},i.prototype.setEdge=function(){var e,t,r,i,a=!1,l=arguments[0];"object"==typeof l&&null!==l&&"v"in l?(e=l.v,t=l.w,r=l.name,2==arguments.length&&(i=arguments[1],a=!0)):(e=l,t=arguments[1],r=arguments[3],arguments.length>2&&(i=arguments[2],a=!0)),e=""+e,t=""+t,n.isUndefined(r)||(r=""+r);var u=s(this._isDirected,e,t,r);if(n.has(this._edgeLabels,u))return a&&(this._edgeLabels[u]=i),this;if(!n.isUndefined(r)&&!this._isMultigraph)throw Error("Cannot set a named edge when isMultigraph = false");this.setNode(e),this.setNode(t),this._edgeLabels[u]=a?i:this._defaultEdgeLabelFn(e,t,r);var c=function(e,t,r,n){var i=""+t,o=""+r;if(!e&&i>o){var a=i;i=o,o=a}var s={v:i,w:o};return n&&(s.name=n),s}(this._isDirected,e,t,r);return e=c.v,t=c.w,Object.freeze(c),this._edgeObjs[u]=c,o(this._preds[t],e),o(this._sucs[e],t),this._in[t][u]=c,this._out[e][u]=c,this._edgeCount++,this},i.prototype.edge=function(e,t,r){var n=1==arguments.length?l(this._isDirected,arguments[0]):s(this._isDirected,e,t,r);return this._edgeLabels[n]},i.prototype.hasEdge=function(e,t,r){var i=1==arguments.length?l(this._isDirected,arguments[0]):s(this._isDirected,e,t,r);return n.has(this._edgeLabels,i)},i.prototype.removeEdge=function(e,t,r){var n=1==arguments.length?l(this._isDirected,arguments[0]):s(this._isDirected,e,t,r),i=this._edgeObjs[n];return i&&(e=i.v,t=i.w,delete this._edgeLabels[n],delete this._edgeObjs[n],a(this._preds[t],e),a(this._sucs[e],t),delete this._in[t][n],delete this._out[e][n],this._edgeCount--),this},i.prototype.inEdges=function(e,t){var r=this._in[e];if(r){var i=n.values(r);return t?n.filter(i,function(e){return e.v===t}):i}},i.prototype.outEdges=function(e,t){var r=this._out[e];if(r){var i=n.values(r);return t?n.filter(i,function(e){return e.w===t}):i}},i.prototype.nodeEdges=function(e,t){var r=this.inEdges(e,t);if(r)return r.concat(this.outEdges(e,t))}},46410:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}},46686:(e,t,r)=>{var n=r(51988);e.exports=function(e,t){return n(e,t,"pre")}},47023:(e,t,r)=>{var n=r(48613),i=r(26380);e.exports={run:function(e){var t,r,o,a=i.addDummyNode(e,"root",{},"_root"),s=(t=e,r={},n.forEach(t.children(),function(e){!function e(i,o){var a=t.children(i);a&&a.length&&n.forEach(a,function(t){e(t,o+1)}),r[i]=o}(e,1)}),r),l=n.max(n.values(s))-1,u=2*l+1;e.graph().nestingRoot=a,n.forEach(e.edges(),function(t){e.edge(t).minlen*=u});var c=(o=e,n.reduce(o.edges(),function(e,t){return e+o.edge(t).weight},0)+1);n.forEach(e.children(),function(t){!function e(t,r,o,a,s,l,u){var c=t.children(u);if(!c.length){u!==r&&t.setEdge(r,u,{weight:0,minlen:o});return}var d=i.addBorderNode(t,"_bt"),f=i.addBorderNode(t,"_bb"),h=t.node(u);t.setParent(d,u),h.borderTop=d,t.setParent(f,u),h.borderBottom=f,n.forEach(c,function(n){e(t,r,o,a,s,l,n);var i=t.node(n),c=i.borderTop?i.borderTop:n,h=i.borderBottom?i.borderBottom:n,p=i.borderTop?a:2*a,g=c!==h?1:s-l[u]+1;t.setEdge(d,c,{weight:p,minlen:g,nestingEdge:!0}),t.setEdge(h,f,{weight:p,minlen:g,nestingEdge:!0})}),t.parent(u)||t.setEdge(r,d,{weight:0,minlen:s+l[u]})}(e,a,u,c,l,s,t)}),e.graph().nodeRankFactor=u},cleanup:function(e){var t=e.graph();e.removeNode(t.nestingRoot),delete t.nestingRoot,n.forEach(e.edges(),function(t){e.edge(t).nestingEdge&&e.removeEdge(t)})}}},47028:(e,t,r)=>{var n=r(24652),i=r(96729),o=r(17863),a=o&&o.isMap;e.exports=a?i(a):n},47439:e=>{e.exports=function(){return[]}},47485:e=>{e.exports=function(e,t){return e>t}},47889:(e,t,r)=>{"use strict";var n=r(56435).longestPath,i=r(5973),o=r(73432);e.exports=function(e){switch(e.graph().ranker){case"network-simplex":default:o(e);break;case"tight-tree":var t;n(t=e),i(t);break;case"longest-path":a(e)}};var a=n},48496:(e,t,r)=>{"use strict";r.d(t,{y:()=>o});let{withContext:n,PropsProvider:i}=(0,r(62523).a)({key:"spinner"}),o=n("span")},48566:(e,t,r)=>{"use strict";r.d(t,{$:()=>l});var n=r(77534),i=r(75794),o="pointerdown.outside",a="focus.outside";function s(e,t){if(!t||!("clientY"in e))return!1;let r=t.scrollHeight>t.clientHeight,n=r&&e.clientX>t.offsetLeft+t.clientWidth,i=t.scrollWidth>t.clientWidth,o=i&&e.clientY>t.offsetTop+t.clientHeight,a={x:t.offsetLeft,y:t.offsetTop,width:t.clientWidth+16*!!r,height:t.clientHeight+16*!!i},s={x:e.clientX,y:e.clientY};return a.y<=s.y&&s.y<=a.y+a.height&&a.x<=s.x&&s.x<=a.x+a.width&&(n||o)}function l(e,t){let{defer:r}=t,l=r?n.er:e=>e(),c=[];return c.push(l(()=>{let r="function"==typeof e?e():e;c.push(function(e,t){let{exclude:r,onFocusOutside:l,onPointerDownOutside:c,onInteractOutside:d,defer:f}=t;if(!e)return;let h=(0,n.YE)(e),p=(0,n.zk)(e),g=function(e){let t={each(t){for(let r=0;r<e.frames?.length;r+=1){let n=e.frames[r];n&&t(n)}},addEventListener:(e,r,n)=>(t.each(t=>{try{t.document.addEventListener(e,r,n)}catch{}}),()=>{try{t.removeEventListener(e,r,n)}catch{}}),removeEventListener(e,r,n){t.each(t=>{try{t.document.removeEventListener(e,r,n)}catch{}})}};return t}(p),v=function(e){let t=null!=e.frameElement?e.parent:null;return{addEventListener:(e,r,n)=>{try{t?.addEventListener(e,r,n)}catch{}return()=>{try{t?.removeEventListener(e,r,n)}catch{}}},removeEventListener:(e,r,n)=>{try{t?.removeEventListener(e,r,n)}catch{}}}}(p);function m(t,i){if(!(0,n.sb)(i)||!i.isConnected||(0,n.gR)(e,i)||function(e,t){if(!("clientY"in t)||!e)return!1;let r=e.getBoundingClientRect();return 0!==r.width&&0!==r.height&&r.top<=t.clientY&&t.clientY<=r.top+r.height&&r.left<=t.clientX&&t.clientX<=r.left+r.width}(e,t))return!1;let o=h.querySelector(`[aria-controls="${e.id}"]`);return!(o&&s(t,(0,n.ob)(o)))&&!s(t,(0,n.ob)(e))&&!r?.(i)}let b=new Set,y=(0,n.Ng)(e?.getRootNode());function x(t){function r(r){let a=f&&!(0,n.CN)()?n.er:e=>e(),s=r??t,l=s?.composedPath?.()??[s?.target];a(()=>{let r=y?l[0]:(0,n.wt)(t);if(e&&m(t,r)){if(c||d){let t=(0,i.OK)(c,d);e.addEventListener(o,t,{once:!0})}u(e,o,{bubbles:!1,cancelable:!0,detail:{originalEvent:s,contextmenu:(0,n.fv)(s),focusable:function(e){for(let t of e)if((0,n.sb)(t)&&(0,n.tp)(t))return!0;return!1}(l),target:r}})}})}"touch"===t.pointerType?(b.forEach(e=>e()),b.add((0,n.kn)(h,"click",r,{once:!0})),b.add(v.addEventListener("click",r,{once:!0})),b.add(g.addEventListener("click",r,{once:!0}))):r()}let w=new Set,S=setTimeout(()=>{w.add((0,n.kn)(h,"pointerdown",x,!0)),w.add(v.addEventListener("pointerdown",x,!0)),w.add(g.addEventListener("pointerdown",x,!0))},0);function E(t){(f?n.er:e=>e())(()=>{let r=(0,n.wt)(t);if(e&&m(t,r)){if(l||d){let t=(0,i.OK)(l,d);e.addEventListener(a,t,{once:!0})}u(e,a,{bubbles:!1,cancelable:!0,detail:{originalEvent:t,contextmenu:!1,focusable:(0,n.tp)(r),target:r}})}})}return(0,n.CN)()||(w.add((0,n.kn)(h,"focusin",E,!0)),w.add(v.addEventListener("focusin",E,!0)),w.add(g.addEventListener("focusin",E,!0))),()=>{clearTimeout(S),b.forEach(e=>e()),w.forEach(e=>e())}}(r,t))})),()=>{c.forEach(e=>e?.())}}function u(e,t,r){let n=new(e.ownerDocument.defaultView||window).CustomEvent(t,r);return e.dispatchEvent(n)}},48613:(e,t,r)=>{var n;try{n={cloneDeep:r(76865),constant:r(3646),defaults:r(83496),each:r(93927),filter:r(69712),find:r(95285),flatten:r(24756),forEach:r(15660),forIn:r(64438),has:r(52122),isUndefined:r(61078),last:r(87994),map:r(33036),mapValues:r(67918),max:r(53172),merge:r(93398),min:r(14758),minBy:r(1303),now:r(78866),pick:r(10399),range:r(77795),reduce:r(13044),sortBy:r(78543),uniqueId:r(97328),values:r(70540),zipObject:r(9118)}}catch(e){}n||(n=window._),e.exports=n},49005:(e,t,r)=>{var n=r(28951);e.exports=function(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}},49015:(e,t,r)=>{var n=r(80031),i=r(80389),o=r(59782),a=r(4317);e.exports=function(e){return o(e)?n(a(e)):i(e)}},49086:(e,t,r)=>{var n=r(89718),i=r(79910);e.exports=function(e){return i(e)&&"[object Arguments]"==n(e)}},49440:(e,t,r)=>{"use strict";r.d(t,{jG:()=>i});var n=r(51714).Zq,i=function(){let e=[],t=0,r=e=>{e()},i=e=>{e()},o=n,a=n=>{t?e.push(n):o(()=>{r(n)})};return{batch:n=>{let a;t++;try{a=n()}finally{--t||(()=>{let t=e;e=[],t.length&&o(()=>{i(()=>{t.forEach(e=>{r(e)})})})})()}return a},batchCalls:e=>(...t)=>{a(()=>{e(...t)})},schedule:a,setNotifyFunction:e=>{r=e},setBatchNotifyFunction:e=>{i=e},setScheduler:e=>{o=e}}}()},49547:(e,t,r)=>{var n=r(52420),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=n?n.toStringTag:void 0;e.exports=function(e){var t=o.call(e,s),r=e[s];try{e[s]=void 0;var n=!0}catch(e){}var i=a.call(e);return n&&(t?e[s]=r:delete e[s]),i}},49620:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}},49972:(e,t,r)=>{"use strict";r.d(t,{Aq:()=>p,MI:()=>l,Ng:()=>h});var n=r(43690),i=r(77534),o=r(76808),a=r(41562),s=r(75794),l=(0,n.y)("avatar").parts("root","image","fallback"),u=l.build(),c=e=>e.ids?.root??`avatar:${e.id}`,d=e=>e.ids?.image??`avatar:${e.id}:image`,f=e=>e.getById(d(e));function h(e,t){let{state:r,send:n,prop:i,scope:o}=e,a=r.matches("loaded");return{loaded:a,setSrc(e){let t=f(o);t?.setAttribute("src",e)},setLoaded(){n({type:"img.loaded",src:"api"})},setError(){n({type:"img.error",src:"api"})},getRootProps:()=>t.element({...u.root.attrs,dir:i("dir"),id:c(o)}),getImageProps:()=>t.img({...u.image.attrs,hidden:!a,dir:i("dir"),id:d(o),"data-state":a?"visible":"hidden",onLoad(){n({type:"img.loaded",src:"element"})},onError(){n({type:"img.error",src:"element"})}}),getFallbackProps:()=>t.element({...u.fallback.attrs,dir:i("dir"),id:o.ids?.fallback??`avatar:${o.id}:fallback`,hidden:a,"data-state":a?"hidden":"visible"})}}var p=(0,o.Op)({initialState:()=>"loading",effects:["trackImageRemoval","trackSrcChange"],on:{"src.change":{target:"loading"},"img.unmount":{target:"error"}},states:{loading:{entry:["checkImageStatus"],on:{"img.loaded":{target:"loaded",actions:["invokeOnLoad"]},"img.error":{target:"error",actions:["invokeOnError"]}}},error:{on:{"img.loaded":{target:"loaded",actions:["invokeOnLoad"]}}},loaded:{on:{"img.error":{target:"error",actions:["invokeOnError"]}}}},implementations:{actions:{invokeOnLoad({prop:e}){e("onStatusChange")?.({status:"loaded"})},invokeOnError({prop:e}){e("onStatusChange")?.({status:"error"})},checkImageStatus({send:e,scope:t}){let r=f(t);if(r?.complete){var n;e({type:(n=r).complete&&0!==n.naturalWidth&&0!==n.naturalHeight?"img.loaded":"img.error",src:"ssr"})}}},effects:{trackImageRemoval({send:e,scope:t}){let r=t.getById(c(t));return(0,i.Ge)(r,{callback(t){Array.from(t[0].removedNodes).find(e=>e.nodeType===Node.ELEMENT_NODE&&e.matches("[data-scope=avatar][data-part=image]"))&&e({type:"img.unmount"})}})},trackSrcChange({send:e,scope:t}){let r=f(t);return(0,i.mx)(r,{attributes:["src","srcset"],callback(){e({type:"src.change"})}})}}}}),g=(0,a.x)()(["dir","id","ids","onStatusChange","getRootNode"]);(0,s.PM)(g)},50147:(e,t,r)=>{var n=r(71444),i=r(45136),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,r){var a=e[t];o.call(e,t)&&i(a,r)&&(void 0!==r||t in e)||n(e,t,r)}},50274:(e,t,r)=>{"use strict";r.d(t,{h:()=>n});let n=(0,r(38006).B)("div",{base:{flex:1,justifySelf:"stretch",alignSelf:"stretch"}});n.displayName="Spacer"},50369:(e,t,r)=>{"use strict";r.d(t,{F0:()=>d,pe:()=>i});let{Axios:n,AxiosError:i,CanceledError:o,isCancel:a,CancelToken:s,VERSION:l,all:u,Cancel:c,isAxiosError:d,spread:f,toFormData:h,AxiosHeaders:p,HttpStatusCode:g,formToJSON:v,getAdapter:m,mergeConfig:b}=r(27919).A},51172:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=!!t,t}},51205:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e}},51714:(e,t,r)=>{"use strict";r.d(t,{Zq:()=>o,zs:()=>i});var n={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},i=new class{#f=n;#h=!1;setTimeoutProvider(e){this.#f=e}setTimeout(e,t){return this.#f.setTimeout(e,t)}clearTimeout(e){this.#f.clearTimeout(e)}setInterval(e,t){return this.#f.setInterval(e,t)}clearInterval(e){this.#f.clearInterval(e)}};function o(e){setTimeout(e,0)}},51894:e=>{e.exports=function(e,t,r){for(var n=-1,i=e.length,o=t.length,a={};++n<i;){var s=n<o?t[n]:void 0;r(a,e[n],s)}return a}},51988:(e,t,r)=>{var n=r(60663);e.exports=function(e,t,r){n.isArray(t)||(t=[t]);var i=(e.isDirected()?e.successors:e.neighbors).bind(e),o=[],a={};return n.each(t,function(t){if(!e.hasNode(t))throw Error("Graph does not have node: "+t);!function e(t,r,i,o,a,s){!n.has(o,r)&&(o[r]=!0,i||s.push(r),n.each(a(r),function(r){e(t,r,i,o,a,s)}),i&&s.push(r))}(e,t,"post"===r,a,i,o)}),o}},52121:e=>{var t=Date.now;e.exports=function(e){var r=0,n=0;return function(){var i=t(),o=16-(i-n);if(n=i,o>0){if(++r>=800)return arguments[0]}else r=0;return e.apply(void 0,arguments)}}},52122:(e,t,r)=>{var n=r(85602),i=r(63630);e.exports=function(e,t){return null!=e&&i(e,t,n)}},52239:(e,t,r)=>{var n=r(41292),i=r(51172),o=r(25709),a=r(74049),s=r(66705);function l(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},52387:(e,t,r)=>{e.exports=r(93475)["__core-js_shared__"]},52417:(e,t,r)=>{var n=r(89662);e.exports=function(e,t){var r=e.__data__;return n(t)?r["string"==typeof t?"string":"hash"]:r.map}},52420:(e,t,r)=>{e.exports=r(93475).Symbol},52549:(e,t,r)=>{"use strict";r.d(t,{A:()=>i,j:()=>o});var n=r(86427);function i(e,t,r){return arguments.length>1?this.each((null==t?function(e){return function(){this.style.removeProperty(e)}}:"function"==typeof t?function(e,t,r){return function(){var n=t.apply(this,arguments);null==n?this.style.removeProperty(e):this.style.setProperty(e,n,r)}}:function(e,t,r){return function(){this.style.setProperty(e,t,r)}})(e,t,null==r?"":r)):o(this.node(),e)}function o(e,t){return e.style.getPropertyValue(t)||(0,n.A)(e).getComputedStyle(e,null).getPropertyValue(t)}},52818:(e,t,r)=>{var n=r(48613),i=r(44508),o=r(2609),a=r(72793);e.exports=function e(t,r,s,l){var u,c,d=t.children(r),f=t.node(r),h=f?f.borderLeft:void 0,p=f?f.borderRight:void 0,g={};h&&(d=n.filter(d,function(e){return e!==h&&e!==p}));var v=i(t,d);n.forEach(v,function(r){if(t.children(r.v).length){var i,o,a=e(t,r.v,s,l);g[r.v]=a,n.has(a,"barycenter")&&(i=r,o=a,n.isUndefined(i.barycenter)?(i.barycenter=o.barycenter,i.weight=o.weight):(i.barycenter=(i.barycenter*i.weight+o.barycenter*o.weight)/(i.weight+o.weight),i.weight+=o.weight))}});var m=o(v,s);u=m,c=g,n.forEach(u,function(e){e.vs=n.flatten(e.vs.map(function(e){return c[e]?c[e].vs:e}),!0)});var b=a(m,l);if(h&&(b.vs=n.flatten([h,b.vs,p],!0),t.predecessors(h).length)){var y=t.node(t.predecessors(h)[0]),x=t.node(t.predecessors(p)[0]);n.has(b,"barycenter")||(b.barycenter=0,b.weight=0),b.barycenter=(b.barycenter*b.weight+y.order+x.order)/(b.weight+2),b.weight+=2}return b}},53070:(e,t,r)=>{"use strict";r.d(t,{Aq:()=>O,MI:()=>h,Ng:()=>C});var n=r(43690),i=r(77534),o=r(68683),a=r(42642),s=r(76808),l=r(1970),u=r(54246),c=r(91150),d=r(41562),f=r(75794),h=(0,n.y)("popover").parts("arrow","arrowTip","anchor","trigger","indicator","positioner","content","title","description","closeTrigger"),p=h.build(),g=e=>e.ids?.anchor??`popover:${e.id}:anchor`,v=e=>e.ids?.trigger??`popover:${e.id}:trigger`,m=e=>e.ids?.content??`popover:${e.id}:content`,b=e=>e.ids?.positioner??`popover:${e.id}:popper`,y=e=>e.ids?.title??`popover:${e.id}:title`,x=e=>e.ids?.description??`popover:${e.id}:desc`,w=e=>e.getById(g(e)),S=e=>e.getById(v(e)),E=e=>e.getById(m(e)),k=e=>e.getById(b(e));function C(e,t){let{state:r,context:n,send:a,computed:s,prop:l,scope:u}=e,c=r.matches("open"),d=n.get("currentPlacement"),f=s("currentPortalled"),h=n.get("renderedElements"),w=(0,o.aC)({...l("positioning"),placement:d});return{portalled:f,open:c,setOpen(e){r.matches("open")!==e&&a({type:e?"OPEN":"CLOSE"})},reposition(e={}){a({type:"POSITIONING.SET",options:e})},getArrowProps:()=>t.element({id:u.ids?.arrow??`popover:${u.id}:arrow`,...p.arrow.attrs,dir:l("dir"),style:w.arrow}),getArrowTipProps:()=>t.element({...p.arrowTip.attrs,dir:l("dir"),style:w.arrowTip}),getAnchorProps:()=>t.element({...p.anchor.attrs,dir:l("dir"),id:g(u)}),getTriggerProps:()=>t.button({...p.trigger.attrs,dir:l("dir"),type:"button","data-placement":d,id:v(u),"aria-haspopup":"dialog","aria-expanded":c,"data-state":c?"open":"closed","aria-controls":m(u),onPointerDown(e){(0,i.Ml)(e)&&(0,i.nr)()&&e.currentTarget.focus()},onClick(e){e.defaultPrevented||a({type:"TOGGLE"})},onBlur(e){a({type:"TRIGGER_BLUR",target:e.relatedTarget})}}),getIndicatorProps:()=>t.element({...p.indicator.attrs,dir:l("dir"),"data-state":c?"open":"closed"}),getPositionerProps:()=>t.element({id:b(u),...p.positioner.attrs,dir:l("dir"),style:w.floating}),getContentProps:()=>t.element({...p.content.attrs,dir:l("dir"),id:m(u),tabIndex:-1,role:"dialog",hidden:!c,"data-state":c?"open":"closed","data-expanded":(0,i.sE)(c),"aria-labelledby":h.title?y(u):void 0,"aria-describedby":h.description?x(u):void 0,"data-placement":d}),getTitleProps:()=>t.element({...p.title.attrs,id:y(u),dir:l("dir")}),getDescriptionProps:()=>t.element({...p.description.attrs,id:x(u),dir:l("dir")}),getCloseTriggerProps:()=>t.button({...p.closeTrigger.attrs,dir:l("dir"),id:u.ids?.closeTrigger??`popover:${u.id}:close`,type:"button","aria-label":"close",onClick(e){e.defaultPrevented||(e.stopPropagation(),a({type:"CLOSE"}))}})}}var O=(0,s.Op)({props:({props:e})=>({closeOnInteractOutside:!0,closeOnEscape:!0,autoFocus:!0,modal:!1,portalled:!0,...e,positioning:{placement:"bottom",...e.positioning}}),initialState:({prop:e})=>e("open")||e("defaultOpen")?"open":"closed",context:({bindable:e})=>({currentPlacement:e(()=>({defaultValue:void 0})),renderedElements:e(()=>({defaultValue:{title:!0,description:!0}}))}),computed:{currentPortalled:({prop:e})=>!!e("modal")||!!e("portalled")},watch({track:e,prop:t,action:r}){e([()=>t("open")],()=>{r(["toggleVisibility"])})},entry:["checkRenderedElements"],states:{closed:{on:{"CONTROLLED.OPEN":{target:"open",actions:["setInitialFocus"]},TOGGLE:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen","setInitialFocus"]}],OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen","setInitialFocus"]}]}},open:{effects:["trapFocus","preventScroll","hideContentBelow","trackPositioning","trackDismissableElement","proxyTabFocus"],on:{"CONTROLLED.CLOSE":{target:"closed",actions:["setFinalFocus"]},CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose","setFinalFocus"]}],TOGGLE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],"POSITIONING.SET":{actions:["reposition"]}}}},implementations:{guards:{isOpenControlled:({prop:e})=>void 0!=e("open")},effects:{trackPositioning({context:e,prop:t,scope:r}){e.set("currentPlacement",t("positioning").placement);let n=w(r)??S(r);return(0,o.Ox)(n,()=>k(r),{...t("positioning"),defer:!0,onComplete(t){e.set("currentPlacement",t.placement)}})},trackDismissableElement({send:e,prop:t,scope:r}){let n=!0;return(0,l.u)(()=>E(r),{type:"popover",pointerBlocking:t("modal"),exclude:S(r),defer:!0,onEscapeKeyDown(e){t("onEscapeKeyDown")?.(e),t("closeOnEscape")||e.preventDefault()},onInteractOutside(e){t("onInteractOutside")?.(e),!e.defaultPrevented&&(n=!(e.detail.focusable||e.detail.contextmenu),t("closeOnInteractOutside")||e.preventDefault())},onPointerDownOutside:t("onPointerDownOutside"),onFocusOutside:t("onFocusOutside"),persistentElements:t("persistentElements"),onRequestDismiss:t("onRequestDismiss"),onDismiss(){e({type:"CLOSE",src:"interact-outside",restoreFocus:n})}})},proxyTabFocus({prop:e,scope:t}){if(!e("modal")&&e("portalled"))return(0,i.Y)(()=>E(t),{triggerElement:S(t),defer:!0,onFocus(e){e.focus({preventScroll:!0})}})},hideContentBelow({prop:e,scope:t}){if(e("modal"))return(0,a.M)(()=>[E(t),S(t)],{defer:!0})},preventScroll({prop:e,scope:t}){if(e("modal"))return(0,c.k)(t.getDoc())},trapFocus({prop:e,scope:t}){if(e("modal"))return(0,u.o)(()=>E(t),{initialFocus:()=>(0,i.RD)({root:E(t),getInitialEl:e("initialFocusEl"),enabled:e("autoFocus")})})}},actions:{reposition({event:e,prop:t,scope:r,context:n}){let i=w(r)??S(r);(0,o.Ox)(i,()=>k(r),{...t("positioning"),...e.options,defer:!0,listeners:!1,onComplete(e){n.set("currentPlacement",e.placement)}})},checkRenderedElements({context:e,scope:t}){(0,i.er)(()=>{Object.assign(e.get("renderedElements"),{title:!!t.getById(y(t)),description:!!t.getById(x(t))})})},setInitialFocus({prop:e,scope:t}){e("modal")||(0,i.er)(()=>{let r=(0,i.RD)({root:E(t),getInitialEl:e("initialFocusEl"),enabled:e("autoFocus")});r?.focus({preventScroll:!0})})},setFinalFocus({event:e,scope:t}){let r=e.restoreFocus??e.previousEvent?.restoreFocus;(null==r||r)&&(0,i.er)(()=>{let e=S(t);e?.focus({preventScroll:!0})})},invokeOnOpen({prop:e,flush:t}){t(()=>{e("onOpenChange")?.({open:!0})})},invokeOnClose({prop:e,flush:t}){t(()=>{e("onOpenChange")?.({open:!1})})},toggleVisibility({event:e,send:t,prop:r}){t({type:r("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:e})}}}}),I=(0,d.x)()(["autoFocus","closeOnEscape","closeOnInteractOutside","dir","getRootNode","id","ids","initialFocusEl","modal","onEscapeKeyDown","onFocusOutside","onInteractOutside","onOpenChange","onPointerDownOutside","onRequestDismiss","defaultOpen","open","persistentElements","portalled","positioning"]);(0,f.PM)(I)},53078:(e,t,r)=>{"use strict";r.d(t,{E:()=>g,T:()=>c,c:()=>h,h:()=>d,w:()=>u});var n=r(80715),i=r(85963),o=r(96199),a=r(45435),s=r(13648),l=n.createContext("undefined"!=typeof HTMLElement?(0,i.A)({key:"css"}):null);l.Provider;var u=function(e){return(0,n.forwardRef)(function(t,r){return e(t,(0,n.useContext)(l),r)})},c=n.createContext({}),d={}.hasOwnProperty,f="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",h=function(e,t){var r={};for(var n in t)d.call(t,n)&&(r[n]=t[n]);return r[f]=e,r},p=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return(0,o.SF)(t,r,n),(0,s.s)(function(){return(0,o.sk)(t,r,n)}),null},g=u(function(e,t,r){var i=e.css;"string"==typeof i&&void 0!==t.registered[i]&&(i=t.registered[i]);var s=e[f],l=[i],u="";"string"==typeof e.className?u=(0,o.Rk)(t.registered,l,e.className):null!=e.className&&(u=e.className+" ");var h=(0,a.J)(l,void 0,n.useContext(c));u+=t.key+"-"+h.name;var g={};for(var v in e)d.call(e,v)&&"css"!==v&&v!==f&&(g[v]=e[v]);return g.className=u,r&&(g.ref=r),n.createElement(n.Fragment,null,n.createElement(p,{cache:t,serialized:h,isStringTag:"string"==typeof s}),n.createElement(s,g))})},53172:(e,t,r)=>{var n=r(70545),i=r(47485),o=r(41480);e.exports=function(e){return e&&e.length?n(e,o,i):void 0}},53835:(e,t,r)=>{"use strict";r.d(t,{v7:()=>z,Ks:()=>B,Sb:()=>F,y8:()=>D});var n=r(87259),i=r(76808),o=r(80715),a=r(97563),s=r(634),l=r(5719);let[u,c]=(0,l.q)({name:"CheckboxContext",hookName:"useCheckboxContext",providerName:"<CheckboxProvider />"}),d=(0,o.forwardRef)((e,t)=>{let[{value:r},o]=(0,a.P)()(e,["value"]),l=(0,i.v6)(r.getRootProps(),o);return(0,n.jsx)(u,{value:r,children:(0,n.jsx)(s.X.label,{...l,ref:t})})});d.displayName="CheckboxRootProvider";var f=r(78788),h=r(70568),p=r(24359),g=r(30681),v=r(86483);let[m,b]=(0,l.q)({name:"CheckboxGroupContext",hookName:"useCheckboxGroupContext",providerName:"<CheckboxGroupProvider />",strict:!1}),y=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=b(),r=(0,v.f)(),n=(0,o.useMemo)(()=>{var r;return(0,i.v6)(e,null!=(r=null==t?void 0:t.getItemProps({value:e.value}))?r:{})},[e,t]),a=(0,o.useId)(),{getRootNode:s}=(0,p.w)(),{dir:l}=(0,g.g)(),u={id:a,ids:{label:null==r?void 0:r.ids.label,hiddenInput:null==r?void 0:r.ids.control},dir:l,disabled:null==r?void 0:r.disabled,readOnly:null==r?void 0:r.readOnly,invalid:null==r?void 0:r.invalid,required:null==r?void 0:r.required,getRootNode:s,...n},c=(0,h.zl)(f.Aq,u);return f.Ng(c,h._B)},x=(0,o.forwardRef)((e,t)=>{let[r,o]=(0,a.P)()(e,["checked","defaultChecked","disabled","form","id","ids","invalid","name","onCheckedChange","readOnly","required","value"]),l=y(r),c=(0,i.v6)(l.getRootProps(),o);return(0,n.jsx)(u,{value:l,children:(0,n.jsx)(s.X.label,{...c,ref:t})})});x.displayName="CheckboxRoot";let w=(0,o.forwardRef)((e,t)=>{let r=c(),o=(0,i.v6)(r.getLabelProps(),e);return(0,n.jsx)(s.X.span,{...o,ref:t})});w.displayName="CheckboxLabel";let S=(0,o.forwardRef)((e,t)=>{let r=c(),o=(0,i.v6)(r.getControlProps(),e);return(0,n.jsx)(s.X.div,{...o,ref:t})});S.displayName="CheckboxControl";var E=r(27448),k=r(42805);let C=(0,o.forwardRef)((e,t)=>{let[r,i]=(0,a.P)()(e,["defaultValue","value","onValueChange","disabled","invalid","readOnly","name"]),l=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{defaultValue:t,value:r,onValueChange:n,disabled:i,readOnly:a,name:s,invalid:l}=e,u=!(i||a),[c,d]=function(e){let{value:t,onChange:r,defaultValue:n}=e,[i,a]=(0,o.useState)(n),s=void 0!==t;return[s?t:i,(0,o.useCallback)(e=>(s||a(e),null==r?void 0:r(e)),[s,r])]}({value:r,defaultValue:t||[],onChange:(0,k._)(n,{sync:!0})}),f=e=>c.some(t=>String(t)===String(e)),h=e=>{f(e)?g(e):p(e)},p=e=>{u&&(f(e)||d(c.concat(e)))},g=e=>{u&&d(c.filter(t=>String(t)!==String(e)))};return{isChecked:f,value:c,name:s,disabled:!!i,readOnly:!!a,invalid:!!l,setValue:d,addValue:p,toggleValue:h,getItemProps:e=>({checked:null!=e.value?f(e.value):void 0,onCheckedChange(){null!=e.value&&h(e.value)},name:s,disabled:i,readOnly:a,invalid:l})}}(r);return(0,n.jsx)(m,{value:l,children:(0,n.jsx)(s.X.div,{ref:t,role:"group",...i,...E.f.build().group.attrs})})});C.displayName="CheckboxGroup";let O=(0,o.forwardRef)((e,t)=>{let r=c(),o=(0,i.v6)(r.getHiddenInputProps(),e),a=(0,v.f)();return(0,n.jsx)(s.X.input,{"aria-describedby":null==a?void 0:a.ariaDescribedby,...o,ref:t})});O.displayName="CheckboxHiddenInput";var I=r(9242),_=r(38006),T=r(86697),P=r(72348),R=r(70505);let A=(0,o.forwardRef)(function(e,t){let r=(0,P.m)({key:"checkmark",recipe:e.recipe}),[i,o]=r.splitVariantProps(e),{checked:a,indeterminate:s,disabled:l,unstyled:u,children:c,...d}=o,f=u?T.z:r(i);return(0,n.jsx)(_.B.svg,{ref:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3px",strokeLinecap:"round",strokeLinejoin:"round","data-state":s?"indeterminate":a?"checked":"unchecked","data-disabled":(0,R.s)(l),css:[f,e.css],...d,children:s?(0,n.jsx)("path",{d:"M5 12h14"}):a?(0,n.jsx)("polyline",{points:"20 6 9 17 4 12"}):null})}),{withProvider:N,withContext:M,useStyles:L,PropsProvider:V}=(0,I.c)({key:"checkbox"});N(d,"root",{forwardAsChild:!0});let D=N(x,"root",{forwardAsChild:!0}),F=M(w,"label",{forwardAsChild:!0}),j=(0,o.forwardRef)(function(e,t){let{checked:r,indeterminate:i,...o}=e,a=c(),s=L();return r&&a.checked?(0,n.jsx)(_.B.svg,{ref:t,asChild:!0,...o,css:[s.indicator,e.css],children:r}):i&&a.indeterminate?(0,n.jsx)(_.B.svg,{ref:t,asChild:!0,...o,css:[s.indicator,e.css],children:i}):(0,n.jsx)(A,{ref:t,checked:a.checked,indeterminate:a.indeterminate,disabled:a.disabled,unstyled:!0,...o,css:[s.indicator,e.css]})}),z=M(S,"control",{forwardAsChild:!0,defaultProps:{children:(0,n.jsx)(j,{})}});(0,_.B)(C,{base:{display:"flex",flexDirection:"column",gap:"1.5"}},{forwardAsChild:!0});let B=O},54204:e=>{e.exports=function(e,t,r,n,i){return i(e,function(e,i,o){r=n?(n=!1,e):t(r,e,i,o)}),r}},54246:(e,t,r)=>{"use strict";r.d(t,{o:()=>p});var n=r(77534),i=Object.defineProperty,o=(e,t,r)=>((e,t,r)=>t in e?i(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r)(e,"symbol"!=typeof t?t+"":t,r),a={activateTrap(e,t){if(e.length>0){let r=e[e.length-1];r!==t&&r.pause()}let r=e.indexOf(t);-1===r||e.splice(r,1),e.push(t)},deactivateTrap(e,t){let r=e.indexOf(t);-1!==r&&e.splice(r,1),e.length>0&&e[e.length-1].unpause()}},s=[],l=class{constructor(e,t){o(this,"trapStack"),o(this,"config"),o(this,"doc"),o(this,"state",{containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0}),o(this,"listenerCleanups",[]),o(this,"handleFocus",e=>{let t=(0,n.wt)(e),r=this.findContainerIndex(t,e)>=0;if(r||(0,n.wz)(t))r&&(this.state.mostRecentlyFocusedNode=t);else{let t;e.stopImmediatePropagation();let r=!0;if(this.state.mostRecentlyFocusedNode)if((0,n.yT)(this.state.mostRecentlyFocusedNode)>0){let e=this.findContainerIndex(this.state.mostRecentlyFocusedNode),{tabbableNodes:n}=this.state.containerGroups[e];if(n.length>0){let e=n.findIndex(e=>e===this.state.mostRecentlyFocusedNode);e>=0&&(this.config.isKeyForward(this.state.recentNavEvent)?e+1<n.length&&(t=n[e+1],r=!1):e-1>=0&&(t=n[e-1],r=!1))}}else this.state.containerGroups.some(e=>e.tabbableNodes.some(e=>(0,n.yT)(e)>0))||(r=!1);else r=!1;r&&(t=this.findNextNavNode({target:this.state.mostRecentlyFocusedNode,isBackward:this.config.isKeyBackward(this.state.recentNavEvent)})),t?this.tryFocus(t):this.tryFocus(this.state.mostRecentlyFocusedNode||this.getInitialFocusNode())}this.state.recentNavEvent=void 0}),o(this,"handlePointerDown",e=>{let t=(0,n.wt)(e);if(!(this.findContainerIndex(t,e)>=0)){if(c(this.config.clickOutsideDeactivates,e))return void this.deactivate({returnFocus:this.config.returnFocusOnDeactivate});c(this.config.allowOutsideClick,e)||e.preventDefault()}}),o(this,"handleClick",e=>{let t=(0,n.wt)(e);!(this.findContainerIndex(t,e)>=0||c(this.config.clickOutsideDeactivates,e))&&(c(this.config.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation()))}),o(this,"handleTabKey",e=>{if(this.config.isKeyForward(e)||this.config.isKeyBackward(e)){this.state.recentNavEvent=e;let t=this.config.isKeyBackward(e),r=this.findNextNavNode({event:e,isBackward:t});r&&(u(e)&&e.preventDefault(),this.tryFocus(r))}}),o(this,"handleEscapeKey",e=>{d(e)&&!1!==c(this.config.escapeDeactivates,e)&&(e.preventDefault(),this.deactivate())}),o(this,"_mutationObserver"),o(this,"setupMutationObserver",()=>{let e=this.doc.defaultView||window;this._mutationObserver=new e.MutationObserver(e=>{e.some(e=>Array.from(e.removedNodes).some(e=>e===this.state.mostRecentlyFocusedNode))&&this.tryFocus(this.getInitialFocusNode())})}),o(this,"updateObservedNodes",()=>{this._mutationObserver?.disconnect(),this.state.active&&!this.state.paused&&this.state.containers.map(e=>{this._mutationObserver?.observe(e,{subtree:!0,childList:!0})})}),o(this,"getInitialFocusNode",()=>{let e=this.getNodeForOption("initialFocus",{hasFallback:!0});if(!1===e)return!1;if(void 0===e||e&&!(0,n.tp)(e)){let t=(0,n.bq)(this.doc);if(t&&this.findContainerIndex(t)>=0)e=t;else{let t=this.state.tabbableGroups[0];e=t&&t.firstTabbableNode||this.getNodeForOption("fallbackFocus")}}else null===e&&(e=this.getNodeForOption("fallbackFocus"));if(!e)throw Error("Your focus-trap needs to have at least one focusable element");return e.isConnected||(e=this.getNodeForOption("fallbackFocus")),e}),o(this,"tryFocus",e=>{if(!1!==e&&e!==(0,n.bq)(this.doc)){if(!e||!e.focus)return void this.tryFocus(this.getInitialFocusNode());e.focus({preventScroll:!!this.config.preventScroll}),this.state.mostRecentlyFocusedNode=e,h(e)&&e.select()}}),o(this,"deactivate",e=>{if(!this.state.active)return this;let t={onDeactivate:this.config.onDeactivate,onPostDeactivate:this.config.onPostDeactivate,checkCanReturnFocus:this.config.checkCanReturnFocus,...e};clearTimeout(this.state.delayInitialFocusTimer),this.state.delayInitialFocusTimer=void 0,this.removeListeners(),this.state.active=!1,this.state.paused=!1,this.updateObservedNodes(),a.deactivateTrap(this.trapStack,this);let r=this.getOption(t,"onDeactivate"),n=this.getOption(t,"onPostDeactivate"),i=this.getOption(t,"checkCanReturnFocus"),o=this.getOption(t,"returnFocus","returnFocusOnDeactivate");r?.();let s=()=>{f(()=>{if(o){let e=this.getReturnFocusNode(this.state.nodeFocusedBeforeActivation);this.tryFocus(e)}n?.()})};return o&&i?i(this.getReturnFocusNode(this.state.nodeFocusedBeforeActivation)).then(s,s):s(),this}),o(this,"pause",e=>{if(this.state.paused||!this.state.active)return this;let t=this.getOption(e,"onPause"),r=this.getOption(e,"onPostPause");return this.state.paused=!0,t?.(),this.removeListeners(),this.updateObservedNodes(),r?.(),this}),o(this,"unpause",e=>{if(!this.state.paused||!this.state.active)return this;let t=this.getOption(e,"onUnpause"),r=this.getOption(e,"onPostUnpause");return this.state.paused=!1,t?.(),this.updateTabbableNodes(),this.addListeners(),this.updateObservedNodes(),r?.(),this}),o(this,"updateContainerElements",e=>(this.state.containers=Array.isArray(e)?e.filter(Boolean):[e].filter(Boolean),this.state.active&&this.updateTabbableNodes(),this.updateObservedNodes(),this)),o(this,"getReturnFocusNode",e=>{let t=this.getNodeForOption("setReturnFocus",{params:[e]});return t||!1!==t&&e}),o(this,"getOption",(e,t,r)=>e&&void 0!==e[t]?e[t]:this.config[r||t]),o(this,"getNodeForOption",(e,{hasFallback:t=!1,params:r=[]}={})=>{let n=this.config[e];if("function"==typeof n&&(n=n(...r)),!0===n&&(n=void 0),!n){if(void 0===n||!1===n)return n;throw Error(`\`${e}\` was specified but was not a node, or did not return a node`)}let i=n;if("string"==typeof n){try{i=this.doc.querySelector(n)}catch(t){throw Error(`\`${e}\` appears to be an invalid selector; error="${t.message}"`)}if(!i&&!t)throw Error(`\`${e}\` as selector refers to no known node`)}return i}),o(this,"findNextNavNode",e=>{let{event:t,isBackward:r=!1}=e,i=e.target||(0,n.wt)(t);this.updateTabbableNodes();let o=null;if(this.state.tabbableGroups.length>0){let e=this.findContainerIndex(i,t),a=e>=0?this.state.containerGroups[e]:void 0;if(e<0)o=r?this.state.tabbableGroups[this.state.tabbableGroups.length-1].lastTabbableNode:this.state.tabbableGroups[0].firstTabbableNode;else if(r){let r=this.state.tabbableGroups.findIndex(({firstTabbableNode:e})=>i===e);if(r<0&&(a?.container===i||(0,n.tp)(i)&&!(0,n.AO)(i)&&!a?.nextTabbableNode(i,!1))&&(r=e),r>=0){let e=0===r?this.state.tabbableGroups.length-1:r-1,t=this.state.tabbableGroups[e];o=(0,n.yT)(i)>=0?t.lastTabbableNode:t.lastDomTabbableNode}else u(t)||(o=a?.nextTabbableNode(i,!1))}else{let r=this.state.tabbableGroups.findIndex(({lastTabbableNode:e})=>i===e);if(r<0&&(a?.container===i||(0,n.tp)(i)&&!(0,n.AO)(i)&&!a?.nextTabbableNode(i))&&(r=e),r>=0){let e=r===this.state.tabbableGroups.length-1?0:r+1,t=this.state.tabbableGroups[e];o=(0,n.yT)(i)>=0?t.firstTabbableNode:t.firstDomTabbableNode}else u(t)||(o=a?.nextTabbableNode(i))}}else o=this.getNodeForOption("fallbackFocus");return o}),this.trapStack=t.trapStack||s;let r={returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:e=>u(e)&&!e.shiftKey,isKeyBackward:e=>u(e)&&e.shiftKey,...t};this.doc=r.document||(0,n.YE)(Array.isArray(e)?e[0]:e),this.config=r,this.updateContainerElements(e),this.setupMutationObserver()}get active(){return this.state.active}get paused(){return this.state.paused}findContainerIndex(e,t){let r="function"==typeof t?.composedPath?t.composedPath():void 0;return this.state.containerGroups.findIndex(({container:t,tabbableNodes:n})=>t.contains(e)||r?.includes(t)||n.find(t=>t===e))}updateTabbableNodes(){if(this.state.containerGroups=this.state.containers.map(e=>{let t=(0,n.j9)(e),r=(0,n.i7)(e),i=t.length>0?t[0]:void 0,o=t.length>0?t[t.length-1]:void 0,a=r.find(e=>(0,n.AO)(e)),s=r.slice().reverse().find(e=>(0,n.AO)(e)),l=!!t.find(e=>(0,n.yT)(e)>0);return{container:e,tabbableNodes:t,focusableNodes:r,posTabIndexesFound:l,firstTabbableNode:i,lastTabbableNode:o,firstDomTabbableNode:a,lastDomTabbableNode:s,nextTabbableNode:function(e,i=!0){let o=t.indexOf(e);return o<0?i?r.slice(r.indexOf(e)+1).find(e=>(0,n.AO)(e)):r.slice(0,r.indexOf(e)).reverse().find(e=>(0,n.AO)(e)):t[o+(i?1:-1)]}}}),this.state.tabbableGroups=this.state.containerGroups.filter(e=>e.tabbableNodes.length>0),this.state.tabbableGroups.length<=0&&!this.getNodeForOption("fallbackFocus"))throw Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(this.state.containerGroups.find(e=>e.posTabIndexesFound)&&this.state.containerGroups.length>1)throw Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")}addListeners(){if(this.state.active)return a.activateTrap(this.trapStack,this),this.state.delayInitialFocusTimer=this.config.delayInitialFocus?f(()=>{this.tryFocus(this.getInitialFocusNode())}):this.tryFocus(this.getInitialFocusNode()),this.listenerCleanups.push((0,n.kn)(this.doc,"focusin",this.handleFocus,!0),(0,n.kn)(this.doc,"mousedown",this.handlePointerDown,{capture:!0,passive:!1}),(0,n.kn)(this.doc,"touchstart",this.handlePointerDown,{capture:!0,passive:!1}),(0,n.kn)(this.doc,"click",this.handleClick,{capture:!0,passive:!1}),(0,n.kn)(this.doc,"keydown",this.handleTabKey,{capture:!0,passive:!1}),(0,n.kn)(this.doc,"keydown",this.handleEscapeKey)),this}removeListeners(){if(this.state.active)return this.listenerCleanups.forEach(e=>e()),this.listenerCleanups=[],this}activate(e){if(this.state.active)return this;let t=this.getOption(e,"onActivate"),r=this.getOption(e,"onPostActivate"),i=this.getOption(e,"checkCanFocusTrap");i||this.updateTabbableNodes(),this.state.active=!0,this.state.paused=!1,this.state.nodeFocusedBeforeActivation=(0,n.bq)(this.doc),t?.();let o=()=>{i&&this.updateTabbableNodes(),this.addListeners(),this.updateObservedNodes(),r?.()};return i?i(this.state.containers.concat()).then(o,o):o(),this}},u=e=>"Tab"===e.key,c=(e,...t)=>"function"==typeof e?e(...t):e,d=e=>!e.isComposing&&"Escape"===e.key,f=e=>setTimeout(e,0),h=e=>"input"===e.localName&&"select"in e&&"function"==typeof e.select;function p(e,t={}){let r,i=(0,n.er)(()=>{let i="function"==typeof e?e():e;if(i){r=new l(i,{escapeDeactivates:!1,allowOutsideClick:!0,preventScroll:!0,returnFocusOnDeactivate:!0,delayInitialFocus:!1,fallbackFocus:i,...t,document:(0,n.YE)(i)});try{r.activate()}catch{}}});return function(){r?.deactivate(),i()}}},54454:e=>{e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},55073:(e,t,r)=>{var n=r(60678);e.exports=function(e,t,r){var i=null==e?void 0:n(e,t);return void 0===i?r:i}},55263:(e,t,r)=>{"use strict";r.d(t,{s:()=>n});let n=(...e)=>Array.from(e.reduce((e,t)=>(null!=t&&t.forEach(t=>e.add(t)),e),new Set([])))},55266:(e,t,r)=>{var n=r(30822),i=r(86622);e.exports=function(e){for(var t=i(e),r=t.length;r--;){var o=t[r],a=e[o];t[r]=[o,a,n(a)]}return t}},56012:(e,t,r)=>{var n=r(63929),i=r(98206),o=r(86622);e.exports=function(e){return n(e,o,i)}},56102:(e,t,r)=>{var n=r(48613),i=r(30039).Graph;e.exports=function(e,t,r){var o=function(e){for(var t;e.hasNode(t=n.uniqueId("_root")););return t}(e),a=new i({compound:!0}).setGraph({root:o}).setDefaultNodeLabel(function(t){return e.node(t)});return n.forEach(e.nodes(),function(i){var s=e.node(i),l=e.parent(i);(s.rank===t||s.minRank<=t&&t<=s.maxRank)&&(a.setNode(i),a.setParent(i,l||o),n.forEach(e[r](i),function(t){var r=t.v===i?t.w:t.v,o=a.edge(r,i),s=n.isUndefined(o)?0:o.weight;a.setEdge(r,i,{weight:e.edge(t).weight+s})}),n.has(s,"minRank")&&a.setNode(i,{borderLeft:s.borderLeft[t],borderRight:s.borderRight[t]}))}),a}},56327:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useMergedRef",{enumerable:!0,get:function(){return i}});let n=r(80715);function i(e,t){let r=(0,n.useRef)(null),i=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=i.current;t&&(i.current=null,t())}else e&&(r.current=o(e,n)),t&&(i.current=o(t,n))},[e,t])}function o(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},56435:(e,t,r)=>{"use strict";var n=r(48613);e.exports={longestPath:function(e){var t={};n.forEach(e.sources(),function r(i){var o=e.node(i);if(n.has(t,i))return o.rank;t[i]=!0;var a=n.min(n.map(e.outEdges(i),function(t){return r(t.w)-e.edge(t).minlen}));return(a===1/0||null==a)&&(a=0),o.rank=a})},slack:function(e,t){return e.node(t.w).rank-e.node(t.v).rank-e.edge(t).minlen}}},57122:(e,t,r)=>{"use strict";r.d(t,{X:()=>i});var n=r(69446);function i(e,...t){for(let r of t)!function e(t,r){if(null==r)return t;for(let i of Object.keys(r))if(void 0!==r[i]&&"__proto__"!==i)if(!(0,n.Gv)(t[i])&&(0,n.Gv)(r[i]))Object.assign(t,{[i]:r[i]});else if(t[i]&&(0,n.Gv)(r[i]))e(t[i],r[i]);else if(Array.isArray(r[i])&&Array.isArray(t[i])){let o=0;for(;o<r[i].length;o++)(0,n.Gv)(t[i][o])&&(0,n.Gv)(r[i][o])?e(t[i][o],r[i][o]):t[i][o]=r[i][o]}else Object.assign(t,{[i]:r[i]});return t}(e,r);return e}},57288:(e,t,r)=>{"use strict";r.d(t,{Y:()=>u});var n=r(87259),i=r(80715),o=r(38006),a=r(70505),s=r(10425);let l=(0,o.B)("div",{base:{display:"inline-flex",gap:"var(--group-gap, 0.5rem)",isolation:"isolate",position:"relative","& [data-group-item]":{_focusVisible:{zIndex:1}}},variants:{orientation:{horizontal:{flexDirection:"row"},vertical:{flexDirection:"column"}},attached:{true:{gap:"0!"}},grow:{true:{display:"flex","& > *":{flex:1}}},stacking:{"first-on-top":{"& > [data-group-item]":{zIndex:"calc(var(--group-count) - var(--group-index))"}},"last-on-top":{"& > [data-group-item]":{zIndex:"var(--group-index)"}}}},compoundVariants:[{orientation:"horizontal",attached:!0,css:{"& > *[data-first]":{borderEndRadius:"0!",marginEnd:"-1px"},"& > *[data-between]":{borderRadius:"0!",marginEnd:"-1px"},"& > *[data-last]":{borderStartRadius:"0!"}}},{orientation:"vertical",attached:!0,css:{"& > *[data-first]":{borderBottomRadius:"0!",marginBottom:"-1px"},"& > *[data-between]":{borderRadius:"0!",marginBottom:"-1px"},"& > *[data-last]":{borderTopRadius:"0!"}}}],defaultVariants:{orientation:"horizontal"}}),u=(0,i.memo)((0,i.forwardRef)(function(e,t){let{align:r="center",justify:o="flex-start",children:u,wrap:c,skip:d,...f}=e,h=(0,i.useMemo)(()=>{let e=i.Children.toArray(u).filter(i.isValidElement);if(1===e.length)return e;let t=e.filter(e=>!(null==d?void 0:d(e))),r=t.length;return 1===t.length?e:e.map(e=>{var n;let o=e.props;if(null==d?void 0:d(e))return e;let s=t.indexOf(e);return(0,i.cloneElement)(e,{...o,"data-group-item":"","data-first":(0,a.s)(0===s),"data-last":(0,a.s)(s===r-1),"data-between":(0,a.s)(s>0&&s<r-1),style:{"--group-count":r,"--group-index":s,...null!=(n=null==o?void 0:o.style)?n:{}}})})},[u,d]);return(0,n.jsx)(l,{ref:t,alignItems:r,justifyContent:o,flexWrap:c,...f,className:(0,s.cx)("chakra-group",e.className),children:h})}))},57544:(e,t,r)=>{var n=r(71222),i=1/0;e.exports=function(e){return e?(e=n(e))===i||e===-i?(e<0?-1:1)*17976931348623157e292:e==e?e:0:0===e?e:0}},57641:(e,t,r)=>{var n=r(60663),i=r(46057),o=r(77261);e.exports=function(e,t){var r,a=new i,s={},l=new o;function u(e){var n=e.v===r?e.w:e.v,i=l.priority(n);if(void 0!==i){var o=t(e);o<i&&(s[n]=r,l.decrease(n,o))}}if(0===e.nodeCount())return a;n.each(e.nodes(),function(e){l.add(e,1/0),a.setNode(e)}),l.decrease(e.nodes()[0],0);for(var c=!1;l.size()>0;){if(r=l.removeMin(),n.has(s,r))a.setEdge(r,s[r]);else if(c)throw Error("Input graph is not connected: "+e);else c=!0;e.nodeEdges(r).forEach(u)}return a}},59045:(e,t,r)=>{e.exports=r(72475)(Object.getPrototypeOf,Object)},59567:(e,t,r)=>{var n=r(71444),i=r(45136);e.exports=function(e,t,r){(void 0===r||i(e[t],r))&&(void 0!==r||t in e)||n(e,t,r)}},59773:(e,t,r)=>{"use strict";r.d(t,{E:()=>o});let{withContext:n,PropsProvider:i}=(0,r(62523).a)({key:"text"}),o=n("p")},59782:(e,t,r)=>{var n=r(81563),i=r(18230),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(n(e))return!1;var r=typeof e;return!!("number"==r||"symbol"==r||"boolean"==r||null==e||i(e))||a.test(e)||!o.test(e)||null!=t&&e in Object(t)}},60050:e=>{e.exports=function(e,t){return e<t}},60140:(e,t,r)=>{"use strict";r.d(t,{Aq:()=>f,MI:()=>s,Ng:()=>u});var n=r(43690),i=r(76808),o=r(75794),a=r(41562),s=(0,n.y)("progress").parts("root","label","track","range","valueText","view","circle","circleTrack","circleRange"),l=s.build();function u(e,t){var r,n;let{context:i,computed:o,prop:a,send:s,scope:u}=e,f=o("percent"),h=o("isIndeterminate")?"":o("formatter").format(f/100),p=a("max"),g=a("min"),v=a("orientation"),m=a("translations"),b=o("isIndeterminate"),y=i.get("value"),x=m?.value({value:y,max:p,percent:f,min:g,formatter:o("formatter")})??"",w=(r=y,n=p,null==r?"indeterminate":r===n?"complete":"loading"),S={role:"progressbar","aria-label":x,"data-max":p,"aria-valuemin":g,"aria-valuemax":p,"aria-valuenow":y??void 0,"data-orientation":v,"data-state":w},E=function(e){let{context:t,computed:r}=e;return{root:d,track:c,range:{opacity:0===t.get("value")?0:void 0,style:{...c.style,"--percent":r("percent"),"--circumference":"calc(2 * 3.14159 * var(--radius))","--offset":"calc(var(--circumference) * (100 - var(--percent)) / 100)",strokeDashoffset:"calc(var(--circumference) * ((100 - var(--percent)) / 100))",strokeDasharray:r("isIndeterminate")?void 0:"var(--circumference)",transformOrigin:"center",transform:"rotate(-90deg)"}}}}(e);return{value:y,valueAsString:x,min:g,max:p,percent:f,percentAsString:h,indeterminate:b,setValue(e){s({type:"VALUE.SET",value:e})},setToMax(){s({type:"VALUE.SET",value:p})},setToMin(){s({type:"VALUE.SET",value:g})},getRootProps:()=>t.element({dir:a("dir"),...l.root.attrs,id:u.ids?.root??`progress-${u.id}`,"data-max":p,"data-value":y??void 0,"data-state":w,"data-orientation":v,style:{"--percent":b?void 0:f}}),getLabelProps:()=>t.element({dir:a("dir"),id:u.ids?.label??`progress-${u.id}-label`,...l.label.attrs,"data-orientation":v}),getValueTextProps:()=>t.element({dir:a("dir"),"aria-live":"polite",...l.valueText.attrs}),getTrackProps:()=>t.element({dir:a("dir"),id:u.ids?.track??`progress-${u.id}-track`,...l.track.attrs,...S}),getRangeProps:()=>t.element({dir:a("dir"),...l.range.attrs,"data-orientation":v,"data-state":w,style:{[o("isHorizontal")?"width":"height"]:b?void 0:`${f}%`}}),getCircleProps:()=>t.element({dir:a("dir"),id:u.ids?.circle??`progress-${u.id}-circle`,...l.circle.attrs,...S,...E.root}),getCircleTrackProps:()=>t.element({dir:a("dir"),"data-orientation":v,...l.circleTrack.attrs,...E.track}),getCircleRangeProps:()=>t.element({dir:a("dir"),...l.circleRange.attrs,...E.range,"data-state":w}),getViewProps:e=>t.element({dir:a("dir"),...l.view.attrs,"data-state":e.state,hidden:e.state!==w})}}var c={style:{"--radius":"calc(var(--size) / 2 - var(--thickness) / 2)",cx:"calc(var(--size) / 2)",cy:"calc(var(--size) / 2)",r:"var(--radius)",fill:"transparent",strokeWidth:"var(--thickness)"}},d={style:{width:"var(--size)",height:"var(--size)"}},f=(0,i.Op)({props({props:e}){let t=e.min??0,r=e.max??100;return{orientation:"horizontal",...e,max:r,min:t,defaultValue:void 0!==e.defaultValue?e.defaultValue:v(t,r),formatOptions:{style:"percent",...e.formatOptions},translations:{value:({value:e,percent:t,formatter:r})=>{if(null===e)return"loading...";if(r){let n="percent"===r.resolvedOptions().style?t/100:e;return r.format(n)}return e.toString()},...e.translations}}},initialState:()=>"idle",entry:["validateContext"],context:({bindable:e,prop:t})=>({value:e(()=>({defaultValue:t("defaultValue"),value:t("value"),onChange(e){t("onValueChange")?.({value:e})}}))}),computed:{isIndeterminate:({context:e})=>null===e.get("value"),percent({context:e,prop:t}){let r=e.get("value");return(0,o.Et)(r)?100*(0,o.vV)(r,t("min"),t("max")):-1},formatter:(0,i.ph)(({prop:e})=>[e("locale"),e("formatOptions")],([e,t])=>new Intl.NumberFormat(e,t)),isHorizontal:({prop:e})=>"horizontal"===e("orientation")},states:{idle:{on:{"VALUE.SET":{actions:["setValue"]}}}},implementations:{actions:{setValue:({context:e,event:t,prop:r})=>{let n=null===t.value?null:Math.max(0,Math.min(t.value,r("max")));e.set("value",n)},validateContext:({context:e,prop:t})=>{let r=t("max"),n=t("min"),i=e.get("value");if(null!=i){if(!h(r))throw Error(`[progress] The max value passed \`${r}\` is not a valid number`);if(!p(i,r))throw Error(`[progress] The value passed \`${i}\` exceeds the max value \`${r}\``);if(!g(i,n))throw Error(`[progress] The value passed \`${i}\` exceeds the min value \`${n}\``)}}}}}),h=e=>(0,o.Et)(e)&&!isNaN(e),p=(e,t)=>h(e)&&e<=t,g=(e,t)=>h(e)&&e>=t,v=(e,t)=>e+(t-e)/2,m=(0,a.x)()(["dir","getRootNode","id","ids","max","min","orientation","translations","value","onValueChange","defaultValue","formatOptions","locale"]);(0,o.PM)(m)},60460:(e,t,r)=>{"use strict";function n(...e){return t=>{let r=[];for(let n of e)if("function"==typeof n){let e=n(t);"function"==typeof e&&r.push(e)}else n&&(n.current=t);if(r.length)return()=>{for(let e of r)e()}}}r.d(t,{t:()=>n})},60663:(e,t,r)=>{var n;try{n={clone:r(94611),constant:r(3646),each:r(93927),filter:r(69712),has:r(52122),isArray:r(81563),isEmpty:r(73311),isFunction:r(75114),isUndefined:r(61078),keys:r(86622),map:r(33036),reduce:r(13044),size:r(69695),transform:r(38942),union:r(96969),values:r(70540)}}catch(e){}n||(n=window._),e.exports=n},60678:(e,t,r)=>{var n=r(79515),i=r(4317);e.exports=function(e,t){t=n(t,e);for(var r=0,o=t.length;null!=e&&r<o;)e=e[i(t[r++])];return r&&r==o?e:void 0}},60958:(e,t,r)=>{"use strict";let n,i;r.d(t,{Yi:()=>sB,u4:()=>sU});var o,a,s,l,u,c,d,f,h,p,g,v,m,b,y,x,w,S,E,k,C,O,I,_,T=function(e,t){return(T=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function P(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}T(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var R=function(){return(R=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function A(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function N(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}l((n=n.apply(e,t||[])).next())})}function M(e,t){var r,n,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){var u=[s,l];if(r)throw TypeError("Generator is already executing.");for(;a&&(a=0,u[0]&&(o=0)),o;)try{if(r=1,n&&(i=2&u[0]?n.return:u[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,u[1])).done)return i;switch(n=0,i&&(u=[2&u[0],i.value]),u[0]){case 0:case 1:i=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,n=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===u[0]||2===u[0])){o=0;continue}if(3===u[0]&&(!i||u[1]>i[0]&&u[1]<i[3])){o.label=u[1];break}if(6===u[0]&&o.label<i[1]){o.label=i[1],i=u;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(u);break}i[2]&&o.ops.pop(),o.trys.pop();continue}u=t.call(e,o)}catch(e){u=[6,e],n=0}finally{r=i=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}function L(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function V(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}function D(e,t,r){if(r||2==arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}function F(e){return this instanceof F?(this.v=e,this):new F(e)}Object.create,Object.create;var j=("function"==typeof SuppressedError&&SuppressedError,function(e){return{promise:e||Promise.resolve()}}),z=function(){var e="ampIntegrationContext";return"undefined"!=typeof globalThis&&void 0!==globalThis[e]?globalThis[e]:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof self?self:void 0!==r.g?r.g:void 0},B=function(){var e,t=z();return(null==(e=null==t?void 0:t.location)?void 0:e.search)?t.location.search.substring(1).split("&").filter(Boolean).reduce(function(e,t){var r=t.split("=",2),n=U(r[0]),i=U(r[1]);return i&&(e[n]=i),e},{}):{}},U=function(e){void 0===e&&(e="");try{return decodeURIComponent(e)}catch(e){return""}},H=function(){function e(){}return e.prototype.getApplicationContext=function(){return{versionName:this.versionName,language:W(),platform:"Web",os:void 0,deviceModel:void 0}},e}(),W=function(){return"undefined"!=typeof navigator&&(navigator.languages&&navigator.languages[0]||navigator.language)||""},$=function(){function e(){this.queue=[]}return e.prototype.logEvent=function(e){this.receiver?this.receiver(e):this.queue.length<512&&this.queue.push(e)},e.prototype.setEventReceiver=function(e){this.receiver=e,this.queue.length>0&&(this.queue.forEach(function(t){e(t)}),this.queue=[])},e}(),q=function(){return(q=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function G(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function K(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}"function"==typeof SuppressedError&&SuppressedError;var Y=function(e,t){var r,n,i=typeof e;if(i!==typeof t)return!1;try{for(var o=G(["string","number","boolean","undefined"]),a=o.next();!a.done;a=o.next())if(a.value===i)return e===t}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}if(null==e&&null==t)return!0;if(null==e||null==t||e.length!==t.length)return!1;var s=Array.isArray(e),l=Array.isArray(t);if(s!==l)return!1;if(s&&l){for(var u=0;u<e.length;u++)if(!Y(e[u],t[u]))return!1}else{if(!Y(Object.keys(e).sort(),Object.keys(t).sort()))return!1;var c=!0;return Object.keys(e).forEach(function(r){Y(e[r],t[r])||(c=!1)}),c}return!0};Object.entries||(Object.entries=function(e){for(var t=Object.keys(e),r=t.length,n=Array(r);r--;)n[r]=[t[r],e[t[r]]];return n});var X=function(){function e(){this.identity={userProperties:{}},this.listeners=new Set}return e.prototype.editIdentity=function(){var e=this,t=q({},this.identity.userProperties),r=q(q({},this.identity),{userProperties:t});return{setUserId:function(e){return r.userId=e,this},setDeviceId:function(e){return r.deviceId=e,this},setUserProperties:function(e){return r.userProperties=e,this},setOptOut:function(e){return r.optOut=e,this},updateUserProperties:function(e){var t,n,i,o,a,s,l=r.userProperties||{};try{for(var u=G(Object.entries(e)),c=u.next();!c.done;c=u.next()){var d=K(c.value,2),f=d[0],h=d[1];switch(f){case"$set":try{for(var p=(i=void 0,G(Object.entries(h))),g=p.next();!g.done;g=p.next()){var v=K(g.value,2),m=v[0],b=v[1];l[m]=b}}catch(e){i={error:e}}finally{try{g&&!g.done&&(o=p.return)&&o.call(p)}finally{if(i)throw i.error}}break;case"$unset":try{for(var y=(a=void 0,G(Object.keys(h))),x=y.next();!x.done;x=y.next()){var m=x.value;delete l[m]}}catch(e){a={error:e}}finally{try{x&&!x.done&&(s=y.return)&&s.call(y)}finally{if(a)throw a.error}}break;case"$clearAll":l={}}}}catch(e){t={error:e}}finally{try{c&&!c.done&&(n=u.return)&&n.call(u)}finally{if(t)throw t.error}}return r.userProperties=l,this},commit:function(){return e.setIdentity(r),this}}},e.prototype.getIdentity=function(){return q({},this.identity)},e.prototype.setIdentity=function(e){var t=q({},this.identity);this.identity=q({},e),Y(t,this.identity)||this.listeners.forEach(function(t){t(e)})},e.prototype.addIdentityListener=function(e){this.listeners.add(e)},e.prototype.removeIdentityListener=function(e){this.listeners.delete(e)},e}(),Q="undefined"!=typeof globalThis?globalThis:void 0!==r.g?r.g:self,J=function(){function e(){this.identityStore=new X,this.eventBridge=new $,this.applicationContextProvider=new H}return e.getInstance=function(t){return Q.analyticsConnectorInstances||(Q.analyticsConnectorInstances={}),Q.analyticsConnectorInstances[t]||(Q.analyticsConnectorInstances[t]=new e),Q.analyticsConnectorInstances[t]},e}(),Z="".concat("AMP","_unsent"),ee="$default_instance",et="https://api2.amplitude.com/2/httpapi",er=["access-control-allow-origin","access-control-allow-credentials","access-control-expose-headers","access-control-max-age","access-control-allow-methods","access-control-allow-headers","accept-patch","accept-ranges","age","allow","alt-svc","cache-control","connection","content-disposition","content-encoding","content-language","content-length","content-location","content-md5","content-range","content-type","date","delta-base","etag","expires","im","last-modified","link","location","permanent","p3p","pragma","proxy-authenticate","public-key-pins","retry-after","server","status","strict-transport-security","trailer","transfer-encoding","tk","upgrade","vary","via","warning","www-authenticate","x-b3-traceid","x-frame-options"],en=["authorization","cookie","set-cookie"],ei=function(e){return void 0===e&&(e=ee),J.getInstance(e)},eo=function(e,t){ei(t).identityStore.editIdentity().setUserId(e).commit()},ea=function(e,t){ei(t).identityStore.editIdentity().setDeviceId(e).commit()};!function(e){e.Unknown="unknown",e.Skipped="skipped",e.Success="success",e.RateLimit="rate_limit",e.PayloadTooLarge="payload_too_large",e.Invalid="invalid",e.Failed="failed",e.Timeout="Timeout",e.SystemError="SystemError"}(o||(o={}));var es=function(e,t){var r=Math.max(t,1);return e.reduce(function(e,t,n){var i=Math.floor(n/r);return e[i]||(e[i]=[]),e[i].push(t),e},[])},el=function(e,t,r){return void 0===t&&(t=0),void 0===r&&(r=o.Unknown),{event:e,code:t,message:r}};!function(e){e[e.None=0]="None",e[e.Error=1]="Error",e[e.Warn=2]="Warn",e[e.Verbose=3]="Verbose",e[e.Debug=4]="Debug"}(a||(a={}));var eu="Amplitude Logger ",ec=function(){function e(){this.logLevel=a.None}return e.prototype.disable=function(){this.logLevel=a.None},e.prototype.enable=function(e){void 0===e&&(e=a.Warn),this.logLevel=e},e.prototype.log=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.logLevel<a.Verbose||console.log("".concat(eu,"[Log]: ").concat(e.join(" ")))},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.logLevel<a.Warn||console.warn("".concat(eu,"[Warn]: ").concat(e.join(" ")))},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.logLevel<a.Error||console.error("".concat(eu,"[Error]: ").concat(e.join(" ")))},e.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.logLevel<a.Debug||console.log("".concat(eu,"[Debug]: ").concat(e.join(" ")))},e}(),ed=function(){return{flushMaxRetries:12,flushQueueSize:200,flushIntervalMillis:1e4,instanceName:ee,logLevel:a.Warn,loggerProvider:new ec,offline:!1,optOut:!1,serverUrl:et,serverZone:"US",useBatch:!1}},ef=function(){function e(e){this._optOut=!1;var t,r,n,i,o=ed();this.apiKey=e.apiKey,this.flushIntervalMillis=null!=(t=e.flushIntervalMillis)?t:o.flushIntervalMillis,this.flushMaxRetries=e.flushMaxRetries||o.flushMaxRetries,this.flushQueueSize=e.flushQueueSize||o.flushQueueSize,this.instanceName=e.instanceName||o.instanceName,this.loggerProvider=e.loggerProvider||o.loggerProvider,this.logLevel=null!=(r=e.logLevel)?r:o.logLevel,this.minIdLength=e.minIdLength,this.plan=e.plan,this.ingestionMetadata=e.ingestionMetadata,this.offline=void 0!==e.offline?e.offline:o.offline,this.optOut=null!=(n=e.optOut)?n:o.optOut,this.serverUrl=e.serverUrl,this.serverZone=e.serverZone||o.serverZone,this.storageProvider=e.storageProvider,this.transportProvider=e.transportProvider,this.useBatch=null!=(i=e.useBatch)?i:o.useBatch,this.loggerProvider.enable(this.logLevel);var a=eh(e.serverUrl,e.serverZone,e.useBatch);this.serverZone=a.serverZone,this.serverUrl=a.serverUrl}return Object.defineProperty(e.prototype,"optOut",{get:function(){return this._optOut},set:function(e){this._optOut=e},enumerable:!1,configurable:!0}),e}(),eh=function(e,t,r){if(void 0===e&&(e=""),void 0===t&&(t=ed().serverZone),void 0===r&&(r=ed().useBatch),e)return{serverUrl:e,serverZone:void 0};var n,i=["US","EU"].includes(t)?t:ed().serverZone;return{serverZone:i,serverUrl:(n=r,"EU"===i?n?"https://api.eu.amplitude.com/batch":"https://api.eu.amplitude.com/2/httpapi":n?"https://api2.amplitude.com/batch":et)}},ep=function(){function e(){this.sdk={metrics:{histogram:{}}}}return e.prototype.recordHistogram=function(e,t){this.sdk.metrics.histogram[e]=t},e}(),eg=D([],V(Array(256).keys()),!1).map(function(e){return e.toString(16).padStart(2,"0")}),ev=function(e){var t,r=z();if(!(null==(t=null==r?void 0:r.crypto)?void 0:t.getRandomValues))return e?(e^16*Math.random()>>e/4).toString(16):(String(1e7)+String(-1e3)+String(-4e3)+String(-8e3)+String(-1e11)).replace(/[018]/g,ev);var n=r.crypto.getRandomValues(new Uint8Array(16));return n[6]=15&n[6]|64,n[8]=63&n[8]|128,D([],V(n.entries()),!1).map(function(e){var t=V(e,2),r=t[0],n=t[1];return[4,6,8,10].includes(r)?"-".concat(eg[n]):eg[n]}).join("")};function em(e){var t="";try{"body"in e&&(t=JSON.stringify(e.body,null,2))}catch(e){}return t}var eb=function(){function e(){this.name="amplitude",this.type="destination",this.retryTimeout=1e3,this.throttleTimeout=3e4,this.storageKey="",this.scheduleId=null,this.scheduledTimeout=0,this.flushId=null,this.queue=[]}return e.prototype.setup=function(e){var t;return N(this,void 0,void 0,function(){var r,n=this;return M(this,function(i){switch(i.label){case 0:return this.config=e,this.storageKey="".concat(Z,"_").concat(this.config.apiKey.substring(0,10)),[4,null==(t=this.config.storageProvider)?void 0:t.get(this.storageKey)];case 1:return(r=i.sent())&&r.length>0&&Promise.all(r.map(function(e){return n.execute(e)})).catch(),[2,Promise.resolve(void 0)]}})})},e.prototype.execute=function(e){var t=this;return e.insert_id||(e.insert_id=ev()),new Promise(function(r){t.queue.push({event:e,attempts:0,callback:function(e){return r(e)},timeout:0}),t.schedule(t.config.flushIntervalMillis),t.saveEvents()})},e.prototype.removeEventsExceedFlushMaxRetries=function(e){var t=this;return e.filter(function(e){return e.attempts+=1,e.attempts<t.config.flushMaxRetries||(t.fulfillRequest([e],500,"Event rejected due to exceeded retry count"),!1)})},e.prototype.scheduleEvents=function(e){var t=this;e.forEach(function(e){t.schedule(0===e.timeout?t.config.flushIntervalMillis:e.timeout)})},e.prototype.schedule=function(e){var t=this;if(!this.config.offline&&(null===this.scheduleId||this.scheduleId&&e>this.scheduledTimeout)){this.scheduleId&&clearTimeout(this.scheduleId),this.scheduledTimeout=e,this.scheduleId=setTimeout(function(){t.queue=t.queue.map(function(e){return e.timeout=0,e}),t.flush(!0)},e);return}},e.prototype.resetSchedule=function(){this.scheduleId=null,this.scheduledTimeout=0},e.prototype.flush=function(e){return void 0===e&&(e=!1),N(this,void 0,void 0,function(){var t,r,n=this;return M(this,function(i){switch(i.label){case 0:if(this.config.offline)return this.resetSchedule(),this.config.loggerProvider.debug("Skipping flush while offline."),[2];if(this.flushId)return this.resetSchedule(),this.config.loggerProvider.debug("Skipping flush because previous flush has not resolved."),[2];return this.flushId=this.scheduleId,this.resetSchedule(),t=[],r=[],this.queue.forEach(function(e){return 0===e.timeout?t.push(e):r.push(e)}),[4,es(t,this.config.flushQueueSize).reduce(function(t,r){return N(n,void 0,void 0,function(){return M(this,function(n){switch(n.label){case 0:return[4,t];case 1:return n.sent(),[4,this.send(r,e)];case 2:return[2,n.sent()]}})})},Promise.resolve())];case 1:return i.sent(),this.flushId=null,this.scheduleEvents(this.queue),[2]}})})},e.prototype.send=function(e,t){return void 0===t&&(t=!0),N(this,void 0,void 0,function(){var r,n,i,a;return M(this,function(s){switch(s.label){case 0:if(!this.config.apiKey)return[2,this.fulfillRequest(e,400,"Event rejected due to missing API key")];r={api_key:this.config.apiKey,events:e.map(function(e){var t=e.event;return t.extra,A(t,["extra"])}),options:{min_id_length:this.config.minIdLength},client_upload_time:new Date().toISOString(),request_metadata:this.config.requestMetadata},this.config.requestMetadata=new ep,s.label=1;case 1:return s.trys.push([1,3,,4]),n=eh(this.config.serverUrl,this.config.serverZone,this.config.useBatch).serverUrl,[4,this.config.transportProvider.send(n,r)];case 2:if(null===(i=s.sent()))return this.fulfillRequest(e,0,"Unexpected error occurred"),[2];if(!t)return"body"in i?this.fulfillRequest(e,i.statusCode,"".concat(i.status,": ").concat(em(i))):this.fulfillRequest(e,i.statusCode,i.status),[2];return this.handleResponse(i,e),[3,4];case 3:var l;return a=(l=s.sent())instanceof Error?l.message:String(l),this.config.loggerProvider.error(a),this.handleResponse({status:o.Failed,statusCode:0},e),[3,4];case 4:return[2]}})})},e.prototype.handleResponse=function(e,t){var r=e.status;switch(r){case o.Success:this.handleSuccessResponse(e,t);break;case o.Invalid:this.handleInvalidResponse(e,t);break;case o.PayloadTooLarge:this.handlePayloadTooLargeResponse(e,t);break;case o.RateLimit:this.handleRateLimitResponse(e,t);break;default:this.config.loggerProvider.warn("{code: 0, error: \"Status '".concat(r,"' provided for ").concat(t.length,' events"}')),this.handleOtherResponse(t)}},e.prototype.handleSuccessResponse=function(e,t){this.fulfillRequest(t,e.statusCode,"Event tracked successfully")},e.prototype.handleInvalidResponse=function(e,t){var r=this;if(e.body.missingField||e.body.error.startsWith("Invalid API key"))return void this.fulfillRequest(t,e.statusCode,e.body.error);var n=new Set(D(D(D(D([],V(Object.values(e.body.eventsWithInvalidFields)),!1),V(Object.values(e.body.eventsWithMissingFields)),!1),V(Object.values(e.body.eventsWithInvalidIdLengths)),!1),V(e.body.silencedEvents),!1).flat()),i=t.filter(function(t,i){return!n.has(i)||void r.fulfillRequest([t],e.statusCode,e.body.error)});i.length>0&&this.config.loggerProvider.warn(em(e));var o=this.removeEventsExceedFlushMaxRetries(i);this.scheduleEvents(o)},e.prototype.handlePayloadTooLargeResponse=function(e,t){if(1===t.length)return void this.fulfillRequest(t,e.statusCode,e.body.error);this.config.loggerProvider.warn(em(e)),this.config.flushQueueSize/=2;var r=this.removeEventsExceedFlushMaxRetries(t);this.scheduleEvents(r)},e.prototype.handleRateLimitResponse=function(e,t){var r=this,n=Object.keys(e.body.exceededDailyQuotaUsers),i=Object.keys(e.body.exceededDailyQuotaDevices),o=e.body.throttledEvents,a=new Set(n),s=new Set(i),l=new Set(o),u=t.filter(function(t,n){return t.event.user_id&&a.has(t.event.user_id)||t.event.device_id&&s.has(t.event.device_id)?void r.fulfillRequest([t],e.statusCode,e.body.error):(l.has(n)&&(t.timeout=r.throttleTimeout),!0)});u.length>0&&this.config.loggerProvider.warn(em(e));var c=this.removeEventsExceedFlushMaxRetries(u);this.scheduleEvents(c)},e.prototype.handleOtherResponse=function(e){var t=this,r=e.map(function(e){return e.timeout=e.attempts*t.retryTimeout,e}),n=this.removeEventsExceedFlushMaxRetries(r);this.scheduleEvents(n)},e.prototype.fulfillRequest=function(e,t,r){this.removeEvents(e),e.forEach(function(e){return e.callback(el(e.event,t,r))})},e.prototype.saveEvents=function(){if(this.config.storageProvider){var e=this.queue.map(function(e){return e.event});this.config.storageProvider.set(this.storageKey,e)}},e.prototype.removeEvents=function(e){this.queue=this.queue.filter(function(t){return!e.some(function(e){return e.event.insert_id===t.event.insert_id})}),this.saveEvents()},e}(),ey=function(){function e(){this.name="identity",this.type="before",this.identityStore=ei().identityStore}return e.prototype.execute=function(e){return N(this,void 0,void 0,function(){var t;return M(this,function(r){return(t=e.user_properties)&&this.identityStore.editIdentity().updateUserProperties(t).commit(),[2,e]})})},e.prototype.setup=function(e){return N(this,void 0,void 0,function(){return M(this,function(t){return e.instanceName&&(this.identityStore=ei(e.instanceName).identityStore),[2]})})},e}(),ex=function(e){if(Object.keys(e).length>1e3)return!1;for(var t in e){var r=e[t];if(!ew(t,r))return!1}return!0},ew=function(e,t){var r,n;if("string"!=typeof e)return!1;if(Array.isArray(t)){var i=!0;try{for(var o=L(t),a=o.next();!a.done;a=o.next()){var s=a.value;if(Array.isArray(s))return!1;if("object"==typeof s)i=i&&ex(s);else if(!["number","string"].includes(typeof s))return!1;if(!i)return!1}}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}}else if(null==t)return!1;else if("object"==typeof t)return ex(t);else if(!["number","string","boolean"].includes(typeof t))return!1;return!0},eS=function(){function e(){this._propertySet=new Set,this._properties={}}return e.prototype.getUserProperties=function(){return R({},this._properties)},e.prototype.set=function(e,t){return this._safeSet(s.SET,e,t),this},e.prototype.setOnce=function(e,t){return this._safeSet(s.SET_ONCE,e,t),this},e.prototype.append=function(e,t){return this._safeSet(s.APPEND,e,t),this},e.prototype.prepend=function(e,t){return this._safeSet(s.PREPEND,e,t),this},e.prototype.postInsert=function(e,t){return this._safeSet(s.POSTINSERT,e,t),this},e.prototype.preInsert=function(e,t){return this._safeSet(s.PREINSERT,e,t),this},e.prototype.remove=function(e,t){return this._safeSet(s.REMOVE,e,t),this},e.prototype.add=function(e,t){return this._safeSet(s.ADD,e,t),this},e.prototype.unset=function(e){return this._safeSet(s.UNSET,e,"-"),this},e.prototype.clearAll=function(){return this._properties={},this._properties[s.CLEAR_ALL]="-",this},e.prototype._safeSet=function(e,t,r){if(this._validate(e,t,r)){var n=this._properties[e];return void 0===n&&(n={},this._properties[e]=n),n[t]=r,this._propertySet.add(t),!0}return!1},e.prototype._validate=function(e,t,r){return!(void 0!==this._properties[s.CLEAR_ALL]||this._propertySet.has(t))&&(e===s.ADD?"number"==typeof r:e===s.UNSET||e===s.REMOVE||ew(t,r))},e}();!function(e){e.SET="$set",e.SET_ONCE="$setOnce",e.ADD="$add",e.APPEND="$append",e.PREPEND="$prepend",e.REMOVE="$remove",e.PREINSERT="$preInsert",e.POSTINSERT="$postInsert",e.UNSET="$unset",e.CLEAR_ALL="$clearAll"}(s||(s={}));var eE=[s.CLEAR_ALL,s.UNSET,s.SET,s.SET_ONCE,s.ADD,s.APPEND,s.PREPEND,s.PREINSERT,s.POSTINSERT,s.REMOVE],ek=function(){function e(){this.productId="",this.quantity=1,this.price=0}return e.prototype.setProductId=function(e){return this.productId=e,this},e.prototype.setQuantity=function(e){return e>0&&(this.quantity=e),this},e.prototype.setPrice=function(e){return this.price=e,this},e.prototype.setRevenueType=function(e){return this.revenueType=e,this},e.prototype.setCurrency=function(e){return this.currency=e,this},e.prototype.setRevenue=function(e){return this.revenue=e,this},e.prototype.setReceipt=function(e){return this.receipt=e,this},e.prototype.setReceiptSig=function(e){return this.receiptSig=e,this},e.prototype.setEventProperties=function(e){return ex(e)&&(this.properties=e),this},e.prototype.getEventProperties=function(){var e=this.properties?R({},this.properties):{};return e[l.REVENUE_PRODUCT_ID]=this.productId,e[l.REVENUE_QUANTITY]=this.quantity,e[l.REVENUE_PRICE]=this.price,e[l.REVENUE_TYPE]=this.revenueType,e[l.REVENUE_CURRENCY]=this.currency,e[l.REVENUE]=this.revenue,e[l.RECEIPT]=this.receipt,e[l.RECEIPT_SIG]=this.receiptSig,e},e}();!function(e){e.REVENUE_PRODUCT_ID="$productId",e.REVENUE_QUANTITY="$quantity",e.REVENUE_PRICE="$price",e.REVENUE_TYPE="$revenueType",e.REVENUE_CURRENCY="$currency",e.REVENUE="$revenue",e.RECEIPT="$receipt",e.RECEIPT_SIG="$receiptSig"}(l||(l={}));var eC=function(e,t){return void 0===t&&(t=Date.now()),Date.now()-t>e};!function(e){e.SET="$set",e.SET_ONCE="$setOnce",e.ADD="$add",e.APPEND="$append",e.PREPEND="$prepend",e.REMOVE="$remove",e.PREINSERT="$preInsert",e.POSTINSERT="$postInsert",e.UNSET="$unset",e.CLEAR_ALL="$clearAll"}(u||(u={})),function(e){e.IDENTIFY="$identify",e.GROUP_IDENTIFY="$groupidentify",e.REVENUE="revenue_amount"}(c||(c={}));var eO=function(){function e(e){this.client=e,this.queue=[],this.applying=!1,this.plugins=[]}return e.prototype.register=function(e,t){var r,n;return N(this,void 0,void 0,function(){return M(this,function(i){switch(i.label){case 0:if(this.plugins.some(function(t){return t.name===e.name}))return this.loggerProvider.warn("Plugin with name ".concat(e.name," already exists, skipping registration")),[2];return void 0===e.name&&(e.name=ev(),this.loggerProvider.warn("Plugin name is undefined. \n Generating a random UUID for plugin name: ".concat(e.name,". \n Set a name for the plugin to prevent it from being added multiple times."))),e.type=null!=(r=e.type)?r:"enrichment",[4,null==(n=e.setup)?void 0:n.call(e,t,this.client)];case 1:return i.sent(),this.plugins.push(e),[2]}})})},e.prototype.deregister=function(e,t){var r;return N(this,void 0,void 0,function(){var n,i;return M(this,function(o){switch(o.label){case 0:if(-1===(n=this.plugins.findIndex(function(t){return t.name===e})))return t.loggerProvider.warn("Plugin with name ".concat(e," does not exist, skipping deregistration")),[2];return i=this.plugins[n],this.plugins.splice(n,1),[4,null==(r=i.teardown)?void 0:r.call(i)];case 1:return o.sent(),[2]}})})},e.prototype.reset=function(e){this.applying=!1,this.plugins.map(function(e){var t;return null==(t=e.teardown)?void 0:t.call(e)}),this.plugins=[],this.client=e},e.prototype.push=function(e){var t=this;return new Promise(function(r){t.queue.push([e,r]),t.scheduleApply(0)})},e.prototype.scheduleApply=function(e){var t=this;this.applying||(this.applying=!0,setTimeout(function(){t.apply(t.queue.shift()).then(function(){t.applying=!1,t.queue.length>0&&t.scheduleApply(0)})},e))},e.prototype.apply=function(e){return N(this,void 0,void 0,function(){var t,r,n,i,o,a,s,l,u,c,d,f,h,p,g;return M(this,function(v){switch(v.label){case 0:if(!e)return[2];t=V(e,1)[0],r=V(e,2)[1],this.loggerProvider.log("Timeline.apply: Initial event",t),n=this.plugins.filter(function(e){return"before"===e.type}),v.label=1;case 1:v.trys.push([1,6,7,8]),o=(i=L(n)).next(),v.label=2;case 2:if(o.done)return[3,5];if(!(a=o.value).execute)return[3,4];return[4,a.execute(R({},t))];case 3:if(null===(s=v.sent()))return this.loggerProvider.log("Timeline.apply: Event filtered out by before plugin '".concat(String(a.name),"', event: ").concat(JSON.stringify(t))),r({event:t,code:0,message:""}),[2];t=s,this.loggerProvider.log("Timeline.apply: Event after before plugin '".concat(String(a.name),"', event: ").concat(JSON.stringify(t))),v.label=4;case 4:return o=i.next(),[3,2];case 5:return[3,8];case 6:return f={error:v.sent()},[3,8];case 7:try{o&&!o.done&&(h=i.return)&&h.call(i)}finally{if(f)throw f.error}return[7];case 8:l=this.plugins.filter(function(e){return"enrichment"===e.type||void 0===e.type}),v.label=9;case 9:v.trys.push([9,14,15,16]),c=(u=L(l)).next(),v.label=10;case 10:if(c.done)return[3,13];if(!(a=c.value).execute)return[3,12];return[4,a.execute(R({},t))];case 11:if(null===(s=v.sent()))return this.loggerProvider.log("Timeline.apply: Event filtered out by enrichment plugin '".concat(String(a.name),"', event: ").concat(JSON.stringify(t))),r({event:t,code:0,message:""}),[2];t=s,this.loggerProvider.log("Timeline.apply: Event after enrichment plugin '".concat(String(a.name),"', event: ").concat(JSON.stringify(t))),v.label=12;case 12:return c=u.next(),[3,10];case 13:return[3,16];case 14:return p={error:v.sent()},[3,16];case 15:try{c&&!c.done&&(g=u.return)&&g.call(u)}finally{if(p)throw p.error}return[7];case 16:return d=this.plugins.filter(function(e){return"destination"===e.type}),this.loggerProvider.log("Timeline.apply: Final event before destinations, event: ".concat(JSON.stringify(t))),Promise.all(d.map(function(e){var r=R({},t);return e.execute(r).catch(function(e){return el(r,0,String(e))})})).then(function(e){var n=V(e,1)[0]||el(t,100,"Event not tracked, no destination plugins on the instance");r(n)}),[2]}})})},e.prototype.flush=function(){return N(this,void 0,void 0,function(){var e,t=this;return M(this,function(r){switch(r.label){case 0:return e=this.queue,this.queue=[],[4,Promise.all(e.map(function(e){return t.apply(e)}))];case 1:return r.sent(),[4,Promise.all(this.plugins.filter(function(e){return"destination"===e.type}).map(function(e){return e.flush&&e.flush()}))];case 2:return r.sent(),[2]}})})},e.prototype.onIdentityChanged=function(e){this.plugins.forEach(function(t){var r;null==(r=t.onIdentityChanged)||r.call(t,e)})},e.prototype.onSessionIdChanged=function(e){this.plugins.forEach(function(t){var r;null==(r=t.onSessionIdChanged)||r.call(t,e)})},e.prototype.onOptOutChanged=function(e){this.plugins.forEach(function(t){var r;null==(r=t.onOptOutChanged)||r.call(t,e)})},e}(),eI=function(e,t){return R(R({},t),{event_type:c.IDENTIFY,user_properties:e.getUserProperties()})},e_=function(e,t,r,n){var i;return R(R({},n),{event_type:c.GROUP_IDENTIFY,group_properties:r.getUserProperties(),groups:((i={})[e]=t,i)})},eT=function(e,t,r){var n,i=new eS;return i.set(e,t),R(R({},r),{event_type:c.IDENTIFY,user_properties:i.getUserProperties(),groups:((n={})[e]=t,n)})},eP=function(){function e(e){void 0===e&&(e="$default"),this.initializing=!1,this.isReady=!1,this.q=[],this.dispatchQ=[],this.logEvent=this.track.bind(this),this.timeline=new eO(this),this.name=e}return e.prototype._init=function(e){return N(this,void 0,void 0,function(){return M(this,function(t){switch(t.label){case 0:return this.config=e,this.timeline.reset(this),this.timeline.loggerProvider=this.config.loggerProvider,[4,this.runQueuedFunctions("q")];case 1:return t.sent(),this.isReady=!0,[2]}})})},e.prototype.runQueuedFunctions=function(e){return N(this,void 0,void 0,function(){var t,r,n,i,o,a;return M(this,function(s){switch(s.label){case 0:t=this[e],this[e]=[],s.label=1;case 1:s.trys.push([1,8,9,10]),n=(r=L(t)).next(),s.label=2;case 2:if(n.done)return[3,7];if(!((i=(0,n.value)())&&"promise"in i))return[3,4];return[4,i.promise];case 3:return s.sent(),[3,6];case 4:return[4,i];case 5:s.sent(),s.label=6;case 6:return n=r.next(),[3,2];case 7:return[3,10];case 8:return o={error:s.sent()},[3,10];case 9:try{n&&!n.done&&(a=r.return)&&a.call(r)}finally{if(o)throw o.error}return[7];case 10:if(!this[e].length)return[3,12];return[4,this.runQueuedFunctions(e)];case 11:s.sent(),s.label=12;case 12:return[2]}})})},e.prototype.track=function(e,t,r){var n=R(R(R({},"string"==typeof e?{event_type:e}:e),r),t&&{event_properties:t});return j(this.dispatch(n))},e.prototype.identify=function(e,t){var r=eI(e,t);return j(this.dispatch(r))},e.prototype.groupIdentify=function(e,t,r,n){var i=e_(e,t,r,n);return j(this.dispatch(i))},e.prototype.setGroup=function(e,t,r){var n=eT(e,t,r);return j(this.dispatch(n))},e.prototype.revenue=function(e,t){var r=R(R({},t),{event_type:c.REVENUE,event_properties:e.getEventProperties()});return j(this.dispatch(r))},e.prototype.add=function(e){return this.isReady?this._addPlugin(e):(this.q.push(this._addPlugin.bind(this,e)),j())},e.prototype._addPlugin=function(e){return j(this.timeline.register(e,this.config))},e.prototype.remove=function(e){return this.isReady?this._removePlugin(e):(this.q.push(this._removePlugin.bind(this,e)),j())},e.prototype._removePlugin=function(e){return j(this.timeline.deregister(e,this.config))},e.prototype.dispatchWithCallback=function(e,t){if(!this.isReady)return t(el(e,0,"Client not initialized"));this.process(e).then(t)},e.prototype.dispatch=function(e){return N(this,void 0,void 0,function(){var t=this;return M(this,function(r){return this.isReady?[2,this.process(e)]:[2,new Promise(function(r){t.dispatchQ.push(t.dispatchWithCallback.bind(t,e,r))})]})})},e.prototype.getOperationAppliedUserProperties=function(e){var t={};if(void 0===e)return t;var r={};return Object.keys(e).forEach(function(t){Object.values(u).includes(t)||(r[t]=e[t])}),eE.forEach(function(r){if(Object.keys(e).includes(r)){var n=e[r];switch(r){case u.CLEAR_ALL:Object.keys(t).forEach(function(e){delete t[e]});break;case u.UNSET:Object.keys(n).forEach(function(e){delete t[e]});break;case u.SET:Object.assign(t,n)}}}),Object.assign(t,r),t},e.prototype.process=function(e){return N(this,void 0,void 0,function(){var t,r,n;return M(this,function(i){switch(i.label){case 0:if(i.trys.push([0,2,,3]),this.config.optOut)return[2,el(e,0,"Event skipped due to optOut config")];return e.event_type===c.IDENTIFY&&(t=this.getOperationAppliedUserProperties(e.user_properties),this.timeline.onIdentityChanged({userProperties:t})),[4,this.timeline.push(e)];case 1:return 200===(r=i.sent()).code?this.config.loggerProvider.log(r.message):100===r.code?this.config.loggerProvider.warn(r.message):this.config.loggerProvider.error(r.message),[2,r];case 2:return n=String(i.sent()),this.config.loggerProvider.error(n),[2,r=el(e,0,n)];case 3:return[2]}})})},e.prototype.setOptOut=function(e){if(!this.isReady)return void this.q.push(this._setOptOut.bind(this,!!e));this._setOptOut(e)},e.prototype._setOptOut=function(e){this.config.optOut!==e&&(this.timeline.onOptOutChanged(e),this.config.optOut=!!e)},e.prototype.flush=function(){return j(this.timeline.flush())},e.prototype.plugin=function(e){var t=this.timeline.plugins.find(function(t){return t.name===e});return void 0===t?void this.config.loggerProvider.debug("Cannot find plugin with name ".concat(e)):t},e.prototype.plugins=function(e){return this.timeline.plugins.filter(function(t){return t instanceof e})},e}(),eR=function(e,t){return"boolean"==typeof e?e:(null==e?void 0:e[t])!==!1},eA=function(e){return eR(e,"attribution")},eN=function(e){return eR(e,"pageViews")},eM=function(e){return eR(e,"sessions")},eL=function(e){return"object"==typeof e&&(!0===e.networkTracking||"object"==typeof e.networkTracking)},eV=function(e){return"boolean"==typeof e?e:"object"==typeof e&&(!0===e.elementInteractions||"object"==typeof e.elementInteractions)},eD=function(e){if(eV(e.autocapture)&&"object"==typeof e.autocapture&&"object"==typeof e.autocapture.elementInteractions)return e.autocapture.elementInteractions},eF=function(e){if(eL(e.autocapture)){if("object"==typeof e.autocapture&&"object"==typeof e.autocapture.networkTracking)return e.autocapture.networkTracking;else if(e.networkTrackingOptions)return e.networkTrackingOptions}},ej=function(e){var t,r=function(){return!1},n=void 0,i=e.pageCounter;return eN(e.defaultTracking)&&(r=void 0,t=void 0,e.defaultTracking&&"object"==typeof e.defaultTracking&&e.defaultTracking.pageViews&&"object"==typeof e.defaultTracking.pageViews&&("trackOn"in e.defaultTracking.pageViews&&(r=e.defaultTracking.pageViews.trackOn),"trackHistoryChanges"in e.defaultTracking.pageViews&&(n=e.defaultTracking.pageViews.trackHistoryChanges),"eventType"in e.defaultTracking.pageViews&&e.defaultTracking.pageViews.eventType&&(t=e.defaultTracking.pageViews.eventType))),{trackOn:r,trackHistoryChanges:n,eventType:t,pageCounter:i}},ez=function(e,t){for(var r=0;r<t.length;r++){var n=t[r],i=n.name,o=n.args,a=n.resolve,s=e&&e[i];if("function"==typeof s){var l=s.apply(e,o);"function"==typeof a&&a(null==l?void 0:l.promise)}}return e},eB=function(e){return e&&void 0!==e._q},eU=function(){if("undefined"==typeof navigator)return"";var e,t,r,n,i=navigator.userLanguage;return null!=(n=null!=(r=null!=(t=null==(e=navigator.languages)?void 0:e[0])?t:navigator.language)?r:i)?n:""},eH="2.17.8",eW=function(){function e(){this.name="@amplitude/plugin-context-browser",this.type="before",this.library="".concat("amplitude-ts","/").concat(eH),"undefined"!=typeof navigator&&(this.userAgent=navigator.userAgent)}return e.prototype.setup=function(e){return this.config=e,Promise.resolve(void 0)},e.prototype.execute=function(e){var t,r;return N(this,void 0,void 0,function(){var n,i,o;return M(this,function(a){return n=new Date().getTime(),i=null!=(t=this.config.lastEventId)?t:-1,o=null!=(r=e.event_id)?r:i+1,this.config.lastEventId=o,e.time||(this.config.lastEventTime=n),[2,R(R(R(R(R(R(R(R({user_id:this.config.userId,device_id:this.config.deviceId,session_id:this.config.sessionId,time:n},this.config.appVersion&&{app_version:this.config.appVersion}),this.config.trackingOptions.platform&&{platform:"Web"}),this.config.trackingOptions.language&&{language:eU()}),this.config.trackingOptions.ipAddress&&{ip:"$remote"}),{insert_id:ev(),partner_id:this.config.partnerId,plan:this.config.plan}),this.config.ingestionMetadata&&{ingestion_metadata:{source_name:this.config.ingestionMetadata.sourceName,source_version:this.config.ingestionMetadata.sourceVersion}}),e),{event_id:o,library:this.library,user_agent:this.userAgent})]})})},e}(),e$=function(){function e(){this.memoryStorage=new Map}return e.prototype.isEnabled=function(){return N(this,void 0,void 0,function(){return M(this,function(e){return[2,!0]})})},e.prototype.get=function(e){return N(this,void 0,void 0,function(){return M(this,function(t){return[2,this.memoryStorage.get(e)]})})},e.prototype.getRaw=function(e){return N(this,void 0,void 0,function(){var t;return M(this,function(r){switch(r.label){case 0:return[4,this.get(e)];case 1:return[2,(t=r.sent())?JSON.stringify(t):void 0]}})})},e.prototype.set=function(e,t){return N(this,void 0,void 0,function(){return M(this,function(r){return this.memoryStorage.set(e,t),[2]})})},e.prototype.remove=function(e){return N(this,void 0,void 0,function(){return M(this,function(t){return this.memoryStorage.delete(e),[2]})})},e.prototype.reset=function(){return N(this,void 0,void 0,function(){return M(this,function(e){return this.memoryStorage.clear(),[2]})})},e}(),eq=function(e,t,r){return void 0===t&&(t=""),void 0===r&&(r=10),["AMP",t,e.substring(0,r)].filter(Boolean).join("_")},eG=function(){function e(e){this.options=R({},e)}return e.prototype.isEnabled=function(){return N(this,void 0,void 0,function(){var t,r;return M(this,function(n){switch(n.label){case 0:if(!z())return[2,!1];e.testValue=String(Date.now()),t=new e(this.options),r="AMP_TEST",n.label=1;case 1:return n.trys.push([1,4,5,7]),[4,t.set(r,e.testValue)];case 2:return n.sent(),[4,t.get(r)];case 3:return[2,n.sent()===e.testValue];case 4:return n.sent(),[2,!1];case 5:return[4,t.remove(r)];case 6:return n.sent(),[7];case 7:return[2]}})})},e.prototype.get=function(e){var t;return N(this,void 0,void 0,function(){var r,n;return M(this,function(i){switch(i.label){case 0:return[4,this.getRaw(e)];case 1:if(!(r=i.sent()))return[2,void 0];try{if(n=null!=(t=eK(r))?t:eY(r),void 0===n)return console.error("Amplitude Logger [Error]: Failed to decode cookie value for key: ".concat(e,", value: ").concat(r)),[2,void 0];return[2,JSON.parse(n)]}catch(t){return console.error("Amplitude Logger [Error]: Failed to parse cookie value for key: ".concat(e,", value: ").concat(r)),[2,void 0]}}})})},e.prototype.getRaw=function(e){var t,r;return N(this,void 0,void 0,function(){var n,i;return M(this,function(o){return(i=(null!=(r=null==(t=null==(n=z())?void 0:n.document)?void 0:t.cookie.split("; "))?r:[]).find(function(t){return 0===t.indexOf(e+"=")}))?[2,i.substring(e.length+1)]:[2,void 0]})})},e.prototype.set=function(e,t){var r;return N(this,void 0,void 0,function(){var n,i,o,a,s,l,u;return M(this,function(c){try{n=null!=(r=this.options.expirationDays)?r:0,i=null!==t?n:-1,o=void 0,i&&((a=new Date).setTime(a.getTime()+24*i*36e5),o=a),s="".concat(e,"=").concat(btoa(encodeURIComponent(JSON.stringify(t)))),o&&(s+="; expires=".concat(o.toUTCString())),s+="; path=/",this.options.domain&&(s+="; domain=".concat(this.options.domain)),this.options.secure&&(s+="; Secure"),this.options.sameSite&&(s+="; SameSite=".concat(this.options.sameSite)),(l=z())&&(l.document.cookie=s)}catch(t){u=t instanceof Error?t.message:String(t),console.error("Amplitude Logger [Error]: Failed to set cookie for key: ".concat(e,". Error: ").concat(u))}return[2]})})},e.prototype.remove=function(e){return N(this,void 0,void 0,function(){return M(this,function(t){switch(t.label){case 0:return[4,this.set(e,null)];case 1:return t.sent(),[2]}})})},e.prototype.reset=function(){return N(this,void 0,void 0,function(){return M(this,function(e){return[2]})})},e}(),eK=function(e){try{return decodeURIComponent(atob(e))}catch(e){return}},eY=function(e){try{return decodeURIComponent(atob(decodeURIComponent(e)))}catch(e){return}},eX=function(){function e(){}return e.prototype.send=function(e,t){return Promise.resolve(null)},e.prototype.buildResponse=function(e){if("object"!=typeof e)return null;var t,r,n,i,a,s,l,u,c,d,f,h,p,g,v,m,b,y,x,w,S,E,k=e.code||0,C=this.buildStatus(k);switch(C){case o.Success:return{status:C,statusCode:k,body:{eventsIngested:null!=(t=e.events_ingested)?t:0,payloadSizeBytes:null!=(r=e.payload_size_bytes)?r:0,serverUploadTime:null!=(n=e.server_upload_time)?n:0}};case o.Invalid:return{status:C,statusCode:k,body:{error:null!=(i=e.error)?i:"",missingField:null!=(a=e.missing_field)?a:"",eventsWithInvalidFields:null!=(s=e.events_with_invalid_fields)?s:{},eventsWithMissingFields:null!=(l=e.events_with_missing_fields)?l:{},eventsWithInvalidIdLengths:null!=(u=e.events_with_invalid_id_lengths)?u:{},epsThreshold:null!=(c=e.eps_threshold)?c:0,exceededDailyQuotaDevices:null!=(d=e.exceeded_daily_quota_devices)?d:{},silencedDevices:null!=(f=e.silenced_devices)?f:[],silencedEvents:null!=(h=e.silenced_events)?h:[],throttledDevices:null!=(p=e.throttled_devices)?p:{},throttledEvents:null!=(g=e.throttled_events)?g:[]}};case o.PayloadTooLarge:return{status:C,statusCode:k,body:{error:null!=(v=e.error)?v:""}};case o.RateLimit:return{status:C,statusCode:k,body:{error:null!=(m=e.error)?m:"",epsThreshold:null!=(b=e.eps_threshold)?b:0,throttledDevices:null!=(y=e.throttled_devices)?y:{},throttledUsers:null!=(x=e.throttled_users)?x:{},exceededDailyQuotaDevices:null!=(w=e.exceeded_daily_quota_devices)?w:{},exceededDailyQuotaUsers:null!=(S=e.exceeded_daily_quota_users)?S:{},throttledEvents:null!=(E=e.throttled_events)?E:[]}};case o.Timeout:default:return{status:C,statusCode:k}}},e.prototype.buildStatus=function(e){return e>=200&&e<300?o.Success:429===e?o.RateLimit:413===e?o.PayloadTooLarge:408===e?o.Timeout:e>=400&&e<500?o.Invalid:e>=500?o.Failed:o.Unknown},e}(),eQ=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return P(t,e),t.prototype.send=function(e,t){return N(this,void 0,void 0,function(){var r,n;return M(this,function(i){switch(i.label){case 0:if("undefined"==typeof fetch)throw Error("FetchTransport is not supported");return[4,fetch(e,{headers:{"Content-Type":"application/json",Accept:"*/*"},body:JSON.stringify(t),method:"POST"})];case 1:return[4,(r=i.sent()).text()];case 2:n=i.sent();try{return[2,this.buildResponse(JSON.parse(n))]}catch(e){return[2,this.buildResponse({code:r.status})]}}})})},t}(eX),eJ=function(){function e(e){this.storage=e}return e.prototype.isEnabled=function(){return N(this,void 0,void 0,function(){var t,r,n;return M(this,function(i){switch(i.label){case 0:if(!this.storage)return[2,!1];t=String(Date.now()),r=new e(this.storage),n="AMP_TEST",i.label=1;case 1:return i.trys.push([1,4,5,7]),[4,r.set(n,t)];case 2:return i.sent(),[4,r.get(n)];case 3:return[2,i.sent()===t];case 4:return i.sent(),[2,!1];case 5:return[4,r.remove(n)];case 6:return i.sent(),[7];case 7:return[2]}})})},e.prototype.get=function(e){return N(this,void 0,void 0,function(){var t;return M(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,this.getRaw(e)];case 1:if(!(t=r.sent()))return[2,void 0];return[2,JSON.parse(t)];case 2:return r.sent(),console.error("[Amplitude] Error: Could not get value from storage"),[2,void 0];case 3:return[2]}})})},e.prototype.getRaw=function(e){var t;return N(this,void 0,void 0,function(){return M(this,function(r){return[2,(null==(t=this.storage)?void 0:t.getItem(e))||void 0]})})},e.prototype.set=function(e,t){var r;return N(this,void 0,void 0,function(){return M(this,function(n){try{null==(r=this.storage)||r.setItem(e,JSON.stringify(t))}catch(e){}return[2]})})},e.prototype.remove=function(e){var t;return N(this,void 0,void 0,function(){return M(this,function(r){try{null==(t=this.storage)||t.removeItem(e)}catch(e){}return[2]})})},e.prototype.reset=function(){var e;return N(this,void 0,void 0,function(){return M(this,function(t){try{null==(e=this.storage)||e.clear()}catch(e){}return[2]})})},e}(),eZ=function(e){function t(t){var r,n,i,o=this;try{i=null==(r=z())?void 0:r.localStorage}catch(e){null==(n=null==t?void 0:t.loggerProvider)||n.debug("Failed to access localStorage. error=".concat(JSON.stringify(e))),i=void 0}return(o=e.call(this,i)||this).loggerProvider=null==t?void 0:t.loggerProvider,o}return P(t,e),t.prototype.set=function(t,r){var n;return N(this,void 0,void 0,function(){var i;return M(this,function(o){switch(o.label){case 0:if(!(Array.isArray(r)&&r.length>1e3))return[3,2];return i=r.length-1e3,[4,e.prototype.set.call(this,t,r.slice(0,1e3))];case 1:return o.sent(),null==(n=this.loggerProvider)||n.error("Failed to save ".concat(i," events because the queue length exceeded ").concat(1e3,".")),[3,4];case 2:return[4,e.prototype.set.call(this,t,r)];case 3:o.sent(),o.label=4;case 4:return[2]}})})},t}(eJ),e0=function(e){function t(){var t;return e.call(this,null==(t=z())?void 0:t.sessionStorage)||this}return P(t,e),t}(eJ),e1=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={done:4},t}return P(t,e),t.prototype.send=function(e,t){return N(this,void 0,void 0,function(){var r=this;return M(this,function(n){return[2,new Promise(function(n,i){"undefined"==typeof XMLHttpRequest&&i(Error("XHRTransport is not supported."));var o=new XMLHttpRequest;o.open("POST",e,!0),o.onreadystatechange=function(){if(o.readyState===r.state.done){var e=o.responseText;try{n(r.buildResponse(JSON.parse(e)))}catch(e){n(r.buildResponse({code:o.status}))}}},o.setRequestHeader("Content-Type","application/json"),o.setRequestHeader("Accept","*/*"),o.send(JSON.stringify(t))})]})})},t}(eX),e2=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return P(t,e),t.prototype.send=function(e,t){return N(this,void 0,void 0,function(){var r=this;return M(this,function(n){return[2,new Promise(function(n,i){var o=z();if(!(null==o?void 0:o.navigator.sendBeacon))throw Error("SendBeaconTransport is not supported");try{var a=JSON.stringify(t);if(o.navigator.sendBeacon(e,JSON.stringify(t)))return n(r.buildResponse({code:200,events_ingested:t.events.length,payload_size_bytes:a.length,server_upload_time:Date.now()}));return n(r.buildResponse({code:500}))}catch(e){i(e)}})]})})},t}(eX),e5=function(e){var t=parseInt(e,32);if(!isNaN(t))return t},e3=function(e){if(atob&&escape&&e)try{return decodeURIComponent(escape(atob(e)))}catch(e){return}},e4="[Amplitude]",e6="".concat(e4," Form Started"),e8="".concat(e4," Form Submitted"),e7="".concat(e4," File Downloaded"),e9="session_start",te="session_end",tt="".concat(e4," File Extension"),tr="".concat(e4," File Name"),tn="".concat(e4," Link ID"),ti="".concat(e4," Link Text"),to="".concat(e4," Link URL"),ta="".concat(e4," Form ID"),ts="".concat(e4," Form Name"),tl="".concat(e4," Form Destination"),tu="cookie",tc=function(e){function t(t,r,n,i,o,s,l,u,c,d,f,h,p,g,v,m,b,y,x,w,S,E,k,C,O,I,_,T,P,R,A,N,M,L,V){void 0===n&&(n=new e$),void 0===i&&(i={domain:"",expiration:365,sameSite:"Lax",secure:!1,upgrade:!0}),void 0===u&&(u=1e3),void 0===c&&(c=5),void 0===d&&(d=30),void 0===f&&(f=tu),void 0===m&&(m=new ec),void 0===b&&(b=a.Warn),void 0===x&&(x=!1),void 0===w&&(w=!1),void 0===k&&(k=""),void 0===C&&(C="US"),void 0===I&&(I=18e5),void 0===_&&(_=new eZ({loggerProvider:m})),void 0===T&&(T={ipAddress:!0,language:!0,platform:!0}),void 0===P&&(P="fetch"),void 0===R&&(R=!1),void 0===A&&(A=!0);var D=e.call(this,{apiKey:t,storageProvider:_,transportProvider:tf(P)})||this;return D.apiKey=t,D.appVersion=r,D.cookieOptions=i,D.defaultTracking=o,D.autocapture=s,D.flushIntervalMillis=u,D.flushMaxRetries=c,D.flushQueueSize=d,D.identityStorage=f,D.ingestionMetadata=h,D.instanceName=p,D.loggerProvider=m,D.logLevel=b,D.minIdLength=y,D.offline=x,D.partnerId=S,D.plan=E,D.serverUrl=k,D.serverZone=C,D.sessionTimeout=I,D.storageProvider=_,D.trackingOptions=T,D.transport=P,D.useBatch=R,D.fetchRemoteConfig=A,D.networkTrackingOptions=V,D.version=eH,D._optOut=!1,D._cookieStorage=n,D.deviceId=l,D.lastEventId=g,D.lastEventTime=v,D.optOut=w,D.sessionId=O,D.pageCounter=M,D.userId=N,D.debugLogsEnabled=L,D.loggerProvider.enable(L?a.Debug:D.logLevel),D.networkTrackingOptions=V,D}return P(t,e),Object.defineProperty(t.prototype,"cookieStorage",{get:function(){return this._cookieStorage},set:function(e){this._cookieStorage!==e&&(this._cookieStorage=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"deviceId",{get:function(){return this._deviceId},set:function(e){this._deviceId!==e&&(this._deviceId=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"userId",{get:function(){return this._userId},set:function(e){this._userId!==e&&(this._userId=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sessionId",{get:function(){return this._sessionId},set:function(e){this._sessionId!==e&&(this._sessionId=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"optOut",{get:function(){return this._optOut},set:function(e){this._optOut!==e&&(this._optOut=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastEventTime",{get:function(){return this._lastEventTime},set:function(e){this._lastEventTime!==e&&(this._lastEventTime=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastEventId",{get:function(){return this._lastEventId},set:function(e){this._lastEventId!==e&&(this._lastEventId=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pageCounter",{get:function(){return this._pageCounter},set:function(e){this._pageCounter!==e&&(this._pageCounter=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"debugLogsEnabled",{set:function(e){this._debugLogsEnabled!==e&&(this._debugLogsEnabled=e,this.updateStorage())},enumerable:!1,configurable:!0}),t.prototype.updateStorage=function(){var e={deviceId:this._deviceId,userId:this._userId,sessionId:this._sessionId,optOut:this._optOut,lastEventTime:this._lastEventTime,lastEventId:this._lastEventId,pageCounter:this._pageCounter,debugLogsEnabled:this._debugLogsEnabled};this.cookieStorage.set(eq(this.apiKey),e)},t}(ef),td=function(e,t){switch(void 0===e&&(e=tu),void 0===t&&(t={}),e){case"localStorage":return new eZ;case"sessionStorage":return new e0;case"none":return new e$;default:return new eG(R(R({},t),{expirationDays:t.expiration}))}},tf=function(e){return"xhr"===e?new e1:"beacon"===e?new e2:new eQ},th=function(){var e="ampIntegrationContext";return"undefined"!=typeof globalThis&&void 0!==globalThis[e]?globalThis[e]:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof self?self:void 0!==r.g?r.g:void 0},tp=function(){var e,t=th();return(null==(e=null==t?void 0:t.location)?void 0:e.search)?t.location.search.substring(1).split("&").filter(Boolean).reduce(function(e,t){var r=t.split("=",2),n=tg(r[0]),i=tg(r[1]);return i&&(e[n]=i),e},{}):{}},tg=function(e){void 0===e&&(e="");try{return decodeURIComponent(e)}catch(e){return""}},tv="dclid",tm="fbclid",tb="gbraid",ty="gclid",tx="ko_click_id",tw="li_fat_id",tS="msclkid",tE="rtd_cid",tk="ttclid",tC="twclid",tO="wbraid",tI={utm_campaign:void 0,utm_content:void 0,utm_id:void 0,utm_medium:void 0,utm_source:void 0,utm_term:void 0,referrer:void 0,referring_domain:void 0,dclid:void 0,gbraid:void 0,gclid:void 0,fbclid:void 0,ko_click_id:void 0,li_fat_id:void 0,msclkid:void 0,rtd_cid:void 0,ttclid:void 0,twclid:void 0,wbraid:void 0},t_=function(){function e(){}return e.prototype.parse=function(){return N(this,void 0,void 0,function(){return M(this,function(e){return[2,R(R(R(R({},tI),this.getUtmParam()),this.getReferrer()),this.getClickIds())]})})},e.prototype.getUtmParam=function(){var e=tp();return{utm_campaign:e.utm_campaign,utm_content:e.utm_content,utm_id:e.utm_id,utm_medium:e.utm_medium,utm_source:e.utm_source,utm_term:e.utm_term}},e.prototype.getReferrer=function(){var e,t,r={referrer:void 0,referring_domain:void 0};try{r.referrer=document.referrer||void 0,r.referring_domain=null!=(t=null==(e=r.referrer)?void 0:e.split("/")[2])?t:void 0}catch(e){}return r},e.prototype.getClickIds=function(){var e,t=tp();return(e={})[tv]=t[tv],e[tm]=t[tm],e[tb]=t[tb],e[ty]=t[ty],e[tx]=t[tx],e[tw]=t[tw],e[tS]=t[tS],e[tE]=t[tE],e[tk]=t[tk],e[tC]=t[tC],e[tO]=t[tO],e},e}();!function(e){e.SET="$set",e.SET_ONCE="$setOnce",e.ADD="$add",e.APPEND="$append",e.PREPEND="$prepend",e.REMOVE="$remove",e.PREINSERT="$preInsert",e.POSTINSERT="$postInsert",e.UNSET="$unset",e.CLEAR_ALL="$clearAll"}(d||(d={})),function(e){e.REVENUE_PRODUCT_ID="$productId",e.REVENUE_QUANTITY="$quantity",e.REVENUE_PRICE="$price",e.REVENUE_TYPE="$revenueType",e.REVENUE_CURRENCY="$currency",e.REVENUE="$revenue"}(f||(f={})),function(e){e.IDENTIFY="$identify",e.GROUP_IDENTIFY="$groupidentify",e.REVENUE="revenue_amount"}(h||(h={}));var tT=function(e){var t={};for(var r in e){var n=e[r];n&&(t[r]=n)}return t},tP=function(e){void 0===e&&(e={});var t,r,n=th(),i=void 0,o=!1,a=e.trackOn,s=e.trackHistoryChanges,l=e.eventType,u=void 0===l?"[Amplitude] Page Viewed":l,c=function(e){var t=e;try{t=decodeURI(e)}catch(e){null==i||i.error("Malformed URI sequence: ",e)}return t},d=function(){return N(void 0,void 0,void 0,function(){var e,t,r;return M(this,function(n){switch(n.label){case 0:return e=c("undefined"!=typeof location&&location.href||""),r={event_type:u},t=[{}],[4,tR()];case 1:return[2,(r.event_properties=R.apply(void 0,[R.apply(void 0,t.concat([n.sent()])),{"[Amplitude] Page Domain":"undefined"!=typeof location&&location.hostname||"","[Amplitude] Page Location":e,"[Amplitude] Page Path":"undefined"!=typeof location&&c(location.pathname)||"","[Amplitude] Page Title":"undefined"!=typeof document&&document.title||"","[Amplitude] Page URL":e.split("?")[0]}]),r)]}})})},f=function(){return void 0===a||"function"==typeof a&&a()},h="undefined"!=typeof location?location.href:null,p=function(){return N(void 0,void 0,void 0,function(){var e,r,n,o;return M(this,function(a){switch(a.label){case 0:if(r=tN(s,e=location.href,h||"")&&f(),h=e,!r)return[3,4];if(null==i||i.log("Tracking page view event"),null!=t)return[3,1];return[3,3];case 1:return o=(n=t).track,[4,d()];case 2:o.apply(n,[a.sent()]),a.label=3;case 3:a.label=4;case 4:return[2]}})})},g=function(){p()};return{name:"@amplitude/plugin-page-view-tracking-browser",type:"enrichment",setup:function(e,a){return N(void 0,void 0,void 0,function(){var s,l;return M(this,function(u){switch(u.label){case 0:if(t=a,r=e,(i=e.loggerProvider).log("Installing @amplitude/plugin-page-view-tracking-browser"),o=!0,n&&(n.addEventListener("popstate",g),n.history.pushState=new Proxy(n.history.pushState,{apply:function(e,t,r){var n=V(r,3),i=n[0],a=n[1],s=n[2];e.apply(t,[i,a,s]),o&&p()}})),!f())return[3,2];return i.log("Tracking page view event"),l=(s=t).track,[4,d()];case 1:l.apply(s,[u.sent()]),u.label=2;case 2:return[2]}})})},execute:function(e){return N(void 0,void 0,void 0,function(){var t;return M(this,function(n){switch(n.label){case 0:if(!("attribution"===a&&tA(e)))return[3,2];return null==i||i.log("Enriching campaign event to page view event with campaign parameters"),[4,d()];case 1:e.event_type=(t=n.sent()).event_type,e.event_properties=R(R({},e.event_properties),t.event_properties),n.label=2;case 2:return r&&e.event_type===u&&(r.pageCounter=r.pageCounter?r.pageCounter+1:1,e.event_properties=R(R({},e.event_properties),{"[Amplitude] Page Counter":r.pageCounter})),[2,e]}})})},teardown:function(){return N(void 0,void 0,void 0,function(){return M(this,function(e){return n&&(n.removeEventListener("popstate",g),o=!1),[2]})})}}},tR=function(){return N(void 0,void 0,void 0,function(){var e;return M(this,function(t){switch(t.label){case 0:return e=tT,[4,new t_().parse()];case 1:return[2,e.apply(void 0,[t.sent()])]}})})},tA=function(e){if("$identify"===e.event_type&&e.user_properties){var t=e.user_properties,r=t[d.SET]||{},n=t[d.UNSET]||{},i=D(D([],V(Object.keys(r)),!1),V(Object.keys(n)),!1);return Object.keys(tI).every(function(e){return i.includes(e)})}return!1},tN=function(e,t,r){if("pathOnly"!==e)return t!==r;if(""==r)return!0;var n=new URL(t),i=new URL(r);return n.origin+n.pathname!==i.origin+i.pathname},tM=function(){var e,t=[],r=function(e,r,n){e.addEventListener(r,n),t.push({element:e,type:r,handler:n})},n=function(){t.forEach(function(e){var t=e.element,r=e.type,n=e.handler;null==t||t.removeEventListener(r,n)}),t=[]};return{name:"@amplitude/plugin-form-interaction-tracking-browser",type:"enrichment",setup:function(t,n){return N(void 0,void 0,void 0,function(){var i,o;return M(this,function(a){return i=function(){if(!n)return void t.loggerProvider.warn("Form interaction tracking requires a later version of @amplitude/analytics-browser. Form interaction events are not tracked.");if("undefined"!=typeof document){var i=function(e){var t=!1;r(e,"change",function(){var r,i=tV(e);t||n.track(e6,((r={})[ta]=tL(e.id),r[ts]=tL(e.name),r[tl]=i,r)),t=!0}),r(e,"submit",function(){var r,i,o=tV(e);t||n.track(e6,((r={})[ta]=tL(e.id),r[ts]=tL(e.name),r[tl]=o,r)),n.track(e8,((i={})[ta]=tL(e.id),i[ts]=tL(e.name),i[tl]=o,i)),t=!1})};Array.from(document.getElementsByTagName("form")).forEach(i),"undefined"!=typeof MutationObserver&&(e=new MutationObserver(function(e){e.forEach(function(e){e.addedNodes.forEach(function(e){"FORM"===e.nodeName&&i(e),"querySelectorAll"in e&&"function"==typeof e.querySelectorAll&&Array.from(e.querySelectorAll("form")).map(i)})})})).observe(document.body,{subtree:!0,childList:!0})}},"complete"===document.readyState?i():(o=z())?o.addEventListener("load",i):t.loggerProvider.debug("Form interaction tracking is not installed because global is undefined."),[2]})})},execute:function(e){return N(void 0,void 0,void 0,function(){return M(this,function(t){return[2,e]})})},teardown:function(){return N(void 0,void 0,void 0,function(){return M(this,function(t){return null==e||e.disconnect(),n(),[2]})})}}},tL=function(e){if("string"==typeof e)return e},tV=function(e){var t=e.getAttribute("action");try{t=new URL(encodeURI(null!=t?t:""),window.location.href).href}catch(e){}return t},tD=function(){var e,t=[],r=function(e,r,n){e.addEventListener(r,n),t.push({element:e,type:r,handler:n})},n=function(){t.forEach(function(e){var t=e.element,r=e.type,n=e.handler;null==t||t.removeEventListener(r,n)}),t=[]};return{name:"@amplitude/plugin-file-download-tracking-browser",type:"enrichment",setup:function(t,n){return N(void 0,void 0,void 0,function(){var i,o;return M(this,function(a){return i=function(){if(!n)return void t.loggerProvider.warn("File download tracking requires a later version of @amplitude/analytics-browser. File download events are not tracked.");if("undefined"!=typeof document){var i=function(e){try{t=new URL(e.href,window.location.href)}catch(e){return}var t,i=o.exec(t.href),a=null==i?void 0:i[1];a&&r(e,"click",function(){var r;a&&n.track(e7,((r={})[tt]=a,r[tr]=t.pathname,r[tn]=e.id,r[ti]=e.text,r[to]=e.href,r))})},o=/\.(pdf|xlsx?|docx?|txt|rtf|csv|exe|key|pp(s|t|tx)|7z|pkg|rar|gz|zip|avi|mov|mp4|mpe?g|wmv|midi?|mp3|wav|wma)(\?.+)?$/;Array.from(document.getElementsByTagName("a")).forEach(i),"undefined"!=typeof MutationObserver&&(e=new MutationObserver(function(e){e.forEach(function(e){e.addedNodes.forEach(function(e){"A"===e.nodeName&&i(e),"querySelectorAll"in e&&"function"==typeof e.querySelectorAll&&Array.from(e.querySelectorAll("a")).map(i)})})})).observe(document.body,{subtree:!0,childList:!0})}},"complete"===document.readyState?i():(o=z())?o.addEventListener("load",i):t.loggerProvider.debug("File download tracking is not installed because global is undefined."),[2]})})},execute:function(e){return N(void 0,void 0,void 0,function(){return M(this,function(t){return[2,e]})})},teardown:function(){return N(void 0,void 0,void 0,function(){return M(this,function(t){return null==e||e.disconnect(),n(),[2]})})}}},tF=!1,tj=function(e){tF||void 0!==e.defaultTracking||(e.loggerProvider.warn("`options.defaultTracking` is set to undefined. This implicitly configures your Amplitude instance to track Page Views, Sessions, File Downloads, and Form Interactions. You can suppress this warning by explicitly setting a value to `options.defaultTracking`. The value must either be a boolean, to enable and disable all default events, or an object, for advanced configuration. For example:\n\namplitude.init(<YOUR_API_KEY>, {\n defaultTracking: true,\n});\n\nVisit https://www.docs.developers.amplitude.com/data/sdks/browser-2/#tracking-default-events for more details."),tF=!0)},tz=function(){var e=z(),t=[],r=function(r,n){e&&(e.addEventListener(r,n),t.push({type:r,handler:n}))},n=function(){t.forEach(function(t){var r=t.type,n=t.handler;e&&e.removeEventListener(r,n)}),t=[]};return{name:"@amplitude/plugin-network-checker-browser",type:"before",setup:function(e,t){return N(void 0,void 0,void 0,function(){return M(this,function(n){return"undefined"==typeof navigator?(e.loggerProvider.debug("Network connectivity checker plugin is disabled because navigator is not available."),e.offline=!1):(e.offline=!navigator.onLine,r("online",function(){e.loggerProvider.debug("Network connectivity changed to online."),e.offline=!1,setTimeout(function(){t.flush()},e.flushIntervalMillis)}),r("offline",function(){e.loggerProvider.debug("Network connectivity changed to offline."),e.offline=!0})),[2]})})},teardown:function(){return N(void 0,void 0,void 0,function(){return M(this,function(e){return n(),[2]})})}}};!function(e){e.Unknown="unknown",e.Skipped="skipped",e.Success="success",e.RateLimit="rate_limit",e.PayloadTooLarge="payload_too_large",e.Invalid="invalid",e.Failed="failed",e.Timeout="Timeout",e.SystemError="SystemError"}(p||(p={})),function(e){e.US="US",e.EU="EU"}(g||(g={}));var tB="Remote config fetch rejected due to timeout after 5 seconds",tU="Unexpected error occurred",tH=function(){function e(e){var t=e.localConfig,r=e.configKeys,n=this;this.retryTimeout=1e3,this.attempts=0,this.sessionTargetingMatch=!1,this.metrics={},this.getRemoteConfig=function(e,t,r){return N(n,void 0,void 0,function(){var n,i,o;return M(this,function(a){switch(a.label){case 0:return n=Date.now(),[4,this.fetchWithTimeout(r)];case 1:if((i=a.sent())&&(o=i.configs&&i.configs[e]))return this.metrics.fetchTimeAPISuccess=Date.now()-n,[2,o[t]];return this.metrics.fetchTimeAPIFail=Date.now()-n,[2,void 0]}})})},this.fetchWithTimeout=function(e){return N(n,void 0,void 0,function(){var t,r,n;return M(this,function(i){switch(i.label){case 0:return t=new AbortController,r=setTimeout(function(){return t.abort()},5e3),[4,this.fetchRemoteConfig(t.signal,e)];case 1:return n=i.sent(),clearTimeout(r),[2,n]}})})},this.fetchRemoteConfig=function(e,t){return N(n,void 0,void 0,function(){var r,n,i,o,a,s,l,u,c,d,f;return M(this,function(h){switch(h.label){case 0:if(t===this.lastFetchedSessionId&&this.attempts>=this.localConfig.flushMaxRetries)return[2,this.completeRequest({err:"Remote config fetch rejected due to exceeded retry count"})];if(e.aborted)return[2,this.completeRequest({err:tB})];t!==this.lastFetchedSessionId&&(this.lastFetchedSessionId=t,this.attempts=0);h.label=1;case 1:h.trys.push([1,3,,4]),r=new URLSearchParams({api_key:this.localConfig.apiKey});try{for(i=(n=L(this.configKeys)).next();!i.done;i=n.next())o=i.value,r.append("config_keys",o)}catch(e){c={error:e}}finally{try{i&&!i.done&&(d=n.return)&&d.call(n)}finally{if(c)throw c.error}}return t&&r.set("session_id",String(t)),a={headers:{Accept:"*/*"},method:"GET"},s="".concat(this.getServerUrl(),"?").concat(r.toString()),this.attempts+=1,[4,fetch(s,R(R({},a),{signal:e}))];case 2:if(null===(l=h.sent()))return[2,this.completeRequest({err:tU})];switch(new eX().buildStatus(l.status)){case p.Success:return this.attempts=0,[2,this.parseAndStoreConfig(l)];case p.Failed:return[2,this.retryFetch(e,t)];default:return[2,this.completeRequest({err:"Network error occurred, remote config fetch failed"})]}case 3:if(u=h.sent(),e.aborted)return[2,this.completeRequest({err:tB})];return[2,this.completeRequest({err:null!=(f=u.message)?f:tU})];case 4:return[2]}})})},this.retryFetch=function(e,t){return N(n,void 0,void 0,function(){var r=this;return M(this,function(n){switch(n.label){case 0:return[4,new Promise(function(e){return setTimeout(e,r.attempts*r.retryTimeout)})];case 1:return n.sent(),[2,this.fetchRemoteConfig(e,t)]}})})},this.parseAndStoreConfig=function(e){return N(n,void 0,void 0,function(){var t;return M(this,function(r){switch(r.label){case 0:return[4,e.json()];case 1:return t=r.sent(),this.completeRequest({success:"Remote config successfully fetched"}),[2,t]}})})},this.localConfig=t,this.configKeys=r}return e.prototype.getServerUrl=function(){return this.localConfig.serverZone===g.STAGING?"https://sr-client-cfg.stag2.amplitude.com/config":this.localConfig.serverZone===g.EU?"https://sr-client-cfg.eu.amplitude.com/config":"https://sr-client-cfg.amplitude.com/config"},e.prototype.completeRequest=function(e){var t=e.err,r=e.success;if(t)throw Error(t);r&&this.localConfig.loggerProvider.log(r)},e}(),tW=function(e){var t=e.localConfig,r=e.configKeys;return N(void 0,void 0,void 0,function(){return M(this,function(e){return[2,new tH({localConfig:t,configKeys:r})]})})},t$=function(){function e(e){this.config=e,this.config.loggerProvider.debug("Local configuration before merging with remote config",JSON.stringify(this.config,null,2))}return e.prototype.initialize=function(){return N(this,void 0,void 0,function(){var e;return M(this,function(t){switch(t.label){case 0:return e=this,[4,tW({localConfig:this.config,configKeys:["analyticsSDK"]})];case 1:return e.remoteConfigFetch=t.sent(),[2]}})})},e.prototype.generateJoinedConfig=function(){var e,t,r,n,i;return N(this,void 0,void 0,function(){var o,a,s,l,u,c,d,f,h,p,g,v;return M(this,function(m){switch(m.label){case 0:if(m.trys.push([0,3,,4]),!(a=this.remoteConfigFetch))return[3,2];return[4,this.remoteConfigFetch.getRemoteConfig("analyticsSDK","browserSDK",this.config.sessionId)];case 1:a=m.sent(),m.label=2;case 2:if(o=a,this.config.loggerProvider.debug("Remote configuration:",JSON.stringify(o,null,2)),o&&"autocapture"in o){if("boolean"==typeof o.autocapture&&(this.config.autocapture=o.autocapture),"object"==typeof o.autocapture){if(s=R({},o.autocapture),void 0===this.config.autocapture&&(this.config.autocapture=o.autocapture),"object"==typeof o.autocapture.elementInteractions&&(null==(e=o.autocapture.elementInteractions.pageUrlAllowlistRegex)?void 0:e.length)){s.elementInteractions=R({},o.autocapture.elementInteractions),u=null!=(t=(l=s.elementInteractions).pageUrlAllowlist)?t:[],c=[];try{for(f=(d=L(o.autocapture.elementInteractions.pageUrlAllowlistRegex)).next();!f.done;f=d.next()){h=f.value;try{c.push(new RegExp(h))}catch(e){this.config.loggerProvider.warn("Invalid regex pattern: ".concat(h),e)}}}catch(e){g={error:e}}finally{try{f&&!f.done&&(v=d.return)&&v.call(d)}finally{if(g)throw g.error}}l.pageUrlAllowlist=u.concat(c),delete l.pageUrlAllowlistRegex}"boolean"==typeof this.config.autocapture&&(this.config.autocapture=R({attribution:this.config.autocapture,fileDownloads:this.config.autocapture,formInteractions:this.config.autocapture,pageViews:this.config.autocapture,sessions:this.config.autocapture,elementInteractions:this.config.autocapture},s)),"object"==typeof this.config.autocapture&&(this.config.autocapture=R(R({},this.config.autocapture),s))}this.config.defaultTracking=this.config.autocapture}return this.config.loggerProvider.debug("Joined configuration: ",JSON.stringify(this.config,null,2)),null!=(i=this.config).requestMetadata||(i.requestMetadata=new ep),(null==(r=this.remoteConfigFetch)?void 0:r.metrics.fetchTimeAPISuccess)&&this.config.requestMetadata.recordHistogram("remote_config_fetch_time_API_success",this.remoteConfigFetch.metrics.fetchTimeAPISuccess),(null==(n=this.remoteConfigFetch)?void 0:n.metrics.fetchTimeAPIFail)&&this.config.requestMetadata.recordHistogram("remote_config_fetch_time_API_fail",this.remoteConfigFetch.metrics.fetchTimeAPIFail),[3,4];case 3:return p=m.sent(),this.config.loggerProvider.error("Failed to fetch remote configuration because of error: ",p),[3,4];case 4:return[2,this.config]}})})},e}(),tq=["a","button","input","select","textarea","label","video","audio",'[contenteditable="true" i]',"[data-amp-default-track]",".amp-default-track"],tG=["div","span","h1","h2","h3","h4","h5","h6"],tK="[Amplitude] Element Clicked",tY="[Amplitude] Element Tag",tX="[Amplitude] Element Text",tQ="[Amplitude] Page URL",tJ="https://app.amplitude.com",tZ={US:tJ,EU:"https://app.eu.amplitude.com",STAGING:"https://apps.stag2.amplitude.com"},t0=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e};function t1(e){return"function"==typeof e}function t2(e){return t1(null==e?void 0:e.then)}function t5(e){var t=e(function(e){Error.call(e),e.stack=Error().stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var t3=t5(function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map(function(e,t){return t+1+") "+e.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=t}});function t4(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var t6=function(){var e;function t(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return t.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var e,t,r,n,i,o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var a=L(o),s=a.next();!s.done;s=a.next())s.value.remove(this)}catch(t){e={error:t}}finally{try{s&&!s.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}else o.remove(this);var l=this.initialTeardown;if(t1(l))try{l()}catch(e){i=e instanceof t3?e.errors:[e]}var u=this._finalizers;if(u){this._finalizers=null;try{for(var c=L(u),d=c.next();!d.done;d=c.next()){var f=d.value;try{t9(f)}catch(e){i=null!=i?i:[],e instanceof t3?i=D(D([],V(i)),V(e.errors)):i.push(e)}}}catch(e){r={error:e}}finally{try{d&&!d.done&&(n=c.return)&&n.call(c)}finally{if(r)throw r.error}}}if(i)throw new t3(i)}},t.prototype.add=function(e){var r;if(e&&e!==this)if(this.closed)t9(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!=(r=this._finalizers)?r:[]).push(e)}},t.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},t.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},t.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&t4(t,e)},t.prototype.remove=function(e){var r=this._finalizers;r&&t4(r,e),e instanceof t&&e._removeParent(this)},(e=new t).closed=!0,t.EMPTY=e,t}(),t8=t6.EMPTY;function t7(e){return e instanceof t6||e&&"closed"in e&&t1(e.remove)&&t1(e.add)&&t1(e.unsubscribe)}function t9(e){t1(e)?e():e.unsubscribe()}var re={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},rt={setTimeout:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=rt.delegate;return(null==i?void 0:i.setTimeout)?i.setTimeout.apply(i,D([e,t],V(r))):setTimeout.apply(void 0,D([e,t],V(r)))},clearTimeout:function(e){var t=rt.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function rr(e){rt.setTimeout(function(){var t=re.onUnhandledError;if(t)t(e);else throw e})}function rn(){}var ri=ro("C",void 0,void 0);function ro(e,t,r){return{kind:e,value:t,error:r}}var ra=null;function rs(e){if(re.useDeprecatedSynchronousErrorHandling){var t=!ra;if(t&&(ra={errorThrown:!1,error:null}),e(),t){var r=ra,n=r.errorThrown,i=r.error;if(ra=null,n)throw i}}else e()}var rl=function(e){function t(t){var r=e.call(this)||this;return r.isStopped=!1,t?(r.destination=t,t7(t)&&t.add(r)):r.destination=rg,r}return P(t,e),t.create=function(e,t,r){return new rf(e,t,r)},t.prototype.next=function(e){this.isStopped?rp(ro("N",e,void 0),this):this._next(e)},t.prototype.error=function(e){this.isStopped?rp(ro("E",void 0,e),this):(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped?rp(ri,this):(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(t6),ru=Function.prototype.bind;function rc(e,t){return ru.call(e,t)}var rd=function(){function e(e){this.partialObserver=e}return e.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){rh(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){rh(e)}else rh(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){rh(e)}},e}(),rf=function(e){function t(t,r,n){var i,o,a=e.call(this)||this;return t1(t)||!t?i={next:null!=t?t:void 0,error:null!=r?r:void 0,complete:null!=n?n:void 0}:a&&re.useDeprecatedNextContext?((o=Object.create(t)).unsubscribe=function(){return a.unsubscribe()},i={next:t.next&&rc(t.next,o),error:t.error&&rc(t.error,o),complete:t.complete&&rc(t.complete,o)}):i=t,a.destination=new rd(i),a}return P(t,e),t}(rl);function rh(e){if(re.useDeprecatedSynchronousErrorHandling)re.useDeprecatedSynchronousErrorHandling&&ra&&(ra.errorThrown=!0,ra.error=e);else rr(e)}function rp(e,t){var r=re.onStoppedNotification;r&&rt.setTimeout(function(){return r(e,t)})}var rg={closed:!0,next:rn,error:function(e){throw e},complete:rn},rv="function"==typeof Symbol&&Symbol.observable||"@@observable";function rm(e){return e}var rb=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(e,t,r){var n=this,i=!function(e){return e&&e instanceof rl||e&&t1(e.next)&&t1(e.error)&&t1(e.complete)&&t7(e)}(e)?new rf(e,t,r):e;return rs(function(){var e=n.operator,t=n.source;i.add(e?e.call(i,t):t?n._subscribe(i):n._trySubscribe(i))}),i},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,t){var r=this;return new(t=ry(t))(function(t,n){var i=new rf({next:function(t){try{e(t)}catch(e){n(e),i.unsubscribe()}},error:n,complete:t});r.subscribe(i)})},e.prototype._subscribe=function(e){var t;return null==(t=this.source)?void 0:t.subscribe(e)},e.prototype[rv]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0===e.length?rm:1===e.length?e[0]:function(t){return e.reduce(function(e,t){return t(e)},t)})(this)},e.prototype.toPromise=function(e){var t=this;return new(e=ry(e))(function(e,r){var n;t.subscribe(function(e){return n=e},function(e){return r(e)},function(){return e(n)})})},e.create=function(t){return new e(t)},e}();function ry(e){var t;return null!=(t=null!=e?e:re.Promise)?t:Promise}function rx(e){return Symbol.asyncIterator&&t1(null==e?void 0:e[Symbol.asyncIterator])}function rw(e){return TypeError("You provided "+(null!==e&&"object"==typeof e?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}var rS="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator";function rE(e){return t1(null==e?void 0:e[rS])}function rk(e){return function(e,t,r){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var n,i=r.apply(e,t||[]),o=[];return n=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",function(e){return function(t){return Promise.resolve(t).then(e,u)}}),n[Symbol.asyncIterator]=function(){return this},n;function a(e,t){i[e]&&(n[e]=function(t){return new Promise(function(r,n){o.push([e,t,r,n])>1||s(e,t)})},t&&(n[e]=t(n[e])))}function s(e,t){try{var r;(r=i[e](t)).value instanceof F?Promise.resolve(r.value.v).then(l,u):c(o[0][2],r)}catch(e){c(o[0][3],e)}}function l(e){s("next",e)}function u(e){s("throw",e)}function c(e,t){e(t),o.shift(),o.length&&s(o[0][0],o[0][1])}}(this,arguments,function(){var t,r,n;return M(this,function(i){switch(i.label){case 0:t=e.getReader(),i.label=1;case 1:i.trys.push([1,,9,10]),i.label=2;case 2:return[4,F(t.read())];case 3:if(n=(r=i.sent()).value,!r.done)return[3,5];return[4,F(void 0)];case 4:return[2,i.sent()];case 5:return[4,F(n)];case 6:return[4,i.sent()];case 7:return i.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}})})}function rC(e){return t1(null==e?void 0:e.getReader)}function rO(e){if(e instanceof rb)return e;if(null!=e){var t,r,n,i;if(t1(e[rv])){return t=e,new rb(function(e){var r=t[rv]();if(t1(r.subscribe))return r.subscribe(e);throw TypeError("Provided object does not correctly implement Symbol.observable")})}if(t0(e)){return r=e,new rb(function(e){for(var t=0;t<r.length&&!e.closed;t++)e.next(r[t]);e.complete()})}if(t2(e)){return n=e,new rb(function(e){n.then(function(t){e.closed||(e.next(t),e.complete())},function(t){return e.error(t)}).then(null,rr)})}if(rx(e))return rI(e);if(rE(e)){return i=e,new rb(function(e){var t,r;try{for(var n=L(i),o=n.next();!o.done;o=n.next()){var a=o.value;if(e.next(a),e.closed)return}}catch(e){t={error:e}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}e.complete()})}if(rC(e))return rI(rk(e))}throw rw(e)}function rI(e){return new rb(function(t){(function(e,t){var r,n,i,o;return N(this,void 0,void 0,function(){var a;return M(this,function(s){switch(s.label){case 0:s.trys.push([0,5,6,11]),r=function(e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=L(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise(function(n,i){var o,a,s;o=n,a=i,s=(t=e[r](t)).done,Promise.resolve(t.value).then(function(e){o({value:e,done:s})},a)})}}}(e),s.label=1;case 1:return[4,r.next()];case 2:if((n=s.sent()).done)return[3,4];if(a=n.value,t.next(a),t.closed)return[2];s.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return i={error:s.sent()},[3,11];case 6:if(s.trys.push([6,,9,10]),!(n&&!n.done&&(o=r.return)))return[3,8];return[4,o.call(r)];case 7:s.sent(),s.label=8;case 8:return[3,10];case 9:if(i)throw i.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})})})(e,t).catch(function(e){return t.error(e)})})}function r_(e){return function(t){if(t1(null==t?void 0:t.lift))return t.lift(function(t){try{return e(t,this)}catch(e){this.error(e)}});throw TypeError("Unable to lift unknown Observable type")}}function rT(e,t,r,n,i){return new rP(e,t,r,n,i)}var rP=function(e){function t(t,r,n,i,o,a){var s=e.call(this,t)||this;return s.onFinalize=o,s.shouldUnsubscribe=a,s._next=r?function(e){try{r(e)}catch(e){t.error(e)}}:e.prototype._next,s._error=i?function(e){try{i(e)}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._error,s._complete=n?function(){try{n()}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._complete,s}return P(t,e),t.prototype.unsubscribe=function(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var r=this.closed;e.prototype.unsubscribe.call(this),r||null==(t=this.onFinalize)||t.call(this)}},t}(rl);function rR(e,t){return r_(function(r,n){var i=0;r.subscribe(rT(n,function(r){n.next(e.call(t,r,i++))}))})}function rA(e,t,r,n,i){void 0===n&&(n=0),void 0===i&&(i=!1);var o=t.schedule(function(){r(),i?e.add(this.schedule(null,n)):this.unsubscribe()},n);if(e.add(o),!i)return o}function rN(e,t,r){return(void 0===r&&(r=1/0),t1(t))?rN(function(r,n){return rR(function(e,i){return t(r,e,n,i)})(rO(e(r,n)))},r):("number"==typeof t&&(r=t),r_(function(t,n){var i,o,a,s,l,u,c,d,f;return i=r,a=[],s=0,l=0,u=!1,c=function(){!u||a.length||s||n.complete()},d=function(e){return s<i?f(e):a.push(e)},f=function(t){s++;var r=!1;rO(e(t,l++)).subscribe(rT(n,function(e){o?d(e):n.next(e)},function(){r=!0},void 0,function(){if(r)try{for(s--;a.length&&s<i;)!function(){var e=a.shift();f(e)}();c()}catch(e){n.error(e)}}))},t.subscribe(rT(n,d,function(){u=!0,c()})),function(){}}))}var rM=Array.isArray,rL=["addListener","removeListener"],rV=["addEventListener","removeEventListener"],rD=["on","off"];function rF(e,t,r,n){if(t1(r)&&(n=r,r=void 0),n){return rF(e,t,r).pipe((i=n,rR(function(e){return rM(e)?i.apply(void 0,D([],V(e))):i(e)})))}var i,o,a,s,l=V(t1((o=e).addEventListener)&&t1(o.removeEventListener)?rV.map(function(n){return function(i){return e[n](t,i,r)}}):t1((a=e).addListener)&&t1(a.removeListener)?rL.map(rj(e,t)):t1((s=e).on)&&t1(s.off)?rD.map(rj(e,t)):[],2),u=l[0],c=l[1];if(!u&&t0(e))return rN(function(e){return rF(e,t,r)})(rO(e));if(!u)throw TypeError("Invalid event target");return new rb(function(e){var t=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e.next(1<t.length?t:t[0])};return u(t),function(){return c(t)}})}function rj(e,t){return function(r){return function(n){return e[r](t,n)}}}var rz=t5(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),rB=function(e){function t(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return P(t,e),t.prototype.lift=function(e){var t=new rU(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new rz},t.prototype.next=function(e){var t=this;rs(function(){var r,n;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var i=L(t.currentObservers),o=i.next();!o.done;o=i.next())o.value.next(e)}catch(e){r={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}}})},t.prototype.error=function(e){var t=this;rs(function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var r=t.observers;r.length;)r.shift().error(e)}})},t.prototype.complete=function(){var e=this;rs(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return(null==(e=this.observers)?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,r=this.hasError,n=this.isStopped,i=this.observers;return r||n?t8:(this.currentObservers=null,i.push(e),new t6(function(){t.currentObservers=null,t4(i,e)}))},t.prototype._checkFinalizedStatuses=function(e){var t=this.hasError,r=this.thrownError,n=this.isStopped;t?e.error(r):n&&e.complete()},t.prototype.asObservable=function(){var e=new rb;return e.source=this,e},t.create=function(e,t){return new rU(e,t)},t}(rb),rU=function(e){function t(t,r){var n=e.call(this)||this;return n.destination=t,n.source=r,n}return P(t,e),t.prototype.next=function(e){var t,r;null==(r=null==(t=this.destination)?void 0:t.next)||r.call(t,e)},t.prototype.error=function(e){var t,r;null==(r=null==(t=this.destination)?void 0:t.error)||r.call(t,e)},t.prototype.complete=function(){var e,t;null==(t=null==(e=this.destination)?void 0:e.complete)||t.call(e)},t.prototype._subscribe=function(e){var t,r;return null!=(r=null==(t=this.source)?void 0:t.subscribe(e))?r:t8},t}(rB);function rH(e){void 0===e&&(e={});var t=e.connector,r=void 0===t?function(){return new rB}:t,n=e.resetOnError,i=void 0===n||n,o=e.resetOnComplete,a=void 0===o||o,s=e.resetOnRefCountZero,l=void 0===s||s;return function(e){var t,n,o,s=0,u=!1,c=!1,d=function(){null==n||n.unsubscribe(),n=void 0},f=function(){d(),t=o=void 0,u=c=!1},h=function(){var e=t;f(),null==e||e.unsubscribe()};return r_(function(e,p){s++,c||u||d();var g=o=null!=o?o:r();p.add(function(){0!=--s||c||u||(n=rW(h,l))}),g.subscribe(p),!t&&s>0&&(t=new rf({next:function(e){return g.next(e)},error:function(e){c=!0,d(),n=rW(f,i,e),g.error(e)},complete:function(){u=!0,d(),n=rW(f,a),g.complete()}}),rO(e).subscribe(t))})(e)}}function rW(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];if(!0===t)return void e();if(!1!==t){var i=new rf({next:function(){i.unsubscribe(),e()}});return rO(t.apply(void 0,D([],V(r)))).subscribe(i)}}var r$=["input","select","textarea"],rq=function(e,t){return function(r,n){var i,o,a,s=e.pageUrlAllowlist,l=e.shouldTrackEventResolver,u=null==(o=null==(i=null==n?void 0:n.tagName)?void 0:i.toLowerCase)?void 0:o.call(i);if(!u)return!1;if(l)return l(r,n);if(!rX(window.location.href,s))return!1;var c=String(null==n?void 0:n.getAttribute("type"))||"";if("string"==typeof c)switch(c.toLowerCase()){case"hidden":case"password":return!1}if(t&&!t.some(function(e){var t;return!!(null==(t=null==n?void 0:n.matches)?void 0:t.call(n,e))}))return!1;switch(u){case"input":case"select":case"textarea":return"change"===r||"click"===r;default:var d=null==(a=null==window?void 0:window.getComputedStyle)?void 0:a.call(window,n);if(d&&"pointer"===d.getPropertyValue("cursor")&&"click"===r)return!0;return"click"===r}}},rG=function(e){if(null==e)return!1;if("string"==typeof e&&(/^(?:(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11}))$/.test((e||"").replace(/[- ]/g,""))||/(^\d{3}-?\d{2}-?\d{4}$)/.test(e)))return!1;return!0},rK=function(e){var t,r,n,i=null==(r=null==(t=null==e?void 0:e.tagName)?void 0:t.toLowerCase)?void 0:r.call(t),o=e instanceof HTMLElement&&(null==(n=e.getAttribute("contenteditable"))?void 0:n.toLowerCase())==="true";return!r$.includes(i)&&!o},rY=function(e){var t="";return rK(e)&&e.childNodes&&e.childNodes.length&&e.childNodes.forEach(function(e){var r="";e&&3===e.nodeType?e.textContent&&(r=e.textContent):r=rY(e),t+=r.split(/(\s+)/).filter(rG).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255)}),t},rX=function(e,t){return!t||!t.length||t.some(function(t){return"string"==typeof t?e===t:e.match(t)})},rQ=function(e){return Object.keys(e).reduce(function(t,r){var n=e[r];return null!=n&&("object"!=typeof n||0!==Object.keys(n).length)&&("string"!=typeof n||0!==n.trim().length)&&(t[r]=n),t},{})},rJ=function(e){var t,r=e.parentElement;if(!r)return"";try{t=r.querySelector(":scope>span,h1,h2,h3,h4,h5,h6")}catch(e){t=null}if(t){var n=t.textContent||"";return rG(n)?n:""}return rJ(r)},rZ=function(e,t){return e?t.some(function(t){var r;return null==(r=null==e?void 0:e.matches)?void 0:r.call(e,t)})?e:rZ(null==e?void 0:e.parentElement,t):null},r0=function(e){if(!e)return{};var t,r,n,i=null==(n=null==(r=null==e?void 0:e.tagName)?void 0:r.toLowerCase)?void 0:n.call(r);return rQ(((t={})[tY]=i,t[tX]=rY(e),t[tQ]=window.location.href.split("?")[0],t))},r1=function(e){return null!==e.event.target&&!!e.closestTrackedAncestor},r2=function(){function e(e){var t=(void 0===e?{}:e).origin,r=this;this.endpoint=tJ,this.requestCallbacks={},this.onSelect=function(e){r.notify({action:"element-selected",data:e})},this.onTrack=function(e,t){"selector-mode-changed"===e?r.notify({action:"track-selector-mode-changed",data:t}):"selector-moved"===e&&r.notify({action:"track-selector-moved",data:t})},this.endpoint=void 0===t?tJ:t}return e.prototype.notify=function(e){var t,r,n,i;null==(r=null==(t=this.logger)?void 0:t.debug)||r.call(t,"Message sent: ",JSON.stringify(e)),null==(i=null==(n=window.opener)?void 0:n.postMessage)||i.call(n,e,this.endpoint)},e.prototype.sendRequest=function(e,t,r){var n=this;void 0===r&&(r={timeout:15e3});var i="".concat(Date.now(),"-").concat(Math.random().toString(36).substr(2,9)),o={id:i,action:e,args:t};return new Promise(function(t,a){n.requestCallbacks[i]={resolve:t,reject:a},n.notify(o),(null==r?void 0:r.timeout)>0&&setTimeout(function(){a(Error("".concat(e," timed out (id: ").concat(i,")"))),delete n.requestCallbacks[i]},r.timeout)})},e.prototype.handleResponse=function(e){var t;if(!this.requestCallbacks[e.id]){null==(t=this.logger)||t.warn("No callback found for request id: ".concat(e.id));return}this.requestCallbacks[e.id].resolve(e.responseData),delete this.requestCallbacks[e.id]},e.prototype.setup=function(e){var t=this,r=void 0===e?{}:e,n=r.logger,i=r.endpoint,o=r.isElementSelectable,a=r.cssSelectorAllowlist,s=r.actionClickAllowlist;this.logger=n,i&&this.endpoint===tJ&&(this.endpoint=i);var l=null;window.addEventListener("message",function(e){if(null==(n=null==(r=t.logger)?void 0:r.debug)||n.call(r,"Message received: ",JSON.stringify(e)),t.endpoint===e.origin){var r,n,i,u,c,d=null==e?void 0:e.data,f=null==d?void 0:d.action;if(f)if("id"in d)null==(u=null==(i=t.logger)?void 0:i.debug)||u.call(i,"Received Response to previous request: ",JSON.stringify(e)),t.handleResponse(d);else if("ping"===f)t.notify({action:"pong"});else if("initialize-visual-tagging-selector"===f){var h,p=null==d?void 0:d.data;(h="https://cdn.amplitude.com/libs/visual-tagging-selector-1.0.0-alpha.js.gz",new Promise(function(e,t){var r;try{var n=document.createElement("script");n.type="text/javascript",n.async=!0,n.src=h,n.addEventListener("load",function(){e({status:!0})},{once:!0}),n.addEventListener("error",function(){t({status:!1,message:"Failed to load the script ".concat(h)})}),null==(r=document.head)||r.appendChild(n)}catch(e){t(e)}})).then(function(){var e;l=null==(e=null==window?void 0:window.amplitudeVisualTaggingSelector)?void 0:e.call(window,{getEventTagProps:r0,isElementSelectable:function(e){return!o||o((null==p?void 0:p.actionType)||"click",e)},onTrack:t.onTrack,onSelect:t.onSelect,visualHighlightClass:"amp-visual-tagging-selector-highlight",messenger:t,cssSelectorAllowlist:a,actionClickAllowlist:s}),t.notify({action:"selector-loaded"})}).catch(function(){var e;null==(e=t.logger)||e.warn("Failed to initialize visual tagging selector")})}else"close-visual-tagging-selector"===f&&(null==(c=null==l?void 0:l.close)||c.call(l))}}),this.notify({action:"page-loaded"})},e}(),r5=["id","class","style","value","onclick","onchange","oninput","onblur","onsubmit","onfocus","onkeydown","onkeyup","onkeypress","data-reactid","data-react-checksum","data-reactroot"],r3=["type"],r4=["svg","path","g"],r6=["password","hidden"],r8=function(e){return e?function(e,t){for(var r=0,n=0;n<e.length;n++){var i=e[n];if(null===i)r+=4;else{var o=function e(t,r){void 0===r&&(r=!1);try{if(null==t){if(r)return"None";return null}if("string"==typeof t){if(r){if((t=t.replace(/\\/g,"\\\\").replace(/\n/g,"\\n").replace(/\t/g,"\\t").replace(/\r/g,"\\r")).includes('"'))return"'".concat(t,"'");if(t.includes("'"))return'"'.concat(t.replace(/'/g,"\\'"),'"');return"'".concat(t,"'")}return t}if("boolean"==typeof t)return t?"True":"False";else if(Array.isArray(t)){var n=t.map(function(t){return e(t,!0)});return"[".concat(n.join(", "),"]")}else if("object"==typeof t){var i=Object.entries(t).filter(function(e){var t=V(e,1)[0];return null!=t}).map(function(t){var r=V(t,2),n=r[0],i=r[1];return"".concat(String(e(n,!0)),": ").concat(String(e(i,!0)))}),o="{".concat(i.join(", "),"}");return o.includes("\\'")&&(o=o.replace(/'/g,"'").replace(/'/g,"\\'")),o}return t.toString()}catch(e){return null}}(i);r+=o?Array.from(o).length:4}if(r>1024)return e.slice(0,n)}return e}((function(e){var t=[];if(!e)return t;t.push(e);for(var r=e.parentElement;r&&"HTML"!==r.tagName;)t.push(r),r=r.parentElement;return t})(e).map(function(e){return function(e){if(null===e)return null;var t,r,n,i,o,a,s=String(e.tagName).toLowerCase(),l={tag:s},u=Array.from(null!=(i=null==(n=e.parentElement)?void 0:n.children)?i:[]);u.length&&(l.index=u.indexOf(e),l.indexOfType=u.filter(function(t){return t.tagName===e.tagName}).indexOf(e));var c=null==(a=null==(o=e.previousElementSibling)?void 0:o.tagName)?void 0:a.toLowerCase();c&&(l.prevSib=String(c));var d=e.getAttribute("id");d&&(l.id=String(d));var f=Array.from(e.classList);f.length&&(l.classes=f);var h={},p=Array.from(e.attributes).filter(function(e){return!r5.includes(e.name)}),g=!rK(e);if(!r6.includes(String(e.getAttribute("type")))&&!r4.includes(s))try{for(var v=L(p),m=v.next();!m.done;m=v.next()){var b=m.value;(!g||r3.includes(b.name))&&(h[b.name]=String(b.value).substring(0,128))}}catch(e){t={error:e}}finally{try{m&&!m.done&&(r=v.return)&&r.call(v)}finally{if(t)throw t.error}}return Object.keys(h).length&&(l.attrs=h),l}(e)}),1024):[]};function r7(e,t){return r_(function(r,n){var i=0;r.subscribe(rT(n,function(r){return e.call(t,r,i++)&&n.next(r)}))})}var r9=function(e){function t(t,r){return e.call(this)||this}return P(t,e),t.prototype.schedule=function(e,t){return void 0===t&&(t=0),this},t}(t6),ne={setInterval:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=ne.delegate;return(null==i?void 0:i.setInterval)?i.setInterval.apply(i,D([e,t],V(r))):setInterval.apply(void 0,D([e,t],V(r)))},clearInterval:function(e){var t=ne.delegate;return((null==t?void 0:t.clearInterval)||clearInterval)(e)},delegate:void 0},nt=function(e){function t(t,r){var n=e.call(this,t,r)||this;return n.scheduler=t,n.work=r,n.pending=!1,n}return P(t,e),t.prototype.schedule=function(e,t){if(void 0===t&&(t=0),this.closed)return this;this.state=e;var r,n=this.id,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,t)),this.pending=!0,this.delay=t,this.id=null!=(r=this.id)?r:this.requestAsyncId(i,this.id,t),this},t.prototype.requestAsyncId=function(e,t,r){return void 0===r&&(r=0),ne.setInterval(e.flush.bind(e,this),r)},t.prototype.recycleAsyncId=function(e,t,r){if(void 0===r&&(r=0),null!=r&&this.delay===r&&!1===this.pending)return t;null!=t&&ne.clearInterval(t)},t.prototype.execute=function(e,t){if(this.closed)return Error("executing a cancelled action");this.pending=!1;var r=this._execute(e,t);if(r)return r;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(e,t){var r,n=!1;try{this.work(e)}catch(e){n=!0,r=e||Error("Scheduled action threw falsy error")}if(n)return this.unsubscribe(),r},t.prototype.unsubscribe=function(){if(!this.closed){var t=this.id,r=this.scheduler,n=r.actions;this.work=this.state=this.scheduler=null,this.pending=!1,t4(n,this),null!=t&&(this.id=this.recycleAsyncId(r,t,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t}(r9),nr={now:function(){return(nr.delegate||Date).now()},delegate:void 0},nn=function(){function e(t,r){void 0===r&&(r=e.now),this.schedulerActionCtor=t,this.now=r}return e.prototype.schedule=function(e,t,r){return void 0===t&&(t=0),new this.schedulerActionCtor(this,e).schedule(r,t)},e.now=nr.now,e}(),ni=new(function(e){function t(t,r){void 0===r&&(r=nn.now);var n=e.call(this,t,r)||this;return n.actions=[],n._active=!1,n}return P(t,e),t.prototype.flush=function(e){var t,r=this.actions;if(this._active)return void r.push(e);this._active=!0;do if(t=e.execute(e.state,e.delay))break;while(e=r.shift());if(this._active=!1,t){for(;e=r.shift();)e.unsubscribe();throw t}},t}(nn))(nt);function no(e){return void 0===e&&(e=1/0),rN(rm,e)}var na=new rb(function(e){return e.complete()});function ns(e){return e&&t1(e.schedule)}function nl(e){return e[e.length-1]}function nu(e){return ns(nl(e))?e.pop():void 0}function nc(e,t){return void 0===t&&(t=0),r_(function(r,n){r.subscribe(rT(n,function(r){return rA(n,e,function(){return n.next(r)},t)},function(){return rA(n,e,function(){return n.complete()},t)},function(r){return rA(n,e,function(){return n.error(r)},t)}))})}function nd(e,t){return void 0===t&&(t=0),r_(function(r,n){n.add(e.schedule(function(){return r.subscribe(n)},t))})}function nf(e,t){if(!e)throw Error("Iterable cannot be null");return new rb(function(r){rA(r,t,function(){var n=e[Symbol.asyncIterator]();rA(r,t,function(){n.next().then(function(e){e.done?r.complete():r.next(e.value)})},0,!0)})})}function nh(e,t){return t?function(e,t){if(null!=e){if(t1(e[rv]))return rO(e).pipe(nd(t),nc(t));if(t0(e))return new rb(function(r){var n=0;return t.schedule(function(){n===e.length?r.complete():(r.next(e[n++]),r.closed||this.schedule())})});if(t2(e))return rO(e).pipe(nd(t),nc(t));if(rx(e))return nf(e,t);if(rE(e))return new rb(function(r){var n;return rA(r,t,function(){n=e[rS](),rA(r,t,function(){var e,t,i;try{t=(e=n.next()).value,i=e.done}catch(e){r.error(e);return}i?r.complete():r.next(t)},0,!0)}),function(){return t1(null==n?void 0:n.return)&&n.return()}});if(rC(e))return nf(rk(e),t)}throw rw(e)}(e,t):rO(e)}function np(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var n=nu(t),i=(e=1/0,"number"==typeof nl(t)?t.pop():e);return t.length?1===t.length?rO(t[0]):no(i)(nh(t,n)):na}function ng(e){return e<=0?function(){return na}:r_(function(t,r){var n=0;t.subscribe(rT(r,function(t){++n<=e&&(r.next(t),e<=n&&r.complete())}))})}function nv(e){return e instanceof Date&&!isNaN(e)}var nm=t5(function(e){return function(t){void 0===t&&(t=null),e(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=t}});function nb(e){throw new nm(e)}!function(e){e.ClickObservable="clickObservable",e.ChangeObservable="changeObservable",e.NavigateObservable="navigateObservable",e.MutationObservable="mutationObservable"}(v||(v={}));var ny=function(e){void 0===e&&(e={});var t,r,n,i=e.dataAttributePrefix,o=void 0===i?"data-amp-track-":i,a=e.visualTaggingOptions,s=void 0===a?{enabled:!0,messenger:new r2}:a;e.cssSelectorAllowlist=null!=(t=e.cssSelectorAllowlist)?t:tq,e.actionClickAllowlist=null!=(r=e.actionClickAllowlist)?r:tG,e.debounceTime=null!=(n=e.debounceTime)?n:0;var l="@amplitude/plugin-autocapture-browser",u=[],c=function(){var e,t,r=rF(document,"click",{capture:!0}).pipe(rR(function(e){return f(e,"click")}),rH()),n=rF(document,"change",{capture:!0}).pipe(rR(function(e){return f(e,"change")}),rH());window.navigation&&(t=rF(window.navigation,"navigate").pipe(rR(function(e){return f(e,"navigate")}),rH()));var i=new rb(function(e){var t=new MutationObserver(function(t){e.next(t)});return t.observe(document.body,{childList:!0,attributes:!0,characterData:!0,subtree:!0}),function(){return t.disconnect()}}).pipe(rR(function(e){return f(e,"mutation")}),rH());return(e={})[v.ClickObservable]=r,e[v.ChangeObservable]=n,e[v.NavigateObservable]=t,e[v.MutationObservable]=i,e},d=function(e,t){var r,n,i,a=null==(i=null==(n=null==t?void 0:t.tagName)?void 0:n.toLowerCase)?void 0:i.call(n),s="function"==typeof t.getBoundingClientRect?t.getBoundingClientRect():{left:null,top:null},l=t.getAttribute("aria-label"),u=t.getAttributeNames().reduce(function(e,r){if(r.startsWith(o)){var n=r.replace(o,""),i=t.getAttribute(r);n&&(e[n]=i||"")}return e},{}),c=rJ(t),d=((r={})["[Amplitude] Element ID"]=t.getAttribute("id")||"",r["[Amplitude] Element Class"]=t.getAttribute("class"),r["[Amplitude] Element Hierarchy"]=r8(t),r[tY]=a,r[tX]=rY(t),r["[Amplitude] Element Position Left"]=null==s.left?null:Math.round(s.left),r["[Amplitude] Element Position Top"]=null==s.top?null:Math.round(s.top),r["[Amplitude] Element Aria Label"]=l,r["[Amplitude] Element Attributes"]=u,r["[Amplitude] Element Parent Label"]=c,r[tQ]=window.location.href.split("?")[0],r["[Amplitude] Page Title"]="undefined"!=typeof document&&document.title||"",r["[Amplitude] Viewport Height"]=window.innerHeight,r["[Amplitude] Viewport Width"]=window.innerWidth,r);return"a"===a&&"click"===e&&t instanceof HTMLAnchorElement&&(d["[Amplitude] Element Href"]=t.href),rQ(d)},f=function(t,r){var n={event:t,timestamp:Date.now(),type:r};if(("click"===n.type||"change"===n.type)&&null!==n.event.target){var i=rZ(n.event.target,e.cssSelectorAllowlist);i&&(n.closestTrackedAncestor=i,n.targetElementProperties=d(n.type,i))}return n};return{name:l,type:"enrichment",setup:function(t,r){return N(void 0,void 0,void 0,function(){var n,i,o,a,f,h,p,g,v,m;return M(this,function(b){var y,x,w,S,E,k,C,O,I,_,T,P,A,N,M,F,j,z,B,U,H,W,$,q,G,K,Y,X,Q,J,Z,ee,et,er;return"undefined"==typeof document?[2]:(n=rq(e,e.cssSelectorAllowlist),i=rq(e,e.actionClickAllowlist),x=(y={allObservables:o=c(),options:e,amplitude:r,shouldTrackEvent:n}).amplitude,w=y.allObservables,S=y.options,E=y.shouldTrackEvent,I=np((k=w.clickObservable).pipe(r_(function(e,t){var r,n=!1;e.subscribe(rT(t,function(e){var i=r;r=e,n&&t.next([i,e]),n=!0}))}),r7(function(e){var t=V(e,2),r=t[0],n=t[1],i=r.event.target!==n.event.target,o=20>=Math.abs(n.event.screenX-r.event.screenX)&&20>=Math.abs(n.event.screenY-r.event.screenY);return i&&!o})),k.pipe((C=S.debounceTime,void 0===O&&(O=ni),r_(function(e,t){var r=null,n=null,i=null,o=function(){if(r){r.unsubscribe(),r=null;var e=n;n=null,t.next(e)}};function a(){var e=i+C,n=O.now();if(n<e){r=this.schedule(void 0,e-n),t.add(r);return}o()}e.subscribe(rT(t,function(e){n=e,i=O.now(),r||(r=O.schedule(a,C),t.add(r))},function(){o(),t.complete()},void 0,function(){n=r=null}))})),rR(function(){return"timeout"}))),a=k.pipe((void 0===_&&(_=ni),T=0,P=_,void 0===T&&(T=0),void 0===A&&(A=ni),N=-1,null!=P&&(ns(P)?A=P:N=P),M=new rb(function(e){var t=nv(T)?T-A.now():T;t<0&&(t=0);var r=0;return A.schedule(function(){e.closed||(e.next(r++),0<=N?this.schedule(void 0,N):e.complete())},t)}),function e(t,r){return r?function(n){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return no(1)(nh(e,nu(e)))}(r.pipe(ng(1),r_(function(e,t){e.subscribe(rT(t,rn))})),n.pipe(e(t)))}:rN(function(e,r){return rO(t(e,r)).pipe(ng(1),rR(function(){return e}))})}(function(){return M})),r7(r1),r7(function(e){return E("click",e.closestTrackedAncestor)}),r_(function(e,t){var r=[];return e.subscribe(rT(t,function(e){return r.push(e)},function(){t.next(r),t.complete()})),rO(I).subscribe(rT(t,function(){var e=r;r=[],t.next(e)},rn)),function(){r=null}})).subscribe(function(e){var t,r,n=(e.length,tK);try{for(var i=L(e),o=i.next();!o.done;o=i.next()){var a=o.value;null==x||x.track(n,a.targetElementProperties)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}}),u.push(a),j=(F={allObservables:o,getEventProperties:d,amplitude:r,shouldTrackEvent:n}).amplitude,z=F.allObservables,B=F.getEventProperties,U=F.shouldTrackEvent,f=z.changeObservable.pipe(r7(r1),r7(function(e){return U("change",e.closestTrackedAncestor)})).subscribe(function(e){null==j||j.track("[Amplitude] Element Changed",B("change",e.closestTrackedAncestor))}),u.push(f),W=(H={allObservables:o,options:e,getEventProperties:d,amplitude:r,shouldTrackEvent:n,shouldTrackActionClick:i}).amplitude,$=H.allObservables,q=H.options,G=H.getEventProperties,K=H.shouldTrackEvent,Y=H.shouldTrackActionClick,X=$.clickObservable,Q=$.mutationObservable,J=$.navigateObservable,Z=X.pipe(r7(function(e){return!K("click",e.closestTrackedAncestor)}),rR(function(e){var t=rZ(e.event.target,q.actionClickAllowlist);return e.closestTrackedAncestor=t,null!==e.closestTrackedAncestor&&(e.targetElementProperties=G(e.type,e.closestTrackedAncestor)),e}),r7(r1),r7(function(e){return Y("click",e.closestTrackedAncestor)})),ee=[Q],J&&ee.push(J),et=np.apply(void 0,D([],V(ee),!1)),h=Z.pipe((er=function(e){return et.pipe(ng(1),function(e,t){var r=nv(e)?{first:e}:"number"==typeof e?{each:e}:e,n=r.first,i=r.each,o=r.with,a=void 0===o?nb:o,s=r.scheduler,l=void 0===s?ni:s,u=r.meta,c=void 0===u?null:u;if(null==n&&null==i)throw TypeError("No timeout provided.");return r_(function(e,t){var r,o,s=null,u=0,d=function(e){o=rA(t,l,function(){try{r.unsubscribe(),rO(a({meta:c,lastValue:s,seen:u})).subscribe(t)}catch(e){t.error(e)}},e)};r=e.subscribe(rT(t,function(e){null==o||o.unsubscribe(),u++,t.next(s=e),i>0&&d(i)},void 0,void 0,function(){(null==o?void 0:o.closed)||null==o||o.unsubscribe(),s=null})),u||d(null!=n?"number"==typeof n?n:n-l.now():i)})}({first:500,with:function(){return na}}),rR(function(){return e}))},r_(function(e,t){var r=null,n=0,i=!1,o=function(){return i&&!r&&t.complete()};e.subscribe(rT(t,function(e){null==r||r.unsubscribe(),rO(er(e,n++)).subscribe(r=rT(t,function(e){return t.next(e)},function(){r=null,o()}))},function(){i=!0,o()}))}))).subscribe(function(e){null==W||W.track(tK,G("click",e.closestTrackedAncestor))}),u.push(h),null==(v=null==t?void 0:t.loggerProvider)||v.log("".concat(l," has been successfully added.")),window.opener&&s.enabled&&(p=e.cssSelectorAllowlist,g=e.actionClickAllowlist,null==(m=s.messenger)||m.setup(R(R({logger:null==t?void 0:t.loggerProvider},(null==t?void 0:t.serverZone)&&{endpoint:tZ[t.serverZone]}),{isElementSelectable:rq(e,D(D([],V(p),!1),V(g),!1)),cssSelectorAllowlist:p,actionClickAllowlist:g}))),[2])})})},execute:function(e){return N(void 0,void 0,void 0,function(){return M(this,function(t){return[2,e]})})},teardown:function(){return N(void 0,void 0,void 0,function(){var e,t,r,n;return M(this,function(i){try{for(t=(e=L(u)).next();!t.done;t=e.next())t.value.unsubscribe()}catch(e){r={error:e}}finally{try{t&&!t.done&&(n=e.return)&&n.call(e)}finally{if(r)throw r.error}}return[2]})})}}};function nx(e,t,r){e&&function e(t){var r,n,i=t.json,o=t.targetObject,a=t.allowlist,s=t.excludelist,l=t.ancestors,u=t.parentObject,c=t.targetKey;o||(o=i);var d=Object.keys(o);try{for(var f=L(d),h=f.next();!h.done;h=f.next()){var p,g=h.value,v=D(D([],V(l),!1),[g],!1);(p=o[g],"string"==typeof p||"number"==typeof p||"boolean"==typeof p||null==p)?(!nS(v,a)||nS(v,s))&&delete o[g]:e({json:i,targetObject:o[g],allowlist:a,excludelist:s,ancestors:v,parentObject:o,targetKey:g})}}catch(e){r={error:e}}finally{try{h&&!h.done&&(n=f.return)&&n.call(f)}finally{if(r)throw r.error}}0===Object.keys(o).length&&u&&c&&delete u[c]}({json:e,allowlist:t.map(nw),excludelist:r.map(nw),ancestors:[]})}function nw(e){return e.startsWith("/")&&(e=e.slice(1)),e.split("/").map(function(e){return e.replace(/~0/g,"~").replace(/~1/g,"/")})}function nS(e,t){return t.some(function(t){return function e(t,r,n,i){if(void 0===n&&(n=0),void 0===i&&(i=0),i===r.length)return n===t.length;if(n===t.length){for(;i<r.length&&"**"===r[i];)i++;return i===r.length}var o=r[i];if("**"===o){if(i+1===r.length)return!0;for(var a=n;a<=t.length;a++)if(e(t,r,a,i+1))return!0;return!1}return("*"===o||o===t[n])&&e(t,r,n+1,i+1)}(e,t)})}var nE=function(){function e(e){this.request=e}return e.prototype.headers=function(e){void 0===e&&(e=[]);var t,r,n=this.request.headers,i={};if(Array.isArray(n))n.forEach(function(e){var t=V(e,2),r=t[0],n=t[1];i[r]=n});else if(n instanceof Headers)n.forEach(function(e,t){i[t]=e});else if("object"==typeof n&&null!==n)try{for(var o=L(Object.entries(n)),a=o.next();!a.done;a=o.next()){var s=V(a.value,2),l=s[0],u=s[1];i[l]=u}}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}return nP(i,{allow:e})},Object.defineProperty(e.prototype,"bodySize",{get:function(){if("number"==typeof this._bodySize)return this._bodySize;var e=z();if(null==e?void 0:e.TextEncoder){var t=this.request.body;return this._bodySize=nC(t,100),this._bodySize}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"method",{get:function(){return this.request.method},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"body",{get:function(){return"string"==typeof this.request.body?this.request.body:null},enumerable:!1,configurable:!0}),e.prototype.json=function(e,t){return void 0===e&&(e=[]),void 0===t&&(t=[]),N(this,void 0,void 0,function(){return M(this,function(r){return 0===e.length?[2,null]:[2,n_(this.body,e,t)]})})},e}(),nk=function(){function e(e,t){this.bodyRaw=e,this.requestHeaders=t}return e.prototype.headers=function(e){return void 0===e&&(e=[]),nP(this.requestHeaders,{allow:e})},Object.defineProperty(e.prototype,"bodySize",{get:function(){return nC(this.bodyRaw,100)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"body",{get:function(){return"string"==typeof this.bodyRaw?this.bodyRaw:null},enumerable:!1,configurable:!0}),e.prototype.json=function(e,t){return void 0===e&&(e=[]),void 0===t&&(t=[]),N(this,void 0,void 0,function(){return M(this,function(r){return 0===e.length?[2,null]:[2,n_(this.body,e,t)]})})},e}();function nC(e,t){var r,n,i,o,a=z(),s=null==a?void 0:a.TextEncoder;if(s){if("string"==typeof e)o=e,i=new s().encode(o).length;else if(e instanceof Blob)i=(o=e).size;else if(e instanceof URLSearchParams)o=e,i=new s().encode(o.toString()).length;else if(ArrayBuffer.isView(e))i=(o=e).byteLength;else if(e instanceof ArrayBuffer)i=(o=e).byteLength;else if(e instanceof FormData){var l=0,u=0;try{for(var c=L(e.entries()),d=c.next();!d.done;d=c.next()){var f=V(d.value,2),h=f[0],p=f[1];if(l+=h.length,"string"==typeof p)l+=new s().encode(p).length;else{if(!(p instanceof Blob))return;l+=p.size}if(++u>=t)return}}catch(e){r={error:e}}finally{try{d&&!d.done&&(n=c.return)&&n.call(c)}finally{if(r)throw r.error}}i=l}else if(e instanceof ReadableStream){o=e;return}return i}}var nO=function(){function e(e){this.response=e}return e.prototype.headers=function(e){var t;if(void 0===e&&(e=[]),this.response.headers instanceof Headers){var r=this.response.headers,n={};return null==(t=null==r?void 0:r.forEach)||t.call(r,function(e,t){n[t]=e}),nP(n,{allow:e})}},Object.defineProperty(e.prototype,"bodySize",{get:function(){if(void 0!==this._bodySize)return this._bodySize;var e,t,r=null==(t=null==(e=this.response.headers)?void 0:e.get)?void 0:t.call(e,"content-length"),n=r?parseInt(r,10):void 0;return this._bodySize=n,n},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"status",{get:function(){return this.response.status},enumerable:!1,configurable:!0}),e.prototype.text=function(){return N(this,void 0,void 0,function(){return M(this,function(e){switch(e.label){case 0:this.clonedResponse||(this.clonedResponse=this.response.clone()),e.label=1;case 1:return e.trys.push([1,3,,4]),[4,Promise.race([this.clonedResponse.text(),new Promise(function(e){return setTimeout(function(){return e(null)},500)})])];case 2:return[2,e.sent()];case 3:return e.sent(),[2,null];case 4:return[2]}})})},e.prototype.json=function(e,t){return void 0===e&&(e=[]),void 0===t&&(t=[]),N(this,void 0,void 0,function(){return M(this,function(r){switch(r.label){case 0:if(0===e.length)return[2,null];return[4,this.text()];case 1:return[2,n_(r.sent(),e,t)]}})})},e}(),nI=function(){function e(e,t,r,n){this.statusCode=e,this.headersString=t,this.size=r,this.getJson=n}return Object.defineProperty(e.prototype,"bodySize",{get:function(){return this.size},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"status",{get:function(){return this.statusCode},enumerable:!1,configurable:!0}),e.prototype.headers=function(e){if(void 0===e&&(e=[]),!this.headersString)return{};var t,r,n={},i=this.headersString.split("\r\n");try{for(var o=L(i),a=o.next();!a.done;a=o.next()){var s=a.value,l=V(s.split(": "),2),u=l[0],c=l[1];u&&c&&(n[u]=c)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}return nP(n,{allow:e})},e.prototype.json=function(e,t){return void 0===e&&(e=[]),void 0===t&&(t=[]),N(this,void 0,void 0,function(){var r;return M(this,function(n){return 0===e.length?[2,null]:(r=this.getJson())?(nx(r,e,t),[2,r]):[2,null]})})},e}();function n_(e,t,r){if(!e)return null;try{var n=JSON.parse(e);return nx(n,t,r),n}catch(e){return null}}!function(e){e.REDACT="redact",e.REMOVE="remove"}(m||(m={}));var nT="[REDACTED]",nP=function(e,t){var r,n,i=t.allow,o=void 0===i?[]:i,a=t.strategy,s=void 0===a?m.REMOVE:a,l=D([],V(en),!1),u={};try{for(var c=L(Object.keys(e)),d=c.next();!d.done;d=c.next()){var f=d.value;!function(t){var r=t.toLowerCase();l.find(function(e){return e.toLowerCase()===r})?s===m.REDACT&&(u[t]=nT):o.find(function(e){return e.toLowerCase()===r})?u[t]=e[t]:s===m.REDACT&&(u[t]=nT)}(f)}}catch(e){r={error:e}}finally{try{d&&!d.done&&(n=c.return)&&n.call(c)}finally{if(r)throw r.error}}return u},nR=function(){function e(e,t,r,n,i,o,a,s,l,u,c){void 0===a&&(a=0),this.type=e,this.method=t,this.timestamp=r,this.startTime=n,this.url=i,this.requestWrapper=o,this.status=a,this.duration=s,this.responseWrapper=l,this.error=u,this.endTime=c}return e.prototype.toSerializable=function(){var e,t,r,n;return Object.fromEntries(Object.entries({type:this.type,method:this.method,url:this.url,timestamp:this.timestamp,status:this.status,duration:this.duration,error:this.error,startTime:this.startTime,endTime:this.endTime,requestHeaders:null==(e=this.requestWrapper)?void 0:e.headers(D([],V(er),!1)),requestBodySize:null==(t=this.requestWrapper)?void 0:t.bodySize,responseHeaders:null==(r=this.responseWrapper)?void 0:r.headers(D([],V(er),!1)),responseBodySize:null==(n=this.responseWrapper)?void 0:n.bodySize}).filter(function(e){var t=V(e,2);return void 0!==(t[0],t[1])}))},e}(),nA=function(e,t){void 0===t&&(t=ev()),this.callback=e,this.id=t},nN=new(function(){function e(t){this.eventCallbacks=new Map,this.isObserving=!1,this.logger=t;var r=z();e.isSupported()&&(this.globalScope=r)}return e.isSupported=function(){var e=z();return!!e&&!!e.fetch},e.prototype.subscribe=function(e,t){var r,n,i,o,a,s,l,u,c,d;if(this.logger||(this.logger=t),this.eventCallbacks.set(e.id,e),!this.isObserving){var f=null==(i=null==(n=null==(r=this.globalScope)?void 0:r.XMLHttpRequest)?void 0:n.prototype)?void 0:i.open,h=null==(s=null==(a=null==(o=this.globalScope)?void 0:o.XMLHttpRequest)?void 0:a.prototype)?void 0:s.send,p=null==(c=null==(u=null==(l=this.globalScope)?void 0:l.XMLHttpRequest)?void 0:u.prototype)?void 0:c.setRequestHeader;f&&h&&p&&this.observeXhr(f,h,p);var g=null==(d=this.globalScope)?void 0:d.fetch;g&&this.observeFetch(g),this.isObserving=!0}},e.prototype.unsubscribe=function(e){this.eventCallbacks.delete(e.id)},e.prototype.triggerEventCallbacks=function(e){var t=this;this.eventCallbacks.forEach(function(r){var n;try{r.callback(e)}catch(e){null==(n=t.logger)||n.debug("an unexpected error occurred while triggering event callbacks",e)}})},e.prototype.handleNetworkRequestEvent=function(e,t,r,n,i,o,a){if(void 0!==o&&void 0!==a){var s,l,u,c,d,f="GET";if("object"==typeof t&&null!==t&&"url"in t&&"method"in t?(u=t.url,f=t.method):u=null==(s=null==t?void 0:t.toString)?void 0:s.call(t),u)try{var h=new URL(u);u="".concat(h.protocol,"//").concat(h.host).concat(h.pathname).concat(h.search).concat(h.hash)}catch(e){null==(l=this.logger)||l.error("an unexpected error occurred while parsing the URL",e)}f=(null==r?void 0:r.method)||f,n&&(c=n.status),i&&(d={name:i.name||"UnknownError",message:i.message||"An unknown error occurred"},c=0);var p=Math.floor(performance.now()-a),g=Math.floor(o+p),v=new nR(e,f,o,o,u,r,c,p,n,d,g);this.triggerEventCallbacks(v)}},e.prototype.getTimestamps=function(){var e,t;return{startTime:null==(e=Date.now)?void 0:e.call(Date),durationStart:null==(t=null==performance?void 0:performance.now)?void 0:t.call(performance)}},e.prototype.observeFetch=function(e){var t=this;this.globalScope&&e&&(this.globalScope.fetch=function(r,n){return N(t,void 0,void 0,function(){var t,i,o,a,s;return M(this,function(l){switch(l.label){case 0:try{t=this.getTimestamps()}catch(e){null==(a=this.logger)||a.debug("an unexpected error occurred while retrieving timestamps",e)}l.label=1;case 1:return l.trys.push([1,3,,4]),[4,e(r,n)];case 2:return i=l.sent(),[3,4];case 3:return o=l.sent(),[3,4];case 4:try{this.handleNetworkRequestEvent("fetch",r,n?new nE(n):void 0,i?new nO(i):void 0,o,null==t?void 0:t.startTime,null==t?void 0:t.durationStart)}catch(e){null==(s=this.logger)||s.debug("an unexpected error occurred while handling fetch",e)}if(i)return[2,i];throw o}})})})},e.createXhrJsonParser=function(e,t){return function(){var r,n;try{if("json"===e.responseType){if(null==(r=t.globalScope)?void 0:r.structuredClone)return t.globalScope.structuredClone(e.response)}else if(["text",""].includes(e.responseType))return JSON.parse(e.responseText)}catch(r){r instanceof Error&&"InvalidStateError"===r.name&&(null==(n=t.logger)||n.error("unexpected error when retrieving responseText. responseType='".concat(e.responseType,"'")))}return null}},e.prototype.observeXhr=function(t,r,n){if(this.globalScope&&t&&r){var i=this.globalScope.XMLHttpRequest.prototype,o=this;i.open=function(){for(var e,r,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var a=V(n,2),s=a[0],l=a[1];try{this.$$AmplitudeAnalyticsEvent=R({method:s,url:null==(e=null==l?void 0:l.toString)?void 0:e.call(l),headers:{}},o.getTimestamps())}catch(e){null==(r=o.logger)||r.error("an unexpected error occurred while calling xhr open",e)}return t.apply(this,n)},i.send=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var i=this,a=e.createXhrJsonParser(this,o),s=t[0],l=i.$$AmplitudeAnalyticsEvent;return i.addEventListener("loadend",function(){var e;try{var t=i.getAllResponseHeaders(),r=i.getResponseHeader("content-length"),n=new nI(i.status,t,r?parseInt(r,10):void 0,a),u=i.$$AmplitudeAnalyticsEvent.headers,c=new nk(s,u);l.status=i.status,o.handleNetworkRequestEvent("xhr",{url:l.url,method:l.method},c,n,void 0,l.startTime,l.durationStart)}catch(t){null==(e=o.logger)||e.error("an unexpected error occurred while handling xhr send",t)}}),r.apply(i,t)},i.setRequestHeader=function(e,t){var r;try{this.$$AmplitudeAnalyticsEvent.headers[e]=t}catch(e){null==(r=o.logger)||r.error("an unexpected error occurred while calling xhr setRequestHeader",e)}n.apply(this,[e,t])}}},e}()),nM="500-599";function nL(e,t){return RegExp("^"+t.replace(/[-[\]{}()+?.,\\^$|#\s]/g,"\\$&").replace(/\*/g,".*")+"$").test(e)}function nV(e,t){var r,n,i=t.split(",");try{for(var o=L(i),a=o.next();!a.done;a=o.next()){var s=a.value,l=V(s.split("-").map(Number),2),u=l[0],c=l[1];if(e===u&&void 0===c||e>=u&&e<=c)return!0}}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return!1}function nD(e){var t;if(e)try{var r=null==(t=z())?void 0:t.location.href,n=new URL(e,r),i=n.searchParams.toString(),o=n.hash.replace("#",""),a=n.href,s=n.host;n.hash="",n.search="";var l=n.href;return{query:i,fragment:o,href:a,hrefWithoutQueryOrHash:l,host:s}}catch(e){return}}(b||(b={})).NetworkObservable="networkObservable";var nF=function(e){void 0===e&&(e={});var t,r="@amplitude/plugin-network-capture-browser",n=[],i=function(){var e,r=new rb(function(e){var r=new nA(function(t){var r={event:t,timestamp:Date.now(),type:"network"};e.next(r)});return nN.subscribe(r,t),function(){nN.unsubscribe(r)}});return(e={})[b.NetworkObservable]=r,e};return{name:r,type:"enrichment",setup:function(o,a){return N(void 0,void 0,void 0,function(){var s;return M(this,function(l){var u,c,d,f;return"undefined"==typeof document?[2]:(c=(u={allObservables:i(),networkTrackingOptions:e,amplitude:a}).allObservables,d=u.networkTrackingOptions,f=u.amplitude,s=c.networkObservable.pipe(r7(function(e){return function(e,t){void 0===t&&(t={});var r,n,i=nD(e.url);if(!i)return!1;var o=i.host;return!(!1!==t.ignoreAmplitudeRequests&&(nL(o,"*.amplitude.com")||nL(o,"amplitude.com"))||(null==(r=t.ignoreHosts)?void 0:r.find(function(e){return nL(o,e)})))&&(!!t.captureRules||void 0===e.status||!!nV(e.status,nM))&&(!t.captureRules||(D([],V(t.captureRules),!1).reverse().find(function(t){return void 0!==(n=function(e,t,r){if(!e.hosts||e.hosts.find(function(e){return nL(t,e)}))return(!r&&0!==r||!!nV(r,e.statusCodeRange||nM))&&!0}(t,o,e.status))}),!!n))&&!0}(e.event,d)})).subscribe(function(e){var t,r,n,i=e.event,o=nD(i.url);if(o){var a=null==(r=i.responseWrapper)?void 0:r.bodySize,s=null==(n=i.requestWrapper)?void 0:n.bodySize,l=((t={})["[Amplitude] URL"]=o.hrefWithoutQueryOrHash,t["[Amplitude] URL Query"]=o.query,t["[Amplitude] URL Fragment"]=o.fragment,t["[Amplitude] Request Method"]=i.method,t["[Amplitude] Status Code"]=i.status,t["[Amplitude] Start Time"]=i.startTime,t["[Amplitude] Completion Time"]=i.endTime,t["[Amplitude] Duration"]=i.duration,t["[Amplitude] Request Body Size"]=s,t["[Amplitude] Response Body Size"]=a,t["[Amplitude] Request Type"]=i.type,t);null==f||f.track("[Amplitude] Network Request",l)}}),n.push(s),null==(t=null==o?void 0:o.loggerProvider)||t.log("".concat(r," has been successfully added.")),[2])})})},execute:function(e){return N(void 0,void 0,void 0,function(){return M(this,function(t){return[2,e]})})},teardown:function(){return N(void 0,void 0,void 0,function(){var e,t,r,i;return M(this,function(o){try{for(t=(e=L(n)).next();!t.done;t=e.next())t.value.unsubscribe()}catch(e){r={error:e}}finally{try{t&&!t.done&&(i=e.return)&&i.call(e)}finally{if(r)throw r.error}}return[2]})})}}},nj="dclid",nz="fbclid",nB="gbraid",nU="gclid",nH="ko_click_id",nW="li_fat_id",n$="msclkid",nq="rtd_cid",nG="ttclid",nK="twclid",nY="wbraid",nX={utm_campaign:void 0,utm_content:void 0,utm_id:void 0,utm_medium:void 0,utm_source:void 0,utm_term:void 0,referrer:void 0,referring_domain:void 0,dclid:void 0,gbraid:void 0,gclid:void 0,fbclid:void 0,ko_click_id:void 0,li_fat_id:void 0,msclkid:void 0,rtd_cid:void 0,ttclid:void 0,twclid:void 0,wbraid:void 0},nQ=function(e){var t=e.split(".");return t.length<=2?e:t.slice(t.length-2,t.length).join(".")},nJ=function(e,t,r,n,i){void 0===i&&(i=!0),e.referrer;var o=e.referring_domain,a=A(e,["referrer","referring_domain"]),s=t||{},l=(s.referrer,s.referring_domain),u=A(s,["referrer","referring_domain"]);if(nZ(r.excludeReferrers,e.referring_domain))return n.debug("This is not a new campaign because ".concat(e.referring_domain," is in the exclude referrer list.")),!1;if(!i&&Object.values(e).every(function(e){return!e})&&t)return n.debug("This is not a new campaign because this is a direct traffic in the same session."),!1;var c=JSON.stringify(a)!==JSON.stringify(u),d=nQ(o||"")!==nQ(l||""),f=!t||c||d;return f?n.debug("This is a new campaign. An $identify event will be sent."):n.debug("This is not a new campaign because it's the same as the previous one."),f},nZ=function(e,t){return void 0===e&&(e=[]),void 0===t&&(t=""),e.some(function(e){return e instanceof RegExp?e.test(t):e===t})},n0=function(e){var t=e;return t?(t.startsWith(".")&&(t=t.substring(1)),[new RegExp("".concat(t.replace(".","\\."),"$"))]):[]},n1=function(){function e(){}return e.prototype.parse=function(){return N(this,void 0,void 0,function(){return M(this,function(e){return[2,R(R(R(R({},nX),this.getUtmParam()),this.getReferrer()),this.getClickIds())]})})},e.prototype.getUtmParam=function(){var e=B();return{utm_campaign:e.utm_campaign,utm_content:e.utm_content,utm_id:e.utm_id,utm_medium:e.utm_medium,utm_source:e.utm_source,utm_term:e.utm_term}},e.prototype.getReferrer=function(){var e,t,r={referrer:void 0,referring_domain:void 0};try{r.referrer=document.referrer||void 0,r.referring_domain=null!=(t=null==(e=r.referrer)?void 0:e.split("/")[2])?t:void 0}catch(e){}return r},e.prototype.getClickIds=function(){var e,t=B();return(e={})[nj]=t[nj],e[nz]=t[nz],e[nB]=t[nB],e[nU]=t[nU],e[nH]=t[nH],e[nW]=t[nW],e[n$]=t[n$],e[nq]=t[nq],e[nG]=t[nG],e[nK]=t[nK],e[nY]=t[nY],e},e}(),n2=function(){function e(e,t){var r,n,i;this.shouldTrackNewCampaign=!1,this.options=R({initialEmptyValue:"EMPTY",resetSessionOnNewCampaign:!1,excludeReferrers:n0(null==(r=t.cookieOptions)?void 0:r.domain)},e),this.storage=t.cookieStorage,this.storageKey=(n=t.apiKey,void 0===i&&(i=10),["AMP","MKTG",n.substring(0,i)].filter(Boolean).join("_")),this.currentCampaign=nX,this.sessionTimeout=t.sessionTimeout,this.lastEventTime=t.lastEventTime,this.logger=t.loggerProvider,t.loggerProvider.log("Installing web attribution tracking.")}return e.prototype.init=function(){return N(this,void 0,void 0,function(){var e,t;return M(this,function(r){switch(r.label){case 0:return[4,this.fetchCampaign()];case 1:if(t=V.apply(void 0,[r.sent(),2]),this.currentCampaign=t[0],this.previousCampaign=t[1],e=!this.lastEventTime||eC(this.sessionTimeout,this.lastEventTime),!nJ(this.currentCampaign,this.previousCampaign,this.options,this.logger,e))return[3,3];return this.shouldTrackNewCampaign=!0,[4,this.storage.set(this.storageKey,this.currentCampaign)];case 2:r.sent(),r.label=3;case 3:return[2]}})})},e.prototype.fetchCampaign=function(){return N(this,void 0,void 0,function(){return M(this,function(e){switch(e.label){case 0:return[4,Promise.all([new n1().parse(),this.storage.get(this.storageKey)])];case 1:return[2,e.sent()]}})})},e.prototype.generateCampaignEvent=function(e){this.shouldTrackNewCampaign=!1;var t,r,n=(t=this.currentCampaign,r=this.options,eI(Object.entries(R(R({},nX),t)).reduce(function(e,t){var n,i=V(t,2),o=i[0],a=i[1];return(e.setOnce("initial_".concat(o),null!=(n=null!=a?a:r.initialEmptyValue)?n:"EMPTY"),a)?e.set(o,a):e.unset(o)},new eS)));return e&&(n.event_id=e),n},e.prototype.shouldSetSessionIdOnNewCampaign=function(){return this.shouldTrackNewCampaign&&!!this.options.resetSessionOnNewCampaign},e}(),n5=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return P(t,e),t.prototype.init=function(e,t,r){var n,i;return void 0===e&&(e=""),arguments.length>2?(n=t,i=r):"string"==typeof t?(n=t,i=void 0):(n=null==t?void 0:t.userId,i=t),j(this._init(R(R({},i),{userId:n,apiKey:e})))},t.prototype._init=function(t){var r,n,i;return N(this,void 0,void 0,function(){var o,a,s,l,u,c=this;return M(this,function(d){var f,h,p,g,v;switch(d.label){case 0:if(this.initializing)return[2];return this.initializing=!0,[4,(f=t.apiKey,h=t,p=this,void 0===h&&(h={}),N(void 0,void 0,void 0,function(){var e,t,r,n,i,o,a,s,l,u,c,d,g,v,m,b,y,x,w,S,E,k,C,O,I,_,T,P,A,L,D,F,j,z,U,H,W,$,q,G,K,Y,X;return M(this,function(Q){var J,Z,ee;switch(Q.label){case 0:if(e=h.identityStorage||tu,w={},e===tu)return[3,1];return r="",[3,5];case 1:if(null==(E=null==(S=h.cookieOptions)?void 0:S.domain))return[3,2];return n=E,[3,4];case 2:return[4,N(void 0,void 0,void 0,function(){var e,t,r,n,i,o;return M(this,function(a){switch(a.label){case 0:return[4,new eG().isEnabled()];case 1:if(!a.sent()||"undefined"==typeof location||!location.hostname)return[2,""];for(e=(null!=J?J:location.hostname).split("."),t=[],r="AMP_TLDTEST",n=e.length-2;n>=0;--n)t.push(e.slice(n).join("."));n=0,a.label=2;case 2:if(!(n<t.length))return[3,7];return[4,(o=new eG({domain:"."+(i=t[n])})).set(r,1)];case 3:return a.sent(),[4,o.get(r)];case 4:if(!a.sent())return[3,6];return[4,o.remove(r)];case 5:return a.sent(),[2,"."+i];case 6:return n++,[3,2];case 7:return[2,""]}})})];case 3:n=Q.sent(),Q.label=4;case 4:r=n,Q.label=5;case 5:return t=R.apply(void 0,[(w.domain=r,w.expiration=365,w.sameSite="Lax",w.secure=!1,w.upgrade=!0,w),h.cookieOptions]),[4,(Z=i=td(h.identityStorage,t),void 0===(ee=null==(C=null==(k=h.cookieOptions)?void 0:k.upgrade)||C)&&(ee=!0),N(void 0,void 0,void 0,function(){var e,t,r,n,i,o,a,s,l;return M(this,function(u){switch(u.label){case 0:return e="".concat("amp","_").concat(f.substring(0,6)),[4,Z.getRaw(e)];case 1:if(!(t=u.sent()))return[2,{optOut:!1}];if(!ee)return[3,3];return[4,Z.remove(e)];case 2:u.sent(),u.label=3;case 3:return n=(r=V(t.split("."),6))[0],i=r[1],o=r[2],a=r[3],s=r[4],l=r[5],[2,{deviceId:n,userId:e3(i),sessionId:e5(a),lastEventId:e5(l),lastEventTime:e5(s),optOut:!!o}]}})}))];case 6:return o=Q.sent(),[4,i.get(eq(f))];case 7:return a=Q.sent(),s=B(),l=null!=(P=null!=(T=null!=(_=null!=(I=null!=(O=h.deviceId)?O:s.ampDeviceId)?I:s.deviceId)?_:null==a?void 0:a.deviceId)?T:o.deviceId)?P:ev(),u=null!=(A=null==a?void 0:a.lastEventId)?A:o.lastEventId,c=null!=(L=null==a?void 0:a.lastEventTime)?L:o.lastEventTime,d=null!=(F=null!=(D=h.optOut)?D:null==a?void 0:a.optOut)?F:o.optOut,g=null!=(j=null==a?void 0:a.sessionId)?j:o.sessionId,v=null!=(U=null!=(z=h.userId)?z:null==a?void 0:a.userId)?U:o.userId,p.previousSessionDeviceId=null!=(H=null==a?void 0:a.deviceId)?H:o.deviceId,p.previousSessionUserId=null!=(W=null==a?void 0:a.userId)?W:o.userId,m={ipAddress:null==(q=null==($=h.trackingOptions)?void 0:$.ipAddress)||q,language:null==(K=null==(G=h.trackingOptions)?void 0:G.language)||K,platform:null==(X=null==(Y=h.trackingOptions)?void 0:Y.platform)||X},b=null==a?void 0:a.pageCounter,y=null==a?void 0:a.debugLogsEnabled,void 0!==h.autocapture&&(h.defaultTracking=h.autocapture),[4,(x=new tc(f,h.appVersion,i,t,h.defaultTracking,h.autocapture,l,h.flushIntervalMillis,h.flushMaxRetries,h.flushQueueSize,e,h.ingestionMetadata,h.instanceName,u,c,h.loggerProvider,h.logLevel,h.minIdLength,h.offline,d,h.partnerId,h.plan,h.serverUrl,h.serverZone,g,h.sessionTimeout,h.storageProvider,m,h.transport,h.useBatch,h.fetchRemoteConfig,v,b,y,h.networkTrackingOptions)).storageProvider.isEnabled()];case 8:return Q.sent()||(x.loggerProvider.warn("Storage provider ".concat(x.storageProvider.constructor.name," is not enabled. Falling back to MemoryStorage.")),x.storageProvider=new e$),[2,x]}})}))];case 1:if(!(o=d.sent()).fetchRemoteConfig)return[3,4];return[4,(g=o,N(void 0,void 0,void 0,function(){var e;return M(this,function(t){switch(t.label){case 0:return[4,(e=new t$(g)).initialize()];case 1:return t.sent(),[2,e]}})}))];case 2:return[4,d.sent().generateJoinedConfig()];case 3:o=d.sent(),d.label=4;case 4:return[4,e.prototype._init.call(this,o)];case 5:if(d.sent(),this.logBrowserOptions(o),!eA(this.config.defaultTracking))return[3,7];return a=eA((v=this.config).defaultTracking)&&v.defaultTracking&&"object"==typeof v.defaultTracking&&v.defaultTracking.attribution&&"object"==typeof v.defaultTracking.attribution?R({},v.defaultTracking.attribution):{},this.webAttribution=new n2(a,this.config),[4,this.webAttribution.init()];case 6:d.sent(),d.label=7;case 7:if(l=Number.isNaN(Number((s=B()).ampSessionId))?void 0:Number(s.ampSessionId),this.setSessionId(null!=(i=null!=(n=null!=(r=t.sessionId)?r:l)?n:this.config.sessionId)?i:Date.now()),(u=ei(t.instanceName)).identityStore.setIdentity({userId:this.config.userId,deviceId:this.config.deviceId}),null===this.config.offline)return[3,9];return[4,this.add(tz()).promise];case 8:d.sent(),d.label=9;case 9:return[4,this.add(new eb).promise];case 10:return d.sent(),[4,this.add(new eW).promise];case 11:return d.sent(),[4,this.add(new ey).promise];case 12:if(d.sent(),tj(this.config),!eR(this.config.defaultTracking,"fileDownloads"))return[3,14];return this.config.loggerProvider.debug("Adding file download tracking plugin"),[4,this.add(tD()).promise];case 13:d.sent(),d.label=14;case 14:if(!eR(this.config.defaultTracking,"formInteractions"))return[3,16];return this.config.loggerProvider.debug("Adding form interaction plugin"),[4,this.add(tM()).promise];case 15:d.sent(),d.label=16;case 16:if(!eN(this.config.defaultTracking))return[3,18];return this.config.loggerProvider.debug("Adding page view tracking plugin"),[4,this.add(tP(ej(this.config))).promise];case 17:d.sent(),d.label=18;case 18:if(!eV(this.config.autocapture))return[3,20];return this.config.loggerProvider.debug("Adding user interactions plugin (autocapture plugin)"),[4,this.add(ny(eD(this.config))).promise];case 19:d.sent(),d.label=20;case 20:if(!eL(this.config.autocapture))return[3,22];return this.config.loggerProvider.debug("Adding network tracking plugin"),[4,this.add(nF(eF(this.config))).promise];case 21:d.sent(),d.label=22;case 22:return this.initializing=!1,[4,this.runQueuedFunctions("dispatchQ")];case 23:return d.sent(),u.eventBridge.setEventReceiver(function(e){c.track(e.eventType,e.eventProperties)}),[2]}})})},t.prototype.getUserId=function(){var e;return null==(e=this.config)?void 0:e.userId},t.prototype.setUserId=function(e){if(!this.config)return void this.q.push(this.setUserId.bind(this,e));this.config.loggerProvider.debug("function setUserId: ",e),(e!==this.config.userId||void 0===e)&&(this.config.userId=e,this.timeline.onIdentityChanged({userId:e}),eo(e,this.config.instanceName))},t.prototype.getDeviceId=function(){var e;return null==(e=this.config)?void 0:e.deviceId},t.prototype.setDeviceId=function(e){if(!this.config)return void this.q.push(this.setDeviceId.bind(this,e));this.config.loggerProvider.debug("function setDeviceId: ",e),e!==this.config.deviceId&&(this.config.deviceId=e,this.timeline.onIdentityChanged({deviceId:e}),ea(e,this.config.instanceName))},t.prototype.reset=function(){this.setDeviceId(ev()),this.setUserId(void 0)},t.prototype.getSessionId=function(){var e;return null==(e=this.config)?void 0:e.sessionId},t.prototype.setSessionId=function(e){var t,r=[];if(!this.config)return this.q.push(this.setSessionId.bind(this,e)),j(Promise.resolve());if(e===this.config.sessionId)return j(Promise.resolve());this.config.loggerProvider.debug("function setSessionId: ",e);var n=this.getSessionId();n!==e&&this.timeline.onSessionIdChanged(e);var i=this.config.lastEventTime,o=null!=(t=this.config.lastEventId)?t:-1;this.config.sessionId=e,this.config.lastEventTime=void 0,this.config.pageCounter=0,eM(this.config.defaultTracking)&&(n&&i&&r.push(this.track(te,void 0,{device_id:this.previousSessionDeviceId,event_id:++o,session_id:n,time:i+1,user_id:this.previousSessionUserId}).promise),this.config.lastEventTime=this.config.sessionId);var a=this.trackCampaignEventIfNeeded(++o,r);return eM(this.config.defaultTracking)&&r.push(this.track(e9,void 0,{event_id:a?++o:o,session_id:this.config.sessionId,time:this.config.lastEventTime}).promise),this.previousSessionDeviceId=this.config.deviceId,this.previousSessionUserId=this.config.userId,j(Promise.all(r))},t.prototype.extendSession=function(){if(!this.config)return void this.q.push(this.extendSession.bind(this));this.config.lastEventTime=Date.now()},t.prototype.setTransport=function(e){if(!this.config)return void this.q.push(this.setTransport.bind(this,e));this.config.transportProvider=tf(e)},t.prototype.identify=function(t,r){if(eB(t)){var n=t._q;t._q=[],t=ez(new eS,n)}return(null==r?void 0:r.user_id)&&this.setUserId(r.user_id),(null==r?void 0:r.device_id)&&this.setDeviceId(r.device_id),e.prototype.identify.call(this,t,r)},t.prototype.groupIdentify=function(t,r,n,i){if(eB(n)){var o=n._q;n._q=[],n=ez(new eS,o)}return e.prototype.groupIdentify.call(this,t,r,n,i)},t.prototype.revenue=function(t,r){if(eB(t)){var n=t._q;t._q=[],t=ez(new ek,n)}return e.prototype.revenue.call(this,t,r)},t.prototype.trackCampaignEventIfNeeded=function(e,t){if(!this.webAttribution||!this.webAttribution.shouldTrackNewCampaign)return!1;var r=this.webAttribution.generateCampaignEvent(e);return t?t.push(this.track(r).promise):this.track(r),this.config.loggerProvider.log("Tracking attribution."),!0},t.prototype.process=function(t){return N(this,void 0,void 0,function(){var r,n,i;return M(this,function(o){return r=Date.now(),n=eC(this.config.sessionTimeout,this.config.lastEventTime),i=this.webAttribution&&this.webAttribution.shouldSetSessionIdOnNewCampaign(),t.event_type!==e9&&t.event_type!==te&&(!t.session_id||t.session_id===this.getSessionId())&&(n||i?(this.setSessionId(r),i&&this.config.loggerProvider.log("Created a new session for new campaign.")):n||this.trackCampaignEventIfNeeded()),[2,e.prototype.process.call(this,t)]})})},t.prototype.logBrowserOptions=function(e){try{var t=R(R({},e),{apiKey:e.apiKey.substring(0,10)+"********"});this.config.loggerProvider.debug("Initialized Amplitude with BrowserConfig:",JSON.stringify(t))}catch(e){this.config.loggerProvider.error("Error logging browser config",e)}},t}(eP),n3=function(e){return function(){var t=R({},e.config);return{logger:t.loggerProvider,logLevel:t.logLevel}}},n4=function(e,t){var r,n;t=(t=t.replace(/\[(\w+)\]/g,".$1")).replace(/^\./,"");try{for(var i=L(t.split(".")),o=i.next();!o.done;o=i.next()){var a=o.value;if(!(a in e))return;e=e[a]}}catch(e){r={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return e},n6=function(e,t){return function(){var r,n,i={};try{for(var o=L(t),a=o.next();!a.done;a=o.next()){var s=a.value;i[s]=n4(e,s)}}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return i}},n8=function(e,t,r,n,i){return void 0===i&&(i=null),function(){for(var o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];var l=r(),u=l.logger,c=l.logLevel;if(c&&c<a.Debug||!c||!u)return e.apply(i,o);var d={type:"invoke public method",name:t,args:o,stacktrace:(Error().stack||"").split("\n").slice(3).map(function(e){return e.trim()}),time:{start:new Date().toISOString()},states:{}};n&&d.states&&(d.states.before=n());var f=e.apply(i,o);return f&&f.promise?f.promise.then(function(){n&&d.states&&(d.states.after=n()),d.time&&(d.time.end=new Date().toISOString()),u.debug(JSON.stringify(d,null,2))}):(n&&d.states&&(d.states.after=n()),d.time&&(d.time.end=new Date().toISOString()),u.debug(JSON.stringify(d,null,2))),f}};!function(e){e.US="US",e.EU="EU",e.STAGING="STAGING"}(y||(y={}));var n7="[Amplitude]",n9="".concat(n7," Session Replay ID"),ie=y.US,it="".concat(n7," Session Replay Debug"),ir="amp-mask";!function(e){e.GET_SR_PROPS="get-sr-props",e.DEBUG_INFO="debug-info",e.FETCH_REQUEST="fetch-request",e.METADATA="metadata"}(x||(x={}));var ii=function(){function e(e){this.logger=e,this.log=this.getSafeMethod("log"),this.warn=this.getSafeMethod("warn"),this.error=this.getSafeMethod("error"),this.debug=this.getSafeMethod("debug")}return e.prototype.getSafeMethod=function(e){if(!this.logger)return function(){};var t,r=this.logger[e];return"function"==typeof r?(null!=(t=r.__rrweb_original__)?t:r).bind(this.logger):function(){}},e.prototype.enable=function(e){this.logger.enable(e)},e.prototype.disable=function(){this.logger.disable()},e}(),io=function(){return{flushMaxRetries:2,logLevel:a.Warn,loggerProvider:new ec,transportProvider:new eQ}},ia=function(e){function t(t,r){var n,i=this,o=io();return(i=e.call(this,R(R({transportProvider:o.transportProvider,loggerProvider:new ii(r.loggerProvider||o.loggerProvider)},r),{apiKey:t}))||this).flushMaxRetries=void 0!==r.flushMaxRetries&&r.flushMaxRetries<=o.flushMaxRetries?r.flushMaxRetries:o.flushMaxRetries,i.apiKey=t,i.sampleRate=r.sampleRate||0,i.serverZone=r.serverZone||ie,i.configServerUrl=r.configServerUrl,i.trackServerUrl=r.trackServerUrl,i.shouldInlineStylesheet=r.shouldInlineStylesheet,i.version=r.version,i.performanceConfig=r.performanceConfig,i.storeType=null!=(n=r.storeType)?n:"idb",r.privacyConfig&&(i.privacyConfig=r.privacyConfig),r.debugMode&&(i.debugMode=r.debugMode),r.experimental&&(i.experimental=r.experimental),i}return P(t,e),t}(ef),is=r(89852);!function(e){e.Unknown="unknown",e.Skipped="skipped",e.Success="success",e.RateLimit="rate_limit",e.PayloadTooLarge="payload_too_large",e.Invalid="invalid",e.Failed="failed",e.Timeout="Timeout",e.SystemError="SystemError"}(w||(w={}));var il=function(){function e(){}return e.prototype.send=function(e,t){return Promise.resolve(null)},e.prototype.buildResponse=function(e){if("object"!=typeof e)return null;var t,r,n,i,o,a,s,l,u,c,d,f,h,p,g,v,m,b,y,x,S,E,k=e.code||0,C=this.buildStatus(k);switch(C){case w.Success:return{status:C,statusCode:k,body:{eventsIngested:null!=(t=e.events_ingested)?t:0,payloadSizeBytes:null!=(r=e.payload_size_bytes)?r:0,serverUploadTime:null!=(n=e.server_upload_time)?n:0}};case w.Invalid:return{status:C,statusCode:k,body:{error:null!=(i=e.error)?i:"",missingField:null!=(o=e.missing_field)?o:"",eventsWithInvalidFields:null!=(a=e.events_with_invalid_fields)?a:{},eventsWithMissingFields:null!=(s=e.events_with_missing_fields)?s:{},eventsWithInvalidIdLengths:null!=(l=e.events_with_invalid_id_lengths)?l:{},epsThreshold:null!=(u=e.eps_threshold)?u:0,exceededDailyQuotaDevices:null!=(c=e.exceeded_daily_quota_devices)?c:{},silencedDevices:null!=(d=e.silenced_devices)?d:[],silencedEvents:null!=(f=e.silenced_events)?f:[],throttledDevices:null!=(h=e.throttled_devices)?h:{},throttledEvents:null!=(p=e.throttled_events)?p:[]}};case w.PayloadTooLarge:return{status:C,statusCode:k,body:{error:null!=(g=e.error)?g:""}};case w.RateLimit:return{status:C,statusCode:k,body:{error:null!=(v=e.error)?v:"",epsThreshold:null!=(m=e.eps_threshold)?m:0,throttledDevices:null!=(b=e.throttled_devices)?b:{},throttledUsers:null!=(y=e.throttled_users)?y:{},exceededDailyQuotaDevices:null!=(x=e.exceeded_daily_quota_devices)?x:{},exceededDailyQuotaUsers:null!=(S=e.exceeded_daily_quota_users)?S:{},throttledEvents:null!=(E=e.throttled_events)?E:[]}};case w.Timeout:default:return{status:C,statusCode:k}}},e.prototype.buildStatus=function(e){return e>=200&&e<300?w.Success:429===e?w.RateLimit:413===e?w.PayloadTooLarge:408===e?w.Timeout:e>=400&&e<500?w.Invalid:e>=500?w.Failed:w.Unknown},e}();!function(e){e.US="US",e.EU="EU",e.STAGING="STAGING"}(S||(S={}));var iu="Remote config fetch rejected due to timeout after 5 seconds",ic="Unexpected error occurred",id=function(){function e(e){var t=e.localConfig,r=e.configKeys,n=this;this.retryTimeout=1e3,this.attempts=0,this.sessionTargetingMatch=!1,this.metrics={},this.getRemoteConfig=function(e,t,r){return N(n,void 0,void 0,function(){var n,i,o;return M(this,function(a){switch(a.label){case 0:return n=Date.now(),[4,this.fetchWithTimeout(r)];case 1:if((i=a.sent())&&(o=i.configs&&i.configs[e]))return this.metrics.fetchTimeAPISuccess=Date.now()-n,[2,o[t]];return this.metrics.fetchTimeAPIFail=Date.now()-n,[2,void 0]}})})},this.fetchWithTimeout=function(e){return N(n,void 0,void 0,function(){var t,r,n;return M(this,function(i){switch(i.label){case 0:return t=new AbortController,r=setTimeout(function(){return t.abort()},5e3),[4,this.fetchRemoteConfig(t.signal,e)];case 1:return n=i.sent(),clearTimeout(r),[2,n]}})})},this.fetchRemoteConfig=function(e,t){return N(n,void 0,void 0,function(){var r,n,i,o,a,s,l,u,c,d,f;return M(this,function(h){switch(h.label){case 0:if(t===this.lastFetchedSessionId&&this.attempts>=this.localConfig.flushMaxRetries)return[2,this.completeRequest({err:"Remote config fetch rejected due to exceeded retry count"})];if(e.aborted)return[2,this.completeRequest({err:iu})];t!==this.lastFetchedSessionId&&(this.lastFetchedSessionId=t,this.attempts=0);h.label=1;case 1:h.trys.push([1,3,,4]),r=new URLSearchParams({api_key:this.localConfig.apiKey});try{for(i=(n=L(this.configKeys)).next();!i.done;i=n.next())o=i.value,r.append("config_keys",o)}catch(e){c={error:e}}finally{try{i&&!i.done&&(d=n.return)&&d.call(n)}finally{if(c)throw c.error}}return t&&r.set("session_id",String(t)),a={headers:{Accept:"*/*"},method:"GET"},s="".concat(this.getServerUrl(),"?").concat(r.toString()),this.attempts+=1,[4,fetch(s,R(R({},a),{signal:e}))];case 2:if(null===(l=h.sent()))return[2,this.completeRequest({err:ic})];switch(new il().buildStatus(l.status)){case w.Success:return this.attempts=0,[2,this.parseAndStoreConfig(l)];case w.Failed:return[2,this.retryFetch(e,t)];default:return[2,this.completeRequest({err:"Network error occurred, remote config fetch failed"})]}case 3:if(u=h.sent(),e.aborted)return[2,this.completeRequest({err:iu})];return[2,this.completeRequest({err:null!=(f=u.message)?f:ic})];case 4:return[2]}})})},this.retryFetch=function(e,t){return N(n,void 0,void 0,function(){var r=this;return M(this,function(n){switch(n.label){case 0:return[4,new Promise(function(e){return setTimeout(e,r.attempts*r.retryTimeout)})];case 1:return n.sent(),[2,this.fetchRemoteConfig(e,t)]}})})},this.parseAndStoreConfig=function(e){return N(n,void 0,void 0,function(){var t;return M(this,function(r){switch(r.label){case 0:return[4,e.json()];case 1:return t=r.sent(),this.completeRequest({success:"Remote config successfully fetched"}),[2,t]}})})},this.localConfig=t,this.configKeys=r}return e.prototype.getServerUrl=function(){return this.localConfig.configServerUrl?this.localConfig.configServerUrl:this.localConfig.serverZone===S.STAGING?"https://sr-client-cfg.stag2.amplitude.com/config":this.localConfig.serverZone===S.EU?"https://sr-client-cfg.eu.amplitude.com/config":"https://sr-client-cfg.amplitude.com/config"},e.prototype.completeRequest=function(e){var t=e.err,r=e.success;if(t)throw Error(t);r&&this.localConfig.loggerProvider.log(r)},e}(),ih=function(e){var t=e.localConfig,r=e.configKeys;return N(void 0,void 0,void 0,function(){return M(this,function(e){return[2,new id({localConfig:t,configKeys:r})]})})},ip="medium",ig=function(e,t,r){switch(t){case"light":if("input"!==e)return!0;var n,i,o=r?(i=(n=r).type,n.hasAttribute("data-rr-is-password")?"password":i?i.toLowerCase():null):"";if(!o)return!1;if(["password","hidden","email","tel"].includes(o)||r.autocomplete.startsWith("cc-"))return!0;return!1;case"medium":case"conservative":return!0;default:return ig(e,ip,r)}},iv=function(e,t,r){var n,i,o;if(void 0===t&&(t={defaultMaskLevel:ip}),r){if(r.closest("."+ir)||(null!=(n=t.maskSelector)?n:[]).some(function(e){return r.closest(e)}))return!0;if(r.closest(".amp-unmask")||(null!=(i=t.unmaskSelector)?i:[]).some(function(e){return r.closest(e)}))return!1}return ig(e,null!=(o=t.defaultMaskLevel)?o:ip,r)},im=function(e,t){return function(r,n){return iv(e,t,n)?r.replace(/[^\s]/g,"*"):r}},ib=function(e){var t=0;if(0===e.length)return t;for(var r=0;r<e.length;r++)t=(t<<5)-t+e.charCodeAt(r)|0;return t},iy=function(){var e=z();return(null==e?void 0:e.location)?e.location.href:""},ix=function(e,t){return t||(e===y.STAGING?"https://api-sr.stag2.amplitude.com/sessions/v2/track":e===y.EU?"https://api-sr.eu.amplitude.com/sessions/v2/track":"https://api-sr.amplitude.com/sessions/v2/track")},iw=function(){return N(void 0,void 0,void 0,function(){var e,t,r,n;return M(this,function(i){switch(i.label){case 0:if(i.trys.push([0,3,,4]),!(e=z()))return[3,2];return[4,e.navigator.storage.estimate()];case 1:return r=(t=i.sent()).usage,n=t.quota,[2,{totalStorageSize:r?Math.round(r/1024):0,percentOfQuota:r&&n?Math.round((r/n+Number.EPSILON)*1e3)/1e3:0,usageDetails:JSON.stringify(t.usageDetails)}];case 2:return[3,4];case 3:return i.sent(),[3,4];case 4:return[2,{totalStorageSize:0,percentOfQuota:0,usageDetails:""}]}})})},iS=function(e){var t=R({},e),r=t.apiKey;return t.apiKey="****".concat(r.substring(r.length-4)),t},iE=function(e,t){var r=document.createDocumentFragment(),n=function(e){if(void 0===e&&(e=[]),"string"==typeof e&&(e=[e]),0!==(e=e.filter(function(e){try{r.querySelector(e)}catch(r){return t.warn('[session-replay-browser] omitting selector "'.concat(e,'" because it is invalid')),!1}return!0})).length)return e};return e.blockSelector=n(e.blockSelector),e.maskSelector=n(e.maskSelector),e.unmaskSelector=n(e.unmaskSelector),e},ik=function(){function e(e,t){this.localConfig=t,this.remoteConfigFetch=e}return e.prototype.generateJoinedConfig=function(e){var t,r,n;return N(this,void 0,void 0,function(){var i,o,a,s,l,u,c,d,f,h,p,g,v,m,b,y,x,w,S,E;return M(this,function(k){switch(k.label){case 0:(i=R({},this.localConfig)).optOut=this.localConfig.optOut,i.captureEnabled=!0,k.label=1;case 1:return k.trys.push([1,6,,7]),[4,this.remoteConfigFetch.getRemoteConfig("sessionReplay","sr_sampling_config",e)];case 2:return a=k.sent(),[4,this.remoteConfigFetch.getRemoteConfig("sessionReplay","sr_privacy_config",e)];case 3:return s=k.sent(),l=i,[4,this.remoteConfigFetch.getRemoteConfig("sessionReplay","sr_interaction_config",e)];case 4:return l.interactionConfig=k.sent(),u=i,[4,this.remoteConfigFetch.getRemoteConfig("sessionReplay","sr_logging_config",e)];case 5:return u.loggingConfig=k.sent(),(a||s)&&(o={},a&&(o.sr_sampling_config=a),s&&(o.sr_privacy_config=s)),[3,7];case 6:return c=k.sent(),this.localConfig.loggerProvider.warn(c.message),i.captureEnabled=!1,[3,7];case 7:if(!o)return[2,{localConfig:this.localConfig,joinedConfig:i,remoteConfig:o}];if(d=o.sr_sampling_config,f=o.sr_privacy_config,d&&Object.keys(d).length>0?(Object.prototype.hasOwnProperty.call(d,"capture_enabled")?i.captureEnabled=d.capture_enabled:i.captureEnabled=!1,Object.prototype.hasOwnProperty.call(d,"sample_rate")&&(i.sampleRate=d.sample_rate)):(i.captureEnabled=!0,this.localConfig.loggerProvider.debug("Remote config successfully fetched, but no values set for project, Session Replay capture enabled.")),f){h=null!=(t=i.privacyConfig)?t:{},p={defaultMaskLevel:null!=(n=null!=(r=f.defaultMaskLevel)?r:h.defaultMaskLevel)?n:"medium",blockSelector:[],maskSelector:[],unmaskSelector:[]},v=R(R({},(g=function(e){var t,r,n,i,o,a,s,l,u,c={};"string"==typeof e.blockSelector&&(e.blockSelector=[e.blockSelector]);try{for(var d=L(null!=(s=e.blockSelector)?s:[]),f=d.next();!f.done;f=d.next()){var h=f.value;c[h]="block"}}catch(e){t={error:e}}finally{try{f&&!f.done&&(r=d.return)&&r.call(d)}finally{if(t)throw t.error}}try{for(var p=L(null!=(l=e.maskSelector)?l:[]),g=p.next();!g.done;g=p.next()){var h=g.value;c[h]="mask"}}catch(e){n={error:e}}finally{try{g&&!g.done&&(i=p.return)&&i.call(p)}finally{if(n)throw n.error}}try{for(var v=L(null!=(u=e.unmaskSelector)?u:[]),m=v.next();!m.done;m=v.next()){var h=m.value;c[h]="unmask"}}catch(e){o={error:e}}finally{try{m&&!m.done&&(a=v.return)&&a.call(v)}finally{if(o)throw o.error}}return c})(h)),g(f));try{for(b=(m=L(Object.entries(v))).next();!b.done;b=m.next())x=(y=V(b.value,2))[0],w=y[1],"mask"===w?p.maskSelector.push(x):"block"===w?p.blockSelector.push(x):"unmask"===w&&p.unmaskSelector.push(x)}catch(e){S={error:e}}finally{try{b&&!b.done&&(E=m.return)&&E.call(m)}finally{if(S)throw S.error}}i.privacyConfig=iE(p,this.localConfig.loggerProvider)}return this.localConfig.loggerProvider.debug(JSON.stringify({name:"session replay joined config",config:iS(i)},null,2)),[2,{localConfig:this.localConfig,joinedConfig:i,remoteConfig:o}]}})})},e}(),iC="Failed to store session replay events in IndexedDB",iO="1.22.10",iI=function(){function e(e){var t=e.trackServerUrl,r=e.loggerProvider,n=e.payloadBatcher;this.storageKey="",this.retryTimeout=1e3,this.scheduled=null,this.queue=[],this.loggerProvider=r,this.payloadBatcher=n||function(e){return e},this.trackServerUrl=t}return e.prototype.sendEventsList=function(e){this.addToQueue(R(R({},e),{attempts:0,timeout:0}))},e.prototype.addToQueue=function(){for(var e=this,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];t.filter(function(t){return t.attempts<(t.flushMaxRetries||0)?(t.attempts+=1,!0):(e.completeRequest({context:t,err:"Session replay event batch rejected due to exceeded retry count"}),!1)}).forEach(function(t){if(e.queue=e.queue.concat(t),0===t.timeout)return void e.schedule(0);setTimeout(function(){t.timeout=0,e.schedule(0)},t.timeout)})},e.prototype.schedule=function(e){var t=this;this.scheduled||(this.scheduled=setTimeout(function(){t.flush(!0).then(function(){t.queue.length>0&&t.schedule(e)})},e))},e.prototype.flush=function(e){return void 0===e&&(e=!1),N(this,void 0,void 0,function(){var t,r,n=this;return M(this,function(i){switch(i.label){case 0:return t=[],r=[],this.queue.forEach(function(e){return 0===e.timeout?t.push(e):r.push(e)}),this.queue=r,this.scheduled&&(clearTimeout(this.scheduled),this.scheduled=null),[4,Promise.all(t.map(function(t){return n.send(t,e)}))];case 1:return i.sent(),[2]}})})},e.prototype.send=function(e,t){var r,n;return void 0===t&&(t=!0),N(this,void 0,void 0,function(){var i,o,a,s,l,u,c,d,f,h,p,g;return M(this,function(v){switch(v.label){case 0:if(!(i=e.apiKey))return[2,this.completeRequest({context:e,err:"Session replay event batch not sent due to missing api key"})];if(!(o=e.deviceId))return[2,this.completeRequest({context:e,err:"Session replay event batch not sent due to missing device ID"})];if(a=iy(),s=iO,l=e.sampleRate,u=new URLSearchParams({device_id:o,session_id:"".concat(e.sessionId),type:"".concat(e.type)}),c="".concat((null==(r=e.version)?void 0:r.type)||"standalone","/").concat((null==(n=e.version)?void 0:n.version)||s),0===(d=this.payloadBatcher({version:1,events:e.events})).events.length)return this.completeRequest({context:e}),[2];v.label=1;case 1:return v.trys.push([1,3,,4]),f={headers:{"Content-Type":"application/json",Accept:"*/*",Authorization:"Bearer ".concat(i),"X-Client-Version":s,"X-Client-Library":c,"X-Client-Url":a.substring(0,1e3),"X-Client-Sample-Rate":"".concat(l)},body:JSON.stringify(d),method:"POST"},[4,fetch("".concat(ix(e.serverZone,this.trackServerUrl),"?").concat(u.toString()),f)];case 2:if(null===(h=v.sent()))return this.completeRequest({context:e,err:"Unexpected error occurred"}),[2];if(t)this.handleReponse(h.status,e);else{p="";try{p=JSON.stringify(h.body,null,2)}catch(e){}this.completeRequest({context:e,success:"".concat(h.status,": ").concat(p)})}return[3,4];case 3:return g=v.sent(),this.completeRequest({context:e,err:g}),[3,4];case 4:return[2]}})})},e.prototype.handleReponse=function(e,t){switch(new eX().buildStatus(e)){case o.Success:this.handleSuccessResponse(t);break;case o.Failed:this.handleOtherResponse(t);break;default:this.completeRequest({context:t,err:"Network error occurred, event batch rejected"})}},e.prototype.handleSuccessResponse=function(e){var t=Math.round(new Blob(e.events).size/1024);this.completeRequest({context:e,success:"Session replay event batch tracked successfully for session id ".concat(e.sessionId,", size of events: ").concat(t," KB")})},e.prototype.handleOtherResponse=function(e){this.addToQueue(R(R({},e),{timeout:e.attempts*this.retryTimeout}))},e.prototype.completeRequest=function(e){var t=e.context,r=e.err,n=e.success;t.onComplete(),r?this.loggerProvider.warn(r):n&&this.loggerProvider.log(n)},e}();let i_=(e,t)=>t.some(t=>e instanceof t),iT=new WeakMap,iP=new WeakMap,iR=new WeakMap,iA={get(e,t,r){if(e instanceof IDBTransaction){if("done"===t)return iT.get(e);if("store"===t)return r.objectStoreNames[1]?void 0:r.objectStore(r.objectStoreNames[0])}return iN(e[t])},set:(e,t,r)=>(e[t]=r,!0),has:(e,t)=>e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e};function iN(e){if(e instanceof IDBRequest){let t=new Promise((t,r)=>{let n=()=>{e.removeEventListener("success",i),e.removeEventListener("error",o)},i=()=>{t(iN(e.result)),n()},o=()=>{r(e.error),n()};e.addEventListener("success",i),e.addEventListener("error",o)});return iR.set(t,e),t}if(iP.has(e))return iP.get(e);let t=function(e){if("function"==typeof e)return(i||(i=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(e)?function(...t){return e.apply(iM(this),t),iN(this.request)}:function(...t){return iN(e.apply(iM(this),t))};return(e instanceof IDBTransaction&&function(e){if(iT.has(e))return;let t=new Promise((t,r)=>{let n=()=>{e.removeEventListener("complete",i),e.removeEventListener("error",o),e.removeEventListener("abort",o)},i=()=>{t(),n()},o=()=>{r(e.error||new DOMException("AbortError","AbortError")),n()};e.addEventListener("complete",i),e.addEventListener("error",o),e.addEventListener("abort",o)});iT.set(e,t)}(e),i_(e,n||(n=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])))?new Proxy(e,iA):e}(e);return t!==e&&(iP.set(e,t),iR.set(t,e)),t}let iM=e=>iR.get(e),iL=["get","getKey","getAll","getAllKeys","count"],iV=["put","add","delete","clear"],iD=new Map;function iF(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&"string"==typeof t))return;if(iD.get(t))return iD.get(t);let r=t.replace(/FromIndex$/,""),n=t!==r,i=iV.includes(r);if(!(r in(n?IDBIndex:IDBObjectStore).prototype)||!(i||iL.includes(r)))return;let o=async function(e,...t){let o=this.transaction(e,i?"readwrite":"readonly"),a=o.store;return n&&(a=a.index(t.shift())),(await Promise.all([a[r](...t),i&&o.done]))[0]};return iD.set(t,o),o}iA=(e=>({...e,get:(t,r,n)=>iF(t,r)||e.get(t,r,n),has:(t,r)=>!!iF(t,r)||e.has(t,r)}))(iA);let ij=["continue","continuePrimaryKey","advance"],iz={},iB=new WeakMap,iU=new WeakMap,iH={get(e,t){if(!ij.includes(t))return e[t];let r=iz[t];return r||(r=iz[t]=function(...e){iB.set(this,iU.get(this)[t](...e))}),r}};async function*iW(...e){let t=this;if(t instanceof IDBCursor||(t=await t.openCursor(...e)),!t)return;let r=new Proxy(t,iH);for(iU.set(r,t),iR.set(r,iM(t));t;)yield r,t=await (iB.get(r)||t.continue()),iB.delete(r)}function i$(e,t){return t===Symbol.asyncIterator&&i_(e,[IDBIndex,IDBObjectStore,IDBCursor])||"iterate"===t&&i_(e,[IDBIndex,IDBObjectStore])}iA=(e=>({...e,get:(t,r,n)=>i$(t,r)?iW:e.get(t,r,n),has:(t,r)=>i$(t,r)||e.has(t,r)}))(iA);var iq=function(){function e(e){var t,r,n,i=this;this.minInterval=500,this.maxInterval=1e4,this.maxPersistedEventsSize=1e6,this.interval=this.minInterval,this._timeAtLastSplit=Date.now(),this.shouldSplitEventsList=function(e,t){var r=new Blob([t]).size;return new Blob(e).size+r>=i.maxPersistedEventsSize||Date.now()-i.timeAtLastSplit>i.interval&&!!e.length&&(i.interval=Math.min(i.maxInterval,i.interval+i.minInterval),i._timeAtLastSplit=Date.now(),!0)},this.loggerProvider=e.loggerProvider,this.minInterval=null!=(t=e.minInterval)?t:this.minInterval,this.maxInterval=null!=(r=e.maxInterval)?r:this.maxInterval,this.maxPersistedEventsSize=null!=(n=e.maxPersistedEventsSize)?n:this.maxPersistedEventsSize}return Object.defineProperty(e.prototype,"timeAtLastSplit",{get:function(){return this._timeAtLastSplit},enumerable:!1,configurable:!0}),e}();!function(e){e.RECORDING="recording",e.SENT="sent"}(E||(E={}));var iG="sessionCurrentSequence",iK="sequencesToSend",iY=function(){var e=z();return new Promise(function(t,r){if(!e)return r(Error("Global scope not found"));if(!e.indexedDB)return r(Error("Session Replay: cannot find indexedDB"));try{var n=e.indexedDB.open("keyval-store");n.onupgradeneeded=function(){1===n.result.version&&(n.result.close(),n.transaction&&n.transaction.abort(),e.indexedDB.deleteDatabase("keyval-store"),t())},n.onsuccess=function(){t(n.result)}}catch(e){r(e)}})},iX=function(e){return N(void 0,void 0,void 0,function(){return M(this,function(t){switch(t.label){case 0:if(!(e.length>0))return[3,2];return[4,Promise.all(e.splice(0,10))];case 1:return t.sent(),[3,0];case 2:return[2]}})})},iQ=function(e){var t,r;return e.objectStoreNames.contains(iG)||(r=e.createObjectStore(iG,{keyPath:"sessionId"})),e.objectStoreNames.contains(iK)||(t=e.createObjectStore(iK,{keyPath:"sequenceId",autoIncrement:!0})).createIndex("sessionId","sessionId"),{sequencesStore:t,currentSequenceStore:r}},iJ=function(e){function t(t){var r=e.call(this,t)||this;return r.getSequencesToSend=function(){return N(r,void 0,void 0,function(){var e,t,r,n,i,o;return M(this,function(a){switch(a.label){case 0:return a.trys.push([0,5,,6]),e=[],[4,this.db.transaction("sequencesToSend").store.openCursor()];case 1:t=a.sent(),a.label=2;case 2:if(!t)return[3,4];return n=(r=t.value).sessionId,i=r.events,e.push({events:i,sequenceId:t.key,sessionId:n}),[4,t.continue()];case 3:return t=a.sent(),[3,2];case 4:return[2,e];case 5:return o=a.sent(),this.loggerProvider.warn("".concat(iC,": ").concat(o)),[3,6];case 6:return[2,void 0]}})})},r.storeCurrentSequence=function(e){return N(r,void 0,void 0,function(){var t,r,n;return M(this,function(i){switch(i.label){case 0:return i.trys.push([0,4,,5]),[4,this.db.get(iG,e)];case 1:if(!(t=i.sent()))return[2,void 0];return[4,this.db.put(iK,{sessionId:e,events:t.events})];case 2:return r=i.sent(),[4,this.db.put(iG,{sessionId:e,events:[]})];case 3:return i.sent(),[2,R(R({},t),{sessionId:e,sequenceId:r})];case 4:return n=i.sent(),this.loggerProvider.warn("".concat(iC,": ").concat(n)),[3,5];case 5:return[2,void 0]}})})},r.addEventToCurrentSequence=function(e,t){return N(r,void 0,void 0,function(){var r,n,i,o,a,s;return M(this,function(l){switch(l.label){case 0:return l.trys.push([0,10,,11]),[4,(r=this.db.transaction(iG,"readwrite")).store.get(e)];case 1:if(n=l.sent())return[3,3];return[4,r.store.put({sessionId:e,events:[t]})];case 2:return l.sent(),[2];case 3:if(i=void 0,!this.shouldSplitEventsList(n.events,t))return[3,5];return i=n.events,[4,r.store.put({sessionId:e,events:[t]})];case 4:return l.sent(),[3,7];case 5:return o=n.events.concat(t),[4,r.store.put({sessionId:e,events:o})];case 6:l.sent(),l.label=7;case 7:return[4,r.done];case 8:if(l.sent(),!i)return[2,void 0];return[4,this.storeSendingEvents(e,i)];case 9:if(!(a=l.sent()))return[2,void 0];return[2,{events:i,sessionId:e,sequenceId:a}];case 10:return s=l.sent(),this.loggerProvider.warn("".concat(iC,": ").concat(s)),[3,11];case 11:return[2,void 0]}})})},r.storeSendingEvents=function(e,t){return N(r,void 0,void 0,function(){var r;return M(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,this.db.put(iK,{sessionId:e,events:t})];case 1:return[2,n.sent()];case 2:return r=n.sent(),this.loggerProvider.warn("".concat(iC,": ").concat(r)),[3,3];case 3:return[2,void 0]}})})},r.cleanUpSessionEventsStore=function(e,t){return N(r,void 0,void 0,function(){var e;return M(this,function(r){switch(r.label){case 0:if(!t)return[2];r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this.db.delete(iK,t)];case 2:return r.sent(),[3,4];case 3:return e=r.sent(),this.loggerProvider.warn("".concat(iC,": ").concat(e)),[3,4];case 4:return[2]}})})},r.transitionFromKeyValStore=function(e){return N(r,void 0,void 0,function(){var t,r,n,i,o,a,s,l=this;return M(this,function(u){switch(u.label){case 0:return u.trys.push([0,6,,7]),[4,iY()];case 1:if(!(t=u.sent()))return[2];r=function(e,t){return N(l,void 0,void 0,function(){var r,n,i=this;return M(this,function(o){switch(o.label){case 0:return r=t.sessionSequences,n=[],Object.keys(r).forEach(function(o){var a=parseInt(o,10),s=r[a];if(a===t.currentSequenceId){var l=s.events.map(function(t){return N(i,void 0,void 0,function(){return M(this,function(r){return[2,this.addEventToCurrentSequence(e,t)]})})});n.concat(l)}else s.status!==E.SENT&&n.push(i.storeSendingEvents(e,s.events))}),[4,iX(n)];case 1:return o.sent(),[2]}})})},n="".concat(Z,"_").concat(this.apiKey.substring(0,10)),u.label=2;case 2:return u.trys.push([2,4,,5]),i=t.transaction("keyval").objectStore("keyval").getAll(n),[4,new Promise(function(t){i.onsuccess=function(n){return N(l,void 0,void 0,function(){var i,o,a,s=this;return M(this,function(l){switch(l.label){case 0:if(!(o=(i=n&&n.target.result)&&i[0]))return[3,2];return a=[],Object.keys(o).forEach(function(t){var n=parseInt(t,10),i=o[n];if(e===n)a.push(r(n,i));else{var l=i.sessionSequences;Object.keys(l).forEach(function(e){var t=parseInt(e,10);l[t].status!==E.SENT&&a.push(s.storeSendingEvents(n,l[t].events))})}}),[4,iX(a)];case 1:l.sent(),l.label=2;case 2:return t(),[2]}})})}})];case 3:return u.sent(),(o=z())&&o.indexedDB.deleteDatabase("keyval-store"),[3,5];case 4:return a=u.sent(),this.loggerProvider.warn("Failed to transition session replay events from keyval to new store: ".concat(a)),[3,5];case 5:return[3,7];case 6:return s=u.sent(),this.loggerProvider.warn("Failed to access keyval store: ".concat(s,". For more information, visit: https://www.docs.developers.amplitude.com/session-replay/sdks/standalone/#indexeddb-best-practices")),[3,7];case 7:return[2]}})})},r.apiKey=t.apiKey,r.db=t.db,r}return P(t,e),t.new=function(e,r,n){return N(this,void 0,void 0,function(){var i,o,a,s;return M(this,function(l){switch(l.label){case 0:var u;return l.trys.push([0,3,,4]),i="replay"===e?"":"_".concat(e),[4,(u="".concat(r.apiKey.substring(0,10),"_amp_session_replay_events").concat(i),N(void 0,void 0,void 0,function(){return M(this,function(e){switch(e.label){case 0:return[4,function(e,t,{blocked:r,upgrade:n,blocking:i,terminated:o}={}){let a=indexedDB.open(e,1),s=iN(a);return n&&a.addEventListener("upgradeneeded",e=>{n(iN(a.result),e.oldVersion,e.newVersion,iN(a.transaction),e)}),r&&a.addEventListener("blocked",e=>r(e.oldVersion,e.newVersion,e)),s.then(e=>{o&&e.addEventListener("close",()=>o()),i&&e.addEventListener("versionchange",e=>i(e.oldVersion,e.newVersion,e))}).catch(()=>{}),s}(u,0,{upgrade:iQ})];case 1:return[2,e.sent()]}})}))];case 1:return o=l.sent(),[4,(a=new t(R(R({},r),{db:o}))).transitionFromKeyValStore(n)];case 2:return l.sent(),[2,a];case 3:return s=l.sent(),r.loggerProvider.warn("".concat(iC,": ").concat(s)),[3,4];case 4:return[2]}})})},t.prototype.getCurrentSequenceEvents=function(e){return N(this,void 0,void 0,function(){var t,r,n,i,o,a;return M(this,function(s){switch(s.label){case 0:if(!e)return[3,2];return[4,this.db.get("sessionCurrentSequence",e)];case 1:if(!(t=s.sent()))return[2,void 0];return[2,[t]];case 2:r=[],s.label=3;case 3:return s.trys.push([3,8,9,10]),[4,this.db.getAll("sessionCurrentSequence")];case 4:i=(n=L.apply(void 0,[s.sent()])).next(),s.label=5;case 5:if(i.done)return[3,7];t=i.value,r.push(t),s.label=6;case 6:return i=n.next(),[3,5];case 7:return[3,10];case 8:return o={error:s.sent()},[3,10];case 9:try{i&&!i.done&&(a=n.return)&&a.call(n)}finally{if(o)throw o.error}return[7];case 10:return[2,r]}})})},t}(iq),iZ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.finalizedSequences={},t.sequences={},t.sequenceId=0,t}return P(t,e),t.prototype.resetCurrentSequence=function(e){this.sequences[e]=[]},t.prototype.addSequence=function(e){var t=this.sequenceId++,r=D([],V(this.sequences[e]),!1);return this.finalizedSequences[t]={sessionId:e,events:r},this.resetCurrentSequence(e),{sequenceId:t,events:r,sessionId:e}},t.prototype.getSequencesToSend=function(){return N(this,void 0,void 0,function(){return M(this,function(e){return[2,Object.entries(this.finalizedSequences).map(function(e){var t=V(e,2),r=t[0],n=t[1],i=n.sessionId,o=n.events;return{sequenceId:Number(r),sessionId:i,events:o}})]})})},t.prototype.storeCurrentSequence=function(e){return N(this,void 0,void 0,function(){return M(this,function(t){return this.sequences[e]?[2,this.addSequence(e)]:[2,void 0]})})},t.prototype.addEventToCurrentSequence=function(e,t){return N(this,void 0,void 0,function(){var r;return M(this,function(n){return this.sequences[e]||this.resetCurrentSequence(e),this.shouldSplitEventsList(this.sequences[e],t)&&(r=this.addSequence(e)),this.sequences[e].push(t),[2,r]})})},t.prototype.storeSendingEvents=function(e,t){return N(this,void 0,void 0,function(){return M(this,function(r){return this.finalizedSequences[this.sequenceId]={sessionId:e,events:t},[2,this.sequenceId++]})})},t.prototype.cleanUpSessionEventsStore=function(e,t){return N(this,void 0,void 0,function(){return M(this,function(e){return void 0!==t&&delete this.finalizedSequences[t],[2]})})},t}(iq),i0=function(e){var t=e.config,r=e.sessionId,n=e.minInterval,i=e.maxInterval,o=e.type,a=e.payloadBatcher,s=e.storeType;return N(void 0,void 0,void 0,function(){var e,l,u,c,d;function f(t){return void 0===t&&(t=!1),N(this,void 0,void 0,function(){return M(this,function(r){return[2,e.flush(t)]})})}return M(this,function(h){switch(h.label){case 0:if(e=new iI(R(R({},t),{loggerProvider:t.loggerProvider,payloadBatcher:a})),l=function(){return new iZ({loggerProvider:t.loggerProvider,maxInterval:i,minInterval:n})},"idb"!==s)return[3,2];return[4,N(void 0,void 0,void 0,function(){var e;return M(this,function(a){switch(a.label){case 0:return[4,iJ.new(o,{loggerProvider:t.loggerProvider,minInterval:n,maxInterval:i,apiKey:t.apiKey},r)];case 1:return e=a.sent(),t.loggerProvider.log("Failed to initialize idb store, falling back to memory store."),[2,null!=e?e:l()]}})})];case 1:return c=h.sent(),[3,3];case 2:c=l(),h.label=3;case 3:return u=c,d=function(r){var n=r.events,i=r.sessionId,a=r.deviceId,s=r.sequenceId;t.debugMode&&iw().then(function(e){var r=e.totalStorageSize,n=e.percentOfQuota,i=e.usageDetails;t.loggerProvider.debug("Total storage size: ".concat(r," KB, percentage of quota: ").concat(n,"%, usage details: ").concat(i))}).catch(function(){}),e.sendEventsList({events:n,sessionId:i,flushMaxRetries:t.flushMaxRetries,apiKey:t.apiKey,deviceId:a,sampleRate:t.sampleRate,serverZone:t.serverZone,version:t.version,type:o,onComplete:function(){return N(void 0,void 0,void 0,function(){return M(this,function(e){switch(e.label){case 0:return[4,u.cleanUpSessionEventsStore(i,s)];case 1:return e.sent(),[2]}})})}})},[2,{sendCurrentSequenceEvents:function(e){var r=e.sessionId,n=e.deviceId;u.storeCurrentSequence(r).then(function(e){e&&d({sequenceId:e.sequenceId,events:e.events,sessionId:e.sessionId,deviceId:n})}).catch(function(e){t.loggerProvider.warn("Failed to get current sequence of session replay events for session:",e)})},addEvent:function(e){var r=e.event,n=e.sessionId,i=e.deviceId;u.addEventToCurrentSequence(n,r.data).then(function(e){return e&&d({sequenceId:e.sequenceId,events:e.events,sessionId:e.sessionId,deviceId:i})}).catch(function(e){t.loggerProvider.warn("Failed to add event to session replay capture:",e)})},sendStoredEvents:function(e){var t=e.deviceId;return N(void 0,void 0,void 0,function(){var e;return M(this,function(r){switch(r.label){case 0:return[4,u.getSequencesToSend()];case 1:return(e=r.sent())&&e.forEach(function(e){d({sequenceId:e.sequenceId,events:e.events,sessionId:e.sessionId,deviceId:t})}),[2]}})})},flush:f}]}})})},i1=function(){function e(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=new Map;e.forEach(function(e){r.set(e.name,e.manager)}),this.managers=r}return e.prototype.sendStoredEvents=function(e){return N(this,void 0,void 0,function(){var t;return M(this,function(r){switch(r.label){case 0:return t=[],this.managers.forEach(function(r){t.push(r.sendStoredEvents(e))}),[4,Promise.all(t)];case 1:return r.sent(),[2]}})})},e.prototype.addEvent=function(e){var t,r=e.sessionId,n=e.event,i=e.deviceId;null==(t=this.managers.get(n.type))||t.addEvent({sessionId:r,event:n,deviceId:i})},e.prototype.sendCurrentSequenceEvents=function(e){var t=e.sessionId,r=e.deviceId;this.managers.forEach(function(e){e.sendCurrentSequenceEvents({sessionId:t,deviceId:r})})},e.prototype.flush=function(e){return N(this,void 0,void 0,function(){var t;return M(this,function(r){switch(r.label){case 0:return t=[],this.managers.forEach(function(r){t.push(r.flush(e))}),[4,Promise.all(t)];case 1:return r.sent(),[2]}})})},e}(),i2=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(i2||{}),i5=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(i5||{}),i3=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(i3||{}),i4=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(i4||{}),i6=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(i6||{}),i8=(e=>(e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e[e.RateChange=4]="RateChange",e))(i8||{}),i7=(e=>(e.Start="start",e.Pause="pause",e.Resume="resume",e.Resize="resize",e.Finish="finish",e.FullsnapshotRebuilded="fullsnapshot-rebuilded",e.LoadStylesheetStart="load-stylesheet-start",e.LoadStylesheetEnd="load-stylesheet-end",e.SkipStart="skip-start",e.SkipEnd="skip-end",e.MouseInteraction="mouse-interaction",e.EventCast="event-cast",e.CustomEvent="custom-event",e.Flush="flush",e.StateChange="state-change",e.PlayBack="play-back",e.Destroy="destroy",e))(i7||{}),i9=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(i9||{});function oe(e,t,r){for(var n=null,i=[],o=e,a=0;o&&"break"!==function(){var e,s,l,u,c=new Date().getTime()-O.getTime();if(void 0!==k.timeoutMs&&c>k.timeoutMs)throw Error("Timeout: Can't find a unique selector after ".concat(c,"ms"));var d=ol((e=o.getAttribute("id"))&&k.idName(e)?{name:"#"+CSS.escape(e),penalty:0}:null)||ol.apply(void 0,D([],V(Array.from(o.attributes).filter(function(e){return k.attr(e.name,e.value)}).map(function(e){return{name:"[".concat(CSS.escape(e.name),'="').concat(CSS.escape(e.value),'"]'),penalty:.5}})),!1))||ol.apply(void 0,D([],V(Array.from(o.classList).filter(k.className).map(function(e){return{name:"."+CSS.escape(e),penalty:1}})),!1))||ol((s=o.tagName.toLowerCase(),k.tagName(s)?{name:s,penalty:2}:null))||[oo()],f=function(e){var t=e.parentNode;if(!t)return null;var r=t.firstChild;if(!r)return null;for(var n=0;r&&(r.nodeType===Node.ELEMENT_NODE&&n++,r!==e);)r=r.nextSibling;return n}(o);if("all"==t)f&&(d=d.concat(d.filter(os).map(function(e){return oa(e,f)})));else if("two"==t)d=d.slice(0,1),f&&(d=d.concat(d.filter(os).map(function(e){return oa(e,f)})));else if("one"==t){var h=V(d=d.slice(0,1),1)[0];f&&os(h)&&(d=[oa(h,f)])}else"none"==t&&(d=[oo()],f&&(d=[oa(d[0],f)]));try{for(var p=(l=void 0,L(d)),g=p.next();!g.done;g=p.next()){var h=g.value;h.level=a}}catch(e){l={error:e}}finally{try{g&&!g.done&&(u=p.return)&&u.call(p)}finally{if(l)throw l.error}}if(i.push(d),i.length>=k.seedMinLength&&(n=ot(i,r)))return"break";o=o.parentElement,a++}(););return(n||(n=ot(i,r)),!n&&r)?r():n}function ot(e,t){var r,n,i=oc(function e(t,r){var n,i,o,a,s;return void 0===r&&(r=[]),M(this,function(l){switch(l.label){case 0:if(!(t.length>0))return[3,9];l.label=1;case 1:l.trys.push([1,6,7,8]),i=(n=L(t[0])).next(),l.label=2;case 2:if(i.done)return[3,5];return o=i.value,[5,L(e(t.slice(1,t.length),r.concat(o)))];case 3:l.sent(),l.label=4;case 4:return i=n.next(),[3,2];case 5:return[3,8];case 6:return a={error:l.sent()},[3,8];case 7:try{i&&!i.done&&(s=n.return)&&s.call(n)}finally{if(a)throw a.error}return[7];case 8:return[3,11];case 9:return[4,r];case 10:l.sent(),l.label=11;case 11:return[2]}})}(e));if(i.length>k.threshold)return t?t():null;try{for(var o=L(i),a=o.next();!a.done;a=o.next()){var s=a.value;if(oi(s))return s}}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return null}function or(e){for(var t=e[0],r=t.name,n=1;n<e.length;n++){var i=e[n].level||0;r=t.level===i-1?"".concat(e[n].name," > ").concat(r):"".concat(e[n].name," ").concat(r),t=e[n]}return r}function on(e){return e.map(function(e){return e.penalty}).reduce(function(e,t){return e+t},0)}function oi(e){var t=or(e);switch(C.querySelectorAll(t).length){case 0:throw Error("Can't select any node with this selector: ".concat(t));case 1:return!0;default:return!1}}function oo(){return{name:"*",penalty:3}}function oa(e,t){return{name:e.name+":nth-child(".concat(t,")"),penalty:e.penalty+1}}function os(e){return"html"!==e.name&&!e.name.startsWith("#")}function ol(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=e.filter(ou);return r.length>0?r:null}function ou(e){return null!=e}function oc(e){return D([],V(e),!1).sort(function(e,t){return on(e)-on(t)})}var od=function(e){var t=e.version,r=e.events,n=[];return r.forEach(function(e){var t=JSON.parse(e);t.count=1,"click"===t.type&&n.push(t)}),{version:t,events:n}},of=function(e){var t=e.version,r=e.events,n=[];return r.forEach(function(e){var t=JSON.parse(e);"click"===t.type&&n.push(t)}),{version:t,events:Object.values(n.reduce(function(e,t){var r=t.x,n=t.y,i=t.selector,o=t.timestamp,a=o-o%36e5,s="".concat(r,":").concat(n,":").concat(null!=i?i:"",":").concat(a);return e[s]?e[s].count+=1:e[s]=R(R({},t),{timestamp:a,count:1}),e},{}))}},oh=function(e,t){var r=t.eventsManager,n=t.sessionId,i=t.deviceIdFn;return function(t){if(t.type!==i3.Click)return;var o,a=z();if(a){var s=a.location,l=a.innerHeight,u=a.innerWidth;if(s){var c=t.x,d=t.y;if(void 0!==c&&void 0!==d){var f=is.g1.mirror.getNode(t.id);if(f)try{o=function(e,t){if(O=new Date,e.nodeType!==Node.ELEMENT_NODE)throw Error("Can't generate CSS selector for non-element node type.");if("html"===e.tagName.toLowerCase())return"html";var r,n,i={root:document.body,idName:function(e){return!0},className:function(e){return!0},tagName:function(e){return!0},attr:function(e,t){return!1},seedMinLength:1,optimizedMinLength:2,threshold:1e3,maxNumberOfTries:1e4,timeoutMs:void 0};r=(k=R(R({},i),void 0)).root,n=i,C=r.nodeType===Node.DOCUMENT_NODE?r:r===n.root?r.ownerDocument:r;var o=oe(e,"all",function(){return oe(e,"two",function(){return oe(e,"one",function(){return oe(e,"none")})})});if(o){var a=oc(function e(t,r,n){var i,o,a;return void 0===n&&(n={counter:0,visited:new Map}),M(this,function(s){switch(s.label){case 0:if(!(t.length>2&&t.length>k.optimizedMinLength))return[3,5];i=1,s.label=1;case 1:var l,u;if(!(i<t.length-1))return[3,5];if(n.counter>k.maxNumberOfTries||(n.counter+=1,(o=D([],V(t),!1)).splice(i,1),a=or(o),n.visited.has(a)))return[2];if(!(oi(o)&&(l=o,u=r,C.querySelector(or(l))===u)))return[3,4];return[4,o];case 2:return s.sent(),n.visited.set(a,!0),[5,L(e(o,r,n))];case 3:s.sent(),s.label=4;case 4:return i++,[3,1];case 5:return[2]}})}(o,e));return a.length>0&&(o=a[0]),or(o)}throw Error("Selector was not found.")}(f)}catch(t){e.debug("error resolving selector from finder")}var h=is.Wp.getWindowScroll(a),p={x:c+h.left,y:d+h.top,selector:o,viewportHeight:l,viewportWidth:u,pageUrl:s.href,timestamp:Date.now(),type:"click"},g=i();g&&r.addEvent({sessionId:n,event:{type:"interaction",data:JSON.stringify(p)},deviceId:g})}}}}},op=function(){function e(e,t){var r=z();r&&r.navigator&&"function"==typeof r.navigator.sendBeacon?this.sendBeacon=function(e,t){try{if(r.navigator.sendBeacon(e,JSON.stringify(t)))return!0}catch(e){}return!1}:this.sendBeacon=function(){return!1},this.sendXhr=function(e,t){var r=new XMLHttpRequest;return r.open("POST",e,!0),r.setRequestHeader("Accept","*/*"),r.send(JSON.stringify(t)),!0},this.basePageUrl=ix(t.serverZone,t.trackServerUrl),this.apiKey=t.apiKey,this.context=e}return e.prototype.send=function(e,t){var r=this.context,n=r.sessionId,i=r.type,o=new URLSearchParams({device_id:e,session_id:String(n),type:String(i),api_key:this.apiKey}),a="".concat(this.basePageUrl,"?").concat(o.toString());this.sendBeacon(a,t)||this.sendXhr(a,t)},e}(),og=is.Wp.getWindowHeight,ov=is.Wp.getWindowWidth,om=function(){function e(e){var t=this;this.timestamp=Date.now(),this.hook=function(e){t.update(e)},this.send=function(e){return function(r){var n=e(),i=z();i&&n&&t.transport.send(n,{version:1,events:[{maxScrollX:t._maxScrollX,maxScrollY:t._maxScrollY,maxScrollWidth:t._maxScrollWidth,maxScrollHeight:t._maxScrollHeight,viewportHeight:og(),viewportWidth:ov(),pageUrl:i.location.href,timestamp:t.timestamp,type:"scroll"}]})}},this._maxScrollX=0,this._maxScrollY=0,this._maxScrollWidth=ov(),this._maxScrollHeight=og(),this.transport=e}return e.default=function(t,r){return new e(new op(t,r))},Object.defineProperty(e.prototype,"maxScrollX",{get:function(){return this._maxScrollX},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxScrollY",{get:function(){return this._maxScrollY},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxScrollWidth",{get:function(){return this._maxScrollWidth},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxScrollHeight",{get:function(){return this._maxScrollHeight},enumerable:!1,configurable:!0}),e.prototype.update=function(e){var t=Date.now();if(e.x>this._maxScrollX){var r=ov();this._maxScrollX=e.x;var n=e.x+r;n>this._maxScrollWidth&&(this._maxScrollWidth=n),this.timestamp=t}if(e.y>this._maxScrollY){var i=og();this._maxScrollY=e.y;var o=e.y+i;o>this._maxScrollHeight&&(this._maxScrollHeight=o),this.timestamp=t}},e}(),ob=function(e){var t=e.sessionId,r=e.deviceId;this.deviceId=r,this.sessionId=t,t&&r&&(this.sessionReplayId="".concat(r,"/").concat(t))},oy=Uint8Array,ox=Uint16Array,ow=Uint32Array,oS=new oy([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),oE=new oy([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),ok=new oy([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),oC=function(e,t){for(var r=new ox(31),n=0;n<31;++n)r[n]=t+=1<<e[n-1];for(var i=new ow(r[30]),n=1;n<30;++n)for(var o=r[n];o<r[n+1];++o)i[o]=o-r[n]<<5|n;return[r,i]},oO=oC(oS,2),oI=oO[0],o_=oO[1];oI[28]=258,o_[258]=28;for(var oT=oC(oE,0),oP=(oT[0],oT[1]),oR=new ox(32768),oA=0;oA<32768;++oA){var oN=(43690&oA)>>>1|(21845&oA)<<1;oN=(61680&(oN=(52428&oN)>>>2|(13107&oN)<<2))>>>4|(3855&oN)<<4,oR[oA]=((65280&oN)>>>8|(255&oN)<<8)>>>1}for(var oM=function(e,t,r){for(var n,i=e.length,o=0,a=new ox(t);o<i;++o)++a[e[o]-1];var s=new ox(t);for(o=0;o<t;++o)s[o]=s[o-1]+a[o-1]<<1;if(r){n=new ox(1<<t);var l=15-t;for(o=0;o<i;++o)if(e[o])for(var u=o<<4|e[o],c=t-e[o],d=s[e[o]-1]++<<c,f=d|(1<<c)-1;d<=f;++d)n[oR[d]>>>l]=u}else for(o=0,n=new ox(i);o<i;++o)n[o]=oR[s[e[o]-1]++]>>>15-e[o];return n},oL=new oy(288),oA=0;oA<144;++oA)oL[oA]=8;for(var oA=144;oA<256;++oA)oL[oA]=9;for(var oA=256;oA<280;++oA)oL[oA]=7;for(var oA=280;oA<288;++oA)oL[oA]=8;for(var oV=new oy(32),oA=0;oA<32;++oA)oV[oA]=5;var oD=oM(oL,9,0),oF=oM(oV,5,0),oj=function(e){return(e/8|0)+(7&e&&1)},oz=function(e,t,r){(null==r||r>e.length)&&(r=e.length);var n=new(e instanceof ox?ox:e instanceof ow?ow:oy)(r-t);return n.set(e.subarray(t,r)),n},oB=function(e,t,r){r<<=7&t;var n=t/8|0;e[n]|=r,e[n+1]|=r>>>8},oU=function(e,t,r){r<<=7&t;var n=t/8|0;e[n]|=r,e[n+1]|=r>>>8,e[n+2]|=r>>>16},oH=function(e,t){for(var r=[],n=0;n<e.length;++n)e[n]&&r.push({s:n,f:e[n]});var i=r.length,o=r.slice();if(!i)return[new oy(0),0];if(1==i){var a=new oy(r[0].s+1);return a[r[0].s]=1,[a,1]}r.sort(function(e,t){return e.f-t.f}),r.push({s:-1,f:25001});var s=r[0],l=r[1],u=0,c=1,d=2;for(r[0]={s:-1,f:s.f+l.f,l:s,r:l};c!=i-1;)s=r[r[u].f<r[d].f?u++:d++],l=r[u!=c&&r[u].f<r[d].f?u++:d++],r[c++]={s:-1,f:s.f+l.f,l:s,r:l};for(var f=o[0].s,n=1;n<i;++n)o[n].s>f&&(f=o[n].s);var h=new ox(f+1),p=oW(r[c-1],h,0);if(p>t){var n=0,g=0,v=p-t,m=1<<v;for(o.sort(function(e,t){return h[t.s]-h[e.s]||e.f-t.f});n<i;++n){var b=o[n].s;if(h[b]>t)g+=m-(1<<p-h[b]),h[b]=t;else break}for(g>>>=v;g>0;){var y=o[n].s;h[y]<t?g-=1<<t-h[y]++-1:++n}for(;n>=0&&g;--n){var x=o[n].s;h[x]==t&&(--h[x],++g)}p=t}return[new oy(h),p]},oW=function(e,t,r){return -1==e.s?Math.max(oW(e.l,t,r+1),oW(e.r,t,r+1)):t[e.s]=r},o$=function(e){for(var t=e.length;t&&!e[--t];);for(var r=new ox(++t),n=0,i=e[0],o=1,a=function(e){r[n++]=e},s=1;s<=t;++s)if(e[s]==i&&s!=t)++o;else{if(!i&&o>2){for(;o>138;o-=138)a(32754);o>2&&(a(o>10?o-11<<5|28690:o-3<<5|12305),o=0)}else if(o>3){for(a(i),--o;o>6;o-=6)a(8304);o>2&&(a(o-3<<5|8208),o=0)}for(;o--;)a(i);o=1,i=e[s]}return[r.subarray(0,n),t]},oq=function(e,t){for(var r=0,n=0;n<t.length;++n)r+=e[n]*t[n];return r},oG=function(e,t,r){var n=r.length,i=oj(t+2);e[i]=255&n,e[i+1]=n>>>8,e[i+2]=255^e[i],e[i+3]=255^e[i+1];for(var o=0;o<n;++o)e[i+o+4]=r[o];return(i+4+n)*8},oK=function(e,t,r,n,i,o,a,s,l,u,c){oB(t,c++,r),++i[256];for(var d,f,h,p,g=oH(i,15),v=g[0],m=g[1],b=oH(o,15),y=b[0],x=b[1],w=o$(v),S=w[0],E=w[1],k=o$(y),C=k[0],O=k[1],I=new ox(19),_=0;_<S.length;++_)I[31&S[_]]++;for(var _=0;_<C.length;++_)I[31&C[_]]++;for(var T=oH(I,7),P=T[0],R=T[1],A=19;A>4&&!P[ok[A-1]];--A);var N=u+5<<3,M=oq(i,oL)+oq(o,oV)+a,L=oq(i,v)+oq(o,y)+a+14+3*A+oq(I,P)+(2*I[16]+3*I[17]+7*I[18]);if(N<=M&&N<=L)return oG(t,c,e.subarray(l,l+u));if(oB(t,c,1+(L<M)),c+=2,L<M){d=oM(v,m,0),f=v,h=oM(y,x,0),p=y;var V=oM(P,R,0);oB(t,c,E-257),oB(t,c+5,O-1),oB(t,c+10,A-4),c+=14;for(var _=0;_<A;++_)oB(t,c+3*_,P[ok[_]]);c+=3*A;for(var D=[S,C],F=0;F<2;++F)for(var j=D[F],_=0;_<j.length;++_){var z=31&j[_];oB(t,c,V[z]),c+=P[z],z>15&&(oB(t,c,j[_]>>>5&127),c+=j[_]>>>12)}}else d=oD,f=oL,h=oF,p=oV;for(var _=0;_<s;++_)if(n[_]>255){var z=n[_]>>>18&31;oU(t,c,d[z+257]),c+=f[z+257],z>7&&(oB(t,c,n[_]>>>23&31),c+=oS[z]);var B=31&n[_];oU(t,c,h[B]),c+=p[B],B>3&&(oU(t,c,n[_]>>>5&8191),c+=oE[B])}else oU(t,c,d[n[_]]),c+=f[n[_]];return oU(t,c,d[256]),c+f[256]},oY=new ow([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),oX=function(e,t,r,n,i,o){var a=e.length,s=new oy(n+a+5*(1+Math.floor(a/7e3))+i),l=s.subarray(n,s.length-i),u=0;if(!t||a<8)for(var c=0;c<=a;c+=65535){var d=c+65535;d<a?u=oG(l,u,e.subarray(c,d)):(l[c]=o,u=oG(l,u,e.subarray(c,a)))}else{for(var f=oY[t-1],h=f>>>13,p=8191&f,g=(1<<r)-1,v=new ox(32768),m=new ox(g+1),b=Math.ceil(r/3),y=2*b,x=function(t){return(e[t]^e[t+1]<<b^e[t+2]<<y)&g},w=new ow(25e3),S=new ox(288),E=new ox(32),k=0,C=0,c=0,O=0,I=0,_=0;c<a;++c){var T=x(c),P=32767&c,R=m[T];if(v[P]=R,m[T]=P,I<=c){var A=a-c;if((k>7e3||O>24576)&&A>423){u=oK(e,l,0,w,S,E,C,O,_,c-_,u),O=k=C=0,_=c;for(var N=0;N<286;++N)S[N]=0;for(var N=0;N<30;++N)E[N]=0}var M=2,L=0,V=p,D=P-R&32767;if(A>2&&T==x(c-D))for(var F=Math.min(h,A)-1,j=Math.min(32767,c),z=Math.min(258,A);D<=j&&--V&&P!=R;){if(e[c+M]==e[c+M-D]){for(var B=0;B<z&&e[c+B]==e[c+B-D];++B);if(B>M){if(M=B,L=D,B>F)break;for(var U=Math.min(D,B-2),H=0,N=0;N<U;++N){var W=c-D+N+32768&32767,$=v[W],q=W-$+32768&32767;q>H&&(H=q,R=W)}}}R=v[P=R],D+=P-R+32768&32767}if(L){w[O++]=0x10000000|o_[M]<<18|oP[L];var G=31&o_[M],K=31&oP[L];C+=oS[G]+oE[K],++S[257+G],++E[K],I=c+M,++k}else w[O++]=e[c],++S[e[c]]}}u=oK(e,l,o,w,S,E,C,O,_,c-_,u)}return oz(s,0,n+oj(u)+i)},oQ=function(){var e=1,t=0;return{p:function(r){for(var n=e,i=t,o=r.length,a=0;a!=o;){for(var s=Math.min(a+5552,o);a<s;++a)n+=r[a],i+=n;n%=65521,i%=65521}e=n,t=i},d:function(){return(e>>>8<<16|(255&t)<<8|t>>>8)+((255&e)<<23)*2}}},oJ=function(e,t,r){for(;r;++t)e[t]=r,r>>>=8},oZ=function(e,t){var r=t.level,n=0==r?0:r<6?1:9==r?3:2;e[0]=120,e[1]=n<<6|(n?32-2*n:1)},o0=function(){function e(e,t,r,n){var i,o,a=this;this.taskQueue=[],this.isProcessing=!1,this.compressEvent=function(e){return JSON.stringify(function(e,t){var r="";if(!t&&"undefined"!=typeof TextDecoder)return new TextDecoder().decode(e);for(var n=0;n<e.length;){var i=e[n++];i<128||t?r+=String.fromCharCode(i):i<224?r+=String.fromCharCode((31&i)<<6|63&e[n++]):i<240?r+=String.fromCharCode((15&i)<<12|(63&e[n++])<<6|63&e[n++]):r+=String.fromCharCode(55296|(i=((15&i)<<18|(63&e[n++])<<12|(63&e[n++])<<6|63&e[n++])-65536)>>10,56320|1023&i)}return r}(function(e,t){void 0===t&&(t={});var r,n=oQ();n.p(e);var i=oX(e,null==(r=t).level?6:r.level,null==r.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(e.length)))):12+r.mem,2,4,!0);return oZ(i,t),oJ(i,i.length-4,n.d()),i}(function(e,t){var r=e.length;if("undefined"!=typeof TextEncoder)return new TextEncoder().encode(e);for(var n=new oy(e.length+(e.length>>>1)),i=0,o=function(e){n[i++]=e},a=0;a<r;++a){if(i+5>n.length){var s=new oy(i+8+(r-a<<1));s.set(n),n=s}var l=e.charCodeAt(a);l<128?o(l):(l<2048?o(192|l>>>6):(l>55295&&l<57344?(o(240|(l=65536+(1047552&l)|1023&e.charCodeAt(++a))>>>18),o(128|l>>>12&63)):o(224|l>>>12),o(128|l>>>6&63)),o(128|63&l))}return oz(n,0,i)}(JSON.stringify({...e,v:"v1"}))),!0))},this.addCompressedEventToManager=function(e,t){a.eventsManager&&a.deviceId&&a.eventsManager.addEvent({event:{type:"replay",data:e},sessionId:t,deviceId:a.deviceId})},this.addCompressedEvent=function(e,t){if(a.worker)a.worker.postMessage({event:e,sessionId:t});else{var r=a.compressEvent(e);a.addCompressedEventToManager(r,t)}},this.terminate=function(){var e;null==(e=a.worker)||e.terminate()};var s=z();this.canUseIdleCallback=s&&"requestIdleCallback"in s,this.eventsManager=e,this.config=t,this.deviceId=r,this.timeout=(null==(i=t.performanceConfig)?void 0:i.timeout)||2e3;var l=n;if((null==(o=this.config.experimental)?void 0:o.useWebWorker)&&s&&s.Worker&&l){t.loggerProvider.log("[Experimental] Enabling web worker for compression");var u=new Worker(URL.createObjectURL(new Blob([l],{type:"application/javascript"})));u.onerror=function(e){t.loggerProvider.error(e)},u.onmessage=function(e){var t=e.data,r=t.compressedEvent,n=t.sessionId;a.addCompressedEventToManager(r,n)},this.worker=u}}return e.prototype.scheduleIdleProcessing=function(){var e=this;this.isProcessing||(this.isProcessing=!0,requestIdleCallback(function(t){e.processQueue(t)},{timeout:this.timeout}))},e.prototype.enqueueEvent=function(e,t){var r;this.canUseIdleCallback&&(null==(r=this.config.performanceConfig)?void 0:r.enabled)?(this.config.loggerProvider.debug("Enqueuing event for processing during idle time."),this.taskQueue.push({event:e,sessionId:t}),this.scheduleIdleProcessing()):(this.config.loggerProvider.debug("Processing event without idle callback."),this.addCompressedEvent(e,t))},e.prototype.processQueue=function(e){for(var t=this;this.taskQueue.length>0&&(e.timeRemaining()>0||e.didTimeout);){var r=this.taskQueue.shift();if(r){var n=r.event,i=r.sessionId;this.addCompressedEvent(n,i)}}this.taskQueue.length>0?requestIdleCallback(function(e){t.processQueue(e)},{timeout:this.timeout}):this.isProcessing=!1},e}(),o1=function(){function e(){this.fetchObserver=null}return e.prototype.start=function(e){this.eventCallback=e,this.observeFetch()},e.prototype.stop=function(){var e;null==(e=this.fetchObserver)||e.call(this),this.fetchObserver=null,this.eventCallback=void 0},e.prototype.notifyEvent=function(e){var t;null==(t=this.eventCallback)||t.call(this,e)},e.prototype.observeFetch=function(){var e=this,t=z();if(t){var r=t.fetch;r&&(t.fetch=function(t,n){return N(e,void 0,void 0,function(){var e,i,o,a,s,l,u;return M(this,function(c){switch(c.label){case 0:i={timestamp:e=Date.now(),type:"fetch",method:(null==n?void 0:n.method)||"GET",url:t.toString(),requestHeaders:null==n?void 0:n.headers},c.label=1;case 1:return c.trys.push([1,3,,4]),[4,r(t,n)];case 2:return o=c.sent(),a=Date.now(),i.status=o.status,i.duration=a-e,s={},o.headers.forEach(function(e,t){s[t]=e}),i.responseHeaders=s,this.notifyEvent(i),[2,o];case 3:throw l=c.sent(),a=Date.now(),i.duration=a-e,u=l,i.error={name:u.name||"UnknownError",message:u.message||"An unknown error occurred"},this.notifyEvent(i),l;case 4:return[2]}})})},this.fetchObserver=function(){t.fetch=r})}},e}(),o2=function(){function e(){var e=this;this.name="@amplitude/session-replay-browser",this.recordCancelCallback=null,this.eventCount=0,this.pageLeaveFns=[],this.teardownEventListeners=function(t){var r=z();r&&(r.removeEventListener("blur",e.blurListener),r.removeEventListener("focus",e.focusListener),t||r.addEventListener("blur",e.blurListener),t||r.addEventListener("focus",e.focusListener),r.self&&"onpagehide"in r.self?(r.removeEventListener("pagehide",e.pageLeaveListener),t||r.addEventListener("pagehide",e.pageLeaveListener)):(r.removeEventListener("beforeunload",e.pageLeaveListener),t||r.addEventListener("beforeunload",e.pageLeaveListener)))},this.blurListener=function(){e.sendEvents()},this.focusListener=function(){e.recordEvents(!1)},this.pageLeaveListener=function(t){e.pageLeaveFns.forEach(function(e){e(t)})},this.addCustomRRWebEvent=function(t,r,n){return void 0===r&&(r={}),void 0===n&&(n=!0),N(e,void 0,void 0,function(){var e,i,o,a;return M(this,function(s){switch(s.label){case 0:if(s.trys.push([0,3,,4]),e=void 0,!((i=this.config)&&t!==x.METADATA)||(e={config:iS(i),version:iO},!n))return[3,2];return[4,iw()];case 1:o=s.sent(),e=R(R({},o),e),s.label=2;case 2:return this.recordCancelCallback?is.g1.addCustomEvent(t,R(R({},r),e)):this.loggerProvider.debug("Not able to add custom replay capture event ".concat(t," due to no ongoing recording.")),[3,4];case 3:return a=s.sent(),this.loggerProvider.debug("Error while adding custom replay capture event: ",a),[3,4];case 4:return[2]}})})},this.stopRecordingEvents=function(){var t;try{e.loggerProvider.log("Session Replay capture stopping."),e.recordCancelCallback&&e.recordCancelCallback(),e.recordCancelCallback=null,null==(t=e.networkObservers)||t.stop()}catch(t){e.loggerProvider.warn("Error occurred while stopping replay capture: ".concat(t.toString()))}},this.loggerProvider=new ii(new ec)}return e.prototype.init=function(e,t){return j(this._init(e,t))},e.prototype._init=function(e,t){var r,n,i,o,a,s,l,u;return N(this,void 0,void 0,function(){var c,d,f,h,p,g,v,m,b,y,x,w;return M(this,function(S){switch(S.label){case 0:return this.loggerProvider=new ii(t.loggerProvider||new ec),Object.prototype.hasOwnProperty.call(t,"logLevel")&&this.loggerProvider.enable(t.logLevel),this.identifiers=new ob({sessionId:t.sessionId,deviceId:t.deviceId}),c=this,[4,N(void 0,void 0,void 0,function(){var r;return M(this,function(n){switch(n.label){case 0:return[4,ih({localConfig:r=new ia(e,t),configKeys:["sessionReplay"]})];case 1:return[2,new ik(n.sent(),r)]}})})];case 1:return c.joinedConfigGenerator=S.sent(),[4,this.joinedConfigGenerator.generateJoinedConfig(this.identifiers.sessionId)];case 2:f=(d=S.sent()).joinedConfig,h=d.localConfig,p=d.remoteConfig,this.config=f,this.setMetadata(t.sessionId,f,h,p,null==(r=t.version)?void 0:r.version,iO,null==(n=t.version)?void 0:n.type),t.sessionId&&(null==(i=this.config.interactionConfig)?void 0:i.enabled)&&(g=om.default({sessionId:t.sessionId,type:"interaction"},this.config),this.pageLeaveFns=[g.send(this.getDeviceId.bind(this)).bind(g)],this.scrollHook=g.hook.bind(g)),v=[],"idb"!==(m=this.config.storeType)||(null==(o=z())?void 0:o.indexedDB)||(m="memory",this.loggerProvider.warn("Could not use preferred indexedDB storage, reverting to in memory option.")),this.loggerProvider.log("Using ".concat(m," for event storage.")),S.label=3;case 3:return S.trys.push([3,5,,6]),[4,i0({config:this.config,sessionId:this.identifiers.sessionId,type:"replay",storeType:m})];case 4:return b=S.sent(),v.push({name:"replay",manager:b}),[3,6];case 5:return y=S.sent(),this.loggerProvider.warn("Error occurred while creating replay events manager: ".concat(y.toString())),[3,6];case 6:if(!(null==(a=this.config.interactionConfig)?void 0:a.enabled))return[3,10];x=this.config.interactionConfig.batch?of:od,S.label=7;case 7:return S.trys.push([7,9,,10]),[4,i0({config:this.config,sessionId:this.identifiers.sessionId,type:"interaction",minInterval:null!=(s=this.config.interactionConfig.trackEveryNms)?s:3e4,maxInterval:6e4,payloadBatcher:x,storeType:m})];case 8:return w=S.sent(),v.push({name:"interaction",manager:w}),[3,10];case 9:return y=S.sent(),this.loggerProvider.warn("Error occurred while creating interaction events manager: ".concat(y.toString())),[3,10];case 10:return this.eventsManager=new(i1.bind.apply(i1,D([void 0],V(v),!1))),this.eventCompressor&&this.eventCompressor.terminate(),this.eventCompressor=new o0(this.eventsManager,this.config,this.getDeviceId()),(null==(u=null==(l=this.config.loggingConfig)?void 0:l.network)?void 0:u.enabled)&&(this.networkObservers=new o1),this.loggerProvider.log("Installing @amplitude/session-replay-browser."),this.teardownEventListeners(!1),this.initialize(!0),[2]}})})},e.prototype.setSessionId=function(e,t){return j(this.asyncSetSessionId(e,t))},e.prototype.asyncSetSessionId=function(e,t){return N(this,void 0,void 0,function(){var r,n,i;return M(this,function(o){switch(o.label){case 0:if((r=this.identifiers&&this.identifiers.sessionId)&&this.sendEvents(r),n=t||this.getDeviceId(),this.identifiers=new ob({sessionId:e,deviceId:n}),!(this.joinedConfigGenerator&&r))return[3,2];return[4,this.joinedConfigGenerator.generateJoinedConfig(this.identifiers.sessionId)];case 1:i=o.sent().joinedConfig,this.config=i,o.label=2;case 2:return this.recordEvents(),[2]}})})},e.prototype.getSessionReplayProperties=function(){var e,t=this.config,r=this.identifiers;if(!t||!r)return this.loggerProvider.warn("Session replay init has not been called, cannot get session replay properties."),{};var n=this.getShouldRecord(),i={};return n&&((e={})[n9]=r.sessionReplayId?r.sessionReplayId:null,i=e,t.debugMode&&(i[it]=JSON.stringify({appHash:ib(t.apiKey).toString()}))),this.addCustomRRWebEvent(x.GET_SR_PROPS,{shouldRecord:n,eventProperties:i},10===this.eventCount),10===this.eventCount&&(this.eventCount=0),this.eventCount++,i},e.prototype.sendEvents=function(e){var t,r=e||(null==(t=this.identifiers)?void 0:t.sessionId),n=this.getDeviceId();this.eventsManager&&r&&n&&this.eventsManager.sendCurrentSequenceEvents({sessionId:r,deviceId:n})},e.prototype.initialize=function(e){var t;return void 0===e&&(e=!1),N(this,void 0,void 0,function(){var r;return M(this,function(n){return(null==(t=this.identifiers)?void 0:t.sessionId)?(r=this.getDeviceId())?(this.eventsManager&&e&&this.eventsManager.sendStoredEvents({deviceId:r}),[2,this.recordEvents()]):(this.loggerProvider.log("Session is not being recorded due to lack of device id."),[2,Promise.resolve()]):(this.loggerProvider.log("Session is not being recorded due to lack of session id."),[2,Promise.resolve()])})})},e.prototype.shouldOptOut=function(){if(null==(e=this.config)?void 0:e.instanceName){var e,t,r;r=ei(this.config.instanceName).identityStore.getIdentity().optOut}return void 0!==r?r:null==(t=this.config)?void 0:t.optOut},e.prototype.getShouldRecord=function(){if(!this.identifiers||!this.config||!this.identifiers.sessionId)return this.loggerProvider.warn("Session is not being recorded due to lack of config, please call sessionReplay.init."),!1;if(!this.config.captureEnabled)return this.loggerProvider.log("Session ".concat(this.identifiers.sessionId," not being captured due to capture being disabled for project or because the remote config could not be fetched.")),!1;if(this.shouldOptOut())return this.loggerProvider.log("Opting session ".concat(this.identifiers.sessionId," out of recording due to optOut config.")),!1;var e,t,r=(e=this.identifiers.sessionId,t=this.config.sampleRate,31*Math.abs(ib(e.toString()))%1e6/1e6<t);return r||this.loggerProvider.log("Opting session ".concat(this.identifiers.sessionId," out of recording due to sample rate.")),r},e.prototype.getBlockSelectors=function(){var e,t,r,n=null!=(r=null==(t=null==(e=this.config)?void 0:e.privacyConfig)?void 0:t.blockSelector)?r:[];if(0!==n.length)return n},e.prototype.getMaskTextSelectors=function(){if((null==(t=null==(e=this.config)?void 0:e.privacyConfig)?void 0:t.defaultMaskLevel)==="conservative")return"*";var e,t,r,n,i=null==(n=null==(r=this.config)?void 0:r.privacyConfig)?void 0:n.maskSelector;if(i)return i},e.prototype.getRecordingPlugins=function(e){var t;return N(this,void 0,void 0,function(){var n,i,o;return M(this,function(a){switch(a.label){case 0:if(n=[],!(null==(t=null==e?void 0:e.console)?void 0:t.enabled))return[3,4];a.label=1;case 1:return a.trys.push([1,3,,4]),[4,r.e(267).then(r.bind(r,84605))];case 2:return i=a.sent().getRecordConsolePlugin,n.push(i({level:e.console.levels})),[3,4];case 3:return o=a.sent(),this.loggerProvider.warn("Failed to load console plugin:",o),[3,4];case 4:return[2,n.length>0?n:void 0]}})})},e.prototype.recordEvents=function(e){var t,r;return void 0===e&&(e=!0),N(this,void 0,void 0,function(){var n,i,o,a,s,l,u,c,d,f,h,p=this;return M(this,function(g){switch(g.label){case 0:if(n=this.config,i=this.getShouldRecord(),o=null==(t=this.identifiers)?void 0:t.sessionId,!i||!o||!n)return[2];this.stopRecordingEvents(),null==(r=this.networkObservers)||r.start(function(e){p.addCustomRRWebEvent(x.FETCH_REQUEST,e)}),a=n.privacyConfig,s=n.interactionConfig,l=n.loggingConfig,u=(null==s?void 0:s.enabled)?{mouseInteraction:this.eventsManager&&oh(this.loggerProvider,{eventsManager:this.eventsManager,sessionId:o,deviceIdFn:this.getDeviceId.bind(this)}),scroll:this.scrollHook}:{},this.loggerProvider.log("Session Replay capture beginning for ".concat(o,".")),g.label=1;case 1:return g.trys.push([1,3,,4]),c=this,d=is.g1,h={emit:function(e){if(p.shouldOptOut()){p.loggerProvider.log("Opting session ".concat(o," out of recording due to optOut config.")),p.stopRecordingEvents(),p.sendEvents();return}p.eventCompressor&&p.eventCompressor.enqueueEvent(e,o)},inlineStylesheet:n.shouldInlineStylesheet,hooks:u,maskAllInputs:!0,maskTextClass:ir,blockClass:"amp-block",blockSelector:this.getBlockSelectors(),maskInputFn:im("input",a),maskTextFn:im("text",a),maskTextSelector:this.getMaskTextSelectors(),recordCanvas:!1,errorHandler:function(e){if(e.message.includes("insertRule")&&e.message.includes("CSSStyleSheet")||e._external_)throw e;return p.loggerProvider.warn("Error while capturing replay: ",e.toString()),!0}},[4,this.getRecordingPlugins(l)];case 2:return c.recordCancelCallback=d.apply(void 0,[(h.plugins=g.sent(),h)]),this.addCustomRRWebEvent(x.DEBUG_INFO),e&&this.addCustomRRWebEvent(x.METADATA,this.metadata),[3,4];case 3:return f=g.sent(),this.loggerProvider.warn("Failed to initialize session replay:",f),[3,4];case 4:return[2]}})})},e.prototype.getDeviceId=function(){var e;return null==(e=this.identifiers)?void 0:e.deviceId},e.prototype.getSessionId=function(){var e;return null==(e=this.identifiers)?void 0:e.sessionId},e.prototype.flush=function(e){var t;return void 0===e&&(e=!1),N(this,void 0,void 0,function(){return M(this,function(r){return[2,null==(t=this.eventsManager)?void 0:t.flush(e)]})})},e.prototype.shutdown=function(){this.teardownEventListeners(!0),this.stopRecordingEvents(),this.sendEvents()},e.prototype.mapSDKType=function(e){return"plugin"===e?"@amplitude/plugin-session-replay-browser":"segment"===e?"@amplitude/segment-session-replay-plugin":null},e.prototype.setMetadata=function(e,t,r,n,i,o,a){var s=(null==e?void 0:e.toString())?ib(e.toString()):void 0;this.metadata={joinedConfig:t,localConfig:r,remoteConfig:n,sessionId:e,hashValue:s,sampleRate:t.sampleRate,replaySDKType:this.mapSDKType(a),replaySDKVersion:i,standaloneSDKType:"@amplitude/session-replay-browser",standaloneSDKVersion:o}},e}(),o5=function(e){return function(){var t=e.config||io();return{logger:t.loggerProvider,logLevel:t.logLevel}}};let o3=function(){var e=new o2;return{init:n8(e.init.bind(e),"init",o5(e)),setSessionId:n8(e.setSessionId.bind(e),"setSessionId",o5(e)),getSessionId:n8(e.getSessionId.bind(e),"getSessionId",o5(e)),getSessionReplayProperties:n8(e.getSessionReplayProperties.bind(e),"getSessionReplayProperties",o5(e)),flush:n8(e.flush.bind(e),"flush",o5(e)),shutdown:n8(e.shutdown.bind(e),"shutdown",o5(e))}}();var o4=o3.init,o6=o3.setSessionId,o8=o3.getSessionId,o7=o3.getSessionReplayProperties,o9=o3.flush,ae=o3.shutdown,at="1.16.13",ar=function(){function e(t){this.name=e.pluginName,this.type="enrichment",this.sr={flush:o9,getSessionId:o8,getSessionReplayProperties:o7,init:o4,setSessionId:o6,shutdown:ae},this.options=R({forceSessionTracking:!1},t),this.srInitOptions=this.options}return e.prototype.setup=function(e,t){var r,n,i,o,a;return N(this,void 0,void 0,function(){var t;return M(this,function(s){switch(s.label){case 0:return s.trys.push([0,2,,3]),null==e||e.loggerProvider.log("Installing @amplitude/plugin-session-replay, version ".concat(at,".")),this.config=e,this.options.forceSessionTracking&&("boolean"==typeof e.defaultTracking?!1===e.defaultTracking&&(e.defaultTracking={pageViews:!1,formInteractions:!1,fileDownloads:!1,sessions:!0}):e.defaultTracking=R(R({},e.defaultTracking),{sessions:!0})),this.srInitOptions={instanceName:this.config.instanceName,deviceId:null!=(r=this.options.deviceId)?r:this.config.deviceId,optOut:this.config.optOut,sessionId:this.options.customSessionId?void 0:this.config.sessionId,loggerProvider:this.config.loggerProvider,logLevel:this.config.logLevel,flushMaxRetries:this.config.flushMaxRetries,serverZone:this.config.serverZone,configServerUrl:this.options.configServerUrl,trackServerUrl:this.options.trackServerUrl,sampleRate:this.options.sampleRate,privacyConfig:{blockSelector:null==(n=this.options.privacyConfig)?void 0:n.blockSelector,maskSelector:null==(i=this.options.privacyConfig)?void 0:i.maskSelector,unmaskSelector:null==(o=this.options.privacyConfig)?void 0:o.unmaskSelector,defaultMaskLevel:null==(a=this.options.privacyConfig)?void 0:a.defaultMaskLevel},debugMode:this.options.debugMode,shouldInlineStylesheet:this.options.shouldInlineStylesheet,version:{type:"plugin",version:at},performanceConfig:this.options.performanceConfig,storeType:this.options.storeType,experimental:this.options.experimental},[4,this.sr.init(e.apiKey,this.srInitOptions).promise];case 1:return s.sent(),[3,3];case 2:return t=s.sent(),null==e||e.loggerProvider.error("Session Replay: Failed to initialize due to ".concat(t.message)),[3,3];case 3:return[2]}})})},e.prototype.onSessionIdChanged=function(e){return N(this,void 0,void 0,function(){return M(this,function(t){switch(t.label){case 0:return this.config.loggerProvider.debug("Analytics session id is changed to ".concat(e,", SR session id is ").concat(String(this.sr.getSessionId()),".")),[4,this.sr.setSessionId(e).promise];case 1:return t.sent(),[2]}})})},e.prototype.onOptOutChanged=function(e){return N(this,void 0,void 0,function(){return M(this,function(t){switch(t.label){case 0:if(this.config.loggerProvider.debug("optOut is changed to ".concat(String(e),", calling ").concat(e?"sessionReplay.shutdown()":"sessionReplay.init()",".")),!e)return[3,1];return this.sr.shutdown(),[3,3];case 1:return[4,this.sr.init(this.config.apiKey,this.srInitOptions).promise];case 2:t.sent(),t.label=3;case 3:return[2]}})})},e.prototype.execute=function(e){var t;return N(this,void 0,void 0,function(){var r,n,i;return M(this,function(o){switch(o.label){case 0:if(o.trys.push([0,8,,9]),!this.options.customSessionId)return[3,4];if(!(r=this.options.customSessionId(e)))return[3,3];if(r===this.sr.getSessionId())return[3,2];return[4,this.sr.setSessionId(r).promise];case 1:o.sent(),o.label=2;case 2:n=this.sr.getSessionReplayProperties(),e.event_properties=R(R({},e.event_properties),n),o.label=3;case 3:return[3,7];case 4:if(!((r=this.config.sessionId)&&r!==this.sr.getSessionId()))return[3,6];return[4,this.sr.setSessionId(r).promise];case 5:o.sent(),o.label=6;case 6:r&&r===e.session_id&&(n=this.sr.getSessionReplayProperties(),e.event_properties=R(R({},e.event_properties),n)),o.label=7;case 7:return[2,Promise.resolve(e)];case 8:return i=o.sent(),null==(t=this.config)||t.loggerProvider.error("Session Replay: Failed to enrich event due to ".concat(i.message)),[2,Promise.resolve(e)];case 9:return[2]}})})},e.prototype.teardown=function(){var e;return N(this,void 0,void 0,function(){return M(this,function(t){try{this.sr.shutdown(),this.config=null}catch(t){null==(e=this.config)||e.loggerProvider.error("Session Replay: teardown failed due to ".concat(t.message))}return[2]})})},e.prototype.getSessionReplayProperties=function(){return this.sr.getSessionReplayProperties()},e.pluginName="@amplitude/plugin-session-replay-browser",e}(),an=r(44020).Buffer,ai=function(e,t){return(ai=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function ao(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}ai(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var aa=function(){return(aa=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function as(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}l((n=n.apply(e,t||[])).next())})}function al(e,t){var r,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(l){var u=[s,l];if(r)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(a=0)),a;)try{if(r=1,n&&(i=2&u[0]?n.return:u[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,u[1])).done)return i;switch(n=0,i&&(u=[2&u[0],i.value]),u[0]){case 0:case 1:i=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,n=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===u[0]||2===u[0])){a=0;continue}if(3===u[0]&&(!i||u[1]>i[0]&&u[1]<i[3])){a.label=u[1];break}if(6===u[0]&&a.label<i[1]){a.label=i[1],i=u;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(u);break}i[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],n=0}finally{r=i=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}function au(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function ac(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}function ad(e,t,r){if(r||2==arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var af={IS:"is",IS_NOT:"is not",CONTAINS:"contains",DOES_NOT_CONTAIN:"does not contain",LESS_THAN:"less",LESS_THAN_EQUALS:"less or equal",GREATER_THAN:"greater",GREATER_THAN_EQUALS:"greater or equal",VERSION_LESS_THAN:"version less",VERSION_LESS_THAN_EQUALS:"version less or equal",VERSION_GREATER_THAN:"version greater",VERSION_GREATER_THAN_EQUALS:"version greater or equal",SET_IS:"set is",SET_IS_NOT:"set is not",SET_CONTAINS:"set contains",SET_DOES_NOT_CONTAIN:"set does not contain",SET_CONTAINS_ANY:"set contains any",SET_DOES_NOT_CONTAIN_ANY:"set does not contain any",REGEX_MATCH:"regex match",REGEX_DOES_NOT_MATCH:"regex does not match"},ah=function(e){for(var t=[],r=0,n=0;n<e.length;n++){var i=e.charCodeAt(n);i<128?t[r++]=i:(i<2048?t[r++]=i>>6|192:((64512&i)==55296&&n+1<e.length&&(64512&e.charCodeAt(n+1))==56320?(i=65536+((1023&i)<<10)+(1023&e.charCodeAt(++n)),t[r++]=i>>18|240,t[r++]=i>>12&63|128):t[r++]=i>>12|224,t[r++]=i>>6&63|128),t[r++]=63&i|128)}return Uint8Array.from(t)},ap=function(e,t){void 0===t&&(t=0);for(var r=ah(e),n=r.length,i=n>>2,o=t,a=0;a<i;a++)o=ag(ab(r,a<<2),o);var s=i<<2,l=0;switch(n-s){case 3:l^=r[s+2]<<16,l^=r[s+1]<<8,l^=r[s],o^=l=Math.imul(l=am(l=Math.imul(l,-0x3361d2af),15),0x1b873593);break;case 2:l^=r[s+1]<<8,l^=r[s],o^=l=Math.imul(l=am(l=Math.imul(l,-0x3361d2af),15),0x1b873593);break;case 1:l^=r[s],o^=l=Math.imul(l=am(l=Math.imul(l,-0x3361d2af),15),0x1b873593)}return av(o^=n)>>>0},ag=function(e,t){var r=e,n=t;return n^=r=Math.imul(r=am(r=Math.imul(r,-0x3361d2af),15),0x1b873593),(n=Math.imul(n=am(n,13),5))+-0x19ab949c|0},av=function(e){var t=e;return t^=t>>>16,t=Math.imul(t,-0x7a143595),t^=t>>>13,t=Math.imul(t,-0x3d4d51cb),t^=t>>>16},am=function(e,t,r){void 0===r&&(r=32),t>r&&(t%=r);var n=(e&0xffffffff<<r-t>>>0)>>>0>>>r-t>>>0;return(e<<t|n)>>>0},ab=function(e,t){return void 0===t&&(t=0),ay(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])},ay=function(e){return(-0x1000000&e)>>>24|(0xff0000&e)>>>8|(65280&e)<<8|(255&e)<<24},ax=function(e,t){var r,n;if(t&&0!==t.length){try{for(var i=au(t),o=i.next();!o.done;o=i.next()){var a=o.value;if(!a||!e||"object"!=typeof e)return;e=e[a]}}catch(e){r={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}if(!e)return;return e}},aw="^".concat("(\\d+)\\.(\\d+)","(\\.").concat("(\\d+)").concat("(-(([-\\w]+\\.?)*))?",")?$"),aS=function(){function e(e,t,r,n){void 0===n&&(n=void 0),this.major=e,this.minor=t,this.patch=r,this.preRelease=n}return e.parse=function(t){if(t){var r=new RegExp(aw).exec(t);if(r){var n=Number(r[1]),i=Number(r[2]);if(!(isNaN(n)||isNaN(i)))return new e(n,i,Number(r[4])||0,r[5]||void 0)}}},e.prototype.compareTo=function(e){if(this.major>e.major)return 1;if(this.major<e.major)return -1;if(this.minor>e.minor)return 1;if(this.minor<e.minor)return -1;if(this.patch>e.patch)return 1;if(this.patch<e.patch||this.preRelease&&!e.preRelease)return -1;if(!this.preRelease&&e.preRelease)return 1;if(this.preRelease&&e.preRelease){if(this.preRelease>e.preRelease)return 1;if(this.preRelease<e.preRelease)return -1}return 0},e}(),aE=function(){function e(){}return e.prototype.evaluate=function(e,t){var r,n,i={},o={context:e,result:i};try{for(var a=au(t),s=a.next();!s.done;s=a.next()){var l=s.value,u=this.evaluateFlag(o,l);u&&(i[l.key]=u)}}catch(e){r={error:e}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}return i},e.prototype.evaluateFlag=function(e,t){try{for(var r,n,i,o=au(t.segments),a=o.next();!a.done;a=o.next()){var s=a.value;if(i=this.evaluateSegment(e,t,s)){var l=aa(aa(aa({},t.metadata),s.metadata),i.metadata);i=aa(aa({},i),{metadata:l});break}}}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return i},e.prototype.evaluateSegment=function(e,t,r){if(!r.conditions){var n=this.bucket(e,r);return void 0!==n?t.variants[n]:void 0}if(this.evaluateConditions(e,r.conditions)){var n=this.bucket(e,r);if(void 0!==n)return t.variants[n]}},e.prototype.evaluateConditions=function(e,t){var r,n,i,o;try{for(var a=au(t),s=a.next();!s.done;s=a.next()){var l=s.value,u=!0;try{for(var c=(i=void 0,au(l)),d=c.next();!d.done;d=c.next()){var f=d.value;if(!(u=this.matchCondition(e,f)))break}}catch(e){i={error:e}}finally{try{d&&!d.done&&(o=c.return)&&o.call(c)}finally{if(i)throw i.error}}if(u)return!0}}catch(e){r={error:e}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}return!1},e.prototype.matchCondition=function(e,t){var r=ax(e,t.selector);if(!r)return this.matchNull(t.op,t.values);if(this.isSetOperator(t.op)){var n=this.coerceStringArray(r);return!!n&&this.matchSet(n,t.op,t.values)}var i=this.coerceString(r);return void 0!==i&&this.matchString(i,t.op,t.values)},e.prototype.getHash=function(e){return ap(e)},e.prototype.bucket=function(e,t){if(!t.bucket)return t.variant;var r,n,i,o,a=this.coerceString(ax(e,t.bucket.selector));if(!a||0===a.length)return t.variant;var s="".concat(t.bucket.salt,"/").concat(a),l=this.getHash(s),u=l%100,c=Math.floor(l/100);try{for(var d=au(t.bucket.allocations),f=d.next();!f.done;f=d.next()){var h=f.value,p=h.range[0],g=h.range[1];if(u>=p&&u<g)try{for(var v=(i=void 0,au(h.distributions)),m=v.next();!m.done;m=v.next()){var b=m.value,y=b.range[0],x=b.range[1];if(c>=y&&c<x)return b.variant}}catch(e){i={error:e}}finally{try{m&&!m.done&&(o=v.return)&&o.call(v)}finally{if(i)throw i.error}}}}catch(e){r={error:e}}finally{try{f&&!f.done&&(n=d.return)&&n.call(d)}finally{if(r)throw r.error}}return t.variant},e.prototype.matchNull=function(e,t){var r=this.containsNone(t);switch(e){case af.IS:case af.CONTAINS:case af.LESS_THAN:case af.LESS_THAN_EQUALS:case af.GREATER_THAN:case af.GREATER_THAN_EQUALS:case af.VERSION_LESS_THAN:case af.VERSION_LESS_THAN_EQUALS:case af.VERSION_GREATER_THAN:case af.VERSION_GREATER_THAN_EQUALS:case af.SET_IS:case af.SET_CONTAINS:case af.SET_CONTAINS_ANY:return r;case af.IS_NOT:case af.DOES_NOT_CONTAIN:case af.SET_DOES_NOT_CONTAIN:case af.SET_DOES_NOT_CONTAIN_ANY:return!r;default:return!1}},e.prototype.matchSet=function(e,t,r){switch(t){case af.SET_IS:return this.setEquals(e,r);case af.SET_IS_NOT:return!this.setEquals(e,r);case af.SET_CONTAINS:return this.matchesSetContainsAll(e,r);case af.SET_DOES_NOT_CONTAIN:return!this.matchesSetContainsAll(e,r);case af.SET_CONTAINS_ANY:return this.matchesSetContainsAny(e,r);case af.SET_DOES_NOT_CONTAIN_ANY:return!this.matchesSetContainsAny(e,r);default:return!1}},e.prototype.matchString=function(e,t,r){var n=this;switch(t){case af.IS:return this.matchesIs(e,r);case af.IS_NOT:return!this.matchesIs(e,r);case af.CONTAINS:return this.matchesContains(e,r);case af.DOES_NOT_CONTAIN:return!this.matchesContains(e,r);case af.LESS_THAN:case af.LESS_THAN_EQUALS:case af.GREATER_THAN:case af.GREATER_THAN_EQUALS:return this.matchesComparable(e,t,r,function(e){return n.parseNumber(e)},this.comparator);case af.VERSION_LESS_THAN:case af.VERSION_LESS_THAN_EQUALS:case af.VERSION_GREATER_THAN:case af.VERSION_GREATER_THAN_EQUALS:return this.matchesComparable(e,t,r,function(e){return aS.parse(e)},this.versionComparator);case af.REGEX_MATCH:return this.matchesRegex(e,r);case af.REGEX_DOES_NOT_MATCH:return!this.matchesRegex(e,r);default:return!1}},e.prototype.matchesIs=function(e,t){if(this.containsBooleans(t)){var r=e.toLowerCase();if("true"===r||"false"===r)return t.some(function(e){return e.toLowerCase()===r})}return t.some(function(t){return e===t})},e.prototype.matchesContains=function(e,t){var r,n;try{for(var i=au(t),o=i.next();!o.done;o=i.next()){var a=o.value;if(e.toLowerCase().includes(a.toLowerCase()))return!0}}catch(e){r={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return!1},e.prototype.matchesComparable=function(e,t,r,n,i){var o=this,a=n(e),s=r.map(function(e){return n(e)}).filter(function(e){return void 0!==e});return void 0===a||0===s.length?r.some(function(r){return o.comparator(e,t,r)}):s.some(function(e){return i(a,t,e)})},e.prototype.comparator=function(e,t,r){switch(t){case af.LESS_THAN:case af.VERSION_LESS_THAN:return e<r;case af.LESS_THAN_EQUALS:case af.VERSION_LESS_THAN_EQUALS:return e<=r;case af.GREATER_THAN:case af.VERSION_GREATER_THAN:return e>r;case af.GREATER_THAN_EQUALS:case af.VERSION_GREATER_THAN_EQUALS:return e>=r;default:return!1}},e.prototype.versionComparator=function(e,t,r){var n=e.compareTo(r);switch(t){case af.LESS_THAN:case af.VERSION_LESS_THAN:return n<0;case af.LESS_THAN_EQUALS:case af.VERSION_LESS_THAN_EQUALS:return n<=0;case af.GREATER_THAN:case af.VERSION_GREATER_THAN:return n>0;case af.GREATER_THAN_EQUALS:case af.VERSION_GREATER_THAN_EQUALS:return n>=0;default:return!1}},e.prototype.matchesRegex=function(e,t){return t.some(function(t){return!!new RegExp(t).exec(e)})},e.prototype.containsNone=function(e){return e.some(function(e){return"(none)"===e})},e.prototype.containsBooleans=function(e){return e.some(function(e){switch(e.toLowerCase()){case"true":case"false":return!0;default:return!1}})},e.prototype.parseNumber=function(e){var t;return null!=(t=Number(e))?t:void 0},e.prototype.coerceString=function(e){if(null!=e)return"object"==typeof e?JSON.stringify(e):String(e)},e.prototype.coerceStringArray=function(e){var t=this;if(Array.isArray(e)){var r=e;return r.map(function(e){return t.coerceString(e)}).filter(Boolean)}var n=String(e);try{var i=JSON.parse(n);if(Array.isArray(i)){var r=e;return r.map(function(e){return t.coerceString(e)}).filter(Boolean)}var o=this.coerceString(n);return o?[o]:void 0}catch(e){var o=this.coerceString(n);return o?[o]:void 0}},e.prototype.isSetOperator=function(e){switch(e){case af.SET_IS:case af.SET_IS_NOT:case af.SET_CONTAINS:case af.SET_DOES_NOT_CONTAIN:case af.SET_CONTAINS_ANY:case af.SET_DOES_NOT_CONTAIN_ANY:return!0;default:return!1}},e.prototype.setEquals=function(e,t){var r=new Set(e),n=new Set(t);return r.size===n.size&&ad([],ac(n),!1).every(function(e){return r.has(e)})},e.prototype.matchesSetContainsAll=function(e,t){var r,n;if(e.length<t.length)return!1;try{for(var i=au(t),o=i.next();!o.done;o=i.next()){var a=o.value;if(!this.matchesIs(a,e))return!1}}catch(e){r={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return!0},e.prototype.matchesSetContainsAny=function(e,t){var r,n;try{for(var i=au(t),o=i.next();!o.done;o=i.next()){var a=o.value;if(this.matchesIs(a,e))return!0}}catch(e){r={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return!1},e}(),ak=function(e,t){var r,n,i=aa({},e),o=[],a=t||Object.keys(i);try{for(var s=au(a),l=s.next();!l.done;l=s.next()){var u=l.value,c=aC(u,i);c&&o.push.apply(o,ad([],ac(c),!1))}}catch(e){r={error:e}}finally{try{l&&!l.done&&(n=s.return)&&n.call(s)}finally{if(r)throw r.error}}return o},aC=function(e,t,r){void 0===r&&(r=[]);var n,i,o=t[e];if(o){if(!o.dependencies||0===o.dependencies.length)return delete t[o.key],[o];r.push(o.key);var a=[],s=function(e){if(r.some(function(t){return t===e}))throw Error("Detected a cycle between flags ".concat(r));var n=aC(e,t,r);n&&a.push.apply(a,ad([],ac(n),!1))};try{for(var l=au(o.dependencies),u=l.next();!u.done;u=l.next()){var c=u.value;s(c)}}catch(e){n={error:e}}finally{try{u&&!u.done&&(i=l.return)&&i.call(l)}finally{if(n)throw n.error}}return a.push(o),r.pop(),delete t[o.key],a}};let aO="function"==typeof atob,aI="function"==typeof btoa,a_="function"==typeof an,aT="function"==typeof TextDecoder?new TextDecoder:void 0,aP="function"==typeof TextEncoder?new TextEncoder:void 0,aR=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),aA=(e=>{let t={};return e.forEach((e,r)=>t[e]=r),t})(aR),aN=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,aM=String.fromCharCode.bind(String),aL="function"==typeof Uint8Array.from?Uint8Array.from.bind(Uint8Array):e=>new Uint8Array(Array.prototype.slice.call(e,0)),aV=e=>e.replace(/=/g,"").replace(/[+\/]/g,e=>"+"==e?"-":"_"),aD=e=>e.replace(/[^A-Za-z0-9\+\/]/g,""),aF=aI?e=>btoa(e):a_?e=>an.from(e,"binary").toString("base64"):e=>{let t,r,n,i,o="",a=e.length%3;for(let a=0;a<e.length;){if((r=e.charCodeAt(a++))>255||(n=e.charCodeAt(a++))>255||(i=e.charCodeAt(a++))>255)throw TypeError("invalid character found");o+=aR[(t=r<<16|n<<8|i)>>18&63]+aR[t>>12&63]+aR[t>>6&63]+aR[63&t]}return a?o.slice(0,a-3)+"===".substring(a):o},aj=a_?e=>an.from(e).toString("base64"):e=>{let t=[];for(let r=0,n=e.length;r<n;r+=4096)t.push(aM.apply(null,e.subarray(r,r+4096)));return aF(t.join(""))},az=e=>{if(e.length<2){var t=e.charCodeAt(0);return t<128?e:t<2048?aM(192|t>>>6)+aM(128|63&t):aM(224|t>>>12&15)+aM(128|t>>>6&63)+aM(128|63&t)}var t=65536+(e.charCodeAt(0)-55296)*1024+(e.charCodeAt(1)-56320);return aM(240|t>>>18&7)+aM(128|t>>>12&63)+aM(128|t>>>6&63)+aM(128|63&t)},aB=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,aU=a_?e=>an.from(e,"utf8").toString("base64"):aP?e=>aj(aP.encode(e)):e=>aF(e.replace(aB,az)),aH=(e,t=!1)=>t?aV(aU(e)):aU(e),aW=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,a$=e=>{switch(e.length){case 4:var t=((7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3))-65536;return aM((t>>>10)+55296)+aM((1023&t)+56320);case 3:return aM((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return aM((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},aq=aO?e=>atob(aD(e)):a_?e=>an.from(e,"base64").toString("binary"):e=>{if(e=e.replace(/\s+/g,""),!aN.test(e))throw TypeError("malformed base64.");e+="==".slice(2-(3&e.length));let t,r="",n,i;for(let o=0;o<e.length;)t=aA[e.charAt(o++)]<<18|aA[e.charAt(o++)]<<12|(n=aA[e.charAt(o++)])<<6|(i=aA[e.charAt(o++)]),r+=64===n?aM(t>>16&255):64===i?aM(t>>16&255,t>>8&255):aM(t>>16&255,t>>8&255,255&t);return r},aG=a_?e=>aL(an.from(e,"base64")):e=>aL(aq(e).split("").map(e=>e.charCodeAt(0))),aK=a_?e=>an.from(e,"base64").toString("utf8"):aT?e=>aT.decode(aG(e)):e=>aq(e).replace(aW,a$),aY={encodeURL:e=>aH(e,!0)};var aX=function(e){function t(r,n){var i=e.call(this,n)||this;return i.statusCode=r,Object.setPrototypeOf(i,t.prototype),i}return ao(t,e),t}(Error),aQ=function(e){function t(r){var n=e.call(this,r)||this;return Object.setPrototypeOf(n,t.prototype),n}return ao(t,e),t}(Error),aJ=function(){function e(e,t,r){this.deploymentKey=e,this.serverUrl=t,this.httpClient=r}return e.prototype.getVariants=function(e,t){return as(this,void 0,void 0,function(){var r,n,i,o;return al(this,function(a){switch(a.label){case 0:return r=aY.encodeURL(JSON.stringify(e)),n={Authorization:"Api-Key ".concat(this.deploymentKey),"X-Amp-Exp-User":r},(null==t?void 0:t.flagKeys)&&(n["X-Amp-Exp-Flag-Keys"]=aY.encodeURL(JSON.stringify(t.flagKeys))),(null==t?void 0:t.trackingOption)&&(n["X-Amp-Exp-Track"]=t.trackingOption),i=new URL("".concat(this.serverUrl,"/sdk/v2/vardata?v=0")),(null==t?void 0:t.evaluationMode)&&i.searchParams.append("eval_mode",null==t?void 0:t.evaluationMode),(null==t?void 0:t.deliveryMethod)&&i.searchParams.append("delivery_method",null==t?void 0:t.deliveryMethod),[4,this.httpClient.request({requestUrl:i.toString(),method:"GET",headers:n,timeoutMillis:null==t?void 0:t.timeoutMillis})];case 1:if(200!=(o=a.sent()).status)throw new aX(o.status,"Fetch error response: status=".concat(o.status));return[2,JSON.parse(o.body)]}})})},e}(),aZ=function(){function e(e,t,r){this.deploymentKey=e,this.serverUrl=t,this.httpClient=r}return e.prototype.getFlags=function(e){return as(this,void 0,void 0,function(){var t,r;return al(this,function(n){switch(n.label){case 0:return t={Authorization:"Api-Key ".concat(this.deploymentKey)},(null==e?void 0:e.libraryName)&&(null==e?void 0:e.libraryVersion)&&(t["X-Amp-Exp-Library"]="".concat(e.libraryName,"/").concat(e.libraryVersion)),(null==e?void 0:e.user)&&(t["X-Amp-Exp-User"]=aY.encodeURL(JSON.stringify(e.user))),[4,this.httpClient.request({requestUrl:"".concat(this.serverUrl,"/sdk/v2/flags")+((null==e?void 0:e.deliveryMethod)?"?delivery_method=".concat(e.deliveryMethod):""),method:"GET",headers:t,timeoutMillis:null==e?void 0:e.timeoutMillis})];case 1:if(200!=(r=n.sent()).status)throw Error("Flags error response: status=".concat(r.status));return[2,JSON.parse(r.body).reduce(function(e,t){return e[t.key]=t,e},{})]}})})},e}(),a0="undefined"!=typeof globalThis?globalThis:r.g||self,a1=function(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof self?self:void 0!==r.g?r.g:void 0},a2=function(){var e=a1();if(e)try{var t="EXP_test";return e.localStorage.setItem(t,t),e.localStorage.removeItem(t),!0}catch(e){}return!1},a5=function(){function e(e,t){this.poller=void 0,this.action=e,this.ms=t}return e.prototype.start=function(){this.poller||(this.poller=a0.setInterval(this.action,this.ms),this.action())},e.prototype.stop=function(){this.poller&&(a0.clearInterval(this.poller),this.poller=void 0)},e}(),a3=r(82519);!function(){function e(e){this.amplitudeInstance=e}e.prototype.getUser=function(){var e,t,r,n,i,o,a,s,l,u;return{device_id:null==(t=null==(e=this.amplitudeInstance)?void 0:e.options)?void 0:t.deviceId,user_id:null==(n=null==(r=this.amplitudeInstance)?void 0:r.options)?void 0:n.userId,version:null==(o=null==(i=this.amplitudeInstance)?void 0:i.options)?void 0:o.versionName,language:null==(s=null==(a=this.amplitudeInstance)?void 0:a.options)?void 0:s.language,platform:null==(u=null==(l=this.amplitudeInstance)?void 0:l.options)?void 0:u.platform,os:this.getOs(),device_model:this.getDeviceModel()}},e.prototype.getOs=function(){var e,t,r,n,i,o;return[null==(r=null==(t=null==(e=this.amplitudeInstance)?void 0:e._ua)?void 0:t.browser)?void 0:r.name,null==(o=null==(i=null==(n=this.amplitudeInstance)?void 0:n._ua)?void 0:i.browser)?void 0:o.major].filter(function(e){return null!=e}).join(" ")},e.prototype.getDeviceModel=function(){var e,t,r;return null==(r=null==(t=null==(e=this.amplitudeInstance)?void 0:e._ua)?void 0:t.os)?void 0:r.name}}(),function(){function e(e){this.amplitudeInstance=e}e.prototype.track=function(e){this.amplitudeInstance.logEvent(e.name,e.properties)},e.prototype.setUserProperty=function(e){var t,r;this.amplitudeInstance.setUserProperties(((t={})[e.userProperty]=null==(r=e.variant)?void 0:r.value,t))},e.prototype.unsetUserProperty=function(e){var t;this.amplitudeInstance._logEvent("$identify",null,null,{$unset:((t={})[e.userProperty]="-",t)})}}();var a4=function(){return(a4=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function a6(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}l((n=n.apply(e,t||[])).next())})}function a8(e,t){var r,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(l){var u=[s,l];if(r)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(a=0)),a;)try{if(r=1,n&&(i=2&u[0]?n.return:u[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,u[1])).done)return i;switch(n=0,i&&(u=[2&u[0],i.value]),u[0]){case 0:case 1:i=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,n=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===u[0]||2===u[0])){a=0;continue}if(3===u[0]&&(!i||u[1]>i[0]&&u[1]<i[3])){a.label=u[1];break}if(6===u[0]&&a.label<i[1]){a.label=i[1],i=u;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(u);break}i[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],n=0}finally{r=i=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}function a7(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function a9(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}function se(e,t,r){if(r||2==arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var st=function(e,t){void 0===t&&(t=!1);var r,n,i=si(e,t),o=void 0,a=a0.document.cookie.split("; ");try{for(var s=a7(a),l=s.next();!l.done;l=s.next()){var u=l.value,c=a9(u.split("=",2),2),d=c[0],f=c[1];d===i&&(o=decodeURIComponent(f))}}catch(e){r={error:e}}finally{try{l&&!l.done&&(n=s.return)&&n.call(s)}finally{if(r)throw r.error}}if(o)try{if(t){var h=atob(o);return JSON.parse(decodeURIComponent(h))}var p=o.split("."),g=void 0;return p.length>=2&&p[1]&&(g=atob(p[1])),{deviceId:p[0],userId:g}}catch(e){return}},sr=function(e){var t=si(e,!0);try{var r=a0.localStorage.getItem(t);if(!r)return;var n=JSON.parse(r);if("object"!=typeof n)return;return n}catch(e){return}},sn=function(e){var t=si(e,!0);try{var r=a0.sessionStorage.getItem(t);if(!r)return;var n=JSON.parse(r);if("object"!=typeof n)return;return n}catch(e){return}},si=function(e,t){if(t){if((null==e?void 0:e.length)<10)return;return"AMP_".concat(e.substring(0,10))}if(!((null==e?void 0:e.length)<6))return"amp_".concat(e.substring(0,6))},so=function(){function e(e,t,r){this.type="integration",this.apiKey=e,this.identityStore=t.identityStore,this.eventBridge=t.eventBridge,this.contextProvider=t.applicationContextProvider,this.timeoutMillis=r,this.loadPersistedState(),r<=0&&(this.setup=void 0)}return e.prototype.setup=function(e,t){return a6(this,void 0,void 0,function(){return a8(this,function(r){return(null==e?void 0:e.automaticFetchOnAmplitudeIdentityChange)&&this.identityStore.addIdentityListener(function(){null==t||t.fetch()}),[2,this.waitForConnectorIdentity(this.timeoutMillis)]})})},e.prototype.getUser=function(){var e=this.identityStore.getIdentity();return{user_id:e.userId,device_id:e.deviceId,user_properties:e.userProperties,version:this.contextProvider.versionName}},e.prototype.track=function(e){return!!this.eventBridge.receiver&&(this.eventBridge.logEvent({eventType:e.eventType,eventProperties:e.eventProperties}),!0)},e.prototype.loadPersistedState=function(){if(!this.apiKey||this.apiKey.startsWith("client-"))return!1;var e=st(this.apiKey,!0);return!!(e||(e=st(this.apiKey,!1))||(e=sr(this.apiKey))||(e=sn(this.apiKey)))&&(this.commitIdentityToConnector(e),!0)},e.prototype.commitIdentityToConnector=function(e){var t=this.identityStore.editIdentity();t.setDeviceId(e.deviceId),e.userId&&t.setUserId(e.userId),t.commit()},e.prototype.waitForConnectorIdentity=function(e){return a6(this,void 0,void 0,function(){var t,r=this;return a8(this,function(n){return(t=this.identityStore.getIdentity()).userId||t.deviceId?[2]:[2,Promise.race([new Promise(function(e){var t=function(){e(),r.identityStore.removeIdentityListener(t)};r.identityStore.addIdentityListener(t)}),new Promise(function(t,r){a0.setTimeout(r,e,"Timed out waiting for Amplitude Analytics SDK to initialize.")})])]})})},e}(),sa=a0.fetch||function(e,t){return t=t||{},new Promise(function(r,n){var i=new XMLHttpRequest,o=[],a=[],s={},l=function(){return{ok:2==(i.status/100|0),statusText:i.statusText,status:i.status,url:i.responseURL,text:function(){return Promise.resolve(i.responseText)},json:function(){return Promise.resolve(JSON.parse(i.responseText))},blob:function(){return Promise.resolve(new Blob([i.response]))},clone:l,headers:{keys:function(){return o},entries:function(){return a},get:function(e){return s[e.toLowerCase()]},has:function(e){return e.toLowerCase()in s}}}};for(var u in i.open(t.method||"get",e,!0),i.onload=function(){i.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,function(e,t,r){o.push(t=t.toLowerCase()),a.push([t,r]),s[t]=s[t]?s[t]+","+r:r}),r(l())},i.onerror=n,i.withCredentials="include"==t.credentials,t.headers)i.setRequestHeader(u,t.headers[u]);i.send(t.body||null)})},ss=function(){function e(e){this.client=e}return e.prototype.request=function(e){return a6(this,void 0,void 0,function(){return a8(this,function(t){switch(t.label){case 0:return[4,this.client.request(e.requestUrl,e.method,e.headers,null,e.timeoutMillis)];case 1:return[2,t.sent()]}})})},e}(),sl={request:function(e,t,r,n,i){var o;return o=a6(void 0,void 0,void 0,function(){var i,o;return a8(this,function(a){switch(a.label){case 0:return[4,sa(e,{method:t,headers:r,body:n})];case 1:return o={status:(i=a.sent()).status},[4,i.text()];case 2:return o.body=a.sent(),[2,o]}})}),null==i||i<=0?o:new Promise(function(e,t){a0.setTimeout(function(){t(new aQ("Request timeout after "+i+" milliseconds"))},i),o.then(e,t)})}};!function(e){e.LocalStorage="localStorage",e.InitialVariants="initialVariants"}(I||(I={})),function(e){e.LocalStorage="storage",e.InitialVariants="initial",e.SecondaryLocalStorage="secondary-storage",e.SecondaryInitialVariants="secondary-initial",e.FallbackInline="fallback-inline",e.FallbackConfig="fallback-config",e.LocalEvaluation="local-evaluation"}(_||(_={}));var su=function(e){return!e||e===_.FallbackInline||e===_.FallbackConfig||e===_.SecondaryInitialVariants},sc={debug:!1,instanceName:"$default_instance",fallbackVariant:{},initialVariants:{},initialFlags:void 0,source:I.LocalStorage,serverUrl:"https://api.lab.amplitude.com",flagsServerUrl:"https://flag.lab.amplitude.com",serverZone:"US",fetchTimeoutMillis:1e4,retryFetchOnFailure:!0,automaticExposureTracking:!0,pollOnStart:!0,flagConfigPollingIntervalMillis:3e5,fetchOnStart:!0,automaticFetchOnAmplitudeIdentityChange:!1,userProvider:null,analyticsProvider:null,exposureTrackingProvider:null,httpClient:sl},sd="1.15.6",sf=function(){function e(e,t){var r,n=this;this.isReady=new Promise(function(e){n.resolve=e}),this.config=e,this.client=t;var i=null!=(r=e.instanceName)?r:sc.instanceName;this.queue=new sp(i),this.cache=new sh(i)}return e.prototype.ready=function(){return this.integration?this.isReady:Promise.resolve()},e.prototype.setIntegration=function(e){var t=this;this.integration&&this.integration.teardown&&this.integration.teardown(),this.integration=e,e.setup?this.integration.setup(this.config,this.client).then(function(){t.queue.setTracker(t.integration.track.bind(e)),t.resolve()},function(){t.queue.setTracker(t.integration.track.bind(e)),t.resolve()}):(this.queue.setTracker(this.integration.track.bind(e)),this.resolve())},e.prototype.getUser=function(){return this.integration?this.integration.getUser():{}},e.prototype.track=function(e){if(this.cache.shouldTrack(e)){var t=this.getExposureEvent(e);this.queue.push(t)}},e.prototype.getExposureEvent=function(e){var t,r,n,i={eventType:"$exposure",eventProperties:e};return(null==(t=e.metadata)?void 0:t.exposureEvent)?i={eventType:null==(r=e.metadata)?void 0:r.exposureEvent,eventProperties:e}:(null==(n=e.metadata)?void 0:n.deliveryMethod)==="web"&&(i={eventType:"$impression",eventProperties:e}),i},e}(),sh=function(){function e(e){this.isSessionStorageAvailable=sg(),this.inMemoryCache={},this.storageKey="EXP_sent_v2_".concat(e),this.isSessionStorageAvailable&&a0.sessionStorage.removeItem("EXP_sent_".concat(e))}return e.prototype.shouldTrack=function(e){if((null==(t=e.metadata)?void 0:t.deliveryMethod)==="web")return!0;this.loadCache();var t,r=this.inMemoryCache[e.flag_key],n=!1;return r&&r.variant===e.variant||(n=!0,this.inMemoryCache[e.flag_key]=e),this.storeCache(),n},e.prototype.loadCache=function(){if(this.isSessionStorageAvailable){var e=a0.sessionStorage.getItem(this.storageKey);this.inMemoryCache=e?JSON.parse(e):{}}},e.prototype.storeCache=function(){this.isSessionStorageAvailable&&a0.sessionStorage.setItem(this.storageKey,JSON.stringify(this.inMemoryCache))},e}(),sp=function(){function e(e,t){void 0===t&&(t=512),this.isLocalStorageAvailable=a2(),this.inMemoryQueue=[],this.storageKey="EXP_unsent_".concat(e),this.maxQueueSize=t}return e.prototype.push=function(e){this.loadQueue(),this.inMemoryQueue.push(e),this.flush(),this.storeQueue()},e.prototype.setTracker=function(e){var t=this;this.tracker=e,this.poller=a0.setInterval(function(){t.loadFlushStore()},1e3),this.loadFlushStore()},e.prototype.flush=function(){var e,t;if(this.tracker&&0!==this.inMemoryQueue.length){try{for(var r=a7(this.inMemoryQueue),n=r.next();!n.done;n=r.next()){var i=n.value;try{if(!this.tracker(i))return}catch(e){return}}}catch(t){e={error:t}}finally{try{n&&!n.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}this.inMemoryQueue=[],this.poller&&(a0.clearInterval(this.poller),this.poller=void 0)}},e.prototype.loadQueue=function(){if(this.isLocalStorageAvailable){var e=a0.localStorage.getItem(this.storageKey);this.inMemoryQueue=e?JSON.parse(e):[]}},e.prototype.storeQueue=function(){this.isLocalStorageAvailable&&(this.inMemoryQueue.length>this.maxQueueSize&&(this.inMemoryQueue=this.inMemoryQueue.slice(this.inMemoryQueue.length-this.maxQueueSize)),a0.localStorage.setItem(this.storageKey,JSON.stringify(this.inMemoryQueue)))},e.prototype.loadFlushStore=function(){this.loadQueue(),this.flush(),this.storeQueue()},e}(),sg=function(){var e=a1();if(e)try{var t="EXP_test";return e.sessionStorage.setItem(t,t),e.sessionStorage.removeItem(t),!0}catch(e){}return!1},sv=function(){function e(){this.globalScope=a1()}return e.prototype.get=function(e){var t;return null==(t=this.globalScope)?void 0:t.localStorage.getItem(e)},e.prototype.put=function(e,t){var r;null==(r=this.globalScope)||r.localStorage.setItem(e,t)},e.prototype.delete=function(e){var t;null==(t=this.globalScope)||t.localStorage.removeItem(e)},e}(),sm=function(e,t,r){var n=e.substring(e.length-6);return new sy("amp-exp-".concat(t,"-").concat(n),r,sx)},sb=function(e,t,r){void 0===r&&(r=new sv);var n=e.substring(e.length-6);return new sy("amp-exp-".concat(t,"-").concat(n,"-flags"),r)},sy=function(){function e(e,t,r){this.cache={},this.namespace=e,this.storage=t,this.transformer=r}return e.prototype.get=function(e){return this.cache[e]},e.prototype.getAll=function(){return a4({},this.cache)},e.prototype.put=function(e,t){this.cache[e]=t},e.prototype.putAll=function(e){var t,r;try{for(var n=a7(Object.keys(e)),i=n.next();!i.done;i=n.next()){var o=i.value;this.cache[o]=e[o]}}catch(e){t={error:e}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}},e.prototype.remove=function(e){delete this.cache[e]},e.prototype.clear=function(){this.cache={}},e.prototype.load=function(){var e,t,r,n=this.storage.get(this.namespace);try{r=JSON.parse(n)||{}}catch(e){return}var i={};try{for(var o=a7(Object.keys(r)),a=o.next();!a.done;a=o.next()){var s=a.value;try{var l=void 0;(l=this.transformer?this.transformer(r[s]):r[s])&&(i[s]=l)}catch(e){}}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}this.clear(),this.putAll(i)},e.prototype.store=function(e){void 0===e&&(e=this.cache),this.storage.put(this.namespace,JSON.stringify(e))},e}(),sx=function(e){if("string"==typeof e)return{key:e,value:e};if("object"==typeof e){var t=e.key,r=e.value,n=e.payload,i=e.metadata,o=e.expKey;i&&i.experimentKey?o=i.experimentKey:o&&((i=i||{}).experimentKey=o);var a={};return t?a.key=t:r&&(a.key=r),r&&(a.value=r),i&&(a.metadata=i),n&&(a.payload=n),o&&(a.expKey=o),a}},sw=function(){function e(){this.globalScope=a1()}return e.prototype.get=function(e){var t;return null==(t=this.globalScope)?void 0:t.sessionStorage.getItem(e)},e.prototype.put=function(e,t){var r;null==(r=this.globalScope)||r.sessionStorage.setItem(e,t)},e.prototype.delete=function(e){var t;null==(t=this.globalScope)||t.sessionStorage.removeItem(e)},e}(),sS=function(e,t,r,n){var i,o=null==r?void 0:r.value,a="[Experiment] ".concat(t);return{name:"[Experiment] Exposure",user:e,key:t,variant:r,userProperty:a,properties:{key:t,variant:o,source:n},userProperties:((i={})[a]=o,i)}},sE=function(e){return null==e},sk=function(e){return!!sE(e)||e&&0===Object.keys(e).length},sC=function(e){var t;return(null==(t=null==e?void 0:e.metadata)?void 0:t.evaluationMode)==="local"},sO=function(){function e(e,t,r,n){this.started=!1,this.done=!1,this.attempts=e,this.min=t,this.max=r,this.scalar=n}return e.prototype.start=function(e){return a6(this,void 0,void 0,function(){return a8(this,function(t){switch(t.label){case 0:if(this.started)throw Error("Backoff already started");return this.started=!0,[4,this.backoff(e,0,this.min)];case 1:return t.sent(),[2]}})})},e.prototype.cancel=function(){this.done=!0,clearTimeout(this.timeoutHandle)},e.prototype.backoff=function(e,t,r){return a6(this,void 0,void 0,function(){var n=this;return a8(this,function(i){return this.done||(this.timeoutHandle=a0.setTimeout(function(){return a6(n,void 0,void 0,function(){var n,i;return a8(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,e()];case 1:return o.sent(),[3,3];case 2:return o.sent(),(n=t+1)<this.attempts&&(i=Math.min(r*this.scalar,this.max),this.backoff(e,n,i)),[3,3];case 3:return[2]}})})},r)),[2]})})},e}(),sI=function(e){if(!e)return{};var t,r,n,i,o={user:e},a=a1();a&&(o.page={url:a.location.href});var s={};if(!e.groups)return o;try{for(var l=a7(Object.keys(e.groups)),u=l.next();!u.done;u=l.next()){var c=u.value,d=e.groups[c];if(d.length>0&&d[0]){var f=d[0],h={group_name:f},p=null==(i=null==(n=e.group_properties)?void 0:n[c])?void 0:i[f];p&&Object.keys(p).length>0&&(h.group_properties=p),s[c]=h}}}catch(e){t={error:e}}finally{try{u&&!u.done&&(r=l.return)&&r.call(l)}finally{if(t)throw t.error}}return Object.keys(s).length>0&&(o.groups=s),delete o.user.groups,delete o.user.group_properties,o},s_=function(e){return null==e?{}:"string"==typeof e?{key:e,value:e}:e},sT=function(e){if(!e)return{};var t=void 0;e.metadata&&(t=e.metadata.experimentKey);var r={};return e.key&&(r.key=e.key),e.value&&(r.value=e.value),e.payload&&(r.payload=e.payload),t&&(r.expKey=t),e.metadata&&(r.metadata=e.metadata),r},sP=function(){function e(e){this.setProperties={},this.unsetProperties={},this.analyticsProvider=e}return e.prototype.track=function(e){this.setProperties[e.key]!=e.variant.value&&(this.setProperties[e.key]=e.variant.value,delete this.unsetProperties[e.key],this.analyticsProvider.track(e))},e.prototype.setUserProperty=function(e){this.setProperties[e.key]!=e.variant.value&&this.analyticsProvider.setUserProperty(e)},e.prototype.unsetUserProperty=function(e){this.unsetProperties[e.key]||(this.unsetProperties[e.key]="unset",delete this.setProperties[e.key],this.analyticsProvider.unsetUserProperty(e))},e}(),sR=function(){function e(e){this.tracked={},this.exposureTrackingProvider=e}return e.prototype.track=function(e){var t=this.tracked[e.flag_key];t&&t.variant===e.variant||(this.tracked[e.flag_key]=e,this.exposureTrackingProvider.track(e))},e}(),sA=function(){function e(e,t){var r,n,i,o,a,s=this;this.engine=new aE,this.isRunning=!1,this.apiKey=e,this.config=a4(a4(a4({},sc),t),{serverUrl:(null==t?void 0:t.serverUrl)||((null==(r=null==t?void 0:t.serverZone)?void 0:r.toLowerCase())==="eu"?"https://api.lab.eu.amplitude.com":sc.serverUrl),flagsServerUrl:(null==t?void 0:t.flagsServerUrl)||((null==(n=null==t?void 0:t.serverZone)?void 0:n.toLowerCase())==="eu"?"https://flag.lab.eu.amplitude.com":sc.flagsServerUrl),flagConfigPollingIntervalMillis:t.flagConfigPollingIntervalMillis<6e4?6e4:null!=(i=t.flagConfigPollingIntervalMillis)?i:sc.flagConfigPollingIntervalMillis});var l=null==(o=this.config)?void 0:o.internalInstanceNameSuffix;if(this.isWebExperiment="web"===l,this.poller=new a5(function(){return s.doFlags()},this.config.flagConfigPollingIntervalMillis),this.config.initialVariants)for(var u in this.config.initialVariants)this.config.initialVariants[u]=sx(this.config.initialVariants[u]);this.config.userProvider&&(this.userProvider=this.config.userProvider),this.config.analyticsProvider&&(this.analyticsProvider=new sP(this.config.analyticsProvider)),this.config.exposureTrackingProvider&&(this.exposureTrackingProvider=new sR(this.config.exposureTrackingProvider)),this.integrationManager=new sf(this.config,this);var c=new ss(this.config.httpClient||sl);this.flagApi=new aZ(this.apiKey,this.config.flagsServerUrl,c),this.evaluationApi=new aJ(this.apiKey,this.config.serverUrl,c);var d=l?"".concat(this.config.instanceName,"-").concat(l):this.config.instanceName;a=this.isWebExperiment?new sw:new sv,this.variants=sm(this.apiKey,d,a),this.flags=sb(this.apiKey,d,a);try{this.flags.load(),this.variants.load()}catch(e){}this.mergeInitialFlagsWithStorage()}return e.prototype.start=function(e){var t;return a6(this,void 0,void 0,function(){var r;return a8(this,function(n){switch(n.label){case 0:if(this.isRunning)return[2];if(this.isRunning=!0,this.setUser(e),r=this.doFlags(),!(null==(t=this.config.fetchOnStart)||t))return[3,2];return[4,Promise.all([this.fetch(e),r])];case 1:return n.sent(),[3,4];case 2:return[4,r];case 3:n.sent(),n.label=4;case 4:return this.config.pollOnStart&&this.poller.start(),[2]}})})},e.prototype.stop=function(){this.isRunning&&(this.poller.stop(),this.isRunning=!1)},e.prototype.fetch=function(e,t){return void 0===e&&(e=this.user),a6(this,void 0,void 0,function(){var r;return a8(this,function(n){switch(n.label){case 0:this.setUser(e||{}),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.fetchInternal(e,this.config.fetchTimeoutMillis,this.config.retryFetchOnFailure,t)];case 2:return n.sent(),[3,4];case 3:return r=n.sent(),this.config.debug&&(r instanceof aQ?console.debug(r):console.error(r)),[3,4];case 4:return[2,this]}})})},e.prototype.variant=function(e,t){if(!this.apiKey)return{value:void 0};var r,n,i=this.variantAndSource(e,t);return this.config.automaticExposureTracking&&this.exposureInternal(e,i),this.debug("[Experiment] variant for ".concat(e," is ").concat((null==(r=i.variant)?void 0:r.key)||(null==(n=i.variant)?void 0:n.value))),i.variant||{}},e.prototype.exposure=function(e){var t=this.variantAndSource(e);this.exposureInternal(e,t)},e.prototype.all=function(){if(!this.apiKey)return{};var e=this.evaluate();for(var t in e)sC(this.flags.get(t))||delete e[t];return a4(a4(a4({},this.secondaryVariants()),this.sourceVariants()),e)},e.prototype.clear=function(){this.variants.clear();try{this.variants.store()}catch(e){}},e.prototype.getUser=function(){if(!this.user)return this.user;if(null==(e=this.user)||!e.user_properties)return a4({},this.user);var e,t=a4({},this.user.user_properties);return a4(a4({},this.user),{user_properties:t})},e.prototype.setUser=function(e){var t;if(!e){this.user=null;return}if(null==(t=this.user)?void 0:t.user_properties){var r=a4({},e.user_properties);this.user=a4(a4({},e),{user_properties:r})}else this.user=a4({},e)},e.prototype.getUserProvider=function(){return this.userProvider},e.prototype.setUserProvider=function(e){return this.userProvider=e,this},e.prototype.mergeInitialFlagsWithStorage=function(){var e=this;this.config.initialFlags&&JSON.parse(this.config.initialFlags).forEach(function(t){e.flags.get(t.key)||e.flags.put(t.key,t)})},e.prototype.evaluate=function(e){var t,r,n=this.addContext(this.user),i=ak(this.flags.getAll(),e),o=sI(n),a=this.engine.evaluate(o,i),s={};try{for(var l=a7(Object.keys(a)),u=l.next();!u.done;u=l.next()){var c=u.value;s[c]=sT(a[c])}}catch(e){t={error:e}}finally{try{u&&!u.done&&(r=l.return)&&r.call(l)}finally{if(t)throw t.error}}return s},e.prototype.variantAndSource=function(e,t){var r={};this.config.source===I.LocalStorage?r=this.localStorageVariantAndSource(e,t):this.config.source===I.InitialVariants&&(r=this.initialVariantsVariantAndSource(e,t));var n=this.flags.get(e);return(sC(n)||!r.variant&&n)&&(r=this.localEvaluationVariantAndSource(e,n,t)),r},e.prototype.localEvaluationVariantAndSource=function(e,t,r){var n,i={},o=this.evaluate([t.key])[e],a=_.LocalEvaluation,s=null==(n=null==o?void 0:o.metadata)?void 0:n.default;if(!sE(o)&&!s)return{variant:s_(o),source:a,hasDefaultVariant:!1};if(s&&(i={variant:s_(o),source:a,hasDefaultVariant:!0}),!sE(r))return{variant:s_(r),source:_.FallbackInline,hasDefaultVariant:i.hasDefaultVariant};var l=this.config.initialVariants[e];if(!sE(l))return{variant:s_(l),source:_.SecondaryInitialVariants,hasDefaultVariant:i.hasDefaultVariant};var u=s_(this.config.fallbackVariant),c={variant:u,source:_.FallbackConfig,hasDefaultVariant:i.hasDefaultVariant};return sk(u)?i:c},e.prototype.localStorageVariantAndSource=function(e,t){var r,n={},i=this.variants.get(e),o=null==(r=null==i?void 0:i.metadata)?void 0:r.default;if(!sE(i)&&!o)return{variant:s_(i),source:_.LocalStorage,hasDefaultVariant:!1};if(o&&(n={variant:s_(i),source:_.LocalStorage,hasDefaultVariant:!0}),!sE(t))return{variant:s_(t),source:_.FallbackInline,hasDefaultVariant:n.hasDefaultVariant};var a=this.config.initialVariants[e];if(!sE(a))return{variant:s_(a),source:_.SecondaryInitialVariants,hasDefaultVariant:n.hasDefaultVariant};var s=s_(this.config.fallbackVariant),l={variant:s,source:_.FallbackConfig,hasDefaultVariant:n.hasDefaultVariant};return sk(s)?n:l},e.prototype.initialVariantsVariantAndSource=function(e,t){var r,n={},i=this.config.initialVariants[e];if(!sE(i))return{variant:s_(i),source:_.InitialVariants,hasDefaultVariant:!1};var o=this.variants.get(e),a=null==(r=null==o?void 0:o.metadata)?void 0:r.default;if(!sE(o)&&!a)return{variant:s_(o),source:_.LocalStorage,hasDefaultVariant:!1};if(a&&(n={variant:s_(o),source:_.LocalStorage,hasDefaultVariant:!0}),!sE(t))return{variant:s_(t),source:_.FallbackInline,hasDefaultVariant:n.hasDefaultVariant};var s=s_(this.config.fallbackVariant),l={variant:s,source:_.FallbackConfig,hasDefaultVariant:n.hasDefaultVariant};return sk(s)?n:l},e.prototype.fetchInternal=function(e,t,r,n){return a6(this,void 0,void 0,function(){var i,o;return a8(this,function(a){switch(a.label){case 0:if(!this.apiKey)throw Error("Experiment API key is empty");this.debug("[Experiment] Fetch all: retry=".concat(r)),r&&this.stopRetries(),a.label=1;case 1:return a.trys.push([1,4,,5]),[4,this.doFetch(e,t,n)];case 2:return i=a.sent(),[4,this.storeVariants(i,n)];case 3:return a.sent(),[2,i];case 4:throw o=a.sent(),r&&this.shouldRetryFetch(o)&&this.startRetries(e,n),o;case 5:return[2]}})})},e.prototype.cleanUserPropsForFetch=function(e){var t=a4({},e);return delete t.cookie,t},e.prototype.doFetch=function(e,t,r){return a6(this,void 0,void 0,function(){var n,i,o,a,s,l,u;return a8(this,function(c){switch(c.label){case 0:return[4,this.addContextOrWait(e)];case 1:return e=c.sent(),e=this.cleanUserPropsForFetch(e),this.debug("[Experiment] Fetch variants for user: ",e),[4,this.evaluationApi.getVariants(e,a4({timeoutMillis:t},r))];case 2:n=c.sent(),i={};try{for(a=(o=a7(Object.keys(n))).next();!a.done;a=o.next())i[s=a.value]=sT(n[s])}catch(e){l={error:e}}finally{try{a&&!a.done&&(u=o.return)&&u.call(o)}finally{if(l)throw l.error}}return this.debug("[Experiment] Received variants: ",i),[2,i]}})})},e.prototype.doFlags=function(){return a6(this,void 0,void 0,function(){var e,t,r;return a8(this,function(n){switch(n.label){case 0:if(n.trys.push([0,4,,5]),e=void 0,!this.isWebExperiment)return[3,2];return[4,this.addContextOrWait(this.getUser())];case 1:e=n.sent(),n.label=2;case 2:return[4,this.flagApi.getFlags({libraryName:"experiment-js-client",libraryVersion:sd,timeoutMillis:this.config.fetchTimeoutMillis,deliveryMethod:this.isWebExperiment?"web":void 0,user:(null==e?void 0:e.user_id)||(null==e?void 0:e.device_id)?{user_id:null==e?void 0:e.user_id,device_id:null==e?void 0:e.device_id}:void 0})];case 3:return t=n.sent(),this.flags.clear(),this.flags.putAll(t),[3,5];case 4:if((r=n.sent())instanceof aQ)this.config.debug&&console.debug(r);else throw r;return[3,5];case 5:try{this.flags.store()}catch(e){}return this.mergeInitialFlagsWithStorage(),[2]}})})},e.prototype.storeVariants=function(e,t){return a6(this,void 0,void 0,function(){var r,n,i,o;return a8(this,function(a){for(o in 0===(r=t&&t.flagKeys?t.flagKeys:[]).length&&this.variants.clear(),n=function(t){r=r.filter(function(e){return e!==t}),i.variants.put(t,e[t])},i=this,e)n(o);for(o in r)this.variants.remove(o);try{this.variants.store()}catch(e){}return this.debug("[Experiment] Stored variants: ",e),[2]})})},e.prototype.startRetries=function(e,t){return a6(this,void 0,void 0,function(){var r=this;return a8(this,function(n){return this.debug("[Experiment] Retry fetch"),this.retriesBackoff=new sO(8,500,1e4,1.5),this.retriesBackoff.start(function(){return a6(r,void 0,void 0,function(){return a8(this,function(r){switch(r.label){case 0:return[4,this.fetchInternal(e,1e4,!1,t)];case 1:return r.sent(),[2]}})})}),[2]})})},e.prototype.stopRetries=function(){this.retriesBackoff&&this.retriesBackoff.cancel()},e.prototype.addContext=function(e){var t,r=null==(t=this.userProvider)?void 0:t.getUser(),n=this.integrationManager.getUser(),i=a4(a4(a4({},null==r?void 0:r.user_properties),n.user_properties),null==e?void 0:e.user_properties);return a4(a4(a4(a4({library:"experiment-js-client/".concat(sd)},r),n),e),{user_properties:i})},e.prototype.addContextOrWait=function(e){return a6(this,void 0,void 0,function(){return a8(this,function(t){switch(t.label){case 0:return[4,this.integrationManager.ready()];case 1:return t.sent(),[2,this.addContext(e)]}})})},e.prototype.sourceVariants=function(){return this.config.source==I.LocalStorage?this.variants.getAll():this.config.source==I.InitialVariants?this.config.initialVariants:void 0},e.prototype.secondaryVariants=function(){return this.config.source==I.LocalStorage?this.config.initialVariants:this.config.source==I.InitialVariants?this.variants.getAll():void 0},e.prototype.exposureInternal=function(e,t){if(null==(i=null==(n=null==(r=t.variant)?void 0:r.metadata)?void 0:n.trackExposure)||i){this.legacyExposureInternal(e,t.variant,t.source);var r,n,i,o,a,s,l,u,c,d={flag_key:e},f=su(t.source);if(!f||t.hasDefaultVariant){(null==(o=t.variant)?void 0:o.expKey)&&(d.experiment_key=null==(a=t.variant)?void 0:a.expKey);var h=null==(s=t.variant)?void 0:s.metadata;f||(null==h?void 0:h.default)||((null==(l=t.variant)?void 0:l.key)?d.variant=t.variant.key:(null==(u=t.variant)?void 0:u.value)&&(d.variant=t.variant.value)),h&&(d.metadata=h),null==(c=this.exposureTrackingProvider)||c.track(d),this.integrationManager.track(d)}}},e.prototype.legacyExposureInternal=function(e,t,r){var n,i,o,a,s;if(this.analyticsProvider){var l=sS(this.addContext(this.getUser()),e,t,r);!su(r)&&(null==t?void 0:t.value)?(null==t?void 0:t.value)&&(null==(a=null==(o=this.analyticsProvider)?void 0:o.setUserProperty)||a.call(o,l),null==(s=this.analyticsProvider)||s.track(l)):null==(i=null==(n=this.analyticsProvider)?void 0:n.unsetUserProperty)||i.call(n,l)}},e.prototype.debug=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];this.config.debug&&console.debug.apply(console,se([e],a9(t),!1))},e.prototype.shouldRetryFetch=function(e){return!(e instanceof aX)||e.statusCode<400||e.statusCode>=500||429===e.statusCode},e.prototype.addPlugin=function(e){"integration"===e.type&&this.integrationManager.setIntegration(e)},e}(),sN=function(){function e(e,t){var r,n,i;this.globalScope=a1(),this.userAgent=void 0!==(null==(r=this.globalScope)?void 0:r.navigator)?null==(n=this.globalScope)?void 0:n.navigator.userAgent:void 0,this.ua=new a3.UAParser(this.userAgent).getResult(),this.localStorage=new sv,this.sessionStorage=new sw,this.userProvider=e,this.apiKey=t,this.storageKey="EXP_".concat(null==(i=this.apiKey)?void 0:i.slice(0,10),"_DEFAULT_USER_PROVIDER")}return e.prototype.getUser=function(){var e,t,r,n,i,o=(null==(e=this.userProvider)?void 0:e.getUser())||{};return a4({language:this.getLanguage(),platform:"Web",os:this.getOs(this.ua),device_model:this.getDeviceModel(this.ua),device_category:null!=(r=null==(t=this.ua.device)?void 0:t.type)?r:"desktop",referring_url:null==(i=null==(n=this.globalScope)?void 0:n.document)?void 0:i.referrer.replace(/\/$/,""),cookie:this.getCookie(),browser:this.getBrowser(this.ua),landing_url:this.getLandingUrl(),first_seen:this.getFirstSeen(),url_param:this.getUrlParam(),user_agent:this.userAgent},o)},e.prototype.getLanguage=function(){return"undefined"!=typeof navigator&&(navigator.languages&&navigator.languages[0]||navigator.language)||""},e.prototype.getOs=function(e){var t,r;return[null==(t=e.browser)?void 0:t.name,null==(r=e.browser)?void 0:r.major].filter(function(e){return null!=e}).join(" ")},e.prototype.getDeviceModel=function(e){var t;return null==(t=e.os)?void 0:t.name},e.prototype.getBrowser=function(e){var t,r=null==(t=e.browser)?void 0:t.name;return(null==r?void 0:r.includes("Chrom"))&&(r="Chrome"),(null==r?void 0:r.includes("Firefox"))&&(r="Firefox"),(null==r?void 0:r.includes("Safari"))&&(r="Safari"),(null==r?void 0:r.includes("Edge"))&&(r="Edge"),(null==r?void 0:r.includes("Opera"))&&(r="Opera"),r},e.prototype.getCookie=function(){var e,t,r,n,i;if(null==(t=null==(e=this.globalScope)?void 0:e.document)?void 0:t.cookie)return Object.fromEntries(null==(i=null==(n=null==(r=this.globalScope)?void 0:r.document)?void 0:n.cookie)?void 0:i.split("; ").map(function(e){return e.split("=")}))},e.prototype.getLandingUrl=function(){var e,t;try{var r=JSON.parse(this.sessionStorage.get(this.storageKey)||"{}");return r.landing_url||(r.landing_url=null==(t=null==(e=this.globalScope)?void 0:e.location)?void 0:t.href.replace(/\/$/,""),this.sessionStorage.put(this.storageKey,JSON.stringify(r))),r.landing_url}catch(e){return}},e.prototype.getFirstSeen=function(){try{var e=JSON.parse(this.localStorage.get(this.storageKey)||"{}");return e.first_seen||(e.first_seen=(Date.now()/1e3).toString(),this.localStorage.put(this.storageKey,JSON.stringify(e))),e.first_seen}catch(e){return}},e.prototype.getUrlParam=function(){if(this.globalScope){var e,t,r,n={};try{var i=new URL(this.globalScope.location.href);try{for(var o=a7(i.searchParams),a=o.next();!a.done;a=o.next()){var s=a9(a.value,2),l=s[0],u=s[1];n[l]=se(se([],a9(null!=(r=n[l])?r:[]),!1),a9(u.split(",")),!1)}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}}catch(e){return}return Object.entries(n).reduce(function(e,t){var r=a9(t,2),n=r[0],i=r[1];return e[n]=1==i.length?i[0]:i,e},{})}},e}();a0.experimentInstances={};var sM=a0.experimentInstances,sL=function(e){return(null==e?void 0:e.instanceName)||sc.instanceName},sV=function(e,t){var r=sL(t),n=null==t?void 0:t.internalInstanceNameSuffix;return n?"".concat(r,".").concat(e,".").concat(n):"".concat(r,".").concat(e)},sD=function(e,t,r){var n=sV(e,t),i=sM[n];return i?i:(i=new sA(e,a4(a4({},t),{userProvider:new sN(null==t?void 0:t.userProvider,e)})),r&&i.addPlugin(r()),sM[n]=i,i)};!function(){function e(){}e.prototype.getUser=function(){return{}},e.prototype.start=function(e){return a6(this,void 0,void 0,function(){return a8(this,function(e){return[2]})})},e.prototype.stop=function(){},e.prototype.setUser=function(e){},e.prototype.fetch=function(e){return a6(this,void 0,void 0,function(){return a8(this,function(e){return[2,this]})})},e.prototype.getUserProvider=function(){return null},e.prototype.setUserProvider=function(e){return this},e.prototype.variant=function(e,t){return sc.fallbackVariant},e.prototype.all=function(){return{}},e.prototype.clear=function(){},e.prototype.exposure=function(e){}}();var sF=function(){function e(t){this.name=e.pluginName,this.config=t}return e.prototype.setup=function(e,t){return N(this,void 0,void 0,function(){return M(this,function(t){var r,n;return this.experiment=sD(r=e.apiKey,n=this.config,function(){return new so(r,J.getInstance(sL(n)),1e4)}),[2]})})},e.pluginName="@amplitude/experiment-analytics-plugin",e}(),sj=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return P(t,e),Object.defineProperty(t.prototype,"experiment",{get:function(){if(void 0!==this.config){var e=this.plugins(sF);return 0===e.length?void this.config.loggerProvider.debug("".concat(sF.pluginName," plugin is not found.")):1===e.length?e[0].experiment:void this.config.loggerProvider.debug("Multiple instances of ".concat(sF.pluginName," are found."))}},enumerable:!1,configurable:!0}),t.prototype.initAll=function(t,r){return N(this,void 0,void 0,function(){var n,i;return M(this,function(o){switch(o.label){case 0:return n={serverZone:null==r?void 0:r.serverZone,instanceName:null==r?void 0:r.instanceName},e.prototype.add.call(this,{type:"enrichment",name:"@amplitude/unified-library-plugin",execute:function(e){var t;return N(this,void 0,void 0,function(){return M(this,function(r){return e.library="".concat("amplitude-ts-unified","/").concat("1.0.0-beta.2","-").concat(null!=(t=e.library)?t:""),[2,e]})})}}),[4,e.prototype.init.call(this,t,R(R({},null==r?void 0:r.analytics),n)).promise];case 1:return o.sent(),[4,e.prototype.add.call(this,new ar(R(R({},null==r?void 0:r.sr),n))).promise];case 2:return o.sent(),[4,e.prototype.add.call(this,new sF(R(R({},null==r?void 0:r.experiment),n))).promise];case 3:return o.sent(),void 0===(i=this.plugin(ar.pluginName))?this.config.loggerProvider.debug("".concat(ar.pluginName," plugin is not found.")):this.sr=i.sr,[2]}})})},t.prototype.init=function(t,r,n){return void 0===t&&(t=""),e.prototype.init.call(this,t,r,n)},t}(n5);let sz=function(){var e=new sj;return{experiment:e.experiment,sr:e.sr,initAll:n8(e.initAll.bind(e),"initAll",n3(e),n6(e,["config"])),init:n8(e.init.bind(e),"init",n3(e),n6(e,["config"])),add:n8(e.add.bind(e),"add",n3(e),n6(e,["config.apiKey","timeline.plugins"])),remove:n8(e.remove.bind(e),"remove",n3(e),n6(e,["config.apiKey","timeline.plugins"])),track:n8(e.track.bind(e),"track",n3(e),n6(e,["config.apiKey","timeline.queue.length"])),logEvent:n8(e.logEvent.bind(e),"logEvent",n3(e),n6(e,["config.apiKey","timeline.queue.length"])),identify:n8(e.identify.bind(e),"identify",n3(e),n6(e,["config.apiKey","timeline.queue.length"])),groupIdentify:n8(e.groupIdentify.bind(e),"groupIdentify",n3(e),n6(e,["config.apiKey","timeline.queue.length"])),setGroup:n8(e.setGroup.bind(e),"setGroup",n3(e),n6(e,["config.apiKey","timeline.queue.length"])),revenue:n8(e.revenue.bind(e),"revenue",n3(e),n6(e,["config.apiKey","timeline.queue.length"])),flush:n8(e.flush.bind(e),"flush",n3(e),n6(e,["config.apiKey","timeline.queue.length"])),getUserId:n8(e.getUserId.bind(e),"getUserId",n3(e),n6(e,["config","config.userId"])),setUserId:n8(e.setUserId.bind(e),"setUserId",n3(e),n6(e,["config","config.userId"])),getDeviceId:n8(e.getDeviceId.bind(e),"getDeviceId",n3(e),n6(e,["config","config.deviceId"])),setDeviceId:n8(e.setDeviceId.bind(e),"setDeviceId",n3(e),n6(e,["config","config.deviceId"])),reset:n8(e.reset.bind(e),"reset",n3(e),n6(e,["config","config.userId","config.deviceId"])),getSessionId:n8(e.getSessionId.bind(e),"getSessionId",n3(e),n6(e,["config"])),setSessionId:n8(e.setSessionId.bind(e),"setSessionId",n3(e),n6(e,["config"])),extendSession:n8(e.extendSession.bind(e),"extendSession",n3(e),n6(e,["config"])),setOptOut:n8(e.setOptOut.bind(e),"setOptOut",n3(e),n6(e,["config"])),setTransport:n8(e.setTransport.bind(e),"setTransport",n3(e),n6(e,["config"]))}}();var sB=sz.initAll,sU=(sz.experiment,sz.sr,sz.add,sz.extendSession,sz.flush,sz.getDeviceId,sz.getSessionId,sz.getUserId,sz.groupIdentify,sz.identify,sz.logEvent,sz.remove,sz.reset,sz.revenue,sz.setDeviceId,sz.setGroup,sz.setOptOut,sz.setSessionId,sz.setTransport,sz.setUserId,sz.track)},61078:e=>{e.exports=function(e){return void 0===e}},61140:(e,t,r)=>{"use strict";r.d(t,{S:()=>a});var n=r(57122),i=r(71513);let o=["value","type","description"],a=(...e)=>{let t=(0,n.X)({},...e.map(function e(t){if(null===t||"object"!=typeof t)return t;if(Array.isArray(t))return t.map(t=>e(t));let r=Object.create(Object.getPrototypeOf(t));for(let n of Object.keys(t))r[n]=e(t[n]);return r}));return t.theme?.tokens&&(0,i.B)(t.theme.tokens,e=>{let t=Object.keys(e).filter(e=>!o.includes(e)).length>0,r=o.some(t=>null!=e[t]);return t&&r&&(e.DEFAULT||(e.DEFAULT={}),o.forEach(t=>{var r;null!=e[t]&&((r=e.DEFAULT)[t]||(r[t]=e[t]),delete e[t])})),e},{stop:e=>(e=>e&&"object"==typeof e&&!Array.isArray(e))(e)&&Object.keys(e).some(e=>o.includes(e)||e!==e.toLowerCase()&&e!==e.toUpperCase())}),t}},61517:(e,t,r)=>{var n=r(88476),i=r(59045),o=r(98206),a=r(47439);e.exports=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)n(t,o(e)),e=i(e);return t}:a},61544:(e,t,r)=>{"use strict";r.d(t,{l6:()=>t3});var n,i=r(80715);function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e){var t=function(e,t){if("object"!=o(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=o(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==o(t)?t:t+""}function s(e,t,r){return(t=a(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach(function(t){s(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function d(e,t){if(e){if("string"==typeof e)return c(e,t);var r=({}).toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?c(e,t):void 0}}function f(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],l=!0,u=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,i=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(e,t)||d(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if(({}).hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],-1===t.indexOf(r)&&({}).propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var p=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function g(e){var t=e.defaultInputValue,r=e.defaultMenuIsOpen,n=e.defaultValue,o=e.inputValue,a=e.menuIsOpen,s=e.onChange,l=e.onInputChange,c=e.onMenuClose,d=e.onMenuOpen,g=e.value,v=h(e,p),m=f((0,i.useState)(void 0!==o?o:void 0===t?"":t),2),b=m[0],y=m[1],x=f((0,i.useState)(void 0!==a?a:void 0!==r&&r),2),w=x[0],S=x[1],E=f((0,i.useState)(void 0!==g?g:void 0===n?null:n),2),k=E[0],C=E[1],O=(0,i.useCallback)(function(e,t){"function"==typeof s&&s(e,t),C(e)},[s]),I=(0,i.useCallback)(function(e,t){var r;"function"==typeof l&&(r=l(e,t)),y(void 0!==r?r:e)},[l]),_=(0,i.useCallback)(function(){"function"==typeof d&&d(),S(!0)},[d]),T=(0,i.useCallback)(function(){"function"==typeof c&&c(),S(!1)},[c]),P=void 0!==o?o:b,R=void 0!==a?a:w,A=void 0!==g?g:k;return u(u({},v),{},{inputValue:P,menuIsOpen:R,onChange:O,onInputChange:I,onMenuClose:T,onMenuOpen:_,value:A})}var v=r(35981);function m(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,a(n.key),n)}}function b(e,t){return(b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function x(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(x=function(){return!!e})()}function w(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||d(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var S=r(96721),E=r(86890);let k=Math.min,C=Math.max,O=Math.round,I=Math.floor,_=e=>({x:e,y:e});function T(e){let{x:t,y:r,width:n,height:i}=e;return{width:n,height:i,top:r,left:t,right:t+n,bottom:r+i,x:t,y:r}}function P(){return"undefined"!=typeof window}function R(e){return M(e)?(e.nodeName||"").toLowerCase():"#document"}function A(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function N(e){var t;return null==(t=(M(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function M(e){return!!P()&&(e instanceof Node||e instanceof A(e).Node)}function L(e){return!!P()&&(e instanceof Element||e instanceof A(e).Element)}function V(e){return!!P()&&(e instanceof HTMLElement||e instanceof A(e).HTMLElement)}function D(e){return!!P()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof A(e).ShadowRoot)}function F(e){let{overflow:t,overflowX:r,overflowY:n,display:i}=B(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!["inline","contents"].includes(i)}function j(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}function z(e){return["html","body","#document"].includes(R(e))}function B(e){return A(e).getComputedStyle(e)}function U(e){if("html"===R(e))return e;let t=e.assignedSlot||e.parentNode||D(e)&&e.host||N(e);return D(t)?t.host:t}function H(e,t,r){var n;void 0===t&&(t=[]),void 0===r&&(r=!0);let i=function e(t){let r=U(t);return z(r)?t.ownerDocument?t.ownerDocument.body:t.body:V(r)&&F(r)?r:e(r)}(e),o=i===(null==(n=e.ownerDocument)?void 0:n.body),a=A(i);if(o){let e=W(a);return t.concat(a,a.visualViewport||[],F(i)?i:[],e&&r?H(e):[])}return t.concat(i,H(i,[],r))}function W(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function $(e){return L(e)?e:e.contextElement}function q(e){let t=$(e);if(!V(t))return _(1);let r=t.getBoundingClientRect(),{width:n,height:i,$:o}=function(e){let t=B(e),r=parseFloat(t.width)||0,n=parseFloat(t.height)||0,i=V(e),o=i?e.offsetWidth:r,a=i?e.offsetHeight:n,s=O(r)!==o||O(n)!==a;return s&&(r=o,n=a),{width:r,height:n,$:s}}(t),a=(o?O(r.width):r.width)/n,s=(o?O(r.height):r.height)/i;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}let G=_(0);function K(e){let t=A(e);return j()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:G}function Y(e,t,r,n){var i;void 0===t&&(t=!1),void 0===r&&(r=!1);let o=e.getBoundingClientRect(),a=$(e),s=_(1);t&&(n?L(n)&&(s=q(n)):s=q(e));let l=(void 0===(i=r)&&(i=!1),n&&(!i||n===A(a))&&i)?K(a):_(0),u=(o.left+l.x)/s.x,c=(o.top+l.y)/s.y,d=o.width/s.x,f=o.height/s.y;if(a){let e=A(a),t=n&&L(n)?A(n):n,r=e,i=W(r);for(;i&&n&&t!==r;){let e=q(i),t=i.getBoundingClientRect(),n=B(i),o=t.left+(i.clientLeft+parseFloat(n.paddingLeft))*e.x,a=t.top+(i.clientTop+parseFloat(n.paddingTop))*e.y;u*=e.x,c*=e.y,d*=e.x,f*=e.y,u+=o,c+=a,i=W(r=A(i))}}return T({width:d,height:f,x:u,y:c})}function X(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}var Q=i.useLayoutEffect,J=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],Z=function(){};function ee(e,t){for(var r=arguments.length,n=Array(r>2?r-2:0),i=2;i<r;i++)n[i-2]=arguments[i];var o=[].concat(n);if(t&&e)for(var a in t)t.hasOwnProperty(a)&&t[a]&&o.push("".concat(a?"-"===a[0]?e+a:e+"__"+a:e));return o.filter(function(e){return e}).map(function(e){return String(e).trim()}).join(" ")}var et=function(e){return Array.isArray(e)?e.filter(Boolean):"object"===o(e)&&null!==e?[e]:[]},er=function(e){return e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme,u({},h(e,J))},en=function(e,t,r){var n=e.cx,i=e.getStyles,o=e.getClassNames,a=e.className;return{css:i(t,e),className:n(null!=r?r:{},o(t,e),a)}};function ei(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function eo(e){return ei(e)?window.pageYOffset:e.scrollTop}function ea(e,t){if(ei(e))return void window.scrollTo(0,t);e.scrollTop=t}function es(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Z,i=eo(e),o=t-i,a=0;!function t(){var s;a+=10,ea(e,o*((s=(s=a)/r-1)*s*s+1)+i),a<r?window.requestAnimationFrame(t):n(e)}()}function el(e,t){var r=e.getBoundingClientRect(),n=t.getBoundingClientRect(),i=t.offsetHeight/3;n.bottom+i>r.bottom?ea(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+i,e.scrollHeight)):n.top-i<r.top&&ea(e,Math.max(t.offsetTop-i,0))}function eu(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var ec=!1,ed="undefined"!=typeof window?window:{};ed.addEventListener&&ed.removeEventListener&&(ed.addEventListener("p",Z,{get passive(){return ec=!0}}),ed.removeEventListener("p",Z,!1));var ef=ec;function eh(e){return null!=e}var ep=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return Object.entries(e).filter(function(e){var t=f(e,1)[0];return!r.includes(t)}).reduce(function(e,t){var r=f(t,2),n=r[0],i=r[1];return e[n]=i,e},{})},eg=["children","innerProps"],ev=["children","innerProps"],em=function(e){return"auto"===e?"bottom":e},eb=(0,i.createContext)(null),ey=function(e){var t=e.children,r=e.minMenuHeight,n=e.maxMenuHeight,o=e.menuPlacement,a=e.menuPosition,s=e.menuShouldScrollIntoView,l=e.theme,c=((0,i.useContext)(eb)||{}).setPortalPlacement,d=(0,i.useRef)(null),h=f((0,i.useState)(n),2),p=h[0],g=h[1],v=f((0,i.useState)(null),2),m=v[0],b=v[1],y=l.spacing.controlHeight;return Q(function(){var e=d.current;if(e){var t="fixed"===a,i=function(e){var t,r=e.maxHeight,n=e.menuEl,i=e.minHeight,o=e.placement,a=e.shouldScroll,s=e.isFixedPosition,l=e.controlHeight,u=function(e){var t=getComputedStyle(e),r="absolute"===t.position,n=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var i=e;i=i.parentElement;)if(t=getComputedStyle(i),(!r||"static"!==t.position)&&n.test(t.overflow+t.overflowY+t.overflowX))return i;return document.documentElement}(n),c={placement:"bottom",maxHeight:r};if(!n||!n.offsetParent)return c;var d=u.getBoundingClientRect().height,f=n.getBoundingClientRect(),h=f.bottom,p=f.height,g=f.top,v=n.offsetParent.getBoundingClientRect().top,m=s||ei(t=u)?window.innerHeight:t.clientHeight,b=eo(u),y=parseInt(getComputedStyle(n).marginBottom,10),x=parseInt(getComputedStyle(n).marginTop,10),w=v-x,S=m-g,E=w+b,k=d-b-g,C=h-m+b+y,O=b+g-x;switch(o){case"auto":case"bottom":if(S>=p)return{placement:"bottom",maxHeight:r};if(k>=p&&!s)return a&&es(u,C,160),{placement:"bottom",maxHeight:r};if(!s&&k>=i||s&&S>=i)return a&&es(u,C,160),{placement:"bottom",maxHeight:s?S-y:k-y};if("auto"===o||s){var I=r,_=s?w:E;return _>=i&&(I=Math.min(_-y-l,r)),{placement:"top",maxHeight:I}}if("bottom"===o)return a&&ea(u,C),{placement:"bottom",maxHeight:r};break;case"top":if(w>=p)return{placement:"top",maxHeight:r};if(E>=p&&!s)return a&&es(u,O,160),{placement:"top",maxHeight:r};if(!s&&E>=i||s&&w>=i){var T=r;return(!s&&E>=i||s&&w>=i)&&(T=s?w-x:E-x),a&&es(u,O,160),{placement:"top",maxHeight:T}}return{placement:"bottom",maxHeight:r};default:throw Error('Invalid placement provided "'.concat(o,'".'))}return c}({maxHeight:n,menuEl:e,minHeight:r,placement:o,shouldScroll:s&&!t,isFixedPosition:t,controlHeight:y});g(i.maxHeight),b(i.placement),null==c||c(i.placement)}},[n,o,a,s,r,c,y]),t({ref:d,placerProps:u(u({},e),{},{placement:m||em(o),maxHeight:p})})},ex=function(e,t){var r=e.theme,n=r.spacing.baseUnit,i=r.colors;return u({textAlign:"center"},t?{}:{color:i.neutral40,padding:"".concat(2*n,"px ").concat(3*n,"px")})},ew=["size"],eS=["innerProps","isRtl","size"],eE={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},ek=function(e){var t=e.size,r=h(e,ew);return(0,S.Y)("svg",(0,v.A)({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:eE},r))},eC=function(e){return(0,S.Y)(ek,(0,v.A)({size:20},e),(0,S.Y)("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},eO=function(e){return(0,S.Y)(ek,(0,v.A)({size:20},e),(0,S.Y)("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},eI=function(e,t){var r=e.isFocused,n=e.theme,i=n.spacing.baseUnit,o=n.colors;return u({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:r?o.neutral60:o.neutral20,padding:2*i,":hover":{color:r?o.neutral80:o.neutral40}})},e_=(0,S.i7)(n||(n=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"]))),eT=function(e){var t=e.delay,r=e.offset;return(0,S.Y)("span",{css:(0,S.AH)({animation:"".concat(e_," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:r?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},eP=["data"],eR=["innerRef","isDisabled","isHidden","inputClassName"],eA={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},eN={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":u({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},eA)},eM=function(e){var t=e.children,r=e.innerProps;return(0,S.Y)("div",r,t)},eL={ClearIndicator:function(e){var t=e.children,r=e.innerProps;return(0,S.Y)("div",(0,v.A)({},en(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),r),t||(0,S.Y)(eC,null))},Control:function(e){var t=e.children,r=e.isDisabled,n=e.isFocused,i=e.innerRef,o=e.innerProps,a=e.menuIsOpen;return(0,S.Y)("div",(0,v.A)({ref:i},en(e,"control",{control:!0,"control--is-disabled":r,"control--is-focused":n,"control--menu-is-open":a}),o,{"aria-disabled":r||void 0}),t)},DropdownIndicator:function(e){var t=e.children,r=e.innerProps;return(0,S.Y)("div",(0,v.A)({},en(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),r),t||(0,S.Y)(eO,null))},DownChevron:eO,CrossIcon:eC,Group:function(e){var t=e.children,r=e.cx,n=e.getStyles,i=e.getClassNames,o=e.Heading,a=e.headingProps,s=e.innerProps,l=e.label,u=e.theme,c=e.selectProps;return(0,S.Y)("div",(0,v.A)({},en(e,"group",{group:!0}),s),(0,S.Y)(o,(0,v.A)({},a,{selectProps:c,theme:u,getStyles:n,getClassNames:i,cx:r}),l),(0,S.Y)("div",null,t))},GroupHeading:function(e){var t=er(e);t.data;var r=h(t,eP);return(0,S.Y)("div",(0,v.A)({},en(e,"groupHeading",{"group-heading":!0}),r))},IndicatorsContainer:function(e){var t=e.children,r=e.innerProps;return(0,S.Y)("div",(0,v.A)({},en(e,"indicatorsContainer",{indicators:!0}),r),t)},IndicatorSeparator:function(e){var t=e.innerProps;return(0,S.Y)("span",(0,v.A)({},t,en(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(e){var t=e.cx,r=e.value,n=er(e),i=n.innerRef,o=n.isDisabled,a=n.isHidden,s=n.inputClassName,l=h(n,eR);return(0,S.Y)("div",(0,v.A)({},en(e,"input",{"input-container":!0}),{"data-value":r||""}),(0,S.Y)("input",(0,v.A)({className:t({input:!0},s),ref:i,style:u({label:"input",color:"inherit",background:0,opacity:+!a,width:"100%"},eA),disabled:o},l)))},LoadingIndicator:function(e){var t=e.innerProps,r=e.isRtl,n=e.size,i=h(e,eS);return(0,S.Y)("div",(0,v.A)({},en(u(u({},i),{},{innerProps:t,isRtl:r,size:void 0===n?4:n}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),(0,S.Y)(eT,{delay:0,offset:r}),(0,S.Y)(eT,{delay:160,offset:!0}),(0,S.Y)(eT,{delay:320,offset:!r}))},Menu:function(e){var t=e.children,r=e.innerRef,n=e.innerProps;return(0,S.Y)("div",(0,v.A)({},en(e,"menu",{menu:!0}),{ref:r},n),t)},MenuList:function(e){var t=e.children,r=e.innerProps,n=e.innerRef,i=e.isMulti;return(0,S.Y)("div",(0,v.A)({},en(e,"menuList",{"menu-list":!0,"menu-list--is-multi":i}),{ref:n},r),t)},MenuPortal:function(e){var t=e.appendTo,r=e.children,n=e.controlElement,o=e.innerProps,a=e.menuPlacement,s=e.menuPosition,l=(0,i.useRef)(null),c=(0,i.useRef)(null),d=f((0,i.useState)(em(a)),2),h=d[0],p=d[1],g=(0,i.useMemo)(function(){return{setPortalPlacement:p}},[]),m=f((0,i.useState)(null),2),b=m[0],y=m[1],x=(0,i.useCallback)(function(){if(n){var e,t={bottom:(e=n.getBoundingClientRect()).bottom,height:e.height,left:e.left,right:e.right,top:e.top,width:e.width},r="fixed"===s?0:window.pageYOffset,i=t[h]+r;(i!==(null==b?void 0:b.offset)||t.left!==(null==b?void 0:b.rect.left)||t.width!==(null==b?void 0:b.rect.width))&&y({offset:i,rect:t})}},[n,s,h,null==b?void 0:b.offset,null==b?void 0:b.rect.left,null==b?void 0:b.rect.width]);Q(function(){x()},[x]);var w=(0,i.useCallback)(function(){"function"==typeof c.current&&(c.current(),c.current=null),n&&l.current&&(c.current=function(e,t,r,n){let i;void 0===n&&(n={});let{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:u=!1}=n,c=$(e),d=o||a?[...c?H(c):[],...H(t)]:[];d.forEach(e=>{o&&e.addEventListener("scroll",r,{passive:!0}),a&&e.addEventListener("resize",r)});let f=c&&l?function(e,t){let r,n=null,i=N(e);function o(){var e;clearTimeout(r),null==(e=n)||e.disconnect(),n=null}return!function a(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),o();let u=e.getBoundingClientRect(),{left:c,top:d,width:f,height:h}=u;if(s||t(),!f||!h)return;let p=I(d),g=I(i.clientWidth-(c+f)),v={rootMargin:-p+"px "+-g+"px "+-I(i.clientHeight-(d+h))+"px "+-I(c)+"px",threshold:C(0,k(1,l))||1},m=!0;function b(t){let n=t[0].intersectionRatio;if(n!==l){if(!m)return a();n?a(!1,n):r=setTimeout(()=>{a(!1,1e-7)},1e3)}1!==n||X(u,e.getBoundingClientRect())||a(),m=!1}try{n=new IntersectionObserver(b,{...v,root:i.ownerDocument})}catch(e){n=new IntersectionObserver(b,v)}n.observe(e)}(!0),o}(c,r):null,h=-1,p=null;s&&(p=new ResizeObserver(e=>{let[n]=e;n&&n.target===c&&p&&(p.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var e;null==(e=p)||e.observe(t)})),r()}),c&&!u&&p.observe(c),p.observe(t));let g=u?Y(e):null;return u&&function t(){let n=Y(e);g&&!X(g,n)&&r(),g=n,i=requestAnimationFrame(t)}(),r(),()=>{var e;d.forEach(e=>{o&&e.removeEventListener("scroll",r),a&&e.removeEventListener("resize",r)}),null==f||f(),null==(e=p)||e.disconnect(),p=null,u&&cancelAnimationFrame(i)}}(n,l.current,x,{elementResize:"ResizeObserver"in window}))},[n,x]);Q(function(){w()},[w]);var O=(0,i.useCallback)(function(e){l.current=e,w()},[w]);if(!t&&"fixed"!==s||!b)return null;var _=(0,S.Y)("div",(0,v.A)({ref:O},en(u(u({},e),{},{offset:b.offset,position:s,rect:b.rect}),"menuPortal",{"menu-portal":!0}),o),r);return(0,S.Y)(eb.Provider,{value:g},t?(0,E.createPortal)(_,t):_)},LoadingMessage:function(e){var t=e.children,r=void 0===t?"Loading...":t,n=e.innerProps,i=h(e,ev);return(0,S.Y)("div",(0,v.A)({},en(u(u({},i),{},{children:r,innerProps:n}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),n),r)},NoOptionsMessage:function(e){var t=e.children,r=void 0===t?"No options":t,n=e.innerProps,i=h(e,eg);return(0,S.Y)("div",(0,v.A)({},en(u(u({},i),{},{children:r,innerProps:n}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),n),r)},MultiValue:function(e){var t=e.children,r=e.components,n=e.data,i=e.innerProps,o=e.isDisabled,a=e.removeProps,s=e.selectProps,l=r.Container,c=r.Label,d=r.Remove;return(0,S.Y)(l,{data:n,innerProps:u(u({},en(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":o})),i),selectProps:s},(0,S.Y)(c,{data:n,innerProps:u({},en(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:s},t),(0,S.Y)(d,{data:n,innerProps:u(u({},en(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},a),selectProps:s}))},MultiValueContainer:eM,MultiValueLabel:eM,MultiValueRemove:function(e){var t=e.children,r=e.innerProps;return(0,S.Y)("div",(0,v.A)({role:"button"},r),t||(0,S.Y)(eC,{size:14}))},Option:function(e){var t=e.children,r=e.isDisabled,n=e.isFocused,i=e.isSelected,o=e.innerRef,a=e.innerProps;return(0,S.Y)("div",(0,v.A)({},en(e,"option",{option:!0,"option--is-disabled":r,"option--is-focused":n,"option--is-selected":i}),{ref:o,"aria-disabled":r},a),t)},Placeholder:function(e){var t=e.children,r=e.innerProps;return(0,S.Y)("div",(0,v.A)({},en(e,"placeholder",{placeholder:!0}),r),t)},SelectContainer:function(e){var t=e.children,r=e.innerProps,n=e.isDisabled,i=e.isRtl;return(0,S.Y)("div",(0,v.A)({},en(e,"container",{"--is-disabled":n,"--is-rtl":i}),r),t)},SingleValue:function(e){var t=e.children,r=e.isDisabled,n=e.innerProps;return(0,S.Y)("div",(0,v.A)({},en(e,"singleValue",{"single-value":!0,"single-value--is-disabled":r}),n),t)},ValueContainer:function(e){var t=e.children,r=e.innerProps,n=e.isMulti,i=e.hasValue;return(0,S.Y)("div",(0,v.A)({},en(e,"valueContainer",{"value-container":!0,"value-container--is-multi":n,"value-container--has-value":i}),r),t)}},eV=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function eD(e,t){if(e.length!==t.length)return!1;for(var r,n,i=0;i<e.length;i++)if(!((r=e[i])===(n=t[i])||eV(r)&&eV(n))&&1)return!1;return!0}for(var eF={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},ej=function(e){return(0,S.Y)("span",(0,v.A)({css:eF},e))},ez={guidance:function(e){var t=e.isSearchable,r=e.isMulti,n=e.tabSelectsValue,i=e.context,o=e.isInitialFocus;switch(i){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(n?", press Tab to select the option and exit the menu":"",".");case"input":return o?"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(r?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,r=e.label,n=void 0===r?"":r,i=e.labels,o=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(n,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(i.length>1?"s":""," ").concat(i.join(","),", selected.");case"select-option":return o?"option ".concat(n," is disabled. Select another option."):"option ".concat(n,", selected.");default:return""}},onFocus:function(e){var t=e.context,r=e.focused,n=e.options,i=e.label,o=void 0===i?"":i,a=e.selectValue,s=e.isDisabled,l=e.isSelected,u=e.isAppleDevice,c=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&a)return"value ".concat(o," focused, ").concat(c(a,r),".");if("menu"===t&&u){var d="".concat(l?" selected":"").concat(s?" disabled":"");return"".concat(o).concat(d,", ").concat(c(n,r),".")}return""},onFilter:function(e){var t=e.inputValue,r=e.resultsMessage;return"".concat(r).concat(t?" for search term "+t:"",".")}},eB=function(e){var t=e.ariaSelection,r=e.focusedOption,n=e.focusedValue,o=e.focusableOptions,a=e.isFocused,s=e.selectValue,l=e.selectProps,c=e.id,d=e.isAppleDevice,f=l.ariaLiveMessages,h=l.getOptionLabel,p=l.inputValue,g=l.isMulti,v=l.isOptionDisabled,m=l.isSearchable,b=l.menuIsOpen,y=l.options,x=l.screenReaderStatus,w=l.tabSelectsValue,E=l.isLoading,k=l["aria-label"],C=l["aria-live"],O=(0,i.useMemo)(function(){return u(u({},ez),f||{})},[f]),I=(0,i.useMemo)(function(){var e="";if(t&&O.onChange){var r=t.option,n=t.options,i=t.removedValue,o=t.removedValues,a=t.value,l=i||r||(Array.isArray(a)?null:a),c=l?h(l):"",d=n||o||void 0,f=d?d.map(h):[],p=u({isDisabled:l&&v(l,s),label:c,labels:f},t);e=O.onChange(p)}return e},[t,O,v,s,h]),_=(0,i.useMemo)(function(){var e="",t=r||n,i=!!(r&&s&&s.includes(r));if(t&&O.onFocus){var a={focused:t,label:h(t),isDisabled:v(t,s),isSelected:i,options:o,context:t===r?"menu":"value",selectValue:s,isAppleDevice:d};e=O.onFocus(a)}return e},[r,n,h,v,O,o,s,d]),T=(0,i.useMemo)(function(){var e="";if(b&&y.length&&!E&&O.onFilter){var t=x({count:o.length});e=O.onFilter({inputValue:p,resultsMessage:t})}return e},[o,p,b,O,y,x,E]),P=(null==t?void 0:t.action)==="initial-input-focus",R=(0,i.useMemo)(function(){var e="";if(O.guidance){var t=n?"value":b?"menu":"input";e=O.guidance({"aria-label":k,context:t,isDisabled:r&&v(r,s),isMulti:g,isSearchable:m,tabSelectsValue:w,isInitialFocus:P})}return e},[k,r,n,g,v,m,b,O,s,w,P]),A=(0,S.Y)(i.Fragment,null,(0,S.Y)("span",{id:"aria-selection"},I),(0,S.Y)("span",{id:"aria-focused"},_),(0,S.Y)("span",{id:"aria-results"},T),(0,S.Y)("span",{id:"aria-guidance"},R));return(0,S.Y)(i.Fragment,null,(0,S.Y)(ej,{id:c},P&&A),(0,S.Y)(ej,{"aria-live":C,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},a&&!P&&A))},eU=[{base:"A",letters:"AⒶA\xc0\xc1\xc2ẦẤẪẨ\xc3ĀĂẰẮẴẲȦǠ\xc4ǞẢ\xc5ǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"\xc6ǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČ\xc7ḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺE\xc8\xc9\xcaỀẾỄỂẼĒḔḖĔĖ\xcbẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾI\xcc\xcd\xceĨĪĬİ\xcfḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃ\xd1ṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄO\xd2\xd3\xd4ỒỐỖỔ\xd5ṌȬṎŌṐṒŎȮȰ\xd6ȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬ\xd8ǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊU\xd9\xda\xdbŨṸŪṺŬ\xdcǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲ\xddŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚ\xe0\xe1\xe2ầấẫẩ\xe3āăằắẵẳȧǡ\xe4ǟả\xe5ǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"\xe6ǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċč\xe7ḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔe\xe8\xe9\xeaềếễểẽēḕḗĕė\xebẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘi\xec\xed\xeeĩīĭ\xefḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹń\xf1ṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞo\xf2\xf3\xf4ồốỗổ\xf5ṍȭṏōṑṓŏȯȱ\xf6ȫỏőǒȍȏơờớỡởợọộǫǭ\xf8ǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢs\xdfśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤu\xf9\xfa\xfbũṹūṻŭ\xfcǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳ\xfdŷỹȳẏ\xffỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],eH=RegExp("["+eU.map(function(e){return e.letters}).join("")+"]","g"),eW={},e$=0;e$<eU.length;e$++)for(var eq=eU[e$],eG=0;eG<eq.letters.length;eG++)eW[eq.letters[eG]]=eq.base;var eK=function(e){return e.replace(eH,function(e){return eW[e]})},eY=function(e,t){void 0===t&&(t=eD);var r=null;function n(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(r&&r.lastThis===this&&t(n,r.lastArgs))return r.lastResult;var o=e.apply(this,n);return r={lastResult:o,lastArgs:n,lastThis:this},o}return n.clear=function(){r=null},n}(eK),eX=function(e){return e.replace(/^\s+|\s+$/g,"")},eQ=function(e){return"".concat(e.label," ").concat(e.value)},eJ=["innerRef"];function eZ(e){var t=e.innerRef,r=ep(h(e,eJ),"onExited","in","enter","exit","appear");return(0,S.Y)("input",(0,v.A)({ref:t},r,{css:(0,S.AH)({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var e0=function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()},e1=["boxSizing","height","overflow","paddingRight","position"],e2={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function e5(e){e.cancelable&&e.preventDefault()}function e3(e){e.stopPropagation()}function e4(){var e=this.scrollTop,t=this.scrollHeight,r=e+this.offsetHeight;0===e?this.scrollTop=1:r===t&&(this.scrollTop=e-1)}function e6(){return"ontouchstart"in window||navigator.maxTouchPoints}var e8=!!("undefined"!=typeof window&&window.document&&window.document.createElement),e7=0,e9={capture:!1,passive:!1},te=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},tt={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function tr(e){var t,r,n,o,a,s,l,u,c,d,f,h,p,g,v,m,b,y,x,w,E,k,C,O,I=e.children,_=e.lockEnabled,T=e.captureEnabled,P=(r=(t={isEnabled:void 0===T||T,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}).isEnabled,n=t.onBottomArrive,o=t.onBottomLeave,a=t.onTopArrive,s=t.onTopLeave,l=(0,i.useRef)(!1),u=(0,i.useRef)(!1),c=(0,i.useRef)(0),d=(0,i.useRef)(null),f=(0,i.useCallback)(function(e,t){if(null!==d.current){var r=d.current,i=r.scrollTop,c=r.scrollHeight,f=r.clientHeight,h=d.current,p=t>0,g=c-f-i,v=!1;g>t&&l.current&&(o&&o(e),l.current=!1),p&&u.current&&(s&&s(e),u.current=!1),p&&t>g?(n&&!l.current&&n(e),h.scrollTop=c,v=!0,l.current=!0):!p&&-t>i&&(a&&!u.current&&a(e),h.scrollTop=0,v=!0,u.current=!0),v&&e0(e)}},[n,o,a,s]),h=(0,i.useCallback)(function(e){f(e,e.deltaY)},[f]),p=(0,i.useCallback)(function(e){c.current=e.changedTouches[0].clientY},[]),g=(0,i.useCallback)(function(e){var t=c.current-e.changedTouches[0].clientY;f(e,t)},[f]),v=(0,i.useCallback)(function(e){if(e){var t=!!ef&&{passive:!1};e.addEventListener("wheel",h,t),e.addEventListener("touchstart",p,t),e.addEventListener("touchmove",g,t)}},[g,p,h]),m=(0,i.useCallback)(function(e){e&&(e.removeEventListener("wheel",h,!1),e.removeEventListener("touchstart",p,!1),e.removeEventListener("touchmove",g,!1))},[g,p,h]),(0,i.useEffect)(function(){if(r){var e=d.current;return v(e),function(){m(e)}}},[r,v,m]),function(e){d.current=e}),R=(y=(b={isEnabled:_}).isEnabled,w=void 0===(x=b.accountForScrollbars)||x,E=(0,i.useRef)({}),k=(0,i.useRef)(null),C=(0,i.useCallback)(function(e){if(e8){var t=document.body,r=t&&t.style;if(w&&e1.forEach(function(e){var t=r&&r[e];E.current[e]=t}),w&&e7<1){var n=parseInt(E.current.paddingRight,10)||0,i=document.body?document.body.clientWidth:0,o=window.innerWidth-i+n||0;Object.keys(e2).forEach(function(e){var t=e2[e];r&&(r[e]=t)}),r&&(r.paddingRight="".concat(o,"px"))}t&&e6()&&(t.addEventListener("touchmove",e5,e9),e&&(e.addEventListener("touchstart",e4,e9),e.addEventListener("touchmove",e3,e9))),e7+=1}},[w]),O=(0,i.useCallback)(function(e){if(e8){var t=document.body,r=t&&t.style;e7=Math.max(e7-1,0),w&&e7<1&&e1.forEach(function(e){var t=E.current[e];r&&(r[e]=t)}),t&&e6()&&(t.removeEventListener("touchmove",e5,e9),e&&(e.removeEventListener("touchstart",e4,e9),e.removeEventListener("touchmove",e3,e9)))}},[w]),(0,i.useEffect)(function(){if(y){var e=k.current;return C(e),function(){O(e)}}},[y,C,O]),function(e){k.current=e});return(0,S.Y)(i.Fragment,null,_&&(0,S.Y)("div",{onClick:te,css:tt}),I(function(e){P(e),R(e)}))}var tn={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},ti=function(e){var t=e.name,r=e.onFocus;return(0,S.Y)("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:r,css:tn,value:"",onChange:function(){}})};function to(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null==(t=window.navigator.userAgentData)?void 0:t.platform)||window.navigator.platform)}var ta=function(e){return e.label},ts=function(e){return e.value},tl={clearIndicator:eI,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e,t){var r=e.isDisabled,n=e.isFocused,i=e.theme,o=i.colors,a=i.borderRadius;return u({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:i.spacing.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:r?o.neutral5:o.neutral0,borderColor:r?o.neutral10:n?o.primary:o.neutral20,borderRadius:a,borderStyle:"solid",borderWidth:1,boxShadow:n?"0 0 0 1px ".concat(o.primary):void 0,"&:hover":{borderColor:n?o.primary:o.neutral30}})},dropdownIndicator:eI,group:function(e,t){var r=e.theme.spacing;return t?{}:{paddingBottom:2*r.baseUnit,paddingTop:2*r.baseUnit}},groupHeading:function(e,t){var r=e.theme,n=r.colors,i=r.spacing;return u({label:"group",cursor:"default",display:"block"},t?{}:{color:n.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*i.baseUnit,paddingRight:3*i.baseUnit,textTransform:"uppercase"})},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e,t){var r=e.isDisabled,n=e.theme,i=n.spacing.baseUnit,o=n.colors;return u({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:r?o.neutral10:o.neutral20,marginBottom:2*i,marginTop:2*i})},input:function(e,t){var r=e.isDisabled,n=e.value,i=e.theme,o=i.spacing,a=i.colors;return u(u({visibility:r?"hidden":"visible",transform:n?"translateZ(0)":""},eN),t?{}:{margin:o.baseUnit/2,paddingBottom:o.baseUnit/2,paddingTop:o.baseUnit/2,color:a.neutral80})},loadingIndicator:function(e,t){var r=e.isFocused,n=e.size,i=e.theme,o=i.colors,a=i.spacing.baseUnit;return u({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:n,lineHeight:1,marginRight:n,textAlign:"center",verticalAlign:"middle"},t?{}:{color:r?o.neutral60:o.neutral20,padding:2*a})},loadingMessage:ex,menu:function(e,t){var r,n=e.placement,i=e.theme,o=i.borderRadius,a=i.spacing,l=i.colors;return u((s(r={label:"menu"},n?({bottom:"top",top:"bottom"})[n]:"bottom","100%"),s(r,"position","absolute"),s(r,"width","100%"),s(r,"zIndex",1),r),t?{}:{backgroundColor:l.neutral0,borderRadius:o,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:a.menuGutter,marginTop:a.menuGutter})},menuList:function(e,t){var r=e.maxHeight,n=e.theme.spacing.baseUnit;return u({maxHeight:r,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:n,paddingTop:n})},menuPortal:function(e){var t=e.rect,r=e.offset,n=e.position;return{left:t.left,position:n,top:r,width:t.width,zIndex:1}},multiValue:function(e,t){var r=e.theme,n=r.spacing,i=r.borderRadius,o=r.colors;return u({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:o.neutral10,borderRadius:i/2,margin:n.baseUnit/2})},multiValueLabel:function(e,t){var r=e.theme,n=r.borderRadius,i=r.colors,o=e.cropWithEllipsis;return u({overflow:"hidden",textOverflow:o||void 0===o?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:n/2,color:i.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(e,t){var r=e.theme,n=r.spacing,i=r.borderRadius,o=r.colors,a=e.isFocused;return u({alignItems:"center",display:"flex"},t?{}:{borderRadius:i/2,backgroundColor:a?o.dangerLight:void 0,paddingLeft:n.baseUnit,paddingRight:n.baseUnit,":hover":{backgroundColor:o.dangerLight,color:o.danger}})},noOptionsMessage:ex,option:function(e,t){var r=e.isDisabled,n=e.isFocused,i=e.isSelected,o=e.theme,a=o.spacing,s=o.colors;return u({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:i?s.primary:n?s.primary25:"transparent",color:r?s.neutral20:i?s.neutral0:"inherit",padding:"".concat(2*a.baseUnit,"px ").concat(3*a.baseUnit,"px"),":active":{backgroundColor:r?void 0:i?s.primary:s.primary50}})},placeholder:function(e,t){var r=e.theme,n=r.spacing,i=r.colors;return u({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:i.neutral50,marginLeft:n.baseUnit/2,marginRight:n.baseUnit/2})},singleValue:function(e,t){var r=e.isDisabled,n=e.theme,i=n.spacing,o=n.colors;return u({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:r?o.neutral40:o.neutral80,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},valueContainer:function(e,t){var r=e.theme.spacing,n=e.isMulti,i=e.hasValue,o=e.selectProps.controlShouldRenderValue;return u({alignItems:"center",display:n&&i&&o?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(r.baseUnit/2,"px ").concat(2*r.baseUnit,"px")})}},tu={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},tc={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:eu(),captureMenuScroll:!eu(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var r=u({ignoreCase:!0,ignoreAccents:!0,stringify:eQ,trim:!0,matchFrom:"any"},void 0),n=r.ignoreCase,i=r.ignoreAccents,o=r.stringify,a=r.trim,s=r.matchFrom,l=a?eX(t):t,c=a?eX(o(e)):o(e);return n&&(l=l.toLowerCase(),c=c.toLowerCase()),i&&(l=eY(l),c=eK(c)),"start"===s?c.substr(0,l.length)===l:c.indexOf(l)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:ta,getOptionValue:ts,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function td(e,t,r,n){var i=ty(e,t,r),o=tx(e,t,r),a=tm(e,t),s=tb(e,t);return{type:"option",data:t,isDisabled:i,isSelected:o,label:a,value:s,index:n}}function tf(e,t){return e.options.map(function(r,n){if("options"in r){var i=r.options.map(function(r,n){return td(e,r,t,n)}).filter(function(t){return tg(e,t)});return i.length>0?{type:"group",data:r,options:i,index:n}:void 0}var o=td(e,r,t,n);return tg(e,o)?o:void 0}).filter(eh)}function th(e){return e.reduce(function(e,t){return"group"===t.type?e.push.apply(e,w(t.options.map(function(e){return e.data}))):e.push(t.data),e},[])}function tp(e,t){return e.reduce(function(e,r){return"group"===r.type?e.push.apply(e,w(r.options.map(function(e){return{data:e.data,id:"".concat(t,"-").concat(r.index,"-").concat(e.index)}}))):e.push({data:r.data,id:"".concat(t,"-").concat(r.index)}),e},[])}function tg(e,t){var r=e.inputValue,n=t.data,i=t.isSelected,o=t.label,a=t.value;return(!tS(e)||!i)&&tw(e,{label:o,value:a,data:n},void 0===r?"":r)}var tv=function(e,t){var r;return(null==(r=e.find(function(e){return e.data===t}))?void 0:r.id)||null},tm=function(e,t){return e.getOptionLabel(t)},tb=function(e,t){return e.getOptionValue(t)};function ty(e,t,r){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,r)}function tx(e,t,r){if(r.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,r);var n=tb(e,t);return r.some(function(t){return tb(e,t)===n})}function tw(e,t,r){return!e.filterOption||e.filterOption(t,r)}var tS=function(e){var t=e.hideSelectedOptions,r=e.isMulti;return void 0===t?r:t},tE=1,tk=function(e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");s.prototype=Object.create(e&&e.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),Object.defineProperty(s,"prototype",{writable:!1}),e&&b(s,e);var t,r,n,a=(t=x(),function(){var e,r=y(s);e=t?Reflect.construct(r,arguments,y(this).constructor):r.apply(this,arguments);if(e&&("object"==o(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");if(void 0===this)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return this});function s(e){var t;if(!(this instanceof s))throw TypeError("Cannot call a class as a function");if((t=a.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},t.blockOptionHover=!1,t.isComposing=!1,t.commonProps=void 0,t.initialTouchX=0,t.initialTouchY=0,t.openAfterFocus=!1,t.scrollToFocusedOptionOnUpdate=!1,t.userIsDragging=void 0,t.isAppleDevice=to(/^Mac/i)||to(/^iPhone/i)||to(/^iPad/i)||to(/^Mac/i)&&navigator.maxTouchPoints>1,t.controlRef=null,t.getControlRef=function(e){t.controlRef=e},t.focusedOptionRef=null,t.getFocusedOptionRef=function(e){t.focusedOptionRef=e},t.menuListRef=null,t.getMenuListRef=function(e){t.menuListRef=e},t.inputRef=null,t.getInputRef=function(e){t.inputRef=e},t.focus=t.focusInput,t.blur=t.blurInput,t.onChange=function(e,r){var n=t.props,i=n.onChange;r.name=n.name,t.ariaOnChange(e,r),i(e,r)},t.setValue=function(e,r,n){var i=t.props,o=i.closeMenuOnSelect,a=i.isMulti,s=i.inputValue;t.onInputChange("",{action:"set-value",prevInputValue:s}),o&&(t.setState({inputIsHiddenAfterUpdate:!a}),t.onMenuClose()),t.setState({clearFocusValueOnUpdate:!0}),t.onChange(e,{action:r,option:n})},t.selectOption=function(e){var r=t.props,n=r.blurInputOnSelect,i=r.isMulti,o=r.name,a=t.state.selectValue,s=i&&t.isOptionSelected(e,a),l=t.isOptionDisabled(e,a);if(s){var u=t.getOptionValue(e);t.setValue(a.filter(function(e){return t.getOptionValue(e)!==u}),"deselect-option",e)}else{if(l)return void t.ariaOnChange(e,{action:"select-option",option:e,name:o});i?t.setValue([].concat(w(a),[e]),"select-option",e):t.setValue(e,"select-option")}n&&t.blurInput()},t.removeValue=function(e){var r,n=t.props.isMulti,i=t.state.selectValue,o=t.getOptionValue(e),a=i.filter(function(e){return t.getOptionValue(e)!==o}),s=(r=a[0]||null,n?a:r);t.onChange(s,{action:"remove-value",removedValue:e}),t.focusInput()},t.clearValue=function(){var e,r,n=t.state.selectValue;t.onChange((e=t.props.isMulti,r=[],e?r:null),{action:"clear",removedValues:n})},t.popValue=function(){var e,r=t.props.isMulti,n=t.state.selectValue,i=n[n.length-1],o=n.slice(0,n.length-1),a=(e=o[0]||null,r?o:e);i&&t.onChange(a,{action:"pop-value",removedValue:i})},t.getFocusedOptionId=function(e){return tv(t.state.focusableOptionsWithIds,e)},t.getFocusableOptionsWithIds=function(){return tp(tf(t.props,t.state.selectValue),t.getElementId("option"))},t.getValue=function(){return t.state.selectValue},t.cx=function(){for(var e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];return ee.apply(void 0,[t.props.classNamePrefix].concat(r))},t.getOptionLabel=function(e){return tm(t.props,e)},t.getOptionValue=function(e){return tb(t.props,e)},t.getStyles=function(e,r){var n=t.props.unstyled,i=tl[e](r,n);i.boxSizing="border-box";var o=t.props.styles[e];return o?o(i,r):i},t.getClassNames=function(e,r){var n,i;return null==(n=(i=t.props.classNames)[e])?void 0:n.call(i,r)},t.getElementId=function(e){return"".concat(t.state.instancePrefix,"-").concat(e)},t.getComponents=function(){var e;return e=t.props,u(u({},eL),e.components)},t.buildCategorizedOptions=function(){return tf(t.props,t.state.selectValue)},t.getCategorizedOptions=function(){return t.props.menuIsOpen?t.buildCategorizedOptions():[]},t.buildFocusableOptions=function(){return th(t.buildCategorizedOptions())},t.getFocusableOptions=function(){return t.props.menuIsOpen?t.buildFocusableOptions():[]},t.ariaOnChange=function(e,r){t.setState({ariaSelection:u({value:e},r)})},t.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),t.focusInput())},t.onMenuMouseMove=function(e){t.blockOptionHover=!1},t.onControlMouseDown=function(e){if(!e.defaultPrevented){var r=t.props.openMenuOnClick;t.state.isFocused?t.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&t.onMenuClose():r&&t.openMenu("first"):(r&&(t.openAfterFocus=!0),t.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},t.onDropdownIndicatorMouseDown=function(e){if((!e||"mousedown"!==e.type||0===e.button)&&!t.props.isDisabled){var r=t.props,n=r.isMulti,i=r.menuIsOpen;t.focusInput(),i?(t.setState({inputIsHiddenAfterUpdate:!n}),t.onMenuClose()):t.openMenu("first"),e.preventDefault()}},t.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(t.clearValue(),e.preventDefault(),t.openAfterFocus=!1,"touchend"===e.type?t.focusInput():setTimeout(function(){return t.focusInput()}))},t.onScroll=function(e){"boolean"==typeof t.props.closeMenuOnScroll?e.target instanceof HTMLElement&&ei(e.target)&&t.props.onMenuClose():"function"==typeof t.props.closeMenuOnScroll&&t.props.closeMenuOnScroll(e)&&t.props.onMenuClose()},t.onCompositionStart=function(){t.isComposing=!0},t.onCompositionEnd=function(){t.isComposing=!1},t.onTouchStart=function(e){var r=e.touches,n=r&&r.item(0);n&&(t.initialTouchX=n.clientX,t.initialTouchY=n.clientY,t.userIsDragging=!1)},t.onTouchMove=function(e){var r=e.touches,n=r&&r.item(0);if(n){var i=Math.abs(n.clientX-t.initialTouchX),o=Math.abs(n.clientY-t.initialTouchY);t.userIsDragging=i>5||o>5}},t.onTouchEnd=function(e){t.userIsDragging||(t.controlRef&&!t.controlRef.contains(e.target)&&t.menuListRef&&!t.menuListRef.contains(e.target)&&t.blurInput(),t.initialTouchX=0,t.initialTouchY=0)},t.onControlTouchEnd=function(e){t.userIsDragging||t.onControlMouseDown(e)},t.onClearIndicatorTouchEnd=function(e){t.userIsDragging||t.onClearIndicatorMouseDown(e)},t.onDropdownIndicatorTouchEnd=function(e){t.userIsDragging||t.onDropdownIndicatorMouseDown(e)},t.handleInputChange=function(e){var r=t.props.inputValue,n=e.currentTarget.value;t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange(n,{action:"input-change",prevInputValue:r}),t.props.menuIsOpen||t.onMenuOpen()},t.onInputFocus=function(e){t.props.onFocus&&t.props.onFocus(e),t.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(t.openAfterFocus||t.props.openMenuOnFocus)&&t.openMenu("first"),t.openAfterFocus=!1},t.onInputBlur=function(e){var r=t.props.inputValue;if(t.menuListRef&&t.menuListRef.contains(document.activeElement))return void t.inputRef.focus();t.props.onBlur&&t.props.onBlur(e),t.onInputChange("",{action:"input-blur",prevInputValue:r}),t.onMenuClose(),t.setState({focusedValue:null,isFocused:!1})},t.onOptionHover=function(e){if(!t.blockOptionHover&&t.state.focusedOption!==e){var r=t.getFocusableOptions().indexOf(e);t.setState({focusedOption:e,focusedOptionId:r>-1?t.getFocusedOptionId(e):null})}},t.shouldHideSelectedOptions=function(){return tS(t.props)},t.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),t.focus()},t.onKeyDown=function(e){var r=t.props,n=r.isMulti,i=r.backspaceRemovesValue,o=r.escapeClearsValue,a=r.inputValue,s=r.isClearable,l=r.isDisabled,u=r.menuIsOpen,c=r.onKeyDown,d=r.tabSelectsValue,f=r.openMenuOnFocus,h=t.state,p=h.focusedOption,g=h.focusedValue,v=h.selectValue;if(!l){if("function"==typeof c&&(c(e),e.defaultPrevented))return;switch(t.blockOptionHover=!0,e.key){case"ArrowLeft":if(!n||a)return;t.focusValue("previous");break;case"ArrowRight":if(!n||a)return;t.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(g)t.removeValue(g);else{if(!i)return;n?t.popValue():s&&t.clearValue()}break;case"Tab":if(t.isComposing||e.shiftKey||!u||!d||!p||f&&t.isOptionSelected(p,v))return;t.selectOption(p);break;case"Enter":if(229===e.keyCode)break;if(u){if(!p||t.isComposing)return;t.selectOption(p);break}return;case"Escape":u?(t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange("",{action:"menu-close",prevInputValue:a}),t.onMenuClose()):s&&o&&t.clearValue();break;case" ":if(a)return;if(!u){t.openMenu("first");break}if(!p)return;t.selectOption(p);break;case"ArrowUp":u?t.focusOption("up"):t.openMenu("last");break;case"ArrowDown":u?t.focusOption("down"):t.openMenu("first");break;case"PageUp":if(!u)return;t.focusOption("pageup");break;case"PageDown":if(!u)return;t.focusOption("pagedown");break;case"Home":if(!u)return;t.focusOption("first");break;case"End":if(!u)return;t.focusOption("last");break;default:return}e.preventDefault()}},t.state.instancePrefix="react-select-"+(t.props.instanceId||++tE),t.state.selectValue=et(e.value),e.menuIsOpen&&t.state.selectValue.length){var r=t.getFocusableOptionsWithIds(),n=t.buildFocusableOptions(),i=n.indexOf(t.state.selectValue[0]);t.state.focusableOptionsWithIds=r,t.state.focusedOption=n[i],t.state.focusedOptionId=tv(r,n[i])}return t}return r=[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&el(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(e){var t=this.props,r=t.isDisabled,n=t.menuIsOpen,i=this.state.isFocused;(i&&!r&&e.isDisabled||i&&n&&!e.menuIsOpen)&&this.focusInput(),i&&r&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):i||r||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(el(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,r=this.state,n=r.selectValue,i=r.isFocused,o=this.buildFocusableOptions(),a="first"===e?0:o.length-1;if(!this.props.isMulti){var s=o.indexOf(n[0]);s>-1&&(a=s)}this.scrollToFocusedOptionOnUpdate=!(i&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:o[a],focusedOptionId:this.getFocusedOptionId(o[a])},function(){return t.onMenuOpen()})}},{key:"focusValue",value:function(e){var t=this.state,r=t.selectValue,n=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var i=r.indexOf(n);n||(i=-1);var o=r.length-1,a=-1;if(r.length){switch(e){case"previous":a=0===i?0:-1===i?o:i-1;break;case"next":i>-1&&i<o&&(a=i+1)}this.setState({inputIsHidden:-1!==a,focusedValue:r[a]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,r=this.state.focusedOption,n=this.getFocusableOptions();if(n.length){var i=0,o=n.indexOf(r);r||(o=-1),"up"===e?i=o>0?o-1:n.length-1:"down"===e?i=(o+1)%n.length:"pageup"===e?(i=o-t)<0&&(i=0):"pagedown"===e?(i=o+t)>n.length-1&&(i=n.length-1):"last"===e&&(i=n.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:n[i],focusedValue:null,focusedOptionId:this.getFocusedOptionId(n[i])})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(tu):u(u({},tu),this.props.theme):tu}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,r=this.getStyles,n=this.getClassNames,i=this.getValue,o=this.selectOption,a=this.setValue,s=this.props,l=s.isMulti,u=s.isRtl,c=s.options;return{clearValue:e,cx:t,getStyles:r,getClassNames:n,getValue:i,hasValue:this.hasValue(),isMulti:l,isRtl:u,options:c,selectOption:o,selectProps:s,setValue:a,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,r=e.isMulti;return void 0===t?r:t}},{key:"isOptionDisabled",value:function(e,t){return ty(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return tx(this.props,e,t)}},{key:"filterOption",value:function(e,t){return tw(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"!=typeof this.props.formatOptionLabel)return this.getOptionLabel(e);var r=this.props.inputValue,n=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:r,selectValue:n})}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,r=e.isSearchable,n=e.inputId,o=e.inputValue,a=e.tabIndex,s=e.form,l=e.menuIsOpen,c=e.required,d=this.getComponents().Input,f=this.state,h=f.inputIsHidden,p=f.ariaSelection,g=this.commonProps,m=n||this.getElementId("input"),b=u(u(u({"aria-autocomplete":"list","aria-expanded":l,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":c,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},l&&{"aria-controls":this.getElementId("listbox")}),!r&&{"aria-readonly":!0}),this.hasValue()?(null==p?void 0:p.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return r?i.createElement(d,(0,v.A)({},g,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:m,innerRef:this.getInputRef,isDisabled:t,isHidden:h,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:a,form:s,type:"text",value:o},b)):i.createElement(eZ,(0,v.A)({id:m,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Z,onFocus:this.onInputFocus,disabled:t,tabIndex:a,inputMode:"none",form:s,value:""},b))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),r=t.MultiValue,n=t.MultiValueContainer,o=t.MultiValueLabel,a=t.MultiValueRemove,s=t.SingleValue,l=t.Placeholder,u=this.commonProps,c=this.props,d=c.controlShouldRenderValue,f=c.isDisabled,h=c.isMulti,p=c.inputValue,g=c.placeholder,m=this.state,b=m.selectValue,y=m.focusedValue,x=m.isFocused;if(!this.hasValue()||!d)return p?null:i.createElement(l,(0,v.A)({},u,{key:"placeholder",isDisabled:f,isFocused:x,innerProps:{id:this.getElementId("placeholder")}}),g);if(h)return b.map(function(t,s){var l=t===y,c="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return i.createElement(r,(0,v.A)({},u,{components:{Container:n,Label:o,Remove:a},isFocused:l,isDisabled:f,key:c,index:s,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault()}},data:t}),e.formatOptionLabel(t,"value"))});if(p)return null;var w=b[0];return i.createElement(s,(0,v.A)({},u,{data:w,isDisabled:f}),this.formatOptionLabel(w,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,r=this.props,n=r.isDisabled,o=r.isLoading,a=this.state.isFocused;if(!this.isClearable()||!e||n||!this.hasValue()||o)return null;var s={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return i.createElement(e,(0,v.A)({},t,{innerProps:s,isFocused:a}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,r=this.props,n=r.isDisabled,o=r.isLoading,a=this.state.isFocused;return e&&o?i.createElement(e,(0,v.A)({},t,{innerProps:{"aria-hidden":"true"},isDisabled:n,isFocused:a})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,r=e.IndicatorSeparator;if(!t||!r)return null;var n=this.commonProps,o=this.props.isDisabled,a=this.state.isFocused;return i.createElement(r,(0,v.A)({},n,{isDisabled:o,isFocused:a}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,r=this.props.isDisabled,n=this.state.isFocused,o={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return i.createElement(e,(0,v.A)({},t,{innerProps:o,isDisabled:r,isFocused:n}))}},{key:"renderMenu",value:function(){var e,t=this,r=this.getComponents(),n=r.Group,o=r.GroupHeading,a=r.Menu,s=r.MenuList,l=r.MenuPortal,u=r.LoadingMessage,c=r.NoOptionsMessage,d=r.Option,f=this.commonProps,h=this.state.focusedOption,p=this.props,g=p.captureMenuScroll,m=p.inputValue,b=p.isLoading,y=p.loadingMessage,x=p.minMenuHeight,w=p.maxMenuHeight,S=p.menuIsOpen,E=p.menuPlacement,k=p.menuPosition,C=p.menuPortalTarget,O=p.menuShouldBlockScroll,I=p.menuShouldScrollIntoView,_=p.noOptionsMessage,T=p.onMenuScrollToTop,P=p.onMenuScrollToBottom;if(!S)return null;var R=function(e,r){var n=e.type,o=e.data,a=e.isDisabled,s=e.isSelected,l=e.label,u=e.value,c=h===o,p=a?void 0:function(){return t.onOptionHover(o)},g=a?void 0:function(){return t.selectOption(o)},m="".concat(t.getElementId("option"),"-").concat(r),b={id:m,onClick:g,onMouseMove:p,onMouseOver:p,tabIndex:-1,role:"option","aria-selected":t.isAppleDevice?void 0:s};return i.createElement(d,(0,v.A)({},f,{innerProps:b,data:o,isDisabled:a,isSelected:s,key:m,label:l,type:n,value:u,isFocused:c,innerRef:c?t.getFocusedOptionRef:void 0}),t.formatOptionLabel(e.data,"menu"))};if(this.hasOptions())e=this.getCategorizedOptions().map(function(e){if("group"===e.type){var r=e.data,a=e.options,s=e.index,l="".concat(t.getElementId("group"),"-").concat(s),u="".concat(l,"-heading");return i.createElement(n,(0,v.A)({},f,{key:l,data:r,options:a,Heading:o,headingProps:{id:u,data:e.data},label:t.formatGroupLabel(e.data)}),e.options.map(function(e){return R(e,"".concat(s,"-").concat(e.index))}))}if("option"===e.type)return R(e,"".concat(e.index))});else if(b){var A=y({inputValue:m});if(null===A)return null;e=i.createElement(u,f,A)}else{var N=_({inputValue:m});if(null===N)return null;e=i.createElement(c,f,N)}var M={minMenuHeight:x,maxMenuHeight:w,menuPlacement:E,menuPosition:k,menuShouldScrollIntoView:I},L=i.createElement(ey,(0,v.A)({},f,M),function(r){var n=r.ref,o=r.placerProps,l=o.placement,u=o.maxHeight;return i.createElement(a,(0,v.A)({},f,M,{innerRef:n,innerProps:{onMouseDown:t.onMenuMouseDown,onMouseMove:t.onMenuMouseMove},isLoading:b,placement:l}),i.createElement(tr,{captureEnabled:g,onTopArrive:T,onBottomArrive:P,lockEnabled:O},function(r){return i.createElement(s,(0,v.A)({},f,{innerRef:function(e){t.getMenuListRef(e),r(e)},innerProps:{role:"listbox","aria-multiselectable":f.isMulti,id:t.getElementId("listbox")},isLoading:b,maxHeight:u,focusedOption:h}),e)}))});return C||"fixed"===k?i.createElement(l,(0,v.A)({},f,{appendTo:C,controlElement:this.controlRef,menuPlacement:E,menuPosition:k}),L):L}},{key:"renderFormField",value:function(){var e=this,t=this.props,r=t.delimiter,n=t.isDisabled,o=t.isMulti,a=t.name,s=t.required,l=this.state.selectValue;if(s&&!this.hasValue()&&!n)return i.createElement(ti,{name:a,onFocus:this.onValueInputFocus});if(a&&!n)if(o)if(r){var u=l.map(function(t){return e.getOptionValue(t)}).join(r);return i.createElement("input",{name:a,type:"hidden",value:u})}else{var c=l.length>0?l.map(function(t,r){return i.createElement("input",{key:"i-".concat(r),name:a,type:"hidden",value:e.getOptionValue(t)})}):i.createElement("input",{name:a,type:"hidden",value:""});return i.createElement("div",null,c)}else{var d=l[0]?this.getOptionValue(l[0]):"";return i.createElement("input",{name:a,type:"hidden",value:d})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,r=t.ariaSelection,n=t.focusedOption,o=t.focusedValue,a=t.isFocused,s=t.selectValue,l=this.getFocusableOptions();return i.createElement(eB,(0,v.A)({},e,{id:this.getElementId("live-region"),ariaSelection:r,focusedOption:n,focusedValue:o,isFocused:a,selectValue:s,focusableOptions:l,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,r=e.IndicatorsContainer,n=e.SelectContainer,o=e.ValueContainer,a=this.props,s=a.className,l=a.id,u=a.isDisabled,c=a.menuIsOpen,d=this.state.isFocused,f=this.commonProps=this.getCommonProps();return i.createElement(n,(0,v.A)({},f,{className:s,innerProps:{id:l,onKeyDown:this.onKeyDown},isDisabled:u,isFocused:d}),this.renderLiveRegion(),i.createElement(t,(0,v.A)({},f,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:u,isFocused:d,menuIsOpen:c}),i.createElement(o,(0,v.A)({},f,{isDisabled:u}),this.renderPlaceholderOrValue(),this.renderInput()),i.createElement(r,(0,v.A)({},f,{isDisabled:u}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],n=[{key:"getDerivedStateFromProps",value:function(e,t){var r,n=t.prevProps,i=t.clearFocusValueOnUpdate,o=t.inputIsHiddenAfterUpdate,a=t.ariaSelection,s=t.isFocused,l=t.prevWasFocused,c=t.instancePrefix,d=e.options,f=e.value,h=e.menuIsOpen,p=e.inputValue,g=e.isMulti,v=et(f),m={};if(n&&(f!==n.value||d!==n.options||h!==n.menuIsOpen||p!==n.inputValue)){var b,y=h?th(tf(e,v)):[],x=h?tp(tf(e,v),"".concat(c,"-option")):[],w=i?function(e,t){var r=e.focusedValue,n=e.selectValue.indexOf(r);if(n>-1){if(t.indexOf(r)>-1)return r;if(n<t.length)return t[n]}return null}(t,v):null,S=(b=t.focusedOption)&&y.indexOf(b)>-1?b:y[0],E=tv(x,S);m={selectValue:v,focusedOption:S,focusedOptionId:E,focusableOptionsWithIds:x,focusedValue:w,clearFocusValueOnUpdate:!1}}var k=null!=o&&e!==n?{inputIsHidden:o,inputIsHiddenAfterUpdate:void 0}:{},C=a,O=s&&l;return s&&!O&&(C={value:(r=v[0]||null,g?v:r),options:v,action:"initial-input-focus"},O=!l),(null==a?void 0:a.action)==="initial-input-focus"&&(C=null),u(u(u({},m),k),{},{prevProps:e,ariaSelection:C,prevWasFocused:O})}}],r&&m(s.prototype,r),n&&m(s,n),Object.defineProperty(s,"prototype",{writable:!1}),s}(i.Component);tk.defaultProps=tc,r(85963);var tC=(0,i.forwardRef)(function(e,t){var r=g(e);return i.createElement(tk,(0,v.A)({ref:t},r))}),tO=r(11563),tI=r(20029),t_=r(38006),tT=r(72348),tP=r(21104),tR=r(87442),tA=r(48496),tN=r(78513),tM=r(87804),tL=r(96162),tV=r(86483),tD=r(87259),tF=["allowCreateWhileLoading","createOptionPosition","formatCreateLabel","isValidNewOption","getNewOptionData","onCreateOption","options","onChange"],tj=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,n=String(e).toLowerCase(),i=String(r.getOptionValue(t)).toLowerCase(),o=String(r.getOptionLabel(t)).toLowerCase();return i===n||o===n},tz={formatCreateLabel:function(e){return'Create "'.concat(e,'"')},isValidNewOption:function(e,t,r,n){return!(!e||t.some(function(t){return tj(e,t,n)})||r.some(function(t){return tj(e,t,n)}))},getNewOptionData:function(e,t){return{label:t,value:e,__isNew__:!0}}};function tB(e){var t=e.allowCreateWhileLoading,r=void 0!==t&&t,n=e.createOptionPosition,o=void 0===n?"last":n,a=e.formatCreateLabel,s=void 0===a?tz.formatCreateLabel:a,l=e.isValidNewOption,c=void 0===l?tz.isValidNewOption:l,d=e.getNewOptionData,f=void 0===d?tz.getNewOptionData:d,p=e.onCreateOption,g=e.options,v=void 0===g?[]:g,m=e.onChange,b=h(e,tF),y=b.getOptionValue,x=void 0===y?ts:y,S=b.getOptionLabel,E=void 0===S?ta:S,k=b.inputValue,C=b.isLoading,O=b.isMulti,I=b.value,_=b.name,T=(0,i.useMemo)(function(){return c(k,et(I),v,{getOptionValue:x,getOptionLabel:E})?f(k,s(k)):void 0},[s,f,E,x,k,c,v,I]),P=(0,i.useMemo)(function(){return(r||!C)&&T?"first"===o?[T].concat(w(v)):[].concat(w(v),[T]):v},[r,o,C,T,v]),R=(0,i.useCallback)(function(e,t){if("select-option"!==t.action)return m(e,t);var r=Array.isArray(e)?e:[e];if(r[r.length-1]===T){if(p)p(k);else{var n,i=f(k,k);m((n=[].concat(w(et(I)),[i]),O?n:i),{action:"create-option",name:_,option:i})}return}m(e,t)},[f,k,O,_,T,p,m,I]);return u(u({},b),{},{options:P,onChange:R})}var tU=(0,i.forwardRef)(function(e,t){var r=tB(g(e));return i.createElement(tk,(0,v.A)({ref:t},r))}),tH=["defaultOptions","cacheOptions","loadOptions","options","isLoading","onInputChange","filterOption"];function tW(e){var t=e.defaultOptions,r=void 0!==t&&t,n=e.cacheOptions,o=void 0!==n&&n,a=e.loadOptions;e.options;var l=e.isLoading,c=e.onInputChange,d=e.filterOption,p=h(e,tH),g=p.inputValue,v=(0,i.useRef)(void 0),m=(0,i.useRef)(!1),b=f((0,i.useState)(Array.isArray(r)?r:void 0),2),y=b[0],x=b[1],w=f((0,i.useState)(void 0!==g?g:""),2),S=w[0],E=w[1],k=f((0,i.useState)(!0===r),2),C=k[0],O=k[1],I=f((0,i.useState)(void 0),2),_=I[0],T=I[1],P=f((0,i.useState)([]),2),R=P[0],A=P[1],N=f((0,i.useState)(!1),2),M=N[0],L=N[1],V=f((0,i.useState)({}),2),D=V[0],F=V[1],j=f((0,i.useState)(void 0),2),z=j[0],B=j[1],U=f((0,i.useState)(void 0),2),H=U[0],W=U[1];o!==H&&(F({}),W(o)),r!==z&&(x(Array.isArray(r)?r:void 0),B(r)),(0,i.useEffect)(function(){return m.current=!0,function(){m.current=!1}},[]);var $=(0,i.useCallback)(function(e,t){if(!a)return t();var r=a(e,t);r&&"function"==typeof r.then&&r.then(t,function(){return t()})},[a]);(0,i.useEffect)(function(){!0===r&&$(S,function(e){m.current&&(x(e||[]),O(!!v.current))})},[]);var q=(0,i.useCallback)(function(e,t){var r=function(e,t,r){if(r){var n=r(e,t);if("string"==typeof n)return n}return e}(e,t,c);if(!r){v.current=void 0,E(""),T(""),A([]),O(!1),L(!1);return}if(o&&D[r])E(r),T(r),A(D[r]),O(!1),L(!1);else{var n=v.current={};E(r),O(!0),L(!_),$(r,function(e){m&&n===v.current&&(v.current=void 0,O(!1),T(r),A(e||[]),L(!1),F(e?u(u({},D),{},s({},r,e)):D))})}},[o,$,_,D,c]),G=M?[]:S&&_?R:y||[];return u(u({},p),{},{options:G,isLoading:C||void 0!==l&&l,onInputChange:q,filterOption:void 0===d?null:d})}var t$=(0,i.forwardRef)(function(e,t){var r=g(tW(e));return i.createElement(tk,(0,v.A)({ref:t},r))}),tq=(0,i.forwardRef)(function(e,t){var r=tB(g(tW(e)));return i.createElement(tk,(0,v.A)({ref:t},r))}),tG=(0,t_.B)("svg"),tK=e=>(0,tD.jsx)(tG,{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...e,children:(0,tD.jsx)("path",{d:"M20 6 9 17l-5-5"})}),tY=e=>(0,tD.jsx)(tG,{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...e,children:(0,tD.jsx)("path",{d:"m6 9 6 6 6-6"})}),tX=e=>(0,tD.jsx)(tG,{viewBox:"0 0 24 24",fill:"currentColor",...e,children:(0,tD.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.7071 6.70711C19.0976 6.31658 19.0976 5.68342 18.7071 5.29289C18.3166 4.90237 17.6834 4.90237 17.2929 5.29289L12 10.5858L6.70711 5.29289C6.31658 4.90237 5.68342 4.90237 5.29289 5.29289C4.90237 5.68342 4.90237 6.31658 5.29289 6.70711L10.5858 12L5.29289 17.2929C4.90237 17.6834 4.90237 18.3166 5.29289 18.7071C5.68342 19.0976 6.31658 19.0976 6.70711 18.7071L12 13.4142L17.2929 18.7071C17.6834 19.0976 18.3166 19.0976 18.7071 18.7071C19.0976 18.3166 19.0976 17.6834 18.7071 17.2929L13.4142 12L18.7071 6.70711Z"})}),tQ=e=>{let{className:t,clearValue:r,cx:n,getStyles:i,getClassNames:o,getValue:a,hasValue:s,isMulti:l,isRtl:u,options:c,selectOption:d,selectProps:f,setValue:h,theme:p,...g}=e;return{...g}},tJ=e=>{var t,r,n,o;let a=(e=>(e=>"string"==typeof e&&["sm","md","lg"].includes(e))(e)?e:"xs"===e?"sm":"xl"===e?"lg":"md")(null==(r=null==(t=(0,tN.$)().getSlotRecipe("select"))?void 0:t.defaultVariants)?void 0:r.size);return null!=(o=function(e,t){let r=(0,tN.$)().normalizeValue(e),n=function(){var e,t;let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};r.fallback||(r.fallback="base");let n=(0,tN.$)(),o=!1,a=n.breakpoints.values.map(e=>{let{min:t,name:n}=e,i={breakpoint:n,query:"(min-width: ".concat(t,")"),fallback:!o};return n===r.fallback&&(o=!0),i}).filter(e=>{var t;let{breakpoint:n}=e;return!!(null==(t=r.breakpoints)?void 0:t.includes(n))}),s=a.map(e=>{let{fallback:t}=e;return t}),l=(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{fallback:r=[],ssr:n=!0,getWindow:o}=t,a=(0,tM.c)(o),s=Array.isArray(e)?e:[e],l=null==r?void 0:r.filter(e=>null!=e),[u,c]=(0,i.useState)(()=>s.map((e,t)=>{if(!n){var r;let{media:t,matches:n}=(null!=(r=null==o?void 0:o())?r:window).matchMedia(e);return{media:t,matches:n}}return{media:e,matches:!!l[t]}}));return(0,i.useEffect)(()=>{var e;let t=null!=(e=a())?e:window;c(e=>{let r=s.map(e=>{let{media:r,matches:n}=t.matchMedia(e);return{media:r,matches:n}});return e.every((e,t)=>e.matches===r[t].matches&&e.media===r[t].media)?e:r});let r=s.map(e=>t.matchMedia(e)),n=e=>{c(t=>t.slice().map(t=>t.media===e.media?{...t,matches:e.matches}:t))},i=r.map(e=>(function(e,t){try{return e.addEventListener("change",t),()=>e.removeEventListener("change",t)}catch(r){return e.addListener(t),()=>e.removeListener(t)}})(e,n));return()=>i.forEach(e=>e())},[a]),u.map(e=>e.matches)})(a.map(e=>e.query),{fallback:s,ssr:r.ssr}).lastIndexOf(!0);return null!=(t=null==(e=a[l])?void 0:e.breakpoint)?t:r.fallback}({breakpoints:Object.keys(r),...void 0});return r[n]}(null!=(n="string"==typeof e?[e]:e)?n:[a]))?o:a},tZ=(0,t_.B)("input"),t0={sm:1.5,md:2,lg:2.5},t1=e=>(0,tD.jsx)(tL.L,{...e,children:(0,tD.jsx)(tK,{})}),t2={ClearIndicator:e=>{let{children:t,className:r,cx:n,innerProps:i,selectProps:{chakraStyles:o,size:a,variant:s}}=e,l={...(0,tO.y)({key:"select"})({size:a,variant:s}).clearTrigger},u=(null==o?void 0:o.clearIndicator)?o.clearIndicator(l,e):l,c={},d=(null==o?void 0:o.crossIcon)?o.crossIcon(c,e):c;return(0,tD.jsx)(tI.a,{className:n({indicator:!0,"clear-indicator":!0},r),css:u,"aria-label":"Clear selected options",asChild:!0,...i,children:(0,tD.jsx)(tR.K,{size:"sm",boxSize:8,minWidth:"unset",variant:"plain",pointerEvents:"auto",tabIndex:-1,children:t||(0,tD.jsx)(tX,{css:d})})})},Control:e=>{let{className:t,cx:r,children:n,innerRef:i,innerProps:o,isDisabled:a,isFocused:s,menuIsOpen:l,selectProps:{chakraStyles:u,size:c,variant:d,invalid:f,readOnly:h,focusRingColor:p}}=e,g={...(0,tT.m)({key:"input"})({size:c,variant:d}),display:"flex",height:"auto",minHeight:"var(--select-trigger-height)",...a?{pointerEvents:"none"}:{}},v=(null==u?void 0:u.control)?u.control(g,e):g;return(0,tD.jsx)(tI.a,{ref:i,className:r({control:!0,"control--is-disabled":a,"control--is-focused":s,"control--menu-is-open":l},t),css:v,...o,focusRingColor:p,"data-focus":!!s||void 0,"data-focus-visible":!!s||void 0,"data-invalid":!!f||void 0,"data-disabled":!!a||void 0,"data-readonly":!!h||void 0,children:n})},DropdownIndicator:e=>{let{children:t,className:r,cx:n,innerProps:i,selectProps:{chakraStyles:o,size:a,variant:s}}=e,l={...(0,tO.y)({key:"select"})({size:a,variant:s}).indicator},u=(null==o?void 0:o.dropdownIndicator)?o.dropdownIndicator(l,e):l,c={},d=(null==o?void 0:o.downChevron)?o.downChevron(c,e):c;return(0,tD.jsx)(tI.a,{...i,className:n({indicator:!0,"dropdown-indicator":!0},r),css:u,children:t||(0,tD.jsx)(tY,{css:d})})},Group:e=>{let{children:t,className:r,cx:n,theme:i,getStyles:o,Heading:a,headingProps:s,label:l,selectProps:u,innerProps:c,getClassNames:d}=e,{chakraStyles:f,size:h,variant:p}=u,g={...(0,tO.y)({key:"select"})({size:h,variant:p}).itemGroup},v=(null==f?void 0:f.group)?f.group(g,e):g;return(0,tD.jsxs)(tI.a,{...c,className:n({group:!0},r),css:v,children:[(0,tD.jsx)(a,{...s,selectProps:u,cx:n,theme:i,getStyles:o,getClassNames:d,children:l}),(0,tD.jsx)(tI.a,{children:t})]})},GroupHeading:e=>{let{cx:t,className:r,selectProps:{chakraStyles:n,size:i,variant:o}}=e,{data:a,...s}=tQ(e),l={...(0,tO.y)({key:"select"})({size:i,variant:o}).itemGroupLabel},u=(null==n?void 0:n.groupHeading)?n.groupHeading(l,e):l;return(0,tD.jsx)(tI.a,{...s,className:t({"group-heading":!0},r),css:u})},IndicatorSeparator:e=>{let{className:t,cx:r,selectProps:{chakraStyles:n}}=e,i={display:"none"},o=(null==n?void 0:n.indicatorSeparator)?n.indicatorSeparator(i,e):i;return(0,tD.jsx)(tP.w,{className:r({"indicator-separator":!0},t),css:o,orientation:"vertical"})},IndicatorsContainer:e=>{let{children:t,className:r,cx:n,innerProps:i,selectProps:{chakraStyles:o,size:a,variant:s}}=e,l={...(0,tO.y)({key:"select"})({size:a,variant:s}).indicatorGroup,position:"static",paddingRight:0},u=(null==o?void 0:o.indicatorsContainer)?o.indicatorsContainer(l,e):l;return(0,tD.jsx)(tI.a,{...i,className:n({indicators:!0},r),css:u,children:t})},Input:e=>{let{className:t,cx:r,value:n,selectProps:{chakraStyles:i,readOnly:o}}=e,{innerRef:a,isDisabled:s,isHidden:l,inputClassName:u,...c}=tQ(e),d={gridArea:"1 / 2",minW:"2px",border:0,margin:0,outline:0,padding:0},f={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content",color:"inherit",marginX:"0.125rem",paddingY:"0.125rem",visibility:s?"hidden":"visible",transform:n?"translateZ(0)":"",_after:{content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre",padding:0,...d}},h=(null==i?void 0:i.inputContainer)?i.inputContainer(f,e):f,p={background:0,opacity:+!l,width:"100%",...d},g=(null==i?void 0:i.input)?i.input(p,e):p;return(0,tD.jsx)(tI.a,{className:r({"input-container":!0},t),"data-value":n||"",css:h,children:(0,tD.jsx)(tZ,{className:r({input:!0},u),ref:a,css:g,disabled:s,readOnly:!!o||void 0,...c})})},LoadingIndicator:e=>{let{className:t,cx:r,innerProps:n,selectProps:{chakraStyles:i},color:o,colorPalette:a,trackColor:s,animationDuration:l,borderWidth:u,spinnerSize:c}=e,d={marginRight:3,...s?{"--spinner-track-color":s}:{}},f=(null==i?void 0:i.loadingIndicator)?i.loadingIndicator(d,e):d;return(0,tD.jsx)(tA.y,{className:r({indicator:!0,"loading-indicator":!0},t),css:f,...n,size:c,colorPalette:a,color:o,animationDuration:l,borderWidth:u})},LoadingMessage:e=>{let{children:t,className:r,cx:n,innerProps:i,selectProps:{chakraStyles:o,size:a}}=e,s={color:"fg.muted",textAlign:"center",paddingY:t0[tJ(a)]},l=(null==o?void 0:o.loadingMessage)?o.loadingMessage(s,e):s;return(0,tD.jsx)(tI.a,{...i,className:n({"menu-notice":!0,"menu-notice--loading":!0},r),css:l,children:t})},Menu:e=>{let{className:t,cx:r,children:n,innerProps:i,innerRef:o,placement:a,selectProps:{chakraStyles:s}}=e,l={position:"absolute",..."top"===a?{bottom:"100%"}:{top:"100%"},marginY:"8px",width:"100%",zIndex:1},u=(null==s?void 0:s.menu)?s.menu(l,e):l;return(0,tD.jsx)(tI.a,{...i,ref:o,className:r({menu:!0},t),css:u,children:n})},MenuList:e=>{let{className:t,cx:r,innerRef:n,children:i,maxHeight:o,isMulti:a,innerProps:s,selectProps:{chakraStyles:l,size:u,variant:c}}=e,d={...(0,tO.y)({key:"select"})({size:u,variant:c}).content,maxHeight:`${o}px`,position:"relative"},f=(null==l?void 0:l.menuList)?l.menuList(d,e):d;return(0,tD.jsx)(tI.a,{...s,className:r({"menu-list":!0,"menu-list--is-multi":a},t),css:f,ref:n,children:i})},MultiValue:e=>{var t;let{children:r,className:n,components:i,cx:o,data:a,innerProps:s,isDisabled:l,isFocused:u,removeProps:c,selectProps:d,cropWithEllipsis:f}=e,{Container:h,Label:p,Remove:g}=i,{chakraStyles:v,tagColorPalette:m,tagVariant:b,size:y}=d,{colorPalette:x,variant:w}=null!=(t=(0,tN.$)().getSlotRecipe("tag").defaultVariants)?t:{},S=x;(e=>"object"==typeof e&&null!==e&&"colorPalette"in e&&"string"==typeof e.colorPalette)(a)?S=a.colorPalette:m&&(S=m);let E=w;(e=>"object"==typeof e&&null!==e&&"variant"in e&&"string"==typeof e.variant)(a)?E=a.variant:b&&(E=b);let k=(0,tO.y)({key:"tag"})({size:y,variant:E}),C={...k.root,colorPalette:S,minWidth:0,margin:"0.125rem"},O=(null==v?void 0:v.multiValue)?v.multiValue(C,e):C,I={...k.label,overflow:"hidden",textOverflow:f||void 0===f?"ellipsis":void 0,whiteSpace:"nowrap"},_=(null==v?void 0:v.multiValueLabel)?v.multiValueLabel(I,e):I,T={...k.endElement},P=(null==v?void 0:v.multiValueEndElement)?v.multiValueEndElement(T,e):T,R={...k.closeTrigger,cursor:"pointer"},A=(null==v?void 0:v.multiValueRemove)?v.multiValueRemove(R,e):R;return(0,tD.jsxs)(h,{data:a,innerProps:{className:o({"multi-value":!0,"multi-value--is-disabled":l},n),...s},css:O,selectProps:d,children:[(0,tD.jsx)(p,{data:a,innerProps:{className:o({"multi-value__label":!0},n)},css:_,selectProps:d,children:r}),(0,tD.jsx)(g,{data:a,innerProps:{className:o({"multi-value__remove":!0},n),"aria-label":`Remove ${r||"option"}`,...c},endElementCss:P,css:A,selectProps:d,isFocused:u})]})},MultiValueContainer:e=>{let{children:t,innerProps:r,css:n}=e;return(0,tD.jsx)(tL.L,{...r,css:n,children:t})},MultiValueLabel:e=>{let{children:t,innerProps:r,css:n}=e;return(0,tD.jsx)(tL.L,{...r,css:n,children:t})},MultiValueRemove:e=>{let{children:t,innerProps:r,isFocused:n,endElementCss:i,css:o}=e;return(0,tD.jsx)(tL.L,{css:i,...r,children:(0,tD.jsx)(tL.L,{role:"button",css:o,"data-focus-visible":!!n||void 0,children:t||(0,tD.jsx)(tX,{})})})},NoOptionsMessage:e=>{let{children:t,className:r,cx:n,innerProps:i,selectProps:{chakraStyles:o,size:a}}=e,s={color:"fg.muted",textAlign:"center",paddingY:t0[tJ(a)]},l=(null==o?void 0:o.noOptionsMessage)?o.noOptionsMessage(s,e):s;return(0,tD.jsx)(tI.a,{...i,className:n({"menu-notice":!0,"menu-notice--no-options":!0},r),css:l,children:t})},Option:e=>{let{className:t,cx:r,innerRef:n,innerProps:i,children:o,isFocused:a,isDisabled:s,isSelected:l,selectProps:{chakraStyles:u,isMulti:c,hideSelectedOptions:d,selectedOptionStyle:f,selectedOptionColorPalette:h,size:p,variant:g}}=e,v=(0,tO.y)({key:"select"})({size:p,variant:g}),m="color"===f&&l,b={...v.item,...m?{color:"colorPalette.contrast",bg:"colorPalette.solid",_active:{bg:"colorPalette.solid"}}:{}},y=(null==u?void 0:u.option)?u.option(b,e):b;return(0,tD.jsxs)(tI.a,{...i,colorPalette:h,className:r({option:!0,"option--is-disabled":s,"option--is-focused":a,"option--is-selected":l},t),css:y,ref:n,"data-highlighted":!!a||void 0,"aria-disabled":!!s||void 0,"aria-selected":l,children:[o,"check"===f&&(!c||!1===d)&&(0,tD.jsx)(t1,{css:{...v.itemIndicator},hidden:!l,children:(0,tD.jsx)(tK,{})})]})},Placeholder:e=>{let{children:t,className:r,cx:n,innerProps:i,selectProps:{chakraStyles:o}}=e,a={gridArea:"1 / 1 / 2 / 3",color:"fg.muted/80",mx:"0.125rem",userSelect:"none"},s=(null==o?void 0:o.placeholder)?o.placeholder(a,e):a;return(0,tD.jsx)(tI.a,{...i,className:n({placeholder:!0},r),css:s,children:t})},SelectContainer:e=>{let{children:t,className:r,cx:n,innerProps:i,isDisabled:o,isRtl:a,hasValue:s,selectProps:{chakraStyles:l,size:u,variant:c}}=e,d={...(0,tO.y)({key:"select"})({size:u,variant:c}).root,gap:0,position:"relative",direction:a?"rtl":void 0,...o?{cursor:"not-allowed"}:{}},f=(null==l?void 0:l.container)?l.container(d,e):d;return(0,tD.jsx)(tI.a,{...i,className:n({"--is-disabled":o,"--is-rtl":a,"--has-value":s},r),css:f,children:t})},SingleValue:e=>{let{children:t,className:r,cx:n,isDisabled:i,innerProps:o,selectProps:{chakraStyles:a}}=e,s={gridArea:"1 / 1 / 2 / 3",mx:"0.125rem",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},l=(null==a?void 0:a.singleValue)?a.singleValue(s,e):s;return(0,tD.jsx)(tI.a,{className:n({"single-value":!0,"single-value--is-disabled":i},r),css:l,...o,children:t})},ValueContainer:e=>{let{children:t,className:r,cx:n,isMulti:i,hasValue:o,innerProps:a,selectProps:{chakraStyles:s,controlShouldRenderValue:l}}=e,u={display:i&&o&&l?"flex":"grid",alignItems:"center",flex:1,paddingY:"2px",flexWrap:"wrap",position:"relative",overflow:"hidden"},c=(null==s?void 0:s.valueContainer)?s.valueContainer(u,e):u;return(0,tD.jsx)(tI.a,{...a,className:n({"value-container":!0,"value-container--is-multi":i,"value-container--has-value":o},r),css:c,children:t})}},t5=({components:e={},disabled:t,isDisabled:r,invalid:n,readOnly:i,required:o,inputId:a,selectedOptionStyle:s="color",selectedOptionColorPalette:l="blue",menuIsOpen:u,menuPlacement:c="auto",theme:d,...f})=>{var h,p;let g=(0,tV.f)(),v=null!=i?i:null==g?void 0:g.readOnly,m=s;["color","check"].includes(s)||(m="color");let b=l||"blue";return"string"!=typeof b&&(b="blue"),{components:{...t2,...e},selectedOptionStyle:m,selectedOptionColorPalette:b,isDisabled:null!=(h=null!=t?t:r)?h:null==g?void 0:g.disabled,invalid:null!=n?n:null==g?void 0:g.invalid,inputId:null!=a?a:null==g?void 0:g.ids.control,readOnly:v,required:null!=o?o:null==g?void 0:g.required,menuIsOpen:null!=u?u:!v&&void 0,menuPlacement:c,unstyled:!0,...f,"aria-invalid":null!=(p=f["aria-invalid"])?p:null==g?void 0:g.invalid}},t3=(0,i.forwardRef)((e,t)=>{let r=t5(e);return(0,tD.jsx)(tC,{ref:t,...r})});(0,i.forwardRef)((e,t)=>{let r=t5(e);return(0,tD.jsx)(tU,{ref:t,...r})}),(0,i.forwardRef)((e,t)=>{let r=t5(e);return(0,tD.jsx)(t$,{ref:t,...r})}),(0,i.forwardRef)((e,t)=>{let r=t5(e);return(0,tD.jsx)(tq,{ref:t,...r})})},61600:(e,t,r)=>{"use strict";var n=r(48613);function i(e){n.forEach(e.nodes(),function(t){o(e.node(t))}),n.forEach(e.edges(),function(t){o(e.edge(t))})}function o(e){var t=e.width;e.width=e.height,e.height=t}function a(e){e.y=-e.y}function s(e){var t=e.x;e.x=e.y,e.y=t}e.exports={adjust:function(e){var t=e.graph().rankdir.toLowerCase();("lr"===t||"rl"===t)&&i(e)},undo:function(e){var t,r,o=e.graph().rankdir.toLowerCase();("bt"===o||"rl"===o)&&(t=e,n.forEach(t.nodes(),function(e){a(t.node(e))}),n.forEach(t.edges(),function(e){var r=t.edge(e);n.forEach(r.points,a),n.has(r,"y")&&a(r)})),("lr"===o||"rl"===o)&&(r=e,n.forEach(r.nodes(),function(e){s(r.node(e))}),n.forEach(r.edges(),function(e){var t=r.edge(e);n.forEach(t.points,s),n.has(t,"x")&&s(t)}),i(e))}}},61696:(e,t,r)=>{var n=r(81789),i=r(61517);e.exports=function(e,t){return n(e,i(e),t)}},61998:(e,t,r)=>{var n=r(3646),i=r(93913),o=r(41480);e.exports=i?function(e,t){return i(e,"toString",{configurable:!0,enumerable:!1,value:n(t),writable:!0})}:o},62256:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},62479:(e,t,r)=>{var n=r(34892),i=r(8804),o=r(76621),a=r(82689),s=r(72657);function l(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},62523:(e,t,r)=>{"use strict";r.d(t,{a:()=>d});var n=r(87259),i=r(80715),o=r(30214),a=r(80223),s=r(10425),l=r(86697),u=r(38006),c=r(72348);function d(e){let t,{key:r,recipe:d}=e,f=(t=r||d.className||"Component").charAt(0).toUpperCase()+t.slice(1),[h,p]=(0,o.q)({strict:!1,name:"".concat(f,"PropsContext"),providerName:"".concat(f,"PropsContext")});function g(e){let{unstyled:t,...n}=e,o=(0,c.m)({key:r,recipe:n.recipe||d}),[a,s]=(0,i.useMemo)(()=>o.splitVariantProps(n),[o,n]);return{styles:t?l.z:o(a),className:o.className,props:s}}return{withContext:(e,t)=>{let r=(0,u.B)(e,{},t),o=(0,i.forwardRef)((e,t)=>{let o=p(),l=(0,i.useMemo)(()=>(0,a.v)(o,e),[e,o]),{styles:u,className:c,props:d}=g(l);return(0,n.jsx)(r,{...d,ref:t,css:[u,l.css],className:(0,s.cx)(c,l.className)})});return o.displayName=e.displayName||e.name,o},PropsProvider:h,withPropsProvider:function(){return h},usePropsContext:p,useRecipeResult:g}}},62569:e=>{e.exports=function(e){return function(t,r,n){for(var i=-1,o=Object(t),a=n(t),s=a.length;s--;){var l=a[e?s:++i];if(!1===r(o[l],l,o))break}return t}}},62591:(e,t,r)=>{var n=r(81789),i=r(98206);e.exports=function(e,t){return n(e,i(e),t)}},63281:(e,t,r)=>{var n=r(62479),i=r(32794),o=r(54454),a=r(81751),s=r(9931),l=r(99);function u(e){var t=this.__data__=new n(e);this.size=t.size}u.prototype.clear=i,u.prototype.delete=o,u.prototype.get=a,u.prototype.has=s,u.prototype.set=l,e.exports=u},63630:(e,t,r)=>{var n=r(79515),i=r(74582),o=r(81563),a=r(5573),s=r(44686),l=r(4317);e.exports=function(e,t,r){t=n(t,e);for(var u=-1,c=t.length,d=!1;++u<c;){var f=l(t[u]);if(!(d=null!=e&&r(e,f)))break;e=e[f]}return d||++u!=c?d:!!(c=null==e?0:e.length)&&s(c)&&a(f,c)&&(o(e)||i(e))}},63806:(e,t,r)=>{"use strict";function n(){}function i(e){return null==e?n:function(){return this.querySelector(e)}}r.d(t,{A:()=>i})},63929:(e,t,r)=>{var n=r(88476),i=r(81563);e.exports=function(e,t,r){var o=t(e);return i(e)?o:n(o,r(e))}},63999:(e,t,r)=>{var n=r(60663),i=r(77261);e.exports=function(e,t,r,n){return function(e,t,r,n){var o,a,s={},l=new i,u=function(e){var t=e.v!==o?e.v:e.w,n=s[t],i=r(e),u=a.distance+i;if(i<0)throw Error("dijkstra does not allow negative edge weights. Bad edge: "+e+" Weight: "+i);u<n.distance&&(n.distance=u,n.predecessor=o,l.decrease(t,u))};for(e.nodes().forEach(function(e){var r=e===t?0:1/0;s[e]={distance:r},l.add(e,r)});l.size()>0&&(a=s[o=l.removeMin()]).distance!==1/0;)n(o).forEach(u);return s}(e,String(t),r||o,n||function(t){return e.outEdges(t)})};var o=n.constant(1)},64438:(e,t,r)=>{var n=r(35385),i=r(75776),o=r(93773);e.exports=function(e,t){return null==e?e:n(e,i(t),o)}},65060:(e,t,r)=>{"use strict";r.d(t,{s_:()=>eZ,GS:()=>eW});var n,i=r(77492),o=r(5108);function a(e){return((e=Math.exp(e))+1/e)/2}let s=function e(t,r,n){function i(e,i){var o,s,l=e[0],u=e[1],c=e[2],d=i[0],f=i[1],h=i[2],p=d-l,g=f-u,v=p*p+g*g;if(v<1e-12)s=Math.log(h/c)/t,o=function(e){return[l+e*p,u+e*g,c*Math.exp(t*e*s)]};else{var m=Math.sqrt(v),b=(h*h-c*c+n*v)/(2*c*r*m),y=(h*h-c*c-n*v)/(2*h*r*m),x=Math.log(Math.sqrt(b*b+1)-b);s=(Math.log(Math.sqrt(y*y+1)-y)-x)/t,o=function(e){var n,i,o=e*s,d=a(x),f=c/(r*m)*(d*(((n=Math.exp(2*(n=t*o+x)))-1)/(n+1))-((i=Math.exp(i=x))-1/i)/2);return[l+f*p,u+f*g,c*d/a(t*o+x)]}}return o.duration=1e3*s*t/Math.SQRT2,o}return i.rho=function(t){var r=Math.max(.001,+t),n=r*r;return e(r,n,n*n)},i}(Math.SQRT2,2,4);var l,u,c=r(44627),d=r(16960),f=r(17710),h=0,p=0,g=0,v=0,m=0,b=0,y="object"==typeof performance&&performance.now?performance:Date,x="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function w(){return m||(x(S),m=y.now()+b)}function S(){m=0}function E(){this._call=this._time=this._next=null}function k(e,t,r){var n=new E;return n.restart(e,t,r),n}function C(){m=(v=y.now())+b,h=p=0;try{w(),++h;for(var e,t=l;t;)(e=m-t._time)>=0&&t._call.call(void 0,e),t=t._next;--h}finally{h=0,function(){for(var e,t,r=l,n=1/0;r;)r._call?(n>r._time&&(n=r._time),e=r,r=r._next):(t=r._next,r._next=null,r=e?e._next=t:l=t);u=e,I(n)}(),m=0}}function O(){var e=y.now(),t=e-v;t>1e3&&(b-=t,v=e)}function I(e){!h&&(p&&(p=clearTimeout(p)),e-m>24?(e<1/0&&(p=setTimeout(C,e-y.now()-b)),g&&(g=clearInterval(g))):(g||(v=y.now(),g=setInterval(O,1e3)),h=1,x(C)))}function _(e,t,r){var n=new E;return t=null==t?0:+t,n.restart(r=>{n.stop(),e(r+t)},t,r),n}E.prototype=k.prototype={constructor:E,restart:function(e,t,r){if("function"!=typeof e)throw TypeError("callback is not a function");r=(null==r?w():+r)+(null==t?0:+t),this._next||u===this||(u?u._next=this:l=this,u=this),this._call=e,this._time=r,I()},stop:function(){this._call&&(this._call=null,this._time=1/0,I())}};var T=(0,i.A)("start","end","cancel","interrupt"),P=[];function R(e,t,r,n,i,o){var a=e.__transition;if(a){if(r in a)return}else e.__transition={};!function(e,t,r){var n,i=e.__transition;function o(l){var u,c,d,f;if(1!==r.state)return s();for(u in i)if((f=i[u]).name===r.name){if(3===f.state)return _(o);4===f.state?(f.state=6,f.timer.stop(),f.on.call("interrupt",e,e.__data__,f.index,f.group),delete i[u]):+u<t&&(f.state=6,f.timer.stop(),f.on.call("cancel",e,e.__data__,f.index,f.group),delete i[u])}if(_(function(){3===r.state&&(r.state=4,r.timer.restart(a,r.delay,r.time),a(l))}),r.state=2,r.on.call("start",e,e.__data__,r.index,r.group),2===r.state){for(u=0,r.state=3,n=Array(d=r.tween.length),c=-1;u<d;++u)(f=r.tween[u].value.call(e,e.__data__,r.index,r.group))&&(n[++c]=f);n.length=c+1}}function a(t){for(var i=t<r.duration?r.ease.call(null,t/r.duration):(r.timer.restart(s),r.state=5,1),o=-1,a=n.length;++o<a;)n[o].call(e,i);5===r.state&&(r.on.call("end",e,e.__data__,r.index,r.group),s())}function s(){for(var n in r.state=6,r.timer.stop(),delete i[t],i)return;delete e.__transition}i[t]=r,r.timer=k(function(e){r.state=1,r.timer.restart(o,r.delay,r.time),r.delay<=e&&o(e-r.delay)},0,r.time)}(e,r,{name:t,index:n,group:i,on:T,tween:P,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:0})}function A(e,t){var r=M(e,t);if(r.state>0)throw Error("too late; already scheduled");return r}function N(e,t){var r=M(e,t);if(r.state>3)throw Error("too late; already running");return r}function M(e,t){var r=e.__transition;if(!r||!(r=r[t]))throw Error("transition not found");return r}function L(e,t){var r,n,i,o=e.__transition,a=!0;if(o){for(i in t=null==t?null:t+"",o){if((r=o[i]).name!==t){a=!1;continue}n=r.state>2&&r.state<5,r.state=6,r.timer.stop(),r.on.call(n?"interrupt":"cancel",e,e.__data__,r.index,r.group),delete o[i]}a&&delete e.__transition}}function V(e,t){return e*=1,t*=1,function(r){return e*(1-r)+t*r}}var D=180/Math.PI,F={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function j(e,t,r,n,i,o){var a,s,l;return(a=Math.sqrt(e*e+t*t))&&(e/=a,t/=a),(l=e*r+t*n)&&(r-=e*l,n-=t*l),(s=Math.sqrt(r*r+n*n))&&(r/=s,n/=s,l/=s),e*n<t*r&&(e=-e,t=-t,l=-l,a=-a),{translateX:i,translateY:o,rotate:Math.atan2(t,e)*D,skewX:Math.atan(l)*D,scaleX:a,scaleY:s}}function z(e,t,r,n){function i(e){return e.length?e.pop()+" ":""}return function(o,a){var s,l,u,c,d=[],f=[];return o=e(o),a=e(a),!function(e,n,i,o,a,s){if(e!==i||n!==o){var l=a.push("translate(",null,t,null,r);s.push({i:l-4,x:V(e,i)},{i:l-2,x:V(n,o)})}else(i||o)&&a.push("translate("+i+t+o+r)}(o.translateX,o.translateY,a.translateX,a.translateY,d,f),s=o.rotate,l=a.rotate,s!==l?(s-l>180?l+=360:l-s>180&&(s+=360),f.push({i:d.push(i(d)+"rotate(",null,n)-2,x:V(s,l)})):l&&d.push(i(d)+"rotate("+l+n),u=o.skewX,c=a.skewX,u!==c?f.push({i:d.push(i(d)+"skewX(",null,n)-2,x:V(u,c)}):c&&d.push(i(d)+"skewX("+c+n),!function(e,t,r,n,o,a){if(e!==r||t!==n){var s=o.push(i(o)+"scale(",null,",",null,")");a.push({i:s-4,x:V(e,r)},{i:s-2,x:V(t,n)})}else(1!==r||1!==n)&&o.push(i(o)+"scale("+r+","+n+")")}(o.scaleX,o.scaleY,a.scaleX,a.scaleY,d,f),o=a=null,function(e){for(var t,r=-1,n=f.length;++r<n;)d[(t=f[r]).i]=t.x(e);return d.join("")}}}var B=z(function(e){let t=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?F:j(t.a,t.b,t.c,t.d,t.e,t.f)},"px, ","px)","deg)"),U=z(function(e){return null==e?F:(n||(n=document.createElementNS("http://www.w3.org/2000/svg","g")),n.setAttribute("transform",e),e=n.transform.baseVal.consolidate())?j((e=e.matrix).a,e.b,e.c,e.d,e.e,e.f):F},", ",")",")"),H=r(27946);function W(e,t,r){var n=e._id;return e.each(function(){var e=N(this,n);(e.value||(e.value={}))[t]=r.apply(this,arguments)}),function(e){return M(e,n).value[t]}}function $(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function q(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function G(){}var K="\\s*([+-]?\\d+)\\s*",Y="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",X="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Q=/^#([0-9a-f]{3,8})$/,J=RegExp(`^rgb\\(${K},${K},${K}\\)$`),Z=RegExp(`^rgb\\(${X},${X},${X}\\)$`),ee=RegExp(`^rgba\\(${K},${K},${K},${Y}\\)$`),et=RegExp(`^rgba\\(${X},${X},${X},${Y}\\)$`),er=RegExp(`^hsl\\(${Y},${X},${X}\\)$`),en=RegExp(`^hsla\\(${Y},${X},${X},${Y}\\)$`),ei={aliceblue:0xf0f8ff,antiquewhite:0xfaebd7,aqua:65535,aquamarine:8388564,azure:0xf0ffff,beige:0xf5f5dc,bisque:0xffe4c4,black:0,blanchedalmond:0xffebcd,blue:255,blueviolet:9055202,brown:0xa52a2a,burlywood:0xdeb887,cadetblue:6266528,chartreuse:8388352,chocolate:0xd2691e,coral:0xff7f50,cornflowerblue:6591981,cornsilk:0xfff8dc,crimson:0xdc143c,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:0xb8860b,darkgray:0xa9a9a9,darkgreen:25600,darkgrey:0xa9a9a9,darkkhaki:0xbdb76b,darkmagenta:9109643,darkolivegreen:5597999,darkorange:0xff8c00,darkorchid:0x9932cc,darkred:9109504,darksalmon:0xe9967a,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:0xff1493,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:0xb22222,floralwhite:0xfffaf0,forestgreen:2263842,fuchsia:0xff00ff,gainsboro:0xdcdcdc,ghostwhite:0xf8f8ff,gold:0xffd700,goldenrod:0xdaa520,gray:8421504,green:32768,greenyellow:0xadff2f,grey:8421504,honeydew:0xf0fff0,hotpink:0xff69b4,indianred:0xcd5c5c,indigo:4915330,ivory:0xfffff0,khaki:0xf0e68c,lavender:0xe6e6fa,lavenderblush:0xfff0f5,lawngreen:8190976,lemonchiffon:0xfffacd,lightblue:0xadd8e6,lightcoral:0xf08080,lightcyan:0xe0ffff,lightgoldenrodyellow:0xfafad2,lightgray:0xd3d3d3,lightgreen:9498256,lightgrey:0xd3d3d3,lightpink:0xffb6c1,lightsalmon:0xffa07a,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:0xb0c4de,lightyellow:0xffffe0,lime:65280,limegreen:3329330,linen:0xfaf0e6,magenta:0xff00ff,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:0xba55d3,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:0xc71585,midnightblue:1644912,mintcream:0xf5fffa,mistyrose:0xffe4e1,moccasin:0xffe4b5,navajowhite:0xffdead,navy:128,oldlace:0xfdf5e6,olive:8421376,olivedrab:7048739,orange:0xffa500,orangered:0xff4500,orchid:0xda70d6,palegoldenrod:0xeee8aa,palegreen:0x98fb98,paleturquoise:0xafeeee,palevioletred:0xdb7093,papayawhip:0xffefd5,peachpuff:0xffdab9,peru:0xcd853f,pink:0xffc0cb,plum:0xdda0dd,powderblue:0xb0e0e6,purple:8388736,rebeccapurple:6697881,red:0xff0000,rosybrown:0xbc8f8f,royalblue:4286945,saddlebrown:9127187,salmon:0xfa8072,sandybrown:0xf4a460,seagreen:3050327,seashell:0xfff5ee,sienna:0xa0522d,silver:0xc0c0c0,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:0xfffafa,springgreen:65407,steelblue:4620980,tan:0xd2b48c,teal:32896,thistle:0xd8bfd8,tomato:0xff6347,turquoise:4251856,violet:0xee82ee,wheat:0xf5deb3,white:0xffffff,whitesmoke:0xf5f5f5,yellow:0xffff00,yellowgreen:0x9acd32};function eo(){return this.rgb().formatHex()}function ea(){return this.rgb().formatRgb()}function es(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Q.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?el(t):3===r?new ed(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?eu(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?eu(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=J.exec(e))?new ed(t[1],t[2],t[3],1):(t=Z.exec(e))?new ed(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=ee.exec(e))?eu(t[1],t[2],t[3],t[4]):(t=et.exec(e))?eu(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=er.exec(e))?em(t[1],t[2]/100,t[3]/100,1):(t=en.exec(e))?em(t[1],t[2]/100,t[3]/100,t[4]):ei.hasOwnProperty(e)?el(ei[e]):"transparent"===e?new ed(NaN,NaN,NaN,0):null}function el(e){return new ed(e>>16&255,e>>8&255,255&e,1)}function eu(e,t,r,n){return n<=0&&(e=t=r=NaN),new ed(e,t,r,n)}function ec(e,t,r,n){var i;return 1==arguments.length?((i=e)instanceof G||(i=es(i)),i)?new ed((i=i.rgb()).r,i.g,i.b,i.opacity):new ed:new ed(e,t,r,null==n?1:n)}function ed(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function ef(){return`#${ev(this.r)}${ev(this.g)}${ev(this.b)}`}function eh(){let e=ep(this.opacity);return`${1===e?"rgb(":"rgba("}${eg(this.r)}, ${eg(this.g)}, ${eg(this.b)}${1===e?")":`, ${e})`}`}function ep(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function eg(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function ev(e){return((e=eg(e))<16?"0":"")+e.toString(16)}function em(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new ey(e,t,r,n)}function eb(e){if(e instanceof ey)return new ey(e.h,e.s,e.l,e.opacity);if(e instanceof G||(e=es(e)),!e)return new ey;if(e instanceof ey)return e;var t=(e=e.rgb()).r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),o=Math.max(t,r,n),a=NaN,s=o-i,l=(o+i)/2;return s?(a=t===o?(r-n)/s+(r<n)*6:r===o?(n-t)/s+2:(t-r)/s+4,s/=l<.5?o+i:2-o-i,a*=60):s=l>0&&l<1?0:a,new ey(a,s,l,e.opacity)}function ey(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function ex(e){return(e=(e||0)%360)<0?e+360:e}function ew(e){return Math.max(0,Math.min(1,e||0))}function eS(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}function eE(e,t,r,n,i){var o=e*e,a=o*e;return((1-3*e+3*o-a)*t+(4-6*o+3*a)*r+(1+3*e+3*o-3*a)*n+a*i)/6}$(G,es,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:eo,formatHex:eo,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return eb(this).formatHsl()},formatRgb:ea,toString:ea}),$(ed,ec,q(G,{brighter(e){return e=null==e?1.4285714285714286:Math.pow(1.4285714285714286,e),new ed(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new ed(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new ed(eg(this.r),eg(this.g),eg(this.b),ep(this.opacity))},displayable(){return -.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:ef,formatHex:ef,formatHex8:function(){return`#${ev(this.r)}${ev(this.g)}${ev(this.b)}${ev((isNaN(this.opacity)?1:this.opacity)*255)}`},formatRgb:eh,toString:eh})),$(ey,function(e,t,r,n){return 1==arguments.length?eb(e):new ey(e,t,r,null==n?1:n)},q(G,{brighter(e){return e=null==e?1.4285714285714286:Math.pow(1.4285714285714286,e),new ey(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new ey(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new ed(eS(e>=240?e-240:e+120,i,n),eS(e,i,n),eS(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new ey(ex(this.h),ew(this.s),ew(this.l),ep(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=ep(this.opacity);return`${1===e?"hsl(":"hsla("}${ex(this.h)}, ${100*ew(this.s)}%, ${100*ew(this.l)}%${1===e?")":`, ${e})`}`}}));let ek=e=>()=>e;function eC(e,t){var r=t-e;return r?function(t){return e+t*r}:ek(isNaN(e)?t:e)}let eO=function e(t){var r,n=1==(r=+t)?eC:function(e,t){var n,i,o;return t-e?(n=e,i=t,n=Math.pow(n,o=r),i=Math.pow(i,o)-n,o=1/o,function(e){return Math.pow(n+e*i,o)}):ek(isNaN(e)?t:e)};function i(e,t){var r=n((e=ec(e)).r,(t=ec(t)).r),i=n(e.g,t.g),o=n(e.b,t.b),a=eC(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=o(t),e.opacity=a(t),e+""}}return i.gamma=e,i}(1);function eI(e){return function(t){var r,n,i=t.length,o=Array(i),a=Array(i),s=Array(i);for(r=0;r<i;++r)n=ec(t[r]),o[r]=n.r||0,a[r]=n.g||0,s[r]=n.b||0;return o=e(o),a=e(a),s=e(s),n.opacity=1,function(e){return n.r=o(e),n.g=a(e),n.b=s(e),n+""}}}eI(function(e){var t=e.length-1;return function(r){var n=r<=0?r=0:r>=1?(r=1,t-1):Math.floor(r*t),i=e[n],o=e[n+1],a=n>0?e[n-1]:2*i-o,s=n<t-1?e[n+2]:2*o-i;return eE((r-n/t)*t,a,i,o,s)}}),eI(function(e){var t=e.length;return function(r){var n=Math.floor(((r%=1)<0?++r:r)*t),i=e[(n+t-1)%t],o=e[n%t],a=e[(n+1)%t],s=e[(n+2)%t];return eE((r-n/t)*t,i,o,a,s)}});var e_=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,eT=RegExp(e_.source,"g");function eP(e,t){var r;return("number"==typeof t?V:t instanceof es?eO:(r=es(t))?(t=r,eO):function(e,t){var r,n,i,o,a,s=e_.lastIndex=eT.lastIndex=0,l=-1,u=[],c=[];for(e+="",t+="";(i=e_.exec(e))&&(o=eT.exec(t));)(a=o.index)>s&&(a=t.slice(s,a),u[l]?u[l]+=a:u[++l]=a),(i=i[0])===(o=o[0])?u[l]?u[l]+=o:u[++l]=o:(u[++l]=null,c.push({i:l,x:V(i,o)})),s=eT.lastIndex;return s<t.length&&(a=t.slice(s),u[l]?u[l]+=a:u[++l]=a),u.length<2?c[0]?(r=c[0].x,function(e){return r(e)+""}):(n=t,function(){return n}):(t=c.length,function(e){for(var r,n=0;n<t;++n)u[(r=c[n]).i]=r.x(e);return u.join("")})})(e,t)}var eR=r(91663),eA=r(63806),eN=r(80377),eM=f.Ay.prototype.constructor,eL=r(52549);function eV(e){return function(){this.style.removeProperty(e)}}var eD=0;function eF(e,t,r,n){this._groups=e,this._parents=t,this._name=r,this._id=n}var ej=f.Ay.prototype;eF.prototype=(function(e){return(0,f.Ay)().transition(e)}).prototype={constructor:eF,select:function(e){var t=this._name,r=this._id;"function"!=typeof e&&(e=(0,eA.A)(e));for(var n=this._groups,i=n.length,o=Array(i),a=0;a<i;++a)for(var s,l,u=n[a],c=u.length,d=o[a]=Array(c),f=0;f<c;++f)(s=u[f])&&(l=e.call(s,s.__data__,f,u))&&("__data__"in s&&(l.__data__=s.__data__),d[f]=l,R(d[f],t,r,f,d,M(s,r)));return new eF(o,this._parents,t,r)},selectAll:function(e){var t=this._name,r=this._id;"function"!=typeof e&&(e=(0,eN.A)(e));for(var n=this._groups,i=n.length,o=[],a=[],s=0;s<i;++s)for(var l,u=n[s],c=u.length,d=0;d<c;++d)if(l=u[d]){for(var f,h=e.call(l,l.__data__,d,u),p=M(l,r),g=0,v=h.length;g<v;++g)(f=h[g])&&R(f,t,r,g,h,p);o.push(h),a.push(l)}return new eF(o,a,t,r)},selectChild:ej.selectChild,selectChildren:ej.selectChildren,filter:function(e){"function"!=typeof e&&(e=(0,eR.A)(e));for(var t=this._groups,r=t.length,n=Array(r),i=0;i<r;++i)for(var o,a=t[i],s=a.length,l=n[i]=[],u=0;u<s;++u)(o=a[u])&&e.call(o,o.__data__,u,a)&&l.push(o);return new eF(n,this._parents,this._name,this._id)},merge:function(e){if(e._id!==this._id)throw Error();for(var t=this._groups,r=e._groups,n=t.length,i=r.length,o=Math.min(n,i),a=Array(n),s=0;s<o;++s)for(var l,u=t[s],c=r[s],d=u.length,f=a[s]=Array(d),h=0;h<d;++h)(l=u[h]||c[h])&&(f[h]=l);for(;s<n;++s)a[s]=t[s];return new eF(a,this._parents,this._name,this._id)},selection:function(){return new eM(this._groups,this._parents)},transition:function(){for(var e=this._name,t=this._id,r=++eD,n=this._groups,i=n.length,o=0;o<i;++o)for(var a,s=n[o],l=s.length,u=0;u<l;++u)if(a=s[u]){var c=M(a,t);R(a,e,r,u,s,{time:c.time+c.delay+c.duration,delay:0,duration:c.duration,ease:c.ease})}return new eF(n,this._parents,e,r)},call:ej.call,nodes:ej.nodes,node:ej.node,size:ej.size,empty:ej.empty,each:ej.each,on:function(e,t){var r,n,i,o,a,s,l=this._id;return arguments.length<2?M(this.node(),l).on.on(e):this.each((r=l,n=e,i=t,s=(n+"").trim().split(/^|\s+/).every(function(e){var t=e.indexOf(".");return t>=0&&(e=e.slice(0,t)),!e||"start"===e})?A:N,function(){var e=s(this,r),t=e.on;t!==o&&(a=(o=t).copy()).on(n,i),e.on=a}))},attr:function(e,t){var r=(0,H.A)(e),n="transform"===r?U:eP;return this.attrTween(e,"function"==typeof t?(r.local?function(e,t,r){var n,i,o;return function(){var a,s,l=r(this);return null==l?void this.removeAttributeNS(e.space,e.local):(a=this.getAttributeNS(e.space,e.local))===(s=l+"")?null:a===n&&s===i?o:(i=s,o=t(n=a,l))}}:function(e,t,r){var n,i,o;return function(){var a,s,l=r(this);return null==l?void this.removeAttribute(e):(a=this.getAttribute(e))===(s=l+"")?null:a===n&&s===i?o:(i=s,o=t(n=a,l))}})(r,n,W(this,"attr."+e,t)):null==t?(r.local?function(e){return function(){this.removeAttributeNS(e.space,e.local)}}:function(e){return function(){this.removeAttribute(e)}})(r):(r.local?function(e,t,r){var n,i,o=r+"";return function(){var a=this.getAttributeNS(e.space,e.local);return a===o?null:a===n?i:i=t(n=a,r)}}:function(e,t,r){var n,i,o=r+"";return function(){var a=this.getAttribute(e);return a===o?null:a===n?i:i=t(n=a,r)}})(r,n,t))},attrTween:function(e,t){var r="attr."+e;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==t)return this.tween(r,null);if("function"!=typeof t)throw Error();var n=(0,H.A)(e);return this.tween(r,(n.local?function(e,t){var r,n;function i(){var i=t.apply(this,arguments);return i!==n&&(r=(n=i)&&function(t){this.setAttributeNS(e.space,e.local,i.call(this,t))}),r}return i._value=t,i}:function(e,t){var r,n;function i(){var i=t.apply(this,arguments);return i!==n&&(r=(n=i)&&function(t){this.setAttribute(e,i.call(this,t))}),r}return i._value=t,i})(n,t))},style:function(e,t,r){var n,i,o,a,s,l,u,c,d,f,h,p,g,v,m,b,y,x,w,S,E,k="transform"==(e+="")?B:eP;return null==t?this.styleTween(e,(n=e,function(){var e=(0,eL.j)(this,n),t=(this.style.removeProperty(n),(0,eL.j)(this,n));return e===t?null:e===i&&t===o?a:a=k(i=e,o=t)})).on("end.style."+e,eV(e)):"function"==typeof t?this.styleTween(e,(s=e,l=W(this,"style."+e,t),function(){var e=(0,eL.j)(this,s),t=l(this),r=t+"";return null==t&&(this.style.removeProperty(s),r=t=(0,eL.j)(this,s)),e===r?null:e===u&&r===c?d:(c=r,d=k(u=e,t))})).each((f=this._id,y="end."+(b="style."+(h=e)),function(){var e=N(this,f),t=e.on,r=null==e.value[b]?m||(m=eV(h)):void 0;(t!==p||v!==r)&&(g=(p=t).copy()).on(y,v=r),e.on=g})):this.styleTween(e,(x=e,E=t+"",function(){var e=(0,eL.j)(this,x);return e===E?null:e===w?S:S=k(w=e,t)}),r).on("end.style."+e,null)},styleTween:function(e,t,r){var n="style."+(e+="");if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!=typeof t)throw Error();return this.tween(n,function(e,t,r){var n,i;function o(){var o=t.apply(this,arguments);return o!==i&&(n=(i=o)&&function(t){this.style.setProperty(e,o.call(this,t),r)}),n}return o._value=t,o}(e,t,null==r?"":r))},text:function(e){var t,r;return this.tween("text","function"==typeof e?(t=W(this,"text",e),function(){var e=t(this);this.textContent=null==e?"":e}):(r=null==e?"":e+"",function(){this.textContent=r}))},textTween:function(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(null==e)return this.tween(t,null);if("function"!=typeof e)throw Error();return this.tween(t,function(e){var t,r;function n(){var n=e.apply(this,arguments);return n!==r&&(t=(r=n)&&function(e){this.textContent=n.call(this,e)}),t}return n._value=e,n}(e))},remove:function(){var e;return this.on("end.remove",(e=this._id,function(){var t=this.parentNode;for(var r in this.__transition)if(+r!==e)return;t&&t.removeChild(this)}))},tween:function(e,t){var r=this._id;if(e+="",arguments.length<2){for(var n,i=M(this.node(),r).tween,o=0,a=i.length;o<a;++o)if((n=i[o]).name===e)return n.value;return null}return this.each((null==t?function(e,t){var r,n;return function(){var i=N(this,e),o=i.tween;if(o!==r){n=r=o;for(var a=0,s=n.length;a<s;++a)if(n[a].name===t){(n=n.slice()).splice(a,1);break}}i.tween=n}}:function(e,t,r){var n,i;if("function"!=typeof r)throw Error();return function(){var o=N(this,e),a=o.tween;if(a!==n){i=(n=a).slice();for(var s={name:t,value:r},l=0,u=i.length;l<u;++l)if(i[l].name===t){i[l]=s;break}l===u&&i.push(s)}o.tween=i}})(r,e,t))},delay:function(e){var t=this._id;return arguments.length?this.each(("function"==typeof e?function(e,t){return function(){A(this,e).delay=+t.apply(this,arguments)}}:function(e,t){return t*=1,function(){A(this,e).delay=t}})(t,e)):M(this.node(),t).delay},duration:function(e){var t=this._id;return arguments.length?this.each(("function"==typeof e?function(e,t){return function(){N(this,e).duration=+t.apply(this,arguments)}}:function(e,t){return t*=1,function(){N(this,e).duration=t}})(t,e)):M(this.node(),t).duration},ease:function(e){var t=this._id;return arguments.length?this.each(function(e,t){if("function"!=typeof t)throw Error();return function(){N(this,e).ease=t}}(t,e)):M(this.node(),t).ease},easeVarying:function(e){var t;if("function"!=typeof e)throw Error();return this.each((t=this._id,function(){var r=e.apply(this,arguments);if("function"!=typeof r)throw Error();N(this,t).ease=r}))},end:function(){var e,t,r=this,n=r._id,i=r.size();return new Promise(function(o,a){var s={value:a},l={value:function(){0==--i&&o()}};r.each(function(){var r=N(this,n),i=r.on;i!==e&&((t=(e=i).copy())._.cancel.push(s),t._.interrupt.push(s),t._.end.push(l)),r.on=t}),0===i&&o()})},[Symbol.iterator]:ej[Symbol.iterator]};var ez={time:null,delay:0,duration:250,ease:function(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}};f.Ay.prototype.interrupt=function(e){return this.each(function(){L(this,e)})},f.Ay.prototype.transition=function(e){var t,r;e instanceof eF?(t=e._id,e=e._name):(t=++eD,(r=ez).time=w(),e=null==e?null:e+"");for(var n=this._groups,i=n.length,o=0;o<i;++o)for(var a,s=n[o],l=s.length,u=0;u<l;++u)(a=s[u])&&R(a,e,t,u,s,r||function(e,t){for(var r;!(r=e.__transition)||!(r=r[t]);)if(!(e=e.parentNode))throw Error(`transition ${t} not found`);return r}(a,t));return new eF(n,this._parents,e,t)};let eB=e=>()=>e;function eU(e,{sourceEvent:t,target:r,transform:n,dispatch:i}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},transform:{value:n,enumerable:!0,configurable:!0},_:{value:i}})}function eH(e,t,r){this.k=e,this.x=t,this.y=r}eH.prototype={constructor:eH,scale:function(e){return 1===e?this:new eH(this.k*e,this.x,this.y)},translate:function(e,t){return 0===e&0===t?this:new eH(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var eW=new eH(1,0,0);function e$(e){e.stopImmediatePropagation()}function eq(e){e.preventDefault(),e.stopImmediatePropagation()}function eG(e){return(!e.ctrlKey||"wheel"===e.type)&&!e.button}function eK(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e).hasAttribute("viewBox")?[[(e=e.viewBox.baseVal).x,e.y],[e.x+e.width,e.y+e.height]]:[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]:[[0,0],[e.clientWidth,e.clientHeight]]}function eY(){return this.__zoom||eW}function eX(e){return-e.deltaY*(1===e.deltaMode?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function eQ(){return navigator.maxTouchPoints||"ontouchstart"in this}function eJ(e,t,r){var n=e.invertX(t[0][0])-r[0][0],i=e.invertX(t[1][0])-r[1][0],o=e.invertY(t[0][1])-r[0][1],a=e.invertY(t[1][1])-r[1][1];return e.translate(i>n?(n+i)/2:Math.min(0,n)||Math.max(0,i),a>o?(o+a)/2:Math.min(0,o)||Math.max(0,a))}function eZ(){var e,t,r,n=eG,a=eK,l=eJ,u=eX,f=eQ,h=[0,1/0],p=[[-1/0,-1/0],[1/0,1/0]],g=250,v=s,m=(0,i.A)("start","zoom","end"),b=0,y=10;function x(e){e.property("__zoom",eY).on("wheel.zoom",I,{passive:!1}).on("mousedown.zoom",_).on("dblclick.zoom",T).filter(f).on("touchstart.zoom",P).on("touchmove.zoom",R).on("touchend.zoom touchcancel.zoom",A).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function w(e,t){return(t=Math.max(h[0],Math.min(h[1],t)))===e.k?e:new eH(t,e.x,e.y)}function S(e,t,r){var n=t[0]-r[0]*e.k,i=t[1]-r[1]*e.k;return n===e.x&&i===e.y?e:new eH(e.k,n,i)}function E(e){return[(+e[0][0]+ +e[1][0])/2,(+e[0][1]+ +e[1][1])/2]}function k(e,t,r,n){e.on("start.zoom",function(){C(this,arguments).event(n).start()}).on("interrupt.zoom end.zoom",function(){C(this,arguments).event(n).end()}).tween("zoom",function(){var e=arguments,i=C(this,e).event(n),o=a.apply(this,e),s=null==r?E(o):"function"==typeof r?r.apply(this,e):r,l=Math.max(o[1][0]-o[0][0],o[1][1]-o[0][1]),u=this.__zoom,c="function"==typeof t?t.apply(this,e):t,d=v(u.invert(s).concat(l/u.k),c.invert(s).concat(l/c.k));return function(e){if(1===e)e=c;else{var t=d(e),r=l/t[2];e=new eH(r,s[0]-t[0]*r,s[1]-t[1]*r)}i.zoom(null,e)}})}function C(e,t,r){return!r&&e.__zooming||new O(e,t)}function O(e,t){this.that=e,this.args=t,this.active=0,this.sourceEvent=null,this.extent=a.apply(e,t),this.taps=0}function I(e,...t){if(n.apply(this,arguments)){var r=C(this,t).event(e),i=this.__zoom,o=Math.max(h[0],Math.min(h[1],i.k*Math.pow(2,u.apply(this,arguments)))),a=(0,d.A)(e);if(r.wheel)(r.mouse[0][0]!==a[0]||r.mouse[0][1]!==a[1])&&(r.mouse[1]=i.invert(r.mouse[0]=a)),clearTimeout(r.wheel);else{if(i.k===o)return;r.mouse=[a,i.invert(a)],L(this),r.start()}eq(e),r.wheel=setTimeout(function(){r.wheel=null,r.end()},150),r.zoom("mouse",l(S(w(i,o),r.mouse[0],r.mouse[1]),r.extent,p))}}function _(e,...t){if(!r&&n.apply(this,arguments)){var i=e.currentTarget,a=C(this,t,!0).event(e),s=(0,c.A)(e.view).on("mousemove.zoom",function(e){if(eq(e),!a.moved){var t=e.clientX-f,r=e.clientY-h;a.moved=t*t+r*r>b}a.event(e).zoom("mouse",l(S(a.that.__zoom,a.mouse[0]=(0,d.A)(e,i),a.mouse[1]),a.extent,p))},!0).on("mouseup.zoom",function(e){s.on("mousemove.zoom mouseup.zoom",null),(0,o.y)(e.view,a.moved),eq(e),a.event(e).end()},!0),u=(0,d.A)(e,i),f=e.clientX,h=e.clientY;(0,o.A)(e.view),e$(e),a.mouse=[u,this.__zoom.invert(u)],L(this),a.start()}}function T(e,...t){if(n.apply(this,arguments)){var r=this.__zoom,i=(0,d.A)(e.changedTouches?e.changedTouches[0]:e,this),o=r.invert(i),s=r.k*(e.shiftKey?.5:2),u=l(S(w(r,s),i,o),a.apply(this,t),p);eq(e),g>0?(0,c.A)(this).transition().duration(g).call(k,u,i,e):(0,c.A)(this).call(x.transform,u,i,e)}}function P(r,...i){if(n.apply(this,arguments)){var o,a,s,l,u=r.touches,c=u.length,f=C(this,i,r.changedTouches.length===c).event(r);for(e$(r),a=0;a<c;++a)s=u[a],l=[l=(0,d.A)(s,this),this.__zoom.invert(l),s.identifier],f.touch0?f.touch1||f.touch0[2]===l[2]||(f.touch1=l,f.taps=0):(f.touch0=l,o=!0,f.taps=1+!!e);e&&(e=clearTimeout(e)),o&&(f.taps<2&&(t=l[0],e=setTimeout(function(){e=null},500)),L(this),f.start())}}function R(e,...t){if(this.__zooming){var r,n,i,o,a=C(this,t).event(e),s=e.changedTouches,u=s.length;for(eq(e),r=0;r<u;++r)n=s[r],i=(0,d.A)(n,this),a.touch0&&a.touch0[2]===n.identifier?a.touch0[0]=i:a.touch1&&a.touch1[2]===n.identifier&&(a.touch1[0]=i);if(n=a.that.__zoom,a.touch1){var c=a.touch0[0],f=a.touch0[1],h=a.touch1[0],g=a.touch1[1],v=(v=h[0]-c[0])*v+(v=h[1]-c[1])*v,m=(m=g[0]-f[0])*m+(m=g[1]-f[1])*m;n=w(n,Math.sqrt(v/m)),i=[(c[0]+h[0])/2,(c[1]+h[1])/2],o=[(f[0]+g[0])/2,(f[1]+g[1])/2]}else{if(!a.touch0)return;i=a.touch0[0],o=a.touch0[1]}a.zoom("touch",l(S(n,i,o),a.extent,p))}}function A(e,...n){if(this.__zooming){var i,o,a=C(this,n).event(e),s=e.changedTouches,l=s.length;for(e$(e),r&&clearTimeout(r),r=setTimeout(function(){r=null},500),i=0;i<l;++i)o=s[i],a.touch0&&a.touch0[2]===o.identifier?delete a.touch0:a.touch1&&a.touch1[2]===o.identifier&&delete a.touch1;if(a.touch1&&!a.touch0&&(a.touch0=a.touch1,delete a.touch1),a.touch0)a.touch0[1]=this.__zoom.invert(a.touch0[0]);else if(a.end(),2===a.taps&&(o=(0,d.A)(o,this),Math.hypot(t[0]-o[0],t[1]-o[1])<y)){var u=(0,c.A)(this).on("dblclick.zoom");u&&u.apply(this,arguments)}}}return x.transform=function(e,t,r,n){var i=e.selection?e.selection():e;i.property("__zoom",eY),e!==i?k(e,t,r,n):i.interrupt().each(function(){C(this,arguments).event(n).start().zoom(null,"function"==typeof t?t.apply(this,arguments):t).end()})},x.scaleBy=function(e,t,r,n){x.scaleTo(e,function(){var e=this.__zoom.k,r="function"==typeof t?t.apply(this,arguments):t;return e*r},r,n)},x.scaleTo=function(e,t,r,n){x.transform(e,function(){var e=a.apply(this,arguments),n=this.__zoom,i=null==r?E(e):"function"==typeof r?r.apply(this,arguments):r,o=n.invert(i),s="function"==typeof t?t.apply(this,arguments):t;return l(S(w(n,s),i,o),e,p)},r,n)},x.translateBy=function(e,t,r,n){x.transform(e,function(){return l(this.__zoom.translate("function"==typeof t?t.apply(this,arguments):t,"function"==typeof r?r.apply(this,arguments):r),a.apply(this,arguments),p)},null,n)},x.translateTo=function(e,t,r,n,i){x.transform(e,function(){var e=a.apply(this,arguments),i=this.__zoom,o=null==n?E(e):"function"==typeof n?n.apply(this,arguments):n;return l(eW.translate(o[0],o[1]).scale(i.k).translate("function"==typeof t?-t.apply(this,arguments):-t,"function"==typeof r?-r.apply(this,arguments):-r),e,p)},n,i)},O.prototype={event:function(e){return e&&(this.sourceEvent=e),this},start:function(){return 1==++this.active&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(e,t){return this.mouse&&"mouse"!==e&&(this.mouse[1]=t.invert(this.mouse[0])),this.touch0&&"touch"!==e&&(this.touch0[1]=t.invert(this.touch0[0])),this.touch1&&"touch"!==e&&(this.touch1[1]=t.invert(this.touch1[0])),this.that.__zoom=t,this.emit("zoom"),this},end:function(){return 0==--this.active&&(delete this.that.__zooming,this.emit("end")),this},emit:function(e){var t=(0,c.A)(this.that).datum();m.call(e,this.that,new eU(e,{sourceEvent:this.sourceEvent,target:x,type:e,transform:this.that.__zoom,dispatch:m}),t)}},x.wheelDelta=function(e){return arguments.length?(u="function"==typeof e?e:eB(+e),x):u},x.filter=function(e){return arguments.length?(n="function"==typeof e?e:eB(!!e),x):n},x.touchable=function(e){return arguments.length?(f="function"==typeof e?e:eB(!!e),x):f},x.extent=function(e){return arguments.length?(a="function"==typeof e?e:eB([[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]]),x):a},x.scaleExtent=function(e){return arguments.length?(h[0]=+e[0],h[1]=+e[1],x):[h[0],h[1]]},x.translateExtent=function(e){return arguments.length?(p[0][0]=+e[0][0],p[1][0]=+e[1][0],p[0][1]=+e[0][1],p[1][1]=+e[1][1],x):[[p[0][0],p[0][1]],[p[1][0],p[1][1]]]},x.constrain=function(e){return arguments.length?(l=e,x):l},x.duration=function(e){return arguments.length?(g=+e,x):g},x.interpolate=function(e){return arguments.length?(v=e,x):v},x.on=function(){var e=m.on.apply(m,arguments);return e===m?x:e},x.clickDistance=function(e){return arguments.length?(b=(e*=1)*e,x):Math.sqrt(b)},x.tapDistance=function(e){return arguments.length?(y=+e,x):y},x}eH.prototype},65541:(e,t,r)=>{e.exports=r(5182)(r(93475),"Set")},65675:e=>{var t=Math.ceil,r=Math.max;e.exports=function(e,n,i,o){for(var a=-1,s=r(t((n-e)/(i||1)),0),l=Array(s);s--;)l[o?s:++a]=e,e+=i;return l}},66014:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},66241:(e,t,r)=>{var n=r(19654),i=r(59045),o=r(29687);e.exports=function(e){return"function"!=typeof e.constructor||o(e)?{}:n(i(e))}},66705:(e,t,r)=>{var n=r(69604);e.exports=function(e,t){var r=this.__data__;return this.size+=+!this.has(e),r[e]=n&&void 0===t?"__lodash_hash_undefined__":t,this}},67030:(e,t,r)=>{"use strict";r.d(t,{C8:()=>g,H2:()=>l,Ok:()=>h,RP:()=>u,Yw:()=>c,eq:()=>p,g3:()=>i,i_:()=>o,jC:()=>a,nf:()=>d,sJ:()=>n,tt:()=>s});let n=e=>e,i=e=>e,o=e=>e,a=e=>e,s=e=>e,l=e=>e,u=e=>e,c=e=>e,d=e=>e;function f(){let e=e=>e;return new Proxy(e,{get:()=>e})}let h=f(),p=f(),g=e=>e},67553:(e,t,r)=>{"use strict";r.d(t,{Q:()=>n});var n=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(){}}},67684:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{DecodeError:function(){return p},MiddlewareNotFoundError:function(){return b},MissingStaticPage:function(){return m},NormalizeError:function(){return g},PageNotFoundError:function(){return v},SP:function(){return f},ST:function(){return h},WEB_VITALS:function(){return r},execOnce:function(){return n},getDisplayName:function(){return l},getLocationOrigin:function(){return a},getURL:function(){return s},isAbsoluteUrl:function(){return o},isResSent:function(){return u},loadGetInitialProps:function(){return d},normalizeRepeatedSlashes:function(){return c},stringifyError:function(){return y}});let r=["CLS","FCP","FID","INP","LCP","TTFB"];function n(e){let t,r=!1;return function(){for(var n=arguments.length,i=Array(n),o=0;o<n;o++)i[o]=arguments[o];return r||(r=!0,t=e(...i)),t}}let i=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,o=e=>i.test(e);function a(){let{protocol:e,hostname:t,port:r}=window.location;return e+"//"+t+(r?":"+r:"")}function s(){let{href:e}=window.location,t=a();return e.substring(t.length)}function l(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function u(e){return e.finished||e.headersSent}function c(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?"?"+t.slice(1).join("?"):"")}async function d(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await d(t.Component,t.ctx)}:{};let n=await e.getInitialProps(t);if(r&&u(r))return n;if(!n)throw Object.defineProperty(Error('"'+l(e)+'.getInitialProps()" should resolve to an object. But found "'+n+'" instead.'),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return n}let f="undefined"!=typeof performance,h=f&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class p extends Error{}class g extends Error{}class v extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+e}}class m extends Error{constructor(e,t){super(),this.message="Failed to load static file for page: "+e+" "+t}}class b extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function y(e){return JSON.stringify({message:e.message,stack:e.stack})}},67772:e=>{var t=RegExp("[\\u200d\ud800-\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return t.test(e)}},67804:(e,t,r)=>{"use strict";r.d(t,{h:()=>d,n:()=>u});var n=r(80715),i=r(12673);let o=e=>{let t,r=new Set,n=(e,n)=>{let i="function"==typeof e?e(t):e;if(!Object.is(i,t)){let e=t;t=(null!=n?n:"object"!=typeof i||null===i)?i:Object.assign({},t,i),r.forEach(r=>r(t,e))}},i=()=>t,o={setState:n,getState:i,getInitialState:()=>a,subscribe:e=>(r.add(e),()=>r.delete(e)),destroy:()=>{console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),r.clear()}},a=t=e(n,i,o);return o},{useDebugValue:a}=n,{useSyncExternalStoreWithSelector:s}=i,l=e=>e;function u(e,t=l,r){let n=s(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,r);return a(n),n}let c=(e,t)=>{let r=(e=>e?o(e):o)(e),n=(e,n=t)=>u(r,e,n);return Object.assign(n,r),n},d=(e,t)=>e?c(e,t):c},67911:(e,t,r)=>{var n=r(35385),i=r(86622);e.exports=function(e,t){return e&&n(e,t,i)}},67918:(e,t,r)=>{var n=r(71444),i=r(67911),o=r(97643);e.exports=function(e,t){var r={};return t=o(t,3),i(e,function(e,i,o){n(r,i,t(e,i,o))}),r}},68018:(e,t,r)=>{"use strict";r.d(t,{D:()=>o});let{withContext:n,PropsProvider:i}=(0,r(62523).a)({key:"heading"}),o=n("h2")},68683:(e,t,r)=>{"use strict";r.d(t,{Ox:()=>eP,bf:()=>eO,aC:()=>eA});let n=["top","right","bottom","left"],i=Math.min,o=Math.max,a=Math.round,s=Math.floor,l=e=>({x:e,y:e}),u={left:"right",right:"left",bottom:"top",top:"bottom"},c={start:"end",end:"start"};function d(e,t){return"function"==typeof e?e(t):e}function f(e){return e.split("-")[0]}function h(e){return e.split("-")[1]}function p(e){return"x"===e?"y":"x"}function g(e){return"y"===e?"height":"width"}let v=new Set(["top","bottom"]);function m(e){return v.has(f(e))?"y":"x"}function b(e){return e.replace(/start|end/g,e=>c[e])}let y=["left","right"],x=["right","left"],w=["top","bottom"],S=["bottom","top"];function E(e){return e.replace(/left|right|bottom|top/g,e=>u[e])}function k(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function C(e){let{x:t,y:r,width:n,height:i}=e;return{width:n,height:i,top:r,left:t,right:t+n,bottom:r+i,x:t,y:r}}function O(e,t,r){let n,{reference:i,floating:o}=e,a=m(t),s=p(m(t)),l=g(s),u=f(t),c="y"===a,d=i.x+i.width/2-o.width/2,v=i.y+i.height/2-o.height/2,b=i[l]/2-o[l]/2;switch(u){case"top":n={x:d,y:i.y-o.height};break;case"bottom":n={x:d,y:i.y+i.height};break;case"right":n={x:i.x+i.width,y:v};break;case"left":n={x:i.x-o.width,y:v};break;default:n={x:i.x,y:i.y}}switch(h(t)){case"start":n[s]-=b*(r&&c?-1:1);break;case"end":n[s]+=b*(r&&c?-1:1)}return n}let I=async(e,t,r)=>{let{placement:n="bottom",strategy:i="absolute",middleware:o=[],platform:a}=r,s=o.filter(Boolean),l=await (null==a.isRTL?void 0:a.isRTL(t)),u=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:d}=O(u,n,l),f=n,h={},p=0;for(let r=0;r<s.length;r++){let{name:o,fn:g}=s[r],{x:v,y:m,data:b,reset:y}=await g({x:c,y:d,initialPlacement:n,placement:f,strategy:i,middlewareData:h,rects:u,platform:a,elements:{reference:e,floating:t}});c=null!=v?v:c,d=null!=m?m:d,h={...h,[o]:{...h[o],...b}},y&&p<=50&&(p++,"object"==typeof y&&(y.placement&&(f=y.placement),y.rects&&(u=!0===y.rects?await a.getElementRects({reference:e,floating:t,strategy:i}):y.rects),{x:c,y:d}=O(u,f,l)),r=-1)}return{x:c,y:d,placement:f,strategy:i,middlewareData:h}};async function _(e,t){var r;void 0===t&&(t={});let{x:n,y:i,platform:o,rects:a,elements:s,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:f="floating",altBoundary:h=!1,padding:p=0}=d(t,e),g=k(p),v=s[h?"floating"===f?"reference":"floating":f],m=C(await o.getClippingRect({element:null==(r=await (null==o.isElement?void 0:o.isElement(v)))||r?v:v.contextElement||await (null==o.getDocumentElement?void 0:o.getDocumentElement(s.floating)),boundary:u,rootBoundary:c,strategy:l})),b="floating"===f?{x:n,y:i,width:a.floating.width,height:a.floating.height}:a.reference,y=await (null==o.getOffsetParent?void 0:o.getOffsetParent(s.floating)),x=await (null==o.isElement?void 0:o.isElement(y))&&await (null==o.getScale?void 0:o.getScale(y))||{x:1,y:1},w=C(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:b,offsetParent:y,strategy:l}):b);return{top:(m.top-w.top+g.top)/x.y,bottom:(w.bottom-m.bottom+g.bottom)/x.y,left:(m.left-w.left+g.left)/x.x,right:(w.right-m.right+g.right)/x.x}}function T(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function P(e){return n.some(t=>e[t]>=0)}let R=new Set(["left","top"]);async function A(e,t){let{placement:r,platform:n,elements:i}=e,o=await (null==n.isRTL?void 0:n.isRTL(i.floating)),a=f(r),s=h(r),l="y"===m(r),u=R.has(a)?-1:1,c=o&&l?-1:1,p=d(t,e),{mainAxis:g,crossAxis:v,alignmentAxis:b}="number"==typeof p?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return s&&"number"==typeof b&&(v="end"===s?-1*b:b),l?{x:v*c,y:g*u}:{x:g*u,y:v*c}}function N(){return"undefined"!=typeof window}function M(e){return D(e)?(e.nodeName||"").toLowerCase():"#document"}function L(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function V(e){var t;return null==(t=(D(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function D(e){return!!N()&&(e instanceof Node||e instanceof L(e).Node)}function F(e){return!!N()&&(e instanceof Element||e instanceof L(e).Element)}function j(e){return!!N()&&(e instanceof HTMLElement||e instanceof L(e).HTMLElement)}function z(e){return!!N()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof L(e).ShadowRoot)}let B=new Set(["inline","contents"]);function U(e){let{overflow:t,overflowX:r,overflowY:n,display:i}=Z(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!B.has(i)}let H=new Set(["table","td","th"]),W=[":popover-open",":modal"];function $(e){return W.some(t=>{try{return e.matches(t)}catch(e){return!1}})}let q=["transform","translate","scale","rotate","perspective"],G=["transform","translate","scale","rotate","perspective","filter"],K=["paint","layout","strict","content"];function Y(e){let t=X(),r=F(e)?Z(e):e;return q.some(e=>!!r[e]&&"none"!==r[e])||!!r.containerType&&"normal"!==r.containerType||!t&&!!r.backdropFilter&&"none"!==r.backdropFilter||!t&&!!r.filter&&"none"!==r.filter||G.some(e=>(r.willChange||"").includes(e))||K.some(e=>(r.contain||"").includes(e))}function X(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}let Q=new Set(["html","body","#document"]);function J(e){return Q.has(M(e))}function Z(e){return L(e).getComputedStyle(e)}function ee(e){return F(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function et(e){if("html"===M(e))return e;let t=e.assignedSlot||e.parentNode||z(e)&&e.host||V(e);return z(t)?t.host:t}function er(e,t,r){var n;void 0===t&&(t=[]),void 0===r&&(r=!0);let i=function e(t){let r=et(t);return J(r)?t.ownerDocument?t.ownerDocument.body:t.body:j(r)&&U(r)?r:e(r)}(e),o=i===(null==(n=e.ownerDocument)?void 0:n.body),a=L(i);if(o){let e=en(a);return t.concat(a,a.visualViewport||[],U(i)?i:[],e&&r?er(e):[])}return t.concat(i,er(i,[],r))}function en(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ei(e){let t=Z(e),r=parseFloat(t.width)||0,n=parseFloat(t.height)||0,i=j(e),o=i?e.offsetWidth:r,s=i?e.offsetHeight:n,l=a(r)!==o||a(n)!==s;return l&&(r=o,n=s),{width:r,height:n,$:l}}function eo(e){return F(e)?e:e.contextElement}function ea(e){let t=eo(e);if(!j(t))return l(1);let r=t.getBoundingClientRect(),{width:n,height:i,$:o}=ei(t),s=(o?a(r.width):r.width)/n,u=(o?a(r.height):r.height)/i;return s&&Number.isFinite(s)||(s=1),u&&Number.isFinite(u)||(u=1),{x:s,y:u}}let es=l(0);function el(e){let t=L(e);return X()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:es}function eu(e,t,r,n){var i;void 0===t&&(t=!1),void 0===r&&(r=!1);let o=e.getBoundingClientRect(),a=eo(e),s=l(1);t&&(n?F(n)&&(s=ea(n)):s=ea(e));let u=(void 0===(i=r)&&(i=!1),n&&(!i||n===L(a))&&i)?el(a):l(0),c=(o.left+u.x)/s.x,d=(o.top+u.y)/s.y,f=o.width/s.x,h=o.height/s.y;if(a){let e=L(a),t=n&&F(n)?L(n):n,r=e,i=en(r);for(;i&&n&&t!==r;){let e=ea(i),t=i.getBoundingClientRect(),n=Z(i),o=t.left+(i.clientLeft+parseFloat(n.paddingLeft))*e.x,a=t.top+(i.clientTop+parseFloat(n.paddingTop))*e.y;c*=e.x,d*=e.y,f*=e.x,h*=e.y,c+=o,d+=a,i=en(r=L(i))}}return C({width:f,height:h,x:c,y:d})}function ec(e,t){let r=ee(e).scrollLeft;return t?t.left+r:eu(V(e)).left+r}function ed(e,t){let r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-ec(e,r),y:r.top+t.scrollTop}}let ef=new Set(["absolute","fixed"]);function eh(e,t,r){let n;if("viewport"===t)n=function(e,t){let r=L(e),n=V(e),i=r.visualViewport,o=n.clientWidth,a=n.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;let e=X();(!e||e&&"fixed"===t)&&(s=i.offsetLeft,l=i.offsetTop)}let u=ec(n);if(u<=0){let e=n.ownerDocument,t=e.body,r=getComputedStyle(t),i="CSS1Compat"===e.compatMode&&parseFloat(r.marginLeft)+parseFloat(r.marginRight)||0,a=Math.abs(n.clientWidth-t.clientWidth-i);a<=25&&(o-=a)}else u<=25&&(o+=u);return{width:o,height:a,x:s,y:l}}(e,r);else if("document"===t)n=function(e){let t=V(e),r=ee(e),n=e.ownerDocument.body,i=o(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),a=o(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight),s=-r.scrollLeft+ec(e),l=-r.scrollTop;return"rtl"===Z(n).direction&&(s+=o(t.clientWidth,n.clientWidth)-i),{width:i,height:a,x:s,y:l}}(V(e));else if(F(t))n=function(e,t){let r=eu(e,!0,"fixed"===t),n=r.top+e.clientTop,i=r.left+e.clientLeft,o=j(e)?ea(e):l(1),a=e.clientWidth*o.x,s=e.clientHeight*o.y;return{width:a,height:s,x:i*o.x,y:n*o.y}}(t,r);else{let r=el(e);n={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return C(n)}function ep(e){return"static"===Z(e).position}function eg(e,t){if(!j(e)||"fixed"===Z(e).position)return null;if(t)return t(e);let r=e.offsetParent;return V(e)===r&&(r=r.ownerDocument.body),r}function ev(e,t){var r;let n=L(e);if($(e))return n;if(!j(e)){let t=et(e);for(;t&&!J(t);){if(F(t)&&!ep(t))return t;t=et(t)}return n}let i=eg(e,t);for(;i&&(r=i,H.has(M(r)))&&ep(i);)i=eg(i,t);return i&&J(i)&&ep(i)&&!Y(i)?n:i||function(e){let t=et(e);for(;j(t)&&!J(t);){if(Y(t))return t;if($(t))break;t=et(t)}return null}(e)||n}let em=async function(e){let t=this.getOffsetParent||ev,r=this.getDimensions,n=await r(e.floating);return{reference:function(e,t,r){let n=j(t),i=V(t),o="fixed"===r,a=eu(e,!0,o,t),s={scrollLeft:0,scrollTop:0},u=l(0);if(n||!n&&!o)if(("body"!==M(t)||U(i))&&(s=ee(t)),n){let e=eu(t,!0,o,t);u.x=e.x+t.clientLeft,u.y=e.y+t.clientTop}else i&&(u.x=ec(i));o&&!n&&i&&(u.x=ec(i));let c=!i||n||o?l(0):ed(i,s);return{x:a.left+s.scrollLeft-u.x-c.x,y:a.top+s.scrollTop-u.y-c.y,width:a.width,height:a.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}},eb={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:r,offsetParent:n,strategy:i}=e,o="fixed"===i,a=V(n),s=!!t&&$(t.floating);if(n===a||s&&o)return r;let u={scrollLeft:0,scrollTop:0},c=l(1),d=l(0),f=j(n);if((f||!f&&!o)&&(("body"!==M(n)||U(a))&&(u=ee(n)),j(n))){let e=eu(n);c=ea(n),d.x=e.x+n.clientLeft,d.y=e.y+n.clientTop}let h=!a||f||o?l(0):ed(a,u);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-u.scrollLeft*c.x+d.x+h.x,y:r.y*c.y-u.scrollTop*c.y+d.y+h.y}},getDocumentElement:V,getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:n,strategy:a}=e,s=[..."clippingAncestors"===r?$(t)?[]:function(e,t){let r=t.get(e);if(r)return r;let n=er(e,[],!1).filter(e=>F(e)&&"body"!==M(e)),i=null,o="fixed"===Z(e).position,a=o?et(e):e;for(;F(a)&&!J(a);){let t=Z(a),r=Y(a);r||"fixed"!==t.position||(i=null),(o?!r&&!i:!r&&"static"===t.position&&!!i&&ef.has(i.position)||U(a)&&!r&&function e(t,r){let n=et(t);return!(n===r||!F(n)||J(n))&&("fixed"===Z(n).position||e(n,r))}(e,a))?n=n.filter(e=>e!==a):i=t,a=et(a)}return t.set(e,n),n}(t,this._c):[].concat(r),n],l=s[0],u=s.reduce((e,r)=>{let n=eh(t,r,a);return e.top=o(n.top,e.top),e.right=i(n.right,e.right),e.bottom=i(n.bottom,e.bottom),e.left=o(n.left,e.left),e},eh(t,l,a));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}},getOffsetParent:ev,getElementRects:em,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:r}=ei(e);return{width:t,height:r}},getScale:ea,isElement:F,isRTL:function(e){return"rtl"===Z(e).direction}};function ey(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}var ex=r(77534),ew=r(75794);function eS(e=0,t=0,r=0,n=0){if("function"==typeof DOMRect)return new DOMRect(e,t,r,n);let i={x:e,y:t,width:r,height:n,top:t,right:e+r,bottom:t+n,left:e};return{...i,toJSON:()=>i}}var eE=e=>({variable:e,reference:`var(${e})`}),ek={arrowSize:eE("--arrow-size"),arrowSizeHalf:eE("--arrow-size-half"),arrowBg:eE("--arrow-background"),transformOrigin:eE("--transform-origin"),arrowOffset:eE("--arrow-offset")},eC={name:"rects",fn:({rects:e})=>({data:e})};function eO(e){return e.split("-")[0]}var eI={strategy:"absolute",placement:"bottom",listeners:!0,gutter:8,flip:!0,slide:!0,overlap:!1,sameWidth:!1,fitViewport:!1,overflowPadding:8,arrowPadding:4};function e_(e,t){let r=e.devicePixelRatio||1;return Math.round(t*r)/r}function eT(e){return"function"==typeof e?e():"clipping-ancestors"===e?"clippingAncestors":e}function eP(e,t,r={}){let{defer:n,...a}=r,l=n?ex.er:e=>e(),u=[];return u.push(l(()=>{let r="function"==typeof e?e():e,n="function"==typeof t?t():t;u.push(function(e,t,r={}){var n,a,l,u,c;let v,C=(n=r.getAnchorRect,{contextElement:(0,ex.sb)(e)?e:void 0,getBoundingClientRect:()=>{let t=n?.(e);if(t||!e){if(!t)return eS();let{x:e,y:r,width:n,height:i}=t;return eS(e,r,n,i)}return e.getBoundingClientRect()}});if(!t||!C)return;let O=Object.assign({},eI,r),N=t.querySelector("[data-part=arrow]"),M=[function(e,t){if(!(0,ew.kZ)(t.offset??t.gutter)){var r;return void 0===(r=({placement:r})=>{let n=(e?.clientHeight||0)/2,i=t.offset?.mainAxis??t.gutter,{hasAlign:o}=function(e){let[t,r]=e.split("-");return{side:t,align:r,hasAlign:null!=r}}(r),a=o?void 0:t.shift,s=t.offset?.crossAxis??a;return(0,ew.oE)({crossAxis:s,mainAxis:"number"==typeof i?i+n:i??n,alignmentAxis:t.shift})})&&(r=0),{name:"offset",options:r,async fn(e){var t,n;let{x:i,y:o,placement:a,middlewareData:s}=e,l=await A(e,r);return a===(null==(t=s.offset)?void 0:t.placement)&&null!=(n=s.arrow)&&n.alignmentOffset?{}:{x:i+l.x,y:o+l.y,data:{...l,placement:a}}}}}}(N,O),function(e){var t;if(!e.flip)return;let r=eT(e.boundary);return{name:"flip",options:t={...r?{boundary:r}:void 0,padding:e.overflowPadding,fallbackPlacements:!0===e.flip?void 0:e.flip},async fn(e){var r,n,i,o,a;let{placement:s,middlewareData:l,rects:u,initialPlacement:c,platform:v,elements:k}=e,{mainAxis:C=!0,crossAxis:O=!0,fallbackPlacements:I,fallbackStrategy:T="bestFit",fallbackAxisSideDirection:P="none",flipAlignment:R=!0,...A}=d(t,e);if(null!=(r=l.arrow)&&r.alignmentOffset)return{};let N=f(s),M=m(c),L=f(c)===c,V=await (null==v.isRTL?void 0:v.isRTL(k.floating)),D=I||(L||!R?[E(c)]:function(e){let t=E(e);return[b(e),t,b(t)]}(c)),F="none"!==P;!I&&F&&D.push(...function(e,t,r,n){let i=h(e),o=function(e,t,r){switch(e){case"top":case"bottom":if(r)return t?x:y;return t?y:x;case"left":case"right":return t?w:S;default:return[]}}(f(e),"start"===r,n);return i&&(o=o.map(e=>e+"-"+i),t&&(o=o.concat(o.map(b)))),o}(c,R,P,V));let j=[c,...D],z=await _(e,A),B=[],U=(null==(n=l.flip)?void 0:n.overflows)||[];if(C&&B.push(z[N]),O){let e=function(e,t,r){void 0===r&&(r=!1);let n=h(e),i=p(m(e)),o=g(i),a="x"===i?n===(r?"end":"start")?"right":"left":"start"===n?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=E(a)),[a,E(a)]}(s,u,V);B.push(z[e[0]],z[e[1]])}if(U=[...U,{placement:s,overflows:B}],!B.every(e=>e<=0)){let e=((null==(i=l.flip)?void 0:i.index)||0)+1,t=j[e];if(t&&("alignment"!==O||M===m(t)||U.every(e=>m(e.placement)!==M||e.overflows[0]>0)))return{data:{index:e,overflows:U},reset:{placement:t}};let r=null==(o=U.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:o.placement;if(!r)switch(T){case"bestFit":{let e=null==(a=U.filter(e=>{if(F){let t=m(e.placement);return t===M||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:a[0];e&&(r=e);break}case"initialPlacement":r=c}if(s!==r)return{reset:{placement:r}}}return{}}}}(O),function(e){var t,r;if(!e.slide&&!e.overlap)return;let n=eT(e.boundary);return{name:"shift",options:r={...n?{boundary:n}:void 0,mainAxis:e.slide,crossAxis:e.overlap,padding:e.overflowPadding,limiter:(void 0===t&&(t={}),{options:t,fn(e){let{x:r,y:n,placement:i,rects:o,middlewareData:a}=e,{offset:s=0,mainAxis:l=!0,crossAxis:u=!0}=d(t,e),c={x:r,y:n},h=m(i),g=p(h),v=c[g],b=c[h],y=d(s,e),x="number"==typeof y?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(l){let e="y"===g?"height":"width",t=o.reference[g]-o.floating[e]+x.mainAxis,r=o.reference[g]+o.reference[e]-x.mainAxis;v<t?v=t:v>r&&(v=r)}if(u){var w,S;let e="y"===g?"width":"height",t=R.has(f(i)),r=o.reference[h]-o.floating[e]+(t&&(null==(w=a.offset)?void 0:w[h])||0)+(t?0:x.crossAxis),n=o.reference[h]+o.reference[e]+(t?0:(null==(S=a.offset)?void 0:S[h])||0)-(t?x.crossAxis:0);b<r?b=r:b>n&&(b=n)}return{[g]:v,[h]:b}}})},async fn(e){let{x:t,y:n,placement:a}=e,{mainAxis:s=!0,crossAxis:l=!1,limiter:u={fn:e=>{let{x:t,y:r}=e;return{x:t,y:r}}},...c}=d(r,e),h={x:t,y:n},g=await _(e,c),v=m(f(a)),b=p(v),y=h[b],x=h[v];if(s){let e="y"===b?"top":"left",t="y"===b?"bottom":"right",r=y+g[e],n=y-g[t];y=o(r,i(y,n))}if(l){let e="y"===v?"top":"left",t="y"===v?"bottom":"right",r=x+g[e],n=x-g[t];x=o(r,i(x,n))}let w=u.fn({...e,[b]:y,[v]:x});return{...w,data:{x:w.x-t,y:w.y-n,enabled:{[b]:s,[v]:l}}}}}}(O),(a=t.ownerDocument,{name:"arrow",options:v={element:N||a.createElement("div"),padding:O.arrowPadding},async fn(e){let{x:t,y:r,placement:n,rects:a,platform:s,elements:l,middlewareData:u}=e,{element:c,padding:f=0}=d(v,e)||{};if(null==c)return{};let b=k(f),y={x:t,y:r},x=p(m(n)),w=g(x),S=await s.getDimensions(c),E="y"===x,C=E?"clientHeight":"clientWidth",O=a.reference[w]+a.reference[x]-y[x]-a.floating[w],I=y[x]-a.reference[x],_=await (null==s.getOffsetParent?void 0:s.getOffsetParent(c)),T=_?_[C]:0;T&&await (null==s.isElement?void 0:s.isElement(_))||(T=l.floating[C]||a.floating[w]);let P=T/2-S[w]/2-1,R=i(b[E?"top":"left"],P),A=i(b[E?"bottom":"right"],P),N=T-S[w]-A,M=T/2-S[w]/2+(O/2-I/2),L=o(R,i(M,N)),V=!u.arrow&&null!=h(n)&&M!==L&&a.reference[w]/2-(M<R?R:A)-S[w]/2<0,D=V?M<R?M-R:M-N:0;return{[x]:y[x]+D,data:{[x]:L,centerOffset:M-L-D,...V&&{alignmentOffset:D}},reset:V}}}),(e=>{if(e)return{name:"shiftArrow",fn({placement:t,middlewareData:r}){if(!r.arrow)return{};let{x:n,y:i}=r.arrow,o=t.split("-")[0];return Object.assign(e.style,{left:null!=n?`${n}px`:"",top:null!=i?`${i}px`:"",[o]:`calc(100% + ${ek.arrowOffset.reference})`}),{}}}})(N),(l={gutter:O.gutter,offset:O.offset,overlap:O.overlap},{name:"transformOrigin",fn(e){let{elements:t,middlewareData:r,placement:n,rects:i,y:o}=e,a=n.split("-")[0],s=r.arrow?.x||0,u=r.arrow?.y||0,c=N?.clientWidth||0,d=N?.clientHeight||0,f=s+c/2,h=u+d/2,p=Math.abs(r.shift?.y||0),g=i.reference.height/2,v=d/2,m=l.offset?.mainAxis??l.gutter,b="number"==typeof m?m+v:m??v,y=p>b,x={top:`${f}px calc(100% + ${b}px)`,bottom:`${f}px ${-b}px`,left:`calc(100% + ${b}px) ${h}px`,right:`${-b}px ${h}px`}[a],w=`${f}px ${i.reference.y+g-o}px`,S=!!l.overlap&&"y"==("top"===a||"bottom"===a?"y":"x")&&y;return t.floating.style.setProperty(ek.transformOrigin.variable,S?w:x),{data:{transformOrigin:S?w:x}}}}),{name:"size",options:u={padding:O.overflowPadding,apply({elements:e,rects:t,availableHeight:r,availableWidth:n}){let i=e.floating,o=Math.round(t.reference.width),a=Math.round(t.reference.height);n=Math.floor(n),r=Math.floor(r),i.style.setProperty("--reference-width",`${o}px`),i.style.setProperty("--reference-height",`${a}px`),i.style.setProperty("--available-width",`${n}px`),i.style.setProperty("--available-height",`${r}px`)}},async fn(e){var t,r;let n,a,{placement:s,rects:l,platform:c,elements:p}=e,{apply:g=()=>{},...v}=d(u,e),b=await _(e,v),y=f(s),x=h(s),w="y"===m(s),{width:S,height:E}=l.floating;"top"===y||"bottom"===y?(n=y,a=x===(await (null==c.isRTL?void 0:c.isRTL(p.floating))?"start":"end")?"left":"right"):(a=y,n="end"===x?"top":"bottom");let k=E-b.top-b.bottom,C=S-b.left-b.right,O=i(E-b[n],k),I=i(S-b[a],C),T=!e.middlewareData.shift,P=O,R=I;if(null!=(t=e.middlewareData.shift)&&t.enabled.x&&(R=C),null!=(r=e.middlewareData.shift)&&r.enabled.y&&(P=k),T&&!x){let e=o(b.left,0),t=o(b.right,0),r=o(b.top,0),n=o(b.bottom,0);w?R=S-2*(0!==e||0!==t?e+t:o(b.left,b.right)):P=E-2*(0!==r||0!==n?r+n:o(b.top,b.bottom))}await g({...e,availableWidth:R,availableHeight:P});let A=await c.getDimensions(p.floating);return S!==A.width||E!==A.height?{reset:{rects:!0}}:{}}},function(e){if(e.hideWhenDetached){var t;return{name:"hide",options:t={strategy:"referenceHidden",boundary:eT(e.boundary)??"clippingAncestors"},async fn(e){let{rects:r}=e,{strategy:n="referenceHidden",...i}=d(t,e);switch(n){case"referenceHidden":{let t=T(await _(e,{...i,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:P(t)}}}case"escaped":{let t=T(await _(e,{...i,altBoundary:!0}),r.floating);return{data:{escapedOffsets:t,escaped:P(t)}}}default:return{}}}}}}(O),eC],{placement:L,strategy:D,onComplete:F,onPositioned:j}=O,z=async()=>{if(!C||!t)return;let e=await ((e,t,r)=>{let n=new Map,i={platform:eb,...r},o={...i.platform,_c:n};return I(e,t,{...i,platform:o})})(C,t,{placement:L,middleware:M,strategy:D});F?.(e),j?.({placed:!0});let r=(0,ex.zk)(t),n=e_(r,e.x),i=e_(r,e.y);t.style.setProperty("--x",`${n}px`),t.style.setProperty("--y",`${i}px`),O.hideWhenDetached&&(e.middlewareData.hide?.referenceHidden?(t.style.setProperty("visibility","hidden"),t.style.setProperty("pointer-events","none")):(t.style.removeProperty("visibility"),t.style.removeProperty("pointer-events")));let o=t.firstElementChild;if(o){let e=(0,ex.L9)(o);t.style.setProperty("--z-index",e.zIndex)}},B=async()=>{r.updatePosition?(await r.updatePosition({updatePosition:z,floatingElement:t}),j?.({placed:!0})):await z()},U=(c=O.listeners)?!0===c?{ancestorResize:!0,ancestorScroll:!0,elementResize:!0,layoutShift:!0}:c:{},H=O.listeners?function(e,t,r,n){let a;void 0===n&&(n={});let{ancestorScroll:l=!0,ancestorResize:u=!0,elementResize:c="function"==typeof ResizeObserver,layoutShift:d="function"==typeof IntersectionObserver,animationFrame:f=!1}=n,h=eo(e),p=l||u?[...h?er(h):[],...er(t)]:[];p.forEach(e=>{l&&e.addEventListener("scroll",r,{passive:!0}),u&&e.addEventListener("resize",r)});let g=h&&d?function(e,t){let r,n=null,a=V(e);function l(){var e;clearTimeout(r),null==(e=n)||e.disconnect(),n=null}return!function u(c,d){void 0===c&&(c=!1),void 0===d&&(d=1),l();let f=e.getBoundingClientRect(),{left:h,top:p,width:g,height:v}=f;if(c||t(),!g||!v)return;let m=s(p),b=s(a.clientWidth-(h+g)),y={rootMargin:-m+"px "+-b+"px "+-s(a.clientHeight-(p+v))+"px "+-s(h)+"px",threshold:o(0,i(1,d))||1},x=!0;function w(t){let n=t[0].intersectionRatio;if(n!==d){if(!x)return u();n?u(!1,n):r=setTimeout(()=>{u(!1,1e-7)},1e3)}1!==n||ey(f,e.getBoundingClientRect())||u(),x=!1}try{n=new IntersectionObserver(w,{...y,root:a.ownerDocument})}catch(e){n=new IntersectionObserver(w,y)}n.observe(e)}(!0),l}(h,r):null,v=-1,m=null;c&&(m=new ResizeObserver(e=>{let[n]=e;n&&n.target===h&&m&&(m.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var e;null==(e=m)||e.observe(t)})),r()}),h&&!f&&m.observe(h),m.observe(t));let b=f?eu(e):null;return f&&function t(){let n=eu(e);b&&!ey(b,n)&&r(),b=n,a=requestAnimationFrame(t)}(),r(),()=>{var e;p.forEach(e=>{l&&e.removeEventListener("scroll",r),u&&e.removeEventListener("resize",r)}),null==g||g(),null==(e=m)||e.disconnect(),m=null,f&&cancelAnimationFrame(a)}}(C,t,B,U):ew.lQ;return B(),()=>{H?.(),j?.({placed:!1})}}(r,n,a))})),()=>{u.forEach(e=>e?.())}}var eR={bottom:"rotate(45deg)",left:"rotate(135deg)",top:"rotate(225deg)",right:"rotate(315deg)"};function eA(e={}){let{placement:t,sameWidth:r,fitViewport:n,strategy:i="absolute"}=e;return{arrow:{position:"absolute",width:ek.arrowSize.reference,height:ek.arrowSize.reference,[ek.arrowSizeHalf.variable]:`calc(${ek.arrowSize.reference} / 2)`,[ek.arrowOffset.variable]:`calc(${ek.arrowSizeHalf.reference} * -1)`},arrowTip:{transform:t?eR[t.split("-")[0]]:void 0,background:ek.arrowBg.reference,top:"0",left:"0",width:"100%",height:"100%",position:"absolute",zIndex:"inherit"},floating:{position:i,isolation:"isolate",minWidth:r?void 0:"max-content",width:r?"var(--reference-width)":void 0,maxWidth:n?"var(--available-width)":void 0,maxHeight:n?"var(--available-height)":void 0,pointerEvents:t?void 0:"none",top:"0px",left:"0px",transform:t?"translate3d(var(--x), var(--y), 0)":"translate3d(0, -100vh, 0)",zIndex:"var(--z-index)"}}}},68881:(e,t,r)=>{var n=r(60663);e.exports=function(e){var t,r={},i=[];return n.each(e.nodes(),function(o){t=[],function i(o){n.has(r,o)||(r[o]=!0,t.push(o),n.each(e.successors(o),i),n.each(e.predecessors(o),i))}(o),t.length&&i.push(t)}),i}},69446:(e,t,r)=>{"use strict";r.d(t,{Gv:()=>n,Kg:()=>i,Tn:()=>o});let n=e=>null!=e&&"object"==typeof e&&!Array.isArray(e),i=e=>"string"==typeof e,o=e=>"function"==typeof e},69604:(e,t,r)=>{e.exports=r(5182)(Object,"create")},69635:(e,t,r)=>{var n=r(96980),i=r(79910);e.exports=function(e){return i(e)&&n(e)}},69695:(e,t,r)=>{var n=r(17478),i=r(45387),o=r(96980),a=r(24271),s=r(12855);e.exports=function(e){if(null==e)return 0;if(o(e))return a(e)?s(e):e.length;var t=i(e);return"[object Map]"==t||"[object Set]"==t?e.size:n(e).length}},69712:(e,t,r)=>{var n=r(82106),i=r(43576),o=r(97643),a=r(81563);e.exports=function(e,t){return(a(e)?n:i)(e,o(t,3))}},69792:(e,t,r)=>{"use strict";var n=r(48613),i=r(26380),o=r(26955).positionX;e.exports=function(e){var t,r,a,s;t=e=i.asNonCompoundGraph(e),r=i.buildLayerMatrix(t),a=t.graph().ranksep,s=0,n.forEach(r,function(e){var r=n.max(n.map(e,function(e){return t.node(e).height}));n.forEach(e,function(e){t.node(e).y=s+r/2}),s+=r+a}),n.forEach(o(e),function(t,r){e.node(r).x=t})}},70505:(e,t,r)=>{"use strict";r.d(t,{s:()=>n});let n=e=>e?"":void 0},70540:(e,t,r)=>{var n=r(89252),i=r(86622);e.exports=function(e){return null==e?[]:n(e,i(e))}},70545:(e,t,r)=>{var n=r(18230);e.exports=function(e,t,r){for(var i=-1,o=e.length;++i<o;){var a=e[i],s=t(a);if(null!=s&&(void 0===l?s==s&&!n(s):r(s,l)))var l=s,u=a}return u}},70568:(e,t,r)=>{"use strict";r.d(t,{_B:()=>p,zl:()=>d});var n=r(76808),i=r(75794),o=r(80715),a=r(86890),s=r(41562);r(87259);var l=void 0!==globalThis.document?o.useLayoutEffect:o.useEffect;function u(e){var t,r;let n=null!=(t=e().value)?t:e().defaultValue,s=null!=(r=e().isEqual)?r:Object.is,[u]=(0,o.useState)(n),[c,d]=(0,o.useState)(u),f=void 0!==e().value,h=(0,o.useRef)(c);h.current=f?e().value:c;let p=(0,o.useRef)(h.current);return l(()=>{p.current=h.current},[c,e().value]),{initial:u,ref:h,get:function(){return f?e().value:c},set(t){(e().sync?a.flushSync:i.D_)(()=>(t=>{let r=p.current,n=(0,i.Tn)(t)?t(r):t;if(e().debug&&console.log("[bindable > ".concat(e().debug,"] setValue"),{next:n,prev:r}),f||d(n),!s(n,r)){var o,a;null==(o=(a=e()).onChange)||o.call(a,n,r)}})(t))},invoke(t,r){var n,i;null==(n=(i=e()).onChange)||n.call(i,t,r)},hash(t){var r,n,i;return null!=(i=null==(r=(n=e()).hash)?void 0:r.call(n,t))?i:String(t)}}}u.cleanup=e=>{(0,o.useEffect)(()=>e,[])},u.ref=e=>{let t=(0,o.useRef)(e);return{get:()=>t.current,set:e=>{t.current=e}}};var c=(e,t)=>{let r=(0,o.useRef)(!1),n=(0,o.useRef)(!1);(0,o.useEffect)(()=>{if(r.current&&n.current)return t();n.current=!0},[...(null!=e?e:[]).map(e=>"function"==typeof e?e():e)]),(0,o.useEffect)(()=>(r.current=!0,()=>{r.current=!1}),[])};function d(e){var t,r,s,d,p,g;let v=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},m=(0,o.useMemo)(()=>{let{id:e,ids:t,getRootNode:r}=v;return(0,n.Ds)({id:e,ids:t,getRootNode:r})},[v]),b=function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];e.debug&&console.log(...r)},y=function(e){let t=f(e);return function(e){return t.current[e]}}(null!=(p=null==(t=e.props)?void 0:t.call(e,{props:(0,i.oE)(v),scope:m}))?p:v),x=f(null==(r=e.context)?void 0:r.call(e,{prop:y,bindable:u,scope:m,flush:h,getContext:()=>w,getComputed:()=>M,getRefs:()=>_,getEvent:()=>O()})),w={get(e){var t;return null==(t=x.current)?void 0:t[e].ref.current},set(e,t){var r;null==(r=x.current)||r[e].set(t)},initial(e){var t;return null==(t=x.current)?void 0:t[e].initial},hash(e){var t,r;let n=null==(t=x.current)?void 0:t[e].get();return null==(r=x.current)?void 0:r[e].hash(n)}},S=(0,o.useRef)(new Map),E=(0,o.useRef)(null),k=(0,o.useRef)(null),C=(0,o.useRef)({type:""}),O=()=>({...C.current,current:()=>C.current,previous:()=>k.current}),I=()=>({...L,matches(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.includes(L.ref.current)},hasTag(t){var r,n;return!!(null==(n=e.states[L.ref.current])||null==(r=n.tags)?void 0:r.includes(t))}}),_=function(e){let t=(0,o.useRef)(e);return{get:e=>t.current[e],set(e,r){t.current[e]=r}}}(null!=(g=null==(s=e.refs)?void 0:s.call(e,{prop:y,context:w}))?g:{}),T=()=>({state:I(),context:w,event:O(),prop:y,send:F,action:P,guard:R,track:c,refs:_,computed:M,flush:h,scope:m,choose:N}),P=t=>{let r=(0,i.Tn)(t)?t(T()):t;if(r)for(let t of r.map(t=>{var r,n;let o=null==(n=e.implementations)||null==(r=n.actions)?void 0:r[t];return o||(0,i.R8)('[zag-js] No implementation found for action "'.concat(JSON.stringify(t),'"')),o}))null==t||t(T())},R=t=>{var r,n;return(0,i.Tn)(t)?t(T()):null==(n=e.implementations)||null==(r=n.guards)?void 0:r[t](T())},A=t=>{let r=(0,i.Tn)(t)?t(T()):t;if(!r)return;let n=r.map(t=>{var r,n;let o=null==(n=e.implementations)||null==(r=n.effects)?void 0:r[t];return o||(0,i.R8)('[zag-js] No implementation found for effect "'.concat(JSON.stringify(t),'"')),o}),o=[];for(let e of n){let t=null==e?void 0:e(T());t&&o.push(t)}return()=>o.forEach(e=>null==e?void 0:e())},N=e=>(0,i.$r)(e).find(e=>{let t=!e.guard;return(0,i.Kg)(e.guard)?t=!!R(e.guard):(0,i.Tn)(e.guard)&&(t=e.guard(T())),t}),M=t=>((0,i.D8)(e.computed,()=>"[zag-js] No computed object found on machine"),(0,e.computed[t])({context:w,event:O(),prop:y,refs:_,scope:m,computed:M})),L=u(()=>({defaultValue:e.initialState({prop:y}),onChange(t,r){var i,o,a,s;if(r){let e=S.current.get(r);null==e||e(),S.current.delete(r)}r&&P(null==(s=e.states[r])?void 0:s.exit),P(null==(i=E.current)?void 0:i.actions);let l=A(null==(o=e.states[t])?void 0:o.effects);if(l&&S.current.set(t,l),r===n.h2){P(e.entry);let t=A(e.effects);t&&S.current.set(n.h2,t)}P(null==(a=e.states[t])?void 0:a.entry)}})),V=(0,o.useRef)(void 0),D=(0,o.useRef)(n.Aj.NotStarted);l(()=>{queueMicrotask(()=>{var e;let t=D.current===n.Aj.Started;D.current=n.Aj.Started,b(t?"rehydrating...":"initializing...");let r=null!=(e=V.current)?e:L.initial;L.invoke(r,t?L.get():n.h2)});let t=S.current,r=L.ref.current;return()=>{b("unmounting..."),V.current=r,D.current=n.Aj.Stopped,t.forEach(e=>null==e?void 0:e()),S.current=new Map,E.current=null,queueMicrotask(()=>{P(e.exit)})}},[]);let F=t=>{queueMicrotask(()=>{var r,i,o,s,l;if(D.current!==n.Aj.Started)return;k.current=C.current,C.current=t;let u="ref"in L?L.ref.current:L.get(),c=N(null!=(o=null==(r=e.states[u].on)?void 0:r[t.type])?o:null==(i=e.on)?void 0:i[t.type]);if(!c)return;E.current=c;let d=null!=(s=c.target)?s:u;b("transition",t.type,c.target||u,"(".concat(c.actions,")"));let f=d!==u;f?(0,a.flushSync)(()=>L.set(d)):c.reenter&&!f?L.invoke(u,u):P(null!=(l=c.actions)?l:[])})};return null==(d=e.watch)||d.call(e,T()),{state:I(),send:F,context:w,prop:y,scope:m,refs:_,computed:M,event:O(),getStatus:()=>D.current}}function f(e){let t=(0,o.useRef)(e);return t.current=e,t}function h(e){queueMicrotask(()=>{(0,a.flushSync)(()=>e())})}var p=(0,s._)(e=>e)},71100:e=>{!function(){"use strict";var t={114:function(e){function t(e){if("string"!=typeof e)throw TypeError("Path must be a string. Received "+JSON.stringify(e))}function r(e,t){for(var r,n="",i=0,o=-1,a=0,s=0;s<=e.length;++s){if(s<e.length)r=e.charCodeAt(s);else if(47===r)break;else r=47;if(47===r){if(o===s-1||1===a);else if(o!==s-1&&2===a){if(n.length<2||2!==i||46!==n.charCodeAt(n.length-1)||46!==n.charCodeAt(n.length-2)){if(n.length>2){var l=n.lastIndexOf("/");if(l!==n.length-1){-1===l?(n="",i=0):i=(n=n.slice(0,l)).length-1-n.lastIndexOf("/"),o=s,a=0;continue}}else if(2===n.length||1===n.length){n="",i=0,o=s,a=0;continue}}t&&(n.length>0?n+="/..":n="..",i=2)}else n.length>0?n+="/"+e.slice(o+1,s):n=e.slice(o+1,s),i=s-o-1;o=s,a=0}else 46===r&&-1!==a?++a:a=-1}return n}var n={resolve:function(){for(var e,n,i="",o=!1,a=arguments.length-1;a>=-1&&!o;a--)a>=0?n=arguments[a]:(void 0===e&&(e=""),n=e),t(n),0!==n.length&&(i=n+"/"+i,o=47===n.charCodeAt(0));if(i=r(i,!o),o)if(i.length>0)return"/"+i;else return"/";return i.length>0?i:"."},normalize:function(e){if(t(e),0===e.length)return".";var n=47===e.charCodeAt(0),i=47===e.charCodeAt(e.length-1);return(0!==(e=r(e,!n)).length||n||(e="."),e.length>0&&i&&(e+="/"),n)?"/"+e:e},isAbsolute:function(e){return t(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0==arguments.length)return".";for(var e,r=0;r<arguments.length;++r){var i=arguments[r];t(i),i.length>0&&(void 0===e?e=i:e+="/"+i)}return void 0===e?".":n.normalize(e)},relative:function(e,r){if(t(e),t(r),e===r||(e=n.resolve(e))===(r=n.resolve(r)))return"";for(var i=1;i<e.length&&47===e.charCodeAt(i);++i);for(var o=e.length,a=o-i,s=1;s<r.length&&47===r.charCodeAt(s);++s);for(var l=r.length-s,u=a<l?a:l,c=-1,d=0;d<=u;++d){if(d===u){if(l>u){if(47===r.charCodeAt(s+d))return r.slice(s+d+1);else if(0===d)return r.slice(s+d)}else a>u&&(47===e.charCodeAt(i+d)?c=d:0===d&&(c=0));break}var f=e.charCodeAt(i+d);if(f!==r.charCodeAt(s+d))break;47===f&&(c=d)}var h="";for(d=i+c+1;d<=o;++d)(d===o||47===e.charCodeAt(d))&&(0===h.length?h+="..":h+="/..");return h.length>0?h+r.slice(s+c):(s+=c,47===r.charCodeAt(s)&&++s,r.slice(s))},_makeLong:function(e){return e},dirname:function(e){if(t(e),0===e.length)return".";for(var r=e.charCodeAt(0),n=47===r,i=-1,o=!0,a=e.length-1;a>=1;--a)if(47===(r=e.charCodeAt(a))){if(!o){i=a;break}}else o=!1;return -1===i?n?"/":".":n&&1===i?"//":e.slice(0,i)},basename:function(e,r){if(void 0!==r&&"string"!=typeof r)throw TypeError('"ext" argument must be a string');t(e);var n,i=0,o=-1,a=!0;if(void 0!==r&&r.length>0&&r.length<=e.length){if(r.length===e.length&&r===e)return"";var s=r.length-1,l=-1;for(n=e.length-1;n>=0;--n){var u=e.charCodeAt(n);if(47===u){if(!a){i=n+1;break}}else -1===l&&(a=!1,l=n+1),s>=0&&(u===r.charCodeAt(s)?-1==--s&&(o=n):(s=-1,o=l))}return i===o?o=l:-1===o&&(o=e.length),e.slice(i,o)}for(n=e.length-1;n>=0;--n)if(47===e.charCodeAt(n)){if(!a){i=n+1;break}}else -1===o&&(a=!1,o=n+1);return -1===o?"":e.slice(i,o)},extname:function(e){t(e);for(var r=-1,n=0,i=-1,o=!0,a=0,s=e.length-1;s>=0;--s){var l=e.charCodeAt(s);if(47===l){if(!o){n=s+1;break}continue}-1===i&&(o=!1,i=s+1),46===l?-1===r?r=s:1!==a&&(a=1):-1!==r&&(a=-1)}return -1===r||-1===i||0===a||1===a&&r===i-1&&r===n+1?"":e.slice(r,i)},format:function(e){var t,r;if(null===e||"object"!=typeof e)throw TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return t=e.dir||e.root,r=e.base||(e.name||"")+(e.ext||""),t?t===e.root?t+r:t+"/"+r:r},parse:function(e){t(e);var r,n={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return n;var i=e.charCodeAt(0),o=47===i;o?(n.root="/",r=1):r=0;for(var a=-1,s=0,l=-1,u=!0,c=e.length-1,d=0;c>=r;--c){if(47===(i=e.charCodeAt(c))){if(!u){s=c+1;break}continue}-1===l&&(u=!1,l=c+1),46===i?-1===a?a=c:1!==d&&(d=1):-1!==a&&(d=-1)}return -1===a||-1===l||0===d||1===d&&a===l-1&&a===s+1?-1!==l&&(0===s&&o?n.base=n.name=e.slice(1,l):n.base=n.name=e.slice(s,l)):(0===s&&o?(n.name=e.slice(1,a),n.base=e.slice(1,l)):(n.name=e.slice(s,a),n.base=e.slice(s,l)),n.ext=e.slice(a,l)),s>0?n.dir=e.slice(0,s-1):o&&(n.dir="/"),n},sep:"/",delimiter:":",win32:null,posix:null};n.posix=n,e.exports=n}},r={};function n(e){var i=r[e];if(void 0!==i)return i.exports;var o=r[e]={exports:{}},a=!0;try{t[e](o,o.exports,n),a=!1}finally{a&&delete r[e]}return o.exports}n.ab="//",e.exports=n(114)}()},71222:(e,t,r)=>{var n=r(32230),i=r(94193),o=r(18230),a=0/0,s=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return a;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=n(e);var r=l.test(e);return r||u.test(e)?c(e.slice(2),r?2:8):s.test(e)?a:+e}},71444:(e,t,r)=>{var n=r(93913);e.exports=function(e,t,r){"__proto__"==t&&n?n(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}},71487:(e,t,r)=>{var n=r(743),i=r(97643),o=r(43839),a=Math.max;e.exports=function(e,t,r){var s=null==e?0:e.length;if(!s)return -1;var l=null==r?0:o(r);return l<0&&(l=a(s+l,0)),n(e,i(t,3),l)}},71513:(e,t,r)=>{"use strict";r.d(t,{B:()=>o,s:()=>a});var n=r(69446);let i=e=>null!=e;function o(e,t,r={}){let{stop:a,getKey:s}=r;return function e(r,o=[]){if((0,n.Gv)(r)||Array.isArray(r)){let n={};for(let[l,u]of Object.entries(r)){let c=s?.(l,u)??l,d=[...o,c];if(a?.(r,d))return t(r,o);let f=e(u,d);i(f)&&(n[c]=f)}return n}return t(r,o)}(e)}function a(e,t){return Array.isArray(e)?e.map(e=>i(e)?t(e):e):(0,n.Gv)(e)?o(e,e=>t(e)):i(e)?t(e):e}},71680:(e,t,r)=>{var n=r(52420),i=r(6426),o=r(45136),a=r(96819),s=r(80667),l=r(92457),u=n?n.prototype:void 0,c=u?u.valueOf:void 0;e.exports=function(e,t,r,n,u,d,f){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)break;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":if(e.byteLength!=t.byteLength||!d(new i(e),new i(t)))break;return!0;case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var h=s;case"[object Set]":var p=1&n;if(h||(h=l),e.size!=t.size&&!p)break;var g=f.get(e);if(g)return g==t;n|=2,f.set(e,t);var v=a(h(e),h(t),n,u,d,f);return f.delete(e),v;case"[object Symbol]":if(c)return c.call(e)==c.call(t)}return!1}},72059:(e,t,r)=>{"use strict";r.d(t,{t1:()=>u,yP:()=>c});var n,i=r(80715),o=r(44474);let a="label";function s(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function l(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a,n=[];e.datasets=t.map(t=>{let i=e.datasets.find(e=>e[r]===t[r]);return!i||!t.data||n.includes(i)?{...t}:(n.push(i),Object.assign(i,t),i)})}let u=(0,i.forwardRef)(function(e,t){let{height:r=150,width:n=300,redraw:u=!1,datasetIdKey:c,type:d,data:f,options:h,plugins:p=[],fallbackContent:g,updateMode:v,...m}=e,b=(0,i.useRef)(null),y=(0,i.useRef)(null),x=()=>{b.current&&(y.current=new o.t1(b.current,{type:d,data:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a,r={labels:[],datasets:[]};return r.labels=e.labels,l(r,e.datasets,t),r}(f,c),options:h&&{...h},plugins:p}),s(t,y.current))},w=()=>{s(t,null),y.current&&(y.current.destroy(),y.current=null)};return(0,i.useEffect)(()=>{!u&&y.current&&h&&function(e,t){let r=e.options;r&&t&&Object.assign(r,t)}(y.current,h)},[u,h]),(0,i.useEffect)(()=>{!u&&y.current&&(y.current.config.data.labels=f.labels)},[u,f.labels]),(0,i.useEffect)(()=>{!u&&y.current&&f.datasets&&l(y.current.config.data,f.datasets,c)},[u,f.datasets]),(0,i.useEffect)(()=>{y.current&&(u?(w(),setTimeout(x)):y.current.update(v))},[u,h,f.labels,f.datasets,v]),(0,i.useEffect)(()=>{y.current&&(w(),setTimeout(x))},[d]),(0,i.useEffect)(()=>(x(),()=>w()),[]),i.createElement("canvas",{ref:b,role:"img",height:r,width:n,...m},g)}),c=(n=o.A6,o.t1.register(n),(0,i.forwardRef)((e,t)=>i.createElement(u,{...e,ref:t,type:"bar"})))},72348:(e,t,r)=>{"use strict";r.d(t,{m:()=>o});var n=r(80715),i=r(78513);function o(e){let{key:t,recipe:r}=e,o=(0,i.$)();return(0,n.useMemo)(()=>{let e=r||(null!=t?o.getRecipe(t):{});return o.cva(structuredClone(e))},[t,r,o])}},72475:e=>{e.exports=function(e,t){return function(r){return e(t(r))}}},72657:(e,t,r)=>{var n=r(17231);e.exports=function(e,t){var r=this.__data__,i=n(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}},72793:(e,t,r)=>{var n=r(48613),i=r(26380);function o(e,t,r){for(var i;t.length&&(i=n.last(t)).i<=r;)t.pop(),e.push(i.vs),r++;return r}e.exports=function(e,t){var r,a=i.partition(e,function(e){return n.has(e,"barycenter")}),s=a.lhs,l=n.sortBy(a.rhs,function(e){return-e.i}),u=[],c=0,d=0,f=0;s.sort((r=!!t,function(e,t){return e.barycenter<t.barycenter?-1:e.barycenter>t.barycenter?1:r?t.i-e.i:e.i-t.i})),f=o(u,l,f),n.forEach(s,function(e){f+=e.vs.length,u.push(e.vs),c+=e.barycenter*e.weight,d+=e.weight,f=o(u,l,f)});var h={vs:n.flatten(u,!0)};return d&&(h.barycenter=c/d,h.weight=d),h}},72963:(e,t,r)=>{"use strict";r.d(t,{x:()=>d});var n=r(77534),i=r(76808),o=r(41562),a=(0,i.Op)({props:({props:e})=>({...e,present:!!e.present}),initialState:({prop:e})=>e("present")?"mounted":"unmounted",refs:()=>({node:null,styles:null}),context:({bindable:e})=>({unmountAnimationName:e(()=>({defaultValue:null})),prevAnimationName:e(()=>({defaultValue:null})),present:e(()=>({defaultValue:!1})),initial:e(()=>({sync:!0,defaultValue:!1}))}),exit:["clearInitial","cleanupNode"],watch({track:e,prop:t,send:r}){e([()=>t("present")],()=>{r({type:"PRESENCE.CHANGED"})})},on:{"NODE.SET":{actions:["setupNode"]},"PRESENCE.CHANGED":{actions:["setInitial","syncPresence"]}},states:{mounted:{on:{UNMOUNT:{target:"unmounted",actions:["clearPrevAnimationName","invokeOnExitComplete"]},"UNMOUNT.SUSPEND":{target:"unmountSuspended"}}},unmountSuspended:{effects:["trackAnimationEvents"],on:{MOUNT:{target:"mounted",actions:["setPrevAnimationName"]},UNMOUNT:{target:"unmounted",actions:["clearPrevAnimationName","invokeOnExitComplete"]}}},unmounted:{on:{MOUNT:{target:"mounted",actions:["setPrevAnimationName"]}}}},implementations:{actions:{setInitial:({context:e})=>{e.get("initial")||queueMicrotask(()=>{e.set("initial",!0)})},clearInitial:({context:e})=>{e.set("initial",!1)},invokeOnExitComplete:({prop:e})=>{e("onExitComplete")?.()},setupNode:({refs:e,event:t})=>{e.get("node")!==t.node&&(e.set("node",t.node),e.set("styles",(0,n.L9)(t.node)))},cleanupNode:({refs:e})=>{e.set("node",null),e.set("styles",null)},syncPresence:({context:e,refs:t,send:r,prop:i})=>{let o=i("present");if(o)return r({type:"MOUNT",src:"presence.changed"});let a=t.get("node");if(!o&&a?.ownerDocument.visibilityState==="hidden")return r({type:"UNMOUNT",src:"visibilitychange"});(0,n.er)(()=>{let n=s(t.get("styles"));e.set("unmountAnimationName",n),"none"===n||n===e.get("prevAnimationName")||t.get("styles")?.display==="none"||t.get("styles")?.animationDuration==="0s"?r({type:"UNMOUNT",src:"presence.changed"}):r({type:"UNMOUNT.SUSPEND"})})},setPrevAnimationName:({context:e,refs:t})=>{(0,n.er)(()=>{e.set("prevAnimationName",s(t.get("styles")))})},clearPrevAnimationName:({context:e})=>{e.set("prevAnimationName",null)}},effects:{trackAnimationEvents:({context:e,refs:t,send:r})=>{let i=t.get("node");if(!i)return;let o=r=>{(r.composedPath?.()?.[0]??r.target)===i&&e.set("prevAnimationName",s(t.get("styles")))},a=o=>{let a=s(t.get("styles"));(0,n.wt)(o)===i&&a===e.get("unmountAnimationName")&&r({type:"UNMOUNT",src:"animationend"})};i.addEventListener("animationstart",o),i.addEventListener("animationcancel",a),i.addEventListener("animationend",a);let l=(0,n.eC)(i,{animationFillMode:"forwards"});return()=>{i.removeEventListener("animationstart",o),i.removeEventListener("animationcancel",a),i.removeEventListener("animationend",a),(0,n.dY)(()=>l())}}}}});function s(e){return e?.animationName||"none"}(0,o.x)()(["onExitComplete","present","immediate"]);var l=r(70568),u=r(80715),c=r(42805);let d=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{lazyMount:t,unmountOnExit:r,present:n,skipAnimationOnMount:i=!1,...o}=e,s=(0,u.useRef)(!1),d={...o,present:n,onExitComplete:(0,c._)(e.onExitComplete)},f=function(e,t){let{state:r,send:n,context:i}=e,o=r.matches("mounted","unmountSuspended");return{skip:!i.get("initial"),present:o,setNode(e){e&&n({type:"NODE.SET",node:e})},unmount(){n({type:"UNMOUNT"})}}}((0,l.zl)(a,d),l._B);f.present&&(s.current=!0);let h=!f.present&&!s.current&&t||r&&!f.present&&s.current;return{ref:f.setNode,getPresenceProps:()=>({"data-state":f.skip&&i?void 0:n?"open":"closed",hidden:!f.present}),present:f.present,unmounted:h}}},73295:(e,t,r)=>{"use strict";r.d(t,{I:()=>x});var n=r(18023),i=r(49440),o=r(4072),a=r(67553),s=r(32047),l=r(11485),u=r(51714),c=class extends a.Q{constructor(e,t){super(),this.options=t,this.#n=e,this.#p=null,this.#g=(0,s.T)(),this.bindMethods(),this.setOptions(t)}#n;#v=void 0;#m=void 0;#b=void 0;#y;#x;#g;#p;#w;#S;#E;#k;#C;#O;#I=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#v.addObserver(this),d(this.#v,this.options)?this.#_():this.updateResult(),this.#T())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return f(this.#v,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return f(this.#v,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#P(),this.#R(),this.#v.removeObserver(this)}setOptions(e){let t=this.options,r=this.#v;if(this.options=this.#n.defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof(0,l.Eh)(this.options.enabled,this.#v))throw Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#A(),this.#v.setOptions(this.options),t._defaulted&&!(0,l.f8)(this.options,t)&&this.#n.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#v,observer:this});let n=this.hasListeners();n&&h(this.#v,r,this.options,t)&&this.#_(),this.updateResult(),n&&(this.#v!==r||(0,l.Eh)(this.options.enabled,this.#v)!==(0,l.Eh)(t.enabled,this.#v)||(0,l.d2)(this.options.staleTime,this.#v)!==(0,l.d2)(t.staleTime,this.#v))&&this.#N();let i=this.#M();n&&(this.#v!==r||(0,l.Eh)(this.options.enabled,this.#v)!==(0,l.Eh)(t.enabled,this.#v)||i!==this.#O)&&this.#L(i)}getOptimisticResult(e){var t,r;let n=this.#n.getQueryCache().build(this.#n,e),i=this.createResult(n,e);return t=this,r=i,(0,l.f8)(t.getCurrentResult(),r)||(this.#b=i,this.#x=this.options,this.#y=this.#v.state),i}getCurrentResult(){return this.#b}trackResult(e,t){return new Proxy(e,{get:(e,r)=>(this.trackProp(r),t?.(r),"promise"!==r||this.options.experimental_prefetchInRender||"pending"!==this.#g.status||this.#g.reject(Error("experimental_prefetchInRender feature flag is not enabled")),Reflect.get(e,r))})}trackProp(e){this.#I.add(e)}getCurrentQuery(){return this.#v}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#n.defaultQueryOptions(e),r=this.#n.getQueryCache().build(this.#n,t);return r.fetch().then(()=>this.createResult(r,t))}fetch(e){return this.#_({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#b))}#_(e){this.#A();let t=this.#v.fetch(this.options,e);return e?.throwOnError||(t=t.catch(l.lQ)),t}#N(){this.#P();let e=(0,l.d2)(this.options.staleTime,this.#v);if(l.S$||this.#b.isStale||!(0,l.gn)(e))return;let t=(0,l.j3)(this.#b.dataUpdatedAt,e);this.#k=u.zs.setTimeout(()=>{this.#b.isStale||this.updateResult()},t+1)}#M(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#v):this.options.refetchInterval)??!1}#L(e){this.#R(),this.#O=e,!l.S$&&!1!==(0,l.Eh)(this.options.enabled,this.#v)&&(0,l.gn)(this.#O)&&0!==this.#O&&(this.#C=u.zs.setInterval(()=>{(this.options.refetchIntervalInBackground||n.m.isFocused())&&this.#_()},this.#O))}#T(){this.#N(),this.#L(this.#M())}#P(){this.#k&&(u.zs.clearTimeout(this.#k),this.#k=void 0)}#R(){this.#C&&(u.zs.clearInterval(this.#C),this.#C=void 0)}createResult(e,t){let r,n=this.#v,i=this.options,a=this.#b,u=this.#y,c=this.#x,f=e!==n?e.state:this.#m,{state:g}=e,v={...g},m=!1;if(t._optimisticResults){let r=this.hasListeners(),a=!r&&d(e,t),s=r&&h(e,n,t,i);(a||s)&&(v={...v,...(0,o.k)(g.data,e.options)}),"isRestoring"===t._optimisticResults&&(v.fetchStatus="idle")}let{error:b,errorUpdatedAt:y,status:x}=v;r=v.data;let w=!1;if(void 0!==t.placeholderData&&void 0===r&&"pending"===x){let e;a?.isPlaceholderData&&t.placeholderData===c?.placeholderData?(e=a.data,w=!0):e="function"==typeof t.placeholderData?t.placeholderData(this.#E?.state.data,this.#E):t.placeholderData,void 0!==e&&(x="success",r=(0,l.pl)(a?.data,e,t),m=!0)}if(t.select&&void 0!==r&&!w)if(a&&r===u?.data&&t.select===this.#w)r=this.#S;else try{this.#w=t.select,r=t.select(r),r=(0,l.pl)(a?.data,r,t),this.#S=r,this.#p=null}catch(e){this.#p=e}this.#p&&(b=this.#p,r=this.#S,y=Date.now(),x="error");let S="fetching"===v.fetchStatus,E="pending"===x,k="error"===x,C=E&&S,O=void 0!==r,I={status:x,fetchStatus:v.fetchStatus,isPending:E,isSuccess:"success"===x,isError:k,isInitialLoading:C,isLoading:C,data:r,dataUpdatedAt:v.dataUpdatedAt,error:b,errorUpdatedAt:y,failureCount:v.fetchFailureCount,failureReason:v.fetchFailureReason,errorUpdateCount:v.errorUpdateCount,isFetched:v.dataUpdateCount>0||v.errorUpdateCount>0,isFetchedAfterMount:v.dataUpdateCount>f.dataUpdateCount||v.errorUpdateCount>f.errorUpdateCount,isFetching:S,isRefetching:S&&!E,isLoadingError:k&&!O,isPaused:"paused"===v.fetchStatus,isPlaceholderData:m,isRefetchError:k&&O,isStale:p(e,t),refetch:this.refetch,promise:this.#g,isEnabled:!1!==(0,l.Eh)(t.enabled,e)};if(this.options.experimental_prefetchInRender){let t=e=>{"error"===I.status?e.reject(I.error):void 0!==I.data&&e.resolve(I.data)},r=()=>{t(this.#g=I.promise=(0,s.T)())},i=this.#g;switch(i.status){case"pending":e.queryHash===n.queryHash&&t(i);break;case"fulfilled":("error"===I.status||I.data!==i.value)&&r();break;case"rejected":("error"!==I.status||I.error!==i.reason)&&r()}}return I}updateResult(){let e=this.#b,t=this.createResult(this.#v,this.options);if(this.#y=this.#v.state,this.#x=this.options,void 0!==this.#y.data&&(this.#E=this.#v),(0,l.f8)(t,e))return;this.#b=t;let r=()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,r="function"==typeof t?t():t;if("all"===r||!r&&!this.#I.size)return!0;let n=new Set(r??this.#I);return this.options.throwOnError&&n.add("error"),Object.keys(this.#b).some(t=>this.#b[t]!==e[t]&&n.has(t))};this.#V({listeners:r()})}#A(){let e=this.#n.getQueryCache().build(this.#n,this.options);if(e===this.#v)return;let t=this.#v;this.#v=e,this.#m=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#T()}#V(e){i.jG.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#b)}),this.#n.getQueryCache().notify({query:this.#v,type:"observerResultsUpdated"})})}};function d(e,t){return!1!==(0,l.Eh)(t.enabled,e)&&void 0===e.state.data&&("error"!==e.state.status||!1!==t.retryOnMount)||void 0!==e.state.data&&f(e,t,t.refetchOnMount)}function f(e,t,r){if(!1!==(0,l.Eh)(t.enabled,e)&&"static"!==(0,l.d2)(t.staleTime,e)){let n="function"==typeof r?r(e):r;return"always"===n||!1!==n&&p(e,t)}return!1}function h(e,t,r,n){return(e!==t||!1===(0,l.Eh)(n.enabled,e))&&(!r.suspense||"error"!==e.state.status)&&p(e,r)}function p(e,t){return!1!==(0,l.Eh)(t.enabled,e)&&e.isStaleByTime((0,l.d2)(t.staleTime,e))}var g=r(80715),v=r(86942);r(87259);var m=g.createContext(function(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}()),b=g.createContext(!1);b.Provider;var y=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function x(e,t){return function(e,t,r){var n,o,a,s,u;let c=g.useContext(b),d=g.useContext(m),f=(0,v.jE)(r),h=f.defaultQueryOptions(e);if(null==(o=f.getDefaultOptions().queries)||null==(n=o._experimental_beforeQuery)||n.call(o,h),h._optimisticResults=c?"isRestoring":"optimistic",h.suspense){let e=e=>"static"===e?e:Math.max(e??1e3,1e3),t=h.staleTime;h.staleTime="function"==typeof t?(...r)=>e(t(...r)):e(t),"number"==typeof h.gcTime&&(h.gcTime=Math.max(h.gcTime,1e3))}(h.suspense||h.throwOnError||h.experimental_prefetchInRender)&&!d.isReset()&&(h.retryOnMount=!1),g.useEffect(()=>{d.clearReset()},[d]);let p=!f.getQueryCache().get(h.queryHash),[x]=g.useState(()=>new t(f,h)),w=x.getOptimisticResult(h),S=!c&&!1!==e.subscribed;if(g.useSyncExternalStore(g.useCallback(e=>{let t=S?x.subscribe(i.jG.batchCalls(e)):l.lQ;return x.updateResult(),t},[x,S]),()=>x.getCurrentResult(),()=>x.getCurrentResult()),g.useEffect(()=>{x.setOptions(h)},[h,x]),h?.suspense&&w.isPending)throw y(h,x,d);if((e=>{let{result:t,errorResetBoundary:r,throwOnError:n,query:i,suspense:o}=e;return t.isError&&!r.isReset()&&!t.isFetching&&i&&(o&&void 0===t.data||(0,l.GU)(n,[t.error,i]))})({result:w,errorResetBoundary:d,throwOnError:h.throwOnError,query:f.getQueryCache().get(h.queryHash),suspense:h.suspense}))throw w.error;if(null==(s=f.getDefaultOptions().queries)||null==(a=s._experimental_afterQuery)||a.call(s,h,w),h.experimental_prefetchInRender&&!l.S$&&w.isLoading&&w.isFetching&&!c){let e=p?y(h,x,d):null==(u=f.getQueryCache().get(h.queryHash))?void 0:u.promise;null==e||e.catch(l.lQ).finally(()=>{x.updateResult()})}return h.notifyOnChangeProps?w:x.trackResult(w)}(e,c,t)}},73311:(e,t,r)=>{var n=r(17478),i=r(45387),o=r(74582),a=r(81563),s=r(96980),l=r(7088),u=r(29687),c=r(14143),d=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(s(e)&&(a(e)||"string"==typeof e||"function"==typeof e.splice||l(e)||c(e)||o(e)))return!e.length;var t=i(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(u(e))return!n(e).length;for(var r in e)if(d.call(e,r))return!1;return!0}},73432:(e,t,r)=>{"use strict";var n=r(48613),i=r(5973),o=r(56435).slack,a=r(56435).longestPath,s=r(30039).alg.preorder,l=r(30039).alg.postorder,u=r(26380).simplify;function c(e){a(e=u(e));var t,r,n=i(e);for(h(n),d(n,e);t=p(n);)r=g(n,e,t),v(n,e,t,r)}function d(e,t){var r=l(e,e.nodes());r=r.slice(0,r.length-1),n.forEach(r,function(r){var n,i,o,a;n=e,i=t,o=r,a=n.node(o).parent,n.edge(o,a).cutvalue=f(n,i,o)})}function f(e,t,r){var i=e.node(r).parent,o=!0,a=t.edge(r,i),s=0;return a||(o=!1,a=t.edge(i,r)),s=a.weight,n.forEach(t.nodeEdges(r),function(n){var a=n.v===r,l=a?n.w:n.v;if(l!==i){var u,c,d,f=a===o,h=t.edge(n).weight;if(s+=f?h:-h,u=e,c=r,d=l,u.hasEdge(c,d)){var p=e.edge(r,l).cutvalue;s+=f?-p:p}}}),s}function h(e,t){arguments.length<2&&(t=e.nodes()[0]),function e(t,r,i,o,a){var s=i,l=t.node(o);return r[o]=!0,n.forEach(t.neighbors(o),function(a){n.has(r,a)||(i=e(t,r,i,a,o))}),l.low=s,l.lim=i++,a?l.parent=a:delete l.parent,i}(e,{},1,t)}function p(e){return n.find(e.edges(),function(t){return e.edge(t).cutvalue<0})}function g(e,t,r){var i=r.v,a=r.w;t.hasEdge(i,a)||(i=r.w,a=r.v);var s=e.node(i),l=e.node(a),u=s,c=!1;s.lim>l.lim&&(u=l,c=!0);var d=n.filter(t.edges(),function(t){return c===m(e,e.node(t.v),u)&&c!==m(e,e.node(t.w),u)});return n.minBy(d,function(e){return o(t,e)})}function v(e,t,r,i){var o,a,l,u,c=r.v,f=r.w;e.removeEdge(c,f),e.setEdge(i.v,i.w,{}),h(e),d(e,t),o=e,a=t,l=n.find(o.nodes(),function(e){return!a.node(e).parent}),u=(u=s(o,l)).slice(1),n.forEach(u,function(e){var t=o.node(e).parent,r=a.edge(e,t),n=!1;r||(r=a.edge(t,e),n=!0),a.node(e).rank=a.node(t).rank+(n?r.minlen:-r.minlen)})}function m(e,t,r){return r.low<=t.lim&&t.lim<=r.lim}e.exports=c,c.initLowLimValues=h,c.initCutValues=d,c.calcCutValue=f,c.leaveEdge=p,c.enterEdge=g,c.exchangeEdges=v},73530:(e,t,r)=>{var n=r(45136),i=r(96980),o=r(5573),a=r(94193);e.exports=function(e,t,r){if(!a(r))return!1;var s=typeof t;return("number"==s?!!(i(r)&&o(t,r.length)):"string"==s&&t in r)&&n(r[t],e)}},73570:(e,t)=>{"use strict";function r(e){let t={};for(let[r,n]of e.entries()){let e=t[r];void 0===e?t[r]=n:Array.isArray(e)?e.push(n):t[r]=[e,n]}return t}function n(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function i(e){let t=new URLSearchParams;for(let[r,i]of Object.entries(e))if(Array.isArray(i))for(let e of i)t.append(r,n(e));else t.set(r,n(i));return t}function o(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];for(let t of r){for(let r of t.keys())e.delete(r);for(let[r,n]of t.entries())e.append(r,n)}return e}Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{assign:function(){return o},searchParamsToUrlQuery:function(){return r},urlQueryToSearchParams:function(){return i}})},74049:(e,t,r)=>{var n=r(69604),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return n?void 0!==t[e]:i.call(t,e)}},74582:(e,t,r)=>{var n=r(49086),i=r(79910),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable;e.exports=n(function(){return arguments}())?n:function(e){return i(e)&&a.call(e,"callee")&&!s.call(e,"callee")}},75009:(e,t,r)=>{"use strict";r.d(t,{A:()=>function e(t){if("string"==typeof t||"number"==typeof t)return""+t;let r="";if(Array.isArray(t))for(let n=0,i;n<t.length;n++)""!==(i=e(t[n]))&&(r+=(r&&" ")+i);else for(let e in t)t[e]&&(r+=(r&&" ")+e);return r}})},75114:(e,t,r)=>{var n=r(89718),i=r(94193);e.exports=function(e){if(!i(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},75332:(e,t,r)=>{var n=r(18230);e.exports=function(e,t){if(e!==t){var r=void 0!==e,i=null===e,o=e==e,a=n(e),s=void 0!==t,l=null===t,u=t==t,c=n(t);if(!l&&!c&&!a&&e>t||a&&s&&u&&!l&&!c||i&&s&&u||!r&&u||!o)return 1;if(!i&&!a&&!c&&e<t||c&&r&&o&&!i&&!a||l&&r&&o||!s&&o||!u)return -1}return 0}},75465:(e,t,r)=>{"use strict";r.d(t,{zh:()=>es,jE:()=>ef});var n=r(80715),i=r(86890);let o=function(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=function e(t){var r,n,i="";if("string"==typeof t||"number"==typeof t)i+=t;else if("object"==typeof t)if(Array.isArray(t)){var o=t.length;for(r=0;r<o;r++)t[r]&&(n=e(t[r]))&&(i&&(i+=" "),i+=n)}else for(n in t)t[n]&&(i&&(i+=" "),i+=n);return i}(e))&&(n&&(n+=" "),n+=t);return n};var a=r(87259);function s(e,t,r){let n="function"==typeof e.colSpan?e.colSpan(r):1;if(Number.isInteger(n)&&n>1&&(!e.frozen||e.idx+n-1<=t))return n}function l(e){e.stopPropagation()}function u(e,t="instant"){e?.scrollIntoView({inline:"nearest",block:"nearest",behavior:t})}function c(e){let t=!1,r={...e,preventGridDefault(){t=!0},isGridDefaultPrevented:()=>t};return Object.setPrototypeOf(r,Object.getPrototypeOf(e)),r}let d=new Set(["Unidentified","Alt","AltGraph","CapsLock","Control","Fn","FnLock","Meta","NumLock","ScrollLock","Shift","Tab","ArrowDown","ArrowLeft","ArrowRight","ArrowUp","End","Home","PageDown","PageUp","Insert","ContextMenu","Escape","Pause","Play","PrintScreen","F1","F3","F4","F5","F6","F7","F8","F9","F10","F11","F12"]);function f(e){return(e.ctrlKey||e.metaKey)&&"Control"!==e.key}function h(e){let t="rtl"===e;return{leftKey:t?"ArrowRight":"ArrowLeft",rightKey:t?"ArrowLeft":"ArrowRight"}}function p(e,t){return null!=e.renderEditCell&&("function"==typeof e.editable?e.editable(t):e.editable)!==!1}let g="rdg-cell cj343x07-0-0-beta-57";function v(e){return{"--rdg-grid-row-start":e}}function m(e,t,r){let n=t+1,i=`calc(${r-1} * var(--rdg-header-row-height))`;return void 0===e.parent?{insetBlockStart:0,gridRowStart:1,gridRowEnd:n,paddingBlockStart:i}:{insetBlockStart:`calc(${t-r} * var(--rdg-header-row-height))`,gridRowStart:n-r,gridRowEnd:n,paddingBlockStart:i}}function b(e,t=1){let r=e.idx+1;return{gridColumnStart:r,gridColumnEnd:r+t,insetInlineStart:e.frozen?`var(--rdg-frozen-left-${e.idx})`:void 0}}function y(e,...t){return o(g,{"rdg-cell-frozen csofj7r7-0-0-beta-57":e.frozen},...t)}let{min:x,max:w,floor:S,sign:E,abs:k}=Math;function C(e){if("function"!=typeof e)throw Error("Please specify the rowKeyGetter prop to use selection")}function O(e,{minWidth:t,maxWidth:r}){return(e=w(e,t),"number"==typeof r&&r>=t)?x(e,r):e}function I(e,t){return void 0===e.parent?t:e.level-e.parent.level}function _({onChange:e,indeterminate:t,...r}){return(0,a.jsx)("input",{ref:e=>{e&&(e.indeterminate=!0===t)},type:"checkbox",className:"rdg-checkbox-input c1bn88vv7-0-0-beta-57",onChange:function(t){e(t.target.checked,t.nativeEvent.shiftKey)},...r})}function T(e){try{return e.row[e.column.key]}catch{return null}}let P=(0,n.createContext)(void 0);function R(){return(0,n.useContext)(P)}let A=(0,n.createContext)(void 0),N=(0,n.createContext)(void 0),M=(0,n.createContext)(void 0),L=(0,n.createContext)(void 0),V="rdg-select-column";function D({column:e,sortDirection:t,priority:r}){return e.sortable?(0,a.jsx)(F,{sortDirection:t,priority:r,children:e.name}):e.name}function F({sortDirection:e,priority:t,children:r}){let n=R().renderSortStatus;return(0,a.jsxs)("span",{className:"h44jtk67-0-0-beta-57",children:[(0,a.jsx)("span",{className:"rdg-header-sort-name hcgkhxz7-0-0-beta-57",children:r}),(0,a.jsx)("span",{children:n({sortDirection:e,priority:t})})]})}function j(e,t){let r=`[data-measuring-cell-key="${CSS.escape(t)}"]`,n=e.current?.querySelector(r);return n?.getBoundingClientRect().width}function z(e){let t=(0,n.useRef)(e);(0,n.useLayoutEffect)(()=>{t.current=e});let r=(0,n.useCallback)((...e)=>{t.current(...e)},[]);return e?r:e}function B(e){let[t,r]=(0,n.useState)(!1);return t&&!e&&r(!1),{tabIndex:e&&!t?0:-1,childTabIndex:e?0:-1,onFocus:e?function(e){if(e.target===e.currentTarget){let t=e.currentTarget.querySelector('[tabindex="0"]');null!==t?(t.focus({preventScroll:!0}),r(!0)):r(!1)}else r(!0)}:void 0}}let U=(0,n.memo)(function({column:e,colSpan:t,isCellSelected:r,isDraggedOver:n,row:i,rowIdx:o,className:s,onMouseDown:l,onCellMouseDown:u,onClick:d,onCellClick:f,onDoubleClick:h,onCellDoubleClick:g,onContextMenu:v,onCellContextMenu:m,onRowChange:x,selectCell:w,style:S,...E}){let{tabIndex:k,childTabIndex:C,onFocus:O}=B(r),{cellClass:I}=e;s=y(e,{"rdg-cell-dragged-over c6ra8a37-0-0-beta-57":n},"function"==typeof I?I(i):I,s);let _=p(e,i);function T(t){w({rowIdx:o,idx:e.idx},{enableEditor:t})}function P(t,r){let n=!1;if(r){let a=c(t);r({rowIdx:o,row:i,column:e,selectCell:T},a),n=a.isGridDefaultPrevented()}return n}return(0,a.jsx)("div",{role:"gridcell","aria-colindex":e.idx+1,"aria-colspan":t,"aria-selected":r,"aria-readonly":!_||void 0,tabIndex:k,className:s,style:{...b(e,t),...S},onClick:function(e){d?.(e),P(e,f)},onMouseDown:function(e){l?.(e),P(e,u)||T()},onDoubleClick:function(e){h?.(e),P(e,g)||T(!0)},onContextMenu:function(e){v?.(e),P(e,m)},onFocus:O,...E,children:e.renderCell({column:e,row:i,rowIdx:o,isCellEditable:_,tabIndex:C,onRowChange:function(t){x(e,t)}})})});function H(e,t){return(0,a.jsx)(U,{...t},e)}let W="object"==typeof scheduler&&"function"==typeof scheduler.postTask;function $({column:e,colSpan:t,row:r,rowIdx:i,onRowChange:o,closeEditor:s,onKeyDown:l,navigate:u}){let d=(0,n.useRef)(void 0),f=(0,n.useRef)(void 0),h=(0,n.useRef)(void 0),p=e.editorOptions?.commitOnOutsideClick??!0,g=z(()=>{m(!0,!1)});function v(){d.current=void 0,void 0!==f.current&&(f.current.abort(),f.current=void 0),void 0!==h.current&&(cancelAnimationFrame(h.current),h.current=void 0)}function m(e=!1,t=!0){e?o(r,!0,t):s(t)}function x(e,t=!1){o(e,t,t)}(0,n.useLayoutEffect)(()=>{if(p)return addEventListener("mousedown",e,{capture:!0}),addEventListener("mousedown",t),()=>{removeEventListener("mousedown",e,{capture:!0}),removeEventListener("mousedown",t),v()};function e(e){if(d.current=e,W){let e=new AbortController,{signal:t}=e;f.current=e,scheduler.postTask(g,{priority:"user-blocking",signal:t}).catch(()=>{})}else h.current=requestAnimationFrame(g)}function t(e){d.current===e&&g()}},[p,g]);let{cellClass:w}=e,S=y(e,"rdg-editor-container",!e.editorOptions?.displayCellContent&&"cis5rrm7-0-0-beta-57","function"==typeof w?w(r):w);return(0,a.jsx)("div",{role:"gridcell","aria-colindex":e.idx+1,"aria-colspan":t,"aria-selected":!0,className:S,style:b(e,t),onKeyDown:function(t){if(l){let n=c(t);if(l({mode:"EDIT",row:r,column:e,rowIdx:i,navigate(){u(t)},onClose:m},n),n.isGridDefaultPrevented())return}"Escape"===t.key?m():"Enter"===t.key?m(!0):function({key:e,target:t}){return!!("Tab"===e&&(t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement||t instanceof HTMLSelectElement))&&t.closest(".rdg-editor-container")?.querySelectorAll("input, textarea, select").length===1}(t)&&u(t)},onMouseDownCapture:v,children:null!=e.renderEditCell&&(0,a.jsxs)(a.Fragment,{children:[e.renderEditCell({column:e,row:r,rowIdx:i,onRowChange:x,onClose:m}),e.editorOptions?.displayCellContent&&e.renderCell({column:e,row:r,rowIdx:i,isCellEditable:!0,tabIndex:-1,onRowChange:x})]})})}function q({column:e,rowIdx:t,isCellSelected:r,selectCell:n}){let{tabIndex:i,onFocus:s}=B(r),{colSpan:l}=e,u=I(e,t),c=e.idx+1;return(0,a.jsx)("div",{role:"columnheader","aria-colindex":c,"aria-colspan":l,"aria-rowspan":u,"aria-selected":r,tabIndex:i,className:o(g,e.headerCellClass),style:{...m(e,t,u),gridColumnStart:c,gridColumnEnd:c+l},onFocus:s,onMouseDown:function(){n({idx:e.idx,rowIdx:t})},children:e.name})}function G({column:e,colSpan:t,rowIdx:r,isCellSelected:o,onColumnResize:s,onColumnResizeEnd:l,onColumnsReorder:u,sortColumns:c,onSortColumnsChange:d,selectCell:p,shouldFocusGrid:g,direction:v,draggedColumnKey:x,setDraggedColumnKey:w}){let S,E,[k,C]=(0,n.useState)(!1),_=(0,n.useRef)(null),T=x===e.key,P=I(e,r),{tabIndex:R,childTabIndex:A,onFocus:N}=B(g||o),M=c?.findIndex(t=>t.columnKey===e.key),L=void 0!==M&&M>-1?c[M]:void 0,V=L?.direction,D=void 0!==L&&c.length>1?M+1:void 0,F=V&&!D?"ASC"===V?"ascending":"descending":void 0,{sortable:j,resizable:z,draggable:U}=e,H=y(e,e.headerCellClass,{"c6l2wv17-0-0-beta-57":j,"rdg-cell-resizable c1kqdw7y7-0-0-beta-57":z,"rdg-cell-draggable":U,"rdg-cell-dragging c1bezg5o7-0-0-beta-57":T,"rdg-cell-drag-over c1vc96037-0-0-beta-57":k});function W(t){if(null==d)return;let{sortDescendingFirst:r}=e;if(void 0===L){let n={columnKey:e.key,direction:r?"DESC":"ASC"};d(c&&t?[...c,n]:[n])}else{let n;if((!0===r&&"DESC"===V||!0!==r&&"ASC"===V)&&(n={columnKey:e.key,direction:"ASC"===V?"DESC":"ASC"}),t){let e=[...c];n?e[M]=n:e.splice(M,1),d(e)}else d(n?[n]:[])}}U&&(S={draggable:!0,onDragStart:function(t){(0,i.flushSync)(()=>{w(e.key)}),t.dataTransfer.setDragImage(_.current,0,0),t.dataTransfer.dropEffect="move"},onDragEnd:function(){w(void 0)}},void 0!==x&&x!==e.key&&(E={onDragOver:function(e){e.preventDefault(),e.dataTransfer.dropEffect="move"},onDragEnter:function(e){Y(e)&&C(!0)},onDragLeave:function(e){Y(e)&&C(!1)},onDrop:function(t){C(!1),t.preventDefault(),u?.(x,e.key)}}));let $={...m(e,r,P),...b(e,t)},q=e.renderHeaderCell({column:e,sortDirection:V,priority:D,tabIndex:A});return(0,a.jsxs)(a.Fragment,{children:[T&&(0,a.jsx)("div",{ref:_,style:$,className:y(e,e.headerCellClass,"d8rwc9w7-0-0-beta-57"),children:q}),(0,a.jsxs)("div",{role:"columnheader","aria-colindex":e.idx+1,"aria-colspan":t,"aria-rowspan":P,"aria-selected":o,"aria-sort":F,tabIndex:R,className:H,style:$,onMouseDown:function(){p({idx:e.idx,rowIdx:r})},onFocus:function(e){N?.(e),g&&p({idx:0,rowIdx:r})},onClick:function(e){j&&W(e.ctrlKey||e.metaKey)},onKeyDown:function(t){let{key:r}=t;if(j&&(" "===r||"Enter"===r))t.preventDefault(),W(t.ctrlKey||t.metaKey);else if(z&&f(t)&&("ArrowLeft"===r||"ArrowRight"===r)){t.stopPropagation();let{width:n}=t.currentTarget.getBoundingClientRect(),{leftKey:i}=h(v),o=O(n+(r===i?-10:10),e);o!==n&&s(e,o)}},...S,...E,children:[q,z&&(0,a.jsx)(K,{direction:v,column:e,onColumnResize:s,onColumnResizeEnd:l})]})]})}function K({direction:e,column:t,onColumnResize:r,onColumnResizeEnd:i}){let o=(0,n.useRef)(void 0),s="rtl"===e;return(0,a.jsx)("div",{className:"r1y6ywlx7-0-0-beta-57",onClick:l,onPointerDown:function(e){if("mouse"===e.pointerType&&1!==e.buttons)return;e.preventDefault();let{currentTarget:t,pointerId:r}=e;t.setPointerCapture(r);let{right:n,left:i}=t.parentElement.getBoundingClientRect();o.current=s?e.clientX-i:n-e.clientX},onPointerMove:function(e){let n=o.current;if(void 0===n)return;let{width:i,right:a,left:l}=e.currentTarget.parentElement.getBoundingClientRect(),u=s?a+n-e.clientX:e.clientX+n-l;u=O(u,t),i>0&&u!==i&&r(t,u)},onLostPointerCapture:function(){i(),o.current=void 0},onDoubleClick:function(){r(t,"max-content")}})}function Y(e){let t=e.relatedTarget;return!e.currentTarget.contains(t)}let X="rdg-row r1upfr807-0-0-beta-57",Q="rdg-row-selected",J="rdg-header-row h10tskcx7-0-0-beta-57";var Z=(0,n.memo)(function({headerRowClass:e,rowIdx:t,columns:r,onColumnResize:i,onColumnResizeEnd:l,onColumnsReorder:u,sortColumns:c,onSortColumnsChange:d,lastFrozenColumnIndex:f,selectedCellIdx:h,selectCell:p,shouldFocusGrid:g,direction:v}){let[m,b]=(0,n.useState)(),y=[];for(let e=0;e<r.length;e++){let n=r[e],o=s(n,f,{type:"HEADER"});void 0!==o&&(e+=o-1),y.push((0,a.jsx)(G,{column:n,colSpan:o,rowIdx:t,isCellSelected:h===n.idx,onColumnResize:i,onColumnResizeEnd:l,onColumnsReorder:u,onSortColumnsChange:d,sortColumns:c,selectCell:p,shouldFocusGrid:g&&0===e,direction:v,draggedColumnKey:m,setDraggedColumnKey:b},n.key))}return(0,a.jsx)("div",{role:"row","aria-rowindex":t,className:o(J,{[Q]:-1===h},e),children:y})}),ee=(0,n.memo)(function({rowIdx:e,level:t,columns:r,selectedCellIdx:n,selectCell:i}){let o=[],s=new Set;for(let l of r){let{parent:r}=l;if(void 0!==r){for(;r.level>t&&void 0!==r.parent;)r=r.parent;if(r.level===t&&!s.has(r)){s.add(r);let{idx:t}=r;o.push((0,a.jsx)(q,{column:r,rowIdx:e,isCellSelected:n===t,selectCell:i},t))}}}return(0,a.jsx)("div",{role:"row","aria-rowindex":e,className:J,children:o})});let et=(0,n.memo)(function({className:e,rowIdx:t,gridRowStart:r,selectedCellIdx:i,isRowSelectionDisabled:l,isRowSelected:u,draggedOverCellIdx:c,lastFrozenColumnIndex:d,row:f,viewportColumns:h,selectedCellEditor:p,onCellMouseDown:g,onCellClick:m,onCellDoubleClick:b,onCellContextMenu:y,rowClass:x,onRowChange:w,selectCell:S,style:E,...k}){let C=R().renderCell,O=z((e,r)=>{w(e,t,r)});e=o(X,`rdg-row-${t%2==0?"even":"odd"}`,{[Q]:-1===i},x?.(f,t),e);let I=[];for(let e=0;e<h.length;e++){let r=h[e],{idx:n}=r,o=s(r,d,{type:"ROW",row:f});void 0!==o&&(e+=o-1);let a=i===n;a&&p?I.push(p):I.push(C(r.key,{column:r,colSpan:o,row:f,rowIdx:t,isDraggedOver:c===n,isCellSelected:a,onCellMouseDown:g,onCellClick:m,onCellDoubleClick:b,onCellContextMenu:y,onRowChange:O,selectCell:S}))}let _=(0,n.useMemo)(()=>({isRowSelected:u,isRowSelectionDisabled:l}),[l,u]);return(0,a.jsx)(A,{value:_,children:(0,a.jsx)("div",{role:"row",className:e,style:{...v(r),...E},...k,children:I})})});function er(e,t){return(0,a.jsx)(et,{...t},e)}function en({scrollToPosition:{idx:e,rowIdx:t},gridRef:r,setScrollToCellPosition:i}){let o=(0,n.useRef)(null);return(0,n.useLayoutEffect)(()=>{u(o.current,"auto")}),(0,n.useLayoutEffect)(()=>{let e=new IntersectionObserver(function(){i(null)},{root:r.current,threshold:1});return e.observe(o.current),()=>{e.disconnect()}},[r,i]),(0,a.jsx)("div",{ref:o,style:{gridColumn:void 0===e?"1/-1":e+1,gridRow:void 0===t?"1/-1":t+2}})}function ei({sortDirection:e,priority:t}){return(0,a.jsxs)(a.Fragment,{children:[function({sortDirection:e}){return void 0===e?null:(0,a.jsx)("svg",{viewBox:"0 0 12 8",width:"12",height:"8",className:"rdg-sort-arrow a3ejtar7-0-0-beta-57","aria-hidden":!0,children:(0,a.jsx)("path",{d:"ASC"===e?"M0 8 6 0 12 8":"M0 0 6 8 12 0"})})}({sortDirection:e}),function({priority:e}){return e}({priority:t})]})}var eo=(0,n.memo)(function({column:e,colSpan:t,row:r,rowIdx:n,isCellSelected:i,selectCell:o}){let{tabIndex:s,childTabIndex:l,onFocus:u}=B(i),{summaryCellClass:c}=e,d=y(e,"s8wc6fl7-0-0-beta-57","function"==typeof c?c(r):c);return(0,a.jsx)("div",{role:"gridcell","aria-colindex":e.idx+1,"aria-colspan":t,"aria-selected":i,tabIndex:s,className:d,style:b(e,t),onMouseDown:function(){o({rowIdx:n,idx:e.idx})},onFocus:u,children:e.renderSummaryCell?.({column:e,row:r,tabIndex:l})})}),ea=(0,n.memo)(function({rowIdx:e,gridRowStart:t,row:r,viewportColumns:n,top:i,bottom:l,lastFrozenColumnIndex:u,selectedCellIdx:c,isTop:d,selectCell:f,"aria-rowindex":h}){let p=[];for(let t=0;t<n.length;t++){let i=n[t],o=s(i,u,{type:"SUMMARY",row:r});void 0!==o&&(t+=o-1);let l=c===i.idx;p.push((0,a.jsx)(eo,{column:i,colSpan:o,row:r,rowIdx:e,isCellSelected:l,selectCell:f},i.key))}return(0,a.jsx)("div",{role:"row","aria-rowindex":h,className:o(X,`rdg-row-${e%2==0?"even":"odd"}`,"rdg-summary-row skuhp557-0-0-beta-57",{[Q]:-1===c,"rdg-top-summary-row tf8l5ub7-0-0-beta-57":d,"rdg-bottom-summary-row":!d}),style:{...v(t),"--rdg-summary-row-top":void 0!==i?`${i}px`:void 0,"--rdg-summary-row-bottom":void 0!==l?`${l}px`:void 0},children:p})});function es(e){let{ref:t,columns:r,rows:l,topSummaryRows:g,bottomSummaryRows:v,rowKeyGetter:m,onRowsChange:y,rowHeight:I,headerRowHeight:A,summaryRowHeight:F,columnWidths:B,onColumnWidthsChange:U,selectedRows:W,isRowSelectionDisabled:q,onSelectedRowsChange:G,sortColumns:K,onSortColumnsChange:Y,defaultColumnOptions:X,onCellMouseDown:Q,onCellClick:J,onCellDoubleClick:et,onCellContextMenu:eo,onCellKeyDown:es,onSelectedCellChange:ec,onScroll:ed,onColumnResize:ef,onColumnsReorder:eh,onFill:ep,onCellCopy:eg,onCellPaste:ev,enableVirtualization:em,renderers:eb,className:ey,style:ex,rowClass:ew,headerRowClass:eS,direction:eE,role:ek,"aria-label":eC,"aria-labelledby":eO,"aria-description":eI,"aria-describedby":e_,"aria-rowcount":eT,"data-testid":eP,"data-cy":eR}=e,eA=R(),eN=ek??"grid",eM=I??35,eL=A??("number"==typeof eM?eM:35),eV=F??("number"==typeof eM?eM:35),eD=eb?.renderRow??eA?.renderRow??er,eF=eb?.renderCell??eA?.renderCell??H,ej=eb?.renderSortStatus??eA?.renderSortStatus??ei,ez=eb?.renderCheckbox??eA?.renderCheckbox??_,eB=eb?.noRowsFallback??eA?.noRowsFallback,eU=em??!0,eH=eE??"ltr",[eW,e$]=(0,n.useState)(0),[eq,eG]=(0,n.useState)(0),[eK,eY]=(0,n.useState)(()=>B??new Map),[eX,eQ]=(0,n.useState)(!1),[eJ,eZ]=(0,n.useState)(!1),[e0,e1]=(0,n.useState)(void 0),[e2,e5]=(0,n.useState)(null),[e3,e4]=(0,n.useState)(!1),[e6,e8]=(0,n.useState)(-1),e7=null!=B&&null!=U&&!eX,e9=e7?B:eK,te=e7?e=>{eY(e),U(e)}:eY,tt=(0,n.useCallback)(e=>e9.get(e.key)?.width??e.width,[e9]),[tr,tn,ti,to]=function(){let e=(0,n.useRef)(null),[t,r]=(0,n.useState)(1),[o,a]=(0,n.useState)(1),[s,l]=(0,n.useState)(0);return(0,n.useLayoutEffect)(()=>{let{ResizeObserver:t}=window;if(null==t)return;let{clientWidth:n,clientHeight:o,offsetWidth:s,offsetHeight:u}=e.current,{width:c,height:d}=e.current.getBoundingClientRect(),f=u-o;r(c-s+n),a(d-f),l(f);let h=new t(t=>{let n=t[0].contentBoxSize[0],{clientHeight:o,offsetHeight:s}=e.current;(0,i.flushSync)(()=>{r(n.inlineSize),a(n.blockSize),l(s-o)})});return h.observe(e.current),()=>{h.disconnect()}},[]),[e,t,o,s]}(),{columns:ta,colSpanColumns:ts,lastFrozenColumnIndex:tl,headerRowsCount:tu,colOverscanStartIdx:tc,colOverscanEndIdx:td,templateColumns:tf,layoutCssVars:th,totalFrozenColumnWidth:tp}=function({rawColumns:e,defaultColumnOptions:t,getColumnWidth:r,viewportWidth:i,scrollLeft:o,enableVirtualization:a}){let s=t?.width??"auto",l=t?.minWidth??50,u=t?.maxWidth??void 0,c=t?.renderCell??T,d=t?.renderHeaderCell??D,f=t?.sortable??!1,h=t?.resizable??!1,p=t?.draggable??!1,{columns:g,colSpanColumns:v,lastFrozenColumnIndex:m,headerRowsCount:b}=(0,n.useMemo)(()=>{let t=-1,r=1,n=[];!function e(i,o,a){for(let g of i){if("children"in g){let t={name:g.name,parent:a,idx:-1,colSpan:0,level:0,headerCellClass:g.headerCellClass};e(g.children,o+1,t);continue}let i=g.frozen??!1,v={...g,parent:a,idx:0,level:0,frozen:i,width:g.width??s,minWidth:g.minWidth??l,maxWidth:g.maxWidth??u,sortable:g.sortable??f,resizable:g.resizable??h,draggable:g.draggable??p,renderCell:g.renderCell??c,renderHeaderCell:g.renderHeaderCell??d};n.push(v),i&&t++,o>r&&(r=o)}}(e,1),n.sort(({key:e,frozen:t},{key:r,frozen:n})=>e===V?-1:r===V?1:t?n?0:-1:+!!n);let i=[];return n.forEach((e,t)=>{e.idx=t,function e(t,r,n){if(n<t.level&&(t.level=n),void 0!==t.parent){let{parent:i}=t;-1===i.idx&&(i.idx=r),i.colSpan+=1,e(i,r,n-1)}}(e,t,0),null!=e.colSpan&&i.push(e)}),{columns:n,colSpanColumns:i,lastFrozenColumnIndex:t,headerRowsCount:r}},[e,s,l,u,c,d,h,f,p]),{templateColumns:y,layoutCssVars:S,totalFrozenColumnWidth:E,columnMetrics:k}=(0,n.useMemo)(()=>{let e=new Map,t=0,n=0,i=[];for(let n of g){let o=r(n);o="number"==typeof o?O(o,n):n.minWidth,i.push(`${o}px`),e.set(n,{width:o,left:t}),t+=o}if(-1!==m){let t=e.get(g[m]);n=t.left+t.width}let o={};for(let t=0;t<=m;t++){let r=g[t];o[`--rdg-frozen-left-${r.idx}`]=`${e.get(r).left}px`}return{templateColumns:i,layoutCssVars:o,totalFrozenColumnWidth:n,columnMetrics:e}},[r,g,m]),[C,I]=(0,n.useMemo)(()=>{if(!a)return[0,g.length-1];let e=o+E,t=o+i,r=g.length-1,n=x(m+1,r);if(e>=t)return[n,n];let s=n;for(;s<r;){let{left:t,width:r}=k.get(g[s]);if(t+r>e)break;s++}let l=s;for(;l<r;){let{left:e,width:r}=k.get(g[l]);if(e+r>=t)break;l++}return[w(n,s-1),x(r,l+1)]},[k,g,m,o,E,i,a]);return{columns:g,colSpanColumns:v,colOverscanStartIdx:C,colOverscanEndIdx:I,templateColumns:y,layoutCssVars:S,headerRowsCount:b,lastFrozenColumnIndex:m,totalFrozenColumnWidth:E}}({rawColumns:r,defaultColumnOptions:X,getColumnWidth:tt,scrollLeft:eq,viewportWidth:tn,enableVirtualization:eU}),tg=g?.length??0,tv=v?.length??0,tm=tg+tv,tb=tu+tg,ty=tu-1,tx=-tb,tw=tx+ty,tS=l.length+tv-1,[tE,tk]=(0,n.useState)(()=>({idx:-1,rowIdx:tx-1,mode:"SELECT"})),tC=(0,n.useRef)(null),tO="treegrid"===eN,tI=tu*eL,t_=tm*eV,tT=ti-tI-t_,tP=null!=W&&null!=G,{leftKey:tR,rightKey:tA}=h(eH),tN=eT??tu+l.length+tm,tM=(0,n.useMemo)(()=>({renderCheckbox:ez,renderSortStatus:ej,renderCell:eF}),[ez,ej,eF]),tL=(0,n.useMemo)(()=>{let e=!1,t=!1;if(null!=m&&null!=W&&W.size>0){for(let r of l)if(W.has(m(r))?e=!0:t=!0,e&&t)break}return{isRowSelected:e&&!t,isIndeterminate:e&&t}},[l,W,m]),{rowOverscanStartIdx:tV,rowOverscanEndIdx:tD,totalRowHeight:tF,gridTemplateRows:tj,getRowTop:tz,getRowHeight:tB,findRowIdx:tU}=function({rows:e,rowHeight:t,clientHeight:r,scrollTop:i,enableVirtualization:o}){let{totalRowHeight:a,gridTemplateRows:s,getRowTop:l,getRowHeight:u,findRowIdx:c}=(0,n.useMemo)(()=>{if("number"==typeof t)return{totalRowHeight:t*e.length,gridTemplateRows:` repeat(${e.length}, ${t}px)`,getRowTop:e=>e*t,getRowHeight:()=>t,findRowIdx:e=>S(e/t)};let r=0,n=" ",i=e.map(e=>{let i=t(e),o={top:r,height:i};return n+=`${i}px `,r+=i,o}),o=t=>w(0,x(e.length-1,t));return{totalRowHeight:r,gridTemplateRows:n,getRowTop:e=>i[o(e)].top,getRowHeight:e=>i[o(e)].height,findRowIdx(e){let t=0,r=i.length-1;for(;t<=r;){let n=t+S((r-t)/2),o=i[n].top;if(o===e)return n;if(o<e?t=n+1:o>e&&(r=n-1),t>r)return r}return 0}}},[t,e]),d=0,f=e.length-1;if(o){let t=c(i),n=c(i+r);d=w(0,t-4),f=x(e.length-1,n+4)}return{rowOverscanStartIdx:d,rowOverscanEndIdx:f,totalRowHeight:a,gridTemplateRows:s,getRowTop:l,getRowHeight:u,findRowIdx:c}}({rows:l,rowHeight:eM,clientHeight:tT,scrollTop:eW,enableVirtualization:eU}),tH=function({columns:e,colSpanColumns:t,rows:r,topSummaryRows:i,bottomSummaryRows:o,colOverscanStartIdx:a,colOverscanEndIdx:l,lastFrozenColumnIndex:u,rowOverscanStartIdx:c,rowOverscanEndIdx:d}){let f=(0,n.useMemo)(()=>{if(0===a)return 0;let e=a,n=(t,r)=>void 0!==r&&t+r>a&&(e=t,!0);for(let a of t){let t=a.idx;if(t>=e||n(t,s(a,u,{type:"HEADER"})))break;for(let e=c;e<=d&&!n(t,s(a,u,{type:"ROW",row:r[e]}));e++);if(null!=i){for(let e of i)if(n(t,s(a,u,{type:"SUMMARY",row:e})))break}if(null!=o){for(let e of o)if(n(t,s(a,u,{type:"SUMMARY",row:e})))break}}return e},[c,d,r,i,o,a,u,t]);return(0,n.useMemo)(()=>{let t=[];for(let r=0;r<=l;r++){let n=e[r];(!(r<f)||n.frozen)&&t.push(n)}return t},[f,l,e])}({columns:ta,colSpanColumns:ts,colOverscanStartIdx:tc,colOverscanEndIdx:td,lastFrozenColumnIndex:tl,rowOverscanStartIdx:tV,rowOverscanEndIdx:tD,rows:l,topSummaryRows:g,bottomSummaryRows:v}),{gridTemplateColumns:tW,handleColumnResize:t$}=function(e,t,r,o,a,s,l,u,c){let[d,f]=(0,n.useState)(null),[h,p]=(0,n.useState)(null),[g,v]=(0,n.useState)(a),m=e.length===t.length,b=m&&a!==g,y=[...r],x=[];for(let{key:e,idx:r,width:n}of t){let t=s.get(e);e===d?.key?(y[r]="max-content"===d.width?d.width:`${d.width}px`,x.push(e)):"string"==typeof n&&t?.type!=="resized"&&(b||h?.has(e)===!0||void 0===t)&&(y[r]=n,x.push(e))}let w=y.join(" ");return(0,n.useLayoutEffect)(function(){if(v(a),0===x.length)return;let e=new Map(s),t=!1;for(let r of x){let n=j(o,r);t||=n!==s.get(r)?.width,void 0===n?e.delete(r):e.set(r,{type:"measured",width:n})}if(null!==d){let r=d.key,n=s.get(r)?.width,i=j(o,r);void 0!==i&&n!==i&&(t=!0,e.set(r,{type:"resized",width:i})),f(null)}t&&l(e)}),{gridTemplateColumns:w,handleColumnResize:function(e,r){let{key:n}=e;if((0,i.flushSync)(()=>{if(m){let e=new Set;for(let{key:r,width:i}of t)n!==r&&"string"==typeof i&&s.get(r)?.type!=="resized"&&e.add(r);p(e)}f({key:n,width:r}),c("number"==typeof r)}),p(null),u){let t=s.get(n)?.width,i="number"==typeof r?r:j(o,n);void 0!==i&&i!==t&&u(e,i)}}}}(ta,tH,tf,tr,tn,e9,te,ef,eQ),tq=tO?-1:0,tG=ta.length-1,tK=rd(tE),tY=rf(tE),tX=eL+tF+t_+to,tQ=z(t$),tJ=z(function(){eX&&(U?.(e9),eQ(!1))}),tZ=z(eh),t0=z(Y),t1=z(Q),t2=z(J),t5=z(et),t3=z(eo),t4=z(function(e){if(!G)return;C(m);let t=new Set(W);for(let r of l){if(q?.(r)===!0)continue;let n=m(r);e.checked?t.add(n):t.delete(n)}G(t)}),t6=z(rt),t8=z(rr),t7=z(rp),t9=z(function({idx:e,rowIdx:t}){rp({rowIdx:tx+t-1,idx:e})}),re=(0,n.useCallback)((e=!0)=>{let t=el(tr.current);null!==t&&(e&&u(t),t.focus({preventScroll:!0}))},[tr]);function rt(e){if(!G)return;C(m);let{row:t,checked:r,isShiftClick:n}=e;if(q?.(t)===!0)return;let i=new Set(W),o=m(t),a=l.indexOf(t);if(e8(a),r?i.add(o):i.delete(o),n&&-1!==e6&&e6!==a&&e6<l.length){let e=E(a-e6);for(let t=e6+e;t!==a;t+=e){let e=l[t];q?.(e)!==!0&&(r?i.add(m(e)):i.delete(m(e)))}}G(i)}function rr(e,t,r){"function"==typeof y&&r!==l[t]&&y(l.with(t,r),{indexes:[t],column:e})}function rn(){"EDIT"===tE.mode&&rr(ta[tE.idx],tE.rowIdx,tE.row)}function ri(e){e.preventDefault(),("mouse"!==e.pointerType||1===e.buttons)&&(eZ(!0),e.currentTarget.setPointerCapture(e.pointerId))}function ro(e){let t=tr.current,r=tU(eW-(tI+tg*eV)+e.clientY-t.getBoundingClientRect().top);e1(r),u(t.querySelector(`:scope > [aria-rowindex="${tb+r+1}"] > [aria-colindex="${tE.idx+1}"]`))}function ra(){if(eZ(!1),void 0===e0)return;let{rowIdx:e}=tE,[t,r]=e<e0?[e+1,e0+1]:[e0,e];ru(t,r),e1(void 0)}function rs(){re(!1)}function rl(e){e.stopPropagation(),ru(tE.rowIdx+1,l.length)}function ru(e,t){if(null==y)return;let{rowIdx:r,idx:n}=tE,i=ta[n],o=l[r],a=[...l],s=[];for(let r=e;r<t;r++)if(rh({rowIdx:r,idx:n})){let e=ep({columnKey:i.key,sourceRow:o,targetRow:l[r]});e!==l[r]&&(a[r]=e,s.push(r))}s.length>0&&y(a,{indexes:s,column:i})}(0,n.useLayoutEffect)(()=>{e3&&(null!==tC.current&&-1===tE.idx?(tC.current.focus({preventScroll:!0}),u(tC.current)):re(),e4(!1))},[e3,re,tE.idx]),(0,n.useImperativeHandle)(t,()=>({element:tr.current,scrollToCell({idx:e,rowIdx:t}){let r=void 0!==e&&e>tl&&e<ta.length?e:void 0,n=void 0!==t&&rc(t)?t:void 0;(void 0!==r||void 0!==n)&&e5({idx:r,rowIdx:n})},selectCell:rp}));function rc(e){return e>=0&&e<l.length}function rd({idx:e,rowIdx:t}){var r;return t>=tx&&t<=tS&&(r=e)>=tq&&r<=tG}function rf({idx:e,rowIdx:t}){var r;return rc(t)&&(r=e)>=tq&&r<=tG}function rh(e){return function({idx:e,rowIdx:t}){return rc(t)&&e>=0&&e<=tG}(e)&&function({selectedPosition:e,columns:t,rows:r}){return p(t[e.idx],r[e.rowIdx])}({columns:ta,rows:l,selectedPosition:e})}function rp(e,t){if(!rd(e))return;rn();let r=eu(tE,e);if(t?.enableEditor&&rh(e)){let t=l[e.rowIdx];tk({...e,mode:"EDIT",row:t,originalRow:t})}else r?u(el(tr.current)):(e4(t?.shouldFocusCell===!0),tk({...e,mode:"SELECT"}));ec&&!r&&ec({rowIdx:e.rowIdx,row:rc(e.rowIdx)?l[e.rowIdx]:void 0,column:ta[e.idx]})}function rg(e){let{key:t,shiftKey:r}=e,n="NONE";if("Tab"===t){if(function({maxColIdx:e,minRowIdx:t,maxRowIdx:r,selectedPosition:{rowIdx:n,idx:i},shiftKey:o}){return o?0===i&&n===t:i===e&&n===r}({shiftKey:r,maxColIdx:tG,minRowIdx:tx,maxRowIdx:tS,selectedPosition:tE}))return void rn();n="CHANGE_ROW"}e.preventDefault();let i=function(e,t,r){let{idx:n,rowIdx:i}=tE,o=tK&&-1===n;switch(e){case"ArrowUp":return{idx:n,rowIdx:i-1};case"ArrowDown":return{idx:n,rowIdx:i+1};case tR:return{idx:n-1,rowIdx:i};case tA:return{idx:n+1,rowIdx:i};case"Tab":return{idx:n+(r?-1:1),rowIdx:i};case"Home":if(o)return{idx:n,rowIdx:tx};return{idx:0,rowIdx:t?tx:i};case"End":if(o)return{idx:n,rowIdx:tS};return{idx:tG,rowIdx:t?tS:i};case"PageUp":{if(tE.rowIdx===tx)return tE;let e=tz(i)+tB(i)-tT;return{idx:n,rowIdx:e>0?tU(e):0}}case"PageDown":{if(tE.rowIdx>=l.length)return tE;let e=tz(i)+tT;return{idx:n,rowIdx:e<tF?tU(e):l.length-1}}default:return tE}}(t,f(e),r);if(eu(tE,i))return;let o=function({moveUp:e,moveNext:t,cellNavigationMode:r,columns:n,colSpanColumns:i,rows:o,topSummaryRows:a,bottomSummaryRows:l,minRowIdx:u,mainHeaderRowIdx:c,maxRowIdx:d,currentPosition:{idx:f,rowIdx:h},nextPosition:p,lastFrozenColumnIndex:g,isCellWithinBounds:v}){let{idx:m,rowIdx:b}=p,y=n.length,x=e=>{for(let t of i){let r=t.idx;if(r>m)break;let n=function({rows:e,topSummaryRows:t,bottomSummaryRows:r,rowIdx:n,mainHeaderRowIdx:i,lastFrozenColumnIndex:o,column:a}){let l=t?.length??0;return n===i?s(a,o,{type:"HEADER"}):t&&n>i&&n<=l+i?s(a,o,{type:"SUMMARY",row:t[n+l]}):n>=0&&n<e.length?s(a,o,{type:"ROW",row:e[n]}):r?s(a,o,{type:"SUMMARY",row:r[n-e.length]}):void 0}({rows:o,topSummaryRows:a,bottomSummaryRows:l,rowIdx:b,mainHeaderRowIdx:c,lastFrozenColumnIndex:g,column:t});if(n&&m>r&&m<n+r){m=r+(e?n:0);break}}},w=e=>e.level+c;if(v(p)&&(x(t),b<c&&(()=>{if(t){let e=n[m].parent;for(;void 0!==e;){let t=w(e);if(b===t){m=e.idx+e.colSpan;break}e=e.parent}}else if(e){let e=n[m].parent,t=!1;for(;void 0!==e;){let r=w(e);if(b>=r){m=e.idx,b=r,t=!0;break}e=e.parent}t||(m=f,b=h)}})()),"CHANGE_ROW"===r){let e=m===y,t=-1===m;e?b!==d&&(m=0,b+=1):t&&(b!==u&&(b-=1,m=y-1),x(!1))}if(b<c&&m>-1&&m<y){let e=n[m].parent,t=b;for(b=c;void 0!==e;){let r=w(e);r>=t&&(b=r,m=e.idx),e=e.parent}}return{idx:m,rowIdx:b}}({moveUp:"ArrowUp"===t,moveNext:t===tA||"Tab"===t&&!r,columns:ta,colSpanColumns:ts,rows:l,topSummaryRows:g,bottomSummaryRows:v,minRowIdx:tx,mainHeaderRowIdx:tw,maxRowIdx:tS,lastFrozenColumnIndex:tl,cellNavigationMode:n,currentPosition:tE,nextPosition:i,isCellWithinBounds:rd});rp(o,{shouldFocusCell:!0})}function rv(e){let t=-1===tE.idx?void 0:ta[tE.idx];return void 0===t||tE.rowIdx!==e||tH.includes(t)?tH:tE.idx>td?[...tH,t]:[...tH.slice(0,tl+1),t,...tH.slice(tl+1)]}(tE.idx>tG||tE.rowIdx>tS)&&(tk({idx:-1,rowIdx:tx-1,mode:"SELECT"}),e1(void 0)),e7&&eK!==B&&eY(B);let rm=`repeat(${tu}, ${eL}px)`;tg>0&&(rm+=` repeat(${tg}, ${eV}px)`),l.length>0&&(rm+=tj),tv>0&&(rm+=` repeat(${tv}, ${eV}px)`);let rb=-1===tE.idx&&tE.rowIdx!==tx-1;return(0,a.jsxs)("div",{role:eN,"aria-label":eC,"aria-labelledby":eO,"aria-description":eI,"aria-describedby":e_,"aria-multiselectable":!!tP||void 0,"aria-colcount":ta.length,"aria-rowcount":tN,tabIndex:-1,className:o("rdg rnvodz57-0-0-beta-57",{"rdg-viewport-dragging vlqv91k7-0-0-beta-57":eJ},ey),style:{...ex,scrollPaddingInlineStart:tE.idx>tl||e2?.idx!==void 0?`${tp}px`:void 0,scrollPaddingBlock:rc(tE.rowIdx)||e2?.rowIdx!==void 0?`${tI+tg*eV}px ${tv*eV}px`:void 0,gridTemplateColumns:tW,gridTemplateRows:rm,"--rdg-header-row-height":`${eL}px`,"--rdg-scroll-height":`${tX}px`,...th},dir:eH,ref:tr,onScroll:function(e){let{scrollTop:t,scrollLeft:r}=e.currentTarget;(0,i.flushSync)(()=>{e$(t),eG(k(r))}),ed?.(e)},onKeyDown:function(e){let{idx:t,rowIdx:r,mode:n}=tE;if("EDIT"===n)return;if(es&&rc(r)){let n=l[r],i=c(e);if(es({mode:"SELECT",row:n,column:ta[t],rowIdx:r,selectCell:rp},i),i.isGridDefaultPrevented())return}if(!(e.target instanceof Element))return;let i=null!==e.target.closest(".rdg-cell"),o=tO&&e.target===tC.current;if(i||o)switch(e.key){case"ArrowUp":case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"Tab":case"Home":case"End":case"PageUp":case"PageDown":rg(e);break;default:!function(e){var t;if(!tY)return;let r=l[tE.rowIdx],{key:n,shiftKey:i}=e;if(tP&&i&&" "===n){C(m);let t=m(r);rt({row:r,checked:!W.has(t),isShiftClick:!1}),e.preventDefault();return}!rh(tE)||(t=null!=ev,f(e)&&(86!==e.keyCode||t)||d.has(e.key))||tk(({idx:e,rowIdx:t})=>({idx:e,rowIdx:t,mode:"EDIT",row:r,originalRow:r}))}(e)}},onCopy:function(e){if(!tY)return;let{idx:t,rowIdx:r}=tE;eg?.({row:l[r],column:ta[t]},e)},onPaste:function(e){if(!ev||!y||!rh(tE))return;let{idx:t,rowIdx:r}=tE,n=ta[t],i=ev({row:l[r],column:n},e);rr(n,r,i)},"data-testid":eP,"data-cy":eR,children:[(0,a.jsxs)(P,{value:tM,children:[(0,a.jsx)(L,{value:t4,children:(0,a.jsxs)(M,{value:tL,children:[Array.from({length:ty},(e,t)=>(0,a.jsx)(ee,{rowIdx:t+1,level:-ty+t,columns:rv(tx+t),selectedCellIdx:tE.rowIdx===tx+t?tE.idx:void 0,selectCell:t9},t)),(0,a.jsx)(Z,{headerRowClass:eS,rowIdx:tu,columns:rv(tw),onColumnResize:tQ,onColumnResizeEnd:tJ,onColumnsReorder:tZ,sortColumns:K,onSortColumnsChange:t0,lastFrozenColumnIndex:tl,selectedCellIdx:tE.rowIdx===tw?tE.idx:void 0,selectCell:t9,shouldFocusGrid:!tK,direction:eH})]})}),0===l.length&&eB?eB:(0,a.jsxs)(a.Fragment,{children:[g?.map((e,t)=>{let r=tu+1+t,n=tw+1+t,i=tE.rowIdx===n;return(0,a.jsx)(ea,{"aria-rowindex":r,rowIdx:n,gridRowStart:r,row:e,top:tI+eV*t,bottom:void 0,viewportColumns:rv(n),lastFrozenColumnIndex:tl,selectedCellIdx:i?tE.idx:void 0,isTop:!0,selectCell:t7},t)}),(0,a.jsx)(N,{value:t6,children:function(){let e=[],{idx:t,rowIdx:r}=tE,n=tY&&r<tV?tV-1:tV,o=tY&&r>tD?tD+1:tD;for(let u=n;u<=o;u++){let n=u===tV-1||u===tD+1,o=n?r:u,c=tH,d=-1===t?void 0:ta[t];void 0!==d&&(c=n?[d]:rv(o));let f=l[o],h=tb+o+1,p=o,g=!1;"function"==typeof m&&(p=m(f),g=W?.has(p)??!1),e.push(eD(p,{"aria-rowindex":tb+o+1,"aria-selected":tP?g:void 0,rowIdx:o,row:f,viewportColumns:c,isRowSelectionDisabled:q?.(f)??!1,isRowSelected:g,onCellMouseDown:t1,onCellClick:t2,onCellDoubleClick:t5,onCellContextMenu:t3,rowClass:ew,gridRowStart:h,selectedCellIdx:r===o?t:void 0,draggedOverCellIdx:function(e){if(void 0===e0)return;let{rowIdx:t}=tE;return(t<e0?t<e&&e<=e0:t>e&&e>=e0)?tE.idx:void 0}(o),lastFrozenColumnIndex:tl,onRowChange:t8,selectCell:t7,selectedCellEditor:function(e){if(tE.rowIdx!==e||"SELECT"===tE.mode)return;let{idx:t,row:r}=tE,n=ta[t],o=s(n,tl,{type:"ROW",row:r}),u=n.editorOptions?.closeOnExternalRowChange??!0,c=e=>{e4(e),tk(({idx:e,rowIdx:t})=>({idx:e,rowIdx:t,mode:"SELECT"}))};return u&&l[tE.rowIdx]!==tE.originalRow&&c(!1),(0,a.jsx)($,{column:n,colSpan:o,row:r,rowIdx:e,onRowChange:(e,t,r)=>{t?(0,i.flushSync)(()=>{rr(n,tE.rowIdx,e),c(r)}):tk(t=>({...t,row:e}))},closeEditor:c,onKeyDown:es,navigate:rg},n.key)}(o)}))}return e}()}),v?.map((e,t)=>{let r=tb+l.length+t+1,n=l.length+t,i=tE.rowIdx===n,o=tT>tF?ti-eV*(v.length-t):void 0,s=void 0===o?eV*(v.length-1-t):void 0;return(0,a.jsx)(ea,{"aria-rowindex":tN-tv+t+1,rowIdx:n,gridRowStart:r,row:e,top:o,bottom:s,viewportColumns:rv(n),lastFrozenColumnIndex:tl,selectedCellIdx:i?tE.idx:void 0,isTop:!1,selectCell:t7},t)})]})]}),function(){if(null==ep||"EDIT"===tE.mode||!rf(tE))return;let{idx:e,rowIdx:t}=tE,r=ta[e];if(null==r.renderEditCell||!1===r.editable)return;let n=t===tS,i=tt(r),s=r.colSpan?.({type:"ROW",row:l[t]})??1,{insetInlineStart:u,...c}=b(r,s),d="calc(var(--rdg-drag-handle-size) * -0.5 + 1px)",f=r.idx+s-1===tG,h={...c,gridRowStart:tb+t+1,marginInlineEnd:f?void 0:d,marginBlockEnd:n?void 0:d,insetInlineStart:u?`calc(${u} + ${i}px + var(--rdg-drag-handle-size) * -0.5 - 1px)`:void 0};return(0,a.jsx)("div",{style:h,className:o("rdg-cell-drag-handle ch2wcw87-0-0-beta-57",r.frozen&&"c1wvphzh7-0-0-beta-57"),onPointerDown:ri,onPointerMove:eJ?ro:void 0,onLostPointerCapture:eJ?ra:void 0,onClick:rs,onDoubleClick:rl})}(),tH.map(({key:e,idx:t,minWidth:r,maxWidth:n})=>(0,a.jsx)("div",{className:"mlln6zg7-0-0-beta-57",style:{gridColumnStart:t+1,minWidth:r,maxWidth:n},"data-measuring-cell-key":e},e)),tO&&(0,a.jsx)("div",{ref:tC,tabIndex:rb?0:-1,className:o("f1lsfrzw7-0-0-beta-57",{"f1cte0lg7-0-0-beta-57":!rc(tE.rowIdx),"r190mhd37-0-0-beta-57":rb,"r139qu9m7-0-0-beta-57":rb&&-1!==tl}),style:{gridRowStart:tE.rowIdx+tb+1}}),null!==e2&&(0,a.jsx)(en,{scrollToPosition:e2,setScrollToCellPosition:e5,gridRef:tr})]})}function el(e){return e.querySelector(':scope > [role="row"] > [tabindex="0"]')}function eu(e,t){return e.idx===t.idx&&e.rowIdx===t.rowIdx}var ec=(0,n.memo)(function({id:e,groupKey:t,childRows:r,isExpanded:n,isCellSelected:i,column:o,row:s,groupColumnIndex:l,isGroupByColumn:u,toggleGroup:c}){let{tabIndex:d,childTabIndex:f,onFocus:h}=B(i);function p(){c(e)}let g=u&&l===o.idx;return(0,a.jsx)("div",{role:"gridcell","aria-colindex":o.idx+1,"aria-selected":i,tabIndex:d,className:y(o),style:{...b(o),cursor:g?"pointer":"default"},onMouseDown:e=>{e.preventDefault()},onClick:g?p:void 0,onFocus:h,children:(!u||g)&&o.renderGroupCell?.({groupKey:t,childRows:r,column:o,row:s,isExpanded:n,tabIndex:f,toggleGroup:p})},o.key)});(0,n.memo)(function({className:e,row:t,rowIdx:r,viewportColumns:i,selectedCellIdx:s,isRowSelected:l,selectCell:u,gridRowStart:c,groupBy:d,toggleGroup:f,isRowSelectionDisabled:h,...p}){let g=i[0].key===V?t.level+1:t.level,m=(0,n.useMemo)(()=>({isRowSelectionDisabled:!1,isRowSelected:l}),[l]);return(0,a.jsx)(A,{value:m,children:(0,a.jsx)("div",{role:"row","aria-level":t.level+1,"aria-setsize":t.setSize,"aria-posinset":t.posInSet+1,"aria-expanded":t.isExpanded,className:o(X,"rdg-group-row g1yxluv37-0-0-beta-57",`rdg-row-${r%2==0?"even":"odd"}`,-1===s&&Q,e),onMouseDown:function(){u({rowIdx:r,idx:-1},{shouldFocusCell:!0})},style:v(c),...p,children:i.map(e=>(0,a.jsx)(ec,{id:t.id,groupKey:t.groupKey,childRows:t.childRows,isExpanded:t.isExpanded,isCellSelected:s===e.idx,column:e,row:t,groupColumnIndex:g,toggleGroup:f,isGroupByColumn:d.includes(e.key)},e.key))})})});function ed(e){e?.focus(),e?.select()}function ef({row:e,column:t,onRowChange:r,onClose:n}){return(0,a.jsx)("input",{className:"rdg-text-editor t7vyx3i7-0-0-beta-57",ref:ed,value:e[t.key],onChange:n=>r({...e,[t.key]:n.target.value}),onBlur:()=>n(!0,!1)})}},75776:(e,t,r)=>{var n=r(41480);e.exports=function(e){return"function"==typeof e?e:n}},75794:(e,t,r)=>{"use strict";function n(e){return null==e?[]:Array.isArray(e)?e:[e]}r.d(t,{$1:()=>i,$r:()=>n,BU:()=>ei,D8:()=>ew,D_:()=>N,Et:()=>E,F4:()=>et,Gv:()=>S,Gy:()=>en,HV:()=>o,H_:()=>X,JT:()=>eo,Jg:()=>R,K2:()=>f,Kg:()=>k,L3:()=>Z,LV:()=>Y,Lm:()=>x,Nh:()=>ed,OK:()=>L,PM:()=>em,Pe:()=>eS,R8:()=>ex,T1:()=>eu,TF:()=>s,TX:()=>F,Tn:()=>C,Ui:()=>u,Up:()=>ev,VJ:()=>eg,WQ:()=>a,Xx:()=>c,YL:()=>p,YW:()=>D,Yi:()=>ec,Yp:()=>d,aU:()=>h,bK:()=>ey,cK:()=>I,cy:()=>y,iv:()=>g,jB:()=>v,jv:()=>es,kZ:()=>O,kn:()=>el,lQ:()=>M,n4:()=>b,oE:()=>function e(t){if(!(e=>{if(!w(e)||"[object Object]"!=Object.prototype.toString.call(e)||P(e))return!1;let t=Object.getPrototypeOf(e);if(null===t)return!0;let r=I(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&_.call(r)==T})(t)||void 0===t)return t;let r=Reflect.ownKeys(t).filter(e=>"string"==typeof e),n={};for(let i of r){let r=t[i];void 0!==r&&(n[i]=e(r))}return n},pY:()=>Q,s:()=>J,sb:()=>l,tp:()=>ep,uR:()=>V,vV:()=>ee,wg:()=>A,y$:()=>eb,zi:()=>K});var i=e=>e[0],o=e=>e[e.length-1],a=(e,...t)=>e.concat(t),s=(e,...t)=>e.filter(e=>!t.includes(e)),l=e=>Array.from(new Set(e)),u=(e,t)=>{let r=new Set(t);return e.filter(e=>!r.has(e))},c=(e,t)=>-1!==e.indexOf(t)?s(e,t):a(e,t);function d(e,t,r={}){let{step:n=1,loop:i=!0}=r,o=t+n,a=e.length,s=a-1;return -1===t?n>0?0:s:o<0?i?s:0:o>=a?i?0:t>a?a:t:o}function f(e,t,r={}){return e[d(e,t,r)]}function h(e,t,r={}){let{step:n=1,loop:i=!0}=r;return d(e,t,{step:-n,loop:i})}function p(e,t,r={}){return e[h(e,t,r)]}function g(e,t){return e.reduce((e,r,n)=>(n%t==0?e.push([r]):o(e)?.push(r),e),[])}function v(e,t){return e.reduce(([e,r],n)=>(t(n)?e.push(n):r.push(n),[e,r]),[[],[]])}var m=e=>e?.constructor.name==="Array",b=(e,t)=>{if(Object.is(e,t))return!0;if(null==e&&null!=t||null!=e&&null==t)return!1;if("function"==typeof e?.isEqual&&"function"==typeof t?.isEqual)return e.isEqual(t);if("function"==typeof e&&"function"==typeof t)return e.toString()===t.toString();if(m(e)&&m(t))return((e,t)=>{if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(!b(e[r],t[r]))return!1;return!0})(Array.from(e),Array.from(t));if("object"!=typeof e||"object"!=typeof t)return!1;let r=Object.keys(t??Object.create(null)),n=r.length;for(let t=0;t<n;t++)if(!Reflect.has(e,r[t]))return!1;for(let i=0;i<n;i++){let n=r[i];if(!b(e[n],t[n]))return!1}return!0},y=e=>Array.isArray(e),x=e=>!0===e||!1===e,w=e=>null!=e&&"object"==typeof e,S=e=>w(e)&&!y(e),E=e=>"number"==typeof e&&!Number.isNaN(e),k=e=>"string"==typeof e,C=e=>"function"==typeof e,O=e=>null==e,I=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),_=Function.prototype.toString,T=_.call(Object),P=e=>(e=>"object"==typeof e&&null!==e&&"$$typeof"in e&&"props"in e)(e)||(e=>"object"==typeof e&&null!==e&&"__v_isVNode"in e)(e),R=(e,...t)=>("function"==typeof e?e(...t):e)??void 0,A=e=>e,N=e=>e(),M=()=>{},L=(...e)=>(...t)=>{e.forEach(function(e){e?.(...t)})},V=(()=>{let e=0;return()=>(e++,e.toString(36))})();function D(e,t,...r){if(e in t){let n=t[e];return C(n)?n(...r):n}let n=Error(`No matching key: ${JSON.stringify(e)} in ${JSON.stringify(Object.keys(t))}`);throw Error.captureStackTrace?.(n,D),n}var F=(e,t)=>{try{return e()}catch(e){return e instanceof Error&&Error.captureStackTrace?.(e,F),t?.()}},{floor:j,abs:z,round:B,min:U,max:H,pow:W,sign:$}=Math,q=e=>Number.isNaN(e),G=e=>q(e)?0:e,K=(e,t)=>(e%t+t)%t,Y=(e,t)=>(e%t+t)%t,X=(e,t)=>G(e)>=t,Q=(e,t)=>G(e)<=t,J=(e,t,r)=>{let n=G(e);return(null==t||n>=t)&&(null==r||n<=r)},Z=(e,t,r)=>U(H(G(e),t),r),ee=(e,t,r)=>(G(e)-t)/(r-t),et=(e,t,r,n)=>Z(((e,t,r)=>B((G(e)-t)/r)*r+t)(e*(r-t)+t,t,n),t,r),er=(e,t)=>{let r=e,n=t.toString(),i=n.indexOf("."),o=i>=0?n.length-i:0;if(o>0){let e=W(10,o);r=B(r*e)/e}return r},en=(e,t)=>"number"==typeof t?j(e*t+.5)/t:B(e),ei=(e,t,r,n)=>{let i=null!=t?Number(t):0,o=Number(r),a=(e-i)%n,s=2*z(a)>=n?e+$(a)*(n-z(a)):e-a;if(s=er(s,n),!q(i)&&s<i)s=i;else if(!q(o)&&s>o){let e=j((o-i)/n),t=i+e*n;s=e<=0||t<i?o:t}return er(s,n)},eo=(e,t,r)=>e[t]===r?e:[...e.slice(0,t),r,...e.slice(t+1)];function ea(e,t){let r,n,i,o,a=(r=t.values,n=t.min,0===e?n:r[e-1]),s=(i=t.values,o=t.max,e===i.length-1?o:i[e+1]),l=t.values.slice();return function(r){let n=ei(r,a,s,t.step);return(l=eo(l,e,r))[e]=n,l}}function es(e,t){let r=t.values[e]+t.step;return ea(e,t)(r)}function el(e,t){let r=t.values[e]-t.step;return ea(e,t)(r)}var eu=(e,t)=>{let r=e.findIndex(e=>t-e<0);if(0===r)return r;if(-1===r)return e.length-1;let n=e[r-1],i=e[r];return z(n-t)<z(i-t)?r-1:r},ec=(e,t,r,n)=>e.map((i,o)=>({min:0===o?t:e[o-1]+n,max:o===e.length-1?r:e[o+1]-n,value:i})),ed=(e,t=0,r=10)=>{let n=Math.pow(r,t);return B(e*n)/n},ef=e=>{if(!Number.isFinite(e))return 0;let t=1,r=0;for(;Math.round(e*t)/t!==e;)t*=10,r+=1;return r},eh=(e,t,r)=>{let n="+"===t?e+r:e-r;if(e%1!=0||r%1!=0){let i=10**Math.max(ef(e),ef(r));e=Math.round(e*i),r=Math.round(r*i),n=("+"===t?e+r:e-r)/i}return n},ep=(e,t)=>eh(G(e),"+",t),eg=(e,t)=>eh(G(e),"-",t);function ev(e,t){let r={};for(let n of t){let t=e[n];void 0!==t&&(r[n]=t)}return r}var em=e=>function(t){let r={},n={},i=new Set(e);for(let e in t)i.has(e)?n[e]=t[e]:r[e]=t[e];return[n,r]};function eb(e,t=Object.is){let r={...e},n=new Set,i=()=>{n.forEach(e=>e())};return{subscribe:e=>(n.add(e),()=>n.delete(e)),get:e=>r[e],set:(e,n)=>{t(r[e],n)||(r[e]=n,i())},update:e=>{let n=!1;for(let i in e){let o=e[i];void 0===o||t(r[i],o)||(r[i]=o,n=!0)}n&&i()},snapshot:()=>({...r})}}function ey(e,t){let r,n=performance.now();return r=requestAnimationFrame(function i(o){if(o-n>=t)return void e();r=requestAnimationFrame(i)}),()=>cancelAnimationFrame(r)}function ex(...e){1===e.length?e[0]:e[1],2!==e.length||e[0]}function ew(e,t){if(null==e)throw Error(t())}function eS(e,t,r){let n=[];for(let r of t)null==e[r]&&n.push(r);if(n.length>0)throw Error(`[zag-js${r?` > ${r}`:""}] missing required props: ${n.join(", ")}`)}},76233:(e,t,r)=>{"use strict";let n;function i(e){return e+.5|0}r.d(t,{$:()=>tu,A:()=>eA,B:()=>eR,C:()=>ts,D:()=>eS,E:()=>tx,F:()=>U,G:()=>tY,H:()=>el,I:()=>tU,J:()=>tJ,K:()=>tQ,L:()=>ej,M:()=>tB,N:()=>eg,O:()=>D,P:()=>en,Q:()=>B,R:()=>tE,S:()=>eI,T:()=>ei,U:()=>ex,V:()=>tt,W:()=>e_,X:()=>tn,Y:()=>tl,Z:()=>tf,_:()=>eD,a:()=>tS,a0:()=>tw,a1:()=>eB,a2:()=>eU,a3:()=>e4,a4:()=>G,a5:()=>J,a6:()=>e6,a7:()=>ee,a8:()=>function e(t,r,n,i){return new Proxy({_cacheable:!1,_proxy:t,_context:r,_subProxy:n,_stack:new Set,_descriptors:tO(t,i),setContext:r=>e(t,r,n,i),override:o=>e(t.override(o),r,n,i)},{deleteProperty:(e,r)=>(delete e[r],delete t[r],!0),get:(t,r,n)=>tT(t,r,()=>(function(t,r,n){let{_proxy:i,_context:o,_subProxy:a,_descriptors:s}=t,l=i[r];return ee(l)&&s.isScriptable(r)&&(l=function(e,t,r,n){let{_proxy:i,_context:o,_subProxy:a,_stack:s}=r;if(s.has(e))throw Error("Recursion detected: "+Array.from(s).join("->")+"->"+e);s.add(e);let l=t(o,a||n);return s.delete(e),t_(e,l)&&(l=tR(i._scopes,i,e,l)),l}(r,l,t,n)),M(l)&&l.length&&(l=function(t,r,n,i){let{_proxy:o,_context:a,_subProxy:s,_descriptors:l}=n;if(void 0!==a.index&&i(t))return r[a.index%r.length];if(L(r[0])){let n=r,i=o._scopes.filter(e=>e!==n);for(let u of(r=[],n)){let n=tR(i,o,t,u);r.push(e(n,a,s&&s[t],l))}}return r}(r,l,t,s.isIndexable)),t_(r,l)&&(l=e(l,o,a&&a[r],s)),l})(t,r,n)),getOwnPropertyDescriptor:(e,r)=>e._descriptors.allKeys?Reflect.has(t,r)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,r),getPrototypeOf:()=>Reflect.getPrototypeOf(t),has:(e,r)=>Reflect.has(t,r),ownKeys:()=>Reflect.ownKeys(t),set:(e,r,n)=>(t[r]=n,delete e[r],!0)})},a9:()=>tC,aA:()=>t2,aB:()=>t5,aC:()=>eH,aD:()=>t3,aE:()=>ta,aF:()=>eE,aG:()=>R,aH:()=>eb,aI:()=>ep,aJ:()=>em,aK:()=>eh,aL:()=>ew,aM:()=>e3,aN:()=>ed,aO:()=>tr,aP:()=>eN,aQ:()=>eP,aa:()=>tO,ab:()=>K,ac:()=>A,ad:()=>ez,ae:()=>tX,af:()=>ti,ag:()=>et,ah:()=>rn,ai:()=>H,aj:()=>er,ak:()=>eT,al:()=>eC,am:()=>tm,an:()=>tz,ao:()=>t9,ap:()=>t7,aq:()=>t0,ar:()=>t1,as:()=>tZ,at:()=>tc,au:()=>td,av:()=>to,aw:()=>th,ax:()=>tb,ay:()=>ty,az:()=>t8,b:()=>M,c:()=>eQ,d:()=>te,e:()=>eY,f:()=>Q,g:()=>V,h:()=>Z,i:()=>L,j:()=>tk,k:()=>N,l:()=>eL,m:()=>j,n:()=>z,o:()=>e2,p:()=>eO,q:()=>eW,r:()=>eF,s:()=>ef,t:()=>ey,u:()=>eV,v:()=>F,w:()=>e$,x:()=>ev,y:()=>tL,z:()=>tG});let o=(e,t,r)=>Math.max(Math.min(e,r),t);function a(e){return o(i(2.55*e),0,255)}function s(e){return o(i(255*e),0,255)}function l(e){return o(i(e/2.55)/100,0,1)}function u(e){return o(i(100*e),0,100)}let c={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},d=[..."0123456789ABCDEF"],f=e=>d[15&e],h=e=>d[(240&e)>>4]+d[15&e],p=e=>(240&e)>>4==(15&e),g=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function v(e,t,r){let n=t*Math.min(r,1-r),i=(t,i=(t+e/30)%12)=>r-n*Math.max(Math.min(i-3,9-i,1),-1);return[i(0),i(8),i(4)]}function m(e,t,r){let n=(n,i=(n+e/60)%6)=>r-r*t*Math.max(Math.min(i,4-i,1),0);return[n(5),n(3),n(1)]}function b(e,t,r){let n,i=v(e,1,.5);for(t+r>1&&(n=1/(t+r),t*=n,r*=n),n=0;n<3;n++)i[n]*=1-t-r,i[n]+=t;return i}function y(e){let t,r,n,i=e.r/255,o=e.g/255,a=e.b/255,s=Math.max(i,o,a),l=Math.min(i,o,a),u=(s+l)/2;s!==l&&(n=s-l,r=u>.5?n/(2-s-l):n/(s+l),t=60*(t=i===s?(o-a)/n+6*(o<a):o===s?(a-i)/n+2:(i-o)/n+4)+.5);return[0|t,r||0,u]}function x(e,t,r,n){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,r,n)).map(s)}function w(e){return(e%360+360)%360}let S={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},E={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"},k=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/,C=e=>e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055,O=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function I(e,t,r){if(e){let n=y(e);n[t]=Math.max(0,Math.min(n[t]+n[t]*r,0===t?360:1)),e.r=(n=x(v,n,void 0,void 0))[0],e.g=n[1],e.b=n[2]}}function _(e,t){return e?Object.assign(t||{},e):e}function T(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=s(e[3]))):(t=_(e,{r:0,g:0,b:0,a:1})).a=s(t.a),t}class P{constructor(e){let t;if(e instanceof P)return e;let r=typeof e;"object"===r?t=T(e):"string"===r&&(t=function(e){var t,r=e.length;return"#"===e[0]&&(4===r||5===r?t={r:255&17*c[e[1]],g:255&17*c[e[2]],b:255&17*c[e[3]],a:5===r?17*c[e[4]]:255}:(7===r||9===r)&&(t={r:c[e[1]]<<4|c[e[2]],g:c[e[3]]<<4|c[e[4]],b:c[e[5]]<<4|c[e[6]],a:9===r?c[e[7]]<<4|c[e[8]]:255})),t}(e)||function(e){n||((n=function(){let e,t,r,n,i,o={},a=Object.keys(E),s=Object.keys(S);for(e=0;e<a.length;e++){for(t=0,n=i=a[e];t<s.length;t++)r=s[t],i=i.replace(r,S[r]);r=parseInt(E[n],16),o[i]=[r>>16&255,r>>8&255,255&r]}return o}()).transparent=[0,0,0,0]);let t=n[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:4===t.length?t[3]:255}}(e)||function(e){return"r"===e.charAt(0)?function(e){let t,r,n,i=k.exec(e),s=255;if(i){if(i[7]!==t){let e=+i[7];s=i[8]?a(e):o(255*e,0,255)}return t=+i[1],r=+i[3],n=+i[5],t=255&(i[2]?a(t):o(t,0,255)),{r:t,g:r=255&(i[4]?a(r):o(r,0,255)),b:n=255&(i[6]?a(n):o(n,0,255)),a:s}}}(e):function(e){let t,r=g.exec(e),n=255;if(!r)return;r[5]!==t&&(n=r[6]?a(+r[5]):s(+r[5]));let i=w(+r[2]),o=r[3]/100,l=r[4]/100;return{r:(t="hwb"===r[1]?x(b,i,o,l):"hsv"===r[1]?x(m,i,o,l):x(v,i,o,l))[0],g:t[1],b:t[2],a:n}}(e)}(e)),this._rgb=t,this._valid=!!t}get valid(){return this._valid}get rgb(){var e=_(this._rgb);return e&&(e.a=l(e.a)),e}set rgb(e){this._rgb=T(e)}rgbString(){var e;return this._valid?(e=this._rgb)&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${l(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`):void 0}hexString(){var e,t;let r,n;return this._valid?(t=p((r=e=this._rgb).r)&&p(r.g)&&p(r.b)&&p(r.a)?f:h,e?"#"+t(e.r)+t(e.g)+t(e.b)+(n=e.a,n<255?t(n):""):void 0):void 0}hslString(){return this._valid?function(e){if(!e)return;let t=y(e),r=t[0],n=u(t[1]),i=u(t[2]);return e.a<255?`hsla(${r}, ${n}%, ${i}%, ${l(e.a)})`:`hsl(${r}, ${n}%, ${i}%)`}(this._rgb):void 0}mix(e,t){if(e){let r,n=this.rgb,i=e.rgb,o=t===r?.5:t,a=2*o-1,s=n.a-i.a,l=((a*s==-1?a:(a+s)/(1+a*s))+1)/2;r=1-l,n.r=255&l*n.r+r*i.r+.5,n.g=255&l*n.g+r*i.g+.5,n.b=255&l*n.b+r*i.b+.5,n.a=o*n.a+(1-o)*i.a,this.rgb=n}return this}interpolate(e,t){return e&&(this._rgb=function(e,t,r){let n=O(l(e.r)),i=O(l(e.g)),o=O(l(e.b));return{r:s(C(n+r*(O(l(t.r))-n))),g:s(C(i+r*(O(l(t.g))-i))),b:s(C(o+r*(O(l(t.b))-o))),a:e.a+r*(t.a-e.a)}}(this._rgb,e._rgb,t)),this}clone(){return new P(this.rgb)}alpha(e){return this._rgb.a=s(e),this}clearer(e){let t=this._rgb;return t.a*=1-e,this}greyscale(){let e=this._rgb,t=i(.3*e.r+.59*e.g+.11*e.b);return e.r=e.g=e.b=t,this}opaquer(e){let t=this._rgb;return t.a*=1+e,this}negate(){let e=this._rgb;return e.r=255-e.r,e.g=255-e.g,e.b=255-e.b,this}lighten(e){return I(this._rgb,2,e),this}darken(e){return I(this._rgb,2,-e),this}saturate(e){return I(this._rgb,1,e),this}desaturate(e){return I(this._rgb,1,-e),this}rotate(e){var t,r;return t=this._rgb,(r=y(t))[0]=w(r[0]+e),t.r=(r=x(v,r,void 0,void 0))[0],t.g=r[1],t.b=r[2],this}}function R(){}let A=(()=>{let e=0;return()=>e++})();function N(e){return null==e}function M(e){if(Array.isArray&&Array.isArray(e))return!0;let t=Object.prototype.toString.call(e);return"[object"===t.slice(0,7)&&"Array]"===t.slice(-6)}function L(e){return null!==e&&"[object Object]"===Object.prototype.toString.call(e)}function V(e){return("number"==typeof e||e instanceof Number)&&isFinite(+e)}function D(e,t){return V(e)?e:t}function F(e,t){return void 0===e?t:e}let j=(e,t)=>"string"==typeof e&&e.endsWith("%")?parseFloat(e)/100:e/t,z=(e,t)=>"string"==typeof e&&e.endsWith("%")?parseFloat(e)/100*t:+e;function B(e,t,r){if(e&&"function"==typeof e.call)return e.apply(r,t)}function U(e,t,r,n){let i,o,a;if(M(e))if(o=e.length,n)for(i=o-1;i>=0;i--)t.call(r,e[i],i);else for(i=0;i<o;i++)t.call(r,e[i],i);else if(L(e))for(i=0,o=(a=Object.keys(e)).length;i<o;i++)t.call(r,e[a[i]],a[i])}function H(e,t){let r,n,i,o;if(!e||!t||e.length!==t.length)return!1;for(r=0,n=e.length;r<n;++r)if(i=e[r],o=t[r],i.datasetIndex!==o.datasetIndex||i.index!==o.index)return!1;return!0}function W(e){if(M(e))return e.map(W);if(L(e)){let t=Object.create(null),r=Object.keys(e),n=r.length,i=0;for(;i<n;++i)t[r[i]]=W(e[r[i]]);return t}return e}function $(e){return -1===["__proto__","prototype","constructor"].indexOf(e)}function q(e,t,r,n){if(!$(e))return;let i=t[e],o=r[e];L(i)&&L(o)?G(i,o,n):t[e]=W(o)}function G(e,t,r){let n,i=M(t)?t:[t],o=i.length;if(!L(e))return e;let a=(r=r||{}).merger||q;for(let t=0;t<o;++t){if(!L(n=i[t]))continue;let o=Object.keys(n);for(let t=0,i=o.length;t<i;++t)a(o[t],e,n,r)}return e}function K(e,t){return G(e,t,{merger:Y})}function Y(e,t,r){if(!$(e))return;let n=t[e],i=r[e];L(n)&&L(i)?K(n,i):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=W(i))}let X={"":e=>e,x:e=>e.x,y:e=>e.y};function Q(e,t){return(X[t]||(X[t]=function(e){let t=function(e){let t=e.split("."),r=[],n="";for(let e of t)(n+=e).endsWith("\\")?n=n.slice(0,-1)+".":(r.push(n),n="");return r}(e);return e=>{for(let r of t){if(""===r)break;e=e&&e[r]}return e}}(t)))(e)}function J(e){return e.charAt(0).toUpperCase()+e.slice(1)}let Z=e=>void 0!==e,ee=e=>"function"==typeof e,et=(e,t)=>{if(e.size!==t.size)return!1;for(let r of e)if(!t.has(r))return!1;return!0};function er(e){return"mouseup"===e.type||"click"===e.type||"contextmenu"===e.type}let en=Math.PI,ei=2*en,eo=ei+en,ea=1/0,es=en/180,el=en/2,eu=en/4,ec=2*en/3,ed=Math.log10,ef=Math.sign;function eh(e,t,r){return Math.abs(e-t)<r}function ep(e){let t=Math.round(e),r=Math.pow(10,Math.floor(ed(e=eh(e,t,e/1e3)?t:e))),n=e/r;return(n<=1?1:n<=2?2:n<=5?5:10)*r}function eg(e){let t,r=[],n=Math.sqrt(e);for(t=1;t<n;t++)e%t==0&&(r.push(t),r.push(e/t));return n===(0|n)&&r.push(n),r.sort((e,t)=>e-t).pop(),r}function ev(e){return"symbol"!=typeof e&&("object"!=typeof e||null===e||!!(Symbol.toPrimitive in e||"toString"in e||"valueOf"in e))&&!isNaN(parseFloat(e))&&isFinite(e)}function em(e,t){let r=Math.round(e);return r-t<=e&&r+t>=e}function eb(e,t,r){let n,i,o;for(n=0,i=e.length;n<i;n++)isNaN(o=e[n][r])||(t.min=Math.min(t.min,o),t.max=Math.max(t.max,o))}function ey(e){return en/180*e}function ex(e){return 180/en*e}function ew(e){if(!V(e))return;let t=1,r=0;for(;Math.round(e*t)/t!==e;)t*=10,r++;return r}function eS(e,t){let r=t.x-e.x,n=t.y-e.y,i=Math.sqrt(r*r+n*n),o=Math.atan2(n,r);return o<-.5*en&&(o+=ei),{angle:o,distance:i}}function eE(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function ek(e,t){return(e-t+eo)%ei-en}function eC(e){return(e%ei+ei)%ei}function eO(e,t,r,n){let i=eC(e),o=eC(t),a=eC(r),s=eC(o-i),l=eC(a-i),u=eC(i-o),c=eC(i-a);return i===o||i===a||n&&o===a||s>l&&u<c}function eI(e,t,r){return Math.max(t,Math.min(r,e))}function e_(e){return eI(e,-32768,32767)}function eT(e,t,r,n=1e-6){return e>=Math.min(t,r)-n&&e<=Math.max(t,r)+n}function eP(e,t,r){let n;r=r||(r=>e[r]<t);let i=e.length-1,o=0;for(;i-o>1;)r(n=o+i>>1)?o=n:i=n;return{lo:o,hi:i}}let eR=(e,t,r,n)=>eP(e,r,n?n=>{let i=e[n][t];return i<r||i===r&&e[n+1][t]===r}:n=>e[n][t]<r),eA=(e,t,r)=>eP(e,r,n=>e[n][t]>=r);function eN(e,t,r){let n=0,i=e.length;for(;n<i&&e[n]<t;)n++;for(;i>n&&e[i-1]>r;)i--;return n>0||i<e.length?e.slice(n,i):e}let eM=["push","pop","shift","splice","unshift"];function eL(e,t){if(e._chartjs)return void e._chartjs.listeners.push(t);Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),eM.forEach(t=>{let r="_onData"+J(t),n=e[t];Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value(...t){let i=n.apply(this,t);return e._chartjs.listeners.forEach(e=>{"function"==typeof e[r]&&e[r](...t)}),i}})})}function eV(e,t){let r=e._chartjs;if(!r)return;let n=r.listeners,i=n.indexOf(t);-1!==i&&n.splice(i,1),n.length>0||(eM.forEach(t=>{delete e[t]}),delete e._chartjs)}function eD(e){let t=new Set(e);return t.size===e.length?e:Array.from(t)}let eF="undefined"==typeof window?function(e){return e()}:window.requestAnimationFrame;function ej(e,t){let r=[],n=!1;return function(...i){r=i,n||(n=!0,eF.call(window,()=>{n=!1,e.apply(t,r)}))}}function ez(e,t){let r;return function(...n){return t?(clearTimeout(r),r=setTimeout(e,t,n)):e.apply(this,n),t}}let eB=e=>"start"===e?"left":"end"===e?"right":"center",eU=(e,t,r)=>"start"===e?t:"end"===e?r:(t+r)/2,eH=(e,t,r,n)=>e===(n?"left":"right")?r:"center"===e?(t+r)/2:t;function eW(e,t,r){let n=t.length,i=0,o=n;if(e._sorted){let{iScale:a,vScale:s,_parsed:l}=e,u=e.dataset&&e.dataset.options?e.dataset.options.spanGaps:null,c=a.axis,{min:d,max:f,minDefined:h,maxDefined:p}=a.getUserBounds();if(h){if(i=Math.min(eR(l,c,d).lo,r?n:eR(t,c,a.getPixelForValue(d)).lo),u){let e=l.slice(0,i+1).reverse().findIndex(e=>!N(e[s.axis]));i-=Math.max(0,e)}i=eI(i,0,n-1)}if(p){let e=Math.max(eR(l,a.axis,f,!0).hi+1,r?0:eR(t,c,a.getPixelForValue(f),!0).hi+1);if(u){let t=l.slice(e-1).findIndex(e=>!N(e[s.axis]));e+=Math.max(0,t)}o=eI(e,i,n)-i}else o=n-i}return{start:i,count:o}}function e$(e){let{xScale:t,yScale:r,_scaleRanges:n}=e,i={xmin:t.min,xmax:t.max,ymin:r.min,ymax:r.max};if(!n)return e._scaleRanges=i,!0;let o=n.xmin!==t.min||n.xmax!==t.max||n.ymin!==r.min||n.ymax!==r.max;return Object.assign(n,i),o}let eq=e=>0===e||1===e,eG=(e,t,r)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-t)*ei/r)),eK=(e,t,r)=>Math.pow(2,-10*e)*Math.sin((e-t)*ei/r)+1,eY={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>-Math.cos(e*el)+1,easeOutSine:e=>Math.sin(e*el),easeInOutSine:e=>-.5*(Math.cos(en*e)-1),easeInExpo:e=>0===e?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>1===e?1:-Math.pow(2,-10*e)+1,easeInOutExpo:e=>eq(e)?e:e<.5?.5*Math.pow(2,10*(2*e-1)):.5*(-Math.pow(2,-10*(2*e-1))+2),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>eq(e)?e:eG(e,.075,.3),easeOutElastic:e=>eq(e)?e:eK(e,.075,.3),easeInOutElastic:e=>eq(e)?e:e<.5?.5*eG(2*e,.1125,.45):.5+.5*eK(2*e-1,.1125,.45),easeInBack:e=>e*e*(2.70158*e-1.70158),easeOutBack:e=>(e-=1)*e*(2.70158*e+1.70158)+1,easeInOutBack(e){let t=1.70158;return(e/=.5)<1?.5*(e*e*(((t*=1.525)+1)*e-t)):.5*((e-=2)*e*(((t*=1.525)+1)*e+t)+2)},easeInBounce:e=>1-eY.easeOutBounce(1-e),easeOutBounce:e=>e<.36363636363636365?7.5625*e*e:e<.7272727272727273?7.5625*(e-=.5454545454545454)*e+.75:e<.9090909090909091?7.5625*(e-=.8181818181818182)*e+.9375:7.5625*(e-=.9545454545454546)*e+.984375,easeInOutBounce:e=>e<.5?.5*eY.easeInBounce(2*e):.5*eY.easeOutBounce(2*e-1)+.5};function eX(e){if(e&&"object"==typeof e){let t=e.toString();return"[object CanvasPattern]"===t||"[object CanvasGradient]"===t}return!1}function eQ(e){return eX(e)?e:new P(e)}function eJ(e){return eX(e)?e:new P(e).saturate(.5).darken(.1).hexString()}let eZ=["x","y","borderWidth","radius","tension"],e0=["color","borderColor","backgroundColor"],e1=new Map;function e2(e,t,r){return(function(e,t){let r=e+JSON.stringify(t=t||{}),n=e1.get(r);return n||(n=new Intl.NumberFormat(e,t),e1.set(r,n)),n})(t,r).format(e)}let e5={values:e=>M(e)?e:""+e,numeric(e,t,r){let n;if(0===e)return"0";let i=this.chart.options.locale,o=e;if(r.length>1){var a,s;let t,i=Math.max(Math.abs(r[0].value),Math.abs(r[r.length-1].value));(i<1e-4||i>1e15)&&(n="scientific"),a=e,Math.abs(t=(s=r).length>3?s[2].value-s[1].value:s[1].value-s[0].value)>=1&&a!==Math.floor(a)&&(t=a-Math.floor(a)),o=t}let l=ed(Math.abs(o)),u=isNaN(l)?1:Math.max(Math.min(-1*Math.floor(l),20),0),c={notation:n,minimumFractionDigits:u,maximumFractionDigits:u};return Object.assign(c,this.options.ticks.format),e2(e,i,c)},logarithmic(e,t,r){return 0===e?"0":[1,2,3,5,10,15].includes(r[t].significand||e/Math.pow(10,Math.floor(ed(e))))||t>.8*r.length?e5.numeric.call(this,e,t,r):""}};var e3={formatters:e5};let e4=Object.create(null),e6=Object.create(null);function e8(e,t){if(!t)return e;let r=t.split(".");for(let t=0,n=r.length;t<n;++t){let n=r[t];e=e[n]||(e[n]=Object.create(null))}return e}function e7(e,t,r){return"string"==typeof t?G(e8(e,t),r):G(e8(e,""),t)}class e9{constructor(e,t){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=e=>e.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(e,t)=>eJ(t.backgroundColor),this.hoverBorderColor=(e,t)=>eJ(t.borderColor),this.hoverColor=(e,t)=>eJ(t.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(e),this.apply(t)}set(e,t){return e7(this,e,t)}get(e){return e8(this,e)}describe(e,t){return e7(e6,e,t)}override(e,t){return e7(e4,e,t)}route(e,t,r,n){let i=e8(this,e),o=e8(this,r),a="_"+t;Object.defineProperties(i,{[a]:{value:i[t],writable:!0},[t]:{enumerable:!0,get(){let e=this[a],t=o[n];return L(e)?Object.assign({},t,e):F(e,t)},set(e){this[a]=e}}})}apply(e){e.forEach(e=>e(this))}}var te=new e9({_scriptable:e=>!e.startsWith("on"),_indexable:e=>"events"!==e,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[function(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:e=>"onProgress"!==e&&"onComplete"!==e&&"fn"!==e}),e.set("animations",{colors:{type:"color",properties:e0},numbers:{type:"number",properties:eZ}}),e.describe("animations",{_fallback:"animation"}),e.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:e=>0|e}}}})},function(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})},function(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(e,t)=>t.lineWidth,tickColor:(e,t)=>t.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:e3.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:e=>!e.startsWith("before")&&!e.startsWith("after")&&"callback"!==e&&"parser"!==e,_indexable:e=>"borderDash"!==e&&"tickBorderDash"!==e&&"dash"!==e}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:e=>"backdropPadding"!==e&&"callback"!==e,_indexable:e=>"backdropPadding"!==e})}]);function tt(e,t,r,n,i){let o=t[i];return o||(o=t[i]=e.measureText(i).width,r.push(i)),o>n&&(n=o),n}function tr(e,t,r,n){let i,o,a,s,l,u=(n=n||{}).data=n.data||{},c=n.garbageCollect=n.garbageCollect||[];n.font!==t&&(u=n.data={},c=n.garbageCollect=[],n.font=t),e.save(),e.font=t;let d=0,f=r.length;for(i=0;i<f;i++)if(null==(s=r[i])||M(s)){if(M(s))for(o=0,a=s.length;o<a;o++)null==(l=s[o])||M(l)||(d=tt(e,u,c,d,l))}else d=tt(e,u,c,d,s);e.restore();let h=c.length/2;if(h>r.length){for(i=0;i<h;i++)delete u[c[i]];c.splice(0,h)}return d}function tn(e,t,r){let n=e.currentDevicePixelRatio,i=0!==r?Math.max(r/2,.5):0;return Math.round((t-i)*n)/n+i}function ti(e,t){(t||e)&&((t=t||e.getContext("2d")).save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore())}function to(e,t,r,n){ta(e,t,r,n,null)}function ta(e,t,r,n,i){let o,a,s,l,u,c,d,f,h=t.pointStyle,p=t.rotation,g=t.radius,v=(p||0)*es;if(h&&"object"==typeof h&&("[object HTMLImageElement]"===(o=h.toString())||"[object HTMLCanvasElement]"===o)){e.save(),e.translate(r,n),e.rotate(v),e.drawImage(h,-h.width/2,-h.height/2,h.width,h.height),e.restore();return}if(!isNaN(g)&&!(g<=0)){switch(e.beginPath(),h){default:i?e.ellipse(r,n,i/2,g,0,0,ei):e.arc(r,n,g,0,ei),e.closePath();break;case"triangle":c=i?i/2:g,e.moveTo(r+Math.sin(v)*c,n-Math.cos(v)*g),v+=ec,e.lineTo(r+Math.sin(v)*c,n-Math.cos(v)*g),v+=ec,e.lineTo(r+Math.sin(v)*c,n-Math.cos(v)*g),e.closePath();break;case"rectRounded":u=.516*g,a=Math.cos(v+eu)*(l=g-u),d=Math.cos(v+eu)*(i?i/2-u:l),s=Math.sin(v+eu)*l,f=Math.sin(v+eu)*(i?i/2-u:l),e.arc(r-d,n-s,u,v-en,v-el),e.arc(r+f,n-a,u,v-el,v),e.arc(r+d,n+s,u,v,v+el),e.arc(r-f,n+a,u,v+el,v+en),e.closePath();break;case"rect":if(!p){l=Math.SQRT1_2*g,c=i?i/2:l,e.rect(r-c,n-l,2*c,2*l);break}v+=eu;case"rectRot":d=Math.cos(v)*(i?i/2:g),a=Math.cos(v)*g,s=Math.sin(v)*g,f=Math.sin(v)*(i?i/2:g),e.moveTo(r-d,n-s),e.lineTo(r+f,n-a),e.lineTo(r+d,n+s),e.lineTo(r-f,n+a),e.closePath();break;case"crossRot":v+=eu;case"cross":d=Math.cos(v)*(i?i/2:g),a=Math.cos(v)*g,s=Math.sin(v)*g,f=Math.sin(v)*(i?i/2:g),e.moveTo(r-d,n-s),e.lineTo(r+d,n+s),e.moveTo(r+f,n-a),e.lineTo(r-f,n+a);break;case"star":d=Math.cos(v)*(i?i/2:g),a=Math.cos(v)*g,s=Math.sin(v)*g,f=Math.sin(v)*(i?i/2:g),e.moveTo(r-d,n-s),e.lineTo(r+d,n+s),e.moveTo(r+f,n-a),e.lineTo(r-f,n+a),v+=eu,d=Math.cos(v)*(i?i/2:g),a=Math.cos(v)*g,s=Math.sin(v)*g,f=Math.sin(v)*(i?i/2:g),e.moveTo(r-d,n-s),e.lineTo(r+d,n+s),e.moveTo(r+f,n-a),e.lineTo(r-f,n+a);break;case"line":a=i?i/2:Math.cos(v)*g,s=Math.sin(v)*g,e.moveTo(r-a,n-s),e.lineTo(r+a,n+s);break;case"dash":e.moveTo(r,n),e.lineTo(r+Math.cos(v)*(i?i/2:g),n+Math.sin(v)*g);break;case!1:e.closePath()}e.fill(),t.borderWidth>0&&e.stroke()}}function ts(e,t,r){return r=r||.5,!t||e&&e.x>t.left-r&&e.x<t.right+r&&e.y>t.top-r&&e.y<t.bottom+r}function tl(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()}function tu(e){e.restore()}function tc(e,t,r,n,i){if(!t)return e.lineTo(r.x,r.y);if("middle"===i){let n=(t.x+r.x)/2;e.lineTo(n,t.y),e.lineTo(n,r.y)}else"after"===i!=!!n?e.lineTo(t.x,r.y):e.lineTo(r.x,t.y);e.lineTo(r.x,r.y)}function td(e,t,r,n){if(!t)return e.lineTo(r.x,r.y);e.bezierCurveTo(n?t.cp1x:t.cp2x,n?t.cp1y:t.cp2y,n?r.cp2x:r.cp1x,n?r.cp2y:r.cp1y,r.x,r.y)}function tf(e,t,r,n,i,o={}){let a,s,l=M(t)?t:[t],u=o.strokeWidth>0&&""!==o.strokeColor;for(e.save(),e.font=i.string,o.translation&&e.translate(o.translation[0],o.translation[1]),N(o.rotation)||e.rotate(o.rotation),o.color&&(e.fillStyle=o.color),o.textAlign&&(e.textAlign=o.textAlign),o.textBaseline&&(e.textBaseline=o.textBaseline),a=0;a<l.length;++a)s=l[a],o.backdrop&&function(e,t){let r=e.fillStyle;e.fillStyle=t.color,e.fillRect(t.left,t.top,t.width,t.height),e.fillStyle=r}(e,o.backdrop),u&&(o.strokeColor&&(e.strokeStyle=o.strokeColor),N(o.strokeWidth)||(e.lineWidth=o.strokeWidth),e.strokeText(s,r,n,o.maxWidth)),e.fillText(s,r,n,o.maxWidth),function(e,t,r,n,i){if(i.strikethrough||i.underline){let o=e.measureText(n),a=t-o.actualBoundingBoxLeft,s=t+o.actualBoundingBoxRight,l=r-o.actualBoundingBoxAscent,u=r+o.actualBoundingBoxDescent,c=i.strikethrough?(l+u)/2:u;e.strokeStyle=e.fillStyle,e.beginPath(),e.lineWidth=i.decorationWidth||2,e.moveTo(a,c),e.lineTo(s,c),e.stroke()}}(e,r,n,s,o),n+=Number(i.lineHeight);e.restore()}function th(e,t){let{x:r,y:n,w:i,h:o,radius:a}=t;e.arc(r+a.topLeft,n+a.topLeft,a.topLeft,1.5*en,en,!0),e.lineTo(r,n+o-a.bottomLeft),e.arc(r+a.bottomLeft,n+o-a.bottomLeft,a.bottomLeft,en,el,!0),e.lineTo(r+i-a.bottomRight,n+o),e.arc(r+i-a.bottomRight,n+o-a.bottomRight,a.bottomRight,el,0,!0),e.lineTo(r+i,n+a.topRight),e.arc(r+i-a.topRight,n+a.topRight,a.topRight,0,-el,!0),e.lineTo(r+a.topLeft,n)}let tp=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,tg=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/,tv=e=>+e||0;function tm(e,t){let r={},n=L(t),i=n?Object.keys(t):t,o=L(e)?n?r=>F(e[r],e[t[r]]):t=>e[t]:()=>e;for(let e of i)r[e]=tv(o(e));return r}function tb(e){return tm(e,{top:"y",right:"x",bottom:"y",left:"x"})}function ty(e){return tm(e,["topLeft","topRight","bottomLeft","bottomRight"])}function tx(e){let t=tb(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function tw(e,t){e=e||{},t=t||te.font;let r=F(e.size,t.size);"string"==typeof r&&(r=parseInt(r,10));let n=F(e.style,t.style);n&&!(""+n).match(tg)&&(console.warn('Invalid font style specified: "'+n+'"'),n=void 0);let i={family:F(e.family,t.family),lineHeight:function(e,t){let r=(""+e).match(tp);if(!r||"normal"===r[1])return 1.2*t;switch(e=+r[2],r[3]){case"px":return e;case"%":e/=100}return t*e}(F(e.lineHeight,t.lineHeight),r),size:r,style:n,weight:F(e.weight,t.weight),string:""};return i.string=!i||N(i.size)||N(i.family)?null:(i.style?i.style+" ":"")+(i.weight?i.weight+" ":"")+i.size+"px "+i.family,i}function tS(e,t,r,n){let i,o,a,s=!0;for(i=0,o=e.length;i<o;++i)if(void 0!==(a=e[i])&&(void 0!==t&&"function"==typeof a&&(a=a(t),s=!1),void 0!==r&&M(a)&&(a=a[r%a.length],s=!1),void 0!==a))return n&&!s&&(n.cacheable=!1),a}function tE(e,t,r){let{min:n,max:i}=e,o=z(t,(i-n)/2),a=(e,t)=>r&&0===e?0:e+t;return{min:a(n,-Math.abs(o)),max:a(i,o)}}function tk(e,t){return Object.assign(Object.create(e),t)}function tC(e,t=[""],r,n,i=()=>e[0]){let o=r||e;return void 0===n&&(n=tN("_fallback",e)),new Proxy({[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:o,_fallback:n,_getTarget:i,override:r=>tC([r,...e],t,o,n)},{deleteProperty:(t,r)=>(delete t[r],delete t._keys,delete e[0][r],!0),get:(r,n)=>tT(r,n,()=>(function(e,t,r,n){let i;for(let o of t)if(void 0!==(i=tN(tI(o,e),r)))return t_(e,i)?tR(r,n,e,i):i})(n,t,e,r)),getOwnPropertyDescriptor:(e,t)=>Reflect.getOwnPropertyDescriptor(e._scopes[0],t),getPrototypeOf:()=>Reflect.getPrototypeOf(e[0]),has:(e,t)=>tM(e).includes(t),ownKeys:e=>tM(e),set(e,t,r){let n=e._storage||(e._storage=i());return e[t]=n[t]=r,delete e._keys,!0}})}function tO(e,t={scriptable:!0,indexable:!0}){let{_scriptable:r=t.scriptable,_indexable:n=t.indexable,_allKeys:i=t.allKeys}=e;return{allKeys:i,scriptable:r,indexable:n,isScriptable:ee(r)?r:()=>r,isIndexable:ee(n)?n:()=>n}}let tI=(e,t)=>e?e+J(t):t,t_=(e,t)=>L(t)&&"adapters"!==e&&(null===Object.getPrototypeOf(t)||t.constructor===Object);function tT(e,t,r){if(Object.prototype.hasOwnProperty.call(e,t)||"constructor"===t)return e[t];let n=r();return e[t]=n,n}let tP=(e,t)=>!0===e?t:"string"==typeof e?Q(t,e):void 0;function tR(e,t,r,n){var i;let o=t._rootScopes,a=(i=t._fallback,ee(i)?i(r,n):i),s=[...e,...o],l=new Set;l.add(n);let u=tA(l,s,r,a||r,n);return null!==u&&(void 0===a||a===r||null!==(u=tA(l,s,a,u,n)))&&tC(Array.from(l),[""],o,a,()=>(function(e,t,r){let n=e._getTarget();t in n||(n[t]={});let i=n[t];return M(i)&&L(r)?r:i||{}})(t,r,n))}function tA(e,t,r,n,i){for(;r;)r=function(e,t,r,n,i){for(let a of t){let t=tP(r,a);if(t){var o;e.add(t);let a=(o=t._fallback,ee(o)?o(r,i):o);if(void 0!==a&&a!==r&&a!==n)return a}else if(!1===t&&void 0!==n&&r!==n)return null}return!1}(e,t,r,n,i);return r}function tN(e,t){for(let r of t){if(!r)continue;let t=r[e];if(void 0!==t)return t}}function tM(e){let t=e._keys;return t||(t=e._keys=function(e){let t=new Set;for(let r of e)for(let e of Object.keys(r).filter(e=>!e.startsWith("_")))t.add(e);return Array.from(t)}(e._scopes)),t}function tL(e,t,r,n){let i,o,a,{iScale:s}=e,{key:l="r"}=this._parsing,u=Array(n);for(i=0;i<n;++i)a=t[o=i+r],u[i]={r:s.parse(Q(a,l),o)};return u}let tV=Number.EPSILON||1e-14,tD=(e,t)=>t<e.length&&!e[t].skip&&e[t],tF=e=>"x"===e?"y":"x";function tj(e,t,r){return Math.max(Math.min(e,r),t)}function tz(e,t,r,n,i){let o,a,s,l;if(t.spanGaps&&(e=e.filter(e=>!e.skip)),"monotone"===t.cubicInterpolationMode)!function(e,t="x"){let r,n,i,o=tF(t),a=e.length,s=Array(a).fill(0),l=Array(a),u=tD(e,0);for(r=0;r<a;++r)if(n=i,i=u,u=tD(e,r+1),i){if(u){let e=u[t]-i[t];s[r]=0!==e?(u[o]-i[o])/e:0}l[r]=n?u?ef(s[r-1])!==ef(s[r])?0:(s[r-1]+s[r])/2:s[r-1]:s[r]}!function(e,t,r){let n,i,o,a,s,l=e.length,u=tD(e,0);for(let c=0;c<l-1;++c)if(s=u,u=tD(e,c+1),s&&u){if(eh(t[c],0,tV)){r[c]=r[c+1]=0;continue}(a=Math.pow(n=r[c]/t[c],2)+Math.pow(i=r[c+1]/t[c],2))<=9||(o=3/Math.sqrt(a),r[c]=n*o*t[c],r[c+1]=i*o*t[c])}}(e,s,l),function(e,t,r="x"){let n,i,o,a=tF(r),s=e.length,l=tD(e,0);for(let u=0;u<s;++u){if(i=o,o=l,l=tD(e,u+1),!o)continue;let s=o[r],c=o[a];i&&(n=(s-i[r])/3,o[`cp1${r}`]=s-n,o[`cp1${a}`]=c-n*t[u]),l&&(n=(l[r]-s)/3,o[`cp2${r}`]=s+n,o[`cp2${a}`]=c+n*t[u])}}(e,l,t)}(e,i);else{let r=n?e[e.length-1]:e[0];for(o=0,a=e.length;o<a;++o)l=function(e,t,r,n){let i=e.skip?t:e,o=r.skip?t:r,a=eE(t,i),s=eE(o,t),l=a/(a+s),u=s/(a+s);l=isNaN(l)?0:l,u=isNaN(u)?0:u;let c=n*l,d=n*u;return{previous:{x:t.x-c*(o.x-i.x),y:t.y-c*(o.y-i.y)},next:{x:t.x+d*(o.x-i.x),y:t.y+d*(o.y-i.y)}}}(r,s=e[o],e[Math.min(o+1,a-!n)%a],t.tension),s.cp1x=l.previous.x,s.cp1y=l.previous.y,s.cp2x=l.next.x,s.cp2y=l.next.y,r=s}t.capBezierPoints&&function(e,t){let r,n,i,o,a,s=ts(e[0],t);for(r=0,n=e.length;r<n;++r)a=o,o=s,s=r<n-1&&ts(e[r+1],t),o&&(i=e[r],a&&(i.cp1x=tj(i.cp1x,t.left,t.right),i.cp1y=tj(i.cp1y,t.top,t.bottom)),s&&(i.cp2x=tj(i.cp2x,t.left,t.right),i.cp2y=tj(i.cp2y,t.top,t.bottom)))}(e,r)}function tB(){return"undefined"!=typeof window&&"undefined"!=typeof document}function tU(e){let t=e.parentNode;return t&&"[object ShadowRoot]"===t.toString()&&(t=t.host),t}function tH(e,t,r){let n;return"string"==typeof e?(n=parseInt(e,10),-1!==e.indexOf("%")&&(n=n/100*t.parentNode[r])):n=e,n}let tW=e=>e.ownerDocument.defaultView.getComputedStyle(e,null),t$=["top","right","bottom","left"];function tq(e,t,r){let n={};r=r?"-"+r:"";for(let i=0;i<4;i++){let o=t$[i];n[o]=parseFloat(e[t+"-"+o+r])||0}return n.width=n.left+n.right,n.height=n.top+n.bottom,n}function tG(e,t){if("native"in e)return e;let{canvas:r,currentDevicePixelRatio:n}=t,i=tW(r),o="border-box"===i.boxSizing,a=tq(i,"padding"),s=tq(i,"border","width"),{x:l,y:u,box:c}=function(e,t){let r,n,i,o=e.touches,a=o&&o.length?o[0]:e,{offsetX:s,offsetY:l}=a,u=!1;if(i=e.target,(s>0||l>0)&&(!i||!i.shadowRoot))r=s,n=l;else{let e=t.getBoundingClientRect();r=a.clientX-e.left,n=a.clientY-e.top,u=!0}return{x:r,y:n,box:u}}(e,r),d=a.left+(c&&s.left),f=a.top+(c&&s.top),{width:h,height:p}=t;return o&&(h-=a.width+s.width,p-=a.height+s.height),{x:Math.round((l-d)/h*r.width/n),y:Math.round((u-f)/p*r.height/n)}}let tK=e=>Math.round(10*e)/10;function tY(e,t,r,n){let i=tW(e),o=tq(i,"margin"),a=tH(i.maxWidth,e,"clientWidth")||ea,s=tH(i.maxHeight,e,"clientHeight")||ea,l=function(e,t,r){let n,i;if(void 0===t||void 0===r){let o=e&&tU(e);if(o){let e=o.getBoundingClientRect(),a=tW(o),s=tq(a,"border","width"),l=tq(a,"padding");t=e.width-l.width-s.width,r=e.height-l.height-s.height,n=tH(a.maxWidth,o,"clientWidth"),i=tH(a.maxHeight,o,"clientHeight")}else t=e.clientWidth,r=e.clientHeight}return{width:t,height:r,maxWidth:n||ea,maxHeight:i||ea}}(e,t,r),{width:u,height:c}=l;if("content-box"===i.boxSizing){let e=tq(i,"border","width"),t=tq(i,"padding");u-=t.width+e.width,c-=t.height+e.height}return u=Math.max(0,u-o.width),c=Math.max(0,n?u/n:c-o.height),u=tK(Math.min(u,a,l.maxWidth)),c=tK(Math.min(c,s,l.maxHeight)),u&&!c&&(c=tK(u/2)),(void 0!==t||void 0!==r)&&n&&l.height&&c>l.height&&(u=tK(Math.floor((c=l.height)*n))),{width:u,height:c}}function tX(e,t,r){let n=t||1,i=Math.floor(e.height*n),o=Math.floor(e.width*n);e.height=Math.floor(e.height),e.width=Math.floor(e.width);let a=e.canvas;return a.style&&(r||!a.style.height&&!a.style.width)&&(a.style.height=`${e.height}px`,a.style.width=`${e.width}px`),(e.currentDevicePixelRatio!==n||a.height!==i||a.width!==o)&&(e.currentDevicePixelRatio=n,a.height=i,a.width=o,e.ctx.setTransform(n,0,0,n,0,0),!0)}let tQ=function(){let e=!1;try{let t={get passive(){return e=!0,!1}};tB()&&(window.addEventListener("test",null,t),window.removeEventListener("test",null,t))}catch(e){}return e}();function tJ(e,t){let r=tW(e).getPropertyValue(t),n=r&&r.match(/^(\d+)(\.\d+)?px$/);return n?+n[1]:void 0}function tZ(e,t,r,n){return{x:e.x+r*(t.x-e.x),y:e.y+r*(t.y-e.y)}}function t0(e,t,r,n){return{x:e.x+r*(t.x-e.x),y:"middle"===n?r<.5?e.y:t.y:"after"===n?r<1?e.y:t.y:r>0?t.y:e.y}}function t1(e,t,r,n){let i={x:e.cp2x,y:e.cp2y},o={x:t.cp1x,y:t.cp1y},a=tZ(e,i,r),s=tZ(i,o,r),l=tZ(o,t,r),u=tZ(a,s,r),c=tZ(s,l,r);return tZ(u,c,r)}function t2(e,t,r){var n;return e?(n=r,{x:e=>t+t+n-e,setWidth(e){n=e},textAlign:e=>"center"===e?e:"right"===e?"left":"right",xPlus:(e,t)=>e-t,leftForLtr:(e,t)=>e-t}):{x:e=>e,setWidth(e){},textAlign:e=>e,xPlus:(e,t)=>e+t,leftForLtr:(e,t)=>e}}function t5(e,t){let r,n;("ltr"===t||"rtl"===t)&&(n=[(r=e.canvas.style).getPropertyValue("direction"),r.getPropertyPriority("direction")],r.setProperty("direction",t,"important"),e.prevTextDirection=n)}function t3(e,t){void 0!==t&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function t4(e){return"angle"===e?{between:eO,compare:ek,normalize:eC}:{between:eT,compare:(e,t)=>e-t,normalize:e=>e}}function t6({start:e,end:t,count:r,loop:n,style:i}){return{start:e%r,end:t%r,loop:n&&(t-e+1)%r==0,style:i}}function t8(e,t,r){let n,i,o;if(!r)return[e];let{property:a,start:s,end:l}=r,u=t.length,{compare:c,between:d,normalize:f}=t4(a),{start:h,end:p,loop:g,style:v}=function(e,t,r){let n,{property:i,start:o,end:a}=r,{between:s,normalize:l}=t4(i),u=t.length,{start:c,end:d,loop:f}=e;if(f){for(c+=u,d+=u,n=0;n<u&&s(l(t[c%u][i]),o,a);++n)c--,d--;c%=u,d%=u}return d<c&&(d+=u),{start:c,end:d,loop:f,style:e.style}}(e,t,r),m=[],b=!1,y=null,x=()=>b||d(s,o,n)&&0!==c(s,o),w=()=>!b||0===c(l,n)||d(l,o,n);for(let e=h,r=h;e<=p;++e)(i=t[e%u]).skip||(n=f(i[a]))!==o&&(b=d(n,s,l),null===y&&x()&&(y=0===c(n,s)?e:r),null!==y&&w()&&(m.push(t6({start:y,end:e,loop:g,count:u,style:v})),y=null),r=e,o=n);return null!==y&&m.push(t6({start:y,end:p,loop:g,count:u,style:v})),m}function t7(e,t){let r=[],n=e.segments;for(let i=0;i<n.length;i++){let o=t8(n[i],e.points,t);o.length&&r.push(...o)}return r}function t9(e,t){let r=e.points,n=e.options.spanGaps,i=r.length;if(!i)return[];let o=!!e._loop,{start:a,end:s}=function(e,t,r,n){let i=0,o=t-1;if(r&&!n)for(;i<t&&!e[i].skip;)i++;for(;i<t&&e[i].skip;)i++;for(i%=t,r&&(o+=i);o>i&&e[o%t].skip;)o--;return{start:i,end:o%=t}}(r,i,o,n);if(!0===n)return re(e,[{start:a,end:s,loop:o}],r,t);let l=s<a?s+i:s,u=!!e._fullLoop&&0===a&&s===i-1;return re(e,function(e,t,r,n){let i,o=e.length,a=[],s=t,l=e[t];for(i=t+1;i<=r;++i){let r=e[i%o];r.skip||r.stop?l.skip||(n=!1,a.push({start:t%o,end:(i-1)%o,loop:n}),t=s=r.stop?i:null):(s=i,l.skip&&(t=i)),l=r}return null!==s&&a.push({start:t%o,end:s%o,loop:n}),a}(r,a,l,u),r,t)}function re(e,t,r,n){return n&&n.setContext&&r?function(e,t,r,n){let i=e._chart.getContext(),o=rt(e.options),{_datasetIndex:a,options:{spanGaps:s}}=e,l=r.length,u=[],c=o,d=t[0].start,f=d;function h(e,t,n,i){let o=s?-1:1;if(e!==t){for(e+=l;r[e%l].skip;)e-=o;for(;r[t%l].skip;)t+=o;e%l!=t%l&&(u.push({start:e%l,end:t%l,loop:n,style:i}),c=i,d=t%l)}}for(let e of t){let t,o=r[(d=s?d:e.start)%l];for(f=d+1;f<=e.end;f++){let s=r[f%l];(function(e,t){if(!t)return!1;let r=[],n=function(e,t){return eX(t)?(r.includes(t)||r.push(t),r.indexOf(t)):t};return JSON.stringify(e,n)!==JSON.stringify(t,n)})(t=rt(n.setContext(tk(i,{type:"segment",p0:o,p1:s,p0DataIndex:(f-1)%l,p1DataIndex:f%l,datasetIndex:a}))),c)&&h(d,f-1,e.loop,c),o=s,c=t}d<f-1&&h(d,f-1,e.loop,c)}return u}(e,t,r,n):t}function rt(e){return{backgroundColor:e.backgroundColor,borderCapStyle:e.borderCapStyle,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderJoinStyle:e.borderJoinStyle,borderWidth:e.borderWidth,borderColor:e.borderColor}}function rr(e,t,r){return e.options.clip?e[r]:t[r]}function rn(e,t){let r=t._clip;if(r.disabled)return!1;let n=function(e,t){let{xScale:r,yScale:n}=e;return r&&n?{left:rr(r,t,"left"),right:rr(r,t,"right"),top:rr(n,t,"top"),bottom:rr(n,t,"bottom")}:t}(t,e.chartArea);return{left:!1===r.left?0:n.left-(!0===r.left?0:r.left),right:!1===r.right?e.width:n.right+(!0===r.right?0:r.right),top:!1===r.top?0:n.top-(!0===r.top?0:r.top),bottom:!1===r.bottom?e.height:n.bottom+(!0===r.bottom?0:r.bottom)}}},76420:e=>{var t=/\s/;e.exports=function(e){for(var r=e.length;r--&&t.test(e.charAt(r)););return r}},76566:(e,t,r)=>{"use strict";r.d(t,{Aq:()=>x,MI:()=>u,Ng:()=>b});var n=r(43690),i=r(77534),o=r(87826),a=r(76808),s=r(75794),l=r(41562),u=(0,n.y)("radio-group").parts("root","label","item","itemText","itemControl","indicator"),c=u.build(),d=e=>e.ids?.root??`radio-group:${e.id}`,f=e=>e.ids?.label??`radio-group:${e.id}:label`,h=(e,t)=>e.ids?.item?.(t)??`radio-group:${e.id}:radio:${t}`,p=(e,t)=>e.ids?.itemHiddenInput?.(t)??`radio-group:${e.id}:radio:input:${t}`,g=e=>e.ids?.indicator??`radio-group:${e.id}:indicator`,v=e=>e.getById(d(e)),m=e=>{let t=CSS.escape(d(e)),r=`input[type=radio][data-ownedby='${t}']:not([disabled])`;return(0,i.YG)(v(e),r)};function b(e,t){let{context:r,send:n,computed:a,prop:s,scope:l,refs:u}=e,m=a("isDisabled"),b=s("readOnly");function y(e){return{value:e.value,invalid:!!e.invalid,disabled:!!e.disabled||m,checked:r.get("value")===e.value,focused:r.get("focusedValue")===e.value,focusVisible:u.get("focusVisibleValue")===e.value,hovered:r.get("hoveredValue")===e.value,active:r.get("activeValue")===e.value}}function x(e){let t=y(e);return{"data-focus":(0,i.sE)(t.focused),"data-focus-visible":(0,i.sE)(t.focusVisible),"data-disabled":(0,i.sE)(t.disabled),"data-readonly":(0,i.sE)(b),"data-state":t.checked?"checked":"unchecked","data-hover":(0,i.sE)(t.hovered),"data-invalid":(0,i.sE)(t.invalid),"data-orientation":s("orientation"),"data-ssr":(0,i.sE)(r.get("ssr"))}}let w=()=>{let e=v(l)?.querySelector("input:not(:disabled):checked")??v(l)?.querySelector("input:not(:disabled)");e?.focus()};return{focus:w,value:r.get("value"),setValue(e){n({type:"SET_VALUE",value:e,isTrusted:!1})},clearValue(){n({type:"SET_VALUE",value:null,isTrusted:!1})},getRootProps:()=>t.element({...c.root.attrs,role:"radiogroup",id:d(l),"aria-labelledby":f(l),"data-orientation":s("orientation"),"data-disabled":(0,i.sE)(m),"aria-orientation":s("orientation"),dir:s("dir"),style:{position:"relative"}}),getLabelProps:()=>t.element({...c.label.attrs,dir:s("dir"),"data-orientation":s("orientation"),"data-disabled":(0,i.sE)(m),id:f(l),onClick:w}),getItemState:y,getItemProps(e){let r=y(e);return t.label({...c.item.attrs,dir:s("dir"),id:h(l,e.value),htmlFor:p(l,e.value),...x(e),onPointerMove(){!r.disabled&&(r.hovered||n({type:"SET_HOVERED",value:e.value,hovered:!0}))},onPointerLeave(){r.disabled||n({type:"SET_HOVERED",value:null})},onPointerDown(t){!r.disabled&&(0,i.Ml)(t)&&(r.focused&&"mouse"===t.pointerType&&t.preventDefault(),n({type:"SET_ACTIVE",value:e.value,active:!0}))},onPointerUp(){r.disabled||n({type:"SET_ACTIVE",value:null})},onClick(){let t;!r.disabled&&(0,i.nr)()&&(t=e.value,l.getById(p(l,t)))?.focus()}})},getItemTextProps:e=>{let r;return t.element({...c.itemText.attrs,dir:s("dir"),id:(r=e.value,l.ids?.itemLabel?.(r)??`radio-group:${l.id}:radio:label:${r}`),...x(e)})},getItemControlProps(e){let r,n=y(e);return t.element({...c.itemControl.attrs,dir:s("dir"),id:(r=e.value,l.ids?.itemControl?.(r)??`radio-group:${l.id}:radio:control:${r}`),"data-active":(0,i.sE)(n.active),"aria-hidden":!0,...x(e)})},getItemHiddenInputProps(e){let r=y(e);return t.input({"data-ownedby":d(l),id:p(l,e.value),type:"radio",name:s("name")||s("id"),form:s("form"),value:e.value,onClick(t){if(b)return void t.preventDefault();t.currentTarget.checked&&n({type:"SET_VALUE",value:e.value,isTrusted:!0})},onBlur(){n({type:"SET_FOCUSED",value:null,focused:!1})},onFocus(){let t=(0,o.pP)();n({type:"SET_FOCUSED",value:e.value,focused:!0,focusVisible:t})},onKeyDown(t){t.defaultPrevented||" "===t.key&&n({type:"SET_ACTIVE",value:e.value,active:!0})},onKeyUp(e){e.defaultPrevented||" "===e.key&&n({type:"SET_ACTIVE",value:null})},disabled:r.disabled||b,defaultChecked:r.checked,style:i.fe})},getIndicatorProps(){let e=r.get("indicatorRect");return t.element({id:g(l),...c.indicator.attrs,dir:s("dir"),hidden:null==r.get("value"),"data-disabled":(0,i.sE)(m),"data-orientation":s("orientation"),style:{"--transition-property":"left, top, width, height","--left":e?.left,"--top":e?.top,"--width":e?.width,"--height":e?.height,position:"absolute",willChange:"var(--transition-property)",transitionProperty:"var(--transition-property)",transitionDuration:r.get("canIndicatorTransition")?"var(--transition-duration, 150ms)":"0ms",transitionTimingFunction:"var(--transition-timing-function)",["horizontal"===s("orientation")?"left":"top"]:"horizontal"===s("orientation")?"var(--left)":"var(--top)"}})}}}var{not:y}=(0,a.b6)(),x=(0,a.Op)({props:({props:e})=>({orientation:"vertical",...e}),initialState:()=>"idle",context:({prop:e,bindable:t})=>({value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),onChange(t){e("onValueChange")?.({value:t})}})),activeValue:t(()=>({defaultValue:null})),focusedValue:t(()=>({defaultValue:null})),hoveredValue:t(()=>({defaultValue:null})),indicatorRect:t(()=>({defaultValue:{}})),canIndicatorTransition:t(()=>({defaultValue:!1})),fieldsetDisabled:t(()=>({defaultValue:!1})),ssr:t(()=>({defaultValue:!0}))}),refs:()=>({indicatorCleanup:null,focusVisibleValue:null}),computed:{isDisabled:({prop:e,context:t})=>!!e("disabled")||t.get("fieldsetDisabled")},entry:["syncIndicatorRect","syncSsr"],exit:["cleanupObserver"],effects:["trackFormControlState","trackFocusVisible"],watch({track:e,action:t,context:r}){e([()=>r.get("value")],()=>{t(["setIndicatorTransition","syncIndicatorRect","syncInputElements"])})},on:{SET_VALUE:[{guard:y("isTrusted"),actions:["setValue","dispatchChangeEvent"]},{actions:["setValue"]}],SET_HOVERED:{actions:["setHovered"]},SET_ACTIVE:{actions:["setActive"]},SET_FOCUSED:{actions:["setFocused"]}},states:{idle:{}},implementations:{guards:{isTrusted:({event:e})=>!!e.isTrusted},effects:{trackFormControlState:({context:e,scope:t})=>(0,i.$S)(v(t),{onFieldsetDisabledChange(t){e.set("fieldsetDisabled",t)},onFormReset(){e.set("value",e.initial("value"))}}),trackFocusVisible:({scope:e})=>(0,o.Yy)({root:e.getRootNode?.()})},actions:{setValue({context:e,event:t}){e.set("value",t.value)},setHovered({context:e,event:t}){e.set("hoveredValue",t.value)},setActive({context:e,event:t}){e.set("activeValue",t.value)},setFocused({context:e,event:t,refs:r}){e.set("focusedValue",t.value),r.set("focusVisibleValue",t.focusVisible?t.value:null)},syncInputElements({context:e,scope:t}){m(t).forEach(t=>{t.checked=t.value===e.get("value")})},setIndicatorTransition({context:e}){e.set("canIndicatorTransition",(0,s.Kg)(e.get("value")))},cleanupObserver({refs:e}){e.get("indicatorCleanup")?.()},syncSsr({context:e}){e.set("ssr",!1)},syncIndicatorRect({context:e,scope:t,refs:r}){if(r.get("indicatorCleanup")?.(),!t.getById(g(t)))return;let n=e.get("value"),o=((e,t)=>{if(t)return e.getById(h(e,t))})(t,n);if(null==n||!o){e.set("canIndicatorTransition",!1),e.set("indicatorRect",{});return}let a=(0,i.Gj)([o],{measure:e=>({left:e?.offsetLeft??0,top:e?.offsetTop??0,width:e?.offsetWidth??0,height:e?.offsetHeight??0}),onEntry({rects:t}){let r;e.set("indicatorRect",(r=t[0],{width:`${r.width}px`,height:`${r.height}px`,left:`${r.left}px`,top:`${r.top}px`}))}});r.set("indicatorCleanup",a)},dispatchChangeEvent({context:e,scope:t}){m(t).forEach(t=>{let r=t.value===e.get("value");r!==t.checked&&(0,i.uf)(t,{checked:r})})}}}}),w=(0,l.x)()(["dir","disabled","form","getRootNode","id","ids","name","onValueChange","orientation","readOnly","value","defaultValue"]);(0,s.PM)(w);var S=(0,l.x)()(["value","disabled","invalid"]);(0,s.PM)(S)},76621:(e,t,r)=>{var n=r(17231);e.exports=function(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}},76808:(e,t,r)=>{"use strict";r.d(t,{Aj:()=>p,Ds:()=>v,Op:()=>f,b6:()=>d,h2:()=>g,mj:()=>h,ph:()=>c,v6:()=>u});var n=r(75794),i=r(77534),o=(...e)=>e.map(e=>e?.trim?.()).filter(Boolean).join(" "),a=/((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g,s=e=>{let t,r={};for(;t=a.exec(e);)r[t[1]]=t[2];return r},l=(e,t)=>{if((0,n.Kg)(e)){if((0,n.Kg)(t))return`${e};${t}`;e=s(e)}else(0,n.Kg)(t)&&(t=s(t));return Object.assign({},e??{},t??{})};function u(...e){let t={};for(let r of e)if(r){for(let e in t){if(e.startsWith("on")&&"function"==typeof t[e]&&"function"==typeof r[e]){t[e]=(0,n.OK)(r[e],t[e]);continue}if("className"===e||"class"===e){t[e]=o(t[e],r[e]);continue}if("style"===e){t[e]=l(t[e],r[e]);continue}t[e]=void 0!==r[e]?r[e]:t[e]}for(let e in r)void 0===t[e]&&(t[e]=r[e]);for(let e of Object.getOwnPropertySymbols(r))t[e]=r[e]}return t}function c(e,t,r){let i,o=[];return a=>{let s=e(a);return(s.length!==o.length||s.some((e,t)=>!(0,n.n4)(o[t],e)))&&(o=s,i=t(s,a),r?.onChange?.(i)),i}}function d(){return{and:(...e)=>function(t){return e.every(e=>t.guard(e))},or:(...e)=>function(t){return e.some(e=>t.guard(e))},not:e=>function(t){return!t.guard(e)}}}function f(e){return e}function h(){return{guards:d(),createMachine:e=>e,choose:e=>function({choose:t}){return t(e)?.actions}}}var p=(e=>(e.NotStarted="Not Started",e.Started="Started",e.Stopped="Stopped",e))(p||{}),g="__init__";function v(e){let t=()=>e.getRootNode?.()??document,r=()=>(0,i.YE)(t());return{...e,getRootNode:t,getDoc:r,getWin:()=>r().defaultView??window,getActiveElement:()=>(0,i.bq)(t()),isActiveElement:i.X7,getById:e=>t().getElementById(e)}}},76865:(e,t,r)=>{var n=r(24795);e.exports=function(e){return n(e,5)}},77261:(e,t,r)=>{var n=r(60663);function i(){this._arr=[],this._keyIndices={}}e.exports=i,i.prototype.size=function(){return this._arr.length},i.prototype.keys=function(){return this._arr.map(function(e){return e.key})},i.prototype.has=function(e){return n.has(this._keyIndices,e)},i.prototype.priority=function(e){var t=this._keyIndices[e];if(void 0!==t)return this._arr[t].priority},i.prototype.min=function(){if(0===this.size())throw Error("Queue underflow");return this._arr[0].key},i.prototype.add=function(e,t){var r=this._keyIndices;if(e=String(e),!n.has(r,e)){var i=this._arr,o=i.length;return r[e]=o,i.push({key:e,priority:t}),this._decrease(o),!0}return!1},i.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var e=this._arr.pop();return delete this._keyIndices[e.key],this._heapify(0),e.key},i.prototype.decrease=function(e,t){var r=this._keyIndices[e];if(t>this._arr[r].priority)throw Error("New priority is greater than current priority. Key: "+e+" Old: "+this._arr[r].priority+" New: "+t);this._arr[r].priority=t,this._decrease(r)},i.prototype._heapify=function(e){var t=this._arr,r=2*e,n=r+1,i=e;r<t.length&&(i=t[r].priority<t[i].priority?r:i,n<t.length&&(i=t[n].priority<t[i].priority?n:i),i!==e&&(this._swap(e,i),this._heapify(i)))},i.prototype._decrease=function(e){for(var t,r=this._arr,n=r[e].priority;0!==e&&!(r[t=e>>1].priority<n);)this._swap(e,t),e=t},i.prototype._swap=function(e,t){var r=this._arr,n=this._keyIndices,i=r[e],o=r[t];r[e]=o,r[t]=i,n[o.key]=e,n[i.key]=t}},77480:(e,t,r)=>{"use strict";r.d(t,{s:()=>a});var n=r(87259),i=r(80715),o=r(38006);let a=(0,i.forwardRef)(function(e,t){let{direction:r,align:i,justify:a,wrap:s,basis:l,grow:u,shrink:c,inline:d,...f}=e;return(0,n.jsx)(o.B.div,{ref:t,...f,css:{display:d?"inline-flex":"flex",flexDirection:r,alignItems:i,justifyContent:a,flexWrap:s,flexBasis:l,flexGrow:u,flexShrink:c,...e.css}})})},77492:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n={value:()=>{}};function i(){for(var e,t=0,r=arguments.length,n={};t<r;++t){if(!(e=arguments[t]+"")||e in n||/[\s.]/.test(e))throw Error("illegal type: "+e);n[e]=[]}return new o(n)}function o(e){this._=e}function a(e,t,r){for(var i=0,o=e.length;i<o;++i)if(e[i].name===t){e[i]=n,e=e.slice(0,i).concat(e.slice(i+1));break}return null!=r&&e.push({name:t,value:r}),e}o.prototype=i.prototype={constructor:o,on:function(e,t){var r,n=this._,i=(e+"").trim().split(/^|\s+/).map(function(e){var t="",r=e.indexOf(".");if(r>=0&&(t=e.slice(r+1),e=e.slice(0,r)),e&&!n.hasOwnProperty(e))throw Error("unknown type: "+e);return{type:e,name:t}}),o=-1,s=i.length;if(arguments.length<2){for(;++o<s;)if((r=(e=i[o]).type)&&(r=function(e,t){for(var r,n=0,i=e.length;n<i;++n)if((r=e[n]).name===t)return r.value}(n[r],e.name)))return r;return}if(null!=t&&"function"!=typeof t)throw Error("invalid callback: "+t);for(;++o<s;)if(r=(e=i[o]).type)n[r]=a(n[r],e.name,t);else if(null==t)for(r in n)n[r]=a(n[r],e.name,null);return this},copy:function(){var e={},t=this._;for(var r in t)e[r]=t[r].slice();return new o(e)},call:function(e,t){if((r=arguments.length-2)>0)for(var r,n,i=Array(r),o=0;o<r;++o)i[o]=arguments[o+2];if(!this._.hasOwnProperty(e))throw Error("unknown type: "+e);for(n=this._[e],o=0,r=n.length;o<r;++o)n[o].value.apply(t,i)},apply:function(e,t,r){if(!this._.hasOwnProperty(e))throw Error("unknown type: "+e);for(var n=this._[e],i=0,o=n.length;i<o;++i)n[i].value.apply(t,r)}};let s=i},77534:(e,t,r)=>{"use strict";function n(e){if(!e)return;let t=e.selectionStart??0;0===Math.abs((e.selectionEnd??0)-t)&&0===t&&e.setSelectionRange(e.value.length,e.value.length)}r.d(t,{$S:()=>Q,$b:()=>N,$h:()=>eV,AO:()=>en,Al:()=>ek,CF:()=>Y,CN:()=>_,Ge:()=>ed,Gj:()=>eM,I5:()=>eN,IR:()=>g,Il:()=>ef,K:()=>H,KY:()=>es,L9:()=>k,MC:()=>eE,Ml:()=>F,NH:()=>eb,Ng:()=>p,P:()=>e_,RD:()=>ea,Rt:()=>em,TH:()=>W,TW:()=>V,U4:()=>G,Ut:()=>eA,VL:()=>z,X7:()=>v,Y:()=>eO,YE:()=>x,YF:()=>D,YG:()=>eI,_T:()=>K,aR:()=>T,aX:()=>eP,b9:()=>M,bq:()=>S,cX:()=>P,dY:()=>el,eC:()=>eL,er:()=>eu,fe:()=>eF,fg:()=>b,fv:()=>j,gR:()=>y,gX:()=>n,hx:()=>l,i7:()=>ee,j9:()=>er,kf:()=>C,kn:()=>$,mx:()=>ec,nr:()=>R,ob:()=>eh,q_:()=>L,rq:()=>c,ru:()=>eC,sE:()=>u,sb:()=>d,tp:()=>et,tt:()=>eD,uf:()=>X,v9:()=>function e(t,r=[]){let n=eh(t),i=n===t.ownerDocument.body,o=w(n);return i?r.concat(o,o.visualViewport||[],ev(n)?n:[]):r.concat(n,e(n,[]))},wt:()=>A,wz:()=>f,xk:()=>ej,yT:()=>eo,zk:()=>w,zn:()=>ey});var i=e=>Math.max(0,Math.min(1,e)),o=(...e)=>t=>e.reduce((e,t)=>t(e),t),a=()=>void 0,s=e=>"object"==typeof e&&null!==e,l=0x7fffffff,u=e=>e?"":void 0,c=e=>e?"true":void 0,d=e=>s(e)&&1===e.nodeType&&"string"==typeof e.nodeName,f=e=>s(e)&&9===e.nodeType,h=e=>d(e)?e.localName||"":"#document",p=e=>(e=>s(e)&&void 0!==e.nodeType)(e)&&11===e.nodeType&&"host"in e,g=e=>!!e?.matches("a[href]");function v(e){return!!e&&S(e.getRootNode())===e}var m=/(textarea|select)/;function b(e){if(null==e||!d(e))return!1;try{return d(e)&&"input"===e.localName&&null!=e.selectionStart||m.test(e.localName)||e.isContentEditable||"true"===e.getAttribute("contenteditable")||""===e.getAttribute("contenteditable")}catch{return!1}}function y(e,t){if(!e||!t||!d(e)||!d(t))return!1;let r=t.getRootNode?.();if(e===t||e.contains(t))return!0;if(r&&p(r)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function x(e){return f(e)?e:s(e)&&e===e.window?e.document:e?.ownerDocument??document}function w(e){return p(e)?w(e.host):f(e)?e.defaultView??window:d(e)?e.ownerDocument?.defaultView??window:window}function S(e){let t=e.activeElement;for(;t?.shadowRoot;){let e=t.shadowRoot.activeElement;if(e&&e!==t)t=e;else break}return t}var E=new WeakMap;function k(e){return E.has(e)||E.set(e,w(e).getComputedStyle(e)),E.get(e)}function C(e,t){let{type:r,quality:n=.92,background:i}=t;if(!e)throw Error("[zag-js > getDataUrl]: Could not find the svg element");let o=w(e),a=o.document,s=e.getBoundingClientRect(),l=e.cloneNode(!0);l.hasAttribute("viewBox")||l.setAttribute("viewBox",`0 0 ${s.width} ${s.height}`);let u="data:image/svg+xml;charset=utf-8,"+encodeURIComponent('<?xml version="1.0" standalone="no"?>\r\n'+new o.XMLSerializer().serializeToString(l));if("image/svg+xml"===r)return Promise.resolve(u).then(e=>(l.remove(),e));let c=o.devicePixelRatio||1,d=a.createElement("canvas"),f=new o.Image;f.src=u,d.width=s.width*c,d.height=s.height*c;let h=d.getContext("2d");return("image/jpeg"===r||i)&&(h.fillStyle=i||"white",h.fillRect(0,0,d.width,d.height)),new Promise(e=>{f.onload=()=>{h?.drawImage(f,0,0,d.width,d.height),e(d.toDataURL(r,n)),l.remove()}})}var O=e=>"undefined"!=typeof document&&e.test(function(){let e=navigator.userAgentData;return e?.platform??navigator.platform}()),I=e=>"undefined"!=typeof document&&e.test(function(){let e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(({brand:e,version:t})=>`${e}/${t}`).join(" "):navigator.userAgent}()),_=()=>"undefined"!=typeof document&&!!navigator.maxTouchPoints,T=()=>O(/^iPhone/i)||O(/^iPad/i)||P()&&navigator.maxTouchPoints>1,P=()=>O(/^Mac/i),R=()=>{let e;return(P()||T())&&(e=/apple/i,"undefined"!=typeof document&&e.test(navigator.vendor))};function A(e){let t=e.composedPath?.()??e.nativeEvent?.composedPath?.();return t?.[0]??e.target}function N(e){var t;let r=e.currentTarget;if(!r||!r.matches("a[href], button[type='submit'], input[type='submit']"))return!1;let n=1===e.button,i=(t=e,P()?t.metaKey:t.ctrlKey);return n||i}function M(e){let t=e.currentTarget;if(!t)return!1;let r=t.localName;return!!e.altKey&&("a"===r||"button"===r&&"submit"===t.type||"input"===r&&"submit"===t.type)}function L(e){var t;return((t=e).nativeEvent??t).isComposing||229===e.keyCode}function V(e){return 1===e.key.length&&!e.ctrlKey&&!e.metaKey}function D(e){return""===e.pointerType&&!!e.isTrusted||(I(/Android/i)&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}var F=e=>0===e.button,j=e=>2===e.button||P()&&e.ctrlKey&&0===e.button,z=e=>e.ctrlKey||e.altKey||e.metaKey,B={Up:"ArrowUp",Down:"ArrowDown",Esc:"Escape"," ":"Space",",":"Comma",Left:"ArrowLeft",Right:"ArrowRight"},U={ArrowLeft:"ArrowRight",ArrowRight:"ArrowLeft"};function H(e,t={}){let{dir:r="ltr",orientation:n="horizontal"}=t,i=e.key;return i=B[i]??i,"rtl"===r&&"horizontal"===n&&i in U&&(i=U[i]),i}function W(e,t="client"){let r="touches"in e&&e.touches.length>0?e.touches[0]||e.changedTouches[0]:e;return{x:r[`${t}X`],y:r[`${t}Y`]}}var $=(e,t,r,n)=>{let i="function"==typeof e?e():e;return i?.addEventListener(t,r,n),()=>{i?.removeEventListener(t,r,n)}};function q(e,t){let{type:r="HTMLInputElement",property:n="value"}=t;return Object.getOwnPropertyDescriptor(w(e)[r].prototype,n)??{}}function G(e,t,r="value"){if(!e)return;let n="input"===e.localName?"HTMLInputElement":"textarea"===e.localName?"HTMLTextAreaElement":"select"===e.localName?"HTMLSelectElement":void 0;if(n){let i=q(e,{type:n,property:r});i.set?.call(e,t)}e.setAttribute(r,t)}function K(e,t){if(!e)return;let r=q(e,{type:"HTMLInputElement",property:"checked"});r.set?.call(e,t),t?e.setAttribute("checked",""):e.removeAttribute("checked")}function Y(e,t){let{value:r,bubbles:n=!0}=t;if(!e)return;let i=w(e);e instanceof i.HTMLInputElement&&(G(e,`${r}`),e.dispatchEvent(new i.Event("input",{bubbles:n})))}function X(e,t){let{checked:r,bubbles:n=!0}=t;if(!e)return;let i=w(e);e instanceof i.HTMLInputElement&&(K(e,r),e.dispatchEvent(new i.Event("click",{bubbles:n})))}function Q(e,t){if(!e)return;let{onFieldsetDisabledChange:r,onFormReset:n}=t,i=[function(e,t){if(!e)return;let r=e.matches("textarea, input, select, button")?e.form:e.closest("form"),n=e=>{e.defaultPrevented||t()};return r?.addEventListener("reset",n,{passive:!0}),()=>r?.removeEventListener("reset",n)}(e,n),function(e,t){let r=e?.closest("fieldset");if(!r)return;t(r.disabled);let n=new(w(r)).MutationObserver(()=>t(r.disabled));return n.observe(r,{attributes:!0,attributeFilter:["disabled"]}),()=>n.disconnect()}(e,r)];return()=>i.forEach(e=>e?.())}var J=e=>d(e)&&"IFRAME"===e.tagName,Z="input:not([type='hidden']):not([disabled]), select:not([disabled]), textarea:not([disabled]), a[href], button:not([disabled]), [tabindex], iframe, object, embed, area[href], audio[controls], video[controls], [contenteditable]:not([contenteditable='false']), details > summary:first-of-type",ee=(e,t=!1)=>{if(!e)return[];let r=Array.from(e.querySelectorAll(Z));(!0==t||"if-empty"==t&&0===r.length)&&d(e)&&et(e)&&r.unshift(e);let n=r.filter(et);return n.forEach((e,t)=>{if(J(e)&&e.contentDocument){let r=e.contentDocument.body;n.splice(t,1,...ee(r))}}),n};function et(e){return!(!e||e.closest("[inert]"))&&e.matches(Z)&&!!d(e)&&(e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0)}function er(e,t){if(!e)return[];let r=Array.from(e.querySelectorAll(Z)),n=r.filter(en);return(t&&en(e)&&n.unshift(e),n.forEach((e,t)=>{if(J(e)&&e.contentDocument){let r=er(e.contentDocument.body);n.splice(t,1,...r)}}),!n.length&&t)?r:n}function en(e){return null!=e&&!!(e.tabIndex>0)||et(e)&&!(0>parseInt(e.getAttribute("tabindex")||"0",10))}function ei(e,t){let r=er(e,t);return[r[0]||null,r[r.length-1]||null]}function eo(e){return e.tabIndex<0&&(/^(audio|video|details)$/.test(e.localName)||b(e))&&Number.isNaN(parseInt(e.getAttribute("tabindex")||"0",10))?0:e.tabIndex}function ea(e){let{root:t,getInitialEl:r,filter:n,enabled:i=!0}=e;if(!i)return;let o=null;if((o="function"==typeof r?r():r)||(o=t?.querySelector("[data-autofocus],[autofocus]")),!o){let e=er(t);o=n?e.filter(n)[0]:e[0]}return o||t||void 0}function es(e){let t=e.currentTarget;if(!t)return!1;let[r,n]=ei(t);return!(v(r)&&e.shiftKey||v(n)&&!e.shiftKey)&&(!!r||!!n)}function el(e){let t=new Set;function r(e){let r=globalThis.requestAnimationFrame(e);t.add(()=>globalThis.cancelAnimationFrame(r))}return r(()=>r(e)),function(){t.forEach(e=>e())}}function eu(e){let t,r=globalThis.requestAnimationFrame(()=>{t=e()});return()=>{globalThis.cancelAnimationFrame(r),t?.()}}function ec(e,t){let{defer:r}=t,n=[];return n.push((r?eu:e=>e())(()=>{let r="function"==typeof e?e():e;n.push(function(e,t){if(!e)return;let{attributes:r,callback:n}=t,i=new(e.ownerDocument.defaultView||window).MutationObserver(e=>{for(let t of e)"attributes"===t.type&&t.attributeName&&r.includes(t.attributeName)&&n(t)});return i.observe(e,{attributes:!0,attributeFilter:r}),()=>i.disconnect()}(r,t))})),()=>{n.forEach(e=>e?.())}}function ed(e,t){let{defer:r}=t,n=[];return n.push((r?eu:e=>e())(()=>{let r="function"==typeof e?e():e;n.push(function(e,t){let{callback:r}=t;if(!e)return;let n=new(e.ownerDocument.defaultView||window).MutationObserver(r);return n.observe(e,{childList:!0,subtree:!0}),()=>n.disconnect()}(r,t))})),()=>{n.forEach(e=>e?.())}}function ef(e){let t=()=>{let t=w(e);e.dispatchEvent(new t.MouseEvent("click"))};I(/Firefox/i)?function(e,t,r){let n=eu(()=>{e.removeEventListener(t,i,!0),r()}),i=()=>{n(),r()};e.addEventListener(t,i,{once:!0,capture:!0})}(e,"keyup",t):queueMicrotask(t)}function eh(e){let t=function(e){if("html"===h(e))return e;let t=e.assignedSlot||e.parentNode||p(e)&&e.host||x(e).documentElement;return p(t)?t.host:t}(e);return["html","body","#document"].includes(h(t))?x(t).body:d(t)&&ev(t)?t:eh(t)}var ep=/auto|scroll|overlay|hidden|clip/,eg=new Set(["inline","contents"]);function ev(e){let{overflow:t,overflowX:r,overflowY:n,display:i}=w(e).getComputedStyle(e);return ep.test(t+n+r)&&!eg.has(i)}function em(e,t){let{rootEl:r,...n}=t||{};e&&r&&ev(r)&&(r.scrollHeight>r.clientHeight||r.scrollWidth>r.clientWidth)&&e.scrollIntoView(n)}function eb(e,t){let{left:r,top:n,width:o,height:a}=t.getBoundingClientRect(),s={x:e.x-r,y:e.y-n},l={x:i(s.x/o),y:i(s.y/a)};return{offset:s,percent:l,getPercentValue:function(e={}){let{dir:t="ltr",orientation:r="horizontal",inverted:n}=e,i="object"==typeof n?n.x:n,o="object"==typeof n?n.y:n;return"horizontal"===r?"rtl"===t||i?1-l.x:l.x:o?1-l.y:l.y}}}function ey(e,t){let r=e.body;if(!("pointerLockElement"in e||"mozPointerLockElement"in e))return;try{r.requestPointerLock()}catch{}let n=[$(e,"pointerlockchange",function(){t?.(!!e.pointerLockElement)},!1),$(e,"pointerlockerror",function(r){e.pointerLockElement&&t?.(!1),console.error("PointerLock error occurred:",r),e.exitPointerLock()},!1)];return()=>{n.forEach(e=>e()),e.exitPointerLock()}}var ex="default",ew="",eS=new WeakMap;function eE(e={}){let{defer:t,target:r,...n}=e,i=[];return i.push((t?eu:e=>e())(()=>{let e="function"==typeof r?r():r;i.push(function(e={}){let{target:t,doc:r}=e,n=r??document,i=n.documentElement;return T()?("default"===ex&&(ew=i.style.webkitUserSelect,i.style.webkitUserSelect="none"),ex="disabled"):t&&(eS.set(t,t.style.userSelect),t.style.userSelect="none"),()=>(function(e={}){let{target:t,doc:r}=e,n=(r??document).documentElement;if(T()){if("disabled"!==ex)return;ex="restoring",setTimeout(()=>{el(()=>{"restoring"===ex&&("none"===n.style.webkitUserSelect&&(n.style.webkitUserSelect=ew||""),ew="",ex="default")})},300)}else if(t&&eS.has(t)){let e=eS.get(t);"none"===t.style.userSelect&&(t.style.userSelect=e??""),""===t.getAttribute("style")&&t.removeAttribute("style"),eS.delete(t)}})({target:t,doc:n})}({...n,target:e}))})),()=>{i.forEach(e=>e?.())}}function ek(e,t){let{onPointerMove:r,onPointerUp:n}=t,i=e=>{n({point:W(e),event:e})},o=[$(e,"pointermove",e=>{let t=W(e);if(!(Math.sqrt(t.x**2+t.y**2)<("touch"===e.pointerType?10:5))){if("mouse"===e.pointerType&&0===e.button)return void i(e);r({point:t,event:e})}},!1),$(e,"pointerup",i,!1),$(e,"pointercancel",i,!1),$(e,"contextmenu",i,!1),eE({doc:e})];return()=>{o.forEach(e=>e())}}function eC(e){let{pointerNode:t,keyboardNode:r=t,onPress:n,onPressStart:i,onPressEnd:s,isValidKey:l=e=>"Enter"===e.key}=e;if(!t)return a;let u=w(t),c=a,d=a,f=a,h=e=>({point:W(e),event:e});function p(e){s?.(h(e))}let g=$(t,"pointerdown",e=>{d(),d=o($(u,"pointerup",e=>{y(t,A(e))?n?.(h(e)):s?.(h(e))},{passive:!n,once:!0}),$(u,"pointercancel",p,{passive:!s,once:!0})),v(r)&&"mouse"===e.pointerType&&e.preventDefault(),i?.(h(e))},{passive:!i});return c=o(g,$(r,"focus",function(){f=o($(r,"keydown",e=>{var t;l(e)&&(d(),d=$(r,"keyup",e=>{if(!l(e))return;let t=h(new u.PointerEvent("pointerup"));n?.(t),s?.(t)}),t=new u.PointerEvent("pointerdown"),i?.(h(t)))}),$(r,"blur",()=>{p(new u.PointerEvent("pointercancel"))}))})),()=>{c(),d(),f()}}function eO(e,t){let{defer:r,triggerElement:n,...i}=t,o=[];return o.push((r?eu:e=>e())(()=>{let t="function"==typeof e?e():e,r="function"==typeof n?n():n;o.push(function(e,t={}){let{triggerElement:r,onFocus:n,onFocusEnter:i}=t,o=e?.ownerDocument||document,a=o.body;return $(o,"keydown",function(t){if("Tab"!==t.key)return;let o=null,[s,l]=ei(e,!0),u=function(e,t){let r=er(e),n=e?.ownerDocument||document,i=t??S(n);if(!i)return null;let o=r.indexOf(i);return r[o+1]||null}(a,r),c=!s&&!l;t.shiftKey&&v(u)?(i?.(),o=l):t.shiftKey&&(v(s)||c)?o=r:!t.shiftKey&&v(r)?(i?.(),o=s):!t.shiftKey&&(v(l)||c)&&(o=u),o&&(t.preventDefault(),"function"==typeof n?n(o):o.focus())},!0)}(t,{triggerElement:r,...i}))})),()=>{o.forEach(e=>e?.())}}function eI(e,t){return Array.from(e?.querySelectorAll(t)??[])}function e_(e,t){return e?.querySelector(t)??null}var eT=e=>e.id;function eP(e,t,r=eT){return e.find(e=>r(e)===t)}function eR(e,t,r=eT){let n=eP(e,t,r);return n?e.indexOf(n):-1}function eA(e,t,r=!0){let n=eR(e,t);return n=r?(n+1)%e.length:Math.min(n+1,e.length-1),e[n]}function eN(e,t,r=!0){let n=eR(e,t);return -1===n?r?e[e.length-1]:null:(n=r?(n-1+e.length)%e.length:Math.max(0,n-1),e[n])}function eM(e,t){let{onEntry:r,measure:n,box:i="border-box"}=t,o=(Array.isArray(e)?e:[e]).filter(d),a=w(o[0]),s=e=>{r({rects:o.map(e=>n(e)),entries:e})};s([]);let l=new a.ResizeObserver(s);return o.forEach(e=>l.observe(e,{box:i})),()=>l.disconnect()}function eL(e,t){if(!e)return a;let r=Object.keys(t).reduce((t,r)=>(t[r]=e.style.getPropertyValue(r),t),{});return Object.assign(e.style,t),()=>{Object.assign(e.style,r),0===e.style.length&&e.removeAttribute("style")}}function eV(e,t,r){if(!e)return a;let n=e.style.getPropertyValue(t);return e.style.setProperty(t,r),()=>{e.style.setProperty(t,n),0===e.style.length&&e.removeAttribute("style")}}var eD=Object.assign(function(e,t){let{state:r,activeId:n,key:i,timeout:o=350,itemToId:a}=t,s=r.keysSoFar+i,l=s.length>1&&Array.from(s).every(e=>e===s[0])?s[0]:s,u=function(e,t,r,n=eT){let i=r?eR(e,r,n):-1,o=r?e.map((t,r)=>e[(Math.max(i,0)+r)%e.length]):e;return 1===t.length&&(o=o.filter(e=>n(e)!==r)),o.find(e=>{let r;return r=(e.dataset?.valuetext??e.textContent??"").split("").map(e=>{let t=e.charCodeAt(0);return t>0&&t<128?e:t>=128&&t<=255?`/x${t.toString(16)}`.replace("/","\\"):""}).join("").trim(),r.trim().toLowerCase().startsWith(t.toLowerCase())})}(e.slice(),l,n,a);function c(){clearTimeout(r.timer),r.timer=-1}return!function e(t){r.keysSoFar=t,c(),""!==t&&(r.timer=+setTimeout(()=>{e(""),c()},o))}(s),u},{defaultOptions:{keysSoFar:"",timer:-1},isValidEvent:function(e){return 1===e.key.length&&!e.ctrlKey&&!e.metaKey}}),eF={border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px",whiteSpace:"nowrap",wordWrap:"normal"};function ej(e,t){let{timeout:r,rootNode:n}=t,i=w(n),o=x(n),a=new i.AbortController;var s=new Promise(t=>{let r=e();if(r)return void t(r);let n=new i.MutationObserver(()=>{let r=e();r&&r.isConnected&&(n.disconnect(),t(r))});n.observe(o.body,{childList:!0,subtree:!0})});let{signal:l}=a;return[new Promise((e,t)=>{let n=setTimeout(()=>{t(Error(`Timeout of ${r}ms exceeded`))},r);l.addEventListener("abort",()=>{clearTimeout(n),t(Error("Promise aborted"))}),s.then(t=>{l.aborted||(clearTimeout(n),e(t))}).catch(e=>{l.aborted||(clearTimeout(n),t(e))})}),()=>a.abort()]}},77795:(e,t,r)=>{e.exports=r(85928)()},78193:(e,t,r)=>{"use strict";var n=r(80715),i=r(3479),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=i.useSyncExternalStore,s=n.useRef,l=n.useEffect,u=n.useMemo,c=n.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,r,n,i){var d=s(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;var h=a(e,(d=u(function(){function e(e){if(!l){if(l=!0,a=e,e=n(e),void 0!==i&&f.hasValue){var t=f.value;if(i(t,e))return s=t}return s=e}if(t=s,o(a,e))return t;var r=n(e);return void 0!==i&&i(t,r)?(a=e,t):(a=e,s=r)}var a,s,l=!1,u=void 0===r?null:r;return[function(){return e(t())},null===u?void 0:function(){return e(u())}]},[t,r,n,i]))[0],d[1]);return l(function(){f.hasValue=!0,f.value=h},[h]),c(h),h}},78478:e=>{e.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}},78513:(e,t,r)=>{"use strict";r.d(t,{$:()=>a,s:()=>s});var n=r(87259),i=r(96721);let[o,a]=(0,r(30214).q)({name:"ChakraContext",strict:!0,providerName:"<ChakraProvider />"});function s(e){let{value:t,children:r}=e;return(0,n.jsxs)(o,{value:t,children:[!t._config.disableLayers&&(0,n.jsx)(i.mL,{styles:t.layers.atRule}),(0,n.jsx)(i.mL,{styles:t._global}),r]})}},78543:(e,t,r)=>{var n=r(40236),i=r(99563),o=r(9452),a=r(73530);e.exports=o(function(e,t){if(null==e)return[];var r=t.length;return r>1&&a(e,t[0],t[1])?t=[]:r>2&&a(t[0],t[1],t[2])&&(t=[t[0]]),i(e,n(t,1),[])})},78788:(e,t,r)=>{"use strict";r.d(t,{Aq:()=>m,MI:()=>u,Ng:()=>g});var n=r(43690),i=r(77534),o=r(87826),a=r(76808),s=r(41562),l=r(75794),u=(0,n.y)("checkbox").parts("root","label","control","indicator"),c=u.build(),d=e=>e.ids?.root??`checkbox:${e.id}`,f=e=>e.ids?.label??`checkbox:${e.id}:label`,h=e=>e.ids?.hiddenInput??`checkbox:${e.id}:input`,p=e=>e.getById(h(e));function g(e,t){let{send:r,context:n,prop:a,computed:s,scope:l}=e,u=!!a("disabled"),g=!!a("readOnly"),v=!!a("required"),m=!!a("invalid"),b=!u&&n.get("focused"),y=!u&&n.get("focusVisible"),x=s("checked"),w=s("indeterminate"),S={"data-active":(0,i.sE)(n.get("active")),"data-focus":(0,i.sE)(b),"data-focus-visible":(0,i.sE)(y),"data-readonly":(0,i.sE)(g),"data-hover":(0,i.sE)(n.get("hovered")),"data-disabled":(0,i.sE)(u),"data-state":w?"indeterminate":x?"checked":"unchecked","data-invalid":(0,i.sE)(m),"data-required":(0,i.sE)(v)};return{checked:x,disabled:u,indeterminate:w,focused:b,checkedState:x,setChecked(e){r({type:"CHECKED.SET",checked:e,isTrusted:!1})},toggleChecked(){r({type:"CHECKED.TOGGLE",checked:x,isTrusted:!1})},getRootProps:()=>t.label({...c.root.attrs,...S,dir:a("dir"),id:d(l),htmlFor:h(l),onPointerMove(){u||r({type:"CONTEXT.SET",context:{hovered:!0}})},onPointerLeave(){u||r({type:"CONTEXT.SET",context:{hovered:!1}})},onClick(e){(0,i.wt)(e)===p(l)&&e.stopPropagation()}}),getLabelProps:()=>t.element({...c.label.attrs,...S,dir:a("dir"),id:f(l)}),getControlProps:()=>t.element({...c.control.attrs,...S,dir:a("dir"),id:l.ids?.control??`checkbox:${l.id}:control`,"aria-hidden":!0}),getIndicatorProps:()=>t.element({...c.indicator.attrs,...S,dir:a("dir"),hidden:!w&&!x}),getHiddenInputProps:()=>t.input({id:h(l),type:"checkbox",required:a("required"),defaultChecked:x,disabled:u,"aria-labelledby":f(l),"aria-invalid":m,name:a("name"),form:a("form"),value:a("value"),style:i.fe,onFocus(){r({type:"CONTEXT.SET",context:{focused:!0,focusVisible:(0,o.pP)()}})},onBlur(){r({type:"CONTEXT.SET",context:{focused:!1,focusVisible:!1}})},onClick(e){if(g)return void e.preventDefault();r({type:"CHECKED.SET",checked:e.currentTarget.checked,isTrusted:!0})}})}}var{not:v}=(0,a.b6)(),m=(0,a.Op)({props:({props:e})=>({value:"on",...e,defaultChecked:!!e.defaultChecked}),initialState:()=>"ready",context:({prop:e,bindable:t})=>({checked:t(()=>({defaultValue:e("defaultChecked"),value:e("checked"),onChange(t){e("onCheckedChange")?.({checked:t})}})),fieldsetDisabled:t(()=>({defaultValue:!1})),focusVisible:t(()=>({defaultValue:!1})),active:t(()=>({defaultValue:!1})),focused:t(()=>({defaultValue:!1})),hovered:t(()=>({defaultValue:!1}))}),watch({track:e,context:t,prop:r,action:n}){e([()=>r("disabled")],()=>{n(["removeFocusIfNeeded"])}),e([()=>t.get("checked")],()=>{n(["syncInputElement"])})},effects:["trackFormControlState","trackPressEvent","trackFocusVisible"],on:{"CHECKED.TOGGLE":[{guard:v("isTrusted"),actions:["toggleChecked","dispatchChangeEvent"]},{actions:["toggleChecked"]}],"CHECKED.SET":[{guard:v("isTrusted"),actions:["setChecked","dispatchChangeEvent"]},{actions:["setChecked"]}],"CONTEXT.SET":{actions:["setContext"]}},computed:{indeterminate:({context:e})=>b(e.get("checked")),checked:({context:e})=>(function(e){return!b(e)&&!!e})(e.get("checked")),disabled:({context:e,prop:t})=>!!t("disabled")||e.get("fieldsetDisabled")},states:{ready:{}},implementations:{guards:{isTrusted:({event:e})=>!!e.isTrusted},effects:{trackPressEvent({context:e,computed:t,scope:r}){if(!t("disabled"))return(0,i.ru)({pointerNode:r.getById(d(r)),keyboardNode:p(r),isValidKey:e=>" "===e.key,onPress:()=>e.set("active",!1),onPressStart:()=>e.set("active",!0),onPressEnd:()=>e.set("active",!1)})},trackFocusVisible({computed:e,scope:t}){if(!e("disabled"))return(0,o.Yy)({root:t.getRootNode?.()})},trackFormControlState:({context:e,scope:t})=>(0,i.$S)(p(t),{onFieldsetDisabledChange(t){e.set("fieldsetDisabled",t)},onFormReset(){e.set("checked",e.initial("checked"))}})},actions:{setContext({context:e,event:t}){for(let r in t.context)e.set(r,t.context[r])},syncInputElement({context:e,computed:t,scope:r}){let n=p(r);n&&((0,i._T)(n,t("checked")),n.indeterminate=b(e.get("checked")))},removeFocusIfNeeded({context:e,prop:t}){t("disabled")&&e.get("focused")&&(e.set("focused",!1),e.set("focusVisible",!1))},setChecked({context:e,event:t}){e.set("checked",t.checked)},toggleChecked({context:e,computed:t}){let r=!!b(t("checked"))||!t("checked");e.set("checked",r)},dispatchChangeEvent({computed:e,scope:t}){queueMicrotask(()=>{let r=p(t);(0,i.uf)(r,{checked:e("checked")})})}}}});function b(e){return"indeterminate"===e}var y=(0,s.x)()(["defaultChecked","checked","dir","disabled","form","getRootNode","id","ids","invalid","name","onCheckedChange","readOnly","required","value"]);(0,l.PM)(y)},78866:(e,t,r)=>{var n=r(93475);e.exports=function(){return n.Date.now()}},79152:(e,t,r)=>{var n=r(82936),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g;e.exports=n(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(i,function(e,r,n,i){t.push(n?i.replace(o,"$1"):r||e)}),t})},79515:(e,t,r)=>{var n=r(81563),i=r(59782),o=r(79152),a=r(29358);e.exports=function(e,t){return n(e)?e:i(e,t)?[e]:o(a(e))}},79910:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},80031:e=>{e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},80223:(e,t,r)=>{"use strict";r.d(t,{v:()=>o});let n=(...e)=>e.map(e=>e?.trim?.()).filter(Boolean).join(" "),i=/^on[A-Z]/;function o(...e){let t={};for(let r of e){for(let e in t){if(i.test(e)&&"function"==typeof t[e]&&"function"==typeof r[e]){t[e]=function(...e){return function(...t){e.forEach(e=>e?.(...t))}}(t[e],r[e]);continue}if("className"===e||"class"===e){t[e]=n(t[e],r[e]);continue}if("style"===e){t[e]=Object.assign({},t[e]??{},r[e]??{});continue}t[e]=void 0!==r[e]?r[e]:t[e]}for(let e in r)void 0===t[e]&&(t[e]=r[e])}return t}},80377:(e,t,r)=>{"use strict";function n(){return[]}function i(e){return null==e?n:function(){return this.querySelectorAll(e)}}r.d(t,{A:()=>i})},80389:(e,t,r)=>{var n=r(60678);e.exports=function(e){return function(t){return n(t,e)}}},80475:(e,t,r)=>{"use strict";r.d(t,{$:()=>s,s:()=>a});var n=r(49440),i=r(84873),o=r(6965),a=class extends i.k{#n;#D;#F;#i;constructor(e){super(),this.#n=e.client,this.mutationId=e.mutationId,this.#F=e.mutationCache,this.#D=[],this.state=e.state||s(),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.#D.includes(e)||(this.#D.push(e),this.clearGcTimeout(),this.#F.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#D=this.#D.filter(t=>t!==e),this.scheduleGc(),this.#F.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#D.length||("pending"===this.state.status?this.scheduleGc():this.#F.remove(this))}continue(){return this.#i?.continue()??this.execute(this.state.variables)}async execute(e){let t=()=>{this.#s({type:"continue"})},r={client:this.#n,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#i=(0,o.II)({fn:()=>this.options.mutationFn?this.options.mutationFn(e,r):Promise.reject(Error("No mutationFn found")),onFail:(e,t)=>{this.#s({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#s({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#F.canRun(this)});let n="pending"===this.state.status,i=!this.#i.canStart();try{if(n)t();else{this.#s({type:"pending",variables:e,isPaused:i}),await this.#F.config.onMutate?.(e,this,r);let t=await this.options.onMutate?.(e,r);t!==this.state.context&&this.#s({type:"pending",context:t,variables:e,isPaused:i})}let o=await this.#i.start();return await this.#F.config.onSuccess?.(o,e,this.state.context,this,r),await this.options.onSuccess?.(o,e,this.state.context,r),await this.#F.config.onSettled?.(o,null,this.state.variables,this.state.context,this,r),await this.options.onSettled?.(o,null,e,this.state.context,r),this.#s({type:"success",data:o}),o}catch(t){try{throw await this.#F.config.onError?.(t,e,this.state.context,this,r),await this.options.onError?.(t,e,this.state.context,r),await this.#F.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,r),await this.options.onSettled?.(void 0,t,e,this.state.context,r),t}finally{this.#s({type:"error",error:t})}}finally{this.#F.runNext(this)}}#s(e){this.state=(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),n.jG.batch(()=>{this.#D.forEach(t=>{t.onMutationUpdate(e)}),this.#F.notify({mutation:this,type:"updated",action:e})})}};function s(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}},80667:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r}},80888:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},81563:e=>{e.exports=Array.isArray},81751:e=>{e.exports=function(e){return this.__data__.get(e)}},81789:(e,t,r)=>{var n=r(50147),i=r(71444);e.exports=function(e,t,r,o){var a=!r;r||(r={});for(var s=-1,l=t.length;++s<l;){var u=t[s],c=o?o(r[u],e[u],u,r,e):void 0;void 0===c&&(c=e[u]),a?i(r,u,c):n(r,u,c)}return r}},81973:(e,t,r)=>{var n=r(65541),i=r(7890),o=r(92457);e.exports=n&&1/o(new n([,-0]))[1]==1/0?function(e){return new n(e)}:i},82070:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>a,GK:()=>o,Rw:()=>i,vr:()=>n});let n={passive:!1},i={capture:!0,passive:!1};function o(e){e.stopImmediatePropagation()}function a(e){e.preventDefault(),e.stopImmediatePropagation()}},82106:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,i=0,o=[];++r<n;){var a=e[r];t(a,r,e)&&(o[i++]=a)}return o}},82415:(e,t,r)=>{"use strict";function n(e,t=[]){let r=Object.assign({},e);for(let e of t)e in r&&delete r[e];return r}r.d(t,{c:()=>n})},82519:function(e,t,r){var n;!function(i,o){"use strict";var a="function",s="undefined",l="object",u="string",c="model",d="name",f="type",h="vendor",p="version",g="architecture",v="console",m="mobile",b="tablet",y="smarttv",x="wearable",w="embedded",S="Amazon",E="Apple",k="ASUS",C="BlackBerry",O="Browser",I="Chrome",_="Firefox",T="Google",P="Huawei",R="Microsoft",A="Motorola",N="Opera",M="Samsung",L="Sharp",V="Sony",D="Xiaomi",F="Zebra",j="Facebook",z=function(e,t){var r={};for(var n in e)t[n]&&t[n].length%2==0?r[n]=t[n].concat(e[n]):r[n]=e[n];return r},B=function(e){for(var t={},r=0;r<e.length;r++)t[e[r].toUpperCase()]=e[r];return t},U=function(e,t){return typeof e===u&&-1!==H(t).indexOf(H(e))},H=function(e){return e.toLowerCase()},W=function(e,t){if(typeof e===u)return e=e.replace(/^\s\s*/,""),typeof t===s?e:e.substring(0,350)},$=function(e,t){for(var r,n,i,s,u,c,d=0;d<t.length&&!u;){var f=t[d],h=t[d+1];for(r=n=0;r<f.length&&!u;)if(u=f[r++].exec(e))for(i=0;i<h.length;i++)c=u[++n],typeof(s=h[i])===l&&s.length>0?2===s.length?typeof s[1]==a?this[s[0]]=s[1].call(this,c):this[s[0]]=s[1]:3===s.length?typeof s[1]!==a||s[1].exec&&s[1].test?this[s[0]]=c?c.replace(s[1],s[2]):void 0:this[s[0]]=c?s[1].call(this,c,s[2]):void 0:4===s.length&&(this[s[0]]=c?s[3].call(this,c.replace(s[1],s[2])):o):this[s]=c||o;d+=2}},q=function(e,t){for(var r in t)if(typeof t[r]===l&&t[r].length>0){for(var n=0;n<t[r].length;n++)if(U(t[r][n],e))return"?"===r?o:r}else if(U(t[r],e))return"?"===r?o:r;return e},G={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},K={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[p,[d,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[p,[d,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[d,p],[/opios[\/ ]+([\w\.]+)/i],[p,[d,N+" Mini"]],[/\bopr\/([\w\.]+)/i],[p,[d,N]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(weibo)__([\d\.]+)/i],[d,p],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[p,[d,"UC"+O]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i],[p,[d,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[p,[d,"WeChat"]],[/konqueror\/([\w\.]+)/i],[p,[d,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[p,[d,"IE"]],[/yabrowser\/([\w\.]+)/i],[p,[d,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[d,/(.+)/,"$1 Secure "+O],p],[/\bfocus\/([\w\.]+)/i],[p,[d,_+" Focus"]],[/\bopt\/([\w\.]+)/i],[p,[d,N+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[p,[d,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[p,[d,"Dolphin"]],[/coast\/([\w\.]+)/i],[p,[d,N+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[p,[d,"MIUI "+O]],[/fxios\/([-\w\.]+)/i],[p,[d,_]],[/\bqihu|(qi?ho?o?|360)browser/i],[[d,"360 "+O]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[d,/(.+)/,"$1 "+O],p],[/(comodo_dragon)\/([\w\.]+)/i],[[d,/_/g," "],p],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[d,p],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i,/\[(linkedin)app\]/i],[d],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[d,j],p],[/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[d,p],[/\bgsa\/([\w\.]+) .*safari\//i],[p,[d,"GSA"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[p,[d,I+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[d,I+" WebView"],p],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[p,[d,"Android "+O]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[d,p],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[p,[d,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[p,d],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[d,[p,q,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[d,p],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[d,"Netscape"],p],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[p,[d,_+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[d,p],[/(cobalt)\/([\w\.]+)/i],[d,[p,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[g,"amd64"]],[/(ia32(?=;))/i],[[g,H]],[/((?:i[346]|x)86)[;\)]/i],[[g,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[g,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[g,"armhf"]],[/windows (ce|mobile); ppc;/i],[[g,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[g,/ower/,"",H]],[/(sun4\w)[;\)]/i],[[g,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[g,H]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[c,[h,M],[f,b]],[/\b((?:s[cgp]h|gt|sm)-\w+|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[c,[h,M],[f,m]],[/((ipod|iphone)\d+,\d+)/i],[c,[h,E],[f,m]],[/(ipad\d+,\d+)/i],[c,[h,E],[f,b]],[/\((ip(?:hone|od)[\w ]*);/i],[c,[h,E],[f,m]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[c,[h,E],[f,b]],[/(macintosh);/i],[c,[h,E]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[c,[h,P],[f,b]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[c,[h,P],[f,m]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[c,/_/g," "],[h,D],[f,m]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[c,/_/g," "],[h,D],[f,b]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[c,[h,"OPPO"],[f,m]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[c,[h,"Vivo"],[f,m]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[c,[h,"Realme"],[f,m]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[c,[h,A],[f,m]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[c,[h,A],[f,b]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[c,[h,"LG"],[f,b]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[c,[h,"LG"],[f,m]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[c,[h,"Lenovo"],[f,b]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[c,/_/g," "],[h,"Nokia"],[f,m]],[/(pixel c)\b/i],[c,[h,T],[f,b]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[c,[h,T],[f,m]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[c,[h,V],[f,m]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[c,"Xperia Tablet"],[h,V],[f,b]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[c,[h,"OnePlus"],[f,m]],[/(alexa)webm/i,/(kf[a-z]{2}wi)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[c,[h,S],[f,b]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[c,/(.+)/g,"Fire Phone $1"],[h,S],[f,m]],[/(playbook);[-\w\),; ]+(rim)/i],[c,h,[f,b]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[c,[h,C],[f,m]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[c,[h,k],[f,b]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[c,[h,k],[f,m]],[/(nexus 9)/i],[c,[h,"HTC"],[f,b]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic|sony(?!-bra))[-_ ]?([-\w]*)/i],[h,[c,/_/g," "],[f,m]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[c,[h,"Acer"],[f,b]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[c,[h,"Meizu"],[f,m]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[c,[h,L],[f,m]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[h,c,[f,m]],[/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[h,c,[f,b]],[/(surface duo)/i],[c,[h,R],[f,b]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[c,[h,"Fairphone"],[f,m]],[/(u304aa)/i],[c,[h,"AT&T"],[f,m]],[/\bsie-(\w*)/i],[c,[h,"Siemens"],[f,m]],[/\b(rct\w+) b/i],[c,[h,"RCA"],[f,b]],[/\b(venue[\d ]{2,7}) b/i],[c,[h,"Dell"],[f,b]],[/\b(q(?:mv|ta)\w+) b/i],[c,[h,"Verizon"],[f,b]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[c,[h,"Barnes & Noble"],[f,b]],[/\b(tm\d{3}\w+) b/i],[c,[h,"NuVision"],[f,b]],[/\b(k88) b/i],[c,[h,"ZTE"],[f,b]],[/\b(nx\d{3}j) b/i],[c,[h,"ZTE"],[f,m]],[/\b(gen\d{3}) b.+49h/i],[c,[h,"Swiss"],[f,m]],[/\b(zur\d{3}) b/i],[c,[h,"Swiss"],[f,b]],[/\b((zeki)?tb.*\b) b/i],[c,[h,"Zeki"],[f,b]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[h,"Dragon Touch"],c,[f,b]],[/\b(ns-?\w{0,9}) b/i],[c,[h,"Insignia"],[f,b]],[/\b((nxa|next)-?\w{0,9}) b/i],[c,[h,"NextBook"],[f,b]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[h,"Voice"],c,[f,m]],[/\b(lvtel\-)?(v1[12]) b/i],[[h,"LvTel"],c,[f,m]],[/\b(ph-1) /i],[c,[h,"Essential"],[f,m]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[c,[h,"Envizen"],[f,b]],[/\b(trio[-\w\. ]+) b/i],[c,[h,"MachSpeed"],[f,b]],[/\btu_(1491) b/i],[c,[h,"Rotor"],[f,b]],[/(shield[\w ]+) b/i],[c,[h,"Nvidia"],[f,b]],[/(sprint) (\w+)/i],[h,c,[f,m]],[/(kin\.[onetw]{3})/i],[[c,/\./g," "],[h,R],[f,m]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[c,[h,F],[f,b]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[c,[h,F],[f,m]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[h,c,[f,v]],[/droid.+; (shield) bui/i],[c,[h,"Nvidia"],[f,v]],[/(playstation [345portablevi]+)/i],[c,[h,V],[f,v]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[c,[h,R],[f,v]],[/smart-tv.+(samsung)/i],[h,[f,y]],[/hbbtv.+maple;(\d+)/i],[[c,/^/,"SmartTV"],[h,M],[f,y]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[h,"LG"],[f,y]],[/(apple) ?tv/i],[h,[c,E+" TV"],[f,y]],[/crkey/i],[[c,I+"cast"],[h,T],[f,y]],[/droid.+aft(\w)( bui|\))/i],[c,[h,S],[f,y]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[c,[h,L],[f,y]],[/(bravia[\w ]+)( bui|\))/i],[c,[h,V],[f,y]],[/(mitv-\w{5}) bui/i],[c,[h,D],[f,y]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w ]*; *(\w[^;]*);([^;]*)/i],[[h,W],[c,W],[f,y]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[f,y]],[/((pebble))app/i],[h,c,[f,x]],[/droid.+; (glass) \d/i],[c,[h,T],[f,x]],[/droid.+; (wt63?0{2,3})\)/i],[c,[h,F],[f,x]],[/(quest( 2)?)/i],[c,[h,j],[f,x]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[h,[f,w]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[c,[f,m]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[c,[f,b]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[f,b]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[f,m]],[/(android[-\w\. ]{0,9});.+buil/i],[c,[h,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[p,[d,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[p,[d,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i],[d,p],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[p,d]],os:[[/microsoft (windows) (vista|xp)/i],[d,p],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[d,[p,q,G]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[d,"Windows"],[p,q,G]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/cfnetwork\/.+darwin/i],[[p,/_/g,"."],[d,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[d,"Mac OS"],[p,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[p,d],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[d,p],[/\(bb(10);/i],[p,[d,C]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[p,[d,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[p,[d,_+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[p,[d,"webOS"]],[/crkey\/([\d\.]+)/i],[p,[d,I+"cast"]],[/(cros) [\w]+ ([\w\.]+\w)/i],[[d,"Chromium OS"],p],[/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[d,p],[/(sunos) ?([\w\.\d]*)/i],[[d,"Solaris"],p],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux)/i,/(unix) ?([\w\.]*)/i],[d,p]]},Y=function(e,t){if(typeof e===l&&(t=e,e=o),!(this instanceof Y))return new Y(e,t).getResult();var r=e||(typeof i!==s&&i.navigator&&i.navigator.userAgent?i.navigator.userAgent:""),n=t?z(K,t):K;return this.getBrowser=function(){var e,t={};return t[d]=o,t[p]=o,$.call(t,r,n.browser),t.major=typeof(e=t.version)===u?e.replace(/[^\d\.]/g,"").split(".")[0]:o,t},this.getCPU=function(){var e={};return e[g]=o,$.call(e,r,n.cpu),e},this.getDevice=function(){var e={};return e[h]=o,e[c]=o,e[f]=o,$.call(e,r,n.device),e},this.getEngine=function(){var e={};return e[d]=o,e[p]=o,$.call(e,r,n.engine),e},this.getOS=function(){var e={};return e[d]=o,e[p]=o,$.call(e,r,n.os),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return r},this.setUA=function(e){return r=typeof e===u&&e.length>350?W(e,350):e,this},this.setUA(r),this};Y.VERSION="0.7.33",Y.BROWSER=B([d,p,"major"]),Y.CPU=B([g]),Y.DEVICE=B([c,h,f,v,m,y,b,x,w]),Y.ENGINE=Y.OS=B([d,p]),typeof t!==s?(e.exports&&(t=e.exports=Y),t.UAParser=Y):r.amdO?o===(n=(function(){return Y}).call(t,r,t,e))||(e.exports=n):typeof i!==s&&(i.UAParser=Y);var X=typeof i!==s&&(i.jQuery||i.Zepto);if(X&&!X.ua){var Q=new Y;X.ua=Q.getResult(),X.ua.get=function(){return Q.getUA()},X.ua.set=function(e){Q.setUA(e);var t=Q.getResult();for(var r in t)X.ua[r]=t[r]}}}("object"==typeof window?window:this)},82689:(e,t,r)=>{var n=r(17231);e.exports=function(e){return n(this.__data__,e)>-1}},82936:(e,t,r)=>{var n=r(7670);e.exports=function(e){var t=n(e,function(e){return 500===r.size&&r.clear(),e}),r=t.cache;return t}},82940:(e,t,r)=>{var n=r(52239),i=r(62479),o=r(22719);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(o||i),string:new n}}},83496:(e,t,r)=>{var n=r(9452),i=r(45136),o=r(73530),a=r(93773),s=Object.prototype,l=s.hasOwnProperty;e.exports=n(function(e,t){e=Object(e);var r=-1,n=t.length,u=n>2?t[2]:void 0;for(u&&o(t[0],t[1],u)&&(n=1);++r<n;)for(var c=t[r],d=a(c),f=-1,h=d.length;++f<h;){var p=d[f],g=e[p];(void 0===g||i(g,s[p])&&!l.call(e,p))&&(e[p]=c[p])}return e})},83576:(e,t,r)=>{"use strict";r.d(t,{e:()=>l});var n=r(87259),i=r(80715),o=r(72348),a=r(83683),s=r(57288);let l=(0,i.forwardRef)(function(e,t){let r=(0,o.m)({key:"button"}),[l,u]=(0,i.useMemo)(()=>r.splitVariantProps(e),[e,r]);return(0,n.jsx)(a.O,{value:l,children:(0,n.jsx)(s.Y,{ref:t,...u})})})},83660:(e,t,r)=>{e.exports=r(72475)(Object.keys,Object)},83683:(e,t,r)=>{"use strict";r.d(t,{$:()=>m,O:()=>b});var n=r(87259),i=r(80715),o=r(80223),a=r(62523),s=r(38006),l=r(70505),u=r(10425),c=r(96162),d=r(48496);let f=(0,s.B)("div",{base:{position:"absolute",display:"flex",alignItems:"center",justifyContent:"center"},variants:{axis:{horizontal:{insetStart:"50%",translate:"-50%",_rtl:{translate:"50%"}},vertical:{top:"50%",translate:"0 -50%"},both:{insetStart:"50%",top:"50%",translate:"-50% -50%",_rtl:{translate:"50% -50%"}}}},defaultVariants:{axis:"both"}});f.displayName="AbsoluteCenter";let h=i.forwardRef(function(e,t){let{spinner:r=(0,n.jsx)(d.y,{size:"inherit",borderWidth:"0.125em",color:"inherit"}),spinnerPlacement:i="start",children:o,text:a,visible:s=!0,...l}=e;return s?a?(0,n.jsxs)(c.L,{ref:t,display:"contents",...l,children:["start"===i&&r,a,"end"===i&&r]}):r?(0,n.jsxs)(c.L,{ref:t,display:"contents",...l,children:[(0,n.jsx)(f,{display:"inline-flex",children:r}),(0,n.jsx)(c.L,{visibility:"hidden",display:"contents",children:o})]}):(0,n.jsx)(c.L,{ref:t,display:"contents",...l,children:o}):o}),{useRecipeResult:p,PropsProvider:g,usePropsContext:v}=(0,a.a)({key:"button"}),m=(0,i.forwardRef)(function(e,t){let r=v(),a=(0,i.useMemo)(()=>(0,o.v)(r,e),[r,e]),c=p(a),{loading:d,loadingText:f,children:g,spinner:m,spinnerPlacement:b,...y}=c.props;return(0,n.jsx)(s.B.button,{type:"button",ref:t,...y,"data-loading":(0,l.s)(d),disabled:d||y.disabled,className:(0,u.cx)(c.className,a.className),css:[c.styles,a.css],children:!a.asChild&&d?(0,n.jsx)(h,{spinner:m,text:f,spinnerPlacement:b,children:g}):g})}),b=g},84682:(e,t,r)=>{var n=r(75332);e.exports=function(e,t,r){for(var i=-1,o=e.criteria,a=t.criteria,s=o.length,l=r.length;++i<s;){var u=n(o[i],a[i]);if(u){if(i>=l)return u;return u*("desc"==r[i]?-1:1)}}return e.index-t.index}},84873:(e,t,r)=>{"use strict";r.d(t,{k:()=>o});var n=r(51714),i=r(11485),o=class{#j;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),(0,i.gn)(this.gcTime)&&(this.#j=n.zs.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(i.S$?1/0:3e5))}clearGcTimeout(){this.#j&&(n.zs.clearTimeout(this.#j),this.#j=void 0)}}},85602:e=>{var t=Object.prototype.hasOwnProperty;e.exports=function(e,r){return null!=e&&t.call(e,r)}},85928:(e,t,r)=>{var n=r(65675),i=r(73530),o=r(57544);e.exports=function(e){return function(t,r,a){return a&&"number"!=typeof a&&i(t,r,a)&&(r=a=void 0),t=o(t),void 0===r?(r=t,t=0):r=o(r),a=void 0===a?t<r?1:-1:o(a),n(t,r,a,e)}}},85963:(e,t,r)=>{"use strict";r.d(t,{A:()=>W});var n=function(){function e(e){var t=this;this._insertTag=function(e){var r;r=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,r),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(((t=document.createElement("style")).setAttribute("data-emotion",this.key),void 0!==this.nonce&&t.setAttribute("nonce",this.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t));var t,r=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(r);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else r.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),this.tags=[],this.ctr=0},e}(),i=Math.abs,o=String.fromCharCode,a=Object.assign;function s(e,t,r){return e.replace(t,r)}function l(e,t){return e.indexOf(t)}function u(e,t){return 0|e.charCodeAt(t)}function c(e,t,r){return e.slice(t,r)}function d(e){return e.length}function f(e,t){return t.push(e),e}var h=1,p=1,g=0,v=0,m=0,b="";function y(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:h,column:p,length:a,return:""}}function x(e,t){return a(y("",null,null,"",null,null,0),e,{length:-e.length},t)}function w(){return m=v<g?u(b,v++):0,p++,10===m&&(p=1,h++),m}function S(){return u(b,v)}function E(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function k(e){return h=p=1,g=d(b=e),v=0,[]}function C(e){var t,r;return(t=v-1,r=function e(t){for(;w();)switch(m){case t:return v;case 34:case 39:34!==t&&39!==t&&e(m);break;case 40:41===t&&e(t);break;case 92:w()}return v}(91===e?e+2:40===e?e+1:e),c(b,t,r)).trim()}var O="-ms-",I="-moz-",_="-webkit-",T="comm",P="rule",R="decl",A="@keyframes";function N(e,t){for(var r="",n=e.length,i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function M(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case R:return e.return=e.return||e.value;case T:return"";case A:return e.return=e.value+"{"+N(e.children,n)+"}";case P:e.value=e.props.join(",")}return d(r=N(e.children,n))?e.return=e.value+"{"+r+"}":""}function L(e,t,r,n,o,a,l,u,d,f,h){for(var p=o-1,g=0===o?a:[""],v=g.length,m=0,b=0,x=0;m<n;++m)for(var w=0,S=c(e,p+1,p=i(b=l[m])),E=e;w<v;++w)(E=(b>0?g[w]+" "+S:s(S,/&\f/g,g[w])).trim())&&(d[x++]=E);return y(e,t,r,0===o?P:u,d,f,h)}function V(e,t,r,n){return y(e,t,r,R,c(e,0,n),c(e,n+1,-1),n)}var D=function(e,t,r){for(var n=0,i=0;n=i,i=S(),38===n&&12===i&&(t[r]=1),!E(i);)w();return c(b,e,v)},F=function(e,t){var r=-1,n=44;do switch(E(n)){case 0:38===n&&12===S()&&(t[r]=1),e[r]+=D(v-1,t,r);break;case 2:e[r]+=C(n);break;case 4:if(44===n){e[++r]=58===S()?"&\f":"",t[r]=e[r].length;break}default:e[r]+=o(n)}while(n=w());return e},j=function(e,t){var r;return r=F(k(e),t),b="",r},z=new WeakMap,B=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;"rule"!==r.type;)if(!(r=r.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||z.get(r))&&!n){z.set(e,!0);for(var i=[],o=j(t,i),a=r.props,s=0,l=0;s<o.length;s++)for(var u=0;u<a.length;u++,l++)e.props[l]=i[s]?o[s].replace(/&\f/g,a[u]):a[u]+" "+o[s]}}},U=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},H=[function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case R:e.return=function e(t,r){switch(45^u(t,0)?(((r<<2^u(t,0))<<2^u(t,1))<<2^u(t,2))<<2^u(t,3):0){case 5103:return _+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return _+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return _+t+I+t+O+t+t;case 6828:case 4268:return _+t+O+t+t;case 6165:return _+t+O+"flex-"+t+t;case 5187:return _+t+s(t,/(\w+).+(:[^]+)/,_+"box-$1$2"+O+"flex-$1$2")+t;case 5443:return _+t+O+"flex-item-"+s(t,/flex-|-self/,"")+t;case 4675:return _+t+O+"flex-line-pack"+s(t,/align-content|flex-|-self/,"")+t;case 5548:return _+t+O+s(t,"shrink","negative")+t;case 5292:return _+t+O+s(t,"basis","preferred-size")+t;case 6060:return _+"box-"+s(t,"-grow","")+_+t+O+s(t,"grow","positive")+t;case 4554:return _+s(t,/([^-])(transform)/g,"$1"+_+"$2")+t;case 6187:return s(s(s(t,/(zoom-|grab)/,_+"$1"),/(image-set)/,_+"$1"),t,"")+t;case 5495:case 3959:return s(t,/(image-set\([^]*)/,_+"$1$`$1");case 4968:return s(s(t,/(.+:)(flex-)?(.*)/,_+"box-pack:$3"+O+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+_+t+t;case 4095:case 3583:case 4068:case 2532:return s(t,/(.+)-inline(.+)/,_+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(d(t)-1-r>6)switch(u(t,r+1)){case 109:if(45!==u(t,r+4))break;case 102:return s(t,/(.+:)(.+)-([^]+)/,"$1"+_+"$2-$3$1"+I+(108==u(t,r+3)?"$3":"$2-$3"))+t;case 115:return~l(t,"stretch")?e(s(t,"stretch","fill-available"),r)+t:t}break;case 4949:if(115!==u(t,r+1))break;case 6444:switch(u(t,d(t)-3-(~l(t,"!important")&&10))){case 107:return s(t,":",":"+_)+t;case 101:return s(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+_+(45===u(t,14)?"inline-":"")+"box$3$1"+_+"$2$3$1"+O+"$2box$3")+t}break;case 5936:switch(u(t,r+11)){case 114:return _+t+O+s(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return _+t+O+s(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return _+t+O+s(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return _+t+O+t+t}return t}(e.value,e.length);break;case A:return N([x(e,{value:s(e.value,"@","@"+_)})],n);case P:if(e.length){var i,o;return i=e.props,o=function(t){var r;switch(r=t,(r=/(::plac\w+|:read-\w+)/.exec(r))?r[0]:r){case":read-only":case":read-write":return N([x(e,{props:[s(t,/:(read-\w+)/,":"+I+"$1")]})],n);case"::placeholder":return N([x(e,{props:[s(t,/:(plac\w+)/,":"+_+"input-$1")]}),x(e,{props:[s(t,/:(plac\w+)/,":"+I+"$1")]}),x(e,{props:[s(t,/:(plac\w+)/,O+"input-$1")]})],n)}return""},i.map(o).join("")}}}],W=function(e){var t,r,i,a,g,x=e.key;if("css"===x){var O=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(O,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var I=e.stylisPlugins||H,_={},P=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+x+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),r=1;r<t.length;r++)_[t[r]]=!0;P.push(e)});var R=(r=(t=[B,U].concat(I,[M,(i=function(e){g.insert(e)},function(e){!e.root&&(e=e.return)&&i(e)})])).length,function(e,n,i,o){for(var a="",s=0;s<r;s++)a+=t[s](e,n,i,o)||"";return a}),A=function(e){var t,r;return N((r=function e(t,r,n,i,a,g,x,k,O){for(var I,_=0,P=0,R=x,A=0,N=0,M=0,D=1,F=1,j=1,z=0,B="",U=a,H=g,W=i,$=B;F;)switch(M=z,z=w()){case 40:if(108!=M&&58==u($,R-1)){-1!=l($+=s(C(z),"&","&\f"),"&\f")&&(j=-1);break}case 34:case 39:case 91:$+=C(z);break;case 9:case 10:case 13:case 32:$+=function(e){for(;m=S();)if(m<33)w();else break;return E(e)>2||E(m)>3?"":" "}(M);break;case 92:$+=function(e,t){for(var r;--t&&w()&&!(m<48)&&!(m>102)&&(!(m>57)||!(m<65))&&(!(m>70)||!(m<97)););return r=v+(t<6&&32==S()&&32==w()),c(b,e,r)}(v-1,7);continue;case 47:switch(S()){case 42:case 47:f((I=function(e,t){for(;w();)if(e+m===57)break;else if(e+m===84&&47===S())break;return"/*"+c(b,t,v-1)+"*"+o(47===e?e:w())}(w(),v),y(I,r,n,T,o(m),c(I,2,-2),0)),O);break;default:$+="/"}break;case 123*D:k[_++]=d($)*j;case 125*D:case 59:case 0:switch(z){case 0:case 125:F=0;case 59+P:-1==j&&($=s($,/\f/g,"")),N>0&&d($)-R&&f(N>32?V($+";",i,n,R-1):V(s($," ","")+";",i,n,R-2),O);break;case 59:$+=";";default:if(f(W=L($,r,n,_,P,a,k,B,U=[],H=[],R),g),123===z)if(0===P)e($,r,W,W,U,g,R,k,H);else switch(99===A&&110===u($,3)?100:A){case 100:case 108:case 109:case 115:e(t,W,W,i&&f(L(t,W,W,0,0,a,k,B,a,U=[],R),H),a,H,R,k,i?U:H);break;default:e($,W,W,W,[""],H,0,k,H)}}_=P=N=0,D=j=1,B=$="",R=x;break;case 58:R=1+d($),N=M;default:if(D<1){if(123==z)--D;else if(125==z&&0==D++&&125==(m=v>0?u(b,--v):0,p--,10===m&&(p=1,h--),m))continue}switch($+=o(z),z*D){case 38:j=P>0?1:($+="\f",-1);break;case 44:k[_++]=(d($)-1)*j,j=1;break;case 64:45===S()&&($+=C(w())),A=S(),P=R=d(B=$+=function(e){for(;!E(S());)w();return c(b,e,v)}(v)),z++;break;case 45:45===M&&2==d($)&&(D=0)}}return g}("",null,null,null,[""],t=k(t=e),0,[0],t),b="",r),R)},D={key:x,sheet:new n({key:x,container:a,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:_,registered:{},insert:function(e,t,r,n){g=r,A(e?e+"{"+t.styles+"}":t.styles),n&&(D.inserted[t.name]=!0)}};return D.sheet.hydrate(P),D}},86276:e=>{e.exports="0.8.5"},86427:(e,t,r)=>{"use strict";function n(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}r.d(t,{A:()=>n})},86483:(e,t,r)=>{"use strict";r.d(t,{S:()=>n,f:()=>i});let[n,i]=(0,r(5719).q)({name:"FieldContext",hookName:"useFieldContext",providerName:"<FieldProvider />",strict:!1})},86622:(e,t,r)=>{var n=r(5755),i=r(17478),o=r(96980);e.exports=function(e){return o(e)?n(e):i(e)}},86697:(e,t,r)=>{"use strict";r.d(t,{u:()=>i,z:()=>n});let n=Object.freeze({}),i=Object.freeze({})},86829:e=>{e.exports=a,a.default=a,a.stable=u,a.stableStringify=u;var t="[...]",r="[Circular]",n=[],i=[];function o(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function a(e,a,l,u){void 0===u&&(u=o()),function e(n,i,o,a,l,u,c){if(u+=1,"object"==typeof n&&null!==n){for(d=0;d<a.length;d++)if(a[d]===n)return void s(r,n,i,l);if(void 0!==c.depthLimit&&u>c.depthLimit||void 0!==c.edgesLimit&&o+1>c.edgesLimit)return void s(t,n,i,l);if(a.push(n),Array.isArray(n))for(d=0;d<n.length;d++)e(n[d],d,d,a,n,u,c);else{var d,f=Object.keys(n);for(d=0;d<f.length;d++){var h=f[d];e(n[h],h,d,a,n,u,c)}}a.pop()}}(e,"",0,[],void 0,0,u);try{d=0===i.length?JSON.stringify(e,a,l):JSON.stringify(e,c(a),l)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==n.length;){var d,f=n.pop();4===f.length?Object.defineProperty(f[0],f[1],f[3]):f[0][f[1]]=f[2]}}return d}function s(e,t,r,o){var a=Object.getOwnPropertyDescriptor(o,r);void 0!==a.get?a.configurable?(Object.defineProperty(o,r,{value:e}),n.push([o,r,t,a])):i.push([t,r,e]):(o[r]=e,n.push([o,r,t]))}function l(e,t){return e<t?-1:+(e>t)}function u(e,a,u,d){void 0===d&&(d=o());var f,h=function e(i,o,a,u,c,d,f){if(d+=1,"object"==typeof i&&null!==i){for(h=0;h<u.length;h++)if(u[h]===i)return void s(r,i,o,c);try{if("function"==typeof i.toJSON)return}catch(e){return}if(void 0!==f.depthLimit&&d>f.depthLimit||void 0!==f.edgesLimit&&a+1>f.edgesLimit)return void s(t,i,o,c);if(u.push(i),Array.isArray(i))for(h=0;h<i.length;h++)e(i[h],h,h,u,i,d,f);else{var h,p={},g=Object.keys(i).sort(l);for(h=0;h<g.length;h++){var v=g[h];e(i[v],v,h,u,i,d,f),p[v]=i[v]}if(void 0===c)return p;n.push([c,o,i]),c[o]=p}u.pop()}}(e,"",0,[],void 0,0,d)||e;try{f=0===i.length?JSON.stringify(h,a,u):JSON.stringify(h,c(a),u)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==n.length;){var p=n.pop();4===p.length?Object.defineProperty(p[0],p[1],p[3]):p[0][p[1]]=p[2]}}return f}function c(e){return e=void 0!==e?e:function(e,t){return t},function(t,r){if(i.length>0)for(var n=0;n<i.length;n++){var o=i[n];if(o[1]===t&&o[0]===r){r=o[2],i.splice(n,1);break}}return e.call(this,t,r)}}},86942:(e,t,r)=>{"use strict";r.d(t,{Ht:()=>s,jE:()=>a});var n=r(80715),i=r(87259),o=n.createContext(void 0),a=e=>{let t=n.useContext(o);if(e)return e;if(!t)throw Error("No QueryClient set, use QueryClientProvider to set one");return t},s=e=>{let{client:t,children:r}=e;return n.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),(0,i.jsx)(o.Provider,{value:t,children:r})}},87442:(e,t,r)=>{"use strict";r.d(t,{K:()=>a});var n=r(87259),i=r(80715),o=r(83683);let a=(0,i.forwardRef)(function(e,t){return(0,n.jsx)(o.$,{px:"0",py:"0",_icon:{fontSize:"1.2em"},ref:t,...e})})},87560:(e,t,r)=>{var n=r(59567),i=r(28750),o=r(49005),a=r(43623),s=r(66241),l=r(74582),u=r(81563),c=r(69635),d=r(7088),f=r(75114),h=r(94193),p=r(13837),g=r(14143),v=r(78478),m=r(24738);e.exports=function(e,t,r,b,y,x,w){var S=v(e,r),E=v(t,r),k=w.get(E);if(k)return void n(e,r,k);var C=x?x(S,E,r+"",e,t,w):void 0,O=void 0===C;if(O){var I=u(E),_=!I&&d(E),T=!I&&!_&&g(E);C=E,I||_||T?u(S)?C=S:c(S)?C=a(S):_?(O=!1,C=i(E,!0)):T?(O=!1,C=o(E,!0)):C=[]:p(E)||l(E)?(C=S,l(S)?C=m(S):(!h(S)||f(S))&&(C=s(E))):O=!1}O&&(w.set(E,C),y(C,E,b,x,w),w.delete(E)),n(e,r,C)}},87635:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isLocalURL",{enumerable:!0,get:function(){return o}});let n=r(67684),i=r(80709);function o(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,i.hasBasePath)(r.pathname)}catch(e){return!1}}},87670:(e,t,r)=>{"use strict";r.d(t,{k5:()=>c});var n=r(80715),i={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},o=n.createContext&&n.createContext(i),a=["attr","size","title"];function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach(function(t){var n,i,o;n=e,i=t,o=r[t],(i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i))in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function c(e){return t=>n.createElement(d,s({attr:u({},e.attr)},t),function e(t){return t&&t.map((t,r)=>n.createElement(t.tag,u({key:r},t.attr),e(t.child)))}(e.child))}function d(e){var t=t=>{var r,{attr:i,size:o,title:l}=e,c=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,a),d=o||t.size||"1em";return t.className&&(r=t.className),e.className&&(r=(r?r+" ":"")+e.className),n.createElement("svg",s({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,i,c,{className:r,style:u(u({color:e.color||t.color},t.style),e.style),height:d,width:d,xmlns:"http://www.w3.org/2000/svg"}),l&&n.createElement("title",null,l),e.children)};return void 0!==o?n.createElement(o.Consumer,null,e=>t(e)):t(i)}},87804:(e,t,r)=>{"use strict";r.d(t,{c:()=>i});var n=r(80715);function i(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=(0,n.useRef)(()=>{throw Error("Cannot call an event handler while rendering.")});return(0,n.useInsertionEffect)(()=>{r.current=e}),(0,n.useCallback)(function(){for(var e,t=arguments.length,n=Array(t),i=0;i<t;i++)n[i]=arguments[i];return null==(e=r.current)?void 0:e.call(r,...n)},t)}},87826:(e,t,r)=>{"use strict";r.d(t,{ME:()=>m,Yy:()=>y,pP:()=>b});var n=r(77534),i=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]),o=null,a=new Set,s=new Map,l=!1,u=!1,c={Tab:!0,Escape:!0};function d(e,t){for(let r of a)r(e,t)}function f(e){l=!0,e.metaKey||!(0,n.cX)()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key||(o="keyboard",d("keyboard",e))}function h(e){o="pointer",("mousedown"===e.type||"pointerdown"===e.type)&&(l=!0,d("pointer",e))}function p(e){(0,n.YF)(e)&&(l=!0,o="virtual")}function g(e){let t=(0,n.wt)(e);t!==(0,n.zk)(t)&&t!==(0,n.YE)(t)&&(l||u||(o="virtual",d("virtual",e)),l=!1,u=!1)}function v(){l=!1,u=!0}function m(){return o}function b(){return"keyboard"===o}function y(e={}){let{isTextInput:t,autoFocus:r,onChange:u,root:m}=e;!function(e){if("undefined"==typeof window||s.get((0,n.zk)(e)))return;let t=(0,n.zk)(e),r=(0,n.YE)(e),i=t.HTMLElement.prototype.focus;Object.defineProperty(t.HTMLElement.prototype,"focus",{configurable:!0,value:function(){o="virtual",d("virtual",null),l=!0,i.apply(this,arguments)}}),r.addEventListener("keydown",f,!0),r.addEventListener("keyup",f,!0),r.addEventListener("click",p,!0),t.addEventListener("focus",g,!0),t.addEventListener("blur",v,!1),void 0!==t.PointerEvent?(r.addEventListener("pointerdown",h,!0),r.addEventListener("pointermove",h,!0),r.addEventListener("pointerup",h,!0)):(r.addEventListener("mousedown",h,!0),r.addEventListener("mousemove",h,!0),r.addEventListener("mouseup",h,!0)),t.addEventListener("beforeunload",()=>{var t=e;let r=(0,n.zk)(t),i=(0,n.YE)(t);s.has(r)&&(r.HTMLElement.prototype.focus=s.get(r).focus,i.removeEventListener("keydown",f,!0),i.removeEventListener("keyup",f,!0),i.removeEventListener("click",p,!0),r.removeEventListener("focus",g,!0),r.removeEventListener("blur",v,!1),void 0!==r.PointerEvent?(i.removeEventListener("pointerdown",h,!0),i.removeEventListener("pointermove",h,!0),i.removeEventListener("pointerup",h,!0)):(i.removeEventListener("mousedown",h,!0),i.removeEventListener("mousemove",h,!0),i.removeEventListener("mouseup",h,!0)),s.delete(r))},{once:!0}),s.set(t,{focus:i})}(m),u?.({isFocusVisible:r||b(),modality:o});let x=(e,r)=>{(function(e,t,r){let o=r?(0,n.wt)(r):null,a=(0,n.zk)(o);return!((e=e||o instanceof a.HTMLInputElement&&!i.has(o?.type)||o instanceof a.HTMLTextAreaElement||o instanceof a.HTMLElement&&o.isContentEditable)&&"keyboard"===t&&r instanceof a.KeyboardEvent&&!Reflect.has(c,r.key))})(!!t,e,r)&&u?.({isFocusVisible:b(),modality:e})};return a.add(x),()=>{a.delete(x)}}},87994:e=>{e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},88104:(e,t,r)=>{"use strict";r.d(t,{E:()=>g});var n=r(11485),i=r(4072),o=r(49440),a=r(67553),s=class extends a.Q{constructor(e={}){super(),this.config=e,this.#z=new Map}#z;build(e,t,r){let o=t.queryKey,a=t.queryHash??(0,n.F$)(o,t),s=this.get(a);return s||(s=new i.X({client:e,queryKey:o,queryHash:a,options:e.defaultQueryOptions(t),state:r,defaultOptions:e.getQueryDefaults(o)}),this.add(s)),s}add(e){this.#z.has(e.queryHash)||(this.#z.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){let t=this.#z.get(e.queryHash);t&&(e.destroy(),t===e&&this.#z.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){o.jG.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#z.get(e)}getAll(){return[...this.#z.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>(0,n.MK)(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>(0,n.MK)(e,t)):t}notify(e){o.jG.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){o.jG.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){o.jG.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},l=r(80475),u=class extends a.Q{constructor(e={}){super(),this.config=e,this.#B=new Set,this.#U=new Map,this.#H=0}#B;#U;#H;build(e,t,r){let n=new l.s({client:e,mutationCache:this,mutationId:++this.#H,options:e.defaultMutationOptions(t),state:r});return this.add(n),n}add(e){this.#B.add(e);let t=c(e);if("string"==typeof t){let r=this.#U.get(t);r?r.push(e):this.#U.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#B.delete(e)){let t=c(e);if("string"==typeof t){let r=this.#U.get(t);if(r)if(r.length>1){let t=r.indexOf(e);-1!==t&&r.splice(t,1)}else r[0]===e&&this.#U.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){let t=c(e);if("string"!=typeof t)return!0;{let r=this.#U.get(t),n=r?.find(e=>"pending"===e.state.status);return!n||n===e}}runNext(e){let t=c(e);if("string"!=typeof t)return Promise.resolve();{let r=this.#U.get(t)?.find(t=>t!==e&&t.state.isPaused);return r?.continue()??Promise.resolve()}}clear(){o.jG.batch(()=>{this.#B.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#B.clear(),this.#U.clear()})}getAll(){return Array.from(this.#B)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>(0,n.nJ)(t,e))}findAll(e={}){return this.getAll().filter(t=>(0,n.nJ)(e,t))}notify(e){o.jG.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return o.jG.batch(()=>Promise.all(e.map(e=>e.continue().catch(n.lQ))))}};function c(e){return e.options.scope?.id}var d=r(18023),f=r(8798);function h(e){return{onFetch:(t,r)=>{let i=t.options,o=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],s=t.state.data?.pageParams||[],l={pages:[],pageParams:[]},u=0,c=async()=>{let r=!1,c=(0,n.ZM)(t.options,t.fetchOptions),d=async(e,i,o)=>{if(r)return Promise.reject();if(null==i&&e.pages.length)return Promise.resolve(e);let a=(()=>{let e={client:t.client,queryKey:t.queryKey,pageParam:i,direction:o?"backward":"forward",meta:t.options.meta};return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(t.signal.aborted?r=!0:t.signal.addEventListener("abort",()=>{r=!0}),t.signal)}),e})(),s=await c(a),{maxPages:l}=t.options,u=o?n.ZZ:n.y9;return{pages:u(e.pages,s,l),pageParams:u(e.pageParams,i,l)}};if(o&&a.length){let e="backward"===o,t={pages:a,pageParams:s},r=(e?function(e,{pages:t,pageParams:r}){return t.length>0?e.getPreviousPageParam?.(t[0],t,r[0],r):void 0}:p)(i,t);l=await d(t,r,e)}else{let t=e??a.length;do{let e=0===u?s[0]??i.initialPageParam:p(i,l);if(u>0&&null==e)break;l=await d(l,e),u++}while(u<t)}return l};t.options.persister?t.fetchFn=()=>t.options.persister?.(c,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r):t.fetchFn=c}}}function p(e,{pages:t,pageParams:r}){let n=t.length-1;return t.length>0?e.getNextPageParam(t[n],t,r[n],r):void 0}var g=class{#W;#F;#o;#$;#q;#G;#K;#Y;constructor(e={}){this.#W=e.queryCache||new s,this.#F=e.mutationCache||new u,this.#o=e.defaultOptions||{},this.#$=new Map,this.#q=new Map,this.#G=0}mount(){this.#G++,1===this.#G&&(this.#K=d.m.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#W.onFocus())}),this.#Y=f.t.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#W.onOnline())}))}unmount(){this.#G--,0===this.#G&&(this.#K?.(),this.#K=void 0,this.#Y?.(),this.#Y=void 0)}isFetching(e){return this.#W.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#F.findAll({...e,status:"pending"}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#W.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),r=this.#W.build(this,t),i=r.state.data;return void 0===i?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime((0,n.d2)(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(i))}getQueriesData(e){return this.#W.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,r){let i=this.defaultQueryOptions({queryKey:e}),o=this.#W.get(i.queryHash),a=o?.state.data,s=(0,n.Zw)(t,a);if(void 0!==s)return this.#W.build(this,i).setData(s,{...r,manual:!0})}setQueriesData(e,t,r){return o.jG.batch(()=>this.#W.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,r)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#W.get(t.queryHash)?.state}removeQueries(e){let t=this.#W;o.jG.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let r=this.#W;return o.jG.batch(()=>(r.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){let r={revert:!0,...t};return Promise.all(o.jG.batch(()=>this.#W.findAll(e).map(e=>e.cancel(r)))).then(n.lQ).catch(n.lQ)}invalidateQueries(e,t={}){return o.jG.batch(()=>(this.#W.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 r={...t,cancelRefetch:t.cancelRefetch??!0};return Promise.all(o.jG.batch(()=>this.#W.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,r);return r.throwOnError||(t=t.catch(n.lQ)),"paused"===e.state.fetchStatus?Promise.resolve():t}))).then(n.lQ)}fetchQuery(e){let t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);let r=this.#W.build(this,t);return r.isStaleByTime((0,n.d2)(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(n.lQ).catch(n.lQ)}fetchInfiniteQuery(e){return e.behavior=h(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(n.lQ).catch(n.lQ)}ensureInfiniteQueryData(e){return e.behavior=h(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return f.t.isOnline()?this.#F.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#W}getMutationCache(){return this.#F}getDefaultOptions(){return this.#o}setDefaultOptions(e){this.#o=e}setQueryDefaults(e,t){this.#$.set((0,n.EN)(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#$.values()],r={};return t.forEach(t=>{(0,n.Cp)(e,t.queryKey)&&Object.assign(r,t.defaultOptions)}),r}setMutationDefaults(e,t){this.#q.set((0,n.EN)(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#q.values()],r={};return t.forEach(t=>{(0,n.Cp)(e,t.mutationKey)&&Object.assign(r,t.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#o.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=(0,n.F$)(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.throwOnError&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===n.hT&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#o.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#W.clear(),this.#F.clear()}}},88255:(e,t,r)=>{var n=r(82940),i=r(4084),o=r(24253),a=r(90641),s=r(41249);function l(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},88290:(e,t,r)=>{"use strict";r.d(t,{sb:()=>oY});var n=r(10684),i=r(67030),o=r(14907);let a=(e,t)=>null!=t?`${e}(${t})`:t,s=e=>{if(/^var\(--.+\)$/.test(e)||null==e)return e;let t="string"==typeof e&&!e.endsWith("deg");return"number"==typeof e||t?`${e}deg`:e},l=e=>({values:["outside","inside","mixed","none"],transform(t,{token:r}){let n=r("colors.colorPalette.focusRing");return({inside:{"--focus-ring-color":n,[e]:{outlineOffset:"0px",outlineWidth:"var(--focus-ring-width, 1px)",outlineColor:"var(--focus-ring-color)",outlineStyle:"var(--focus-ring-style, solid)",borderColor:"var(--focus-ring-color)"}},outside:{"--focus-ring-color":n,[e]:{outlineWidth:"var(--focus-ring-width, 2px)",outlineOffset:"var(--focus-ring-offset, 2px)",outlineStyle:"var(--focus-ring-style, solid)",outlineColor:"var(--focus-ring-color)"}},mixed:{"--focus-ring-color":n,[e]:{outlineWidth:"var(--focus-ring-width, 3px)",outlineStyle:"var(--focus-ring-style, solid)",outlineColor:"color-mix(in srgb, var(--focus-ring-color), transparent 60%)",borderColor:"var(--focus-ring-color)"}},none:{"--focus-ring-color":n,[e]:{outline:"none"}}})[t]??{}}}),u=(0,n.U)("borderColor"),c=e=>({transition:e,transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"150ms"}),d=(0,i.sJ)({hover:["@media (hover: hover)","&:is(:hover, [data-hover]):not(:disabled, [data-disabled])"],active:"&:is(:active, [data-active]):not(:disabled, [data-disabled], [data-state=open])",focus:"&:is(:focus, [data-focus])",focusWithin:"&:is(:focus-within, [data-focus-within])",focusVisible:"&:is(:focus-visible, [data-focus-visible])",disabled:"&:is(:disabled, [disabled], [data-disabled], [aria-disabled=true])",visited:"&:visited",target:"&:target",readOnly:"&:is([data-readonly], [aria-readonly=true], [readonly])",readWrite:"&:read-write",empty:"&:is(:empty, [data-empty])",checked:"&:is(:checked, [data-checked], [aria-checked=true], [data-state=checked])",enabled:"&:enabled",expanded:"&:is([aria-expanded=true], [data-expanded], [data-state=expanded])",highlighted:"&[data-highlighted]",complete:"&[data-complete]",incomplete:"&[data-incomplete]",dragging:"&[data-dragging]",before:"&::before",after:"&::after",firstLetter:"&::first-letter",firstLine:"&::first-line",marker:"&::marker",selection:"&::selection",file:"&::file-selector-button",backdrop:"&::backdrop",first:"&:first-of-type",last:"&:last-of-type",notFirst:"&:not(:first-of-type)",notLast:"&:not(:last-of-type)",only:"&:only-child",even:"&:nth-of-type(even)",odd:"&:nth-of-type(odd)",peerFocus:".peer:is(:focus, [data-focus]) ~ &",peerHover:".peer:is(:hover, [data-hover]):not(:disabled, [data-disabled]) ~ &",peerActive:".peer:is(:active, [data-active]):not(:disabled, [data-disabled]) ~ &",peerFocusWithin:".peer:focus-within ~ &",peerFocusVisible:".peer:is(:focus-visible, [data-focus-visible]) ~ &",peerDisabled:".peer:is(:disabled, [disabled], [data-disabled]) ~ &",peerChecked:".peer:is(:checked, [data-checked], [aria-checked=true], [data-state=checked]) ~ &",peerInvalid:".peer:is(:invalid, [data-invalid], [aria-invalid=true]) ~ &",peerExpanded:".peer:is([aria-expanded=true], [data-expanded], [data-state=expanded]) ~ &",peerPlaceholderShown:".peer:placeholder-shown ~ &",groupFocus:".group:is(:focus, [data-focus]) &",groupHover:".group:is(:hover, [data-hover]):not(:disabled, [data-disabled]) &",groupActive:".group:is(:active, [data-active]):not(:disabled, [data-disabled]) &",groupFocusWithin:".group:focus-within &",groupFocusVisible:".group:is(:focus-visible, [data-focus-visible]) &",groupDisabled:".group:is(:disabled, [disabled], [data-disabled]) &",groupChecked:".group:is(:checked, [data-checked], [aria-checked=true], [data-state=checked]) &",groupExpanded:".group:is([aria-expanded=true], [data-expanded], [data-state=expanded]) &",groupInvalid:".group:invalid &",indeterminate:"&:is(:indeterminate, [data-indeterminate], [aria-checked=mixed], [data-state=indeterminate])",required:"&:is([data-required], [aria-required=true])",valid:"&:is([data-valid], [data-state=valid])",invalid:"&:is([data-invalid], [aria-invalid=true], [data-state=invalid])",autofill:"&:autofill",inRange:"&:is(:in-range, [data-in-range])",outOfRange:"&:is(:out-of-range, [data-outside-range])",placeholder:"&::placeholder, &[data-placeholder]",placeholderShown:"&:is(:placeholder-shown, [data-placeholder-shown])",pressed:"&:is([aria-pressed=true], [data-pressed])",selected:"&:is([aria-selected=true], [data-selected])",grabbed:"&:is([aria-grabbed=true], [data-grabbed])",underValue:"&[data-state=under-value]",overValue:"&[data-state=over-value]",atValue:"&[data-state=at-value]",default:"&:default",optional:"&:optional",open:"&:is([open], [data-open], [data-state=open])",closed:"&:is([closed], [data-closed], [data-state=closed])",fullscreen:"&:is(:fullscreen, [data-fullscreen])",loading:"&:is([data-loading], [aria-busy=true])",hidden:"&:is([hidden], [data-hidden])",current:"&[data-current]",currentPage:"&[aria-current=page]",currentStep:"&[aria-current=step]",today:"&[data-today]",unavailable:"&[data-unavailable]",rangeStart:"&[data-range-start]",rangeEnd:"&[data-range-end]",now:"&[data-now]",topmost:"&[data-topmost]",motionReduce:"@media (prefers-reduced-motion: reduce)",motionSafe:"@media (prefers-reduced-motion: no-preference)",print:"@media print",landscape:"@media (orientation: landscape)",portrait:"@media (orientation: portrait)",dark:".dark &, .dark .chakra-theme:not(.light) &",light:":root &, .light &",osDark:"@media (prefers-color-scheme: dark)",osLight:"@media (prefers-color-scheme: light)",highContrast:"@media (forced-colors: active)",lessContrast:"@media (prefers-contrast: less)",moreContrast:"@media (prefers-contrast: more)",ltr:"[dir=ltr] &",rtl:"[dir=rtl] &",scrollbar:"&::-webkit-scrollbar",scrollbarThumb:"&::-webkit-scrollbar-thumb",scrollbarTrack:"&::-webkit-scrollbar-track",horizontal:"&[data-orientation=horizontal]",vertical:"&[data-orientation=vertical]",icon:"& :where(svg)",starting:"@starting-style"}),f=(0,o.V)("bg-currentcolor"),h=e=>e===f.ref||"currentBg"===e,p=e=>({...e("colors"),currentBg:f}),g=(0,i.C8)({conditions:d,utilities:{background:{values:p,shorthand:["bg"],transform(e,t){if(h(t.raw))return{background:f.ref};let r=(0,n.U)("background")(e,t);return{...r,[f.var]:r?.background}}},backgroundColor:{values:p,shorthand:["bgColor"],transform(e,t){if(h(t.raw))return{backgroundColor:f.ref};let r=(0,n.U)("backgroundColor")(e,t);return{...r,[f.var]:r?.backgroundColor}}},backgroundSize:{shorthand:["bgSize"]},backgroundPosition:{shorthand:["bgPos"]},backgroundRepeat:{shorthand:["bgRepeat"]},backgroundAttachment:{shorthand:["bgAttachment"]},backgroundClip:{shorthand:["bgClip"],values:["text"],transform:e=>"text"===e?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}},backgroundGradient:{shorthand:["bgGradient"],values:e=>({...e("gradients"),"to-t":"linear-gradient(to top, var(--gradient))","to-tr":"linear-gradient(to top right, var(--gradient))","to-r":"linear-gradient(to right, var(--gradient))","to-br":"linear-gradient(to bottom right, var(--gradient))","to-b":"linear-gradient(to bottom, var(--gradient))","to-bl":"linear-gradient(to bottom left, var(--gradient))","to-l":"linear-gradient(to left, var(--gradient))","to-tl":"linear-gradient(to top left, var(--gradient))"}),transform:e=>({"--gradient-stops":"var(--gradient-from), var(--gradient-to)","--gradient":"var(--gradient-via-stops, var(--gradient-stops))",backgroundImage:e})},gradientFrom:{values:p,transform:(0,n.U)("--gradient-from")},gradientTo:{values:p,transform:(0,n.U)("--gradient-to")},gradientVia:{values:p,transform:(e,t)=>({...(0,n.U)("--gradient-via")(e,t),"--gradient-via-stops":"var(--gradient-from), var(--gradient-via), var(--gradient-to)"})},backgroundImage:{values:e=>({...e("gradients"),...e("assets")}),shorthand:["bgImg","bgImage"]},border:{values:"borders"},borderTop:{values:"borders"},borderLeft:{values:"borders"},borderBlockStart:{values:"borders"},borderRight:{values:"borders"},borderBottom:{values:"borders"},borderBlockEnd:{values:"borders"},borderInlineStart:{values:"borders",shorthand:["borderStart"]},borderInlineEnd:{values:"borders",shorthand:["borderEnd"]},borderInline:{values:"borders",shorthand:["borderX"]},borderBlock:{values:"borders",shorthand:["borderY"]},borderColor:{values:p,transform:(0,n.U)("borderColor")},borderTopColor:{values:p,transform:(0,n.U)("borderTopColor")},borderBlockStartColor:{values:p,transform:(0,n.U)("borderBlockStartColor")},borderBottomColor:{values:p,transform:(0,n.U)("borderBottomColor")},borderBlockEndColor:{values:p,transform:(0,n.U)("borderBlockEndColor")},borderLeftColor:{values:p,transform:(0,n.U)("borderLeftColor")},borderInlineStartColor:{values:p,shorthand:["borderStartColor"],transform:(0,n.U)("borderInlineStartColor")},borderRightColor:{values:p,transform:(0,n.U)("borderRightColor")},borderInlineEndColor:{values:p,shorthand:["borderEndColor"],transform:(0,n.U)("borderInlineEndColor")},borderStyle:{values:"borderStyles"},borderTopStyle:{values:"borderStyles"},borderBlockStartStyle:{values:"borderStyles"},borderBottomStyle:{values:"borderStyles"},borderBlockEndStyle:{values:"borderStyles"},borderInlineStartStyle:{values:"borderStyles",shorthand:["borderStartStyle"]},borderInlineEndStyle:{values:"borderStyles",shorthand:["borderEndStyle"]},borderLeftStyle:{values:"borderStyles"},borderRightStyle:{values:"borderStyles"},borderRadius:{values:"radii",shorthand:["rounded"]},borderTopLeftRadius:{values:"radii",shorthand:["roundedTopLeft"]},borderStartStartRadius:{values:"radii",shorthand:["roundedStartStart","borderTopStartRadius"]},borderEndStartRadius:{values:"radii",shorthand:["roundedEndStart","borderBottomStartRadius"]},borderTopRightRadius:{values:"radii",shorthand:["roundedTopRight"]},borderStartEndRadius:{values:"radii",shorthand:["roundedStartEnd","borderTopEndRadius"]},borderEndEndRadius:{values:"radii",shorthand:["roundedEndEnd","borderBottomEndRadius"]},borderBottomLeftRadius:{values:"radii",shorthand:["roundedBottomLeft"]},borderBottomRightRadius:{values:"radii",shorthand:["roundedBottomRight"]},borderInlineStartRadius:{values:"radii",property:"borderRadius",shorthand:["roundedStart","borderStartRadius"],transform:e=>({borderStartStartRadius:e,borderEndStartRadius:e})},borderInlineEndRadius:{values:"radii",property:"borderRadius",shorthand:["roundedEnd","borderEndRadius"],transform:e=>({borderStartEndRadius:e,borderEndEndRadius:e})},borderTopRadius:{values:"radii",property:"borderRadius",shorthand:["roundedTop"],transform:e=>({borderTopLeftRadius:e,borderTopRightRadius:e})},borderBottomRadius:{values:"radii",property:"borderRadius",shorthand:["roundedBottom"],transform:e=>({borderBottomLeftRadius:e,borderBottomRightRadius:e})},borderLeftRadius:{values:"radii",property:"borderRadius",shorthand:["roundedLeft"],transform:e=>({borderTopLeftRadius:e,borderBottomLeftRadius:e})},borderRightRadius:{values:"radii",property:"borderRadius",shorthand:["roundedRight"],transform:e=>({borderTopRightRadius:e,borderBottomRightRadius:e})},borderWidth:{values:"borderWidths"},borderBlockStartWidth:{values:"borderWidths"},borderTopWidth:{values:"borderWidths"},borderBottomWidth:{values:"borderWidths"},borderBlockEndWidth:{values:"borderWidths"},borderRightWidth:{values:"borderWidths"},borderInlineWidth:{values:"borderWidths",shorthand:["borderXWidth"]},borderInlineStartWidth:{values:"borderWidths",shorthand:["borderStartWidth"]},borderInlineEndWidth:{values:"borderWidths",shorthand:["borderEndWidth"]},borderLeftWidth:{values:"borderWidths"},borderBlockWidth:{values:"borderWidths",shorthand:["borderYWidth"]},color:{values:p,transform:(0,n.U)("color")},fill:{values:p,transform:(0,n.U)("fill")},stroke:{values:p,transform:(0,n.U)("stroke")},accentColor:{values:p,transform:(0,n.U)("accentColor")},divideX:{values:{type:"string"},transform:e=>({"& > :not(style, [hidden]) ~ :not(style, [hidden])":{borderInlineStartWidth:e,borderInlineEndWidth:"0px"}})},divideY:{values:{type:"string"},transform:e=>({"& > :not(style, [hidden]) ~ :not(style, [hidden])":{borderTopWidth:e,borderBottomWidth:"0px"}})},divideColor:{values:p,transform:(e,t)=>({"& > :not(style, [hidden]) ~ :not(style, [hidden])":u(e,t)})},divideStyle:{property:"borderStyle",transform:e=>({"& > :not(style, [hidden]) ~ :not(style, [hidden])":{borderStyle:e}})},boxShadow:{values:"shadows",shorthand:["shadow"]},boxShadowColor:{values:p,transform:(0,n.U)("--shadow-color"),shorthand:["shadowColor"]},mixBlendMode:{shorthand:["blendMode"]},backgroundBlendMode:{shorthand:["bgBlendMode"]},opacity:{values:"opacity"},filter:{transform:e=>"auto"!==e?{filter:e}:{filter:"var(--blur) var(--brightness) var(--contrast) var(--grayscale) var(--hue-rotate) var(--invert) var(--saturate) var(--sepia) var(--drop-shadow)"}},blur:{values:"blurs",transform:e=>({"--blur":a("blur",e)})},brightness:{transform:e=>({"--brightness":a("brightness",e)})},contrast:{transform:e=>({"--contrast":a("contrast",e)})},grayscale:{transform:e=>({"--grayscale":a("grayscale",e)})},hueRotate:{transform:e=>({"--hue-rotate":a("hue-rotate",s(e))})},invert:{transform:e=>({"--invert":a("invert",e)})},saturate:{transform:e=>({"--saturate":a("saturate",e)})},sepia:{transform:e=>({"--sepia":a("sepia",e)})},dropShadow:{transform:e=>({"--drop-shadow":a("drop-shadow",e)})},backdropFilter:{transform:e=>"auto"!==e?{backdropFilter:e}:{backdropFilter:"var(--backdrop-blur) var(--backdrop-brightness) var(--backdrop-contrast) var(--backdrop-grayscale) var(--backdrop-hue-rotate) var(--backdrop-invert) var(--backdrop-opacity) var(--backdrop-saturate) var(--backdrop-sepia)"}},backdropBlur:{values:"blurs",transform:e=>({"--backdrop-blur":a("blur",e)})},backdropBrightness:{transform:e=>({"--backdrop-brightness":a("brightness",e)})},backdropContrast:{transform:e=>({"--backdrop-contrast":a("contrast",e)})},backdropGrayscale:{transform:e=>({"--backdrop-grayscale":a("grayscale",e)})},backdropHueRotate:{transform:e=>({"--backdrop-hue-rotate":a("hue-rotate",s(e))})},backdropInvert:{transform:e=>({"--backdrop-invert":a("invert",e)})},backdropOpacity:{transform:e=>({"--backdrop-opacity":a("opacity",e)})},backdropSaturate:{transform:e=>({"--backdrop-saturate":a("saturate",e)})},backdropSepia:{transform:e=>({"--backdrop-sepia":a("sepia",e)})},flexBasis:{values:"sizes"},gap:{values:"spacing"},rowGap:{values:"spacing",shorthand:["gapY"]},columnGap:{values:"spacing",shorthand:["gapX"]},flexDirection:{shorthand:["flexDir"]},gridGap:{values:"spacing"},gridColumnGap:{values:"spacing"},gridRowGap:{values:"spacing"},outlineColor:{values:p,transform:(0,n.U)("outlineColor")},focusRing:l("&:is(:focus, [data-focus])"),focusVisibleRing:l("&:is(:focus-visible, [data-focus-visible])"),focusRingColor:{values:p,transform:(0,n.U)("--focus-ring-color")},focusRingOffset:{values:"spacing",transform:e=>({"--focus-ring-offset":e})},focusRingWidth:{values:"borderWidths",property:"outlineWidth",transform:e=>({"--focus-ring-width":e})},focusRingStyle:{values:"borderStyles",property:"outlineStyle",transform:e=>({"--focus-ring-style":e})},aspectRatio:{values:"aspectRatios"},width:{values:"sizes",shorthand:["w"]},inlineSize:{values:"sizes"},height:{values:"sizes",shorthand:["h"]},blockSize:{values:"sizes"},boxSize:{values:"sizes",property:"width",transform:e=>({width:e,height:e})},minWidth:{values:"sizes",shorthand:["minW"]},minInlineSize:{values:"sizes"},minHeight:{values:"sizes",shorthand:["minH"]},minBlockSize:{values:"sizes"},maxWidth:{values:"sizes",shorthand:["maxW"]},maxInlineSize:{values:"sizes"},maxHeight:{values:"sizes",shorthand:["maxH"]},maxBlockSize:{values:"sizes"},hideFrom:{values:"breakpoints",transform:(e,{raw:t,token:r})=>({[r.raw(`breakpoints.${t}`)?`@breakpoint ${t}`:`@media screen and (min-width: ${e})`]:{display:"none"}})},hideBelow:{values:"breakpoints",transform:(e,{raw:t,token:r})=>({[r.raw(`breakpoints.${t}`)?`@breakpoint ${t}Down`:`@media screen and (max-width: ${e})`]:{display:"none"}})},overscrollBehavior:{shorthand:["overscroll"]},overscrollBehaviorX:{shorthand:["overscrollX"]},overscrollBehaviorY:{shorthand:["overscrollY"]},scrollbar:{values:["visible","hidden"],transform(e){switch(e){case"visible":return{msOverflowStyle:"auto",scrollbarWidth:"auto","&::-webkit-scrollbar":{display:"block"}};case"hidden":return{msOverflowStyle:"none",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}};default:return{}}}},scrollbarColor:{values:p,transform:(0,n.U)("scrollbarColor")},scrollbarGutter:{values:"spacing"},scrollbarWidth:{values:"sizes"},scrollMargin:{values:"spacing"},scrollMarginTop:{values:"spacing"},scrollMarginBottom:{values:"spacing"},scrollMarginLeft:{values:"spacing"},scrollMarginRight:{values:"spacing"},scrollMarginX:{values:"spacing",transform:e=>({scrollMarginLeft:e,scrollMarginRight:e})},scrollMarginY:{values:"spacing",transform:e=>({scrollMarginTop:e,scrollMarginBottom:e})},scrollPadding:{values:"spacing"},scrollPaddingTop:{values:"spacing"},scrollPaddingBottom:{values:"spacing"},scrollPaddingLeft:{values:"spacing"},scrollPaddingRight:{values:"spacing"},scrollPaddingInline:{values:"spacing",shorthand:["scrollPaddingX"]},scrollPaddingBlock:{values:"spacing",shorthand:["scrollPaddingY"]},scrollSnapType:{values:{none:"none",x:"x var(--scroll-snap-strictness)",y:"y var(--scroll-snap-strictness)",both:"both var(--scroll-snap-strictness)"}},scrollSnapStrictness:{values:["mandatory","proximity"],transform:e=>({"--scroll-snap-strictness":e})},scrollSnapMargin:{values:"spacing"},scrollSnapMarginTop:{values:"spacing"},scrollSnapMarginBottom:{values:"spacing"},scrollSnapMarginLeft:{values:"spacing"},scrollSnapMarginRight:{values:"spacing"},listStylePosition:{shorthand:["listStylePos"]},listStyleImage:{values:"assets",shorthand:["listStyleImg"]},position:{shorthand:["pos"]},zIndex:{values:"zIndex"},inset:{values:"spacing"},insetInline:{values:"spacing",shorthand:["insetX"]},insetBlock:{values:"spacing",shorthand:["insetY"]},top:{values:"spacing"},insetBlockStart:{values:"spacing"},bottom:{values:"spacing"},insetBlockEnd:{values:"spacing"},left:{values:"spacing"},right:{values:"spacing"},insetInlineStart:{values:"spacing",shorthand:["insetStart"]},insetInlineEnd:{values:"spacing",shorthand:["insetEnd"]},ring:{transform:e=>({"--ring-offset-shadow":"var(--ring-inset) 0 0 0 var(--ring-offset-width) var(--ring-offset-color)","--ring-shadow":"var(--ring-inset) 0 0 0 calc(var(--ring-width) + var(--ring-offset-width)) var(--ring-color)","--ring-width":e,boxShadow:"var(--ring-offset-shadow), var(--ring-shadow), var(--shadow, 0 0 #0000)"})},ringColor:{values:p,transform:(0,n.U)("--ring-color")},ringOffset:{transform:e=>({"--ring-offset-width":e})},ringOffsetColor:{values:p,transform:(0,n.U)("--ring-offset-color")},ringInset:{transform:e=>({"--ring-inset":e})},margin:{values:"spacing",shorthand:["m"]},marginTop:{values:"spacing",shorthand:["mt"]},marginBlockStart:{values:"spacing"},marginRight:{values:"spacing",shorthand:["mr"]},marginBottom:{values:"spacing",shorthand:["mb"]},marginBlockEnd:{values:"spacing"},marginLeft:{values:"spacing",shorthand:["ml"]},marginInlineStart:{values:"spacing",shorthand:["ms","marginStart"]},marginInlineEnd:{values:"spacing",shorthand:["me","marginEnd"]},marginInline:{values:"spacing",shorthand:["mx","marginX"]},marginBlock:{values:"spacing",shorthand:["my","marginY"]},padding:{values:"spacing",shorthand:["p"]},paddingTop:{values:"spacing",shorthand:["pt"]},paddingRight:{values:"spacing",shorthand:["pr"]},paddingBottom:{values:"spacing",shorthand:["pb"]},paddingBlockStart:{values:"spacing"},paddingBlockEnd:{values:"spacing"},paddingLeft:{values:"spacing",shorthand:["pl"]},paddingInlineStart:{values:"spacing",shorthand:["ps","paddingStart"]},paddingInlineEnd:{values:"spacing",shorthand:["pe","paddingEnd"]},paddingInline:{values:"spacing",shorthand:["px","paddingX"]},paddingBlock:{values:"spacing",shorthand:["py","paddingY"]},textDecoration:{shorthand:["textDecor"]},textDecorationColor:{values:p,transform:(0,n.U)("textDecorationColor")},textShadow:{values:"shadows"},transform:{transform:e=>{let t=e;return"auto"===e&&(t="translateX(var(--translate-x, 0)) translateY(var(--translate-y, 0)) rotate(var(--rotate, 0)) scaleX(var(--scale-x, 1)) scaleY(var(--scale-y, 1)) skewX(var(--skew-x, 0)) skewY(var(--skew-y, 0))"),"auto-gpu"===e&&(t="translate3d(var(--translate-x, 0), var(--translate-y, 0), 0) rotate(var(--rotate, 0)) scaleX(var(--scale-x, 1)) scaleY(var(--scale-y, 1)) skewX(var(--skew-x, 0)) skewY(var(--skew-y, 0))"),{transform:t}}},skewX:{transform:e=>({"--skew-x":s(e)})},skewY:{transform:e=>({"--skew-y":s(e)})},scaleX:{transform:e=>({"--scale-x":e})},scaleY:{transform:e=>({"--scale-y":e})},scale:{transform:e=>"auto"!==e?{scale:e}:{scale:"var(--scale-x, 1) var(--scale-y, 1)"}},spaceXReverse:{values:{type:"boolean"},transform:e=>({"& > :not(style, [hidden]) ~ :not(style, [hidden])":{"--space-x-reverse":e?"1":void 0}})},spaceX:{property:"marginInlineStart",values:"spacing",transform:e=>({"& > :not(style, [hidden]) ~ :not(style, [hidden])":{"--space-x-reverse":"0",marginInlineStart:`calc(${e} * calc(1 - var(--space-x-reverse)))`,marginInlineEnd:`calc(${e} * var(--space-x-reverse))`}})},spaceYReverse:{values:{type:"boolean"},transform:e=>({"& > :not(style, [hidden]) ~ :not(style, [hidden])":{"--space-y-reverse":e?"1":void 0}})},spaceY:{property:"marginTop",values:"spacing",transform:e=>({"& > :not(style, [hidden]) ~ :not(style, [hidden])":{"--space-y-reverse":"0",marginTop:`calc(${e} * calc(1 - var(--space-y-reverse)))`,marginBottom:`calc(${e} * var(--space-y-reverse))`}})},rotate:{transform:e=>"auto"!==e?{rotate:s(e)}:{rotate:"var(--rotate-x, 0) var(--rotate-y, 0) var(--rotate-z, 0)"}},rotateX:{transform:e=>({"--rotate-x":s(e)})},rotateY:{transform:e=>({"--rotate-y":s(e)})},translate:{transform:e=>"auto"!==e?{translate:e}:{translate:"var(--translate-x) var(--translate-y)"}},translateX:{values:"spacing",transform:e=>({"--translate-x":e})},translateY:{values:"spacing",transform:e=>({"--translate-y":e})},transition:{values:["all","common","colors","opacity","position","backgrounds","size","shadow","transform"],transform(e){switch(e){case"all":return c("all");case"position":return c("left, right, top, bottom, inset-inline, inset-block");case"colors":return c("color, background-color, border-color, text-decoration-color, fill, stroke");case"opacity":return c("opacity");case"shadow":return c("box-shadow");case"transform":return c("transform");case"size":return c("width, height");case"backgrounds":return c("background, background-color, background-image, background-position");case"common":return c("color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter");default:return{transition:e}}}},transitionDuration:{values:"durations"},transitionProperty:{values:{common:"background-color, border-color, color, fill, stroke, opacity, box-shadow, translate, transform",colors:"background-color, border-color, color, fill, stroke",size:"width, height",position:"left, right, top, bottom, inset-inline, inset-block",background:"background, background-color, background-image, background-position"}},transitionTimingFunction:{values:"easings"},animation:{values:"animations"},animationDuration:{values:"durations"},animationDelay:{values:"durations"},animationTimingFunction:{values:"easings"},fontFamily:{values:"fonts"},fontSize:{values:"fontSizes"},fontWeight:{values:"fontWeights"},lineHeight:{values:"lineHeights"},letterSpacing:{values:"letterSpacings"},textIndent:{values:"spacing"},truncate:{values:{type:"boolean"},transform:e=>!0===e?{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}:{}},lineClamp:{transform:e=>"none"===e?{WebkitLineClamp:"unset"}:{overflow:"hidden",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",textWrap:"wrap"}},borderSpacing:{values:e=>({...e("spacing"),auto:"var(--border-spacing-x, 0) var(--border-spacing-y, 0)"})},borderSpacingX:{values:"spacing",transform:e=>({"--border-spacing-x":e})},borderSpacingY:{values:"spacing",transform:e=>({"--border-spacing-y":e})},srOnly:{values:{type:"boolean"},transform:e=>v[e]||{}},debug:{values:{type:"boolean"},transform:e=>e?{outline:"1px solid blue !important","& > *":{outline:"1px solid red !important"}}:{}},caretColor:{values:p,transform:(0,n.U)("caretColor")},cursor:{values:"cursor"}}}),v={true:{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"},false:{position:"static",width:"auto",height:"auto",padding:"0",margin:"0",overflow:"visible",clip:"auto",whiteSpace:"normal"}};var m=r(61140),b=r(22496);let y="var(--chakra-empty,/*!*/ /*!*/)",x=(0,i.tt)({"*":{fontFeatureSettings:'"cv11"',"--ring-inset":y,"--ring-offset-width":"0px","--ring-offset-color":"#fff","--ring-color":"rgba(66, 153, 225, 0.6)","--ring-offset-shadow":"0 0 #0000","--ring-shadow":"0 0 #0000",...Object.fromEntries(["brightness","contrast","grayscale","hue-rotate","invert","saturate","sepia","drop-shadow"].map(e=>[`--${e}`,y])),...Object.fromEntries(["blur","brightness","contrast","grayscale","hue-rotate","invert","opacity","saturate","sepia"].map(e=>[`--backdrop-${e}`,y])),"--global-font-mono":"fonts.mono","--global-font-body":"fonts.body","--global-color-border":"colors.border"},html:{color:"fg",bg:"bg",lineHeight:"1.5",colorPalette:"gray"},"*::placeholder, *[data-placeholder]":{color:"fg.muted/80"},"*::selection":{bg:"colorPalette.emphasized/80"}}),w=(0,i.nf)({"fill.muted":{value:{background:"colorPalette.muted",color:"colorPalette.fg"}},"fill.subtle":{value:{background:"colorPalette.subtle",color:"colorPalette.fg"}},"fill.surface":{value:{background:"colorPalette.subtle",color:"colorPalette.fg",boxShadow:"0 0 0px 1px var(--shadow-color)",boxShadowColor:"colorPalette.muted"}},"fill.solid":{value:{background:"colorPalette.solid",color:"colorPalette.contrast"}},"outline.subtle":{value:{color:"colorPalette.fg",boxShadow:"inset 0 0 0px 1px var(--shadow-color)",boxShadowColor:"colorPalette.subtle"}},"outline.solid":{value:{borderWidth:"1px",borderColor:"colorPalette.solid",color:"colorPalette.fg"}},"indicator.bottom":{value:{position:"relative","--indicator-color-fallback":"colors.colorPalette.solid",_before:{content:'""',position:"absolute",bottom:"var(--indicator-offset-y, 0)",insetInline:"var(--indicator-offset-x, 0)",height:"var(--indicator-thickness, 2px)",background:"var(--indicator-color, var(--indicator-color-fallback))"}}},"indicator.top":{value:{position:"relative","--indicator-color-fallback":"colors.colorPalette.solid",_before:{content:'""',position:"absolute",top:"var(--indicator-offset-y, 0)",insetInline:"var(--indicator-offset-x, 0)",height:"var(--indicator-thickness, 2px)",background:"var(--indicator-color, var(--indicator-color-fallback))"}}},"indicator.start":{value:{position:"relative","--indicator-color-fallback":"colors.colorPalette.solid",_before:{content:'""',position:"absolute",insetInlineStart:"var(--indicator-offset-x, 0)",insetBlock:"var(--indicator-offset-y, 0)",width:"var(--indicator-thickness, 2px)",background:"var(--indicator-color, var(--indicator-color-fallback))"}}},"indicator.end":{value:{position:"relative","--indicator-color-fallback":"colors.colorPalette.solid",_before:{content:'""',position:"absolute",insetInlineEnd:"var(--indicator-offset-x, 0)",insetBlock:"var(--indicator-offset-y, 0)",width:"var(--indicator-thickness, 2px)",background:"var(--indicator-color, var(--indicator-color-fallback))"}}},disabled:{value:{opacity:"0.5",cursor:"not-allowed"}},none:{value:{}}}),S=(0,i.Yw)({"slide-fade-in":{value:{transformOrigin:"var(--transform-origin)","&[data-placement^=top]":{animationName:"slide-from-bottom, fade-in"},"&[data-placement^=bottom]":{animationName:"slide-from-top, fade-in"},"&[data-placement^=left]":{animationName:"slide-from-right, fade-in"},"&[data-placement^=right]":{animationName:"slide-from-left, fade-in"}}},"slide-fade-out":{value:{transformOrigin:"var(--transform-origin)","&[data-placement^=top]":{animationName:"slide-to-bottom, fade-out"},"&[data-placement^=bottom]":{animationName:"slide-to-top, fade-out"},"&[data-placement^=left]":{animationName:"slide-to-right, fade-out"},"&[data-placement^=right]":{animationName:"slide-to-left, fade-out"}}},"scale-fade-in":{value:{transformOrigin:"var(--transform-origin)",animationName:"scale-in, fade-in"}},"scale-fade-out":{value:{transformOrigin:"var(--transform-origin)",animationName:"scale-out, fade-out"}}}),E=(0,i.g3)({className:"chakra-badge",base:{display:"inline-flex",alignItems:"center",borderRadius:"l2",gap:"1",fontWeight:"medium",fontVariantNumeric:"tabular-nums",whiteSpace:"nowrap",userSelect:"none"},variants:{variant:{solid:{bg:"colorPalette.solid",color:"colorPalette.contrast"},subtle:{bg:"colorPalette.subtle",color:"colorPalette.fg"},outline:{color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},surface:{bg:"colorPalette.subtle",color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},plain:{color:"colorPalette.fg"}},size:{xs:{textStyle:"2xs",px:"1",minH:"4"},sm:{textStyle:"xs",px:"1.5",minH:"5"},md:{textStyle:"sm",px:"2",minH:"6"},lg:{textStyle:"sm",px:"2.5",minH:"7"}}},defaultVariants:{variant:"subtle",size:"sm"}}),k=(0,i.g3)({className:"chakra-button",base:{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",borderRadius:"l2",whiteSpace:"nowrap",verticalAlign:"middle",borderWidth:"1px",borderColor:"transparent",cursor:"button",flexShrink:"0",outline:"0",lineHeight:"1.2",isolation:"isolate",fontWeight:"medium",transitionProperty:"common",transitionDuration:"moderate",focusVisibleRing:"outside",_disabled:{layerStyle:"disabled"},_icon:{flexShrink:"0"}},variants:{size:{"2xs":{h:"6",minW:"6",textStyle:"xs",px:"2",gap:"1",_icon:{width:"3.5",height:"3.5"}},xs:{h:"8",minW:"8",textStyle:"xs",px:"2.5",gap:"1",_icon:{width:"4",height:"4"}},sm:{h:"9",minW:"9",px:"3.5",textStyle:"sm",gap:"2",_icon:{width:"4",height:"4"}},md:{h:"10",minW:"10",textStyle:"sm",px:"4",gap:"2",_icon:{width:"5",height:"5"}},lg:{h:"11",minW:"11",textStyle:"md",px:"5",gap:"3",_icon:{width:"5",height:"5"}},xl:{h:"12",minW:"12",textStyle:"md",px:"5",gap:"2.5",_icon:{width:"5",height:"5"}},"2xl":{h:"16",minW:"16",textStyle:"lg",px:"7",gap:"3",_icon:{width:"6",height:"6"}}},variant:{solid:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"transparent",_hover:{bg:"colorPalette.solid/90"},_expanded:{bg:"colorPalette.solid/90"}},subtle:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderColor:"transparent",_hover:{bg:"colorPalette.muted"},_expanded:{bg:"colorPalette.muted"}},surface:{bg:"colorPalette.subtle",color:"colorPalette.fg",shadow:"0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted",_hover:{bg:"colorPalette.muted"},_expanded:{bg:"colorPalette.muted"}},outline:{borderWidth:"1px",borderColor:"colorPalette.muted",color:"colorPalette.fg",_hover:{bg:"colorPalette.subtle"},_expanded:{bg:"colorPalette.subtle"}},ghost:{bg:"transparent",color:"colorPalette.fg",_hover:{bg:"colorPalette.subtle"},_expanded:{bg:"colorPalette.subtle"}},plain:{color:"colorPalette.fg"}}},defaultVariants:{size:"md",variant:"solid"}}),C=(0,i.g3)({className:"chakra-checkmark",base:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:"0",color:"white",borderWidth:"1px",borderColor:"transparent",borderRadius:"l1",cursor:"checkbox",focusVisibleRing:"outside",_icon:{boxSize:"full"},_invalid:{colorPalette:"red",borderColor:"border.error"},_disabled:{opacity:"0.5",cursor:"disabled"}},variants:{size:{xs:{boxSize:"3"},sm:{boxSize:"4"},md:{boxSize:"5",p:"0.5"},lg:{boxSize:"6",p:"0.5"}},variant:{solid:{borderColor:"border.emphasized","&:is([data-state=checked], [data-state=indeterminate])":{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},outline:{borderColor:"border","&:is([data-state=checked], [data-state=indeterminate])":{color:"colorPalette.fg",borderColor:"colorPalette.solid"}},subtle:{bg:"colorPalette.muted",borderColor:"colorPalette.muted","&:is([data-state=checked], [data-state=indeterminate])":{color:"colorPalette.fg"}},plain:{"&:is([data-state=checked], [data-state=indeterminate])":{color:"colorPalette.fg"}},inverted:{borderColor:"border",color:"colorPalette.fg","&:is([data-state=checked], [data-state=indeterminate])":{borderColor:"colorPalette.solid"}}},filled:{true:{bg:"bg"}}},defaultVariants:{variant:"solid",size:"md"}}),{variants:O,defaultVariants:I}=E,_=(0,i.g3)({className:"chakra-code",base:{fontFamily:"mono",alignItems:"center",display:"inline-flex",borderRadius:"l2"},variants:O,defaultVariants:I}),T=(0,i.g3)({className:"color-swatch",base:{boxSize:"var(--swatch-size)",shadow:"inset 0 0 0 1px rgba(0, 0, 0, 0.1)","--checker-size":"8px","--checker-bg":"colors.bg","--checker-fg":"colors.bg.emphasized",background:"linear-gradient(var(--color), var(--color)), repeating-conic-gradient(var(--checker-fg) 0%, var(--checker-fg) 25%, var(--checker-bg) 0%, var(--checker-bg) 50%) 0% 50% / var(--checker-size) var(--checker-size) !important",display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:"0"},variants:{size:{"2xs":{"--swatch-size":"sizes.3.5"},xs:{"--swatch-size":"sizes.4"},sm:{"--swatch-size":"sizes.4.5"},md:{"--swatch-size":"sizes.5"},lg:{"--swatch-size":"sizes.6"},xl:{"--swatch-size":"sizes.7"},"2xl":{"--swatch-size":"sizes.8"},inherit:{"--swatch-size":"inherit"},full:{"--swatch-size":"100%"}},shape:{square:{borderRadius:"none"},circle:{borderRadius:"full"},rounded:{borderRadius:"l1"}}},defaultVariants:{size:"md",shape:"rounded"}}),P=(0,i.g3)({className:"chakra-container",base:{position:"relative",maxWidth:"8xl",w:"100%",mx:"auto",px:{base:"4",md:"6",lg:"8"}},variants:{centerContent:{true:{display:"flex",flexDirection:"column",alignItems:"center"}},fluid:{true:{maxWidth:"full"}}}}),R=(0,i.g3)({className:"chakra-heading",base:{fontFamily:"heading",fontWeight:"semibold"},variants:{size:{xs:{textStyle:"xs"},sm:{textStyle:"sm"},md:{textStyle:"md"},lg:{textStyle:"lg"},xl:{textStyle:"xl"},"2xl":{textStyle:"2xl"},"3xl":{textStyle:"3xl"},"4xl":{textStyle:"4xl"},"5xl":{textStyle:"5xl"},"6xl":{textStyle:"6xl"},"7xl":{textStyle:"7xl"}}},defaultVariants:{size:"xl"}}),A=(0,i.g3)({className:"chakra-icon",base:{display:"inline-block",lineHeight:"1em",flexShrink:"0",color:"currentcolor",verticalAlign:"middle"},variants:{size:{inherit:{},xs:{boxSize:"3"},sm:{boxSize:"4"},md:{boxSize:"5"},lg:{boxSize:"6"},xl:{boxSize:"7"},"2xl":{boxSize:"8"}}},defaultVariants:{size:"inherit"}}),N=(0,i.g3)({className:"chakra-input",base:{width:"100%",minWidth:"0",outline:"0",position:"relative",appearance:"none",textAlign:"start",borderRadius:"l2",_disabled:{layerStyle:"disabled"},height:"var(--input-height)",minW:"var(--input-height)","--focus-color":"colors.colorPalette.focusRing","--error-color":"colors.border.error",_invalid:{focusRingColor:"var(--error-color)",borderColor:"var(--error-color)"}},variants:{size:{"2xs":{textStyle:"xs",px:"2","--input-height":"sizes.7"},xs:{textStyle:"xs",px:"2","--input-height":"sizes.8"},sm:{textStyle:"sm",px:"2.5","--input-height":"sizes.9"},md:{textStyle:"sm",px:"3","--input-height":"sizes.10"},lg:{textStyle:"md",px:"4","--input-height":"sizes.11"},xl:{textStyle:"md",px:"4.5","--input-height":"sizes.12"},"2xl":{textStyle:"lg",px:"5","--input-height":"sizes.16"}},variant:{outline:{bg:"transparent",borderWidth:"1px",borderColor:"border",focusVisibleRing:"inside",focusRingColor:"var(--focus-color)"},subtle:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted",focusVisibleRing:"inside",focusRingColor:"var(--focus-color)"},flushed:{bg:"transparent",borderBottomWidth:"1px",borderBottomColor:"border",borderRadius:"0",px:"0",_focusVisible:{borderColor:"var(--focus-color)",boxShadow:"0px 1px 0px 0px var(--focus-color)",_invalid:{borderColor:"var(--error-color)",boxShadow:"0px 1px 0px 0px var(--error-color)"}}}}},defaultVariants:{size:"md",variant:"outline"}}),M=(0,i.g3)({className:"chakra-input-addon",base:{flex:"0 0 auto",width:"auto",display:"flex",alignItems:"center",whiteSpace:"nowrap",alignSelf:"stretch",borderRadius:"l2"},variants:{size:N.variants.size,variant:{outline:{borderWidth:"1px",borderColor:"border",bg:"bg.muted"},subtle:{borderWidth:"1px",borderColor:"transparent",bg:"bg.emphasized"},flushed:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}},defaultVariants:{size:"md",variant:"outline"}}),L=(0,i.g3)({className:"chakra-kbd",base:{display:"inline-flex",alignItems:"center",fontWeight:"medium",fontFamily:"mono",flexShrink:"0",whiteSpace:"nowrap",wordSpacing:"-0.5em",userSelect:"none",px:"1",borderRadius:"l2"},variants:{variant:{raised:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderWidth:"1px",borderBottomWidth:"2px",borderColor:"colorPalette.muted"},outline:{borderWidth:"1px",color:"colorPalette.fg"},subtle:{bg:"colorPalette.muted",color:"colorPalette.fg"},plain:{color:"colorPalette.fg"}},size:{sm:{textStyle:"xs",height:"4.5"},md:{textStyle:"sm",height:"5"},lg:{textStyle:"md",height:"6"}}},defaultVariants:{size:"md",variant:"raised"}}),V=(0,i.g3)({className:"chakra-link",base:{display:"inline-flex",alignItems:"center",outline:"none",gap:"1.5",cursor:"pointer",borderRadius:"l1",focusRing:"outside"},variants:{variant:{underline:{color:"colorPalette.fg",textDecoration:"underline",textUnderlineOffset:"3px",textDecorationColor:"currentColor/20"},plain:{color:"colorPalette.fg",_hover:{textDecoration:"underline",textUnderlineOffset:"3px",textDecorationColor:"currentColor/20"}}}},defaultVariants:{variant:"plain"}}),D=(0,i.g3)({className:"chakra-mark",base:{bg:"transparent",color:"inherit",whiteSpace:"nowrap"},variants:{variant:{subtle:{bg:"colorPalette.subtle",color:"inherit"},solid:{bg:"colorPalette.solid",color:"colorPalette.contrast"},text:{fontWeight:"medium"},plain:{}}}}),F=(0,i.g3)({className:"chakra-radiomark",base:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,verticalAlign:"top",color:"white",borderWidth:"1px",borderColor:"transparent",borderRadius:"full",cursor:"radio",_focusVisible:{outline:"2px solid",outlineColor:"colorPalette.focusRing",outlineOffset:"2px"},_invalid:{colorPalette:"red",borderColor:"red.500"},_disabled:{opacity:"0.5",cursor:"disabled"},"& .dot":{height:"100%",width:"100%",borderRadius:"full",bg:"currentColor",scale:"0.4"}},variants:{variant:{solid:{borderWidth:"1px",borderColor:"border.emphasized",_checked:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},subtle:{borderWidth:"1px",bg:"colorPalette.muted",borderColor:"colorPalette.muted",color:"transparent",_checked:{color:"colorPalette.fg"}},outline:{borderWidth:"1px",borderColor:"inherit",_checked:{color:"colorPalette.fg",borderColor:"colorPalette.solid"},"& .dot":{scale:"0.6"}},inverted:{bg:"bg",borderWidth:"1px",borderColor:"inherit",_checked:{color:"colorPalette.solid",borderColor:"currentcolor"}}},size:{xs:{boxSize:"3"},sm:{boxSize:"4"},md:{boxSize:"5"},lg:{boxSize:"6"}},filled:{true:{bg:"bg"}}},defaultVariants:{variant:"solid",size:"md"}}),j=(0,i.g3)({className:"chakra-separator",base:{display:"block",borderColor:"border"},variants:{variant:{solid:{borderStyle:"solid"},dashed:{borderStyle:"dashed"},dotted:{borderStyle:"dotted"}},orientation:{vertical:{borderInlineStartWidth:"var(--separator-thickness)"},horizontal:{borderTopWidth:"var(--separator-thickness)"}},size:{xs:{"--separator-thickness":"0.5px"},sm:{"--separator-thickness":"1px"},md:{"--separator-thickness":"2px"},lg:{"--separator-thickness":"3px"}}},defaultVariants:{size:"sm",variant:"solid",orientation:"horizontal"}}),z=(0,i.g3)({className:"chakra-skeleton",base:{},variants:{loading:{true:{borderRadius:"l2",boxShadow:"none",backgroundClip:"padding-box",cursor:"default",color:"transparent",pointerEvents:"none",userSelect:"none",flexShrink:"0","&::before, &::after, *":{visibility:"hidden"}},false:{background:"unset",animation:"fade-in var(--fade-duration, 0.1s) ease-out !important"}},variant:{pulse:{background:"bg.emphasized",animation:"pulse",animationDuration:"var(--duration, 1.2s)"},shine:{"--animate-from":"200%","--animate-to":"-200%","--start-color":"colors.bg.muted","--end-color":"colors.bg.emphasized",backgroundImage:"linear-gradient(270deg,var(--start-color),var(--end-color),var(--end-color),var(--start-color))",backgroundSize:"400% 100%",animation:"bg-position var(--duration, 5s) ease-in-out infinite"},none:{animation:"none"}}},defaultVariants:{variant:"pulse",loading:!0}}),B=(0,i.g3)({className:"chakra-skip-nav",base:{display:"inline-flex",bg:"bg.panel",padding:"2.5",borderRadius:"l2",fontWeight:"semibold",focusVisibleRing:"outside",textStyle:"sm",userSelect:"none",border:"0",height:"1px",width:"1px",margin:"-1px",outline:"0",overflow:"hidden",position:"absolute",clip:"rect(0 0 0 0)",_focusVisible:{clip:"auto",width:"auto",height:"auto",position:"fixed",top:"6",insetStart:"6"}}}),U=(0,i.g3)({className:"chakra-spinner",base:{display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderWidth:"2px",borderRadius:"full",width:"var(--spinner-size)",height:"var(--spinner-size)",animation:"spin",animationDuration:"slowest","--spinner-track-color":"transparent",borderBottomColor:"var(--spinner-track-color)",borderInlineStartColor:"var(--spinner-track-color)"},variants:{size:{inherit:{"--spinner-size":"1em"},xs:{"--spinner-size":"sizes.3"},sm:{"--spinner-size":"sizes.4"},md:{"--spinner-size":"sizes.5"},lg:{"--spinner-size":"sizes.8"},xl:{"--spinner-size":"sizes.10"}}},defaultVariants:{size:"md"}}),H=(0,i.g3)({className:"chakra-textarea",base:{width:"100%",minWidth:"0",outline:"0",position:"relative",appearance:"none",textAlign:"start",borderRadius:"l2",_disabled:{layerStyle:"disabled"},"--focus-color":"colors.colorPalette.focusRing","--error-color":"colors.border.error",_invalid:{focusRingColor:"var(--error-color)",borderColor:"var(--error-color)"}},variants:{size:{xs:{textStyle:"xs",px:"2",py:"1.5",scrollPaddingBottom:"1.5"},sm:{textStyle:"sm",px:"2.5",py:"2",scrollPaddingBottom:"2"},md:{textStyle:"sm",px:"3",py:"2",scrollPaddingBottom:"2"},lg:{textStyle:"md",px:"4",py:"3",scrollPaddingBottom:"3"},xl:{textStyle:"md",px:"4.5",py:"3.5",scrollPaddingBottom:"3.5"}},variant:{outline:{bg:"transparent",borderWidth:"1px",borderColor:"border",focusVisibleRing:"inside"},subtle:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted",focusVisibleRing:"inside"},flushed:{bg:"transparent",borderBottomWidth:"1px",borderBottomColor:"border",borderRadius:"0",px:"0",_focusVisible:{borderColor:"var(--focus-color)",boxShadow:"0px 1px 0px 0px var(--focus-color)"}}}},defaultVariants:{size:"md",variant:"outline"}}),W=i.eq.colors({bg:{DEFAULT:{value:{_light:"{colors.white}",_dark:"{colors.black}"}},subtle:{value:{_light:"{colors.gray.50}",_dark:"{colors.gray.950}"}},muted:{value:{_light:"{colors.gray.100}",_dark:"{colors.gray.900}"}},emphasized:{value:{_light:"{colors.gray.200}",_dark:"{colors.gray.800}"}},inverted:{value:{_light:"{colors.black}",_dark:"{colors.white}"}},panel:{value:{_light:"{colors.white}",_dark:"{colors.gray.950}"}},error:{value:{_light:"{colors.red.50}",_dark:"{colors.red.950}"}},warning:{value:{_light:"{colors.orange.50}",_dark:"{colors.orange.950}"}},success:{value:{_light:"{colors.green.50}",_dark:"{colors.green.950}"}},info:{value:{_light:"{colors.blue.50}",_dark:"{colors.blue.950}"}}},fg:{DEFAULT:{value:{_light:"{colors.black}",_dark:"{colors.gray.50}"}},muted:{value:{_light:"{colors.gray.600}",_dark:"{colors.gray.400}"}},subtle:{value:{_light:"{colors.gray.400}",_dark:"{colors.gray.500}"}},inverted:{value:{_light:"{colors.gray.50}",_dark:"{colors.black}"}},error:{value:{_light:"{colors.red.500}",_dark:"{colors.red.400}"}},warning:{value:{_light:"{colors.orange.600}",_dark:"{colors.orange.300}"}},success:{value:{_light:"{colors.green.600}",_dark:"{colors.green.300}"}},info:{value:{_light:"{colors.blue.600}",_dark:"{colors.blue.300}"}}},border:{DEFAULT:{value:{_light:"{colors.gray.200}",_dark:"{colors.gray.800}"}},muted:{value:{_light:"{colors.gray.100}",_dark:"{colors.gray.900}"}},subtle:{value:{_light:"{colors.gray.50}",_dark:"{colors.gray.950}"}},emphasized:{value:{_light:"{colors.gray.300}",_dark:"{colors.gray.700}"}},inverted:{value:{_light:"{colors.gray.800}",_dark:"{colors.gray.200}"}},error:{value:{_light:"{colors.red.500}",_dark:"{colors.red.400}"}},warning:{value:{_light:"{colors.orange.500}",_dark:"{colors.orange.400}"}},success:{value:{_light:"{colors.green.500}",_dark:"{colors.green.400}"}},info:{value:{_light:"{colors.blue.500}",_dark:"{colors.blue.400}"}}},gray:{contrast:{value:{_light:"{colors.white}",_dark:"{colors.black}"}},fg:{value:{_light:"{colors.gray.800}",_dark:"{colors.gray.200}"}},subtle:{value:{_light:"{colors.gray.100}",_dark:"{colors.gray.900}"}},muted:{value:{_light:"{colors.gray.200}",_dark:"{colors.gray.800}"}},emphasized:{value:{_light:"{colors.gray.300}",_dark:"{colors.gray.700}"}},solid:{value:{_light:"{colors.gray.900}",_dark:"{colors.white}"}},focusRing:{value:{_light:"{colors.gray.400}",_dark:"{colors.gray.400}"}}},red:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.red.700}",_dark:"{colors.red.300}"}},subtle:{value:{_light:"{colors.red.100}",_dark:"{colors.red.900}"}},muted:{value:{_light:"{colors.red.200}",_dark:"{colors.red.800}"}},emphasized:{value:{_light:"{colors.red.300}",_dark:"{colors.red.700}"}},solid:{value:{_light:"{colors.red.600}",_dark:"{colors.red.600}"}},focusRing:{value:{_light:"{colors.red.500}",_dark:"{colors.red.500}"}}},orange:{contrast:{value:{_light:"white",_dark:"black"}},fg:{value:{_light:"{colors.orange.700}",_dark:"{colors.orange.300}"}},subtle:{value:{_light:"{colors.orange.100}",_dark:"{colors.orange.900}"}},muted:{value:{_light:"{colors.orange.200}",_dark:"{colors.orange.800}"}},emphasized:{value:{_light:"{colors.orange.300}",_dark:"{colors.orange.700}"}},solid:{value:{_light:"{colors.orange.600}",_dark:"{colors.orange.500}"}},focusRing:{value:{_light:"{colors.orange.500}",_dark:"{colors.orange.500}"}}},green:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.green.700}",_dark:"{colors.green.300}"}},subtle:{value:{_light:"{colors.green.100}",_dark:"{colors.green.900}"}},muted:{value:{_light:"{colors.green.200}",_dark:"{colors.green.800}"}},emphasized:{value:{_light:"{colors.green.300}",_dark:"{colors.green.700}"}},solid:{value:{_light:"{colors.green.600}",_dark:"{colors.green.600}"}},focusRing:{value:{_light:"{colors.green.500}",_dark:"{colors.green.500}"}}},blue:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.blue.700}",_dark:"{colors.blue.300}"}},subtle:{value:{_light:"{colors.blue.100}",_dark:"{colors.blue.900}"}},muted:{value:{_light:"{colors.blue.200}",_dark:"{colors.blue.800}"}},emphasized:{value:{_light:"{colors.blue.300}",_dark:"{colors.blue.700}"}},solid:{value:{_light:"{colors.blue.600}",_dark:"{colors.blue.600}"}},focusRing:{value:{_light:"{colors.blue.500}",_dark:"{colors.blue.500}"}}},yellow:{contrast:{value:{_light:"black",_dark:"black"}},fg:{value:{_light:"{colors.yellow.800}",_dark:"{colors.yellow.300}"}},subtle:{value:{_light:"{colors.yellow.100}",_dark:"{colors.yellow.900}"}},muted:{value:{_light:"{colors.yellow.200}",_dark:"{colors.yellow.800}"}},emphasized:{value:{_light:"{colors.yellow.300}",_dark:"{colors.yellow.700}"}},solid:{value:{_light:"{colors.yellow.300}",_dark:"{colors.yellow.300}"}},focusRing:{value:{_light:"{colors.yellow.500}",_dark:"{colors.yellow.500}"}}},teal:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.teal.700}",_dark:"{colors.teal.300}"}},subtle:{value:{_light:"{colors.teal.100}",_dark:"{colors.teal.900}"}},muted:{value:{_light:"{colors.teal.200}",_dark:"{colors.teal.800}"}},emphasized:{value:{_light:"{colors.teal.300}",_dark:"{colors.teal.700}"}},solid:{value:{_light:"{colors.teal.600}",_dark:"{colors.teal.600}"}},focusRing:{value:{_light:"{colors.teal.500}",_dark:"{colors.teal.500}"}}},purple:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.purple.700}",_dark:"{colors.purple.300}"}},subtle:{value:{_light:"{colors.purple.100}",_dark:"{colors.purple.900}"}},muted:{value:{_light:"{colors.purple.200}",_dark:"{colors.purple.800}"}},emphasized:{value:{_light:"{colors.purple.300}",_dark:"{colors.purple.700}"}},solid:{value:{_light:"{colors.purple.600}",_dark:"{colors.purple.600}"}},focusRing:{value:{_light:"{colors.purple.500}",_dark:"{colors.purple.500}"}}},pink:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.pink.700}",_dark:"{colors.pink.300}"}},subtle:{value:{_light:"{colors.pink.100}",_dark:"{colors.pink.900}"}},muted:{value:{_light:"{colors.pink.200}",_dark:"{colors.pink.800}"}},emphasized:{value:{_light:"{colors.pink.300}",_dark:"{colors.pink.700}"}},solid:{value:{_light:"{colors.pink.600}",_dark:"{colors.pink.600}"}},focusRing:{value:{_light:"{colors.pink.500}",_dark:"{colors.pink.500}"}}},cyan:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.cyan.700}",_dark:"{colors.cyan.300}"}},subtle:{value:{_light:"{colors.cyan.100}",_dark:"{colors.cyan.900}"}},muted:{value:{_light:"{colors.cyan.200}",_dark:"{colors.cyan.800}"}},emphasized:{value:{_light:"{colors.cyan.300}",_dark:"{colors.cyan.700}"}},solid:{value:{_light:"{colors.cyan.600}",_dark:"{colors.cyan.600}"}},focusRing:{value:{_light:"{colors.cyan.500}",_dark:"{colors.cyan.500}"}}}}),$=i.eq.radii({l1:{value:"{radii.xs}"},l2:{value:"{radii.sm}"},l3:{value:"{radii.md}"}}),q=i.eq.shadows({xs:{value:{_light:"0px 1px 2px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/20}",_dark:"0px 1px 1px {black/64}, 0px 0px 1px inset {colors.gray.300/20}"}},sm:{value:{_light:"0px 2px 4px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 2px 4px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},md:{value:{_light:"0px 4px 8px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 4px 8px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},lg:{value:{_light:"0px 8px 16px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 8px 16px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},xl:{value:{_light:"0px 16px 24px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 16px 24px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},"2xl":{value:{_light:"0px 24px 40px {colors.gray.900/16}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 24px 40px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},inner:{value:{_light:"inset 0 2px 4px 0 {black/5}",_dark:"inset 0 2px 4px 0 black"}},inset:{value:{_light:"inset 0 0 0 1px {black/5}",_dark:"inset 0 0 0 1px {colors.gray.300/5}"}}});var G=r(43690),K=r(75794),Y=Object.defineProperty,X=(e,t,r)=>((e,t,r)=>t in e?Y(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r)(e,"symbol"!=typeof t?t+"":t,r),Q={itemToValue:e=>"string"==typeof e?e:(0,K.Gv)(e)&&(0,K.cK)(e,"value")?e.value:"",itemToString:e=>"string"==typeof e?e:(0,K.Gv)(e)&&(0,K.cK)(e,"label")?e.label:Q.itemToValue(e),isItemDisabled:e=>!!((0,K.Gv)(e)&&(0,K.cK)(e,"disabled"))&&!!e.disabled},J=class e{constructor(t){this.options=t,X(this,"items"),X(this,"indexMap",null),X(this,"copy",t=>new e({...this.options,items:t??[...this.items]})),X(this,"isEqual",e=>(0,K.n4)(this.items,e.items)),X(this,"setItems",e=>this.copy(e)),X(this,"getValues",(e=this.items)=>{let t=[];for(let r of e){let e=this.getItemValue(r);null!=e&&t.push(e)}return t}),X(this,"find",e=>{if(null==e)return null;let t=this.indexOf(e);return -1!==t?this.at(t):null}),X(this,"findMany",e=>{let t=[];for(let r of e){let e=this.find(r);null!=e&&t.push(e)}return t}),X(this,"at",e=>{if(!this.options.groupBy&&!this.options.groupSort)return this.items[e]??null;let t=0;for(let[,r]of this.group())for(let n of r){if(t===e)return n;t++}return null}),X(this,"sortFn",(e,t)=>(this.indexOf(e)??0)-(this.indexOf(t)??0)),X(this,"sort",e=>[...e].sort(this.sortFn.bind(this))),X(this,"getItemValue",e=>null==e?null:this.options.itemToValue?.(e)??Q.itemToValue(e)),X(this,"getItemDisabled",e=>null!=e&&(this.options.isItemDisabled?.(e)??Q.isItemDisabled(e))),X(this,"stringifyItem",e=>null==e?null:this.options.itemToString?.(e)??Q.itemToString(e)),X(this,"stringify",e=>null==e?null:this.stringifyItem(this.find(e))),X(this,"stringifyItems",(e,t=", ")=>{let r=[];for(let t of e){let e=this.stringifyItem(t);null!=e&&r.push(e)}return r.join(t)}),X(this,"stringifyMany",(e,t)=>this.stringifyItems(this.findMany(e),t)),X(this,"has",e=>-1!==this.indexOf(e)),X(this,"hasItem",e=>null!=e&&this.has(this.getItemValue(e))),X(this,"group",()=>{let{groupBy:e,groupSort:t}=this.options;if(!e)return[["",[...this.items]]];let r=new Map;this.items.forEach((t,n)=>{let i=e(t,n);r.has(i)||r.set(i,[]),r.get(i).push(t)});let n=Array.from(r.entries());return t&&n.sort(([e],[r])=>{if("function"==typeof t)return t(e,r);if(Array.isArray(t)){let n=t.indexOf(e),i=t.indexOf(r);return -1===n?1:-1===i?-1:n-i}return"asc"===t?e.localeCompare(r):"desc"===t?r.localeCompare(e):0}),n}),X(this,"getNextValue",(e,t=1,r=!1)=>{let n=this.indexOf(e);if(-1===n)return null;for(n=r?Math.min(n+t,this.size-1):n+t;n<=this.size&&this.getItemDisabled(this.at(n));)n++;return this.getItemValue(this.at(n))}),X(this,"getPreviousValue",(e,t=1,r=!1)=>{let n=this.indexOf(e);if(-1===n)return null;for(n=r?Math.max(n-t,0):n-t;n>=0&&this.getItemDisabled(this.at(n));)n--;return this.getItemValue(this.at(n))}),X(this,"indexOf",e=>{if(null==e)return -1;if(!this.options.groupBy&&!this.options.groupSort)return this.items.findIndex(t=>this.getItemValue(t)===e);if(!this.indexMap){this.indexMap=new Map;let e=0;for(let[,t]of this.group())for(let r of t){let t=this.getItemValue(r);null!=t&&this.indexMap.set(t,e),e++}}return this.indexMap.get(e)??-1}),X(this,"getByText",(e,t)=>{let r=null!=t?this.indexOf(t):-1,n=1===e.length;for(let i=0;i<this.items.length;i++){let o=this.items[(r+i+1)%this.items.length];if((!n||this.getItemValue(o)!==t)&&!this.getItemDisabled(o)&&Z(this.stringifyItem(o),e))return o}}),X(this,"search",(e,t)=>{let{state:r,currentValue:n,timeout:i=350}=t,o=r.keysSoFar+e,a=o.length>1&&Array.from(o).every(e=>e===o[0])?o[0]:o,s=this.getByText(a,n),l=this.getItemValue(s);function u(){clearTimeout(r.timer),r.timer=-1}return!function e(t){r.keysSoFar=t,u(),""!==t&&(r.timer=+setTimeout(()=>{e(""),u()},i))}(o),l}),X(this,"update",(e,t)=>{let r=this.indexOf(e);return -1===r?this:this.copy([...this.items.slice(0,r),t,...this.items.slice(r+1)])}),X(this,"upsert",(e,t,r="append")=>{let n=this.indexOf(e);return -1===n?("append"===r?this.append:this.prepend)(t):this.copy([...this.items.slice(0,n),t,...this.items.slice(n+1)])}),X(this,"insert",(e,...t)=>this.copy(ee(this.items,e,...t))),X(this,"insertBefore",(e,...t)=>{let r=this.indexOf(e);if(-1===r)if(0!==this.items.length)return this;else r=0;return this.copy(ee(this.items,r,...t))}),X(this,"insertAfter",(e,...t)=>{let r=this.indexOf(e);if(-1===r)if(0!==this.items.length)return this;else r=0;return this.copy(ee(this.items,r+1,...t))}),X(this,"prepend",(...e)=>this.copy(ee(this.items,0,...e))),X(this,"append",(...e)=>this.copy(ee(this.items,this.items.length,...e))),X(this,"filter",e=>{let t=this.items.filter((t,r)=>e(this.stringifyItem(t),r,t));return this.copy(t)}),X(this,"remove",(...e)=>{let t=e.map(e=>"string"==typeof e?e:this.getItemValue(e));return this.copy(this.items.filter(e=>{let r=this.getItemValue(e);return null!=r&&!t.includes(r)}))}),X(this,"move",(e,t)=>{let r=this.indexOf(e);return -1===r?this:this.copy(et(this.items,[r],t))}),X(this,"moveBefore",(e,...t)=>{let r=this.items.findIndex(t=>this.getItemValue(t)===e);if(-1===r)return this;let n=t.map(e=>this.items.findIndex(t=>this.getItemValue(t)===e)).sort((e,t)=>e-t);return this.copy(et(this.items,n,r))}),X(this,"moveAfter",(e,...t)=>{let r=this.items.findIndex(t=>this.getItemValue(t)===e);if(-1===r)return this;let n=t.map(e=>this.items.findIndex(t=>this.getItemValue(t)===e)).sort((e,t)=>e-t);return this.copy(et(this.items,n,r+1))}),X(this,"reorder",(e,t)=>this.copy(et(this.items,[e],t))),X(this,"compareValue",(e,t)=>{let r=this.indexOf(e),n=this.indexOf(t);return r<n?-1:+(r>n)}),X(this,"range",(e,t)=>{let r=[],n=e;for(;null!=n;){if(this.find(n)&&r.push(n),n===t)return r;n=this.getNextValue(n)}return[]}),X(this,"getValueRange",(e,t)=>e&&t?0>=this.compareValue(e,t)?this.range(e,t):this.range(t,e):[]),X(this,"toString",()=>{let e="";for(let t of this.items){let r=this.getItemValue(t);e+=[r,this.stringifyItem(t),this.getItemDisabled(t)].filter(Boolean).join(":")+","}return e}),X(this,"toJSON",()=>({size:this.size,first:this.firstValue,last:this.lastValue})),this.items=[...t.items]}get size(){return this.items.length}get firstValue(){let e=0;for(;this.getItemDisabled(this.at(e));)e++;return this.getItemValue(this.at(e))}get lastValue(){let e=this.size-1;for(;this.getItemDisabled(this.at(e));)e--;return this.getItemValue(this.at(e))}*[Symbol.iterator](){yield*this.items}},Z=(e,t)=>!!e?.toLowerCase().startsWith(t.toLowerCase());function ee(e,t,...r){return[...e.slice(0,t),...r,...e.slice(t)]}function et(e,t,r){let n=(t=[...t].sort((e,t)=>e-t)).map(t=>e[t]);for(let r=t.length-1;r>=0;r--)e=[...e.slice(0,t[r]),...e.slice(t[r]+1)];return r=Math.max(0,r-t.filter(e=>e<r).length),[...e.slice(0,r),...n,...e.slice(r)]}var er=class e extends Set{constructor(t=[]){super(t),X(this,"selectionMode","single"),X(this,"deselectable",!0),X(this,"copy",()=>{let t=new e([...this]);return this.sync(t)}),X(this,"sync",e=>(e.selectionMode=this.selectionMode,e.deselectable=this.deselectable,e)),X(this,"isEmpty",()=>0===this.size),X(this,"isSelected",e=>"none"!==this.selectionMode&&null!=e&&this.has(e)),X(this,"canSelect",(e,t)=>"none"!==this.selectionMode||!e.getItemDisabled(e.find(t))),X(this,"firstSelectedValue",e=>{let t=null;for(let r of this)(!t||0>e.compareValue(r,t))&&(t=r);return t}),X(this,"lastSelectedValue",e=>{let t=null;for(let r of this)(!t||e.compareValue(r,t)>0)&&(t=r);return t}),X(this,"extendSelection",(e,t,r)=>{if("none"===this.selectionMode)return this;if("single"===this.selectionMode)return this.replaceSelection(e,r);let n=this.copy(),i=Array.from(this).pop();for(let o of e.getValueRange(t,i??r))n.delete(o);for(let i of e.getValueRange(r,t))this.canSelect(e,i)&&n.add(i);return n}),X(this,"toggleSelection",(e,t)=>{if("none"===this.selectionMode)return this;if("single"===this.selectionMode&&!this.isSelected(t))return this.replaceSelection(e,t);let r=this.copy();return r.has(t)?r.delete(t):r.canSelect(e,t)&&r.add(t),r}),X(this,"replaceSelection",(t,r)=>{if("none"===this.selectionMode||null==r||!this.canSelect(t,r))return this;let n=new e([r]);return this.sync(n)}),X(this,"setSelection",t=>{if("none"===this.selectionMode)return this;let r=new e;for(let e of t)if(null!=e&&(r.add(e),"single"===this.selectionMode))break;return this.sync(r)}),X(this,"clearSelection",()=>{let e=this.copy();return e.deselectable&&e.size>0&&e.clear(),e}),X(this,"select",(e,t,r)=>{if("none"===this.selectionMode)return this;if("single"===this.selectionMode)if(this.isSelected(t)&&this.deselectable)return this.toggleSelection(e,t);else return this.replaceSelection(e,t);return"multiple"===this.selectionMode||r?this.toggleSelection(e,t):this.replaceSelection(e,t)}),X(this,"deselect",e=>{let t=this.copy();return t.delete(e),t}),X(this,"isEqual",e=>(0,K.n4)(Array.from(this),Array.from(e)))}};function en(e,t,r){for(let n=0;n<t.length;n++)e=r.getChildren(e,t.slice(n+1))[t[n]];return e}function ei(e,t){for(let r=0;r<Math.min(e.length,t.length);r++){if(e[r]<t[r])return -1;if(e[r]>t[r])return 1}return e.length-t.length}function eo(e,t){let r;return ef(e,{onEnter:(e,n)=>{if(t.predicate(e,n))return r=[...n],"stop"},getChildren:t.getChildren}),r}function ea(){return{type:"replace"}}function es(e){return[e.slice(0,-1),e[e.length-1]]}function el(e,t,r=new Map){let[n,i]=es(e);for(let e=n.length-1;e>=0;e--){let t=n.slice(0,e).join();r.get(t)?.type!=="remove"&&r.set(t,ea())}let o=r.get(n.join());if(o?.type==="remove")r.set(n.join(),{type:"removeThenInsert",removeIndexes:o.indexes,insertIndex:i,insertNodes:t});else r.set(n.join(),{type:"insert",index:i,nodes:t});return r}function eu(e){let t=new Map,r=new Map;for(let t of e){let e=t.slice(0,-1).join(),n=r.get(e)??[];n.push(t[t.length-1]),r.set(e,n.sort((e,t)=>e-t))}for(let r of e)for(let e=r.length-2;e>=0;e--){let n=r.slice(0,e).join();t.has(n)||t.set(n,ea())}for(let[e,n]of r)t.set(e,{type:"remove",indexes:n});return t}function ec(e,t,r){var n=e,i={...r,getChildren:(e,n)=>{let i=n.join(),o=t.get(i);switch(o?.type){case"replace":case"remove":case"removeThenInsert":case"insert":return r.getChildren(e,n);default:return[]}},transform:(e,n,i)=>{let o=i.join(),a=t.get(o);switch(a?.type){case"remove":return r.create(e,n.filter((e,t)=>!a.indexes.includes(t)),i);case"removeThenInsert":let s=n.filter((e,t)=>!a.removeIndexes.includes(t)),l=a.removeIndexes.reduce((e,t)=>t<e?e-1:e,a.insertIndex);return r.create(e,ed(s,l,0,...a.insertNodes),i);case"insert":return r.create(e,ed(n,a.index,0,...a.nodes),i);case"replace":return r.create(e,n,i);default:return e}}};let o={};return ef(n,{...i,onLeave:(e,t)=>{let r=[0,...t],n=r.join(),a=i.transform(e,o[n]??[],t),s=r.slice(0,-1).join(),l=o[s]??[];l.push(a),o[s]=l}}),o[""][0]}function ed(e,t,r,...n){return[...e.slice(0,t),...n,...e.slice(t+r)]}function ef(e,t){let{onEnter:r,onLeave:n,getChildren:i}=t,o=[],a=[{node:e}],s=t.reuseIndexPath?()=>o:()=>o.slice();for(;a.length>0;){let e=a[a.length-1];if(void 0===e.state){let t=r?.(e.node,s());if("stop"===t)return;e.state="skip"===t?-1:0}let t=e.children||i(e.node,s());if(e.children||(e.children=t),-1!==e.state){if(e.state<t.length){let r=e.state;o.push(r),a.push({node:t[r]}),e.state=r+1;continue}if("stop"===n?.(e.node,s()))return}o.pop(),a.pop()}}var eh=class e{constructor(t){this.options=t,X(this,"rootNode"),X(this,"isEqual",e=>(0,K.n4)(this.rootNode,e.rootNode)),X(this,"getNodeChildren",e=>this.options.nodeToChildren?.(e)??ep.nodeToChildren(e)??[]),X(this,"resolveIndexPath",e=>"string"==typeof e?this.getIndexPath(e):e),X(this,"resolveNode",e=>{let t=this.resolveIndexPath(e);return t?this.at(t):void 0}),X(this,"getNodeChildrenCount",e=>this.options.nodeToChildrenCount?.(e)??ep.nodeToChildrenCount(e)),X(this,"getNodeValue",e=>this.options.nodeToValue?.(e)??ep.nodeToValue(e)),X(this,"getNodeDisabled",e=>this.options.isNodeDisabled?.(e)??ep.isNodeDisabled(e)),X(this,"stringify",e=>{let t=this.findNode(e);return t?this.stringifyNode(t):null}),X(this,"stringifyNode",e=>this.options.nodeToString?.(e)??ep.nodeToString(e)),X(this,"getFirstNode",(e=this.rootNode)=>{let t;return ef(e,{getChildren:this.getNodeChildren,onEnter:(e,r)=>{if(!t&&r.length>0&&!this.getNodeDisabled(e))return t=e,"stop"}}),t}),X(this,"getLastNode",(e=this.rootNode,t={})=>{let r;return ef(e,{getChildren:this.getNodeChildren,onEnter:(n,i)=>{if(!this.isSameNode(n,e)){if(t.skip?.({value:this.getNodeValue(n),node:n,indexPath:i}))return"skip";i.length>0&&!this.getNodeDisabled(n)&&(r=n)}}}),r}),X(this,"at",e=>en(this.rootNode,e,{getChildren:this.getNodeChildren})),X(this,"findNode",(e,t=this.rootNode)=>(function(e,t){let r;return ef(e,{...t,onEnter:(e,n)=>{if(t.predicate(e,n))return r=e,"stop"}}),r})(t,{getChildren:this.getNodeChildren,predicate:t=>this.getNodeValue(t)===e})),X(this,"findNodes",(e,t=this.rootNode)=>{let r=new Set(e.filter(e=>null!=e));return function(e,t){let r=[];return ef(e,{onEnter:(e,n)=>{t.predicate(e,n)&&r.push(e)},getChildren:t.getChildren}),r}(t,{getChildren:this.getNodeChildren,predicate:e=>r.has(this.getNodeValue(e))})}),X(this,"sort",e=>e.reduce((e,t)=>{let r=this.getIndexPath(t);return r&&e.push({value:t,indexPath:r}),e},[]).sort((e,t)=>ei(e.indexPath,t.indexPath)).map(({value:e})=>e)),X(this,"getIndexPath",e=>eo(this.rootNode,{getChildren:this.getNodeChildren,predicate:t=>this.getNodeValue(t)===e})),X(this,"getValue",e=>{let t=this.at(e);return t?this.getNodeValue(t):void 0}),X(this,"getValuePath",e=>{if(!e)return[];let t=[],r=[...e];for(;r.length>0;){let e=this.at(r);e&&t.unshift(this.getNodeValue(e)),r.pop()}return t}),X(this,"getDepth",e=>{let t=eo(this.rootNode,{getChildren:this.getNodeChildren,predicate:t=>this.getNodeValue(t)===e});return t?.length??0}),X(this,"isSameNode",(e,t)=>this.getNodeValue(e)===this.getNodeValue(t)),X(this,"isRootNode",e=>this.isSameNode(e,this.rootNode)),X(this,"contains",(e,t)=>!!e&&!!t&&t.slice(0,e.length).every((r,n)=>e[n]===t[n])),X(this,"getNextNode",(e,t={})=>{let r,n=!1;return ef(this.rootNode,{getChildren:this.getNodeChildren,onEnter:(i,o)=>{if(this.isRootNode(i))return;let a=this.getNodeValue(i);return t.skip?.({value:a,node:i,indexPath:o})?(a===e&&(n=!0),"skip"):n&&!this.getNodeDisabled(i)?(r=i,"stop"):void(a===e&&(n=!0))}}),r}),X(this,"getPreviousNode",(e,t={})=>{let r,n=!1;return ef(this.rootNode,{getChildren:this.getNodeChildren,onEnter:(i,o)=>{if(this.isRootNode(i))return;let a=this.getNodeValue(i);return t.skip?.({value:a,node:i,indexPath:o})?"skip":a===e?(n=!0,"stop"):void(!this.getNodeDisabled(i)&&(r=i))}}),n?r:void 0}),X(this,"getParentNodes",e=>{let t=this.resolveIndexPath(e)?.slice();if(!t)return[];let r=[];for(;t.length>0;){t.pop();let e=this.at(t);e&&!this.isRootNode(e)&&r.unshift(e)}return r}),X(this,"getDescendantNodes",(e,t)=>{let r=this.resolveNode(e);if(!r)return[];let n=[];return ef(r,{getChildren:this.getNodeChildren,onEnter:(e,r)=>{0!==r.length&&(!t?.withBranch&&this.isBranchNode(e)||n.push(e))}}),n}),X(this,"getDescendantValues",(e,t)=>this.getDescendantNodes(e,t).map(e=>this.getNodeValue(e))),X(this,"getParentIndexPath",e=>e.slice(0,-1)),X(this,"getParentNode",e=>{let t=this.resolveIndexPath(e);return t?this.at(this.getParentIndexPath(t)):void 0}),X(this,"visit",e=>{let{skip:t,...r}=e;ef(this.rootNode,{...r,getChildren:this.getNodeChildren,onEnter:(e,n)=>{if(!this.isRootNode(e))return t?.({value:this.getNodeValue(e),node:e,indexPath:n})?"skip":r.onEnter?.(e,n)}})}),X(this,"getPreviousSibling",e=>{let t=this.getParentNode(e);if(!t)return;let r=this.getNodeChildren(t),n=e[e.length-1];for(;--n>=0;){let e=r[n];if(!this.getNodeDisabled(e))return e}}),X(this,"getNextSibling",e=>{let t=this.getParentNode(e);if(!t)return;let r=this.getNodeChildren(t),n=e[e.length-1];for(;++n<r.length;){let e=r[n];if(!this.getNodeDisabled(e))return e}}),X(this,"getSiblingNodes",e=>{let t=this.getParentNode(e);return t?this.getNodeChildren(t):[]}),X(this,"getValues",(e=this.rootNode)=>(function(e,t){var r;let n;return n=(r={...t,initialResult:[],nextResult:(e,r,n)=>(e.push(...t.transform(r,n)),e)}).initialResult,ef(e,{...r,onEnter:(e,t)=>{n=r.nextResult(n,e,t)}}),n})(e,{getChildren:this.getNodeChildren,transform:e=>[this.getNodeValue(e)]}).slice(1)),X(this,"isValidDepth",(e,t)=>null==t||("function"==typeof t?t(e.length):e.length===t)),X(this,"isBranchNode",e=>this.getNodeChildren(e).length>0||null!=this.getNodeChildrenCount(e)),X(this,"getBranchValues",(e=this.rootNode,t={})=>{let r=[];return ef(e,{getChildren:this.getNodeChildren,onEnter:(e,n)=>{if(0===n.length)return;let i=this.getNodeValue(e);if(t.skip?.({value:i,node:e,indexPath:n}))return"skip";this.isBranchNode(e)&&this.isValidDepth(n,t.depth)&&r.push(this.getNodeValue(e))}}),r}),X(this,"flatten",(e=this.rootNode)=>(function(e,t){let r=[],n=0,i=new Map,o=new Map;return ef(e,{getChildren:t.getChildren,onEnter:(e,a)=>{i.has(e)||i.set(e,n++);let s=t.getChildren(e,a);s.forEach(t=>{o.has(t)||o.set(t,e),i.has(t)||i.set(t,n++)});let l=s.length>0?s.map(e=>i.get(e)):void 0,u=o.get(e),c=u?i.get(u):void 0,d=i.get(e);r.push({...e,_children:l,_parent:c,_index:d})}}),r})(e,{getChildren:this.getNodeChildren})),X(this,"_create",(e,t)=>this.getNodeChildren(e).length>0||t.length>0?{...e,children:t}:{...e}),X(this,"_insert",(e,t,r)=>this.copy(function(e,t){let{nodes:r,at:n}=t;if(0===n.length)throw Error("Can't insert nodes at the root");return ec(e,el(n,r),t)}(e,{at:t,nodes:r,getChildren:this.getNodeChildren,create:this._create}))),X(this,"copy",t=>new e({...this.options,rootNode:t})),X(this,"_replace",(e,t,r)=>this.copy(function(e,t){return 0===t.at.length?t.node:ec(e,function(e,t){let r=new Map,[n,i]=es(e);for(let e=n.length-1;e>=0;e--){let t=n.slice(0,e).join();r.set(t,ea())}return r.set(n.join(),{type:"removeThenInsert",removeIndexes:[i],insertIndex:i,insertNodes:[t]}),r}(t.at,t.node),t)}(e,{at:t,node:r,getChildren:this.getNodeChildren,create:this._create}))),X(this,"_move",(e,t,r)=>this.copy(function(e,t){if(0===t.indexPaths.length)return e;for(let e of t.indexPaths)if(0===e.length)throw Error("Can't move the root node");if(0===t.to.length)throw Error("Can't move nodes to the root");let r=function(e){let t=e.sort(ei),r=[],n=new Set;for(let e of t){let t=e.join();n.has(t)||(n.add(t),r.push(e))}return r}(t.indexPaths),n=r.map(r=>en(e,r,t));return ec(e,el(t.to,n,eu(r)),t)}(e,{indexPaths:t,to:r,getChildren:this.getNodeChildren,create:this._create}))),X(this,"_remove",(e,t)=>this.copy(function(e,t){if(0===t.indexPaths.length)return e;for(let e of t.indexPaths)if(0===e.length)throw Error("Can't remove the root node");return ec(e,eu(t.indexPaths),t)}(e,{indexPaths:t,getChildren:this.getNodeChildren,create:this._create}))),X(this,"replace",(e,t)=>this._replace(this.rootNode,e,t)),X(this,"remove",e=>this._remove(this.rootNode,e)),X(this,"insertBefore",(e,t)=>this.getParentNode(e)?this._insert(this.rootNode,e,t):void 0),X(this,"insertAfter",(e,t)=>{if(!this.getParentNode(e))return;let r=[...e.slice(0,-1),e[e.length-1]+1];return this._insert(this.rootNode,r,t)}),X(this,"move",(e,t)=>this._move(this.rootNode,e,t)),X(this,"filter",e=>{let t=function(e,t){let{predicate:r,create:n,getChildren:i}=t,o=(e,t)=>{let a=i(e,t),s=[];a.forEach((e,r)=>{let n=o(e,[...t,r]);n&&s.push(n)});let l=0===t.length,u=r(e,t),c=s.length>0;return l||u||c?n(e,s,t):null};return o(e,[])||n(e,[],[])}(this.rootNode,{predicate:e,getChildren:this.getNodeChildren,create:this._create});return this.copy(t)}),X(this,"toJSON",()=>this.getValues(this.rootNode)),this.rootNode=t.rootNode}},ep={nodeToValue:e=>"string"==typeof e?e:(0,K.Gv)(e)&&(0,K.cK)(e,"value")?e.value:"",nodeToString:e=>"string"==typeof e?e:(0,K.Gv)(e)&&(0,K.cK)(e,"label")?e.label:ep.nodeToValue(e),isNodeDisabled:e=>!!((0,K.Gv)(e)&&(0,K.cK)(e,"disabled"))&&!!e.disabled,nodeToChildren:e=>e.children,nodeToChildrenCount(e){if((0,K.Gv)(e)&&(0,K.cK)(e,"childrenCount"))return e.childrenCount}},eg=r(77534),ev=r(68683),em=r(42642),eb=r(76808),ey=r(1970),ex=r(41562),ew=(0,G.y)("combobox").parts("root","clearTrigger","content","control","input","item","itemGroup","itemGroupLabel","itemIndicator","itemText","label","list","positioner","trigger");ew.build();var eS=e=>new J(e);eS.empty=()=>new J({items:[]});var eE=e=>e.getById((e=>e.ids?.content??`combobox:${e.id}:content`)(e)),ek=e=>e.getById((e=>e.ids?.input??`combobox:${e.id}:input`)(e)),eC=e=>e.getById((e=>e.ids?.positioner??`combobox:${e.id}:popper`)(e)),eO=e=>e.getById((e=>e.ids?.control??`combobox:${e.id}:control`)(e)),eI=e=>e.getById((e=>e.ids?.trigger??`combobox:${e.id}:toggle-btn`)(e)),e_=e=>e.getById((e=>e.ids?.clearTrigger??`combobox:${e.id}:clear-btn`)(e)),eT=(e,t)=>{if(null==t)return null;let r=`[role=option][data-value="${CSS.escape(t)}"]`;return(0,eg.P)(eE(e),r)},eP=e=>{let t=ek(e);e.isActiveElement(t)||t?.focus({preventScroll:!0})},{guards:eR,createMachine:eA,choose:eN}=(0,eb.mj)(),{and:eM,not:eL}=eR;function eV(e){return(e.previousEvent||e).src}eA({props:({props:e})=>({loopFocus:!0,openOnClick:!1,defaultValue:[],closeOnSelect:!e.multiple,allowCustomValue:!1,alwaysSubmitOnEnter:!1,inputBehavior:"none",selectionBehavior:e.multiple?"clear":"replace",openOnKeyPress:!0,openOnChange:!0,composite:!0,navigate({node:e}){(0,eg.Il)(e)},collection:eS.empty(),...e,positioning:{placement:"bottom",sameWidth:!0,...e.positioning},translations:{triggerLabel:"Toggle suggestions",clearTriggerLabel:"Clear value",...e.translations}}),initialState:({prop:e})=>e("open")||e("defaultOpen")?"suggesting":"idle",context:({prop:e,bindable:t,getContext:r,getEvent:n})=>({currentPlacement:t(()=>({defaultValue:void 0})),value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),isEqual:K.n4,hash:e=>e.join(","),onChange(t){let n=r(),i=n.get("selectedItems"),o=e("collection"),a=t.map(e=>i.find(t=>o.getItemValue(t)===e)||o.find(e));n.set("selectedItems",a),e("onValueChange")?.({value:t,items:a})}})),highlightedValue:t(()=>({defaultValue:e("defaultHighlightedValue")||null,value:e("highlightedValue"),onChange(t){let r=e("collection").find(t);e("onHighlightChange")?.({highlightedValue:t,highlightedItem:r})}})),inputValue:t(()=>{let t=e("inputValue")||e("defaultInputValue")||"",r=e("defaultValue")||e("value")||[];if(!t.trim()&&!e("multiple")){let n=e("collection").stringifyMany(r);t=(0,K.YW)(e("selectionBehavior"),{preserve:t||n,replace:n,clear:""})}return{defaultValue:t,value:e("inputValue"),onChange(t){let r=n(),i=(r.previousEvent||r).src;e("onInputValueChange")?.({inputValue:t,reason:i})}}}),highlightedItem:t(()=>{let t=e("highlightedValue");return{defaultValue:e("collection").find(t)}}),selectedItems:t(()=>{let t=e("value")||e("defaultValue")||[];return{defaultValue:e("collection").findMany(t)}})}),computed:{isInputValueEmpty:({context:e})=>0===e.get("inputValue").length,isInteractive:({prop:e})=>!(e("readOnly")||e("disabled")),autoComplete:({prop:e})=>"autocomplete"===e("inputBehavior"),autoHighlight:({prop:e})=>"autohighlight"===e("inputBehavior"),hasSelectedItems:({context:e})=>e.get("value").length>0,valueAsString:({context:e,prop:t})=>t("collection").stringifyItems(e.get("selectedItems")),isCustomValue:({context:e,computed:t})=>e.get("inputValue")!==t("valueAsString")},watch({context:e,prop:t,track:r,action:n,send:i}){r([()=>e.hash("value")],()=>{n(["syncSelectedItems"])}),r([()=>e.get("inputValue")],()=>{n(["syncInputValue"])}),r([()=>e.get("highlightedValue")],()=>{n(["syncHighlightedItem","autofillInputValue"])}),r([()=>t("open")],()=>{n(["toggleVisibility"])}),r([()=>t("collection").toString()],()=>{i({type:"CHILDREN_CHANGE"})})},on:{"SELECTED_ITEMS.SYNC":{actions:["syncSelectedItems"]},"HIGHLIGHTED_VALUE.SET":{actions:["setHighlightedValue"]},"HIGHLIGHTED_VALUE.CLEAR":{actions:["clearHighlightedValue"]},"ITEM.SELECT":{actions:["selectItem"]},"ITEM.CLEAR":{actions:["clearItem"]},"VALUE.SET":{actions:["setValue"]},"INPUT_VALUE.SET":{actions:["setInputValue"]},"POSITIONING.SET":{actions:["reposition"]}},entry:eN([{guard:"autoFocus",actions:["setInitialFocus"]}]),states:{idle:{tags:["idle","closed"],entry:["scrollContentToTop","clearHighlightedValue"],on:{"CONTROLLED.OPEN":{target:"interacting"},"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["setInitialFocus","highlightFirstSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["setInitialFocus","highlightFirstSelectedItem","invokeOnOpen"]}],"INPUT.CLICK":[{guard:"isOpenControlled",actions:["highlightFirstSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["highlightFirstSelectedItem","invokeOnOpen"]}],"INPUT.FOCUS":{target:"focused"},OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"interacting",actions:["invokeOnOpen"]}],"VALUE.CLEAR":{target:"focused",actions:["clearInputValue","clearSelectedItems","setInitialFocus"]}}},focused:{tags:["focused","closed"],entry:["scrollContentToTop","clearHighlightedValue"],on:{"CONTROLLED.OPEN":[{guard:"isChangeEvent",target:"suggesting"},{target:"interacting"}],"INPUT.CHANGE":[{guard:eM("isOpenControlled","openOnChange"),actions:["setInputValue","invokeOnOpen","highlightFirstItemIfNeeded"]},{guard:"openOnChange",target:"suggesting",actions:["setInputValue","invokeOnOpen","highlightFirstItemIfNeeded"]},{actions:["setInputValue"]}],"LAYER.INTERACT_OUTSIDE":{target:"idle"},"INPUT.ESCAPE":{guard:eM("isCustomValue",eL("allowCustomValue")),actions:["revertInputValue"]},"INPUT.BLUR":{target:"idle"},"INPUT.CLICK":[{guard:"isOpenControlled",actions:["highlightFirstSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["highlightFirstSelectedItem","invokeOnOpen"]}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["setInitialFocus","highlightFirstSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["setInitialFocus","highlightFirstSelectedItem","invokeOnOpen"]}],"INPUT.ARROW_DOWN":[{guard:eM("isOpenControlled","autoComplete"),actions:["invokeOnOpen"]},{guard:"autoComplete",target:"interacting",actions:["invokeOnOpen"]},{guard:"isOpenControlled",actions:["highlightFirstOrSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["highlightFirstOrSelectedItem","invokeOnOpen"]}],"INPUT.ARROW_UP":[{guard:"autoComplete",target:"interacting",actions:["invokeOnOpen"]},{guard:"autoComplete",target:"interacting",actions:["invokeOnOpen"]},{target:"interacting",actions:["highlightLastOrSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["highlightLastOrSelectedItem","invokeOnOpen"]}],OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"interacting",actions:["invokeOnOpen"]}],"VALUE.CLEAR":{actions:["clearInputValue","clearSelectedItems"]}}},interacting:{tags:["open","focused"],entry:["setInitialFocus"],effects:["scrollToHighlightedItem","trackDismissableLayer","trackPlacement","hideOtherElements"],on:{"CONTROLLED.CLOSE":[{guard:"restoreFocus",target:"focused",actions:["setFinalFocus"]},{target:"idle"}],CHILDREN_CHANGE:[{guard:"isHighlightedItemRemoved",actions:["clearHighlightedValue"]},{actions:["scrollToHighlightedItem"]}],"INPUT.HOME":{actions:["highlightFirstItem"]},"INPUT.END":{actions:["highlightLastItem"]},"INPUT.ARROW_DOWN":[{guard:eM("autoComplete","isLastItemHighlighted"),actions:["clearHighlightedValue","scrollContentToTop"]},{actions:["highlightNextItem"]}],"INPUT.ARROW_UP":[{guard:eM("autoComplete","isFirstItemHighlighted"),actions:["clearHighlightedValue"]},{actions:["highlightPrevItem"]}],"INPUT.ENTER":[{guard:eM("isOpenControlled","isCustomValue",eL("hasHighlightedItem"),eL("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:eM("isCustomValue",eL("hasHighlightedItem"),eL("allowCustomValue")),target:"focused",actions:["revertInputValue","invokeOnClose"]},{guard:eM("isOpenControlled","closeOnSelect"),actions:["selectHighlightedItem","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["selectHighlightedItem","invokeOnClose","setFinalFocus"]},{actions:["selectHighlightedItem"]}],"INPUT.CHANGE":[{guard:"autoComplete",target:"suggesting",actions:["setInputValue"]},{target:"suggesting",actions:["clearHighlightedValue","setInputValue"]}],"ITEM.POINTER_MOVE":{actions:["setHighlightedValue"]},"ITEM.POINTER_LEAVE":{actions:["clearHighlightedValue"]},"ITEM.CLICK":[{guard:eM("isOpenControlled","closeOnSelect"),actions:["selectItem","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["selectItem","invokeOnClose","setFinalFocus"]},{actions:["selectItem"]}],"LAYER.ESCAPE":[{guard:eM("isOpenControlled","autoComplete"),actions:["syncInputValue","invokeOnClose"]},{guard:"autoComplete",target:"focused",actions:["syncInputValue","invokeOnClose"]},{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose","setFinalFocus"]}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose"]}],"LAYER.INTERACT_OUTSIDE":[{guard:eM("isOpenControlled","isCustomValue",eL("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:eM("isCustomValue",eL("allowCustomValue")),target:"idle",actions:["revertInputValue","invokeOnClose"]},{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"idle",actions:["invokeOnClose"]}],CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose","setFinalFocus"]}],"VALUE.CLEAR":[{guard:"isOpenControlled",actions:["clearInputValue","clearSelectedItems","invokeOnClose"]},{target:"focused",actions:["clearInputValue","clearSelectedItems","invokeOnClose","setFinalFocus"]}]}},suggesting:{tags:["open","focused"],effects:["trackDismissableLayer","scrollToHighlightedItem","trackPlacement","hideOtherElements"],entry:["setInitialFocus"],on:{"CONTROLLED.CLOSE":[{guard:"restoreFocus",target:"focused",actions:["setFinalFocus"]},{target:"idle"}],CHILDREN_CHANGE:[{guard:"autoHighlight",actions:["highlightFirstItem"]},{guard:"isHighlightedItemRemoved",actions:["clearHighlightedValue"]}],"INPUT.ARROW_DOWN":{target:"interacting",actions:["highlightNextItem"]},"INPUT.ARROW_UP":{target:"interacting",actions:["highlightPrevItem"]},"INPUT.HOME":{target:"interacting",actions:["highlightFirstItem"]},"INPUT.END":{target:"interacting",actions:["highlightLastItem"]},"INPUT.ENTER":[{guard:eM("isOpenControlled","isCustomValue",eL("hasHighlightedItem"),eL("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:eM("isCustomValue",eL("hasHighlightedItem"),eL("allowCustomValue")),target:"focused",actions:["revertInputValue","invokeOnClose"]},{guard:eM("isOpenControlled","closeOnSelect"),actions:["selectHighlightedItem","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["selectHighlightedItem","invokeOnClose","setFinalFocus"]},{actions:["selectHighlightedItem"]}],"INPUT.CHANGE":{actions:["setInputValue"]},"LAYER.ESCAPE":[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose"]}],"ITEM.POINTER_MOVE":{target:"interacting",actions:["setHighlightedValue"]},"ITEM.POINTER_LEAVE":{actions:["clearHighlightedValue"]},"LAYER.INTERACT_OUTSIDE":[{guard:eM("isOpenControlled","isCustomValue",eL("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:eM("isCustomValue",eL("allowCustomValue")),target:"idle",actions:["revertInputValue","invokeOnClose"]},{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"idle",actions:["invokeOnClose"]}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose"]}],"ITEM.CLICK":[{guard:eM("isOpenControlled","closeOnSelect"),actions:["selectItem","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["selectItem","invokeOnClose","setFinalFocus"]},{actions:["selectItem"]}],CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose","setFinalFocus"]}],"VALUE.CLEAR":[{guard:"isOpenControlled",actions:["clearInputValue","clearSelectedItems","invokeOnClose"]},{target:"focused",actions:["clearInputValue","clearSelectedItems","invokeOnClose","setFinalFocus"]}]}}},implementations:{guards:{isInputValueEmpty:({computed:e})=>e("isInputValueEmpty"),autoComplete:({computed:e,prop:t})=>e("autoComplete")&&!t("multiple"),autoHighlight:({computed:e})=>e("autoHighlight"),isFirstItemHighlighted:({prop:e,context:t})=>e("collection").firstValue===t.get("highlightedValue"),isLastItemHighlighted:({prop:e,context:t})=>e("collection").lastValue===t.get("highlightedValue"),isCustomValue:({computed:e})=>e("isCustomValue"),allowCustomValue:({prop:e})=>!!e("allowCustomValue"),hasHighlightedItem:({context:e})=>null!=e.get("highlightedValue"),closeOnSelect:({prop:e})=>!!e("closeOnSelect"),isOpenControlled:({prop:e})=>null!=e("open"),openOnChange:({prop:e,context:t})=>{let r=e("openOnChange");return(0,K.Lm)(r)?r:!!r?.({inputValue:t.get("inputValue")})},restoreFocus:({event:e})=>null==e.restoreFocus||!!e.restoreFocus,isChangeEvent:({event:e})=>e.previousEvent?.type==="INPUT.CHANGE",autoFocus:({prop:e})=>!!e("autoFocus"),isHighlightedItemRemoved:({prop:e,context:t})=>!e("collection").has(t.get("highlightedValue"))},effects:{trackDismissableLayer({send:e,prop:t,scope:r}){if(!t("disableLayer"))return(0,ey.u)(()=>eE(r),{type:"listbox",defer:!0,exclude:()=>[ek(r),eI(r),e_(r)],onFocusOutside:t("onFocusOutside"),onPointerDownOutside:t("onPointerDownOutside"),onInteractOutside:t("onInteractOutside"),onEscapeKeyDown(t){t.preventDefault(),t.stopPropagation(),e({type:"LAYER.ESCAPE",src:"escape-key"})},onDismiss(){e({type:"LAYER.INTERACT_OUTSIDE",src:"interact-outside",restoreFocus:!1})}})},hideOtherElements:({scope:e})=>(0,em.M)([ek(e),eE(e),eI(e),e_(e)]),trackPlacement:({context:e,prop:t,scope:r})=>(e.set("currentPlacement",t("positioning").placement),(0,ev.Ox)(()=>eO(r)||eI(r),()=>eC(r),{...t("positioning"),defer:!0,onComplete(t){e.set("currentPlacement",t.placement)}})),scrollToHighlightedItem({context:e,prop:t,scope:r,event:n}){let i=ek(r),o=[],a=i=>{let a=n.current().type.includes("POINTER"),s=e.get("highlightedValue");if(a||!s)return;let l=eE(r),u=t("scrollToIndexFn");if(u)return void u({index:t("collection").indexOf(s),immediate:i,getElement:()=>eT(r,s)});let c=eT(r,s),d=(0,eg.er)(()=>{(0,eg.Rt)(c,{rootEl:l,block:"nearest"})});o.push(d)},s=(0,eg.er)(()=>a(!0));o.push(s);let l=(0,eg.mx)(i,{attributes:["aria-activedescendant"],callback:()=>a(!1)});return o.push(l),()=>{o.forEach(e=>e())}}},actions:{reposition({context:e,prop:t,scope:r,event:n}){(0,ev.Ox)(()=>eO(r),()=>eC(r),{...t("positioning"),...n.options,defer:!0,listeners:!1,onComplete(t){e.set("currentPlacement",t.placement)}})},setHighlightedValue({context:e,event:t}){null!=t.value&&e.set("highlightedValue",t.value)},clearHighlightedValue({context:e}){e.set("highlightedValue",null)},selectHighlightedItem(e){let{context:t,prop:r}=e,n=r("collection"),i=t.get("highlightedValue");if(!i||!n.has(i))return;let o=r("multiple")?(0,K.Xx)(t.get("value"),i):[i];r("onSelect")?.({value:o,itemValue:i}),t.set("value",o);let a=(0,K.YW)(r("selectionBehavior"),{preserve:t.get("inputValue"),replace:n.stringifyMany(o),clear:""});t.set("inputValue",a)},scrollToHighlightedItem({context:e,prop:t,scope:r}){(0,eg.dY)(()=>{let n=e.get("highlightedValue");if(null==n)return;let i=eT(r,n),o=eE(r),a=t("scrollToIndexFn");if(a)return void a({index:t("collection").indexOf(n),immediate:!0,getElement:()=>eT(r,n)});(0,eg.Rt)(i,{rootEl:o,block:"nearest"})})},selectItem(e){let{context:t,event:r,flush:n,prop:i}=e;null!=r.value&&n(()=>{let e=i("multiple")?(0,K.Xx)(t.get("value"),r.value):[r.value];i("onSelect")?.({value:e,itemValue:r.value}),t.set("value",e);let n=(0,K.YW)(i("selectionBehavior"),{preserve:t.get("inputValue"),replace:i("collection").stringifyMany(e),clear:""});t.set("inputValue",n)})},clearItem(e){let{context:t,event:r,flush:n,prop:i}=e;null!=r.value&&n(()=>{let e=(0,K.TF)(t.get("value"),r.value);t.set("value",e);let n=(0,K.YW)(i("selectionBehavior"),{preserve:t.get("inputValue"),replace:i("collection").stringifyMany(e),clear:""});t.set("inputValue",n)})},setInitialFocus({scope:e}){(0,eg.er)(()=>{eP(e)})},setFinalFocus({scope:e}){(0,eg.er)(()=>{let t=eI(e);if(t?.dataset.focusable==null)eP(e);else{let t=eI(e);e.isActiveElement(t)||t?.focus({preventScroll:!0})}})},syncInputValue({context:e,scope:t,event:r}){let n=ek(t);n&&(n.value=e.get("inputValue"),queueMicrotask(()=>{"INPUT.CHANGE"!==r.current().type&&(0,eg.gX)(n)}))},setInputValue({context:e,event:t}){e.set("inputValue",t.value)},clearInputValue({context:e}){e.set("inputValue","")},revertInputValue({context:e,prop:t,computed:r}){let n=t("selectionBehavior"),i=(0,K.YW)(n,{replace:r("hasSelectedItems")?r("valueAsString"):"",preserve:e.get("inputValue"),clear:""});e.set("inputValue",i)},setValue(e){let{context:t,flush:r,event:n,prop:i}=e;r(()=>{t.set("value",n.value);let e=(0,K.YW)(i("selectionBehavior"),{preserve:t.get("inputValue"),replace:i("collection").stringifyMany(n.value),clear:""});t.set("inputValue",e)})},clearSelectedItems(e){let{context:t,flush:r,prop:n}=e;r(()=>{t.set("value",[]);let e=(0,K.YW)(n("selectionBehavior"),{preserve:t.get("inputValue"),replace:n("collection").stringifyMany([]),clear:""});t.set("inputValue",e)})},scrollContentToTop({prop:e,scope:t}){let r=e("scrollToIndexFn");if(r){let n=e("collection").firstValue;r({index:0,immediate:!0,getElement:()=>eT(t,n)})}else{let e=eE(t);if(!e)return;e.scrollTop=0}},invokeOnOpen({prop:e,event:t}){let r=eV(t);e("onOpenChange")?.({open:!0,reason:r})},invokeOnClose({prop:e,event:t}){let r=eV(t);e("onOpenChange")?.({open:!1,reason:r})},highlightFirstItem({context:e,prop:t,scope:r}){(eE(r)?queueMicrotask:eg.er)(()=>{let r=t("collection").firstValue;r&&e.set("highlightedValue",r)})},highlightFirstItemIfNeeded({computed:e,action:t}){e("autoHighlight")&&t(["highlightFirstItem"])},highlightLastItem({context:e,prop:t,scope:r}){(eE(r)?queueMicrotask:eg.er)(()=>{let r=t("collection").lastValue;r&&e.set("highlightedValue",r)})},highlightNextItem({context:e,prop:t}){let r=null,n=e.get("highlightedValue"),i=t("collection");n?!(r=i.getNextValue(n))&&t("loopFocus")&&(r=i.firstValue):r=i.firstValue,r&&e.set("highlightedValue",r)},highlightPrevItem({context:e,prop:t}){let r=null,n=e.get("highlightedValue"),i=t("collection");n?!(r=i.getPreviousValue(n))&&t("loopFocus")&&(r=i.lastValue):r=i.lastValue,r&&e.set("highlightedValue",r)},highlightFirstSelectedItem({context:e,prop:t}){(0,eg.er)(()=>{let[r]=t("collection").sort(e.get("value"));r&&e.set("highlightedValue",r)})},highlightFirstOrSelectedItem({context:e,prop:t,computed:r}){(0,eg.er)(()=>{let n=null;(n=r("hasSelectedItems")?t("collection").sort(e.get("value"))[0]:t("collection").firstValue)&&e.set("highlightedValue",n)})},highlightLastOrSelectedItem({context:e,prop:t,computed:r}){(0,eg.er)(()=>{let n=t("collection"),i=null;(i=r("hasSelectedItems")?n.sort(e.get("value"))[0]:n.lastValue)&&e.set("highlightedValue",i)})},autofillInputValue({context:e,computed:t,prop:r,event:n,scope:i}){let o=ek(i),a=r("collection");if(!t("autoComplete")||!o||!n.keypress)return;let s=a.stringify(e.get("highlightedValue"));(0,eg.er)(()=>{o.value=s||e.get("inputValue")})},syncSelectedItems(e){queueMicrotask(()=>{let{context:t,prop:r}=e,n=r("collection"),i=t.get("value"),o=i.map(e=>t.get("selectedItems").find(t=>n.getItemValue(t)===e)||n.find(e));t.set("selectedItems",o);let a=(0,K.YW)(r("selectionBehavior"),{preserve:t.get("inputValue"),replace:n.stringifyMany(i),clear:""});t.set("inputValue",a)})},syncHighlightedItem({context:e,prop:t}){let r=t("collection").find(e.get("highlightedValue"));e.set("highlightedItem",r)},toggleVisibility({event:e,send:t,prop:r}){t({type:r("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:e})}}}});var eD=(0,ex.x)()(["allowCustomValue","autoFocus","closeOnSelect","collection","composite","defaultHighlightedValue","defaultInputValue","defaultOpen","defaultValue","dir","disabled","disableLayer","form","getRootNode","highlightedValue","id","ids","inputBehavior","inputValue","invalid","loopFocus","multiple","name","navigate","onFocusOutside","onHighlightChange","onInputValueChange","onInteractOutside","onOpenChange","onOpenChange","onPointerDownOutside","onSelect","onValueChange","open","openOnChange","openOnClick","openOnKeyPress","placeholder","positioning","readOnly","required","scrollToIndexFn","selectionBehavior","translations","value","alwaysSubmitOnEnter"]);(0,K.PM)(eD);var eF=(0,ex.x)()(["htmlFor"]);(0,K.PM)(eF);var ej=(0,ex.x)()(["id"]);(0,K.PM)(ej);var ez=(0,ex.x)()(["item","persistFocus"]);(0,K.PM)(ez);let eB=ew.extendWith("empty");var eU=(0,G.y)("accordion").parts("root","item","itemTrigger","itemContent","itemIndicator");eU.build();var eH=e=>e.ids?.root??`accordion:${e.id}`,eW=(e,t)=>e.ids?.itemTrigger?.(t)??`accordion:${e.id}:trigger:${t}`,e$=e=>{let t=CSS.escape(eH(e)),r=`[aria-controls][data-ownedby='${t}']:not([disabled])`;return(0,eg.YG)((e=>e.getById(eH(e)))(e),r)},{and:eq,not:eG}=(0,eb.b6)();(0,eb.Op)({props:({props:e})=>({collapsible:!1,multiple:!1,orientation:"vertical",defaultValue:[],...e}),initialState:()=>"idle",context:({prop:e,bindable:t})=>({focusedValue:t(()=>({defaultValue:null,sync:!0,onChange(t){e("onFocusChange")?.({value:t})}})),value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),onChange(t){e("onValueChange")?.({value:t})}}))}),computed:{isHorizontal:({prop:e})=>"horizontal"===e("orientation")},on:{"VALUE.SET":{actions:["setValue"]}},states:{idle:{on:{"TRIGGER.FOCUS":{target:"focused",actions:["setFocusedValue"]}}},focused:{on:{"GOTO.NEXT":{actions:["focusNextTrigger"]},"GOTO.PREV":{actions:["focusPrevTrigger"]},"TRIGGER.CLICK":[{guard:eq("isExpanded","canToggle"),actions:["collapse"]},{guard:eG("isExpanded"),actions:["expand"]}],"GOTO.FIRST":{actions:["focusFirstTrigger"]},"GOTO.LAST":{actions:["focusLastTrigger"]},"TRIGGER.BLUR":{target:"idle",actions:["clearFocusedValue"]}}}},implementations:{guards:{canToggle:({prop:e})=>!!e("collapsible")||!!e("multiple"),isExpanded:({context:e,event:t})=>e.get("value").includes(t.value)},actions:{collapse({context:e,prop:t,event:r}){let n=t("multiple")?(0,K.TF)(e.get("value"),r.value):[];e.set("value",n)},expand({context:e,prop:t,event:r}){let n=t("multiple")?(0,K.WQ)(e.get("value"),r.value):[r.value];e.set("value",n)},focusFirstTrigger({scope:e}){(0,K.$1)(e$(e))?.focus()},focusLastTrigger({scope:e}){(0,K.HV)(e$(e))?.focus()},focusNextTrigger({context:e,scope:t}){let r=e.get("focusedValue");if(!r)return;let n=(0,eg.Ut)(e$(t),eW(t,r));n?.focus()},focusPrevTrigger({context:e,scope:t}){let r=e.get("focusedValue");if(!r)return;let n=(0,eg.I5)(e$(t),eW(t,r));n?.focus()},setFocusedValue({context:e,event:t}){e.set("focusedValue",t.value)},clearFocusedValue({context:e}){e.set("focusedValue",null)},setValue({context:e,event:t}){e.set("value",t.value)},coarseValue({context:e,prop:t}){!t("multiple")&&e.get("value").length>1&&((0,K.R8)("The value of accordion should be a single value when multiple is false."),e.set("value",[e.get("value")[0]]))}}}});var eK=(0,ex.x)()(["collapsible","dir","disabled","getRootNode","id","ids","multiple","onFocusChange","onValueChange","orientation","value","defaultValue"]);(0,K.PM)(eK);var eY=(0,ex.x)()(["value","disabled"]);(0,K.PM)(eY);var eX=(0,G.y)("clipboard").parts("root","control","trigger","indicator","input","label");eX.build(),(0,eb.Op)({props:({props:e})=>({timeout:3e3,defaultValue:"",...e}),initialState:()=>"idle",context:({prop:e,bindable:t})=>({value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),onChange(t){e("onValueChange")?.({value:t})}}))}),watch({track:e,context:t,action:r}){e([()=>t.get("value")],()=>{r(["syncInputElement"])})},on:{"VALUE.SET":{actions:["setValue"]},COPY:{target:"copied",actions:["copyToClipboard","invokeOnCopy"]}},states:{idle:{on:{"INPUT.COPY":{target:"copied",actions:["invokeOnCopy"]}}},copied:{effects:["waitForTimeout"],on:{"COPY.DONE":{target:"idle"},COPY:{target:"copied",actions:["copyToClipboard","invokeOnCopy"]},"INPUT.COPY":{actions:["invokeOnCopy"]}}}},implementations:{effects:{waitForTimeout:({prop:e,send:t})=>(0,K.bK)(()=>{t({type:"COPY.DONE"})},e("timeout"))},actions:{setValue({context:e,event:t}){e.set("value",t.value)},copyToClipboard({context:e,scope:t}){let r;r=e.get("value"),function(e,t){let r=e.defaultView||window;if(r.navigator.clipboard?.writeText!==void 0)return r.navigator.clipboard.writeText(t);if(!e.body)return Promise.reject(Error());let n=function(e,t){let r=e.createElement("pre");return Object.assign(r.style,{width:"1px",height:"1px",position:"fixed",top:"5px"}),r.textContent=t,r}(e,t);e.body.appendChild(n),function(e){let t=(0,eg.zk)(e).getSelection();if(null==t)return Promise.reject(Error());t.removeAllRanges();let r=e.ownerDocument,n=r.createRange();n.selectNodeContents(e),t.addRange(n),r.execCommand("copy"),t.removeAllRanges(),Promise.resolve()}(n),e.body.removeChild(n),Promise.resolve()}(t.getDoc(),r)},invokeOnCopy({prop:e}){e("onStatusChange")?.({copied:!0})},syncInputElement({context:e,scope:t}){let r=t.getById(t.ids?.input??`clip:${t.id}:input`);r&&(0,eg.U4)(r,e.get("value"))}}}});var eQ=(0,ex.x)()(["getRootNode","id","ids","value","defaultValue","timeout","onStatusChange","onValueChange"]);(0,K.PM)(eQ);var eJ=(0,ex.x)()(["copied"]);(0,K.PM)(eJ);var eZ=Object.defineProperty,e0=(e,t,r)=>((e,t,r)=>t in e?eZ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r)(e,t+"",r),e1=class{toHexInt(){return this.toFormat("rgba").toHexInt()}getChannelValue(e){if(e in this)return this[e];throw Error("Unsupported color channel: "+e)}getChannelValuePercent(e,t){let r=t??this.getChannelValue(e),{minValue:n,maxValue:i}=this.getChannelRange(e);return(0,K.vV)(r,n,i)}getChannelPercentValue(e,t){let{minValue:r,maxValue:n,step:i}=this.getChannelRange(e),o=(0,K.F4)(t,r,n,i);return(0,K.BU)(o,r,n,i)}withChannelValue(e,t){let{minValue:r,maxValue:n}=this.getChannelRange(e);if(e in this){let i=this.clone();return i[e]=(0,K.L3)(t,r,n),i}throw Error("Unsupported color channel: "+e)}getColorAxes(e){let{xChannel:t,yChannel:r}=e,n=t||this.getChannels().find(e=>e!==r),i=r||this.getChannels().find(e=>e!==n),o=this.getChannels().find(e=>e!==n&&e!==i);return{xChannel:n,yChannel:i,zChannel:o}}incrementChannel(e,t){let{minValue:r,maxValue:n,step:i}=this.getChannelRange(e),o=(0,K.BU)((0,K.L3)(this.getChannelValue(e)+t,r,n),r,n,i);return this.withChannelValue(e,o)}decrementChannel(e,t){return this.incrementChannel(e,-t)}isEqual(e){return((e,t)=>{if(Object.keys(e).length!==Object.keys(t).length)return!1;for(let r in e)if(e[r]!==t[r])return!1;return!0})(this.toJSON(),e.toJSON())&&this.getChannelValue("alpha")===e.getChannelValue("alpha")}},e2=/^#[\da-f]+$/i,e5=/^rgba?\((.*)\)$/,e3=/[^#]/gi,e4=class e extends e1{constructor(e,t,r,n){super(),this.red=e,this.green=t,this.blue=r,this.alpha=n}static parse(t){let r=[];if(e2.test(t)&&[4,5,7,9].includes(t.length)){let e=(t.length<6?t.replace(e3,"$&$&"):t).slice(1).split("");for(;e.length>0;)r.push(parseInt(e.splice(0,2).join(""),16));r[3]=void 0!==r[3]?r[3]/255:void 0}let n=t.match(e5);return n?.[1]&&(r=n[1].split(",").map(e=>Number(e.trim())).map((e,t)=>(0,K.L3)(e,0,t<3?255:1))),r.length<3?void 0:new e(r[0],r[1],r[2],r[3]??1)}toString(e){switch(e){case"hex":return"#"+(this.red.toString(16).padStart(2,"0")+this.green.toString(16).padStart(2,"0")+this.blue.toString(16).padStart(2,"0")).toUpperCase();case"hexa":return"#"+(this.red.toString(16).padStart(2,"0")+this.green.toString(16).padStart(2,"0")+this.blue.toString(16).padStart(2,"0")+Math.round(255*this.alpha).toString(16).padStart(2,"0")).toUpperCase();case"rgb":return`rgb(${this.red}, ${this.green}, ${this.blue})`;case"css":case"rgba":return`rgba(${this.red}, ${this.green}, ${this.blue}, ${this.alpha})`;case"hsl":return this.toHSL().toString("hsl");case"hsb":return this.toHSB().toString("hsb");default:return this.toFormat(e).toString(e)}}toFormat(e){switch(e){case"rgba":return this;case"hsba":return this.toHSB();case"hsla":return this.toHSL();default:throw Error("Unsupported color conversion: rgb -> "+e)}}toHexInt(){return this.red<<16|this.green<<8|this.blue}toHSB(){let e=this.red/255,t=this.green/255,r=this.blue/255,n=Math.min(e,t,r),i=Math.max(e,t,r),o=i-n,a=0;if(0!==o){switch(i){case e:a=(t-r)/o+6*(t<r);break;case t:a=(r-e)/o+2;break;case r:a=(e-t)/o+4}a/=6}return new tt((0,K.Nh)(360*a,2),(0,K.Nh)(100*(0===i?0:o/i),2),(0,K.Nh)(100*i,2),(0,K.Nh)(this.alpha,2))}toHSL(){let e=this.red/255,t=this.green/255,r=this.blue/255,n=Math.min(e,t,r),i=Math.max(e,t,r),o=(i+n)/2,a=i-n,s=-1,l=-1;if(0===a)s=l=0;else{switch(l=a/(o<.5?i+n:2-i-n),i){case e:s=(t-r)/a+6*(t<r);break;case t:s=(r-e)/a+2;break;case r:s=(e-t)/a+4}s/=6}return new e7((0,K.Nh)(360*s,2),(0,K.Nh)(100*l,2),(0,K.Nh)(100*o,2),(0,K.Nh)(this.alpha,2))}clone(){return new e(this.red,this.green,this.blue,this.alpha)}getChannelFormatOptions(e){switch(e){case"red":case"green":case"blue":return{style:"decimal"};case"alpha":return{style:"percent"};default:throw Error("Unknown color channel: "+e)}}formatChannelValue(e,t){let r=this.getChannelFormatOptions(e),n=this.getChannelValue(e);return new Intl.NumberFormat(t,r).format(n)}getChannelRange(e){switch(e){case"red":case"green":case"blue":return{minValue:0,maxValue:255,step:1,pageSize:17};case"alpha":return{minValue:0,maxValue:1,step:.01,pageSize:.1};default:throw Error("Unknown color channel: "+e)}}toJSON(){return{r:this.red,g:this.green,b:this.blue,a:this.alpha}}getFormat(){return"rgba"}getChannels(){return e.colorChannels}};e0(e4,"colorChannels",["red","green","blue"]);var e6=/hsl\(([-+]?\d+(?:.\d+)?\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d+(?:.\d+)?%)\)|hsla\(([-+]?\d+(?:.\d+)?\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d(.\d+)?)\)/,e8=class e extends e1{constructor(e,t,r,n){super(),this.hue=e,this.saturation=t,this.lightness=r,this.alpha=n}static parse(t){let r;if(r=t.match(e6)){let[t,n,i,o]=(r[1]??r[2]).split(",").map(e=>Number(e.trim().replace("%","")));return new e((0,K.zi)(t,360),(0,K.L3)(n,0,100),(0,K.L3)(i,0,100),(0,K.L3)(o??1,0,1))}}toString(e){switch(e){case"hex":return this.toRGB().toString("hex");case"hexa":return this.toRGB().toString("hexa");case"hsl":return`hsl(${this.hue}, ${(0,K.Nh)(this.saturation,2)}%, ${(0,K.Nh)(this.lightness,2)}%)`;case"css":case"hsla":return`hsla(${this.hue}, ${(0,K.Nh)(this.saturation,2)}%, ${(0,K.Nh)(this.lightness,2)}%, ${this.alpha})`;case"hsb":return this.toHSB().toString("hsb");case"rgb":return this.toRGB().toString("rgb");default:return this.toFormat(e).toString(e)}}toFormat(e){switch(e){case"hsla":return this;case"hsba":return this.toHSB();case"rgba":return this.toRGB();default:throw Error("Unsupported color conversion: hsl -> "+e)}}toHSB(){let e=this.saturation/100,t=this.lightness/100,r=t+e*Math.min(t,1-t);return e=0===r?0:2*(1-t/r),new tt((0,K.Nh)(this.hue,2),(0,K.Nh)(100*e,2),(0,K.Nh)(100*r,2),(0,K.Nh)(this.alpha,2))}toRGB(){let e=this.hue,t=this.saturation/100,r=this.lightness/100,n=t*Math.min(r,1-r),i=(t,i=(t+e/30)%12)=>r-n*Math.max(Math.min(i-3,9-i,1),-1);return new e4(Math.round(255*i(0)),Math.round(255*i(8)),Math.round(255*i(4)),(0,K.Nh)(this.alpha,2))}clone(){return new e(this.hue,this.saturation,this.lightness,this.alpha)}getChannelFormatOptions(e){switch(e){case"hue":return{style:"unit",unit:"degree",unitDisplay:"narrow"};case"saturation":case"lightness":case"alpha":return{style:"percent"};default:throw Error("Unknown color channel: "+e)}}formatChannelValue(e,t){let r=this.getChannelFormatOptions(e),n=this.getChannelValue(e);return("saturation"===e||"lightness"===e)&&(n/=100),new Intl.NumberFormat(t,r).format(n)}getChannelRange(e){switch(e){case"hue":return{minValue:0,maxValue:360,step:1,pageSize:15};case"saturation":case"lightness":return{minValue:0,maxValue:100,step:1,pageSize:10};case"alpha":return{minValue:0,maxValue:1,step:.01,pageSize:.1};default:throw Error("Unknown color channel: "+e)}}toJSON(){return{h:this.hue,s:this.saturation,l:this.lightness,a:this.alpha}}getFormat(){return"hsla"}getChannels(){return e.colorChannels}};e0(e8,"colorChannels",["hue","saturation","lightness"]);var e7=e8,e9=/hsb\(([-+]?\d+(?:.\d+)?\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d+(?:.\d+)?%)\)|hsba\(([-+]?\d+(?:.\d+)?\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d(.\d+)?)\)/,te=class e extends e1{constructor(e,t,r,n){super(),this.hue=e,this.saturation=t,this.brightness=r,this.alpha=n}static parse(t){let r;if(r=t.match(e9)){let[t,n,i,o]=(r[1]??r[2]).split(",").map(e=>Number(e.trim().replace("%","")));return new e((0,K.zi)(t,360),(0,K.L3)(n,0,100),(0,K.L3)(i,0,100),(0,K.L3)(o??1,0,1))}}toString(e){switch(e){case"css":return this.toHSL().toString("css");case"hex":return this.toRGB().toString("hex");case"hexa":return this.toRGB().toString("hexa");case"hsb":return`hsb(${this.hue}, ${(0,K.Nh)(this.saturation,2)}%, ${(0,K.Nh)(this.brightness,2)}%)`;case"hsba":return`hsba(${this.hue}, ${(0,K.Nh)(this.saturation,2)}%, ${(0,K.Nh)(this.brightness,2)}%, ${this.alpha})`;case"hsl":return this.toHSL().toString("hsl");case"rgb":return this.toRGB().toString("rgb");default:return this.toFormat(e).toString(e)}}toFormat(e){switch(e){case"hsba":return this;case"hsla":return this.toHSL();case"rgba":return this.toRGB();default:throw Error("Unsupported color conversion: hsb -> "+e)}}toHSL(){let e=this.saturation/100,t=this.brightness/100,r=t*(1-e/2);return e=0===r||1===r?0:(t-r)/Math.min(r,1-r),new e7((0,K.Nh)(this.hue,2),(0,K.Nh)(100*e,2),(0,K.Nh)(100*r,2),(0,K.Nh)(this.alpha,2))}toRGB(){let e=this.hue,t=this.saturation/100,r=this.brightness/100,n=(n,i=(n+e/60)%6)=>r-t*r*Math.max(Math.min(i,4-i,1),0);return new e4(Math.round(255*n(5)),Math.round(255*n(3)),Math.round(255*n(1)),(0,K.Nh)(this.alpha,2))}clone(){return new e(this.hue,this.saturation,this.brightness,this.alpha)}getChannelFormatOptions(e){switch(e){case"hue":return{style:"unit",unit:"degree",unitDisplay:"narrow"};case"saturation":case"brightness":case"alpha":return{style:"percent"};default:throw Error("Unknown color channel: "+e)}}formatChannelValue(e,t){let r=this.getChannelFormatOptions(e),n=this.getChannelValue(e);return("saturation"===e||"brightness"===e)&&(n/=100),new Intl.NumberFormat(t,r).format(n)}getChannelRange(e){switch(e){case"hue":return{minValue:0,maxValue:360,step:1,pageSize:15};case"saturation":case"brightness":return{minValue:0,maxValue:100,step:1,pageSize:10};case"alpha":return{minValue:0,maxValue:1,step:.01,pageSize:.1};default:throw Error("Unknown color channel: "+e)}}toJSON(){return{h:this.hue,s:this.saturation,b:this.brightness,a:this.alpha}}getFormat(){return"hsba"}getChannels(){return e.colorChannels}};e0(te,"colorChannels",["hue","saturation","brightness"]);var tt=te,tr=(e=>{let t=new Map,r=e.split(",");for(let e=0;e<r.length;e++){let[n,i]=r[e].split(":");t.set(n,`#${i}`),n.includes("gray")&&t.set(n.replace("gray","grey"),`#${i}`)}return t})("aliceblue:f0f8ff,antiquewhite:faebd7,aqua:00ffff,aquamarine:7fffd4,azure:f0ffff,beige:f5f5dc,bisque:ffe4c4,black:000000,blanchedalmond:ffebcd,blue:0000ff,blueviolet:8a2be2,brown:a52a2a,burlywood:deb887,cadetblue:5f9ea0,chartreuse:7fff00,chocolate:d2691e,coral:ff7f50,cornflowerblue:6495ed,cornsilk:fff8dc,crimson:dc143c,cyan:00ffff,darkblue:00008b,darkcyan:008b8b,darkgoldenrod:b8860b,darkgray:a9a9a9,darkgreen:006400,darkkhaki:bdb76b,darkmagenta:8b008b,darkolivegreen:556b2f,darkorange:ff8c00,darkorchid:9932cc,darkred:8b0000,darksalmon:e9967a,darkseagreen:8fbc8f,darkslateblue:483d8b,darkslategray:2f4f4f,darkturquoise:00ced1,darkviolet:9400d3,deeppink:ff1493,deepskyblue:00bfff,dimgray:696969,dodgerblue:1e90ff,firebrick:b22222,floralwhite:fffaf0,forestgreen:228b22,fuchsia:ff00ff,gainsboro:dcdcdc,ghostwhite:f8f8ff,gold:ffd700,goldenrod:daa520,gray:808080,green:008000,greenyellow:adff2f,honeydew:f0fff0,hotpink:ff69b4,indianred:cd5c5c,indigo:4b0082,ivory:fffff0,khaki:f0e68c,lavender:e6e6fa,lavenderblush:fff0f5,lawngreen:7cfc00,lemonchiffon:fffacd,lightblue:add8e6,lightcoral:f08080,lightcyan:e0ffff,lightgoldenrodyellow:fafad2,lightgrey:d3d3d3,lightgreen:90ee90,lightpink:ffb6c1,lightsalmon:ffa07a,lightseagreen:20b2aa,lightskyblue:87cefa,lightslategray:778899,lightsteelblue:b0c4de,lightyellow:ffffe0,lime:00ff00,limegreen:32cd32,linen:faf0e6,magenta:ff00ff,maroon:800000,mediumaquamarine:66cdaa,mediumblue:0000cd,mediumorchid:ba55d3,mediumpurple:9370d8,mediumseagreen:3cb371,mediumslateblue:7b68ee,mediumspringgreen:00fa9a,mediumturquoise:48d1cc,mediumvioletred:c71585,midnightblue:191970,mintcream:f5fffa,mistyrose:ffe4e1,moccasin:ffe4b5,navajowhite:ffdead,navy:000080,oldlace:fdf5e6,olive:808000,olivedrab:6b8e23,orange:ffa500,orangered:ff4500,orchid:da70d6,palegoldenrod:eee8aa,palegreen:98fb98,paleturquoise:afeeee,palevioletred:d87093,papayawhip:ffefd5,peachpuff:ffdab9,peru:cd853f,pink:ffc0cb,plum:dda0dd,powderblue:b0e0e6,purple:800080,rebeccapurple:663399,red:ff0000,rosybrown:bc8f8f,royalblue:4169e1,saddlebrown:8b4513,salmon:fa8072,sandybrown:f4a460,seagreen:2e8b57,seashell:fff5ee,sienna:a0522d,silver:c0c0c0,skyblue:87ceeb,slateblue:6a5acd,slategray:708090,snow:fffafa,springgreen:00ff7f,steelblue:4682b4,tan:d2b48c,teal:008080,thistle:d8bfd8,tomato:ff6347,turquoise:40e0d0,violet:ee82ee,wheat:f5deb3,white:ffffff,whitesmoke:f5f5f5,yellow:ffff00,yellowgreen:9acd32"),tn=e=>{if(tr.has(e))return tn(tr.get(e));let t=e4.parse(e)||tt.parse(e)||e7.parse(e);if(!t){let t=Error("Invalid color value: "+e);throw Error.captureStackTrace?.(t,tn),t}return t},ti=(0,G.y)("color-picker",["root","label","control","trigger","positioner","content","area","areaThumb","valueText","areaBackground","channelSlider","channelSliderLabel","channelSliderTrack","channelSliderThumb","channelSliderValueText","channelInput","transparencyGrid","swatchGroup","swatchTrigger","swatchIndicator","swatch","eyeDropperTrigger","formatTrigger","formatSelect"]);ti.build();var to=e=>e.getById((e=>e.ids?.content??`color-picker:${e.id}:content`)(e)),ta=e=>e.getById((e=>e.ids?.hiddenInput??`color-picker:${e.id}:hidden-input`)(e)),ts=e=>e.getById((e=>e.ids?.trigger??`color-picker:${e.id}:trigger`)(e));RegExp("^(hsba|hsla|rgba)$");var tl=e=>tn(e),tu=/^[0-9a-fA-F]{3,8}$/,{and:tc}=(0,eb.b6)();function td(e,t,r){let n=[...(0,eg.YG)(to(e),"input[data-channel]"),...(0,eg.YG)(e.getById(e.ids?.control??`color-picker:${e.id}:control`),"input[data-channel]")];(0,eg.er)(()=>{n.forEach(e=>{let n=e.dataset.channel;(0,eg.U4)(e,function(e,t){if(null==t)return"";if("hex"===t)return e.toString("hex");if("css"===t)return e.toString("css");if(t in e)return e.getChannelValue(t).toString();let r="hsla"===e.getFormat();switch(t){case"hue":return r?e.toFormat("hsla").getChannelValue("hue").toString():e.toFormat("hsba").getChannelValue("hue").toString();case"saturation":return r?e.toFormat("hsla").getChannelValue("saturation").toString():e.toFormat("hsba").getChannelValue("saturation").toString();case"lightness":return e.toFormat("hsla").getChannelValue("lightness").toString();case"brightness":return e.toFormat("hsba").getChannelValue("brightness").toString();case"red":case"green":case"blue":return e.toFormat("rgba").getChannelValue(t).toString();default:return e.getChannelValue(t).toString()}}(r||t,n))})})}(0,eb.Op)({props:({props:e})=>({dir:"ltr",defaultValue:tl("#000000"),defaultFormat:"rgba",openAutoFocus:!0,...e,positioning:{placement:"bottom",...e.positioning}}),initialState:({prop:e})=>e("open")||e("defaultOpen")||e("inline")?"open":"idle",context:({prop:e,bindable:t,getContext:r})=>({value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),isEqual:(e,t)=>e.toString("css")===t?.toString("css"),hash:e=>e.toString("css"),onChange(t){let n=r(),i=t.toString(n.get("format"));e("onValueChange")?.({value:t,valueAsString:i})}})),format:t(()=>({defaultValue:e("defaultFormat"),value:e("format"),onChange(t){e("onFormatChange")?.({format:t})}})),activeId:t(()=>({defaultValue:null})),activeChannel:t(()=>({defaultValue:null})),activeOrientation:t(()=>({defaultValue:null})),fieldsetDisabled:t(()=>({defaultValue:!1})),restoreFocus:t(()=>({defaultValue:!0})),currentPlacement:t(()=>({defaultValue:void 0}))}),computed:{rtl:({prop:e})=>"rtl"===e("dir"),disabled:({prop:e,context:t})=>!!e("disabled")||t.get("fieldsetDisabled"),interactive:({prop:e})=>!(e("disabled")||e("readOnly")),valueAsString:({context:e})=>e.get("value").toString(e.get("format")),areaValue:({context:e})=>{let t=e.get("format").startsWith("hsl")?"hsla":"hsba";return e.get("value").toFormat(t)}},effects:["trackFormControl"],watch({prop:e,context:t,action:r,track:n}){n([()=>t.hash("value")],()=>{r(["syncInputElements","dispatchChangeEvent"])}),n([()=>t.get("format")],()=>{r(["syncFormatSelectElement"])}),n([()=>e("open")],()=>{r(["toggleVisibility"])})},on:{"VALUE.SET":{actions:["setValue"]},"FORMAT.SET":{actions:["setFormat"]},"CHANNEL_INPUT.CHANGE":{actions:["setChannelColorFromInput"]},"EYEDROPPER.CLICK":{actions:["openEyeDropper"]},"SWATCH_TRIGGER.CLICK":{actions:["setValue"]}},states:{idle:{tags:["closed"],on:{"CONTROLLED.OPEN":{target:"open",actions:["setInitialFocus"]},OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen","setInitialFocus"]}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen","setInitialFocus"]}],"CHANNEL_INPUT.FOCUS":{target:"focused",actions:["setActiveChannel"]}}},focused:{tags:["closed","focused"],on:{"CONTROLLED.OPEN":{target:"open",actions:["setInitialFocus"]},OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen","setInitialFocus"]}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen","setInitialFocus"]}],"CHANNEL_INPUT.FOCUS":{actions:["setActiveChannel"]},"CHANNEL_INPUT.BLUR":{target:"idle",actions:["setChannelColorFromInput"]},"TRIGGER.BLUR":{target:"idle"}}},open:{tags:["open"],effects:["trackPositioning","trackDismissableElement"],on:{"CONTROLLED.CLOSE":[{guard:"shouldRestoreFocus",target:"focused",actions:["setReturnFocus"]},{target:"idle"}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"idle",actions:["invokeOnClose"]}],"AREA.POINTER_DOWN":{target:"open:dragging",actions:["setActiveChannel","setAreaColorFromPoint","focusAreaThumb"]},"AREA.FOCUS":{actions:["setActiveChannel"]},"CHANNEL_SLIDER.POINTER_DOWN":{target:"open:dragging",actions:["setActiveChannel","setChannelColorFromPoint","focusChannelThumb"]},"CHANNEL_SLIDER.FOCUS":{actions:["setActiveChannel"]},"AREA.ARROW_LEFT":{actions:["decrementAreaXChannel"]},"AREA.ARROW_RIGHT":{actions:["incrementAreaXChannel"]},"AREA.ARROW_UP":{actions:["incrementAreaYChannel"]},"AREA.ARROW_DOWN":{actions:["decrementAreaYChannel"]},"AREA.PAGE_UP":{actions:["incrementAreaXChannel"]},"AREA.PAGE_DOWN":{actions:["decrementAreaXChannel"]},"CHANNEL_SLIDER.ARROW_LEFT":{actions:["decrementChannel"]},"CHANNEL_SLIDER.ARROW_RIGHT":{actions:["incrementChannel"]},"CHANNEL_SLIDER.ARROW_UP":{actions:["incrementChannel"]},"CHANNEL_SLIDER.ARROW_DOWN":{actions:["decrementChannel"]},"CHANNEL_SLIDER.PAGE_UP":{actions:["incrementChannel"]},"CHANNEL_SLIDER.PAGE_DOWN":{actions:["decrementChannel"]},"CHANNEL_SLIDER.HOME":{actions:["setChannelToMin"]},"CHANNEL_SLIDER.END":{actions:["setChannelToMax"]},"CHANNEL_INPUT.BLUR":{actions:["setChannelColorFromInput"]},INTERACT_OUTSIDE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{guard:"shouldRestoreFocus",target:"focused",actions:["invokeOnClose","setReturnFocus"]},{target:"idle",actions:["invokeOnClose"]}],CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"idle",actions:["invokeOnClose"]}],"SWATCH_TRIGGER.CLICK":[{guard:tc("isOpenControlled","closeOnSelect"),actions:["setValue","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["setValue","invokeOnClose","setReturnFocus"]},{actions:["setValue"]}]}},"open:dragging":{tags:["open"],exit:["clearActiveChannel"],effects:["trackPointerMove","disableTextSelection","trackPositioning","trackDismissableElement"],on:{"CONTROLLED.CLOSE":[{guard:"shouldRestoreFocus",target:"focused",actions:["setReturnFocus"]},{target:"idle"}],"AREA.POINTER_MOVE":{actions:["setAreaColorFromPoint","focusAreaThumb"]},"AREA.POINTER_UP":{target:"open",actions:["invokeOnChangeEnd"]},"CHANNEL_SLIDER.POINTER_MOVE":{actions:["setChannelColorFromPoint","focusChannelThumb"]},"CHANNEL_SLIDER.POINTER_UP":{target:"open",actions:["invokeOnChangeEnd"]},INTERACT_OUTSIDE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{guard:"shouldRestoreFocus",target:"focused",actions:["invokeOnClose","setReturnFocus"]},{target:"idle",actions:["invokeOnClose"]}],CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"idle",actions:["invokeOnClose"]}]}}},implementations:{guards:{closeOnSelect:({prop:e})=>!!e("closeOnSelect"),isOpenControlled:({prop:e})=>null!=e("open")||!!e("inline"),shouldRestoreFocus:({context:e})=>!!e.get("restoreFocus")},effects:{trackPositioning({context:e,prop:t,scope:r}){if(t("inline"))return;e.get("currentPlacement")||e.set("currentPlacement",t("positioning")?.placement);let n=ts(r);return(0,ev.Ox)(n,()=>r.getById(r.ids?.positioner??`color-picker:${r.id}:positioner`),{...t("positioning"),defer:!0,onComplete(t){e.set("currentPlacement",t.placement)}})},trackDismissableElement({context:e,scope:t,prop:r,send:n}){if(!r("inline"))return(0,ey.u)(()=>to(t),{type:"popover",exclude:ts(t),defer:!0,onInteractOutside(t){r("onInteractOutside")?.(t),t.defaultPrevented||e.set("restoreFocus",!(t.detail.focusable||t.detail.contextmenu))},onPointerDownOutside:r("onPointerDownOutside"),onFocusOutside:r("onFocusOutside"),onDismiss(){n({type:"INTERACT_OUTSIDE"})}})},trackFormControl({context:e,scope:t,send:r}){let n=ta(t);return(0,eg.$S)(n,{onFieldsetDisabledChange(t){e.set("fieldsetDisabled",t)},onFormReset(){r({type:"VALUE.SET",value:e.initial("value"),src:"form.reset"})}})},trackPointerMove:({context:e,scope:t,event:r,send:n})=>(0,eg.Al)(t.getDoc(),{onPointerMove({point:t}){n({type:"area"===e.get("activeId")?"AREA.POINTER_MOVE":"CHANNEL_SLIDER.POINTER_MOVE",point:t,format:r.format})},onPointerUp(){n({type:"area"===e.get("activeId")?"AREA.POINTER_UP":"CHANNEL_SLIDER.POINTER_UP"})}}),disableTextSelection:({scope:e})=>(0,eg.MC)({doc:e.getDoc(),target:to(e)})},actions:{openEyeDropper({scope:e,context:t}){let r=e.getWin();"EyeDropper"in r&&new r.EyeDropper().open().then(({sRGBHex:e})=>{let r=t.get("value").getFormat(),n=tn(e).toFormat(r);t.set("value",n)}).catch(()=>void 0)},setActiveChannel({context:e,event:t}){e.set("activeId",t.id),t.channel&&e.set("activeChannel",t.channel),t.orientation&&e.set("activeOrientation",t.orientation)},clearActiveChannel({context:e}){e.set("activeChannel",null),e.set("activeId",null),e.set("activeOrientation",null)},setAreaColorFromPoint({context:e,event:t,computed:r,scope:n,prop:i}){let o=t.format?e.get("value").toFormat(t.format):r("areaValue"),{xChannel:a,yChannel:s}=t.channel||e.get("activeChannel"),l=((e,t,r)=>{var n;let i,o=(n=e).getById((i=n,i.ids?.area??`color-picker:${i.id}:area`));if(!o)return;let{getPercentValue:a}=(0,eg.NH)(t,o);return{x:a({dir:r,orientation:"horizontal"}),y:a({orientation:"vertical"})}})(n,t.point,i("dir"));if(!l)return;let u=o.getChannelPercentValue(a,l.x),c=o.getChannelPercentValue(s,1-l.y),d=o.withChannelValue(a,u).withChannelValue(s,c);e.set("value",d)},setChannelColorFromPoint({context:e,event:t,computed:r,scope:n,prop:i}){let o=t.channel||e.get("activeId"),a=t.format?e.get("value").toFormat(t.format):r("areaValue"),s=((e,t,r,n)=>{var i,o;let a,s,l=(i=e,o=r,i.getById((a=i,s=o,a.ids?.channelSliderTrack?.(s)??`color-picker:${a.id}:slider-track:${s}`)));if(!l)return;let{getPercentValue:u}=(0,eg.NH)(t,l);return{x:u({dir:n,orientation:"horizontal"}),y:u({orientation:"vertical"})}})(n,t.point,o,i("dir"));if(!s)return;let l="horizontal"===(e.get("activeOrientation")||"horizontal")?s.x:s.y,u=a.getChannelPercentValue(o,l),c=a.withChannelValue(o,u);e.set("value",c)},setValue({context:e,event:t}){e.set("value",t.value)},setFormat({context:e,event:t}){e.set("format",t.format)},dispatchChangeEvent({scope:e,computed:t}){(0,eg.CF)(ta(e),{value:t("valueAsString")})},syncInputElements({context:e,scope:t}){td(t,e.get("value"))},invokeOnChangeEnd({context:e,prop:t,computed:r}){t("onValueChangeEnd")?.({value:e.get("value"),valueAsString:r("valueAsString")})},setChannelColorFromInput({context:e,event:t,scope:r,prop:n}){let i,{channel:o,isTextField:a,value:s}=t,l=e.get("value").getChannelValue("alpha");if("alpha"===o){let t=parseFloat(s);t=Number.isNaN(t)?l:t,i=e.get("value").withChannelValue("alpha",t)}else if(a)i=(0,K.TX)(()=>tl("hex"===o?function(e){return e.startsWith("#")?e:tu.test(e)?`#${e}`:e}(s):s).withChannelValue("alpha",l),()=>e.get("value"));else{let t=e.get("value").toFormat(e.get("format")),r=Number.isNaN(s)?t.getChannelValue(o):s;i=t.withChannelValue(o,r)}td(r,e.get("value"),i),e.set("value",i),n("onValueChangeEnd")?.({value:i,valueAsString:i.toString(e.get("format"))})},incrementChannel({context:e,event:t}){let r=e.get("value").incrementChannel(t.channel,t.step);e.set("value",r)},decrementChannel({context:e,event:t}){let r=e.get("value").decrementChannel(t.channel,t.step);e.set("value",r)},incrementAreaXChannel({context:e,event:t,computed:r}){let{xChannel:n}=t.channel,i=r("areaValue").incrementChannel(n,t.step);e.set("value",i)},decrementAreaXChannel({context:e,event:t,computed:r}){let{xChannel:n}=t.channel,i=r("areaValue").decrementChannel(n,t.step);e.set("value",i)},incrementAreaYChannel({context:e,event:t,computed:r}){let{yChannel:n}=t.channel,i=r("areaValue").incrementChannel(n,t.step);e.set("value",i)},decrementAreaYChannel({context:e,event:t,computed:r}){let{yChannel:n}=t.channel,i=r("areaValue").decrementChannel(n,t.step);e.set("value",i)},setChannelToMax({context:e,event:t}){let r=e.get("value"),n=r.getChannelRange(t.channel),i=r.withChannelValue(t.channel,n.maxValue);e.set("value",i)},setChannelToMin({context:e,event:t}){let r=e.get("value"),n=r.getChannelRange(t.channel),i=r.withChannelValue(t.channel,n.minValue);e.set("value",i)},focusAreaThumb({scope:e}){(0,eg.er)(()=>{e.getById(e.ids?.areaThumb??`color-picker:${e.id}:area-thumb`)?.focus({preventScroll:!0})})},focusChannelThumb({event:e,scope:t}){(0,eg.er)(()=>{let r;(r=e.channel,t.getById(t.ids?.channelSliderThumb?.(r)??`color-picker:${t.id}:slider-thumb:${r}`))?.focus({preventScroll:!0})})},setInitialFocus({prop:e,scope:t}){e("openAutoFocus")&&(0,eg.er)(()=>{let r=(0,eg.RD)({root:to(t),getInitialEl:e("initialFocusEl")});r?.focus({preventScroll:!0})})},setReturnFocus({scope:e}){(0,eg.er)(()=>{ts(e)?.focus({preventScroll:!0})})},syncFormatSelectElement({context:e,scope:t}){!function(e,t){let r=e.getById(e.ids?.formatSelect??`color-picker:${e.id}:format-select`);r&&(0,eg.er)(()=>(0,eg.U4)(r,t))}(t,e.get("format"))},invokeOnOpen({prop:e}){e("inline")||e("onOpenChange")?.({open:!0})},invokeOnClose({prop:e}){e("inline")||e("onOpenChange")?.({open:!1})},toggleVisibility({prop:e,event:t,send:r}){r({type:e("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:t})}}}});var tf=(0,ex.x)()(["closeOnSelect","dir","disabled","format","defaultFormat","getRootNode","id","ids","initialFocusEl","inline","name","positioning","onFocusOutside","onFormatChange","onInteractOutside","onOpenChange","onPointerDownOutside","onValueChange","onValueChangeEnd","defaultOpen","open","positioning","required","readOnly","value","defaultValue","invalid","openAutoFocus"]);(0,K.PM)(tf);var th=(0,ex.x)()(["xChannel","yChannel"]);(0,K.PM)(th);var tp=(0,ex.x)()(["channel","orientation"]);(0,K.PM)(tp);var tg=(0,ex.x)()(["value","disabled"]);(0,K.PM)(tg);var tv=(0,ex.x)()(["value","respectAlpha"]);(0,K.PM)(tv);var tm=(0,ex.x)()(["size"]);(0,K.PM)(tm);let tb=ti.extendWith("view");var ty=r(12318),tx=r(48566),tw=(0,G.y)("editable").parts("root","area","label","preview","input","editTrigger","submitTrigger","cancelTrigger","control");tw.build();var tS=e=>e.getById((e=>e.ids?.input??`editable:${e.id}:input`)(e));(0,eb.Op)({props:({props:e})=>({activationMode:"focus",submitMode:"both",defaultValue:"",selectOnFocus:!0,...e,translations:{input:"editable input",edit:"edit",submit:"submit",cancel:"cancel",...e.translations}}),initialState:({prop:e})=>e("edit")||e("defaultEdit")?"edit":"preview",entry:["focusInputIfNeeded"],context:({bindable:e,prop:t})=>({value:e(()=>({defaultValue:t("defaultValue"),value:t("value"),onChange:e=>t("onValueChange")?.({value:e})})),previousValue:e(()=>({defaultValue:""}))}),watch({track:e,action:t,context:r,prop:n}){e([()=>r.get("value")],()=>{t(["syncInputValue"])}),e([()=>n("edit")],()=>{t(["toggleEditing"])})},computed:{submitOnEnter({prop:e}){let t=e("submitMode");return"both"===t||"enter"===t},submitOnBlur({prop:e}){let t=e("submitMode");return"both"===t||"blur"===t},isInteractive:({prop:e})=>!(e("disabled")||e("readOnly"))},on:{"VALUE.SET":{actions:["setValue"]}},states:{preview:{entry:["blurInputIfNeeded"],on:{"CONTROLLED.EDIT":{target:"edit",actions:["setPreviousValue","focusInput"]},EDIT:[{guard:"isEditControlled",actions:["invokeOnEdit"]},{target:"edit",actions:["setPreviousValue","focusInput","invokeOnEdit"]}]}},edit:{effects:["trackInteractOutside"],on:{"CONTROLLED.PREVIEW":[{guard:"isSubmitEvent",target:"preview",actions:["setPreviousValue","restoreFocus","invokeOnSubmit"]},{target:"preview",actions:["revertValue","restoreFocus","invokeOnCancel"]}],CANCEL:[{guard:"isEditControlled",actions:["invokeOnPreview"]},{target:"preview",actions:["revertValue","restoreFocus","invokeOnCancel","invokeOnPreview"]}],SUBMIT:[{guard:"isEditControlled",actions:["invokeOnPreview"]},{target:"preview",actions:["setPreviousValue","restoreFocus","invokeOnSubmit","invokeOnPreview"]}]}}},implementations:{guards:{isEditControlled:({prop:e})=>void 0!=e("edit"),isSubmitEvent:({event:e})=>e.previousEvent?.type==="SUBMIT"},effects:{trackInteractOutside:({send:e,scope:t,prop:r,computed:n})=>(0,tx.$)(tS(t),{exclude:e=>[t.getById(t.ids?.cancelTrigger??`editable:${t.id}:cancel`),t.getById(t.ids?.submitTrigger??`editable:${t.id}:submit`)].some(t=>(0,eg.gR)(t,e)),onFocusOutside:r("onFocusOutside"),onPointerDownOutside:r("onPointerDownOutside"),onInteractOutside(t){if(r("onInteractOutside")?.(t),t.defaultPrevented)return;let{focusable:i}=t.detail;e({type:n("submitOnBlur")?"SUBMIT":"CANCEL",src:"interact-outside",focusable:i})}})},actions:{restoreFocus({event:e,scope:t,prop:r}){e.focusable||(0,eg.er)(()=>{let e=r("finalFocusEl")?.()??t.getById(t.ids?.editTrigger??`editable:${t.id}:edit`);e?.focus({preventScroll:!0})})},clearValue({context:e}){e.set("value","")},focusInputIfNeeded({action:e,prop:t}){(t("edit")||t("defaultEdit"))&&e(["focusInput"])},focusInput({scope:e,prop:t}){(0,eg.er)(()=>{let r=tS(e);r&&(t("selectOnFocus")?r.select():r.focus({preventScroll:!0}))})},invokeOnCancel({prop:e,context:t}){let r=t.get("previousValue");e("onValueRevert")?.({value:r})},invokeOnSubmit({prop:e,context:t}){let r=t.get("value");e("onValueCommit")?.({value:r})},invokeOnEdit({prop:e}){e("onEditChange")?.({edit:!0})},invokeOnPreview({prop:e}){e("onEditChange")?.({edit:!1})},toggleEditing({prop:e,send:t,event:r}){t({type:e("edit")?"CONTROLLED.EDIT":"CONTROLLED.PREVIEW",previousEvent:r})},syncInputValue({context:e,scope:t}){let r=tS(t);r&&(0,eg.U4)(r,e.get("value"))},setValue({context:e,prop:t,event:r}){let n=t("maxLength"),i=null!=n?r.value.slice(0,n):r.value;e.set("value",i)},setPreviousValue({context:e}){e.set("previousValue",e.get("value"))},revertValue({context:e}){let t=e.get("previousValue");t&&e.set("value",t)},blurInputIfNeeded({scope:e}){tS(e)?.blur()}}}});var tE=(0,ex.x)()(["activationMode","autoResize","dir","disabled","finalFocusEl","form","getRootNode","id","ids","invalid","maxLength","name","onEditChange","onFocusOutside","onInteractOutside","onPointerDownOutside","onValueChange","onValueCommit","onValueRevert","placeholder","readOnly","required","selectOnFocus","edit","defaultEdit","submitMode","translations","defaultValue","value"]);(0,K.PM)(tE);var tk=r(97580);let tC=(0,G.y)("fieldset").parts("root","errorText","helperText","legend");tC.build();var tO=e=>(function(e){return"audio/*"===e||"video/*"===e||"image/*"===e||"text/*"===e||/\w+\/[-+.\w]+/g.test(e)})(e)||/^.*\.[\w]+$/.test(e),tI=(e,t)=>e.name===t.name&&e.size===t.size&&e.type===t.type,t_=new Map("3g2_video/3gpp2[3gp,3gpp_video/3gpp[3mf_model/3mf[7z_application/x-7z-compressed[aac_audio/aac[ac_application/pkix-attr-cert[adp_audio/adpcm[adts_audio/aac[ai_application/postscript[aml_application/automationml-aml+xml[amlx_application/automationml-amlx+zip[amr_audio/amr[apk_application/vnd.android.package-archive[apng_image/apng[appcache,manifest_text/cache-manifest[appinstaller_application/appinstaller[appx_application/appx[appxbundle_application/appxbundle[asc_application/pgp-keys[atom_application/atom+xml[atomcat_application/atomcat+xml[atomdeleted_application/atomdeleted+xml[atomsvc_application/atomsvc+xml[au,snd_audio/basic[avi_video/x-msvideo[avci_image/avci[avcs_image/avcs[avif_image/avif[aw_application/applixware[bdoc_application/bdoc[bin,bpk,buffer,deb,deploy,dist,distz,dll,dmg,dms,dump,elc,exe,img,iso,lrf,mar,msi,msm,msp,pkg,so_application/octet-stream[bmp,dib_image/bmp[btf,btif_image/prs.btif[bz2_application/x-bzip2[c_text/x-c[ccxml_application/ccxml+xml[cdfx_application/cdfx+xml[cdmia_application/cdmi-capability[cdmic_application/cdmi-container[cdmid_application/cdmi-domain[cdmio_application/cdmi-object[cdmiq_application/cdmi-queue[cer_application/pkix-cert[cgm_image/cgm[cjs_application/node[class_application/java-vm[coffee,litcoffee_text/coffeescript[conf,def,in,ini,list,log,text,txt_text/plain[cpp,cxx,cc_text/x-c++src[cpl_application/cpl+xml[cpt_application/mac-compactpro[crl_application/pkix-crl[css_text/css[csv_text/csv[cu_application/cu-seeme[cwl_application/cwl[cww_application/prs.cww[davmount_application/davmount+xml[dbk_application/docbook+xml[doc_application/msword[docx_application/vnd.openxmlformats-officedocument.wordprocessingml.document[dsc_text/prs.lines.tag[dssc_application/dssc+der[dtd_application/xml-dtd[dwd_application/atsc-dwd+xml[ear,jar,war_application/java-archive[ecma_application/ecmascript[emf_image/emf[eml,mime_message/rfc822[emma_application/emma+xml[emotionml_application/emotionml+xml[eot_application/vnd.ms-fontobject[eps,ps_application/postscript[epub_application/epub+zip[exi_application/exi[exp_application/express[exr_image/aces[ez_application/andrew-inset[fdf_application/fdf[fdt_application/fdt+xml[fits_image/fits[flac_audio/flac[flv_video/x-flv[g3_image/g3fax[geojson_application/geo+json[gif_image/gif[glb_model/gltf-binary[gltf_model/gltf+json[gml_application/gml+xml[go_text/x-go[gpx_application/gpx+xml[gz_application/gzip[h_text/x-h[h261_video/h261[h263_video/h263[h264_video/h264[heic_image/heic[heics_image/heic-sequence[heif_image/heif[heifs_image/heif-sequence[htm,html,shtml_text/html[ico_image/x-icon[icns_image/x-icns[ics,ifb_text/calendar[iges,igs_model/iges[ink,inkml_application/inkml+xml[ipa_application/octet-stream[java_text/x-java-source[jp2,jpg2_image/jp2[jpeg,jpe,jpg_image/jpeg[jpf,jpx_image/jpx[jpm,jpgm_image/jpm[jpgv_video/jpeg[jph_image/jph[js,mjs_text/javascript[json_application/json[json5_application/json5[jsonld_application/ld+json[jsx_text/jsx[jxl_image/jxl[jxr_image/jxr[ktx_image/ktx[ktx2_image/ktx2[less_text/less[m1v,m2v,mpe,mpeg,mpg_video/mpeg[m4a_audio/mp4[m4v_video/x-m4v[md,markdown_text/markdown[mid,midi,kar,rmi_audio/midi[mkv_video/x-matroska[mp2,mp2a,mp3,mpga,m3a,m2a_audio/mpeg[mp4,mp4v,mpg4_video/mp4[mp4a_audio/mp4[mp4s,m4p_application/mp4[odp_application/vnd.oasis.opendocument.presentation[oda_application/oda[ods_application/vnd.oasis.opendocument.spreadsheet[odt_application/vnd.oasis.opendocument.text[oga,ogg,opus,spx_audio/ogg[ogv_video/ogg[ogx_application/ogg[otf_font/otf[p12,pfx_application/x-pkcs12[pdf_application/pdf[pem_application/x-pem-file[php_text/x-php[png_image/png[ppt_application/vnd.ms-powerpoint[pptx_application/vnd.openxmlformats-officedocument.presentationml.presentation[pskcxml_application/pskc+xml[psd_image/vnd.adobe.photoshop[py_text/x-python[qt,mov_video/quicktime[rar_application/vnd.rar[rdf_application/rdf+xml[rtf_text/rtf[sass_text/x-sass[scss_text/x-scss[sgm,sgml_text/sgml[sh_application/x-sh[svg,svgz_image/svg+xml[swf_application/x-shockwave-flash[tar_application/x-tar[tif,tiff_image/tiff[toml_application/toml[ts_video/mp2t[tsx_text/tsx[tsv_text/tab-separated-values[ttc_font/collection[ttf_font/ttf[vtt_text/vtt[wasm_application/wasm[wav_audio/wav[weba_audio/webm[webm_video/webm[webmanifest_application/manifest+json[webp_image/webp[wma_audio/x-ms-wma[wmv_video/x-ms-wmv[woff_font/woff[woff2_font/woff2[xls_application/vnd.ms-excel[xlsx_application/vnd.openxmlformats-officedocument.spreadsheetml.sheet[xml_application/xml[xz_application/x-xz[yaml,yml_text/yaml[zip_application/zip".split("[").flatMap(e=>{let[t,r]=e.split("_");return t.split(",").map(e=>[e,r])})),tT=(0,G.y)("file-upload").parts("root","dropzone","item","itemDeleteTrigger","itemGroup","itemName","itemPreview","itemPreviewImage","itemSizeText","label","trigger","clearTrigger");tT.build();var tP=e=>e.getById((e=>e.ids?.hiddenInput??`file:${e.id}:input`)(e));function tR(e,t,r=[],n=[]){let{prop:i,computed:o}=e,a=[],s=[],l={acceptedFiles:r,rejectedFiles:n};return t.forEach(e=>{let[t,r]=function(e,t){let r="application/x-moz-file"===e.type||function(e,t){if(e&&t){let r=Array.isArray(t)?t:"string"==typeof t?t.split(","):[];if(0===r.length)return!0;let n=e.name||"",i=(e.type||function(e){let t=e.split(".").pop();return t&&t_.get(t)||null}(n)||"").toLowerCase(),o=i.replace(/\/.*$/,"");return r.some(e=>{let t=e.trim().toLowerCase();return"."===t.charAt(0)?n.toLowerCase().endsWith(t):t.endsWith("/*")?o===t.replace(/\/.*$/,""):i===t})}return!0}(e,t);return[r,r?null:"FILE_INVALID_TYPE"]}(e,o("acceptAttr")),[n,u]=function(e,t,r){if(null!=e.size)if(null!=t&&null!=r){if(e.size>r)return[!1,"FILE_TOO_LARGE"];if(e.size<t)return[!1,"FILE_TOO_SMALL"]}else{if(null!=t&&e.size<t)return[!1,"FILE_TOO_SMALL"];if(null!=r&&e.size>r)return[!1,"FILE_TOO_LARGE"]}return[!0,null]}(e,i("minFileSize"),i("maxFileSize")),c=i("validate")?.(e,l),d=!c||0===c.length;if(t&&n&&d)a.push(e);else{let t=[r,u];d||t.push(...c??[]),s.push({file:e,errors:t.filter(Boolean)})}}),!function(e,t,r){let{prop:n,computed:i}=e;return(!!i("multiple")||!(t>1))&&(!i("multiple")&&t+r.length===2||!(t+r.length>n("maxFiles")))}(e,a.length,r)&&(a.forEach(e=>{s.push({file:e,errors:["TOO_MANY_FILES"]})}),a.splice(0)),{acceptedFiles:a,rejectedFiles:s}}(0,eb.Op)({props:({props:e})=>({minFileSize:0,maxFileSize:1/0,maxFiles:1,allowDrop:!0,preventDocumentDrop:!0,defaultAcceptedFiles:[],...e,translations:{dropzone:"dropzone",itemPreview:e=>`preview of ${e.name}`,deleteFile:e=>`delete file ${e.name}`,...e.translations}}),initialState:()=>"idle",context:({prop:e,bindable:t,getContext:r})=>({acceptedFiles:t(()=>({defaultValue:e("defaultAcceptedFiles"),value:e("acceptedFiles"),isEqual:(e,t)=>e.length===t?.length&&e.every((e,r)=>tI(e,t[r])),hash:e=>e.map(e=>`${e.name}-${e.size}`).join(","),onChange(t){let n=r();e("onFileAccept")?.({files:t}),e("onFileChange")?.({acceptedFiles:t,rejectedFiles:n.get("rejectedFiles")})}})),rejectedFiles:t(()=>({defaultValue:[],isEqual:(e,t)=>e.length===t?.length&&e.every((e,r)=>tI(e.file,t[r].file)),onChange(t){let n=r();e("onFileReject")?.({files:t}),e("onFileChange")?.({acceptedFiles:n.get("acceptedFiles"),rejectedFiles:t})}})),transforming:t(()=>({defaultValue:!1}))}),computed:{acceptAttr:({prop:e})=>(function(e){if(null!=e)return"string"==typeof e?e:Array.isArray(e)?e.filter(tO).join(","):Object.entries(e).reduce((e,[t,r])=>[...e,t,...r],[]).filter(tO).join(",")})(e("accept")),multiple:({prop:e})=>e("maxFiles")>1},watch({track:e,context:t,action:r}){e([()=>t.hash("acceptedFiles")],()=>{r(["syncInputElement"])})},on:{"FILES.SET":{actions:["setFiles"]},"FILE.SELECT":{actions:["setEventFiles"]},"FILE.DELETE":{actions:["removeFile"]},"FILES.CLEAR":{actions:["clearFiles"]},"REJECTED_FILES.CLEAR":{actions:["clearRejectedFiles"]}},effects:["preventDocumentDrop"],states:{idle:{on:{OPEN:{actions:["openFilePicker"]},"DROPZONE.CLICK":{actions:["openFilePicker"]},"DROPZONE.FOCUS":{target:"focused"},"DROPZONE.DRAG_OVER":{target:"dragging"}}},focused:{on:{"DROPZONE.BLUR":{target:"idle"},OPEN:{actions:["openFilePicker"]},"DROPZONE.CLICK":{actions:["openFilePicker"]},"DROPZONE.DRAG_OVER":{target:"dragging"}}},dragging:{on:{"DROPZONE.DROP":{target:"idle",actions:["setEventFiles"]},"DROPZONE.DRAG_LEAVE":{target:"idle"}}}},implementations:{effects:{preventDocumentDrop({prop:e,scope:t}){if(!e("preventDocumentDrop")||!e("allowDrop")||e("disabled"))return;let r=t.getDoc();return(0,K.OK)((0,eg.kn)(r,"dragover",e=>{e?.preventDefault()},!1),(0,eg.kn)(r,"drop",e=>{(0,eg.gR)(t.getById(t.ids?.root??`file:${t.id}`),(0,eg.wt)(e))||e.preventDefault()},!1))}},actions:{syncInputElement({scope:e,context:t}){queueMicrotask(()=>{let r=tP(e);if(!r)return;var n=t.get("acceptedFiles");let i=(0,eg.zk)(r);try{if("DataTransfer"in i){let e=new i.DataTransfer;n.forEach(t=>{e.items.add(t)}),r.files=e.files}}catch{}let o=e.getWin();r.dispatchEvent(new o.Event("change",{bubbles:!0}))})},openFilePicker({scope:e}){(0,eg.er)(()=>{tP(e)?.click()})},setFiles(e){let{computed:t,context:r,event:n}=e,{acceptedFiles:i,rejectedFiles:o}=tR(e,n.files);r.set("acceptedFiles",t("multiple")?i:i.length>0?[i[0]]:[]),r.set("rejectedFiles",o)},setEventFiles(e){let{computed:t,context:r,event:n,prop:i}=e,o=r.get("acceptedFiles"),a=r.get("rejectedFiles"),{acceptedFiles:s,rejectedFiles:l}=tR(e,n.files,o,a),u=e=>{if(t("multiple")){r.set("acceptedFiles",t=>[...t,...e]),r.set("rejectedFiles",l);return}if(e.length){r.set("acceptedFiles",[e[0]]),r.set("rejectedFiles",l);return}l.length&&(r.set("acceptedFiles",r.get("acceptedFiles")),r.set("rejectedFiles",l))},c=i("transformFiles");c?(r.set("transforming",!0),c(s).then(u).catch(e=>{(0,K.R8)(`[zag-js/file-upload] error transforming files
4
+ ${e}`)}).finally(()=>{r.set("transforming",!1)})):u(s)},removeFile({context:e,event:t}){if("rejected"===t.itemType){let r=e.get("rejectedFiles").filter(e=>!tI(e.file,t.file));e.set("rejectedFiles",r)}else{let r=e.get("acceptedFiles").filter(e=>!tI(e,t.file));e.set("acceptedFiles",r)}},clearRejectedFiles({context:e}){e.set("rejectedFiles",[])},clearFiles({context:e}){e.set("acceptedFiles",[]),e.set("rejectedFiles",[])}}}});var tA=(0,ex.x)()(["accept","acceptedFiles","allowDrop","capture","defaultAcceptedFiles","dir","directory","disabled","getRootNode","id","ids","invalid","locale","maxFiles","maxFileSize","minFileSize","name","onFileAccept","onFileChange","onFileReject","preventDocumentDrop","required","transformFiles","translations","validate"]);(0,K.PM)(tA);var tN=(0,ex.x)()(["file","type"]);(0,K.PM)(tN);var tM=r(87826),tL=(0,G.y)("listbox").parts("label","input","item","itemText","itemIndicator","itemGroup","itemGroupLabel","content","root","valueText");tL.build();var tV=e=>new J(e);tV.empty=()=>new J({items:[]});var tD=e=>e.getById((e=>e.ids?.content??`select:${e.id}:content`)(e)),tF=(e,t)=>e.getById(((e,t)=>e.ids?.item?.(t)??`select:${e.id}:option:${t}`)(e,t)),{guards:tj,createMachine:tz}=(0,eb.mj)(),{or:tB}=tj;function tU(e,t,r){for(let n of((e,t)=>{let r=new Set(e);for(let e of t)r.delete(e);return r})(t,e))r?.({value:n})}tz({props:({props:e})=>({loopFocus:!1,composite:!0,defaultValue:[],multiple:!1,typeahead:!0,collection:tV.empty(),orientation:"vertical",selectionMode:"single",...e}),context:({prop:e,bindable:t})=>({value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),isEqual:K.n4,onChange(t){let r=e("collection").findMany(t);return e("onValueChange")?.({value:t,items:r})}})),highlightedValue:t(()=>({defaultValue:e("defaultHighlightedValue")||null,value:e("highlightedValue"),sync:!0,onChange(t){e("onHighlightChange")?.({highlightedValue:t,highlightedItem:e("collection").find(t),highlightedIndex:e("collection").indexOf(t)})}})),highlightedItem:t(()=>({defaultValue:null})),selectedItems:t(()=>{let t=e("value")??e("defaultValue")??[];return{defaultValue:e("collection").findMany(t)}}),focused:t(()=>({sync:!0,defaultValue:!1}))}),refs:()=>({typeahead:{...eg.tt.defaultOptions},focusVisible:!1}),computed:{hasSelectedItems:({context:e})=>e.get("value").length>0,isTypingAhead:({refs:e})=>""!==e.get("typeahead").keysSoFar,isInteractive:({prop:e})=>!e("disabled"),selection:({context:e,prop:t})=>{let r=new er(e.get("value"));return r.selectionMode=t("selectionMode"),r.deselectable=!!t("deselectable"),r},multiple:({prop:e})=>"multiple"===e("selectionMode")||"extended"===e("selectionMode"),valueAsString:({context:e,prop:t})=>t("collection").stringifyItems(e.get("selectedItems"))},initialState:()=>"idle",watch({context:e,prop:t,track:r,action:n}){r([()=>e.get("value").toString()],()=>{n(["syncSelectedItems"])}),r([()=>e.get("highlightedValue")],()=>{n(["syncHighlightedItem"])}),r([()=>t("collection").toString()],()=>{n(["syncHighlightedValue"])})},effects:["trackFocusVisible"],on:{"HIGHLIGHTED_VALUE.SET":{actions:["setHighlightedItem"]},"ITEM.SELECT":{actions:["selectItem"]},"ITEM.CLEAR":{actions:["clearItem"]},"VALUE.SET":{actions:["setSelectedItems"]},"VALUE.CLEAR":{actions:["clearSelectedItems"]}},states:{idle:{effects:["scrollToHighlightedItem"],on:{"INPUT.FOCUS":{actions:["setFocused"]},"CONTENT.FOCUS":[{guard:tB("hasSelectedValue","hasHighlightedValue"),actions:["setFocused"]},{actions:["setFocused","setDefaultHighlightedValue"]}],"CONTENT.BLUR":{actions:["clearFocused"]},"ITEM.CLICK":{actions:["setHighlightedItem","selectHighlightedItem"]},"CONTENT.TYPEAHEAD":{actions:["setFocused","highlightMatchingItem"]},"ITEM.POINTER_MOVE":{actions:["highlightItem"]},"ITEM.POINTER_LEAVE":{actions:["clearHighlightedItem"]},NAVIGATE:{actions:["setFocused","setHighlightedItem","selectWithKeyboard"]}}}},implementations:{guards:{hasSelectedValue:({context:e})=>e.get("value").length>0,hasHighlightedValue:({context:e})=>null!=e.get("highlightedValue")},effects:{trackFocusVisible:({scope:e,refs:t})=>(0,tM.Yy)({root:e.getRootNode?.(),onChange(e){t.set("focusVisible",e.isFocusVisible)}}),scrollToHighlightedItem({context:e,prop:t,scope:r}){let n=n=>{let i=e.get("highlightedValue");if(null==i||"keyboard"!==(0,tM.ME)())return;let o=tD(r),a=t("scrollToIndexFn");if(a){let e=t("collection").indexOf(i);a?.({index:e,immediate:n,getElement:()=>tF(r,i)});return}let s=tF(r,i);(0,eg.Rt)(s,{rootEl:o,block:"nearest"})};return(0,eg.er)(()=>n(!0)),(0,eg.mx)(()=>tD(r),{defer:!0,attributes:["data-activedescendant"],callback(){n(!1)}})}},actions:{selectHighlightedItem({context:e,prop:t,event:r,computed:n}){let i=r.value??e.get("highlightedValue"),o=t("collection");if(null==i||!o.has(i))return;let a=n("selection");if(r.shiftKey&&n("multiple")&&r.anchorValue){let n=a.extendSelection(o,r.anchorValue,i);tU(a,n,t("onSelect")),e.set("value",Array.from(n))}else{let n=a.select(o,i,r.metaKey);tU(a,n,t("onSelect")),e.set("value",Array.from(n))}},selectWithKeyboard({context:e,prop:t,event:r,computed:n}){let i=n("selection"),o=t("collection");if(r.shiftKey&&n("multiple")&&r.anchorValue){let n=i.extendSelection(o,r.anchorValue,r.value);tU(i,n,t("onSelect")),e.set("value",Array.from(n));return}if(t("selectOnHighlight")){let n=i.replaceSelection(o,r.value);tU(i,n,t("onSelect")),e.set("value",Array.from(n))}},highlightItem({context:e,event:t}){e.set("highlightedValue",t.value)},highlightMatchingItem({context:e,prop:t,event:r,refs:n}){let i=t("collection").search(r.key,{state:n.get("typeahead"),currentValue:e.get("highlightedValue")});null!=i&&e.set("highlightedValue",i)},setHighlightedItem({context:e,event:t}){e.set("highlightedValue",t.value)},clearHighlightedItem({context:e}){e.set("highlightedValue",null)},selectItem({context:e,prop:t,event:r,computed:n}){let i=t("collection"),o=n("selection"),a=o.select(i,r.value);tU(o,a,t("onSelect")),e.set("value",Array.from(a))},clearItem({context:e,event:t,computed:r}){let n=r("selection").deselect(t.value);e.set("value",Array.from(n))},setSelectedItems({context:e,event:t}){e.set("value",t.value)},clearSelectedItems({context:e}){e.set("value",[])},syncSelectedItems({context:e,prop:t}){let r=t("collection"),n=e.get("selectedItems"),i=e.get("value").map(e=>n.find(t=>r.getItemValue(t)===e)||r.find(e));e.set("selectedItems",i)},syncHighlightedItem({context:e,prop:t}){let r=t("collection"),n=e.get("highlightedValue"),i=n?r.find(n):null;e.set("highlightedItem",i)},syncHighlightedValue({context:e,prop:t}){let r=t("collection"),n=e.get("highlightedValue");null==n||r.has(n)||e.set("highlightedValue",null)},setFocused({context:e}){e.set("focused",!0)},setDefaultHighlightedValue({context:e,prop:t}){let r=t("collection").firstValue;null!=r&&e.set("highlightedValue",r)},clearFocused({context:e}){e.set("focused",!1)}}}});var tH=(0,ex.x)()(["collection","defaultHighlightedValue","defaultValue","dir","disabled","deselectable","disallowSelectAll","getRootNode","highlightedValue","id","ids","loopFocus","onHighlightChange","onSelect","onValueChange","orientation","scrollToIndexFn","selectionMode","selectOnHighlight","typeahead","value"]);(0,K.PM)(tH);var tW=(0,ex.x)()(["item","highlightOnHover"]);(0,K.PM)(tW);var t$=(0,ex.x)()(["id"]);(0,K.PM)(t$);var tq=(0,ex.x)()(["htmlFor"]);(0,K.PM)(tq);let tG=tL.extendWith("empty");var tK=r(19548),tY=r(53070),tX=r(76566),tQ=(0,G.y)("rating-group").parts("root","label","item","control");tQ.build();var tJ=e=>e.getById((e=>e.ids?.control??`rating:${e.id}:control`)(e)),tZ=e=>e.getById((e=>e.ids?.hiddenInput??`rating:${e.id}:input`)(e));(0,eb.Op)({props:({props:e})=>({name:"rating",count:5,dir:"ltr",defaultValue:-1,...e,translations:{ratingValueText:e=>`${e} stars`,...e.translations}}),initialState:()=>"idle",context:({prop:e,bindable:t})=>({value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),onChange(t){e("onValueChange")?.({value:t})}})),hoveredValue:t(()=>({defaultValue:-1,onChange(t){e("onHoverChange")?.({hoveredValue:t})}})),fieldsetDisabled:t(()=>({defaultValue:!1}))}),watch({track:e,action:t,prop:r,context:n}){e([()=>r("allowHalf")],()=>{t(["roundValueIfNeeded"])}),e([()=>n.get("value")],()=>{t(["dispatchChangeEvent"])})},computed:{isDisabled:({context:e,prop:t})=>!!t("disabled")||e.get("fieldsetDisabled"),isInteractive:({computed:e,prop:t})=>!(e("isDisabled")||t("readOnly")),isHovering:({context:e})=>e.get("hoveredValue")>-1},effects:["trackFormControlState"],on:{SET_VALUE:{actions:["setValue"]},CLEAR_VALUE:{actions:["clearValue"]}},states:{idle:{entry:["clearHoveredValue"],on:{GROUP_POINTER_OVER:{target:"hover"},FOCUS:{target:"focus"},CLICK:{actions:["setValue","focusActiveRadio"]}}},focus:{on:{POINTER_OVER:{actions:["setHoveredValue"]},GROUP_POINTER_LEAVE:{actions:["clearHoveredValue"]},BLUR:{target:"idle"},SPACE:{guard:"isValueEmpty",actions:["setValue"]},CLICK:{actions:["setValue","focusActiveRadio"]},ARROW_LEFT:{actions:["setPrevValue","focusActiveRadio"]},ARROW_RIGHT:{actions:["setNextValue","focusActiveRadio"]},HOME:{actions:["setValueToMin","focusActiveRadio"]},END:{actions:["setValueToMax","focusActiveRadio"]}}},hover:{on:{POINTER_OVER:{actions:["setHoveredValue"]},GROUP_POINTER_LEAVE:[{guard:"isRadioFocused",target:"focus",actions:["clearHoveredValue"]},{target:"idle",actions:["clearHoveredValue"]}],CLICK:{actions:["setValue","focusActiveRadio"]}}}},implementations:{guards:{isInteractive:({prop:e})=>!(e("disabled")||e("readOnly")),isHoveredValueEmpty:({context:e})=>-1===e.get("hoveredValue"),isValueEmpty:({context:e})=>0>=e.get("value"),isRadioFocused:({scope:e})=>!!tJ(e)?.contains(e.getActiveElement())},effects:{trackFormControlState:({context:e,scope:t})=>(0,eg.$S)(tZ(t),{onFieldsetDisabledChange(t){e.set("fieldsetDisabled",t)},onFormReset(){e.set("value",e.initial("value"))}})},actions:{clearHoveredValue({context:e}){e.set("hoveredValue",-1)},focusActiveRadio({scope:e,context:t}){(0,eg.er)(()=>((e,t)=>{let r=`[role=radio][aria-posinset='${Math.ceil(t)}']`;return(0,eg.P)(tJ(e),r)})(e,t.get("value"))?.focus())},setPrevValue({context:e,prop:t}){let r=t("allowHalf")?.5:1;e.set("value",Math.max(0,e.get("value")-r))},setNextValue({context:e,prop:t}){let r=t("allowHalf")?.5:1,n=-1===e.get("value")?0:e.get("value");e.set("value",Math.min(t("count"),n+r))},setValueToMin({context:e}){e.set("value",1)},setValueToMax({context:e,prop:t}){e.set("value",t("count"))},setValue({context:e,event:t}){let r=e.get("hoveredValue"),n=-1===r?t.value:r;e.set("value",n)},clearValue({context:e}){e.set("value",-1)},setHoveredValue({context:e,prop:t,event:r}){let n=t("allowHalf")&&r.isMidway;e.set("hoveredValue",r.index-.5*!!n)},roundValueIfNeeded({context:e,prop:t}){t("allowHalf")||e.set("value",Math.round(e.get("value")))},dispatchChangeEvent({context:e,scope:t}){var r=e.get("value");let n=tZ(t);n&&(0,eg.CF)(n,{value:r})}}}});var t0=(0,ex.x)()(["allowHalf","autoFocus","count","dir","disabled","form","getRootNode","id","ids","name","onHoverChange","onValueChange","required","readOnly","translations","value","defaultValue"]);(0,K.PM)(t0);var t1=(0,ex.x)()(["index"]);(0,K.PM)(t1);var t2=(0,G.y)("select").parts("label","positioner","trigger","indicator","clearTrigger","item","itemText","itemIndicator","itemGroup","itemGroupLabel","list","content","root","control","valueText");t2.build();var t5=e=>new J(e);t5.empty=()=>new J({items:[]});var t3=e=>e.getById((e=>e.ids?.hiddenSelect??`select:${e.id}:select`)(e)),t4=e=>e.getById((e=>e.ids?.content??`select:${e.id}:content`)(e)),t6=e=>e.getById((e=>e.ids?.trigger??`select:${e.id}:trigger`)(e)),t8=e=>e.getById((e=>e.ids?.positioner??`select:${e.id}:positioner`)(e)),t7=(e,t)=>null==t?null:e.getById(((e,t)=>e.ids?.item?.(t)??`select:${e.id}:option:${t}`)(e,t)),{and:t9,not:re,or:rt}=(0,eb.b6)();function rr(e){let t=e.restoreFocus??e.previousEvent?.restoreFocus;return null==t||!!t}(0,eb.Op)({props:({props:e})=>({loopFocus:!1,closeOnSelect:!e.multiple,composite:!0,defaultValue:[],...e,collection:e.collection??t5.empty(),positioning:{placement:"bottom-start",gutter:8,...e.positioning}}),context:({prop:e,bindable:t})=>({value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),isEqual:K.n4,onChange(t){let r=e("collection").findMany(t);return e("onValueChange")?.({value:t,items:r})}})),highlightedValue:t(()=>({defaultValue:e("defaultHighlightedValue")||null,value:e("highlightedValue"),onChange(t){e("onHighlightChange")?.({highlightedValue:t,highlightedItem:e("collection").find(t),highlightedIndex:e("collection").indexOf(t)})}})),currentPlacement:t(()=>({defaultValue:void 0})),fieldsetDisabled:t(()=>({defaultValue:!1})),highlightedItem:t(()=>({defaultValue:null})),selectedItems:t(()=>{let t=e("value")??e("defaultValue")??[];return{defaultValue:e("collection").findMany(t)}})}),refs:()=>({typeahead:{...eg.tt.defaultOptions}}),computed:{hasSelectedItems:({context:e})=>e.get("value").length>0,isTypingAhead:({refs:e})=>""!==e.get("typeahead").keysSoFar,isDisabled:({prop:e,context:t})=>!!e("disabled")||!!t.get("fieldsetDisabled"),isInteractive:({prop:e})=>!(e("disabled")||e("readOnly")),valueAsString:({context:e,prop:t})=>t("collection").stringifyItems(e.get("selectedItems"))},initialState:({prop:e})=>e("open")||e("defaultOpen")?"open":"idle",entry:["syncSelectElement"],watch({context:e,prop:t,track:r,action:n}){r([()=>e.get("value").toString()],()=>{n(["syncSelectedItems","syncSelectElement","dispatchChangeEvent"])}),r([()=>t("open")],()=>{n(["toggleVisibility"])}),r([()=>e.get("highlightedValue")],()=>{n(["syncHighlightedItem"])}),r([()=>t("collection").toString()],()=>{n(["syncCollection"])})},on:{"HIGHLIGHTED_VALUE.SET":{actions:["setHighlightedItem"]},"HIGHLIGHTED_VALUE.CLEAR":{actions:["clearHighlightedItem"]},"ITEM.SELECT":{actions:["selectItem"]},"ITEM.CLEAR":{actions:["clearItem"]},"VALUE.SET":{actions:["setSelectedItems"]},"VALUE.CLEAR":{actions:["clearSelectedItems"]},"CLEAR.CLICK":{actions:["clearSelectedItems","focusTriggerEl"]}},effects:["trackFormControlState"],states:{idle:{tags:["closed"],on:{"CONTROLLED.OPEN":[{guard:"isTriggerClickEvent",target:"open",actions:["setInitialFocus","highlightFirstSelectedItem"]},{target:"open",actions:["setInitialFocus"]}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen","setInitialFocus","highlightFirstSelectedItem"]}],"TRIGGER.FOCUS":{target:"focused"},OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["setInitialFocus","invokeOnOpen"]}]}},focused:{tags:["closed"],on:{"CONTROLLED.OPEN":[{guard:"isTriggerClickEvent",target:"open",actions:["setInitialFocus","highlightFirstSelectedItem"]},{guard:"isTriggerArrowUpEvent",target:"open",actions:["setInitialFocus","highlightComputedLastItem"]},{guard:rt("isTriggerArrowDownEvent","isTriggerEnterEvent"),target:"open",actions:["setInitialFocus","highlightComputedFirstItem"]},{target:"open",actions:["setInitialFocus"]}],OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["setInitialFocus","invokeOnOpen"]}],"TRIGGER.BLUR":{target:"idle"},"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["setInitialFocus","invokeOnOpen","highlightFirstSelectedItem"]}],"TRIGGER.ENTER":[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["setInitialFocus","invokeOnOpen","highlightComputedFirstItem"]}],"TRIGGER.ARROW_UP":[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["setInitialFocus","invokeOnOpen","highlightComputedLastItem"]}],"TRIGGER.ARROW_DOWN":[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["setInitialFocus","invokeOnOpen","highlightComputedFirstItem"]}],"TRIGGER.ARROW_LEFT":[{guard:t9(re("multiple"),"hasSelectedItems"),actions:["selectPreviousItem"]},{guard:re("multiple"),actions:["selectLastItem"]}],"TRIGGER.ARROW_RIGHT":[{guard:t9(re("multiple"),"hasSelectedItems"),actions:["selectNextItem"]},{guard:re("multiple"),actions:["selectFirstItem"]}],"TRIGGER.HOME":{guard:re("multiple"),actions:["selectFirstItem"]},"TRIGGER.END":{guard:re("multiple"),actions:["selectLastItem"]},"TRIGGER.TYPEAHEAD":{guard:re("multiple"),actions:["selectMatchingItem"]}}},open:{tags:["open"],exit:["scrollContentToTop"],effects:["trackDismissableElement","computePlacement","scrollToHighlightedItem"],on:{"CONTROLLED.CLOSE":[{guard:"restoreFocus",target:"focused",actions:["focusTriggerEl","clearHighlightedItem"]},{target:"idle",actions:["clearHighlightedItem"]}],CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{guard:"restoreFocus",target:"focused",actions:["invokeOnClose","focusTriggerEl","clearHighlightedItem"]},{target:"idle",actions:["invokeOnClose","clearHighlightedItem"]}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose","clearHighlightedItem"]}],"ITEM.CLICK":[{guard:t9("closeOnSelect","isOpenControlled"),actions:["selectHighlightedItem","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["selectHighlightedItem","invokeOnClose","focusTriggerEl","clearHighlightedItem"]},{actions:["selectHighlightedItem"]}],"CONTENT.HOME":{actions:["highlightFirstItem"]},"CONTENT.END":{actions:["highlightLastItem"]},"CONTENT.ARROW_DOWN":[{guard:t9("hasHighlightedItem","loop","isLastItemHighlighted"),actions:["highlightFirstItem"]},{guard:"hasHighlightedItem",actions:["highlightNextItem"]},{actions:["highlightFirstItem"]}],"CONTENT.ARROW_UP":[{guard:t9("hasHighlightedItem","loop","isFirstItemHighlighted"),actions:["highlightLastItem"]},{guard:"hasHighlightedItem",actions:["highlightPreviousItem"]},{actions:["highlightLastItem"]}],"CONTENT.TYPEAHEAD":{actions:["highlightMatchingItem"]},"ITEM.POINTER_MOVE":{actions:["highlightItem"]},"ITEM.POINTER_LEAVE":{actions:["clearHighlightedItem"]},"POSITIONING.SET":{actions:["reposition"]}}}},implementations:{guards:{loop:({prop:e})=>!!e("loopFocus"),multiple:({prop:e})=>!!e("multiple"),hasSelectedItems:({computed:e})=>!!e("hasSelectedItems"),hasHighlightedItem:({context:e})=>null!=e.get("highlightedValue"),isFirstItemHighlighted:({context:e,prop:t})=>e.get("highlightedValue")===t("collection").firstValue,isLastItemHighlighted:({context:e,prop:t})=>e.get("highlightedValue")===t("collection").lastValue,closeOnSelect:({prop:e,event:t})=>!!(t.closeOnSelect??e("closeOnSelect")),restoreFocus:({event:e})=>rr(e),isOpenControlled:({prop:e})=>void 0!==e("open"),isTriggerClickEvent:({event:e})=>e.previousEvent?.type==="TRIGGER.CLICK",isTriggerEnterEvent:({event:e})=>e.previousEvent?.type==="TRIGGER.ENTER",isTriggerArrowUpEvent:({event:e})=>e.previousEvent?.type==="TRIGGER.ARROW_UP",isTriggerArrowDownEvent:({event:e})=>e.previousEvent?.type==="TRIGGER.ARROW_DOWN"},effects:{trackFormControlState:({context:e,scope:t})=>(0,eg.$S)(t3(t),{onFieldsetDisabledChange(t){e.set("fieldsetDisabled",t)},onFormReset(){let t=e.initial("value");e.set("value",t)}}),trackDismissableElement({scope:e,send:t,prop:r}){let n=!0;return(0,ey.u)(()=>t4(e),{type:"listbox",defer:!0,exclude:[t6(e),e.getById(e.ids?.clearTrigger??`select:${e.id}:clear-trigger`)],onFocusOutside:r("onFocusOutside"),onPointerDownOutside:r("onPointerDownOutside"),onInteractOutside(e){r("onInteractOutside")?.(e),n=!(e.detail.focusable||e.detail.contextmenu)},onDismiss(){t({type:"CLOSE",src:"interact-outside",restoreFocus:n})}})},computePlacement({context:e,prop:t,scope:r}){let n=t("positioning");return e.set("currentPlacement",n.placement),(0,ev.Ox)(()=>t6(r),()=>t8(r),{defer:!0,...n,onComplete(t){e.set("currentPlacement",t.placement)}})},scrollToHighlightedItem({context:e,prop:t,scope:r,event:n}){let i=i=>{let o=e.get("highlightedValue");if(null==o||n.current().type.includes("POINTER"))return;let a=t4(r),s=t("scrollToIndexFn");if(s){let e=t("collection").indexOf(o);s?.({index:e,immediate:i,getElement:()=>t7(r,o)});return}let l=t7(r,o);(0,eg.Rt)(l,{rootEl:a,block:"nearest"})};return(0,eg.er)(()=>i(!0)),(0,eg.mx)(()=>t4(r),{defer:!0,attributes:["data-activedescendant"],callback(){i(!1)}})}},actions:{reposition({context:e,prop:t,scope:r,event:n}){(0,ev.Ox)(t6(r),()=>t8(r),{...t("positioning"),...n.options,defer:!0,listeners:!1,onComplete(t){e.set("currentPlacement",t.placement)}})},toggleVisibility({send:e,prop:t,event:r}){e({type:t("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:r})},highlightPreviousItem({context:e,prop:t}){let r=e.get("highlightedValue");if(null==r)return;let n=t("collection").getPreviousValue(r,1,t("loopFocus"));null!=n&&e.set("highlightedValue",n)},highlightNextItem({context:e,prop:t}){let r=e.get("highlightedValue");if(null==r)return;let n=t("collection").getNextValue(r,1,t("loopFocus"));null!=n&&e.set("highlightedValue",n)},highlightFirstItem({context:e,prop:t}){let r=t("collection").firstValue;e.set("highlightedValue",r)},highlightLastItem({context:e,prop:t}){let r=t("collection").lastValue;e.set("highlightedValue",r)},setInitialFocus({scope:e}){(0,eg.er)(()=>{let t=(0,eg.RD)({root:t4(e)});t?.focus({preventScroll:!0})})},focusTriggerEl({event:e,scope:t}){rr(e)&&(0,eg.er)(()=>{let e=t6(t);e?.focus({preventScroll:!0})})},selectHighlightedItem({context:e,prop:t,event:r}){let n=r.value??e.get("highlightedValue");null!=n&&t("collection").has(n)&&(t("onSelect")?.({value:n}),n=t("deselectable")&&!t("multiple")&&e.get("value").includes(n)?null:n,e.set("value",e=>null==n?[]:t("multiple")?(0,K.Xx)(e,n):[n]))},highlightComputedFirstItem({context:e,prop:t,computed:r}){let n=t("collection"),i=r("hasSelectedItems")?n.sort(e.get("value"))[0]:n.firstValue;e.set("highlightedValue",i)},highlightComputedLastItem({context:e,prop:t,computed:r}){let n=t("collection"),i=r("hasSelectedItems")?n.sort(e.get("value"))[0]:n.lastValue;e.set("highlightedValue",i)},highlightFirstSelectedItem({context:e,prop:t,computed:r}){if(!r("hasSelectedItems"))return;let n=t("collection").sort(e.get("value"))[0];e.set("highlightedValue",n)},highlightItem({context:e,event:t}){e.set("highlightedValue",t.value)},highlightMatchingItem({context:e,prop:t,event:r,refs:n}){let i=t("collection").search(r.key,{state:n.get("typeahead"),currentValue:e.get("highlightedValue")});null!=i&&e.set("highlightedValue",i)},setHighlightedItem({context:e,event:t}){e.set("highlightedValue",t.value)},clearHighlightedItem({context:e}){e.set("highlightedValue",null)},selectItem({context:e,prop:t,event:r}){t("onSelect")?.({value:r.value});let n=t("deselectable")&&!t("multiple")&&e.get("value").includes(r.value)?null:r.value;e.set("value",e=>null==n?[]:t("multiple")?(0,K.Xx)(e,n):[n])},clearItem({context:e,event:t}){e.set("value",e=>e.filter(e=>e!==t.value))},setSelectedItems({context:e,event:t}){e.set("value",t.value)},clearSelectedItems({context:e}){e.set("value",[])},selectPreviousItem({context:e,prop:t}){let[r]=e.get("value"),n=t("collection").getPreviousValue(r);n&&e.set("value",[n])},selectNextItem({context:e,prop:t}){let[r]=e.get("value"),n=t("collection").getNextValue(r);n&&e.set("value",[n])},selectFirstItem({context:e,prop:t}){let r=t("collection").firstValue;r&&e.set("value",[r])},selectLastItem({context:e,prop:t}){let r=t("collection").lastValue;r&&e.set("value",[r])},selectMatchingItem({context:e,prop:t,event:r,refs:n}){let i=t("collection").search(r.key,{state:n.get("typeahead"),currentValue:e.get("value")[0]});null!=i&&e.set("value",[i])},scrollContentToTop({prop:e,scope:t}){if(e("scrollToIndexFn")){let r=e("collection").firstValue;e("scrollToIndexFn")?.({index:0,immediate:!0,getElement:()=>t7(t,r)})}else t4(t)?.scrollTo(0,0)},invokeOnOpen({prop:e}){e("onOpenChange")?.({open:!0})},invokeOnClose({prop:e}){e("onOpenChange")?.({open:!1})},syncSelectElement({context:e,prop:t,scope:r}){let n=t3(r);if(n){if(0===e.get("value").length&&!t("multiple")){n.selectedIndex=-1;return}for(let t of n.options)t.selected=e.get("value").includes(t.value)}},syncCollection({context:e,prop:t}){let r=t("collection"),n=r.find(e.get("highlightedValue"));n&&e.set("highlightedItem",n);let i=r.findMany(e.get("value"));e.set("selectedItems",i)},syncSelectedItems({context:e,prop:t}){let r=t("collection"),n=e.get("selectedItems"),i=e.get("value").map(e=>n.find(t=>r.getItemValue(t)===e)||r.find(e));e.set("selectedItems",i)},syncHighlightedItem({context:e,prop:t}){let r=t("collection"),n=e.get("highlightedValue"),i=n?r.find(n):null;e.set("highlightedItem",i)},dispatchChangeEvent({scope:e}){queueMicrotask(()=>{let t=t3(e);if(!t)return;let r=new(e.getWin()).Event("change",{bubbles:!0,composed:!0});t.dispatchEvent(r)})}}}});var rn=(0,ex.x)()(["closeOnSelect","collection","composite","defaultHighlightedValue","defaultOpen","defaultValue","deselectable","dir","disabled","form","getRootNode","highlightedValue","id","ids","invalid","loopFocus","multiple","name","onFocusOutside","onHighlightChange","onInteractOutside","onOpenChange","onPointerDownOutside","onSelect","onValueChange","open","positioning","readOnly","required","scrollToIndexFn","value"]);(0,K.PM)(rn);var ri=(0,ex.x)()(["item","persistFocus"]);(0,K.PM)(ri);var ro=(0,ex.x)()(["id"]);(0,K.PM)(ro);var ra=(0,ex.x)()(["htmlFor"]);(0,K.PM)(ra);var rs=(0,G.y)("slider").parts("root","label","thumb","valueText","track","range","control","markerGroup","marker","draggingIndicator");rs.build();var rl=(e,t)=>e.getById(((e,t)=>e.ids?.hiddenInput?.(t)??`slider:${e.id}:input:${t}`)(e,t)),ru=e=>e.getById((e=>e.ids?.control??`slider:${e.id}:control`)(e)),rc=(e,t)=>{let{prop:r,scope:n}=e,i=ru(n);if(!i)return;let o=(0,eg.NH)(t,i).getPercentValue({orientation:r("orientation"),dir:r("dir"),inverted:{y:!0}});return(0,K.F4)(o,r("min"),r("max"),r("step"))};function rd(e,t){let{context:r,prop:n}=e,i=n("step")*n("minStepsBetweenThumbs");return(0,K.Yi)(r.get("value"),n("min"),n("max"),i)[t]}function rf(e,t,r){let{prop:n}=e,i=rd(e,r),o=(0,K.BU)(t,n("min"),n("max"),n("step"));return(0,K.L3)(o,i.min,i.max)}var rh=(e,t,r,n,i)=>(0,K.Yi)(e,t,r,i*n).map(e=>{let i=(0,K.BU)(e.value,e.min,e.max,n),o=(0,K.L3)(i,e.min,e.max);if(!(0,K.s)(o,t,r))throw Error("[zag-js/slider] The configured `min`, `max`, `step` or `minStepsBetweenThumbs` values are invalid");return o});(0,eb.Op)({props({props:e}){let t=e.min??0,r=e.max??100,n=e.step??1,i=e.defaultValue??[t],o=e.minStepsBetweenThumbs??0;return{dir:"ltr",thumbAlignment:"contain",origin:"start",orientation:"horizontal",minStepsBetweenThumbs:o,...e,defaultValue:rh(i,t,r,n,o),value:e.value?rh(e.value,t,r,n,o):void 0,max:r,step:n,min:t}},initialState:()=>"idle",context:({prop:e,bindable:t,getContext:r})=>({thumbSize:t(()=>({defaultValue:e("thumbSize")||null})),value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),isEqual:K.n4,hash:e=>e.join(","),onChange(t){e("onValueChange")?.({value:t})}})),focusedIndex:t(()=>({defaultValue:-1,onChange(t){let n=r();e("onFocusChange")?.({focusedIndex:t,value:n.get("value")})}})),fieldsetDisabled:t(()=>({defaultValue:!1}))}),computed:{isHorizontal:({prop:e})=>"horizontal"===e("orientation"),isVertical:({prop:e})=>"vertical"===e("orientation"),isRtl:({prop:e})=>"horizontal"===e("orientation")&&"rtl"===e("dir"),isDisabled:({context:e,prop:t})=>!!t("disabled")||e.get("fieldsetDisabled"),isInteractive:({prop:e,computed:t})=>!(e("readOnly")||t("isDisabled")),hasMeasuredThumbSize:({context:e})=>null!=e.get("thumbSize"),valuePercent:(0,eb.ph)(({context:e,prop:t})=>[e.get("value"),t("min"),t("max")],([e,t,r])=>e.map(e=>100*(0,K.vV)(e,t,r)))},watch({track:e,action:t,context:r}){e([()=>r.hash("value")],()=>{t(["syncInputElements","dispatchChangeEvent"])})},effects:["trackFormControlState","trackThumbSize"],on:{SET_VALUE:[{guard:"hasIndex",actions:["setValueAtIndex"]},{actions:["setValue"]}],INCREMENT:{actions:["incrementThumbAtIndex"]},DECREMENT:{actions:["decrementThumbAtIndex"]}},states:{idle:{on:{POINTER_DOWN:{target:"dragging",actions:["setClosestThumbIndex","setPointerValue","focusActiveThumb"]},FOCUS:{target:"focus",actions:["setFocusedIndex"]},THUMB_POINTER_DOWN:{target:"dragging",actions:["setFocusedIndex","focusActiveThumb"]}}},focus:{entry:["focusActiveThumb"],on:{POINTER_DOWN:{target:"dragging",actions:["setClosestThumbIndex","setPointerValue","focusActiveThumb"]},THUMB_POINTER_DOWN:{target:"dragging",actions:["setFocusedIndex","focusActiveThumb"]},ARROW_DEC:{actions:["decrementThumbAtIndex","invokeOnChangeEnd"]},ARROW_INC:{actions:["incrementThumbAtIndex","invokeOnChangeEnd"]},HOME:{actions:["setFocusedThumbToMin","invokeOnChangeEnd"]},END:{actions:["setFocusedThumbToMax","invokeOnChangeEnd"]},BLUR:{target:"idle",actions:["clearFocusedIndex"]}}},dragging:{entry:["focusActiveThumb"],effects:["trackPointerMove"],on:{POINTER_UP:{target:"focus",actions:["invokeOnChangeEnd"]},POINTER_MOVE:{actions:["setPointerValue"]}}}},implementations:{guards:{hasIndex:({event:e})=>null!=e.index},effects:{trackFormControlState:({context:e,scope:t})=>(0,eg.$S)((e=>e.getById((e=>e.ids?.root??`slider:${e.id}`)(e)))(t),{onFieldsetDisabledChange(t){e.set("fieldsetDisabled",t)},onFormReset(){e.set("value",e.initial("value"))}}),trackPointerMove:({scope:e,send:t})=>(0,eg.Al)(e.getDoc(),{onPointerMove(e){t({type:"POINTER_MOVE",point:e.point})},onPointerUp(){t({type:"POINTER_UP"})}}),trackThumbSize({context:e,scope:t,prop:r}){if(!("contain"!==r("thumbAlignment")||r("thumbSize")))return(0,eg.Gj)((0,eg.YG)(ru(t),"[role=slider]"),{box:"border-box",measure:e=>({left:e?.offsetLeft??0,top:e?.offsetTop??0,width:e?.offsetWidth??0,height:e?.offsetHeight??0}),onEntry({rects:t}){let r;if(0===t.length)return;let n=(0,K.Up)(t[0],["width","height"]);r=e.get("thumbSize"),(r?.width!==n?.width||r?.height!==n?.height)&&e.set("thumbSize",n)}})}},actions:{dispatchChangeEvent({context:e,scope:t}){e.get("value").forEach((e,r)=>{let n=rl(t,r);n&&(0,eg.CF)(n,{value:e})})},syncInputElements({context:e,scope:t}){e.get("value").forEach((e,r)=>{let n=rl(t,r);(0,eg.U4)(n,e.toString())})},invokeOnChangeEnd({prop:e,context:t}){queueMicrotask(()=>{e("onValueChangeEnd")?.({value:t.get("value")})})},setClosestThumbIndex(e){let{context:t,event:r}=e,n=rc(e,r.point);if(null==n)return;let i=function(e,t){let{context:r}=e;return(0,K.T1)(r.get("value"),t)}(e,n);t.set("focusedIndex",i)},setFocusedIndex({context:e,event:t}){e.set("focusedIndex",t.index)},clearFocusedIndex({context:e}){e.set("focusedIndex",-1)},setPointerValue(e){queueMicrotask(()=>{let{context:t,event:r}=e,n=rc(e,r.point);if(null==n)return;let i=t.get("focusedIndex"),o=rf(e,n,i);t.set("value",e=>(0,K.JT)(e,i,o))})},focusActiveThumb({scope:e,context:t}){(0,eg.er)(()=>{let r,n=(r=t.get("focusedIndex"),e.getById(e.ids?.thumb?.(r)??`slider:${e.id}:thumb:${r}`));n?.focus({preventScroll:!0})})},decrementThumbAtIndex(e){let{context:t,event:r}=e,n=function(e,t,r){let{context:n,prop:i}=e,o=t??n.get("focusedIndex"),a=rd(e,o),s=(0,K.kn)(o,{...a,step:r??i("step"),values:n.get("value")});return s[o]=(0,K.L3)(s[o],a.min,a.max),s}(e,r.index,r.step);t.set("value",n)},incrementThumbAtIndex(e){let{context:t,event:r}=e,n=function(e,t,r){let{context:n,prop:i}=e,o=t??n.get("focusedIndex"),a=rd(e,o),s=(0,K.jv)(o,{...a,step:r??i("step"),values:n.get("value")});return s[o]=(0,K.L3)(s[o],a.min,a.max),s}(e,r.index,r.step);t.set("value",n)},setFocusedThumbToMin(e){let{context:t}=e,r=t.get("focusedIndex"),{min:n}=rd(e,r);t.set("value",e=>(0,K.JT)(e,r,n))},setFocusedThumbToMax(e){let{context:t}=e,r=t.get("focusedIndex"),{max:n}=rd(e,r);t.set("value",e=>(0,K.JT)(e,r,n))},setValueAtIndex(e){let{context:t,event:r}=e,n=rf(e,r.value,r.index);t.set("value",e=>(0,K.JT)(e,r.index,n))},setValue(e){let{context:t,event:r}=e,n=r.value.map((t,r)=>rf(e,t,r));t.set("value",n)}}}});var rp=(0,ex.x)()(["aria-label","aria-labelledby","dir","disabled","form","getAriaValueText","getRootNode","id","ids","invalid","max","min","minStepsBetweenThumbs","name","onFocusChange","onValueChange","onValueChangeEnd","orientation","origin","readOnly","step","thumbAlignment","thumbAlignment","thumbSize","value","defaultValue"]);(0,K.PM)(rp);var rg=(0,ex.x)()(["index","name"]);(0,K.PM)(rg);var rv=r(35462);let rm=eU.extendWith("itemBody"),rb=(0,G.y)("action-bar").parts("positioner","content","separator","selectionTrigger","closeTrigger"),ry=(0,G.y)("alert").parts("title","description","root","indicator","content"),rx=(0,G.y)("breadcrumb").parts("link","currentLink","item","list","root","ellipsis","separator"),rw=(0,G.y)("blockquote").parts("root","icon","content","caption"),rS=(0,G.y)("card").parts("root","header","body","footer","title","description"),rE=(0,G.y)("checkbox-card",["root","control","label","description","addon","indicator","content"]),rk=(0,G.y)("data-list").parts("root","item","itemLabel","itemValue"),rC=ty.MI.extendWith("header","body","footer","backdrop"),rO=ty.MI.extendWith("header","body","footer","backdrop"),rI=tw.extendWith("textarea"),r_=(0,G.y)("empty-state",["root","content","indicator","title","description"]),rT=tk.K.extendWith("requiredIndicator"),rP=tC.extendWith("content"),rR=tT.extendWith("itemContent","dropzoneContent","fileText"),rA=(0,G.y)("list").parts("root","item","indicator"),rN=tK.MI.extendWith("itemCommand"),rM=(0,G.y)("select").parts("root","field","indicator"),rL=tY.MI.extendWith("header","body","footer"),rV=tX.MI.extendWith("itemAddon","itemIndicator"),rD=rV.extendWith("itemContent","itemDescription"),rF=tQ.extendWith("itemIndicator"),rj=t2.extendWith("indicatorGroup"),rz=eB.extendWith("indicatorGroup","empty"),rB=rs.extendWith("markerIndicator"),rU=(0,G.y)("stat").parts("root","label","helpText","valueText","valueUnit","indicator"),rH=(0,G.y)("status").parts("root","indicator"),rW=(0,G.y)("steps",["root","list","item","trigger","indicator","separator","content","title","description","nextTrigger","prevTrigger","progress"]),r$=rv.MI.extendWith("indicator"),rq=(0,G.y)("table").parts("root","header","body","row","columnHeader","cell","footer","caption"),rG=(0,G.y)("toast").parts("root","title","description","indicator","closeTrigger","actionTrigger"),rK=(0,G.y)("tabs").parts("root","trigger","list","content","contentGroup","indicator"),rY=(0,G.y)("tag").parts("root","label","closeTrigger","startElement","endElement"),rX=(0,G.y)("timeline").parts("root","item","content","separator","indicator","connector","title","description"),rQ=tb.extendWith("channelText"),rJ=(0,G.y)("code-block",["root","content","title","header","footer","control","overlay","code","codeText","copyTrigger","copyIndicator","collapseTrigger","collapseIndicator","collapseText"]);eX.extendWith("valueText");let rZ=(0,i.i_)({className:"chakra-accordion",slots:rm.keys(),base:{root:{width:"full","--accordion-radius":"radii.l2"},item:{overflowAnchor:"none"},itemTrigger:{display:"flex",alignItems:"center",textAlign:"start",width:"full",outline:"0",gap:"3",fontWeight:"medium",borderRadius:"var(--accordion-radius)",_focusVisible:{outline:"2px solid",outlineColor:"colorPalette.focusRing"},_disabled:{layerStyle:"disabled"}},itemBody:{pt:"var(--accordion-padding-y)",pb:"calc(var(--accordion-padding-y) * 2)"},itemContent:{overflow:"hidden",borderRadius:"var(--accordion-radius)",_open:{animationName:"expand-height, fade-in",animationDuration:"moderate"},_closed:{animationName:"collapse-height, fade-out",animationDuration:"moderate"}},itemIndicator:{transition:"rotate 0.2s",transformOrigin:"center",color:"fg.subtle",_open:{rotate:"180deg"},_icon:{width:"1.2em",height:"1.2em"}}},variants:{variant:{outline:{item:{borderBottomWidth:"1px"}},subtle:{itemTrigger:{px:"var(--accordion-padding-x)"},itemContent:{px:"var(--accordion-padding-x)"},item:{borderRadius:"var(--accordion-radius)",_open:{bg:"colorPalette.subtle"}}},enclosed:{root:{borderWidth:"1px",borderRadius:"var(--accordion-radius)",divideY:"1px",overflow:"hidden"},itemTrigger:{px:"var(--accordion-padding-x)"},itemContent:{px:"var(--accordion-padding-x)"},item:{_open:{bg:"bg.subtle"}}},plain:{}},size:{sm:{root:{"--accordion-padding-x":"spacing.3","--accordion-padding-y":"spacing.2"},itemTrigger:{textStyle:"sm",py:"var(--accordion-padding-y)"}},md:{root:{"--accordion-padding-x":"spacing.4","--accordion-padding-y":"spacing.2"},itemTrigger:{textStyle:"md",py:"var(--accordion-padding-y)"}},lg:{root:{"--accordion-padding-x":"spacing.4.5","--accordion-padding-y":"spacing.2.5"},itemTrigger:{textStyle:"lg",py:"var(--accordion-padding-y)"}}}},defaultVariants:{size:"md",variant:"outline"}}),r0=(0,i.i_)({className:"chakra-action-bar",slots:rb.keys(),base:{positioner:{position:"fixed",display:"flex",justifyContent:"center",pointerEvents:"none",insetInline:"0",top:"unset",bottom:"calc(env(safe-area-inset-bottom) + 20px)"},content:{bg:"bg.panel",shadow:"md",display:"flex",alignItems:"center",gap:"3",borderRadius:"l3",py:"2.5",px:"3",pointerEvents:"auto",translate:"calc(-1 * var(--scrollbar-width) / 2) 0px",_open:{animationName:"slide-from-bottom, fade-in",animationDuration:"moderate"},_closed:{animationName:"slide-to-bottom, fade-out",animationDuration:"faster"}},separator:{width:"1px",height:"5",bg:"border"},selectionTrigger:{display:"inline-flex",alignItems:"center",gap:"2",alignSelf:"stretch",textStyle:"sm",px:"4",py:"1",borderRadius:"l2",borderWidth:"1px",borderStyle:"dashed"}}}),r1=(0,i.i_)({slots:ry.keys(),className:"chakra-alert",base:{root:{width:"full",display:"flex",alignItems:"flex-start",position:"relative",borderRadius:"l3"},title:{fontWeight:"medium"},description:{display:"inline"},indicator:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:"0",width:"1em",height:"1em",_icon:{boxSize:"full"}},content:{display:"flex",flex:"1",gap:"1"}},variants:{status:{info:{root:{colorPalette:"blue"}},warning:{root:{colorPalette:"orange"}},success:{root:{colorPalette:"green"}},error:{root:{colorPalette:"red"}},neutral:{root:{colorPalette:"gray"}}},inline:{true:{content:{display:"inline-flex",flexDirection:"row",alignItems:"center"}},false:{content:{display:"flex",flexDirection:"column"}}},variant:{subtle:{root:{bg:"colorPalette.subtle",color:"colorPalette.fg"}},surface:{root:{bg:"colorPalette.subtle",color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},indicator:{color:"colorPalette.fg"}},outline:{root:{color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},indicator:{color:"colorPalette.fg"}},solid:{root:{bg:"colorPalette.solid",color:"colorPalette.contrast"},indicator:{color:"colorPalette.contrast"}}},size:{sm:{root:{gap:"2",px:"3",py:"3",textStyle:"xs"},indicator:{textStyle:"lg"}},md:{root:{gap:"3",px:"4",py:"4",textStyle:"sm"},indicator:{textStyle:"xl"}},lg:{root:{gap:"3",px:"4",py:"4",textStyle:"md"},indicator:{textStyle:"2xl"}}}},defaultVariants:{status:"info",variant:"subtle",size:"md",inline:!1}});var r2=r(49972);let r5=(0,i.i_)({slots:r2.MI.keys(),className:"chakra-avatar",base:{root:{display:"inline-flex",alignItems:"center",justifyContent:"center",fontWeight:"medium",position:"relative",verticalAlign:"top",flexShrink:"0",userSelect:"none",width:"var(--avatar-size)",height:"var(--avatar-size)",fontSize:"var(--avatar-font-size)",borderRadius:"var(--avatar-radius)","&[data-group-item]":{borderWidth:"2px",borderColor:"bg"}},image:{width:"100%",height:"100%",objectFit:"cover",borderRadius:"var(--avatar-radius)"},fallback:{lineHeight:"1",textTransform:"uppercase",fontWeight:"medium",fontSize:"var(--avatar-font-size)",borderRadius:"var(--avatar-radius)"}},variants:{size:{full:{root:{"--avatar-size":"100%","--avatar-font-size":"100%"}},"2xs":{root:{"--avatar-font-size":"fontSizes.2xs","--avatar-size":"sizes.6"}},xs:{root:{"--avatar-font-size":"fontSizes.xs","--avatar-size":"sizes.8"}},sm:{root:{"--avatar-font-size":"fontSizes.sm","--avatar-size":"sizes.9"}},md:{root:{"--avatar-font-size":"fontSizes.md","--avatar-size":"sizes.10"}},lg:{root:{"--avatar-font-size":"fontSizes.md","--avatar-size":"sizes.11"}},xl:{root:{"--avatar-font-size":"fontSizes.lg","--avatar-size":"sizes.12"}},"2xl":{root:{"--avatar-font-size":"fontSizes.xl","--avatar-size":"sizes.16"}}},variant:{solid:{root:{bg:"colorPalette.solid",color:"colorPalette.contrast"}},subtle:{root:{bg:"colorPalette.muted",color:"colorPalette.fg"}},outline:{root:{color:"colorPalette.fg",borderWidth:"1px",borderColor:"colorPalette.muted"}}},shape:{square:{},rounded:{root:{"--avatar-radius":"radii.l3"}},full:{root:{"--avatar-radius":"radii.full"}}},borderless:{true:{root:{"&[data-group-item]":{borderWidth:"0px"}}}}},defaultVariants:{size:"md",shape:"full",variant:"subtle"}}),r3=(0,i.i_)({className:"chakra-blockquote",slots:rw.keys(),base:{root:{position:"relative",display:"flex",flexDirection:"column",gap:"2"},caption:{textStyle:"sm",color:"fg.muted"},icon:{boxSize:"5"}},variants:{justify:{start:{root:{alignItems:"flex-start",textAlign:"start"}},center:{root:{alignItems:"center",textAlign:"center"}},end:{root:{alignItems:"flex-end",textAlign:"end"}}},variant:{subtle:{root:{paddingX:"5",borderStartWidth:"4px",borderStartColor:"colorPalette.muted"},icon:{color:"colorPalette.fg"}},solid:{root:{paddingX:"5",borderStartWidth:"4px",borderStartColor:"colorPalette.solid"},icon:{color:"colorPalette.solid"}},plain:{root:{paddingX:"5"},icon:{color:"colorPalette.solid"}}}},defaultVariants:{variant:"subtle",justify:"start"}}),r4=(0,i.i_)({className:"chakra-breadcrumb",slots:rx.keys(),base:{list:{display:"flex",alignItems:"center",wordBreak:"break-word",color:"fg.muted",listStyle:"none"},link:{outline:"0",textDecoration:"none",borderRadius:"l1",focusRing:"outside",display:"inline-flex",alignItems:"center",gap:"2"},item:{display:"inline-flex",alignItems:"center"},separator:{color:"fg.muted",opacity:"0.8",_icon:{boxSize:"1em"},_rtl:{rotate:"180deg"}},ellipsis:{display:"inline-flex",alignItems:"center",justifyContent:"center",_icon:{boxSize:"1em"}}},variants:{variant:{underline:{link:{color:"colorPalette.fg",textDecoration:"underline",textUnderlineOffset:"0.2em",textDecorationColor:"colorPalette.muted"},currentLink:{color:"colorPalette.fg"}},plain:{link:{color:"fg.muted",_hover:{color:"fg"}},currentLink:{color:"fg"}}},size:{sm:{list:{gap:"1",textStyle:"xs"}},md:{list:{gap:"1.5",textStyle:"sm"}},lg:{list:{gap:"2",textStyle:"md"}}}},defaultVariants:{variant:"plain",size:"md"}}),r6=(0,i.i_)({className:"chakra-card",slots:rS.keys(),base:{root:{display:"flex",flexDirection:"column",position:"relative",minWidth:"0",wordWrap:"break-word",borderRadius:"l3",color:"fg",textAlign:"start"},title:{fontWeight:"semibold"},description:{color:"fg.muted",fontSize:"sm"},header:{paddingInline:"var(--card-padding)",paddingTop:"var(--card-padding)",display:"flex",flexDirection:"column",gap:"1.5"},body:{padding:"var(--card-padding)",flex:"1",display:"flex",flexDirection:"column"},footer:{display:"flex",alignItems:"center",gap:"2",paddingInline:"var(--card-padding)",paddingBottom:"var(--card-padding)"}},variants:{size:{sm:{root:{"--card-padding":"spacing.4"},title:{textStyle:"md"}},md:{root:{"--card-padding":"spacing.6"},title:{textStyle:"lg"}},lg:{root:{"--card-padding":"spacing.7"},title:{textStyle:"xl"}}},variant:{elevated:{root:{bg:"bg.panel",boxShadow:"md"}},outline:{root:{bg:"bg.panel",borderWidth:"1px",borderColor:"border"}},subtle:{root:{bg:"bg.muted"}}}},defaultVariants:{variant:"outline",size:"md"}});var r8=r(27448);let r7=(0,i.i_)({slots:r8.f.keys(),className:"chakra-checkbox",base:{root:{display:"inline-flex",gap:"2",alignItems:"center",verticalAlign:"top",position:"relative"},control:C.base,label:{fontWeight:"medium",userSelect:"none",_disabled:{opacity:"0.5"}}},variants:{size:{xs:{root:{gap:"1.5"},label:{textStyle:"xs"},control:C.variants?.size?.xs},sm:{root:{gap:"2"},label:{textStyle:"sm"},control:C.variants?.size?.sm},md:{root:{gap:"2.5"},label:{textStyle:"sm"},control:C.variants?.size?.md},lg:{root:{gap:"3"},label:{textStyle:"md"},control:C.variants?.size?.lg}},variant:{outline:{control:C.variants?.variant?.outline},solid:{control:C.variants?.variant?.solid},subtle:{control:C.variants?.variant?.subtle}}},defaultVariants:{variant:"solid",size:"md"}}),r9=(0,i.i_)({slots:rE.keys(),className:"chakra-checkbox-card",base:{root:{display:"flex",flexDirection:"column",userSelect:"none",position:"relative",borderRadius:"l2",flex:"1",focusVisibleRing:"outside",_disabled:{opacity:"0.8"},_invalid:{outline:"2px solid",outlineColor:"border.error"}},control:{display:"inline-flex",flex:"1",position:"relative",borderRadius:"inherit",justifyContent:"var(--checkbox-card-justify)",alignItems:"var(--checkbox-card-align)"},label:{fontWeight:"medium",display:"flex",alignItems:"center",gap:"2",flex:"1",_disabled:{opacity:"0.5"}},description:{opacity:"0.64",textStyle:"sm",_disabled:{opacity:"0.5"}},addon:{_disabled:{opacity:"0.5"}},indicator:C.base,content:{display:"flex",flexDirection:"column",flex:"1",gap:"1",justifyContent:"var(--checkbox-card-justify)",alignItems:"var(--checkbox-card-align)"}},variants:{size:{sm:{root:{textStyle:"sm"},control:{padding:"3",gap:"1.5"},addon:{px:"3",py:"1.5",borderTopWidth:"1px"},indicator:C.variants?.size.sm},md:{root:{textStyle:"sm"},control:{padding:"4",gap:"2.5"},addon:{px:"4",py:"2",borderTopWidth:"1px"},indicator:C.variants?.size.md},lg:{root:{textStyle:"md"},control:{padding:"4",gap:"3.5"},addon:{px:"4",py:"2",borderTopWidth:"1px"},indicator:C.variants?.size.lg}},variant:{surface:{root:{borderWidth:"1px",borderColor:"border",_checked:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderColor:"colorPalette.muted"},_disabled:{bg:"bg.muted"}},indicator:C.variants?.variant.solid},subtle:{root:{bg:"bg.muted"},control:{_checked:{bg:"colorPalette.muted",color:"colorPalette.fg"}},indicator:C.variants?.variant.plain},outline:{root:{borderWidth:"1px",borderColor:"border",_checked:{boxShadow:"0 0 0 1px var(--shadow-color)",boxShadowColor:"colorPalette.solid",borderColor:"colorPalette.solid"}},indicator:C.variants?.variant.solid},solid:{root:{borderWidth:"1px",_checked:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},indicator:C.variants?.variant.inverted}},justify:{start:{root:{"--checkbox-card-justify":"flex-start"}},end:{root:{"--checkbox-card-justify":"flex-end"}},center:{root:{"--checkbox-card-justify":"center"}}},align:{start:{root:{"--checkbox-card-align":"flex-start"},content:{textAlign:"start"}},end:{root:{"--checkbox-card-align":"flex-end"},content:{textAlign:"end"}},center:{root:{"--checkbox-card-align":"center"},content:{textAlign:"center"}}},orientation:{vertical:{control:{flexDirection:"column"}},horizontal:{control:{flexDirection:"row"}}}},defaultVariants:{size:"md",variant:"outline",align:"start",orientation:"horizontal"}}),ne=(0,i.i_)({slots:rJ.keys(),className:"code-block",base:{root:{colorPalette:"gray",rounded:"var(--code-block-radius)",overflow:"hidden",bg:"bg",color:"fg",borderWidth:"1px","--code-block-max-height":"320px","--code-block-bg":"colors.bg","--code-block-fg":"colors.fg","--code-block-obscured-opacity":"0.5","--code-block-obscured-blur":"1px","--code-block-line-number-width":"sizes.3","--code-block-line-number-margin":"spacing.4","--code-block-highlight-bg":"{colors.teal.focusRing/20}","--code-block-highlight-border":"colors.teal.focusRing","--code-block-highlight-added-bg":"{colors.green.focusRing/20}","--code-block-highlight-added-border":"colors.green.focusRing","--code-block-highlight-removed-bg":"{colors.red.focusRing/20}","--code-block-highlight-removed-border":"colors.red.focusRing"},header:{display:"flex",alignItems:"center",gap:"2",position:"relative",px:"var(--code-block-padding)",minH:"var(--code-block-header-height)",mb:"calc(var(--code-block-padding) / 2 * -1)"},title:{display:"inline-flex",alignItems:"center",gap:"1.5",flex:"1",color:"fg.muted"},control:{gap:"1.5",display:"inline-flex",alignItems:"center"},footer:{display:"flex",alignItems:"center",justifyContent:"center",gap:"2",px:"var(--code-block-padding)",minH:"var(--code-block-header-height)"},content:{position:"relative",colorScheme:"dark",overflowX:"auto",overflowY:"hidden",borderBottomRadius:"var(--code-block-radius)",maxHeight:"var(--code-block-max-height)","& ::selection":{bg:"blue.500/40"},_expanded:{maxHeight:"unset"}},overlay:{"--bg":"{colors.black/50}",display:"flex",alignItems:"flex-end",justifyContent:"center",padding:"4",bgImage:"linear-gradient(0deg,var(--bg) 25%,transparent 100%)",color:"white",minH:"5rem",pos:"absolute",bottom:"0",insetInline:"0",zIndex:"1",fontWeight:"medium",_expanded:{display:"none"}},code:{fontFamily:"mono",lineHeight:"tall",whiteSpace:"pre",counterReset:"line 0"},codeText:{px:"var(--code-block-padding)",py:"var(--code-block-padding)",position:"relative",display:"block",width:"100%","&[data-has-focused]":{"& [data-line]:not([data-focused])":{transitionProperty:"opacity, filter",transitionDuration:"moderate",transitionTimingFunction:"ease-in-out",opacity:"var(--code-block-obscured-opacity)",filter:"blur(var(--code-block-obscured-blur))"},"&:hover":{"--code-block-obscured-opacity":"1","--code-block-obscured-blur":"0px"}},"&[data-has-line-numbers][data-plaintext]":{paddingInlineStart:"calc(var(--code-block-line-number-width) + var(--code-block-line-number-margin) + var(--code-block-padding))"},"& [data-line]":{position:"relative","--highlight-bg":"var(--code-block-highlight-bg)","--highlight-border":"var(--code-block-highlight-border)","&[data-highlight], &[data-diff]":{display:"inline-block",width:"full","&:after":{content:"''",display:"block",position:"absolute",top:"0",insetStart:"calc(var(--code-block-padding) * -1)",insetEnd:"0px",width:"calc(100% + var(--code-block-padding) * 2)",height:"100%",bg:"var(--highlight-bg)",borderStartWidth:"2px",borderStartColor:"var(--highlight-border)"}},"&[data-diff='added']":{"--highlight-bg":"var(--code-block-highlight-added-bg)","--highlight-border":"var(--code-block-highlight-added-border)"},"&[data-diff='removed']":{"--highlight-bg":"var(--code-block-highlight-removed-bg)","--highlight-border":"var(--code-block-highlight-removed-border)"}},"&[data-word-wrap]":{"&[data-plaintext], & [data-line]":{whiteSpace:"pre-wrap",wordBreak:"break-all"}},"&[data-has-line-numbers]":{"--content":"counter(line)","& [data-line]:before":{content:"var(--content)",counterIncrement:"line",width:"var(--code-block-line-number-width)",marginRight:"var(--code-block-line-number-margin)",display:"inline-block",textAlign:"end",userSelect:"none",whiteSpace:"nowrap",opacity:.4},"& [data-diff='added']:before":{content:"'+'"},"& [data-diff='removed']:before":{content:"'-'"}}}},variants:{size:{sm:{root:{"--code-block-padding":"spacing.4","--code-block-radius":"radii.md","--code-block-header-height":"sizes.8"},title:{textStyle:"xs"},code:{fontSize:"xs"}},md:{root:{"--code-block-padding":"spacing.4","--code-block-radius":"radii.lg","--code-block-header-height":"sizes.10"},title:{textStyle:"xs"},code:{fontSize:"sm"}},lg:{root:{"--code-block-padding":"spacing.5","--code-block-radius":"radii.xl","--code-block-header-height":"sizes.12"},title:{textStyle:"sm"},code:{fontSize:"sm"}}}},defaultVariants:{size:"md"}});var nt=(0,G.y)("collapsible").parts("root","trigger","content","indicator");nt.build();var nr=e=>e.getById((e=>e.ids?.content??`collapsible:${e.id}:content`)(e));(0,eb.Op)({initialState:({prop:e})=>e("open")||e("defaultOpen")?"open":"closed",context:({bindable:e})=>({size:e(()=>({defaultValue:{height:0,width:0},sync:!0})),initial:e(()=>({defaultValue:!1}))}),refs:()=>({cleanup:void 0,stylesRef:void 0}),watch({track:e,prop:t,action:r}){e([()=>t("open")],()=>{r(["setInitial","computeSize","toggleVisibility"])})},exit:["clearInitial","cleanupNode"],states:{closed:{on:{"controlled.open":{target:"open"},open:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["setInitial","computeSize","invokeOnOpen"]}]}},closing:{effects:["trackExitAnimation"],on:{"controlled.close":{target:"closed"},"controlled.open":{target:"open"},open:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["setInitial","invokeOnOpen"]}],close:[{guard:"isOpenControlled",actions:["invokeOnExitComplete"]},{target:"closed",actions:["setInitial","computeSize","invokeOnExitComplete"]}],"animation.end":{target:"closed",actions:["invokeOnExitComplete","clearInitial"]}}},open:{effects:["trackEnterAnimation"],on:{"controlled.close":{target:"closing"},close:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closing",actions:["setInitial","computeSize","invokeOnClose"]}],"size.measure":{actions:["measureSize"]},"animation.end":{actions:["clearInitial"]}}}},implementations:{guards:{isOpenControlled:({prop:e})=>void 0!=e("open")},effects:{trackEnterAnimation:({send:e,scope:t})=>{let r,n=(0,eg.er)(()=>{let n=nr(t);if(!n)return;let i=(0,eg.L9)(n).animationName;if(!i||"none"===i)return void e({type:"animation.end"});let o=t=>{(0,eg.wt)(t)===n&&e({type:"animation.end"})};n.addEventListener("animationend",o),r=()=>{n.removeEventListener("animationend",o)}});return()=>{n(),r?.()}},trackExitAnimation:({send:e,scope:t})=>{let r,n=(0,eg.er)(()=>{let n=nr(t);if(!n)return;let i=(0,eg.L9)(n).animationName;if(!i||"none"===i)return void e({type:"animation.end"});let o=t=>{(0,eg.wt)(t)===n&&e({type:"animation.end"})};n.addEventListener("animationend",o);let a=(0,eg.eC)(n,{animationFillMode:"forwards"});r=()=>{n.removeEventListener("animationend",o),(0,eg.dY)(()=>a())}});return()=>{n(),r?.()}}},actions:{setInitial:({context:e,flush:t})=>{t(()=>{e.set("initial",!0)})},clearInitial:({context:e})=>{e.set("initial",!1)},cleanupNode:({refs:e})=>{e.set("stylesRef",null)},measureSize:({context:e,scope:t})=>{let r=nr(t);if(!r)return;let{height:n,width:i}=r.getBoundingClientRect();e.set("size",{height:n,width:i})},computeSize:({refs:e,scope:t,context:r})=>{e.get("cleanup")?.();let n=(0,eg.er)(()=>{let e=nr(t);if(!e)return;let n=e.hidden;e.style.animationName="none",e.style.animationDuration="0s",e.hidden=!1;let i=e.getBoundingClientRect();r.set("size",{height:i.height,width:i.width}),r.get("initial")&&(e.style.animationName="",e.style.animationDuration=""),e.hidden=n});e.set("cleanup",n)},invokeOnOpen:({prop:e})=>{e("onOpenChange")?.({open:!0})},invokeOnClose:({prop:e})=>{e("onOpenChange")?.({open:!1})},invokeOnExitComplete:({prop:e})=>{e("onExitComplete")?.()},toggleVisibility:({prop:e,send:t})=>{t({type:e("open")?"controlled.open":"controlled.close"})}}}});var nn=(0,ex.x)()(["dir","disabled","getRootNode","id","ids","onExitComplete","onOpenChange","defaultOpen","open"]);(0,K.PM)(nn);let ni=(0,i.i_)({slots:nt.keys(),className:"chakra-collapsible",base:{content:{overflow:"hidden",_open:{animationName:"expand-height, fade-in",animationDuration:"moderate"},_closed:{animationName:"collapse-height, fade-out",animationDuration:"moderate"}}}}),no=(0,i.i_)({className:"colorPicker",slots:rQ.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5"},label:{color:"fg",fontWeight:"medium",textStyle:"sm",_disabled:{opacity:"0.5"}},valueText:{textAlign:"start"},control:{display:"flex",alignItems:"center",flexDirection:"row",gap:"2",position:"relative"},swatchTrigger:{display:"flex",alignItems:"center",justifyContent:"center"},trigger:{display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"row",flexShrink:"0",gap:"2",textStyle:"sm",minH:"var(--input-height)",minW:"var(--input-height)",px:"1",rounded:"l2",_disabled:{opacity:"0.5"},"--focus-color":"colors.colorPalette.focusRing","&:focus-visible":{borderColor:"var(--focus-color)",outline:"1px solid var(--focus-color)"},"&[data-fit-content]":{"--input-height":"unset",px:"0",border:"0"}},content:{display:"flex",flexDirection:"column",bg:"bg.panel",borderRadius:"l3",boxShadow:"lg",width:"64",p:"4",gap:"3",zIndex:"dropdown",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"faster"}},area:{height:"180px",borderRadius:"l2",overflow:"hidden"},areaThumb:{borderRadius:"full",height:"var(--thumb-size)",width:"var(--thumb-size)",borderWidth:"2px",borderColor:"white",shadow:"sm",focusVisibleRing:"mixed",focusRingColor:"white"},areaBackground:{height:"full"},channelSlider:{borderRadius:"l2",flex:"1"},channelSliderTrack:{height:"var(--slider-height)",borderRadius:"inherit",boxShadow:"inset 0 0 0 1px rgba(0,0,0,0.1)"},channelText:{textStyle:"xs",color:"fg.muted",fontWeight:"medium",textTransform:"capitalize"},swatchGroup:{display:"flex",flexDirection:"row",flexWrap:"wrap",gap:"2"},swatch:{...T.base,borderRadius:"l1"},swatchIndicator:{color:"white",rounded:"full"},channelSliderThumb:{borderRadius:"full",height:"var(--thumb-size)",width:"var(--thumb-size)",borderWidth:"2px",borderColor:"white",shadow:"sm",transform:"translate(-50%, -50%)",focusVisibleRing:"outside",focusRingOffset:"1px"},channelInput:{...N.base,"&::-webkit-inner-spin-button, &::-webkit-outer-spin-button":{WebkitAppearance:"none",margin:0}},formatSelect:{textStyle:"xs",textTransform:"uppercase",borderWidth:"1px",minH:"6",focusRing:"inside",rounded:"l2"},transparencyGrid:{borderRadius:"l2"},view:{display:"flex",flexDirection:"column",gap:"2"}},variants:{size:{"2xs":{channelInput:N.variants?.size?.["2xs"],swatch:{"--swatch-size":"sizes.4.5"},trigger:{"--input-height":"sizes.7"},area:{"--thumb-size":"sizes.3"},channelSlider:{"--slider-height":"sizes.3","--thumb-size":"sizes.3"}},xs:{channelInput:N.variants?.size?.xs,swatch:{"--swatch-size":"sizes.5"},trigger:{"--input-height":"sizes.8"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},sm:{channelInput:N.variants?.size?.sm,swatch:{"--swatch-size":"sizes.6"},trigger:{"--input-height":"sizes.9"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},md:{channelInput:N.variants?.size?.md,swatch:{"--swatch-size":"sizes.7"},trigger:{"--input-height":"sizes.10"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},lg:{channelInput:N.variants?.size?.lg,swatch:{"--swatch-size":"sizes.7"},trigger:{"--input-height":"sizes.11"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},xl:{channelInput:N.variants?.size?.xl,swatch:{"--swatch-size":"sizes.8"},trigger:{"--input-height":"sizes.12"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},"2xl":{channelInput:N.variants?.size?.["2xl"],swatch:{"--swatch-size":"sizes.10"},trigger:{"--input-height":"sizes.16"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}}},variant:{outline:{channelInput:N.variants?.variant?.outline,trigger:{borderWidth:"1px"}},subtle:{channelInput:N.variants?.variant?.subtle,trigger:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted"}}}},defaultVariants:{size:"md",variant:"outline"}}),na=(0,i.i_)({className:"chakra-combobox",slots:rz.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5",width:"full"},label:{fontWeight:"medium",userSelect:"none",textStyle:"sm",_disabled:{layerStyle:"disabled"}},input:{display:"flex",alignItems:"center",justifyContent:"space-between",background:"bg.panel",width:"full",minH:"var(--combobox-input-height)",px:"var(--combobox-input-padding-x)","--input-height":"var(--combobox-input-height)",borderRadius:"l2",outline:0,userSelect:"none",textAlign:"start",_placeholderShown:{color:"fg.muted"},_disabled:{layerStyle:"disabled"},"--focus-color":"colors.colorPalette.focusRing","--error-color":"colors.border.error",_invalid:{focusRingColor:"var(--error-color)",borderColor:"var(--error-color)"}},trigger:{display:"inline-flex",alignItems:"center",justifyContent:"center","--input-height":"var(--combobox-input-height)"},clearTrigger:{color:"fg.muted",pointerEvents:"auto",focusVisibleRing:"inside",focusRingWidth:"2px",rounded:"l1"},control:{pos:"relative"},indicatorGroup:{display:"flex",alignItems:"center",justifyContent:"center",gap:"1",pos:"absolute",insetEnd:"0",top:"0",bottom:"0",px:"var(--combobox-input-padding-x)",_icon:{boxSize:"var(--combobox-indicator-size)"},"[data-disabled] &":{opacity:.5}},content:{background:"bg.panel",display:"flex",flexDirection:"column",zIndex:"dropdown",borderRadius:"l2",outline:0,maxH:"96",overflowY:"auto",boxShadow:"md",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"0s"},"&[data-empty]:not(:has([data-scope=combobox][data-part=empty]))":{opacity:0}},item:{position:"relative",userSelect:"none",display:"flex",alignItems:"center",gap:"2",py:"var(--combobox-item-padding-y)",px:"var(--combobox-item-padding-x)",cursor:"option",justifyContent:"space-between",flex:"1",textAlign:"start",borderRadius:"l1",_highlighted:{bg:"bg.emphasized/60"},_disabled:{pointerEvents:"none",opacity:"0.5"},_icon:{boxSize:"var(--combobox-indicator-size)"}},empty:{py:"var(--combobox-item-padding-y)",px:"var(--combobox-item-padding-x)"},itemText:{flex:"1"},itemGroup:{pb:"var(--combobox-item-padding-y)",_last:{pb:"0"}},itemGroupLabel:{fontWeight:"medium",py:"var(--combobox-item-padding-y)",px:"var(--combobox-item-padding-x)"}},variants:{variant:{outline:{input:{bg:"transparent",borderWidth:"1px",borderColor:"border",focusVisibleRing:"inside"}},subtle:{input:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted",focusVisibleRing:"inside"}},flushed:{input:{bg:"transparent",borderBottomWidth:"1px",borderBottomColor:"border",borderRadius:"0",px:"0",_focusVisible:{borderColor:"var(--focus-color)",boxShadow:"0px 1px 0px 0px var(--focus-color)"}},indicatorGroup:{px:"0"}}},size:{xs:{root:{"--combobox-input-height":"sizes.8","--combobox-input-padding-x":"spacing.2","--combobox-indicator-size":"sizes.3.5"},input:{textStyle:"xs"},content:{"--combobox-item-padding-x":"spacing.1.5","--combobox-item-padding-y":"spacing.1","--combobox-indicator-size":"sizes.3.5",p:"1",textStyle:"xs"},trigger:{textStyle:"xs",gap:"1"}},sm:{root:{"--combobox-input-height":"sizes.9","--combobox-input-padding-x":"spacing.2.5","--combobox-indicator-size":"sizes.4"},input:{textStyle:"sm"},content:{"--combobox-item-padding-x":"spacing.2","--combobox-item-padding-y":"spacing.1.5","--combobox-indicator-size":"sizes.4",p:"1",textStyle:"sm"},trigger:{textStyle:"sm",gap:"1"}},md:{root:{"--combobox-input-height":"sizes.10","--combobox-input-padding-x":"spacing.3","--combobox-indicator-size":"sizes.4"},input:{textStyle:"sm"},content:{"--combobox-item-padding-x":"spacing.2","--combobox-item-padding-y":"spacing.1.5","--combobox-indicator-size":"sizes.4",p:"1",textStyle:"sm"},itemIndicator:{display:"flex",alignItems:"center",justifyContent:"center"},trigger:{textStyle:"sm",gap:"2"}},lg:{root:{"--combobox-input-height":"sizes.12","--combobox-input-padding-x":"spacing.4","--combobox-indicator-size":"sizes.5"},input:{textStyle:"md"},content:{"--combobox-item-padding-y":"spacing.2","--combobox-item-padding-x":"spacing.3","--combobox-indicator-size":"sizes.5",p:"1.5",textStyle:"md"},trigger:{textStyle:"md",py:"3",gap:"2"}}}},defaultVariants:{size:"md",variant:"outline"}}),ns=(0,i.i_)({slots:rk.keys(),className:"chakra-data-list",base:{itemLabel:{display:"flex",alignItems:"center",gap:"1"},itemValue:{display:"flex",minWidth:"0",flex:"1"}},variants:{orientation:{horizontal:{root:{display:"flex",flexDirection:"column"},item:{display:"inline-flex",alignItems:"center",gap:"4"},itemLabel:{minWidth:"120px"}},vertical:{root:{display:"flex",flexDirection:"column"},item:{display:"flex",flexDirection:"column",gap:"1"}}},size:{sm:{root:{gap:"3"},item:{textStyle:"xs"}},md:{root:{gap:"4"},item:{textStyle:"sm"}},lg:{root:{gap:"5"},item:{textStyle:"md"}}},variant:{subtle:{itemLabel:{color:"fg.muted"}},bold:{itemLabel:{fontWeight:"medium"},itemValue:{color:"fg.muted"}}}},defaultVariants:{size:"md",orientation:"vertical",variant:"subtle"}}),nl=(0,i.i_)({slots:rC.keys(),className:"chakra-dialog",base:{backdrop:{bg:"blackAlpha.500",pos:"fixed",left:0,top:0,w:"100dvw",h:"100dvh",zIndex:"var(--z-index)",_open:{animationName:"fade-in",animationDuration:"slow"},_closed:{animationName:"fade-out",animationDuration:"moderate"}},positioner:{display:"flex",width:"100dvw",height:"100dvh",position:"fixed",left:0,top:0,"--dialog-z-index":"zIndex.modal",zIndex:"calc(var(--dialog-z-index) + var(--layer-index, 0))",justifyContent:"center",overscrollBehaviorY:"none"},content:{display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,borderRadius:"l3",textStyle:"sm",my:"var(--dialog-margin, var(--dialog-base-margin))","--dialog-z-index":"zIndex.modal",zIndex:"calc(var(--dialog-z-index) + var(--layer-index, 0))",bg:"bg.panel",boxShadow:"lg",_open:{animationDuration:"moderate"},_closed:{animationDuration:"faster"}},header:{display:"flex",gap:"2",flex:0,px:"6",pt:"6",pb:"4"},body:{flex:"1",px:"6",pt:"2",pb:"6"},footer:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"3",px:"6",pt:"2",pb:"4"},title:{textStyle:"lg",fontWeight:"semibold"},description:{color:"fg.muted"},closeTrigger:{pos:"absolute",top:"2",insetEnd:"2"}},variants:{placement:{center:{positioner:{alignItems:"center"},content:{"--dialog-base-margin":"auto",mx:"auto"}},top:{positioner:{alignItems:"flex-start"},content:{"--dialog-base-margin":"spacing.16",mx:"auto"}},bottom:{positioner:{alignItems:"flex-end"},content:{"--dialog-base-margin":"spacing.16",mx:"auto"}}},scrollBehavior:{inside:{positioner:{overflow:"hidden"},content:{maxH:"calc(100% - 7.5rem)"},body:{overflow:"auto"}},outside:{positioner:{overflow:"auto",pointerEvents:"auto"}}},size:{xs:{content:{maxW:"sm"}},sm:{content:{maxW:"md"}},md:{content:{maxW:"lg"}},lg:{content:{maxW:"2xl"}},xl:{content:{maxW:"4xl"}},cover:{positioner:{padding:"10"},content:{width:"100%",height:"100%","--dialog-margin":"0"}},full:{content:{maxW:"100dvw",minH:"100dvh","--dialog-margin":"0",borderRadius:"0"}}},motionPreset:{scale:{content:{_open:{animationName:"scale-in, fade-in"},_closed:{animationName:"scale-out, fade-out"}}},"slide-in-bottom":{content:{_open:{animationName:"slide-from-bottom, fade-in"},_closed:{animationName:"slide-to-bottom, fade-out"}}},"slide-in-top":{content:{_open:{animationName:"slide-from-top, fade-in"},_closed:{animationName:"slide-to-top, fade-out"}}},"slide-in-left":{content:{_open:{animationName:"slide-from-left, fade-in"},_closed:{animationName:"slide-to-left, fade-out"}}},"slide-in-right":{content:{_open:{animationName:"slide-from-right, fade-in"},_closed:{animationName:"slide-to-right, fade-out"}}},none:{}}},defaultVariants:{size:"md",scrollBehavior:"outside",placement:"top",motionPreset:"scale"}}),nu=(0,i.i_)({slots:rO.keys(),className:"chakra-drawer",base:{backdrop:{bg:"blackAlpha.500",pos:"fixed",insetInlineStart:0,top:0,w:"100vw",h:"100dvh",zIndex:"overlay",_open:{animationName:"fade-in",animationDuration:"slow"},_closed:{animationName:"fade-out",animationDuration:"moderate"}},positioner:{display:"flex",width:"100vw",height:"100dvh",position:"fixed",insetInlineStart:0,top:0,zIndex:"modal",overscrollBehaviorY:"none"},content:{display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,zIndex:"modal",textStyle:"sm",maxH:"100dvh",color:"inherit",bg:"bg.panel",boxShadow:"lg",_open:{animationDuration:"slowest",animationTimingFunction:"ease-in-smooth"},_closed:{animationDuration:"slower",animationTimingFunction:"ease-in-smooth"}},header:{display:"flex",alignItems:"center",gap:"2",flex:0,px:"6",pt:"6",pb:"4"},body:{px:"6",py:"2",flex:"1",overflow:"auto"},footer:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"3",px:"6",pt:"2",pb:"4"},title:{flex:"1",textStyle:"lg",fontWeight:"semibold"},description:{color:"fg.muted"},closeTrigger:{pos:"absolute",top:"3",insetEnd:"2"}},variants:{size:{xs:{content:{maxW:"xs"}},sm:{content:{maxW:"md"}},md:{content:{maxW:"lg"}},lg:{content:{maxW:"2xl"}},xl:{content:{maxW:"4xl"}},full:{content:{maxW:"100vw",h:"100dvh"}}},placement:{start:{positioner:{justifyContent:"flex-start",alignItems:"stretch"},content:{_open:{animationName:{base:"slide-from-left-full, fade-in",_rtl:"slide-from-right-full, fade-in"}},_closed:{animationName:{base:"slide-to-left-full, fade-out",_rtl:"slide-to-right-full, fade-out"}}}},end:{positioner:{justifyContent:"flex-end",alignItems:"stretch"},content:{_open:{animationName:{base:"slide-from-right-full, fade-in",_rtl:"slide-from-left-full, fade-in"}},_closed:{animationName:{base:"slide-to-right-full, fade-out",_rtl:"slide-to-left-full, fade-out"}}}},top:{positioner:{justifyContent:"stretch",alignItems:"flex-start"},content:{maxW:"100%",_open:{animationName:"slide-from-top-full, fade-in"},_closed:{animationName:"slide-to-top-full, fade-out"}}},bottom:{positioner:{justifyContent:"stretch",alignItems:"flex-end"},content:{maxW:"100%",_open:{animationName:"slide-from-bottom-full, fade-in"},_closed:{animationName:"slide-to-bottom-full, fade-out"}}}},contained:{true:{positioner:{padding:"4"},content:{borderRadius:"l3"}}}},defaultVariants:{size:"xs",placement:"end"}}),nc=(0,i.H2)({fontSize:"inherit",fontWeight:"inherit",textAlign:"inherit",bg:"transparent",borderRadius:"l2"}),nd=(0,i.i_)({slots:rI.keys(),className:"chakra-editable",base:{root:{display:"inline-flex",alignItems:"center",position:"relative",gap:"1.5",width:"full"},preview:{...nc,py:"1",px:"1",display:"inline-flex",alignItems:"center",transitionProperty:"common",transitionDuration:"moderate",cursor:"text",_hover:{bg:"bg.muted"},_disabled:{userSelect:"none"}},input:{...nc,outline:"0",py:"1",px:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",focusVisibleRing:"inside",focusRingWidth:"2px",_placeholder:{opacity:.6}},control:{display:"inline-flex",alignItems:"center",gap:"1.5"}},variants:{size:{sm:{root:{textStyle:"sm"},preview:{minH:"8"},input:{minH:"8"}},md:{root:{textStyle:"sm"},preview:{minH:"9"},input:{minH:"9"}},lg:{root:{textStyle:"md"},preview:{minH:"10"},input:{minH:"10"}}}},defaultVariants:{size:"md"}}),nf=(0,i.i_)({slots:r_.keys(),className:"chakra-empty-state",base:{root:{width:"full"},content:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},indicator:{display:"flex",alignItems:"center",justifyContent:"center",color:"fg.subtle",_icon:{boxSize:"1em"}},title:{fontWeight:"semibold"},description:{textStyle:"sm",color:"fg.muted"}},variants:{size:{sm:{root:{px:"4",py:"6"},title:{textStyle:"md"},content:{gap:"4"},indicator:{textStyle:"2xl"}},md:{root:{px:"8",py:"12"},title:{textStyle:"lg"},content:{gap:"6"},indicator:{textStyle:"4xl"}},lg:{root:{px:"12",py:"16"},title:{textStyle:"xl"},content:{gap:"8"},indicator:{textStyle:"6xl"}}}},defaultVariants:{size:"md"}}),nh=(0,i.i_)({className:"chakra-field",slots:rT.keys(),base:{requiredIndicator:{color:"fg.error",lineHeight:"1"},root:{display:"flex",width:"100%",position:"relative",gap:"1.5"},label:{display:"flex",alignItems:"center",textAlign:"start",textStyle:"sm",fontWeight:"medium",gap:"1",userSelect:"none",_disabled:{opacity:"0.5"}},errorText:{display:"inline-flex",alignItems:"center",fontWeight:"medium",gap:"1",color:"fg.error",textStyle:"xs"},helperText:{color:"fg.muted",textStyle:"xs"}},variants:{orientation:{vertical:{root:{flexDirection:"column",alignItems:"flex-start"}},horizontal:{root:{flexDirection:"row",alignItems:"center",justifyContent:"space-between"},label:{flex:"0 0 var(--field-label-width, 80px)"}}}},defaultVariants:{orientation:"vertical"}}),np=(0,i.i_)({className:"fieldset",slots:rP.keys(),base:{root:{display:"flex",flexDirection:"column",width:"full"},content:{display:"flex",flexDirection:"column",width:"full"},legend:{color:"fg",fontWeight:"medium",_disabled:{opacity:"0.5"}},helperText:{color:"fg.muted",textStyle:"sm"},errorText:{display:"inline-flex",alignItems:"center",color:"fg.error",gap:"2",fontWeight:"medium",textStyle:"sm"}},variants:{size:{sm:{root:{spaceY:"2"},content:{gap:"1.5"},legend:{textStyle:"sm"}},md:{root:{spaceY:"4"},content:{gap:"4"},legend:{textStyle:"sm"}},lg:{root:{spaceY:"6"},content:{gap:"4"},legend:{textStyle:"md"}}}},defaultVariants:{size:"md"}}),ng=(0,i.i_)({className:"chakra-file-upload",slots:rR.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"4",width:"100%",alignItems:"flex-start"},label:{fontWeight:"medium",textStyle:"sm"},dropzone:{background:"bg",borderRadius:"l3",borderWidth:"2px",borderStyle:"dashed",display:"flex",alignItems:"center",flexDirection:"column",gap:"4",justifyContent:"center",minHeight:"2xs",px:"3",py:"2",transition:"backgrounds",focusVisibleRing:"outside",_hover:{bg:"bg.subtle"},_dragging:{bg:"colorPalette.subtle",borderStyle:"solid",borderColor:"colorPalette.solid"}},dropzoneContent:{display:"flex",flexDirection:"column",alignItems:"center",textAlign:"center",gap:"1",textStyle:"sm"},item:{pos:"relative",textStyle:"sm",animationName:"fade-in",animationDuration:"moderate",background:"bg",borderRadius:"l2",borderWidth:"1px",width:"100%",display:"flex",alignItems:"center",gap:"3",p:"4"},itemGroup:{width:"100%",display:"flex",flexDirection:"column",gap:"3",_empty:{display:"none"}},itemName:{color:"fg",fontWeight:"medium",lineClamp:"1"},itemContent:{display:"flex",flexDirection:"column",gap:"0.5",flex:"1"},itemSizeText:{color:"fg.muted",textStyle:"xs"},itemDeleteTrigger:{display:"flex",alignItems:"center",justifyContent:"center",alignSelf:"flex-start",boxSize:"5",p:"2px",color:"fg.muted",cursor:"button"},itemPreview:{color:"fg.muted",_icon:{boxSize:"4.5"}}},defaultVariants:{}});var nv=(0,G.y)("hoverCard").parts("arrow","arrowTip","trigger","positioner","content");nv.build();var nm=e=>e.getById((e=>e.ids?.trigger??`hover-card:${e.id}:trigger`)(e)),nb=e=>e.getById((e=>e.ids?.positioner??`hover-card:${e.id}:popper`)(e)),{not:ny,and:nx}=(0,eb.b6)();(0,eb.Op)({props:({props:e})=>({disabled:!1,openDelay:600,closeDelay:300,...e,positioning:{placement:"bottom",...e.positioning}}),initialState:({prop:e})=>e("open")||e("defaultOpen")?"open":"closed",context:({prop:e,bindable:t})=>({open:t(()=>({defaultValue:e("defaultOpen"),value:e("open"),onChange(t){e("onOpenChange")?.({open:t})}})),currentPlacement:t(()=>({defaultValue:void 0})),isPointer:t(()=>({defaultValue:!1}))}),watch({track:e,context:t,action:r,prop:n,send:i}){e([()=>n("disabled")],()=>{n("disabled")&&i({type:"CLOSE",src:"disabled.change"})}),e([()=>t.get("open")],()=>{r(["toggleVisibility"])})},states:{closed:{tags:["closed"],entry:["clearIsPointer"],on:{"CONTROLLED.OPEN":{target:"open"},POINTER_ENTER:{target:"opening",actions:["setIsPointer"]},TRIGGER_FOCUS:{target:"opening"},OPEN:{target:"opening"}}},opening:{tags:["closed"],effects:["waitForOpenDelay"],on:{OPEN_DELAY:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}],"CONTROLLED.OPEN":{target:"open"},"CONTROLLED.CLOSE":{target:"closed"},POINTER_LEAVE:[{guard:"isOpenControlled",actions:["invokeOnClose","toggleVisibility"]},{target:"closed",actions:["invokeOnClose"]}],TRIGGER_BLUR:[{guard:nx("isOpenControlled",ny("isPointer")),actions:["invokeOnClose","toggleVisibility"]},{guard:ny("isPointer"),target:"closed",actions:["invokeOnClose"]}],CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose","toggleVisibility"]},{target:"closed",actions:["invokeOnClose"]}]}},open:{tags:["open"],effects:["trackDismissableElement","trackPositioning"],on:{"CONTROLLED.CLOSE":{target:"closed"},POINTER_ENTER:{actions:["setIsPointer"]},POINTER_LEAVE:{target:"closing"},CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],TRIGGER_BLUR:[{guard:nx("isOpenControlled",ny("isPointer")),actions:["invokeOnClose"]},{guard:ny("isPointer"),target:"closed",actions:["invokeOnClose"]}],"POSITIONING.SET":{actions:["reposition"]}}},closing:{tags:["open"],effects:["trackPositioning","waitForCloseDelay"],on:{CLOSE_DELAY:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],"CONTROLLED.CLOSE":{target:"closed"},"CONTROLLED.OPEN":{target:"open"},POINTER_ENTER:{target:"open",actions:["setIsPointer"]}}}},implementations:{guards:{isPointer:({context:e})=>!!e.get("isPointer"),isOpenControlled:({prop:e})=>null!=e("open")},effects:{waitForOpenDelay({send:e,prop:t}){let r=setTimeout(()=>{e({type:"OPEN_DELAY"})},t("openDelay"));return()=>clearTimeout(r)},waitForCloseDelay({send:e,prop:t}){let r=setTimeout(()=>{e({type:"CLOSE_DELAY"})},t("closeDelay"));return()=>clearTimeout(r)},trackPositioning:({context:e,prop:t,scope:r})=>(e.get("currentPlacement")||e.set("currentPlacement",t("positioning").placement),(0,ev.Ox)(nm(r),()=>nb(r),{...t("positioning"),defer:!0,onComplete(t){e.set("currentPlacement",t.placement)}})),trackDismissableElement:({send:e,scope:t,prop:r})=>(0,ey.u)(()=>t.getById(t.ids?.content??`hover-card:${t.id}:content`),{type:"popover",defer:!0,exclude:[nm(t)],onDismiss(){e({type:"CLOSE",src:"interact-outside"})},onInteractOutside:r("onInteractOutside"),onPointerDownOutside:r("onPointerDownOutside"),onFocusOutside(e){e.preventDefault(),r("onFocusOutside")?.(e)}})},actions:{invokeOnClose({prop:e}){e("onOpenChange")?.({open:!1})},invokeOnOpen({prop:e}){e("onOpenChange")?.({open:!0})},setIsPointer({context:e}){e.set("isPointer",!0)},clearIsPointer({context:e}){e.set("isPointer",!1)},reposition({context:e,prop:t,scope:r,event:n}){(0,ev.Ox)(nm(r),()=>nb(r),{...t("positioning"),...n.options,defer:!0,listeners:!1,onComplete(t){e.set("currentPlacement",t.placement)}})},toggleVisibility({prop:e,event:t,send:r}){queueMicrotask(()=>{r({type:e("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:t})})}}}});var nw=(0,ex.x)()(["closeDelay","dir","getRootNode","id","ids","disabled","onOpenChange","defaultOpen","open","openDelay","positioning","onInteractOutside","onPointerDownOutside","onFocusOutside"]);(0,K.PM)(nw);let nS=(0,i.i_)({className:"chakra-hover-card",slots:nv.keys(),base:{content:{position:"relative",display:"flex",flexDirection:"column",textStyle:"sm","--hovercard-bg":"colors.bg.panel",bg:"var(--hovercard-bg)",boxShadow:"lg",maxWidth:"80",borderRadius:"l3",zIndex:"popover",transformOrigin:"var(--transform-origin)",outline:"0",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"faster"}},arrow:{"--arrow-size":"sizes.3","--arrow-background":"var(--hovercard-bg)"},arrowTip:{borderTopWidth:"0.5px",borderInlineStartWidth:"0.5px"}},variants:{size:{xs:{content:{padding:"3"}},sm:{content:{padding:"4"}},md:{content:{padding:"5"}},lg:{content:{padding:"6"}}}},defaultVariants:{size:"md"}}),nE=(0,i.i_)({className:"chakra-list",slots:rA.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"var(--list-gap)","& :where(ul, ol)":{marginTop:"var(--list-gap)"}},item:{whiteSpace:"normal",display:"list-item"},indicator:{marginEnd:"2",minHeight:"1lh",flexShrink:0,display:"inline-block",verticalAlign:"middle"}},variants:{variant:{marker:{root:{listStyle:"revert"},item:{_marker:{color:"fg.subtle"}}},plain:{item:{alignItems:"flex-start",display:"inline-flex"}}},align:{center:{item:{alignItems:"center"}},start:{item:{alignItems:"flex-start"}},end:{item:{alignItems:"flex-end"}}}},defaultVariants:{variant:"marker"}}),nk=(0,i.i_)({className:"chakra-listbox",slots:tG.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5",width:"full"},content:{display:"flex",maxH:"96",p:"1",gap:"1",textStyle:"sm",outline:"none",scrollPadding:"1",_horizontal:{flexDirection:"row",overflowX:"auto"},_vertical:{flexDirection:"column",overflowY:"auto"},"--listbox-item-padding-x":"spacing.2","--listbox-item-padding-y":"spacing.1.5"},item:{position:"relative",userSelect:"none",display:"flex",alignItems:"center",gap:"2",cursor:"pointer",justifyContent:"space-between",flex:"1",textAlign:"start",borderRadius:"l1",py:"var(--listbox-item-padding-y)",px:"var(--listbox-item-padding-x)",_highlighted:{outline:"2px solid",outlineColor:"border.emphasized"},_disabled:{pointerEvents:"none",opacity:"0.5"}},empty:{py:"var(--listbox-item-padding-y)",px:"var(--listbox-item-padding-x)"},itemText:{flex:"1"},itemGroup:{mt:"1.5",_first:{mt:"0"}},itemGroupLabel:{py:"1.5",px:"2",fontWeight:"medium"},label:{fontWeight:"medium",userSelect:"none",textStyle:"sm",_disabled:{layerStyle:"disabled"}},valueText:{lineClamp:"1",maxW:"80%"},itemIndicator:{display:"flex",alignItems:"center",justifyContent:"center",_icon:{boxSize:"4"}}},variants:{variant:{subtle:{content:{bg:"bg.panel",borderWidth:"1px",borderRadius:"l2"},item:{_hover:{bg:"bg.emphasized/60"},_selected:{bg:"bg.muted"}}},solid:{content:{bg:"bg.panel",borderWidth:"1px",borderRadius:"l2"},item:{_selected:{bg:"colorPalette.solid",color:"colorPalette.contrast"}}},plain:{}}},defaultVariants:{variant:"subtle"}}),nC=(0,i.i_)({className:"chakra-menu",slots:rN.keys(),base:{content:{outline:0,bg:"bg.panel",boxShadow:"lg",color:"fg",maxHeight:"var(--available-height)","--menu-z-index":"zIndex.dropdown",zIndex:"calc(var(--menu-z-index) + var(--layer-index, 0))",borderRadius:"l2",overflow:"hidden",overflowY:"auto",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"faster"}},item:{textDecoration:"none",color:"fg",userSelect:"none",borderRadius:"l1",width:"100%",display:"flex",cursor:"menuitem",alignItems:"center",textAlign:"start",position:"relative",flex:"0 0 auto",outline:0,_disabled:{layerStyle:"disabled"},"&[data-type]":{ps:"8"}},itemText:{flex:"1"},itemIndicator:{position:"absolute",insetStart:"2",transform:"translateY(-50%)",top:"50%"},itemGroupLabel:{px:"2",py:"1.5",fontWeight:"semibold",textStyle:"sm"},indicator:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:"0"},itemCommand:{opacity:"0.6",textStyle:"xs",ms:"auto",ps:"4",letterSpacing:"widest",fontFamily:"inherit"},separator:{height:"1px",bg:"bg.muted",my:"1",mx:"-1"}},variants:{variant:{subtle:{item:{_highlighted:{bg:"bg.emphasized/60"}}},solid:{item:{_highlighted:{bg:"colorPalette.solid",color:"colorPalette.contrast"}}}},size:{sm:{content:{minW:"8rem",padding:"1",scrollPadding:"1"},item:{gap:"1",textStyle:"xs",py:"1",px:"1.5"}},md:{content:{minW:"8rem",padding:"1.5",scrollPadding:"1.5"},item:{gap:"2",textStyle:"sm",py:"1.5",px:"2"}}}},defaultVariants:{size:"md",variant:"subtle"}}),nO=(0,i.i_)({className:"chakra-select",slots:rj.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5",width:"full"},trigger:{display:"flex",alignItems:"center",justifyContent:"space-between",width:"full",minH:"var(--select-trigger-height)","--input-height":"var(--select-trigger-height)",px:"var(--select-trigger-padding-x)",borderRadius:"l2",userSelect:"none",textAlign:"start",focusVisibleRing:"inside",_placeholderShown:{color:"fg.muted/80"},_disabled:{layerStyle:"disabled"},_invalid:{borderColor:"border.error"}},indicatorGroup:{display:"flex",alignItems:"center",gap:"1",pos:"absolute",insetEnd:"0",top:"0",bottom:"0",px:"var(--select-trigger-padding-x)",pointerEvents:"none"},indicator:{display:"flex",alignItems:"center",justifyContent:"center",color:{base:"fg.muted",_disabled:"fg.subtle",_invalid:"fg.error"}},content:{background:"bg.panel",display:"flex",flexDirection:"column",zIndex:"dropdown",borderRadius:"l2",outline:0,maxH:"96",overflowY:"auto",boxShadow:"md",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"fastest"}},item:{position:"relative",userSelect:"none",display:"flex",alignItems:"center",gap:"2",cursor:"option",justifyContent:"space-between",flex:"1",textAlign:"start",borderRadius:"l1",_highlighted:{bg:"bg.emphasized/60"},_disabled:{pointerEvents:"none",opacity:"0.5"},_icon:{width:"4",height:"4"}},control:{pos:"relative"},itemText:{flex:"1"},itemGroup:{_first:{mt:"0"}},itemGroupLabel:{py:"1",fontWeight:"medium"},label:{fontWeight:"medium",userSelect:"none",textStyle:"sm",_disabled:{layerStyle:"disabled"}},valueText:{lineClamp:"1",maxW:"80%"},clearTrigger:{color:"fg.muted",pointerEvents:"auto",focusVisibleRing:"inside",focusRingWidth:"2px",rounded:"l1"}},variants:{variant:{outline:{trigger:{bg:"transparent",borderWidth:"1px",borderColor:"border",_expanded:{borderColor:"border.emphasized"}}},subtle:{trigger:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted"}}},size:{xs:{root:{"--select-trigger-height":"sizes.8","--select-trigger-padding-x":"spacing.2"},content:{p:"1",gap:"1",textStyle:"xs"},trigger:{textStyle:"xs",gap:"1"},item:{py:"1",px:"2"},itemGroupLabel:{py:"1",px:"2"},indicator:{_icon:{width:"3.5",height:"3.5"}}},sm:{root:{"--select-trigger-height":"sizes.9","--select-trigger-padding-x":"spacing.2.5"},content:{p:"1",textStyle:"sm"},trigger:{textStyle:"sm",gap:"1"},indicator:{_icon:{width:"4",height:"4"}},item:{py:"1",px:"1.5"},itemGroup:{mt:"1"},itemGroupLabel:{py:"1",px:"1.5"}},md:{root:{"--select-trigger-height":"sizes.10","--select-trigger-padding-x":"spacing.3"},content:{p:"1",textStyle:"sm"},itemGroup:{mt:"1.5"},item:{py:"1.5",px:"2"},itemIndicator:{display:"flex",alignItems:"center",justifyContent:"center"},itemGroupLabel:{py:"1.5",px:"2"},trigger:{textStyle:"sm",gap:"2"},indicator:{_icon:{width:"4",height:"4"}}},lg:{root:{"--select-trigger-height":"sizes.12","--select-trigger-padding-x":"spacing.4"},content:{p:"1.5",textStyle:"md"},itemGroup:{mt:"2"},item:{py:"2",px:"3"},itemGroupLabel:{py:"2",px:"3"},trigger:{textStyle:"md",py:"3",gap:"2"},indicator:{_icon:{width:"5",height:"5"}}}}},defaultVariants:{size:"md",variant:"outline"}}),nI=(0,i.i_)({className:"chakra-native-select",slots:rM.keys(),base:{root:{height:"fit-content",display:"flex",width:"100%",position:"relative"},field:{width:"100%",minWidth:"0",outline:"0",appearance:"none",borderRadius:"l2","--error-color":"colors.border.error","--input-height":"var(--select-field-height)",height:"var(--select-field-height)",_disabled:{layerStyle:"disabled"},_invalid:{focusRingColor:"var(--error-color)",borderColor:"var(--error-color)"},focusVisibleRing:"inside",lineHeight:"normal","& > option, & > optgroup":{bg:"bg"}},indicator:{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",top:"50%",transform:"translateY(-50%)",height:"100%",color:"fg.muted",_disabled:{opacity:"0.5"},_invalid:{color:"fg.error"},_icon:{width:"1em",height:"1em"}}},variants:{variant:{outline:{field:nO.variants?.variant.outline.trigger},subtle:{field:nO.variants?.variant.subtle.trigger},plain:{field:{bg:"transparent",color:"fg",focusRingWidth:"2px"}}},size:{xs:{root:{"--select-field-height":"sizes.8"},field:{textStyle:"xs",ps:"2",pe:"6"},indicator:{textStyle:"sm",insetEnd:"1.5"}},sm:{root:{"--select-field-height":"sizes.9"},field:{textStyle:"sm",ps:"2.5",pe:"8"},indicator:{textStyle:"md",insetEnd:"2"}},md:{root:{"--select-field-height":"sizes.10"},field:{textStyle:"sm",ps:"3",pe:"8"},indicator:{textStyle:"lg",insetEnd:"2"}},lg:{root:{"--select-field-height":"sizes.11"},field:{textStyle:"md",ps:"4",pe:"8"},indicator:{textStyle:"xl",insetEnd:"3"}},xl:{root:{"--select-field-height":"sizes.12"},field:{textStyle:"md",ps:"4.5",pe:"10"},indicator:{textStyle:"xl",insetEnd:"3"}}}},defaultVariants:nO.defaultVariants});var n_=r(11006);let nT=new Map,nP=!1;try{nP="exceptZero"===new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay}catch{}let nR=!1;try{nR="unit"===new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style}catch{}let nA={degree:{narrow:{default:"\xb0","ja-JP":" 度","zh-TW":"度","sl-SI":" \xb0"}}};class nN{format(e){let t="";if(t=nP||null==this.options.signDisplay?this.numberFormatter.format(e):function(e,t,r){if("auto"===t)return e.format(r);{if("never"===t)return e.format(Math.abs(r));let n=!1;if("always"===t?n=r>0||Object.is(r,0):"exceptZero"===t&&(Object.is(r,-0)||Object.is(r,0)?r=Math.abs(r):n=r>0),!n)return e.format(r);{let t=e.format(-r),n=e.format(r),i=t.replace(n,"").replace(/\u200e|\u061C/,"");return 1!=[...i].length&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),t.replace(n,"!!!").replace(i,"+").replace("!!!",n)}}}(this.numberFormatter,this.options.signDisplay,e),"unit"===this.options.style&&!nR){var r;let{unit:e,unitDisplay:n="short",locale:i}=this.resolvedOptions();if(!e)return t;let o=null==(r=nA[e])?void 0:r[n];t+=o[i]||o.default}return t}formatToParts(e){return this.numberFormatter.formatToParts(e)}formatRange(e,t){if("function"==typeof this.numberFormatter.formatRange)return this.numberFormatter.formatRange(e,t);if(t<e)throw RangeError("End date must be >= start date");return`${this.format(e)} \u{2013} ${this.format(t)}`}formatRangeToParts(e,t){if("function"==typeof this.numberFormatter.formatRangeToParts)return this.numberFormatter.formatRangeToParts(e,t);if(t<e)throw RangeError("End date must be >= start date");let r=this.numberFormatter.formatToParts(e),n=this.numberFormatter.formatToParts(t);return[...r.map(e=>({...e,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...n.map(e=>({...e,source:"endRange"}))]}resolvedOptions(){let e=this.numberFormatter.resolvedOptions();return nP||null==this.options.signDisplay||(e={...e,signDisplay:this.options.signDisplay}),nR||"unit"!==this.options.style||(e={...e,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),e}constructor(e,t={}){this.numberFormatter=function(e,t={}){let{numberingSystem:r}=t;if(r&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${r}`),"unit"===t.style&&!nR){var n;let{unit:e,unitDisplay:r="short"}=t;if(!e)throw Error('unit option must be provided with style: "unit"');if(!(null==(n=nA[e])?void 0:n[r]))throw Error(`Unsupported unit ${e} with unitDisplay = ${r}`);t={...t,style:"decimal"}}let i=e+(t?Object.entries(t).sort((e,t)=>e[0]<t[0]?-1:1).join():"");if(nT.has(i))return nT.get(i);let o=new Intl.NumberFormat(e,t);return nT.set(i,o),o}(e,t),this.options=t}}let nM=RegExp("^.*\\(.*\\).*$"),nL=["latn","arab","hanidec","deva","beng","fullwide"];class nV{parse(e){return nF(this.locale,this.options,e).parse(e)}isValidPartialNumber(e,t,r){return nF(this.locale,this.options,e).isValidPartialNumber(e,t,r)}getNumberingSystem(e){return nF(this.locale,this.options,e).options.numberingSystem}constructor(e,t={}){this.locale=e,this.options=t}}let nD=new Map;function nF(e,t,r){let n=nj(e,t);if(!e.includes("-nu-")&&!n.isValidPartialNumber(r)){for(let i of nL)if(i!==n.options.numberingSystem){let n=nj(e+(e.includes("-u-")?"-nu-":"-u-nu-")+i,t);if(n.isValidPartialNumber(r))return n}}return n}function nj(e,t){let r=e+(t?Object.entries(t).sort((e,t)=>e[0]<t[0]?-1:1).join():""),n=nD.get(r);return n||(n=new nz(e,t),nD.set(r,n)),n}class nz{parse(e){let t=this.sanitize(e);if(this.symbols.group&&(t=nH(t,this.symbols.group,"")),this.symbols.decimal&&(t=t.replace(this.symbols.decimal,".")),this.symbols.minusSign&&(t=t.replace(this.symbols.minusSign,"-")),t=t.replace(this.symbols.numeral,this.symbols.index),"percent"===this.options.style){let e=t.indexOf("-"),r=(t=(t=t.replace("-","")).replace("+","")).indexOf(".");-1===r&&(r=t.length),t=t.replace(".",""),t=r-2==0?`0.${t}`:r-2==-1?`0.0${t}`:r-2==-2?"0.00":`${t.slice(0,r-2)}.${t.slice(r-2)}`,e>-1&&(t=`-${t}`)}let r=t?+t:NaN;if(isNaN(r))return NaN;if("percent"===this.options.style){var n,i;let e={...this.options,style:"decimal",minimumFractionDigits:Math.min((null!=(n=this.options.minimumFractionDigits)?n:0)+2,20),maximumFractionDigits:Math.min((null!=(i=this.options.maximumFractionDigits)?i:0)+2,20)};return new nV(this.locale,e).parse(new nN(this.locale,e).format(r))}return"accounting"===this.options.currencySign&&nM.test(e)&&(r*=-1),r}sanitize(e){return e=e.replace(this.symbols.literals,""),this.symbols.minusSign&&(e=e.replace("-",this.symbols.minusSign)),"arab"===this.options.numberingSystem&&(this.symbols.decimal&&(e=(e=e.replace(",",this.symbols.decimal)).replace(String.fromCharCode(1548),this.symbols.decimal)),this.symbols.group&&(e=nH(e,".",this.symbols.group))),"’"===this.symbols.group&&e.includes("'")&&(e=nH(e,"'",this.symbols.group)),"fr-FR"===this.options.locale&&this.symbols.group&&(e=nH(e," ",this.symbols.group),e=nH(e,/\u00A0/g,this.symbols.group)),e}isValidPartialNumber(e,t=-1/0,r=1/0){return e=this.sanitize(e),this.symbols.minusSign&&e.startsWith(this.symbols.minusSign)&&t<0?e=e.slice(this.symbols.minusSign.length):this.symbols.plusSign&&e.startsWith(this.symbols.plusSign)&&r>0&&(e=e.slice(this.symbols.plusSign.length)),!(this.symbols.group&&e.startsWith(this.symbols.group)||this.symbols.decimal&&e.indexOf(this.symbols.decimal)>-1&&0===this.options.maximumFractionDigits)&&(this.symbols.group&&(e=nH(e,this.symbols.group,"")),e=e.replace(this.symbols.numeral,""),this.symbols.decimal&&(e=e.replace(this.symbols.decimal,"")),0===e.length)}constructor(e,t={}){var r,n;this.locale=e,1!==t.roundingIncrement&&null!=t.roundingIncrement&&(null==t.maximumFractionDigits&&null==t.minimumFractionDigits?(t.maximumFractionDigits=0,t.minimumFractionDigits=0):null==t.maximumFractionDigits?t.maximumFractionDigits=t.minimumFractionDigits:null==t.minimumFractionDigits&&(t.minimumFractionDigits=t.maximumFractionDigits)),this.formatter=new Intl.NumberFormat(e,t),this.options=this.formatter.resolvedOptions(),this.symbols=function(e,t,r,n){var i,o,a,s,l;let u=new Intl.NumberFormat(e,{...r,minimumSignificantDigits:1,maximumSignificantDigits:21,roundingIncrement:1,roundingPriority:"auto",roundingMode:"halfExpand"}),c=u.formatToParts(-10000.111),d=u.formatToParts(10000.111),f=nU.map(e=>u.formatToParts(e)),h=null!=(l=null==(i=c.find(e=>"minusSign"===e.type))?void 0:i.value)?l:"-",p=null==(o=d.find(e=>"plusSign"===e.type))?void 0:o.value;p||(null==n?void 0:n.signDisplay)!=="exceptZero"&&(null==n?void 0:n.signDisplay)!=="always"||(p="+");let g=null==(a=new Intl.NumberFormat(e,{...r,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001).find(e=>"decimal"===e.type))?void 0:a.value,v=null==(s=c.find(e=>"group"===e.type))?void 0:s.value,m=[...new Set([...c.filter(e=>!nB.has(e.type)).map(e=>nW(e.value)),...f.flatMap(e=>e.filter(e=>!nB.has(e.type)).map(e=>nW(e.value)))])].sort((e,t)=>t.length-e.length),b=0===m.length?RegExp("[\\p{White_Space}]","gu"):RegExp(`${m.join("|")}|[\\p{White_Space}]`,"gu"),y=[...new Intl.NumberFormat(r.locale,{useGrouping:!1}).format(0x24cb016ea)].reverse(),x=new Map(y.map((e,t)=>[e,t]));return{minusSign:h,plusSign:p,decimal:g,group:v,literals:b,numeral:RegExp(`[${y.join("")}]`,"g"),index:e=>String(x.get(e))}}(e,this.formatter,this.options,t),"percent"===this.options.style&&((null!=(r=this.options.minimumFractionDigits)?r:0)>18||(null!=(n=this.options.maximumFractionDigits)?n:0)>18)&&console.warn("NumberParser cannot handle percentages with greater than 18 decimal places, please reduce the number in your options.")}}let nB=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),nU=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function nH(e,t,r){return e.replaceAll?e.replaceAll(t,r):e.split(t).join(r)}function nW(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}var n$=(0,G.y)("numberInput").parts("root","label","input","control","valueText","incrementTrigger","decrementTrigger","scrubber");n$.build();var nq=e=>`number-input:${e.id}:cursor`,nG=e=>e.getById((e=>e.ids?.input??`number-input:${e.id}:input`)(e)),nK=e=>e.getDoc().getElementById(nq(e));function nY(e,t,r){let n=e.slice(0,r),i=e.slice(r),o=0,a=Math.min(n.length,t.length);for(let e=0;e<a;e++)if(n[e]===t[e])o=e+1;else break;let s=0,l=Math.min(i.length,t.length-o);for(let e=0;e<l;e++){let r=i.length-1-e,n=t.length-1-e;if(i[r]===t[n])s=e+1;else break}return o>=n.length?o:s>=i.length?t.length-s:o>0?o:s>0?t.length-s:e.length>0?Math.round(r/e.length*t.length):t.length}var nX=(e,t)=>{let{prop:r,computed:n}=t;return r("formatOptions")?""===e?NaN:n("parser").parse(e):parseFloat(e)},nQ=(e,t)=>{let{prop:r,computed:n}=t;return Number.isNaN(e)?"":r("formatOptions")?n("formatter").format(e):e.toString()},{choose:nJ,guards:nZ,createMachine:n0}=(0,eb.mj)(),{not:n1,and:n2}=nZ;n0({props({props:e}){var t,r;let n,i=(t=e.step,r=e.formatOptions,n=void 0===t||Number.isNaN(t)?1:t,r?.style==="percent"&&(void 0===t||Number.isNaN(t))&&(n=.01),n);return{dir:"ltr",locale:"en-US",focusInputOnChange:!0,clampValueOnBlur:!e.allowOverflow,allowOverflow:!1,inputMode:"decimal",pattern:"-?[0-9]*(.[0-9]+)?",defaultValue:"",step:i,min:Number.MIN_SAFE_INTEGER,max:Number.MAX_SAFE_INTEGER,spinOnPress:!0,...e,translations:{incrementLabel:"increment value",decrementLabel:"decrease value",...e.translations}}},initialState:()=>"idle",context:({prop:e,bindable:t,getComputed:r})=>({value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),onChange(t){let n=nX(t,{computed:r(),prop:e});e("onValueChange")?.({value:t,valueAsNumber:n})}})),hint:t(()=>({defaultValue:null})),scrubberCursorPoint:t(()=>({defaultValue:null,hash:e=>e?`x:${e.x}, y:${e.y}`:""})),fieldsetDisabled:t(()=>({defaultValue:!1}))}),computed:{isRtl:({prop:e})=>"rtl"===e("dir"),valueAsNumber:({context:e,computed:t,prop:r})=>nX(e.get("value"),{computed:t,prop:r}),formattedValue:({computed:e,prop:t})=>nQ(e("valueAsNumber"),{computed:e,prop:t}),isAtMin:({computed:e,prop:t})=>(0,K.pY)(e("valueAsNumber"),t("min")),isAtMax:({computed:e,prop:t})=>(0,K.H_)(e("valueAsNumber"),t("max")),isOutOfRange:({computed:e,prop:t})=>!(0,K.s)(e("valueAsNumber"),t("min"),t("max")),isValueEmpty:({context:e})=>""===e.get("value"),isDisabled:({prop:e,context:t})=>!!e("disabled")||t.get("fieldsetDisabled"),canIncrement:({prop:e,computed:t})=>e("allowOverflow")||!t("isAtMax"),canDecrement:({prop:e,computed:t})=>e("allowOverflow")||!t("isAtMin"),valueText:({prop:e,context:t})=>e("translations").valueText?.(t.get("value")),formatter:(0,eb.ph)(({prop:e})=>[e("locale"),e("formatOptions")],([e,t])=>((e,t={})=>new Intl.NumberFormat(e,t))(e,t)),parser:(0,eb.ph)(({prop:e})=>[e("locale"),e("formatOptions")],([e,t])=>((e,t={})=>new nV(e,t))(e,t))},watch({track:e,action:t,context:r,computed:n,prop:i}){e([()=>r.get("value"),()=>i("locale")],()=>{t(["syncInputElement"])}),e([()=>n("isOutOfRange")],()=>{t(["invokeOnInvalid"])}),e([()=>r.hash("scrubberCursorPoint")],()=>{t(["setVirtualCursorPosition"])})},effects:["trackFormControl"],on:{"VALUE.SET":{actions:["setRawValue"]},"VALUE.CLEAR":{actions:["clearValue"]},"VALUE.INCREMENT":{actions:["increment"]},"VALUE.DECREMENT":{actions:["decrement"]}},states:{idle:{on:{"TRIGGER.PRESS_DOWN":[{guard:"isTouchPointer",target:"before:spin",actions:["setHint"]},{target:"before:spin",actions:["focusInput","invokeOnFocus","setHint"]}],"SCRUBBER.PRESS_DOWN":{target:"scrubbing",actions:["focusInput","invokeOnFocus","setHint","setCursorPoint"]},"INPUT.FOCUS":{target:"focused",actions:["focusInput","invokeOnFocus"]}}},focused:{tags:["focus"],effects:["attachWheelListener"],on:{"TRIGGER.PRESS_DOWN":[{guard:"isTouchPointer",target:"before:spin",actions:["setHint"]},{target:"before:spin",actions:["focusInput","setHint"]}],"SCRUBBER.PRESS_DOWN":{target:"scrubbing",actions:["focusInput","setHint","setCursorPoint"]},"INPUT.ARROW_UP":{actions:["increment"]},"INPUT.ARROW_DOWN":{actions:["decrement"]},"INPUT.HOME":{actions:["decrementToMin"]},"INPUT.END":{actions:["incrementToMax"]},"INPUT.CHANGE":{actions:["setValue","setHint"]},"INPUT.BLUR":[{guard:n2("clampValueOnBlur",n1("isInRange")),target:"idle",actions:["setClampedValue","clearHint","invokeOnBlur"]},{guard:n1("isInRange"),target:"idle",actions:["setFormattedValue","clearHint","invokeOnBlur","invokeOnInvalid"]},{target:"idle",actions:["setFormattedValue","clearHint","invokeOnBlur"]}],"INPUT.ENTER":{actions:["setFormattedValue","clearHint","invokeOnBlur"]}}},"before:spin":{tags:["focus"],effects:["trackButtonDisabled","waitForChangeDelay"],entry:nJ([{guard:"isIncrementHint",actions:["increment"]},{guard:"isDecrementHint",actions:["decrement"]}]),on:{CHANGE_DELAY:{target:"spinning",guard:n2("isInRange","spinOnPress")},"TRIGGER.PRESS_UP":[{guard:"isTouchPointer",target:"focused",actions:["clearHint"]},{target:"focused",actions:["focusInput","clearHint"]}]}},spinning:{tags:["focus"],effects:["trackButtonDisabled","spinValue"],on:{SPIN:[{guard:"isIncrementHint",actions:["increment"]},{guard:"isDecrementHint",actions:["decrement"]}],"TRIGGER.PRESS_UP":{target:"focused",actions:["focusInput","clearHint"]}}},scrubbing:{tags:["focus"],effects:["activatePointerLock","trackMousemove","setupVirtualCursor","preventTextSelection"],on:{"SCRUBBER.POINTER_UP":{target:"focused",actions:["focusInput","clearCursorPoint"]},"SCRUBBER.POINTER_MOVE":[{guard:"isIncrementHint",actions:["increment","setCursorPoint"]},{guard:"isDecrementHint",actions:["decrement","setCursorPoint"]}]}}},implementations:{guards:{clampValueOnBlur:({prop:e})=>e("clampValueOnBlur"),spinOnPress:({prop:e})=>!!e("spinOnPress"),isInRange:({computed:e})=>!e("isOutOfRange"),isDecrementHint:({context:e,event:t})=>(t.hint??e.get("hint"))==="decrement",isIncrementHint:({context:e,event:t})=>(t.hint??e.get("hint"))==="increment",isTouchPointer:({event:e})=>"touch"===e.pointerType},effects:{waitForChangeDelay({send:e}){let t=setTimeout(()=>{e({type:"CHANGE_DELAY"})},300);return()=>clearTimeout(t)},spinValue({send:e}){let t=setInterval(()=>{e({type:"SPIN"})},50);return()=>clearInterval(t)},trackFormControl({context:e,scope:t}){let r=nG(t);return(0,eg.$S)(r,{onFieldsetDisabledChange(t){e.set("fieldsetDisabled",t)},onFormReset(){e.set("value",e.initial("value"))}})},setupVirtualCursor({context:e,scope:t}){let r=e.get("scrubberCursorPoint");return(0,eg.nr)()?void 0:(((e,t)=>{let r=e.getDoc(),n=r.createElement("div");n.className="scrubber--cursor",n.id=nq(e),Object.assign(n.style,{width:"15px",height:"15px",position:"fixed",pointerEvents:"none",left:"0px",top:"0px",zIndex:eg.hx,transform:t?`translate3d(${t.x}px, ${t.y}px, 0px)`:void 0,willChange:"transform"}),n.innerHTML=`
5
+ <svg width="46" height="15" style="left: -15.5px; position: absolute; top: 0; filter: drop-shadow(rgba(0, 0, 0, 0.4) 0px 1px 1.1px);">
6
+ <g transform="translate(2 3)">
7
+ <path fill-rule="evenodd" d="M 15 4.5L 15 2L 11.5 5.5L 15 9L 15 6.5L 31 6.5L 31 9L 34.5 5.5L 31 2L 31 4.5Z" style="stroke-width: 2px; stroke: white;"></path>
8
+ <path fill-rule="evenodd" d="M 15 4.5L 15 2L 11.5 5.5L 15 9L 15 6.5L 31 6.5L 31 9L 34.5 5.5L 31 2L 31 4.5Z"></path>
9
+ </g>
10
+ </svg>`,r.body.appendChild(n)})(t,r),()=>{nK(t)?.remove()})},preventTextSelection:({scope:e})=>(e=>{let t=e.getDoc(),r=t.documentElement,n=t.body;return n.style.pointerEvents="none",r.style.userSelect="none",r.style.cursor="ew-resize",()=>{n.style.pointerEvents="",r.style.userSelect="",r.style.cursor="",r.style.length||r.removeAttribute("style"),n.style.length||n.removeAttribute("style")}})(e),trackButtonDisabled({context:e,scope:t,send:r}){var n,i;let o,a,s,l=e.get("hint"),u=(o=null,"increment"===l&&(o=(n=t).getById((a=n,a.ids?.incrementTrigger??`number-input:${a.id}:inc`))),"decrement"===l&&(o=(i=t).getById((s=i,s.ids?.decrementTrigger??`number-input:${s.id}:dec`))),o);return(0,eg.mx)(u,{attributes:["disabled"],callback(){r({type:"TRIGGER.PRESS_UP",src:"attr"})}})},attachWheelListener({scope:e,send:t,prop:r}){let n=nG(e);if(n&&e.isActiveElement(n)&&r("allowMouseWheel"))return(0,eg.kn)(n,"wheel",function(e){e.preventDefault();let r=-1*Math.sign(e.deltaY);1===r?t({type:"VALUE.INCREMENT"}):-1===r&&t({type:"VALUE.DECREMENT"})},{passive:!1})},activatePointerLock({scope:e}){if(!(0,eg.nr)())return(0,eg.zn)(e.getDoc())},trackMousemove({scope:e,send:t,context:r,computed:n}){let i=e.getDoc();return(0,K.OK)((0,eg.kn)(i,"mousemove",function(i){let o=((e,t)=>{let{point:r,isRtl:n,event:i}=t,o=e.getWin(),a=(0,K.Gy)(i.movementX,o.devicePixelRatio),s=(0,K.Gy)(i.movementY,o.devicePixelRatio),l=a>0?"increment":a<0?"decrement":null;n&&"increment"===l&&(l="decrement"),n&&"decrement"===l&&(l="increment");let u={x:r.x+a,y:r.y+s},c=o.innerWidth,d=(0,K.Gy)(7.5,o.devicePixelRatio);return u.x=(0,K.LV)(u.x+d,c)-d,{hint:l,point:u}})(e,{point:r.get("scrubberCursorPoint"),isRtl:n("isRtl"),event:i});o.hint&&t({type:"SCRUBBER.POINTER_MOVE",hint:o.hint,point:o.point})},!1),(0,eg.kn)(i,"mouseup",function(){t({type:"SCRUBBER.POINTER_UP"})},!1))}},actions:{focusInput({scope:e,prop:t}){if(!t("focusInputOnChange"))return;let r=nG(e);e.isActiveElement(r)||(0,eg.er)(()=>r?.focus({preventScroll:!0}))},increment({context:e,event:t,prop:r,computed:n}){let i=(0,K.tp)(n("valueAsNumber"),t.step??r("step"));r("allowOverflow")||(i=(0,K.L3)(i,r("min"),r("max"))),e.set("value",nQ(i,{computed:n,prop:r}))},decrement({context:e,event:t,prop:r,computed:n}){let i=(0,K.VJ)(n("valueAsNumber"),t.step??r("step"));r("allowOverflow")||(i=(0,K.L3)(i,r("min"),r("max"))),e.set("value",nQ(i,{computed:n,prop:r}))},setClampedValue({context:e,prop:t,computed:r}){let n=(0,K.L3)(r("valueAsNumber"),t("min"),t("max"));e.set("value",nQ(n,{computed:r,prop:t}))},setRawValue({context:e,event:t,prop:r,computed:n}){let i=nX(t.value,{computed:n,prop:r});r("allowOverflow")||(i=(0,K.L3)(i,r("min"),r("max"))),e.set("value",nQ(i,{computed:n,prop:r}))},setValue({context:e,event:t}){let r=t.target?.value??t.value;e.set("value",r)},clearValue({context:e}){e.set("value","")},incrementToMax({context:e,prop:t,computed:r}){let n=nQ(t("max"),{computed:r,prop:t});e.set("value",n)},decrementToMin({context:e,prop:t,computed:r}){let n=nQ(t("min"),{computed:r,prop:t});e.set("value",n)},setHint({context:e,event:t}){e.set("hint",t.hint)},clearHint({context:e}){e.set("hint",null)},invokeOnFocus({computed:e,prop:t}){t("onFocusChange")?.({focused:!0,value:e("formattedValue"),valueAsNumber:e("valueAsNumber")})},invokeOnBlur({computed:e,prop:t}){t("onFocusChange")?.({focused:!1,value:e("formattedValue"),valueAsNumber:e("valueAsNumber")})},invokeOnInvalid({computed:e,prop:t,event:r}){if("INPUT.CHANGE"===r.type)return;let n=e("valueAsNumber")>t("max")?"rangeOverflow":"rangeUnderflow";t("onValueInvalid")?.({reason:n,value:e("formattedValue"),valueAsNumber:e("valueAsNumber")})},syncInputElement({context:e,event:t,computed:r,scope:n}){let i=t.type.endsWith("CHANGE")?e.get("value"):r("formattedValue"),o=nG(n),a=t.selection;(0,eg.er)(()=>{(0,eg.U4)(o,i),function(e,t,r){if(e&&r.isActiveElement(e)){if(!t){let t=e.value.length;e.setSelectionRange(t,t);return}try{let r=e.value,{start:n,end:i,value:o}=t;if(r===o)return void e.setSelectionRange(n,i);let a=nY(o,r,n),s=n===i?a:nY(o,r,i),l=Math.max(0,Math.min(a,r.length)),u=Math.max(l,Math.min(s,r.length));e.setSelectionRange(l,u)}catch{let t=e.value.length;e.setSelectionRange(t,t)}}}(o,a,n)})},setFormattedValue({context:e,computed:t}){e.set("value",t("formattedValue"))},setCursorPoint({context:e,event:t}){e.set("scrubberCursorPoint",t.point)},clearCursorPoint({context:e}){e.set("scrubberCursorPoint",null)},setVirtualCursorPosition({context:e,scope:t}){let r=nK(t),n=e.get("scrubberCursorPoint");r&&n&&(r.style.transform=`translate3d(${n.x}px, ${n.y}px, 0px)`)}}}});var n5=(0,ex.x)()(["allowMouseWheel","allowOverflow","clampValueOnBlur","dir","disabled","focusInputOnChange","form","formatOptions","getRootNode","id","ids","inputMode","invalid","locale","max","min","name","onFocusChange","onValueChange","onValueInvalid","pattern","required","readOnly","spinOnPress","step","translations","value","defaultValue"]);(0,K.PM)(n5);let n3=(0,i.H2)({display:"flex",justifyContent:"center",alignItems:"center",flex:"1",userSelect:"none",cursor:"button",lineHeight:"1",color:"fg.muted","--stepper-base-radius":"radii.l1","--stepper-radius":"calc(var(--stepper-base-radius) + 1px)",_icon:{boxSize:"1em"},_disabled:{opacity:"0.5"},_hover:{bg:"bg.muted"},_active:{bg:"bg.emphasized"}}),n4=(0,i.i_)({className:"chakra-number-input",slots:n$.keys(),base:{root:{position:"relative",zIndex:"0",isolation:"isolate"},input:{...N.base,verticalAlign:"top",pe:"calc(var(--stepper-width) + 0.5rem)"},control:{display:"flex",flexDirection:"column",position:"absolute",top:"0",insetEnd:"0px",margin:"1px",width:"var(--stepper-width)",height:"calc(100% - 2px)",zIndex:"1",borderStartWidth:"1px",divideY:"1px"},incrementTrigger:{...n3,borderTopEndRadius:"var(--stepper-radius)"},decrementTrigger:{...n3,borderBottomEndRadius:"var(--stepper-radius)"},valueText:{fontWeight:"medium",fontFeatureSettings:"pnum",fontVariantNumeric:"proportional-nums"}},variants:{size:{xs:{input:N.variants.size.xs,control:{fontSize:"2xs","--stepper-width":"sizes.4"}},sm:{input:N.variants.size.sm,control:{fontSize:"xs","--stepper-width":"sizes.5"}},md:{input:N.variants.size.md,control:{fontSize:"sm","--stepper-width":"sizes.6"}},lg:{input:N.variants.size.lg,control:{fontSize:"sm","--stepper-width":"sizes.6"}}},variant:(0,n_.N)(N.variants.variant,(e,t)=>[e,{input:t}])},defaultVariants:{size:"md",variant:"outline"}});var n6=(0,G.y)("pinInput").parts("root","label","input","control");n6.build();var n8=e=>e.ids?.root??`pin-input:${e.id}`,n7=e=>{let t=CSS.escape(n8(e)),r=`input[data-ownedby=${t}]`;return(0,eg.YG)((e=>e.getById(n8(e)))(e),r)},n9=(e,t)=>n7(e)[t],ie=e=>e.getById((e=>e.ids?.hiddenInput??`pin-input:${e.id}:hidden`)(e)),it=(e,t)=>{e.value=t,e.setAttribute("value",t)},{choose:ir,createMachine:ii}=(0,eb.mj)();function io(e,t){let r=t;e[0]===t[0]?r=t[1]:e[0]===t[1]&&(r=t[0]);let n=r.split("");return(r=n[n.length-1])??""}function ia(e,t){return Array.from({length:t}).fill("").map((t,r)=>e[r]||t)}ii({props:({props:e})=>({placeholder:"○",otp:!1,type:"numeric",defaultValue:e.count?ia([],e.count):[],...e,translations:{inputLabel:(e,t)=>`pin code ${e+1} of ${t}`,...e.translations}}),initialState:()=>"idle",context:({prop:e,bindable:t})=>({value:t(()=>({value:e("value"),defaultValue:e("defaultValue"),isEqual:K.n4,onChange(t){e("onValueChange")?.({value:t,valueAsString:t.join("")})}})),focusedIndex:t(()=>({sync:!0,defaultValue:-1})),count:t(()=>({defaultValue:e("count")}))}),computed:{_value:({context:e})=>ia(e.get("value"),e.get("count")),valueLength:({computed:e})=>e("_value").length,filledValueLength:({computed:e})=>e("_value").filter(e=>e?.trim()!=="").length,isValueComplete:({computed:e})=>e("valueLength")===e("filledValueLength"),valueAsString:({computed:e})=>e("_value").join(""),focusedValue:({computed:e,context:t})=>e("_value")[t.get("focusedIndex")]||""},entry:ir([{guard:"autoFocus",actions:["setInputCount","setFocusIndexToFirst"]},{actions:["setInputCount"]}]),watch({action:e,track:t,context:r,computed:n}){t([()=>r.get("focusedIndex")],()=>{e(["focusInput","selectInputIfNeeded"])}),t([()=>r.get("value").join(",")],()=>{e(["syncInputElements","dispatchInputEvent"])}),t([()=>n("isValueComplete")],()=>{e(["invokeOnComplete","blurFocusedInputIfNeeded"])})},on:{"VALUE.SET":[{guard:"hasIndex",actions:["setValueAtIndex"]},{actions:["setValue"]}],"VALUE.CLEAR":{actions:["clearValue","setFocusIndexToFirst"]}},states:{idle:{on:{"INPUT.FOCUS":{target:"focused",actions:["setFocusedIndex"]}}},focused:{on:{"INPUT.CHANGE":{actions:["setFocusedValue","syncInputValue","setNextFocusedIndex"]},"INPUT.PASTE":{actions:["setPastedValue","setLastValueFocusIndex"]},"INPUT.FOCUS":{actions:["setFocusedIndex"]},"INPUT.BLUR":{target:"idle",actions:["clearFocusedIndex"]},"INPUT.DELETE":{guard:"hasValue",actions:["clearFocusedValue"]},"INPUT.ARROW_LEFT":{actions:["setPrevFocusedIndex"]},"INPUT.ARROW_RIGHT":{actions:["setNextFocusedIndex"]},"INPUT.BACKSPACE":[{guard:"hasValue",actions:["clearFocusedValue"]},{actions:["setPrevFocusedIndex","clearFocusedValue"]}],"INPUT.ENTER":{guard:"isValueComplete",actions:["requestFormSubmit"]},"VALUE.INVALID":{actions:["invokeOnInvalid"]}}}},implementations:{guards:{autoFocus:({prop:e})=>!!e("autoFocus"),hasValue:({context:e})=>""!==e.get("value")[e.get("focusedIndex")],isValueComplete:({computed:e})=>e("isValueComplete"),hasIndex:({event:e})=>void 0!==e.index},actions:{dispatchInputEvent({computed:e,scope:t}){let r=ie(t);(0,eg.CF)(r,{value:e("valueAsString")})},setInputCount({scope:e,context:t,prop:r}){if(r("count"))return;let n=n7(e);t.set("count",n.length)},focusInput({context:e,scope:t}){let r=e.get("focusedIndex");-1!==r&&n9(t,r)?.focus({preventScroll:!0})},selectInputIfNeeded({context:e,prop:t,scope:r}){let n=e.get("focusedIndex");t("selectOnFocus")&&-1!==n&&(0,eg.er)(()=>{n9(r,n)?.select()})},invokeOnComplete({computed:e,prop:t}){e("isValueComplete")&&t("onValueComplete")?.({value:e("_value"),valueAsString:e("valueAsString")})},invokeOnInvalid({context:e,event:t,prop:r}){r("onValueInvalid")?.({value:t.value,index:e.get("focusedIndex")})},clearFocusedIndex({context:e}){e.set("focusedIndex",-1)},setFocusedIndex({context:e,event:t}){e.set("focusedIndex",t.index)},setValue({context:e,event:t}){let r=ia(t.value,e.get("count"));e.set("value",r)},setFocusedValue({context:e,event:t,computed:r,flush:n}){let i=r("focusedValue"),o=e.get("focusedIndex"),a=io(i,t.value);n(()=>{e.set("value",(0,K.JT)(r("_value"),o,a))})},revertInputValue({context:e,computed:t,scope:r}){it(n9(r,e.get("focusedIndex")),t("focusedValue"))},syncInputValue({context:e,event:t,scope:r}){let n=e.get("value");it(n9(r,t.index),n[t.index])},syncInputElements({context:e,scope:t}){let r=n7(t),n=e.get("value");r.forEach((e,t)=>{it(e,n[t])})},setPastedValue({context:e,event:t,computed:r,flush:n}){(0,eg.er)(()=>{let i=r("valueAsString"),o=e.get("focusedIndex"),a=r("valueLength"),s=Math.min(o,r("filledValueLength")),l=s>0?i.substring(0,o):"",u=t.value.substring(0,a-s),c=ia(`${l}${u}`.split(""),a);n(()=>{e.set("value",c)})})},setValueAtIndex({context:e,event:t,computed:r}){let n=io(r("focusedValue"),t.value);e.set("value",(0,K.JT)(r("_value"),t.index,n))},clearValue({context:e}){let t=Array.from({length:e.get("count")}).fill("");queueMicrotask(()=>{e.set("value",t)})},clearFocusedValue({context:e,computed:t}){let r=e.get("focusedIndex");-1!==r&&e.set("value",(0,K.JT)(t("_value"),r,""))},setFocusIndexToFirst({context:e}){e.set("focusedIndex",0)},setNextFocusedIndex({context:e,computed:t}){e.set("focusedIndex",Math.min(e.get("focusedIndex")+1,t("valueLength")-1))},setPrevFocusedIndex({context:e}){e.set("focusedIndex",Math.max(e.get("focusedIndex")-1,0))},setLastValueFocusIndex({context:e,computed:t}){(0,eg.er)(()=>{e.set("focusedIndex",Math.min(t("filledValueLength"),t("valueLength")-1))})},blurFocusedInputIfNeeded({context:e,prop:t,scope:r}){t("blurOnComplete")&&(0,eg.er)(()=>{n9(r,e.get("focusedIndex"))?.blur()})},requestFormSubmit({computed:e,prop:t,scope:r}){if(!t("name")||!e("isValueComplete"))return;let n=ie(r);n?.form?.requestSubmit()}}}});var is=(0,ex.x)()(["autoFocus","blurOnComplete","count","defaultValue","dir","disabled","form","getRootNode","id","ids","invalid","mask","name","onValueChange","onValueComplete","onValueInvalid","otp","pattern","placeholder","readOnly","required","selectOnFocus","translations","type","value"]);(0,K.PM)(is);let{variants:il,defaultVariants:iu}=N,ic=(0,i.i_)({className:"chakra-pin-input",slots:n6.keys(),base:{input:{...N.base,textAlign:"center",width:"var(--input-height)"},control:{display:"inline-flex",gap:"2",isolation:"isolate"}},variants:{size:(0,n_.N)(il.size,(e,t)=>[e,{input:{...t,px:"1"}}]),variant:(0,n_.N)(il.variant,(e,t)=>[e,{input:t}]),attached:{true:{control:{gap:"0",spaceX:"-1px"},input:{_notFirst:{borderStartRadius:"0"},_notLast:{borderEndRadius:"0"},_focusVisible:{zIndex:"1"}}}}},defaultVariants:iu}),id=(0,i.i_)({className:"chakra-popover",slots:rL.keys(),base:{content:{position:"relative",display:"flex",flexDirection:"column",textStyle:"sm","--popover-bg":"colors.bg.panel",bg:"var(--popover-bg)",boxShadow:"lg","--popover-size":"sizes.xs","--popover-mobile-size":"calc(100dvw - 1rem)",width:{base:"min(var(--popover-mobile-size), var(--popover-size))",sm:"var(--popover-size)"},borderRadius:"l3","--popover-z-index":"zIndex.popover",zIndex:"calc(var(--popover-z-index) + var(--layer-index, 0))",outline:"0",transformOrigin:"var(--transform-origin)",maxHeight:"var(--available-height)",_open:{animationStyle:"scale-fade-in",animationDuration:"fast"},_closed:{animationStyle:"scale-fade-out",animationDuration:"faster"}},header:{paddingInline:"var(--popover-padding)",paddingTop:"var(--popover-padding)"},body:{padding:"var(--popover-padding)",flex:"1"},footer:{display:"flex",alignItems:"center",paddingInline:"var(--popover-padding)",paddingBottom:"var(--popover-padding)"},arrow:{"--arrow-size":"sizes.3","--arrow-background":"var(--popover-bg)"},arrowTip:{borderTopWidth:"1px",borderInlineStartWidth:"1px"}},variants:{size:{xs:{content:{"--popover-padding":"spacing.3"}},sm:{content:{"--popover-padding":"spacing.4"}},md:{content:{"--popover-padding":"spacing.5"}},lg:{content:{"--popover-padding":"spacing.6"}}}},defaultVariants:{size:"md"}});var ih=r(60140);let ip=(0,i.i_)({slots:ih.MI.keys(),className:"chakra-progress",base:{root:{textStyle:"sm",position:"relative"},track:{overflow:"hidden",position:"relative"},range:{display:"flex",alignItems:"center",justifyContent:"center",transitionProperty:"width, height",transitionDuration:"slow",height:"100%",bgColor:"var(--track-color)",_indeterminate:{"--animate-from-x":"-40%","--animate-to-x":"100%",position:"absolute",willChange:"left",minWidth:"50%",animation:"position 1s ease infinite normal none running",backgroundImage:"linear-gradient(to right, transparent 0%, var(--track-color) 50%, transparent 100%)"}},label:{display:"inline-flex",fontWeight:"medium",alignItems:"center",gap:"1"},valueText:{textStyle:"xs",lineHeight:"1",fontWeight:"medium"}},variants:{variant:{outline:{track:{shadow:"inset",bgColor:"bg.muted"},range:{bgColor:"colorPalette.solid"}},subtle:{track:{bgColor:"colorPalette.muted"},range:{bgColor:"colorPalette.solid/72"}}},shape:{square:{},rounded:{track:{borderRadius:"l1"}},full:{track:{borderRadius:"full"}}},striped:{true:{range:{backgroundImage:"linear-gradient(45deg, var(--stripe-color) 25%, transparent 25%, transparent 50%, var(--stripe-color) 50%, var(--stripe-color) 75%, transparent 75%, transparent)",backgroundSize:"var(--stripe-size) var(--stripe-size)","--stripe-size":"1rem","--stripe-color":{_light:"rgba(255, 255, 255, 0.3)",_dark:"rgba(0, 0, 0, 0.3)"}}}},animated:{true:{range:{"--animate-from":"var(--stripe-size)",animation:"bg-position 1s linear infinite"}}},size:{xs:{track:{h:"1.5"}},sm:{track:{h:"2"}},md:{track:{h:"2.5"}},lg:{track:{h:"3"}},xl:{track:{h:"4"}}}},defaultVariants:{variant:"outline",size:"md",shape:"rounded"}}),ig=(0,i.i_)({className:"chakra-progress-circle",slots:ih.MI.keys(),base:{root:{display:"inline-flex",textStyle:"sm",position:"relative"},circle:{_indeterminate:{animation:"spin 2s linear infinite"}},circleTrack:{"--track-color":"colors.colorPalette.muted",stroke:"var(--track-color)"},circleRange:{stroke:"colorPalette.solid",transitionProperty:"stroke-dashoffset, stroke-dasharray",transitionDuration:"0.6s",_indeterminate:{animation:"circular-progress 1.5s linear infinite"}},label:{display:"inline-flex"},valueText:{lineHeight:"1",fontWeight:"medium",letterSpacing:"tight",fontVariantNumeric:"tabular-nums"}},variants:{size:{xs:{circle:{"--size":"24px","--thickness":"4px"},valueText:{textStyle:"2xs"}},sm:{circle:{"--size":"32px","--thickness":"5px"},valueText:{textStyle:"2xs"}},md:{circle:{"--size":"40px","--thickness":"6px"},valueText:{textStyle:"xs"}},lg:{circle:{"--size":"48px","--thickness":"7px"},valueText:{textStyle:"sm"}},xl:{circle:{"--size":"64px","--thickness":"8px"},valueText:{textStyle:"sm"}}}},defaultVariants:{size:"md"}});var iv=(e=>(e[e.Border=-1]="Border",e[e.Data=0]="Data",e[e.Function=1]="Function",e[e.Position=2]="Position",e[e.Timing=3]="Timing",e[e.Alignment=4]="Alignment",e))(iv||{}),im=Object.defineProperty,ib=(e,t,r)=>(((e,t,r)=>t in e?im(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r)(e,"symbol"!=typeof t?t+"":t,r),r);let iy=[1,0],ix=[2,3],iw=[3,2],iS={L:[0,1],M:iy,Q:ix,H:iw},iE=/^[0-9]*$/,ik=/^[A-Z0-9 $%*+.\/:-]*$/,iC="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",iO=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],iI=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]];class i_{constructor(e,t,r,n){if(this.version=e,this.ecc=t,ib(this,"size"),ib(this,"mask"),ib(this,"modules",[]),ib(this,"types",[]),e<1||e>40)throw RangeError("Version value out of range");if(n<-1||n>7)throw RangeError("Mask value out of range");this.size=4*e+17;let i=Array.from({length:this.size},()=>!1);for(let e=0;e<this.size;e++)this.modules.push(i.slice()),this.types.push(i.map(()=>0));this.drawFunctionPatterns();let o=this.addEccAndInterleave(r);if(this.drawCodewords(o),-1===n){let e=1e9;for(let t=0;t<8;t++){this.applyMask(t),this.drawFormatBits(t);let r=this.getPenaltyScore();r<e&&(n=t,e=r),this.applyMask(t)}}this.mask=n,this.applyMask(n),this.drawFormatBits(n)}getModule(e,t){return e>=0&&e<this.size&&t>=0&&t<this.size&&this.modules[t][e]}drawFunctionPatterns(){for(let e=0;e<this.size;e++)this.setFunctionModule(6,e,e%2==0,iv.Timing),this.setFunctionModule(e,6,e%2==0,iv.Timing);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);let e=this.getAlignmentPatternPositions(),t=e.length;for(let r=0;r<t;r++)for(let n=0;n<t;n++)(0!==r||0!==n)&&(0!==r||n!==t-1)&&(r!==t-1||0!==n)&&this.drawAlignmentPattern(e[r],e[n]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(e){let t=this.ecc[1]<<3|e,r=t;for(let e=0;e<10;e++)r=r<<1^(r>>>9)*1335;let n=(t<<10|r)^21522;for(let e=0;e<=5;e++)this.setFunctionModule(8,e,iP(n,e));this.setFunctionModule(8,7,iP(n,6)),this.setFunctionModule(8,8,iP(n,7)),this.setFunctionModule(7,8,iP(n,8));for(let e=9;e<15;e++)this.setFunctionModule(14-e,8,iP(n,e));for(let e=0;e<8;e++)this.setFunctionModule(this.size-1-e,8,iP(n,e));for(let e=8;e<15;e++)this.setFunctionModule(8,this.size-15+e,iP(n,e));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let e=this.version;for(let t=0;t<12;t++)e=e<<1^(e>>>11)*7973;let t=this.version<<12|e;for(let e=0;e<18;e++){let r=iP(t,e),n=this.size-11+e%3,i=Math.floor(e/3);this.setFunctionModule(n,i,r),this.setFunctionModule(i,n,r)}}drawFinderPattern(e,t){for(let r=-4;r<=4;r++)for(let n=-4;n<=4;n++){let i=Math.max(Math.abs(n),Math.abs(r)),o=e+n,a=t+r;o>=0&&o<this.size&&a>=0&&a<this.size&&this.setFunctionModule(o,a,2!==i&&4!==i,iv.Position)}}drawAlignmentPattern(e,t){for(let r=-2;r<=2;r++)for(let n=-2;n<=2;n++)this.setFunctionModule(e+n,t+r,1!==Math.max(Math.abs(n),Math.abs(r)),iv.Alignment)}setFunctionModule(e,t,r,n=iv.Function){this.modules[t][e]=r,this.types[t][e]=n}addEccAndInterleave(e){let t=this.version,r=this.ecc;if(e.length!==iF(t,r))throw RangeError("Invalid argument");let n=iI[r[0]][t],i=iO[r[0]][t],o=Math.floor(iD(t)/8),a=n-o%n,s=Math.floor(o/n),l=[],u=function(e){if(e<1||e>255)throw RangeError("Degree out of range");let t=[];for(let r=0;r<e-1;r++)t.push(0);t.push(1);let r=1;for(let n=0;n<e;n++){for(let e=0;e<t.length;e++)t[e]=ij(t[e],r),e+1<t.length&&(t[e]^=t[e+1]);r=ij(r,2)}return t}(i);for(let t=0,r=0;t<n;t++){let n=e.slice(r,r+s-i+(t<a?0:1));r+=n.length;let o=function(e,t){let r=t.map(e=>0);for(let n of e){let e=n^r.shift();r.push(0),t.forEach((t,n)=>r[n]^=ij(t,e))}return r}(n,u);t<a&&n.push(0),l.push(n.concat(o))}let c=[];for(let e=0;e<l[0].length;e++)l.forEach((t,r)=>{(e!==s-i||r>=a)&&c.push(t[e])});return c}drawCodewords(e){if(e.length!==Math.floor(iD(this.version)/8))throw RangeError("Invalid argument");let t=0;for(let r=this.size-1;r>=1;r-=2){6===r&&(r=5);for(let n=0;n<this.size;n++)for(let i=0;i<2;i++){let o=r-i,a=(r+1&2)==0?this.size-1-n:n;!this.types[a][o]&&t<8*e.length&&(this.modules[a][o]=iP(e[t>>>3],7-(7&t)),t++)}}}applyMask(e){if(e<0||e>7)throw RangeError("Mask value out of range");for(let t=0;t<this.size;t++)for(let r=0;r<this.size;r++){let n;switch(e){case 0:n=(r+t)%2==0;break;case 1:n=t%2==0;break;case 2:n=r%3==0;break;case 3:n=(r+t)%3==0;break;case 4:n=(Math.floor(r/3)+Math.floor(t/2))%2==0;break;case 5:n=r*t%2+r*t%3==0;break;case 6:n=(r*t%2+r*t%3)%2==0;break;case 7:n=((r+t)%2+r*t%3)%2==0;break;default:throw Error("Unreachable")}!this.types[t][r]&&n&&(this.modules[t][r]=!this.modules[t][r])}}getPenaltyScore(){let e=0;for(let t=0;t<this.size;t++){let r=!1,n=0,i=[0,0,0,0,0,0,0];for(let o=0;o<this.size;o++)this.modules[t][o]===r?5==++n?e+=3:n>5&&e++:(this.finderPenaltyAddHistory(n,i),r||(e+=40*this.finderPenaltyCountPatterns(i)),r=this.modules[t][o],n=1);e+=40*this.finderPenaltyTerminateAndCount(r,n,i)}for(let t=0;t<this.size;t++){let r=!1,n=0,i=[0,0,0,0,0,0,0];for(let o=0;o<this.size;o++)this.modules[o][t]===r?5==++n?e+=3:n>5&&e++:(this.finderPenaltyAddHistory(n,i),r||(e+=40*this.finderPenaltyCountPatterns(i)),r=this.modules[o][t],n=1);e+=40*this.finderPenaltyTerminateAndCount(r,n,i)}for(let t=0;t<this.size-1;t++)for(let r=0;r<this.size-1;r++){let n=this.modules[t][r];n===this.modules[t][r+1]&&n===this.modules[t+1][r]&&n===this.modules[t+1][r+1]&&(e+=3)}let t=0;for(let e of this.modules)t=e.reduce((e,t)=>e+ +!!t,t);let r=this.size*this.size;return e+(Math.ceil(Math.abs(20*t-10*r)/r)-1)*10}getAlignmentPatternPositions(){if(1===this.version)return[];{let e=Math.floor(this.version/7)+2,t=32===this.version?26:2*Math.ceil((4*this.version+4)/(2*e-2)),r=[6];for(let n=this.size-7;r.length<e;n-=t)r.splice(1,0,n);return r}}finderPenaltyCountPatterns(e){let t=e[1],r=t>0&&e[2]===t&&e[3]===3*t&&e[4]===t&&e[5]===t;return(r&&e[0]>=4*t&&e[6]>=t?1:0)+(r&&e[6]>=4*t&&e[0]>=t?1:0)}finderPenaltyTerminateAndCount(e,t,r){return e&&(this.finderPenaltyAddHistory(t,r),t=0),t+=this.size,this.finderPenaltyAddHistory(t,r),this.finderPenaltyCountPatterns(r)}finderPenaltyAddHistory(e,t){0===t[0]&&(e+=this.size),t.pop(),t.unshift(e)}}function iT(e,t,r){if(t<0||t>31||e>>>t!=0)throw RangeError("Value out of range");for(let n=t-1;n>=0;n--)r.push(e>>>n&1)}function iP(e,t){return(e>>>t&1)!=0}class iR{constructor(e,t,r){if(this.mode=e,this.numChars=t,this.bitData=r,t<0)throw RangeError("Invalid argument");this.bitData=r.slice()}getData(){return this.bitData.slice()}}let iA=[1,10,12,14],iN=[2,9,11,13],iM=[4,8,16,16];function iL(e,t){return e[Math.floor((t+7)/17)+1]}function iV(e){let t=[];for(let r of e)iT(r,8,t);return new iR(iM,e.length,t)}function iD(e){if(e<1||e>40)throw RangeError("Version number out of range");let t=(16*e+128)*e+64;if(e>=2){let r=Math.floor(e/7)+2;t-=(25*r-10)*r-55,e>=7&&(t-=36)}return t}function iF(e,t){return Math.floor(iD(e)/8)-iO[t[0]][e]*iI[t[0]][e]}function ij(e,t){if(e>>>8!=0||t>>>8!=0)throw RangeError("Byte out of range");let r=0;for(let n=7;n>=0;n--)r=r<<1^(r>>>7)*285^(t>>>n&1)*e;return r}var iz=(0,G.y)("qr-code").parts("root","frame","pattern","overlay","downloadTrigger");iz.build(),(0,eb.Op)({props:({props:e})=>({defaultValue:"",pixelSize:10,...e}),initialState:()=>"idle",context:({prop:e,bindable:t})=>({value:t(()=>({value:e("value"),defaultValue:e("defaultValue"),onChange(t){e("onValueChange")?.({value:t})}}))}),computed:{encoded:(0,eb.ph)(({context:e,prop:t})=>[e.get("value"),t("encoding")],([e,t])=>(function(e,t){let{ecc:r="L",boostEcc:n=!1,minVersion:i=1,maxVersion:o=40,maskPattern:a=-1,border:s=1}=t||{},l="string"==typeof e?function(e){var t,r;if(""===e)return[];if(t=e,iE.test(t))return[function(e){var t;if(t=e,!iE.test(t))throw RangeError("String contains non-numeric characters");let r=[];for(let t=0;t<e.length;){let n=Math.min(e.length-t,3);iT(Number.parseInt(e.substring(t,t+n),10),3*n+1,r),t+=n}return new iR(iA,e.length,r)}(e)];return(r=e,ik.test(r))?[function(e){var t;let r;if(t=e,!ik.test(t))throw RangeError("String contains unencodable characters in alphanumeric mode");let n=[];for(r=0;r+2<=e.length;r+=2){let t=45*iC.indexOf(e.charAt(r));iT(t+=iC.indexOf(e.charAt(r+1)),11,n)}return r<e.length&&iT(iC.indexOf(e.charAt(r)),6,n),new iR(iN,e.length,n)}(e)]:[iV(function(e){e=encodeURI(e);let t=[];for(let r=0;r<e.length;r++)"%"!==e.charAt(r)?t.push(e.charCodeAt(r)):(t.push(Number.parseInt(e.substring(r+1,r+3),16)),r+=2);return t}(e))]}(e):Array.isArray(e)?[iV(e)]:void 0;if(!l)throw Error(`uqr only supports encoding string and binary data, but got: ${typeof e}`);let u=function(e,t,r=1,n=40,i=-1,o=!0){let a,s;if(!(1<=r&&r<=n&&n<=40)||i<-1||i>7)throw RangeError("Invalid value");for(a=r;;a++){let r=8*iF(a,t),i=function(e,t){let r=0;for(let n of e){let e=iL(n.mode,t);if(n.numChars>=1<<e)return 1/0;r+=4+e+n.bitData.length}return r}(e,a);if(i<=r){s=i;break}if(a>=n)throw RangeError("Data too long")}for(let e of[iy,ix,iw])o&&s<=8*iF(a,e)&&(t=e);let l=[];for(let t of e)for(let e of(iT(t.mode[0],4,l),iT(t.numChars,iL(t.mode,a),l),t.getData()))l.push(e);let u=8*iF(a,t);iT(0,Math.min(4,u-l.length),l),iT(0,(8-l.length%8)%8,l);for(let e=236;l.length<u;e^=253)iT(e,8,l);let c=Array.from({length:Math.ceil(l.length/8)},()=>0);return l.forEach((e,t)=>c[t>>>3]|=e<<7-(7&t)),new i_(a,t,c,i)}(l,iS[r],i,o,a,n),c=function(e,t=1){if(!t)return e;let{size:r}=e,n=r+2*t;e.size=n,e.data.forEach(e=>{for(let r=0;r<t;r++)e.unshift(!1),e.push(!1)});for(let r=0;r<t;r++)e.data.unshift(Array.from({length:n},e=>!1)),e.data.push(Array.from({length:n},e=>!1));let i=iv.Border;e.types.forEach(e=>{for(let r=0;r<t;r++)e.unshift(i),e.push(i)});for(let r=0;r<t;r++)e.types.unshift(Array.from({length:n},e=>i)),e.types.push(Array.from({length:n},e=>i));return e}({version:u.version,maskPattern:u.mask,size:u.size,data:u.modules,types:u.types},s);return t?.invert&&(c.data=c.data.map(e=>e.map(e=>!e))),t?.onEncoded?.(c),c})(e,t))},states:{idle:{on:{"VALUE.SET":{actions:["setValue"]},"DOWNLOAD_TRIGGER.CLICK":{actions:["downloadQrCode"]}}}},implementations:{actions:{setValue({context:e,event:t}){e.set("value",t.value)},downloadQrCode({event:e,scope:t}){let{mimeType:r,quality:n,fileName:i}=e,o=t.getById(t.ids?.frame??`qrcode:${t.id}:frame`),a=t.getDoc();(0,eg.kf)(o,{type:r,quality:n}).then(e=>{let t=a.createElement("a");t.href=e,t.rel="noopener",t.download=i,t.click(),setTimeout(()=>{t.remove()},0)})}}}});var iB=(0,ex.x)()(["ids","defaultValue","value","id","encoding","dir","getRootNode","onValueChange","pixelSize"]);(0,K.PM)(iB);let iU=(0,i.i_)({slots:iz.keys(),className:"chakra-qr-code",base:{root:{position:"relative",width:"fit-content","--qr-code-overlay-size":"calc(var(--qr-code-size) / 3)"},frame:{width:"var(--qr-code-size)",height:"var(--qr-code-size)",fill:"currentColor"},overlay:{display:"flex",alignItems:"center",justifyContent:"center",width:"var(--qr-code-overlay-size)",height:"var(--qr-code-overlay-size)",padding:"1",bg:"bg",rounded:"l1"}},variants:{size:{"2xs":{root:{"--qr-code-size":"40px"}},xs:{root:{"--qr-code-size":"64px"}},sm:{root:{"--qr-code-size":"80px"}},md:{root:{"--qr-code-size":"120px"}},lg:{root:{"--qr-code-size":"160px"}},xl:{root:{"--qr-code-size":"200px"}},"2xl":{root:{"--qr-code-size":"240px"}},full:{root:{"--qr-code-size":"100%"}}}},defaultVariants:{size:"md"}}),iH=(0,i.i_)({className:"chakra-radio-card",slots:rD.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5",isolation:"isolate"},item:{flex:"1",display:"flex",flexDirection:"column",userSelect:"none",position:"relative",borderRadius:"l2",_focus:{bg:"colorPalette.muted/20"},_disabled:{opacity:"0.8",borderColor:"border.disabled"},_checked:{zIndex:"1"}},label:{display:"inline-flex",fontWeight:"medium",textStyle:"sm",_disabled:{opacity:"0.5"}},itemText:{fontWeight:"medium",flex:"1"},itemDescription:{opacity:"0.64",textStyle:"sm"},itemControl:{display:"inline-flex",flex:"1",pos:"relative",rounded:"inherit",justifyContent:"var(--radio-card-justify)",alignItems:"var(--radio-card-align)",_disabled:{bg:"bg.muted"}},itemIndicator:F.base,itemAddon:{roundedBottom:"inherit",_disabled:{color:"fg.muted"}},itemContent:{display:"flex",flexDirection:"column",flex:"1",gap:"1",justifyContent:"var(--radio-card-justify)",alignItems:"var(--radio-card-align)"}},variants:{size:{sm:{item:{textStyle:"sm"},itemControl:{padding:"3",gap:"1.5"},itemAddon:{px:"3",py:"1.5",borderTopWidth:"1px"},itemIndicator:F.variants?.size.sm},md:{item:{textStyle:"sm"},itemControl:{padding:"4",gap:"2.5"},itemAddon:{px:"4",py:"2",borderTopWidth:"1px"},itemIndicator:F.variants?.size.md},lg:{item:{textStyle:"md"},itemControl:{padding:"4",gap:"3.5"},itemAddon:{px:"4",py:"2",borderTopWidth:"1px"},itemIndicator:F.variants?.size.lg}},variant:{surface:{item:{borderWidth:"1px",_checked:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderColor:"colorPalette.muted"}},itemIndicator:F.variants?.variant.solid},subtle:{item:{bg:"bg.muted"},itemControl:{_checked:{bg:"colorPalette.muted",color:"colorPalette.fg"}},itemIndicator:F.variants?.variant.outline},outline:{item:{borderWidth:"1px",_checked:{boxShadow:"0 0 0 1px var(--shadow-color)",boxShadowColor:"colorPalette.solid",borderColor:"colorPalette.solid"}},itemIndicator:F.variants?.variant.solid},solid:{item:{borderWidth:"1px",_checked:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},itemIndicator:F.variants?.variant.inverted}},justify:{start:{item:{"--radio-card-justify":"flex-start"}},end:{item:{"--radio-card-justify":"flex-end"}},center:{item:{"--radio-card-justify":"center"}}},align:{start:{item:{"--radio-card-align":"flex-start"},itemControl:{textAlign:"start"}},end:{item:{"--radio-card-align":"flex-end"},itemControl:{textAlign:"end"}},center:{item:{"--radio-card-align":"center"},itemControl:{textAlign:"center"}}},orientation:{vertical:{itemControl:{flexDirection:"column"}},horizontal:{itemControl:{flexDirection:"row"}}}},defaultVariants:{size:"md",variant:"outline",align:"start",orientation:"horizontal"}}),iW=(0,i.i_)({className:"chakra-radio-group",slots:rV.keys(),base:{item:{display:"inline-flex",alignItems:"center",position:"relative",fontWeight:"medium",_disabled:{cursor:"disabled"}},itemControl:F.base,label:{userSelect:"none",textStyle:"sm",_disabled:{opacity:"0.5"}}},variants:{variant:{outline:{itemControl:F.variants?.variant?.outline},subtle:{itemControl:F.variants?.variant?.subtle},solid:{itemControl:F.variants?.variant?.solid}},size:{xs:{item:{textStyle:"xs",gap:"1.5"},itemControl:F.variants?.size?.xs},sm:{item:{textStyle:"sm",gap:"2"},itemControl:F.variants?.size?.sm},md:{item:{textStyle:"sm",gap:"2.5"},itemControl:F.variants?.size?.md},lg:{item:{textStyle:"md",gap:"3"},itemControl:F.variants?.size?.lg}}},defaultVariants:{size:"md",variant:"solid"}}),i$=(0,i.i_)({className:"chakra-rating-group",slots:rF.keys(),base:{root:{display:"inline-flex"},control:{display:"inline-flex",alignItems:"center"},item:{display:"inline-flex",alignItems:"center",justifyContent:"center",userSelect:"none"},itemIndicator:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"1em",height:"1em",position:"relative","--clip-path":{base:"inset(0 50% 0 0)",_rtl:"inset(0 0 0 50%)"},_icon:{stroke:"currentColor",width:"100%",height:"100%",display:"inline-block",flexShrink:0,position:"absolute",left:0,top:0},"& [data-bg]":{color:"bg.emphasized"},"& [data-fg]":{color:"transparent"},"&[data-highlighted]:not([data-half])":{"& [data-fg]":{color:"colorPalette.solid"}},"&[data-half]":{"& [data-fg]":{color:"colorPalette.solid",clipPath:"var(--clip-path)"}}}},variants:{size:{xs:{item:{textStyle:"sm"}},sm:{item:{textStyle:"md"}},md:{item:{textStyle:"xl"}},lg:{item:{textStyle:"2xl"}}}},defaultVariants:{size:"md"}});var iq=Object.defineProperty,iG=(e,t,r)=>((e,t,r)=>t in e?iq(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r)(e,"symbol"!=typeof t?t+"":t,r),iK=(0,G.y)("scroll-area").parts("root","viewport","content","scrollbar","thumb","corner");iK.build();var iY=e=>e.ids?.root??`scroll-area-${e.id}`,iX=e=>e.getById(iY(e)),iQ=e=>e.getById((e=>e.ids?.viewport??`scroll-area-${e.id}:viewport`)(e)),iJ=e=>(0,eg.P)(iX(e),`[data-part=scrollbar][data-orientation=horizontal][data-ownedby="${iY(e)}"]`),iZ=e=>(0,eg.P)(iX(e),`[data-part=scrollbar][data-orientation=vertical][data-ownedby="${iY(e)}"]`),i0=e=>(0,eg.P)(iJ(e),`[data-part=thumb][data-orientation=horizontal][data-ownedby="${iY(e)}"]`),i1=e=>(0,eg.P)(iZ(e),`[data-part=thumb][data-orientation=vertical][data-ownedby="${iY(e)}"]`);function i2(e,t,r){if(!e)return 0;let n=(0,eg.L9)(e);return parseFloat(n[`${t}${"x"===r?"Left":"Top"}`])+parseFloat(n[`${t}${"x"===r?"Right":"Bottom"}`])}function i5(e,t){let r=e.scrollTop,n=e.scrollLeft,i=e.scrollHeight-e.clientHeight>1,o=e.scrollWidth-e.clientWidth>1,a=e.scrollWidth-e.clientWidth,s=e.scrollHeight-e.clientHeight,l=!1,u=!1,c=!1,d=!1;return o&&("rtl"===t&&n<=0?(l=Math.abs(n)>=a-1,u=1>=Math.abs(n)):(l=n<=1,u=n>=a-1)),i&&(c=r<=1,d=r>=s-1),{top:c,right:u,bottom:d,left:l}}var i3=class{constructor(){iG(this,"currentId",0),iG(this,"clear",()=>{0!==this.currentId&&(clearTimeout(this.currentId),this.currentId=0)}),iG(this,"disposeEffect",()=>this.clear)}start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=0,t()},e)}isStarted(){return 0!==this.currentId}};(0,eb.Op)({props:({props:e})=>({id:"sv",...e}),context:({bindable:e})=>({scrollingX:e(()=>({defaultValue:!1})),scrollingY:e(()=>({defaultValue:!1})),hovering:e(()=>({defaultValue:!1})),dragging:e(()=>({defaultValue:!1})),touchModality:e(()=>({defaultValue:!1})),atSides:e(()=>({defaultValue:{top:!0,right:!1,bottom:!1,left:!0}})),cornerSize:e(()=>({defaultValue:{width:0,height:0}})),thumbSize:e(()=>({defaultValue:{width:0,height:0}})),hiddenState:e(()=>({defaultValue:{scrollbarYHidden:!1,scrollbarXHidden:!1,cornerHidden:!1},hash:e=>`Y:${e.scrollbarYHidden} X:${e.scrollbarXHidden} C:${e.cornerHidden}`}))}),refs:()=>({orientation:"vertical",scrollPosition:{x:0,y:0},scrollYTimeout:new i3,scrollXTimeout:new i3,scrollEndTimeout:new i3,startX:0,startY:0,startScrollTop:0,startScrollLeft:0,programmaticScroll:!0}),initialState:()=>"idle",watch({track:e,prop:t,context:r,send:n}){e([()=>t("dir"),()=>r.hash("hiddenState")],()=>{n({type:"thumb.measure"})})},effects:["trackContentResize","trackViewportVisibility","trackWheelEvent"],entry:["checkHovering"],exit:["clearTimeouts"],on:{"thumb.measure":{actions:["setThumbSize"]},"viewport.scroll":{actions:["setThumbSize","setScrolling","setProgrammaticScroll"]},"root.pointerenter":{actions:["setTouchModality","setHovering"]},"root.pointerdown":{actions:["setTouchModality"]},"root.pointerleave":{actions:["clearHovering"]}},states:{idle:{on:{"scrollbar.pointerdown":{target:"dragging",actions:["scrollToPointer","startDragging"]},"thumb.pointerdown":{target:"dragging",actions:["startDragging"]}}},dragging:{effects:["trackPointerMove"],on:{"thumb.pointermove":{actions:["setDraggingScroll"]},"scrollbar.pointerup":{target:"idle",actions:["stopDragging"]},"thumb.pointerup":{target:"idle",actions:["clearScrolling","stopDragging"]}}}},implementations:{actions:{setTouchModality({context:e,event:t}){e.set("touchModality","touch"===t.pointerType)},setHovering({context:e}){e.set("hovering",!0)},clearHovering({context:e}){e.set("hovering",!1)},setProgrammaticScroll({refs:e}){e.get("scrollEndTimeout").start(100,()=>{e.set("programmaticScroll",!0)})},clearScrolling({context:e,event:t}){e.set("vertical"===t.orientation?"scrollingY":"scrollingX",!1)},setThumbSize({context:e,scope:t,prop:r}){let n=iQ(t);if(!n)return;let i=n.scrollHeight,o=n.scrollWidth;if(0===i||0===o)return;let a=iZ(t),s=iJ(t),l=i1(t),u=i0(t),c=n.clientHeight,d=n.clientWidth,f=n.scrollTop,h=n.scrollLeft,p=c>=i,g=d>=o,v=i2(s,"padding","x"),m=i2(a,"padding","y"),b=i2(u,"margin","x"),y=i2(l,"margin","y"),x=(g?0:d)-v-b,w=(p?0:c)-m-y,S=s?Math.min(s.offsetWidth,x):x,E=a?Math.min(a.offsetHeight,w):w,k=Math.max(20,d/o*S),C=Math.max(20,c/i*E);if(e.set("thumbSize",e=>e.height===C&&e.width===k?e:{width:k,height:C}),a&&l){let e=a.offsetHeight-C-m-y,t=Math.min(e,Math.max(0,f/(i-c)*e));l.style.transform=`translate3d(0,${t}px,0)`}if(s&&u){let e=s.offsetWidth-k-v-b,t=h/(o-d),n="rtl"===r("dir")?(0,K.L3)(t*e,-e,0):(0,K.L3)(t*e,0,e);u.style.transform=`translate3d(${n}px,0,0)`}if((0,eg.P)(iX(t),`[data-part=corner][data-ownedby="${iY(t)}"]`)){if(g||p)e.set("cornerSize",{width:0,height:0});else if(!g&&!p){let t=a?.offsetWidth||0,r=s?.offsetHeight||0;e.set("cornerSize",{width:t,height:r})}}e.set("hiddenState",e=>{let t=p||g;return e.scrollbarYHidden===p&&e.scrollbarXHidden===g&&e.cornerHidden===t?e:{scrollbarYHidden:p,scrollbarXHidden:g,cornerHidden:t}}),e.set("atSides",e=>{let t=i5(n,r("dir"));return(0,K.n4)(e,t)?e:t})},checkHovering({scope:e,context:t}){let r=iQ(e);r?.matches(":hover")&&t.set("hovering",!0)},setScrolling({event:e,refs:t,context:r,prop:n}){let i={x:e.target.scrollLeft,y:e.target.scrollTop},o=t.get("scrollPosition"),a=i.x-o.x,s=i.y-o.y;t.set("scrollPosition",i),r.set("atSides",t=>{let r=i5(e.target,n("dir"));return(0,K.n4)(t,r)?t:r}),0!==s&&(r.set("scrollingY",!0),t.get("scrollYTimeout").start(1e3,()=>{r.set("scrollingY",!1)})),0!==a&&(r.set("scrollingX",!0),t.get("scrollXTimeout").start(1e3,()=>{r.set("scrollingX",!1)}))},scrollToPointer({event:e,scope:t,prop:r}){let n=iQ(t);if(!n)return;let i=i1(t),o=iZ(t),a=i0(t),s=iJ(t),l=e.point;if(i&&o&&"vertical"===e.orientation){let e=i2(i,"margin","y"),t=i2(o,"padding","y"),r=i.offsetHeight,a=o.getBoundingClientRect(),s=l.y-a.top-r/2-t+e/2,u=n.scrollHeight,c=n.clientHeight;n.scrollTop=s/(o.offsetHeight-r-t-e)*(u-c)}if(a&&s&&"horizontal"===e.orientation){let e,t=i2(a,"margin","x"),i=i2(s,"padding","x"),o=a.offsetWidth,u=s.getBoundingClientRect(),c=l.x-u.left-o/2-i+t/2,d=n.scrollWidth,f=n.clientWidth,h=c/(s.offsetWidth-o-i-t);"rtl"===r("dir")?(e=(1-h)*(d-f),n.scrollLeft<=0&&(e=-e)):e=h*(d-f),n.scrollLeft=e}},startDragging({event:e,refs:t,scope:r}){t.set("startX",e.point.x),t.set("startY",e.point.y),t.set("orientation",e.orientation);let n=iQ(r);n&&(t.set("startScrollTop",n.scrollTop),t.set("startScrollLeft",n.scrollLeft))},setDraggingScroll({event:e,refs:t,scope:r,context:n}){let i=t.get("startY"),o=t.get("startX"),a=t.get("startScrollTop"),s=t.get("startScrollLeft"),l=e.point,u=l.y-i,c=l.x-o,d=iQ(r);if(!d)return;let f=d.scrollHeight,h=d.clientHeight,p=d.scrollWidth,g=d.clientWidth,v=t.get("orientation"),m=i1(r),b=iZ(r);if(m&&b&&"vertical"===v){let e=i2(b,"padding","y"),r=i2(m,"margin","y"),i=m.offsetHeight;d.scrollTop=a+u/(b.offsetHeight-i-e-r)*(f-h),n.set("scrollingY",!0),t.get("scrollYTimeout").start(1e3,()=>{n.set("scrollingY",!1)})}let y=i0(r),x=iJ(r);if(y&&x&&"horizontal"===v){let e=i2(x,"padding","x"),r=i2(y,"margin","x"),i=y.offsetWidth;d.scrollLeft=s+c/(x.offsetWidth-i-e-r)*(p-g),n.set("scrollingX",!0),t.get("scrollXTimeout").start(1e3,()=>{n.set("scrollingX",!1)})}},stopDragging({refs:e}){e.set("orientation",null)},clearTimeouts({refs:e}){e.get("scrollYTimeout").clear(),e.get("scrollXTimeout").clear(),e.get("scrollEndTimeout").clear()}},effects:{trackContentResize({scope:e,send:t}){let r=e.getById(e.ids?.content??`scroll-area-${e.id}:content`),n=iX(e);if(!r||!n)return;let i=new(e.getWin()).ResizeObserver(()=>{setTimeout(()=>{t({type:"thumb.measure"})},1)});return i.observe(r),i.observe(n),()=>{i.disconnect()}},trackViewportVisibility({scope:e,send:t}){let r=e.getWin(),n=iQ(e);if(!n)return;let i=new r.IntersectionObserver(e=>{e.forEach(e=>{e.intersectionRatio>0&&(t({type:"thumb.measure"}),i.disconnect())})});return i.observe(n),()=>{i.disconnect()}},trackWheelEvent({scope:e}){let t=iZ(e),r=iJ(e);if(!t&&!r)return;let n=t=>{let r=iQ(e);if(!r||t.ctrlKey)return;let n=t.currentTarget.dataset.orientation;if("vertical"===n){let e=r.scrollHeight>r.clientHeight,n=0===r.scrollTop&&t.deltaY<0,i=r.scrollTop===r.scrollHeight-r.clientHeight&&t.deltaY>0;if(!(e&&0!==t.deltaY&&!(n||i)))return;t.preventDefault(),r.scrollTop+=t.deltaY}else if("horizontal"===n){let e=r.scrollWidth>r.clientWidth,n=0===r.scrollLeft&&t.deltaX<0,i=r.scrollLeft===r.scrollWidth-r.clientWidth&&t.deltaX>0;if(!(e&&0!==t.deltaX&&!(n||i)))return;t.preventDefault(),r.scrollLeft+=t.deltaX}};return(0,K.OK)(t&&(0,eg.kn)(t,"wheel",n,{passive:!1}),r&&(0,eg.kn)(r,"wheel",n,{passive:!1}))},trackPointerMove({scope:e,send:t,refs:r}){let n=e.getDoc(),i=r.get("orientation");return(0,eg.Al)(n,{onPointerMove({point:e}){t({type:"thumb.pointermove",orientation:i,point:e})},onPointerUp(){t({type:"thumb.pointerup",orientation:i})}})}}}});var i4=(0,ex.x)()(["dir","getRootNode","ids","id"]);(0,K.PM)(i4);let i6=(0,i.i_)({className:"chakra-scroll-area",slots:iK.keys(),base:{root:{display:"flex",flexDirection:"column",width:"100%",height:"100%",position:"relative",overflow:"hidden","--scrollbar-margin":"2px","--scrollbar-click-area":"calc(var(--scrollbar-size) + calc(var(--scrollbar-margin) * 2))"},viewport:{display:"flex",flexDirection:"column",height:"100%",width:"100%",borderRadius:"inherit",WebkitOverflowScrolling:"touch",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},content:{minWidth:"100%"},scrollbar:{display:"flex",userSelect:"none",touchAction:"none",borderRadius:"full",colorPalette:"gray",transition:"opacity 150ms 300ms",position:"relative",margin:"var(--scrollbar-margin)","&:not([data-overflow-x], [data-overflow-y])":{display:"none"},bg:"{colors.colorPalette.solid/10}","--thumb-bg":"{colors.colorPalette.solid/25}","&:is(:hover, :active)":{"--thumb-bg":"{colors.colorPalette.solid/50}"},_before:{content:'""',position:"absolute"},_vertical:{width:"var(--scrollbar-size)",flexDirection:"column","&::before":{width:"var(--scrollbar-click-area)",height:"100%",insetInlineStart:"calc(var(--scrollbar-margin) * -1)"}},_horizontal:{height:"var(--scrollbar-size)",flexDirection:"row","&::before":{height:"var(--scrollbar-click-area)",width:"100%",top:"calc(var(--scrollbar-margin) * -1)"}}},thumb:{borderRadius:"inherit",bg:"var(--thumb-bg)",transition:"backgrounds",_vertical:{width:"full"},_horizontal:{height:"full"}},corner:{bg:"bg.muted",margin:"var(--scrollbar-margin)",opacity:0,transition:"opacity 150ms 300ms","&[data-hover]":{transitionDelay:"0ms",opacity:1}}},variants:{variant:{hover:{scrollbar:{opacity:"0","&[data-hover], &[data-scrolling]":{opacity:"1",transitionDuration:"faster",transitionDelay:"0ms"}}},always:{scrollbar:{opacity:"1"}}},size:{xs:{root:{"--scrollbar-size":"sizes.1"}},sm:{root:{"--scrollbar-size":"sizes.1.5"}},md:{root:{"--scrollbar-size":"sizes.2"}},lg:{root:{"--scrollbar-size":"sizes.3"}}}},defaultVariants:{size:"md",variant:"hover"}}),i8=tX.MI.rename("segment-group");i8.build();let i7=(0,i.i_)({className:"chakra-segment-group",slots:i8.keys(),base:{root:{"--segment-radius":"radii.l2",borderRadius:"l2",display:"inline-flex",boxShadow:"inset",minW:"max-content",textAlign:"center",position:"relative",isolation:"isolate",bg:"bg.muted",_vertical:{flexDirection:"column"}},item:{display:"flex",alignItems:"center",justifyContent:"center",userSelect:"none",fontSize:"sm",position:"relative",color:"fg",borderRadius:"var(--segment-radius)",_disabled:{opacity:"0.5"},"&:has(input:focus-visible)":{focusRing:"outside"},_before:{content:'""',position:"absolute",bg:"border",transition:"opacity 0.2s"},_horizontal:{_before:{insetInlineStart:0,insetBlock:"1.5",width:"1px"}},_vertical:{_before:{insetBlockStart:0,insetInline:"1.5",height:"1px"}},"& + &[data-state=checked], &[data-state=checked] + &, &:first-of-type":{_before:{opacity:"0"}},"&[data-state=checked][data-ssr]":{shadow:"sm",bg:"bg",borderRadius:"var(--segment-radius)"}},indicator:{shadow:"sm",pos:"absolute",bg:{_light:"bg",_dark:"bg.emphasized"},width:"var(--width)",height:"var(--height)",top:"var(--top)",left:"var(--left)",zIndex:-1,borderRadius:"var(--segment-radius)"}},variants:{size:{xs:{item:{textStyle:"xs",px:"3",gap:"1",height:"6"}},sm:{item:{textStyle:"sm",px:"4",gap:"2",height:"8"}},md:{item:{textStyle:"sm",px:"4",gap:"2",height:"10"}},lg:{item:{textStyle:"md",px:"4.5",gap:"3",height:"11"}}}},defaultVariants:{size:"md"}}),i9=(0,i.i_)({className:"chakra-slider",slots:rB.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1",textStyle:"sm",position:"relative",isolation:"isolate",touchAction:"none"},label:{fontWeight:"medium",textStyle:"sm"},control:{display:"inline-flex",alignItems:"center",position:"relative"},track:{overflow:"hidden",borderRadius:"full",flex:"1"},range:{width:"inherit",height:"inherit",_disabled:{bg:"border.emphasized!"}},markerGroup:{position:"absolute!",zIndex:"1"},marker:{"--marker-bg":{base:"white",_underValue:"colors.bg"},display:"flex",alignItems:"center",gap:"calc(var(--slider-thumb-size) / 2)",color:"fg.muted",textStyle:"xs"},markerIndicator:{width:"var(--slider-marker-size)",height:"var(--slider-marker-size)",borderRadius:"full",bg:"var(--marker-bg)"},thumb:{width:"var(--slider-thumb-size)",height:"var(--slider-thumb-size)",display:"flex",alignItems:"center",justifyContent:"center",outline:0,zIndex:"2",borderRadius:"full",_focusVisible:{ring:"2px",ringColor:"colorPalette.focusRing",ringOffset:"2px",ringOffsetColor:"bg"}}},variants:{size:{sm:{root:{"--slider-thumb-size":"sizes.4","--slider-track-size":"sizes.1.5","--slider-marker-center":"6px","--slider-marker-size":"sizes.1","--slider-marker-inset":"3px"}},md:{root:{"--slider-thumb-size":"sizes.5","--slider-track-size":"sizes.2","--slider-marker-center":"8px","--slider-marker-size":"sizes.1","--slider-marker-inset":"4px"}},lg:{root:{"--slider-thumb-size":"sizes.6","--slider-track-size":"sizes.2.5","--slider-marker-center":"9px","--slider-marker-size":"sizes.1.5","--slider-marker-inset":"5px"}}},variant:{outline:{track:{shadow:"inset",bg:"bg.emphasized/72"},range:{bg:"colorPalette.solid"},thumb:{borderWidth:"2px",borderColor:"colorPalette.solid",bg:"bg",_disabled:{bg:"border.emphasized",borderColor:"border.emphasized"}}},solid:{track:{bg:"colorPalette.subtle",_disabled:{bg:"bg.muted"}},range:{bg:"colorPalette.solid"},thumb:{bg:"colorPalette.solid",_disabled:{bg:"border.emphasized"}}}},orientation:{vertical:{root:{display:"inline-flex"},control:{flexDirection:"column",height:"100%",minWidth:"var(--slider-thumb-size)","&[data-has-mark-label], &:has(.chakra-slider__marker-label)":{marginEnd:"4"}},track:{width:"var(--slider-track-size)"},thumb:{left:"50%",translate:"-50% 0"},markerGroup:{insetStart:"var(--slider-marker-center)",insetBlock:"var(--slider-marker-inset)"},marker:{flexDirection:"row"}},horizontal:{control:{flexDirection:"row",width:"100%",minHeight:"var(--slider-thumb-size)","&[data-has-mark-label], &:has(.chakra-slider__marker-label)":{marginBottom:"4"}},track:{height:"var(--slider-track-size)"},thumb:{top:"50%",translate:"0 -50%"},markerGroup:{top:"var(--slider-marker-center)",insetInline:"var(--slider-marker-inset)"},marker:{flexDirection:"column"}}}},defaultVariants:{size:"md",variant:"outline",orientation:"horizontal"}}),oe=(0,i.i_)({className:"chakra-stat",slots:rU.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1",position:"relative",flex:"1"},label:{display:"inline-flex",gap:"1.5",alignItems:"center",color:"fg.muted",textStyle:"sm"},helpText:{color:"fg.muted",textStyle:"xs"},valueUnit:{color:"fg.muted",textStyle:"xs",fontWeight:"initial",letterSpacing:"initial"},valueText:{verticalAlign:"baseline",fontWeight:"semibold",letterSpacing:"tight",fontFeatureSettings:"pnum",fontVariantNumeric:"proportional-nums",display:"inline-flex",gap:"1"},indicator:{display:"inline-flex",alignItems:"center",justifyContent:"center",marginEnd:1,"& :where(svg)":{w:"1em",h:"1em"},"&[data-type=up]":{color:"fg.success"},"&[data-type=down]":{color:"fg.error"}}},variants:{size:{sm:{valueText:{textStyle:"xl"}},md:{valueText:{textStyle:"2xl"}},lg:{valueText:{textStyle:"3xl"}}}},defaultVariants:{size:"md"}}),ot=(0,i.i_)({className:"chakra-status",slots:rH.keys(),base:{root:{display:"inline-flex",alignItems:"center",gap:"2"},indicator:{width:"0.64em",height:"0.64em",flexShrink:0,borderRadius:"full",forcedColorAdjust:"none",bg:"colorPalette.solid"}},variants:{size:{sm:{root:{textStyle:"xs"}},md:{root:{textStyle:"sm"}},lg:{root:{textStyle:"md"}}}},defaultVariants:{size:"md"}}),or=(0,i.i_)({className:"chakra-steps",slots:rW.keys(),base:{root:{display:"flex",width:"full"},list:{display:"flex",justifyContent:"space-between","--steps-gutter":"spacing.3","--steps-thickness":"2px"},title:{fontWeight:"medium",color:"fg"},description:{color:"fg.muted"},separator:{bg:"border",flex:"1"},indicator:{display:"flex",justifyContent:"center",alignItems:"center",flexShrink:"0",borderRadius:"full",fontWeight:"medium",width:"var(--steps-size)",height:"var(--steps-size)",_icon:{flexShrink:"0",width:"var(--steps-icon-size)",height:"var(--steps-icon-size)"}},item:{position:"relative",display:"flex",gap:"3",flex:"1 0 0","&:last-of-type":{flex:"initial","& [data-part=separator]":{display:"none"}}},trigger:{display:"flex",alignItems:"center",gap:"3",textAlign:"start",focusVisibleRing:"outside",borderRadius:"l2"},content:{focusVisibleRing:"outside"}},variants:{orientation:{vertical:{root:{flexDirection:"row",height:"100%"},list:{flexDirection:"column",alignItems:"flex-start"},separator:{position:"absolute",width:"var(--steps-thickness)",height:"100%",maxHeight:"calc(100% - var(--steps-size) - var(--steps-gutter) * 2)",top:"calc(var(--steps-size) + var(--steps-gutter))",insetStart:"calc(var(--steps-size) / 2 - 1px)"},item:{alignItems:"flex-start"}},horizontal:{root:{flexDirection:"column",width:"100%"},list:{flexDirection:"row",alignItems:"center"},separator:{width:"100%",height:"var(--steps-thickness)",marginX:"var(--steps-gutter)"},item:{alignItems:"center"}}},variant:{solid:{indicator:{_incomplete:{borderWidth:"var(--steps-thickness)"},_current:{bg:"colorPalette.muted",borderWidth:"var(--steps-thickness)",borderColor:"colorPalette.solid",color:"colorPalette.fg"},_complete:{bg:"colorPalette.solid",borderColor:"colorPalette.solid",color:"colorPalette.contrast"}},separator:{_complete:{bg:"colorPalette.solid"}}},subtle:{indicator:{_incomplete:{bg:"bg.muted"},_current:{bg:"colorPalette.muted",color:"colorPalette.fg"},_complete:{bg:"colorPalette.emphasized",color:"colorPalette.fg"}},separator:{_complete:{bg:"colorPalette.emphasized"}}}},size:{xs:{root:{gap:"2.5"},list:{"--steps-size":"sizes.6","--steps-icon-size":"sizes.3.5",textStyle:"xs"},title:{textStyle:"sm"}},sm:{root:{gap:"3"},list:{"--steps-size":"sizes.8","--steps-icon-size":"sizes.4",textStyle:"xs"},title:{textStyle:"sm"}},md:{root:{gap:"4"},list:{"--steps-size":"sizes.10","--steps-icon-size":"sizes.4",textStyle:"sm"},title:{textStyle:"sm"}},lg:{root:{gap:"6"},list:{"--steps-size":"sizes.11","--steps-icon-size":"sizes.5",textStyle:"md"},title:{textStyle:"md"}}}},defaultVariants:{size:"md",variant:"solid",orientation:"horizontal"}}),on=(0,i.i_)({slots:r$.keys(),className:"chakra-switch",base:{root:{display:"inline-flex",gap:"2.5",alignItems:"center",position:"relative",verticalAlign:"middle","--switch-diff":"calc(var(--switch-width) - var(--switch-height))","--switch-x":{base:"var(--switch-diff)",_rtl:"calc(var(--switch-diff) * -1)"}},label:{lineHeight:"1",userSelect:"none",fontSize:"sm",fontWeight:"medium",_disabled:{opacity:"0.5"}},indicator:{position:"absolute",height:"var(--switch-height)",width:"var(--switch-height)",fontSize:"var(--switch-indicator-font-size)",fontWeight:"medium",flexShrink:0,userSelect:"none",display:"grid",placeContent:"center",transition:"inset-inline-start 0.12s ease",insetInlineStart:"calc(var(--switch-x) - 2px)",_checked:{insetInlineStart:"2px"}},control:{display:"inline-flex",gap:"0.5rem",flexShrink:0,justifyContent:"flex-start",cursor:"switch",borderRadius:"full",position:"relative",width:"var(--switch-width)",height:"var(--switch-height)",transition:"backgrounds",_disabled:{opacity:"0.5",cursor:"not-allowed"},_invalid:{outline:"2px solid",outlineColor:"border.error",outlineOffset:"2px"}},thumb:{display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,transitionProperty:"translate",transitionDuration:"fast",borderRadius:"inherit",_checked:{translate:"var(--switch-x) 0"}}},variants:{variant:{solid:{control:{borderRadius:"full",bg:"bg.emphasized",focusVisibleRing:"outside",_checked:{bg:"colorPalette.solid"}},thumb:{bg:"white",width:"var(--switch-height)",height:"var(--switch-height)",scale:"0.8",boxShadow:"sm",_checked:{bg:"colorPalette.contrast"}}},raised:{control:{borderRadius:"full",height:"calc(var(--switch-height) / 2)",bg:"bg.muted",boxShadow:"inset",_checked:{bg:"colorPalette.solid/60"}},thumb:{width:"var(--switch-height)",height:"var(--switch-height)",position:"relative",top:"calc(var(--switch-height) * -0.25)",bg:"white",boxShadow:"xs",focusVisibleRing:"outside",_checked:{bg:"colorPalette.solid"}}}},size:{xs:{root:{"--switch-width":"sizes.6","--switch-height":"sizes.3","--switch-indicator-font-size":"fontSizes.xs"}},sm:{root:{"--switch-width":"sizes.8","--switch-height":"sizes.4","--switch-indicator-font-size":"fontSizes.xs"}},md:{root:{"--switch-width":"sizes.10","--switch-height":"sizes.5","--switch-indicator-font-size":"fontSizes.sm"}},lg:{root:{"--switch-width":"sizes.12","--switch-height":"sizes.6","--switch-indicator-font-size":"fontSizes.md"}}}},defaultVariants:{variant:"solid",size:"md"}}),oi=(0,i.i_)({className:"chakra-table",slots:rq.keys(),base:{root:{fontVariantNumeric:"lining-nums tabular-nums",borderCollapse:"collapse",width:"full",textAlign:"start",verticalAlign:"top"},row:{_selected:{bg:"colorPalette.subtle"}},cell:{textAlign:"start",alignItems:"center"},columnHeader:{fontWeight:"medium",textAlign:"start",color:"fg"},caption:{fontWeight:"medium",textStyle:"xs"},footer:{fontWeight:"medium"}},variants:{interactive:{true:{body:{"& tr":{_hover:{bg:"colorPalette.subtle"}}}}},stickyHeader:{true:{header:{"& :where(tr)":{top:"var(--table-sticky-offset, 0)",position:"sticky",zIndex:1}}}},striped:{true:{row:{"&:nth-of-type(odd) td":{bg:"bg.muted"}}}},showColumnBorder:{true:{columnHeader:{"&:not(:last-of-type)":{borderInlineEndWidth:"1px"}},cell:{"&:not(:last-of-type)":{borderInlineEndWidth:"1px"}}}},variant:{line:{columnHeader:{borderBottomWidth:"1px"},cell:{borderBottomWidth:"1px"},row:{bg:"bg"}},outline:{root:{boxShadow:"0 0 0 1px {colors.border}"},columnHeader:{borderBottomWidth:"1px"},header:{bg:"bg.muted"},row:{"&:not(:last-of-type)":{borderBottomWidth:"1px"}},footer:{borderTopWidth:"1px"}}},size:{sm:{root:{textStyle:"sm"},columnHeader:{px:"2",py:"2"},cell:{px:"2",py:"2"}},md:{root:{textStyle:"sm"},columnHeader:{px:"3",py:"3"},cell:{px:"3",py:"3"}},lg:{root:{textStyle:"md"},columnHeader:{px:"4",py:"3"},cell:{px:"4",py:"3"}}}},defaultVariants:{variant:"line",size:"md"}}),oo=(0,i.i_)({slots:rK.keys(),className:"chakra-tabs",base:{root:{"--tabs-trigger-radius":"radii.l2",position:"relative",_horizontal:{display:"block"},_vertical:{display:"flex"}},list:{display:"inline-flex",position:"relative",isolation:"isolate","--tabs-indicator-shadow":"shadows.xs","--tabs-indicator-bg":"colors.bg",minH:"var(--tabs-height)",_horizontal:{flexDirection:"row"},_vertical:{flexDirection:"column"}},trigger:{outline:"0",minW:"var(--tabs-height)",height:"var(--tabs-height)",display:"flex",alignItems:"center",fontWeight:"medium",position:"relative",cursor:"button",gap:"2",_focusVisible:{zIndex:1,outline:"2px solid",outlineColor:"colorPalette.focusRing"},_disabled:{cursor:"not-allowed",opacity:.5}},content:{focusVisibleRing:"inside",_horizontal:{width:"100%",pt:"var(--tabs-content-padding)"},_vertical:{height:"100%",ps:"var(--tabs-content-padding)"}},indicator:{width:"var(--width)",height:"var(--height)",borderRadius:"var(--tabs-indicator-radius)",bg:"var(--tabs-indicator-bg)",shadow:"var(--tabs-indicator-shadow)",zIndex:-1}},variants:{fitted:{true:{list:{display:"flex"},trigger:{flex:1,textAlign:"center",justifyContent:"center"}}},justify:{start:{list:{justifyContent:"flex-start"}},center:{list:{justifyContent:"center"}},end:{list:{justifyContent:"flex-end"}}},size:{sm:{root:{"--tabs-height":"sizes.9","--tabs-content-padding":"spacing.3"},trigger:{py:"1",px:"3",textStyle:"sm"}},md:{root:{"--tabs-height":"sizes.10","--tabs-content-padding":"spacing.4"},trigger:{py:"2",px:"4",textStyle:"sm"}},lg:{root:{"--tabs-height":"sizes.11","--tabs-content-padding":"spacing.4.5"},trigger:{py:"2",px:"4.5",textStyle:"md"}}},variant:{line:{list:{display:"flex",borderColor:"border",_horizontal:{borderBottomWidth:"1px"},_vertical:{borderEndWidth:"1px"}},trigger:{color:"fg.muted",_disabled:{_active:{bg:"initial"}},_selected:{color:"fg",_horizontal:{layerStyle:"indicator.bottom","--indicator-offset-y":"-1px","--indicator-color":"colors.colorPalette.solid"},_vertical:{layerStyle:"indicator.end","--indicator-offset-x":"-1px"}}}},subtle:{trigger:{borderRadius:"var(--tabs-trigger-radius)",color:"fg.muted",_selected:{bg:"colorPalette.subtle",color:"colorPalette.fg"}}},enclosed:{list:{bg:"bg.muted",padding:"1",borderRadius:"l3",minH:"calc(var(--tabs-height) - 4px)"},trigger:{justifyContent:"center",color:"fg.muted",borderRadius:"var(--tabs-trigger-radius)",_selected:{bg:"bg",color:"colorPalette.fg",shadow:"xs"}}},outline:{list:{"--line-thickness":"1px","--line-offset":"calc(var(--line-thickness) * -1)",borderColor:"border",display:"flex",_horizontal:{_before:{content:'""',position:"absolute",bottom:"0px",width:"100%",borderBottomWidth:"var(--line-thickness)",borderBottomColor:"border"}},_vertical:{_before:{content:'""',position:"absolute",insetInline:"var(--line-offset)",height:"calc(100% - calc(var(--line-thickness) * 2))",borderEndWidth:"var(--line-thickness)",borderEndColor:"border"}}},trigger:{color:"fg.muted",borderWidth:"1px",borderColor:"transparent",_selected:{bg:"currentBg",color:"colorPalette.fg"},_horizontal:{borderTopRadius:"var(--tabs-trigger-radius)",marginBottom:"var(--line-offset)",marginEnd:{_notLast:"var(--line-offset)"},_selected:{borderColor:"border",borderBottomColor:"transparent"}},_vertical:{borderStartRadius:"var(--tabs-trigger-radius)",marginEnd:"var(--line-offset)",marginBottom:{_notLast:"var(--line-offset)"},_selected:{borderColor:"border",borderEndColor:"transparent"}}}},plain:{trigger:{color:"fg.muted",_selected:{color:"colorPalette.fg"},borderRadius:"var(--tabs-trigger-radius)","&[data-selected][data-ssr]":{bg:"var(--tabs-indicator-bg)",shadow:"var(--tabs-indicator-shadow)",borderRadius:"var(--tabs-indicator-radius)"}}}}},defaultVariants:{size:"md",variant:"line"}}),oa=E.variants?.variant,os=(0,i.i_)({slots:rY.keys(),className:"chakra-tag",base:{root:{display:"inline-flex",alignItems:"center",verticalAlign:"top",maxWidth:"100%",userSelect:"none",borderRadius:"l2",focusVisibleRing:"outside"},label:{lineClamp:"1"},closeTrigger:{display:"flex",alignItems:"center",justifyContent:"center",outline:"0",borderRadius:"l1",color:"currentColor",focusVisibleRing:"inside",focusRingWidth:"2px"},startElement:{flexShrink:0,boxSize:"var(--tag-element-size)",ms:"var(--tag-element-offset)","&:has([data-scope=avatar])":{boxSize:"var(--tag-avatar-size)",ms:"calc(var(--tag-element-offset) * 1.5)"},_icon:{boxSize:"100%"}},endElement:{flexShrink:0,boxSize:"var(--tag-element-size)",me:"var(--tag-element-offset)",_icon:{boxSize:"100%"},"&:has(button)":{ms:"calc(var(--tag-element-offset) * -1)"}}},variants:{size:{sm:{root:{px:"1.5",minH:"4.5",gap:"1","--tag-avatar-size":"spacing.3","--tag-element-size":"spacing.3","--tag-element-offset":"-2px"},label:{textStyle:"xs"}},md:{root:{px:"1.5",minH:"5",gap:"1","--tag-avatar-size":"spacing.3.5","--tag-element-size":"spacing.3.5","--tag-element-offset":"-2px"},label:{textStyle:"xs"}},lg:{root:{px:"2",minH:"6",gap:"1.5","--tag-avatar-size":"spacing.4.5","--tag-element-size":"spacing.4","--tag-element-offset":"-3px"},label:{textStyle:"sm"}},xl:{root:{px:"2.5",minH:"8",gap:"1.5","--tag-avatar-size":"spacing.6","--tag-element-size":"spacing.4.5","--tag-element-offset":"-4px"},label:{textStyle:"sm"}}},variant:{subtle:{root:oa?.subtle},solid:{root:oa?.solid},outline:{root:oa?.outline},surface:{root:oa?.surface}}},defaultVariants:{size:"md",variant:"surface"}}),ol=(0,i.i_)({slots:rX.keys(),className:"chakra-timeline",base:{root:{display:"flex",flexDirection:"column",width:"full","--timeline-thickness":"1px","--timeline-gutter":"4px"},item:{"--timeline-content-gap":"spacing.6",display:"flex",position:"relative",alignItems:"flex-start",flexShrink:0,gap:"4",_last:{"--timeline-content-gap":"0"}},separator:{display:"var(--timeline-separator-display)",position:"absolute",borderStartWidth:"var(--timeline-thickness)",ms:"calc(-1 * var(--timeline-thickness) / 2)",insetInlineStart:"calc(var(--timeline-indicator-size) / 2)",insetBlock:"0",borderColor:"border"},indicator:{outline:"2px solid {colors.bg}",position:"relative",flexShrink:"0",boxSize:"var(--timeline-indicator-size)",fontSize:"var(--timeline-font-size)",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"full",fontWeight:"medium"},connector:{alignSelf:"stretch",position:"relative"},content:{pb:"var(--timeline-content-gap)",display:"flex",flexDirection:"column",width:"full",gap:"2"},title:{display:"flex",fontWeight:"medium",flexWrap:"wrap",gap:"1.5",alignItems:"center",mt:"var(--timeline-margin)"},description:{color:"fg.muted",textStyle:"xs"}},variants:{variant:{subtle:{indicator:{bg:"colorPalette.muted"}},solid:{indicator:{bg:"colorPalette.solid",color:"colorPalette.contrast"}},outline:{indicator:{bg:"currentBg",borderWidth:"1px",borderColor:"colorPalette.muted"}},plain:{}},showLastSeparator:{true:{item:{_last:{"--timeline-separator-display":"initial"}}},false:{item:{_last:{"--timeline-separator-display":"none"}}}},size:{sm:{root:{"--timeline-indicator-size":"sizes.4","--timeline-font-size":"fontSizes.2xs"},title:{textStyle:"xs"}},md:{root:{"--timeline-indicator-size":"sizes.5","--timeline-font-size":"fontSizes.xs"},title:{textStyle:"sm"}},lg:{root:{"--timeline-indicator-size":"sizes.6","--timeline-font-size":"fontSizes.xs"},title:{mt:"0.5",textStyle:"sm"}},xl:{root:{"--timeline-indicator-size":"sizes.8","--timeline-font-size":"fontSizes.sm"},title:{mt:"1.5",textStyle:"sm"}}}},defaultVariants:{size:"md",variant:"solid",showLastSeparator:!1}}),ou=(0,i.i_)({slots:rG.keys(),className:"chakra-toast",base:{root:{width:"full",display:"flex",alignItems:"flex-start",position:"relative",gap:"3",py:"4",ps:"4",pe:"6",borderRadius:"l2",translate:"var(--x) var(--y)",scale:"var(--scale)",zIndex:"var(--z-index)",height:"var(--height)",opacity:"var(--opacity)",willChange:"translate, opacity, scale",transition:"translate 400ms, scale 400ms, opacity 400ms, height 400ms, box-shadow 200ms",transitionTimingFunction:"cubic-bezier(0.21, 1.02, 0.73, 1)",_closed:{transition:"translate 400ms, scale 400ms, opacity 200ms",transitionTimingFunction:"cubic-bezier(0.06, 0.71, 0.55, 1)"},bg:"bg.panel",color:"fg",boxShadow:"xl","--toast-trigger-bg":"colors.bg.muted","&[data-type=warning]":{bg:"orange.solid",color:"orange.contrast","--toast-trigger-bg":"{white/10}","--toast-border-color":"{white/40}"},"&[data-type=success]":{bg:"green.solid",color:"green.contrast","--toast-trigger-bg":"{white/10}","--toast-border-color":"{white/40}"},"&[data-type=error]":{bg:"red.solid",color:"red.contrast","--toast-trigger-bg":"{white/10}","--toast-border-color":"{white/40}"}},title:{fontWeight:"medium",textStyle:"sm",marginEnd:"2"},description:{display:"inline",textStyle:"sm",opacity:"0.8"},indicator:{flexShrink:"0",boxSize:"5"},actionTrigger:{textStyle:"sm",fontWeight:"medium",height:"8",px:"3",borderRadius:"l2",alignSelf:"center",borderWidth:"1px",borderColor:"var(--toast-border-color, inherit)",transition:"background 200ms",_hover:{bg:"var(--toast-trigger-bg)"}},closeTrigger:{position:"absolute",top:"1",insetEnd:"1",padding:"1",display:"inline-flex",alignItems:"center",justifyContent:"center",color:"{currentColor/60}",borderRadius:"l2",textStyle:"md",transition:"background 200ms",_icon:{boxSize:"1em"}}}});var oc=r(93970);let od=(0,i.i_)({slots:oc.MI.keys(),className:"chakra-tooltip",base:{content:{"--tooltip-bg":"colors.bg.inverted",bg:"var(--tooltip-bg)",color:"fg.inverted",px:"2.5",py:"1",borderRadius:"l2",fontWeight:"medium",textStyle:"xs",boxShadow:"md",maxW:"xs",zIndex:"tooltip",transformOrigin:"var(--transform-origin)",_open:{animationStyle:"scale-fade-in",animationDuration:"fast"},_closed:{animationStyle:"scale-fade-out",animationDuration:"fast"}},arrow:{"--arrow-size":"sizes.2","--arrow-background":"var(--tooltip-bg)"},arrowTip:{borderTopWidth:"1px",borderInlineStartWidth:"1px",borderColor:"var(--tooltip-bg)"}}});var of=(0,G.y)("tree-view").parts("branch","branchContent","branchControl","branchIndentGuide","branchIndicator","branchText","branchTrigger","item","itemIndicator","itemText","label","nodeCheckbox","root","tree");of.build();var oh=e=>new eh(e);oh.empty=()=>new eh({rootNode:{children:[]}});var op=(e,t)=>{null!=t&&e.getById(((e,t)=>e.ids?.node?.(t)??`tree:${e.id}:node:${t}`)(e,t))?.focus()};function og(e,t){let{context:r,prop:n,refs:i}=e;if(!n("loadChildren"))return void r.set("expandedValue",e=>(0,K.sb)((0,K.WQ)(e,...t)));let o=r.get("loadingStatus"),[a,s]=(0,K.jB)(t,e=>"loaded"===o[e]);if(a.length>0&&r.set("expandedValue",e=>(0,K.sb)((0,K.WQ)(e,...a))),0===s.length)return;let l=n("collection"),[u,c]=(0,K.jB)(s,e=>{let t=l.findNode(e);return l.getNodeChildren(t).length>0});if(u.length>0&&r.set("expandedValue",e=>(0,K.sb)((0,K.WQ)(e,...u))),0===c.length)return;r.set("loadingStatus",e=>({...e,...c.reduce((e,t)=>({...e,[t]:"loading"}),{})}));let d=c.map(e=>{let t=l.getIndexPath(e),r=l.getValuePath(t),n=l.findNode(e);return{id:e,indexPath:t,valuePath:r,node:n}}),f=i.get("pendingAborts"),h=n("loadChildren");(0,K.D8)(h,()=>"[zag-js/tree-view] `loadChildren` is required for async expansion"),Promise.allSettled(d.map(({id:e,indexPath:t,valuePath:r,node:n})=>{let i=f.get(e);i&&(i.abort(),f.delete(e));let o=new AbortController;return f.set(e,o),h({valuePath:r,indexPath:t,node:n,signal:o.signal})})).then(e=>{let t=[],i=[],o=r.get("loadingStatus"),a=n("collection");e.forEach((e,r)=>{let{id:n,indexPath:s,node:l,valuePath:u}=d[r];"fulfilled"===e.status?(o[n]="loaded",t.push(n),a=a.replace(s,{...l,children:e.value})):(f.delete(n),Reflect.deleteProperty(o,n),i.push({node:l,error:e.reason,indexPath:s,valuePath:u}))}),r.set("loadingStatus",o),t.length&&(r.set("expandedValue",e=>(0,K.sb)((0,K.WQ)(e,...t))),n("onLoadChildrenComplete")?.({collection:a})),i.length&&n("onLoadChildrenError")?.({nodes:i})})}function ov(e){let{prop:t,context:r}=e;return function({indexPath:e}){return t("collection").getValuePath(e).slice(0,-1).some(e=>!r.get("expandedValue").includes(e))}}var{and:om}=(0,eb.b6)();(0,eb.Op)({props:({props:e})=>({selectionMode:"single",collection:oh.empty(),typeahead:!0,expandOnClick:!0,defaultExpandedValue:[],defaultSelectedValue:[],...e}),initialState:()=>"idle",context:({prop:e,bindable:t,getContext:r})=>({expandedValue:t(()=>({defaultValue:e("defaultExpandedValue"),value:e("expandedValue"),isEqual:K.n4,onChange(t){let n=r().get("focusedValue");e("onExpandedChange")?.({expandedValue:t,focusedValue:n,get expandedNodes(){return e("collection").findNodes(t)}})}})),selectedValue:t(()=>({defaultValue:e("defaultSelectedValue"),value:e("selectedValue"),isEqual:K.n4,onChange(t){let n=r().get("focusedValue");e("onSelectionChange")?.({selectedValue:t,focusedValue:n,get selectedNodes(){return e("collection").findNodes(t)}})}})),focusedValue:t(()=>({defaultValue:e("defaultFocusedValue")||null,value:e("focusedValue"),onChange(t){e("onFocusChange")?.({focusedValue:t,get focusedNode(){return t?e("collection").findNode(t):null}})}})),loadingStatus:t(()=>({defaultValue:{}})),checkedValue:t(()=>({defaultValue:e("defaultCheckedValue")||[],value:e("checkedValue"),isEqual:K.n4,onChange(t){e("onCheckedChange")?.({checkedValue:t})}}))}),refs:()=>({typeaheadState:{...eg.tt.defaultOptions},pendingAborts:new Map}),computed:{isMultipleSelection:({prop:e})=>"multiple"===e("selectionMode"),isTypingAhead:({refs:e})=>e.get("typeaheadState").keysSoFar.length>0,visibleNodes:({prop:e,context:t})=>{let r=[];return e("collection").visit({skip:ov({prop:e,context:t}),onEnter:(e,t)=>{r.push({node:e,indexPath:t})}}),r}},on:{"EXPANDED.SET":{actions:["setExpanded"]},"EXPANDED.CLEAR":{actions:["clearExpanded"]},"EXPANDED.ALL":{actions:["expandAllBranches"]},"BRANCH.EXPAND":{actions:["expandBranches"]},"BRANCH.COLLAPSE":{actions:["collapseBranches"]},"SELECTED.SET":{actions:["setSelected"]},"SELECTED.ALL":[{guard:om("isMultipleSelection","moveFocus"),actions:["selectAllNodes","focusTreeLastNode"]},{guard:"isMultipleSelection",actions:["selectAllNodes"]}],"SELECTED.CLEAR":{actions:["clearSelected"]},"NODE.SELECT":{actions:["selectNode"]},"NODE.DESELECT":{actions:["deselectNode"]},"CHECKED.TOGGLE":{actions:["toggleChecked"]},"CHECKED.SET":{actions:["setChecked"]},"CHECKED.CLEAR":{actions:["clearChecked"]}},exit:["clearPendingAborts"],states:{idle:{on:{"NODE.FOCUS":{actions:["setFocusedNode"]},"NODE.ARROW_DOWN":[{guard:om("isShiftKey","isMultipleSelection"),actions:["focusTreeNextNode","extendSelectionToNextNode"]},{actions:["focusTreeNextNode"]}],"NODE.ARROW_UP":[{guard:om("isShiftKey","isMultipleSelection"),actions:["focusTreePrevNode","extendSelectionToPrevNode"]},{actions:["focusTreePrevNode"]}],"NODE.ARROW_LEFT":{actions:["focusBranchNode"]},"BRANCH_NODE.ARROW_LEFT":[{guard:"isBranchExpanded",actions:["collapseBranch"]},{actions:["focusBranchNode"]}],"BRANCH_NODE.ARROW_RIGHT":[{guard:om("isBranchFocused","isBranchExpanded"),actions:["focusBranchFirstNode"]},{actions:["expandBranch"]}],"SIBLINGS.EXPAND":{actions:["expandSiblingBranches"]},"NODE.HOME":[{guard:om("isShiftKey","isMultipleSelection"),actions:["extendSelectionToFirstNode","focusTreeFirstNode"]},{actions:["focusTreeFirstNode"]}],"NODE.END":[{guard:om("isShiftKey","isMultipleSelection"),actions:["extendSelectionToLastNode","focusTreeLastNode"]},{actions:["focusTreeLastNode"]}],"NODE.CLICK":[{guard:om("isCtrlKey","isMultipleSelection"),actions:["toggleNodeSelection"]},{guard:om("isShiftKey","isMultipleSelection"),actions:["extendSelectionToNode"]},{actions:["selectNode"]}],"BRANCH_NODE.CLICK":[{guard:om("isCtrlKey","isMultipleSelection"),actions:["toggleNodeSelection"]},{guard:om("isShiftKey","isMultipleSelection"),actions:["extendSelectionToNode"]},{guard:"expandOnClick",actions:["selectNode","toggleBranchNode"]},{actions:["selectNode"]}],"BRANCH_TOGGLE.CLICK":{actions:["toggleBranchNode"]},"TREE.TYPEAHEAD":{actions:["focusMatchedNode"]}}}},implementations:{guards:{isBranchFocused:({context:e,event:t})=>e.get("focusedValue")===t.id,isBranchExpanded:({context:e,event:t})=>e.get("expandedValue").includes(t.id),isShiftKey:({event:e})=>e.shiftKey,isCtrlKey:({event:e})=>e.ctrlKey,hasSelectedItems:({context:e})=>e.get("selectedValue").length>0,isMultipleSelection:({prop:e})=>"multiple"===e("selectionMode"),moveFocus:({event:e})=>!!e.moveFocus,expandOnClick:({prop:e})=>!!e("expandOnClick")},actions:{selectNode({context:e,event:t}){let r=t.id||t.value;e.set("selectedValue",e=>null==r?e:!t.isTrusted&&(0,K.cy)(r)?e.concat(...r):[(0,K.cy)(r)?(0,K.HV)(r):r].filter(Boolean))},deselectNode({context:e,event:t}){let r=(0,K.$r)(t.id||t.value);e.set("selectedValue",e=>(0,K.TF)(e,...r))},setFocusedNode({context:e,event:t}){e.set("focusedValue",t.id)},clearFocusedNode({context:e}){e.set("focusedValue",null)},clearSelectedItem({context:e}){e.set("selectedValue",[])},toggleBranchNode({context:e,event:t,action:r}){r(e.get("expandedValue").includes(t.id)?["collapseBranch"]:["expandBranch"])},expandBranch(e){let{event:t}=e;og(e,[t.id])},expandBranches(e){let{context:t,event:r}=e,n=(0,K.$r)(r.value);og(e,(0,K.Ui)(n,t.get("expandedValue")))},collapseBranch({context:e,event:t}){e.set("expandedValue",e=>(0,K.TF)(e,t.id))},collapseBranches(e){let{context:t,event:r}=e,n=(0,K.$r)(r.value);t.set("expandedValue",e=>(0,K.TF)(e,...n))},setExpanded({context:e,event:t}){(0,K.cy)(t.value)&&e.set("expandedValue",t.value)},clearExpanded({context:e}){e.set("expandedValue",[])},setSelected({context:e,event:t}){(0,K.cy)(t.value)&&e.set("selectedValue",t.value)},clearSelected({context:e}){e.set("selectedValue",[])},focusTreeFirstNode({prop:e,scope:t}){let r=e("collection"),n=r.getFirstNode();op(t,r.getNodeValue(n))},focusTreeLastNode(e){let{prop:t,scope:r}=e,n=t("collection"),i=n.getLastNode(void 0,{skip:ov(e)});op(r,n.getNodeValue(i))},focusBranchFirstNode({event:e,prop:t,scope:r}){let n=t("collection"),i=n.findNode(e.id),o=n.getFirstNode(i);op(r,n.getNodeValue(o))},focusTreeNextNode(e){let{event:t,prop:r,scope:n}=e,i=r("collection"),o=i.getNextNode(t.id,{skip:ov(e)});o&&op(n,i.getNodeValue(o))},focusTreePrevNode(e){let{event:t,prop:r,scope:n}=e,i=r("collection"),o=i.getPreviousNode(t.id,{skip:ov(e)});o&&op(n,i.getNodeValue(o))},focusBranchNode({event:e,prop:t,scope:r}){let n=t("collection"),i=n.getParentNode(e.id);op(r,i?n.getNodeValue(i):void 0)},selectAllNodes({context:e,prop:t}){e.set("selectedValue",t("collection").getValues())},focusMatchedNode(e){let{context:t,prop:r,refs:n,event:i,scope:o,computed:a}=e,s=a("visibleNodes").map(({node:e})=>({textContent:r("collection").stringifyNode(e),id:r("collection").getNodeValue(e)})),l=(0,eg.tt)(s,{state:n.get("typeaheadState"),activeId:t.get("focusedValue"),key:i.key});op(o,l?.id)},toggleNodeSelection({context:e,event:t}){let r=(0,K.Xx)(e.get("selectedValue"),t.id);e.set("selectedValue",r)},expandAllBranches(e){let{context:t,prop:r}=e,n=r("collection").getBranchValues();og(e,(0,K.Ui)(n,t.get("expandedValue")))},expandSiblingBranches(e){let{context:t,event:r,prop:n}=e,i=n("collection"),o=i.getIndexPath(r.id);if(!o)return;let a=i.getSiblingNodes(o).map(e=>i.getNodeValue(e));og(e,(0,K.Ui)(a,t.get("expandedValue")))},extendSelectionToNode(e){let{context:t,event:r,prop:n,computed:i}=e,o=n("collection"),a=(0,K.$1)(t.get("selectedValue"))||o.getNodeValue(o.getFirstNode()),s=r.id,l=[a,s],u=0;i("visibleNodes").forEach(({node:e})=>{let t=o.getNodeValue(e);1===u&&l.push(t),(t===a||t===s)&&u++}),t.set("selectedValue",(0,K.sb)(l))},extendSelectionToNextNode(e){let{context:t,event:r,prop:n}=e,i=n("collection"),o=i.getNextNode(r.id,{skip:ov(e)});if(!o)return;let a=new Set(t.get("selectedValue")),s=i.getNodeValue(o);null!=s&&(a.has(r.id)&&a.has(s)?a.delete(r.id):a.has(s)||a.add(s),t.set("selectedValue",Array.from(a)))},extendSelectionToPrevNode(e){let{context:t,event:r,prop:n}=e,i=n("collection"),o=i.getPreviousNode(r.id,{skip:ov(e)});if(!o)return;let a=new Set(t.get("selectedValue")),s=i.getNodeValue(o);null!=s&&(a.has(r.id)&&a.has(s)?a.delete(r.id):a.has(s)||a.add(s),t.set("selectedValue",Array.from(a)))},extendSelectionToFirstNode(e){let{context:t,prop:r}=e,n=r("collection"),i=(0,K.$1)(t.get("selectedValue")),o=[];n.visit({skip:ov(e),onEnter:e=>{let t=n.getNodeValue(e);if(o.push(t),t===i)return"stop"}}),t.set("selectedValue",o)},extendSelectionToLastNode(e){let{context:t,prop:r}=e,n=r("collection"),i=(0,K.$1)(t.get("selectedValue")),o=[],a=!1;n.visit({skip:ov(e),onEnter:e=>{let t=n.getNodeValue(e);t===i&&(a=!0),a&&o.push(t)}}),t.set("selectedValue",o)},clearPendingAborts({refs:e}){let t=e.get("pendingAborts");t.forEach(e=>e.abort()),t.clear()},toggleChecked({context:e,event:t,prop:r}){let n=r("collection");e.set("checkedValue",e=>t.isBranch?function(e,t,r){let n=e.getDescendantValues(t),i=n.every(e=>r.includes(e));return(0,K.sb)(i?(0,K.TF)(r,...n):(0,K.WQ)(r,...n))}(n,t.value,e):(0,K.Xx)(e,t.value))},setChecked({context:e,event:t}){e.set("checkedValue",t.value)},clearChecked({context:e}){e.set("checkedValue",[])}}}});var ob=(0,ex.x)()(["ids","collection","dir","expandedValue","expandOnClick","defaultFocusedValue","focusedValue","getRootNode","id","onExpandedChange","onFocusChange","onSelectionChange","checkedValue","selectedValue","selectionMode","typeahead","defaultExpandedValue","defaultSelectedValue","defaultCheckedValue","onCheckedChange","onLoadChildrenComplete","onLoadChildrenError","loadChildren"]);(0,K.PM)(ob);var oy=(0,ex.x)()(["node","indexPath"]);(0,K.PM)(oy);let ox=(0,i.H2)({display:"flex",alignItems:"center",gap:"var(--tree-item-gap)",rounded:"l2",userSelect:"none",position:"relative","--tree-depth":"calc(var(--depth) - 1)","--tree-indentation-offset":"calc(var(--tree-indentation) * var(--tree-depth))","--tree-icon-offset":"calc(var(--tree-icon-size) * var(--tree-depth) * 0.5)","--tree-offset":"calc(var(--tree-padding-inline) + var(--tree-indentation-offset) + var(--tree-icon-offset))",ps:"var(--tree-offset)",pe:"var(--tree-padding-inline)",py:"var(--tree-padding-block)",focusVisibleRing:"inside",focusRingColor:"border.emphasized",focusRingWidth:"2px","&:hover, &:focus-visible":{bg:"bg.muted"},_disabled:{layerStyle:"disabled"}}),ow=(0,i.H2)({flex:"1"}),oS=(0,i.H2)({_selected:{bg:"colorPalette.subtle",color:"colorPalette.fg"}}),oE=(0,i.H2)({_selected:{layerStyle:"fill.solid"}}),ok=(0,i.i_)({slots:of.keys(),className:"chakra-tree-view",base:{root:{width:"full",display:"flex",flexDirection:"column",gap:"2"},tree:{display:"flex",flexDirection:"column","--tree-item-gap":"spacing.2",_icon:{boxSize:"var(--tree-icon-size)"}},label:{fontWeight:"medium",textStyle:"sm"},branch:{position:"relative"},branchContent:{position:"relative"},branchIndentGuide:{height:"100%",width:"1px",bg:"border",position:"absolute","--tree-depth":"calc(var(--depth) - 1)","--tree-indentation-offset":"calc(var(--tree-indentation) * var(--tree-depth))","--tree-offset":"calc(var(--tree-padding-inline) + var(--tree-indentation-offset))","--tree-icon-offset":"calc(var(--tree-icon-size) * 0.5 * var(--depth))",insetInlineStart:"calc(var(--tree-offset) + var(--tree-icon-offset))",zIndex:"1"},branchIndicator:{color:"fg.muted",transformOrigin:"center",transitionDuration:"normal",transitionProperty:"transform",transitionTimingFunction:"default",_open:{transform:"rotate(90deg)"}},branchTrigger:{display:"inline-flex",alignItems:"center",justifyContent:"center"},branchControl:ox,item:ox,itemText:ow,branchText:ow,nodeCheckbox:{display:"inline-flex"}},variants:{size:{md:{tree:{textStyle:"sm","--tree-indentation":"spacing.4","--tree-padding-inline":"spacing.3","--tree-padding-block":"spacing.1.5","--tree-icon-size":"spacing.4"}},sm:{tree:{textStyle:"sm","--tree-indentation":"spacing.4","--tree-padding-inline":"spacing.3","--tree-padding-block":"spacing.1","--tree-icon-size":"spacing.3"}},xs:{tree:{textStyle:"xs","--tree-indentation":"spacing.4","--tree-padding-inline":"spacing.2","--tree-padding-block":"spacing.1","--tree-icon-size":"spacing.3"}}},variant:{subtle:{branchControl:oS,item:oS},solid:{branchControl:oE,item:oE}},animateContent:{true:{branchContent:{_open:{animationName:"expand-height, fade-in",animationDuration:"moderate"},_closed:{animationName:"collapse-height, fade-out",animationDuration:"moderate"}}}}},defaultVariants:{size:"md",variant:"subtle"}}),oC=(0,i.RP)({"2xs":{value:{fontSize:"2xs",lineHeight:"0.75rem"}},xs:{value:{fontSize:"xs",lineHeight:"1rem"}},sm:{value:{fontSize:"sm",lineHeight:"1.25rem"}},md:{value:{fontSize:"md",lineHeight:"1.5rem"}},lg:{value:{fontSize:"lg",lineHeight:"1.75rem"}},xl:{value:{fontSize:"xl",lineHeight:"1.875rem"}},"2xl":{value:{fontSize:"2xl",lineHeight:"2rem"}},"3xl":{value:{fontSize:"3xl",lineHeight:"2.375rem"}},"4xl":{value:{fontSize:"4xl",lineHeight:"2.75rem",letterSpacing:"-0.025em"}},"5xl":{value:{fontSize:"5xl",lineHeight:"3.75rem",letterSpacing:"-0.025em"}},"6xl":{value:{fontSize:"6xl",lineHeight:"4.5rem",letterSpacing:"-0.025em"}},"7xl":{value:{fontSize:"7xl",lineHeight:"5.75rem",letterSpacing:"-0.025em"}},none:{value:{}},label:{value:{fontSize:"sm",lineHeight:"1.25rem",fontWeight:"medium"}}}),oO=i.Ok.animations({spin:{value:"spin 1s linear infinite"},ping:{value:"ping 1s cubic-bezier(0, 0, 0.2, 1) infinite"},pulse:{value:"pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite"},bounce:{value:"bounce 1s infinite"}}),oI=i.Ok.aspectRatios({square:{value:"1 / 1"},landscape:{value:"4 / 3"},portrait:{value:"3 / 4"},wide:{value:"16 / 9"},ultrawide:{value:"18 / 5"},golden:{value:"1.618 / 1"}}),o_=i.Ok.blurs({none:{value:" "},sm:{value:"4px"},md:{value:"8px"},lg:{value:"12px"},xl:{value:"16px"},"2xl":{value:"24px"},"3xl":{value:"40px"},"4xl":{value:"64px"}}),oT=i.Ok.borders({xs:{value:"0.5px solid"},sm:{value:"1px solid"},md:{value:"2px solid"},lg:{value:"4px solid"},xl:{value:"8px solid"}}),oP=i.Ok.colors({transparent:{value:"transparent"},current:{value:"currentColor"},black:{value:"#09090B"},white:{value:"#FFFFFF"},whiteAlpha:{50:{value:"rgba(255, 255, 255, 0.04)"},100:{value:"rgba(255, 255, 255, 0.06)"},200:{value:"rgba(255, 255, 255, 0.08)"},300:{value:"rgba(255, 255, 255, 0.16)"},400:{value:"rgba(255, 255, 255, 0.24)"},500:{value:"rgba(255, 255, 255, 0.36)"},600:{value:"rgba(255, 255, 255, 0.48)"},700:{value:"rgba(255, 255, 255, 0.64)"},800:{value:"rgba(255, 255, 255, 0.80)"},900:{value:"rgba(255, 255, 255, 0.92)"},950:{value:"rgba(255, 255, 255, 0.95)"}},blackAlpha:{50:{value:"rgba(0, 0, 0, 0.04)"},100:{value:"rgba(0, 0, 0, 0.06)"},200:{value:"rgba(0, 0, 0, 0.08)"},300:{value:"rgba(0, 0, 0, 0.16)"},400:{value:"rgba(0, 0, 0, 0.24)"},500:{value:"rgba(0, 0, 0, 0.36)"},600:{value:"rgba(0, 0, 0, 0.48)"},700:{value:"rgba(0, 0, 0, 0.64)"},800:{value:"rgba(0, 0, 0, 0.80)"},900:{value:"rgba(0, 0, 0, 0.92)"},950:{value:"rgba(0, 0, 0, 0.95)"}},gray:{50:{value:"#fafafa"},100:{value:"#f4f4f5"},200:{value:"#e4e4e7"},300:{value:"#d4d4d8"},400:{value:"#a1a1aa"},500:{value:"#71717a"},600:{value:"#52525b"},700:{value:"#3f3f46"},800:{value:"#27272a"},900:{value:"#18181b"},950:{value:"#111111"}},red:{50:{value:"#fef2f2"},100:{value:"#fee2e2"},200:{value:"#fecaca"},300:{value:"#fca5a5"},400:{value:"#f87171"},500:{value:"#ef4444"},600:{value:"#dc2626"},700:{value:"#991919"},800:{value:"#511111"},900:{value:"#300c0c"},950:{value:"#1f0808"}},orange:{50:{value:"#fff7ed"},100:{value:"#ffedd5"},200:{value:"#fed7aa"},300:{value:"#fdba74"},400:{value:"#fb923c"},500:{value:"#f97316"},600:{value:"#ea580c"},700:{value:"#92310a"},800:{value:"#6c2710"},900:{value:"#3b1106"},950:{value:"#220a04"}},yellow:{50:{value:"#fefce8"},100:{value:"#fef9c3"},200:{value:"#fef08a"},300:{value:"#fde047"},400:{value:"#facc15"},500:{value:"#eab308"},600:{value:"#ca8a04"},700:{value:"#845209"},800:{value:"#713f12"},900:{value:"#422006"},950:{value:"#281304"}},green:{50:{value:"#f0fdf4"},100:{value:"#dcfce7"},200:{value:"#bbf7d0"},300:{value:"#86efac"},400:{value:"#4ade80"},500:{value:"#22c55e"},600:{value:"#16a34a"},700:{value:"#116932"},800:{value:"#124a28"},900:{value:"#042713"},950:{value:"#03190c"}},teal:{50:{value:"#f0fdfa"},100:{value:"#ccfbf1"},200:{value:"#99f6e4"},300:{value:"#5eead4"},400:{value:"#2dd4bf"},500:{value:"#14b8a6"},600:{value:"#0d9488"},700:{value:"#0c5d56"},800:{value:"#114240"},900:{value:"#032726"},950:{value:"#021716"}},blue:{50:{value:"#eff6ff"},100:{value:"#dbeafe"},200:{value:"#bfdbfe"},300:{value:"#a3cfff"},400:{value:"#60a5fa"},500:{value:"#3b82f6"},600:{value:"#2563eb"},700:{value:"#173da6"},800:{value:"#1a3478"},900:{value:"#14204a"},950:{value:"#0c142e"}},cyan:{50:{value:"#ecfeff"},100:{value:"#cffafe"},200:{value:"#a5f3fc"},300:{value:"#67e8f9"},400:{value:"#22d3ee"},500:{value:"#06b6d4"},600:{value:"#0891b2"},700:{value:"#0c5c72"},800:{value:"#134152"},900:{value:"#072a38"},950:{value:"#051b24"}},purple:{50:{value:"#faf5ff"},100:{value:"#f3e8ff"},200:{value:"#e9d5ff"},300:{value:"#d8b4fe"},400:{value:"#c084fc"},500:{value:"#a855f7"},600:{value:"#9333ea"},700:{value:"#641ba3"},800:{value:"#4a1772"},900:{value:"#2f0553"},950:{value:"#1a032e"}},pink:{50:{value:"#fdf2f8"},100:{value:"#fce7f3"},200:{value:"#fbcfe8"},300:{value:"#f9a8d4"},400:{value:"#f472b6"},500:{value:"#ec4899"},600:{value:"#db2777"},700:{value:"#a41752"},800:{value:"#6d0e34"},900:{value:"#45061f"},950:{value:"#2c0514"}}}),oR=i.Ok.cursor({button:{value:"pointer"},checkbox:{value:"default"},disabled:{value:"not-allowed"},menuitem:{value:"default"},option:{value:"default"},radio:{value:"default"},slider:{value:"default"},switch:{value:"pointer"}}),oA=i.Ok.durations({fastest:{value:"50ms"},faster:{value:"100ms"},fast:{value:"150ms"},moderate:{value:"200ms"},slow:{value:"300ms"},slower:{value:"400ms"},slowest:{value:"500ms"}}),oN=i.Ok.easings({"ease-in":{value:"cubic-bezier(0.42, 0, 1, 1)"},"ease-out":{value:"cubic-bezier(0, 0, 0.58, 1)"},"ease-in-out":{value:"cubic-bezier(0.42, 0, 0.58, 1)"},"ease-in-smooth":{value:"cubic-bezier(0.32, 0.72, 0, 1)"}}),oM=i.Ok.fontSizes({"2xs":{value:"0.625rem"},xs:{value:"0.75rem"},sm:{value:"0.875rem"},md:{value:"1rem"},lg:{value:"1.125rem"},xl:{value:"1.25rem"},"2xl":{value:"1.5rem"},"3xl":{value:"1.875rem"},"4xl":{value:"2.25rem"},"5xl":{value:"3rem"},"6xl":{value:"3.75rem"},"7xl":{value:"4.5rem"},"8xl":{value:"6rem"},"9xl":{value:"8rem"}}),oL=i.Ok.fontWeights({thin:{value:"100"},extralight:{value:"200"},light:{value:"300"},normal:{value:"400"},medium:{value:"500"},semibold:{value:"600"},bold:{value:"700"},extrabold:{value:"800"},black:{value:"900"}}),oV='-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',oD=i.Ok.fonts({heading:{value:`Inter, ${oV}`},body:{value:`Inter, ${oV}`},mono:{value:'SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'}}),oF=(0,i.jC)({spin:{"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}},pulse:{"50%":{opacity:"0.5"}},ping:{"75%, 100%":{transform:"scale(2)",opacity:"0"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}},"bg-position":{from:{backgroundPosition:"var(--animate-from, 1rem) 0"},to:{backgroundPosition:"var(--animate-to, 0) 0"}},position:{from:{insetInlineStart:"var(--animate-from-x)",insetBlockStart:"var(--animate-from-y)"},to:{insetInlineStart:"var(--animate-to-x)",insetBlockStart:"var(--animate-to-y)"}},"circular-progress":{"0%":{strokeDasharray:"1, 400",strokeDashoffset:"0"},"50%":{strokeDasharray:"400, 400",strokeDashoffset:"-100%"},"100%":{strokeDasharray:"400, 400",strokeDashoffset:"-260%"}},"expand-height":{from:{height:"0"},to:{height:"var(--height)"}},"collapse-height":{from:{height:"var(--height)"},to:{height:"0"}},"expand-width":{from:{width:"0"},to:{width:"var(--width)"}},"collapse-width":{from:{height:"var(--width)"},to:{height:"0"}},"fade-in":{from:{opacity:0},to:{opacity:1}},"fade-out":{from:{opacity:1},to:{opacity:0}},"slide-from-left-full":{from:{translate:"-100% 0"},to:{translate:"0 0"}},"slide-from-right-full":{from:{translate:"100% 0"},to:{translate:"0 0"}},"slide-from-top-full":{from:{translate:"0 -100%"},to:{translate:"0 0"}},"slide-from-bottom-full":{from:{translate:"0 100%"},to:{translate:"0 0"}},"slide-to-left-full":{from:{translate:"0 0"},to:{translate:"-100% 0"}},"slide-to-right-full":{from:{translate:"0 0"},to:{translate:"100% 0"}},"slide-to-top-full":{from:{translate:"0 0"},to:{translate:"0 -100%"}},"slide-to-bottom-full":{from:{translate:"0 0"},to:{translate:"0 100%"}},"slide-from-top":{"0%":{translate:"0 -0.5rem"},to:{translate:"0"}},"slide-from-bottom":{"0%":{translate:"0 0.5rem"},to:{translate:"0"}},"slide-from-left":{"0%":{translate:"-0.5rem 0"},to:{translate:"0"}},"slide-from-right":{"0%":{translate:"0.5rem 0"},to:{translate:"0"}},"slide-to-top":{"0%":{translate:"0"},to:{translate:"0 -0.5rem"}},"slide-to-bottom":{"0%":{translate:"0"},to:{translate:"0 0.5rem"}},"slide-to-left":{"0%":{translate:"0"},to:{translate:"-0.5rem 0"}},"slide-to-right":{"0%":{translate:"0"},to:{translate:"0.5rem 0"}},"scale-in":{from:{scale:"0.95"},to:{scale:"1"}},"scale-out":{from:{scale:"1"},to:{scale:"0.95"}}}),oj=i.Ok.letterSpacings({tighter:{value:"-0.05em"},tight:{value:"-0.025em"},wide:{value:"0.025em"},wider:{value:"0.05em"},widest:{value:"0.1em"}}),oz=i.Ok.lineHeights({shorter:{value:1.25},short:{value:1.375},moderate:{value:1.5},tall:{value:1.625},taller:{value:2}}),oB=i.Ok.radii({none:{value:"0"},"2xs":{value:"0.0625rem"},xs:{value:"0.125rem"},sm:{value:"0.25rem"},md:{value:"0.375rem"},lg:{value:"0.5rem"},xl:{value:"0.75rem"},"2xl":{value:"1rem"},"3xl":{value:"1.5rem"},"4xl":{value:"2rem"},full:{value:"9999px"}}),oU=i.Ok.spacing({.5:{value:"0.125rem"},1:{value:"0.25rem"},1.5:{value:"0.375rem"},2:{value:"0.5rem"},2.5:{value:"0.625rem"},3:{value:"0.75rem"},3.5:{value:"0.875rem"},4:{value:"1rem"},4.5:{value:"1.125rem"},5:{value:"1.25rem"},6:{value:"1.5rem"},7:{value:"1.75rem"},8:{value:"2rem"},9:{value:"2.25rem"},10:{value:"2.5rem"},11:{value:"2.75rem"},12:{value:"3rem"},14:{value:"3.5rem"},16:{value:"4rem"},20:{value:"5rem"},24:{value:"6rem"},28:{value:"7rem"},32:{value:"8rem"},36:{value:"9rem"},40:{value:"10rem"},44:{value:"11rem"},48:{value:"12rem"},52:{value:"13rem"},56:{value:"14rem"},60:{value:"15rem"},64:{value:"16rem"},72:{value:"18rem"},80:{value:"20rem"},96:{value:"24rem"}}),oH=i.Ok.sizes({"3xs":{value:"14rem"},"2xs":{value:"16rem"},xs:{value:"20rem"},sm:{value:"24rem"},md:{value:"28rem"},lg:{value:"32rem"},xl:{value:"36rem"},"2xl":{value:"42rem"},"3xl":{value:"48rem"},"4xl":{value:"56rem"},"5xl":{value:"64rem"},"6xl":{value:"72rem"},"7xl":{value:"80rem"},"8xl":{value:"90rem"}}),oW=i.Ok.sizes({max:{value:"max-content"},min:{value:"min-content"},fit:{value:"fit-content"},prose:{value:"60ch"},full:{value:"100%"},dvh:{value:"100dvh"},svh:{value:"100svh"},lvh:{value:"100lvh"},dvw:{value:"100dvw"},svw:{value:"100svw"},lvw:{value:"100lvw"},vw:{value:"100vw"},vh:{value:"100vh"}}),o$=i.Ok.sizes({"1/2":{value:"50%"},"1/3":{value:"33.333333%"},"2/3":{value:"66.666667%"},"1/4":{value:"25%"},"3/4":{value:"75%"},"1/5":{value:"20%"},"2/5":{value:"40%"},"3/5":{value:"60%"},"4/5":{value:"80%"},"1/6":{value:"16.666667%"},"2/6":{value:"33.333333%"},"3/6":{value:"50%"},"4/6":{value:"66.666667%"},"5/6":{value:"83.333333%"},"1/12":{value:"8.333333%"},"2/12":{value:"16.666667%"},"3/12":{value:"25%"},"4/12":{value:"33.333333%"},"5/12":{value:"41.666667%"},"6/12":{value:"50%"},"7/12":{value:"58.333333%"},"8/12":{value:"66.666667%"},"9/12":{value:"75%"},"10/12":{value:"83.333333%"},"11/12":{value:"91.666667%"}}),oq=i.Ok.sizes({...oH,...oU,...o$,...oW}),oG=i.Ok.zIndex({hide:{value:-1},base:{value:0},docked:{value:10},dropdown:{value:1e3},sticky:{value:1100},banner:{value:1200},overlay:{value:1300},modal:{value:1400},popover:{value:1500},skipNav:{value:1600},toast:{value:1700},tooltip:{value:1800},max:{value:0x7fffffff}}),oK=(0,i.C8)({preflight:!0,cssVarsPrefix:"chakra",cssVarsRoot:":where(html, .chakra-theme)",globalCss:x,theme:{breakpoints:{sm:"480px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},keyframes:oF,tokens:{aspectRatios:oI,animations:oO,blurs:o_,borders:oT,colors:oP,durations:oA,easings:oN,fonts:oD,fontSizes:oM,fontWeights:oL,letterSpacings:oj,lineHeights:oz,radii:oB,spacing:oU,sizes:oq,zIndex:oG,cursor:oR},semanticTokens:{colors:W,shadows:q,radii:$},recipes:{badge:E,button:k,code:_,container:P,heading:R,input:N,inputAddon:M,kbd:L,link:V,mark:D,separator:j,skeleton:z,skipNavLink:B,spinner:U,textarea:H,icon:A,checkmark:C,radiomark:F,colorSwatch:T},slotRecipes:{accordion:rZ,actionBar:r0,alert:r1,avatar:r5,blockquote:r3,breadcrumb:r4,card:r6,checkbox:r7,checkboxCard:r9,codeBlock:ne,collapsible:ni,dataList:ns,dialog:nl,drawer:nu,editable:nd,emptyState:nf,field:nh,fieldset:np,fileUpload:ng,hoverCard:nS,list:nE,listbox:nk,menu:nC,nativeSelect:nI,numberInput:n4,pinInput:ic,popover:id,progress:ip,progressCircle:ig,radioCard:iH,radioGroup:iW,ratingGroup:i$,scrollArea:i6,segmentGroup:i7,select:nO,combobox:na,slider:i9,stat:oe,steps:or,switch:on,table:oi,tabs:oo,tag:os,toast:ou,tooltip:od,status:ot,timeline:ol,colorPicker:no,qrCode:iU,treeView:ok},textStyles:oC,layerStyles:w,animationStyles:S}}),oY=(0,m.S)(g,oK);(0,b.m)(oY)},88476:e=>{e.exports=function(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}},89071:(e,t,r)=>{var n=r(52420),i=r(74582),o=r(81563),a=n?n.isConcatSpreadable:void 0;e.exports=function(e){return o(e)||i(e)||!!(a&&e&&e[a])}},89145:e=>{e.exports=function(e,t,r){for(var n=-1,i=null==e?0:e.length;++n<i;)if(r(t,e[n]))return!0;return!1}},89183:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return v},useLinkStatus:function(){return b}});let n=r(52333),i=r(87259),o=n._(r(80715)),a=r(8346),s=r(61428),l=r(56327),u=r(67684),c=r(26526);r(89713);let d=r(99012),f=r(87635),h=r(63051);r(12625);let p=r(33308);function g(e){return"string"==typeof e?e:(0,a.formatUrl)(e)}function v(e){var t;let r,n,a,[v,b]=(0,o.useOptimistic)(d.IDLE_LINK_STATUS),y=(0,o.useRef)(null),{href:x,as:w,children:S,prefetch:E=null,passHref:k,replace:C,shallow:O,scroll:I,onClick:_,onMouseEnter:T,onTouchStart:P,legacyBehavior:R=!1,onNavigate:A,ref:N,unstable_dynamicOnHover:M,...L}=e;r=S,R&&("string"==typeof r||"number"==typeof r)&&(r=(0,i.jsx)("a",{children:r}));let V=o.default.useContext(s.AppRouterContext),D=!1!==E,F=!1!==E?null===(t=E)||"auto"===t?p.FetchStrategy.PPR:p.FetchStrategy.Full:p.FetchStrategy.PPR,{href:j,as:z}=o.default.useMemo(()=>{let e=g(x);return{href:e,as:w?g(w):e}},[x,w]);R&&(n=o.default.Children.only(r));let B=R?n&&"object"==typeof n&&n.ref:N,U=o.default.useCallback(e=>(null!==V&&(y.current=(0,d.mountLinkInstance)(e,j,V,F,D,b)),()=>{y.current&&((0,d.unmountLinkForCurrentNavigation)(y.current),y.current=null),(0,d.unmountPrefetchableInstance)(e)}),[D,j,V,F,b]),H={ref:(0,l.useMergedRef)(U,B),onClick(e){R||"function"!=typeof _||_(e),R&&n.props&&"function"==typeof n.props.onClick&&n.props.onClick(e),V&&(e.defaultPrevented||function(e,t,r,n,i,a,s){let{nodeName:l}=e.currentTarget;if(!("A"===l.toUpperCase()&&function(e){let t=e.currentTarget.getAttribute("target");return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||e.currentTarget.hasAttribute("download"))){if(!(0,f.isLocalURL)(t)){i&&(e.preventDefault(),location.replace(t));return}if(e.preventDefault(),s){let e=!1;if(s({preventDefault:()=>{e=!0}}),e)return}o.default.startTransition(()=>{(0,h.dispatchNavigateAction)(r||t,i?"replace":"push",null==a||a,n.current)})}}(e,j,z,y,C,I,A))},onMouseEnter(e){R||"function"!=typeof T||T(e),R&&n.props&&"function"==typeof n.props.onMouseEnter&&n.props.onMouseEnter(e),V&&D&&(0,d.onNavigationIntent)(e.currentTarget,!0===M)},onTouchStart:function(e){R||"function"!=typeof P||P(e),R&&n.props&&"function"==typeof n.props.onTouchStart&&n.props.onTouchStart(e),V&&D&&(0,d.onNavigationIntent)(e.currentTarget,!0===M)}};return(0,u.isAbsoluteUrl)(z)?H.href=z:R&&!k&&("a"!==n.type||"href"in n.props)||(H.href=(0,c.addBasePath)(z)),a=R?o.default.cloneElement(n,H):(0,i.jsx)("a",{...L,...H,children:r}),(0,i.jsx)(m.Provider,{value:v,children:a})}let m=(0,o.createContext)(d.IDLE_LINK_STATUS),b=()=>(0,o.useContext)(m);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},89252:(e,t,r)=>{var n=r(46410);e.exports=function(e,t){return n(t,function(t){return e[t]})}},89662:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},89718:(e,t,r)=>{var n=r(52420),i=r(49547),o=r(62256),a=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?i(e):o(e)}},90641:(e,t,r)=>{var n=r(52417);e.exports=function(e){return n(this,e).has(e)}},90777:(e,t,r)=>{var n=r(63999),i=r(60663);e.exports=function(e,t,r){return i.transform(e.nodes(),function(i,o){i[o]=n(e,o,t,r)},{})}},91150:(e,t,r)=>{"use strict";r.d(t,{k:()=>o});var n=r(77534),i="data-scroll-lock";function o(e){let t=e??document,r=t.defaultView??window,{documentElement:o,body:a}=t;if(a.hasAttribute(i))return;let s=r.innerWidth-o.clientWidth;a.setAttribute(i,"");let l=Math.round(o.getBoundingClientRect().left)+o.scrollLeft?"paddingLeft":"paddingRight",u=[(0,n.$h)(o,"--scrollbar-width",`${s}px`),(0,n.aR)()?(()=>{let{scrollX:e,scrollY:t,visualViewport:i}=r,o=i?.offsetLeft??0,u=i?.offsetTop??0,c=(0,n.eC)(a,{position:"fixed",overflow:"hidden",top:`${-(t-Math.floor(u))}px`,left:`${-(e-Math.floor(o))}px`,right:"0",[l]:`${s}px`});return()=>{c?.(),r.scrollTo({left:e,top:t,behavior:"instant"})}})():(0,n.eC)(a,{overflow:"hidden",[l]:`${s}px`})];return()=>{u.forEach(e=>e?.()),a.removeAttribute(i)}}},91377:(e,t,r)=>{var n=r(10182),i=r(63630);e.exports=function(e,t){return null!=e&&i(e,t,n)}},91663:(e,t,r)=>{"use strict";function n(e){return function(){return this.matches(e)}}function i(e){return function(t){return t.matches(e)}}r.d(t,{A:()=>n,j:()=>i})},92457:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r}},92522:(e,t,r)=>{var n=r(52387),i=function(){var e=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();e.exports=function(e){return!!i&&i in e}},92779:(e,t,r)=>{e.exports=r(5182)(r(93475),"WeakMap")},93340:e=>{e.exports=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}},93398:(e,t,r)=>{var n=r(21694);e.exports=r(733)(function(e,t,r){n(e,t,r)})},93475:(e,t,r)=>{var n=r(12266),i="object"==typeof self&&self&&self.Object===Object&&self;e.exports=n||i||Function("return this")()},93679:(e,t,r)=>{var n=r(81789),i=r(86622);e.exports=function(e,t){return e&&n(t,i(t),e)}},93773:(e,t,r)=>{var n=r(5755),i=r(30005),o=r(96980);e.exports=function(e){return o(e)?n(e,!0):i(e)}},93913:(e,t,r)=>{var n=r(5182);e.exports=function(){try{var e=n(Object,"defineProperty");return e({},"",{}),e}catch(e){}}()},93927:(e,t,r)=>{e.exports=r(15660)},93970:(e,t,r)=>{"use strict";r.d(t,{Aq:()=>x,MI:()=>c,Ng:()=>m});var n=r(43690),i=r(77534),o=r(87826),a=r(68683),s=r(75794),l=r(76808),u=r(41562),c=(0,n.y)("tooltip").parts("trigger","arrow","arrowTip","positioner","content"),d=c.build(),f=e=>e.ids?.trigger??`tooltip:${e.id}:trigger`,h=e=>e.ids?.positioner??`tooltip:${e.id}:popper`,p=e=>e.getById(f(e)),g=e=>e.getById(h(e)),v=(0,s.y$)({id:null});function m(e,t){let{state:r,context:n,send:s,scope:l,prop:u,event:c}=e,p=u("id"),g=!!u("aria-label"),m=r.matches("open","closing"),b=f(l),y=l.ids?.content??`tooltip:${l.id}:content`,x=u("disabled"),w=(0,a.aC)({...u("positioning"),placement:n.get("currentPlacement")});return{open:m,setOpen(e){r.matches("open","closing")!==e&&s({type:e?"open":"close"})},reposition(e={}){s({type:"positioning.set",options:e})},getTriggerProps:()=>t.button({...d.trigger.attrs,id:b,dir:u("dir"),"data-expanded":(0,i.sE)(m),"data-state":m?"open":"closed","aria-describedby":m?y:void 0,onClick(e){e.defaultPrevented||x||u("closeOnClick")&&s({type:"close",src:"trigger.click"})},onFocus(e){queueMicrotask(()=>{e.defaultPrevented||x||"trigger.pointerdown"===c.src||(0,o.pP)()&&s({type:"open",src:"trigger.focus"})})},onBlur(e){!e.defaultPrevented&&(x||p===v.get("id")&&s({type:"close",src:"trigger.blur"}))},onPointerDown(e){!e.defaultPrevented&&!x&&(0,i.Ml)(e)&&u("closeOnPointerDown")&&p===v.get("id")&&s({type:"close",src:"trigger.pointerdown"})},onPointerMove(e){e.defaultPrevented||x||"touch"!==e.pointerType&&s({type:"pointer.move"})},onPointerLeave(){x||s({type:"pointer.leave"})},onPointerCancel(){x||s({type:"pointer.leave"})}}),getArrowProps:()=>t.element({id:l.ids?.arrow??`tooltip:${l.id}:arrow`,...d.arrow.attrs,dir:u("dir"),style:w.arrow}),getArrowTipProps:()=>t.element({...d.arrowTip.attrs,dir:u("dir"),style:w.arrowTip}),getPositionerProps:()=>t.element({id:h(l),...d.positioner.attrs,dir:u("dir"),style:w.floating}),getContentProps:()=>t.element({...d.content.attrs,dir:u("dir"),hidden:!m,"data-state":m?"open":"closed",role:g?void 0:"tooltip",id:g?void 0:y,"data-placement":n.get("currentPlacement"),onPointerEnter(){s({type:"content.pointer.move"})},onPointerLeave(){s({type:"content.pointer.leave"})},style:{pointerEvents:u("interactive")?"auto":"none"}})}}var{and:b,not:y}=(0,l.b6)(),x=(0,l.Op)({initialState:({prop:e})=>e("open")||e("defaultOpen")?"open":"closed",props({props:e}){let t=e.closeOnClick??!0,r=e.closeOnPointerDown??t;return{id:"x",openDelay:400,closeDelay:150,closeOnEscape:!0,interactive:!1,closeOnScroll:!0,disabled:!1,...e,closeOnPointerDown:r,closeOnClick:t,positioning:{placement:"bottom",...e.positioning}}},effects:["trackFocusVisible","trackStore"],context:({bindable:e})=>({currentPlacement:e(()=>({defaultValue:void 0})),hasPointerMoveOpened:e(()=>({defaultValue:!1}))}),watch({track:e,action:t,prop:r}){e([()=>r("disabled")],()=>{t(["closeIfDisabled"])}),e([()=>r("open")],()=>{t(["toggleVisibility"])})},states:{closed:{entry:["clearGlobalId"],on:{"controlled.open":{target:"open"},open:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}],"pointer.leave":{actions:["clearPointerMoveOpened"]},"pointer.move":[{guard:b("noVisibleTooltip",y("hasPointerMoveOpened")),target:"opening"},{guard:y("hasPointerMoveOpened"),target:"open",actions:["setPointerMoveOpened","invokeOnOpen"]}]}},opening:{effects:["trackScroll","trackPointerlockChange","waitForOpenDelay"],on:{"after.openDelay":[{guard:"isOpenControlled",actions:["setPointerMoveOpened","invokeOnOpen"]},{target:"open",actions:["setPointerMoveOpened","invokeOnOpen"]}],"controlled.open":{target:"open"},"controlled.close":{target:"closed"},open:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}],"pointer.leave":[{guard:"isOpenControlled",actions:["clearPointerMoveOpened","invokeOnClose","toggleVisibility"]},{target:"closed",actions:["clearPointerMoveOpened","invokeOnClose"]}],close:[{guard:"isOpenControlled",actions:["invokeOnClose","toggleVisibility"]},{target:"closed",actions:["invokeOnClose"]}]}},open:{effects:["trackEscapeKey","trackScroll","trackPointerlockChange","trackPositioning"],entry:["setGlobalId"],on:{"controlled.close":{target:"closed"},close:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],"pointer.leave":[{guard:"isVisible",target:"closing",actions:["clearPointerMoveOpened"]},{guard:"isOpenControlled",actions:["clearPointerMoveOpened","invokeOnClose"]},{target:"closed",actions:["clearPointerMoveOpened","invokeOnClose"]}],"content.pointer.leave":{guard:"isInteractive",target:"closing"},"positioning.set":{actions:["reposition"]}}},closing:{effects:["trackPositioning","waitForCloseDelay"],on:{"after.closeDelay":[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],"controlled.close":{target:"closed"},"controlled.open":{target:"open"},close:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],"pointer.move":[{guard:"isOpenControlled",actions:["setPointerMoveOpened","invokeOnOpen","toggleVisibility"]},{target:"open",actions:["setPointerMoveOpened","invokeOnOpen"]}],"content.pointer.move":{guard:"isInteractive",target:"open"},"positioning.set":{actions:["reposition"]}}}},implementations:{guards:{noVisibleTooltip:()=>null===v.get("id"),isVisible:({prop:e})=>e("id")===v.get("id"),isInteractive:({prop:e})=>!!e("interactive"),hasPointerMoveOpened:({context:e})=>e.get("hasPointerMoveOpened"),isOpenControlled:({prop:e})=>void 0!==e("open")},actions:{setGlobalId:({prop:e})=>{v.set("id",e("id"))},clearGlobalId:({prop:e})=>{e("id")===v.get("id")&&v.set("id",null)},invokeOnOpen:({prop:e})=>{e("onOpenChange")?.({open:!0})},invokeOnClose:({prop:e})=>{e("onOpenChange")?.({open:!1})},closeIfDisabled:({prop:e,send:t})=>{e("disabled")&&t({type:"close",src:"disabled.change"})},reposition:({context:e,event:t,prop:r,scope:n})=>{if("positioning.set"===t.type)return(0,a.Ox)(p(n),()=>g(n),{...r("positioning"),...t.options,defer:!0,listeners:!1,onComplete(t){e.set("currentPlacement",t.placement)}})},toggleVisibility:({prop:e,event:t,send:r})=>{queueMicrotask(()=>{r({type:e("open")?"controlled.open":"controlled.close",previousEvent:t})})},setPointerMoveOpened:({context:e})=>{e.set("hasPointerMoveOpened",!0)},clearPointerMoveOpened:({context:e})=>{e.set("hasPointerMoveOpened",!1)}},effects:{trackFocusVisible:({scope:e})=>(0,o.Yy)({root:e.getRootNode?.()}),trackPositioning:({context:e,prop:t,scope:r})=>(e.get("currentPlacement")||e.set("currentPlacement",t("positioning").placement),(0,a.Ox)(p(r),()=>g(r),{...t("positioning"),defer:!0,onComplete(t){e.set("currentPlacement",t.placement)}})),trackPointerlockChange:({send:e,scope:t})=>{let r=t.getDoc();return(0,i.kn)(r,"pointerlockchange",()=>e({type:"close",src:"pointerlock:change"}),!1)},trackScroll:({send:e,prop:t,scope:r})=>{if(!t("closeOnScroll"))return;let n=p(r);if(!n)return;let o=(0,i.v9)(n).map(t=>(0,i.kn)(t,"scroll",()=>{e({type:"close",src:"scroll"})},{passive:!0,capture:!0}));return()=>{o.forEach(e=>e?.())}},trackStore:({prop:e,send:t})=>{let r;return queueMicrotask(()=>{r=v.subscribe(()=>{v.get("id")!==e("id")&&t({type:"close",src:"id.change"})})}),()=>r?.()},trackEscapeKey:({send:e,prop:t})=>{if(t("closeOnEscape"))return(0,i.kn)(document,"keydown",t=>{(0,i.q_)(t)||"Escape"===t.key&&(t.stopPropagation(),e({type:"close",src:"keydown.escape"}))},!0)},waitForOpenDelay:({send:e,prop:t})=>{let r=setTimeout(()=>{e({type:"after.openDelay"})},t("openDelay"));return()=>clearTimeout(r)},waitForCloseDelay:({send:e,prop:t})=>{let r=setTimeout(()=>{e({type:"after.closeDelay"})},t("closeDelay"));return()=>clearTimeout(r)}}}}),w=(0,u.x)()(["aria-label","closeDelay","closeOnEscape","closeOnPointerDown","closeOnScroll","closeOnClick","dir","disabled","getRootNode","id","ids","interactive","onOpenChange","defaultOpen","open","openDelay","positioning"]);(0,s.PM)(w)},94114:(e,t,r)=>{var n=r(45387),i=r(79910);e.exports=function(e){return i(e)&&"[object Set]"==n(e)}},94193:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},94323:(e,t,r)=>{var n=r(17777),i=r(40497),o=r(89145),a=r(1349),s=r(81973),l=r(92457);e.exports=function(e,t,r){var u=-1,c=i,d=e.length,f=!0,h=[],p=h;if(r)f=!1,c=o;else if(d>=200){var g=t?null:s(e);if(g)return l(g);f=!1,c=a,p=new n}else p=t?[]:h;e:for(;++u<d;){var v=e[u],m=t?t(v):v;if(v=r||0!==v?v:0,f&&m==m){for(var b=p.length;b--;)if(p[b]===m)continue e;t&&p.push(m),h.push(v)}else c(p,m,r)||(p!==h&&p.push(m),h.push(v))}return h}},94611:(e,t,r)=>{var n=r(24795);e.exports=function(e){return n(e,4)}},94664:(e,t,r)=>{var n=r(97643),i=r(96980),o=r(86622);e.exports=function(e){return function(t,r,a){var s=Object(t);if(!i(t)){var l=n(r,3);t=o(t),r=function(e){return l(s[e],e,s)}}var u=e(t,r,a);return u>-1?s[l?t[u]:u]:void 0}}},94741:(e,t,r)=>{"use strict";r.d(t,{Tt:()=>V,Xi:()=>D,R4:()=>F,tK:()=>L,Cf:()=>N,Es:()=>j,c7:()=>z,f5:()=>A,Dz:()=>R,L3:()=>M});var n=r(87259),i=r(76808),o=r(18037),a=r(97207),s=r(72963),l=r(14115);let[u,c]=(0,r(5719).q)({name:"DialogContext",hookName:"useDialogContext",providerName:"<DialogProvider />"});var d=r(12318),f=r(70568),h=r(80715),p=r(24359),g=r(30681),v=r(634);let m=(0,h.forwardRef)((e,t)=>{let r=c(),o=(0,l.c)(),a=(0,i.v6)({...r.getTriggerProps(),"aria-controls":o.unmounted?void 0:r.getTriggerProps()["aria-controls"]},e);return(0,n.jsx)(v.X.button,{...a,ref:t})});m.displayName="DialogTrigger";let b=(0,h.forwardRef)((e,t)=>{let r=c(),o=(0,i.v6)(r.getPositionerProps(),e);return(0,l.c)().unmounted?null:(0,n.jsx)(v.X.div,{...o,ref:t})});b.displayName="DialogPositioner";var y=r(60460);let x=(0,h.forwardRef)((e,t)=>{let r=c(),o=(0,l.c)(),a=(0,i.v6)(r.getContentProps(),o.getPresenceProps(),e);return o.unmounted?null:(0,n.jsx)(v.X.div,{...a,ref:(0,y.t)(o.ref,t)})});x.displayName="DialogContent";let w=(0,h.forwardRef)((e,t)=>{let r=c(),o=(0,i.v6)(r.getDescriptionProps(),e);return(0,n.jsx)(v.X.div,{...o,ref:t})});w.displayName="DialogDescription";let S=(0,h.forwardRef)((e,t)=>{let r=c(),o=(0,i.v6)(r.getTitleProps(),e);return(0,n.jsx)(v.X.h2,{...o,ref:t})});S.displayName="DialogTitle";let E=(0,h.forwardRef)((e,t)=>{let r=c(),o=(0,i.v6)(r.getCloseTriggerProps(),e);return(0,n.jsx)(v.X.button,{...o,ref:t})});E.displayName="DialogCloseTrigger";let k=(0,h.forwardRef)((e,t)=>{let r=c(),a=(0,o.ob)(),l=(0,s.x)({...a,present:r.open}),u=(0,i.v6)(r.getBackdropProps(),l.getPresenceProps(),e);return l.unmounted?null:(0,n.jsx)(v.X.div,{...u,ref:(0,y.t)(l.ref,t)})});k.displayName="DialogBackdrop";var C=r(9242),O=r(38006);let{withRootProvider:I,withContext:_,useStyles:T,PropsProvider:P}=(0,C.c)({key:"dialog"});I(e=>{let[t,{value:r,children:c}]=(0,a.s)(e),[d]=(0,o.s9)(t),f=(0,s.x)((0,i.v6)({present:r.open},t));return(0,n.jsx)(u,{value:r,children:(0,n.jsx)(o.pf,{value:d,children:(0,n.jsx)(l.j,{value:f,children:c})})})},{defaultProps:{unmountOnExit:!0,lazyMount:!0}});let R=I(e=>{let[t,{children:r,...c}]=(0,a.s)(e),[v]=(0,o.s9)(t),m=(e=>{let t=(0,h.useId)(),{getRootNode:r}=(0,p.w)(),{dir:n}=(0,g.g)(),i={id:t,getRootNode:r,dir:n,...e},o=(0,f.zl)(d.Aq,i);return d.Ng(o,f._B)})(c),b=(0,s.x)((0,i.v6)({present:m.open},t));return(0,n.jsx)(u,{value:m,children:(0,n.jsx)(o.pf,{value:v,children:(0,n.jsx)(l.j,{value:b,children:r})})})},{defaultProps:{unmountOnExit:!0,lazyMount:!0}});_(m,"trigger",{forwardAsChild:!0});let A=_(b,"positioner",{forwardAsChild:!0}),N=_(x,"content",{forwardAsChild:!0});_(w,"description",{forwardAsChild:!0});let M=_(S,"title",{forwardAsChild:!0}),L=_(E,"closeTrigger",{forwardAsChild:!0}),V=(0,h.forwardRef)(function(e,t){let r=c();return(0,n.jsx)(O.B.button,{...e,ref:t,onClick:()=>r.setOpen(!1)})}),D=_(k,"backdrop",{forwardAsChild:!0}),F=_("div","body"),j=_("div","footer"),z=_("div","header")},94895:e=>{e.exports=function(e,t,r){for(var n=r-1,i=e.length;++n<i;)if(e[n]===t)return n;return -1}},95285:(e,t,r)=>{e.exports=r(94664)(r(71487))},95315:(e,t,r)=>{var n=r(30847),i=r(55266),o=r(44901);e.exports=function(e){var t=i(e);return 1==t.length&&t[0][2]?o(t[0][0],t[0][1]):function(r){return r===e||n(r,e,t)}}},95785:(e,t,r)=>{var n=r(60663);e.exports=function(e){var t=0,r=[],i={},o=[];return e.nodes().forEach(function(a){n.has(i,a)||function a(s){var l=i[s]={onStack:!0,lowlink:t,index:t++};if(r.push(s),e.successors(s).forEach(function(e){n.has(i,e)?i[e].onStack&&(l.lowlink=Math.min(l.lowlink,i[e].index)):(a(e),l.lowlink=Math.min(l.lowlink,i[e].lowlink))}),l.lowlink===l.index){var u,c=[];do i[u=r.pop()].onStack=!1,c.push(u);while(s!==u);o.push(c)}}(a)}),o}},96162:(e,t,r)=>{"use strict";r.d(t,{L:()=>n});let n=(0,r(38006).B)("span")},96199:(e,t,r)=>{"use strict";function n(e,t,r){var n="";return r.split(" ").forEach(function(r){void 0!==e[r]?t.push(e[r]+";"):r&&(n+=r+" ")}),n}r.d(t,{Rk:()=>n,SF:()=>i,sk:()=>o});var i=function(e,t,r){var n=e.key+"-"+t.name;!1===r&&void 0===e.registered[n]&&(e.registered[n]=t.styles)},o=function(e,t,r){i(e,t,r);var n=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do e.insert(t===o?"."+n:"",o,e.sheet,!0),o=o.next;while(void 0!==o)}}},96213:(e,t,r)=>{"use strict";e.exports=r(98321)},96721:(e,t,r)=>{"use strict";r.d(t,{AH:()=>c,Y:()=>l,i7:()=>d,mL:()=>u});var n=r(53078),i=r(80715),o=r(96199),a=r(13648),s=r(45435);r(85963),r(5827);var l=function(e,t){var r=arguments;if(null==t||!n.h.call(t,"css"))return i.createElement.apply(void 0,r);var o=r.length,a=Array(o);a[0]=n.E,a[1]=(0,n.c)(e,t);for(var s=2;s<o;s++)a[s]=r[s];return i.createElement.apply(null,a)};!function(e){var t;t||(t=e.JSX||(e.JSX={}))}(l||(l={}));var u=(0,n.w)(function(e,t){var r=e.styles,l=(0,s.J)([r],void 0,i.useContext(n.T)),u=i.useRef();return(0,a.i)(function(){var e=t.key+"-global",r=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),n=!1,i=document.querySelector('style[data-emotion="'+e+" "+l.name+'"]');return t.sheet.tags.length&&(r.before=t.sheet.tags[0]),null!==i&&(n=!0,i.setAttribute("data-emotion",e),r.hydrate([i])),u.current=[r,n],function(){r.flush()}},[t]),(0,a.i)(function(){var e=u.current,r=e[0];if(e[1]){e[1]=!1;return}if(void 0!==l.next&&(0,o.sk)(t,l.next,!0),r.tags.length){var n=r.tags[r.tags.length-1].nextElementSibling;r.before=n,r.flush()}t.insert("",l,r,!1)},[t,l.name]),null});function c(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,s.J)(t)}function d(){var e=c.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}},96729:e=>{e.exports=function(e){return function(t){return e(t)}}},96819:(e,t,r)=>{var n=r(17777),i=r(49620),o=r(1349);e.exports=function(e,t,r,a,s,l){var u=1&r,c=e.length,d=t.length;if(c!=d&&!(u&&d>c))return!1;var f=l.get(e),h=l.get(t);if(f&&h)return f==t&&h==e;var p=-1,g=!0,v=2&r?new n:void 0;for(l.set(e,t),l.set(t,e);++p<c;){var m=e[p],b=t[p];if(a)var y=u?a(b,m,p,t,e,l):a(m,b,p,e,t,l);if(void 0!==y){if(y)continue;g=!1;break}if(v){if(!i(t,function(e,t){if(!o(v,t)&&(m===e||s(m,e,r,a,l)))return v.push(t)})){g=!1;break}}else if(!(m===b||s(m,b,r,a,l))){g=!1;break}}return l.delete(e),l.delete(t),g}},96969:(e,t,r)=>{var n=r(40236),i=r(9452),o=r(94323),a=r(69635);e.exports=i(function(e){return o(n(e,1,a,!0))})},96980:(e,t,r)=>{var n=r(75114),i=r(44686);e.exports=function(e){return null!=e&&i(e.length)&&!n(e)}},97207:(e,t,r)=>{"use strict";r.d(t,{s:()=>i});var n=r(97563);let i=e=>(0,n.P)()(e,["immediate","lazyMount","onExitComplete","present","skipAnimationOnMount","unmountOnExit"])},97328:(e,t,r)=>{var n=r(29358),i=0;e.exports=function(e){var t=++i;return n(e)+t}},97563:(e,t,r)=>{"use strict";r.d(t,{P:()=>n});let n=()=>(e,t)=>t.reduce((e,t)=>{let[r,n]=e;return void 0!==n[t]&&(r[t]=n[t]),delete n[t],[r,n]},[{},{...e}])},97580:(e,t,r)=>{"use strict";r.d(t,{K:()=>n,r:()=>i});let n=(0,r(43690).y)("field").parts("root","errorText","helperText","input","label","select","textarea","requiredIndicator"),i=n.build()},97643:(e,t,r)=>{var n=r(95315),i=r(15946),o=r(41480),a=r(81563),s=r(49015);e.exports=function(e){return"function"==typeof e?e:null==e?o:"object"==typeof e?a(e)?i(e[0],e[1]):n(e):s(e)}},97780:(e,t,r)=>{var n=r(32191),i=r(96980);e.exports=function(e,t){var r=-1,o=i(e)?Array(e.length):[];return n(e,function(e,n,i){o[++r]=t(e,n,i)}),o}},98034:(e,t,r)=>{"use strict";r.d(t,{PR:()=>R,Mo:()=>P,ZI:()=>T,ol:()=>_,sb:()=>O,k$:()=>I});var n=r(87259),i=r(76808),o=r(97207),a=r(72963),s=r(14115);let[l,u]=(0,r(5719).q)({name:"TooltipContext",hookName:"useTooltipContext",providerName:"<TooltipProvider />"});var c=r(70568),d=r(93970),f=r(80715),h=r(24359),p=r(30681),g=r(634);let v=(0,f.forwardRef)((e,t)=>{let r=u(),o=(0,i.v6)(r.getTriggerProps(),e);return(0,n.jsx)(g.X.button,{...o,ref:t})});v.displayName="TooltipTrigger";let m=(0,f.forwardRef)((e,t)=>{let r=u(),o=(0,i.v6)(r.getPositionerProps(),e);return(0,s.c)().unmounted?null:(0,n.jsx)(g.X.div,{...o,ref:t})});m.displayName="TooltipPositioner";var b=r(60460);let y=(0,f.forwardRef)((e,t)=>{let r=u(),o=(0,s.c)(),a=(0,i.v6)(r.getContentProps(),o.getPresenceProps(),e);return o.unmounted?null:(0,n.jsx)(g.X.div,{...a,ref:(0,b.t)(o.ref,t)})});y.displayName="TooltipContent";let x=(0,f.forwardRef)((e,t)=>{let r=u(),o=(0,i.v6)(r.getArrowTipProps(),e);return(0,n.jsx)(g.X.div,{...o,ref:t})});x.displayName="TooltipArrowTip";let w=(0,f.forwardRef)((e,t)=>{let r=u(),o=(0,i.v6)(r.getArrowProps(),e);return(0,n.jsx)(g.X.div,{...o,ref:t})});w.displayName="TooltipArrow";let{withRootProvider:S,withContext:E,useStyles:k,PropsProvider:C}=(0,r(9242).c)({key:"tooltip"});S(e=>{let[t,{value:r,children:u}]=(0,o.s)(e),c=(0,a.x)((0,i.v6)({present:r.open},t));return(0,n.jsx)(l,{value:r,children:(0,n.jsx)(s.j,{value:c,children:u})})});let O=S(e=>{let[t,{children:r,...u}]=(0,o.s)(e),g=(e=>{let t=(0,f.useId)(),{getRootNode:r}=(0,h.w)(),{dir:n}=(0,p.g)(),i={id:t,dir:n,getRootNode:r,...e},o=(0,c.zl)(d.Aq,i);return d.Ng(o,c._B)})(u),v=(0,a.x)((0,i.v6)({present:g.open},t));return(0,n.jsx)(l,{value:g,children:(0,n.jsx)(s.j,{value:v,children:r})})},{defaultProps:{lazyMount:!0,unmountOnExit:!0}}),I=E(v,"trigger",{forwardAsChild:!0}),_=E(m,"positioner",{forwardAsChild:!0}),T=E(y,"content",{forwardAsChild:!0}),P=E(x,"arrowTip",{forwardAsChild:!0}),R=E(w,"arrow",{forwardAsChild:!0,defaultProps:{children:(0,n.jsx)(P,{})}})},98206:(e,t,r)=>{var n=r(82106),i=r(47439),o=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols;e.exports=a?function(e){return null==e?[]:n(a(e=Object(e)),function(t){return o.call(e,t)})}:i},98321:(e,t)=>{"use strict";var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,o=r?Symbol.for("react.fragment"):60107,a=r?Symbol.for("react.strict_mode"):60108,s=r?Symbol.for("react.profiler"):60114,l=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,c=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,f=r?Symbol.for("react.forward_ref"):60112,h=r?Symbol.for("react.suspense"):60113,p=r?Symbol.for("react.suspense_list"):60120,g=r?Symbol.for("react.memo"):60115,v=r?Symbol.for("react.lazy"):60116,m=r?Symbol.for("react.block"):60121,b=r?Symbol.for("react.fundamental"):60117,y=r?Symbol.for("react.responder"):60118,x=r?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case c:case d:case o:case s:case a:case h:return e;default:switch(e=e&&e.$$typeof){case u:case f:case v:case g:case l:return e;default:return t}}case i:return t}}}function S(e){return w(e)===d}t.AsyncMode=c,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=l,t.Element=n,t.ForwardRef=f,t.Fragment=o,t.Lazy=v,t.Memo=g,t.Portal=i,t.Profiler=s,t.StrictMode=a,t.Suspense=h,t.isAsyncMode=function(e){return S(e)||w(e)===c},t.isConcurrentMode=S,t.isContextConsumer=function(e){return w(e)===u},t.isContextProvider=function(e){return w(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return w(e)===f},t.isFragment=function(e){return w(e)===o},t.isLazy=function(e){return w(e)===v},t.isMemo=function(e){return w(e)===g},t.isPortal=function(e){return w(e)===i},t.isProfiler=function(e){return w(e)===s},t.isStrictMode=function(e){return w(e)===a},t.isSuspense=function(e){return w(e)===h},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===d||e===s||e===a||e===h||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===g||e.$$typeof===l||e.$$typeof===u||e.$$typeof===f||e.$$typeof===b||e.$$typeof===y||e.$$typeof===x||e.$$typeof===m)},t.typeOf=w},98492:(e,t,r)=>{"use strict";r.d(t,{Es:()=>s,FK:()=>i.Fragment,NT:()=>i.useContext,Ob:()=>i.cloneElement,Rf:()=>i.forwardRef,_q:()=>u,li:()=>i.useRef,n:()=>i.createElement,q6:()=>i.createContext,rz:()=>o.useSyncExternalStore,zO:()=>i.isValidElement});var n,i=r(80715),o=r(3479);let a=(n||(n=r.t(i,2))).useInsertionEffect,s="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?i.useLayoutEffect:i.useEffect,l=a||s,u=e=>{let t=i.useRef([e,(...e)=>t[0](...e)]).current;return l(()=>{t[0]=e}),t[1]}},99563:(e,t,r)=>{var n=r(46410),i=r(60678),o=r(97643),a=r(97780),s=r(40599),l=r(96729),u=r(84682),c=r(41480),d=r(81563);e.exports=function(e,t,r){t=t.length?n(t,function(e){return d(e)?function(t){return i(t,1===e.length?e[0]:e)}:e}):[c];var f=-1;return t=n(t,l(o)),s(a(e,function(e,r,i){return{criteria:n(t,function(t){return t(e)}),index:++f,value:e}}),function(e,t){return u(e,t,r)})}},99686:(e,t,r)=>{var n=r(52420),i=r(46410),o=r(81563),a=r(18230),s=1/0,l=n?n.prototype:void 0,u=l?l.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(o(t))return i(t,e)+"";if(a(t))return u?u.call(t):"";var r=t+"";return"0"==r&&1/t==-s?"-0":r}}}]);