From 2e01809812419599d2c035536d1cd5e3502115d2 Mon Sep 17 00:00:00 2001 From: Github Actions Date: Mon, 23 Dec 2024 21:29:09 +0000 Subject: [PATCH] ci: automatic build fixes --- ...der-273b2bbd.js => ClipLoader-708ab7a4.js} | 2 +- ...on-80c07408.js => DailyMotion-86b15de1.js} | 2 +- ...ebook-a64e2bd7.js => Facebook-5e2a901f.js} | 2 +- ...yer-a54bbb10.js => FilePlayer-bc24401f.js} | 2 +- ...altura-3e13ded9.js => Kaltura-11bc99d2.js} | 2 +- ...cloud-b2883ce1.js => Mixcloud-57dd95f3.js} | 2 +- ...review-82441676.js => Preview-dd97a4b5.js} | 2 +- ...leton-c3abb4f1.js => Skeleton-851daffa.js} | 2 +- ...oud-a5cc949d.js => SoundCloud-4fc651dd.js} | 2 +- .../{Stack-7521353f.js => Stack-bcf44d60.js} | 2 +- ...ble-17261ec9.js => Streamable-00043ce8.js} | 2 +- .../{Tabs-53998bef.js => Tabs-31512595.js} | 2 +- ...dfc0e6.js => TextareaAutosize-387bd327.js} | 2 +- ...{Twitch-b178bb35.js => Twitch-d70c87c7.js} | 2 +- ...phy-7897fa03.js => Typography-0c02c7d4.js} | 2 +- ...idyard-413113c0.js => Vidyard-4e36f297.js} | 2 +- .../{Vimeo-b6da464c.js => Vimeo-4ecba9a4.js} | 2 +- ...{Wistia-0c12bdf7.js => Wistia-5701c088.js} | 2 +- ...ouTube-79225b7a.js => YouTube-bee8bd7a.js} | 2 +- ...ants-f759a65e.js => constants-71fc61fd.js} | 2 +- ...-0fd508c0.js => createSvgIcon-0b5f6bf4.js} | 2 +- .../{index-8c64b2dc.js => index-00326e4f.js} | 2 +- .../{index-07c7bb26.js => index-0241105d.js} | 2 +- .../{index-c106f68f.js => index-049c9db0.js} | 2 +- .../{index-27744ada.js => index-070f6d98.js} | 2 +- .../{index-44c74031.js => index-0c54fe39.js} | 4 +- .../{index-75c1ca4f.js => index-0cbd2958.js} | 2 +- .../{index-d713bacb.js => index-3240d88e.js} | 2 +- .../{index-b5c638db.js => index-4241a17b.js} | 2 +- .../{index-c8b2a94e.js => index-5207a9c5.js} | 2 +- .../{index-3506c528.js => index-6541aa03.js} | 2 +- .../{index-b1ebd2b7.js => index-6b78adda.js} | 36 +- .../{index-632074bb.js => index-71451929.js} | 2 +- build/assets/index-8001dd73.js | 586 ++++++++++++++ .../{index-c72c0e72.js => index-82597361.js} | 2 +- .../{index-ec018768.js => index-8a795fb2.js} | 2 +- .../{index-12606cd8.js => index-8bfad94c.js} | 2 +- .../{index-d54cb162.js => index-8f946e20.js} | 2 +- .../{index-ccbb14cf.js => index-ad617d4b.js} | 4 +- .../{index-1c3cbad2.js => index-b8439fd8.js} | 2 +- .../{index-831eec8c.js => index-badf8d31.js} | 2 +- .../{index-1575e121.js => index-bb4d07d0.js} | 2 +- .../{index-578f4f7c.js => index-d5562a09.js} | 2 +- .../{index-54853042.js => index-d58befe2.js} | 2 +- build/assets/index-df640694.js | 733 ------------------ .../{index-6c442139.js => index-e7d624e0.js} | 6 +- .../{index-87e08d45.js => index-ecdcb3cc.js} | 2 +- .../{index-501d0152.js => index-fcaf3d10.js} | 2 +- ...-9e89c04f.js => isPlainObject-5d028b0a.js} | 2 +- build/index.html | 2 +- 50 files changed, 655 insertions(+), 802 deletions(-) rename build/assets/{ClipLoader-273b2bbd.js => ClipLoader-708ab7a4.js} (97%) rename build/assets/{DailyMotion-80c07408.js => DailyMotion-86b15de1.js} (95%) rename build/assets/{Facebook-a64e2bd7.js => Facebook-5e2a901f.js} (96%) rename build/assets/{FilePlayer-a54bbb10.js => FilePlayer-bc24401f.js} (98%) rename build/assets/{Kaltura-3e13ded9.js => Kaltura-11bc99d2.js} (95%) rename build/assets/{Mixcloud-b2883ce1.js => Mixcloud-57dd95f3.js} (95%) rename build/assets/{Preview-82441676.js => Preview-dd97a4b5.js} (97%) rename build/assets/{Skeleton-c3abb4f1.js => Skeleton-851daffa.js} (97%) rename build/assets/{SoundCloud-a5cc949d.js => SoundCloud-4fc651dd.js} (95%) rename build/assets/{Stack-7521353f.js => Stack-bcf44d60.js} (99%) rename build/assets/{Streamable-17261ec9.js => Streamable-00043ce8.js} (95%) rename build/assets/{Tabs-53998bef.js => Tabs-31512595.js} (99%) rename build/assets/{TextareaAutosize-e8dfc0e6.js => TextareaAutosize-387bd327.js} (97%) rename build/assets/{Twitch-b178bb35.js => Twitch-d70c87c7.js} (95%) rename build/assets/{Typography-7897fa03.js => Typography-0c02c7d4.js} (93%) rename build/assets/{Vidyard-413113c0.js => Vidyard-4e36f297.js} (95%) rename build/assets/{Vimeo-b6da464c.js => Vimeo-4ecba9a4.js} (96%) rename build/assets/{Wistia-0c12bdf7.js => Wistia-5701c088.js} (96%) rename build/assets/{YouTube-79225b7a.js => YouTube-bee8bd7a.js} (97%) rename build/assets/{constants-f759a65e.js => constants-71fc61fd.js} (80%) rename build/assets/{createSvgIcon-0fd508c0.js => createSvgIcon-0b5f6bf4.js} (97%) rename build/assets/{index-8c64b2dc.js => index-00326e4f.js} (98%) rename build/assets/{index-07c7bb26.js => index-0241105d.js} (96%) rename build/assets/{index-c106f68f.js => index-049c9db0.js} (91%) rename build/assets/{index-27744ada.js => index-070f6d98.js} (69%) rename build/assets/{index-44c74031.js => index-0c54fe39.js} (99%) rename build/assets/{index-75c1ca4f.js => index-0cbd2958.js} (96%) rename build/assets/{index-d713bacb.js => index-3240d88e.js} (96%) rename build/assets/{index-b5c638db.js => index-4241a17b.js} (93%) rename build/assets/{index-c8b2a94e.js => index-5207a9c5.js} (93%) rename build/assets/{index-3506c528.js => index-6541aa03.js} (99%) rename build/assets/{index-b1ebd2b7.js => index-6b78adda.js} (89%) rename build/assets/{index-632074bb.js => index-71451929.js} (97%) create mode 100644 build/assets/index-8001dd73.js rename build/assets/{index-c72c0e72.js => index-82597361.js} (96%) rename build/assets/{index-ec018768.js => index-8a795fb2.js} (98%) rename build/assets/{index-12606cd8.js => index-8bfad94c.js} (93%) rename build/assets/{index-d54cb162.js => index-8f946e20.js} (96%) rename build/assets/{index-ccbb14cf.js => index-ad617d4b.js} (98%) rename build/assets/{index-1c3cbad2.js => index-b8439fd8.js} (92%) rename build/assets/{index-831eec8c.js => index-badf8d31.js} (99%) rename build/assets/{index-1575e121.js => index-bb4d07d0.js} (99%) rename build/assets/{index-578f4f7c.js => index-d5562a09.js} (99%) rename build/assets/{index-54853042.js => index-d58befe2.js} (85%) delete mode 100644 build/assets/index-df640694.js rename build/assets/{index-6c442139.js => index-e7d624e0.js} (95%) rename build/assets/{index-87e08d45.js => index-ecdcb3cc.js} (97%) rename build/assets/{index-501d0152.js => index-fcaf3d10.js} (91%) rename build/assets/{isPlainObject-9e89c04f.js => isPlainObject-5d028b0a.js} (98%) diff --git a/build/assets/ClipLoader-273b2bbd.js b/build/assets/ClipLoader-708ab7a4.js similarity index 97% rename from build/assets/ClipLoader-273b2bbd.js rename to build/assets/ClipLoader-708ab7a4.js index 15ae4fe28..44a5fb2bd 100644 --- a/build/assets/ClipLoader-273b2bbd.js +++ b/build/assets/ClipLoader-708ab7a4.js @@ -1,4 +1,4 @@ -import{r as m}from"./index-3506c528.js";var g={cm:!0,mm:!0,in:!0,px:!0,pt:!0,pc:!0,em:!0,ex:!0,ch:!0,rem:!0,vw:!0,vh:!0,vmin:!0,vmax:!0,"%":!0};function h(e){if(typeof e=="number")return{value:e,unit:"px"};var t,a=(e.match(/^[0-9.]*/)||"").toString();a.includes(".")?t=parseFloat(a):t=parseInt(a,10);var r=(e.match(/[^0-9]*$/)||"").toString();return g[r]?{value:t,unit:r}:(console.warn("React Spinners: ".concat(e," is not a valid css value. Defaulting to ").concat(t,"px.")),{value:t,unit:"px"})}function d(e){var t=h(e);return"".concat(t.value).concat(t.unit)}var b=function(e,t,a){var r="react-spinners-".concat(e,"-").concat(a);if(typeof window>"u"||!window.document)return r;var n=document.createElement("style");document.head.appendChild(n);var o=n.sheet,l=` +import{r as m}from"./index-6541aa03.js";var g={cm:!0,mm:!0,in:!0,px:!0,pt:!0,pc:!0,em:!0,ex:!0,ch:!0,rem:!0,vw:!0,vh:!0,vmin:!0,vmax:!0,"%":!0};function h(e){if(typeof e=="number")return{value:e,unit:"px"};var t,a=(e.match(/^[0-9.]*/)||"").toString();a.includes(".")?t=parseFloat(a):t=parseInt(a,10);var r=(e.match(/[^0-9]*$/)||"").toString();return g[r]?{value:t,unit:r}:(console.warn("React Spinners: ".concat(e," is not a valid css value. Defaulting to ").concat(t,"px.")),{value:t,unit:"px"})}function d(e){var t=h(e);return"".concat(t.value).concat(t.unit)}var b=function(e,t,a){var r="react-spinners-".concat(e,"-").concat(a);if(typeof window>"u"||!window.document)return r;var n=document.createElement("style");document.head.appendChild(n);var o=n.sheet,l=` @keyframes `.concat(r,` { `).concat(t,` } diff --git a/build/assets/DailyMotion-80c07408.js b/build/assets/DailyMotion-86b15de1.js similarity index 95% rename from build/assets/DailyMotion-80c07408.js rename to build/assets/DailyMotion-86b15de1.js index ea050affd..36ee519a3 100644 --- a/build/assets/DailyMotion-80c07408.js +++ b/build/assets/DailyMotion-86b15de1.js @@ -1 +1 @@ -import{a9 as P,r as v}from"./index-3506c528.js";import{u as D,p as O}from"./index-44c74031.js";function b(t,e){for(var r=0;ro[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var M=Object.create,s=Object.defineProperty,w=Object.getOwnPropertyDescriptor,S=Object.getOwnPropertyNames,j=Object.getPrototypeOf,T=Object.prototype.hasOwnProperty,E=(t,e,r)=>e in t?s(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,A=(t,e)=>{for(var r in e)s(t,r,{get:e[r],enumerable:!0})},h=(t,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of S(e))!T.call(t,a)&&a!==r&&s(t,a,{get:()=>e[a],enumerable:!(o=w(e,a))||o.enumerable});return t},L=(t,e,r)=>(r=t!=null?M(j(t)):{},h(e||!t||!t.__esModule?s(r,"default",{value:t,enumerable:!0}):r,t)),C=t=>h(s({},"__esModule",{value:!0}),t),n=(t,e,r)=>(E(t,typeof e!="symbol"?e+"":e,r),r),d={};A(d,{default:()=>p});var _=C(d),c=L(v),l=D,f=O;const x="https://api.dmcdn.net/all.js",N="DM",K="dmAsyncInit";class p extends c.Component{constructor(){super(...arguments),n(this,"callPlayer",l.callPlayer),n(this,"onDurationChange",()=>{const e=this.getDuration();this.props.onDuration(e)}),n(this,"mute",()=>{this.callPlayer("setMuted",!0)}),n(this,"unmute",()=>{this.callPlayer("setMuted",!1)}),n(this,"ref",e=>{this.container=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){const{controls:r,config:o,onError:a,playing:i}=this.props,[,y]=e.match(f.MATCH_URL_DAILYMOTION);if(this.player){this.player.load(y,{start:(0,l.parseStartTime)(e),autoplay:i});return}(0,l.getSDK)(x,N,K,u=>u.player).then(u=>{if(!this.container)return;const m=u.player;this.player=new m(this.container,{width:"100%",height:"100%",video:y,params:{controls:r,autoplay:this.props.playing,mute:this.props.muted,start:(0,l.parseStartTime)(e),origin:window.location.origin,...o.params},events:{apiready:this.props.onReady,seeked:()=>this.props.onSeek(this.player.currentTime),video_end:this.props.onEnded,durationchange:this.onDurationChange,pause:this.props.onPause,playing:this.props.onPlay,waiting:this.props.onBuffer,error:g=>a(g)}})},a)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}getDuration(){return this.player.duration||null}getCurrentTime(){return this.player.currentTime}getSecondsLoaded(){return this.player.bufferedTime}render(){const{display:e}=this.props,r={width:"100%",height:"100%",display:e};return c.default.createElement("div",{style:r},c.default.createElement("div",{ref:this.ref}))}}n(p,"displayName","DailyMotion");n(p,"canPlay",f.canPlay.dailymotion);n(p,"loopOnEnded",!0);const R=P(_),k=b({__proto__:null,default:R},[_]);export{k as D}; +import{a9 as P,r as v}from"./index-6541aa03.js";import{u as D,p as O}from"./index-0c54fe39.js";function b(t,e){for(var r=0;ro[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var M=Object.create,s=Object.defineProperty,w=Object.getOwnPropertyDescriptor,S=Object.getOwnPropertyNames,j=Object.getPrototypeOf,T=Object.prototype.hasOwnProperty,E=(t,e,r)=>e in t?s(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,A=(t,e)=>{for(var r in e)s(t,r,{get:e[r],enumerable:!0})},h=(t,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of S(e))!T.call(t,a)&&a!==r&&s(t,a,{get:()=>e[a],enumerable:!(o=w(e,a))||o.enumerable});return t},L=(t,e,r)=>(r=t!=null?M(j(t)):{},h(e||!t||!t.__esModule?s(r,"default",{value:t,enumerable:!0}):r,t)),C=t=>h(s({},"__esModule",{value:!0}),t),n=(t,e,r)=>(E(t,typeof e!="symbol"?e+"":e,r),r),d={};A(d,{default:()=>p});var _=C(d),c=L(v),l=D,f=O;const x="https://api.dmcdn.net/all.js",N="DM",K="dmAsyncInit";class p extends c.Component{constructor(){super(...arguments),n(this,"callPlayer",l.callPlayer),n(this,"onDurationChange",()=>{const e=this.getDuration();this.props.onDuration(e)}),n(this,"mute",()=>{this.callPlayer("setMuted",!0)}),n(this,"unmute",()=>{this.callPlayer("setMuted",!1)}),n(this,"ref",e=>{this.container=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){const{controls:r,config:o,onError:a,playing:i}=this.props,[,y]=e.match(f.MATCH_URL_DAILYMOTION);if(this.player){this.player.load(y,{start:(0,l.parseStartTime)(e),autoplay:i});return}(0,l.getSDK)(x,N,K,u=>u.player).then(u=>{if(!this.container)return;const m=u.player;this.player=new m(this.container,{width:"100%",height:"100%",video:y,params:{controls:r,autoplay:this.props.playing,mute:this.props.muted,start:(0,l.parseStartTime)(e),origin:window.location.origin,...o.params},events:{apiready:this.props.onReady,seeked:()=>this.props.onSeek(this.player.currentTime),video_end:this.props.onEnded,durationchange:this.onDurationChange,pause:this.props.onPause,playing:this.props.onPlay,waiting:this.props.onBuffer,error:g=>a(g)}})},a)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}getDuration(){return this.player.duration||null}getCurrentTime(){return this.player.currentTime}getSecondsLoaded(){return this.player.bufferedTime}render(){const{display:e}=this.props,r={width:"100%",height:"100%",display:e};return c.default.createElement("div",{style:r},c.default.createElement("div",{ref:this.ref}))}}n(p,"displayName","DailyMotion");n(p,"canPlay",f.canPlay.dailymotion);n(p,"loopOnEnded",!0);const R=P(_),k=b({__proto__:null,default:R},[_]);export{k as D}; diff --git a/build/assets/Facebook-a64e2bd7.js b/build/assets/Facebook-5e2a901f.js similarity index 96% rename from build/assets/Facebook-a64e2bd7.js rename to build/assets/Facebook-5e2a901f.js index fb7cc8739..b0f3ffc17 100644 --- a/build/assets/Facebook-a64e2bd7.js +++ b/build/assets/Facebook-5e2a901f.js @@ -1 +1 @@ -import{a9 as _,r as P}from"./index-3506c528.js";import{u as g,p as m}from"./index-44c74031.js";function v(t,e){for(var r=0;ra[s]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var O=Object.create,i=Object.defineProperty,D=Object.getOwnPropertyDescriptor,E=Object.getOwnPropertyNames,S=Object.getPrototypeOf,j=Object.prototype.hasOwnProperty,I=(t,e,r)=>e in t?i(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,k=(t,e)=>{for(var r in e)i(t,r,{get:e[r],enumerable:!0})},h=(t,e,r,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of E(e))!j.call(t,s)&&s!==r&&i(t,s,{get:()=>e[s],enumerable:!(a=D(e,s))||a.enumerable});return t},w=(t,e,r)=>(r=t!=null?O(S(t)):{},h(e||!t||!t.__esModule?i(r,"default",{value:t,enumerable:!0}):r,t)),F=t=>h(i({},"__esModule",{value:!0}),t),o=(t,e,r)=>(I(t,typeof e!="symbol"?e+"":e,r),r),b={};k(b,{default:()=>l});var d=F(b),u=w(P),n=g,x=m;const c="https://connect.facebook.net/en_US/sdk.js",f="FB",y="fbAsyncInit",L="facebook-player-";class l extends u.Component{constructor(){super(...arguments),o(this,"callPlayer",n.callPlayer),o(this,"playerID",this.props.config.playerId||`${L}${(0,n.randomString)()}`),o(this,"mute",()=>{this.callPlayer("mute")}),o(this,"unmute",()=>{this.callPlayer("unmute")})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e,r){if(r){(0,n.getSDK)(c,f,y).then(a=>a.XFBML.parse());return}(0,n.getSDK)(c,f,y).then(a=>{a.init({appId:this.props.config.appId,xfbml:!0,version:this.props.config.version}),a.Event.subscribe("xfbml.render",s=>{this.props.onLoaded()}),a.Event.subscribe("xfbml.ready",s=>{s.type==="video"&&s.id===this.playerID&&(this.player=s.instance,this.player.subscribe("startedPlaying",this.props.onPlay),this.player.subscribe("paused",this.props.onPause),this.player.subscribe("finishedPlaying",this.props.onEnded),this.player.subscribe("startedBuffering",this.props.onBuffer),this.player.subscribe("finishedBuffering",this.props.onBufferEnd),this.player.subscribe("error",this.props.onError),this.props.muted?this.callPlayer("mute"):this.callPlayer("unmute"),this.props.onReady(),document.getElementById(this.playerID).querySelector("iframe").style.visibility="visible")})})}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}getDuration(){return this.callPlayer("getDuration")}getCurrentTime(){return this.callPlayer("getCurrentPosition")}getSecondsLoaded(){return null}render(){const{attributes:e}=this.props.config,r={width:"100%",height:"100%"};return u.default.createElement("div",{style:r,id:this.playerID,className:"fb-video","data-href":this.props.url,"data-autoplay":this.props.playing?"true":"false","data-allowfullscreen":"true","data-controls":this.props.controls?"true":"false",...e})}}o(l,"displayName","Facebook");o(l,"canPlay",x.canPlay.facebook);o(l,"loopOnEnded",!0);const M=_(d),N=v({__proto__:null,default:M},[d]);export{N as F}; +import{a9 as _,r as P}from"./index-6541aa03.js";import{u as g,p as m}from"./index-0c54fe39.js";function v(t,e){for(var r=0;ra[s]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var O=Object.create,i=Object.defineProperty,D=Object.getOwnPropertyDescriptor,E=Object.getOwnPropertyNames,S=Object.getPrototypeOf,j=Object.prototype.hasOwnProperty,I=(t,e,r)=>e in t?i(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,k=(t,e)=>{for(var r in e)i(t,r,{get:e[r],enumerable:!0})},h=(t,e,r,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of E(e))!j.call(t,s)&&s!==r&&i(t,s,{get:()=>e[s],enumerable:!(a=D(e,s))||a.enumerable});return t},w=(t,e,r)=>(r=t!=null?O(S(t)):{},h(e||!t||!t.__esModule?i(r,"default",{value:t,enumerable:!0}):r,t)),F=t=>h(i({},"__esModule",{value:!0}),t),o=(t,e,r)=>(I(t,typeof e!="symbol"?e+"":e,r),r),b={};k(b,{default:()=>l});var d=F(b),u=w(P),n=g,x=m;const c="https://connect.facebook.net/en_US/sdk.js",f="FB",y="fbAsyncInit",L="facebook-player-";class l extends u.Component{constructor(){super(...arguments),o(this,"callPlayer",n.callPlayer),o(this,"playerID",this.props.config.playerId||`${L}${(0,n.randomString)()}`),o(this,"mute",()=>{this.callPlayer("mute")}),o(this,"unmute",()=>{this.callPlayer("unmute")})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e,r){if(r){(0,n.getSDK)(c,f,y).then(a=>a.XFBML.parse());return}(0,n.getSDK)(c,f,y).then(a=>{a.init({appId:this.props.config.appId,xfbml:!0,version:this.props.config.version}),a.Event.subscribe("xfbml.render",s=>{this.props.onLoaded()}),a.Event.subscribe("xfbml.ready",s=>{s.type==="video"&&s.id===this.playerID&&(this.player=s.instance,this.player.subscribe("startedPlaying",this.props.onPlay),this.player.subscribe("paused",this.props.onPause),this.player.subscribe("finishedPlaying",this.props.onEnded),this.player.subscribe("startedBuffering",this.props.onBuffer),this.player.subscribe("finishedBuffering",this.props.onBufferEnd),this.player.subscribe("error",this.props.onError),this.props.muted?this.callPlayer("mute"):this.callPlayer("unmute"),this.props.onReady(),document.getElementById(this.playerID).querySelector("iframe").style.visibility="visible")})})}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}getDuration(){return this.callPlayer("getDuration")}getCurrentTime(){return this.callPlayer("getCurrentPosition")}getSecondsLoaded(){return null}render(){const{attributes:e}=this.props.config,r={width:"100%",height:"100%"};return u.default.createElement("div",{style:r,id:this.playerID,className:"fb-video","data-href":this.props.url,"data-autoplay":this.props.playing?"true":"false","data-allowfullscreen":"true","data-controls":this.props.controls?"true":"false",...e})}}o(l,"displayName","Facebook");o(l,"canPlay",x.canPlay.facebook);o(l,"loopOnEnded",!0);const M=_(d),N=v({__proto__:null,default:M},[d]);export{N as F}; diff --git a/build/assets/FilePlayer-a54bbb10.js b/build/assets/FilePlayer-bc24401f.js similarity index 98% rename from build/assets/FilePlayer-a54bbb10.js rename to build/assets/FilePlayer-bc24401f.js index 789ca55b9..ca4a8705f 100644 --- a/build/assets/FilePlayer-a54bbb10.js +++ b/build/assets/FilePlayer-bc24401f.js @@ -1 +1 @@ -import{a9 as b,r as _}from"./index-3506c528.js";import{u as O,p as A}from"./index-44c74031.js";function R(s,e){for(var t=0;ti[n]})}}}return Object.freeze(Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}))}var I=Object.create,u=Object.defineProperty,D=Object.getOwnPropertyDescriptor,w=Object.getOwnPropertyNames,M=Object.getPrototypeOf,k=Object.prototype.hasOwnProperty,U=(s,e,t)=>e in s?u(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,N=(s,e)=>{for(var t in e)u(s,t,{get:e[t],enumerable:!0})},E=(s,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of w(e))!k.call(s,n)&&n!==t&&u(s,n,{get:()=>e[n],enumerable:!(i=D(e,n))||i.enumerable});return s},j=(s,e,t)=>(t=s!=null?I(M(s)):{},E(e||!s||!s.__esModule?u(t,"default",{value:s,enumerable:!0}):t,s)),H=s=>E(u({},"__esModule",{value:!0}),s),r=(s,e,t)=>(U(s,typeof e!="symbol"?e+"":e,t),t),m={};N(m,{default:()=>P});var g=H(m),c=j(_),a=O,d=A;const y=typeof navigator<"u",F=y&&navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1,v=y&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||F)&&!window.MSStream,V=y&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent)&&!window.MSStream,T="https://cdn.jsdelivr.net/npm/hls.js@VERSION/dist/hls.min.js",C="Hls",B="https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js",x="dashjs",K="https://cdn.jsdelivr.net/npm/flv.js@VERSION/dist/flv.min.js",G="flvjs",X=/www\.dropbox\.com\/.+/,f=/https:\/\/watch\.cloudflarestream\.com\/([a-z0-9]+)/,W="https://videodelivery.net/{id}/manifest/video.m3u8";class P extends c.Component{constructor(){super(...arguments),r(this,"onReady",(...e)=>this.props.onReady(...e)),r(this,"onPlay",(...e)=>this.props.onPlay(...e)),r(this,"onBuffer",(...e)=>this.props.onBuffer(...e)),r(this,"onBufferEnd",(...e)=>this.props.onBufferEnd(...e)),r(this,"onPause",(...e)=>this.props.onPause(...e)),r(this,"onEnded",(...e)=>this.props.onEnded(...e)),r(this,"onError",(...e)=>this.props.onError(...e)),r(this,"onPlayBackRateChange",e=>this.props.onPlaybackRateChange(e.target.playbackRate)),r(this,"onEnablePIP",(...e)=>this.props.onEnablePIP(...e)),r(this,"onDisablePIP",e=>{const{onDisablePIP:t,playing:i}=this.props;t(e),i&&this.play()}),r(this,"onPresentationModeChange",e=>{if(this.player&&(0,a.supportsWebKitPresentationMode)(this.player)){const{webkitPresentationMode:t}=this.player;t==="picture-in-picture"?this.onEnablePIP(e):t==="inline"&&this.onDisablePIP(e)}}),r(this,"onSeek",e=>{this.props.onSeek(e.target.currentTime)}),r(this,"mute",()=>{this.player.muted=!0}),r(this,"unmute",()=>{this.player.muted=!1}),r(this,"renderSourceElement",(e,t)=>typeof e=="string"?c.default.createElement("source",{key:t,src:e}):c.default.createElement("source",{key:t,...e})),r(this,"renderTrack",(e,t)=>c.default.createElement("track",{key:t,...e})),r(this,"ref",e=>{this.player&&(this.prevPlayer=this.player),this.player=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this),this.addListeners(this.player);const e=this.getSource(this.props.url);e&&(this.player.src=e),(v||this.props.config.forceDisableHls)&&this.player.load()}componentDidUpdate(e){this.shouldUseAudio(this.props)!==this.shouldUseAudio(e)&&(this.removeListeners(this.prevPlayer,e.url),this.addListeners(this.player)),this.props.url!==e.url&&!(0,a.isMediaStream)(this.props.url)&&!(this.props.url instanceof Array)&&(this.player.srcObject=null)}componentWillUnmount(){this.player.removeAttribute("src"),this.removeListeners(this.player),this.hls&&this.hls.destroy()}addListeners(e){const{url:t,playsinline:i}=this.props;e.addEventListener("play",this.onPlay),e.addEventListener("waiting",this.onBuffer),e.addEventListener("playing",this.onBufferEnd),e.addEventListener("pause",this.onPause),e.addEventListener("seeked",this.onSeek),e.addEventListener("ended",this.onEnded),e.addEventListener("error",this.onError),e.addEventListener("ratechange",this.onPlayBackRateChange),e.addEventListener("enterpictureinpicture",this.onEnablePIP),e.addEventListener("leavepictureinpicture",this.onDisablePIP),e.addEventListener("webkitpresentationmodechanged",this.onPresentationModeChange),this.shouldUseHLS(t)||e.addEventListener("canplay",this.onReady),i&&(e.setAttribute("playsinline",""),e.setAttribute("webkit-playsinline",""),e.setAttribute("x5-playsinline",""))}removeListeners(e,t){e.removeEventListener("canplay",this.onReady),e.removeEventListener("play",this.onPlay),e.removeEventListener("waiting",this.onBuffer),e.removeEventListener("playing",this.onBufferEnd),e.removeEventListener("pause",this.onPause),e.removeEventListener("seeked",this.onSeek),e.removeEventListener("ended",this.onEnded),e.removeEventListener("error",this.onError),e.removeEventListener("ratechange",this.onPlayBackRateChange),e.removeEventListener("enterpictureinpicture",this.onEnablePIP),e.removeEventListener("leavepictureinpicture",this.onDisablePIP),e.removeEventListener("webkitpresentationmodechanged",this.onPresentationModeChange),this.shouldUseHLS(t)||e.removeEventListener("canplay",this.onReady)}shouldUseAudio(e){return e.config.forceVideo||e.config.attributes.poster?!1:d.AUDIO_EXTENSIONS.test(e.url)||e.config.forceAudio}shouldUseHLS(e){return V&&this.props.config.forceSafariHLS||this.props.config.forceHLS?!0:v||this.props.config.forceDisableHls?!1:d.HLS_EXTENSIONS.test(e)||f.test(e)}shouldUseDASH(e){return d.DASH_EXTENSIONS.test(e)||this.props.config.forceDASH}shouldUseFLV(e){return d.FLV_EXTENSIONS.test(e)||this.props.config.forceFLV}load(e){const{hlsVersion:t,hlsOptions:i,dashVersion:n,flvVersion:l}=this.props.config;if(this.hls&&this.hls.destroy(),this.dash&&this.dash.reset(),this.shouldUseHLS(e)&&(0,a.getSDK)(T.replace("VERSION",t),C).then(o=>{if(this.hls=new o(i),this.hls.on(o.Events.MANIFEST_PARSED,()=>{this.props.onReady()}),this.hls.on(o.Events.ERROR,(h,p)=>{this.props.onError(h,p,this.hls,o)}),f.test(e)){const h=e.match(f)[1];this.hls.loadSource(W.replace("{id}",h))}else this.hls.loadSource(e);this.hls.attachMedia(this.player),this.props.onLoaded()}),this.shouldUseDASH(e)&&(0,a.getSDK)(B.replace("VERSION",n),x).then(o=>{this.dash=o.MediaPlayer().create(),this.dash.initialize(this.player,e,this.props.playing),this.dash.on("error",this.props.onError),parseInt(n)<3?this.dash.getDebug().setLogToBrowserConsole(!1):this.dash.updateSettings({debug:{logLevel:o.Debug.LOG_LEVEL_NONE}}),this.props.onLoaded()}),this.shouldUseFLV(e)&&(0,a.getSDK)(K.replace("VERSION",l),G).then(o=>{this.flv=o.createPlayer({type:"flv",url:e}),this.flv.attachMediaElement(this.player),this.flv.on(o.Events.ERROR,(h,p)=>{this.props.onError(h,p,this.flv,o)}),this.flv.load(),this.props.onLoaded()}),e instanceof Array)this.player.load();else if((0,a.isMediaStream)(e))try{this.player.srcObject=e}catch{this.player.src=window.URL.createObjectURL(e)}}play(){const e=this.player.play();e&&e.catch(this.props.onError)}pause(){this.player.pause()}stop(){this.player.removeAttribute("src"),this.dash&&this.dash.reset()}seekTo(e,t=!0){this.player.currentTime=e,t||this.pause()}setVolume(e){this.player.volume=e}enablePIP(){this.player.requestPictureInPicture&&document.pictureInPictureElement!==this.player?this.player.requestPictureInPicture():(0,a.supportsWebKitPresentationMode)(this.player)&&this.player.webkitPresentationMode!=="picture-in-picture"&&this.player.webkitSetPresentationMode("picture-in-picture")}disablePIP(){document.exitPictureInPicture&&document.pictureInPictureElement===this.player?document.exitPictureInPicture():(0,a.supportsWebKitPresentationMode)(this.player)&&this.player.webkitPresentationMode!=="inline"&&this.player.webkitSetPresentationMode("inline")}setPlaybackRate(e){try{this.player.playbackRate=e}catch(t){this.props.onError(t)}}getDuration(){if(!this.player)return null;const{duration:e,seekable:t}=this.player;return e===1/0&&t.length>0?t.end(t.length-1):e}getCurrentTime(){return this.player?this.player.currentTime:null}getSecondsLoaded(){if(!this.player)return null;const{buffered:e}=this.player;if(e.length===0)return 0;const t=e.end(e.length-1),i=this.getDuration();return t>i?i:t}getSource(e){const t=this.shouldUseHLS(e),i=this.shouldUseDASH(e),n=this.shouldUseFLV(e);if(!(e instanceof Array||(0,a.isMediaStream)(e)||t||i||n))return X.test(e)?e.replace("www.dropbox.com","dl.dropboxusercontent.com"):e}render(){const{url:e,playing:t,loop:i,controls:n,muted:l,config:o,width:h,height:p}=this.props,L=this.shouldUseAudio(this.props)?"audio":"video",S={width:h==="auto"?h:"100%",height:p==="auto"?p:"100%"};return c.default.createElement(L,{ref:this.ref,src:this.getSource(e),style:S,preload:"auto",autoPlay:t||void 0,controls:n,muted:l,loop:i,...o.attributes},e instanceof Array&&e.map(this.renderSourceElement),o.tracks.map(this.renderTrack))}}r(P,"displayName","FilePlayer");r(P,"canPlay",d.canPlay.file);const z=b(g),Q=R({__proto__:null,default:z},[g]);export{Q as F}; +import{a9 as b,r as _}from"./index-6541aa03.js";import{u as O,p as A}from"./index-0c54fe39.js";function R(s,e){for(var t=0;ti[n]})}}}return Object.freeze(Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}))}var I=Object.create,u=Object.defineProperty,D=Object.getOwnPropertyDescriptor,w=Object.getOwnPropertyNames,M=Object.getPrototypeOf,k=Object.prototype.hasOwnProperty,U=(s,e,t)=>e in s?u(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,N=(s,e)=>{for(var t in e)u(s,t,{get:e[t],enumerable:!0})},E=(s,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of w(e))!k.call(s,n)&&n!==t&&u(s,n,{get:()=>e[n],enumerable:!(i=D(e,n))||i.enumerable});return s},j=(s,e,t)=>(t=s!=null?I(M(s)):{},E(e||!s||!s.__esModule?u(t,"default",{value:s,enumerable:!0}):t,s)),H=s=>E(u({},"__esModule",{value:!0}),s),r=(s,e,t)=>(U(s,typeof e!="symbol"?e+"":e,t),t),m={};N(m,{default:()=>P});var g=H(m),c=j(_),a=O,d=A;const y=typeof navigator<"u",F=y&&navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1,v=y&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||F)&&!window.MSStream,V=y&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent)&&!window.MSStream,T="https://cdn.jsdelivr.net/npm/hls.js@VERSION/dist/hls.min.js",C="Hls",B="https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js",x="dashjs",K="https://cdn.jsdelivr.net/npm/flv.js@VERSION/dist/flv.min.js",G="flvjs",X=/www\.dropbox\.com\/.+/,f=/https:\/\/watch\.cloudflarestream\.com\/([a-z0-9]+)/,W="https://videodelivery.net/{id}/manifest/video.m3u8";class P extends c.Component{constructor(){super(...arguments),r(this,"onReady",(...e)=>this.props.onReady(...e)),r(this,"onPlay",(...e)=>this.props.onPlay(...e)),r(this,"onBuffer",(...e)=>this.props.onBuffer(...e)),r(this,"onBufferEnd",(...e)=>this.props.onBufferEnd(...e)),r(this,"onPause",(...e)=>this.props.onPause(...e)),r(this,"onEnded",(...e)=>this.props.onEnded(...e)),r(this,"onError",(...e)=>this.props.onError(...e)),r(this,"onPlayBackRateChange",e=>this.props.onPlaybackRateChange(e.target.playbackRate)),r(this,"onEnablePIP",(...e)=>this.props.onEnablePIP(...e)),r(this,"onDisablePIP",e=>{const{onDisablePIP:t,playing:i}=this.props;t(e),i&&this.play()}),r(this,"onPresentationModeChange",e=>{if(this.player&&(0,a.supportsWebKitPresentationMode)(this.player)){const{webkitPresentationMode:t}=this.player;t==="picture-in-picture"?this.onEnablePIP(e):t==="inline"&&this.onDisablePIP(e)}}),r(this,"onSeek",e=>{this.props.onSeek(e.target.currentTime)}),r(this,"mute",()=>{this.player.muted=!0}),r(this,"unmute",()=>{this.player.muted=!1}),r(this,"renderSourceElement",(e,t)=>typeof e=="string"?c.default.createElement("source",{key:t,src:e}):c.default.createElement("source",{key:t,...e})),r(this,"renderTrack",(e,t)=>c.default.createElement("track",{key:t,...e})),r(this,"ref",e=>{this.player&&(this.prevPlayer=this.player),this.player=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this),this.addListeners(this.player);const e=this.getSource(this.props.url);e&&(this.player.src=e),(v||this.props.config.forceDisableHls)&&this.player.load()}componentDidUpdate(e){this.shouldUseAudio(this.props)!==this.shouldUseAudio(e)&&(this.removeListeners(this.prevPlayer,e.url),this.addListeners(this.player)),this.props.url!==e.url&&!(0,a.isMediaStream)(this.props.url)&&!(this.props.url instanceof Array)&&(this.player.srcObject=null)}componentWillUnmount(){this.player.removeAttribute("src"),this.removeListeners(this.player),this.hls&&this.hls.destroy()}addListeners(e){const{url:t,playsinline:i}=this.props;e.addEventListener("play",this.onPlay),e.addEventListener("waiting",this.onBuffer),e.addEventListener("playing",this.onBufferEnd),e.addEventListener("pause",this.onPause),e.addEventListener("seeked",this.onSeek),e.addEventListener("ended",this.onEnded),e.addEventListener("error",this.onError),e.addEventListener("ratechange",this.onPlayBackRateChange),e.addEventListener("enterpictureinpicture",this.onEnablePIP),e.addEventListener("leavepictureinpicture",this.onDisablePIP),e.addEventListener("webkitpresentationmodechanged",this.onPresentationModeChange),this.shouldUseHLS(t)||e.addEventListener("canplay",this.onReady),i&&(e.setAttribute("playsinline",""),e.setAttribute("webkit-playsinline",""),e.setAttribute("x5-playsinline",""))}removeListeners(e,t){e.removeEventListener("canplay",this.onReady),e.removeEventListener("play",this.onPlay),e.removeEventListener("waiting",this.onBuffer),e.removeEventListener("playing",this.onBufferEnd),e.removeEventListener("pause",this.onPause),e.removeEventListener("seeked",this.onSeek),e.removeEventListener("ended",this.onEnded),e.removeEventListener("error",this.onError),e.removeEventListener("ratechange",this.onPlayBackRateChange),e.removeEventListener("enterpictureinpicture",this.onEnablePIP),e.removeEventListener("leavepictureinpicture",this.onDisablePIP),e.removeEventListener("webkitpresentationmodechanged",this.onPresentationModeChange),this.shouldUseHLS(t)||e.removeEventListener("canplay",this.onReady)}shouldUseAudio(e){return e.config.forceVideo||e.config.attributes.poster?!1:d.AUDIO_EXTENSIONS.test(e.url)||e.config.forceAudio}shouldUseHLS(e){return V&&this.props.config.forceSafariHLS||this.props.config.forceHLS?!0:v||this.props.config.forceDisableHls?!1:d.HLS_EXTENSIONS.test(e)||f.test(e)}shouldUseDASH(e){return d.DASH_EXTENSIONS.test(e)||this.props.config.forceDASH}shouldUseFLV(e){return d.FLV_EXTENSIONS.test(e)||this.props.config.forceFLV}load(e){const{hlsVersion:t,hlsOptions:i,dashVersion:n,flvVersion:l}=this.props.config;if(this.hls&&this.hls.destroy(),this.dash&&this.dash.reset(),this.shouldUseHLS(e)&&(0,a.getSDK)(T.replace("VERSION",t),C).then(o=>{if(this.hls=new o(i),this.hls.on(o.Events.MANIFEST_PARSED,()=>{this.props.onReady()}),this.hls.on(o.Events.ERROR,(h,p)=>{this.props.onError(h,p,this.hls,o)}),f.test(e)){const h=e.match(f)[1];this.hls.loadSource(W.replace("{id}",h))}else this.hls.loadSource(e);this.hls.attachMedia(this.player),this.props.onLoaded()}),this.shouldUseDASH(e)&&(0,a.getSDK)(B.replace("VERSION",n),x).then(o=>{this.dash=o.MediaPlayer().create(),this.dash.initialize(this.player,e,this.props.playing),this.dash.on("error",this.props.onError),parseInt(n)<3?this.dash.getDebug().setLogToBrowserConsole(!1):this.dash.updateSettings({debug:{logLevel:o.Debug.LOG_LEVEL_NONE}}),this.props.onLoaded()}),this.shouldUseFLV(e)&&(0,a.getSDK)(K.replace("VERSION",l),G).then(o=>{this.flv=o.createPlayer({type:"flv",url:e}),this.flv.attachMediaElement(this.player),this.flv.on(o.Events.ERROR,(h,p)=>{this.props.onError(h,p,this.flv,o)}),this.flv.load(),this.props.onLoaded()}),e instanceof Array)this.player.load();else if((0,a.isMediaStream)(e))try{this.player.srcObject=e}catch{this.player.src=window.URL.createObjectURL(e)}}play(){const e=this.player.play();e&&e.catch(this.props.onError)}pause(){this.player.pause()}stop(){this.player.removeAttribute("src"),this.dash&&this.dash.reset()}seekTo(e,t=!0){this.player.currentTime=e,t||this.pause()}setVolume(e){this.player.volume=e}enablePIP(){this.player.requestPictureInPicture&&document.pictureInPictureElement!==this.player?this.player.requestPictureInPicture():(0,a.supportsWebKitPresentationMode)(this.player)&&this.player.webkitPresentationMode!=="picture-in-picture"&&this.player.webkitSetPresentationMode("picture-in-picture")}disablePIP(){document.exitPictureInPicture&&document.pictureInPictureElement===this.player?document.exitPictureInPicture():(0,a.supportsWebKitPresentationMode)(this.player)&&this.player.webkitPresentationMode!=="inline"&&this.player.webkitSetPresentationMode("inline")}setPlaybackRate(e){try{this.player.playbackRate=e}catch(t){this.props.onError(t)}}getDuration(){if(!this.player)return null;const{duration:e,seekable:t}=this.player;return e===1/0&&t.length>0?t.end(t.length-1):e}getCurrentTime(){return this.player?this.player.currentTime:null}getSecondsLoaded(){if(!this.player)return null;const{buffered:e}=this.player;if(e.length===0)return 0;const t=e.end(e.length-1),i=this.getDuration();return t>i?i:t}getSource(e){const t=this.shouldUseHLS(e),i=this.shouldUseDASH(e),n=this.shouldUseFLV(e);if(!(e instanceof Array||(0,a.isMediaStream)(e)||t||i||n))return X.test(e)?e.replace("www.dropbox.com","dl.dropboxusercontent.com"):e}render(){const{url:e,playing:t,loop:i,controls:n,muted:l,config:o,width:h,height:p}=this.props,L=this.shouldUseAudio(this.props)?"audio":"video",S={width:h==="auto"?h:"100%",height:p==="auto"?p:"100%"};return c.default.createElement(L,{ref:this.ref,src:this.getSource(e),style:S,preload:"auto",autoPlay:t||void 0,controls:n,muted:l,loop:i,...o.attributes},e instanceof Array&&e.map(this.renderSourceElement),o.tracks.map(this.renderTrack))}}r(P,"displayName","FilePlayer");r(P,"canPlay",d.canPlay.file);const z=b(g),Q=R({__proto__:null,default:z},[g]);export{Q as F}; diff --git a/build/assets/Kaltura-3e13ded9.js b/build/assets/Kaltura-11bc99d2.js similarity index 95% rename from build/assets/Kaltura-3e13ded9.js rename to build/assets/Kaltura-11bc99d2.js index 300abaccd..2f2e346a9 100644 --- a/build/assets/Kaltura-3e13ded9.js +++ b/build/assets/Kaltura-11bc99d2.js @@ -1 +1 @@ -import{a9 as y,r as f}from"./index-3506c528.js";import{u as _,p as m}from"./index-44c74031.js";function P(r,e){for(var t=0;to[a]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var g=Object.create,n=Object.defineProperty,b=Object.getOwnPropertyDescriptor,v=Object.getOwnPropertyNames,O=Object.getPrototypeOf,w=Object.prototype.hasOwnProperty,j=(r,e,t)=>e in r?n(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,L=(r,e)=>{for(var t in e)n(r,t,{get:e[t],enumerable:!0})},c=(r,e,t,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of v(e))!w.call(r,a)&&a!==t&&n(r,a,{get:()=>e[a],enumerable:!(o=b(e,a))||o.enumerable});return r},K=(r,e,t)=>(t=r!=null?g(O(r)):{},c(e||!r||!r.__esModule?n(t,"default",{value:r,enumerable:!0}):t,r)),D=r=>c(n({},"__esModule",{value:!0}),r),s=(r,e,t)=>(j(r,typeof e!="symbol"?e+"":e,t),t),h={};L(h,{default:()=>i});var d=D(h),u=K(f),p=_,S=m;const T="https://cdn.embed.ly/player-0.1.0.min.js",E="playerjs";class i extends u.Component{constructor(){super(...arguments),s(this,"callPlayer",p.callPlayer),s(this,"duration",null),s(this,"currentTime",null),s(this,"secondsLoaded",null),s(this,"mute",()=>{this.callPlayer("mute")}),s(this,"unmute",()=>{this.callPlayer("unmute")}),s(this,"ref",e=>{this.iframe=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){(0,p.getSDK)(T,E).then(t=>{this.iframe&&(this.player=new t.Player(this.iframe),this.player.on("ready",()=>{setTimeout(()=>{this.player.isReady=!0,this.player.setLoop(this.props.loop),this.props.muted&&this.player.mute(),this.addListeners(this.player,this.props),this.props.onReady()},500)}))},this.props.onError)}addListeners(e,t){e.on("play",t.onPlay),e.on("pause",t.onPause),e.on("ended",t.onEnded),e.on("error",t.onError),e.on("timeupdate",({duration:o,seconds:a})=>{this.duration=o,this.currentTime=a})}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,t=!0){this.callPlayer("setCurrentTime",e),t||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}setLoop(e){this.callPlayer("setLoop",e)}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return this.secondsLoaded}render(){const e={width:"100%",height:"100%"};return u.default.createElement("iframe",{ref:this.ref,src:this.props.url,frameBorder:"0",scrolling:"no",style:e,allow:"encrypted-media; autoplay; fullscreen;",referrerPolicy:"no-referrer-when-downgrade"})}}s(i,"displayName","Kaltura");s(i,"canPlay",S.canPlay.kaltura);const M=y(d),N=P({__proto__:null,default:M},[d]);export{N as K}; +import{a9 as y,r as f}from"./index-6541aa03.js";import{u as _,p as m}from"./index-0c54fe39.js";function P(r,e){for(var t=0;to[a]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var g=Object.create,n=Object.defineProperty,b=Object.getOwnPropertyDescriptor,v=Object.getOwnPropertyNames,O=Object.getPrototypeOf,w=Object.prototype.hasOwnProperty,j=(r,e,t)=>e in r?n(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,L=(r,e)=>{for(var t in e)n(r,t,{get:e[t],enumerable:!0})},c=(r,e,t,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of v(e))!w.call(r,a)&&a!==t&&n(r,a,{get:()=>e[a],enumerable:!(o=b(e,a))||o.enumerable});return r},K=(r,e,t)=>(t=r!=null?g(O(r)):{},c(e||!r||!r.__esModule?n(t,"default",{value:r,enumerable:!0}):t,r)),D=r=>c(n({},"__esModule",{value:!0}),r),s=(r,e,t)=>(j(r,typeof e!="symbol"?e+"":e,t),t),h={};L(h,{default:()=>i});var d=D(h),u=K(f),p=_,S=m;const T="https://cdn.embed.ly/player-0.1.0.min.js",E="playerjs";class i extends u.Component{constructor(){super(...arguments),s(this,"callPlayer",p.callPlayer),s(this,"duration",null),s(this,"currentTime",null),s(this,"secondsLoaded",null),s(this,"mute",()=>{this.callPlayer("mute")}),s(this,"unmute",()=>{this.callPlayer("unmute")}),s(this,"ref",e=>{this.iframe=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){(0,p.getSDK)(T,E).then(t=>{this.iframe&&(this.player=new t.Player(this.iframe),this.player.on("ready",()=>{setTimeout(()=>{this.player.isReady=!0,this.player.setLoop(this.props.loop),this.props.muted&&this.player.mute(),this.addListeners(this.player,this.props),this.props.onReady()},500)}))},this.props.onError)}addListeners(e,t){e.on("play",t.onPlay),e.on("pause",t.onPause),e.on("ended",t.onEnded),e.on("error",t.onError),e.on("timeupdate",({duration:o,seconds:a})=>{this.duration=o,this.currentTime=a})}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,t=!0){this.callPlayer("setCurrentTime",e),t||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}setLoop(e){this.callPlayer("setLoop",e)}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return this.secondsLoaded}render(){const e={width:"100%",height:"100%"};return u.default.createElement("iframe",{ref:this.ref,src:this.props.url,frameBorder:"0",scrolling:"no",style:e,allow:"encrypted-media; autoplay; fullscreen;",referrerPolicy:"no-referrer-when-downgrade"})}}s(i,"displayName","Kaltura");s(i,"canPlay",S.canPlay.kaltura);const M=y(d),N=P({__proto__:null,default:M},[d]);export{N as K}; diff --git a/build/assets/Mixcloud-b2883ce1.js b/build/assets/Mixcloud-57dd95f3.js similarity index 95% rename from build/assets/Mixcloud-b2883ce1.js rename to build/assets/Mixcloud-57dd95f3.js index 935e8d29c..5d584bbdd 100644 --- a/build/assets/Mixcloud-b2883ce1.js +++ b/build/assets/Mixcloud-57dd95f3.js @@ -1 +1 @@ -import{a9 as _,r as f}from"./index-3506c528.js";import{u as m,p as g}from"./index-44c74031.js";function v(t,e){for(var r=0;rs[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var P=Object.create,i=Object.defineProperty,O=Object.getOwnPropertyDescriptor,b=Object.getOwnPropertyNames,M=Object.getPrototypeOf,w=Object.prototype.hasOwnProperty,x=(t,e,r)=>e in t?i(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,j=(t,e)=>{for(var r in e)i(t,r,{get:e[r],enumerable:!0})},c=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of b(e))!w.call(t,o)&&o!==r&&i(t,o,{get:()=>e[o],enumerable:!(s=O(e,o))||s.enumerable});return t},D=(t,e,r)=>(r=t!=null?P(M(t)):{},c(e||!t||!t.__esModule?i(r,"default",{value:t,enumerable:!0}):r,t)),S=t=>c(i({},"__esModule",{value:!0}),t),a=(t,e,r)=>(x(t,typeof e!="symbol"?e+"":e,r),r),d={};j(d,{default:()=>l});var h=S(d),u=D(f),p=m,y=g;const E="https://widget.mixcloud.com/media/js/widgetApi.js",L="Mixcloud";class l extends u.Component{constructor(){super(...arguments),a(this,"callPlayer",p.callPlayer),a(this,"duration",null),a(this,"currentTime",null),a(this,"secondsLoaded",null),a(this,"mute",()=>{}),a(this,"unmute",()=>{}),a(this,"ref",e=>{this.iframe=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){(0,p.getSDK)(E,L).then(r=>{this.player=r.PlayerWidget(this.iframe),this.player.ready.then(()=>{this.player.events.play.on(this.props.onPlay),this.player.events.pause.on(this.props.onPause),this.player.events.ended.on(this.props.onEnded),this.player.events.error.on(this.props.error),this.player.events.progress.on((s,o)=>{this.currentTime=s,this.duration=o}),this.props.onReady()})},this.props.onError)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return null}render(){const{url:e,config:r}=this.props,s=e.match(y.MATCH_URL_MIXCLOUD)[1],o={width:"100%",height:"100%"},n=(0,p.queryString)({...r.options,feed:`/${s}/`});return u.default.createElement("iframe",{key:s,ref:this.ref,style:o,src:`https://www.mixcloud.com/widget/iframe/?${n}`,frameBorder:"0",allow:"autoplay"})}}a(l,"displayName","Mixcloud");a(l,"canPlay",y.canPlay.mixcloud);a(l,"loopOnEnded",!0);const T=_(h),N=v({__proto__:null,default:T},[h]);export{N as M}; +import{a9 as _,r as f}from"./index-6541aa03.js";import{u as m,p as g}from"./index-0c54fe39.js";function v(t,e){for(var r=0;rs[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var P=Object.create,i=Object.defineProperty,O=Object.getOwnPropertyDescriptor,b=Object.getOwnPropertyNames,M=Object.getPrototypeOf,w=Object.prototype.hasOwnProperty,x=(t,e,r)=>e in t?i(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,j=(t,e)=>{for(var r in e)i(t,r,{get:e[r],enumerable:!0})},c=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of b(e))!w.call(t,o)&&o!==r&&i(t,o,{get:()=>e[o],enumerable:!(s=O(e,o))||s.enumerable});return t},D=(t,e,r)=>(r=t!=null?P(M(t)):{},c(e||!t||!t.__esModule?i(r,"default",{value:t,enumerable:!0}):r,t)),S=t=>c(i({},"__esModule",{value:!0}),t),a=(t,e,r)=>(x(t,typeof e!="symbol"?e+"":e,r),r),d={};j(d,{default:()=>l});var h=S(d),u=D(f),p=m,y=g;const E="https://widget.mixcloud.com/media/js/widgetApi.js",L="Mixcloud";class l extends u.Component{constructor(){super(...arguments),a(this,"callPlayer",p.callPlayer),a(this,"duration",null),a(this,"currentTime",null),a(this,"secondsLoaded",null),a(this,"mute",()=>{}),a(this,"unmute",()=>{}),a(this,"ref",e=>{this.iframe=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){(0,p.getSDK)(E,L).then(r=>{this.player=r.PlayerWidget(this.iframe),this.player.ready.then(()=>{this.player.events.play.on(this.props.onPlay),this.player.events.pause.on(this.props.onPause),this.player.events.ended.on(this.props.onEnded),this.player.events.error.on(this.props.error),this.player.events.progress.on((s,o)=>{this.currentTime=s,this.duration=o}),this.props.onReady()})},this.props.onError)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return null}render(){const{url:e,config:r}=this.props,s=e.match(y.MATCH_URL_MIXCLOUD)[1],o={width:"100%",height:"100%"},n=(0,p.queryString)({...r.options,feed:`/${s}/`});return u.default.createElement("iframe",{key:s,ref:this.ref,style:o,src:`https://www.mixcloud.com/widget/iframe/?${n}`,frameBorder:"0",allow:"autoplay"})}}a(l,"displayName","Mixcloud");a(l,"canPlay",y.canPlay.mixcloud);a(l,"loopOnEnded",!0);const T=_(h),N=v({__proto__:null,default:T},[h]);export{N as M}; diff --git a/build/assets/Preview-82441676.js b/build/assets/Preview-dd97a4b5.js similarity index 97% rename from build/assets/Preview-82441676.js rename to build/assets/Preview-dd97a4b5.js index 3626a1c3e..b920d5e64 100644 --- a/build/assets/Preview-82441676.js +++ b/build/assets/Preview-dd97a4b5.js @@ -1 +1 @@ -import{a9 as y,r as b}from"./index-3506c528.js";function v(r,e){for(var t=0;tn[a]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var w=Object.create,i=Object.defineProperty,P=Object.getOwnPropertyDescriptor,O=Object.getOwnPropertyNames,x=Object.getPrototypeOf,I=Object.prototype.hasOwnProperty,j=(r,e,t)=>e in r?i(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,E=(r,e)=>{for(var t in e)i(r,t,{get:e[t],enumerable:!0})},h=(r,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of O(e))!I.call(r,a)&&a!==t&&i(r,a,{get:()=>e[a],enumerable:!(n=P(e,a))||n.enumerable});return r},S=(r,e,t)=>(t=r!=null?w(x(r)):{},h(e||!r||!r.__esModule?i(t,"default",{value:r,enumerable:!0}):t,r)),C=r=>h(i({},"__esModule",{value:!0}),r),p=(r,e,t)=>(j(r,typeof e!="symbol"?e+"":e,t),t),_={};E(_,{default:()=>N});var g=C(_),s=S(b);const u="64px",d={};class N extends s.Component{constructor(){super(...arguments),p(this,"mounted",!1),p(this,"state",{image:null}),p(this,"handleKeyPress",e=>{(e.key==="Enter"||e.key===" ")&&this.props.onClick()})}componentDidMount(){this.mounted=!0,this.fetchImage(this.props)}componentDidUpdate(e){const{url:t,light:n}=this.props;(e.url!==t||e.light!==n)&&this.fetchImage(this.props)}componentWillUnmount(){this.mounted=!1}fetchImage({url:e,light:t,oEmbedUrl:n}){if(!s.default.isValidElement(t)){if(typeof t=="string"){this.setState({image:t});return}if(d[e]){this.setState({image:d[e]});return}return this.setState({image:null}),window.fetch(n.replace("{url}",e)).then(a=>a.json()).then(a=>{if(a.thumbnail_url&&this.mounted){const o=a.thumbnail_url.replace("height=100","height=480").replace("-d_295x166","-d_640");this.setState({image:o}),d[e]=o}})}}render(){const{light:e,onClick:t,playIcon:n,previewTabIndex:a}=this.props,{image:o}=this.state,l=s.default.isValidElement(e),f={display:"flex",alignItems:"center",justifyContent:"center"},c={preview:{width:"100%",height:"100%",backgroundImage:o&&!l?`url(${o})`:void 0,backgroundSize:"cover",backgroundPosition:"center",cursor:"pointer",...f},shadow:{background:"radial-gradient(rgb(0, 0, 0, 0.3), rgba(0, 0, 0, 0) 60%)",borderRadius:u,width:u,height:u,position:l?"absolute":void 0,...f},playIcon:{borderStyle:"solid",borderWidth:"16px 0 16px 26px",borderColor:"transparent transparent transparent white",marginLeft:"7px"}},m=s.default.createElement("div",{style:c.shadow,className:"react-player__shadow"},s.default.createElement("div",{style:c.playIcon,className:"react-player__play-icon"}));return s.default.createElement("div",{style:c.preview,className:"react-player__preview",onClick:t,tabIndex:a,onKeyPress:this.handleKeyPress},l?e:null,n||m)}}const k=y(g),M=v({__proto__:null,default:k},[g]);export{M as P}; +import{a9 as y,r as b}from"./index-6541aa03.js";function v(r,e){for(var t=0;tn[a]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var w=Object.create,i=Object.defineProperty,P=Object.getOwnPropertyDescriptor,O=Object.getOwnPropertyNames,x=Object.getPrototypeOf,I=Object.prototype.hasOwnProperty,j=(r,e,t)=>e in r?i(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,E=(r,e)=>{for(var t in e)i(r,t,{get:e[t],enumerable:!0})},h=(r,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of O(e))!I.call(r,a)&&a!==t&&i(r,a,{get:()=>e[a],enumerable:!(n=P(e,a))||n.enumerable});return r},S=(r,e,t)=>(t=r!=null?w(x(r)):{},h(e||!r||!r.__esModule?i(t,"default",{value:r,enumerable:!0}):t,r)),C=r=>h(i({},"__esModule",{value:!0}),r),p=(r,e,t)=>(j(r,typeof e!="symbol"?e+"":e,t),t),_={};E(_,{default:()=>N});var g=C(_),s=S(b);const u="64px",d={};class N extends s.Component{constructor(){super(...arguments),p(this,"mounted",!1),p(this,"state",{image:null}),p(this,"handleKeyPress",e=>{(e.key==="Enter"||e.key===" ")&&this.props.onClick()})}componentDidMount(){this.mounted=!0,this.fetchImage(this.props)}componentDidUpdate(e){const{url:t,light:n}=this.props;(e.url!==t||e.light!==n)&&this.fetchImage(this.props)}componentWillUnmount(){this.mounted=!1}fetchImage({url:e,light:t,oEmbedUrl:n}){if(!s.default.isValidElement(t)){if(typeof t=="string"){this.setState({image:t});return}if(d[e]){this.setState({image:d[e]});return}return this.setState({image:null}),window.fetch(n.replace("{url}",e)).then(a=>a.json()).then(a=>{if(a.thumbnail_url&&this.mounted){const o=a.thumbnail_url.replace("height=100","height=480").replace("-d_295x166","-d_640");this.setState({image:o}),d[e]=o}})}}render(){const{light:e,onClick:t,playIcon:n,previewTabIndex:a}=this.props,{image:o}=this.state,l=s.default.isValidElement(e),f={display:"flex",alignItems:"center",justifyContent:"center"},c={preview:{width:"100%",height:"100%",backgroundImage:o&&!l?`url(${o})`:void 0,backgroundSize:"cover",backgroundPosition:"center",cursor:"pointer",...f},shadow:{background:"radial-gradient(rgb(0, 0, 0, 0.3), rgba(0, 0, 0, 0) 60%)",borderRadius:u,width:u,height:u,position:l?"absolute":void 0,...f},playIcon:{borderStyle:"solid",borderWidth:"16px 0 16px 26px",borderColor:"transparent transparent transparent white",marginLeft:"7px"}},m=s.default.createElement("div",{style:c.shadow,className:"react-player__shadow"},s.default.createElement("div",{style:c.playIcon,className:"react-player__play-icon"}));return s.default.createElement("div",{style:c.preview,className:"react-player__preview",onClick:t,tabIndex:a,onKeyPress:this.handleKeyPress},l?e:null,n||m)}}const k=y(g),M=v({__proto__:null,default:k},[g]);export{M as P}; diff --git a/build/assets/Skeleton-c3abb4f1.js b/build/assets/Skeleton-851daffa.js similarity index 97% rename from build/assets/Skeleton-c3abb4f1.js rename to build/assets/Skeleton-851daffa.js index 5974ac1ff..f4448b675 100644 --- a/build/assets/Skeleton-c3abb4f1.js +++ b/build/assets/Skeleton-851daffa.js @@ -1,4 +1,4 @@ -import{L as w,M as y,bu as b,O as R,x as o,P as S,bv as u,r as _,S as U,H as $,j as M,U as j,V as A}from"./index-3506c528.js";function X(t){return String(t).match(/[\d.\-+]*\s*(.*)/)[1]||""}function N(t){return parseFloat(t)}function P(t){return w("MuiSkeleton",t)}y("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const B=["animation","className","component","height","style","variant","width"];let r=t=>t,p,g,m,f;const E=t=>{const{classes:a,variant:e,animation:i,hasChildren:n,width:l,height:s}=t;return A({root:["root",e,i,n&&"withChildren",n&&!l&&"fitContent",n&&!s&&"heightAuto"]},P,a)},F=b(p||(p=r` +import{L as w,M as y,bu as b,O as R,x as o,P as S,bv as u,r as _,S as U,H as $,j as M,U as j,V as A}from"./index-6541aa03.js";function X(t){return String(t).match(/[\d.\-+]*\s*(.*)/)[1]||""}function N(t){return parseFloat(t)}function P(t){return w("MuiSkeleton",t)}y("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const B=["animation","className","component","height","style","variant","width"];let r=t=>t,p,g,m,f;const E=t=>{const{classes:a,variant:e,animation:i,hasChildren:n,width:l,height:s}=t;return A({root:["root",e,i,n&&"withChildren",n&&!l&&"fitContent",n&&!s&&"heightAuto"]},P,a)},F=b(p||(p=r` 0% { opacity: 1; } diff --git a/build/assets/SoundCloud-a5cc949d.js b/build/assets/SoundCloud-4fc651dd.js similarity index 95% rename from build/assets/SoundCloud-a5cc949d.js rename to build/assets/SoundCloud-4fc651dd.js index 456ed81eb..e3acca027 100644 --- a/build/assets/SoundCloud-a5cc949d.js +++ b/build/assets/SoundCloud-4fc651dd.js @@ -1 +1 @@ -import{a9 as P,r as g}from"./index-3506c528.js";import{u as b,p as v}from"./index-44c74031.js";function O(t,e){for(var r=0;rs[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var S=Object.create,l=Object.defineProperty,w=Object.getOwnPropertyDescriptor,j=Object.getOwnPropertyNames,C=Object.getPrototypeOf,E=Object.prototype.hasOwnProperty,D=(t,e,r)=>e in t?l(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,L=(t,e)=>{for(var r in e)l(t,r,{get:e[r],enumerable:!0})},d=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of j(e))!E.call(t,o)&&o!==r&&l(t,o,{get:()=>e[o],enumerable:!(s=w(e,o))||s.enumerable});return t},R=(t,e,r)=>(r=t!=null?S(C(t)):{},d(e||!t||!t.__esModule?l(r,"default",{value:t,enumerable:!0}):r,t)),T=t=>d(l({},"__esModule",{value:!0}),t),a=(t,e,r)=>(D(t,typeof e!="symbol"?e+"":e,r),r),h={};L(h,{default:()=>u});var f=T(h),p=R(g),c=b,M=v;const x="https://w.soundcloud.com/player/api.js",A="SC";class u extends p.Component{constructor(){super(...arguments),a(this,"callPlayer",c.callPlayer),a(this,"duration",null),a(this,"currentTime",null),a(this,"fractionLoaded",null),a(this,"mute",()=>{this.setVolume(0)}),a(this,"unmute",()=>{this.props.volume!==null&&this.setVolume(this.props.volume)}),a(this,"ref",e=>{this.iframe=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e,r){(0,c.getSDK)(x,A).then(s=>{if(!this.iframe)return;const{PLAY:o,PLAY_PROGRESS:i,PAUSE:y,FINISH:_,ERROR:m}=s.Widget.Events;r||(this.player=s.Widget(this.iframe),this.player.bind(o,this.props.onPlay),this.player.bind(y,()=>{this.duration-this.currentTime<.05||this.props.onPause()}),this.player.bind(i,n=>{this.currentTime=n.currentPosition/1e3,this.fractionLoaded=n.loadedProgress}),this.player.bind(_,()=>this.props.onEnded()),this.player.bind(m,n=>this.props.onError(n))),this.player.load(e,{...this.props.config.options,callback:()=>{this.player.getDuration(n=>{this.duration=n/1e3,this.props.onReady()})}})})}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("seekTo",e*1e3),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e*100)}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return this.fractionLoaded*this.duration}render(){const{display:e}=this.props,r={width:"100%",height:"100%",display:e};return p.default.createElement("iframe",{ref:this.ref,src:`https://w.soundcloud.com/player/?url=${encodeURIComponent(this.props.url)}`,style:r,frameBorder:0,allow:"autoplay"})}}a(u,"displayName","SoundCloud");a(u,"canPlay",M.canPlay.soundcloud);a(u,"loopOnEnded",!0);const N=P(f),I=O({__proto__:null,default:N},[f]);export{I as S}; +import{a9 as P,r as g}from"./index-6541aa03.js";import{u as b,p as v}from"./index-0c54fe39.js";function O(t,e){for(var r=0;rs[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var S=Object.create,l=Object.defineProperty,w=Object.getOwnPropertyDescriptor,j=Object.getOwnPropertyNames,C=Object.getPrototypeOf,E=Object.prototype.hasOwnProperty,D=(t,e,r)=>e in t?l(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,L=(t,e)=>{for(var r in e)l(t,r,{get:e[r],enumerable:!0})},d=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of j(e))!E.call(t,o)&&o!==r&&l(t,o,{get:()=>e[o],enumerable:!(s=w(e,o))||s.enumerable});return t},R=(t,e,r)=>(r=t!=null?S(C(t)):{},d(e||!t||!t.__esModule?l(r,"default",{value:t,enumerable:!0}):r,t)),T=t=>d(l({},"__esModule",{value:!0}),t),a=(t,e,r)=>(D(t,typeof e!="symbol"?e+"":e,r),r),h={};L(h,{default:()=>u});var f=T(h),p=R(g),c=b,M=v;const x="https://w.soundcloud.com/player/api.js",A="SC";class u extends p.Component{constructor(){super(...arguments),a(this,"callPlayer",c.callPlayer),a(this,"duration",null),a(this,"currentTime",null),a(this,"fractionLoaded",null),a(this,"mute",()=>{this.setVolume(0)}),a(this,"unmute",()=>{this.props.volume!==null&&this.setVolume(this.props.volume)}),a(this,"ref",e=>{this.iframe=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e,r){(0,c.getSDK)(x,A).then(s=>{if(!this.iframe)return;const{PLAY:o,PLAY_PROGRESS:i,PAUSE:y,FINISH:_,ERROR:m}=s.Widget.Events;r||(this.player=s.Widget(this.iframe),this.player.bind(o,this.props.onPlay),this.player.bind(y,()=>{this.duration-this.currentTime<.05||this.props.onPause()}),this.player.bind(i,n=>{this.currentTime=n.currentPosition/1e3,this.fractionLoaded=n.loadedProgress}),this.player.bind(_,()=>this.props.onEnded()),this.player.bind(m,n=>this.props.onError(n))),this.player.load(e,{...this.props.config.options,callback:()=>{this.player.getDuration(n=>{this.duration=n/1e3,this.props.onReady()})}})})}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("seekTo",e*1e3),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e*100)}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return this.fractionLoaded*this.duration}render(){const{display:e}=this.props,r={width:"100%",height:"100%",display:e};return p.default.createElement("iframe",{ref:this.ref,src:`https://w.soundcloud.com/player/?url=${encodeURIComponent(this.props.url)}`,style:r,frameBorder:0,allow:"autoplay"})}}a(u,"displayName","SoundCloud");a(u,"canPlay",M.canPlay.soundcloud);a(u,"loopOnEnded",!0);const N=P(f),I=O({__proto__:null,default:N},[f]);export{I as S}; diff --git a/build/assets/Stack-7521353f.js b/build/assets/Stack-bcf44d60.js similarity index 99% rename from build/assets/Stack-7521353f.js rename to build/assets/Stack-bcf44d60.js index 5feaf9969..bc5634a18 100644 --- a/build/assets/Stack-7521353f.js +++ b/build/assets/Stack-bcf44d60.js @@ -1 +1 @@ -import{r as E,a8 as Bt,H as ae,x as T,c1 as Ft,c2 as Wt,c3 as Vt,c4 as Lt,c5 as Nt,by as Ze,bx as Ae,c6 as Ht,c0 as It,c7 as Ut,j as Z,c8 as Ke,V as ke,L as Te,M as ht,Z as et,$ as tt,O as Me,c9 as qt,S as Be,Y as gt,U as Yt}from"./index-3506c528.js";import{J as rt,aQ as zt,Y as Xt}from"./index-ccbb14cf.js";function Se(e,t){var r,o;return E.isValidElement(e)&&t.indexOf((r=e.type.muiName)!=null?r:(o=e.type)==null||(o=o._payload)==null||(o=o.value)==null?void 0:o.muiName)!==-1}let ot=0;function Gt(e){const[t,r]=E.useState(e),o=e||t;return E.useEffect(()=>{t==null&&(ot+=1,r(`mui-${ot}`))},[t]),o}const nt=Bt["useId".toString()];function Ho(e){if(nt!==void 0){const t=nt();return e??t}return Gt(e)}function Io({controlled:e,default:t,name:r,state:o="value"}){const{current:n}=E.useRef(e!==void 0),[a,c]=E.useState(t),s=n?e:a,i=E.useCallback(f=>{n||c(f)},[]);return[s,i]}const _t=["sx"],Jt=e=>{var t,r;const o={systemProps:{},otherProps:{}},n=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:Ft;return Object.keys(e).forEach(a=>{n[a]?o.systemProps[a]=e[a]:o.otherProps[a]=e[a]}),o};function Qt(e){const{sx:t}=e,r=ae(e,_t),{systemProps:o,otherProps:n}=Jt(r);let a;return Array.isArray(t)?a=[o,...t]:typeof t=="function"?a=(...c)=>{const s=t(...c);return Wt(s)?T({},o,s):o}:a=T({},o,t),T({},n,{sx:a})}function yt(e){var t,r,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;tt.root});function nr(e){return Nt({props:e,name:"MuiStack",defaultTheme:rr})}function ar(e,t){const r=E.Children.toArray(e).filter(Boolean);return r.reduce((o,n,a)=>(o.push(n),a({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],sr=({ownerState:e,theme:t})=>{let r=T({display:"flex",flexDirection:"column"},Ze({theme:t},Ae({values:e.direction,breakpoints:t.breakpoints.values}),o=>({flexDirection:o})));if(e.spacing){const o=Ht(t),n=Object.keys(t.breakpoints.values).reduce((i,f)=>((typeof e.spacing=="object"&&e.spacing[f]!=null||typeof e.direction=="object"&&e.direction[f]!=null)&&(i[f]=!0),i),{}),a=Ae({values:e.direction,base:n}),c=Ae({values:e.spacing,base:n});typeof a=="object"&&Object.keys(a).forEach((i,f,l)=>{if(!a[i]){const h=f>0?a[l[f-1]]:"column";a[i]=h}}),r=It(r,Ze({theme:t},c,(i,f)=>e.useFlexGap?{gap:Ke(o,i)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${ir(f?a[f]:e.direction)}`]:Ke(o,i)}}))}return r=Ut(t.breakpoints,r),r};function lr(e={}){const{createStyledComponent:t=or,useThemeProps:r=nr,componentName:o="MuiStack"}=e,n=()=>ke({root:["root"]},i=>Te(o,i),{}),a=t(sr);return E.forwardRef(function(i,f){const l=r(i),v=Qt(l),{component:h="div",direction:p="column",spacing:x=0,divider:d,children:m,className:w,useFlexGap:P=!1}=v,b=ae(v,tr),u={direction:p,spacing:x,useFlexGap:P},g=n();return Z.jsx(a,T({as:h,ownerState:u,ref:f,className:Zt(g.root,w)},b,{children:d?ar(m,d):m}))})}const cr={disableDefaultClasses:!1},fr=E.createContext(cr);function ur(e){const{disableDefaultClasses:t}=E.useContext(fr);return r=>t?"":e(r)}var B="top",N="bottom",H="right",F="left",Fe="auto",de=[B,N,H,F],te="start",ue="end",pr="clippingParents",bt="viewport",le="popper",dr="reference",at=de.reduce(function(e,t){return e.concat([t+"-"+te,t+"-"+ue])},[]),xt=[].concat(de,[Fe]).reduce(function(e,t){return e.concat([t,t+"-"+te,t+"-"+ue])},[]),vr="beforeRead",mr="read",hr="afterRead",gr="beforeMain",yr="main",br="afterMain",xr="beforeWrite",wr="write",Or="afterWrite",Pr=[vr,mr,hr,gr,yr,br,xr,wr,Or];function U(e){return e?(e.nodeName||"").toLowerCase():null}function W(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function K(e){var t=W(e).Element;return e instanceof t||e instanceof Element}function L(e){var t=W(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function We(e){if(typeof ShadowRoot>"u")return!1;var t=W(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Er(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var o=t.styles[r]||{},n=t.attributes[r]||{},a=t.elements[r];!L(a)||!U(a)||(Object.assign(a.style,o),Object.keys(n).forEach(function(c){var s=n[c];s===!1?a.removeAttribute(c):a.setAttribute(c,s===!0?"":s)}))})}function Cr(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(o){var n=t.elements[o],a=t.attributes[o]||{},c=Object.keys(t.styles.hasOwnProperty(o)?t.styles[o]:r[o]),s=c.reduce(function(i,f){return i[f]="",i},{});!L(n)||!U(n)||(Object.assign(n.style,s),Object.keys(a).forEach(function(i){n.removeAttribute(i)}))})}}const Rr={name:"applyStyles",enabled:!0,phase:"write",fn:Er,effect:Cr,requires:["computeStyles"]};function I(e){return e.split("-")[0]}var Q=Math.max,we=Math.min,re=Math.round;function $e(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function wt(){return!/^((?!chrome|android).)*safari/i.test($e())}function oe(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var o=e.getBoundingClientRect(),n=1,a=1;t&&L(e)&&(n=e.offsetWidth>0&&re(o.width)/e.offsetWidth||1,a=e.offsetHeight>0&&re(o.height)/e.offsetHeight||1);var c=K(e)?W(e):window,s=c.visualViewport,i=!wt()&&r,f=(o.left+(i&&s?s.offsetLeft:0))/n,l=(o.top+(i&&s?s.offsetTop:0))/a,v=o.width/n,h=o.height/a;return{width:v,height:h,top:l,right:f+v,bottom:l+h,left:f,x:f,y:l}}function Ve(e){var t=oe(e),r=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:o}}function Ot(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&We(r)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function q(e){return W(e).getComputedStyle(e)}function Ar(e){return["table","td","th"].indexOf(U(e))>=0}function X(e){return((K(e)?e.ownerDocument:e.document)||window.document).documentElement}function Oe(e){return U(e)==="html"?e:e.assignedSlot||e.parentNode||(We(e)?e.host:null)||X(e)}function it(e){return!L(e)||q(e).position==="fixed"?null:e.offsetParent}function Sr(e){var t=/firefox/i.test($e()),r=/Trident/i.test($e());if(r&&L(e)){var o=q(e);if(o.position==="fixed")return null}var n=Oe(e);for(We(n)&&(n=n.host);L(n)&&["html","body"].indexOf(U(n))<0;){var a=q(n);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return n;n=n.parentNode}return null}function ve(e){for(var t=W(e),r=it(e);r&&Ar(r)&&q(r).position==="static";)r=it(r);return r&&(U(r)==="html"||U(r)==="body"&&q(r).position==="static")?t:r||Sr(e)||t}function Le(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ce(e,t,r){return Q(e,we(t,r))}function $r(e,t,r){var o=ce(e,t,r);return o>r?r:o}function Pt(){return{top:0,right:0,bottom:0,left:0}}function Et(e){return Object.assign({},Pt(),e)}function Ct(e,t){return t.reduce(function(r,o){return r[o]=e,r},{})}var Dr=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,Et(typeof t!="number"?t:Ct(t,de))};function jr(e){var t,r=e.state,o=e.name,n=e.options,a=r.elements.arrow,c=r.modifiersData.popperOffsets,s=I(r.placement),i=Le(s),f=[F,H].indexOf(s)>=0,l=f?"height":"width";if(!(!a||!c)){var v=Dr(n.padding,r),h=Ve(a),p=i==="y"?B:F,x=i==="y"?N:H,d=r.rects.reference[l]+r.rects.reference[i]-c[i]-r.rects.popper[l],m=c[i]-r.rects.reference[i],w=ve(a),P=w?i==="y"?w.clientHeight||0:w.clientWidth||0:0,b=d/2-m/2,u=v[p],g=P-h[l]-v[x],y=P/2-h[l]/2+b,O=ce(u,y,g),A=i;r.modifiersData[o]=(t={},t[A]=O,t.centerOffset=O-y,t)}}function kr(e){var t=e.state,r=e.options,o=r.element,n=o===void 0?"[data-popper-arrow]":o;n!=null&&(typeof n=="string"&&(n=t.elements.popper.querySelector(n),!n)||Ot(t.elements.popper,n)&&(t.elements.arrow=n))}const Tr={name:"arrow",enabled:!0,phase:"main",fn:jr,effect:kr,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ne(e){return e.split("-")[1]}var Mr={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Br(e,t){var r=e.x,o=e.y,n=t.devicePixelRatio||1;return{x:re(r*n)/n||0,y:re(o*n)/n||0}}function st(e){var t,r=e.popper,o=e.popperRect,n=e.placement,a=e.variation,c=e.offsets,s=e.position,i=e.gpuAcceleration,f=e.adaptive,l=e.roundOffsets,v=e.isFixed,h=c.x,p=h===void 0?0:h,x=c.y,d=x===void 0?0:x,m=typeof l=="function"?l({x:p,y:d}):{x:p,y:d};p=m.x,d=m.y;var w=c.hasOwnProperty("x"),P=c.hasOwnProperty("y"),b=F,u=B,g=window;if(f){var y=ve(r),O="clientHeight",A="clientWidth";if(y===W(r)&&(y=X(r),q(y).position!=="static"&&s==="absolute"&&(O="scrollHeight",A="scrollWidth")),y=y,n===B||(n===F||n===H)&&a===ue){u=N;var C=v&&y===g&&g.visualViewport?g.visualViewport.height:y[O];d-=C-o.height,d*=i?1:-1}if(n===F||(n===B||n===N)&&a===ue){b=H;var R=v&&y===g&&g.visualViewport?g.visualViewport.width:y[A];p-=R-o.width,p*=i?1:-1}}var $=Object.assign({position:s},f&&Mr),k=l===!0?Br({x:p,y:d},W(r)):{x:p,y:d};if(p=k.x,d=k.y,i){var S;return Object.assign({},$,(S={},S[u]=P?"0":"",S[b]=w?"0":"",S.transform=(g.devicePixelRatio||1)<=1?"translate("+p+"px, "+d+"px)":"translate3d("+p+"px, "+d+"px, 0)",S))}return Object.assign({},$,(t={},t[u]=P?d+"px":"",t[b]=w?p+"px":"",t.transform="",t))}function Fr(e){var t=e.state,r=e.options,o=r.gpuAcceleration,n=o===void 0?!0:o,a=r.adaptive,c=a===void 0?!0:a,s=r.roundOffsets,i=s===void 0?!0:s,f={placement:I(t.placement),variation:ne(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:n,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,st(Object.assign({},f,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:c,roundOffsets:i})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,st(Object.assign({},f,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:i})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Wr={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Fr,data:{}};var be={passive:!0};function Vr(e){var t=e.state,r=e.instance,o=e.options,n=o.scroll,a=n===void 0?!0:n,c=o.resize,s=c===void 0?!0:c,i=W(t.elements.popper),f=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&f.forEach(function(l){l.addEventListener("scroll",r.update,be)}),s&&i.addEventListener("resize",r.update,be),function(){a&&f.forEach(function(l){l.removeEventListener("scroll",r.update,be)}),s&&i.removeEventListener("resize",r.update,be)}}const Lr={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Vr,data:{}};var Nr={left:"right",right:"left",bottom:"top",top:"bottom"};function xe(e){return e.replace(/left|right|bottom|top/g,function(t){return Nr[t]})}var Hr={start:"end",end:"start"};function lt(e){return e.replace(/start|end/g,function(t){return Hr[t]})}function Ne(e){var t=W(e),r=t.pageXOffset,o=t.pageYOffset;return{scrollLeft:r,scrollTop:o}}function He(e){return oe(X(e)).left+Ne(e).scrollLeft}function Ir(e,t){var r=W(e),o=X(e),n=r.visualViewport,a=o.clientWidth,c=o.clientHeight,s=0,i=0;if(n){a=n.width,c=n.height;var f=wt();(f||!f&&t==="fixed")&&(s=n.offsetLeft,i=n.offsetTop)}return{width:a,height:c,x:s+He(e),y:i}}function Ur(e){var t,r=X(e),o=Ne(e),n=(t=e.ownerDocument)==null?void 0:t.body,a=Q(r.scrollWidth,r.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),c=Q(r.scrollHeight,r.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),s=-o.scrollLeft+He(e),i=-o.scrollTop;return q(n||r).direction==="rtl"&&(s+=Q(r.clientWidth,n?n.clientWidth:0)-a),{width:a,height:c,x:s,y:i}}function Ie(e){var t=q(e),r=t.overflow,o=t.overflowX,n=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+n+o)}function Rt(e){return["html","body","#document"].indexOf(U(e))>=0?e.ownerDocument.body:L(e)&&Ie(e)?e:Rt(Oe(e))}function fe(e,t){var r;t===void 0&&(t=[]);var o=Rt(e),n=o===((r=e.ownerDocument)==null?void 0:r.body),a=W(o),c=n?[a].concat(a.visualViewport||[],Ie(o)?o:[]):o,s=t.concat(c);return n?s:s.concat(fe(Oe(c)))}function De(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function qr(e,t){var r=oe(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function ct(e,t,r){return t===bt?De(Ir(e,r)):K(t)?qr(t,r):De(Ur(X(e)))}function Yr(e){var t=fe(Oe(e)),r=["absolute","fixed"].indexOf(q(e).position)>=0,o=r&&L(e)?ve(e):e;return K(o)?t.filter(function(n){return K(n)&&Ot(n,o)&&U(n)!=="body"}):[]}function zr(e,t,r,o){var n=t==="clippingParents"?Yr(e):[].concat(t),a=[].concat(n,[r]),c=a[0],s=a.reduce(function(i,f){var l=ct(e,f,o);return i.top=Q(l.top,i.top),i.right=we(l.right,i.right),i.bottom=we(l.bottom,i.bottom),i.left=Q(l.left,i.left),i},ct(e,c,o));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function At(e){var t=e.reference,r=e.element,o=e.placement,n=o?I(o):null,a=o?ne(o):null,c=t.x+t.width/2-r.width/2,s=t.y+t.height/2-r.height/2,i;switch(n){case B:i={x:c,y:t.y-r.height};break;case N:i={x:c,y:t.y+t.height};break;case H:i={x:t.x+t.width,y:s};break;case F:i={x:t.x-r.width,y:s};break;default:i={x:t.x,y:t.y}}var f=n?Le(n):null;if(f!=null){var l=f==="y"?"height":"width";switch(a){case te:i[f]=i[f]-(t[l]/2-r[l]/2);break;case ue:i[f]=i[f]+(t[l]/2-r[l]/2);break}}return i}function pe(e,t){t===void 0&&(t={});var r=t,o=r.placement,n=o===void 0?e.placement:o,a=r.strategy,c=a===void 0?e.strategy:a,s=r.boundary,i=s===void 0?pr:s,f=r.rootBoundary,l=f===void 0?bt:f,v=r.elementContext,h=v===void 0?le:v,p=r.altBoundary,x=p===void 0?!1:p,d=r.padding,m=d===void 0?0:d,w=Et(typeof m!="number"?m:Ct(m,de)),P=h===le?dr:le,b=e.rects.popper,u=e.elements[x?P:h],g=zr(K(u)?u:u.contextElement||X(e.elements.popper),i,l,c),y=oe(e.elements.reference),O=At({reference:y,element:b,strategy:"absolute",placement:n}),A=De(Object.assign({},b,O)),C=h===le?A:y,R={top:g.top-C.top+w.top,bottom:C.bottom-g.bottom+w.bottom,left:g.left-C.left+w.left,right:C.right-g.right+w.right},$=e.modifiersData.offset;if(h===le&&$){var k=$[n];Object.keys(R).forEach(function(S){var j=[H,N].indexOf(S)>=0?1:-1,V=[B,N].indexOf(S)>=0?"y":"x";R[S]+=k[V]*j})}return R}function Xr(e,t){t===void 0&&(t={});var r=t,o=r.placement,n=r.boundary,a=r.rootBoundary,c=r.padding,s=r.flipVariations,i=r.allowedAutoPlacements,f=i===void 0?xt:i,l=ne(o),v=l?s?at:at.filter(function(x){return ne(x)===l}):de,h=v.filter(function(x){return f.indexOf(x)>=0});h.length===0&&(h=v);var p=h.reduce(function(x,d){return x[d]=pe(e,{placement:d,boundary:n,rootBoundary:a,padding:c})[I(d)],x},{});return Object.keys(p).sort(function(x,d){return p[x]-p[d]})}function Gr(e){if(I(e)===Fe)return[];var t=xe(e);return[lt(e),t,lt(t)]}function _r(e){var t=e.state,r=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var n=r.mainAxis,a=n===void 0?!0:n,c=r.altAxis,s=c===void 0?!0:c,i=r.fallbackPlacements,f=r.padding,l=r.boundary,v=r.rootBoundary,h=r.altBoundary,p=r.flipVariations,x=p===void 0?!0:p,d=r.allowedAutoPlacements,m=t.options.placement,w=I(m),P=w===m,b=i||(P||!x?[xe(m)]:Gr(m)),u=[m].concat(b).reduce(function(ee,z){return ee.concat(I(z)===Fe?Xr(t,{placement:z,boundary:l,rootBoundary:v,padding:f,flipVariations:x,allowedAutoPlacements:d}):z)},[]),g=t.rects.reference,y=t.rects.popper,O=new Map,A=!0,C=u[0],R=0;R=0,V=j?"width":"height",D=pe(t,{placement:$,boundary:l,rootBoundary:v,altBoundary:h,padding:f}),M=j?S?H:F:S?N:B;g[V]>y[V]&&(M=xe(M));var Y=xe(M),G=[];if(a&&G.push(D[k]<=0),s&&G.push(D[M]<=0,D[Y]<=0),G.every(function(ee){return ee})){C=$,A=!1;break}O.set($,G)}if(A)for(var me=x?3:1,Pe=function(z){var se=u.find(function(ge){var _=O.get(ge);if(_)return _.slice(0,z).every(function(Ee){return Ee})});if(se)return C=se,"break"},ie=me;ie>0;ie--){var he=Pe(ie);if(he==="break")break}t.placement!==C&&(t.modifiersData[o]._skip=!0,t.placement=C,t.reset=!0)}}const Jr={name:"flip",enabled:!0,phase:"main",fn:_r,requiresIfExists:["offset"],data:{_skip:!1}};function ft(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function ut(e){return[B,H,N,F].some(function(t){return e[t]>=0})}function Qr(e){var t=e.state,r=e.name,o=t.rects.reference,n=t.rects.popper,a=t.modifiersData.preventOverflow,c=pe(t,{elementContext:"reference"}),s=pe(t,{altBoundary:!0}),i=ft(c,o),f=ft(s,n,a),l=ut(i),v=ut(f);t.modifiersData[r]={referenceClippingOffsets:i,popperEscapeOffsets:f,isReferenceHidden:l,hasPopperEscaped:v},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":l,"data-popper-escaped":v})}const Zr={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Qr};function Kr(e,t,r){var o=I(e),n=[F,B].indexOf(o)>=0?-1:1,a=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,c=a[0],s=a[1];return c=c||0,s=(s||0)*n,[F,H].indexOf(o)>=0?{x:s,y:c}:{x:c,y:s}}function eo(e){var t=e.state,r=e.options,o=e.name,n=r.offset,a=n===void 0?[0,0]:n,c=xt.reduce(function(l,v){return l[v]=Kr(v,t.rects,a),l},{}),s=c[t.placement],i=s.x,f=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=i,t.modifiersData.popperOffsets.y+=f),t.modifiersData[o]=c}const to={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:eo};function ro(e){var t=e.state,r=e.name;t.modifiersData[r]=At({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const oo={name:"popperOffsets",enabled:!0,phase:"read",fn:ro,data:{}};function no(e){return e==="x"?"y":"x"}function ao(e){var t=e.state,r=e.options,o=e.name,n=r.mainAxis,a=n===void 0?!0:n,c=r.altAxis,s=c===void 0?!1:c,i=r.boundary,f=r.rootBoundary,l=r.altBoundary,v=r.padding,h=r.tether,p=h===void 0?!0:h,x=r.tetherOffset,d=x===void 0?0:x,m=pe(t,{boundary:i,rootBoundary:f,padding:v,altBoundary:l}),w=I(t.placement),P=ne(t.placement),b=!P,u=Le(w),g=no(u),y=t.modifiersData.popperOffsets,O=t.rects.reference,A=t.rects.popper,C=typeof d=="function"?d(Object.assign({},t.rects,{placement:t.placement})):d,R=typeof C=="number"?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),$=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,k={x:0,y:0};if(y){if(a){var S,j=u==="y"?B:F,V=u==="y"?N:H,D=u==="y"?"height":"width",M=y[u],Y=M+m[j],G=M-m[V],me=p?-A[D]/2:0,Pe=P===te?O[D]:A[D],ie=P===te?-A[D]:-O[D],he=t.elements.arrow,ee=p&&he?Ve(he):{width:0,height:0},z=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Pt(),se=z[j],ge=z[V],_=ce(0,O[D],ee[D]),Ee=b?O[D]/2-me-_-se-R.mainAxis:Pe-_-se-R.mainAxis,$t=b?-O[D]/2+me+_+ge+R.mainAxis:ie+_+ge+R.mainAxis,Ce=t.elements.arrow&&ve(t.elements.arrow),Dt=Ce?u==="y"?Ce.clientTop||0:Ce.clientLeft||0:0,Ue=(S=$==null?void 0:$[u])!=null?S:0,jt=M+Ee-Ue-Dt,kt=M+$t-Ue,qe=ce(p?we(Y,jt):Y,M,p?Q(G,kt):G);y[u]=qe,k[u]=qe-M}if(s){var Ye,Tt=u==="x"?B:F,Mt=u==="x"?N:H,J=y[g],ye=g==="y"?"height":"width",ze=J+m[Tt],Xe=J-m[Mt],Re=[B,F].indexOf(w)!==-1,Ge=(Ye=$==null?void 0:$[g])!=null?Ye:0,_e=Re?ze:J-O[ye]-A[ye]-Ge+R.altAxis,Je=Re?J+O[ye]+A[ye]-Ge-R.altAxis:Xe,Qe=p&&Re?$r(_e,J,Je):ce(p?_e:ze,J,p?Je:Xe);y[g]=Qe,k[g]=Qe-J}t.modifiersData[o]=k}}const io={name:"preventOverflow",enabled:!0,phase:"main",fn:ao,requiresIfExists:["offset"]};function so(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function lo(e){return e===W(e)||!L(e)?Ne(e):so(e)}function co(e){var t=e.getBoundingClientRect(),r=re(t.width)/e.offsetWidth||1,o=re(t.height)/e.offsetHeight||1;return r!==1||o!==1}function fo(e,t,r){r===void 0&&(r=!1);var o=L(t),n=L(t)&&co(t),a=X(t),c=oe(e,n,r),s={scrollLeft:0,scrollTop:0},i={x:0,y:0};return(o||!o&&!r)&&((U(t)!=="body"||Ie(a))&&(s=lo(t)),L(t)?(i=oe(t,!0),i.x+=t.clientLeft,i.y+=t.clientTop):a&&(i.x=He(a))),{x:c.left+s.scrollLeft-i.x,y:c.top+s.scrollTop-i.y,width:c.width,height:c.height}}function uo(e){var t=new Map,r=new Set,o=[];e.forEach(function(a){t.set(a.name,a)});function n(a){r.add(a.name);var c=[].concat(a.requires||[],a.requiresIfExists||[]);c.forEach(function(s){if(!r.has(s)){var i=t.get(s);i&&n(i)}}),o.push(a)}return e.forEach(function(a){r.has(a.name)||n(a)}),o}function po(e){var t=uo(e);return Pr.reduce(function(r,o){return r.concat(t.filter(function(n){return n.phase===o}))},[])}function vo(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function mo(e){var t=e.reduce(function(r,o){var n=r[o.name];return r[o.name]=n?Object.assign({},n,o,{options:Object.assign({},n.options,o.options),data:Object.assign({},n.data,o.data)}):o,r},{});return Object.keys(t).map(function(r){return t[r]})}var pt={placement:"bottom",modifiers:[],strategy:"absolute"};function dt(){for(var e=arguments.length,t=new Array(e),r=0;rke({root:["root"]},ur(bo)),Co={},Ro=E.forwardRef(function(t,r){var o;const{anchorEl:n,children:a,direction:c,disablePortal:s,modifiers:i,open:f,placement:l,popperOptions:v,popperRef:h,slotProps:p={},slots:x={},TransitionProps:d}=t,m=ae(t,xo),w=E.useRef(null),P=et(w,r),b=E.useRef(null),u=et(b,h),g=E.useRef(u);tt(()=>{g.current=u},[u]),E.useImperativeHandle(h,()=>b.current,[]);const y=Oo(l,c),[O,A]=E.useState(y),[C,R]=E.useState(je(n));E.useEffect(()=>{b.current&&b.current.forceUpdate()}),E.useEffect(()=>{n&&R(je(n))},[n]),tt(()=>{if(!C||!f)return;const V=Y=>{A(Y.placement)};let D=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:Y})=>{V(Y)}}];i!=null&&(D=D.concat(i)),v&&v.modifiers!=null&&(D=D.concat(v.modifiers));const M=yo(C,w.current,T({placement:y},v,{modifiers:D}));return g.current(M),()=>{M.destroy(),g.current(null)}},[C,s,i,f,v,y]);const $={placement:O};d!==null&&($.TransitionProps=d);const k=Eo(),S=(o=x.root)!=null?o:"div",j=Xt({elementType:S,externalSlotProps:p.root,externalForwardedProps:m,additionalProps:{role:"tooltip",ref:P},ownerState:t,className:k.root});return Z.jsx(S,T({},j,{children:typeof a=="function"?a($):a}))}),Ao=E.forwardRef(function(t,r){const{anchorEl:o,children:n,container:a,direction:c="ltr",disablePortal:s=!1,keepMounted:i=!1,modifiers:f,open:l,placement:v="bottom",popperOptions:h=Co,popperRef:p,style:x,transition:d=!1,slotProps:m={},slots:w={}}=t,P=ae(t,wo),[b,u]=E.useState(!0),g=()=>{u(!1)},y=()=>{u(!0)};if(!i&&!l&&(!d||b))return null;let O;if(a)O=a;else if(o){const R=je(o);O=R&&Po(R)?rt(R).body:rt(null).body}const A=!l&&i&&(!d||b)?"none":void 0,C=d?{in:l,onEnter:g,onExited:y}:void 0;return Z.jsx(zt,{disablePortal:s,container:O,children:Z.jsx(Ro,T({anchorEl:o,direction:c,disablePortal:s,modifiers:f,ref:r,open:d?!b:l,placement:v,popperOptions:h,popperRef:p,slotProps:m,slots:w},P,{style:T({position:"fixed",top:0,left:0,display:A},x),TransitionProps:C,children:n}))})}),So=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],$o=Me(Ao,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Do=E.forwardRef(function(t,r){var o;const n=qt(),a=Be({props:t,name:"MuiPopper"}),{anchorEl:c,component:s,components:i,componentsProps:f,container:l,disablePortal:v,keepMounted:h,modifiers:p,open:x,placement:d,popperOptions:m,popperRef:w,transition:P,slots:b,slotProps:u}=a,g=ae(a,So),y=(o=b==null?void 0:b.root)!=null?o:i==null?void 0:i.Root,O=T({anchorEl:c,container:l,disablePortal:v,keepMounted:h,modifiers:p,open:x,placement:d,popperOptions:m,popperRef:w,transition:P},g);return Z.jsx($o,T({as:s,direction:n==null?void 0:n.direction,slots:{root:y},slotProps:u??f},O,{ref:r}))}),Uo=Do;function qo({props:e,states:t,muiFormControl:r}){return t.reduce((o,n)=>(o[n]=e[n],r&&typeof e[n]>"u"&&(o[n]=r[n]),o),{})}const jo=E.createContext(void 0),St=jo;function Yo(){return E.useContext(St)}function vt(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function mt(e,t=!1){return e&&(vt(e.value)&&e.value!==""||t&&vt(e.defaultValue)&&e.defaultValue!=="")}function ko(e){return e.startAdornment}function To(e){return Te("MuiFormControl",e)}ht("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const Mo=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],Bo=e=>{const{classes:t,margin:r,fullWidth:o}=e,n={root:["root",r!=="none"&&`margin${gt(r)}`,o&&"fullWidth"]};return ke(n,To,t)},Fo=Me("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>T({},t.root,t[`margin${gt(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>T({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),Wo=E.forwardRef(function(t,r){const o=Be({props:t,name:"MuiFormControl"}),{children:n,className:a,color:c="primary",component:s="div",disabled:i=!1,error:f=!1,focused:l,fullWidth:v=!1,hiddenLabel:h=!1,margin:p="none",required:x=!1,size:d="medium",variant:m="outlined"}=o,w=ae(o,Mo),P=T({},o,{color:c,component:s,disabled:i,error:f,fullWidth:v,hiddenLabel:h,margin:p,required:x,size:d,variant:m}),b=Bo(P),[u,g]=E.useState(()=>{let S=!1;return n&&E.Children.forEach(n,j=>{if(!Se(j,["Input","Select"]))return;const V=Se(j,["Select"])?j.props.input:j;V&&ko(V.props)&&(S=!0)}),S}),[y,O]=E.useState(()=>{let S=!1;return n&&E.Children.forEach(n,j=>{Se(j,["Input","Select"])&&(mt(j.props,!0)||mt(j.props.inputProps,!0))&&(S=!0)}),S}),[A,C]=E.useState(!1);i&&A&&C(!1);const R=l!==void 0&&!i?l:A;let $;const k=E.useMemo(()=>({adornedStart:u,setAdornedStart:g,color:c,disabled:i,error:f,filled:y,focused:R,fullWidth:v,hiddenLabel:h,size:d,onBlur:()=>{C(!1)},onEmpty:()=>{O(!1)},onFilled:()=>{O(!0)},onFocus:()=>{C(!0)},registerEffect:$,required:x,variant:m}),[u,c,i,f,y,R,v,h,$,x,d,m]);return Z.jsx(St.Provider,{value:k,children:Z.jsx(Fo,T({as:s,ownerState:P,className:Yt(b.root,a),ref:r},w,{children:n}))})}),zo=Wo,Vo=lr({createStyledComponent:Me("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Be({props:e,name:"MuiStack"})}),Xo=Vo;export{zo as F,Uo as P,Xo as S,Ho as a,Yo as b,St as c,Qt as e,qo as f,mt as i,Io as u}; +import{r as E,a8 as Bt,H as ae,x as T,c1 as Ft,c2 as Wt,c3 as Vt,c4 as Lt,c5 as Nt,by as Ze,bx as Ae,c6 as Ht,c0 as It,c7 as Ut,j as Z,c8 as Ke,V as ke,L as Te,M as ht,Z as et,$ as tt,O as Me,c9 as qt,S as Be,Y as gt,U as Yt}from"./index-6541aa03.js";import{J as rt,aQ as zt,Y as Xt}from"./index-ad617d4b.js";function Se(e,t){var r,o;return E.isValidElement(e)&&t.indexOf((r=e.type.muiName)!=null?r:(o=e.type)==null||(o=o._payload)==null||(o=o.value)==null?void 0:o.muiName)!==-1}let ot=0;function Gt(e){const[t,r]=E.useState(e),o=e||t;return E.useEffect(()=>{t==null&&(ot+=1,r(`mui-${ot}`))},[t]),o}const nt=Bt["useId".toString()];function Ho(e){if(nt!==void 0){const t=nt();return e??t}return Gt(e)}function Io({controlled:e,default:t,name:r,state:o="value"}){const{current:n}=E.useRef(e!==void 0),[a,c]=E.useState(t),s=n?e:a,i=E.useCallback(f=>{n||c(f)},[]);return[s,i]}const _t=["sx"],Jt=e=>{var t,r;const o={systemProps:{},otherProps:{}},n=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:Ft;return Object.keys(e).forEach(a=>{n[a]?o.systemProps[a]=e[a]:o.otherProps[a]=e[a]}),o};function Qt(e){const{sx:t}=e,r=ae(e,_t),{systemProps:o,otherProps:n}=Jt(r);let a;return Array.isArray(t)?a=[o,...t]:typeof t=="function"?a=(...c)=>{const s=t(...c);return Wt(s)?T({},o,s):o}:a=T({},o,t),T({},n,{sx:a})}function yt(e){var t,r,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;tt.root});function nr(e){return Nt({props:e,name:"MuiStack",defaultTheme:rr})}function ar(e,t){const r=E.Children.toArray(e).filter(Boolean);return r.reduce((o,n,a)=>(o.push(n),a({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],sr=({ownerState:e,theme:t})=>{let r=T({display:"flex",flexDirection:"column"},Ze({theme:t},Ae({values:e.direction,breakpoints:t.breakpoints.values}),o=>({flexDirection:o})));if(e.spacing){const o=Ht(t),n=Object.keys(t.breakpoints.values).reduce((i,f)=>((typeof e.spacing=="object"&&e.spacing[f]!=null||typeof e.direction=="object"&&e.direction[f]!=null)&&(i[f]=!0),i),{}),a=Ae({values:e.direction,base:n}),c=Ae({values:e.spacing,base:n});typeof a=="object"&&Object.keys(a).forEach((i,f,l)=>{if(!a[i]){const h=f>0?a[l[f-1]]:"column";a[i]=h}}),r=It(r,Ze({theme:t},c,(i,f)=>e.useFlexGap?{gap:Ke(o,i)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${ir(f?a[f]:e.direction)}`]:Ke(o,i)}}))}return r=Ut(t.breakpoints,r),r};function lr(e={}){const{createStyledComponent:t=or,useThemeProps:r=nr,componentName:o="MuiStack"}=e,n=()=>ke({root:["root"]},i=>Te(o,i),{}),a=t(sr);return E.forwardRef(function(i,f){const l=r(i),v=Qt(l),{component:h="div",direction:p="column",spacing:x=0,divider:d,children:m,className:w,useFlexGap:P=!1}=v,b=ae(v,tr),u={direction:p,spacing:x,useFlexGap:P},g=n();return Z.jsx(a,T({as:h,ownerState:u,ref:f,className:Zt(g.root,w)},b,{children:d?ar(m,d):m}))})}const cr={disableDefaultClasses:!1},fr=E.createContext(cr);function ur(e){const{disableDefaultClasses:t}=E.useContext(fr);return r=>t?"":e(r)}var B="top",N="bottom",H="right",F="left",Fe="auto",de=[B,N,H,F],te="start",ue="end",pr="clippingParents",bt="viewport",le="popper",dr="reference",at=de.reduce(function(e,t){return e.concat([t+"-"+te,t+"-"+ue])},[]),xt=[].concat(de,[Fe]).reduce(function(e,t){return e.concat([t,t+"-"+te,t+"-"+ue])},[]),vr="beforeRead",mr="read",hr="afterRead",gr="beforeMain",yr="main",br="afterMain",xr="beforeWrite",wr="write",Or="afterWrite",Pr=[vr,mr,hr,gr,yr,br,xr,wr,Or];function U(e){return e?(e.nodeName||"").toLowerCase():null}function W(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function K(e){var t=W(e).Element;return e instanceof t||e instanceof Element}function L(e){var t=W(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function We(e){if(typeof ShadowRoot>"u")return!1;var t=W(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Er(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var o=t.styles[r]||{},n=t.attributes[r]||{},a=t.elements[r];!L(a)||!U(a)||(Object.assign(a.style,o),Object.keys(n).forEach(function(c){var s=n[c];s===!1?a.removeAttribute(c):a.setAttribute(c,s===!0?"":s)}))})}function Cr(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(o){var n=t.elements[o],a=t.attributes[o]||{},c=Object.keys(t.styles.hasOwnProperty(o)?t.styles[o]:r[o]),s=c.reduce(function(i,f){return i[f]="",i},{});!L(n)||!U(n)||(Object.assign(n.style,s),Object.keys(a).forEach(function(i){n.removeAttribute(i)}))})}}const Rr={name:"applyStyles",enabled:!0,phase:"write",fn:Er,effect:Cr,requires:["computeStyles"]};function I(e){return e.split("-")[0]}var Q=Math.max,we=Math.min,re=Math.round;function $e(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function wt(){return!/^((?!chrome|android).)*safari/i.test($e())}function oe(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var o=e.getBoundingClientRect(),n=1,a=1;t&&L(e)&&(n=e.offsetWidth>0&&re(o.width)/e.offsetWidth||1,a=e.offsetHeight>0&&re(o.height)/e.offsetHeight||1);var c=K(e)?W(e):window,s=c.visualViewport,i=!wt()&&r,f=(o.left+(i&&s?s.offsetLeft:0))/n,l=(o.top+(i&&s?s.offsetTop:0))/a,v=o.width/n,h=o.height/a;return{width:v,height:h,top:l,right:f+v,bottom:l+h,left:f,x:f,y:l}}function Ve(e){var t=oe(e),r=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:o}}function Ot(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&We(r)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function q(e){return W(e).getComputedStyle(e)}function Ar(e){return["table","td","th"].indexOf(U(e))>=0}function X(e){return((K(e)?e.ownerDocument:e.document)||window.document).documentElement}function Oe(e){return U(e)==="html"?e:e.assignedSlot||e.parentNode||(We(e)?e.host:null)||X(e)}function it(e){return!L(e)||q(e).position==="fixed"?null:e.offsetParent}function Sr(e){var t=/firefox/i.test($e()),r=/Trident/i.test($e());if(r&&L(e)){var o=q(e);if(o.position==="fixed")return null}var n=Oe(e);for(We(n)&&(n=n.host);L(n)&&["html","body"].indexOf(U(n))<0;){var a=q(n);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return n;n=n.parentNode}return null}function ve(e){for(var t=W(e),r=it(e);r&&Ar(r)&&q(r).position==="static";)r=it(r);return r&&(U(r)==="html"||U(r)==="body"&&q(r).position==="static")?t:r||Sr(e)||t}function Le(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ce(e,t,r){return Q(e,we(t,r))}function $r(e,t,r){var o=ce(e,t,r);return o>r?r:o}function Pt(){return{top:0,right:0,bottom:0,left:0}}function Et(e){return Object.assign({},Pt(),e)}function Ct(e,t){return t.reduce(function(r,o){return r[o]=e,r},{})}var Dr=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,Et(typeof t!="number"?t:Ct(t,de))};function jr(e){var t,r=e.state,o=e.name,n=e.options,a=r.elements.arrow,c=r.modifiersData.popperOffsets,s=I(r.placement),i=Le(s),f=[F,H].indexOf(s)>=0,l=f?"height":"width";if(!(!a||!c)){var v=Dr(n.padding,r),h=Ve(a),p=i==="y"?B:F,x=i==="y"?N:H,d=r.rects.reference[l]+r.rects.reference[i]-c[i]-r.rects.popper[l],m=c[i]-r.rects.reference[i],w=ve(a),P=w?i==="y"?w.clientHeight||0:w.clientWidth||0:0,b=d/2-m/2,u=v[p],g=P-h[l]-v[x],y=P/2-h[l]/2+b,O=ce(u,y,g),A=i;r.modifiersData[o]=(t={},t[A]=O,t.centerOffset=O-y,t)}}function kr(e){var t=e.state,r=e.options,o=r.element,n=o===void 0?"[data-popper-arrow]":o;n!=null&&(typeof n=="string"&&(n=t.elements.popper.querySelector(n),!n)||Ot(t.elements.popper,n)&&(t.elements.arrow=n))}const Tr={name:"arrow",enabled:!0,phase:"main",fn:jr,effect:kr,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ne(e){return e.split("-")[1]}var Mr={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Br(e,t){var r=e.x,o=e.y,n=t.devicePixelRatio||1;return{x:re(r*n)/n||0,y:re(o*n)/n||0}}function st(e){var t,r=e.popper,o=e.popperRect,n=e.placement,a=e.variation,c=e.offsets,s=e.position,i=e.gpuAcceleration,f=e.adaptive,l=e.roundOffsets,v=e.isFixed,h=c.x,p=h===void 0?0:h,x=c.y,d=x===void 0?0:x,m=typeof l=="function"?l({x:p,y:d}):{x:p,y:d};p=m.x,d=m.y;var w=c.hasOwnProperty("x"),P=c.hasOwnProperty("y"),b=F,u=B,g=window;if(f){var y=ve(r),O="clientHeight",A="clientWidth";if(y===W(r)&&(y=X(r),q(y).position!=="static"&&s==="absolute"&&(O="scrollHeight",A="scrollWidth")),y=y,n===B||(n===F||n===H)&&a===ue){u=N;var C=v&&y===g&&g.visualViewport?g.visualViewport.height:y[O];d-=C-o.height,d*=i?1:-1}if(n===F||(n===B||n===N)&&a===ue){b=H;var R=v&&y===g&&g.visualViewport?g.visualViewport.width:y[A];p-=R-o.width,p*=i?1:-1}}var $=Object.assign({position:s},f&&Mr),k=l===!0?Br({x:p,y:d},W(r)):{x:p,y:d};if(p=k.x,d=k.y,i){var S;return Object.assign({},$,(S={},S[u]=P?"0":"",S[b]=w?"0":"",S.transform=(g.devicePixelRatio||1)<=1?"translate("+p+"px, "+d+"px)":"translate3d("+p+"px, "+d+"px, 0)",S))}return Object.assign({},$,(t={},t[u]=P?d+"px":"",t[b]=w?p+"px":"",t.transform="",t))}function Fr(e){var t=e.state,r=e.options,o=r.gpuAcceleration,n=o===void 0?!0:o,a=r.adaptive,c=a===void 0?!0:a,s=r.roundOffsets,i=s===void 0?!0:s,f={placement:I(t.placement),variation:ne(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:n,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,st(Object.assign({},f,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:c,roundOffsets:i})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,st(Object.assign({},f,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:i})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Wr={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Fr,data:{}};var be={passive:!0};function Vr(e){var t=e.state,r=e.instance,o=e.options,n=o.scroll,a=n===void 0?!0:n,c=o.resize,s=c===void 0?!0:c,i=W(t.elements.popper),f=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&f.forEach(function(l){l.addEventListener("scroll",r.update,be)}),s&&i.addEventListener("resize",r.update,be),function(){a&&f.forEach(function(l){l.removeEventListener("scroll",r.update,be)}),s&&i.removeEventListener("resize",r.update,be)}}const Lr={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Vr,data:{}};var Nr={left:"right",right:"left",bottom:"top",top:"bottom"};function xe(e){return e.replace(/left|right|bottom|top/g,function(t){return Nr[t]})}var Hr={start:"end",end:"start"};function lt(e){return e.replace(/start|end/g,function(t){return Hr[t]})}function Ne(e){var t=W(e),r=t.pageXOffset,o=t.pageYOffset;return{scrollLeft:r,scrollTop:o}}function He(e){return oe(X(e)).left+Ne(e).scrollLeft}function Ir(e,t){var r=W(e),o=X(e),n=r.visualViewport,a=o.clientWidth,c=o.clientHeight,s=0,i=0;if(n){a=n.width,c=n.height;var f=wt();(f||!f&&t==="fixed")&&(s=n.offsetLeft,i=n.offsetTop)}return{width:a,height:c,x:s+He(e),y:i}}function Ur(e){var t,r=X(e),o=Ne(e),n=(t=e.ownerDocument)==null?void 0:t.body,a=Q(r.scrollWidth,r.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),c=Q(r.scrollHeight,r.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),s=-o.scrollLeft+He(e),i=-o.scrollTop;return q(n||r).direction==="rtl"&&(s+=Q(r.clientWidth,n?n.clientWidth:0)-a),{width:a,height:c,x:s,y:i}}function Ie(e){var t=q(e),r=t.overflow,o=t.overflowX,n=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+n+o)}function Rt(e){return["html","body","#document"].indexOf(U(e))>=0?e.ownerDocument.body:L(e)&&Ie(e)?e:Rt(Oe(e))}function fe(e,t){var r;t===void 0&&(t=[]);var o=Rt(e),n=o===((r=e.ownerDocument)==null?void 0:r.body),a=W(o),c=n?[a].concat(a.visualViewport||[],Ie(o)?o:[]):o,s=t.concat(c);return n?s:s.concat(fe(Oe(c)))}function De(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function qr(e,t){var r=oe(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function ct(e,t,r){return t===bt?De(Ir(e,r)):K(t)?qr(t,r):De(Ur(X(e)))}function Yr(e){var t=fe(Oe(e)),r=["absolute","fixed"].indexOf(q(e).position)>=0,o=r&&L(e)?ve(e):e;return K(o)?t.filter(function(n){return K(n)&&Ot(n,o)&&U(n)!=="body"}):[]}function zr(e,t,r,o){var n=t==="clippingParents"?Yr(e):[].concat(t),a=[].concat(n,[r]),c=a[0],s=a.reduce(function(i,f){var l=ct(e,f,o);return i.top=Q(l.top,i.top),i.right=we(l.right,i.right),i.bottom=we(l.bottom,i.bottom),i.left=Q(l.left,i.left),i},ct(e,c,o));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function At(e){var t=e.reference,r=e.element,o=e.placement,n=o?I(o):null,a=o?ne(o):null,c=t.x+t.width/2-r.width/2,s=t.y+t.height/2-r.height/2,i;switch(n){case B:i={x:c,y:t.y-r.height};break;case N:i={x:c,y:t.y+t.height};break;case H:i={x:t.x+t.width,y:s};break;case F:i={x:t.x-r.width,y:s};break;default:i={x:t.x,y:t.y}}var f=n?Le(n):null;if(f!=null){var l=f==="y"?"height":"width";switch(a){case te:i[f]=i[f]-(t[l]/2-r[l]/2);break;case ue:i[f]=i[f]+(t[l]/2-r[l]/2);break}}return i}function pe(e,t){t===void 0&&(t={});var r=t,o=r.placement,n=o===void 0?e.placement:o,a=r.strategy,c=a===void 0?e.strategy:a,s=r.boundary,i=s===void 0?pr:s,f=r.rootBoundary,l=f===void 0?bt:f,v=r.elementContext,h=v===void 0?le:v,p=r.altBoundary,x=p===void 0?!1:p,d=r.padding,m=d===void 0?0:d,w=Et(typeof m!="number"?m:Ct(m,de)),P=h===le?dr:le,b=e.rects.popper,u=e.elements[x?P:h],g=zr(K(u)?u:u.contextElement||X(e.elements.popper),i,l,c),y=oe(e.elements.reference),O=At({reference:y,element:b,strategy:"absolute",placement:n}),A=De(Object.assign({},b,O)),C=h===le?A:y,R={top:g.top-C.top+w.top,bottom:C.bottom-g.bottom+w.bottom,left:g.left-C.left+w.left,right:C.right-g.right+w.right},$=e.modifiersData.offset;if(h===le&&$){var k=$[n];Object.keys(R).forEach(function(S){var j=[H,N].indexOf(S)>=0?1:-1,V=[B,N].indexOf(S)>=0?"y":"x";R[S]+=k[V]*j})}return R}function Xr(e,t){t===void 0&&(t={});var r=t,o=r.placement,n=r.boundary,a=r.rootBoundary,c=r.padding,s=r.flipVariations,i=r.allowedAutoPlacements,f=i===void 0?xt:i,l=ne(o),v=l?s?at:at.filter(function(x){return ne(x)===l}):de,h=v.filter(function(x){return f.indexOf(x)>=0});h.length===0&&(h=v);var p=h.reduce(function(x,d){return x[d]=pe(e,{placement:d,boundary:n,rootBoundary:a,padding:c})[I(d)],x},{});return Object.keys(p).sort(function(x,d){return p[x]-p[d]})}function Gr(e){if(I(e)===Fe)return[];var t=xe(e);return[lt(e),t,lt(t)]}function _r(e){var t=e.state,r=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var n=r.mainAxis,a=n===void 0?!0:n,c=r.altAxis,s=c===void 0?!0:c,i=r.fallbackPlacements,f=r.padding,l=r.boundary,v=r.rootBoundary,h=r.altBoundary,p=r.flipVariations,x=p===void 0?!0:p,d=r.allowedAutoPlacements,m=t.options.placement,w=I(m),P=w===m,b=i||(P||!x?[xe(m)]:Gr(m)),u=[m].concat(b).reduce(function(ee,z){return ee.concat(I(z)===Fe?Xr(t,{placement:z,boundary:l,rootBoundary:v,padding:f,flipVariations:x,allowedAutoPlacements:d}):z)},[]),g=t.rects.reference,y=t.rects.popper,O=new Map,A=!0,C=u[0],R=0;R=0,V=j?"width":"height",D=pe(t,{placement:$,boundary:l,rootBoundary:v,altBoundary:h,padding:f}),M=j?S?H:F:S?N:B;g[V]>y[V]&&(M=xe(M));var Y=xe(M),G=[];if(a&&G.push(D[k]<=0),s&&G.push(D[M]<=0,D[Y]<=0),G.every(function(ee){return ee})){C=$,A=!1;break}O.set($,G)}if(A)for(var me=x?3:1,Pe=function(z){var se=u.find(function(ge){var _=O.get(ge);if(_)return _.slice(0,z).every(function(Ee){return Ee})});if(se)return C=se,"break"},ie=me;ie>0;ie--){var he=Pe(ie);if(he==="break")break}t.placement!==C&&(t.modifiersData[o]._skip=!0,t.placement=C,t.reset=!0)}}const Jr={name:"flip",enabled:!0,phase:"main",fn:_r,requiresIfExists:["offset"],data:{_skip:!1}};function ft(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function ut(e){return[B,H,N,F].some(function(t){return e[t]>=0})}function Qr(e){var t=e.state,r=e.name,o=t.rects.reference,n=t.rects.popper,a=t.modifiersData.preventOverflow,c=pe(t,{elementContext:"reference"}),s=pe(t,{altBoundary:!0}),i=ft(c,o),f=ft(s,n,a),l=ut(i),v=ut(f);t.modifiersData[r]={referenceClippingOffsets:i,popperEscapeOffsets:f,isReferenceHidden:l,hasPopperEscaped:v},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":l,"data-popper-escaped":v})}const Zr={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Qr};function Kr(e,t,r){var o=I(e),n=[F,B].indexOf(o)>=0?-1:1,a=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,c=a[0],s=a[1];return c=c||0,s=(s||0)*n,[F,H].indexOf(o)>=0?{x:s,y:c}:{x:c,y:s}}function eo(e){var t=e.state,r=e.options,o=e.name,n=r.offset,a=n===void 0?[0,0]:n,c=xt.reduce(function(l,v){return l[v]=Kr(v,t.rects,a),l},{}),s=c[t.placement],i=s.x,f=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=i,t.modifiersData.popperOffsets.y+=f),t.modifiersData[o]=c}const to={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:eo};function ro(e){var t=e.state,r=e.name;t.modifiersData[r]=At({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const oo={name:"popperOffsets",enabled:!0,phase:"read",fn:ro,data:{}};function no(e){return e==="x"?"y":"x"}function ao(e){var t=e.state,r=e.options,o=e.name,n=r.mainAxis,a=n===void 0?!0:n,c=r.altAxis,s=c===void 0?!1:c,i=r.boundary,f=r.rootBoundary,l=r.altBoundary,v=r.padding,h=r.tether,p=h===void 0?!0:h,x=r.tetherOffset,d=x===void 0?0:x,m=pe(t,{boundary:i,rootBoundary:f,padding:v,altBoundary:l}),w=I(t.placement),P=ne(t.placement),b=!P,u=Le(w),g=no(u),y=t.modifiersData.popperOffsets,O=t.rects.reference,A=t.rects.popper,C=typeof d=="function"?d(Object.assign({},t.rects,{placement:t.placement})):d,R=typeof C=="number"?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),$=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,k={x:0,y:0};if(y){if(a){var S,j=u==="y"?B:F,V=u==="y"?N:H,D=u==="y"?"height":"width",M=y[u],Y=M+m[j],G=M-m[V],me=p?-A[D]/2:0,Pe=P===te?O[D]:A[D],ie=P===te?-A[D]:-O[D],he=t.elements.arrow,ee=p&&he?Ve(he):{width:0,height:0},z=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Pt(),se=z[j],ge=z[V],_=ce(0,O[D],ee[D]),Ee=b?O[D]/2-me-_-se-R.mainAxis:Pe-_-se-R.mainAxis,$t=b?-O[D]/2+me+_+ge+R.mainAxis:ie+_+ge+R.mainAxis,Ce=t.elements.arrow&&ve(t.elements.arrow),Dt=Ce?u==="y"?Ce.clientTop||0:Ce.clientLeft||0:0,Ue=(S=$==null?void 0:$[u])!=null?S:0,jt=M+Ee-Ue-Dt,kt=M+$t-Ue,qe=ce(p?we(Y,jt):Y,M,p?Q(G,kt):G);y[u]=qe,k[u]=qe-M}if(s){var Ye,Tt=u==="x"?B:F,Mt=u==="x"?N:H,J=y[g],ye=g==="y"?"height":"width",ze=J+m[Tt],Xe=J-m[Mt],Re=[B,F].indexOf(w)!==-1,Ge=(Ye=$==null?void 0:$[g])!=null?Ye:0,_e=Re?ze:J-O[ye]-A[ye]-Ge+R.altAxis,Je=Re?J+O[ye]+A[ye]-Ge-R.altAxis:Xe,Qe=p&&Re?$r(_e,J,Je):ce(p?_e:ze,J,p?Je:Xe);y[g]=Qe,k[g]=Qe-J}t.modifiersData[o]=k}}const io={name:"preventOverflow",enabled:!0,phase:"main",fn:ao,requiresIfExists:["offset"]};function so(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function lo(e){return e===W(e)||!L(e)?Ne(e):so(e)}function co(e){var t=e.getBoundingClientRect(),r=re(t.width)/e.offsetWidth||1,o=re(t.height)/e.offsetHeight||1;return r!==1||o!==1}function fo(e,t,r){r===void 0&&(r=!1);var o=L(t),n=L(t)&&co(t),a=X(t),c=oe(e,n,r),s={scrollLeft:0,scrollTop:0},i={x:0,y:0};return(o||!o&&!r)&&((U(t)!=="body"||Ie(a))&&(s=lo(t)),L(t)?(i=oe(t,!0),i.x+=t.clientLeft,i.y+=t.clientTop):a&&(i.x=He(a))),{x:c.left+s.scrollLeft-i.x,y:c.top+s.scrollTop-i.y,width:c.width,height:c.height}}function uo(e){var t=new Map,r=new Set,o=[];e.forEach(function(a){t.set(a.name,a)});function n(a){r.add(a.name);var c=[].concat(a.requires||[],a.requiresIfExists||[]);c.forEach(function(s){if(!r.has(s)){var i=t.get(s);i&&n(i)}}),o.push(a)}return e.forEach(function(a){r.has(a.name)||n(a)}),o}function po(e){var t=uo(e);return Pr.reduce(function(r,o){return r.concat(t.filter(function(n){return n.phase===o}))},[])}function vo(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function mo(e){var t=e.reduce(function(r,o){var n=r[o.name];return r[o.name]=n?Object.assign({},n,o,{options:Object.assign({},n.options,o.options),data:Object.assign({},n.data,o.data)}):o,r},{});return Object.keys(t).map(function(r){return t[r]})}var pt={placement:"bottom",modifiers:[],strategy:"absolute"};function dt(){for(var e=arguments.length,t=new Array(e),r=0;rke({root:["root"]},ur(bo)),Co={},Ro=E.forwardRef(function(t,r){var o;const{anchorEl:n,children:a,direction:c,disablePortal:s,modifiers:i,open:f,placement:l,popperOptions:v,popperRef:h,slotProps:p={},slots:x={},TransitionProps:d}=t,m=ae(t,xo),w=E.useRef(null),P=et(w,r),b=E.useRef(null),u=et(b,h),g=E.useRef(u);tt(()=>{g.current=u},[u]),E.useImperativeHandle(h,()=>b.current,[]);const y=Oo(l,c),[O,A]=E.useState(y),[C,R]=E.useState(je(n));E.useEffect(()=>{b.current&&b.current.forceUpdate()}),E.useEffect(()=>{n&&R(je(n))},[n]),tt(()=>{if(!C||!f)return;const V=Y=>{A(Y.placement)};let D=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:Y})=>{V(Y)}}];i!=null&&(D=D.concat(i)),v&&v.modifiers!=null&&(D=D.concat(v.modifiers));const M=yo(C,w.current,T({placement:y},v,{modifiers:D}));return g.current(M),()=>{M.destroy(),g.current(null)}},[C,s,i,f,v,y]);const $={placement:O};d!==null&&($.TransitionProps=d);const k=Eo(),S=(o=x.root)!=null?o:"div",j=Xt({elementType:S,externalSlotProps:p.root,externalForwardedProps:m,additionalProps:{role:"tooltip",ref:P},ownerState:t,className:k.root});return Z.jsx(S,T({},j,{children:typeof a=="function"?a($):a}))}),Ao=E.forwardRef(function(t,r){const{anchorEl:o,children:n,container:a,direction:c="ltr",disablePortal:s=!1,keepMounted:i=!1,modifiers:f,open:l,placement:v="bottom",popperOptions:h=Co,popperRef:p,style:x,transition:d=!1,slotProps:m={},slots:w={}}=t,P=ae(t,wo),[b,u]=E.useState(!0),g=()=>{u(!1)},y=()=>{u(!0)};if(!i&&!l&&(!d||b))return null;let O;if(a)O=a;else if(o){const R=je(o);O=R&&Po(R)?rt(R).body:rt(null).body}const A=!l&&i&&(!d||b)?"none":void 0,C=d?{in:l,onEnter:g,onExited:y}:void 0;return Z.jsx(zt,{disablePortal:s,container:O,children:Z.jsx(Ro,T({anchorEl:o,direction:c,disablePortal:s,modifiers:f,ref:r,open:d?!b:l,placement:v,popperOptions:h,popperRef:p,slotProps:m,slots:w},P,{style:T({position:"fixed",top:0,left:0,display:A},x),TransitionProps:C,children:n}))})}),So=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],$o=Me(Ao,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Do=E.forwardRef(function(t,r){var o;const n=qt(),a=Be({props:t,name:"MuiPopper"}),{anchorEl:c,component:s,components:i,componentsProps:f,container:l,disablePortal:v,keepMounted:h,modifiers:p,open:x,placement:d,popperOptions:m,popperRef:w,transition:P,slots:b,slotProps:u}=a,g=ae(a,So),y=(o=b==null?void 0:b.root)!=null?o:i==null?void 0:i.Root,O=T({anchorEl:c,container:l,disablePortal:v,keepMounted:h,modifiers:p,open:x,placement:d,popperOptions:m,popperRef:w,transition:P},g);return Z.jsx($o,T({as:s,direction:n==null?void 0:n.direction,slots:{root:y},slotProps:u??f},O,{ref:r}))}),Uo=Do;function qo({props:e,states:t,muiFormControl:r}){return t.reduce((o,n)=>(o[n]=e[n],r&&typeof e[n]>"u"&&(o[n]=r[n]),o),{})}const jo=E.createContext(void 0),St=jo;function Yo(){return E.useContext(St)}function vt(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function mt(e,t=!1){return e&&(vt(e.value)&&e.value!==""||t&&vt(e.defaultValue)&&e.defaultValue!=="")}function ko(e){return e.startAdornment}function To(e){return Te("MuiFormControl",e)}ht("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const Mo=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],Bo=e=>{const{classes:t,margin:r,fullWidth:o}=e,n={root:["root",r!=="none"&&`margin${gt(r)}`,o&&"fullWidth"]};return ke(n,To,t)},Fo=Me("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>T({},t.root,t[`margin${gt(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>T({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),Wo=E.forwardRef(function(t,r){const o=Be({props:t,name:"MuiFormControl"}),{children:n,className:a,color:c="primary",component:s="div",disabled:i=!1,error:f=!1,focused:l,fullWidth:v=!1,hiddenLabel:h=!1,margin:p="none",required:x=!1,size:d="medium",variant:m="outlined"}=o,w=ae(o,Mo),P=T({},o,{color:c,component:s,disabled:i,error:f,fullWidth:v,hiddenLabel:h,margin:p,required:x,size:d,variant:m}),b=Bo(P),[u,g]=E.useState(()=>{let S=!1;return n&&E.Children.forEach(n,j=>{if(!Se(j,["Input","Select"]))return;const V=Se(j,["Select"])?j.props.input:j;V&&ko(V.props)&&(S=!0)}),S}),[y,O]=E.useState(()=>{let S=!1;return n&&E.Children.forEach(n,j=>{Se(j,["Input","Select"])&&(mt(j.props,!0)||mt(j.props.inputProps,!0))&&(S=!0)}),S}),[A,C]=E.useState(!1);i&&A&&C(!1);const R=l!==void 0&&!i?l:A;let $;const k=E.useMemo(()=>({adornedStart:u,setAdornedStart:g,color:c,disabled:i,error:f,filled:y,focused:R,fullWidth:v,hiddenLabel:h,size:d,onBlur:()=>{C(!1)},onEmpty:()=>{O(!1)},onFilled:()=>{O(!0)},onFocus:()=>{C(!0)},registerEffect:$,required:x,variant:m}),[u,c,i,f,y,R,v,h,$,x,d,m]);return Z.jsx(St.Provider,{value:k,children:Z.jsx(Fo,T({as:s,ownerState:P,className:Yt(b.root,a),ref:r},w,{children:n}))})}),zo=Wo,Vo=lr({createStyledComponent:Me("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Be({props:e,name:"MuiStack"})}),Xo=Vo;export{zo as F,Uo as P,Xo as S,Ho as a,Yo as b,St as c,Qt as e,qo as f,mt as i,Io as u}; diff --git a/build/assets/Streamable-17261ec9.js b/build/assets/Streamable-00043ce8.js similarity index 95% rename from build/assets/Streamable-17261ec9.js rename to build/assets/Streamable-00043ce8.js index 3c01abdc6..dfea84ba5 100644 --- a/build/assets/Streamable-17261ec9.js +++ b/build/assets/Streamable-00043ce8.js @@ -1 +1 @@ -import{a9 as m,r as f}from"./index-3506c528.js";import{u as _,p as b}from"./index-44c74031.js";function P(t,e){for(var r=0;rs[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var g=Object.create,l=Object.defineProperty,v=Object.getOwnPropertyDescriptor,O=Object.getOwnPropertyNames,S=Object.getPrototypeOf,j=Object.prototype.hasOwnProperty,L=(t,e,r)=>e in t?l(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,w=(t,e)=>{for(var r in e)l(t,r,{get:e[r],enumerable:!0})},c=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of O(e))!j.call(t,a)&&a!==r&&l(t,a,{get:()=>e[a],enumerable:!(s=v(e,a))||s.enumerable});return t},D=(t,e,r)=>(r=t!=null?g(S(t)):{},c(e||!t||!t.__esModule?l(r,"default",{value:t,enumerable:!0}):r,t)),E=t=>c(l({},"__esModule",{value:!0}),t),o=(t,e,r)=>(L(t,typeof e!="symbol"?e+"":e,r),r),h={};w(h,{default:()=>i});var y=E(h),p=D(f),u=_,d=b;const M="https://cdn.embed.ly/player-0.1.0.min.js",T="playerjs";class i extends p.Component{constructor(){super(...arguments),o(this,"callPlayer",u.callPlayer),o(this,"duration",null),o(this,"currentTime",null),o(this,"secondsLoaded",null),o(this,"mute",()=>{this.callPlayer("mute")}),o(this,"unmute",()=>{this.callPlayer("unmute")}),o(this,"ref",e=>{this.iframe=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){(0,u.getSDK)(M,T).then(r=>{this.iframe&&(this.player=new r.Player(this.iframe),this.player.setLoop(this.props.loop),this.player.on("ready",this.props.onReady),this.player.on("play",this.props.onPlay),this.player.on("pause",this.props.onPause),this.player.on("seeked",this.props.onSeek),this.player.on("ended",this.props.onEnded),this.player.on("error",this.props.onError),this.player.on("timeupdate",({duration:s,seconds:a})=>{this.duration=s,this.currentTime=a}),this.player.on("buffered",({percent:s})=>{this.duration&&(this.secondsLoaded=this.duration*s)}),this.props.muted&&this.player.mute())},this.props.onError)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("setCurrentTime",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e*100)}setLoop(e){this.callPlayer("setLoop",e)}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return this.secondsLoaded}render(){const e=this.props.url.match(d.MATCH_URL_STREAMABLE)[1],r={width:"100%",height:"100%"};return p.default.createElement("iframe",{ref:this.ref,src:`https://streamable.com/o/${e}`,frameBorder:"0",scrolling:"no",style:r,allow:"encrypted-media; autoplay; fullscreen;"})}}o(i,"displayName","Streamable");o(i,"canPlay",d.canPlay.streamable);const x=m(y),N=P({__proto__:null,default:x},[y]);export{N as S}; +import{a9 as m,r as f}from"./index-6541aa03.js";import{u as _,p as b}from"./index-0c54fe39.js";function P(t,e){for(var r=0;rs[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var g=Object.create,l=Object.defineProperty,v=Object.getOwnPropertyDescriptor,O=Object.getOwnPropertyNames,S=Object.getPrototypeOf,j=Object.prototype.hasOwnProperty,L=(t,e,r)=>e in t?l(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,w=(t,e)=>{for(var r in e)l(t,r,{get:e[r],enumerable:!0})},c=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of O(e))!j.call(t,a)&&a!==r&&l(t,a,{get:()=>e[a],enumerable:!(s=v(e,a))||s.enumerable});return t},D=(t,e,r)=>(r=t!=null?g(S(t)):{},c(e||!t||!t.__esModule?l(r,"default",{value:t,enumerable:!0}):r,t)),E=t=>c(l({},"__esModule",{value:!0}),t),o=(t,e,r)=>(L(t,typeof e!="symbol"?e+"":e,r),r),h={};w(h,{default:()=>i});var y=E(h),p=D(f),u=_,d=b;const M="https://cdn.embed.ly/player-0.1.0.min.js",T="playerjs";class i extends p.Component{constructor(){super(...arguments),o(this,"callPlayer",u.callPlayer),o(this,"duration",null),o(this,"currentTime",null),o(this,"secondsLoaded",null),o(this,"mute",()=>{this.callPlayer("mute")}),o(this,"unmute",()=>{this.callPlayer("unmute")}),o(this,"ref",e=>{this.iframe=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){(0,u.getSDK)(M,T).then(r=>{this.iframe&&(this.player=new r.Player(this.iframe),this.player.setLoop(this.props.loop),this.player.on("ready",this.props.onReady),this.player.on("play",this.props.onPlay),this.player.on("pause",this.props.onPause),this.player.on("seeked",this.props.onSeek),this.player.on("ended",this.props.onEnded),this.player.on("error",this.props.onError),this.player.on("timeupdate",({duration:s,seconds:a})=>{this.duration=s,this.currentTime=a}),this.player.on("buffered",({percent:s})=>{this.duration&&(this.secondsLoaded=this.duration*s)}),this.props.muted&&this.player.mute())},this.props.onError)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("setCurrentTime",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e*100)}setLoop(e){this.callPlayer("setLoop",e)}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return this.secondsLoaded}render(){const e=this.props.url.match(d.MATCH_URL_STREAMABLE)[1],r={width:"100%",height:"100%"};return p.default.createElement("iframe",{ref:this.ref,src:`https://streamable.com/o/${e}`,frameBorder:"0",scrolling:"no",style:r,allow:"encrypted-media; autoplay; fullscreen;"})}}o(i,"displayName","Streamable");o(i,"canPlay",d.canPlay.streamable);const x=m(y),N=P({__proto__:null,default:x},[y]);export{N as S}; diff --git a/build/assets/Tabs-53998bef.js b/build/assets/Tabs-31512595.js similarity index 99% rename from build/assets/Tabs-53998bef.js rename to build/assets/Tabs-31512595.js index ca2c2528d..59be4e7d5 100644 --- a/build/assets/Tabs-53998bef.js +++ b/build/assets/Tabs-31512595.js @@ -1 +1 @@ -import{M as ft,L as pt,O,X as Pt,Y as Lt,x as b,r as c,S as ht,H as rt,U as L,j as S,V as St,$ as Zt,a3 as Nt,a2 as ut}from"./index-3506c528.js";import{U as $t,L as kt,Y as lt,J as te}from"./index-ccbb14cf.js";import{c as Ft}from"./createSvgIcon-0fd508c0.js";let Y;function At(){if(Y)return Y;const t=document.createElement("div"),e=document.createElement("div");return e.style.width="10px",e.style.height="1px",t.appendChild(e),t.dir="rtl",t.style.fontSize="14px",t.style.width="4px",t.style.height="1px",t.style.position="absolute",t.style.top="-1000px",t.style.overflow="scroll",document.body.appendChild(t),Y="reverse",t.scrollLeft>0?Y="default":(t.scrollLeft=1,t.scrollLeft===0&&(Y="negative")),document.body.removeChild(t),Y}function ee(t,e){const r=t.scrollLeft;if(e!=="rtl")return r;switch(At()){case"negative":return t.scrollWidth-t.clientWidth+r;case"reverse":return t.scrollWidth-t.clientWidth-r;default:return r}}function oe(t){return pt("MuiTab",t)}const le=ft("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),A=le,re=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],ne=t=>{const{classes:e,textColor:r,fullWidth:a,wrapped:n,icon:d,label:h,selected:p,disabled:u}=t,m={root:["root",d&&h&&"labelIcon",`textColor${Lt(r)}`,a&&"fullWidth",n&&"wrapped",p&&"selected",u&&"disabled"],iconWrapper:["iconWrapper"]};return St(m,oe,e)},se=O(Pt,{name:"MuiTab",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.label&&r.icon&&e.labelIcon,e[`textColor${Lt(r.textColor)}`],r.fullWidth&&e.fullWidth,r.wrapped&&e.wrapped]}})(({theme:t,ownerState:e})=>b({},t.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},e.label&&{flexDirection:e.iconPosition==="top"||e.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},e.icon&&e.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${A.iconWrapper}`]:b({},e.iconPosition==="top"&&{marginBottom:6},e.iconPosition==="bottom"&&{marginTop:6},e.iconPosition==="start"&&{marginRight:t.spacing(1)},e.iconPosition==="end"&&{marginLeft:t.spacing(1)})},e.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${A.selected}`]:{opacity:1},[`&.${A.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity}},e.textColor==="primary"&&{color:(t.vars||t).palette.text.secondary,[`&.${A.selected}`]:{color:(t.vars||t).palette.primary.main},[`&.${A.disabled}`]:{color:(t.vars||t).palette.text.disabled}},e.textColor==="secondary"&&{color:(t.vars||t).palette.text.secondary,[`&.${A.selected}`]:{color:(t.vars||t).palette.secondary.main},[`&.${A.disabled}`]:{color:(t.vars||t).palette.text.disabled}},e.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},e.wrapped&&{fontSize:t.typography.pxToRem(12)})),ae=c.forwardRef(function(e,r){const a=ht({props:e,name:"MuiTab"}),{className:n,disabled:d=!1,disableFocusRipple:h=!1,fullWidth:p,icon:u,iconPosition:m="top",indicator:w,label:T,onChange:y,onClick:x,onFocus:j,selected:I,selectionFollowsFocus:g,textColor:H="inherit",value:C,wrapped:nt=!1}=a,X=rt(a,re),_=b({},a,{disabled:d,disableFocusRipple:h,selected:I,icon:!!u,iconPosition:m,label:!!T,fullWidth:p,textColor:H,wrapped:nt}),D=ne(_),N=u&&T&&c.isValidElement(u)?c.cloneElement(u,{className:L(D.iconWrapper,u.props.className)}):u,J=R=>{!I&&y&&y(R,C),x&&x(R)},U=R=>{g&&!I&&y&&y(R,C),j&&j(R)};return S.jsxs(se,b({focusRipple:!h,className:L(D.root,n),ref:r,role:"tab","aria-selected":I,disabled:d,onClick:J,onFocus:U,ownerState:_,tabIndex:I?0:-1},X,{children:[m==="top"||m==="start"?S.jsxs(c.Fragment,{children:[N,T]}):S.jsxs(c.Fragment,{children:[T,N]}),w]}))}),ke=ae,ie=Ft(S.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),ce=Ft(S.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function de(t){return(1+Math.sin(Math.PI*t-Math.PI/2))/2}function ue(t,e,r,a={},n=()=>{}){const{ease:d=de,duration:h=300}=a;let p=null;const u=e[t];let m=!1;const w=()=>{m=!0},T=y=>{if(m){n(new Error("Animation cancelled"));return}p===null&&(p=y);const x=Math.min(1,(y-p)/h);if(e[t]=d(x)*(r-u)+u,x>=1){requestAnimationFrame(()=>{n(null)});return}requestAnimationFrame(T)};return u===r?(n(new Error("Element already at target position")),w):(requestAnimationFrame(T),w)}const be=["onChange"],fe={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function pe(t){const{onChange:e}=t,r=rt(t,be),a=c.useRef(),n=c.useRef(null),d=()=>{a.current=n.current.offsetHeight-n.current.clientHeight};return Zt(()=>{const h=$t(()=>{const u=a.current;d(),u!==a.current&&e(a.current)}),p=kt(n.current);return p.addEventListener("resize",h),()=>{h.clear(),p.removeEventListener("resize",h)}},[e]),c.useEffect(()=>{d(),e(a.current)},[e]),S.jsx("div",b({style:fe,ref:n},r))}function he(t){return pt("MuiTabScrollButton",t)}const Se=ft("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),ve=Se,me=["className","slots","slotProps","direction","orientation","disabled"],xe=t=>{const{classes:e,orientation:r,disabled:a}=t;return St({root:["root",r,a&&"disabled"]},he,e)},ge=O(Pt,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.orientation&&e[r.orientation]]}})(({ownerState:t})=>b({width:40,flexShrink:0,opacity:.8,[`&.${ve.disabled}`]:{opacity:0}},t.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${t.isRtl?-90:90}deg)`}})),ye=c.forwardRef(function(e,r){var a,n;const d=ht({props:e,name:"MuiTabScrollButton"}),{className:h,slots:p={},slotProps:u={},direction:m}=d,w=rt(d,me),y=Nt().direction==="rtl",x=b({isRtl:y},d),j=xe(x),I=(a=p.StartScrollButtonIcon)!=null?a:ie,g=(n=p.EndScrollButtonIcon)!=null?n:ce,H=lt({elementType:I,externalSlotProps:u.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:x}),C=lt({elementType:g,externalSlotProps:u.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:x});return S.jsx(ge,b({component:"div",className:L(j.root,h),ref:r,role:null,ownerState:x,tabIndex:null},w,{children:m==="left"?S.jsx(I,b({},H)):S.jsx(g,b({},C))}))}),Ce=ye;function Be(t){return pt("MuiTabs",t)}const we=ft("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),bt=we,Te=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],Rt=(t,e)=>t===e?t.firstChild:e&&e.nextElementSibling?e.nextElementSibling:t.firstChild,zt=(t,e)=>t===e?t.lastChild:e&&e.previousElementSibling?e.previousElementSibling:t.lastChild,ot=(t,e,r)=>{let a=!1,n=r(t,e);for(;n;){if(n===t.firstChild){if(a)return;a=!0}const d=n.disabled||n.getAttribute("aria-disabled")==="true";if(!n.hasAttribute("tabindex")||d)n=r(t,n);else{n.focus();return}}},Ie=t=>{const{vertical:e,fixed:r,hideScrollbar:a,scrollableX:n,scrollableY:d,centered:h,scrollButtonsHideMobile:p,classes:u}=t;return St({root:["root",e&&"vertical"],scroller:["scroller",r&&"fixed",a&&"hideScrollbar",n&&"scrollableX",d&&"scrollableY"],flexContainer:["flexContainer",e&&"flexContainerVertical",h&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",p&&"scrollButtonsHideMobile"],scrollableX:[n&&"scrollableX"],hideScrollbar:[a&&"hideScrollbar"]},Be,u)},Ee=O("div",{name:"MuiTabs",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`& .${bt.scrollButtons}`]:e.scrollButtons},{[`& .${bt.scrollButtons}`]:r.scrollButtonsHideMobile&&e.scrollButtonsHideMobile},e.root,r.vertical&&e.vertical]}})(({ownerState:t,theme:e})=>b({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},t.vertical&&{flexDirection:"column"},t.scrollButtonsHideMobile&&{[`& .${bt.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}})),Me=O("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.scroller,r.fixed&&e.fixed,r.hideScrollbar&&e.hideScrollbar,r.scrollableX&&e.scrollableX,r.scrollableY&&e.scrollableY]}})(({ownerState:t})=>b({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},t.fixed&&{overflowX:"hidden",width:"100%"},t.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},t.scrollableX&&{overflowX:"auto",overflowY:"hidden"},t.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),Re=O("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.flexContainer,r.vertical&&e.flexContainerVertical,r.centered&&e.centered]}})(({ownerState:t})=>b({display:"flex"},t.vertical&&{flexDirection:"column"},t.centered&&{justifyContent:"center"})),ze=O("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(t,e)=>e.indicator})(({ownerState:t,theme:e})=>b({position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create()},t.indicatorColor==="primary"&&{backgroundColor:(e.vars||e).palette.primary.main},t.indicatorColor==="secondary"&&{backgroundColor:(e.vars||e).palette.secondary.main},t.vertical&&{height:"100%",width:2,right:0})),We=O(pe)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),Wt={},Pe=c.forwardRef(function(e,r){const a=ht({props:e,name:"MuiTabs"}),n=Nt(),d=n.direction==="rtl",{"aria-label":h,"aria-labelledby":p,action:u,centered:m=!1,children:w,className:T,component:y="div",allowScrollButtonsMobile:x=!1,indicatorColor:j="primary",onChange:I,orientation:g="horizontal",ScrollButtonComponent:H=Ce,scrollButtons:C="auto",selectionFollowsFocus:nt,slots:X={},slotProps:_={},TabIndicatorProps:D={},TabScrollButtonProps:N={},textColor:J="primary",value:U,variant:R="standard",visibleScrollbar:st=!1}=a,Ot=rt(a,Te),E=R==="scrollable",B=g==="vertical",V=B?"scrollTop":"scrollLeft",Q=B?"top":"left",Z=B?"bottom":"right",at=B?"clientHeight":"clientWidth",K=B?"height":"width",$=b({},a,{component:y,allowScrollButtonsMobile:x,indicatorColor:j,orientation:g,vertical:B,scrollButtons:C,textColor:J,variant:R,visibleScrollbar:st,fixed:!E,hideScrollbar:E&&!st,scrollableX:E&&!B,scrollableY:E&&B,centered:m&&!E,scrollButtonsHideMobile:!x}),W=Ie($),jt=lt({elementType:X.StartScrollButtonIcon,externalSlotProps:_.startScrollButtonIcon,ownerState:$}),Ht=lt({elementType:X.EndScrollButtonIcon,externalSlotProps:_.endScrollButtonIcon,ownerState:$}),[vt,Xt]=c.useState(!1),[k,mt]=c.useState(Wt),[xt,Dt]=c.useState(!1),[gt,Ut]=c.useState(!1),[yt,Yt]=c.useState(!1),[Ct,_t]=c.useState({overflow:"hidden",scrollbarWidth:0}),Bt=new Map,z=c.useRef(null),F=c.useRef(null),wt=()=>{const o=z.current;let l;if(o){const s=o.getBoundingClientRect();l={clientWidth:o.clientWidth,scrollLeft:o.scrollLeft,scrollTop:o.scrollTop,scrollLeftNormalized:ee(o,n.direction),scrollWidth:o.scrollWidth,top:s.top,bottom:s.bottom,left:s.left,right:s.right}}let i;if(o&&U!==!1){const s=F.current.children;if(s.length>0){const f=s[Bt.get(U)];i=f?f.getBoundingClientRect():null}}return{tabsMeta:l,tabMeta:i}},q=ut(()=>{const{tabsMeta:o,tabMeta:l}=wt();let i=0,s;if(B)s="top",l&&o&&(i=l.top-o.top+o.scrollTop);else if(s=d?"right":"left",l&&o){const v=d?o.scrollLeftNormalized+o.clientWidth-o.scrollWidth:o.scrollLeft;i=(d?-1:1)*(l[s]-o[s]+v)}const f={[s]:i,[K]:l?l[K]:0};if(isNaN(k[s])||isNaN(k[K]))mt(f);else{const v=Math.abs(k[s]-f[s]),M=Math.abs(k[K]-f[K]);(v>=1||M>=1)&&mt(f)}}),it=(o,{animation:l=!0}={})=>{l?ue(V,z.current,o,{duration:n.transitions.duration.standard}):z.current[V]=o},Tt=o=>{let l=z.current[V];B?l+=o:(l+=o*(d?-1:1),l*=d&&At()==="reverse"?-1:1),it(l)},It=()=>{const o=z.current[at];let l=0;const i=Array.from(F.current.children);for(let s=0;so){s===0&&(l=o);break}l+=f[at]}return l},Vt=()=>{Tt(-1*It())},Kt=()=>{Tt(It())},qt=c.useCallback(o=>{_t({overflow:null,scrollbarWidth:o})},[]),Gt=()=>{const o={};o.scrollbarSizeListener=E?S.jsx(We,{onChange:qt,className:L(W.scrollableX,W.hideScrollbar)}):null;const i=E&&(C==="auto"&&(xt||gt)||C===!0);return o.scrollButtonStart=i?S.jsx(H,b({slots:{StartScrollButtonIcon:X.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:jt},orientation:g,direction:d?"right":"left",onClick:Vt,disabled:!xt},N,{className:L(W.scrollButtons,N.className)})):null,o.scrollButtonEnd=i?S.jsx(H,b({slots:{EndScrollButtonIcon:X.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:Ht},orientation:g,direction:d?"left":"right",onClick:Kt,disabled:!gt},N,{className:L(W.scrollButtons,N.className)})):null,o},Et=ut(o=>{const{tabsMeta:l,tabMeta:i}=wt();if(!(!i||!l)){if(i[Q]l[Z]){const s=l[V]+(i[Z]-l[Z]);it(s,{animation:o})}}}),tt=ut(()=>{E&&C!==!1&&Yt(!yt)});c.useEffect(()=>{const o=$t(()=>{z.current&&q()});let l;const i=v=>{v.forEach(M=>{M.removedNodes.forEach(G=>{var P;(P=l)==null||P.unobserve(G)}),M.addedNodes.forEach(G=>{var P;(P=l)==null||P.observe(G)})}),o(),tt()},s=kt(z.current);s.addEventListener("resize",o);let f;return typeof ResizeObserver<"u"&&(l=new ResizeObserver(o),Array.from(F.current.children).forEach(v=>{l.observe(v)})),typeof MutationObserver<"u"&&(f=new MutationObserver(i),f.observe(F.current,{childList:!0})),()=>{var v,M;o.clear(),s.removeEventListener("resize",o),(v=f)==null||v.disconnect(),(M=l)==null||M.disconnect()}},[q,tt]),c.useEffect(()=>{const o=Array.from(F.current.children),l=o.length;if(typeof IntersectionObserver<"u"&&l>0&&E&&C!==!1){const i=o[0],s=o[l-1],f={root:z.current,threshold:.99},v=dt=>{Dt(!dt[0].isIntersecting)},M=new IntersectionObserver(v,f);M.observe(i);const G=dt=>{Ut(!dt[0].isIntersecting)},P=new IntersectionObserver(G,f);return P.observe(s),()=>{M.disconnect(),P.disconnect()}}},[E,C,yt,w==null?void 0:w.length]),c.useEffect(()=>{Xt(!0)},[]),c.useEffect(()=>{q()}),c.useEffect(()=>{Et(Wt!==k)},[Et,k]),c.useImperativeHandle(u,()=>({updateIndicator:q,updateScrollButtons:tt}),[q,tt]);const Mt=S.jsx(ze,b({},D,{className:L(W.indicator,D.className),ownerState:$,style:b({},k,D.style)}));let et=0;const Jt=c.Children.map(w,o=>{if(!c.isValidElement(o))return null;const l=o.props.value===void 0?et:o.props.value;Bt.set(l,et);const i=l===U;return et+=1,c.cloneElement(o,b({fullWidth:R==="fullWidth",indicator:i&&!vt&&Mt,selected:i,selectionFollowsFocus:nt,onChange:I,textColor:J,value:l},et===1&&U===!1&&!o.props.tabIndex?{tabIndex:0}:{}))}),Qt=o=>{const l=F.current,i=te(l).activeElement;if(i.getAttribute("role")!=="tab")return;let f=g==="horizontal"?"ArrowLeft":"ArrowUp",v=g==="horizontal"?"ArrowRight":"ArrowDown";switch(g==="horizontal"&&d&&(f="ArrowRight",v="ArrowLeft"),o.key){case f:o.preventDefault(),ot(l,i,zt);break;case v:o.preventDefault(),ot(l,i,Rt);break;case"Home":o.preventDefault(),ot(l,null,Rt);break;case"End":o.preventDefault(),ot(l,null,zt);break}},ct=Gt();return S.jsxs(Ee,b({className:L(W.root,T),ownerState:$,ref:r,as:y},Ot,{children:[ct.scrollButtonStart,ct.scrollbarSizeListener,S.jsxs(Me,{className:W.scroller,ownerState:$,style:{overflow:Ct.overflow,[B?`margin${d?"Left":"Right"}`:"marginBottom"]:st?void 0:-Ct.scrollbarWidth},ref:z,children:[S.jsx(Re,{"aria-label":h,"aria-labelledby":p,"aria-orientation":g==="vertical"?"vertical":null,className:W.flexContainer,ownerState:$,onKeyDown:Qt,ref:F,role:"tablist",children:Jt}),vt&&Mt]}),ct.scrollButtonEnd]}))}),Fe=Pe;export{Fe as T,ke as a}; +import{M as ft,L as pt,O,X as Pt,Y as Lt,x as b,r as c,S as ht,H as rt,U as L,j as S,V as St,$ as Zt,a3 as Nt,a2 as ut}from"./index-6541aa03.js";import{U as $t,L as kt,Y as lt,J as te}from"./index-ad617d4b.js";import{c as Ft}from"./createSvgIcon-0b5f6bf4.js";let Y;function At(){if(Y)return Y;const t=document.createElement("div"),e=document.createElement("div");return e.style.width="10px",e.style.height="1px",t.appendChild(e),t.dir="rtl",t.style.fontSize="14px",t.style.width="4px",t.style.height="1px",t.style.position="absolute",t.style.top="-1000px",t.style.overflow="scroll",document.body.appendChild(t),Y="reverse",t.scrollLeft>0?Y="default":(t.scrollLeft=1,t.scrollLeft===0&&(Y="negative")),document.body.removeChild(t),Y}function ee(t,e){const r=t.scrollLeft;if(e!=="rtl")return r;switch(At()){case"negative":return t.scrollWidth-t.clientWidth+r;case"reverse":return t.scrollWidth-t.clientWidth-r;default:return r}}function oe(t){return pt("MuiTab",t)}const le=ft("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),A=le,re=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],ne=t=>{const{classes:e,textColor:r,fullWidth:a,wrapped:n,icon:d,label:h,selected:p,disabled:u}=t,m={root:["root",d&&h&&"labelIcon",`textColor${Lt(r)}`,a&&"fullWidth",n&&"wrapped",p&&"selected",u&&"disabled"],iconWrapper:["iconWrapper"]};return St(m,oe,e)},se=O(Pt,{name:"MuiTab",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.label&&r.icon&&e.labelIcon,e[`textColor${Lt(r.textColor)}`],r.fullWidth&&e.fullWidth,r.wrapped&&e.wrapped]}})(({theme:t,ownerState:e})=>b({},t.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},e.label&&{flexDirection:e.iconPosition==="top"||e.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},e.icon&&e.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${A.iconWrapper}`]:b({},e.iconPosition==="top"&&{marginBottom:6},e.iconPosition==="bottom"&&{marginTop:6},e.iconPosition==="start"&&{marginRight:t.spacing(1)},e.iconPosition==="end"&&{marginLeft:t.spacing(1)})},e.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${A.selected}`]:{opacity:1},[`&.${A.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity}},e.textColor==="primary"&&{color:(t.vars||t).palette.text.secondary,[`&.${A.selected}`]:{color:(t.vars||t).palette.primary.main},[`&.${A.disabled}`]:{color:(t.vars||t).palette.text.disabled}},e.textColor==="secondary"&&{color:(t.vars||t).palette.text.secondary,[`&.${A.selected}`]:{color:(t.vars||t).palette.secondary.main},[`&.${A.disabled}`]:{color:(t.vars||t).palette.text.disabled}},e.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},e.wrapped&&{fontSize:t.typography.pxToRem(12)})),ae=c.forwardRef(function(e,r){const a=ht({props:e,name:"MuiTab"}),{className:n,disabled:d=!1,disableFocusRipple:h=!1,fullWidth:p,icon:u,iconPosition:m="top",indicator:w,label:T,onChange:y,onClick:x,onFocus:j,selected:I,selectionFollowsFocus:g,textColor:H="inherit",value:C,wrapped:nt=!1}=a,X=rt(a,re),_=b({},a,{disabled:d,disableFocusRipple:h,selected:I,icon:!!u,iconPosition:m,label:!!T,fullWidth:p,textColor:H,wrapped:nt}),D=ne(_),N=u&&T&&c.isValidElement(u)?c.cloneElement(u,{className:L(D.iconWrapper,u.props.className)}):u,J=R=>{!I&&y&&y(R,C),x&&x(R)},U=R=>{g&&!I&&y&&y(R,C),j&&j(R)};return S.jsxs(se,b({focusRipple:!h,className:L(D.root,n),ref:r,role:"tab","aria-selected":I,disabled:d,onClick:J,onFocus:U,ownerState:_,tabIndex:I?0:-1},X,{children:[m==="top"||m==="start"?S.jsxs(c.Fragment,{children:[N,T]}):S.jsxs(c.Fragment,{children:[T,N]}),w]}))}),ke=ae,ie=Ft(S.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),ce=Ft(S.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function de(t){return(1+Math.sin(Math.PI*t-Math.PI/2))/2}function ue(t,e,r,a={},n=()=>{}){const{ease:d=de,duration:h=300}=a;let p=null;const u=e[t];let m=!1;const w=()=>{m=!0},T=y=>{if(m){n(new Error("Animation cancelled"));return}p===null&&(p=y);const x=Math.min(1,(y-p)/h);if(e[t]=d(x)*(r-u)+u,x>=1){requestAnimationFrame(()=>{n(null)});return}requestAnimationFrame(T)};return u===r?(n(new Error("Element already at target position")),w):(requestAnimationFrame(T),w)}const be=["onChange"],fe={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function pe(t){const{onChange:e}=t,r=rt(t,be),a=c.useRef(),n=c.useRef(null),d=()=>{a.current=n.current.offsetHeight-n.current.clientHeight};return Zt(()=>{const h=$t(()=>{const u=a.current;d(),u!==a.current&&e(a.current)}),p=kt(n.current);return p.addEventListener("resize",h),()=>{h.clear(),p.removeEventListener("resize",h)}},[e]),c.useEffect(()=>{d(),e(a.current)},[e]),S.jsx("div",b({style:fe,ref:n},r))}function he(t){return pt("MuiTabScrollButton",t)}const Se=ft("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),ve=Se,me=["className","slots","slotProps","direction","orientation","disabled"],xe=t=>{const{classes:e,orientation:r,disabled:a}=t;return St({root:["root",r,a&&"disabled"]},he,e)},ge=O(Pt,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.orientation&&e[r.orientation]]}})(({ownerState:t})=>b({width:40,flexShrink:0,opacity:.8,[`&.${ve.disabled}`]:{opacity:0}},t.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${t.isRtl?-90:90}deg)`}})),ye=c.forwardRef(function(e,r){var a,n;const d=ht({props:e,name:"MuiTabScrollButton"}),{className:h,slots:p={},slotProps:u={},direction:m}=d,w=rt(d,me),y=Nt().direction==="rtl",x=b({isRtl:y},d),j=xe(x),I=(a=p.StartScrollButtonIcon)!=null?a:ie,g=(n=p.EndScrollButtonIcon)!=null?n:ce,H=lt({elementType:I,externalSlotProps:u.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:x}),C=lt({elementType:g,externalSlotProps:u.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:x});return S.jsx(ge,b({component:"div",className:L(j.root,h),ref:r,role:null,ownerState:x,tabIndex:null},w,{children:m==="left"?S.jsx(I,b({},H)):S.jsx(g,b({},C))}))}),Ce=ye;function Be(t){return pt("MuiTabs",t)}const we=ft("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),bt=we,Te=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],Rt=(t,e)=>t===e?t.firstChild:e&&e.nextElementSibling?e.nextElementSibling:t.firstChild,zt=(t,e)=>t===e?t.lastChild:e&&e.previousElementSibling?e.previousElementSibling:t.lastChild,ot=(t,e,r)=>{let a=!1,n=r(t,e);for(;n;){if(n===t.firstChild){if(a)return;a=!0}const d=n.disabled||n.getAttribute("aria-disabled")==="true";if(!n.hasAttribute("tabindex")||d)n=r(t,n);else{n.focus();return}}},Ie=t=>{const{vertical:e,fixed:r,hideScrollbar:a,scrollableX:n,scrollableY:d,centered:h,scrollButtonsHideMobile:p,classes:u}=t;return St({root:["root",e&&"vertical"],scroller:["scroller",r&&"fixed",a&&"hideScrollbar",n&&"scrollableX",d&&"scrollableY"],flexContainer:["flexContainer",e&&"flexContainerVertical",h&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",p&&"scrollButtonsHideMobile"],scrollableX:[n&&"scrollableX"],hideScrollbar:[a&&"hideScrollbar"]},Be,u)},Ee=O("div",{name:"MuiTabs",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`& .${bt.scrollButtons}`]:e.scrollButtons},{[`& .${bt.scrollButtons}`]:r.scrollButtonsHideMobile&&e.scrollButtonsHideMobile},e.root,r.vertical&&e.vertical]}})(({ownerState:t,theme:e})=>b({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},t.vertical&&{flexDirection:"column"},t.scrollButtonsHideMobile&&{[`& .${bt.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}})),Me=O("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.scroller,r.fixed&&e.fixed,r.hideScrollbar&&e.hideScrollbar,r.scrollableX&&e.scrollableX,r.scrollableY&&e.scrollableY]}})(({ownerState:t})=>b({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},t.fixed&&{overflowX:"hidden",width:"100%"},t.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},t.scrollableX&&{overflowX:"auto",overflowY:"hidden"},t.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),Re=O("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.flexContainer,r.vertical&&e.flexContainerVertical,r.centered&&e.centered]}})(({ownerState:t})=>b({display:"flex"},t.vertical&&{flexDirection:"column"},t.centered&&{justifyContent:"center"})),ze=O("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(t,e)=>e.indicator})(({ownerState:t,theme:e})=>b({position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create()},t.indicatorColor==="primary"&&{backgroundColor:(e.vars||e).palette.primary.main},t.indicatorColor==="secondary"&&{backgroundColor:(e.vars||e).palette.secondary.main},t.vertical&&{height:"100%",width:2,right:0})),We=O(pe)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),Wt={},Pe=c.forwardRef(function(e,r){const a=ht({props:e,name:"MuiTabs"}),n=Nt(),d=n.direction==="rtl",{"aria-label":h,"aria-labelledby":p,action:u,centered:m=!1,children:w,className:T,component:y="div",allowScrollButtonsMobile:x=!1,indicatorColor:j="primary",onChange:I,orientation:g="horizontal",ScrollButtonComponent:H=Ce,scrollButtons:C="auto",selectionFollowsFocus:nt,slots:X={},slotProps:_={},TabIndicatorProps:D={},TabScrollButtonProps:N={},textColor:J="primary",value:U,variant:R="standard",visibleScrollbar:st=!1}=a,Ot=rt(a,Te),E=R==="scrollable",B=g==="vertical",V=B?"scrollTop":"scrollLeft",Q=B?"top":"left",Z=B?"bottom":"right",at=B?"clientHeight":"clientWidth",K=B?"height":"width",$=b({},a,{component:y,allowScrollButtonsMobile:x,indicatorColor:j,orientation:g,vertical:B,scrollButtons:C,textColor:J,variant:R,visibleScrollbar:st,fixed:!E,hideScrollbar:E&&!st,scrollableX:E&&!B,scrollableY:E&&B,centered:m&&!E,scrollButtonsHideMobile:!x}),W=Ie($),jt=lt({elementType:X.StartScrollButtonIcon,externalSlotProps:_.startScrollButtonIcon,ownerState:$}),Ht=lt({elementType:X.EndScrollButtonIcon,externalSlotProps:_.endScrollButtonIcon,ownerState:$}),[vt,Xt]=c.useState(!1),[k,mt]=c.useState(Wt),[xt,Dt]=c.useState(!1),[gt,Ut]=c.useState(!1),[yt,Yt]=c.useState(!1),[Ct,_t]=c.useState({overflow:"hidden",scrollbarWidth:0}),Bt=new Map,z=c.useRef(null),F=c.useRef(null),wt=()=>{const o=z.current;let l;if(o){const s=o.getBoundingClientRect();l={clientWidth:o.clientWidth,scrollLeft:o.scrollLeft,scrollTop:o.scrollTop,scrollLeftNormalized:ee(o,n.direction),scrollWidth:o.scrollWidth,top:s.top,bottom:s.bottom,left:s.left,right:s.right}}let i;if(o&&U!==!1){const s=F.current.children;if(s.length>0){const f=s[Bt.get(U)];i=f?f.getBoundingClientRect():null}}return{tabsMeta:l,tabMeta:i}},q=ut(()=>{const{tabsMeta:o,tabMeta:l}=wt();let i=0,s;if(B)s="top",l&&o&&(i=l.top-o.top+o.scrollTop);else if(s=d?"right":"left",l&&o){const v=d?o.scrollLeftNormalized+o.clientWidth-o.scrollWidth:o.scrollLeft;i=(d?-1:1)*(l[s]-o[s]+v)}const f={[s]:i,[K]:l?l[K]:0};if(isNaN(k[s])||isNaN(k[K]))mt(f);else{const v=Math.abs(k[s]-f[s]),M=Math.abs(k[K]-f[K]);(v>=1||M>=1)&&mt(f)}}),it=(o,{animation:l=!0}={})=>{l?ue(V,z.current,o,{duration:n.transitions.duration.standard}):z.current[V]=o},Tt=o=>{let l=z.current[V];B?l+=o:(l+=o*(d?-1:1),l*=d&&At()==="reverse"?-1:1),it(l)},It=()=>{const o=z.current[at];let l=0;const i=Array.from(F.current.children);for(let s=0;so){s===0&&(l=o);break}l+=f[at]}return l},Vt=()=>{Tt(-1*It())},Kt=()=>{Tt(It())},qt=c.useCallback(o=>{_t({overflow:null,scrollbarWidth:o})},[]),Gt=()=>{const o={};o.scrollbarSizeListener=E?S.jsx(We,{onChange:qt,className:L(W.scrollableX,W.hideScrollbar)}):null;const i=E&&(C==="auto"&&(xt||gt)||C===!0);return o.scrollButtonStart=i?S.jsx(H,b({slots:{StartScrollButtonIcon:X.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:jt},orientation:g,direction:d?"right":"left",onClick:Vt,disabled:!xt},N,{className:L(W.scrollButtons,N.className)})):null,o.scrollButtonEnd=i?S.jsx(H,b({slots:{EndScrollButtonIcon:X.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:Ht},orientation:g,direction:d?"left":"right",onClick:Kt,disabled:!gt},N,{className:L(W.scrollButtons,N.className)})):null,o},Et=ut(o=>{const{tabsMeta:l,tabMeta:i}=wt();if(!(!i||!l)){if(i[Q]l[Z]){const s=l[V]+(i[Z]-l[Z]);it(s,{animation:o})}}}),tt=ut(()=>{E&&C!==!1&&Yt(!yt)});c.useEffect(()=>{const o=$t(()=>{z.current&&q()});let l;const i=v=>{v.forEach(M=>{M.removedNodes.forEach(G=>{var P;(P=l)==null||P.unobserve(G)}),M.addedNodes.forEach(G=>{var P;(P=l)==null||P.observe(G)})}),o(),tt()},s=kt(z.current);s.addEventListener("resize",o);let f;return typeof ResizeObserver<"u"&&(l=new ResizeObserver(o),Array.from(F.current.children).forEach(v=>{l.observe(v)})),typeof MutationObserver<"u"&&(f=new MutationObserver(i),f.observe(F.current,{childList:!0})),()=>{var v,M;o.clear(),s.removeEventListener("resize",o),(v=f)==null||v.disconnect(),(M=l)==null||M.disconnect()}},[q,tt]),c.useEffect(()=>{const o=Array.from(F.current.children),l=o.length;if(typeof IntersectionObserver<"u"&&l>0&&E&&C!==!1){const i=o[0],s=o[l-1],f={root:z.current,threshold:.99},v=dt=>{Dt(!dt[0].isIntersecting)},M=new IntersectionObserver(v,f);M.observe(i);const G=dt=>{Ut(!dt[0].isIntersecting)},P=new IntersectionObserver(G,f);return P.observe(s),()=>{M.disconnect(),P.disconnect()}}},[E,C,yt,w==null?void 0:w.length]),c.useEffect(()=>{Xt(!0)},[]),c.useEffect(()=>{q()}),c.useEffect(()=>{Et(Wt!==k)},[Et,k]),c.useImperativeHandle(u,()=>({updateIndicator:q,updateScrollButtons:tt}),[q,tt]);const Mt=S.jsx(ze,b({},D,{className:L(W.indicator,D.className),ownerState:$,style:b({},k,D.style)}));let et=0;const Jt=c.Children.map(w,o=>{if(!c.isValidElement(o))return null;const l=o.props.value===void 0?et:o.props.value;Bt.set(l,et);const i=l===U;return et+=1,c.cloneElement(o,b({fullWidth:R==="fullWidth",indicator:i&&!vt&&Mt,selected:i,selectionFollowsFocus:nt,onChange:I,textColor:J,value:l},et===1&&U===!1&&!o.props.tabIndex?{tabIndex:0}:{}))}),Qt=o=>{const l=F.current,i=te(l).activeElement;if(i.getAttribute("role")!=="tab")return;let f=g==="horizontal"?"ArrowLeft":"ArrowUp",v=g==="horizontal"?"ArrowRight":"ArrowDown";switch(g==="horizontal"&&d&&(f="ArrowRight",v="ArrowLeft"),o.key){case f:o.preventDefault(),ot(l,i,zt);break;case v:o.preventDefault(),ot(l,i,Rt);break;case"Home":o.preventDefault(),ot(l,null,Rt);break;case"End":o.preventDefault(),ot(l,null,zt);break}},ct=Gt();return S.jsxs(Ee,b({className:L(W.root,T),ownerState:$,ref:r,as:y},Ot,{children:[ct.scrollButtonStart,ct.scrollbarSizeListener,S.jsxs(Me,{className:W.scroller,ownerState:$,style:{overflow:Ct.overflow,[B?`margin${d?"Left":"Right"}`:"marginBottom"]:st?void 0:-Ct.scrollbarWidth},ref:z,children:[S.jsx(Re,{"aria-label":h,"aria-labelledby":p,"aria-orientation":g==="vertical"?"vertical":null,className:W.flexContainer,ownerState:$,onKeyDown:Qt,ref:F,role:"tablist",children:Jt}),vt&&Mt]}),ct.scrollButtonEnd]}))}),Fe=Pe;export{Fe as T,ke as a}; diff --git a/build/assets/TextareaAutosize-e8dfc0e6.js b/build/assets/TextareaAutosize-387bd327.js similarity index 97% rename from build/assets/TextareaAutosize-e8dfc0e6.js rename to build/assets/TextareaAutosize-387bd327.js index afc096d56..bd609faf2 100644 --- a/build/assets/TextareaAutosize-e8dfc0e6.js +++ b/build/assets/TextareaAutosize-387bd327.js @@ -1,2 +1,2 @@ -import{r as o,H as _,Z as I,$ as T,j as v,x as b,a1 as U}from"./index-3506c528.js";import{L as F,U as Z}from"./index-ccbb14cf.js";const D=["onChange","maxRows","minRows","style","value"];function m(r){return parseInt(r,10)||0}const P={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function M(r){return r==null||Object.keys(r).length===0||r.outerHeightStyle===0&&!r.overflow}const q=o.forwardRef(function(l,O){const{onChange:R,maxRows:x,minRows:h=1,style:S,value:y}=l,k=_(l,D),{current:A}=o.useRef(y!=null),p=o.useRef(null),L=I(O,p),H=o.useRef(null),c=o.useRef(0),[z,E]=o.useState({outerHeightStyle:0}),f=o.useCallback(()=>{const e=p.current,n=F(e).getComputedStyle(e);if(n.width==="0px")return{outerHeightStyle:0};const t=H.current;t.style.width=n.width,t.value=e.value||l.placeholder||"x",t.value.slice(-1)===` +import{r as o,H as _,Z as I,$ as T,j as v,x as b,a1 as U}from"./index-6541aa03.js";import{L as F,U as Z}from"./index-ad617d4b.js";const D=["onChange","maxRows","minRows","style","value"];function m(r){return parseInt(r,10)||0}const P={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function M(r){return r==null||Object.keys(r).length===0||r.outerHeightStyle===0&&!r.overflow}const q=o.forwardRef(function(l,O){const{onChange:R,maxRows:x,minRows:h=1,style:S,value:y}=l,k=_(l,D),{current:A}=o.useRef(y!=null),p=o.useRef(null),L=I(O,p),H=o.useRef(null),c=o.useRef(0),[z,E]=o.useState({outerHeightStyle:0}),f=o.useCallback(()=>{const e=p.current,n=F(e).getComputedStyle(e);if(n.width==="0px")return{outerHeightStyle:0};const t=H.current;t.style.width=n.width,t.value=e.value||l.placeholder||"x",t.value.slice(-1)===` `&&(t.value+=" ");const g=n.boxSizing,w=m(n.paddingBottom)+m(n.paddingTop),a=m(n.borderBottomWidth)+m(n.borderTopWidth),u=t.scrollHeight;t.value="x";const d=t.scrollHeight;let s=u;h&&(s=Math.max(Number(h)*d,s)),x&&(s=Math.min(Number(x)*d,s)),s=Math.max(s,d);const j=s+(g==="border-box"?w+a:0),B=Math.abs(s-u)<=1;return{outerHeightStyle:j,overflow:B}},[x,h,l.placeholder]),C=(e,i)=>{const{outerHeightStyle:n,overflow:t}=i;return c.current<20&&(n>0&&Math.abs((e.outerHeightStyle||0)-n)>1||e.overflow!==t)?(c.current+=1,{overflow:t,outerHeightStyle:n}):e},W=o.useCallback(()=>{const e=f();M(e)||E(i=>C(i,e))},[f]);T(()=>{const e=()=>{const u=f();M(u)||U.flushSync(()=>{E(d=>C(d,u))})},i=()=>{c.current=0,e()};let n;const t=Z(i),g=p.current,w=F(g);w.addEventListener("resize",t);let a;return typeof ResizeObserver<"u"&&(a=new ResizeObserver(i),a.observe(g)),()=>{t.clear(),cancelAnimationFrame(n),w.removeEventListener("resize",t),a&&a.disconnect()}},[f]),T(()=>{W()}),o.useEffect(()=>{c.current=0},[y]);const N=e=>{c.current=0,A||W(),R&&R(e)};return v.jsxs(o.Fragment,{children:[v.jsx("textarea",b({value:y,onChange:N,ref:L,rows:h,style:b({height:z.outerHeightStyle,overflow:z.overflow?"hidden":void 0},S)},k)),v.jsx("textarea",{"aria-hidden":!0,className:l.className,readOnly:!0,ref:H,tabIndex:-1,style:b({},P.shadow,S,{paddingTop:0,paddingBottom:0})})]})});export{q as T}; diff --git a/build/assets/Twitch-b178bb35.js b/build/assets/Twitch-d70c87c7.js similarity index 95% rename from build/assets/Twitch-b178bb35.js rename to build/assets/Twitch-d70c87c7.js index e0533ffb0..fe978cb51 100644 --- a/build/assets/Twitch-b178bb35.js +++ b/build/assets/Twitch-d70c87c7.js @@ -1 +1 @@ -import{a9 as w,r as D}from"./index-3506c528.js";import{u as C,p as N}from"./index-44c74031.js";function I(t,e){for(var r=0;rs[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var S=Object.create,l=Object.defineProperty,j=Object.getOwnPropertyDescriptor,A=Object.getOwnPropertyNames,M=Object.getPrototypeOf,H=Object.prototype.hasOwnProperty,R=(t,e,r)=>e in t?l(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,x=(t,e)=>{for(var r in e)l(t,r,{get:e[r],enumerable:!0})},_=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of A(e))!H.call(t,a)&&a!==r&&l(t,a,{get:()=>e[a],enumerable:!(s=j(e,a))||s.enumerable});return t},F=(t,e,r)=>(r=t!=null?S(M(t)):{},_(e||!t||!t.__esModule?l(r,"default",{value:t,enumerable:!0}):r,t)),U=t=>_(l({},"__esModule",{value:!0}),t),o=(t,e,r)=>(R(t,typeof e!="symbol"?e+"":e,r),r),P={};x(P,{default:()=>h});var f=U(P),d=F(D),c=C,u=N;const K="https://player.twitch.tv/js/embed/v1.js",V="Twitch",$="twitch-player-";class h extends d.Component{constructor(){super(...arguments),o(this,"callPlayer",c.callPlayer),o(this,"playerID",this.props.config.playerId||`${$}${(0,c.randomString)()}`),o(this,"mute",()=>{this.callPlayer("setMuted",!0)}),o(this,"unmute",()=>{this.callPlayer("setMuted",!1)})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e,r){const{playsinline:s,onError:a,config:n,controls:v}=this.props,i=u.MATCH_URL_TWITCH_CHANNEL.test(e),p=i?e.match(u.MATCH_URL_TWITCH_CHANNEL)[1]:e.match(u.MATCH_URL_TWITCH_VIDEO)[1];if(r){i?this.player.setChannel(p):this.player.setVideo("v"+p);return}(0,c.getSDK)(K,V).then(y=>{this.player=new y.Player(this.playerID,{video:i?"":p,channel:i?p:"",height:"100%",width:"100%",playsinline:s,autoplay:this.props.playing,muted:this.props.muted,controls:i?!0:v,time:(0,c.parseStartTime)(e),...n.options});const{READY:m,PLAYING:g,PAUSE:E,ENDED:O,ONLINE:L,OFFLINE:b,SEEK:T}=y.Player;this.player.addEventListener(m,this.props.onReady),this.player.addEventListener(g,this.props.onPlay),this.player.addEventListener(E,this.props.onPause),this.player.addEventListener(O,this.props.onEnded),this.player.addEventListener(T,this.props.onSeek),this.player.addEventListener(L,this.props.onLoaded),this.player.addEventListener(b,this.props.onLoaded)},a)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){this.callPlayer("pause")}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}getDuration(){return this.callPlayer("getDuration")}getCurrentTime(){return this.callPlayer("getCurrentTime")}getSecondsLoaded(){return null}render(){const e={width:"100%",height:"100%"};return d.default.createElement("div",{style:e,id:this.playerID})}}o(h,"displayName","Twitch");o(h,"canPlay",u.canPlay.twitch);o(h,"loopOnEnded",!0);const W=w(f),k=I({__proto__:null,default:W},[f]);export{k as T}; +import{a9 as w,r as D}from"./index-6541aa03.js";import{u as C,p as N}from"./index-0c54fe39.js";function I(t,e){for(var r=0;rs[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var S=Object.create,l=Object.defineProperty,j=Object.getOwnPropertyDescriptor,A=Object.getOwnPropertyNames,M=Object.getPrototypeOf,H=Object.prototype.hasOwnProperty,R=(t,e,r)=>e in t?l(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,x=(t,e)=>{for(var r in e)l(t,r,{get:e[r],enumerable:!0})},_=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of A(e))!H.call(t,a)&&a!==r&&l(t,a,{get:()=>e[a],enumerable:!(s=j(e,a))||s.enumerable});return t},F=(t,e,r)=>(r=t!=null?S(M(t)):{},_(e||!t||!t.__esModule?l(r,"default",{value:t,enumerable:!0}):r,t)),U=t=>_(l({},"__esModule",{value:!0}),t),o=(t,e,r)=>(R(t,typeof e!="symbol"?e+"":e,r),r),P={};x(P,{default:()=>h});var f=U(P),d=F(D),c=C,u=N;const K="https://player.twitch.tv/js/embed/v1.js",V="Twitch",$="twitch-player-";class h extends d.Component{constructor(){super(...arguments),o(this,"callPlayer",c.callPlayer),o(this,"playerID",this.props.config.playerId||`${$}${(0,c.randomString)()}`),o(this,"mute",()=>{this.callPlayer("setMuted",!0)}),o(this,"unmute",()=>{this.callPlayer("setMuted",!1)})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e,r){const{playsinline:s,onError:a,config:n,controls:v}=this.props,i=u.MATCH_URL_TWITCH_CHANNEL.test(e),p=i?e.match(u.MATCH_URL_TWITCH_CHANNEL)[1]:e.match(u.MATCH_URL_TWITCH_VIDEO)[1];if(r){i?this.player.setChannel(p):this.player.setVideo("v"+p);return}(0,c.getSDK)(K,V).then(y=>{this.player=new y.Player(this.playerID,{video:i?"":p,channel:i?p:"",height:"100%",width:"100%",playsinline:s,autoplay:this.props.playing,muted:this.props.muted,controls:i?!0:v,time:(0,c.parseStartTime)(e),...n.options});const{READY:m,PLAYING:g,PAUSE:E,ENDED:O,ONLINE:L,OFFLINE:b,SEEK:T}=y.Player;this.player.addEventListener(m,this.props.onReady),this.player.addEventListener(g,this.props.onPlay),this.player.addEventListener(E,this.props.onPause),this.player.addEventListener(O,this.props.onEnded),this.player.addEventListener(T,this.props.onSeek),this.player.addEventListener(L,this.props.onLoaded),this.player.addEventListener(b,this.props.onLoaded)},a)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){this.callPlayer("pause")}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}getDuration(){return this.callPlayer("getDuration")}getCurrentTime(){return this.callPlayer("getCurrentTime")}getSecondsLoaded(){return null}render(){const e={width:"100%",height:"100%"};return d.default.createElement("div",{style:e,id:this.playerID})}}o(h,"displayName","Twitch");o(h,"canPlay",u.canPlay.twitch);o(h,"loopOnEnded",!0);const W=w(f),k=I({__proto__:null,default:W},[f]);export{k as T}; diff --git a/build/assets/Typography-7897fa03.js b/build/assets/Typography-0c02c7d4.js similarity index 93% rename from build/assets/Typography-7897fa03.js rename to build/assets/Typography-0c02c7d4.js index 754b4b342..17f35a364 100644 --- a/build/assets/Typography-7897fa03.js +++ b/build/assets/Typography-0c02c7d4.js @@ -1 +1 @@ -import{L as b,M as B,O as W,Y as u,x as s,r as C,S as M,H as R,j as P,U,V as j}from"./index-3506c528.js";import{e as L}from"./Stack-7521353f.js";function N(a){return b("MuiTypography",a)}B("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const _=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],$=a=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:e,variant:o,classes:p}=a,i={root:["root",o,a.align!=="inherit"&&`align${u(t)}`,r&&"gutterBottom",n&&"noWrap",e&&"paragraph"]};return j(i,N,p)},E=W("span",{name:"MuiTypography",slot:"Root",overridesResolver:(a,t)=>{const{ownerState:r}=a;return[t.root,r.variant&&t[r.variant],r.align!=="inherit"&&t[`align${u(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(({theme:a,ownerState:t})=>s({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&a.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),y={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},O={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},V=a=>O[a]||a,z=C.forwardRef(function(t,r){const n=M({props:t,name:"MuiTypography"}),e=V(n.color),o=L(s({},n,{color:e})),{align:p="inherit",className:i,component:g,gutterBottom:d=!1,noWrap:f=!1,paragraph:l=!1,variant:h="body1",variantMapping:c=y}=o,x=R(o,_),m=s({},o,{align:p,color:e,className:i,component:g,gutterBottom:d,noWrap:f,paragraph:l,variant:h,variantMapping:c}),v=g||(l?"p":c[h]||y[h])||"span",T=$(m);return P.jsx(E,s({as:v,ref:r,ownerState:m,className:U(T.root,i)},x))}),H=z;export{H as T}; +import{L as b,M as B,O as W,Y as u,x as s,r as C,S as M,H as R,j as P,U,V as j}from"./index-6541aa03.js";import{e as L}from"./Stack-bcf44d60.js";function N(a){return b("MuiTypography",a)}B("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const _=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],$=a=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:e,variant:o,classes:p}=a,i={root:["root",o,a.align!=="inherit"&&`align${u(t)}`,r&&"gutterBottom",n&&"noWrap",e&&"paragraph"]};return j(i,N,p)},E=W("span",{name:"MuiTypography",slot:"Root",overridesResolver:(a,t)=>{const{ownerState:r}=a;return[t.root,r.variant&&t[r.variant],r.align!=="inherit"&&t[`align${u(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(({theme:a,ownerState:t})=>s({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&a.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),y={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},O={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},V=a=>O[a]||a,z=C.forwardRef(function(t,r){const n=M({props:t,name:"MuiTypography"}),e=V(n.color),o=L(s({},n,{color:e})),{align:p="inherit",className:i,component:g,gutterBottom:d=!1,noWrap:f=!1,paragraph:l=!1,variant:h="body1",variantMapping:c=y}=o,x=R(o,_),m=s({},o,{align:p,color:e,className:i,component:g,gutterBottom:d,noWrap:f,paragraph:l,variant:h,variantMapping:c}),v=g||(l?"p":c[h]||y[h])||"span",T=$(m);return P.jsx(E,s({as:v,ref:r,ownerState:m,className:U(T.root,i)},x))}),H=z;export{H as T}; diff --git a/build/assets/Vidyard-413113c0.js b/build/assets/Vidyard-4e36f297.js similarity index 95% rename from build/assets/Vidyard-413113c0.js rename to build/assets/Vidyard-4e36f297.js index 3b01b011f..e161d3088 100644 --- a/build/assets/Vidyard-413113c0.js +++ b/build/assets/Vidyard-4e36f297.js @@ -1 +1 @@ -import{a9 as g,r as v}from"./index-3506c528.js";import{u as b,p as O}from"./index-44c74031.js";function V(t,e){for(var r=0;ro[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var D=Object.create,i=Object.defineProperty,j=Object.getOwnPropertyDescriptor,w=Object.getOwnPropertyNames,S=Object.getPrototypeOf,M=Object.prototype.hasOwnProperty,A=(t,e,r)=>e in t?i(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,E=(t,e)=>{for(var r in e)i(t,r,{get:e[r],enumerable:!0})},h=(t,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of w(e))!M.call(t,a)&&a!==r&&i(t,a,{get:()=>e[a],enumerable:!(o=j(e,a))||o.enumerable});return t},L=(t,e,r)=>(r=t!=null?D(S(t)):{},h(e||!t||!t.__esModule?i(r,"default",{value:t,enumerable:!0}):r,t)),R=t=>h(i({},"__esModule",{value:!0}),t),s=(t,e,r)=>(A(t,typeof e!="symbol"?e+"":e,r),r),_={};E(_,{default:()=>y});var f=R(_),c=L(v),d=b,P=O;const x="https://play.vidyard.com/embed/v4.js",C="VidyardV4",N="onVidyardAPI";class y extends c.Component{constructor(){super(...arguments),s(this,"callPlayer",d.callPlayer),s(this,"mute",()=>{this.setVolume(0)}),s(this,"unmute",()=>{this.props.volume!==null&&this.setVolume(this.props.volume)}),s(this,"ref",e=>{this.container=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){const{playing:r,config:o,onError:a,onDuration:n}=this.props,l=e&&e.match(P.MATCH_URL_VIDYARD)[1];this.player&&this.stop(),(0,d.getSDK)(x,C,N).then(p=>{this.container&&(p.api.addReadyListener((u,m)=>{this.player||(this.player=m,this.player.on("ready",this.props.onReady),this.player.on("play",this.props.onPlay),this.player.on("pause",this.props.onPause),this.player.on("seek",this.props.onSeek),this.player.on("playerComplete",this.props.onEnded))},l),p.api.renderPlayer({uuid:l,container:this.container,autoplay:r?1:0,...o.options}),p.api.getPlayerMetadata(l).then(u=>{this.duration=u.length_in_seconds,n(u.length_in_seconds)}))},a)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){window.VidyardV4.api.destroyPlayer(this.player)}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}setPlaybackRate(e){this.callPlayer("setPlaybackSpeed",e)}getDuration(){return this.duration}getCurrentTime(){return this.callPlayer("currentTime")}getSecondsLoaded(){return null}render(){const{display:e}=this.props,r={width:"100%",height:"100%",display:e};return c.default.createElement("div",{style:r},c.default.createElement("div",{ref:this.ref}))}}s(y,"displayName","Vidyard");s(y,"canPlay",P.canPlay.vidyard);const T=g(f),B=V({__proto__:null,default:T},[f]);export{B as V}; +import{a9 as g,r as v}from"./index-6541aa03.js";import{u as b,p as O}from"./index-0c54fe39.js";function V(t,e){for(var r=0;ro[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var D=Object.create,i=Object.defineProperty,j=Object.getOwnPropertyDescriptor,w=Object.getOwnPropertyNames,S=Object.getPrototypeOf,M=Object.prototype.hasOwnProperty,A=(t,e,r)=>e in t?i(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,E=(t,e)=>{for(var r in e)i(t,r,{get:e[r],enumerable:!0})},h=(t,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of w(e))!M.call(t,a)&&a!==r&&i(t,a,{get:()=>e[a],enumerable:!(o=j(e,a))||o.enumerable});return t},L=(t,e,r)=>(r=t!=null?D(S(t)):{},h(e||!t||!t.__esModule?i(r,"default",{value:t,enumerable:!0}):r,t)),R=t=>h(i({},"__esModule",{value:!0}),t),s=(t,e,r)=>(A(t,typeof e!="symbol"?e+"":e,r),r),_={};E(_,{default:()=>y});var f=R(_),c=L(v),d=b,P=O;const x="https://play.vidyard.com/embed/v4.js",C="VidyardV4",N="onVidyardAPI";class y extends c.Component{constructor(){super(...arguments),s(this,"callPlayer",d.callPlayer),s(this,"mute",()=>{this.setVolume(0)}),s(this,"unmute",()=>{this.props.volume!==null&&this.setVolume(this.props.volume)}),s(this,"ref",e=>{this.container=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){const{playing:r,config:o,onError:a,onDuration:n}=this.props,l=e&&e.match(P.MATCH_URL_VIDYARD)[1];this.player&&this.stop(),(0,d.getSDK)(x,C,N).then(p=>{this.container&&(p.api.addReadyListener((u,m)=>{this.player||(this.player=m,this.player.on("ready",this.props.onReady),this.player.on("play",this.props.onPlay),this.player.on("pause",this.props.onPause),this.player.on("seek",this.props.onSeek),this.player.on("playerComplete",this.props.onEnded))},l),p.api.renderPlayer({uuid:l,container:this.container,autoplay:r?1:0,...o.options}),p.api.getPlayerMetadata(l).then(u=>{this.duration=u.length_in_seconds,n(u.length_in_seconds)}))},a)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){window.VidyardV4.api.destroyPlayer(this.player)}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}setPlaybackRate(e){this.callPlayer("setPlaybackSpeed",e)}getDuration(){return this.duration}getCurrentTime(){return this.callPlayer("currentTime")}getSecondsLoaded(){return null}render(){const{display:e}=this.props,r={width:"100%",height:"100%",display:e};return c.default.createElement("div",{style:r},c.default.createElement("div",{ref:this.ref}))}}s(y,"displayName","Vidyard");s(y,"canPlay",P.canPlay.vidyard);const T=g(f),B=V({__proto__:null,default:T},[f]);export{B as V}; diff --git a/build/assets/Vimeo-b6da464c.js b/build/assets/Vimeo-4ecba9a4.js similarity index 96% rename from build/assets/Vimeo-b6da464c.js rename to build/assets/Vimeo-4ecba9a4.js index 925504db2..81d1520ef 100644 --- a/build/assets/Vimeo-b6da464c.js +++ b/build/assets/Vimeo-4ecba9a4.js @@ -1 +1 @@ -import{a9 as d,r as f}from"./index-3506c528.js";import{u as m,p as _}from"./index-44c74031.js";function P(t,e){for(var r=0;ra[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var g=Object.create,n=Object.defineProperty,b=Object.getOwnPropertyDescriptor,v=Object.getOwnPropertyNames,O=Object.getPrototypeOf,D=Object.prototype.hasOwnProperty,w=(t,e,r)=>e in t?n(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,j=(t,e)=>{for(var r in e)n(t,r,{get:e[r],enumerable:!0})},h=(t,e,r,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of v(e))!D.call(t,o)&&o!==r&&n(t,o,{get:()=>e[o],enumerable:!(a=b(e,o))||a.enumerable});return t},M=(t,e,r)=>(r=t!=null?g(O(t)):{},h(e||!t||!t.__esModule?n(r,"default",{value:t,enumerable:!0}):r,t)),E=t=>h(n({},"__esModule",{value:!0}),t),i=(t,e,r)=>(w(t,typeof e!="symbol"?e+"":e,r),r),c={};j(c,{default:()=>l});var y=E(c),p=M(f),u=m,L=_;const S="https://player.vimeo.com/api/player.js",V="Vimeo",k=t=>t.replace("/manage/videos","");class l extends p.Component{constructor(){super(...arguments),i(this,"callPlayer",u.callPlayer),i(this,"duration",null),i(this,"currentTime",null),i(this,"secondsLoaded",null),i(this,"mute",()=>{this.setMuted(!0)}),i(this,"unmute",()=>{this.setMuted(!1)}),i(this,"ref",e=>{this.container=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){this.duration=null,(0,u.getSDK)(S,V).then(r=>{if(!this.container)return;const{playerOptions:a,title:o}=this.props.config;this.player=new r.Player(this.container,{url:k(e),autoplay:this.props.playing,muted:this.props.muted,loop:this.props.loop,playsinline:this.props.playsinline,controls:this.props.controls,...a}),this.player.ready().then(()=>{const s=this.container.querySelector("iframe");s.style.width="100%",s.style.height="100%",o&&(s.title=o)}).catch(this.props.onError),this.player.on("loaded",()=>{this.props.onReady(),this.refreshDuration()}),this.player.on("play",()=>{this.props.onPlay(),this.refreshDuration()}),this.player.on("pause",this.props.onPause),this.player.on("seeked",s=>this.props.onSeek(s.seconds)),this.player.on("ended",this.props.onEnded),this.player.on("error",this.props.onError),this.player.on("timeupdate",({seconds:s})=>{this.currentTime=s}),this.player.on("progress",({seconds:s})=>{this.secondsLoaded=s}),this.player.on("bufferstart",this.props.onBuffer),this.player.on("bufferend",this.props.onBufferEnd),this.player.on("playbackratechange",s=>this.props.onPlaybackRateChange(s.playbackRate))},this.props.onError)}refreshDuration(){this.player.getDuration().then(e=>{this.duration=e})}play(){const e=this.callPlayer("play");e&&e.catch(this.props.onError)}pause(){this.callPlayer("pause")}stop(){this.callPlayer("unload")}seekTo(e,r=!0){this.callPlayer("setCurrentTime",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}setMuted(e){this.callPlayer("setMuted",e)}setLoop(e){this.callPlayer("setLoop",e)}setPlaybackRate(e){this.callPlayer("setPlaybackRate",e)}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return this.secondsLoaded}render(){const{display:e}=this.props,r={width:"100%",height:"100%",overflow:"hidden",display:e};return p.default.createElement("div",{key:this.props.url,ref:this.ref,style:r})}}i(l,"displayName","Vimeo");i(l,"canPlay",L.canPlay.vimeo);i(l,"forceLoad",!0);const T=d(y),R=P({__proto__:null,default:T},[y]);export{R as V}; +import{a9 as d,r as f}from"./index-6541aa03.js";import{u as m,p as _}from"./index-0c54fe39.js";function P(t,e){for(var r=0;ra[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var g=Object.create,n=Object.defineProperty,b=Object.getOwnPropertyDescriptor,v=Object.getOwnPropertyNames,O=Object.getPrototypeOf,D=Object.prototype.hasOwnProperty,w=(t,e,r)=>e in t?n(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,j=(t,e)=>{for(var r in e)n(t,r,{get:e[r],enumerable:!0})},h=(t,e,r,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of v(e))!D.call(t,o)&&o!==r&&n(t,o,{get:()=>e[o],enumerable:!(a=b(e,o))||a.enumerable});return t},M=(t,e,r)=>(r=t!=null?g(O(t)):{},h(e||!t||!t.__esModule?n(r,"default",{value:t,enumerable:!0}):r,t)),E=t=>h(n({},"__esModule",{value:!0}),t),i=(t,e,r)=>(w(t,typeof e!="symbol"?e+"":e,r),r),c={};j(c,{default:()=>l});var y=E(c),p=M(f),u=m,L=_;const S="https://player.vimeo.com/api/player.js",V="Vimeo",k=t=>t.replace("/manage/videos","");class l extends p.Component{constructor(){super(...arguments),i(this,"callPlayer",u.callPlayer),i(this,"duration",null),i(this,"currentTime",null),i(this,"secondsLoaded",null),i(this,"mute",()=>{this.setMuted(!0)}),i(this,"unmute",()=>{this.setMuted(!1)}),i(this,"ref",e=>{this.container=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){this.duration=null,(0,u.getSDK)(S,V).then(r=>{if(!this.container)return;const{playerOptions:a,title:o}=this.props.config;this.player=new r.Player(this.container,{url:k(e),autoplay:this.props.playing,muted:this.props.muted,loop:this.props.loop,playsinline:this.props.playsinline,controls:this.props.controls,...a}),this.player.ready().then(()=>{const s=this.container.querySelector("iframe");s.style.width="100%",s.style.height="100%",o&&(s.title=o)}).catch(this.props.onError),this.player.on("loaded",()=>{this.props.onReady(),this.refreshDuration()}),this.player.on("play",()=>{this.props.onPlay(),this.refreshDuration()}),this.player.on("pause",this.props.onPause),this.player.on("seeked",s=>this.props.onSeek(s.seconds)),this.player.on("ended",this.props.onEnded),this.player.on("error",this.props.onError),this.player.on("timeupdate",({seconds:s})=>{this.currentTime=s}),this.player.on("progress",({seconds:s})=>{this.secondsLoaded=s}),this.player.on("bufferstart",this.props.onBuffer),this.player.on("bufferend",this.props.onBufferEnd),this.player.on("playbackratechange",s=>this.props.onPlaybackRateChange(s.playbackRate))},this.props.onError)}refreshDuration(){this.player.getDuration().then(e=>{this.duration=e})}play(){const e=this.callPlayer("play");e&&e.catch(this.props.onError)}pause(){this.callPlayer("pause")}stop(){this.callPlayer("unload")}seekTo(e,r=!0){this.callPlayer("setCurrentTime",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}setMuted(e){this.callPlayer("setMuted",e)}setLoop(e){this.callPlayer("setLoop",e)}setPlaybackRate(e){this.callPlayer("setPlaybackRate",e)}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return this.secondsLoaded}render(){const{display:e}=this.props,r={width:"100%",height:"100%",overflow:"hidden",display:e};return p.default.createElement("div",{key:this.props.url,ref:this.ref,style:r})}}i(l,"displayName","Vimeo");i(l,"canPlay",L.canPlay.vimeo);i(l,"forceLoad",!0);const T=d(y),R=P({__proto__:null,default:T},[y]);export{R as V}; diff --git a/build/assets/Wistia-0c12bdf7.js b/build/assets/Wistia-5701c088.js similarity index 96% rename from build/assets/Wistia-0c12bdf7.js rename to build/assets/Wistia-5701c088.js index 2df227d9e..3fd7da946 100644 --- a/build/assets/Wistia-0c12bdf7.js +++ b/build/assets/Wistia-5701c088.js @@ -1 +1 @@ -import{a9 as m,r as g}from"./index-3506c528.js";import{u as v,p as w}from"./index-44c74031.js";function O(t,e){for(var a=0;as[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var C=Object.create,i=Object.defineProperty,k=Object.getOwnPropertyDescriptor,D=Object.getOwnPropertyNames,E=Object.getPrototypeOf,S=Object.prototype.hasOwnProperty,R=(t,e,a)=>e in t?i(t,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[e]=a,j=(t,e)=>{for(var a in e)i(t,a,{get:e[a],enumerable:!0})},h=(t,e,a,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of D(e))!S.call(t,r)&&r!==a&&i(t,r,{get:()=>e[r],enumerable:!(s=k(e,r))||s.enumerable});return t},I=(t,e,a)=>(a=t!=null?C(E(t)):{},h(e||!t||!t.__esModule?i(a,"default",{value:t,enumerable:!0}):a,t)),W=t=>h(i({},"__esModule",{value:!0}),t),n=(t,e,a)=>(R(t,typeof e!="symbol"?e+"":e,a),a),d={};j(d,{default:()=>l});var _=W(d),y=I(g),c=v,P=w;const M="https://fast.wistia.com/assets/external/E-v1.js",x="Wistia",A="wistia-player-";class l extends y.Component{constructor(){super(...arguments),n(this,"callPlayer",c.callPlayer),n(this,"playerID",this.props.config.playerId||`${A}${(0,c.randomString)()}`),n(this,"onPlay",(...e)=>this.props.onPlay(...e)),n(this,"onPause",(...e)=>this.props.onPause(...e)),n(this,"onSeek",(...e)=>this.props.onSeek(...e)),n(this,"onEnded",(...e)=>this.props.onEnded(...e)),n(this,"onPlaybackRateChange",(...e)=>this.props.onPlaybackRateChange(...e)),n(this,"mute",()=>{this.callPlayer("mute")}),n(this,"unmute",()=>{this.callPlayer("unmute")})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){const{playing:a,muted:s,controls:r,onReady:o,config:p,onError:b}=this.props;(0,c.getSDK)(M,x).then(f=>{p.customControls&&p.customControls.forEach(u=>f.defineControl(u)),window._wq=window._wq||[],window._wq.push({id:this.playerID,options:{autoPlay:a,silentAutoPlay:"allow",muted:s,controlsVisibleOnLoad:r,fullscreenButton:r,playbar:r,playbackRateControl:r,qualityControl:r,volumeControl:r,settingsControl:r,smallPlayButton:r,...p.options},onReady:u=>{this.player=u,this.unbind(),this.player.bind("play",this.onPlay),this.player.bind("pause",this.onPause),this.player.bind("seek",this.onSeek),this.player.bind("end",this.onEnded),this.player.bind("playbackratechange",this.onPlaybackRateChange),o()}})},b)}unbind(){this.player.unbind("play",this.onPlay),this.player.unbind("pause",this.onPause),this.player.unbind("seek",this.onSeek),this.player.unbind("end",this.onEnded),this.player.unbind("playbackratechange",this.onPlaybackRateChange)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){this.unbind(),this.callPlayer("remove")}seekTo(e,a=!0){this.callPlayer("time",e),a||this.pause()}setVolume(e){this.callPlayer("volume",e)}setPlaybackRate(e){this.callPlayer("playbackRate",e)}getDuration(){return this.callPlayer("duration")}getCurrentTime(){return this.callPlayer("time")}getSecondsLoaded(){return null}render(){const{url:e}=this.props,a=e&&e.match(P.MATCH_URL_WISTIA)[1],s=`wistia_embed wistia_async_${a}`,r={width:"100%",height:"100%"};return y.default.createElement("div",{id:this.playerID,key:a,className:s,style:r})}}n(l,"displayName","Wistia");n(l,"canPlay",P.canPlay.wistia);n(l,"loopOnEnded",!0);const L=m(_),$=O({__proto__:null,default:L},[_]);export{$ as W}; +import{a9 as m,r as g}from"./index-6541aa03.js";import{u as v,p as w}from"./index-0c54fe39.js";function O(t,e){for(var a=0;as[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var C=Object.create,i=Object.defineProperty,k=Object.getOwnPropertyDescriptor,D=Object.getOwnPropertyNames,E=Object.getPrototypeOf,S=Object.prototype.hasOwnProperty,R=(t,e,a)=>e in t?i(t,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[e]=a,j=(t,e)=>{for(var a in e)i(t,a,{get:e[a],enumerable:!0})},h=(t,e,a,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of D(e))!S.call(t,r)&&r!==a&&i(t,r,{get:()=>e[r],enumerable:!(s=k(e,r))||s.enumerable});return t},I=(t,e,a)=>(a=t!=null?C(E(t)):{},h(e||!t||!t.__esModule?i(a,"default",{value:t,enumerable:!0}):a,t)),W=t=>h(i({},"__esModule",{value:!0}),t),n=(t,e,a)=>(R(t,typeof e!="symbol"?e+"":e,a),a),d={};j(d,{default:()=>l});var _=W(d),y=I(g),c=v,P=w;const M="https://fast.wistia.com/assets/external/E-v1.js",x="Wistia",A="wistia-player-";class l extends y.Component{constructor(){super(...arguments),n(this,"callPlayer",c.callPlayer),n(this,"playerID",this.props.config.playerId||`${A}${(0,c.randomString)()}`),n(this,"onPlay",(...e)=>this.props.onPlay(...e)),n(this,"onPause",(...e)=>this.props.onPause(...e)),n(this,"onSeek",(...e)=>this.props.onSeek(...e)),n(this,"onEnded",(...e)=>this.props.onEnded(...e)),n(this,"onPlaybackRateChange",(...e)=>this.props.onPlaybackRateChange(...e)),n(this,"mute",()=>{this.callPlayer("mute")}),n(this,"unmute",()=>{this.callPlayer("unmute")})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){const{playing:a,muted:s,controls:r,onReady:o,config:p,onError:b}=this.props;(0,c.getSDK)(M,x).then(f=>{p.customControls&&p.customControls.forEach(u=>f.defineControl(u)),window._wq=window._wq||[],window._wq.push({id:this.playerID,options:{autoPlay:a,silentAutoPlay:"allow",muted:s,controlsVisibleOnLoad:r,fullscreenButton:r,playbar:r,playbackRateControl:r,qualityControl:r,volumeControl:r,settingsControl:r,smallPlayButton:r,...p.options},onReady:u=>{this.player=u,this.unbind(),this.player.bind("play",this.onPlay),this.player.bind("pause",this.onPause),this.player.bind("seek",this.onSeek),this.player.bind("end",this.onEnded),this.player.bind("playbackratechange",this.onPlaybackRateChange),o()}})},b)}unbind(){this.player.unbind("play",this.onPlay),this.player.unbind("pause",this.onPause),this.player.unbind("seek",this.onSeek),this.player.unbind("end",this.onEnded),this.player.unbind("playbackratechange",this.onPlaybackRateChange)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){this.unbind(),this.callPlayer("remove")}seekTo(e,a=!0){this.callPlayer("time",e),a||this.pause()}setVolume(e){this.callPlayer("volume",e)}setPlaybackRate(e){this.callPlayer("playbackRate",e)}getDuration(){return this.callPlayer("duration")}getCurrentTime(){return this.callPlayer("time")}getSecondsLoaded(){return null}render(){const{url:e}=this.props,a=e&&e.match(P.MATCH_URL_WISTIA)[1],s=`wistia_embed wistia_async_${a}`,r={width:"100%",height:"100%"};return y.default.createElement("div",{id:this.playerID,key:a,className:s,style:r})}}n(l,"displayName","Wistia");n(l,"canPlay",P.canPlay.wistia);n(l,"loopOnEnded",!0);const L=m(_),$=O({__proto__:null,default:L},[_]);export{$ as W}; diff --git a/build/assets/YouTube-79225b7a.js b/build/assets/YouTube-bee8bd7a.js similarity index 97% rename from build/assets/YouTube-79225b7a.js rename to build/assets/YouTube-bee8bd7a.js index def9c9508..e76e6f136 100644 --- a/build/assets/YouTube-79225b7a.js +++ b/build/assets/YouTube-bee8bd7a.js @@ -1 +1 @@ -import{a9 as U,r as I}from"./index-3506c528.js";import{u as L,p as Y}from"./index-44c74031.js";function k(a,e){for(var t=0;ts[r]})}}}return Object.freeze(Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}))}var M=Object.create,u=Object.defineProperty,j=Object.getOwnPropertyDescriptor,N=Object.getOwnPropertyNames,V=Object.getPrototypeOf,B=Object.prototype.hasOwnProperty,x=(a,e,t)=>e in a?u(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,K=(a,e)=>{for(var t in e)u(a,t,{get:e[t],enumerable:!0})},v=(a,e,t,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of N(e))!B.call(a,r)&&r!==t&&u(a,r,{get:()=>e[r],enumerable:!(s=j(e,r))||s.enumerable});return a},F=(a,e,t)=>(t=a!=null?M(V(a)):{},v(e||!a||!a.__esModule?u(t,"default",{value:a,enumerable:!0}):t,a)),H=a=>v(u({},"__esModule",{value:!0}),a),o=(a,e,t)=>(x(a,typeof e!="symbol"?e+"":e,t),t),w={};K(w,{default:()=>O});var S=H(w),m=F(I),p=L,D=Y;const G="https://www.youtube.com/iframe_api",T="YT",z="onYouTubeIframeAPIReady",f=/[?&](?:list|channel)=([a-zA-Z0-9_-]+)/,b=/user\/([a-zA-Z0-9_-]+)\/?/,Q=/youtube-nocookie\.com/,Z="https://www.youtube-nocookie.com";class O extends m.Component{constructor(){super(...arguments),o(this,"callPlayer",p.callPlayer),o(this,"parsePlaylist",e=>{if(e instanceof Array)return{listType:"playlist",playlist:e.map(this.getID).join(",")};if(f.test(e)){const[,t]=e.match(f);return{listType:"playlist",list:t.replace(/^UC/,"UU")}}if(b.test(e)){const[,t]=e.match(b);return{listType:"user_uploads",list:t}}return{}}),o(this,"onStateChange",e=>{const{data:t}=e,{onPlay:s,onPause:r,onBuffer:n,onBufferEnd:P,onEnded:_,onReady:g,loop:y,config:{playerVars:l,onUnstarted:h}}=this.props,{UNSTARTED:d,PLAYING:c,PAUSED:i,BUFFERING:E,ENDED:A,CUED:C}=window[T].PlayerState;if(t===d&&h(),t===c&&(s(),P()),t===i&&r(),t===E&&n(),t===A){const R=!!this.callPlayer("getPlaylist");y&&!R&&(l.start?this.seekTo(l.start):this.play()),_()}t===C&&g()}),o(this,"mute",()=>{this.callPlayer("mute")}),o(this,"unmute",()=>{this.callPlayer("unMute")}),o(this,"ref",e=>{this.container=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}getID(e){return!e||e instanceof Array||f.test(e)?null:e.match(D.MATCH_URL_YOUTUBE)[1]}load(e,t){const{playing:s,muted:r,playsinline:n,controls:P,loop:_,config:g,onError:y}=this.props,{playerVars:l,embedOptions:h}=g,d=this.getID(e);if(t){if(f.test(e)||b.test(e)||e instanceof Array){this.player.loadPlaylist(this.parsePlaylist(e));return}this.player.cueVideoById({videoId:d,startSeconds:(0,p.parseStartTime)(e)||l.start,endSeconds:(0,p.parseEndTime)(e)||l.end});return}(0,p.getSDK)(G,T,z,c=>c.loaded).then(c=>{this.container&&(this.player=new c.Player(this.container,{width:"100%",height:"100%",videoId:d,playerVars:{autoplay:s?1:0,mute:r?1:0,controls:P?1:0,start:(0,p.parseStartTime)(e),end:(0,p.parseEndTime)(e),origin:window.location.origin,playsinline:n?1:0,...this.parsePlaylist(e),...l},events:{onReady:()=>{_&&this.player.setLoop(!0),this.props.onReady()},onPlaybackRateChange:i=>this.props.onPlaybackRateChange(i.data),onPlaybackQualityChange:i=>this.props.onPlaybackQualityChange(i),onStateChange:this.onStateChange,onError:i=>y(i.data)},host:Q.test(e)?Z:void 0,...h}))},y),h.events&&console.warn("Using `embedOptions.events` will likely break things. Use ReactPlayer’s callback props instead, eg onReady, onPlay, onPause")}play(){this.callPlayer("playVideo")}pause(){this.callPlayer("pauseVideo")}stop(){document.body.contains(this.callPlayer("getIframe"))&&this.callPlayer("stopVideo")}seekTo(e,t=!1){this.callPlayer("seekTo",e),!t&&!this.props.playing&&this.pause()}setVolume(e){this.callPlayer("setVolume",e*100)}setPlaybackRate(e){this.callPlayer("setPlaybackRate",e)}setLoop(e){this.callPlayer("setLoop",e)}getDuration(){return this.callPlayer("getDuration")}getCurrentTime(){return this.callPlayer("getCurrentTime")}getSecondsLoaded(){return this.callPlayer("getVideoLoadedFraction")*this.getDuration()}render(){const{display:e}=this.props,t={width:"100%",height:"100%",display:e};return m.default.createElement("div",{style:t},m.default.createElement("div",{ref:this.ref}))}}o(O,"displayName","YouTube");o(O,"canPlay",D.canPlay.youtube);const $=U(S),W=k({__proto__:null,default:$},[S]);export{W as Y}; +import{a9 as U,r as I}from"./index-6541aa03.js";import{u as L,p as Y}from"./index-0c54fe39.js";function k(a,e){for(var t=0;ts[r]})}}}return Object.freeze(Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}))}var M=Object.create,u=Object.defineProperty,j=Object.getOwnPropertyDescriptor,N=Object.getOwnPropertyNames,V=Object.getPrototypeOf,B=Object.prototype.hasOwnProperty,x=(a,e,t)=>e in a?u(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,K=(a,e)=>{for(var t in e)u(a,t,{get:e[t],enumerable:!0})},v=(a,e,t,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of N(e))!B.call(a,r)&&r!==t&&u(a,r,{get:()=>e[r],enumerable:!(s=j(e,r))||s.enumerable});return a},F=(a,e,t)=>(t=a!=null?M(V(a)):{},v(e||!a||!a.__esModule?u(t,"default",{value:a,enumerable:!0}):t,a)),H=a=>v(u({},"__esModule",{value:!0}),a),o=(a,e,t)=>(x(a,typeof e!="symbol"?e+"":e,t),t),w={};K(w,{default:()=>O});var S=H(w),m=F(I),p=L,D=Y;const G="https://www.youtube.com/iframe_api",T="YT",z="onYouTubeIframeAPIReady",f=/[?&](?:list|channel)=([a-zA-Z0-9_-]+)/,b=/user\/([a-zA-Z0-9_-]+)\/?/,Q=/youtube-nocookie\.com/,Z="https://www.youtube-nocookie.com";class O extends m.Component{constructor(){super(...arguments),o(this,"callPlayer",p.callPlayer),o(this,"parsePlaylist",e=>{if(e instanceof Array)return{listType:"playlist",playlist:e.map(this.getID).join(",")};if(f.test(e)){const[,t]=e.match(f);return{listType:"playlist",list:t.replace(/^UC/,"UU")}}if(b.test(e)){const[,t]=e.match(b);return{listType:"user_uploads",list:t}}return{}}),o(this,"onStateChange",e=>{const{data:t}=e,{onPlay:s,onPause:r,onBuffer:n,onBufferEnd:P,onEnded:_,onReady:g,loop:y,config:{playerVars:l,onUnstarted:h}}=this.props,{UNSTARTED:d,PLAYING:c,PAUSED:i,BUFFERING:E,ENDED:A,CUED:C}=window[T].PlayerState;if(t===d&&h(),t===c&&(s(),P()),t===i&&r(),t===E&&n(),t===A){const R=!!this.callPlayer("getPlaylist");y&&!R&&(l.start?this.seekTo(l.start):this.play()),_()}t===C&&g()}),o(this,"mute",()=>{this.callPlayer("mute")}),o(this,"unmute",()=>{this.callPlayer("unMute")}),o(this,"ref",e=>{this.container=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}getID(e){return!e||e instanceof Array||f.test(e)?null:e.match(D.MATCH_URL_YOUTUBE)[1]}load(e,t){const{playing:s,muted:r,playsinline:n,controls:P,loop:_,config:g,onError:y}=this.props,{playerVars:l,embedOptions:h}=g,d=this.getID(e);if(t){if(f.test(e)||b.test(e)||e instanceof Array){this.player.loadPlaylist(this.parsePlaylist(e));return}this.player.cueVideoById({videoId:d,startSeconds:(0,p.parseStartTime)(e)||l.start,endSeconds:(0,p.parseEndTime)(e)||l.end});return}(0,p.getSDK)(G,T,z,c=>c.loaded).then(c=>{this.container&&(this.player=new c.Player(this.container,{width:"100%",height:"100%",videoId:d,playerVars:{autoplay:s?1:0,mute:r?1:0,controls:P?1:0,start:(0,p.parseStartTime)(e),end:(0,p.parseEndTime)(e),origin:window.location.origin,playsinline:n?1:0,...this.parsePlaylist(e),...l},events:{onReady:()=>{_&&this.player.setLoop(!0),this.props.onReady()},onPlaybackRateChange:i=>this.props.onPlaybackRateChange(i.data),onPlaybackQualityChange:i=>this.props.onPlaybackQualityChange(i),onStateChange:this.onStateChange,onError:i=>y(i.data)},host:Q.test(e)?Z:void 0,...h}))},y),h.events&&console.warn("Using `embedOptions.events` will likely break things. Use ReactPlayer’s callback props instead, eg onReady, onPlay, onPause")}play(){this.callPlayer("playVideo")}pause(){this.callPlayer("pauseVideo")}stop(){document.body.contains(this.callPlayer("getIframe"))&&this.callPlayer("stopVideo")}seekTo(e,t=!1){this.callPlayer("seekTo",e),!t&&!this.props.playing&&this.pause()}setVolume(e){this.callPlayer("setVolume",e*100)}setPlaybackRate(e){this.callPlayer("setPlaybackRate",e)}setLoop(e){this.callPlayer("setLoop",e)}getDuration(){return this.callPlayer("getDuration")}getCurrentTime(){return this.callPlayer("getCurrentTime")}getSecondsLoaded(){return this.callPlayer("getVideoLoadedFraction")*this.getDuration()}render(){const{display:e}=this.props,t={width:"100%",height:"100%",display:e};return m.default.createElement("div",{style:t},m.default.createElement("div",{ref:this.ref}))}}o(O,"displayName","YouTube");o(O,"canPlay",D.canPlay.youtube);const $=U(S),W=k({__proto__:null,default:$},[S]);export{W as Y}; diff --git a/build/assets/constants-f759a65e.js b/build/assets/constants-71fc61fd.js similarity index 80% rename from build/assets/constants-f759a65e.js rename to build/assets/constants-71fc61fd.js index c25a1111a..0381797ac 100644 --- a/build/assets/constants-f759a65e.js +++ b/build/assets/constants-71fc61fd.js @@ -1,4 +1,4 @@ -import{s,a_ as t,aY as a,aZ as o,a$ as n}from"./index-3506c528.js";import{f as c}from"./index-ccbb14cf.js";const i={[t]:"RSS link",[a]:"Twitter Handle",[o]:"Youtube channel",[n]:"Github Repository"},r="Sources Table",E="Queued Sources",I="Topics",S="View Content",u="date",p="edge_count",_="alphabetically",l="https://twitter.com",A="IS_ALIAS",d="https://www.twitter.com/anyuser/status/",L=s(c)` +import{s,a_ as t,aY as a,aZ as o,a$ as n}from"./index-6541aa03.js";import{f as c}from"./index-ad617d4b.js";const i={[t]:"RSS link",[a]:"Twitter Handle",[o]:"Youtube channel",[n]:"Github Repository"},r="Sources Table",E="Queued Sources",I="Topics",S="View Content",u="date",p="edge_count",_="alphabetically",l="https://twitter.com",A="IS_ALIAS",d="https://www.twitter.com/anyuser/status/",L=s(c)` && { vertical-align: middle; margin: 5px 0 0 4px; diff --git a/build/assets/createSvgIcon-0fd508c0.js b/build/assets/createSvgIcon-0b5f6bf4.js similarity index 97% rename from build/assets/createSvgIcon-0fd508c0.js rename to build/assets/createSvgIcon-0b5f6bf4.js index 4f6a53de1..45fe6ea21 100644 --- a/build/assets/createSvgIcon-0fd508c0.js +++ b/build/assets/createSvgIcon-0b5f6bf4.js @@ -1 +1 @@ -import{L as I,M as C,O as w,Y as f,r as v,S as R,H as b,x as S,j as g,U as j,V as M}from"./index-3506c528.js";function N(o){return I("MuiSvgIcon",o)}C("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const A=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],B=o=>{const{color:e,fontSize:t,classes:i}=o,n={root:["root",e!=="inherit"&&`color${f(e)}`,`fontSize${f(t)}`]};return M(n,N,i)},T=w("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(o,e)=>{const{ownerState:t}=o;return[e.root,t.color!=="inherit"&&e[`color${f(t.color)}`],e[`fontSize${f(t.fontSize)}`]]}})(({theme:o,ownerState:e})=>{var t,i,n,u,m,a,h,p,d,r,s,c,l;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:e.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(t=o.transitions)==null||(i=t.create)==null?void 0:i.call(t,"fill",{duration:(n=o.transitions)==null||(n=n.duration)==null?void 0:n.shorter}),fontSize:{inherit:"inherit",small:((u=o.typography)==null||(m=u.pxToRem)==null?void 0:m.call(u,20))||"1.25rem",medium:((a=o.typography)==null||(h=a.pxToRem)==null?void 0:h.call(a,24))||"1.5rem",large:((p=o.typography)==null||(d=p.pxToRem)==null?void 0:d.call(p,35))||"2.1875rem"}[e.fontSize],color:(r=(s=(o.vars||o).palette)==null||(s=s[e.color])==null?void 0:s.main)!=null?r:{action:(c=(o.vars||o).palette)==null||(c=c.action)==null?void 0:c.active,disabled:(l=(o.vars||o).palette)==null||(l=l.action)==null?void 0:l.disabled,inherit:void 0}[e.color]}}),_=v.forwardRef(function(e,t){const i=R({props:e,name:"MuiSvgIcon"}),{children:n,className:u,color:m="inherit",component:a="svg",fontSize:h="medium",htmlColor:p,inheritViewBox:d=!1,titleAccess:r,viewBox:s="0 0 24 24"}=i,c=b(i,A),l=v.isValidElement(n)&&n.type==="svg",y=S({},i,{color:m,component:a,fontSize:h,instanceFontSize:e.fontSize,inheritViewBox:d,viewBox:s,hasSvgAsChild:l}),x={};d||(x.viewBox=s);const z=B(y);return g.jsxs(T,S({as:a,className:j(z.root,u),focusable:"false",color:p,"aria-hidden":r?void 0:!0,role:r?"img":void 0,ref:t},x,c,l&&n.props,{ownerState:y,children:[l?n.props.children:n,r?g.jsx("title",{children:r}):null]}))});_.muiName="SvgIcon";const $=_;function E(o,e){function t(i,n){return g.jsx($,S({"data-testid":`${e}Icon`,ref:n},i,{children:o}))}return t.muiName=$.muiName,v.memo(v.forwardRef(t))}export{E as c}; +import{L as I,M as C,O as w,Y as f,r as v,S as R,H as b,x as S,j as g,U as j,V as M}from"./index-6541aa03.js";function N(o){return I("MuiSvgIcon",o)}C("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const A=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],B=o=>{const{color:e,fontSize:t,classes:i}=o,n={root:["root",e!=="inherit"&&`color${f(e)}`,`fontSize${f(t)}`]};return M(n,N,i)},T=w("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(o,e)=>{const{ownerState:t}=o;return[e.root,t.color!=="inherit"&&e[`color${f(t.color)}`],e[`fontSize${f(t.fontSize)}`]]}})(({theme:o,ownerState:e})=>{var t,i,n,u,m,a,h,p,d,r,s,c,l;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:e.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(t=o.transitions)==null||(i=t.create)==null?void 0:i.call(t,"fill",{duration:(n=o.transitions)==null||(n=n.duration)==null?void 0:n.shorter}),fontSize:{inherit:"inherit",small:((u=o.typography)==null||(m=u.pxToRem)==null?void 0:m.call(u,20))||"1.25rem",medium:((a=o.typography)==null||(h=a.pxToRem)==null?void 0:h.call(a,24))||"1.5rem",large:((p=o.typography)==null||(d=p.pxToRem)==null?void 0:d.call(p,35))||"2.1875rem"}[e.fontSize],color:(r=(s=(o.vars||o).palette)==null||(s=s[e.color])==null?void 0:s.main)!=null?r:{action:(c=(o.vars||o).palette)==null||(c=c.action)==null?void 0:c.active,disabled:(l=(o.vars||o).palette)==null||(l=l.action)==null?void 0:l.disabled,inherit:void 0}[e.color]}}),_=v.forwardRef(function(e,t){const i=R({props:e,name:"MuiSvgIcon"}),{children:n,className:u,color:m="inherit",component:a="svg",fontSize:h="medium",htmlColor:p,inheritViewBox:d=!1,titleAccess:r,viewBox:s="0 0 24 24"}=i,c=b(i,A),l=v.isValidElement(n)&&n.type==="svg",y=S({},i,{color:m,component:a,fontSize:h,instanceFontSize:e.fontSize,inheritViewBox:d,viewBox:s,hasSvgAsChild:l}),x={};d||(x.viewBox=s);const z=B(y);return g.jsxs(T,S({as:a,className:j(z.root,u),focusable:"false",color:p,"aria-hidden":r?void 0:!0,role:r?"img":void 0,ref:t},x,c,l&&n.props,{ownerState:y,children:[l?n.props.children:n,r?g.jsx("title",{children:r}):null]}))});_.muiName="SvgIcon";const $=_;function E(o,e){function t(i,n){return g.jsx($,S({"data-testid":`${e}Icon`,ref:n},i,{children:o}))}return t.muiName=$.muiName,v.memo(v.forwardRef(t))}export{E as c}; diff --git a/build/assets/index-8c64b2dc.js b/build/assets/index-00326e4f.js similarity index 98% rename from build/assets/index-8c64b2dc.js rename to build/assets/index-00326e4f.js index aee673337..a1c8e2790 100644 --- a/build/assets/index-8c64b2dc.js +++ b/build/assets/index-00326e4f.js @@ -1,4 +1,4 @@ -import{r as h,L as X,M as Q,O as F,x as I,S as K,H as Z,j as e,U as J,V as ee,Y as D,aj as gt,P as ne,ak as ft,s as c,a as x,T as N,B as W,F as g,e as E,be as mt,am as se,J as re,u as le,bf as bt,bg as jt,af as yt,bh as wt,bi as Ve,A as ae,bj as qe,i as we,aY as _e,aZ as Ne,a_ as ze,bk as Ct,bl as vt,ac as Tt,bm as $t,b as Xe,C as te,bn as St,bc as Qe,bo as Ke,t as Ce,aX as ce,v as ve,bp as kt,aU as _t,aV as Nt,bq as de,br as zt,k as Lt,q as It,a7 as Bt}from"./index-3506c528.js";import{at as Rt,g as Et,P as Te,au as je,f as q,av as Mt,aw as At,t as Ft,$ as Ze,ax as Je,ay as et,az as tt,ac as st,aA as Ot,aB as Wt,aC as Ht,aD as Le,aE as Ie,q as Be,aF as ge,aG as Pt,r as Dt}from"./index-ccbb14cf.js";import{T as Re,s as U,a as ot,S as nt,A as $e,E as Ut,D as Gt,b as rt,Q as at,V as it,c as Yt}from"./constants-f759a65e.js";import{C as z}from"./ClipLoader-273b2bbd.js";import{I as Vt,A as Se,T as lt}from"./index-1575e121.js";import{u as B}from"./index-54853042.js";import{T as Ee}from"./Typography-7897fa03.js";import{T as qt,a as Xt}from"./Tabs-53998bef.js";import"./index-d54cb162.js";import"./Stack-7521353f.js";import"./createSvgIcon-0fd508c0.js";import"./TextareaAutosize-e8dfc0e6.js";const Qt=h.createContext(),ct=Qt;function Kt(t){return X("MuiTable",t)}Q("MuiTable",["root","stickyHeader"]);const Zt=["className","component","padding","size","stickyHeader"],Jt=t=>{const{classes:s,stickyHeader:n}=t;return ee({root:["root",n&&"stickyHeader"]},Kt,s)},es=F("table",{name:"MuiTable",slot:"Root",overridesResolver:(t,s)=>{const{ownerState:n}=t;return[s.root,n.stickyHeader&&s.stickyHeader]}})(({theme:t,ownerState:s})=>I({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":I({},t.typography.body2,{padding:t.spacing(2),color:(t.vars||t).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},s.stickyHeader&&{borderCollapse:"separate"})),Me="table",ts=h.forwardRef(function(s,n){const r=K({props:s,name:"MuiTable"}),{className:l,component:i=Me,padding:a="normal",size:o="medium",stickyHeader:d=!1}=r,u=Z(r,Zt),m=I({},r,{component:i,padding:a,size:o,stickyHeader:d}),p=Jt(m),b=h.useMemo(()=>({padding:a,size:o,stickyHeader:d}),[a,o,d]);return e.jsx(ct.Provider,{value:b,children:e.jsx(es,I({as:i,role:i===Me?null:"table",ref:n,className:J(p.root,l),ownerState:m},u))})}),pe=ts,ss=h.createContext(),xe=ss;function os(t){return X("MuiTableBody",t)}Q("MuiTableBody",["root"]);const ns=["className","component"],rs=t=>{const{classes:s}=t;return ee({root:["root"]},os,s)},as=F("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(t,s)=>s.root})({display:"table-row-group"}),is={variant:"body"},Ae="tbody",ls=h.forwardRef(function(s,n){const r=K({props:s,name:"MuiTableBody"}),{className:l,component:i=Ae}=r,a=Z(r,ns),o=I({},r,{component:i}),d=rs(o);return e.jsx(xe.Provider,{value:is,children:e.jsx(as,I({className:J(d.root,l),as:i,ref:n,role:i===Ae?null:"rowgroup",ownerState:o},a))})}),cs=ls;function ds(t){return X("MuiTableCell",t)}const ps=Q("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),xs=ps,hs=["align","className","component","padding","scope","size","sortDirection","variant"],us=t=>{const{classes:s,variant:n,align:r,padding:l,size:i,stickyHeader:a}=t,o={root:["root",n,a&&"stickyHeader",r!=="inherit"&&`align${D(r)}`,l!=="normal"&&`padding${D(l)}`,`size${D(i)}`]};return ee(o,ds,s)},gs=F("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(t,s)=>{const{ownerState:n}=t;return[s.root,s[n.variant],s[`size${D(n.size)}`],n.padding!=="normal"&&s[`padding${D(n.padding)}`],n.align!=="inherit"&&s[`align${D(n.align)}`],n.stickyHeader&&s.stickyHeader]}})(({theme:t,ownerState:s})=>I({},t.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:t.vars?`1px solid ${t.vars.palette.TableCell.border}`:`1px solid +import{r as h,L as X,M as Q,O as F,x as I,S as K,H as Z,j as e,U as J,V as ee,Y as D,aj as gt,P as ne,ak as ft,s as c,a as x,T as N,B as W,F as g,e as E,be as mt,am as se,J as re,u as le,bf as bt,bg as jt,af as yt,bh as wt,bi as Ve,A as ae,bj as qe,i as we,aY as _e,aZ as Ne,a_ as ze,bk as Ct,bl as vt,ac as Tt,bm as $t,b as Xe,C as te,bn as St,bc as Qe,bo as Ke,t as Ce,aX as ce,v as ve,bp as kt,aU as _t,aV as Nt,bq as de,br as zt,k as Lt,q as It,a7 as Bt}from"./index-6541aa03.js";import{at as Rt,g as Et,P as Te,au as je,f as q,av as Mt,aw as At,r as Ft,$ as Ze,ax as Je,ay as et,az as tt,ac as st,aA as Ot,aB as Wt,aC as Ht,aD as Le,aE as Ie,o as Be,aF as ge,aG as Pt,p as Dt}from"./index-ad617d4b.js";import{T as Re,s as U,a as ot,S as nt,A as $e,E as Ut,D as Gt,b as rt,Q as at,V as it,c as Yt}from"./constants-71fc61fd.js";import{C as z}from"./ClipLoader-708ab7a4.js";import{I as Vt,A as Se,T as lt}from"./index-bb4d07d0.js";import{u as B}from"./index-d58befe2.js";import{T as Ee}from"./Typography-0c02c7d4.js";import{T as qt,a as Xt}from"./Tabs-31512595.js";import"./index-8f946e20.js";import"./Stack-bcf44d60.js";import"./createSvgIcon-0b5f6bf4.js";import"./TextareaAutosize-387bd327.js";const Qt=h.createContext(),ct=Qt;function Kt(t){return X("MuiTable",t)}Q("MuiTable",["root","stickyHeader"]);const Zt=["className","component","padding","size","stickyHeader"],Jt=t=>{const{classes:s,stickyHeader:n}=t;return ee({root:["root",n&&"stickyHeader"]},Kt,s)},es=F("table",{name:"MuiTable",slot:"Root",overridesResolver:(t,s)=>{const{ownerState:n}=t;return[s.root,n.stickyHeader&&s.stickyHeader]}})(({theme:t,ownerState:s})=>I({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":I({},t.typography.body2,{padding:t.spacing(2),color:(t.vars||t).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},s.stickyHeader&&{borderCollapse:"separate"})),Me="table",ts=h.forwardRef(function(s,n){const r=K({props:s,name:"MuiTable"}),{className:l,component:i=Me,padding:a="normal",size:o="medium",stickyHeader:d=!1}=r,u=Z(r,Zt),m=I({},r,{component:i,padding:a,size:o,stickyHeader:d}),p=Jt(m),b=h.useMemo(()=>({padding:a,size:o,stickyHeader:d}),[a,o,d]);return e.jsx(ct.Provider,{value:b,children:e.jsx(es,I({as:i,role:i===Me?null:"table",ref:n,className:J(p.root,l),ownerState:m},u))})}),pe=ts,ss=h.createContext(),xe=ss;function os(t){return X("MuiTableBody",t)}Q("MuiTableBody",["root"]);const ns=["className","component"],rs=t=>{const{classes:s}=t;return ee({root:["root"]},os,s)},as=F("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(t,s)=>s.root})({display:"table-row-group"}),is={variant:"body"},Ae="tbody",ls=h.forwardRef(function(s,n){const r=K({props:s,name:"MuiTableBody"}),{className:l,component:i=Ae}=r,a=Z(r,ns),o=I({},r,{component:i}),d=rs(o);return e.jsx(xe.Provider,{value:is,children:e.jsx(as,I({className:J(d.root,l),as:i,ref:n,role:i===Ae?null:"rowgroup",ownerState:o},a))})}),cs=ls;function ds(t){return X("MuiTableCell",t)}const ps=Q("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),xs=ps,hs=["align","className","component","padding","scope","size","sortDirection","variant"],us=t=>{const{classes:s,variant:n,align:r,padding:l,size:i,stickyHeader:a}=t,o={root:["root",n,a&&"stickyHeader",r!=="inherit"&&`align${D(r)}`,l!=="normal"&&`padding${D(l)}`,`size${D(i)}`]};return ee(o,ds,s)},gs=F("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(t,s)=>{const{ownerState:n}=t;return[s.root,s[n.variant],s[`size${D(n.size)}`],n.padding!=="normal"&&s[`padding${D(n.padding)}`],n.align!=="inherit"&&s[`align${D(n.align)}`],n.stickyHeader&&s.stickyHeader]}})(({theme:t,ownerState:s})=>I({},t.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:t.vars?`1px solid ${t.vars.palette.TableCell.border}`:`1px solid ${t.palette.mode==="light"?gt(ne(t.palette.divider,1),.88):ft(ne(t.palette.divider,1),.68)}`,textAlign:"left",padding:16},s.variant==="head"&&{color:(t.vars||t).palette.text.primary,lineHeight:t.typography.pxToRem(24),fontWeight:t.typography.fontWeightMedium},s.variant==="body"&&{color:(t.vars||t).palette.text.primary},s.variant==="footer"&&{color:(t.vars||t).palette.text.secondary,lineHeight:t.typography.pxToRem(21),fontSize:t.typography.pxToRem(12)},s.size==="small"&&{padding:"6px 16px",[`&.${xs.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},s.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},s.padding==="none"&&{padding:0},s.align==="left"&&{textAlign:"left"},s.align==="center"&&{textAlign:"center"},s.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},s.align==="justify"&&{textAlign:"justify"},s.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(t.vars||t).palette.background.default})),fs=h.forwardRef(function(s,n){const r=K({props:s,name:"MuiTableCell"}),{align:l="inherit",className:i,component:a,padding:o,scope:d,size:u,sortDirection:m,variant:p}=r,b=Z(r,hs),j=h.useContext(ct),y=h.useContext(xe),C=y&&y.variant==="head";let w;a?w=a:w=C?"th":"td";let $=d;w==="td"?$=void 0:!$&&C&&($="col");const S=p||y&&y.variant,A=I({},r,{align:l,component:w,padding:o||(j&&j.padding?j.padding:"normal"),size:u||(j&&j.size?j.size:"medium"),sortDirection:m,stickyHeader:S==="head"&&j&&j.stickyHeader,variant:S}),O=us(A);let L=null;return m&&(L=m==="asc"?"ascending":"descending"),e.jsx(gs,I({as:w,ref:n,className:J(O.root,i),"aria-sort":L,scope:$,ownerState:A},b))}),ms=fs;function bs(t){return X("MuiTableHead",t)}Q("MuiTableHead",["root"]);const js=["className","component"],ys=t=>{const{classes:s}=t;return ee({root:["root"]},bs,s)},ws=F("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(t,s)=>s.root})({display:"table-header-group"}),Cs={variant:"head"},Fe="thead",vs=h.forwardRef(function(s,n){const r=K({props:s,name:"MuiTableHead"}),{className:l,component:i=Fe}=r,a=Z(r,js),o=I({},r,{component:i}),d=ys(o);return e.jsx(xe.Provider,{value:Cs,children:e.jsx(ws,I({as:i,className:J(d.root,l),ref:n,role:i===Fe?null:"rowgroup",ownerState:o},a))})}),dt=vs;function Ts(t){return X("MuiTableRow",t)}const $s=Q("MuiTableRow",["root","selected","hover","head","footer"]),Oe=$s,Ss=["className","component","hover","selected"],ks=t=>{const{classes:s,selected:n,hover:r,head:l,footer:i}=t;return ee({root:["root",n&&"selected",r&&"hover",l&&"head",i&&"footer"]},Ts,s)},_s=F("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(t,s)=>{const{ownerState:n}=t;return[s.root,n.head&&s.head,n.footer&&s.footer]}})(({theme:t})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${Oe.hover}:hover`]:{backgroundColor:(t.vars||t).palette.action.hover},[`&.${Oe.selected}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:ne(t.palette.primary.main,t.palette.action.selectedOpacity),"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:ne(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity)}}})),We="tr",Ns=h.forwardRef(function(s,n){const r=K({props:s,name:"MuiTableRow"}),{className:l,component:i=We,hover:a=!1,selected:o=!1}=r,d=Z(r,Ss),u=h.useContext(xe),m=I({},r,{component:i,hover:a,selected:o,head:u&&u.variant==="head",footer:u&&u.variant==="footer"}),p=ks(m);return e.jsx(_s,I({as:i,ref:n,className:J(p.root,l),role:i===We?null:"row",ownerState:m},d))}),G=Ns;function ye(t){const s=new Date(Number(t)*1e3),n=s.getFullYear(),r=(1+s.getMonth()).toString().padStart(2,"0");return`${s.getDate().toString().padStart(2,"0")}/${r}/${n}`}const f=c(ms)` && { color: ${x.white}; diff --git a/build/assets/index-07c7bb26.js b/build/assets/index-0241105d.js similarity index 96% rename from build/assets/index-07c7bb26.js rename to build/assets/index-0241105d.js index b09aabe2f..7be95afc0 100644 --- a/build/assets/index-07c7bb26.js +++ b/build/assets/index-0241105d.js @@ -1,4 +1,4 @@ -import{s as v,a as B,T as F,F as r,r as m,an as U,j as e,aU as J,aV as K,b9 as X,B as E,ba as $,q as Q,bb as Z,e as D,t as N,N as O,aX as ee,v as te,bs as ne,bw as re}from"./index-3506c528.js";import{p as V}from"./index-90ded230.js";import{C as G}from"./ClipLoader-273b2bbd.js";import{m as W}from"./index-ccbb14cf.js";import{A as Y}from"./index-1575e121.js";import{c as oe}from"./index-64f1c910.js";import"./three.module-10ab52a5.js";import"./index-d54cb162.js";import"./Stack-7521353f.js";import"./createSvgIcon-0fd508c0.js";import"./TextareaAutosize-e8dfc0e6.js";const q=s=>s.charAt(0).toUpperCase()+s.slice(1).replace(/_/g," "),k=s=>s?[...s].sort((l,x)=>Number(x.required)-Number(l.required)):[],H=s=>s?s.filter(l=>l.key!=="node_key"):[],se=({handleSelectType:s,skipToStep:l,nodeType:x,selectedValues:n})=>{const[f,w]=m.useState(!1),[h,C]=m.useState(),{watch:j,formState:{isValid:t}}=U();m.useEffect(()=>{(async()=>{w(!0);const o=await $(x),T=V(o),A=H(T);C(A),w(!1)})()},[x,j]);const a=c=>c.charAt(0).toUpperCase()+c.slice(1).replace(/_/g," "),p=(h?[...h].sort((c,o)=>c.required&&!o.required?-1:!c.required&&o.required?1:0):[]).filter(c=>!!(c.required&&!Object.values(n).includes(c.key))),S=()=>{s(""),l("sourceType")},b=!t||f||p.some(c=>{var o;return c.required&&!((o=j(c.key))!=null&&o.trim())});return e.jsxs(r,{children:[e.jsx(r,{align:"center",direction:"row",justify:"space-between",mb:18,children:e.jsx(r,{align:"center",direction:"row",children:e.jsx(ae,{children:"Required Properties"})})}),e.jsx(ie,{children:f?e.jsx(r,{style:{margin:"auto"},children:e.jsx(G,{color:B.SECONDARY_BLUE})}):e.jsx(r,{className:"input__wrapper",children:p==null?void 0:p.map(({key:c,required:o})=>e.jsx(e.Fragment,{children:e.jsxs(ce,{children:[e.jsx(F,{children:a(c)}),e.jsx(J,{id:"item-name",maxLength:50,name:c,placeholder:o?"Required":"Optional",rules:{...o?{...K,pattern:{message:"No leading whitespace allowed",value:X}}:{}}})]})}))})}),e.jsxs(r,{direction:"row",children:[e.jsx(r,{grow:1,children:e.jsx(E,{color:"secondary",onClick:S,size:"large",variant:"contained",children:"Prev"})}),e.jsx(r,{grow:1,ml:20,children:e.jsx(E,{color:"secondary",disabled:b,onClick:()=>l("createConfirmation"),size:"large",variant:"contained",children:"Next"})})]})]})},ae=v(F)` +import{s as v,a as B,T as F,F as r,r as m,an as U,j as e,aU as J,aV as K,b9 as X,B as E,ba as $,q as Q,bb as Z,e as D,t as N,N as O,aX as ee,v as te,bs as ne,bw as re}from"./index-6541aa03.js";import{p as V}from"./index-90ded230.js";import{C as G}from"./ClipLoader-708ab7a4.js";import{m as W}from"./index-ad617d4b.js";import{A as Y}from"./index-bb4d07d0.js";import{c as oe}from"./index-64f1c910.js";import"./three.module-10ab52a5.js";import"./index-8f946e20.js";import"./Stack-bcf44d60.js";import"./createSvgIcon-0b5f6bf4.js";import"./TextareaAutosize-387bd327.js";const q=s=>s.charAt(0).toUpperCase()+s.slice(1).replace(/_/g," "),k=s=>s?[...s].sort((l,x)=>Number(x.required)-Number(l.required)):[],H=s=>s?s.filter(l=>l.key!=="node_key"):[],se=({handleSelectType:s,skipToStep:l,nodeType:x,selectedValues:n})=>{const[f,w]=m.useState(!1),[h,C]=m.useState(),{watch:j,formState:{isValid:t}}=U();m.useEffect(()=>{(async()=>{w(!0);const o=await $(x),T=V(o),A=H(T);C(A),w(!1)})()},[x,j]);const a=c=>c.charAt(0).toUpperCase()+c.slice(1).replace(/_/g," "),p=(h?[...h].sort((c,o)=>c.required&&!o.required?-1:!c.required&&o.required?1:0):[]).filter(c=>!!(c.required&&!Object.values(n).includes(c.key))),S=()=>{s(""),l("sourceType")},b=!t||f||p.some(c=>{var o;return c.required&&!((o=j(c.key))!=null&&o.trim())});return e.jsxs(r,{children:[e.jsx(r,{align:"center",direction:"row",justify:"space-between",mb:18,children:e.jsx(r,{align:"center",direction:"row",children:e.jsx(ae,{children:"Required Properties"})})}),e.jsx(ie,{children:f?e.jsx(r,{style:{margin:"auto"},children:e.jsx(G,{color:B.SECONDARY_BLUE})}):e.jsx(r,{className:"input__wrapper",children:p==null?void 0:p.map(({key:c,required:o})=>e.jsx(e.Fragment,{children:e.jsxs(ce,{children:[e.jsx(F,{children:a(c)}),e.jsx(J,{id:"item-name",maxLength:50,name:c,placeholder:o?"Required":"Optional",rules:{...o?{...K,pattern:{message:"No leading whitespace allowed",value:X}}:{}}})]})}))})}),e.jsxs(r,{direction:"row",children:[e.jsx(r,{grow:1,children:e.jsx(E,{color:"secondary",onClick:S,size:"large",variant:"contained",children:"Prev"})}),e.jsx(r,{grow:1,ml:20,children:e.jsx(E,{color:"secondary",disabled:b,onClick:()=>l("createConfirmation"),size:"large",variant:"contained",children:"Next"})})]})]})},ae=v(F)` font-size: 22px; font-weight: 600; font-family: 'Barlow'; diff --git a/build/assets/index-c106f68f.js b/build/assets/index-049c9db0.js similarity index 91% rename from build/assets/index-c106f68f.js rename to build/assets/index-049c9db0.js index 79c7cf78c..68dd53fdb 100644 --- a/build/assets/index-c106f68f.js +++ b/build/assets/index-049c9db0.js @@ -1 +1 @@ -import{a9 as c}from"./index-3506c528.js";var p={exports:{}},i="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",y=i,m=y;function a(){}function n(){}n.resetWarningCache=a;var T=function(){function e(f,h,l,P,v,s){if(s!==m){var o=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw o.name="Invariant Violation",o}}e.isRequired=e;function r(){return e}var t={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:r,element:e,elementType:e,instanceOf:r,node:e,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:n,resetWarningCache:a};return t.PropTypes=t,t};p.exports=T();var u=p.exports;const _=c(u);export{_ as P,u as p}; +import{a9 as c}from"./index-6541aa03.js";var p={exports:{}},i="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",y=i,m=y;function a(){}function n(){}n.resetWarningCache=a;var T=function(){function e(f,h,l,P,v,s){if(s!==m){var o=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw o.name="Invariant Violation",o}}e.isRequired=e;function r(){return e}var t={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:r,element:e,elementType:e,instanceOf:r,node:e,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:n,resetWarningCache:a};return t.PropTypes=t,t};p.exports=T();var u=p.exports;const _=c(u);export{_ as P,u as p}; diff --git a/build/assets/index-27744ada.js b/build/assets/index-070f6d98.js similarity index 69% rename from build/assets/index-27744ada.js rename to build/assets/index-070f6d98.js index a22c7c643..a47b385f1 100644 --- a/build/assets/index-27744ada.js +++ b/build/assets/index-070f6d98.js @@ -1 +1 @@ -import"./index-3506c528.js";import{h as o}from"./index-ccbb14cf.js";const a=()=>{const{simulation:s,simulationHelpers:e}=o(r=>r);return{nodes:(s==null?void 0:s.nodes())||[],links:e.getLinks()}};export{a as u}; +import"./index-6541aa03.js";import{h as o}from"./index-ad617d4b.js";const a=()=>{const{simulation:s,simulationHelpers:e}=o(r=>r);return{nodes:(s==null?void 0:s.nodes())||[],links:e.getLinks()}};export{a as u}; diff --git a/build/assets/index-44c74031.js b/build/assets/index-0c54fe39.js similarity index 99% rename from build/assets/index-44c74031.js rename to build/assets/index-0c54fe39.js index addc2f831..6ca931716 100644 --- a/build/assets/index-44c74031.js +++ b/build/assets/index-0c54fe39.js @@ -1,4 +1,4 @@ -import{z as HO,af as xa,i as Mv,ag as GL,r as P,ah as WO,Z as zs,$ as zL,a2 as Ps,x as ce,j as h,M as pb,L as fb,O as Mr,ai as qL,Y as Jt,P as Hi,S as gb,H as jl,U as Cr,V as hb,a3 as Fl,aj as HL,ak as WL,al as VO,s as B,a as M,am as YO,an as mb,o as Bl,F,t as VL,u as Pr,b as Ul,ao as KO,v as YL,T as pt,ap as KL,A as dn,k as Ct,d as bb,aq as ei,ar as Tt,as as XL,a9 as ft,B as Mt,n as XO,q as ZO,C as JO,y as ZL,at as QO,e as Pv,p as JL,au as e1,av as t1,aw as ti,ax as Ne,J as U,ay as QL,az as eM,aA as tM,aB as Gl,aC as rM,aD as nM,aE as aM,aF as iM,aG as r1,aH as oM,aI as zl,aJ as sM,aK as lM,aL as uM,aM as cM,ac as dM,aN as $v,l as pM,aO as fM,aP as gM,I as hM,D as mM,_ as ir,aQ as bM,aR as yM}from"./index-3506c528.js";import{G as na,J as $s,K as ac,L as n1,Q as vM,U as SM,V as EM,W as jv,X as js,Y as Tn,Z as Fv,_ as fs,$ as a1,a0 as xM,g as yb,a1 as i1,b as $r,a2 as vn,a3 as o1,h as s1,a4 as wM,u as Mo,a5 as _M,a6 as vb,a7 as ql,a8 as TM,a9 as l1,aa as u1,ab as AM,P as OM,ac as c1,ad as kM,ae as RM,af as IM,ag as NM,d as Sb,e as Eb,ah as CM,ai as DM,aj as LM,m as Pt,ak as d1,al as MM,f as p1,am as PM,c as Po,an as $M,ao as jM,ap as FM,aq as BM,v as UM,ar as f1,as as GM}from"./index-ccbb14cf.js";import{c as zM,a as ic,C as Hl}from"./ClipLoader-273b2bbd.js";import{S as g1}from"./Skeleton-c3abb4f1.js";import{u as h1,P as xb,a as qM,F as HM}from"./Stack-7521353f.js";import{T as ri}from"./index-d54cb162.js";import{S as WM,F as Bv,i as $o,g as yr,t as VM,_ as m1,a as YM,b as KM,c as ia,d as wb,e as XM,f as ZM,h as JM,j as jo,m as QM,k as eP,l as tP,n as b1,o as rP,p as nP}from"./isPlainObject-9e89c04f.js";import{c as _b}from"./createSvgIcon-0fd508c0.js";import{useBriefDescriptionStore as aP}from"./index-831eec8c.js";import{P as we,p as iP}from"./index-c106f68f.js";import{u as y1}from"./index-27744ada.js";const Uv="023d8eb306f0027b902fbdc81d33b49b6558b3434d374626f8c324979c92d47c21",oP=async e=>{let t=await xa.enable(!0);if(t||console.warn("Sphinx enable failed, means no pubkey and no budget (including budget of 0)"),t=await xa.keysend(Uv,e),!(t!=null&&t.success)){if(t=await xa.topup(),t||(t=await xa.authorize()),!(t!=null&&t.budget)||(t==null?void 0:t.budget){const r=await oP(t),n={amount:t,refid:e};return await HO.post("/boost",JSON.stringify(n)),r};function Tb(e){return e?String(e).replace(/[[]{2}/g,"").replace(/[\]]{2}/g,""):""}const lP=e=>{const[t,r]=e.split("-")||["",""];return parseInt(r,10)!==0?`${t} - ${r}`:t},v1=(e,t)=>{if(!t)return null;const r=e.filter(i=>i.show_title&&i.link&&i.show_title===t.show_title&&i.episode_title===t.episode_title),n=Mv.groupBy(r,i=>i.timestamp),a=Mv.values(n).reduce((i,o)=>(o[0]&&i.push(o[0]),i),[]);return a.sort((i,o)=>{var p,g;const[s]=((p=i.timestamp)==null?void 0:p.split("-"))||[""],[l]=((g=o.timestamp)==null?void 0:g.split("-"))||[""],c=na(s),d=na(l);return c-d}),a},uP=async e=>{await GL(async()=>{try{await xa.saveGraphData({metaData:{date:Math.floor(new Date().getTime()/1e3),...e},type:"second_brain_consumed_content"})}catch(t){console.warn(t)}})},cP=e=>{const t=/((http|https):\/\/[^\s]+)/g,r=/@(\w+)/g;let n=e.replace(/\\/g,"");return n=n.replace(/'/g,"’"),n=n.replace(/\n/g,"
"),n=n.replace(t,'$1'),n=n.replace(r,'@$1'),n},dP={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},pP=dP;function fP(e,t,r=(n,a)=>n===a){return e.length===t.length&&e.every((n,a)=>r(n,t[a]))}const gP=2;function S1(e,t){return e-t}function hi(e,t,r){return e==null?t:Math.min(Math.max(t,e),r)}function Gv(e,t){var r;const{index:n}=(r=e.reduce((a,i,o)=>{const s=Math.abs(t-i);return a===null||s({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},vP=e=>e;let bs;function oc(){return bs===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?bs=CSS.supports("touch-action","none"):bs=!0),bs}function SP(e){const{"aria-labelledby":t,defaultValue:r,disabled:n=!1,disableSwap:a=!1,isRtl:i=!1,marks:o=!1,max:s=100,min:l=0,name:c,onChange:d,onChangeCommitted:p,orientation:g="horizontal",rootRef:m,scale:b=vP,step:S=1,tabIndex:v,value:O}=e,_=P.useRef(),[w,A]=P.useState(-1),[x,E]=P.useState(-1),[k,N]=P.useState(!1),I=P.useRef(0),[D,L]=h1({controlled:O,default:r??l,name:"Slider"}),j=d&&((te,de,ye)=>{const ve=te.nativeEvent||te,ge=new ve.constructor(ve.type,ve);Object.defineProperty(ge,"target",{writable:!0,value:{value:de,name:c}}),d(ge,de,ye)}),q=Array.isArray(D);let H=q?D.slice().sort(S1):[D];H=H.map(te=>hi(te,l,s));const z=o===!0&&S!==null?[...Array(Math.floor((s-l)/S)+1)].map((te,de)=>({value:l+S*de})):o||[],W=z.map(te=>te.value),{isFocusVisibleRef:K,onBlur:G,onFocus:V,ref:J}=WO(),[ae,re]=P.useState(-1),ue=P.useRef(),Se=zs(J,ue),Q=zs(m,Se),Ie=te=>de=>{var ye;const ve=Number(de.currentTarget.getAttribute("data-index"));V(de),K.current===!0&&re(ve),E(ve),te==null||(ye=te.onFocus)==null||ye.call(te,de)},Ue=te=>de=>{var ye;G(de),K.current===!1&&re(-1),E(-1),te==null||(ye=te.onBlur)==null||ye.call(te,de)};zL(()=>{if(n&&ue.current.contains(document.activeElement)){var te;(te=document.activeElement)==null||te.blur()}},[n]),n&&w!==-1&&A(-1),n&&ae!==-1&&re(-1);const xe=te=>de=>{var ye;(ye=te.onChange)==null||ye.call(te,de);const ve=Number(de.currentTarget.getAttribute("data-index")),ge=H[ve],qe=W.indexOf(ge);let De=de.target.valueAsNumber;if(z&&S==null){const Ge=W[W.length-1];De>Ge?De=Ge:De{const{current:ye}=ue,{width:ve,height:ge,bottom:qe,left:De}=ye.getBoundingClientRect();let Ge;oe.indexOf("vertical")===0?Ge=(qe-te.y)/ge:Ge=(te.x-De)/ve,oe.indexOf("-reverse")!==-1&&(Ge=1-Ge);let Je;if(Je=hP(Ge,l,s),S)Je=bP(Je,S,l);else{const rr=Gv(W,Je);Je=W[rr]}Je=hi(Je,l,s);let jt=0;if(q){de?jt=ee.current:jt=Gv(H,Je),a&&(Je=hi(Je,H[jt-1]||-1/0,H[jt+1]||1/0));const rr=Je;Je=zv({values:H,newValue:Je,index:jt}),a&&de||(jt=Je.indexOf(rr),ee.current=jt)}return{newValue:Je,activeIndex:jt}},X=Ps(te=>{const de=gs(te,_);if(!de)return;if(I.current+=1,te.type==="mousemove"&&te.buttons===0){Ee(te);return}const{newValue:ye,activeIndex:ve}=ie({finger:de,move:!0});hs({sliderRef:ue,activeIndex:ve,setActive:A}),L(ye),!k&&I.current>gP&&N(!0),j&&!ms(ye,D)&&j(te,ye,ve)}),Ee=Ps(te=>{const de=gs(te,_);if(N(!1),!de)return;const{newValue:ye}=ie({finger:de,move:!0});A(-1),te.type==="touchend"&&E(-1),p&&p(te,ye),_.current=void 0,he()}),fe=Ps(te=>{if(n)return;oc()||te.preventDefault();const de=te.changedTouches[0];de!=null&&(_.current=de.identifier);const ye=gs(te,_);if(ye!==!1){const{newValue:ge,activeIndex:qe}=ie({finger:ye});hs({sliderRef:ue,activeIndex:qe,setActive:A}),L(ge),j&&!ms(ge,D)&&j(te,ge,qe)}I.current=0;const ve=$s(ue.current);ve.addEventListener("touchmove",X),ve.addEventListener("touchend",Ee)}),he=P.useCallback(()=>{const te=$s(ue.current);te.removeEventListener("mousemove",X),te.removeEventListener("mouseup",Ee),te.removeEventListener("touchmove",X),te.removeEventListener("touchend",Ee)},[Ee,X]);P.useEffect(()=>{const{current:te}=ue;return te.addEventListener("touchstart",fe,{passive:oc()}),()=>{te.removeEventListener("touchstart",fe,{passive:oc()}),he()}},[he,fe]),P.useEffect(()=>{n&&he()},[n,he]);const je=te=>de=>{var ye;if((ye=te.onMouseDown)==null||ye.call(te,de),n||de.defaultPrevented||de.button!==0)return;de.preventDefault();const ve=gs(de,_);if(ve!==!1){const{newValue:qe,activeIndex:De}=ie({finger:ve});hs({sliderRef:ue,activeIndex:De,setActive:A}),L(qe),j&&!ms(qe,D)&&j(de,qe,De)}I.current=0;const ge=$s(ue.current);ge.addEventListener("mousemove",X),ge.addEventListener("mouseup",Ee)},nt=qs(q?H[0]:l,l,s),et=qs(H[H.length-1],l,s)-nt,tr=(te={})=>{const de=ac(te),ye={onMouseDown:je(de||{})},ve=ce({},de,ye);return ce({},te,{ref:Q},ve)},Pe=te=>de=>{var ye;(ye=te.onMouseOver)==null||ye.call(te,de);const ve=Number(de.currentTarget.getAttribute("data-index"));E(ve)},$e=te=>de=>{var ye;(ye=te.onMouseLeave)==null||ye.call(te,de),E(-1)};return{active:w,axis:oe,axisProps:yP,dragging:k,focusedThumbIndex:ae,getHiddenInputProps:(te={})=>{var de;const ye=ac(te),ve={onChange:xe(ye||{}),onFocus:Ie(ye||{}),onBlur:Ue(ye||{})},ge=ce({},ye,ve);return ce({tabIndex:v,"aria-labelledby":t,"aria-orientation":g,"aria-valuemax":b(s),"aria-valuemin":b(l),name:c,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":(de=e.step)!=null?de:void 0,disabled:n},te,ge,{style:ce({},pP,{direction:i?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:tr,getThumbProps:(te={})=>{const de=ac(te),ye={onMouseOver:Pe(de||{}),onMouseLeave:$e(de||{})};return ce({},te,de,ye)},marks:z,open:x,range:q,rootRef:Q,trackLeap:et,trackOffset:nt,values:H,getThumbStyle:te=>({pointerEvents:w!==-1&&w!==te?"none":void 0})}}const EP=_b(h.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),xP=_b(h.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),wP=_b(h.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function _P(e){return fb("MuiCheckbox",e)}const TP=pb("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),sc=TP,AP=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],OP=e=>{const{classes:t,indeterminate:r,color:n,size:a}=e,i={root:["root",r&&"indeterminate",`color${Jt(n)}`,`size${Jt(a)}`]},o=hb(i,_P,t);return ce({},t,o)},kP=Mr(WM,{shouldForwardProp:e=>qL(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.indeterminate&&t.indeterminate,t[`size${Jt(r.size)}`],r.color!=="default"&&t[`color${Jt(r.color)}`]]}})(({theme:e,ownerState:t})=>ce({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Hi(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${sc.checked}, &.${sc.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${sc.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),RP=h.jsx(xP,{}),IP=h.jsx(EP,{}),NP=h.jsx(wP,{}),CP=P.forwardRef(function(t,r){var n,a;const i=gb({props:t,name:"MuiCheckbox"}),{checkedIcon:o=RP,color:s="primary",icon:l=IP,indeterminate:c=!1,indeterminateIcon:d=NP,inputProps:p,size:g="medium",className:m}=i,b=jl(i,AP),S=c?d:l,v=c?d:o,O=ce({},i,{color:s,indeterminate:c,size:g}),_=OP(O);return h.jsx(kP,ce({type:"checkbox",inputProps:ce({"data-indeterminate":c},p),icon:P.cloneElement(S,{fontSize:(n=S.props.fontSize)!=null?n:g}),checkedIcon:P.cloneElement(v,{fontSize:(a=v.props.fontSize)!=null?a:g}),ownerState:O,ref:r,className:Cr(_.root,m)},b,{classes:_}))}),DP=CP,LP=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function MP(e,t,r){const n=t.getBoundingClientRect(),a=r&&r.getBoundingClientRect(),i=n1(t);let o;if(t.fakeTransform)o=t.fakeTransform;else{const c=i.getComputedStyle(t);o=c.getPropertyValue("-webkit-transform")||c.getPropertyValue("transform")}let s=0,l=0;if(o&&o!=="none"&&typeof o=="string"){const c=o.split("(")[1].split(")")[0].split(",");s=parseInt(c[4],10),l=parseInt(c[5],10)}return e==="left"?a?`translateX(${a.right+s-n.left}px)`:`translateX(${i.innerWidth+s-n.left}px)`:e==="right"?a?`translateX(-${n.right-a.left-s}px)`:`translateX(-${n.left+n.width-s}px)`:e==="up"?a?`translateY(${a.bottom+l-n.top}px)`:`translateY(${i.innerHeight+l-n.top}px)`:a?`translateY(-${n.top-a.top+n.height-l}px)`:`translateY(-${n.top+n.height-l}px)`}function PP(e){return typeof e=="function"?e():e}function ys(e,t,r){const n=PP(r),a=MP(e,t,n);a&&(t.style.webkitTransform=a,t.style.transform=a)}const $P=P.forwardRef(function(t,r){const n=Fl(),a={enter:n.transitions.easing.easeOut,exit:n.transitions.easing.sharp},i={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:s=!0,children:l,container:c,direction:d="down",easing:p=a,in:g,onEnter:m,onEntered:b,onEntering:S,onExit:v,onExited:O,onExiting:_,style:w,timeout:A=i,TransitionComponent:x=vM}=t,E=jl(t,LP),k=P.useRef(null),N=zs(l.ref,k,r),I=G=>V=>{G&&(V===void 0?G(k.current):G(k.current,V))},D=I((G,V)=>{ys(d,G,c),EM(G),m&&m(G,V)}),L=I((G,V)=>{const J=jv({timeout:A,style:w,easing:p},{mode:"enter"});G.style.webkitTransition=n.transitions.create("-webkit-transform",ce({},J)),G.style.transition=n.transitions.create("transform",ce({},J)),G.style.webkitTransform="none",G.style.transform="none",S&&S(G,V)}),j=I(b),q=I(_),H=I(G=>{const V=jv({timeout:A,style:w,easing:p},{mode:"exit"});G.style.webkitTransition=n.transitions.create("-webkit-transform",V),G.style.transition=n.transitions.create("transform",V),ys(d,G,c),v&&v(G)}),z=I(G=>{G.style.webkitTransition="",G.style.transition="",O&&O(G)}),W=G=>{o&&o(k.current,G)},K=P.useCallback(()=>{k.current&&ys(d,k.current,c)},[d,c]);return P.useEffect(()=>{if(g||d==="down"||d==="right")return;const G=SM(()=>{k.current&&ys(d,k.current,c)}),V=n1(k.current);return V.addEventListener("resize",G),()=>{G.clear(),V.removeEventListener("resize",G)}},[d,g,c]),P.useEffect(()=>{g||K()},[g,K]),h.jsx(x,ce({nodeRef:k,onEnter:D,onEntered:j,onEntering:L,onExit:H,onExited:z,onExiting:q,addEndListener:W,appear:s,in:g,timeout:A},E,{children:(G,V)=>P.cloneElement(l,ce({ref:N,style:ce({visibility:G==="exited"&&!g?"hidden":void 0},w,l.props.style)},V))}))}),Ca=$P,jP=e=>!e||!js(e),FP=jP;function BP(e){return fb("MuiSlider",e)}const UP=pb("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),Dr=UP,GP=e=>{const{open:t}=e;return{offset:Cr(t&&Dr.valueLabelOpen),circle:Dr.valueLabelCircle,label:Dr.valueLabelLabel}};function zP(e){const{children:t,className:r,value:n}=e,a=GP(e);return t?P.cloneElement(t,{className:Cr(t.props.className)},h.jsxs(P.Fragment,{children:[t.props.children,h.jsx("span",{className:Cr(a.offset,r),"aria-hidden":!0,children:h.jsx("span",{className:a.circle,children:h.jsx("span",{className:a.label,children:n})})})]})):null}const qP=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"];function qv(e){return e}const HP=Mr("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`color${Jt(r.color)}`],r.size!=="medium"&&t[`size${Jt(r.size)}`],r.marked&&t.marked,r.orientation==="vertical"&&t.vertical,r.track==="inverted"&&t.trackInverted,r.track===!1&&t.trackFalse]}})(({theme:e,ownerState:t})=>ce({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",color:(e.vars||e).palette[t.color].main,WebkitTapHighlightColor:"transparent"},t.orientation==="horizontal"&&ce({height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}},t.size==="small"&&{height:2},t.marked&&{marginBottom:20}),t.orientation==="vertical"&&ce({height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}},t.size==="small"&&{width:2},t.marked&&{marginRight:44}),{"@media print":{colorAdjust:"exact"},[`&.${Dr.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${Dr.dragging}`]:{[`& .${Dr.thumb}, & .${Dr.track}`]:{transition:"none"}}})),WP=Mr("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})(({ownerState:e})=>ce({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38},e.orientation==="horizontal"&&{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"},e.orientation==="vertical"&&{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"},e.track==="inverted"&&{opacity:1})),VP=Mr("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?HL(e.palette[t.color].main,.62):WL(e.palette[t.color].main,.5);return ce({display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest})},t.size==="small"&&{border:"none"},t.orientation==="horizontal"&&{height:"inherit",top:"50%",transform:"translateY(-50%)"},t.orientation==="vertical"&&{width:"inherit",left:"50%",transform:"translateX(-50%)"},t.track===!1&&{display:"none"},t.track==="inverted"&&{backgroundColor:e.vars?e.vars.palette.Slider[`${t.color}Track`]:r,borderColor:e.vars?e.vars.palette.Slider[`${t.color}Track`]:r})}),YP=Mr("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.thumb,t[`thumbColor${Jt(r.color)}`],r.size!=="medium"&&t[`thumbSize${Jt(r.size)}`]]}})(({theme:e,ownerState:t})=>ce({position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest})},t.size==="small"&&{width:12,height:12},t.orientation==="horizontal"&&{top:"50%",transform:"translate(-50%, -50%)"},t.orientation==="vertical"&&{left:"50%",transform:"translate(-50%, 50%)"},{"&:before":ce({position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},t.size==="small"&&{boxShadow:"none"}),"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&:hover, &.${Dr.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:Hi(e.palette[t.color].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${Dr.active}`]:{boxShadow:`0px 0px 0px 14px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:Hi(e.palette[t.color].main,.16)}`},[`&.${Dr.disabled}`]:{"&:hover":{boxShadow:"none"}}})),KP=Mr(zP,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e,ownerState:t})=>ce({[`&.${Dr.valueLabelOpen}`]:{transform:`${t.orientation==="vertical"?"translateY(-50%)":"translateY(-100%)"} scale(1)`},zIndex:1,whiteSpace:"nowrap"},e.typography.body2,{fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),transform:`${t.orientation==="vertical"?"translateY(-50%)":"translateY(-100%)"} scale(0)`,position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem"},t.orientation==="horizontal"&&{top:"-10px",transformOrigin:"bottom center","&:before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"}},t.orientation==="vertical"&&{right:t.size==="small"?"20px":"30px",top:"50%",transformOrigin:"right center","&:before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"}},t.size==="small"&&{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"})),XP=Mr("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>VO(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:r}=e;return[t.mark,r&&t.markActive]}})(({theme:e,ownerState:t,markActive:r})=>ce({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor"},t.orientation==="horizontal"&&{top:"50%",transform:"translate(-1px, -50%)"},t.orientation==="vertical"&&{left:"50%",transform:"translate(-50%, 1px)"},r&&{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8})),ZP=Mr("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>VO(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e,ownerState:t,markLabelActive:r})=>ce({},e.typography.body2,{color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap"},t.orientation==="horizontal"&&{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}},t.orientation==="vertical"&&{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}},r&&{color:(e.vars||e).palette.text.primary})),JP=e=>{const{disabled:t,dragging:r,marked:n,orientation:a,track:i,classes:o,color:s,size:l}=e,c={root:["root",t&&"disabled",r&&"dragging",n&&"marked",a==="vertical"&&"vertical",i==="inverted"&&"trackInverted",i===!1&&"trackFalse",s&&`color${Jt(s)}`,l&&`size${Jt(l)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",l&&`thumbSize${Jt(l)}`,s&&`thumbColor${Jt(s)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return hb(c,BP,o)},QP=({children:e})=>e,e$=P.forwardRef(function(t,r){var n,a,i,o,s,l,c,d,p,g,m,b,S,v,O,_,w,A,x,E,k,N,I,D;const L=gb({props:t,name:"MuiSlider"}),q=Fl().direction==="rtl",{"aria-label":H,"aria-valuetext":z,"aria-labelledby":W,component:K="span",components:G={},componentsProps:V={},color:J="primary",classes:ae,className:re,disableSwap:ue=!1,disabled:Se=!1,getAriaLabel:Q,getAriaValueText:Ie,marks:Ue=!1,max:xe=100,min:ee=0,orientation:oe="horizontal",size:ie="medium",step:X=1,scale:Ee=qv,slotProps:fe,slots:he,track:je="normal",valueLabelDisplay:nt="off",valueLabelFormat:et=qv}=L,tr=jl(L,qP),Pe=ce({},L,{isRtl:q,max:xe,min:ee,classes:ae,disabled:Se,disableSwap:ue,orientation:oe,marks:Ue,color:J,size:ie,step:X,scale:Ee,track:je,valueLabelDisplay:nt,valueLabelFormat:et}),{axisProps:$e,getRootProps:Ye,getHiddenInputProps:$t,getThumbProps:Kt,open:te,active:de,axis:ye,focusedThumbIndex:ve,range:ge,dragging:qe,marks:De,values:Ge,trackOffset:Je,trackLeap:jt,getThumbStyle:rr}=SP(ce({},Pe,{rootRef:r}));Pe.marked=De.length>0&&De.some(_e=>_e.label),Pe.dragging=qe,Pe.focusedThumbIndex=ve;const ze=JP(Pe),Kr=(n=(a=he==null?void 0:he.root)!=null?a:G.Root)!=null?n:HP,Xr=(i=(o=he==null?void 0:he.rail)!=null?o:G.Rail)!=null?i:WP,Zr=(s=(l=he==null?void 0:he.track)!=null?l:G.Track)!=null?s:VP,He=(c=(d=he==null?void 0:he.thumb)!=null?d:G.Thumb)!=null?c:YP,Bn=(p=(g=he==null?void 0:he.valueLabel)!=null?g:G.ValueLabel)!=null?p:KP,Jr=(m=(b=he==null?void 0:he.mark)!=null?b:G.Mark)!=null?m:XP,xr=(S=(v=he==null?void 0:he.markLabel)!=null?v:G.MarkLabel)!=null?S:ZP,Qr=(O=(_=he==null?void 0:he.input)!=null?_:G.Input)!=null?O:"input",wr=(w=fe==null?void 0:fe.root)!=null?w:V.root,_r=(A=fe==null?void 0:fe.rail)!=null?A:V.rail,Tr=(x=fe==null?void 0:fe.track)!=null?x:V.track,Un=(E=fe==null?void 0:fe.thumb)!=null?E:V.thumb,Fr=(k=fe==null?void 0:fe.valueLabel)!=null?k:V.valueLabel,li=(N=fe==null?void 0:fe.mark)!=null?N:V.mark,Ar=(I=fe==null?void 0:fe.markLabel)!=null?I:V.markLabel,En=(D=fe==null?void 0:fe.input)!=null?D:V.input,le=Tn({elementType:Kr,getSlotProps:Ye,externalSlotProps:wr,externalForwardedProps:tr,additionalProps:ce({},FP(Kr)&&{as:K}),ownerState:ce({},Pe,wr==null?void 0:wr.ownerState),className:[ze.root,re]}),Gn=Tn({elementType:Xr,externalSlotProps:_r,ownerState:Pe,className:ze.rail}),Ft=Tn({elementType:Zr,externalSlotProps:Tr,additionalProps:{style:ce({},$e[ye].offset(Je),$e[ye].leap(jt))},ownerState:ce({},Pe,Tr==null?void 0:Tr.ownerState),className:ze.track}),ut=Tn({elementType:He,getSlotProps:Kt,externalSlotProps:Un,ownerState:ce({},Pe,Un==null?void 0:Un.ownerState),className:ze.thumb}),zn=Tn({elementType:Bn,externalSlotProps:Fr,ownerState:ce({},Pe,Fr==null?void 0:Fr.ownerState),className:ze.valueLabel}),Oe=Tn({elementType:Jr,externalSlotProps:li,ownerState:Pe,className:ze.mark}),nr=Tn({elementType:xr,externalSlotProps:Ar,ownerState:Pe,className:ze.markLabel}),da=Tn({elementType:Qr,getSlotProps:$t,externalSlotProps:En,ownerState:Pe});return h.jsxs(Kr,ce({},le,{children:[h.jsx(Xr,ce({},Gn)),h.jsx(Zr,ce({},Ft)),De.filter(_e=>_e.value>=ee&&_e.value<=xe).map((_e,We)=>{const kt=qs(_e.value,ee,xe),tt=$e[ye].offset(kt);let ct;return je===!1?ct=Ge.indexOf(_e.value)!==-1:ct=je==="normal"&&(ge?_e.value>=Ge[0]&&_e.value<=Ge[Ge.length-1]:_e.value<=Ge[0])||je==="inverted"&&(ge?_e.value<=Ge[0]||_e.value>=Ge[Ge.length-1]:_e.value>=Ge[0]),h.jsxs(P.Fragment,{children:[h.jsx(Jr,ce({"data-index":We},Oe,!js(Jr)&&{markActive:ct},{style:ce({},tt,Oe.style),className:Cr(Oe.className,ct&&ze.markActive)})),_e.label!=null?h.jsx(xr,ce({"aria-hidden":!0,"data-index":We},nr,!js(xr)&&{markLabelActive:ct},{style:ce({},tt,nr.style),className:Cr(ze.markLabel,nr.className,ct&&ze.markLabelActive),children:_e.label})):null]},We)}),Ge.map((_e,We)=>{const kt=qs(_e,ee,xe),tt=$e[ye].offset(kt),ct=nt==="off"?QP:Bn;return h.jsx(ct,ce({},!js(ct)&&{valueLabelFormat:et,valueLabelDisplay:nt,value:typeof et=="function"?et(Ee(_e),We):et,index:We,open:te===We||de===We||nt==="on",disabled:Se},zn,{children:h.jsx(He,ce({"data-index":We},ut,{className:Cr(ze.thumb,ut.className,de===We&&ze.active,ve===We&&ze.focusVisible),style:ce({},tt,rr(We),ut.style),children:h.jsx(Qr,ce({"data-index":We,"aria-label":Q?Q(We):H,"aria-valuenow":Ee(_e),"aria-labelledby":W,"aria-valuetext":Ie?Ie(Ee(_e),We):z,value:Ge[We]},da))}))}),We)})]}))}),Wl=e$;function t$(e){return fb("MuiTooltip",e)}const r$=pb("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),Nn=r$,n$=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function a$(e){return Math.round(e*1e5)/1e5}const i$=e=>{const{classes:t,disableInteractive:r,arrow:n,touch:a,placement:i}=e,o={popper:["popper",!r&&"popperInteractive",n&&"popperArrow"],tooltip:["tooltip",n&&"tooltipArrow",a&&"touch",`tooltipPlacement${Jt(i.split("-")[0])}`],arrow:["arrow"]};return hb(o,t$,t)},o$=Mr(xb,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.popper,!r.disableInteractive&&t.popperInteractive,r.arrow&&t.popperArrow,!r.open&&t.popperClose]}})(({theme:e,ownerState:t,open:r})=>ce({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!r&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${Nn.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Nn.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Nn.arrow}`]:ce({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${Nn.arrow}`]:ce({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),s$=Mr("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.tooltip,r.touch&&t.touch,r.arrow&&t.tooltipArrow,t[`tooltipPlacement${Jt(r.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>ce({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Hi(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${a$(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${Nn.popper}[data-popper-placement*="left"] &`]:ce({transformOrigin:"right center"},t.isRtl?ce({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):ce({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${Nn.popper}[data-popper-placement*="right"] &`]:ce({transformOrigin:"left center"},t.isRtl?ce({marginRight:"14px"},t.touch&&{marginRight:"24px"}):ce({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${Nn.popper}[data-popper-placement*="top"] &`]:ce({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${Nn.popper}[data-popper-placement*="bottom"] &`]:ce({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),l$=Mr("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:Hi(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let vs=!1,lc=null,mi={x:0,y:0};function Ss(e,t){return r=>{t&&t(r),e(r)}}const u$=P.forwardRef(function(t,r){var n,a,i,o,s,l,c,d,p,g,m,b,S,v,O,_,w,A,x;const E=gb({props:t,name:"MuiTooltip"}),{arrow:k=!1,children:N,components:I={},componentsProps:D={},describeChild:L=!1,disableFocusListener:j=!1,disableHoverListener:q=!1,disableInteractive:H=!1,disableTouchListener:z=!1,enterDelay:W=100,enterNextDelay:K=0,enterTouchDelay:G=700,followCursor:V=!1,id:J,leaveDelay:ae=0,leaveTouchDelay:re=1500,onClose:ue,onOpen:Se,open:Q,placement:Ie="bottom",PopperComponent:Ue,PopperProps:xe={},slotProps:ee={},slots:oe={},title:ie,TransitionComponent:X=Fv,TransitionProps:Ee}=E,fe=jl(E,n$),he=P.isValidElement(N)?N:h.jsx("span",{children:N}),je=Fl(),nt=je.direction==="rtl",[et,tr]=P.useState(),[Pe,$e]=P.useState(null),Ye=P.useRef(!1),$t=H||V,Kt=P.useRef(),te=P.useRef(),de=P.useRef(),ye=P.useRef(),[ve,ge]=h1({controlled:Q,default:!1,name:"Tooltip",state:"open"});let qe=ve;const De=qM(J),Ge=P.useRef(),Je=P.useCallback(()=>{Ge.current!==void 0&&(document.body.style.WebkitUserSelect=Ge.current,Ge.current=void 0),clearTimeout(ye.current)},[]);P.useEffect(()=>()=>{clearTimeout(Kt.current),clearTimeout(te.current),clearTimeout(de.current),Je()},[Je]);const jt=ke=>{clearTimeout(lc),vs=!0,ge(!0),Se&&!qe&&Se(ke)},rr=Ps(ke=>{clearTimeout(lc),lc=setTimeout(()=>{vs=!1},800+ae),ge(!1),ue&&qe&&ue(ke),clearTimeout(Kt.current),Kt.current=setTimeout(()=>{Ye.current=!1},je.transitions.duration.shortest)}),ze=ke=>{Ye.current&&ke.type!=="touchstart"||(et&&et.removeAttribute("title"),clearTimeout(te.current),clearTimeout(de.current),W||vs&&K?te.current=setTimeout(()=>{jt(ke)},vs?K:W):jt(ke))},Kr=ke=>{clearTimeout(te.current),clearTimeout(de.current),de.current=setTimeout(()=>{rr(ke)},ae)},{isFocusVisibleRef:Xr,onBlur:Zr,onFocus:He,ref:Bn}=WO(),[,Jr]=P.useState(!1),xr=ke=>{Zr(ke),Xr.current===!1&&(Jr(!1),Kr(ke))},Qr=ke=>{et||tr(ke.currentTarget),He(ke),Xr.current===!0&&(Jr(!0),ze(ke))},wr=ke=>{Ye.current=!0;const Bt=he.props;Bt.onTouchStart&&Bt.onTouchStart(ke)},_r=ze,Tr=Kr,Un=ke=>{wr(ke),clearTimeout(de.current),clearTimeout(Kt.current),Je(),Ge.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ye.current=setTimeout(()=>{document.body.style.WebkitUserSelect=Ge.current,ze(ke)},G)},Fr=ke=>{he.props.onTouchEnd&&he.props.onTouchEnd(ke),Je(),clearTimeout(de.current),de.current=setTimeout(()=>{rr(ke)},re)};P.useEffect(()=>{if(!qe)return;function ke(Bt){(Bt.key==="Escape"||Bt.key==="Esc")&&rr(Bt)}return document.addEventListener("keydown",ke),()=>{document.removeEventListener("keydown",ke)}},[rr,qe]);const li=zs(he.ref,Bn,tr,r);!ie&&ie!==0&&(qe=!1);const Ar=P.useRef(),En=ke=>{const Bt=he.props;Bt.onMouseMove&&Bt.onMouseMove(ke),mi={x:ke.clientX,y:ke.clientY},Ar.current&&Ar.current.update()},le={},Gn=typeof ie=="string";L?(le.title=!qe&&Gn&&!q?ie:null,le["aria-describedby"]=qe?De:null):(le["aria-label"]=Gn?ie:null,le["aria-labelledby"]=qe&&!Gn?De:null);const Ft=ce({},le,fe,he.props,{className:Cr(fe.className,he.props.className),onTouchStart:wr,ref:li},V?{onMouseMove:En}:{}),ut={};z||(Ft.onTouchStart=Un,Ft.onTouchEnd=Fr),q||(Ft.onMouseOver=Ss(_r,Ft.onMouseOver),Ft.onMouseLeave=Ss(Tr,Ft.onMouseLeave),$t||(ut.onMouseOver=_r,ut.onMouseLeave=Tr)),j||(Ft.onFocus=Ss(Qr,Ft.onFocus),Ft.onBlur=Ss(xr,Ft.onBlur),$t||(ut.onFocus=Qr,ut.onBlur=xr));const zn=P.useMemo(()=>{var ke;let Bt=[{name:"arrow",enabled:!!Pe,options:{element:Pe,padding:4}}];return(ke=xe.popperOptions)!=null&&ke.modifiers&&(Bt=Bt.concat(xe.popperOptions.modifiers)),ce({},xe.popperOptions,{modifiers:Bt})},[Pe,xe]),Oe=ce({},E,{isRtl:nt,arrow:k,disableInteractive:$t,placement:Ie,PopperComponentProp:Ue,touch:Ye.current}),nr=i$(Oe),da=(n=(a=oe.popper)!=null?a:I.Popper)!=null?n:o$,_e=(i=(o=(s=oe.transition)!=null?s:I.Transition)!=null?o:X)!=null?i:Fv,We=(l=(c=oe.tooltip)!=null?c:I.Tooltip)!=null?l:s$,kt=(d=(p=oe.arrow)!=null?p:I.Arrow)!=null?d:l$,tt=fs(da,ce({},xe,(g=ee.popper)!=null?g:D.popper,{className:Cr(nr.popper,xe==null?void 0:xe.className,(m=(b=ee.popper)!=null?b:D.popper)==null?void 0:m.className)}),Oe),ct=fs(_e,ce({},Ee,(S=ee.transition)!=null?S:D.transition),Oe),Or=fs(We,ce({},(v=ee.tooltip)!=null?v:D.tooltip,{className:Cr(nr.tooltip,(O=(_=ee.tooltip)!=null?_:D.tooltip)==null?void 0:O.className)}),Oe),en=fs(kt,ce({},(w=ee.arrow)!=null?w:D.arrow,{className:Cr(nr.arrow,(A=(x=ee.arrow)!=null?x:D.arrow)==null?void 0:A.className)}),Oe);return h.jsxs(P.Fragment,{children:[P.cloneElement(he,Ft),h.jsx(da,ce({as:Ue??xb,placement:Ie,anchorEl:V?{getBoundingClientRect:()=>({top:mi.y,left:mi.x,right:mi.x,bottom:mi.y,width:0,height:0})}:et,popperRef:Ar,open:et?qe:!1,id:De,transition:!0},ut,tt,{popperOptions:zn,children:({TransitionProps:ke})=>h.jsx(_e,ce({timeout:je.transitions.duration.shorter},ke,ct,{children:h.jsxs(We,ce({},Or,{children:[ie,k?h.jsx(kt,ce({},en,{ref:$e})):null]}))}))}))]})}),c$=u$,d$=(e,t="down")=>{const r=Fl(),[n,a]=P.useState(!1),i=r.breakpoints[t](e).split("@media")[1].trim();return P.useEffect(()=>{const o=()=>{const{matches:s}=window.matchMedia(i);a(s)};return o(),window.addEventListener("resize",o),()=>window.removeEventListener("resize",o)},[i]),n},p$=e=>e.filter(t=>t.tldr).length>=2&&e.some(t=>t.audio_EN);function f$(e){return e.tldr_topic??e.name}var Hs=globalThis&&globalThis.__assign||function(){return Hs=Object.assign||function(e){for(var t,r=1,n=arguments.length;r({autoCorrect:"off",autoComplete:"off"}))` +import{z as HO,af as xa,i as Mv,ag as GL,r as P,ah as WO,Z as zs,$ as zL,a2 as Ps,x as ce,j as h,M as pb,L as fb,O as Mr,ai as qL,Y as Jt,P as Hi,S as gb,H as jl,U as Cr,V as hb,a3 as Fl,aj as HL,ak as WL,al as VO,s as B,a as M,am as YO,an as mb,o as Bl,F,t as VL,u as Pr,b as Ul,ao as KO,v as YL,T as pt,ap as KL,A as dn,k as Ct,d as bb,aq as ei,ar as Tt,as as XL,a9 as ft,B as Mt,n as XO,q as ZO,C as JO,y as ZL,at as QO,e as Pv,p as JL,au as e1,av as t1,aw as ti,ax as Ne,J as U,ay as QL,az as eM,aA as tM,aB as Gl,aC as rM,aD as nM,aE as aM,aF as iM,aG as r1,aH as oM,aI as zl,aJ as sM,aK as lM,aL as uM,aM as cM,ac as dM,aN as $v,l as pM,aO as fM,aP as gM,I as hM,D as mM,_ as ir,aQ as bM,aR as yM}from"./index-6541aa03.js";import{G as na,J as $s,K as ac,L as n1,Q as vM,U as SM,V as EM,W as jv,X as js,Y as Tn,Z as Fv,_ as fs,$ as a1,a0 as xM,g as yb,a1 as i1,b as $r,a2 as vn,a3 as o1,h as s1,a4 as wM,u as Mo,a5 as _M,a6 as vb,a7 as ql,a8 as TM,a9 as l1,aa as u1,ab as AM,P as OM,ac as c1,ad as kM,ae as RM,af as IM,ag as NM,d as Sb,e as Eb,ah as CM,ai as DM,aj as LM,m as Pt,ak as d1,al as MM,f as p1,am as PM,c as Po,an as $M,ao as jM,ap as FM,aq as BM,s as UM,ar as f1,as as GM}from"./index-ad617d4b.js";import{c as zM,a as ic,C as Hl}from"./ClipLoader-708ab7a4.js";import{S as g1}from"./Skeleton-851daffa.js";import{u as h1,P as xb,a as qM,F as HM}from"./Stack-bcf44d60.js";import{T as ri}from"./index-8f946e20.js";import{S as WM,F as Bv,i as $o,g as yr,t as VM,_ as m1,a as YM,b as KM,c as ia,d as wb,e as XM,f as ZM,h as JM,j as jo,m as QM,k as eP,l as tP,n as b1,o as rP,p as nP}from"./isPlainObject-5d028b0a.js";import{c as _b}from"./createSvgIcon-0b5f6bf4.js";import{useBriefDescriptionStore as aP}from"./index-badf8d31.js";import{P as we,p as iP}from"./index-049c9db0.js";import{u as y1}from"./index-070f6d98.js";const Uv="023d8eb306f0027b902fbdc81d33b49b6558b3434d374626f8c324979c92d47c21",oP=async e=>{let t=await xa.enable(!0);if(t||console.warn("Sphinx enable failed, means no pubkey and no budget (including budget of 0)"),t=await xa.keysend(Uv,e),!(t!=null&&t.success)){if(t=await xa.topup(),t||(t=await xa.authorize()),!(t!=null&&t.budget)||(t==null?void 0:t.budget){const r=await oP(t),n={amount:t,refid:e};return await HO.post("/boost",JSON.stringify(n)),r};function Tb(e){return e?String(e).replace(/[[]{2}/g,"").replace(/[\]]{2}/g,""):""}const lP=e=>{const[t,r]=e.split("-")||["",""];return parseInt(r,10)!==0?`${t} - ${r}`:t},v1=(e,t)=>{if(!t)return null;const r=e.filter(i=>i.show_title&&i.link&&i.show_title===t.show_title&&i.episode_title===t.episode_title),n=Mv.groupBy(r,i=>i.timestamp),a=Mv.values(n).reduce((i,o)=>(o[0]&&i.push(o[0]),i),[]);return a.sort((i,o)=>{var p,g;const[s]=((p=i.timestamp)==null?void 0:p.split("-"))||[""],[l]=((g=o.timestamp)==null?void 0:g.split("-"))||[""],c=na(s),d=na(l);return c-d}),a},uP=async e=>{await GL(async()=>{try{await xa.saveGraphData({metaData:{date:Math.floor(new Date().getTime()/1e3),...e},type:"second_brain_consumed_content"})}catch(t){console.warn(t)}})},cP=e=>{const t=/((http|https):\/\/[^\s]+)/g,r=/@(\w+)/g;let n=e.replace(/\\/g,"");return n=n.replace(/'/g,"’"),n=n.replace(/\n/g,"
"),n=n.replace(t,'$1'),n=n.replace(r,'@$1'),n},dP={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},pP=dP;function fP(e,t,r=(n,a)=>n===a){return e.length===t.length&&e.every((n,a)=>r(n,t[a]))}const gP=2;function S1(e,t){return e-t}function hi(e,t,r){return e==null?t:Math.min(Math.max(t,e),r)}function Gv(e,t){var r;const{index:n}=(r=e.reduce((a,i,o)=>{const s=Math.abs(t-i);return a===null||s({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},vP=e=>e;let bs;function oc(){return bs===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?bs=CSS.supports("touch-action","none"):bs=!0),bs}function SP(e){const{"aria-labelledby":t,defaultValue:r,disabled:n=!1,disableSwap:a=!1,isRtl:i=!1,marks:o=!1,max:s=100,min:l=0,name:c,onChange:d,onChangeCommitted:p,orientation:g="horizontal",rootRef:m,scale:b=vP,step:S=1,tabIndex:v,value:O}=e,_=P.useRef(),[w,A]=P.useState(-1),[x,E]=P.useState(-1),[k,N]=P.useState(!1),I=P.useRef(0),[D,L]=h1({controlled:O,default:r??l,name:"Slider"}),j=d&&((te,de,ye)=>{const ve=te.nativeEvent||te,ge=new ve.constructor(ve.type,ve);Object.defineProperty(ge,"target",{writable:!0,value:{value:de,name:c}}),d(ge,de,ye)}),q=Array.isArray(D);let H=q?D.slice().sort(S1):[D];H=H.map(te=>hi(te,l,s));const z=o===!0&&S!==null?[...Array(Math.floor((s-l)/S)+1)].map((te,de)=>({value:l+S*de})):o||[],W=z.map(te=>te.value),{isFocusVisibleRef:K,onBlur:G,onFocus:V,ref:J}=WO(),[ae,re]=P.useState(-1),ue=P.useRef(),Se=zs(J,ue),Q=zs(m,Se),Ie=te=>de=>{var ye;const ve=Number(de.currentTarget.getAttribute("data-index"));V(de),K.current===!0&&re(ve),E(ve),te==null||(ye=te.onFocus)==null||ye.call(te,de)},Ue=te=>de=>{var ye;G(de),K.current===!1&&re(-1),E(-1),te==null||(ye=te.onBlur)==null||ye.call(te,de)};zL(()=>{if(n&&ue.current.contains(document.activeElement)){var te;(te=document.activeElement)==null||te.blur()}},[n]),n&&w!==-1&&A(-1),n&&ae!==-1&&re(-1);const xe=te=>de=>{var ye;(ye=te.onChange)==null||ye.call(te,de);const ve=Number(de.currentTarget.getAttribute("data-index")),ge=H[ve],qe=W.indexOf(ge);let De=de.target.valueAsNumber;if(z&&S==null){const Ge=W[W.length-1];De>Ge?De=Ge:De{const{current:ye}=ue,{width:ve,height:ge,bottom:qe,left:De}=ye.getBoundingClientRect();let Ge;oe.indexOf("vertical")===0?Ge=(qe-te.y)/ge:Ge=(te.x-De)/ve,oe.indexOf("-reverse")!==-1&&(Ge=1-Ge);let Je;if(Je=hP(Ge,l,s),S)Je=bP(Je,S,l);else{const rr=Gv(W,Je);Je=W[rr]}Je=hi(Je,l,s);let jt=0;if(q){de?jt=ee.current:jt=Gv(H,Je),a&&(Je=hi(Je,H[jt-1]||-1/0,H[jt+1]||1/0));const rr=Je;Je=zv({values:H,newValue:Je,index:jt}),a&&de||(jt=Je.indexOf(rr),ee.current=jt)}return{newValue:Je,activeIndex:jt}},X=Ps(te=>{const de=gs(te,_);if(!de)return;if(I.current+=1,te.type==="mousemove"&&te.buttons===0){Ee(te);return}const{newValue:ye,activeIndex:ve}=ie({finger:de,move:!0});hs({sliderRef:ue,activeIndex:ve,setActive:A}),L(ye),!k&&I.current>gP&&N(!0),j&&!ms(ye,D)&&j(te,ye,ve)}),Ee=Ps(te=>{const de=gs(te,_);if(N(!1),!de)return;const{newValue:ye}=ie({finger:de,move:!0});A(-1),te.type==="touchend"&&E(-1),p&&p(te,ye),_.current=void 0,he()}),fe=Ps(te=>{if(n)return;oc()||te.preventDefault();const de=te.changedTouches[0];de!=null&&(_.current=de.identifier);const ye=gs(te,_);if(ye!==!1){const{newValue:ge,activeIndex:qe}=ie({finger:ye});hs({sliderRef:ue,activeIndex:qe,setActive:A}),L(ge),j&&!ms(ge,D)&&j(te,ge,qe)}I.current=0;const ve=$s(ue.current);ve.addEventListener("touchmove",X),ve.addEventListener("touchend",Ee)}),he=P.useCallback(()=>{const te=$s(ue.current);te.removeEventListener("mousemove",X),te.removeEventListener("mouseup",Ee),te.removeEventListener("touchmove",X),te.removeEventListener("touchend",Ee)},[Ee,X]);P.useEffect(()=>{const{current:te}=ue;return te.addEventListener("touchstart",fe,{passive:oc()}),()=>{te.removeEventListener("touchstart",fe,{passive:oc()}),he()}},[he,fe]),P.useEffect(()=>{n&&he()},[n,he]);const je=te=>de=>{var ye;if((ye=te.onMouseDown)==null||ye.call(te,de),n||de.defaultPrevented||de.button!==0)return;de.preventDefault();const ve=gs(de,_);if(ve!==!1){const{newValue:qe,activeIndex:De}=ie({finger:ve});hs({sliderRef:ue,activeIndex:De,setActive:A}),L(qe),j&&!ms(qe,D)&&j(de,qe,De)}I.current=0;const ge=$s(ue.current);ge.addEventListener("mousemove",X),ge.addEventListener("mouseup",Ee)},nt=qs(q?H[0]:l,l,s),et=qs(H[H.length-1],l,s)-nt,tr=(te={})=>{const de=ac(te),ye={onMouseDown:je(de||{})},ve=ce({},de,ye);return ce({},te,{ref:Q},ve)},Pe=te=>de=>{var ye;(ye=te.onMouseOver)==null||ye.call(te,de);const ve=Number(de.currentTarget.getAttribute("data-index"));E(ve)},$e=te=>de=>{var ye;(ye=te.onMouseLeave)==null||ye.call(te,de),E(-1)};return{active:w,axis:oe,axisProps:yP,dragging:k,focusedThumbIndex:ae,getHiddenInputProps:(te={})=>{var de;const ye=ac(te),ve={onChange:xe(ye||{}),onFocus:Ie(ye||{}),onBlur:Ue(ye||{})},ge=ce({},ye,ve);return ce({tabIndex:v,"aria-labelledby":t,"aria-orientation":g,"aria-valuemax":b(s),"aria-valuemin":b(l),name:c,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":(de=e.step)!=null?de:void 0,disabled:n},te,ge,{style:ce({},pP,{direction:i?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:tr,getThumbProps:(te={})=>{const de=ac(te),ye={onMouseOver:Pe(de||{}),onMouseLeave:$e(de||{})};return ce({},te,de,ye)},marks:z,open:x,range:q,rootRef:Q,trackLeap:et,trackOffset:nt,values:H,getThumbStyle:te=>({pointerEvents:w!==-1&&w!==te?"none":void 0})}}const EP=_b(h.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),xP=_b(h.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),wP=_b(h.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function _P(e){return fb("MuiCheckbox",e)}const TP=pb("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),sc=TP,AP=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],OP=e=>{const{classes:t,indeterminate:r,color:n,size:a}=e,i={root:["root",r&&"indeterminate",`color${Jt(n)}`,`size${Jt(a)}`]},o=hb(i,_P,t);return ce({},t,o)},kP=Mr(WM,{shouldForwardProp:e=>qL(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.indeterminate&&t.indeterminate,t[`size${Jt(r.size)}`],r.color!=="default"&&t[`color${Jt(r.color)}`]]}})(({theme:e,ownerState:t})=>ce({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Hi(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${sc.checked}, &.${sc.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${sc.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),RP=h.jsx(xP,{}),IP=h.jsx(EP,{}),NP=h.jsx(wP,{}),CP=P.forwardRef(function(t,r){var n,a;const i=gb({props:t,name:"MuiCheckbox"}),{checkedIcon:o=RP,color:s="primary",icon:l=IP,indeterminate:c=!1,indeterminateIcon:d=NP,inputProps:p,size:g="medium",className:m}=i,b=jl(i,AP),S=c?d:l,v=c?d:o,O=ce({},i,{color:s,indeterminate:c,size:g}),_=OP(O);return h.jsx(kP,ce({type:"checkbox",inputProps:ce({"data-indeterminate":c},p),icon:P.cloneElement(S,{fontSize:(n=S.props.fontSize)!=null?n:g}),checkedIcon:P.cloneElement(v,{fontSize:(a=v.props.fontSize)!=null?a:g}),ownerState:O,ref:r,className:Cr(_.root,m)},b,{classes:_}))}),DP=CP,LP=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function MP(e,t,r){const n=t.getBoundingClientRect(),a=r&&r.getBoundingClientRect(),i=n1(t);let o;if(t.fakeTransform)o=t.fakeTransform;else{const c=i.getComputedStyle(t);o=c.getPropertyValue("-webkit-transform")||c.getPropertyValue("transform")}let s=0,l=0;if(o&&o!=="none"&&typeof o=="string"){const c=o.split("(")[1].split(")")[0].split(",");s=parseInt(c[4],10),l=parseInt(c[5],10)}return e==="left"?a?`translateX(${a.right+s-n.left}px)`:`translateX(${i.innerWidth+s-n.left}px)`:e==="right"?a?`translateX(-${n.right-a.left-s}px)`:`translateX(-${n.left+n.width-s}px)`:e==="up"?a?`translateY(${a.bottom+l-n.top}px)`:`translateY(${i.innerHeight+l-n.top}px)`:a?`translateY(-${n.top-a.top+n.height-l}px)`:`translateY(-${n.top+n.height-l}px)`}function PP(e){return typeof e=="function"?e():e}function ys(e,t,r){const n=PP(r),a=MP(e,t,n);a&&(t.style.webkitTransform=a,t.style.transform=a)}const $P=P.forwardRef(function(t,r){const n=Fl(),a={enter:n.transitions.easing.easeOut,exit:n.transitions.easing.sharp},i={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:s=!0,children:l,container:c,direction:d="down",easing:p=a,in:g,onEnter:m,onEntered:b,onEntering:S,onExit:v,onExited:O,onExiting:_,style:w,timeout:A=i,TransitionComponent:x=vM}=t,E=jl(t,LP),k=P.useRef(null),N=zs(l.ref,k,r),I=G=>V=>{G&&(V===void 0?G(k.current):G(k.current,V))},D=I((G,V)=>{ys(d,G,c),EM(G),m&&m(G,V)}),L=I((G,V)=>{const J=jv({timeout:A,style:w,easing:p},{mode:"enter"});G.style.webkitTransition=n.transitions.create("-webkit-transform",ce({},J)),G.style.transition=n.transitions.create("transform",ce({},J)),G.style.webkitTransform="none",G.style.transform="none",S&&S(G,V)}),j=I(b),q=I(_),H=I(G=>{const V=jv({timeout:A,style:w,easing:p},{mode:"exit"});G.style.webkitTransition=n.transitions.create("-webkit-transform",V),G.style.transition=n.transitions.create("transform",V),ys(d,G,c),v&&v(G)}),z=I(G=>{G.style.webkitTransition="",G.style.transition="",O&&O(G)}),W=G=>{o&&o(k.current,G)},K=P.useCallback(()=>{k.current&&ys(d,k.current,c)},[d,c]);return P.useEffect(()=>{if(g||d==="down"||d==="right")return;const G=SM(()=>{k.current&&ys(d,k.current,c)}),V=n1(k.current);return V.addEventListener("resize",G),()=>{G.clear(),V.removeEventListener("resize",G)}},[d,g,c]),P.useEffect(()=>{g||K()},[g,K]),h.jsx(x,ce({nodeRef:k,onEnter:D,onEntered:j,onEntering:L,onExit:H,onExited:z,onExiting:q,addEndListener:W,appear:s,in:g,timeout:A},E,{children:(G,V)=>P.cloneElement(l,ce({ref:N,style:ce({visibility:G==="exited"&&!g?"hidden":void 0},w,l.props.style)},V))}))}),Ca=$P,jP=e=>!e||!js(e),FP=jP;function BP(e){return fb("MuiSlider",e)}const UP=pb("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),Dr=UP,GP=e=>{const{open:t}=e;return{offset:Cr(t&&Dr.valueLabelOpen),circle:Dr.valueLabelCircle,label:Dr.valueLabelLabel}};function zP(e){const{children:t,className:r,value:n}=e,a=GP(e);return t?P.cloneElement(t,{className:Cr(t.props.className)},h.jsxs(P.Fragment,{children:[t.props.children,h.jsx("span",{className:Cr(a.offset,r),"aria-hidden":!0,children:h.jsx("span",{className:a.circle,children:h.jsx("span",{className:a.label,children:n})})})]})):null}const qP=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"];function qv(e){return e}const HP=Mr("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`color${Jt(r.color)}`],r.size!=="medium"&&t[`size${Jt(r.size)}`],r.marked&&t.marked,r.orientation==="vertical"&&t.vertical,r.track==="inverted"&&t.trackInverted,r.track===!1&&t.trackFalse]}})(({theme:e,ownerState:t})=>ce({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",color:(e.vars||e).palette[t.color].main,WebkitTapHighlightColor:"transparent"},t.orientation==="horizontal"&&ce({height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}},t.size==="small"&&{height:2},t.marked&&{marginBottom:20}),t.orientation==="vertical"&&ce({height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}},t.size==="small"&&{width:2},t.marked&&{marginRight:44}),{"@media print":{colorAdjust:"exact"},[`&.${Dr.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${Dr.dragging}`]:{[`& .${Dr.thumb}, & .${Dr.track}`]:{transition:"none"}}})),WP=Mr("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})(({ownerState:e})=>ce({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38},e.orientation==="horizontal"&&{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"},e.orientation==="vertical"&&{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"},e.track==="inverted"&&{opacity:1})),VP=Mr("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?HL(e.palette[t.color].main,.62):WL(e.palette[t.color].main,.5);return ce({display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest})},t.size==="small"&&{border:"none"},t.orientation==="horizontal"&&{height:"inherit",top:"50%",transform:"translateY(-50%)"},t.orientation==="vertical"&&{width:"inherit",left:"50%",transform:"translateX(-50%)"},t.track===!1&&{display:"none"},t.track==="inverted"&&{backgroundColor:e.vars?e.vars.palette.Slider[`${t.color}Track`]:r,borderColor:e.vars?e.vars.palette.Slider[`${t.color}Track`]:r})}),YP=Mr("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.thumb,t[`thumbColor${Jt(r.color)}`],r.size!=="medium"&&t[`thumbSize${Jt(r.size)}`]]}})(({theme:e,ownerState:t})=>ce({position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest})},t.size==="small"&&{width:12,height:12},t.orientation==="horizontal"&&{top:"50%",transform:"translate(-50%, -50%)"},t.orientation==="vertical"&&{left:"50%",transform:"translate(-50%, 50%)"},{"&:before":ce({position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},t.size==="small"&&{boxShadow:"none"}),"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&:hover, &.${Dr.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:Hi(e.palette[t.color].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${Dr.active}`]:{boxShadow:`0px 0px 0px 14px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:Hi(e.palette[t.color].main,.16)}`},[`&.${Dr.disabled}`]:{"&:hover":{boxShadow:"none"}}})),KP=Mr(zP,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e,ownerState:t})=>ce({[`&.${Dr.valueLabelOpen}`]:{transform:`${t.orientation==="vertical"?"translateY(-50%)":"translateY(-100%)"} scale(1)`},zIndex:1,whiteSpace:"nowrap"},e.typography.body2,{fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),transform:`${t.orientation==="vertical"?"translateY(-50%)":"translateY(-100%)"} scale(0)`,position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem"},t.orientation==="horizontal"&&{top:"-10px",transformOrigin:"bottom center","&:before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"}},t.orientation==="vertical"&&{right:t.size==="small"?"20px":"30px",top:"50%",transformOrigin:"right center","&:before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"}},t.size==="small"&&{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"})),XP=Mr("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>VO(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:r}=e;return[t.mark,r&&t.markActive]}})(({theme:e,ownerState:t,markActive:r})=>ce({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor"},t.orientation==="horizontal"&&{top:"50%",transform:"translate(-1px, -50%)"},t.orientation==="vertical"&&{left:"50%",transform:"translate(-50%, 1px)"},r&&{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8})),ZP=Mr("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>VO(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e,ownerState:t,markLabelActive:r})=>ce({},e.typography.body2,{color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap"},t.orientation==="horizontal"&&{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}},t.orientation==="vertical"&&{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}},r&&{color:(e.vars||e).palette.text.primary})),JP=e=>{const{disabled:t,dragging:r,marked:n,orientation:a,track:i,classes:o,color:s,size:l}=e,c={root:["root",t&&"disabled",r&&"dragging",n&&"marked",a==="vertical"&&"vertical",i==="inverted"&&"trackInverted",i===!1&&"trackFalse",s&&`color${Jt(s)}`,l&&`size${Jt(l)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",l&&`thumbSize${Jt(l)}`,s&&`thumbColor${Jt(s)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return hb(c,BP,o)},QP=({children:e})=>e,e$=P.forwardRef(function(t,r){var n,a,i,o,s,l,c,d,p,g,m,b,S,v,O,_,w,A,x,E,k,N,I,D;const L=gb({props:t,name:"MuiSlider"}),q=Fl().direction==="rtl",{"aria-label":H,"aria-valuetext":z,"aria-labelledby":W,component:K="span",components:G={},componentsProps:V={},color:J="primary",classes:ae,className:re,disableSwap:ue=!1,disabled:Se=!1,getAriaLabel:Q,getAriaValueText:Ie,marks:Ue=!1,max:xe=100,min:ee=0,orientation:oe="horizontal",size:ie="medium",step:X=1,scale:Ee=qv,slotProps:fe,slots:he,track:je="normal",valueLabelDisplay:nt="off",valueLabelFormat:et=qv}=L,tr=jl(L,qP),Pe=ce({},L,{isRtl:q,max:xe,min:ee,classes:ae,disabled:Se,disableSwap:ue,orientation:oe,marks:Ue,color:J,size:ie,step:X,scale:Ee,track:je,valueLabelDisplay:nt,valueLabelFormat:et}),{axisProps:$e,getRootProps:Ye,getHiddenInputProps:$t,getThumbProps:Kt,open:te,active:de,axis:ye,focusedThumbIndex:ve,range:ge,dragging:qe,marks:De,values:Ge,trackOffset:Je,trackLeap:jt,getThumbStyle:rr}=SP(ce({},Pe,{rootRef:r}));Pe.marked=De.length>0&&De.some(_e=>_e.label),Pe.dragging=qe,Pe.focusedThumbIndex=ve;const ze=JP(Pe),Kr=(n=(a=he==null?void 0:he.root)!=null?a:G.Root)!=null?n:HP,Xr=(i=(o=he==null?void 0:he.rail)!=null?o:G.Rail)!=null?i:WP,Zr=(s=(l=he==null?void 0:he.track)!=null?l:G.Track)!=null?s:VP,He=(c=(d=he==null?void 0:he.thumb)!=null?d:G.Thumb)!=null?c:YP,Bn=(p=(g=he==null?void 0:he.valueLabel)!=null?g:G.ValueLabel)!=null?p:KP,Jr=(m=(b=he==null?void 0:he.mark)!=null?b:G.Mark)!=null?m:XP,xr=(S=(v=he==null?void 0:he.markLabel)!=null?v:G.MarkLabel)!=null?S:ZP,Qr=(O=(_=he==null?void 0:he.input)!=null?_:G.Input)!=null?O:"input",wr=(w=fe==null?void 0:fe.root)!=null?w:V.root,_r=(A=fe==null?void 0:fe.rail)!=null?A:V.rail,Tr=(x=fe==null?void 0:fe.track)!=null?x:V.track,Un=(E=fe==null?void 0:fe.thumb)!=null?E:V.thumb,Fr=(k=fe==null?void 0:fe.valueLabel)!=null?k:V.valueLabel,li=(N=fe==null?void 0:fe.mark)!=null?N:V.mark,Ar=(I=fe==null?void 0:fe.markLabel)!=null?I:V.markLabel,En=(D=fe==null?void 0:fe.input)!=null?D:V.input,le=Tn({elementType:Kr,getSlotProps:Ye,externalSlotProps:wr,externalForwardedProps:tr,additionalProps:ce({},FP(Kr)&&{as:K}),ownerState:ce({},Pe,wr==null?void 0:wr.ownerState),className:[ze.root,re]}),Gn=Tn({elementType:Xr,externalSlotProps:_r,ownerState:Pe,className:ze.rail}),Ft=Tn({elementType:Zr,externalSlotProps:Tr,additionalProps:{style:ce({},$e[ye].offset(Je),$e[ye].leap(jt))},ownerState:ce({},Pe,Tr==null?void 0:Tr.ownerState),className:ze.track}),ut=Tn({elementType:He,getSlotProps:Kt,externalSlotProps:Un,ownerState:ce({},Pe,Un==null?void 0:Un.ownerState),className:ze.thumb}),zn=Tn({elementType:Bn,externalSlotProps:Fr,ownerState:ce({},Pe,Fr==null?void 0:Fr.ownerState),className:ze.valueLabel}),Oe=Tn({elementType:Jr,externalSlotProps:li,ownerState:Pe,className:ze.mark}),nr=Tn({elementType:xr,externalSlotProps:Ar,ownerState:Pe,className:ze.markLabel}),da=Tn({elementType:Qr,getSlotProps:$t,externalSlotProps:En,ownerState:Pe});return h.jsxs(Kr,ce({},le,{children:[h.jsx(Xr,ce({},Gn)),h.jsx(Zr,ce({},Ft)),De.filter(_e=>_e.value>=ee&&_e.value<=xe).map((_e,We)=>{const kt=qs(_e.value,ee,xe),tt=$e[ye].offset(kt);let ct;return je===!1?ct=Ge.indexOf(_e.value)!==-1:ct=je==="normal"&&(ge?_e.value>=Ge[0]&&_e.value<=Ge[Ge.length-1]:_e.value<=Ge[0])||je==="inverted"&&(ge?_e.value<=Ge[0]||_e.value>=Ge[Ge.length-1]:_e.value>=Ge[0]),h.jsxs(P.Fragment,{children:[h.jsx(Jr,ce({"data-index":We},Oe,!js(Jr)&&{markActive:ct},{style:ce({},tt,Oe.style),className:Cr(Oe.className,ct&&ze.markActive)})),_e.label!=null?h.jsx(xr,ce({"aria-hidden":!0,"data-index":We},nr,!js(xr)&&{markLabelActive:ct},{style:ce({},tt,nr.style),className:Cr(ze.markLabel,nr.className,ct&&ze.markLabelActive),children:_e.label})):null]},We)}),Ge.map((_e,We)=>{const kt=qs(_e,ee,xe),tt=$e[ye].offset(kt),ct=nt==="off"?QP:Bn;return h.jsx(ct,ce({},!js(ct)&&{valueLabelFormat:et,valueLabelDisplay:nt,value:typeof et=="function"?et(Ee(_e),We):et,index:We,open:te===We||de===We||nt==="on",disabled:Se},zn,{children:h.jsx(He,ce({"data-index":We},ut,{className:Cr(ze.thumb,ut.className,de===We&&ze.active,ve===We&&ze.focusVisible),style:ce({},tt,rr(We),ut.style),children:h.jsx(Qr,ce({"data-index":We,"aria-label":Q?Q(We):H,"aria-valuenow":Ee(_e),"aria-labelledby":W,"aria-valuetext":Ie?Ie(Ee(_e),We):z,value:Ge[We]},da))}))}),We)})]}))}),Wl=e$;function t$(e){return fb("MuiTooltip",e)}const r$=pb("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),Nn=r$,n$=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function a$(e){return Math.round(e*1e5)/1e5}const i$=e=>{const{classes:t,disableInteractive:r,arrow:n,touch:a,placement:i}=e,o={popper:["popper",!r&&"popperInteractive",n&&"popperArrow"],tooltip:["tooltip",n&&"tooltipArrow",a&&"touch",`tooltipPlacement${Jt(i.split("-")[0])}`],arrow:["arrow"]};return hb(o,t$,t)},o$=Mr(xb,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.popper,!r.disableInteractive&&t.popperInteractive,r.arrow&&t.popperArrow,!r.open&&t.popperClose]}})(({theme:e,ownerState:t,open:r})=>ce({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!r&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${Nn.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Nn.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Nn.arrow}`]:ce({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${Nn.arrow}`]:ce({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),s$=Mr("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.tooltip,r.touch&&t.touch,r.arrow&&t.tooltipArrow,t[`tooltipPlacement${Jt(r.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>ce({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Hi(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${a$(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${Nn.popper}[data-popper-placement*="left"] &`]:ce({transformOrigin:"right center"},t.isRtl?ce({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):ce({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${Nn.popper}[data-popper-placement*="right"] &`]:ce({transformOrigin:"left center"},t.isRtl?ce({marginRight:"14px"},t.touch&&{marginRight:"24px"}):ce({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${Nn.popper}[data-popper-placement*="top"] &`]:ce({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${Nn.popper}[data-popper-placement*="bottom"] &`]:ce({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),l$=Mr("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:Hi(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let vs=!1,lc=null,mi={x:0,y:0};function Ss(e,t){return r=>{t&&t(r),e(r)}}const u$=P.forwardRef(function(t,r){var n,a,i,o,s,l,c,d,p,g,m,b,S,v,O,_,w,A,x;const E=gb({props:t,name:"MuiTooltip"}),{arrow:k=!1,children:N,components:I={},componentsProps:D={},describeChild:L=!1,disableFocusListener:j=!1,disableHoverListener:q=!1,disableInteractive:H=!1,disableTouchListener:z=!1,enterDelay:W=100,enterNextDelay:K=0,enterTouchDelay:G=700,followCursor:V=!1,id:J,leaveDelay:ae=0,leaveTouchDelay:re=1500,onClose:ue,onOpen:Se,open:Q,placement:Ie="bottom",PopperComponent:Ue,PopperProps:xe={},slotProps:ee={},slots:oe={},title:ie,TransitionComponent:X=Fv,TransitionProps:Ee}=E,fe=jl(E,n$),he=P.isValidElement(N)?N:h.jsx("span",{children:N}),je=Fl(),nt=je.direction==="rtl",[et,tr]=P.useState(),[Pe,$e]=P.useState(null),Ye=P.useRef(!1),$t=H||V,Kt=P.useRef(),te=P.useRef(),de=P.useRef(),ye=P.useRef(),[ve,ge]=h1({controlled:Q,default:!1,name:"Tooltip",state:"open"});let qe=ve;const De=qM(J),Ge=P.useRef(),Je=P.useCallback(()=>{Ge.current!==void 0&&(document.body.style.WebkitUserSelect=Ge.current,Ge.current=void 0),clearTimeout(ye.current)},[]);P.useEffect(()=>()=>{clearTimeout(Kt.current),clearTimeout(te.current),clearTimeout(de.current),Je()},[Je]);const jt=ke=>{clearTimeout(lc),vs=!0,ge(!0),Se&&!qe&&Se(ke)},rr=Ps(ke=>{clearTimeout(lc),lc=setTimeout(()=>{vs=!1},800+ae),ge(!1),ue&&qe&&ue(ke),clearTimeout(Kt.current),Kt.current=setTimeout(()=>{Ye.current=!1},je.transitions.duration.shortest)}),ze=ke=>{Ye.current&&ke.type!=="touchstart"||(et&&et.removeAttribute("title"),clearTimeout(te.current),clearTimeout(de.current),W||vs&&K?te.current=setTimeout(()=>{jt(ke)},vs?K:W):jt(ke))},Kr=ke=>{clearTimeout(te.current),clearTimeout(de.current),de.current=setTimeout(()=>{rr(ke)},ae)},{isFocusVisibleRef:Xr,onBlur:Zr,onFocus:He,ref:Bn}=WO(),[,Jr]=P.useState(!1),xr=ke=>{Zr(ke),Xr.current===!1&&(Jr(!1),Kr(ke))},Qr=ke=>{et||tr(ke.currentTarget),He(ke),Xr.current===!0&&(Jr(!0),ze(ke))},wr=ke=>{Ye.current=!0;const Bt=he.props;Bt.onTouchStart&&Bt.onTouchStart(ke)},_r=ze,Tr=Kr,Un=ke=>{wr(ke),clearTimeout(de.current),clearTimeout(Kt.current),Je(),Ge.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ye.current=setTimeout(()=>{document.body.style.WebkitUserSelect=Ge.current,ze(ke)},G)},Fr=ke=>{he.props.onTouchEnd&&he.props.onTouchEnd(ke),Je(),clearTimeout(de.current),de.current=setTimeout(()=>{rr(ke)},re)};P.useEffect(()=>{if(!qe)return;function ke(Bt){(Bt.key==="Escape"||Bt.key==="Esc")&&rr(Bt)}return document.addEventListener("keydown",ke),()=>{document.removeEventListener("keydown",ke)}},[rr,qe]);const li=zs(he.ref,Bn,tr,r);!ie&&ie!==0&&(qe=!1);const Ar=P.useRef(),En=ke=>{const Bt=he.props;Bt.onMouseMove&&Bt.onMouseMove(ke),mi={x:ke.clientX,y:ke.clientY},Ar.current&&Ar.current.update()},le={},Gn=typeof ie=="string";L?(le.title=!qe&&Gn&&!q?ie:null,le["aria-describedby"]=qe?De:null):(le["aria-label"]=Gn?ie:null,le["aria-labelledby"]=qe&&!Gn?De:null);const Ft=ce({},le,fe,he.props,{className:Cr(fe.className,he.props.className),onTouchStart:wr,ref:li},V?{onMouseMove:En}:{}),ut={};z||(Ft.onTouchStart=Un,Ft.onTouchEnd=Fr),q||(Ft.onMouseOver=Ss(_r,Ft.onMouseOver),Ft.onMouseLeave=Ss(Tr,Ft.onMouseLeave),$t||(ut.onMouseOver=_r,ut.onMouseLeave=Tr)),j||(Ft.onFocus=Ss(Qr,Ft.onFocus),Ft.onBlur=Ss(xr,Ft.onBlur),$t||(ut.onFocus=Qr,ut.onBlur=xr));const zn=P.useMemo(()=>{var ke;let Bt=[{name:"arrow",enabled:!!Pe,options:{element:Pe,padding:4}}];return(ke=xe.popperOptions)!=null&&ke.modifiers&&(Bt=Bt.concat(xe.popperOptions.modifiers)),ce({},xe.popperOptions,{modifiers:Bt})},[Pe,xe]),Oe=ce({},E,{isRtl:nt,arrow:k,disableInteractive:$t,placement:Ie,PopperComponentProp:Ue,touch:Ye.current}),nr=i$(Oe),da=(n=(a=oe.popper)!=null?a:I.Popper)!=null?n:o$,_e=(i=(o=(s=oe.transition)!=null?s:I.Transition)!=null?o:X)!=null?i:Fv,We=(l=(c=oe.tooltip)!=null?c:I.Tooltip)!=null?l:s$,kt=(d=(p=oe.arrow)!=null?p:I.Arrow)!=null?d:l$,tt=fs(da,ce({},xe,(g=ee.popper)!=null?g:D.popper,{className:Cr(nr.popper,xe==null?void 0:xe.className,(m=(b=ee.popper)!=null?b:D.popper)==null?void 0:m.className)}),Oe),ct=fs(_e,ce({},Ee,(S=ee.transition)!=null?S:D.transition),Oe),Or=fs(We,ce({},(v=ee.tooltip)!=null?v:D.tooltip,{className:Cr(nr.tooltip,(O=(_=ee.tooltip)!=null?_:D.tooltip)==null?void 0:O.className)}),Oe),en=fs(kt,ce({},(w=ee.arrow)!=null?w:D.arrow,{className:Cr(nr.arrow,(A=(x=ee.arrow)!=null?x:D.arrow)==null?void 0:A.className)}),Oe);return h.jsxs(P.Fragment,{children:[P.cloneElement(he,Ft),h.jsx(da,ce({as:Ue??xb,placement:Ie,anchorEl:V?{getBoundingClientRect:()=>({top:mi.y,left:mi.x,right:mi.x,bottom:mi.y,width:0,height:0})}:et,popperRef:Ar,open:et?qe:!1,id:De,transition:!0},ut,tt,{popperOptions:zn,children:({TransitionProps:ke})=>h.jsx(_e,ce({timeout:je.transitions.duration.shorter},ke,ct,{children:h.jsxs(We,ce({},Or,{children:[ie,k?h.jsx(kt,ce({},en,{ref:$e})):null]}))}))}))]})}),c$=u$,d$=(e,t="down")=>{const r=Fl(),[n,a]=P.useState(!1),i=r.breakpoints[t](e).split("@media")[1].trim();return P.useEffect(()=>{const o=()=>{const{matches:s}=window.matchMedia(i);a(s)};return o(),window.addEventListener("resize",o),()=>window.removeEventListener("resize",o)},[i]),n},p$=e=>e.filter(t=>t.tldr).length>=2&&e.some(t=>t.audio_EN);function f$(e){return e.tldr_topic??e.name}var Hs=globalThis&&globalThis.__assign||function(){return Hs=Object.assign||function(e){for(var t,r=1,n=arguments.length;r({autoCorrect:"off",autoComplete:"off"}))` pointer-events: auto; height: 48px; padding: 0 40px 0 18px; @@ -1909,7 +1909,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho `,Soe=B.audio` height: 0; width: 0; -`,Eoe=()=>{const e=Pt(),{setPlayingNode:t}=Po(r=>r);switch(P.useEffect(()=>{var n,a;if(!e)return;(e.media_url||e.link||((n=e.properties)==null?void 0:n.link)||((a=e.properties)==null?void 0:a.media_url))&&t(e)},[t,e]),e==null?void 0:e.node_type){case"guest":case"person":return h.jsx(l7,{});case"data_series":return h.jsx(sX,{});case"tribe_message":return h.jsx(a7,{});case"Tweet":return h.jsx(y7,{});case"topic":return h.jsx(b7,{});case"show":return h.jsx(m7,{});case"video":case"podcast":case"clip":case"twitter_space":return h.jsx(XR,{});case"document":return h.jsx(hoe,{});case"episode":return h.jsx(QX,{},e.ref_id);case"image":return h.jsx(n7,{});default:return h.jsx(toe,{})}},xoe=P.memo(Eoe);var woe=function(t,r,n){var a=document.head||document.getElementsByTagName("head")[0],i=document.createElement("script");typeof r=="function"&&(n=r,r={}),r=r||{},n=n||function(){},i.type=r.type||"text/javascript",i.charset=r.charset||"utf8",i.async="async"in r?!!r.async:!0,i.src=t,r.attrs&&_oe(i,r.attrs),r.text&&(i.text=""+r.text);var o="onload"in i?$O:Toe;o(i,n),i.onload||$O(i,n),a.appendChild(i)};function _oe(e,t){for(var r in t)e.setAttribute(r,t[r])}function $O(e,t){e.onload=function(){this.onerror=this.onload=null,t(null,e)},e.onerror=function(){this.onerror=this.onload=null,t(new Error("Failed to load "+this.src),e)}}function Toe(e,t){e.onreadystatechange=function(){this.readyState!="complete"&&this.readyState!="loaded"||(this.onreadystatechange=null,t(null,e))}}var Aoe=function(t){return Ooe(t)&&!koe(t)};function Ooe(e){return!!e&&typeof e=="object"}function koe(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||Noe(e)}var Roe=typeof Symbol=="function"&&Symbol.for,Ioe=Roe?Symbol.for("react.element"):60103;function Noe(e){return e.$$typeof===Ioe}function Coe(e){return Array.isArray(e)?[]:{}}function Lo(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Qa(Coe(e),e,t):e}function Doe(e,t,r){return e.concat(t).map(function(n){return Lo(n,r)})}function Loe(e,t){if(!t.customMerge)return Qa;var r=t.customMerge(e);return typeof r=="function"?r:Qa}function Moe(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function jO(e){return Object.keys(e).concat(Moe(e))}function DI(e,t){try{return t in e}catch{return!1}}function Poe(e,t){return DI(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function $oe(e,t,r){var n={};return r.isMergeableObject(e)&&jO(e).forEach(function(a){n[a]=Lo(e[a],r)}),jO(t).forEach(function(a){Poe(e,a)||(DI(e,a)&&r.isMergeableObject(t[a])?n[a]=Loe(a,r)(e[a],t[a],r):n[a]=Lo(t[a],r))}),n}function Qa(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||Doe,r.isMergeableObject=r.isMergeableObject||Aoe,r.cloneUnlessOtherwiseSpecified=Lo;var n=Array.isArray(t),a=Array.isArray(e),i=n===a;return i?n?r.arrayMerge(e,t,r):$oe(e,t,r):Lo(t,r)}Qa.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(n,a){return Qa(n,a,r)},{})};var joe=Qa,LI=joe,Foe=Object.create,Pu=Object.defineProperty,Boe=Object.getOwnPropertyDescriptor,Uoe=Object.getOwnPropertyNames,Goe=Object.getPrototypeOf,zoe=Object.prototype.hasOwnProperty,qoe=(e,t)=>{for(var r in t)Pu(e,r,{get:t[r],enumerable:!0})},MI=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Uoe(t))!zoe.call(e,a)&&a!==r&&Pu(e,a,{get:()=>t[a],enumerable:!(n=Boe(t,a))||n.enumerable});return e},Wy=(e,t,r)=>(r=e!=null?Foe(Goe(e)):{},MI(t||!e||!e.__esModule?Pu(r,"default",{value:e,enumerable:!0}):r,e)),Hoe=e=>MI(Pu({},"__esModule",{value:!0}),e),PI={};qoe(PI,{callPlayer:()=>sse,getConfig:()=>ise,getSDK:()=>ase,isBlobUrl:()=>use,isMediaStream:()=>lse,lazy:()=>Koe,omit:()=>ose,parseEndTime:()=>tse,parseStartTime:()=>ese,queryString:()=>nse,randomString:()=>rse,supportsWebKitPresentationMode:()=>cse});var $u=Hoe(PI),Woe=Wy(P),Voe=Wy(woe),Yoe=Wy(LI);const Koe=e=>Woe.default.lazy(async()=>{const t=await e();return typeof t.default=="function"?t:t.default}),Xoe=/[?&#](?:start|t)=([0-9hms]+)/,Zoe=/[?&#]end=([0-9hms]+)/,lb=/(\d+)(h|m|s)/g,Joe=/^\d+$/;function $I(e,t){if(e instanceof Array)return;const r=e.match(t);if(r){const n=r[1];if(n.match(lb))return Qoe(n);if(Joe.test(n))return parseInt(n)}}function Qoe(e){let t=0,r=lb.exec(e);for(;r!==null;){const[,n,a]=r;a==="h"&&(t+=parseInt(n,10)*60*60),a==="m"&&(t+=parseInt(n,10)*60),a==="s"&&(t+=parseInt(n,10)),r=lb.exec(e)}return t}function ese(e){return $I(e,Xoe)}function tse(e){return $I(e,Zoe)}function rse(){return Math.random().toString(36).substr(2,5)}function nse(e){return Object.keys(e).map(t=>`${t}=${e[t]}`).join("&")}function qh(e){return window[e]?window[e]:window.exports&&window.exports[e]?window.exports[e]:window.module&&window.module.exports&&window.module.exports[e]?window.module.exports[e]:null}const Sa={},ase=function(t,r,n=null,a=()=>!0,i=Voe.default){const o=qh(r);return o&&a(o)?Promise.resolve(o):new Promise((s,l)=>{if(Sa[t]){Sa[t].push({resolve:s,reject:l});return}Sa[t]=[{resolve:s,reject:l}];const c=d=>{Sa[t].forEach(p=>p.resolve(d))};if(n){const d=window[n];window[n]=function(){d&&d(),c(qh(r))}}i(t,d=>{d?(Sa[t].forEach(p=>p.reject(d)),Sa[t]=null):n||c(qh(r))})})};function ise(e,t){return(0,Yoe.default)(t.config,e.config)}function ose(e,...t){const r=[].concat(...t),n={},a=Object.keys(e);for(const i of a)r.indexOf(i)===-1&&(n[i]=e[i]);return n}function sse(e,...t){if(!this.player||!this.player[e]){let r=`ReactPlayer: ${this.constructor.displayName} player could not call %c${e}%c – `;return this.player?this.player[e]||(r+="The method was not available"):r+="The player was not available",console.warn(r,"font-weight: bold",""),null}return this.player[e](...t)}function lse(e){return typeof window<"u"&&typeof window.MediaStream<"u"&&e instanceof window.MediaStream}function use(e){return/^blob:/.test(e)}function cse(e=document.createElement("video")){const t=/iPhone|iPod/.test(navigator.userAgent)===!1;return e.webkitSupportsPresentationMode&&typeof e.webkitSetPresentationMode=="function"&&t}var Vy=Object.defineProperty,dse=Object.getOwnPropertyDescriptor,pse=Object.getOwnPropertyNames,fse=Object.prototype.hasOwnProperty,gse=(e,t)=>{for(var r in t)Vy(e,r,{get:t[r],enumerable:!0})},hse=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of pse(t))!fse.call(e,a)&&a!==r&&Vy(e,a,{get:()=>t[a],enumerable:!(n=dse(t,a))||n.enumerable});return e},mse=e=>hse(Vy({},"__esModule",{value:!0}),e),jI={};gse(jI,{AUDIO_EXTENSIONS:()=>Yy,DASH_EXTENSIONS:()=>ZI,FLV_EXTENSIONS:()=>JI,HLS_EXTENSIONS:()=>Xy,MATCH_URL_DAILYMOTION:()=>VI,MATCH_URL_FACEBOOK:()=>UI,MATCH_URL_FACEBOOK_WATCH:()=>GI,MATCH_URL_KALTURA:()=>XI,MATCH_URL_MIXCLOUD:()=>YI,MATCH_URL_SOUNDCLOUD:()=>FI,MATCH_URL_STREAMABLE:()=>zI,MATCH_URL_TWITCH_CHANNEL:()=>WI,MATCH_URL_TWITCH_VIDEO:()=>HI,MATCH_URL_VIDYARD:()=>KI,MATCH_URL_VIMEO:()=>BI,MATCH_URL_WISTIA:()=>qI,MATCH_URL_YOUTUBE:()=>ub,VIDEO_EXTENSIONS:()=>Ky,canPlay:()=>yse});var bse=mse(jI),FO=$u;const ub=/(?:youtu\.be\/|youtube(?:-nocookie|education)?\.com\/(?:embed\/|v\/|watch\/|watch\?v=|watch\?.+&v=|shorts\/|live\/))((\w|-){11})|youtube\.com\/playlist\?list=|youtube\.com\/user\//,FI=/(?:soundcloud\.com|snd\.sc)\/[^.]+$/,BI=/vimeo\.com\/(?!progressive_redirect).+/,UI=/^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/,GI=/^https?:\/\/fb\.watch\/.+$/,zI=/streamable\.com\/([a-z0-9]+)$/,qI=/(?:wistia\.(?:com|net)|wi\.st)\/(?:medias|embed)\/(?:iframe\/)?([^?]+)/,HI=/(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/,WI=/(?:www\.|go\.)?twitch\.tv\/([a-zA-Z0-9_]+)($|\?)/,VI=/^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?(?:[\w.#_-]+)?/,YI=/mixcloud\.com\/([^/]+\/[^/]+)/,KI=/vidyard.com\/(?:watch\/)?([a-zA-Z0-9-_]+)/,XI=/^https?:\/\/[a-zA-Z]+\.kaltura.(com|org)\/p\/([0-9]+)\/sp\/([0-9]+)00\/embedIframeJs\/uiconf_id\/([0-9]+)\/partner_id\/([0-9]+)(.*)entry_id.([a-zA-Z0-9-_].*)$/,Yy=/\.(m4a|m4b|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i,Ky=/\.(mp4|og[gv]|webm|mov|m4v)(#t=[,\d+]+)?($|\?)/i,Xy=/\.(m3u8)($|\?)/i,ZI=/\.(mpd)($|\?)/i,JI=/\.(flv)($|\?)/i,cb=e=>{if(e instanceof Array){for(const t of e)if(typeof t=="string"&&cb(t)||cb(t.src))return!0;return!1}return(0,FO.isMediaStream)(e)||(0,FO.isBlobUrl)(e)?!0:Yy.test(e)||Ky.test(e)||Xy.test(e)||ZI.test(e)||JI.test(e)},yse={youtube:e=>e instanceof Array?e.every(t=>ub.test(t)):ub.test(e),soundcloud:e=>FI.test(e)&&!Yy.test(e),vimeo:e=>BI.test(e)&&!Ky.test(e)&&!Xy.test(e),facebook:e=>UI.test(e)||GI.test(e),streamable:e=>zI.test(e),wistia:e=>qI.test(e),twitch:e=>HI.test(e)||WI.test(e),dailymotion:e=>VI.test(e),mixcloud:e=>YI.test(e),vidyard:e=>KI.test(e),kaltura:e=>XI.test(e),file:cb};var Zy=Object.defineProperty,vse=Object.getOwnPropertyDescriptor,Sse=Object.getOwnPropertyNames,Ese=Object.prototype.hasOwnProperty,xse=(e,t)=>{for(var r in t)Zy(e,r,{get:t[r],enumerable:!0})},wse=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Sse(t))!Ese.call(e,a)&&a!==r&&Zy(e,a,{get:()=>t[a],enumerable:!(n=vse(t,a))||n.enumerable});return e},_se=e=>wse(Zy({},"__esModule",{value:!0}),e),QI={};xse(QI,{default:()=>Ase});var Tse=_se(QI),ar=$u,Zt=bse,Ase=[{key:"youtube",name:"YouTube",canPlay:Zt.canPlay.youtube,lazyPlayer:(0,ar.lazy)(()=>ir(()=>import("./YouTube-79225b7a.js").then(e=>e.Y),["assets/YouTube-79225b7a.js","assets/index-3506c528.js","assets/index-b4d03b7b.css"]))},{key:"soundcloud",name:"SoundCloud",canPlay:Zt.canPlay.soundcloud,lazyPlayer:(0,ar.lazy)(()=>ir(()=>import("./SoundCloud-a5cc949d.js").then(e=>e.S),["assets/SoundCloud-a5cc949d.js","assets/index-3506c528.js","assets/index-b4d03b7b.css"]))},{key:"vimeo",name:"Vimeo",canPlay:Zt.canPlay.vimeo,lazyPlayer:(0,ar.lazy)(()=>ir(()=>import("./Vimeo-b6da464c.js").then(e=>e.V),["assets/Vimeo-b6da464c.js","assets/index-3506c528.js","assets/index-b4d03b7b.css"]))},{key:"facebook",name:"Facebook",canPlay:Zt.canPlay.facebook,lazyPlayer:(0,ar.lazy)(()=>ir(()=>import("./Facebook-a64e2bd7.js").then(e=>e.F),["assets/Facebook-a64e2bd7.js","assets/index-3506c528.js","assets/index-b4d03b7b.css"]))},{key:"streamable",name:"Streamable",canPlay:Zt.canPlay.streamable,lazyPlayer:(0,ar.lazy)(()=>ir(()=>import("./Streamable-17261ec9.js").then(e=>e.S),["assets/Streamable-17261ec9.js","assets/index-3506c528.js","assets/index-b4d03b7b.css"]))},{key:"wistia",name:"Wistia",canPlay:Zt.canPlay.wistia,lazyPlayer:(0,ar.lazy)(()=>ir(()=>import("./Wistia-0c12bdf7.js").then(e=>e.W),["assets/Wistia-0c12bdf7.js","assets/index-3506c528.js","assets/index-b4d03b7b.css"]))},{key:"twitch",name:"Twitch",canPlay:Zt.canPlay.twitch,lazyPlayer:(0,ar.lazy)(()=>ir(()=>import("./Twitch-b178bb35.js").then(e=>e.T),["assets/Twitch-b178bb35.js","assets/index-3506c528.js","assets/index-b4d03b7b.css"]))},{key:"dailymotion",name:"DailyMotion",canPlay:Zt.canPlay.dailymotion,lazyPlayer:(0,ar.lazy)(()=>ir(()=>import("./DailyMotion-80c07408.js").then(e=>e.D),["assets/DailyMotion-80c07408.js","assets/index-3506c528.js","assets/index-b4d03b7b.css"]))},{key:"mixcloud",name:"Mixcloud",canPlay:Zt.canPlay.mixcloud,lazyPlayer:(0,ar.lazy)(()=>ir(()=>import("./Mixcloud-b2883ce1.js").then(e=>e.M),["assets/Mixcloud-b2883ce1.js","assets/index-3506c528.js","assets/index-b4d03b7b.css"]))},{key:"vidyard",name:"Vidyard",canPlay:Zt.canPlay.vidyard,lazyPlayer:(0,ar.lazy)(()=>ir(()=>import("./Vidyard-413113c0.js").then(e=>e.V),["assets/Vidyard-413113c0.js","assets/index-3506c528.js","assets/index-b4d03b7b.css"]))},{key:"kaltura",name:"Kaltura",canPlay:Zt.canPlay.kaltura,lazyPlayer:(0,ar.lazy)(()=>ir(()=>import("./Kaltura-3e13ded9.js").then(e=>e.K),["assets/Kaltura-3e13ded9.js","assets/index-3506c528.js","assets/index-b4d03b7b.css"]))},{key:"file",name:"FilePlayer",canPlay:Zt.canPlay.file,canEnablePIP:e=>Zt.canPlay.file(e)&&(document.pictureInPictureEnabled||(0,ar.supportsWebKitPresentationMode)())&&!Zt.AUDIO_EXTENSIONS.test(e),lazyPlayer:(0,ar.lazy)(()=>ir(()=>import("./FilePlayer-a54bbb10.js").then(e=>e.F),["assets/FilePlayer-a54bbb10.js","assets/index-3506c528.js","assets/index-b4d03b7b.css"]))}],BO=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function Ose(e,t){return!!(e===t||BO(e)&&BO(t))}function kse(e,t){if(e.length!==t.length)return!1;for(var r=0;r{for(var r in t)ju(e,r,{get:t[r],enumerable:!0})},tN=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of jse(t))!Bse.call(e,a)&&a!==r&&ju(e,a,{get:()=>t[a],enumerable:!(n=$se(t,a))||n.enumerable});return e},Gse=(e,t,r)=>(r=e!=null?Pse(Fse(e)):{},tN(t||!e||!e.__esModule?ju(r,"default",{value:e,enumerable:!0}):r,e)),zse=e=>tN(ju({},"__esModule",{value:!0}),e),rN={};Use(rN,{defaultProps:()=>Wse,propTypes:()=>Hse});var nN=zse(rN),qse=Gse(iP);const{string:qt,bool:Ht,number:Ea,array:Hh,oneOfType:Ii,shape:gr,object:Wt,func:vt,node:UO}=qse.default,Hse={url:Ii([qt,Hh,Wt]),playing:Ht,loop:Ht,controls:Ht,volume:Ea,muted:Ht,playbackRate:Ea,width:Ii([qt,Ea]),height:Ii([qt,Ea]),style:Wt,progressInterval:Ea,playsinline:Ht,pip:Ht,stopOnUnmount:Ht,light:Ii([Ht,qt,Wt]),playIcon:UO,previewTabIndex:Ea,fallback:UO,oEmbedUrl:qt,wrapper:Ii([qt,vt,gr({render:vt.isRequired})]),config:gr({soundcloud:gr({options:Wt}),youtube:gr({playerVars:Wt,embedOptions:Wt,onUnstarted:vt}),facebook:gr({appId:qt,version:qt,playerId:qt,attributes:Wt}),dailymotion:gr({params:Wt}),vimeo:gr({playerOptions:Wt,title:qt}),file:gr({attributes:Wt,tracks:Hh,forceVideo:Ht,forceAudio:Ht,forceHLS:Ht,forceSafariHLS:Ht,forceDisableHls:Ht,forceDASH:Ht,forceFLV:Ht,hlsOptions:Wt,hlsVersion:qt,dashVersion:qt,flvVersion:qt}),wistia:gr({options:Wt,playerId:qt,customControls:Hh}),mixcloud:gr({options:Wt}),twitch:gr({options:Wt,playerId:qt}),vidyard:gr({options:Wt})}),onReady:vt,onStart:vt,onPlay:vt,onPause:vt,onBuffer:vt,onBufferEnd:vt,onEnded:vt,onError:vt,onDuration:vt,onSeek:vt,onPlaybackRateChange:vt,onPlaybackQualityChange:vt,onProgress:vt,onClickPreview:vt,onEnablePIP:vt,onDisablePIP:vt},Rt=()=>{},Wse={playing:!1,loop:!1,controls:!1,volume:null,muted:!1,playbackRate:1,width:"640px",height:"360px",style:{},progressInterval:1e3,playsinline:!1,pip:!1,stopOnUnmount:!0,light:!1,fallback:null,wrapper:"div",previewTabIndex:0,oEmbedUrl:"https://noembed.com/embed?url={url}",config:{soundcloud:{options:{visual:!0,buying:!1,liking:!1,download:!1,sharing:!1,show_comments:!1,show_playcount:!1}},youtube:{playerVars:{playsinline:1,showinfo:0,rel:0,iv_load_policy:3,modestbranding:1},embedOptions:{},onUnstarted:Rt},facebook:{appId:"1309697205772819",version:"v3.3",playerId:null,attributes:{}},dailymotion:{params:{api:1,"endscreen-enable":!1}},vimeo:{playerOptions:{autopause:!1,byline:!1,portrait:!1,title:!1},title:null},file:{attributes:{},tracks:[],forceVideo:!1,forceAudio:!1,forceHLS:!1,forceDASH:!1,forceFLV:!1,hlsOptions:{},hlsVersion:"1.1.4",dashVersion:"3.1.3",flvVersion:"1.5.0",forceDisableHls:!1},wistia:{options:{},playerId:null,customControls:null},mixcloud:{options:{hide_cover:1}},twitch:{options:{},playerId:null},vidyard:{options:{}}},onReady:Rt,onStart:Rt,onPlay:Rt,onPause:Rt,onBuffer:Rt,onBufferEnd:Rt,onEnded:Rt,onError:Rt,onDuration:Rt,onSeek:Rt,onPlaybackRateChange:Rt,onPlaybackQualityChange:Rt,onProgress:Rt,onClickPreview:Rt,onEnablePIP:Rt,onDisablePIP:Rt};var Vse=Object.create,Jo=Object.defineProperty,Yse=Object.getOwnPropertyDescriptor,Kse=Object.getOwnPropertyNames,Xse=Object.getPrototypeOf,Zse=Object.prototype.hasOwnProperty,Jse=(e,t,r)=>t in e?Jo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Qse=(e,t)=>{for(var r in t)Jo(e,r,{get:t[r],enumerable:!0})},aN=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Kse(t))!Zse.call(e,a)&&a!==r&&Jo(e,a,{get:()=>t[a],enumerable:!(n=Yse(t,a))||n.enumerable});return e},iN=(e,t,r)=>(r=e!=null?Vse(Xse(e)):{},aN(t||!e||!e.__esModule?Jo(r,"default",{value:e,enumerable:!0}):r,e)),ele=e=>aN(Jo({},"__esModule",{value:!0}),e),mt=(e,t,r)=>(Jse(e,typeof t!="symbol"?t+"":t,r),r),oN={};Qse(oN,{default:()=>Fu});var tle=ele(oN),GO=iN(P),rle=iN(eN),sN=nN,nle=$u;const ale=5e3;class Fu extends GO.Component{constructor(){super(...arguments),mt(this,"mounted",!1),mt(this,"isReady",!1),mt(this,"isPlaying",!1),mt(this,"isLoading",!0),mt(this,"loadOnReady",null),mt(this,"startOnPlay",!0),mt(this,"seekOnPlay",null),mt(this,"onDurationCalled",!1),mt(this,"handlePlayerMount",t=>{if(this.player){this.progress();return}this.player=t,this.player.load(this.props.url),this.progress()}),mt(this,"getInternalPlayer",t=>this.player?this.player[t]:null),mt(this,"progress",()=>{if(this.props.url&&this.player&&this.isReady){const t=this.getCurrentTime()||0,r=this.getSecondsLoaded(),n=this.getDuration();if(n){const a={playedSeconds:t,played:t/n};r!==null&&(a.loadedSeconds=r,a.loaded=r/n),(a.playedSeconds!==this.prevPlayed||a.loadedSeconds!==this.prevLoaded)&&this.props.onProgress(a),this.prevPlayed=a.playedSeconds,this.prevLoaded=a.loadedSeconds}}this.progressTimeout=setTimeout(this.progress,this.props.progressFrequency||this.props.progressInterval)}),mt(this,"handleReady",()=>{if(!this.mounted)return;this.isReady=!0,this.isLoading=!1;const{onReady:t,playing:r,volume:n,muted:a}=this.props;t(),!a&&n!==null&&this.player.setVolume(n),this.loadOnReady?(this.player.load(this.loadOnReady,!0),this.loadOnReady=null):r&&this.player.play(),this.handleDurationCheck()}),mt(this,"handlePlay",()=>{this.isPlaying=!0,this.isLoading=!1;const{onStart:t,onPlay:r,playbackRate:n}=this.props;this.startOnPlay&&(this.player.setPlaybackRate&&n!==1&&this.player.setPlaybackRate(n),t(),this.startOnPlay=!1),r(),this.seekOnPlay&&(this.seekTo(this.seekOnPlay),this.seekOnPlay=null),this.handleDurationCheck()}),mt(this,"handlePause",t=>{this.isPlaying=!1,this.isLoading||this.props.onPause(t)}),mt(this,"handleEnded",()=>{const{activePlayer:t,loop:r,onEnded:n}=this.props;t.loopOnEnded&&r&&this.seekTo(0),r||(this.isPlaying=!1,n())}),mt(this,"handleError",(...t)=>{this.isLoading=!1,this.props.onError(...t)}),mt(this,"handleDurationCheck",()=>{clearTimeout(this.durationCheckTimeout);const t=this.getDuration();t?this.onDurationCalled||(this.props.onDuration(t),this.onDurationCalled=!0):this.durationCheckTimeout=setTimeout(this.handleDurationCheck,100)}),mt(this,"handleLoaded",()=>{this.isLoading=!1})}componentDidMount(){this.mounted=!0}componentWillUnmount(){clearTimeout(this.progressTimeout),clearTimeout(this.durationCheckTimeout),this.isReady&&this.props.stopOnUnmount&&(this.player.stop(),this.player.disablePIP&&this.player.disablePIP()),this.mounted=!1}componentDidUpdate(t){if(!this.player)return;const{url:r,playing:n,volume:a,muted:i,playbackRate:o,pip:s,loop:l,activePlayer:c,disableDeferredLoading:d}=this.props;if(!(0,rle.default)(t.url,r)){if(this.isLoading&&!c.forceLoad&&!d&&!(0,nle.isMediaStream)(r)){console.warn(`ReactPlayer: the attempt to load ${r} is being deferred until the player has loaded`),this.loadOnReady=r;return}this.isLoading=!0,this.startOnPlay=!0,this.onDurationCalled=!1,this.player.load(r,this.isReady)}!t.playing&&n&&!this.isPlaying&&this.player.play(),t.playing&&!n&&this.isPlaying&&this.player.pause(),!t.pip&&s&&this.player.enablePIP&&this.player.enablePIP(),t.pip&&!s&&this.player.disablePIP&&this.player.disablePIP(),t.volume!==a&&a!==null&&this.player.setVolume(a),t.muted!==i&&(i?this.player.mute():(this.player.unmute(),a!==null&&setTimeout(()=>this.player.setVolume(a)))),t.playbackRate!==o&&this.player.setPlaybackRate&&this.player.setPlaybackRate(o),t.loop!==l&&this.player.setLoop&&this.player.setLoop(l)}getDuration(){return this.isReady?this.player.getDuration():null}getCurrentTime(){return this.isReady?this.player.getCurrentTime():null}getSecondsLoaded(){return this.isReady?this.player.getSecondsLoaded():null}seekTo(t,r,n){if(!this.isReady){t!==0&&(this.seekOnPlay=t,setTimeout(()=>{this.seekOnPlay=null},ale));return}if(r?r==="fraction":t>0&&t<1){const i=this.player.getDuration();if(!i){console.warn("ReactPlayer: could not seek using fraction – duration not yet available");return}this.player.seekTo(i*t,n);return}this.player.seekTo(t,n)}render(){const t=this.props.activePlayer;return t?GO.default.createElement(t,{...this.props,onMount:this.handlePlayerMount,onReady:this.handleReady,onPlay:this.handlePlay,onPause:this.handlePause,onEnded:this.handleEnded,onLoaded:this.handleLoaded,onError:this.handleError}):null}}mt(Fu,"displayName","Player");mt(Fu,"propTypes",sN.propTypes);mt(Fu,"defaultProps",sN.defaultProps);var ile=Object.create,Qo=Object.defineProperty,ole=Object.getOwnPropertyDescriptor,sle=Object.getOwnPropertyNames,lle=Object.getPrototypeOf,ule=Object.prototype.hasOwnProperty,cle=(e,t,r)=>t in e?Qo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,dle=(e,t)=>{for(var r in t)Qo(e,r,{get:t[r],enumerable:!0})},lN=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of sle(t))!ule.call(e,a)&&a!==r&&Qo(e,a,{get:()=>t[a],enumerable:!(n=ole(t,a))||n.enumerable});return e},es=(e,t,r)=>(r=e!=null?ile(lle(e)):{},lN(t||!e||!e.__esModule?Qo(r,"default",{value:e,enumerable:!0}):r,e)),ple=e=>lN(Qo({},"__esModule",{value:!0}),e),ht=(e,t,r)=>(cle(e,typeof t!="symbol"?t+"":t,r),r),uN={};dle(uN,{createReactPlayer:()=>Ele});var fle=ple(uN),_a=es(P),gle=es(LI),Wh=es(Nse),zO=es(eN),$i=nN,cN=$u,hle=es(tle);const mle=(0,cN.lazy)(()=>ir(()=>import("./Preview-82441676.js").then(e=>e.P),["assets/Preview-82441676.js","assets/index-3506c528.js","assets/index-b4d03b7b.css"])),ble=typeof window<"u"&&window.document,yle=typeof Tt<"u"&&Tt.window&&Tt.window.document,vle=Object.keys($i.propTypes),Sle=ble||yle?_a.Suspense:()=>null,Ni=[],Ele=(e,t)=>{var r;return r=class extends _a.Component{constructor(){super(...arguments),ht(this,"state",{showPreview:!!this.props.light}),ht(this,"references",{wrapper:n=>{this.wrapper=n},player:n=>{this.player=n}}),ht(this,"handleClickPreview",n=>{this.setState({showPreview:!1}),this.props.onClickPreview(n)}),ht(this,"showPreview",()=>{this.setState({showPreview:!0})}),ht(this,"getDuration",()=>this.player?this.player.getDuration():null),ht(this,"getCurrentTime",()=>this.player?this.player.getCurrentTime():null),ht(this,"getSecondsLoaded",()=>this.player?this.player.getSecondsLoaded():null),ht(this,"getInternalPlayer",(n="player")=>this.player?this.player.getInternalPlayer(n):null),ht(this,"seekTo",(n,a,i)=>{if(!this.player)return null;this.player.seekTo(n,a,i)}),ht(this,"handleReady",()=>{this.props.onReady(this)}),ht(this,"getActivePlayer",(0,Wh.default)(n=>{for(const a of[...Ni,...e])if(a.canPlay(n))return a;return t||null})),ht(this,"getConfig",(0,Wh.default)((n,a)=>{const{config:i}=this.props;return gle.default.all([$i.defaultProps.config,$i.defaultProps.config[a]||{},i,i[a]||{}])})),ht(this,"getAttributes",(0,Wh.default)(n=>(0,cN.omit)(this.props,vle))),ht(this,"renderActivePlayer",n=>{if(!n)return null;const a=this.getActivePlayer(n);if(!a)return null;const i=this.getConfig(n,a.key);return _a.default.createElement(hle.default,{...this.props,key:a.key,ref:this.references.player,config:i,activePlayer:a.lazyPlayer||a,onReady:this.handleReady})})}shouldComponentUpdate(n,a){return!(0,zO.default)(this.props,n)||!(0,zO.default)(this.state,a)}componentDidUpdate(n){const{light:a}=this.props;!n.light&&a&&this.setState({showPreview:!0}),n.light&&!a&&this.setState({showPreview:!1})}renderPreview(n){if(!n)return null;const{light:a,playIcon:i,previewTabIndex:o,oEmbedUrl:s}=this.props;return _a.default.createElement(mle,{url:n,light:a,playIcon:i,previewTabIndex:o,oEmbedUrl:s,onClick:this.handleClickPreview})}render(){const{url:n,style:a,width:i,height:o,fallback:s,wrapper:l}=this.props,{showPreview:c}=this.state,d=this.getAttributes(n),p=typeof l=="string"?this.references.wrapper:void 0;return _a.default.createElement(l,{ref:p,style:{...a,width:i,height:o},...d},_a.default.createElement(Sle,{fallback:s},c?this.renderPreview(n):this.renderActivePlayer(n)))}},ht(r,"displayName","ReactPlayer"),ht(r,"propTypes",$i.propTypes),ht(r,"defaultProps",$i.defaultProps),ht(r,"addCustomPlayer",n=>{Ni.push(n)}),ht(r,"removeCustomPlayers",()=>{Ni.length=0}),ht(r,"canPlay",n=>{for(const a of[...Ni,...e])if(a.canPlay(n))return!0;return!1}),ht(r,"canEnablePIP",n=>{for(const a of[...Ni,...e])if(a.canEnablePIP&&a.canEnablePIP(n))return!0;return!1}),r};var xle=Object.create,Bu=Object.defineProperty,wle=Object.getOwnPropertyDescriptor,_le=Object.getOwnPropertyNames,Tle=Object.getPrototypeOf,Ale=Object.prototype.hasOwnProperty,Ole=(e,t)=>{for(var r in t)Bu(e,r,{get:t[r],enumerable:!0})},dN=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of _le(t))!Ale.call(e,a)&&a!==r&&Bu(e,a,{get:()=>t[a],enumerable:!(n=wle(t,a))||n.enumerable});return e},kle=(e,t,r)=>(r=e!=null?xle(Tle(e)):{},dN(t||!e||!e.__esModule?Bu(r,"default",{value:e,enumerable:!0}):r,e)),Rle=e=>dN(Bu({},"__esModule",{value:!0}),e),pN={};Ole(pN,{default:()=>Dle});var Ile=Rle(pN),db=kle(Tse),Nle=fle;const Cle=db.default[db.default.length-1];var Dle=(0,Nle.createReactPlayer)(db.default,Cle);const Lle=ft(Ile),qO=e=>{const t=Math.floor(e/3600),r=Math.floor(e%3600/60),n=Math.floor(e%60),a=t>0?`${t}:`:"",i=t>0?r.toString().padStart(2,"0"):r.toString(),o=n.toString().padStart(2,"0");return`${a}${i}:${o}`},Mle=({isPlaying:e,isFullScreen:t,setIsPlaying:r,playingTime:n,duration:a,handleProgressChange:i,handleVolumeChange:o,onFullScreenClick:s,showToolbar:l})=>{const[c,d]=P.useState(.5),[p,g]=P.useState(!1),[m,b]=P.useState(.5),S=(O,_)=>{const w=Array.isArray(_)?_[0]:_;d(w),o(O,w),p&&g(!1)},v=()=>{p?(d(m),o(new Event("input"),m)):(b(c),d(0),o(new Event("input"),0)),g(!p)};return h.jsxs(F,{children:[(!l||t)&&h.jsx(Gle,{"aria-label":"Small","data-testid":"progress-bar",isFullScreen:t,max:a,onChange:i,size:"small",value:n}),h.jsxs(Ple,{align:"center",direction:"row",showToolbar:l||t,children:[h.jsx(Fle,{onClick:r,size:"small",children:e?h.jsx(Sb,{}):h.jsx(Eb,{})}),h.jsxs(zle,{direction:"row",children:[h.jsx("span",{children:qO(n)}),h.jsx("span",{className:"separator",children:"/"}),h.jsx("span",{className:"duration",children:qO(a)})]}),h.jsxs(Ble,{direction:"row",px:9,children:[h.jsx(Wl,{className:"volume-slider",max:1,min:0,onChange:S,size:"small",step:.1,value:c}),h.jsx($le,{onClick:v,children:p?h.jsx(jle,{children:h.jsx($M,{})}):h.jsx(jM,{})})]}),h.jsx(Ule,{"data-testid":"fullscreen-button",onClick:s,children:t?h.jsx(BM,{}):h.jsx(FM,{})})]})]})},Ple=B(F)` +`,Eoe=()=>{const e=Pt(),{setPlayingNode:t}=Po(r=>r);switch(P.useEffect(()=>{var n,a;if(!e)return;(e.media_url||e.link||((n=e.properties)==null?void 0:n.link)||((a=e.properties)==null?void 0:a.media_url))&&t(e)},[t,e]),e==null?void 0:e.node_type){case"guest":case"person":return h.jsx(l7,{});case"data_series":return h.jsx(sX,{});case"tribe_message":return h.jsx(a7,{});case"Tweet":return h.jsx(y7,{});case"topic":return h.jsx(b7,{});case"show":return h.jsx(m7,{});case"video":case"podcast":case"clip":case"twitter_space":return h.jsx(XR,{});case"document":return h.jsx(hoe,{});case"episode":return h.jsx(QX,{},e.ref_id);case"image":return h.jsx(n7,{});default:return h.jsx(toe,{})}},xoe=P.memo(Eoe);var woe=function(t,r,n){var a=document.head||document.getElementsByTagName("head")[0],i=document.createElement("script");typeof r=="function"&&(n=r,r={}),r=r||{},n=n||function(){},i.type=r.type||"text/javascript",i.charset=r.charset||"utf8",i.async="async"in r?!!r.async:!0,i.src=t,r.attrs&&_oe(i,r.attrs),r.text&&(i.text=""+r.text);var o="onload"in i?$O:Toe;o(i,n),i.onload||$O(i,n),a.appendChild(i)};function _oe(e,t){for(var r in t)e.setAttribute(r,t[r])}function $O(e,t){e.onload=function(){this.onerror=this.onload=null,t(null,e)},e.onerror=function(){this.onerror=this.onload=null,t(new Error("Failed to load "+this.src),e)}}function Toe(e,t){e.onreadystatechange=function(){this.readyState!="complete"&&this.readyState!="loaded"||(this.onreadystatechange=null,t(null,e))}}var Aoe=function(t){return Ooe(t)&&!koe(t)};function Ooe(e){return!!e&&typeof e=="object"}function koe(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||Noe(e)}var Roe=typeof Symbol=="function"&&Symbol.for,Ioe=Roe?Symbol.for("react.element"):60103;function Noe(e){return e.$$typeof===Ioe}function Coe(e){return Array.isArray(e)?[]:{}}function Lo(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Qa(Coe(e),e,t):e}function Doe(e,t,r){return e.concat(t).map(function(n){return Lo(n,r)})}function Loe(e,t){if(!t.customMerge)return Qa;var r=t.customMerge(e);return typeof r=="function"?r:Qa}function Moe(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function jO(e){return Object.keys(e).concat(Moe(e))}function DI(e,t){try{return t in e}catch{return!1}}function Poe(e,t){return DI(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function $oe(e,t,r){var n={};return r.isMergeableObject(e)&&jO(e).forEach(function(a){n[a]=Lo(e[a],r)}),jO(t).forEach(function(a){Poe(e,a)||(DI(e,a)&&r.isMergeableObject(t[a])?n[a]=Loe(a,r)(e[a],t[a],r):n[a]=Lo(t[a],r))}),n}function Qa(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||Doe,r.isMergeableObject=r.isMergeableObject||Aoe,r.cloneUnlessOtherwiseSpecified=Lo;var n=Array.isArray(t),a=Array.isArray(e),i=n===a;return i?n?r.arrayMerge(e,t,r):$oe(e,t,r):Lo(t,r)}Qa.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(n,a){return Qa(n,a,r)},{})};var joe=Qa,LI=joe,Foe=Object.create,Pu=Object.defineProperty,Boe=Object.getOwnPropertyDescriptor,Uoe=Object.getOwnPropertyNames,Goe=Object.getPrototypeOf,zoe=Object.prototype.hasOwnProperty,qoe=(e,t)=>{for(var r in t)Pu(e,r,{get:t[r],enumerable:!0})},MI=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Uoe(t))!zoe.call(e,a)&&a!==r&&Pu(e,a,{get:()=>t[a],enumerable:!(n=Boe(t,a))||n.enumerable});return e},Wy=(e,t,r)=>(r=e!=null?Foe(Goe(e)):{},MI(t||!e||!e.__esModule?Pu(r,"default",{value:e,enumerable:!0}):r,e)),Hoe=e=>MI(Pu({},"__esModule",{value:!0}),e),PI={};qoe(PI,{callPlayer:()=>sse,getConfig:()=>ise,getSDK:()=>ase,isBlobUrl:()=>use,isMediaStream:()=>lse,lazy:()=>Koe,omit:()=>ose,parseEndTime:()=>tse,parseStartTime:()=>ese,queryString:()=>nse,randomString:()=>rse,supportsWebKitPresentationMode:()=>cse});var $u=Hoe(PI),Woe=Wy(P),Voe=Wy(woe),Yoe=Wy(LI);const Koe=e=>Woe.default.lazy(async()=>{const t=await e();return typeof t.default=="function"?t:t.default}),Xoe=/[?&#](?:start|t)=([0-9hms]+)/,Zoe=/[?&#]end=([0-9hms]+)/,lb=/(\d+)(h|m|s)/g,Joe=/^\d+$/;function $I(e,t){if(e instanceof Array)return;const r=e.match(t);if(r){const n=r[1];if(n.match(lb))return Qoe(n);if(Joe.test(n))return parseInt(n)}}function Qoe(e){let t=0,r=lb.exec(e);for(;r!==null;){const[,n,a]=r;a==="h"&&(t+=parseInt(n,10)*60*60),a==="m"&&(t+=parseInt(n,10)*60),a==="s"&&(t+=parseInt(n,10)),r=lb.exec(e)}return t}function ese(e){return $I(e,Xoe)}function tse(e){return $I(e,Zoe)}function rse(){return Math.random().toString(36).substr(2,5)}function nse(e){return Object.keys(e).map(t=>`${t}=${e[t]}`).join("&")}function qh(e){return window[e]?window[e]:window.exports&&window.exports[e]?window.exports[e]:window.module&&window.module.exports&&window.module.exports[e]?window.module.exports[e]:null}const Sa={},ase=function(t,r,n=null,a=()=>!0,i=Voe.default){const o=qh(r);return o&&a(o)?Promise.resolve(o):new Promise((s,l)=>{if(Sa[t]){Sa[t].push({resolve:s,reject:l});return}Sa[t]=[{resolve:s,reject:l}];const c=d=>{Sa[t].forEach(p=>p.resolve(d))};if(n){const d=window[n];window[n]=function(){d&&d(),c(qh(r))}}i(t,d=>{d?(Sa[t].forEach(p=>p.reject(d)),Sa[t]=null):n||c(qh(r))})})};function ise(e,t){return(0,Yoe.default)(t.config,e.config)}function ose(e,...t){const r=[].concat(...t),n={},a=Object.keys(e);for(const i of a)r.indexOf(i)===-1&&(n[i]=e[i]);return n}function sse(e,...t){if(!this.player||!this.player[e]){let r=`ReactPlayer: ${this.constructor.displayName} player could not call %c${e}%c – `;return this.player?this.player[e]||(r+="The method was not available"):r+="The player was not available",console.warn(r,"font-weight: bold",""),null}return this.player[e](...t)}function lse(e){return typeof window<"u"&&typeof window.MediaStream<"u"&&e instanceof window.MediaStream}function use(e){return/^blob:/.test(e)}function cse(e=document.createElement("video")){const t=/iPhone|iPod/.test(navigator.userAgent)===!1;return e.webkitSupportsPresentationMode&&typeof e.webkitSetPresentationMode=="function"&&t}var Vy=Object.defineProperty,dse=Object.getOwnPropertyDescriptor,pse=Object.getOwnPropertyNames,fse=Object.prototype.hasOwnProperty,gse=(e,t)=>{for(var r in t)Vy(e,r,{get:t[r],enumerable:!0})},hse=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of pse(t))!fse.call(e,a)&&a!==r&&Vy(e,a,{get:()=>t[a],enumerable:!(n=dse(t,a))||n.enumerable});return e},mse=e=>hse(Vy({},"__esModule",{value:!0}),e),jI={};gse(jI,{AUDIO_EXTENSIONS:()=>Yy,DASH_EXTENSIONS:()=>ZI,FLV_EXTENSIONS:()=>JI,HLS_EXTENSIONS:()=>Xy,MATCH_URL_DAILYMOTION:()=>VI,MATCH_URL_FACEBOOK:()=>UI,MATCH_URL_FACEBOOK_WATCH:()=>GI,MATCH_URL_KALTURA:()=>XI,MATCH_URL_MIXCLOUD:()=>YI,MATCH_URL_SOUNDCLOUD:()=>FI,MATCH_URL_STREAMABLE:()=>zI,MATCH_URL_TWITCH_CHANNEL:()=>WI,MATCH_URL_TWITCH_VIDEO:()=>HI,MATCH_URL_VIDYARD:()=>KI,MATCH_URL_VIMEO:()=>BI,MATCH_URL_WISTIA:()=>qI,MATCH_URL_YOUTUBE:()=>ub,VIDEO_EXTENSIONS:()=>Ky,canPlay:()=>yse});var bse=mse(jI),FO=$u;const ub=/(?:youtu\.be\/|youtube(?:-nocookie|education)?\.com\/(?:embed\/|v\/|watch\/|watch\?v=|watch\?.+&v=|shorts\/|live\/))((\w|-){11})|youtube\.com\/playlist\?list=|youtube\.com\/user\//,FI=/(?:soundcloud\.com|snd\.sc)\/[^.]+$/,BI=/vimeo\.com\/(?!progressive_redirect).+/,UI=/^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/,GI=/^https?:\/\/fb\.watch\/.+$/,zI=/streamable\.com\/([a-z0-9]+)$/,qI=/(?:wistia\.(?:com|net)|wi\.st)\/(?:medias|embed)\/(?:iframe\/)?([^?]+)/,HI=/(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/,WI=/(?:www\.|go\.)?twitch\.tv\/([a-zA-Z0-9_]+)($|\?)/,VI=/^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?(?:[\w.#_-]+)?/,YI=/mixcloud\.com\/([^/]+\/[^/]+)/,KI=/vidyard.com\/(?:watch\/)?([a-zA-Z0-9-_]+)/,XI=/^https?:\/\/[a-zA-Z]+\.kaltura.(com|org)\/p\/([0-9]+)\/sp\/([0-9]+)00\/embedIframeJs\/uiconf_id\/([0-9]+)\/partner_id\/([0-9]+)(.*)entry_id.([a-zA-Z0-9-_].*)$/,Yy=/\.(m4a|m4b|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i,Ky=/\.(mp4|og[gv]|webm|mov|m4v)(#t=[,\d+]+)?($|\?)/i,Xy=/\.(m3u8)($|\?)/i,ZI=/\.(mpd)($|\?)/i,JI=/\.(flv)($|\?)/i,cb=e=>{if(e instanceof Array){for(const t of e)if(typeof t=="string"&&cb(t)||cb(t.src))return!0;return!1}return(0,FO.isMediaStream)(e)||(0,FO.isBlobUrl)(e)?!0:Yy.test(e)||Ky.test(e)||Xy.test(e)||ZI.test(e)||JI.test(e)},yse={youtube:e=>e instanceof Array?e.every(t=>ub.test(t)):ub.test(e),soundcloud:e=>FI.test(e)&&!Yy.test(e),vimeo:e=>BI.test(e)&&!Ky.test(e)&&!Xy.test(e),facebook:e=>UI.test(e)||GI.test(e),streamable:e=>zI.test(e),wistia:e=>qI.test(e),twitch:e=>HI.test(e)||WI.test(e),dailymotion:e=>VI.test(e),mixcloud:e=>YI.test(e),vidyard:e=>KI.test(e),kaltura:e=>XI.test(e),file:cb};var Zy=Object.defineProperty,vse=Object.getOwnPropertyDescriptor,Sse=Object.getOwnPropertyNames,Ese=Object.prototype.hasOwnProperty,xse=(e,t)=>{for(var r in t)Zy(e,r,{get:t[r],enumerable:!0})},wse=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Sse(t))!Ese.call(e,a)&&a!==r&&Zy(e,a,{get:()=>t[a],enumerable:!(n=vse(t,a))||n.enumerable});return e},_se=e=>wse(Zy({},"__esModule",{value:!0}),e),QI={};xse(QI,{default:()=>Ase});var Tse=_se(QI),ar=$u,Zt=bse,Ase=[{key:"youtube",name:"YouTube",canPlay:Zt.canPlay.youtube,lazyPlayer:(0,ar.lazy)(()=>ir(()=>import("./YouTube-bee8bd7a.js").then(e=>e.Y),["assets/YouTube-bee8bd7a.js","assets/index-6541aa03.js","assets/index-b4d03b7b.css"]))},{key:"soundcloud",name:"SoundCloud",canPlay:Zt.canPlay.soundcloud,lazyPlayer:(0,ar.lazy)(()=>ir(()=>import("./SoundCloud-4fc651dd.js").then(e=>e.S),["assets/SoundCloud-4fc651dd.js","assets/index-6541aa03.js","assets/index-b4d03b7b.css"]))},{key:"vimeo",name:"Vimeo",canPlay:Zt.canPlay.vimeo,lazyPlayer:(0,ar.lazy)(()=>ir(()=>import("./Vimeo-4ecba9a4.js").then(e=>e.V),["assets/Vimeo-4ecba9a4.js","assets/index-6541aa03.js","assets/index-b4d03b7b.css"]))},{key:"facebook",name:"Facebook",canPlay:Zt.canPlay.facebook,lazyPlayer:(0,ar.lazy)(()=>ir(()=>import("./Facebook-5e2a901f.js").then(e=>e.F),["assets/Facebook-5e2a901f.js","assets/index-6541aa03.js","assets/index-b4d03b7b.css"]))},{key:"streamable",name:"Streamable",canPlay:Zt.canPlay.streamable,lazyPlayer:(0,ar.lazy)(()=>ir(()=>import("./Streamable-00043ce8.js").then(e=>e.S),["assets/Streamable-00043ce8.js","assets/index-6541aa03.js","assets/index-b4d03b7b.css"]))},{key:"wistia",name:"Wistia",canPlay:Zt.canPlay.wistia,lazyPlayer:(0,ar.lazy)(()=>ir(()=>import("./Wistia-5701c088.js").then(e=>e.W),["assets/Wistia-5701c088.js","assets/index-6541aa03.js","assets/index-b4d03b7b.css"]))},{key:"twitch",name:"Twitch",canPlay:Zt.canPlay.twitch,lazyPlayer:(0,ar.lazy)(()=>ir(()=>import("./Twitch-d70c87c7.js").then(e=>e.T),["assets/Twitch-d70c87c7.js","assets/index-6541aa03.js","assets/index-b4d03b7b.css"]))},{key:"dailymotion",name:"DailyMotion",canPlay:Zt.canPlay.dailymotion,lazyPlayer:(0,ar.lazy)(()=>ir(()=>import("./DailyMotion-86b15de1.js").then(e=>e.D),["assets/DailyMotion-86b15de1.js","assets/index-6541aa03.js","assets/index-b4d03b7b.css"]))},{key:"mixcloud",name:"Mixcloud",canPlay:Zt.canPlay.mixcloud,lazyPlayer:(0,ar.lazy)(()=>ir(()=>import("./Mixcloud-57dd95f3.js").then(e=>e.M),["assets/Mixcloud-57dd95f3.js","assets/index-6541aa03.js","assets/index-b4d03b7b.css"]))},{key:"vidyard",name:"Vidyard",canPlay:Zt.canPlay.vidyard,lazyPlayer:(0,ar.lazy)(()=>ir(()=>import("./Vidyard-4e36f297.js").then(e=>e.V),["assets/Vidyard-4e36f297.js","assets/index-6541aa03.js","assets/index-b4d03b7b.css"]))},{key:"kaltura",name:"Kaltura",canPlay:Zt.canPlay.kaltura,lazyPlayer:(0,ar.lazy)(()=>ir(()=>import("./Kaltura-11bc99d2.js").then(e=>e.K),["assets/Kaltura-11bc99d2.js","assets/index-6541aa03.js","assets/index-b4d03b7b.css"]))},{key:"file",name:"FilePlayer",canPlay:Zt.canPlay.file,canEnablePIP:e=>Zt.canPlay.file(e)&&(document.pictureInPictureEnabled||(0,ar.supportsWebKitPresentationMode)())&&!Zt.AUDIO_EXTENSIONS.test(e),lazyPlayer:(0,ar.lazy)(()=>ir(()=>import("./FilePlayer-bc24401f.js").then(e=>e.F),["assets/FilePlayer-bc24401f.js","assets/index-6541aa03.js","assets/index-b4d03b7b.css"]))}],BO=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function Ose(e,t){return!!(e===t||BO(e)&&BO(t))}function kse(e,t){if(e.length!==t.length)return!1;for(var r=0;r{for(var r in t)ju(e,r,{get:t[r],enumerable:!0})},tN=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of jse(t))!Bse.call(e,a)&&a!==r&&ju(e,a,{get:()=>t[a],enumerable:!(n=$se(t,a))||n.enumerable});return e},Gse=(e,t,r)=>(r=e!=null?Pse(Fse(e)):{},tN(t||!e||!e.__esModule?ju(r,"default",{value:e,enumerable:!0}):r,e)),zse=e=>tN(ju({},"__esModule",{value:!0}),e),rN={};Use(rN,{defaultProps:()=>Wse,propTypes:()=>Hse});var nN=zse(rN),qse=Gse(iP);const{string:qt,bool:Ht,number:Ea,array:Hh,oneOfType:Ii,shape:gr,object:Wt,func:vt,node:UO}=qse.default,Hse={url:Ii([qt,Hh,Wt]),playing:Ht,loop:Ht,controls:Ht,volume:Ea,muted:Ht,playbackRate:Ea,width:Ii([qt,Ea]),height:Ii([qt,Ea]),style:Wt,progressInterval:Ea,playsinline:Ht,pip:Ht,stopOnUnmount:Ht,light:Ii([Ht,qt,Wt]),playIcon:UO,previewTabIndex:Ea,fallback:UO,oEmbedUrl:qt,wrapper:Ii([qt,vt,gr({render:vt.isRequired})]),config:gr({soundcloud:gr({options:Wt}),youtube:gr({playerVars:Wt,embedOptions:Wt,onUnstarted:vt}),facebook:gr({appId:qt,version:qt,playerId:qt,attributes:Wt}),dailymotion:gr({params:Wt}),vimeo:gr({playerOptions:Wt,title:qt}),file:gr({attributes:Wt,tracks:Hh,forceVideo:Ht,forceAudio:Ht,forceHLS:Ht,forceSafariHLS:Ht,forceDisableHls:Ht,forceDASH:Ht,forceFLV:Ht,hlsOptions:Wt,hlsVersion:qt,dashVersion:qt,flvVersion:qt}),wistia:gr({options:Wt,playerId:qt,customControls:Hh}),mixcloud:gr({options:Wt}),twitch:gr({options:Wt,playerId:qt}),vidyard:gr({options:Wt})}),onReady:vt,onStart:vt,onPlay:vt,onPause:vt,onBuffer:vt,onBufferEnd:vt,onEnded:vt,onError:vt,onDuration:vt,onSeek:vt,onPlaybackRateChange:vt,onPlaybackQualityChange:vt,onProgress:vt,onClickPreview:vt,onEnablePIP:vt,onDisablePIP:vt},Rt=()=>{},Wse={playing:!1,loop:!1,controls:!1,volume:null,muted:!1,playbackRate:1,width:"640px",height:"360px",style:{},progressInterval:1e3,playsinline:!1,pip:!1,stopOnUnmount:!0,light:!1,fallback:null,wrapper:"div",previewTabIndex:0,oEmbedUrl:"https://noembed.com/embed?url={url}",config:{soundcloud:{options:{visual:!0,buying:!1,liking:!1,download:!1,sharing:!1,show_comments:!1,show_playcount:!1}},youtube:{playerVars:{playsinline:1,showinfo:0,rel:0,iv_load_policy:3,modestbranding:1},embedOptions:{},onUnstarted:Rt},facebook:{appId:"1309697205772819",version:"v3.3",playerId:null,attributes:{}},dailymotion:{params:{api:1,"endscreen-enable":!1}},vimeo:{playerOptions:{autopause:!1,byline:!1,portrait:!1,title:!1},title:null},file:{attributes:{},tracks:[],forceVideo:!1,forceAudio:!1,forceHLS:!1,forceDASH:!1,forceFLV:!1,hlsOptions:{},hlsVersion:"1.1.4",dashVersion:"3.1.3",flvVersion:"1.5.0",forceDisableHls:!1},wistia:{options:{},playerId:null,customControls:null},mixcloud:{options:{hide_cover:1}},twitch:{options:{},playerId:null},vidyard:{options:{}}},onReady:Rt,onStart:Rt,onPlay:Rt,onPause:Rt,onBuffer:Rt,onBufferEnd:Rt,onEnded:Rt,onError:Rt,onDuration:Rt,onSeek:Rt,onPlaybackRateChange:Rt,onPlaybackQualityChange:Rt,onProgress:Rt,onClickPreview:Rt,onEnablePIP:Rt,onDisablePIP:Rt};var Vse=Object.create,Jo=Object.defineProperty,Yse=Object.getOwnPropertyDescriptor,Kse=Object.getOwnPropertyNames,Xse=Object.getPrototypeOf,Zse=Object.prototype.hasOwnProperty,Jse=(e,t,r)=>t in e?Jo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Qse=(e,t)=>{for(var r in t)Jo(e,r,{get:t[r],enumerable:!0})},aN=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Kse(t))!Zse.call(e,a)&&a!==r&&Jo(e,a,{get:()=>t[a],enumerable:!(n=Yse(t,a))||n.enumerable});return e},iN=(e,t,r)=>(r=e!=null?Vse(Xse(e)):{},aN(t||!e||!e.__esModule?Jo(r,"default",{value:e,enumerable:!0}):r,e)),ele=e=>aN(Jo({},"__esModule",{value:!0}),e),mt=(e,t,r)=>(Jse(e,typeof t!="symbol"?t+"":t,r),r),oN={};Qse(oN,{default:()=>Fu});var tle=ele(oN),GO=iN(P),rle=iN(eN),sN=nN,nle=$u;const ale=5e3;class Fu extends GO.Component{constructor(){super(...arguments),mt(this,"mounted",!1),mt(this,"isReady",!1),mt(this,"isPlaying",!1),mt(this,"isLoading",!0),mt(this,"loadOnReady",null),mt(this,"startOnPlay",!0),mt(this,"seekOnPlay",null),mt(this,"onDurationCalled",!1),mt(this,"handlePlayerMount",t=>{if(this.player){this.progress();return}this.player=t,this.player.load(this.props.url),this.progress()}),mt(this,"getInternalPlayer",t=>this.player?this.player[t]:null),mt(this,"progress",()=>{if(this.props.url&&this.player&&this.isReady){const t=this.getCurrentTime()||0,r=this.getSecondsLoaded(),n=this.getDuration();if(n){const a={playedSeconds:t,played:t/n};r!==null&&(a.loadedSeconds=r,a.loaded=r/n),(a.playedSeconds!==this.prevPlayed||a.loadedSeconds!==this.prevLoaded)&&this.props.onProgress(a),this.prevPlayed=a.playedSeconds,this.prevLoaded=a.loadedSeconds}}this.progressTimeout=setTimeout(this.progress,this.props.progressFrequency||this.props.progressInterval)}),mt(this,"handleReady",()=>{if(!this.mounted)return;this.isReady=!0,this.isLoading=!1;const{onReady:t,playing:r,volume:n,muted:a}=this.props;t(),!a&&n!==null&&this.player.setVolume(n),this.loadOnReady?(this.player.load(this.loadOnReady,!0),this.loadOnReady=null):r&&this.player.play(),this.handleDurationCheck()}),mt(this,"handlePlay",()=>{this.isPlaying=!0,this.isLoading=!1;const{onStart:t,onPlay:r,playbackRate:n}=this.props;this.startOnPlay&&(this.player.setPlaybackRate&&n!==1&&this.player.setPlaybackRate(n),t(),this.startOnPlay=!1),r(),this.seekOnPlay&&(this.seekTo(this.seekOnPlay),this.seekOnPlay=null),this.handleDurationCheck()}),mt(this,"handlePause",t=>{this.isPlaying=!1,this.isLoading||this.props.onPause(t)}),mt(this,"handleEnded",()=>{const{activePlayer:t,loop:r,onEnded:n}=this.props;t.loopOnEnded&&r&&this.seekTo(0),r||(this.isPlaying=!1,n())}),mt(this,"handleError",(...t)=>{this.isLoading=!1,this.props.onError(...t)}),mt(this,"handleDurationCheck",()=>{clearTimeout(this.durationCheckTimeout);const t=this.getDuration();t?this.onDurationCalled||(this.props.onDuration(t),this.onDurationCalled=!0):this.durationCheckTimeout=setTimeout(this.handleDurationCheck,100)}),mt(this,"handleLoaded",()=>{this.isLoading=!1})}componentDidMount(){this.mounted=!0}componentWillUnmount(){clearTimeout(this.progressTimeout),clearTimeout(this.durationCheckTimeout),this.isReady&&this.props.stopOnUnmount&&(this.player.stop(),this.player.disablePIP&&this.player.disablePIP()),this.mounted=!1}componentDidUpdate(t){if(!this.player)return;const{url:r,playing:n,volume:a,muted:i,playbackRate:o,pip:s,loop:l,activePlayer:c,disableDeferredLoading:d}=this.props;if(!(0,rle.default)(t.url,r)){if(this.isLoading&&!c.forceLoad&&!d&&!(0,nle.isMediaStream)(r)){console.warn(`ReactPlayer: the attempt to load ${r} is being deferred until the player has loaded`),this.loadOnReady=r;return}this.isLoading=!0,this.startOnPlay=!0,this.onDurationCalled=!1,this.player.load(r,this.isReady)}!t.playing&&n&&!this.isPlaying&&this.player.play(),t.playing&&!n&&this.isPlaying&&this.player.pause(),!t.pip&&s&&this.player.enablePIP&&this.player.enablePIP(),t.pip&&!s&&this.player.disablePIP&&this.player.disablePIP(),t.volume!==a&&a!==null&&this.player.setVolume(a),t.muted!==i&&(i?this.player.mute():(this.player.unmute(),a!==null&&setTimeout(()=>this.player.setVolume(a)))),t.playbackRate!==o&&this.player.setPlaybackRate&&this.player.setPlaybackRate(o),t.loop!==l&&this.player.setLoop&&this.player.setLoop(l)}getDuration(){return this.isReady?this.player.getDuration():null}getCurrentTime(){return this.isReady?this.player.getCurrentTime():null}getSecondsLoaded(){return this.isReady?this.player.getSecondsLoaded():null}seekTo(t,r,n){if(!this.isReady){t!==0&&(this.seekOnPlay=t,setTimeout(()=>{this.seekOnPlay=null},ale));return}if(r?r==="fraction":t>0&&t<1){const i=this.player.getDuration();if(!i){console.warn("ReactPlayer: could not seek using fraction – duration not yet available");return}this.player.seekTo(i*t,n);return}this.player.seekTo(t,n)}render(){const t=this.props.activePlayer;return t?GO.default.createElement(t,{...this.props,onMount:this.handlePlayerMount,onReady:this.handleReady,onPlay:this.handlePlay,onPause:this.handlePause,onEnded:this.handleEnded,onLoaded:this.handleLoaded,onError:this.handleError}):null}}mt(Fu,"displayName","Player");mt(Fu,"propTypes",sN.propTypes);mt(Fu,"defaultProps",sN.defaultProps);var ile=Object.create,Qo=Object.defineProperty,ole=Object.getOwnPropertyDescriptor,sle=Object.getOwnPropertyNames,lle=Object.getPrototypeOf,ule=Object.prototype.hasOwnProperty,cle=(e,t,r)=>t in e?Qo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,dle=(e,t)=>{for(var r in t)Qo(e,r,{get:t[r],enumerable:!0})},lN=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of sle(t))!ule.call(e,a)&&a!==r&&Qo(e,a,{get:()=>t[a],enumerable:!(n=ole(t,a))||n.enumerable});return e},es=(e,t,r)=>(r=e!=null?ile(lle(e)):{},lN(t||!e||!e.__esModule?Qo(r,"default",{value:e,enumerable:!0}):r,e)),ple=e=>lN(Qo({},"__esModule",{value:!0}),e),ht=(e,t,r)=>(cle(e,typeof t!="symbol"?t+"":t,r),r),uN={};dle(uN,{createReactPlayer:()=>Ele});var fle=ple(uN),_a=es(P),gle=es(LI),Wh=es(Nse),zO=es(eN),$i=nN,cN=$u,hle=es(tle);const mle=(0,cN.lazy)(()=>ir(()=>import("./Preview-dd97a4b5.js").then(e=>e.P),["assets/Preview-dd97a4b5.js","assets/index-6541aa03.js","assets/index-b4d03b7b.css"])),ble=typeof window<"u"&&window.document,yle=typeof Tt<"u"&&Tt.window&&Tt.window.document,vle=Object.keys($i.propTypes),Sle=ble||yle?_a.Suspense:()=>null,Ni=[],Ele=(e,t)=>{var r;return r=class extends _a.Component{constructor(){super(...arguments),ht(this,"state",{showPreview:!!this.props.light}),ht(this,"references",{wrapper:n=>{this.wrapper=n},player:n=>{this.player=n}}),ht(this,"handleClickPreview",n=>{this.setState({showPreview:!1}),this.props.onClickPreview(n)}),ht(this,"showPreview",()=>{this.setState({showPreview:!0})}),ht(this,"getDuration",()=>this.player?this.player.getDuration():null),ht(this,"getCurrentTime",()=>this.player?this.player.getCurrentTime():null),ht(this,"getSecondsLoaded",()=>this.player?this.player.getSecondsLoaded():null),ht(this,"getInternalPlayer",(n="player")=>this.player?this.player.getInternalPlayer(n):null),ht(this,"seekTo",(n,a,i)=>{if(!this.player)return null;this.player.seekTo(n,a,i)}),ht(this,"handleReady",()=>{this.props.onReady(this)}),ht(this,"getActivePlayer",(0,Wh.default)(n=>{for(const a of[...Ni,...e])if(a.canPlay(n))return a;return t||null})),ht(this,"getConfig",(0,Wh.default)((n,a)=>{const{config:i}=this.props;return gle.default.all([$i.defaultProps.config,$i.defaultProps.config[a]||{},i,i[a]||{}])})),ht(this,"getAttributes",(0,Wh.default)(n=>(0,cN.omit)(this.props,vle))),ht(this,"renderActivePlayer",n=>{if(!n)return null;const a=this.getActivePlayer(n);if(!a)return null;const i=this.getConfig(n,a.key);return _a.default.createElement(hle.default,{...this.props,key:a.key,ref:this.references.player,config:i,activePlayer:a.lazyPlayer||a,onReady:this.handleReady})})}shouldComponentUpdate(n,a){return!(0,zO.default)(this.props,n)||!(0,zO.default)(this.state,a)}componentDidUpdate(n){const{light:a}=this.props;!n.light&&a&&this.setState({showPreview:!0}),n.light&&!a&&this.setState({showPreview:!1})}renderPreview(n){if(!n)return null;const{light:a,playIcon:i,previewTabIndex:o,oEmbedUrl:s}=this.props;return _a.default.createElement(mle,{url:n,light:a,playIcon:i,previewTabIndex:o,oEmbedUrl:s,onClick:this.handleClickPreview})}render(){const{url:n,style:a,width:i,height:o,fallback:s,wrapper:l}=this.props,{showPreview:c}=this.state,d=this.getAttributes(n),p=typeof l=="string"?this.references.wrapper:void 0;return _a.default.createElement(l,{ref:p,style:{...a,width:i,height:o},...d},_a.default.createElement(Sle,{fallback:s},c?this.renderPreview(n):this.renderActivePlayer(n)))}},ht(r,"displayName","ReactPlayer"),ht(r,"propTypes",$i.propTypes),ht(r,"defaultProps",$i.defaultProps),ht(r,"addCustomPlayer",n=>{Ni.push(n)}),ht(r,"removeCustomPlayers",()=>{Ni.length=0}),ht(r,"canPlay",n=>{for(const a of[...Ni,...e])if(a.canPlay(n))return!0;return!1}),ht(r,"canEnablePIP",n=>{for(const a of[...Ni,...e])if(a.canEnablePIP&&a.canEnablePIP(n))return!0;return!1}),r};var xle=Object.create,Bu=Object.defineProperty,wle=Object.getOwnPropertyDescriptor,_le=Object.getOwnPropertyNames,Tle=Object.getPrototypeOf,Ale=Object.prototype.hasOwnProperty,Ole=(e,t)=>{for(var r in t)Bu(e,r,{get:t[r],enumerable:!0})},dN=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of _le(t))!Ale.call(e,a)&&a!==r&&Bu(e,a,{get:()=>t[a],enumerable:!(n=wle(t,a))||n.enumerable});return e},kle=(e,t,r)=>(r=e!=null?xle(Tle(e)):{},dN(t||!e||!e.__esModule?Bu(r,"default",{value:e,enumerable:!0}):r,e)),Rle=e=>dN(Bu({},"__esModule",{value:!0}),e),pN={};Ole(pN,{default:()=>Dle});var Ile=Rle(pN),db=kle(Tse),Nle=fle;const Cle=db.default[db.default.length-1];var Dle=(0,Nle.createReactPlayer)(db.default,Cle);const Lle=ft(Ile),qO=e=>{const t=Math.floor(e/3600),r=Math.floor(e%3600/60),n=Math.floor(e%60),a=t>0?`${t}:`:"",i=t>0?r.toString().padStart(2,"0"):r.toString(),o=n.toString().padStart(2,"0");return`${a}${i}:${o}`},Mle=({isPlaying:e,isFullScreen:t,setIsPlaying:r,playingTime:n,duration:a,handleProgressChange:i,handleVolumeChange:o,onFullScreenClick:s,showToolbar:l})=>{const[c,d]=P.useState(.5),[p,g]=P.useState(!1),[m,b]=P.useState(.5),S=(O,_)=>{const w=Array.isArray(_)?_[0]:_;d(w),o(O,w),p&&g(!1)},v=()=>{p?(d(m),o(new Event("input"),m)):(b(c),d(0),o(new Event("input"),0)),g(!p)};return h.jsxs(F,{children:[(!l||t)&&h.jsx(Gle,{"aria-label":"Small","data-testid":"progress-bar",isFullScreen:t,max:a,onChange:i,size:"small",value:n}),h.jsxs(Ple,{align:"center",direction:"row",showToolbar:l||t,children:[h.jsx(Fle,{onClick:r,size:"small",children:e?h.jsx(Sb,{}):h.jsx(Eb,{})}),h.jsxs(zle,{direction:"row",children:[h.jsx("span",{children:qO(n)}),h.jsx("span",{className:"separator",children:"/"}),h.jsx("span",{className:"duration",children:qO(a)})]}),h.jsxs(Ble,{direction:"row",px:9,children:[h.jsx(Wl,{className:"volume-slider",max:1,min:0,onChange:S,size:"small",step:.1,value:c}),h.jsx($le,{onClick:v,children:p?h.jsx(jle,{children:h.jsx($M,{})}):h.jsx(jM,{})})]}),h.jsx(Ule,{"data-testid":"fullscreen-button",onClick:s,children:t?h.jsx(BM,{}):h.jsx(FM,{})})]})]})},Ple=B(F)` height: 60px; padding: 12px 16px; ${e=>e.showToolbar&&` diff --git a/build/assets/index-75c1ca4f.js b/build/assets/index-0cbd2958.js similarity index 96% rename from build/assets/index-75c1ca4f.js rename to build/assets/index-0cbd2958.js index 38d711afb..d7d60647a 100644 --- a/build/assets/index-75c1ca4f.js +++ b/build/assets/index-0cbd2958.js @@ -1,4 +1,4 @@ -import{s as t,a as o,F as n,T as S,r as b,j as e,B as v,t as C,k as $,b as T,aS as G,aT as k,N as y,v as z,aU as w,aV as M,aW as D,e as j,aX as I}from"./index-3506c528.js";import{h as A,n as R}from"./index-ccbb14cf.js";import{C as B}from"./ClipLoader-273b2bbd.js";import{T as E,a as L}from"./Tabs-53998bef.js";import"./createSvgIcon-0fd508c0.js";const V=()=>(A(R(a=>[a.graphStyle,a.setGraphStyle])),null);t(n).attrs({direction:"row",align:"center",justify:"space-between"})` +import{s as t,a as o,F as n,T as S,r as b,j as e,B as v,t as C,k as $,b as T,aS as G,aT as k,N as y,v as z,aU as w,aV as M,aW as D,e as j,aX as I}from"./index-6541aa03.js";import{h as A,v as R}from"./index-ad617d4b.js";import{C as B}from"./ClipLoader-708ab7a4.js";import{T as E,a as L}from"./Tabs-31512595.js";import"./createSvgIcon-0b5f6bf4.js";const V=()=>(A(R(a=>[a.graphStyle,a.setGraphStyle])),null);t(n).attrs({direction:"row",align:"center",justify:"space-between"})` width: 447px; height: 48px; background: ${o.appearanceBg}; diff --git a/build/assets/index-d713bacb.js b/build/assets/index-3240d88e.js similarity index 96% rename from build/assets/index-d713bacb.js rename to build/assets/index-3240d88e.js index c2556d45a..fa584d10c 100644 --- a/build/assets/index-d713bacb.js +++ b/build/assets/index-3240d88e.js @@ -1,4 +1,4 @@ -import{z as Z,s as g,a as b,F as t,T,b as V,r as y,j as e,B as C,aW as ee,b4 as te,an as se,aU as L,aV as F,b9 as B,ba as ne,q as oe,bb as re,bc as ie,bd as ae,e as O,t as ce,u as le,aT as de,N as I,aX as pe,v as xe,ag as me,af as ue,b7 as he}from"./index-3506c528.js";import{ac as fe,h as ye}from"./index-ccbb14cf.js";import{f as ge}from"./index-6c442139.js";import{C as U}from"./ClipLoader-273b2bbd.js";import{p as q}from"./index-90ded230.js";import{A as je}from"./index-1575e121.js";import{c as we}from"./index-64f1c910.js";import"./three.module-10ab52a5.js";import"./index-d54cb162.js";import"./Stack-7521353f.js";import"./createSvgIcon-0fd508c0.js";import"./TextareaAutosize-e8dfc0e6.js";const be=async(o,a,c="")=>await Z.post(`/${o}`,JSON.stringify(a),{Authorization:c}),Se=async(o,a,c,m,d,r)=>{const x=o==="Create custom type"?"schema":"node",l={node_data:{...a,...o==="Image"&&{source_link:c}},node_type:o,name:m,pubkey:r};return be(x,l,d)},Ne=({onClick:o,loading:a,error:c})=>{const m=V(l=>l.budget),[d,r]=y.useState(10),x="node";return y.useEffect(()=>{(async()=>{try{const h=await te(x);r(h.data.price)}catch(h){console.error("cannot fetch",h)}})()},[x]),e.jsxs(t,{children:[e.jsx(t,{align:"center",direction:"row",justify:"space-between",mb:20,children:e.jsx(t,{align:"center",direction:"row",children:e.jsx(ke,{children:"Approve Cost"})})}),e.jsxs(t,{align:"center",direction:"row",justify:"space-between",mb:20,children:[e.jsxs(Te,{children:[e.jsx("div",{className:"title",children:"COST"}),e.jsxs("div",{className:"value","data-testid":"check-price",children:[d," sats"]})]}),e.jsxs(Ce,{children:[e.jsx("div",{className:"title",children:"BUDGET"}),e.jsxs("div",{className:"value",children:[ge(m)," sats"]})]})]}),e.jsx(t,{children:e.jsx(C,{color:"secondary","data-testid":"check-icon",disabled:a||!!c,onClick:o,size:"large",startIcon:a?e.jsx(R,{children:e.jsx(U,{color:b.lightGray,size:12})}):e.jsxs(R,{children:[" ",e.jsx(fe,{})]}),type:"submit",variant:"contained",children:"Approve"})}),c?e.jsx(ze,{children:e.jsxs(ve,{children:[e.jsx(ee,{className:"errorIcon"}),e.jsx("span",{children:c})]})}):null]})},Te=g(t).attrs({direction:"column",align:"space-between",justify:"flex-start"})` +import{z as Z,s as g,a as b,F as t,T,b as V,r as y,j as e,B as C,aW as ee,b4 as te,an as se,aU as L,aV as F,b9 as B,ba as ne,q as oe,bb as re,bc as ie,bd as ae,e as O,t as ce,u as le,aT as de,N as I,aX as pe,v as xe,ag as me,af as ue,b7 as he}from"./index-6541aa03.js";import{ac as fe,h as ye}from"./index-ad617d4b.js";import{f as ge}from"./index-e7d624e0.js";import{C as U}from"./ClipLoader-708ab7a4.js";import{p as q}from"./index-90ded230.js";import{A as je}from"./index-bb4d07d0.js";import{c as we}from"./index-64f1c910.js";import"./three.module-10ab52a5.js";import"./index-8f946e20.js";import"./Stack-bcf44d60.js";import"./createSvgIcon-0b5f6bf4.js";import"./TextareaAutosize-387bd327.js";const be=async(o,a,c="")=>await Z.post(`/${o}`,JSON.stringify(a),{Authorization:c}),Se=async(o,a,c,m,d,r)=>{const x=o==="Create custom type"?"schema":"node",l={node_data:{...a,...o==="Image"&&{source_link:c}},node_type:o,name:m,pubkey:r};return be(x,l,d)},Ne=({onClick:o,loading:a,error:c})=>{const m=V(l=>l.budget),[d,r]=y.useState(10),x="node";return y.useEffect(()=>{(async()=>{try{const h=await te(x);r(h.data.price)}catch(h){console.error("cannot fetch",h)}})()},[x]),e.jsxs(t,{children:[e.jsx(t,{align:"center",direction:"row",justify:"space-between",mb:20,children:e.jsx(t,{align:"center",direction:"row",children:e.jsx(ke,{children:"Approve Cost"})})}),e.jsxs(t,{align:"center",direction:"row",justify:"space-between",mb:20,children:[e.jsxs(Te,{children:[e.jsx("div",{className:"title",children:"COST"}),e.jsxs("div",{className:"value","data-testid":"check-price",children:[d," sats"]})]}),e.jsxs(Ce,{children:[e.jsx("div",{className:"title",children:"BUDGET"}),e.jsxs("div",{className:"value",children:[ge(m)," sats"]})]})]}),e.jsx(t,{children:e.jsx(C,{color:"secondary","data-testid":"check-icon",disabled:a||!!c,onClick:o,size:"large",startIcon:a?e.jsx(R,{children:e.jsx(U,{color:b.lightGray,size:12})}):e.jsxs(R,{children:[" ",e.jsx(fe,{})]}),type:"submit",variant:"contained",children:"Approve"})}),c?e.jsx(ze,{children:e.jsxs(ve,{children:[e.jsx(ee,{className:"errorIcon"}),e.jsx("span",{children:c})]})}):null]})},Te=g(t).attrs({direction:"column",align:"space-between",justify:"flex-start"})` width: 141px; height: 61px; border: 1px solid ${b.GRAY7}; diff --git a/build/assets/index-b5c638db.js b/build/assets/index-4241a17b.js similarity index 93% rename from build/assets/index-b5c638db.js rename to build/assets/index-4241a17b.js index 9b9d8dd4d..64ee8b2da 100644 --- a/build/assets/index-b5c638db.js +++ b/build/assets/index-4241a17b.js @@ -1,4 +1,4 @@ -import{s as c,a as b,T as E,F as s,e as x,q as O,r as d,j as e,aU as V,aV as W,t as q,v as P,B as F,bs as k,bq as G,u as H,aX as X}from"./index-3506c528.js";import{m as I,aH as Y}from"./index-ccbb14cf.js";import{T as J}from"./index-d54cb162.js";import{S as K}from"./Skeleton-c3abb4f1.js";import{C as Q}from"./ClipLoader-273b2bbd.js";const Z=/^https:\/\/\S+\.(png|jpe?g|svg)$/;function ee(r){return!!Z.test(r)}function te(r){return r.split("_").map(p=>p.charAt(0).toUpperCase()+p.slice(1)).join(" ")}const ae=()=>{const{open:r}=x("changeNodeType"),{close:p}=x("editNodeName"),{changeNodeTypeFeatureFlag:f}=O(o=>({changeNodeTypeFeatureFlag:o.changeNodeTypeFeatureFlag})),a=I(),j=a==null?void 0:a.node_type,[u,g]=d.useState({});d.useEffect(()=>{a!=null&&a.properties&&g(a.properties)},[a]);const y=()=>{p(),r()},h=(o,n)=>{g(N=>({...N,[o]:n}))};return e.jsxs(s,{children:[e.jsx(s,{align:"center",direction:"row",justify:"space-between",mb:18,children:e.jsxs(s,{align:"center",direction:"row",children:[e.jsx(oe,{children:"Edit Node"}),e.jsxs(se,{children:[e.jsx(J,{type:j}),f&&e.jsx(re,{onClick:y,children:e.jsx(Y,{})})]})]})}),e.jsx(ie,{children:Object.keys(u).map(o=>e.jsxs(s,{mb:18,children:[e.jsx(ne,{style:{marginBottom:8},children:te(o)}),e.jsx(V,{id:`cy-${o}`,maxLength:50,name:`properties.${o}`,onChange:n=>h(o,n),placeholder:`Please Enter the ${o}`,rules:o==="name"?{...W}:{}})]},o))})]})},oe=c(E)` +import{s as c,a as b,T as E,F as s,e as x,q as O,r as d,j as e,aU as V,aV as W,t as q,v as P,B as F,bs as k,bq as G,u as H,aX as X}from"./index-6541aa03.js";import{m as I,aH as Y}from"./index-ad617d4b.js";import{T as J}from"./index-8f946e20.js";import{S as K}from"./Skeleton-851daffa.js";import{C as Q}from"./ClipLoader-708ab7a4.js";const Z=/^https:\/\/\S+\.(png|jpe?g|svg)$/;function ee(r){return!!Z.test(r)}function te(r){return r.split("_").map(p=>p.charAt(0).toUpperCase()+p.slice(1)).join(" ")}const ae=()=>{const{open:r}=x("changeNodeType"),{close:p}=x("editNodeName"),{changeNodeTypeFeatureFlag:f}=O(o=>({changeNodeTypeFeatureFlag:o.changeNodeTypeFeatureFlag})),a=I(),j=a==null?void 0:a.node_type,[u,g]=d.useState({});d.useEffect(()=>{a!=null&&a.properties&&g(a.properties)},[a]);const y=()=>{p(),r()},h=(o,n)=>{g(N=>({...N,[o]:n}))};return e.jsxs(s,{children:[e.jsx(s,{align:"center",direction:"row",justify:"space-between",mb:18,children:e.jsxs(s,{align:"center",direction:"row",children:[e.jsx(oe,{children:"Edit Node"}),e.jsxs(se,{children:[e.jsx(J,{type:j}),f&&e.jsx(re,{onClick:y,children:e.jsx(Y,{})})]})]})}),e.jsx(ie,{children:Object.keys(u).map(o=>e.jsxs(s,{mb:18,children:[e.jsx(ne,{style:{marginBottom:8},children:te(o)}),e.jsx(V,{id:`cy-${o}`,maxLength:50,name:`properties.${o}`,onChange:n=>h(o,n),placeholder:`Please Enter the ${o}`,rules:o==="name"?{...W}:{}})]},o))})]})},oe=c(E)` font-size: 22px; font-weight: 600; font-family: 'Barlow'; diff --git a/build/assets/index-c8b2a94e.js b/build/assets/index-5207a9c5.js similarity index 93% rename from build/assets/index-c8b2a94e.js rename to build/assets/index-5207a9c5.js index d17885189..8f6fed418 100644 --- a/build/assets/index-c8b2a94e.js +++ b/build/assets/index-5207a9c5.js @@ -1,4 +1,4 @@ -import{r,j as e,bn as k,i as A,F as h,C as F,bc as O,bo as _,s as l,T as z,e as E,t as N,v as D,a as C,B as M,bp as X,aX as Y}from"./index-3506c528.js";import{ax as P,ay as G,az as H,m as R}from"./index-ccbb14cf.js";import{A as I,T as V}from"./index-1575e121.js";import{S as W,A as $}from"./constants-f759a65e.js";import{C as T}from"./ClipLoader-273b2bbd.js";import"./index-d54cb162.js";import"./Stack-7521353f.js";import"./createSvgIcon-0fd508c0.js";import"./TextareaAutosize-e8dfc0e6.js";const q=({selectedType:t,setSelectedType:c})=>{const[p,d]=r.useState([]);r.useEffect(()=>{(async()=>{try{const{data:x}=await k();d(x.edge_types)}catch(x){console.warn(x)}})()},[d]);const n=o=>({label:o,value:o}),f=o=>{c((o==null?void 0:o.value)||"")};return e.jsx(I,{onSelect:f,options:p.map(n),selectedValue:t?n(t):null})},J=({onSelect:t,selectedValue:c,topicId:p})=>{const[d,n]=r.useState([]),[f,o]=r.useState(!1),x=r.useMemo(()=>{const s=async u=>{const i={is_muted:"False",sort_by:$,search:u,skip:"0",limit:"1000"};o(!0);try{const w=(await _(i.search)).data.filter(b=>(b==null?void 0:b.ref_id)!==p);n(w)}catch{n([])}finally{o(!1)}};return A.debounce(s,300)},[p]),m=s=>{const u=s.trim();if(!u){n([]);return}u.length>2&&x(s)},j=s=>{const u=s?d.find(i=>i.ref_id===s.value):null;t(u||null)},a=s=>({label:s.search_value,value:s.ref_id,type:s.node_type}),v=s=>s.map(a);return c?e.jsxs(h,{align:"center",basis:"100%",direction:"row",grow:1,shrink:1,children:[e.jsx("span",{children:c.search_value}),e.jsx(W,{onClick:()=>t(null),size:"medium",children:e.jsx(F,{})})]}):e.jsx(I,{handleInputChange:m,isLoading:f,onSelect:j,options:v(d)||O,selectedValue:c?a(c):null})},K=({from:t,onSelect:c,selectedType:p,setSelectedType:d,selectedToNode:n,setIsSwapped:f,isSwapped:o})=>{const x=()=>{f()},m=t&&("search_value"in t?t.search_value:t.name);return e.jsxs(h,{mb:20,children:[e.jsx(h,{align:"center",direction:"row",justify:"space-between",mb:18,children:e.jsx(h,{align:"center",direction:"row",children:e.jsx(U,{children:"Add Edge"})})}),e.jsxs(Z,{swap:o,children:[e.jsx(h,{children:e.jsx(ee,{disabled:!0,label:o?"To":"From",swap:o,value:m})}),e.jsxs(h,{my:16,children:[e.jsx(oe,{children:"Type"}),e.jsx(q,{selectedType:p,setSelectedType:d})]}),e.jsx(h,{children:e.jsxs(te,{children:[e.jsx(se,{children:o?"From":"To"}),e.jsx(J,{onSelect:c,selectedValue:n,topicId:t==null?void 0:t.ref_id})]})}),e.jsxs(Q,{children:[e.jsx(ne,{children:e.jsx(P,{})}),e.jsx(ae,{onClick:x,children:e.jsx(G,{})}),e.jsx(ie,{children:e.jsx(H,{})})]})]})]})},Q=l.div` +import{r,j as e,bn as k,i as A,F as h,C as F,bc as O,bo as _,s as l,T as z,e as E,t as N,v as D,a as C,B as M,bp as X,aX as Y}from"./index-6541aa03.js";import{ax as P,ay as G,az as H,m as R}from"./index-ad617d4b.js";import{A as I,T as V}from"./index-bb4d07d0.js";import{S as W,A as $}from"./constants-71fc61fd.js";import{C as T}from"./ClipLoader-708ab7a4.js";import"./index-8f946e20.js";import"./Stack-bcf44d60.js";import"./createSvgIcon-0b5f6bf4.js";import"./TextareaAutosize-387bd327.js";const q=({selectedType:t,setSelectedType:c})=>{const[p,d]=r.useState([]);r.useEffect(()=>{(async()=>{try{const{data:x}=await k();d(x.edge_types)}catch(x){console.warn(x)}})()},[d]);const n=o=>({label:o,value:o}),f=o=>{c((o==null?void 0:o.value)||"")};return e.jsx(I,{onSelect:f,options:p.map(n),selectedValue:t?n(t):null})},J=({onSelect:t,selectedValue:c,topicId:p})=>{const[d,n]=r.useState([]),[f,o]=r.useState(!1),x=r.useMemo(()=>{const s=async u=>{const i={is_muted:"False",sort_by:$,search:u,skip:"0",limit:"1000"};o(!0);try{const w=(await _(i.search)).data.filter(b=>(b==null?void 0:b.ref_id)!==p);n(w)}catch{n([])}finally{o(!1)}};return A.debounce(s,300)},[p]),m=s=>{const u=s.trim();if(!u){n([]);return}u.length>2&&x(s)},j=s=>{const u=s?d.find(i=>i.ref_id===s.value):null;t(u||null)},a=s=>({label:s.search_value,value:s.ref_id,type:s.node_type}),v=s=>s.map(a);return c?e.jsxs(h,{align:"center",basis:"100%",direction:"row",grow:1,shrink:1,children:[e.jsx("span",{children:c.search_value}),e.jsx(W,{onClick:()=>t(null),size:"medium",children:e.jsx(F,{})})]}):e.jsx(I,{handleInputChange:m,isLoading:f,onSelect:j,options:v(d)||O,selectedValue:c?a(c):null})},K=({from:t,onSelect:c,selectedType:p,setSelectedType:d,selectedToNode:n,setIsSwapped:f,isSwapped:o})=>{const x=()=>{f()},m=t&&("search_value"in t?t.search_value:t.name);return e.jsxs(h,{mb:20,children:[e.jsx(h,{align:"center",direction:"row",justify:"space-between",mb:18,children:e.jsx(h,{align:"center",direction:"row",children:e.jsx(U,{children:"Add Edge"})})}),e.jsxs(Z,{swap:o,children:[e.jsx(h,{children:e.jsx(ee,{disabled:!0,label:o?"To":"From",swap:o,value:m})}),e.jsxs(h,{my:16,children:[e.jsx(oe,{children:"Type"}),e.jsx(q,{selectedType:p,setSelectedType:d})]}),e.jsx(h,{children:e.jsxs(te,{children:[e.jsx(se,{children:o?"From":"To"}),e.jsx(J,{onSelect:c,selectedValue:n,topicId:t==null?void 0:t.ref_id})]})}),e.jsxs(Q,{children:[e.jsx(ne,{children:e.jsx(P,{})}),e.jsx(ae,{onClick:x,children:e.jsx(G,{})}),e.jsx(ie,{children:e.jsx(H,{})})]})]})]})},Q=l.div` position: absolute; top: 26px; bottom: 26px; diff --git a/build/assets/index-3506c528.js b/build/assets/index-6541aa03.js similarity index 99% rename from build/assets/index-3506c528.js rename to build/assets/index-6541aa03.js index 0df24c2ae..a10017eab 100644 --- a/build/assets/index-3506c528.js +++ b/build/assets/index-6541aa03.js @@ -831,4 +831,4 @@ PROCEED WITH CAUTION! align-items: center; width: 100%; height: 100%; -`,LazyApp=reactExports.lazy(()=>__vitePreload(()=>import("./index-6c442139.js").then(et=>et.i),["assets/index-6c442139.js","assets/index-ccbb14cf.js"]).then(({App:et})=>({default:et}))),LazyMindSet=reactExports.lazy(()=>__vitePreload(()=>import("./index-632074bb.js"),["assets/index-632074bb.js","assets/index-df640694.js","assets/index-b1ebd2b7.js","assets/three.module-10ab52a5.js","assets/index-c106f68f.js","assets/index-ccbb14cf.js","assets/TextareaAutosize-e8dfc0e6.js","assets/index-d54cb162.js","assets/index-27744ada.js","assets/ClipLoader-273b2bbd.js","assets/index-44c74031.js","assets/Skeleton-c3abb4f1.js","assets/Stack-7521353f.js","assets/isPlainObject-9e89c04f.js","assets/Typography-7897fa03.js","assets/createSvgIcon-0fd508c0.js","assets/index-831eec8c.js"]).then(({MindSet:et})=>({default:et}))),AppContainer=()=>{var tt;const et=((tt=window.location)==null?void 0:tt.hostname)==="graphmindset.sphinx.chat"||window.location.hostname==="localhost"&&!isE2E;return jsxRuntimeExports.jsxs(AppProviders,{children:[jsxRuntimeExports.jsx(reactExports.Suspense,{fallback:jsxRuntimeExports.jsx("div",{children:"Loading..."}),children:jsxRuntimeExports.jsxs(Routes,{children:[et&&jsxRuntimeExports.jsx(Route,{element:jsxRuntimeExports.jsx(LazyMindSet,{}),path:"/"}),jsxRuntimeExports.jsx(Route,{element:jsxRuntimeExports.jsx(AuthGuard,{children:jsxRuntimeExports.jsx(LazyApp,{})}),path:"/"}),jsxRuntimeExports.jsx(Route,{element:jsxRuntimeExports.jsx(AuthGuard,{children:jsxRuntimeExports.jsx(LazyApp,{})}),path:"/search"}),jsxRuntimeExports.jsx(Route,{element:jsxRuntimeExports.jsx(AuthGuard,{children:jsxRuntimeExports.jsx(LazyApp,{})}),path:"*"})]})}),jsxRuntimeExports.jsx(E2ETests,{})]})},index="",root=client$1.createRoot(document.getElementById("root"));root.render(isE2E?jsxRuntimeExports.jsx(BrowserRouter,{children:jsxRuntimeExports.jsx(AppContainer,{})}):jsxRuntimeExports.jsx(React.StrictMode,{children:jsxRuntimeExports.jsx(BrowserRouter,{children:jsxRuntimeExports.jsx(AppContainer,{})})}));reportWebVitals();overrideConsole();export{useEnhancedEffect$1 as $,clsx as A,Button$1 as B,ClearIcon as C,fetchNodeEdges as D,getNode as E,Flex as F,_inheritsLoose as G,_objectWithoutPropertiesLoose as H,InfoIcon as I,React as J,TransitionGroupContext as K,generateUtilityClass as L,generateUtilityClasses as M,NODE_ADD_ERROR as N,styled$1 as O,alpha as P,Q,ReactDOM as R,useThemeProps as S,Text as T,clsx$2 as U,composeClasses as V,We as W,ButtonBase$1 as X,capitalize as Y,useForkRef as Z,__vitePreload as _,colors as a,GITHUB_REPOSITORY as a$,setRef as a0,reactDomExports as a1,useEventCallback as a2,useTheme as a3,devtools as a4,LinearProgress$1 as a5,SocketContext as a6,isSphinx as a7,$2AODx$react as a8,getDefaultExportFromCjs as a9,isArguments_1 as aA,isArray_1 as aB,_arrayPush as aC,_baseUnary as aD,_defineProperty as aE,eq_1 as aF,isArrayLike_1 as aG,_isIndex as aH,isObject_1 as aI,_root as aJ,_baseAssignValue as aK,keys_1 as aL,MdBolt as aM,getFullTranscript as aN,MdPlayArrow as aO,MdAccessTime as aP,getAugmentedNamespace as aQ,useHasAiChats as aR,postAboutData as aS,SuccessNotify as aT,TextInput as aU,requiredRule as aV,MdError as aW,BaseModal as aX,TWITTER_HANDLE as aY,YOUTUBE_CHANNEL as aZ,RSS as a_,useNodeTypes as aa,MdViewInAr as ab,MdClose as ac,addToGlobalForE2e as ad,isDevelopment as ae,distExports$1 as af,executeIfProd as ag,useIsFocusVisible as ah,rootShouldForwardProp as ai,lighten as aj,darken as ak,slotShouldForwardProp as al,Ce as am,useFormContext as an,useHasAiChatsResponseLoading as ao,Ue as ap,hooks as aq,commonjsGlobal as ar,commonjsRequire as as,useFilteredNodes as at,_baseGetTag as au,isObjectLike_1 as av,isObject$8 as aw,isFunction$4 as ax,_Set as ay,_Symbol as az,useUserStore as b,formatMuiErrorMessage as b$,LINK as b0,TWITTER_SOURCE as b1,WEB_PAGE as b2,DOCUMENT as b3,getPriceData as b4,isE2E as b5,sphinxBridge as b6,getLSat as b7,payLsat as b8,noSpacePattern as b9,postBluePrintType as bA,deleteEdgeType as bB,cloneDeep_1 as bC,useFieldArray as bD,OptionTypes as bE,NoParent as bF,editNodeSchemaUpdate as bG,createRoot as bH,react as bI,GRAPH_GROUND_COLOR as bJ,GRAPH_LIGHT_INTENSITY as bK,_MapCache as bL,_Uint8Array as bM,_getAllKeys as bN,_Stack as bO,_getTag as bP,isBufferExports as bQ,isTypedArray_1 as bR,isLength_1 as bS,_getPrototype as bT,request as bU,buffer$2 as bV,sphinx$1 as bW,Global as bX,useTheme$2 as bY,defaultTheme$1 as bZ,THEME_ID as b_,getNodeType as ba,getNodeSchemaTypes as bb,OPTIONS as bc,initialValue as bd,getNodeContent as be,MdCheckCircle as bf,MdCancel as bg,approveRadarData as bh,deleteRadarData as bi,getRadarData as bj,BaseTextInput as bk,MdCheck as bl,putRadarData as bm,getEdgeTypes as bn,getEdges as bo,postEdgeType as bp,putNodeData as bq,postMergeTopics as br,getTopicsData as bs,deleteNode as bt,keyframes as bu,css as bv,changeNodeType as bw,resolveBreakpointValues as bx,handleBreakpoints as by,updateEdgeType as bz,create as c,deepmerge as c0,defaultSxConfig$1 as c1,isPlainObject$1 as c2,createStyled as c3,createTheme$1 as c4,useThemeProps$1 as c5,createUnarySpacing as c6,mergeBreakpointsInOrder as c7,getValue as c8,useTheme$3 as c9,index$1 as ca,useSchemaStore as d,useModal as e,getStats as f,getTotalProcessing as g,formatStatsResponse as h,lodashExports as i,jsxRuntimeExports as j,useAppStore as k,lottie as l,media as m,useAiSummaryStore as n,useNavigate as o,useSearchParams as p,useFeatureFlagStore as q,reactExports as r,styled$3 as s,useForm as t,useDataStore as u,FormProvider as v,updateBudget as w,_extends as x,getSchemaAll as y,api$1 as z}; +`,LazyApp=reactExports.lazy(()=>__vitePreload(()=>import("./index-e7d624e0.js").then(et=>et.i),["assets/index-e7d624e0.js","assets/index-ad617d4b.js"]).then(({App:et})=>({default:et}))),LazyMindSet=reactExports.lazy(()=>__vitePreload(()=>import("./index-71451929.js"),["assets/index-71451929.js","assets/index-8001dd73.js","assets/index-6b78adda.js","assets/three.module-10ab52a5.js","assets/index-049c9db0.js","assets/index-ad617d4b.js","assets/TextareaAutosize-387bd327.js","assets/index-070f6d98.js","assets/ClipLoader-708ab7a4.js","assets/index-0c54fe39.js","assets/Skeleton-851daffa.js","assets/Stack-bcf44d60.js","assets/index-8f946e20.js","assets/isPlainObject-5d028b0a.js","assets/Typography-0c02c7d4.js","assets/createSvgIcon-0b5f6bf4.js","assets/index-badf8d31.js"]).then(({MindSet:et})=>({default:et}))),AppContainer=()=>{var tt;const et=((tt=window.location)==null?void 0:tt.hostname)==="graphmindset.sphinx.chat"||window.location.hostname==="localhost"&&!isE2E;return jsxRuntimeExports.jsxs(AppProviders,{children:[jsxRuntimeExports.jsx(reactExports.Suspense,{fallback:jsxRuntimeExports.jsx("div",{children:"Loading..."}),children:jsxRuntimeExports.jsxs(Routes,{children:[et&&jsxRuntimeExports.jsx(Route,{element:jsxRuntimeExports.jsx(LazyMindSet,{}),path:"/"}),jsxRuntimeExports.jsx(Route,{element:jsxRuntimeExports.jsx(AuthGuard,{children:jsxRuntimeExports.jsx(LazyApp,{})}),path:"/"}),jsxRuntimeExports.jsx(Route,{element:jsxRuntimeExports.jsx(AuthGuard,{children:jsxRuntimeExports.jsx(LazyApp,{})}),path:"/search"}),jsxRuntimeExports.jsx(Route,{element:jsxRuntimeExports.jsx(AuthGuard,{children:jsxRuntimeExports.jsx(LazyApp,{})}),path:"*"})]})}),jsxRuntimeExports.jsx(E2ETests,{})]})},index="",root=client$1.createRoot(document.getElementById("root"));root.render(isE2E?jsxRuntimeExports.jsx(BrowserRouter,{children:jsxRuntimeExports.jsx(AppContainer,{})}):jsxRuntimeExports.jsx(React.StrictMode,{children:jsxRuntimeExports.jsx(BrowserRouter,{children:jsxRuntimeExports.jsx(AppContainer,{})})}));reportWebVitals();overrideConsole();export{useEnhancedEffect$1 as $,clsx as A,Button$1 as B,ClearIcon as C,fetchNodeEdges as D,getNode as E,Flex as F,_inheritsLoose as G,_objectWithoutPropertiesLoose as H,InfoIcon as I,React as J,TransitionGroupContext as K,generateUtilityClass as L,generateUtilityClasses as M,NODE_ADD_ERROR as N,styled$1 as O,alpha as P,Q,ReactDOM as R,useThemeProps as S,Text as T,clsx$2 as U,composeClasses as V,We as W,ButtonBase$1 as X,capitalize as Y,useForkRef as Z,__vitePreload as _,colors as a,GITHUB_REPOSITORY as a$,setRef as a0,reactDomExports as a1,useEventCallback as a2,useTheme as a3,devtools as a4,LinearProgress$1 as a5,SocketContext as a6,isSphinx as a7,$2AODx$react as a8,getDefaultExportFromCjs as a9,isArguments_1 as aA,isArray_1 as aB,_arrayPush as aC,_baseUnary as aD,_defineProperty as aE,eq_1 as aF,isArrayLike_1 as aG,_isIndex as aH,isObject_1 as aI,_root as aJ,_baseAssignValue as aK,keys_1 as aL,MdBolt as aM,getFullTranscript as aN,MdPlayArrow as aO,MdAccessTime as aP,getAugmentedNamespace as aQ,useHasAiChats as aR,postAboutData as aS,SuccessNotify as aT,TextInput as aU,requiredRule as aV,MdError as aW,BaseModal as aX,TWITTER_HANDLE as aY,YOUTUBE_CHANNEL as aZ,RSS as a_,useNodeTypes as aa,MdViewInAr as ab,MdClose as ac,addToGlobalForE2e as ad,isDevelopment as ae,distExports$1 as af,executeIfProd as ag,useIsFocusVisible as ah,rootShouldForwardProp as ai,lighten as aj,darken as ak,slotShouldForwardProp as al,Ce as am,useFormContext as an,useHasAiChatsResponseLoading as ao,Ue as ap,hooks as aq,commonjsGlobal as ar,commonjsRequire as as,useFilteredNodes as at,_baseGetTag as au,isObjectLike_1 as av,isObject$8 as aw,isFunction$4 as ax,_Set as ay,_Symbol as az,useUserStore as b,formatMuiErrorMessage as b$,LINK as b0,TWITTER_SOURCE as b1,WEB_PAGE as b2,DOCUMENT as b3,getPriceData as b4,isE2E as b5,sphinxBridge as b6,getLSat as b7,payLsat as b8,noSpacePattern as b9,postBluePrintType as bA,deleteEdgeType as bB,cloneDeep_1 as bC,useFieldArray as bD,OptionTypes as bE,NoParent as bF,editNodeSchemaUpdate as bG,createRoot as bH,react as bI,GRAPH_GROUND_COLOR as bJ,GRAPH_LIGHT_INTENSITY as bK,_MapCache as bL,_Uint8Array as bM,_getAllKeys as bN,_Stack as bO,_getTag as bP,isBufferExports as bQ,isTypedArray_1 as bR,isLength_1 as bS,_getPrototype as bT,request as bU,buffer$2 as bV,sphinx$1 as bW,Global as bX,useTheme$2 as bY,defaultTheme$1 as bZ,THEME_ID as b_,getNodeType as ba,getNodeSchemaTypes as bb,OPTIONS as bc,initialValue as bd,getNodeContent as be,MdCheckCircle as bf,MdCancel as bg,approveRadarData as bh,deleteRadarData as bi,getRadarData as bj,BaseTextInput as bk,MdCheck as bl,putRadarData as bm,getEdgeTypes as bn,getEdges as bo,postEdgeType as bp,putNodeData as bq,postMergeTopics as br,getTopicsData as bs,deleteNode as bt,keyframes as bu,css as bv,changeNodeType as bw,resolveBreakpointValues as bx,handleBreakpoints as by,updateEdgeType as bz,create as c,deepmerge as c0,defaultSxConfig$1 as c1,isPlainObject$1 as c2,createStyled as c3,createTheme$1 as c4,useThemeProps$1 as c5,createUnarySpacing as c6,mergeBreakpointsInOrder as c7,getValue as c8,useTheme$3 as c9,index$1 as ca,useSchemaStore as d,useModal as e,getStats as f,getTotalProcessing as g,formatStatsResponse as h,lodashExports as i,jsxRuntimeExports as j,useAppStore as k,lottie as l,media as m,useAiSummaryStore as n,useNavigate as o,useSearchParams as p,useFeatureFlagStore as q,reactExports as r,styled$3 as s,useForm as t,useDataStore as u,FormProvider as v,updateBudget as w,_extends as x,getSchemaAll as y,api$1 as z}; diff --git a/build/assets/index-b1ebd2b7.js b/build/assets/index-6b78adda.js similarity index 89% rename from build/assets/index-b1ebd2b7.js rename to build/assets/index-6b78adda.js index 5120b3063..525083197 100644 --- a/build/assets/index-b1ebd2b7.js +++ b/build/assets/index-6b78adda.js @@ -1,4 +1,4 @@ -import{r as P,a9 as hf,x as qr,bH as pf,J as er,bI as $d,j as L,a as fo,bJ as e1,bK as t1}from"./index-3506c528.js";import{U as Aa,X as vl,Y as n1,Z as r1,g as mf,n as i1,C as wo,_ as o1,O as yl,J as xl,$ as Rs,a0 as Ia,a1 as s1,a2 as a1,a3 as l1,a4 as u1,a5 as c1,a6 as f1,a7 as d1,V as ct,e as $r,a8 as h1,k as p1,j as Sl,w as Ds,a9 as gf,h as el,aa as tl,ab as Mi,ac as m1,x as wl,ad as g1,ae as nl,af as oc,ag as v1,m as vf,ah as y1,o as Co,ai as Ai,s as yf,aj as x1,ak as S1,al as w1,am as C1,an as _1,L as sc,ao as E1,ap as k1,M as T1,v as P1,aq as Cl,ar as ac,as as Zr,at as M1,l as Da}from"./three.module-10ab52a5.js";var xf={exports:{}},ei={};/** +import{r as P,a9 as hf,x as qr,bH as pf,J as er,bI as $d,j as L,a as fo,bJ as e1,bK as t1}from"./index-6541aa03.js";import{U as Aa,X as vl,Y as n1,Z as r1,g as mf,n as i1,C as wo,_ as o1,O as yl,J as xl,$ as Rs,a0 as Da,a1 as s1,a2 as a1,a3 as l1,a4 as u1,a5 as c1,a6 as f1,a7 as d1,V as ct,e as $r,a8 as h1,k as p1,j as Sl,w as Is,a9 as gf,h as el,aa as tl,ab as Mi,ac as m1,x as wl,ad as g1,ae as nl,af as oc,ag as v1,m as vf,ah as y1,o as Co,ai as Ai,s as yf,aj as x1,ak as S1,al as w1,am as C1,an as _1,L as sc,ao as E1,ap as k1,M as T1,v as P1,aq as Cl,ar as ac,as as Zr,at as M1,l as Ia}from"./three.module-10ab52a5.js";var xf={exports:{}},ei={};/** * @license React * react-reconciler-constants.production.min.js * @@ -14,7 +14,7 @@ import{r as P,a9 as hf,x as qr,bH as pf,J as er,bI as $d,j as L,a as fo,bJ as e1 * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */(function(o){function n(G,B){var H=G.length;G.push(B);e:for(;0>>1,j=G[M];if(0>>1;Mi(V,H))iei(Y,V)?(G[M]=Y,G[ie]=H,M=ie):(G[M]=V,G[q]=H,M=q);else if(iei(Y,H))G[M]=Y,G[ie]=H,M=ie;else break e}}return B}function i(G,B){var H=G.sortIndex-B.sortIndex;return H!==0?H:G.id-B.id}if(typeof performance=="object"&&typeof performance.now=="function"){var r=performance;o.unstable_now=function(){return r.now()}}else{var l=Date,f=l.now();o.unstable_now=function(){return l.now()-f}}var u=[],p=[],h=1,g=null,v=3,x=!1,w=!1,k=!1,_=typeof setTimeout=="function"?setTimeout:null,C=typeof clearTimeout=="function"?clearTimeout:null,S=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function T(G){for(var B=s(p);B!==null;){if(B.callback===null)c(p);else if(B.startTime<=G)c(p),B.sortIndex=B.expirationTime,n(u,B);else break;B=s(p)}}function A(G){if(k=!1,T(G),!w)if(s(u)!==null)w=!0,se(R);else{var B=s(p);B!==null&&pe(A,B.startTime-G)}}function R(G,B){w=!1,k&&(k=!1,C(z),z=-1),x=!0;var H=v;try{for(T(B),g=s(u);g!==null&&(!(g.expirationTime>B)||G&&!N());){var M=g.callback;if(typeof M=="function"){g.callback=null,v=g.priorityLevel;var j=M(g.expirationTime<=B);B=o.unstable_now(),typeof j=="function"?g.callback=j:g===s(u)&&c(u),T(B)}else c(u);g=s(u)}if(g!==null)var X=!0;else{var q=s(p);q!==null&&pe(A,q.startTime-B),X=!1}return X}finally{g=null,v=H,x=!1}}var b=!1,O=null,z=-1,Q=5,ee=-1;function N(){return!(o.unstable_now()-eeG||125M?(G.sortIndex=H,n(p,G),s(u)===null&&G===s(p)&&(k?(C(z),z=-1):k=!0,pe(A,H-M))):(G.sortIndex=j,n(u,G),w||x||(w=!0,se(R))),G},o.unstable_shouldYield=N,o.unstable_wrapCallback=function(G){var B=v;return function(){var H=v;v=B;try{return G.apply(this,arguments)}finally{v=H}}}})(Cf);wf.exports=Cf;var rl=wf.exports;/** + */(function(o){function n(G,B){var H=G.length;G.push(B);e:for(;0>>1,j=G[M];if(0>>1;Mi(V,H))iei(Y,V)?(G[M]=Y,G[ie]=H,M=ie):(G[M]=V,G[q]=H,M=q);else if(iei(Y,H))G[M]=Y,G[ie]=H,M=ie;else break e}}return B}function i(G,B){var H=G.sortIndex-B.sortIndex;return H!==0?H:G.id-B.id}if(typeof performance=="object"&&typeof performance.now=="function"){var r=performance;o.unstable_now=function(){return r.now()}}else{var l=Date,f=l.now();o.unstable_now=function(){return l.now()-f}}var u=[],p=[],h=1,g=null,v=3,x=!1,w=!1,k=!1,_=typeof setTimeout=="function"?setTimeout:null,C=typeof clearTimeout=="function"?clearTimeout:null,S=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function T(G){for(var B=s(p);B!==null;){if(B.callback===null)c(p);else if(B.startTime<=G)c(p),B.sortIndex=B.expirationTime,n(u,B);else break;B=s(p)}}function A(G){if(k=!1,T(G),!w)if(s(u)!==null)w=!0,se(R);else{var B=s(p);B!==null&&pe(A,B.startTime-G)}}function R(G,B){w=!1,k&&(k=!1,C(z),z=-1),x=!0;var H=v;try{for(T(B),g=s(u);g!==null&&(!(g.expirationTime>B)||G&&!N());){var M=g.callback;if(typeof M=="function"){g.callback=null,v=g.priorityLevel;var j=M(g.expirationTime<=B);B=o.unstable_now(),typeof j=="function"?g.callback=j:g===s(u)&&c(u),T(B)}else c(u);g=s(u)}if(g!==null)var X=!0;else{var q=s(p);q!==null&&pe(A,q.startTime-B),X=!1}return X}finally{g=null,v=H,x=!1}}var b=!1,F=null,z=-1,Q=5,ee=-1;function N(){return!(o.unstable_now()-eeG||125M?(G.sortIndex=H,n(p,G),s(u)===null&&G===s(p)&&(k?(C(z),z=-1):k=!0,pe(A,H-M))):(G.sortIndex=j,n(u,G),w||x||(w=!0,se(R))),G},o.unstable_shouldYield=N,o.unstable_wrapCallback=function(G){var B=v;return function(){var H=v;v=B;try{return G.apply(this,arguments)}finally{v=H}}}})(Cf);wf.exports=Cf;var rl=wf.exports;/** * @license React * react-reconciler.production.min.js * @@ -22,17 +22,17 @@ import{r as P,a9 as hf,x as qr,bH as pf,J as er,bI as $d,j as L,a as fo,bJ as e1 * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var R1=function(n){var s={},c=P,i=rl,r=Object.assign;function l(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,a=1;aU||m[E]!==y[U]){var Z=` -`+m[E].replace(" at new "," at ");return e.displayName&&Z.includes("")&&(Z=Z.replace("",e.displayName)),Z}while(1<=E&&0<=U);break}}}finally{Bi=!1,Error.prepareStackTrace=a}return(e=e?e.displayName||e.name:"")?jn(e):""}var ni=Object.prototype.hasOwnProperty,ri=[],Hn=-1;function hn(e){return{current:e}}function Ke(e){0>Hn||(e.current=ri[Hn],ri[Hn]=null,Hn--)}function qe(e,t){Hn++,ri[Hn]=e.current,e.current=t}var pn={},Et=hn(pn),Pt=hn(!1),Vn=pn;function En(e,t){var a=e.type.contextTypes;if(!a)return pn;var d=e.stateNode;if(d&&d.__reactInternalMemoizedUnmaskedChildContext===t)return d.__reactInternalMemoizedMaskedChildContext;var m={},y;for(y in a)m[y]=t[y];return d&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=m),m}function Mt(e){return e=e.childContextTypes,e!=null}function zn(){Ke(Pt),Ke(Et)}function ii(e,t,a){if(Et.current!==pn)throw Error(l(168));qe(Et,t),qe(Pt,a)}function oi(e,t,a){var d=e.stateNode;if(t=t.childContextTypes,typeof d.getChildContext!="function")return a;d=d.getChildContext();for(var m in d)if(!(m in t))throw Error(l(108,z(e)||"Unknown",m));return r({},a,d)}function vr(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||pn,Vn=Et.current,qe(Et,e),qe(Pt,Pt.current),!0}function mn(e,t,a){var d=e.stateNode;if(!d)throw Error(l(169));a?(e=oi(e,t,Vn),d.__reactInternalMemoizedMergedChildContext=e,Ke(Pt),Ke(Et),qe(Et,e)):Ke(Pt),qe(Pt,a)}var gn=Math.clz32?Math.clz32:Uo,si=Math.log,br=Math.LN2;function Uo(e){return e>>>=0,e===0?32:31-(si(e)/br|0)|0}var or=64,sr=4194304;function ar(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Lr(e,t){var a=e.pendingLanes;if(a===0)return 0;var d=0,m=e.suspendedLanes,y=e.pingedLanes,E=a&268435455;if(E!==0){var U=E&~m;U!==0?d=ar(U):(y&=E,y!==0&&(d=ar(y)))}else E=a&~m,E!==0?d=ar(E):y!==0&&(d=ar(y));if(d===0)return 0;if(t!==0&&t!==d&&!(t&m)&&(m=d&-d,y=t&-t,m>=y||m===16&&(y&4194240)!==0))return t;if(d&4&&(d|=a&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=d;0a;a++)t.push(e);return t}function Zn(e,t,a){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-gn(t),e[t]=a}function yr(e,t){var a=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var d=e.eventTimes;for(e=e.expirationTimes;0>=E,m-=E,fr=1<<32-gn(t)+m|a<Ze?(Rt=Ie,Ie=null):Rt=Ie.sibling;var Xe=Le(F,Ie,W[Ze],he);if(Xe===null){Ie===null&&(Ie=Rt);break}e&&Ie&&Xe.alternate===null&&t(F,Ie),I=y(Xe,I,Ze),ze===null?ke=Xe:ze.sibling=Xe,ze=Xe,Ie=Rt}if(Ze===W.length)return a(F,Ie),at&&Fr(F,Ze),ke;if(Ie===null){for(;ZeZe?(Rt=Ie,Ie=null):Rt=Ie.sibling;var Pr=Le(F,Ie,Xe.value,he);if(Pr===null){Ie===null&&(Ie=Rt);break}e&&Ie&&Pr.alternate===null&&t(F,Ie),I=y(Pr,I,Ze),ze===null?ke=Pr:ze.sibling=Pr,ze=Pr,Ie=Rt}if(Xe.done)return a(F,Ie),at&&Fr(F,Ze),ke;if(Ie===null){for(;!Xe.done;Ze++,Xe=W.next())Xe=Ae(F,Xe.value,he),Xe!==null&&(I=y(Xe,I,Ze),ze===null?ke=Xe:ze.sibling=Xe,ze=Xe);return at&&Fr(F,Ze),ke}for(Ie=d(F,Ie);!Xe.done;Ze++,Xe=W.next())Xe=tt(Ie,F,Ze,Xe.value,he),Xe!==null&&(e&&Xe.alternate!==null&&Ie.delete(Xe.key===null?Ze:Xe.key),I=y(Xe,I,Ze),ze===null?ke=Xe:ze.sibling=Xe,ze=Xe);return e&&Ie.forEach(function(qd){return t(F,qd)}),at&&Fr(F,Ze),ke}function Rn(F,I,W,he){if(typeof W=="object"&&W!==null&&W.type===h&&W.key===null&&(W=W.props.children),typeof W=="object"&&W!==null){switch(W.$$typeof){case u:e:{for(var ke=W.key,ze=I;ze!==null;){if(ze.key===ke){if(ke=W.type,ke===h){if(ze.tag===7){a(F,ze.sibling),I=m(ze,W.props.children),I.return=F,F=I;break e}}else if(ze.elementType===ke||typeof ke=="object"&&ke!==null&&ke.$$typeof===T&&Gl(ke)===ze.type){a(F,ze.sibling),I=m(ze,W.props),I.ref=Ki(F,ze,W),I.return=F,F=I;break e}a(F,ze);break}else t(F,ze);ze=ze.sibling}W.type===h?(I=Hr(W.props.children,F.mode,he,W.key),I.return=F,F=I):(he=xs(W.type,W.key,W.props,null,F.mode,he),he.ref=Ki(F,I,W),he.return=F,F=he)}return E(F);case p:e:{for(ze=W.key;I!==null;){if(I.key===ze)if(I.tag===4&&I.stateNode.containerInfo===W.containerInfo&&I.stateNode.implementation===W.implementation){a(F,I.sibling),I=m(I,W.children||[]),I.return=F,F=I;break e}else{a(F,I);break}else t(F,I);I=I.sibling}I=Ua(W,F.mode,he),I.return=F,F=I}return E(F);case T:return ze=W._init,Rn(F,I,ze(W._payload),he)}if(re(W))return Te(F,I,W,he);if(b(W))return Wt(F,I,W,he);Wo(F,W)}return typeof W=="string"&&W!==""||typeof W=="number"?(W=""+W,I!==null&&I.tag===6?(a(F,I.sibling),I=m(I,W),I.return=F,F=I):(a(F,I),I=La(W,F.mode,he),I.return=F,F=I),E(F)):a(F,I)}return Rn}var pi=Hl(!0),Vl=Hl(!1),Ji={},Mn=hn(Ji),qi=hn(Ji),mi=hn(Ji);function Yn(e){if(e===Ji)throw Error(l(174));return e}function Qs(e,t){qe(mi,t),qe(qi,e),qe(Mn,Ji),e=pe(t),Ke(Mn),qe(Mn,e)}function gi(){Ke(Mn),Ke(qi),Ke(mi)}function Zl(e){var t=Yn(mi.current),a=Yn(Mn.current);t=G(a,e.type,t),a!==t&&(qe(qi,e),qe(Mn,t))}function Ys(e){qi.current===e&&(Ke(Mn),Ke(qi))}var ut=hn(0);function Go(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||Ye(a)||gt(a)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Ks=[];function Js(){for(var e=0;ea?a:4,e(!0);var d=bn.transition;bn.transition={};try{e(!1),t()}finally{We=a,bn.transition=d}}function su(){return Kn().memoizedState}function kd(e,t,a){var d=Er(e);a={lane:d,action:a,hasEagerState:!1,eagerState:null,next:null},au(e)?lu(t,a):(uu(e,t,a),a=tn(),e=Ln(e,d,a),e!==null&&cu(e,t,d))}function Td(e,t,a){var d=Er(e),m={lane:d,action:a,hasEagerState:!1,eagerState:null,next:null};if(au(e))lu(t,m);else{uu(e,t,m);var y=e.alternate;if(e.lanes===0&&(y===null||y.lanes===0)&&(y=t.lastRenderedReducer,y!==null))try{var E=t.lastRenderedState,U=y(E,a);if(m.hasEagerState=!0,m.eagerState=U,yn(U,E))return}catch{}finally{}a=tn(),e=Ln(e,d,a),e!==null&&cu(e,t,d)}}function au(e){var t=e.alternate;return e===mt||t!==null&&t===mt}function lu(e,t){$i=Vo=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function uu(e,t,a){Ct!==null&&e.mode&1&&!(Ne&2)?(e=t.interleaved,e===null?(a.next=a,xn===null?xn=[t]:xn.push(t)):(a.next=e.next,e.next=a),t.interleaved=a):(e=t.pending,e===null?a.next=a:(a.next=e.next,e.next=a),t.pending=a)}function cu(e,t,a){if(a&4194240){var d=t.lanes;d&=e.pendingLanes,a|=d,t.lanes=a,Xn(e,a)}}var Ko={readContext:yt,useCallback:Bt,useContext:Bt,useEffect:Bt,useImperativeHandle:Bt,useInsertionEffect:Bt,useLayoutEffect:Bt,useMemo:Bt,useReducer:Bt,useRef:Bt,useState:Bt,useDebugValue:Bt,useDeferredValue:Bt,useTransition:Bt,useMutableSource:Bt,useSyncExternalStore:Bt,useId:Bt,unstable_isNewReconciler:!1},Pd={readContext:yt,useCallback:function(e,t){return hr().memoizedState=[e,t===void 0?null:t],e},useContext:yt,useEffect:na,useImperativeHandle:function(e,t,a){return a=a!=null?a.concat([e]):null,Qo(4194308,4,nu.bind(null,t,e),a)},useLayoutEffect:function(e,t){return Qo(4194308,4,e,t)},useInsertionEffect:function(e,t){return Qo(4,2,e,t)},useMemo:function(e,t){var a=hr();return t=t===void 0?null:t,e=e(),a.memoizedState=[e,t],e},useReducer:function(e,t,a){var d=hr();return t=a!==void 0?a(t):t,d.memoizedState=d.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},d.queue=e,e=e.dispatch=kd.bind(null,mt,e),[d.memoizedState,e]},useRef:function(e){var t=hr();return e={current:e},t.memoizedState=e},useState:ta,useDebugValue:ra,useDeferredValue:function(e){var t=ta(e),a=t[0],d=t[1];return na(function(){var m=bn.transition;bn.transition={};try{d(e)}finally{bn.transition=m}},[e]),a},useTransition:function(){var e=ta(!1),t=e[0];return e=Ed.bind(null,e[1]),hr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,a){var d=mt,m=hr();if(at){if(a===void 0)throw Error(l(407));a=a()}else{if(a=t(),Ct===null)throw Error(l(349));vi&30||Yl(d,t,a)}m.memoizedState=a;var y={value:a,getSnapshot:t};return m.queue=y,na(Jl.bind(null,d,y,e),[e]),d.flags|=2048,to(9,Kl.bind(null,d,y,a,t),void 0,null),a},useId:function(){var e=hr(),t=Ct.identifierPrefix;if(at){var a=dr,d=fr;a=(d&~(1<<32-gn(d)-1)).toString(32)+a,t=":"+t+"R"+a,a=eo++,0")&&(Z=Z.replace("",e.displayName)),Z}while(1<=E&&0<=U);break}}}finally{Bi=!1,Error.prepareStackTrace=a}return(e=e?e.displayName||e.name:"")?jn(e):""}var ni=Object.prototype.hasOwnProperty,ri=[],Hn=-1;function hn(e){return{current:e}}function Ke(e){0>Hn||(e.current=ri[Hn],ri[Hn]=null,Hn--)}function qe(e,t){Hn++,ri[Hn]=e.current,e.current=t}var pn={},Et=hn(pn),Pt=hn(!1),Vn=pn;function En(e,t){var a=e.type.contextTypes;if(!a)return pn;var d=e.stateNode;if(d&&d.__reactInternalMemoizedUnmaskedChildContext===t)return d.__reactInternalMemoizedMaskedChildContext;var m={},y;for(y in a)m[y]=t[y];return d&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=m),m}function Mt(e){return e=e.childContextTypes,e!=null}function zn(){Ke(Pt),Ke(Et)}function ii(e,t,a){if(Et.current!==pn)throw Error(l(168));qe(Et,t),qe(Pt,a)}function oi(e,t,a){var d=e.stateNode;if(t=t.childContextTypes,typeof d.getChildContext!="function")return a;d=d.getChildContext();for(var m in d)if(!(m in t))throw Error(l(108,z(e)||"Unknown",m));return r({},a,d)}function vr(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||pn,Vn=Et.current,qe(Et,e),qe(Pt,Pt.current),!0}function mn(e,t,a){var d=e.stateNode;if(!d)throw Error(l(169));a?(e=oi(e,t,Vn),d.__reactInternalMemoizedMergedChildContext=e,Ke(Pt),Ke(Et),qe(Et,e)):Ke(Pt),qe(Pt,a)}var gn=Math.clz32?Math.clz32:Uo,si=Math.log,br=Math.LN2;function Uo(e){return e>>>=0,e===0?32:31-(si(e)/br|0)|0}var or=64,sr=4194304;function ar(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Lr(e,t){var a=e.pendingLanes;if(a===0)return 0;var d=0,m=e.suspendedLanes,y=e.pingedLanes,E=a&268435455;if(E!==0){var U=E&~m;U!==0?d=ar(U):(y&=E,y!==0&&(d=ar(y)))}else E=a&~m,E!==0?d=ar(E):y!==0&&(d=ar(y));if(d===0)return 0;if(t!==0&&t!==d&&!(t&m)&&(m=d&-d,y=t&-t,m>=y||m===16&&(y&4194240)!==0))return t;if(d&4&&(d|=a&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=d;0a;a++)t.push(e);return t}function Zn(e,t,a){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-gn(t),e[t]=a}function yr(e,t){var a=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var d=e.eventTimes;for(e=e.expirationTimes;0>=E,m-=E,fr=1<<32-gn(t)+m|a<Ze?(Rt=De,De=null):Rt=De.sibling;var Xe=Le(O,De,W[Ze],he);if(Xe===null){De===null&&(De=Rt);break}e&&De&&Xe.alternate===null&&t(O,De),D=y(Xe,D,Ze),ze===null?ke=Xe:ze.sibling=Xe,ze=Xe,De=Rt}if(Ze===W.length)return a(O,De),at&&Or(O,Ze),ke;if(De===null){for(;ZeZe?(Rt=De,De=null):Rt=De.sibling;var Pr=Le(O,De,Xe.value,he);if(Pr===null){De===null&&(De=Rt);break}e&&De&&Pr.alternate===null&&t(O,De),D=y(Pr,D,Ze),ze===null?ke=Pr:ze.sibling=Pr,ze=Pr,De=Rt}if(Xe.done)return a(O,De),at&&Or(O,Ze),ke;if(De===null){for(;!Xe.done;Ze++,Xe=W.next())Xe=Ae(O,Xe.value,he),Xe!==null&&(D=y(Xe,D,Ze),ze===null?ke=Xe:ze.sibling=Xe,ze=Xe);return at&&Or(O,Ze),ke}for(De=d(O,De);!Xe.done;Ze++,Xe=W.next())Xe=tt(De,O,Ze,Xe.value,he),Xe!==null&&(e&&Xe.alternate!==null&&De.delete(Xe.key===null?Ze:Xe.key),D=y(Xe,D,Ze),ze===null?ke=Xe:ze.sibling=Xe,ze=Xe);return e&&De.forEach(function(qd){return t(O,qd)}),at&&Or(O,Ze),ke}function Rn(O,D,W,he){if(typeof W=="object"&&W!==null&&W.type===h&&W.key===null&&(W=W.props.children),typeof W=="object"&&W!==null){switch(W.$$typeof){case u:e:{for(var ke=W.key,ze=D;ze!==null;){if(ze.key===ke){if(ke=W.type,ke===h){if(ze.tag===7){a(O,ze.sibling),D=m(ze,W.props.children),D.return=O,O=D;break e}}else if(ze.elementType===ke||typeof ke=="object"&&ke!==null&&ke.$$typeof===T&&Gl(ke)===ze.type){a(O,ze.sibling),D=m(ze,W.props),D.ref=Ki(O,ze,W),D.return=O,O=D;break e}a(O,ze);break}else t(O,ze);ze=ze.sibling}W.type===h?(D=Hr(W.props.children,O.mode,he,W.key),D.return=O,O=D):(he=xs(W.type,W.key,W.props,null,O.mode,he),he.ref=Ki(O,D,W),he.return=O,O=he)}return E(O);case p:e:{for(ze=W.key;D!==null;){if(D.key===ze)if(D.tag===4&&D.stateNode.containerInfo===W.containerInfo&&D.stateNode.implementation===W.implementation){a(O,D.sibling),D=m(D,W.children||[]),D.return=O,O=D;break e}else{a(O,D);break}else t(O,D);D=D.sibling}D=Ua(W,O.mode,he),D.return=O,O=D}return E(O);case T:return ze=W._init,Rn(O,D,ze(W._payload),he)}if(re(W))return Te(O,D,W,he);if(b(W))return Wt(O,D,W,he);Wo(O,W)}return typeof W=="string"&&W!==""||typeof W=="number"?(W=""+W,D!==null&&D.tag===6?(a(O,D.sibling),D=m(D,W),D.return=O,O=D):(a(O,D),D=La(W,O.mode,he),D.return=O,O=D),E(O)):a(O,D)}return Rn}var pi=Hl(!0),Vl=Hl(!1),Ji={},Mn=hn(Ji),qi=hn(Ji),mi=hn(Ji);function Yn(e){if(e===Ji)throw Error(l(174));return e}function Qs(e,t){qe(mi,t),qe(qi,e),qe(Mn,Ji),e=pe(t),Ke(Mn),qe(Mn,e)}function gi(){Ke(Mn),Ke(qi),Ke(mi)}function Zl(e){var t=Yn(mi.current),a=Yn(Mn.current);t=G(a,e.type,t),a!==t&&(qe(qi,e),qe(Mn,t))}function Ys(e){qi.current===e&&(Ke(Mn),Ke(qi))}var ut=hn(0);function Go(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||Ye(a)||gt(a)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Ks=[];function Js(){for(var e=0;ea?a:4,e(!0);var d=bn.transition;bn.transition={};try{e(!1),t()}finally{We=a,bn.transition=d}}function su(){return Kn().memoizedState}function kd(e,t,a){var d=Er(e);a={lane:d,action:a,hasEagerState:!1,eagerState:null,next:null},au(e)?lu(t,a):(uu(e,t,a),a=tn(),e=Ln(e,d,a),e!==null&&cu(e,t,d))}function Td(e,t,a){var d=Er(e),m={lane:d,action:a,hasEagerState:!1,eagerState:null,next:null};if(au(e))lu(t,m);else{uu(e,t,m);var y=e.alternate;if(e.lanes===0&&(y===null||y.lanes===0)&&(y=t.lastRenderedReducer,y!==null))try{var E=t.lastRenderedState,U=y(E,a);if(m.hasEagerState=!0,m.eagerState=U,yn(U,E))return}catch{}finally{}a=tn(),e=Ln(e,d,a),e!==null&&cu(e,t,d)}}function au(e){var t=e.alternate;return e===mt||t!==null&&t===mt}function lu(e,t){$i=Vo=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function uu(e,t,a){Ct!==null&&e.mode&1&&!(Ne&2)?(e=t.interleaved,e===null?(a.next=a,xn===null?xn=[t]:xn.push(t)):(a.next=e.next,e.next=a),t.interleaved=a):(e=t.pending,e===null?a.next=a:(a.next=e.next,e.next=a),t.pending=a)}function cu(e,t,a){if(a&4194240){var d=t.lanes;d&=e.pendingLanes,a|=d,t.lanes=a,Xn(e,a)}}var Ko={readContext:yt,useCallback:Bt,useContext:Bt,useEffect:Bt,useImperativeHandle:Bt,useInsertionEffect:Bt,useLayoutEffect:Bt,useMemo:Bt,useReducer:Bt,useRef:Bt,useState:Bt,useDebugValue:Bt,useDeferredValue:Bt,useTransition:Bt,useMutableSource:Bt,useSyncExternalStore:Bt,useId:Bt,unstable_isNewReconciler:!1},Pd={readContext:yt,useCallback:function(e,t){return hr().memoizedState=[e,t===void 0?null:t],e},useContext:yt,useEffect:na,useImperativeHandle:function(e,t,a){return a=a!=null?a.concat([e]):null,Qo(4194308,4,nu.bind(null,t,e),a)},useLayoutEffect:function(e,t){return Qo(4194308,4,e,t)},useInsertionEffect:function(e,t){return Qo(4,2,e,t)},useMemo:function(e,t){var a=hr();return t=t===void 0?null:t,e=e(),a.memoizedState=[e,t],e},useReducer:function(e,t,a){var d=hr();return t=a!==void 0?a(t):t,d.memoizedState=d.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},d.queue=e,e=e.dispatch=kd.bind(null,mt,e),[d.memoizedState,e]},useRef:function(e){var t=hr();return e={current:e},t.memoizedState=e},useState:ta,useDebugValue:ra,useDeferredValue:function(e){var t=ta(e),a=t[0],d=t[1];return na(function(){var m=bn.transition;bn.transition={};try{d(e)}finally{bn.transition=m}},[e]),a},useTransition:function(){var e=ta(!1),t=e[0];return e=Ed.bind(null,e[1]),hr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,a){var d=mt,m=hr();if(at){if(a===void 0)throw Error(l(407));a=a()}else{if(a=t(),Ct===null)throw Error(l(349));vi&30||Yl(d,t,a)}m.memoizedState=a;var y={value:a,getSnapshot:t};return m.queue=y,na(Jl.bind(null,d,y,e),[e]),d.flags|=2048,to(9,Kl.bind(null,d,y,a,t),void 0,null),a},useId:function(){var e=hr(),t=Ct.identifierPrefix;if(at){var a=dr,d=fr;a=(d&~(1<<32-gn(d)-1)).toString(32)+a,t=":"+t+"R"+a,a=eo++,0Ca&&(t.flags|=128,d=!0,oo(m,!1),t.lanes=4194304)}else{if(!d)if(e=Go(y),e!==null){if(t.flags|=128,d=!0,e=e.updateQueue,e!==null&&(t.updateQueue=e,t.flags|=4),oo(m,!0),m.tail===null&&m.tailMode==="hidden"&&!y.alternate&&!at)return Nt(t),null}else 2*lt()-m.renderingStartTime>Ca&&a!==1073741824&&(t.flags|=128,d=!0,oo(m,!1),t.lanes=4194304);m.isBackwards?(y.sibling=t.child,t.child=y):(e=m.last,e!==null?e.sibling=y:t.child=y,m.last=y)}return m.tail!==null?(t=m.tail,m.rendering=t,m.tail=t.sibling,m.renderingStartTime=lt(),t.sibling=null,e=ut.current,qe(ut,d?e&1|2:e&1),t):(Nt(t),null);case 22:case 23:return Pa(),d=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==d&&(t.flags|=8192),d&&t.mode&1?_n&1073741824&&(Nt(t),$&&t.subtreeFlags&6&&(t.flags|=8192)):Nt(t),null;case 24:return null;case 25:return null}throw Error(l(156,t.tag))}var Rd=f.ReactCurrentOwner,Cn=!1;function en(e,t,a,d){t.child=e===null?Vl(t,null,a,d):pi(t,e.child,a,d)}function yu(e,t,a,d,m){a=a.render;var y=t.ref;return vt(t,m),d=$s(e,t,a,d,y,m),a=ea(),e!==null&&!Cn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~m,pr(e,t,m)):(at&&a&&Gs(t),t.flags|=1,en(e,t,d,m),t.child)}function xu(e,t,a,d,m){if(e===null){var y=a.type;return typeof y=="function"&&!ba(y)&&y.defaultProps===void 0&&a.compare===null&&a.defaultProps===void 0?(t.tag=15,t.type=y,Su(e,t,y,d,m)):(e=xs(a.type,null,d,t,t.mode,m),e.ref=t.ref,e.return=t,t.child=e)}if(y=e.child,!(e.lanes&m)){var E=y.memoizedProps;if(a=a.compare,a=a!==null?a:Ir,a(E,d)&&e.ref===t.ref)return pr(e,t,m)}return t.flags|=1,e=Tr(y,d),e.ref=t.ref,e.return=t,t.child=e}function Su(e,t,a,d,m){if(e!==null&&Ir(e.memoizedProps,d)&&e.ref===t.ref)if(Cn=!1,(e.lanes&m)!==0)e.flags&131072&&(Cn=!0);else return t.lanes=e.lanes,pr(e,t,m);return sa(e,t,a,d,m)}function wu(e,t,a){var d=t.pendingProps,m=d.children,y=e!==null?e.memoizedState:null;if(d.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null},qe(yi,_n),_n|=a;else if(a&1073741824)t.memoizedState={baseLanes:0,cachePool:null},d=y!==null?y.baseLanes:a,qe(yi,_n),_n|=d;else return e=y!==null?y.baseLanes|a:a,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null},t.updateQueue=null,qe(yi,_n),_n|=e,null;else y!==null?(d=y.baseLanes|a,t.memoizedState=null):d=a,qe(yi,_n),_n|=d;return en(e,t,m,a),t.child}function Cu(e,t){var a=t.ref;(e===null&&a!==null||e!==null&&e.ref!==a)&&(t.flags|=512,t.flags|=2097152)}function sa(e,t,a,d,m){var y=Mt(a)?Vn:Et.current;return y=En(t,y),vt(t,m),a=$s(e,t,a,d,y,m),d=ea(),e!==null&&!Cn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~m,pr(e,t,m)):(at&&d&&Gs(t),t.flags|=1,en(e,t,a,m),t.child)}function _u(e,t,a,d,m){if(Mt(a)){var y=!0;vr(t)}else y=!1;if(vt(t,m),t.stateNode===null)e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),Fl(t,a,d),Ws(t,a,d,m),d=!0;else if(e===null){var E=t.stateNode,U=t.memoizedProps;E.props=U;var Z=E.context,le=a.contextType;typeof le=="object"&&le!==null?le=yt(le):(le=Mt(a)?Vn:Et.current,le=En(t,le));var ve=a.getDerivedStateFromProps,Ae=typeof ve=="function"||typeof E.getSnapshotBeforeUpdate=="function";Ae||typeof E.UNSAFE_componentWillReceiveProps!="function"&&typeof E.componentWillReceiveProps!="function"||(U!==d||Z!==le)&&jl(t,E,d,le),Sr=!1;var Le=t.memoizedState;E.state=Le,jo(t,d,E,m),Z=t.memoizedState,U!==d||Le!==Z||Pt.current||Sr?(typeof ve=="function"&&(Ns(t,a,ve,d),Z=t.memoizedState),(U=Sr||Ol(t,a,U,d,Le,Z,le))?(Ae||typeof E.UNSAFE_componentWillMount!="function"&&typeof E.componentWillMount!="function"||(typeof E.componentWillMount=="function"&&E.componentWillMount(),typeof E.UNSAFE_componentWillMount=="function"&&E.UNSAFE_componentWillMount()),typeof E.componentDidMount=="function"&&(t.flags|=4194308)):(typeof E.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=d,t.memoizedState=Z),E.props=d,E.state=Z,E.context=le,d=U):(typeof E.componentDidMount=="function"&&(t.flags|=4194308),d=!1)}else{E=t.stateNode,Rl(e,t),U=t.memoizedProps,le=t.type===t.elementType?U:qt(t.type,U),E.props=le,Ae=t.pendingProps,Le=E.context,Z=a.contextType,typeof Z=="object"&&Z!==null?Z=yt(Z):(Z=Mt(a)?Vn:Et.current,Z=En(t,Z));var tt=a.getDerivedStateFromProps;(ve=typeof tt=="function"||typeof E.getSnapshotBeforeUpdate=="function")||typeof E.UNSAFE_componentWillReceiveProps!="function"&&typeof E.componentWillReceiveProps!="function"||(U!==Ae||Le!==Z)&&jl(t,E,d,Z),Sr=!1,Le=t.memoizedState,E.state=Le,jo(t,d,E,m);var Te=t.memoizedState;U!==Ae||Le!==Te||Pt.current||Sr?(typeof tt=="function"&&(Ns(t,a,tt,d),Te=t.memoizedState),(le=Sr||Ol(t,a,le,d,Le,Te,Z)||!1)?(ve||typeof E.UNSAFE_componentWillUpdate!="function"&&typeof E.componentWillUpdate!="function"||(typeof E.componentWillUpdate=="function"&&E.componentWillUpdate(d,Te,Z),typeof E.UNSAFE_componentWillUpdate=="function"&&E.UNSAFE_componentWillUpdate(d,Te,Z)),typeof E.componentDidUpdate=="function"&&(t.flags|=4),typeof E.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof E.componentDidUpdate!="function"||U===e.memoizedProps&&Le===e.memoizedState||(t.flags|=4),typeof E.getSnapshotBeforeUpdate!="function"||U===e.memoizedProps&&Le===e.memoizedState||(t.flags|=1024),t.memoizedProps=d,t.memoizedState=Te),E.props=d,E.state=Te,E.context=Z,d=le):(typeof E.componentDidUpdate!="function"||U===e.memoizedProps&&Le===e.memoizedState||(t.flags|=4),typeof E.getSnapshotBeforeUpdate!="function"||U===e.memoizedProps&&Le===e.memoizedState||(t.flags|=1024),d=!1)}return aa(e,t,a,d,y,m)}function aa(e,t,a,d,m,y){Cu(e,t);var E=(t.flags&128)!==0;if(!d&&!E)return m&&mn(t,a,!1),pr(e,t,y);d=t.stateNode,Rd.current=t;var U=E&&typeof a.getDerivedStateFromError!="function"?null:d.render();return t.flags|=1,e!==null&&E?(t.child=pi(t,e.child,null,y),t.child=pi(t,null,U,y)):en(e,t,U,y),t.memoizedState=d.state,m&&mn(t,a,!0),t.child}function Eu(e){var t=e.stateNode;t.pendingContext?ii(e,t.pendingContext,t.pendingContext!==t.context):t.context&&ii(e,t.context,!1),Qs(e,t.containerInfo)}function ku(e,t,a,d,m){return hi(),Xs(m),t.flags|=256,en(e,t,a,d),t.child}var $o={dehydrated:null,treeContext:null,retryLane:0};function es(e){return{baseLanes:e,cachePool:null}}function Tu(e,t,a){var d=t.pendingProps,m=ut.current,y=!1,E=(t.flags&128)!==0,U;if((U=E)||(U=e!==null&&e.memoizedState===null?!1:(m&2)!==0),U?(y=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(m|=1),qe(ut,m&1),e===null)return Zs(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?gt(e)?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(m=d.children,e=d.fallback,y?(d=t.mode,y=t.child,m={mode:"hidden",children:m},!(d&1)&&y!==null?(y.childLanes=0,y.pendingProps=m):y=Ss(m,d,0,null),e=Hr(e,d,a,null),y.return=t,e.return=t,y.sibling=e,t.child=y,t.child.memoizedState=es(a),t.memoizedState=$o,e):la(t,m));if(m=e.memoizedState,m!==null){if(U=m.dehydrated,U!==null){if(E)return t.flags&256?(t.flags&=-257,ts(e,t,a,Error(l(422)))):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(y=d.fallback,m=t.mode,d=Ss({mode:"visible",children:d.children},m,0,null),y=Hr(y,m,a,null),y.flags|=2,d.return=t,y.return=t,d.sibling=y,t.child=d,t.mode&1&&pi(t,e.child,null,a),t.child.memoizedState=es(a),t.memoizedState=$o,y);if(!(t.mode&1))t=ts(e,t,a,null);else if(gt(U))t=ts(e,t,a,Error(l(419)));else if(d=(a&e.childLanes)!==0,Cn||d){if(d=Ct,d!==null){switch(a&-a){case 4:y=2;break;case 16:y=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:y=32;break;case 536870912:y=268435456;break;default:y=0}d=y&(d.suspendedLanes|a)?0:y,d!==0&&d!==m.retryLane&&(m.retryLane=d,Ln(e,d,-1))}Ma(),t=ts(e,t,a,Error(l(421)))}else Ye(U)?(t.flags|=128,t.child=e.child,t=Vd.bind(null,e),rn(U,t),t=null):(a=m.treeContext,Se&&(wn=Wn(U),Sn=t,at=!0,Nn=null,Qi=!1,a!==null&&(Tn[Pn++]=fr,Tn[Pn++]=dr,Tn[Pn++]=Or,fr=a.id,dr=a.overflow,Or=t)),t=la(t,t.pendingProps.children),t.flags|=4096);return t}return y?(d=Mu(e,t,d.children,d.fallback,a),y=t.child,m=e.child.memoizedState,y.memoizedState=m===null?es(a):{baseLanes:m.baseLanes|a,cachePool:null},y.childLanes=e.childLanes&~a,t.memoizedState=$o,d):(a=Pu(e,t,d.children,a),t.memoizedState=null,a)}return y?(d=Mu(e,t,d.children,d.fallback,a),y=t.child,m=e.child.memoizedState,y.memoizedState=m===null?es(a):{baseLanes:m.baseLanes|a,cachePool:null},y.childLanes=e.childLanes&~a,t.memoizedState=$o,d):(a=Pu(e,t,d.children,a),t.memoizedState=null,a)}function la(e,t){return t=Ss({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Pu(e,t,a,d){var m=e.child;return e=m.sibling,a=Tr(m,{mode:"visible",children:a}),!(t.mode&1)&&(a.lanes=d),a.return=t,a.sibling=null,e!==null&&(d=t.deletions,d===null?(t.deletions=[e],t.flags|=16):d.push(e)),t.child=a}function Mu(e,t,a,d,m){var y=t.mode;e=e.child;var E=e.sibling,U={mode:"hidden",children:a};return!(y&1)&&t.child!==e?(a=t.child,a.childLanes=0,a.pendingProps=U,t.deletions=null):(a=Tr(e,U),a.subtreeFlags=e.subtreeFlags&14680064),E!==null?d=Tr(E,d):(d=Hr(d,y,m,null),d.flags|=2),d.return=t,a.return=t,a.sibling=d,t.child=a,d}function ts(e,t,a,d){return d!==null&&Xs(d),pi(t,e.child,null,a),e=la(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function bu(e,t,a){e.lanes|=t;var d=e.alternate;d!==null&&(d.lanes|=t),$t(e.return,t,a)}function ua(e,t,a,d,m){var y=e.memoizedState;y===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:d,tail:a,tailMode:m}:(y.isBackwards=t,y.rendering=null,y.renderingStartTime=0,y.last=d,y.tail=a,y.tailMode=m)}function Lu(e,t,a){var d=t.pendingProps,m=d.revealOrder,y=d.tail;if(en(e,t,d.children,a),d=ut.current,d&2)d=d&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&bu(e,a,t);else if(e.tag===19)bu(e,a,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}d&=1}if(qe(ut,d),!(t.mode&1))t.memoizedState=null;else switch(m){case"forwards":for(a=t.child,m=null;a!==null;)e=a.alternate,e!==null&&Go(e)===null&&(m=a),a=a.sibling;a=m,a===null?(m=t.child,t.child=null):(m=a.sibling,a.sibling=null),ua(t,!1,m,a,y);break;case"backwards":for(a=null,m=t.child,t.child=null;m!==null;){if(e=m.alternate,e!==null&&Go(e)===null){t.child=m;break}e=m.sibling,m.sibling=a,a=m,m=e}ua(t,!0,a,null,y);break;case"together":ua(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function pr(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),xi|=t.lanes,!(a&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(l(153));if(t.child!==null){for(e=t.child,a=Tr(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=Tr(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function Ad(e,t,a){switch(t.tag){case 3:Eu(t),hi();break;case 5:Zl(t);break;case 1:Mt(t.type)&&vr(t);break;case 4:Qs(t,t.stateNode.containerInfo);break;case 10:Oo(t,t.type._context,t.memoizedProps.value);break;case 13:var d=t.memoizedState;if(d!==null)return d.dehydrated!==null?(qe(ut,ut.current&1),t.flags|=128,null):a&t.child.childLanes?Tu(e,t,a):(qe(ut,ut.current&1),e=pr(e,t,a),e!==null?e.sibling:null);qe(ut,ut.current&1);break;case 19:if(d=(a&t.childLanes)!==0,e.flags&128){if(d)return Lu(e,t,a);t.flags|=128}var m=t.memoizedState;if(m!==null&&(m.rendering=null,m.tail=null,m.lastEffect=null),qe(ut,ut.current),d)break;return null;case 22:case 23:return t.lanes=0,wu(e,t,a)}return pr(e,t,a)}function Id(e,t){switch(Hs(t),t.tag){case 1:return Mt(t.type)&&zn(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return gi(),Ke(Pt),Ke(Et),Js(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Ys(t),null;case 13:if(Ke(ut),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(l(340));hi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ke(ut),null;case 4:return gi(),null;case 10:return Lt(t.type._context),null;case 22:case 23:return Pa(),null;case 24:return null;default:return null}}var ns=!1,zr=!1,Dd=typeof WeakSet=="function"?WeakSet:Set,de=null;function rs(e,t){var a=e.ref;if(a!==null)if(typeof a=="function")try{a(null)}catch(d){ln(e,t,d)}else a.current=null}function ca(e,t,a){try{a()}catch(d){ln(e,t,d)}}var Uu=!1;function Od(e,t){for(B(e.containerInfo),de=t;de!==null;)if(e=de,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,de=t;else for(;de!==null;){e=de;try{var a=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(a!==null){var d=a.memoizedProps,m=a.memoizedState,y=e.stateNode,E=y.getSnapshotBeforeUpdate(e.elementType===e.type?d:qt(e.type,d),m);y.__reactInternalSnapshotBeforeUpdate=E}break;case 3:$&&On(e.stateNode.containerInfo);break;case 5:case 6:case 4:case 17:break;default:throw Error(l(163))}}catch(U){ln(e,e.return,U)}if(t=e.sibling,t!==null){t.return=e.return,de=t;break}de=e.return}return a=Uu,Uu=!1,a}function Br(e,t,a){var d=t.updateQueue;if(d=d!==null?d.lastEffect:null,d!==null){var m=d=d.next;do{if((m.tag&e)===e){var y=m.destroy;m.destroy=void 0,y!==void 0&&ca(t,a,y)}m=m.next}while(m!==d)}}function so(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var a=t=t.next;do{if((a.tag&e)===e){var d=a.create;a.destroy=d()}a=a.next}while(a!==t)}}function fa(e){var t=e.ref;if(t!==null){var a=e.stateNode;switch(e.tag){case 5:e=se(a);break;default:e=a}typeof t=="function"?t(e):t.current=e}}function Ru(e,t,a){if(vn&&typeof vn.onCommitFiberUnmount=="function")try{vn.onCommitFiberUnmount(Rr,t)}catch{}switch(t.tag){case 0:case 11:case 14:case 15:if(e=t.updateQueue,e!==null&&(e=e.lastEffect,e!==null)){var d=e=e.next;do{var m=d,y=m.destroy;m=m.tag,y!==void 0&&(m&2||m&4)&&ca(t,a,y),d=d.next}while(d!==e)}break;case 1:if(rs(t,a),e=t.stateNode,typeof e.componentWillUnmount=="function")try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(E){ln(t,a,E)}break;case 5:rs(t,a);break;case 4:$?ju(e,t,a):te&&te&&(t=t.stateNode.containerInfo,a=Fn(t),rt(t,a))}}function Au(e,t,a){for(var d=t;;)if(Ru(e,d,a),d.child===null||$&&d.tag===4){if(d===t)break;for(;d.sibling===null;){if(d.return===null||d.return===t)return;d=d.return}d.sibling.return=d.return,d=d.sibling}else d.child.return=d,d=d.child}function Iu(e){var t=e.alternate;t!==null&&(e.alternate=null,Iu(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Me(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Du(e){return e.tag===5||e.tag===3||e.tag===4}function Ou(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Du(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Fu(e){if($){e:{for(var t=e.return;t!==null;){if(Du(t))break e;t=t.return}throw Error(l(160))}var a=t;switch(a.tag){case 5:t=a.stateNode,a.flags&32&&(Je(t),a.flags&=-33),a=Ou(e),ha(e,a,t);break;case 3:case 4:t=a.stateNode.containerInfo,a=Ou(e),da(e,a,t);break;default:throw Error(l(161))}}}function da(e,t,a){var d=e.tag;if(d===5||d===6)e=e.stateNode,t?Be(a,e,t):Fe(a,e);else if(d!==4&&(e=e.child,e!==null))for(da(e,t,a),e=e.sibling;e!==null;)da(e,t,a),e=e.sibling}function ha(e,t,a){var d=e.tag;if(d===5||d===6)e=e.stateNode,t?et(a,e,t):Pe(a,e);else if(d!==4&&(e=e.child,e!==null))for(ha(e,t,a),e=e.sibling;e!==null;)ha(e,t,a),e=e.sibling}function ju(e,t,a){for(var d=t,m=!1,y,E;;){if(!m){m=d.return;e:for(;;){if(m===null)throw Error(l(160));switch(y=m.stateNode,m.tag){case 5:E=!1;break e;case 3:y=y.containerInfo,E=!0;break e;case 4:y=y.containerInfo,E=!0;break e}m=m.return}m=!0}if(d.tag===5||d.tag===6)Au(e,d,a),E?Qe(y,d.stateNode):Ue(y,d.stateNode);else if(d.tag===18)E?Lo(y,d.stateNode):zs(y,d.stateNode);else if(d.tag===4){if(d.child!==null){y=d.stateNode.containerInfo,E=!0,d.child.return=d,d=d.child;continue}}else if(Ru(e,d,a),d.child!==null){d.child.return=d,d=d.child;continue}if(d===t)break;for(;d.sibling===null;){if(d.return===null||d.return===t)return;d=d.return,d.tag===4&&(m=!1)}d.sibling.return=d.return,d=d.sibling}}function pa(e,t){if($){switch(t.tag){case 0:case 11:case 14:case 15:Br(3,t,t.return),so(3,t),Br(5,t,t.return);return;case 1:return;case 5:var a=t.stateNode;if(a!=null){var d=t.memoizedProps;e=e!==null?e.memoizedProps:d;var m=t.type,y=t.updateQueue;t.updateQueue=null,y!==null&&De(a,y,m,e,d,t)}return;case 6:if(t.stateNode===null)throw Error(l(162));a=t.memoizedProps,Ve(t.stateNode,e!==null?e.memoizedProps:a,a);return;case 3:Se&&e!==null&&e.memoizedState.isDehydrated&&Mr(t.stateNode.containerInfo);return;case 12:return;case 13:is(t);return;case 19:is(t);return;case 17:return}throw Error(l(163))}switch(t.tag){case 0:case 11:case 14:case 15:Br(3,t,t.return),so(3,t),Br(5,t,t.return);return;case 12:return;case 13:is(t);return;case 19:is(t);return;case 3:Se&&e!==null&&e.memoizedState.isDehydrated&&Mr(t.stateNode.containerInfo);break;case 22:case 23:return}e:if(te){switch(t.tag){case 1:case 5:case 6:break e;case 3:case 4:t=t.stateNode,rt(t.containerInfo,t.pendingChildren);break e}throw Error(l(163))}}function is(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var a=e.stateNode;a===null&&(a=e.stateNode=new Dd),t.forEach(function(d){var m=Zd.bind(null,e,d);a.has(d)||(a.add(d),d.then(m,m))})}}function Fd(e,t){for(de=t;de!==null;){t=de;var a=t.deletions;if(a!==null)for(var d=0;d";case ss:return":has("+(va(e)||"")+")";case as:return'[role="'+e.value+'"]';case us:return'"'+e.value+'"';case ls:return'[data-testname="'+e.value+'"]';default:throw Error(l(365))}}function Gu(e,t){var a=[];e=[e,0];for(var d=0;dm&&(m=E),d&=~y}if(d=m,d=lt()-d,d=(120>d?120:480>d?480:1080>d?1080:1920>d?1920:3e3>d?3e3:4320>d?4320:1960*zd(d/1960))-d,10e?16:e,_r===null)var d=!1;else{if(e=_r,_r=null,ps=0,Ne&6)throw Error(l(331));var m=Ne;for(Ne|=4,de=e.current;de!==null;){var y=de,E=y.child;if(de.flags&16){var U=y.deletions;if(U!==null){for(var Z=0;Zlt()-wa?Nr(e,0):Sa|=a),an(e,t)}function qu(e,t){t===0&&(e.mode&1?(t=sr,sr<<=1,!(sr&130023424)&&(sr=4194304)):t=1);var a=tn();e=vs(e,t),e!==null&&(Zn(e,t,a),an(e,a))}function Vd(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),qu(e,a)}function Zd(e,t){var a=0;switch(e.tag){case 13:var d=e.stateNode,m=e.memoizedState;m!==null&&(a=m.retryLane);break;case 19:d=e.stateNode;break;default:throw Error(l(314))}d!==null&&d.delete(t),qu(e,a)}var $u;$u=function(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps||Pt.current)Cn=!0;else{if(!(e.lanes&a)&&!(t.flags&128))return Cn=!1,Ad(e,t,a);Cn=!!(e.flags&131072)}else Cn=!1,at&&t.flags&1048576&&zl(t,No,t.index);switch(t.lanes=0,t.tag){case 2:var d=t.type;e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps;var m=En(t,Et.current);vt(t,a),m=$s(null,t,d,e,m,a);var y=ea();return t.flags|=1,typeof m=="object"&&m!==null&&typeof m.render=="function"&&m.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Mt(d)?(y=!0,vr(t)):y=!1,t.memoizedState=m.state!==null&&m.state!==void 0?m.state:null,Bs(t),m.updater=zo,t.stateNode=m,m._reactInternals=t,Ws(t,d,e,a),t=aa(null,t,d,!0,y,a)):(t.tag=0,at&&y&&Gs(t),en(null,t,m,a),t=t.child),t;case 16:d=t.elementType;e:{switch(e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,m=d._init,d=m(d._payload),t.type=d,m=t.tag=Qd(d),e=qt(d,e),m){case 0:t=sa(null,t,d,e,a);break e;case 1:t=_u(null,t,d,e,a);break e;case 11:t=yu(null,t,d,e,a);break e;case 14:t=xu(null,t,d,qt(d.type,e),a);break e}throw Error(l(306,d,""))}return t;case 0:return d=t.type,m=t.pendingProps,m=t.elementType===d?m:qt(d,m),sa(e,t,d,m,a);case 1:return d=t.type,m=t.pendingProps,m=t.elementType===d?m:qt(d,m),_u(e,t,d,m,a);case 3:e:{if(Eu(t),e===null)throw Error(l(387));d=t.pendingProps,y=t.memoizedState,m=y.element,Rl(e,t),jo(t,d,null,a);var E=t.memoizedState;if(d=E.element,Se&&y.isDehydrated)if(y={element:d,isDehydrated:!1,cache:E.cache,transitions:E.transitions},t.updateQueue.baseState=y,t.memoizedState=y,t.flags&256){m=Error(l(423)),t=ku(e,t,d,a,m);break e}else if(d!==m){m=Error(l(424)),t=ku(e,t,d,a,m);break e}else for(Se&&(wn=It(t.stateNode.containerInfo),Sn=t,at=!0,Nn=null,Qi=!1),a=Vl(t,null,d,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(hi(),d===m){t=pr(e,t,a);break e}en(e,t,d,a)}t=t.child}return t;case 5:return Zl(t),e===null&&Zs(t),d=t.type,m=t.pendingProps,y=e!==null?e.memoizedProps:null,E=m.children,V(d,m)?E=null:y!==null&&V(d,y)&&(t.flags|=32),Cu(e,t),en(e,t,E,a),t.child;case 6:return e===null&&Zs(t),null;case 13:return Tu(e,t,a);case 4:return Qs(t,t.stateNode.containerInfo),d=t.pendingProps,e===null?t.child=pi(t,null,d,a):en(e,t,d,a),t.child;case 11:return d=t.type,m=t.pendingProps,m=t.elementType===d?m:qt(d,m),yu(e,t,d,m,a);case 7:return en(e,t,t.pendingProps,a),t.child;case 8:return en(e,t,t.pendingProps.children,a),t.child;case 12:return en(e,t,t.pendingProps.children,a),t.child;case 10:e:{if(d=t.type._context,m=t.pendingProps,y=t.memoizedProps,E=m.value,Oo(t,d,E),y!==null)if(yn(y.value,E)){if(y.children===m.children&&!Pt.current){t=pr(e,t,a);break e}}else for(y=t.child,y!==null&&(y.return=t);y!==null;){var U=y.dependencies;if(U!==null){E=y.child;for(var Z=U.firstContext;Z!==null;){if(Z.context===d){if(y.tag===1){Z=cr(-1,a&-a),Z.tag=2;var le=y.updateQueue;if(le!==null){le=le.shared;var ve=le.pending;ve===null?Z.next=Z:(Z.next=ve.next,ve.next=Z),le.pending=Z}}y.lanes|=a,Z=y.alternate,Z!==null&&(Z.lanes|=a),$t(y.return,a,t),U.lanes|=a;break}Z=Z.next}}else if(y.tag===10)E=y.type===t.type?null:y.child;else if(y.tag===18){if(E=y.return,E===null)throw Error(l(341));E.lanes|=a,U=E.alternate,U!==null&&(U.lanes|=a),$t(E,a,t),E=y.sibling}else E=y.child;if(E!==null)E.return=y;else for(E=y;E!==null;){if(E===t){E=null;break}if(y=E.sibling,y!==null){y.return=E.return,E=y;break}E=E.return}y=E}en(e,t,m.children,a),t=t.child}return t;case 9:return m=t.type,d=t.pendingProps.children,vt(t,a),m=yt(m),d=d(m),t.flags|=1,en(e,t,d,a),t.child;case 14:return d=t.type,m=qt(d,t.pendingProps),m=qt(d.type,m),xu(e,t,d,m,a);case 15:return Su(e,t,t.type,t.pendingProps,a);case 17:return d=t.type,m=t.pendingProps,m=t.elementType===d?m:qt(d,m),e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,Mt(d)?(e=!0,vr(t)):e=!1,vt(t,a),Fl(t,d,m),Ws(t,d,m,a),aa(null,t,d,!0,e,a);case 19:return Lu(e,t,a);case 22:return wu(e,t,a)}throw Error(l(156,t.tag))};function ec(e,t){return ur(e,t)}function Xd(e,t,a,d){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=d,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Un(e,t,a,d){return new Xd(e,t,a,d)}function ba(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Qd(e){if(typeof e=="function")return ba(e)?1:0;if(e!=null){if(e=e.$$typeof,e===k)return 11;if(e===S)return 14}return 2}function Tr(e,t){var a=e.alternate;return a===null?(a=Un(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&14680064,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a}function xs(e,t,a,d,m,y){var E=2;if(d=e,typeof e=="function")ba(e)&&(E=1);else if(typeof e=="string")E=5;else e:switch(e){case h:return Hr(a.children,m,y,t);case g:E=8,m|=8;break;case v:return e=Un(12,a,t,m|2),e.elementType=v,e.lanes=y,e;case _:return e=Un(13,a,t,m),e.elementType=_,e.lanes=y,e;case C:return e=Un(19,a,t,m),e.elementType=C,e.lanes=y,e;case A:return Ss(a,m,y,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case x:E=10;break e;case w:E=9;break e;case k:E=11;break e;case S:E=14;break e;case T:E=16,d=null;break e}throw Error(l(130,e==null?e:typeof e,""))}return t=Un(E,a,t,m),t.elementType=e,t.type=d,t.lanes=y,t}function Hr(e,t,a,d){return e=Un(7,e,d,t),e.lanes=a,e}function Ss(e,t,a,d){return e=Un(22,e,d,t),e.elementType=A,e.lanes=a,e.stateNode={},e}function La(e,t,a){return e=Un(6,e,null,t),e.lanes=a,e}function Ua(e,t,a){return t=Un(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Yd(e,t,a,d,m){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=ue,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ai(0),this.expirationTimes=ai(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ai(0),this.identifierPrefix=d,this.onRecoverableError=m,Se&&(this.mutableSourceEagerHydrationData=null)}function tc(e,t,a,d,m,y,E,U,Z){return e=new Yd(e,t,a,U,Z),t===1?(t=1,y===!0&&(t|=8)):t=0,y=Un(3,null,null,t),e.current=y,y.stateNode=e,y.memoizedState={element:d,isDehydrated:a,cache:null,transitions:null},Bs(y),e}function nc(e){if(!e)return pn;e=e._reactInternals;e:{if(Q(e)!==e||e.tag!==1)throw Error(l(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Mt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(l(171))}if(e.tag===1){var a=e.type;if(Mt(a))return oi(e,a,t)}return t}function rc(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(l(188)):(e=Object.keys(e).join(","),Error(l(268,e)));return e=D(t),e===null?null:e.stateNode}function ic(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a=le&&y>=Ae&&m<=ve&&E<=Le){e.splice(t,1);break}else if(d!==le||a.width!==Z.width||LeE){if(!(y!==Ae||a.height!==Z.height||vem)){le>d&&(Z.width+=le-d,Z.x=d),vey&&(Z.height+=Ae-y,Z.y=y),Lea&&(a=E)),ECa&&(t.flags|=128,d=!0,oo(m,!1),t.lanes=4194304)}else{if(!d)if(e=Go(y),e!==null){if(t.flags|=128,d=!0,e=e.updateQueue,e!==null&&(t.updateQueue=e,t.flags|=4),oo(m,!0),m.tail===null&&m.tailMode==="hidden"&&!y.alternate&&!at)return Nt(t),null}else 2*lt()-m.renderingStartTime>Ca&&a!==1073741824&&(t.flags|=128,d=!0,oo(m,!1),t.lanes=4194304);m.isBackwards?(y.sibling=t.child,t.child=y):(e=m.last,e!==null?e.sibling=y:t.child=y,m.last=y)}return m.tail!==null?(t=m.tail,m.rendering=t,m.tail=t.sibling,m.renderingStartTime=lt(),t.sibling=null,e=ut.current,qe(ut,d?e&1|2:e&1),t):(Nt(t),null);case 22:case 23:return Pa(),d=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==d&&(t.flags|=8192),d&&t.mode&1?_n&1073741824&&(Nt(t),$&&t.subtreeFlags&6&&(t.flags|=8192)):Nt(t),null;case 24:return null;case 25:return null}throw Error(l(156,t.tag))}var Rd=f.ReactCurrentOwner,Cn=!1;function en(e,t,a,d){t.child=e===null?Vl(t,null,a,d):pi(t,e.child,a,d)}function yu(e,t,a,d,m){a=a.render;var y=t.ref;return vt(t,m),d=$s(e,t,a,d,y,m),a=ea(),e!==null&&!Cn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~m,pr(e,t,m)):(at&&a&&Gs(t),t.flags|=1,en(e,t,d,m),t.child)}function xu(e,t,a,d,m){if(e===null){var y=a.type;return typeof y=="function"&&!ba(y)&&y.defaultProps===void 0&&a.compare===null&&a.defaultProps===void 0?(t.tag=15,t.type=y,Su(e,t,y,d,m)):(e=xs(a.type,null,d,t,t.mode,m),e.ref=t.ref,e.return=t,t.child=e)}if(y=e.child,!(e.lanes&m)){var E=y.memoizedProps;if(a=a.compare,a=a!==null?a:Dr,a(E,d)&&e.ref===t.ref)return pr(e,t,m)}return t.flags|=1,e=Tr(y,d),e.ref=t.ref,e.return=t,t.child=e}function Su(e,t,a,d,m){if(e!==null&&Dr(e.memoizedProps,d)&&e.ref===t.ref)if(Cn=!1,(e.lanes&m)!==0)e.flags&131072&&(Cn=!0);else return t.lanes=e.lanes,pr(e,t,m);return sa(e,t,a,d,m)}function wu(e,t,a){var d=t.pendingProps,m=d.children,y=e!==null?e.memoizedState:null;if(d.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null},qe(yi,_n),_n|=a;else if(a&1073741824)t.memoizedState={baseLanes:0,cachePool:null},d=y!==null?y.baseLanes:a,qe(yi,_n),_n|=d;else return e=y!==null?y.baseLanes|a:a,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null},t.updateQueue=null,qe(yi,_n),_n|=e,null;else y!==null?(d=y.baseLanes|a,t.memoizedState=null):d=a,qe(yi,_n),_n|=d;return en(e,t,m,a),t.child}function Cu(e,t){var a=t.ref;(e===null&&a!==null||e!==null&&e.ref!==a)&&(t.flags|=512,t.flags|=2097152)}function sa(e,t,a,d,m){var y=Mt(a)?Vn:Et.current;return y=En(t,y),vt(t,m),a=$s(e,t,a,d,y,m),d=ea(),e!==null&&!Cn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~m,pr(e,t,m)):(at&&d&&Gs(t),t.flags|=1,en(e,t,a,m),t.child)}function _u(e,t,a,d,m){if(Mt(a)){var y=!0;vr(t)}else y=!1;if(vt(t,m),t.stateNode===null)e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),Ol(t,a,d),Ws(t,a,d,m),d=!0;else if(e===null){var E=t.stateNode,U=t.memoizedProps;E.props=U;var Z=E.context,le=a.contextType;typeof le=="object"&&le!==null?le=yt(le):(le=Mt(a)?Vn:Et.current,le=En(t,le));var ve=a.getDerivedStateFromProps,Ae=typeof ve=="function"||typeof E.getSnapshotBeforeUpdate=="function";Ae||typeof E.UNSAFE_componentWillReceiveProps!="function"&&typeof E.componentWillReceiveProps!="function"||(U!==d||Z!==le)&&jl(t,E,d,le),Sr=!1;var Le=t.memoizedState;E.state=Le,jo(t,d,E,m),Z=t.memoizedState,U!==d||Le!==Z||Pt.current||Sr?(typeof ve=="function"&&(Ns(t,a,ve,d),Z=t.memoizedState),(U=Sr||Fl(t,a,U,d,Le,Z,le))?(Ae||typeof E.UNSAFE_componentWillMount!="function"&&typeof E.componentWillMount!="function"||(typeof E.componentWillMount=="function"&&E.componentWillMount(),typeof E.UNSAFE_componentWillMount=="function"&&E.UNSAFE_componentWillMount()),typeof E.componentDidMount=="function"&&(t.flags|=4194308)):(typeof E.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=d,t.memoizedState=Z),E.props=d,E.state=Z,E.context=le,d=U):(typeof E.componentDidMount=="function"&&(t.flags|=4194308),d=!1)}else{E=t.stateNode,Rl(e,t),U=t.memoizedProps,le=t.type===t.elementType?U:qt(t.type,U),E.props=le,Ae=t.pendingProps,Le=E.context,Z=a.contextType,typeof Z=="object"&&Z!==null?Z=yt(Z):(Z=Mt(a)?Vn:Et.current,Z=En(t,Z));var tt=a.getDerivedStateFromProps;(ve=typeof tt=="function"||typeof E.getSnapshotBeforeUpdate=="function")||typeof E.UNSAFE_componentWillReceiveProps!="function"&&typeof E.componentWillReceiveProps!="function"||(U!==Ae||Le!==Z)&&jl(t,E,d,Z),Sr=!1,Le=t.memoizedState,E.state=Le,jo(t,d,E,m);var Te=t.memoizedState;U!==Ae||Le!==Te||Pt.current||Sr?(typeof tt=="function"&&(Ns(t,a,tt,d),Te=t.memoizedState),(le=Sr||Fl(t,a,le,d,Le,Te,Z)||!1)?(ve||typeof E.UNSAFE_componentWillUpdate!="function"&&typeof E.componentWillUpdate!="function"||(typeof E.componentWillUpdate=="function"&&E.componentWillUpdate(d,Te,Z),typeof E.UNSAFE_componentWillUpdate=="function"&&E.UNSAFE_componentWillUpdate(d,Te,Z)),typeof E.componentDidUpdate=="function"&&(t.flags|=4),typeof E.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof E.componentDidUpdate!="function"||U===e.memoizedProps&&Le===e.memoizedState||(t.flags|=4),typeof E.getSnapshotBeforeUpdate!="function"||U===e.memoizedProps&&Le===e.memoizedState||(t.flags|=1024),t.memoizedProps=d,t.memoizedState=Te),E.props=d,E.state=Te,E.context=Z,d=le):(typeof E.componentDidUpdate!="function"||U===e.memoizedProps&&Le===e.memoizedState||(t.flags|=4),typeof E.getSnapshotBeforeUpdate!="function"||U===e.memoizedProps&&Le===e.memoizedState||(t.flags|=1024),d=!1)}return aa(e,t,a,d,y,m)}function aa(e,t,a,d,m,y){Cu(e,t);var E=(t.flags&128)!==0;if(!d&&!E)return m&&mn(t,a,!1),pr(e,t,y);d=t.stateNode,Rd.current=t;var U=E&&typeof a.getDerivedStateFromError!="function"?null:d.render();return t.flags|=1,e!==null&&E?(t.child=pi(t,e.child,null,y),t.child=pi(t,null,U,y)):en(e,t,U,y),t.memoizedState=d.state,m&&mn(t,a,!0),t.child}function Eu(e){var t=e.stateNode;t.pendingContext?ii(e,t.pendingContext,t.pendingContext!==t.context):t.context&&ii(e,t.context,!1),Qs(e,t.containerInfo)}function ku(e,t,a,d,m){return hi(),Xs(m),t.flags|=256,en(e,t,a,d),t.child}var $o={dehydrated:null,treeContext:null,retryLane:0};function es(e){return{baseLanes:e,cachePool:null}}function Tu(e,t,a){var d=t.pendingProps,m=ut.current,y=!1,E=(t.flags&128)!==0,U;if((U=E)||(U=e!==null&&e.memoizedState===null?!1:(m&2)!==0),U?(y=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(m|=1),qe(ut,m&1),e===null)return Zs(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?gt(e)?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(m=d.children,e=d.fallback,y?(d=t.mode,y=t.child,m={mode:"hidden",children:m},!(d&1)&&y!==null?(y.childLanes=0,y.pendingProps=m):y=Ss(m,d,0,null),e=Hr(e,d,a,null),y.return=t,e.return=t,y.sibling=e,t.child=y,t.child.memoizedState=es(a),t.memoizedState=$o,e):la(t,m));if(m=e.memoizedState,m!==null){if(U=m.dehydrated,U!==null){if(E)return t.flags&256?(t.flags&=-257,ts(e,t,a,Error(l(422)))):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(y=d.fallback,m=t.mode,d=Ss({mode:"visible",children:d.children},m,0,null),y=Hr(y,m,a,null),y.flags|=2,d.return=t,y.return=t,d.sibling=y,t.child=d,t.mode&1&&pi(t,e.child,null,a),t.child.memoizedState=es(a),t.memoizedState=$o,y);if(!(t.mode&1))t=ts(e,t,a,null);else if(gt(U))t=ts(e,t,a,Error(l(419)));else if(d=(a&e.childLanes)!==0,Cn||d){if(d=Ct,d!==null){switch(a&-a){case 4:y=2;break;case 16:y=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:y=32;break;case 536870912:y=268435456;break;default:y=0}d=y&(d.suspendedLanes|a)?0:y,d!==0&&d!==m.retryLane&&(m.retryLane=d,Ln(e,d,-1))}Ma(),t=ts(e,t,a,Error(l(421)))}else Ye(U)?(t.flags|=128,t.child=e.child,t=Vd.bind(null,e),rn(U,t),t=null):(a=m.treeContext,Se&&(wn=Wn(U),Sn=t,at=!0,Nn=null,Qi=!1,a!==null&&(Tn[Pn++]=fr,Tn[Pn++]=dr,Tn[Pn++]=Fr,fr=a.id,dr=a.overflow,Fr=t)),t=la(t,t.pendingProps.children),t.flags|=4096);return t}return y?(d=Mu(e,t,d.children,d.fallback,a),y=t.child,m=e.child.memoizedState,y.memoizedState=m===null?es(a):{baseLanes:m.baseLanes|a,cachePool:null},y.childLanes=e.childLanes&~a,t.memoizedState=$o,d):(a=Pu(e,t,d.children,a),t.memoizedState=null,a)}return y?(d=Mu(e,t,d.children,d.fallback,a),y=t.child,m=e.child.memoizedState,y.memoizedState=m===null?es(a):{baseLanes:m.baseLanes|a,cachePool:null},y.childLanes=e.childLanes&~a,t.memoizedState=$o,d):(a=Pu(e,t,d.children,a),t.memoizedState=null,a)}function la(e,t){return t=Ss({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Pu(e,t,a,d){var m=e.child;return e=m.sibling,a=Tr(m,{mode:"visible",children:a}),!(t.mode&1)&&(a.lanes=d),a.return=t,a.sibling=null,e!==null&&(d=t.deletions,d===null?(t.deletions=[e],t.flags|=16):d.push(e)),t.child=a}function Mu(e,t,a,d,m){var y=t.mode;e=e.child;var E=e.sibling,U={mode:"hidden",children:a};return!(y&1)&&t.child!==e?(a=t.child,a.childLanes=0,a.pendingProps=U,t.deletions=null):(a=Tr(e,U),a.subtreeFlags=e.subtreeFlags&14680064),E!==null?d=Tr(E,d):(d=Hr(d,y,m,null),d.flags|=2),d.return=t,a.return=t,a.sibling=d,t.child=a,d}function ts(e,t,a,d){return d!==null&&Xs(d),pi(t,e.child,null,a),e=la(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function bu(e,t,a){e.lanes|=t;var d=e.alternate;d!==null&&(d.lanes|=t),$t(e.return,t,a)}function ua(e,t,a,d,m){var y=e.memoizedState;y===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:d,tail:a,tailMode:m}:(y.isBackwards=t,y.rendering=null,y.renderingStartTime=0,y.last=d,y.tail=a,y.tailMode=m)}function Lu(e,t,a){var d=t.pendingProps,m=d.revealOrder,y=d.tail;if(en(e,t,d.children,a),d=ut.current,d&2)d=d&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&bu(e,a,t);else if(e.tag===19)bu(e,a,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}d&=1}if(qe(ut,d),!(t.mode&1))t.memoizedState=null;else switch(m){case"forwards":for(a=t.child,m=null;a!==null;)e=a.alternate,e!==null&&Go(e)===null&&(m=a),a=a.sibling;a=m,a===null?(m=t.child,t.child=null):(m=a.sibling,a.sibling=null),ua(t,!1,m,a,y);break;case"backwards":for(a=null,m=t.child,t.child=null;m!==null;){if(e=m.alternate,e!==null&&Go(e)===null){t.child=m;break}e=m.sibling,m.sibling=a,a=m,m=e}ua(t,!0,a,null,y);break;case"together":ua(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function pr(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),xi|=t.lanes,!(a&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(l(153));if(t.child!==null){for(e=t.child,a=Tr(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=Tr(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function Ad(e,t,a){switch(t.tag){case 3:Eu(t),hi();break;case 5:Zl(t);break;case 1:Mt(t.type)&&vr(t);break;case 4:Qs(t,t.stateNode.containerInfo);break;case 10:Fo(t,t.type._context,t.memoizedProps.value);break;case 13:var d=t.memoizedState;if(d!==null)return d.dehydrated!==null?(qe(ut,ut.current&1),t.flags|=128,null):a&t.child.childLanes?Tu(e,t,a):(qe(ut,ut.current&1),e=pr(e,t,a),e!==null?e.sibling:null);qe(ut,ut.current&1);break;case 19:if(d=(a&t.childLanes)!==0,e.flags&128){if(d)return Lu(e,t,a);t.flags|=128}var m=t.memoizedState;if(m!==null&&(m.rendering=null,m.tail=null,m.lastEffect=null),qe(ut,ut.current),d)break;return null;case 22:case 23:return t.lanes=0,wu(e,t,a)}return pr(e,t,a)}function Dd(e,t){switch(Hs(t),t.tag){case 1:return Mt(t.type)&&zn(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return gi(),Ke(Pt),Ke(Et),Js(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Ys(t),null;case 13:if(Ke(ut),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(l(340));hi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ke(ut),null;case 4:return gi(),null;case 10:return Lt(t.type._context),null;case 22:case 23:return Pa(),null;case 24:return null;default:return null}}var ns=!1,zr=!1,Id=typeof WeakSet=="function"?WeakSet:Set,de=null;function rs(e,t){var a=e.ref;if(a!==null)if(typeof a=="function")try{a(null)}catch(d){ln(e,t,d)}else a.current=null}function ca(e,t,a){try{a()}catch(d){ln(e,t,d)}}var Uu=!1;function Fd(e,t){for(B(e.containerInfo),de=t;de!==null;)if(e=de,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,de=t;else for(;de!==null;){e=de;try{var a=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(a!==null){var d=a.memoizedProps,m=a.memoizedState,y=e.stateNode,E=y.getSnapshotBeforeUpdate(e.elementType===e.type?d:qt(e.type,d),m);y.__reactInternalSnapshotBeforeUpdate=E}break;case 3:$&&Fn(e.stateNode.containerInfo);break;case 5:case 6:case 4:case 17:break;default:throw Error(l(163))}}catch(U){ln(e,e.return,U)}if(t=e.sibling,t!==null){t.return=e.return,de=t;break}de=e.return}return a=Uu,Uu=!1,a}function Br(e,t,a){var d=t.updateQueue;if(d=d!==null?d.lastEffect:null,d!==null){var m=d=d.next;do{if((m.tag&e)===e){var y=m.destroy;m.destroy=void 0,y!==void 0&&ca(t,a,y)}m=m.next}while(m!==d)}}function so(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var a=t=t.next;do{if((a.tag&e)===e){var d=a.create;a.destroy=d()}a=a.next}while(a!==t)}}function fa(e){var t=e.ref;if(t!==null){var a=e.stateNode;switch(e.tag){case 5:e=se(a);break;default:e=a}typeof t=="function"?t(e):t.current=e}}function Ru(e,t,a){if(vn&&typeof vn.onCommitFiberUnmount=="function")try{vn.onCommitFiberUnmount(Rr,t)}catch{}switch(t.tag){case 0:case 11:case 14:case 15:if(e=t.updateQueue,e!==null&&(e=e.lastEffect,e!==null)){var d=e=e.next;do{var m=d,y=m.destroy;m=m.tag,y!==void 0&&(m&2||m&4)&&ca(t,a,y),d=d.next}while(d!==e)}break;case 1:if(rs(t,a),e=t.stateNode,typeof e.componentWillUnmount=="function")try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(E){ln(t,a,E)}break;case 5:rs(t,a);break;case 4:$?ju(e,t,a):te&&te&&(t=t.stateNode.containerInfo,a=On(t),rt(t,a))}}function Au(e,t,a){for(var d=t;;)if(Ru(e,d,a),d.child===null||$&&d.tag===4){if(d===t)break;for(;d.sibling===null;){if(d.return===null||d.return===t)return;d=d.return}d.sibling.return=d.return,d=d.sibling}else d.child.return=d,d=d.child}function Du(e){var t=e.alternate;t!==null&&(e.alternate=null,Du(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Me(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Iu(e){return e.tag===5||e.tag===3||e.tag===4}function Fu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Iu(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Ou(e){if($){e:{for(var t=e.return;t!==null;){if(Iu(t))break e;t=t.return}throw Error(l(160))}var a=t;switch(a.tag){case 5:t=a.stateNode,a.flags&32&&(Je(t),a.flags&=-33),a=Fu(e),ha(e,a,t);break;case 3:case 4:t=a.stateNode.containerInfo,a=Fu(e),da(e,a,t);break;default:throw Error(l(161))}}}function da(e,t,a){var d=e.tag;if(d===5||d===6)e=e.stateNode,t?Be(a,e,t):Oe(a,e);else if(d!==4&&(e=e.child,e!==null))for(da(e,t,a),e=e.sibling;e!==null;)da(e,t,a),e=e.sibling}function ha(e,t,a){var d=e.tag;if(d===5||d===6)e=e.stateNode,t?et(a,e,t):Pe(a,e);else if(d!==4&&(e=e.child,e!==null))for(ha(e,t,a),e=e.sibling;e!==null;)ha(e,t,a),e=e.sibling}function ju(e,t,a){for(var d=t,m=!1,y,E;;){if(!m){m=d.return;e:for(;;){if(m===null)throw Error(l(160));switch(y=m.stateNode,m.tag){case 5:E=!1;break e;case 3:y=y.containerInfo,E=!0;break e;case 4:y=y.containerInfo,E=!0;break e}m=m.return}m=!0}if(d.tag===5||d.tag===6)Au(e,d,a),E?Qe(y,d.stateNode):Ue(y,d.stateNode);else if(d.tag===18)E?Lo(y,d.stateNode):zs(y,d.stateNode);else if(d.tag===4){if(d.child!==null){y=d.stateNode.containerInfo,E=!0,d.child.return=d,d=d.child;continue}}else if(Ru(e,d,a),d.child!==null){d.child.return=d,d=d.child;continue}if(d===t)break;for(;d.sibling===null;){if(d.return===null||d.return===t)return;d=d.return,d.tag===4&&(m=!1)}d.sibling.return=d.return,d=d.sibling}}function pa(e,t){if($){switch(t.tag){case 0:case 11:case 14:case 15:Br(3,t,t.return),so(3,t),Br(5,t,t.return);return;case 1:return;case 5:var a=t.stateNode;if(a!=null){var d=t.memoizedProps;e=e!==null?e.memoizedProps:d;var m=t.type,y=t.updateQueue;t.updateQueue=null,y!==null&&Ie(a,y,m,e,d,t)}return;case 6:if(t.stateNode===null)throw Error(l(162));a=t.memoizedProps,Ve(t.stateNode,e!==null?e.memoizedProps:a,a);return;case 3:Se&&e!==null&&e.memoizedState.isDehydrated&&Mr(t.stateNode.containerInfo);return;case 12:return;case 13:is(t);return;case 19:is(t);return;case 17:return}throw Error(l(163))}switch(t.tag){case 0:case 11:case 14:case 15:Br(3,t,t.return),so(3,t),Br(5,t,t.return);return;case 12:return;case 13:is(t);return;case 19:is(t);return;case 3:Se&&e!==null&&e.memoizedState.isDehydrated&&Mr(t.stateNode.containerInfo);break;case 22:case 23:return}e:if(te){switch(t.tag){case 1:case 5:case 6:break e;case 3:case 4:t=t.stateNode,rt(t.containerInfo,t.pendingChildren);break e}throw Error(l(163))}}function is(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var a=e.stateNode;a===null&&(a=e.stateNode=new Id),t.forEach(function(d){var m=Zd.bind(null,e,d);a.has(d)||(a.add(d),d.then(m,m))})}}function Od(e,t){for(de=t;de!==null;){t=de;var a=t.deletions;if(a!==null)for(var d=0;d";case ss:return":has("+(va(e)||"")+")";case as:return'[role="'+e.value+'"]';case us:return'"'+e.value+'"';case ls:return'[data-testname="'+e.value+'"]';default:throw Error(l(365))}}function Gu(e,t){var a=[];e=[e,0];for(var d=0;dm&&(m=E),d&=~y}if(d=m,d=lt()-d,d=(120>d?120:480>d?480:1080>d?1080:1920>d?1920:3e3>d?3e3:4320>d?4320:1960*zd(d/1960))-d,10e?16:e,_r===null)var d=!1;else{if(e=_r,_r=null,ps=0,Ne&6)throw Error(l(331));var m=Ne;for(Ne|=4,de=e.current;de!==null;){var y=de,E=y.child;if(de.flags&16){var U=y.deletions;if(U!==null){for(var Z=0;Zlt()-wa?Nr(e,0):Sa|=a),an(e,t)}function qu(e,t){t===0&&(e.mode&1?(t=sr,sr<<=1,!(sr&130023424)&&(sr=4194304)):t=1);var a=tn();e=vs(e,t),e!==null&&(Zn(e,t,a),an(e,a))}function Vd(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),qu(e,a)}function Zd(e,t){var a=0;switch(e.tag){case 13:var d=e.stateNode,m=e.memoizedState;m!==null&&(a=m.retryLane);break;case 19:d=e.stateNode;break;default:throw Error(l(314))}d!==null&&d.delete(t),qu(e,a)}var $u;$u=function(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps||Pt.current)Cn=!0;else{if(!(e.lanes&a)&&!(t.flags&128))return Cn=!1,Ad(e,t,a);Cn=!!(e.flags&131072)}else Cn=!1,at&&t.flags&1048576&&zl(t,No,t.index);switch(t.lanes=0,t.tag){case 2:var d=t.type;e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps;var m=En(t,Et.current);vt(t,a),m=$s(null,t,d,e,m,a);var y=ea();return t.flags|=1,typeof m=="object"&&m!==null&&typeof m.render=="function"&&m.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Mt(d)?(y=!0,vr(t)):y=!1,t.memoizedState=m.state!==null&&m.state!==void 0?m.state:null,Bs(t),m.updater=zo,t.stateNode=m,m._reactInternals=t,Ws(t,d,e,a),t=aa(null,t,d,!0,y,a)):(t.tag=0,at&&y&&Gs(t),en(null,t,m,a),t=t.child),t;case 16:d=t.elementType;e:{switch(e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,m=d._init,d=m(d._payload),t.type=d,m=t.tag=Qd(d),e=qt(d,e),m){case 0:t=sa(null,t,d,e,a);break e;case 1:t=_u(null,t,d,e,a);break e;case 11:t=yu(null,t,d,e,a);break e;case 14:t=xu(null,t,d,qt(d.type,e),a);break e}throw Error(l(306,d,""))}return t;case 0:return d=t.type,m=t.pendingProps,m=t.elementType===d?m:qt(d,m),sa(e,t,d,m,a);case 1:return d=t.type,m=t.pendingProps,m=t.elementType===d?m:qt(d,m),_u(e,t,d,m,a);case 3:e:{if(Eu(t),e===null)throw Error(l(387));d=t.pendingProps,y=t.memoizedState,m=y.element,Rl(e,t),jo(t,d,null,a);var E=t.memoizedState;if(d=E.element,Se&&y.isDehydrated)if(y={element:d,isDehydrated:!1,cache:E.cache,transitions:E.transitions},t.updateQueue.baseState=y,t.memoizedState=y,t.flags&256){m=Error(l(423)),t=ku(e,t,d,a,m);break e}else if(d!==m){m=Error(l(424)),t=ku(e,t,d,a,m);break e}else for(Se&&(wn=Dt(t.stateNode.containerInfo),Sn=t,at=!0,Nn=null,Qi=!1),a=Vl(t,null,d,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(hi(),d===m){t=pr(e,t,a);break e}en(e,t,d,a)}t=t.child}return t;case 5:return Zl(t),e===null&&Zs(t),d=t.type,m=t.pendingProps,y=e!==null?e.memoizedProps:null,E=m.children,V(d,m)?E=null:y!==null&&V(d,y)&&(t.flags|=32),Cu(e,t),en(e,t,E,a),t.child;case 6:return e===null&&Zs(t),null;case 13:return Tu(e,t,a);case 4:return Qs(t,t.stateNode.containerInfo),d=t.pendingProps,e===null?t.child=pi(t,null,d,a):en(e,t,d,a),t.child;case 11:return d=t.type,m=t.pendingProps,m=t.elementType===d?m:qt(d,m),yu(e,t,d,m,a);case 7:return en(e,t,t.pendingProps,a),t.child;case 8:return en(e,t,t.pendingProps.children,a),t.child;case 12:return en(e,t,t.pendingProps.children,a),t.child;case 10:e:{if(d=t.type._context,m=t.pendingProps,y=t.memoizedProps,E=m.value,Fo(t,d,E),y!==null)if(yn(y.value,E)){if(y.children===m.children&&!Pt.current){t=pr(e,t,a);break e}}else for(y=t.child,y!==null&&(y.return=t);y!==null;){var U=y.dependencies;if(U!==null){E=y.child;for(var Z=U.firstContext;Z!==null;){if(Z.context===d){if(y.tag===1){Z=cr(-1,a&-a),Z.tag=2;var le=y.updateQueue;if(le!==null){le=le.shared;var ve=le.pending;ve===null?Z.next=Z:(Z.next=ve.next,ve.next=Z),le.pending=Z}}y.lanes|=a,Z=y.alternate,Z!==null&&(Z.lanes|=a),$t(y.return,a,t),U.lanes|=a;break}Z=Z.next}}else if(y.tag===10)E=y.type===t.type?null:y.child;else if(y.tag===18){if(E=y.return,E===null)throw Error(l(341));E.lanes|=a,U=E.alternate,U!==null&&(U.lanes|=a),$t(E,a,t),E=y.sibling}else E=y.child;if(E!==null)E.return=y;else for(E=y;E!==null;){if(E===t){E=null;break}if(y=E.sibling,y!==null){y.return=E.return,E=y;break}E=E.return}y=E}en(e,t,m.children,a),t=t.child}return t;case 9:return m=t.type,d=t.pendingProps.children,vt(t,a),m=yt(m),d=d(m),t.flags|=1,en(e,t,d,a),t.child;case 14:return d=t.type,m=qt(d,t.pendingProps),m=qt(d.type,m),xu(e,t,d,m,a);case 15:return Su(e,t,t.type,t.pendingProps,a);case 17:return d=t.type,m=t.pendingProps,m=t.elementType===d?m:qt(d,m),e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,Mt(d)?(e=!0,vr(t)):e=!1,vt(t,a),Ol(t,d,m),Ws(t,d,m,a),aa(null,t,d,!0,e,a);case 19:return Lu(e,t,a);case 22:return wu(e,t,a)}throw Error(l(156,t.tag))};function ec(e,t){return ur(e,t)}function Xd(e,t,a,d){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=d,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Un(e,t,a,d){return new Xd(e,t,a,d)}function ba(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Qd(e){if(typeof e=="function")return ba(e)?1:0;if(e!=null){if(e=e.$$typeof,e===k)return 11;if(e===S)return 14}return 2}function Tr(e,t){var a=e.alternate;return a===null?(a=Un(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&14680064,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a}function xs(e,t,a,d,m,y){var E=2;if(d=e,typeof e=="function")ba(e)&&(E=1);else if(typeof e=="string")E=5;else e:switch(e){case h:return Hr(a.children,m,y,t);case g:E=8,m|=8;break;case v:return e=Un(12,a,t,m|2),e.elementType=v,e.lanes=y,e;case _:return e=Un(13,a,t,m),e.elementType=_,e.lanes=y,e;case C:return e=Un(19,a,t,m),e.elementType=C,e.lanes=y,e;case A:return Ss(a,m,y,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case x:E=10;break e;case w:E=9;break e;case k:E=11;break e;case S:E=14;break e;case T:E=16,d=null;break e}throw Error(l(130,e==null?e:typeof e,""))}return t=Un(E,a,t,m),t.elementType=e,t.type=d,t.lanes=y,t}function Hr(e,t,a,d){return e=Un(7,e,d,t),e.lanes=a,e}function Ss(e,t,a,d){return e=Un(22,e,d,t),e.elementType=A,e.lanes=a,e.stateNode={},e}function La(e,t,a){return e=Un(6,e,null,t),e.lanes=a,e}function Ua(e,t,a){return t=Un(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Yd(e,t,a,d,m){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=ue,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ai(0),this.expirationTimes=ai(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ai(0),this.identifierPrefix=d,this.onRecoverableError=m,Se&&(this.mutableSourceEagerHydrationData=null)}function tc(e,t,a,d,m,y,E,U,Z){return e=new Yd(e,t,a,U,Z),t===1?(t=1,y===!0&&(t|=8)):t=0,y=Un(3,null,null,t),e.current=y,y.stateNode=e,y.memoizedState={element:d,isDehydrated:a,cache:null,transitions:null},Bs(y),e}function nc(e){if(!e)return pn;e=e._reactInternals;e:{if(Q(e)!==e||e.tag!==1)throw Error(l(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Mt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(l(171))}if(e.tag===1){var a=e.type;if(Mt(a))return oi(e,a,t)}return t}function rc(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(l(188)):(e=Object.keys(e).join(","),Error(l(268,e)));return e=I(t),e===null?null:e.stateNode}function ic(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a=le&&y>=Ae&&m<=ve&&E<=Le){e.splice(t,1);break}else if(d!==le||a.width!==Z.width||LeE){if(!(y!==Ae||a.height!==Z.height||vem)){le>d&&(Z.width+=le-d,Z.x=d),vey&&(Z.height+=Ae-y,Z.y=y),Lea&&(a=E)),E ")+` No matching component was found for: - `)+e.join(" > ")}return null},s.getPublicRootInstance=function(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return se(e.child.stateNode);default:return e.child.stateNode}},s.injectIntoDevTools=function(e){if(e={bundleType:e.bundleType,version:e.version,rendererPackageName:e.rendererPackageName,rendererConfig:e.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:f.ReactCurrentDispatcher,findHostInstanceByFiber:Kd,findFiberByHostInstance:e.findFiberByHostInstance||Jd,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.0.0-fc46dba67-20220329"},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")e=!1;else{var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)e=!0;else{try{Rr=t.inject(e),vn=t}catch{}e=!!t.checkDCE}}return e},s.isAlreadyRendering=function(){return!1},s.observeVisibleRects=function(e,t,a,d){if(!me)throw Error(l(363));e=ya(e,t);var m=Oe(e,a,d).disconnect;return{disconnect:function(){m()}}},s.registerMutableSourceForHydration=function(e,t){var a=t._getVersion;a=a(t._source),e.mutableSourceEagerHydrationData==null?e.mutableSourceEagerHydrationData=[t,a]:e.mutableSourceEagerHydrationData.push(t,a)},s.runWithPriority=function(e,t){var a=We;try{return We=e,t()}finally{We=a}},s.shouldError=function(){return null},s.shouldSuspend=function(){return!1},s.updateContainer=function(e,t,a,d){var m=t.current,y=tn(),E=Er(m);return a=nc(a),t.context===null?t.context=a:t.pendingContext=a,t=cr(y,E),t.payload={element:e},d=d===void 0?null:d,d!==null&&(t.callback=d),wr(m,t),e=Ln(m,E,y),e!==null&&Fo(e,m,E),E},s};Sf.exports=R1;var A1=Sf.exports;const I1=hf(A1),D1=o=>typeof o=="object"&&typeof o.then=="function",Xr=[];function _f(o,n,s=(c,i)=>c===i){if(o===n)return!0;if(!o||!n)return!1;const c=o.length;if(n.length!==c)return!1;for(let i=0;i0&&(r.timeout&&clearTimeout(r.timeout),r.timeout=setTimeout(r.remove,c.lifespan)),r.response;if(!s)throw r.promise}const i={keys:n,equal:c.equal,remove:()=>{const r=Xr.indexOf(i);r!==-1&&Xr.splice(r,1)},promise:(D1(o)?o:o(...n)).then(r=>{i.response=r,c.lifespan&&c.lifespan>0&&(i.timeout=setTimeout(i.remove,c.lifespan))}).catch(r=>i.error=r)};if(Xr.push(i),!s)throw i.promise}const O1=(o,n,s)=>Ef(o,n,!1,s),F1=(o,n,s)=>void Ef(o,n,!0,s),j1=o=>{if(o===void 0||o.length===0)Xr.splice(0,Xr.length);else{const n=Xr.find(s=>_f(o,s.keys,s.equal));n&&n.remove()}},_l={},z1=o=>void Object.assign(_l,o);function B1(o,n){function s(h,{args:g=[],attach:v,...x},w){let k=`${h[0].toUpperCase()}${h.slice(1)}`,_;if(h==="primitive"){if(x.object===void 0)throw new Error("R3F: Primitives without 'object' are invalid!");const C=x.object;_=Ti(C,{type:h,root:w,attach:v,primitive:!0})}else{const C=_l[k];if(!C)throw new Error(`R3F: ${k} is not part of the THREE namespace! Did you forget to extend? See: https://docs.pmnd.rs/react-three-fiber/api/objects#using-3rd-party-objects-declaratively`);if(!Array.isArray(g))throw new Error("R3F: The args prop must be an array!");_=Ti(new C(...g),{type:h,root:w,attach:v,memoizedProps:{args:g}})}return _.__r3f.attach===void 0&&(_ instanceof mf?_.__r3f.attach="geometry":_ instanceof i1&&(_.__r3f.attach="material")),k!=="inject"&&ja(_,x),_}function c(h,g){let v=!1;if(g){var x,w;(x=g.__r3f)!=null&&x.attach?Fa(h,g,g.__r3f.attach):g.isObject3D&&h.isObject3D&&(h.add(g),v=!0),v||(w=h.__r3f)==null||w.objects.push(g),g.__r3f||Ti(g,{}),g.__r3f.parent=h,ol(g),Pi(g)}}function i(h,g,v){let x=!1;if(g){var w,k;if((w=g.__r3f)!=null&&w.attach)Fa(h,g,g.__r3f.attach);else if(g.isObject3D&&h.isObject3D){g.parent=h,g.dispatchEvent({type:"added"});const _=h.children.filter(S=>S!==g),C=_.indexOf(v);h.children=[..._.slice(0,C),g,..._.slice(C)],x=!0}x||(k=h.__r3f)==null||k.objects.push(g),g.__r3f||Ti(g,{}),g.__r3f.parent=h,ol(g),Pi(g)}}function r(h,g,v=!1){h&&[...h].forEach(x=>l(g,x,v))}function l(h,g,v){if(g){var x,w,k;if(g.__r3f&&(g.__r3f.parent=null),(x=h.__r3f)!=null&&x.objects&&(h.__r3f.objects=h.__r3f.objects.filter(A=>A!==g)),(w=g.__r3f)!=null&&w.attach)hc(h,g,g.__r3f.attach);else if(g.isObject3D&&h.isObject3D){var _;h.remove(g),(_=g.__r3f)!=null&&_.root&&Y1(g.__r3f.root,g)}const S=(k=g.__r3f)==null?void 0:k.primitive,T=!S&&(v===void 0?g.dispose!==null:v);if(!S){var C;r((C=g.__r3f)==null?void 0:C.objects,g,T),r(g.children,g,T)}if(delete g.__r3f,T&&g.dispose&&g.type!=="Scene"){const A=()=>{try{g.dispose()}catch{}};typeof IS_REACT_ACT_ENVIRONMENT>"u"?rl.unstable_scheduleCallback(rl.unstable_IdlePriority,A):A()}Pi(h)}}function f(h,g,v,x){var w;const k=(w=h.__r3f)==null?void 0:w.parent;if(!k)return;const _=s(g,v,h.__r3f.root);if(h.children){for(const C of h.children)C.__r3f&&c(_,C);h.children=h.children.filter(C=>!C.__r3f)}h.__r3f.objects.forEach(C=>c(_,C)),h.__r3f.objects=[],h.__r3f.autoRemovedBeforeAppend||l(k,h),_.parent&&(_.__r3f.autoRemovedBeforeAppend=!0),c(k,_),_.raycast&&_.__r3f.eventCount&&_.__r3f.root.getState().internal.interaction.push(_),[x,x.alternate].forEach(C=>{C!==null&&(C.stateNode=_,C.ref&&(typeof C.ref=="function"?C.ref(_):C.ref.current=_))})}const u=()=>console.warn("Text is not allowed in the R3F tree! This could be stray whitespace or characters.");return{reconciler:I1({createInstance:s,removeChild:l,appendChild:c,appendInitialChild:c,insertBefore:i,supportsMutation:!0,isPrimaryRenderer:!1,supportsPersistence:!1,supportsHydration:!1,noTimeout:-1,appendChildToContainer:(h,g)=>{if(!g)return;const v=h.getState().scene;v.__r3f&&(v.__r3f.root=h,c(v,g))},removeChildFromContainer:(h,g)=>{g&&l(h.getState().scene,g)},insertInContainerBefore:(h,g,v)=>{if(!g||!v)return;const x=h.getState().scene;x.__r3f&&i(x,g,v)},getRootHostContext:()=>null,getChildHostContext:h=>h,finalizeInitialChildren(h){var g;return!!((g=h==null?void 0:h.__r3f)!=null?g:{}).handlers},prepareUpdate(h,g,v,x){var w;if(((w=h==null?void 0:h.__r3f)!=null?w:{}).primitive&&x.object&&x.object!==h)return[!0];{const{args:_=[],children:C,...S}=x,{args:T=[],children:A,...R}=v;if(!Array.isArray(_))throw new Error("R3F: the args prop must be an array!");if(_.some((O,z)=>O!==T[z]))return[!0];const b=Uf(h,S,R,!0);return b.changes.length?[!1,b]:null}},commitUpdate(h,[g,v],x,w,k,_){g?f(h,x,k,_):ja(h,v)},commitMount(h,g,v,x){var w;const k=(w=h.__r3f)!=null?w:{};h.raycast&&k.handlers&&k.eventCount&&h.__r3f.root.getState().internal.interaction.push(h)},getPublicInstance:h=>h,prepareForCommit:()=>null,preparePortalMount:h=>Ti(h.getState().scene),resetAfterCommit:()=>{},shouldSetTextContent:()=>!1,clearContainer:()=>!1,hideInstance(h){var g;const{attach:v,parent:x}=(g=h.__r3f)!=null?g:{};v&&x&&hc(x,h,v),h.isObject3D&&(h.visible=!1),Pi(h)},unhideInstance(h,g){var v;const{attach:x,parent:w}=(v=h.__r3f)!=null?v:{};x&&w&&Fa(w,h,x),(h.isObject3D&&g.visible==null||g.visible)&&(h.visible=!0),Pi(h)},createTextInstance:u,hideTextInstance:u,unhideTextInstance:u,getCurrentEventPriority:()=>n?n():bi.DefaultEventPriority,beforeActiveInstanceBlur:()=>{},afterActiveInstanceBlur:()=>{},detachDeletedInstance:()=>{},now:typeof performance<"u"&&it.fun(performance.now)?performance.now:it.fun(Date.now)?Date.now:()=>0,scheduleTimeout:it.fun(setTimeout)?setTimeout:void 0,cancelTimeout:it.fun(clearTimeout)?clearTimeout:void 0}),applyProps:ja}}var uc,cc;const Oa=o=>"colorSpace"in o||"outputColorSpace"in o,kf=()=>{var o;return(o=_l.ColorManagement)!=null?o:null},Tf=o=>o&&o.isOrthographicCamera,N1=o=>o&&o.hasOwnProperty("current"),_o=typeof window<"u"&&((uc=window.document)!=null&&uc.createElement||((cc=window.navigator)==null?void 0:cc.product)==="ReactNative")?P.useLayoutEffect:P.useEffect;function Pf(o){const n=P.useRef(o);return _o(()=>void(n.current=o),[o]),n}function W1({set:o}){return _o(()=>(o(new Promise(()=>null)),()=>o(!1)),[o]),null}class Mf extends P.Component{constructor(...n){super(...n),this.state={error:!1}}componentDidCatch(n){this.props.set(n)}render(){return this.state.error?null:this.props.children}}Mf.getDerivedStateFromError=()=>({error:!0});const bf="__default",fc=new Map,G1=o=>o&&!!o.memoized&&!!o.changes;function Lf(o){var n;const s=typeof window<"u"?(n=window.devicePixelRatio)!=null?n:2:1;return Array.isArray(o)?Math.min(Math.max(o[0],s),o[1]):o}const ho=o=>{var n;return(n=o.__r3f)==null?void 0:n.root.getState()},it={obj:o=>o===Object(o)&&!it.arr(o)&&typeof o!="function",fun:o=>typeof o=="function",str:o=>typeof o=="string",num:o=>typeof o=="number",boo:o=>typeof o=="boolean",und:o=>o===void 0,arr:o=>Array.isArray(o),equ(o,n,{arrays:s="shallow",objects:c="reference",strict:i=!0}={}){if(typeof o!=typeof n||!!o!=!!n)return!1;if(it.str(o)||it.num(o))return o===n;const r=it.obj(o);if(r&&c==="reference")return o===n;const l=it.arr(o);if(l&&s==="reference")return o===n;if((l||r)&&o===n)return!0;let f;for(f in o)if(!(f in n))return!1;if(r&&s==="shallow"&&c==="shallow"){for(f in i?n:o)if(!it.equ(o[f],n[f],{strict:i,objects:"reference"}))return!1}else for(f in i?n:o)if(o[f]!==n[f])return!1;if(it.und(f)){if(l&&o.length===0&&n.length===0||r&&Object.keys(o).length===0&&Object.keys(n).length===0)return!0;if(o!==n)return!1}return!0}};function H1(o){const n={nodes:{},materials:{}};return o&&o.traverse(s=>{s.name&&(n.nodes[s.name]=s),s.material&&!n.materials[s.material.name]&&(n.materials[s.material.name]=s.material)}),n}function V1(o){o.dispose&&o.type!=="Scene"&&o.dispose();for(const n in o)n.dispose==null||n.dispose(),delete o[n]}function Ti(o,n){const s=o;return s.__r3f={type:"",root:null,previousAttach:null,memoizedProps:{},eventCount:0,handlers:{},objects:[],parent:null,...n},o}function il(o,n){let s=o;if(n.includes("-")){const c=n.split("-"),i=c.pop();return s=c.reduce((r,l)=>r[l],o),{target:s,key:i}}else return{target:s,key:n}}const dc=/-\d+$/;function Fa(o,n,s){if(it.str(s)){if(dc.test(s)){const r=s.replace(dc,""),{target:l,key:f}=il(o,r);Array.isArray(l[f])||(l[f]=[])}const{target:c,key:i}=il(o,s);n.__r3f.previousAttach=c[i],c[i]=n}else n.__r3f.previousAttach=s(o,n)}function hc(o,n,s){var c,i;if(it.str(s)){const{target:r,key:l}=il(o,s),f=n.__r3f.previousAttach;f===void 0?delete r[l]:r[l]=f}else(c=n.__r3f)==null||c.previousAttach==null||c.previousAttach(o,n);(i=n.__r3f)==null||delete i.previousAttach}function Uf(o,{children:n,key:s,ref:c,...i},{children:r,key:l,ref:f,...u}={},p=!1){var h;const g=(h=o==null?void 0:o.__r3f)!=null?h:{},v=Object.entries(i),x=[];if(p){const k=Object.keys(u);for(let _=0;_{var C;if((C=o.__r3f)!=null&&C.primitive&&k==="object"||it.equ(_,u[k]))return;if(/^on(Pointer|Click|DoubleClick|ContextMenu|Wheel)/.test(k))return x.push([k,_,!0,[]]);let S=[];k.includes("-")&&(S=k.split("-")),x.push([k,_,!1,S]);for(const T in i){const A=i[T];T.startsWith(`${k}-`)&&x.push([T,A,!1,T.split("-")])}});const w={...i};return g.memoizedProps&&g.memoizedProps.args&&(w.args=g.memoizedProps.args),g.memoizedProps&&g.memoizedProps.attach&&(w.attach=g.memoizedProps.attach),{memoized:w,changes:x}}const Z1=typeof process<"u"&&!1;function ja(o,n){var s,c,i;const r=(s=o.__r3f)!=null?s:{},l=r.root,f=(c=l==null||l.getState==null?void 0:l.getState())!=null?c:{},{memoized:u,changes:p}=G1(n)?n:Uf(o,n),h=r.eventCount;o.__r3f&&(o.__r3f.memoizedProps=u);for(let v=0;vT[A],o),!(S&&S.set))){const[T,...A]=_.reverse();C=A.reverse().reduce((R,b)=>R[b],o),x=T}if(w===bf+"remove")if(C.constructor){let T=fc.get(C.constructor);T||(T=new C.constructor,fc.set(C.constructor,T)),w=T[x]}else w=0;if(k)w?r.handlers[x]=w:delete r.handlers[x],r.eventCount=Object.keys(r.handlers).length;else if(S&&S.set&&(S.copy||S instanceof Aa)){if(Array.isArray(w))S.fromArray?S.fromArray(w):S.set(...w);else if(S.copy&&w&&w.constructor&&(Z1?S.constructor.name===w.constructor.name:S.constructor===w.constructor))S.copy(w);else if(w!==void 0){const T=S instanceof wo;!T&&S.setScalar?S.setScalar(w):S instanceof Aa&&w instanceof Aa?S.mask=w.mask:S.set(w),!kf()&&!f.linear&&T&&S.convertSRGBToLinear()}}else if(C[x]=w,C[x]instanceof vl&&C[x].format===n1&&C[x].type===r1){const T=C[x];Oa(T)&&Oa(f.gl)?T.colorSpace=f.gl.outputColorSpace:T.encoding=f.gl.outputEncoding}Pi(o)}if(r.parent&&f.internal&&o.raycast&&h!==r.eventCount){const v=f.internal.interaction.indexOf(o);v>-1&&f.internal.interaction.splice(v,1),r.eventCount&&f.internal.interaction.push(o)}return!(p.length===1&&p[0][0]==="onUpdate")&&p.length&&(i=o.__r3f)!=null&&i.parent&&ol(o),o}function Pi(o){var n,s;const c=(n=o.__r3f)==null||(s=n.root)==null||s.getState==null?void 0:s.getState();c&&c.internal.frames===0&&c.invalidate()}function ol(o){o.onUpdate==null||o.onUpdate(o)}function X1(o,n){o.manual||(Tf(o)?(o.left=n.width/-2,o.right=n.width/2,o.top=n.height/2,o.bottom=n.height/-2):o.aspect=n.width/n.height,o.updateProjectionMatrix(),o.updateMatrixWorld())}function ws(o){return(o.eventObject||o.object).uuid+"/"+o.index+o.instanceId}function Q1(){var o;const n=typeof self<"u"&&self||typeof window<"u"&&window;if(!n)return bi.DefaultEventPriority;switch((o=n.event)==null?void 0:o.type){case"click":case"contextmenu":case"dblclick":case"pointercancel":case"pointerdown":case"pointerup":return bi.DiscreteEventPriority;case"pointermove":case"pointerout":case"pointerover":case"pointerenter":case"pointerleave":case"wheel":return bi.ContinuousEventPriority;default:return bi.DefaultEventPriority}}function Rf(o,n,s,c){const i=s.get(n);i&&(s.delete(n),s.size===0&&(o.delete(c),i.target.releasePointerCapture(c)))}function Y1(o,n){const{internal:s}=o.getState();s.interaction=s.interaction.filter(c=>c!==n),s.initialHits=s.initialHits.filter(c=>c!==n),s.hovered.forEach((c,i)=>{(c.eventObject===n||c.object===n)&&s.hovered.delete(i)}),s.capturedMap.forEach((c,i)=>{Rf(s.capturedMap,n,c,i)})}function K1(o){function n(u){const{internal:p}=o.getState(),h=u.offsetX-p.initialClick[0],g=u.offsetY-p.initialClick[1];return Math.round(Math.sqrt(h*h+g*g))}function s(u){return u.filter(p=>["Move","Over","Enter","Out","Leave"].some(h=>{var g;return(g=p.__r3f)==null?void 0:g.handlers["onPointer"+h]}))}function c(u,p){const h=o.getState(),g=new Set,v=[],x=p?p(h.internal.interaction):h.internal.interaction;for(let C=0;C{const T=ho(C.object),A=ho(S.object);return!T||!A?C.distance-S.distance:A.events.priority-T.events.priority||C.distance-S.distance}).filter(C=>{const S=ws(C);return g.has(S)?!1:(g.add(S),!0)});h.events.filter&&(k=h.events.filter(k,h));for(const C of k){let S=C.object;for(;S;){var _;(_=S.__r3f)!=null&&_.eventCount&&v.push({...C,eventObject:S}),S=S.parent}}if("pointerId"in u&&h.internal.capturedMap.has(u.pointerId))for(let C of h.internal.capturedMap.get(u.pointerId).values())g.has(ws(C.intersection))||v.push(C.intersection);return v}function i(u,p,h,g){const v=o.getState();if(u.length){const x={stopped:!1};for(const w of u){const k=ho(w.object)||v,{raycaster:_,pointer:C,camera:S,internal:T}=k,A=new ct(C.x,C.y,0).unproject(S),R=ee=>{var N,D;return(N=(D=T.capturedMap.get(ee))==null?void 0:D.has(w.eventObject))!=null?N:!1},b=ee=>{const N={intersection:w,target:p.target};T.capturedMap.has(ee)?T.capturedMap.get(ee).set(w.eventObject,N):T.capturedMap.set(ee,new Map([[w.eventObject,N]])),p.target.setPointerCapture(ee)},O=ee=>{const N=T.capturedMap.get(ee);N&&Rf(T.capturedMap,w.eventObject,N,ee)};let z={};for(let ee in p){let N=p[ee];typeof N!="function"&&(z[ee]=N)}let Q={...w,...z,pointer:C,intersections:u,stopped:x.stopped,delta:h,unprojectedPoint:A,ray:_.ray,camera:S,stopPropagation(){const ee="pointerId"in p&&T.capturedMap.get(p.pointerId);if((!ee||ee.has(w.eventObject))&&(Q.stopped=x.stopped=!0,T.hovered.size&&Array.from(T.hovered.values()).find(N=>N.eventObject===w.eventObject))){const N=u.slice(0,u.indexOf(w));r([...N,w])}},target:{hasPointerCapture:R,setPointerCapture:b,releasePointerCapture:O},currentTarget:{hasPointerCapture:R,setPointerCapture:b,releasePointerCapture:O},nativeEvent:p};if(g(Q),x.stopped===!0)break}}return u}function r(u){const{internal:p}=o.getState();for(const h of p.hovered.values())if(!u.length||!u.find(g=>g.object===h.object&&g.index===h.index&&g.instanceId===h.instanceId)){const v=h.eventObject.__r3f,x=v==null?void 0:v.handlers;if(p.hovered.delete(ws(h)),v!=null&&v.eventCount){const w={...h,intersections:u};x.onPointerOut==null||x.onPointerOut(w),x.onPointerLeave==null||x.onPointerLeave(w)}}}function l(u,p){for(let h=0;hr([]);case"onLostPointerCapture":return p=>{const{internal:h}=o.getState();"pointerId"in p&&h.capturedMap.has(p.pointerId)&&requestAnimationFrame(()=>{h.capturedMap.has(p.pointerId)&&(h.capturedMap.delete(p.pointerId),r([]))})}}return function(h){const{onPointerMissed:g,internal:v}=o.getState();v.lastEvent.current=h;const x=u==="onPointerMove",w=u==="onClick"||u==="onContextMenu"||u==="onDoubleClick",_=c(h,x?s:void 0),C=w?n(h):0;u==="onPointerDown"&&(v.initialClick=[h.offsetX,h.offsetY],v.initialHits=_.map(T=>T.eventObject)),w&&!_.length&&C<=2&&(l(h,v.interaction),g&&g(h)),x&&r(_);function S(T){const A=T.eventObject,R=A.__r3f,b=R==null?void 0:R.handlers;if(R!=null&&R.eventCount)if(x){if(b.onPointerOver||b.onPointerEnter||b.onPointerOut||b.onPointerLeave){const O=ws(T),z=v.hovered.get(O);z?z.stopped&&T.stopPropagation():(v.hovered.set(O,T),b.onPointerOver==null||b.onPointerOver(T),b.onPointerEnter==null||b.onPointerEnter(T))}b.onPointerMove==null||b.onPointerMove(T)}else{const O=b[u];O?(!w||v.initialHits.includes(A))&&(l(h,v.interaction.filter(z=>!v.initialHits.includes(z))),O(T)):w&&v.initialHits.includes(A)&&l(h,v.interaction.filter(z=>!v.initialHits.includes(z)))}}i(_,h,C,S)}}return{handlePointer:f}}const Af=o=>!!(o!=null&&o.render),If=P.createContext(null),J1=(o,n)=>{const s=U1((f,u)=>{const p=new ct,h=new ct,g=new ct;function v(C=u().camera,S=h,T=u().size){const{width:A,height:R,top:b,left:O}=T,z=A/R;S instanceof ct?g.copy(S):g.set(...S);const Q=C.getWorldPosition(p).distanceTo(g);if(Tf(C))return{width:A/C.zoom,height:R/C.zoom,top:b,left:O,factor:1,distance:Q,aspect:z};{const ee=C.fov*Math.PI/180,N=2*Math.tan(ee/2)*Q,D=N*(A/R);return{width:D,height:N,top:b,left:O,factor:A/D,distance:Q,aspect:z}}}let x;const w=C=>f(S=>({performance:{...S.performance,current:C}})),k=new $r;return{set:f,get:u,gl:null,camera:null,raycaster:null,events:{priority:1,enabled:!0,connected:!1},xr:null,scene:null,invalidate:(C=1)=>o(u(),C),advance:(C,S)=>n(C,S,u()),legacy:!1,linear:!1,flat:!1,controls:null,clock:new h1,pointer:k,mouse:k,frameloop:"always",onPointerMissed:void 0,performance:{current:1,min:.5,max:1,debounce:200,regress:()=>{const C=u();x&&clearTimeout(x),C.performance.current!==C.performance.min&&w(C.performance.min),x=setTimeout(()=>w(u().performance.max),C.performance.debounce)}},size:{width:0,height:0,top:0,left:0,updateStyle:!1},viewport:{initialDpr:0,dpr:0,width:0,height:0,top:0,left:0,aspect:0,distance:0,factor:0,getCurrentViewport:v},setEvents:C=>f(S=>({...S,events:{...S.events,...C}})),setSize:(C,S,T,A,R)=>{const b=u().camera,O={width:C,height:S,top:A||0,left:R||0,updateStyle:T};f(z=>({size:O,viewport:{...z.viewport,...v(b,h,O)}}))},setDpr:C=>f(S=>{const T=Lf(C);return{viewport:{...S.viewport,dpr:T,initialDpr:S.viewport.initialDpr||T}}}),setFrameloop:(C="always")=>{const S=u().clock;S.stop(),S.elapsedTime=0,C!=="never"&&(S.start(),S.elapsedTime=0),f(()=>({frameloop:C}))},previousRoot:void 0,internal:{active:!1,priority:0,frames:0,lastEvent:P.createRef(),interaction:[],hovered:new Map,subscribers:[],initialClick:[0,0],initialHits:[],capturedMap:new Map,subscribe:(C,S,T)=>{const A=u().internal;return A.priority=A.priority+(S>0?1:0),A.subscribers.push({ref:C,priority:S,store:T}),A.subscribers=A.subscribers.sort((R,b)=>R.priority-b.priority),()=>{const R=u().internal;R!=null&&R.subscribers&&(R.priority=R.priority-(S>0?1:0),R.subscribers=R.subscribers.filter(b=>b.ref!==C))}}}}}),c=s.getState();let i=c.size,r=c.viewport.dpr,l=c.camera;return s.subscribe(()=>{const{camera:f,size:u,viewport:p,gl:h,set:g}=s.getState();if(u.width!==i.width||u.height!==i.height||p.dpr!==r){var v;i=u,r=p.dpr,X1(f,u),h.setPixelRatio(p.dpr);const x=(v=u.updateStyle)!=null?v:typeof HTMLCanvasElement<"u"&&h.domElement instanceof HTMLCanvasElement;h.setSize(u.width,u.height,x)}f!==l&&(l=f,g(x=>({viewport:{...x.viewport,...x.viewport.getCurrentViewport(f)}})))}),s.subscribe(f=>o(f)),s};function El(o,n){const s={callback:o};return n.add(s),()=>void n.delete(s)}let Cs,Df=new Set,Of=new Set,Ff=new Set;const q1=o=>El(o,Df),$1=o=>El(o,Of),eh=o=>El(o,Ff);function za(o,n){if(o.size)for(const{callback:s}of o.values())s(n)}function po(o,n){switch(o){case"before":return za(Df,n);case"after":return za(Of,n);case"tail":return za(Ff,n)}}let Ba,Na;function Wa(o,n,s){let c=n.clock.getDelta();for(n.frameloop==="never"&&typeof o=="number"&&(c=o-n.clock.elapsedTime,n.clock.oldTime=n.clock.elapsedTime,n.clock.elapsedTime=o),Ba=n.internal.subscribers,Cs=0;Cs0)&&!((p=i.gl.xr)!=null&&p.isPresenting)&&(s+=Wa(u,i))}if(po("after",u),s===0)return po("tail",u),n=!1,cancelAnimationFrame(c)}function l(u,p=1){var h;if(!u)return o.forEach(g=>l(g.store.getState()),p);(h=u.gl.xr)!=null&&h.isPresenting||!u.internal.active||u.frameloop==="never"||(u.internal.frames=Math.min(60,u.internal.frames+p),n||(n=!0,requestAnimationFrame(r)))}function f(u,p=!0,h,g){if(p&&po("before",u),h)Wa(u,h,g);else for(const v of o.values())Wa(u,v.store.getState());p&&po("after",u)}return{loop:r,invalidate:l,advance:f}}function jf(){const o=P.useContext(If);if(!o)throw new Error("R3F: Hooks can only be used within the Canvas component!");return o}function Di(o=s=>s,n){return jf()(o,n)}function Eo(o,n=0){const s=jf(),c=s.getState().internal.subscribe,i=Pf(o);return _o(()=>c(i,n,s),[n,c,s]),null}const pc=new WeakMap;function zf(o,n){return function(s,...c){let i=pc.get(s);return i||(i=new s,pc.set(s,i)),o&&o(i),Promise.all(c.map(r=>new Promise((l,f)=>i.load(r,u=>{u.scene&&Object.assign(u,H1(u.scene)),l(u)},n,u=>f(new Error(`Could not load ${r}: ${u==null?void 0:u.message}`)))))).finally(()=>i.dispose==null?void 0:i.dispose())}}function Bf(o,n,s,c){const i=Array.isArray(n)?n:[n],r=O1(zf(s,c),[o,...i],{equal:it.equ});return Array.isArray(n)?r:r[0]}Bf.preload=function(o,n,s){const c=Array.isArray(n)?n:[n];return F1(zf(s),[o,...c])};Bf.clear=function(o,n){const s=Array.isArray(n)?n:[n];return j1([o,...s])};const Ii=new Map,{invalidate:mc,advance:gc}=th(Ii),{reconciler:As,applyProps:wi}=B1(Ii,Q1),Ci={objects:"shallow",strict:!1},nh=(o,n)=>{const s=typeof o=="function"?o(n):o;return Af(s)?s:new l1({powerPreference:"high-performance",canvas:n,antialias:!0,alpha:!0,...o})};function rh(o,n){const s=typeof HTMLCanvasElement<"u"&&o instanceof HTMLCanvasElement;if(n){const{width:c,height:i,top:r,left:l,updateStyle:f=s}=n;return{width:c,height:i,top:r,left:l,updateStyle:f}}else if(typeof HTMLCanvasElement<"u"&&o instanceof HTMLCanvasElement&&o.parentElement){const{width:c,height:i,top:r,left:l}=o.parentElement.getBoundingClientRect();return{width:c,height:i,top:r,left:l,updateStyle:s}}else if(typeof OffscreenCanvas<"u"&&o instanceof OffscreenCanvas)return{width:o.width,height:o.height,top:0,left:0,updateStyle:s};return{width:0,height:0,top:0,left:0}}function ih(o){const n=Ii.get(o),s=n==null?void 0:n.fiber,c=n==null?void 0:n.store;n&&console.warn("R3F.createRoot should only be called once!");const i=typeof reportError=="function"?reportError:console.error,r=c||J1(mc,gc),l=s||As.createContainer(r,bi.ConcurrentRoot,null,!1,null,"",i,null);n||Ii.set(o,{fiber:l,store:r});let f,u=!1,p;return{configure(h={}){let{gl:g,size:v,scene:x,events:w,onCreated:k,shadows:_=!1,linear:C=!1,flat:S=!1,legacy:T=!1,orthographic:A=!1,frameloop:R="always",dpr:b=[1,2],performance:O,raycaster:z,camera:Q,onPointerMissed:ee}=h,N=r.getState(),D=N.gl;N.gl||N.set({gl:D=nh(g,o)});let J=N.raycaster;J||N.set({raycaster:J=new o1});const{params:K,...re}=z||{};if(it.equ(re,J,Ci)||wi(J,{...re}),it.equ(K,J.params,Ci)||wi(J,{params:{...J.params,...K}}),!N.camera||N.camera===p&&!it.equ(p,Q,Ci)){p=Q;const j=Q instanceof u1,X=j?Q:A?new yl(0,0,0,0,.1,1e3):new xl(75,0,.1,1e3);j||(X.position.z=5,Q&&wi(X,Q),!N.camera&&!(Q!=null&&Q.rotation)&&X.lookAt(0,0,0)),N.set({camera:X}),J.camera=X}if(!N.scene){let j;x instanceof Rs?j=x:(j=new Rs,x&&wi(j,x)),N.set({scene:Ti(j)})}if(!N.xr){var se;const j=(V,ie)=>{const Y=r.getState();Y.frameloop!=="never"&&gc(V,!0,Y,ie)},X=()=>{const V=r.getState();V.gl.xr.enabled=V.gl.xr.isPresenting,V.gl.xr.setAnimationLoop(V.gl.xr.isPresenting?j:null),V.gl.xr.isPresenting||mc(V)},q={connect(){const V=r.getState().gl;V.xr.addEventListener("sessionstart",X),V.xr.addEventListener("sessionend",X)},disconnect(){const V=r.getState().gl;V.xr.removeEventListener("sessionstart",X),V.xr.removeEventListener("sessionend",X)}};typeof((se=D.xr)==null?void 0:se.addEventListener)=="function"&&q.connect(),N.set({xr:q})}if(D.shadowMap){const j=D.shadowMap.enabled,X=D.shadowMap.type;if(D.shadowMap.enabled=!!_,it.boo(_))D.shadowMap.type=Ia;else if(it.str(_)){var pe;const q={basic:c1,percentage:f1,soft:Ia,variance:d1};D.shadowMap.type=(pe=q[_])!=null?pe:Ia}else it.obj(_)&&Object.assign(D.shadowMap,_);(j!==D.shadowMap.enabled||X!==D.shadowMap.type)&&(D.shadowMap.needsUpdate=!0)}const G=kf();G&&("enabled"in G?G.enabled=!T:"legacyMode"in G&&(G.legacyMode=T)),wi(D,{outputEncoding:C?3e3:3001,toneMapping:S?s1:a1}),N.legacy!==T&&N.set(()=>({legacy:T})),N.linear!==C&&N.set(()=>({linear:C})),N.flat!==S&&N.set(()=>({flat:S})),g&&!it.fun(g)&&!Af(g)&&!it.equ(g,D,Ci)&&wi(D,g),w&&!N.events.handlers&&N.set({events:w(r)});const M=rh(o,v);return it.equ(M,N.size,Ci)||N.setSize(M.width,M.height,M.updateStyle,M.top,M.left),b&&N.viewport.dpr!==Lf(b)&&N.setDpr(b),N.frameloop!==R&&N.setFrameloop(R),N.onPointerMissed||N.set({onPointerMissed:ee}),O&&!it.equ(O,N.performance,Ci)&&N.set(j=>({performance:{...j.performance,...O}})),f=k,u=!0,this},render(h){return u||this.configure(),As.updateContainer(P.createElement(oh,{store:r,children:h,onCreated:f,rootElement:o}),l,null,()=>{}),r},unmount(){Nf(o)}}}function oh({store:o,children:n,onCreated:s,rootElement:c}){return _o(()=>{const i=o.getState();i.set(r=>({internal:{...r.internal,active:!0}})),s&&s(i),o.getState().events.connected||i.events.connect==null||i.events.connect(c)},[]),P.createElement(If.Provider,{value:o},n)}function Nf(o,n){const s=Ii.get(o),c=s==null?void 0:s.fiber;if(c){const i=s==null?void 0:s.store.getState();i&&(i.internal.active=!1),As.updateContainer(null,c,null,()=>{i&&setTimeout(()=>{try{var r,l,f,u;i.events.disconnect==null||i.events.disconnect(),(r=i.gl)==null||(l=r.renderLists)==null||l.dispose==null||l.dispose(),(f=i.gl)==null||f.forceContextLoss==null||f.forceContextLoss(),(u=i.gl)!=null&&u.xr&&i.xr.disconnect(),V1(i),Ii.delete(o),n&&n(o)}catch{}},500)})}}As.injectIntoDevTools({bundleType:0,rendererPackageName:"@react-three/fiber",version:P.version});function sl(o,n,s){var c,i,r,l,f;n==null&&(n=100);function u(){var h=Date.now()-l;h=0?c=setTimeout(u,n-h):(c=null,s||(f=o.apply(r,i),r=i=null))}var p=function(){r=this,i=arguments,l=Date.now();var h=s&&!c;return c||(c=setTimeout(u,n)),h&&(f=o.apply(r,i),r=i=null),f};return p.clear=function(){c&&(clearTimeout(c),c=null)},p.flush=function(){c&&(f=o.apply(r,i),r=i=null,clearTimeout(c),c=null)},p}sl.debounce=sl;var sh=sl;const vc=hf(sh);function ah(o){let{debounce:n,scroll:s,polyfill:c,offsetSize:i}=o===void 0?{debounce:0,scroll:!1,offsetSize:!1}:o;const r=c||(typeof window>"u"?class{}:window.ResizeObserver);if(!r)throw new Error("This browser does not support ResizeObserver out of the box. See: https://github.com/react-spring/react-use-measure/#resize-observer-polyfills");const[l,f]=P.useState({left:0,top:0,width:0,height:0,bottom:0,right:0,x:0,y:0}),u=P.useRef({element:null,scrollContainers:null,resizeObserver:null,lastBounds:l}),p=n?typeof n=="number"?n:n.scroll:null,h=n?typeof n=="number"?n:n.resize:null,g=P.useRef(!1);P.useEffect(()=>(g.current=!0,()=>void(g.current=!1)));const[v,x,w]=P.useMemo(()=>{const S=()=>{if(!u.current.element)return;const{left:T,top:A,width:R,height:b,bottom:O,right:z,x:Q,y:ee}=u.current.element.getBoundingClientRect(),N={left:T,top:A,width:R,height:b,bottom:O,right:z,x:Q,y:ee};u.current.element instanceof HTMLElement&&i&&(N.height=u.current.element.offsetHeight,N.width=u.current.element.offsetWidth),Object.freeze(N),g.current&&!fh(u.current.lastBounds,N)&&f(u.current.lastBounds=N)};return[S,h?vc(S,h):S,p?vc(S,p):S]},[f,i,p,h]);function k(){u.current.scrollContainers&&(u.current.scrollContainers.forEach(S=>S.removeEventListener("scroll",w,!0)),u.current.scrollContainers=null),u.current.resizeObserver&&(u.current.resizeObserver.disconnect(),u.current.resizeObserver=null)}function _(){u.current.element&&(u.current.resizeObserver=new r(w),u.current.resizeObserver.observe(u.current.element),s&&u.current.scrollContainers&&u.current.scrollContainers.forEach(S=>S.addEventListener("scroll",w,{capture:!0,passive:!0})))}const C=S=>{!S||S===u.current.element||(k(),u.current.element=S,u.current.scrollContainers=Wf(S),_())};return uh(w,!!s),lh(x),P.useEffect(()=>{k(),_()},[s,w,x]),P.useEffect(()=>k,[]),[C,l,v]}function lh(o){P.useEffect(()=>{const n=o;return window.addEventListener("resize",n),()=>void window.removeEventListener("resize",n)},[o])}function uh(o,n){P.useEffect(()=>{if(n){const s=o;return window.addEventListener("scroll",s,{capture:!0,passive:!0}),()=>void window.removeEventListener("scroll",s,!0)}},[o,n])}function Wf(o){const n=[];if(!o||o===document.body)return n;const{overflow:s,overflowX:c,overflowY:i}=window.getComputedStyle(o);return[s,c,i].some(r=>r==="auto"||r==="scroll")&&n.push(o),[...n,...Wf(o.parentElement)]}const ch=["x","y","top","bottom","left","right","width","height"],fh=(o,n)=>ch.every(s=>o[s]===n[s]);var dh=Object.defineProperty,hh=Object.defineProperties,ph=Object.getOwnPropertyDescriptors,yc=Object.getOwnPropertySymbols,mh=Object.prototype.hasOwnProperty,gh=Object.prototype.propertyIsEnumerable,xc=(o,n,s)=>n in o?dh(o,n,{enumerable:!0,configurable:!0,writable:!0,value:s}):o[n]=s,Sc=(o,n)=>{for(var s in n||(n={}))mh.call(n,s)&&xc(o,s,n[s]);if(yc)for(var s of yc(n))gh.call(n,s)&&xc(o,s,n[s]);return o},vh=(o,n)=>hh(o,ph(n));function Gf(o,n,s){if(!o)return;if(s(o)===!0)return o;let c=n?o.return:o.child;for(;c;){const i=Gf(c,n,s);if(i)return i;c=n?null:c.sibling}}function Hf(o){try{return Object.defineProperties(o,{_currentRenderer:{get(){return null},set(){}},_currentRenderer2:{get(){return null},set(){}}})}catch{return o}}const kl=Hf(P.createContext(null));class Vf extends P.Component{render(){return P.createElement(kl.Provider,{value:this._reactInternals},this.props.children)}}const{ReactCurrentOwner:wc,ReactCurrentDispatcher:Cc}=P.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function yh(){const o=P.useContext(kl);if(o===null)throw new Error("its-fine: useFiber must be called within a !");const n=P.useId();return P.useMemo(()=>{for(const c of[wc==null?void 0:wc.current,o,o==null?void 0:o.alternate]){if(!c)continue;const i=Gf(c,!1,r=>{let l=r.memoizedState;for(;l;){if(l.memoizedState===n)return!0;l=l.next}});if(i)return i}},[o,n])}function xh(){var o,n;const s=yh(),[c]=P.useState(()=>new Map);c.clear();let i=s;for(;i;){const r=(o=i.type)==null?void 0:o._context;r&&r!==kl&&!c.has(r)&&c.set(r,(n=Cc==null?void 0:Cc.current)==null?void 0:n.readContext(Hf(r))),i=i.return}return c}function Sh(){const o=xh();return P.useMemo(()=>Array.from(o.keys()).reduce((n,s)=>c=>P.createElement(n,null,P.createElement(s.Provider,vh(Sc({},c),{value:o.get(s)}))),n=>P.createElement(Vf,Sc({},n))),[o])}const Ga={onClick:["click",!1],onContextMenu:["contextmenu",!1],onDoubleClick:["dblclick",!1],onWheel:["wheel",!0],onPointerDown:["pointerdown",!0],onPointerUp:["pointerup",!0],onPointerLeave:["pointerleave",!0],onPointerMove:["pointermove",!0],onPointerCancel:["pointercancel",!0],onLostPointerCapture:["lostpointercapture",!0]};function wh(o){const{handlePointer:n}=K1(o);return{priority:1,enabled:!0,compute(s,c,i){c.pointer.set(s.offsetX/c.size.width*2-1,-(s.offsetY/c.size.height)*2+1),c.raycaster.setFromCamera(c.pointer,c.camera)},connected:void 0,handlers:Object.keys(Ga).reduce((s,c)=>({...s,[c]:n(c)}),{}),update:()=>{var s;const{events:c,internal:i}=o.getState();(s=i.lastEvent)!=null&&s.current&&c.handlers&&c.handlers.onPointerMove(i.lastEvent.current)},connect:s=>{var c;const{set:i,events:r}=o.getState();r.disconnect==null||r.disconnect(),i(l=>({events:{...l.events,connected:s}})),Object.entries((c=r.handlers)!=null?c:[]).forEach(([l,f])=>{const[u,p]=Ga[l];s.addEventListener(u,f,{passive:p})})},disconnect:()=>{const{set:s,events:c}=o.getState();if(c.connected){var i;Object.entries((i=c.handlers)!=null?i:[]).forEach(([r,l])=>{if(c&&c.connected instanceof HTMLElement){const[f]=Ga[r];c.connected.removeEventListener(f,l)}}),s(r=>({events:{...r.events,connected:void 0}}))}}}}const Ch=P.forwardRef(function({children:n,fallback:s,resize:c,style:i,gl:r,events:l=wh,eventSource:f,eventPrefix:u,shadows:p,linear:h,flat:g,legacy:v,orthographic:x,frameloop:w,dpr:k,performance:_,raycaster:C,camera:S,scene:T,onPointerMissed:A,onCreated:R,...b},O){P.useMemo(()=>z1(p1),[]);const z=Sh(),[Q,ee]=ah({scroll:!0,debounce:{scroll:50,resize:0},...c}),N=P.useRef(null),D=P.useRef(null);P.useImperativeHandle(O,()=>N.current);const J=Pf(A),[K,re]=P.useState(!1),[se,pe]=P.useState(!1);if(K)throw K;if(se)throw se;const G=P.useRef(null);_o(()=>{const H=N.current;ee.width>0&&ee.height>0&&H&&(G.current||(G.current=ih(H)),G.current.configure({gl:r,events:l,shadows:p,linear:h,flat:g,legacy:v,orthographic:x,frameloop:w,dpr:k,performance:_,raycaster:C,camera:S,scene:T,size:ee,onPointerMissed:(...M)=>J.current==null?void 0:J.current(...M),onCreated:M=>{M.events.connect==null||M.events.connect(f?N1(f)?f.current:f:D.current),u&&M.setEvents({compute:(j,X)=>{const q=j[u+"X"],V=j[u+"Y"];X.pointer.set(q/X.size.width*2-1,-(V/X.size.height)*2+1),X.raycaster.setFromCamera(X.pointer,X.camera)}}),R==null||R(M)}}),G.current.render(P.createElement(z,null,P.createElement(Mf,{set:pe},P.createElement(P.Suspense,{fallback:P.createElement(W1,{set:re})},n)))))}),P.useEffect(()=>{const H=N.current;if(H)return()=>Nf(H)},[]);const B=f?"none":"auto";return P.createElement("div",qr({ref:D,style:{position:"relative",width:"100%",height:"100%",overflow:"hidden",pointerEvents:B,...i}},b),P.createElement("div",{ref:Q,style:{width:"100%",height:"100%"}},P.createElement("canvas",{ref:N,style:{display:"block"}},s)))}),_h=P.forwardRef(function(n,s){return P.createElement(Vf,null,P.createElement(Ch,qr({},n,{ref:s})))}),ko=new ct,Tl=new ct,Eh=new ct;function kh(o,n,s){const c=ko.setFromMatrixPosition(o.matrixWorld);c.project(n);const i=s.width/2,r=s.height/2;return[c.x*i+i,-(c.y*r)+r]}function Th(o,n){const s=ko.setFromMatrixPosition(o.matrixWorld),c=Tl.setFromMatrixPosition(n.matrixWorld),i=s.sub(c),r=n.getWorldDirection(Eh);return i.angleTo(r)>Math.PI/2}function Ph(o,n,s,c){const i=ko.setFromMatrixPosition(o.matrixWorld),r=i.clone();r.project(n),s.setFromCamera(r,n);const l=s.intersectObjects(c,!0);if(l.length){const f=l[0].distance;return i.distanceTo(s.ray.origin)Math.abs(o)<1e-10?0:o;function Zf(o,n,s=""){let c="matrix3d(";for(let i=0;i!==16;i++)c+=al(n[i]*o.elements[i])+(i!==15?",":")");return s+c}const Lh=(o=>n=>Zf(n,o))([1,-1,1,1,1,-1,1,1,1,-1,1,1,1,-1,1,1]),Uh=(o=>(n,s)=>Zf(n,o(s),"translate(-50%,-50%)"))(o=>[1/o,1/o,1/o,1,-1/o,-1/o,-1/o,-1,1/o,1/o,1/o,1,1,1,1,1]);function Rh(o){return o&&typeof o=="object"&&"current"in o}const Pm=P.forwardRef(({children:o,eps:n=.001,style:s,className:c,prepend:i,center:r,fullscreen:l,portal:f,distanceFactor:u,sprite:p=!1,transform:h=!1,occlude:g,onOcclude:v,castShadow:x,receiveShadow:w,material:k,geometry:_,zIndexRange:C=[16777271,0],calculatePosition:S=kh,as:T="div",wrapperClass:A,pointerEvents:R="auto",...b},O)=>{const{gl:z,camera:Q,scene:ee,size:N,raycaster:D,events:J,viewport:K}=Di(),[re]=P.useState(()=>document.createElement(T)),se=P.useRef(),pe=P.useRef(null),G=P.useRef(0),B=P.useRef([0,0]),H=P.useRef(null),M=P.useRef(null),j=(f==null?void 0:f.current)||J.connected||z.domElement.parentNode,X=P.useRef(null),q=P.useRef(!1),V=P.useMemo(()=>g&&g!=="blending"||Array.isArray(g)&&g.length&&Rh(g[0]),[g]);P.useLayoutEffect(()=>{const fe=z.domElement;g&&g==="blending"?(fe.style.zIndex=`${Math.floor(C[0]/2)}`,fe.style.position="absolute",fe.style.pointerEvents="none"):(fe.style.zIndex=null,fe.style.position=null,fe.style.pointerEvents=null)},[g]),P.useLayoutEffect(()=>{if(pe.current){const fe=se.current=pf(re);if(ee.updateMatrixWorld(),h)re.style.cssText="position:absolute;top:0;left:0;pointer-events:none;overflow:hidden;";else{const $=S(pe.current,Q,N);re.style.cssText=`position:absolute;top:0;left:0;transform:translate3d(${$[0]}px,${$[1]}px,0);transform-origin:0 0;`}return j&&(i?j.prepend(re):j.appendChild(re)),()=>{j&&j.removeChild(re),fe.unmount()}}},[j,h]),P.useLayoutEffect(()=>{A&&(re.className=A)},[A]);const ie=P.useMemo(()=>h?{position:"absolute",top:0,left:0,width:N.width,height:N.height,transformStyle:"preserve-3d",pointerEvents:"none"}:{position:"absolute",transform:r?"translate3d(-50%,-50%,0)":"none",...l&&{top:-N.height/2,left:-N.width/2,width:N.width,height:N.height},...s},[s,r,l,N,h]),Y=P.useMemo(()=>({position:"absolute",pointerEvents:R}),[R]);P.useLayoutEffect(()=>{if(q.current=!1,h){var fe;(fe=se.current)==null||fe.render(P.createElement("div",{ref:H,style:ie},P.createElement("div",{ref:M,style:Y},P.createElement("div",{ref:O,className:c,style:s,children:o}))))}else{var $;($=se.current)==null||$.render(P.createElement("div",{ref:O,style:ie,className:c,children:o}))}});const ne=P.useRef(!0);Eo(fe=>{if(pe.current){Q.updateMatrixWorld(),pe.current.updateWorldMatrix(!0,!1);const $=h?B.current:S(pe.current,Q,N);if(h||Math.abs(G.current-Q.zoom)>n||Math.abs(B.current[0]-$[0])>n||Math.abs(B.current[1]-$[1])>n){const te=Th(pe.current,Q);let Se=!1;V&&(g!=="blending"?Se=[ee]:Array.isArray(g)&&(Se=g.map(Me=>Me.current)));const Re=ne.current;if(Se){const Me=Ph(pe.current,Q,D,Se);ne.current=Me&&!te}else ne.current=!te;Re!==ne.current&&(v?v(!ne.current):re.style.display=ne.current?"block":"none");const ce=Math.floor(C[0]/2),Ce=g?V?[C[0],ce]:[ce-1,0]:C;if(re.style.zIndex=`${bh(pe.current,Q,Ce)}`,h){const[Me,ae]=[N.width/2,N.height/2],_e=Q.projectionMatrix.elements[5]*ae,{isOrthographicCamera:me,top:oe,left:be,bottom:xe,right:we}=Q,ge=Lh(Q.matrixWorldInverse),He=me?`scale(${_e})translate(${al(-(we+be)/2)}px,${al((oe+xe)/2)}px)`:`translateZ(${_e}px)`;let Oe=pe.current.matrixWorld;p&&(Oe=Q.matrixWorldInverse.clone().transpose().copyPosition(Oe).scale(pe.current.scale),Oe.elements[3]=Oe.elements[7]=Oe.elements[11]=0,Oe.elements[15]=1),re.style.width=N.width+"px",re.style.height=N.height+"px",re.style.perspective=me?"":`${_e}px`,H.current&&M.current&&(H.current.style.transform=`${He}${ge}translate(${Me}px,${ae}px)`,M.current.style.transform=Uh(Oe,1/((u||10)/400)))}else{const Me=u===void 0?1:Mh(pe.current,Q)*u;re.style.transform=`translate3d(${$[0]}px,${$[1]}px,0) scale(${Me})`}B.current=$,G.current=Q.zoom}}if(!V&&X.current&&!q.current)if(h){if(H.current){const $=H.current.children[0];if($!=null&&$.clientWidth&&$!=null&&$.clientHeight){const{isOrthographicCamera:te}=Q;if(te||_)b.scale&&(Array.isArray(b.scale)?b.scale instanceof ct?X.current.scale.copy(b.scale.clone().divideScalar(1)):X.current.scale.set(1/b.scale[0],1/b.scale[1],1/b.scale[2]):X.current.scale.setScalar(1/b.scale));else{const Se=(u||10)/400,Re=$.clientWidth*Se,ce=$.clientHeight*Se;X.current.scale.set(Re,ce,1)}q.current=!0}}}else{const $=re.children[0];if($!=null&&$.clientWidth&&$!=null&&$.clientHeight){const te=1/K.factor,Se=$.clientWidth*te,Re=$.clientHeight*te;X.current.scale.set(Se,Re,1),q.current=!0}X.current.lookAt(fe.camera.position)}});const ue=P.useMemo(()=>({vertexShader:h?void 0:` + `)+e.join(" > ")}return null},s.getPublicRootInstance=function(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return se(e.child.stateNode);default:return e.child.stateNode}},s.injectIntoDevTools=function(e){if(e={bundleType:e.bundleType,version:e.version,rendererPackageName:e.rendererPackageName,rendererConfig:e.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:f.ReactCurrentDispatcher,findHostInstanceByFiber:Kd,findFiberByHostInstance:e.findFiberByHostInstance||Jd,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.0.0-fc46dba67-20220329"},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")e=!1;else{var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)e=!0;else{try{Rr=t.inject(e),vn=t}catch{}e=!!t.checkDCE}}return e},s.isAlreadyRendering=function(){return!1},s.observeVisibleRects=function(e,t,a,d){if(!me)throw Error(l(363));e=ya(e,t);var m=Fe(e,a,d).disconnect;return{disconnect:function(){m()}}},s.registerMutableSourceForHydration=function(e,t){var a=t._getVersion;a=a(t._source),e.mutableSourceEagerHydrationData==null?e.mutableSourceEagerHydrationData=[t,a]:e.mutableSourceEagerHydrationData.push(t,a)},s.runWithPriority=function(e,t){var a=We;try{return We=e,t()}finally{We=a}},s.shouldError=function(){return null},s.shouldSuspend=function(){return!1},s.updateContainer=function(e,t,a,d){var m=t.current,y=tn(),E=Er(m);return a=nc(a),t.context===null?t.context=a:t.pendingContext=a,t=cr(y,E),t.payload={element:e},d=d===void 0?null:d,d!==null&&(t.callback=d),wr(m,t),e=Ln(m,E,y),e!==null&&Oo(e,m,E),E},s};Sf.exports=R1;var A1=Sf.exports;const D1=hf(A1),I1=o=>typeof o=="object"&&typeof o.then=="function",Xr=[];function _f(o,n,s=(c,i)=>c===i){if(o===n)return!0;if(!o||!n)return!1;const c=o.length;if(n.length!==c)return!1;for(let i=0;i0&&(r.timeout&&clearTimeout(r.timeout),r.timeout=setTimeout(r.remove,c.lifespan)),r.response;if(!s)throw r.promise}const i={keys:n,equal:c.equal,remove:()=>{const r=Xr.indexOf(i);r!==-1&&Xr.splice(r,1)},promise:(I1(o)?o:o(...n)).then(r=>{i.response=r,c.lifespan&&c.lifespan>0&&(i.timeout=setTimeout(i.remove,c.lifespan))}).catch(r=>i.error=r)};if(Xr.push(i),!s)throw i.promise}const F1=(o,n,s)=>Ef(o,n,!1,s),O1=(o,n,s)=>void Ef(o,n,!0,s),j1=o=>{if(o===void 0||o.length===0)Xr.splice(0,Xr.length);else{const n=Xr.find(s=>_f(o,s.keys,s.equal));n&&n.remove()}},_l={},z1=o=>void Object.assign(_l,o);function B1(o,n){function s(h,{args:g=[],attach:v,...x},w){let k=`${h[0].toUpperCase()}${h.slice(1)}`,_;if(h==="primitive"){if(x.object===void 0)throw new Error("R3F: Primitives without 'object' are invalid!");const C=x.object;_=Ti(C,{type:h,root:w,attach:v,primitive:!0})}else{const C=_l[k];if(!C)throw new Error(`R3F: ${k} is not part of the THREE namespace! Did you forget to extend? See: https://docs.pmnd.rs/react-three-fiber/api/objects#using-3rd-party-objects-declaratively`);if(!Array.isArray(g))throw new Error("R3F: The args prop must be an array!");_=Ti(new C(...g),{type:h,root:w,attach:v,memoizedProps:{args:g}})}return _.__r3f.attach===void 0&&(_ instanceof mf?_.__r3f.attach="geometry":_ instanceof i1&&(_.__r3f.attach="material")),k!=="inject"&&ja(_,x),_}function c(h,g){let v=!1;if(g){var x,w;(x=g.__r3f)!=null&&x.attach?Oa(h,g,g.__r3f.attach):g.isObject3D&&h.isObject3D&&(h.add(g),v=!0),v||(w=h.__r3f)==null||w.objects.push(g),g.__r3f||Ti(g,{}),g.__r3f.parent=h,ol(g),Pi(g)}}function i(h,g,v){let x=!1;if(g){var w,k;if((w=g.__r3f)!=null&&w.attach)Oa(h,g,g.__r3f.attach);else if(g.isObject3D&&h.isObject3D){g.parent=h,g.dispatchEvent({type:"added"});const _=h.children.filter(S=>S!==g),C=_.indexOf(v);h.children=[..._.slice(0,C),g,..._.slice(C)],x=!0}x||(k=h.__r3f)==null||k.objects.push(g),g.__r3f||Ti(g,{}),g.__r3f.parent=h,ol(g),Pi(g)}}function r(h,g,v=!1){h&&[...h].forEach(x=>l(g,x,v))}function l(h,g,v){if(g){var x,w,k;if(g.__r3f&&(g.__r3f.parent=null),(x=h.__r3f)!=null&&x.objects&&(h.__r3f.objects=h.__r3f.objects.filter(A=>A!==g)),(w=g.__r3f)!=null&&w.attach)hc(h,g,g.__r3f.attach);else if(g.isObject3D&&h.isObject3D){var _;h.remove(g),(_=g.__r3f)!=null&&_.root&&Y1(g.__r3f.root,g)}const S=(k=g.__r3f)==null?void 0:k.primitive,T=!S&&(v===void 0?g.dispose!==null:v);if(!S){var C;r((C=g.__r3f)==null?void 0:C.objects,g,T),r(g.children,g,T)}if(delete g.__r3f,T&&g.dispose&&g.type!=="Scene"){const A=()=>{try{g.dispose()}catch{}};typeof IS_REACT_ACT_ENVIRONMENT>"u"?rl.unstable_scheduleCallback(rl.unstable_IdlePriority,A):A()}Pi(h)}}function f(h,g,v,x){var w;const k=(w=h.__r3f)==null?void 0:w.parent;if(!k)return;const _=s(g,v,h.__r3f.root);if(h.children){for(const C of h.children)C.__r3f&&c(_,C);h.children=h.children.filter(C=>!C.__r3f)}h.__r3f.objects.forEach(C=>c(_,C)),h.__r3f.objects=[],h.__r3f.autoRemovedBeforeAppend||l(k,h),_.parent&&(_.__r3f.autoRemovedBeforeAppend=!0),c(k,_),_.raycast&&_.__r3f.eventCount&&_.__r3f.root.getState().internal.interaction.push(_),[x,x.alternate].forEach(C=>{C!==null&&(C.stateNode=_,C.ref&&(typeof C.ref=="function"?C.ref(_):C.ref.current=_))})}const u=()=>console.warn("Text is not allowed in the R3F tree! This could be stray whitespace or characters.");return{reconciler:D1({createInstance:s,removeChild:l,appendChild:c,appendInitialChild:c,insertBefore:i,supportsMutation:!0,isPrimaryRenderer:!1,supportsPersistence:!1,supportsHydration:!1,noTimeout:-1,appendChildToContainer:(h,g)=>{if(!g)return;const v=h.getState().scene;v.__r3f&&(v.__r3f.root=h,c(v,g))},removeChildFromContainer:(h,g)=>{g&&l(h.getState().scene,g)},insertInContainerBefore:(h,g,v)=>{if(!g||!v)return;const x=h.getState().scene;x.__r3f&&i(x,g,v)},getRootHostContext:()=>null,getChildHostContext:h=>h,finalizeInitialChildren(h){var g;return!!((g=h==null?void 0:h.__r3f)!=null?g:{}).handlers},prepareUpdate(h,g,v,x){var w;if(((w=h==null?void 0:h.__r3f)!=null?w:{}).primitive&&x.object&&x.object!==h)return[!0];{const{args:_=[],children:C,...S}=x,{args:T=[],children:A,...R}=v;if(!Array.isArray(_))throw new Error("R3F: the args prop must be an array!");if(_.some((F,z)=>F!==T[z]))return[!0];const b=Uf(h,S,R,!0);return b.changes.length?[!1,b]:null}},commitUpdate(h,[g,v],x,w,k,_){g?f(h,x,k,_):ja(h,v)},commitMount(h,g,v,x){var w;const k=(w=h.__r3f)!=null?w:{};h.raycast&&k.handlers&&k.eventCount&&h.__r3f.root.getState().internal.interaction.push(h)},getPublicInstance:h=>h,prepareForCommit:()=>null,preparePortalMount:h=>Ti(h.getState().scene),resetAfterCommit:()=>{},shouldSetTextContent:()=>!1,clearContainer:()=>!1,hideInstance(h){var g;const{attach:v,parent:x}=(g=h.__r3f)!=null?g:{};v&&x&&hc(x,h,v),h.isObject3D&&(h.visible=!1),Pi(h)},unhideInstance(h,g){var v;const{attach:x,parent:w}=(v=h.__r3f)!=null?v:{};x&&w&&Oa(w,h,x),(h.isObject3D&&g.visible==null||g.visible)&&(h.visible=!0),Pi(h)},createTextInstance:u,hideTextInstance:u,unhideTextInstance:u,getCurrentEventPriority:()=>n?n():bi.DefaultEventPriority,beforeActiveInstanceBlur:()=>{},afterActiveInstanceBlur:()=>{},detachDeletedInstance:()=>{},now:typeof performance<"u"&&it.fun(performance.now)?performance.now:it.fun(Date.now)?Date.now:()=>0,scheduleTimeout:it.fun(setTimeout)?setTimeout:void 0,cancelTimeout:it.fun(clearTimeout)?clearTimeout:void 0}),applyProps:ja}}var uc,cc;const Fa=o=>"colorSpace"in o||"outputColorSpace"in o,kf=()=>{var o;return(o=_l.ColorManagement)!=null?o:null},Tf=o=>o&&o.isOrthographicCamera,N1=o=>o&&o.hasOwnProperty("current"),_o=typeof window<"u"&&((uc=window.document)!=null&&uc.createElement||((cc=window.navigator)==null?void 0:cc.product)==="ReactNative")?P.useLayoutEffect:P.useEffect;function Pf(o){const n=P.useRef(o);return _o(()=>void(n.current=o),[o]),n}function W1({set:o}){return _o(()=>(o(new Promise(()=>null)),()=>o(!1)),[o]),null}class Mf extends P.Component{constructor(...n){super(...n),this.state={error:!1}}componentDidCatch(n){this.props.set(n)}render(){return this.state.error?null:this.props.children}}Mf.getDerivedStateFromError=()=>({error:!0});const bf="__default",fc=new Map,G1=o=>o&&!!o.memoized&&!!o.changes;function Lf(o){var n;const s=typeof window<"u"?(n=window.devicePixelRatio)!=null?n:2:1;return Array.isArray(o)?Math.min(Math.max(o[0],s),o[1]):o}const ho=o=>{var n;return(n=o.__r3f)==null?void 0:n.root.getState()},it={obj:o=>o===Object(o)&&!it.arr(o)&&typeof o!="function",fun:o=>typeof o=="function",str:o=>typeof o=="string",num:o=>typeof o=="number",boo:o=>typeof o=="boolean",und:o=>o===void 0,arr:o=>Array.isArray(o),equ(o,n,{arrays:s="shallow",objects:c="reference",strict:i=!0}={}){if(typeof o!=typeof n||!!o!=!!n)return!1;if(it.str(o)||it.num(o))return o===n;const r=it.obj(o);if(r&&c==="reference")return o===n;const l=it.arr(o);if(l&&s==="reference")return o===n;if((l||r)&&o===n)return!0;let f;for(f in o)if(!(f in n))return!1;if(r&&s==="shallow"&&c==="shallow"){for(f in i?n:o)if(!it.equ(o[f],n[f],{strict:i,objects:"reference"}))return!1}else for(f in i?n:o)if(o[f]!==n[f])return!1;if(it.und(f)){if(l&&o.length===0&&n.length===0||r&&Object.keys(o).length===0&&Object.keys(n).length===0)return!0;if(o!==n)return!1}return!0}};function H1(o){const n={nodes:{},materials:{}};return o&&o.traverse(s=>{s.name&&(n.nodes[s.name]=s),s.material&&!n.materials[s.material.name]&&(n.materials[s.material.name]=s.material)}),n}function V1(o){o.dispose&&o.type!=="Scene"&&o.dispose();for(const n in o)n.dispose==null||n.dispose(),delete o[n]}function Ti(o,n){const s=o;return s.__r3f={type:"",root:null,previousAttach:null,memoizedProps:{},eventCount:0,handlers:{},objects:[],parent:null,...n},o}function il(o,n){let s=o;if(n.includes("-")){const c=n.split("-"),i=c.pop();return s=c.reduce((r,l)=>r[l],o),{target:s,key:i}}else return{target:s,key:n}}const dc=/-\d+$/;function Oa(o,n,s){if(it.str(s)){if(dc.test(s)){const r=s.replace(dc,""),{target:l,key:f}=il(o,r);Array.isArray(l[f])||(l[f]=[])}const{target:c,key:i}=il(o,s);n.__r3f.previousAttach=c[i],c[i]=n}else n.__r3f.previousAttach=s(o,n)}function hc(o,n,s){var c,i;if(it.str(s)){const{target:r,key:l}=il(o,s),f=n.__r3f.previousAttach;f===void 0?delete r[l]:r[l]=f}else(c=n.__r3f)==null||c.previousAttach==null||c.previousAttach(o,n);(i=n.__r3f)==null||delete i.previousAttach}function Uf(o,{children:n,key:s,ref:c,...i},{children:r,key:l,ref:f,...u}={},p=!1){var h;const g=(h=o==null?void 0:o.__r3f)!=null?h:{},v=Object.entries(i),x=[];if(p){const k=Object.keys(u);for(let _=0;_{var C;if((C=o.__r3f)!=null&&C.primitive&&k==="object"||it.equ(_,u[k]))return;if(/^on(Pointer|Click|DoubleClick|ContextMenu|Wheel)/.test(k))return x.push([k,_,!0,[]]);let S=[];k.includes("-")&&(S=k.split("-")),x.push([k,_,!1,S]);for(const T in i){const A=i[T];T.startsWith(`${k}-`)&&x.push([T,A,!1,T.split("-")])}});const w={...i};return g.memoizedProps&&g.memoizedProps.args&&(w.args=g.memoizedProps.args),g.memoizedProps&&g.memoizedProps.attach&&(w.attach=g.memoizedProps.attach),{memoized:w,changes:x}}const Z1=typeof process<"u"&&!1;function ja(o,n){var s,c,i;const r=(s=o.__r3f)!=null?s:{},l=r.root,f=(c=l==null||l.getState==null?void 0:l.getState())!=null?c:{},{memoized:u,changes:p}=G1(n)?n:Uf(o,n),h=r.eventCount;o.__r3f&&(o.__r3f.memoizedProps=u);for(let v=0;vT[A],o),!(S&&S.set))){const[T,...A]=_.reverse();C=A.reverse().reduce((R,b)=>R[b],o),x=T}if(w===bf+"remove")if(C.constructor){let T=fc.get(C.constructor);T||(T=new C.constructor,fc.set(C.constructor,T)),w=T[x]}else w=0;if(k)w?r.handlers[x]=w:delete r.handlers[x],r.eventCount=Object.keys(r.handlers).length;else if(S&&S.set&&(S.copy||S instanceof Aa)){if(Array.isArray(w))S.fromArray?S.fromArray(w):S.set(...w);else if(S.copy&&w&&w.constructor&&(Z1?S.constructor.name===w.constructor.name:S.constructor===w.constructor))S.copy(w);else if(w!==void 0){const T=S instanceof wo;!T&&S.setScalar?S.setScalar(w):S instanceof Aa&&w instanceof Aa?S.mask=w.mask:S.set(w),!kf()&&!f.linear&&T&&S.convertSRGBToLinear()}}else if(C[x]=w,C[x]instanceof vl&&C[x].format===n1&&C[x].type===r1){const T=C[x];Fa(T)&&Fa(f.gl)?T.colorSpace=f.gl.outputColorSpace:T.encoding=f.gl.outputEncoding}Pi(o)}if(r.parent&&f.internal&&o.raycast&&h!==r.eventCount){const v=f.internal.interaction.indexOf(o);v>-1&&f.internal.interaction.splice(v,1),r.eventCount&&f.internal.interaction.push(o)}return!(p.length===1&&p[0][0]==="onUpdate")&&p.length&&(i=o.__r3f)!=null&&i.parent&&ol(o),o}function Pi(o){var n,s;const c=(n=o.__r3f)==null||(s=n.root)==null||s.getState==null?void 0:s.getState();c&&c.internal.frames===0&&c.invalidate()}function ol(o){o.onUpdate==null||o.onUpdate(o)}function X1(o,n){o.manual||(Tf(o)?(o.left=n.width/-2,o.right=n.width/2,o.top=n.height/2,o.bottom=n.height/-2):o.aspect=n.width/n.height,o.updateProjectionMatrix(),o.updateMatrixWorld())}function ws(o){return(o.eventObject||o.object).uuid+"/"+o.index+o.instanceId}function Q1(){var o;const n=typeof self<"u"&&self||typeof window<"u"&&window;if(!n)return bi.DefaultEventPriority;switch((o=n.event)==null?void 0:o.type){case"click":case"contextmenu":case"dblclick":case"pointercancel":case"pointerdown":case"pointerup":return bi.DiscreteEventPriority;case"pointermove":case"pointerout":case"pointerover":case"pointerenter":case"pointerleave":case"wheel":return bi.ContinuousEventPriority;default:return bi.DefaultEventPriority}}function Rf(o,n,s,c){const i=s.get(n);i&&(s.delete(n),s.size===0&&(o.delete(c),i.target.releasePointerCapture(c)))}function Y1(o,n){const{internal:s}=o.getState();s.interaction=s.interaction.filter(c=>c!==n),s.initialHits=s.initialHits.filter(c=>c!==n),s.hovered.forEach((c,i)=>{(c.eventObject===n||c.object===n)&&s.hovered.delete(i)}),s.capturedMap.forEach((c,i)=>{Rf(s.capturedMap,n,c,i)})}function K1(o){function n(u){const{internal:p}=o.getState(),h=u.offsetX-p.initialClick[0],g=u.offsetY-p.initialClick[1];return Math.round(Math.sqrt(h*h+g*g))}function s(u){return u.filter(p=>["Move","Over","Enter","Out","Leave"].some(h=>{var g;return(g=p.__r3f)==null?void 0:g.handlers["onPointer"+h]}))}function c(u,p){const h=o.getState(),g=new Set,v=[],x=p?p(h.internal.interaction):h.internal.interaction;for(let C=0;C{const T=ho(C.object),A=ho(S.object);return!T||!A?C.distance-S.distance:A.events.priority-T.events.priority||C.distance-S.distance}).filter(C=>{const S=ws(C);return g.has(S)?!1:(g.add(S),!0)});h.events.filter&&(k=h.events.filter(k,h));for(const C of k){let S=C.object;for(;S;){var _;(_=S.__r3f)!=null&&_.eventCount&&v.push({...C,eventObject:S}),S=S.parent}}if("pointerId"in u&&h.internal.capturedMap.has(u.pointerId))for(let C of h.internal.capturedMap.get(u.pointerId).values())g.has(ws(C.intersection))||v.push(C.intersection);return v}function i(u,p,h,g){const v=o.getState();if(u.length){const x={stopped:!1};for(const w of u){const k=ho(w.object)||v,{raycaster:_,pointer:C,camera:S,internal:T}=k,A=new ct(C.x,C.y,0).unproject(S),R=ee=>{var N,I;return(N=(I=T.capturedMap.get(ee))==null?void 0:I.has(w.eventObject))!=null?N:!1},b=ee=>{const N={intersection:w,target:p.target};T.capturedMap.has(ee)?T.capturedMap.get(ee).set(w.eventObject,N):T.capturedMap.set(ee,new Map([[w.eventObject,N]])),p.target.setPointerCapture(ee)},F=ee=>{const N=T.capturedMap.get(ee);N&&Rf(T.capturedMap,w.eventObject,N,ee)};let z={};for(let ee in p){let N=p[ee];typeof N!="function"&&(z[ee]=N)}let Q={...w,...z,pointer:C,intersections:u,stopped:x.stopped,delta:h,unprojectedPoint:A,ray:_.ray,camera:S,stopPropagation(){const ee="pointerId"in p&&T.capturedMap.get(p.pointerId);if((!ee||ee.has(w.eventObject))&&(Q.stopped=x.stopped=!0,T.hovered.size&&Array.from(T.hovered.values()).find(N=>N.eventObject===w.eventObject))){const N=u.slice(0,u.indexOf(w));r([...N,w])}},target:{hasPointerCapture:R,setPointerCapture:b,releasePointerCapture:F},currentTarget:{hasPointerCapture:R,setPointerCapture:b,releasePointerCapture:F},nativeEvent:p};if(g(Q),x.stopped===!0)break}}return u}function r(u){const{internal:p}=o.getState();for(const h of p.hovered.values())if(!u.length||!u.find(g=>g.object===h.object&&g.index===h.index&&g.instanceId===h.instanceId)){const v=h.eventObject.__r3f,x=v==null?void 0:v.handlers;if(p.hovered.delete(ws(h)),v!=null&&v.eventCount){const w={...h,intersections:u};x.onPointerOut==null||x.onPointerOut(w),x.onPointerLeave==null||x.onPointerLeave(w)}}}function l(u,p){for(let h=0;hr([]);case"onLostPointerCapture":return p=>{const{internal:h}=o.getState();"pointerId"in p&&h.capturedMap.has(p.pointerId)&&requestAnimationFrame(()=>{h.capturedMap.has(p.pointerId)&&(h.capturedMap.delete(p.pointerId),r([]))})}}return function(h){const{onPointerMissed:g,internal:v}=o.getState();v.lastEvent.current=h;const x=u==="onPointerMove",w=u==="onClick"||u==="onContextMenu"||u==="onDoubleClick",_=c(h,x?s:void 0),C=w?n(h):0;u==="onPointerDown"&&(v.initialClick=[h.offsetX,h.offsetY],v.initialHits=_.map(T=>T.eventObject)),w&&!_.length&&C<=2&&(l(h,v.interaction),g&&g(h)),x&&r(_);function S(T){const A=T.eventObject,R=A.__r3f,b=R==null?void 0:R.handlers;if(R!=null&&R.eventCount)if(x){if(b.onPointerOver||b.onPointerEnter||b.onPointerOut||b.onPointerLeave){const F=ws(T),z=v.hovered.get(F);z?z.stopped&&T.stopPropagation():(v.hovered.set(F,T),b.onPointerOver==null||b.onPointerOver(T),b.onPointerEnter==null||b.onPointerEnter(T))}b.onPointerMove==null||b.onPointerMove(T)}else{const F=b[u];F?(!w||v.initialHits.includes(A))&&(l(h,v.interaction.filter(z=>!v.initialHits.includes(z))),F(T)):w&&v.initialHits.includes(A)&&l(h,v.interaction.filter(z=>!v.initialHits.includes(z)))}}i(_,h,C,S)}}return{handlePointer:f}}const Af=o=>!!(o!=null&&o.render),Df=P.createContext(null),J1=(o,n)=>{const s=U1((f,u)=>{const p=new ct,h=new ct,g=new ct;function v(C=u().camera,S=h,T=u().size){const{width:A,height:R,top:b,left:F}=T,z=A/R;S instanceof ct?g.copy(S):g.set(...S);const Q=C.getWorldPosition(p).distanceTo(g);if(Tf(C))return{width:A/C.zoom,height:R/C.zoom,top:b,left:F,factor:1,distance:Q,aspect:z};{const ee=C.fov*Math.PI/180,N=2*Math.tan(ee/2)*Q,I=N*(A/R);return{width:I,height:N,top:b,left:F,factor:A/I,distance:Q,aspect:z}}}let x;const w=C=>f(S=>({performance:{...S.performance,current:C}})),k=new $r;return{set:f,get:u,gl:null,camera:null,raycaster:null,events:{priority:1,enabled:!0,connected:!1},xr:null,scene:null,invalidate:(C=1)=>o(u(),C),advance:(C,S)=>n(C,S,u()),legacy:!1,linear:!1,flat:!1,controls:null,clock:new h1,pointer:k,mouse:k,frameloop:"always",onPointerMissed:void 0,performance:{current:1,min:.5,max:1,debounce:200,regress:()=>{const C=u();x&&clearTimeout(x),C.performance.current!==C.performance.min&&w(C.performance.min),x=setTimeout(()=>w(u().performance.max),C.performance.debounce)}},size:{width:0,height:0,top:0,left:0,updateStyle:!1},viewport:{initialDpr:0,dpr:0,width:0,height:0,top:0,left:0,aspect:0,distance:0,factor:0,getCurrentViewport:v},setEvents:C=>f(S=>({...S,events:{...S.events,...C}})),setSize:(C,S,T,A,R)=>{const b=u().camera,F={width:C,height:S,top:A||0,left:R||0,updateStyle:T};f(z=>({size:F,viewport:{...z.viewport,...v(b,h,F)}}))},setDpr:C=>f(S=>{const T=Lf(C);return{viewport:{...S.viewport,dpr:T,initialDpr:S.viewport.initialDpr||T}}}),setFrameloop:(C="always")=>{const S=u().clock;S.stop(),S.elapsedTime=0,C!=="never"&&(S.start(),S.elapsedTime=0),f(()=>({frameloop:C}))},previousRoot:void 0,internal:{active:!1,priority:0,frames:0,lastEvent:P.createRef(),interaction:[],hovered:new Map,subscribers:[],initialClick:[0,0],initialHits:[],capturedMap:new Map,subscribe:(C,S,T)=>{const A=u().internal;return A.priority=A.priority+(S>0?1:0),A.subscribers.push({ref:C,priority:S,store:T}),A.subscribers=A.subscribers.sort((R,b)=>R.priority-b.priority),()=>{const R=u().internal;R!=null&&R.subscribers&&(R.priority=R.priority-(S>0?1:0),R.subscribers=R.subscribers.filter(b=>b.ref!==C))}}}}}),c=s.getState();let i=c.size,r=c.viewport.dpr,l=c.camera;return s.subscribe(()=>{const{camera:f,size:u,viewport:p,gl:h,set:g}=s.getState();if(u.width!==i.width||u.height!==i.height||p.dpr!==r){var v;i=u,r=p.dpr,X1(f,u),h.setPixelRatio(p.dpr);const x=(v=u.updateStyle)!=null?v:typeof HTMLCanvasElement<"u"&&h.domElement instanceof HTMLCanvasElement;h.setSize(u.width,u.height,x)}f!==l&&(l=f,g(x=>({viewport:{...x.viewport,...x.viewport.getCurrentViewport(f)}})))}),s.subscribe(f=>o(f)),s};function El(o,n){const s={callback:o};return n.add(s),()=>void n.delete(s)}let Cs,If=new Set,Ff=new Set,Of=new Set;const q1=o=>El(o,If),$1=o=>El(o,Ff),eh=o=>El(o,Of);function za(o,n){if(o.size)for(const{callback:s}of o.values())s(n)}function po(o,n){switch(o){case"before":return za(If,n);case"after":return za(Ff,n);case"tail":return za(Of,n)}}let Ba,Na;function Wa(o,n,s){let c=n.clock.getDelta();for(n.frameloop==="never"&&typeof o=="number"&&(c=o-n.clock.elapsedTime,n.clock.oldTime=n.clock.elapsedTime,n.clock.elapsedTime=o),Ba=n.internal.subscribers,Cs=0;Cs0)&&!((p=i.gl.xr)!=null&&p.isPresenting)&&(s+=Wa(u,i))}if(po("after",u),s===0)return po("tail",u),n=!1,cancelAnimationFrame(c)}function l(u,p=1){var h;if(!u)return o.forEach(g=>l(g.store.getState()),p);(h=u.gl.xr)!=null&&h.isPresenting||!u.internal.active||u.frameloop==="never"||(u.internal.frames=Math.min(60,u.internal.frames+p),n||(n=!0,requestAnimationFrame(r)))}function f(u,p=!0,h,g){if(p&&po("before",u),h)Wa(u,h,g);else for(const v of o.values())Wa(u,v.store.getState());p&&po("after",u)}return{loop:r,invalidate:l,advance:f}}function jf(){const o=P.useContext(Df);if(!o)throw new Error("R3F: Hooks can only be used within the Canvas component!");return o}function Ii(o=s=>s,n){return jf()(o,n)}function Eo(o,n=0){const s=jf(),c=s.getState().internal.subscribe,i=Pf(o);return _o(()=>c(i,n,s),[n,c,s]),null}const pc=new WeakMap;function zf(o,n){return function(s,...c){let i=pc.get(s);return i||(i=new s,pc.set(s,i)),o&&o(i),Promise.all(c.map(r=>new Promise((l,f)=>i.load(r,u=>{u.scene&&Object.assign(u,H1(u.scene)),l(u)},n,u=>f(new Error(`Could not load ${r}: ${u==null?void 0:u.message}`)))))).finally(()=>i.dispose==null?void 0:i.dispose())}}function Bf(o,n,s,c){const i=Array.isArray(n)?n:[n],r=F1(zf(s,c),[o,...i],{equal:it.equ});return Array.isArray(n)?r:r[0]}Bf.preload=function(o,n,s){const c=Array.isArray(n)?n:[n];return O1(zf(s),[o,...c])};Bf.clear=function(o,n){const s=Array.isArray(n)?n:[n];return j1([o,...s])};const Di=new Map,{invalidate:mc,advance:gc}=th(Di),{reconciler:As,applyProps:wi}=B1(Di,Q1),Ci={objects:"shallow",strict:!1},nh=(o,n)=>{const s=typeof o=="function"?o(n):o;return Af(s)?s:new l1({powerPreference:"high-performance",canvas:n,antialias:!0,alpha:!0,...o})};function rh(o,n){const s=typeof HTMLCanvasElement<"u"&&o instanceof HTMLCanvasElement;if(n){const{width:c,height:i,top:r,left:l,updateStyle:f=s}=n;return{width:c,height:i,top:r,left:l,updateStyle:f}}else if(typeof HTMLCanvasElement<"u"&&o instanceof HTMLCanvasElement&&o.parentElement){const{width:c,height:i,top:r,left:l}=o.parentElement.getBoundingClientRect();return{width:c,height:i,top:r,left:l,updateStyle:s}}else if(typeof OffscreenCanvas<"u"&&o instanceof OffscreenCanvas)return{width:o.width,height:o.height,top:0,left:0,updateStyle:s};return{width:0,height:0,top:0,left:0}}function ih(o){const n=Di.get(o),s=n==null?void 0:n.fiber,c=n==null?void 0:n.store;n&&console.warn("R3F.createRoot should only be called once!");const i=typeof reportError=="function"?reportError:console.error,r=c||J1(mc,gc),l=s||As.createContainer(r,bi.ConcurrentRoot,null,!1,null,"",i,null);n||Di.set(o,{fiber:l,store:r});let f,u=!1,p;return{configure(h={}){let{gl:g,size:v,scene:x,events:w,onCreated:k,shadows:_=!1,linear:C=!1,flat:S=!1,legacy:T=!1,orthographic:A=!1,frameloop:R="always",dpr:b=[1,2],performance:F,raycaster:z,camera:Q,onPointerMissed:ee}=h,N=r.getState(),I=N.gl;N.gl||N.set({gl:I=nh(g,o)});let J=N.raycaster;J||N.set({raycaster:J=new o1});const{params:K,...re}=z||{};if(it.equ(re,J,Ci)||wi(J,{...re}),it.equ(K,J.params,Ci)||wi(J,{params:{...J.params,...K}}),!N.camera||N.camera===p&&!it.equ(p,Q,Ci)){p=Q;const j=Q instanceof u1,X=j?Q:A?new yl(0,0,0,0,.1,1e3):new xl(75,0,.1,1e3);j||(X.position.z=5,Q&&wi(X,Q),!N.camera&&!(Q!=null&&Q.rotation)&&X.lookAt(0,0,0)),N.set({camera:X}),J.camera=X}if(!N.scene){let j;x instanceof Rs?j=x:(j=new Rs,x&&wi(j,x)),N.set({scene:Ti(j)})}if(!N.xr){var se;const j=(V,ie)=>{const Y=r.getState();Y.frameloop!=="never"&&gc(V,!0,Y,ie)},X=()=>{const V=r.getState();V.gl.xr.enabled=V.gl.xr.isPresenting,V.gl.xr.setAnimationLoop(V.gl.xr.isPresenting?j:null),V.gl.xr.isPresenting||mc(V)},q={connect(){const V=r.getState().gl;V.xr.addEventListener("sessionstart",X),V.xr.addEventListener("sessionend",X)},disconnect(){const V=r.getState().gl;V.xr.removeEventListener("sessionstart",X),V.xr.removeEventListener("sessionend",X)}};typeof((se=I.xr)==null?void 0:se.addEventListener)=="function"&&q.connect(),N.set({xr:q})}if(I.shadowMap){const j=I.shadowMap.enabled,X=I.shadowMap.type;if(I.shadowMap.enabled=!!_,it.boo(_))I.shadowMap.type=Da;else if(it.str(_)){var pe;const q={basic:c1,percentage:f1,soft:Da,variance:d1};I.shadowMap.type=(pe=q[_])!=null?pe:Da}else it.obj(_)&&Object.assign(I.shadowMap,_);(j!==I.shadowMap.enabled||X!==I.shadowMap.type)&&(I.shadowMap.needsUpdate=!0)}const G=kf();G&&("enabled"in G?G.enabled=!T:"legacyMode"in G&&(G.legacyMode=T)),wi(I,{outputEncoding:C?3e3:3001,toneMapping:S?s1:a1}),N.legacy!==T&&N.set(()=>({legacy:T})),N.linear!==C&&N.set(()=>({linear:C})),N.flat!==S&&N.set(()=>({flat:S})),g&&!it.fun(g)&&!Af(g)&&!it.equ(g,I,Ci)&&wi(I,g),w&&!N.events.handlers&&N.set({events:w(r)});const M=rh(o,v);return it.equ(M,N.size,Ci)||N.setSize(M.width,M.height,M.updateStyle,M.top,M.left),b&&N.viewport.dpr!==Lf(b)&&N.setDpr(b),N.frameloop!==R&&N.setFrameloop(R),N.onPointerMissed||N.set({onPointerMissed:ee}),F&&!it.equ(F,N.performance,Ci)&&N.set(j=>({performance:{...j.performance,...F}})),f=k,u=!0,this},render(h){return u||this.configure(),As.updateContainer(P.createElement(oh,{store:r,children:h,onCreated:f,rootElement:o}),l,null,()=>{}),r},unmount(){Nf(o)}}}function oh({store:o,children:n,onCreated:s,rootElement:c}){return _o(()=>{const i=o.getState();i.set(r=>({internal:{...r.internal,active:!0}})),s&&s(i),o.getState().events.connected||i.events.connect==null||i.events.connect(c)},[]),P.createElement(Df.Provider,{value:o},n)}function Nf(o,n){const s=Di.get(o),c=s==null?void 0:s.fiber;if(c){const i=s==null?void 0:s.store.getState();i&&(i.internal.active=!1),As.updateContainer(null,c,null,()=>{i&&setTimeout(()=>{try{var r,l,f,u;i.events.disconnect==null||i.events.disconnect(),(r=i.gl)==null||(l=r.renderLists)==null||l.dispose==null||l.dispose(),(f=i.gl)==null||f.forceContextLoss==null||f.forceContextLoss(),(u=i.gl)!=null&&u.xr&&i.xr.disconnect(),V1(i),Di.delete(o),n&&n(o)}catch{}},500)})}}As.injectIntoDevTools({bundleType:0,rendererPackageName:"@react-three/fiber",version:P.version});function sl(o,n,s){var c,i,r,l,f;n==null&&(n=100);function u(){var h=Date.now()-l;h=0?c=setTimeout(u,n-h):(c=null,s||(f=o.apply(r,i),r=i=null))}var p=function(){r=this,i=arguments,l=Date.now();var h=s&&!c;return c||(c=setTimeout(u,n)),h&&(f=o.apply(r,i),r=i=null),f};return p.clear=function(){c&&(clearTimeout(c),c=null)},p.flush=function(){c&&(f=o.apply(r,i),r=i=null,clearTimeout(c),c=null)},p}sl.debounce=sl;var sh=sl;const vc=hf(sh);function ah(o){let{debounce:n,scroll:s,polyfill:c,offsetSize:i}=o===void 0?{debounce:0,scroll:!1,offsetSize:!1}:o;const r=c||(typeof window>"u"?class{}:window.ResizeObserver);if(!r)throw new Error("This browser does not support ResizeObserver out of the box. See: https://github.com/react-spring/react-use-measure/#resize-observer-polyfills");const[l,f]=P.useState({left:0,top:0,width:0,height:0,bottom:0,right:0,x:0,y:0}),u=P.useRef({element:null,scrollContainers:null,resizeObserver:null,lastBounds:l}),p=n?typeof n=="number"?n:n.scroll:null,h=n?typeof n=="number"?n:n.resize:null,g=P.useRef(!1);P.useEffect(()=>(g.current=!0,()=>void(g.current=!1)));const[v,x,w]=P.useMemo(()=>{const S=()=>{if(!u.current.element)return;const{left:T,top:A,width:R,height:b,bottom:F,right:z,x:Q,y:ee}=u.current.element.getBoundingClientRect(),N={left:T,top:A,width:R,height:b,bottom:F,right:z,x:Q,y:ee};u.current.element instanceof HTMLElement&&i&&(N.height=u.current.element.offsetHeight,N.width=u.current.element.offsetWidth),Object.freeze(N),g.current&&!fh(u.current.lastBounds,N)&&f(u.current.lastBounds=N)};return[S,h?vc(S,h):S,p?vc(S,p):S]},[f,i,p,h]);function k(){u.current.scrollContainers&&(u.current.scrollContainers.forEach(S=>S.removeEventListener("scroll",w,!0)),u.current.scrollContainers=null),u.current.resizeObserver&&(u.current.resizeObserver.disconnect(),u.current.resizeObserver=null)}function _(){u.current.element&&(u.current.resizeObserver=new r(w),u.current.resizeObserver.observe(u.current.element),s&&u.current.scrollContainers&&u.current.scrollContainers.forEach(S=>S.addEventListener("scroll",w,{capture:!0,passive:!0})))}const C=S=>{!S||S===u.current.element||(k(),u.current.element=S,u.current.scrollContainers=Wf(S),_())};return uh(w,!!s),lh(x),P.useEffect(()=>{k(),_()},[s,w,x]),P.useEffect(()=>k,[]),[C,l,v]}function lh(o){P.useEffect(()=>{const n=o;return window.addEventListener("resize",n),()=>void window.removeEventListener("resize",n)},[o])}function uh(o,n){P.useEffect(()=>{if(n){const s=o;return window.addEventListener("scroll",s,{capture:!0,passive:!0}),()=>void window.removeEventListener("scroll",s,!0)}},[o,n])}function Wf(o){const n=[];if(!o||o===document.body)return n;const{overflow:s,overflowX:c,overflowY:i}=window.getComputedStyle(o);return[s,c,i].some(r=>r==="auto"||r==="scroll")&&n.push(o),[...n,...Wf(o.parentElement)]}const ch=["x","y","top","bottom","left","right","width","height"],fh=(o,n)=>ch.every(s=>o[s]===n[s]);var dh=Object.defineProperty,hh=Object.defineProperties,ph=Object.getOwnPropertyDescriptors,yc=Object.getOwnPropertySymbols,mh=Object.prototype.hasOwnProperty,gh=Object.prototype.propertyIsEnumerable,xc=(o,n,s)=>n in o?dh(o,n,{enumerable:!0,configurable:!0,writable:!0,value:s}):o[n]=s,Sc=(o,n)=>{for(var s in n||(n={}))mh.call(n,s)&&xc(o,s,n[s]);if(yc)for(var s of yc(n))gh.call(n,s)&&xc(o,s,n[s]);return o},vh=(o,n)=>hh(o,ph(n));function Gf(o,n,s){if(!o)return;if(s(o)===!0)return o;let c=n?o.return:o.child;for(;c;){const i=Gf(c,n,s);if(i)return i;c=n?null:c.sibling}}function Hf(o){try{return Object.defineProperties(o,{_currentRenderer:{get(){return null},set(){}},_currentRenderer2:{get(){return null},set(){}}})}catch{return o}}const kl=Hf(P.createContext(null));class Vf extends P.Component{render(){return P.createElement(kl.Provider,{value:this._reactInternals},this.props.children)}}const{ReactCurrentOwner:wc,ReactCurrentDispatcher:Cc}=P.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function yh(){const o=P.useContext(kl);if(o===null)throw new Error("its-fine: useFiber must be called within a !");const n=P.useId();return P.useMemo(()=>{for(const c of[wc==null?void 0:wc.current,o,o==null?void 0:o.alternate]){if(!c)continue;const i=Gf(c,!1,r=>{let l=r.memoizedState;for(;l;){if(l.memoizedState===n)return!0;l=l.next}});if(i)return i}},[o,n])}function xh(){var o,n;const s=yh(),[c]=P.useState(()=>new Map);c.clear();let i=s;for(;i;){const r=(o=i.type)==null?void 0:o._context;r&&r!==kl&&!c.has(r)&&c.set(r,(n=Cc==null?void 0:Cc.current)==null?void 0:n.readContext(Hf(r))),i=i.return}return c}function Sh(){const o=xh();return P.useMemo(()=>Array.from(o.keys()).reduce((n,s)=>c=>P.createElement(n,null,P.createElement(s.Provider,vh(Sc({},c),{value:o.get(s)}))),n=>P.createElement(Vf,Sc({},n))),[o])}const Ga={onClick:["click",!1],onContextMenu:["contextmenu",!1],onDoubleClick:["dblclick",!1],onWheel:["wheel",!0],onPointerDown:["pointerdown",!0],onPointerUp:["pointerup",!0],onPointerLeave:["pointerleave",!0],onPointerMove:["pointermove",!0],onPointerCancel:["pointercancel",!0],onLostPointerCapture:["lostpointercapture",!0]};function wh(o){const{handlePointer:n}=K1(o);return{priority:1,enabled:!0,compute(s,c,i){c.pointer.set(s.offsetX/c.size.width*2-1,-(s.offsetY/c.size.height)*2+1),c.raycaster.setFromCamera(c.pointer,c.camera)},connected:void 0,handlers:Object.keys(Ga).reduce((s,c)=>({...s,[c]:n(c)}),{}),update:()=>{var s;const{events:c,internal:i}=o.getState();(s=i.lastEvent)!=null&&s.current&&c.handlers&&c.handlers.onPointerMove(i.lastEvent.current)},connect:s=>{var c;const{set:i,events:r}=o.getState();r.disconnect==null||r.disconnect(),i(l=>({events:{...l.events,connected:s}})),Object.entries((c=r.handlers)!=null?c:[]).forEach(([l,f])=>{const[u,p]=Ga[l];s.addEventListener(u,f,{passive:p})})},disconnect:()=>{const{set:s,events:c}=o.getState();if(c.connected){var i;Object.entries((i=c.handlers)!=null?i:[]).forEach(([r,l])=>{if(c&&c.connected instanceof HTMLElement){const[f]=Ga[r];c.connected.removeEventListener(f,l)}}),s(r=>({events:{...r.events,connected:void 0}}))}}}}const Ch=P.forwardRef(function({children:n,fallback:s,resize:c,style:i,gl:r,events:l=wh,eventSource:f,eventPrefix:u,shadows:p,linear:h,flat:g,legacy:v,orthographic:x,frameloop:w,dpr:k,performance:_,raycaster:C,camera:S,scene:T,onPointerMissed:A,onCreated:R,...b},F){P.useMemo(()=>z1(p1),[]);const z=Sh(),[Q,ee]=ah({scroll:!0,debounce:{scroll:50,resize:0},...c}),N=P.useRef(null),I=P.useRef(null);P.useImperativeHandle(F,()=>N.current);const J=Pf(A),[K,re]=P.useState(!1),[se,pe]=P.useState(!1);if(K)throw K;if(se)throw se;const G=P.useRef(null);_o(()=>{const H=N.current;ee.width>0&&ee.height>0&&H&&(G.current||(G.current=ih(H)),G.current.configure({gl:r,events:l,shadows:p,linear:h,flat:g,legacy:v,orthographic:x,frameloop:w,dpr:k,performance:_,raycaster:C,camera:S,scene:T,size:ee,onPointerMissed:(...M)=>J.current==null?void 0:J.current(...M),onCreated:M=>{M.events.connect==null||M.events.connect(f?N1(f)?f.current:f:I.current),u&&M.setEvents({compute:(j,X)=>{const q=j[u+"X"],V=j[u+"Y"];X.pointer.set(q/X.size.width*2-1,-(V/X.size.height)*2+1),X.raycaster.setFromCamera(X.pointer,X.camera)}}),R==null||R(M)}}),G.current.render(P.createElement(z,null,P.createElement(Mf,{set:pe},P.createElement(P.Suspense,{fallback:P.createElement(W1,{set:re})},n)))))}),P.useEffect(()=>{const H=N.current;if(H)return()=>Nf(H)},[]);const B=f?"none":"auto";return P.createElement("div",qr({ref:I,style:{position:"relative",width:"100%",height:"100%",overflow:"hidden",pointerEvents:B,...i}},b),P.createElement("div",{ref:Q,style:{width:"100%",height:"100%"}},P.createElement("canvas",{ref:N,style:{display:"block"}},s)))}),_h=P.forwardRef(function(n,s){return P.createElement(Vf,null,P.createElement(Ch,qr({},n,{ref:s})))}),ko=new ct,Tl=new ct,Eh=new ct;function kh(o,n,s){const c=ko.setFromMatrixPosition(o.matrixWorld);c.project(n);const i=s.width/2,r=s.height/2;return[c.x*i+i,-(c.y*r)+r]}function Th(o,n){const s=ko.setFromMatrixPosition(o.matrixWorld),c=Tl.setFromMatrixPosition(n.matrixWorld),i=s.sub(c),r=n.getWorldDirection(Eh);return i.angleTo(r)>Math.PI/2}function Ph(o,n,s,c){const i=ko.setFromMatrixPosition(o.matrixWorld),r=i.clone();r.project(n),s.setFromCamera(r,n);const l=s.intersectObjects(c,!0);if(l.length){const f=l[0].distance;return i.distanceTo(s.ray.origin)Math.abs(o)<1e-10?0:o;function Zf(o,n,s=""){let c="matrix3d(";for(let i=0;i!==16;i++)c+=al(n[i]*o.elements[i])+(i!==15?",":")");return s+c}const Lh=(o=>n=>Zf(n,o))([1,-1,1,1,1,-1,1,1,1,-1,1,1,1,-1,1,1]),Uh=(o=>(n,s)=>Zf(n,o(s),"translate(-50%,-50%)"))(o=>[1/o,1/o,1/o,1,-1/o,-1/o,-1/o,-1,1/o,1/o,1/o,1,1,1,1,1]);function Rh(o){return o&&typeof o=="object"&&"current"in o}const Pm=P.forwardRef(({children:o,eps:n=.001,style:s,className:c,prepend:i,center:r,fullscreen:l,portal:f,distanceFactor:u,sprite:p=!1,transform:h=!1,occlude:g,onOcclude:v,castShadow:x,receiveShadow:w,material:k,geometry:_,zIndexRange:C=[16777271,0],calculatePosition:S=kh,as:T="div",wrapperClass:A,pointerEvents:R="auto",...b},F)=>{const{gl:z,camera:Q,scene:ee,size:N,raycaster:I,events:J,viewport:K}=Ii(),[re]=P.useState(()=>document.createElement(T)),se=P.useRef(),pe=P.useRef(null),G=P.useRef(0),B=P.useRef([0,0]),H=P.useRef(null),M=P.useRef(null),j=(f==null?void 0:f.current)||J.connected||z.domElement.parentNode,X=P.useRef(null),q=P.useRef(!1),V=P.useMemo(()=>g&&g!=="blending"||Array.isArray(g)&&g.length&&Rh(g[0]),[g]);P.useLayoutEffect(()=>{const fe=z.domElement;g&&g==="blending"?(fe.style.zIndex=`${Math.floor(C[0]/2)}`,fe.style.position="absolute",fe.style.pointerEvents="none"):(fe.style.zIndex=null,fe.style.position=null,fe.style.pointerEvents=null)},[g]),P.useLayoutEffect(()=>{if(pe.current){const fe=se.current=pf(re);if(ee.updateMatrixWorld(),h)re.style.cssText="position:absolute;top:0;left:0;pointer-events:none;overflow:hidden;";else{const $=S(pe.current,Q,N);re.style.cssText=`position:absolute;top:0;left:0;transform:translate3d(${$[0]}px,${$[1]}px,0);transform-origin:0 0;`}return j&&(i?j.prepend(re):j.appendChild(re)),()=>{j&&j.removeChild(re),fe.unmount()}}},[j,h]),P.useLayoutEffect(()=>{A&&(re.className=A)},[A]);const ie=P.useMemo(()=>h?{position:"absolute",top:0,left:0,width:N.width,height:N.height,transformStyle:"preserve-3d",pointerEvents:"none"}:{position:"absolute",transform:r?"translate3d(-50%,-50%,0)":"none",...l&&{top:-N.height/2,left:-N.width/2,width:N.width,height:N.height},...s},[s,r,l,N,h]),Y=P.useMemo(()=>({position:"absolute",pointerEvents:R}),[R]);P.useLayoutEffect(()=>{if(q.current=!1,h){var fe;(fe=se.current)==null||fe.render(P.createElement("div",{ref:H,style:ie},P.createElement("div",{ref:M,style:Y},P.createElement("div",{ref:F,className:c,style:s,children:o}))))}else{var $;($=se.current)==null||$.render(P.createElement("div",{ref:F,style:ie,className:c,children:o}))}});const ne=P.useRef(!0);Eo(fe=>{if(pe.current){Q.updateMatrixWorld(),pe.current.updateWorldMatrix(!0,!1);const $=h?B.current:S(pe.current,Q,N);if(h||Math.abs(G.current-Q.zoom)>n||Math.abs(B.current[0]-$[0])>n||Math.abs(B.current[1]-$[1])>n){const te=Th(pe.current,Q);let Se=!1;V&&(g!=="blending"?Se=[ee]:Array.isArray(g)&&(Se=g.map(Me=>Me.current)));const Re=ne.current;if(Se){const Me=Ph(pe.current,Q,I,Se);ne.current=Me&&!te}else ne.current=!te;Re!==ne.current&&(v?v(!ne.current):re.style.display=ne.current?"block":"none");const ce=Math.floor(C[0]/2),Ce=g?V?[C[0],ce]:[ce-1,0]:C;if(re.style.zIndex=`${bh(pe.current,Q,Ce)}`,h){const[Me,ae]=[N.width/2,N.height/2],_e=Q.projectionMatrix.elements[5]*ae,{isOrthographicCamera:me,top:oe,left:be,bottom:xe,right:we}=Q,ge=Lh(Q.matrixWorldInverse),He=me?`scale(${_e})translate(${al(-(we+be)/2)}px,${al((oe+xe)/2)}px)`:`translateZ(${_e}px)`;let Fe=pe.current.matrixWorld;p&&(Fe=Q.matrixWorldInverse.clone().transpose().copyPosition(Fe).scale(pe.current.scale),Fe.elements[3]=Fe.elements[7]=Fe.elements[11]=0,Fe.elements[15]=1),re.style.width=N.width+"px",re.style.height=N.height+"px",re.style.perspective=me?"":`${_e}px`,H.current&&M.current&&(H.current.style.transform=`${He}${ge}translate(${Me}px,${ae}px)`,M.current.style.transform=Uh(Fe,1/((u||10)/400)))}else{const Me=u===void 0?1:Mh(pe.current,Q)*u;re.style.transform=`translate3d(${$[0]}px,${$[1]}px,0) scale(${Me})`}B.current=$,G.current=Q.zoom}}if(!V&&X.current&&!q.current)if(h){if(H.current){const $=H.current.children[0];if($!=null&&$.clientWidth&&$!=null&&$.clientHeight){const{isOrthographicCamera:te}=Q;if(te||_)b.scale&&(Array.isArray(b.scale)?b.scale instanceof ct?X.current.scale.copy(b.scale.clone().divideScalar(1)):X.current.scale.set(1/b.scale[0],1/b.scale[1],1/b.scale[2]):X.current.scale.setScalar(1/b.scale));else{const Se=(u||10)/400,Re=$.clientWidth*Se,ce=$.clientHeight*Se;X.current.scale.set(Re,ce,1)}q.current=!0}}}else{const $=re.children[0];if($!=null&&$.clientWidth&&$!=null&&$.clientHeight){const te=1/K.factor,Se=$.clientWidth*te,Re=$.clientHeight*te;X.current.scale.set(Se,Re,1),q.current=!0}X.current.lookAt(fe.camera.position)}});const ue=P.useMemo(()=>({vertexShader:h?void 0:` /* This shader is from the THREE's SpriteMaterial. We need to turn the backing plane into a Sprite @@ -69,7 +69,7 @@ No matching component was found for: void main() { gl_FragColor = vec4(0.0, 0.0, 0.0, 0.0); } - `}),[h]);return P.createElement("group",qr({},b,{ref:pe}),g&&!V&&P.createElement("mesh",{castShadow:x,receiveShadow:w,ref:X},_||P.createElement("planeGeometry",null),k||P.createElement("shaderMaterial",{side:Sl,vertexShader:ue.vertexShader,fragmentShader:ue.fragmentShader})))});function Mm(o){return function(n){o.forEach(function(s){typeof s=="function"?s(n):s!=null&&(s.current=n)})}}function Ah(o,n,s){return Math.max(n,Math.min(o,s))}const Zt={toVector(o,n){return o===void 0&&(o=n),Array.isArray(o)?o:[o,o]},add(o,n){return[o[0]+n[0],o[1]+n[1]]},sub(o,n){return[o[0]-n[0],o[1]-n[1]]},addTo(o,n){o[0]+=n[0],o[1]+=n[1]},subTo(o,n){o[0]-=n[0],o[1]-=n[1]}};function _c(o,n,s){return n===0||Math.abs(n)===1/0?Math.pow(o,s*5):o*n*s/(n+s*o)}function Ec(o,n,s,c=.15){return c===0?Ah(o,n,s):os?+_c(o-s,s-n,c)+s:o}function Ih(o,[n,s],[c,i]){const[[r,l],[f,u]]=o;return[Ec(n,r,l,c),Ec(s,f,u,i)]}function Dh(o,n){if(typeof o!="object"||o===null)return o;var s=o[Symbol.toPrimitive];if(s!==void 0){var c=s.call(o,n||"default");if(typeof c!="object")return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(o)}function Oh(o){var n=Dh(o,"string");return typeof n=="symbol"?n:String(n)}function un(o,n,s){return n=Oh(n),n in o?Object.defineProperty(o,n,{value:s,enumerable:!0,configurable:!0,writable:!0}):o[n]=s,o}function kc(o,n){var s=Object.keys(o);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(o);n&&(c=c.filter(function(i){return Object.getOwnPropertyDescriptor(o,i).enumerable})),s.push.apply(s,c)}return s}function ft(o){for(var n=1;n{var s,c;return n.target===o.currentTarget||((s=o.currentTarget)===null||s===void 0||(c=s.contains)===null||c===void 0?void 0:c.call(s,n.target))})}function Hh(o){return o.type==="touchend"||o.type==="touchcancel"?o.changedTouches:o.targetTouches}function Yf(o){return Os(o)?Hh(o)[0]:o}function Vh(o){return Gh(o).map(n=>n.identifier)}function Ha(o){const n=Yf(o);return Os(o)?n.identifier:n.pointerId}function Pc(o){const n=Yf(o);return[n.clientX,n.clientY]}function Zh(o){const n={};if("buttons"in o&&(n.buttons=o.buttons),"shiftKey"in o){const{shiftKey:s,altKey:c,metaKey:i,ctrlKey:r}=o;Object.assign(n,{shiftKey:s,altKey:c,metaKey:i,ctrlKey:r})}return n}function Is(o,...n){return typeof o=="function"?o(...n):o}function Xh(){}function Qh(...o){return o.length===0?Xh:o.length===1?o[0]:function(){let n;for(const s of o)n=s.apply(this,arguments)||n;return n}}function Mc(o,n){return Object.assign({},n,o||{})}const Yh=32;class Kh{constructor(n,s,c){this.ctrl=n,this.args=s,this.key=c,this.state||(this.state={},this.computeValues([0,0]),this.computeInitial(),this.init&&this.init(),this.reset())}get state(){return this.ctrl.state[this.key]}set state(n){this.ctrl.state[this.key]=n}get shared(){return this.ctrl.state.shared}get eventStore(){return this.ctrl.gestureEventStores[this.key]}get timeoutStore(){return this.ctrl.gestureTimeoutStores[this.key]}get config(){return this.ctrl.config[this.key]}get sharedConfig(){return this.ctrl.config.shared}get handler(){return this.ctrl.handlers[this.key]}reset(){const{state:n,shared:s,ingKey:c,args:i}=this;s[c]=n._active=n.active=n._blocked=n._force=!1,n._step=[!1,!1],n.intentional=!1,n._movement=[0,0],n._distance=[0,0],n._direction=[0,0],n._delta=[0,0],n._bounds=[[-1/0,1/0],[-1/0,1/0]],n.args=i,n.axis=void 0,n.memo=void 0,n.elapsedTime=n.timeDelta=0,n.direction=[0,0],n.distance=[0,0],n.overflow=[0,0],n._movementBound=[!1,!1],n.velocity=[0,0],n.movement=[0,0],n.delta=[0,0],n.timeStamp=0}start(n){const s=this.state,c=this.config;s._active||(this.reset(),this.computeInitial(),s._active=!0,s.target=n.target,s.currentTarget=n.currentTarget,s.lastOffset=c.from?Is(c.from,s):s.offset,s.offset=s.lastOffset,s.startTime=s.timeStamp=n.timeStamp)}computeValues(n){const s=this.state;s._values=n,s.values=this.config.transform(n)}computeInitial(){const n=this.state;n._initial=n._values,n.initial=n.values}compute(n){const{state:s,config:c,shared:i}=this;s.args=this.args;let r=0;if(n&&(s.event=n,c.preventDefault&&n.cancelable&&s.event.preventDefault(),s.type=n.type,i.touches=this.ctrl.pointerIds.size||this.ctrl.touchIds.size,i.locked=!!document.pointerLockElement,Object.assign(i,Zh(n)),i.down=i.pressed=i.buttons%2===1||i.touches>0,r=n.timeStamp-s.timeStamp,s.timeStamp=n.timeStamp,s.elapsedTime=s.timeStamp-s.startTime),s._active){const b=s._delta.map(Math.abs);Zt.addTo(s._distance,b)}this.axisIntent&&this.axisIntent(n);const[l,f]=s._movement,[u,p]=c.threshold,{_step:h,values:g}=s;if(c.hasCustomTransform?(h[0]===!1&&(h[0]=Math.abs(l)>=u&&g[0]),h[1]===!1&&(h[1]=Math.abs(f)>=p&&g[1])):(h[0]===!1&&(h[0]=Math.abs(l)>=u&&Math.sign(l)*u),h[1]===!1&&(h[1]=Math.abs(f)>=p&&Math.sign(f)*p)),s.intentional=h[0]!==!1||h[1]!==!1,!s.intentional)return;const v=[0,0];if(c.hasCustomTransform){const[b,O]=g;v[0]=h[0]!==!1?b-h[0]:0,v[1]=h[1]!==!1?O-h[1]:0}else v[0]=h[0]!==!1?l-h[0]:0,v[1]=h[1]!==!1?f-h[1]:0;this.restrictToAxis&&!s._blocked&&this.restrictToAxis(v);const x=s.offset,w=s._active&&!s._blocked||s.active;w&&(s.first=s._active&&!s.active,s.last=!s._active&&s.active,s.active=i[this.ingKey]=s._active,n&&(s.first&&("bounds"in c&&(s._bounds=Is(c.bounds,s)),this.setup&&this.setup()),s.movement=v,this.computeOffset()));const[k,_]=s.offset,[[C,S],[T,A]]=s._bounds;s.overflow=[kS?1:0,_A?1:0],s._movementBound[0]=s.overflow[0]?s._movementBound[0]===!1?s._movement[0]:s._movementBound[0]:!1,s._movementBound[1]=s.overflow[1]?s._movementBound[1]===!1?s._movement[1]:s._movementBound[1]:!1;const R=s._active?c.rubberband||[0,0]:[0,0];if(s.offset=Ih(s._bounds,s.offset,R),s.delta=Zt.sub(s.offset,x),this.computeMovement(),w&&(!s.last||r>Yh)){s.delta=Zt.sub(s.offset,x);const b=s.delta.map(Math.abs);Zt.addTo(s.distance,b),s.direction=s.delta.map(Math.sign),s._direction=s._delta.map(Math.sign),!s.first&&r>0&&(s.velocity=[b[0]/r,b[1]/r],s.timeDelta=r)}}emit(){const n=this.state,s=this.shared,c=this.config;if(n._active||this.clean(),(n._blocked||!n.intentional)&&!n._force&&!c.triggerAllEvents)return;const i=this.handler(ft(ft(ft({},s),n),{},{[this.aliasKey]:n.values}));i!==void 0&&(n.memo=i)}clean(){this.eventStore.clean(),this.timeoutStore.clean()}}function Jh([o,n],s){const c=Math.abs(o),i=Math.abs(n);if(c>i&&c>s)return"x";if(i>c&&i>s)return"y"}class qh extends Kh{constructor(...n){super(...n),un(this,"aliasKey","xy")}reset(){super.reset(),this.state.axis=void 0}init(){this.state.offset=[0,0],this.state.lastOffset=[0,0]}computeOffset(){this.state.offset=Zt.add(this.state.lastOffset,this.state.movement)}computeMovement(){this.state.movement=Zt.sub(this.state.offset,this.state.lastOffset)}axisIntent(n){const s=this.state,c=this.config;if(!s.axis&&n){const i=typeof c.axisThreshold=="object"?c.axisThreshold[Qf(n)]:c.axisThreshold;s.axis=Jh(s._movement,i)}s._blocked=(c.lockDirection||!!c.axis)&&!s.axis||!!c.axis&&c.axis!==s.axis}restrictToAxis(n){if(this.config.axis||this.config.lockDirection)switch(this.state.axis){case"x":n[1]=0;break;case"y":n[0]=0;break}}}const $h=o=>o,bc=.15,Kf={enabled(o=!0){return o},eventOptions(o,n,s){return ft(ft({},s.shared.eventOptions),o)},preventDefault(o=!1){return o},triggerAllEvents(o=!1){return o},rubberband(o=0){switch(o){case!0:return[bc,bc];case!1:return[0,0];default:return Zt.toVector(o)}},from(o){if(typeof o=="function")return o;if(o!=null)return Zt.toVector(o)},transform(o,n,s){const c=o||s.shared.transform;return this.hasCustomTransform=!!c,c||$h},threshold(o){return Zt.toVector(o,0)}},ep=0,To=ft(ft({},Kf),{},{axis(o,n,{axis:s}){if(this.lockDirection=s==="lock",!this.lockDirection)return s},axisThreshold(o=ep){return o},bounds(o={}){if(typeof o=="function")return r=>To.bounds(o(r));if("current"in o)return()=>o.current;if(typeof HTMLElement=="function"&&o instanceof HTMLElement)return o;const{left:n=-1/0,right:s=1/0,top:c=-1/0,bottom:i=1/0}=o;return[[n,s],[c,i]]}}),Lc={ArrowRight:(o,n=1)=>[o*n,0],ArrowLeft:(o,n=1)=>[-1*o*n,0],ArrowUp:(o,n=1)=>[0,-1*o*n],ArrowDown:(o,n=1)=>[0,o*n]};class tp extends qh{constructor(...n){super(...n),un(this,"ingKey","dragging")}reset(){super.reset();const n=this.state;n._pointerId=void 0,n._pointerActive=!1,n._keyboardActive=!1,n._preventScroll=!1,n._delayed=!1,n.swipe=[0,0],n.tap=!1,n.canceled=!1,n.cancel=this.cancel.bind(this)}setup(){const n=this.state;if(n._bounds instanceof HTMLElement){const s=n._bounds.getBoundingClientRect(),c=n.currentTarget.getBoundingClientRect(),i={left:s.left-c.left+n.offset[0],right:s.right-c.right+n.offset[0],top:s.top-c.top+n.offset[1],bottom:s.bottom-c.bottom+n.offset[1]};n._bounds=To.bounds(i)}}cancel(){const n=this.state;n.canceled||(n.canceled=!0,n._active=!1,setTimeout(()=>{this.compute(),this.emit()},0))}setActive(){this.state._active=this.state._pointerActive||this.state._keyboardActive}clean(){this.pointerClean(),this.state._pointerActive=!1,this.state._keyboardActive=!1,super.clean()}pointerDown(n){const s=this.config,c=this.state;if(n.buttons!=null&&(Array.isArray(s.pointerButtons)?!s.pointerButtons.includes(n.buttons):s.pointerButtons!==-1&&s.pointerButtons!==n.buttons))return;const i=this.ctrl.setEventIds(n);s.pointerCapture&&n.target.setPointerCapture(n.pointerId),!(i&&i.size>1&&c._pointerActive)&&(this.start(n),this.setupPointer(n),c._pointerId=Ha(n),c._pointerActive=!0,this.computeValues(Pc(n)),this.computeInitial(),s.preventScrollAxis&&Qf(n)!=="mouse"?(c._active=!1,this.setupScrollPrevention(n)):s.delay>0?(this.setupDelayTrigger(n),s.triggerAllEvents&&(this.compute(n),this.emit())):this.startPointerDrag(n))}startPointerDrag(n){const s=this.state;s._active=!0,s._preventScroll=!0,s._delayed=!1,this.compute(n),this.emit()}pointerMove(n){const s=this.state,c=this.config;if(!s._pointerActive)return;const i=Ha(n);if(s._pointerId!==void 0&&i!==s._pointerId)return;const r=Pc(n);if(document.pointerLockElement===n.target?s._delta=[n.movementX,n.movementY]:(s._delta=Zt.sub(r,s._values),this.computeValues(r)),Zt.addTo(s._movement,s._delta),this.compute(n),s._delayed&&s.intentional){this.timeoutStore.remove("dragDelay"),s.active=!1,this.startPointerDrag(n);return}if(c.preventScrollAxis&&!s._preventScroll)if(s.axis)if(s.axis===c.preventScrollAxis||c.preventScrollAxis==="xy"){s._active=!1,this.clean();return}else{this.timeoutStore.remove("startPointerDrag"),this.startPointerDrag(n);return}else return;this.emit()}pointerUp(n){this.ctrl.setEventIds(n);try{this.config.pointerCapture&&n.target.hasPointerCapture(n.pointerId)&&n.target.releasePointerCapture(n.pointerId)}catch{}const s=this.state,c=this.config;if(!s._active||!s._pointerActive)return;const i=Ha(n);if(s._pointerId!==void 0&&i!==s._pointerId)return;this.state._pointerActive=!1,this.setActive(),this.compute(n);const[r,l]=s._distance;if(s.tap=r<=c.tapsThreshold&&l<=c.tapsThreshold,s.tap&&c.filterTaps)s._force=!0;else{const[f,u]=s._delta,[p,h]=s._movement,[g,v]=c.swipe.velocity,[x,w]=c.swipe.distance,k=c.swipe.duration;if(s.elapsedTimeg&&Math.abs(p)>x&&(s.swipe[0]=Math.sign(f)),C>v&&Math.abs(h)>w&&(s.swipe[1]=Math.sign(u))}}this.emit()}pointerClick(n){!this.state.tap&&n.detail>0&&(n.preventDefault(),n.stopPropagation())}setupPointer(n){const s=this.config,c=s.device;s.pointerLock&&n.currentTarget.requestPointerLock(),s.pointerCapture||(this.eventStore.add(this.sharedConfig.window,c,"change",this.pointerMove.bind(this)),this.eventStore.add(this.sharedConfig.window,c,"end",this.pointerUp.bind(this)),this.eventStore.add(this.sharedConfig.window,c,"cancel",this.pointerUp.bind(this)))}pointerClean(){this.config.pointerLock&&document.pointerLockElement===this.state.currentTarget&&document.exitPointerLock()}preventScroll(n){this.state._preventScroll&&n.cancelable&&n.preventDefault()}setupScrollPrevention(n){this.state._preventScroll=!1,np(n);const s=this.eventStore.add(this.sharedConfig.window,"touch","change",this.preventScroll.bind(this),{passive:!1});this.eventStore.add(this.sharedConfig.window,"touch","end",s),this.eventStore.add(this.sharedConfig.window,"touch","cancel",s),this.timeoutStore.add("startPointerDrag",this.startPointerDrag.bind(this),this.config.preventScrollDelay,n)}setupDelayTrigger(n){this.state._delayed=!0,this.timeoutStore.add("dragDelay",()=>{this.state._step=[0,0],this.startPointerDrag(n)},this.config.delay)}keyDown(n){const s=Lc[n.key];if(s){const c=this.state,i=n.shiftKey?10:n.altKey?.1:1;this.start(n),c._delta=s(this.config.keyboardDisplacement,i),c._keyboardActive=!0,Zt.addTo(c._movement,c._delta),this.compute(n),this.emit()}}keyUp(n){n.key in Lc&&(this.state._keyboardActive=!1,this.setActive(),this.compute(n),this.emit())}bind(n){const s=this.config.device;n(s,"start",this.pointerDown.bind(this)),this.config.pointerCapture&&(n(s,"change",this.pointerMove.bind(this)),n(s,"end",this.pointerUp.bind(this)),n(s,"cancel",this.pointerUp.bind(this)),n("lostPointerCapture","",this.pointerUp.bind(this))),this.config.keys&&(n("key","down",this.keyDown.bind(this)),n("key","up",this.keyUp.bind(this))),this.config.filterTaps&&n("click","",this.pointerClick.bind(this),{capture:!0,passive:!1})}}function np(o){"persist"in o&&typeof o.persist=="function"&&o.persist()}const Po=typeof window<"u"&&window.document&&window.document.createElement;function Jf(){return Po&&"ontouchstart"in window}function rp(){return Jf()||Po&&window.navigator.maxTouchPoints>1}function ip(){return Po&&"onpointerdown"in window}function op(){return Po&&"exitPointerLock"in window.document}function sp(){try{return"constructor"in GestureEvent}catch{return!1}}const Dn={isBrowser:Po,gesture:sp(),touch:Jf(),touchscreen:rp(),pointer:ip(),pointerLock:op()},ap=250,lp=180,up=.5,cp=50,fp=250,dp=10,Uc={mouse:0,touch:0,pen:8},hp=ft(ft({},To),{},{device(o,n,{pointer:{touch:s=!1,lock:c=!1,mouse:i=!1}={}}){return this.pointerLock=c&&Dn.pointerLock,Dn.touch&&s?"touch":this.pointerLock?"mouse":Dn.pointer&&!i?"pointer":Dn.touch?"touch":"mouse"},preventScrollAxis(o,n,{preventScroll:s}){if(this.preventScrollDelay=typeof s=="number"?s:s||s===void 0&&o?ap:void 0,!(!Dn.touchscreen||s===!1))return o||(s!==void 0?"y":void 0)},pointerCapture(o,n,{pointer:{capture:s=!0,buttons:c=1,keys:i=!0}={}}){return this.pointerButtons=c,this.keys=i,!this.pointerLock&&this.device==="pointer"&&s},threshold(o,n,{filterTaps:s=!1,tapsThreshold:c=3,axis:i=void 0}){const r=Zt.toVector(o,s?c:i?1:0);return this.filterTaps=s,this.tapsThreshold=c,r},swipe({velocity:o=up,distance:n=cp,duration:s=fp}={}){return{velocity:this.transform(Zt.toVector(o)),distance:this.transform(Zt.toVector(n)),duration:s}},delay(o=0){switch(o){case!0:return lp;case!1:return 0;default:return o}},axisThreshold(o){return o?ft(ft({},Uc),o):Uc},keyboardDisplacement(o=dp){return o}});ft(ft({},Kf),{},{device(o,n,{shared:s,pointer:{touch:c=!1}={}}){if(s.target&&!Dn.touch&&Dn.gesture)return"gesture";if(Dn.touch&&c)return"touch";if(Dn.touchscreen){if(Dn.pointer)return"pointer";if(Dn.touch)return"touch"}},bounds(o,n,{scaleBounds:s={},angleBounds:c={}}){const i=l=>{const f=Mc(Is(s,l),{min:-1/0,max:1/0});return[f.min,f.max]},r=l=>{const f=Mc(Is(c,l),{min:-1/0,max:1/0});return[f.min,f.max]};return typeof s!="function"&&typeof c!="function"?[i(),r()]:l=>[i(l),r(l)]},threshold(o,n,s){return this.lockDirection=s.axis==="lock",Zt.toVector(o,this.lockDirection?[.1,3]:0)},modifierKey(o){return o===void 0?"ctrlKey":o},pinchOnWheel(o=!0){return o}});ft(ft({},To),{},{mouseOnly:(o=!0)=>o});ft(ft({},To),{},{mouseOnly:(o=!0)=>o});const qf=new Map,ll=new Map;function pp(o){qf.set(o.key,o.engine),ll.set(o.key,o.resolver)}const mp={key:"drag",engine:tp,resolver:hp};function gp(o,n){if(o==null)return{};var s={},c=Object.keys(o),i,r;for(r=0;r=0)&&(s[i]=o[i]);return s}function vp(o,n){if(o==null)return{};var s=gp(o,n),c,i;if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(o);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(o,c)&&(s[c]=o[c])}return s}const yp={target(o){if(o)return()=>"current"in o?o.current:o},enabled(o=!0){return o},window(o=Dn.isBrowser?window:void 0){return o},eventOptions({passive:o=!0,capture:n=!1}={}){return{passive:o,capture:n}},transform(o){return o}},xp=["target","eventOptions","window","enabled","transform"];function bs(o={},n){const s={};for(const[c,i]of Object.entries(n))switch(typeof i){case"function":s[c]=i.call(s,o[c],c,o);break;case"object":s[c]=bs(o[c],i);break;case"boolean":i&&(s[c]=o[c]);break}return s}function Sp(o,n,s={}){const c=o,{target:i,eventOptions:r,window:l,enabled:f,transform:u}=c,p=vp(c,xp);if(s.shared=bs({target:i,eventOptions:r,window:l,enabled:f,transform:u},yp),n){const h=ll.get(n);s[n]=bs(ft({shared:s.shared},p),h)}else for(const h in p){const g=ll.get(h);g&&(s[h]=bs(ft({shared:s.shared},p[h]),g))}return s}class $f{constructor(n,s){un(this,"_listeners",new Set),this._ctrl=n,this._gestureKey=s}add(n,s,c,i,r){const l=this._listeners,f=Wh(s,c),u=this._gestureKey?this._ctrl.config[this._gestureKey].eventOptions:{},p=ft(ft({},u),r);n.addEventListener(f,i,p);const h=()=>{n.removeEventListener(f,i,p),l.delete(h)};return l.add(h),h}clean(){this._listeners.forEach(n=>n()),this._listeners.clear()}}class wp{constructor(){un(this,"_timeouts",new Map)}add(n,s,c=140,...i){this.remove(n),this._timeouts.set(n,window.setTimeout(s,c,...i))}remove(n){const s=this._timeouts.get(n);s&&window.clearTimeout(s)}clean(){this._timeouts.forEach(n=>void window.clearTimeout(n)),this._timeouts.clear()}}class Cp{constructor(n){un(this,"gestures",new Set),un(this,"_targetEventStore",new $f(this)),un(this,"gestureEventStores",{}),un(this,"gestureTimeoutStores",{}),un(this,"handlers",{}),un(this,"config",{}),un(this,"pointerIds",new Set),un(this,"touchIds",new Set),un(this,"state",{shared:{shiftKey:!1,metaKey:!1,ctrlKey:!1,altKey:!1}}),_p(this,n)}setEventIds(n){if(Os(n))return this.touchIds=new Set(Vh(n)),this.touchIds;if("pointerId"in n)return n.type==="pointerup"||n.type==="pointercancel"?this.pointerIds.delete(n.pointerId):n.type==="pointerdown"&&this.pointerIds.add(n.pointerId),this.pointerIds}applyHandlers(n,s){this.handlers=n,this.nativeHandlers=s}applyConfig(n,s){this.config=Sp(n,s,this.config)}clean(){this._targetEventStore.clean();for(const n of this.gestures)this.gestureEventStores[n].clean(),this.gestureTimeoutStores[n].clean()}effect(){return this.config.shared.target&&this.bind(),()=>this._targetEventStore.clean()}bind(...n){const s=this.config.shared,c={};let i;if(!(s.target&&(i=s.target(),!i))){if(s.enabled){for(const l of this.gestures){const f=this.config[l],u=Rc(c,f.eventOptions,!!i);if(f.enabled){const p=qf.get(l);new p(this,n,l).bind(u)}}const r=Rc(c,s.eventOptions,!!i);for(const l in this.nativeHandlers)r(l,"",f=>this.nativeHandlers[l](ft(ft({},this.state.shared),{},{event:f,args:n})),void 0,!0)}for(const r in c)c[r]=Qh(...c[r]);if(!i)return c;for(const r in c){const{device:l,capture:f,passive:u}=Nh(r);this._targetEventStore.add(i,l,"",c[r],{capture:f,passive:u})}}}}function _i(o,n){o.gestures.add(n),o.gestureEventStores[n]=new $f(o,n),o.gestureTimeoutStores[n]=new wp}function _p(o,n){n.drag&&_i(o,"drag"),n.wheel&&_i(o,"wheel"),n.scroll&&_i(o,"scroll"),n.move&&_i(o,"move"),n.pinch&&_i(o,"pinch"),n.hover&&_i(o,"hover")}const Rc=(o,n,s)=>(c,i,r,l={},f=!1)=>{var u,p;const h=(u=l.capture)!==null&&u!==void 0?u:n.capture,g=(p=l.passive)!==null&&p!==void 0?p:n.passive;let v=f?c:zh(c,i,h);s&&g&&(v+="Passive"),o[v]=o[v]||[],o[v].push(r)};function Ep(o,n={},s,c){const i=er.useMemo(()=>new Cp(o),[]);if(i.applyHandlers(o,c),i.applyConfig(n,s),er.useEffect(i.effect.bind(i)),er.useEffect(()=>i.clean.bind(i),[]),n.target===void 0)return i.bind.bind(i)}function bm(o,n){return pp(mp),Ep({drag:o},n||{},"drag")}function kp(o){let n=0;for(let c in o.attributes){const i=o.getAttribute(c);n+=i.count*i.itemSize*i.array.BYTES_PER_ELEMENT}const s=o.getIndex();return n+=s?s.count*s.itemSize*s.array.BYTES_PER_ELEMENT:0,n}const Ac=new Ds,_s=new ct;class Pl extends gf{constructor(){super(),this.isLineSegmentsGeometry=!0,this.type="LineSegmentsGeometry";const n=[-1,2,0,1,2,0,-1,1,0,1,1,0,-1,0,0,1,0,0,-1,-1,0,1,-1,0],s=[-1,2,1,2,-1,1,1,1,-1,-1,1,-1,-1,-2,1,-2],c=[0,2,1,2,3,1,2,4,3,4,5,3,4,6,5,6,7,5];this.setIndex(c),this.setAttribute("position",new el(n,3)),this.setAttribute("uv",new el(s,2))}applyMatrix4(n){const s=this.attributes.instanceStart,c=this.attributes.instanceEnd;return s!==void 0&&(s.applyMatrix4(n),c.applyMatrix4(n),s.needsUpdate=!0),this.boundingBox!==null&&this.computeBoundingBox(),this.boundingSphere!==null&&this.computeBoundingSphere(),this}setPositions(n){let s;n instanceof Float32Array?s=n:Array.isArray(n)&&(s=new Float32Array(n));const c=new tl(s,6,1);return this.setAttribute("instanceStart",new Mi(c,3,0)),this.setAttribute("instanceEnd",new Mi(c,3,3)),this.computeBoundingBox(),this.computeBoundingSphere(),this}setColors(n){let s;n instanceof Float32Array?s=n:Array.isArray(n)&&(s=new Float32Array(n));const c=new tl(s,6,1);return this.setAttribute("instanceColorStart",new Mi(c,3,0)),this.setAttribute("instanceColorEnd",new Mi(c,3,3)),this}fromWireframeGeometry(n){return this.setPositions(n.attributes.position.array),this}fromEdgesGeometry(n){return this.setPositions(n.attributes.position.array),this}fromMesh(n){return this.fromWireframeGeometry(new m1(n.geometry)),this}fromLineSegments(n){const s=n.geometry;return this.setPositions(s.attributes.position.array),this}computeBoundingBox(){this.boundingBox===null&&(this.boundingBox=new Ds);const n=this.attributes.instanceStart,s=this.attributes.instanceEnd;n!==void 0&&s!==void 0&&(this.boundingBox.setFromBufferAttribute(n),Ac.setFromBufferAttribute(s),this.boundingBox.union(Ac))}computeBoundingSphere(){this.boundingSphere===null&&(this.boundingSphere=new wl),this.boundingBox===null&&this.computeBoundingBox();const n=this.attributes.instanceStart,s=this.attributes.instanceEnd;if(n!==void 0&&s!==void 0){const c=this.boundingSphere.center;this.boundingBox.getCenter(c);let i=0;for(let r=0,l=n.count;rs?+_c(o-s,s-n,c)+s:o}function Dh(o,[n,s],[c,i]){const[[r,l],[f,u]]=o;return[Ec(n,r,l,c),Ec(s,f,u,i)]}function Ih(o,n){if(typeof o!="object"||o===null)return o;var s=o[Symbol.toPrimitive];if(s!==void 0){var c=s.call(o,n||"default");if(typeof c!="object")return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(o)}function Fh(o){var n=Ih(o,"string");return typeof n=="symbol"?n:String(n)}function un(o,n,s){return n=Fh(n),n in o?Object.defineProperty(o,n,{value:s,enumerable:!0,configurable:!0,writable:!0}):o[n]=s,o}function kc(o,n){var s=Object.keys(o);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(o);n&&(c=c.filter(function(i){return Object.getOwnPropertyDescriptor(o,i).enumerable})),s.push.apply(s,c)}return s}function ft(o){for(var n=1;n{var s,c;return n.target===o.currentTarget||((s=o.currentTarget)===null||s===void 0||(c=s.contains)===null||c===void 0?void 0:c.call(s,n.target))})}function Hh(o){return o.type==="touchend"||o.type==="touchcancel"?o.changedTouches:o.targetTouches}function Yf(o){return Fs(o)?Hh(o)[0]:o}function Vh(o){return Gh(o).map(n=>n.identifier)}function Ha(o){const n=Yf(o);return Fs(o)?n.identifier:n.pointerId}function Pc(o){const n=Yf(o);return[n.clientX,n.clientY]}function Zh(o){const n={};if("buttons"in o&&(n.buttons=o.buttons),"shiftKey"in o){const{shiftKey:s,altKey:c,metaKey:i,ctrlKey:r}=o;Object.assign(n,{shiftKey:s,altKey:c,metaKey:i,ctrlKey:r})}return n}function Ds(o,...n){return typeof o=="function"?o(...n):o}function Xh(){}function Qh(...o){return o.length===0?Xh:o.length===1?o[0]:function(){let n;for(const s of o)n=s.apply(this,arguments)||n;return n}}function Mc(o,n){return Object.assign({},n,o||{})}const Yh=32;class Kh{constructor(n,s,c){this.ctrl=n,this.args=s,this.key=c,this.state||(this.state={},this.computeValues([0,0]),this.computeInitial(),this.init&&this.init(),this.reset())}get state(){return this.ctrl.state[this.key]}set state(n){this.ctrl.state[this.key]=n}get shared(){return this.ctrl.state.shared}get eventStore(){return this.ctrl.gestureEventStores[this.key]}get timeoutStore(){return this.ctrl.gestureTimeoutStores[this.key]}get config(){return this.ctrl.config[this.key]}get sharedConfig(){return this.ctrl.config.shared}get handler(){return this.ctrl.handlers[this.key]}reset(){const{state:n,shared:s,ingKey:c,args:i}=this;s[c]=n._active=n.active=n._blocked=n._force=!1,n._step=[!1,!1],n.intentional=!1,n._movement=[0,0],n._distance=[0,0],n._direction=[0,0],n._delta=[0,0],n._bounds=[[-1/0,1/0],[-1/0,1/0]],n.args=i,n.axis=void 0,n.memo=void 0,n.elapsedTime=n.timeDelta=0,n.direction=[0,0],n.distance=[0,0],n.overflow=[0,0],n._movementBound=[!1,!1],n.velocity=[0,0],n.movement=[0,0],n.delta=[0,0],n.timeStamp=0}start(n){const s=this.state,c=this.config;s._active||(this.reset(),this.computeInitial(),s._active=!0,s.target=n.target,s.currentTarget=n.currentTarget,s.lastOffset=c.from?Ds(c.from,s):s.offset,s.offset=s.lastOffset,s.startTime=s.timeStamp=n.timeStamp)}computeValues(n){const s=this.state;s._values=n,s.values=this.config.transform(n)}computeInitial(){const n=this.state;n._initial=n._values,n.initial=n.values}compute(n){const{state:s,config:c,shared:i}=this;s.args=this.args;let r=0;if(n&&(s.event=n,c.preventDefault&&n.cancelable&&s.event.preventDefault(),s.type=n.type,i.touches=this.ctrl.pointerIds.size||this.ctrl.touchIds.size,i.locked=!!document.pointerLockElement,Object.assign(i,Zh(n)),i.down=i.pressed=i.buttons%2===1||i.touches>0,r=n.timeStamp-s.timeStamp,s.timeStamp=n.timeStamp,s.elapsedTime=s.timeStamp-s.startTime),s._active){const b=s._delta.map(Math.abs);Zt.addTo(s._distance,b)}this.axisIntent&&this.axisIntent(n);const[l,f]=s._movement,[u,p]=c.threshold,{_step:h,values:g}=s;if(c.hasCustomTransform?(h[0]===!1&&(h[0]=Math.abs(l)>=u&&g[0]),h[1]===!1&&(h[1]=Math.abs(f)>=p&&g[1])):(h[0]===!1&&(h[0]=Math.abs(l)>=u&&Math.sign(l)*u),h[1]===!1&&(h[1]=Math.abs(f)>=p&&Math.sign(f)*p)),s.intentional=h[0]!==!1||h[1]!==!1,!s.intentional)return;const v=[0,0];if(c.hasCustomTransform){const[b,F]=g;v[0]=h[0]!==!1?b-h[0]:0,v[1]=h[1]!==!1?F-h[1]:0}else v[0]=h[0]!==!1?l-h[0]:0,v[1]=h[1]!==!1?f-h[1]:0;this.restrictToAxis&&!s._blocked&&this.restrictToAxis(v);const x=s.offset,w=s._active&&!s._blocked||s.active;w&&(s.first=s._active&&!s.active,s.last=!s._active&&s.active,s.active=i[this.ingKey]=s._active,n&&(s.first&&("bounds"in c&&(s._bounds=Ds(c.bounds,s)),this.setup&&this.setup()),s.movement=v,this.computeOffset()));const[k,_]=s.offset,[[C,S],[T,A]]=s._bounds;s.overflow=[kS?1:0,_A?1:0],s._movementBound[0]=s.overflow[0]?s._movementBound[0]===!1?s._movement[0]:s._movementBound[0]:!1,s._movementBound[1]=s.overflow[1]?s._movementBound[1]===!1?s._movement[1]:s._movementBound[1]:!1;const R=s._active?c.rubberband||[0,0]:[0,0];if(s.offset=Dh(s._bounds,s.offset,R),s.delta=Zt.sub(s.offset,x),this.computeMovement(),w&&(!s.last||r>Yh)){s.delta=Zt.sub(s.offset,x);const b=s.delta.map(Math.abs);Zt.addTo(s.distance,b),s.direction=s.delta.map(Math.sign),s._direction=s._delta.map(Math.sign),!s.first&&r>0&&(s.velocity=[b[0]/r,b[1]/r],s.timeDelta=r)}}emit(){const n=this.state,s=this.shared,c=this.config;if(n._active||this.clean(),(n._blocked||!n.intentional)&&!n._force&&!c.triggerAllEvents)return;const i=this.handler(ft(ft(ft({},s),n),{},{[this.aliasKey]:n.values}));i!==void 0&&(n.memo=i)}clean(){this.eventStore.clean(),this.timeoutStore.clean()}}function Jh([o,n],s){const c=Math.abs(o),i=Math.abs(n);if(c>i&&c>s)return"x";if(i>c&&i>s)return"y"}class qh extends Kh{constructor(...n){super(...n),un(this,"aliasKey","xy")}reset(){super.reset(),this.state.axis=void 0}init(){this.state.offset=[0,0],this.state.lastOffset=[0,0]}computeOffset(){this.state.offset=Zt.add(this.state.lastOffset,this.state.movement)}computeMovement(){this.state.movement=Zt.sub(this.state.offset,this.state.lastOffset)}axisIntent(n){const s=this.state,c=this.config;if(!s.axis&&n){const i=typeof c.axisThreshold=="object"?c.axisThreshold[Qf(n)]:c.axisThreshold;s.axis=Jh(s._movement,i)}s._blocked=(c.lockDirection||!!c.axis)&&!s.axis||!!c.axis&&c.axis!==s.axis}restrictToAxis(n){if(this.config.axis||this.config.lockDirection)switch(this.state.axis){case"x":n[1]=0;break;case"y":n[0]=0;break}}}const $h=o=>o,bc=.15,Kf={enabled(o=!0){return o},eventOptions(o,n,s){return ft(ft({},s.shared.eventOptions),o)},preventDefault(o=!1){return o},triggerAllEvents(o=!1){return o},rubberband(o=0){switch(o){case!0:return[bc,bc];case!1:return[0,0];default:return Zt.toVector(o)}},from(o){if(typeof o=="function")return o;if(o!=null)return Zt.toVector(o)},transform(o,n,s){const c=o||s.shared.transform;return this.hasCustomTransform=!!c,c||$h},threshold(o){return Zt.toVector(o,0)}},ep=0,To=ft(ft({},Kf),{},{axis(o,n,{axis:s}){if(this.lockDirection=s==="lock",!this.lockDirection)return s},axisThreshold(o=ep){return o},bounds(o={}){if(typeof o=="function")return r=>To.bounds(o(r));if("current"in o)return()=>o.current;if(typeof HTMLElement=="function"&&o instanceof HTMLElement)return o;const{left:n=-1/0,right:s=1/0,top:c=-1/0,bottom:i=1/0}=o;return[[n,s],[c,i]]}}),Lc={ArrowRight:(o,n=1)=>[o*n,0],ArrowLeft:(o,n=1)=>[-1*o*n,0],ArrowUp:(o,n=1)=>[0,-1*o*n],ArrowDown:(o,n=1)=>[0,o*n]};class tp extends qh{constructor(...n){super(...n),un(this,"ingKey","dragging")}reset(){super.reset();const n=this.state;n._pointerId=void 0,n._pointerActive=!1,n._keyboardActive=!1,n._preventScroll=!1,n._delayed=!1,n.swipe=[0,0],n.tap=!1,n.canceled=!1,n.cancel=this.cancel.bind(this)}setup(){const n=this.state;if(n._bounds instanceof HTMLElement){const s=n._bounds.getBoundingClientRect(),c=n.currentTarget.getBoundingClientRect(),i={left:s.left-c.left+n.offset[0],right:s.right-c.right+n.offset[0],top:s.top-c.top+n.offset[1],bottom:s.bottom-c.bottom+n.offset[1]};n._bounds=To.bounds(i)}}cancel(){const n=this.state;n.canceled||(n.canceled=!0,n._active=!1,setTimeout(()=>{this.compute(),this.emit()},0))}setActive(){this.state._active=this.state._pointerActive||this.state._keyboardActive}clean(){this.pointerClean(),this.state._pointerActive=!1,this.state._keyboardActive=!1,super.clean()}pointerDown(n){const s=this.config,c=this.state;if(n.buttons!=null&&(Array.isArray(s.pointerButtons)?!s.pointerButtons.includes(n.buttons):s.pointerButtons!==-1&&s.pointerButtons!==n.buttons))return;const i=this.ctrl.setEventIds(n);s.pointerCapture&&n.target.setPointerCapture(n.pointerId),!(i&&i.size>1&&c._pointerActive)&&(this.start(n),this.setupPointer(n),c._pointerId=Ha(n),c._pointerActive=!0,this.computeValues(Pc(n)),this.computeInitial(),s.preventScrollAxis&&Qf(n)!=="mouse"?(c._active=!1,this.setupScrollPrevention(n)):s.delay>0?(this.setupDelayTrigger(n),s.triggerAllEvents&&(this.compute(n),this.emit())):this.startPointerDrag(n))}startPointerDrag(n){const s=this.state;s._active=!0,s._preventScroll=!0,s._delayed=!1,this.compute(n),this.emit()}pointerMove(n){const s=this.state,c=this.config;if(!s._pointerActive)return;const i=Ha(n);if(s._pointerId!==void 0&&i!==s._pointerId)return;const r=Pc(n);if(document.pointerLockElement===n.target?s._delta=[n.movementX,n.movementY]:(s._delta=Zt.sub(r,s._values),this.computeValues(r)),Zt.addTo(s._movement,s._delta),this.compute(n),s._delayed&&s.intentional){this.timeoutStore.remove("dragDelay"),s.active=!1,this.startPointerDrag(n);return}if(c.preventScrollAxis&&!s._preventScroll)if(s.axis)if(s.axis===c.preventScrollAxis||c.preventScrollAxis==="xy"){s._active=!1,this.clean();return}else{this.timeoutStore.remove("startPointerDrag"),this.startPointerDrag(n);return}else return;this.emit()}pointerUp(n){this.ctrl.setEventIds(n);try{this.config.pointerCapture&&n.target.hasPointerCapture(n.pointerId)&&n.target.releasePointerCapture(n.pointerId)}catch{}const s=this.state,c=this.config;if(!s._active||!s._pointerActive)return;const i=Ha(n);if(s._pointerId!==void 0&&i!==s._pointerId)return;this.state._pointerActive=!1,this.setActive(),this.compute(n);const[r,l]=s._distance;if(s.tap=r<=c.tapsThreshold&&l<=c.tapsThreshold,s.tap&&c.filterTaps)s._force=!0;else{const[f,u]=s._delta,[p,h]=s._movement,[g,v]=c.swipe.velocity,[x,w]=c.swipe.distance,k=c.swipe.duration;if(s.elapsedTimeg&&Math.abs(p)>x&&(s.swipe[0]=Math.sign(f)),C>v&&Math.abs(h)>w&&(s.swipe[1]=Math.sign(u))}}this.emit()}pointerClick(n){!this.state.tap&&n.detail>0&&(n.preventDefault(),n.stopPropagation())}setupPointer(n){const s=this.config,c=s.device;s.pointerLock&&n.currentTarget.requestPointerLock(),s.pointerCapture||(this.eventStore.add(this.sharedConfig.window,c,"change",this.pointerMove.bind(this)),this.eventStore.add(this.sharedConfig.window,c,"end",this.pointerUp.bind(this)),this.eventStore.add(this.sharedConfig.window,c,"cancel",this.pointerUp.bind(this)))}pointerClean(){this.config.pointerLock&&document.pointerLockElement===this.state.currentTarget&&document.exitPointerLock()}preventScroll(n){this.state._preventScroll&&n.cancelable&&n.preventDefault()}setupScrollPrevention(n){this.state._preventScroll=!1,np(n);const s=this.eventStore.add(this.sharedConfig.window,"touch","change",this.preventScroll.bind(this),{passive:!1});this.eventStore.add(this.sharedConfig.window,"touch","end",s),this.eventStore.add(this.sharedConfig.window,"touch","cancel",s),this.timeoutStore.add("startPointerDrag",this.startPointerDrag.bind(this),this.config.preventScrollDelay,n)}setupDelayTrigger(n){this.state._delayed=!0,this.timeoutStore.add("dragDelay",()=>{this.state._step=[0,0],this.startPointerDrag(n)},this.config.delay)}keyDown(n){const s=Lc[n.key];if(s){const c=this.state,i=n.shiftKey?10:n.altKey?.1:1;this.start(n),c._delta=s(this.config.keyboardDisplacement,i),c._keyboardActive=!0,Zt.addTo(c._movement,c._delta),this.compute(n),this.emit()}}keyUp(n){n.key in Lc&&(this.state._keyboardActive=!1,this.setActive(),this.compute(n),this.emit())}bind(n){const s=this.config.device;n(s,"start",this.pointerDown.bind(this)),this.config.pointerCapture&&(n(s,"change",this.pointerMove.bind(this)),n(s,"end",this.pointerUp.bind(this)),n(s,"cancel",this.pointerUp.bind(this)),n("lostPointerCapture","",this.pointerUp.bind(this))),this.config.keys&&(n("key","down",this.keyDown.bind(this)),n("key","up",this.keyUp.bind(this))),this.config.filterTaps&&n("click","",this.pointerClick.bind(this),{capture:!0,passive:!1})}}function np(o){"persist"in o&&typeof o.persist=="function"&&o.persist()}const Po=typeof window<"u"&&window.document&&window.document.createElement;function Jf(){return Po&&"ontouchstart"in window}function rp(){return Jf()||Po&&window.navigator.maxTouchPoints>1}function ip(){return Po&&"onpointerdown"in window}function op(){return Po&&"exitPointerLock"in window.document}function sp(){try{return"constructor"in GestureEvent}catch{return!1}}const In={isBrowser:Po,gesture:sp(),touch:Jf(),touchscreen:rp(),pointer:ip(),pointerLock:op()},ap=250,lp=180,up=.5,cp=50,fp=250,dp=10,Uc={mouse:0,touch:0,pen:8},hp=ft(ft({},To),{},{device(o,n,{pointer:{touch:s=!1,lock:c=!1,mouse:i=!1}={}}){return this.pointerLock=c&&In.pointerLock,In.touch&&s?"touch":this.pointerLock?"mouse":In.pointer&&!i?"pointer":In.touch?"touch":"mouse"},preventScrollAxis(o,n,{preventScroll:s}){if(this.preventScrollDelay=typeof s=="number"?s:s||s===void 0&&o?ap:void 0,!(!In.touchscreen||s===!1))return o||(s!==void 0?"y":void 0)},pointerCapture(o,n,{pointer:{capture:s=!0,buttons:c=1,keys:i=!0}={}}){return this.pointerButtons=c,this.keys=i,!this.pointerLock&&this.device==="pointer"&&s},threshold(o,n,{filterTaps:s=!1,tapsThreshold:c=3,axis:i=void 0}){const r=Zt.toVector(o,s?c:i?1:0);return this.filterTaps=s,this.tapsThreshold=c,r},swipe({velocity:o=up,distance:n=cp,duration:s=fp}={}){return{velocity:this.transform(Zt.toVector(o)),distance:this.transform(Zt.toVector(n)),duration:s}},delay(o=0){switch(o){case!0:return lp;case!1:return 0;default:return o}},axisThreshold(o){return o?ft(ft({},Uc),o):Uc},keyboardDisplacement(o=dp){return o}});ft(ft({},Kf),{},{device(o,n,{shared:s,pointer:{touch:c=!1}={}}){if(s.target&&!In.touch&&In.gesture)return"gesture";if(In.touch&&c)return"touch";if(In.touchscreen){if(In.pointer)return"pointer";if(In.touch)return"touch"}},bounds(o,n,{scaleBounds:s={},angleBounds:c={}}){const i=l=>{const f=Mc(Ds(s,l),{min:-1/0,max:1/0});return[f.min,f.max]},r=l=>{const f=Mc(Ds(c,l),{min:-1/0,max:1/0});return[f.min,f.max]};return typeof s!="function"&&typeof c!="function"?[i(),r()]:l=>[i(l),r(l)]},threshold(o,n,s){return this.lockDirection=s.axis==="lock",Zt.toVector(o,this.lockDirection?[.1,3]:0)},modifierKey(o){return o===void 0?"ctrlKey":o},pinchOnWheel(o=!0){return o}});ft(ft({},To),{},{mouseOnly:(o=!0)=>o});ft(ft({},To),{},{mouseOnly:(o=!0)=>o});const qf=new Map,ll=new Map;function pp(o){qf.set(o.key,o.engine),ll.set(o.key,o.resolver)}const mp={key:"drag",engine:tp,resolver:hp};function gp(o,n){if(o==null)return{};var s={},c=Object.keys(o),i,r;for(r=0;r=0)&&(s[i]=o[i]);return s}function vp(o,n){if(o==null)return{};var s=gp(o,n),c,i;if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(o);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(o,c)&&(s[c]=o[c])}return s}const yp={target(o){if(o)return()=>"current"in o?o.current:o},enabled(o=!0){return o},window(o=In.isBrowser?window:void 0){return o},eventOptions({passive:o=!0,capture:n=!1}={}){return{passive:o,capture:n}},transform(o){return o}},xp=["target","eventOptions","window","enabled","transform"];function bs(o={},n){const s={};for(const[c,i]of Object.entries(n))switch(typeof i){case"function":s[c]=i.call(s,o[c],c,o);break;case"object":s[c]=bs(o[c],i);break;case"boolean":i&&(s[c]=o[c]);break}return s}function Sp(o,n,s={}){const c=o,{target:i,eventOptions:r,window:l,enabled:f,transform:u}=c,p=vp(c,xp);if(s.shared=bs({target:i,eventOptions:r,window:l,enabled:f,transform:u},yp),n){const h=ll.get(n);s[n]=bs(ft({shared:s.shared},p),h)}else for(const h in p){const g=ll.get(h);g&&(s[h]=bs(ft({shared:s.shared},p[h]),g))}return s}class $f{constructor(n,s){un(this,"_listeners",new Set),this._ctrl=n,this._gestureKey=s}add(n,s,c,i,r){const l=this._listeners,f=Wh(s,c),u=this._gestureKey?this._ctrl.config[this._gestureKey].eventOptions:{},p=ft(ft({},u),r);n.addEventListener(f,i,p);const h=()=>{n.removeEventListener(f,i,p),l.delete(h)};return l.add(h),h}clean(){this._listeners.forEach(n=>n()),this._listeners.clear()}}class wp{constructor(){un(this,"_timeouts",new Map)}add(n,s,c=140,...i){this.remove(n),this._timeouts.set(n,window.setTimeout(s,c,...i))}remove(n){const s=this._timeouts.get(n);s&&window.clearTimeout(s)}clean(){this._timeouts.forEach(n=>void window.clearTimeout(n)),this._timeouts.clear()}}class Cp{constructor(n){un(this,"gestures",new Set),un(this,"_targetEventStore",new $f(this)),un(this,"gestureEventStores",{}),un(this,"gestureTimeoutStores",{}),un(this,"handlers",{}),un(this,"config",{}),un(this,"pointerIds",new Set),un(this,"touchIds",new Set),un(this,"state",{shared:{shiftKey:!1,metaKey:!1,ctrlKey:!1,altKey:!1}}),_p(this,n)}setEventIds(n){if(Fs(n))return this.touchIds=new Set(Vh(n)),this.touchIds;if("pointerId"in n)return n.type==="pointerup"||n.type==="pointercancel"?this.pointerIds.delete(n.pointerId):n.type==="pointerdown"&&this.pointerIds.add(n.pointerId),this.pointerIds}applyHandlers(n,s){this.handlers=n,this.nativeHandlers=s}applyConfig(n,s){this.config=Sp(n,s,this.config)}clean(){this._targetEventStore.clean();for(const n of this.gestures)this.gestureEventStores[n].clean(),this.gestureTimeoutStores[n].clean()}effect(){return this.config.shared.target&&this.bind(),()=>this._targetEventStore.clean()}bind(...n){const s=this.config.shared,c={};let i;if(!(s.target&&(i=s.target(),!i))){if(s.enabled){for(const l of this.gestures){const f=this.config[l],u=Rc(c,f.eventOptions,!!i);if(f.enabled){const p=qf.get(l);new p(this,n,l).bind(u)}}const r=Rc(c,s.eventOptions,!!i);for(const l in this.nativeHandlers)r(l,"",f=>this.nativeHandlers[l](ft(ft({},this.state.shared),{},{event:f,args:n})),void 0,!0)}for(const r in c)c[r]=Qh(...c[r]);if(!i)return c;for(const r in c){const{device:l,capture:f,passive:u}=Nh(r);this._targetEventStore.add(i,l,"",c[r],{capture:f,passive:u})}}}}function _i(o,n){o.gestures.add(n),o.gestureEventStores[n]=new $f(o,n),o.gestureTimeoutStores[n]=new wp}function _p(o,n){n.drag&&_i(o,"drag"),n.wheel&&_i(o,"wheel"),n.scroll&&_i(o,"scroll"),n.move&&_i(o,"move"),n.pinch&&_i(o,"pinch"),n.hover&&_i(o,"hover")}const Rc=(o,n,s)=>(c,i,r,l={},f=!1)=>{var u,p;const h=(u=l.capture)!==null&&u!==void 0?u:n.capture,g=(p=l.passive)!==null&&p!==void 0?p:n.passive;let v=f?c:zh(c,i,h);s&&g&&(v+="Passive"),o[v]=o[v]||[],o[v].push(r)};function Ep(o,n={},s,c){const i=er.useMemo(()=>new Cp(o),[]);if(i.applyHandlers(o,c),i.applyConfig(n,s),er.useEffect(i.effect.bind(i)),er.useEffect(()=>i.clean.bind(i),[]),n.target===void 0)return i.bind.bind(i)}function bm(o,n){return pp(mp),Ep({drag:o},n||{},"drag")}function kp(o){let n=0;for(let c in o.attributes){const i=o.getAttribute(c);n+=i.count*i.itemSize*i.array.BYTES_PER_ELEMENT}const s=o.getIndex();return n+=s?s.count*s.itemSize*s.array.BYTES_PER_ELEMENT:0,n}const Ac=new Is,_s=new ct;class Pl extends gf{constructor(){super(),this.isLineSegmentsGeometry=!0,this.type="LineSegmentsGeometry";const n=[-1,2,0,1,2,0,-1,1,0,1,1,0,-1,0,0,1,0,0,-1,-1,0,1,-1,0],s=[-1,2,1,2,-1,1,1,1,-1,-1,1,-1,-1,-2,1,-2],c=[0,2,1,2,3,1,2,4,3,4,5,3,4,6,5,6,7,5];this.setIndex(c),this.setAttribute("position",new el(n,3)),this.setAttribute("uv",new el(s,2))}applyMatrix4(n){const s=this.attributes.instanceStart,c=this.attributes.instanceEnd;return s!==void 0&&(s.applyMatrix4(n),c.applyMatrix4(n),s.needsUpdate=!0),this.boundingBox!==null&&this.computeBoundingBox(),this.boundingSphere!==null&&this.computeBoundingSphere(),this}setPositions(n){let s;n instanceof Float32Array?s=n:Array.isArray(n)&&(s=new Float32Array(n));const c=new tl(s,6,1);return this.setAttribute("instanceStart",new Mi(c,3,0)),this.setAttribute("instanceEnd",new Mi(c,3,3)),this.computeBoundingBox(),this.computeBoundingSphere(),this}setColors(n){let s;n instanceof Float32Array?s=n:Array.isArray(n)&&(s=new Float32Array(n));const c=new tl(s,6,1);return this.setAttribute("instanceColorStart",new Mi(c,3,0)),this.setAttribute("instanceColorEnd",new Mi(c,3,3)),this}fromWireframeGeometry(n){return this.setPositions(n.attributes.position.array),this}fromEdgesGeometry(n){return this.setPositions(n.attributes.position.array),this}fromMesh(n){return this.fromWireframeGeometry(new m1(n.geometry)),this}fromLineSegments(n){const s=n.geometry;return this.setPositions(s.attributes.position.array),this}computeBoundingBox(){this.boundingBox===null&&(this.boundingBox=new Is);const n=this.attributes.instanceStart,s=this.attributes.instanceEnd;n!==void 0&&s!==void 0&&(this.boundingBox.setFromBufferAttribute(n),Ac.setFromBufferAttribute(s),this.boundingBox.union(Ac))}computeBoundingSphere(){this.boundingSphere===null&&(this.boundingSphere=new wl),this.boundingBox===null&&this.computeBoundingBox();const n=this.attributes.instanceStart,s=this.attributes.instanceEnd;if(n!==void 0&&s!==void 0){const c=this.boundingSphere.center;this.boundingBox.getCenter(c);let i=0;for(let r=0,l=n.count;r #include #include @@ -456,15 +456,15 @@ No matching component was found for: #include } - `,clipping:!0}),this.isLineMaterial=!0,Object.defineProperties(this,{color:{enumerable:!0,get:function(){return this.uniforms.diffuse.value},set:function(s){this.uniforms.diffuse.value=s}},worldUnits:{enumerable:!0,get:function(){return"WORLD_UNITS"in this.defines},set:function(s){s===!0?this.defines.WORLD_UNITS="":delete this.defines.WORLD_UNITS}},linewidth:{enumerable:!0,get:function(){return this.uniforms.linewidth.value},set:function(s){this.uniforms.linewidth.value=s}},dashed:{enumerable:!0,get:function(){return"USE_DASH"in this.defines},set(s){!!s!="USE_DASH"in this.defines&&(this.needsUpdate=!0),s===!0?this.defines.USE_DASH="":delete this.defines.USE_DASH}},dashScale:{enumerable:!0,get:function(){return this.uniforms.dashScale.value},set:function(s){this.uniforms.dashScale.value=s}},dashSize:{enumerable:!0,get:function(){return this.uniforms.dashSize.value},set:function(s){this.uniforms.dashSize.value=s}},dashOffset:{enumerable:!0,get:function(){return this.uniforms.dashOffset.value},set:function(s){this.uniforms.dashOffset.value=s}},gapSize:{enumerable:!0,get:function(){return this.uniforms.gapSize.value},set:function(s){this.uniforms.gapSize.value=s}},opacity:{enumerable:!0,get:function(){return this.uniforms.opacity.value},set:function(s){this.uniforms.opacity.value=s}},resolution:{enumerable:!0,get:function(){return this.uniforms.resolution.value},set:function(s){this.uniforms.resolution.value.copy(s)}},alphaToCoverage:{enumerable:!0,get:function(){return"USE_ALPHA_TO_COVERAGE"in this.defines},set:function(s){!!s!="USE_ALPHA_TO_COVERAGE"in this.defines&&(this.needsUpdate=!0),s===!0?(this.defines.USE_ALPHA_TO_COVERAGE="",this.extensions.derivatives=!0):(delete this.defines.USE_ALPHA_TO_COVERAGE,this.extensions.derivatives=!1)}}}),this.setValues(n)}}const Ic=new ct,Dc=new ct,Ot=new Ai,Ft=new Ai,qn=new Ai,Va=new ct,Za=new vf,Gt=new y1,Oc=new ct,Es=new Ds,ks=new wl,$n=new Ai;let tr,ul,td,Qr;function Fc(o,n,s){return $n.set(0,0,-n,1).applyMatrix4(o.projectionMatrix),$n.multiplyScalar(1/$n.w),$n.x=Qr/s.width,$n.y=Qr/s.height,$n.applyMatrix4(o.projectionMatrixInverse),$n.multiplyScalar(1/$n.w),Math.abs(Math.max($n.x,$n.y))}function Tp(o,n){for(let s=0,c=ul.count;sh&&Ft.z>h)continue;if(Ot.z>h){const S=Ot.z-Ft.z,T=(Ot.z-h)/S;Ot.lerp(Ft,T)}else if(Ft.z>h){const S=Ft.z-Ot.z,T=(Ft.z-h)/S;Ft.lerp(Ot,T)}Ot.applyMatrix4(c),Ft.applyMatrix4(c),Ot.multiplyScalar(1/Ot.w),Ft.multiplyScalar(1/Ft.w),Ot.x*=r.x/2,Ot.y*=r.y/2,Ft.x*=r.x/2,Ft.y*=r.y/2,Gt.start.copy(Ot),Gt.start.z=0,Gt.end.copy(Ft),Gt.end.z=0;const w=Gt.closestPointToPointParameter(Va,!0);Gt.at(w,Oc);const k=yf.lerp(Ot.z,Ft.z,w),_=k>=-1&&k<=1,C=Va.distanceTo(Oc)w.size),g=P.useMemo(()=>l?new nd:new Mp,[l]),[v]=P.useState(()=>new Ml),x=P.useMemo(()=>{const w=l?new Pl:new ed,k=n.map(_=>{const C=Array.isArray(_);return _ instanceof ct?[_.x,_.y,_.z]:_ instanceof $r?[_.x,_.y,0]:C&&_.length===3?[_[0],_[1],_[2]]:C&&_.length===2?[_[0],_[1],0]:_});if(w.setPositions(k.flat()),c){const _=c.map(C=>C instanceof wo?C.toArray():C);w.setColors(_.flat())}return w},[n,l,c]);return P.useLayoutEffect(()=>{g.computeLineDistances()},[n,g]),P.useLayoutEffect(()=>{f?v.defines.USE_DASH="":delete v.defines.USE_DASH,v.needsUpdate=!0},[f,v]),P.useEffect(()=>()=>x.dispose(),[x]),P.createElement("primitive",qr({object:g,ref:p},u),P.createElement("primitive",{object:x,attach:"geometry"}),P.createElement("primitive",qr({object:v,attach:"material",color:s,vertexColors:!!c,resolution:[h.width,h.height],linewidth:i??r,dashed:f},u)))});function bp(){var o=Object.create(null);function n(i,r){var l=i.id,f=i.name,u=i.dependencies;u===void 0&&(u=[]);var p=i.init;p===void 0&&(p=function(){});var h=i.getTransferables;if(h===void 0&&(h=null),!o[l])try{u=u.map(function(v){return v&&v.isWorkerModule&&(n(v,function(x){if(x instanceof Error)throw x}),v=o[v.id].value),v}),p=c("<"+f+">.init",p),h&&(h=c("<"+f+">.getTransferables",h));var g=null;typeof p=="function"?g=p.apply(void 0,u):console.error("worker module init function failed to rehydrate"),o[l]={id:l,value:g,getTransferables:h},r(g)}catch(v){v&&v.noLog||console.error(v),r(v)}}function s(i,r){var l,f=i.id,u=i.args;(!o[f]||typeof o[f].value!="function")&&r(new Error("Worker module "+f+": not found or its 'init' did not return a function"));try{var p=(l=o[f]).value.apply(l,u);p&&typeof p.then=="function"?p.then(h,function(g){return r(g instanceof Error?g:new Error(""+g))}):h(p)}catch(g){r(g)}function h(g){try{var v=o[f].getTransferables&&o[f].getTransferables(g);(!v||!Array.isArray(v)||!v.length)&&(v=void 0),r(g,v)}catch(x){console.error(x),r(x)}}}function c(i,r){var l=void 0;self.troikaDefine=function(u){return l=u};var f=URL.createObjectURL(new Blob(["/** "+i.replace(/\*/g,"")+` **/ + `,clipping:!0}),this.isLineMaterial=!0,Object.defineProperties(this,{color:{enumerable:!0,get:function(){return this.uniforms.diffuse.value},set:function(s){this.uniforms.diffuse.value=s}},worldUnits:{enumerable:!0,get:function(){return"WORLD_UNITS"in this.defines},set:function(s){s===!0?this.defines.WORLD_UNITS="":delete this.defines.WORLD_UNITS}},linewidth:{enumerable:!0,get:function(){return this.uniforms.linewidth.value},set:function(s){this.uniforms.linewidth.value=s}},dashed:{enumerable:!0,get:function(){return"USE_DASH"in this.defines},set(s){!!s!="USE_DASH"in this.defines&&(this.needsUpdate=!0),s===!0?this.defines.USE_DASH="":delete this.defines.USE_DASH}},dashScale:{enumerable:!0,get:function(){return this.uniforms.dashScale.value},set:function(s){this.uniforms.dashScale.value=s}},dashSize:{enumerable:!0,get:function(){return this.uniforms.dashSize.value},set:function(s){this.uniforms.dashSize.value=s}},dashOffset:{enumerable:!0,get:function(){return this.uniforms.dashOffset.value},set:function(s){this.uniforms.dashOffset.value=s}},gapSize:{enumerable:!0,get:function(){return this.uniforms.gapSize.value},set:function(s){this.uniforms.gapSize.value=s}},opacity:{enumerable:!0,get:function(){return this.uniforms.opacity.value},set:function(s){this.uniforms.opacity.value=s}},resolution:{enumerable:!0,get:function(){return this.uniforms.resolution.value},set:function(s){this.uniforms.resolution.value.copy(s)}},alphaToCoverage:{enumerable:!0,get:function(){return"USE_ALPHA_TO_COVERAGE"in this.defines},set:function(s){!!s!="USE_ALPHA_TO_COVERAGE"in this.defines&&(this.needsUpdate=!0),s===!0?(this.defines.USE_ALPHA_TO_COVERAGE="",this.extensions.derivatives=!0):(delete this.defines.USE_ALPHA_TO_COVERAGE,this.extensions.derivatives=!1)}}}),this.setValues(n)}}const Dc=new ct,Ic=new ct,Ft=new Ai,Ot=new Ai,qn=new Ai,Va=new ct,Za=new vf,Gt=new y1,Fc=new ct,Es=new Is,ks=new wl,$n=new Ai;let tr,ul,td,Qr;function Oc(o,n,s){return $n.set(0,0,-n,1).applyMatrix4(o.projectionMatrix),$n.multiplyScalar(1/$n.w),$n.x=Qr/s.width,$n.y=Qr/s.height,$n.applyMatrix4(o.projectionMatrixInverse),$n.multiplyScalar(1/$n.w),Math.abs(Math.max($n.x,$n.y))}function Tp(o,n){for(let s=0,c=ul.count;sh&&Ot.z>h)continue;if(Ft.z>h){const S=Ft.z-Ot.z,T=(Ft.z-h)/S;Ft.lerp(Ot,T)}else if(Ot.z>h){const S=Ot.z-Ft.z,T=(Ot.z-h)/S;Ot.lerp(Ft,T)}Ft.applyMatrix4(c),Ot.applyMatrix4(c),Ft.multiplyScalar(1/Ft.w),Ot.multiplyScalar(1/Ot.w),Ft.x*=r.x/2,Ft.y*=r.y/2,Ot.x*=r.x/2,Ot.y*=r.y/2,Gt.start.copy(Ft),Gt.start.z=0,Gt.end.copy(Ot),Gt.end.z=0;const w=Gt.closestPointToPointParameter(Va,!0);Gt.at(w,Fc);const k=yf.lerp(Ft.z,Ot.z,w),_=k>=-1&&k<=1,C=Va.distanceTo(Fc)w.size),g=P.useMemo(()=>l?new nd:new Mp,[l]),[v]=P.useState(()=>new Ml),x=P.useMemo(()=>{const w=l?new Pl:new ed,k=n.map(_=>{const C=Array.isArray(_);return _ instanceof ct?[_.x,_.y,_.z]:_ instanceof $r?[_.x,_.y,0]:C&&_.length===3?[_[0],_[1],_[2]]:C&&_.length===2?[_[0],_[1],0]:_});if(w.setPositions(k.flat()),c){const _=c.map(C=>C instanceof wo?C.toArray():C);w.setColors(_.flat())}return w},[n,l,c]);return P.useLayoutEffect(()=>{g.computeLineDistances()},[n,g]),P.useLayoutEffect(()=>{f?v.defines.USE_DASH="":delete v.defines.USE_DASH,v.needsUpdate=!0},[f,v]),P.useEffect(()=>()=>x.dispose(),[x]),P.createElement("primitive",qr({object:g,ref:p},u),P.createElement("primitive",{object:x,attach:"geometry"}),P.createElement("primitive",qr({object:v,attach:"material",color:s,vertexColors:!!c,resolution:[h.width,h.height],linewidth:i??r,dashed:f},u)))});function bp(){var o=Object.create(null);function n(i,r){var l=i.id,f=i.name,u=i.dependencies;u===void 0&&(u=[]);var p=i.init;p===void 0&&(p=function(){});var h=i.getTransferables;if(h===void 0&&(h=null),!o[l])try{u=u.map(function(v){return v&&v.isWorkerModule&&(n(v,function(x){if(x instanceof Error)throw x}),v=o[v.id].value),v}),p=c("<"+f+">.init",p),h&&(h=c("<"+f+">.getTransferables",h));var g=null;typeof p=="function"?g=p.apply(void 0,u):console.error("worker module init function failed to rehydrate"),o[l]={id:l,value:g,getTransferables:h},r(g)}catch(v){v&&v.noLog||console.error(v),r(v)}}function s(i,r){var l,f=i.id,u=i.args;(!o[f]||typeof o[f].value!="function")&&r(new Error("Worker module "+f+": not found or its 'init' did not return a function"));try{var p=(l=o[f]).value.apply(l,u);p&&typeof p.then=="function"?p.then(h,function(g){return r(g instanceof Error?g:new Error(""+g))}):h(p)}catch(g){r(g)}function h(g){try{var v=o[f].getTransferables&&o[f].getTransferables(g);(!v||!Array.isArray(v)||!v.length)&&(v=void 0),r(g,v)}catch(x){console.error(x),r(x)}}}function c(i,r){var l=void 0;self.troikaDefine=function(u){return l=u};var f=URL.createObjectURL(new Blob(["/** "+i.replace(/\*/g,"")+` **/ troikaDefine( `+r+` )`],{type:"application/javascript"}));try{importScripts(f)}catch(u){console.error(u)}return URL.revokeObjectURL(f),delete self.troikaDefine,l}self.addEventListener("message",function(i){var r=i.data,l=r.messageId,f=r.action,u=r.data;try{f==="registerModule"&&n(u,function(p){p instanceof Error?postMessage({messageId:l,success:!1,error:p.message}):postMessage({messageId:l,success:!0,result:{isCallable:typeof p=="function"}})}),f==="callModule"&&s(u,function(p,h){p instanceof Error?postMessage({messageId:l,success:!1,error:p.message}):postMessage({messageId:l,success:!0,result:p},h||void 0)})}catch(p){postMessage({messageId:l,success:!1,error:p.stack})}})}function Lp(o){var n=function(){for(var s=[],c=arguments.length;c--;)s[c]=arguments[c];return n._getInitResult().then(function(i){if(typeof i=="function")return i.apply(void 0,s);throw new Error("Worker module function was called but `init` did not return a callable function")})};return n._getInitResult=function(){var s=o.dependencies,c=o.init;s=Array.isArray(s)?s.map(function(r){return r&&r._getInitResult?r._getInitResult():r}):[];var i=Promise.all(s).then(function(r){return c.apply(null,r)});return n._getInitResult=function(){return i},i},n}var rd=function(){var o=!1;if(typeof window<"u"&&typeof window.document<"u")try{var n=new Worker(URL.createObjectURL(new Blob([""],{type:"application/javascript"})));n.terminate(),o=!0}catch(s){typeof process<"u",console.log("Troika createWorkerModule: web workers not allowed; falling back to main thread execution. Cause: ["+s.message+"]")}return rd=function(){return o},o},Up=0,Rp=0,Xa=!1,xo=Object.create(null),So=Object.create(null),cl=Object.create(null);function Mo(o){if((!o||typeof o.init!="function")&&!Xa)throw new Error("requires `options.init` function");var n=o.dependencies,s=o.init,c=o.getTransferables,i=o.workerId;if(!rd())return Lp(o);i==null&&(i="#default");var r="workerModule"+ ++Up,l=o.name||r,f=null;n=n&&n.map(function(p){return typeof p=="function"&&!p.workerModuleData&&(Xa=!0,p=Mo({workerId:i,name:"<"+l+"> function dependency: "+p.name,init:`function(){return ( `+Ls(p)+` -)}`}),Xa=!1),p&&p.workerModuleData&&(p=p.workerModuleData),p});function u(){for(var p=[],h=arguments.length;h--;)p[h]=arguments[h];if(!f){f=jc(i,"registerModule",u.workerModuleData);var g=function(){f=null,So[i].delete(g)};(So[i]||(So[i]=new Set)).add(g)}return f.then(function(v){var x=v.isCallable;if(x)return jc(i,"callModule",{id:r,args:p});throw new Error("Worker module function was called but `init` did not return a callable function")})}return u.workerModuleData={isWorkerModule:!0,id:r,name:l,dependencies:n,init:Ls(s),getTransferables:c&&Ls(c)},u}function Ap(o){So[o]&&So[o].forEach(function(n){n()}),xo[o]&&(xo[o].terminate(),delete xo[o])}function Ls(o){var n=o.toString();return!/^function/.test(n)&&/^\w+\s*\(/.test(n)&&(n="function "+n),n}function Ip(o){var n=xo[o];if(!n){var s=Ls(bp);n=xo[o]=new Worker(URL.createObjectURL(new Blob(["/** Worker Module Bootstrap: "+o.replace(/\*/g,"")+` **/ +)}`}),Xa=!1),p&&p.workerModuleData&&(p=p.workerModuleData),p});function u(){for(var p=[],h=arguments.length;h--;)p[h]=arguments[h];if(!f){f=jc(i,"registerModule",u.workerModuleData);var g=function(){f=null,So[i].delete(g)};(So[i]||(So[i]=new Set)).add(g)}return f.then(function(v){var x=v.isCallable;if(x)return jc(i,"callModule",{id:r,args:p});throw new Error("Worker module function was called but `init` did not return a callable function")})}return u.workerModuleData={isWorkerModule:!0,id:r,name:l,dependencies:n,init:Ls(s),getTransferables:c&&Ls(c)},u}function Ap(o){So[o]&&So[o].forEach(function(n){n()}),xo[o]&&(xo[o].terminate(),delete xo[o])}function Ls(o){var n=o.toString();return!/^function/.test(n)&&/^\w+\s*\(/.test(n)&&(n="function "+n),n}function Dp(o){var n=xo[o];if(!n){var s=Ls(bp);n=xo[o]=new Worker(URL.createObjectURL(new Blob(["/** Worker Module Bootstrap: "+o.replace(/\*/g,"")+` **/ -;(`+s+")()"],{type:"application/javascript"}))),n.onmessage=function(c){var i=c.data,r=i.messageId,l=cl[r];if(!l)throw new Error("WorkerModule response with empty or unknown messageId");delete cl[r],l(i)}}return n}function jc(o,n,s){return new Promise(function(c,i){var r=++Rp;cl[r]=function(l){l.success?c(l.result):i(new Error("Error in worker "+n+" call: "+l.error))},Ip(o).postMessage({messageId:r,action:n,data:s})})}function id(){var o=function(n){function s(B,H,M,j,X,q,V,ie){var Y=1-V;ie.x=Y*Y*B+2*Y*V*M+V*V*X,ie.y=Y*Y*H+2*Y*V*j+V*V*q}function c(B,H,M,j,X,q,V,ie,Y,ne){var ue=1-Y;ne.x=ue*ue*ue*B+3*ue*ue*Y*M+3*ue*Y*Y*X+Y*Y*Y*V,ne.y=ue*ue*ue*H+3*ue*ue*Y*j+3*ue*Y*Y*q+Y*Y*Y*ie}function i(B,H){for(var M=/([MLQCZ])([^MLQCZ]*)/g,j,X,q,V,ie;j=M.exec(B);){var Y=j[2].replace(/^\s*|\s*$/g,"").split(/[,\s]+/).map(function(ne){return parseFloat(ne)});switch(j[1]){case"M":V=X=Y[0],ie=q=Y[1];break;case"L":(Y[0]!==V||Y[1]!==ie)&&H("L",V,ie,V=Y[0],ie=Y[1]);break;case"Q":{H("Q",V,ie,V=Y[2],ie=Y[3],Y[0],Y[1]);break}case"C":{H("C",V,ie,V=Y[4],ie=Y[5],Y[0],Y[1],Y[2],Y[3]);break}case"Z":(V!==X||ie!==q)&&H("L",V,ie,X,q);break}}}function r(B,H,M){M===void 0&&(M=16);var j={x:0,y:0};i(B,function(X,q,V,ie,Y,ne,ue,fe,$){switch(X){case"L":H(q,V,ie,Y);break;case"Q":{for(var te=q,Se=V,Re=1;Re0;)Oe[Pe]=arguments[Pe+2];var Fe=me[He]||(me[He]=M.getUniformLocation(oe,He));M["uniform"+ge].apply(M,[Fe].concat(Oe))},setAttribute:function(ge,He,Oe,Pe,Fe){var Ve=_e[ge];Ve||(Ve=_e[ge]={buf:M.createBuffer(),loc:M.getAttribLocation(oe,ge),data:null}),M.bindBuffer(M.ARRAY_BUFFER,Ve.buf),M.vertexAttribPointer(Ve.loc,He,M.FLOAT,!1,0,0),M.enableVertexAttribArray(Ve.loc),X?M.vertexAttribDivisor(Ve.loc,Pe):ue("ANGLE_instanced_arrays").vertexAttribDivisorANGLE(Ve.loc,Pe),Fe!==Ve.data&&(M.bufferData(M.ARRAY_BUFFER,Fe,Oe),Ve.data=Fe)}})}}}V[ce].transaction(ae)},te=function(ce,Ce){Y++;try{M.activeTexture(M.TEXTURE0+Y);var Me=ie[ce];Me||(Me=ie[ce]=M.createTexture(),M.bindTexture(M.TEXTURE_2D,Me),M.texParameteri(M.TEXTURE_2D,M.TEXTURE_MIN_FILTER,M.NEAREST),M.texParameteri(M.TEXTURE_2D,M.TEXTURE_MAG_FILTER,M.NEAREST)),M.bindTexture(M.TEXTURE_2D,Me),Ce(Me,Y)}finally{Y--}},Se=function(ce,Ce,Me){var ae=M.createFramebuffer();ne.push(ae),M.bindFramebuffer(M.FRAMEBUFFER,ae),M.activeTexture(M.TEXTURE0+Ce),M.bindTexture(M.TEXTURE_2D,ce),M.framebufferTexture2D(M.FRAMEBUFFER,M.COLOR_ATTACHMENT0,M.TEXTURE_2D,ce,0);try{Me(ae)}finally{M.deleteFramebuffer(ae),M.bindFramebuffer(M.FRAMEBUFFER,ne[--ne.length-1]||null)}},Re=function(){q={},V={},ie={},Y=-1,ne.length=0};var X=typeof WebGL2RenderingContext<"u"&&M instanceof WebGL2RenderingContext,q={},V={},ie={},Y=-1,ne=[];M.canvas.addEventListener("webglcontextlost",function(ce){Re(),ce.preventDefault()},!1),u.set(M,j={gl:M,isWebGL2:X,getExtension:ue,withProgram:$,withTexture:te,withTextureFramebuffer:Se,handleContextLoss:Re})}H(j)}function g(B,H,M,j,X,q,V,ie){V===void 0&&(V=15),ie===void 0&&(ie=null),h(B,function(Y){var ne=Y.gl,ue=Y.withProgram,fe=Y.withTexture;fe("copy",function($,te){ne.texImage2D(ne.TEXTURE_2D,0,ne.RGBA,X,q,0,ne.RGBA,ne.UNSIGNED_BYTE,H),ue("copy",l,f,function(Se){var Re=Se.setUniform,ce=Se.setAttribute;ce("aUV",2,ne.STATIC_DRAW,0,new Float32Array([0,0,2,0,0,2])),Re("1i","image",te),ne.bindFramebuffer(ne.FRAMEBUFFER,ie||null),ne.disable(ne.BLEND),ne.colorMask(V&8,V&4,V&2,V&1),ne.viewport(M,j,X,q),ne.scissor(M,j,X,q),ne.drawArrays(ne.TRIANGLES,0,3)})})})}function v(B,H,M){var j=B.width,X=B.height;h(B,function(q){var V=q.gl,ie=new Uint8Array(j*X*4);V.readPixels(0,0,j,X,V.RGBA,V.UNSIGNED_BYTE,ie),B.width=H,B.height=M,g(V,ie,0,0,j,X)})}var x=Object.freeze({__proto__:null,withWebGLContext:h,renderImageData:g,resizeWebGLCanvasWithoutClearing:v});function w(B,H,M,j,X,q){q===void 0&&(q=1);var V=new Uint8Array(B*H),ie=j[2]-j[0],Y=j[3]-j[1],ne=[];r(M,function(ce,Ce,Me,ae){ne.push({x1:ce,y1:Ce,x2:Me,y2:ae,minX:Math.min(ce,Me),minY:Math.min(Ce,ae),maxX:Math.max(ce,Me),maxY:Math.max(Ce,ae)})}),ne.sort(function(ce,Ce){return ce.maxX-Ce.maxX});for(var ue=0;ueme.minX&&Ce-aeme.minY){var oe=C(ce,Ce,me.x1,me.y1,me.x2,me.y2);oeCe!=_e.y2>Ce&&ce<(_e.x2-_e.x1)*(Ce-_e.y1)/(_e.y2-_e.y1)+_e.x1;me&&(Me+=_e.y1<_e.y2?1:-1)}return Me!==0}}function k(B,H,M,j,X,q,V,ie,Y,ne){q===void 0&&(q=1),ie===void 0&&(ie=0),Y===void 0&&(Y=0),ne===void 0&&(ne=0),_(B,H,M,j,X,q,V,null,ie,Y,ne)}function _(B,H,M,j,X,q,V,ie,Y,ne,ue){q===void 0&&(q=1),Y===void 0&&(Y=0),ne===void 0&&(ne=0),ue===void 0&&(ue=0);for(var fe=w(B,H,M,j,X,q),$=new Uint8Array(fe.length*4),te=0;tep.y!=seg.w>p.y)&&(p.x<(seg.z-seg.x)*(p.y-seg.y)/(seg.w-seg.y)+seg.x);bool crossingUp=crossing&&vLineSegment.y1,1e>2,u>2,2wt>1,1>1,1ge>1,1wp>1,1j>1,f>1,hm>1,1>1,u>1,u6>1,1>1,+5,28>1,w>1,1>1,+3,b8>1,1>1,+3,1>3,-1>-1,3>1,1>1,+2,1s>1,1>1,x>1,th>1,1>1,+2,db>1,1>1,+3,3>1,1>1,+2,14qm>1,1>1,+1,4q>1,1e>2,u>2,2>1,+1",canonical:"6f1>-6dx,6dy>-6dx,6ec>-6ed,6ee>-6ed,6ww>2jj,-2ji>2jj,14r4>-1e7l,1e7m>-1e7l,1e7m>-1e5c,1e5d>-1e5b,1e5c>-14qx,14qy>-14qx,14vn>-1ecg,1ech>-1ecg,1edu>-1ecg,1eci>-1ecg,1eda>-1ecg,1eci>-1ecg,1eci>-168q,168r>-168q,168s>-14ye,14yf>-14ye"};function k(ae,_e){var me=36,oe=0,be=new Map,xe=_e&&new Map,we;return ae.split(",").forEach(function ge(He){if(He.indexOf("+")!==-1)for(var Oe=+He;Oe--;)ge(we);else{we=He;var Pe=He.split(">"),Fe=Pe[0],Ve=Pe[1];Fe=String.fromCodePoint(oe+=parseInt(Fe,me)),Ve=String.fromCodePoint(oe+=parseInt(Ve,me)),be.set(Fe,Ve),_e&&xe.set(Ve,Fe)}}),{map:be,reverseMap:xe}}var _,C,S;function T(){if(!_){var ae=k(w.pairs,!0),_e=ae.map,me=ae.reverseMap;_=_e,C=me,S=k(w.canonical,!1).map}}function A(ae){return T(),_.get(ae)||null}function R(ae){return T(),C.get(ae)||null}function b(ae){return T(),S.get(ae)||null}var O=c.L,z=c.R,Q=c.EN,ee=c.ES,N=c.ET,D=c.AN,J=c.CS,K=c.B,re=c.S,se=c.ON,pe=c.BN,G=c.NSM,B=c.AL,H=c.LRO,M=c.RLO,j=c.LRE,X=c.RLE,q=c.PDF,V=c.LRI,ie=c.RLI,Y=c.FSI,ne=c.PDI;function ue(ae,_e){for(var me=125,oe=new Uint32Array(ae.length),be=0;be0)Qe--;else if(ht>0){for(Je=0;!Be[Be.length-1]._isolate;)Be.pop();var Fn=Be[Be.length-1]._isolInitIndex;Fn!=null&&(He.set(Fn,je),He.set(je,Fn)),Be.pop(),ht--}Ue=Be[Be.length-1],ge[je]=Ue._level,Ue._override&&we(je,Ue._override)}else nt&q?(Qe===0&&(Je>0?Je--:!Ue._isolate&&Be.length>1&&(Be.pop(),Ue=Be[Be.length-1])),ge[je]=Ue._level):nt&K&&(ge[je]=Pe.level);else ge[je]=Ue._level,Ue._override&&nt!==pe&&we(je,Ue._override)}for(var Xt=[],Qt=null,rt=Pe.start;rt<=Pe.end;rt++){var gr=oe[rt];if(!(gr&u)){var ot=ge[rt],st=gr&r,fn=gr===ne;Qt&&ot===Qt._level?(Qt._end=rt,Qt._endsWithIsolInit=st):Xt.push(Qt={_start:rt,_end:rt,_level:ot,_startsWithPDI:fn,_endsWithIsolInit:st})}}for(var Yt=[],Ye=0;Ye=0;Mr--)if(!(oe[Mr]&u)){bo=ge[Mr];break}var Fi=It[It.length-1],zs=ge[Fi],Lo=Pe.level;if(!(oe[Fi]&r)){for(var ti=Fi+1;ti<=Pe.end;ti++)if(!(oe[ti]&u)){Lo=ge[ti];break}}Yt.push({_seqIndices:It,_sosType:Math.max(bo,js)%2?z:O,_eosType:Math.max(Lo,zs)%2?z:O})}}for(var ji=0;ji=0;hn--)if(!(oe[Ee[hn]]&u)){Hn=oe[Ee[hn]];break}we(ri,Hn&(r|ne)?se:Hn)}}if(xe.get(Q))for(var Ke=0;Ke=-1;pn--){var Et=pn===-1?jn:oe[Ee[pn]];if(Et&l){Et===B&&we(qe,D);break}}}if(xe.get(B))for(var Pt=0;Pt=0&&(zn=oe[Ee[oi]],!!(zn&u));oi--);for(var vr=En+1;vr=0&&oe[Ee[si]]&(N|u);si--)we(Ee[si],Q);for(mn++;mn=0&&oe[Ee[or]]&u;or--)we(Ee[or],se);for(var sr=br+1;sr=0;ur--){var li=yr[ur].char;if(li===Wi||li===R(b(We))||A(b(li))===We){Zn.push([yr[ur].seqIndex,Xn]),yr.length=ur;break}}}Zn.sort(function(Lt,$t){return Lt[0]-$t[0]})}for(var Gi=0;Gi=0;Vi--){var Do=Ee[Vi];if(oe[Do]&ai){var yn=oe[Do]&lr?z:O;yn!==Gn?Kt=yn:Kt=Gn;break}}}if(Kt){if(oe[Ee[lt]]=oe[Ee[Ur]]=Kt,Kt!==Gn){for(var Jt=lt+1;Jt=0;Ar--)if(oe[Ee[Ar]]&u)Zi=Ar;else{on=oe[Ee[Ar]]&lr?z:O;break}for(var Ir=Bi,Dr=kn+1;Dr=0&&v(ae[xr])&p;xr--)ge[xr]=Pe.level}}return{levels:ge,paragraphs:Oe};function ci(Lt,$t){for(var vt=Lt;vt=ge&&v(ae[Pe])&p;Pe--)Oe[Pe]=we.level;for(var Fe=we.level,Ve=1/0,dt=0;dtFe&&(Fe=De),De=Ve;et--)for(var Be=0;Be=et){for(var Ue=Be;Be+1=et;)Be++;Be>Ue&&xe.push([Ue+ge,Be+ge])}}}),xe}function Ce(ae,_e,me,oe){var be=Me(ae,_e,me,oe),xe=[].concat(ae);return be.forEach(function(we,ge){xe[ge]=(_e.levels[we]&1?Se(ae[we]):null)||ae[we]}),xe.join("")}function Me(ae,_e,me,oe){for(var be=ce(ae,_e,me,oe),xe=[],we=0;we/gm;function s(c,i){let r=C1[i];return r?fl(r):c}return o.replace(n,s)}const jt=[];for(let o=0;o<256;o++)jt[o]=(o<16?"0":"")+o.toString(16);function Op(){const o=Math.random()*4294967295|0,n=Math.random()*4294967295|0,s=Math.random()*4294967295|0,c=Math.random()*4294967295|0;return(jt[o&255]+jt[o>>8&255]+jt[o>>16&255]+jt[o>>24&255]+"-"+jt[n&255]+jt[n>>8&255]+"-"+jt[n>>16&15|64]+jt[n>>24&255]+"-"+jt[s&63|128]+jt[s>>8&255]+"-"+jt[s>>16&255]+jt[s>>24&255]+jt[c&255]+jt[c>>8&255]+jt[c>>16&255]+jt[c>>24&255]).toUpperCase()}const Vr=Object.assign||function(){let o=arguments[0];for(let n=1,s=arguments.length;n/gm,` +;(`+s+")()"],{type:"application/javascript"}))),n.onmessage=function(c){var i=c.data,r=i.messageId,l=cl[r];if(!l)throw new Error("WorkerModule response with empty or unknown messageId");delete cl[r],l(i)}}return n}function jc(o,n,s){return new Promise(function(c,i){var r=++Rp;cl[r]=function(l){l.success?c(l.result):i(new Error("Error in worker "+n+" call: "+l.error))},Dp(o).postMessage({messageId:r,action:n,data:s})})}function id(){var o=function(n){function s(B,H,M,j,X,q,V,ie){var Y=1-V;ie.x=Y*Y*B+2*Y*V*M+V*V*X,ie.y=Y*Y*H+2*Y*V*j+V*V*q}function c(B,H,M,j,X,q,V,ie,Y,ne){var ue=1-Y;ne.x=ue*ue*ue*B+3*ue*ue*Y*M+3*ue*Y*Y*X+Y*Y*Y*V,ne.y=ue*ue*ue*H+3*ue*ue*Y*j+3*ue*Y*Y*q+Y*Y*Y*ie}function i(B,H){for(var M=/([MLQCZ])([^MLQCZ]*)/g,j,X,q,V,ie;j=M.exec(B);){var Y=j[2].replace(/^\s*|\s*$/g,"").split(/[,\s]+/).map(function(ne){return parseFloat(ne)});switch(j[1]){case"M":V=X=Y[0],ie=q=Y[1];break;case"L":(Y[0]!==V||Y[1]!==ie)&&H("L",V,ie,V=Y[0],ie=Y[1]);break;case"Q":{H("Q",V,ie,V=Y[2],ie=Y[3],Y[0],Y[1]);break}case"C":{H("C",V,ie,V=Y[4],ie=Y[5],Y[0],Y[1],Y[2],Y[3]);break}case"Z":(V!==X||ie!==q)&&H("L",V,ie,X,q);break}}}function r(B,H,M){M===void 0&&(M=16);var j={x:0,y:0};i(B,function(X,q,V,ie,Y,ne,ue,fe,$){switch(X){case"L":H(q,V,ie,Y);break;case"Q":{for(var te=q,Se=V,Re=1;Re0;)Fe[Pe]=arguments[Pe+2];var Oe=me[He]||(me[He]=M.getUniformLocation(oe,He));M["uniform"+ge].apply(M,[Oe].concat(Fe))},setAttribute:function(ge,He,Fe,Pe,Oe){var Ve=_e[ge];Ve||(Ve=_e[ge]={buf:M.createBuffer(),loc:M.getAttribLocation(oe,ge),data:null}),M.bindBuffer(M.ARRAY_BUFFER,Ve.buf),M.vertexAttribPointer(Ve.loc,He,M.FLOAT,!1,0,0),M.enableVertexAttribArray(Ve.loc),X?M.vertexAttribDivisor(Ve.loc,Pe):ue("ANGLE_instanced_arrays").vertexAttribDivisorANGLE(Ve.loc,Pe),Oe!==Ve.data&&(M.bufferData(M.ARRAY_BUFFER,Oe,Fe),Ve.data=Oe)}})}}}V[ce].transaction(ae)},te=function(ce,Ce){Y++;try{M.activeTexture(M.TEXTURE0+Y);var Me=ie[ce];Me||(Me=ie[ce]=M.createTexture(),M.bindTexture(M.TEXTURE_2D,Me),M.texParameteri(M.TEXTURE_2D,M.TEXTURE_MIN_FILTER,M.NEAREST),M.texParameteri(M.TEXTURE_2D,M.TEXTURE_MAG_FILTER,M.NEAREST)),M.bindTexture(M.TEXTURE_2D,Me),Ce(Me,Y)}finally{Y--}},Se=function(ce,Ce,Me){var ae=M.createFramebuffer();ne.push(ae),M.bindFramebuffer(M.FRAMEBUFFER,ae),M.activeTexture(M.TEXTURE0+Ce),M.bindTexture(M.TEXTURE_2D,ce),M.framebufferTexture2D(M.FRAMEBUFFER,M.COLOR_ATTACHMENT0,M.TEXTURE_2D,ce,0);try{Me(ae)}finally{M.deleteFramebuffer(ae),M.bindFramebuffer(M.FRAMEBUFFER,ne[--ne.length-1]||null)}},Re=function(){q={},V={},ie={},Y=-1,ne.length=0};var X=typeof WebGL2RenderingContext<"u"&&M instanceof WebGL2RenderingContext,q={},V={},ie={},Y=-1,ne=[];M.canvas.addEventListener("webglcontextlost",function(ce){Re(),ce.preventDefault()},!1),u.set(M,j={gl:M,isWebGL2:X,getExtension:ue,withProgram:$,withTexture:te,withTextureFramebuffer:Se,handleContextLoss:Re})}H(j)}function g(B,H,M,j,X,q,V,ie){V===void 0&&(V=15),ie===void 0&&(ie=null),h(B,function(Y){var ne=Y.gl,ue=Y.withProgram,fe=Y.withTexture;fe("copy",function($,te){ne.texImage2D(ne.TEXTURE_2D,0,ne.RGBA,X,q,0,ne.RGBA,ne.UNSIGNED_BYTE,H),ue("copy",l,f,function(Se){var Re=Se.setUniform,ce=Se.setAttribute;ce("aUV",2,ne.STATIC_DRAW,0,new Float32Array([0,0,2,0,0,2])),Re("1i","image",te),ne.bindFramebuffer(ne.FRAMEBUFFER,ie||null),ne.disable(ne.BLEND),ne.colorMask(V&8,V&4,V&2,V&1),ne.viewport(M,j,X,q),ne.scissor(M,j,X,q),ne.drawArrays(ne.TRIANGLES,0,3)})})})}function v(B,H,M){var j=B.width,X=B.height;h(B,function(q){var V=q.gl,ie=new Uint8Array(j*X*4);V.readPixels(0,0,j,X,V.RGBA,V.UNSIGNED_BYTE,ie),B.width=H,B.height=M,g(V,ie,0,0,j,X)})}var x=Object.freeze({__proto__:null,withWebGLContext:h,renderImageData:g,resizeWebGLCanvasWithoutClearing:v});function w(B,H,M,j,X,q){q===void 0&&(q=1);var V=new Uint8Array(B*H),ie=j[2]-j[0],Y=j[3]-j[1],ne=[];r(M,function(ce,Ce,Me,ae){ne.push({x1:ce,y1:Ce,x2:Me,y2:ae,minX:Math.min(ce,Me),minY:Math.min(Ce,ae),maxX:Math.max(ce,Me),maxY:Math.max(Ce,ae)})}),ne.sort(function(ce,Ce){return ce.maxX-Ce.maxX});for(var ue=0;ueme.minX&&Ce-aeme.minY){var oe=C(ce,Ce,me.x1,me.y1,me.x2,me.y2);oeCe!=_e.y2>Ce&&ce<(_e.x2-_e.x1)*(Ce-_e.y1)/(_e.y2-_e.y1)+_e.x1;me&&(Me+=_e.y1<_e.y2?1:-1)}return Me!==0}}function k(B,H,M,j,X,q,V,ie,Y,ne){q===void 0&&(q=1),ie===void 0&&(ie=0),Y===void 0&&(Y=0),ne===void 0&&(ne=0),_(B,H,M,j,X,q,V,null,ie,Y,ne)}function _(B,H,M,j,X,q,V,ie,Y,ne,ue){q===void 0&&(q=1),Y===void 0&&(Y=0),ne===void 0&&(ne=0),ue===void 0&&(ue=0);for(var fe=w(B,H,M,j,X,q),$=new Uint8Array(fe.length*4),te=0;tep.y!=seg.w>p.y)&&(p.x<(seg.z-seg.x)*(p.y-seg.y)/(seg.w-seg.y)+seg.x);bool crossingUp=crossing&&vLineSegment.y1,1e>2,u>2,2wt>1,1>1,1ge>1,1wp>1,1j>1,f>1,hm>1,1>1,u>1,u6>1,1>1,+5,28>1,w>1,1>1,+3,b8>1,1>1,+3,1>3,-1>-1,3>1,1>1,+2,1s>1,1>1,x>1,th>1,1>1,+2,db>1,1>1,+3,3>1,1>1,+2,14qm>1,1>1,+1,4q>1,1e>2,u>2,2>1,+1",canonical:"6f1>-6dx,6dy>-6dx,6ec>-6ed,6ee>-6ed,6ww>2jj,-2ji>2jj,14r4>-1e7l,1e7m>-1e7l,1e7m>-1e5c,1e5d>-1e5b,1e5c>-14qx,14qy>-14qx,14vn>-1ecg,1ech>-1ecg,1edu>-1ecg,1eci>-1ecg,1eda>-1ecg,1eci>-1ecg,1eci>-168q,168r>-168q,168s>-14ye,14yf>-14ye"};function k(ae,_e){var me=36,oe=0,be=new Map,xe=_e&&new Map,we;return ae.split(",").forEach(function ge(He){if(He.indexOf("+")!==-1)for(var Fe=+He;Fe--;)ge(we);else{we=He;var Pe=He.split(">"),Oe=Pe[0],Ve=Pe[1];Oe=String.fromCodePoint(oe+=parseInt(Oe,me)),Ve=String.fromCodePoint(oe+=parseInt(Ve,me)),be.set(Oe,Ve),_e&&xe.set(Ve,Oe)}}),{map:be,reverseMap:xe}}var _,C,S;function T(){if(!_){var ae=k(w.pairs,!0),_e=ae.map,me=ae.reverseMap;_=_e,C=me,S=k(w.canonical,!1).map}}function A(ae){return T(),_.get(ae)||null}function R(ae){return T(),C.get(ae)||null}function b(ae){return T(),S.get(ae)||null}var F=c.L,z=c.R,Q=c.EN,ee=c.ES,N=c.ET,I=c.AN,J=c.CS,K=c.B,re=c.S,se=c.ON,pe=c.BN,G=c.NSM,B=c.AL,H=c.LRO,M=c.RLO,j=c.LRE,X=c.RLE,q=c.PDF,V=c.LRI,ie=c.RLI,Y=c.FSI,ne=c.PDI;function ue(ae,_e){for(var me=125,oe=new Uint32Array(ae.length),be=0;be0)Qe--;else if(ht>0){for(Je=0;!Be[Be.length-1]._isolate;)Be.pop();var On=Be[Be.length-1]._isolInitIndex;On!=null&&(He.set(On,je),He.set(je,On)),Be.pop(),ht--}Ue=Be[Be.length-1],ge[je]=Ue._level,Ue._override&&we(je,Ue._override)}else nt&q?(Qe===0&&(Je>0?Je--:!Ue._isolate&&Be.length>1&&(Be.pop(),Ue=Be[Be.length-1])),ge[je]=Ue._level):nt&K&&(ge[je]=Pe.level);else ge[je]=Ue._level,Ue._override&&nt!==pe&&we(je,Ue._override)}for(var Xt=[],Qt=null,rt=Pe.start;rt<=Pe.end;rt++){var gr=oe[rt];if(!(gr&u)){var ot=ge[rt],st=gr&r,fn=gr===ne;Qt&&ot===Qt._level?(Qt._end=rt,Qt._endsWithIsolInit=st):Xt.push(Qt={_start:rt,_end:rt,_level:ot,_startsWithPDI:fn,_endsWithIsolInit:st})}}for(var Yt=[],Ye=0;Ye=0;Mr--)if(!(oe[Mr]&u)){bo=ge[Mr];break}var Oi=Dt[Dt.length-1],zs=ge[Oi],Lo=Pe.level;if(!(oe[Oi]&r)){for(var ti=Oi+1;ti<=Pe.end;ti++)if(!(oe[ti]&u)){Lo=ge[ti];break}}Yt.push({_seqIndices:Dt,_sosType:Math.max(bo,js)%2?z:F,_eosType:Math.max(Lo,zs)%2?z:F})}}for(var ji=0;ji=0;hn--)if(!(oe[Ee[hn]]&u)){Hn=oe[Ee[hn]];break}we(ri,Hn&(r|ne)?se:Hn)}}if(xe.get(Q))for(var Ke=0;Ke=-1;pn--){var Et=pn===-1?jn:oe[Ee[pn]];if(Et&l){Et===B&&we(qe,I);break}}}if(xe.get(B))for(var Pt=0;Pt=0&&(zn=oe[Ee[oi]],!!(zn&u));oi--);for(var vr=En+1;vr=0&&oe[Ee[si]]&(N|u);si--)we(Ee[si],Q);for(mn++;mn=0&&oe[Ee[or]]&u;or--)we(Ee[or],se);for(var sr=br+1;sr=0;ur--){var li=yr[ur].char;if(li===Wi||li===R(b(We))||A(b(li))===We){Zn.push([yr[ur].seqIndex,Xn]),yr.length=ur;break}}}Zn.sort(function(Lt,$t){return Lt[0]-$t[0]})}for(var Gi=0;Gi=0;Vi--){var Io=Ee[Vi];if(oe[Io]&ai){var yn=oe[Io]&lr?z:F;yn!==Gn?Kt=yn:Kt=Gn;break}}}if(Kt){if(oe[Ee[lt]]=oe[Ee[Ur]]=Kt,Kt!==Gn){for(var Jt=lt+1;Jt=0;Ar--)if(oe[Ee[Ar]]&u)Zi=Ar;else{on=oe[Ee[Ar]]&lr?z:F;break}for(var Dr=Bi,Ir=kn+1;Ir=0&&v(ae[xr])&p;xr--)ge[xr]=Pe.level}}return{levels:ge,paragraphs:Fe};function ci(Lt,$t){for(var vt=Lt;vt=ge&&v(ae[Pe])&p;Pe--)Fe[Pe]=we.level;for(var Oe=we.level,Ve=1/0,dt=0;dtOe&&(Oe=Ie),Ie=Ve;et--)for(var Be=0;Be=et){for(var Ue=Be;Be+1=et;)Be++;Be>Ue&&xe.push([Ue+ge,Be+ge])}}}),xe}function Ce(ae,_e,me,oe){var be=Me(ae,_e,me,oe),xe=[].concat(ae);return be.forEach(function(we,ge){xe[ge]=(_e.levels[we]&1?Se(ae[we]):null)||ae[we]}),xe.join("")}function Me(ae,_e,me,oe){for(var be=ce(ae,_e,me,oe),xe=[],we=0;we/gm;function s(c,i){let r=C1[i];return r?fl(r):c}return o.replace(n,s)}const jt=[];for(let o=0;o<256;o++)jt[o]=(o<16?"0":"")+o.toString(16);function Fp(){const o=Math.random()*4294967295|0,n=Math.random()*4294967295|0,s=Math.random()*4294967295|0,c=Math.random()*4294967295|0;return(jt[o&255]+jt[o>>8&255]+jt[o>>16&255]+jt[o>>24&255]+"-"+jt[n&255]+jt[n>>8&255]+"-"+jt[n>>16&15|64]+jt[n>>24&255]+"-"+jt[s&63|128]+jt[s>>8&255]+"-"+jt[s>>16&255]+jt[s>>24&255]+jt[c&255]+jt[c>>8&255]+jt[c>>16&255]+jt[c>>24&255]).toUpperCase()}const Vr=Object.assign||function(){let o=arguments[0];for(let n=1,s=arguments.length;n/gm,` //!BEGIN_POST_CHUNK $1 $& //!END_POST_CHUNK @@ -494,20 +494,20 @@ void main() { ${c} troikaOrigMain${n}(); ${i} -}`),o}function Bp(o,n){return o==="uniforms"?void 0:typeof n=="function"?n.toString():n}let Np=0;const Wc=new Map;function Wp(o){const n=JSON.stringify(o,Bp);let s=Wc.get(n);return s==null&&Wc.set(n,s=++Np),s}function Gp(o,n,s){const{defaultFontURL:c}=s,i=Object.create(null),r=1/0,l=/[\u00AD\u034F\u061C\u115F-\u1160\u17B4-\u17B5\u180B-\u180E\u200B-\u200F\u202A-\u202E\u2060-\u206F\u3164\uFE00-\uFE0F\uFEFF\uFFA0\uFFF0-\uFFF8]/,f="[^\\S\\u00A0]",u=new RegExp(`${f}|[\\-\\u007C\\u00AD\\u2010\\u2012-\\u2014\\u2027\\u2056\\u2E17\\u2E40]`);function p(S,T){function A(){const R=b=>{console.error(`Failure loading font ${S}${S===c?"":"; trying fallback"}`,b),S!==c&&(S=c,A())};try{const b=new XMLHttpRequest;b.open("get",S,!0),b.responseType="arraybuffer",b.onload=function(){if(b.status>=400)R(new Error(b.statusText));else if(b.status>0)try{const O=o(b.response);T(O)}catch(O){R(O)}},b.onerror=R,b.send()}catch(b){R(b)}}A()}function h(S,T){S||(S=c);let A=i[S];A?A.pending?A.pending.push(T):T(A):(i[S]={pending:[T]},p(S,R=>{let b=i[S].pending;i[S]=R,b.forEach(O=>O(R))}))}function g({text:S="",font:T=c,sdfGlyphSize:A=64,fontSize:R=1,letterSpacing:b=0,lineHeight:O="normal",maxWidth:z=r,direction:Q,textAlign:ee="left",textIndent:N=0,whiteSpace:D="normal",overflowWrap:J="normal",anchorX:K=0,anchorY:re=0,includeCaretPositions:se=!1,chunkedBoundsSize:pe=8192,colorRanges:G=null},B,H=!1){const M=k(),j={fontLoad:0,typesetting:0};S.indexOf("\r")>-1&&(console.info("Typesetter: got text with \\r chars; normalizing to \\n"),S=S.replace(/\r\n/g,` +}`),o}function Bp(o,n){return o==="uniforms"?void 0:typeof n=="function"?n.toString():n}let Np=0;const Wc=new Map;function Wp(o){const n=JSON.stringify(o,Bp);let s=Wc.get(n);return s==null&&Wc.set(n,s=++Np),s}function Gp(o,n,s){const{defaultFontURL:c}=s,i=Object.create(null),r=1/0,l=/[\u00AD\u034F\u061C\u115F-\u1160\u17B4-\u17B5\u180B-\u180E\u200B-\u200F\u202A-\u202E\u2060-\u206F\u3164\uFE00-\uFE0F\uFEFF\uFFA0\uFFF0-\uFFF8]/,f="[^\\S\\u00A0]",u=new RegExp(`${f}|[\\-\\u007C\\u00AD\\u2010\\u2012-\\u2014\\u2027\\u2056\\u2E17\\u2E40]`);function p(S,T){function A(){const R=b=>{console.error(`Failure loading font ${S}${S===c?"":"; trying fallback"}`,b),S!==c&&(S=c,A())};try{const b=new XMLHttpRequest;b.open("get",S,!0),b.responseType="arraybuffer",b.onload=function(){if(b.status>=400)R(new Error(b.statusText));else if(b.status>0)try{const F=o(b.response);T(F)}catch(F){R(F)}},b.onerror=R,b.send()}catch(b){R(b)}}A()}function h(S,T){S||(S=c);let A=i[S];A?A.pending?A.pending.push(T):T(A):(i[S]={pending:[T]},p(S,R=>{let b=i[S].pending;i[S]=R,b.forEach(F=>F(R))}))}function g({text:S="",font:T=c,sdfGlyphSize:A=64,fontSize:R=1,letterSpacing:b=0,lineHeight:F="normal",maxWidth:z=r,direction:Q,textAlign:ee="left",textIndent:N=0,whiteSpace:I="normal",overflowWrap:J="normal",anchorX:K=0,anchorY:re=0,includeCaretPositions:se=!1,chunkedBoundsSize:pe=8192,colorRanges:G=null},B,H=!1){const M=k(),j={fontLoad:0,typesetting:0};S.indexOf("\r")>-1&&(console.info("Typesetter: got text with \\r chars; normalizing to \\n"),S=S.replace(/\r\n/g,` `).replace(/\r/g,` -`)),R=+R,b=+b,z=+z,O=O||"normal",N=+N,h(T,X=>{const q=isFinite(z);let V=null,ie=null,Y=null,ne=null,ue=null,fe=null,$=null,te=0,Se=0,Re=D!=="nowrap";const{ascender:ce,descender:Ce,unitsPerEm:Me,lineGap:ae,capHeight:_e,xHeight:me}=X;j.fontLoad=k()-M;const oe=k(),be=R/Me;O==="normal"&&(O=(ce-Ce+ae)/Me),O=O*R;const xe=(O-(ce-Ce)*be)/2,we=-(ce*be+xe),ge=Math.min(O,(ce-Ce)*be),He=(ce+Ce)/2*be-ge/2;let Oe=N,Pe=new _;const Fe=[Pe];X.forEachGlyph(S,R,b,(De,et,Be)=>{const Ue=S.charAt(Be),Qe=De.advanceWidth*be,Je=Pe.count;let ht;if("isEmpty"in De||(De.isWhitespace=!!Ue&&new RegExp(f).test(Ue),De.canBreakAfter=!!Ue&&u.test(Ue),De.isEmpty=De.xMin===De.xMax||De.yMin===De.yMax||l.test(Ue)),!De.isWhitespace&&!De.isEmpty&&Se++,Re&&q&&!De.isWhitespace&&et+Qe+Oe>z&&Je){if(Pe.glyphAt(Je-1).glyphObj.canBreakAfter)ht=new _,Oe=-et;else for(let nt=Je;nt--;)if(nt===0&&J==="break-word"){ht=new _,Oe=-et;break}else if(Pe.glyphAt(nt).glyphObj.canBreakAfter){ht=Pe.splitAt(nt+1);const At=ht.glyphAt(0).x;Oe-=At;for(let On=ht.count;On--;)ht.glyphAt(On).x-=At;break}ht&&(Pe.isSoftWrapped=!0,Pe=ht,Fe.push(Pe),te=z)}let je=Pe.glyphAt(Pe.count);je.glyphObj=De,je.x=et+Oe,je.width=Qe,je.charIndex=Be,Ue===` -`&&(Pe=new _,Fe.push(Pe),Oe=-(et+Qe+b*R)+N)}),Fe.forEach(De=>{for(let et=De.count;et--;){let{glyphObj:Be,x:Ue,width:Qe}=De.glyphAt(et);if(!Be.isWhitespace){De.width=Ue+Qe,De.width>te&&(te=De.width);return}}});let Ve=0,dt=0;if(K&&(typeof K=="number"?Ve=-K:typeof K=="string"&&(Ve=-te*(K==="left"?0:K==="center"?.5:K==="right"?1:x(K)))),re){if(typeof re=="number")dt=-re;else if(typeof re=="string"){let De=Fe.length*O;dt=re==="top"?0:re==="top-baseline"?-we:re==="top-cap"?-we-_e*be:re==="top-ex"?-we-me*be:re==="middle"?De/2:re==="bottom"?De:re==="bottom-baseline"?De-xe+Ce*be:x(re)*De}}if(!H){const De=n.getEmbeddingLevels(S,Q);V=new Uint16Array(Se),ie=new Float32Array(Se*2),Y={},fe=[r,r,-r,-r],$=[];let et=we;se&&(ue=new Float32Array(S.length*3)),G&&(ne=new Uint8Array(Se*3));let Be=0,Ue=-1,Qe=-1,Je,ht;if(Fe.forEach((je,nt)=>{let{count:At,width:On}=je;if(At>0){let rr=0;for(let ot=At;ot--&&je.glyphAt(ot).glyphObj.isWhitespace;)rr++;let Fn=0,Xt=0;if(ee==="center")Fn=(te-On)/2;else if(ee==="right")Fn=te-On;else if(ee==="justify"&&je.isSoftWrapped){let ot=0;for(let st=At-rr;st--;)je.glyphAt(st).glyphObj.isWhitespace&&ot++;Xt=(te-On)/ot}if(Xt||Fn){let ot=0;for(let st=0;st=st){let rn=gt,pt=gt;for(;ptfn)break;ptrt=ot;for(let ot=0;ot1&&w(ue,Ue,pt),Ue=Ye}if(G){const{charIndex:Ye}=st;for(;Ye>Qe;)Qe++,G.hasOwnProperty(Qe)&&(ht=G[Qe])}if(!rt.isWhitespace&&!rt.isEmpty){const Ye=Be++;Y[fn]||(Y[fn]={path:rt.path,pathBounds:[rt.xMin,rt.yMin,rt.xMax,rt.yMax]});const gt=st.x+Ve,rn=et+dt;ie[Ye*2]=gt,ie[Ye*2+1]=rn;const pt=gt+rt.xMin*be,wt=rn+rt.yMin*be,It=gt+rt.xMax*be,Wn=rn+rt.yMax*be;ptfe[2]&&(fe[2]=It),Wn>fe[3]&&(fe[3]=Wn),Ye%pe===0&&(Je={start:Ye,end:Ye,rect:[r,r,-r,-r]},$.push(Je)),Je.end++;const dn=Je.rect;if(ptdn[2]&&(dn[2]=It),Wn>dn[3]&&(dn[3]=Wn),V[Ye]=fn,G){const ir=Ye*3;ne[ir]=ht>>16&255,ne[ir+1]=ht>>8&255,ne[ir+2]=ht&255}}}}et-=O}),ue){const je=S.length-Ue;je>1&&w(ue,Ue,je)}}j.typesetting=k()-oe,B({glyphIds:V,glyphPositions:ie,glyphData:Y,caretPositions:ue,caretHeight:ge,glyphColors:ne,chunkedBounds:$,fontSize:R,unitsPerEm:Me,ascender:ce*be,descender:Ce*be,capHeight:_e*be,xHeight:me*be,lineHeight:O,topBaseline:we,blockBounds:[Ve,dt-Fe.length*O,Ve+te,dt],visibleBounds:fe,timings:j})})}function v(S,T){g(S,A=>{const[R,b,O,z]=A.blockBounds;T({width:O-R,height:z-b})},{metricsOnly:!0})}function x(S){let T=S.match(/^([\d.]+)%$/),A=T?parseFloat(T[1]):NaN;return isNaN(A)?0:A/100}function w(S,T,A){const R=S[T*3],b=S[T*3+1],O=S[T*3+2],z=(b-R)/A;for(let Q=0;Q(Object.defineProperty(S,T,{get(){return this.data[this.index*C.length+A]},set(b){this.data[this.index*C.length+A]=b}}),S),{data:null,index:0}),{typeset:g,measure:v,loadFont:h}}const Yr=()=>(self.performance||Date).now(),Fs=id();let Gc;function Hp(o,n,s,c,i,r,l,f,u,p,h=!0){return h?Zp(o,n,s,c,i,r,l,f,u,p).then(null,g=>(Gc||(console.warn("WebGL SDF generation failed, falling back to JS",g),Gc=!0),Vc(o,n,s,c,i,r,l,f,u,p))):Vc(o,n,s,c,i,r,l,f,u,p)}const Us=[],Vp=5;let hl=0;function sd(){const o=Yr();for(;Us.length&&Yr()-onew Promise((n,s)=>{Us.push(()=>{const c=Yr();try{Fs.webgl.generateIntoCanvas(...o),n({timing:Yr()-c})}catch(i){s(i)}}),hl||(hl=setTimeout(sd,0))}),Xp=4,Qp=2e3,Hc={};let Yp=0;function Vc(o,n,s,c,i,r,l,f,u,p){const h="TroikaTextSDFGenerator_JS_"+Yp++%Xp;let g=Hc[h];return g||(g=Hc[h]={workerModule:Mo({name:h,workerId:h,dependencies:[id,Yr],init(v,x){const w=v().javascript.generate;return function(...k){const _=x();return{textureData:w(...k),timing:x()-_}}},getTransferables(v){return[v.textureData.buffer]}}),requests:0,idleTimer:null}),g.requests++,clearTimeout(g.idleTimer),g.workerModule(o,n,s,c,i,r).then(({textureData:v,timing:x})=>{const w=Yr(),k=new Uint8Array(v.length*4);for(let _=0;_{Ap(h)},Qp)),{timing:x}})}function Kp(o){o._warm||(Fs.webgl.isSupported(o),o._warm=!0)}const Jp=Fs.webglUtils.resizeWebGLCanvasWithoutClearing;/*! +`)),R=+R,b=+b,z=+z,F=F||"normal",N=+N,h(T,X=>{const q=isFinite(z);let V=null,ie=null,Y=null,ne=null,ue=null,fe=null,$=null,te=0,Se=0,Re=I!=="nowrap";const{ascender:ce,descender:Ce,unitsPerEm:Me,lineGap:ae,capHeight:_e,xHeight:me}=X;j.fontLoad=k()-M;const oe=k(),be=R/Me;F==="normal"&&(F=(ce-Ce+ae)/Me),F=F*R;const xe=(F-(ce-Ce)*be)/2,we=-(ce*be+xe),ge=Math.min(F,(ce-Ce)*be),He=(ce+Ce)/2*be-ge/2;let Fe=N,Pe=new _;const Oe=[Pe];X.forEachGlyph(S,R,b,(Ie,et,Be)=>{const Ue=S.charAt(Be),Qe=Ie.advanceWidth*be,Je=Pe.count;let ht;if("isEmpty"in Ie||(Ie.isWhitespace=!!Ue&&new RegExp(f).test(Ue),Ie.canBreakAfter=!!Ue&&u.test(Ue),Ie.isEmpty=Ie.xMin===Ie.xMax||Ie.yMin===Ie.yMax||l.test(Ue)),!Ie.isWhitespace&&!Ie.isEmpty&&Se++,Re&&q&&!Ie.isWhitespace&&et+Qe+Fe>z&&Je){if(Pe.glyphAt(Je-1).glyphObj.canBreakAfter)ht=new _,Fe=-et;else for(let nt=Je;nt--;)if(nt===0&&J==="break-word"){ht=new _,Fe=-et;break}else if(Pe.glyphAt(nt).glyphObj.canBreakAfter){ht=Pe.splitAt(nt+1);const At=ht.glyphAt(0).x;Fe-=At;for(let Fn=ht.count;Fn--;)ht.glyphAt(Fn).x-=At;break}ht&&(Pe.isSoftWrapped=!0,Pe=ht,Oe.push(Pe),te=z)}let je=Pe.glyphAt(Pe.count);je.glyphObj=Ie,je.x=et+Fe,je.width=Qe,je.charIndex=Be,Ue===` +`&&(Pe=new _,Oe.push(Pe),Fe=-(et+Qe+b*R)+N)}),Oe.forEach(Ie=>{for(let et=Ie.count;et--;){let{glyphObj:Be,x:Ue,width:Qe}=Ie.glyphAt(et);if(!Be.isWhitespace){Ie.width=Ue+Qe,Ie.width>te&&(te=Ie.width);return}}});let Ve=0,dt=0;if(K&&(typeof K=="number"?Ve=-K:typeof K=="string"&&(Ve=-te*(K==="left"?0:K==="center"?.5:K==="right"?1:x(K)))),re){if(typeof re=="number")dt=-re;else if(typeof re=="string"){let Ie=Oe.length*F;dt=re==="top"?0:re==="top-baseline"?-we:re==="top-cap"?-we-_e*be:re==="top-ex"?-we-me*be:re==="middle"?Ie/2:re==="bottom"?Ie:re==="bottom-baseline"?Ie-xe+Ce*be:x(re)*Ie}}if(!H){const Ie=n.getEmbeddingLevels(S,Q);V=new Uint16Array(Se),ie=new Float32Array(Se*2),Y={},fe=[r,r,-r,-r],$=[];let et=we;se&&(ue=new Float32Array(S.length*3)),G&&(ne=new Uint8Array(Se*3));let Be=0,Ue=-1,Qe=-1,Je,ht;if(Oe.forEach((je,nt)=>{let{count:At,width:Fn}=je;if(At>0){let rr=0;for(let ot=At;ot--&&je.glyphAt(ot).glyphObj.isWhitespace;)rr++;let On=0,Xt=0;if(ee==="center")On=(te-Fn)/2;else if(ee==="right")On=te-Fn;else if(ee==="justify"&&je.isSoftWrapped){let ot=0;for(let st=At-rr;st--;)je.glyphAt(st).glyphObj.isWhitespace&&ot++;Xt=(te-Fn)/ot}if(Xt||On){let ot=0;for(let st=0;st=st){let rn=gt,pt=gt;for(;ptfn)break;ptrt=ot;for(let ot=0;ot1&&w(ue,Ue,pt),Ue=Ye}if(G){const{charIndex:Ye}=st;for(;Ye>Qe;)Qe++,G.hasOwnProperty(Qe)&&(ht=G[Qe])}if(!rt.isWhitespace&&!rt.isEmpty){const Ye=Be++;Y[fn]||(Y[fn]={path:rt.path,pathBounds:[rt.xMin,rt.yMin,rt.xMax,rt.yMax]});const gt=st.x+Ve,rn=et+dt;ie[Ye*2]=gt,ie[Ye*2+1]=rn;const pt=gt+rt.xMin*be,wt=rn+rt.yMin*be,Dt=gt+rt.xMax*be,Wn=rn+rt.yMax*be;ptfe[2]&&(fe[2]=Dt),Wn>fe[3]&&(fe[3]=Wn),Ye%pe===0&&(Je={start:Ye,end:Ye,rect:[r,r,-r,-r]},$.push(Je)),Je.end++;const dn=Je.rect;if(ptdn[2]&&(dn[2]=Dt),Wn>dn[3]&&(dn[3]=Wn),V[Ye]=fn,G){const ir=Ye*3;ne[ir]=ht>>16&255,ne[ir+1]=ht>>8&255,ne[ir+2]=ht&255}}}}et-=F}),ue){const je=S.length-Ue;je>1&&w(ue,Ue,je)}}j.typesetting=k()-oe,B({glyphIds:V,glyphPositions:ie,glyphData:Y,caretPositions:ue,caretHeight:ge,glyphColors:ne,chunkedBounds:$,fontSize:R,unitsPerEm:Me,ascender:ce*be,descender:Ce*be,capHeight:_e*be,xHeight:me*be,lineHeight:F,topBaseline:we,blockBounds:[Ve,dt-Oe.length*F,Ve+te,dt],visibleBounds:fe,timings:j})})}function v(S,T){g(S,A=>{const[R,b,F,z]=A.blockBounds;T({width:F-R,height:z-b})},{metricsOnly:!0})}function x(S){let T=S.match(/^([\d.]+)%$/),A=T?parseFloat(T[1]):NaN;return isNaN(A)?0:A/100}function w(S,T,A){const R=S[T*3],b=S[T*3+1],F=S[T*3+2],z=(b-R)/A;for(let Q=0;Q(Object.defineProperty(S,T,{get(){return this.data[this.index*C.length+A]},set(b){this.data[this.index*C.length+A]=b}}),S),{data:null,index:0}),{typeset:g,measure:v,loadFont:h}}const Yr=()=>(self.performance||Date).now(),Os=id();let Gc;function Hp(o,n,s,c,i,r,l,f,u,p,h=!0){return h?Zp(o,n,s,c,i,r,l,f,u,p).then(null,g=>(Gc||(console.warn("WebGL SDF generation failed, falling back to JS",g),Gc=!0),Vc(o,n,s,c,i,r,l,f,u,p))):Vc(o,n,s,c,i,r,l,f,u,p)}const Us=[],Vp=5;let hl=0;function sd(){const o=Yr();for(;Us.length&&Yr()-onew Promise((n,s)=>{Us.push(()=>{const c=Yr();try{Os.webgl.generateIntoCanvas(...o),n({timing:Yr()-c})}catch(i){s(i)}}),hl||(hl=setTimeout(sd,0))}),Xp=4,Qp=2e3,Hc={};let Yp=0;function Vc(o,n,s,c,i,r,l,f,u,p){const h="TroikaTextSDFGenerator_JS_"+Yp++%Xp;let g=Hc[h];return g||(g=Hc[h]={workerModule:Mo({name:h,workerId:h,dependencies:[id,Yr],init(v,x){const w=v().javascript.generate;return function(...k){const _=x();return{textureData:w(...k),timing:x()-_}}},getTransferables(v){return[v.textureData.buffer]}}),requests:0,idleTimer:null}),g.requests++,clearTimeout(g.idleTimer),g.workerModule(o,n,s,c,i,r).then(({textureData:v,timing:x})=>{const w=Yr(),k=new Uint8Array(v.length*4);for(let _=0;_{Ap(h)},Qp)),{timing:x}})}function Kp(o){o._warm||(Os.webgl.isSupported(o),o._warm=!0)}const Jp=Os.webglUtils.resizeWebGLCanvasWithoutClearing;/*! Custom build of Typr.ts (https://github.com/fredli74/Typr.ts) for use in Troika text rendering. Original MIT license applies: https://github.com/fredli74/Typr.ts/blob/master/LICENSE -*/function qp(){return typeof window>"u"&&(self.window=self),function(o){var n={parse:function(i){var r=n._bin,l=new Uint8Array(i);if(r.readASCII(l,0,4)=="ttcf"){var f=4;r.readUshort(l,f),f+=2,r.readUshort(l,f),f+=2;var u=r.readUint(l,f);f+=4;for(var p=[],h=0;h>>l&1&&r++;return r},n._lctf.readClassDef=function(i,r){var l=n._bin,f=[],u=l.readUshort(i,r);if(r+=2,u==1){var p=l.readUshort(i,r);r+=2;var h=l.readUshort(i,r);r+=2;for(var g=0;g0&&(u.featureParams=f+p);var h=l.readUshort(i,r);r+=2,u.tab=[];for(var g=0;g255?-1:n.CFF.glyphByUnicode(i,n.CFF.tableSE[r])},n.CFF.readEncoding=function(i,r,l){n._bin;var f=[".notdef"],u=i[r];if(r++,u!=0)throw"error: unknown encoding format: "+u;var p=i[r];r++;for(var h=0;h>4,S=15&_;if(C!=15&&k.push(C),S!=15&&k.push(S),S==15)break}for(var T="",A=[0,1,2,3,4,5,6,7,8,9,".","e","e-","reserved","-","endOfNumber"],R=0;R=p.xMax||p.yMin>=p.yMax)return null;if(p.noc>0){p.endPts=[];for(var h=0;h=1&&h.fmt<=2){v=u.readUshort(i,l),l+=2;var w=u.readUshort(i,l);l+=2,x=n._lctf.numOfOnes(v);var k=n._lctf.numOfOnes(w);if(h.fmt==1){h.pairsets=[];var _=u.readUshort(i,l);l+=2;for(var C=0;C<_;C++){var S=p+u.readUshort(i,l);l+=2;var T=u.readUshort(i,S);S+=2;for(var A=[],R=0;R=1&&h.fmt<=2){if(h.fmt==1)h.delta=u.readShort(i,l),l+=2;else if(h.fmt==2){var v=u.readUshort(i,l);l+=2,h.newg=u.readUshorts(i,l,v),l+=2*h.newg.length}}else if(r==4){h.vals=[],v=u.readUshort(i,l),l+=2;for(var x=0;x>>8;if((w&=15)!=0)throw"unknown kern table format: "+w;r=n.kern.readFormat0(i,r,g)}return g},n.kern.parseV1=function(i,r,l,f){var u=n._bin;u.readFixed(i,r),r+=4;var p=u.readUint(i,r);r+=4;for(var h={glyph1:[],rval:[]},g=0;g>>8;if((x&=15)!=0)throw"unknown kern table format: "+x;r=n.kern.readFormat0(i,r,h)}return h},n.kern.readFormat0=function(i,r,l){var f=n._bin,u=-1,p=f.readUshort(i,r);r+=2,f.readUshort(i,r),r+=2,f.readUshort(i,r),r+=2,f.readUshort(i,r),r+=2;for(var h=0;h=u.map.length?0:u.map[r];if(u.format==4){for(var p=-1,h=0;hr?0:65535&(u.idRangeOffset[p]!=0?u.glyphIdArray[r-u.startCount[p]+(u.idRangeOffset[p]>>1)-(u.idRangeOffset.length-p)]:r+u.idDelta[p])}if(u.format==12){if(r>u.groups[u.groups.length-1][1])return 0;for(h=0;h-1?n.U._simpleGlyph(f,l):n.U._compoGlyph(f,r,l))},n.U._simpleGlyph=function(i,r){for(var l=0;lu)){for(var _=!0,C=0,S=0;Su)){for(_=!0,S=0;S>1,p.length=0,g=!0;else if(D=="o3"||D=="o23")p.length%2!=0&&!g&&(v=p.shift()+f.nominalWidthX),h+=p.length>>1,p.length=0,g=!0;else if(D=="o4")p.length>1&&!g&&(v=p.shift()+f.nominalWidthX,g=!0),x&&n.U.P.closePath(u),_+=p.pop(),n.U.P.moveTo(u,k,_),x=!0;else if(D=="o5")for(;p.length>0;)k+=p.shift(),_+=p.shift(),n.U.P.lineTo(u,k,_);else if(D=="o6"||D=="o7")for(var J=p.length,K=D=="o6",re=0;reMath.abs(z-_)?k=O+p.shift():_=z+p.shift(),n.U.P.curveTo(u,C,S,T,A,Q,ee),n.U.P.curveTo(u,R,b,O,z,k,_));else if(D=="o14"){if(p.length>0&&!g&&(v=p.shift()+l.nominalWidthX,g=!0),p.length==4){var G=p.shift(),B=p.shift(),H=p.shift(),M=p.shift(),j=n.CFF.glyphBySE(l,H),X=n.CFF.glyphBySE(l,M);n.U._drawCFF(l.CharStrings[j],r,l,f,u),r.x=G,r.y=B,n.U._drawCFF(l.CharStrings[X],r,l,f,u)}x&&(n.U.P.closePath(u),x=!1)}else if(D=="o19"||D=="o20")p.length%2!=0&&!g&&(v=p.shift()+f.nominalWidthX),h+=p.length>>1,p.length=0,g=!0,w+=h+7>>3;else if(D=="o21")p.length>2&&!g&&(v=p.shift()+f.nominalWidthX,g=!0),_+=p.pop(),k+=p.pop(),x&&n.U.P.closePath(u),n.U.P.moveTo(u,k,_),x=!0;else if(D=="o22")p.length>1&&!g&&(v=p.shift()+f.nominalWidthX,g=!0),k+=p.pop(),x&&n.U.P.closePath(u),n.U.P.moveTo(u,k,_),x=!0;else if(D=="o25"){for(;p.length>6;)k+=p.shift(),_+=p.shift(),n.U.P.lineTo(u,k,_);C=k+p.shift(),S=_+p.shift(),T=C+p.shift(),A=S+p.shift(),k=T+p.shift(),_=A+p.shift(),n.U.P.curveTo(u,C,S,T,A,k,_)}else if(D=="o26")for(p.length%2&&(k+=p.shift());p.length>0;)C=k,S=_+p.shift(),k=T=C+p.shift(),_=(A=S+p.shift())+p.shift(),n.U.P.curveTo(u,C,S,T,A,k,_);else if(D=="o27")for(p.length%2&&(_+=p.shift());p.length>0;)S=_,T=(C=k+p.shift())+p.shift(),A=S+p.shift(),k=T+p.shift(),_=A,n.U.P.curveTo(u,C,S,T,A,k,_);else if(D=="o10"||D=="o29"){var q=D=="o10"?f:l;if(p.length==0)console.debug("error: empty stack");else{var V=p.pop(),ie=q.Subrs[V+q.Bias];r.x=k,r.y=_,r.nStems=h,r.haveWidth=g,r.width=v,r.open=x,n.U._drawCFF(ie,r,l,f,u),k=r.x,_=r.y,h=r.nStems,g=r.haveWidth,v=r.width,x=r.open}}else if(D=="o30"||D=="o31"){var Y=p.length,ne=(pe=0,D=="o31");for(pe+=Y-(J=-3&Y);pe"u"&&(self.window=self),function(o){var n={parse:function(i){var r=n._bin,l=new Uint8Array(i);if(r.readASCII(l,0,4)=="ttcf"){var f=4;r.readUshort(l,f),f+=2,r.readUshort(l,f),f+=2;var u=r.readUint(l,f);f+=4;for(var p=[],h=0;h>>l&1&&r++;return r},n._lctf.readClassDef=function(i,r){var l=n._bin,f=[],u=l.readUshort(i,r);if(r+=2,u==1){var p=l.readUshort(i,r);r+=2;var h=l.readUshort(i,r);r+=2;for(var g=0;g0&&(u.featureParams=f+p);var h=l.readUshort(i,r);r+=2,u.tab=[];for(var g=0;g255?-1:n.CFF.glyphByUnicode(i,n.CFF.tableSE[r])},n.CFF.readEncoding=function(i,r,l){n._bin;var f=[".notdef"],u=i[r];if(r++,u!=0)throw"error: unknown encoding format: "+u;var p=i[r];r++;for(var h=0;h>4,S=15&_;if(C!=15&&k.push(C),S!=15&&k.push(S),S==15)break}for(var T="",A=[0,1,2,3,4,5,6,7,8,9,".","e","e-","reserved","-","endOfNumber"],R=0;R=p.xMax||p.yMin>=p.yMax)return null;if(p.noc>0){p.endPts=[];for(var h=0;h=1&&h.fmt<=2){v=u.readUshort(i,l),l+=2;var w=u.readUshort(i,l);l+=2,x=n._lctf.numOfOnes(v);var k=n._lctf.numOfOnes(w);if(h.fmt==1){h.pairsets=[];var _=u.readUshort(i,l);l+=2;for(var C=0;C<_;C++){var S=p+u.readUshort(i,l);l+=2;var T=u.readUshort(i,S);S+=2;for(var A=[],R=0;R=1&&h.fmt<=2){if(h.fmt==1)h.delta=u.readShort(i,l),l+=2;else if(h.fmt==2){var v=u.readUshort(i,l);l+=2,h.newg=u.readUshorts(i,l,v),l+=2*h.newg.length}}else if(r==4){h.vals=[],v=u.readUshort(i,l),l+=2;for(var x=0;x>>8;if((w&=15)!=0)throw"unknown kern table format: "+w;r=n.kern.readFormat0(i,r,g)}return g},n.kern.parseV1=function(i,r,l,f){var u=n._bin;u.readFixed(i,r),r+=4;var p=u.readUint(i,r);r+=4;for(var h={glyph1:[],rval:[]},g=0;g>>8;if((x&=15)!=0)throw"unknown kern table format: "+x;r=n.kern.readFormat0(i,r,h)}return h},n.kern.readFormat0=function(i,r,l){var f=n._bin,u=-1,p=f.readUshort(i,r);r+=2,f.readUshort(i,r),r+=2,f.readUshort(i,r),r+=2,f.readUshort(i,r),r+=2;for(var h=0;h=u.map.length?0:u.map[r];if(u.format==4){for(var p=-1,h=0;hr?0:65535&(u.idRangeOffset[p]!=0?u.glyphIdArray[r-u.startCount[p]+(u.idRangeOffset[p]>>1)-(u.idRangeOffset.length-p)]:r+u.idDelta[p])}if(u.format==12){if(r>u.groups[u.groups.length-1][1])return 0;for(h=0;h-1?n.U._simpleGlyph(f,l):n.U._compoGlyph(f,r,l))},n.U._simpleGlyph=function(i,r){for(var l=0;lu)){for(var _=!0,C=0,S=0;Su)){for(_=!0,S=0;S>1,p.length=0,g=!0;else if(I=="o3"||I=="o23")p.length%2!=0&&!g&&(v=p.shift()+f.nominalWidthX),h+=p.length>>1,p.length=0,g=!0;else if(I=="o4")p.length>1&&!g&&(v=p.shift()+f.nominalWidthX,g=!0),x&&n.U.P.closePath(u),_+=p.pop(),n.U.P.moveTo(u,k,_),x=!0;else if(I=="o5")for(;p.length>0;)k+=p.shift(),_+=p.shift(),n.U.P.lineTo(u,k,_);else if(I=="o6"||I=="o7")for(var J=p.length,K=I=="o6",re=0;reMath.abs(z-_)?k=F+p.shift():_=z+p.shift(),n.U.P.curveTo(u,C,S,T,A,Q,ee),n.U.P.curveTo(u,R,b,F,z,k,_));else if(I=="o14"){if(p.length>0&&!g&&(v=p.shift()+l.nominalWidthX,g=!0),p.length==4){var G=p.shift(),B=p.shift(),H=p.shift(),M=p.shift(),j=n.CFF.glyphBySE(l,H),X=n.CFF.glyphBySE(l,M);n.U._drawCFF(l.CharStrings[j],r,l,f,u),r.x=G,r.y=B,n.U._drawCFF(l.CharStrings[X],r,l,f,u)}x&&(n.U.P.closePath(u),x=!1)}else if(I=="o19"||I=="o20")p.length%2!=0&&!g&&(v=p.shift()+f.nominalWidthX),h+=p.length>>1,p.length=0,g=!0,w+=h+7>>3;else if(I=="o21")p.length>2&&!g&&(v=p.shift()+f.nominalWidthX,g=!0),_+=p.pop(),k+=p.pop(),x&&n.U.P.closePath(u),n.U.P.moveTo(u,k,_),x=!0;else if(I=="o22")p.length>1&&!g&&(v=p.shift()+f.nominalWidthX,g=!0),k+=p.pop(),x&&n.U.P.closePath(u),n.U.P.moveTo(u,k,_),x=!0;else if(I=="o25"){for(;p.length>6;)k+=p.shift(),_+=p.shift(),n.U.P.lineTo(u,k,_);C=k+p.shift(),S=_+p.shift(),T=C+p.shift(),A=S+p.shift(),k=T+p.shift(),_=A+p.shift(),n.U.P.curveTo(u,C,S,T,A,k,_)}else if(I=="o26")for(p.length%2&&(k+=p.shift());p.length>0;)C=k,S=_+p.shift(),k=T=C+p.shift(),_=(A=S+p.shift())+p.shift(),n.U.P.curveTo(u,C,S,T,A,k,_);else if(I=="o27")for(p.length%2&&(_+=p.shift());p.length>0;)S=_,T=(C=k+p.shift())+p.shift(),A=S+p.shift(),k=T+p.shift(),_=A,n.U.P.curveTo(u,C,S,T,A,k,_);else if(I=="o10"||I=="o29"){var q=I=="o10"?f:l;if(p.length==0)console.debug("error: empty stack");else{var V=p.pop(),ie=q.Subrs[V+q.Bias];r.x=k,r.y=_,r.nStems=h,r.haveWidth=g,r.width=v,r.open=x,n.U._drawCFF(ie,r,l,f,u),k=r.x,_=r.y,h=r.nStems,g=r.haveWidth,v=r.width,x=r.open}}else if(I=="o30"||I=="o31"){var Y=p.length,ne=(pe=0,I=="o31");for(pe+=Y-(J=-3&Y);pe>>1|(21845&x)<<1;w=(61680&(w=(52428&w)>>>2|(13107&w)<<2))>>>4|(3855&w)<<4,v[x]=((65280&w)>>>8|(255&w)<<8)>>>1}var k=function(D,J,K){for(var re=D.length,se=0,pe=new s(J);se>>H]=M}else for(G=new s(re),se=0;se>>15-D[se]);return G},_=new n(288);for(x=0;x<144;++x)_[x]=8;for(x=144;x<256;++x)_[x]=9;for(x=256;x<280;++x)_[x]=7;for(x=280;x<288;++x)_[x]=8;var C=new n(32);for(x=0;x<32;++x)C[x]=5;var S=k(_,9,1),T=k(C,5,1),A=function(D){for(var J=D[0],K=1;KJ&&(J=D[K]);return J},R=function(D,J,K){var re=J/8|0;return(D[re]|D[re+1]<<8)>>(7&J)&K},b=function(D,J){var K=J/8|0;return(D[K]|D[K+1]<<8|D[K+2]<<16)>>(7&J)},O=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],z=function(D,J,K){var re=new Error(J||O[D]);if(re.code=D,Error.captureStackTrace&&Error.captureStackTrace(re,z),!K)throw re;return re},Q=function(D,J,K){var re=D.length;if(!re||K&&!K.l&&re<5)return J||new n(0);var se=!J||K,pe=!K||K.i;K||(K={}),J||(J=new n(3*re));var G,B=function(Ue){var Qe=J.length;if(Ue>Qe){var Je=new n(Math.max(2*Qe,Ue));Je.set(J),J=Je}},H=K.f||0,M=K.p||0,j=K.b||0,X=K.l,q=K.d,V=K.m,ie=K.n,Y=8*re;do{if(!X){K.f=H=R(D,M,1);var ne=R(D,M+1,3);if(M+=3,!ne){var ue=D[(me=((G=M)/8|0)+(7&G&&1)+4)-4]|D[me-3]<<8,fe=me+ue;if(fe>re){pe&&z(0);break}se&&B(j+ue),J.set(D.subarray(me,fe),j),K.b=j+=ue,K.p=M=8*fe;continue}if(ne==1)X=S,q=T,V=9,ie=5;else if(ne==2){var $=R(D,M,31)+257,te=R(D,M+10,15)+4,Se=$+R(D,M+5,31)+1;M+=14;for(var Re=new n(Se),ce=new n(19),Ce=0;Ce>>4)<16)Re[Ce++]=me;else{var be=0,xe=0;for(me==16?(xe=3+R(D,M,3),M+=2,be=Re[Ce-1]):me==17?(xe=3+R(D,M,7),M+=3):me==18&&(xe=11+R(D,M,127),M+=7);xe--;)Re[Ce++]=be}}var we=Re.subarray(0,$),ge=Re.subarray($);V=A(we),ie=A(ge),X=k(we,V,1),q=k(ge,ie,1)}else z(1);if(M>Y){pe&&z(0);break}}se&&B(j+131072);for(var He=(1<>>4;if((M+=15&be)>Y){pe&&z(0);break}if(be||z(2),Fe<256)J[j++]=Fe;else{if(Fe==256){Pe=M,X=null;break}var Ve=Fe-254;if(Fe>264){var dt=i[Ce=Fe-257];Ve=R(D,M,(1<>>4;if(De||z(3),M+=15&De,ge=g[et],et>3&&(dt=r[et],ge+=b(D,M)&(1<Y){pe&&z(0);break}se&&B(j+131072);for(var Be=j+Ve;jUe.length)&&(Je=Ue.length);var ht=new(Ue instanceof s?s:Ue instanceof c?c:n)(Je-Qe);return ht.set(Ue.subarray(Qe,Je)),ht}(J,0,j)},ee=new n(0),N=typeof TextDecoder<"u"&&new TextDecoder;try{N.decode(ee,{stream:!0})}catch{}return o.convert_streams=function(D){var J=new DataView(D),K=0;function re(){var $=J.getUint16(K);return K+=2,$}function se(){var $=J.getUint32(K);return K+=4,$}function pe($){ue.setUint16(fe,$),fe+=2}function G($){ue.setUint32(fe,$),fe+=4}for(var B={signature:se(),flavor:se(),length:se(),numTables:re(),reserved:re(),totalSfntSize:se(),majorVersion:re(),minorVersion:re(),metaOffset:se(),metaLength:se(),metaOrigLength:se(),privOffset:se(),privLength:se()},H=0;Math.pow(2,H)<=B.numTables;)H++;H--;for(var M=16*Math.pow(2,H),j=16*B.numTables-M,X=12,q=[],V=0;V{let[ee,N]=Q.split("+");ee=parseInt(ee,36),N=N?parseInt(N,36):0,h.set(z+=ee,b[O]);for(let D=N;D--;)h.set(++z,b[O])})}}return h.get(R)||p}const v=1,x=2,w=3,k=4,_=[null,"isol","init","fina","medi"];function C(R){const b=new Uint8Array(R.length);let O=p,z=v,Q=-1;for(let ee=0;ee65535&&ee++)}return b}function S(R,b){const O=[];for(let Q=0;Q65535&&Q++,O.push(o.U.codeToGlyph(R,ee))}const z=R.GSUB;if(z){const{lookupList:Q,featureList:ee}=z;let N;const D=/^(rlig|liga|mset|isol|init|fina|medi|half|pres|blws)$/,J=[];ee.forEach(K=>{if(D.test(K.tag))for(let re=0;re{if(M!==-1){let X=b[M];if(!X){const{cmds:q,crds:V}=o.U.glyphToPath(R,M);let ie="",Y=0;for(let te=0,Se=q.length;te1?",":"")+V[Y++]}let ne,ue,fe,$;if(V.length){ne=ue=1/0,fe=$=-1/0;for(let te=0,Se=V.length;tefe&&(fe=Re),ce>$&&($=ce)}}else ne=fe=ue=$=0;X=b[M]={index:M,advanceWidth:R.hmtx.aWidth[M],xMin:ne,yMin:ue,xMax:fe,yMax:$,path:ie,pathCommandCount:q.length}}H!==-1&&(se+=o.U.getPairAdjustment(R,H,M)*pe),re.call(null,X,se,B),X.advanceWidth&&(se+=X.advanceWidth*pe),K&&(se+=K*J),H=M}B+=D.codePointAt(B)>65535?2:1}),se}};return N}return function(b){const O=new Uint8Array(b,0,4),z=o._bin.readASCII(O,0,4);if(z==="wOFF")b=n(b);else if(z==="wOF2")throw new Error("woff2 fonts not supported");return A(o.parse(b)[0])}}const t0=Mo({name:"Typr Font Parser",dependencies:[qp,$p,e0],init(o,n,s){const c=o(),i=n();return s(c,i)}}),Li={defaultFontURL:"https://fonts.gstatic.com/s/roboto/v18/KFOmCnqEu92Fr1Mu4mxM.woff",sdfGlyphSize:64,sdfMargin:1/16,sdfExponent:9,textureWidth:2048},n0=new wo;function Ei(){return(self.performance||Date).now()}const Zc=Object.create(null);function ad(o,n){o=o0({},o);const s=Ei();if(o.font=s0(o.font||Li.defaultFontURL),o.text=""+o.text,o.sdfGlyphSize=o.sdfGlyphSize||Li.sdfGlyphSize,o.colorRanges!=null){let g={};for(let v in o.colorRanges)if(o.colorRanges.hasOwnProperty(v)){let x=o.colorRanges[v];typeof x!="number"&&(x=n0.set(x).getHex()),g[v]=x}o.colorRanges=g}Object.freeze(o);const{textureWidth:c,sdfExponent:i}=Li,{sdfGlyphSize:r}=o,l=c/r*4;let f=Zc[r];if(!f){const g=document.createElement("canvas");g.width=c,g.height=r*256/l,f=Zc[r]={glyphCount:0,sdfGlyphSize:r,sdfCanvas:g,sdfTexture:new vl(g,void 0,void 0,void 0,sc,sc),contextLost:!1,glyphsByFont:new Map},f.sdfTexture.generateMipmaps=!1,r0(f)}const{sdfTexture:u,sdfCanvas:p}=f;let h=f.glyphsByFont.get(o.font);h||f.glyphsByFont.set(o.font,h=new Map),l0(o).then(g=>{const{glyphIds:v,glyphPositions:x,fontSize:w,unitsPerEm:k,timings:_}=g,C=[],S=new Float32Array(v.length*4),T=w/k;let A=0,R=0;const b=Ei();v.forEach((N,D)=>{let J=h.get(N);if(!J){const{path:pe,pathBounds:G}=g.glyphData[N],B=Math.max(G[2]-G[0],G[3]-G[1])/r*(Li.sdfMargin*r+.5),H=f.glyphCount++,M=[G[0]-B,G[1]-B,G[2]+B,G[3]+B];h.set(N,J={path:pe,atlasIndex:H,sdfViewBox:M}),C.push(J)}const{sdfViewBox:K}=J,re=x[R++],se=x[R++];S[A++]=re+K[0]*T,S[A++]=se+K[1]*T,S[A++]=re+K[2]*T,S[A++]=se+K[3]*T,v[D]=J.atlasIndex}),_.quads=(_.quads||0)+(Ei()-b);const O=Ei();_.sdf={};const z=p.height,Q=Math.ceil(f.glyphCount/l),ee=Math.pow(2,Math.ceil(Math.log2(Q*r)));ee>z&&(console.info(`Increasing SDF texture size ${z}->${ee}`),Jp(p,c,ee),u.dispose()),Promise.all(C.map(N=>ld(N,f,o.gpuAccelerateSDF).then(({timing:D})=>{_.sdf[N.atlasIndex]=D}))).then(()=>{C.length&&!f.contextLost&&(ud(f),u.needsUpdate=!0),_.sdfTotal=Ei()-O,_.total=Ei()-s,n(Object.freeze({parameters:o,sdfTexture:u,sdfGlyphSize:r,sdfExponent:i,glyphBounds:S,glyphAtlasIndices:v,glyphColors:g.glyphColors,caretPositions:g.caretPositions,caretHeight:g.caretHeight,chunkedBounds:g.chunkedBounds,ascender:g.ascender,descender:g.descender,lineHeight:g.lineHeight,capHeight:g.capHeight,xHeight:g.xHeight,topBaseline:g.topBaseline,blockBounds:g.blockBounds,visibleBounds:g.visibleBounds,timings:g.timings}))})}),Promise.resolve().then(()=>{f.contextLost||Kp(p)})}function ld({path:o,atlasIndex:n,sdfViewBox:s},{sdfGlyphSize:c,sdfCanvas:i,contextLost:r},l){if(r)return Promise.resolve({timing:-1});const{textureWidth:f,sdfExponent:u}=Li,p=Math.max(s[2]-s[0],s[3]-s[1]),h=Math.floor(n/4),g=h%(f/c)*c,v=Math.floor(h/(f/c))*c,x=n%4;return Hp(c,c,o,s,p,u,i,g,v,x,l)}function r0(o){const n=o.sdfCanvas;n.addEventListener("webglcontextlost",s=>{console.log("Context Lost",s),s.preventDefault(),o.contextLost=!0}),n.addEventListener("webglcontextrestored",s=>{console.log("Context Restored",s),o.contextLost=!1;const c=[];o.glyphsByFont.forEach(i=>{i.forEach(r=>{c.push(ld(r,o,!0))})}),Promise.all(c).then(()=>{ud(o),o.sdfTexture.needsUpdate=!0})})}function i0({font:o,characters:n,sdfGlyphSize:s},c){let i=Array.isArray(n)?n.join(` -`):""+n;ad({font:o,sdfGlyphSize:s,text:i},c)}function o0(o,n){for(let s in n)n.hasOwnProperty(s)&&(o[s]=n[s]);return o}let Ts;function s0(o){return Ts||(Ts=typeof document>"u"?{}:document.createElement("a")),Ts.href=o,Ts.href}function ud(o){if(typeof createImageBitmap!="function"){console.info("Safari<15: applying SDF canvas workaround");const{sdfCanvas:n,sdfTexture:s}=o,{width:c,height:i}=n,r=o.sdfCanvas.getContext("webgl");let l=s.image.data;(!l||l.length!==c*i*4)&&(l=new Uint8Array(c*i*4),s.image={width:c,height:i,data:l},s.flipY=!1,s.isDataTexture=!0),r.readPixels(0,0,c,i,r.RGBA,r.UNSIGNED_BYTE,l)}}const a0=Mo({name:"Typesetter",dependencies:[Li,t0,Gp,Dp],init(o,n,s,c){const{defaultFontURL:i}=o;return s(n,c(),{defaultFontURL:i})}}),l0=Mo({name:"Typesetter",dependencies:[a0],init(o){return function(n){return new Promise(s=>{o.typeset(n,s)})}},getTransferables(o){const n=[o.glyphPositions.buffer,o.glyphIds.buffer];return o.caretPositions&&n.push(o.caretPositions.buffer),o.glyphColors&&n.push(o.glyphColors.buffer),n}}),Xc={};function u0(o){let n=Xc[o];if(!n){const s=new Cl(1,1,o,o),c=s.clone(),i=s.attributes,r=c.attributes,l=new mf,f=i.uv.count;for(let u=0;u{l.setAttribute(u,new el([...i[u].array,...r[u].array],i[u].itemSize))}),l.setIndex([...s.index.array,...c.index.array.map(u=>u+f)]),l.translate(.5,.5,0),n=Xc[o]=l}return n}const c0="aTroikaGlyphBounds",Qc="aTroikaGlyphIndex",f0="aTroikaGlyphColor";class d0 extends gf{constructor(){super(),this.detail=1,this.curveRadius=0,this.groups=[{start:0,count:1/0,materialIndex:0},{start:0,count:1/0,materialIndex:1}],this.boundingSphere=new wl,this.boundingBox=new Ds}computeBoundingSphere(){}computeBoundingBox(){}setSide(n){const s=this.getIndex().count;this.setDrawRange(n===E1?s/2:0,n===Sl?s:s/2)}set detail(n){if(n!==this._detail){this._detail=n,(typeof n!="number"||n<1)&&(n=1);let s=u0(n);["position","normal","uv"].forEach(c=>{this.attributes[c]=s.attributes[c].clone()}),this.setIndex(s.getIndex().clone())}}get detail(){return this._detail}set curveRadius(n){n!==this._curveRadius&&(this._curveRadius=n,this._updateBounds())}get curveRadius(){return this._curveRadius}updateGlyphs(n,s,c,i,r){Qa(this,c0,n,4),Qa(this,Qc,s,1),Qa(this,f0,r,3),this._blockBounds=c,this._chunkedBounds=i,this.instanceCount=s.length,this._updateBounds()}_updateBounds(){const n=this._blockBounds;if(n){const{curveRadius:s,boundingBox:c}=this;if(s){const{PI:i,floor:r,min:l,max:f,sin:u,cos:p}=Math,h=i/2,g=i*2,v=Math.abs(s),x=n[0]/v,w=n[2]/v,k=r((x+h)/g)!==r((w+h)/g)?-v:l(u(x)*v,u(w)*v),_=r((x-h)/g)!==r((w-h)/g)?v:f(u(x)*v,u(w)*v),C=r((x+i)/g)!==r((w+i)/g)?v*2:f(v-p(x)*v,v-p(w)*v);c.min.set(k,n[1],s<0?-C:0),c.max.set(_,n[3],s<0?0:C)}else c.min.set(n[0],n[1],0),c.max.set(n[2],n[3],0);c.getBoundingSphere(this.boundingSphere)}}applyClipRect(n){let s=this.getAttribute(Qc).count,c=this._chunkedBounds;if(c)for(let i=c.length;i--;){s=c[i].end;let r=c[i].rect;if(r[1]n.y&&r[0]n.x)break}this.instanceCount=s}}function Qa(o,n,s,c){const i=o.getAttribute(n);s?i&&i.array.length===s.length?(i.array.set(s),i.needsUpdate=!0):(o.setAttribute(n,new k1(s,c)),delete o._maxInstanceCount,o.dispose()):i&&o.deleteAttribute(n)}const h0=` +*/function $p(){return function(o){var n=Uint8Array,s=Uint16Array,c=Uint32Array,i=new n([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]),r=new n([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]),l=new n([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),f=function(I,J){for(var K=new s(31),re=0;re<31;++re)K[re]=J+=1<>>1|(21845&x)<<1;w=(61680&(w=(52428&w)>>>2|(13107&w)<<2))>>>4|(3855&w)<<4,v[x]=((65280&w)>>>8|(255&w)<<8)>>>1}var k=function(I,J,K){for(var re=I.length,se=0,pe=new s(J);se>>H]=M}else for(G=new s(re),se=0;se>>15-I[se]);return G},_=new n(288);for(x=0;x<144;++x)_[x]=8;for(x=144;x<256;++x)_[x]=9;for(x=256;x<280;++x)_[x]=7;for(x=280;x<288;++x)_[x]=8;var C=new n(32);for(x=0;x<32;++x)C[x]=5;var S=k(_,9,1),T=k(C,5,1),A=function(I){for(var J=I[0],K=1;KJ&&(J=I[K]);return J},R=function(I,J,K){var re=J/8|0;return(I[re]|I[re+1]<<8)>>(7&J)&K},b=function(I,J){var K=J/8|0;return(I[K]|I[K+1]<<8|I[K+2]<<16)>>(7&J)},F=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],z=function(I,J,K){var re=new Error(J||F[I]);if(re.code=I,Error.captureStackTrace&&Error.captureStackTrace(re,z),!K)throw re;return re},Q=function(I,J,K){var re=I.length;if(!re||K&&!K.l&&re<5)return J||new n(0);var se=!J||K,pe=!K||K.i;K||(K={}),J||(J=new n(3*re));var G,B=function(Ue){var Qe=J.length;if(Ue>Qe){var Je=new n(Math.max(2*Qe,Ue));Je.set(J),J=Je}},H=K.f||0,M=K.p||0,j=K.b||0,X=K.l,q=K.d,V=K.m,ie=K.n,Y=8*re;do{if(!X){K.f=H=R(I,M,1);var ne=R(I,M+1,3);if(M+=3,!ne){var ue=I[(me=((G=M)/8|0)+(7&G&&1)+4)-4]|I[me-3]<<8,fe=me+ue;if(fe>re){pe&&z(0);break}se&&B(j+ue),J.set(I.subarray(me,fe),j),K.b=j+=ue,K.p=M=8*fe;continue}if(ne==1)X=S,q=T,V=9,ie=5;else if(ne==2){var $=R(I,M,31)+257,te=R(I,M+10,15)+4,Se=$+R(I,M+5,31)+1;M+=14;for(var Re=new n(Se),ce=new n(19),Ce=0;Ce>>4)<16)Re[Ce++]=me;else{var be=0,xe=0;for(me==16?(xe=3+R(I,M,3),M+=2,be=Re[Ce-1]):me==17?(xe=3+R(I,M,7),M+=3):me==18&&(xe=11+R(I,M,127),M+=7);xe--;)Re[Ce++]=be}}var we=Re.subarray(0,$),ge=Re.subarray($);V=A(we),ie=A(ge),X=k(we,V,1),q=k(ge,ie,1)}else z(1);if(M>Y){pe&&z(0);break}}se&&B(j+131072);for(var He=(1<>>4;if((M+=15&be)>Y){pe&&z(0);break}if(be||z(2),Oe<256)J[j++]=Oe;else{if(Oe==256){Pe=M,X=null;break}var Ve=Oe-254;if(Oe>264){var dt=i[Ce=Oe-257];Ve=R(I,M,(1<>>4;if(Ie||z(3),M+=15&Ie,ge=g[et],et>3&&(dt=r[et],ge+=b(I,M)&(1<Y){pe&&z(0);break}se&&B(j+131072);for(var Be=j+Ve;jUe.length)&&(Je=Ue.length);var ht=new(Ue instanceof s?s:Ue instanceof c?c:n)(Je-Qe);return ht.set(Ue.subarray(Qe,Je)),ht}(J,0,j)},ee=new n(0),N=typeof TextDecoder<"u"&&new TextDecoder;try{N.decode(ee,{stream:!0})}catch{}return o.convert_streams=function(I){var J=new DataView(I),K=0;function re(){var $=J.getUint16(K);return K+=2,$}function se(){var $=J.getUint32(K);return K+=4,$}function pe($){ue.setUint16(fe,$),fe+=2}function G($){ue.setUint32(fe,$),fe+=4}for(var B={signature:se(),flavor:se(),length:se(),numTables:re(),reserved:re(),totalSfntSize:se(),majorVersion:re(),minorVersion:re(),metaOffset:se(),metaLength:se(),metaOrigLength:se(),privOffset:se(),privLength:se()},H=0;Math.pow(2,H)<=B.numTables;)H++;H--;for(var M=16*Math.pow(2,H),j=16*B.numTables-M,X=12,q=[],V=0;V{let[ee,N]=Q.split("+");ee=parseInt(ee,36),N=N?parseInt(N,36):0,h.set(z+=ee,b[F]);for(let I=N;I--;)h.set(++z,b[F])})}}return h.get(R)||p}const v=1,x=2,w=3,k=4,_=[null,"isol","init","fina","medi"];function C(R){const b=new Uint8Array(R.length);let F=p,z=v,Q=-1;for(let ee=0;ee65535&&ee++)}return b}function S(R,b){const F=[];for(let Q=0;Q65535&&Q++,F.push(o.U.codeToGlyph(R,ee))}const z=R.GSUB;if(z){const{lookupList:Q,featureList:ee}=z;let N;const I=/^(rlig|liga|mset|isol|init|fina|medi|half|pres|blws)$/,J=[];ee.forEach(K=>{if(I.test(K.tag))for(let re=0;re{if(M!==-1){let X=b[M];if(!X){const{cmds:q,crds:V}=o.U.glyphToPath(R,M);let ie="",Y=0;for(let te=0,Se=q.length;te1?",":"")+V[Y++]}let ne,ue,fe,$;if(V.length){ne=ue=1/0,fe=$=-1/0;for(let te=0,Se=V.length;tefe&&(fe=Re),ce>$&&($=ce)}}else ne=fe=ue=$=0;X=b[M]={index:M,advanceWidth:R.hmtx.aWidth[M],xMin:ne,yMin:ue,xMax:fe,yMax:$,path:ie,pathCommandCount:q.length}}H!==-1&&(se+=o.U.getPairAdjustment(R,H,M)*pe),re.call(null,X,se,B),X.advanceWidth&&(se+=X.advanceWidth*pe),K&&(se+=K*J),H=M}B+=I.codePointAt(B)>65535?2:1}),se}};return N}return function(b){const F=new Uint8Array(b,0,4),z=o._bin.readASCII(F,0,4);if(z==="wOFF")b=n(b);else if(z==="wOF2")throw new Error("woff2 fonts not supported");return A(o.parse(b)[0])}}const t0=Mo({name:"Typr Font Parser",dependencies:[qp,$p,e0],init(o,n,s){const c=o(),i=n();return s(c,i)}}),Li={defaultFontURL:"https://fonts.gstatic.com/s/roboto/v18/KFOmCnqEu92Fr1Mu4mxM.woff",sdfGlyphSize:64,sdfMargin:1/16,sdfExponent:9,textureWidth:2048},n0=new wo;function Ei(){return(self.performance||Date).now()}const Zc=Object.create(null);function ad(o,n){o=o0({},o);const s=Ei();if(o.font=s0(o.font||Li.defaultFontURL),o.text=""+o.text,o.sdfGlyphSize=o.sdfGlyphSize||Li.sdfGlyphSize,o.colorRanges!=null){let g={};for(let v in o.colorRanges)if(o.colorRanges.hasOwnProperty(v)){let x=o.colorRanges[v];typeof x!="number"&&(x=n0.set(x).getHex()),g[v]=x}o.colorRanges=g}Object.freeze(o);const{textureWidth:c,sdfExponent:i}=Li,{sdfGlyphSize:r}=o,l=c/r*4;let f=Zc[r];if(!f){const g=document.createElement("canvas");g.width=c,g.height=r*256/l,f=Zc[r]={glyphCount:0,sdfGlyphSize:r,sdfCanvas:g,sdfTexture:new vl(g,void 0,void 0,void 0,sc,sc),contextLost:!1,glyphsByFont:new Map},f.sdfTexture.generateMipmaps=!1,r0(f)}const{sdfTexture:u,sdfCanvas:p}=f;let h=f.glyphsByFont.get(o.font);h||f.glyphsByFont.set(o.font,h=new Map),l0(o).then(g=>{const{glyphIds:v,glyphPositions:x,fontSize:w,unitsPerEm:k,timings:_}=g,C=[],S=new Float32Array(v.length*4),T=w/k;let A=0,R=0;const b=Ei();v.forEach((N,I)=>{let J=h.get(N);if(!J){const{path:pe,pathBounds:G}=g.glyphData[N],B=Math.max(G[2]-G[0],G[3]-G[1])/r*(Li.sdfMargin*r+.5),H=f.glyphCount++,M=[G[0]-B,G[1]-B,G[2]+B,G[3]+B];h.set(N,J={path:pe,atlasIndex:H,sdfViewBox:M}),C.push(J)}const{sdfViewBox:K}=J,re=x[R++],se=x[R++];S[A++]=re+K[0]*T,S[A++]=se+K[1]*T,S[A++]=re+K[2]*T,S[A++]=se+K[3]*T,v[I]=J.atlasIndex}),_.quads=(_.quads||0)+(Ei()-b);const F=Ei();_.sdf={};const z=p.height,Q=Math.ceil(f.glyphCount/l),ee=Math.pow(2,Math.ceil(Math.log2(Q*r)));ee>z&&(console.info(`Increasing SDF texture size ${z}->${ee}`),Jp(p,c,ee),u.dispose()),Promise.all(C.map(N=>ld(N,f,o.gpuAccelerateSDF).then(({timing:I})=>{_.sdf[N.atlasIndex]=I}))).then(()=>{C.length&&!f.contextLost&&(ud(f),u.needsUpdate=!0),_.sdfTotal=Ei()-F,_.total=Ei()-s,n(Object.freeze({parameters:o,sdfTexture:u,sdfGlyphSize:r,sdfExponent:i,glyphBounds:S,glyphAtlasIndices:v,glyphColors:g.glyphColors,caretPositions:g.caretPositions,caretHeight:g.caretHeight,chunkedBounds:g.chunkedBounds,ascender:g.ascender,descender:g.descender,lineHeight:g.lineHeight,capHeight:g.capHeight,xHeight:g.xHeight,topBaseline:g.topBaseline,blockBounds:g.blockBounds,visibleBounds:g.visibleBounds,timings:g.timings}))})}),Promise.resolve().then(()=>{f.contextLost||Kp(p)})}function ld({path:o,atlasIndex:n,sdfViewBox:s},{sdfGlyphSize:c,sdfCanvas:i,contextLost:r},l){if(r)return Promise.resolve({timing:-1});const{textureWidth:f,sdfExponent:u}=Li,p=Math.max(s[2]-s[0],s[3]-s[1]),h=Math.floor(n/4),g=h%(f/c)*c,v=Math.floor(h/(f/c))*c,x=n%4;return Hp(c,c,o,s,p,u,i,g,v,x,l)}function r0(o){const n=o.sdfCanvas;n.addEventListener("webglcontextlost",s=>{console.log("Context Lost",s),s.preventDefault(),o.contextLost=!0}),n.addEventListener("webglcontextrestored",s=>{console.log("Context Restored",s),o.contextLost=!1;const c=[];o.glyphsByFont.forEach(i=>{i.forEach(r=>{c.push(ld(r,o,!0))})}),Promise.all(c).then(()=>{ud(o),o.sdfTexture.needsUpdate=!0})})}function i0({font:o,characters:n,sdfGlyphSize:s},c){let i=Array.isArray(n)?n.join(` +`):""+n;ad({font:o,sdfGlyphSize:s,text:i},c)}function o0(o,n){for(let s in n)n.hasOwnProperty(s)&&(o[s]=n[s]);return o}let Ts;function s0(o){return Ts||(Ts=typeof document>"u"?{}:document.createElement("a")),Ts.href=o,Ts.href}function ud(o){if(typeof createImageBitmap!="function"){console.info("Safari<15: applying SDF canvas workaround");const{sdfCanvas:n,sdfTexture:s}=o,{width:c,height:i}=n,r=o.sdfCanvas.getContext("webgl");let l=s.image.data;(!l||l.length!==c*i*4)&&(l=new Uint8Array(c*i*4),s.image={width:c,height:i,data:l},s.flipY=!1,s.isDataTexture=!0),r.readPixels(0,0,c,i,r.RGBA,r.UNSIGNED_BYTE,l)}}const a0=Mo({name:"Typesetter",dependencies:[Li,t0,Gp,Ip],init(o,n,s,c){const{defaultFontURL:i}=o;return s(n,c(),{defaultFontURL:i})}}),l0=Mo({name:"Typesetter",dependencies:[a0],init(o){return function(n){return new Promise(s=>{o.typeset(n,s)})}},getTransferables(o){const n=[o.glyphPositions.buffer,o.glyphIds.buffer];return o.caretPositions&&n.push(o.caretPositions.buffer),o.glyphColors&&n.push(o.glyphColors.buffer),n}}),Xc={};function u0(o){let n=Xc[o];if(!n){const s=new Cl(1,1,o,o),c=s.clone(),i=s.attributes,r=c.attributes,l=new mf,f=i.uv.count;for(let u=0;u{l.setAttribute(u,new el([...i[u].array,...r[u].array],i[u].itemSize))}),l.setIndex([...s.index.array,...c.index.array.map(u=>u+f)]),l.translate(.5,.5,0),n=Xc[o]=l}return n}const c0="aTroikaGlyphBounds",Qc="aTroikaGlyphIndex",f0="aTroikaGlyphColor";class d0 extends gf{constructor(){super(),this.detail=1,this.curveRadius=0,this.groups=[{start:0,count:1/0,materialIndex:0},{start:0,count:1/0,materialIndex:1}],this.boundingSphere=new wl,this.boundingBox=new Is}computeBoundingSphere(){}computeBoundingBox(){}setSide(n){const s=this.getIndex().count;this.setDrawRange(n===E1?s/2:0,n===Sl?s:s/2)}set detail(n){if(n!==this._detail){this._detail=n,(typeof n!="number"||n<1)&&(n=1);let s=u0(n);["position","normal","uv"].forEach(c=>{this.attributes[c]=s.attributes[c].clone()}),this.setIndex(s.getIndex().clone())}}get detail(){return this._detail}set curveRadius(n){n!==this._curveRadius&&(this._curveRadius=n,this._updateBounds())}get curveRadius(){return this._curveRadius}updateGlyphs(n,s,c,i,r){Qa(this,c0,n,4),Qa(this,Qc,s,1),Qa(this,f0,r,3),this._blockBounds=c,this._chunkedBounds=i,this.instanceCount=s.length,this._updateBounds()}_updateBounds(){const n=this._blockBounds;if(n){const{curveRadius:s,boundingBox:c}=this;if(s){const{PI:i,floor:r,min:l,max:f,sin:u,cos:p}=Math,h=i/2,g=i*2,v=Math.abs(s),x=n[0]/v,w=n[2]/v,k=r((x+h)/g)!==r((w+h)/g)?-v:l(u(x)*v,u(w)*v),_=r((x-h)/g)!==r((w-h)/g)?v:f(u(x)*v,u(w)*v),C=r((x+i)/g)!==r((w+i)/g)?v*2:f(v-p(x)*v,v-p(w)*v);c.min.set(k,n[1],s<0?-C:0),c.max.set(_,n[3],s<0?0:C)}else c.min.set(n[0],n[1],0),c.max.set(n[2],n[3],0);c.getBoundingSphere(this.boundingSphere)}}applyClipRect(n){let s=this.getAttribute(Qc).count,c=this._chunkedBounds;if(c)for(let i=c.length;i--;){s=c[i].end;let r=c[i].rect;if(r[1]n.y&&r[0]n.x)break}this.instanceCount=s}}function Qa(o,n,s,c){const i=o.getAttribute(n);s?i&&i.array.length===s.length?(i.array.set(s),i.needsUpdate=!0):(o.setAttribute(n,new k1(s,c)),delete o._maxInstanceCount,o.dispose()):i&&o.deleteAttribute(n)}const h0=` uniform vec2 uTroikaSDFTextureSize; uniform float uTroikaSDFGlyphSize; uniform vec4 uTroikaTotalBounds; @@ -668,6 +668,6 @@ if (edgeAlpha == 0.0) { `;function v0(o){const n=dl(o,{chained:!0,extensions:{derivatives:!0},uniforms:{uTroikaSDFTexture:{value:null},uTroikaSDFTextureSize:{value:new $r},uTroikaSDFGlyphSize:{value:0},uTroikaSDFExponent:{value:0},uTroikaTotalBounds:{value:new Ai(0,0,0,0)},uTroikaClipRect:{value:new Ai(0,0,0,0)},uTroikaDistanceOffset:{value:0},uTroikaOutlineOpacity:{value:0},uTroikaFillOpacity:{value:1},uTroikaPositionOffset:{value:new $r},uTroikaCurveRadius:{value:0},uTroikaBlurRadius:{value:0},uTroikaStrokeWidth:{value:0},uTroikaStrokeColor:{value:new wo},uTroikaStrokeOpacity:{value:1},uTroikaOrient:{value:new T1},uTroikaUseGlyphColors:{value:!0},uTroikaSDFDebug:{value:!1}},vertexDefs:h0,vertexTransform:p0,fragmentDefs:m0,fragmentColorTransform:g0,customRewriter({vertexShader:s,fragmentShader:c}){let i=/\buniform\s+vec3\s+diffuse\b/;return i.test(c)&&(c=c.replace(i,"varying vec3 vTroikaGlyphColor").replace(/\bdiffuse\b/g,"vTroikaGlyphColor"),i.test(s)||(s=s.replace(od,`uniform vec3 diffuse; $& vTroikaGlyphColor = uTroikaUseGlyphColors ? aTroikaGlyphColor / 255.0 : diffuse; -`))),{vertexShader:s,fragmentShader:c}}});return n.transparent=!0,Object.defineProperties(n,{isTroikaTextMaterial:{value:!0},shadowSide:{get(){return this.side},set(){}}}),n}const bl=new P1({color:16777215,side:Sl,transparent:!0}),Yc=8421504,Kc=new vf,Ps=new ct,Ya=new ct,mo=[],y0=new ct,Ka="+x+y";function Jc(o){return Array.isArray(o)?o[0]:o}let cd=()=>{const o=new Co(new Cl(1,1),bl);return cd=()=>o,o},fd=()=>{const o=new Co(new Cl(1,1,32,1),bl);return fd=()=>o,o};const x0={type:"syncstart"},S0={type:"synccomplete"},dd=["font","fontSize","letterSpacing","lineHeight","maxWidth","overflowWrap","text","direction","textAlign","textIndent","whiteSpace","anchorX","anchorY","colorRanges","sdfGlyphSize"],w0=dd.concat("material","color","depthOffset","clipRect","curveRadius","orientation","glyphGeometryDetail");let hd=class extends Co{constructor(){const n=new d0;super(n,null),this.text="",this.anchorX=0,this.anchorY=0,this.curveRadius=0,this.direction="auto",this.font=null,this.fontSize=.1,this.letterSpacing=0,this.lineHeight="normal",this.maxWidth=1/0,this.overflowWrap="normal",this.textAlign="left",this.textIndent=0,this.whiteSpace="normal",this.material=null,this.color=null,this.colorRanges=null,this.outlineWidth=0,this.outlineColor=0,this.outlineOpacity=1,this.outlineBlur=0,this.outlineOffsetX=0,this.outlineOffsetY=0,this.strokeWidth=0,this.strokeColor=Yc,this.strokeOpacity=1,this.fillOpacity=1,this.depthOffset=0,this.clipRect=null,this.orientation=Ka,this.glyphGeometryDetail=1,this.sdfGlyphSize=null,this.gpuAccelerateSDF=!0,this.debugSDF=!1}sync(n){this._needsSync&&(this._needsSync=!1,this._isSyncing?(this._queuedSyncs||(this._queuedSyncs=[])).push(n):(this._isSyncing=!0,this.dispatchEvent(x0),ad({text:this.text,font:this.font,fontSize:this.fontSize||.1,letterSpacing:this.letterSpacing||0,lineHeight:this.lineHeight||"normal",maxWidth:this.maxWidth,direction:this.direction||"auto",textAlign:this.textAlign,textIndent:this.textIndent,whiteSpace:this.whiteSpace,overflowWrap:this.overflowWrap,anchorX:this.anchorX,anchorY:this.anchorY,colorRanges:this.colorRanges,includeCaretPositions:!0,sdfGlyphSize:this.sdfGlyphSize,gpuAccelerateSDF:this.gpuAccelerateSDF},s=>{this._isSyncing=!1,this._textRenderInfo=s,this.geometry.updateGlyphs(s.glyphBounds,s.glyphAtlasIndices,s.blockBounds,s.chunkedBounds,s.glyphColors);const c=this._queuedSyncs;c&&(this._queuedSyncs=null,this._needsSync=!0,this.sync(()=>{c.forEach(i=>i&&i())})),this.dispatchEvent(S0),n&&n()})))}onBeforeRender(n,s,c,i,r,l){this.sync(),r.isTroikaTextMaterial&&this._prepareForRender(r),r._hadOwnSide=r.hasOwnProperty("side"),this.geometry.setSide(r._actualSide=r.side),r.side=_1}onAfterRender(n,s,c,i,r,l){r._hadOwnSide?r.side=r._actualSide:delete r.side}dispose(){this.geometry.dispose()}get textRenderInfo(){return this._textRenderInfo||null}get material(){let n=this._derivedMaterial;const s=this._baseMaterial||this._defaultMaterial||(this._defaultMaterial=bl.clone());if((!n||n.baseMaterial!==s)&&(n=this._derivedMaterial=v0(s),s.addEventListener("dispose",function c(){s.removeEventListener("dispose",c),n.dispose()})),this.outlineWidth||this.outlineBlur||this.outlineOffsetX||this.outlineOffsetY){let c=n._outlineMtl;return c||(c=n._outlineMtl=Object.create(n,{id:{value:n.id+.1}}),c.isTextOutlineMaterial=!0,c.depthWrite=!1,c.map=null,n.addEventListener("dispose",function i(){n.removeEventListener("dispose",i),c.dispose()})),[c,n]}else return n}set material(n){n&&n.isTroikaTextMaterial?(this._derivedMaterial=n,this._baseMaterial=n.baseMaterial):this._baseMaterial=n}get glyphGeometryDetail(){return this.geometry.detail}set glyphGeometryDetail(n){this.geometry.detail=n}get curveRadius(){return this.geometry.curveRadius}set curveRadius(n){this.geometry.curveRadius=n}get customDepthMaterial(){return Jc(this.material).getDepthMaterial()}get customDistanceMaterial(){return Jc(this.material).getDistanceMaterial()}_prepareForRender(n){const s=n.isTextOutlineMaterial,c=n.uniforms,i=this.textRenderInfo;if(i){const{sdfTexture:f,blockBounds:u}=i;c.uTroikaSDFTexture.value=f,c.uTroikaSDFTextureSize.value.set(f.image.width,f.image.height),c.uTroikaSDFGlyphSize.value=i.sdfGlyphSize,c.uTroikaSDFExponent.value=i.sdfExponent,c.uTroikaTotalBounds.value.fromArray(u),c.uTroikaUseGlyphColors.value=!s&&!!i.glyphColors;let p=0,h=0,g=0,v,x,w,k=0,_=0;if(s){let{outlineWidth:S,outlineOffsetX:T,outlineOffsetY:A,outlineBlur:R,outlineOpacity:b}=this;p=this._parsePercent(S)||0,h=Math.max(0,this._parsePercent(R)||0),v=b,k=this._parsePercent(T)||0,_=this._parsePercent(A)||0}else g=Math.max(0,this._parsePercent(this.strokeWidth)||0),g&&(w=this.strokeColor,c.uTroikaStrokeColor.value.set(w??Yc),x=this.strokeOpacity,x==null&&(x=1)),v=this.fillOpacity;c.uTroikaDistanceOffset.value=p,c.uTroikaPositionOffset.value.set(k,_),c.uTroikaBlurRadius.value=h,c.uTroikaStrokeWidth.value=g,c.uTroikaStrokeOpacity.value=x,c.uTroikaFillOpacity.value=v??1,c.uTroikaCurveRadius.value=this.curveRadius||0;let C=this.clipRect;if(C&&Array.isArray(C)&&C.length===4)c.uTroikaClipRect.value.fromArray(C);else{const S=(this.fontSize||.1)*100;c.uTroikaClipRect.value.set(u[0]-S,u[1]-S,u[2]+S,u[3]+S)}this.geometry.applyClipRect(c.uTroikaClipRect.value)}c.uTroikaSDFDebug.value=!!this.debugSDF,n.polygonOffset=!!this.depthOffset,n.polygonOffsetFactor=n.polygonOffsetUnits=this.depthOffset||0;const r=s?this.outlineColor||0:this.color;if(r==null)delete n.color;else{const f=n.hasOwnProperty("color")?n.color:n.color=new wo;(r!==f._input||typeof r=="object")&&f.set(f._input=r)}let l=this.orientation||Ka;if(l!==n._orientation){let f=c.uTroikaOrient.value;l=l.replace(/[^-+xyz]/g,"");let u=l!==Ka&&l.match(/^([-+])([xyz])([-+])([xyz])$/);if(u){let[,p,h,g,v]=u;Ps.set(0,0,0)[h]=p==="-"?1:-1,Ya.set(0,0,0)[v]=g==="-"?-1:1,Kc.lookAt(y0,Ps.cross(Ya),Ya),f.setFromMatrix4(Kc)}else f.identity();n._orientation=l}}_parsePercent(n){if(typeof n=="string"){let s=n.match(/^(-?[\d.]+)%$/),c=s?parseFloat(s[1]):NaN;n=(isNaN(c)?0:c/100)*this.fontSize}return n}localPositionToTextCoords(n,s=new $r){s.copy(n);const c=this.curveRadius;return c&&(s.x=Math.atan2(n.x,Math.abs(c)-Math.abs(n.z))*Math.abs(c)),s}worldPositionToTextCoords(n,s=new $r){return Ps.copy(n),this.localPositionToTextCoords(this.worldToLocal(Ps),s)}raycast(n,s){const{textRenderInfo:c,curveRadius:i}=this;if(c){const r=c.blockBounds,l=i?fd():cd(),f=l.geometry,{position:u,uv:p}=f.attributes;for(let h=0;h{this[c]=n[c]}),this}clone(){return new this.constructor().copy(this)}};dd.forEach(o=>{const n="_private_"+o;Object.defineProperty(hd.prototype,o,{get(){return this[n]},set(s){s!==this[n]&&(this[n]=s,this._needsSync=!0)}})});function C0(o,n,s=(c,i)=>c===i){if(o===n)return!0;if(!o||!n)return!1;const c=o.length;if(n.length!==c)return!1;for(let i=0;ii.response=r).then(()=>{c.lifespan&&c.lifespan>0&&setTimeout(()=>{const r=Ms.indexOf(i);r!==-1&&Ms.splice(r,1)},c.lifespan)}).catch(r=>i.error=r)};if(Ms.push(i),!s)throw i.promise}const E0=(o,n,s)=>_0(o,n,!1,s),qc=P.forwardRef(({anchorX:o="center",anchorY:n="middle",font:s,fontSize:c=1,children:i,characters:r,onSync:l,...f},u)=>{const p=Di(({invalidate:x})=>x),[h]=P.useState(()=>new hd),[g,v]=P.useMemo(()=>{const x=[];let w="";return P.Children.forEach(i,k=>{typeof k=="string"||typeof k=="number"?w+=k:x.push(k)}),[x,w]},[i]);return E0(()=>new Promise(x=>i0({font:s,characters:r},x)),["troika-text",s,r]),P.useLayoutEffect(()=>void h.sync(()=>{p(),l&&l(h)})),P.useEffect(()=>()=>h.dispose(),[h]),P.createElement("primitive",qr({object:h,ref:u,font:s,text:v,anchorX:o,anchorY:n,fontSize:c},f),g)});function pd(o){const n=o+"Geometry";return P.forwardRef(({args:s,children:c,...i},r)=>P.createElement("mesh",qr({ref:r},i),P.createElement(n,{attach:"geometry",args:s}),c))}const Rm=pd("circle"),Am=pd("plane");var $e="colors",nn="sizes",ye="space",k0={gap:ye,gridGap:ye,columnGap:ye,gridColumnGap:ye,rowGap:ye,gridRowGap:ye,inset:ye,insetBlock:ye,insetBlockEnd:ye,insetBlockStart:ye,insetInline:ye,insetInlineEnd:ye,insetInlineStart:ye,margin:ye,marginTop:ye,marginRight:ye,marginBottom:ye,marginLeft:ye,marginBlock:ye,marginBlockEnd:ye,marginBlockStart:ye,marginInline:ye,marginInlineEnd:ye,marginInlineStart:ye,padding:ye,paddingTop:ye,paddingRight:ye,paddingBottom:ye,paddingLeft:ye,paddingBlock:ye,paddingBlockEnd:ye,paddingBlockStart:ye,paddingInline:ye,paddingInlineEnd:ye,paddingInlineStart:ye,top:ye,right:ye,bottom:ye,left:ye,scrollMargin:ye,scrollMarginTop:ye,scrollMarginRight:ye,scrollMarginBottom:ye,scrollMarginLeft:ye,scrollMarginX:ye,scrollMarginY:ye,scrollMarginBlock:ye,scrollMarginBlockEnd:ye,scrollMarginBlockStart:ye,scrollMarginInline:ye,scrollMarginInlineEnd:ye,scrollMarginInlineStart:ye,scrollPadding:ye,scrollPaddingTop:ye,scrollPaddingRight:ye,scrollPaddingBottom:ye,scrollPaddingLeft:ye,scrollPaddingX:ye,scrollPaddingY:ye,scrollPaddingBlock:ye,scrollPaddingBlockEnd:ye,scrollPaddingBlockStart:ye,scrollPaddingInline:ye,scrollPaddingInlineEnd:ye,scrollPaddingInlineStart:ye,fontSize:"fontSizes",background:$e,backgroundColor:$e,backgroundImage:$e,borderImage:$e,border:$e,borderBlock:$e,borderBlockEnd:$e,borderBlockStart:$e,borderBottom:$e,borderBottomColor:$e,borderColor:$e,borderInline:$e,borderInlineEnd:$e,borderInlineStart:$e,borderLeft:$e,borderLeftColor:$e,borderRight:$e,borderRightColor:$e,borderTop:$e,borderTopColor:$e,caretColor:$e,color:$e,columnRuleColor:$e,fill:$e,outline:$e,outlineColor:$e,stroke:$e,textDecorationColor:$e,fontFamily:"fonts",fontWeight:"fontWeights",lineHeight:"lineHeights",letterSpacing:"letterSpacings",blockSize:nn,minBlockSize:nn,maxBlockSize:nn,inlineSize:nn,minInlineSize:nn,maxInlineSize:nn,width:nn,minWidth:nn,maxWidth:nn,height:nn,minHeight:nn,maxHeight:nn,flexBasis:nn,gridTemplateColumns:nn,gridTemplateRows:nn,borderWidth:"borderWidths",borderTopWidth:"borderWidths",borderRightWidth:"borderWidths",borderBottomWidth:"borderWidths",borderLeftWidth:"borderWidths",borderStyle:"borderStyles",borderTopStyle:"borderStyles",borderRightStyle:"borderStyles",borderBottomStyle:"borderStyles",borderLeftStyle:"borderStyles",borderRadius:"radii",borderTopLeftRadius:"radii",borderTopRightRadius:"radii",borderBottomRightRadius:"radii",borderBottomLeftRadius:"radii",boxShadow:"shadows",textShadow:"shadows",transition:"transitions",zIndex:"zIndices"},T0=(o,n)=>typeof n=="function"?{"()":Function.prototype.toString.call(n)}:n,Oi=()=>{const o=Object.create(null);return(n,s,...c)=>{const i=(r=>JSON.stringify(r,T0))(n);return i in o?o[i]:o[i]=s(n,...c)}},Kr=Symbol.for("sxs.internal"),Ll=(o,n)=>Object.defineProperties(o,Object.getOwnPropertyDescriptors(n)),$c=o=>{for(const n in o)return!0;return!1},{hasOwnProperty:P0}=Object.prototype,pl=o=>o.includes("-")?o:o.replace(/[A-Z]/g,n=>"-"+n.toLowerCase()),M0=/\s+(?![^()]*\))/,ki=o=>n=>o(...typeof n=="string"?String(n).split(M0):[n]),ef={appearance:o=>({WebkitAppearance:o,appearance:o}),backfaceVisibility:o=>({WebkitBackfaceVisibility:o,backfaceVisibility:o}),backdropFilter:o=>({WebkitBackdropFilter:o,backdropFilter:o}),backgroundClip:o=>({WebkitBackgroundClip:o,backgroundClip:o}),boxDecorationBreak:o=>({WebkitBoxDecorationBreak:o,boxDecorationBreak:o}),clipPath:o=>({WebkitClipPath:o,clipPath:o}),content:o=>({content:o.includes('"')||o.includes("'")||/^([A-Za-z]+\([^]*|[^]*-quote|inherit|initial|none|normal|revert|unset)$/.test(o)?o:`"${o}"`}),hyphens:o=>({WebkitHyphens:o,hyphens:o}),maskImage:o=>({WebkitMaskImage:o,maskImage:o}),maskSize:o=>({WebkitMaskSize:o,maskSize:o}),tabSize:o=>({MozTabSize:o,tabSize:o}),textSizeAdjust:o=>({WebkitTextSizeAdjust:o,textSizeAdjust:o}),userSelect:o=>({WebkitUserSelect:o,userSelect:o}),marginBlock:ki((o,n)=>({marginBlockStart:o,marginBlockEnd:n||o})),marginInline:ki((o,n)=>({marginInlineStart:o,marginInlineEnd:n||o})),maxSize:ki((o,n)=>({maxBlockSize:o,maxInlineSize:n||o})),minSize:ki((o,n)=>({minBlockSize:o,minInlineSize:n||o})),paddingBlock:ki((o,n)=>({paddingBlockStart:o,paddingBlockEnd:n||o})),paddingInline:ki((o,n)=>({paddingInlineStart:o,paddingInlineEnd:n||o}))},Ja=/([\d.]+)([^]*)/,b0=(o,n)=>o.length?o.reduce((s,c)=>(s.push(...n.map(i=>i.includes("&")?i.replace(/&/g,/[ +>|~]/.test(c)&&/&.*&/.test(i)?`:is(${c})`:c):c+" "+i)),s),[]):n,L0=(o,n)=>o in U0&&typeof n=="string"?n.replace(/^((?:[^]*[^\w-])?)(fit-content|stretch)((?:[^\w-][^]*)?)$/,(s,c,i,r)=>c+(i==="stretch"?`-moz-available${r};${pl(o)}:${c}-webkit-fill-available`:`-moz-fit-content${r};${pl(o)}:${c}fit-content`)+r):String(n),U0={blockSize:1,height:1,inlineSize:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,width:1},mr=o=>o?o+"-":"",md=(o,n,s)=>o.replace(/([+-])?((?:\d+(?:\.\d*)?|\.\d+)(?:[Ee][+-]?\d+)?)?(\$|--)([$\w-]+)/g,(c,i,r,l,f)=>l=="$"==!!r?c:(i||l=="--"?"calc(":"")+"var(--"+(l==="$"?mr(n)+(f.includes("$")?"":mr(s))+f.replace(/\$/g,"-"):f)+")"+(i||l=="--"?"*"+(i||"")+(r||"1")+")":"")),R0=/\s*,\s*(?![^()]*\))/,A0=Object.prototype.toString,Ui=(o,n,s,c,i)=>{let r,l,f;const u=(p,h,g)=>{let v,x;const w=k=>{for(v in k){const S=v.charCodeAt(0)===64,T=S&&Array.isArray(k[v])?k[v]:[k[v]];for(x of T){const A=/[A-Z]/.test(C=v)?C:C.replace(/-[^]/g,b=>b[1].toUpperCase()),R=typeof x=="object"&&x&&x.toString===A0&&(!c.utils[A]||!h.length);if(A in c.utils&&!R){const b=c.utils[A];if(b!==l){l=b,w(b(x)),l=null;continue}}else if(A in ef){const b=ef[A];if(b!==f){f=b,w(b(x)),f=null;continue}}if(S&&(_=v.slice(1)in c.media?"@media "+c.media[v.slice(1)]:v,v=_.replace(/\(\s*([\w-]+)\s*(=|<|<=|>|>=)\s*([\w-]+)\s*(?:(<|<=|>|>=)\s*([\w-]+)\s*)?\)/g,(b,O,z,Q,ee,N)=>{const D=Ja.test(O),J=.0625*(D?-1:1),[K,re]=D?[Q,O]:[O,Q];return"("+(z[0]==="="?"":z[0]===">"===D?"max-":"min-")+K+":"+(z[0]!=="="&&z.length===1?re.replace(Ja,(se,pe,G)=>Number(pe)+J*(z===">"?1:-1)+G):re)+(ee?") and ("+(ee[0]===">"?"min-":"max-")+K+":"+(ee.length===1?N.replace(Ja,(se,pe,G)=>Number(pe)+J*(ee===">"?-1:1)+G):N):"")+")"})),R){const b=S?g.concat(v):[...g],O=S?[...h]:b0(h,v.split(R0));r!==void 0&&i(tf(...r)),r=void 0,u(x,O,b)}else r===void 0&&(r=[[],h,g]),v=S||v.charCodeAt(0)!==36?v:`--${mr(c.prefix)}${v.slice(1).replace(/\$/g,"-")}`,x=R?x:typeof x=="number"?x&&A in I0?String(x)+"px":String(x):md(L0(A,x??""),c.prefix,c.themeMap[A]),r[0].push(`${S?`${v} `:`${pl(v)}:`}${x}`)}}var _,C};w(p),r!==void 0&&i(tf(...r)),r=void 0};u(o,n,s)},tf=(o,n,s)=>`${s.map(c=>`${c}{`).join("")}${n.length?`${n.join(",")}{`:""}${o.join(";")}${n.length?"}":""}${Array(s.length?s.length+1:0).join("}")}`,I0={animationDelay:1,animationDuration:1,backgroundSize:1,blockSize:1,border:1,borderBlock:1,borderBlockEnd:1,borderBlockEndWidth:1,borderBlockStart:1,borderBlockStartWidth:1,borderBlockWidth:1,borderBottom:1,borderBottomLeftRadius:1,borderBottomRightRadius:1,borderBottomWidth:1,borderEndEndRadius:1,borderEndStartRadius:1,borderInlineEnd:1,borderInlineEndWidth:1,borderInlineStart:1,borderInlineStartWidth:1,borderInlineWidth:1,borderLeft:1,borderLeftWidth:1,borderRadius:1,borderRight:1,borderRightWidth:1,borderSpacing:1,borderStartEndRadius:1,borderStartStartRadius:1,borderTop:1,borderTopLeftRadius:1,borderTopRightRadius:1,borderTopWidth:1,borderWidth:1,bottom:1,columnGap:1,columnRule:1,columnRuleWidth:1,columnWidth:1,containIntrinsicSize:1,flexBasis:1,fontSize:1,gap:1,gridAutoColumns:1,gridAutoRows:1,gridTemplateColumns:1,gridTemplateRows:1,height:1,inlineSize:1,inset:1,insetBlock:1,insetBlockEnd:1,insetBlockStart:1,insetInline:1,insetInlineEnd:1,insetInlineStart:1,left:1,letterSpacing:1,margin:1,marginBlock:1,marginBlockEnd:1,marginBlockStart:1,marginBottom:1,marginInline:1,marginInlineEnd:1,marginInlineStart:1,marginLeft:1,marginRight:1,marginTop:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,offsetDistance:1,offsetRotate:1,outline:1,outlineOffset:1,outlineWidth:1,overflowClipMargin:1,padding:1,paddingBlock:1,paddingBlockEnd:1,paddingBlockStart:1,paddingBottom:1,paddingInline:1,paddingInlineEnd:1,paddingInlineStart:1,paddingLeft:1,paddingRight:1,paddingTop:1,perspective:1,right:1,rowGap:1,scrollMargin:1,scrollMarginBlock:1,scrollMarginBlockEnd:1,scrollMarginBlockStart:1,scrollMarginBottom:1,scrollMarginInline:1,scrollMarginInlineEnd:1,scrollMarginInlineStart:1,scrollMarginLeft:1,scrollMarginRight:1,scrollMarginTop:1,scrollPadding:1,scrollPaddingBlock:1,scrollPaddingBlockEnd:1,scrollPaddingBlockStart:1,scrollPaddingBottom:1,scrollPaddingInline:1,scrollPaddingInlineEnd:1,scrollPaddingInlineStart:1,scrollPaddingLeft:1,scrollPaddingRight:1,scrollPaddingTop:1,shapeMargin:1,textDecoration:1,textDecorationThickness:1,textIndent:1,textUnderlineOffset:1,top:1,transitionDelay:1,transitionDuration:1,verticalAlign:1,width:1,wordSpacing:1},nf=o=>String.fromCharCode(o+(o>25?39:97)),Jr=o=>(n=>{let s,c="";for(s=Math.abs(n);s>52;s=s/52|0)c=nf(s%52)+c;return nf(s%52)+c})(((n,s)=>{let c=s.length;for(;c;)n=33*n^s.charCodeAt(--c);return n})(5381,JSON.stringify(o))>>>0),yo=["themed","global","styled","onevar","resonevar","allvar","inline"],D0=o=>{if(o.href&&!o.href.startsWith(location.origin))return!1;try{return!!o.cssRules}catch{return!1}},O0=o=>{let n;const s=()=>{const{cssRules:i}=n.sheet;return[].map.call(i,(r,l)=>{const{cssText:f}=r;let u="";if(f.startsWith("--sxs"))return"";if(i[l-1]&&(u=i[l-1].cssText).startsWith("--sxs")){if(!r.cssRules.length)return"";for(const p in n.rules)if(n.rules[p].group===r)return`--sxs{--sxs:${[...n.rules[p].cache].join(" ")}}${f}`;return r.cssRules.length?`${u}${f}`:""}return f}).join("")},c=()=>{if(n){const{rules:f,sheet:u}=n;if(!u.deleteRule){for(;Object(Object(u.cssRules)[0]).type===3;)u.cssRules.splice(0,1);u.cssRules=[]}for(const p in f)delete f[p]}const i=Object(o).styleSheets||[];for(const f of i)if(D0(f)){for(let u=0,p=f.cssRules;p[u];++u){const h=Object(p[u]);if(h.type!==1)continue;const g=Object(p[u+1]);if(g.type!==4)continue;++u;const{cssText:v}=h;if(!v.startsWith("--sxs"))continue;const x=v.slice(14,-3).trim().split(/\s+/),w=yo[x[0]];w&&(n||(n={sheet:f,reset:c,rules:{},toString:s}),n.rules[w]={group:g,index:u,cache:new Set(x)})}if(n)break}if(!n){const f=(u,p)=>({type:p,cssRules:[],insertRule(h,g){this.cssRules.splice(g,0,f(h,{import:3,undefined:1}[(h.toLowerCase().match(/^@([a-z]+)/)||[])[1]]||4))},get cssText(){return u==="@media{}"?`@media{${[].map.call(this.cssRules,h=>h.cssText).join("")}}`:u}});n={sheet:o?(o.head||o).appendChild(document.createElement("style")).sheet:f("","text/css"),rules:{},reset:c,toString:s}}const{sheet:r,rules:l}=n;for(let f=yo.length-1;f>=0;--f){const u=yo[f];if(!l[u]){const p=yo[f+1],h=l[p]?l[p].index:r.cssRules.length;r.insertRule("@media{}",h),r.insertRule(`--sxs{--sxs:${f}}`,h),l[u]={group:r.cssRules[h+1],index:h,cache:new Set([f])}}F0(l[u])}};return c(),n},F0=o=>{const n=o.group;let s=n.cssRules.length;o.apply=c=>{try{n.insertRule(c,s),++s}catch{}}},go=Symbol(),j0=Oi(),rf=(o,n)=>j0(o,()=>(...s)=>{let c={type:null,composers:new Set};for(const i of s)if(i!=null)if(i[Kr]){c.type==null&&(c.type=i[Kr].type);for(const r of i[Kr].composers)c.composers.add(r)}else i.constructor!==Object||i.$$typeof?c.type==null&&(c.type=i):c.composers.add(z0(i,o));return c.type==null&&(c.type="span"),c.composers.size||c.composers.add(["PJLV",{},[],[],{},[]]),B0(o,c,n)}),z0=({variants:o,compoundVariants:n,defaultVariants:s,...c},i)=>{const r=`${mr(i.prefix)}c-${Jr(c)}`,l=[],f=[],u=Object.create(null),p=[];for(const v in s)u[v]=String(s[v]);if(typeof o=="object"&&o)for(const v in o){h=u,g=v,P0.call(h,g)||(u[v]="undefined");const x=o[v];for(const w in x){const k={[v]:String(w)};String(w)==="undefined"&&p.push(v);const _=x[w],C=[k,_,!$c(_)];l.push(C)}}var h,g;if(typeof n=="object"&&n)for(const v of n){let{css:x,...w}=v;x=typeof x=="object"&&x||{};for(const _ in w)w[_]=String(w[_]);const k=[w,x,!$c(x)];f.push(k)}return[r,c,l,f,u,p]},B0=(o,n,s)=>{const[c,i,r,l]=N0(n.composers),f=typeof n.type=="function"||n.type.$$typeof?(g=>{function v(){for(let x=0;xv.rules[x]={apply:w=>v[go].push([x,w])}),v})(s):null,u=(f||s).rules,p=`.${c}${i.length>1?`:where(.${i.slice(1).join(".")})`:""}`,h=g=>{g=typeof g=="object"&&g||W0;const{css:v,...x}=g,w={};for(const C in r)if(delete x[C],C in g){let S=g[C];typeof S=="object"&&S?w[C]={"@initial":r[C],...S}:(S=String(S),w[C]=S!=="undefined"||l.has(C)?S:r[C])}else w[C]=r[C];const k=new Set([...i]);for(const[C,S,T,A]of n.composers){s.rules.styled.cache.has(C)||(s.rules.styled.cache.add(C),Ui(S,[`.${C}`],[],o,O=>{u.styled.apply(O)}));const R=of(T,w,o.media),b=of(A,w,o.media,!0);for(const O of R)if(O!==void 0)for(const[z,Q,ee]of O){const N=`${C}-${Jr(Q)}-${z}`;k.add(N);const D=(ee?s.rules.resonevar:s.rules.onevar).cache,J=ee?u.resonevar:u.onevar;D.has(N)||(D.add(N),Ui(Q,[`.${N}`],[],o,K=>{J.apply(K)}))}for(const O of b)if(O!==void 0)for(const[z,Q]of O){const ee=`${C}-${Jr(Q)}-${z}`;k.add(ee),s.rules.allvar.cache.has(ee)||(s.rules.allvar.cache.add(ee),Ui(Q,[`.${ee}`],[],o,N=>{u.allvar.apply(N)}))}}if(typeof v=="object"&&v){const C=`${c}-i${Jr(v)}-css`;k.add(C),s.rules.inline.cache.has(C)||(s.rules.inline.cache.add(C),Ui(v,[`.${C}`],[],o,S=>{u.inline.apply(S)}))}for(const C of String(g.className||"").trim().split(/\s+/))C&&k.add(C);const _=x.className=[...k].join(" ");return{type:n.type,className:_,selector:p,props:x,toString:()=>_,deferredInjector:f}};return Ll(h,{className:c,selector:p,[Kr]:n,toString:()=>(s.rules.styled.cache.has(c)||h(),c)})},N0=o=>{let n="";const s=[],c={},i=[];for(const[r,,,,l,f]of o){n===""&&(n=r),s.push(r),i.push(...f);for(const u in l){const p=l[u];(c[u]===void 0||p!=="undefined"||f.includes(p))&&(c[u]=p)}}return[n,s,c,new Set(i)]},of=(o,n,s,c)=>{const i=[];e:for(let[r,l,f]of o){if(f)continue;let u,p=0,h=!1;for(u in r){const g=r[u];let v=n[u];if(v!==g){if(typeof v!="object"||!v)continue e;{let x,w,k=0;for(const _ in v){if(g===String(v[_])){if(_!=="@initial"){const C=_.slice(1);(w=w||[]).push(C in s?s[C]:_.replace(/^@media ?/,"")),h=!0}p+=k,x=!0}++k}if(w&&w.length&&(l={["@media "+w.join(", ")]:l}),!x)continue e}}}(i[p]=i[p]||[]).push([c?"cv":`${u}-${r[u]}`,l,h])}return i},W0={},G0=Oi(),H0=(o,n)=>G0(o,()=>(...s)=>{const c=()=>{for(let i of s){i=typeof i=="object"&&i||{};let r=Jr(i);if(!n.rules.global.cache.has(r)){if(n.rules.global.cache.add(r),"@import"in i){let l=[].indexOf.call(n.sheet.cssRules,n.rules.themed.group)-1;for(let f of[].concat(i["@import"]))f=f.includes('"')||f.includes("'")?f:`"${f}"`,n.sheet.insertRule(`@import ${f};`,l++);delete i["@import"]}Ui(i,[],[],o,l=>{n.rules.global.apply(l)})}}return""};return Ll(c,{toString:c})}),V0=Oi(),Z0=(o,n)=>V0(o,()=>s=>{const c=`${mr(o.prefix)}k-${Jr(s)}`,i=()=>{if(!n.rules.global.cache.has(c)){n.rules.global.cache.add(c);const r=[];Ui(s,[],[],o,f=>r.push(f));const l=`@keyframes ${c}{${r.join("")}}`;n.rules.global.apply(l)}return c};return Ll(i,{get name(){return i()},toString:i})}),X0=class{constructor(o,n,s,c){this.token=o==null?"":String(o),this.value=n==null?"":String(n),this.scale=s==null?"":String(s),this.prefix=c==null?"":String(c)}get computedValue(){return"var("+this.variable+")"}get variable(){return"--"+mr(this.prefix)+mr(this.scale)+this.token}toString(){return this.computedValue}},Q0=Oi(),Y0=(o,n)=>Q0(o,()=>(s,c)=>{c=typeof s=="object"&&s||Object(c);const i=`.${s=(s=typeof s=="string"?s:"")||`${mr(o.prefix)}t-${Jr(c)}`}`,r={},l=[];for(const u in c){r[u]={};for(const p in c[u]){const h=`--${mr(o.prefix)}${u}-${p}`,g=md(String(c[u][p]),o.prefix,u);r[u][p]=new X0(p,g,u,o.prefix),l.push(`${h}:${g}`)}}const f=()=>{if(l.length&&!n.rules.themed.cache.has(s)){n.rules.themed.cache.add(s);const u=`${c===o.theme?":root,":""}.${s}{${l.join(";")}}`;n.rules.themed.apply(u)}return s};return{...r,get className(){return f()},selector:i,toString:f}}),K0=Oi(),sf,J0=Oi(),q0=o=>{const n=(s=>{let c=!1;const i=K0(s,r=>{c=!0;const l="prefix"in(r=typeof r=="object"&&r||{})?String(r.prefix):"",f=typeof r.media=="object"&&r.media||{},u=typeof r.root=="object"?r.root||null:globalThis.document||null,p=typeof r.theme=="object"&&r.theme||{},h={prefix:l,media:f,theme:p,themeMap:typeof r.themeMap=="object"&&r.themeMap||{...k0},utils:typeof r.utils=="object"&&r.utils||{}},g=O0(u),v={css:rf(h,g),globalCss:H0(h,g),keyframes:Z0(h,g),createTheme:Y0(h,g),reset(){g.reset(),v.theme.toString()},theme:{},sheet:g,config:h,prefix:l,getCssText:g.toString,toString:g.toString};return String(v.theme=v.createTheme(p)),v});return c||i.reset(),i})(o);return n.styled=(({config:s,sheet:c})=>J0(s,()=>{const i=rf(s,c);return(...r)=>{const l=i(...r),f=l[Kr].type,u=er.forwardRef((p,h)=>{const g=p&&p.as||f,{props:v,deferredInjector:x}=l(p);return delete v.as,v.ref=h,x?er.createElement(er.Fragment,null,er.createElement(g,v),er.createElement(x,null)):er.createElement(g,v)});return u.className=l.className,u.displayName=`Styled.${f.displayName||f.name||f}`,u.selector=l.selector,u.toString=()=>l.selector,u[Kr]=l[Kr],u}}))(n),n},$0=()=>sf||(sf=q0()),Tt=(...o)=>$0().styled(...o);function St(o,n){if(o==null)return{};var s={},c=Object.keys(o),i,r;for(r=0;r=0)&&(s[i]=o[i]);return s}var e2=["color"],gd=P.forwardRef(function(o,n){var s=o.color,c=s===void 0?"currentColor":s,i=St(o,e2);return P.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:n}),P.createElement("path",{d:"M0 1.5C0 1.22386 0.223858 1 0.5 1H2.5C2.77614 1 3 1.22386 3 1.5C3 1.77614 2.77614 2 2.5 2H0.5C0.223858 2 0 1.77614 0 1.5ZM4 1.5C4 1.22386 4.22386 1 4.5 1H14.5C14.7761 1 15 1.22386 15 1.5C15 1.77614 14.7761 2 14.5 2H4.5C4.22386 2 4 1.77614 4 1.5ZM4 4.5C4 4.22386 4.22386 4 4.5 4H11.5C11.7761 4 12 4.22386 12 4.5C12 4.77614 11.7761 5 11.5 5H4.5C4.22386 5 4 4.77614 4 4.5ZM0 7.5C0 7.22386 0.223858 7 0.5 7H2.5C2.77614 7 3 7.22386 3 7.5C3 7.77614 2.77614 8 2.5 8H0.5C0.223858 8 0 7.77614 0 7.5ZM4 7.5C4 7.22386 4.22386 7 4.5 7H14.5C14.7761 7 15 7.22386 15 7.5C15 7.77614 14.7761 8 14.5 8H4.5C4.22386 8 4 7.77614 4 7.5ZM4 10.5C4 10.2239 4.22386 10 4.5 10H11.5C11.7761 10 12 10.2239 12 10.5C12 10.7761 11.7761 11 11.5 11H4.5C4.22386 11 4 10.7761 4 10.5ZM0 13.5C0 13.2239 0.223858 13 0.5 13H2.5C2.77614 13 3 13.2239 3 13.5C3 13.7761 2.77614 14 2.5 14H0.5C0.223858 14 0 13.7761 0 13.5ZM4 13.5C4 13.2239 4.22386 13 4.5 13H14.5C14.7761 13 15 13.2239 15 13.5C15 13.7761 14.7761 14 14.5 14H4.5C4.22386 14 4 13.7761 4 13.5Z",fill:c,fillRule:"evenodd",clipRule:"evenodd"}))}),t2=["color"],n2=P.forwardRef(function(o,n){var s=o.color,c=s===void 0?"currentColor":s,i=St(o,t2);return P.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:n}),P.createElement("path",{d:"M11.5 1C11.7761 1 12 1.22386 12 1.5V13.5C12 13.7761 11.7761 14 11.5 14C11.2239 14 11 13.7761 11 13.5V1.5C11 1.22386 11.2239 1 11.5 1ZM9.5 3C9.77614 3 10 3.22386 10 3.5V13.5C10 13.7761 9.77614 14 9.5 14C9.22386 14 9 13.7761 9 13.5V3.5C9 3.22386 9.22386 3 9.5 3ZM13.5 3C13.7761 3 14 3.22386 14 3.5V13.5C14 13.7761 13.7761 14 13.5 14C13.2239 14 13 13.7761 13 13.5V3.5C13 3.22386 13.2239 3 13.5 3ZM5.5 4C5.77614 4 6 4.22386 6 4.5V13.5C6 13.7761 5.77614 14 5.5 14C5.22386 14 5 13.7761 5 13.5V4.5C5 4.22386 5.22386 4 5.5 4ZM1.5 5C1.77614 5 2 5.22386 2 5.5V13.5C2 13.7761 1.77614 14 1.5 14C1.22386 14 1 13.7761 1 13.5V5.5C1 5.22386 1.22386 5 1.5 5ZM7.5 5C7.77614 5 8 5.22386 8 5.5V13.5C8 13.7761 7.77614 14 7.5 14C7.22386 14 7 13.7761 7 13.5V5.5C7 5.22386 7.22386 5 7.5 5ZM3.5 7C3.77614 7 4 7.22386 4 7.5V13.5C4 13.7761 3.77614 14 3.5 14C3.22386 14 3 13.7761 3 13.5V7.5C3 7.22386 3.22386 7 3.5 7Z",fill:c,fillRule:"evenodd",clipRule:"evenodd"}))}),r2=["color"],i2=P.forwardRef(function(o,n){var s=o.color,c=s===void 0?"currentColor":s,i=St(o,r2);return P.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:n}),P.createElement("path",{d:"M2 5H13C13.5523 5 14 5.44772 14 6V9C14 9.55228 13.5523 10 13 10H2C1.44772 10 1 9.55228 1 9V6C1 5.44772 1.44772 5 2 5ZM0 6C0 4.89543 0.895431 4 2 4H13C14.1046 4 15 4.89543 15 6V9C15 10.1046 14.1046 11 13 11H2C0.89543 11 0 10.1046 0 9V6ZM4.5 6.75C4.08579 6.75 3.75 7.08579 3.75 7.5C3.75 7.91421 4.08579 8.25 4.5 8.25C4.91421 8.25 5.25 7.91421 5.25 7.5C5.25 7.08579 4.91421 6.75 4.5 6.75ZM6.75 7.5C6.75 7.08579 7.08579 6.75 7.5 6.75C7.91421 6.75 8.25 7.08579 8.25 7.5C8.25 7.91421 7.91421 8.25 7.5 8.25C7.08579 8.25 6.75 7.91421 6.75 7.5ZM10.5 6.75C10.0858 6.75 9.75 7.08579 9.75 7.5C9.75 7.91421 10.0858 8.25 10.5 8.25C10.9142 8.25 11.25 7.91421 11.25 7.5C11.25 7.08579 10.9142 6.75 10.5 6.75Z",fill:c,fillRule:"evenodd",clipRule:"evenodd"}))}),o2=["color"],s2=P.forwardRef(function(o,n){var s=o.color,c=s===void 0?"currentColor":s,i=St(o,o2);return P.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:n}),P.createElement("path",{d:"M7.28856 0.796908C7.42258 0.734364 7.57742 0.734364 7.71144 0.796908L13.7114 3.59691C13.8875 3.67906 14 3.85574 14 4.05V10.95C14 11.1443 13.8875 11.3209 13.7114 11.4031L7.71144 14.2031C7.57742 14.2656 7.42258 14.2656 7.28856 14.2031L1.28856 11.4031C1.11252 11.3209 1 11.1443 1 10.95V4.05C1 3.85574 1.11252 3.67906 1.28856 3.59691L7.28856 0.796908ZM2 4.80578L7 6.93078V12.9649L2 10.6316V4.80578ZM8 12.9649L13 10.6316V4.80578L8 6.93078V12.9649ZM7.5 6.05672L12.2719 4.02866L7.5 1.80176L2.72809 4.02866L7.5 6.05672Z",fill:c,fillRule:"evenodd",clipRule:"evenodd"}))}),a2=["color"],l2=P.forwardRef(function(o,n){var s=o.color,c=s===void 0?"currentColor":s,i=St(o,a2);return P.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:n}),P.createElement("path",{d:"M7.5 9.125C8.39746 9.125 9.125 8.39746 9.125 7.5C9.125 6.60254 8.39746 5.875 7.5 5.875C6.60254 5.875 5.875 6.60254 5.875 7.5C5.875 8.39746 6.60254 9.125 7.5 9.125ZM7.5 10.125C8.94975 10.125 10.125 8.94975 10.125 7.5C10.125 6.05025 8.94975 4.875 7.5 4.875C6.05025 4.875 4.875 6.05025 4.875 7.5C4.875 8.94975 6.05025 10.125 7.5 10.125Z",fill:c,fillRule:"evenodd",clipRule:"evenodd"}))}),u2=["color"],c2=P.forwardRef(function(o,n){var s=o.color,c=s===void 0?"currentColor":s,i=St(o,u2);return P.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:n}),P.createElement("path",{d:"M7.49999 3.09998C7.27907 3.09998 7.09999 3.27906 7.09999 3.49998C7.09999 3.72089 7.27907 3.89998 7.49999 3.89998H14.5C14.7209 3.89998 14.9 3.72089 14.9 3.49998C14.9 3.27906 14.7209 3.09998 14.5 3.09998H7.49999ZM7.49998 5.1C7.27907 5.1 7.09998 5.27908 7.09998 5.5C7.09998 5.72091 7.27907 5.9 7.49998 5.9H14.5C14.7209 5.9 14.9 5.72091 14.9 5.5C14.9 5.27908 14.7209 5.1 14.5 5.1H7.49998ZM7.1 7.5C7.1 7.27908 7.27909 7.1 7.5 7.1H14.5C14.7209 7.1 14.9 7.27908 14.9 7.5C14.9 7.72091 14.7209 7.9 14.5 7.9H7.5C7.27909 7.9 7.1 7.72091 7.1 7.5ZM7.49998 9.1C7.27907 9.1 7.09998 9.27908 7.09998 9.5C7.09998 9.72091 7.27907 9.9 7.49998 9.9H14.5C14.7209 9.9 14.9 9.72091 14.9 9.5C14.9 9.27908 14.7209 9.1 14.5 9.1H7.49998ZM7.09998 11.5C7.09998 11.2791 7.27907 11.1 7.49998 11.1H14.5C14.7209 11.1 14.9 11.2791 14.9 11.5C14.9 11.7209 14.7209 11.9 14.5 11.9H7.49998C7.27907 11.9 7.09998 11.7209 7.09998 11.5ZM2.5 9.25003L5 6.00003H0L2.5 9.25003Z",fill:c,fillRule:"evenodd",clipRule:"evenodd"}))}),f2=["color"],d2=P.forwardRef(function(o,n){var s=o.color,c=s===void 0?"currentColor":s,i=St(o,f2);return P.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:n}),P.createElement("path",{d:"M13.3536 2.35355C13.5488 2.15829 13.5488 1.84171 13.3536 1.64645C13.1583 1.45118 12.8417 1.45118 12.6464 1.64645L10.6828 3.61012C9.70652 3.21671 8.63759 3 7.5 3C4.30786 3 1.65639 4.70638 0.0760002 7.23501C-0.0253338 7.39715 -0.0253334 7.60288 0.0760014 7.76501C0.902945 9.08812 2.02314 10.1861 3.36061 10.9323L1.64645 12.6464C1.45118 12.8417 1.45118 13.1583 1.64645 13.3536C1.84171 13.5488 2.15829 13.5488 2.35355 13.3536L4.31723 11.3899C5.29348 11.7833 6.36241 12 7.5 12C10.6921 12 13.3436 10.2936 14.924 7.76501C15.0253 7.60288 15.0253 7.39715 14.924 7.23501C14.0971 5.9119 12.9769 4.81391 11.6394 4.06771L13.3536 2.35355ZM9.90428 4.38861C9.15332 4.1361 8.34759 4 7.5 4C4.80285 4 2.52952 5.37816 1.09622 7.50001C1.87284 8.6497 2.89609 9.58106 4.09974 10.1931L9.90428 4.38861ZM5.09572 10.6114L10.9003 4.80685C12.1039 5.41894 13.1272 6.35031 13.9038 7.50001C12.4705 9.62183 10.1971 11 7.5 11C6.65241 11 5.84668 10.8639 5.09572 10.6114Z",fill:c,fillRule:"evenodd",clipRule:"evenodd"}))}),h2=["color"],p2=P.forwardRef(function(o,n){var s=o.color,c=s===void 0?"currentColor":s,i=St(o,h2);return P.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:n}),P.createElement("path",{d:"M7.5 11C4.80285 11 2.52952 9.62184 1.09622 7.50001C2.52952 5.37816 4.80285 4 7.5 4C10.1971 4 12.4705 5.37816 13.9038 7.50001C12.4705 9.62183 10.1971 11 7.5 11ZM7.5 3C4.30786 3 1.65639 4.70638 0.0760002 7.23501C-0.0253338 7.39715 -0.0253334 7.60288 0.0760014 7.76501C1.65639 10.2936 4.30786 12 7.5 12C10.6921 12 13.3436 10.2936 14.924 7.76501C15.0253 7.60288 15.0253 7.39715 14.924 7.23501C13.3436 4.70638 10.6921 3 7.5 3ZM7.5 9.5C8.60457 9.5 9.5 8.60457 9.5 7.5C9.5 6.39543 8.60457 5.5 7.5 5.5C6.39543 5.5 5.5 6.39543 5.5 7.5C5.5 8.60457 6.39543 9.5 7.5 9.5Z",fill:c,fillRule:"evenodd",clipRule:"evenodd"}))}),m2=["color"],ml=P.forwardRef(function(o,n){var s=o.color,c=s===void 0?"currentColor":s,i=St(o,m2);return P.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:n}),P.createElement("path",{d:"M2.5 1H12.5C13.3284 1 14 1.67157 14 2.5V12.5C14 13.3284 13.3284 14 12.5 14H2.5C1.67157 14 1 13.3284 1 12.5V2.5C1 1.67157 1.67157 1 2.5 1ZM2.5 2C2.22386 2 2 2.22386 2 2.5V8.3636L3.6818 6.6818C3.76809 6.59551 3.88572 6.54797 4.00774 6.55007C4.12975 6.55216 4.24568 6.60372 4.32895 6.69293L7.87355 10.4901L10.6818 7.6818C10.8575 7.50607 11.1425 7.50607 11.3182 7.6818L13 9.3636V2.5C13 2.22386 12.7761 2 12.5 2H2.5ZM2 12.5V9.6364L3.98887 7.64753L7.5311 11.4421L8.94113 13H2.5C2.22386 13 2 12.7761 2 12.5ZM12.5 13H10.155L8.48336 11.153L11 8.6364L13 10.6364V12.5C13 12.7761 12.7761 13 12.5 13ZM6.64922 5.5C6.64922 5.03013 7.03013 4.64922 7.5 4.64922C7.96987 4.64922 8.35078 5.03013 8.35078 5.5C8.35078 5.96987 7.96987 6.35078 7.5 6.35078C7.03013 6.35078 6.64922 5.96987 6.64922 5.5ZM7.5 3.74922C6.53307 3.74922 5.74922 4.53307 5.74922 5.5C5.74922 6.46693 6.53307 7.25078 7.5 7.25078C8.46693 7.25078 9.25078 6.46693 9.25078 5.5C9.25078 4.53307 8.46693 3.74922 7.5 3.74922Z",fill:c,fillRule:"evenodd",clipRule:"evenodd"}))}),g2=["color"],v2=P.forwardRef(function(o,n){var s=o.color,c=s===void 0?"currentColor":s,i=St(o,g2);return P.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:n}),P.createElement("path",{d:"M5.49998 0.5C5.49998 0.223858 5.72383 0 5.99998 0H7.49998H8.99998C9.27612 0 9.49998 0.223858 9.49998 0.5C9.49998 0.776142 9.27612 1 8.99998 1H7.99998V2.11922C9.09832 2.20409 10.119 2.56622 10.992 3.13572C11.0116 3.10851 11.0336 3.08252 11.058 3.05806L12.058 2.05806C12.3021 1.81398 12.6978 1.81398 12.9419 2.05806C13.186 2.30214 13.186 2.69786 12.9419 2.94194L11.967 3.91682C13.1595 5.07925 13.9 6.70314 13.9 8.49998C13.9 12.0346 11.0346 14.9 7.49998 14.9C3.96535 14.9 1.09998 12.0346 1.09998 8.49998C1.09998 5.13361 3.69904 2.3743 6.99998 2.11922V1H5.99998C5.72383 1 5.49998 0.776142 5.49998 0.5ZM2.09998 8.49998C2.09998 5.51764 4.51764 3.09998 7.49998 3.09998C10.4823 3.09998 12.9 5.51764 12.9 8.49998C12.9 11.4823 10.4823 13.9 7.49998 13.9C4.51764 13.9 2.09998 11.4823 2.09998 8.49998ZM7.49998 8.49998V4.09998C5.06992 4.09998 3.09998 6.06992 3.09998 8.49998C3.09998 10.93 5.06992 12.9 7.49998 12.9C8.715 12.9 9.815 12.4075 10.6112 11.6112L7.49998 8.49998Z",fill:c,fillRule:"evenodd",clipRule:"evenodd"}))}),y2=["color"],x2=P.forwardRef(function(o,n){var s=o.color,c=s===void 0?"currentColor":s,i=St(o,y2);return P.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:n}),P.createElement("path",{d:"M7.75432 0.819537C7.59742 0.726821 7.4025 0.726821 7.24559 0.819537L1.74559 4.06954C1.59336 4.15949 1.49996 4.32317 1.49996 4.5C1.49996 4.67683 1.59336 4.84051 1.74559 4.93046L7.24559 8.18046C7.4025 8.27318 7.59742 8.27318 7.75432 8.18046L13.2543 4.93046C13.4066 4.84051 13.5 4.67683 13.5 4.5C13.5 4.32317 13.4066 4.15949 13.2543 4.06954L7.75432 0.819537ZM7.49996 7.16923L2.9828 4.5L7.49996 1.83077L12.0171 4.5L7.49996 7.16923ZM1.5695 7.49564C1.70998 7.2579 2.01659 7.17906 2.25432 7.31954L7.49996 10.4192L12.7456 7.31954C12.9833 7.17906 13.2899 7.2579 13.4304 7.49564C13.5709 7.73337 13.4921 8.03998 13.2543 8.18046L7.75432 11.4305C7.59742 11.5232 7.4025 11.5232 7.24559 11.4305L1.74559 8.18046C1.50786 8.03998 1.42901 7.73337 1.5695 7.49564ZM1.56949 10.4956C1.70998 10.2579 2.01658 10.1791 2.25432 10.3195L7.49996 13.4192L12.7456 10.3195C12.9833 10.1791 13.2899 10.2579 13.4304 10.4956C13.5709 10.7334 13.4921 11.04 13.2543 11.1805L7.75432 14.4305C7.59742 14.5232 7.4025 14.5232 7.24559 14.4305L1.74559 11.1805C1.50785 11.04 1.42901 10.7334 1.56949 10.4956Z",fill:c,fillRule:"evenodd",clipRule:"evenodd"}))}),S2=["color"],w2=P.forwardRef(function(o,n){var s=o.color,c=s===void 0?"currentColor":s,i=St(o,S2);return P.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:n}),P.createElement("path",{d:"M8.69667 0.0403541C8.90859 0.131038 9.03106 0.354857 8.99316 0.582235L8.0902 6.00001H12.5C12.6893 6.00001 12.8625 6.10701 12.9472 6.27641C13.0319 6.4458 13.0136 6.6485 12.8999 6.80001L6.89997 14.8C6.76167 14.9844 6.51521 15.0503 6.30328 14.9597C6.09135 14.869 5.96888 14.6452 6.00678 14.4178L6.90974 9H2.49999C2.31061 9 2.13748 8.893 2.05278 8.72361C1.96809 8.55422 1.98636 8.35151 2.09999 8.2L8.09997 0.200038C8.23828 0.0156255 8.48474 -0.0503301 8.69667 0.0403541ZM3.49999 8.00001H7.49997C7.64695 8.00001 7.78648 8.06467 7.88148 8.17682C7.97648 8.28896 8.01733 8.43723 7.99317 8.5822L7.33027 12.5596L11.5 7.00001H7.49997C7.353 7.00001 7.21347 6.93534 7.11846 6.8232C7.02346 6.71105 6.98261 6.56279 7.00678 6.41781L7.66968 2.44042L3.49999 8.00001Z",fill:c,fillRule:"evenodd",clipRule:"evenodd"}))}),C2=["color"],_2=P.forwardRef(function(o,n){var s=o.color,c=s===void 0?"currentColor":s,i=St(o,C2);return P.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:n}),P.createElement("path",{d:"M1.49988 2.00012C1.77602 2.00012 1.99988 1.77626 1.99988 1.50012C1.99988 1.22398 1.77602 1.00012 1.49988 1.00012C1.22374 1.00012 0.999878 1.22398 0.999878 1.50012C0.999878 1.77626 1.22374 2.00012 1.49988 2.00012ZM4.49988 2.00012C4.77602 2.00012 4.99988 1.77626 4.99988 1.50012C4.99988 1.22398 4.77602 1.00012 4.49988 1.00012C4.22374 1.00012 3.99988 1.22398 3.99988 1.50012C3.99988 1.77626 4.22374 2.00012 4.49988 2.00012ZM7.99988 1.50012C7.99988 1.77626 7.77602 2.00012 7.49988 2.00012C7.22374 2.00012 6.99988 1.77626 6.99988 1.50012C6.99988 1.22398 7.22374 1.00012 7.49988 1.00012C7.77602 1.00012 7.99988 1.22398 7.99988 1.50012ZM10.4999 2.00012C10.776 2.00012 10.9999 1.77626 10.9999 1.50012C10.9999 1.22398 10.776 1.00012 10.4999 1.00012C10.2237 1.00012 9.99988 1.22398 9.99988 1.50012C9.99988 1.77626 10.2237 2.00012 10.4999 2.00012ZM13.9999 1.50012C13.9999 1.77626 13.776 2.00012 13.4999 2.00012C13.2237 2.00012 12.9999 1.77626 12.9999 1.50012C12.9999 1.22398 13.2237 1.00012 13.4999 1.00012C13.776 1.00012 13.9999 1.22398 13.9999 1.50012ZM1.49988 14.0001C1.77602 14.0001 1.99988 13.7763 1.99988 13.5001C1.99988 13.224 1.77602 13.0001 1.49988 13.0001C1.22374 13.0001 0.999878 13.224 0.999878 13.5001C0.999878 13.7763 1.22374 14.0001 1.49988 14.0001ZM1.99988 10.5001C1.99988 10.7763 1.77602 11.0001 1.49988 11.0001C1.22374 11.0001 0.999878 10.7763 0.999878 10.5001C0.999878 10.224 1.22374 10.0001 1.49988 10.0001C1.77602 10.0001 1.99988 10.224 1.99988 10.5001ZM1.49988 8.00012C1.77602 8.00012 1.99988 7.77626 1.99988 7.50012C1.99988 7.22398 1.77602 7.00012 1.49988 7.00012C1.22374 7.00012 0.999878 7.22398 0.999878 7.50012C0.999878 7.77626 1.22374 8.00012 1.49988 8.00012ZM1.99988 4.50012C1.99988 4.77626 1.77602 5.00012 1.49988 5.00012C1.22374 5.00012 0.999878 4.77626 0.999878 4.50012C0.999878 4.22398 1.22374 4.00012 1.49988 4.00012C1.77602 4.00012 1.99988 4.22398 1.99988 4.50012ZM13.4999 11.0001C13.776 11.0001 13.9999 10.7763 13.9999 10.5001C13.9999 10.224 13.776 10.0001 13.4999 10.0001C13.2237 10.0001 12.9999 10.224 12.9999 10.5001C12.9999 10.7763 13.2237 11.0001 13.4999 11.0001ZM13.9999 7.50012C13.9999 7.77626 13.776 8.00012 13.4999 8.00012C13.2237 8.00012 12.9999 7.77626 12.9999 7.50012C12.9999 7.22398 13.2237 7.00012 13.4999 7.00012C13.776 7.00012 13.9999 7.22398 13.9999 7.50012ZM13.4999 5.00012C13.776 5.00012 13.9999 4.77626 13.9999 4.50012C13.9999 4.22398 13.776 4.00012 13.4999 4.00012C13.2237 4.00012 12.9999 4.22398 12.9999 4.50012C12.9999 4.77626 13.2237 5.00012 13.4999 5.00012ZM4.99988 13.5001C4.99988 13.7763 4.77602 14.0001 4.49988 14.0001C4.22374 14.0001 3.99988 13.7763 3.99988 13.5001C3.99988 13.224 4.22374 13.0001 4.49988 13.0001C4.77602 13.0001 4.99988 13.224 4.99988 13.5001ZM7.49988 14.0001C7.77602 14.0001 7.99988 13.7763 7.99988 13.5001C7.99988 13.224 7.77602 13.0001 7.49988 13.0001C7.22374 13.0001 6.99988 13.224 6.99988 13.5001C6.99988 13.7763 7.22374 14.0001 7.49988 14.0001ZM10.9999 13.5001C10.9999 13.7763 10.776 14.0001 10.4999 14.0001C10.2237 14.0001 9.99988 13.7763 9.99988 13.5001C9.99988 13.224 10.2237 13.0001 10.4999 13.0001C10.776 13.0001 10.9999 13.224 10.9999 13.5001ZM13.4999 14.0001C13.776 14.0001 13.9999 13.7763 13.9999 13.5001C13.9999 13.224 13.776 13.0001 13.4999 13.0001C13.2237 13.0001 12.9999 13.224 12.9999 13.5001C12.9999 13.7763 13.2237 14.0001 13.4999 14.0001ZM3.99988 5.00012C3.99988 4.44784 4.44759 4.00012 4.99988 4.00012H9.99988C10.5522 4.00012 10.9999 4.44784 10.9999 5.00012V10.0001C10.9999 10.5524 10.5522 11.0001 9.99988 11.0001H4.99988C4.44759 11.0001 3.99988 10.5524 3.99988 10.0001V5.00012ZM4.99988 5.00012H9.99988V10.0001H4.99988V5.00012Z",fill:c,fillRule:"evenodd",clipRule:"evenodd"}))}),E2=["color"],k2=P.forwardRef(function(o,n){var s=o.color,c=s===void 0?"currentColor":s,i=St(o,E2);return P.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:n}),P.createElement("path",{d:"M2.25 7.5C2.25 7.22386 2.47386 7 2.75 7H12.25C12.5261 7 12.75 7.22386 12.75 7.5C12.75 7.77614 12.5261 8 12.25 8H2.75C2.47386 8 2.25 7.77614 2.25 7.5Z",fill:c,fillRule:"evenodd",clipRule:"evenodd"}))}),T2=["color"],P2=P.forwardRef(function(o,n){var s=o.color,c=s===void 0?"currentColor":s,i=St(o,T2);return P.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:n}),P.createElement("path",{d:"M6.04995 2.74998C6.04995 2.44623 5.80371 2.19998 5.49995 2.19998C5.19619 2.19998 4.94995 2.44623 4.94995 2.74998V12.25C4.94995 12.5537 5.19619 12.8 5.49995 12.8C5.80371 12.8 6.04995 12.5537 6.04995 12.25V2.74998ZM10.05 2.74998C10.05 2.44623 9.80371 2.19998 9.49995 2.19998C9.19619 2.19998 8.94995 2.44623 8.94995 2.74998V12.25C8.94995 12.5537 9.19619 12.8 9.49995 12.8C9.80371 12.8 10.05 12.5537 10.05 12.25V2.74998Z",fill:c,fillRule:"evenodd",clipRule:"evenodd"}))}),M2=["color"],b2=P.forwardRef(function(o,n){var s=o.color,c=s===void 0?"currentColor":s,i=St(o,M2);return P.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:n}),P.createElement("path",{d:"M6.85357 3.85355L7.65355 3.05353C8.2981 2.40901 9.42858 1.96172 10.552 1.80125C11.1056 1.72217 11.6291 1.71725 12.0564 1.78124C12.4987 1.84748 12.7698 1.97696 12.8965 2.10357C13.0231 2.23018 13.1526 2.50125 13.2188 2.94357C13.2828 3.37086 13.2779 3.89439 13.1988 4.44801C13.0383 5.57139 12.591 6.70188 11.9464 7.34645L7.49999 11.7929L6.35354 10.6465C6.15827 10.4512 5.84169 10.4512 5.64643 10.6465C5.45117 10.8417 5.45117 11.1583 5.64643 11.3536L7.14644 12.8536C7.34171 13.0488 7.65829 13.0488 7.85355 12.8536L8.40073 12.3064L9.57124 14.2572C9.65046 14.3893 9.78608 14.4774 9.9389 14.4963C10.0917 14.5151 10.2447 14.4624 10.3535 14.3536L12.3535 12.3536C12.4648 12.2423 12.5172 12.0851 12.495 11.9293L12.0303 8.67679L12.6536 8.05355C13.509 7.19808 14.0117 5.82855 14.1887 4.58943C14.2784 3.9618 14.2891 3.33847 14.2078 2.79546C14.1287 2.26748 13.9519 1.74482 13.6035 1.39645C13.2552 1.04809 12.7325 0.871332 12.2045 0.792264C11.6615 0.710945 11.0382 0.721644 10.4105 0.8113C9.17143 0.988306 7.80189 1.491 6.94644 2.34642L6.32322 2.96968L3.07071 2.50504C2.91492 2.48278 2.75773 2.53517 2.64645 2.64646L0.646451 4.64645C0.537579 4.75533 0.484938 4.90829 0.50375 5.0611C0.522563 5.21391 0.61073 5.34954 0.742757 5.42876L2.69364 6.59928L2.14646 7.14645C2.0527 7.24022 2.00002 7.3674 2.00002 7.50001C2.00002 7.63261 2.0527 7.75979 2.14646 7.85356L3.64647 9.35356C3.84173 9.54883 4.15831 9.54883 4.35357 9.35356C4.54884 9.1583 4.54884 8.84172 4.35357 8.64646L3.20712 7.50001L3.85357 6.85356L6.85357 3.85355ZM10.0993 13.1936L9.12959 11.5775L11.1464 9.56067L11.4697 11.8232L10.0993 13.1936ZM3.42251 5.87041L5.43935 3.85356L3.17678 3.53034L1.80638 4.90074L3.42251 5.87041ZM2.35356 10.3535C2.54882 10.1583 2.54882 9.8417 2.35356 9.64644C2.1583 9.45118 1.84171 9.45118 1.64645 9.64644L0.646451 10.6464C0.451188 10.8417 0.451188 11.1583 0.646451 11.3535C0.841713 11.5488 1.1583 11.5488 1.35356 11.3535L2.35356 10.3535ZM3.85358 11.8536C4.04884 11.6583 4.04885 11.3417 3.85359 11.1465C3.65833 10.9512 3.34175 10.9512 3.14648 11.1465L1.14645 13.1464C0.95119 13.3417 0.951187 13.6583 1.14645 13.8535C1.34171 14.0488 1.65829 14.0488 1.85355 13.8536L3.85358 11.8536ZM5.35356 13.3535C5.54882 13.1583 5.54882 12.8417 5.35356 12.6464C5.1583 12.4512 4.84171 12.4512 4.64645 12.6464L3.64645 13.6464C3.45119 13.8417 3.45119 14.1583 3.64645 14.3535C3.84171 14.5488 4.1583 14.5488 4.35356 14.3535L5.35356 13.3535ZM9.49997 6.74881C10.1897 6.74881 10.7488 6.1897 10.7488 5.5C10.7488 4.8103 10.1897 4.25118 9.49997 4.25118C8.81026 4.25118 8.25115 4.8103 8.25115 5.5C8.25115 6.1897 8.81026 6.74881 9.49997 6.74881Z",fill:c,fillRule:"evenodd",clipRule:"evenodd"}))}),L2=["color"],U2=P.forwardRef(function(o,n){var s=o.color,c=s===void 0?"currentColor":s,i=St(o,L2);return P.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:n}),P.createElement("path",{d:"M0.5 4C0.223858 4 0 4.22386 0 4.5V10.5C0 10.7761 0.223858 11 0.5 11H14.5C14.7761 11 15 10.7761 15 10.5V4.5C15 4.22386 14.7761 4 14.5 4H0.5ZM1 10V5H2.075V7.5C2.075 7.73472 2.26528 7.925 2.5 7.925C2.73472 7.925 2.925 7.73472 2.925 7.5V5H4.075V6.5C4.075 6.73472 4.26528 6.925 4.5 6.925C4.73472 6.925 4.925 6.73472 4.925 6.5V5H6.075V6.5C6.075 6.73472 6.26528 6.925 6.5 6.925C6.73472 6.925 6.925 6.73472 6.925 6.5V5H8.075V7.5C8.075 7.73472 8.26528 7.925 8.5 7.925C8.73472 7.925 8.925 7.73472 8.925 7.5V5H10.075V6.5C10.075 6.73472 10.2653 6.925 10.5 6.925C10.7347 6.925 10.925 6.73472 10.925 6.5V5H12.075V6.5C12.075 6.73472 12.2653 6.925 12.5 6.925C12.7347 6.925 12.925 6.73472 12.925 6.5V5H14V10H1Z",fill:c,fillRule:"evenodd",clipRule:"evenodd"}))}),R2=["color"],A2=P.forwardRef(function(o,n){var s=o.color,c=s===void 0?"currentColor":s,i=St(o,R2);return P.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:n}),P.createElement("path",{d:"M2.5 4C2.22386 4 2 4.22386 2 4.5C2 4.77614 2.22386 5 2.5 5H12.5C12.7761 5 13 4.77614 13 4.5C13 4.22386 12.7761 4 12.5 4H2.5ZM2 7.5C2 7.22386 2.22386 7 2.5 7H12.5C12.7761 7 13 7.22386 13 7.5C13 7.77614 12.7761 8 12.5 8H2.5C2.22386 8 2 7.77614 2 7.5ZM2 10.5C2 10.2239 2.22386 10 2.5 10H12.5C12.7761 10 13 10.2239 13 10.5C13 10.7761 12.7761 11 12.5 11H2.5C2.22386 11 2 10.7761 2 10.5Z",fill:c,fillRule:"evenodd",clipRule:"evenodd"}))}),I2=["color"],vd=P.forwardRef(function(o,n){var s=o.color,c=s===void 0?"currentColor":s,i=St(o,I2);return P.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:n}),P.createElement("path",{d:"M4 6H11L7.5 10.5L4 6Z",fill:c}))}),D2=["color"],yd=P.forwardRef(function(o,n){var s=o.color,c=s===void 0?"currentColor":s,i=St(o,D2);return P.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:n}),P.createElement("path",{d:"M4 9H11L7.5 4.5L4 9Z",fill:c}))}),O2=["color"],xd=P.forwardRef(function(o,n){var s=o.color,c=s===void 0?"currentColor":s,i=St(o,O2);return P.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:n}),P.createElement("path",{d:"M7.49998 1L6.92321 2.00307L1.17498 12L0.599976 13H1.7535H13.2464H14.4L13.825 12L8.07674 2.00307L7.49998 1ZM7.49998 3.00613L2.3285 12H12.6714L7.49998 3.00613Z",fill:c,fillRule:"evenodd",clipRule:"evenodd"}))});function F2(o,n){if(typeof o!="object"||o===null)return o;var s=o[Symbol.toPrimitive];if(s!==void 0){var c=s.call(o,n||"default");if(typeof c!="object")return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(o)}function j2(o){var n=F2(o,"string");return typeof n=="symbol"?n:String(n)}function z2(o,n,s){return n=j2(n),n in o?Object.defineProperty(o,n,{value:s,enumerable:!0,configurable:!0,writable:!0}):o[n]=s,o}function af(o,n){var s=Object.keys(o);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(o);n&&(c=c.filter(function(i){return Object.getOwnPropertyDescriptor(o,i).enumerable})),s.push.apply(s,c)}return s}function gl(o){for(var n=1;n(o==null?void 0:o.reduce((n,s)=>n+s,0))/o.length;class B2{constructor(n={}){this.names=[""],this.finished=[],this.gl=void 0,this.extension=void 0,this.query=void 0,this.paused=!1,this.overClock=!1,this.queryHasResult=!1,this.queryCreated=!1,this.isWebGL2=!0,this.memAccums=[],this.gpuAccums=[],this.activeAccums=[],this.logsAccums={mem:[],gpu:[],cpu:[],fps:[],fpsFixed:[]},this.fpsChart=[],this.gpuChart=[],this.cpuChart=[],this.memChart=[],this.paramLogger=()=>{},this.glFinish=()=>{},this.chartLogger=()=>{},this.chartLen=60,this.maxMemory=1500,this.chartHz=10,this.startCpuProfiling=!1,this.lastCalculateFixed=0,this.chartFrame=0,this.gpuTimeProcess=0,this.chartTime=0,this.activeQueries=0,this.circularId=0,this.detected=0,this.frameId=0,this.rafId=0,this.idleCbId=0,this.checkQueryId=0,this.uuid=void 0,this.currentCpu=0,this.currentMem=0,this.paramFrame=0,this.paramTime=0,this.now=()=>{},this.t0=0,window.GLPerf=window.GLPerf||{},Object.assign(this,n),this.fpsChart=new Array(this.chartLen).fill(0),this.gpuChart=new Array(this.chartLen).fill(0),this.cpuChart=new Array(this.chartLen).fill(0),this.memChart=new Array(this.chartLen).fill(0),this.now=()=>window.performance&&window.performance.now?window.performance.now():Date.now(),this.initGpu(),this.is120hz()}initGpu(){this.uuid=yf.generateUUID(),this.gl&&(this.isWebGL2=!0,this.extension||(this.extension=this.gl.getExtension("EXT_disjoint_timer_query_webgl2")),this.extension===null&&(this.isWebGL2=!1))}is120hz(){let n=0;const s=c=>{++n<20?this.rafId=window.requestAnimationFrame(s):(this.detected=Math.ceil(1e3*n/(c-this.t0)/70),window.cancelAnimationFrame(this.rafId)),this.t0||(this.t0=c)};this.rafId=window.requestAnimationFrame(s)}addUI(n){this.names.indexOf(n)===-1&&(this.names.push(n),this.gpuAccums.push(0),this.activeAccums.push(!1))}nextFps(n){const s=16.666666666666668,c=s-n.timeRemaining(),i=s*In.fpsLimit/10/c;i<0||(In.value=i,In.isOverLimit<25?In.isOverLimit++:Ge.setState({overclockingFps:!0}))}nextFrame(n){this.frameId++;const s=n||this.now();let c=s-this.paramTime,i=0;if(this.frameId<=1)this.paramFrame=this.frameId,this.paramTime=s;else if(s>=this.paramTime){this.maxMemory=window.performance.memory?window.performance.memory.jsHeapSizeLimit/1048576:0;const r=this.frameId-this.paramFrame,l=r*1e3/c,f=Ge.getState().overclockingFps?In.value:l;if(i=this.isWebGL2?this.gpuAccums[0]:this.gpuAccums[0]/c,this.isWebGL2?this.gpuAccums[0]=0:Promise.all(this.finished).then(()=>{this.gpuAccums[0]=0,this.finished=[]}),this.currentMem=Math.round(window.performance&&window.performance.memory?window.performance.memory.usedJSHeapSize/1048576:0),window.performance&&this.startCpuProfiling){window.performance.mark("cpu-finished");const u=performance.measure("cpu-duration","cpu-started","cpu-finished");this.currentCpu=u.duration,this.logsAccums.cpu.push(this.currentCpu),this.startCpuProfiling=!1}this.logsAccums.mem.push(this.currentMem),this.logsAccums.fpsFixed.push(l),this.logsAccums.fps.push(f),this.logsAccums.gpu.push(i),this.overClock&&typeof window.requestIdleCallback<"u"&&(In.isOverLimit>0&&f>l?In.isOverLimit--:Ge.getState().overclockingFps&&Ge.setState({overclockingFps:!1})),s>=this.paramTime+180&&(this.paramLogger({cpu:vo(this.logsAccums.cpu),gpu:vo(this.logsAccums.gpu),mem:vo(this.logsAccums.mem),fps:vo(this.logsAccums.fps),duration:Math.round(c),maxMemory:this.maxMemory,frameCount:r}),this.logsAccums.mem=[],this.logsAccums.fps=[],this.logsAccums.gpu=[],this.logsAccums.cpu=[],this.paramFrame=this.frameId,this.paramTime=s),this.overClock&&s-this.lastCalculateFixed>=2*1e3&&(this.lastCalculateFixed=n,In.fpsLimit=Math.round(vo(this.logsAccums.fpsFixed)/10)*100,Ge.setState({fpsLimit:In.fpsLimit/10}),this.logsAccums.fpsFixed=[],this.paramFrame=this.frameId,this.paramTime=s)}if(!this.detected||!this.chartFrame)this.chartFrame=this.frameId,this.chartTime=s,this.circularId=0;else{const r=s-this.chartTime;let l=this.chartHz*r/1e3;for(;--l>0&&this.detected;){const u=(this.frameId-this.chartFrame)/r*1e3,p=Ge.getState().overclockingFps?In.value:u;this.fpsChart[this.circularId%this.chartLen]=p;const h=1e3/this.currentMem,g=this.currentCpu,v=(this.isWebGL2?this.gpuAccums[1]*2:Math.round(this.gpuAccums[1]/c*100))+4;v>0&&(this.gpuChart[this.circularId%this.chartLen]=v),g>0&&(this.cpuChart[this.circularId%this.chartLen]=g),h>0&&(this.memChart[this.circularId%this.chartLen]=h);for(let x=0;x0&&(i||this.activeAccums.forEach((u,p)=>{this.gpuAccums[p]=f}))}}(c||!this.query)&&(this.queryCreated=!0,this.query=n.createQuery(),n.beginQuery(s.TIME_ELAPSED_EXT,this.query))}}endGpu(){const n=this.extension,s=this.gl;this.isWebGL2&&this.queryCreated&&s.getQuery(n.TIME_ELAPSED_EXT,s.CURRENT_QUERY)&&s.endQuery(n.TIME_ELAPSED_EXT)}begin(n){this.startGpu(),this.updateAccums(n)}end(n){this.endGpu(),this.updateAccums(n)}updateAccums(n){let s=this.names.indexOf(n);s===-1&&(s=this.names.length,this.addUI(n));const c=this.now();this.activeAccums[s]=!this.activeAccums[s],this.t0=c}}const N2=o=>{o.forEach((n,s)=>{const{meshes:c}=n;if(!c)return;let i={total:0,type:"Triangle",data:[]};Object.keys(c).forEach(r=>{const l=c[r],{geometry:f,material:u}=l;let p=f.index;const h=f.attributes.position;if(!h)return;let g=1;u.wireframe===!0&&(g=0);const v=p!==null?p.count:h.count,x=f.drawRange.start*g,w=f.drawRange.count*g,k=x,_=Math.min(v,x+w)-1;let C=1;const S=l.count||1;let T="Triangle",A=0;l.isMesh?u.wireframe===!0?(T="Line",C=C/2):(T="Triangle",C=C/3):l.isLine?(T="Line",l.isLineSegments?C=C/2:l.isLineLoop?C=C:C=C-1):l.isPoints?(T="Point",C=C):l.isSprite&&(T="Triangle",C=C/3);const R=Math.round(Math.max(0,_-k+1)*(C*S));R>A&&(A=R,i.type=T),i.total+=R,i.data.push({drawCount:R,type:T}),l.userData.drawCount={type:T,count:R}}),n.drawCounts=i})},W2=Zr.prototype.updateMatrixWorld,G2=Zr.prototype.updateWorldMatrix,lf=Zr.prototype.updateMatrix;let Ri={value:0},nr={value:0};const H2=o=>{let n=""+o;return n=n.match("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"),n!==null},uf=(o,n)=>{o.defines||(o.defines={}),o.defines&&!o.defines.muiPerf&&(o.defines=Object.assign(o.defines||{},{muiPerf:o.uuid}));const s=o.uuid;return n[s]||(n[s]={meshes:{},material:o},o.needsUpdate=!0),o.needsUpdate=!1,s},V2=o=>o==="muiPerf",Ge=$d(o=>({log:null,paused:!1,triggerProgramsUpdate:0,customData:0,fpsLimit:60,overclockingFps:!1,chart:{data:{fps:[],cpu:[],gpu:[],mem:[]},circularId:0},gl:void 0,objectWithMaterials:null,scene:void 0,programs:new Map,sceneLength:void 0,tab:"infos"})),Sd=({trackCPU:o,overClock:n,chart:s,deepAnalyze:c,matrixUpdate:i})=>{const{gl:r,scene:l}=Di();Ge.setState({gl:r,scene:l});const f=P.useMemo(()=>{const u=new B2({trackGPU:!0,overClock:n,chartLen:s?s.length:120,chartHz:s?s.hz:60,gl:r.getContext(),chartLogger:g=>{Ge.setState({chart:g})},paramLogger:g=>{Ge.setState({log:{maxMemory:g.maxMemory,gpu:g.gpu,cpu:g.cpu,mem:g.mem,fps:g.fps,totalTime:g.duration,frameCount:g.frameCount}})}}),p=new Map,h=new Map;return Object.defineProperty(Rs.prototype,"onBeforeRender",{get(){return(...g)=>{var v;u&&u.begin("profiler"),(v=p.get(this))===null||v===void 0||v(...g)}},set(g){p.set(this,g)},configurable:!0}),Object.defineProperty(Rs.prototype,"onAfterRender",{get(){return(...g)=>{var v;u&&u.end("profiler"),(v=h.get(this))===null||v===void 0||v(...g)}},set(g){h.set(this,g)},configurable:!0}),u},[]);return P.useEffect(()=>{f&&(f.overClock=n||!1,n===!1&&(Ge.setState({overclockingFps:!1}),In.value=0,In.isOverLimit=0),f.chartHz=(s==null?void 0:s.hz)||60,f.chartLen=(s==null?void 0:s.length)||120)},[n,f,s==null?void 0:s.length,s==null?void 0:s.hz]),P.useEffect(()=>{i&&(Zr.prototype.updateMatrixWorld=function(){(this.matrixWorldNeedsUpdate||arguments[0])&&Ri.value++,W2.apply(this,arguments)},Zr.prototype.updateWorldMatrix=function(){Ri.value++,G2.apply(this,arguments)},Zr.prototype.updateMatrix=function(){nr.value++,lf.apply(this,arguments)}),r.info.autoReset=!1;let u=null,p=null;if(r.info)return u=q1(function(){Ge.getState().paused&&Ge.setState({paused:!1}),window.performance&&(window.performance.mark("cpu-started"),f.startCpuProfiling=!0),nr.value-=1,Ri.value=0,nr.value=0,r.info&&r.info.reset()}),p=$1(function(){if(f&&!f.paused&&(f.nextFrame(window.performance.now()),n&&typeof window.requestIdleCallback<"u"&&(f.idleCbId=requestIdleCallback(f.nextFps))),c){var g,v;const x={},w=new Map;l.traverse(function(_){if((_ instanceof Co||_ instanceof M1)&&_.material){let C=_.material.uuid;Array.isArray(_.material)&&_.material.length>1?C=uf(_.material[1],x):C=uf(_.material,x),x[C].meshes[_.uuid]=_}}),r==null||(g=r.info)===null||g===void 0||(v=g.programs)===null||v===void 0||v.forEach(k=>{const _=k.cacheKey.split(","),C=_[_.findIndex(V2)+1];if(H2(C)&&x[C]){const{material:S,meshes:T}=x[C];w.set(C,{program:k,material:S,meshes:T,drawCounts:{total:0,type:"triangle",data:[]},expand:!1,visible:!0})}}),w.size!==Ge.getState().programs.size&&(N2(w),Ge.setState({programs:w,triggerProgramsUpdate:Ge.getState().triggerProgramsUpdate++}))}}),()=>{f&&(typeof window.cancelIdleCallback<"u"&&window.cancelIdleCallback(f.idleCbId),window.cancelAnimationFrame(f.rafId),window.cancelAnimationFrame(f.checkQueryId)),i&&(Zr.prototype.updateMatrixWorld=lf),u(),p()}},[f,r,o,s,i]),P.useEffect(()=>{const u=eh(function(){return f&&(f.paused=!0,nr.value=0,Ri.value=0,Ge.setState({paused:!0,log:{maxMemory:0,gpu:0,mem:0,cpu:0,fps:0,totalTime:0,frameCount:0}})),!1});return()=>{u()}},[]),null},Z2=Tt("div",{position:"fixed",top:0,right:0,zIndex:9999,fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', +`))),{vertexShader:s,fragmentShader:c}}});return n.transparent=!0,Object.defineProperties(n,{isTroikaTextMaterial:{value:!0},shadowSide:{get(){return this.side},set(){}}}),n}const bl=new P1({color:16777215,side:Sl,transparent:!0}),Yc=8421504,Kc=new vf,Ps=new ct,Ya=new ct,mo=[],y0=new ct,Ka="+x+y";function Jc(o){return Array.isArray(o)?o[0]:o}let cd=()=>{const o=new Co(new Cl(1,1),bl);return cd=()=>o,o},fd=()=>{const o=new Co(new Cl(1,1,32,1),bl);return fd=()=>o,o};const x0={type:"syncstart"},S0={type:"synccomplete"},dd=["font","fontSize","letterSpacing","lineHeight","maxWidth","overflowWrap","text","direction","textAlign","textIndent","whiteSpace","anchorX","anchorY","colorRanges","sdfGlyphSize"],w0=dd.concat("material","color","depthOffset","clipRect","curveRadius","orientation","glyphGeometryDetail");let hd=class extends Co{constructor(){const n=new d0;super(n,null),this.text="",this.anchorX=0,this.anchorY=0,this.curveRadius=0,this.direction="auto",this.font=null,this.fontSize=.1,this.letterSpacing=0,this.lineHeight="normal",this.maxWidth=1/0,this.overflowWrap="normal",this.textAlign="left",this.textIndent=0,this.whiteSpace="normal",this.material=null,this.color=null,this.colorRanges=null,this.outlineWidth=0,this.outlineColor=0,this.outlineOpacity=1,this.outlineBlur=0,this.outlineOffsetX=0,this.outlineOffsetY=0,this.strokeWidth=0,this.strokeColor=Yc,this.strokeOpacity=1,this.fillOpacity=1,this.depthOffset=0,this.clipRect=null,this.orientation=Ka,this.glyphGeometryDetail=1,this.sdfGlyphSize=null,this.gpuAccelerateSDF=!0,this.debugSDF=!1}sync(n){this._needsSync&&(this._needsSync=!1,this._isSyncing?(this._queuedSyncs||(this._queuedSyncs=[])).push(n):(this._isSyncing=!0,this.dispatchEvent(x0),ad({text:this.text,font:this.font,fontSize:this.fontSize||.1,letterSpacing:this.letterSpacing||0,lineHeight:this.lineHeight||"normal",maxWidth:this.maxWidth,direction:this.direction||"auto",textAlign:this.textAlign,textIndent:this.textIndent,whiteSpace:this.whiteSpace,overflowWrap:this.overflowWrap,anchorX:this.anchorX,anchorY:this.anchorY,colorRanges:this.colorRanges,includeCaretPositions:!0,sdfGlyphSize:this.sdfGlyphSize,gpuAccelerateSDF:this.gpuAccelerateSDF},s=>{this._isSyncing=!1,this._textRenderInfo=s,this.geometry.updateGlyphs(s.glyphBounds,s.glyphAtlasIndices,s.blockBounds,s.chunkedBounds,s.glyphColors);const c=this._queuedSyncs;c&&(this._queuedSyncs=null,this._needsSync=!0,this.sync(()=>{c.forEach(i=>i&&i())})),this.dispatchEvent(S0),n&&n()})))}onBeforeRender(n,s,c,i,r,l){this.sync(),r.isTroikaTextMaterial&&this._prepareForRender(r),r._hadOwnSide=r.hasOwnProperty("side"),this.geometry.setSide(r._actualSide=r.side),r.side=_1}onAfterRender(n,s,c,i,r,l){r._hadOwnSide?r.side=r._actualSide:delete r.side}dispose(){this.geometry.dispose()}get textRenderInfo(){return this._textRenderInfo||null}get material(){let n=this._derivedMaterial;const s=this._baseMaterial||this._defaultMaterial||(this._defaultMaterial=bl.clone());if((!n||n.baseMaterial!==s)&&(n=this._derivedMaterial=v0(s),s.addEventListener("dispose",function c(){s.removeEventListener("dispose",c),n.dispose()})),this.outlineWidth||this.outlineBlur||this.outlineOffsetX||this.outlineOffsetY){let c=n._outlineMtl;return c||(c=n._outlineMtl=Object.create(n,{id:{value:n.id+.1}}),c.isTextOutlineMaterial=!0,c.depthWrite=!1,c.map=null,n.addEventListener("dispose",function i(){n.removeEventListener("dispose",i),c.dispose()})),[c,n]}else return n}set material(n){n&&n.isTroikaTextMaterial?(this._derivedMaterial=n,this._baseMaterial=n.baseMaterial):this._baseMaterial=n}get glyphGeometryDetail(){return this.geometry.detail}set glyphGeometryDetail(n){this.geometry.detail=n}get curveRadius(){return this.geometry.curveRadius}set curveRadius(n){this.geometry.curveRadius=n}get customDepthMaterial(){return Jc(this.material).getDepthMaterial()}get customDistanceMaterial(){return Jc(this.material).getDistanceMaterial()}_prepareForRender(n){const s=n.isTextOutlineMaterial,c=n.uniforms,i=this.textRenderInfo;if(i){const{sdfTexture:f,blockBounds:u}=i;c.uTroikaSDFTexture.value=f,c.uTroikaSDFTextureSize.value.set(f.image.width,f.image.height),c.uTroikaSDFGlyphSize.value=i.sdfGlyphSize,c.uTroikaSDFExponent.value=i.sdfExponent,c.uTroikaTotalBounds.value.fromArray(u),c.uTroikaUseGlyphColors.value=!s&&!!i.glyphColors;let p=0,h=0,g=0,v,x,w,k=0,_=0;if(s){let{outlineWidth:S,outlineOffsetX:T,outlineOffsetY:A,outlineBlur:R,outlineOpacity:b}=this;p=this._parsePercent(S)||0,h=Math.max(0,this._parsePercent(R)||0),v=b,k=this._parsePercent(T)||0,_=this._parsePercent(A)||0}else g=Math.max(0,this._parsePercent(this.strokeWidth)||0),g&&(w=this.strokeColor,c.uTroikaStrokeColor.value.set(w??Yc),x=this.strokeOpacity,x==null&&(x=1)),v=this.fillOpacity;c.uTroikaDistanceOffset.value=p,c.uTroikaPositionOffset.value.set(k,_),c.uTroikaBlurRadius.value=h,c.uTroikaStrokeWidth.value=g,c.uTroikaStrokeOpacity.value=x,c.uTroikaFillOpacity.value=v??1,c.uTroikaCurveRadius.value=this.curveRadius||0;let C=this.clipRect;if(C&&Array.isArray(C)&&C.length===4)c.uTroikaClipRect.value.fromArray(C);else{const S=(this.fontSize||.1)*100;c.uTroikaClipRect.value.set(u[0]-S,u[1]-S,u[2]+S,u[3]+S)}this.geometry.applyClipRect(c.uTroikaClipRect.value)}c.uTroikaSDFDebug.value=!!this.debugSDF,n.polygonOffset=!!this.depthOffset,n.polygonOffsetFactor=n.polygonOffsetUnits=this.depthOffset||0;const r=s?this.outlineColor||0:this.color;if(r==null)delete n.color;else{const f=n.hasOwnProperty("color")?n.color:n.color=new wo;(r!==f._input||typeof r=="object")&&f.set(f._input=r)}let l=this.orientation||Ka;if(l!==n._orientation){let f=c.uTroikaOrient.value;l=l.replace(/[^-+xyz]/g,"");let u=l!==Ka&&l.match(/^([-+])([xyz])([-+])([xyz])$/);if(u){let[,p,h,g,v]=u;Ps.set(0,0,0)[h]=p==="-"?1:-1,Ya.set(0,0,0)[v]=g==="-"?-1:1,Kc.lookAt(y0,Ps.cross(Ya),Ya),f.setFromMatrix4(Kc)}else f.identity();n._orientation=l}}_parsePercent(n){if(typeof n=="string"){let s=n.match(/^(-?[\d.]+)%$/),c=s?parseFloat(s[1]):NaN;n=(isNaN(c)?0:c/100)*this.fontSize}return n}localPositionToTextCoords(n,s=new $r){s.copy(n);const c=this.curveRadius;return c&&(s.x=Math.atan2(n.x,Math.abs(c)-Math.abs(n.z))*Math.abs(c)),s}worldPositionToTextCoords(n,s=new $r){return Ps.copy(n),this.localPositionToTextCoords(this.worldToLocal(Ps),s)}raycast(n,s){const{textRenderInfo:c,curveRadius:i}=this;if(c){const r=c.blockBounds,l=i?fd():cd(),f=l.geometry,{position:u,uv:p}=f.attributes;for(let h=0;h{this[c]=n[c]}),this}clone(){return new this.constructor().copy(this)}};dd.forEach(o=>{const n="_private_"+o;Object.defineProperty(hd.prototype,o,{get(){return this[n]},set(s){s!==this[n]&&(this[n]=s,this._needsSync=!0)}})});function C0(o,n,s=(c,i)=>c===i){if(o===n)return!0;if(!o||!n)return!1;const c=o.length;if(n.length!==c)return!1;for(let i=0;ii.response=r).then(()=>{c.lifespan&&c.lifespan>0&&setTimeout(()=>{const r=Ms.indexOf(i);r!==-1&&Ms.splice(r,1)},c.lifespan)}).catch(r=>i.error=r)};if(Ms.push(i),!s)throw i.promise}const E0=(o,n,s)=>_0(o,n,!1,s),qc=P.forwardRef(({anchorX:o="center",anchorY:n="middle",font:s,fontSize:c=1,children:i,characters:r,onSync:l,...f},u)=>{const p=Ii(({invalidate:x})=>x),[h]=P.useState(()=>new hd),[g,v]=P.useMemo(()=>{const x=[];let w="";return P.Children.forEach(i,k=>{typeof k=="string"||typeof k=="number"?w+=k:x.push(k)}),[x,w]},[i]);return E0(()=>new Promise(x=>i0({font:s,characters:r},x)),["troika-text",s,r]),P.useLayoutEffect(()=>void h.sync(()=>{p(),l&&l(h)})),P.useEffect(()=>()=>h.dispose(),[h]),P.createElement("primitive",qr({object:h,ref:u,font:s,text:v,anchorX:o,anchorY:n,fontSize:c},f),g)});function pd(o){const n=o+"Geometry";return P.forwardRef(({args:s,children:c,...i},r)=>P.createElement("mesh",qr({ref:r},i),P.createElement(n,{attach:"geometry",args:s}),c))}const Rm=pd("circle"),Am=pd("plane");var $e="colors",nn="sizes",ye="space",k0={gap:ye,gridGap:ye,columnGap:ye,gridColumnGap:ye,rowGap:ye,gridRowGap:ye,inset:ye,insetBlock:ye,insetBlockEnd:ye,insetBlockStart:ye,insetInline:ye,insetInlineEnd:ye,insetInlineStart:ye,margin:ye,marginTop:ye,marginRight:ye,marginBottom:ye,marginLeft:ye,marginBlock:ye,marginBlockEnd:ye,marginBlockStart:ye,marginInline:ye,marginInlineEnd:ye,marginInlineStart:ye,padding:ye,paddingTop:ye,paddingRight:ye,paddingBottom:ye,paddingLeft:ye,paddingBlock:ye,paddingBlockEnd:ye,paddingBlockStart:ye,paddingInline:ye,paddingInlineEnd:ye,paddingInlineStart:ye,top:ye,right:ye,bottom:ye,left:ye,scrollMargin:ye,scrollMarginTop:ye,scrollMarginRight:ye,scrollMarginBottom:ye,scrollMarginLeft:ye,scrollMarginX:ye,scrollMarginY:ye,scrollMarginBlock:ye,scrollMarginBlockEnd:ye,scrollMarginBlockStart:ye,scrollMarginInline:ye,scrollMarginInlineEnd:ye,scrollMarginInlineStart:ye,scrollPadding:ye,scrollPaddingTop:ye,scrollPaddingRight:ye,scrollPaddingBottom:ye,scrollPaddingLeft:ye,scrollPaddingX:ye,scrollPaddingY:ye,scrollPaddingBlock:ye,scrollPaddingBlockEnd:ye,scrollPaddingBlockStart:ye,scrollPaddingInline:ye,scrollPaddingInlineEnd:ye,scrollPaddingInlineStart:ye,fontSize:"fontSizes",background:$e,backgroundColor:$e,backgroundImage:$e,borderImage:$e,border:$e,borderBlock:$e,borderBlockEnd:$e,borderBlockStart:$e,borderBottom:$e,borderBottomColor:$e,borderColor:$e,borderInline:$e,borderInlineEnd:$e,borderInlineStart:$e,borderLeft:$e,borderLeftColor:$e,borderRight:$e,borderRightColor:$e,borderTop:$e,borderTopColor:$e,caretColor:$e,color:$e,columnRuleColor:$e,fill:$e,outline:$e,outlineColor:$e,stroke:$e,textDecorationColor:$e,fontFamily:"fonts",fontWeight:"fontWeights",lineHeight:"lineHeights",letterSpacing:"letterSpacings",blockSize:nn,minBlockSize:nn,maxBlockSize:nn,inlineSize:nn,minInlineSize:nn,maxInlineSize:nn,width:nn,minWidth:nn,maxWidth:nn,height:nn,minHeight:nn,maxHeight:nn,flexBasis:nn,gridTemplateColumns:nn,gridTemplateRows:nn,borderWidth:"borderWidths",borderTopWidth:"borderWidths",borderRightWidth:"borderWidths",borderBottomWidth:"borderWidths",borderLeftWidth:"borderWidths",borderStyle:"borderStyles",borderTopStyle:"borderStyles",borderRightStyle:"borderStyles",borderBottomStyle:"borderStyles",borderLeftStyle:"borderStyles",borderRadius:"radii",borderTopLeftRadius:"radii",borderTopRightRadius:"radii",borderBottomRightRadius:"radii",borderBottomLeftRadius:"radii",boxShadow:"shadows",textShadow:"shadows",transition:"transitions",zIndex:"zIndices"},T0=(o,n)=>typeof n=="function"?{"()":Function.prototype.toString.call(n)}:n,Fi=()=>{const o=Object.create(null);return(n,s,...c)=>{const i=(r=>JSON.stringify(r,T0))(n);return i in o?o[i]:o[i]=s(n,...c)}},Kr=Symbol.for("sxs.internal"),Ll=(o,n)=>Object.defineProperties(o,Object.getOwnPropertyDescriptors(n)),$c=o=>{for(const n in o)return!0;return!1},{hasOwnProperty:P0}=Object.prototype,pl=o=>o.includes("-")?o:o.replace(/[A-Z]/g,n=>"-"+n.toLowerCase()),M0=/\s+(?![^()]*\))/,ki=o=>n=>o(...typeof n=="string"?String(n).split(M0):[n]),ef={appearance:o=>({WebkitAppearance:o,appearance:o}),backfaceVisibility:o=>({WebkitBackfaceVisibility:o,backfaceVisibility:o}),backdropFilter:o=>({WebkitBackdropFilter:o,backdropFilter:o}),backgroundClip:o=>({WebkitBackgroundClip:o,backgroundClip:o}),boxDecorationBreak:o=>({WebkitBoxDecorationBreak:o,boxDecorationBreak:o}),clipPath:o=>({WebkitClipPath:o,clipPath:o}),content:o=>({content:o.includes('"')||o.includes("'")||/^([A-Za-z]+\([^]*|[^]*-quote|inherit|initial|none|normal|revert|unset)$/.test(o)?o:`"${o}"`}),hyphens:o=>({WebkitHyphens:o,hyphens:o}),maskImage:o=>({WebkitMaskImage:o,maskImage:o}),maskSize:o=>({WebkitMaskSize:o,maskSize:o}),tabSize:o=>({MozTabSize:o,tabSize:o}),textSizeAdjust:o=>({WebkitTextSizeAdjust:o,textSizeAdjust:o}),userSelect:o=>({WebkitUserSelect:o,userSelect:o}),marginBlock:ki((o,n)=>({marginBlockStart:o,marginBlockEnd:n||o})),marginInline:ki((o,n)=>({marginInlineStart:o,marginInlineEnd:n||o})),maxSize:ki((o,n)=>({maxBlockSize:o,maxInlineSize:n||o})),minSize:ki((o,n)=>({minBlockSize:o,minInlineSize:n||o})),paddingBlock:ki((o,n)=>({paddingBlockStart:o,paddingBlockEnd:n||o})),paddingInline:ki((o,n)=>({paddingInlineStart:o,paddingInlineEnd:n||o}))},Ja=/([\d.]+)([^]*)/,b0=(o,n)=>o.length?o.reduce((s,c)=>(s.push(...n.map(i=>i.includes("&")?i.replace(/&/g,/[ +>|~]/.test(c)&&/&.*&/.test(i)?`:is(${c})`:c):c+" "+i)),s),[]):n,L0=(o,n)=>o in U0&&typeof n=="string"?n.replace(/^((?:[^]*[^\w-])?)(fit-content|stretch)((?:[^\w-][^]*)?)$/,(s,c,i,r)=>c+(i==="stretch"?`-moz-available${r};${pl(o)}:${c}-webkit-fill-available`:`-moz-fit-content${r};${pl(o)}:${c}fit-content`)+r):String(n),U0={blockSize:1,height:1,inlineSize:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,width:1},mr=o=>o?o+"-":"",md=(o,n,s)=>o.replace(/([+-])?((?:\d+(?:\.\d*)?|\.\d+)(?:[Ee][+-]?\d+)?)?(\$|--)([$\w-]+)/g,(c,i,r,l,f)=>l=="$"==!!r?c:(i||l=="--"?"calc(":"")+"var(--"+(l==="$"?mr(n)+(f.includes("$")?"":mr(s))+f.replace(/\$/g,"-"):f)+")"+(i||l=="--"?"*"+(i||"")+(r||"1")+")":"")),R0=/\s*,\s*(?![^()]*\))/,A0=Object.prototype.toString,Ui=(o,n,s,c,i)=>{let r,l,f;const u=(p,h,g)=>{let v,x;const w=k=>{for(v in k){const S=v.charCodeAt(0)===64,T=S&&Array.isArray(k[v])?k[v]:[k[v]];for(x of T){const A=/[A-Z]/.test(C=v)?C:C.replace(/-[^]/g,b=>b[1].toUpperCase()),R=typeof x=="object"&&x&&x.toString===A0&&(!c.utils[A]||!h.length);if(A in c.utils&&!R){const b=c.utils[A];if(b!==l){l=b,w(b(x)),l=null;continue}}else if(A in ef){const b=ef[A];if(b!==f){f=b,w(b(x)),f=null;continue}}if(S&&(_=v.slice(1)in c.media?"@media "+c.media[v.slice(1)]:v,v=_.replace(/\(\s*([\w-]+)\s*(=|<|<=|>|>=)\s*([\w-]+)\s*(?:(<|<=|>|>=)\s*([\w-]+)\s*)?\)/g,(b,F,z,Q,ee,N)=>{const I=Ja.test(F),J=.0625*(I?-1:1),[K,re]=I?[Q,F]:[F,Q];return"("+(z[0]==="="?"":z[0]===">"===I?"max-":"min-")+K+":"+(z[0]!=="="&&z.length===1?re.replace(Ja,(se,pe,G)=>Number(pe)+J*(z===">"?1:-1)+G):re)+(ee?") and ("+(ee[0]===">"?"min-":"max-")+K+":"+(ee.length===1?N.replace(Ja,(se,pe,G)=>Number(pe)+J*(ee===">"?-1:1)+G):N):"")+")"})),R){const b=S?g.concat(v):[...g],F=S?[...h]:b0(h,v.split(R0));r!==void 0&&i(tf(...r)),r=void 0,u(x,F,b)}else r===void 0&&(r=[[],h,g]),v=S||v.charCodeAt(0)!==36?v:`--${mr(c.prefix)}${v.slice(1).replace(/\$/g,"-")}`,x=R?x:typeof x=="number"?x&&A in D0?String(x)+"px":String(x):md(L0(A,x??""),c.prefix,c.themeMap[A]),r[0].push(`${S?`${v} `:`${pl(v)}:`}${x}`)}}var _,C};w(p),r!==void 0&&i(tf(...r)),r=void 0};u(o,n,s)},tf=(o,n,s)=>`${s.map(c=>`${c}{`).join("")}${n.length?`${n.join(",")}{`:""}${o.join(";")}${n.length?"}":""}${Array(s.length?s.length+1:0).join("}")}`,D0={animationDelay:1,animationDuration:1,backgroundSize:1,blockSize:1,border:1,borderBlock:1,borderBlockEnd:1,borderBlockEndWidth:1,borderBlockStart:1,borderBlockStartWidth:1,borderBlockWidth:1,borderBottom:1,borderBottomLeftRadius:1,borderBottomRightRadius:1,borderBottomWidth:1,borderEndEndRadius:1,borderEndStartRadius:1,borderInlineEnd:1,borderInlineEndWidth:1,borderInlineStart:1,borderInlineStartWidth:1,borderInlineWidth:1,borderLeft:1,borderLeftWidth:1,borderRadius:1,borderRight:1,borderRightWidth:1,borderSpacing:1,borderStartEndRadius:1,borderStartStartRadius:1,borderTop:1,borderTopLeftRadius:1,borderTopRightRadius:1,borderTopWidth:1,borderWidth:1,bottom:1,columnGap:1,columnRule:1,columnRuleWidth:1,columnWidth:1,containIntrinsicSize:1,flexBasis:1,fontSize:1,gap:1,gridAutoColumns:1,gridAutoRows:1,gridTemplateColumns:1,gridTemplateRows:1,height:1,inlineSize:1,inset:1,insetBlock:1,insetBlockEnd:1,insetBlockStart:1,insetInline:1,insetInlineEnd:1,insetInlineStart:1,left:1,letterSpacing:1,margin:1,marginBlock:1,marginBlockEnd:1,marginBlockStart:1,marginBottom:1,marginInline:1,marginInlineEnd:1,marginInlineStart:1,marginLeft:1,marginRight:1,marginTop:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,offsetDistance:1,offsetRotate:1,outline:1,outlineOffset:1,outlineWidth:1,overflowClipMargin:1,padding:1,paddingBlock:1,paddingBlockEnd:1,paddingBlockStart:1,paddingBottom:1,paddingInline:1,paddingInlineEnd:1,paddingInlineStart:1,paddingLeft:1,paddingRight:1,paddingTop:1,perspective:1,right:1,rowGap:1,scrollMargin:1,scrollMarginBlock:1,scrollMarginBlockEnd:1,scrollMarginBlockStart:1,scrollMarginBottom:1,scrollMarginInline:1,scrollMarginInlineEnd:1,scrollMarginInlineStart:1,scrollMarginLeft:1,scrollMarginRight:1,scrollMarginTop:1,scrollPadding:1,scrollPaddingBlock:1,scrollPaddingBlockEnd:1,scrollPaddingBlockStart:1,scrollPaddingBottom:1,scrollPaddingInline:1,scrollPaddingInlineEnd:1,scrollPaddingInlineStart:1,scrollPaddingLeft:1,scrollPaddingRight:1,scrollPaddingTop:1,shapeMargin:1,textDecoration:1,textDecorationThickness:1,textIndent:1,textUnderlineOffset:1,top:1,transitionDelay:1,transitionDuration:1,verticalAlign:1,width:1,wordSpacing:1},nf=o=>String.fromCharCode(o+(o>25?39:97)),Jr=o=>(n=>{let s,c="";for(s=Math.abs(n);s>52;s=s/52|0)c=nf(s%52)+c;return nf(s%52)+c})(((n,s)=>{let c=s.length;for(;c;)n=33*n^s.charCodeAt(--c);return n})(5381,JSON.stringify(o))>>>0),yo=["themed","global","styled","onevar","resonevar","allvar","inline"],I0=o=>{if(o.href&&!o.href.startsWith(location.origin))return!1;try{return!!o.cssRules}catch{return!1}},F0=o=>{let n;const s=()=>{const{cssRules:i}=n.sheet;return[].map.call(i,(r,l)=>{const{cssText:f}=r;let u="";if(f.startsWith("--sxs"))return"";if(i[l-1]&&(u=i[l-1].cssText).startsWith("--sxs")){if(!r.cssRules.length)return"";for(const p in n.rules)if(n.rules[p].group===r)return`--sxs{--sxs:${[...n.rules[p].cache].join(" ")}}${f}`;return r.cssRules.length?`${u}${f}`:""}return f}).join("")},c=()=>{if(n){const{rules:f,sheet:u}=n;if(!u.deleteRule){for(;Object(Object(u.cssRules)[0]).type===3;)u.cssRules.splice(0,1);u.cssRules=[]}for(const p in f)delete f[p]}const i=Object(o).styleSheets||[];for(const f of i)if(I0(f)){for(let u=0,p=f.cssRules;p[u];++u){const h=Object(p[u]);if(h.type!==1)continue;const g=Object(p[u+1]);if(g.type!==4)continue;++u;const{cssText:v}=h;if(!v.startsWith("--sxs"))continue;const x=v.slice(14,-3).trim().split(/\s+/),w=yo[x[0]];w&&(n||(n={sheet:f,reset:c,rules:{},toString:s}),n.rules[w]={group:g,index:u,cache:new Set(x)})}if(n)break}if(!n){const f=(u,p)=>({type:p,cssRules:[],insertRule(h,g){this.cssRules.splice(g,0,f(h,{import:3,undefined:1}[(h.toLowerCase().match(/^@([a-z]+)/)||[])[1]]||4))},get cssText(){return u==="@media{}"?`@media{${[].map.call(this.cssRules,h=>h.cssText).join("")}}`:u}});n={sheet:o?(o.head||o).appendChild(document.createElement("style")).sheet:f("","text/css"),rules:{},reset:c,toString:s}}const{sheet:r,rules:l}=n;for(let f=yo.length-1;f>=0;--f){const u=yo[f];if(!l[u]){const p=yo[f+1],h=l[p]?l[p].index:r.cssRules.length;r.insertRule("@media{}",h),r.insertRule(`--sxs{--sxs:${f}}`,h),l[u]={group:r.cssRules[h+1],index:h,cache:new Set([f])}}O0(l[u])}};return c(),n},O0=o=>{const n=o.group;let s=n.cssRules.length;o.apply=c=>{try{n.insertRule(c,s),++s}catch{}}},go=Symbol(),j0=Fi(),rf=(o,n)=>j0(o,()=>(...s)=>{let c={type:null,composers:new Set};for(const i of s)if(i!=null)if(i[Kr]){c.type==null&&(c.type=i[Kr].type);for(const r of i[Kr].composers)c.composers.add(r)}else i.constructor!==Object||i.$$typeof?c.type==null&&(c.type=i):c.composers.add(z0(i,o));return c.type==null&&(c.type="span"),c.composers.size||c.composers.add(["PJLV",{},[],[],{},[]]),B0(o,c,n)}),z0=({variants:o,compoundVariants:n,defaultVariants:s,...c},i)=>{const r=`${mr(i.prefix)}c-${Jr(c)}`,l=[],f=[],u=Object.create(null),p=[];for(const v in s)u[v]=String(s[v]);if(typeof o=="object"&&o)for(const v in o){h=u,g=v,P0.call(h,g)||(u[v]="undefined");const x=o[v];for(const w in x){const k={[v]:String(w)};String(w)==="undefined"&&p.push(v);const _=x[w],C=[k,_,!$c(_)];l.push(C)}}var h,g;if(typeof n=="object"&&n)for(const v of n){let{css:x,...w}=v;x=typeof x=="object"&&x||{};for(const _ in w)w[_]=String(w[_]);const k=[w,x,!$c(x)];f.push(k)}return[r,c,l,f,u,p]},B0=(o,n,s)=>{const[c,i,r,l]=N0(n.composers),f=typeof n.type=="function"||n.type.$$typeof?(g=>{function v(){for(let x=0;xv.rules[x]={apply:w=>v[go].push([x,w])}),v})(s):null,u=(f||s).rules,p=`.${c}${i.length>1?`:where(.${i.slice(1).join(".")})`:""}`,h=g=>{g=typeof g=="object"&&g||W0;const{css:v,...x}=g,w={};for(const C in r)if(delete x[C],C in g){let S=g[C];typeof S=="object"&&S?w[C]={"@initial":r[C],...S}:(S=String(S),w[C]=S!=="undefined"||l.has(C)?S:r[C])}else w[C]=r[C];const k=new Set([...i]);for(const[C,S,T,A]of n.composers){s.rules.styled.cache.has(C)||(s.rules.styled.cache.add(C),Ui(S,[`.${C}`],[],o,F=>{u.styled.apply(F)}));const R=of(T,w,o.media),b=of(A,w,o.media,!0);for(const F of R)if(F!==void 0)for(const[z,Q,ee]of F){const N=`${C}-${Jr(Q)}-${z}`;k.add(N);const I=(ee?s.rules.resonevar:s.rules.onevar).cache,J=ee?u.resonevar:u.onevar;I.has(N)||(I.add(N),Ui(Q,[`.${N}`],[],o,K=>{J.apply(K)}))}for(const F of b)if(F!==void 0)for(const[z,Q]of F){const ee=`${C}-${Jr(Q)}-${z}`;k.add(ee),s.rules.allvar.cache.has(ee)||(s.rules.allvar.cache.add(ee),Ui(Q,[`.${ee}`],[],o,N=>{u.allvar.apply(N)}))}}if(typeof v=="object"&&v){const C=`${c}-i${Jr(v)}-css`;k.add(C),s.rules.inline.cache.has(C)||(s.rules.inline.cache.add(C),Ui(v,[`.${C}`],[],o,S=>{u.inline.apply(S)}))}for(const C of String(g.className||"").trim().split(/\s+/))C&&k.add(C);const _=x.className=[...k].join(" ");return{type:n.type,className:_,selector:p,props:x,toString:()=>_,deferredInjector:f}};return Ll(h,{className:c,selector:p,[Kr]:n,toString:()=>(s.rules.styled.cache.has(c)||h(),c)})},N0=o=>{let n="";const s=[],c={},i=[];for(const[r,,,,l,f]of o){n===""&&(n=r),s.push(r),i.push(...f);for(const u in l){const p=l[u];(c[u]===void 0||p!=="undefined"||f.includes(p))&&(c[u]=p)}}return[n,s,c,new Set(i)]},of=(o,n,s,c)=>{const i=[];e:for(let[r,l,f]of o){if(f)continue;let u,p=0,h=!1;for(u in r){const g=r[u];let v=n[u];if(v!==g){if(typeof v!="object"||!v)continue e;{let x,w,k=0;for(const _ in v){if(g===String(v[_])){if(_!=="@initial"){const C=_.slice(1);(w=w||[]).push(C in s?s[C]:_.replace(/^@media ?/,"")),h=!0}p+=k,x=!0}++k}if(w&&w.length&&(l={["@media "+w.join(", ")]:l}),!x)continue e}}}(i[p]=i[p]||[]).push([c?"cv":`${u}-${r[u]}`,l,h])}return i},W0={},G0=Fi(),H0=(o,n)=>G0(o,()=>(...s)=>{const c=()=>{for(let i of s){i=typeof i=="object"&&i||{};let r=Jr(i);if(!n.rules.global.cache.has(r)){if(n.rules.global.cache.add(r),"@import"in i){let l=[].indexOf.call(n.sheet.cssRules,n.rules.themed.group)-1;for(let f of[].concat(i["@import"]))f=f.includes('"')||f.includes("'")?f:`"${f}"`,n.sheet.insertRule(`@import ${f};`,l++);delete i["@import"]}Ui(i,[],[],o,l=>{n.rules.global.apply(l)})}}return""};return Ll(c,{toString:c})}),V0=Fi(),Z0=(o,n)=>V0(o,()=>s=>{const c=`${mr(o.prefix)}k-${Jr(s)}`,i=()=>{if(!n.rules.global.cache.has(c)){n.rules.global.cache.add(c);const r=[];Ui(s,[],[],o,f=>r.push(f));const l=`@keyframes ${c}{${r.join("")}}`;n.rules.global.apply(l)}return c};return Ll(i,{get name(){return i()},toString:i})}),X0=class{constructor(o,n,s,c){this.token=o==null?"":String(o),this.value=n==null?"":String(n),this.scale=s==null?"":String(s),this.prefix=c==null?"":String(c)}get computedValue(){return"var("+this.variable+")"}get variable(){return"--"+mr(this.prefix)+mr(this.scale)+this.token}toString(){return this.computedValue}},Q0=Fi(),Y0=(o,n)=>Q0(o,()=>(s,c)=>{c=typeof s=="object"&&s||Object(c);const i=`.${s=(s=typeof s=="string"?s:"")||`${mr(o.prefix)}t-${Jr(c)}`}`,r={},l=[];for(const u in c){r[u]={};for(const p in c[u]){const h=`--${mr(o.prefix)}${u}-${p}`,g=md(String(c[u][p]),o.prefix,u);r[u][p]=new X0(p,g,u,o.prefix),l.push(`${h}:${g}`)}}const f=()=>{if(l.length&&!n.rules.themed.cache.has(s)){n.rules.themed.cache.add(s);const u=`${c===o.theme?":root,":""}.${s}{${l.join(";")}}`;n.rules.themed.apply(u)}return s};return{...r,get className(){return f()},selector:i,toString:f}}),K0=Fi(),sf,J0=Fi(),q0=o=>{const n=(s=>{let c=!1;const i=K0(s,r=>{c=!0;const l="prefix"in(r=typeof r=="object"&&r||{})?String(r.prefix):"",f=typeof r.media=="object"&&r.media||{},u=typeof r.root=="object"?r.root||null:globalThis.document||null,p=typeof r.theme=="object"&&r.theme||{},h={prefix:l,media:f,theme:p,themeMap:typeof r.themeMap=="object"&&r.themeMap||{...k0},utils:typeof r.utils=="object"&&r.utils||{}},g=F0(u),v={css:rf(h,g),globalCss:H0(h,g),keyframes:Z0(h,g),createTheme:Y0(h,g),reset(){g.reset(),v.theme.toString()},theme:{},sheet:g,config:h,prefix:l,getCssText:g.toString,toString:g.toString};return String(v.theme=v.createTheme(p)),v});return c||i.reset(),i})(o);return n.styled=(({config:s,sheet:c})=>J0(s,()=>{const i=rf(s,c);return(...r)=>{const l=i(...r),f=l[Kr].type,u=er.forwardRef((p,h)=>{const g=p&&p.as||f,{props:v,deferredInjector:x}=l(p);return delete v.as,v.ref=h,x?er.createElement(er.Fragment,null,er.createElement(g,v),er.createElement(x,null)):er.createElement(g,v)});return u.className=l.className,u.displayName=`Styled.${f.displayName||f.name||f}`,u.selector=l.selector,u.toString=()=>l.selector,u[Kr]=l[Kr],u}}))(n),n},$0=()=>sf||(sf=q0()),Tt=(...o)=>$0().styled(...o);function St(o,n){if(o==null)return{};var s={},c=Object.keys(o),i,r;for(r=0;r=0)&&(s[i]=o[i]);return s}var e2=["color"],gd=P.forwardRef(function(o,n){var s=o.color,c=s===void 0?"currentColor":s,i=St(o,e2);return P.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:n}),P.createElement("path",{d:"M0 1.5C0 1.22386 0.223858 1 0.5 1H2.5C2.77614 1 3 1.22386 3 1.5C3 1.77614 2.77614 2 2.5 2H0.5C0.223858 2 0 1.77614 0 1.5ZM4 1.5C4 1.22386 4.22386 1 4.5 1H14.5C14.7761 1 15 1.22386 15 1.5C15 1.77614 14.7761 2 14.5 2H4.5C4.22386 2 4 1.77614 4 1.5ZM4 4.5C4 4.22386 4.22386 4 4.5 4H11.5C11.7761 4 12 4.22386 12 4.5C12 4.77614 11.7761 5 11.5 5H4.5C4.22386 5 4 4.77614 4 4.5ZM0 7.5C0 7.22386 0.223858 7 0.5 7H2.5C2.77614 7 3 7.22386 3 7.5C3 7.77614 2.77614 8 2.5 8H0.5C0.223858 8 0 7.77614 0 7.5ZM4 7.5C4 7.22386 4.22386 7 4.5 7H14.5C14.7761 7 15 7.22386 15 7.5C15 7.77614 14.7761 8 14.5 8H4.5C4.22386 8 4 7.77614 4 7.5ZM4 10.5C4 10.2239 4.22386 10 4.5 10H11.5C11.7761 10 12 10.2239 12 10.5C12 10.7761 11.7761 11 11.5 11H4.5C4.22386 11 4 10.7761 4 10.5ZM0 13.5C0 13.2239 0.223858 13 0.5 13H2.5C2.77614 13 3 13.2239 3 13.5C3 13.7761 2.77614 14 2.5 14H0.5C0.223858 14 0 13.7761 0 13.5ZM4 13.5C4 13.2239 4.22386 13 4.5 13H14.5C14.7761 13 15 13.2239 15 13.5C15 13.7761 14.7761 14 14.5 14H4.5C4.22386 14 4 13.7761 4 13.5Z",fill:c,fillRule:"evenodd",clipRule:"evenodd"}))}),t2=["color"],n2=P.forwardRef(function(o,n){var s=o.color,c=s===void 0?"currentColor":s,i=St(o,t2);return P.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:n}),P.createElement("path",{d:"M11.5 1C11.7761 1 12 1.22386 12 1.5V13.5C12 13.7761 11.7761 14 11.5 14C11.2239 14 11 13.7761 11 13.5V1.5C11 1.22386 11.2239 1 11.5 1ZM9.5 3C9.77614 3 10 3.22386 10 3.5V13.5C10 13.7761 9.77614 14 9.5 14C9.22386 14 9 13.7761 9 13.5V3.5C9 3.22386 9.22386 3 9.5 3ZM13.5 3C13.7761 3 14 3.22386 14 3.5V13.5C14 13.7761 13.7761 14 13.5 14C13.2239 14 13 13.7761 13 13.5V3.5C13 3.22386 13.2239 3 13.5 3ZM5.5 4C5.77614 4 6 4.22386 6 4.5V13.5C6 13.7761 5.77614 14 5.5 14C5.22386 14 5 13.7761 5 13.5V4.5C5 4.22386 5.22386 4 5.5 4ZM1.5 5C1.77614 5 2 5.22386 2 5.5V13.5C2 13.7761 1.77614 14 1.5 14C1.22386 14 1 13.7761 1 13.5V5.5C1 5.22386 1.22386 5 1.5 5ZM7.5 5C7.77614 5 8 5.22386 8 5.5V13.5C8 13.7761 7.77614 14 7.5 14C7.22386 14 7 13.7761 7 13.5V5.5C7 5.22386 7.22386 5 7.5 5ZM3.5 7C3.77614 7 4 7.22386 4 7.5V13.5C4 13.7761 3.77614 14 3.5 14C3.22386 14 3 13.7761 3 13.5V7.5C3 7.22386 3.22386 7 3.5 7Z",fill:c,fillRule:"evenodd",clipRule:"evenodd"}))}),r2=["color"],i2=P.forwardRef(function(o,n){var s=o.color,c=s===void 0?"currentColor":s,i=St(o,r2);return P.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:n}),P.createElement("path",{d:"M2 5H13C13.5523 5 14 5.44772 14 6V9C14 9.55228 13.5523 10 13 10H2C1.44772 10 1 9.55228 1 9V6C1 5.44772 1.44772 5 2 5ZM0 6C0 4.89543 0.895431 4 2 4H13C14.1046 4 15 4.89543 15 6V9C15 10.1046 14.1046 11 13 11H2C0.89543 11 0 10.1046 0 9V6ZM4.5 6.75C4.08579 6.75 3.75 7.08579 3.75 7.5C3.75 7.91421 4.08579 8.25 4.5 8.25C4.91421 8.25 5.25 7.91421 5.25 7.5C5.25 7.08579 4.91421 6.75 4.5 6.75ZM6.75 7.5C6.75 7.08579 7.08579 6.75 7.5 6.75C7.91421 6.75 8.25 7.08579 8.25 7.5C8.25 7.91421 7.91421 8.25 7.5 8.25C7.08579 8.25 6.75 7.91421 6.75 7.5ZM10.5 6.75C10.0858 6.75 9.75 7.08579 9.75 7.5C9.75 7.91421 10.0858 8.25 10.5 8.25C10.9142 8.25 11.25 7.91421 11.25 7.5C11.25 7.08579 10.9142 6.75 10.5 6.75Z",fill:c,fillRule:"evenodd",clipRule:"evenodd"}))}),o2=["color"],s2=P.forwardRef(function(o,n){var s=o.color,c=s===void 0?"currentColor":s,i=St(o,o2);return P.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:n}),P.createElement("path",{d:"M7.28856 0.796908C7.42258 0.734364 7.57742 0.734364 7.71144 0.796908L13.7114 3.59691C13.8875 3.67906 14 3.85574 14 4.05V10.95C14 11.1443 13.8875 11.3209 13.7114 11.4031L7.71144 14.2031C7.57742 14.2656 7.42258 14.2656 7.28856 14.2031L1.28856 11.4031C1.11252 11.3209 1 11.1443 1 10.95V4.05C1 3.85574 1.11252 3.67906 1.28856 3.59691L7.28856 0.796908ZM2 4.80578L7 6.93078V12.9649L2 10.6316V4.80578ZM8 12.9649L13 10.6316V4.80578L8 6.93078V12.9649ZM7.5 6.05672L12.2719 4.02866L7.5 1.80176L2.72809 4.02866L7.5 6.05672Z",fill:c,fillRule:"evenodd",clipRule:"evenodd"}))}),a2=["color"],l2=P.forwardRef(function(o,n){var s=o.color,c=s===void 0?"currentColor":s,i=St(o,a2);return P.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:n}),P.createElement("path",{d:"M7.5 9.125C8.39746 9.125 9.125 8.39746 9.125 7.5C9.125 6.60254 8.39746 5.875 7.5 5.875C6.60254 5.875 5.875 6.60254 5.875 7.5C5.875 8.39746 6.60254 9.125 7.5 9.125ZM7.5 10.125C8.94975 10.125 10.125 8.94975 10.125 7.5C10.125 6.05025 8.94975 4.875 7.5 4.875C6.05025 4.875 4.875 6.05025 4.875 7.5C4.875 8.94975 6.05025 10.125 7.5 10.125Z",fill:c,fillRule:"evenodd",clipRule:"evenodd"}))}),u2=["color"],c2=P.forwardRef(function(o,n){var s=o.color,c=s===void 0?"currentColor":s,i=St(o,u2);return P.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:n}),P.createElement("path",{d:"M7.49999 3.09998C7.27907 3.09998 7.09999 3.27906 7.09999 3.49998C7.09999 3.72089 7.27907 3.89998 7.49999 3.89998H14.5C14.7209 3.89998 14.9 3.72089 14.9 3.49998C14.9 3.27906 14.7209 3.09998 14.5 3.09998H7.49999ZM7.49998 5.1C7.27907 5.1 7.09998 5.27908 7.09998 5.5C7.09998 5.72091 7.27907 5.9 7.49998 5.9H14.5C14.7209 5.9 14.9 5.72091 14.9 5.5C14.9 5.27908 14.7209 5.1 14.5 5.1H7.49998ZM7.1 7.5C7.1 7.27908 7.27909 7.1 7.5 7.1H14.5C14.7209 7.1 14.9 7.27908 14.9 7.5C14.9 7.72091 14.7209 7.9 14.5 7.9H7.5C7.27909 7.9 7.1 7.72091 7.1 7.5ZM7.49998 9.1C7.27907 9.1 7.09998 9.27908 7.09998 9.5C7.09998 9.72091 7.27907 9.9 7.49998 9.9H14.5C14.7209 9.9 14.9 9.72091 14.9 9.5C14.9 9.27908 14.7209 9.1 14.5 9.1H7.49998ZM7.09998 11.5C7.09998 11.2791 7.27907 11.1 7.49998 11.1H14.5C14.7209 11.1 14.9 11.2791 14.9 11.5C14.9 11.7209 14.7209 11.9 14.5 11.9H7.49998C7.27907 11.9 7.09998 11.7209 7.09998 11.5ZM2.5 9.25003L5 6.00003H0L2.5 9.25003Z",fill:c,fillRule:"evenodd",clipRule:"evenodd"}))}),f2=["color"],d2=P.forwardRef(function(o,n){var s=o.color,c=s===void 0?"currentColor":s,i=St(o,f2);return P.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:n}),P.createElement("path",{d:"M13.3536 2.35355C13.5488 2.15829 13.5488 1.84171 13.3536 1.64645C13.1583 1.45118 12.8417 1.45118 12.6464 1.64645L10.6828 3.61012C9.70652 3.21671 8.63759 3 7.5 3C4.30786 3 1.65639 4.70638 0.0760002 7.23501C-0.0253338 7.39715 -0.0253334 7.60288 0.0760014 7.76501C0.902945 9.08812 2.02314 10.1861 3.36061 10.9323L1.64645 12.6464C1.45118 12.8417 1.45118 13.1583 1.64645 13.3536C1.84171 13.5488 2.15829 13.5488 2.35355 13.3536L4.31723 11.3899C5.29348 11.7833 6.36241 12 7.5 12C10.6921 12 13.3436 10.2936 14.924 7.76501C15.0253 7.60288 15.0253 7.39715 14.924 7.23501C14.0971 5.9119 12.9769 4.81391 11.6394 4.06771L13.3536 2.35355ZM9.90428 4.38861C9.15332 4.1361 8.34759 4 7.5 4C4.80285 4 2.52952 5.37816 1.09622 7.50001C1.87284 8.6497 2.89609 9.58106 4.09974 10.1931L9.90428 4.38861ZM5.09572 10.6114L10.9003 4.80685C12.1039 5.41894 13.1272 6.35031 13.9038 7.50001C12.4705 9.62183 10.1971 11 7.5 11C6.65241 11 5.84668 10.8639 5.09572 10.6114Z",fill:c,fillRule:"evenodd",clipRule:"evenodd"}))}),h2=["color"],p2=P.forwardRef(function(o,n){var s=o.color,c=s===void 0?"currentColor":s,i=St(o,h2);return P.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:n}),P.createElement("path",{d:"M7.5 11C4.80285 11 2.52952 9.62184 1.09622 7.50001C2.52952 5.37816 4.80285 4 7.5 4C10.1971 4 12.4705 5.37816 13.9038 7.50001C12.4705 9.62183 10.1971 11 7.5 11ZM7.5 3C4.30786 3 1.65639 4.70638 0.0760002 7.23501C-0.0253338 7.39715 -0.0253334 7.60288 0.0760014 7.76501C1.65639 10.2936 4.30786 12 7.5 12C10.6921 12 13.3436 10.2936 14.924 7.76501C15.0253 7.60288 15.0253 7.39715 14.924 7.23501C13.3436 4.70638 10.6921 3 7.5 3ZM7.5 9.5C8.60457 9.5 9.5 8.60457 9.5 7.5C9.5 6.39543 8.60457 5.5 7.5 5.5C6.39543 5.5 5.5 6.39543 5.5 7.5C5.5 8.60457 6.39543 9.5 7.5 9.5Z",fill:c,fillRule:"evenodd",clipRule:"evenodd"}))}),m2=["color"],ml=P.forwardRef(function(o,n){var s=o.color,c=s===void 0?"currentColor":s,i=St(o,m2);return P.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:n}),P.createElement("path",{d:"M2.5 1H12.5C13.3284 1 14 1.67157 14 2.5V12.5C14 13.3284 13.3284 14 12.5 14H2.5C1.67157 14 1 13.3284 1 12.5V2.5C1 1.67157 1.67157 1 2.5 1ZM2.5 2C2.22386 2 2 2.22386 2 2.5V8.3636L3.6818 6.6818C3.76809 6.59551 3.88572 6.54797 4.00774 6.55007C4.12975 6.55216 4.24568 6.60372 4.32895 6.69293L7.87355 10.4901L10.6818 7.6818C10.8575 7.50607 11.1425 7.50607 11.3182 7.6818L13 9.3636V2.5C13 2.22386 12.7761 2 12.5 2H2.5ZM2 12.5V9.6364L3.98887 7.64753L7.5311 11.4421L8.94113 13H2.5C2.22386 13 2 12.7761 2 12.5ZM12.5 13H10.155L8.48336 11.153L11 8.6364L13 10.6364V12.5C13 12.7761 12.7761 13 12.5 13ZM6.64922 5.5C6.64922 5.03013 7.03013 4.64922 7.5 4.64922C7.96987 4.64922 8.35078 5.03013 8.35078 5.5C8.35078 5.96987 7.96987 6.35078 7.5 6.35078C7.03013 6.35078 6.64922 5.96987 6.64922 5.5ZM7.5 3.74922C6.53307 3.74922 5.74922 4.53307 5.74922 5.5C5.74922 6.46693 6.53307 7.25078 7.5 7.25078C8.46693 7.25078 9.25078 6.46693 9.25078 5.5C9.25078 4.53307 8.46693 3.74922 7.5 3.74922Z",fill:c,fillRule:"evenodd",clipRule:"evenodd"}))}),g2=["color"],v2=P.forwardRef(function(o,n){var s=o.color,c=s===void 0?"currentColor":s,i=St(o,g2);return P.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:n}),P.createElement("path",{d:"M5.49998 0.5C5.49998 0.223858 5.72383 0 5.99998 0H7.49998H8.99998C9.27612 0 9.49998 0.223858 9.49998 0.5C9.49998 0.776142 9.27612 1 8.99998 1H7.99998V2.11922C9.09832 2.20409 10.119 2.56622 10.992 3.13572C11.0116 3.10851 11.0336 3.08252 11.058 3.05806L12.058 2.05806C12.3021 1.81398 12.6978 1.81398 12.9419 2.05806C13.186 2.30214 13.186 2.69786 12.9419 2.94194L11.967 3.91682C13.1595 5.07925 13.9 6.70314 13.9 8.49998C13.9 12.0346 11.0346 14.9 7.49998 14.9C3.96535 14.9 1.09998 12.0346 1.09998 8.49998C1.09998 5.13361 3.69904 2.3743 6.99998 2.11922V1H5.99998C5.72383 1 5.49998 0.776142 5.49998 0.5ZM2.09998 8.49998C2.09998 5.51764 4.51764 3.09998 7.49998 3.09998C10.4823 3.09998 12.9 5.51764 12.9 8.49998C12.9 11.4823 10.4823 13.9 7.49998 13.9C4.51764 13.9 2.09998 11.4823 2.09998 8.49998ZM7.49998 8.49998V4.09998C5.06992 4.09998 3.09998 6.06992 3.09998 8.49998C3.09998 10.93 5.06992 12.9 7.49998 12.9C8.715 12.9 9.815 12.4075 10.6112 11.6112L7.49998 8.49998Z",fill:c,fillRule:"evenodd",clipRule:"evenodd"}))}),y2=["color"],x2=P.forwardRef(function(o,n){var s=o.color,c=s===void 0?"currentColor":s,i=St(o,y2);return P.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:n}),P.createElement("path",{d:"M7.75432 0.819537C7.59742 0.726821 7.4025 0.726821 7.24559 0.819537L1.74559 4.06954C1.59336 4.15949 1.49996 4.32317 1.49996 4.5C1.49996 4.67683 1.59336 4.84051 1.74559 4.93046L7.24559 8.18046C7.4025 8.27318 7.59742 8.27318 7.75432 8.18046L13.2543 4.93046C13.4066 4.84051 13.5 4.67683 13.5 4.5C13.5 4.32317 13.4066 4.15949 13.2543 4.06954L7.75432 0.819537ZM7.49996 7.16923L2.9828 4.5L7.49996 1.83077L12.0171 4.5L7.49996 7.16923ZM1.5695 7.49564C1.70998 7.2579 2.01659 7.17906 2.25432 7.31954L7.49996 10.4192L12.7456 7.31954C12.9833 7.17906 13.2899 7.2579 13.4304 7.49564C13.5709 7.73337 13.4921 8.03998 13.2543 8.18046L7.75432 11.4305C7.59742 11.5232 7.4025 11.5232 7.24559 11.4305L1.74559 8.18046C1.50786 8.03998 1.42901 7.73337 1.5695 7.49564ZM1.56949 10.4956C1.70998 10.2579 2.01658 10.1791 2.25432 10.3195L7.49996 13.4192L12.7456 10.3195C12.9833 10.1791 13.2899 10.2579 13.4304 10.4956C13.5709 10.7334 13.4921 11.04 13.2543 11.1805L7.75432 14.4305C7.59742 14.5232 7.4025 14.5232 7.24559 14.4305L1.74559 11.1805C1.50785 11.04 1.42901 10.7334 1.56949 10.4956Z",fill:c,fillRule:"evenodd",clipRule:"evenodd"}))}),S2=["color"],w2=P.forwardRef(function(o,n){var s=o.color,c=s===void 0?"currentColor":s,i=St(o,S2);return P.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:n}),P.createElement("path",{d:"M8.69667 0.0403541C8.90859 0.131038 9.03106 0.354857 8.99316 0.582235L8.0902 6.00001H12.5C12.6893 6.00001 12.8625 6.10701 12.9472 6.27641C13.0319 6.4458 13.0136 6.6485 12.8999 6.80001L6.89997 14.8C6.76167 14.9844 6.51521 15.0503 6.30328 14.9597C6.09135 14.869 5.96888 14.6452 6.00678 14.4178L6.90974 9H2.49999C2.31061 9 2.13748 8.893 2.05278 8.72361C1.96809 8.55422 1.98636 8.35151 2.09999 8.2L8.09997 0.200038C8.23828 0.0156255 8.48474 -0.0503301 8.69667 0.0403541ZM3.49999 8.00001H7.49997C7.64695 8.00001 7.78648 8.06467 7.88148 8.17682C7.97648 8.28896 8.01733 8.43723 7.99317 8.5822L7.33027 12.5596L11.5 7.00001H7.49997C7.353 7.00001 7.21347 6.93534 7.11846 6.8232C7.02346 6.71105 6.98261 6.56279 7.00678 6.41781L7.66968 2.44042L3.49999 8.00001Z",fill:c,fillRule:"evenodd",clipRule:"evenodd"}))}),C2=["color"],_2=P.forwardRef(function(o,n){var s=o.color,c=s===void 0?"currentColor":s,i=St(o,C2);return P.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:n}),P.createElement("path",{d:"M1.49988 2.00012C1.77602 2.00012 1.99988 1.77626 1.99988 1.50012C1.99988 1.22398 1.77602 1.00012 1.49988 1.00012C1.22374 1.00012 0.999878 1.22398 0.999878 1.50012C0.999878 1.77626 1.22374 2.00012 1.49988 2.00012ZM4.49988 2.00012C4.77602 2.00012 4.99988 1.77626 4.99988 1.50012C4.99988 1.22398 4.77602 1.00012 4.49988 1.00012C4.22374 1.00012 3.99988 1.22398 3.99988 1.50012C3.99988 1.77626 4.22374 2.00012 4.49988 2.00012ZM7.99988 1.50012C7.99988 1.77626 7.77602 2.00012 7.49988 2.00012C7.22374 2.00012 6.99988 1.77626 6.99988 1.50012C6.99988 1.22398 7.22374 1.00012 7.49988 1.00012C7.77602 1.00012 7.99988 1.22398 7.99988 1.50012ZM10.4999 2.00012C10.776 2.00012 10.9999 1.77626 10.9999 1.50012C10.9999 1.22398 10.776 1.00012 10.4999 1.00012C10.2237 1.00012 9.99988 1.22398 9.99988 1.50012C9.99988 1.77626 10.2237 2.00012 10.4999 2.00012ZM13.9999 1.50012C13.9999 1.77626 13.776 2.00012 13.4999 2.00012C13.2237 2.00012 12.9999 1.77626 12.9999 1.50012C12.9999 1.22398 13.2237 1.00012 13.4999 1.00012C13.776 1.00012 13.9999 1.22398 13.9999 1.50012ZM1.49988 14.0001C1.77602 14.0001 1.99988 13.7763 1.99988 13.5001C1.99988 13.224 1.77602 13.0001 1.49988 13.0001C1.22374 13.0001 0.999878 13.224 0.999878 13.5001C0.999878 13.7763 1.22374 14.0001 1.49988 14.0001ZM1.99988 10.5001C1.99988 10.7763 1.77602 11.0001 1.49988 11.0001C1.22374 11.0001 0.999878 10.7763 0.999878 10.5001C0.999878 10.224 1.22374 10.0001 1.49988 10.0001C1.77602 10.0001 1.99988 10.224 1.99988 10.5001ZM1.49988 8.00012C1.77602 8.00012 1.99988 7.77626 1.99988 7.50012C1.99988 7.22398 1.77602 7.00012 1.49988 7.00012C1.22374 7.00012 0.999878 7.22398 0.999878 7.50012C0.999878 7.77626 1.22374 8.00012 1.49988 8.00012ZM1.99988 4.50012C1.99988 4.77626 1.77602 5.00012 1.49988 5.00012C1.22374 5.00012 0.999878 4.77626 0.999878 4.50012C0.999878 4.22398 1.22374 4.00012 1.49988 4.00012C1.77602 4.00012 1.99988 4.22398 1.99988 4.50012ZM13.4999 11.0001C13.776 11.0001 13.9999 10.7763 13.9999 10.5001C13.9999 10.224 13.776 10.0001 13.4999 10.0001C13.2237 10.0001 12.9999 10.224 12.9999 10.5001C12.9999 10.7763 13.2237 11.0001 13.4999 11.0001ZM13.9999 7.50012C13.9999 7.77626 13.776 8.00012 13.4999 8.00012C13.2237 8.00012 12.9999 7.77626 12.9999 7.50012C12.9999 7.22398 13.2237 7.00012 13.4999 7.00012C13.776 7.00012 13.9999 7.22398 13.9999 7.50012ZM13.4999 5.00012C13.776 5.00012 13.9999 4.77626 13.9999 4.50012C13.9999 4.22398 13.776 4.00012 13.4999 4.00012C13.2237 4.00012 12.9999 4.22398 12.9999 4.50012C12.9999 4.77626 13.2237 5.00012 13.4999 5.00012ZM4.99988 13.5001C4.99988 13.7763 4.77602 14.0001 4.49988 14.0001C4.22374 14.0001 3.99988 13.7763 3.99988 13.5001C3.99988 13.224 4.22374 13.0001 4.49988 13.0001C4.77602 13.0001 4.99988 13.224 4.99988 13.5001ZM7.49988 14.0001C7.77602 14.0001 7.99988 13.7763 7.99988 13.5001C7.99988 13.224 7.77602 13.0001 7.49988 13.0001C7.22374 13.0001 6.99988 13.224 6.99988 13.5001C6.99988 13.7763 7.22374 14.0001 7.49988 14.0001ZM10.9999 13.5001C10.9999 13.7763 10.776 14.0001 10.4999 14.0001C10.2237 14.0001 9.99988 13.7763 9.99988 13.5001C9.99988 13.224 10.2237 13.0001 10.4999 13.0001C10.776 13.0001 10.9999 13.224 10.9999 13.5001ZM13.4999 14.0001C13.776 14.0001 13.9999 13.7763 13.9999 13.5001C13.9999 13.224 13.776 13.0001 13.4999 13.0001C13.2237 13.0001 12.9999 13.224 12.9999 13.5001C12.9999 13.7763 13.2237 14.0001 13.4999 14.0001ZM3.99988 5.00012C3.99988 4.44784 4.44759 4.00012 4.99988 4.00012H9.99988C10.5522 4.00012 10.9999 4.44784 10.9999 5.00012V10.0001C10.9999 10.5524 10.5522 11.0001 9.99988 11.0001H4.99988C4.44759 11.0001 3.99988 10.5524 3.99988 10.0001V5.00012ZM4.99988 5.00012H9.99988V10.0001H4.99988V5.00012Z",fill:c,fillRule:"evenodd",clipRule:"evenodd"}))}),E2=["color"],k2=P.forwardRef(function(o,n){var s=o.color,c=s===void 0?"currentColor":s,i=St(o,E2);return P.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:n}),P.createElement("path",{d:"M2.25 7.5C2.25 7.22386 2.47386 7 2.75 7H12.25C12.5261 7 12.75 7.22386 12.75 7.5C12.75 7.77614 12.5261 8 12.25 8H2.75C2.47386 8 2.25 7.77614 2.25 7.5Z",fill:c,fillRule:"evenodd",clipRule:"evenodd"}))}),T2=["color"],P2=P.forwardRef(function(o,n){var s=o.color,c=s===void 0?"currentColor":s,i=St(o,T2);return P.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:n}),P.createElement("path",{d:"M6.04995 2.74998C6.04995 2.44623 5.80371 2.19998 5.49995 2.19998C5.19619 2.19998 4.94995 2.44623 4.94995 2.74998V12.25C4.94995 12.5537 5.19619 12.8 5.49995 12.8C5.80371 12.8 6.04995 12.5537 6.04995 12.25V2.74998ZM10.05 2.74998C10.05 2.44623 9.80371 2.19998 9.49995 2.19998C9.19619 2.19998 8.94995 2.44623 8.94995 2.74998V12.25C8.94995 12.5537 9.19619 12.8 9.49995 12.8C9.80371 12.8 10.05 12.5537 10.05 12.25V2.74998Z",fill:c,fillRule:"evenodd",clipRule:"evenodd"}))}),M2=["color"],b2=P.forwardRef(function(o,n){var s=o.color,c=s===void 0?"currentColor":s,i=St(o,M2);return P.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:n}),P.createElement("path",{d:"M6.85357 3.85355L7.65355 3.05353C8.2981 2.40901 9.42858 1.96172 10.552 1.80125C11.1056 1.72217 11.6291 1.71725 12.0564 1.78124C12.4987 1.84748 12.7698 1.97696 12.8965 2.10357C13.0231 2.23018 13.1526 2.50125 13.2188 2.94357C13.2828 3.37086 13.2779 3.89439 13.1988 4.44801C13.0383 5.57139 12.591 6.70188 11.9464 7.34645L7.49999 11.7929L6.35354 10.6465C6.15827 10.4512 5.84169 10.4512 5.64643 10.6465C5.45117 10.8417 5.45117 11.1583 5.64643 11.3536L7.14644 12.8536C7.34171 13.0488 7.65829 13.0488 7.85355 12.8536L8.40073 12.3064L9.57124 14.2572C9.65046 14.3893 9.78608 14.4774 9.9389 14.4963C10.0917 14.5151 10.2447 14.4624 10.3535 14.3536L12.3535 12.3536C12.4648 12.2423 12.5172 12.0851 12.495 11.9293L12.0303 8.67679L12.6536 8.05355C13.509 7.19808 14.0117 5.82855 14.1887 4.58943C14.2784 3.9618 14.2891 3.33847 14.2078 2.79546C14.1287 2.26748 13.9519 1.74482 13.6035 1.39645C13.2552 1.04809 12.7325 0.871332 12.2045 0.792264C11.6615 0.710945 11.0382 0.721644 10.4105 0.8113C9.17143 0.988306 7.80189 1.491 6.94644 2.34642L6.32322 2.96968L3.07071 2.50504C2.91492 2.48278 2.75773 2.53517 2.64645 2.64646L0.646451 4.64645C0.537579 4.75533 0.484938 4.90829 0.50375 5.0611C0.522563 5.21391 0.61073 5.34954 0.742757 5.42876L2.69364 6.59928L2.14646 7.14645C2.0527 7.24022 2.00002 7.3674 2.00002 7.50001C2.00002 7.63261 2.0527 7.75979 2.14646 7.85356L3.64647 9.35356C3.84173 9.54883 4.15831 9.54883 4.35357 9.35356C4.54884 9.1583 4.54884 8.84172 4.35357 8.64646L3.20712 7.50001L3.85357 6.85356L6.85357 3.85355ZM10.0993 13.1936L9.12959 11.5775L11.1464 9.56067L11.4697 11.8232L10.0993 13.1936ZM3.42251 5.87041L5.43935 3.85356L3.17678 3.53034L1.80638 4.90074L3.42251 5.87041ZM2.35356 10.3535C2.54882 10.1583 2.54882 9.8417 2.35356 9.64644C2.1583 9.45118 1.84171 9.45118 1.64645 9.64644L0.646451 10.6464C0.451188 10.8417 0.451188 11.1583 0.646451 11.3535C0.841713 11.5488 1.1583 11.5488 1.35356 11.3535L2.35356 10.3535ZM3.85358 11.8536C4.04884 11.6583 4.04885 11.3417 3.85359 11.1465C3.65833 10.9512 3.34175 10.9512 3.14648 11.1465L1.14645 13.1464C0.95119 13.3417 0.951187 13.6583 1.14645 13.8535C1.34171 14.0488 1.65829 14.0488 1.85355 13.8536L3.85358 11.8536ZM5.35356 13.3535C5.54882 13.1583 5.54882 12.8417 5.35356 12.6464C5.1583 12.4512 4.84171 12.4512 4.64645 12.6464L3.64645 13.6464C3.45119 13.8417 3.45119 14.1583 3.64645 14.3535C3.84171 14.5488 4.1583 14.5488 4.35356 14.3535L5.35356 13.3535ZM9.49997 6.74881C10.1897 6.74881 10.7488 6.1897 10.7488 5.5C10.7488 4.8103 10.1897 4.25118 9.49997 4.25118C8.81026 4.25118 8.25115 4.8103 8.25115 5.5C8.25115 6.1897 8.81026 6.74881 9.49997 6.74881Z",fill:c,fillRule:"evenodd",clipRule:"evenodd"}))}),L2=["color"],U2=P.forwardRef(function(o,n){var s=o.color,c=s===void 0?"currentColor":s,i=St(o,L2);return P.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:n}),P.createElement("path",{d:"M0.5 4C0.223858 4 0 4.22386 0 4.5V10.5C0 10.7761 0.223858 11 0.5 11H14.5C14.7761 11 15 10.7761 15 10.5V4.5C15 4.22386 14.7761 4 14.5 4H0.5ZM1 10V5H2.075V7.5C2.075 7.73472 2.26528 7.925 2.5 7.925C2.73472 7.925 2.925 7.73472 2.925 7.5V5H4.075V6.5C4.075 6.73472 4.26528 6.925 4.5 6.925C4.73472 6.925 4.925 6.73472 4.925 6.5V5H6.075V6.5C6.075 6.73472 6.26528 6.925 6.5 6.925C6.73472 6.925 6.925 6.73472 6.925 6.5V5H8.075V7.5C8.075 7.73472 8.26528 7.925 8.5 7.925C8.73472 7.925 8.925 7.73472 8.925 7.5V5H10.075V6.5C10.075 6.73472 10.2653 6.925 10.5 6.925C10.7347 6.925 10.925 6.73472 10.925 6.5V5H12.075V6.5C12.075 6.73472 12.2653 6.925 12.5 6.925C12.7347 6.925 12.925 6.73472 12.925 6.5V5H14V10H1Z",fill:c,fillRule:"evenodd",clipRule:"evenodd"}))}),R2=["color"],A2=P.forwardRef(function(o,n){var s=o.color,c=s===void 0?"currentColor":s,i=St(o,R2);return P.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:n}),P.createElement("path",{d:"M2.5 4C2.22386 4 2 4.22386 2 4.5C2 4.77614 2.22386 5 2.5 5H12.5C12.7761 5 13 4.77614 13 4.5C13 4.22386 12.7761 4 12.5 4H2.5ZM2 7.5C2 7.22386 2.22386 7 2.5 7H12.5C12.7761 7 13 7.22386 13 7.5C13 7.77614 12.7761 8 12.5 8H2.5C2.22386 8 2 7.77614 2 7.5ZM2 10.5C2 10.2239 2.22386 10 2.5 10H12.5C12.7761 10 13 10.2239 13 10.5C13 10.7761 12.7761 11 12.5 11H2.5C2.22386 11 2 10.7761 2 10.5Z",fill:c,fillRule:"evenodd",clipRule:"evenodd"}))}),D2=["color"],vd=P.forwardRef(function(o,n){var s=o.color,c=s===void 0?"currentColor":s,i=St(o,D2);return P.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:n}),P.createElement("path",{d:"M4 6H11L7.5 10.5L4 6Z",fill:c}))}),I2=["color"],yd=P.forwardRef(function(o,n){var s=o.color,c=s===void 0?"currentColor":s,i=St(o,I2);return P.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:n}),P.createElement("path",{d:"M4 9H11L7.5 4.5L4 9Z",fill:c}))}),F2=["color"],xd=P.forwardRef(function(o,n){var s=o.color,c=s===void 0?"currentColor":s,i=St(o,F2);return P.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:n}),P.createElement("path",{d:"M7.49998 1L6.92321 2.00307L1.17498 12L0.599976 13H1.7535H13.2464H14.4L13.825 12L8.07674 2.00307L7.49998 1ZM7.49998 3.00613L2.3285 12H12.6714L7.49998 3.00613Z",fill:c,fillRule:"evenodd",clipRule:"evenodd"}))});function O2(o,n){if(typeof o!="object"||o===null)return o;var s=o[Symbol.toPrimitive];if(s!==void 0){var c=s.call(o,n||"default");if(typeof c!="object")return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(o)}function j2(o){var n=O2(o,"string");return typeof n=="symbol"?n:String(n)}function z2(o,n,s){return n=j2(n),n in o?Object.defineProperty(o,n,{value:s,enumerable:!0,configurable:!0,writable:!0}):o[n]=s,o}function af(o,n){var s=Object.keys(o);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(o);n&&(c=c.filter(function(i){return Object.getOwnPropertyDescriptor(o,i).enumerable})),s.push.apply(s,c)}return s}function gl(o){for(var n=1;n(o==null?void 0:o.reduce((n,s)=>n+s,0))/o.length;class B2{constructor(n={}){this.names=[""],this.finished=[],this.gl=void 0,this.extension=void 0,this.query=void 0,this.paused=!1,this.overClock=!1,this.queryHasResult=!1,this.queryCreated=!1,this.isWebGL2=!0,this.memAccums=[],this.gpuAccums=[],this.activeAccums=[],this.logsAccums={mem:[],gpu:[],cpu:[],fps:[],fpsFixed:[]},this.fpsChart=[],this.gpuChart=[],this.cpuChart=[],this.memChart=[],this.paramLogger=()=>{},this.glFinish=()=>{},this.chartLogger=()=>{},this.chartLen=60,this.maxMemory=1500,this.chartHz=10,this.startCpuProfiling=!1,this.lastCalculateFixed=0,this.chartFrame=0,this.gpuTimeProcess=0,this.chartTime=0,this.activeQueries=0,this.circularId=0,this.detected=0,this.frameId=0,this.rafId=0,this.idleCbId=0,this.checkQueryId=0,this.uuid=void 0,this.currentCpu=0,this.currentMem=0,this.paramFrame=0,this.paramTime=0,this.now=()=>{},this.t0=0,window.GLPerf=window.GLPerf||{},Object.assign(this,n),this.fpsChart=new Array(this.chartLen).fill(0),this.gpuChart=new Array(this.chartLen).fill(0),this.cpuChart=new Array(this.chartLen).fill(0),this.memChart=new Array(this.chartLen).fill(0),this.now=()=>window.performance&&window.performance.now?window.performance.now():Date.now(),this.initGpu(),this.is120hz()}initGpu(){this.uuid=yf.generateUUID(),this.gl&&(this.isWebGL2=!0,this.extension||(this.extension=this.gl.getExtension("EXT_disjoint_timer_query_webgl2")),this.extension===null&&(this.isWebGL2=!1))}is120hz(){let n=0;const s=c=>{++n<20?this.rafId=window.requestAnimationFrame(s):(this.detected=Math.ceil(1e3*n/(c-this.t0)/70),window.cancelAnimationFrame(this.rafId)),this.t0||(this.t0=c)};this.rafId=window.requestAnimationFrame(s)}addUI(n){this.names.indexOf(n)===-1&&(this.names.push(n),this.gpuAccums.push(0),this.activeAccums.push(!1))}nextFps(n){const s=16.666666666666668,c=s-n.timeRemaining(),i=s*Dn.fpsLimit/10/c;i<0||(Dn.value=i,Dn.isOverLimit<25?Dn.isOverLimit++:Ge.setState({overclockingFps:!0}))}nextFrame(n){this.frameId++;const s=n||this.now();let c=s-this.paramTime,i=0;if(this.frameId<=1)this.paramFrame=this.frameId,this.paramTime=s;else if(s>=this.paramTime){this.maxMemory=window.performance.memory?window.performance.memory.jsHeapSizeLimit/1048576:0;const r=this.frameId-this.paramFrame,l=r*1e3/c,f=Ge.getState().overclockingFps?Dn.value:l;if(i=this.isWebGL2?this.gpuAccums[0]:this.gpuAccums[0]/c,this.isWebGL2?this.gpuAccums[0]=0:Promise.all(this.finished).then(()=>{this.gpuAccums[0]=0,this.finished=[]}),this.currentMem=Math.round(window.performance&&window.performance.memory?window.performance.memory.usedJSHeapSize/1048576:0),window.performance&&this.startCpuProfiling){window.performance.mark("cpu-finished");const u=performance.measure("cpu-duration","cpu-started","cpu-finished");this.currentCpu=u.duration,this.logsAccums.cpu.push(this.currentCpu),this.startCpuProfiling=!1}this.logsAccums.mem.push(this.currentMem),this.logsAccums.fpsFixed.push(l),this.logsAccums.fps.push(f),this.logsAccums.gpu.push(i),this.overClock&&typeof window.requestIdleCallback<"u"&&(Dn.isOverLimit>0&&f>l?Dn.isOverLimit--:Ge.getState().overclockingFps&&Ge.setState({overclockingFps:!1})),s>=this.paramTime+180&&(this.paramLogger({cpu:vo(this.logsAccums.cpu),gpu:vo(this.logsAccums.gpu),mem:vo(this.logsAccums.mem),fps:vo(this.logsAccums.fps),duration:Math.round(c),maxMemory:this.maxMemory,frameCount:r}),this.logsAccums.mem=[],this.logsAccums.fps=[],this.logsAccums.gpu=[],this.logsAccums.cpu=[],this.paramFrame=this.frameId,this.paramTime=s),this.overClock&&s-this.lastCalculateFixed>=2*1e3&&(this.lastCalculateFixed=n,Dn.fpsLimit=Math.round(vo(this.logsAccums.fpsFixed)/10)*100,Ge.setState({fpsLimit:Dn.fpsLimit/10}),this.logsAccums.fpsFixed=[],this.paramFrame=this.frameId,this.paramTime=s)}if(!this.detected||!this.chartFrame)this.chartFrame=this.frameId,this.chartTime=s,this.circularId=0;else{const r=s-this.chartTime;let l=this.chartHz*r/1e3;for(;--l>0&&this.detected;){const u=(this.frameId-this.chartFrame)/r*1e3,p=Ge.getState().overclockingFps?Dn.value:u;this.fpsChart[this.circularId%this.chartLen]=p;const h=1e3/this.currentMem,g=this.currentCpu,v=(this.isWebGL2?this.gpuAccums[1]*2:Math.round(this.gpuAccums[1]/c*100))+4;v>0&&(this.gpuChart[this.circularId%this.chartLen]=v),g>0&&(this.cpuChart[this.circularId%this.chartLen]=g),h>0&&(this.memChart[this.circularId%this.chartLen]=h);for(let x=0;x0&&(i||this.activeAccums.forEach((u,p)=>{this.gpuAccums[p]=f}))}}(c||!this.query)&&(this.queryCreated=!0,this.query=n.createQuery(),n.beginQuery(s.TIME_ELAPSED_EXT,this.query))}}endGpu(){const n=this.extension,s=this.gl;this.isWebGL2&&this.queryCreated&&s.getQuery(n.TIME_ELAPSED_EXT,s.CURRENT_QUERY)&&s.endQuery(n.TIME_ELAPSED_EXT)}begin(n){this.startGpu(),this.updateAccums(n)}end(n){this.endGpu(),this.updateAccums(n)}updateAccums(n){let s=this.names.indexOf(n);s===-1&&(s=this.names.length,this.addUI(n));const c=this.now();this.activeAccums[s]=!this.activeAccums[s],this.t0=c}}const N2=o=>{o.forEach((n,s)=>{const{meshes:c}=n;if(!c)return;let i={total:0,type:"Triangle",data:[]};Object.keys(c).forEach(r=>{const l=c[r],{geometry:f,material:u}=l;let p=f.index;const h=f.attributes.position;if(!h)return;let g=1;u.wireframe===!0&&(g=0);const v=p!==null?p.count:h.count,x=f.drawRange.start*g,w=f.drawRange.count*g,k=x,_=Math.min(v,x+w)-1;let C=1;const S=l.count||1;let T="Triangle",A=0;l.isMesh?u.wireframe===!0?(T="Line",C=C/2):(T="Triangle",C=C/3):l.isLine?(T="Line",l.isLineSegments?C=C/2:l.isLineLoop?C=C:C=C-1):l.isPoints?(T="Point",C=C):l.isSprite&&(T="Triangle",C=C/3);const R=Math.round(Math.max(0,_-k+1)*(C*S));R>A&&(A=R,i.type=T),i.total+=R,i.data.push({drawCount:R,type:T}),l.userData.drawCount={type:T,count:R}}),n.drawCounts=i})},W2=Zr.prototype.updateMatrixWorld,G2=Zr.prototype.updateWorldMatrix,lf=Zr.prototype.updateMatrix;let Ri={value:0},nr={value:0};const H2=o=>{let n=""+o;return n=n.match("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"),n!==null},uf=(o,n)=>{o.defines||(o.defines={}),o.defines&&!o.defines.muiPerf&&(o.defines=Object.assign(o.defines||{},{muiPerf:o.uuid}));const s=o.uuid;return n[s]||(n[s]={meshes:{},material:o},o.needsUpdate=!0),o.needsUpdate=!1,s},V2=o=>o==="muiPerf",Ge=$d(o=>({log:null,paused:!1,triggerProgramsUpdate:0,customData:0,fpsLimit:60,overclockingFps:!1,chart:{data:{fps:[],cpu:[],gpu:[],mem:[]},circularId:0},gl:void 0,objectWithMaterials:null,scene:void 0,programs:new Map,sceneLength:void 0,tab:"infos"})),Sd=({trackCPU:o,overClock:n,chart:s,deepAnalyze:c,matrixUpdate:i})=>{const{gl:r,scene:l}=Ii();Ge.setState({gl:r,scene:l});const f=P.useMemo(()=>{const u=new B2({trackGPU:!0,overClock:n,chartLen:s?s.length:120,chartHz:s?s.hz:60,gl:r.getContext(),chartLogger:g=>{Ge.setState({chart:g})},paramLogger:g=>{Ge.setState({log:{maxMemory:g.maxMemory,gpu:g.gpu,cpu:g.cpu,mem:g.mem,fps:g.fps,totalTime:g.duration,frameCount:g.frameCount}})}}),p=new Map,h=new Map;return Object.defineProperty(Rs.prototype,"onBeforeRender",{get(){return(...g)=>{var v;u&&u.begin("profiler"),(v=p.get(this))===null||v===void 0||v(...g)}},set(g){p.set(this,g)},configurable:!0}),Object.defineProperty(Rs.prototype,"onAfterRender",{get(){return(...g)=>{var v;u&&u.end("profiler"),(v=h.get(this))===null||v===void 0||v(...g)}},set(g){h.set(this,g)},configurable:!0}),u},[]);return P.useEffect(()=>{f&&(f.overClock=n||!1,n===!1&&(Ge.setState({overclockingFps:!1}),Dn.value=0,Dn.isOverLimit=0),f.chartHz=(s==null?void 0:s.hz)||60,f.chartLen=(s==null?void 0:s.length)||120)},[n,f,s==null?void 0:s.length,s==null?void 0:s.hz]),P.useEffect(()=>{i&&(Zr.prototype.updateMatrixWorld=function(){(this.matrixWorldNeedsUpdate||arguments[0])&&Ri.value++,W2.apply(this,arguments)},Zr.prototype.updateWorldMatrix=function(){Ri.value++,G2.apply(this,arguments)},Zr.prototype.updateMatrix=function(){nr.value++,lf.apply(this,arguments)}),r.info.autoReset=!1;let u=null,p=null;if(r.info)return u=q1(function(){Ge.getState().paused&&Ge.setState({paused:!1}),window.performance&&(window.performance.mark("cpu-started"),f.startCpuProfiling=!0),nr.value-=1,Ri.value=0,nr.value=0,r.info&&r.info.reset()}),p=$1(function(){if(f&&!f.paused&&(f.nextFrame(window.performance.now()),n&&typeof window.requestIdleCallback<"u"&&(f.idleCbId=requestIdleCallback(f.nextFps))),c){var g,v;const x={},w=new Map;l.traverse(function(_){if((_ instanceof Co||_ instanceof M1)&&_.material){let C=_.material.uuid;Array.isArray(_.material)&&_.material.length>1?C=uf(_.material[1],x):C=uf(_.material,x),x[C].meshes[_.uuid]=_}}),r==null||(g=r.info)===null||g===void 0||(v=g.programs)===null||v===void 0||v.forEach(k=>{const _=k.cacheKey.split(","),C=_[_.findIndex(V2)+1];if(H2(C)&&x[C]){const{material:S,meshes:T}=x[C];w.set(C,{program:k,material:S,meshes:T,drawCounts:{total:0,type:"triangle",data:[]},expand:!1,visible:!0})}}),w.size!==Ge.getState().programs.size&&(N2(w),Ge.setState({programs:w,triggerProgramsUpdate:Ge.getState().triggerProgramsUpdate++}))}}),()=>{f&&(typeof window.cancelIdleCallback<"u"&&window.cancelIdleCallback(f.idleCbId),window.cancelAnimationFrame(f.rafId),window.cancelAnimationFrame(f.checkQueryId)),i&&(Zr.prototype.updateMatrixWorld=lf),u(),p()}},[f,r,o,s,i]),P.useEffect(()=>{const u=eh(function(){return f&&(f.paused=!0,nr.value=0,Ri.value=0,Ge.setState({paused:!0,log:{maxMemory:0,gpu:0,mem:0,cpu:0,fps:0,totalTime:0,frameCount:0}})),!1});return()=>{u()}},[]),null},Z2=Tt("div",{position:"fixed",top:0,right:0,zIndex:9999,fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', - sans-serif`,backgroundColor:"rgba(36, 36, 36, .9)",color:"#fff",margin:0,minHeight:"100px",padding:"4px 0","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale",userSelect:"none","&.top-left":{right:"initial",left:0},"&.bottom-left":{right:"initial",top:"initial",bottom:0,left:0,".__perf_toggle":{top:"-20px",bottom:"initial"}},"&.bottom-right":{top:"initial",bottom:0,".__perf_toggle":{top:"-20px",bottom:"initial"}},"&.minimal":{backgroundColor:"rgba(36, 36, 36, .75)"},"*":{margin:"0",padding:"0",border:"0",fontSize:"100%",lineHeight:"1",verticalAlign:"baseline"}}),qa=Tt("small",{position:"absolute",right:0,fontSize:"10px"}),Ht=Tt("div",{display:"inline-flex",fontStyle:"normal",padding:0,lineHeight:"13px",fontSize:"14px",width:"62px",position:"relative",pointerEvents:"auto",cursor:"default",fontWeight:500,letterSpacing:"0px",textAlign:"left",height:"29px",whiteSpace:"nowrap",justifyContent:"space-evenly",fontVariantNumeric:"tabular-nums",small:{paddingLeft:"12px"},svg:{padding:0,color:"rgba(145, 145, 145, 0.3)",fontSize:"40px",position:"absolute",zIndex:1,maxHeight:"20px",left:" 50%",marginLeft:"-23px",top:"4px"}}),cn=Tt("span",{verticalAlign:"bottom",position:"absolute",bottom:"5px",color:"rgba(101, 197, 188, 1)",textAlign:"right",letterSpacing:"1px",fontSize:"8px",fontWeight:"500",width:"60px"}),X2=Tt("div",{display:"flex"}),Q2=Tt("div",{backgroundColor:"#404040",padding:"6px",display:"block",fontSize:"12px",marginBottom:"6px",cursor:"pointer","*":{cursor:"pointer !important"},"> span":{},small:{fontSize:"9px"},"> b":{marginRight:"4px",cursor:"pointer"}}),Y2=Tt("div",{height:"66px",overflow:"hidden",position:"absolute",pointerEvents:"none",display:"flex",top:"0px",justifyContent:"center",width:"100%",minWidth:"310px",margin:"0 auto",canvas:{background:"transparent !important",position:"absolute !important"}}),K2=Tt("div",{textAlign:"center",fontWeight:700,fontSize:"12px",lineHeight:"12px",display:"flex",justifyContent:"center",alignItems:"center",verticalAlign:"middle",color:"#f1f1f1",padding:"7px",width:"100%",backgroundColor:"rgba(36, 36, 37, 0.8)",zIndex:1,position:"absolute",height:"100%"}),Ul=Tt("div",{pointerEvents:"auto",justifyContent:"center",cursor:"pointer",fontSize:"12px",backgroundColor:"rgb(41, 43, 45)",marginTop:"6px",width:"auto",margin:"0",color:"rgba(145, 145, 145, 1)",textAlign:"center",display:"inline-block",verticalAlign:"middle",padding:"4px 6px","&.__perf_toggle_tab_active":{backgroundColor:"rgb(31 31 31)"},svg:{width:"12px",height:"12px",float:"left"}}),J2=Tt("div",{pointerEvents:"auto",justifyContent:"center",cursor:"pointer",fontSize:"12px",float:"right",backgroundColor:"rgb(41, 43, 45)",width:"auto",margin:"0",color:"rgba(145, 145, 145, 1)",textAlign:"center",display:"inline-block",verticalAlign:"middle",padding:"4px 6px","&.__perf_toggle_tab_active":{backgroundColor:"rgb(31 31 31)"},svg:{width:"12px",height:"12px",float:"left"}}),q2=Tt("div",{padding:"4px 6px",fontSize:"12px",pointerEvents:"auto"}),$2=Tt("span",{fontWeight:"bold",letterSpacing:"0.08em",maxWidth:"145px",overflow:"hidden",textOverflow:"ellipsis",display:"inline-block",verticalAlign:"middle",fontSize:"11px",marginRight:"10px"}),em=Tt("div",{maxHeight:"50vh",overflowY:"auto",marginTop:"38px"}),tm=Tt("div",{marginTop:"0"}),cf=Tt("div",{display:"flex",position:"relative",fontWeight:"bold",color:"#fff",lineHeight:"14px",svg:{marginRight:"4px",display:"inline-block"}}),wd=Tt("ul",{display:"block",position:"relative",paddingLeft:"10px",margin:"6px 6px",img:{maxHeight:"60px",maxWidth:"100%",margin:"6px auto",display:"block"},"&:after":{content:"",position:"absolute",left:"0px",top:"0px",width:"1px",height:"100%",backgroundColor:"grey",transform:"translateX(-50%)",maxHeight:"50vh",overflowY:"auto"},li:{borderBottom:"1px solid #313131",display:"block",padding:"4px",margin:0,lineHeight:1,verticalAlign:"middle",height:"24px"},b:{fontWeight:"bold"},small:{textAlign:"revert",letterSpacing:"1px",fontSize:"10px",fontWeight:"500",marginLeft:"2px",color:"rgb(101, 197, 188)"}}),Cd=Tt("button",{fontWeight:"bold",letterSpacing:"0.02em",backgroundColor:"rgb(41, 43, 45)",color:"rgb(211, 211, 211)",overflow:"hidden",textOverflow:"ellipsis",cursor:"pointer",display:"block",verticalAlign:"middle",fontSize:"11px",padding:"5px",margin:"4px auto"}),nm=Tt("div",{display:"flex",justifyContent:"center",cursor:"pointer",fontSize:"12px",backgroundColor:"rgb(41, 43, 45)",marginTop:"6px",width:"auto",margin:"0 auto",color:"rgba(145, 145, 145, 1)",textAlign:"center",position:"absolute",right:0,bottom:" -20px",svg:{width:"12px",height:"12px",float:"left"}}),rm=Tt("li",{display:"flex !important",height:"auto !important",span:{height:"40px",display:"block",position:"relative"},b:{paddingLeft:"12px"}}),An=P.memo(({isPerf:o,color:n,colorBlind:s,customData:c,isMemory:i,isShadersInfo:r,metric:l,fontSize:f,offsetY:u=0,offsetX:p,round:h,hasInstance:g})=>{const{width:v,height:x}=Di(_=>_.viewport),w=P.useRef(null),k=P.useRef(null);return Eo(function(){const C=Ge.getState().gl,S=Ge.getState().log;if(!S||!w.current||(c&&(w.current.text=Ge.getState().customData),!l))return;let T=S[l];if(r){var A;T=(A=C.info.programs)===null||A===void 0?void 0:A.length}else l==="matriceCount"?T=nr.value:!o&&C.info.render&&(T=(i?C.info.memory:C.info.render)[l]);if(l==="fps"&&(w.current.color=Ge.getState().overclockingFps?Vt(s).overClock.toString():`rgb(${Vt(s).fps.toString()})`),w.current.text=(Math.round(T*Math.pow(10,h))/Math.pow(10,h)).toFixed(h),g){const R=C.info.instance;if(typeof R>"u"&&l!=="matriceCount")return;let b;l==="matriceCount"?b=Ri.value:b=R[l],b>0?(w.current.fontSize=f/1.15,k.current.fontSize=T>0?f/1.4:f,w.current.position.y=x/2-u-f/1.9,k.current.text=" ± "+(Math.round(b*Math.pow(10,h))/Math.pow(10,h)).toFixed(h)):(w.current.position.y=x/2-u-f,w.current.fontSize=f)}nr.value-=1,w.current.updateMatrix(),w.current.matrixWorld.copy(w.current.matrix)}),L.jsxs(P.Suspense,{fallback:null,children:[L.jsxs(qc,{textAlign:"justify",matrixAutoUpdate:!1,ref:w,fontSize:f,position:[-v/2+p+f,x/2-u-f,0],color:n,characters:"0123456789",onUpdate:_=>{_.updateMatrix(),nr.value-=1,_.matrixWorld.copy(_.matrix)},children:[L.jsx("meshBasicMaterial",{blending:ac}),"0"]}),g&&L.jsx(qc,{textAlign:"justify",matrixAutoUpdate:!1,ref:k,fontSize:8,position:[-v/2+p+f,x/2-u-f*1.15,0],color:"lightgrey",characters:"0123456789",onUpdate:_=>{_.updateMatrix(),nr.value-=1,_.matrixWorld.copy(_.matrix)},children:L.jsx("meshBasicMaterial",{blending:ac})})]})}),im=({colorBlind:o,customData:n,minimal:s,matrixUpdate:c})=>L.jsxs(L.Fragment,{children:[L.jsx(An,{colorBlind:o,color:`rgb(${Vt(o).fps.toString()})`,isPerf:!0,metric:"fps",fontSize:14,offsetX:140,round:0}),L.jsx(An,{color:`rgb(${Vt(o).cpu.toString()})`,isPerf:!0,metric:"cpu",fontSize:14,offsetX:72,round:3}),L.jsx(An,{color:`rgb(${Vt(o).gpu.toString()})`,isPerf:!0,metric:"gpu",fontSize:14,offsetX:10,round:3}),s?null:L.jsxs(L.Fragment,{children:[L.jsx(An,{metric:"calls",fontSize:14,offsetX:200,round:0,hasInstance:!0}),L.jsx(An,{metric:"triangles",fontSize:14,offsetX:260,round:0,hasInstance:!0}),L.jsx(An,{isMemory:!0,metric:"geometries",fontSize:14,offsetY:30,offsetX:0,round:0}),L.jsx(An,{isMemory:!0,metric:"textures",fontSize:14,offsetY:30,offsetX:80,round:0}),L.jsx(An,{isShadersInfo:!0,metric:"programs",fontSize:14,offsetY:30,offsetX:140,round:0}),L.jsx(An,{metric:"lines",fontSize:14,offsetY:30,offsetX:200,round:0,hasInstance:!0}),L.jsx(An,{metric:"points",fontSize:14,offsetY:30,offsetX:260,round:0,hasInstance:!0}),c&&L.jsx(An,{isPerf:!0,metric:"matriceCount",fontSize:14,offsetY:30,offsetX:320,round:0,hasInstance:!0})]}),n&&L.jsx(An,{color:`rgb(${Vt(o).custom.toString()})`,customData:n,fontSize:14,offsetY:0,offsetX:s?200:320,round:0})]}),om=({colorBlind:o,minimal:n,chart:s={length:30,hz:15}})=>{const c=P.useMemo(()=>({fps:new Float32Array(s.length*3),cpu:new Float32Array(s.length*3),gpu:new Float32Array(s.length*3)}),[s]),i=P.useRef(null),r=P.useRef(null),l=P.useRef(null),f=P.useRef(null),u=P.useMemo(()=>new ct(0,0,0),[]),p=(h,g=1,v,x)=>{let w=0;const{width:k,height:_}=x,C=Ge.getState().chart.data[h];if(!C||C.length===0)return;const S=n?2:6,T=n?12:50;let A=C.length;for(let R=0;Rw&&(w=C[b]*g),u.set(S+R/(A-1)*(k-S*2)-k/2,Math.min(100,C[b])*g/100*(_-S*2-T)-_/2,0),u.toArray(v.attributes.position.array,R*3))}v.attributes.position.needsUpdate=!0};return Eo(function({viewport:g}){p("fps",1,i.current,g),r.current&&r.current.color.set(Ge.getState().overclockingFps?Vt(o).overClock.toString():`rgb(${Vt(o).fps.toString()})`),p("gpu",5,l.current,g),p("cpu",5,f.current,g)}),L.jsxs(L.Fragment,{children:[L.jsxs("line",{children:[L.jsx("bufferGeometry",{ref:i,children:L.jsx("bufferAttribute",{attach:"attributes-position",count:s.length,array:c.fps,itemSize:3,usage:Da,needsUpdate:!0})}),L.jsx("lineBasicMaterial",{ref:r,color:`rgb(${Vt(o).fps.toString()})`,transparent:!0,opacity:.5})]}),L.jsxs("line",{children:[L.jsx("bufferGeometry",{ref:l,children:L.jsx("bufferAttribute",{attach:"attributes-position",count:s.length,array:c.gpu,itemSize:3,usage:Da,needsUpdate:!0})}),L.jsx("lineBasicMaterial",{color:`rgb(${Vt(o).gpu.toString()})`,transparent:!0,opacity:.5})]}),L.jsxs("line",{children:[L.jsx("bufferGeometry",{ref:f,children:L.jsx("bufferAttribute",{attach:"attributes-position",count:s.length,array:c.cpu,itemSize:3,usage:Da,needsUpdate:!0})}),L.jsx("lineBasicMaterial",{color:`rgb(${Vt(o).cpu.toString()})`,transparent:!0,opacity:.5})]})]})},sm=({colorBlind:o,chart:n,customData:s,matrixUpdate:c,showGraph:i=!0,antialias:r=!0,minimal:l})=>{const f=P.useRef(void 0),u=Ge(p=>p.paused);return L.jsxs(Y2,{style:{display:"flex",position:"absolute",height:`${l?37:i?100:60}px`,minWidth:`${l?"100px":s?"370px":"310px"}`},children:[L.jsx(_h,{ref:f,orthographic:!0,dpr:r?[1,2]:1,gl:{antialias:!0,alpha:!0,stencil:!1,depth:!1},onCreated:({scene:p})=>{p.traverse(h=>{h.matrixWorldAutoUpdate=!1,h.matrixAutoUpdate=!1})},flat:!0,style:{marginBottom:"-42px",position:"relative",pointerEvents:"none",background:"transparent !important",height:`${l?37:i?100:60}px`},children:u?null:L.jsxs(L.Fragment,{children:[L.jsx(am,{}),L.jsx(im,{customData:s,minimal:l,matrixUpdate:c}),i&&L.jsx(om,{colorBlind:o,minimal:l,chart:n})]})}),u&&L.jsxs(K2,{children:[L.jsx(P2,{})," PAUSED"]})]})},am=()=>(Eo(function({gl:n,scene:s,camera:c}){c.updateMatrix(),nr.value-=1,c.matrixWorld.copy(c.matrix),c.matrixWorldInverse.copy(c.matrixWorld).invert(),n.render(s,c),Ri.value=0,nr.value=0},1/0),null);function lm(o,n){if(o==null)return{};var s={},c=Object.keys(o),i,r;for(r=0;r=0)&&(s[i]=o[i]);return s}function um(o,n){if(o==null)return{};var s=lm(o,n),c,i;if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(o);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(o,c)&&(s[c]=o[c])}return s}const cm=["portal","className","children"],fm=P.forwardRef((o,n)=>{let{portal:s,className:c,children:i}=o,r=um(o,cm);const l=Di(h=>h.gl),f=P.useRef(null),u=P.useRef(null),p=(s==null?void 0:s.current)!=null?s.current:l.domElement.parentNode;return P.useLayoutEffect(()=>{if(!f.current||!p)return;const h=document.createElement("div"),g=u.current=pf(h);return p.appendChild(h),()=>{g.unmount(),u.current=null,p.removeChild(h)}},[p]),P.useLayoutEffect(()=>{const h=u.current;h&&h.render(L.jsx("div",{ref:n,className:c,children:i}))}),L.jsx("group",gl(gl({},r),{},{ref:f}))}),ff=(o,n)=>{const s=i=>{switch(i){case 1e3:return"RepeatWrapping";case 1001:return"ClampToEdgeWrapping";case 1002:return"MirroredRepeatWrapping";default:return"ClampToEdgeWrapping"}},c=i=>{switch(i){case 3e3:return"LinearEncoding";case 3001:return"sRGBEncoding";case 3002:return"RGBEEncoding";case 3003:return"LogLuvEncoding";case 3004:return"RGBM7Encoding";case 3005:return"RGBM16Encoding";case 3006:return"RGBDEncoding";case 3007:return"GammaEncoding";default:return"ClampToEdgeWrapping"}};return{name:o,url:n.image.currentSrc,encoding:c(n.encoding),wrapT:s(n.image.wrapT),flipY:n.flipY.toString()}},dm=({program:o,material:n,setTexNumber:s})=>{const c=Ge(l=>l.gl),[i,r]=P.useState(null);return P.useEffect(()=>{if(c){const l=o==null?void 0:o.getUniforms();let f=0;const u=new Map;l.seq.forEach(p=>{if(!p.id.includes("uTroika")&&p.id!=="isOrthographic"&&p.id!=="uvTransform"&&p.id!=="lightProbe"&&p.id!=="projectionMatrix"&&p.id!=="viewMatrix"&&p.id!=="normalMatrix"&&p.id!=="modelMatrix"&&p.id!=="modelViewMatrix"){let h=[],g={name:p.id};p.cache&&(p.cache.forEach(v=>{typeof v<"u"&&h.push(v.toString().substring(0,4))}),g.value=h.join(),n[p.id]&&n[p.id].image&&n[p.id].image&&(f++,g.value=ff(p.id,n[p.id])),g.value||(g.value="empty"),u.set(p.id,g))}}),n.uniforms&&Object.keys(n.uniforms).forEach(p=>{const h=n.uniforms[p];if(h.value){const{value:g}=h;let v={name:p};if(p.includes("uTroika"))return;if(g instanceof vl)f++,v.value=ff(p,g);else{let x=JSON.stringify(g);try{x=JSON.stringify(g)}catch{x=g.toString()}v.value=x}u.set(p,v)}}),f>0&&s(f),r(u)}},[]),L.jsx(wd,{children:i&&Array.from(i.values()).map(l=>L.jsx("span",{children:typeof l.value=="string"?L.jsx("li",{children:L.jsxs("span",{children:[l.name," :"," ",L.jsxs("b",{children:[l.value.substring(0,30),l.value.length>30?"...":""]})]})}):L.jsxs(L.Fragment,{children:[L.jsx("li",{children:L.jsxs("b",{children:[l.value.name,":"]})}),L.jsxs("div",{children:[Object.keys(l.value).map(f=>f!=="name"?L.jsx("div",{children:f==="url"?L.jsx("a",{href:l.value[f],target:"_blank",children:L.jsx("img",{src:l.value[f]})}):L.jsxs("li",{children:[f,": ",L.jsx("b",{children:l.value[f]})]})},f):null),L.jsxs(Cd,{onClick:()=>{var f;console.info(n[l.value.name]||(n==null||(f=n.uniforms[l.value.name])===null||f===void 0?void 0:f.value))},children:["console.info(",l.value.name,");"]})]})]})},l.name))})},hm=({el:o})=>{Ge(c=>c.log);const n=Ge(c=>c.gl),s=c=>{if(!n)return 0;const i=Math.round(c.drawCounts.total/(n.info.render.triangles+n.info.render.lines+n.info.render.points)*100*10)/10;return isFinite(i)&&i||0};return L.jsx(L.Fragment,{children:o.drawCounts.total>0&&L.jsxs(Ht,{style:{height:"auto",width:"auto",margin:"0 4px"},children:[o.drawCounts.type==="Triangle"?L.jsx(xd,{style:{top:"-1px"}}):L.jsx(gd,{style:{top:"-1px"}}),o.drawCounts.total,L.jsxs("small",{children:[o.drawCounts.type,"s"]}),n&&L.jsxs(cn,{style:{bottom:"-10px",width:"40px",fontWeight:"bold"},children:[o.visible&&!o.material.wireframe?s(o):0,"%"]})]})})},pm=({el:o})=>{const[n,s]=P.useState(o.visible),[c,i]=P.useState(o.expand),[r,l]=P.useState(0),{meshes:f,program:u,material:p}=o;return L.jsxs(q2,{children:[L.jsxs(Q2,{onClick:()=>{o.expand=!c,Object.keys(f).forEach(h=>{const g=f[h];g.material.wireframe=!1}),i(!c)},children:[L.jsx(Ul,{style:{marginRight:"6px"},children:c?L.jsx("span",{children:L.jsx(vd,{})}):L.jsx("span",{children:L.jsx(yd,{})})}),u&&L.jsxs("span",{children:[L.jsx($2,{children:u.name}),L.jsxs(Ht,{style:{height:"auto",width:"auto",margin:"0 4px"},children:[L.jsx(x2,{style:{top:"-1px"}}),Object.keys(f).length,L.jsx("small",{children:Object.keys(f).length>1?"users":"user"})]}),r>0&&L.jsxs(Ht,{style:{height:"auto",width:"auto",margin:"0 4px"},children:[r>1?L.jsx(ml,{style:{top:"-1px"}}):L.jsx(ml,{style:{top:"-1px"}}),r,L.jsx("small",{children:"tex"})]}),L.jsx(hm,{el:o}),p.glslVersion==="300 es"&&L.jsxs(Ht,{style:{height:"auto",width:"auto",margin:"0 4px"},children:[L.jsx(b2,{style:{top:"-1px"}}),"300",L.jsx("small",{children:"es"}),L.jsx(cn,{style:{bottom:"-10px",width:"40px"},children:"glsl"})]})]}),L.jsx(J2,{onPointerEnter:()=>{Object.keys(f).forEach(h=>{const g=f[h];g.material.wireframe=!0})},onPointerLeave:()=>{Object.keys(f).forEach(h=>{const g=f[h];g.material.wireframe=!1})},onClick:h=>{h.stopPropagation(),Object.keys(f).forEach(g=>{const v=f[g],x=!n;v.visible=x,o.visible=x,s(x)})},children:n?L.jsx(p2,{}):L.jsx(d2,{})})]}),L.jsxs("div",{style:{maxHeight:c?"9999px":0,overflow:"hidden"},children:[L.jsxs(cf,{children:[L.jsx(i2,{})," Uniforms:"]}),L.jsx(dm,{program:u,material:p,setTexNumber:l}),L.jsxs(cf,{children:[L.jsx(s2,{})," Geometries:"]}),L.jsx(wd,{children:f&&Object.keys(f).map(h=>f[h]&&f[h].geometry&&L.jsxs(rm,{children:[L.jsxs("span",{children:[f[h].geometry.type,": "]}),f[h].userData&&f[h].userData.drawCount&&L.jsxs("b",{children:[L.jsxs("div",{children:[f[h].userData.drawCount.count,L.jsxs("small",{children:[" ",f[h].userData.drawCount.type,"s"]})]}),L.jsx("br",{}),L.jsxs("div",{children:[Math.round(kp(f[h].geometry)/1024*1e3)/1e3,"Kb",L.jsx("small",{children:" memory used"})]})]})]},h))}),L.jsxs(Cd,{onClick:()=>{console.info(p)},children:["console.info(",p.type,")"]})]})]})},mm=()=>{Ge(n=>n.triggerProgramsUpdate);const o=Ge(n=>n.programs);return L.jsx(tm,{children:o&&Array.from(o.values()).map(n=>n&&n?L.jsx(pm,{el:n},n.material.uuid):null)})},Vt=o=>({overClock:"#ff6eff",fps:o?"100, 143, 255":"238,38,110",cpu:o?"254, 254, 98":"66,226,46",gpu:o?"254,254,254":"253,151,31",custom:o?"86,180,233":"40,255,255"}),gm=({showGraph:o,colorBlind:n})=>{const s=Ge(i=>i.overclockingFps),c=Ge(i=>i.fpsLimit);return L.jsxs(cn,{style:o?{color:s?Vt(n).overClock.toString():`rgb(${Vt(n).fps})`}:{},children:["FPS ",s?`${c}🚀`:""]})},vm=({showGraph:o,colorBlind:n,customData:s,minimal:c})=>{const i=Ge(r=>r.gl);return i?L.jsxs(X2,{children:[L.jsxs(Ht,{children:[L.jsx(w2,{}),L.jsx(cn,{style:o?{color:`rgb(${Vt(n).gpu.toString()})`}:{},children:"GPU"}),L.jsx(qa,{children:"ms"})]}),L.jsxs(Ht,{children:[L.jsx(U2,{}),L.jsx(cn,{style:o?{color:`rgb(${Vt(n).cpu.toString()})`}:{},children:"CPU"}),L.jsx(qa,{children:"ms"})]}),L.jsxs(Ht,{children:[L.jsx(v2,{}),L.jsx(gm,{showGraph:o,colorBlind:n})]}),!c&&i&&L.jsxs(Ht,{children:[L.jsx(A2,{}),L.jsx(cn,{children:i.info.render.calls===1?"call":"calls"})]}),!c&&i&&L.jsxs(Ht,{children:[L.jsx(xd,{}),L.jsx(cn,{children:"Triangles"})]}),s&&L.jsxs(Ht,{children:[L.jsx(n2,{}),L.jsx(cn,{style:o?{color:`rgb(${Vt(n).custom})`}:{},children:s.name}),s.info&&L.jsx(qa,{children:s.info})]})]}):null},ym=({showGraph:o,colorBlind:n,deepAnalyze:s,customData:c,matrixUpdate:i,openByDefault:r,minimal:l})=>L.jsxs(L.Fragment,{children:[L.jsx(vm,{showGraph:o,colorBlind:n,customData:c,minimal:l}),!l&&L.jsx(Sm,{matrixUpdate:i,openByDefault:r,deepAnalyze:s,showGraph:o})]}),xm=({matrixUpdate:o})=>L.jsxs("div",{children:[L.jsxs(Ht,{children:[L.jsx(_2,{}),L.jsx(cn,{children:"Geometries"})]}),L.jsxs(Ht,{children:[L.jsx(ml,{}),L.jsx(cn,{children:"Textures"})]}),L.jsxs(Ht,{children:[L.jsx(gd,{}),L.jsx(cn,{children:"shaders"})]}),L.jsxs(Ht,{children:[L.jsx(k2,{}),L.jsx(cn,{children:"Lines"})]}),L.jsxs(Ht,{children:[L.jsx(l2,{}),L.jsx(cn,{children:"Points"})]}),o&&L.jsxs(Ht,{children:[L.jsx(c2,{}),L.jsx(cn,{children:"Matrices"})]})]}),df=({tab:o,title:n,set:s})=>{const c=Ge(i=>i.tab);return L.jsx(Ul,{className:`${c===o?" __perf_toggle_tab_active":""}`,onClick:()=>{s(!0),Ge.setState({tab:o})},children:L.jsx("span",{children:n})})},Sm=({openByDefault:o,showGraph:n,deepAnalyze:s,matrixUpdate:c})=>{const[i,r]=er.useState(o);return L.jsxs("span",{children:[L.jsx(wm,{show:i,showGraph:n,matrixUpdate:c}),o&&!s?null:L.jsxs(nm,{className:"__perf_toggle",children:[s&&L.jsx(df,{tab:"programs",title:"Programs",set:r}),s&&L.jsx(df,{tab:"infos",title:"Infos",set:r}),L.jsx(Ul,{onClick:()=>{r(!i)},children:i?L.jsxs("span",{children:[L.jsx(vd,{})," Minimize"]}):L.jsxs("span",{children:[L.jsx(yd,{})," More"]})})]})]})},wm=({show:o,showGraph:n,matrixUpdate:s})=>{const c=Ge(i=>i.tab);return L.jsxs(L.Fragment,{children:[L.jsx(xm,{matrixUpdate:s}),o&&L.jsx("div",{children:L.jsx(em,{style:{marginTop:n?"38px":0},children:c==="programs"&&L.jsx(mm,{})})})]})},Cm=({showGraph:o,colorBlind:n,openByDefault:s,className:c,overClock:i,style:r,position:l,chart:f,deepAnalyze:u,antialias:p,customData:h,matrixUpdate:g,minimal:v})=>{const x=P.useRef(null);return L.jsxs(L.Fragment,{children:[L.jsx(Sd,{chart:f,overClock:i,deepAnalyze:u,matrixUpdate:g}),L.jsx(fm,{transform:!1,children:L.jsxs(Z2,{className:(c?" ".concat(c):" ")+` ${l||""} ${v?"minimal":""}`,style:gl({minHeight:v?"37px":o?"100px":"60px"},r),ref:x,children:[L.jsx(sm,{perfContainerRef:x,colorBlind:n,chart:f,showGraph:o,antialias:p,customData:h,minimal:v,matrixUpdate:g}),L.jsx(ym,{colorBlind:n,showGraph:o,deepAnalyze:u,openByDefault:s,customData:h,matrixUpdate:g,minimal:v})]})})]})},Im=({headless:o=!1,colorBlind:n=!1,overClock:s=!1,showGraph:c=!0,trackCPU:i=!1,deepAnalyze:r=!1,antialias:l=!0,openByDefault:f=!0,customData:u,matrixUpdate:p=!1,position:h="top-right",chart:g={length:30,hz:15},className:v,style:x,minimal:w=!1})=>o?L.jsx(Sd,{chart:g,deepAnalyze:r,matrixUpdate:p,overClock:s}):L.jsx(Cm,{colorBlind:n,showGraph:c,trackCPU:i,openByDefault:f,className:v,style:x,overClock:s,position:h,antialias:l,chart:g,deepAnalyze:r,minimal:w,customData:u,matrixUpdate:p}),$a=5e3,_m={show:"#FF723C",clip:"#FFFF00",episode:"#FF7F50",guest:"#E066FF",topic:"#F8F8FF",Topic:"#F8F8FF",Organization:"#FF7F50"},Dm=(o,n)=>{const s=_m[o]||"#F8F8FF";return n?s:parseInt(s.replace("#","0x"),16)},Om=(o,n)=>o.length>n?`${o.substring(0,n)}...`:o,Fm={font:"/fonts/Inter-Bold.woff",characters:"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!",fontSize:1,letterSpacing:-.05,lineHeight:1,"material-toneMapped":!1},jm=()=>{const o=P.useRef(null),n=P.useRef(null),s=P.useRef(null);return Eo(({camera:c,clock:i})=>{const r=i.getElapsedTime();if(o.current){const f=Math.sin(r/8)*1e3;o.current.position.setZ(f)}if(n.current&&n.current.position.lerp(c.position,.5),s.current){const l=r*.5,f=Math.sin(l)*$a,u=Math.cos(l)*$a;s.current.position.set(f,0,u)}}),L.jsxs(L.Fragment,{children:[L.jsx("hemisphereLight",{args:[fo.white,e1,t1]}),L.jsx("ambientLight",{color:fo.white,intensity:1}),L.jsx("pointLight",{ref:n,color:fo.white,distance:4e3,intensity:5,position:[0,0,0]}),L.jsx("directionalLight",{ref:s,color:fo.white,intensity:8,position:[$a,0,0]}),L.jsx("pointLight",{ref:o,color:fo.white,distance:4e3,intensity:8,position:[0,0,0]})]})},zm=o=>{const n=P.useRef();return P.useEffect(()=>{n.current=o}),n.current};export{_h as C,Pm as H,Lm as L,Am as P,qc as T,Eo as a,Bf as b,bm as c,Mp as d,z1 as e,Fm as f,Dm as g,zm as h,jm as i,Im as j,Rm as k,Mm as m,q0 as q,Om as t,Di as u}; + sans-serif`,backgroundColor:"rgba(36, 36, 36, .9)",color:"#fff",margin:0,minHeight:"100px",padding:"4px 0","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale",userSelect:"none","&.top-left":{right:"initial",left:0},"&.bottom-left":{right:"initial",top:"initial",bottom:0,left:0,".__perf_toggle":{top:"-20px",bottom:"initial"}},"&.bottom-right":{top:"initial",bottom:0,".__perf_toggle":{top:"-20px",bottom:"initial"}},"&.minimal":{backgroundColor:"rgba(36, 36, 36, .75)"},"*":{margin:"0",padding:"0",border:"0",fontSize:"100%",lineHeight:"1",verticalAlign:"baseline"}}),qa=Tt("small",{position:"absolute",right:0,fontSize:"10px"}),Ht=Tt("div",{display:"inline-flex",fontStyle:"normal",padding:0,lineHeight:"13px",fontSize:"14px",width:"62px",position:"relative",pointerEvents:"auto",cursor:"default",fontWeight:500,letterSpacing:"0px",textAlign:"left",height:"29px",whiteSpace:"nowrap",justifyContent:"space-evenly",fontVariantNumeric:"tabular-nums",small:{paddingLeft:"12px"},svg:{padding:0,color:"rgba(145, 145, 145, 0.3)",fontSize:"40px",position:"absolute",zIndex:1,maxHeight:"20px",left:" 50%",marginLeft:"-23px",top:"4px"}}),cn=Tt("span",{verticalAlign:"bottom",position:"absolute",bottom:"5px",color:"rgba(101, 197, 188, 1)",textAlign:"right",letterSpacing:"1px",fontSize:"8px",fontWeight:"500",width:"60px"}),X2=Tt("div",{display:"flex"}),Q2=Tt("div",{backgroundColor:"#404040",padding:"6px",display:"block",fontSize:"12px",marginBottom:"6px",cursor:"pointer","*":{cursor:"pointer !important"},"> span":{},small:{fontSize:"9px"},"> b":{marginRight:"4px",cursor:"pointer"}}),Y2=Tt("div",{height:"66px",overflow:"hidden",position:"absolute",pointerEvents:"none",display:"flex",top:"0px",justifyContent:"center",width:"100%",minWidth:"310px",margin:"0 auto",canvas:{background:"transparent !important",position:"absolute !important"}}),K2=Tt("div",{textAlign:"center",fontWeight:700,fontSize:"12px",lineHeight:"12px",display:"flex",justifyContent:"center",alignItems:"center",verticalAlign:"middle",color:"#f1f1f1",padding:"7px",width:"100%",backgroundColor:"rgba(36, 36, 37, 0.8)",zIndex:1,position:"absolute",height:"100%"}),Ul=Tt("div",{pointerEvents:"auto",justifyContent:"center",cursor:"pointer",fontSize:"12px",backgroundColor:"rgb(41, 43, 45)",marginTop:"6px",width:"auto",margin:"0",color:"rgba(145, 145, 145, 1)",textAlign:"center",display:"inline-block",verticalAlign:"middle",padding:"4px 6px","&.__perf_toggle_tab_active":{backgroundColor:"rgb(31 31 31)"},svg:{width:"12px",height:"12px",float:"left"}}),J2=Tt("div",{pointerEvents:"auto",justifyContent:"center",cursor:"pointer",fontSize:"12px",float:"right",backgroundColor:"rgb(41, 43, 45)",width:"auto",margin:"0",color:"rgba(145, 145, 145, 1)",textAlign:"center",display:"inline-block",verticalAlign:"middle",padding:"4px 6px","&.__perf_toggle_tab_active":{backgroundColor:"rgb(31 31 31)"},svg:{width:"12px",height:"12px",float:"left"}}),q2=Tt("div",{padding:"4px 6px",fontSize:"12px",pointerEvents:"auto"}),$2=Tt("span",{fontWeight:"bold",letterSpacing:"0.08em",maxWidth:"145px",overflow:"hidden",textOverflow:"ellipsis",display:"inline-block",verticalAlign:"middle",fontSize:"11px",marginRight:"10px"}),em=Tt("div",{maxHeight:"50vh",overflowY:"auto",marginTop:"38px"}),tm=Tt("div",{marginTop:"0"}),cf=Tt("div",{display:"flex",position:"relative",fontWeight:"bold",color:"#fff",lineHeight:"14px",svg:{marginRight:"4px",display:"inline-block"}}),wd=Tt("ul",{display:"block",position:"relative",paddingLeft:"10px",margin:"6px 6px",img:{maxHeight:"60px",maxWidth:"100%",margin:"6px auto",display:"block"},"&:after":{content:"",position:"absolute",left:"0px",top:"0px",width:"1px",height:"100%",backgroundColor:"grey",transform:"translateX(-50%)",maxHeight:"50vh",overflowY:"auto"},li:{borderBottom:"1px solid #313131",display:"block",padding:"4px",margin:0,lineHeight:1,verticalAlign:"middle",height:"24px"},b:{fontWeight:"bold"},small:{textAlign:"revert",letterSpacing:"1px",fontSize:"10px",fontWeight:"500",marginLeft:"2px",color:"rgb(101, 197, 188)"}}),Cd=Tt("button",{fontWeight:"bold",letterSpacing:"0.02em",backgroundColor:"rgb(41, 43, 45)",color:"rgb(211, 211, 211)",overflow:"hidden",textOverflow:"ellipsis",cursor:"pointer",display:"block",verticalAlign:"middle",fontSize:"11px",padding:"5px",margin:"4px auto"}),nm=Tt("div",{display:"flex",justifyContent:"center",cursor:"pointer",fontSize:"12px",backgroundColor:"rgb(41, 43, 45)",marginTop:"6px",width:"auto",margin:"0 auto",color:"rgba(145, 145, 145, 1)",textAlign:"center",position:"absolute",right:0,bottom:" -20px",svg:{width:"12px",height:"12px",float:"left"}}),rm=Tt("li",{display:"flex !important",height:"auto !important",span:{height:"40px",display:"block",position:"relative"},b:{paddingLeft:"12px"}}),An=P.memo(({isPerf:o,color:n,colorBlind:s,customData:c,isMemory:i,isShadersInfo:r,metric:l,fontSize:f,offsetY:u=0,offsetX:p,round:h,hasInstance:g})=>{const{width:v,height:x}=Ii(_=>_.viewport),w=P.useRef(null),k=P.useRef(null);return Eo(function(){const C=Ge.getState().gl,S=Ge.getState().log;if(!S||!w.current||(c&&(w.current.text=Ge.getState().customData),!l))return;let T=S[l];if(r){var A;T=(A=C.info.programs)===null||A===void 0?void 0:A.length}else l==="matriceCount"?T=nr.value:!o&&C.info.render&&(T=(i?C.info.memory:C.info.render)[l]);if(l==="fps"&&(w.current.color=Ge.getState().overclockingFps?Vt(s).overClock.toString():`rgb(${Vt(s).fps.toString()})`),w.current.text=(Math.round(T*Math.pow(10,h))/Math.pow(10,h)).toFixed(h),g){const R=C.info.instance;if(typeof R>"u"&&l!=="matriceCount")return;let b;l==="matriceCount"?b=Ri.value:b=R[l],b>0?(w.current.fontSize=f/1.15,k.current.fontSize=T>0?f/1.4:f,w.current.position.y=x/2-u-f/1.9,k.current.text=" ± "+(Math.round(b*Math.pow(10,h))/Math.pow(10,h)).toFixed(h)):(w.current.position.y=x/2-u-f,w.current.fontSize=f)}nr.value-=1,w.current.updateMatrix(),w.current.matrixWorld.copy(w.current.matrix)}),L.jsxs(P.Suspense,{fallback:null,children:[L.jsxs(qc,{textAlign:"justify",matrixAutoUpdate:!1,ref:w,fontSize:f,position:[-v/2+p+f,x/2-u-f,0],color:n,characters:"0123456789",onUpdate:_=>{_.updateMatrix(),nr.value-=1,_.matrixWorld.copy(_.matrix)},children:[L.jsx("meshBasicMaterial",{blending:ac}),"0"]}),g&&L.jsx(qc,{textAlign:"justify",matrixAutoUpdate:!1,ref:k,fontSize:8,position:[-v/2+p+f,x/2-u-f*1.15,0],color:"lightgrey",characters:"0123456789",onUpdate:_=>{_.updateMatrix(),nr.value-=1,_.matrixWorld.copy(_.matrix)},children:L.jsx("meshBasicMaterial",{blending:ac})})]})}),im=({colorBlind:o,customData:n,minimal:s,matrixUpdate:c})=>L.jsxs(L.Fragment,{children:[L.jsx(An,{colorBlind:o,color:`rgb(${Vt(o).fps.toString()})`,isPerf:!0,metric:"fps",fontSize:14,offsetX:140,round:0}),L.jsx(An,{color:`rgb(${Vt(o).cpu.toString()})`,isPerf:!0,metric:"cpu",fontSize:14,offsetX:72,round:3}),L.jsx(An,{color:`rgb(${Vt(o).gpu.toString()})`,isPerf:!0,metric:"gpu",fontSize:14,offsetX:10,round:3}),s?null:L.jsxs(L.Fragment,{children:[L.jsx(An,{metric:"calls",fontSize:14,offsetX:200,round:0,hasInstance:!0}),L.jsx(An,{metric:"triangles",fontSize:14,offsetX:260,round:0,hasInstance:!0}),L.jsx(An,{isMemory:!0,metric:"geometries",fontSize:14,offsetY:30,offsetX:0,round:0}),L.jsx(An,{isMemory:!0,metric:"textures",fontSize:14,offsetY:30,offsetX:80,round:0}),L.jsx(An,{isShadersInfo:!0,metric:"programs",fontSize:14,offsetY:30,offsetX:140,round:0}),L.jsx(An,{metric:"lines",fontSize:14,offsetY:30,offsetX:200,round:0,hasInstance:!0}),L.jsx(An,{metric:"points",fontSize:14,offsetY:30,offsetX:260,round:0,hasInstance:!0}),c&&L.jsx(An,{isPerf:!0,metric:"matriceCount",fontSize:14,offsetY:30,offsetX:320,round:0,hasInstance:!0})]}),n&&L.jsx(An,{color:`rgb(${Vt(o).custom.toString()})`,customData:n,fontSize:14,offsetY:0,offsetX:s?200:320,round:0})]}),om=({colorBlind:o,minimal:n,chart:s={length:30,hz:15}})=>{const c=P.useMemo(()=>({fps:new Float32Array(s.length*3),cpu:new Float32Array(s.length*3),gpu:new Float32Array(s.length*3)}),[s]),i=P.useRef(null),r=P.useRef(null),l=P.useRef(null),f=P.useRef(null),u=P.useMemo(()=>new ct(0,0,0),[]),p=(h,g=1,v,x)=>{let w=0;const{width:k,height:_}=x,C=Ge.getState().chart.data[h];if(!C||C.length===0)return;const S=n?2:6,T=n?12:50;let A=C.length;for(let R=0;Rw&&(w=C[b]*g),u.set(S+R/(A-1)*(k-S*2)-k/2,Math.min(100,C[b])*g/100*(_-S*2-T)-_/2,0),u.toArray(v.attributes.position.array,R*3))}v.attributes.position.needsUpdate=!0};return Eo(function({viewport:g}){p("fps",1,i.current,g),r.current&&r.current.color.set(Ge.getState().overclockingFps?Vt(o).overClock.toString():`rgb(${Vt(o).fps.toString()})`),p("gpu",5,l.current,g),p("cpu",5,f.current,g)}),L.jsxs(L.Fragment,{children:[L.jsxs("line",{children:[L.jsx("bufferGeometry",{ref:i,children:L.jsx("bufferAttribute",{attach:"attributes-position",count:s.length,array:c.fps,itemSize:3,usage:Ia,needsUpdate:!0})}),L.jsx("lineBasicMaterial",{ref:r,color:`rgb(${Vt(o).fps.toString()})`,transparent:!0,opacity:.5})]}),L.jsxs("line",{children:[L.jsx("bufferGeometry",{ref:l,children:L.jsx("bufferAttribute",{attach:"attributes-position",count:s.length,array:c.gpu,itemSize:3,usage:Ia,needsUpdate:!0})}),L.jsx("lineBasicMaterial",{color:`rgb(${Vt(o).gpu.toString()})`,transparent:!0,opacity:.5})]}),L.jsxs("line",{children:[L.jsx("bufferGeometry",{ref:f,children:L.jsx("bufferAttribute",{attach:"attributes-position",count:s.length,array:c.cpu,itemSize:3,usage:Ia,needsUpdate:!0})}),L.jsx("lineBasicMaterial",{color:`rgb(${Vt(o).cpu.toString()})`,transparent:!0,opacity:.5})]})]})},sm=({colorBlind:o,chart:n,customData:s,matrixUpdate:c,showGraph:i=!0,antialias:r=!0,minimal:l})=>{const f=P.useRef(void 0),u=Ge(p=>p.paused);return L.jsxs(Y2,{style:{display:"flex",position:"absolute",height:`${l?37:i?100:60}px`,minWidth:`${l?"100px":s?"370px":"310px"}`},children:[L.jsx(_h,{ref:f,orthographic:!0,dpr:r?[1,2]:1,gl:{antialias:!0,alpha:!0,stencil:!1,depth:!1},onCreated:({scene:p})=>{p.traverse(h=>{h.matrixWorldAutoUpdate=!1,h.matrixAutoUpdate=!1})},flat:!0,style:{marginBottom:"-42px",position:"relative",pointerEvents:"none",background:"transparent !important",height:`${l?37:i?100:60}px`},children:u?null:L.jsxs(L.Fragment,{children:[L.jsx(am,{}),L.jsx(im,{customData:s,minimal:l,matrixUpdate:c}),i&&L.jsx(om,{colorBlind:o,minimal:l,chart:n})]})}),u&&L.jsxs(K2,{children:[L.jsx(P2,{})," PAUSED"]})]})},am=()=>(Eo(function({gl:n,scene:s,camera:c}){c.updateMatrix(),nr.value-=1,c.matrixWorld.copy(c.matrix),c.matrixWorldInverse.copy(c.matrixWorld).invert(),n.render(s,c),Ri.value=0,nr.value=0},1/0),null);function lm(o,n){if(o==null)return{};var s={},c=Object.keys(o),i,r;for(r=0;r=0)&&(s[i]=o[i]);return s}function um(o,n){if(o==null)return{};var s=lm(o,n),c,i;if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(o);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(o,c)&&(s[c]=o[c])}return s}const cm=["portal","className","children"],fm=P.forwardRef((o,n)=>{let{portal:s,className:c,children:i}=o,r=um(o,cm);const l=Ii(h=>h.gl),f=P.useRef(null),u=P.useRef(null),p=(s==null?void 0:s.current)!=null?s.current:l.domElement.parentNode;return P.useLayoutEffect(()=>{if(!f.current||!p)return;const h=document.createElement("div"),g=u.current=pf(h);return p.appendChild(h),()=>{g.unmount(),u.current=null,p.removeChild(h)}},[p]),P.useLayoutEffect(()=>{const h=u.current;h&&h.render(L.jsx("div",{ref:n,className:c,children:i}))}),L.jsx("group",gl(gl({},r),{},{ref:f}))}),ff=(o,n)=>{const s=i=>{switch(i){case 1e3:return"RepeatWrapping";case 1001:return"ClampToEdgeWrapping";case 1002:return"MirroredRepeatWrapping";default:return"ClampToEdgeWrapping"}},c=i=>{switch(i){case 3e3:return"LinearEncoding";case 3001:return"sRGBEncoding";case 3002:return"RGBEEncoding";case 3003:return"LogLuvEncoding";case 3004:return"RGBM7Encoding";case 3005:return"RGBM16Encoding";case 3006:return"RGBDEncoding";case 3007:return"GammaEncoding";default:return"ClampToEdgeWrapping"}};return{name:o,url:n.image.currentSrc,encoding:c(n.encoding),wrapT:s(n.image.wrapT),flipY:n.flipY.toString()}},dm=({program:o,material:n,setTexNumber:s})=>{const c=Ge(l=>l.gl),[i,r]=P.useState(null);return P.useEffect(()=>{if(c){const l=o==null?void 0:o.getUniforms();let f=0;const u=new Map;l.seq.forEach(p=>{if(!p.id.includes("uTroika")&&p.id!=="isOrthographic"&&p.id!=="uvTransform"&&p.id!=="lightProbe"&&p.id!=="projectionMatrix"&&p.id!=="viewMatrix"&&p.id!=="normalMatrix"&&p.id!=="modelMatrix"&&p.id!=="modelViewMatrix"){let h=[],g={name:p.id};p.cache&&(p.cache.forEach(v=>{typeof v<"u"&&h.push(v.toString().substring(0,4))}),g.value=h.join(),n[p.id]&&n[p.id].image&&n[p.id].image&&(f++,g.value=ff(p.id,n[p.id])),g.value||(g.value="empty"),u.set(p.id,g))}}),n.uniforms&&Object.keys(n.uniforms).forEach(p=>{const h=n.uniforms[p];if(h.value){const{value:g}=h;let v={name:p};if(p.includes("uTroika"))return;if(g instanceof vl)f++,v.value=ff(p,g);else{let x=JSON.stringify(g);try{x=JSON.stringify(g)}catch{x=g.toString()}v.value=x}u.set(p,v)}}),f>0&&s(f),r(u)}},[]),L.jsx(wd,{children:i&&Array.from(i.values()).map(l=>L.jsx("span",{children:typeof l.value=="string"?L.jsx("li",{children:L.jsxs("span",{children:[l.name," :"," ",L.jsxs("b",{children:[l.value.substring(0,30),l.value.length>30?"...":""]})]})}):L.jsxs(L.Fragment,{children:[L.jsx("li",{children:L.jsxs("b",{children:[l.value.name,":"]})}),L.jsxs("div",{children:[Object.keys(l.value).map(f=>f!=="name"?L.jsx("div",{children:f==="url"?L.jsx("a",{href:l.value[f],target:"_blank",children:L.jsx("img",{src:l.value[f]})}):L.jsxs("li",{children:[f,": ",L.jsx("b",{children:l.value[f]})]})},f):null),L.jsxs(Cd,{onClick:()=>{var f;console.info(n[l.value.name]||(n==null||(f=n.uniforms[l.value.name])===null||f===void 0?void 0:f.value))},children:["console.info(",l.value.name,");"]})]})]})},l.name))})},hm=({el:o})=>{Ge(c=>c.log);const n=Ge(c=>c.gl),s=c=>{if(!n)return 0;const i=Math.round(c.drawCounts.total/(n.info.render.triangles+n.info.render.lines+n.info.render.points)*100*10)/10;return isFinite(i)&&i||0};return L.jsx(L.Fragment,{children:o.drawCounts.total>0&&L.jsxs(Ht,{style:{height:"auto",width:"auto",margin:"0 4px"},children:[o.drawCounts.type==="Triangle"?L.jsx(xd,{style:{top:"-1px"}}):L.jsx(gd,{style:{top:"-1px"}}),o.drawCounts.total,L.jsxs("small",{children:[o.drawCounts.type,"s"]}),n&&L.jsxs(cn,{style:{bottom:"-10px",width:"40px",fontWeight:"bold"},children:[o.visible&&!o.material.wireframe?s(o):0,"%"]})]})})},pm=({el:o})=>{const[n,s]=P.useState(o.visible),[c,i]=P.useState(o.expand),[r,l]=P.useState(0),{meshes:f,program:u,material:p}=o;return L.jsxs(q2,{children:[L.jsxs(Q2,{onClick:()=>{o.expand=!c,Object.keys(f).forEach(h=>{const g=f[h];g.material.wireframe=!1}),i(!c)},children:[L.jsx(Ul,{style:{marginRight:"6px"},children:c?L.jsx("span",{children:L.jsx(vd,{})}):L.jsx("span",{children:L.jsx(yd,{})})}),u&&L.jsxs("span",{children:[L.jsx($2,{children:u.name}),L.jsxs(Ht,{style:{height:"auto",width:"auto",margin:"0 4px"},children:[L.jsx(x2,{style:{top:"-1px"}}),Object.keys(f).length,L.jsx("small",{children:Object.keys(f).length>1?"users":"user"})]}),r>0&&L.jsxs(Ht,{style:{height:"auto",width:"auto",margin:"0 4px"},children:[r>1?L.jsx(ml,{style:{top:"-1px"}}):L.jsx(ml,{style:{top:"-1px"}}),r,L.jsx("small",{children:"tex"})]}),L.jsx(hm,{el:o}),p.glslVersion==="300 es"&&L.jsxs(Ht,{style:{height:"auto",width:"auto",margin:"0 4px"},children:[L.jsx(b2,{style:{top:"-1px"}}),"300",L.jsx("small",{children:"es"}),L.jsx(cn,{style:{bottom:"-10px",width:"40px"},children:"glsl"})]})]}),L.jsx(J2,{onPointerEnter:()=>{Object.keys(f).forEach(h=>{const g=f[h];g.material.wireframe=!0})},onPointerLeave:()=>{Object.keys(f).forEach(h=>{const g=f[h];g.material.wireframe=!1})},onClick:h=>{h.stopPropagation(),Object.keys(f).forEach(g=>{const v=f[g],x=!n;v.visible=x,o.visible=x,s(x)})},children:n?L.jsx(p2,{}):L.jsx(d2,{})})]}),L.jsxs("div",{style:{maxHeight:c?"9999px":0,overflow:"hidden"},children:[L.jsxs(cf,{children:[L.jsx(i2,{})," Uniforms:"]}),L.jsx(dm,{program:u,material:p,setTexNumber:l}),L.jsxs(cf,{children:[L.jsx(s2,{})," Geometries:"]}),L.jsx(wd,{children:f&&Object.keys(f).map(h=>f[h]&&f[h].geometry&&L.jsxs(rm,{children:[L.jsxs("span",{children:[f[h].geometry.type,": "]}),f[h].userData&&f[h].userData.drawCount&&L.jsxs("b",{children:[L.jsxs("div",{children:[f[h].userData.drawCount.count,L.jsxs("small",{children:[" ",f[h].userData.drawCount.type,"s"]})]}),L.jsx("br",{}),L.jsxs("div",{children:[Math.round(kp(f[h].geometry)/1024*1e3)/1e3,"Kb",L.jsx("small",{children:" memory used"})]})]})]},h))}),L.jsxs(Cd,{onClick:()=>{console.info(p)},children:["console.info(",p.type,")"]})]})]})},mm=()=>{Ge(n=>n.triggerProgramsUpdate);const o=Ge(n=>n.programs);return L.jsx(tm,{children:o&&Array.from(o.values()).map(n=>n&&n?L.jsx(pm,{el:n},n.material.uuid):null)})},Vt=o=>({overClock:"#ff6eff",fps:o?"100, 143, 255":"238,38,110",cpu:o?"254, 254, 98":"66,226,46",gpu:o?"254,254,254":"253,151,31",custom:o?"86,180,233":"40,255,255"}),gm=({showGraph:o,colorBlind:n})=>{const s=Ge(i=>i.overclockingFps),c=Ge(i=>i.fpsLimit);return L.jsxs(cn,{style:o?{color:s?Vt(n).overClock.toString():`rgb(${Vt(n).fps})`}:{},children:["FPS ",s?`${c}🚀`:""]})},vm=({showGraph:o,colorBlind:n,customData:s,minimal:c})=>{const i=Ge(r=>r.gl);return i?L.jsxs(X2,{children:[L.jsxs(Ht,{children:[L.jsx(w2,{}),L.jsx(cn,{style:o?{color:`rgb(${Vt(n).gpu.toString()})`}:{},children:"GPU"}),L.jsx(qa,{children:"ms"})]}),L.jsxs(Ht,{children:[L.jsx(U2,{}),L.jsx(cn,{style:o?{color:`rgb(${Vt(n).cpu.toString()})`}:{},children:"CPU"}),L.jsx(qa,{children:"ms"})]}),L.jsxs(Ht,{children:[L.jsx(v2,{}),L.jsx(gm,{showGraph:o,colorBlind:n})]}),!c&&i&&L.jsxs(Ht,{children:[L.jsx(A2,{}),L.jsx(cn,{children:i.info.render.calls===1?"call":"calls"})]}),!c&&i&&L.jsxs(Ht,{children:[L.jsx(xd,{}),L.jsx(cn,{children:"Triangles"})]}),s&&L.jsxs(Ht,{children:[L.jsx(n2,{}),L.jsx(cn,{style:o?{color:`rgb(${Vt(n).custom})`}:{},children:s.name}),s.info&&L.jsx(qa,{children:s.info})]})]}):null},ym=({showGraph:o,colorBlind:n,deepAnalyze:s,customData:c,matrixUpdate:i,openByDefault:r,minimal:l})=>L.jsxs(L.Fragment,{children:[L.jsx(vm,{showGraph:o,colorBlind:n,customData:c,minimal:l}),!l&&L.jsx(Sm,{matrixUpdate:i,openByDefault:r,deepAnalyze:s,showGraph:o})]}),xm=({matrixUpdate:o})=>L.jsxs("div",{children:[L.jsxs(Ht,{children:[L.jsx(_2,{}),L.jsx(cn,{children:"Geometries"})]}),L.jsxs(Ht,{children:[L.jsx(ml,{}),L.jsx(cn,{children:"Textures"})]}),L.jsxs(Ht,{children:[L.jsx(gd,{}),L.jsx(cn,{children:"shaders"})]}),L.jsxs(Ht,{children:[L.jsx(k2,{}),L.jsx(cn,{children:"Lines"})]}),L.jsxs(Ht,{children:[L.jsx(l2,{}),L.jsx(cn,{children:"Points"})]}),o&&L.jsxs(Ht,{children:[L.jsx(c2,{}),L.jsx(cn,{children:"Matrices"})]})]}),df=({tab:o,title:n,set:s})=>{const c=Ge(i=>i.tab);return L.jsx(Ul,{className:`${c===o?" __perf_toggle_tab_active":""}`,onClick:()=>{s(!0),Ge.setState({tab:o})},children:L.jsx("span",{children:n})})},Sm=({openByDefault:o,showGraph:n,deepAnalyze:s,matrixUpdate:c})=>{const[i,r]=er.useState(o);return L.jsxs("span",{children:[L.jsx(wm,{show:i,showGraph:n,matrixUpdate:c}),o&&!s?null:L.jsxs(nm,{className:"__perf_toggle",children:[s&&L.jsx(df,{tab:"programs",title:"Programs",set:r}),s&&L.jsx(df,{tab:"infos",title:"Infos",set:r}),L.jsx(Ul,{onClick:()=>{r(!i)},children:i?L.jsxs("span",{children:[L.jsx(vd,{})," Minimize"]}):L.jsxs("span",{children:[L.jsx(yd,{})," More"]})})]})]})},wm=({show:o,showGraph:n,matrixUpdate:s})=>{const c=Ge(i=>i.tab);return L.jsxs(L.Fragment,{children:[L.jsx(xm,{matrixUpdate:s}),o&&L.jsx("div",{children:L.jsx(em,{style:{marginTop:n?"38px":0},children:c==="programs"&&L.jsx(mm,{})})})]})},Cm=({showGraph:o,colorBlind:n,openByDefault:s,className:c,overClock:i,style:r,position:l,chart:f,deepAnalyze:u,antialias:p,customData:h,matrixUpdate:g,minimal:v})=>{const x=P.useRef(null);return L.jsxs(L.Fragment,{children:[L.jsx(Sd,{chart:f,overClock:i,deepAnalyze:u,matrixUpdate:g}),L.jsx(fm,{transform:!1,children:L.jsxs(Z2,{className:(c?" ".concat(c):" ")+` ${l||""} ${v?"minimal":""}`,style:gl({minHeight:v?"37px":o?"100px":"60px"},r),ref:x,children:[L.jsx(sm,{perfContainerRef:x,colorBlind:n,chart:f,showGraph:o,antialias:p,customData:h,minimal:v,matrixUpdate:g}),L.jsx(ym,{colorBlind:n,showGraph:o,deepAnalyze:u,openByDefault:s,customData:h,matrixUpdate:g,minimal:v})]})})]})},Dm=({headless:o=!1,colorBlind:n=!1,overClock:s=!1,showGraph:c=!0,trackCPU:i=!1,deepAnalyze:r=!1,antialias:l=!0,openByDefault:f=!0,customData:u,matrixUpdate:p=!1,position:h="top-right",chart:g={length:30,hz:15},className:v,style:x,minimal:w=!1})=>o?L.jsx(Sd,{chart:g,deepAnalyze:r,matrixUpdate:p,overClock:s}):L.jsx(Cm,{colorBlind:n,showGraph:c,trackCPU:i,openByDefault:f,className:v,style:x,overClock:s,position:h,antialias:l,chart:g,deepAnalyze:r,minimal:w,customData:u,matrixUpdate:p}),$a=5e3,_m={show:"#FF723C",clip:"#FFFF00",episode:"#FF7F50",guest:"#E066FF",topic:"#F8F8FF",Topic:"#F8F8FF",Organization:"#FF7F50"},Im=(o,n)=>{const s=_m[o]||"#F8F8FF";return n?s:parseInt(s.replace("#","0x"),16)},Fm=["#fff","#9747FF","#00887A","#0098A6","#0288D1","#33691E","#465A65","#512DA7","#5C6BC0","#5D4038","#662C00","#689F39","#6B1B00","#750000","#78909C","#7E57C2","#8C6E63","#AA47BC","#BF360C","#C2175B","#EC407A","#EF6C00","#F5511E","#FF9696","#FFC064","#FFCD29","#FFEA60"],Om={font:"/fonts/Inter-Bold.woff",characters:"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!",fontSize:1,letterSpacing:-.05,lineHeight:1,"material-toneMapped":!1},jm=(o,n)=>o.length>n?`${o.substring(0,n)}...`:o,zm=()=>{const o=P.useRef(null),n=P.useRef(null),s=P.useRef(null);return Eo(({camera:c,clock:i})=>{const r=i.getElapsedTime();if(o.current){const f=Math.sin(r/8)*1e3;o.current.position.setZ(f)}if(n.current&&n.current.position.lerp(c.position,.5),s.current){const l=r*.5,f=Math.sin(l)*$a,u=Math.cos(l)*$a;s.current.position.set(f,0,u)}}),L.jsxs(L.Fragment,{children:[L.jsx("hemisphereLight",{args:[fo.white,e1,t1]}),L.jsx("ambientLight",{color:fo.white,intensity:1}),L.jsx("pointLight",{ref:n,color:fo.white,distance:4e3,intensity:5,position:[0,0,0]}),L.jsx("directionalLight",{ref:s,color:fo.white,intensity:8,position:[$a,0,0]}),L.jsx("pointLight",{ref:o,color:fo.white,distance:4e3,intensity:8,position:[0,0,0]})]})},Bm=o=>{const n=P.useRef();return P.useEffect(()=>{n.current=o}),n.current};export{_h as C,Pm as H,Lm as L,Am as P,qc as T,Eo as a,Bf as b,bm as c,Fm as d,z1 as e,Om as f,Mp as g,Bm as h,zm as i,Dm as j,Im as k,Rm as l,Mm as m,q0 as q,jm as t,Ii as u}; diff --git a/build/assets/index-632074bb.js b/build/assets/index-71451929.js similarity index 97% rename from build/assets/index-632074bb.js rename to build/assets/index-71451929.js index c74573ae1..41f4a78ea 100644 --- a/build/assets/index-632074bb.js +++ b/build/assets/index-71451929.js @@ -1,4 +1,4 @@ -import{r as l,x as ue,c as fe,j as t,s as w,a as j,F as v,T as he,u as N,d as te,y as me,N as U,z as xe,A as ge,D as re,E as we}from"./index-3506c528.js";import{Universe as ye}from"./index-df640694.js";import{b as se,c as z,d as be,e as je,f as Ce,g as ve,h as _e,a as Ee}from"./index-ccbb14cf.js";import{S as Se,R as Te,s as J,M as Re}from"./index-44c74031.js";import{u as L,a as oe,m as Ie,T as Pe,f as ze,H as $e,C as ke}from"./index-b1ebd2b7.js";import{W as Me,L as K,H as Ae,D as Le,F as He,V as P,S as We}from"./three.module-10ab52a5.js";import{T as Fe}from"./index-d54cb162.js";import"./index-c106f68f.js";import"./TextareaAutosize-e8dfc0e6.js";import"./index-27744ada.js";import"./ClipLoader-273b2bbd.js";import"./Skeleton-c3abb4f1.js";import"./Stack-7521353f.js";import"./isPlainObject-9e89c04f.js";import"./Typography-7897fa03.js";import"./createSvgIcon-0fd508c0.js";import"./index-831eec8c.js";function Be(e,s,r){const{gl:o,size:i,viewport:d}=L(),f=typeof e=="number"?e:i.width*d.dpr,c=typeof s=="number"?s:i.height*d.dpr,n=(typeof e=="number"?r:e)||{},{samples:a=0,depth:x,...g}=n,p=l.useMemo(()=>{let u;return u=new Me(f,c,{minFilter:K,magFilter:K,encoding:o.outputEncoding,type:Ae,...g}),x&&(u.depthTexture=new Le(f,c,He)),u.samples=a,u},[]);return l.useLayoutEffect(()=>{p.setSize(f,c),a&&(p.samples=a)},[a,p,f,c]),l.useEffect(()=>()=>p.dispose(),[]),p}const De=e=>typeof e=="function",Ne=l.forwardRef(({envMap:e,resolution:s=256,frames:r=1/0,children:o,makeDefault:i,...d},f)=>{const c=L(({set:m})=>m),n=L(({camera:m})=>m),a=L(({size:m})=>m),x=l.useRef(null),g=l.useRef(null),p=Be(s);l.useLayoutEffect(()=>{d.manual||x.current.updateProjectionMatrix()},[a,d]),l.useLayoutEffect(()=>{x.current.updateProjectionMatrix()}),l.useLayoutEffect(()=>{if(i){const m=n;return c(()=>({camera:x.current})),()=>c(()=>({camera:m}))}},[x,i,c]);let u=0,h=null;const b=De(o);return oe(m=>{b&&(r===1/0||u({...Ge,setSelectedEpisodeId:s=>e({selectedEpisodeId:s}),setSelectedEpisodeLink:s=>e({selectedEpisodeLink:s}),setSelectedEpisode:s=>e({selectedEpisode:s})})),Ze=e=>t.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 30 28",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[t.jsx("path",{d:"M7.2998 2.55199C7.2998 1.51094 8.11675 0.666992 9.1245 0.666992H12.1299C13.1376 0.666992 13.9546 1.51094 13.9546 2.55199C13.9546 3.59305 13.1376 4.43699 12.1299 4.43699H9.1245C8.11675 4.43699 7.2998 3.59305 7.2998 2.55199Z",fill:"currentColor"}),t.jsx("path",{d:"M7.2998 25.449C7.2998 26.49 8.11675 27.334 9.1245 27.334H12.1299C13.1376 27.334 13.9546 26.49 13.9546 25.449C13.9546 24.4079 13.1376 23.564 12.1299 23.564H9.1245C8.11675 23.564 7.2998 24.4079 7.2998 25.449Z",fill:"currentColor"}),t.jsx("path",{d:"M2.79102 8.29613C2.79102 7.25508 3.60796 6.41113 4.61571 6.41113H12.1292C13.1369 6.41113 13.9539 7.25508 13.9539 8.29613C13.9539 9.33719 13.1369 10.1811 12.1292 10.1811H4.61571C3.60796 10.1811 2.79102 9.33719 2.79102 8.29613Z",fill:"currentColor"}),t.jsx("path",{d:"M2.79102 19.7039C2.79102 20.7449 3.60796 21.5889 4.61571 21.5889H12.1292C13.1369 21.5889 13.9539 20.7449 13.9539 19.7039C13.9539 18.6628 13.1369 17.8189 12.1292 17.8189H4.61571C3.60796 17.8189 2.79102 18.6628 2.79102 19.7039Z",fill:"currentColor"}),t.jsx("path",{d:"M0 14.094C0 13.0529 0.816945 12.209 1.8247 12.209H12.1289C13.1366 12.209 13.9536 13.0529 13.9536 14.094C13.9536 15.135 13.1366 15.979 12.1289 15.979H1.8247C0.816946 15.979 0 15.135 0 14.094Z",fill:"currentColor"}),t.jsx("path",{d:"M22.7002 25.448C22.7002 26.4891 21.8833 27.333 20.8755 27.333H17.8701C16.8624 27.333 16.0454 26.4891 16.0454 25.448C16.0454 24.407 16.8624 23.563 17.8701 23.563H20.8755C21.8832 23.563 22.7002 24.407 22.7002 25.448Z",fill:"currentColor"}),t.jsx("path",{d:"M22.7002 2.55199C22.7002 1.51094 21.8833 0.666992 20.8755 0.666992H17.8701C16.8624 0.666992 16.0454 1.51094 16.0454 2.55199C16.0454 3.59305 16.8624 4.43699 17.8701 4.43699H20.8755C21.8832 4.43699 22.7002 3.59305 22.7002 2.55199Z",fill:"currentColor"}),t.jsx("path",{d:"M27.209 19.7029C27.209 20.7439 26.392 21.5879 25.3843 21.5879H17.8708C16.8631 21.5879 16.0461 20.7439 16.0461 19.7029C16.0461 18.6618 16.8631 17.8179 17.8708 17.8179H25.3843C26.392 17.8179 27.209 18.6618 27.209 19.7029Z",fill:"currentColor"}),t.jsx("path",{d:"M27.209 8.29613C27.209 7.25508 26.392 6.41113 25.3843 6.41113H17.8708C16.8631 6.41113 16.0461 7.25508 16.0461 8.29613C16.0461 9.33719 16.8631 10.1811 17.8708 10.1811H25.3843C26.392 10.1811 27.209 9.33719 27.209 8.29613Z",fill:"currentColor"}),t.jsx("path",{d:"M30 14.093C30 13.052 29.1831 12.208 28.1753 12.208H17.8711C16.8634 12.208 16.0464 13.052 16.0464 14.093C16.0464 15.1341 16.8634 15.978 17.8711 15.978H28.1753C29.1831 15.978 30 15.1341 30 14.093Z",fill:"currentColor"})]}),Oe=()=>t.jsxs(Ve,{children:[t.jsx(Ye,{children:t.jsx(qe,{children:t.jsx(Ze,{})})}),t.jsx(Ue,{children:"Graph Mindset"})]}),Ve=w(v).attrs({align:"center",direction:"row",grow:1,justify:"flex-start"})` +import{r as l,x as ue,c as fe,j as t,s as w,a as j,F as v,T as he,u as N,d as te,y as me,N as U,z as xe,A as ge,D as re,E as we}from"./index-6541aa03.js";import{Universe as ye}from"./index-8001dd73.js";import{b as se,c as z,d as be,e as je,f as Ce,g as ve,h as _e,a as Ee}from"./index-ad617d4b.js";import{S as Se,R as Te,s as J,M as Re}from"./index-0c54fe39.js";import{u as L,a as oe,m as Ie,T as Pe,f as ze,H as $e,C as ke}from"./index-6b78adda.js";import{W as Me,L as K,H as Ae,D as Le,F as He,V as P,S as We}from"./three.module-10ab52a5.js";import{T as Fe}from"./index-8f946e20.js";import"./index-049c9db0.js";import"./TextareaAutosize-387bd327.js";import"./index-070f6d98.js";import"./ClipLoader-708ab7a4.js";import"./Skeleton-851daffa.js";import"./Stack-bcf44d60.js";import"./isPlainObject-5d028b0a.js";import"./Typography-0c02c7d4.js";import"./createSvgIcon-0b5f6bf4.js";import"./index-badf8d31.js";function Be(e,s,r){const{gl:o,size:i,viewport:d}=L(),f=typeof e=="number"?e:i.width*d.dpr,c=typeof s=="number"?s:i.height*d.dpr,n=(typeof e=="number"?r:e)||{},{samples:a=0,depth:x,...g}=n,p=l.useMemo(()=>{let u;return u=new Me(f,c,{minFilter:K,magFilter:K,encoding:o.outputEncoding,type:Ae,...g}),x&&(u.depthTexture=new Le(f,c,He)),u.samples=a,u},[]);return l.useLayoutEffect(()=>{p.setSize(f,c),a&&(p.samples=a)},[a,p,f,c]),l.useEffect(()=>()=>p.dispose(),[]),p}const De=e=>typeof e=="function",Ne=l.forwardRef(({envMap:e,resolution:s=256,frames:r=1/0,children:o,makeDefault:i,...d},f)=>{const c=L(({set:m})=>m),n=L(({camera:m})=>m),a=L(({size:m})=>m),x=l.useRef(null),g=l.useRef(null),p=Be(s);l.useLayoutEffect(()=>{d.manual||x.current.updateProjectionMatrix()},[a,d]),l.useLayoutEffect(()=>{x.current.updateProjectionMatrix()}),l.useLayoutEffect(()=>{if(i){const m=n;return c(()=>({camera:x.current})),()=>c(()=>({camera:m}))}},[x,i,c]);let u=0,h=null;const b=De(o);return oe(m=>{b&&(r===1/0||u({...Ge,setSelectedEpisodeId:s=>e({selectedEpisodeId:s}),setSelectedEpisodeLink:s=>e({selectedEpisodeLink:s}),setSelectedEpisode:s=>e({selectedEpisode:s})})),Ze=e=>t.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 30 28",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[t.jsx("path",{d:"M7.2998 2.55199C7.2998 1.51094 8.11675 0.666992 9.1245 0.666992H12.1299C13.1376 0.666992 13.9546 1.51094 13.9546 2.55199C13.9546 3.59305 13.1376 4.43699 12.1299 4.43699H9.1245C8.11675 4.43699 7.2998 3.59305 7.2998 2.55199Z",fill:"currentColor"}),t.jsx("path",{d:"M7.2998 25.449C7.2998 26.49 8.11675 27.334 9.1245 27.334H12.1299C13.1376 27.334 13.9546 26.49 13.9546 25.449C13.9546 24.4079 13.1376 23.564 12.1299 23.564H9.1245C8.11675 23.564 7.2998 24.4079 7.2998 25.449Z",fill:"currentColor"}),t.jsx("path",{d:"M2.79102 8.29613C2.79102 7.25508 3.60796 6.41113 4.61571 6.41113H12.1292C13.1369 6.41113 13.9539 7.25508 13.9539 8.29613C13.9539 9.33719 13.1369 10.1811 12.1292 10.1811H4.61571C3.60796 10.1811 2.79102 9.33719 2.79102 8.29613Z",fill:"currentColor"}),t.jsx("path",{d:"M2.79102 19.7039C2.79102 20.7449 3.60796 21.5889 4.61571 21.5889H12.1292C13.1369 21.5889 13.9539 20.7449 13.9539 19.7039C13.9539 18.6628 13.1369 17.8189 12.1292 17.8189H4.61571C3.60796 17.8189 2.79102 18.6628 2.79102 19.7039Z",fill:"currentColor"}),t.jsx("path",{d:"M0 14.094C0 13.0529 0.816945 12.209 1.8247 12.209H12.1289C13.1366 12.209 13.9536 13.0529 13.9536 14.094C13.9536 15.135 13.1366 15.979 12.1289 15.979H1.8247C0.816946 15.979 0 15.135 0 14.094Z",fill:"currentColor"}),t.jsx("path",{d:"M22.7002 25.448C22.7002 26.4891 21.8833 27.333 20.8755 27.333H17.8701C16.8624 27.333 16.0454 26.4891 16.0454 25.448C16.0454 24.407 16.8624 23.563 17.8701 23.563H20.8755C21.8832 23.563 22.7002 24.407 22.7002 25.448Z",fill:"currentColor"}),t.jsx("path",{d:"M22.7002 2.55199C22.7002 1.51094 21.8833 0.666992 20.8755 0.666992H17.8701C16.8624 0.666992 16.0454 1.51094 16.0454 2.55199C16.0454 3.59305 16.8624 4.43699 17.8701 4.43699H20.8755C21.8832 4.43699 22.7002 3.59305 22.7002 2.55199Z",fill:"currentColor"}),t.jsx("path",{d:"M27.209 19.7029C27.209 20.7439 26.392 21.5879 25.3843 21.5879H17.8708C16.8631 21.5879 16.0461 20.7439 16.0461 19.7029C16.0461 18.6618 16.8631 17.8179 17.8708 17.8179H25.3843C26.392 17.8179 27.209 18.6618 27.209 19.7029Z",fill:"currentColor"}),t.jsx("path",{d:"M27.209 8.29613C27.209 7.25508 26.392 6.41113 25.3843 6.41113H17.8708C16.8631 6.41113 16.0461 7.25508 16.0461 8.29613C16.0461 9.33719 16.8631 10.1811 17.8708 10.1811H25.3843C26.392 10.1811 27.209 9.33719 27.209 8.29613Z",fill:"currentColor"}),t.jsx("path",{d:"M30 14.093C30 13.052 29.1831 12.208 28.1753 12.208H17.8711C16.8634 12.208 16.0464 13.052 16.0464 14.093C16.0464 15.1341 16.8634 15.978 17.8711 15.978H28.1753C29.1831 15.978 30 15.1341 30 14.093Z",fill:"currentColor"})]}),Oe=()=>t.jsxs(Ve,{children:[t.jsx(Ye,{children:t.jsx(qe,{children:t.jsx(Ze,{})})}),t.jsx(Ue,{children:"Graph Mindset"})]}),Ve=w(v).attrs({align:"center",direction:"row",grow:1,justify:"flex-start"})` height: 64px; box-sizing: border-box; padding: 20px 23px; diff --git a/build/assets/index-8001dd73.js b/build/assets/index-8001dd73.js new file mode 100644 index 000000000..8065f92d1 --- /dev/null +++ b/build/assets/index-8001dd73.js @@ -0,0 +1,586 @@ +import{r as b,a1 as cu,x as Oe,j as V,R as ep,a8 as k_,J as M,a9 as T_,c as tp,s as nt,a as Me,F as On,B as np,u as Os,b as sp,k as go,n as E_,d as _o,aa as rp,l as C_,e as $o,D as ip,ab as S_,ac as O_,i as A_,A as D_,ad as R_,ae as Ah}from"./index-6541aa03.js";import{u as We,a as An,m as lu,b as nc,e as op,q as P_,c as M_,L as ap,T as uu,f as hu,P as N_,t as cp,d as I_,H as sc,g as lp,h as $_,i as up,C as Dh,j as Rh,k as F_}from"./index-6b78adda.js";import{P as ke}from"./index-049c9db0.js";import{l as Ph,H as L_,E as j_,m as As,h as ht,I as hp,n as V_,o as z_,p as Mh,D as U_,q as B_,R as W_,g as q_,r as H_,N as dl,P as Y_,s as G_,t as X_,v as Z_,w as K_,x as Q_,y as J_,z as ey,O as ty}from"./index-ad617d4b.js";import{T as ny}from"./TextareaAutosize-387bd327.js";import{a as Fo,b as sy,V as _e,c as ry,d as iy,M as hr,e as we,f as oy,B as ay,S as dp,P as Ic,g as cy,h as oa,i as Ms,T as rc,j as fa,k as ly,l as Nh,m as yo,Q as uy,G as hy,C as du,n as dy,o as fp,p as fy,q as py,r as my,E as gy,s as _y,t as yy,u as ic,v as Ih,w as pp,x as mp}from"./three.module-10ab52a5.js";import{u as vy}from"./index-070f6d98.js";import{C as by}from"./ClipLoader-708ab7a4.js";const xy=["top","right","bottom","left"],_s=Math.min,Ft=Math.max,pa=Math.round,Lo=Math.floor,ys=s=>({x:s,y:s}),wy={left:"right",right:"left",bottom:"top",top:"bottom"},ky={start:"end",end:"start"};function fl(s,e,t){return Ft(s,_s(e,t))}function qn(s,e){return typeof s=="function"?s(e):s}function Hn(s){return s.split("-")[0]}function Kr(s){return s.split("-")[1]}function fu(s){return s==="x"?"y":"x"}function pu(s){return s==="y"?"height":"width"}function Qr(s){return["top","bottom"].includes(Hn(s))?"y":"x"}function mu(s){return fu(Qr(s))}function Ty(s,e,t){t===void 0&&(t=!1);const n=Kr(s),r=mu(s),i=pu(r);let o=r==="x"?n===(t?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[i]>e.floating[i]&&(o=ma(o)),[o,ma(o)]}function Ey(s){const e=ma(s);return[pl(s),e,pl(e)]}function pl(s){return s.replace(/start|end/g,e=>ky[e])}function Cy(s,e,t){const n=["left","right"],r=["right","left"],i=["top","bottom"],o=["bottom","top"];switch(s){case"top":case"bottom":return t?e?r:n:e?n:r;case"left":case"right":return e?i:o;default:return[]}}function Sy(s,e,t,n){const r=Kr(s);let i=Cy(Hn(s),t==="start",n);return r&&(i=i.map(o=>o+"-"+r),e&&(i=i.concat(i.map(pl)))),i}function ma(s){return s.replace(/left|right|bottom|top/g,e=>wy[e])}function Oy(s){return{top:0,right:0,bottom:0,left:0,...s}}function gp(s){return typeof s!="number"?Oy(s):{top:s,right:s,bottom:s,left:s}}function ga(s){return{...s,top:s.y,left:s.x,right:s.x+s.width,bottom:s.y+s.height}}function $h(s,e,t){let{reference:n,floating:r}=s;const i=Qr(e),o=mu(e),a=pu(o),c=Hn(e),l=i==="y",u=n.x+n.width/2-r.width/2,h=n.y+n.height/2-r.height/2,d=n[a]/2-r[a]/2;let f;switch(c){case"top":f={x:u,y:n.y-r.height};break;case"bottom":f={x:u,y:n.y+n.height};break;case"right":f={x:n.x+n.width,y:h};break;case"left":f={x:n.x-r.width,y:h};break;default:f={x:n.x,y:n.y}}switch(Kr(e)){case"start":f[o]-=d*(t&&l?-1:1);break;case"end":f[o]+=d*(t&&l?-1:1);break}return f}const Ay=async(s,e,t)=>{const{placement:n="bottom",strategy:r="absolute",middleware:i=[],platform:o}=t,a=i.filter(Boolean),c=await(o.isRTL==null?void 0:o.isRTL(e));let l=await o.getElementRects({reference:s,floating:e,strategy:r}),{x:u,y:h}=$h(l,n,c),d=n,f={},m=0;for(let p=0;p({name:"arrow",options:s,async fn(e){const{x:t,y:n,placement:r,rects:i,platform:o,elements:a,middlewareData:c}=e,{element:l,padding:u=0}=qn(s,e)||{};if(l==null)return{};const h=gp(u),d={x:t,y:n},f=mu(r),m=pu(f),p=await o.getDimensions(l),g=f==="y",_=g?"top":"left",w=g?"bottom":"right",k=g?"clientHeight":"clientWidth",v=i.reference[m]+i.reference[f]-d[f]-i.floating[m],y=d[f]-i.reference[f],T=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l));let E=T?T[k]:0;(!E||!await(o.isElement==null?void 0:o.isElement(T)))&&(E=a.floating[k]||i.floating[m]);const x=v/2-y/2,C=E/2-p[m]/2-1,S=_s(h[_],C),D=_s(h[w],C),O=S,L=E-p[m]-D,j=E/2-p[m]/2+x,W=fl(O,j,L),B=!c.arrow&&Kr(r)!=null&&j!=W&&i.reference[m]/2-(jO<=0)){var C,S;const O=(((C=i.flip)==null?void 0:C.index)||0)+1,L=y[O];if(L)return{data:{index:O,overflows:x},reset:{placement:L}};let j=(S=x.filter(W=>W.overflows[0]<=0).sort((W,B)=>W.overflows[1]-B.overflows[1])[0])==null?void 0:S.placement;if(!j)switch(f){case"bestFit":{var D;const W=(D=x.map(B=>[B.placement,B.overflows.filter(U=>U>0).reduce((U,z)=>U+z,0)]).sort((B,U)=>B[1]-U[1])[0])==null?void 0:D[0];W&&(j=W);break}case"initialPlacement":j=a;break}if(r!==j)return{reset:{placement:j}}}return{}}}};function Lh(s,e){return{top:s.top-e.height,right:s.right-e.width,bottom:s.bottom-e.height,left:s.left-e.width}}function jh(s){return xy.some(e=>s[e]>=0)}const Ry=function(s){return s===void 0&&(s={}),{name:"hide",options:s,async fn(e){const{rects:t}=e,{strategy:n="referenceHidden",...r}=qn(s,e);switch(n){case"referenceHidden":{const i=await Li(e,{...r,elementContext:"reference"}),o=Lh(i,t.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:jh(o)}}}case"escaped":{const i=await Li(e,{...r,altBoundary:!0}),o=Lh(i,t.floating);return{data:{escapedOffsets:o,escaped:jh(o)}}}default:return{}}}}};async function Py(s,e){const{placement:t,platform:n,elements:r}=s,i=await(n.isRTL==null?void 0:n.isRTL(r.floating)),o=Hn(t),a=Kr(t),c=Qr(t)==="y",l=["left","top"].includes(o)?-1:1,u=i&&c?-1:1,h=qn(e,s);let{mainAxis:d,crossAxis:f,alignmentAxis:m}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...h};return a&&typeof m=="number"&&(f=a==="end"?m*-1:m),c?{x:f*u,y:d*l}:{x:d*l,y:f*u}}const My=function(s){return s===void 0&&(s=0),{name:"offset",options:s,async fn(e){var t,n;const{x:r,y:i,placement:o,middlewareData:a}=e,c=await Py(e,s);return o===((t=a.offset)==null?void 0:t.placement)&&(n=a.arrow)!=null&&n.alignmentOffset?{}:{x:r+c.x,y:i+c.y,data:{...c,placement:o}}}}},Ny=function(s){return s===void 0&&(s={}),{name:"shift",options:s,async fn(e){const{x:t,y:n,placement:r}=e,{mainAxis:i=!0,crossAxis:o=!1,limiter:a={fn:g=>{let{x:_,y:w}=g;return{x:_,y:w}}},...c}=qn(s,e),l={x:t,y:n},u=await Li(e,c),h=Qr(Hn(r)),d=fu(h);let f=l[d],m=l[h];if(i){const g=d==="y"?"top":"left",_=d==="y"?"bottom":"right",w=f+u[g],k=f-u[_];f=fl(w,f,k)}if(o){const g=h==="y"?"top":"left",_=h==="y"?"bottom":"right",w=m+u[g],k=m-u[_];m=fl(w,m,k)}const p=a.fn({...e,[d]:f,[h]:m});return{...p,data:{x:p.x-t,y:p.y-n}}}}},Iy=function(s){return s===void 0&&(s={}),{options:s,fn(e){const{x:t,y:n,placement:r,rects:i,middlewareData:o}=e,{offset:a=0,mainAxis:c=!0,crossAxis:l=!0}=qn(s,e),u={x:t,y:n},h=Qr(r),d=fu(h);let f=u[d],m=u[h];const p=qn(a,e),g=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(c){const k=d==="y"?"height":"width",v=i.reference[d]-i.floating[k]+g.mainAxis,y=i.reference[d]+i.reference[k]-g.mainAxis;fy&&(f=y)}if(l){var _,w;const k=d==="y"?"width":"height",v=["top","left"].includes(Hn(r)),y=i.reference[h]-i.floating[k]+(v&&((_=o.offset)==null?void 0:_[h])||0)+(v?0:g.crossAxis),T=i.reference[h]+i.reference[k]+(v?0:((w=o.offset)==null?void 0:w[h])||0)-(v?g.crossAxis:0);mT&&(m=T)}return{[d]:f,[h]:m}}}},$y=function(s){return s===void 0&&(s={}),{name:"size",options:s,async fn(e){const{placement:t,rects:n,platform:r,elements:i}=e,{apply:o=()=>{},...a}=qn(s,e),c=await Li(e,a),l=Hn(t),u=Kr(t),h=Qr(t)==="y",{width:d,height:f}=n.floating;let m,p;l==="top"||l==="bottom"?(m=l,p=u===(await(r.isRTL==null?void 0:r.isRTL(i.floating))?"start":"end")?"left":"right"):(p=l,m=u==="end"?"top":"bottom");const g=f-c[m],_=d-c[p],w=!e.middlewareData.shift;let k=g,v=_;if(h){const T=d-c.left-c.right;v=u||w?_s(_,T):T}else{const T=f-c.top-c.bottom;k=u||w?_s(g,T):T}if(w&&!u){const T=Ft(c.left,0),E=Ft(c.right,0),x=Ft(c.top,0),C=Ft(c.bottom,0);h?v=d-2*(T!==0||E!==0?T+E:Ft(c.left,c.right)):k=f-2*(x!==0||C!==0?x+C:Ft(c.top,c.bottom))}await o({...e,availableWidth:v,availableHeight:k});const y=await r.getDimensions(i.floating);return d!==y.width||f!==y.height?{reset:{rects:!0}}:{}}}};function vs(s){return _p(s)?(s.nodeName||"").toLowerCase():"#document"}function Vt(s){var e;return(s==null||(e=s.ownerDocument)==null?void 0:e.defaultView)||window}function Jn(s){var e;return(e=(_p(s)?s.ownerDocument:s.document)||window.document)==null?void 0:e.documentElement}function _p(s){return s instanceof Node||s instanceof Vt(s).Node}function Yn(s){return s instanceof Element||s instanceof Vt(s).Element}function Tn(s){return s instanceof HTMLElement||s instanceof Vt(s).HTMLElement}function Vh(s){return typeof ShadowRoot>"u"?!1:s instanceof ShadowRoot||s instanceof Vt(s).ShadowRoot}function vo(s){const{overflow:e,overflowX:t,overflowY:n,display:r}=Kt(s);return/auto|scroll|overlay|hidden|clip/.test(e+n+t)&&!["inline","contents"].includes(r)}function Fy(s){return["table","td","th"].includes(vs(s))}function gu(s){const e=_u(),t=Kt(s);return t.transform!=="none"||t.perspective!=="none"||(t.containerType?t.containerType!=="normal":!1)||!e&&(t.backdropFilter?t.backdropFilter!=="none":!1)||!e&&(t.filter?t.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(t.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(t.contain||"").includes(n))}function Ly(s){let e=$r(s);for(;Tn(e)&&!oc(e);){if(gu(e))return e;e=$r(e)}return null}function _u(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function oc(s){return["html","body","#document"].includes(vs(s))}function Kt(s){return Vt(s).getComputedStyle(s)}function ac(s){return Yn(s)?{scrollLeft:s.scrollLeft,scrollTop:s.scrollTop}:{scrollLeft:s.pageXOffset,scrollTop:s.pageYOffset}}function $r(s){if(vs(s)==="html")return s;const e=s.assignedSlot||s.parentNode||Vh(s)&&s.host||Jn(s);return Vh(e)?e.host:e}function yp(s){const e=$r(s);return oc(e)?s.ownerDocument?s.ownerDocument.body:s.body:Tn(e)&&vo(e)?e:yp(e)}function ji(s,e,t){var n;e===void 0&&(e=[]),t===void 0&&(t=!0);const r=yp(s),i=r===((n=s.ownerDocument)==null?void 0:n.body),o=Vt(r);return i?e.concat(o,o.visualViewport||[],vo(r)?r:[],o.frameElement&&t?ji(o.frameElement):[]):e.concat(r,ji(r,[],t))}function vp(s){const e=Kt(s);let t=parseFloat(e.width)||0,n=parseFloat(e.height)||0;const r=Tn(s),i=r?s.offsetWidth:t,o=r?s.offsetHeight:n,a=pa(t)!==i||pa(n)!==o;return a&&(t=i,n=o),{width:t,height:n,$:a}}function yu(s){return Yn(s)?s:s.contextElement}function Or(s){const e=yu(s);if(!Tn(e))return ys(1);const t=e.getBoundingClientRect(),{width:n,height:r,$:i}=vp(e);let o=(i?pa(t.width):t.width)/n,a=(i?pa(t.height):t.height)/r;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}const jy=ys(0);function bp(s){const e=Vt(s);return!_u()||!e.visualViewport?jy:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Vy(s,e,t){return e===void 0&&(e=!1),!t||e&&t!==Vt(s)?!1:e}function Zs(s,e,t,n){e===void 0&&(e=!1),t===void 0&&(t=!1);const r=s.getBoundingClientRect(),i=yu(s);let o=ys(1);e&&(n?Yn(n)&&(o=Or(n)):o=Or(s));const a=Vy(i,t,n)?bp(i):ys(0);let c=(r.left+a.x)/o.x,l=(r.top+a.y)/o.y,u=r.width/o.x,h=r.height/o.y;if(i){const d=Vt(i),f=n&&Yn(n)?Vt(n):n;let m=d.frameElement;for(;m&&n&&f!==d;){const p=Or(m),g=m.getBoundingClientRect(),_=Kt(m),w=g.left+(m.clientLeft+parseFloat(_.paddingLeft))*p.x,k=g.top+(m.clientTop+parseFloat(_.paddingTop))*p.y;c*=p.x,l*=p.y,u*=p.x,h*=p.y,c+=w,l+=k,m=Vt(m).frameElement}}return ga({width:u,height:h,x:c,y:l})}function zy(s){let{rect:e,offsetParent:t,strategy:n}=s;const r=Tn(t),i=Jn(t);if(t===i)return e;let o={scrollLeft:0,scrollTop:0},a=ys(1);const c=ys(0);if((r||!r&&n!=="fixed")&&((vs(t)!=="body"||vo(i))&&(o=ac(t)),Tn(t))){const l=Zs(t);a=Or(t),c.x=l.x+t.clientLeft,c.y=l.y+t.clientTop}return{width:e.width*a.x,height:e.height*a.y,x:e.x*a.x-o.scrollLeft*a.x+c.x,y:e.y*a.y-o.scrollTop*a.y+c.y}}function Uy(s){return Array.from(s.getClientRects())}function xp(s){return Zs(Jn(s)).left+ac(s).scrollLeft}function By(s){const e=Jn(s),t=ac(s),n=s.ownerDocument.body,r=Ft(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=Ft(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let o=-t.scrollLeft+xp(s);const a=-t.scrollTop;return Kt(n).direction==="rtl"&&(o+=Ft(e.clientWidth,n.clientWidth)-r),{width:r,height:i,x:o,y:a}}function Wy(s,e){const t=Vt(s),n=Jn(s),r=t.visualViewport;let i=n.clientWidth,o=n.clientHeight,a=0,c=0;if(r){i=r.width,o=r.height;const l=_u();(!l||l&&e==="fixed")&&(a=r.offsetLeft,c=r.offsetTop)}return{width:i,height:o,x:a,y:c}}function qy(s,e){const t=Zs(s,!0,e==="fixed"),n=t.top+s.clientTop,r=t.left+s.clientLeft,i=Tn(s)?Or(s):ys(1),o=s.clientWidth*i.x,a=s.clientHeight*i.y,c=r*i.x,l=n*i.y;return{width:o,height:a,x:c,y:l}}function zh(s,e,t){let n;if(e==="viewport")n=Wy(s,t);else if(e==="document")n=By(Jn(s));else if(Yn(e))n=qy(e,t);else{const r=bp(s);n={...e,x:e.x-r.x,y:e.y-r.y}}return ga(n)}function wp(s,e){const t=$r(s);return t===e||!Yn(t)||oc(t)?!1:Kt(t).position==="fixed"||wp(t,e)}function Hy(s,e){const t=e.get(s);if(t)return t;let n=ji(s,[],!1).filter(a=>Yn(a)&&vs(a)!=="body"),r=null;const i=Kt(s).position==="fixed";let o=i?$r(s):s;for(;Yn(o)&&!oc(o);){const a=Kt(o),c=gu(o);!c&&a.position==="fixed"&&(r=null),(i?!c&&!r:!c&&a.position==="static"&&!!r&&["absolute","fixed"].includes(r.position)||vo(o)&&!c&&wp(s,o))?n=n.filter(u=>u!==o):r=a,o=$r(o)}return e.set(s,n),n}function Yy(s){let{element:e,boundary:t,rootBoundary:n,strategy:r}=s;const o=[...t==="clippingAncestors"?Hy(e,this._c):[].concat(t),n],a=o[0],c=o.reduce((l,u)=>{const h=zh(e,u,r);return l.top=Ft(h.top,l.top),l.right=_s(h.right,l.right),l.bottom=_s(h.bottom,l.bottom),l.left=Ft(h.left,l.left),l},zh(e,a,r));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Gy(s){return vp(s)}function Xy(s,e,t){const n=Tn(e),r=Jn(e),i=t==="fixed",o=Zs(s,!0,i,e);let a={scrollLeft:0,scrollTop:0};const c=ys(0);if(n||!n&&!i)if((vs(e)!=="body"||vo(r))&&(a=ac(e)),n){const l=Zs(e,!0,i,e);c.x=l.x+e.clientLeft,c.y=l.y+e.clientTop}else r&&(c.x=xp(r));return{x:o.left+a.scrollLeft-c.x,y:o.top+a.scrollTop-c.y,width:o.width,height:o.height}}function Uh(s,e){return!Tn(s)||Kt(s).position==="fixed"?null:e?e(s):s.offsetParent}function kp(s,e){const t=Vt(s);if(!Tn(s))return t;let n=Uh(s,e);for(;n&&Fy(n)&&Kt(n).position==="static";)n=Uh(n,e);return n&&(vs(n)==="html"||vs(n)==="body"&&Kt(n).position==="static"&&!gu(n))?t:n||Ly(s)||t}const Zy=async function(s){let{reference:e,floating:t,strategy:n}=s;const r=this.getOffsetParent||kp,i=this.getDimensions;return{reference:Xy(e,await r(t),n),floating:{x:0,y:0,...await i(t)}}};function Ky(s){return Kt(s).direction==="rtl"}const Qy={convertOffsetParentRelativeRectToViewportRelativeRect:zy,getDocumentElement:Jn,getClippingRect:Yy,getOffsetParent:kp,getElementRects:Zy,getClientRects:Uy,getDimensions:Gy,getScale:Or,isElement:Yn,isRTL:Ky};function Jy(s,e){let t=null,n;const r=Jn(s);function i(){clearTimeout(n),t&&t.disconnect(),t=null}function o(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),i();const{left:l,top:u,width:h,height:d}=s.getBoundingClientRect();if(a||e(),!h||!d)return;const f=Lo(u),m=Lo(r.clientWidth-(l+h)),p=Lo(r.clientHeight-(u+d)),g=Lo(l),w={rootMargin:-f+"px "+-m+"px "+-p+"px "+-g+"px",threshold:Ft(0,_s(1,c))||1};let k=!0;function v(y){const T=y[0].intersectionRatio;if(T!==c){if(!k)return o();T?o(!1,T):n=setTimeout(()=>{o(!1,1e-7)},100)}k=!1}try{t=new IntersectionObserver(v,{...w,root:r.ownerDocument})}catch{t=new IntersectionObserver(v,w)}t.observe(s)}return o(!0),i}function e1(s,e,t,n){n===void 0&&(n={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=n,l=yu(s),u=r||i?[...l?ji(l):[],...ji(e)]:[];u.forEach(_=>{r&&_.addEventListener("scroll",t,{passive:!0}),i&&_.addEventListener("resize",t)});const h=l&&a?Jy(l,t):null;let d=-1,f=null;o&&(f=new ResizeObserver(_=>{let[w]=_;w&&w.target===l&&f&&(f.unobserve(e),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{f&&f.observe(e)})),t()}),l&&!c&&f.observe(l),f.observe(e));let m,p=c?Zs(s):null;c&&g();function g(){const _=Zs(s);p&&(_.x!==p.x||_.y!==p.y||_.width!==p.width||_.height!==p.height)&&t(),p=_,m=requestAnimationFrame(g)}return t(),()=>{u.forEach(_=>{r&&_.removeEventListener("scroll",t),i&&_.removeEventListener("resize",t)}),h&&h(),f&&f.disconnect(),f=null,c&&cancelAnimationFrame(m)}}const t1=(s,e,t)=>{const n=new Map,r={platform:Qy,...t},i={...r.platform,_c:n};return Ay(s,e,{...r,platform:i})},n1=s=>{function e(t){return{}.hasOwnProperty.call(t,"current")}return{name:"arrow",options:s,fn(t){const{element:n,padding:r}=typeof s=="function"?s(t):s;return n&&e(n)?n.current!=null?Fh({element:n.current,padding:r}).fn(t):{}:n?Fh({element:n,padding:r}).fn(t):{}}}};var aa=typeof document<"u"?b.useLayoutEffect:b.useEffect;function _a(s,e){if(s===e)return!0;if(typeof s!=typeof e)return!1;if(typeof s=="function"&&s.toString()===e.toString())return!0;let t,n,r;if(s&&e&&typeof s=="object"){if(Array.isArray(s)){if(t=s.length,t!=e.length)return!1;for(n=t;n--!==0;)if(!_a(s[n],e[n]))return!1;return!0}if(r=Object.keys(s),t=r.length,t!==Object.keys(e).length)return!1;for(n=t;n--!==0;)if(!{}.hasOwnProperty.call(e,r[n]))return!1;for(n=t;n--!==0;){const i=r[n];if(!(i==="_owner"&&s.$$typeof)&&!_a(s[i],e[i]))return!1}return!0}return s!==s&&e!==e}function Tp(s){return typeof window>"u"?1:(s.ownerDocument.defaultView||window).devicePixelRatio||1}function Bh(s,e){const t=Tp(s);return Math.round(e*t)/t}function Wh(s){const e=b.useRef(s);return aa(()=>{e.current=s}),e}function s1(s){s===void 0&&(s={});const{placement:e="bottom",strategy:t="absolute",middleware:n=[],platform:r,elements:{reference:i,floating:o}={},transform:a=!0,whileElementsMounted:c,open:l}=s,[u,h]=b.useState({x:0,y:0,strategy:t,placement:e,middlewareData:{},isPositioned:!1}),[d,f]=b.useState(n);_a(d,n)||f(n);const[m,p]=b.useState(null),[g,_]=b.useState(null),w=b.useCallback(B=>{B!=T.current&&(T.current=B,p(B))},[p]),k=b.useCallback(B=>{B!==E.current&&(E.current=B,_(B))},[_]),v=i||m,y=o||g,T=b.useRef(null),E=b.useRef(null),x=b.useRef(u),C=Wh(c),S=Wh(r),D=b.useCallback(()=>{if(!T.current||!E.current)return;const B={placement:e,strategy:t,middleware:d};S.current&&(B.platform=S.current),t1(T.current,E.current,B).then(U=>{const z={...U,isPositioned:!0};O.current&&!_a(x.current,z)&&(x.current=z,cu.flushSync(()=>{h(z)}))})},[d,e,t,S]);aa(()=>{l===!1&&x.current.isPositioned&&(x.current.isPositioned=!1,h(B=>({...B,isPositioned:!1})))},[l]);const O=b.useRef(!1);aa(()=>(O.current=!0,()=>{O.current=!1}),[]),aa(()=>{if(v&&(T.current=v),y&&(E.current=y),v&&y){if(C.current)return C.current(v,y,D);D()}},[v,y,D,C]);const L=b.useMemo(()=>({reference:T,floating:E,setReference:w,setFloating:k}),[w,k]),j=b.useMemo(()=>({reference:v,floating:y}),[v,y]),W=b.useMemo(()=>{const B={position:t,left:0,top:0};if(!j.floating)return B;const U=Bh(j.floating,u.x),z=Bh(j.floating,u.y);return a?{...B,transform:"translate("+U+"px, "+z+"px)",...Tp(j.floating)>=1.5&&{willChange:"transform"}}:{position:t,left:U,top:z}},[t,a,j.floating,u.x,u.y]);return b.useMemo(()=>({...u,update:D,refs:L,elements:j,floatingStyles:W}),[u,D,L,j,W])}function r1(s){let e;const t=new Set,n=(l,u)=>{const h=typeof l=="function"?l(e):l;if(h!==e){const d=e;e=u?h:Object.assign({},e,h),t.forEach(f=>f(e,d))}},r=()=>e,i=(l,u=r,h=Object.is)=>{console.warn("[DEPRECATED] Please use `subscribeWithSelector` middleware");let d=u(e);function f(){const m=u(e);if(!h(d,m)){const p=d;l(d=m,p)}}return t.add(f),()=>t.delete(f)},c={setState:n,getState:r,subscribe:(l,u,h)=>u||h?i(l,u,h):(t.add(l),()=>t.delete(l)),destroy:()=>t.clear()};return e=s(n,r,c),c}const i1=typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),qh=i1?b.useEffect:b.useLayoutEffect;function o1(s){const e=typeof s=="function"?r1(s):s,t=(n=e.getState,r=Object.is)=>{const[,i]=b.useReducer(g=>g+1,0),o=e.getState(),a=b.useRef(o),c=b.useRef(n),l=b.useRef(r),u=b.useRef(!1),h=b.useRef();h.current===void 0&&(h.current=n(o));let d,f=!1;(a.current!==o||c.current!==n||l.current!==r||u.current)&&(d=n(o),f=!r(h.current,d)),qh(()=>{f&&(h.current=d),a.current=o,c.current=n,l.current=r,u.current=!1});const m=b.useRef(o);qh(()=>{const g=()=>{try{const w=e.getState(),k=c.current(w);l.current(h.current,k)||(a.current=w,h.current=k,i())}catch{u.current=!0,i()}},_=e.subscribe(g);return e.getState()!==m.current&&g(),_},[]);const p=f?d:h.current;return b.useDebugValue(p),p};return Object.assign(t,e),t[Symbol.iterator]=function(){console.warn("[useStore, api] = create() is deprecated and will be removed in v4");const n=[t,e];return{next(){const r=n.length<=0;return{value:n.shift(),done:r}}}},t}let ci=0;const a1=o1(s=>(Fo.onStart=(e,t,n)=>{s({active:!0,item:e,loaded:t,total:n,progress:(t-ci)/(n-ci)*100})},Fo.onLoad=()=>{s({active:!1})},Fo.onError=e=>s(t=>({errors:[...t.errors,e]})),Fo.onProgress=(e,t,n)=>{t===n&&(ci=n),s({active:!0,item:e,loaded:t,total:n,progress:(t-ci)/(n-ci)*100||100})},{errors:[],active:!1,progress:0,item:"",loaded:0,total:0})),c1=s=>`Loading ${s.toFixed(2)}%`;function l1({containerStyles:s,innerStyles:e,barStyles:t,dataStyles:n,dataInterpolation:r=c1,initialState:i=o=>o}){const{active:o,progress:a}=a1(),c=b.useRef(0),l=b.useRef(0),u=b.useRef(null),[h,d]=b.useState(i(o));b.useEffect(()=>{let m;return o!==h&&(m=setTimeout(()=>d(o),300)),()=>clearTimeout(m)},[h,o]);const f=b.useCallback(()=>{u.current&&(c.current+=(a-c.current)/2,(c.current>.95*a||a===100)&&(c.current=a),u.current.innerText=r(c.current),c.current(f(),()=>cancelAnimationFrame(l.current)),[f]),h?b.createElement("div",{style:{...jo.container,opacity:o?1:0,...s}},b.createElement("div",null,b.createElement("div",{style:{...jo.inner,...e}},b.createElement("div",{style:{...jo.bar,transform:`scaleX(${a/100})`,...t}}),b.createElement("span",{ref:u,style:{...jo.data,...n}})))):null}const jo={container:{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:"#171717",display:"flex",alignItems:"center",justifyContent:"center",transition:"opacity 300ms ease",zIndex:1e3},inner:{width:100,height:3,background:"#272727",textAlign:"center"},bar:{height:3,width:"100%",background:"white",transition:"transform 200ms",transformOrigin:"left center"},data:{display:"inline-block",position:"relative",fontVariantNumeric:"tabular-nums",marginTop:"0.8em",color:"#f0f0f0",fontSize:"0.6em",fontFamily:'-apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", "Helvetica Neue", Helvetica, Arial, Roboto, Ubuntu, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',whiteSpace:"nowrap"}},$c=new sy,Fc=new _e,dr=new _e,tn=new _e,Mn=new _e,gn=new _e,Nn=new _e,In=new _e,li=new _e,ui=new _e,hi=new _e,Vo=new _e,di=new _e,fi=new _e,pi=new _e;class u1{constructor(e,t,n){this.camera=e,this.scene=t,this.startPoint=new _e,this.endPoint=new _e,this.collection=[],this.deep=n||Number.MAX_VALUE}select(e,t){return this.startPoint=e||this.startPoint,this.endPoint=t||this.endPoint,this.collection=[],this.updateFrustum(this.startPoint,this.endPoint),this.searchChildInFrustum($c,this.scene),this.collection}updateFrustum(e,t){if(e=e||this.startPoint,t=t||this.endPoint,e.x===t.x&&(t.x+=Number.EPSILON),e.y===t.y&&(t.y+=Number.EPSILON),this.camera.updateProjectionMatrix(),this.camera.updateMatrixWorld(),this.camera.isPerspectiveCamera){dr.copy(e),dr.x=Math.min(e.x,t.x),dr.y=Math.max(e.y,t.y),t.x=Math.max(e.x,t.x),t.y=Math.min(e.y,t.y),tn.setFromMatrixPosition(this.camera.matrixWorld),Mn.copy(dr),gn.set(t.x,dr.y,0),Nn.copy(t),In.set(dr.x,t.y,0),Mn.unproject(this.camera),gn.unproject(this.camera),Nn.unproject(this.camera),In.unproject(this.camera),di.copy(Mn).sub(tn),fi.copy(gn).sub(tn),pi.copy(Nn).sub(tn),di.normalize(),fi.normalize(),pi.normalize(),di.multiplyScalar(this.deep),fi.multiplyScalar(this.deep),pi.multiplyScalar(this.deep),di.add(tn),fi.add(tn),pi.add(tn);var n=$c.planes;n[0].setFromCoplanarPoints(tn,Mn,gn),n[1].setFromCoplanarPoints(tn,gn,Nn),n[2].setFromCoplanarPoints(Nn,In,tn),n[3].setFromCoplanarPoints(In,Mn,tn),n[4].setFromCoplanarPoints(gn,Nn,In),n[5].setFromCoplanarPoints(pi,fi,di),n[5].normal.multiplyScalar(-1)}else if(this.camera.isOrthographicCamera){const r=Math.min(e.x,t.x),i=Math.max(e.y,t.y),o=Math.max(e.x,t.x),a=Math.min(e.y,t.y);Mn.set(r,i,-1),gn.set(o,i,-1),Nn.set(o,a,-1),In.set(r,a,-1),li.set(r,i,1),ui.set(o,i,1),hi.set(o,a,1),Vo.set(r,a,1),Mn.unproject(this.camera),gn.unproject(this.camera),Nn.unproject(this.camera),In.unproject(this.camera),li.unproject(this.camera),ui.unproject(this.camera),hi.unproject(this.camera),Vo.unproject(this.camera);var n=$c.planes;n[0].setFromCoplanarPoints(Mn,li,ui),n[1].setFromCoplanarPoints(gn,ui,hi),n[2].setFromCoplanarPoints(hi,Vo,In),n[3].setFromCoplanarPoints(Vo,li,Mn),n[4].setFromCoplanarPoints(gn,Nn,In),n[5].setFromCoplanarPoints(hi,ui,li),n[5].normal.multiplyScalar(-1)}else console.error("THREE.SelectionBox: Unsupported camera type.")}searchChildInFrustum(e,t){if((t.isMesh||t.isLine||t.isPoints)&&t.material!==void 0&&(t.geometry.boundingSphere===null&&t.geometry.computeBoundingSphere(),Fc.copy(t.geometry.boundingSphere.center),Fc.applyMatrix4(t.matrixWorld),e.containsPoint(Fc)&&this.collection.push(t)),t.children.length>0)for(let n=0;n0?X.copy(O[O.length-1]):X.identity())}function r(I){const F=new Ms,A=new we,N=new we,Y=new we;let $=!0,q=!1;const re=I.getAttribute("d").match(/[a-df-z][^a-df-z]*/gi);for(let ie=0,ne=re.length;ie0&&(A.copy(Y),F.currentPath.currentPoint.copy(A),$=!0);break;default:console.warn(me)}q=!1}return F}function i(I){if(!(!I.sheet||!I.sheet.cssRules||!I.sheet.cssRules.length))for(let F=0;FY.trim());for(let Y=0;Y1){const rs=Math.sqrt(Q);F=rs*F,A=rs*A,te=F*F,H=A*A}const se=te*R+H*P,ce=(te*H-se)/se;let ye=Math.sqrt(Math.max(0,ce));Y===$&&(ye=-ye);const Ke=ye*F*me/A,J=-ye*A*ne/F,de=Math.cos(N)*Ke-Math.sin(N)*J+(q.x+oe.x)/2,Qe=Math.sin(N)*Ke+Math.cos(N)*J+(q.y+oe.y)/2,it=a(1,0,(ne-Ke)/F,(me-J)/A),It=a((ne-Ke)/F,(me-J)/A,(-ne-Ke)/F,(-me-J)/A)%(Math.PI*2);I.currentPath.absellipse(de,Qe,F,A,it,it+It,$===0,N)}function a(I,F,A,N){const Y=I*A+F*N,$=Math.sqrt(I*I+F*F)*Math.sqrt(A*A+N*N);let q=Math.acos(Math.max(-1,Math.min(1,Y/$)));return I*N-F*A<0&&(q=-q),q}function c(I){const F=k(I.getAttribute("x")||0),A=k(I.getAttribute("y")||0),N=k(I.getAttribute("rx")||I.getAttribute("ry")||0),Y=k(I.getAttribute("ry")||I.getAttribute("rx")||0),$=k(I.getAttribute("width")),q=k(I.getAttribute("height")),oe=1-.551915024494,re=new Ms;return re.moveTo(F+N,A),re.lineTo(F+$-N,A),(N!==0||Y!==0)&&re.bezierCurveTo(F+$-N*oe,A,F+$,A+Y*oe,F+$,A+Y),re.lineTo(F+$,A+q-Y),(N!==0||Y!==0)&&re.bezierCurveTo(F+$,A+q-Y*oe,F+$-N*oe,A+q,F+$-N,A+q),re.lineTo(F+N,A+q),(N!==0||Y!==0)&&re.bezierCurveTo(F+N*oe,A+q,F,A+q-Y*oe,F,A+q-Y),re.lineTo(F,A+Y),(N!==0||Y!==0)&&re.bezierCurveTo(F,A+Y*oe,F+N*oe,A,F+N,A),re}function l(I){function F($,q,oe){const re=k(q),ie=k(oe);Y===0?N.moveTo(re,ie):N.lineTo(re,ie),Y++}const A=/(-?[\d\.?]+)[,|\s](-?[\d\.?]+)/g,N=new Ms;let Y=0;return I.getAttribute("points").replace(A,F),N.currentPath.autoClose=!0,N}function u(I){function F($,q,oe){const re=k(q),ie=k(oe);Y===0?N.moveTo(re,ie):N.lineTo(re,ie),Y++}const A=/(-?[\d\.?]+)[,|\s](-?[\d\.?]+)/g,N=new Ms;let Y=0;return I.getAttribute("points").replace(A,F),N.currentPath.autoClose=!1,N}function h(I){const F=k(I.getAttribute("cx")||0),A=k(I.getAttribute("cy")||0),N=k(I.getAttribute("r")||0),Y=new Ic;Y.absarc(F,A,N,0,Math.PI*2);const $=new Ms;return $.subPaths.push(Y),$}function d(I){const F=k(I.getAttribute("cx")||0),A=k(I.getAttribute("cy")||0),N=k(I.getAttribute("rx")||0),Y=k(I.getAttribute("ry")||0),$=new Ic;$.absellipse(F,A,N,Y,0,Math.PI*2);const q=new Ms;return q.subPaths.push($),q}function f(I){const F=k(I.getAttribute("x1")||0),A=k(I.getAttribute("y1")||0),N=k(I.getAttribute("x2")||0),Y=k(I.getAttribute("y2")||0),$=new Ms;return $.moveTo(F,A),$.lineTo(N,Y),$.currentPath.autoClose=!1,$}function m(I,F){F=Object.assign({},F);let A={};if(I.hasAttribute("class")){const q=I.getAttribute("class").split(/\s/).filter(Boolean).map(oe=>oe.trim());for(let oe=0;oe0&&F.premultiply(O[O.length-1]),X.copy(F),O.push(F),F}function y(I){const F=new hr,A=L;if(I.nodeName==="use"&&(I.hasAttribute("x")||I.hasAttribute("y"))){const N=k(I.getAttribute("x")),Y=k(I.getAttribute("y"));F.translate(N,Y)}if(I.hasAttribute("transform")){const N=I.getAttribute("transform").split(")");for(let Y=N.length-1;Y>=0;Y--){const $=N[Y].trim();if($==="")continue;const q=$.indexOf("("),oe=$.length;if(q>0&&q=1){const ne=ie[0];let me=ne;ie.length>=2&&(me=ie[1]),A.translate(ne,me)}break;case"rotate":if(ie.length>=1){let ne=0,me=0,te=0;ne=-ie[0]*Math.PI/180,ie.length>=3&&(me=ie[1],te=ie[2]),j.identity().translate(-me,-te),W.identity().rotate(ne),B.multiplyMatrices(W,j),j.identity().translate(me,te),A.multiplyMatrices(j,B)}break;case"scale":if(ie.length>=1){const ne=ie[0];let me=ne;ie.length>=2&&(me=ie[1]),A.scale(ne,me)}break;case"skewX":ie.length===1&&A.set(1,Math.tan(ie[0]*Math.PI/180),0,0,1,0,0,0,1);break;case"skewY":ie.length===1&&A.set(1,0,0,Math.tan(ie[0]*Math.PI/180),1,0,0,0,1);break;case"matrix":ie.length===6&&A.set(ie[0],ie[2],ie[4],ie[1],ie[3],ie[5],0,0,1);break}}F.premultiply(A)}}return F}function T(I,F){function A($){z.set($.x,$.y,1).applyMatrix3(F),$.set(z.x,z.y)}const N=E(F),Y=I.subPaths;for(let $=0,q=Y.length;$=1||B<0||B>1)return null;if(O===0&&j===0){for(let U=0;U<2;U++)if(o(U===0?w:k,g,_),r.loc==n.ORIGIN){const z=U===0?w:k;return{x:z.x,y:z.y,t:r.t}}else if(r.loc==n.BETWEEN){const z=+(v+r.t*(y-v)).toPrecision(10),X=+(x+r.t*(C-x)).toPrecision(10);return{x:z,y:X,t:r.t}}return null}else{for(let X=0;X<2;X++)if(o(X===0?w:k,g,_),r.loc==n.ORIGIN){const K=X===0?w:k;return{x:K.x,y:K.y,t:r.t}}const U=+(v+W*(y-v)).toPrecision(10),z=+(x+W*(C-x)).toPrecision(10);return{x:U,y:z,t:W}}}function o(g,_,w){const k=w.x-_.x,v=w.y-_.y,y=g.x-_.x,T=g.y-_.y,E=k*T-y*v;if(g.x===_.x&&g.y===_.y){r.loc=n.ORIGIN,r.t=0;return}if(g.x===w.x&&g.y===w.y){r.loc=n.DESTINATION,r.t=1;return}if(E<-Number.EPSILON){r.loc=n.LEFT;return}if(E>Number.EPSILON){r.loc=n.RIGHT;return}if(k*y<0||v*T<0){r.loc=n.BEHIND;return}if(Math.sqrt(k*k+v*v)D.t<=S.t+Number.EPSILON&&D.t>=S.t-Number.EPSILON)===void 0&&(w.push(S),k.push(new we(S.x,S.y)))}}return k}function c(g,_,w){const k=new we;_.getCenter(k);const v=[];return w.forEach(y=>{y.boundingBox.containsPoint(k)&&a(g,y.points).forEach(E=>{v.push({identifier:y.identifier,isCW:y.isCW,point:E})})}),v.sort((y,T)=>y.point.x-T.point.x),v}function l(g,_,w,k,v){(v==null||v==="")&&(v="nonzero");const y=new we;g.boundingBox.getCenter(y);const T=[new we(w,y.y),new we(k,y.y)],E=c(T,g.boundingBox,_);E.sort((L,j)=>L.point.x-j.point.x);const x=[],C=[];E.forEach(L=>{L.identifier===g.identifier?x.push(L):C.push(L)});const S=x[0].point.x,D=[];let O=0;for(;O0&&D[D.length-1]===C[O].identifier?D.pop():D.push(C[O].identifier),O++;if(D.push(g.identifier),v==="evenodd"){const L=D.length%2===0,j=D[D.length-2];return{identifier:g.identifier,isHole:L,for:j}}else if(v==="nonzero"){let L=!0,j=null,W=null;for(let B=0;B{const _=g.getPoints();let w=-999999999,k=999999999,v=-999999999,y=999999999;for(let T=0;T<_.length;T++){const E=_[T];E.y>w&&(w=E.y),E.yv&&(v=E.x),E.x=y&&(h=y-1),{curves:g.curves,points:_,isCW:oy.isClockWise(_),identifier:u++,boundingBox:new ay(new we(y,k),new we(v,w))}});f=f.filter(g=>g.points.length>1);const m=f.map(g=>l(g,f,h,d,e.userData.style.fillRule)),p=[];return f.forEach(g=>{if(!m[g.identifier].isHole){const w=new dp;w.curves=g.curves,m.filter(v=>v.isHole&&v.for===g.identifier).forEach(v=>{const y=f[v.identifier],T=new Ic;T.curves=y.curves,w.holes.push(T)}),p.push(w)}}),p}static getStrokeStyle(e,t,n,r,i){return e=e!==void 0?e:1,t=t!==void 0?t:"#000",n=n!==void 0?n:"miter",r=r!==void 0?r:"butt",i=i!==void 0?i:4,{strokeColor:t,strokeWidth:e,strokeLineJoin:n,strokeLineCap:r,strokeMiterLimit:i}}static pointsToStroke(e,t,n,r){const i=[],o=[],a=[];if(Ai.pointsToStrokeWithBuffers(e,t,n,r,i,o,a)===0)return null;const c=new cy;return c.setAttribute("position",new oa(i,3)),c.setAttribute("normal",new oa(o,3)),c.setAttribute("uv",new oa(a,2)),c}static pointsToStrokeWithBuffers(e,t,n,r,i,o,a,c){const l=new we,u=new we,h=new we,d=new we,f=new we,m=new we,p=new we,g=new we,_=new we,w=new we,k=new we,v=new we,y=new we,T=new we,E=new we,x=new we,C=new we;n=n!==void 0?n:12,r=r!==void 0?r:.001,c=c!==void 0?c:0,e=me(e);const S=e.length;if(S<2)return 0;const D=e[0].equals(e[S-1]);let O,L=e[0],j;const W=t.strokeWidth/2,B=1/(S-1);let U=0,z,X,K,ee,I=!1,F=0,A=c*3,N=c*2;Y(e[0],e[1],l).multiplyScalar(W),g.copy(e[0]).sub(l),_.copy(e[0]).add(l),w.copy(g),k.copy(_);for(let te=1;te=r&&P.push(te[R]);return P.push(te[te.length-1]),P}}}function h1(s,e){if(Object.is(s,e))return!0;if(typeof s!="object"||s===null||typeof e!="object"||e===null)return!1;const t=Object.keys(s);if(t.length!==Object.keys(e).length)return!1;for(let n=0;nc,...a}){const{setEvents:c,camera:l,raycaster:u,gl:h,controls:d,size:f,get:m}=We(),[p,g]=b.useState(!1),[_,w]=b.useReducer((T,{object:E,shift:x})=>E===void 0?[]:Array.isArray(E)?E:x?T.includes(E)?T.filter(C=>C!==E):[E,...T]:T[0]===E?[]:[E],[]);b.useEffect(()=>void(n==null?void 0:n(_)),[_]);const k=b.useCallback(T=>{T.stopPropagation(),w({object:o([T.object])[0],shift:e&&T.shiftKey})},[]),v=b.useCallback(T=>!p&&w({}),[p]),y=b.useRef(null);return b.useEffect(()=>{if(!s||!e)return;const T=new u1(l,y.current),E=document.createElement("div");E.style.pointerEvents="none",E.style.border=r,E.style.backgroundColor=i,E.style.position="fixed";const x=new we,C=new we,S=new we,D=m().events.enabled,O=d==null?void 0:d.enabled;let L=!1;function j(I,F){const{offsetX:A,offsetY:N}=I,{width:Y,height:$}=f;F.set(A/Y*2-1,-(N/$)*2+1)}function W(I){var F;d&&(d.enabled=!1),c({enabled:!1}),L=!0,(F=h.domElement.parentElement)==null||F.appendChild(E),E.style.left=`${I.clientX}px`,E.style.top=`${I.clientY}px`,E.style.width="0px",E.style.height="0px",x.x=I.clientX,x.y=I.clientY}function B(I){S.x=Math.max(x.x,I.clientX),S.y=Math.max(x.y,I.clientY),C.x=Math.min(x.x,I.clientX),C.y=Math.min(x.y,I.clientY),E.style.left=`${C.x}px`,E.style.top=`${C.y}px`,E.style.width=`${S.x-C.x}px`,E.style.height=`${S.y-C.y}px`}function U(){if(L){var I;d&&(d.enabled=O),c({enabled:D}),L=!1,(I=E.parentElement)==null||I.removeChild(E)}}function z(I){I.shiftKey&&(W(I),j(I,T.startPoint))}let X=[];function K(I){if(L){B(I),j(I,T.endPoint);const F=T.select().sort(A=>A.uuid).filter(A=>A.isMesh);h1(F,X)||(X=F,w({object:o(F)}))}}function ee(I){L&&U()}return document.addEventListener("pointerdown",z,{passive:!0}),document.addEventListener("pointermove",K,{passive:!0,capture:!0}),document.addEventListener("pointerup",ee,{passive:!0}),()=>{document.removeEventListener("pointerdown",z),document.removeEventListener("pointermove",K),document.removeEventListener("pointerup",ee)}},[f.width,f.height,u,l,d,h]),b.createElement("group",Oe({ref:y,onClick:k,onPointerOver:()=>g(!0),onPointerOut:()=>g(!1),onPointerMissed:v},a),b.createElement(d1.Provider,{value:_},t))}const vu=b.forwardRef(function({follow:e=!0,lockX:t=!1,lockY:n=!1,lockZ:r=!1,...i},o){const a=b.useRef();return An(({camera:c})=>{if(!e||!a.current)return;const l=a.current.rotation.clone();c.getWorldQuaternion(a.current.quaternion),t&&(a.current.rotation.x=l.x),n&&(a.current.rotation.y=l.y),r&&(a.current.rotation.z=l.z)}),b.createElement("group",Oe({ref:lu([a,o])},i))}),Hh=s=>s===Object(s)&&!Array.isArray(s)&&typeof s!="function";function Bs(s,e){const t=We(r=>r.gl),n=nc(rc,Hh(s)?Object.values(s):s);if(b.useLayoutEffect(()=>{e==null||e(n)},[e]),b.useEffect(()=>{(Array.isArray(n)?n:[n]).forEach(t.initTexture)},[t,n]),Hh(s)){const r=Object.keys(s),i={};return r.forEach(o=>Object.assign(i,{[o]:n[r.indexOf(o)]})),i}else return n}Bs.preload=s=>nc.preload(rc,s);Bs.clear=s=>nc.clear(rc,s);const p1=b.forwardRef(function({src:e,skipFill:t,skipStrokes:n,fillMaterial:r,strokeMaterial:i,fillMeshProps:o,strokeMeshProps:a,...c},l){const u=nc(Ai,e.startsWith("n?[]:u.paths.map(d=>{var f;return((f=d.userData)==null?void 0:f.style.stroke)===void 0||d.userData.style.stroke==="none"?null:d.subPaths.map(m=>Ai.pointsToStroke(m.getPoints(),d.userData.style))}),[u,n]);return b.useEffect(()=>()=>h.forEach(d=>d&&d.map(f=>f.dispose())),[h]),b.createElement("object3D",Oe({ref:l},c),b.createElement("object3D",{scale:[1,-1,1]},u.paths.map((d,f)=>{var m,p;return b.createElement(b.Fragment,{key:f},!t&&((m=d.userData)==null?void 0:m.style.fill)!==void 0&&d.userData.style.fill!=="none"&&Ai.createShapes(d).map((g,_)=>b.createElement("mesh",Oe({key:_},o),b.createElement("shapeGeometry",{args:[g]}),b.createElement("meshBasicMaterial",Oe({color:d.userData.style.fill,opacity:d.userData.style.fillOpacity,transparent:!0,side:fa,depthWrite:!1},r)))),!n&&((p=d.userData)==null?void 0:p.style.stroke)!==void 0&&d.userData.style.stroke!=="none"&&d.subPaths.map((g,_)=>b.createElement("mesh",Oe({key:_,geometry:h[f][_]},a),b.createElement("meshBasicMaterial",Oe({color:d.userData.style.stroke,opacity:d.userData.style.strokeOpacity,transparent:!0,side:fa,depthWrite:!1},i)))))})))});/*! + * camera-controls + * https://github.com/yomotsu/camera-controls + * (c) 2017 @yomotsu + * Released under the MIT License. + */const fe={LEFT:1,RIGHT:2,MIDDLE:4},G=Object.freeze({NONE:0,ROTATE:1,TRUCK:2,OFFSET:4,DOLLY:8,ZOOM:16,TOUCH_ROTATE:32,TOUCH_TRUCK:64,TOUCH_OFFSET:128,TOUCH_DOLLY:256,TOUCH_ZOOM:512,TOUCH_DOLLY_TRUCK:1024,TOUCH_DOLLY_OFFSET:2048,TOUCH_DOLLY_ROTATE:4096,TOUCH_ZOOM_TRUCK:8192,TOUCH_ZOOM_OFFSET:16384,TOUCH_ZOOM_ROTATE:32768}),fr={NONE:0,IN:1,OUT:-1};function Ns(s){return s.isPerspectiveCamera}function os(s){return s.isOrthographicCamera}const pr=Math.PI*2,Yh=Math.PI/2,Ep=1e-5,mi=Math.PI/180;function nn(s,e,t){return Math.max(e,Math.min(t,s))}function $e(s,e=Ep){return Math.abs(s)0==f>u&&(f=u,t.value=(f-u)/i),f}function Xh(s,e,t,n,r=1/0,i,o){n=Math.max(1e-4,n);const a=2/n,c=a*i,l=1/(1+c+.48*c*c+.235*c*c*c);let u=e.x,h=e.y,d=e.z,f=s.x-u,m=s.y-h,p=s.z-d;const g=u,_=h,w=d,k=r*n,v=k*k,y=f*f+m*m+p*p;if(y>v){const W=Math.sqrt(y);f=f/W*k,m=m/W*k,p=p/W*k}u=s.x-f,h=s.y-m,d=s.z-p;const T=(t.x+a*f)*i,E=(t.y+a*m)*i,x=(t.z+a*p)*i;t.x=(t.x-a*T)*l,t.y=(t.y-a*E)*l,t.z=(t.z-a*x)*l,o.x=u+(f+T)*l,o.y=h+(m+E)*l,o.z=d+(p+x)*l;const C=g-s.x,S=_-s.y,D=w-s.z,O=o.x-g,L=o.y-_,j=o.z-w;return C*O+S*L+D*j>0&&(o.x=g,o.y=_,o.z=w,t.x=(o.x-g)/i,t.y=(o.y-_)/i,t.z=(o.z-w)/i),o}function Lc(s,e){e.set(0,0),s.forEach(t=>{e.x+=t.clientX,e.y+=t.clientY}),e.x/=s.length,e.y/=s.length}function jc(s,e){return os(s)?(console.warn(`${e} is not supported in OrthographicCamera`),!0):!1}class m1{constructor(){this._listeners={}}addEventListener(e,t){const n=this._listeners;n[e]===void 0&&(n[e]=[]),n[e].indexOf(t)===-1&&n[e].push(t)}hasEventListener(e,t){const n=this._listeners;return n[e]!==void 0&&n[e].indexOf(t)!==-1}removeEventListener(e,t){const r=this._listeners[e];if(r!==void 0){const i=r.indexOf(t);i!==-1&&r.splice(i,1)}}removeAllEventListeners(e){if(!e){this._listeners={};return}Array.isArray(this._listeners[e])&&(this._listeners[e].length=0)}dispatchEvent(e){const n=this._listeners[e.type];if(n!==void 0){e.target=this;const r=n.slice(0);for(let i=0,o=r.length;i{},this._enabled=!0,this._state=G.NONE,this._viewport=null,this._changedDolly=0,this._changedZoom=0,this._hasRested=!0,this._boundaryEnclosesCamera=!1,this._needsUpdate=!0,this._updatedLastTime=!1,this._elementRect=new DOMRect,this._isDragging=!1,this._dragNeedsUpdate=!0,this._activePointers=[],this._lockedPointer=null,this._interactiveArea=new DOMRect(0,0,1,1),this._isUserControllingRotate=!1,this._isUserControllingDolly=!1,this._isUserControllingTruck=!1,this._isUserControllingOffset=!1,this._isUserControllingZoom=!1,this._lastDollyDirection=fr.NONE,this._thetaVelocity={value:0},this._phiVelocity={value:0},this._radiusVelocity={value:0},this._targetVelocity=new ue.Vector3,this._focalOffsetVelocity=new ue.Vector3,this._zoomVelocity={value:0},this._truckInternal=(v,y,T)=>{let E,x;if(Ns(this._camera)){const C=ge.copy(this._camera.position).sub(this._target),S=this._camera.getEffectiveFOV()*mi,D=C.length()*Math.tan(S*.5);E=this.truckSpeed*v*D/this._elementRect.height,x=this.truckSpeed*y*D/this._elementRect.height}else if(os(this._camera)){const C=this._camera;E=v*(C.right-C.left)/C.zoom/this._elementRect.width,x=y*(C.top-C.bottom)/C.zoom/this._elementRect.height}else return;this.verticalDragToForward?(T?this.setFocalOffset(this._focalOffsetEnd.x+E,this._focalOffsetEnd.y,this._focalOffsetEnd.z,!0):this.truck(E,0,!0),this.forward(-x,!0)):T?this.setFocalOffset(this._focalOffsetEnd.x+E,this._focalOffsetEnd.y+x,this._focalOffsetEnd.z,!0):this.truck(E,x,!0)},this._rotateInternal=(v,y)=>{const T=pr*this.azimuthRotateSpeed*v/this._elementRect.height,E=pr*this.polarRotateSpeed*y/this._elementRect.height;this.rotate(T,E,!0)},this._dollyInternal=(v,y,T)=>{const E=Math.pow(.95,-v*this.dollySpeed),x=this._sphericalEnd.radius,C=this._sphericalEnd.radius*E,S=nn(C,this.minDistance,this.maxDistance),D=S-C;this.infinityDolly&&this.dollyToCursor?this._dollyToNoClamp(C,!0):this.infinityDolly&&!this.dollyToCursor?(this.dollyInFixed(D,!0),this._dollyToNoClamp(S,!0)):this._dollyToNoClamp(S,!0),this.dollyToCursor&&(this._changedDolly+=(this.infinityDolly?C:S)-x,this._dollyControlCoord.set(y,T)),this._lastDollyDirection=Math.sign(-v)},this._zoomInternal=(v,y,T)=>{const E=Math.pow(.95,v*this.dollySpeed),x=this._zoom,C=this._zoom*E;this.zoomTo(C,!0),this.dollyToCursor&&(this._changedZoom+=C-x,this._dollyControlCoord.set(y,T))},typeof ue>"u"&&console.error("camera-controls: `THREE` is undefined. You must first run `CameraControls.install( { THREE: THREE } )`. Check the docs for further information."),this._camera=e,this._yAxisUpSpace=new ue.Quaternion().setFromUnitVectors(this._camera.up,Bo),this._yAxisUpSpaceInverse=this._yAxisUpSpace.clone().invert(),this._state=G.NONE,this._target=new ue.Vector3,this._targetEnd=this._target.clone(),this._focalOffset=new ue.Vector3,this._focalOffsetEnd=this._focalOffset.clone(),this._spherical=new ue.Spherical().setFromVector3(ge.copy(this._camera.position).applyQuaternion(this._yAxisUpSpace)),this._sphericalEnd=this._spherical.clone(),this._lastDistance=this._spherical.radius,this._zoom=this._camera.zoom,this._zoomEnd=this._zoom,this._lastZoom=this._zoom,this._nearPlaneCorners=[new ue.Vector3,new ue.Vector3,new ue.Vector3,new ue.Vector3],this._updateNearPlaneCorners(),this._boundary=new ue.Box3(new ue.Vector3(-1/0,-1/0,-1/0),new ue.Vector3(1/0,1/0,1/0)),this._cameraUp0=this._camera.up.clone(),this._target0=this._target.clone(),this._position0=this._camera.position.clone(),this._zoom0=this._zoom,this._focalOffset0=this._focalOffset.clone(),this._dollyControlCoord=new ue.Vector2,this.mouseButtons={left:G.ROTATE,middle:G.DOLLY,right:G.TRUCK,wheel:Ns(this._camera)?G.DOLLY:os(this._camera)?G.ZOOM:G.NONE},this.touches={one:G.TOUCH_ROTATE,two:Ns(this._camera)?G.TOUCH_DOLLY_TRUCK:os(this._camera)?G.TOUCH_ZOOM_TRUCK:G.NONE,three:G.TOUCH_TRUCK};const n=new ue.Vector2,r=new ue.Vector2,i=new ue.Vector2,o=v=>{if(!this._enabled||!this._domElement)return;if(this._interactiveArea.left!==0||this._interactiveArea.top!==0||this._interactiveArea.width!==1||this._interactiveArea.height!==1){const E=this._domElement.getBoundingClientRect(),x=v.clientX/E.width,C=v.clientY/E.height;if(xthis._interactiveArea.right||Cthis._interactiveArea.bottom)return}const y=v.pointerType!=="mouse"?null:(v.buttons&fe.LEFT)===fe.LEFT?fe.LEFT:(v.buttons&fe.MIDDLE)===fe.MIDDLE?fe.MIDDLE:(v.buttons&fe.RIGHT)===fe.RIGHT?fe.RIGHT:null;if(y!==null){const E=this._findPointerByMouseButton(y);E&&this._disposePointer(E)}if((v.buttons&fe.LEFT)===fe.LEFT&&this._lockedPointer)return;const T={pointerId:v.pointerId,clientX:v.clientX,clientY:v.clientY,deltaX:0,deltaY:0,mouseButton:y};this._activePointers.push(T),this._domElement.ownerDocument.removeEventListener("pointermove",c,{passive:!1}),this._domElement.ownerDocument.removeEventListener("pointerup",u),this._domElement.ownerDocument.addEventListener("pointermove",c,{passive:!1}),this._domElement.ownerDocument.addEventListener("pointerup",u),this._isDragging=!0,p(v)},a=v=>{if(!this._enabled||!this._domElement||this._lockedPointer)return;if(this._interactiveArea.left!==0||this._interactiveArea.top!==0||this._interactiveArea.width!==1||this._interactiveArea.height!==1){const E=this._domElement.getBoundingClientRect(),x=v.clientX/E.width,C=v.clientY/E.height;if(xthis._interactiveArea.right||Cthis._interactiveArea.bottom)return}const y=(v.buttons&fe.LEFT)===fe.LEFT?fe.LEFT:(v.buttons&fe.MIDDLE)===fe.MIDDLE?fe.MIDDLE:(v.buttons&fe.RIGHT)===fe.RIGHT?fe.RIGHT:null;if(y!==null){const E=this._findPointerByMouseButton(y);E&&this._disposePointer(E)}const T={pointerId:1,clientX:v.clientX,clientY:v.clientY,deltaX:0,deltaY:0,mouseButton:(v.buttons&fe.LEFT)===fe.LEFT?fe.LEFT:(v.buttons&fe.MIDDLE)===fe.LEFT?fe.MIDDLE:(v.buttons&fe.RIGHT)===fe.LEFT?fe.RIGHT:null};this._activePointers.push(T),this._domElement.ownerDocument.removeEventListener("mousemove",l),this._domElement.ownerDocument.removeEventListener("mouseup",h),this._domElement.ownerDocument.addEventListener("mousemove",l),this._domElement.ownerDocument.addEventListener("mouseup",h),this._isDragging=!0,p(v)},c=v=>{v.cancelable&&v.preventDefault();const y=v.pointerId,T=this._lockedPointer||this._findPointerById(y);if(T){if(T.clientX=v.clientX,T.clientY=v.clientY,T.deltaX=v.movementX,T.deltaY=v.movementY,this._state=0,v.pointerType==="touch")switch(this._activePointers.length){case 1:this._state=this.touches.one;break;case 2:this._state=this.touches.two;break;case 3:this._state=this.touches.three;break}else(!this._isDragging&&this._lockedPointer||this._isDragging&&(v.buttons&fe.LEFT)===fe.LEFT)&&(this._state=this._state|this.mouseButtons.left),this._isDragging&&(v.buttons&fe.MIDDLE)===fe.MIDDLE&&(this._state=this._state|this.mouseButtons.middle),this._isDragging&&(v.buttons&fe.RIGHT)===fe.RIGHT&&(this._state=this._state|this.mouseButtons.right);g()}},l=v=>{const y=this._lockedPointer||this._findPointerById(1);y&&(y.clientX=v.clientX,y.clientY=v.clientY,y.deltaX=v.movementX,y.deltaY=v.movementY,this._state=0,(this._lockedPointer||(v.buttons&fe.LEFT)===fe.LEFT)&&(this._state=this._state|this.mouseButtons.left),(v.buttons&fe.MIDDLE)===fe.MIDDLE&&(this._state=this._state|this.mouseButtons.middle),(v.buttons&fe.RIGHT)===fe.RIGHT&&(this._state=this._state|this.mouseButtons.right),g())},u=v=>{const y=this._findPointerById(v.pointerId);if(!(y&&y===this._lockedPointer)){if(y&&this._disposePointer(y),v.pointerType==="touch")switch(this._activePointers.length){case 0:this._state=G.NONE;break;case 1:this._state=this.touches.one;break;case 2:this._state=this.touches.two;break;case 3:this._state=this.touches.three;break}else this._state=G.NONE;_()}},h=()=>{const v=this._findPointerById(1);v&&v===this._lockedPointer||(v&&this._disposePointer(v),this._state=G.NONE,_())};let d=-1;const f=v=>{if(!this._domElement||!this._enabled||this.mouseButtons.wheel===G.NONE)return;if(this._interactiveArea.left!==0||this._interactiveArea.top!==0||this._interactiveArea.width!==1||this._interactiveArea.height!==1){const C=this._domElement.getBoundingClientRect(),S=v.clientX/C.width,D=v.clientY/C.height;if(Sthis._interactiveArea.right||Dthis._interactiveArea.bottom)return}if(v.preventDefault(),this.dollyToCursor||this.mouseButtons.wheel===G.ROTATE||this.mouseButtons.wheel===G.TRUCK){const C=performance.now();d-C<1e3&&this._getClientRect(this._elementRect),d=C}const y=_1?-1:-3,T=v.deltaMode===1?v.deltaY/y:v.deltaY/(y*10),E=this.dollyToCursor?(v.clientX-this._elementRect.x)/this._elementRect.width*2-1:0,x=this.dollyToCursor?(v.clientY-this._elementRect.y)/this._elementRect.height*-2+1:0;switch(this.mouseButtons.wheel){case G.ROTATE:{this._rotateInternal(v.deltaX,v.deltaY),this._isUserControllingRotate=!0;break}case G.TRUCK:{this._truckInternal(v.deltaX,v.deltaY,!1),this._isUserControllingTruck=!0;break}case G.OFFSET:{this._truckInternal(v.deltaX,v.deltaY,!0),this._isUserControllingOffset=!0;break}case G.DOLLY:{this._dollyInternal(-T,E,x),this._isUserControllingDolly=!0;break}case G.ZOOM:{this._zoomInternal(-T,E,x),this._isUserControllingZoom=!0;break}}this.dispatchEvent({type:"control"})},m=v=>{if(!(!this._domElement||!this._enabled)){if(this.mouseButtons.right===ml.ACTION.NONE){const y=v instanceof PointerEvent?v.pointerId:(v instanceof MouseEvent,0),T=this._findPointerById(y);T&&this._disposePointer(T),this._domElement.ownerDocument.removeEventListener("pointermove",c,{passive:!1}),this._domElement.ownerDocument.removeEventListener("pointerup",u),this._domElement.ownerDocument.removeEventListener("mousemove",l),this._domElement.ownerDocument.removeEventListener("mouseup",h);return}v.preventDefault()}},p=v=>{if(!this._enabled)return;if(Lc(this._activePointers,Et),this._getClientRect(this._elementRect),n.copy(Et),r.copy(Et),this._activePointers.length>=2){const T=Et.x-this._activePointers[1].clientX,E=Et.y-this._activePointers[1].clientY,x=Math.sqrt(T*T+E*E);i.set(0,x);const C=(this._activePointers[0].clientX+this._activePointers[1].clientX)*.5,S=(this._activePointers[0].clientY+this._activePointers[1].clientY)*.5;r.set(C,S)}if(this._state=0,!v)this._lockedPointer&&(this._state=this._state|this.mouseButtons.left);else if("pointerType"in v&&v.pointerType==="touch")switch(this._activePointers.length){case 1:this._state=this.touches.one;break;case 2:this._state=this.touches.two;break;case 3:this._state=this.touches.three;break}else!this._lockedPointer&&(v.buttons&fe.LEFT)===fe.LEFT&&(this._state=this._state|this.mouseButtons.left),(v.buttons&fe.MIDDLE)===fe.MIDDLE&&(this._state=this._state|this.mouseButtons.middle),(v.buttons&fe.RIGHT)===fe.RIGHT&&(this._state=this._state|this.mouseButtons.right);((this._state&G.ROTATE)===G.ROTATE||(this._state&G.TOUCH_ROTATE)===G.TOUCH_ROTATE||(this._state&G.TOUCH_DOLLY_ROTATE)===G.TOUCH_DOLLY_ROTATE||(this._state&G.TOUCH_ZOOM_ROTATE)===G.TOUCH_ZOOM_ROTATE)&&(this._sphericalEnd.theta=this._spherical.theta,this._sphericalEnd.phi=this._spherical.phi,this._thetaVelocity.value=0,this._phiVelocity.value=0),((this._state&G.TRUCK)===G.TRUCK||(this._state&G.TOUCH_TRUCK)===G.TOUCH_TRUCK||(this._state&G.TOUCH_DOLLY_TRUCK)===G.TOUCH_DOLLY_TRUCK||(this._state&G.TOUCH_ZOOM_TRUCK)===G.TOUCH_ZOOM_TRUCK)&&(this._targetEnd.copy(this._target),this._targetVelocity.set(0,0,0)),((this._state&G.DOLLY)===G.DOLLY||(this._state&G.TOUCH_DOLLY)===G.TOUCH_DOLLY||(this._state&G.TOUCH_DOLLY_TRUCK)===G.TOUCH_DOLLY_TRUCK||(this._state&G.TOUCH_DOLLY_OFFSET)===G.TOUCH_DOLLY_OFFSET||(this._state&G.TOUCH_DOLLY_ROTATE)===G.TOUCH_DOLLY_ROTATE)&&(this._sphericalEnd.radius=this._spherical.radius,this._radiusVelocity.value=0),((this._state&G.ZOOM)===G.ZOOM||(this._state&G.TOUCH_ZOOM)===G.TOUCH_ZOOM||(this._state&G.TOUCH_ZOOM_TRUCK)===G.TOUCH_ZOOM_TRUCK||(this._state&G.TOUCH_ZOOM_OFFSET)===G.TOUCH_ZOOM_OFFSET||(this._state&G.TOUCH_ZOOM_ROTATE)===G.TOUCH_ZOOM_ROTATE)&&(this._zoomEnd=this._zoom,this._zoomVelocity.value=0),((this._state&G.OFFSET)===G.OFFSET||(this._state&G.TOUCH_OFFSET)===G.TOUCH_OFFSET||(this._state&G.TOUCH_DOLLY_OFFSET)===G.TOUCH_DOLLY_OFFSET||(this._state&G.TOUCH_ZOOM_OFFSET)===G.TOUCH_ZOOM_OFFSET)&&(this._focalOffsetEnd.copy(this._focalOffset),this._focalOffsetVelocity.set(0,0,0)),this.dispatchEvent({type:"controlstart"})},g=()=>{if(!this._enabled||!this._dragNeedsUpdate)return;this._dragNeedsUpdate=!1,Lc(this._activePointers,Et);const y=this._domElement&&document.pointerLockElement===this._domElement?this._lockedPointer||this._activePointers[0]:null,T=y?-y.deltaX:r.x-Et.x,E=y?-y.deltaY:r.y-Et.y;if(r.copy(Et),((this._state&G.ROTATE)===G.ROTATE||(this._state&G.TOUCH_ROTATE)===G.TOUCH_ROTATE||(this._state&G.TOUCH_DOLLY_ROTATE)===G.TOUCH_DOLLY_ROTATE||(this._state&G.TOUCH_ZOOM_ROTATE)===G.TOUCH_ZOOM_ROTATE)&&(this._rotateInternal(T,E),this._isUserControllingRotate=!0),(this._state&G.DOLLY)===G.DOLLY||(this._state&G.ZOOM)===G.ZOOM){const x=this.dollyToCursor?(n.x-this._elementRect.x)/this._elementRect.width*2-1:0,C=this.dollyToCursor?(n.y-this._elementRect.y)/this._elementRect.height*-2+1:0,S=this.dollyDragInverted?-1:1;(this._state&G.DOLLY)===G.DOLLY?(this._dollyInternal(S*E*Uo,x,C),this._isUserControllingDolly=!0):(this._zoomInternal(S*E*Uo,x,C),this._isUserControllingZoom=!0)}if((this._state&G.TOUCH_DOLLY)===G.TOUCH_DOLLY||(this._state&G.TOUCH_ZOOM)===G.TOUCH_ZOOM||(this._state&G.TOUCH_DOLLY_TRUCK)===G.TOUCH_DOLLY_TRUCK||(this._state&G.TOUCH_ZOOM_TRUCK)===G.TOUCH_ZOOM_TRUCK||(this._state&G.TOUCH_DOLLY_OFFSET)===G.TOUCH_DOLLY_OFFSET||(this._state&G.TOUCH_ZOOM_OFFSET)===G.TOUCH_ZOOM_OFFSET||(this._state&G.TOUCH_DOLLY_ROTATE)===G.TOUCH_DOLLY_ROTATE||(this._state&G.TOUCH_ZOOM_ROTATE)===G.TOUCH_ZOOM_ROTATE){const x=Et.x-this._activePointers[1].clientX,C=Et.y-this._activePointers[1].clientY,S=Math.sqrt(x*x+C*C),D=i.y-S;i.set(0,S);const O=this.dollyToCursor?(r.x-this._elementRect.x)/this._elementRect.width*2-1:0,L=this.dollyToCursor?(r.y-this._elementRect.y)/this._elementRect.height*-2+1:0;(this._state&G.TOUCH_DOLLY)===G.TOUCH_DOLLY||(this._state&G.TOUCH_DOLLY_ROTATE)===G.TOUCH_DOLLY_ROTATE||(this._state&G.TOUCH_DOLLY_TRUCK)===G.TOUCH_DOLLY_TRUCK||(this._state&G.TOUCH_DOLLY_OFFSET)===G.TOUCH_DOLLY_OFFSET?(this._dollyInternal(D*Uo,O,L),this._isUserControllingDolly=!0):(this._zoomInternal(D*Uo,O,L),this._isUserControllingZoom=!0)}((this._state&G.TRUCK)===G.TRUCK||(this._state&G.TOUCH_TRUCK)===G.TOUCH_TRUCK||(this._state&G.TOUCH_DOLLY_TRUCK)===G.TOUCH_DOLLY_TRUCK||(this._state&G.TOUCH_ZOOM_TRUCK)===G.TOUCH_ZOOM_TRUCK)&&(this._truckInternal(T,E,!1),this._isUserControllingTruck=!0),((this._state&G.OFFSET)===G.OFFSET||(this._state&G.TOUCH_OFFSET)===G.TOUCH_OFFSET||(this._state&G.TOUCH_DOLLY_OFFSET)===G.TOUCH_DOLLY_OFFSET||(this._state&G.TOUCH_ZOOM_OFFSET)===G.TOUCH_ZOOM_OFFSET)&&(this._truckInternal(T,E,!0),this._isUserControllingOffset=!0),this.dispatchEvent({type:"control"})},_=()=>{Lc(this._activePointers,Et),r.copy(Et),this._dragNeedsUpdate=!1,(this._activePointers.length===0||this._activePointers.length===1&&this._activePointers[0]===this._lockedPointer)&&(this._isDragging=!1),this._activePointers.length===0&&this._domElement&&(this._domElement.ownerDocument.removeEventListener("pointermove",c,{passive:!1}),this._domElement.ownerDocument.removeEventListener("mousemove",l),this._domElement.ownerDocument.removeEventListener("pointerup",u),this._domElement.ownerDocument.removeEventListener("mouseup",h),this.dispatchEvent({type:"controlend"}))};this.lockPointer=()=>{!this._enabled||!this._domElement||(this.cancel(),this._lockedPointer={pointerId:-1,clientX:0,clientY:0,deltaX:0,deltaY:0,mouseButton:null},this._activePointers.push(this._lockedPointer),this._domElement.ownerDocument.removeEventListener("pointermove",c,{passive:!1}),this._domElement.ownerDocument.removeEventListener("pointerup",u),this._domElement.requestPointerLock(),this._domElement.ownerDocument.addEventListener("pointerlockchange",w),this._domElement.ownerDocument.addEventListener("pointerlockerror",k),this._domElement.ownerDocument.addEventListener("pointermove",c,{passive:!1}),this._domElement.ownerDocument.addEventListener("pointerup",u),p())},this.unlockPointer=()=>{this._lockedPointer!==null&&(this._disposePointer(this._lockedPointer),this._lockedPointer=null),document.exitPointerLock(),this.cancel(),this._domElement&&(this._domElement.ownerDocument.removeEventListener("pointerlockchange",w),this._domElement.ownerDocument.removeEventListener("pointerlockerror",k))};const w=()=>{this._domElement&&this._domElement.ownerDocument.pointerLockElement===this._domElement||this.unlockPointer()},k=()=>{this.unlockPointer()};this._addAllEventListeners=v=>{this._domElement=v,this._domElement.style.touchAction="none",this._domElement.style.userSelect="none",this._domElement.style.webkitUserSelect="none",this._domElement.addEventListener("pointerdown",o),y1&&this._domElement.addEventListener("mousedown",a),this._domElement.addEventListener("pointercancel",u),this._domElement.addEventListener("wheel",f,{passive:!1}),this._domElement.addEventListener("contextmenu",m)},this._removeAllEventListeners=()=>{this._domElement&&(this._domElement.style.touchAction="",this._domElement.style.userSelect="",this._domElement.style.webkitUserSelect="",this._domElement.removeEventListener("pointerdown",o),this._domElement.removeEventListener("mousedown",a),this._domElement.removeEventListener("pointercancel",u),this._domElement.removeEventListener("wheel",f,{passive:!1}),this._domElement.removeEventListener("contextmenu",m),this._domElement.ownerDocument.removeEventListener("pointermove",c,{passive:!1}),this._domElement.ownerDocument.removeEventListener("mousemove",l),this._domElement.ownerDocument.removeEventListener("pointerup",u),this._domElement.ownerDocument.removeEventListener("mouseup",h),this._domElement.ownerDocument.removeEventListener("pointerlockchange",w),this._domElement.ownerDocument.removeEventListener("pointerlockerror",k))},this.cancel=()=>{this._state!==G.NONE&&(this._state=G.NONE,this._activePointers.length=0,_())},t&&this.connect(t),this.update(0)}get camera(){return this._camera}set camera(e){this._camera=e,this.updateCameraUp(),this._camera.updateProjectionMatrix(),this._updateNearPlaneCorners(),this._needsUpdate=!0}get enabled(){return this._enabled}set enabled(e){this._enabled=e,this._domElement&&(e?(this._domElement.style.touchAction="none",this._domElement.style.userSelect="none",this._domElement.style.webkitUserSelect="none"):(this.cancel(),this._domElement.style.touchAction="",this._domElement.style.userSelect="",this._domElement.style.webkitUserSelect=""))}get active(){return!this._hasRested}get currentAction(){return this._state}get distance(){return this._spherical.radius}set distance(e){this._spherical.radius===e&&this._sphericalEnd.radius===e||(this._spherical.radius=e,this._sphericalEnd.radius=e,this._needsUpdate=!0)}get azimuthAngle(){return this._spherical.theta}set azimuthAngle(e){this._spherical.theta===e&&this._sphericalEnd.theta===e||(this._spherical.theta=e,this._sphericalEnd.theta=e,this._needsUpdate=!0)}get polarAngle(){return this._spherical.phi}set polarAngle(e){this._spherical.phi===e&&this._sphericalEnd.phi===e||(this._spherical.phi=e,this._sphericalEnd.phi=e,this._needsUpdate=!0)}get boundaryEnclosesCamera(){return this._boundaryEnclosesCamera}set boundaryEnclosesCamera(e){this._boundaryEnclosesCamera=e,this._needsUpdate=!0}set interactiveArea(e){this._interactiveArea.width=nn(e.width,0,1),this._interactiveArea.height=nn(e.height,0,1),this._interactiveArea.x=nn(e.x,0,1-this._interactiveArea.width),this._interactiveArea.y=nn(e.y,0,1-this._interactiveArea.height)}addEventListener(e,t){super.addEventListener(e,t)}removeEventListener(e,t){super.removeEventListener(e,t)}rotate(e,t,n=!1){return this.rotateTo(this._sphericalEnd.theta+e,this._sphericalEnd.phi+t,n)}rotateAzimuthTo(e,t=!1){return this.rotateTo(e,this._sphericalEnd.phi,t)}rotatePolarTo(e,t=!1){return this.rotateTo(this._sphericalEnd.theta,e,t)}rotateTo(e,t,n=!1){this._isUserControllingRotate=!1;const r=nn(e,this.minAzimuthAngle,this.maxAzimuthAngle),i=nn(t,this.minPolarAngle,this.maxPolarAngle);this._sphericalEnd.theta=r,this._sphericalEnd.phi=i,this._sphericalEnd.makeSafe(),this._needsUpdate=!0,n||(this._spherical.theta=this._sphericalEnd.theta,this._spherical.phi=this._sphericalEnd.phi);const o=!n||Te(this._spherical.theta,this._sphericalEnd.theta,this.restThreshold)&&Te(this._spherical.phi,this._sphericalEnd.phi,this.restThreshold);return this._createOnRestPromise(o)}dolly(e,t=!1){return this.dollyTo(this._sphericalEnd.radius-e,t)}dollyTo(e,t=!1){return this._isUserControllingDolly=!1,this._lastDollyDirection=fr.NONE,this._changedDolly=0,this._dollyToNoClamp(nn(e,this.minDistance,this.maxDistance),t)}_dollyToNoClamp(e,t=!1){const n=this._sphericalEnd.radius;if(this.colliderMeshes.length>=1){const o=this._collisionTest(),a=Te(o,this._spherical.radius);if(!(n>e)&&a)return Promise.resolve();this._sphericalEnd.radius=Math.min(e,o)}else this._sphericalEnd.radius=e;this._needsUpdate=!0,t||(this._spherical.radius=this._sphericalEnd.radius);const i=!t||Te(this._spherical.radius,this._sphericalEnd.radius,this.restThreshold);return this._createOnRestPromise(i)}dollyInFixed(e,t=!1){this._targetEnd.add(this._getCameraDirection(yi).multiplyScalar(e)),t||this._target.copy(this._targetEnd);const n=!t||Te(this._target.x,this._targetEnd.x,this.restThreshold)&&Te(this._target.y,this._targetEnd.y,this.restThreshold)&&Te(this._target.z,this._targetEnd.z,this.restThreshold);return this._createOnRestPromise(n)}zoom(e,t=!1){return this.zoomTo(this._zoomEnd+e,t)}zoomTo(e,t=!1){this._isUserControllingZoom=!1,this._zoomEnd=nn(e,this.minZoom,this.maxZoom),this._needsUpdate=!0,t||(this._zoom=this._zoomEnd);const n=!t||Te(this._zoom,this._zoomEnd,this.restThreshold);return this._changedZoom=0,this._createOnRestPromise(n)}pan(e,t,n=!1){return console.warn("`pan` has been renamed to `truck`"),this.truck(e,t,n)}truck(e,t,n=!1){this._camera.updateMatrix(),_n.setFromMatrixColumn(this._camera.matrix,0),yn.setFromMatrixColumn(this._camera.matrix,1),_n.multiplyScalar(e),yn.multiplyScalar(-t);const r=ge.copy(_n).add(yn),i=xe.copy(this._targetEnd).add(r);return this.moveTo(i.x,i.y,i.z,n)}forward(e,t=!1){ge.setFromMatrixColumn(this._camera.matrix,0),ge.crossVectors(this._camera.up,ge),ge.multiplyScalar(e);const n=xe.copy(this._targetEnd).add(ge);return this.moveTo(n.x,n.y,n.z,t)}elevate(e,t=!1){return ge.copy(this._camera.up).multiplyScalar(e),this.moveTo(this._targetEnd.x+ge.x,this._targetEnd.y+ge.y,this._targetEnd.z+ge.z,t)}moveTo(e,t,n,r=!1){this._isUserControllingTruck=!1;const i=ge.set(e,t,n).sub(this._targetEnd);this._encloseToBoundary(this._targetEnd,i,this.boundaryFriction),this._needsUpdate=!0,r||this._target.copy(this._targetEnd);const o=!r||Te(this._target.x,this._targetEnd.x,this.restThreshold)&&Te(this._target.y,this._targetEnd.y,this.restThreshold)&&Te(this._target.z,this._targetEnd.z,this.restThreshold);return this._createOnRestPromise(o)}lookInDirectionOf(e,t,n,r=!1){const a=ge.set(e,t,n).sub(this._targetEnd).normalize().multiplyScalar(-this._sphericalEnd.radius);return this.setPosition(a.x,a.y,a.z,r)}fitToBox(e,t,{cover:n=!1,paddingLeft:r=0,paddingRight:i=0,paddingBottom:o=0,paddingTop:a=0}={}){const c=[],l=e.isBox3?gr.copy(e):gr.setFromObject(e);l.isEmpty()&&(console.warn("camera-controls: fitTo() cannot be used with an empty box. Aborting"),Promise.resolve());const u=Gh(this._sphericalEnd.theta,Yh),h=Gh(this._sphericalEnd.phi,Yh);c.push(this.rotateTo(u,h,t));const d=ge.setFromSpherical(this._sphericalEnd).normalize(),f=ed.setFromUnitVectors(d,Vc),m=Te(Math.abs(d.y),1);m&&f.multiply(Uc.setFromAxisAngle(Bo,u)),f.multiply(this._yAxisUpSpaceInverse);const p=Jh.makeEmpty();xe.copy(l.min).applyQuaternion(f),p.expandByPoint(xe),xe.copy(l.min).setX(l.max.x).applyQuaternion(f),p.expandByPoint(xe),xe.copy(l.min).setY(l.max.y).applyQuaternion(f),p.expandByPoint(xe),xe.copy(l.max).setZ(l.min.z).applyQuaternion(f),p.expandByPoint(xe),xe.copy(l.min).setZ(l.max.z).applyQuaternion(f),p.expandByPoint(xe),xe.copy(l.max).setY(l.min.y).applyQuaternion(f),p.expandByPoint(xe),xe.copy(l.max).setX(l.min.x).applyQuaternion(f),p.expandByPoint(xe),xe.copy(l.max).applyQuaternion(f),p.expandByPoint(xe),p.min.x-=r,p.min.y-=o,p.max.x+=i,p.max.y+=a,f.setFromUnitVectors(Vc,d),m&&f.premultiply(Uc.invert()),f.premultiply(this._yAxisUpSpace);const g=p.getSize(ge),_=p.getCenter(xe).applyQuaternion(f);if(Ns(this._camera)){const w=this.getDistanceToFitBox(g.x,g.y,g.z,n);c.push(this.moveTo(_.x,_.y,_.z,t)),c.push(this.dollyTo(w,t)),c.push(this.setFocalOffset(0,0,0,t))}else if(os(this._camera)){const w=this._camera,k=w.right-w.left,v=w.top-w.bottom,y=n?Math.max(k/g.x,v/g.y):Math.min(k/g.x,v/g.y);c.push(this.moveTo(_.x,_.y,_.z,t)),c.push(this.zoomTo(y,t)),c.push(this.setFocalOffset(0,0,0,t))}return Promise.all(c)}fitToSphere(e,t){const n=[],i=e instanceof ue.Sphere?zc.copy(e):ml.createBoundingSphere(e,zc);if(n.push(this.moveTo(i.center.x,i.center.y,i.center.z,t)),Ns(this._camera)){const o=this.getDistanceToFitSphere(i.radius);n.push(this.dollyTo(o,t))}else if(os(this._camera)){const o=this._camera.right-this._camera.left,a=this._camera.top-this._camera.bottom,c=2*i.radius,l=Math.min(o/c,a/c);n.push(this.zoomTo(l,t))}return n.push(this.setFocalOffset(0,0,0,t)),Promise.all(n)}setLookAt(e,t,n,r,i,o,a=!1){this._isUserControllingRotate=!1,this._isUserControllingDolly=!1,this._isUserControllingTruck=!1,this._lastDollyDirection=fr.NONE,this._changedDolly=0;const c=xe.set(r,i,o),l=ge.set(e,t,n);this._targetEnd.copy(c),this._sphericalEnd.setFromVector3(l.sub(c).applyQuaternion(this._yAxisUpSpace)),this.normalizeRotations(),this._needsUpdate=!0,a||(this._target.copy(this._targetEnd),this._spherical.copy(this._sphericalEnd));const u=!a||Te(this._target.x,this._targetEnd.x,this.restThreshold)&&Te(this._target.y,this._targetEnd.y,this.restThreshold)&&Te(this._target.z,this._targetEnd.z,this.restThreshold)&&Te(this._spherical.theta,this._sphericalEnd.theta,this.restThreshold)&&Te(this._spherical.phi,this._sphericalEnd.phi,this.restThreshold)&&Te(this._spherical.radius,this._sphericalEnd.radius,this.restThreshold);return this._createOnRestPromise(u)}lerpLookAt(e,t,n,r,i,o,a,c,l,u,h,d,f,m=!1){this._isUserControllingRotate=!1,this._isUserControllingDolly=!1,this._isUserControllingTruck=!1,this._lastDollyDirection=fr.NONE,this._changedDolly=0;const p=ge.set(r,i,o),g=xe.set(e,t,n);Wt.setFromVector3(g.sub(p).applyQuaternion(this._yAxisUpSpace));const _=mr.set(u,h,d),w=xe.set(a,c,l);vi.setFromVector3(w.sub(_).applyQuaternion(this._yAxisUpSpace)),this._targetEnd.copy(p.lerp(_,f));const k=vi.theta-Wt.theta,v=vi.phi-Wt.phi,y=vi.radius-Wt.radius;this._sphericalEnd.set(Wt.radius+y*f,Wt.phi+v*f,Wt.theta+k*f),this.normalizeRotations(),this._needsUpdate=!0,m||(this._target.copy(this._targetEnd),this._spherical.copy(this._sphericalEnd));const T=!m||Te(this._target.x,this._targetEnd.x,this.restThreshold)&&Te(this._target.y,this._targetEnd.y,this.restThreshold)&&Te(this._target.z,this._targetEnd.z,this.restThreshold)&&Te(this._spherical.theta,this._sphericalEnd.theta,this.restThreshold)&&Te(this._spherical.phi,this._sphericalEnd.phi,this.restThreshold)&&Te(this._spherical.radius,this._sphericalEnd.radius,this.restThreshold);return this._createOnRestPromise(T)}setPosition(e,t,n,r=!1){return this.setLookAt(e,t,n,this._targetEnd.x,this._targetEnd.y,this._targetEnd.z,r)}setTarget(e,t,n,r=!1){const i=this.getPosition(ge),o=this.setLookAt(i.x,i.y,i.z,e,t,n,r);return this._sphericalEnd.phi=nn(this._sphericalEnd.phi,this.minPolarAngle,this.maxPolarAngle),o}setFocalOffset(e,t,n,r=!1){this._isUserControllingOffset=!1,this._focalOffsetEnd.set(e,t,n),this._needsUpdate=!0,r||this._focalOffset.copy(this._focalOffsetEnd);const i=!r||Te(this._focalOffset.x,this._focalOffsetEnd.x,this.restThreshold)&&Te(this._focalOffset.y,this._focalOffsetEnd.y,this.restThreshold)&&Te(this._focalOffset.z,this._focalOffsetEnd.z,this.restThreshold);return this._createOnRestPromise(i)}setOrbitPoint(e,t,n){this._camera.updateMatrixWorld(),_n.setFromMatrixColumn(this._camera.matrixWorldInverse,0),yn.setFromMatrixColumn(this._camera.matrixWorldInverse,1),Is.setFromMatrixColumn(this._camera.matrixWorldInverse,2);const r=ge.set(e,t,n),i=r.distanceTo(this._camera.position),o=r.sub(this._camera.position);_n.multiplyScalar(o.x),yn.multiplyScalar(o.y),Is.multiplyScalar(o.z),ge.copy(_n).add(yn).add(Is),ge.z=ge.z+i,this.dollyTo(i,!1),this.setFocalOffset(-ge.x,ge.y,-ge.z,!1),this.moveTo(e,t,n,!1)}setBoundary(e){if(!e){this._boundary.min.set(-1/0,-1/0,-1/0),this._boundary.max.set(1/0,1/0,1/0),this._needsUpdate=!0;return}this._boundary.copy(e),this._boundary.clampPoint(this._targetEnd,this._targetEnd),this._needsUpdate=!0}setViewport(e,t,n,r){if(e===null){this._viewport=null;return}this._viewport=this._viewport||new ue.Vector4,typeof e=="number"?this._viewport.set(e,t,n,r):this._viewport.copy(e)}getDistanceToFitBox(e,t,n,r=!1){if(jc(this._camera,"getDistanceToFitBox"))return this._spherical.radius;const i=e/t,o=this._camera.getEffectiveFOV()*mi,a=this._camera.aspect;return((r?i>a:it.pointerId===e)}_findPointerByMouseButton(e){return this._activePointers.find(t=>t.mouseButton===e)}_disposePointer(e){this._activePointers.splice(this._activePointers.indexOf(e),1)}_encloseToBoundary(e,t,n){const r=t.lengthSq();if(r===0)return e;const i=xe.copy(t).add(e),a=this._boundary.clampPoint(i,mr).sub(i),c=a.lengthSq();if(c===0)return e.add(t);if(c===r)return e;if(n===0)return e.add(t).add(a);{const l=1+n*c/t.dot(a);return e.add(xe.copy(t).multiplyScalar(l)).add(a.multiplyScalar(1-n))}}_updateNearPlaneCorners(){if(Ns(this._camera)){const e=this._camera,t=e.near,n=e.getEffectiveFOV()*mi,r=Math.tan(n*.5)*t,i=r*e.aspect;this._nearPlaneCorners[0].set(-i,-r,0),this._nearPlaneCorners[1].set(i,-r,0),this._nearPlaneCorners[2].set(i,r,0),this._nearPlaneCorners[3].set(-i,r,0)}else if(os(this._camera)){const e=this._camera,t=1/e.zoom,n=e.left*t,r=e.right*t,i=e.top*t,o=e.bottom*t;this._nearPlaneCorners[0].set(n,i,0),this._nearPlaneCorners[1].set(r,i,0),this._nearPlaneCorners[2].set(r,o,0),this._nearPlaneCorners[3].set(n,o,0)}}_collisionTest(){let e=1/0;if(!(this.colliderMeshes.length>=1)||jc(this._camera,"_collisionTest"))return e;const n=this._getTargetDirection(yi);Bc.lookAt(Zh,n,this._camera.up);for(let r=0;r<4;r++){const i=xe.copy(this._nearPlaneCorners[r]);i.applyMatrix4(Bc);const o=mr.addVectors(this._target,i);Wo.set(o,n),Wo.far=this._spherical.radius+1;const a=Wo.intersectObjects(this.colliderMeshes);a.length!==0&&a[0].distance{const n=()=>{this.removeEventListener("rest",n),t()};this.addEventListener("rest",n)}))}_addAllEventListeners(e){}_removeAllEventListeners(){}get dampingFactor(){return console.warn(".dampingFactor has been deprecated. use smoothTime (in seconds) instead."),0}set dampingFactor(e){console.warn(".dampingFactor has been deprecated. use smoothTime (in seconds) instead.")}get draggingDampingFactor(){return console.warn(".draggingDampingFactor has been deprecated. use draggingSmoothTime (in seconds) instead."),0}set draggingDampingFactor(e){console.warn(".draggingDampingFactor has been deprecated. use draggingSmoothTime (in seconds) instead.")}static createBoundingSphere(e,t=new ue.Sphere){const n=t,r=n.center;gr.makeEmpty(),e.traverseVisible(o=>{o.isMesh&&gr.expandByObject(o)}),gr.getCenter(r);let i=0;return e.traverseVisible(o=>{if(!o.isMesh)return;const a=o,c=a.geometry.clone();c.applyMatrix4(a.matrixWorld);const u=c.attributes.position;for(let h=0,d=u.count;h{b.useMemo(()=>{Wc.install({THREE:ly}),op({CameraControlsImpl:Wc})},[]);const{camera:t,domElement:n,makeDefault:r,onStart:i,onEnd:o,onChange:a,regress:c,...l}=s,u=We(y=>y.camera),h=We(y=>y.gl),d=We(y=>y.invalidate),f=We(y=>y.events),m=We(y=>y.setEvents),p=We(y=>y.set),g=We(y=>y.get),_=We(y=>y.performance),w=t||u,k=n||f.connected||h.domElement,v=b.useMemo(()=>new Wc(w),[w]);return An((y,T)=>{v.enabled&&v.update(T)},-1),b.useEffect(()=>(v.connect(k),()=>void v.disconnect()),[k,v]),b.useEffect(()=>{const y=x=>{d(),c&&_.regress(),a&&a(x)},T=x=>{i&&i(x)},E=x=>{o&&o(x)};return v.addEventListener("update",y),v.addEventListener("controlstart",T),v.addEventListener("controlend",E),()=>{v.removeEventListener("update",y),v.removeEventListener("controlstart",T),v.removeEventListener("controlend",E)}},[v,i,o,d,m,c,a]),b.useEffect(()=>{if(r){const y=g().controls;return p({controls:v}),()=>p({controls:y})}},[r,v]),b.createElement("primitive",Oe({ref:e,object:v},l))});ke.func.isRequired,ke.arrayOf(ke.oneOfType([ke.element,ke.func])).isRequired;const td=new yo,nd=new yo,qo=[],bi=new fp;class v1 extends hy{constructor(){super(),this.color=new du("white"),this.instance={current:void 0},this.instanceKey={current:void 0}}get geometry(){var e;return(e=this.instance.current)==null?void 0:e.geometry}raycast(e,t){const n=this.instance.current;if(!n||!n.geometry||!n.material)return;bi.geometry=n.geometry;const r=n.matrixWorld,i=n.userData.instances.indexOf(this.instanceKey);if(!(i===-1||i>n.count)){n.getMatrixAt(i,td),nd.multiplyMatrices(r,td),bi.matrixWorld=nd,n.material instanceof dy?bi.material.side=n.material.side:bi.material.side=n.material[0].side,bi.raycast(e,qo);for(let o=0,a=qo.length;o{b.useMemo(()=>op({PositionMesh:v1}),[]);const r=b.useRef(),{subscribe:i,getParent:o}=b.useContext(s||Op);return b.useLayoutEffect(()=>i(r),[]),b.createElement("positionMesh",Oe({instance:o(),instanceKey:r,ref:lu([n,r])},t),e)}),x1=b.forwardRef(({children:s,range:e,limit:t=1e3,frames:n=1/0,...r},i)=>{const[{context:o,instance:a}]=b.useState(()=>{const g=b.createContext(null);return{context:g,instance:b.forwardRef((_,w)=>b.createElement(Ap,Oe({context:g},_,{ref:w})))}}),c=b.useRef(null),[l,u]=b.useState([]),[[h,d]]=b.useState(()=>{const g=new Float32Array(t*16);for(let _=0;_1))]});b.useEffect(()=>{c.current.instanceMatrix.needsUpdate=!0});let f=0,m=0;An(()=>{if(n===1/0||f({getParent:()=>c,subscribe:g=>(u(_=>[..._,g]),()=>u(_=>_.filter(w=>w.current!==g.current)))}),[]);return b.createElement("instancedMesh",Oe({userData:{instances:l},matrixAutoUpdate:!1,ref:lu([i,c]),args:[null,null,0],raycast:()=>null},r),b.createElement("instancedBufferAttribute",{attach:"instanceMatrix",count:h.length/16,array:h,itemSize:16,usage:Nh}),b.createElement("instancedBufferAttribute",{attach:"instanceColor",count:d.length/3,array:d,itemSize:3,usage:Nh}),typeof s=="function"?b.createElement(o.Provider,{value:p},s(a)):b.createElement(Op.Provider,{value:p},s))});function w1({all:s,scene:e,camera:t}){const n=We(({gl:o})=>o),r=We(({camera:o})=>o),i=We(({scene:o})=>o);return b.useLayoutEffect(()=>{const o=[];s&&(e||i).traverse(l=>{l.visible===!1&&(o.push(l),l.visible=!0)}),n.compile(e||i,t||r);const a=new fy(128);new py(.01,1e5,a).update(n,e||i),a.dispose(),o.forEach(l=>l.visible=!1)},[]),null}function cd({pixelated:s}){const e=We(o=>o.gl),t=We(o=>o.internal.active),n=We(o=>o.performance.current),r=We(o=>o.viewport.initialDpr),i=We(o=>o.setDpr);return b.useEffect(()=>{const o=e.domElement;return()=>{t&&i(r),s&&o&&(o.style.imageRendering="auto")}},[]),b.useEffect(()=>{i(n*r),s&&e.domElement&&(e.domElement.style.imageRendering=n===1?"auto":"pixelated")},[n]),null}function ld(){const s=We(n=>n.get),e=We(n=>n.setEvents),t=We(n=>n.performance.current);return b.useEffect(()=>{const n=s().events.enabled;return()=>e({enabled:n})},[]),b.useEffect(()=>e({enabled:t===1}),[t]),null}const k1=b.createContext(null);function T1({children:s,enabled:e=!0}){const[t,n]=b.useState([]),r=b.useMemo(()=>({selected:t,select:n,enabled:e}),[t,n,e]);return V.jsx(k1.Provider,{value:r,children:s})}function E1(s,e){typeof s=="function"?s(e):s!=null&&(s.current=e)}function Dp(...s){return e=>s.forEach(t=>E1(t,e))}function Jr(...s){return b.useCallback(Dp(...s),s)}const Rp=b.forwardRef((s,e)=>{const{children:t,...n}=s,r=b.Children.toArray(t),i=r.find(C1);if(i){const o=i.props.children,a=r.map(c=>c===i?b.Children.count(o)>1?b.Children.only(null):b.isValidElement(o)?o.props.children:null:c);return b.createElement(gl,Oe({},n,{ref:e}),b.isValidElement(o)?b.cloneElement(o,void 0,a):null)}return b.createElement(gl,Oe({},n,{ref:e}),t)});Rp.displayName="Slot";const gl=b.forwardRef((s,e)=>{const{children:t,...n}=s;return b.isValidElement(t)?b.cloneElement(t,{...S1(n,t.props),ref:e?Dp(e,t.ref):t.ref}):b.Children.count(t)>1?b.Children.only(null):null});gl.displayName="SlotClone";const Pp=({children:s})=>b.createElement(b.Fragment,null,s);function C1(s){return b.isValidElement(s)&&s.type===Pp}function S1(s,e){const t={...e};for(const n in e){const r=s[n],i=e[n];/^on[A-Z]/.test(n)?r&&i?t[n]=(...a)=>{i(...a),r(...a)}:r&&(t[n]=r):n==="style"?t[n]={...r,...i}:n==="className"&&(t[n]=[r,i].filter(Boolean).join(" "))}return{...s,...t}}const O1=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],ir=O1.reduce((s,e)=>{const t=b.forwardRef((n,r)=>{const{asChild:i,...o}=n,a=i?Rp:e;return b.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),b.createElement(a,Oe({},o,{ref:r}))});return t.displayName=`Primitive.${e}`,{...s,[e]:t}},{});function A1(s,e){s&&cu.flushSync(()=>s.dispatchEvent(e))}const D1=b.forwardRef((s,e)=>{var t;const{container:n=globalThis==null||(t=globalThis.document)===null||t===void 0?void 0:t.body,...r}=s;return n?ep.createPortal(b.createElement(ir.div,Oe({},r,{ref:e})),n):null}),R1=D1;var ud=Object.prototype.hasOwnProperty;function Vi(s,e){var t,n;if(s===e)return!0;if(s&&e&&(t=s.constructor)===e.constructor){if(t===Date)return s.getTime()===e.getTime();if(t===RegExp)return s.toString()===e.toString();if(t===Array){if((n=s.length)===e.length)for(;n--&&Vi(s[n],e[n]););return n===-1}if(!t||typeof s=="object"){n=0;for(t in s)if(ud.call(s,t)&&++n&&!ud.call(e,t)||!(t in e)||!Vi(s[t],e[t]))return!1;return Object.keys(e).length===n}}return s!==s&&e!==e}function bo(s,e){if(Object.is(s,e))return!0;if(typeof s!="object"||s===null||typeof e!="object"||e===null)return!1;const t=Object.keys(s);if(t.length!==Object.keys(e).length)return!1;for(let n=0;n0;)o[a]=arguments[a+4];s.call(this,o),s.captureStackTrace&&s.captureStackTrace(this,e),this.rule=t,this.value=n,this.cause=r,this.target=i}return s&&(e.__proto__=s),e.prototype=Object.create(s&&s.prototype),e.prototype.constructor=e,e}(Error),En=function(e,t){e===void 0&&(e=[]),t===void 0&&(t=[]),this.chain=e,this.nextRuleModifiers=t};En.prototype._applyRule=function(e,t){var n=this;return function(){for(var r=[],i=arguments.length;i--;)r[i]=arguments[i];return n.chain.push(new cc(t,e.apply(n,r),r,n.nextRuleModifiers)),n.nextRuleModifiers=[],n}};En.prototype._applyModifier=function(e,t){return this.nextRuleModifiers.push(new P1(t,e.simple,e.async)),this};En.prototype._clone=function(){return new En(this.chain.slice(),this.nextRuleModifiers.slice())};En.prototype.test=function(e){return this.chain.every(function(t){return t._test(e)})};En.prototype.testAll=function(e){var t=[];return this.chain.forEach(function(n){try{n._check(e)}catch(r){t.push(new bu(n,e,r))}}),t};En.prototype.check=function(e){this.chain.forEach(function(t){try{t._check(e)}catch(n){throw new bu(t,e,n)}})};En.prototype.testAsync=function(e){var t=this;return new Promise(function(n,r){Ip(e,t.chain.slice(),n,r)})};function Ip(s,e,t,n){if(e.length){var r=e.shift();r._testAsync(s).then(function(){Ip(s,e,t,n)},function(i){n(new bu(r,s,i))})}else t(s)}var hd=function(s,e){return e&&typeof s=="string"&&s.trim().length===0?!0:s==null};function M1(s,e){return e===void 0&&(e=!1),{simple:function(t){return hd(t,e)||s.check(t)===void 0},async:function(t){return hd(t,e)||s.testAsync(t)}}}function St(){return typeof Proxy<"u"?$p(new En):_l(new En)}var zi={};St.extend=function(s){Object.assign(zi,s)};St.clearCustomRules=function(){zi={}};function $p(s){return new Proxy(s,{get:function(t,n){if(n in t)return t[n];var r=$p(s._clone());if(n in ya)return r._applyModifier(ya[n],n);if(n in zi)return r._applyRule(zi[n],n);if(n in yl)return r._applyRule(yl[n],n)}})}function _l(s){var e=function(r,i){return Object.keys(r).forEach(function(o){i[o]=function(){for(var a=[],c=arguments.length;c--;)a[c]=arguments[c];var l=_l(i._clone()),u=l._applyRule(r[o],o).apply(void 0,a);return u}}),i},t=e(yl,s),n=e(zi,t);return Object.keys(ya).forEach(function(r){Object.defineProperty(n,r,{get:function(){var i=_l(n._clone());return i._applyModifier(ya[r],r)}})}),n}var ya={not:{simple:function(s){return function(e){return!s(e)}},async:function(s){return function(e){return Promise.resolve(s(e)).then(function(t){return!t}).catch(function(){return!0})}}},some:{simple:function(s){return function(e){return Ho(e).some(function(t){try{return s(t)}catch{return!1}})}},async:function(s){return function(e){return Promise.all(Ho(e).map(function(t){try{return s(t).catch(function(){return!1})}catch{return!1}})).then(function(t){return t.some(Boolean)})}}},every:{simple:function(s){return function(e){return e!==!1&&Ho(e).every(s)}},async:function(s){return function(e){return Promise.all(Ho(e).map(s)).then(function(t){return t.every(Boolean)})}}},strict:{simple:function(s,e){return function(t){return dd(e)&&t&&typeof t=="object"?Object.keys(e.args[0]).length===Object.keys(t).length&&s(t):s(t)}},async:function(s,e){return function(t){return Promise.resolve(s(t)).then(function(n){return dd(e)&&t&&typeof t=="object"?Object.keys(e.args[0]).length===Object.keys(t).length&&n:n}).catch(function(){return!1})}}}};function dd(s){return s&&s.name==="schema"&&s.args.length>0&&typeof s.args[0]=="object"}function Ho(s){return typeof s=="string"?s.split(""):s}var yl={equal:function(s){return function(e){return e==s}},exact:function(s){return function(e){return e===s}},number:function(s){return s===void 0&&(s=!0),function(e){return typeof e=="number"&&(s||isFinite(e))}},integer:function(){return function(s){var e=Number.isInteger||N1;return e(s)}},numeric:function(){return function(s){return!isNaN(parseFloat(s))&&isFinite(s)}},string:function(){return _r("string")},boolean:function(){return _r("boolean")},undefined:function(){return _r("undefined")},null:function(){return _r("null")},array:function(){return _r("array")},object:function(){return _r("object")},instanceOf:function(s){return function(e){return e instanceof s}},pattern:function(s){return function(e){return s.test(e)}},lowercase:function(){return function(s){return typeof s=="boolean"||s===s.toLowerCase()&&s.trim()!==""}},uppercase:function(){return function(s){return s===s.toUpperCase()&&s.trim()!==""}},vowel:function(){return function(s){return/^[aeiou]+$/i.test(s)}},consonant:function(){return function(s){return/^(?=[^aeiou])([a-z]+)$/i.test(s)}},first:function(s){return function(e){return e[0]==s}},last:function(s){return function(e){return e[e.length-1]==s}},empty:function(){return function(s){return s.length===0}},length:function(s,e){return function(t){return t.length>=s&&t.length<=(e||s)}},minLength:function(s){return function(e){return e.length>=s}},maxLength:function(s){return function(e){return e.length<=s}},negative:function(){return function(s){return s<0}},positive:function(){return function(s){return s>=0}},between:function(s,e){return function(t){return t>=s&&t<=e}},range:function(s,e){return function(t){return t>=s&&t<=e}},lessThan:function(s){return function(e){return es}},greaterThanOrEqual:function(s){return function(e){return e>=s}},even:function(){return function(s){return s%2===0}},odd:function(){return function(s){return s%2!==0}},includes:function(s){return function(e){return~e.indexOf(s)}},schema:function(s){return I1(s)},passesAnyOf:function(){for(var s=[],e=arguments.length;e--;)s[e]=arguments[e];return function(t){return s.some(function(n){return n.test(t)})}},optional:M1};function _r(s){return function(e){return Array.isArray(e)&&s==="array"||e===null&&s==="null"||typeof e===s}}function N1(s){return typeof s=="number"&&isFinite(s)&&Math.floor(s)===s}function I1(s){return{simple:function(e){var t=[];if(Object.keys(s).forEach(function(n){var r=s[n];try{r.check((e||{})[n])}catch(i){i.target=n,t.push(i)}}),t.length>0)throw t;return!0},async:function(e){var t=[],n=Object.keys(s).map(function(r){var i=s[r];return i.testAsync((e||{})[r]).catch(function(o){o.target=r,t.push(o)})});return Promise.all(n).then(function(){if(t.length>0)throw t;return!0})}}}function Vn(s,e,{checkForDefaultPrevented:t=!0}={}){return function(r){if(s==null||s(r),t===!1||!r.defaultPrevented)return e==null?void 0:e(r)}}function Fp(s,e=[]){let t=[];function n(i,o){const a=b.createContext(o),c=t.length;t=[...t,o];function l(h){const{scope:d,children:f,...m}=h,p=(d==null?void 0:d[s][c])||a,g=b.useMemo(()=>m,Object.values(m));return b.createElement(p.Provider,{value:g},f)}function u(h,d){const f=(d==null?void 0:d[s][c])||a,m=b.useContext(f);if(m)return m;if(o!==void 0)return o;throw new Error(`\`${h}\` must be used within \`${i}\``)}return l.displayName=i+"Provider",[l,u]}const r=()=>{const i=t.map(o=>b.createContext(o));return function(a){const c=(a==null?void 0:a[s])||i;return b.useMemo(()=>({[`__scope${s}`]:{...a,[s]:c}}),[a,c])}};return r.scopeName=s,[n,$1(r,...e)]}function $1(...s){const e=s[0];if(s.length===1)return e;const t=()=>{const n=s.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(i){const o=n.reduce((a,{useScope:c,scopeName:l})=>{const h=c(i)[`__scope${l}`];return{...a,...h}},{});return b.useMemo(()=>({[`__scope${e.scopeName}`]:o}),[o])}};return t.scopeName=e.scopeName,t}function ei(s){const e=b.useRef(s);return b.useEffect(()=>{e.current=s}),b.useMemo(()=>(...t)=>{var n;return(n=e.current)===null||n===void 0?void 0:n.call(e,...t)},[])}function F1(s,e=globalThis==null?void 0:globalThis.document){const t=ei(s);b.useEffect(()=>{const n=r=>{r.key==="Escape"&&t(r)};return e.addEventListener("keydown",n),()=>e.removeEventListener("keydown",n)},[t,e])}const vl="dismissableLayer.update",L1="dismissableLayer.pointerDownOutside",j1="dismissableLayer.focusOutside";let fd;const V1=b.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),z1=b.forwardRef((s,e)=>{var t;const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:o,onInteractOutside:a,onDismiss:c,...l}=s,u=b.useContext(V1),[h,d]=b.useState(null),f=(t=h==null?void 0:h.ownerDocument)!==null&&t!==void 0?t:globalThis==null?void 0:globalThis.document,[,m]=b.useState({}),p=Jr(e,x=>d(x)),g=Array.from(u.layers),[_]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),w=g.indexOf(_),k=h?g.indexOf(h):-1,v=u.layersWithOutsidePointerEventsDisabled.size>0,y=k>=w,T=U1(x=>{const C=x.target,S=[...u.branches].some(D=>D.contains(C));!y||S||(i==null||i(x),a==null||a(x),x.defaultPrevented||c==null||c())},f),E=B1(x=>{const C=x.target;[...u.branches].some(D=>D.contains(C))||(o==null||o(x),a==null||a(x),x.defaultPrevented||c==null||c())},f);return F1(x=>{k===u.layers.size-1&&(r==null||r(x),!x.defaultPrevented&&c&&(x.preventDefault(),c()))},f),b.useEffect(()=>{if(h)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(fd=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(h)),u.layers.add(h),pd(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=fd)}},[h,f,n,u]),b.useEffect(()=>()=>{h&&(u.layers.delete(h),u.layersWithOutsidePointerEventsDisabled.delete(h),pd())},[h,u]),b.useEffect(()=>{const x=()=>m({});return document.addEventListener(vl,x),()=>document.removeEventListener(vl,x)},[]),b.createElement(ir.div,Oe({},l,{ref:p,style:{pointerEvents:v?y?"auto":"none":void 0,...s.style},onFocusCapture:Vn(s.onFocusCapture,E.onFocusCapture),onBlurCapture:Vn(s.onBlurCapture,E.onBlurCapture),onPointerDownCapture:Vn(s.onPointerDownCapture,T.onPointerDownCapture)}))});function U1(s,e=globalThis==null?void 0:globalThis.document){const t=ei(s),n=b.useRef(!1),r=b.useRef(()=>{});return b.useEffect(()=>{const i=a=>{if(a.target&&!n.current){let l=function(){Lp(L1,t,c,{discrete:!0})};const c={originalEvent:a};a.pointerType==="touch"?(e.removeEventListener("click",r.current),r.current=l,e.addEventListener("click",r.current,{once:!0})):l()}else e.removeEventListener("click",r.current);n.current=!1},o=window.setTimeout(()=>{e.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(o),e.removeEventListener("pointerdown",i),e.removeEventListener("click",r.current)}},[e,t]),{onPointerDownCapture:()=>n.current=!0}}function B1(s,e=globalThis==null?void 0:globalThis.document){const t=ei(s),n=b.useRef(!1);return b.useEffect(()=>{const r=i=>{i.target&&!n.current&&Lp(j1,t,{originalEvent:i},{discrete:!1})};return e.addEventListener("focusin",r),()=>e.removeEventListener("focusin",r)},[e,t]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function pd(){const s=new CustomEvent(vl);document.dispatchEvent(s)}function Lp(s,e,t,{discrete:n}){const r=t.originalEvent.target,i=new CustomEvent(s,{bubbles:!1,cancelable:!0,detail:t});e&&r.addEventListener(s,e,{once:!0}),n?A1(r,i):r.dispatchEvent(i)}const Fr=globalThis!=null&&globalThis.document?b.useLayoutEffect:()=>{},W1=k_["useId".toString()]||(()=>{});let q1=0;function H1(s){const[e,t]=b.useState(W1());return Fr(()=>{s||t(n=>n??String(q1++))},[s]),s||(e?`radix-${e}`:"")}const Y1=b.forwardRef((s,e)=>{const{children:t,width:n=10,height:r=5,...i}=s;return b.createElement(ir.svg,Oe({},i,{ref:e,width:n,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),s.asChild?t:b.createElement("polygon",{points:"0,0 30,0 15,10"}))}),G1=Y1;function X1(s){const[e,t]=b.useState(void 0);return Fr(()=>{if(s){t({width:s.offsetWidth,height:s.offsetHeight});const n=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;const i=r[0];let o,a;if("borderBoxSize"in i){const c=i.borderBoxSize,l=Array.isArray(c)?c[0]:c;o=l.inlineSize,a=l.blockSize}else o=s.offsetWidth,a=s.offsetHeight;t({width:o,height:a})});return n.observe(s,{box:"border-box"}),()=>n.unobserve(s)}else t(void 0)},[s]),e}const jp="Popper",[Vp,zp]=Fp(jp),[Z1,Up]=Vp(jp),K1=s=>{const{__scopePopper:e,children:t}=s,[n,r]=b.useState(null);return b.createElement(Z1,{scope:e,anchor:n,onAnchorChange:r},t)},Q1="PopperAnchor",J1=b.forwardRef((s,e)=>{const{__scopePopper:t,virtualRef:n,...r}=s,i=Up(Q1,t),o=b.useRef(null),a=Jr(e,o);return b.useEffect(()=>{i.onAnchorChange((n==null?void 0:n.current)||o.current)}),n?null:b.createElement(ir.div,Oe({},r,{ref:a}))}),Bp="PopperContent",[ev,tv]=Vp(Bp),nv=b.forwardRef((s,e)=>{var t,n,r,i,o,a,c,l;const{__scopePopper:u,side:h="bottom",sideOffset:d=0,align:f="center",alignOffset:m=0,arrowPadding:p=0,avoidCollisions:g=!0,collisionBoundary:_=[],collisionPadding:w=0,sticky:k="partial",hideWhenDetached:v=!1,updatePositionStrategy:y="optimized",onPlaced:T,...E}=s,x=Up(Bp,u),[C,S]=b.useState(null),D=Jr(e,H=>S(H)),[O,L]=b.useState(null),j=X1(O),W=(t=j==null?void 0:j.width)!==null&&t!==void 0?t:0,B=(n=j==null?void 0:j.height)!==null&&n!==void 0?n:0,U=h+(f!=="center"?"-"+f:""),z=typeof w=="number"?w:{top:0,right:0,bottom:0,left:0,...w},X=Array.isArray(_)?_:[_],K=X.length>0,ee={padding:z,boundary:X.filter(ov),altBoundary:K},{refs:I,floatingStyles:F,placement:A,isPositioned:N,middlewareData:Y}=s1({strategy:"fixed",placement:U,whileElementsMounted:(...H)=>e1(...H,{animationFrame:y==="always"}),elements:{reference:x.anchor},middleware:[My({mainAxis:d+B,alignmentAxis:m}),g&&Ny({mainAxis:!0,crossAxis:!1,limiter:k==="partial"?Iy():void 0,...ee}),g&&Dy({...ee}),$y({...ee,apply:({elements:H,rects:P,availableWidth:R,availableHeight:Q})=>{const{width:se,height:ce}=P.reference,ye=H.floating.style;ye.setProperty("--radix-popper-available-width",`${R}px`),ye.setProperty("--radix-popper-available-height",`${Q}px`),ye.setProperty("--radix-popper-anchor-width",`${se}px`),ye.setProperty("--radix-popper-anchor-height",`${ce}px`)}}),O&&n1({element:O,padding:p}),av({arrowWidth:W,arrowHeight:B}),v&&Ry({strategy:"referenceHidden",...ee})]}),[$,q]=Wp(A),oe=ei(T);Fr(()=>{N&&(oe==null||oe())},[N,oe]);const re=(r=Y.arrow)===null||r===void 0?void 0:r.x,ie=(i=Y.arrow)===null||i===void 0?void 0:i.y,ne=((o=Y.arrow)===null||o===void 0?void 0:o.centerOffset)!==0,[me,te]=b.useState();return Fr(()=>{C&&te(window.getComputedStyle(C).zIndex)},[C]),b.createElement("div",{ref:I.setFloating,"data-radix-popper-content-wrapper":"",style:{...F,transform:N?F.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:me,"--radix-popper-transform-origin":[(a=Y.transformOrigin)===null||a===void 0?void 0:a.x,(c=Y.transformOrigin)===null||c===void 0?void 0:c.y].join(" ")},dir:s.dir},b.createElement(ev,{scope:u,placedSide:$,onArrowChange:L,arrowX:re,arrowY:ie,shouldHideArrow:ne},b.createElement(ir.div,Oe({"data-side":$,"data-align":q},E,{ref:D,style:{...E.style,animation:N?void 0:"none",opacity:(l=Y.hide)!==null&&l!==void 0&&l.referenceHidden?0:void 0}}))))}),sv="PopperArrow",rv={top:"bottom",right:"left",bottom:"top",left:"right"},iv=b.forwardRef(function(e,t){const{__scopePopper:n,...r}=e,i=tv(sv,n),o=rv[i.placedSide];return b.createElement("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0}},b.createElement(G1,Oe({},r,{ref:t,style:{...r.style,display:"block"}})))});function ov(s){return s!==null}const av=s=>({name:"transformOrigin",options:s,fn(e){var t,n,r,i,o;const{placement:a,rects:c,middlewareData:l}=e,h=((t=l.arrow)===null||t===void 0?void 0:t.centerOffset)!==0,d=h?0:s.arrowWidth,f=h?0:s.arrowHeight,[m,p]=Wp(a),g={start:"0%",center:"50%",end:"100%"}[p],_=((n=(r=l.arrow)===null||r===void 0?void 0:r.x)!==null&&n!==void 0?n:0)+d/2,w=((i=(o=l.arrow)===null||o===void 0?void 0:o.y)!==null&&i!==void 0?i:0)+f/2;let k="",v="";return m==="bottom"?(k=h?g:`${_}px`,v=`${-f}px`):m==="top"?(k=h?g:`${_}px`,v=`${c.floating.height+f}px`):m==="right"?(k=`${-f}px`,v=h?g:`${w}px`):m==="left"&&(k=`${c.floating.width+f}px`,v=h?g:`${w}px`),{data:{x:k,y:v}}}});function Wp(s){const[e,t="center"]=s.split("-");return[e,t]}const cv=K1,lv=J1,uv=nv,hv=iv;function dv(s,e){return b.useReducer((t,n)=>{const r=e[t][n];return r??t},s)}const qp=s=>{const{present:e,children:t}=s,n=fv(e),r=typeof t=="function"?t({present:n.isPresent}):b.Children.only(t),i=Jr(n.ref,r.ref);return typeof t=="function"||n.isPresent?b.cloneElement(r,{ref:i}):null};qp.displayName="Presence";function fv(s){const[e,t]=b.useState(),n=b.useRef({}),r=b.useRef(s),i=b.useRef("none"),o=s?"mounted":"unmounted",[a,c]=dv(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return b.useEffect(()=>{const l=Yo(n.current);i.current=a==="mounted"?l:"none"},[a]),Fr(()=>{const l=n.current,u=r.current;if(u!==s){const d=i.current,f=Yo(l);s?c("MOUNT"):f==="none"||(l==null?void 0:l.display)==="none"?c("UNMOUNT"):c(u&&d!==f?"ANIMATION_OUT":"UNMOUNT"),r.current=s}},[s,c]),Fr(()=>{if(e){const l=h=>{const f=Yo(n.current).includes(h.animationName);h.target===e&&f&&cu.flushSync(()=>c("ANIMATION_END"))},u=h=>{h.target===e&&(i.current=Yo(n.current))};return e.addEventListener("animationstart",u),e.addEventListener("animationcancel",l),e.addEventListener("animationend",l),()=>{e.removeEventListener("animationstart",u),e.removeEventListener("animationcancel",l),e.removeEventListener("animationend",l)}}else c("ANIMATION_END")},[e,c]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:b.useCallback(l=>{l&&(n.current=getComputedStyle(l)),t(l)},[])}}function Yo(s){return(s==null?void 0:s.animationName)||"none"}function pv({prop:s,defaultProp:e,onChange:t=()=>{}}){const[n,r]=mv({defaultProp:e,onChange:t}),i=s!==void 0,o=i?s:n,a=ei(t),c=b.useCallback(l=>{if(i){const h=typeof l=="function"?l(s):l;h!==s&&a(h)}else r(l)},[i,s,r,a]);return[o,c]}function mv({defaultProp:s,onChange:e}){const t=b.useState(s),[n]=t,r=b.useRef(n),i=ei(e);return b.useEffect(()=>{r.current!==n&&(i(n),r.current=n)},[n,r,i]),t}const gv=b.forwardRef((s,e)=>b.createElement(ir.span,Oe({},s,{ref:e,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...s.style}}))),_v=gv,[lc,jP]=Fp("Tooltip",[zp]),uc=zp(),yv="TooltipProvider",bl="tooltip.open",[VP,xu]=lc(yv),wu="Tooltip",[vv,hc]=lc(wu),bv=s=>{const{__scopeTooltip:e,children:t,open:n,defaultOpen:r=!1,onOpenChange:i,disableHoverableContent:o,delayDuration:a}=s,c=xu(wu,s.__scopeTooltip),l=uc(e),[u,h]=b.useState(null),d=H1(),f=b.useRef(0),m=o??c.disableHoverableContent,p=a??c.delayDuration,g=b.useRef(!1),[_=!1,w]=pv({prop:n,defaultProp:r,onChange:E=>{E?(c.onOpen(),document.dispatchEvent(new CustomEvent(bl))):c.onClose(),i==null||i(E)}}),k=b.useMemo(()=>_?g.current?"delayed-open":"instant-open":"closed",[_]),v=b.useCallback(()=>{window.clearTimeout(f.current),g.current=!1,w(!0)},[w]),y=b.useCallback(()=>{window.clearTimeout(f.current),w(!1)},[w]),T=b.useCallback(()=>{window.clearTimeout(f.current),f.current=window.setTimeout(()=>{g.current=!0,w(!0)},p)},[p,w]);return b.useEffect(()=>()=>window.clearTimeout(f.current),[]),b.createElement(cv,l,b.createElement(vv,{scope:e,contentId:d,open:_,stateAttribute:k,trigger:u,onTriggerChange:h,onTriggerEnter:b.useCallback(()=>{c.isOpenDelayed?T():v()},[c.isOpenDelayed,T,v]),onTriggerLeave:b.useCallback(()=>{m?y():window.clearTimeout(f.current)},[y,m]),onOpen:v,onClose:y,disableHoverableContent:m},t))},md="TooltipTrigger",xv=b.forwardRef((s,e)=>{const{__scopeTooltip:t,...n}=s,r=hc(md,t),i=xu(md,t),o=uc(t),a=b.useRef(null),c=Jr(e,a,r.onTriggerChange),l=b.useRef(!1),u=b.useRef(!1),h=b.useCallback(()=>l.current=!1,[]);return b.useEffect(()=>()=>document.removeEventListener("pointerup",h),[h]),b.createElement(lv,Oe({asChild:!0},o),b.createElement(ir.button,Oe({"aria-describedby":r.open?r.contentId:void 0,"data-state":r.stateAttribute},n,{ref:c,onPointerMove:Vn(s.onPointerMove,d=>{d.pointerType!=="touch"&&!u.current&&!i.isPointerInTransitRef.current&&(r.onTriggerEnter(),u.current=!0)}),onPointerLeave:Vn(s.onPointerLeave,()=>{r.onTriggerLeave(),u.current=!1}),onPointerDown:Vn(s.onPointerDown,()=>{l.current=!0,document.addEventListener("pointerup",h,{once:!0})}),onFocus:Vn(s.onFocus,()=>{l.current||r.onOpen()}),onBlur:Vn(s.onBlur,r.onClose),onClick:Vn(s.onClick,r.onClose)})))}),wv="TooltipPortal",[zP,kv]=lc(wv,{forceMount:void 0}),Ui="TooltipContent",Tv=b.forwardRef((s,e)=>{const t=kv(Ui,s.__scopeTooltip),{forceMount:n=t.forceMount,side:r="top",...i}=s,o=hc(Ui,s.__scopeTooltip);return b.createElement(qp,{present:n||o.open},o.disableHoverableContent?b.createElement(Hp,Oe({side:r},i,{ref:e})):b.createElement(Ev,Oe({side:r},i,{ref:e})))}),Ev=b.forwardRef((s,e)=>{const t=hc(Ui,s.__scopeTooltip),n=xu(Ui,s.__scopeTooltip),r=b.useRef(null),i=Jr(e,r),[o,a]=b.useState(null),{trigger:c,onClose:l}=t,u=r.current,{onPointerInTransitChange:h}=n,d=b.useCallback(()=>{a(null),h(!1)},[h]),f=b.useCallback((m,p)=>{const g=m.currentTarget,_={x:m.clientX,y:m.clientY},w=Dv(_,g.getBoundingClientRect()),k=Rv(_,w),v=Pv(p.getBoundingClientRect()),y=Nv([...k,...v]);a(y),h(!0)},[h]);return b.useEffect(()=>()=>d(),[d]),b.useEffect(()=>{if(c&&u){const m=g=>f(g,u),p=g=>f(g,c);return c.addEventListener("pointerleave",m),u.addEventListener("pointerleave",p),()=>{c.removeEventListener("pointerleave",m),u.removeEventListener("pointerleave",p)}}},[c,u,f,d]),b.useEffect(()=>{if(o){const m=p=>{const g=p.target,_={x:p.clientX,y:p.clientY},w=(c==null?void 0:c.contains(g))||(u==null?void 0:u.contains(g)),k=!Mv(_,o);w?d():k&&(d(),l())};return document.addEventListener("pointermove",m),()=>document.removeEventListener("pointermove",m)}},[c,u,o,l,d]),b.createElement(Hp,Oe({},s,{ref:i}))}),[Cv,Sv]=lc(wu,{isInside:!1}),Hp=b.forwardRef((s,e)=>{const{__scopeTooltip:t,children:n,"aria-label":r,onEscapeKeyDown:i,onPointerDownOutside:o,...a}=s,c=hc(Ui,t),l=uc(t),{onClose:u}=c;return b.useEffect(()=>(document.addEventListener(bl,u),()=>document.removeEventListener(bl,u)),[u]),b.useEffect(()=>{if(c.trigger){const h=d=>{const f=d.target;f!=null&&f.contains(c.trigger)&&u()};return window.addEventListener("scroll",h,{capture:!0}),()=>window.removeEventListener("scroll",h,{capture:!0})}},[c.trigger,u]),b.createElement(z1,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:h=>h.preventDefault(),onDismiss:u},b.createElement(uv,Oe({"data-state":c.stateAttribute},l,a,{ref:e,style:{...a.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"}}),b.createElement(Pp,null,n),b.createElement(Cv,{scope:t,isInside:!0},b.createElement(_v,{id:c.contentId,role:"tooltip"},r||n))))}),Ov="TooltipArrow",Av=b.forwardRef((s,e)=>{const{__scopeTooltip:t,...n}=s,r=uc(t);return Sv(Ov,t).isInside?null:b.createElement(hv,Oe({},r,n,{ref:e}))});function Dv(s,e){const t=Math.abs(e.top-s.y),n=Math.abs(e.bottom-s.y),r=Math.abs(e.right-s.x),i=Math.abs(e.left-s.x);switch(Math.min(t,n,r,i)){case i:return"left";case r:return"right";case t:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function Rv(s,e,t=5){const n=[];switch(e){case"top":n.push({x:s.x-t,y:s.y+t},{x:s.x+t,y:s.y+t});break;case"bottom":n.push({x:s.x-t,y:s.y-t},{x:s.x+t,y:s.y-t});break;case"left":n.push({x:s.x+t,y:s.y-t},{x:s.x+t,y:s.y+t});break;case"right":n.push({x:s.x-t,y:s.y-t},{x:s.x-t,y:s.y+t});break}return n}function Pv(s){const{top:e,right:t,bottom:n,left:r}=s;return[{x:r,y:e},{x:t,y:e},{x:t,y:n},{x:r,y:n}]}function Mv(s,e){const{x:t,y:n}=s;let r=!1;for(let i=0,o=e.length-1;in!=u>n&&t<(l-a)*(n-c)/(u-c)+a&&(r=!r)}return r}function Nv(s){const e=s.slice();return e.sort((t,n)=>t.xn.x?1:t.yn.y?1:0),Iv(e)}function Iv(s){if(s.length<=1)return s.slice();const e=[];for(let n=0;n=2;){const i=e[e.length-1],o=e[e.length-2];if((i.x-o.x)*(r.y-o.y)>=(i.y-o.y)*(r.x-o.x))e.pop();else break}e.push(r)}e.pop();const t=[];for(let n=s.length-1;n>=0;n--){const r=s[n];for(;t.length>=2;){const i=t[t.length-1],o=t[t.length-2];if((i.x-o.x)*(r.y-o.y)>=(i.y-o.y)*(r.x-o.x))t.pop();else break}t.push(r)}return t.pop(),e.length===1&&t.length===1&&e[0].x===t[0].x&&e[0].y===t[0].y?e:e.concat(t)}const $v=bv,Fv=xv,Lv=Tv,jv=Av;function Vv(s,e){if(s==null)return{};var t={},n=Object.keys(s),r,i;for(i=0;i=0)&&(t[r]=s[r]);return t}function Ae(s,e){if(s==null)return{};var t=Vv(s,e),n,r;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(s);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(s,n)&&(t[n]=s[n])}return t}let Be;(function(s){s[s.UNSUPPORTED_INPUT=0]="UNSUPPORTED_INPUT",s[s.NO_COMPONENT_FOR_TYPE=1]="NO_COMPONENT_FOR_TYPE",s[s.UNKNOWN_INPUT=2]="UNKNOWN_INPUT",s[s.DUPLICATE_KEYS=3]="DUPLICATE_KEYS",s[s.ALREADY_REGISTERED_TYPE=4]="ALREADY_REGISTERED_TYPE",s[s.CLIPBOARD_ERROR=5]="CLIPBOARD_ERROR",s[s.THEME_ERROR=6]="THEME_ERROR",s[s.PATH_DOESNT_EXIST=7]="PATH_DOESNT_EXIST",s[s.INPUT_TYPE_OVERRIDE=8]="INPUT_TYPE_OVERRIDE",s[s.EMPTY_KEY=9]="EMPTY_KEY"})(Be||(Be={}));const zv={[Be.UNSUPPORTED_INPUT]:(s,e)=>[`An input with type \`${s}\` input was found at path \`${e}\` but it's not supported yet.`],[Be.NO_COMPONENT_FOR_TYPE]:(s,e)=>[`Type \`${s}\` found at path \`${e}\` can't be displayed in panel because no component supports it yet.`],[Be.UNKNOWN_INPUT]:(s,e)=>[`input at path \`${s}\` is not recognized.`,e],[Be.DUPLICATE_KEYS]:(s,e,t)=>[`Key \`${s}\` of path \`${e}\` already exists at path \`${t}\`. Even nested keys need to be unique. Rename one of the keys.`],[Be.ALREADY_REGISTERED_TYPE]:s=>[`Type ${s} has already been registered. You can't register a component with the same type.`],[Be.CLIPBOARD_ERROR]:s=>["Error copying the value",s],[Be.THEME_ERROR]:(s,e)=>[`Error accessing the theme \`${s}.${e}\` value.`],[Be.PATH_DOESNT_EXIST]:s=>[`Error getting the value at path \`${s}\`. There is probably an error in your \`render\` function.`],[Be.PATH_DOESNT_EXIST]:s=>[`Error accessing the value at path \`${s}\``],[Be.INPUT_TYPE_OVERRIDE]:(s,e,t)=>[`Input at path \`${s}\` already exists with type: \`${e}\`. Its type cannot be overridden with type \`${t}\`.`],[Be.EMPTY_KEY]:()=>["Keys can not be empty, if you want to hide a label use whitespace."]};function Yp(s,e,...t){const[n,...r]=zv[e](...t);console[s]("LEVA: "+n,...r)}const Un=Yp.bind(null,"warn"),Uv=Yp.bind(null,"log"),Bv=["value"],Wv=["schema"],qv=["value"],Gp=[],Ks={};function gd(s){let{value:e}=s,t=Ae(s,Bv);for(let n of Gp){const r=n(e,t);if(r)return r}}function es(s,e){let{schema:t}=e,n=Ae(e,Wv);if(s in Ks){Un(Be.ALREADY_REGISTERED_TYPE,s);return}Gp.push((r,i)=>t(r,i)&&s),Ks[s]=n}function qc(s,e,t,n){const{normalize:r}=Ks[s];if(r)return r(e,t,n);if(typeof e!="object"||!("value"in e))return{value:e};const{value:i}=e,o=Ae(e,qv);return{value:i,settings:o}}function Hv(s,e,t,n,r,i){const{sanitize:o}=Ks[s];return o?o(e,t,n,r,i):e}function _d(s,e,t){const{format:n}=Ks[s];return n?n(e,t):e}function Yv(s,e,t){return e in s?Object.defineProperty(s,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):s[e]=t,s}function yd(s,e){var t=Object.keys(s);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(s);e&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(s,r).enumerable})),t.push.apply(t,n)}return t}function he(s){for(var e=1;es>t?t:s{if(s===""||typeof s=="number")return s;try{const e=as(s);if(!isNaN(e))return e}catch{}return parseFloat(s)},Xv=Math.log(10);function vd(s){let e=Math.abs(+String(s).replace(".",""));if(e===0)return .01;for(;e!==0&&e%10===0;)e/=10;const t=Math.floor(Math.log(e)/Xv)+1,n=Math.floor(Math.log10(Math.abs(s))),r=Math.pow(10,n-t);return Math.max(r,.001)}const va=(s,e,t)=>t===e?0:(bs(s,e,t)-e)/(t-e),ba=(s,e,t)=>s*(t-e)+e,Zv=()=>"_"+Math.random().toString(36).substr(2,9),bd=/\(([0-9+\-*/^ .]+)\)/,xd=/(\d+(?:\.\d+)?) ?\^ ?(\d+(?:\.\d+)?)/,wd=/(\d+(?:\.\d+)?) ?\* ?(\d+(?:\.\d+)?)/,kd=/(\d+(?:\.\d+)?) ?\/ ?(\d+(?:\.\d+)?)/,Td=/(\d+(?:\.\d+)?) ?\+ ?(\d+(?:\.\d+)?)/,Ed=/(\d+(?:\.\d+)?) ?- ?(\d+(?:\.\d+)?)/;function as(s){if(isNaN(Number(s)))if(bd.test(s)){const e=s.replace(bd,(t,n)=>String(as(n)));return as(e)}else if(xd.test(s)){const e=s.replace(xd,(t,n,r)=>String(Math.pow(Number(n),Number(r))));return as(e)}else if(wd.test(s)){const e=s.replace(wd,(t,n,r)=>String(Number(n)*Number(r)));return as(e)}else if(kd.test(s)){const e=s.replace(kd,(t,n,r)=>{if(r!=0)return String(Number(n)/Number(r));throw new Error("Division by zero")});return as(e)}else if(Td.test(s)){const e=s.replace(Td,(t,n,r)=>String(Number(n)+Number(r)));return as(e)}else if(Ed.test(s)){const e=s.replace(Ed,(t,n,r)=>String(Number(n)-Number(r)));return as(e)}else return Number(s);return Number(s)}function Kv(s,e){return e.reduce((t,n)=>(s&&s.hasOwnProperty(n)&&(t[n]=s[n]),t),{})}function Qv(s,e){const t=he({},s);return e.forEach(n=>n in s&&delete t[n]),t}function Jv(s,e){return s.reduce((t,n,r)=>Object.assign(t,{[e[r]]:n}),{})}function Xp(s){return Object.prototype.toString.call(s)==="[object Object]"}const eb=s=>Xp(s)&&Object.keys(s).length===0;let an;(function(s){s.BUTTON="BUTTON",s.BUTTON_GROUP="BUTTON_GROUP",s.MONITOR="MONITOR",s.FOLDER="FOLDER"})(an||(an={}));let ln;(function(s){s.SELECT="SELECT",s.IMAGE="IMAGE",s.NUMBER="NUMBER",s.COLOR="COLOR",s.STRING="STRING",s.BOOLEAN="BOOLEAN",s.INTERVAL="INTERVAL",s.VECTOR3D="VECTOR3D",s.VECTOR2D="VECTOR2D"})(ln||(ln={}));const tb=["type","__customInput"],nb=["render","label","optional","order","disabled","hint","onChange","onEditStart","onEditEnd","transient"],sb=["type"];function Zp(s,e,t={},n){var r,i;if(typeof s!="object"||Array.isArray(s))return{type:n,input:s,options:he({key:e,label:e,optional:!1,disabled:!1,order:0},t)};if("__customInput"in s){const{type:y,__customInput:T}=s,E=Ae(s,tb);return Zp(T,e,E,y)}const{render:o,label:a,optional:c,order:l=0,disabled:u,hint:h,onChange:d,onEditStart:f,onEditEnd:m,transient:p}=s,g=Ae(s,nb),_=he({render:o,key:e,label:a??e,hint:h,transient:p??!!d,onEditStart:f,onEditEnd:m,disabled:u,optional:c,order:l},t);let{type:w}=g,k=Ae(g,sb);if(w=n??w,w in an)return{type:w,input:k,options:_};let v;return n&&Xp(k)&&"value"in k?v=k.value:v=eb(k)?void 0:k,{type:w,input:v,options:he(he({},_),{},{onChange:d,optional:(r=_.optional)!==null&&r!==void 0?r:!1,disabled:(i=_.disabled)!==null&&i!==void 0?i:!1})}}function rb(s,e,t,n){const r=Zp(s,e),{type:i,input:o,options:a}=r;if(i)return i in an?r:{type:i,input:qc(i,o,t,n),options:a};let c=gd(o);return c?{type:c,input:qc(c,o,t,n),options:a}:(c=gd({value:o}),c?{type:c,input:qc(c,{value:o},t,n),options:a}:!1)}function Cd(s,e,t,n,r){const{value:i,type:o,settings:a}=s;s.value=Kp({type:o,value:i,settings:a},e,t,n),s.fromPanel=r}const ib=function(e,t,n){this.type="LEVA_ERROR",this.message="LEVA: "+e,this.previousValue=t,this.error=n};function Kp({type:s,value:e,settings:t},n,r,i){const o=s!=="SELECT"&&typeof n=="function"?n(e):n;let a;try{a=Hv(s,o,t,e,r,i)}catch(c){throw new ib(`The value \`${n}\` did not result in a correct value.`,e,c)}return Vi(a,e)?e:a}const Qp=(s,e,t=!1)=>{let n=0;return function(){const r=arguments,i=t&&!n,o=()=>s.apply(this,r);window.clearTimeout(n),n=window.setTimeout(o,e),i&&o()}},Jp=s=>s.shiftKey?5:s.altKey?1/5:1;function ob(s,e){const t=console.error;console.error=()=>{},ep.render(s,e),console.error=t}const ab=["value"],cb=["min","max"],lb=s=>{if(typeof s=="number")return!0;if(typeof s=="string"){const e=parseFloat(s);return isNaN(e)?!1:s.substring((""+e).length).trim().length<4}return!1},e0=(s,{min:e=-1/0,max:t=1/0,suffix:n})=>{const r=parseFloat(s);if(s===""||isNaN(r))throw Error("Invalid number");const i=bs(r,e,t);return n?i+n:i},ub=(s,{pad:e=0,suffix:t})=>{const n=parseFloat(s).toFixed(e);return t?n+t:n},t0=s=>{let{value:e}=s,t=Ae(s,ab);const{min:n=-1/0,max:r=1/0}=t,i=Ae(t,cb);let o=parseFloat(e);const a=typeof e=="string"?e.substring((""+o).length):void 0;o=bs(o,n,r);let c=t.step;c||(Number.isFinite(n)?Number.isFinite(r)?c=+(Math.abs(r-n)/100).toPrecision(1):c=+(Math.abs(o-n)/100).toPrecision(1):Number.isFinite(r)&&(c=+(Math.abs(r-o)/100).toPrecision(1)));const l=c?vd(c)*10:vd(o);c=c||l/10;const u=Math.round(bs(Math.log10(1/l),0,2));return{value:a?o+a:o,settings:he({initialValue:o,step:c,pad:u,min:n,max:r,suffix:a},i)}},n0=(s,{step:e,initialValue:t})=>{const n=Math.round((s-t)/e);return t+n*e};var s0=Object.freeze({__proto__:null,schema:lb,sanitize:e0,format:ub,normalize:t0,sanitizeStep:n0});function Ze(){return Ze=Object.assign?Object.assign.bind():function(s){for(var e=1;e({colors:{elevation1:"#292d39",elevation2:"#181c20",elevation3:"#373c4b",accent1:"#0066dc",accent2:"#007bff",accent3:"#3c93ff",highlight1:"#535760",highlight2:"#8c92a4",highlight3:"#fefefe",vivid1:"#ffcc00",folderWidgetColor:"$highlight2",folderTextColor:"$highlight3",toolTipBackground:"$highlight3",toolTipText:"$elevation2"},radii:{xs:"2px",sm:"3px",lg:"10px"},space:{xs:"3px",sm:"6px",md:"10px",rowGap:"7px",colGap:"7px"},fonts:{mono:"ui-monospace, SFMono-Regular, Menlo, 'Roboto Mono', monospace",sans:"system-ui, sans-serif"},fontSizes:{root:"11px",toolTip:"$root"},sizes:{rootWidth:"280px",controlWidth:"160px",numberInputMinWidth:"38px",scrubberWidth:"8px",scrubberHeight:"16px",rowHeight:"24px",folderTitleHeight:"20px",checkboxSize:"16px",joystickWidth:"100px",joystickHeight:"100px",colorPickerWidth:"$controlWidth",colorPickerHeight:"100px",imagePreviewWidth:"$controlWidth",imagePreviewHeight:"100px",monitorHeight:"60px",titleBarHeight:"39px"},shadows:{level1:"0 0 9px 0 #00000088",level2:"0 4px 14px #00000033"},borderWidths:{root:"0px",input:"1px",focus:"1px",hover:"1px",active:"1px",folder:"1px"},fontWeights:{label:"normal",folder:"normal",button:"normal"}});function Go(s,e){const[t,n]=s.split(" "),r={};return t!=="none"&&(r.boxShadow=`${e.inset?"inset ":""}0 0 0 $borderWidths${[e.key]} $colors${t!=="default"&&t||e.borderColor}`),n&&(r.backgroundColor=n),r}const xi={$inputStyle:()=>s=>Go(s,{key:"$input",borderColor:"$highlight1",inset:!0}),$focusStyle:()=>s=>Go(s,{key:"$focus",borderColor:"$accent2"}),$hoverStyle:()=>s=>Go(s,{key:"$hover",borderColor:"$accent1",inset:!0}),$activeStyle:()=>s=>Go(s,{key:"$active",borderColor:"$accent1",inset:!0})},{styled:ae,css:UP,createTheme:db,globalCss:fb,keyframes:BP}=P_({prefix:"leva",theme:a0(),utils:he(he({},xi),{},{$flex:()=>({display:"flex",alignItems:"center"}),$flexCenter:()=>({display:"flex",alignItems:"center",justifyContent:"center"}),$reset:()=>({outline:"none",fontSize:"inherit",fontWeight:"inherit",color:"inherit",fontFamily:"inherit",border:"none",backgroundColor:"transparent",appearance:"none"}),$draggable:()=>({touchAction:"none",WebkitUserDrag:"none",userSelect:"none"}),$focus:s=>({"&:focus":xi.$focusStyle()(s)}),$focusWithin:s=>({"&:focus-within":xi.$focusStyle()(s)}),$hover:s=>({"&:hover":xi.$hoverStyle()(s)}),$active:s=>({"&:active":xi.$activeStyle()(s)})})}),pb=fb({".leva__panel__dragged":{WebkitUserDrag:"none",userSelect:"none",input:{userSelect:"none"},"*":{cursor:"ew-resize !important"}}});function mb(s){const e=a0();if(!s)return{theme:e,className:""};Object.keys(s).forEach(n=>{Object.assign(e[n],s[n])});const t=db(e);return{theme:e,className:t.className}}function Bn(s,e){const{theme:t}=b.useContext(ku);if(!(s in t)||!(e in t[s]))return Un(Be.THEME_ERROR,s,e),"";let n=e;for(;;){let r=t[s][n];if(typeof r=="string"&&r.charAt(0)==="$")n=r.substr(1);else return r}}const c0=ae("input",{$reset:"",padding:"0 $sm",width:0,minWidth:0,flex:1,height:"100%",variants:{levaType:{number:{textAlign:"right"}},as:{textarea:{padding:"$sm"}}}}),l0=ae("div",{$draggable:"",height:"100%",$flexCenter:"",position:"relative",padding:"0 $xs",fontSize:"0.8em",opacity:.8,cursor:"default",touchAction:"none",[`& + ${c0}`]:{paddingLeft:0}}),gb=ae(l0,{cursor:"ew-resize",marginRight:"-$xs",textTransform:"uppercase",opacity:.3,"&:hover":{opacity:1},variants:{dragging:{true:{backgroundColor:"$accent2",opacity:1}}}}),_b=ae("div",{$flex:"",position:"relative",borderRadius:"$sm",overflow:"hidden",color:"inherit",height:"$rowHeight",backgroundColor:"$elevation3",$inputStyle:"$elevation1",$hover:"",$focusWithin:"",variants:{textArea:{true:{height:"auto"}}}}),yb=["innerLabel","value","onUpdate","onChange","onKeyDown","type","id","inputType","rows"],vb=["onUpdate"];function Tu(s){let{innerLabel:e,value:t,onUpdate:n,onChange:r,onKeyDown:i,type:o,id:a,inputType:c="text",rows:l=0}=s,u=Ae(s,yb);const{id:h,emitOnEditStart:d,emitOnEditEnd:f,disabled:m}=_t(),p=a||h,g=b.useRef(null),_=l>0,w=_?"textarea":"input",k=b.useCallback(T=>E=>{const x=E.currentTarget.value;T(x)},[]);M.useEffect(()=>{const T=g.current,E=k(x=>{n(x),f()});return T==null||T.addEventListener("blur",E),()=>T==null?void 0:T.removeEventListener("blur",E)},[k,n,f]);const v=b.useCallback(T=>{T.key==="Enter"&&k(n)(T)},[k,n]),y=Object.assign({as:w},_?{rows:l}:{},u);return M.createElement(_b,{textArea:_},e&&typeof e=="string"?M.createElement(l0,null,e):e,M.createElement(c0,Ze({levaType:o,ref:g,id:p,type:c,autoComplete:"off",spellCheck:"false",value:t,onChange:k(r),onFocus:()=>d(),onKeyPress:v,onKeyDown:i,disabled:m},y)))}function bb(s){let{onUpdate:e}=s,t=Ae(s,vb);const n=b.useCallback(i=>e(Gv(i)),[e]),r=b.useCallback(i=>{const o=i.key==="ArrowUp"?1:i.key==="ArrowDown"?-1:0;if(o){i.preventDefault();const a=i.altKey?.1:i.shiftKey?10:1;e(c=>parseFloat(c)+o*a)}},[e]);return M.createElement(Tu,Ze({},t,{onUpdate:n,onKeyDown:r,type:"number"}))}const xa=ae("div",{}),xl=ae("div",{position:"relative",background:"$elevation2",transition:"height 300ms ease",variants:{fill:{true:{},false:{}},flat:{false:{},true:{}},isRoot:{true:{},false:{paddingLeft:"$md","&::after":{content:'""',position:"absolute",left:0,top:0,width:"$borderWidths$folder",height:"100%",backgroundColor:"$folderWidgetColor",opacity:.4,transform:"translateX(-50%)"}}}},compoundVariants:[{isRoot:!0,fill:!1,css:{overflowY:"auto",maxHeight:"calc(100vh - 20px - $$titleBarHeight)"}},{isRoot:!0,flat:!1,css:{borderRadius:"$lg"}}]}),xb=ae("div",{$flex:"",color:"$folderTextColor",userSelect:"none",cursor:"pointer",height:"$folderTitleHeight",fontWeight:"$folder","> svg":{marginLeft:-4,marginRight:4,cursor:"pointer",fill:"$folderWidgetColor",opacity:.6},"&:hover > svg":{fill:"$folderWidgetColor"},[`&:hover + ${xl}::after`]:{opacity:.6},[`${xa}:hover > & + ${xl}::after`]:{opacity:.6},[`${xa}:hover > & > svg`]:{opacity:1}}),u0=ae("div",{position:"relative",display:"grid",gridTemplateColumns:"100%",rowGap:"$rowGap",transition:"opacity 250ms ease",variants:{toggled:{true:{opacity:1,transitionDelay:"250ms"},false:{opacity:0,transitionDelay:"0ms",pointerEvents:"none"}},isRoot:{true:{"& > div":{paddingLeft:"$md",paddingRight:"$md"},"& > div:first-of-type":{paddingTop:"$sm"},"& > div:last-of-type":{paddingBottom:"$sm"},[`> ${xa}:not(:first-of-type)`]:{paddingTop:"$sm",marginTop:"$md",borderTop:"$borderWidths$folder solid $colors$elevation1"}}}}}),h0=ae("div",{position:"relative",zIndex:100,display:"grid",rowGap:"$rowGap",gridTemplateRows:"minmax($sizes$rowHeight, max-content)",alignItems:"center",color:"$highlight2",[`${u0} > &`]:{"&:first-of-type":{marginTop:"$rowGap"},"&:last-of-type":{marginBottom:"$rowGap"}},variants:{disabled:{true:{pointerEvents:"none"},false:{"&:hover,&:focus-within":{color:"$highlight3"}}}}}),d0=ae(h0,{gridTemplateColumns:"auto $sizes$controlWidth",columnGap:"$colGap"}),wb=ae("div",{$flex:"",height:"100%",position:"relative",overflow:"hidden","& > div":{marginLeft:"$colGap",padding:"0 $xs",opacity:.4},"& > div:hover":{opacity:.8},"& > div > svg":{display:"none",cursor:"pointer",width:13,minWidth:13,height:13,backgroundColor:"$elevation2"},"&:hover > div > svg":{display:"block"},variants:{align:{top:{height:"100%",alignItems:"flex-start",paddingTop:"$sm"}}}}),kb=ae("input",{$reset:"",height:0,width:0,opacity:0,margin:0,"& + label":{position:"relative",$flexCenter:"",height:"100%",userSelect:"none",cursor:"pointer",paddingLeft:2,paddingRight:"$sm",pointerEvents:"auto"},"& + label:after":{content:'""',width:6,height:6,backgroundColor:"$elevation3",borderRadius:"50%",$activeStyle:""},"&:focus + label:after":{$focusStyle:""},"& + label:active:after":{backgroundColor:"$accent1",$focusStyle:""},"&:checked + label:after":{backgroundColor:"$accent1"}}),wl=ae("label",{fontWeight:"$label",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap","& > svg":{display:"block"}}),Tb=ae("div",{opacity:1,variants:{disabled:{true:{opacity:.6,pointerEvents:"none",[`& ${wl}`]:{pointerEvents:"auto"}}}}}),f0=ae("div",{position:"fixed",top:0,bottom:0,right:0,left:0,zIndex:1e3,userSelect:"none"}),Eb=ae("div",{background:"$toolTipBackground",fontFamily:"$sans",fontSize:"$toolTip",padding:"$xs $sm",color:"$toolTipText",borderRadius:"$xs",boxShadow:"$level2",maxWidth:260}),Cb=ae(jv,{fill:"$toolTipBackground"});function Eu({children:s}){const{className:e}=b.useContext(ku);return M.createElement(R1,{className:e},s)}const Sb=["align"];function Ob(){const{id:s,disable:e,disabled:t}=_t();return M.createElement(M.Fragment,null,M.createElement(kb,{id:s+"__disable",type:"checkbox",checked:!t,onChange:()=>e(!t)}),M.createElement("label",{htmlFor:s+"__disable"}))}function Ab(s){const{id:e,optional:t,hint:n}=_t(),r=s.htmlFor||(e?{htmlFor:e}:null),i=!n&&typeof s.children=="string"?{title:s.children}:null;return M.createElement(M.Fragment,null,t&&M.createElement(Ob,null),n!==void 0?M.createElement($v,null,M.createElement(Fv,{asChild:!0},M.createElement(wl,Ze({},r,s))),M.createElement(Lv,{side:"top",sideOffset:2},M.createElement(Eb,null,n,M.createElement(Cb,null)))):M.createElement(wl,Ze({},r,i,s)))}function dn(s){let{align:e}=s,t=Ae(s,Sb);const{value:n,label:r,key:i,disabled:o}=_t(),{hideCopyButton:a}=hb(),c=!a&&i!==void 0,[l,u]=b.useState(!1),h=async()=>{try{await navigator.clipboard.writeText(JSON.stringify({[i]:n??""})),u(!0)}catch{Un(Be.CLIPBOARD_ERROR,{[i]:n})}};return M.createElement(wb,{align:e,onPointerLeave:()=>u(!1)},M.createElement(Ab,t),c&&!o&&M.createElement("div",{title:`Click to copy ${typeof r=="string"?r:i} value`},l?M.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},M.createElement("path",{d:"M9 2a1 1 0 000 2h2a1 1 0 100-2H9z"}),M.createElement("path",{fillRule:"evenodd",d:"M4 5a2 2 0 012-2 3 3 0 003 3h2a3 3 0 003-3 2 2 0 012 2v11a2 2 0 01-2 2H6a2 2 0 01-2-2V5zm9.707 5.707a1 1 0 00-1.414-1.414L9 12.586l-1.293-1.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"})):M.createElement("svg",{onClick:h,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},M.createElement("path",{d:"M8 3a1 1 0 011-1h2a1 1 0 110 2H9a1 1 0 01-1-1z"}),M.createElement("path",{d:"M6 3a2 2 0 00-2 2v11a2 2 0 002 2h8a2 2 0 002-2V5a2 2 0 00-2-2 3 3 0 01-3 3H9a3 3 0 01-3-3z"}))))}const Db=["toggled"],Rb=ae("svg",{fill:"currentColor",transition:"transform 350ms ease, fill 250ms ease"});function Cu(s){let{toggled:e}=s,t=Ae(s,Db);return M.createElement(Rb,Ze({width:"9",height:"5",viewBox:"0 0 9 5",xmlns:"http://www.w3.org/2000/svg",style:{transform:`rotate(${e?0:-90}deg)`}},t),M.createElement("path",{d:"M3.8 4.4c.4.3 1 .3 1.4 0L8 1.7A1 1 0 007.4 0H1.6a1 1 0 00-.7 1.7l3 2.7z"}))}const Pb=["input"];function en(s){let{input:e}=s,t=Ae(s,Pb);return e?M.createElement(d0,t):M.createElement(h0,t)}function p0({value:s,type:e,settings:t,setValue:n}){const[r,i]=b.useState(_d(e,s,t)),o=b.useRef(s),a=b.useRef(t);a.current=t;const c=b.useCallback(u=>i(_d(e,u,a.current)),[e]),l=b.useCallback(u=>{try{n(u)}catch(h){const{type:d,previousValue:f}=h;if(d!=="LEVA_ERROR")throw h;c(f)}},[c,n]);return b.useEffect(()=>{Vi(s,o.current)||c(s),o.current=s},[s,c]),{displayValue:r,onChange:i,onUpdate:l}}function wo(s,e){const{emitOnEditStart:t,emitOnEditEnd:n}=_t();return M_(r=>{r.first&&(document.body.classList.add("leva__panel__dragged"),t==null||t());const i=s(r);return r.last&&(document.body.classList.remove("leva__panel__dragged"),n==null||n()),i},e)}function Mb(s){const e=b.useRef(null),t=b.useRef(null),n=b.useRef(!1);return b.useEffect(()=>{const r=Qp(()=>{e.current.width=e.current.offsetWidth*window.devicePixelRatio,e.current.height=e.current.offsetHeight*window.devicePixelRatio,s(e.current,t.current)},250);return window.addEventListener("resize",r),n.current||(r(),n.current=!0),()=>window.removeEventListener("resize",r)},[s]),b.useEffect(()=>{t.current=e.current.getContext("2d")},[]),[e,t]}function m0(){const s=b.useRef(null),e=b.useRef({x:0,y:0}),t=b.useCallback(n=>{Object.assign(e.current,n),s.current&&(s.current.style.transform=`translate3d(${e.current.x}px, ${e.current.y}px, 0)`)},[]);return[s,t]}const Nb=["__refCount"],Hc=(s,e)=>{if(!s[e])return null;const t=s[e];return Ae(t,Nb)};function Ib(s){const e=xo(),[t,n]=b.useState(Hc(e.getData(),s)),r=b.useCallback(l=>e.setValueAtPath(s,l,!0),[s,e]),i=b.useCallback(l=>e.setSettingsAtPath(s,l),[s,e]),o=b.useCallback(l=>e.disableInputAtPath(s,l),[s,e]),a=b.useCallback(()=>e.emitOnEditStart(s),[s,e]),c=b.useCallback(()=>e.emitOnEditEnd(s),[s,e]);return b.useEffect(()=>{n(Hc(e.getData(),s));const l=e.useStore.subscribe(u=>Hc(u.data,s),n,{equalityFn:bo});return()=>l()},[e,s]),[t,{set:r,setSettings:i,disable:o,storeId:e.storeId,emitOnEditStart:a,emitOnEditEnd:c}]}const $b=ae("div",{variants:{hasRange:{true:{position:"relative",display:"grid",gridTemplateColumns:"auto $sizes$numberInputMinWidth",columnGap:"$colGap",alignItems:"center"}}}}),g0=ae("div",{position:"relative",width:"100%",height:2,borderRadius:"$xs",backgroundColor:"$elevation1"}),kl=ae("div",{position:"absolute",width:"$scrubberWidth",height:"$scrubberHeight",borderRadius:"$xs",boxShadow:"0 0 0 2px $colors$elevation2",backgroundColor:"$accent2",cursor:"pointer",$active:"none $accent1",$hover:"none $accent3",variants:{position:{left:{borderTopRightRadius:0,borderBottomRightRadius:0,transform:"translateX(calc(-0.5 * ($sizes$scrubberWidth + 4px)))"},right:{borderTopLeftRadius:0,borderBottomLeftRadius:0,transform:"translateX(calc(0.5 * ($sizes$scrubberWidth + 4px)))"}}}}),_0=ae("div",{position:"relative",$flex:"",height:"100%",cursor:"pointer",touchAction:"none"}),y0=ae("div",{position:"absolute",height:"100%",backgroundColor:"$accent2"});function Fb({value:s,min:e,max:t,onDrag:n,step:r,initialValue:i}){const o=b.useRef(null),a=b.useRef(null),c=b.useRef(0),l=Bn("sizes","scrubberWidth"),u=wo(({event:d,first:f,xy:[m],movement:[p],memo:g})=>{if(f){const{width:w,left:k}=o.current.getBoundingClientRect();c.current=w-parseFloat(l),g=(d==null?void 0:d.target)===a.current?s:ba((m-k)/w,e,t)}const _=g+ba(p/c.current,0,t-e);return n(n0(_,{step:r,initialValue:i})),g}),h=va(s,e,t);return M.createElement(_0,Ze({ref:o},u()),M.createElement(g0,null,M.createElement(y0,{style:{left:0,right:`${(1-h)*100}%`}})),M.createElement(kl,{ref:a,style:{left:`calc(${h} * (100% - ${l}))`}}))}const Lb=M.memo(({label:s,onUpdate:e,step:t,innerLabelTrim:n})=>{const[r,i]=b.useState(!1),o=wo(({active:a,delta:[c],event:l,memo:u=0})=>(i(a),u+=c/2,Math.abs(u)>=1&&(e(h=>parseFloat(h)+Math.floor(u)*t*Jp(l)),u=0),u));return M.createElement(gb,Ze({dragging:r,title:s.length>1?s:""},o()),s.slice(0,n))});function v0({label:s,id:e,displayValue:t,onUpdate:n,onChange:r,settings:i,innerLabelTrim:o=1}){const a=o>0&&M.createElement(Lb,{label:s,step:i.step,onUpdate:n,innerLabelTrim:o});return M.createElement(bb,{id:e,value:String(t),onUpdate:n,onChange:r,innerLabel:a})}function jb(){const s=_t(),{label:e,value:t,onUpdate:n,settings:r,id:i}=s,{min:o,max:a}=r,c=a!==1/0&&o!==-1/0;return M.createElement(en,{input:!0},M.createElement(dn,null,e),M.createElement($b,{hasRange:c},c&&M.createElement(Fb,Ze({value:parseFloat(t),onDrag:n},r)),M.createElement(v0,Ze({},s,{id:i,label:"value",innerLabelTrim:c?0:1}))))}const{sanitizeStep:Vb}=s0,zb=Ae(s0,["sanitizeStep"]);var Ub=he({component:jb},zb);const Bb=(s,e)=>St().schema({options:St().passesAnyOf(St().object(),St().array())}).test(e),Wb=(s,{values:e})=>{if(e.indexOf(s)<0)throw Error("Selected value doesn't match Select options");return s},qb=(s,{values:e})=>e.indexOf(s),Hb=s=>{let{value:e,options:t}=s,n,r;return Array.isArray(t)?(r=t,n=t.map(i=>String(i))):(r=Object.values(t),n=Object.keys(t)),"value"in s?r.includes(e)||(n.unshift(String(e)),r.unshift(e)):e=r[0],Object.values(t).includes(e)||(t[String(e)]=e),{value:e,settings:{keys:n,values:r}}};var Yb=Object.freeze({__proto__:null,schema:Bb,sanitize:Wb,format:qb,normalize:Hb});const Gb=ae("div",{$flexCenter:"",position:"relative","> svg":{pointerEvents:"none",position:"absolute",right:"$md"}}),Tl=ae("select",{position:"absolute",top:0,left:0,width:"100%",height:"100%",opacity:0}),Xb=ae("div",{display:"flex",alignItems:"center",width:"100%",height:"$rowHeight",backgroundColor:"$elevation3",borderRadius:"$sm",padding:"0 $sm",cursor:"pointer",[`${Tl}:focus + &`]:{$focusStyle:""},[`${Tl}:hover + &`]:{$hoverStyle:""}});function Zb({displayValue:s,value:e,onUpdate:t,id:n,settings:r,disabled:i}){const{keys:o,values:a}=r,c=b.useRef();return e===a[s]&&(c.current=o[s]),M.createElement(Gb,null,M.createElement(Tl,{id:n,value:s,onChange:l=>t(a[Number(l.currentTarget.value)]),disabled:i},o.map((l,u)=>M.createElement("option",{key:l,value:u},l))),M.createElement(Xb,null,c.current),M.createElement(Cu,{toggled:!0}))}function Kb(){const{label:s,value:e,displayValue:t,onUpdate:n,id:r,disabled:i,settings:o}=_t();return M.createElement(en,{input:!0},M.createElement(dn,null,s),M.createElement(Zb,{id:r,value:e,displayValue:t,onUpdate:n,settings:o,disabled:i}))}var Qb=he({component:Kb},Yb);const Jb=s=>St().string().test(s),ex=s=>{if(typeof s!="string")throw Error("Invalid string");return s},tx=({value:s,editable:e=!0,rows:t=!1})=>({value:s,settings:{editable:e,rows:typeof t=="number"?t:t?5:0}});var nx=Object.freeze({__proto__:null,schema:Jb,sanitize:ex,normalize:tx});const sx=["displayValue","onUpdate","onChange","editable"],rx=ae("div",{whiteSpace:"pre-wrap"});function ix(s){let{displayValue:e,onUpdate:t,onChange:n,editable:r=!0}=s,i=Ae(s,sx);return r?M.createElement(Tu,Ze({value:e,onUpdate:t,onChange:n},i)):M.createElement(rx,null,e)}function ox(){const{label:s,settings:e,displayValue:t,onUpdate:n,onChange:r}=_t();return M.createElement(en,{input:!0},M.createElement(dn,null,s),M.createElement(ix,Ze({displayValue:t,onUpdate:n,onChange:r},e)))}var ax=he({component:ox},nx);const cx=s=>St().boolean().test(s),lx=s=>{if(typeof s!="boolean")throw Error("Invalid boolean");return s};var ux=Object.freeze({__proto__:null,schema:cx,sanitize:lx});const hx=ae("div",{position:"relative",$flex:"",height:"$rowHeight",input:{$reset:"",height:0,width:0,opacity:0,margin:0},label:{position:"relative",$flexCenter:"",userSelect:"none",cursor:"pointer",height:"$checkboxSize",width:"$checkboxSize",backgroundColor:"$elevation3",borderRadius:"$sm",$hover:""},"input:focus + label":{$focusStyle:""},"input:focus:checked + label, input:checked + label:hover":{$hoverStyle:"$accent3"},"input + label:active":{backgroundColor:"$accent1"},"input:checked + label:active":{backgroundColor:"$accent1"},"label > svg":{display:"none",width:"90%",height:"90%",stroke:"$highlight3"},"input:checked + label":{backgroundColor:"$accent2"},"input:checked + label > svg":{display:"block"}});function dx({value:s,onUpdate:e,id:t,disabled:n}){return M.createElement(hx,null,M.createElement("input",{id:t,type:"checkbox",checked:s,onChange:r=>e(r.currentTarget.checked),disabled:n}),M.createElement("label",{htmlFor:t},M.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},M.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"}))))}function fx(){const{label:s,value:e,onUpdate:t,disabled:n,id:r}=_t();return M.createElement(en,{input:!0},M.createElement(dn,null,s),M.createElement(dx,{value:e,onUpdate:t,id:r,disabled:n}))}var px=he({component:fx},ux);const mx=["locked"];function gx({value:s,id:e,valueKey:t,settings:n,onUpdate:r,innerLabelTrim:i}){const o=b.useRef(s[t]);o.current=s[t];const a=b.useCallback(l=>r({[t]:Kp({type:"NUMBER",value:o.current,settings:n},l)}),[r,n,t]),c=p0({type:"NUMBER",value:s[t],settings:n,setValue:a});return M.createElement(v0,{id:e,label:t,value:s[t],displayValue:c.displayValue,onUpdate:c.onUpdate,onChange:c.onChange,settings:n,innerLabelTrim:i})}const _x=ae("div",{display:"grid",columnGap:"$colGap",gridAutoFlow:"column dense",alignItems:"center",variants:{withLock:{true:{gridTemplateColumns:"10px auto","> svg":{cursor:"pointer"}}}}});function yx(s){let{locked:e}=s,t=Ae(s,mx);return M.createElement("svg",Ze({width:"10",height:"10",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e?M.createElement("path",{d:"M5 4.63601C5 3.76031 5.24219 3.1054 5.64323 2.67357C6.03934 2.24705 6.64582 1.9783 7.5014 1.9783C8.35745 1.9783 8.96306 2.24652 9.35823 2.67208C9.75838 3.10299 10 3.75708 10 4.63325V5.99999H5V4.63601ZM4 5.99999V4.63601C4 3.58148 4.29339 2.65754 4.91049 1.99307C5.53252 1.32329 6.42675 0.978302 7.5014 0.978302C8.57583 0.978302 9.46952 1.32233 10.091 1.99162C10.7076 2.65557 11 3.57896 11 4.63325V5.99999H12C12.5523 5.99999 13 6.44771 13 6.99999V13C13 13.5523 12.5523 14 12 14H3C2.44772 14 2 13.5523 2 13V6.99999C2 6.44771 2.44772 5.99999 3 5.99999H4ZM3 6.99999H12V13H3V6.99999Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}):M.createElement("path",{d:"M9 3.63601C9 2.76044 9.24207 2.11211 9.64154 1.68623C10.0366 1.26502 10.6432 1 11.5014 1C12.4485 1 13.0839 1.30552 13.4722 1.80636C13.8031 2.23312 14 2.84313 14 3.63325H15C15 2.68242 14.7626 1.83856 14.2625 1.19361C13.6389 0.38943 12.6743 0 11.5014 0C10.4294 0 9.53523 0.337871 8.91218 1.0021C8.29351 1.66167 8 2.58135 8 3.63601V6H1C0.447715 6 0 6.44772 0 7V13C0 13.5523 0.447715 14 1 14H10C10.5523 14 11 13.5523 11 13V7C11 6.44772 10.5523 6 10 6H9V3.63601ZM1 7H10V13H1V7Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}))}function Su({value:s,onUpdate:e,settings:t,innerLabelTrim:n}){const{id:r,setSettings:i}=_t(),{lock:o,locked:a}=t;return M.createElement(_x,{withLock:o},o&&M.createElement(yx,{locked:a,onClick:()=>i({locked:!a})}),Object.keys(s).map((c,l)=>M.createElement(gx,{id:l===0?r:`${r}.${c}`,key:c,valueKey:c,value:s,settings:t[c],onUpdate:e,innerLabelTrim:n})))}const b0=(s,e)=>{const t={};let n=0,r=1/0;Object.entries(s).forEach(([i,o])=>{t[i]=t0(he({value:o},e[i])).settings,n=Math.max(n,t[i].step),r=Math.min(r,t[i].pad)});for(let i in t){const{step:o,min:a,max:c}=e[i]||{};!isFinite(o)&&(!isFinite(a)||!isFinite(c))&&(t[i].step=n,t[i].pad=r)}return t},vx=["lock"],bx=["value"];function xx(s){const e=St().array().length(s).every.number(),t=n=>{if(!n||typeof n!="object")return!1;const r=Object.values(n);return r.length===s&&r.every(i=>isFinite(i))};return n=>e.test(n)||t(n)}function wx(s){return Array.isArray(s)?"array":"object"}function Di(s,e,t){return wx(s)===e?s:e==="array"?Object.values(s):Jv(s,t)}const kx=(s,e,t)=>{const n=Di(s,"object",e.keys);for(let o in n)n[o]=e0(n[o],e[o]);const r=Object.keys(n);let i={};if(r.length===e.keys.length)i=n;else{const o=Di(t,"object",e.keys);if(r.length===1&&e.locked){const a=r[0],c=n[a],l=o[a],u=l!==0?c/l:1;for(let h in o)h===a?i[a]=c:i[h]=o[h]*u}else i=he(he({},o),n)}return Di(i,e.format,e.keys)},Tx=(s,e)=>Di(s,"object",e.keys),Ex=s=>!!s&&("step"in s||"min"in s||"max"in s);function Cx(s,e,t=[]){const{lock:n=!1}=e,r=Ae(e,vx),i=Array.isArray(s)?"array":"object",o=i==="object"?Object.keys(s):t,a=Di(s,"object",o),c=Ex(r)?o.reduce((u,h)=>Object.assign(u,{[h]:r}),{}):r,l=b0(a,c);return{value:i==="array"?s:a,settings:he(he({},l),{},{format:i,keys:o,lock:n,locked:!1})}}function x0(s){return{schema:xx(s.length),normalize:e=>{let{value:t}=e,n=Ae(e,bx);return Cx(t,n,s)},format:(e,t)=>Tx(e,t),sanitize:(e,t,n)=>kx(e,t,n)}}var Sx={grad:.9,turn:360,rad:360/(2*Math.PI)},$n=function(s){return typeof s=="string"?s.length>0:typeof s=="number"},at=function(s,e,t){return e===void 0&&(e=0),t===void 0&&(t=Math.pow(10,e)),Math.round(t*s)/t+0},Yt=function(s,e,t){return e===void 0&&(e=0),t===void 0&&(t=1),s>t?t:s>e?s:e},w0=function(s){return(s=isFinite(s)?s%360:0)>0?s:s+360},Sd=function(s){return{r:Yt(s.r,0,255),g:Yt(s.g,0,255),b:Yt(s.b,0,255),a:Yt(s.a)}},Yc=function(s){return{r:at(s.r),g:at(s.g),b:at(s.b),a:at(s.a,3)}},Ox=/^#([0-9a-f]{3,8})$/i,Xo=function(s){var e=s.toString(16);return e.length<2?"0"+e:e},k0=function(s){var e=s.r,t=s.g,n=s.b,r=s.a,i=Math.max(e,t,n),o=i-Math.min(e,t,n),a=o?i===e?(t-n)/o:i===t?2+(n-e)/o:4+(e-t)/o:0;return{h:60*(a<0?a+6:a),s:i?o/i*100:0,v:i/255*100,a:r}},T0=function(s){var e=s.h,t=s.s,n=s.v,r=s.a;e=e/360*6,t/=100,n/=100;var i=Math.floor(e),o=n*(1-t),a=n*(1-(e-i)*t),c=n*(1-(1-e+i)*t),l=i%6;return{r:255*[n,a,o,o,c,n][l],g:255*[c,n,n,a,o,o][l],b:255*[o,o,c,n,n,a][l],a:r}},Od=function(s){return{h:w0(s.h),s:Yt(s.s,0,100),l:Yt(s.l,0,100),a:Yt(s.a)}},Ad=function(s){return{h:at(s.h),s:at(s.s),l:at(s.l),a:at(s.a,3)}},Dd=function(s){return T0((t=(e=s).s,{h:e.h,s:(t*=((n=e.l)<50?n:100-n)/100)>0?2*t/(n+t)*100:0,v:n+t,a:e.a}));var e,t,n},Ri=function(s){return{h:(e=k0(s)).h,s:(r=(200-(t=e.s))*(n=e.v)/100)>0&&r<200?t*n/100/(r<=100?r:200-r)*100:0,l:r/2,a:e.a};var e,t,n,r},Ax=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Dx=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Rx=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Px=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,El={string:[[function(s){var e=Ox.exec(s);return e?(s=e[1]).length<=4?{r:parseInt(s[0]+s[0],16),g:parseInt(s[1]+s[1],16),b:parseInt(s[2]+s[2],16),a:s.length===4?at(parseInt(s[3]+s[3],16)/255,2):1}:s.length===6||s.length===8?{r:parseInt(s.substr(0,2),16),g:parseInt(s.substr(2,2),16),b:parseInt(s.substr(4,2),16),a:s.length===8?at(parseInt(s.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(s){var e=Rx.exec(s)||Px.exec(s);return e?e[2]!==e[4]||e[4]!==e[6]?null:Sd({r:Number(e[1])/(e[2]?100/255:1),g:Number(e[3])/(e[4]?100/255:1),b:Number(e[5])/(e[6]?100/255:1),a:e[7]===void 0?1:Number(e[7])/(e[8]?100:1)}):null},"rgb"],[function(s){var e=Ax.exec(s)||Dx.exec(s);if(!e)return null;var t,n,r=Od({h:(t=e[1],n=e[2],n===void 0&&(n="deg"),Number(t)*(Sx[n]||1)),s:Number(e[3]),l:Number(e[4]),a:e[5]===void 0?1:Number(e[5])/(e[6]?100:1)});return Dd(r)},"hsl"]],object:[[function(s){var e=s.r,t=s.g,n=s.b,r=s.a,i=r===void 0?1:r;return $n(e)&&$n(t)&&$n(n)?Sd({r:Number(e),g:Number(t),b:Number(n),a:Number(i)}):null},"rgb"],[function(s){var e=s.h,t=s.s,n=s.l,r=s.a,i=r===void 0?1:r;if(!$n(e)||!$n(t)||!$n(n))return null;var o=Od({h:Number(e),s:Number(t),l:Number(n),a:Number(i)});return Dd(o)},"hsl"],[function(s){var e=s.h,t=s.s,n=s.v,r=s.a,i=r===void 0?1:r;if(!$n(e)||!$n(t)||!$n(n))return null;var o=function(a){return{h:w0(a.h),s:Yt(a.s,0,100),v:Yt(a.v,0,100),a:Yt(a.a)}}({h:Number(e),s:Number(t),v:Number(n),a:Number(i)});return T0(o)},"hsv"]]},Rd=function(s,e){for(var t=0;t=.5},s.prototype.toHex=function(){return e=Yc(this.rgba),t=e.r,n=e.g,r=e.b,o=(i=e.a)<1?Xo(at(255*i)):"","#"+Xo(t)+Xo(n)+Xo(r)+o;var e,t,n,r,i,o},s.prototype.toRgb=function(){return Yc(this.rgba)},s.prototype.toRgbString=function(){return e=Yc(this.rgba),t=e.r,n=e.g,r=e.b,(i=e.a)<1?"rgba("+t+", "+n+", "+r+", "+i+")":"rgb("+t+", "+n+", "+r+")";var e,t,n,r,i},s.prototype.toHsl=function(){return Ad(Ri(this.rgba))},s.prototype.toHslString=function(){return e=Ad(Ri(this.rgba)),t=e.h,n=e.s,r=e.l,(i=e.a)<1?"hsla("+t+", "+n+"%, "+r+"%, "+i+")":"hsl("+t+", "+n+"%, "+r+"%)";var e,t,n,r,i},s.prototype.toHsv=function(){return e=k0(this.rgba),{h:at(e.h),s:at(e.s),v:at(e.v),a:at(e.a,3)};var e},s.prototype.invert=function(){return vt({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},s.prototype.saturate=function(e){return e===void 0&&(e=.1),vt(Gc(this.rgba,e))},s.prototype.desaturate=function(e){return e===void 0&&(e=.1),vt(Gc(this.rgba,-e))},s.prototype.grayscale=function(){return vt(Gc(this.rgba,-1))},s.prototype.lighten=function(e){return e===void 0&&(e=.1),vt(Pd(this.rgba,e))},s.prototype.darken=function(e){return e===void 0&&(e=.1),vt(Pd(this.rgba,-e))},s.prototype.rotate=function(e){return e===void 0&&(e=15),this.hue(this.hue()+e)},s.prototype.alpha=function(e){return typeof e=="number"?vt({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):at(this.rgba.a,3);var t},s.prototype.hue=function(e){var t=Ri(this.rgba);return typeof e=="number"?vt({h:e,s:t.s,l:t.l,a:t.a}):at(t.h)},s.prototype.isEqual=function(e){return this.toHex()===vt(e).toHex()},s}(),vt=function(s){return s instanceof Cl?s:new Cl(s)},Md=[],Nx=function(s){s.forEach(function(e){Md.indexOf(e)<0&&(e(Cl,El),Md.push(e))})};function Ix(s,e){var t={white:"#ffffff",bisque:"#ffe4c4",blue:"#0000ff",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",antiquewhite:"#faebd7",aqua:"#00ffff",azure:"#f0ffff",whitesmoke:"#f5f5f5",papayawhip:"#ffefd5",plum:"#dda0dd",blanchedalmond:"#ffebcd",black:"#000000",gold:"#ffd700",goldenrod:"#daa520",gainsboro:"#dcdcdc",cornsilk:"#fff8dc",cornflowerblue:"#6495ed",burlywood:"#deb887",aquamarine:"#7fffd4",beige:"#f5f5dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkkhaki:"#bdb76b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",peachpuff:"#ffdab9",darkmagenta:"#8b008b",darkred:"#8b0000",darkorchid:"#9932cc",darkorange:"#ff8c00",darkslateblue:"#483d8b",gray:"#808080",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",deeppink:"#ff1493",deepskyblue:"#00bfff",wheat:"#f5deb3",firebrick:"#b22222",floralwhite:"#fffaf0",ghostwhite:"#f8f8ff",darkviolet:"#9400d3",magenta:"#ff00ff",green:"#008000",dodgerblue:"#1e90ff",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",blueviolet:"#8a2be2",forestgreen:"#228b22",lawngreen:"#7cfc00",indianred:"#cd5c5c",indigo:"#4b0082",fuchsia:"#ff00ff",brown:"#a52a2a",maroon:"#800000",mediumblue:"#0000cd",lightcoral:"#f08080",darkturquoise:"#00ced1",lightcyan:"#e0ffff",ivory:"#fffff0",lightyellow:"#ffffe0",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",linen:"#faf0e6",mediumaquamarine:"#66cdaa",lemonchiffon:"#fffacd",lime:"#00ff00",khaki:"#f0e68c",mediumseagreen:"#3cb371",limegreen:"#32cd32",mediumspringgreen:"#00fa9a",lightskyblue:"#87cefa",lightblue:"#add8e6",midnightblue:"#191970",lightpink:"#ffb6c1",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",mintcream:"#f5fffa",lightslategray:"#778899",lightslategrey:"#778899",navajowhite:"#ffdead",navy:"#000080",mediumvioletred:"#c71585",powderblue:"#b0e0e6",palegoldenrod:"#eee8aa",oldlace:"#fdf5e6",paleturquoise:"#afeeee",mediumturquoise:"#48d1cc",mediumorchid:"#ba55d3",rebeccapurple:"#663399",lightsteelblue:"#b0c4de",mediumslateblue:"#7b68ee",thistle:"#d8bfd8",tan:"#d2b48c",orchid:"#da70d6",mediumpurple:"#9370db",purple:"#800080",pink:"#ffc0cb",skyblue:"#87ceeb",springgreen:"#00ff7f",palegreen:"#98fb98",red:"#ff0000",yellow:"#ffff00",slateblue:"#6a5acd",lavenderblush:"#fff0f5",peru:"#cd853f",palevioletred:"#db7093",violet:"#ee82ee",teal:"#008080",slategray:"#708090",slategrey:"#708090",aliceblue:"#f0f8ff",darkseagreen:"#8fbc8f",darkolivegreen:"#556b2f",greenyellow:"#adff2f",seagreen:"#2e8b57",seashell:"#fff5ee",tomato:"#ff6347",silver:"#c0c0c0",sienna:"#a0522d",lavender:"#e6e6fa",lightgreen:"#90ee90",orange:"#ffa500",orangered:"#ff4500",steelblue:"#4682b4",royalblue:"#4169e1",turquoise:"#40e0d0",yellowgreen:"#9acd32",salmon:"#fa8072",saddlebrown:"#8b4513",sandybrown:"#f4a460",rosybrown:"#bc8f8f",darksalmon:"#e9967a",lightgoldenrodyellow:"#fafad2",snow:"#fffafa",lightgrey:"#d3d3d3",lightgray:"#d3d3d3",dimgray:"#696969",dimgrey:"#696969",olivedrab:"#6b8e23",olive:"#808000"},n={};for(var r in t)n[t[r]]=r;var i={};s.prototype.toName=function(o){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var a,c,l=n[this.toHex()];if(l)return l;if(o!=null&&o.closest){var u=this.toRgb(),h=1/0,d="black";if(!i.length)for(var f in t)i[f]=new s(t[f]).toRgb();for(var m in t){var p=(a=u,c=i[m],Math.pow(a.r-c.r,2)+Math.pow(a.g-c.g,2)+Math.pow(a.b-c.b,2));p=0||(r[t]=s[t]);return r}function Sl(s){var e=b.useRef(s),t=b.useRef(function(n){e.current&&e.current(n)});return e.current=s,t.current}var Lr=function(s,e,t){return e===void 0&&(e=0),t===void 0&&(t=1),s>t?t:s0:g.buttons>0)&&r.current?i(Nd(r.current,g,a.current)):p(!1)},m=function(){return p(!1)};function p(g){var _=c.current,w=Ol(r.current),k=g?w.addEventListener:w.removeEventListener;k(_?"touchmove":"mousemove",f),k(_?"touchend":"mouseup",m)}return[function(g){var _=g.nativeEvent,w=r.current;if(w&&(Id(_),!function(v,y){return y&&!Pi(v)}(_,c.current)&&w)){if(Pi(_)){c.current=!0;var k=_.changedTouches||[];k.length&&(a.current=k[0].identifier)}w.focus(),i(Nd(w,_,a.current)),p(!0)}},function(g){var _=g.which||g.keyCode;_<37||_>40||(g.preventDefault(),o({left:_===39?.05:_===37?-.05:0,top:_===40?.05:_===38?-.05:0}))},p]},[o,i]),u=l[0],h=l[1],d=l[2];return b.useEffect(function(){return d},[d]),M.createElement("div",ti({},n,{onTouchStart:u,onMouseDown:u,className:"react-colorful__interactive",ref:r,onKeyDown:h,tabIndex:0,role:"slider"}))}),ko=function(s){return s.filter(Boolean).join(" ")},Du=function(s){var e=s.color,t=s.left,n=s.top,r=n===void 0?.5:n,i=ko(["react-colorful__pointer",s.className]);return M.createElement("div",{className:i,style:{top:100*r+"%",left:100*t+"%"}},M.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:e}}))},wt=function(s,e,t){return e===void 0&&(e=0),t===void 0&&(t=Math.pow(10,e)),Math.round(t*s)/t},C0=function(s){var e=s.s,t=s.v,n=s.a,r=(200-e)*t/100;return{h:wt(s.h),s:wt(r>0&&r<200?e*t/100/(r<=100?r:200-r)*100:0),l:wt(r/2),a:wt(n,2)}},Al=function(s){var e=C0(s);return"hsl("+e.h+", "+e.s+"%, "+e.l+"%)"},Zc=function(s){var e=C0(s);return"hsla("+e.h+", "+e.s+"%, "+e.l+"%, "+e.a+")"},S0=function(s){var e=s.h,t=s.s,n=s.v,r=s.a;e=e/360*6,t/=100,n/=100;var i=Math.floor(e),o=n*(1-t),a=n*(1-(e-i)*t),c=n*(1-(1-e+i)*t),l=i%6;return{r:wt(255*[n,a,o,o,c,n][l]),g:wt(255*[c,n,n,a,o,o][l]),b:wt(255*[o,o,c,n,n,a][l]),a:wt(r,2)}},O0=function(s){var e=s.r,t=s.g,n=s.b,r=s.a,i=Math.max(e,t,n),o=i-Math.min(e,t,n),a=o?i===e?(t-n)/o:i===t?2+(n-e)/o:4+(e-t)/o:0;return{h:wt(60*(a<0?a+6:a)),s:wt(i?o/i*100:0),v:wt(i/255*100),a:r}},A0=M.memo(function(s){var e=s.hue,t=s.onChange,n=ko(["react-colorful__hue",s.className]);return M.createElement("div",{className:n},M.createElement(Au,{onMove:function(r){t({h:360*r.left})},onKey:function(r){t({h:Lr(e+360*r.left,0,360)})},"aria-label":"Hue","aria-valuenow":wt(e),"aria-valuemax":"360","aria-valuemin":"0"},M.createElement(Du,{className:"react-colorful__hue-pointer",left:e/360,color:Al({h:e,s:100,v:100,a:1})})))}),D0=M.memo(function(s){var e=s.hsva,t=s.onChange,n={backgroundColor:Al({h:e.h,s:100,v:100,a:1})};return M.createElement("div",{className:"react-colorful__saturation",style:n},M.createElement(Au,{onMove:function(r){t({s:100*r.left,v:100-100*r.top})},onKey:function(r){t({s:Lr(e.s+100*r.left,0,100),v:Lr(e.v-100*r.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+wt(e.s)+"%, Brightness "+wt(e.v)+"%"},M.createElement(Du,{className:"react-colorful__saturation-pointer",top:1-e.v/100,left:e.s/100,color:Al(e)})))}),Ru=function(s,e){if(s===e)return!0;for(var t in s)if(s[t]!==e[t])return!1;return!0};function R0(s,e,t){var n=Sl(t),r=b.useState(function(){return s.toHsva(e)}),i=r[0],o=r[1],a=b.useRef({color:e,hsva:i});b.useEffect(function(){if(!s.equal(e,a.current.color)){var l=s.toHsva(e);a.current={hsva:l,color:e},o(l)}},[e,s]),b.useEffect(function(){var l;Ru(i,a.current.hsva)||s.equal(l=s.fromHsva(i),a.current.color)||(a.current={hsva:i,color:l},n(l))},[i,s,n]);var c=b.useCallback(function(l){o(function(u){return Object.assign({},u,l)})},[]);return[i,c]}var $x=typeof window<"u"?b.useLayoutEffect:b.useEffect,Fx=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0},$d=new Map,P0=function(s){$x(function(){var e=s.current?s.current.ownerDocument:document;if(e!==void 0&&!$d.has(e)){var t=e.createElement("style");t.innerHTML=`.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`,$d.set(e,t);var n=Fx();n&&t.setAttribute("nonce",n),e.head.appendChild(t)}},[])},Lx=function(s){var e=s.className,t=s.colorModel,n=s.color,r=n===void 0?t.defaultColor:n,i=s.onChange,o=Ou(s,["className","colorModel","color","onChange"]),a=b.useRef(null);P0(a);var c=R0(t,r,i),l=c[0],u=c[1],h=ko(["react-colorful",e]);return M.createElement("div",ti({},o,{ref:a,className:h}),M.createElement(D0,{hsva:l,onChange:u}),M.createElement(A0,{hue:l.h,onChange:u,className:"react-colorful__last-control"}))},jx=function(s){var e=s.className,t=s.hsva,n=s.onChange,r={backgroundImage:"linear-gradient(90deg, "+Zc(Object.assign({},t,{a:0}))+", "+Zc(Object.assign({},t,{a:1}))+")"},i=ko(["react-colorful__alpha",e]),o=wt(100*t.a);return M.createElement("div",{className:i},M.createElement("div",{className:"react-colorful__alpha-gradient",style:r}),M.createElement(Au,{onMove:function(a){n({a:a.left})},onKey:function(a){n({a:Lr(t.a+a.left)})},"aria-label":"Alpha","aria-valuetext":o+"%","aria-valuenow":o,"aria-valuemin":"0","aria-valuemax":"100"},M.createElement(Du,{className:"react-colorful__alpha-pointer",left:t.a,color:Zc(t)})))},Vx=function(s){var e=s.className,t=s.colorModel,n=s.color,r=n===void 0?t.defaultColor:n,i=s.onChange,o=Ou(s,["className","colorModel","color","onChange"]),a=b.useRef(null);P0(a);var c=R0(t,r,i),l=c[0],u=c[1],h=ko(["react-colorful",e]);return M.createElement("div",ti({},o,{ref:a,className:h}),M.createElement(D0,{hsva:l,onChange:u}),M.createElement(A0,{hue:l.h,onChange:u}),M.createElement(jx,{hsva:l,onChange:u,className:"react-colorful__last-control"}))},zx={defaultColor:{r:0,g:0,b:0,a:1},toHsva:O0,fromHsva:S0,equal:Ru},Ux=function(s){return M.createElement(Vx,ti({},s,{colorModel:zx}))},Bx={defaultColor:{r:0,g:0,b:0},toHsva:function(s){return O0({r:s.r,g:s.g,b:s.b,a:1})},fromHsva:function(s){return{r:(e=S0(s)).r,g:e.g,b:e.b};var e},equal:Ru},Wx=function(s){return M.createElement(Lx,ti({},s,{colorModel:Bx}))};function fn(s,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(s,e,t,n);else for(var a=s.length-1;a>=0;a--)(o=s[a])&&(i=(r<3?o(i):r>3?o(e,t,i):o(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}function Ne(s,e,t,n){function r(i){return i instanceof t?i:new t(function(o){o(i)})}return new(t||(t=Promise))(function(i,o){function a(u){try{l(n.next(u))}catch(h){o(h)}}function c(u){try{l(n.throw(u))}catch(h){o(h)}}function l(u){u.done?i(u.value):r(u.value).then(a,c)}l((n=n.apply(s,e||[])).next())})}function ni(s,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,r,i,o;return o={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(l){return function(u){return c([l,u])}}function c(l){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,l[0]&&(t=0)),t;)try{if(n=1,r&&(i=l[0]&2?r.return:l[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,l[1])).done)return i;switch(r=0,i&&(l=[l[0]&2,i.value]),l[0]){case 0:case 1:i=l;break;case 4:return t.label++,{value:l[1],done:!1};case 5:t.label++,r=l[1],l=[0];continue;case 7:l=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){t=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]0)&&!(r=n.next()).done;)i.push(r.value)}catch(a){o={error:a}}finally{try{r&&!r.done&&(t=n.return)&&t.call(n)}finally{if(o)throw o.error}}return i}function Hx(){for(var s=[],e=0;e0?n:s.name,writable:!1,configurable:!1,enumerable:!0})}return t}function Gx(s){var e=s.name,t=e&&e.lastIndexOf(".")!==-1;if(t&&!s.type){var n=e.split(".").pop().toLowerCase(),r=Yx.get(n);r&&Object.defineProperty(s,"type",{value:r,writable:!1,configurable:!1,enumerable:!0})}return s}var Xx=[".DS_Store","Thumbs.db"];function Zx(s){return Ne(this,void 0,void 0,function(){return ni(this,function(e){return wa(s)&&Kx(s)?[2,tw(s.dataTransfer,s.type)]:Qx(s)?[2,Jx(s)]:Array.isArray(s)&&s.every(function(t){return"getFile"in t&&typeof t.getFile=="function"})?[2,ew(s)]:[2,[]]})})}function Kx(s){return wa(s.dataTransfer)}function Qx(s){return wa(s)&&wa(s.target)}function wa(s){return typeof s=="object"&&s!==null}function Jx(s){return Dl(s.target.files).map(function(e){return To(e)})}function ew(s){return Ne(this,void 0,void 0,function(){var e;return ni(this,function(t){switch(t.label){case 0:return[4,Promise.all(s.map(function(n){return n.getFile()}))];case 1:return e=t.sent(),[2,e.map(function(n){return To(n)})]}})})}function tw(s,e){return Ne(this,void 0,void 0,function(){var t,n;return ni(this,function(r){switch(r.label){case 0:return s===null?[2,[]]:s.items?(t=Dl(s.items).filter(function(i){return i.kind==="file"}),e!=="drop"?[2,t]:[4,Promise.all(t.map(nw))]):[3,2];case 1:return n=r.sent(),[2,Fd(M0(n))];case 2:return[2,Fd(Dl(s.files).map(function(i){return To(i)}))]}})})}function Fd(s){return s.filter(function(e){return Xx.indexOf(e.name)===-1})}function Dl(s){if(s===null)return[];for(var e=[],t=0;ts.length)&&(e=s.length);for(var t=0,n=new Array(e);tt)return[!1,Bd(t)];if(s.sizet)return[!1,Bd(t)]}return[!0,null]}function wi(s){return s!=null}function gw(s){var e=s.files,t=s.accept,n=s.minSize,r=s.maxSize,i=s.multiple,o=s.maxFiles;return!i&&e.length>1||i&&o>=1&&e.length>o?!1:e.every(function(a){var c=$0(a,t),l=zd(c,1),u=l[0],h=F0(a,n,r),d=zd(h,1),f=d[0];return u&&f})}function ka(s){return typeof s.isPropagationStopped=="function"?s.isPropagationStopped():typeof s.cancelBubble<"u"?s.cancelBubble:!1}function Zo(s){return s.dataTransfer?Array.prototype.some.call(s.dataTransfer.types,function(e){return e==="Files"||e==="application/x-moz-file"}):!!s.target&&!!s.target.files}function qd(s){s.preventDefault()}function _w(s){return s.indexOf("MSIE")!==-1||s.indexOf("Trident/")!==-1}function yw(s){return s.indexOf("Edge/")!==-1}function vw(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return _w(s)||yw(s)}function vn(){for(var s=arguments.length,e=new Array(s),t=0;t1?r-1:0),o=1;os.length)&&(e=s.length);for(var t=0,n=new Array(e);t=0)&&Object.prototype.propertyIsEnumerable.call(s,n)&&(t[n]=s[n])}return t}function Iw(s,e){if(s==null)return{};var t={},n=Object.keys(s),r,i;for(i=0;i=0)&&(t[r]=s[r]);return t}var Pu=b.forwardRef(function(s,e){var t=s.children,n=Ta(s,Tw),r=V0(n),i=r.open,o=Ta(r,Ew);return b.useImperativeHandle(e,function(){return{open:i}},[i]),M.createElement(b.Fragment,null,t(Ue(Ue({},o),{},{open:i})))});Pu.displayName="Dropzone";var j0={disabled:!1,getFilesFromEvent:Zx,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0};Pu.defaultProps=j0;Pu.propTypes={children:ke.func,accept:ke.oneOfType([ke.string,ke.arrayOf(ke.string)]),multiple:ke.bool,preventDropOnDocument:ke.bool,noClick:ke.bool,noKeyboard:ke.bool,noDrag:ke.bool,noDragEventsBubbling:ke.bool,minSize:ke.number,maxSize:ke.number,maxFiles:ke.number,disabled:ke.bool,getFilesFromEvent:ke.func,onFileDialogCancel:ke.func,onFileDialogOpen:ke.func,useFsAccessApi:ke.bool,onDragEnter:ke.func,onDragLeave:ke.func,onDragOver:ke.func,onDrop:ke.func,onDropAccepted:ke.func,onDropRejected:ke.func,validator:ke.func};var Ml={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,draggedFiles:[],acceptedFiles:[],fileRejections:[]};function V0(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=Ue(Ue({},j0),s),t=e.accept,n=e.disabled,r=e.getFilesFromEvent,i=e.maxSize,o=e.minSize,a=e.multiple,c=e.maxFiles,l=e.onDragEnter,u=e.onDragLeave,h=e.onDragOver,d=e.onDrop,f=e.onDropAccepted,m=e.onDropRejected,p=e.onFileDialogCancel,g=e.onFileDialogOpen,_=e.useFsAccessApi,w=e.preventDropOnDocument,k=e.noClick,v=e.noKeyboard,y=e.noDrag,T=e.noDragEventsBubbling,E=e.validator,x=b.useMemo(function(){return typeof g=="function"?g:Yd},[g]),C=b.useMemo(function(){return typeof p=="function"?p:Yd},[p]),S=b.useRef(null),D=b.useRef(null),O=b.useReducer($w,Ml),L=Kc(O,2),j=L[0],W=L[1],B=j.isFocused,U=j.isFileDialogActive,z=j.draggedFiles,X=b.useRef(typeof window<"u"&&window.isSecureContext&&_&&bw()),K=function(){!X.current&&U&&setTimeout(function(){if(D.current){var de=D.current.files;de.length||(W({type:"closeDialog"}),C())}},300)};b.useEffect(function(){return window.addEventListener("focus",K,!1),function(){window.removeEventListener("focus",K,!1)}},[D,U,C,X]);var ee=b.useRef([]),I=function(de){S.current&&S.current.contains(de.target)||(de.preventDefault(),ee.current=[])};b.useEffect(function(){return w&&(document.addEventListener("dragover",qd,!1),document.addEventListener("drop",I,!1)),function(){w&&(document.removeEventListener("dragover",qd),document.removeEventListener("drop",I))}},[S,w]);var F=b.useCallback(function(J){J.preventDefault(),J.persist(),P(J),ee.current=[].concat(Ow(ee.current),[J.target]),Zo(J)&&Promise.resolve(r(J)).then(function(de){ka(J)&&!T||(W({draggedFiles:de,isDragActive:!0,type:"setDraggedFiles"}),l&&l(J))})},[r,l,T]),A=b.useCallback(function(J){J.preventDefault(),J.persist(),P(J);var de=Zo(J);if(de&&J.dataTransfer)try{J.dataTransfer.dropEffect="copy"}catch{}return de&&h&&h(J),!1},[h,T]),N=b.useCallback(function(J){J.preventDefault(),J.persist(),P(J);var de=ee.current.filter(function(it){return S.current&&S.current.contains(it)}),Qe=de.indexOf(J.target);Qe!==-1&&de.splice(Qe,1),ee.current=de,!(de.length>0)&&(W({isDragActive:!1,type:"setDraggedFiles",draggedFiles:[]}),Zo(J)&&u&&u(J))},[S,u,T]),Y=b.useCallback(function(J,de){var Qe=[],it=[];J.forEach(function(It){var rs=$0(It,t),ur=Kc(rs,2),Oc=ur[0],Ac=ur[1],Dc=F0(It,o,i),Io=Kc(Dc,2),Rc=Io[0],Pc=Io[1],Mc=E?E(It):null;if(Oc&&Rc&&!Mc)Qe.push(It);else{var Nc=[Ac,Pc];Mc&&(Nc=Nc.concat(Mc)),it.push({file:It,errors:Nc.filter(function(w_){return w_})})}}),(!a&&Qe.length>1||a&&c>=1&&Qe.length>c)&&(Qe.forEach(function(It){it.push({file:It,errors:[mw]})}),Qe.splice(0)),W({acceptedFiles:Qe,fileRejections:it,type:"setFiles"}),d&&d(Qe,it,de),it.length>0&&m&&m(it,de),Qe.length>0&&f&&f(Qe,de)},[W,a,t,o,i,c,d,f,m,E]),$=b.useCallback(function(J){J.preventDefault(),J.persist(),P(J),ee.current=[],Zo(J)&&Promise.resolve(r(J)).then(function(de){ka(J)&&!T||Y(de,J)}),W({type:"reset"})},[r,Y,T]),q=b.useCallback(function(){if(X.current){W({type:"openDialog"}),x();var J={multiple:a,types:xw(t)};window.showOpenFilePicker(J).then(function(de){return r(de)}).then(function(de){Y(de,null),W({type:"closeDialog"})}).catch(function(de){ww(de)?(C(de),W({type:"closeDialog"})):kw(de)&&(X.current=!1,D.current&&(D.current.value=null,D.current.click()))});return}D.current&&(W({type:"openDialog"}),x(),D.current.value=null,D.current.click())},[W,x,C,_,Y,t,a]),oe=b.useCallback(function(J){!S.current||!S.current.isEqualNode(J.target)||(J.key===" "||J.key==="Enter"||J.keyCode===32||J.keyCode===13)&&(J.preventDefault(),q())},[S,q]),re=b.useCallback(function(){W({type:"focus"})},[]),ie=b.useCallback(function(){W({type:"blur"})},[]),ne=b.useCallback(function(){k||(vw()?setTimeout(q,0):q())},[k,q]),me=function(de){return n?null:de},te=function(de){return v?null:me(de)},H=function(de){return y?null:me(de)},P=function(de){T&&de.stopPropagation()},R=b.useMemo(function(){return function(){var J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},de=J.refKey,Qe=de===void 0?"ref":de,it=J.role,It=J.onKeyDown,rs=J.onFocus,ur=J.onBlur,Oc=J.onClick,Ac=J.onDragEnter,Dc=J.onDragOver,Io=J.onDragLeave,Rc=J.onDrop,Pc=Ta(J,Cw);return Ue(Ue(Pl({onKeyDown:te(vn(It,oe)),onFocus:te(vn(rs,re)),onBlur:te(vn(ur,ie)),onClick:me(vn(Oc,ne)),onDragEnter:H(vn(Ac,F)),onDragOver:H(vn(Dc,A)),onDragLeave:H(vn(Io,N)),onDrop:H(vn(Rc,$)),role:typeof it=="string"&&it!==""?it:"button"},Qe,S),!n&&!v?{tabIndex:0}:{}),Pc)}},[S,oe,re,ie,ne,F,A,N,$,v,y,n]),Q=b.useCallback(function(J){J.stopPropagation()},[]),se=b.useMemo(function(){return function(){var J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},de=J.refKey,Qe=de===void 0?"ref":de,it=J.onChange,It=J.onClick,rs=Ta(J,Sw),ur=Pl({accept:t,multiple:a,type:"file",style:{display:"none"},onChange:me(vn(it,$)),onClick:me(vn(It,Q)),tabIndex:-1},Qe,D);return Ue(Ue({},ur),rs)}},[D,t,a,$,n]),ce=z.length,ye=ce>0&&gw({files:z,accept:t,minSize:o,maxSize:i,multiple:a,maxFiles:c}),Ke=ce>0&&!ye;return Ue(Ue({},j),{},{isDragAccept:ye,isDragReject:Ke,isFocused:B&&!n,getRootProps:R,getInputProps:se,rootRef:S,inputRef:D,open:me(q)})}function $w(s,e){switch(e.type){case"focus":return Ue(Ue({},s),{},{isFocused:!0});case"blur":return Ue(Ue({},s),{},{isFocused:!1});case"openDialog":return Ue(Ue({},Ml),{},{isFileDialogActive:!0});case"closeDialog":return Ue(Ue({},s),{},{isFileDialogActive:!1});case"setDraggedFiles":var t=e.isDragActive,n=e.draggedFiles;return Ue(Ue({},s),{},{draggedFiles:n,isDragActive:t});case"setFiles":return Ue(Ue({},s),{},{acceptedFiles:e.acceptedFiles,fileRejections:e.fileRejections});case"reset":return Ue({},Ml);default:return s}}function Yd(){}function Fw(s){let e;const t=new Set,n=(l,u)=>{const h=typeof l=="function"?l(e):l;if(h!==e){const d=e;e=u?h:Object.assign({},e,h),t.forEach(f=>f(e,d))}},r=()=>e,i=(l,u=r,h=Object.is)=>{console.warn("[DEPRECATED] Please use `subscribeWithSelector` middleware");let d=u(e);function f(){const m=u(e);if(!h(d,m)){const p=d;l(d=m,p)}}return t.add(f),()=>t.delete(f)},c={setState:n,getState:r,subscribe:(l,u,h)=>u||h?i(l,u,h):(t.add(l),()=>t.delete(l)),destroy:()=>t.clear()};return e=s(n,r,c),c}const Lw=typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),Gd=Lw?b.useEffect:b.useLayoutEffect;function jw(s){const e=typeof s=="function"?Fw(s):s,t=(n=e.getState,r=Object.is)=>{const[,i]=b.useReducer(g=>g+1,0),o=e.getState(),a=b.useRef(o),c=b.useRef(n),l=b.useRef(r),u=b.useRef(!1),h=b.useRef();h.current===void 0&&(h.current=n(o));let d,f=!1;(a.current!==o||c.current!==n||l.current!==r||u.current)&&(d=n(o),f=!r(h.current,d)),Gd(()=>{f&&(h.current=d),a.current=o,c.current=n,l.current=r,u.current=!1});const m=b.useRef(o);Gd(()=>{const g=()=>{try{const w=e.getState(),k=c.current(w);l.current(h.current,k)||(a.current=w,h.current=k,i())}catch{u.current=!0,i()}},_=e.subscribe(g);return e.getState()!==m.current&&g(),_},[]);const p=f?d:h.current;return b.useDebugValue(p),p};return Object.assign(t,e),t[Symbol.iterator]=function(){console.warn("[useStore, api] = create() is deprecated and will be removed in v4");const n=[t,e];return{next(){const r=n.length<=0;return{value:n.shift(),done:r}}}},t}const Vw=s=>(e,t,n)=>{const r=n.subscribe;return n.subscribe=(o,a,c)=>{let l=o;if(a){const u=(c==null?void 0:c.equalityFn)||Object.is;let h=o(n.getState());l=d=>{const f=o(d);if(!u(h,f)){const m=h;a(h=f,m)}},c!=null&&c.fireImmediately&&a(h,h)}return r(l)},s(e,t,n)};/*! + * isobject + * + * Copyright (c) 2014-2017, Jon Schlinkert. + * Released under the MIT License. + */var zw=function(e){return e!=null&&typeof e=="object"&&Array.isArray(e)===!1};/*! + * is-plain-object + * + * Copyright (c) 2014-2017, Jon Schlinkert. + * Released under the MIT License. + */var Uw=zw;function Xd(s){return Uw(s)===!0&&Object.prototype.toString.call(s)==="[object Object]"}var z0=function(e){var t,n;return!(Xd(e)===!1||(t=e.constructor,typeof t!="function")||(n=t.prototype,Xd(n)===!1)||n.hasOwnProperty("isPrototypeOf")===!1)};/*! + * is-extendable + * + * Copyright (c) 2015-2017, Jon Schlinkert. + * Released under the MIT License. + */var Bw=z0,Mu=function(e){return Bw(e)||typeof e=="function"||Array.isArray(e)};/*! + * for-in + * + * Copyright (c) 2014-2017, Jon Schlinkert. + * Released under the MIT License. + */var Ww=function(e,t,n){for(var r in e)if(t.call(n,e[r],r,e)===!1)break},qw=Mu,Hw=Ww;function U0(s,e){for(var t=arguments.length,n=0;++n + * + * Copyright (c) 2014-2015, Jon Schlinkert. + * Licensed under the MIT License. + */var Zw=function(s,e,t,n,r){if(!Kw(s)||!e)return s;if(e=Ko(e),t&&(e+="."+Ko(t)),n&&(e+="."+Ko(n)),r&&(e+="."+Ko(r)),e in s)return s[e];for(var i=e.split("."),o=i.length,a=-1;s&&++a + * + * Copyright (c) 2015, Jon Schlinkert. + * Licensed under the MIT License. + */var Qw=function(s,e){if(s===null||typeof s>"u")throw new TypeError("expected first argument to be an object.");if(typeof e>"u"||typeof Symbol>"u"||typeof Object.getOwnPropertySymbols!="function")return s;for(var t=Object.prototype.propertyIsEnumerable,n=Object(s),r=arguments.length,i=0;++i"u")throw new TypeError("Cannot convert undefined or null to object");Zd(s)||(s={});for(var e=1;e + * + * Copyright (c) 2015-2017, Jon Schlinkert. + * Released under the MIT License. + */var ok=tk,ak=function(s,e,t){if(typeof s!="string")throw new TypeError("expected a string");typeof e=="function"&&(t=e,e=null),typeof e=="string"&&(e={sep:e});var n=ok({sep:"."},e),r=n.quotes||['"',"'","`"],i;n.brackets===!0?i={"<":">","(":")","[":"]","{":"}"}:n.brackets&&(i=n.brackets);var o=[],a=[],c=[""],l=n.sep,u=s.length,h=-1,d;function f(){if(i&&a.length)return i[a[a.length-1]]}for(;++h + * + * Copyright (c) 2015, Jon Schlinkert. + * Licensed under the MIT License. + */var uk=function(e){return typeof e<"u"&&e!==null&&(typeof e=="object"||typeof e=="function")},Kd=uk,hk=function(e){Kd(e)||(e={});for(var t=arguments.length,n=1;n + * + * Copyright (c) 2015, Jon Schlinkert. + * Licensed under the MIT License. + */var pk=function(e){return typeof e<"u"&&e!==null&&(typeof e=="object"||typeof e=="function")};/*! + * set-value + * + * Copyright (c) 2014-2015, 2017, Jon Schlinkert. + * Released under the MIT License. + */var mk=ak,gk=hk,Qd=z0,Jd=pk,_k=function(s,e,t){if(!Jd(s)||(Array.isArray(e)&&(e=[].concat.apply([],e).join(".")),typeof e!="string"))return s;for(var n=mk(e,{sep:".",brackets:!0}).filter(yk),r=n.length,i=-1,o=s;++is.filter(Boolean).join(".");function wk(s){const e=s.split(".");return[e.pop(),e.join(".")||void 0]}function kk(s,e){return Object.entries(Kv(s,e)).reduce((t,[,{value:n,disabled:r,key:i}])=>(t[i]=r?void 0:n,t),{})}function Tk(s,e){const t=b.useRef();return(e?Vi:bo)(s,t.current)||(t.current=s),t.current}function B0(s,e){return b.useMemo(s,Tk(e,!0))}function Ek(s){const e=b.useRef(null),t=b.useRef(null),n=b.useRef(!0);return b.useLayoutEffect(()=>{s||(e.current.style.height="0px",e.current.style.overflow="hidden")},[]),b.useEffect(()=>{if(n.current){n.current=!1;return}let r;const i=e.current,o=()=>{s&&(i.style.removeProperty("height"),i.style.removeProperty("overflow"),t.current.scrollIntoView({behavior:"smooth",block:"nearest"}))};i.addEventListener("transitionend",o,{once:!0});const{height:a}=t.current.getBoundingClientRect();return i.style.height=a+"px",s||(i.style.overflow="hidden",r=window.setTimeout(()=>i.style.height="0px",50)),()=>{i.removeEventListener("transitionend",o),clearTimeout(r)}},[s]),{wrapperRef:e,contentRef:t}}const Ck=s=>{const[e,t]=b.useState(s.getVisiblePaths());return b.useEffect(()=>{t(s.getVisiblePaths());const n=s.useStore.subscribe(s.getVisiblePaths,t,{equalityFn:bo});return()=>n()},[s]),e};function Sk(s,e,t){return s.useStore(r=>{const i=he(he({},t),r.data);return kk(i,e)},bo)}function W0(s=3){const e=b.useRef(null),t=b.useRef(null),[n,r]=b.useState(!1),i=b.useCallback(()=>r(!0),[]),o=b.useCallback(()=>r(!1),[]);return b.useLayoutEffect(()=>{if(n){const{bottom:a,top:c,left:l}=e.current.getBoundingClientRect(),{height:u}=t.current.getBoundingClientRect(),h=a+u>window.innerHeight-40?"up":"down";t.current.style.position="fixed",t.current.style.zIndex="10000",t.current.style.left=l+"px",h==="down"?t.current.style.top=a+s+"px":t.current.style.bottom=window.innerHeight-c+s+"px"}},[s,n]),{popinRef:e,wrapperRef:t,shown:n,show:i,hide:o}}Nx([Ix]);const Ok={rgb:"toRgb",hsl:"toHsl",hsv:"toHsv",hex:"toHex"};St.extend({color:()=>s=>vt(s).isValid()});const Ak=s=>St().color().test(s);function q0(s,{format:e,hasAlpha:t,isString:n}){const r=Ok[e]+(n&&e!=="hex"?"String":""),i=s[r]();return typeof i=="object"&&!t?Qv(i,["a"]):i}const H0=(s,e)=>{const t=vt(s);if(!t.isValid())throw Error("Invalid color");return q0(t,e)},Dk=(s,e)=>q0(vt(s),he(he({},e),{},{isString:!0,format:"hex"})),Rk=({value:s})=>{const e=Mx(s),t=e==="name"?"hex":e,n=typeof s=="object"?"a"in s:e==="hex"&&s.length===8||/^(rgba)|(hsla)|(hsva)/.test(s),r={format:t,hasAlpha:n,isString:typeof s=="string"};return{value:H0(s,r),settings:r}};var Pk=Object.freeze({__proto__:null,schema:Ak,sanitize:H0,format:Dk,normalize:Rk});const Mk=ae("div",{position:"relative",boxSizing:"border-box",borderRadius:"$sm",overflow:"hidden",cursor:"pointer",height:"$rowHeight",width:"$rowHeight",backgroundColor:"#fff",backgroundImage:`url('data:image/svg+xml;charset=utf-8,')`,$inputStyle:"",$hover:"",zIndex:1,variants:{active:{true:{$inputStyle:"$accent1"}}},"&::before":{content:'""',position:"absolute",top:0,bottom:0,right:0,left:0,backgroundColor:"currentColor",zIndex:1}}),Nk=ae("div",{position:"relative",display:"grid",gridTemplateColumns:"$sizes$rowHeight auto",columnGap:"$colGap",alignItems:"center"}),Ik=ae("div",{width:"$colorPickerWidth",height:"$colorPickerHeight",".react-colorful":{width:"100%",height:"100%",boxShadow:"$level2",cursor:"crosshair"},".react-colorful__saturation":{borderRadius:"$sm $sm 0 0"},".react-colorful__alpha, .react-colorful__hue":{height:10},".react-colorful__last-control":{borderRadius:"0 0 $sm $sm"},".react-colorful__pointer":{height:12,width:12}});function nf(s,e){return e!=="rgb"?vt(s).toRgb():s}function $k({value:s,displayValue:e,settings:t,onUpdate:n}){const{emitOnEditStart:r,emitOnEditEnd:i}=_t(),{format:o,hasAlpha:a}=t,{popinRef:c,wrapperRef:l,shown:u,show:h,hide:d}=W0(),f=b.useRef(0),[m,p]=b.useState(()=>nf(s,o)),g=a?Ux:Wx,_=()=>{p(nf(s,o)),h(),r()},w=()=>{d(),i(),window.clearTimeout(f.current)},k=()=>{f.current=window.setTimeout(w,500)};return b.useEffect(()=>()=>window.clearTimeout(f.current),[]),M.createElement(M.Fragment,null,M.createElement(Mk,{ref:c,active:u,onClick:()=>_(),style:{color:e}}),u&&M.createElement(Eu,null,M.createElement(f0,{onPointerUp:w}),M.createElement(Ik,{ref:l,onMouseEnter:()=>window.clearTimeout(f.current),onMouseLeave:v=>v.buttons===0&&k()},M.createElement(g,{color:m,onChange:n}))))}function Fk(){const{value:s,displayValue:e,label:t,onChange:n,onUpdate:r,settings:i}=_t();return M.createElement(en,{input:!0},M.createElement(dn,null,t),M.createElement(Nk,null,M.createElement($k,{value:s,displayValue:e,onChange:n,onUpdate:r,settings:i}),M.createElement(Tu,{value:e,onChange:n,onUpdate:r})))}var Lk=he({component:Fk},Pk);function jk(){const{label:s,displayValue:e,onUpdate:t,settings:n}=_t();return M.createElement(en,{input:!0},M.createElement(dn,null,s),M.createElement(Su,{value:e,settings:n,onUpdate:t}))}var Vk=he({component:jk},x0(["x","y","z"]));const zk=ae("div",{$flexCenter:"",position:"relative",backgroundColor:"$elevation3",borderRadius:"$sm",cursor:"pointer",height:"$rowHeight",width:"$rowHeight",touchAction:"none",$draggable:"",$hover:"","&:active":{cursor:"none"},"&::after":{content:'""',backgroundColor:"$accent2",height:4,width:4,borderRadius:2}}),Uk=ae("div",{$flexCenter:"",width:"$joystickWidth",height:"$joystickHeight",borderRadius:"$sm",boxShadow:"$level2",position:"fixed",zIndex:1e4,overflow:"hidden",$draggable:"",transform:"translate(-50%, -50%)",variants:{isOutOfBounds:{true:{backgroundColor:"$elevation1"},false:{backgroundColor:"$elevation3"}}},"> div":{position:"absolute",$flexCenter:"",borderStyle:"solid",borderWidth:1,borderColor:"$highlight1",backgroundColor:"$elevation3",width:"80%",height:"80%","&::after,&::before":{content:'""',position:"absolute",zindex:10,backgroundColor:"$highlight1"},"&::before":{width:"100%",height:1},"&::after":{height:"100%",width:1}},"> span":{position:"relative",zindex:100,width:10,height:10,backgroundColor:"$accent2",borderRadius:"50%"}});function Bk({value:s,settings:e,onUpdate:t}){const n=b.useRef(),r=b.useRef(0),i=b.useRef(0),o=b.useRef(1),[a,c]=b.useState(!1),[l,u]=b.useState(!1),[h,d]=m0(),f=b.useRef(null),m=b.useRef(null);b.useLayoutEffect(()=>{if(a){const{top:O,left:L,width:j,height:W}=f.current.getBoundingClientRect();m.current.style.left=L+j/2+"px",m.current.style.top=O+W/2+"px"}},[a]);const{keys:[p,g],joystick:_}=e,w=_==="invertY"?1:-1,{[p]:{step:k},[g]:{step:v}}=e,y=Bn("sizes","joystickWidth"),T=Bn("sizes","joystickHeight"),E=parseFloat(y)*.8/2,x=parseFloat(T)*.8/2,C=b.useCallback(()=>{n.current||(u(!0),r.current&&d({x:r.current*E}),i.current&&d({y:i.current*-x}),n.current=window.setInterval(()=>{t(O=>{const L=k*r.current*o.current,j=w*v*i.current*o.current;return Array.isArray(O)?{[p]:O[0]+L,[g]:O[1]+j}:{[p]:O[p]+L,[g]:O[g]+j}})},16))},[E,x,t,d,k,v,p,g,w]),S=b.useCallback(()=>{window.clearTimeout(n.current),n.current=void 0,u(!1)},[]);b.useEffect(()=>{function O(L){o.current=Jp(L)}return window.addEventListener("keydown",O),window.addEventListener("keyup",O),()=>{window.clearTimeout(n.current),window.removeEventListener("keydown",O),window.removeEventListener("keyup",O)}},[]);const D=wo(({first:O,active:L,delta:[j,W],movement:[B,U]})=>{O&&c(!0);const z=bs(B,-E,E),X=bs(U,-x,x);r.current=Math.abs(B)>Math.abs(z)?Math.sign(B-z):0,i.current=Math.abs(U)>Math.abs(X)?Math.sign(X-U):0;let K=s[p],ee=s[g];L?(r.current||(K+=j*k*o.current,d({x:z})),i.current||(ee-=w*W*v*o.current,d({y:X})),r.current||i.current?C():S(),t({[p]:K,[g]:ee})):(c(!1),r.current=0,i.current=0,d({x:0,y:0}),S())});return M.createElement(zk,Ze({ref:f},D()),a&&M.createElement(Eu,null,M.createElement(Uk,{ref:m,isOutOfBounds:l},M.createElement("div",null),M.createElement("span",{ref:h}))))}const Wk=ae("div",{display:"grid",columnGap:"$colGap",variants:{withJoystick:{true:{gridTemplateColumns:"$sizes$rowHeight auto"},false:{gridTemplateColumns:"auto"}}}});function qk(){const{label:s,displayValue:e,onUpdate:t,settings:n}=_t();return M.createElement(en,{input:!0},M.createElement(dn,null,s),M.createElement(Wk,{withJoystick:!!n.joystick},n.joystick&&M.createElement(Bk,{value:e,settings:n,onUpdate:t}),M.createElement(Su,{value:e,settings:n,onUpdate:t})))}const Hk=["joystick"],Y0=x0(["x","y"]),Yk=s=>{let{joystick:e=!0}=s,t=Ae(s,Hk);const{value:n,settings:r}=Y0.normalize(t);return{value:n,settings:he(he({},r),{},{joystick:e})}};var Gk=he(he({component:qk},Y0),{},{normalize:Yk});const Xk=s=>{if(s!==void 0){if(s instanceof File)try{return URL.createObjectURL(s)}catch{return}if(typeof s=="string"&&s.indexOf("blob:")===0)return s;throw Error("Invalid image format [undefined | blob | File].")}},Zk=(s,e)=>typeof e=="object"&&"image"in e,Kk=({image:s})=>({value:s});var Qk=Object.freeze({__proto__:null,sanitize:Xk,schema:Zk,normalize:Kk});const Jk=ae("div",{position:"relative",display:"grid",gridTemplateColumns:"$sizes$rowHeight auto 20px",columnGap:"$colGap",alignItems:"center"}),eT=ae("div",{$flexCenter:"",overflow:"hidden",height:"$rowHeight",background:"$elevation3",textAlign:"center",color:"inherit",borderRadius:"$sm",outline:"none",userSelect:"none",cursor:"pointer",$inputStyle:"",$hover:"",$focusWithin:"",$active:"$accent1 $elevation1",variants:{isDragAccept:{true:{$inputStyle:"$accent1",backgroundColor:"$elevation1"}}}}),tT=ae("div",{boxSizing:"border-box",borderRadius:"$sm",height:"$rowHeight",width:"$rowHeight",$inputStyle:"",backgroundSize:"cover",backgroundPosition:"center",variants:{hasImage:{true:{cursor:"pointer",$hover:"",$active:""}}}}),nT=ae("div",{$flexCenter:"",width:"$imagePreviewWidth",height:"$imagePreviewHeight",borderRadius:"$sm",boxShadow:"$level2",pointerEvents:"none",$inputStyle:"",backgroundSize:"cover",backgroundPosition:"center"}),sT=ae("div",{fontSize:"0.8em",height:"100%",padding:"$rowGap $md"}),rT=ae("div",{$flexCenter:"",top:"0",right:"0",marginRight:"$sm",height:"100%",cursor:"pointer",variants:{disabled:{true:{color:"$elevation3",cursor:"default"}}},"&::after,&::before":{content:'""',position:"absolute",height:2,width:10,borderRadius:1,backgroundColor:"currentColor"},"&::after":{transform:"rotate(45deg)"},"&::before":{transform:"rotate(-45deg)"}});function iT(){const{label:s,value:e,onUpdate:t,disabled:n}=_t(),{popinRef:r,wrapperRef:i,shown:o,show:a,hide:c}=W0(),l=b.useCallback(m=>{m.length&&t(m[0])},[t]),u=b.useCallback(m=>{m.stopPropagation(),t(void 0)},[t]),{getRootProps:h,getInputProps:d,isDragAccept:f}=V0({maxFiles:1,accept:"image/*",onDrop:l,disabled:n});return M.createElement(en,{input:!0},M.createElement(dn,null,s),M.createElement(Jk,null,M.createElement(tT,{ref:r,hasImage:!!e,onPointerDown:()=>!!e&&a(),onPointerUp:c,style:{backgroundImage:e?`url(${e})`:"none"}}),o&&!!e&&M.createElement(Eu,null,M.createElement(f0,{onPointerUp:c,style:{cursor:"pointer"}}),M.createElement(nT,{ref:i,style:{backgroundImage:`url(${e})`}})),M.createElement(eT,h({isDragAccept:f}),M.createElement("input",d()),M.createElement(sT,null,f?"drop image":"click or drop")),M.createElement(rT,{onClick:u,disabled:!e})))}var oT=he({component:iT},Qk);const sf=St().number(),aT=(s,e)=>St().array().length(2).every.number().test(s)&&St().schema({min:sf,max:sf}).test(e),Ea=s=>({min:s[0],max:s[1]}),G0=(s,{bounds:[e,t]},n)=>{const r=Array.isArray(s)?Ea(s):s,i={min:n[0],max:n[1]},{min:o,max:a}=he(he({},i),r);return[bs(Number(o),e,Math.max(e,a)),bs(Number(a),Math.min(t,o),t)]},cT=({value:s,min:e,max:t})=>{const n={min:e,max:t},r=b0(Ea(s),{min:n,max:n}),i=[e,t],o=he(he({},r),{},{bounds:i});return{value:G0(Ea(s),o,s),settings:o}};var lT=Object.freeze({__proto__:null,schema:aT,format:Ea,sanitize:G0,normalize:cT});const uT=["value","bounds","onDrag"],hT=["bounds"],dT=ae("div",{display:"grid",columnGap:"$colGap",gridTemplateColumns:"auto calc($sizes$numberInputMinWidth * 2 + $space$rowGap)"});function fT(s){let{value:e,bounds:[t,n],onDrag:r}=s,i=Ae(s,uT);const o=b.useRef(null),a=b.useRef(null),c=b.useRef(null),l=b.useRef(0),u=Bn("sizes","scrubberWidth"),h=wo(({event:m,first:p,xy:[g],movement:[_],memo:w={}})=>{if(p){const{width:v,left:y}=o.current.getBoundingClientRect();l.current=v-parseFloat(u);const T=(m==null?void 0:m.target)===a.current||(m==null?void 0:m.target)===c.current;w.pos=ba((g-y)/v,t,n);const E=Math.abs(w.pos-e.min)-Math.abs(w.pos-e.max);w.key=E<0||E===0&&w.pos<=e.min?"min":"max",T&&(w.pos=e[w.key])}const k=w.pos+ba(_/l.current,0,n-t);return r({[w.key]:Vb(k,i[w.key])}),w}),d=`calc(${va(e.min,t,n)} * (100% - ${u} - 8px) + 4px)`,f=`calc(${1-va(e.max,t,n)} * (100% - ${u} - 8px) + 4px)`;return M.createElement(_0,Ze({ref:o},h()),M.createElement(g0,null,M.createElement(y0,{style:{left:d,right:f}})),M.createElement(kl,{position:"left",ref:a,style:{left:d}}),M.createElement(kl,{position:"right",ref:c,style:{right:f}}))}function pT(){const{label:s,displayValue:e,onUpdate:t,settings:n}=_t(),r=Ae(n,hT);return M.createElement(M.Fragment,null,M.createElement(en,{input:!0},M.createElement(dn,null,s),M.createElement(dT,null,M.createElement(fT,Ze({value:e},n,{onDrag:t})),M.createElement(Su,{value:e,settings:r,onUpdate:t,innerLabelTrim:0}))))}var mT=he({component:pT},lT);const gT=()=>{const s=new Map;return{on:(e,t)=>{let n=s.get(e);n===void 0&&(n=new Set,s.set(e,n)),n.add(t)},off:(e,t)=>{const n=s.get(e);n!==void 0&&(n.delete(t),n.size===0&&s.delete(e))},emit:(e,...t)=>{const n=s.get(e);if(n!==void 0)for(const r of n)r(...t)}}},_T=["type","value"],yT=["onChange","transient","onEditStart","onEditEnd"],vT=function(){const e=jw(Vw(()=>({data:{}}))),t=gT();this.storeId=Zv(),this.useStore=e;const n={},r=new Set;this.getVisiblePaths=()=>{const o=this.getData(),a=Object.keys(o),c=[];Object.entries(n).forEach(([u,h])=>{h.render&&a.some(d=>d.indexOf(u)===0)&&!h.render(this.get)&&c.push(u+".")});const l=[];return r.forEach(u=>{u in o&&o[u].__refCount>0&&c.every(h=>u.indexOf(h)===-1)&&(!o[u].render||o[u].render(this.get))&&l.push(u)}),l},this.setOrderedPaths=o=>{o.forEach(a=>r.add(a))},this.orderPaths=o=>(this.setOrderedPaths(o),o),this.disposePaths=o=>{e.setState(a=>{const c=a.data;return o.forEach(l=>{if(l in c){const u=c[l];u.__refCount--,u.__refCount===0&&u.type in an&&delete c[l]}}),{data:c}})},this.dispose=()=>{e.setState(()=>({data:{}}))},this.getFolderSettings=o=>n[o]||{},this.getData=()=>e.getState().data,this.addData=(o,a)=>{e.setState(c=>{const l=c.data;return Object.entries(o).forEach(([u,h])=>{let d=l[u];if(d){const{type:f,value:m}=h,p=Ae(h,_T);f!==d.type?Un(Be.INPUT_TYPE_OVERRIDE,f):((d.__refCount===0||a)&&Object.assign(d,p),d.__refCount++)}else l[u]=he(he({},h),{},{__refCount:1})}),{data:l}})},this.setValueAtPath=(o,a,c)=>{e.setState(l=>{const u=l.data;return Cd(u[o],a,o,this,c),{data:u}})},this.setSettingsAtPath=(o,a)=>{e.setState(c=>{const l=c.data;return l[o].settings=he(he({},l[o].settings),a),{data:l}})},this.disableInputAtPath=(o,a)=>{e.setState(c=>{const l=c.data;return l[o].disabled=a,{data:l}})},this.set=(o,a)=>{e.setState(c=>{const l=c.data;return Object.entries(o).forEach(([u,h])=>{try{Cd(l[u],h,void 0,void 0,a)}catch{}}),{data:l}})},this.getInput=o=>{try{return this.getData()[o]}catch{Un(Be.PATH_DOESNT_EXIST,o)}},this.get=o=>{var a;return(a=this.getInput(o))===null||a===void 0?void 0:a.value},this.emitOnEditStart=o=>{t.emit(`onEditStart:${o}`,this.get(o),o,he(he({},this.getInput(o)),{},{get:this.get}))},this.emitOnEditEnd=o=>{t.emit(`onEditEnd:${o}`,this.get(o),o,he(he({},this.getInput(o)),{},{get:this.get}))},this.subscribeToEditStart=(o,a)=>{const c=`onEditStart:${o}`;return t.on(c,a),()=>t.off(c,a)},this.subscribeToEditEnd=(o,a)=>{const c=`onEditEnd:${o}`;return t.on(c,a),()=>t.off(c,a)};const i=(o,a,c)=>{const l={};return Object.entries(o).forEach(([u,h])=>{if(u==="")return Un(Be.EMPTY_KEY);let d=Nu(a,u);if(h.type===an.FOLDER){const f=i(h.schema,d,c);Object.assign(l,f),d in n||(n[d]=h.settings)}else if(u in c)Un(Be.DUPLICATE_KEYS,u,d,c[u].path);else{const f=rb(h,u,d,l);if(f){const{type:m,options:p,input:g}=f,{onChange:_,transient:w,onEditStart:k,onEditEnd:v}=p,y=Ae(p,yT);l[d]=he(he(he({type:m},y),g),{},{fromPanel:!0}),c[u]={path:d,onChange:_,transient:w,onEditStart:k,onEditEnd:v}}else Un(Be.UNKNOWN_INPUT,d,h)}}),l};this.getDataFromSchema=o=>{const a={};return[i(o,"",a),a]}},X0=new vT,bT={collapsed:!1};function xT(s,e){return{type:an.FOLDER,schema:s,settings:he(he({},bT),e)}}const rf=s=>"__levaInput"in s,wT=(s,e)=>{const t={},n=e?e.toLowerCase():null;return s.forEach(r=>{const[i,o]=wk(r);(!n||i.toLowerCase().indexOf(n)>-1)&&xk(t,o,{[i]:{__levaInput:!0,path:r}})}),t},kT=["type","label","path","valueKey","value","settings","setValue","disabled"];function TT(s){let{type:e,label:t,path:n,valueKey:r,value:i,settings:o,setValue:a,disabled:c}=s,l=Ae(s,kT);const{displayValue:u,onChange:h,onUpdate:d}=p0({type:e,value:i,settings:o,setValue:a}),f=Ks[e].component;return f?M.createElement(r0.Provider,{value:he({key:r,path:n,id:""+n,label:t,displayValue:u,value:i,onChange:h,onUpdate:d,settings:o,setValue:a,disabled:c},l)},M.createElement(Tb,{disabled:c},M.createElement(f,null))):(Un(Be.NO_COMPONENT_FOR_TYPE,e,n),null)}const ET=ae("button",{display:"block",$reset:"",fontWeight:"$button",height:"$rowHeight",borderStyle:"none",borderRadius:"$sm",backgroundColor:"$elevation1",color:"$highlight1","&:not(:disabled)":{color:"$highlight3",backgroundColor:"$accent2",cursor:"pointer",$hover:"$accent3",$active:"$accent3 $accent1",$focus:""}});function CT({onClick:s,settings:e,label:t}){const n=xo();return M.createElement(en,null,M.createElement(ET,{disabled:e.disabled,onClick:()=>s(n.get)},t))}const ST=ae("div",{$flex:"",justifyContent:"flex-end",gap:"$colGap"}),OT=ae("button",{$reset:"",cursor:"pointer",borderRadius:"$xs","&:hover":{backgroundColor:"$elevation3"}}),AT=({label:s,opts:e})=>{let t=typeof s=="string"&&s.trim()===""?null:s,n=e;return typeof e.opts=="object"&&(n.label!==void 0&&(t=e.label),n=e.opts),{label:t,opts:n}};function DT(s){const{label:e,opts:t}=AT(s),n=xo();return M.createElement(en,{input:!!e},e&&M.createElement(dn,null,e),M.createElement(ST,null,Object.entries(t).map(([r,i])=>M.createElement(OT,{key:r,onClick:()=>i(n.get)},r))))}const RT=ae("canvas",{height:"$monitorHeight",width:"100%",display:"block",borderRadius:"$sm"}),Z0=100;function PT(s,e){s.push(e),s.length>Z0&&s.shift()}const MT=b.forwardRef(function({initialValue:s},e){const t=Bn("colors","highlight3"),n=Bn("colors","elevation2"),r=Bn("colors","highlight1"),[i,o]=b.useMemo(()=>[vt(r).alpha(.4).toRgbString(),vt(r).alpha(.1).toRgbString()],[r]),a=b.useRef([s]),c=b.useRef(s),l=b.useRef(s),u=b.useRef(),h=b.useCallback((m,p)=>{if(!m)return;const{width:g,height:_}=m,w=new Path2D,k=g/Z0,v=_*.05;for(let E=0;E({frame:m=>{(c.current===void 0||ml.current)&&(l.current=m),PT(a.current,m),u.current=requestAnimationFrame(()=>h(d.current,f.current))}}),[d,f,h]),b.useEffect(()=>()=>cancelAnimationFrame(u.current),[]),M.createElement(RT,{ref:d})}),of=s=>Number.isFinite(s)?s.toPrecision(2):s.toString(),NT=b.forwardRef(function({initialValue:s},e){const[t,n]=b.useState(of(s));return b.useImperativeHandle(e,()=>({frame:r=>n(of(r))}),[]),M.createElement("div",null,t)});function af(s){return typeof s=="function"?s():s.current}function IT({label:s,objectOrFn:e,settings:t}){const n=b.useRef(),r=b.useRef(af(e));return b.useEffect(()=>{const i=window.setInterval(()=>{var o;document.hidden||(o=n.current)===null||o===void 0||o.frame(af(e))},t.interval);return()=>window.clearInterval(i)},[e,t.interval]),M.createElement(en,{input:!0},M.createElement(dn,{align:"top"},s),t.graph?M.createElement(MT,{ref:n,initialValue:r.current}):M.createElement(NT,{ref:n,initialValue:r.current}))}const $T=["type","label","key"],FT={[an.BUTTON]:CT,[an.BUTTON_GROUP]:DT,[an.MONITOR]:IT},LT=M.memo(({path:s})=>{const[e,{set:t,setSettings:n,disable:r,storeId:i,emitOnEditStart:o,emitOnEditEnd:a}]=Ib(s);if(!e)return null;const{type:c,label:l,key:u}=e,h=Ae(e,$T);if(c in an){const d=FT[c];return M.createElement(d,Ze({label:l,path:s},h))}return c in Ks?M.createElement(TT,Ze({key:i+s,type:c,label:l,storeId:i,path:s,valueKey:u,setValue:t,setSettings:n,disable:r,emitOnEditStart:o,emitOnEditEnd:a},h)):(Uv(Be.UNSUPPORTED_INPUT,c,s),null)});function jT({toggle:s,toggled:e,name:t}){return M.createElement(xb,{onClick:()=>s()},M.createElement(Cu,{toggled:e}),M.createElement("div",null,t))}const VT=({name:s,path:e,tree:t})=>{const n=xo(),r=Nu(e,s),{collapsed:i,color:o}=n.getFolderSettings(r),[a,c]=b.useState(!i),l=b.useRef(null),u=Bn("colors","folderWidgetColor"),h=Bn("colors","folderTextColor");return b.useLayoutEffect(()=>{l.current.style.setProperty("--leva-colors-folderWidgetColor",o||u),l.current.style.setProperty("--leva-colors-folderTextColor",o||h)},[o,u,h]),M.createElement(xa,{ref:l},M.createElement(jT,{name:s,toggled:a,toggle:()=>c(d=>!d)}),M.createElement(K0,{parent:r,tree:t,toggled:a}))},K0=M.memo(({isRoot:s=!1,fill:e=!1,flat:t=!1,parent:n,tree:r,toggled:i})=>{const{wrapperRef:o,contentRef:a}=Ek(i),c=xo(),l=([h,d])=>{var f;return(rf(d)?(f=c.getInput(d.path))===null||f===void 0?void 0:f.order:c.getFolderSettings(Nu(n,h)).order)||0},u=Object.entries(r).sort((h,d)=>l(h)-l(d));return M.createElement(xl,{ref:o,isRoot:s,fill:e,flat:t},M.createElement(u0,{ref:a,isRoot:s,toggled:i},u.map(([h,d])=>rf(d)?M.createElement(LT,{key:d.path,valueKey:d.valueKey,path:d.path}):M.createElement(VT,{key:h,name:h,path:n,tree:d}))))}),zT=ae("div",{position:"relative",fontFamily:"$mono",fontSize:"$root",color:"$rootText",backgroundColor:"$elevation1",variants:{fill:{false:{position:"fixed",top:"10px",right:"10px",zIndex:1e3,width:"$rootWidth"},true:{position:"relative",width:"100%"}},flat:{false:{borderRadius:"$lg",boxShadow:"$level1"}},oneLineLabels:{true:{[`${d0}`]:{gridTemplateColumns:"auto",gridAutoColumns:"minmax(max-content, 1fr)",gridAutoRows:"minmax($sizes$rowHeight), auto)",rowGap:0,columnGap:0,marginTop:"$rowGap"}}},hideTitleBar:{true:{$$titleBarHeight:"0px"},false:{$$titleBarHeight:"$sizes$titleBarHeight"}}},"&,*,*:after,*:before":{boxSizing:"border-box"},"*::selection":{backgroundColor:"$accent2"}}),Q0=40,Ca=ae("i",{$flexCenter:"",width:Q0,userSelect:"none",cursor:"pointer","> svg":{fill:"$highlight1",transition:"transform 350ms ease, fill 250ms ease"},"&:hover > svg":{fill:"$highlight3"},variants:{active:{true:{"> svg":{fill:"$highlight2"}}}}}),UT=ae("div",{display:"flex",alignItems:"stretch",justifyContent:"space-between",height:"$titleBarHeight",variants:{mode:{drag:{cursor:"grab"}}}}),BT=ae("div",{$flex:"",position:"relative",width:"100%",overflow:"hidden",transition:"height 250ms ease",color:"$highlight3",paddingLeft:"$md",[`> ${Ca}`]:{height:30},variants:{toggled:{true:{height:30},false:{height:0}}}}),WT=ae("input",{$reset:"",flex:1,position:"relative",height:30,width:"100%",backgroundColor:"transparent",fontSize:"10px",borderRadius:"$root","&:focus":{},"&::placeholder":{color:"$highlight2"}}),qT=ae("div",{touchAction:"none",$flexCenter:"",flex:1,"> svg":{fill:"$highlight1"},color:"$highlight1",variants:{drag:{true:{$draggable:"","> svg":{transition:"fill 250ms ease"},"&:hover":{color:"$highlight3"},"&:hover > svg":{fill:"$highlight3"}}},filterEnabled:{false:{paddingRight:Q0}}}}),HT=M.forwardRef(({setFilter:s,toggle:e},t)=>{const[n,r]=b.useState(""),i=b.useMemo(()=>Qp(s,250),[s]),o=()=>{s(""),r("")},a=c=>{const l=c.currentTarget.value;e(!0),r(l)};return b.useEffect(()=>{i(n)},[n,i]),M.createElement(M.Fragment,null,M.createElement(WT,{ref:t,value:n,placeholder:"[Open filter with CMD+SHIFT+L]",onPointerDown:c=>c.stopPropagation(),onChange:a}),M.createElement(Ca,{onClick:()=>o(),style:{visibility:n?"visible":"hidden"}},M.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"14",width:"14",viewBox:"0 0 20 20",fill:"currentColor"},M.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z",clipRule:"evenodd"}))))});function YT({setFilter:s,onDrag:e,onDragStart:t,onDragEnd:n,toggle:r,toggled:i,title:o,drag:a,filterEnabled:c,from:l}){const[u,h]=b.useState(!1),d=b.useRef(null);b.useEffect(()=>{var m,p;u?(m=d.current)===null||m===void 0||m.focus():(p=d.current)===null||p===void 0||p.blur()},[u]);const f=wo(({offset:[m,p],first:g,last:_})=>{e({x:m,y:p}),g&&t({x:m,y:p}),_&&n({x:m,y:p})},{filterTaps:!0,from:({offset:[m,p]})=>[(l==null?void 0:l.x)||m,(l==null?void 0:l.y)||p]});return b.useEffect(()=>{const m=p=>{p.key==="L"&&p.shiftKey&&p.metaKey&&h(g=>!g)};return window.addEventListener("keydown",m),()=>window.removeEventListener("keydown",m)},[]),M.createElement(M.Fragment,null,M.createElement(UT,{mode:a?"drag":void 0},M.createElement(Ca,{active:!i,onClick:()=>r()},M.createElement(Cu,{toggled:i,width:12,height:8})),M.createElement(qT,Ze({},a?f():{},{drag:a,filterEnabled:c}),o===void 0&&a?M.createElement("svg",{width:"20",height:"10",viewBox:"0 0 28 14",xmlns:"http://www.w3.org/2000/svg"},M.createElement("circle",{cx:"2",cy:"2",r:"2"}),M.createElement("circle",{cx:"14",cy:"2",r:"2"}),M.createElement("circle",{cx:"26",cy:"2",r:"2"}),M.createElement("circle",{cx:"2",cy:"12",r:"2"}),M.createElement("circle",{cx:"14",cy:"12",r:"2"}),M.createElement("circle",{cx:"26",cy:"12",r:"2"})):o),c&&M.createElement(Ca,{active:u,onClick:()=>h(m=>!m)},M.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"20",viewBox:"0 0 20 20"},M.createElement("path",{d:"M9 9a2 2 0 114 0 2 2 0 01-4 0z"}),M.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm1-13a4 4 0 00-3.446 6.032l-2.261 2.26a1 1 0 101.414 1.415l2.261-2.261A4 4 0 1011 5z",clipRule:"evenodd"})))),M.createElement(BT,{toggled:u},M.createElement(HT,{ref:d,setFilter:s,toggle:r})))}const GT=["store","hidden","theme","collapsed"];function XT(s){let{store:e,hidden:t=!1,theme:n,collapsed:r=!1}=s,i=Ae(s,GT);const o=B0(()=>mb(n),[n]),[a,c]=b.useState(!r),l=typeof r=="object"?!r.collapsed:a,u=b.useMemo(()=>typeof r=="object"?h=>{typeof h=="function"?r.onChange(!h(!r.collapsed)):r.onChange(!h)}:c,[r]);return!e||t?null:M.createElement(ku.Provider,{value:o},M.createElement(ZT,Ze({store:e},i,{toggled:l,setToggle:u,rootClass:o.className})))}const ZT=M.memo(({store:s,rootClass:e,fill:t=!1,flat:n=!1,neverHide:r=!1,oneLineLabels:i=!1,titleBar:o={title:void 0,drag:!0,filter:!0,position:void 0,onDrag:void 0,onDragStart:void 0,onDragEnd:void 0},hideCopyButton:a=!1,toggled:c,setToggle:l})=>{var u,h;const d=Ck(s),[f,m]=b.useState(""),p=b.useMemo(()=>wT(d,f),[d,f]),[g,_]=m0(),w=r||d.length>0,k=typeof o=="object"&&o.title||void 0,v=typeof o=="object"&&(u=o.drag)!==null&&u!==void 0?u:!0,y=typeof o=="object"&&(h=o.filter)!==null&&h!==void 0?h:!0,T=typeof o=="object"&&o.position||void 0,E=typeof o=="object"&&o.onDrag||void 0,x=typeof o=="object"&&o.onDragStart||void 0,C=typeof o=="object"&&o.onDragEnd||void 0;return M.useEffect(()=>{_({x:T==null?void 0:T.x,y:T==null?void 0:T.y})},[T,_]),pb(),M.createElement(o0.Provider,{value:{hideCopyButton:a}},M.createElement(zT,{ref:g,className:e,fill:t,flat:n,oneLineLabels:i,hideTitleBar:!o,style:{display:w?"block":"none"}},o&&M.createElement(YT,{onDrag:S=>{_(S),E==null||E(S)},onDragStart:S=>x==null?void 0:x(S),onDragEnd:S=>C==null?void 0:C(S),setFilter:m,toggle:S=>l(D=>S??!D),toggled:c,title:k,drag:v,filterEnabled:y,from:T}),w&&M.createElement(i0.Provider,{value:s},M.createElement(K0,{isRoot:!0,fill:t,flat:n,tree:p,toggled:c}))))}),KT=["isRoot"];let Sa=!1,Vs=null;function J0(s){let{isRoot:e=!1}=s,t=Ae(s,KT);return b.useEffect(()=>(Sa=!0,!e&&Vs&&(Vs.remove(),Vs=null),()=>{e||(Sa=!1)}),[e]),M.createElement(XT,Ze({store:X0},t))}function QT(s){b.useEffect(()=>{s&&!Sa&&(Vs||(Vs=document.getElementById("leva__root")||Object.assign(document.createElement("div"),{id:"leva__root"}),document.body&&(document.body.appendChild(Vs),ob(M.createElement(J0,{isRoot:!0}),Vs))),Sa=!0)},[s])}function JT(s,e,t,n,r){let i,o,a,c,l;return typeof s=="string"?(o=s,i=e,Array.isArray(t)?l=t:t&&("store"in t?(c=t,l=n):(a=t,Array.isArray(n)?l=n:(c=n,l=r)))):(i=s,Array.isArray(e)?l=e:(c=e,l=t)),{schema:i,folderName:o,folderSettings:a,hookSettings:c,deps:l||[]}}function eE(s,e,t,n,r){const{folderName:i,schema:o,folderSettings:a,hookSettings:c,deps:l}=JT(s,e,t,n,r),u=typeof o=="function",h=b.useRef(!1),d=b.useRef(!0),f=B0(()=>{h.current=!0;const D=typeof o=="function"?o():o;return i?{[i]:xT(D,a)}:D},l),m=!(c!=null&&c.store);QT(m);const[p]=b.useState(()=>(c==null?void 0:c.store)||X0),[g,_]=b.useMemo(()=>p.getDataFromSchema(f),[p,f]),[w,k,v,y,T]=b.useMemo(()=>{const D=[],O=[],L={},j={},W={};return Object.values(_).forEach(({path:B,onChange:U,onEditStart:z,onEditEnd:X,transient:K})=>{D.push(B),U?(L[B]=U,K||O.push(B)):O.push(B),z&&(j[B]=z),X&&(W[B]=X)}),[D,O,L,j,W]},[_]),E=b.useMemo(()=>p.orderPaths(w),[w,p]),x=Sk(p,k,g),C=b.useCallback(D=>{const O=Object.entries(D).reduce((L,[j,W])=>Object.assign(L,{[_[j].path]:W}),{});p.set(O,!1)},[p,_]),S=b.useCallback(D=>p.get(_[D].path),[p,_]);return b.useEffect(()=>{const D=!d.current&&h.current;return p.addData(g,D),d.current=!1,h.current=!1,()=>p.disposePaths(E)},[p,E,g]),b.useEffect(()=>{const D=[];return Object.entries(v).forEach(([O,L])=>{L(p.get(O),O,he({initial:!0,get:p.get},p.getInput(O)));const j=p.useStore.subscribe(W=>{const B=W.data[O];return[B.disabled?void 0:B.value,B]},([W,B])=>L(W,O,he({initial:!1,get:p.get},B)),{equalityFn:bo});D.push(j)}),()=>D.forEach(O=>O())},[p,v]),b.useEffect(()=>{const D=[];return Object.entries(y).forEach(([O,L])=>D.push(p.subscribeToEditStart(O,L))),Object.entries(T).forEach(([O,L])=>D.push(p.subscribeToEditEnd(O,L))),()=>D.forEach(O=>O())},[y,T,p]),u?[x,C,S]:x}es(ln.SELECT,Qb);es(ln.IMAGE,oT);es(ln.NUMBER,Ub);es(ln.COLOR,Lk);es(ln.STRING,ax);es(ln.BOOLEAN,px);es(ln.INTERVAL,mT);es(ln.VECTOR3D,Vk);es(ln.VECTOR2D,Gk);const tE={isUserDragging:!1,isUserScrolling:!1,userMovedCamera:!1,isUserScrollingOnHtmlPanel:!1},ds=tp(s=>({...tE,setIsUserDragging:e=>s({isUserDragging:e}),setIsUserScrolling:e=>s({isUserScrolling:e}),setUserMovedCamera:e=>s({userMovedCamera:e}),setIsUserScrollingOnHtmlPanel:e=>s({isUserScrollingOnHtmlPanel:e})})),nE=()=>{const[s,e]=b.useState(""),t=b.useRef(null),{fetchData:n,setAbortRequests:r,seedQuestions:i}=Os(v=>v),[o]=sp(v=>[v.setBudget]),{setUniverseQuestionIsOpen:a,setSidebarOpen:c,setShowCollapseButton:l}=go(v=>({setUniverseQuestionIsOpen:v.setUniverseQuestionIsOpen,setSidebarOpen:v.setSidebarOpen,setShowCollapseButton:v.setShowCollapseButton})),u=E_(v=>v.resetAiSummaryAnswer),[h,d]=b.useState([]);b.useEffect(()=>{i&&d(w(i).slice(0,4))},[i]),b.useEffect(()=>{t.current&&t.current.focus()},[]);const f=async v=>{v&&(u(),a(),c(!0),l(!0)),await n(o,r,v)},m=!!s.trim().length,p=async v=>{v.keyCode===13&&v.shiftKey===!1&&m&&(v.preventDefault(),f(s))},g=async v=>{e(v),await f(v)},_=()=>{a(),c(!0),l(!0)},w=v=>{const y=[...v];let T=y.length-1;for(;T>0;){const E=Math.floor(Math.random()*(T+1));[y[T],y[E]]=[y[E],y[T]],T-=1}return y},k=!!s&&s.trim().length>0;return V.jsxs(iE,{children:["Ideas have shapes",V.jsxs(rE,{onKeyDown:p,py:12,tabIndex:-1,children:[V.jsx(sE,{ref:t,onChange:v=>e(v.target.value),placeholder:"What do you want to know?",value:s}),V.jsx(oE,{color:"secondary",disabled:!k,onClick:()=>f(s),variant:"contained",children:k?V.jsxs(V.Fragment,{children:["Search ",V.jsx(Ph,{})]}):V.jsx(Ph,{})})]}),h.length>0&&V.jsx(cE,{children:h.map(v=>V.jsxs(lE,{onClick:()=>g(v),children:[V.jsx(L_,{}),v]},v))}),V.jsx(aE,{"data-testid":"explore-graph-btn",onClick:_,startIcon:V.jsx(j_,{}),children:"Explore Graph"})]})},sE=nt(ny).attrs({maxRows:3})` + background: ${Me.BG1}; + max-width: 700px; + width: 700px; + color: ${Me.white}; + padding: 0 16px 0 16px; + overflow-y: auto !important; + border: none; + resize: none; + outline: none; + border-radius: 12px; + font-family: 'Barlow'; + display: flex; + align-items: center; + text-align: justify; + font-size: 16px; + font-weight: 400; + + &:-moz-placeholder, /* Firefox 18- */ + &::-moz-placeholder, /* Firefox 19+ */ + &:-ms-input-placeholder, /* IE 10+ */ + &::-webkit-input-placeholder, /* Webkit based */ + &::placeholder { + color: #0bf; + } + + &::-webkit-scrollbar { + width: 3px; + } + + &::-webkit-scrollbar-track { + border-radius: 12px; + margin: 13px; + overflow-y: hidden; + } +`,rE=nt(On)` + position: relative; + margin-top: 30px; + background: ${Me.BG1}; + max-width: 702px; + width: 702px; + color: ${Me.white}; + min-height: 150px; + border: 1px solid ${Me.modalShield}; + resize: none; + outline: none; + border-radius: 12px; + box-shadow: 0px 1px 6px 0px rgba(0, 0, 0, 0.5); +`,iE=nt(On)` + background: #16161de3; + position: absolute; + left: 0; + right: 0; + bottom: 0; + top: 0; + color: #fff; + align-items: center; + justify-content: center; + font-size: 32px; + font-style: normal; + font-weight: 700; + line-height: 16px; + font-family: 'Barlow'; +`,oE=nt(np)` + && { + position: absolute; + bottom: 16px; + right: 16px; + height: 32px; + border-radius: 16px; + min-width: 32px; + } + + &&.MuiButton-root { + padding: 0 10px 0 12px; + } + + svg { + margin-top: 1px; + width: 11px; + height: 11px; + } +`,aE=nt(np)` + && { + position: absolute; + bottom: 20px; + right: 20px; + border-radius: 16px; + } +`,cE=nt.div` + display: grid; + grid-template-columns: repeat(2, 1fr); + gap: 10px; + margin-top: 20px; + max-width: 702px; + width: 100%; +`,lE=nt.div` + background: ${Me.BG1}; + color: ${Me.white}; + padding: 15px 12px; + border-radius: 8px; + cursor: pointer; + display: flex; + align-items: center; + justify-content: flex-start; + text-align: left; + font-family: Barlow; + font-size: 14px; + font-weight: 400; + gap: 10px; + &:hover { + background: ${Me.SEEDQUESTION_HOVER}; + } + + &:active { + background: ${Me.SEEDQUESTION}; + } + svg { + width: 20px; + height: 20px; + } + + path { + fill: ${Me.modalWhiteOverlayBg}; + } +`,uE=new _e(0,0,0),cf=1,hE=16777215,Mi=new _e(0,0,0),lf=100,dE=600,fE=2e3,fs={x:0,y:0,z:200},em="14.8.49",uf=(s,e,t)=>({endTime:e,insertTime:t,type:"exponentialRampToValue",value:s}),hf=(s,e,t)=>({endTime:e,insertTime:t,type:"linearRampToValue",value:s}),$l=(s,e)=>({startTime:e,type:"setValue",value:s}),tm=(s,e,t)=>({duration:t,startTime:e,type:"setValueCurve",values:s}),nm=(s,e,{startTime:t,target:n,timeConstant:r})=>n+(e-n)*Math.exp((t-s)/r),kr=s=>s.type==="exponentialRampToValue",Oa=s=>s.type==="linearRampToValue",cs=s=>kr(s)||Oa(s),Iu=s=>s.type==="setValue",Ln=s=>s.type==="setValueCurve",Aa=(s,e,t,n)=>{const r=s[e];return r===void 0?n:cs(r)||Iu(r)?r.value:Ln(r)?r.values[r.values.length-1]:nm(t,Aa(s,e-1,r.startTime,n),r)},df=(s,e,t,n,r)=>t===void 0?[n.insertTime,r]:cs(t)?[t.endTime,t.value]:Iu(t)?[t.startTime,t.value]:Ln(t)?[t.startTime+t.duration,t.values[t.values.length-1]]:[t.startTime,Aa(s,e-1,t.startTime,r)],Fl=s=>s.type==="cancelAndHold",Ll=s=>s.type==="cancelScheduledValues",is=s=>Fl(s)||Ll(s)?s.cancelTime:kr(s)||Oa(s)?s.endTime:s.startTime,ff=(s,e,t,{endTime:n,value:r})=>t===r?r:0t+(s-e)/(n-e)*(r-t),pE=(s,e)=>{const t=Math.floor(e),n=Math.ceil(e);return t===n?s[t]:(1-(e-t))*s[t]+(1-(n-e))*s[n]},mE=(s,{duration:e,startTime:t,values:n})=>{const r=(s-t)/e*(n.length-1);return pE(n,r)},Qo=s=>s.type==="setTarget";class gE{constructor(e){this._automationEvents=[],this._currenTime=0,this._defaultValue=e}[Symbol.iterator](){return this._automationEvents[Symbol.iterator]()}add(e){const t=is(e);if(Fl(e)||Ll(e)){const n=this._automationEvents.findIndex(i=>Ll(e)&&Ln(i)?i.startTime+i.duration>=t:is(i)>=t),r=this._automationEvents[n];if(n!==-1&&(this._automationEvents=this._automationEvents.slice(0,n)),Fl(e)){const i=this._automationEvents[this._automationEvents.length-1];if(r!==void 0&&cs(r)){if(i!==void 0&&Qo(i))throw new Error("The internal list is malformed.");const o=i===void 0?r.insertTime:Ln(i)?i.startTime+i.duration:is(i),a=i===void 0?this._defaultValue:Ln(i)?i.values[i.values.length-1]:i.value,c=kr(r)?ff(t,o,a,r):pf(t,o,a,r),l=kr(r)?uf(c,t,this._currenTime):hf(c,t,this._currenTime);this._automationEvents.push(l)}if(i!==void 0&&Qo(i)&&this._automationEvents.push($l(this.getValue(t),t)),i!==void 0&&Ln(i)&&i.startTime+i.duration>t){const o=t-i.startTime,a=(i.values.length-1)/i.duration,c=Math.max(2,1+Math.ceil(o*a)),l=o/(c-1)*a,u=i.values.slice(0,c);if(l<1)for(let h=1;his(o)>t),r=n===-1?this._automationEvents[this._automationEvents.length-1]:this._automationEvents[n-1];if(r!==void 0&&Ln(r)&&is(r)+r.duration>t)return!1;const i=kr(e)?uf(e.value,e.endTime,this._currenTime):Oa(e)?hf(e.value,t,this._currenTime):e;if(n===-1)this._automationEvents.push(i);else{if(Ln(e)&&t+e.duration>is(this._automationEvents[n]))return!1;this._automationEvents.splice(n,0,i)}}return!0}flush(e){const t=this._automationEvents.findIndex(n=>is(n)>e);if(t>1){const n=this._automationEvents.slice(t-1),r=n[0];Qo(r)&&n.unshift($l(Aa(this._automationEvents,t-2,r.startTime,this._defaultValue),r.startTime)),this._automationEvents=n}}getValue(e){if(this._automationEvents.length===0)return this._defaultValue;const t=this._automationEvents.findIndex(o=>is(o)>e),n=this._automationEvents[t],r=(t===-1?this._automationEvents.length:t)-1,i=this._automationEvents[r];if(i!==void 0&&Qo(i)&&(n===void 0||!cs(n)||n.insertTime>e))return nm(e,Aa(this._automationEvents,r-1,i.startTime,this._defaultValue),i);if(i!==void 0&&Iu(i)&&(n===void 0||!cs(n)))return i.value;if(i!==void 0&&Ln(i)&&(n===void 0||!cs(n)||i.startTime+i.duration>e))return e({cancelTime:s,type:"cancelAndHold"}),yE=s=>({cancelTime:s,type:"cancelScheduledValues"}),vE=(s,e)=>({endTime:e,type:"exponentialRampToValue",value:s}),bE=(s,e)=>({endTime:e,type:"linearRampToValue",value:s}),xE=(s,e,t)=>({startTime:e,target:s,timeConstant:t,type:"setTarget"}),wE=()=>new DOMException("","AbortError"),kE=s=>(e,t,[n,r,i],o)=>{s(e[r],[t,n,i],a=>a[0]===t&&a[1]===n,o)},TE=s=>(e,t,n)=>{const r=[];for(let i=0;i(e,t)=>{s.set(e,{activeInputs:new Set,passiveInputs:new WeakMap,renderer:t})},jr=new WeakSet,sm=new WeakMap,$u=new WeakMap,rm=new WeakMap,Fu=new WeakMap,dc=new WeakMap,im=new WeakMap,jl=new WeakMap,Vl=new WeakMap,zl=new WeakMap,om={construct(){return om}},CE=s=>{try{const e=new Proxy(s,om);new e}catch{return!1}return!0},mf=/^import(?:(?:[\s]+[\w]+|(?:[\s]+[\w]+[\s]*,)?[\s]*\{[\s]*[\w]+(?:[\s]+as[\s]+[\w]+)?(?:[\s]*,[\s]*[\w]+(?:[\s]+as[\s]+[\w]+)?)*[\s]*}|(?:[\s]+[\w]+[\s]*,)?[\s]*\*[\s]+as[\s]+[\w]+)[\s]+from)?(?:[\s]*)("([^"\\]|\\.)+"|'([^'\\]|\\.)+')(?:[\s]*);?/,gf=(s,e)=>{const t=[];let n=s.replace(/^[\s]+/,""),r=n.match(mf);for(;r!==null;){const i=r[1].slice(1,-1),o=r[0].replace(/([\s]+)?;?$/,"").replace(i,new URL(i,e).toString());t.push(o),n=n.slice(r[0].length).replace(/^[\s]+/,""),r=n.match(mf)}return[t.join(";"),n]},_f=s=>{if(s!==void 0&&!Array.isArray(s))throw new TypeError("The parameterDescriptors property of given value for processorCtor is not an array.")},yf=s=>{if(!CE(s))throw new TypeError("The given value for processorCtor should be a constructor.");if(s.prototype===null||typeof s.prototype!="object")throw new TypeError("The given value for processorCtor should have a prototype.")},SE=(s,e,t,n,r,i,o,a,c,l,u,h,d)=>{let f=0;return(m,p,g={credentials:"omit"})=>{const _=u.get(m);if(_!==void 0&&_.has(p))return Promise.resolve();const w=l.get(m);if(w!==void 0){const y=w.get(p);if(y!==void 0)return y}const k=i(m),v=k.audioWorklet===void 0?r(p).then(([y,T])=>{const[E,x]=gf(y,T),C=`${E};((a,b)=>{(a[b]=a[b]||[]).push((AudioWorkletProcessor,global,registerProcessor,sampleRate,self,window)=>{${x} +})})(window,'_AWGS')`;return t(C)}).then(()=>{const y=d._AWGS.pop();if(y===void 0)throw new SyntaxError;n(k.currentTime,k.sampleRate,()=>y(class{},void 0,(T,E)=>{if(T.trim()==="")throw e();const x=Vl.get(k);if(x!==void 0){if(x.has(T))throw e();yf(E),_f(E.parameterDescriptors),x.set(T,E)}else yf(E),_f(E.parameterDescriptors),Vl.set(k,new Map([[T,E]]))},k.sampleRate,void 0,void 0))}):Promise.all([r(p),Promise.resolve(s(h,h))]).then(([[y,T],E])=>{const x=f+1;f=x;const[C,S]=gf(y,T),j=`${C};((AudioWorkletProcessor,registerProcessor)=>{${S} +})(${E?"AudioWorkletProcessor":"class extends AudioWorkletProcessor {__b=new WeakSet();constructor(){super();(p=>p.postMessage=(q=>(m,t)=>q.call(p,m,t?t.filter(u=>!this.__b.has(u)):t))(p.postMessage))(this.port)}}"},(n,p)=>registerProcessor(n,class extends p{${E?"":"__c = (a) => a.forEach(e=>this.__b.add(e.buffer));"}process(i,o,p){${E?"":"i.forEach(this.__c);o.forEach(this.__c);this.__c(Object.values(p));"}return super.process(i.map(j=>j.some(k=>k.length===0)?[]:j),o,p)}}));registerProcessor('__sac${x}',class extends AudioWorkletProcessor{process(){return !1}})`,W=new Blob([j],{type:"application/javascript; charset=utf-8"}),B=URL.createObjectURL(W);return k.audioWorklet.addModule(B,g).then(()=>{if(a(k))return k;const U=o(k);return U.audioWorklet.addModule(B,g).then(()=>U)}).then(U=>{if(c===null)throw new SyntaxError;try{new c(U,`__sac${x}`)}catch{throw new SyntaxError}}).finally(()=>URL.revokeObjectURL(B))});return w===void 0?l.set(m,new Map([[p,v]])):w.set(p,v),v.then(()=>{const y=u.get(m);y===void 0?u.set(m,new Set([p])):y.add(p)}).finally(()=>{const y=l.get(m);y!==void 0&&y.delete(p)}),v}},un=(s,e)=>{const t=s.get(e);if(t===void 0)throw new Error("A value with the given key could not be found.");return t},fc=(s,e)=>{const t=Array.from(s).filter(e);if(t.length>1)throw Error("More than one element was found.");if(t.length===0)throw Error("No element was found.");const[n]=t;return s.delete(n),n},am=(s,e,t,n)=>{const r=un(s,e),i=fc(r,o=>o[0]===t&&o[1]===n);return r.size===0&&s.delete(e),i},Eo=s=>un(im,s),Vr=s=>{if(jr.has(s))throw new Error("The AudioNode is already stored.");jr.add(s),Eo(s).forEach(e=>e(!0))},cm=s=>"port"in s,Co=s=>{if(!jr.has(s))throw new Error("The AudioNode is not stored.");jr.delete(s),Eo(s).forEach(e=>e(!1))},Ul=(s,e)=>{!cm(s)&&e.every(t=>t.size===0)&&Co(s)},OE=(s,e,t,n,r,i,o,a,c,l,u,h,d)=>{const f=new WeakMap;return(m,p,g,_,w)=>{const{activeInputs:k,passiveInputs:v}=i(p),{outputs:y}=i(m),T=a(m),E=x=>{const C=c(p),S=c(m);if(x){const D=am(v,m,g,_);s(k,m,D,!1),!w&&!h(m)&&t(S,C,g,_),d(p)&&Vr(p)}else{const D=n(k,m,g,_);e(v,_,D,!1),!w&&!h(m)&&r(S,C,g,_);const O=o(p);if(O===0)u(p)&&Ul(p,k);else{const L=f.get(p);L!==void 0&&clearTimeout(L),f.set(p,setTimeout(()=>{u(p)&&Ul(p,k)},O*1e3))}}};return l(y,[p,g,_],x=>x[0]===p&&x[1]===g&&x[2]===_,!0)?(T.add(E),u(m)?s(k,m,[g,_,E],!0):e(v,_,[m,g,E],!0),!0):!1}},AE=s=>(e,t,[n,r,i],o)=>{const a=e.get(n);a===void 0?e.set(n,new Set([[r,t,i]])):s(a,[r,t,i],c=>c[0]===r&&c[1]===t,o)},DE=s=>(e,t)=>{const n=s(e,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:0});t.connect(n).connect(e.destination);const r=()=>{t.removeEventListener("ended",r),t.disconnect(n),n.disconnect()};t.addEventListener("ended",r)},RE=s=>(e,t)=>{s(e).add(t)},PE={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",fftSize:2048,maxDecibels:-30,minDecibels:-100,smoothingTimeConstant:.8},ME=(s,e,t,n,r,i)=>class extends s{constructor(a,c){const l=r(a),u={...PE,...c},h=n(l,u),d=i(l)?e():null;super(a,!1,h,d),this._nativeAnalyserNode=h}get fftSize(){return this._nativeAnalyserNode.fftSize}set fftSize(a){this._nativeAnalyserNode.fftSize=a}get frequencyBinCount(){return this._nativeAnalyserNode.frequencyBinCount}get maxDecibels(){return this._nativeAnalyserNode.maxDecibels}set maxDecibels(a){const c=this._nativeAnalyserNode.maxDecibels;if(this._nativeAnalyserNode.maxDecibels=a,!(a>this._nativeAnalyserNode.minDecibels))throw this._nativeAnalyserNode.maxDecibels=c,t()}get minDecibels(){return this._nativeAnalyserNode.minDecibels}set minDecibels(a){const c=this._nativeAnalyserNode.minDecibels;if(this._nativeAnalyserNode.minDecibels=a,!(this._nativeAnalyserNode.maxDecibels>a))throw this._nativeAnalyserNode.minDecibels=c,t()}get smoothingTimeConstant(){return this._nativeAnalyserNode.smoothingTimeConstant}set smoothingTimeConstant(a){this._nativeAnalyserNode.smoothingTimeConstant=a}getByteFrequencyData(a){this._nativeAnalyserNode.getByteFrequencyData(a)}getByteTimeDomainData(a){this._nativeAnalyserNode.getByteTimeDomainData(a)}getFloatFrequencyData(a){this._nativeAnalyserNode.getFloatFrequencyData(a)}getFloatTimeDomainData(a){this._nativeAnalyserNode.getFloatTimeDomainData(a)}},yt=(s,e)=>s.context===e,NE=(s,e,t)=>()=>{const n=new WeakMap,r=async(i,o)=>{let a=e(i);if(!yt(a,o)){const l={channelCount:a.channelCount,channelCountMode:a.channelCountMode,channelInterpretation:a.channelInterpretation,fftSize:a.fftSize,maxDecibels:a.maxDecibels,minDecibels:a.minDecibels,smoothingTimeConstant:a.smoothingTimeConstant};a=s(o,l)}return n.set(o,a),await t(i,o,a),a};return{render(i,o){const a=n.get(o);return a!==void 0?Promise.resolve(a):r(i,o)}}},Da=s=>{try{s.copyToChannel(new Float32Array(1),0,-1)}catch{return!1}return!0},Dn=()=>new DOMException("","IndexSizeError"),Lu=s=>{s.getChannelData=(e=>t=>{try{return e.call(s,t)}catch(n){throw n.code===12?Dn():n}})(s.getChannelData)},IE={numberOfChannels:1},$E=(s,e,t,n,r,i,o,a)=>{let c=null;return class lm{constructor(u){if(r===null)throw new Error("Missing the native OfflineAudioContext constructor.");const{length:h,numberOfChannels:d,sampleRate:f}={...IE,...u};c===null&&(c=new r(1,1,44100));const m=n!==null&&e(i,i)?new n({length:h,numberOfChannels:d,sampleRate:f}):c.createBuffer(d,h,f);if(m.numberOfChannels===0)throw t();return typeof m.copyFromChannel!="function"?(o(m),Lu(m)):e(Da,()=>Da(m))||a(m),s.add(m),m}static[Symbol.hasInstance](u){return u!==null&&typeof u=="object"&&Object.getPrototypeOf(u)===lm.prototype||s.has(u)}}},Ct=-34028234663852886e22,bt=-Ct,Wn=s=>jr.has(s),FE={buffer:null,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",loop:!1,loopEnd:0,loopStart:0,playbackRate:1},LE=(s,e,t,n,r,i,o,a)=>class extends s{constructor(l,u){const h=i(l),d={...FE,...u},f=r(h,d),m=o(h),p=m?e():null;super(l,!1,f,p),this._audioBufferSourceNodeRenderer=p,this._isBufferNullified=!1,this._isBufferSet=d.buffer!==null,this._nativeAudioBufferSourceNode=f,this._onended=null,this._playbackRate=t(this,m,f.playbackRate,bt,Ct)}get buffer(){return this._isBufferNullified?null:this._nativeAudioBufferSourceNode.buffer}set buffer(l){if(this._nativeAudioBufferSourceNode.buffer=l,l!==null){if(this._isBufferSet)throw n();this._isBufferSet=!0}}get loop(){return this._nativeAudioBufferSourceNode.loop}set loop(l){this._nativeAudioBufferSourceNode.loop=l}get loopEnd(){return this._nativeAudioBufferSourceNode.loopEnd}set loopEnd(l){this._nativeAudioBufferSourceNode.loopEnd=l}get loopStart(){return this._nativeAudioBufferSourceNode.loopStart}set loopStart(l){this._nativeAudioBufferSourceNode.loopStart=l}get onended(){return this._onended}set onended(l){const u=typeof l=="function"?a(this,l):null;this._nativeAudioBufferSourceNode.onended=u;const h=this._nativeAudioBufferSourceNode.onended;this._onended=h!==null&&h===u?l:h}get playbackRate(){return this._playbackRate}start(l=0,u=0,h){if(this._nativeAudioBufferSourceNode.start(l,u,h),this._audioBufferSourceNodeRenderer!==null&&(this._audioBufferSourceNodeRenderer.start=h===void 0?[l,u]:[l,u,h]),this.context.state!=="closed"){Vr(this);const d=()=>{this._nativeAudioBufferSourceNode.removeEventListener("ended",d),Wn(this)&&Co(this)};this._nativeAudioBufferSourceNode.addEventListener("ended",d)}}stop(l=0){this._nativeAudioBufferSourceNode.stop(l),this._audioBufferSourceNodeRenderer!==null&&(this._audioBufferSourceNodeRenderer.stop=l)}},jE=(s,e,t,n,r)=>()=>{const i=new WeakMap;let o=null,a=null;const c=async(l,u)=>{let h=t(l);const d=yt(h,u);if(!d){const f={buffer:h.buffer,channelCount:h.channelCount,channelCountMode:h.channelCountMode,channelInterpretation:h.channelInterpretation,loop:h.loop,loopEnd:h.loopEnd,loopStart:h.loopStart,playbackRate:h.playbackRate.value};h=e(u,f),o!==null&&h.start(...o),a!==null&&h.stop(a)}return i.set(u,h),d?await s(u,l.playbackRate,h.playbackRate):await n(u,l.playbackRate,h.playbackRate),await r(l,u,h),h};return{set start(l){o=l},set stop(l){a=l},render(l,u){const h=i.get(u);return h!==void 0?Promise.resolve(h):c(l,u)}}},VE=s=>"playbackRate"in s,zE=s=>"frequency"in s&&"gain"in s,UE=s=>"offset"in s,BE=s=>!("frequency"in s)&&"gain"in s,WE=s=>"detune"in s&&"frequency"in s,qE=s=>"pan"in s,kt=s=>un(sm,s),So=s=>un(rm,s),Bl=(s,e)=>{const{activeInputs:t}=kt(s);t.forEach(r=>r.forEach(([i])=>{e.includes(s)||Bl(i,[...e,s])}));const n=VE(s)?[s.playbackRate]:cm(s)?Array.from(s.parameters.values()):zE(s)?[s.Q,s.detune,s.frequency,s.gain]:UE(s)?[s.offset]:BE(s)?[s.gain]:WE(s)?[s.detune,s.frequency]:qE(s)?[s.pan]:[];for(const r of n){const i=So(r);i!==void 0&&i.activeInputs.forEach(([o])=>Bl(o,e))}Wn(s)&&Co(s)},um=s=>{Bl(s.destination,[])},HE=s=>s===void 0||typeof s=="number"||typeof s=="string"&&(s==="balanced"||s==="interactive"||s==="playback"),YE=(s,e,t,n,r,i,o,a,c)=>class extends s{constructor(u={}){if(c===null)throw new Error("Missing the native AudioContext constructor.");let h;try{h=new c(u)}catch(m){throw m.code===12&&m.message==="sampleRate is not in range"?t():m}if(h===null)throw n();if(!HE(u.latencyHint))throw new TypeError(`The provided value '${u.latencyHint}' is not a valid enum value of type AudioContextLatencyCategory.`);if(u.sampleRate!==void 0&&h.sampleRate!==u.sampleRate)throw t();super(h,2);const{latencyHint:d}=u,{sampleRate:f}=h;if(this._baseLatency=typeof h.baseLatency=="number"?h.baseLatency:d==="balanced"?512/f:d==="interactive"||d===void 0?256/f:d==="playback"?1024/f:Math.max(2,Math.min(128,Math.round(d*f/128)))*128/f,this._nativeAudioContext=h,c.name==="webkitAudioContext"?(this._nativeGainNode=h.createGain(),this._nativeOscillatorNode=h.createOscillator(),this._nativeGainNode.gain.value=1e-37,this._nativeOscillatorNode.connect(this._nativeGainNode).connect(h.destination),this._nativeOscillatorNode.start()):(this._nativeGainNode=null,this._nativeOscillatorNode=null),this._state=null,h.state==="running"){this._state="suspended";const m=()=>{this._state==="suspended"&&(this._state=null),h.removeEventListener("statechange",m)};h.addEventListener("statechange",m)}}get baseLatency(){return this._baseLatency}get state(){return this._state!==null?this._state:this._nativeAudioContext.state}close(){return this.state==="closed"?this._nativeAudioContext.close().then(()=>{throw e()}):(this._state==="suspended"&&(this._state=null),this._nativeAudioContext.close().then(()=>{this._nativeGainNode!==null&&this._nativeOscillatorNode!==null&&(this._nativeOscillatorNode.stop(),this._nativeGainNode.disconnect(),this._nativeOscillatorNode.disconnect()),um(this)}))}createMediaElementSource(u){return new r(this,{mediaElement:u})}createMediaStreamDestination(){return new i(this)}createMediaStreamSource(u){return new o(this,{mediaStream:u})}createMediaStreamTrackSource(u){return new a(this,{mediaStreamTrack:u})}resume(){return this._state==="suspended"?new Promise((u,h)=>{const d=()=>{this._nativeAudioContext.removeEventListener("statechange",d),this._nativeAudioContext.state==="running"?u():this.resume().then(u,h)};this._nativeAudioContext.addEventListener("statechange",d)}):this._nativeAudioContext.resume().catch(u=>{throw u===void 0||u.code===15?e():u})}suspend(){return this._nativeAudioContext.suspend().catch(u=>{throw u===void 0?e():u})}},GE=(s,e,t,n,r,i,o,a)=>class extends s{constructor(l,u){const h=i(l),d=o(h),f=r(h,u,d),m=d?e(a):null;super(l,!1,f,m),this._isNodeOfNativeOfflineAudioContext=d,this._nativeAudioDestinationNode=f}get channelCount(){return this._nativeAudioDestinationNode.channelCount}set channelCount(l){if(this._isNodeOfNativeOfflineAudioContext)throw n();if(l>this._nativeAudioDestinationNode.maxChannelCount)throw t();this._nativeAudioDestinationNode.channelCount=l}get channelCountMode(){return this._nativeAudioDestinationNode.channelCountMode}set channelCountMode(l){if(this._isNodeOfNativeOfflineAudioContext)throw n();this._nativeAudioDestinationNode.channelCountMode=l}get maxChannelCount(){return this._nativeAudioDestinationNode.maxChannelCount}},XE=s=>{const e=new WeakMap,t=async(n,r)=>{const i=r.destination;return e.set(r,i),await s(n,r,i),i};return{render(n,r){const i=e.get(r);return i!==void 0?Promise.resolve(i):t(n,r)}}},ZE=(s,e,t,n,r,i,o,a)=>(c,l)=>{const u=l.listener,h=()=>{const y=new Float32Array(1),T=e(l,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:9}),E=o(l);let x=!1,C=[0,0,-1,0,1,0],S=[0,0,0];const D=()=>{if(x)return;x=!0;const W=n(l,256,9,0);W.onaudioprocess=({inputBuffer:B})=>{const U=[i(B,y,0),i(B,y,1),i(B,y,2),i(B,y,3),i(B,y,4),i(B,y,5)];U.some((X,K)=>X!==C[K])&&(u.setOrientation(...U),C=U);const z=[i(B,y,6),i(B,y,7),i(B,y,8)];z.some((X,K)=>X!==S[K])&&(u.setPosition(...z),S=z)},T.connect(W)},O=W=>B=>{B!==C[W]&&(C[W]=B,u.setOrientation(...C))},L=W=>B=>{B!==S[W]&&(S[W]=B,u.setPosition(...S))},j=(W,B,U)=>{const z=t(l,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",offset:B});z.connect(T,0,W),z.start(),Object.defineProperty(z.offset,"defaultValue",{get(){return B}});const X=s({context:c},E,z.offset,bt,Ct);return a(X,"value",K=>()=>K.call(X),K=>ee=>{try{K.call(X,ee)}catch(I){if(I.code!==9)throw I}D(),E&&U(ee)}),X.cancelAndHoldAtTime=(K=>E?()=>{throw r()}:(...ee)=>{const I=K.apply(X,ee);return D(),I})(X.cancelAndHoldAtTime),X.cancelScheduledValues=(K=>E?()=>{throw r()}:(...ee)=>{const I=K.apply(X,ee);return D(),I})(X.cancelScheduledValues),X.exponentialRampToValueAtTime=(K=>E?()=>{throw r()}:(...ee)=>{const I=K.apply(X,ee);return D(),I})(X.exponentialRampToValueAtTime),X.linearRampToValueAtTime=(K=>E?()=>{throw r()}:(...ee)=>{const I=K.apply(X,ee);return D(),I})(X.linearRampToValueAtTime),X.setTargetAtTime=(K=>E?()=>{throw r()}:(...ee)=>{const I=K.apply(X,ee);return D(),I})(X.setTargetAtTime),X.setValueAtTime=(K=>E?()=>{throw r()}:(...ee)=>{const I=K.apply(X,ee);return D(),I})(X.setValueAtTime),X.setValueCurveAtTime=(K=>E?()=>{throw r()}:(...ee)=>{const I=K.apply(X,ee);return D(),I})(X.setValueCurveAtTime),X};return{forwardX:j(0,0,O(0)),forwardY:j(1,0,O(1)),forwardZ:j(2,-1,O(2)),positionX:j(6,0,L(0)),positionY:j(7,0,L(1)),positionZ:j(8,0,L(2)),upX:j(3,0,O(3)),upY:j(4,1,O(4)),upZ:j(5,0,O(5))}},{forwardX:d,forwardY:f,forwardZ:m,positionX:p,positionY:g,positionZ:_,upX:w,upY:k,upZ:v}=u.forwardX===void 0?h():u;return{get forwardX(){return d},get forwardY(){return f},get forwardZ(){return m},get positionX(){return p},get positionY(){return g},get positionZ(){return _},get upX(){return w},get upY(){return k},get upZ(){return v}}},Ra=s=>"context"in s,Oo=s=>Ra(s[0]),or=(s,e,t,n)=>{for(const r of s)if(t(r)){if(n)return!1;throw Error("The set contains at least one similar element.")}return s.add(e),!0},vf=(s,e,[t,n],r)=>{or(s,[e,t,n],i=>i[0]===e&&i[1]===t,r)},bf=(s,[e,t,n],r)=>{const i=s.get(e);i===void 0?s.set(e,new Set([[t,n]])):or(i,[t,n],o=>o[0]===t,r)},si=s=>"inputs"in s,Pa=(s,e,t,n)=>{if(si(e)){const r=e.inputs[n];return s.connect(r,t,0),[r,t,0]}return s.connect(e,t,n),[e,t,n]},hm=(s,e,t)=>{for(const n of s)if(n[0]===e&&n[1]===t)return s.delete(n),n;return null},KE=(s,e,t)=>fc(s,n=>n[0]===e&&n[1]===t),dm=(s,e)=>{if(!Eo(s).delete(e))throw new Error("Missing the expected event listener.")},fm=(s,e,t)=>{const n=un(s,e),r=fc(n,i=>i[0]===t);return n.size===0&&s.delete(e),r},Ma=(s,e,t,n)=>{si(e)?s.disconnect(e.inputs[n],t,0):s.disconnect(e,t,n)},Ve=s=>un($u,s),Bi=s=>un(Fu,s),Qs=s=>jl.has(s),ca=s=>!jr.has(s),xf=(s,e)=>new Promise(t=>{if(e!==null)t(!0);else{const n=s.createScriptProcessor(256,1,1),r=s.createGain(),i=s.createBuffer(1,2,44100),o=i.getChannelData(0);o[0]=1,o[1]=1;const a=s.createBufferSource();a.buffer=i,a.loop=!0,a.connect(n).connect(s.destination),a.connect(r),a.disconnect(r),n.onaudioprocess=c=>{const l=c.inputBuffer.getChannelData(0);Array.prototype.some.call(l,u=>u===1)?t(!0):t(!1),a.stop(),n.onaudioprocess=null,a.disconnect(n),n.disconnect(s.destination)},a.start()}}),Jc=(s,e)=>{const t=new Map;for(const n of s)for(const r of n){const i=t.get(r);t.set(r,i===void 0?1:i+1)}t.forEach((n,r)=>e(r,n))},Na=s=>"context"in s,QE=s=>{const e=new Map;s.connect=(t=>(n,r=0,i=0)=>{const o=Na(n)?t(n,r,i):t(n,r),a=e.get(n);return a===void 0?e.set(n,[{input:i,output:r}]):a.every(c=>c.input!==i||c.output!==r)&&a.push({input:i,output:r}),o})(s.connect.bind(s)),s.disconnect=(t=>(n,r,i)=>{if(t.apply(s),n===void 0)e.clear();else if(typeof n=="number")for(const[o,a]of e){const c=a.filter(l=>l.output!==n);c.length===0?e.delete(o):e.set(o,c)}else if(e.has(n))if(r===void 0)e.delete(n);else{const o=e.get(n);if(o!==void 0){const a=o.filter(c=>c.output!==r&&(c.input!==i||i===void 0));a.length===0?e.delete(n):e.set(n,a)}}for(const[o,a]of e)a.forEach(c=>{Na(o)?s.connect(o,c.output,c.input):s.connect(o,c.output)})})(s.disconnect)},JE=(s,e,t,n)=>{const{activeInputs:r,passiveInputs:i}=So(e),{outputs:o}=kt(s),a=Eo(s),c=l=>{const u=Ve(s),h=Bi(e);if(l){const d=fm(i,s,t);vf(r,s,d,!1),!n&&!Qs(s)&&u.connect(h,t)}else{const d=KE(r,s,t);bf(i,d,!1),!n&&!Qs(s)&&u.disconnect(h,t)}};return or(o,[e,t],l=>l[0]===e&&l[1]===t,!0)?(a.add(c),Wn(s)?vf(r,s,[t,c],!0):bf(i,[s,t,c],!0),!0):!1},eC=(s,e,t,n)=>{const{activeInputs:r,passiveInputs:i}=kt(e),o=hm(r[n],s,t);return o===null?[am(i,s,t,n)[2],!1]:[o[2],!0]},tC=(s,e,t)=>{const{activeInputs:n,passiveInputs:r}=So(e),i=hm(n,s,t);return i===null?[fm(r,s,t)[1],!1]:[i[2],!0]},ju=(s,e,t,n,r)=>{const[i,o]=eC(s,t,n,r);if(i!==null&&(dm(s,i),o&&!e&&!Qs(s)&&Ma(Ve(s),Ve(t),n,r)),Wn(t)){const{activeInputs:a}=kt(t);Ul(t,a)}},Vu=(s,e,t,n)=>{const[r,i]=tC(s,t,n);r!==null&&(dm(s,r),i&&!e&&!Qs(s)&&Ve(s).disconnect(Bi(t),n))},nC=(s,e)=>{const t=kt(s),n=[];for(const r of t.outputs)Oo(r)?ju(s,e,...r):Vu(s,e,...r),n.push(r[0]);return t.outputs.clear(),n},sC=(s,e,t)=>{const n=kt(s),r=[];for(const i of n.outputs)i[1]===t&&(Oo(i)?ju(s,e,...i):Vu(s,e,...i),r.push(i[0]),n.outputs.delete(i));return r},rC=(s,e,t,n,r)=>{const i=kt(s);return Array.from(i.outputs).filter(o=>o[0]===t&&(n===void 0||o[1]===n)&&(r===void 0||o[2]===r)).map(o=>(Oo(o)?ju(s,e,...o):Vu(s,e,...o),i.outputs.delete(o),o[0]))},iC=(s,e,t,n,r,i,o,a,c,l,u,h,d,f,m,p)=>class extends l{constructor(_,w,k,v){super(k),this._context=_,this._nativeAudioNode=k;const y=u(_);h(y)&&t(xf,()=>xf(y,p))!==!0&&QE(k),$u.set(this,k),im.set(this,new Set),_.state!=="closed"&&w&&Vr(this),s(this,v,k)}get channelCount(){return this._nativeAudioNode.channelCount}set channelCount(_){this._nativeAudioNode.channelCount=_}get channelCountMode(){return this._nativeAudioNode.channelCountMode}set channelCountMode(_){this._nativeAudioNode.channelCountMode=_}get channelInterpretation(){return this._nativeAudioNode.channelInterpretation}set channelInterpretation(_){this._nativeAudioNode.channelInterpretation=_}get context(){return this._context}get numberOfInputs(){return this._nativeAudioNode.numberOfInputs}get numberOfOutputs(){return this._nativeAudioNode.numberOfOutputs}connect(_,w=0,k=0){if(w<0||w>=this._nativeAudioNode.numberOfOutputs)throw r();const v=u(this._context),y=m(v);if(d(_)||f(_))throw i();if(Ra(_)){const x=Ve(_);try{const S=Pa(this._nativeAudioNode,x,w,k),D=ca(this);(y||D)&&this._nativeAudioNode.disconnect(...S),this.context.state!=="closed"&&!D&&ca(_)&&Vr(_)}catch(S){throw S.code===12?i():S}if(e(this,_,w,k,y)){const S=c([this],_);Jc(S,n(y))}return _}const T=Bi(_);if(T.name==="playbackRate"&&T.maxValue===1024)throw o();try{this._nativeAudioNode.connect(T,w),(y||ca(this))&&this._nativeAudioNode.disconnect(T,w)}catch(x){throw x.code===12?i():x}if(JE(this,_,w,y)){const x=c([this],_);Jc(x,n(y))}}disconnect(_,w,k){let v;const y=u(this._context),T=m(y);if(_===void 0)v=nC(this,T);else if(typeof _=="number"){if(_<0||_>=this.numberOfOutputs)throw r();v=sC(this,T,_)}else{if(w!==void 0&&(w<0||w>=this.numberOfOutputs)||Ra(_)&&k!==void 0&&(k<0||k>=_.numberOfInputs))throw r();if(v=rC(this,T,_,w,k),v.length===0)throw i()}for(const E of v){const x=c([this],E);Jc(x,a)}}},oC=(s,e,t,n,r,i,o,a,c,l,u,h,d)=>(f,m,p,g=null,_=null)=>{const w=p.value,k=new gE(w),v=m?n(k):null,y={get defaultValue(){return w},get maxValue(){return g===null?p.maxValue:g},get minValue(){return _===null?p.minValue:_},get value(){return p.value},set value(T){p.value=T,y.setValueAtTime(T,f.context.currentTime)},cancelAndHoldAtTime(T){if(typeof p.cancelAndHoldAtTime=="function")v===null&&k.flush(f.context.currentTime),k.add(r(T)),p.cancelAndHoldAtTime(T);else{const E=Array.from(k).pop();v===null&&k.flush(f.context.currentTime),k.add(r(T));const x=Array.from(k).pop();p.cancelScheduledValues(T),E!==x&&x!==void 0&&(x.type==="exponentialRampToValue"?p.exponentialRampToValueAtTime(x.value,x.endTime):x.type==="linearRampToValue"?p.linearRampToValueAtTime(x.value,x.endTime):x.type==="setValue"?p.setValueAtTime(x.value,x.startTime):x.type==="setValueCurve"&&p.setValueCurveAtTime(x.values,x.startTime,x.duration))}return y},cancelScheduledValues(T){return v===null&&k.flush(f.context.currentTime),k.add(i(T)),p.cancelScheduledValues(T),y},exponentialRampToValueAtTime(T,E){if(T===0)throw new RangeError;if(!Number.isFinite(E)||E<0)throw new RangeError;const x=f.context.currentTime;return v===null&&k.flush(x),Array.from(k).length===0&&(k.add(l(w,x)),p.setValueAtTime(w,x)),k.add(o(T,E)),p.exponentialRampToValueAtTime(T,E),y},linearRampToValueAtTime(T,E){const x=f.context.currentTime;return v===null&&k.flush(x),Array.from(k).length===0&&(k.add(l(w,x)),p.setValueAtTime(w,x)),k.add(a(T,E)),p.linearRampToValueAtTime(T,E),y},setTargetAtTime(T,E,x){return v===null&&k.flush(f.context.currentTime),k.add(c(T,E,x)),p.setTargetAtTime(T,E,x),y},setValueAtTime(T,E){return v===null&&k.flush(f.context.currentTime),k.add(l(T,E)),p.setValueAtTime(T,E),y},setValueCurveAtTime(T,E,x){const C=T instanceof Float32Array?T:new Float32Array(T);if(h!==null&&h.name==="webkitAudioContext"){const S=E+x,D=f.context.sampleRate,O=Math.ceil(E*D),L=Math.floor(S*D),j=L-O,W=new Float32Array(j);for(let U=0;U({replay(e){for(const t of s)if(t.type==="exponentialRampToValue"){const{endTime:n,value:r}=t;e.exponentialRampToValueAtTime(r,n)}else if(t.type==="linearRampToValue"){const{endTime:n,value:r}=t;e.linearRampToValueAtTime(r,n)}else if(t.type==="setTarget"){const{startTime:n,target:r,timeConstant:i}=t;e.setTargetAtTime(r,n,i)}else if(t.type==="setValue"){const{startTime:n,value:r}=t;e.setValueAtTime(r,n)}else if(t.type==="setValueCurve"){const{duration:n,startTime:r,values:i}=t;e.setValueCurveAtTime(i,r,n)}else throw new Error("Can't apply an unknown automation.")}});class pm{constructor(e){this._map=new Map(e)}get size(){return this._map.size}entries(){return this._map.entries()}forEach(e,t=null){return this._map.forEach((n,r)=>e.call(t,n,r,this))}get(e){return this._map.get(e)}has(e){return this._map.has(e)}keys(){return this._map.keys()}values(){return this._map.values()}}const cC={channelCount:2,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:1,numberOfOutputs:1,parameterData:{},processorOptions:{}},lC=(s,e,t,n,r,i,o,a,c,l,u,h,d,f)=>class extends e{constructor(p,g,_){var w;const k=a(p),v=c(k),y=u({...cC,..._});d(y);const T=Vl.get(k),E=T==null?void 0:T.get(g),x=v||k.state!=="closed"?k:(w=o(k))!==null&&w!==void 0?w:k,C=r(x,v?null:p.baseLatency,l,g,E,y),S=v?n(g,y,E):null;super(p,!0,C,S);const D=[];C.parameters.forEach((L,j)=>{const W=t(this,v,L);D.push([j,W])}),this._nativeAudioWorkletNode=C,this._onprocessorerror=null,this._parameters=new pm(D),v&&s(k,this);const{activeInputs:O}=i(this);h(C,O)}get onprocessorerror(){return this._onprocessorerror}set onprocessorerror(p){const g=typeof p=="function"?f(this,p):null;this._nativeAudioWorkletNode.onprocessorerror=g;const _=this._nativeAudioWorkletNode.onprocessorerror;this._onprocessorerror=_!==null&&_===g?p:_}get parameters(){return this._parameters===null?this._nativeAudioWorkletNode.parameters:this._parameters}get port(){return this._nativeAudioWorkletNode.port}};function Ia(s,e,t,n,r){if(typeof s.copyFromChannel=="function")e[t].byteLength===0&&(e[t]=new Float32Array(128)),s.copyFromChannel(e[t],n,r);else{const i=s.getChannelData(n);if(e[t].byteLength===0)e[t]=i.slice(r,r+128);else{const o=new Float32Array(i.buffer,r*Float32Array.BYTES_PER_ELEMENT,128);e[t].set(o)}}}const mm=(s,e,t,n,r)=>{typeof s.copyToChannel=="function"?e[t].byteLength!==0&&s.copyToChannel(e[t],n,r):e[t].byteLength!==0&&s.getChannelData(n).set(e[t],r)},$a=(s,e)=>{const t=[];for(let n=0;n{const t=un(zl,s),n=Ve(e);return un(t,n)},hC=async(s,e,t,n,r,i,o)=>{const a=e===null?Math.ceil(s.context.length/128)*128:e.length,c=n.channelCount*n.numberOfInputs,l=r.reduce((g,_)=>g+_,0),u=l===0?null:t.createBuffer(l,a,t.sampleRate);if(i===void 0)throw new Error("Missing the processor constructor.");const h=kt(s),d=await uC(t,s),f=$a(n.numberOfInputs,n.channelCount),m=$a(n.numberOfOutputs,r),p=Array.from(s.parameters.keys()).reduce((g,_)=>({...g,[_]:new Float32Array(128)}),{});for(let g=0;g0&&e!==null)for(let _=0;_{Ia(e,p,_,c+w,g)});for(let _=0;_h.activeInputs[v].size===0?[]:k),w=o(g/t.sampleRate,t.sampleRate,()=>d.process(_,m,p));if(u!==null)for(let k=0,v=0;k(g,_,w)=>{const k=new WeakMap;let v=null;const y=async(T,E)=>{let x=u(T),C=null;const S=yt(x,E),D=Array.isArray(_.outputChannelCount)?_.outputChannelCount:Array.from(_.outputChannelCount);if(h===null){const O=D.reduce((B,U)=>B+U,0),L=r(E,{channelCount:Math.max(1,O),channelCountMode:"explicit",channelInterpretation:"discrete",numberOfOutputs:Math.max(1,O)}),j=[];for(let B=0;B{const ee=new d(X,Math.ceil(T.context.length/128)*128,E.sampleRate),I=[],F=[];for(let Y=0;Y<_.numberOfInputs;Y+=1)I.push(o(ee,{channelCount:_.channelCount,channelCountMode:_.channelCountMode,channelInterpretation:_.channelInterpretation,gain:1})),F.push(r(ee,{channelCount:_.channelCount,channelCountMode:"explicit",channelInterpretation:"discrete",numberOfOutputs:_.channelCount}));const A=await Promise.all(Array.from(T.parameters.values()).map(async Y=>{const $=i(ee,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",offset:Y.value});return await f(ee,Y,$.offset),$})),N=n(ee,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:Math.max(1,U+z)});for(let Y=0;Y<_.numberOfInputs;Y+=1){I[Y].connect(F[Y]);for(let $=0;$<_.channelCount;$+=1)F[Y].connect(N,$,Y*_.channelCount+$)}for(const[Y,$]of A.entries())$.connect(N,0,U+Y),$.start(0);return N.connect(ee.destination),await Promise.all(I.map(Y=>m(T,ee,Y))),p(ee)})(),E,_,D,w,l)}const O=await v,L=t(E,{buffer:null,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",loop:!1,loopEnd:0,loopStart:0,playbackRate:1}),[j,W,B]=C;O!==null&&(L.buffer=O,L.start(0)),L.connect(j);for(let U=0,z=0;Uclass extends m{constructor(y,T){super(y,T),this._nativeContext=y,this._audioWorklet=s===void 0?void 0:{addModule:(E,x)=>s(this,E,x)}}get audioWorklet(){return this._audioWorklet}createAnalyser(){return new e(this)}createBiquadFilter(){return new r(this)}createBuffer(y,T,E){return new t({length:T,numberOfChannels:y,sampleRate:E})}createBufferSource(){return new n(this)}createChannelMerger(y=6){return new i(this,{numberOfInputs:y})}createChannelSplitter(y=6){return new o(this,{numberOfOutputs:y})}createConstantSource(){return new a(this)}createConvolver(){return new c(this)}createDelay(y=1){return new u(this,{maxDelayTime:y})}createDynamicsCompressor(){return new h(this)}createGain(){return new d(this)}createIIRFilter(y,T){return new f(this,{feedback:T,feedforward:y})}createOscillator(){return new p(this)}createPanner(){return new g(this)}createPeriodicWave(y,T,E={disableNormalization:!1}){return new _(this,{...E,imag:T,real:y})}createStereoPanner(){return new w(this)}createWaveShaper(){return new k(this)}decodeAudioData(y,T,E){return l(this._nativeContext,y).then(x=>(typeof T=="function"&&T(x),x),x=>{throw typeof E=="function"&&E(x),x})}},pC={Q:1,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",detune:0,frequency:350,gain:0,type:"lowpass"},mC=(s,e,t,n,r,i,o,a)=>class extends s{constructor(l,u){const h=i(l),d={...pC,...u},f=r(h,d),m=o(h),p=m?t():null;super(l,!1,f,p),this._Q=e(this,m,f.Q,bt,Ct),this._detune=e(this,m,f.detune,1200*Math.log2(bt),-1200*Math.log2(bt)),this._frequency=e(this,m,f.frequency,l.sampleRate/2,0),this._gain=e(this,m,f.gain,40*Math.log10(bt),Ct),this._nativeBiquadFilterNode=f,a(this,1)}get detune(){return this._detune}get frequency(){return this._frequency}get gain(){return this._gain}get Q(){return this._Q}get type(){return this._nativeBiquadFilterNode.type}set type(l){this._nativeBiquadFilterNode.type=l}getFrequencyResponse(l,u,h){try{this._nativeBiquadFilterNode.getFrequencyResponse(l,u,h)}catch(d){throw d.code===11?n():d}if(l.length!==u.length||u.length!==h.length)throw n()}},gC=(s,e,t,n,r)=>()=>{const i=new WeakMap,o=async(a,c)=>{let l=t(a);const u=yt(l,c);if(!u){const h={Q:l.Q.value,channelCount:l.channelCount,channelCountMode:l.channelCountMode,channelInterpretation:l.channelInterpretation,detune:l.detune.value,frequency:l.frequency.value,gain:l.gain.value,type:l.type};l=e(c,h)}return i.set(c,l),u?(await s(c,a.Q,l.Q),await s(c,a.detune,l.detune),await s(c,a.frequency,l.frequency),await s(c,a.gain,l.gain)):(await n(c,a.Q,l.Q),await n(c,a.detune,l.detune),await n(c,a.frequency,l.frequency),await n(c,a.gain,l.gain)),await r(a,c,l),l};return{render(a,c){const l=i.get(c);return l!==void 0?Promise.resolve(l):o(a,c)}}},_C=(s,e)=>(t,n)=>{const r=e.get(t);if(r!==void 0)return r;const i=s.get(t);if(i!==void 0)return i;try{const o=n();return o instanceof Promise?(s.set(t,o),o.catch(()=>!1).then(a=>(s.delete(t),e.set(t,a),a))):(e.set(t,o),o)}catch{return e.set(t,!1),!1}},yC={channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:6},vC=(s,e,t,n,r)=>class extends s{constructor(o,a){const c=n(o),l={...yC,...a},u=t(c,l),h=r(c)?e():null;super(o,!1,u,h)}},bC=(s,e,t)=>()=>{const n=new WeakMap,r=async(i,o)=>{let a=e(i);if(!yt(a,o)){const l={channelCount:a.channelCount,channelCountMode:a.channelCountMode,channelInterpretation:a.channelInterpretation,numberOfInputs:a.numberOfInputs};a=s(o,l)}return n.set(o,a),await t(i,o,a),a};return{render(i,o){const a=n.get(o);return a!==void 0?Promise.resolve(a):r(i,o)}}},xC={channelCount:6,channelCountMode:"explicit",channelInterpretation:"discrete",numberOfOutputs:6},wC=(s,e,t,n,r,i)=>class extends s{constructor(a,c){const l=n(a),u=i({...xC,...c}),h=t(l,u),d=r(l)?e():null;super(a,!1,h,d)}},kC=(s,e,t)=>()=>{const n=new WeakMap,r=async(i,o)=>{let a=e(i);if(!yt(a,o)){const l={channelCount:a.channelCount,channelCountMode:a.channelCountMode,channelInterpretation:a.channelInterpretation,numberOfOutputs:a.numberOfOutputs};a=s(o,l)}return n.set(o,a),await t(i,o,a),a};return{render(i,o){const a=n.get(o);return a!==void 0?Promise.resolve(a):r(i,o)}}},TC=s=>(e,t,n)=>s(t,e,n),EC=s=>(e,t,n=0,r=0)=>{const i=e[n];if(i===void 0)throw s();return Na(t)?i.connect(t,0,r):i.connect(t,0)},CC=s=>(e,t)=>{const n=s(e,{buffer:null,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",loop:!1,loopEnd:0,loopStart:0,playbackRate:1}),r=e.createBuffer(1,2,44100);return n.buffer=r,n.loop=!0,n.connect(t),n.start(),()=>{n.stop(),n.disconnect(t)}},SC={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",offset:1},OC=(s,e,t,n,r,i,o)=>class extends s{constructor(c,l){const u=r(c),h={...SC,...l},d=n(u,h),f=i(u),m=f?t():null;super(c,!1,d,m),this._constantSourceNodeRenderer=m,this._nativeConstantSourceNode=d,this._offset=e(this,f,d.offset,bt,Ct),this._onended=null}get offset(){return this._offset}get onended(){return this._onended}set onended(c){const l=typeof c=="function"?o(this,c):null;this._nativeConstantSourceNode.onended=l;const u=this._nativeConstantSourceNode.onended;this._onended=u!==null&&u===l?c:u}start(c=0){if(this._nativeConstantSourceNode.start(c),this._constantSourceNodeRenderer!==null&&(this._constantSourceNodeRenderer.start=c),this.context.state!=="closed"){Vr(this);const l=()=>{this._nativeConstantSourceNode.removeEventListener("ended",l),Wn(this)&&Co(this)};this._nativeConstantSourceNode.addEventListener("ended",l)}}stop(c=0){this._nativeConstantSourceNode.stop(c),this._constantSourceNodeRenderer!==null&&(this._constantSourceNodeRenderer.stop=c)}},AC=(s,e,t,n,r)=>()=>{const i=new WeakMap;let o=null,a=null;const c=async(l,u)=>{let h=t(l);const d=yt(h,u);if(!d){const f={channelCount:h.channelCount,channelCountMode:h.channelCountMode,channelInterpretation:h.channelInterpretation,offset:h.offset.value};h=e(u,f),o!==null&&h.start(o),a!==null&&h.stop(a)}return i.set(u,h),d?await s(u,l.offset,h.offset):await n(u,l.offset,h.offset),await r(l,u,h),h};return{set start(l){o=l},set stop(l){a=l},render(l,u){const h=i.get(u);return h!==void 0?Promise.resolve(h):c(l,u)}}},DC=s=>e=>(s[0]=e,s[0]),RC={buffer:null,channelCount:2,channelCountMode:"clamped-max",channelInterpretation:"speakers",disableNormalization:!1},PC=(s,e,t,n,r,i)=>class extends s{constructor(a,c){const l=n(a),u={...RC,...c},h=t(l,u),f=r(l)?e():null;super(a,!1,h,f),this._isBufferNullified=!1,this._nativeConvolverNode=h,u.buffer!==null&&i(this,u.buffer.duration)}get buffer(){return this._isBufferNullified?null:this._nativeConvolverNode.buffer}set buffer(a){if(this._nativeConvolverNode.buffer=a,a===null&&this._nativeConvolverNode.buffer!==null){const c=this._nativeConvolverNode.context;this._nativeConvolverNode.buffer=c.createBuffer(1,1,c.sampleRate),this._isBufferNullified=!0,i(this,0)}else this._isBufferNullified=!1,i(this,this._nativeConvolverNode.buffer===null?0:this._nativeConvolverNode.buffer.duration)}get normalize(){return this._nativeConvolverNode.normalize}set normalize(a){this._nativeConvolverNode.normalize=a}},MC=(s,e,t)=>()=>{const n=new WeakMap,r=async(i,o)=>{let a=e(i);if(!yt(a,o)){const l={buffer:a.buffer,channelCount:a.channelCount,channelCountMode:a.channelCountMode,channelInterpretation:a.channelInterpretation,disableNormalization:!a.normalize};a=s(o,l)}return n.set(o,a),si(a)?await t(i,o,a.inputs[0]):await t(i,o,a),a};return{render(i,o){const a=n.get(o);return a!==void 0?Promise.resolve(a):r(i,o)}}},NC=(s,e)=>(t,n,r)=>{if(e===null)throw new Error("Missing the native OfflineAudioContext constructor.");try{return new e(t,n,r)}catch(i){throw i.name==="SyntaxError"?s():i}},IC=()=>new DOMException("","DataCloneError"),wf=s=>{const{port1:e,port2:t}=new MessageChannel;return new Promise(n=>{const r=()=>{t.onmessage=null,e.close(),t.close(),n()};t.onmessage=()=>r();try{e.postMessage(s,[s])}catch{}finally{r()}})},$C=(s,e,t,n,r,i,o,a,c,l,u)=>(h,d)=>{const f=o(h)?h:i(h);if(r.has(d)){const m=t();return Promise.reject(m)}try{r.add(d)}catch{}return e(c,()=>c(f))?f.decodeAudioData(d).then(m=>(wf(d).catch(()=>{}),e(a,()=>a(m))||u(m),s.add(m),m)):new Promise((m,p)=>{const g=async()=>{try{await wf(d)}catch{}},_=w=>{p(w),g()};try{f.decodeAudioData(d,w=>{typeof w.copyFromChannel!="function"&&(l(w),Lu(w)),s.add(w),g().then(()=>m(w))},w=>{_(w===null?n():w)})}catch(w){_(w)}})},FC=(s,e,t,n,r,i,o,a)=>(c,l)=>{const u=e.get(c);if(u===void 0)throw new Error("Missing the expected cycle count.");const h=i(c.context),d=a(h);if(u===l){if(e.delete(c),!d&&o(c)){const f=n(c),{outputs:m}=t(c);for(const p of m)if(Oo(p)){const g=n(p[0]);s(f,g,p[1],p[2])}else{const g=r(p[0]);f.connect(g,p[1])}}}else e.set(c,u-l)},LC={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",delayTime:0,maxDelayTime:1},jC=(s,e,t,n,r,i,o)=>class extends s{constructor(c,l){const u=r(c),h={...LC,...l},d=n(u,h),f=i(u),m=f?t(h.maxDelayTime):null;super(c,!1,d,m),this._delayTime=e(this,f,d.delayTime),o(this,h.maxDelayTime)}get delayTime(){return this._delayTime}},VC=(s,e,t,n,r)=>i=>{const o=new WeakMap,a=async(c,l)=>{let u=t(c);const h=yt(u,l);if(!h){const d={channelCount:u.channelCount,channelCountMode:u.channelCountMode,channelInterpretation:u.channelInterpretation,delayTime:u.delayTime.value,maxDelayTime:i};u=e(l,d)}return o.set(l,u),h?await s(l,c.delayTime,u.delayTime):await n(l,c.delayTime,u.delayTime),await r(c,l,u),u};return{render(c,l){const u=o.get(l);return u!==void 0?Promise.resolve(u):a(c,l)}}},zC=s=>(e,t,n,r)=>s(e[r],i=>i[0]===t&&i[1]===n),UC=s=>(e,t)=>{s(e).delete(t)},BC=s=>"delayTime"in s,WC=(s,e,t)=>function n(r,i){const o=Ra(i)?i:t(s,i);if(BC(o))return[];if(r[0]===o)return[r];if(r.includes(o))return[];const{outputs:a}=e(o);return Array.from(a).map(c=>n([...r,o],c[0])).reduce((c,l)=>c.concat(l),[])},Jo=(s,e,t)=>{const n=e[t];if(n===void 0)throw s();return n},qC=s=>(e,t=void 0,n=void 0,r=0)=>t===void 0?e.forEach(i=>i.disconnect()):typeof t=="number"?Jo(s,e,t).disconnect():Na(t)?n===void 0?e.forEach(i=>i.disconnect(t)):r===void 0?Jo(s,e,n).disconnect(t,0):Jo(s,e,n).disconnect(t,0,r):n===void 0?e.forEach(i=>i.disconnect(t)):Jo(s,e,n).disconnect(t,0),HC={attack:.003,channelCount:2,channelCountMode:"clamped-max",channelInterpretation:"speakers",knee:30,ratio:12,release:.25,threshold:-24},YC=(s,e,t,n,r,i,o,a)=>class extends s{constructor(l,u){const h=i(l),d={...HC,...u},f=n(h,d),m=o(h),p=m?t():null;super(l,!1,f,p),this._attack=e(this,m,f.attack),this._knee=e(this,m,f.knee),this._nativeDynamicsCompressorNode=f,this._ratio=e(this,m,f.ratio),this._release=e(this,m,f.release),this._threshold=e(this,m,f.threshold),a(this,.006)}get attack(){return this._attack}get channelCount(){return this._nativeDynamicsCompressorNode.channelCount}set channelCount(l){const u=this._nativeDynamicsCompressorNode.channelCount;if(this._nativeDynamicsCompressorNode.channelCount=l,l>2)throw this._nativeDynamicsCompressorNode.channelCount=u,r()}get channelCountMode(){return this._nativeDynamicsCompressorNode.channelCountMode}set channelCountMode(l){const u=this._nativeDynamicsCompressorNode.channelCountMode;if(this._nativeDynamicsCompressorNode.channelCountMode=l,l==="max")throw this._nativeDynamicsCompressorNode.channelCountMode=u,r()}get knee(){return this._knee}get ratio(){return this._ratio}get reduction(){return typeof this._nativeDynamicsCompressorNode.reduction.value=="number"?this._nativeDynamicsCompressorNode.reduction.value:this._nativeDynamicsCompressorNode.reduction}get release(){return this._release}get threshold(){return this._threshold}},GC=(s,e,t,n,r)=>()=>{const i=new WeakMap,o=async(a,c)=>{let l=t(a);const u=yt(l,c);if(!u){const h={attack:l.attack.value,channelCount:l.channelCount,channelCountMode:l.channelCountMode,channelInterpretation:l.channelInterpretation,knee:l.knee.value,ratio:l.ratio.value,release:l.release.value,threshold:l.threshold.value};l=e(c,h)}return i.set(c,l),u?(await s(c,a.attack,l.attack),await s(c,a.knee,l.knee),await s(c,a.ratio,l.ratio),await s(c,a.release,l.release),await s(c,a.threshold,l.threshold)):(await n(c,a.attack,l.attack),await n(c,a.knee,l.knee),await n(c,a.ratio,l.ratio),await n(c,a.release,l.release),await n(c,a.threshold,l.threshold)),await r(a,c,l),l};return{render(a,c){const l=i.get(c);return l!==void 0?Promise.resolve(l):o(a,c)}}},XC=()=>new DOMException("","EncodingError"),ZC=s=>e=>new Promise((t,n)=>{if(s===null){n(new SyntaxError);return}const r=s.document.head;if(r===null)n(new SyntaxError);else{const i=s.document.createElement("script"),o=new Blob([e],{type:"application/javascript"}),a=URL.createObjectURL(o),c=s.onerror,l=()=>{s.onerror=c,URL.revokeObjectURL(a)};s.onerror=(u,h,d,f,m)=>{if(h===a||h===s.location.href&&d===1&&f===1)return l(),n(m),!1;if(c!==null)return c(u,h,d,f,m)},i.onerror=()=>{l(),n(new SyntaxError)},i.onload=()=>{l(),t()},i.src=a,i.type="module",r.appendChild(i)}}),KC=s=>class{constructor(t){this._nativeEventTarget=t,this._listeners=new WeakMap}addEventListener(t,n,r){if(n!==null){let i=this._listeners.get(n);i===void 0&&(i=s(this,n),typeof n=="function"&&this._listeners.set(n,i)),this._nativeEventTarget.addEventListener(t,i,r)}}dispatchEvent(t){return this._nativeEventTarget.dispatchEvent(t)}removeEventListener(t,n,r){const i=n===null?void 0:this._listeners.get(n);this._nativeEventTarget.removeEventListener(t,i===void 0?null:i,r)}},QC=s=>(e,t,n)=>{Object.defineProperties(s,{currentFrame:{configurable:!0,get(){return Math.round(e*t)}},currentTime:{configurable:!0,get(){return e}}});try{return n()}finally{s!==null&&(delete s.currentFrame,delete s.currentTime)}},JC=s=>async e=>{try{const t=await fetch(e);if(t.ok)return[await t.text(),t.url]}catch{}throw s()},eS={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",gain:1},tS=(s,e,t,n,r,i)=>class extends s{constructor(a,c){const l=r(a),u={...eS,...c},h=n(l,u),d=i(l),f=d?t():null;super(a,!1,h,f),this._gain=e(this,d,h.gain,bt,Ct)}get gain(){return this._gain}},nS=(s,e,t,n,r)=>()=>{const i=new WeakMap,o=async(a,c)=>{let l=t(a);const u=yt(l,c);if(!u){const h={channelCount:l.channelCount,channelCountMode:l.channelCountMode,channelInterpretation:l.channelInterpretation,gain:l.gain.value};l=e(c,h)}return i.set(c,l),u?await s(c,a.gain,l.gain):await n(c,a.gain,l.gain),await r(a,c,l),l};return{render(a,c){const l=i.get(c);return l!==void 0?Promise.resolve(l):o(a,c)}}},sS=(s,e)=>t=>e(s,t),rS=s=>e=>{const t=s(e);if(t.renderer===null)throw new Error("Missing the renderer of the given AudioNode in the audio graph.");return t.renderer},iS=s=>e=>{var t;return(t=s.get(e))!==null&&t!==void 0?t:0},oS=s=>e=>{const t=s(e);if(t.renderer===null)throw new Error("Missing the renderer of the given AudioParam in the audio graph.");return t.renderer},aS=s=>e=>s.get(e),lt=()=>new DOMException("","InvalidStateError"),cS=s=>e=>{const t=s.get(e);if(t===void 0)throw lt();return t},lS=(s,e)=>t=>{let n=s.get(t);if(n!==void 0)return n;if(e===null)throw new Error("Missing the native OfflineAudioContext constructor.");return n=new e(1,1,44100),s.set(t,n),n},uS=s=>e=>{const t=s.get(e);if(t===void 0)throw new Error("The context has no set of AudioWorkletNodes.");return t},pc=()=>new DOMException("","InvalidAccessError"),hS=s=>{s.getFrequencyResponse=(e=>(t,n,r)=>{if(t.length!==n.length||n.length!==r.length)throw pc();return e.call(s,t,n,r)})(s.getFrequencyResponse)},dS={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers"},fS=(s,e,t,n,r,i)=>class extends s{constructor(a,c){const l=n(a),u=r(l),h={...dS,...c},d=e(l,u?null:a.baseLatency,h),f=u?t(h.feedback,h.feedforward):null;super(a,!1,d,f),hS(d),this._nativeIIRFilterNode=d,i(this,1)}getFrequencyResponse(a,c,l){return this._nativeIIRFilterNode.getFrequencyResponse(a,c,l)}},gm=(s,e,t,n,r,i,o,a,c,l,u)=>{const h=l.length;let d=a;for(let f=0;f{const r=t instanceof Float64Array?t:new Float64Array(t),i=n instanceof Float64Array?n:new Float64Array(n),o=r.length,a=i.length,c=Math.min(o,a);if(r[0]!==1){for(let m=0;m(i,o)=>{const a=new WeakMap;let c=null;const l=async(u,h)=>{let d=null,f=e(u);const m=yt(f,h);if(h.createIIRFilter===void 0?d=s(h,{buffer:null,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",loop:!1,loopEnd:0,loopStart:0,playbackRate:1}):m||(f=h.createIIRFilter(o,i)),a.set(h,d===null?f:d),d!==null){if(c===null){if(t===null)throw new Error("Missing the native OfflineAudioContext constructor.");const g=new t(u.context.destination.channelCount,u.context.length,h.sampleRate);c=(async()=>{await n(u,g,g.destination);const _=await r(g);return pS(_,h,i,o)})()}const p=await c;return d.buffer=p,d.start(0),d}return await n(u,h,f),f};return{render(u,h){const d=a.get(h);return d!==void 0?Promise.resolve(d):l(u,h)}}},gS=(s,e,t,n,r,i)=>o=>(a,c)=>{const l=s.get(a);if(l===void 0){if(!o&&i(a)){const u=n(a),{outputs:h}=t(a);for(const d of h)if(Oo(d)){const f=n(d[0]);e(u,f,d[1],d[2])}else{const f=r(d[0]);u.disconnect(f,d[1])}}s.set(a,c)}else s.set(a,l+c)},_S=(s,e)=>t=>{const n=s.get(t);return e(n)||e(t)},yS=(s,e)=>t=>s.has(t)||e(t),vS=(s,e)=>t=>s.has(t)||e(t),bS=(s,e)=>t=>{const n=s.get(t);return e(n)||e(t)},xS=s=>e=>s!==null&&e instanceof s,wS=s=>e=>s!==null&&typeof s.AudioNode=="function"&&e instanceof s.AudioNode,kS=s=>e=>s!==null&&typeof s.AudioParam=="function"&&e instanceof s.AudioParam,TS=(s,e)=>t=>s(t)||e(t),ES=s=>e=>s!==null&&e instanceof s,CS=s=>s!==null&&s.isSecureContext,SS=(s,e,t,n)=>class extends s{constructor(i,o){const a=t(i),c=e(a,o);if(n(a))throw TypeError();super(i,!0,c,null),this._nativeMediaElementAudioSourceNode=c}get mediaElement(){return this._nativeMediaElementAudioSourceNode.mediaElement}},OS={channelCount:2,channelCountMode:"explicit",channelInterpretation:"speakers"},AS=(s,e,t,n)=>class extends s{constructor(i,o){const a=t(i);if(n(a))throw new TypeError;const c={...OS,...o},l=e(a,c);super(i,!1,l,null),this._nativeMediaStreamAudioDestinationNode=l}get stream(){return this._nativeMediaStreamAudioDestinationNode.stream}},DS=(s,e,t,n)=>class extends s{constructor(i,o){const a=t(i),c=e(a,o);if(n(a))throw new TypeError;super(i,!0,c,null),this._nativeMediaStreamAudioSourceNode=c}get mediaStream(){return this._nativeMediaStreamAudioSourceNode.mediaStream}},RS=(s,e,t)=>class extends s{constructor(r,i){const o=t(r),a=e(o,i);super(r,!0,a,null)}},PS=(s,e,t,n,r,i)=>class extends t{constructor(a,c){super(a),this._nativeContext=a,dc.set(this,a),n(a)&&r.set(a,new Set),this._destination=new s(this,c),this._listener=e(this,a),this._onstatechange=null}get currentTime(){return this._nativeContext.currentTime}get destination(){return this._destination}get listener(){return this._listener}get onstatechange(){return this._onstatechange}set onstatechange(a){const c=typeof a=="function"?i(this,a):null;this._nativeContext.onstatechange=c;const l=this._nativeContext.onstatechange;this._onstatechange=l!==null&&l===c?a:l}get sampleRate(){return this._nativeContext.sampleRate}get state(){return this._nativeContext.state}},Wi=s=>{const e=new Uint32Array([1179011410,40,1163280727,544501094,16,131073,44100,176400,1048580,1635017060,4,0]);try{const t=s.decodeAudioData(e.buffer,()=>{});return t===void 0?!1:(t.catch(()=>{}),!0)}catch{}return!1},MS=(s,e)=>(t,n,r)=>{const i=new Set;return t.connect=(o=>(a,c=0,l=0)=>{const u=i.size===0;if(e(a))return o.call(t,a,c,l),s(i,[a,c,l],h=>h[0]===a&&h[1]===c&&h[2]===l,!0),u&&n(),a;o.call(t,a,c),s(i,[a,c],h=>h[0]===a&&h[1]===c,!0),u&&n()})(t.connect),t.disconnect=(o=>(a,c,l)=>{const u=i.size>0;if(a===void 0)o.apply(t),i.clear();else if(typeof a=="number"){o.call(t,a);for(const d of i)d[1]===a&&i.delete(d)}else{e(a)?o.call(t,a,c,l):o.call(t,a,c);for(const d of i)d[0]===a&&(c===void 0||d[1]===c)&&(l===void 0||d[2]===l)&&i.delete(d)}const h=i.size===0;u&&h&&r()})(t.disconnect),t},ze=(s,e,t)=>{const n=e[t];n!==void 0&&n!==s[t]&&(s[t]=n)},ot=(s,e)=>{ze(s,e,"channelCount"),ze(s,e,"channelCountMode"),ze(s,e,"channelInterpretation")},kf=s=>typeof s.getFloatTimeDomainData=="function",NS=s=>{s.getFloatTimeDomainData=e=>{const t=new Uint8Array(e.length);s.getByteTimeDomainData(t);const n=Math.max(t.length,s.fftSize);for(let r=0;r(t,n)=>{const r=t.createAnalyser();if(ot(r,n),!(n.maxDecibels>n.minDecibels))throw e();return ze(r,n,"fftSize"),ze(r,n,"maxDecibels"),ze(r,n,"minDecibels"),ze(r,n,"smoothingTimeConstant"),s(kf,()=>kf(r))||NS(r),r},$S=s=>s===null?null:s.hasOwnProperty("AudioBuffer")?s.AudioBuffer:null,Ye=(s,e,t)=>{const n=e[t];n!==void 0&&n!==s[t].value&&(s[t].value=n)},FS=s=>{s.start=(e=>{let t=!1;return(n=0,r=0,i)=>{if(t)throw lt();e.call(s,n,r,i),t=!0}})(s.start)},zu=s=>{s.start=(e=>(t=0,n=0,r)=>{if(typeof r=="number"&&r<0||n<0||t<0)throw new RangeError("The parameters can't be negative.");e.call(s,t,n,r)})(s.start)},Uu=s=>{s.stop=(e=>(t=0)=>{if(t<0)throw new RangeError("The parameter can't be negative.");e.call(s,t)})(s.stop)},LS=(s,e,t,n,r,i,o,a,c,l,u)=>(h,d)=>{const f=h.createBufferSource();return ot(f,d),Ye(f,d,"playbackRate"),ze(f,d,"buffer"),ze(f,d,"loop"),ze(f,d,"loopEnd"),ze(f,d,"loopStart"),e(t,()=>t(h))||FS(f),e(n,()=>n(h))||c(f),e(r,()=>r(h))||l(f,h),e(i,()=>i(h))||zu(f),e(o,()=>o(h))||u(f,h),e(a,()=>a(h))||Uu(f),s(h,f),f},jS=s=>s===null?null:s.hasOwnProperty("AudioContext")?s.AudioContext:s.hasOwnProperty("webkitAudioContext")?s.webkitAudioContext:null,VS=(s,e)=>(t,n,r)=>{const i=t.destination;if(i.channelCount!==n)try{i.channelCount=n}catch{}r&&i.channelCountMode!=="explicit"&&(i.channelCountMode="explicit"),i.maxChannelCount===0&&Object.defineProperty(i,"maxChannelCount",{value:n});const o=s(t,{channelCount:n,channelCountMode:i.channelCountMode,channelInterpretation:i.channelInterpretation,gain:1});return e(o,"channelCount",a=>()=>a.call(o),a=>c=>{a.call(o,c);try{i.channelCount=c}catch(l){if(c>i.maxChannelCount)throw l}}),e(o,"channelCountMode",a=>()=>a.call(o),a=>c=>{a.call(o,c),i.channelCountMode=c}),e(o,"channelInterpretation",a=>()=>a.call(o),a=>c=>{a.call(o,c),i.channelInterpretation=c}),Object.defineProperty(o,"maxChannelCount",{get:()=>i.maxChannelCount}),o.connect(i),o},zS=s=>s===null?null:s.hasOwnProperty("AudioWorkletNode")?s.AudioWorkletNode:null,US=s=>{const{port1:e}=new MessageChannel;try{e.postMessage(s)}finally{e.close()}},BS=(s,e,t,n,r)=>(i,o,a,c,l,u)=>{if(a!==null)try{const h=new a(i,c,u),d=new Map;let f=null;if(Object.defineProperties(h,{channelCount:{get:()=>u.channelCount,set:()=>{throw s()}},channelCountMode:{get:()=>"explicit",set:()=>{throw s()}},onprocessorerror:{get:()=>f,set:m=>{typeof f=="function"&&h.removeEventListener("processorerror",f),f=typeof m=="function"?m:null,typeof f=="function"&&h.addEventListener("processorerror",f)}}}),h.addEventListener=(m=>(...p)=>{if(p[0]==="processorerror"){const g=typeof p[1]=="function"?p[1]:typeof p[1]=="object"&&p[1]!==null&&typeof p[1].handleEvent=="function"?p[1].handleEvent:null;if(g!==null){const _=d.get(p[1]);_!==void 0?p[1]=_:(p[1]=w=>{w.type==="error"?(Object.defineProperties(w,{type:{value:"processorerror"}}),g(w)):g(new ErrorEvent(p[0],{...w}))},d.set(g,p[1]))}}return m.call(h,"error",p[1],p[2]),m.call(h,...p)})(h.addEventListener),h.removeEventListener=(m=>(...p)=>{if(p[0]==="processorerror"){const g=d.get(p[1]);g!==void 0&&(d.delete(p[1]),p[1]=g)}return m.call(h,"error",p[1],p[2]),m.call(h,p[0],p[1],p[2])})(h.removeEventListener),u.numberOfOutputs!==0){const m=t(i,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:0});return h.connect(m).connect(i.destination),r(h,()=>m.disconnect(),()=>m.connect(i.destination))}return h}catch(h){throw h.code===11?n():h}if(l===void 0)throw n();return US(u),e(i,o,l,u)},_m=(s,e)=>s===null?512:Math.max(512,Math.min(16384,Math.pow(2,Math.round(Math.log2(s*e))))),WS=s=>new Promise((e,t)=>{const{port1:n,port2:r}=new MessageChannel;n.onmessage=({data:i})=>{n.close(),r.close(),e(i)},n.onmessageerror=({data:i})=>{n.close(),r.close(),t(i)},r.postMessage(s)}),qS=async(s,e)=>{const t=await WS(e);return new s(t)},HS=(s,e,t,n)=>{let r=zl.get(s);r===void 0&&(r=new WeakMap,zl.set(s,r));const i=qS(t,n);return r.set(e,i),i},YS=(s,e,t,n,r,i,o,a,c,l,u,h,d)=>(f,m,p,g)=>{if(g.numberOfInputs===0&&g.numberOfOutputs===0)throw c();const _=Array.isArray(g.outputChannelCount)?g.outputChannelCount:Array.from(g.outputChannelCount);if(_.some(H=>H<1))throw c();if(_.length!==g.numberOfOutputs)throw e();if(g.channelCountMode!=="explicit")throw c();const w=g.channelCount*g.numberOfInputs,k=_.reduce((H,P)=>H+P,0),v=p.parameterDescriptors===void 0?0:p.parameterDescriptors.length;if(w+v>6||k>6)throw c();const y=new MessageChannel,T=[],E=[];for(let H=0;HH===void 0?0:H},maxValue:{get:()=>P===void 0?bt:P},minValue:{get:()=>R===void 0?Ct:R}}),x.push(se)}const C=n(f,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:Math.max(1,w+v)}),S=_m(m,f.sampleRate),D=a(f,S,w+v,Math.max(1,k)),O=r(f,{channelCount:Math.max(1,k),channelCountMode:"explicit",channelInterpretation:"discrete",numberOfOutputs:Math.max(1,k)}),L=[];for(let H=0;H{const R=x[P];return R.connect(C,0,w+P),R.start(0),[H,R.offset]}));C.connect(D);let W=g.channelInterpretation,B=null;const U=g.numberOfOutputs===0?[D]:L,z={get bufferSize(){return S},get channelCount(){return g.channelCount},set channelCount(H){throw t()},get channelCountMode(){return g.channelCountMode},set channelCountMode(H){throw t()},get channelInterpretation(){return W},set channelInterpretation(H){for(const P of T)P.channelInterpretation=H;W=H},get context(){return D.context},get inputs(){return T},get numberOfInputs(){return g.numberOfInputs},get numberOfOutputs(){return g.numberOfOutputs},get onprocessorerror(){return B},set onprocessorerror(H){typeof B=="function"&&z.removeEventListener("processorerror",B),B=typeof H=="function"?H:null,typeof B=="function"&&z.addEventListener("processorerror",B)},get parameters(){return j},get port(){return y.port2},addEventListener(...H){return D.addEventListener(H[0],H[1],H[2])},connect:s.bind(null,U),disconnect:l.bind(null,U),dispatchEvent(...H){return D.dispatchEvent(H[0])},removeEventListener(...H){return D.removeEventListener(H[0],H[1],H[2])}},X=new Map;y.port1.addEventListener=(H=>(...P)=>{if(P[0]==="message"){const R=typeof P[1]=="function"?P[1]:typeof P[1]=="object"&&P[1]!==null&&typeof P[1].handleEvent=="function"?P[1].handleEvent:null;if(R!==null){const Q=X.get(P[1]);Q!==void 0?P[1]=Q:(P[1]=se=>{u(f.currentTime,f.sampleRate,()=>R(se))},X.set(R,P[1]))}}return H.call(y.port1,P[0],P[1],P[2])})(y.port1.addEventListener),y.port1.removeEventListener=(H=>(...P)=>{if(P[0]==="message"){const R=X.get(P[1]);R!==void 0&&(X.delete(P[1]),P[1]=R)}return H.call(y.port1,P[0],P[1],P[2])})(y.port1.removeEventListener);let K=null;Object.defineProperty(y.port1,"onmessage",{get:()=>K,set:H=>{typeof K=="function"&&y.port1.removeEventListener("message",K),K=typeof H=="function"?H:null,typeof K=="function"&&(y.port1.addEventListener("message",K),y.port1.start())}}),p.prototype.port=y.port1;let ee=null;HS(f,z,p,g).then(H=>ee=H);const F=$a(g.numberOfInputs,g.channelCount),A=$a(g.numberOfOutputs,_),N=p.parameterDescriptors===void 0?[]:p.parameterDescriptors.reduce((H,{name:P})=>({...H,[P]:new Float32Array(128)}),{});let Y=!0;const $=()=>{g.numberOfOutputs>0&&D.disconnect(O);for(let H=0,P=0;H{if(ee!==null){const R=h(z);for(let Q=0;Q{Ia(H,N,se,w+ce,Q)});for(let se=0;se{if(R[Ke].size>0)return q.set(Ke,S/128),ye;const de=q.get(Ke);return de===void 0?[]:(ye.every(Qe=>Qe.every(it=>it===0))&&(de===1?q.delete(Ke):q.set(Ke,de-1)),ye)});Y=u(f.currentTime+Q/f.sampleRate,f.sampleRate,()=>ee.process(se,A,N));for(let ye=0,Ke=0;yeD.connect(re).connect(f.destination),ne=()=>{D.disconnect(re),re.disconnect()},me=()=>{if(Y){ne(),g.numberOfOutputs>0&&D.connect(O);for(let H=0,P=0;H{Y&&(ie(),$()),oe=!1};return ie(),d(z,me,te)},ym=(s,e)=>{const t=s.createBiquadFilter();return ot(t,e),Ye(t,e,"Q"),Ye(t,e,"detune"),Ye(t,e,"frequency"),Ye(t,e,"gain"),ze(t,e,"type"),t},GS=(s,e)=>(t,n)=>{const r=t.createChannelMerger(n.numberOfInputs);return s!==null&&s.name==="webkitAudioContext"&&e(t,r),ot(r,n),r},XS=s=>{const e=s.numberOfOutputs;Object.defineProperty(s,"channelCount",{get:()=>e,set:t=>{if(t!==e)throw lt()}}),Object.defineProperty(s,"channelCountMode",{get:()=>"explicit",set:t=>{if(t!=="explicit")throw lt()}}),Object.defineProperty(s,"channelInterpretation",{get:()=>"discrete",set:t=>{if(t!=="discrete")throw lt()}})},Ao=(s,e)=>{const t=s.createChannelSplitter(e.numberOfOutputs);return ot(t,e),XS(t),t},ZS=(s,e,t,n,r)=>(i,o)=>{if(i.createConstantSource===void 0)return t(i,o);const a=i.createConstantSource();return ot(a,o),Ye(a,o,"offset"),e(n,()=>n(i))||zu(a),e(r,()=>r(i))||Uu(a),s(i,a),a},ri=(s,e)=>(s.connect=e.connect.bind(e),s.disconnect=e.disconnect.bind(e),s),KS=(s,e,t,n)=>(r,{offset:i,...o})=>{const a=r.createBuffer(1,2,44100),c=e(r,{buffer:null,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",loop:!1,loopEnd:0,loopStart:0,playbackRate:1}),l=t(r,{...o,gain:i}),u=a.getChannelData(0);u[0]=1,u[1]=1,c.buffer=a,c.loop=!0;const h={get bufferSize(){},get channelCount(){return l.channelCount},set channelCount(m){l.channelCount=m},get channelCountMode(){return l.channelCountMode},set channelCountMode(m){l.channelCountMode=m},get channelInterpretation(){return l.channelInterpretation},set channelInterpretation(m){l.channelInterpretation=m},get context(){return l.context},get inputs(){return[]},get numberOfInputs(){return c.numberOfInputs},get numberOfOutputs(){return l.numberOfOutputs},get offset(){return l.gain},get onended(){return c.onended},set onended(m){c.onended=m},addEventListener(...m){return c.addEventListener(m[0],m[1],m[2])},dispatchEvent(...m){return c.dispatchEvent(m[0])},removeEventListener(...m){return c.removeEventListener(m[0],m[1],m[2])},start(m=0){c.start.call(c,m)},stop(m=0){c.stop.call(c,m)}},d=()=>c.connect(l),f=()=>c.disconnect(l);return s(r,c),n(ri(h,l),d,f)},QS=(s,e)=>(t,n)=>{const r=t.createConvolver();if(ot(r,n),n.disableNormalization===r.normalize&&(r.normalize=!n.disableNormalization),ze(r,n,"buffer"),n.channelCount>2||(e(r,"channelCount",i=>()=>i.call(r),i=>o=>{if(o>2)throw s();return i.call(r,o)}),n.channelCountMode==="max"))throw s();return e(r,"channelCountMode",i=>()=>i.call(r),i=>o=>{if(o==="max")throw s();return i.call(r,o)}),r},vm=(s,e)=>{const t=s.createDelay(e.maxDelayTime);return ot(t,e),Ye(t,e,"delayTime"),t},JS=s=>(e,t)=>{const n=e.createDynamicsCompressor();if(ot(n,t),t.channelCount>2||t.channelCountMode==="max")throw s();return Ye(n,t,"attack"),Ye(n,t,"knee"),Ye(n,t,"ratio"),Ye(n,t,"release"),Ye(n,t,"threshold"),n},Mt=(s,e)=>{const t=s.createGain();return ot(t,e),Ye(t,e,"gain"),t},eO=s=>(e,t,n)=>{if(e.createIIRFilter===void 0)return s(e,t,n);const r=e.createIIRFilter(n.feedforward,n.feedback);return ot(r,n),r};function tO(s,e){const t=e[0]*e[0]+e[1]*e[1];return[(s[0]*e[0]+s[1]*e[1])/t,(s[1]*e[0]-s[0]*e[1])/t]}function nO(s,e){return[s[0]*e[0]-s[1]*e[1],s[0]*e[1]+s[1]*e[0]]}function Tf(s,e){let t=[0,0];for(let n=s.length-1;n>=0;n-=1)t=nO(t,e),t[0]+=s[n];return t}const sO=(s,e,t,n)=>(r,i,{channelCount:o,channelCountMode:a,channelInterpretation:c,feedback:l,feedforward:u})=>{const h=_m(i,r.sampleRate),d=l instanceof Float64Array?l:new Float64Array(l),f=u instanceof Float64Array?u:new Float64Array(u),m=d.length,p=f.length,g=Math.min(m,p);if(m===0||m>20)throw n();if(d[0]===0)throw e();if(p===0||p>20)throw n();if(f[0]===0)throw e();if(d[0]!==1){for(let x=0;x{const C=x.inputBuffer,S=x.outputBuffer,D=C.numberOfChannels;for(let O=0;Os.createMediaElementSource(e.mediaElement),iO=(s,e)=>{const t=s.createMediaStreamDestination();return ot(t,e),t.numberOfOutputs===1&&Object.defineProperty(t,"numberOfOutputs",{get:()=>0}),t},oO=(s,{mediaStream:e})=>{const t=e.getAudioTracks();t.sort((i,o)=>i.ido.id?1:0);const n=t.slice(0,1),r=s.createMediaStreamSource(new MediaStream(n));return Object.defineProperty(r,"mediaStream",{value:e}),r},aO=(s,e)=>(t,{mediaStreamTrack:n})=>{if(typeof t.createMediaStreamTrackSource=="function")return t.createMediaStreamTrackSource(n);const r=new MediaStream([n]),i=t.createMediaStreamSource(r);if(n.kind!=="audio")throw s();if(e(t))throw new TypeError;return i},cO=s=>s===null?null:s.hasOwnProperty("OfflineAudioContext")?s.OfflineAudioContext:s.hasOwnProperty("webkitOfflineAudioContext")?s.webkitOfflineAudioContext:null,lO=(s,e,t,n,r,i)=>(o,a)=>{const c=o.createOscillator();return ot(c,a),Ye(c,a,"detune"),Ye(c,a,"frequency"),a.periodicWave!==void 0?c.setPeriodicWave(a.periodicWave):ze(c,a,"type"),e(t,()=>t(o))||zu(c),e(n,()=>n(o))||i(c,o),e(r,()=>r(o))||Uu(c),s(o,c),c},uO=s=>(e,t)=>{const n=e.createPanner();return n.orientationX===void 0?s(e,t):(ot(n,t),Ye(n,t,"orientationX"),Ye(n,t,"orientationY"),Ye(n,t,"orientationZ"),Ye(n,t,"positionX"),Ye(n,t,"positionY"),Ye(n,t,"positionZ"),ze(n,t,"coneInnerAngle"),ze(n,t,"coneOuterAngle"),ze(n,t,"coneOuterGain"),ze(n,t,"distanceModel"),ze(n,t,"maxDistance"),ze(n,t,"panningModel"),ze(n,t,"refDistance"),ze(n,t,"rolloffFactor"),n)},hO=(s,e,t,n,r,i,o,a,c,l)=>(u,{coneInnerAngle:h,coneOuterAngle:d,coneOuterGain:f,distanceModel:m,maxDistance:p,orientationX:g,orientationY:_,orientationZ:w,panningModel:k,positionX:v,positionY:y,positionZ:T,refDistance:E,rolloffFactor:x,...C})=>{const S=u.createPanner();if(C.channelCount>2||C.channelCountMode==="max")throw o();ot(S,C);const D={channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete"},O=t(u,{...D,channelInterpretation:"speakers",numberOfInputs:6}),L=n(u,{...C,gain:1}),j=n(u,{...D,gain:1}),W=n(u,{...D,gain:0}),B=n(u,{...D,gain:0}),U=n(u,{...D,gain:0}),z=n(u,{...D,gain:0}),X=n(u,{...D,gain:0}),K=r(u,256,6,1),ee=i(u,{...D,curve:new Float32Array([1,1]),oversample:"none"});let I=[g,_,w],F=[v,y,T];const A=new Float32Array(1);K.onaudioprocess=({inputBuffer:q})=>{const oe=[c(q,A,0),c(q,A,1),c(q,A,2)];oe.some((ie,ne)=>ie!==I[ne])&&(S.setOrientation(...oe),I=oe);const re=[c(q,A,3),c(q,A,4),c(q,A,5)];re.some((ie,ne)=>ie!==F[ne])&&(S.setPosition(...re),F=re)},Object.defineProperty(W.gain,"defaultValue",{get:()=>0}),Object.defineProperty(B.gain,"defaultValue",{get:()=>0}),Object.defineProperty(U.gain,"defaultValue",{get:()=>0}),Object.defineProperty(z.gain,"defaultValue",{get:()=>0}),Object.defineProperty(X.gain,"defaultValue",{get:()=>0});const N={get bufferSize(){},get channelCount(){return S.channelCount},set channelCount(q){if(q>2)throw o();L.channelCount=q,S.channelCount=q},get channelCountMode(){return S.channelCountMode},set channelCountMode(q){if(q==="max")throw o();L.channelCountMode=q,S.channelCountMode=q},get channelInterpretation(){return S.channelInterpretation},set channelInterpretation(q){L.channelInterpretation=q,S.channelInterpretation=q},get coneInnerAngle(){return S.coneInnerAngle},set coneInnerAngle(q){S.coneInnerAngle=q},get coneOuterAngle(){return S.coneOuterAngle},set coneOuterAngle(q){S.coneOuterAngle=q},get coneOuterGain(){return S.coneOuterGain},set coneOuterGain(q){if(q<0||q>1)throw e();S.coneOuterGain=q},get context(){return S.context},get distanceModel(){return S.distanceModel},set distanceModel(q){S.distanceModel=q},get inputs(){return[L]},get maxDistance(){return S.maxDistance},set maxDistance(q){if(q<0)throw new RangeError;S.maxDistance=q},get numberOfInputs(){return S.numberOfInputs},get numberOfOutputs(){return S.numberOfOutputs},get orientationX(){return j.gain},get orientationY(){return W.gain},get orientationZ(){return B.gain},get panningModel(){return S.panningModel},set panningModel(q){S.panningModel=q},get positionX(){return U.gain},get positionY(){return z.gain},get positionZ(){return X.gain},get refDistance(){return S.refDistance},set refDistance(q){if(q<0)throw new RangeError;S.refDistance=q},get rolloffFactor(){return S.rolloffFactor},set rolloffFactor(q){if(q<0)throw new RangeError;S.rolloffFactor=q},addEventListener(...q){return L.addEventListener(q[0],q[1],q[2])},dispatchEvent(...q){return L.dispatchEvent(q[0])},removeEventListener(...q){return L.removeEventListener(q[0],q[1],q[2])}};h!==N.coneInnerAngle&&(N.coneInnerAngle=h),d!==N.coneOuterAngle&&(N.coneOuterAngle=d),f!==N.coneOuterGain&&(N.coneOuterGain=f),m!==N.distanceModel&&(N.distanceModel=m),p!==N.maxDistance&&(N.maxDistance=p),g!==N.orientationX.value&&(N.orientationX.value=g),_!==N.orientationY.value&&(N.orientationY.value=_),w!==N.orientationZ.value&&(N.orientationZ.value=w),k!==N.panningModel&&(N.panningModel=k),v!==N.positionX.value&&(N.positionX.value=v),y!==N.positionY.value&&(N.positionY.value=y),T!==N.positionZ.value&&(N.positionZ.value=T),E!==N.refDistance&&(N.refDistance=E),x!==N.rolloffFactor&&(N.rolloffFactor=x),(I[0]!==1||I[1]!==0||I[2]!==0)&&S.setOrientation(...I),(F[0]!==0||F[1]!==0||F[2]!==0)&&S.setPosition(...F);const Y=()=>{L.connect(S),s(L,ee,0,0),ee.connect(j).connect(O,0,0),ee.connect(W).connect(O,0,1),ee.connect(B).connect(O,0,2),ee.connect(U).connect(O,0,3),ee.connect(z).connect(O,0,4),ee.connect(X).connect(O,0,5),O.connect(K).connect(u.destination)},$=()=>{L.disconnect(S),a(L,ee,0,0),ee.disconnect(j),j.disconnect(O),ee.disconnect(W),W.disconnect(O),ee.disconnect(B),B.disconnect(O),ee.disconnect(U),U.disconnect(O),ee.disconnect(z),z.disconnect(O),ee.disconnect(X),X.disconnect(O),O.disconnect(K),K.disconnect(u.destination)};return l(ri(N,S),Y,$)},dO=s=>(e,{disableNormalization:t,imag:n,real:r})=>{const i=n instanceof Float32Array?n:new Float32Array(n),o=r instanceof Float32Array?r:new Float32Array(r),a=e.createPeriodicWave(o,i,{disableNormalization:t});if(Array.from(n).length<2)throw s();return a},Do=(s,e,t,n)=>s.createScriptProcessor(e,t,n),fO=(s,e)=>(t,n)=>{const r=n.channelCountMode;if(r==="clamped-max")throw e();if(t.createStereoPanner===void 0)return s(t,n);const i=t.createStereoPanner();return ot(i,n),Ye(i,n,"pan"),Object.defineProperty(i,"channelCountMode",{get:()=>r,set:o=>{if(o!==r)throw e()}}),i},pO=(s,e,t,n,r,i)=>{const a=new Float32Array([1,1]),c=Math.PI/2,l={channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete"},u={...l,oversample:"none"},h=(m,p,g,_)=>{const w=new Float32Array(16385),k=new Float32Array(16385);for(let C=0;C<16385;C+=1){const S=C/16384*c;w[C]=Math.cos(S),k[C]=Math.sin(S)}const v=t(m,{...l,gain:0}),y=n(m,{...u,curve:w}),T=n(m,{...u,curve:a}),E=t(m,{...l,gain:0}),x=n(m,{...u,curve:k});return{connectGraph(){p.connect(v),p.connect(T.inputs===void 0?T:T.inputs[0]),p.connect(E),T.connect(g),g.connect(y.inputs===void 0?y:y.inputs[0]),g.connect(x.inputs===void 0?x:x.inputs[0]),y.connect(v.gain),x.connect(E.gain),v.connect(_,0,0),E.connect(_,0,1)},disconnectGraph(){p.disconnect(v),p.disconnect(T.inputs===void 0?T:T.inputs[0]),p.disconnect(E),T.disconnect(g),g.disconnect(y.inputs===void 0?y:y.inputs[0]),g.disconnect(x.inputs===void 0?x:x.inputs[0]),y.disconnect(v.gain),x.disconnect(E.gain),v.disconnect(_,0,0),E.disconnect(_,0,1)}}},d=(m,p,g,_)=>{const w=new Float32Array(16385),k=new Float32Array(16385),v=new Float32Array(16385),y=new Float32Array(16385),T=Math.floor(16385/2);for(let U=0;U<16385;U+=1)if(U>T){const z=(U-T)/(16384-T)*c;w[U]=Math.cos(z),k[U]=Math.sin(z),v[U]=0,y[U]=1}else{const z=U/(16384-T)*c;w[U]=1,k[U]=0,v[U]=Math.cos(z),y[U]=Math.sin(z)}const E=e(m,{channelCount:2,channelCountMode:"explicit",channelInterpretation:"discrete",numberOfOutputs:2}),x=t(m,{...l,gain:0}),C=n(m,{...u,curve:w}),S=t(m,{...l,gain:0}),D=n(m,{...u,curve:k}),O=n(m,{...u,curve:a}),L=t(m,{...l,gain:0}),j=n(m,{...u,curve:v}),W=t(m,{...l,gain:0}),B=n(m,{...u,curve:y});return{connectGraph(){p.connect(E),p.connect(O.inputs===void 0?O:O.inputs[0]),E.connect(x,0),E.connect(S,0),E.connect(L,1),E.connect(W,1),O.connect(g),g.connect(C.inputs===void 0?C:C.inputs[0]),g.connect(D.inputs===void 0?D:D.inputs[0]),g.connect(j.inputs===void 0?j:j.inputs[0]),g.connect(B.inputs===void 0?B:B.inputs[0]),C.connect(x.gain),D.connect(S.gain),j.connect(L.gain),B.connect(W.gain),x.connect(_,0,0),L.connect(_,0,0),S.connect(_,0,1),W.connect(_,0,1)},disconnectGraph(){p.disconnect(E),p.disconnect(O.inputs===void 0?O:O.inputs[0]),E.disconnect(x,0),E.disconnect(S,0),E.disconnect(L,1),E.disconnect(W,1),O.disconnect(g),g.disconnect(C.inputs===void 0?C:C.inputs[0]),g.disconnect(D.inputs===void 0?D:D.inputs[0]),g.disconnect(j.inputs===void 0?j:j.inputs[0]),g.disconnect(B.inputs===void 0?B:B.inputs[0]),C.disconnect(x.gain),D.disconnect(S.gain),j.disconnect(L.gain),B.disconnect(W.gain),x.disconnect(_,0,0),L.disconnect(_,0,0),S.disconnect(_,0,1),W.disconnect(_,0,1)}}},f=(m,p,g,_,w)=>{if(p===1)return h(m,g,_,w);if(p===2)return d(m,g,_,w);throw r()};return(m,{channelCount:p,channelCountMode:g,pan:_,...w})=>{if(g==="max")throw r();const k=s(m,{...w,channelCount:1,channelCountMode:g,numberOfInputs:2}),v=t(m,{...w,channelCount:p,channelCountMode:g,gain:1}),y=t(m,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:_});let{connectGraph:T,disconnectGraph:E}=f(m,p,v,y,k);Object.defineProperty(y.gain,"defaultValue",{get:()=>0}),Object.defineProperty(y.gain,"maxValue",{get:()=>1}),Object.defineProperty(y.gain,"minValue",{get:()=>-1});const x={get bufferSize(){},get channelCount(){return v.channelCount},set channelCount(O){v.channelCount!==O&&(C&&E(),{connectGraph:T,disconnectGraph:E}=f(m,O,v,y,k),C&&T()),v.channelCount=O},get channelCountMode(){return v.channelCountMode},set channelCountMode(O){if(O==="clamped-max"||O==="max")throw r();v.channelCountMode=O},get channelInterpretation(){return v.channelInterpretation},set channelInterpretation(O){v.channelInterpretation=O},get context(){return v.context},get inputs(){return[v]},get numberOfInputs(){return v.numberOfInputs},get numberOfOutputs(){return v.numberOfOutputs},get pan(){return y.gain},addEventListener(...O){return v.addEventListener(O[0],O[1],O[2])},dispatchEvent(...O){return v.dispatchEvent(O[0])},removeEventListener(...O){return v.removeEventListener(O[0],O[1],O[2])}};let C=!1;const S=()=>{T(),C=!0},D=()=>{E(),C=!1};return i(ri(x,k),S,D)}},mO=(s,e,t,n,r,i,o)=>(a,c)=>{const l=a.createWaveShaper();if(i!==null&&i.name==="webkitAudioContext"&&a.createGain().gain.automationRate===void 0)return t(a,c);ot(l,c);const u=c.curve===null||c.curve instanceof Float32Array?c.curve:new Float32Array(c.curve);if(u!==null&&u.length<2)throw e();ze(l,{curve:u},"curve"),ze(l,c,"oversample");let h=null,d=!1;return o(l,"curve",p=>()=>p.call(l),p=>g=>(p.call(l,g),d&&(n(g)&&h===null?h=s(a,l):!n(g)&&h!==null&&(h(),h=null)),g)),r(l,()=>{d=!0,n(l.curve)&&(h=s(a,l))},()=>{d=!1,h!==null&&(h(),h=null)})},gO=(s,e,t,n,r)=>(i,{curve:o,oversample:a,...c})=>{const l=i.createWaveShaper(),u=i.createWaveShaper();ot(l,c),ot(u,c);const h=t(i,{...c,gain:1}),d=t(i,{...c,gain:-1}),f=t(i,{...c,gain:1}),m=t(i,{...c,gain:-1});let p=null,g=!1,_=null;const w={get bufferSize(){},get channelCount(){return l.channelCount},set channelCount(y){h.channelCount=y,d.channelCount=y,l.channelCount=y,f.channelCount=y,u.channelCount=y,m.channelCount=y},get channelCountMode(){return l.channelCountMode},set channelCountMode(y){h.channelCountMode=y,d.channelCountMode=y,l.channelCountMode=y,f.channelCountMode=y,u.channelCountMode=y,m.channelCountMode=y},get channelInterpretation(){return l.channelInterpretation},set channelInterpretation(y){h.channelInterpretation=y,d.channelInterpretation=y,l.channelInterpretation=y,f.channelInterpretation=y,u.channelInterpretation=y,m.channelInterpretation=y},get context(){return l.context},get curve(){return _},set curve(y){if(y!==null&&y.length<2)throw e();if(y===null)l.curve=y,u.curve=y;else{const T=y.length,E=new Float32Array(T+2-T%2),x=new Float32Array(T+2-T%2);E[0]=y[0],x[0]=-y[T-1];const C=Math.ceil((T+1)/2),S=(T+1)/2-1;for(let D=1;D{h.connect(l).connect(f),h.connect(d).connect(u).connect(m).connect(f),g=!0,n(_)&&(p=s(i,h))},v=()=>{h.disconnect(l),l.disconnect(f),h.disconnect(d),d.disconnect(u),u.disconnect(m),m.disconnect(f),g=!1,p!==null&&(p(),p=null)};return r(ri(w,f),k,v)},Tt=()=>new DOMException("","NotSupportedError"),_O={numberOfChannels:1},yO=(s,e,t,n,r)=>class extends s{constructor(o,a,c){let l;if(typeof o=="number"&&a!==void 0&&c!==void 0)l={length:a,numberOfChannels:o,sampleRate:c};else if(typeof o=="object")l=o;else throw new Error("The given parameters are not valid.");const{length:u,numberOfChannels:h,sampleRate:d}={..._O,...l},f=n(h,u,d);e(Wi,()=>Wi(f))||f.addEventListener("statechange",(()=>{let m=0;const p=g=>{this._state==="running"&&(m>0?(f.removeEventListener("statechange",p),g.stopImmediatePropagation(),this._waitForThePromiseToSettle(g)):m+=1)};return p})()),super(f,h),this._length=u,this._nativeOfflineAudioContext=f,this._state=null}get length(){return this._nativeOfflineAudioContext.length===void 0?this._length:this._nativeOfflineAudioContext.length}get state(){return this._state===null?this._nativeOfflineAudioContext.state:this._state}startRendering(){return this._state==="running"?Promise.reject(t()):(this._state="running",r(this.destination,this._nativeOfflineAudioContext).finally(()=>{this._state=null,um(this)}))}_waitForThePromiseToSettle(o){this._state===null?this._nativeOfflineAudioContext.dispatchEvent(o):setTimeout(()=>this._waitForThePromiseToSettle(o))}},vO={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",detune:0,frequency:440,periodicWave:void 0,type:"sine"},bO=(s,e,t,n,r,i,o)=>class extends s{constructor(c,l){const u=r(c),h={...vO,...l},d=t(u,h),f=i(u),m=f?n():null,p=c.sampleRate/2;super(c,!1,d,m),this._detune=e(this,f,d.detune,153600,-153600),this._frequency=e(this,f,d.frequency,p,-p),this._nativeOscillatorNode=d,this._onended=null,this._oscillatorNodeRenderer=m,this._oscillatorNodeRenderer!==null&&h.periodicWave!==void 0&&(this._oscillatorNodeRenderer.periodicWave=h.periodicWave)}get detune(){return this._detune}get frequency(){return this._frequency}get onended(){return this._onended}set onended(c){const l=typeof c=="function"?o(this,c):null;this._nativeOscillatorNode.onended=l;const u=this._nativeOscillatorNode.onended;this._onended=u!==null&&u===l?c:u}get type(){return this._nativeOscillatorNode.type}set type(c){this._nativeOscillatorNode.type=c,this._oscillatorNodeRenderer!==null&&(this._oscillatorNodeRenderer.periodicWave=null)}setPeriodicWave(c){this._nativeOscillatorNode.setPeriodicWave(c),this._oscillatorNodeRenderer!==null&&(this._oscillatorNodeRenderer.periodicWave=c)}start(c=0){if(this._nativeOscillatorNode.start(c),this._oscillatorNodeRenderer!==null&&(this._oscillatorNodeRenderer.start=c),this.context.state!=="closed"){Vr(this);const l=()=>{this._nativeOscillatorNode.removeEventListener("ended",l),Wn(this)&&Co(this)};this._nativeOscillatorNode.addEventListener("ended",l)}}stop(c=0){this._nativeOscillatorNode.stop(c),this._oscillatorNodeRenderer!==null&&(this._oscillatorNodeRenderer.stop=c)}},xO=(s,e,t,n,r)=>()=>{const i=new WeakMap;let o=null,a=null,c=null;const l=async(u,h)=>{let d=t(u);const f=yt(d,h);if(!f){const m={channelCount:d.channelCount,channelCountMode:d.channelCountMode,channelInterpretation:d.channelInterpretation,detune:d.detune.value,frequency:d.frequency.value,periodicWave:o===null?void 0:o,type:d.type};d=e(h,m),a!==null&&d.start(a),c!==null&&d.stop(c)}return i.set(h,d),f?(await s(h,u.detune,d.detune),await s(h,u.frequency,d.frequency)):(await n(h,u.detune,d.detune),await n(h,u.frequency,d.frequency)),await r(u,h,d),d};return{set periodicWave(u){o=u},set start(u){a=u},set stop(u){c=u},render(u,h){const d=i.get(h);return d!==void 0?Promise.resolve(d):l(u,h)}}},wO={channelCount:2,channelCountMode:"clamped-max",channelInterpretation:"speakers",coneInnerAngle:360,coneOuterAngle:360,coneOuterGain:0,distanceModel:"inverse",maxDistance:1e4,orientationX:1,orientationY:0,orientationZ:0,panningModel:"equalpower",positionX:0,positionY:0,positionZ:0,refDistance:1,rolloffFactor:1},kO=(s,e,t,n,r,i,o)=>class extends s{constructor(c,l){const u=r(c),h={...wO,...l},d=t(u,h),f=i(u),m=f?n():null;super(c,!1,d,m),this._nativePannerNode=d,this._orientationX=e(this,f,d.orientationX,bt,Ct),this._orientationY=e(this,f,d.orientationY,bt,Ct),this._orientationZ=e(this,f,d.orientationZ,bt,Ct),this._positionX=e(this,f,d.positionX,bt,Ct),this._positionY=e(this,f,d.positionY,bt,Ct),this._positionZ=e(this,f,d.positionZ,bt,Ct),o(this,1)}get coneInnerAngle(){return this._nativePannerNode.coneInnerAngle}set coneInnerAngle(c){this._nativePannerNode.coneInnerAngle=c}get coneOuterAngle(){return this._nativePannerNode.coneOuterAngle}set coneOuterAngle(c){this._nativePannerNode.coneOuterAngle=c}get coneOuterGain(){return this._nativePannerNode.coneOuterGain}set coneOuterGain(c){this._nativePannerNode.coneOuterGain=c}get distanceModel(){return this._nativePannerNode.distanceModel}set distanceModel(c){this._nativePannerNode.distanceModel=c}get maxDistance(){return this._nativePannerNode.maxDistance}set maxDistance(c){this._nativePannerNode.maxDistance=c}get orientationX(){return this._orientationX}get orientationY(){return this._orientationY}get orientationZ(){return this._orientationZ}get panningModel(){return this._nativePannerNode.panningModel}set panningModel(c){this._nativePannerNode.panningModel=c}get positionX(){return this._positionX}get positionY(){return this._positionY}get positionZ(){return this._positionZ}get refDistance(){return this._nativePannerNode.refDistance}set refDistance(c){this._nativePannerNode.refDistance=c}get rolloffFactor(){return this._nativePannerNode.rolloffFactor}set rolloffFactor(c){this._nativePannerNode.rolloffFactor=c}},TO=(s,e,t,n,r,i,o,a,c,l)=>()=>{const u=new WeakMap;let h=null;const d=async(f,m)=>{let p=null,g=i(f);const _={channelCount:g.channelCount,channelCountMode:g.channelCountMode,channelInterpretation:g.channelInterpretation},w={..._,coneInnerAngle:g.coneInnerAngle,coneOuterAngle:g.coneOuterAngle,coneOuterGain:g.coneOuterGain,distanceModel:g.distanceModel,maxDistance:g.maxDistance,panningModel:g.panningModel,refDistance:g.refDistance,rolloffFactor:g.rolloffFactor},k=yt(g,m);if("bufferSize"in g)p=n(m,{..._,gain:1});else if(!k){const v={...w,orientationX:g.orientationX.value,orientationY:g.orientationY.value,orientationZ:g.orientationZ.value,positionX:g.positionX.value,positionY:g.positionY.value,positionZ:g.positionZ.value};g=r(m,v)}if(u.set(m,p===null?g:p),p!==null){if(h===null){if(o===null)throw new Error("Missing the native OfflineAudioContext constructor.");const D=new o(6,f.context.length,m.sampleRate),O=e(D,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:6});O.connect(D.destination),h=(async()=>{const L=await Promise.all([f.orientationX,f.orientationY,f.orientationZ,f.positionX,f.positionY,f.positionZ].map(async(j,W)=>{const B=t(D,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",offset:W===0?1:0});return await a(D,j,B.offset),B}));for(let j=0;j<6;j+=1)L[j].connect(O,0,j),L[j].start(0);return l(D)})()}const v=await h,y=n(m,{..._,gain:1});await c(f,m,y);const T=[];for(let D=0;Dj!==E[W])||L.some((j,W)=>j!==x[W])){E=O,x=L;const j=D/m.sampleRate;C.gain.setValueAtTime(0,j),C=n(m,{..._,gain:0}),S=r(m,{...w,orientationX:E[0],orientationY:E[1],orientationZ:E[2],positionX:x[0],positionY:x[1],positionZ:x[2]}),C.gain.setValueAtTime(1,j),y.connect(C).connect(S.inputs[0]),S.connect(p)}}return p}return k?(await s(m,f.orientationX,g.orientationX),await s(m,f.orientationY,g.orientationY),await s(m,f.orientationZ,g.orientationZ),await s(m,f.positionX,g.positionX),await s(m,f.positionY,g.positionY),await s(m,f.positionZ,g.positionZ)):(await a(m,f.orientationX,g.orientationX),await a(m,f.orientationY,g.orientationY),await a(m,f.orientationZ,g.orientationZ),await a(m,f.positionX,g.positionX),await a(m,f.positionY,g.positionY),await a(m,f.positionZ,g.positionZ)),si(g)?await c(f,m,g.inputs[0]):await c(f,m,g),g};return{render(f,m){const p=u.get(m);return p!==void 0?Promise.resolve(p):d(f,m)}}},EO={disableNormalization:!1},CO=(s,e,t,n)=>class bm{constructor(i,o){const a=e(i),c=n({...EO,...o}),l=s(a,c);return t.add(l),l}static[Symbol.hasInstance](i){return i!==null&&typeof i=="object"&&Object.getPrototypeOf(i)===bm.prototype||t.has(i)}},SO=(s,e)=>(t,n,r)=>(s(n).replay(r),e(n,t,r)),OO=(s,e,t)=>async(n,r,i)=>{const o=s(n);await Promise.all(o.activeInputs.map((a,c)=>Array.from(a).map(async([l,u])=>{const d=await e(l).render(l,r),f=n.context.destination;!t(l)&&(n!==f||!t(n))&&d.connect(i,u,c)})).reduce((a,c)=>[...a,...c],[]))},AO=(s,e,t)=>async(n,r,i)=>{const o=e(n);await Promise.all(Array.from(o.activeInputs).map(async([a,c])=>{const u=await s(a).render(a,r);t(a)||u.connect(i,c)}))},DO=(s,e,t,n)=>r=>s(Wi,()=>Wi(r))?Promise.resolve(s(n,n)).then(i=>{if(!i){const o=t(r,512,0,1);r.oncomplete=()=>{o.onaudioprocess=null,o.disconnect()},o.onaudioprocess=()=>r.currentTime,o.connect(r.destination)}return r.startRendering()}):new Promise(i=>{const o=e(r,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:0});r.oncomplete=a=>{o.disconnect(),i(a.renderedBuffer)},o.connect(r.destination),r.startRendering()}),RO=s=>(e,t)=>{s.set(e,t)},PO=s=>(e,t)=>s.set(e,t),MO=(s,e,t,n,r,i,o,a)=>(c,l)=>t(c).render(c,l).then(()=>Promise.all(Array.from(n(l)).map(u=>t(u).render(u,l)))).then(()=>r(l)).then(u=>(typeof u.copyFromChannel!="function"?(o(u),Lu(u)):e(i,()=>i(u))||a(u),s.add(u),u)),NO={channelCount:2,channelCountMode:"explicit",channelInterpretation:"speakers",pan:0},IO=(s,e,t,n,r,i)=>class extends s{constructor(a,c){const l=r(a),u={...NO,...c},h=t(l,u),d=i(l),f=d?n():null;super(a,!1,h,f),this._pan=e(this,d,h.pan)}get pan(){return this._pan}},$O=(s,e,t,n,r)=>()=>{const i=new WeakMap,o=async(a,c)=>{let l=t(a);const u=yt(l,c);if(!u){const h={channelCount:l.channelCount,channelCountMode:l.channelCountMode,channelInterpretation:l.channelInterpretation,pan:l.pan.value};l=e(c,h)}return i.set(c,l),u?await s(c,a.pan,l.pan):await n(c,a.pan,l.pan),si(l)?await r(a,c,l.inputs[0]):await r(a,c,l),l};return{render(a,c){const l=i.get(c);return l!==void 0?Promise.resolve(l):o(a,c)}}},FO=s=>()=>{if(s===null)return!1;try{new s({length:1,sampleRate:44100})}catch{return!1}return!0},LO=(s,e)=>async()=>{if(s===null)return!0;if(e===null)return!1;const t=new Blob(['class A extends AudioWorkletProcessor{process(i){this.port.postMessage(i,[i[0][0].buffer])}}registerProcessor("a",A)'],{type:"application/javascript; charset=utf-8"}),n=new e(1,128,44100),r=URL.createObjectURL(t);let i=!1,o=!1;try{await n.audioWorklet.addModule(r);const a=new s(n,"a",{numberOfOutputs:0}),c=n.createOscillator();a.port.onmessage=()=>i=!0,a.onprocessorerror=()=>o=!0,c.connect(a),c.start(0),await n.startRendering(),await new Promise(l=>setTimeout(l))}catch{}finally{URL.revokeObjectURL(r)}return i&&!o},jO=(s,e)=>()=>{if(e===null)return Promise.resolve(!1);const t=new e(1,1,44100),n=s(t,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:0});return new Promise(r=>{t.oncomplete=()=>{n.disconnect(),r(t.currentTime!==0)},t.startRendering()})},VO=()=>new DOMException("","UnknownError"),zO={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",curve:null,oversample:"none"},UO=(s,e,t,n,r,i,o)=>class extends s{constructor(c,l){const u=r(c),h={...zO,...l},d=t(u,h),m=i(u)?n():null;super(c,!0,d,m),this._isCurveNullified=!1,this._nativeWaveShaperNode=d,o(this,1)}get curve(){return this._isCurveNullified?null:this._nativeWaveShaperNode.curve}set curve(c){if(c===null)this._isCurveNullified=!0,this._nativeWaveShaperNode.curve=new Float32Array([0,0]);else{if(c.length<2)throw e();this._isCurveNullified=!1,this._nativeWaveShaperNode.curve=c}}get oversample(){return this._nativeWaveShaperNode.oversample}set oversample(c){this._nativeWaveShaperNode.oversample=c}},BO=(s,e,t)=>()=>{const n=new WeakMap,r=async(i,o)=>{let a=e(i);if(!yt(a,o)){const l={channelCount:a.channelCount,channelCountMode:a.channelCountMode,channelInterpretation:a.channelInterpretation,curve:a.curve,oversample:a.oversample};a=s(o,l)}return n.set(o,a),si(a)?await t(i,o,a.inputs[0]):await t(i,o,a),a};return{render(i,o){const a=n.get(o);return a!==void 0?Promise.resolve(a):r(i,o)}}},WO=()=>typeof window>"u"?null:window,qO=(s,e)=>t=>{t.copyFromChannel=(n,r,i=0)=>{const o=s(i),a=s(r);if(a>=t.numberOfChannels)throw e();const c=t.length,l=t.getChannelData(a),u=n.length;for(let h=o<0?-o:0;h+o{const o=s(i),a=s(r);if(a>=t.numberOfChannels)throw e();const c=t.length,l=t.getChannelData(a),u=n.length;for(let h=o<0?-o:0;h+oe=>{e.copyFromChannel=(t=>(n,r,i=0)=>{const o=s(i),a=s(r);if(o(n,r,i=0)=>{const o=s(i),a=s(r);if(o(e,t)=>{const n=t.createBuffer(1,1,44100);e.buffer===null&&(e.buffer=n),s(e,"buffer",r=>()=>{const i=r.call(e);return i===n?null:i},r=>i=>r.call(e,i===null?n:i))},GO=(s,e)=>(t,n)=>{n.channelCount=1,n.channelCountMode="explicit",Object.defineProperty(n,"channelCount",{get:()=>1,set:()=>{throw s()}}),Object.defineProperty(n,"channelCountMode",{get:()=>"explicit",set:()=>{throw s()}});const r=t.createBufferSource();e(n,()=>{const a=n.numberOfInputs;for(let c=0;cr.disconnect(n))},xm=(s,e,t)=>s.copyFromChannel===void 0?s.getChannelData(t)[0]:(s.copyFromChannel(e,t),e[0]),wm=s=>{if(s===null)return!1;const e=s.length;return e%2!==0?s[Math.floor(e/2)]!==0:s[e/2-1]+s[e/2]!==0},Ro=(s,e,t,n)=>{let r=s;for(;!r.hasOwnProperty(e);)r=Object.getPrototypeOf(r);const{get:i,set:o}=Object.getOwnPropertyDescriptor(r,e);Object.defineProperty(s,e,{get:t(i),set:n(o)})},XO=s=>({...s,outputChannelCount:s.outputChannelCount!==void 0?s.outputChannelCount:s.numberOfInputs===1&&s.numberOfOutputs===1?[s.channelCount]:Array.from({length:s.numberOfOutputs},()=>1)}),ZO=s=>({...s,channelCount:s.numberOfOutputs}),KO=s=>{const{imag:e,real:t}=s;return e===void 0?t===void 0?{...s,imag:[0,0],real:[0,0]}:{...s,imag:Array.from(t,()=>0),real:t}:t===void 0?{...s,imag:e,real:Array.from(e,()=>0)}:{...s,imag:e,real:t}},km=(s,e,t)=>{try{s.setValueAtTime(e,t)}catch(n){if(n.code!==9)throw n;km(s,e,t+1e-7)}},QO=s=>{const e=s.createBufferSource();e.start();try{e.start()}catch{return!0}return!1},JO=s=>{const e=s.createBufferSource(),t=s.createBuffer(1,1,44100);e.buffer=t;try{e.start(0,1)}catch{return!1}return!0},e2=s=>{const e=s.createBufferSource();e.start();try{e.stop()}catch{return!1}return!0},Bu=s=>{const e=s.createOscillator();try{e.start(-1)}catch(t){return t instanceof RangeError}return!1},Tm=s=>{const e=s.createBuffer(1,1,44100),t=s.createBufferSource();t.buffer=e,t.start(),t.stop();try{return t.stop(),!0}catch{return!1}},Wu=s=>{const e=s.createOscillator();try{e.stop(-1)}catch(t){return t instanceof RangeError}return!1},t2=s=>{const{port1:e,port2:t}=new MessageChannel;try{e.postMessage(s)}finally{e.close(),t.close()}},n2=s=>{s.start=(e=>(t=0,n=0,r)=>{const i=s.buffer,o=i===null?n:Math.min(i.duration,n);i!==null&&o>i.duration-.5/s.context.sampleRate?e.call(s,t,0,0):e.call(s,t,o,r)})(s.start)},Em=(s,e)=>{const t=e.createGain();s.connect(t);const n=(r=>()=>{r.call(s,t),s.removeEventListener("ended",n)})(s.disconnect);s.addEventListener("ended",n),ri(s,t),s.stop=(r=>{let i=!1;return(o=0)=>{if(i)try{r.call(s,o)}catch{t.gain.setValueAtTime(0,o)}else r.call(s,o),i=!0}})(s.stop)},ii=(s,e)=>t=>{const n={value:s};return Object.defineProperties(t,{currentTarget:n,target:n}),typeof e=="function"?e.call(s,t):e.handleEvent.call(s,t)},s2=kE(or),r2=AE(or),i2=zC(fc),Cm=new WeakMap,o2=iS(Cm),pn=_C(new Map,new WeakMap),Cn=WO(),Sm=IS(pn,Dn),qu=rS(kt),dt=OO(kt,qu,Qs),a2=NE(Sm,Ve,dt),Le=cS(dc),ts=cO(Cn),De=ES(ts),Om=new WeakMap,Am=KC(ii),Po=jS(Cn),Hu=xS(Po),Yu=wS(Cn),Dm=kS(Cn),qi=zS(Cn),st=iC(TE(sm),OE(s2,r2,Pa,i2,Ma,kt,o2,Eo,Ve,or,Wn,Qs,ca),pn,gS(jl,Ma,kt,Ve,Bi,Wn),Dn,pc,Tt,FC(Pa,jl,kt,Ve,Bi,Le,Wn,De),WC(Om,kt,un),Am,Le,Hu,Yu,Dm,De,qi),c2=ME(st,a2,Dn,Sm,Le,De),Gu=new WeakSet,Ef=$S(Cn),Rm=DC(new Uint32Array(1)),Xu=qO(Rm,Dn),Zu=HO(Rm),Pm=$E(Gu,pn,Tt,Ef,ts,FO(Ef),Xu,Zu),mc=DE(Mt),Mm=AO(qu,So,Qs),Rn=TC(Mm),oi=LS(mc,pn,QO,JO,e2,Bu,Tm,Wu,n2,YO(Ro),Em),Pn=SO(oS(So),Mm),l2=jE(Rn,oi,Ve,Pn,dt),mn=oC(EE(rm),Om,Fu,aC,_E,yE,vE,bE,xE,$l,tm,Po,km),u2=LE(st,l2,mn,lt,oi,Le,De,ii),h2=GE(st,XE,Dn,lt,VS(Mt,Ro),Le,De,dt),d2=gC(Rn,ym,Ve,Pn,dt),ar=PO(Cm),f2=mC(st,mn,d2,pc,ym,Le,De,ar),Ds=MS(or,Yu),p2=GO(lt,Ds),Rs=GS(Po,p2),m2=bC(Rs,Ve,dt),g2=vC(st,m2,Rs,Le,De),_2=kC(Ao,Ve,dt),y2=wC(st,_2,Ao,Le,De,ZO),v2=KS(mc,oi,Mt,Ds),ai=ZS(mc,pn,v2,Bu,Wu),b2=AC(Rn,ai,Ve,Pn,dt),x2=OC(st,mn,b2,ai,Le,De,ii),Nm=QS(Tt,Ro),w2=MC(Nm,Ve,dt),k2=PC(st,w2,Nm,Le,De,ar),T2=VC(Rn,vm,Ve,Pn,dt),E2=jC(st,mn,T2,vm,Le,De,ar),Im=JS(Tt),C2=GC(Rn,Im,Ve,Pn,dt),S2=YC(st,mn,C2,Im,Tt,Le,De,ar),O2=nS(Rn,Mt,Ve,Pn,dt),A2=tS(st,mn,O2,Mt,Le,De),D2=sO(pc,lt,Do,Tt),gc=DO(pn,Mt,Do,jO(Mt,ts)),R2=mS(oi,Ve,ts,dt,gc),P2=eO(D2),M2=fS(st,P2,R2,Le,De,ar),N2=ZE(mn,Rs,ai,Do,Tt,xm,De,Ro),$m=new WeakMap,I2=PS(h2,N2,Am,De,$m,ii),Fm=lO(mc,pn,Bu,Tm,Wu,Em),$2=xO(Rn,Fm,Ve,Pn,dt),F2=bO(st,mn,Fm,$2,Le,De,ii),Lm=CC(oi),L2=gO(Lm,lt,Mt,wm,Ds),_c=mO(Lm,lt,L2,wm,Ds,Po,Ro),j2=hO(Pa,lt,Rs,Mt,Do,_c,Tt,Ma,xm,Ds),jm=uO(j2),V2=TO(Rn,Rs,ai,Mt,jm,Ve,ts,Pn,dt,gc),z2=kO(st,mn,jm,V2,Le,De,ar),U2=dO(Dn),B2=CO(U2,Le,new WeakSet,KO),W2=pO(Rs,Ao,Mt,_c,Tt,Ds),Vm=fO(W2,Tt),q2=$O(Rn,Vm,Ve,Pn,dt),H2=IO(st,mn,Vm,q2,Le,De),Y2=BO(_c,Ve,dt),G2=UO(st,lt,_c,Y2,Le,De,ar),zm=CS(Cn),Ku=QC(Cn),Um=new WeakMap,X2=lS(Um,ts),Z2=zm?SE(pn,Tt,ZC(Cn),Ku,JC(wE),Le,X2,De,qi,new WeakMap,new WeakMap,LO(qi,ts),Cn):void 0,K2=TS(Hu,De),Q2=$C(Gu,pn,IC,XC,new WeakSet,Le,K2,Da,Wi,Xu,Zu),Bm=fC(Z2,c2,Pm,u2,f2,g2,y2,x2,k2,Q2,E2,S2,A2,M2,I2,F2,z2,B2,H2,G2),J2=SS(st,rO,Le,De),eA=AS(st,iO,Le,De),tA=DS(st,oO,Le,De),nA=aO(lt,De),sA=RS(st,nA,Le),rA=YE(Bm,lt,Tt,VO,J2,eA,tA,sA,Po),Qu=uS($m),iA=RE(Qu),Wm=EC(Dn),oA=UC(Qu),qm=qC(Dn),Hm=new WeakMap,aA=sS(Hm,un),cA=YS(Wm,Dn,lt,Rs,Ao,ai,Mt,Do,Tt,qm,Ku,aA,Ds),lA=BS(lt,cA,Mt,Tt,Ds),uA=dC(Rn,Wm,oi,Rs,Ao,ai,Mt,oA,qm,Ku,Ve,qi,ts,Pn,dt,gc),hA=aS(Um),dA=RO(Hm),Cf=zm?lC(iA,st,mn,uA,lA,kt,hA,Le,De,qi,XO,dA,t2,ii):void 0,fA=NC(Tt,ts),pA=MO(Gu,pn,qu,Qu,gc,Da,Xu,Zu),mA=yO(Bm,pn,lt,fA,pA),gA=_S(dc,Hu),_A=yS($u,Yu),yA=vS(Fu,Dm),vA=bS(dc,De);function zt(s){return typeof s>"u"}function ve(s){return!zt(s)}function bA(s){return typeof s=="function"}function xs(s){return typeof s=="number"}function Ws(s){return Object.prototype.toString.call(s)==="[object Object]"&&s.constructor===Object}function xA(s){return typeof s=="boolean"}function cn(s){return Array.isArray(s)}function Gn(s){return typeof s=="string"}function ea(s){return Gn(s)&&/^([a-g]{1}(?:b|#|x|bb)?)(-?[0-9]+)/i.test(s)}function pe(s,e){if(!s)throw new Error(e)}function hn(s,e,t=1/0){if(!(e<=s&&s<=t))throw new RangeError(`Value must be within [${e}, ${t}], got: ${s}`)}function Ym(s){!s.isOffline&&s.state!=="running"&&Ju('The AudioContext is "suspended". Invoke Tone.start() from a user action to start the audio.')}let Gm=!1,Sf=!1;function Of(s){Gm=s}function wA(s){zt(s)&&Gm&&!Sf&&(Sf=!0,Ju("Events scheduled inside of scheduled callbacks should use the passed in scheduling time. See https://github.com/Tonejs/Tone.js/wiki/Accurate-Timing"))}let Xm=console;function kA(...s){Xm.log(...s)}function Ju(...s){Xm.warn(...s)}function TA(s){return new rA(s)}function EA(s,e,t){return new mA(s,e,t)}const qs=typeof self=="object"?self:null,CA=qs&&(qs.hasOwnProperty("AudioContext")||qs.hasOwnProperty("webkitAudioContext"));function SA(s,e,t){return pe(ve(Cf),"This node only works in a secure context (https or localhost)"),new Cf(s,e,t)}class OA{constructor(e,t,n,r){this._callback=e,this._type=t,this._minimumUpdateInterval=Math.max(128/(r||44100),.001),this.updateInterval=n,this._createClock()}_createWorker(){const e=new Blob([` + // the initial timeout time + let timeoutTime = ${(this._updateInterval*1e3).toFixed(1)}; + // onmessage callback + self.onmessage = function(msg){ + timeoutTime = parseInt(msg.data); + }; + // the tick function which posts a message + // and schedules a new tick + function tick(){ + setTimeout(tick, timeoutTime); + self.postMessage('tick'); + } + // call tick initially + tick(); + `],{type:"text/javascript"}),t=URL.createObjectURL(e),n=new Worker(t);n.onmessage=this._callback.bind(this),this._worker=n}_createTimeout(){this._timeout=setTimeout(()=>{this._createTimeout(),this._callback()},this._updateInterval*1e3)}_createClock(){if(this._type==="worker")try{this._createWorker()}catch{this._type="timeout",this._createClock()}else this._type==="timeout"&&this._createTimeout()}_disposeClock(){this._timeout&&clearTimeout(this._timeout),this._worker&&(this._worker.terminate(),this._worker.onmessage=null)}get updateInterval(){return this._updateInterval}set updateInterval(e){var t;this._updateInterval=Math.max(e,this._minimumUpdateInterval),this._type==="worker"&&((t=this._worker)===null||t===void 0||t.postMessage(this._updateInterval*1e3))}get type(){return this._type}set type(e){this._disposeClock(),this._type=e,this._createClock()}dispose(){this._disposeClock()}}function Js(s){return yA(s)}function ps(s){return _A(s)}function la(s){return vA(s)}function wr(s){return gA(s)}function AA(s){return s instanceof Pm}function DA(s,e){return s==="value"||Js(e)||ps(e)||AA(e)}function Dr(s,...e){if(!e.length)return s;const t=e.shift();if(Ws(s)&&Ws(t))for(const n in t)DA(n,t[n])?s[n]=t[n]:Ws(t[n])?(s[n]||Object.assign(s,{[n]:{}}),Dr(s[n],t[n])):Object.assign(s,{[n]:t[n]});return Dr(s,...e)}function RA(s,e){return s.length===e.length&&s.every((t,n)=>e[n]===t)}function Z(s,e,t=[],n){const r={},i=Array.from(e);if(Ws(i[0])&&n&&!Reflect.has(i[0],n)&&(Object.keys(i[0]).some(a=>Reflect.has(s,a))||(Dr(r,{[n]:i[0]}),t.splice(t.indexOf(n),1),i.shift())),i.length===1&&Ws(i[0]))Dr(r,i[0]);else for(let o=0;o{Reflect.has(s,t)&&delete s[t]}),s}/** + * Tone.js + * @author Yotam Mann + * @license http://opensource.org/licenses/MIT MIT License + * @copyright 2014-2019 Yotam Mann + */class ns{constructor(){this.debug=!1,this._wasDisposed=!1}static getDefaults(){return{}}log(...e){(this.debug||qs&&this.toString()===qs.TONE_DEBUG_CLASS)&&kA(this,...e)}dispose(){return this._wasDisposed=!0,this}get disposed(){return this._wasDisposed}toString(){return this.name}}ns.version=em;const eh=1e-6;function zr(s,e){return s>e+eh}function Wl(s,e){return zr(s,e)||sn(s,e)}function Fa(s,e){return s+ehthis.memory){const t=this.length-this.memory;this._timeline.splice(0,t)}return this}remove(e){const t=this._timeline.indexOf(e);return t!==-1&&this._timeline.splice(t,1),this}get(e,t="time"){const n=this._search(e,t);return n!==-1?this._timeline[n]:null}peek(){return this._timeline[0]}shift(){return this._timeline.shift()}getAfter(e,t="time"){const n=this._search(e,t);return n+10&&this._timeline[t-1].time=0?this._timeline[n-1]:null}cancel(e){if(this._timeline.length>1){let t=this._search(e);if(t>=0)if(sn(this._timeline[t].time,e)){for(let n=t;n>=0&&sn(this._timeline[n].time,e);n--)t=n;this._timeline=this._timeline.slice(0,t)}else this._timeline=this._timeline.slice(0,t+1);else this._timeline=[]}else this._timeline.length===1&&Wl(this._timeline[0].time,e)&&(this._timeline=[]);return this}cancelBefore(e){const t=this._search(e);return t>=0&&(this._timeline=this._timeline.slice(t+1)),this}previousEvent(e){const t=this._timeline.indexOf(e);return t>0?this._timeline[t-1]:null}_search(e,t="time"){if(this._timeline.length===0)return-1;let n=0;const r=this._timeline.length;let i=r;if(r>0&&this._timeline[r-1][t]<=e)return r-1;for(;n=0&&this._timeline[n].time>=e;)n--;return this._iterate(t,n+1),this}forEachAtTime(e,t){const n=this._search(e);if(n!==-1&&sn(this._timeline[n].time,e)){let r=n;for(let i=n;i>=0&&sn(this._timeline[i].time,e);i--)r=i;this._iterate(i=>{t(i)},r,n)}return this}dispose(){return super.dispose(),this._timeline=[],this}};const Km=[];function yc(s){Km.push(s)}function NA(s){Km.forEach(e=>e(s))}const Qm=[];function vc(s){Qm.push(s)}function IA(s){Qm.forEach(e=>e(s))}class Mo extends ns{constructor(){super(...arguments),this.name="Emitter"}on(e,t){return e.split(/\W+/).forEach(r=>{zt(this._events)&&(this._events={}),this._events.hasOwnProperty(r)||(this._events[r]=[]),this._events[r].push(t)}),this}once(e,t){const n=(...r)=>{t(...r),this.off(e,n)};return this.on(e,n),this}off(e,t){return e.split(/\W+/).forEach(r=>{if(zt(this._events)&&(this._events={}),this._events.hasOwnProperty(r))if(zt(t))this._events[r]=[];else{const i=this._events[r];for(let o=i.length-1;o>=0;o--)i[o]===t&&i.splice(o,1)}}),this}emit(e,...t){if(this._events&&this._events.hasOwnProperty(e)){const n=this._events[e].slice(0);for(let r=0,i=n.length;r{const n=Object.getOwnPropertyDescriptor(Mo.prototype,t);Object.defineProperty(e.prototype,t,n)})}dispose(){return super.dispose(),this._events=void 0,this}}class Jm extends Mo{constructor(){super(...arguments),this.isOffline=!1}toJSON(){return{}}}let th=class eg extends Jm{constructor(){var e,t;super(),this.name="Context",this._constants=new Map,this._timeouts=new wn,this._timeoutIds=0,this._initialized=!1,this._closeStarted=!1,this.isOffline=!1,this._workletPromise=null;const n=Z(eg.getDefaults(),arguments,["context"]);n.context?(this._context=n.context,this._latencyHint=((e=arguments[0])===null||e===void 0?void 0:e.latencyHint)||""):(this._context=TA({latencyHint:n.latencyHint}),this._latencyHint=n.latencyHint),this._ticker=new OA(this.emit.bind(this,"tick"),n.clockSource,n.updateInterval,this._context.sampleRate),this.on("tick",this._timeoutLoop.bind(this)),this._context.onstatechange=()=>{this.emit("statechange",this.state)},this[!((t=arguments[0])===null||t===void 0)&&t.hasOwnProperty("updateInterval")?"_lookAhead":"lookAhead"]=n.lookAhead}static getDefaults(){return{clockSource:"worker",latencyHint:"interactive",lookAhead:.1,updateInterval:.05}}initialize(){return this._initialized||(NA(this),this._initialized=!0),this}createAnalyser(){return this._context.createAnalyser()}createOscillator(){return this._context.createOscillator()}createBufferSource(){return this._context.createBufferSource()}createBiquadFilter(){return this._context.createBiquadFilter()}createBuffer(e,t,n){return this._context.createBuffer(e,t,n)}createChannelMerger(e){return this._context.createChannelMerger(e)}createChannelSplitter(e){return this._context.createChannelSplitter(e)}createConstantSource(){return this._context.createConstantSource()}createConvolver(){return this._context.createConvolver()}createDelay(e){return this._context.createDelay(e)}createDynamicsCompressor(){return this._context.createDynamicsCompressor()}createGain(){return this._context.createGain()}createIIRFilter(e,t){return this._context.createIIRFilter(e,t)}createPanner(){return this._context.createPanner()}createPeriodicWave(e,t,n){return this._context.createPeriodicWave(e,t,n)}createStereoPanner(){return this._context.createStereoPanner()}createWaveShaper(){return this._context.createWaveShaper()}createMediaStreamSource(e){return pe(wr(this._context),"Not available if OfflineAudioContext"),this._context.createMediaStreamSource(e)}createMediaElementSource(e){return pe(wr(this._context),"Not available if OfflineAudioContext"),this._context.createMediaElementSource(e)}createMediaStreamDestination(){return pe(wr(this._context),"Not available if OfflineAudioContext"),this._context.createMediaStreamDestination()}decodeAudioData(e){return this._context.decodeAudioData(e)}get currentTime(){return this._context.currentTime}get state(){return this._context.state}get sampleRate(){return this._context.sampleRate}get listener(){return this.initialize(),this._listener}set listener(e){pe(!this._initialized,"The listener cannot be set after initialization."),this._listener=e}get transport(){return this.initialize(),this._transport}set transport(e){pe(!this._initialized,"The transport cannot be set after initialization."),this._transport=e}get draw(){return this.initialize(),this._draw}set draw(e){pe(!this._initialized,"Draw cannot be set after initialization."),this._draw=e}get destination(){return this.initialize(),this._destination}set destination(e){pe(!this._initialized,"The destination cannot be set after initialization."),this._destination=e}createAudioWorkletNode(e,t){return SA(this.rawContext,e,t)}addAudioWorkletModule(e){return Ne(this,void 0,void 0,function*(){pe(ve(this.rawContext.audioWorklet),"AudioWorkletNode is only available in a secure context (https or localhost)"),this._workletPromise||(this._workletPromise=this.rawContext.audioWorklet.addModule(e)),yield this._workletPromise})}workletsAreReady(){return Ne(this,void 0,void 0,function*(){(yield this._workletPromise)?this._workletPromise:Promise.resolve()})}get updateInterval(){return this._ticker.updateInterval}set updateInterval(e){this._ticker.updateInterval=e}get clockSource(){return this._ticker.type}set clockSource(e){this._ticker.type=e}get lookAhead(){return this._lookAhead}set lookAhead(e){this._lookAhead=e,this.updateInterval=e?e/2:.01}get latencyHint(){return this._latencyHint}get rawContext(){return this._context}now(){return this._context.currentTime+this._lookAhead}immediate(){return this._context.currentTime}resume(){return wr(this._context)?this._context.resume():Promise.resolve()}close(){return Ne(this,void 0,void 0,function*(){wr(this._context)&&this.state!=="closed"&&!this._closeStarted&&(this._closeStarted=!0,yield this._context.close()),this._initialized&&IA(this)})}getConstant(e){if(this._constants.has(e))return this._constants.get(e);{const t=this._context.createBuffer(1,128,this._context.sampleRate),n=t.getChannelData(0);for(let i=0;ithis._constants[e].disconnect()),this.close(),this}_timeoutLoop(){const e=this.now();let t=this._timeouts.peek();for(;this._timeouts.length&&t&&t.time<=e;)t.callback(),this._timeouts.shift(),t=this._timeouts.peek()}setTimeout(e,t){this._timeoutIds++;const n=this.now();return this._timeouts.add({callback:e,id:this._timeoutIds,time:n+t}),this._timeoutIds}clearTimeout(e){return this._timeouts.forEach(t=>{t.id===e&&this._timeouts.remove(t)}),this}clearInterval(e){return this.clearTimeout(e)}setInterval(e,t){const n=++this._timeoutIds,r=()=>{const i=this.now();this._timeouts.add({callback:()=>{e(),r()},id:n,time:i+t})};return r(),n}};class $A extends Jm{constructor(){super(...arguments),this.lookAhead=0,this.latencyHint=0,this.isOffline=!1}createAnalyser(){return{}}createOscillator(){return{}}createBufferSource(){return{}}createBiquadFilter(){return{}}createBuffer(e,t,n){return{}}createChannelMerger(e){return{}}createChannelSplitter(e){return{}}createConstantSource(){return{}}createConvolver(){return{}}createDelay(e){return{}}createDynamicsCompressor(){return{}}createGain(){return{}}createIIRFilter(e,t){return{}}createPanner(){return{}}createPeriodicWave(e,t,n){return{}}createStereoPanner(){return{}}createWaveShaper(){return{}}createMediaStreamSource(e){return{}}createMediaElementSource(e){return{}}createMediaStreamDestination(){return{}}decodeAudioData(e){return Promise.resolve({})}createAudioWorkletNode(e,t){return{}}get rawContext(){return{}}addAudioWorkletModule(e){return Ne(this,void 0,void 0,function*(){return Promise.resolve()})}resume(){return Promise.resolve()}setTimeout(e,t){return 0}clearTimeout(e){return this}setInterval(e,t){return 0}clearInterval(e){return this}getConstant(e){return{}}get currentTime(){return 0}get state(){return{}}get sampleRate(){return 0}get listener(){return{}}get transport(){return{}}get draw(){return{}}set draw(e){}get destination(){return{}}set destination(e){}now(){return 0}immediate(){return 0}}function je(s,e){cn(e)?e.forEach(t=>je(s,t)):Object.defineProperty(s,e,{enumerable:!0,writable:!1})}function nh(s,e){cn(e)?e.forEach(t=>nh(s,t)):Object.defineProperty(s,e,{writable:!0})}const Ee=()=>{};class Ce extends ns{constructor(){super(),this.name="ToneAudioBuffer",this.onload=Ee;const e=Z(Ce.getDefaults(),arguments,["url","onload","onerror"]);this.reverse=e.reverse,this.onload=e.onload,Gn(e.url)?this.load(e.url).catch(e.onerror):e.url&&this.set(e.url)}static getDefaults(){return{onerror:Ee,onload:Ee,reverse:!1}}get sampleRate(){return this._buffer?this._buffer.sampleRate:rn().sampleRate}set(e){return e instanceof Ce?e.loaded?this._buffer=e.get():e.onload=()=>{this.set(e),this.onload(this)}:this._buffer=e,this._reversed&&this._reverse(),this}get(){return this._buffer}load(e){return Ne(this,void 0,void 0,function*(){const t=Ce.load(e).then(n=>{this.set(n),this.onload(this)});Ce.downloads.push(t);try{yield t}finally{const n=Ce.downloads.indexOf(t);Ce.downloads.splice(n,1)}return this})}dispose(){return super.dispose(),this._buffer=void 0,this}fromArray(e){const t=cn(e)&&e[0].length>0,n=t?e.length:1,r=t?e[0].length:e.length,i=rn(),o=i.createBuffer(n,r,i.sampleRate),a=!t&&n===1?[e]:e;for(let c=0;cr/n),this.fromArray(t)}return this}toArray(e){if(xs(e))return this.getChannelData(e);if(this.numberOfChannels===1)return this.toArray(0);{const t=[];for(let n=0;n0}get duration(){return this._buffer?this._buffer.duration:0}get length(){return this._buffer?this._buffer.length:0}get numberOfChannels(){return this._buffer?this._buffer.numberOfChannels:0}get reverse(){return this._reversed}set reverse(e){this._reversed!==e&&(this._reversed=e,this._reverse())}static fromArray(e){return new Ce().fromArray(e)}static fromUrl(e){return Ne(this,void 0,void 0,function*(){return yield new Ce().load(e)})}static load(e){return Ne(this,void 0,void 0,function*(){const t=e.match(/\[([^\]\[]+\|.+)\]$/);if(t){const c=t[1].split("|");let l=c[0];for(const u of c)if(Ce.supportsType(u)){l=u;break}e=e.replace(t[0],l)}const n=Ce.baseUrl===""||Ce.baseUrl.endsWith("/")?Ce.baseUrl:Ce.baseUrl+"/",r=document.createElement("a");r.href=n+e,r.pathname=(r.pathname+r.hash).split("/").map(encodeURIComponent).join("/");const i=yield fetch(r.href);if(!i.ok)throw new Error(`could not load url: ${e}`);const o=yield i.arrayBuffer();return yield rn().decodeAudioData(o)})}static supportsType(e){const t=e.split("."),n=t[t.length-1];return document.createElement("audio").canPlayType("audio/"+n)!==""}static loaded(){return Ne(this,void 0,void 0,function*(){for(yield Promise.resolve();Ce.downloads.length;)yield Ce.downloads[0]})}}Ce.baseUrl="";Ce.downloads=[];class bc extends th{constructor(){super({clockSource:"offline",context:la(arguments[0])?arguments[0]:EA(arguments[0],arguments[1]*arguments[2],arguments[2]),lookAhead:0,updateInterval:la(arguments[0])?128/arguments[0].sampleRate:128/arguments[2]}),this.name="OfflineContext",this._currentTime=0,this.isOffline=!0,this._duration=la(arguments[0])?arguments[0].length/arguments[0].sampleRate:arguments[1]}now(){return this._currentTime}get currentTime(){return this._currentTime}_renderClock(e){return Ne(this,void 0,void 0,function*(){let t=0;for(;this._duration-this._currentTime>=0;){this.emit("tick"),this._currentTime+=128/this.sampleRate,t++;const n=Math.floor(this.sampleRate/128);e&&t%n===0&&(yield new Promise(r=>setTimeout(r,1)))}})}render(e=!0){return Ne(this,void 0,void 0,function*(){yield this.workletsAreReady(),yield this._renderClock(e);const t=yield this._context.startRendering();return new Ce(t)})}close(){return Promise.resolve()}}const tg=new $A;let zs=tg;function rn(){return zs===tg&&CA&&FA(new th),zs}function FA(s,e=!1){e&&zs.dispose(),wr(s)?zs=new th(s):la(s)?zs=new bc(s):zs=s}function LA(){return zs.resume()}if(qs&&!qs.TONE_SILENCE_LOGGING){const e=` * Tone.js v${em} * `;console.log(`%c${e}`,"background: #000; color: #fff")}function jA(s){return Math.pow(10,s/20)}function VA(s){return 20*(Math.log(s)/Math.LN10)}function ng(s){return Math.pow(2,s/12)}let xc=440;function zA(){return xc}function UA(s){xc=s}function ql(s){return Math.round(sg(s))}function sg(s){return 69+12*Math.log2(s/xc)}function BA(s){return xc*Math.pow(2,(s-69)/12)}class sh extends ns{constructor(e,t,n){super(),this.defaultUnits="s",this._val=t,this._units=n,this.context=e,this._expressions=this._getExpressions()}_getExpressions(){return{hz:{method:e=>this._frequencyToUnits(parseFloat(e)),regexp:/^(\d+(?:\.\d+)?)hz$/i},i:{method:e=>this._ticksToUnits(parseInt(e,10)),regexp:/^(\d+)i$/i},m:{method:e=>this._beatsToUnits(parseInt(e,10)*this._getTimeSignature()),regexp:/^(\d+)m$/i},n:{method:(e,t)=>{const n=parseInt(e,10),r=t==="."?1.5:1;return n===1?this._beatsToUnits(this._getTimeSignature())*r:this._beatsToUnits(4/n)*r},regexp:/^(\d+)n(\.?)$/i},number:{method:e=>this._expressions[this.defaultUnits].method.call(this,e),regexp:/^(\d+(?:\.\d+)?)$/},s:{method:e=>this._secondsToUnits(parseFloat(e)),regexp:/^(\d+(?:\.\d+)?)s$/},samples:{method:e=>parseInt(e,10)/this.context.sampleRate,regexp:/^(\d+)samples$/},t:{method:e=>{const t=parseInt(e,10);return this._beatsToUnits(8/(Math.floor(t)*3))},regexp:/^(\d+)t$/i},tr:{method:(e,t,n)=>{let r=0;return e&&e!=="0"&&(r+=this._beatsToUnits(this._getTimeSignature()*parseFloat(e))),t&&t!=="0"&&(r+=this._beatsToUnits(parseFloat(t))),n&&n!=="0"&&(r+=this._beatsToUnits(parseFloat(n)/4)),r},regexp:/^(\d+(?:\.\d+)?):(\d+(?:\.\d+)?):?(\d+(?:\.\d+)?)?$/}}}valueOf(){if(this._val instanceof sh&&this.fromType(this._val),zt(this._val))return this._noArg();if(Gn(this._val)&&zt(this._units)){for(const e in this._expressions)if(this._expressions[e].regexp.test(this._val.trim())){this._units=e;break}}else if(Ws(this._val)){let e=0;for(const t in this._val)if(ve(this._val[t])){const n=this._val[t],r=new this.constructor(this.context,t).valueOf()*n;e+=r}return e}if(ve(this._units)){const e=this._expressions[this._units],t=this._val.toString().trim().match(e.regexp);return t?e.method.apply(this,t.slice(1)):e.method.call(this,this._val)}else return Gn(this._val)?parseFloat(this._val):this._val}_frequencyToUnits(e){return 1/e}_beatsToUnits(e){return 60/this._getBpm()*e}_secondsToUnits(e){return e}_ticksToUnits(e){return e*this._beatsToUnits(1)/this._getPPQ()}_noArg(){return this._now()}_getBpm(){return this.context.transport.bpm.value}_getTimeSignature(){return this.context.transport.timeSignature}_getPPQ(){return this.context.transport.PPQ}fromType(e){switch(this._units=void 0,this.defaultUnits){case"s":this._val=e.toSeconds();break;case"i":this._val=e.toTicks();break;case"hz":this._val=e.toFrequency();break;case"midi":this._val=e.toMidi();break}return this}toFrequency(){return 1/this.toSeconds()}toSamples(){return this.toSeconds()*this.context.sampleRate}toMilliseconds(){return this.toSeconds()*1e3}}class on extends sh{constructor(){super(...arguments),this.name="TimeClass"}_getExpressions(){return Object.assign(super._getExpressions(),{now:{method:e=>this._now()+new this.constructor(this.context,e).valueOf(),regexp:/^\+(.+)/},quantize:{method:e=>{const t=new on(this.context,e).valueOf();return this._secondsToUnits(this.context.transport.nextSubdivision(t))},regexp:/^@(.+)/}})}quantize(e,t=1){const n=new this.constructor(this.context,e).valueOf(),r=this.valueOf(),a=Math.round(r/n)*n-r;return r+a*t}toNotation(){const e=this.toSeconds(),t=["1m"];for(let i=1;i<9;i++){const o=Math.pow(2,i);t.push(o+"n."),t.push(o+"n"),t.push(o+"t")}t.push("0");let n=t[0],r=new on(this.context,t[0]).toSeconds();return t.forEach(i=>{const o=new on(this.context,i).toSeconds();Math.abs(o-e)3&&(r=parseFloat(parseFloat(i).toFixed(3))),[n,t,r].join(":")}toTicks(){const e=this._beatsToUnits(1);return this.valueOf()/e*this._getPPQ()}toSeconds(){return this.valueOf()}toMidi(){return ql(this.toFrequency())}_now(){return this.context.now()}}class Gt extends on{constructor(){super(...arguments),this.name="Frequency",this.defaultUnits="hz"}static get A4(){return zA()}static set A4(e){UA(e)}_getExpressions(){return Object.assign({},super._getExpressions(),{midi:{regexp:/^(\d+(?:\.\d+)?midi)/,method(e){return this.defaultUnits==="midi"?e:Gt.mtof(e)}},note:{regexp:/^([a-g]{1}(?:b|#|##|x|bb|###|#x|x#|bbb)?)(-?[0-9]+)/i,method(e,t){const r=WA[e.toLowerCase()]+(parseInt(t,10)+1)*12;return this.defaultUnits==="midi"?r:Gt.mtof(r)}},tr:{regexp:/^(\d+(?:\.\d+)?):(\d+(?:\.\d+)?):?(\d+(?:\.\d+)?)?/,method(e,t,n){let r=1;return e&&e!=="0"&&(r*=this._beatsToUnits(this._getTimeSignature()*parseFloat(e))),t&&t!=="0"&&(r*=this._beatsToUnits(parseFloat(t))),n&&n!=="0"&&(r*=this._beatsToUnits(parseFloat(n)/4)),r}}})}transpose(e){return new Gt(this.context,this.valueOf()*ng(e))}harmonize(e){return e.map(t=>this.transpose(t))}toMidi(){return ql(this.valueOf())}toNote(){const e=this.toFrequency(),t=Math.log2(e/Gt.A4);let n=Math.round(12*t)+57;const r=Math.floor(n/12);return r<0&&(n+=-12*r),qA[n%12]+r.toString()}toSeconds(){return 1/super.toSeconds()}toTicks(){const e=this._beatsToUnits(1),t=this.valueOf()/e;return Math.floor(t*this._getPPQ())}_noArg(){return 0}_frequencyToUnits(e){return e}_ticksToUnits(e){return 1/(e*60/(this._getBpm()*this._getPPQ()))}_beatsToUnits(e){return 1/super._beatsToUnits(e)}_secondsToUnits(e){return 1/e}static mtof(e){return BA(e)}static ftom(e){return ql(e)}}const WA={cbbb:-3,cbb:-2,cb:-1,c:0,"c#":1,cx:2,"c##":2,"c###":3,"cx#":3,"c#x":3,dbbb:-1,dbb:0,db:1,d:2,"d#":3,dx:4,"d##":4,"d###":5,"dx#":5,"d#x":5,ebbb:1,ebb:2,eb:3,e:4,"e#":5,ex:6,"e##":6,"e###":7,"ex#":7,"e#x":7,fbbb:2,fbb:3,fb:4,f:5,"f#":6,fx:7,"f##":7,"f###":8,"fx#":8,"f#x":8,gbbb:4,gbb:5,gb:6,g:7,"g#":8,gx:9,"g##":9,"g###":10,"gx#":10,"g#x":10,abbb:6,abb:7,ab:8,a:9,"a#":10,ax:11,"a##":11,"a###":12,"ax#":12,"a#x":12,bbbb:8,bbb:9,bb:10,b:11,"b#":12,bx:13,"b##":13,"b###":14,"bx#":14,"b#x":14},qA=["C","C#","D","D#","E","F","F#","G","G#","A","A#","B"];class Ni extends on{constructor(){super(...arguments),this.name="TransportTime"}_now(){return this.context.transport.seconds}}class Ot extends ns{constructor(){super();const e=Z(Ot.getDefaults(),arguments,["context"]);this.defaultContext?this.context=this.defaultContext:this.context=e.context}static getDefaults(){return{context:rn()}}now(){return this.context.currentTime+this.context.lookAhead}immediate(){return this.context.currentTime}get sampleTime(){return 1/this.context.sampleRate}get blockTime(){return 128/this.context.sampleRate}toSeconds(e){return wA(e),new on(this.context,e).toSeconds()}toFrequency(e){return new Gt(this.context,e).toFrequency()}toTicks(e){return new Ni(this.context,e).toTicks()}_getPartialProperties(e){const t=this.get();return Object.keys(t).forEach(n=>{zt(e[n])&&delete t[n]}),t}get(){const e=PA(this);return Object.keys(e).forEach(t=>{if(Reflect.has(this,t)){const n=this[t];ve(n)&&ve(n.value)&&ve(n.setValueAtTime)?e[t]=n.value:n instanceof Ot?e[t]=n._getPartialProperties(e[t]):cn(n)||xs(n)||Gn(n)||xA(n)?e[t]=n:delete e[t]}}),e}set(e){return Object.keys(e).forEach(t=>{Reflect.has(this,t)&&ve(this[t])&&(this[t]&&ve(this[t].value)&&ve(this[t].setValueAtTime)?this[t].value!==e[t]&&(this[t].value=e[t]):this[t]instanceof Ot?this[t].set(e[t]):this[t]=e[t])}),this}}class rh extends wn{constructor(e="stopped"){super(),this.name="StateTimeline",this._initial=e,this.setStateAtTime(this._initial,0)}getValueAtTime(e){const t=this.get(e);return t!==null?t.state:this._initial}setStateAtTime(e,t,n){return hn(t,0),this.add(Object.assign({},n,{state:e,time:t})),this}getLastState(e,t){const n=this._search(t);for(let r=n;r>=0;r--){const i=this._timeline[r];if(i.state===e)return i}}getNextState(e,t){const n=this._search(t);if(n!==-1)for(let r=n;r0,"timeConstant must be a number greater than 0");const i=this.toSeconds(t);return this._assertRange(r),pe(isFinite(r)&&isFinite(i),`Invalid argument(s) to setTargetAtTime: ${JSON.stringify(e)}, ${JSON.stringify(t)}`),this._events.add({constant:n,time:i,type:"setTargetAtTime",value:r}),this.log(this.units,"setTargetAtTime",e,i,n),this._param.setTargetAtTime(r,i,n),this}setValueCurveAtTime(e,t,n,r=1){n=this.toSeconds(n),t=this.toSeconds(t);const i=this._fromType(e[0])*r;this.setValueAtTime(this._toType(i),t);const o=n/(e.length-1);for(let a=1;a{r.type==="cancelScheduledValues"?e.cancelScheduledValues(r.time):r.type==="setTargetAtTime"?e.setTargetAtTime(r.value,r.time,r.constant):e[r.type](r.value,r.time)}),this}setParam(e){pe(this._swappable,"The Param must be assigned as 'swappable' in the constructor");const t=this.input;return t.disconnect(this._param),this.apply(e),this._param=e,t.connect(this._param),this}dispose(){return super.dispose(),this._events.dispose(),this}get defaultValue(){return this._toType(this._param.defaultValue)}_exponentialApproach(e,t,n,r,i){return n+(t-n)*Math.exp(-(i-e)/r)}_linearInterpolate(e,t,n,r,i){return t+(r-t)*((i-e)/(n-e))}_exponentialInterpolate(e,t,n,r,i){return t*Math.pow(r/t,(i-e)/(n-e))}}class le extends Ot{constructor(){super(...arguments),this._internalChannels=[]}get numberOfInputs(){return ve(this.input)?Js(this.input)||this.input instanceof Se?1:this.input.numberOfInputs:0}get numberOfOutputs(){return ve(this.output)?this.output.numberOfOutputs:0}_isAudioNode(e){return ve(e)&&(e instanceof le||ps(e))}_getInternalNodes(){const e=this._internalChannels.slice(0);return this._isAudioNode(this.input)&&e.push(this.input),this._isAudioNode(this.output)&&this.input!==this.output&&e.push(this.output),e}_setChannelProperties(e){this._getInternalNodes().forEach(n=>{n.channelCount=e.channelCount,n.channelCountMode=e.channelCountMode,n.channelInterpretation=e.channelInterpretation})}_getChannelProperties(){const e=this._getInternalNodes();pe(e.length>0,"ToneAudioNode does not have any internal nodes");const t=e[0];return{channelCount:t.channelCount,channelCountMode:t.channelCountMode,channelInterpretation:t.channelInterpretation}}get channelCount(){return this._getChannelProperties().channelCount}set channelCount(e){const t=this._getChannelProperties();this._setChannelProperties(Object.assign(t,{channelCount:e}))}get channelCountMode(){return this._getChannelProperties().channelCountMode}set channelCountMode(e){const t=this._getChannelProperties();this._setChannelProperties(Object.assign(t,{channelCountMode:e}))}get channelInterpretation(){return this._getChannelProperties().channelInterpretation}set channelInterpretation(e){const t=this._getChannelProperties();this._setChannelProperties(Object.assign(t,{channelInterpretation:e}))}connect(e,t=0,n=0){return ws(this,e,t,n),this}toDestination(){return this.connect(this.context.destination),this}toMaster(){return Ju("toMaster() has been renamed toDestination()"),this.toDestination()}disconnect(e,t=0,n=0){return HA(this,e,t,n),this}chain(...e){return Hi(this,...e),this}fan(...e){return e.forEach(t=>this.connect(t)),this}dispose(){return super.dispose(),ve(this.input)&&(this.input instanceof le?this.input.dispose():ps(this.input)&&this.input.disconnect()),ve(this.output)&&(this.output instanceof le?this.output.dispose():ps(this.output)&&this.output.disconnect()),this._internalChannels=[],this}}function Hi(...s){const e=s.shift();s.reduce((t,n)=>(t instanceof le?t.connect(n):ps(t)&&ws(t,n),n),e)}function ws(s,e,t=0,n=0){for(pe(ve(s),"Cannot connect from undefined node"),pe(ve(e),"Cannot connect to undefined node"),(e instanceof le||ps(e))&&pe(e.numberOfInputs>0,"Cannot connect to node with no inputs"),pe(s.numberOfOutputs>0,"Cannot connect from node with no outputs");e instanceof le||e instanceof Se;)ve(e.input)&&(e=e.input);for(;s instanceof le;)ve(s.output)&&(s=s.output);Js(e)?s.connect(e,t):s.connect(e,t,n)}function HA(s,e,t=0,n=0){if(ve(e))for(;e instanceof le;)e=e.input;for(;!ps(s);)ve(s.output)&&(s=s.output);Js(e)?s.disconnect(e,t):ps(e)?s.disconnect(e,t,n):s.disconnect()}class Ie extends le{constructor(){super(Z(Ie.getDefaults(),arguments,["gain","units"])),this.name="Gain",this._gainNode=this.context.createGain(),this.input=this._gainNode,this.output=this._gainNode;const e=Z(Ie.getDefaults(),arguments,["gain","units"]);this.gain=new Se({context:this.context,convert:e.convert,param:this._gainNode.gain,units:e.units,value:e.gain,minValue:e.minValue,maxValue:e.maxValue}),je(this,"gain")}static getDefaults(){return Object.assign(le.getDefaults(),{convert:!0,gain:1,units:"gain"})}dispose(){return super.dispose(),this._gainNode.disconnect(),this.gain.dispose(),this}}class Ur extends le{constructor(e){super(e),this.onended=Ee,this._startTime=-1,this._stopTime=-1,this._timeout=-1,this.output=new Ie({context:this.context,gain:0}),this._gainNode=this.output,this.getStateAtTime=function(t){const n=this.toSeconds(t);return this._startTime!==-1&&n>=this._startTime&&(this._stopTime===-1||n<=this._stopTime)?"started":"stopped"},this._fadeIn=e.fadeIn,this._fadeOut=e.fadeOut,this._curve=e.curve,this.onended=e.onended}static getDefaults(){return Object.assign(le.getDefaults(),{curve:"linear",fadeIn:0,fadeOut:0,onended:Ee})}_startGain(e,t=1){pe(this._startTime===-1,"Source cannot be started more than once");const n=this.toSeconds(this._fadeIn);return this._startTime=e+n,this._startTime=Math.max(this._startTime,this.context.currentTime),n>0?(this._gainNode.gain.setValueAtTime(0,e),this._curve==="linear"?this._gainNode.gain.linearRampToValueAtTime(t,e+n):this._gainNode.gain.exponentialApproachValueAtTime(t,e,n)):this._gainNode.gain.setValueAtTime(t,e),this}stop(e){return this.log("stop",e),this._stopGain(this.toSeconds(e)),this}_stopGain(e){pe(this._startTime!==-1,"'start' must be called before 'stop'"),this.cancelStop();const t=this.toSeconds(this._fadeOut);return this._stopTime=this.toSeconds(e)+t,this._stopTime=Math.max(this._stopTime,this.now()),t>0?this._curve==="linear"?this._gainNode.gain.linearRampTo(0,t,e):this._gainNode.gain.targetRampTo(0,t,e):(this._gainNode.gain.cancelAndHoldAtTime(e),this._gainNode.gain.setValueAtTime(0,e)),this.context.clearTimeout(this._timeout),this._timeout=this.context.setTimeout(()=>{const n=this._curve==="exponential"?t*2:0;this._stopSource(this.now()+n),this._onended()},this._stopTime-this.context.currentTime),this}_onended(){if(this.onended!==Ee&&(this.onended(this),this.onended=Ee,!this.context.isOffline)){const e=()=>this.dispose();typeof window.requestIdleCallback<"u"?window.requestIdleCallback(e):setTimeout(e,1e3)}}get state(){return this.getStateAtTime(this.now())}cancelStop(){return this.log("cancelStop"),pe(this._startTime!==-1,"Source is not started"),this._gainNode.gain.cancelScheduledValues(this._startTime+this.sampleTime),this.context.clearTimeout(this._timeout),this._stopTime=-1,this}dispose(){return super.dispose(),this._gainNode.dispose(),this.onended=Ee,this}}class La extends Ur{constructor(){super(Z(La.getDefaults(),arguments,["offset"])),this.name="ToneConstantSource",this._source=this.context.createConstantSource();const e=Z(La.getDefaults(),arguments,["offset"]);ws(this._source,this._gainNode),this.offset=new Se({context:this.context,convert:e.convert,param:this._source.offset,units:e.units,value:e.offset,minValue:e.minValue,maxValue:e.maxValue})}static getDefaults(){return Object.assign(Ur.getDefaults(),{convert:!0,offset:1,units:"number"})}start(e){const t=this.toSeconds(e);return this.log("start",t),this._startGain(t),this._source.start(t),this}_stopSource(e){this._source.stop(e)}dispose(){return super.dispose(),this.state==="started"&&this.stop(),this._source.disconnect(),this.offset.dispose(),this}}class Fe extends le{constructor(){super(Z(Fe.getDefaults(),arguments,["value","units"])),this.name="Signal",this.override=!0;const e=Z(Fe.getDefaults(),arguments,["value","units"]);this.output=this._constantSource=new La({context:this.context,convert:e.convert,offset:e.value,units:e.units,minValue:e.minValue,maxValue:e.maxValue}),this._constantSource.start(0),this.input=this._param=this._constantSource.offset}static getDefaults(){return Object.assign(le.getDefaults(),{convert:!0,units:"number",value:0})}connect(e,t=0,n=0){return ih(this,e,t,n),this}dispose(){return super.dispose(),this._param.dispose(),this._constantSource.dispose(),this}setValueAtTime(e,t){return this._param.setValueAtTime(e,t),this}getValueAtTime(e){return this._param.getValueAtTime(e)}setRampPoint(e){return this._param.setRampPoint(e),this}linearRampToValueAtTime(e,t){return this._param.linearRampToValueAtTime(e,t),this}exponentialRampToValueAtTime(e,t){return this._param.exponentialRampToValueAtTime(e,t),this}exponentialRampTo(e,t,n){return this._param.exponentialRampTo(e,t,n),this}linearRampTo(e,t,n){return this._param.linearRampTo(e,t,n),this}targetRampTo(e,t,n){return this._param.targetRampTo(e,t,n),this}exponentialApproachValueAtTime(e,t,n){return this._param.exponentialApproachValueAtTime(e,t,n),this}setTargetAtTime(e,t,n){return this._param.setTargetAtTime(e,t,n),this}setValueCurveAtTime(e,t,n,r){return this._param.setValueCurveAtTime(e,t,n,r),this}cancelScheduledValues(e){return this._param.cancelScheduledValues(e),this}cancelAndHoldAtTime(e){return this._param.cancelAndHoldAtTime(e),this}rampTo(e,t,n){return this._param.rampTo(e,t,n),this}get value(){return this._param.value}set value(e){this._param.value=e}get convert(){return this._param.convert}set convert(e){this._param.convert=e}get units(){return this._param.units}get overridden(){return this._param.overridden}set overridden(e){this._param.overridden=e}get maxValue(){return this._param.maxValue}get minValue(){return this._param.minValue}apply(e){return this._param.apply(e),this}}function ih(s,e,t,n){(e instanceof Se||Js(e)||e instanceof Fe&&e.override)&&(e.cancelScheduledValues(0),e.setValueAtTime(0,0),e instanceof Fe&&(e.overridden=!0)),ws(s,e,t,n)}class ja extends Se{constructor(){super(Z(ja.getDefaults(),arguments,["value"])),this.name="TickParam",this._events=new wn(1/0),this._multiplier=1;const e=Z(ja.getDefaults(),arguments,["value"]);this._multiplier=e.multiplier,this._events.cancel(0),this._events.add({ticks:0,time:0,type:"setValueAtTime",value:this._fromType(e.value)}),this.setValueAtTime(e.value,0)}static getDefaults(){return Object.assign(Se.getDefaults(),{multiplier:1,units:"hertz",value:1})}setTargetAtTime(e,t,n){t=this.toSeconds(t),this.setRampPoint(t);const r=this._fromType(e),i=this._events.get(t),o=Math.round(Math.max(1/n,1));for(let a=0;a<=o;a++){const c=n*a+t,l=this._exponentialApproach(i.time,i.value,r,n,c);this.linearRampToValueAtTime(this._toType(l),c)}return this}setValueAtTime(e,t){const n=this.toSeconds(t);super.setValueAtTime(e,t);const r=this._events.get(n),i=this._events.previousEvent(r),o=this._getTicksUntilEvent(i,n);return r.ticks=Math.max(o,0),this}linearRampToValueAtTime(e,t){const n=this.toSeconds(t);super.linearRampToValueAtTime(e,t);const r=this._events.get(n),i=this._events.previousEvent(r),o=this._getTicksUntilEvent(i,n);return r.ticks=Math.max(o,0),this}exponentialRampToValueAtTime(e,t){t=this.toSeconds(t);const n=this._fromType(e),r=this._events.get(t),i=Math.round(Math.max((t-r.time)*10,1)),o=(t-r.time)/i;for(let a=0;a<=i;a++){const c=o*a+r.time,l=this._exponentialInterpolate(r.time,r.value,t,n,c);this.linearRampToValueAtTime(this._toType(l),c)}return this}_getTicksUntilEvent(e,t){if(e===null)e={ticks:0,time:0,type:"setValueAtTime",value:0};else if(zt(e.ticks)){const o=this._events.previousEvent(e);e.ticks=this._getTicksUntilEvent(o,e.time)}const n=this._fromType(this.getValueAtTime(e.time));let r=this._fromType(this.getValueAtTime(t));const i=this._events.get(t);return i&&i.time===t&&i.type==="setValueAtTime"&&(r=this._fromType(this.getValueAtTime(t-this.sampleTime))),.5*(t-e.time)*(n+r)+e.ticks}getTicksAtTime(e){const t=this.toSeconds(e),n=this._events.get(t);return Math.max(this._getTicksUntilEvent(n,t),0)}getDurationOfTicks(e,t){const n=this.toSeconds(t),r=this.getTicksAtTime(t);return this.getTimeOfTick(r+e)-n}getTimeOfTick(e){const t=this._events.get(e,"ticks"),n=this._events.getAfter(e,"ticks");if(t&&t.ticks===e)return t.time;if(t&&n&&n.type==="linearRampToValueAtTime"&&t.value!==n.value){const r=this._fromType(this.getValueAtTime(t.time)),o=(this._fromType(this.getValueAtTime(n.time))-r)/(n.time-t.time),a=Math.sqrt(Math.pow(r,2)-2*o*(t.ticks-e)),c=(-r+a)/o,l=(-r-a)/o;return(c>0?c:l)+t.time}else return t?t.value===0?1/0:t.time+(e-t.ticks)/t.value:e/this._initialValue}ticksToTime(e,t){return this.getDurationOfTicks(e,t)}timeToTicks(e,t){const n=this.toSeconds(t),r=this.toSeconds(e),i=this.getTicksAtTime(n);return this.getTicksAtTime(n+r)-i}_fromType(e){return this.units==="bpm"&&this.multiplier?1/(60/e/this.multiplier):super._fromType(e)}_toType(e){return this.units==="bpm"&&this.multiplier?e/this.multiplier*60:super._toType(e)}get multiplier(){return this._multiplier}set multiplier(e){const t=this.value;this._multiplier=e,this.cancelScheduledValues(0),this.setValueAtTime(t,0)}}class Va extends Fe{constructor(){super(Z(Va.getDefaults(),arguments,["value"])),this.name="TickSignal";const e=Z(Va.getDefaults(),arguments,["value"]);this.input=this._param=new ja({context:this.context,convert:e.convert,multiplier:e.multiplier,param:this._constantSource.offset,units:e.units,value:e.value})}static getDefaults(){return Object.assign(Fe.getDefaults(),{multiplier:1,units:"hertz",value:1})}ticksToTime(e,t){return this._param.ticksToTime(e,t)}timeToTicks(e,t){return this._param.timeToTicks(e,t)}getTimeOfTick(e){return this._param.getTimeOfTick(e)}getDurationOfTicks(e,t){return this._param.getDurationOfTicks(e,t)}getTicksAtTime(e){return this._param.getTicksAtTime(e)}get multiplier(){return this._param.multiplier}set multiplier(e){this._param.multiplier=e}dispose(){return super.dispose(),this._param.dispose(),this}}class za extends Ot{constructor(){super(Z(za.getDefaults(),arguments,["frequency"])),this.name="TickSource",this._state=new rh,this._tickOffset=new wn,this._ticksAtTime=new wn,this._secondsAtTime=new wn;const e=Z(za.getDefaults(),arguments,["frequency"]);this.frequency=new Va({context:this.context,units:e.units,value:e.frequency}),je(this,"frequency"),this._state.setStateAtTime("stopped",0),this.setTicksAtTime(0,0)}static getDefaults(){return Object.assign({frequency:1,units:"hertz"},Ot.getDefaults())}get state(){return this.getStateAtTime(this.now())}start(e,t){const n=this.toSeconds(e);return this._state.getValueAtTime(n)!=="started"&&(this._state.setStateAtTime("started",n),ve(t)&&this.setTicksAtTime(t,n),this._ticksAtTime.cancel(n),this._secondsAtTime.cancel(n)),this}stop(e){const t=this.toSeconds(e);if(this._state.getValueAtTime(t)==="stopped"){const n=this._state.get(t);n&&n.time>0&&(this._tickOffset.cancel(n.time),this._state.cancel(n.time))}return this._state.cancel(t),this._state.setStateAtTime("stopped",t),this.setTicksAtTime(0,t),this._ticksAtTime.cancel(t),this._secondsAtTime.cancel(t),this}pause(e){const t=this.toSeconds(e);return this._state.getValueAtTime(t)==="started"&&(this._state.setStateAtTime("paused",t),this._ticksAtTime.cancel(t),this._secondsAtTime.cancel(t)),this}cancel(e){return e=this.toSeconds(e),this._state.cancel(e),this._tickOffset.cancel(e),this._ticksAtTime.cancel(e),this._secondsAtTime.cancel(e),this}getTicksAtTime(e){const t=this.toSeconds(e),n=this._state.getLastState("stopped",t),r=this._ticksAtTime.get(t),i={state:"paused",time:t};this._state.add(i);let o=r||n,a=r?r.ticks:0,c=null;return this._state.forEachBetween(o.time,t+this.sampleTime,l=>{let u=o.time;const h=this._tickOffset.get(l.time);h&&h.time>=o.time&&(a=h.ticks,u=h.time),o.state==="started"&&l.state!=="started"&&(a+=this.frequency.getTicksAtTime(l.time)-this.frequency.getTicksAtTime(u),l.time!=i.time&&(c={state:l.state,time:l.time,ticks:a})),o=l}),this._state.remove(i),c&&this._ticksAtTime.add(c),a}get ticks(){return this.getTicksAtTime(this.now())}set ticks(e){this.setTicksAtTime(e,this.now())}get seconds(){return this.getSecondsAtTime(this.now())}set seconds(e){const t=this.now(),n=this.frequency.timeToTicks(e,t);this.setTicksAtTime(n,t)}getSecondsAtTime(e){e=this.toSeconds(e);const t=this._state.getLastState("stopped",e),n={state:"paused",time:e};this._state.add(n);const r=this._secondsAtTime.get(e);let i=r||t,o=r?r.seconds:0,a=null;return this._state.forEachBetween(i.time,e+this.sampleTime,c=>{let l=i.time;const u=this._tickOffset.get(c.time);u&&u.time>=i.time&&(o=u.seconds,l=u.time),i.state==="started"&&c.state!=="started"&&(o+=c.time-l,c.time!=n.time&&(a={state:c.state,time:c.time,seconds:o})),i=c}),this._state.remove(n),a&&this._secondsAtTime.add(a),o}setTicksAtTime(e,t){return t=this.toSeconds(t),this._tickOffset.cancel(t),this._tickOffset.add({seconds:this.frequency.getDurationOfTicks(e,t),ticks:e,time:t}),this._ticksAtTime.cancel(t),this._secondsAtTime.cancel(t),this}getStateAtTime(e){return e=this.toSeconds(e),this._state.getValueAtTime(e)}getTimeOfTick(e,t=this.now()){const n=this._tickOffset.get(t),r=this._state.get(t),i=Math.max(n.time,r.time),o=this.frequency.getTicksAtTime(i)+e-n.ticks;return this.frequency.getTimeOfTick(o)}forEachTickBetween(e,t,n){let r=this._state.get(e);this._state.forEachBetween(e,t,o=>{r&&r.state==="started"&&o.state!=="started"&&this.forEachTickBetween(Math.max(r.time,e),o.time-this.sampleTime,n),r=o});let i=null;if(r&&r.state==="started"){const o=Math.max(r.time,e),a=this.frequency.getTicksAtTime(o),c=this.frequency.getTicksAtTime(r.time),l=a-c;let u=Math.ceil(l)-l;u=sn(u,1)?0:u;let h=this.frequency.getTimeOfTick(a+u);for(;h{switch(n.state){case"started":const r=this._tickSource.getTicksAtTime(n.time);this.emit("start",n.time,r);break;case"stopped":n.time!==0&&this.emit("stop",n.time);break;case"paused":this.emit("pause",n.time);break}}),this._tickSource.forEachTickBetween(e,t,(n,r)=>{this.callback(n,r)}))}getStateAtTime(e){const t=this.toSeconds(e);return this._state.getValueAtTime(t)}dispose(){return super.dispose(),this.context.off("tick",this._boundLoop),this._tickSource.dispose(),this._state.dispose(),this}}Mo.mixin(Yi);class oh extends ns{constructor(){super(),this.name="ToneAudioBuffers",this._buffers=new Map,this._loadingCount=0;const e=Z(oh.getDefaults(),arguments,["urls","onload","baseUrl"],"urls");this.baseUrl=e.baseUrl,Object.keys(e.urls).forEach(t=>{this._loadingCount++;const n=e.urls[t];this.add(t,n,this._bufferLoaded.bind(this,e.onload),e.onerror)})}static getDefaults(){return{baseUrl:"",onerror:Ee,onload:Ee,urls:{}}}has(e){return this._buffers.has(e.toString())}get(e){return pe(this.has(e),`ToneAudioBuffers has no buffer named: ${e}`),this._buffers.get(e.toString())}_bufferLoaded(e){this._loadingCount--,this._loadingCount===0&&e&&e()}get loaded(){return Array.from(this._buffers).every(([e,t])=>t.loaded)}add(e,t,n=Ee,r=Ee){return Gn(t)?(this.baseUrl&&t.trim().substring(0,11).toLowerCase()==="data:audio/"&&(this.baseUrl=""),this._buffers.set(e.toString(),new Ce(this.baseUrl+t,n,r))):this._buffers.set(e.toString(),new Ce(t,n,r)),this}dispose(){return super.dispose(),this._buffers.forEach(e=>e.dispose()),this._buffers.clear(),this}}class Er extends Ni{constructor(){super(...arguments),this.name="Ticks",this.defaultUnits="i"}_now(){return this.context.transport.ticks}_beatsToUnits(e){return this._getPPQ()*e}_secondsToUnits(e){return Math.floor(e/(60/this._getBpm())*this._getPPQ())}_ticksToUnits(e){return e}toTicks(){return this.valueOf()}toSeconds(){return this.valueOf()/this._getPPQ()*(60/this._getBpm())}}class YA extends Ot{constructor(){super(...arguments),this.name="Draw",this.expiration=.25,this.anticipation=.008,this._events=new wn,this._boundDrawLoop=this._drawLoop.bind(this),this._animationFrame=-1}schedule(e,t){return this._events.add({callback:e,time:this.toSeconds(t)}),this._events.length===1&&(this._animationFrame=requestAnimationFrame(this._boundDrawLoop)),this}cancel(e){return this._events.cancel(this.toSeconds(e)),this}_drawLoop(){const e=this.context.currentTime;for(;this._events.length&&this._events.peek().time-this.anticipation<=e;){const t=this._events.shift();t&&e-t.time<=this.expiration&&t.callback()}this._events.length>0&&(this._animationFrame=requestAnimationFrame(this._boundDrawLoop))}dispose(){return super.dispose(),this._events.dispose(),cancelAnimationFrame(this._animationFrame),this}}yc(s=>{s.draw=new YA({context:s})});vc(s=>{s.draw.dispose()});class GA extends ns{constructor(){super(...arguments),this.name="IntervalTimeline",this._root=null,this._length=0}add(e){pe(ve(e.time),"Events must have a time property"),pe(ve(e.duration),"Events must have a duration parameter"),e.time=e.time.valueOf();let t=new XA(e.time,e.time+e.duration,e);for(this._root===null?this._root=t:this._root.insert(t),this._length++;t!==null;)t.updateHeight(),t.updateMax(),this._rebalance(t),t=t.parent;return this}remove(e){if(this._root!==null){const t=[];this._root.search(e.time,t);for(const n of t)if(n.event===e){this._removeNode(n),this._length--;break}}return this}get length(){return this._length}cancel(e){return this.forEachFrom(e,t=>this.remove(t)),this}_setRoot(e){this._root=e,this._root!==null&&(this._root.parent=null)}_replaceNodeInParent(e,t){e.parent!==null?(e.isLeftChild()?e.parent.left=t:e.parent.right=t,this._rebalance(e.parent)):this._setRoot(t)}_removeNode(e){if(e.left===null&&e.right===null)this._replaceNodeInParent(e,null);else if(e.right===null)this._replaceNodeInParent(e,e.left);else if(e.left===null)this._replaceNodeInParent(e,e.right);else{const t=e.getBalance();let n,r=null;if(t>0)if(e.left.right===null)n=e.left,n.right=e.right,r=n;else{for(n=e.left.right;n.right!==null;)n=n.right;n.parent&&(n.parent.right=n.left,r=n.parent,n.left=e.left,n.right=e.right)}else if(e.right.left===null)n=e.right,n.left=e.left,r=n;else{for(n=e.right.left;n.left!==null;)n=n.left;n.parent&&(n.parent.left=n.right,r=n.parent,n.left=e.left,n.right=e.right)}e.parent!==null?e.isLeftChild()?e.parent.left=n:e.parent.right=n:this._setRoot(n),r&&this._rebalance(r)}e.dispose()}_rotateLeft(e){const t=e.parent,n=e.isLeftChild(),r=e.right;r&&(e.right=r.left,r.left=e),t!==null?n?t.left=r:t.right=r:this._setRoot(r)}_rotateRight(e){const t=e.parent,n=e.isLeftChild(),r=e.left;r&&(e.left=r.right,r.right=e),t!==null?n?t.left=r:t.right=r:this._setRoot(r)}_rebalance(e){const t=e.getBalance();t>1&&e.left?e.left.getBalance()<0?this._rotateLeft(e.left):this._rotateRight(e):t<-1&&e.right&&(e.right.getBalance()>0?this._rotateRight(e.right):this._rotateLeft(e))}get(e){if(this._root!==null){const t=[];if(this._root.search(e,t),t.length>0){let n=t[0];for(let r=1;rn.low&&(n=t[r]);return n.event}}return null}forEach(e){if(this._root!==null){const t=[];this._root.traverse(n=>t.push(n)),t.forEach(n=>{n.event&&e(n.event)})}return this}forEachAtTime(e,t){if(this._root!==null){const n=[];this._root.search(e,n),n.forEach(r=>{r.event&&t(r.event)})}return this}forEachFrom(e,t){if(this._root!==null){const n=[];this._root.searchAfter(e,n),n.forEach(r=>{r.event&&t(r.event)})}return this}dispose(){return super.dispose(),this._root!==null&&this._root.traverse(e=>e.dispose()),this._root=null,this}}class XA{constructor(e,t,n){this._left=null,this._right=null,this.parent=null,this.height=0,this.event=n,this.low=e,this.high=t,this.max=this.high}insert(e){e.low<=this.low?this.left===null?this.left=e:this.left.insert(e):this.right===null?this.right=e:this.right.insert(e)}search(e,t){e>this.max||(this.left!==null&&this.left.search(e,t),this.low<=e&&this.high>e&&t.push(this),!(this.low>e)&&this.right!==null&&this.right.search(e,t))}searchAfter(e,t){this.low>=e&&(t.push(this),this.left!==null&&this.left.searchAfter(e,t)),this.right!==null&&this.right.searchAfter(e,t)}traverse(e){e(this),this.left!==null&&this.left.traverse(e),this.right!==null&&this.right.traverse(e)}updateHeight(){this.left!==null&&this.right!==null?this.height=Math.max(this.left.height,this.right.height)+1:this.right!==null?this.height=this.right.height+1:this.left!==null?this.height=this.left.height+1:this.height=0}updateMax(){this.max=this.high,this.left!==null&&(this.max=Math.max(this.max,this.left.max)),this.right!==null&&(this.max=Math.max(this.max,this.right.max))}getBalance(){let e=0;return this.left!==null&&this.right!==null?e=this.left.height-this.right.height:this.left!==null?e=this.left.height+1:this.right!==null&&(e=-(this.right.height+1)),e}isLeftChild(){return this.parent!==null&&this.parent.left===this}get left(){return this._left}set left(e){this._left=e,e!==null&&(e.parent=this),this.updateHeight(),this.updateMax()}get right(){return this._right}set right(e){this._right=e,e!==null&&(e.parent=this),this.updateHeight(),this.updateMax()}dispose(){this.parent=null,this._left=null,this._right=null,this.event=null}}class ks extends le{constructor(){super(Z(ks.getDefaults(),arguments,["volume"])),this.name="Volume";const e=Z(ks.getDefaults(),arguments,["volume"]);this.input=this.output=new Ie({context:this.context,gain:e.volume,units:"decibels"}),this.volume=this.output.gain,je(this,"volume"),this._unmutedVolume=e.volume,this.mute=e.mute}static getDefaults(){return Object.assign(le.getDefaults(),{mute:!1,volume:0})}get mute(){return this.volume.value===-1/0}set mute(e){!this.mute&&e?(this._unmutedVolume=this.volume.value,this.volume.value=-1/0):this.mute&&!e&&(this.volume.value=this._unmutedVolume)}dispose(){return super.dispose(),this.input.dispose(),this.volume.dispose(),this}}let ZA=class Hl extends le{constructor(){super(Z(Hl.getDefaults(),arguments)),this.name="Destination",this.input=new ks({context:this.context}),this.output=new Ie({context:this.context}),this.volume=this.input.volume;const e=Z(Hl.getDefaults(),arguments);Hi(this.input,this.output,this.context.rawContext.destination),this.mute=e.mute,this._internalChannels=[this.input,this.context.rawContext.destination,this.output]}static getDefaults(){return Object.assign(le.getDefaults(),{mute:!1,volume:0})}get mute(){return this.input.mute}set mute(e){this.input.mute=e}chain(...e){return this.input.disconnect(),e.unshift(this.input),e.push(this.output),Hi(...e),this}get maxChannelCount(){return this.context.rawContext.destination.maxChannelCount}dispose(){return super.dispose(),this.volume.dispose(),this}};yc(s=>{s.destination=new ZA({context:s})});vc(s=>{s.destination.dispose()});class KA extends ns{constructor(e){super(),this.name="TimelineValue",this._timeline=new wn({memory:10}),this._initialValue=e}set(e,t){return this._timeline.add({value:e,time:t}),this}get(e){const t=this._timeline.get(e);return t?t.value:this._initialValue}}class Xn extends le{constructor(){super(Object.assign(Z(Xn.getDefaults(),arguments,["context"])))}connect(e,t=0,n=0){return ih(this,e,t,n),this}}class er extends Xn{constructor(){super(Object.assign(Z(er.getDefaults(),arguments,["mapping","length"]))),this.name="WaveShaper",this._shaper=this.context.createWaveShaper(),this.input=this._shaper,this.output=this._shaper;const e=Z(er.getDefaults(),arguments,["mapping","length"]);cn(e.mapping)||e.mapping instanceof Float32Array?this.curve=Float32Array.from(e.mapping):bA(e.mapping)&&this.setMap(e.mapping,e.length)}static getDefaults(){return Object.assign(Fe.getDefaults(),{length:1024})}setMap(e,t=1024){const n=new Float32Array(t);for(let r=0,i=t;rn.includes(e));pe(t,"oversampling must be either 'none', '2x', or '4x'"),this._shaper.oversample=e}dispose(){return super.dispose(),this._shaper.disconnect(),this}}class Gi extends Xn{constructor(){super(Object.assign(Z(Gi.getDefaults(),arguments,["value"]))),this.name="Pow";const e=Z(Gi.getDefaults(),arguments,["value"]);this._exponentScaler=this.input=this.output=new er({context:this.context,mapping:this._expFunc(e.value),length:8192}),this._exponent=e.value}static getDefaults(){return Object.assign(Xn.getDefaults(),{value:1})}_expFunc(e){return t=>Math.pow(Math.abs(t),e)}get value(){return this._exponent}set value(e){this._exponent=e,this._exponentScaler.setMap(this._expFunc(this._exponent))}dispose(){return super.dispose(),this._exponentScaler.dispose(),this}}class Ts{constructor(e,t){this.id=Ts._eventId++,this._remainderTime=0;const n=Object.assign(Ts.getDefaults(),t);this.transport=e,this.callback=n.callback,this._once=n.once,this.time=Math.floor(n.time),this._remainderTime=n.time-this.time}static getDefaults(){return{callback:Ee,once:!1,time:0}}get floatTime(){return this.time+this._remainderTime}invoke(e){if(this.callback){const t=this.transport.bpm.getDurationOfTicks(1,e);this.callback(e+this._remainderTime*t),this._once&&this.transport.clear(this.id)}}dispose(){return this.callback=void 0,this}}Ts._eventId=0;class ah extends Ts{constructor(e,t){super(e,t),this._currentId=-1,this._nextId=-1,this._nextTick=this.time,this._boundRestart=this._restart.bind(this);const n=Object.assign(ah.getDefaults(),t);this.duration=n.duration,this._interval=n.interval,this._nextTick=n.time,this.transport.on("start",this._boundRestart),this.transport.on("loopStart",this._boundRestart),this.transport.on("ticks",this._boundRestart),this.context=this.transport.context,this._restart()}static getDefaults(){return Object.assign({},Ts.getDefaults(),{duration:1/0,interval:1,once:!1})}invoke(e){this._createEvents(e),super.invoke(e)}_createEvent(){return Fa(this._nextTick,this.floatTime+this.duration)?this.transport.scheduleOnce(this.invoke.bind(this),new Er(this.context,this._nextTick).toSeconds()):-1}_createEvents(e){Fa(this._nextTick+this._interval,this.floatTime+this.duration)&&(this._nextTick+=this._interval,this._currentId=this._nextId,this._nextId=this.transport.scheduleOnce(this.invoke.bind(this),new Er(this.context,this._nextTick).toSeconds()))}_restart(e){this.transport.clear(this._currentId),this.transport.clear(this._nextId),this._nextTick=this.floatTime;const t=this.transport.getTicksAtTime(e);zr(t,this.time)&&(this._nextTick=this.floatTime+Math.ceil((t-this.floatTime)/this._interval)*this._interval),this._currentId=this._createEvent(),this._nextTick+=this._interval,this._nextId=this._createEvent()}dispose(){return super.dispose(),this.transport.clear(this._currentId),this.transport.clear(this._nextId),this.transport.off("start",this._boundRestart),this.transport.off("loopStart",this._boundRestart),this.transport.off("ticks",this._boundRestart),this}}class Xi extends Ot{constructor(){super(Z(Xi.getDefaults(),arguments)),this.name="Transport",this._loop=new KA(!1),this._loopStart=0,this._loopEnd=0,this._scheduledEvents={},this._timeline=new wn,this._repeatedEvents=new GA,this._syncedSignals=[],this._swingAmount=0;const e=Z(Xi.getDefaults(),arguments);this._ppq=e.ppq,this._clock=new Yi({callback:this._processTick.bind(this),context:this.context,frequency:0,units:"bpm"}),this._bindClockEvents(),this.bpm=this._clock.frequency,this._clock.frequency.multiplier=e.ppq,this.bpm.setValueAtTime(e.bpm,0),je(this,"bpm"),this._timeSignature=e.timeSignature,this._swingTicks=e.ppq/2}static getDefaults(){return Object.assign(Ot.getDefaults(),{bpm:120,loopEnd:"4m",loopStart:0,ppq:192,swing:0,swingSubdivision:"8n",timeSignature:4})}_processTick(e,t){if(this._loop.get(e)&&t>=this._loopEnd&&(this.emit("loopEnd",e),this._clock.setTicksAtTime(this._loopStart,e),t=this._loopStart,this.emit("loopStart",e,this._clock.getSecondsAtTime(e)),this.emit("loop",e)),this._swingAmount>0&&t%this._ppq!==0&&t%(this._swingTicks*2)!==0){const n=t%(this._swingTicks*2)/(this._swingTicks*2),r=Math.sin(n*Math.PI)*this._swingAmount;e+=new Er(this.context,this._swingTicks*2/3).toSeconds()*r}Of(!0),this._timeline.forEachAtTime(t,n=>n.invoke(e)),Of(!1)}schedule(e,t){const n=new Ts(this,{callback:e,time:new Ni(this.context,t).toTicks()});return this._addEvent(n,this._timeline)}scheduleRepeat(e,t,n,r=1/0){const i=new ah(this,{callback:e,duration:new on(this.context,r).toTicks(),interval:new on(this.context,t).toTicks(),time:new Ni(this.context,n).toTicks()});return this._addEvent(i,this._repeatedEvents)}scheduleOnce(e,t){const n=new Ts(this,{callback:e,once:!0,time:new Ni(this.context,t).toTicks()});return this._addEvent(n,this._timeline)}clear(e){if(this._scheduledEvents.hasOwnProperty(e)){const t=this._scheduledEvents[e.toString()];t.timeline.remove(t.event),t.event.dispose(),delete this._scheduledEvents[e.toString()]}return this}_addEvent(e,t){return this._scheduledEvents[e.id.toString()]={event:e,timeline:t},t.add(e),e.id}cancel(e=0){const t=this.toTicks(e);return this._timeline.forEachFrom(t,n=>this.clear(n.id)),this._repeatedEvents.forEachFrom(t,n=>this.clear(n.id)),this}_bindClockEvents(){this._clock.on("start",(e,t)=>{t=new Er(this.context,t).toSeconds(),this.emit("start",e,t)}),this._clock.on("stop",e=>{this.emit("stop",e)}),this._clock.on("pause",e=>{this.emit("pause",e)})}get state(){return this._clock.getStateAtTime(this.now())}start(e,t){this.context.resume();let n;return ve(t)&&(n=this.toTicks(t)),this._clock.start(e,n),this}stop(e){return this._clock.stop(e),this}pause(e){return this._clock.pause(e),this}toggle(e){return e=this.toSeconds(e),this._clock.getStateAtTime(e)!=="started"?this.start(e):this.stop(e),this}get timeSignature(){return this._timeSignature}set timeSignature(e){cn(e)&&(e=e[0]/e[1]*4),this._timeSignature=e}get loopStart(){return new on(this.context,this._loopStart,"i").toSeconds()}set loopStart(e){this._loopStart=this.toTicks(e)}get loopEnd(){return new on(this.context,this._loopEnd,"i").toSeconds()}set loopEnd(e){this._loopEnd=this.toTicks(e)}get loop(){return this._loop.get(this.now())}set loop(e){this._loop.set(e,this.now())}setLoopPoints(e,t){return this.loopStart=e,this.loopEnd=t,this}get swing(){return this._swingAmount}set swing(e){this._swingAmount=e}get swingSubdivision(){return new Er(this.context,this._swingTicks).toNotation()}set swingSubdivision(e){this._swingTicks=this.toTicks(e)}get position(){const e=this.now(),t=this._clock.getTicksAtTime(e);return new Er(this.context,t).toBarsBeatsSixteenths()}set position(e){const t=this.toTicks(e);this.ticks=t}get seconds(){return this._clock.seconds}set seconds(e){const t=this.now(),n=this._clock.frequency.timeToTicks(e,t);this.ticks=n}get progress(){if(this.loop){const e=this.now();return(this._clock.getTicksAtTime(e)-this._loopStart)/(this._loopEnd-this._loopStart)}else return 0}get ticks(){return this._clock.ticks}set ticks(e){if(this._clock.ticks!==e){const t=this.now();if(this.state==="started"){const n=this._clock.getTicksAtTime(t),r=this._clock.frequency.getDurationOfTicks(Math.ceil(n)-n,t),i=t+r;this.emit("stop",i),this._clock.setTicksAtTime(e,i),this.emit("start",i,this._clock.getSecondsAtTime(i))}else this.emit("ticks",t),this._clock.setTicksAtTime(e,t)}}getTicksAtTime(e){return this._clock.getTicksAtTime(e)}getSecondsAtTime(e){return this._clock.getSecondsAtTime(e)}get PPQ(){return this._clock.frequency.multiplier}set PPQ(e){this._clock.frequency.multiplier=e}nextSubdivision(e){if(e=this.toTicks(e),this.state!=="started")return 0;{const t=this.now(),n=this.getTicksAtTime(t),r=e-n%e;return this._clock.nextTickTime(r,t)}}syncSignal(e,t){const n=this.now();let r=this.bpm,i=1/(60/r.getValueAtTime(n)/this.PPQ),o=[];if(e.units==="time"){const c=.015625/i,l=new Ie(c),u=new Gi(-1),h=new Ie(c);r.chain(l,u,h),r=h,i=1/i,o=[l,u,h]}t||(e.getValueAtTime(n)!==0?t=e.getValueAtTime(n)/i:t=0);const a=new Ie(t);return r.connect(a),a.connect(e._param),o.push(a),this._syncedSignals.push({initial:e.value,nodes:o,signal:e}),e.value=0,this}unsyncSignal(e){for(let t=this._syncedSignals.length-1;t>=0;t--){const n=this._syncedSignals[t];n.signal===e&&(n.nodes.forEach(r=>r.dispose()),n.signal.value=n.initial,this._syncedSignals.splice(t,1))}return this}dispose(){return super.dispose(),this._clock.dispose(),nh(this,"bpm"),this._timeline.dispose(),this._repeatedEvents.dispose(),this}}Mo.mixin(Xi);yc(s=>{s.transport=new Xi({context:s})});vc(s=>{s.transport.dispose()});class gt extends le{constructor(e){super(e),this.input=void 0,this._state=new rh("stopped"),this._synced=!1,this._scheduled=[],this._syncedStart=Ee,this._syncedStop=Ee,this._state.memory=100,this._state.increasing=!0,this._volume=this.output=new ks({context:this.context,mute:e.mute,volume:e.volume}),this.volume=this._volume.volume,je(this,"volume"),this.onstop=e.onstop}static getDefaults(){return Object.assign(le.getDefaults(),{mute:!1,onstop:Ee,volume:0})}get state(){return this._synced?this.context.transport.state==="started"?this._state.getValueAtTime(this.context.transport.seconds):"stopped":this._state.getValueAtTime(this.now())}get mute(){return this._volume.mute}set mute(e){this._volume.mute=e}_clampToCurrentTime(e){return this._synced?e:Math.max(e,this.context.currentTime)}start(e,t,n){let r=zt(e)&&this._synced?this.context.transport.seconds:this.toSeconds(e);if(r=this._clampToCurrentTime(r),!this._synced&&this._state.getValueAtTime(r)==="started")pe(zr(r,this._state.get(r).time),"Start time must be strictly greater than previous start time"),this._state.cancel(r),this._state.setStateAtTime("started",r),this.log("restart",r),this.restart(r,t,n);else if(this.log("start",r),this._state.setStateAtTime("started",r),this._synced){const i=this._state.get(r);i&&(i.offset=this.toSeconds(Rr(t,0)),i.duration=n?this.toSeconds(n):void 0);const o=this.context.transport.schedule(a=>{this._start(a,t,n)},r);this._scheduled.push(o),this.context.transport.state==="started"&&this.context.transport.getSecondsAtTime(this.immediate())>r&&this._syncedStart(this.now(),this.context.transport.seconds)}else Ym(this.context),this._start(r,t,n);return this}stop(e){let t=zt(e)&&this._synced?this.context.transport.seconds:this.toSeconds(e);if(t=this._clampToCurrentTime(t),this._state.getValueAtTime(t)==="started"||ve(this._state.getNextState("started",t))){if(this.log("stop",t),!this._synced)this._stop(t);else{const n=this.context.transport.schedule(this._stop.bind(this),t);this._scheduled.push(n)}this._state.cancel(t),this._state.setStateAtTime("stopped",t)}return this}restart(e,t,n){return e=this.toSeconds(e),this._state.getValueAtTime(e)==="started"&&(this._state.cancel(e),this._restart(e,t,n)),this}sync(){return this._synced||(this._synced=!0,this._syncedStart=(e,t)=>{if(zr(t,0)){const n=this._state.get(t);if(n&&n.state==="started"&&n.time!==t){const r=t-this.toSeconds(n.time);let i;n.duration&&(i=this.toSeconds(n.duration)-r),this._start(e,this.toSeconds(n.offset)+r,i)}}},this._syncedStop=e=>{const t=this.context.transport.getSecondsAtTime(Math.max(e-this.sampleTime,0));this._state.getValueAtTime(t)==="started"&&this._stop(e)},this.context.transport.on("start",this._syncedStart),this.context.transport.on("loopStart",this._syncedStart),this.context.transport.on("stop",this._syncedStop),this.context.transport.on("pause",this._syncedStop),this.context.transport.on("loopEnd",this._syncedStop)),this}unsync(){return this._synced&&(this.context.transport.off("stop",this._syncedStop),this.context.transport.off("pause",this._syncedStop),this.context.transport.off("loopEnd",this._syncedStop),this.context.transport.off("start",this._syncedStart),this.context.transport.off("loopStart",this._syncedStart)),this._synced=!1,this._scheduled.forEach(e=>this.context.transport.clear(e)),this._scheduled=[],this._state.cancel(0),this._stop(0),this}dispose(){return super.dispose(),this.onstop=Ee,this.unsync(),this._volume.dispose(),this._state.dispose(),this}}class Br extends Ur{constructor(){super(Z(Br.getDefaults(),arguments,["url","onload"])),this.name="ToneBufferSource",this._source=this.context.createBufferSource(),this._internalChannels=[this._source],this._sourceStarted=!1,this._sourceStopped=!1;const e=Z(Br.getDefaults(),arguments,["url","onload"]);ws(this._source,this._gainNode),this._source.onended=()=>this._stopSource(),this.playbackRate=new Se({context:this.context,param:this._source.playbackRate,units:"positive",value:e.playbackRate}),this.loop=e.loop,this.loopStart=e.loopStart,this.loopEnd=e.loopEnd,this._buffer=new Ce(e.url,e.onload,e.onerror),this._internalChannels.push(this._source)}static getDefaults(){return Object.assign(Ur.getDefaults(),{url:new Ce,loop:!1,loopEnd:0,loopStart:0,onload:Ee,onerror:Ee,playbackRate:1})}get fadeIn(){return this._fadeIn}set fadeIn(e){this._fadeIn=e}get fadeOut(){return this._fadeOut}set fadeOut(e){this._fadeOut=e}get curve(){return this._curve}set curve(e){this._curve=e}start(e,t,n,r=1){pe(this.buffer.loaded,"buffer is either not set or not loaded");const i=this.toSeconds(e);this._startGain(i,r),this.loop?t=Rr(t,this.loopStart):t=Rr(t,0);let o=Math.max(this.toSeconds(t),0);if(this.loop){const a=this.toSeconds(this.loopEnd)||this.buffer.duration,c=this.toSeconds(this.loopStart),l=a-c;Wl(o,a)&&(o=(o-c)%l+c),sn(o,this.buffer.duration)&&(o=0)}if(this._source.buffer=this.buffer.get(),this._source.loopEnd=this.toSeconds(this.loopEnd)||this.buffer.duration,Fa(o,this.buffer.duration)&&(this._sourceStarted=!0,this._source.start(i,o)),ve(n)){let a=this.toSeconds(n);a=Math.max(a,0),this.stop(i+a)}return this}_stopSource(e){!this._sourceStopped&&this._sourceStarted&&(this._sourceStopped=!0,this._source.stop(this.toSeconds(e)),this._onended())}get loopStart(){return this._source.loopStart}set loopStart(e){this._source.loopStart=this.toSeconds(e)}get loopEnd(){return this._source.loopEnd}set loopEnd(e){this._source.loopEnd=this.toSeconds(e)}get buffer(){return this._buffer}set buffer(e){this._buffer.set(e)}get loop(){return this._source.loop}set loop(e){this._source.loop=e,this._sourceStarted&&this.cancelStop()}dispose(){return super.dispose(),this._source.onended=null,this._source.disconnect(),this._buffer.dispose(),this.playbackRate.dispose(),this}}class Zi extends gt{constructor(){super(Z(Zi.getDefaults(),arguments,["type"])),this.name="Noise",this._source=null;const e=Z(Zi.getDefaults(),arguments,["type"]);this._playbackRate=e.playbackRate,this.type=e.type,this._fadeIn=e.fadeIn,this._fadeOut=e.fadeOut}static getDefaults(){return Object.assign(gt.getDefaults(),{fadeIn:0,fadeOut:0,playbackRate:1,type:"white"})}get type(){return this._type}set type(e){if(pe(e in Af,"Noise: invalid type: "+e),this._type!==e&&(this._type=e,this.state==="started")){const t=this.now();this._stop(t),this._start(t)}}get playbackRate(){return this._playbackRate}set playbackRate(e){this._playbackRate=e,this._source&&(this._source.playbackRate.value=e)}_start(e){const t=Af[this._type];this._source=new Br({url:t,context:this.context,fadeIn:this._fadeIn,fadeOut:this._fadeOut,loop:!0,onended:()=>this.onstop(this),playbackRate:this._playbackRate}).connect(this.output),this._source.start(this.toSeconds(e),Math.random()*(t.duration-.001))}_stop(e){this._source&&(this._source.stop(this.toSeconds(e)),this._source=null)}get fadeIn(){return this._fadeIn}set fadeIn(e){this._fadeIn=e,this._source&&(this._source.fadeIn=this._fadeIn)}get fadeOut(){return this._fadeOut}set fadeOut(e){this._fadeOut=e,this._source&&(this._source.fadeOut=this._fadeOut)}_restart(e){this._stop(e),this._start(e)}dispose(){return super.dispose(),this._source&&this._source.disconnect(),this}}const yr=44100*5,el=2,Fn={brown:null,pink:null,white:null},Af={get brown(){if(!Fn.brown){const s=[];for(let e=0;ethis.onstop(this)});this._oscillator=n,this._wave?this._oscillator.setPeriodicWave(this._wave):this._oscillator.type=this._type,this._oscillator.connect(this.output),this.frequency.connect(this._oscillator.frequency),this.detune.connect(this._oscillator.detune),this._oscillator.start(t)}_stop(e){const t=this.toSeconds(e);this._oscillator&&this._oscillator.stop(t)}_restart(e){const t=this.toSeconds(e);return this.log("restart",t),this._oscillator&&this._oscillator.cancelStop(),this._state.cancel(t),this}syncFrequency(){return this.context.transport.syncSignal(this.frequency),this}unsyncFrequency(){return this.context.transport.unsyncSignal(this.frequency),this}_getCachedPeriodicWave(){if(this._type==="custom")return tt._periodicWaveCache.find(t=>t.phase===this._phase&&RA(t.partials,this._partials));{const e=tt._periodicWaveCache.find(t=>t.type===this._type&&t.phase===this._phase);return this._partialCount=e?e.partialCount:this._partialCount,e}}get type(){return this._type}set type(e){this._type=e;const t=["sine","square","sawtooth","triangle"].indexOf(e)!==-1;if(this._phase===0&&t)this._wave=void 0,this._partialCount=0,this._oscillator!==null&&(this._oscillator.type=e);else{const n=this._getCachedPeriodicWave();if(ve(n)){const{partials:r,wave:i}=n;this._wave=i,this._partials=r,this._oscillator!==null&&this._oscillator.setPeriodicWave(this._wave)}else{const[r,i]=this._getRealImaginary(e,this._phase),o=this.context.createPeriodicWave(r,i);this._wave=o,this._oscillator!==null&&this._oscillator.setPeriodicWave(this._wave),tt._periodicWaveCache.push({imag:i,partialCount:this._partialCount,partials:this._partials,phase:this._phase,real:r,type:this._type,wave:this._wave}),tt._periodicWaveCache.length>100&&tt._periodicWaveCache.shift()}}}get baseType(){return this._type.replace(this.partialCount.toString(),"")}set baseType(e){this.partialCount&&this._type!=="custom"&&e!=="custom"?this.type=e+this.partialCount:this.type=e}get partialCount(){return this._partialCount}set partialCount(e){hn(e,0);let t=this._type;const n=/^(sine|triangle|square|sawtooth)(\d+)$/.exec(this._type);if(n&&(t=n[1]),this._type!=="custom")e===0?this.type=t:this.type=t+e.toString();else{const r=new Float32Array(e);this._partials.forEach((i,o)=>r[o]=i),this._partials=Array.from(r),this.type=this._type}}_getRealImaginary(e,t){let r=2048;const i=new Float32Array(r),o=new Float32Array(r);let a=1;if(e==="custom"){if(a=this._partials.length+1,this._partialCount=this._partials.length,r=a,this._partials.length===0)return[i,o]}else{const c=/^(sine|triangle|square|sawtooth)(\d+)$/.exec(e);c?(a=parseInt(c[2],10)+1,this._partialCount=parseInt(c[2],10),e=c[1],a=Math.max(a,2),r=a):this._partialCount=0,this._partials=[]}for(let c=1;c>1&1?-1:1):u=0,this._partials[c-1]=u;break;case"custom":u=this._partials[c-1];break;default:throw new TypeError("Oscillator: invalid type: "+e)}u!==0?(i[c]=-u*Math.sin(t*c),o[c]=u*Math.cos(t*c)):(i[c]=0,o[c]=0)}return[i,o]}_inverseFFT(e,t,n){let r=0;const i=e.length;for(let o=0;o(e+1)/2}),this.input=this._norm,this.output=this._norm}dispose(){return super.dispose(),this._norm.dispose(),this}}class Es extends Fe{constructor(){super(Object.assign(Z(Es.getDefaults(),arguments,["value"]))),this.name="Multiply",this.override=!1;const e=Z(Es.getDefaults(),arguments,["value"]);this._mult=this.input=this.output=new Ie({context:this.context,minValue:e.minValue,maxValue:e.maxValue}),this.factor=this._param=this._mult.gain,this.factor.setValueAtTime(e.value,0)}static getDefaults(){return Object.assign(Fe.getDefaults(),{value:0})}dispose(){return super.dispose(),this._mult.dispose(),this}}class Ki extends gt{constructor(){super(Z(Ki.getDefaults(),arguments,["frequency","type","modulationType"])),this.name="AMOscillator",this._modulationScale=new QA({context:this.context}),this._modulationNode=new Ie({context:this.context});const e=Z(Ki.getDefaults(),arguments,["frequency","type","modulationType"]);this._carrier=new tt({context:this.context,detune:e.detune,frequency:e.frequency,onstop:()=>this.onstop(this),phase:e.phase,type:e.type}),this.frequency=this._carrier.frequency,this.detune=this._carrier.detune,this._modulator=new tt({context:this.context,phase:e.phase,type:e.modulationType}),this.harmonicity=new Es({context:this.context,units:"positive",value:e.harmonicity}),this.frequency.chain(this.harmonicity,this._modulator.frequency),this._modulator.chain(this._modulationScale,this._modulationNode.gain),this._carrier.chain(this._modulationNode,this.output),je(this,["frequency","detune","harmonicity"])}static getDefaults(){return Object.assign(tt.getDefaults(),{harmonicity:1,modulationType:"square"})}_start(e){this._modulator.start(e),this._carrier.start(e)}_stop(e){this._modulator.stop(e),this._carrier.stop(e)}_restart(e){this._modulator.restart(e),this._carrier.restart(e)}get type(){return this._carrier.type}set type(e){this._carrier.type=e}get baseType(){return this._carrier.baseType}set baseType(e){this._carrier.baseType=e}get partialCount(){return this._carrier.partialCount}set partialCount(e){this._carrier.partialCount=e}get modulationType(){return this._modulator.type}set modulationType(e){this._modulator.type=e}get phase(){return this._carrier.phase}set phase(e){this._carrier.phase=e,this._modulator.phase=e}get partials(){return this._carrier.partials}set partials(e){this._carrier.partials=e}asArray(e=1024){return Ne(this,void 0,void 0,function*(){return cr(this,e)})}dispose(){return super.dispose(),this.frequency.dispose(),this.detune.dispose(),this.harmonicity.dispose(),this._carrier.dispose(),this._modulator.dispose(),this._modulationNode.dispose(),this._modulationScale.dispose(),this}}class Qi extends gt{constructor(){super(Z(Qi.getDefaults(),arguments,["frequency","type","modulationType"])),this.name="FMOscillator",this._modulationNode=new Ie({context:this.context,gain:0});const e=Z(Qi.getDefaults(),arguments,["frequency","type","modulationType"]);this._carrier=new tt({context:this.context,detune:e.detune,frequency:0,onstop:()=>this.onstop(this),phase:e.phase,type:e.type}),this.detune=this._carrier.detune,this.frequency=new Fe({context:this.context,units:"frequency",value:e.frequency}),this._modulator=new tt({context:this.context,phase:e.phase,type:e.modulationType}),this.harmonicity=new Es({context:this.context,units:"positive",value:e.harmonicity}),this.modulationIndex=new Es({context:this.context,units:"positive",value:e.modulationIndex}),this.frequency.connect(this._carrier.frequency),this.frequency.chain(this.harmonicity,this._modulator.frequency),this.frequency.chain(this.modulationIndex,this._modulationNode),this._modulator.connect(this._modulationNode.gain),this._modulationNode.connect(this._carrier.frequency),this._carrier.connect(this.output),this.detune.connect(this._modulator.detune),je(this,["modulationIndex","frequency","detune","harmonicity"])}static getDefaults(){return Object.assign(tt.getDefaults(),{harmonicity:1,modulationIndex:2,modulationType:"square"})}_start(e){this._modulator.start(e),this._carrier.start(e)}_stop(e){this._modulator.stop(e),this._carrier.stop(e)}_restart(e){return this._modulator.restart(e),this._carrier.restart(e),this}get type(){return this._carrier.type}set type(e){this._carrier.type=e}get baseType(){return this._carrier.baseType}set baseType(e){this._carrier.baseType=e}get partialCount(){return this._carrier.partialCount}set partialCount(e){this._carrier.partialCount=e}get modulationType(){return this._modulator.type}set modulationType(e){this._modulator.type=e}get phase(){return this._carrier.phase}set phase(e){this._carrier.phase=e,this._modulator.phase=e}get partials(){return this._carrier.partials}set partials(e){this._carrier.partials=e}asArray(e=1024){return Ne(this,void 0,void 0,function*(){return cr(this,e)})}dispose(){return super.dispose(),this.frequency.dispose(),this.harmonicity.dispose(),this._carrier.dispose(),this._modulator.dispose(),this._modulationNode.dispose(),this.modulationIndex.dispose(),this}}class Wr extends gt{constructor(){super(Z(Wr.getDefaults(),arguments,["frequency","width"])),this.name="PulseOscillator",this._widthGate=new Ie({context:this.context,gain:0}),this._thresh=new er({context:this.context,mapping:t=>t<=0?-1:1});const e=Z(Wr.getDefaults(),arguments,["frequency","width"]);this.width=new Fe({context:this.context,units:"audioRange",value:e.width}),this._triangle=new tt({context:this.context,detune:e.detune,frequency:e.frequency,onstop:()=>this.onstop(this),phase:e.phase,type:"triangle"}),this.frequency=this._triangle.frequency,this.detune=this._triangle.detune,this._triangle.chain(this._thresh,this.output),this.width.chain(this._widthGate,this._thresh),je(this,["width","frequency","detune"])}static getDefaults(){return Object.assign(gt.getDefaults(),{detune:0,frequency:440,phase:0,type:"pulse",width:.2})}_start(e){e=this.toSeconds(e),this._triangle.start(e),this._widthGate.gain.setValueAtTime(1,e)}_stop(e){e=this.toSeconds(e),this._triangle.stop(e),this._widthGate.gain.cancelScheduledValues(e),this._widthGate.gain.setValueAtTime(0,e)}_restart(e){this._triangle.restart(e),this._widthGate.gain.cancelScheduledValues(e),this._widthGate.gain.setValueAtTime(1,e)}get phase(){return this._triangle.phase}set phase(e){this._triangle.phase=e}get type(){return"pulse"}get baseType(){return"pulse"}get partials(){return[]}get partialCount(){return 0}set carrierType(e){this._triangle.type=e}asArray(e=1024){return Ne(this,void 0,void 0,function*(){return cr(this,e)})}dispose(){return super.dispose(),this._triangle.dispose(),this.width.dispose(),this._widthGate.dispose(),this._thresh.dispose(),this}}class Ji extends gt{constructor(){super(Z(Ji.getDefaults(),arguments,["frequency","type","spread"])),this.name="FatOscillator",this._oscillators=[];const e=Z(Ji.getDefaults(),arguments,["frequency","type","spread"]);this.frequency=new Fe({context:this.context,units:"frequency",value:e.frequency}),this.detune=new Fe({context:this.context,units:"cents",value:e.detune}),this._spread=e.spread,this._type=e.type,this._phase=e.phase,this._partials=e.partials,this._partialCount=e.partialCount,this.count=e.count,je(this,["frequency","detune"])}static getDefaults(){return Object.assign(tt.getDefaults(),{count:3,spread:20,type:"sawtooth"})}_start(e){e=this.toSeconds(e),this._forEach(t=>t.start(e))}_stop(e){e=this.toSeconds(e),this._forEach(t=>t.stop(e))}_restart(e){this._forEach(t=>t.restart(e))}_forEach(e){for(let t=0;tt.type=e)}get spread(){return this._spread}set spread(e){if(this._spread=e,this._oscillators.length>1){const t=-e/2,n=e/(this._oscillators.length-1);this._forEach((r,i)=>r.detune.value=t+n*i)}}get count(){return this._oscillators.length}set count(e){if(hn(e,1),this._oscillators.length!==e){this._forEach(t=>t.dispose()),this._oscillators=[];for(let t=0;tthis.onstop(this):Ee});this.type==="custom"&&(n.partials=this._partials),this.frequency.connect(n.frequency),this.detune.connect(n.detune),n.detune.overridden=!1,n.connect(this.output),this._oscillators[t]=n}this.spread=this._spread,this.state==="started"&&this._forEach(t=>t.start())}}get phase(){return this._phase}set phase(e){this._phase=e,this._forEach((t,n)=>t.phase=this._phase+n/this.count*360)}get baseType(){return this._oscillators[0].baseType}set baseType(e){this._forEach(t=>t.baseType=e),this._type=this._oscillators[0].type}get partials(){return this._oscillators[0].partials}set partials(e){this._partials=e,this._partialCount=this._partials.length,e.length&&(this._type="custom",this._forEach(t=>t.partials=e))}get partialCount(){return this._oscillators[0].partialCount}set partialCount(e){this._partialCount=e,this._forEach(t=>t.partialCount=e),this._type=this._oscillators[0].type}asArray(e=1024){return Ne(this,void 0,void 0,function*(){return cr(this,e)})}dispose(){return super.dispose(),this.frequency.dispose(),this.detune.dispose(),this._forEach(e=>e.dispose()),this}}class eo extends gt{constructor(){super(Z(eo.getDefaults(),arguments,["frequency","modulationFrequency"])),this.name="PWMOscillator",this.sourceType="pwm",this._scale=new Es({context:this.context,value:2});const e=Z(eo.getDefaults(),arguments,["frequency","modulationFrequency"]);this._pulse=new Wr({context:this.context,frequency:e.modulationFrequency}),this._pulse.carrierType="sine",this.modulationFrequency=this._pulse.frequency,this._modulator=new tt({context:this.context,detune:e.detune,frequency:e.frequency,onstop:()=>this.onstop(this),phase:e.phase}),this.frequency=this._modulator.frequency,this.detune=this._modulator.detune,this._modulator.chain(this._scale,this._pulse.width),this._pulse.connect(this.output),je(this,["modulationFrequency","frequency","detune"])}static getDefaults(){return Object.assign(gt.getDefaults(),{detune:0,frequency:440,modulationFrequency:.4,phase:0,type:"pwm"})}_start(e){e=this.toSeconds(e),this._modulator.start(e),this._pulse.start(e)}_stop(e){e=this.toSeconds(e),this._modulator.stop(e),this._pulse.stop(e)}_restart(e){this._modulator.restart(e),this._pulse.restart(e)}get type(){return"pwm"}get baseType(){return"pwm"}get partials(){return[]}get partialCount(){return 0}get phase(){return this._modulator.phase}set phase(e){this._modulator.phase=e}asArray(e=1024){return Ne(this,void 0,void 0,function*(){return cr(this,e)})}dispose(){return super.dispose(),this._pulse.dispose(),this._scale.dispose(),this._modulator.dispose(),this}}const Df={am:Ki,fat:Ji,fm:Qi,oscillator:tt,pulse:Wr,pwm:eo};class tr extends gt{constructor(){super(Z(tr.getDefaults(),arguments,["frequency","type"])),this.name="OmniOscillator";const e=Z(tr.getDefaults(),arguments,["frequency","type"]);this.frequency=new Fe({context:this.context,units:"frequency",value:e.frequency}),this.detune=new Fe({context:this.context,units:"cents",value:e.detune}),je(this,["frequency","detune"]),this.set(e)}static getDefaults(){return Object.assign(tt.getDefaults(),Qi.getDefaults(),Ki.getDefaults(),Ji.getDefaults(),Wr.getDefaults(),eo.getDefaults())}_start(e){this._oscillator.start(e)}_stop(e){this._oscillator.stop(e)}_restart(e){return this._oscillator.restart(e),this}get type(){let e="";return["am","fm","fat"].some(t=>this._sourceType===t)&&(e=this._sourceType),e+this._oscillator.type}set type(e){e.substr(0,2)==="fm"?(this._createNewOscillator("fm"),this._oscillator=this._oscillator,this._oscillator.type=e.substr(2)):e.substr(0,2)==="am"?(this._createNewOscillator("am"),this._oscillator=this._oscillator,this._oscillator.type=e.substr(2)):e.substr(0,3)==="fat"?(this._createNewOscillator("fat"),this._oscillator=this._oscillator,this._oscillator.type=e.substr(3)):e==="pwm"?(this._createNewOscillator("pwm"),this._oscillator=this._oscillator):e==="pulse"?this._createNewOscillator("pulse"):(this._createNewOscillator("oscillator"),this._oscillator=this._oscillator,this._oscillator.type=e)}get partials(){return this._oscillator.partials}set partials(e){!this._getOscType(this._oscillator,"pulse")&&!this._getOscType(this._oscillator,"pwm")&&(this._oscillator.partials=e)}get partialCount(){return this._oscillator.partialCount}set partialCount(e){!this._getOscType(this._oscillator,"pulse")&&!this._getOscType(this._oscillator,"pwm")&&(this._oscillator.partialCount=e)}set(e){return Reflect.has(e,"type")&&e.type&&(this.type=e.type),super.set(e),this}_createNewOscillator(e){if(e!==this._sourceType){this._sourceType=e;const t=Df[e],n=this.now();if(this._oscillator){const r=this._oscillator;r.stop(n),this.context.setTimeout(()=>r.dispose(),this.blockTime)}this._oscillator=new t({context:this.context}),this.frequency.connect(this._oscillator.frequency),this.detune.connect(this._oscillator.detune),this._oscillator.connect(this.output),this._oscillator.onstop=()=>this.onstop(this),this.state==="started"&&this._oscillator.start(n)}}get phase(){return this._oscillator.phase}set phase(e){this._oscillator.phase=e}get sourceType(){return this._sourceType}set sourceType(e){let t="sine";this._oscillator.type!=="pwm"&&this._oscillator.type!=="pulse"&&(t=this._oscillator.type),e==="fm"?this.type="fm"+t:e==="am"?this.type="am"+t:e==="fat"?this.type="fat"+t:e==="oscillator"?this.type=t:e==="pulse"?this.type="pulse":e==="pwm"&&(this.type="pwm")}_getOscType(e,t){return e instanceof Df[t]}get baseType(){return this._oscillator.baseType}set baseType(e){!this._getOscType(this._oscillator,"pulse")&&!this._getOscType(this._oscillator,"pwm")&&e!=="pulse"&&e!=="pwm"&&(this._oscillator.baseType=e)}get width(){if(this._getOscType(this._oscillator,"pulse"))return this._oscillator.width}get count(){if(this._getOscType(this._oscillator,"fat"))return this._oscillator.count}set count(e){this._getOscType(this._oscillator,"fat")&&xs(e)&&(this._oscillator.count=e)}get spread(){if(this._getOscType(this._oscillator,"fat"))return this._oscillator.spread}set spread(e){this._getOscType(this._oscillator,"fat")&&xs(e)&&(this._oscillator.spread=e)}get modulationType(){if(this._getOscType(this._oscillator,"fm")||this._getOscType(this._oscillator,"am"))return this._oscillator.modulationType}set modulationType(e){(this._getOscType(this._oscillator,"fm")||this._getOscType(this._oscillator,"am"))&&Gn(e)&&(this._oscillator.modulationType=e)}get modulationIndex(){if(this._getOscType(this._oscillator,"fm"))return this._oscillator.modulationIndex}get harmonicity(){if(this._getOscType(this._oscillator,"fm")||this._getOscType(this._oscillator,"am"))return this._oscillator.harmonicity}get modulationFrequency(){if(this._getOscType(this._oscillator,"pwm"))return this._oscillator.modulationFrequency}asArray(e=1024){return Ne(this,void 0,void 0,function*(){return cr(this,e)})}dispose(){return super.dispose(),this.detune.dispose(),this.frequency.dispose(),this._oscillator.dispose(),this}}class ch extends Fe{constructor(){super(Object.assign(Z(ch.getDefaults(),arguments,["value"]))),this.override=!1,this.name="Add",this._sum=new Ie({context:this.context}),this.input=this._sum,this.output=this._sum,this.addend=this._param,Hi(this._constantSource,this._sum)}static getDefaults(){return Object.assign(Fe.getDefaults(),{value:0})}dispose(){return super.dispose(),this._sum.dispose(),this}}class Ba extends Xn{constructor(){super(Object.assign(Z(Ba.getDefaults(),arguments,["min","max"]))),this.name="Scale";const e=Z(Ba.getDefaults(),arguments,["min","max"]);this._mult=this.input=new Es({context:this.context,value:e.max-e.min}),this._add=this.output=new ch({context:this.context,value:e.min}),this._min=e.min,this._max=e.max,this.input.connect(this.output)}static getDefaults(){return Object.assign(Xn.getDefaults(),{max:1,min:0})}get min(){return this._min}set min(e){this._min=e,this._setRange()}get max(){return this._max}set max(e){this._max=e,this._setRange()}_setRange(){this._add.value=this._min,this._mult.value=this._max-this._min}dispose(){return super.dispose(),this._add.dispose(),this._mult.dispose(),this}}function rg(s,e=1/0){const t=new WeakMap;return function(n,r){Reflect.defineProperty(n,r,{configurable:!0,enumerable:!0,get:function(){return t.get(this)},set:function(i){hn(i,s,e),t.set(this,i)}})}}function ss(s,e=1/0){const t=new WeakMap;return function(n,r){Reflect.defineProperty(n,r,{configurable:!0,enumerable:!0,get:function(){return t.get(this)},set:function(i){hn(this.toSeconds(i),s,e),t.set(this,i)}})}}class to extends gt{constructor(){super(Z(to.getDefaults(),arguments,["url","onload"])),this.name="Player",this._activeSources=new Set;const e=Z(to.getDefaults(),arguments,["url","onload"]);this._buffer=new Ce({onload:this._onload.bind(this,e.onload),onerror:e.onerror,reverse:e.reverse,url:e.url}),this.autostart=e.autostart,this._loop=e.loop,this._loopStart=e.loopStart,this._loopEnd=e.loopEnd,this._playbackRate=e.playbackRate,this.fadeIn=e.fadeIn,this.fadeOut=e.fadeOut}static getDefaults(){return Object.assign(gt.getDefaults(),{autostart:!1,fadeIn:0,fadeOut:0,loop:!1,loopEnd:0,loopStart:0,onload:Ee,onerror:Ee,playbackRate:1,reverse:!1})}load(e){return Ne(this,void 0,void 0,function*(){return yield this._buffer.load(e),this._onload(),this})}_onload(e=Ee){e(),this.autostart&&this.start()}_onSourceEnd(e){this.onstop(this),this._activeSources.delete(e),this._activeSources.size===0&&!this._synced&&this._state.getValueAtTime(this.now())==="started"&&(this._state.cancel(this.now()),this._state.setStateAtTime("stopped",this.now()))}start(e,t,n){return super.start(e,t,n),this}_start(e,t,n){this._loop?t=Rr(t,this._loopStart):t=Rr(t,0);const r=this.toSeconds(t),i=n;n=Rr(n,Math.max(this._buffer.duration-r,0));let o=this.toSeconds(n);o=o/this._playbackRate,e=this.toSeconds(e);const a=new Br({url:this._buffer,context:this.context,fadeIn:this.fadeIn,fadeOut:this.fadeOut,loop:this._loop,loopEnd:this._loopEnd,loopStart:this._loopStart,onended:this._onSourceEnd.bind(this),playbackRate:this._playbackRate}).connect(this.output);!this._loop&&!this._synced&&(this._state.cancel(e+o),this._state.setStateAtTime("stopped",e+o,{implicitEnd:!0})),this._activeSources.add(a),this._loop&&zt(i)?a.start(e,r):a.start(e,r,o-this.toSeconds(this.fadeOut))}_stop(e){const t=this.toSeconds(e);this._activeSources.forEach(n=>n.stop(t))}restart(e,t,n){return super.restart(e,t,n),this}_restart(e,t,n){var r;(r=[...this._activeSources].pop())===null||r===void 0||r.stop(e),this._start(e,t,n)}seek(e,t){const n=this.toSeconds(t);if(this._state.getValueAtTime(n)==="started"){const r=this.toSeconds(e);this._stop(n),this._start(n,r)}return this}setLoopPoints(e,t){return this.loopStart=e,this.loopEnd=t,this}get loopStart(){return this._loopStart}set loopStart(e){this._loopStart=e,this.buffer.loaded&&hn(this.toSeconds(e),0,this.buffer.duration),this._activeSources.forEach(t=>{t.loopStart=e})}get loopEnd(){return this._loopEnd}set loopEnd(e){this._loopEnd=e,this.buffer.loaded&&hn(this.toSeconds(e),0,this.buffer.duration),this._activeSources.forEach(t=>{t.loopEnd=e})}get buffer(){return this._buffer}set buffer(e){this._buffer.set(e)}get loop(){return this._loop}set loop(e){if(this._loop!==e&&(this._loop=e,this._activeSources.forEach(t=>{t.loop=e}),e)){const t=this._state.getNextState("stopped",this.now());t&&this._state.cancel(t.time)}}get playbackRate(){return this._playbackRate}set playbackRate(e){this._playbackRate=e;const t=this.now(),n=this._state.getNextState("stopped",t);n&&n.implicitEnd&&(this._state.cancel(n.time),this._activeSources.forEach(r=>r.cancelStop())),this._activeSources.forEach(r=>{r.playbackRate.setValueAtTime(e,t)})}get reverse(){return this._buffer.reverse}set reverse(e){this._buffer.reverse=e}get loaded(){return this._buffer.loaded}dispose(){return super.dispose(),this._activeSources.forEach(e=>e.dispose()),this._activeSources.clear(),this._buffer.dispose(),this}}fn([ss(0)],to.prototype,"fadeIn",void 0);fn([ss(0)],to.prototype,"fadeOut",void 0);class JA extends Xn{constructor(){super(...arguments),this.name="GainToAudio",this._norm=new er({context:this.context,mapping:e=>Math.abs(e)*2-1}),this.input=this._norm,this.output=this._norm}dispose(){return super.dispose(),this._norm.dispose(),this}}class Qt extends le{constructor(){super(Z(Qt.getDefaults(),arguments,["attack","decay","sustain","release"])),this.name="Envelope",this._sig=new Fe({context:this.context,value:0}),this.output=this._sig,this.input=void 0;const e=Z(Qt.getDefaults(),arguments,["attack","decay","sustain","release"]);this.attack=e.attack,this.decay=e.decay,this.sustain=e.sustain,this.release=e.release,this.attackCurve=e.attackCurve,this.releaseCurve=e.releaseCurve,this.decayCurve=e.decayCurve}static getDefaults(){return Object.assign(le.getDefaults(),{attack:.01,attackCurve:"linear",decay:.1,decayCurve:"exponential",release:1,releaseCurve:"exponential",sustain:.5})}get value(){return this.getValueAtTime(this.now())}_getCurve(e,t){if(Gn(e))return e;{let n;for(n in ta)if(ta[n][t]===e)return n;return e}}_setCurve(e,t,n){if(Gn(n)&&Reflect.has(ta,n)){const r=ta[n];Ws(r)?e!=="_decayCurve"&&(this[e]=r[t]):this[e]=r}else if(cn(n)&&e!=="_decayCurve")this[e]=n;else throw new Error("Envelope: invalid curve: "+n)}get attackCurve(){return this._getCurve(this._attackCurve,"In")}set attackCurve(e){this._setCurve("_attackCurve","In",e)}get releaseCurve(){return this._getCurve(this._releaseCurve,"Out")}set releaseCurve(e){this._setCurve("_releaseCurve","Out",e)}get decayCurve(){return this._getCurve(this._decayCurve,"Out")}set decayCurve(e){this._setCurve("_decayCurve","Out",e)}triggerAttack(e,t=1){this.log("triggerAttack",e,t),e=this.toSeconds(e);let r=this.toSeconds(this.attack);const i=this.toSeconds(this.decay),o=this.getValueAtTime(e);if(o>0){const a=1/r;r=(1-o)/a}if(r0){const n=this.toSeconds(this.release);n{let e,t;const n=[];for(e=0;e<128;e++)n[e]=Math.sin(e/(128-1)*(Math.PI/2));const r=[],i=6.4;for(e=0;e<128-1;e++){t=e/(128-1);const d=Math.sin(t*(Math.PI*2)*i-Math.PI/2)+1;r[e]=d/10+t*.83}r[128-1]=1;const o=[],a=5;for(e=0;e<128;e++)o[e]=Math.ceil(e/(128-1)*a)/a;const c=[];for(e=0;e<128;e++)t=e/(128-1),c[e]=.5*(1-Math.cos(Math.PI*t));const l=[];for(e=0;e<128;e++){t=e/(128-1);const d=Math.pow(t,3)*4+.2,f=Math.cos(d*Math.PI*2*t);l[e]=Math.abs(f*(1-t))}function u(d){const f=new Array(d.length);for(let m=0;mthis._original_triggerRelease(t);const e=Z(nr.getDefaults(),arguments);this._volume=this.output=new ks({context:this.context,volume:e.volume}),this.volume=this._volume.volume,je(this,"volume")}static getDefaults(){return Object.assign(le.getDefaults(),{volume:0})}sync(){return this._syncState()&&(this._syncMethod("triggerAttack",1),this._syncMethod("triggerRelease",0),this.context.transport.on("stop",this._syncedRelease),this.context.transport.on("pause",this._syncedRelease),this.context.transport.on("loopEnd",this._syncedRelease)),this}_syncState(){let e=!1;return this._synced||(this._synced=!0,e=!0),e}_syncMethod(e,t){const n=this["_original_"+e]=this[e];this[e]=(...r)=>{const i=r[t],o=this.context.transport.schedule(a=>{r[t]=a,n.apply(this,r)},i);this._scheduledEvents.push(o)}}unsync(){return this._scheduledEvents.forEach(e=>this.context.transport.clear(e)),this._scheduledEvents=[],this._synced&&(this._synced=!1,this.triggerAttack=this._original_triggerAttack,this.triggerRelease=this._original_triggerRelease,this.context.transport.off("stop",this._syncedRelease),this.context.transport.off("pause",this._syncedRelease),this.context.transport.off("loopEnd",this._syncedRelease)),this}triggerAttackRelease(e,t,n,r){const i=this.toSeconds(n),o=this.toSeconds(t);return this.triggerAttack(e,i,r),this.triggerRelease(i+o),this}dispose(){return super.dispose(),this._volume.dispose(),this.unsync(),this._scheduledEvents=[],this}}class Zn extends nr{constructor(){super(Z(Zn.getDefaults(),arguments));const e=Z(Zn.getDefaults(),arguments);this.portamento=e.portamento,this.onsilence=e.onsilence}static getDefaults(){return Object.assign(nr.getDefaults(),{detune:0,onsilence:Ee,portamento:0})}triggerAttack(e,t,n=1){this.log("triggerAttack",e,t,n);const r=this.toSeconds(t);return this._triggerEnvelopeAttack(r,n),this.setNote(e,r),this}triggerRelease(e){this.log("triggerRelease",e);const t=this.toSeconds(e);return this._triggerEnvelopeRelease(t),this}setNote(e,t){const n=this.toSeconds(t),r=e instanceof Gt?e.toFrequency():e;if(this.portamento>0&&this.getLevelAtTime(n)>.05){const i=this.toSeconds(this.portamento);this.frequency.exponentialRampTo(r,i,n)}else this.frequency.setValueAtTime(r,n);return this}}fn([ss(0)],Zn.prototype,"portamento",void 0);class wc extends Qt{constructor(){super(Z(wc.getDefaults(),arguments,["attack","decay","sustain","release"])),this.name="AmplitudeEnvelope",this._gainNode=new Ie({context:this.context,gain:0}),this.output=this._gainNode,this.input=this._gainNode,this._sig.connect(this._gainNode.gain),this.output=this._gainNode,this.input=this._gainNode}dispose(){return super.dispose(),this._gainNode.dispose(),this}}class no extends Zn{constructor(){super(Z(no.getDefaults(),arguments)),this.name="Synth";const e=Z(no.getDefaults(),arguments);this.oscillator=new tr(Object.assign({context:this.context,detune:e.detune,onstop:()=>this.onsilence(this)},e.oscillator)),this.frequency=this.oscillator.frequency,this.detune=this.oscillator.detune,this.envelope=new wc(Object.assign({context:this.context},e.envelope)),this.oscillator.chain(this.envelope,this.output),je(this,["oscillator","frequency","detune","envelope"])}static getDefaults(){return Object.assign(Zn.getDefaults(),{envelope:Object.assign(Tr(Qt.getDefaults(),Object.keys(le.getDefaults())),{attack:.005,decay:.1,release:1,sustain:.3}),oscillator:Object.assign(Tr(tr.getDefaults(),[...Object.keys(gt.getDefaults()),"frequency","detune"]),{type:"triangle"})})}_triggerEnvelopeAttack(e,t){if(this.envelope.triggerAttack(e,t),this.oscillator.start(e),this.envelope.sustain===0){const n=this.toSeconds(this.envelope.attack),r=this.toSeconds(this.envelope.decay);this.oscillator.stop(e+n+r)}}_triggerEnvelopeRelease(e){this.envelope.triggerRelease(e),this.oscillator.stop(e+this.toSeconds(this.envelope.release))}getLevelAtTime(e){return e=this.toSeconds(e),this.envelope.getValueAtTime(e)}dispose(){return super.dispose(),this.oscillator.dispose(),this.envelope.dispose(),this}}class so extends le{constructor(){super(Z(so.getDefaults(),arguments,["frequency","type"])),this.name="BiquadFilter";const e=Z(so.getDefaults(),arguments,["frequency","type"]);this._filter=this.context.createBiquadFilter(),this.input=this.output=this._filter,this.Q=new Se({context:this.context,units:"number",value:e.Q,param:this._filter.Q}),this.frequency=new Se({context:this.context,units:"frequency",value:e.frequency,param:this._filter.frequency}),this.detune=new Se({context:this.context,units:"cents",value:e.detune,param:this._filter.detune}),this.gain=new Se({context:this.context,units:"decibels",convert:!1,value:e.gain,param:this._filter.gain}),this.type=e.type}static getDefaults(){return Object.assign(le.getDefaults(),{Q:1,type:"lowpass",frequency:350,detune:0,gain:0})}get type(){return this._filter.type}set type(e){pe(["lowpass","highpass","bandpass","lowshelf","highshelf","notch","allpass","peaking"].indexOf(e)!==-1,`Invalid filter type: ${e}`),this._filter.type=e}getFrequencyResponse(e=128){const t=new Float32Array(e);for(let o=0;on.type=e)}get rolloff(){return this._rolloff}set rolloff(e){const t=xs(e)?e:parseInt(e,10),n=[-12,-24,-48,-96];let r=n.indexOf(t);pe(r!==-1,`rolloff can only be ${n.join(", ")}`),r+=1,this._rolloff=t,this.input.disconnect(),this._filters.forEach(i=>i.disconnect()),this._filters=new Array(r);for(let i=0;i1);return this._filters.forEach(()=>{t.getFrequencyResponse(e).forEach((i,o)=>n[o]*=i)}),t.dispose(),n}dispose(){return super.dispose(),this._filters.forEach(e=>{e.dispose()}),nh(this,["detune","frequency","gain","Q"]),this.frequency.dispose(),this.Q.dispose(),this.detune.dispose(),this.gain.dispose(),this}}class ro extends Qt{constructor(){super(Z(ro.getDefaults(),arguments,["attack","decay","sustain","release"])),this.name="FrequencyEnvelope";const e=Z(ro.getDefaults(),arguments,["attack","decay","sustain","release"]);this._octaves=e.octaves,this._baseFrequency=this.toFrequency(e.baseFrequency),this._exponent=this.input=new Gi({context:this.context,value:e.exponent}),this._scale=this.output=new Ba({context:this.context,min:this._baseFrequency,max:this._baseFrequency*Math.pow(2,this._octaves)}),this._sig.chain(this._exponent,this._scale)}static getDefaults(){return Object.assign(Qt.getDefaults(),{baseFrequency:200,exponent:1,octaves:4})}get baseFrequency(){return this._baseFrequency}set baseFrequency(e){const t=this.toFrequency(e);hn(t,0),this._baseFrequency=t,this._scale.min=this._baseFrequency,this.octaves=this._octaves}get octaves(){return this._octaves}set octaves(e){this._octaves=e,this._scale.max=this._baseFrequency*Math.pow(2,e)}get exponent(){return this._exponent.value}set exponent(e){this._exponent.value=e}dispose(){return super.dispose(),this._exponent.dispose(),this._scale.dispose(),this}}class io extends Zn{constructor(){super(Z(io.getDefaults(),arguments)),this.name="MonoSynth";const e=Z(io.getDefaults(),arguments);this.oscillator=new tr(Object.assign(e.oscillator,{context:this.context,detune:e.detune,onstop:()=>this.onsilence(this)})),this.frequency=this.oscillator.frequency,this.detune=this.oscillator.detune,this.filter=new qr(Object.assign(e.filter,{context:this.context})),this.filterEnvelope=new ro(Object.assign(e.filterEnvelope,{context:this.context})),this.envelope=new wc(Object.assign(e.envelope,{context:this.context})),this.oscillator.chain(this.filter,this.envelope,this.output),this.filterEnvelope.connect(this.filter.frequency),je(this,["oscillator","frequency","detune","filter","filterEnvelope","envelope"])}static getDefaults(){return Object.assign(Zn.getDefaults(),{envelope:Object.assign(Tr(Qt.getDefaults(),Object.keys(le.getDefaults())),{attack:.005,decay:.1,release:1,sustain:.9}),filter:Object.assign(Tr(qr.getDefaults(),Object.keys(le.getDefaults())),{Q:1,rolloff:-12,type:"lowpass"}),filterEnvelope:Object.assign(Tr(ro.getDefaults(),Object.keys(le.getDefaults())),{attack:.6,baseFrequency:200,decay:.2,exponent:2,octaves:3,release:2,sustain:.5}),oscillator:Object.assign(Tr(tr.getDefaults(),Object.keys(gt.getDefaults())),{type:"sawtooth"})})}_triggerEnvelopeAttack(e,t=1){if(this.envelope.triggerAttack(e,t),this.filterEnvelope.triggerAttack(e),this.oscillator.start(e),this.envelope.sustain===0){const n=this.toSeconds(this.envelope.attack),r=this.toSeconds(this.envelope.decay);this.oscillator.stop(e+n+r)}}_triggerEnvelopeRelease(e){this.envelope.triggerRelease(e),this.filterEnvelope.triggerRelease(e),this.oscillator.stop(e+this.toSeconds(this.envelope.release))}getLevelAtTime(e){return e=this.toSeconds(e),this.envelope.getValueAtTime(e)}dispose(){return super.dispose(),this.oscillator.dispose(),this.envelope.dispose(),this.filterEnvelope.dispose(),this.filter.dispose(),this}}class oo extends no{constructor(){super(Z(oo.getDefaults(),arguments)),this.name="MembraneSynth",this.portamento=0;const e=Z(oo.getDefaults(),arguments);this.pitchDecay=e.pitchDecay,this.octaves=e.octaves,je(this,["oscillator","envelope"])}static getDefaults(){return Dr(Zn.getDefaults(),no.getDefaults(),{envelope:{attack:.001,attackCurve:"exponential",decay:.4,release:1.4,sustain:.01},octaves:10,oscillator:{type:"sine"},pitchDecay:.05})}setNote(e,t){const n=this.toSeconds(t),r=this.toFrequency(e instanceof Gt?e.toFrequency():e),i=r*this.octaves;return this.oscillator.frequency.setValueAtTime(i,n),this.oscillator.frequency.exponentialRampToValueAtTime(r,n+this.toSeconds(this.pitchDecay)),this}dispose(){return super.dispose(),this}}fn([rg(0)],oo.prototype,"octaves",void 0);fn([ss(0)],oo.prototype,"pitchDecay",void 0);const ig=new Set;function lh(s){ig.add(s)}function og(s,e){const t=`registerProcessor("${s}", ${e})`;ig.add(t)}const eD=` + /** + * The base AudioWorkletProcessor for use in Tone.js. Works with the [[ToneAudioWorklet]]. + */ + class ToneAudioWorkletProcessor extends AudioWorkletProcessor { + + constructor(options) { + + super(options); + /** + * If the processor was disposed or not. Keep alive until it's disposed. + */ + this.disposed = false; + /** + * The number of samples in the processing block + */ + this.blockSize = 128; + /** + * the sample rate + */ + this.sampleRate = sampleRate; + + this.port.onmessage = (event) => { + // when it receives a dispose + if (event.data === "dispose") { + this.disposed = true; + } + }; + } + } +`;lh(eD);const tD=` + /** + * Abstract class for a single input/output processor. + * has a 'generate' function which processes one sample at a time + */ + class SingleIOProcessor extends ToneAudioWorkletProcessor { + + constructor(options) { + super(Object.assign(options, { + numberOfInputs: 1, + numberOfOutputs: 1 + })); + /** + * Holds the name of the parameter and a single value of that + * parameter at the current sample + * @type { [name: string]: number } + */ + this.params = {} + } + + /** + * Generate an output sample from the input sample and parameters + * @abstract + * @param input number + * @param channel number + * @param parameters { [name: string]: number } + * @returns number + */ + generate(){} + + /** + * Update the private params object with the + * values of the parameters at the given index + * @param parameters { [name: string]: Float32Array }, + * @param index number + */ + updateParams(parameters, index) { + for (const paramName in parameters) { + const param = parameters[paramName]; + if (param.length > 1) { + this.params[paramName] = parameters[paramName][index]; + } else { + this.params[paramName] = parameters[paramName][0]; + } + } + } + + /** + * Process a single frame of the audio + * @param inputs Float32Array[][] + * @param outputs Float32Array[][] + */ + process(inputs, outputs, parameters) { + const input = inputs[0]; + const output = outputs[0]; + // get the parameter values + const channelCount = Math.max(input && input.length || 0, output.length); + for (let sample = 0; sample < this.blockSize; sample++) { + this.updateParams(parameters, sample); + for (let channel = 0; channel < channelCount; channel++) { + const inputSample = input && input.length ? input[channel][sample] : 0; + output[channel][sample] = this.generate(inputSample, channel, this.params); + } + } + return !this.disposed; + } + }; +`;lh(tD);const nD=` + /** + * A multichannel buffer for use within an AudioWorkletProcessor as a delay line + */ + class DelayLine { + + constructor(size, channels) { + this.buffer = []; + this.writeHead = [] + this.size = size; + + // create the empty channels + for (let i = 0; i < channels; i++) { + this.buffer[i] = new Float32Array(this.size); + this.writeHead[i] = 0; + } + } + + /** + * Push a value onto the end + * @param channel number + * @param value number + */ + push(channel, value) { + this.writeHead[channel] += 1; + if (this.writeHead[channel] > this.size) { + this.writeHead[channel] = 0; + } + this.buffer[channel][this.writeHead[channel]] = value; + } + + /** + * Get the recorded value of the channel given the delay + * @param channel number + * @param delay number delay samples + */ + get(channel, delay) { + let readHead = this.writeHead[channel] - Math.floor(delay); + if (readHead < 0) { + readHead += this.size; + } + return this.buffer[channel][readHead]; + } + } +`;lh(nD);const sD="feedback-comb-filter",rD=` + class FeedbackCombFilterWorklet extends SingleIOProcessor { + + constructor(options) { + super(options); + this.delayLine = new DelayLine(this.sampleRate, options.channelCount || 2); + } + + static get parameterDescriptors() { + return [{ + name: "delayTime", + defaultValue: 0.1, + minValue: 0, + maxValue: 1, + automationRate: "k-rate" + }, { + name: "feedback", + defaultValue: 0.5, + minValue: 0, + maxValue: 0.9999, + automationRate: "k-rate" + }]; + } + + generate(input, channel, parameters) { + const delayedSample = this.delayLine.get(channel, parameters.delayTime * this.sampleRate); + this.delayLine.push(channel, input + delayedSample * parameters.feedback); + return delayedSample; + } + } +`;og(sD,rD);class ao extends nr{constructor(){super(Z(ao.getDefaults(),arguments,["urls","onload","baseUrl"],"urls")),this.name="Sampler",this._activeSources=new Map;const e=Z(ao.getDefaults(),arguments,["urls","onload","baseUrl"],"urls"),t={};Object.keys(e.urls).forEach(n=>{const r=parseInt(n,10);if(pe(ea(n)||xs(r)&&isFinite(r),`url key is neither a note or midi pitch: ${n}`),ea(n)){const i=new Gt(this.context,n).toMidi();t[i]=e.urls[n]}else xs(r)&&isFinite(r)&&(t[r]=e.urls[r])}),this._buffers=new oh({urls:t,onload:e.onload,baseUrl:e.baseUrl,onerror:e.onerror}),this.attack=e.attack,this.release=e.release,this.curve=e.curve,this._buffers.loaded&&Promise.resolve().then(e.onload)}static getDefaults(){return Object.assign(nr.getDefaults(),{attack:0,baseUrl:"",curve:"exponential",onload:Ee,onerror:Ee,release:.1,urls:{}})}_findClosest(e){let n=0;for(;n<96;){if(this._buffers.has(e+n))return-n;if(this._buffers.has(e-n))return n;n++}throw new Error(`No available buffers for note: ${e}`)}triggerAttack(e,t,n=1){return this.log("triggerAttack",e,t,n),Array.isArray(e)||(e=[e]),e.forEach(r=>{const i=sg(new Gt(this.context,r).toFrequency()),o=Math.round(i),a=i-o,c=this._findClosest(o),l=o-c,u=this._buffers.get(l),h=ng(c+a),d=new Br({url:u,context:this.context,curve:this.curve,fadeIn:this.attack,fadeOut:this.release,playbackRate:h}).connect(this.output);d.start(t,0,u.duration/h,n),cn(this._activeSources.get(o))||this._activeSources.set(o,[]),this._activeSources.get(o).push(d),d.onended=()=>{if(this._activeSources&&this._activeSources.has(o)){const f=this._activeSources.get(o),m=f.indexOf(d);m!==-1&&f.splice(m,1)}}}),this}triggerRelease(e,t){return this.log("triggerRelease",e,t),Array.isArray(e)||(e=[e]),e.forEach(n=>{const r=new Gt(this.context,n).toMidi();if(this._activeSources.has(r)&&this._activeSources.get(r).length){const i=this._activeSources.get(r);t=this.toSeconds(t),i.forEach(o=>{o.stop(t)}),this._activeSources.set(r,[])}}),this}releaseAll(e){const t=this.toSeconds(e);return this._activeSources.forEach(n=>{for(;n.length;)n.shift().stop(t)}),this}sync(){return this._syncState()&&(this._syncMethod("triggerAttack",1),this._syncMethod("triggerRelease",1)),this}triggerAttackRelease(e,t,n,r=1){const i=this.toSeconds(n);return this.triggerAttack(e,i,r),cn(t)?(pe(cn(e),"notes must be an array when duration is array"),e.forEach((o,a)=>{const c=t[Math.min(a,t.length-1)];this.triggerRelease(o,i+this.toSeconds(c))})):this.triggerRelease(e,i+this.toSeconds(t)),this}add(e,t,n){if(pe(ea(e)||isFinite(e),`note must be a pitch or midi: ${e}`),ea(e)){const r=new Gt(this.context,e).toMidi();this._buffers.add(r,t,n)}else this._buffers.add(e,t,n);return this}get loaded(){return this._buffers.loaded}dispose(){return super.dispose(),this._buffers.dispose(),this._activeSources.forEach(e=>{e.forEach(t=>t.dispose())}),this._activeSources.clear(),this}}fn([ss(0)],ao.prototype,"attack",void 0);fn([ss(0)],ao.prototype,"release",void 0);class Wa extends le{constructor(){super(Object.assign(Z(Wa.getDefaults(),arguments,["fade"]))),this.name="CrossFade",this._panner=this.context.createStereoPanner(),this._split=this.context.createChannelSplitter(2),this._g2a=new JA({context:this.context}),this.a=new Ie({context:this.context,gain:0}),this.b=new Ie({context:this.context,gain:0}),this.output=new Ie({context:this.context}),this._internalChannels=[this.a,this.b];const e=Z(Wa.getDefaults(),arguments,["fade"]);this.fade=new Fe({context:this.context,units:"normalRange",value:e.fade}),je(this,"fade"),this.context.getConstant(1).connect(this._panner),this._panner.connect(this._split),this._panner.channelCount=1,this._panner.channelCountMode="explicit",ws(this._split,this.a.gain,0),ws(this._split,this.b.gain,1),this.fade.chain(this._g2a,this._panner.pan),this.a.connect(this.output),this.b.connect(this.output)}static getDefaults(){return Object.assign(le.getDefaults(),{fade:.5})}dispose(){return super.dispose(),this.a.dispose(),this.b.dispose(),this.output.dispose(),this.fade.dispose(),this._g2a.dispose(),this._panner.disconnect(),this._split.disconnect(),this}}class Rf extends le{constructor(e){super(e),this.name="Effect",this._dryWet=new Wa({context:this.context}),this.wet=this._dryWet.fade,this.effectSend=new Ie({context:this.context}),this.effectReturn=new Ie({context:this.context}),this.input=new Ie({context:this.context}),this.output=this._dryWet,this.input.fan(this._dryWet.a,this.effectSend),this.effectReturn.connect(this._dryWet.b),this.wet.setValueAtTime(e.wet,0),this._internalChannels=[this.effectReturn,this.effectSend],je(this,"wet")}static getDefaults(){return Object.assign(le.getDefaults(),{wet:1})}connectEffect(e){return this._internalChannels.push(e),this.effectSend.chain(e,this.effectReturn),this}dispose(){return super.dispose(),this._dryWet.dispose(),this.effectSend.dispose(),this.effectReturn.dispose(),this.wet.dispose(),this}}class qa extends le{constructor(){super(Object.assign(Z(qa.getDefaults(),arguments,["pan"]))),this.name="Panner",this._panner=this.context.createStereoPanner(),this.input=this._panner,this.output=this._panner;const e=Z(qa.getDefaults(),arguments,["pan"]);this.pan=new Se({context:this.context,param:this._panner.pan,value:e.pan,minValue:-1,maxValue:1}),this._panner.channelCount=e.channelCount,this._panner.channelCountMode="explicit",je(this,"pan")}static getDefaults(){return Object.assign(le.getDefaults(),{pan:0,channelCount:1})}dispose(){return super.dispose(),this._panner.disconnect(),this.pan.dispose(),this}}const iD="bit-crusher",oD=` + class BitCrusherWorklet extends SingleIOProcessor { + + static get parameterDescriptors() { + return [{ + name: "bits", + defaultValue: 12, + minValue: 1, + maxValue: 16, + automationRate: 'k-rate' + }]; + } + + generate(input, _channel, parameters) { + const step = Math.pow(0.5, parameters.bits - 1); + const val = step * Math.floor(input / step + 0.5); + return val; + } + } +`;og(iD,oD);class Ha extends le{constructor(){super(Z(Ha.getDefaults(),arguments,["channels"])),this.name="Merge";const e=Z(Ha.getDefaults(),arguments,["channels"]);this._merger=this.output=this.input=this.context.createChannelMerger(e.channels)}static getDefaults(){return Object.assign(le.getDefaults(),{channels:2})}dispose(){return super.dispose(),this._merger.disconnect(),this}}class Ya extends Rf{constructor(){super(Z(Ya.getDefaults(),arguments,["decay"])),this.name="Reverb",this._convolver=this.context.createConvolver(),this.ready=Promise.resolve();const e=Z(Ya.getDefaults(),arguments,["decay"]);this._decay=e.decay,this._preDelay=e.preDelay,this.generate(),this.connectEffect(this._convolver)}static getDefaults(){return Object.assign(Rf.getDefaults(),{decay:1.5,preDelay:.01})}get decay(){return this._decay}set decay(e){e=this.toSeconds(e),hn(e,.001),this._decay=e,this.generate()}get preDelay(){return this._preDelay}set preDelay(e){e=this.toSeconds(e),hn(e,0),this._preDelay=e,this.generate()}generate(){return Ne(this,void 0,void 0,function*(){const e=this.ready,t=new bc(2,this._decay+this._preDelay,this.context.sampleRate),n=new Zi({context:t}),r=new Zi({context:t}),i=new Ha({context:t});n.connect(i,0,0),r.connect(i,0,1);const o=new Ie({context:t}).toDestination();i.connect(o),n.start(0),r.start(0),o.gain.setValueAtTime(0,0),o.gain.setValueAtTime(1,this._preDelay),o.gain.exponentialApproachValueAtTime(0,this._preDelay,this.decay);const a=t.render();return this.ready=a.then(Ee),yield e,this._convolver.buffer=(yield a).get(),this})}dispose(){return super.dispose(),this._convolver.disconnect(),this}}class Je extends le{constructor(){super(Z(Je.getDefaults(),arguments,["solo"])),this.name="Solo";const e=Z(Je.getDefaults(),arguments,["solo"]);this.input=this.output=new Ie({context:this.context}),Je._allSolos.has(this.context)||Je._allSolos.set(this.context,new Set),Je._allSolos.get(this.context).add(this),this.solo=e.solo}static getDefaults(){return Object.assign(le.getDefaults(),{solo:!1})}get solo(){return this._isSoloed()}set solo(e){e?this._addSolo():this._removeSolo(),Je._allSolos.get(this.context).forEach(t=>t._updateSolo())}get muted(){return this.input.gain.value===0}_addSolo(){Je._soloed.has(this.context)||Je._soloed.set(this.context,new Set),Je._soloed.get(this.context).add(this)}_removeSolo(){Je._soloed.has(this.context)&&Je._soloed.get(this.context).delete(this)}_isSoloed(){return Je._soloed.has(this.context)&&Je._soloed.get(this.context).has(this)}_noSolos(){return!Je._soloed.has(this.context)||Je._soloed.has(this.context)&&Je._soloed.get(this.context).size===0}_updateSolo(){this._isSoloed()?this.input.gain.value=1:this._noSolos()?this.input.gain.value=1:this.input.gain.value=0}dispose(){return super.dispose(),Je._allSolos.get(this.context).delete(this),this._removeSolo(),this}}Je._allSolos=new Map;Je._soloed=new Map;class Ga extends le{constructor(){super(Z(Ga.getDefaults(),arguments,["pan","volume"])),this.name="PanVol";const e=Z(Ga.getDefaults(),arguments,["pan","volume"]);this._panner=this.input=new qa({context:this.context,pan:e.pan,channelCount:e.channelCount}),this.pan=this._panner.pan,this._volume=this.output=new ks({context:this.context,volume:e.volume}),this.volume=this._volume.volume,this._panner.connect(this._volume),this.mute=e.mute,je(this,["pan","volume"])}static getDefaults(){return Object.assign(le.getDefaults(),{mute:!1,pan:0,volume:0,channelCount:1})}get mute(){return this._volume.mute}set mute(e){this._volume.mute=e}dispose(){return super.dispose(),this._panner.dispose(),this.pan.dispose(),this._volume.dispose(),this.volume.dispose(),this}}class js extends le{constructor(){super(Z(js.getDefaults(),arguments,["volume","pan"])),this.name="Channel";const e=Z(js.getDefaults(),arguments,["volume","pan"]);this._solo=this.input=new Je({solo:e.solo,context:this.context}),this._panVol=this.output=new Ga({context:this.context,pan:e.pan,volume:e.volume,mute:e.mute,channelCount:e.channelCount}),this.pan=this._panVol.pan,this.volume=this._panVol.volume,this._solo.connect(this._panVol),je(this,["pan","volume"])}static getDefaults(){return Object.assign(le.getDefaults(),{pan:0,volume:0,mute:!1,solo:!1,channelCount:1})}get solo(){return this._solo.solo}set solo(e){this._solo.solo=e}get muted(){return this._solo.muted||this.mute}get mute(){return this._panVol.mute}set mute(e){this._panVol.mute=e}_getBus(e){return js.buses.has(e)||js.buses.set(e,new Ie({context:this.context})),js.buses.get(e)}send(e,t=0){const n=this._getBus(e),r=new Ie({context:this.context,units:"decibels",gain:t});return this.connect(r),r.connect(n),r}receive(e){return this._getBus(e).connect(this),this}dispose(){return super.dispose(),this._panVol.dispose(),this.pan.dispose(),this.volume.dispose(),this._solo.dispose(),this}}js.buses=new Map;class aD extends le{constructor(){super(...arguments),this.name="Listener",this.positionX=new Se({context:this.context,param:this.context.rawContext.listener.positionX}),this.positionY=new Se({context:this.context,param:this.context.rawContext.listener.positionY}),this.positionZ=new Se({context:this.context,param:this.context.rawContext.listener.positionZ}),this.forwardX=new Se({context:this.context,param:this.context.rawContext.listener.forwardX}),this.forwardY=new Se({context:this.context,param:this.context.rawContext.listener.forwardY}),this.forwardZ=new Se({context:this.context,param:this.context.rawContext.listener.forwardZ}),this.upX=new Se({context:this.context,param:this.context.rawContext.listener.upX}),this.upY=new Se({context:this.context,param:this.context.rawContext.listener.upY}),this.upZ=new Se({context:this.context,param:this.context.rawContext.listener.upZ})}static getDefaults(){return Object.assign(le.getDefaults(),{positionX:0,positionY:0,positionZ:0,forwardX:0,forwardY:0,forwardZ:-1,upX:0,upY:1,upZ:0})}dispose(){return super.dispose(),this.positionX.dispose(),this.positionY.dispose(),this.positionZ.dispose(),this.forwardX.dispose(),this.forwardY.dispose(),this.forwardZ.dispose(),this.upX.dispose(),this.upY.dispose(),this.upZ.dispose(),this}}yc(s=>{s.listener=new aD({context:s})});vc(s=>{s.listener.dispose()});rn().transport;const uh=rn().destination;rn().destination;rn().listener;rn().draw;rn();const hh=new qr(900,"highpass"),ag=new ks(-6);ag.chain(hh,uh);const cD=new Ya(3).connect(ag),kc=new io({envelope:{attack:0,decay:.9,sustain:.2,release:.1}});kc.oscillator.type="triangle2";kc.volume.value=-6;kc.chain(hh,uh);const Tc=new io({envelope:{attack:.4,decay:.9,sustain:.7,release:.6}}).connect(cD);Tc.oscillator.type="triangle";Tc.volume.value=-6;Tc.chain(hh,uh);function lD(){return Math.floor((Math.random()-.5)*20)}let Pf=!1;const uD=async(s=0)=>{Pf||(await LA(),Pf=!0);try{if(s>2e3)Tc.triggerAttackRelease(60,.3);else if(s>1e3){let e=310;e+=lD(),kc.triggerAttackRelease(e,.001)}}catch(e){console.warn(e)}},na=1800,hD=(s,e)=>s.clone().normalize().clone().negate().normalize().multiplyScalar(e).add(s),dD=(s,e,t,n,r)=>{const i=new dp,o=1e-5;i.absarc(o,o,o,-Math.PI/2,-Math.PI,!0),i.absarc(o,e-n*2,o,Math.PI,Math.PI/2,!0),i.absarc(s-n*2,e-n*2,o,Math.PI/2,0,!0),i.absarc(s-n*2,o,o,0,-Math.PI/2,!0);const a=new gy(i,{depth:t-n*2,bevelEnabled:!0,bevelSegments:r,steps:2,bevelSize:n,bevelThickness:n,curveSegments:r});a.center();const c=[],l=a.getAttribute("normal"),u=a.getAttribute("position");for(let h=0;h.9?(m=f.x/s+.5,p=1-(f.z/t+.5)):Math.abs(d.x)>.9?(m=-f.z/t+.5,p=1-(-f.y/e+.5)):Math.abs(d.z)>.9&&(m=f.x/s+.5,p=1-(-f.y/e+.5)),c.push(m,p)}return a.setAttribute("uv",new oa(c,2)),a};dD(10,10,10,2,10);new my(10,10,10);const fD=500,pD=800;let ki=null;const mD=500,cg=(s,e)=>{if(ki)return null;ki=setTimeout(()=>{ki&&(clearTimeout(ki),ki=null)},mD);const t=[];return s.forEach(r=>{const i=e.position.distanceTo(uE.set(r.x,r.y,r.z));ir.distance-i.distance).slice(0,fD).map(r=>r.id)};let vr,Ti;const gD=1e3,_D=2e3,yD=s=>{const e=As(),t=ds(x=>x.isUserDragging),n=ds(x=>x.isUserScrolling),r=ds(x=>x.setUserMovedCamera),{data:i,graphStyle:o,showSelectionGraph:a,setNearbyNodeIds:c,cameraFocusTrigger:l,graphRadius:u}=ht(x=>x),{camera:h}=We(),[d,f]=b.useState(!1),[m,p]=b.useState(!1),[g,_]=b.useState(lf),w=b.useMemo(()=>{if(a)return new _e(0,0,0);const x=i==null?void 0:i.nodes.find(D=>D.ref_id===(e==null?void 0:e.ref_id)),C=u+300;let S=new _e(0,0,C);if(x&&i){const D=i==null?void 0:i.nodes.filter(B=>{var U;return(U=x.children)==null?void 0:U.find(z=>z===B.id)}),O=new _e(x.x,x.y,x.z);let L=new _e(0,0,0);D.map(B=>(L=L.add(new _e(B.x,B.y,B.z).normalize()),B));const j=x.scale?1-1/(x.scale+10):1,W=O.sub(L).multiplyScalar(.8*j);S=O.add(W)}return S},[a,e,i,u]),k=b.useMemo(()=>{if(a)return new _e(0,0,0);const x=i==null?void 0:i.nodes.find(C=>C.ref_id===(e==null?void 0:e.ref_id));return new _e((x==null?void 0:x.x)||0,(x==null?void 0:x.y)||0,(x==null?void 0:x.z)||0)},[a,e,i]);b.useEffect(()=>{var x;a&&((x=s.current)==null||x.setLookAt(fs.x,fs.y,fs.z,0,0,0,!1)),v()},[a]),b.useEffect(()=>{a?_(fE):(e==null?void 0:e.node_type)==="topic"?_(dE):_(lf)},[e,_,a]),b.useEffect(()=>{y()},[l]),b.useEffect(()=>{(t||n)&&(f(!0),p(!0))},[t,n,f,p]),b.useEffect(()=>{if(e)if(!a&&o==="earth"&&(s!=null&&s.current)){const x=s.current.camera.position.distanceTo(new _e),C=hD(k,-x/2);s.current.setLookAt(C.x,C.y,C.z,0,0,0,!0)}else vr&&clearTimeout(vr),vr=setTimeout(()=>{p(!0),clearTimeout(vr)},_D),v();return()=>{vr&&clearTimeout(vr),Ti&&clearTimeout(Ti)}},[e]),An(x=>{s.current&&(d||T(w,x.camera),m||E(k,x.camera))});const v=()=>{if(e){const x=h.position.distanceTo(w);uD(x)}y()},y=()=>{f(!1),p(!1),r(!1),Ti&&clearTimeout(Ti),Ti=setTimeout(()=>{f(!0),p(!0)},gD)},T=(x,C)=>{if(C.position.distanceTo(x){var S;(S=s==null?void 0:s.current)==null||S.setLookAt(C.position.x,C.position.y,C.position.z,x.x,x.y,x.z,!0)};return null},vD=1;let sa=null;const bD=(s,{enabled:e})=>{const t=As();yD(s);const n=ds(o=>o.isUserDragging),{graphRadius:r,disableCameraRotation:i}=ht(o=>o);return b.useEffect(()=>{e||(sa==null||sa.kill(),sa=null)},[e]),b.useEffect(()=>{!t&&s.current&&s.current.setLookAt(Mi.x,Mi.y,r+200,0,0,0,!0)},[t,r]),An((o,a)=>{s.current&&(!i&&!n&&(s.current.azimuthAngle+=vD*a*_y.DEG2RAD),s.current.update(a))}),null},xD=({disableAnimations:s})=>{const e=b.useRef(null),{data:t,setNearbyNodeIds:n,setDisableCameraRotation:r}=ht(h=>h),[i]=b.useState(.8),{camera:o}=We(),[a,c,l,u]=ds(h=>[h.isUserDragging,h.setIsUserDragging,h.isUserScrolling,h.isUserScrollingOnHtmlPanel]);return bD(e,{enabled:!s&&!l&&!a}),b.useEffect(()=>{if(!a){const h=cg((t==null?void 0:t.nodes)||[],o);h&&n(h)}},[o,o.position,o.position.x,o.position.y,o.position.z,t==null?void 0:t.nodes,n,a]),b.useEffect(()=>{a&&r(!0)},[a,r]),V.jsx(Sp,{ref:e,boundaryEnclosesCamera:!0,enabled:!u,makeDefault:!0,maxDistance:12e3,minDistance:100,onEnd:()=>c(!1),onStart:()=>c(!0),smoothTime:i})};function jn(s){if(s===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s}function lg(s,e){s.prototype=Object.create(e.prototype),s.prototype.constructor=s,s.__proto__=e}/*! + * GSAP 3.12.4 + * https://gsap.com + * + * @license Copyright 2008-2023, GreenSock. All rights reserved. + * Subject to the terms at https://gsap.com/standard-license or for + * Club GSAP members, the agreement issued with that membership. + * @author: Jack Doyle, jack@greensock.com +*/var Ut={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},Hr={duration:.5,overwrite:!1,delay:0},dh,pt,Ge,Xt=1e8,Pe=1/Xt,Yl=Math.PI*2,wD=Yl/4,kD=0,ug=Math.sqrt,TD=Math.cos,ED=Math.sin,ut=function(e){return typeof e=="string"},Xe=function(e){return typeof e=="function"},Kn=function(e){return typeof e=="number"},fh=function(e){return typeof e>"u"},Sn=function(e){return typeof e=="object"},At=function(e){return e!==!1},ph=function(){return typeof window<"u"},ra=function(e){return Xe(e)||ut(e)},hg=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},mt=Array.isArray,Gl=/(?:-?\.?\d|\.)+/gi,dg=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,Cr=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,tl=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,fg=/[+-]=-?[.\d]+/,pg=/[^,'"\[\]\s]+/gi,CD=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,qe,Ht,Xl,mh,Bt={},Xa={},mg,gg=function(e){return(Xa=sr(e,Bt))&&Nt},gh=function(e,t){return console.warn("Invalid property",e,"set to",t,"Missing plugin? gsap.registerPlugin()")},co=function(e,t){return!t&&console.warn(e)},_g=function(e,t){return e&&(Bt[e]=t)&&Xa&&(Xa[e]=t)||Bt},lo=function(){return 0},SD={suppressEvents:!0,isStart:!0,kill:!1},ua={suppressEvents:!0,kill:!1},OD={suppressEvents:!0},_h={},ms=[],Zl={},yg,$t={},nl={},Mf=30,ha=[],yh="",vh=function(e){var t=e[0],n,r;if(Sn(t)||Xe(t)||(e=[e]),!(n=(t._gsap||{}).harness)){for(r=ha.length;r--&&!ha[r].targetTest(t););n=ha[r]}for(r=e.length;r--;)e[r]&&(e[r]._gsap||(e[r]._gsap=new Ug(e[r],n)))||e.splice(r,1);return e},Hs=function(e){return e._gsap||vh(Zt(e))[0]._gsap},vg=function(e,t,n){return(n=e[t])&&Xe(n)?e[t]():fh(n)&&e.getAttribute&&e.getAttribute(t)||n},Dt=function(e,t){return(e=e.split(",")).forEach(t)||e},et=function(e){return Math.round(e*1e5)/1e5||0},ct=function(e){return Math.round(e*1e7)/1e7||0},Pr=function(e,t){var n=t.charAt(0),r=parseFloat(t.substr(2));return e=parseFloat(e),n==="+"?e+r:n==="-"?e-r:n==="*"?e*r:e/r},AD=function(e,t){for(var n=t.length,r=0;e.indexOf(t[r])<0&&++ra;)o=o._prev;return o?(t._next=o._next,o._next=t):(t._next=e[n],e[n]=t),t._next?t._next._prev=t:e[r]=t,t._prev=o,t.parent=t._dp=e,t},Ec=function(e,t,n,r){n===void 0&&(n="_first"),r===void 0&&(r="_last");var i=t._prev,o=t._next;i?i._next=o:e[n]===t&&(e[n]=o),o?o._prev=i:e[r]===t&&(e[r]=i),t._next=t._prev=t.parent=null},Cs=function(e,t){e.parent&&(!t||e.parent.autoRemoveChildren)&&e.parent.remove&&e.parent.remove(e),e._act=0},Ys=function(e,t){if(e&&(!t||t._end>e._dur||t._start<0))for(var n=e;n;)n._dirty=1,n=n.parent;return e},PD=function(e){for(var t=e.parent;t&&t.parent;)t._dirty=1,t.totalDuration(),t=t.parent;return e},Kl=function(e,t,n,r){return e._startAt&&(pt?e._startAt.revert(ua):e.vars.immediateRender&&!e.vars.autoRevert||e._startAt.render(t,!0,r))},MD=function s(e){return!e||e._ts&&s(e.parent)},If=function(e){return e._repeat?Yr(e._tTime,e=e.duration()+e._rDelay)*e:0},Yr=function(e,t){var n=Math.floor(e/=t);return e&&n===e?n-1:n},Qa=function(e,t){return(e-t._start)*t._ts+(t._ts>=0?0:t._dirty?t.totalDuration():t._tDur)},Cc=function(e){return e._end=ct(e._start+(e._tDur/Math.abs(e._ts||e._rts||Pe)||0))},Sc=function(e,t){var n=e._dp;return n&&n.smoothChildTiming&&e._ts&&(e._start=ct(n._time-(e._ts>0?t/e._ts:((e._dirty?e.totalDuration():e._tDur)-t)/-e._ts)),Cc(e),n._dirty||Ys(n,e)),e},Tg=function(e,t){var n;if((t._time||!t._dur&&t._initted||t._startPe)&&t.render(n,!0)),Ys(e,t)._dp&&e._initted&&e._time>=e._dur&&e._ts){if(e._dur=0&&n.totalTime(n._tTime),n=n._dp;e._zTime=-Pe}},bn=function(e,t,n,r){return t.parent&&Cs(t),t._start=ct((Kn(n)?n:n||e!==qe?qt(e,n,t):e._time)+t._delay),t._end=ct(t._start+(t.totalDuration()/Math.abs(t.timeScale())||0)),kg(e,t,"_first","_last",e._sort?"_start":0),Ql(t)||(e._recent=t),r||Tg(e,t),e._ts<0&&Sc(e,e._tTime),e},Eg=function(e,t){return(Bt.ScrollTrigger||gh("scrollTrigger",t))&&Bt.ScrollTrigger.create(t,e)},Cg=function(e,t,n,r,i){if(xh(e,t,i),!e._initted)return 1;if(!n&&e._pt&&!pt&&(e._dur&&e.vars.lazy!==!1||!e._dur&&e.vars.lazy)&&yg!==Lt.frame)return ms.push(e),e._lazy=[i,r],1},ND=function s(e){var t=e.parent;return t&&t._ts&&t._initted&&!t._lock&&(t.rawTime()<0||s(t))},Ql=function(e){var t=e.data;return t==="isFromStart"||t==="isStart"},ID=function(e,t,n,r){var i=e.ratio,o=t<0||!t&&(!e._start&&ND(e)&&!(!e._initted&&Ql(e))||(e._ts<0||e._dp._ts<0)&&!Ql(e))?0:1,a=e._rDelay,c=0,l,u,h;if(a&&e._repeat&&(c=No(0,e._tDur,t),u=Yr(c,a),e._yoyo&&u&1&&(o=1-o),u!==Yr(e._tTime,a)&&(i=1-o,e.vars.repeatRefresh&&e._initted&&e.invalidate())),o!==i||pt||r||e._zTime===Pe||!t&&e._zTime){if(!e._initted&&Cg(e,t,r,n,c))return;for(h=e._zTime,e._zTime=t||(n?Pe:0),n||(n=t&&!h),e.ratio=o,e._from&&(o=1-o),e._time=0,e._tTime=c,l=e._pt;l;)l.r(o,l.d),l=l._next;t<0&&Kl(e,t,n,!0),e._onUpdate&&!n&&jt(e,"onUpdate"),c&&e._repeat&&!n&&e.parent&&jt(e,"onRepeat"),(t>=e._tDur||t<0)&&e.ratio===o&&(o&&Cs(e,1),!n&&!pt&&(jt(e,o?"onComplete":"onReverseComplete",!0),e._prom&&e._prom()))}else e._zTime||(e._zTime=t)},$D=function(e,t,n){var r;if(n>t)for(r=e._first;r&&r._start<=n;){if(r.data==="isPause"&&r._start>t)return r;r=r._next}else for(r=e._last;r&&r._start>=n;){if(r.data==="isPause"&&r._start0&&!r&&Sc(e,e._tTime=e._tDur*a),e.parent&&Cc(e),n||Ys(e.parent,e),e},$f=function(e){return e instanceof xt?Ys(e):Gr(e,e._dur)},FD={_start:0,endTime:lo,totalDuration:lo},qt=function s(e,t,n){var r=e.labels,i=e._recent||FD,o=e.duration()>=Xt?i.endTime(!1):e._dur,a,c,l;return ut(t)&&(isNaN(t)||t in r)?(c=t.charAt(0),l=t.substr(-1)==="%",a=t.indexOf("="),c==="<"||c===">"?(a>=0&&(t=t.replace(/=/,"")),(c==="<"?i._start:i.endTime(i._repeat>=0))+(parseFloat(t.substr(1))||0)*(l?(a<0?i:n).totalDuration()/100:1)):a<0?(t in r||(r[t]=o),r[t]):(c=parseFloat(t.charAt(a-1)+t.substr(a+1)),l&&n&&(c=c/100*(mt(n)?n[0]:n).totalDuration()),a>1?s(e,t.substr(0,a-1),n)+c:o+c)):t==null?o:+t},$i=function(e,t,n){var r=Kn(t[1]),i=(r?2:1)+(e<2?0:1),o=t[i],a,c;if(r&&(o.duration=t[1]),o.parent=n,e){for(a=o,c=n;c&&!("immediateRender"in a);)a=c.vars.defaults||{},c=At(c.vars.inherit)&&c.parent;o.immediateRender=At(a.immediateRender),e<2?o.runBackwards=1:o.startAt=t[i-1]}return new rt(t[0],o,t[i+1])},Ps=function(e,t){return e||e===0?t(e):t},No=function(e,t,n){return nt?t:n},ft=function(e,t){return!ut(e)||!(t=CD.exec(e))?"":t[1]},LD=function(e,t,n){return Ps(n,function(r){return No(e,t,r)})},Jl=[].slice,Sg=function(e,t){return e&&Sn(e)&&"length"in e&&(!t&&!e.length||e.length-1 in e&&Sn(e[0]))&&!e.nodeType&&e!==Ht},jD=function(e,t,n){return n===void 0&&(n=[]),e.forEach(function(r){var i;return ut(r)&&!t||Sg(r,1)?(i=n).push.apply(i,Zt(r)):n.push(r)})||n},Zt=function(e,t,n){return Ge&&!t&&Ge.selector?Ge.selector(e):ut(e)&&!n&&(Xl||!Xr())?Jl.call((t||mh).querySelectorAll(e),0):mt(e)?jD(e,n):Sg(e)?Jl.call(e,0):e?[e]:[]},eu=function(e){return e=Zt(e)[0]||co("Invalid scope")||{},function(t){var n=e.current||e.nativeElement||e;return Zt(t,n.querySelectorAll?n:n===e?co("Invalid scope")||mh.createElement("div"):e)}},Og=function(e){return e.sort(function(){return .5-Math.random()})},Ag=function(e){if(Xe(e))return e;var t=Sn(e)?e:{each:e},n=Gs(t.ease),r=t.from||0,i=parseFloat(t.base)||0,o={},a=r>0&&r<1,c=isNaN(r)||a,l=t.axis,u=r,h=r;return ut(r)?u=h={center:.5,edges:.5,end:1}[r]||0:!a&&c&&(u=r[0],h=r[1]),function(d,f,m){var p=(m||t).length,g=o[p],_,w,k,v,y,T,E,x,C;if(!g){if(C=t.grid==="auto"?0:(t.grid||[1,Xt])[1],!C){for(E=-Xt;E<(E=m[C++].getBoundingClientRect().left)&&CE&&(E=y),yp?p-1:l?l==="y"?p/C:C:Math.max(C,p/C))||0)*(r==="edges"?-1:1),g.b=p<0?i-p:i,g.u=ft(t.amount||t.each)||0,n=n&&p<0?jg(n):n}return p=(g[d]-g.min)/g.max||0,ct(g.b+(n?n(p):p)*g.v)+g.u}},tu=function(e){var t=Math.pow(10,((e+"").split(".")[1]||"").length);return function(n){var r=ct(Math.round(parseFloat(n)/e)*e*t);return(r-r%1)/t+(Kn(n)?0:ft(n))}},Dg=function(e,t){var n=mt(e),r,i;return!n&&Sn(e)&&(r=n=e.radius||Xt,e.values?(e=Zt(e.values),(i=!Kn(e[0]))&&(r*=r)):e=tu(e.increment)),Ps(t,n?Xe(e)?function(o){return i=e(o),Math.abs(i-o)<=r?i:o}:function(o){for(var a=parseFloat(i?o.x:o),c=parseFloat(i?o.y:0),l=Xt,u=0,h=e.length,d,f;h--;)i?(d=e[h].x-a,f=e[h].y-c,d=d*d+f*f):d=Math.abs(e[h]-a),dr?i-o:o)})},uo=function(e){for(var t=0,n="",r,i,o,a;~(r=e.indexOf("random(",t));)o=e.indexOf(")",r),a=e.charAt(r+7)==="[",i=e.substr(r+7,o-r-7).match(a?pg:Gl),n+=e.substr(t,r-t)+Rg(a?i:+i[0],a?0:+i[1],+i[2]||1e-5),t=o+1;return n+e.substr(t,e.length-t)},Mg=function(e,t,n,r,i){var o=t-e,a=r-n;return Ps(i,function(c){return n+((c-e)/o*a||0)})},qD=function s(e,t,n,r){var i=isNaN(e+t)?0:function(f){return(1-f)*e+f*t};if(!i){var o=ut(e),a={},c,l,u,h,d;if(n===!0&&(r=1)&&(n=null),o)e={p:e},t={p:t};else if(mt(e)&&!mt(t)){for(u=[],h=e.length,d=h-2,l=1;l(a=Math.abs(a))&&(c=o,i=a);return c},jt=function(e,t,n){var r=e.vars,i=r[t],o=Ge,a=e._ctx,c,l,u;if(i)return c=r[t+"Params"],l=r.callbackScope||e,n&&ms.length&&Za(),a&&(Ge=a),u=c?i.apply(l,c):i.call(l),Ge=o,u},Si=function(e){return Cs(e),e.scrollTrigger&&e.scrollTrigger.kill(!!pt),e.progress()<1&&jt(e,"onInterrupt"),e},Sr,Ng=[],Ig=function(e){if(ph()&&e){e=!e.name&&e.default||e;var t=e.name,n=Xe(e),r=t&&!n&&e.init?function(){this._props=[]}:e,i={init:lo,render:Th,add:bh,kill:aR,modifier:oR,rawVars:0},o={targetTest:0,get:0,getSetter:kh,aliases:{},register:0};if(Xr(),e!==r){if($t[t])return;Jt(r,Jt(Ka(e,i),o)),sr(r.prototype,sr(i,Ka(e,o))),$t[r.prop=t]=r,e.targetTest&&(ha.push(r),_h[t]=1),t=(t==="css"?"CSS":t.charAt(0).toUpperCase()+t.substr(1))+"Plugin"}_g(t,r),e.register&&e.register(Nt,r,Rt)}else e&&Ng.push(e)},Re=255,Oi={aqua:[0,Re,Re],lime:[0,Re,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,Re],navy:[0,0,128],white:[Re,Re,Re],olive:[128,128,0],yellow:[Re,Re,0],orange:[Re,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[Re,0,0],pink:[Re,192,203],cyan:[0,Re,Re],transparent:[Re,Re,Re,0]},sl=function(e,t,n){return e+=e<0?1:e>1?-1:0,(e*6<1?t+(n-t)*e*6:e<.5?n:e*3<2?t+(n-t)*(2/3-e)*6:t)*Re+.5|0},$g=function(e,t,n){var r=e?Kn(e)?[e>>16,e>>8&Re,e&Re]:0:Oi.black,i,o,a,c,l,u,h,d,f,m;if(!r){if(e.substr(-1)===","&&(e=e.substr(0,e.length-1)),Oi[e])r=Oi[e];else if(e.charAt(0)==="#"){if(e.length<6&&(i=e.charAt(1),o=e.charAt(2),a=e.charAt(3),e="#"+i+i+o+o+a+a+(e.length===5?e.charAt(4)+e.charAt(4):"")),e.length===9)return r=parseInt(e.substr(1,6),16),[r>>16,r>>8&Re,r&Re,parseInt(e.substr(7),16)/255];e=parseInt(e.substr(1),16),r=[e>>16,e>>8&Re,e&Re]}else if(e.substr(0,3)==="hsl"){if(r=m=e.match(Gl),!t)c=+r[0]%360/360,l=+r[1]/100,u=+r[2]/100,o=u<=.5?u*(l+1):u+l-u*l,i=u*2-o,r.length>3&&(r[3]*=1),r[0]=sl(c+1/3,i,o),r[1]=sl(c,i,o),r[2]=sl(c-1/3,i,o);else if(~e.indexOf("="))return r=e.match(dg),n&&r.length<4&&(r[3]=1),r}else r=e.match(Gl)||Oi.transparent;r=r.map(Number)}return t&&!m&&(i=r[0]/Re,o=r[1]/Re,a=r[2]/Re,h=Math.max(i,o,a),d=Math.min(i,o,a),u=(h+d)/2,h===d?c=l=0:(f=h-d,l=u>.5?f/(2-h-d):f/(h+d),c=h===i?(o-a)/f+(oe&&(n+=_-t),r+=_,y=r-n,k=y-o,(k>0||w)&&(T=++h.frame,d=y-h.time*1e3,h.time=y=y/1e3,o+=k+(k>=i?4:i-k),v=1),w||(c=l(p)),v)for(f=0;f=_&&f--},_listeners:a},h}(),Xr=function(){return!ho&&Lt.wake()},be={},YD=/^[\d.\-M][\d.\-,\s]/,GD=/["']/g,XD=function(e){for(var t={},n=e.substr(1,e.length-3).split(":"),r=n[0],i=1,o=n.length,a,c,l;i1&&n.config?n.config.apply(null,~e.indexOf("{")?[XD(t[1])]:ZD(e).split(",").map(xg)):be._CE&&YD.test(e)?be._CE("",e):n},jg=function(e){return function(t){return 1-e(1-t)}},Vg=function s(e,t){for(var n=e._first,r;n;)n instanceof xt?s(n,t):n.vars.yoyoEase&&(!n._yoyo||!n._repeat)&&n._yoyo!==t&&(n.timeline?s(n.timeline,t):(r=n._ease,n._ease=n._yEase,n._yEase=r,n._yoyo=t)),n=n._next},Gs=function(e,t){return e&&(Xe(e)?e:be[e]||KD(e))||t},lr=function(e,t,n,r){n===void 0&&(n=function(c){return 1-t(1-c)}),r===void 0&&(r=function(c){return c<.5?t(c*2)/2:1-t((1-c)*2)/2});var i={easeIn:t,easeOut:n,easeInOut:r},o;return Dt(e,function(a){be[a]=Bt[a]=i,be[o=a.toLowerCase()]=n;for(var c in i)be[o+(c==="easeIn"?".in":c==="easeOut"?".out":".inOut")]=be[a+"."+c]=i[c]}),i},zg=function(e){return function(t){return t<.5?(1-e(1-t*2))/2:.5+e((t-.5)*2)/2}},rl=function s(e,t,n){var r=t>=1?t:1,i=(n||(e?.3:.45))/(t<1?t:1),o=i/Yl*(Math.asin(1/r)||0),a=function(u){return u===1?1:r*Math.pow(2,-10*u)*ED((u-o)*i)+1},c=e==="out"?a:e==="in"?function(l){return 1-a(1-l)}:zg(a);return i=Yl/i,c.config=function(l,u){return s(e,l,u)},c},il=function s(e,t){t===void 0&&(t=1.70158);var n=function(o){return o?--o*o*((t+1)*o+t)+1:0},r=e==="out"?n:e==="in"?function(i){return 1-n(1-i)}:zg(n);return r.config=function(i){return s(e,i)},r};Dt("Linear,Quad,Cubic,Quart,Quint,Strong",function(s,e){var t=e<5?e+1:e;lr(s+",Power"+(t-1),e?function(n){return Math.pow(n,t)}:function(n){return n},function(n){return 1-Math.pow(1-n,t)},function(n){return n<.5?Math.pow(n*2,t)/2:1-Math.pow((1-n)*2,t)/2})});be.Linear.easeNone=be.none=be.Linear.easeIn;lr("Elastic",rl("in"),rl("out"),rl());(function(s,e){var t=1/e,n=2*t,r=2.5*t,i=function(a){return a0?n+(n+this._rDelay)*this._repeat:n):this.totalDuration()&&this._dur},e.totalDuration=function(n){return arguments.length?(this._dirty=0,Gr(this,this._repeat<0?n:(n-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(n,r){if(Xr(),!arguments.length)return this._tTime;var i=this._dp;if(i&&i.smoothChildTiming&&this._ts){for(Sc(this,n),!i._dp||i.parent||Tg(i,this);i&&i.parent;)i.parent._time!==i._start+(i._ts>=0?i._tTime/i._ts:(i.totalDuration()-i._tTime)/-i._ts)&&i.totalTime(i._tTime,!0),i=i.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&n0||!this._tDur&&!n)&&bn(this._dp,this,this._start-this._delay)}return(this._tTime!==n||!this._dur&&!r||this._initted&&Math.abs(this._zTime)===Pe||!n&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=n),bg(this,n,r)),this},e.time=function(n,r){return arguments.length?this.totalTime(Math.min(this.totalDuration(),n+If(this))%(this._dur+this._rDelay)||(n?this._dur:0),r):this._time},e.totalProgress=function(n,r){return arguments.length?this.totalTime(this.totalDuration()*n,r):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>0?1:0},e.progress=function(n,r){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-n:n)+If(this),r):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},e.iteration=function(n,r){var i=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(n-1)*i,r):this._repeat?Yr(this._tTime,i)+1:1},e.timeScale=function(n,r){if(!arguments.length)return this._rts===-Pe?0:this._rts;if(this._rts===n)return this;var i=this.parent&&this._ts?Qa(this.parent._time,this):this._tTime;return this._rts=+n||0,this._ts=this._ps||n===-Pe?0:this._rts,this.totalTime(No(-Math.abs(this._delay),this._tDur,i),r!==!1),Cc(this),PD(this)},e.paused=function(n){return arguments.length?(this._ps!==n&&(this._ps=n,n?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(Xr(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==Pe&&(this._tTime-=Pe)))),this):this._ps},e.startTime=function(n){if(arguments.length){this._start=n;var r=this.parent||this._dp;return r&&(r._sort||!this.parent)&&bn(r,this,n-this._delay),this}return this._start},e.endTime=function(n){return this._start+(At(n)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},e.rawTime=function(n){var r=this.parent||this._dp;return r?n&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?Qa(r.rawTime(n),this):this._tTime:this._tTime},e.revert=function(n){n===void 0&&(n=OD);var r=pt;return pt=n,(this._initted||this._startAt)&&(this.timeline&&this.timeline.revert(n),this.totalTime(-.01,n.suppressEvents)),this.data!=="nested"&&n.kill!==!1&&this.kill(),pt=r,this},e.globalTime=function(n){for(var r=this,i=arguments.length?n:r.rawTime();r;)i=r._start+i/(Math.abs(r._ts)||1),r=r._dp;return!this.parent&&this._sat?this._sat.globalTime(n):i},e.repeat=function(n){return arguments.length?(this._repeat=n===1/0?-2:n,$f(this)):this._repeat===-2?1/0:this._repeat},e.repeatDelay=function(n){if(arguments.length){var r=this._time;return this._rDelay=n,$f(this),r?this.time(r):this}return this._rDelay},e.yoyo=function(n){return arguments.length?(this._yoyo=n,this):this._yoyo},e.seek=function(n,r){return this.totalTime(qt(this,n),At(r))},e.restart=function(n,r){return this.play().totalTime(n?-this._delay:0,At(r))},e.play=function(n,r){return n!=null&&this.seek(n,r),this.reversed(!1).paused(!1)},e.reverse=function(n,r){return n!=null&&this.seek(n||this.totalDuration(),r),this.reversed(!0).paused(!1)},e.pause=function(n,r){return n!=null&&this.seek(n,r),this.paused(!0)},e.resume=function(){return this.paused(!1)},e.reversed=function(n){return arguments.length?(!!n!==this.reversed()&&this.timeScale(-this._rts||(n?-Pe:0)),this):this._rts<0},e.invalidate=function(){return this._initted=this._act=0,this._zTime=-Pe,this},e.isActive=function(){var n=this.parent||this._dp,r=this._start,i;return!!(!n||this._ts&&this._initted&&n.isActive()&&(i=n.rawTime(!0))>=r&&i1?(r?(o[n]=r,i&&(o[n+"Params"]=i),n==="onUpdate"&&(this._onUpdate=r)):delete o[n],this):o[n]},e.then=function(n){var r=this;return new Promise(function(i){var o=Xe(n)?n:wg,a=function(){var l=r.then;r.then=null,Xe(o)&&(o=o(r))&&(o.then||o===r)&&(r.then=l),i(o),r.then=l};r._initted&&r.totalProgress()===1&&r._ts>=0||!r._tTime&&r._ts<0?a():r._prom=a})},e.kill=function(){Si(this)},s}();Jt(fo.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-Pe,_prom:0,_ps:!1,_rts:1});var xt=function(s){lg(e,s);function e(n,r){var i;return n===void 0&&(n={}),i=s.call(this,n)||this,i.labels={},i.smoothChildTiming=!!n.smoothChildTiming,i.autoRemoveChildren=!!n.autoRemoveChildren,i._sort=At(n.sortChildren),qe&&bn(n.parent||qe,jn(i),r),n.reversed&&i.reverse(),n.paused&&i.paused(!0),n.scrollTrigger&&Eg(jn(i),n.scrollTrigger),i}var t=e.prototype;return t.to=function(r,i,o){return $i(0,arguments,this),this},t.from=function(r,i,o){return $i(1,arguments,this),this},t.fromTo=function(r,i,o,a){return $i(2,arguments,this),this},t.set=function(r,i,o){return i.duration=0,i.parent=this,Ii(i).repeatDelay||(i.repeat=0),i.immediateRender=!!i.immediateRender,new rt(r,i,qt(this,o),1),this},t.call=function(r,i,o){return bn(this,rt.delayedCall(0,r,i),o)},t.staggerTo=function(r,i,o,a,c,l,u){return o.duration=i,o.stagger=o.stagger||a,o.onComplete=l,o.onCompleteParams=u,o.parent=this,new rt(r,o,qt(this,c)),this},t.staggerFrom=function(r,i,o,a,c,l,u){return o.runBackwards=1,Ii(o).immediateRender=At(o.immediateRender),this.staggerTo(r,i,o,a,c,l,u)},t.staggerFromTo=function(r,i,o,a,c,l,u,h){return a.startAt=o,Ii(a).immediateRender=At(a.immediateRender),this.staggerTo(r,i,a,c,l,u,h)},t.render=function(r,i,o){var a=this._time,c=this._dirty?this.totalDuration():this._tDur,l=this._dur,u=r<=0?0:ct(r),h=this._zTime<0!=r<0&&(this._initted||!l),d,f,m,p,g,_,w,k,v,y,T,E;if(this!==qe&&u>c&&r>=0&&(u=c),u!==this._tTime||o||h){if(a!==this._time&&l&&(u+=this._time-a,r+=this._time-a),d=u,v=this._start,k=this._ts,_=!k,h&&(l||(a=this._zTime),(r||!i)&&(this._zTime=r)),this._repeat){if(T=this._yoyo,g=l+this._rDelay,this._repeat<-1&&r<0)return this.totalTime(g*100+r,i,o);if(d=ct(u%g),u===c?(p=this._repeat,d=l):(p=~~(u/g),p&&p===u/g&&(d=l,p--),d>l&&(d=l)),y=Yr(this._tTime,g),!a&&this._tTime&&y!==p&&this._tTime-y*g-this._dur<=0&&(y=p),T&&p&1&&(d=l-d,E=1),p!==y&&!this._lock){var x=T&&y&1,C=x===(T&&p&1);if(p=a&&r>=0)for(f=this._first;f;){if(m=f._next,(f._act||d>=f._start)&&f._ts&&w!==f){if(f.parent!==this)return this.render(r,i,o);if(f.render(f._ts>0?(d-f._start)*f._ts:(f._dirty?f.totalDuration():f._tDur)+(d-f._start)*f._ts,i,o),d!==this._time||!this._ts&&!_){w=0,m&&(u+=this._zTime=-Pe);break}}f=m}else{f=this._last;for(var S=r<0?r:d;f;){if(m=f._prev,(f._act||S<=f._end)&&f._ts&&w!==f){if(f.parent!==this)return this.render(r,i,o);if(f.render(f._ts>0?(S-f._start)*f._ts:(f._dirty?f.totalDuration():f._tDur)+(S-f._start)*f._ts,i,o||pt&&(f._initted||f._startAt)),d!==this._time||!this._ts&&!_){w=0,m&&(u+=this._zTime=S?-Pe:Pe);break}}f=m}}if(w&&!i&&(this.pause(),w.render(d>=a?0:-Pe)._zTime=d>=a?1:-1,this._ts))return this._start=v,Cc(this),this.render(r,i,o);this._onUpdate&&!i&&jt(this,"onUpdate",!0),(u===c&&this._tTime>=this.totalDuration()||!u&&a)&&(v===this._start||Math.abs(k)!==Math.abs(this._ts))&&(this._lock||((r||!l)&&(u===c&&this._ts>0||!u&&this._ts<0)&&Cs(this,1),!i&&!(r<0&&!a)&&(u||a||!c)&&(jt(this,u===c&&r>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(u0)&&this._prom())))}return this},t.add=function(r,i){var o=this;if(Kn(i)||(i=qt(this,i,r)),!(r instanceof fo)){if(mt(r))return r.forEach(function(a){return o.add(a,i)}),this;if(ut(r))return this.addLabel(r,i);if(Xe(r))r=rt.delayedCall(0,r);else return this}return this!==r?bn(this,r,i):this},t.getChildren=function(r,i,o,a){r===void 0&&(r=!0),i===void 0&&(i=!0),o===void 0&&(o=!0),a===void 0&&(a=-Xt);for(var c=[],l=this._first;l;)l._start>=a&&(l instanceof rt?i&&c.push(l):(o&&c.push(l),r&&c.push.apply(c,l.getChildren(!0,i,o)))),l=l._next;return c},t.getById=function(r){for(var i=this.getChildren(1,1,1),o=i.length;o--;)if(i[o].vars.id===r)return i[o]},t.remove=function(r){return ut(r)?this.removeLabel(r):Xe(r)?this.killTweensOf(r):(Ec(this,r),r===this._recent&&(this._recent=this._last),Ys(this))},t.totalTime=function(r,i){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=ct(Lt.time-(this._ts>0?r/this._ts:(this.totalDuration()-r)/-this._ts))),s.prototype.totalTime.call(this,r,i),this._forcing=0,this):this._tTime},t.addLabel=function(r,i){return this.labels[r]=qt(this,i),this},t.removeLabel=function(r){return delete this.labels[r],this},t.addPause=function(r,i,o){var a=rt.delayedCall(0,i||lo,o);return a.data="isPause",this._hasPause=1,bn(this,a,qt(this,r))},t.removePause=function(r){var i=this._first;for(r=qt(this,r);i;)i._start===r&&i.data==="isPause"&&Cs(i),i=i._next},t.killTweensOf=function(r,i,o){for(var a=this.getTweensOf(r,o),c=a.length;c--;)ls!==a[c]&&a[c].kill(r,i);return this},t.getTweensOf=function(r,i){for(var o=[],a=Zt(r),c=this._first,l=Kn(i),u;c;)c instanceof rt?AD(c._targets,a)&&(l?(!ls||c._initted&&c._ts)&&c.globalTime(0)<=i&&c.globalTime(c.totalDuration())>i:!i||c.isActive())&&o.push(c):(u=c.getTweensOf(a,i)).length&&o.push.apply(o,u),c=c._next;return o},t.tweenTo=function(r,i){i=i||{};var o=this,a=qt(o,r),c=i,l=c.startAt,u=c.onStart,h=c.onStartParams,d=c.immediateRender,f,m=rt.to(o,Jt({ease:i.ease||"none",lazy:!1,immediateRender:!1,time:a,overwrite:"auto",duration:i.duration||Math.abs((a-(l&&"time"in l?l.time:o._time))/o.timeScale())||Pe,onStart:function(){if(o.pause(),!f){var g=i.duration||Math.abs((a-(l&&"time"in l?l.time:o._time))/o.timeScale());m._dur!==g&&Gr(m,g,0,1).render(m._time,!0,!0),f=1}u&&u.apply(m,h||[])}},i));return d?m.render(0):m},t.tweenFromTo=function(r,i,o){return this.tweenTo(i,Jt({startAt:{time:qt(this,r)}},o))},t.recent=function(){return this._recent},t.nextLabel=function(r){return r===void 0&&(r=this._time),Ff(this,qt(this,r))},t.previousLabel=function(r){return r===void 0&&(r=this._time),Ff(this,qt(this,r),1)},t.currentLabel=function(r){return arguments.length?this.seek(r,!0):this.previousLabel(this._time+Pe)},t.shiftChildren=function(r,i,o){o===void 0&&(o=0);for(var a=this._first,c=this.labels,l;a;)a._start>=o&&(a._start+=r,a._end+=r),a=a._next;if(i)for(l in c)c[l]>=o&&(c[l]+=r);return Ys(this)},t.invalidate=function(r){var i=this._first;for(this._lock=0;i;)i.invalidate(r),i=i._next;return s.prototype.invalidate.call(this,r)},t.clear=function(r){r===void 0&&(r=!0);for(var i=this._first,o;i;)o=i._next,this.remove(i),i=o;return this._dp&&(this._time=this._tTime=this._pTime=0),r&&(this.labels={}),Ys(this)},t.totalDuration=function(r){var i=0,o=this,a=o._last,c=Xt,l,u,h;if(arguments.length)return o.timeScale((o._repeat<0?o.duration():o.totalDuration())/(o.reversed()?-r:r));if(o._dirty){for(h=o.parent;a;)l=a._prev,a._dirty&&a.totalDuration(),u=a._start,u>c&&o._sort&&a._ts&&!o._lock?(o._lock=1,bn(o,a,u-a._delay,1)._lock=0):c=u,u<0&&a._ts&&(i-=u,(!h&&!o._dp||h&&h.smoothChildTiming)&&(o._start+=u/o._ts,o._time-=u,o._tTime-=u),o.shiftChildren(-u,!1,-1/0),c=0),a._end>i&&a._ts&&(i=a._end),a=l;Gr(o,o===qe&&o._time>i?o._time:i,1,1),o._dirty=0}return o._tDur},e.updateRoot=function(r){if(qe._ts&&(bg(qe,Qa(r,qe)),yg=Lt.frame),Lt.frame>=Mf){Mf+=Ut.autoSleep||120;var i=qe._first;if((!i||!i._ts)&&Ut.autoSleep&&Lt._listeners.length<2){for(;i&&!i._ts;)i=i._next;i||Lt.sleep()}}},e}(fo);Jt(xt.prototype,{_lock:0,_hasPause:0,_forcing:0});var QD=function(e,t,n,r,i,o,a){var c=new Rt(this._pt,e,t,0,1,Gg,null,i),l=0,u=0,h,d,f,m,p,g,_,w;for(c.b=n,c.e=r,n+="",r+="",(_=~r.indexOf("random("))&&(r=uo(r)),o&&(w=[n,r],o(w,e,t),n=w[0],r=w[1]),d=n.match(tl)||[];h=tl.exec(r);)m=h[0],p=r.substring(l,h.index),f?f=(f+1)%5:p.substr(-5)==="rgba("&&(f=1),m!==d[u++]&&(g=parseFloat(d[u-1])||0,c._pt={_next:c._pt,p:p||u===1?p:",",s:g,c:m.charAt(1)==="="?Pr(g,m)-g:parseFloat(m)-g,m:f&&f<4?Math.round:0},l=tl.lastIndex);return c.c=l")}),v.duration();else{T={};for(x in m)x==="ease"||x==="easeEach"||nR(x,m[x],T,m.easeEach);for(x in T)for(L=T[x].sort(function(B,U){return B.t-U.t}),O=0,y=0;yc-Pe&&!u?c:rl&&(d=l)),_=this._yoyo&&m&1,_&&(v=this._yEase,d=l-d),g=Yr(this._tTime,p),d===a&&!o&&this._initted&&m===g)return this._tTime=h,this;m!==g&&(k&&this._yEase&&Vg(k,_),this.vars.repeatRefresh&&!_&&!this._lock&&this._time!==l&&this._initted&&(this._lock=o=1,this.render(ct(p*m),!0).invalidate()._lock=0))}if(!this._initted){if(Cg(this,u?r:d,o,i,h))return this._tTime=0,this;if(a!==this._time&&!(o&&this.vars.repeatRefresh&&m!==g))return this;if(l!==this._dur)return this.render(r,i,o)}if(this._tTime=h,this._time=d,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=w=(v||this._ease)(d/l),this._from&&(this.ratio=w=1-w),d&&!a&&!i&&!m&&(jt(this,"onStart"),this._tTime!==h))return this;for(f=this._pt;f;)f.r(w,f.d),f=f._next;k&&k.render(r<0?r:!d&&_?-Pe:k._dur*k._ease(d/this._dur),i,o)||this._startAt&&(this._zTime=r),this._onUpdate&&!i&&(u&&Kl(this,r,i,o),jt(this,"onUpdate")),this._repeat&&m!==g&&this.vars.onRepeat&&!i&&this.parent&&jt(this,"onRepeat"),(h===this._tDur||!h)&&this._tTime===h&&(u&&!this._onUpdate&&Kl(this,r,!0,!0),(r||!l)&&(h===this._tDur&&this._ts>0||!h&&this._ts<0)&&Cs(this,1),!i&&!(u&&!a)&&(h||a||_)&&(jt(this,h===c?"onComplete":"onReverseComplete",!0),this._prom&&!(h0)&&this._prom()))}return this},t.targets=function(){return this._targets},t.invalidate=function(r){return(!r||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(r),s.prototype.invalidate.call(this,r)},t.resetTo=function(r,i,o,a,c){ho||Lt.wake(),this._ts||this.play();var l=Math.min(this._dur,(this._dp._time-this._start)*this._ts),u;return this._initted||xh(this,l),u=this._ease(l/this._dur),eR(this,r,i,o,a,u,l,c)?this.resetTo(r,i,o,a,1):(Sc(this,0),this.parent||kg(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},t.kill=function(r,i){if(i===void 0&&(i="all"),!r&&(!i||i==="all"))return this._lazy=this._pt=0,this.parent?Si(this):this;if(this.timeline){var o=this.timeline.totalDuration();return this.timeline.killTweensOf(r,i,ls&&ls.vars.overwrite!==!0)._first||Si(this),this.parent&&o!==this.timeline.totalDuration()&&Gr(this,this._dur*this.timeline._tDur/o,0,1),this}var a=this._targets,c=r?Zt(r):a,l=this._ptLookup,u=this._pt,h,d,f,m,p,g,_;if((!i||i==="all")&&RD(a,c))return i==="all"&&(this._pt=0),Si(this);for(h=this._op=this._op||[],i!=="all"&&(ut(i)&&(p={},Dt(i,function(w){return p[w]=1}),i=p),i=tR(a,i)),_=a.length;_--;)if(~c.indexOf(a[_])){d=l[_],i==="all"?(h[_]=i,m=d,f={}):(f=h[_]=h[_]||{},m=i);for(p in m)g=d&&d[p],g&&((!("kill"in g.d)||g.d.kill(p)===!0)&&Ec(this,g,"_pt"),delete d[p]),f!=="all"&&(f[p]=1)}return this._initted&&!this._pt&&u&&Si(this),this},e.to=function(r,i){return new e(r,i,arguments[2])},e.from=function(r,i){return $i(1,arguments)},e.delayedCall=function(r,i,o,a){return new e(i,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:r,onComplete:i,onReverseComplete:i,onCompleteParams:o,onReverseCompleteParams:o,callbackScope:a})},e.fromTo=function(r,i,o){return $i(2,arguments)},e.set=function(r,i){return i.duration=0,i.repeatDelay||(i.repeat=0),new e(r,i)},e.killTweensOf=function(r,i,o){return qe.killTweensOf(r,i,o)},e}(fo);Jt(rt.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0});Dt("staggerTo,staggerFrom,staggerFromTo",function(s){rt[s]=function(){var e=new xt,t=Jl.call(arguments,0);return t.splice(s==="staggerFromTo"?5:4,0,0),e[s].apply(e,t)}});var wh=function(e,t,n){return e[t]=n},Hg=function(e,t,n){return e[t](n)},sR=function(e,t,n,r){return e[t](r.fp,n)},rR=function(e,t,n){return e.setAttribute(t,n)},kh=function(e,t){return Xe(e[t])?Hg:fh(e[t])&&e.setAttribute?rR:wh},Yg=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e6)/1e6,t)},iR=function(e,t){return t.set(t.t,t.p,!!(t.s+t.c*e),t)},Gg=function(e,t){var n=t._pt,r="";if(!e&&t.b)r=t.b;else if(e===1&&t.e)r=t.e;else{for(;n;)r=n.p+(n.m?n.m(n.s+n.c*e):Math.round((n.s+n.c*e)*1e4)/1e4)+r,n=n._next;r+=t.c}t.set(t.t,t.p,r,t)},Th=function(e,t){for(var n=t._pt;n;)n.r(e,n.d),n=n._next},oR=function(e,t,n,r){for(var i=this._pt,o;i;)o=i._next,i.p===r&&i.modifier(e,t,n),i=o},aR=function(e){for(var t=this._pt,n,r;t;)r=t._next,t.p===e&&!t.op||t.op===e?Ec(this,t,"_pt"):t.dep||(n=1),t=r;return!n},cR=function(e,t,n,r){r.mSet(e,t,r.m.call(r.tween,n,r.mt),r)},Xg=function(e){for(var t=e._pt,n,r,i,o;t;){for(n=t._next,r=i;r&&r.pr>t.pr;)r=r._next;(t._prev=r?r._prev:o)?t._prev._next=t:i=t,(t._next=r)?r._prev=t:o=t,t=n}e._pt=i},Rt=function(){function s(t,n,r,i,o,a,c,l,u){this.t=n,this.s=i,this.c=o,this.p=r,this.r=a||Yg,this.d=c||this,this.set=l||wh,this.pr=u||0,this._next=t,t&&(t._prev=this)}var e=s.prototype;return e.modifier=function(n,r,i){this.mSet=this.mSet||this.set,this.set=cR,this.m=n,this.mt=i,this.tween=r},s}();Dt(yh+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",function(s){return _h[s]=1});Bt.TweenMax=Bt.TweenLite=rt;Bt.TimelineLite=Bt.TimelineMax=xt;qe=new xt({sortChildren:!1,defaults:Hr,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0});Ut.stringFilter=Lg;var Xs=[],da={},lR=[],jf=0,uR=0,ol=function(e){return(da[e]||lR).map(function(t){return t()})},su=function(){var e=Date.now(),t=[];e-jf>2&&(ol("matchMediaInit"),Xs.forEach(function(n){var r=n.queries,i=n.conditions,o,a,c,l;for(a in r)o=Ht.matchMedia(r[a]).matches,o&&(c=1),o!==i[a]&&(i[a]=o,l=1);l&&(n.revert(),c&&t.push(n))}),ol("matchMediaRevert"),t.forEach(function(n){return n.onMatch(n,function(r){return n.add(null,r)})}),jf=e,ol("matchMedia"))},Zg=function(){function s(t,n){this.selector=n&&eu(n),this.data=[],this._r=[],this.isReverted=!1,this.id=uR++,t&&this.add(t)}var e=s.prototype;return e.add=function(n,r,i){Xe(n)&&(i=r,r=n,n=Xe);var o=this,a=function(){var l=Ge,u=o.selector,h;return l&&l!==o&&l.data.push(o),i&&(o.selector=eu(i)),Ge=o,h=r.apply(o,arguments),Xe(h)&&o._r.push(h),Ge=l,o.selector=u,o.isReverted=!1,h};return o.last=a,n===Xe?a(o,function(c){return o.add(null,c)}):n?o[n]=a:a},e.ignore=function(n){var r=Ge;Ge=null,n(this),Ge=r},e.getTweens=function(){var n=[];return this.data.forEach(function(r){return r instanceof s?n.push.apply(n,r.getTweens()):r instanceof rt&&!(r.parent&&r.parent.data==="nested")&&n.push(r)}),n},e.clear=function(){this._r.length=this.data.length=0},e.kill=function(n,r){var i=this;if(n?function(){for(var a=i.getTweens(),c=i.data.length,l;c--;)l=i.data[c],l.data==="isFlip"&&(l.revert(),l.getChildren(!0,!0,!1).forEach(function(u){return a.splice(a.indexOf(u),1)}));for(a.map(function(u){return{g:u._dur||u._delay||u._sat&&!u._sat.vars.immediateRender?u.globalTime(0):-1/0,t:u}}).sort(function(u,h){return h.g-u.g||-1/0}).forEach(function(u){return u.t.revert(n)}),c=i.data.length;c--;)l=i.data[c],l instanceof xt?l.data!=="nested"&&(l.scrollTrigger&&l.scrollTrigger.revert(),l.kill()):!(l instanceof rt)&&l.revert&&l.revert(n);i._r.forEach(function(u){return u(n,i)}),i.isReverted=!0}():this.data.forEach(function(a){return a.kill&&a.kill()}),this.clear(),r)for(var o=Xs.length;o--;)Xs[o].id===this.id&&Xs.splice(o,1)},e.revert=function(n){this.kill(n||{})},s}(),hR=function(){function s(t){this.contexts=[],this.scope=t}var e=s.prototype;return e.add=function(n,r,i){Sn(n)||(n={matches:n});var o=new Zg(0,i||this.scope),a=o.conditions={},c,l,u;Ge&&!o.selector&&(o.selector=Ge.selector),this.contexts.push(o),r=o.add("onMatch",r),o.queries=n;for(l in n)l==="all"?u=1:(c=Ht.matchMedia(n[l]),c&&(Xs.indexOf(o)<0&&Xs.push(o),(a[l]=c.matches)&&(u=1),c.addListener?c.addListener(su):c.addEventListener("change",su)));return u&&r(o,function(h){return o.add(null,h)}),this},e.revert=function(n){this.kill(n||{})},e.kill=function(n){this.contexts.forEach(function(r){return r.kill(n,!0)})},s}(),Ja={registerPlugin:function(){for(var e=arguments.length,t=new Array(e),n=0;n1){var r=e.map(function(u){return Nt.quickSetter(u,t,n)}),i=r.length;return function(u){for(var h=i;h--;)r[h](u)}}e=e[0]||{};var o=$t[t],a=Hs(e),c=a.harness&&(a.harness.aliases||{})[t]||t,l=o?function(u){var h=new o;Sr._pt=0,h.init(e,n?u+n:u,Sr,0,[e]),h.render(1,h),Sr._pt&&Th(1,Sr)}:a.set(e,c);return o?l:function(u){return l(e,c,n?u+n:u,a,1)}},quickTo:function(e,t,n){var r,i=Nt.to(e,sr((r={},r[t]="+=0.1",r.paused=!0,r),n||{})),o=function(c,l,u){return i.resetTo(t,c,l,u)};return o.tween=i,o},isTweening:function(e){return qe.getTweensOf(e,!0).length>0},defaults:function(e){return e&&e.ease&&(e.ease=Gs(e.ease,Hr.ease)),Nf(Hr,e||{})},config:function(e){return Nf(Ut,e||{})},registerEffect:function(e){var t=e.name,n=e.effect,r=e.plugins,i=e.defaults,o=e.extendTimeline;(r||"").split(",").forEach(function(a){return a&&!$t[a]&&!Bt[a]&&co(t+" effect requires "+a+" plugin.")}),nl[t]=function(a,c,l){return n(Zt(a),Jt(c||{},i),l)},o&&(xt.prototype[t]=function(a,c,l){return this.add(nl[t](a,Sn(c)?c:(l=c)&&{},this),l)})},registerEase:function(e,t){be[e]=Gs(t)},parseEase:function(e,t){return arguments.length?Gs(e,t):be},getById:function(e){return qe.getById(e)},exportRoot:function(e,t){e===void 0&&(e={});var n=new xt(e),r,i;for(n.smoothChildTiming=At(e.smoothChildTiming),qe.remove(n),n._dp=0,n._time=n._tTime=qe._time,r=qe._first;r;)i=r._next,(t||!(!r._dur&&r instanceof rt&&r.vars.onComplete===r._targets[0]))&&bn(n,r,r._start-r._delay),r=i;return bn(qe,n,0),n},context:function(e,t){return e?new Zg(e,t):Ge},matchMedia:function(e){return new hR(e)},matchMediaRefresh:function(){return Xs.forEach(function(e){var t=e.conditions,n,r;for(r in t)t[r]&&(t[r]=!1,n=1);n&&e.revert()})||su()},addEventListener:function(e,t){var n=da[e]||(da[e]=[]);~n.indexOf(t)||n.push(t)},removeEventListener:function(e,t){var n=da[e],r=n&&n.indexOf(t);r>=0&&n.splice(r,1)},utils:{wrap:BD,wrapYoyo:WD,distribute:Ag,random:Rg,snap:Dg,normalize:UD,getUnit:ft,clamp:LD,splitColor:$g,toArray:Zt,selector:eu,mapRange:Mg,pipe:VD,unitize:zD,interpolate:qD,shuffle:Og},install:gg,effects:nl,ticker:Lt,updateRoot:xt.updateRoot,plugins:$t,globalTimeline:qe,core:{PropTween:Rt,globals:_g,Tween:rt,Timeline:xt,Animation:fo,getCache:Hs,_removeLinkedListItem:Ec,reverting:function(){return pt},context:function(e){return e&&Ge&&(Ge.data.push(e),e._ctx=Ge),Ge},suppressOverwrites:function(e){return dh=e}}};Dt("to,from,fromTo,delayedCall,set,killTweensOf",function(s){return Ja[s]=rt[s]});Lt.add(xt.updateRoot);Sr=Ja.to({},{duration:0});var dR=function(e,t){for(var n=e._pt;n&&n.p!==t&&n.op!==t&&n.fp!==t;)n=n._next;return n},fR=function(e,t){var n=e._targets,r,i,o;for(r in t)for(i=n.length;i--;)o=e._ptLookup[i][r],o&&(o=o.d)&&(o._pt&&(o=dR(o,r)),o&&o.modifier&&o.modifier(t[r],e,n[i],r))},al=function(e,t){return{name:e,rawVars:1,init:function(r,i,o){o._onInit=function(a){var c,l;if(ut(i)&&(c={},Dt(i,function(u){return c[u]=1}),i=c),t){c={};for(l in i)c[l]=t(i[l]);i=c}fR(a,i)}}}},Nt=Ja.registerPlugin({name:"attr",init:function(e,t,n,r,i){var o,a,c;this.tween=n;for(o in t)c=e.getAttribute(o)||"",a=this.add(e,"setAttribute",(c||0)+"",t[o],r,i,0,0,o),a.op=o,a.b=c,this._props.push(o)},render:function(e,t){for(var n=t._pt;n;)pt?n.set(n.t,n.p,n.b,n):n.r(e,n.d),n=n._next}},{name:"endArray",init:function(e,t){for(var n=t.length;n--;)this.add(e,n,e[n]||0,t[n],0,0,0,0,0,1)}},al("roundProps",tu),al("modifiers"),al("snap",Dg))||Ja;rt.version=xt.version=Nt.version="3.12.4";mg=1;ph()&&Xr();be.Power0;be.Power1;be.Power2;be.Power3;be.Power4;be.Linear;be.Quad;be.Cubic;be.Quart;be.Quint;be.Strong;be.Elastic;be.Back;be.SteppedEase;be.Bounce;be.Sine;be.Expo;be.Circ;/*! + * CSSPlugin 3.12.4 + * https://gsap.com + * + * Copyright 2008-2023, GreenSock. All rights reserved. + * Subject to the terms at https://gsap.com/standard-license or for + * Club GSAP members, the agreement issued with that membership. + * @author: Jack Doyle, jack@greensock.com +*/var Vf,us,Mr,Eh,Us,zf,Ch,pR=function(){return typeof window<"u"},Qn={},Ls=180/Math.PI,Nr=Math.PI/180,br=Math.atan2,Uf=1e8,Sh=/([A-Z])/g,mR=/(left|right|width|margin|padding|x)/i,gR=/[\s,\(]\S/,xn={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},ru=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},_R=function(e,t){return t.set(t.t,t.p,e===1?t.e:Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},yR=function(e,t){return t.set(t.t,t.p,e?Math.round((t.s+t.c*e)*1e4)/1e4+t.u:t.b,t)},vR=function(e,t){var n=t.s+t.c*e;t.set(t.t,t.p,~~(n+(n<0?-.5:.5))+t.u,t)},Kg=function(e,t){return t.set(t.t,t.p,e?t.e:t.b,t)},Qg=function(e,t){return t.set(t.t,t.p,e!==1?t.b:t.e,t)},bR=function(e,t,n){return e.style[t]=n},xR=function(e,t,n){return e.style.setProperty(t,n)},wR=function(e,t,n){return e._gsap[t]=n},kR=function(e,t,n){return e._gsap.scaleX=e._gsap.scaleY=n},TR=function(e,t,n,r,i){var o=e._gsap;o.scaleX=o.scaleY=n,o.renderTransform(i,o)},ER=function(e,t,n,r,i){var o=e._gsap;o[t]=n,o.renderTransform(i,o)},He="transform",Pt=He+"Origin",CR=function s(e,t){var n=this,r=this.target,i=r.style,o=r._gsap;if(e in Qn&&i){if(this.tfm=this.tfm||{},e!=="transform")e=xn[e]||e,~e.indexOf(",")?e.split(",").forEach(function(a){return n.tfm[a]=zn(r,a)}):this.tfm[e]=o.x?o[e]:zn(r,e),e===Pt&&(this.tfm.zOrigin=o.zOrigin);else return xn.transform.split(",").forEach(function(a){return s.call(n,a,t)});if(this.props.indexOf(He)>=0)return;o.svg&&(this.svgo=r.getAttribute("data-svg-origin"),this.props.push(Pt,t,"")),e=He}(i||t)&&this.props.push(e,t,i[e])},Jg=function(e){e.translate&&(e.removeProperty("translate"),e.removeProperty("scale"),e.removeProperty("rotate"))},SR=function(){var e=this.props,t=this.target,n=t.style,r=t._gsap,i,o;for(i=0;i=0?Bf[o]:"")+e},ou=function(){pR()&&window.document&&(Vf=window,us=Vf.document,Mr=us.documentElement,Us=iu("div")||{style:{}},iu("div"),He=Zr(He),Pt=He+"Origin",Us.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",t_=!!Zr("perspective"),Ch=Nt.core.reverting,Eh=1)},cl=function s(e){var t=iu("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),n=this.parentNode,r=this.nextSibling,i=this.style.cssText,o;if(Mr.appendChild(t),t.appendChild(this),this.style.display="block",e)try{o=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=s}catch{}else this._gsapBBox&&(o=this._gsapBBox());return n&&(r?n.insertBefore(this,r):n.appendChild(this)),Mr.removeChild(t),this.style.cssText=i,o},Wf=function(e,t){for(var n=t.length;n--;)if(e.hasAttribute(t[n]))return e.getAttribute(t[n])},n_=function(e){var t;try{t=e.getBBox()}catch{t=cl.call(e,!0)}return t&&(t.width||t.height)||e.getBBox===cl||(t=cl.call(e,!0)),t&&!t.width&&!t.x&&!t.y?{x:+Wf(e,["x","cx","x1"])||0,y:+Wf(e,["y","cy","y1"])||0,width:0,height:0}:t},s_=function(e){return!!(e.getCTM&&(!e.parentNode||e.ownerSVGElement)&&n_(e))},rr=function(e,t){if(t){var n=e.style,r;t in Qn&&t!==Pt&&(t=He),n.removeProperty?(r=t.substr(0,2),(r==="ms"||t.substr(0,6)==="webkit")&&(t="-"+t),n.removeProperty(r==="--"?t:t.replace(Sh,"-$1").toLowerCase())):n.removeAttribute(t)}},hs=function(e,t,n,r,i,o){var a=new Rt(e._pt,t,n,0,1,o?Qg:Kg);return e._pt=a,a.b=r,a.e=i,e._props.push(n),a},qf={deg:1,rad:1,turn:1},OR={grid:1,flex:1},Ss=function s(e,t,n,r){var i=parseFloat(n)||0,o=(n+"").trim().substr((i+"").length)||"px",a=Us.style,c=mR.test(t),l=e.tagName.toLowerCase()==="svg",u=(l?"client":"offset")+(c?"Width":"Height"),h=100,d=r==="px",f=r==="%",m,p,g,_;if(r===o||!i||qf[r]||qf[o])return i;if(o!=="px"&&!d&&(i=s(e,t,n,"px")),_=e.getCTM&&s_(e),(f||o==="%")&&(Qn[t]||~t.indexOf("adius")))return m=_?e.getBBox()[c?"width":"height"]:e[u],et(f?i/m*h:i/100*m);if(a[c?"width":"height"]=h+(d?o:r),p=~t.indexOf("adius")||r==="em"&&e.appendChild&&!l?e:e.parentNode,_&&(p=(e.ownerSVGElement||{}).parentNode),(!p||p===us||!p.appendChild)&&(p=us.body),g=p._gsap,g&&f&&g.width&&c&&g.time===Lt.time&&!g.uncache)return et(i/g.width*h);if(f&&(t==="height"||t==="width")){var w=e.style[t];e.style[t]=h+r,m=e[u],w?e.style[t]=w:rr(e,t)}else(f||o==="%")&&!OR[kn(p,"display")]&&(a.position=kn(e,"position")),p===e&&(a.position="static"),p.appendChild(Us),m=Us[u],p.removeChild(Us),a.position="absolute";return c&&f&&(g=Hs(p),g.time=Lt.time,g.width=p[u]),et(d?m*i/h:m&&i?h/m*i:0)},zn=function(e,t,n,r){var i;return Eh||ou(),t in xn&&t!=="transform"&&(t=xn[t],~t.indexOf(",")&&(t=t.split(",")[0])),Qn[t]&&t!=="transform"?(i=mo(e,r),i=t!=="transformOrigin"?i[t]:i.svg?i.origin:tc(kn(e,Pt))+" "+i.zOrigin+"px"):(i=e.style[t],(!i||i==="auto"||r||~(i+"").indexOf("calc("))&&(i=ec[t]&&ec[t](e,t,n)||kn(e,t)||vg(e,t)||(t==="opacity"?1:0))),n&&!~(i+"").trim().indexOf(" ")?Ss(e,t,i,n)+n:i},AR=function(e,t,n,r){if(!n||n==="none"){var i=Zr(t,e,1),o=i&&kn(e,i,1);o&&o!==n?(t=i,n=o):t==="borderColor"&&(n=kn(e,"borderTopColor"))}var a=new Rt(this._pt,e.style,t,0,1,Gg),c=0,l=0,u,h,d,f,m,p,g,_,w,k,v,y;if(a.b=n,a.e=r,n+="",r+="",r==="auto"&&(p=e.style[t],e.style[t]=r,r=kn(e,t)||r,p?e.style[t]=p:rr(e,t)),u=[n,r],Lg(u),n=u[0],r=u[1],d=n.match(Cr)||[],y=r.match(Cr)||[],y.length){for(;h=Cr.exec(r);)g=h[0],w=r.substring(c,h.index),m?m=(m+1)%5:(w.substr(-5)==="rgba("||w.substr(-5)==="hsla(")&&(m=1),g!==(p=d[l++]||"")&&(f=parseFloat(p)||0,v=p.substr((f+"").length),g.charAt(1)==="="&&(g=Pr(f,g)+v),_=parseFloat(g),k=g.substr((_+"").length),c=Cr.lastIndex-k.length,k||(k=k||Ut.units[t]||v,c===r.length&&(r+=k,a.e+=k)),v!==k&&(f=Ss(e,t,p,k)||0),a._pt={_next:a._pt,p:w||l===1?w:",",s:f,c:_-f,m:m&&m<4||t==="zIndex"?Math.round:0});a.c=c-1;)a=i[l],Qn[a]&&(c=1,a=a==="transformOrigin"?Pt:He),rr(n,a);c&&(rr(n,He),o&&(o.svg&&n.removeAttribute("transform"),mo(n,1),o.uncache=1,Jg(r)))}},ec={clearProps:function(e,t,n,r,i){if(i.data!=="isFromStart"){var o=e._pt=new Rt(e._pt,t,n,0,0,RR);return o.u=r,o.pr=-10,o.tween=i,e._props.push(n),1}}},po=[1,0,0,1,0,0],r_={},i_=function(e){return e==="matrix(1, 0, 0, 1, 0, 0)"||e==="none"||!e},Yf=function(e){var t=kn(e,He);return i_(t)?po:t.substr(7).match(dg).map(et)},Oh=function(e,t){var n=e._gsap||Hs(e),r=e.style,i=Yf(e),o,a,c,l;return n.svg&&e.getAttribute("transform")?(c=e.transform.baseVal.consolidate().matrix,i=[c.a,c.b,c.c,c.d,c.e,c.f],i.join(",")==="1,0,0,1,0,0"?po:i):(i===po&&!e.offsetParent&&e!==Mr&&!n.svg&&(c=r.display,r.display="block",o=e.parentNode,(!o||!e.offsetParent)&&(l=1,a=e.nextElementSibling,Mr.appendChild(e)),i=Yf(e),c?r.display=c:rr(e,"display"),l&&(a?o.insertBefore(e,a):o?o.appendChild(e):Mr.removeChild(e))),t&&i.length>6?[i[0],i[1],i[4],i[5],i[12],i[13]]:i)},au=function(e,t,n,r,i,o){var a=e._gsap,c=i||Oh(e,!0),l=a.xOrigin||0,u=a.yOrigin||0,h=a.xOffset||0,d=a.yOffset||0,f=c[0],m=c[1],p=c[2],g=c[3],_=c[4],w=c[5],k=t.split(" "),v=parseFloat(k[0])||0,y=parseFloat(k[1])||0,T,E,x,C;n?c!==po&&(E=f*g-m*p)&&(x=v*(g/E)+y*(-p/E)+(p*w-g*_)/E,C=v*(-m/E)+y*(f/E)-(f*w-m*_)/E,v=x,y=C):(T=n_(e),v=T.x+(~k[0].indexOf("%")?v/100*T.width:v),y=T.y+(~(k[1]||k[0]).indexOf("%")?y/100*T.height:y)),r||r!==!1&&a.smooth?(_=v-l,w=y-u,a.xOffset=h+(_*f+w*p)-_,a.yOffset=d+(_*m+w*g)-w):a.xOffset=a.yOffset=0,a.xOrigin=v,a.yOrigin=y,a.smooth=!!r,a.origin=t,a.originIsAbsolute=!!n,e.style[Pt]="0px 0px",o&&(hs(o,a,"xOrigin",l,v),hs(o,a,"yOrigin",u,y),hs(o,a,"xOffset",h,a.xOffset),hs(o,a,"yOffset",d,a.yOffset)),e.setAttribute("data-svg-origin",v+" "+y)},mo=function(e,t){var n=e._gsap||new Ug(e);if("x"in n&&!t&&!n.uncache)return n;var r=e.style,i=n.scaleX<0,o="px",a="deg",c=getComputedStyle(e),l=kn(e,Pt)||"0",u,h,d,f,m,p,g,_,w,k,v,y,T,E,x,C,S,D,O,L,j,W,B,U,z,X,K,ee,I,F,A,N;return u=h=d=p=g=_=w=k=v=0,f=m=1,n.svg=!!(e.getCTM&&s_(e)),c.translate&&((c.translate!=="none"||c.scale!=="none"||c.rotate!=="none")&&(r[He]=(c.translate!=="none"?"translate3d("+(c.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(c.rotate!=="none"?"rotate("+c.rotate+") ":"")+(c.scale!=="none"?"scale("+c.scale.split(" ").join(",")+") ":"")+(c[He]!=="none"?c[He]:"")),r.scale=r.rotate=r.translate="none"),E=Oh(e,n.svg),n.svg&&(n.uncache?(z=e.getBBox(),l=n.xOrigin-z.x+"px "+(n.yOrigin-z.y)+"px",U=""):U=!t&&e.getAttribute("data-svg-origin"),au(e,U||l,!!U||n.originIsAbsolute,n.smooth!==!1,E)),y=n.xOrigin||0,T=n.yOrigin||0,E!==po&&(D=E[0],O=E[1],L=E[2],j=E[3],u=W=E[4],h=B=E[5],E.length===6?(f=Math.sqrt(D*D+O*O),m=Math.sqrt(j*j+L*L),p=D||O?br(O,D)*Ls:0,w=L||j?br(L,j)*Ls+p:0,w&&(m*=Math.abs(Math.cos(w*Nr))),n.svg&&(u-=y-(y*D+T*L),h-=T-(y*O+T*j))):(N=E[6],F=E[7],K=E[8],ee=E[9],I=E[10],A=E[11],u=E[12],h=E[13],d=E[14],x=br(N,I),g=x*Ls,x&&(C=Math.cos(-x),S=Math.sin(-x),U=W*C+K*S,z=B*C+ee*S,X=N*C+I*S,K=W*-S+K*C,ee=B*-S+ee*C,I=N*-S+I*C,A=F*-S+A*C,W=U,B=z,N=X),x=br(-L,I),_=x*Ls,x&&(C=Math.cos(-x),S=Math.sin(-x),U=D*C-K*S,z=O*C-ee*S,X=L*C-I*S,A=j*S+A*C,D=U,O=z,L=X),x=br(O,D),p=x*Ls,x&&(C=Math.cos(x),S=Math.sin(x),U=D*C+O*S,z=W*C+B*S,O=O*C-D*S,B=B*C-W*S,D=U,W=z),g&&Math.abs(g)+Math.abs(p)>359.9&&(g=p=0,_=180-_),f=et(Math.sqrt(D*D+O*O+L*L)),m=et(Math.sqrt(B*B+N*N)),x=br(W,B),w=Math.abs(x)>2e-4?x*Ls:0,v=A?1/(A<0?-A:A):0),n.svg&&(U=e.getAttribute("transform"),n.forceCSS=e.setAttribute("transform","")||!i_(kn(e,He)),U&&e.setAttribute("transform",U))),Math.abs(w)>90&&Math.abs(w)<270&&(i?(f*=-1,w+=p<=0?180:-180,p+=p<=0?180:-180):(m*=-1,w+=w<=0?180:-180)),t=t||n.uncache,n.x=u-((n.xPercent=u&&(!t&&n.xPercent||(Math.round(e.offsetWidth/2)===Math.round(-u)?-50:0)))?e.offsetWidth*n.xPercent/100:0)+o,n.y=h-((n.yPercent=h&&(!t&&n.yPercent||(Math.round(e.offsetHeight/2)===Math.round(-h)?-50:0)))?e.offsetHeight*n.yPercent/100:0)+o,n.z=d+o,n.scaleX=et(f),n.scaleY=et(m),n.rotation=et(p)+a,n.rotationX=et(g)+a,n.rotationY=et(_)+a,n.skewX=w+a,n.skewY=k+a,n.transformPerspective=v+o,(n.zOrigin=parseFloat(l.split(" ")[2])||!t&&n.zOrigin||0)&&(r[Pt]=tc(l)),n.xOffset=n.yOffset=0,n.force3D=Ut.force3D,n.renderTransform=n.svg?MR:t_?o_:PR,n.uncache=0,n},tc=function(e){return(e=e.split(" "))[0]+" "+e[1]},ll=function(e,t,n){var r=ft(t);return et(parseFloat(t)+parseFloat(Ss(e,"x",n+"px",r)))+r},PR=function(e,t){t.z="0px",t.rotationY=t.rotationX="0deg",t.force3D=0,o_(e,t)},$s="0deg",Ei="0px",Fs=") ",o_=function(e,t){var n=t||this,r=n.xPercent,i=n.yPercent,o=n.x,a=n.y,c=n.z,l=n.rotation,u=n.rotationY,h=n.rotationX,d=n.skewX,f=n.skewY,m=n.scaleX,p=n.scaleY,g=n.transformPerspective,_=n.force3D,w=n.target,k=n.zOrigin,v="",y=_==="auto"&&e&&e!==1||_===!0;if(k&&(h!==$s||u!==$s)){var T=parseFloat(u)*Nr,E=Math.sin(T),x=Math.cos(T),C;T=parseFloat(h)*Nr,C=Math.cos(T),o=ll(w,o,E*C*-k),a=ll(w,a,-Math.sin(T)*-k),c=ll(w,c,x*C*-k+k)}g!==Ei&&(v+="perspective("+g+Fs),(r||i)&&(v+="translate("+r+"%, "+i+"%) "),(y||o!==Ei||a!==Ei||c!==Ei)&&(v+=c!==Ei||y?"translate3d("+o+", "+a+", "+c+") ":"translate("+o+", "+a+Fs),l!==$s&&(v+="rotate("+l+Fs),u!==$s&&(v+="rotateY("+u+Fs),h!==$s&&(v+="rotateX("+h+Fs),(d!==$s||f!==$s)&&(v+="skew("+d+", "+f+Fs),(m!==1||p!==1)&&(v+="scale("+m+", "+p+Fs),w.style[He]=v||"translate(0, 0)"},MR=function(e,t){var n=t||this,r=n.xPercent,i=n.yPercent,o=n.x,a=n.y,c=n.rotation,l=n.skewX,u=n.skewY,h=n.scaleX,d=n.scaleY,f=n.target,m=n.xOrigin,p=n.yOrigin,g=n.xOffset,_=n.yOffset,w=n.forceCSS,k=parseFloat(o),v=parseFloat(a),y,T,E,x,C;c=parseFloat(c),l=parseFloat(l),u=parseFloat(u),u&&(u=parseFloat(u),l+=u,c+=u),c||l?(c*=Nr,l*=Nr,y=Math.cos(c)*h,T=Math.sin(c)*h,E=Math.sin(c-l)*-d,x=Math.cos(c-l)*d,l&&(u*=Nr,C=Math.tan(l-u),C=Math.sqrt(1+C*C),E*=C,x*=C,u&&(C=Math.tan(u),C=Math.sqrt(1+C*C),y*=C,T*=C)),y=et(y),T=et(T),E=et(E),x=et(x)):(y=h,x=d,T=E=0),(k&&!~(o+"").indexOf("px")||v&&!~(a+"").indexOf("px"))&&(k=Ss(f,"x",o,"px"),v=Ss(f,"y",a,"px")),(m||p||g||_)&&(k=et(k+m-(m*y+p*E)+g),v=et(v+p-(m*T+p*x)+_)),(r||i)&&(C=f.getBBox(),k=et(k+r/100*C.width),v=et(v+i/100*C.height)),C="matrix("+y+","+T+","+E+","+x+","+k+","+v+")",f.setAttribute("transform",C),w&&(f.style[He]=C)},NR=function(e,t,n,r,i){var o=360,a=ut(i),c=parseFloat(i)*(a&&~i.indexOf("rad")?Ls:1),l=c-r,u=r+l+"deg",h,d;return a&&(h=i.split("_")[1],h==="short"&&(l%=o,l!==l%(o/2)&&(l+=l<0?o:-o)),h==="cw"&&l<0?l=(l+o*Uf)%o-~~(l/o)*o:h==="ccw"&&l>0&&(l=(l-o*Uf)%o-~~(l/o)*o)),e._pt=d=new Rt(e._pt,t,n,r,l,_R),d.e=u,d.u="deg",e._props.push(n),d},Gf=function(e,t){for(var n in t)e[n]=t[n];return e},IR=function(e,t,n){var r=Gf({},n._gsap),i="perspective,force3D,transformOrigin,svgOrigin",o=n.style,a,c,l,u,h,d,f,m;r.svg?(l=n.getAttribute("transform"),n.setAttribute("transform",""),o[He]=t,a=mo(n,1),rr(n,He),n.setAttribute("transform",l)):(l=getComputedStyle(n)[He],o[He]=t,a=mo(n,1),o[He]=l);for(c in Qn)l=r[c],u=a[c],l!==u&&i.indexOf(c)<0&&(f=ft(l),m=ft(u),h=f!==m?Ss(n,c,l,m):parseFloat(l),d=parseFloat(u),e._pt=new Rt(e._pt,a,c,h,d-h,ru),e._pt.u=m||0,e._props.push(c));Gf(a,r)};Dt("padding,margin,Width,Radius",function(s,e){var t="Top",n="Right",r="Bottom",i="Left",o=(e<3?[t,n,r,i]:[t+i,t+n,r+n,r+i]).map(function(a){return e<2?s+a:"border"+a+s});ec[e>1?"border"+s:s]=function(a,c,l,u,h){var d,f;if(arguments.length<4)return d=o.map(function(m){return zn(a,m,l)}),f=d.join(" "),f.split(d[0]).length===5?d[0]:f;d=(u+"").split(" "),f={},o.forEach(function(m,p){return f[m]=d[p]=d[p]||d[(p-1)/2|0]}),a.init(c,f,h)}});var a_={name:"css",register:ou,targetTest:function(e){return e.style&&e.nodeType},init:function(e,t,n,r,i){var o=this._props,a=e.style,c=n.vars.startAt,l,u,h,d,f,m,p,g,_,w,k,v,y,T,E,x;Eh||ou(),this.styles=this.styles||e_(e),x=this.styles.props,this.tween=n;for(p in t)if(p!=="autoRound"&&(u=t[p],!($t[p]&&Bg(p,t,n,r,e,i)))){if(f=typeof u,m=ec[p],f==="function"&&(u=u.call(n,r,e,i),f=typeof u),f==="string"&&~u.indexOf("random(")&&(u=uo(u)),m)m(this,e,p,u,n)&&(E=1);else if(p.substr(0,2)==="--")l=(getComputedStyle(e).getPropertyValue(p)+"").trim(),u+="",gs.lastIndex=0,gs.test(l)||(g=ft(l),_=ft(u)),_?g!==_&&(l=Ss(e,p,l,_)+_):g&&(u+=g),this.add(a,"setProperty",l,u,r,i,0,0,p),o.push(p),x.push(p,0,a[p]);else if(f!=="undefined"){if(c&&p in c?(l=typeof c[p]=="function"?c[p].call(n,r,e,i):c[p],ut(l)&&~l.indexOf("random(")&&(l=uo(l)),ft(l+"")||l==="auto"||(l+=Ut.units[p]||ft(zn(e,p))||""),(l+"").charAt(1)==="="&&(l=zn(e,p))):l=zn(e,p),d=parseFloat(l),w=f==="string"&&u.charAt(1)==="="&&u.substr(0,2),w&&(u=u.substr(2)),h=parseFloat(u),p in xn&&(p==="autoAlpha"&&(d===1&&zn(e,"visibility")==="hidden"&&h&&(d=0),x.push("visibility",0,a.visibility),hs(this,a,"visibility",d?"inherit":"hidden",h?"inherit":"hidden",!h)),p!=="scale"&&p!=="transform"&&(p=xn[p],~p.indexOf(",")&&(p=p.split(",")[0]))),k=p in Qn,k){if(this.styles.save(p),v||(y=e._gsap,y.renderTransform&&!t.parseTransform||mo(e,t.parseTransform),T=t.smoothOrigin!==!1&&y.smooth,v=this._pt=new Rt(this._pt,a,He,0,1,y.renderTransform,y,0,-1),v.dep=1),p==="scale")this._pt=new Rt(this._pt,y,"scaleY",y.scaleY,(w?Pr(y.scaleY,w+h):h)-y.scaleY||0,ru),this._pt.u=0,o.push("scaleY",p),p+="X";else if(p==="transformOrigin"){x.push(Pt,0,a[Pt]),u=DR(u),y.svg?au(e,u,0,T,0,this):(_=parseFloat(u.split(" ")[2])||0,_!==y.zOrigin&&hs(this,y,"zOrigin",y.zOrigin,_),hs(this,a,p,tc(l),tc(u)));continue}else if(p==="svgOrigin"){au(e,u,1,T,0,this);continue}else if(p in r_){NR(this,y,p,d,w?Pr(d,w+u):u);continue}else if(p==="smoothOrigin"){hs(this,y,"smooth",y.smooth,u);continue}else if(p==="force3D"){y[p]=u;continue}else if(p==="transform"){IR(this,u,e);continue}}else p in a||(p=Zr(p)||p);if(k||(h||h===0)&&(d||d===0)&&!gR.test(u)&&p in a)g=(l+"").substr((d+"").length),h||(h=0),_=ft(u)||(p in Ut.units?Ut.units[p]:g),g!==_&&(d=Ss(e,p,l,_)),this._pt=new Rt(this._pt,k?y:a,p,d,(w?Pr(d,w+h):h)-d,!k&&(_==="px"||p==="zIndex")&&t.autoRound!==!1?vR:ru),this._pt.u=_||0,g!==_&&_!=="%"&&(this._pt.b=l,this._pt.r=yR);else if(p in a)AR.call(this,e,p,l,w?w+u:u);else if(p in e)this.add(e,p,l||e[p],w?w+u:u,r,i);else if(p!=="parseTransform"){gh(p,u);continue}k||(p in a?x.push(p,0,a[p]):x.push(p,1,l||e[p])),o.push(p)}}E&&Xg(this)},render:function(e,t){if(t.tween._time||!Ch())for(var n=t._pt;n;)n.r(e,n.d),n=n._next;else t.styles.revert()},get:zn,aliases:xn,getSetter:function(e,t,n){var r=xn[t];return r&&r.indexOf(",")<0&&(t=r),t in Qn&&t!==Pt&&(e._gsap.x||zn(e,"x"))?n&&zf===n?t==="scale"?kR:wR:(zf=n||{})&&(t==="scale"?TR:ER):e.style&&!fh(e.style[t])?bR:~t.indexOf("-")?xR:kh(e,t)},core:{_removeProperty:rr,_getMatrix:Oh}};Nt.utils.checkPrefix=Zr;Nt.core.getStyleSaver=e_;(function(s,e,t,n){var r=Dt(s+","+e+","+t,function(i){Qn[i]=1});Dt(e,function(i){Ut.units[i]="deg",r_[i]=1}),xn[r[13]]=s+","+e,Dt(n,function(i){var o=i.split(":");xn[o[1]]=r[o[0]]})})("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY");Dt("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(s){Ut.units[s]="px"});Nt.registerPlugin(a_);var Ir=Nt.registerPlugin(a_)||Nt;Ir.core.Tween;const c_=s=>{const e=b.useRef(null),{label:t,source:n,target:r,sourceX:i,sourceY:o,sourceZ:a,targetX:c,targetY:l,targetZ:u}=s;return b.useEffect(()=>{if(e.current){const h=e.current;Ir.fromTo(h.material,{linewidth:cf*15},{linewidth:cf,duration:1})}},[e]),An(()=>{const{selectedNode:h,hoveredNode:d}=ht.getState();if(e.current){const f=e.current,m=h||d;f.visible=!m,(m==null?void 0:m.ref_id)===n||(m==null?void 0:m.ref_id)===r?(f.visible=!0,Ir.to(f.material,{linewidth:6,duration:.5,ease:"power1.out"})):Ir.to(f.material,{linewidth:1,duration:.5,ease:"power1.out"})}}),V.jsxs("group",{children:[V.jsx(ap,{ref:e,isLine2:!0,lineWidth:2,name:"line",points:[i,o,a,c,l,u]}),V.jsx(vu,{children:V.jsx(uu,{anchorX:"center",anchorY:"middle",color:"white",...hu,fontSize:10,children:t})})]})};c_.displayName="LineComponent";const $R=b.memo(c_),l_=b.memo(({linksPosition:s})=>{const e=Os(n=>n.dataInitial),{showSelectionGraph:t}=ht(n=>n);return V.jsx("group",{name:"simulation-3d-group__connections",visible:!t,children:e==null?void 0:e.links.map(n=>{const r=s.get(n.ref_id)||{sx:0,sy:0,sz:0,tx:0,ty:0,tz:0};return V.jsx($R,{label:n.edge_type,source:n.source,sourceX:r.sx,sourceY:r.sy,sourceZ:r.sz,target:n.target,targetX:r.tx,targetY:r.ty,targetZ:r.tz},n.ref_id)})})});l_.displayName="Connections";const FR=({color:s,scale:e})=>V.jsx(vu,{follow:!0,lockX:!1,lockY:!1,lockZ:!1,children:V.jsx(Ap,{color:s,scale:e})}),LR=["#fff","#9747FF","#00887A","#0098A6","#0288D1","#33691E","#465A65","#512DA7","#5C6BC0","#5D4038","#662C00","#689F39","#6B1B00","#750000","#78909C","#7E57C2","#8C6E63","#AA47BC","#BF360C","#C2175B","#EC407A","#EF6C00","#F5511E","#FF9696","#FFC064","#FFCD29","#FFEA60"],jR=()=>{const s=As(),e=Os(i=>i.dataInitial),{normalizedSchemasByType:t}=_o(i=>i),n=rp(),r=b.useMemo(()=>new yy(30,2,16,100),[]);return V.jsx(V.Fragment,{children:V.jsxs(x1,{geometry:r,limit:1e3,range:1e3,visible:!s||!0,children:[V.jsx("meshBasicMaterial",{}),e==null?void 0:e.nodes.map(i=>{var c;const a=((c=t[i.node_type])==null?void 0:c.primary_color)??(LR[n.indexOf(i.node_type)]||Me.white);return V.jsx(FR,{color:a,scale:i.scale||1},i.ref_id)})]})})},VR=b.memo(jR);function zR(s){const e=b.useRef(s);b.useEffect(()=>{const t=Object.entries(s).reduce((n,[r,i])=>(e.current[r]!==i&&(n[r]=[e.current[r],i]),n),{});Object.keys(t).length>0&&console.log("Changed props:",t),e.current=s})}const UR=s=>{const e=/(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff]|[\u0023-\u0039]\ufe0f?\u20e3|\u3299|\u3297|\u303d|\u3030|\u24c2|\ud83c[\udd70-\udd71]|\ud83c[\udd7e-\udd7f]|\ud83c\udd8e|\ud83c[\udd91-\udd9a]|\ud83c[\udde6-\uddff]|\ud83c[\ude01-\ude02]|\ud83c\ude1a|\ud83c\ude2f|\ud83c[\ude32-\ude3a]|\ud83c[\ude50-\ude51]|\u203c|\u2049|[\u25aa-\u25ab]|\u25b6|\u25c0|[\u25fb-\u25fe]|\u00a9|\u00ae|\u2122|\u2139|\ud83c\udc04|[\u2600-\u26FF]|\u2b05|\u2b06|\u2b07|\u2b1b|\u2b1c|\u2b50|\u2b55|\u231a|\u231b|\u2328|\u23cf|[\u23e9-\u23f3]|[\u23f8-\u23fa]|\ud83c\udccf|\u2934|\u2935|[\u2190-\u21ff])/g;return s.replace(e,t=>/^[\d*#]$/.test(t)?t:"")},u_={metalness:.9,roughness:0},h_=new rc,d_=h_.load("noimage.jpeg");new ic({...u_,map:d_});const BR=.4;new ic({...u_,map:d_,transparent:!0,opacity:BR});const ia={},WR=s=>{const[e,t]=b.useState(null);return b.useEffect(()=>{var r;if(!s){t(null);return}const n=s;if((r=ia[n])!=null&&r.texture){t(ia[n].texture);return}h_.load(s,i=>{ia[n]={texture:i,material:new ic({map:i})},t(i)},void 0,()=>{t(null)})},[s]),b.useEffect(()=>()=>{e&&(Object.values(ia).some(r=>r.texture===e)||e.dispose())},[e]),{texture:e}};function qR(s){const e=cp(s,30),t=e.split(" ");if(t.length<=5)return e;const n=Math.ceil(t.length/3),r=n*2,i=t.slice(0,n).join(" "),o=t.slice(n,r).join(" "),a=t.slice(r).join(" ");return`${i} +${o} +${a}`}const f_=b.memo(s=>{var v,y,T,E;const{node:e,hide:t,ignoreDistance:n,color:r}=s,i=b.useRef(null),o=b.useRef(null),a=b.useRef(null);zR(s);const c=b.useRef(new _e),{texture:l}=WR(((v=e.properties)==null?void 0:v.image_url)||""),{normalizedSchemasByType:u,getNodeKeysByType:h}=_o(x=>x);An(({camera:x,clock:C})=>{const{selectedNode:S,hoveredNode:D,activeEdge:O}=ht.getState(),L=()=>{const W=c.current.setFromMatrixPosition(o.current.matrixWorld);o.current&&(o.current.visible=n?!0:W.distanceTo(x.position)<1500)};if(e.ref_id===(S==null?void 0:S.ref_id)||e.ref_id===(D==null?void 0:D.ref_id)||(O==null?void 0:O.target)===e.ref_id||(O==null?void 0:O.source)===e.ref_id){o.current&&(o.current.visible=!0);const W=C.getElapsedTime(),B=2,U=W%B/B,z=1+U*2,X=1-U;if(a.current){a.current.visible=!0,a.current.scale.set(z,z,z);const{material:K}=a.current;K instanceof Ih&&(K.opacity=X)}return}a.current&&(a.current.visible=!1),L()});const d=(y=u[e.node_type])==null?void 0:y.primary_color,f=(T=u[e.node_type])==null?void 0:T.icon,m=d??r,g=(f?hp[f]:null)?f:"NodesIcon",_=h(e.node_type)||"",w=_&&(e!=null&&e.properties)?UR(String((e==null?void 0:e.properties[_])||"")):"",k={u_texture:{value:l},u_radius:{value:.5}};return V.jsx(vu,{follow:!0,lockX:!1,lockY:!1,lockZ:!1,name:"billboard",userData:e,children:V.jsxs("mesh",{ref:o,name:e.ref_id,userData:e,visible:!t,children:[V.jsxs("mesh",{ref:a,position:[0,0,-2],children:[V.jsx("ringGeometry",{args:[29,30,32]})," ",V.jsx("meshBasicMaterial",{color:m,opacity:.5,side:fa,transparent:!0})]}),(E=e.properties)!=null&&E.image_url&&l?V.jsx(N_,{args:[10*2,10*2],scale:2,children:V.jsx("shaderMaterial",{fragmentShader:` + uniform sampler2D u_texture; + uniform float u_radius; + varying vec2 vUv; + + void main() { + vec2 center = vec2(0.5, 0.5); // Center of the circle + float dist = distance(vUv, center); + if (dist < u_radius) { + gl_FragColor = texture2D(u_texture, vUv); + } else { + discard; // Discard pixels outside the circle + } + } + `,uniforms:k,vertexShader:` + varying vec2 vUv; + void main() { + vUv = uv; + gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0); + } + `})}):V.jsx(p1,{ref:i,name:"svg",onUpdate:x=>{x.traverse(C=>{C instanceof fp&&(C.material=new Ih({color:r}))})},position:[-15,15,0],scale:2,src:`svg-icons/${g}.svg`,strokeMaterial:{color:"yellow"},userData:e}),w&&V.jsx(uu,{color:r,fillOpacity:1,name:"text",position:[0,-65,0],scale:1,userData:e,...hu,fontSize:20,children:qR(w)})]})})},(s,e)=>s.hide===e.hide&&s.ignoreDistance===e.ignoreDistance&&s.node.ref_id===e.node.ref_id);f_.displayName="TextNode";const Xf={x:20,y:20},p_=b.memo(s=>{const{node:e,color:t,index:n,stopFrames:r}=s,i=ht(c=>c.simulation),o=b.useRef(!1),a=b.useRef(null);return An(({camera:c,size:l})=>{if(!r&&a.current&&i){const u=i.nodes()[n];if(!u)return;if(!o.current){const d=new _e(-1+Xf.x*2/l.width,1-Xf.y*2/l.height,0).unproject(c),f=5,m=d.sub(c.position).normalize(),p=c.position.clone().add(m.multiplyScalar(f));a.current.position.copy(p),a.current.scale.set(.1,.1,.1),a.current.visible=!1}u.fx&&!o.current&&(a.current.visible=!0,o.current=!0,Ir.to(a.current.position,{x:u.fx,y:u.fy,z:u.fz,duration:4,ease:"power2.in"}),Ir.to(a.current.scale,{x:1,y:1,z:1,duration:4.5,ease:"power2.in"}))}}),V.jsxs("mesh",{ref:a,name:"wr2",scale:e.scale||1,userData:e,children:[V.jsx("boxGeometry",{args:[40,40,40]}),V.jsx("meshStandardMaterial",{opacity:0,transparent:!0}),V.jsx(f_,{color:t,ignoreDistance:!1,node:e,scale:e.scale||1},e.ref_id)]},e.ref_id)},(s,e)=>s.node.ref_id===e.node.ref_id);p_.displayName="NodeWrapper";const HR=200,m_=b.memo(()=>{const s=As(),e=V_(),{selectionGraphData:t,showSelectionGraph:n,setHoveredNode:r,setIsHovering:i}=ht(p=>p),o=rp(),a=Os(p=>p.dataInitial),c=go(p=>p.setTranscriptOpen),l=b.useCallback(p=>!!(n&&!t.nodes.find(g=>g.ref_id===p.ref_id)),[n,t]),u=b.useCallback(p=>{const g=p==null?void 0:p[0];g&&(c(!1),g.userData&&(l(g.userData)||ht.getState().setSelectedNode((g==null?void 0:g.userData)||null)))},[c,l]),h=b.useRef(null),d=b.useCallback(p=>{p.stopPropagation(),h.current&&(clearTimeout(h.current),h.current=null),e&&(i(!1),r(null))},[i,r,e]),f=b.useCallback(p=>{var w;const _=p.intersections.map(k=>k.object)[0];if(h.current&&(clearTimeout(h.current),h.current=null),(w=_==null?void 0:_.userData)!=null&&w.ref_id){const k=_.userData;l(k)||(p.stopPropagation(),h.current=setTimeout(()=>{i(!0),r(k)},HR))}},[r,l,i]),m=n&&!!s;return V.jsx(V.Fragment,{children:V.jsxs(f1,{filter:p=>p.filter(g=>{var _;return!!((_=g.userData)!=null&&_.ref_id)}),onChange:u,onPointerOut:d,onPointerOver:f,children:[V.jsx("group",{name:"simulation-3d-group__nodes",visible:!m,children:a==null?void 0:a.nodes.map((p,g)=>{const _=I_[o.indexOf(p.node_type)]||Me.white;return V.jsx(p_,{color:_,index:g,node:p,scale:p.scale||1,stopFrames:!1},p.ref_id)})}),V.jsx("group",{name:"simulation-3d-group__node-points",children:V.jsx(VR,{})})]})})});m_.displayName="Cubes";const YR={earthRef:null},GR=tp(s=>({...YR,setEarthRef:e=>s({earthRef:e})})),XR=new _e(0,0,0),ZR=()=>{const s=b.useRef(null),e=b.useRef(null),{graphStyle:t,showSelectionGraph:n}=ht(a=>a),r=GR(a=>a.setEarthRef),i=Bs("textures/earth/galaxy.png"),o=Bs("textures/earth/clouds.png");return An(({camera:a})=>{e.current&&e.current.position.copy(a.getWorldPosition(XR))}),b.useLayoutEffect(()=>{s.current&&r(s)},[r]),t!=="earth"||n?null:V.jsxs(V.Fragment,{children:[V.jsxs("mesh",{ref:s,userData:{type:"earth"},children:[V.jsx("sphereGeometry",{args:[na,200,200]}),V.jsx(KR,{})]}),V.jsxs("mesh",{children:[V.jsx("sphereGeometry",{args:[na+2,200,200]}),V.jsx("meshStandardMaterial",{alphaMap:o,map:o,transparent:!0})]}),V.jsxs("mesh",{children:[V.jsx("sphereGeometry",{args:[na*4,200,200]}),V.jsx("meshStandardMaterial",{map:i,opacity:.4,side:fa,transparent:!0})]}),V.jsx("directionalLight",{ref:e,intensity:.9,position:[0,0,na*3]})]})},KR=()=>{const s=Bs("textures/earth/earth.jpeg"),e=Bs("textures/earth/bump.jpeg"),t=Bs("textures/earth/water.png"),n=b.useMemo(()=>new ic({map:s,bumpMap:e,aoMap:e,roughnessMap:e,metalnessMap:t,toneMapped:!0,roughness:35,metalness:0}),[s,e,t]);return V.jsx("meshStandardMaterial",{...n})},QR="C",JR=256,eP=256,tP={g:"LottieFiles AE 0.1.20"},nP=[{ty:0,nm:"I",sr:1,st:0,op:26,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[128,128,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],w:256,h:256,refId:"comp_0",ind:1},{ty:0,nm:"I",sr:1,st:26,op:52,ip:26,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[128,128,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],w:256,h:256,refId:"comp_1",ind:2},{ty:0,nm:"I",sr:1,st:52,op:78,ip:52,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[128,128,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],w:256,h:256,refId:"comp_2",ind:3},{ty:0,nm:"I",sr:1,st:78,op:108,ip:78,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[128,128,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],w:256,h:256,refId:"comp_3",ind:4}],sP="5.5.7",rP=60,iP=104,oP=0,aP=[{nm:"",id:"comp_0",layers:[{ty:4,nm:"I",sr:1,st:0,op:30,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[128,128,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"T",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,20],[-34.641,0],[0,-20],[34.641,0]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[34.656,.016],[0,20],[-34.641,0],[.016,-19.984]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[44.641,30]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]},{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,30],[-17.32,10],[-17.32,-30],[17.32,-10]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[51.962,10],[17.321,30],[17.321,-10],[51.962,-30]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]},{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,10],[-17.321,30],[-17.321,-10],[17.321,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.32,-9.984],[17.32,10],[17.32,-30],[-17.32,-50.016]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[61.962,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]},{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,10],[-17.32,30],[-17.32,-10],[17.32,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.32,30],[17.32,50],[17.305,10],[-17.32,-10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]},{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,30],[-17.321,10],[-17.321,-30],[17.321,-10]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.321,10],[-51.962,30],[-51.962,-10],[-17.321,-30]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[61.962,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]},{ty:"gr",nm:"T",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,20],[-34.641,0],[0,-20],[34.641,0]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[34.641,0],[0,20],[-34.641,0],[0,-20]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[44.641,70]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:1}]},{nm:"",id:"comp_1",layers:[{ty:4,nm:"R",sr:1,st:0,op:30,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[0,0,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[128,128,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:0}},ef:[],shapes:[],ind:1},{ty:4,nm:"S",sr:1,st:-20,op:32,ip:13,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,30],[-17.32,10],[-17.32,-30],[17.32,-10]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,-10.016],[-17.32,-30],[17.32,-50],[51.961,-30]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:2,parent:1},{ty:4,nm:"T",sr:1,st:-20,op:13,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"T",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,20],[-34.641,0],[0,-20],[34.641,0]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[34.641,0],[.015,-20],[0,20],[34.641,40]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[44.641,30]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:3,parent:1},{ty:4,nm:"S",sr:1,st:-20,op:13,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,30],[-17.32,10],[-17.32,-30],[17.32,-10]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,-10.016],[-17.32,-30],[17.32,-50],[51.961,-30]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:4,parent:1},{ty:4,nm:"F",sr:1,st:-20,op:33,ip:13,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,10],[-17.321,30],[-17.321,-10],[17.321,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.324,30],[-17.34,-9.984],[17.336,-30.016],[17.336,10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[61.962,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:5,parent:1},{ty:4,nm:"T",sr:1,st:-20,op:35,ip:13,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"T",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,20],[-34.641,0],[0,-20],[34.641,0]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[34.641,0],[.015,-20],[0,20],[34.641,40]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[44.641,30]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:6,parent:1},{ty:4,nm:"F",sr:1,st:-20,op:13,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,10],[-17.321,30],[-17.321,-10],[17.321,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.324,30],[-17.34,-9.984],[17.336,-30.016],[17.336,10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[61.962,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:7,parent:1},{ty:4,nm:"F",sr:1,st:-20,op:13,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,10],[-17.32,30],[-17.32,-10],[17.32,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.305,30],[-17.336,-9.984],[17.336,-30.016],[17.32,10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:8,parent:1},{ty:4,nm:"T",sr:1,st:-20,op:32,ip:13,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"T",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,20],[-34.641,0],[0,-20],[34.641,0]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[.016,-20.016],[-34.643,-40],[-34.641,.016],[0,20]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[44.641,70]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:9,parent:1},{ty:4,nm:"S",sr:1,st:-20,op:31,ip:13,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,-10],[17.321,30],[-17.321,10],[-17.321,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,30],[-17.305,50],[-51.961,30],[-17.321,10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[61.962,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:10,parent:1},{ty:4,nm:"F",sr:1,st:-20,op:34,ip:13,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,10],[-17.32,30],[-17.32,-10],[17.32,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.305,30],[-17.336,-9.984],[17.336,-30.016],[17.32,10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:11,parent:1},{ty:4,nm:"S",sr:1,st:-20,op:13,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,-10],[17.321,30],[-17.321,10],[-17.321,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,30],[-17.305,50],[-51.961,30],[-17.321,10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[61.962,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:12,parent:1},{ty:4,nm:"T",sr:1,st:-20,op:13,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"T",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,20],[-34.641,0],[0,-20],[34.641,0]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[.016,-20.016],[-34.643,-40],[-34.641,.016],[0,20]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[44.641,70]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:13,parent:1}]},{nm:"",id:"comp_2",layers:[{ty:4,nm:"R",sr:1,st:0,op:30,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[0,0,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[128,128,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:0}},ef:[],shapes:[],ind:1},{ty:4,nm:"T",sr:1,st:0,op:30,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"T",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,20],[-34.641,0],[0,-20],[34.641,0]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-34.656,.031],[.047,-19.969],[34.652,.031],[0,20]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[44.641,30]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:2,parent:1},{ty:4,nm:"S",sr:1,st:0,op:13,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,30],[-17.32,10],[-17.32,-30],[17.32,-10]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.32,10],[17.32,-9.984],[17.32,-50],[-17.32,-30]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:3,parent:1},{ty:4,nm:"F",sr:1,st:0,op:30,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,10],[-17.321,30],[-17.321,-10],[17.321,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.321,30],[-51.962,10],[-51.962,-30],[-17.321,-10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[61.962,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:4,parent:1},{ty:4,nm:"S",sr:1,st:0,op:30,ip:13,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,30],[-17.32,10],[-17.32,-30],[17.32,-10]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.32,10],[17.32,-9.984],[17.32,-50],[-17.32,-30]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:5,parent:1},{ty:4,nm:"F",sr:1,st:0,op:13,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,10],[-17.32,30],[-17.32,-10],[17.32,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[51.962,30],[17.321,10],[17.321,-30],[51.962,-10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:6,parent:1},{ty:4,nm:"S",sr:1,st:0,op:30,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,30],[-17.321,10],[-17.321,-30],[17.321,-10]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.32,50],[17.32,30],[17.336,-10],[-17.336,10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[61.962,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:7,parent:1},{ty:4,nm:"F",sr:1,st:0,op:30,ip:13,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,10],[-17.32,30],[-17.32,-10],[17.32,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[51.962,30],[17.321,10],[17.321,-30],[51.962,-10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:8,parent:1},{ty:4,nm:"T",sr:1,st:0,op:30,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"T",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,20],[-34.641,0],[0,-20],[34.641,0]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-34.656,0],[.015,-20],[34.656,0],[.012,20.062]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[44.641,70]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:9,parent:1}]},{nm:"",id:"comp_3",layers:[{ty:4,nm:"R",sr:1,st:0,op:30,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[0,0,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[128,128,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:0}},ef:[],shapes:[],ind:1},{ty:4,nm:"S",sr:1,st:0,op:32,ip:13,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,30],[-17.321,10],[-17.321,-30],[17.321,-10]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.336,-10],[-17.32,-30.016],[-51.961,-10],[-17.305,10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[61.962,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:2,parent:1},{ty:4,nm:"T",sr:1,st:0,op:32,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"T",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,20],[-34.641,0],[0,-20],[34.641,0]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[.015,60.016],[-34.642,40],[-34.641,0],[0,20]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[44.641,30]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:3,parent:1},{ty:4,nm:"S",sr:1,st:0,op:13,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.32,10],[-17.32,-30],[17.32,-10],[17.32,30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.312,-10],[-17.313,10],[17.332,30],[51.977,10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:4,parent:1},{ty:4,nm:"F",sr:1,st:0,op:32,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,10],[-17.321,30],[-17.321,-10],[17.321,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.336,-29.984],[17.348,10],[-17.305,30],[-17.305,-9.984]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[61.962,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:5,parent:1},{ty:4,nm:"F",sr:1,st:0,op:13,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,10],[-17.32,30],[-17.32,-10],[17.32,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.336,-30],[17.32,10],[-17.32,30],[-17.336,-10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:6,parent:1},{ty:4,nm:"S",sr:1,st:0,op:13,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,30],[-17.321,10],[-17.321,-30],[17.321,-10]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.336,-10],[-17.32,-30.016],[-51.961,-10],[-17.305,10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[61.962,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:7,parent:1},{ty:4,nm:"T",sr:1,st:0,op:32,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"T",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,20],[-34.641,0],[0,-20],[34.641,0]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[34.641,0],[0,-20],[0,-60.016],[34.641,-40]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[44.641,70]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:8,parent:1},{ty:4,nm:"S",sr:1,st:0,op:32,ip:13,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.32,10],[-17.32,-30],[17.32,-10],[17.32,30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.312,-10],[-17.313,10],[17.332,30],[51.977,10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:9,parent:1},{ty:4,nm:"F",sr:1,st:0,op:32,ip:13,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,10],[-17.32,30],[-17.32,-10],[17.32,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.336,-30],[17.32,10],[-17.32,30],[-17.336,-10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:10,parent:1}]}],cP={nm:QR,h:JR,w:eP,meta:tP,layers:nP,v:sP,fr:rP,op:iP,ip:oP,assets:aP},lP=({meshId:s})=>{const e=b.useRef(null);return b.useEffect(()=>{const t=document.getElementById(`lottie-animation-${s}`);return t&&(e.current=C_.loadAnimation({container:t,animationData:cP,loop:!0,autoplay:!0})),()=>{e.current&&e.current.destroy()}},[s]),V.jsx("div",{id:`lottie-animation-${s}`,style:{width:"2em",height:"2em"}})},ul=()=>Math.floor(Math.random()*2001)-1e3,uP=()=>V.jsx(V.Fragment,{children:["a","b","c"].map(s=>{const e=ul(),t=ul(),n=ul();return V.jsx("mesh",{position:[e,t,n],children:V.jsx(sc,{center:!0,sprite:!0,children:V.jsx(hP,{children:V.jsx(lP,{meshId:s})})})},s)})}),hP=nt.div` + border: 2px solid white; + border-radius: 50%; + display: flex; + align-items: center; + justify-content: center; + color: white; + font-size: 20px; +`,Ci=s=>({close:{backgroundColor:"rgba(48, 51, 66, 1)",borderColor:"#fff",fontColor:"rgba(255, 255, 255, 1)"},focus:{backgroundColor:s?"rgba(255, 255, 255, 0.90);":"rgba(255, 255, 255, 0.90)",borderColor:s?"#FFDB58bb":"#fff",fontColor:"rgba(48, 51, 66, 1)"},menu:{backgroundColor:"#00000066",borderColor:s?"#ffffff66":"#5078f2",fontColor:s?"#ffffff66":"#fff"}}),dP=new _e,g_=b.memo(()=>{var x,C;const s=b.useRef(null),e=go(S=>S.setSidebarOpen),[t,n]=M.useState(null),{open:r}=$o("editNodeName"),{open:i}=$o("addEdgeToNode"),{open:o}=$o("mergeToNode"),{open:a}=$o("createBounty"),[c]=sp(S=>[S.isAdmin]),[l]=Os(S=>[S.addNewNode]),u=As(),{showSelectionGraph:h,selectionGraphData:d,setSelectedNode:f,setShowSelectionGraph:m}=ht(S=>S),p=vy(),g=b.useCallback(async()=>{try{if(u!=null&&u.ref_id){const S=await ip(u==null?void 0:u.ref_id,d.nodes.length||0);S&&l(S)}}catch(S){console.error(S)}},[l,u==null?void 0:u.ref_id,d.nodes.length]);An(()=>{_()});const _=b.useCallback(()=>{const S=h?d:p;if(s.current){const D=S==null?void 0:S.nodes.find(O=>O.ref_id===(u==null?void 0:u.ref_id));if(D){const O=dP.set(D==null?void 0:D.x,D==null?void 0:D.y,D==null?void 0:D.z);s.current.position.copy(O)}}},[u,h,d,p]),w=b.useMemo(()=>{const S=c?[{key:"control-key-1",colors:Ci(h).focus,icon:V.jsx(q_,{}),left:-80,className:"add",onClick:O=>{n(O.currentTarget)}},{key:"control-key-2",colors:Ci(h).focus,icon:V.jsx(H_,{}),left:-40,className:"edit",onClick:()=>{r()}}]:[],D=[{key:"control-key-4",colors:Ci(h).focus,icon:V.jsx(S_,{}),left:0,className:"expand",onClick:()=>{const O=!h;m(O),O&&e(!0)}},{key:"control-key-5",colors:Ci(!0).close,icon:V.jsx(dl,{}),left:40,className:"exit",onClick:()=>{g()}},{key:"control-key-6",colors:Ci(!0).close,icon:V.jsx(O_,{}),left:40,className:"exit",onClick:()=>{m(!1),f(null)}}];return[...S,...D].map((O,L)=>({...O,left:-80+L*40}))},[c,h,r,m,e,g,f]);if(!u)return null;const k=()=>{n(null)},v=!!t,y=v?"simple-popover":void 0,T=((x=u==null?void 0:u.node_type)==null?void 0:x.toLowerCase())==="repository",E=!!(u&&((C=u==null?void 0:u.node_type)==null?void 0:C.toLowerCase())==="function");return V.jsx("group",{ref:s,children:V.jsxs(sc,{center:!0,className:"control-panel",onClick:S=>S.stopPropagation(),onKeyDown:S=>S.stopPropagation(),onPointerDown:S=>S.stopPropagation(),onPointerOut:S=>S.stopPropagation(),onPointerOver:S=>S.stopPropagation(),onPointerUp:S=>S.stopPropagation(),sprite:!0,zIndexRange:[16777271,16777272],children:[w.map(S=>V.jsx(fP,{backgroundColor:S.colors.backgroundColor,borderColor:S.colors.borderColor,className:S.className,fontColor:S.colors.fontColor,left:S.left,onClick:D=>{D.stopPropagation(),S.onClick(D)},children:S.icon},S.key)),E&&V.jsx(mP,{left:2,onClick:()=>{a()},children:"Create Test"}),V.jsx(pP,{anchorEl:t,anchorOrigin:{vertical:"bottom",horizontal:"right"},id:y,onClose:k,open:v,transformOrigin:{vertical:"top",horizontal:"right"},children:T?V.jsxs(V.Fragment,{children:[V.jsxs(xr,{"data-testid":"generate_tests",onClick:()=>{k()},children:[V.jsx(Zf,{children:V.jsx(Mh,{"data-testid":"AddCircleIcon"})}),"Generate Tests"]}),V.jsxs(xr,{"data-testid":"add_comments",onClick:()=>{k()},children:[V.jsxs(Zf,{children:[V.jsx(U_,{"data-testid":"DocumentIcon"})," "]}),"Add Comments"]}),V.jsxs(xr,{"data-testid":"review_bugs",onClick:()=>{k()},children:[V.jsx(B_,{"data-testid":"ConstructionIcon"})," Review Bugs"]}),V.jsxs(xr,{"data-testid":"find_vulnerabilities",onClick:()=>{k()},children:[V.jsx(W_,{"data-testid":"RobotIcon"})," Find Vulnerabilities"]})]}):V.jsxs(V.Fragment,{children:[V.jsxs(xr,{"data-testid":"merge",onClick:()=>{o(),k()},children:[V.jsx(z_,{"data-testid":"MergeIcon"})," Merge"]}),V.jsxs(xr,{"data-testid":"add_edge",onClick:()=>{i(),k()},children:[V.jsx(Mh,{"data-testid":"AddCircleIcon"}),"Add edge"]})]})})]})})});g_.displayName="NodeControls";const fP=nt.div` + position: fixed; + top: -60px; + left: ${s=>-7+s.left}px; + width: 24px; + height: 24px; + + border-radius: 40px; + display: flex; + justify-content: center; + align-items: center; + background: ${s=>s.backgroundColor?s.backgroundColor:"#000000bb"}; + color: ${s=>s.fontColor?s.fontColor:"#ffffff"}; + border-radius: 100%; + font-size: 16px; + cursor: pointer; + transition: opacity 0.4s; + box-shadow: 0px 2px 12px rgba(0, 0, 0, 0.5); +`,xr=nt(On).attrs({direction:"row",px:12,py:8})` + display: flex; + align-items: center; + justify-content: start; + gap: 12px; + cursor: pointer; + background: ${Me.BUTTON1}; + color: ${Me.white}; + + &:hover { + background: ${Me.BUTTON1_HOVER}; + color: ${Me.GRAY3}; + } +`,pP=nt(Y_)` + && { + z-index: 9999; + } + .MuiPaper-root { + min-width: 149px; + color: ${Me.GRAY3}; + box-shadow: 0px 1px 6px 0px rgba(0, 0, 0, 0.2); + border-radius: 6px; + z-index: 1; + font-family: Barlow; + font-size: 14px; + font-weight: 500; + background-color: transparent !important; + margin: 2px; + } +`,Zf=nt.div` + display: flex; + align-items: center; + justify-content: start; + + svg { + margin-top: 1px; + width: 12px; + height: 12px; + } +`,mP=nt.div` + position: fixed; + top: 40px; + left: ${s=>-53+s.left}px; + width: 100px; + padding: 6px; + border-radius: 4px; + display: flex; + justify-content: center; + align-items: center; + background: ${Me.createTestButton}; + color: ${Me.black}; + font-size: 14px; + font-family: Barlow; + font-weight: 600; + cursor: pointer; + &:hover { + transform: scale(1.05); + } +`,__=b.memo(()=>V.jsx(V.Fragment,{children:V.jsx(g_,{})}));__.displayName="NodeDetailsPanel";const gP=()=>{const{dataInitial:s,isLoadingNew:e,isFetching:t,dataNew:n,resetDataNew:r}=Os(p=>p),i=b.useRef(null),{normalizedSchemasByType:o}=_o(p=>p),a=b.useRef(new Map),{setData:c,simulation:l,simulationCreate:u,simulationHelpers:h,graphStyle:d,setGraphRadius:f}=ht(p=>p),m=ht(p=>p.removeSimulation);return b.useEffect(()=>{if(!n)return;const p=n.nodes||[],g=n.links||[],_=structuredClone(p),w=structuredClone(g);if(l){const k=A_.isEqual(n,s);h.addNodesAndLinks(_,w,k)}l||u(_,w),r()},[c,n,l,u,r,h,s]),b.useEffect(()=>{s||m()},[s,m]),b.useEffect(()=>{l&&h.setForces()},[d,h,l]),b.useEffect(()=>{l&&l.on("end",()=>{const p=l.nodes().map(k=>(k.fx=k.x,k.fy=k.y,k.fz=k.z,new _e(k.x,k.y,k.z)));if(i.current){const k=i.current.getObjectByName("simulation-3d-group__node-points"),v=i.current.getObjectByName("simulation-3d-group__connections");k&&k.children[0].children.forEach((y,T)=>{const E=l.nodes()[T];E&&y.position.set(E.x,E.y,E.z)}),v&&(a.current.clear(),v.children.forEach((y,T)=>{var C;const E=y.children[0],x=y.children[1];if(E instanceof lp){const S=E,D=s==null?void 0:s.links[T];if(D){const O=l.nodes().find(F=>F.ref_id===D.source),L=l.nodes().find(F=>F.ref_id===D.target);if(!O||!L){console.warn(`Missing source or target node for link: ${D==null?void 0:D.ref_id}`);return}const{x:j,y:W,z:B}=O,{x:U,y:z,z:X}=L;a.current.set(D.ref_id,{sx:j,sy:W,sz:B,tx:U,ty:z,tz:X});const K=new _e((j+U)/2,(W+z)/2,(B+X)/2);x.position.set(K.x,K.y,K.z);const ee=((C=o[O.node_type])==null?void 0:C.primary_color)||"white";S.geometry.setPositions([j,W,B,U,z,X]);const{material:I}=S;I.color=new du(ee),I.transparent=!0,I.opacity=.3}}}))}const g=new pp().setFromPoints(p),_=new mp;g.getBoundingSphere(_);const w=Math.min(5e3,_.radius);console.log(w),f(w)})},[s,l,f,o]),l?V.jsxs("group",{ref:i,children:[V.jsx(m_,{}),d==="earth"&&V.jsx(ZR,{}),(e||t)&&V.jsx(uP,{}),d!=="earth"&&V.jsx(l_,{linksPosition:a.current}),V.jsx(__,{})]}):null},_P=({fullSize:s=!0})=>{const e=go(t=>t.sidebarIsOpen);return V.jsx(yP,{align:"center",className:D_({"sidebar-is-open":e&&!s}),justify:"center",children:V.jsx(by,{color:Me.SECONDARY_BLUE,size:64})})},yP=nt(On)` + position: absolute; + left: 0; + right: 0; + bottom: 0; + top: 0; + background-color: ${Me.black}; + z-index: 1; +`,y_=s=>{const e=b.useRef(null),{label:t,sourceX:n,sourceY:r,sourceZ:i,targetX:o,targetY:a,targetZ:c}=s;return V.jsxs("group",{children:[V.jsx(ap,{ref:e,color:"blue",isLine2:!0,lineWidth:2,name:"line",points:[n,r,i,o,a,c]}),V.jsxs("mesh",{children:[V.jsx("planeGeometry",{args:[t.length*6,12]}),V.jsx("meshBasicMaterial",{color:"black"}),V.jsx(uu,{anchorX:"center",anchorY:"middle",color:"white",...hu,fontSize:6,children:t})]})]})};y_.displayName="Connection";const vP=b.memo(y_),v_=b.memo(({linksPosition:s})=>{const{selectionGraphData:e}=ht(t=>t);return V.jsx("group",{name:"simulation-3d-group__connections",children:e==null?void 0:e.links.map(t=>{const n=s.get(t.ref_id)||{sx:0,sy:0,sz:0,tx:0,ty:0,tz:0};return V.jsx(vP,{label:t.edge_type,sourceX:n.sx,sourceY:n.sy,sourceZ:n.sz,targetX:n.tx,targetY:n.ty,targetZ:n.tz},t.ref_id)})})});v_.displayName="Connections";const bP=({onClick:s,node:e,selected:t,rounded:n=!0})=>{var d;const{normalizedSchemasByType:r,getNodeKeysByType:i}=_o(f=>f),o=ht(f=>f.setSelectedNode),a=(d=r[e.node_type])==null?void 0:d.icon,c=a?hp[a]:null,l=i(e.node_type)||"",u=e!=null&&e.properties?e==null?void 0:e.properties[l]:"",h=u?cp(u,30):"";return V.jsx(xP,{align:"center",direction:"row",justify:"flex-start",children:V.jsx(V.Fragment,{children:t?V.jsxs(wP,{rounded:!1,children:[V.jsx(kP,{onClick:()=>o(null),children:V.jsx(G_,{})}),V.jsx("div",{children:c?V.jsx(c,{}):V.jsx(dl,{})}),V.jsx(Kf,{children:h})]}):V.jsxs(V.Fragment,{children:[V.jsx(b_,{onClick:s,rounded:n,children:V.jsx("div",{children:c?V.jsx(c,{}):V.jsx(dl,{})})}),V.jsx(Kf,{children:h})]})})})},xP=nt(On)` + background: black; +`,Kf=nt(On)` + color: ${Me.white}; + margin-left: 16px; + font-weight: 700; + width: 100px; + font-size: 16px; +`,b_=nt(On)` + text-align: center; + width: 48px; + height: 48px; + outline: 1px solid ${Me.white}; + outline-offset: 0px; + background: ${Me.BG1}; + color: ${Me.white}; + border-radius: ${s=>`${s.rounded?"50%":"6px"}`}; + cursor: pointer; + transition: font-size 0.4s, outline 0.4s; + align-items: center; + justify-content: center; + font-family: Barlow; + font-size: 24px; + font-style: normal; + font-weight: 700; + text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); + + &:hover { + outline-offset: 4px; + } +`,wP=nt(b_)` + width: 200px; + height: 100px; + flex-direction: row; + justify-content: center; + align-items: center; +`,kP=nt(On)` + position: absolute; + top: -10px; + right: -10px; + width: 24px; + height: 24px; + + border-radius: 40px; + display: flex; + justify-content: center; + align-items: center; + background: black; + color: #ffffff; + border-radius: 100%; + font-size: 16px; + cursor: pointer; + transition: opacity 0.4s; + box-shadow: 0px 2px 12px rgba(0, 0, 0, 0.5); +`,TP=6,x_=b.memo(()=>{const[s,e]=b.useState(null),{dataInitial:t,nodesNormalized:n,addNewNode:r}=Os(_=>_),i=As(),o=b.useRef(null),a=b.useRef(new Map),c=X_().slice(0,TP),l=$_(i==null?void 0:i.ref_id),{normalizedSchemasByType:u}=_o(_=>_),{selectionGraphData:h,selectionPath:d,setSelectionData:f,setSelectedNode:m,setSelectionGraphRadius:p}=ht(Z_(_=>_));b.useMemo(()=>d.slice(-3,-1).filter(w=>!!n.get(w)).map((w,k)=>({...n.get(w),fx:0,fy:-(k+1)*200,fz:0,x:0,y:0,z:0})),[n,d]),b.useEffect(()=>{i&&(async()=>{if(i!=null&&i.ref_id&&i.ref_id!==l)try{const w=await ip(i.ref_id,0,5);if(w){const k=w.nodes.filter((E,x)=>E.ref_id!==i.ref_id&&x<7),y=[...k.map(E=>({...E,x:0,y:0,z:0})),{...i,x:0,y:0,z:0,fx:0,fy:0,fz:0}],T=w.edges.filter(E=>y.some(x=>x.ref_id===E.target)&&y.some(x=>x.ref_id===E.source));f({nodes:y,links:T}),e(null),a.current=new Map,r({nodes:k,edges:T})}}catch(w){console.error(w)}})()},[r,l,i,f]),b.useEffect(()=>{},[t,i,c,f,l,n]),b.useEffect(()=>{if(s||!h.nodes.length)return;const _=structuredClone(h.links),w=K_([]).numDimensions(2).stop().nodes(h.nodes).force("link",Q_().links(_).id(k=>k.ref_id).distance(()=>150)).force("radial",J_(20,0,0,0).strength(0)).force("charge",ey().strength(-500)).alpha(1).restart();e(w)},[h,s]),b.useEffect(()=>{s&&(s.on("tick",()=>{if(!o.current)return;o.current.children.forEach((k,v)=>{const y=s.nodes()[v];y&&k.position.set(y.x,y.y,y.z)}),o.current.getObjectByName("simulation-3d-group__connections").children.forEach((k,v)=>{const y=k.children[0],T=k.children[1];if(y instanceof lp){const E=y,x=h==null?void 0:h.links[v];if(x){const C=s.nodes().find(z=>z.ref_id===x.source),S=s.nodes().find(z=>z.ref_id===x.target);if(!C||!S)return;const{x:D,y:O}=C,{x:L,y:j}=S;a.current.set(x.ref_id,{sx:D,sy:O,tx:L,ty:j,sz:0,tz:0});const W=new _e((D+L)/2,(O+j)/2,0);T.position.set(W.x,W.y,1);let B=Math.atan2(j-O,L-D);(L{const _=s.nodes().map(y=>new _e(y.x,y.y,y.z)),w=new pp().setFromPoints(_),k=new mp;w.getBoundingSphere(k);const v=Math.min(5e3,k.radius);p(v)}))},[u,h==null?void 0:h.links,s,p]);const g=b.useCallback(_=>{m(_)},[m]);return V.jsxs(V.Fragment,{children:[V.jsxs("group",{ref:o,name:"simulation-2d-group",children:[h==null?void 0:h.nodes.map(_=>V.jsx("mesh",{children:V.jsx(sc,{center:!0,sprite:!0,zIndexRange:[0,0],children:V.jsx(bP,{node:_,onClick:()=>g(_),selected:_.ref_id===(i==null?void 0:i.ref_id)})})},_.ref_id)),V.jsx(v_,{linksPosition:a.current})]}),!1]})});x_.displayName="SelectionDataNodes";const EP=()=>{const s=b.useRef(null),e=ht(n=>n.selectionGraphRadius),[t]=b.useState(.8);return b.useEffect(()=>{s.current&&s.current.setLookAt(fs.x,fs.y,e*2,0,0,0,!0)},[e]),V.jsx(Sp,{ref:s,azimuthRotateSpeed:0,boundaryEnclosesCamera:!0,makeDefault:!0,maxDistance:12e3,minDistance:100,polarRotateSpeed:0,smoothTime:t})},CP=()=>V.jsxs(V.Fragment,{children:[V.jsx(up,{}),V.jsx(EP,{}),V.jsx(x_,{})]}),Qf=()=>V.jsx(sc,{children:V.jsx(l1,{})}),SP=()=>{const{universeColor:s}=eE("universe",{universeColor:Me.black}),e=As();return b.useMemo(()=>e!=null&&e.node_type?F_(e.node_type):hE,[e]),V.jsxs(V.Fragment,{children:[V.jsx("color",{args:[Me.BLUE_PRESS_STATE||s],attach:"transparent"}),V.jsx(up,{}),V.jsx(xD,{}),V.jsxs(T1,{children:[!1,V.jsx(gP,{})]})]})};let hl=null;const Jf={aspect:window.innerWidth/window.innerHeight,far:3e4,near:1,position:[Mi.x,Mi.y,Mi.z]},OP=()=>{const[s,e,t]=[ds(c=>c.setIsUserScrollingOnHtmlPanel),ds(c=>c.setIsUserScrolling),ds(c=>c.setUserMovedCamera)],n=Os(c=>c.isFetching),r=go(c=>c.universeQuestionIsOpen),i=As(),o=b.useCallback(c=>{var h;const{target:l}=c,{offsetParent:u}=l;hl&&clearTimeout(hl),(h=u==null?void 0:u.classList)!=null&&h.contains("html-panel")&&u.clientHeight{e(!1),s(!1)},200)},[e,s,t]),a=b.useCallback(c=>R_(c,"threeState"),[]);return V.jsxs(AP,{children:[V.jsxs(b.Suspense,{fallback:null,children:[V.jsx(J0,{hidden:!0,isRoot:!0}),V.jsxs(Dh,{camera:Jf,frameloop:i?"demand":"always",id:"universe-canvas",onCreated:a,onWheel:o,children:[Ah&&V.jsx(Rh,{position:"top-right",style:{top:"80px"}}),V.jsxs(b.Suspense,{fallback:V.jsx(Qf,{}),children:[V.jsx(w1,{}),V.jsx(cd,{}),V.jsx(ld,{}),V.jsx(SP,{})]})]}),i?V.jsx(DP,{children:V.jsxs(Dh,{camera:{...Jf,position:[fs.x,fs.y,fs.z]},id:"selection-canvas",onCreated:({gl:c})=>{c.setClearColor("#000000"),c.setClearAlpha(.8)},children:[Ah&&V.jsx(Rh,{position:"top-right",style:{top:"80px"}}),V.jsxs(b.Suspense,{fallback:V.jsx(Qf,{}),children:[V.jsx(cd,{}),V.jsx(ld,{}),V.jsx(CP,{})]})]})}):null]}),r&&V.jsx(nE,{}),n&&V.jsx(_P,{fullSize:!1}),V.jsx(ty,{})]})},AP=nt(On)` + flex: 1 1 100%; + position: relative; +`,DP=nt(On)` + position: absolute; + inset: 0; +`,yM=b.memo(OP);export{yM as Universe}; diff --git a/build/assets/index-c72c0e72.js b/build/assets/index-82597361.js similarity index 96% rename from build/assets/index-c72c0e72.js rename to build/assets/index-82597361.js index 6c341d18a..ef6e4e299 100644 --- a/build/assets/index-c72c0e72.js +++ b/build/assets/index-82597361.js @@ -1,4 +1,4 @@ -import{e as a,o as M,n as B,u as T,k as z,q as G,b as L,a7 as N,j as e,T as t,s as c,a as n,F as l}from"./index-3506c528.js";import{M as O,i as D,j as E,S as R,C as U,k as W,F as Y}from"./index-ccbb14cf.js";const K=()=>{const{open:r}=a("sourcesTable"),{open:p}=a("addItem"),{open:u}=a("addContent"),{open:h}=a("settings"),{open:x}=a("blueprintGraph"),{open:b}=a("feedback"),g=M(),{resetAiSummaryAnswer:j,setNewLoading:m}=B(),{abortFetchData:k,resetGraph:f}=T(o=>o),{setUniverseQuestionIsOpen:y,setSidebarOpen:w,setShowCollapseButton:S}=z(o=>o),{customSchemaFeatureFlag:C,userFeedbackFeatureFlag:F,chatInterfaceFeatureFlag:I}=G(o=>o),{isAdmin:d}=L(o=>o),v=N(),A=()=>{m(null),k(),j(),f(),g("/")},$=()=>{y(),w(!0),S(!0)};return e.jsxs(q,{children:[e.jsx(Q,{onClick:A,children:e.jsx("img",{alt:"Second brain",src:"logo.svg"})}),I?e.jsxs(i,{onClick:$,children:[e.jsx(s,{children:e.jsx(O,{})}),e.jsx(t,{children:"New Chat"})]}):null,d?e.jsxs(i,{"data-testid":"add-item-modal",onClick:p,children:[e.jsx(s,{children:e.jsx(D,{})}),e.jsx(t,{children:"Add Item"})]}):null,e.jsxs(i,{"data-testid":"add-content-modal",onClick:u,children:[e.jsx(s,{children:e.jsx(E,{})}),e.jsx(t,{children:"Add Content"})]}),e.jsxs(i,{id:"cy-open-soure-table",onClick:r,children:[e.jsx(s,{children:e.jsx(R,{})}),e.jsx(t,{children:"Source Table"})]}),C&&d?e.jsxs(i,{"data-testid":"add-blueprint-modal",id:"cy-open-soure-table",onClick:x,children:[e.jsx(s,{children:e.jsx(U,{})}),e.jsx(t,{children:"Blueprint"})]}):null,e.jsxs(i,{"data-testid":"settings-modal",onClick:h,children:[e.jsx(s,{children:e.jsx(W,{})}),e.jsx(t,{children:"Settings"})]}),F&&v?e.jsxs(X,{"data-testid":"feedback-modal",onClick:b,children:[e.jsx(s,{children:e.jsx(Y,{})}),e.jsx(t,{children:"Send Feedback"})]}):null]})},q=c(l).attrs({align:"flex-start",direction:"column",justify:"flex-start"})` +import{e as a,o as M,n as B,u as T,k as z,q as G,b as L,a7 as N,j as e,T as t,s as c,a as n,F as l}from"./index-6541aa03.js";import{M as O,i as D,j as E,S as R,C as U,k as W,F as Y}from"./index-ad617d4b.js";const K=()=>{const{open:r}=a("sourcesTable"),{open:p}=a("addItem"),{open:u}=a("addContent"),{open:h}=a("settings"),{open:x}=a("blueprintGraph"),{open:b}=a("feedback"),g=M(),{resetAiSummaryAnswer:j,setNewLoading:m}=B(),{abortFetchData:k,resetGraph:f}=T(o=>o),{setUniverseQuestionIsOpen:y,setSidebarOpen:w,setShowCollapseButton:S}=z(o=>o),{customSchemaFeatureFlag:C,userFeedbackFeatureFlag:F,chatInterfaceFeatureFlag:I}=G(o=>o),{isAdmin:d}=L(o=>o),v=N(),A=()=>{m(null),k(),j(),f(),g("/")},$=()=>{y(),w(!0),S(!0)};return e.jsxs(q,{children:[e.jsx(Q,{onClick:A,children:e.jsx("img",{alt:"Second brain",src:"logo.svg"})}),I?e.jsxs(i,{onClick:$,children:[e.jsx(s,{children:e.jsx(O,{})}),e.jsx(t,{children:"New Chat"})]}):null,d?e.jsxs(i,{"data-testid":"add-item-modal",onClick:p,children:[e.jsx(s,{children:e.jsx(D,{})}),e.jsx(t,{children:"Add Item"})]}):null,e.jsxs(i,{"data-testid":"add-content-modal",onClick:u,children:[e.jsx(s,{children:e.jsx(E,{})}),e.jsx(t,{children:"Add Content"})]}),e.jsxs(i,{id:"cy-open-soure-table",onClick:r,children:[e.jsx(s,{children:e.jsx(R,{})}),e.jsx(t,{children:"Source Table"})]}),C&&d?e.jsxs(i,{"data-testid":"add-blueprint-modal",id:"cy-open-soure-table",onClick:x,children:[e.jsx(s,{children:e.jsx(U,{})}),e.jsx(t,{children:"Blueprint"})]}):null,e.jsxs(i,{"data-testid":"settings-modal",onClick:h,children:[e.jsx(s,{children:e.jsx(W,{})}),e.jsx(t,{children:"Settings"})]}),F&&v?e.jsxs(X,{"data-testid":"feedback-modal",onClick:b,children:[e.jsx(s,{children:e.jsx(Y,{})}),e.jsx(t,{children:"Send Feedback"})]}):null]})},q=c(l).attrs({align:"flex-start",direction:"column",justify:"flex-start"})` flex: 0 0 64px; z-index: 31; transition: opacity 1s; diff --git a/build/assets/index-ec018768.js b/build/assets/index-8a795fb2.js similarity index 98% rename from build/assets/index-ec018768.js rename to build/assets/index-8a795fb2.js index f109d352e..718c335a1 100644 --- a/build/assets/index-ec018768.js +++ b/build/assets/index-8a795fb2.js @@ -1,4 +1,4 @@ -import{aY as j,aZ as E,a_ as b,a$ as R,b0 as B,b1 as U,b2 as D,b3 as O,s as p,a as u,b as Z,r as f,j as e,F as r,B as C,aW as J,T as z,b4 as K,aU as X,aV as Q,e as ee,u as te,t as se,aT as ne,N as m,aX as oe,v as re,b5 as ae,af as ie,b6 as ce,b7 as le,z as de,w as ue,b8 as pe}from"./index-3506c528.js";import{ac as xe}from"./index-ccbb14cf.js";import{f as he}from"./index-6c442139.js";import{C as fe}from"./ClipLoader-273b2bbd.js";const A=/\b(?:twitter\.com|x\.com)\/(?:@)?([\w_]+)(?:$|\?[^/]*$)/,we=/(https?:\/\/)?(www\.)?youtube\.com\/watch\?v=([A-Za-z0-9_-]+)/,ge=/(https?:\/\/)?(www\.)?youtube\.com\/live\/([A-Za-z0-9_-]+)/,me=/(https?:\/\/)?(www\.)?youtu\.be\/([A-Za-z0-9_-]+)/,ye=/https:\/\/twitter\.com\/i\/spaces\/([A-Za-z0-9_-]+)/,be=/https:\/\/(twitter\.com|x\.com)\/[^/]+\/status\/(\d+)/,je=/(https?:\/\/)?([A-Za-z0-9_-]+)\.mp3/,Se=/(https?:\/\/)?(.*\.)?.+\/(feed|rss|rss\.xml|.*\?(feed|format)=rss)(\/.*)?$/,ve=/https?:\/\/(www\.)?youtube\.com\/(user\/)?(@)?([\w-]+)/,_e=/^(https?|ftp):\/\/[^\s/$.?#].[^\s]*$/,Ee=/https:\/\/twitter\.com\/i\/broadcasts\/([A-Za-z0-9_-]+)/,Re=/https:\/\/github\.com\/[\w-]+\/[\w-]+/;async function Ce(t){try{const n=(await fetch(t,{method:"HEAD"})).headers.get("Content-Type");return(n==null?void 0:n.includes("application/rss+xml"))??!1}catch{return!1}}async function ze(t){return[ge,Ee,we,me,ye,je].some(n=>n.test(t))?B:ve.test(t)?E:A.test(t)?j:be.test(t)?U:Se.test(t)?b:Re.test(t)?R:_e.test(t)?await Ce(t)?b:D:O}const $e=(t,s="")=>{const o=(s===j?A:/@(\w+)/).exec(t);return o?o[1]:null},_=t=>!!t&&[j,E,b,R].includes(t),Te=({onClick:t,loading:s,type:n,error:o})=>{const y=Z(i=>i.budget),[a,x]=f.useState(10),d=_(n)?"radar":"add_node";return f.useEffect(()=>{(async()=>{try{const c=await K(d);x(c.data.price)}catch(c){console.error("cannot fetch",c)}})()},[d]),e.jsxs(r,{children:[e.jsx(r,{align:"center",direction:"row",justify:"space-between",mb:20,children:e.jsx(r,{align:"center",direction:"row",children:e.jsx(ke,{children:"Approve Cost"})})}),e.jsxs(r,{align:"center",direction:"row",justify:"space-between",mb:20,children:[e.jsxs(Be,{children:[e.jsx("div",{className:"title",children:"COST"}),e.jsxs("div",{className:"value","data-testid":"check-price",children:[a," sats"]})]}),e.jsxs(Ae,{children:[e.jsx("div",{className:"title",children:"BUDGET"}),e.jsxs("div",{className:"value",children:[he(y)," sats"]})]})]}),e.jsx(r,{children:e.jsx(C,{color:"secondary","data-testid":"check-icon",disabled:s||!!o,onClick:t,size:"large",startIcon:s?e.jsx(L,{children:e.jsx(fe,{color:u.lightGray,size:12})}):e.jsxs(L,{children:[" ",e.jsx(xe,{})]}),type:"submit",variant:"contained",children:"Approve"})}),o?e.jsx(Pe,{children:e.jsxs(Ne,{children:[e.jsx(J,{className:"errorIcon"}),e.jsx("span",{children:o})]})}):null]})},Be=p(r).attrs({direction:"column",align:"space-between",justify:"flex-start"})` +import{aY as j,aZ as E,a_ as b,a$ as R,b0 as B,b1 as U,b2 as D,b3 as O,s as p,a as u,b as Z,r as f,j as e,F as r,B as C,aW as J,T as z,b4 as K,aU as X,aV as Q,e as ee,u as te,t as se,aT as ne,N as m,aX as oe,v as re,b5 as ae,af as ie,b6 as ce,b7 as le,z as de,w as ue,b8 as pe}from"./index-6541aa03.js";import{ac as xe}from"./index-ad617d4b.js";import{f as he}from"./index-e7d624e0.js";import{C as fe}from"./ClipLoader-708ab7a4.js";const A=/\b(?:twitter\.com|x\.com)\/(?:@)?([\w_]+)(?:$|\?[^/]*$)/,we=/(https?:\/\/)?(www\.)?youtube\.com\/watch\?v=([A-Za-z0-9_-]+)/,ge=/(https?:\/\/)?(www\.)?youtube\.com\/live\/([A-Za-z0-9_-]+)/,me=/(https?:\/\/)?(www\.)?youtu\.be\/([A-Za-z0-9_-]+)/,ye=/https:\/\/twitter\.com\/i\/spaces\/([A-Za-z0-9_-]+)/,be=/https:\/\/(twitter\.com|x\.com)\/[^/]+\/status\/(\d+)/,je=/(https?:\/\/)?([A-Za-z0-9_-]+)\.mp3/,Se=/(https?:\/\/)?(.*\.)?.+\/(feed|rss|rss\.xml|.*\?(feed|format)=rss)(\/.*)?$/,ve=/https?:\/\/(www\.)?youtube\.com\/(user\/)?(@)?([\w-]+)/,_e=/^(https?|ftp):\/\/[^\s/$.?#].[^\s]*$/,Ee=/https:\/\/twitter\.com\/i\/broadcasts\/([A-Za-z0-9_-]+)/,Re=/https:\/\/github\.com\/[\w-]+\/[\w-]+/;async function Ce(t){try{const n=(await fetch(t,{method:"HEAD"})).headers.get("Content-Type");return(n==null?void 0:n.includes("application/rss+xml"))??!1}catch{return!1}}async function ze(t){return[ge,Ee,we,me,ye,je].some(n=>n.test(t))?B:ve.test(t)?E:A.test(t)?j:be.test(t)?U:Se.test(t)?b:Re.test(t)?R:_e.test(t)?await Ce(t)?b:D:O}const $e=(t,s="")=>{const o=(s===j?A:/@(\w+)/).exec(t);return o?o[1]:null},_=t=>!!t&&[j,E,b,R].includes(t),Te=({onClick:t,loading:s,type:n,error:o})=>{const y=Z(i=>i.budget),[a,x]=f.useState(10),d=_(n)?"radar":"add_node";return f.useEffect(()=>{(async()=>{try{const c=await K(d);x(c.data.price)}catch(c){console.error("cannot fetch",c)}})()},[d]),e.jsxs(r,{children:[e.jsx(r,{align:"center",direction:"row",justify:"space-between",mb:20,children:e.jsx(r,{align:"center",direction:"row",children:e.jsx(ke,{children:"Approve Cost"})})}),e.jsxs(r,{align:"center",direction:"row",justify:"space-between",mb:20,children:[e.jsxs(Be,{children:[e.jsx("div",{className:"title",children:"COST"}),e.jsxs("div",{className:"value","data-testid":"check-price",children:[a," sats"]})]}),e.jsxs(Ae,{children:[e.jsx("div",{className:"title",children:"BUDGET"}),e.jsxs("div",{className:"value",children:[he(y)," sats"]})]})]}),e.jsx(r,{children:e.jsx(C,{color:"secondary","data-testid":"check-icon",disabled:s||!!o,onClick:t,size:"large",startIcon:s?e.jsx(L,{children:e.jsx(fe,{color:u.lightGray,size:12})}):e.jsxs(L,{children:[" ",e.jsx(xe,{})]}),type:"submit",variant:"contained",children:"Approve"})}),o?e.jsx(Pe,{children:e.jsxs(Ne,{children:[e.jsx(J,{className:"errorIcon"}),e.jsx("span",{children:o})]})}):null]})},Be=p(r).attrs({direction:"column",align:"space-between",justify:"flex-start"})` width: 141px; height: 61px; border: 1px solid ${u.GRAY7}; diff --git a/build/assets/index-12606cd8.js b/build/assets/index-8bfad94c.js similarity index 93% rename from build/assets/index-12606cd8.js rename to build/assets/index-8bfad94c.js index 1815d51a5..9805f8450 100644 --- a/build/assets/index-12606cd8.js +++ b/build/assets/index-8bfad94c.js @@ -1,4 +1,4 @@ -import{z as V,bU as C,bV as m,bW as F,s as B,T as k,F as d,an as z,r as x,b as M,j as n,aU as $,aV as R,B as S,e as E,t as U,v as A,aT as G,aX as I}from"./index-3506c528.js";import{m as K}from"./index-ccbb14cf.js";import{A as N}from"./index-1575e121.js";import"./index-d54cb162.js";import"./Stack-7521353f.js";import"./createSvgIcon-0fd508c0.js";import"./TextareaAutosize-e8dfc0e6.js";const _="https://community.sphinx.chat",O=async e=>await V.post("/bounty",JSON.stringify(e)),W=async e=>await C(`${_}/person/${e}`,{headers:{"Content-Type":"application/json"},method:"GET"}),P=async e=>await C(`${_}/workspaces/user/${e}`,{headers:{"Content-Type":"application/json"},method:"GET"});async function q(){try{const e=Math.floor(Date.now()/1e3),t=m.Buffer.from(e.toString(16),"hex"),r=m.Buffer.from(t).toString("base64"),s=await F.signMessage(r),a=v(s.signature),l=m.Buffer.concat([t,a],a.length+t.length);return L(l)}catch(e){return console.log("error from signing more message: ",e),""}}function v(e){const t=e.replace(/_/g,"/").replace(/-/g,"+"),r=t.padEnd(t.length+(4-t.length%4)%4,"=");return m.Buffer.from(r,"base64")}function L(e){let t="";const r=e.byteLength;for(let a=0;a{const t=e.trim();return!!(t&&D.test(t))},J=({errMessage:e,handleClose:t})=>{const{setValue:r,watch:s}=z(),[a,l]=x.useState([]),{pubKey:c}=M();x.useEffect(()=>{async function o(){try{const i=await W(c);if(!i.id){l([{label:"SecondBrain",value:"SecondBrain"}]);return}const p=await P(i.id);if(p.length>0){const w=[];for(let b=0;b{const i=(o==null?void 0:o.label)||"SecondBrain",p=(o==null?void 0:o.value)||"ck9drb84nncjnaefo090";r("nodeType",i,{shouldValidate:!0}),r("workspaceUuid",p)},y=H(u)&&!!g,h=o=>{o.key===" "&&o.preventDefault()};return n.jsxs(d,{children:[n.jsx(d,{align:"center",direction:"row",justify:"space-between",mb:18,children:n.jsx(X,{children:"Create Bounty"})}),n.jsxs(d,{mb:20,children:[n.jsx(T,{children:"Select Workspace"}),n.jsx(N,{autoFocus:!0,onSelect:f,options:a})]}),n.jsxs(d,{mb:20,children:[n.jsx(T,{children:"Set Budget"}),n.jsx($,{id:"budget",name:"budget",onKeyDown:h,placeholder:"Enter budget",rules:{...R,pattern:{value:D,message:"Please enter a valid number"}},value:u})]}),n.jsxs(d,{direction:"row",children:[n.jsx(d,{grow:1,children:n.jsx(S,{color:"secondary",onClick:()=>t(),size:"large",variant:"contained",children:"Cancel"})}),n.jsx(d,{grow:1,ml:20,children:n.jsx(S,{color:"secondary",disabled:!y,size:"large",type:"submit",variant:"contained",children:"Confirm"})})]}),e&&n.jsx(Q,{children:e})]})},T=B(k)` +import{z as V,bU as C,bV as m,bW as F,s as B,T as k,F as d,an as z,r as x,b as M,j as n,aU as $,aV as R,B as S,e as E,t as U,v as A,aT as G,aX as I}from"./index-6541aa03.js";import{m as K}from"./index-ad617d4b.js";import{A as N}from"./index-bb4d07d0.js";import"./index-8f946e20.js";import"./Stack-bcf44d60.js";import"./createSvgIcon-0b5f6bf4.js";import"./TextareaAutosize-387bd327.js";const _="https://community.sphinx.chat",O=async e=>await V.post("/bounty",JSON.stringify(e)),W=async e=>await C(`${_}/person/${e}`,{headers:{"Content-Type":"application/json"},method:"GET"}),P=async e=>await C(`${_}/workspaces/user/${e}`,{headers:{"Content-Type":"application/json"},method:"GET"});async function q(){try{const e=Math.floor(Date.now()/1e3),t=m.Buffer.from(e.toString(16),"hex"),r=m.Buffer.from(t).toString("base64"),s=await F.signMessage(r),a=v(s.signature),l=m.Buffer.concat([t,a],a.length+t.length);return L(l)}catch(e){return console.log("error from signing more message: ",e),""}}function v(e){const t=e.replace(/_/g,"/").replace(/-/g,"+"),r=t.padEnd(t.length+(4-t.length%4)%4,"=");return m.Buffer.from(r,"base64")}function L(e){let t="";const r=e.byteLength;for(let a=0;a{const t=e.trim();return!!(t&&D.test(t))},J=({errMessage:e,handleClose:t})=>{const{setValue:r,watch:s}=z(),[a,l]=x.useState([]),{pubKey:c}=M();x.useEffect(()=>{async function o(){try{const i=await W(c);if(!i.id){l([{label:"SecondBrain",value:"SecondBrain"}]);return}const p=await P(i.id);if(p.length>0){const w=[];for(let b=0;b{const i=(o==null?void 0:o.label)||"SecondBrain",p=(o==null?void 0:o.value)||"ck9drb84nncjnaefo090";r("nodeType",i,{shouldValidate:!0}),r("workspaceUuid",p)},y=H(u)&&!!g,h=o=>{o.key===" "&&o.preventDefault()};return n.jsxs(d,{children:[n.jsx(d,{align:"center",direction:"row",justify:"space-between",mb:18,children:n.jsx(X,{children:"Create Bounty"})}),n.jsxs(d,{mb:20,children:[n.jsx(T,{children:"Select Workspace"}),n.jsx(N,{autoFocus:!0,onSelect:f,options:a})]}),n.jsxs(d,{mb:20,children:[n.jsx(T,{children:"Set Budget"}),n.jsx($,{id:"budget",name:"budget",onKeyDown:h,placeholder:"Enter budget",rules:{...R,pattern:{value:D,message:"Please enter a valid number"}},value:u})]}),n.jsxs(d,{direction:"row",children:[n.jsx(d,{grow:1,children:n.jsx(S,{color:"secondary",onClick:()=>t(),size:"large",variant:"contained",children:"Cancel"})}),n.jsx(d,{grow:1,ml:20,children:n.jsx(S,{color:"secondary",disabled:!y,size:"large",type:"submit",variant:"contained",children:"Confirm"})})]}),e&&n.jsx(Q,{children:e})]})},T=B(k)` font-size: 14px; font-weight: 600; font-family: 'Barlow'; diff --git a/build/assets/index-d54cb162.js b/build/assets/index-8f946e20.js similarity index 96% rename from build/assets/index-d54cb162.js rename to build/assets/index-8f946e20.js index 67656c865..584961659 100644 --- a/build/assets/index-d54cb162.js +++ b/build/assets/index-8f946e20.js @@ -1,4 +1,4 @@ -import{s as p,a,F as b,d as m,j as c}from"./index-3506c528.js";const v=({type:s})=>{var n,g;let e;const[r]=m(l=>[l.normalizedSchemasByType]),d=s,o=(n=r[s])==null?void 0:n.primary_color,i=(g=r[s])==null?void 0:g.icon,t=i?`svg-icons/${i}.svg`:null;switch(d){case"video":case"twitter_space":case"podcast":case"clip":e={iconStart:t??"video_badge.svg",color:o??a.CLIP};break;case"show":e={iconStart:t??"show_badge.svg",color:o??a.SHOW};break;case"tweet":e={iconStart:t??"twitter_badge.svg",color:o??a.TWEET};break;case"episode":e={iconStart:t??"audio_badge.svg",color:o??a.EPISODE};break;case"document":e={iconStart:t??"notes_badge.svg",color:o??a.TEXT};break;case(i??"organization"):e={iconStart:t??"organization_badge.svg",color:o??a.ORGANIZATION};break;case"person":case"guest":case"host":e={iconStart:t??"person_badge.svg",color:o??a.PERSON};break;case"event":e={iconStart:t??"event_badge.svg",color:o??a.EVENT};break;default:e={iconStart:t??"thing_badge.svg",color:o??a.THING};break}return c.jsx(h,{...e,label:s})},h=({iconStart:s,color:e,label:r})=>c.jsxs(x,{color:e,children:[c.jsx("img",{alt:r,className:"badge__img",src:s}),c.jsx("div",{className:"badge__label",children:r})]}),x=p(b).attrs({direction:"row"})` +import{s as p,a,F as b,d as m,j as c}from"./index-6541aa03.js";const v=({type:s})=>{var n,g;let e;const[r]=m(l=>[l.normalizedSchemasByType]),d=s,o=(n=r[s])==null?void 0:n.primary_color,i=(g=r[s])==null?void 0:g.icon,t=i?`svg-icons/${i}.svg`:null;switch(d){case"video":case"twitter_space":case"podcast":case"clip":e={iconStart:t??"video_badge.svg",color:o??a.CLIP};break;case"show":e={iconStart:t??"show_badge.svg",color:o??a.SHOW};break;case"tweet":e={iconStart:t??"twitter_badge.svg",color:o??a.TWEET};break;case"episode":e={iconStart:t??"audio_badge.svg",color:o??a.EPISODE};break;case"document":e={iconStart:t??"notes_badge.svg",color:o??a.TEXT};break;case(i??"organization"):e={iconStart:t??"organization_badge.svg",color:o??a.ORGANIZATION};break;case"person":case"guest":case"host":e={iconStart:t??"person_badge.svg",color:o??a.PERSON};break;case"event":e={iconStart:t??"event_badge.svg",color:o??a.EVENT};break;default:e={iconStart:t??"thing_badge.svg",color:o??a.THING};break}return c.jsx(h,{...e,label:s})},h=({iconStart:s,color:e,label:r})=>c.jsxs(x,{color:e,children:[c.jsx("img",{alt:r,className:"badge__img",src:s}),c.jsx("div",{className:"badge__label",children:r})]}),x=p(b).attrs({direction:"row"})` cursor: pointer; background: ${({color:s})=>s}; border-radius: 3px; diff --git a/build/assets/index-ccbb14cf.js b/build/assets/index-ad617d4b.js similarity index 98% rename from build/assets/index-ccbb14cf.js rename to build/assets/index-ad617d4b.js index 81149a732..ef0808300 100644 --- a/build/assets/index-ccbb14cf.js +++ b/build/assets/index-ad617d4b.js @@ -1,4 +1,4 @@ -import{G as g3,R as O1,H as r1,J as Z1,K as q2,L as N1,M as R1,O as d1,x as Z,P as A1,r as H,S as T1,j as r,U as c1,V as U1,X as m3,Y as j1,Z as f1,$ as _2,a0 as k2,a1 as w3,a2 as j2,a3 as G2,c as W2,u as G1,s as D,a as i1,F as p1,B as X2,C as C2,a4 as v3,a5 as _3,k as Y2,b as k3,a6 as j3,I as y3}from"./index-3506c528.js";const L3=e=>{const[t,n,i]=e.split(":"),s=parseInt(t,10),o=parseInt(n,10),l=parseInt(i,10);return s*3600+o*60+l};function y2(...e){return e.reduce((t,n)=>n==null?t:function(...s){t.apply(this,s),n.apply(this,s)},()=>{})}function H3(e,t=166){let n;function i(...s){const o=()=>{e.apply(this,s)};clearTimeout(n),n=setTimeout(o,t)}return i.clear=()=>{clearTimeout(n)},i}function s1(e){return e&&e.ownerDocument||document}function P1(e){return s1(e).defaultView||window}function M3(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}const V3=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},L2=V3,H2={disabled:!1};var Z3=function(t){return t.scrollTop},b1="unmounted",C1="exited",a1="entering",k1="entered",i2="exiting",l1=function(e){g3(t,e);function t(i,s){var o;o=e.call(this,i,s)||this;var l=s,C=l&&!l.isMounting?i.enter:i.appear,a;return o.appearStatus=null,i.in?C?(a=C1,o.appearStatus=a1):a=k1:i.unmountOnExit||i.mountOnEnter?a=b1:a=C1,o.state={status:a},o.nextCallback=null,o}t.getDerivedStateFromProps=function(s,o){var l=s.in;return l&&o.status===b1?{status:C1}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(s){var o=null;if(s!==this.props){var l=this.state.status;this.props.in?l!==a1&&l!==k1&&(o=a1):(l===a1||l===k1)&&(o=i2)}this.updateStatus(!1,o)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var s=this.props.timeout,o,l,C;return o=l=C=s,s!=null&&typeof s!="number"&&(o=s.exit,l=s.enter,C=s.appear!==void 0?s.appear:l),{exit:o,enter:l,appear:C}},n.updateStatus=function(s,o){if(s===void 0&&(s=!1),o!==null)if(this.cancelNextCallback(),o===a1){if(this.props.unmountOnExit||this.props.mountOnEnter){var l=this.props.nodeRef?this.props.nodeRef.current:O1.findDOMNode(this);l&&Z3(l)}this.performEnter(s)}else this.performExit();else this.props.unmountOnExit&&this.state.status===C1&&this.setState({status:b1})},n.performEnter=function(s){var o=this,l=this.props.enter,C=this.context?this.context.isMounting:s,a=this.props.nodeRef?[C]:[O1.findDOMNode(this),C],h=a[0],c=a[1],u=this.getTimeouts(),p=C?u.appear:u.enter;if(!s&&!l||H2.disabled){this.safeSetState({status:k1},function(){o.props.onEntered(h)});return}this.props.onEnter(h,c),this.safeSetState({status:a1},function(){o.props.onEntering(h,c),o.onTransitionEnd(p,function(){o.safeSetState({status:k1},function(){o.props.onEntered(h,c)})})})},n.performExit=function(){var s=this,o=this.props.exit,l=this.getTimeouts(),C=this.props.nodeRef?void 0:O1.findDOMNode(this);if(!o||H2.disabled){this.safeSetState({status:C1},function(){s.props.onExited(C)});return}this.props.onExit(C),this.safeSetState({status:i2},function(){s.props.onExiting(C),s.onTransitionEnd(l.exit,function(){s.safeSetState({status:C1},function(){s.props.onExited(C)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(s,o){o=this.setNextCallback(o),this.setState(s,o)},n.setNextCallback=function(s){var o=this,l=!0;return this.nextCallback=function(C){l&&(l=!1,o.nextCallback=null,s(C))},this.nextCallback.cancel=function(){l=!1},this.nextCallback},n.onTransitionEnd=function(s,o){this.setNextCallback(o);var l=this.props.nodeRef?this.props.nodeRef.current:O1.findDOMNode(this),C=s==null&&!this.props.addEndListener;if(!l||C){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var a=this.props.nodeRef?[this.nextCallback]:[l,this.nextCallback],h=a[0],c=a[1];this.props.addEndListener(h,c)}s!=null&&setTimeout(this.nextCallback,s)},n.render=function(){var s=this.state.status;if(s===b1)return null;var o=this.props,l=o.children;o.in,o.mountOnEnter,o.unmountOnExit,o.appear,o.enter,o.exit,o.timeout,o.addEndListener,o.onEnter,o.onEntering,o.onEntered,o.onExit,o.onExiting,o.onExited,o.nodeRef;var C=r1(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Z1.createElement(q2.Provider,{value:null},typeof l=="function"?l(s,C):Z1.cloneElement(Z1.Children.only(l),C))},t}(Z1.Component);l1.contextType=q2;l1.propTypes={};function _1(){}l1.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:_1,onEntering:_1,onEntered:_1,onExit:_1,onExiting:_1,onExited:_1};l1.UNMOUNTED=b1;l1.EXITED=C1;l1.ENTERING=a1;l1.ENTERED=k1;l1.EXITING=i2;const K2=l1,Q2=e=>e.scrollTop;function z1(e,t){var n,i;const{timeout:s,easing:o,style:l={}}=e;return{duration:(n=l.transitionDuration)!=null?n:typeof s=="number"?s:s[t.mode]||0,easing:(i=l.transitionTimingFunction)!=null?i:typeof o=="object"?o[t.mode]:o,delay:l.transitionDelay}}function b3(e){return N1("MuiPaper",e)}R1("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const E3=["className","component","elevation","square","variant"],S3=e=>{const{square:t,elevation:n,variant:i,classes:s}=e,o={root:["root",i,!t&&"rounded",i==="elevation"&&`elevation${n}`]};return U1(o,b3,s)},I3=d1("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(({theme:e,ownerState:t})=>{var n;return Z({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&Z({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${A1("#fff",L2(t.elevation))}, ${A1("#fff",L2(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),P3=H.forwardRef(function(t,n){const i=T1({props:t,name:"MuiPaper"}),{className:s,component:o="div",elevation:l=1,square:C=!1,variant:a="elevation"}=i,h=r1(i,E3),c=Z({},i,{component:o,elevation:l,square:C,variant:a}),u=S3(c);return r.jsx(I3,Z({as:o,ownerState:c,className:c1(u.root,s),ref:n},h))}),B3=P3;function N3(e){return N1("MuiIconButton",e)}const R3=R1("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),T3=R3,U3=["edge","children","className","color","disabled","disableFocusRipple","size"],O3=e=>{const{classes:t,disabled:n,color:i,edge:s,size:o}=e,l={root:["root",n&&"disabled",i!=="default"&&`color${j1(i)}`,s&&`edge${j1(s)}`,`size${j1(o)}`]};return U1(l,N3,t)},$3=d1(m3,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${j1(n.color)}`],n.edge&&t[`edge${j1(n.edge)}`],t[`size${j1(n.size)}`]]}})(({theme:e,ownerState:t})=>Z({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:A1(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var n;const i=(n=(e.vars||e).palette)==null?void 0:n[t.color];return Z({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&Z({color:i==null?void 0:i.main},!t.disableRipple&&{"&:hover":Z({},i&&{backgroundColor:e.vars?`rgba(${i.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:A1(i.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${T3.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),A3=H.forwardRef(function(t,n){const i=T1({props:t,name:"MuiIconButton"}),{edge:s=!1,children:o,className:l,color:C="default",disabled:a=!1,disableFocusRipple:h=!1,size:c="medium"}=i,u=r1(i,U3),p=Z({},i,{edge:s,color:C,disabled:a,disableFocusRipple:h,size:c}),x=O3(p);return r.jsx($3,Z({className:c1(x.root,l),centerRipple:!0,focusRipple:!h,disabled:a,ref:n,ownerState:p},u,{children:o}))}),J2=A3;function e3(e){return typeof e=="string"}function z3(e,t,n){return e===void 0||e3(e)?t:Z({},t,{ownerState:Z({},t.ownerState,n)})}function t3(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(i=>i.match(/^on[A-Z]/)&&typeof e[i]=="function"&&!t.includes(i)).forEach(i=>{n[i]=e[i]}),n}function F3(e,t,n){return typeof e=="function"?e(t,n):e}function n3(e){var t,n,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function D3(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:i,externalForwardedProps:s,className:o}=e;if(!t){const x=M2(n==null?void 0:n.className,o,s==null?void 0:s.className,i==null?void 0:i.className),f=Z({},n==null?void 0:n.style,s==null?void 0:s.style,i==null?void 0:i.style),_=Z({},n,s,i);return x.length>0&&(_.className=x),Object.keys(f).length>0&&(_.style=f),{props:_,internalRef:void 0}}const l=t3(Z({},s,i)),C=V2(i),a=V2(s),h=t(l),c=M2(h==null?void 0:h.className,n==null?void 0:n.className,o,s==null?void 0:s.className,i==null?void 0:i.className),u=Z({},h==null?void 0:h.style,n==null?void 0:n.style,s==null?void 0:s.style,i==null?void 0:i.style),p=Z({},h,n,a,C);return c.length>0&&(p.className=c),Object.keys(u).length>0&&(p.style=u),{props:p,internalRef:h.ref}}const q3=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function F1(e){var t;const{elementType:n,externalSlotProps:i,ownerState:s,skipResolvingSlotProps:o=!1}=e,l=r1(e,q3),C=o?{}:F3(i,s),{props:a,internalRef:h}=D3(Z({},l,{externalSlotProps:C})),c=f1(h,C==null?void 0:C.ref,(t=e.additionalProps)==null?void 0:t.ref);return z3(n,Z({},a,{ref:c}),s)}const G3=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function W3(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function X3(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=i=>e.ownerDocument.querySelector(`input[type="radio"]${i}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function Y3(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||X3(e))}function K3(e){const t=[],n=[];return Array.from(e.querySelectorAll(G3)).forEach((i,s)=>{const o=W3(i);o===-1||!Y3(i)||(o===0?t.push(i):n.push({documentOrder:s,tabIndex:o,node:i}))}),n.sort((i,s)=>i.tabIndex===s.tabIndex?i.documentOrder-s.documentOrder:i.tabIndex-s.tabIndex).map(i=>i.node).concat(t)}function Q3(){return!0}function J3(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:i=!1,disableRestoreFocus:s=!1,getTabbable:o=K3,isEnabled:l=Q3,open:C}=e,a=H.useRef(!1),h=H.useRef(null),c=H.useRef(null),u=H.useRef(null),p=H.useRef(null),x=H.useRef(!1),f=H.useRef(null),_=f1(t.ref,f),w=H.useRef(null);H.useEffect(()=>{!C||!f.current||(x.current=!n)},[n,C]),H.useEffect(()=>{if(!C||!f.current)return;const g=s1(f.current);return f.current.contains(g.activeElement)||(f.current.hasAttribute("tabIndex")||f.current.setAttribute("tabIndex","-1"),x.current&&f.current.focus()),()=>{s||(u.current&&u.current.focus&&(a.current=!0,u.current.focus()),u.current=null)}},[C]),H.useEffect(()=>{if(!C||!f.current)return;const g=s1(f.current),v=y=>{w.current=y,!(i||!l()||y.key!=="Tab")&&g.activeElement===f.current&&y.shiftKey&&(a.current=!0,c.current&&c.current.focus())},m=()=>{const y=f.current;if(y===null)return;if(!g.hasFocus()||!l()||a.current){a.current=!1;return}if(y.contains(g.activeElement)||i&&g.activeElement!==h.current&&g.activeElement!==c.current)return;if(g.activeElement!==p.current)p.current=null;else if(p.current!==null)return;if(!x.current)return;let L=[];if((g.activeElement===h.current||g.activeElement===c.current)&&(L=o(f.current)),L.length>0){var M,S;const P=!!((M=w.current)!=null&&M.shiftKey&&((S=w.current)==null?void 0:S.key)==="Tab"),V=L[0],U=L[L.length-1];typeof V!="string"&&typeof U!="string"&&(P?U.focus():V.focus())}else y.focus()};g.addEventListener("focusin",m),g.addEventListener("keydown",v,!0);const j=setInterval(()=>{g.activeElement&&g.activeElement.tagName==="BODY"&&m()},50);return()=>{clearInterval(j),g.removeEventListener("focusin",m),g.removeEventListener("keydown",v,!0)}},[n,i,s,l,C,o]);const d=g=>{u.current===null&&(u.current=g.relatedTarget),x.current=!0,p.current=g.target;const v=t.props.onFocus;v&&v(g)},k=g=>{u.current===null&&(u.current=g.relatedTarget),x.current=!0};return r.jsxs(H.Fragment,{children:[r.jsx("div",{tabIndex:C?0:-1,onFocus:k,ref:h,"data-testid":"sentinelStart"}),H.cloneElement(t,{ref:_,onFocus:d}),r.jsx("div",{tabIndex:C?0:-1,onFocus:k,ref:c,"data-testid":"sentinelEnd"})]})}function e5(e){return typeof e=="function"?e():e}const t5=H.forwardRef(function(t,n){const{children:i,container:s,disablePortal:o=!1}=t,[l,C]=H.useState(null),a=f1(H.isValidElement(i)?i.ref:null,n);if(_2(()=>{o||C(e5(s)||document.body)},[s,o]),_2(()=>{if(l&&!o)return k2(n,l),()=>{k2(n,null)}},[n,l,o]),o){if(H.isValidElement(i)){const h={ref:a};return H.cloneElement(i,h)}return r.jsx(H.Fragment,{children:i})}return r.jsx(H.Fragment,{children:l&&w3.createPortal(i,l)})});function n5(e){const t=s1(e);return t.body===e?P1(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function I1(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Z2(e){return parseInt(P1(e).getComputedStyle(e).paddingRight,10)||0}function r5(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,i=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||i}function b2(e,t,n,i,s){const o=[t,n,...i];[].forEach.call(e.children,l=>{const C=o.indexOf(l)===-1,a=!r5(l);C&&a&&I1(l,s)})}function K1(e,t){let n=-1;return e.some((i,s)=>t(i)?(n=s,!0):!1),n}function i5(e,t){const n=[],i=e.container;if(!t.disableScrollLock){if(n5(i)){const l=M3(s1(i));n.push({value:i.style.paddingRight,property:"padding-right",el:i}),i.style.paddingRight=`${Z2(i)+l}px`;const C=s1(i).querySelectorAll(".mui-fixed");[].forEach.call(C,a=>{n.push({value:a.style.paddingRight,property:"padding-right",el:a}),a.style.paddingRight=`${Z2(a)+l}px`})}let o;if(i.parentNode instanceof DocumentFragment)o=s1(i).body;else{const l=i.parentElement,C=P1(i);o=(l==null?void 0:l.nodeName)==="HTML"&&C.getComputedStyle(l).overflowY==="scroll"?l:i}n.push({value:o.style.overflow,property:"overflow",el:o},{value:o.style.overflowX,property:"overflow-x",el:o},{value:o.style.overflowY,property:"overflow-y",el:o}),o.style.overflow="hidden"}return()=>{n.forEach(({value:o,el:l,property:C})=>{o?l.style.setProperty(C,o):l.style.removeProperty(C)})}}function s5(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class o5{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,n){let i=this.modals.indexOf(t);if(i!==-1)return i;i=this.modals.length,this.modals.push(t),t.modalRef&&I1(t.modalRef,!1);const s=s5(n);b2(n,t.mount,t.modalRef,s,!0);const o=K1(this.containers,l=>l.container===n);return o!==-1?(this.containers[o].modals.push(t),i):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:s}),i)}mount(t,n){const i=K1(this.containers,o=>o.modals.indexOf(t)!==-1),s=this.containers[i];s.restore||(s.restore=i5(s,n))}remove(t,n=!0){const i=this.modals.indexOf(t);if(i===-1)return i;const s=K1(this.containers,l=>l.modals.indexOf(t)!==-1),o=this.containers[s];if(o.modals.splice(o.modals.indexOf(t),1),this.modals.splice(i,1),o.modals.length===0)o.restore&&o.restore(),t.modalRef&&I1(t.modalRef,n),b2(o.container,t.mount,t.modalRef,o.hiddenSiblings,!1),this.containers.splice(s,1);else{const l=o.modals[o.modals.length-1];l.modalRef&&I1(l.modalRef,!1)}return i}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function l5(e){return typeof e=="function"?e():e}function C5(e){return e?e.props.hasOwnProperty("in"):!1}const a5=new o5;function c5(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:i=!1,manager:s=a5,closeAfterTransition:o=!1,onTransitionEnter:l,onTransitionExited:C,children:a,onClose:h,open:c,rootRef:u}=e,p=H.useRef({}),x=H.useRef(null),f=H.useRef(null),_=f1(f,u),[w,d]=H.useState(!c),k=C5(a);let g=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(g=!1);const v=()=>s1(x.current),m=()=>(p.current.modalRef=f.current,p.current.mount=x.current,p.current),j=()=>{s.mount(m(),{disableScrollLock:i}),f.current&&(f.current.scrollTop=0)},y=j2(()=>{const E=l5(t)||v().body;s.add(m(),E),f.current&&j()}),L=H.useCallback(()=>s.isTopModal(m()),[s]),M=j2(E=>{x.current=E,E&&(c&&L()?j():f.current&&I1(f.current,g))}),S=H.useCallback(()=>{s.remove(m(),g)},[g,s]);H.useEffect(()=>()=>{S()},[S]),H.useEffect(()=>{c?y():(!k||!o)&&S()},[c,S,k,o,y]);const P=E=>I=>{var z;(z=E.onKeyDown)==null||z.call(E,I),!(I.key!=="Escape"||I.which===229||!L())&&(n||(I.stopPropagation(),h&&h(I,"escapeKeyDown")))},V=E=>I=>{var z;(z=E.onClick)==null||z.call(E,I),I.target===I.currentTarget&&h&&h(I,"backdropClick")};return{getRootProps:(E={})=>{const I=t3(e);delete I.onTransitionEnter,delete I.onTransitionExited;const z=Z({},I,E);return Z({role:"presentation"},z,{onKeyDown:P(z),ref:_})},getBackdropProps:(E={})=>{const I=E;return Z({"aria-hidden":!0},I,{onClick:V(I),open:c})},getTransitionProps:()=>{const E=()=>{d(!1),l&&l()},I=()=>{d(!0),C&&C(),o&&S()};return{onEnter:y2(E,a==null?void 0:a.props.onEnter),onExited:y2(I,a==null?void 0:a.props.onExited)}},rootRef:_,portalRef:M,isTopModal:L,exited:w,hasTransition:k}}const h5=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],u5={entering:{opacity:1},entered:{opacity:1}},d5=H.forwardRef(function(t,n){const i=G2(),s={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{addEndListener:o,appear:l=!0,children:C,easing:a,in:h,onEnter:c,onEntered:u,onEntering:p,onExit:x,onExited:f,onExiting:_,style:w,timeout:d=s,TransitionComponent:k=K2}=t,g=r1(t,h5),v=H.useRef(null),m=f1(v,C.ref,n),j=B=>b=>{if(B){const E=v.current;b===void 0?B(E):B(E,b)}},y=j(p),L=j((B,b)=>{Q2(B);const E=z1({style:w,timeout:d,easing:a},{mode:"enter"});B.style.webkitTransition=i.transitions.create("opacity",E),B.style.transition=i.transitions.create("opacity",E),c&&c(B,b)}),M=j(u),S=j(_),P=j(B=>{const b=z1({style:w,timeout:d,easing:a},{mode:"exit"});B.style.webkitTransition=i.transitions.create("opacity",b),B.style.transition=i.transitions.create("opacity",b),x&&x(B)}),V=j(f),U=B=>{o&&o(v.current,B)};return r.jsx(k,Z({appear:l,in:h,nodeRef:v,onEnter:L,onEntered:M,onEntering:y,onExit:P,onExited:V,onExiting:S,addEndListener:U,timeout:d},g,{children:(B,b)=>H.cloneElement(C,Z({style:Z({opacity:0,visibility:B==="exited"&&!h?"hidden":void 0},u5[B],w,C.props.style),ref:m},b))}))}),f5=d5;function p5(e){return N1("MuiBackdrop",e)}R1("MuiBackdrop",["root","invisible"]);const x5=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],g5=e=>{const{classes:t,invisible:n}=e;return U1({root:["root",n&&"invisible"]},p5,t)},m5=d1("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>Z({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),w5=H.forwardRef(function(t,n){var i,s,o;const l=T1({props:t,name:"MuiBackdrop"}),{children:C,className:a,component:h="div",components:c={},componentsProps:u={},invisible:p=!1,open:x,slotProps:f={},slots:_={},TransitionComponent:w=f5,transitionDuration:d}=l,k=r1(l,x5),g=Z({},l,{component:h,invisible:p}),v=g5(g),m=(i=f.root)!=null?i:u.root;return r.jsx(w,Z({in:x,timeout:d},k,{children:r.jsx(m5,Z({"aria-hidden":!0},m,{as:(s=(o=_.root)!=null?o:c.Root)!=null?s:h,className:c1(v.root,a,m==null?void 0:m.className),ownerState:Z({},g,m==null?void 0:m.ownerState),classes:v,ref:n,children:C}))}))}),v5=w5;function _5(e){return N1("MuiModal",e)}R1("MuiModal",["root","hidden","backdrop"]);const k5=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],j5=e=>{const{open:t,exited:n,classes:i}=e;return U1({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},_5,i)},y5=d1("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>Z({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),L5=d1(v5,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),H5=H.forwardRef(function(t,n){var i,s,o,l,C,a;const h=T1({name:"MuiModal",props:t}),{BackdropComponent:c=L5,BackdropProps:u,className:p,closeAfterTransition:x=!1,children:f,container:_,component:w,components:d={},componentsProps:k={},disableAutoFocus:g=!1,disableEnforceFocus:v=!1,disableEscapeKeyDown:m=!1,disablePortal:j=!1,disableRestoreFocus:y=!1,disableScrollLock:L=!1,hideBackdrop:M=!1,keepMounted:S=!1,onBackdropClick:P,open:V,slotProps:U,slots:B}=h,b=r1(h,k5),E=Z({},h,{closeAfterTransition:x,disableAutoFocus:g,disableEnforceFocus:v,disableEscapeKeyDown:m,disablePortal:j,disableRestoreFocus:y,disableScrollLock:L,hideBackdrop:M,keepMounted:S}),{getRootProps:I,getBackdropProps:z,getTransitionProps:T,portalRef:W,isTopModal:O,exited:$,hasTransition:J}=c5(Z({},E,{rootRef:n})),q=Z({},E,{exited:$}),A=j5(q),x1={};if(f.props.tabIndex===void 0&&(x1.tabIndex="-1"),J){const{onEnter:N,onExited:F}=T();x1.onEnter=N,x1.onExited=F}const g1=(i=(s=B==null?void 0:B.root)!=null?s:d.Root)!=null?i:y5,L1=(o=(l=B==null?void 0:B.backdrop)!=null?l:d.Backdrop)!=null?o:c,H1=(C=U==null?void 0:U.root)!=null?C:k.root,m1=(a=U==null?void 0:U.backdrop)!=null?a:k.backdrop,X1=F1({elementType:g1,externalSlotProps:H1,externalForwardedProps:b,getSlotProps:I,additionalProps:{ref:n,as:w},ownerState:q,className:c1(p,H1==null?void 0:H1.className,A==null?void 0:A.root,!q.open&&q.exited&&(A==null?void 0:A.hidden))}),Y1=F1({elementType:L1,externalSlotProps:m1,additionalProps:u,getSlotProps:N=>z(Z({},N,{onClick:F=>{P&&P(F),N!=null&&N.onClick&&N.onClick(F)}})),className:c1(m1==null?void 0:m1.className,u==null?void 0:u.className,A==null?void 0:A.backdrop),ownerState:q});return!S&&!V&&(!J||$)?null:r.jsx(t5,{ref:W,container:_,disablePortal:j,children:r.jsxs(g1,Z({},X1,{children:[!M&&c?r.jsx(L1,Z({},Y1)):null,r.jsx(J3,{disableEnforceFocus:v,disableAutoFocus:g,disableRestoreFocus:y,isEnabled:O,open:V,children:H.cloneElement(f,x1)})]}))})}),M5=H5,V5=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function s2(e){return`scale(${e}, ${e**2})`}const Z5={entering:{opacity:1,transform:s2(1)},entered:{opacity:1,transform:"none"}},Q1=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),r3=H.forwardRef(function(t,n){const{addEndListener:i,appear:s=!0,children:o,easing:l,in:C,onEnter:a,onEntered:h,onEntering:c,onExit:u,onExited:p,onExiting:x,style:f,timeout:_="auto",TransitionComponent:w=K2}=t,d=r1(t,V5),k=H.useRef(),g=H.useRef(),v=G2(),m=H.useRef(null),j=f1(m,o.ref,n),y=b=>E=>{if(b){const I=m.current;E===void 0?b(I):b(I,E)}},L=y(c),M=y((b,E)=>{Q2(b);const{duration:I,delay:z,easing:T}=z1({style:f,timeout:_,easing:l},{mode:"enter"});let W;_==="auto"?(W=v.transitions.getAutoHeightDuration(b.clientHeight),g.current=W):W=I,b.style.transition=[v.transitions.create("opacity",{duration:W,delay:z}),v.transitions.create("transform",{duration:Q1?W:W*.666,delay:z,easing:T})].join(","),a&&a(b,E)}),S=y(h),P=y(x),V=y(b=>{const{duration:E,delay:I,easing:z}=z1({style:f,timeout:_,easing:l},{mode:"exit"});let T;_==="auto"?(T=v.transitions.getAutoHeightDuration(b.clientHeight),g.current=T):T=E,b.style.transition=[v.transitions.create("opacity",{duration:T,delay:I}),v.transitions.create("transform",{duration:Q1?T:T*.666,delay:Q1?I:I||T*.333,easing:z})].join(","),b.style.opacity=0,b.style.transform=s2(.75),u&&u(b)}),U=y(p),B=b=>{_==="auto"&&(k.current=setTimeout(b,g.current||0)),i&&i(m.current,b)};return H.useEffect(()=>()=>{clearTimeout(k.current)},[]),r.jsx(w,Z({appear:s,in:C,nodeRef:m,onEnter:M,onEntered:S,onEntering:L,onExit:V,onExited:U,onExiting:P,addEndListener:B,timeout:_==="auto"?null:_},d,{children:(b,E)=>H.cloneElement(o,Z({style:Z({opacity:0,transform:s2(.75),visibility:b==="exited"&&!C?"hidden":void 0},Z5[b],f,o.props.style),ref:j},E))}))});r3.muiSupportAuto=!0;const b5=r3;function E5(e){return N1("MuiPopover",e)}R1("MuiPopover",["root","paper"]);const S5=["onEntering"],I5=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],P5=["slotProps"];function E2(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function S2(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function I2(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function J1(e){return typeof e=="function"?e():e}const B5=e=>{const{classes:t}=e;return U1({root:["root"],paper:["paper"]},E5,t)},N5=d1(M5,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),R5=d1(B3,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),T5=H.forwardRef(function(t,n){var i,s,o;const l=T1({props:t,name:"MuiPopover"}),{action:C,anchorEl:a,anchorOrigin:h={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:u="anchorEl",children:p,className:x,container:f,elevation:_=8,marginThreshold:w=16,open:d,PaperProps:k={},slots:g,slotProps:v,transformOrigin:m={vertical:"top",horizontal:"left"},TransitionComponent:j=b5,transitionDuration:y="auto",TransitionProps:{onEntering:L}={},disableScrollLock:M=!1}=l,S=r1(l.TransitionProps,S5),P=r1(l,I5),V=(i=v==null?void 0:v.paper)!=null?i:k,U=H.useRef(),B=f1(U,V.ref),b=Z({},l,{anchorOrigin:h,anchorReference:u,elevation:_,marginThreshold:w,externalPaperSlotProps:V,transformOrigin:m,TransitionComponent:j,transitionDuration:y,TransitionProps:S}),E=B5(b),I=H.useCallback(()=>{if(u==="anchorPosition")return c;const N=J1(a),e1=(N&&N.nodeType===1?N:s1(U.current).body).getBoundingClientRect();return{top:e1.top+E2(e1,h.vertical),left:e1.left+S2(e1,h.horizontal)}},[a,h.horizontal,h.vertical,c,u]),z=H.useCallback(N=>({vertical:E2(N,m.vertical),horizontal:S2(N,m.horizontal)}),[m.horizontal,m.vertical]),T=H.useCallback(N=>{const F={width:N.offsetWidth,height:N.offsetHeight},e1=z(F);if(u==="none")return{top:null,left:null,transformOrigin:I2(e1)};const p2=I();let w1=p2.top-e1.vertical,v1=p2.left-e1.horizontal;const x2=w1+F.height,g2=v1+F.width,m2=P1(J1(a)),w2=m2.innerHeight-w,v2=m2.innerWidth-w;if(w!==null&&w1w2){const n1=x2-w2;w1-=n1,e1.vertical+=n1}if(w!==null&&v1v2){const n1=g2-v2;v1-=n1,e1.horizontal+=n1}return{top:`${Math.round(w1)}px`,left:`${Math.round(v1)}px`,transformOrigin:I2(e1)}},[a,u,I,z,w]),[W,O]=H.useState(d),$=H.useCallback(()=>{const N=U.current;if(!N)return;const F=T(N);F.top!==null&&(N.style.top=F.top),F.left!==null&&(N.style.left=F.left),N.style.transformOrigin=F.transformOrigin,O(!0)},[T]);H.useEffect(()=>(M&&window.addEventListener("scroll",$),()=>window.removeEventListener("scroll",$)),[a,M,$]);const J=(N,F)=>{L&&L(N,F),$()},q=()=>{O(!1)};H.useEffect(()=>{d&&$()}),H.useImperativeHandle(C,()=>d?{updatePosition:()=>{$()}}:null,[d,$]),H.useEffect(()=>{if(!d)return;const N=H3(()=>{$()}),F=P1(a);return F.addEventListener("resize",N),()=>{N.clear(),F.removeEventListener("resize",N)}},[a,d,$]);let A=y;y==="auto"&&!j.muiSupportAuto&&(A=void 0);const x1=f||(a?s1(J1(a)).body:void 0),g1=(s=g==null?void 0:g.root)!=null?s:N5,L1=(o=g==null?void 0:g.paper)!=null?o:R5,H1=F1({elementType:L1,externalSlotProps:Z({},V,{style:W?V.style:Z({},V.style,{opacity:0})}),additionalProps:{elevation:_,ref:B},ownerState:b,className:c1(E.paper,V==null?void 0:V.className)}),m1=F1({elementType:g1,externalSlotProps:(v==null?void 0:v.root)||{},externalForwardedProps:P,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:x1,open:d},ownerState:b,className:c1(E.root,x)}),{slotProps:X1}=m1,Y1=r1(m1,P5);return r.jsx(g1,Z({},Y1,!e3(g1)&&{slotProps:X1,disableScrollLock:M},{children:r.jsx(j,Z({appear:!0,in:d,onEntering:J,onExited:q,timeout:A},S,{children:r.jsx(L1,Z({},H1,{children:p}))}))}))}),E7=T5;function U5(e,t){if(Object.is(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(const[i,s]of e)if(!Object.is(s,t.get(i)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const i of e)if(!t.has(i))return!1;return!0}const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(let i=0;i{const i=e(n);return U5(t.current,i)?t.current:t.current=i}}const A5=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"bubble_chart",children:[r.jsx("mask",{id:"mask0_1551_42",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:r.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_1551_42)",children:r.jsx("path",{id:"bubble_chart_2",d:"M5.83333 15C4.91667 15 4.13194 14.6736 3.47917 14.0208C2.82639 13.3681 2.5 12.5833 2.5 11.6667C2.5 10.75 2.82639 9.96528 3.47917 9.3125C4.13194 8.65972 4.91667 8.33333 5.83333 8.33333C6.75 8.33333 7.53472 8.65972 8.1875 9.3125C8.84028 9.96528 9.16667 10.75 9.16667 11.6667C9.16667 12.5833 8.84028 13.3681 8.1875 14.0208C7.53472 14.6736 6.75 15 5.83333 15ZM13.75 11.6667C12.4722 11.6667 11.3889 11.2222 10.5 10.3333C9.61111 9.44444 9.16667 8.36111 9.16667 7.08333C9.16667 5.80556 9.61111 4.72222 10.5 3.83333C11.3889 2.94444 12.4722 2.5 13.75 2.5C15.0278 2.5 16.1111 2.94444 17 3.83333C17.8889 4.72222 18.3333 5.80556 18.3333 7.08333C18.3333 8.36111 17.8889 9.44444 17 10.3333C16.1111 11.2222 15.0278 11.6667 13.75 11.6667ZM12.0833 17.5C11.3889 17.5 10.7986 17.2569 10.3125 16.7708C9.82639 16.2847 9.58333 15.6944 9.58333 15C9.58333 14.3056 9.82639 13.7153 10.3125 13.2292C10.7986 12.7431 11.3889 12.5 12.0833 12.5C12.7778 12.5 13.3681 12.7431 13.8542 13.2292C14.3403 13.7153 14.5833 14.3056 14.5833 15C14.5833 15.6944 14.3403 16.2847 13.8542 16.7708C13.3681 17.2569 12.7778 17.5 12.0833 17.5Z",fill:"currentColor"})})]})}),z5=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"communities",children:[r.jsx("mask",{id:"mask0_1551_39",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:r.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_1551_39)",children:r.jsx("path",{id:"communities_2",d:"M7.50002 13.125C7.90494 13.125 8.24921 12.9832 8.53285 12.6995C8.81651 12.4159 8.95833 12.0716 8.95833 11.6667C8.95833 11.2618 8.81651 10.9175 8.53285 10.6339C8.24921 10.3502 7.90494 10.2084 7.50002 10.2084C7.0951 10.2084 6.75083 10.3502 6.46719 10.6339C6.18353 10.9175 6.04171 11.2618 6.04171 11.6667C6.04171 12.0716 6.18353 12.4159 6.46719 12.6995C6.75083 12.9832 7.0951 13.125 7.50002 13.125ZM12.5 13.125C12.9049 13.125 13.2492 12.9832 13.5329 12.6995C13.8165 12.4159 13.9583 12.0716 13.9583 11.6667C13.9583 11.2618 13.8165 10.9175 13.5329 10.6339C13.2492 10.3502 12.9049 10.2084 12.5 10.2084C12.0951 10.2084 11.7508 10.3502 11.4672 10.6339C11.1835 10.9175 11.0417 11.2618 11.0417 11.6667C11.0417 12.0716 11.1835 12.4159 11.4672 12.6995C11.7508 12.9832 12.0951 13.125 12.5 13.125ZM10 8.95833C10.4049 8.95833 10.7492 8.81651 11.0329 8.53285C11.3165 8.24922 11.4583 7.90494 11.4583 7.50002C11.4583 7.0951 11.3165 6.75083 11.0329 6.46719C10.7492 6.18354 10.4049 6.04171 10 6.04171C9.5951 6.04171 9.25083 6.18354 8.96719 6.46719C8.68354 6.75083 8.54171 7.0951 8.54171 7.50002C8.54171 7.90494 8.68354 8.24922 8.96719 8.53285C9.25083 8.81651 9.5951 8.95833 10 8.95833ZM10.0014 17.9167C8.90647 17.9167 7.87728 17.7089 6.91383 17.2933C5.95037 16.8778 5.1123 16.3138 4.39962 15.6015C3.68693 14.8891 3.12271 14.0514 2.70698 13.0884C2.29124 12.1253 2.08337 11.0964 2.08337 10.0014C2.08337 8.90647 2.29115 7.87728 2.70671 6.91383C3.12226 5.95037 3.68622 5.11231 4.39858 4.39963C5.11096 3.68693 5.94866 3.12272 6.91169 2.70698C7.8747 2.29124 8.90368 2.08337 9.99862 2.08337C11.0936 2.08337 12.1228 2.29115 13.0862 2.70671C14.0497 3.12226 14.8877 3.68622 15.6004 4.39858C16.3131 5.11096 16.8773 5.94866 17.2931 6.91169C17.7088 7.8747 17.9167 8.90368 17.9167 9.99863C17.9167 11.0936 17.7089 12.1228 17.2933 13.0862C16.8778 14.0497 16.3138 14.8877 15.6015 15.6004C14.8891 16.3131 14.0514 16.8773 13.0884 17.2931C12.1253 17.7088 11.0964 17.9167 10.0014 17.9167ZM10 16.6667C11.8611 16.6667 13.4375 16.0209 14.7292 14.7292C16.0209 13.4375 16.6667 11.8611 16.6667 10C16.6667 8.13891 16.0209 6.56252 14.7292 5.27085C13.4375 3.97919 11.8611 3.33335 10 3.33335C8.13891 3.33335 6.56252 3.97919 5.27085 5.27085C3.97919 6.56252 3.33335 8.13891 3.33335 10C3.33335 11.8611 3.97919 13.4375 5.27085 14.7292C6.56252 16.0209 8.13891 16.6667 10 16.6667Z",fill:"currentColor"})})]})}),F5=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"grain",children:[r.jsx("mask",{id:"mask0_1551_45",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:r.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_1551_45)",children:r.jsx("path",{id:"grain_2",d:"M4.99999 16.5064C4.57906 16.5064 4.22276 16.3605 3.93109 16.0689C3.63942 15.7772 3.49359 15.4209 3.49359 15C3.49359 14.5791 3.63942 14.2228 3.93109 13.9311C4.22276 13.6394 4.57906 13.4936 4.99999 13.4936C5.42092 13.4936 5.77722 13.6394 6.06888 13.9311C6.36055 14.2228 6.50638 14.5791 6.50638 15C6.50638 15.4209 6.36055 15.7772 6.06888 16.0689C5.77722 16.3605 5.42092 16.5064 4.99999 16.5064ZM11.6667 16.5064C11.2457 16.5064 10.8894 16.3605 10.5978 16.0689C10.3061 15.7772 10.1603 15.4209 10.1603 15C10.1603 14.5791 10.3061 14.2228 10.5978 13.9311C10.8894 13.6394 11.2457 13.4936 11.6667 13.4936C12.0876 13.4936 12.4439 13.6394 12.7355 13.9311C13.0272 14.2228 13.1731 14.5791 13.1731 15C13.1731 15.4209 13.0272 15.7772 12.7355 16.0689C12.4439 16.3605 12.0876 16.5064 11.6667 16.5064ZM8.33332 13.1731C7.91239 13.1731 7.55609 13.0272 7.26442 12.7355C6.97276 12.4439 6.82692 12.0876 6.82692 11.6667C6.82692 11.2457 6.97276 10.8894 7.26442 10.5978C7.55609 10.3061 7.91239 10.1603 8.33332 10.1603C8.75425 10.1603 9.11055 10.3061 9.40222 10.5978C9.69388 10.8894 9.83972 11.2457 9.83972 11.6667C9.83972 12.0876 9.69388 12.4439 9.40222 12.7355C9.11055 13.0272 8.75425 13.1731 8.33332 13.1731ZM15 13.1731C14.5791 13.1731 14.2228 13.0272 13.9311 12.7355C13.6394 12.4439 13.4936 12.0876 13.4936 11.6667C13.4936 11.2457 13.6394 10.8894 13.9311 10.5978C14.2228 10.3061 14.5791 10.1603 15 10.1603C15.4209 10.1603 15.7772 10.3061 16.0689 10.5978C16.3605 10.8894 16.5064 11.2457 16.5064 11.6667C16.5064 12.0876 16.3605 12.4439 16.0689 12.7355C15.7772 13.0272 15.4209 13.1731 15 13.1731ZM4.99999 9.83972C4.57906 9.83972 4.22276 9.69388 3.93109 9.40222C3.63942 9.11055 3.49359 8.75425 3.49359 8.33332C3.49359 7.91239 3.63942 7.55609 3.93109 7.26442C4.22276 6.97276 4.57906 6.82692 4.99999 6.82692C5.42092 6.82692 5.77722 6.97276 6.06888 7.26442C6.36055 7.55609 6.50638 7.91239 6.50638 8.33332C6.50638 8.75425 6.36055 9.11055 6.06888 9.40222C5.77722 9.69388 5.42092 9.83972 4.99999 9.83972ZM11.6667 9.83972C11.2457 9.83972 10.8894 9.69388 10.5978 9.40222C10.3061 9.11055 10.1603 8.75425 10.1603 8.33332C10.1603 7.91239 10.3061 7.55609 10.5978 7.26442C10.8894 6.97276 11.2457 6.82692 11.6667 6.82692C12.0876 6.82692 12.4439 6.97276 12.7355 7.26442C13.0272 7.55609 13.1731 7.91239 13.1731 8.33332C13.1731 8.75425 13.0272 9.11055 12.7355 9.40222C12.4439 9.69388 12.0876 9.83972 11.6667 9.83972ZM8.33332 6.50638C7.91239 6.50638 7.55609 6.36055 7.26442 6.06888C6.97276 5.77722 6.82692 5.42092 6.82692 4.99999C6.82692 4.57906 6.97276 4.22276 7.26442 3.93109C7.55609 3.63942 7.91239 3.49359 8.33332 3.49359C8.75425 3.49359 9.11055 3.63942 9.40222 3.93109C9.69388 4.22276 9.83972 4.57906 9.83972 4.99999C9.83972 5.42092 9.69388 5.77722 9.40222 6.06888C9.11055 6.36055 8.75425 6.50638 8.33332 6.50638ZM15 6.50638C14.5791 6.50638 14.2228 6.36055 13.9311 6.06888C13.6394 5.77722 13.4936 5.42092 13.4936 4.99999C13.4936 4.57906 13.6394 4.22276 13.9311 3.93109C14.2228 3.63942 14.5791 3.49359 15 3.49359C15.4209 3.49359 15.7772 3.63942 16.0689 3.93109C16.3605 4.22276 16.5064 4.57906 16.5064 4.99999C16.5064 5.42092 16.3605 5.77722 16.0689 6.06888C15.7772 6.36055 15.4209 6.50638 15 6.50638Z",fill:"currentColor"})})]})}),D5=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"public",children:[r.jsx("mask",{id:"mask0_1551_36",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:r.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_1551_36)",children:r.jsx("path",{id:"public_2",d:"M10.0028 17.5C8.96567 17.5 7.9906 17.3032 7.07758 16.9096C6.16457 16.516 5.37037 15.9818 4.69498 15.3071C4.0196 14.6323 3.48493 13.8389 3.09096 12.9267C2.69699 12.0145 2.5 11.0399 2.5 10.0028C2.5 8.96567 2.6968 7.9906 3.0904 7.07758C3.48401 6.16457 4.01819 5.37037 4.69294 4.69498C5.36769 4.0196 6.16114 3.48493 7.07329 3.09096C7.98546 2.69699 8.9601 2.5 9.99721 2.5C11.0343 2.5 12.0094 2.6968 12.9224 3.0904C13.8354 3.48401 14.6296 4.01819 15.305 4.69294C15.9804 5.36769 16.5151 6.16114 16.909 7.07329C17.303 7.98546 17.5 8.9601 17.5 9.99721C17.5 11.0343 17.3032 12.0094 16.9096 12.9224C16.516 13.8354 15.9818 14.6296 15.3071 15.305C14.6323 15.9804 13.8389 16.5151 12.9267 16.909C12.0145 17.303 11.0399 17.5 10.0028 17.5ZM9.16667 16.625V15C8.70833 15 8.31597 14.8368 7.98958 14.5104C7.66319 14.184 7.5 13.7917 7.5 13.3333V12.5L3.5 8.5C3.45833 8.75 3.42014 9 3.38542 9.25C3.35069 9.5 3.33333 9.75 3.33333 10C3.33333 11.6806 3.88542 13.1528 4.98958 14.4167C6.09375 15.6806 7.48611 16.4167 9.16667 16.625ZM14.9167 14.5C15.1944 14.1944 15.4444 13.8646 15.6667 13.5104C15.8889 13.1562 16.0729 12.7882 16.2187 12.4062C16.3646 12.0243 16.4757 11.6319 16.5521 11.2292C16.6285 10.8264 16.6667 10.4167 16.6667 10C16.6667 8.63083 16.2909 7.38042 15.5393 6.24877C14.7877 5.11712 13.7746 4.30129 12.5 3.80129V4.16667C12.5 4.625 12.3368 5.01736 12.0104 5.34375C11.684 5.67014 11.2917 5.83333 10.8333 5.83333H9.16667V7.5C9.16667 7.73611 9.08681 7.93403 8.92708 8.09375C8.76736 8.25347 8.56944 8.33333 8.33333 8.33333H6.66667V10H11.6667C11.9028 10 12.1007 10.0799 12.2604 10.2396C12.4201 10.3993 12.5 10.5972 12.5 10.8333V13.3333H13.3333C13.6944 13.3333 14.0208 13.441 14.3125 13.6562C14.6042 13.8715 14.8056 14.1528 14.9167 14.5Z",fill:"currentColor"})})]})});function P2(e,t,n){var i,s=1;e==null&&(e=0),t==null&&(t=0),n==null&&(n=0);function o(){var l,C=i.length,a,h=0,c=0,u=0;for(l=0;l=(a=(l+C)/2))?l=a:C=a,i=s,!(s=s[u=+c]))return i[u]=o,e;if(h=+e._x.call(null,s.data),t===h)return o.next=s,i?i[u]=o:e._root=o,e;do i=i?i[u]=new Array(2):e._root=new Array(2),(c=t>=(a=(l+C)/2))?l=a:C=a;while((u=+c)==(p=+(h>=a)));return i[p]=s,i[u]=o,e}function G5(e){Array.isArray(e)||(e=Array.from(e));const t=e.length,n=new Float64Array(t);let i=1/0,s=-1/0;for(let o=0,l;os&&(s=l));if(i>s)return this;this.cover(i).cover(s);for(let o=0;oe||e>=n;)switch(l=+(el||(o=h.x1)=u))&&(h=C[C.length-1],C[C.length-1]=C[C.length-1-c],C[C.length-1-c]=h)}else{var p=Math.abs(e-+this._x.call(null,a.data));p=(h=(l+C)/2))?l=h:C=h,t=n,!(n=n[u=+c]))return this;if(!n.length)break;t[u+1&1]&&(i=t,p=u)}for(;n.data!==e;)if(s=n,!(n=n.next))return this;return(o=n.next)&&delete n.next,s?(o?s.next=o:delete s.next,this):t?(o?t[u]=o:delete t[u],(n=t[0]||t[1])&&n===(t[1]||t[0])&&!n.length&&(i?i[p]=n:this._root=n),this):(this._root=o,this)}function J5(e){for(var t=0,n=e.length;t=(u=(C+h)/2))?C=u:h=u,(w=n>=(p=(a+c)/2))?a=p:c=p,s=o,!(o=o[d=w<<1|_]))return s[d]=l,e;if(x=+e._x.call(null,o.data),f=+e._y.call(null,o.data),t===x&&n===f)return l.next=o,s?s[d]=l:e._root=l,e;do s=s?s[d]=new Array(4):e._root=new Array(4),(_=t>=(u=(C+h)/2))?C=u:h=u,(w=n>=(p=(a+c)/2))?a=p:c=p;while((d=w<<1|_)===(k=(f>=p)<<1|x>=u));return s[k]=o,s[d]=l,e}function l0(e){var t,n,i=e.length,s,o,l=new Array(i),C=new Array(i),a=1/0,h=1/0,c=-1/0,u=-1/0;for(n=0;nc&&(c=s),ou&&(u=o));if(a>c||h>u)return this;for(this.cover(a,h).cover(c,u),n=0;ne||e>=s||i>t||t>=o;)switch(h=(tc||(C=f.y0)>u||(a=f.x1)=d)<<1|e>=w)&&(f=p[p.length-1],p[p.length-1]=p[p.length-1-_],p[p.length-1-_]=f)}else{var k=e-+this._x.call(null,x.data),g=t-+this._y.call(null,x.data),v=k*k+g*g;if(v=(p=(l+a)/2))?l=p:a=p,(_=u>=(x=(C+h)/2))?C=x:h=x,t=n,!(n=n[w=_<<1|f]))return this;if(!n.length)break;(t[w+1&3]||t[w+2&3]||t[w+3&3])&&(i=t,d=w)}for(;n.data!==e;)if(s=n,!(n=n.next))return this;return(o=n.next)&&delete n.next,s?(o?s.next=o:delete s.next,this):t?(o?t[w]=o:delete t[w],(n=t[0]||t[1]||t[2]||t[3])&&n===(t[3]||t[2]||t[1]||t[0])&&!n.length&&(i?i[d]=n:this._root=n),this):(this._root=o,this)}function d0(e){for(var t=0,n=e.length;t=(f=(a+u)/2))?a=f:u=f,(m=n>=(_=(h+p)/2))?h=_:p=_,(j=i>=(w=(c+x)/2))?c=w:x=w,o=l,!(l=l[y=j<<2|m<<1|v]))return o[y]=C,e;if(d=+e._x.call(null,l.data),k=+e._y.call(null,l.data),g=+e._z.call(null,l.data),t===d&&n===k&&i===g)return C.next=l,o?o[y]=C:e._root=C,e;do o=o?o[y]=new Array(8):e._root=new Array(8),(v=t>=(f=(a+u)/2))?a=f:u=f,(m=n>=(_=(h+p)/2))?h=_:p=_,(j=i>=(w=(c+x)/2))?c=w:x=w;while((y=j<<2|m<<1|v)===(L=(g>=w)<<2|(k>=_)<<1|d>=f));return o[L]=l,o[y]=C,e}function j0(e){Array.isArray(e)||(e=Array.from(e));const t=e.length,n=new Float64Array(t),i=new Float64Array(t),s=new Float64Array(t);let o=1/0,l=1/0,C=1/0,a=-1/0,h=-1/0,c=-1/0;for(let u=0,p,x,f,_;ua&&(a=x),fh&&(h=f),_c&&(c=_));if(o>a||l>h||C>c)return this;this.cover(o,l,C).cover(a,h,c);for(let u=0;ue||e>=l||s>t||t>=C||o>n||n>=a;)switch(p=(nf||(h=g.y0)>_||(c=g.z0)>w||(u=g.x1)=y)<<2|(t>=j)<<1|e>=m)&&(g=d[d.length-1],d[d.length-1]=d[d.length-1-v],d[d.length-1-v]=g)}else{var L=e-+this._x.call(null,k.data),M=t-+this._y.call(null,k.data),S=n-+this._z.call(null,k.data),P=L*L+M*M+S*S;if(P=(_=(l+h)/2))?l=_:h=_,(g=x>=(w=(C+c)/2))?C=w:c=w,(v=f>=(d=(a+u)/2))?a=d:u=d,t=n,!(n=n[m=v<<2|g<<1|k]))return this;if(!n.length)break;(t[m+1&7]||t[m+2&7]||t[m+3&7]||t[m+4&7]||t[m+5&7]||t[m+6&7]||t[m+7&7])&&(i=t,j=m)}for(;n.data!==e;)if(s=n,!(n=n.next))return this;return(o=n.next)&&delete n.next,s?(o?s.next=o:delete s.next,this):t?(o?t[m]=o:delete t[m],(n=t[0]||t[1]||t[2]||t[3]||t[4]||t[5]||t[6]||t[7])&&n===(t[7]||t[6]||t[5]||t[4]||t[3]||t[2]||t[1]||t[0])&&!n.length&&(i?i[j]=n:this._root=n),this):(this._root=o,this)}function Z0(e){for(var t=0,n=e.length;t1&&(_=x.y+x.vy),n>2&&(w=x.z+x.vz),p.visit(v);function v(m,j,y,L,M,S,P){var V=[j,y,L,M,S,P],U=V[0],B=V[1],b=V[2],E=V[n],I=V[n+1],z=V[n+2],T=m.data,W=m.r,O=d+W;if(T){if(T.index>x.index){var $=f-T.x-T.vx,J=n>1?_-T.y-T.vy:0,q=n>2?w-T.z-T.vz:0,A=$*$+J*J+q*q;A1&&J===0&&(J=t1(s),A+=J*J),n>2&&q===0&&(q=t1(s),A+=q*q),A=(O-(A=Math.sqrt(A)))/A*o,x.vx+=($*=A)*(O=(W*=W)/(k+W)),n>1&&(x.vy+=(J*=A)*O),n>2&&(x.vz+=(q*=A)*O),T.vx-=$*(O=1-O),n>1&&(T.vy-=J*O),n>2&&(T.vz-=q*O))}return}return U>f+O||E1&&(B>_+O||I<_-O)||n>2&&(b>w+O||zc.r&&(c.r=c[u].r)}function h(){if(t){var c,u=t.length,p;for(i=new Array(u),c=0;ctypeof p=="function")||Math.random,n=u.find(p=>[1,2,3].includes(p))||2,h()},C.iterations=function(c){return arguments.length?(l=+c,C):l},C.strength=function(c){return arguments.length?(o=+c,C):o},C.radius=function(c){return arguments.length?(e=typeof c=="function"?c:Y(+c),h(),C):e},C}function $0(e){return e.index}function U2(e,t){var n=e.get(t);if(!n)throw new Error("node not found: "+t);return n}function A0(e){var t=$0,n=p,i,s=Y(30),o,l,C,a,h,c,u=1;e==null&&(e=[]);function p(d){return 1/Math.min(a[d.source.index],a[d.target.index])}function x(d){for(var k=0,g=e.length;k1&&(M=y.y+y.vy-j.y-j.vy||t1(c)),C>2&&(S=y.z+y.vz-j.z-j.vz||t1(c)),P=Math.sqrt(L*L+M*M+S*S),P=(P-o[v])/P*d*i[v],L*=P,M*=P,S*=P,y.vx-=L*(V=h[v]),C>1&&(y.vy-=M*V),C>2&&(y.vz-=S*V),j.vx+=L*(V=1-V),C>1&&(j.vy+=M*V),C>2&&(j.vz+=S*V)}function f(){if(l){var d,k=l.length,g=e.length,v=new Map(l.map((j,y)=>[t(j,y,l),j])),m;for(d=0,a=new Array(k);dtypeof g=="function")||Math.random,C=k.find(g=>[1,2,3].includes(g))||2,f()},x.links=function(d){return arguments.length?(e=d,f(),x):e},x.id=function(d){return arguments.length?(t=d,x):t},x.iterations=function(d){return arguments.length?(u=+d,x):u},x.strength=function(d){return arguments.length?(n=typeof d=="function"?d:Y(+d),_(),x):n},x.distance=function(d){return arguments.length?(s=typeof d=="function"?d:Y(+d),w(),x):s},x}var z0={value:()=>{}};function l3(){for(var e=0,t=arguments.length,n={},i;e=0&&(i=n.slice(s+1),n=n.slice(0,s)),n&&!t.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:i}})}$1.prototype=l3.prototype={constructor:$1,on:function(e,t){var n=this._,i=F0(e+"",n),s,o=-1,l=i.length;if(arguments.length<2){for(;++o0)for(var n=new Array(s),i=0,s,o;i=0&&e._call.call(void 0,t),e=e._next;--y1}function $2(){h1=(q1=B1.now())+W1,y1=E1=0;try{G0()}finally{y1=0,X0(),h1=0}}function W0(){var e=B1.now(),t=e-q1;t>C3&&(W1-=t,q1=e)}function X0(){for(var e,t=D1,n,i=1/0;t;)t._call?(i>t._time&&(i=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:D1=n);S1=e,l2(i)}function l2(e){if(!y1){E1&&(E1=clearTimeout(E1));var t=e-h1;t>24?(e<1/0&&(E1=setTimeout($2,e-B1.now()-W1)),M1&&(M1=clearInterval(M1))):(M1||(q1=B1.now(),M1=setInterval(W0,C3)),y1=1,a3($2))}}const Y0=1664525,K0=1013904223,A2=4294967296;function Q0(){let e=1;return()=>(e=(Y0*e+K0)%A2)/A2}var z2=3;function n2(e){return e.x}function F2(e){return e.y}function J0(e){return e.z}var e6=10,t6=Math.PI*(3-Math.sqrt(5)),n6=Math.PI*20/(9+Math.sqrt(221));function r6(e,t){t=t||2;var n=Math.min(z2,Math.max(1,Math.round(t))),i,s=1,o=.001,l=1-Math.pow(o,1/300),C=0,a=.6,h=new Map,c=h3(x),u=l3("tick","end"),p=Q0();e==null&&(e=[]);function x(){f(),u.call("tick",i),s1&&(v.fy==null?v.y+=v.vy*=a:(v.y=v.fy,v.vy=0)),n>2&&(v.fz==null?v.z+=v.vz*=a:(v.z=v.fz,v.vz=0));return i}function _(){for(var d=0,k=e.length,g;d1&&isNaN(g.y)||n>2&&isNaN(g.z)){var v=e6*(n>2?Math.cbrt(.5+d):n>1?Math.sqrt(.5+d):d),m=d*t6,j=d*n6;n===1?g.x=v:n===2?(g.x=v*Math.cos(m),g.y=v*Math.sin(m)):(g.x=v*Math.sin(m)*Math.cos(j),g.y=v*Math.cos(m),g.z=v*Math.sin(m)*Math.sin(j))}(isNaN(g.vx)||n>1&&isNaN(g.vy)||n>2&&isNaN(g.vz))&&(g.vx=0,n>1&&(g.vy=0),n>2&&(g.vz=0))}}function w(d){return d.initialize&&d.initialize(e,p,n),d}return _(),i={tick:f,restart:function(){return c.restart(x),i},stop:function(){return c.stop(),i},numDimensions:function(d){return arguments.length?(n=Math.min(z2,Math.max(1,Math.round(d))),h.forEach(w),i):n},nodes:function(d){return arguments.length?(e=d,_(),h.forEach(w),i):e},alpha:function(d){return arguments.length?(s=+d,i):s},alphaMin:function(d){return arguments.length?(o=+d,i):o},alphaDecay:function(d){return arguments.length?(l=+d,i):+l},alphaTarget:function(d){return arguments.length?(C=+d,i):C},velocityDecay:function(d){return arguments.length?(a=1-d,i):1-a},randomSource:function(d){return arguments.length?(p=d,h.forEach(w),i):p},force:function(d,k){return arguments.length>1?(k==null?h.delete(d):h.set(d,w(k)),i):h.get(d)},find:function(){var d=Array.prototype.slice.call(arguments),k=d.shift()||0,g=(n>1?d.shift():null)||0,v=(n>2?d.shift():null)||0,m=d.shift()||1/0,j=0,y=e.length,L,M,S,P,V,U;for(m*=m,j=0;j1?(u.on(d,k),i):u.on(d)}}}function i6(){var e,t,n,i,s,o=Y(-30),l,C=1,a=1/0,h=.81;function c(f){var _,w=e.length,d=(t===1?a2(e,n2):t===2?h2(e,n2,F2):t===3?d2(e,n2,F2,J0):null).visitAfter(p);for(s=f,_=0;_1&&(f.y=v/k),t>2&&(f.z=m/k)}else{w=f,w.x=w.data.x,t>1&&(w.y=w.data.y),t>2&&(w.z=w.data.z);do _+=l[w.data.index];while(w=w.next)}f.value=_}function x(f,_,w,d,k){if(!f.value)return!0;var g=[w,d,k][t-1],v=f.x-n.x,m=t>1?f.y-n.y:0,j=t>2?f.z-n.z:0,y=g-_,L=v*v+m*m+j*j;if(y*y/h1&&m===0&&(m=t1(i),L+=m*m),t>2&&j===0&&(j=t1(i),L+=j*j),L1&&(n.vy+=m*f.value*s/L),t>2&&(n.vz+=j*f.value*s/L)),!0;if(f.length||L>=a)return;(f.data!==n||f.next)&&(v===0&&(v=t1(i),L+=v*v),t>1&&m===0&&(m=t1(i),L+=m*m),t>2&&j===0&&(j=t1(i),L+=j*j),L1&&(n.vy+=m*y),t>2&&(n.vz+=j*y));while(f=f.next)}return c.initialize=function(f,..._){e=f,i=_.find(w=>typeof w=="function")||Math.random,t=_.find(w=>[1,2,3].includes(w))||2,u()},c.strength=function(f){return arguments.length?(o=typeof f=="function"?f:Y(+f),u(),c):o},c.distanceMin=function(f){return arguments.length?(C=f*f,c):Math.sqrt(C)},c.distanceMax=function(f){return arguments.length?(a=f*f,c):Math.sqrt(a)},c.theta=function(f){return arguments.length?(h=f*f,c):Math.sqrt(h)},c}function D2(e,t,n,i){var s,o,l=Y(.1),C,a;typeof e!="function"&&(e=Y(+e)),t==null&&(t=0),n==null&&(n=0),i==null&&(i=0);function h(u){for(var p=0,x=s.length;p1&&(f.vy+=w*g),o>2&&(f.vz+=d*g)}}function c(){if(s){var u,p=s.length;for(C=new Array(p),a=new Array(p),u=0;u[1,2,3].includes(x))||2,c()},h.strength=function(u){return arguments.length?(l=typeof u=="function"?u:Y(+u),c(),h):l},h.radius=function(u){return arguments.length?(e=typeof u=="function"?u:Y(+u),c(),h):e},h.x=function(u){return arguments.length?(t=+u,h):t},h.y=function(u){return arguments.length?(n=+u,h):n},h.z=function(u){return arguments.length?(i=+u,h):i},h}function s6(e){var t=Y(.1),n,i,s;typeof e!="function"&&(e=Y(e==null?0:+e));function o(C){for(var a=0,h=n.length,c;a{},setForces:()=>{},addRadialForce:()=>{},addDefaultForce:()=>{},addSplitForce:()=>{},simulationRestart:()=>{},getLinks:()=>[]},l6={data:null,simulation:null,selectionGraphData:{nodes:[],links:[]},disableCameraRotation:!1,scrollEventsDisabled:!1,graphRadius:1500,selectionGraphRadius:200,graphStyle:"sphere",hoveredNode:null,selectedNode:null,activeEdge:null,cameraFocusTrigger:!1,nearbyNodeIds:[],showSelectionGraph:!1,simulationHelpers:o6,isHovering:!1},u1=W2()((e,t)=>({...l6,setData:n=>{e({data:n})},setSelectionData:n=>e({selectionGraphData:n}),setScrollEventsDisabled:n=>e({scrollEventsDisabled:n}),setDisableCameraRotation:n=>e({disableCameraRotation:n}),setIsHovering:n=>e({isHovering:n}),setGraphRadius:n=>e({graphRadius:n}),setSelectionGraphRadius:n=>e({selectionGraphRadius:n}),setGraphStyle:n=>e({graphStyle:"sphere"}),setHoveredNode:n=>{e({hoveredNode:n})},setActiveEdge:n=>{e({activeEdge:n})},setSelectedNode:n=>{n||e({hoveredNode:null,selectedNode:null,disableCameraRotation:!1,showSelectionGraph:!1});const{selectedNode:i,simulation:s}=t();if((i==null?void 0:i.ref_id)!==(n==null?void 0:n.ref_id)){const o=s.nodes().find(l=>l.ref_id===(n==null?void 0:n.ref_id))||null;e({hoveredNode:null,selectedNode:o,disableCameraRotation:!0,showSelectionGraph:!!n})}},setCameraFocusTrigger:n=>e({cameraFocusTrigger:n}),setNearbyNodeIds:n=>{const i=t().nearbyNodeIds;(n.length!==i.length||n[0]!==i[0])&&e({nearbyNodeIds:n})},setShowSelectionGraph:n=>e({showSelectionGraph:n}),simulationHelpers:{addNodesAndLinks:(n,i,s)=>{const{simulation:o,simulationHelpers:l}=t();o.stop();const C=structuredClone(n),a=structuredClone(i);o.stop();const h=s?[]:o.nodes(),c=s?[]:o.force("link").links();h.push(...C),c.push(...a);try{o.nodes(h),o.force("link").links([]).links(c),l.simulationRestart()}catch(u){console.error(u)}},addRadialForce:()=>{const{simulation:n}=t();n.nodes(n.nodes().map(i=>({...i,...r2}))).force("y",null).force("radial",D2(200,0,0,0).strength(.1)).force("center",P2().strength(1)).force("collide",t2().radius(()=>250).strength(1).iterations(1))},addDefaultForce:()=>{const{simulation:n}=t();n.nodes(n.nodes().map(i=>({...i,...r2}))).force("y",null).force("charge",i6().strength(-20)).force("center",P2().strength(1)).force("collide",t2().radius(()=>250).strength(1).iterations(1))},addSplitForce:()=>{const{simulation:n}=t(),{nodeTypes:i}=G1.getState();n.stop().nodes(n.nodes().map(s=>({...s,...r2}))).force("radial",D2(200,0,0,0).strength(.1)).force("collide",t2().radius(()=>250).strength(1).iterations(1)).force("y",s6().y(s=>{const o=i.indexOf(s.node_type),l=Math.floor(o/2)*400;return o%2===0?l:-l}).strength(10))},getLinks:()=>{const{simulation:n}=t();return n?n.force("link").links():[]},setForces:()=>{const{graphStyle:n,simulationHelpers:i}=t();n==="split"&&i.addSplitForce(),n==="sphere"&&i.addRadialForce(),n==="force"&&i.addDefaultForce(),i.simulationRestart()},simulationRestart:()=>{const{simulation:n}=t();n.alpha(1).restart()}},simulationCreate:(n,i)=>{const s=structuredClone(n),o=structuredClone(i),l=r6([]).numDimensions(3).stop().nodes(s).force("link",A0().links(o).id(C=>C.ref_id));e({simulation:l})},removeSimulation:()=>e({simulation:null})})),u3=()=>u1(e=>e.selectedNode),S7=()=>u1(e=>e.hoveredNode),C6=()=>u1(e=>e.setSelectedNode),I7=()=>{const e=u1(s=>s.selectedNode);if(!e)return[];const{dataInitial:t}=G1.getState();return((t==null?void 0:t.links)||[]).reduce((s,o)=>(o.source===(e==null?void 0:e.ref_id)&&s.push(o.target),o.target===(e==null?void 0:e.ref_id)&&s.push(o.source),s),[])},a6=()=>(u1($5(e=>[e.graphStyle,e.setGraphStyle])),null);D(p1).attrs({direction:"row",align:"center",justify:"space-between"})` +import{G as g3,R as O1,H as r1,J as Z1,K as q2,L as N1,M as R1,O as d1,x as Z,P as A1,r as H,S as T1,j as r,U as c1,V as U1,X as m3,Y as j1,Z as f1,$ as _2,a0 as k2,a1 as w3,a2 as j2,a3 as G2,c as W2,u as G1,s as D,a as i1,F as p1,B as X2,C as C2,a4 as v3,a5 as _3,k as Y2,b as k3,a6 as j3,I as y3}from"./index-6541aa03.js";const L3=e=>{const[t,n,i]=e.split(":"),s=parseInt(t,10),o=parseInt(n,10),l=parseInt(i,10);return s*3600+o*60+l};function y2(...e){return e.reduce((t,n)=>n==null?t:function(...s){t.apply(this,s),n.apply(this,s)},()=>{})}function H3(e,t=166){let n;function i(...s){const o=()=>{e.apply(this,s)};clearTimeout(n),n=setTimeout(o,t)}return i.clear=()=>{clearTimeout(n)},i}function s1(e){return e&&e.ownerDocument||document}function P1(e){return s1(e).defaultView||window}function M3(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}const V3=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},L2=V3,H2={disabled:!1};var Z3=function(t){return t.scrollTop},b1="unmounted",C1="exited",a1="entering",k1="entered",i2="exiting",l1=function(e){g3(t,e);function t(i,s){var o;o=e.call(this,i,s)||this;var l=s,C=l&&!l.isMounting?i.enter:i.appear,a;return o.appearStatus=null,i.in?C?(a=C1,o.appearStatus=a1):a=k1:i.unmountOnExit||i.mountOnEnter?a=b1:a=C1,o.state={status:a},o.nextCallback=null,o}t.getDerivedStateFromProps=function(s,o){var l=s.in;return l&&o.status===b1?{status:C1}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(s){var o=null;if(s!==this.props){var l=this.state.status;this.props.in?l!==a1&&l!==k1&&(o=a1):(l===a1||l===k1)&&(o=i2)}this.updateStatus(!1,o)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var s=this.props.timeout,o,l,C;return o=l=C=s,s!=null&&typeof s!="number"&&(o=s.exit,l=s.enter,C=s.appear!==void 0?s.appear:l),{exit:o,enter:l,appear:C}},n.updateStatus=function(s,o){if(s===void 0&&(s=!1),o!==null)if(this.cancelNextCallback(),o===a1){if(this.props.unmountOnExit||this.props.mountOnEnter){var l=this.props.nodeRef?this.props.nodeRef.current:O1.findDOMNode(this);l&&Z3(l)}this.performEnter(s)}else this.performExit();else this.props.unmountOnExit&&this.state.status===C1&&this.setState({status:b1})},n.performEnter=function(s){var o=this,l=this.props.enter,C=this.context?this.context.isMounting:s,a=this.props.nodeRef?[C]:[O1.findDOMNode(this),C],h=a[0],c=a[1],u=this.getTimeouts(),p=C?u.appear:u.enter;if(!s&&!l||H2.disabled){this.safeSetState({status:k1},function(){o.props.onEntered(h)});return}this.props.onEnter(h,c),this.safeSetState({status:a1},function(){o.props.onEntering(h,c),o.onTransitionEnd(p,function(){o.safeSetState({status:k1},function(){o.props.onEntered(h,c)})})})},n.performExit=function(){var s=this,o=this.props.exit,l=this.getTimeouts(),C=this.props.nodeRef?void 0:O1.findDOMNode(this);if(!o||H2.disabled){this.safeSetState({status:C1},function(){s.props.onExited(C)});return}this.props.onExit(C),this.safeSetState({status:i2},function(){s.props.onExiting(C),s.onTransitionEnd(l.exit,function(){s.safeSetState({status:C1},function(){s.props.onExited(C)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(s,o){o=this.setNextCallback(o),this.setState(s,o)},n.setNextCallback=function(s){var o=this,l=!0;return this.nextCallback=function(C){l&&(l=!1,o.nextCallback=null,s(C))},this.nextCallback.cancel=function(){l=!1},this.nextCallback},n.onTransitionEnd=function(s,o){this.setNextCallback(o);var l=this.props.nodeRef?this.props.nodeRef.current:O1.findDOMNode(this),C=s==null&&!this.props.addEndListener;if(!l||C){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var a=this.props.nodeRef?[this.nextCallback]:[l,this.nextCallback],h=a[0],c=a[1];this.props.addEndListener(h,c)}s!=null&&setTimeout(this.nextCallback,s)},n.render=function(){var s=this.state.status;if(s===b1)return null;var o=this.props,l=o.children;o.in,o.mountOnEnter,o.unmountOnExit,o.appear,o.enter,o.exit,o.timeout,o.addEndListener,o.onEnter,o.onEntering,o.onEntered,o.onExit,o.onExiting,o.onExited,o.nodeRef;var C=r1(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Z1.createElement(q2.Provider,{value:null},typeof l=="function"?l(s,C):Z1.cloneElement(Z1.Children.only(l),C))},t}(Z1.Component);l1.contextType=q2;l1.propTypes={};function _1(){}l1.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:_1,onEntering:_1,onEntered:_1,onExit:_1,onExiting:_1,onExited:_1};l1.UNMOUNTED=b1;l1.EXITED=C1;l1.ENTERING=a1;l1.ENTERED=k1;l1.EXITING=i2;const K2=l1,Q2=e=>e.scrollTop;function z1(e,t){var n,i;const{timeout:s,easing:o,style:l={}}=e;return{duration:(n=l.transitionDuration)!=null?n:typeof s=="number"?s:s[t.mode]||0,easing:(i=l.transitionTimingFunction)!=null?i:typeof o=="object"?o[t.mode]:o,delay:l.transitionDelay}}function b3(e){return N1("MuiPaper",e)}R1("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const E3=["className","component","elevation","square","variant"],S3=e=>{const{square:t,elevation:n,variant:i,classes:s}=e,o={root:["root",i,!t&&"rounded",i==="elevation"&&`elevation${n}`]};return U1(o,b3,s)},I3=d1("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(({theme:e,ownerState:t})=>{var n;return Z({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&Z({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${A1("#fff",L2(t.elevation))}, ${A1("#fff",L2(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),P3=H.forwardRef(function(t,n){const i=T1({props:t,name:"MuiPaper"}),{className:s,component:o="div",elevation:l=1,square:C=!1,variant:a="elevation"}=i,h=r1(i,E3),c=Z({},i,{component:o,elevation:l,square:C,variant:a}),u=S3(c);return r.jsx(I3,Z({as:o,ownerState:c,className:c1(u.root,s),ref:n},h))}),B3=P3;function N3(e){return N1("MuiIconButton",e)}const R3=R1("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),T3=R3,U3=["edge","children","className","color","disabled","disableFocusRipple","size"],O3=e=>{const{classes:t,disabled:n,color:i,edge:s,size:o}=e,l={root:["root",n&&"disabled",i!=="default"&&`color${j1(i)}`,s&&`edge${j1(s)}`,`size${j1(o)}`]};return U1(l,N3,t)},$3=d1(m3,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${j1(n.color)}`],n.edge&&t[`edge${j1(n.edge)}`],t[`size${j1(n.size)}`]]}})(({theme:e,ownerState:t})=>Z({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:A1(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var n;const i=(n=(e.vars||e).palette)==null?void 0:n[t.color];return Z({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&Z({color:i==null?void 0:i.main},!t.disableRipple&&{"&:hover":Z({},i&&{backgroundColor:e.vars?`rgba(${i.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:A1(i.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${T3.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),A3=H.forwardRef(function(t,n){const i=T1({props:t,name:"MuiIconButton"}),{edge:s=!1,children:o,className:l,color:C="default",disabled:a=!1,disableFocusRipple:h=!1,size:c="medium"}=i,u=r1(i,U3),p=Z({},i,{edge:s,color:C,disabled:a,disableFocusRipple:h,size:c}),x=O3(p);return r.jsx($3,Z({className:c1(x.root,l),centerRipple:!0,focusRipple:!h,disabled:a,ref:n,ownerState:p},u,{children:o}))}),J2=A3;function e3(e){return typeof e=="string"}function z3(e,t,n){return e===void 0||e3(e)?t:Z({},t,{ownerState:Z({},t.ownerState,n)})}function t3(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(i=>i.match(/^on[A-Z]/)&&typeof e[i]=="function"&&!t.includes(i)).forEach(i=>{n[i]=e[i]}),n}function F3(e,t,n){return typeof e=="function"?e(t,n):e}function n3(e){var t,n,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function D3(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:i,externalForwardedProps:s,className:o}=e;if(!t){const x=M2(n==null?void 0:n.className,o,s==null?void 0:s.className,i==null?void 0:i.className),f=Z({},n==null?void 0:n.style,s==null?void 0:s.style,i==null?void 0:i.style),_=Z({},n,s,i);return x.length>0&&(_.className=x),Object.keys(f).length>0&&(_.style=f),{props:_,internalRef:void 0}}const l=t3(Z({},s,i)),C=V2(i),a=V2(s),h=t(l),c=M2(h==null?void 0:h.className,n==null?void 0:n.className,o,s==null?void 0:s.className,i==null?void 0:i.className),u=Z({},h==null?void 0:h.style,n==null?void 0:n.style,s==null?void 0:s.style,i==null?void 0:i.style),p=Z({},h,n,a,C);return c.length>0&&(p.className=c),Object.keys(u).length>0&&(p.style=u),{props:p,internalRef:h.ref}}const q3=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function F1(e){var t;const{elementType:n,externalSlotProps:i,ownerState:s,skipResolvingSlotProps:o=!1}=e,l=r1(e,q3),C=o?{}:F3(i,s),{props:a,internalRef:h}=D3(Z({},l,{externalSlotProps:C})),c=f1(h,C==null?void 0:C.ref,(t=e.additionalProps)==null?void 0:t.ref);return z3(n,Z({},a,{ref:c}),s)}const G3=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function W3(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function X3(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=i=>e.ownerDocument.querySelector(`input[type="radio"]${i}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function Y3(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||X3(e))}function K3(e){const t=[],n=[];return Array.from(e.querySelectorAll(G3)).forEach((i,s)=>{const o=W3(i);o===-1||!Y3(i)||(o===0?t.push(i):n.push({documentOrder:s,tabIndex:o,node:i}))}),n.sort((i,s)=>i.tabIndex===s.tabIndex?i.documentOrder-s.documentOrder:i.tabIndex-s.tabIndex).map(i=>i.node).concat(t)}function Q3(){return!0}function J3(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:i=!1,disableRestoreFocus:s=!1,getTabbable:o=K3,isEnabled:l=Q3,open:C}=e,a=H.useRef(!1),h=H.useRef(null),c=H.useRef(null),u=H.useRef(null),p=H.useRef(null),x=H.useRef(!1),f=H.useRef(null),_=f1(t.ref,f),w=H.useRef(null);H.useEffect(()=>{!C||!f.current||(x.current=!n)},[n,C]),H.useEffect(()=>{if(!C||!f.current)return;const g=s1(f.current);return f.current.contains(g.activeElement)||(f.current.hasAttribute("tabIndex")||f.current.setAttribute("tabIndex","-1"),x.current&&f.current.focus()),()=>{s||(u.current&&u.current.focus&&(a.current=!0,u.current.focus()),u.current=null)}},[C]),H.useEffect(()=>{if(!C||!f.current)return;const g=s1(f.current),v=y=>{w.current=y,!(i||!l()||y.key!=="Tab")&&g.activeElement===f.current&&y.shiftKey&&(a.current=!0,c.current&&c.current.focus())},m=()=>{const y=f.current;if(y===null)return;if(!g.hasFocus()||!l()||a.current){a.current=!1;return}if(y.contains(g.activeElement)||i&&g.activeElement!==h.current&&g.activeElement!==c.current)return;if(g.activeElement!==p.current)p.current=null;else if(p.current!==null)return;if(!x.current)return;let L=[];if((g.activeElement===h.current||g.activeElement===c.current)&&(L=o(f.current)),L.length>0){var M,S;const P=!!((M=w.current)!=null&&M.shiftKey&&((S=w.current)==null?void 0:S.key)==="Tab"),V=L[0],U=L[L.length-1];typeof V!="string"&&typeof U!="string"&&(P?U.focus():V.focus())}else y.focus()};g.addEventListener("focusin",m),g.addEventListener("keydown",v,!0);const j=setInterval(()=>{g.activeElement&&g.activeElement.tagName==="BODY"&&m()},50);return()=>{clearInterval(j),g.removeEventListener("focusin",m),g.removeEventListener("keydown",v,!0)}},[n,i,s,l,C,o]);const d=g=>{u.current===null&&(u.current=g.relatedTarget),x.current=!0,p.current=g.target;const v=t.props.onFocus;v&&v(g)},k=g=>{u.current===null&&(u.current=g.relatedTarget),x.current=!0};return r.jsxs(H.Fragment,{children:[r.jsx("div",{tabIndex:C?0:-1,onFocus:k,ref:h,"data-testid":"sentinelStart"}),H.cloneElement(t,{ref:_,onFocus:d}),r.jsx("div",{tabIndex:C?0:-1,onFocus:k,ref:c,"data-testid":"sentinelEnd"})]})}function e5(e){return typeof e=="function"?e():e}const t5=H.forwardRef(function(t,n){const{children:i,container:s,disablePortal:o=!1}=t,[l,C]=H.useState(null),a=f1(H.isValidElement(i)?i.ref:null,n);if(_2(()=>{o||C(e5(s)||document.body)},[s,o]),_2(()=>{if(l&&!o)return k2(n,l),()=>{k2(n,null)}},[n,l,o]),o){if(H.isValidElement(i)){const h={ref:a};return H.cloneElement(i,h)}return r.jsx(H.Fragment,{children:i})}return r.jsx(H.Fragment,{children:l&&w3.createPortal(i,l)})});function n5(e){const t=s1(e);return t.body===e?P1(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function I1(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Z2(e){return parseInt(P1(e).getComputedStyle(e).paddingRight,10)||0}function r5(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,i=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||i}function b2(e,t,n,i,s){const o=[t,n,...i];[].forEach.call(e.children,l=>{const C=o.indexOf(l)===-1,a=!r5(l);C&&a&&I1(l,s)})}function K1(e,t){let n=-1;return e.some((i,s)=>t(i)?(n=s,!0):!1),n}function i5(e,t){const n=[],i=e.container;if(!t.disableScrollLock){if(n5(i)){const l=M3(s1(i));n.push({value:i.style.paddingRight,property:"padding-right",el:i}),i.style.paddingRight=`${Z2(i)+l}px`;const C=s1(i).querySelectorAll(".mui-fixed");[].forEach.call(C,a=>{n.push({value:a.style.paddingRight,property:"padding-right",el:a}),a.style.paddingRight=`${Z2(a)+l}px`})}let o;if(i.parentNode instanceof DocumentFragment)o=s1(i).body;else{const l=i.parentElement,C=P1(i);o=(l==null?void 0:l.nodeName)==="HTML"&&C.getComputedStyle(l).overflowY==="scroll"?l:i}n.push({value:o.style.overflow,property:"overflow",el:o},{value:o.style.overflowX,property:"overflow-x",el:o},{value:o.style.overflowY,property:"overflow-y",el:o}),o.style.overflow="hidden"}return()=>{n.forEach(({value:o,el:l,property:C})=>{o?l.style.setProperty(C,o):l.style.removeProperty(C)})}}function s5(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class o5{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,n){let i=this.modals.indexOf(t);if(i!==-1)return i;i=this.modals.length,this.modals.push(t),t.modalRef&&I1(t.modalRef,!1);const s=s5(n);b2(n,t.mount,t.modalRef,s,!0);const o=K1(this.containers,l=>l.container===n);return o!==-1?(this.containers[o].modals.push(t),i):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:s}),i)}mount(t,n){const i=K1(this.containers,o=>o.modals.indexOf(t)!==-1),s=this.containers[i];s.restore||(s.restore=i5(s,n))}remove(t,n=!0){const i=this.modals.indexOf(t);if(i===-1)return i;const s=K1(this.containers,l=>l.modals.indexOf(t)!==-1),o=this.containers[s];if(o.modals.splice(o.modals.indexOf(t),1),this.modals.splice(i,1),o.modals.length===0)o.restore&&o.restore(),t.modalRef&&I1(t.modalRef,n),b2(o.container,t.mount,t.modalRef,o.hiddenSiblings,!1),this.containers.splice(s,1);else{const l=o.modals[o.modals.length-1];l.modalRef&&I1(l.modalRef,!1)}return i}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function l5(e){return typeof e=="function"?e():e}function C5(e){return e?e.props.hasOwnProperty("in"):!1}const a5=new o5;function c5(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:i=!1,manager:s=a5,closeAfterTransition:o=!1,onTransitionEnter:l,onTransitionExited:C,children:a,onClose:h,open:c,rootRef:u}=e,p=H.useRef({}),x=H.useRef(null),f=H.useRef(null),_=f1(f,u),[w,d]=H.useState(!c),k=C5(a);let g=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(g=!1);const v=()=>s1(x.current),m=()=>(p.current.modalRef=f.current,p.current.mount=x.current,p.current),j=()=>{s.mount(m(),{disableScrollLock:i}),f.current&&(f.current.scrollTop=0)},y=j2(()=>{const E=l5(t)||v().body;s.add(m(),E),f.current&&j()}),L=H.useCallback(()=>s.isTopModal(m()),[s]),M=j2(E=>{x.current=E,E&&(c&&L()?j():f.current&&I1(f.current,g))}),S=H.useCallback(()=>{s.remove(m(),g)},[g,s]);H.useEffect(()=>()=>{S()},[S]),H.useEffect(()=>{c?y():(!k||!o)&&S()},[c,S,k,o,y]);const P=E=>I=>{var z;(z=E.onKeyDown)==null||z.call(E,I),!(I.key!=="Escape"||I.which===229||!L())&&(n||(I.stopPropagation(),h&&h(I,"escapeKeyDown")))},V=E=>I=>{var z;(z=E.onClick)==null||z.call(E,I),I.target===I.currentTarget&&h&&h(I,"backdropClick")};return{getRootProps:(E={})=>{const I=t3(e);delete I.onTransitionEnter,delete I.onTransitionExited;const z=Z({},I,E);return Z({role:"presentation"},z,{onKeyDown:P(z),ref:_})},getBackdropProps:(E={})=>{const I=E;return Z({"aria-hidden":!0},I,{onClick:V(I),open:c})},getTransitionProps:()=>{const E=()=>{d(!1),l&&l()},I=()=>{d(!0),C&&C(),o&&S()};return{onEnter:y2(E,a==null?void 0:a.props.onEnter),onExited:y2(I,a==null?void 0:a.props.onExited)}},rootRef:_,portalRef:M,isTopModal:L,exited:w,hasTransition:k}}const h5=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],u5={entering:{opacity:1},entered:{opacity:1}},d5=H.forwardRef(function(t,n){const i=G2(),s={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{addEndListener:o,appear:l=!0,children:C,easing:a,in:h,onEnter:c,onEntered:u,onEntering:p,onExit:x,onExited:f,onExiting:_,style:w,timeout:d=s,TransitionComponent:k=K2}=t,g=r1(t,h5),v=H.useRef(null),m=f1(v,C.ref,n),j=B=>b=>{if(B){const E=v.current;b===void 0?B(E):B(E,b)}},y=j(p),L=j((B,b)=>{Q2(B);const E=z1({style:w,timeout:d,easing:a},{mode:"enter"});B.style.webkitTransition=i.transitions.create("opacity",E),B.style.transition=i.transitions.create("opacity",E),c&&c(B,b)}),M=j(u),S=j(_),P=j(B=>{const b=z1({style:w,timeout:d,easing:a},{mode:"exit"});B.style.webkitTransition=i.transitions.create("opacity",b),B.style.transition=i.transitions.create("opacity",b),x&&x(B)}),V=j(f),U=B=>{o&&o(v.current,B)};return r.jsx(k,Z({appear:l,in:h,nodeRef:v,onEnter:L,onEntered:M,onEntering:y,onExit:P,onExited:V,onExiting:S,addEndListener:U,timeout:d},g,{children:(B,b)=>H.cloneElement(C,Z({style:Z({opacity:0,visibility:B==="exited"&&!h?"hidden":void 0},u5[B],w,C.props.style),ref:m},b))}))}),f5=d5;function p5(e){return N1("MuiBackdrop",e)}R1("MuiBackdrop",["root","invisible"]);const x5=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],g5=e=>{const{classes:t,invisible:n}=e;return U1({root:["root",n&&"invisible"]},p5,t)},m5=d1("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>Z({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),w5=H.forwardRef(function(t,n){var i,s,o;const l=T1({props:t,name:"MuiBackdrop"}),{children:C,className:a,component:h="div",components:c={},componentsProps:u={},invisible:p=!1,open:x,slotProps:f={},slots:_={},TransitionComponent:w=f5,transitionDuration:d}=l,k=r1(l,x5),g=Z({},l,{component:h,invisible:p}),v=g5(g),m=(i=f.root)!=null?i:u.root;return r.jsx(w,Z({in:x,timeout:d},k,{children:r.jsx(m5,Z({"aria-hidden":!0},m,{as:(s=(o=_.root)!=null?o:c.Root)!=null?s:h,className:c1(v.root,a,m==null?void 0:m.className),ownerState:Z({},g,m==null?void 0:m.ownerState),classes:v,ref:n,children:C}))}))}),v5=w5;function _5(e){return N1("MuiModal",e)}R1("MuiModal",["root","hidden","backdrop"]);const k5=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],j5=e=>{const{open:t,exited:n,classes:i}=e;return U1({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},_5,i)},y5=d1("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>Z({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),L5=d1(v5,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),H5=H.forwardRef(function(t,n){var i,s,o,l,C,a;const h=T1({name:"MuiModal",props:t}),{BackdropComponent:c=L5,BackdropProps:u,className:p,closeAfterTransition:x=!1,children:f,container:_,component:w,components:d={},componentsProps:k={},disableAutoFocus:g=!1,disableEnforceFocus:v=!1,disableEscapeKeyDown:m=!1,disablePortal:j=!1,disableRestoreFocus:y=!1,disableScrollLock:L=!1,hideBackdrop:M=!1,keepMounted:S=!1,onBackdropClick:P,open:V,slotProps:U,slots:B}=h,b=r1(h,k5),E=Z({},h,{closeAfterTransition:x,disableAutoFocus:g,disableEnforceFocus:v,disableEscapeKeyDown:m,disablePortal:j,disableRestoreFocus:y,disableScrollLock:L,hideBackdrop:M,keepMounted:S}),{getRootProps:I,getBackdropProps:z,getTransitionProps:T,portalRef:W,isTopModal:O,exited:$,hasTransition:J}=c5(Z({},E,{rootRef:n})),q=Z({},E,{exited:$}),A=j5(q),x1={};if(f.props.tabIndex===void 0&&(x1.tabIndex="-1"),J){const{onEnter:N,onExited:F}=T();x1.onEnter=N,x1.onExited=F}const g1=(i=(s=B==null?void 0:B.root)!=null?s:d.Root)!=null?i:y5,L1=(o=(l=B==null?void 0:B.backdrop)!=null?l:d.Backdrop)!=null?o:c,H1=(C=U==null?void 0:U.root)!=null?C:k.root,m1=(a=U==null?void 0:U.backdrop)!=null?a:k.backdrop,X1=F1({elementType:g1,externalSlotProps:H1,externalForwardedProps:b,getSlotProps:I,additionalProps:{ref:n,as:w},ownerState:q,className:c1(p,H1==null?void 0:H1.className,A==null?void 0:A.root,!q.open&&q.exited&&(A==null?void 0:A.hidden))}),Y1=F1({elementType:L1,externalSlotProps:m1,additionalProps:u,getSlotProps:N=>z(Z({},N,{onClick:F=>{P&&P(F),N!=null&&N.onClick&&N.onClick(F)}})),className:c1(m1==null?void 0:m1.className,u==null?void 0:u.className,A==null?void 0:A.backdrop),ownerState:q});return!S&&!V&&(!J||$)?null:r.jsx(t5,{ref:W,container:_,disablePortal:j,children:r.jsxs(g1,Z({},X1,{children:[!M&&c?r.jsx(L1,Z({},Y1)):null,r.jsx(J3,{disableEnforceFocus:v,disableAutoFocus:g,disableRestoreFocus:y,isEnabled:O,open:V,children:H.cloneElement(f,x1)})]}))})}),M5=H5,V5=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function s2(e){return`scale(${e}, ${e**2})`}const Z5={entering:{opacity:1,transform:s2(1)},entered:{opacity:1,transform:"none"}},Q1=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),r3=H.forwardRef(function(t,n){const{addEndListener:i,appear:s=!0,children:o,easing:l,in:C,onEnter:a,onEntered:h,onEntering:c,onExit:u,onExited:p,onExiting:x,style:f,timeout:_="auto",TransitionComponent:w=K2}=t,d=r1(t,V5),k=H.useRef(),g=H.useRef(),v=G2(),m=H.useRef(null),j=f1(m,o.ref,n),y=b=>E=>{if(b){const I=m.current;E===void 0?b(I):b(I,E)}},L=y(c),M=y((b,E)=>{Q2(b);const{duration:I,delay:z,easing:T}=z1({style:f,timeout:_,easing:l},{mode:"enter"});let W;_==="auto"?(W=v.transitions.getAutoHeightDuration(b.clientHeight),g.current=W):W=I,b.style.transition=[v.transitions.create("opacity",{duration:W,delay:z}),v.transitions.create("transform",{duration:Q1?W:W*.666,delay:z,easing:T})].join(","),a&&a(b,E)}),S=y(h),P=y(x),V=y(b=>{const{duration:E,delay:I,easing:z}=z1({style:f,timeout:_,easing:l},{mode:"exit"});let T;_==="auto"?(T=v.transitions.getAutoHeightDuration(b.clientHeight),g.current=T):T=E,b.style.transition=[v.transitions.create("opacity",{duration:T,delay:I}),v.transitions.create("transform",{duration:Q1?T:T*.666,delay:Q1?I:I||T*.333,easing:z})].join(","),b.style.opacity=0,b.style.transform=s2(.75),u&&u(b)}),U=y(p),B=b=>{_==="auto"&&(k.current=setTimeout(b,g.current||0)),i&&i(m.current,b)};return H.useEffect(()=>()=>{clearTimeout(k.current)},[]),r.jsx(w,Z({appear:s,in:C,nodeRef:m,onEnter:M,onEntered:S,onEntering:L,onExit:V,onExited:U,onExiting:P,addEndListener:B,timeout:_==="auto"?null:_},d,{children:(b,E)=>H.cloneElement(o,Z({style:Z({opacity:0,transform:s2(.75),visibility:b==="exited"&&!C?"hidden":void 0},Z5[b],f,o.props.style),ref:j},E))}))});r3.muiSupportAuto=!0;const b5=r3;function E5(e){return N1("MuiPopover",e)}R1("MuiPopover",["root","paper"]);const S5=["onEntering"],I5=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],P5=["slotProps"];function E2(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function S2(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function I2(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function J1(e){return typeof e=="function"?e():e}const B5=e=>{const{classes:t}=e;return U1({root:["root"],paper:["paper"]},E5,t)},N5=d1(M5,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),R5=d1(B3,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),T5=H.forwardRef(function(t,n){var i,s,o;const l=T1({props:t,name:"MuiPopover"}),{action:C,anchorEl:a,anchorOrigin:h={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:u="anchorEl",children:p,className:x,container:f,elevation:_=8,marginThreshold:w=16,open:d,PaperProps:k={},slots:g,slotProps:v,transformOrigin:m={vertical:"top",horizontal:"left"},TransitionComponent:j=b5,transitionDuration:y="auto",TransitionProps:{onEntering:L}={},disableScrollLock:M=!1}=l,S=r1(l.TransitionProps,S5),P=r1(l,I5),V=(i=v==null?void 0:v.paper)!=null?i:k,U=H.useRef(),B=f1(U,V.ref),b=Z({},l,{anchorOrigin:h,anchorReference:u,elevation:_,marginThreshold:w,externalPaperSlotProps:V,transformOrigin:m,TransitionComponent:j,transitionDuration:y,TransitionProps:S}),E=B5(b),I=H.useCallback(()=>{if(u==="anchorPosition")return c;const N=J1(a),e1=(N&&N.nodeType===1?N:s1(U.current).body).getBoundingClientRect();return{top:e1.top+E2(e1,h.vertical),left:e1.left+S2(e1,h.horizontal)}},[a,h.horizontal,h.vertical,c,u]),z=H.useCallback(N=>({vertical:E2(N,m.vertical),horizontal:S2(N,m.horizontal)}),[m.horizontal,m.vertical]),T=H.useCallback(N=>{const F={width:N.offsetWidth,height:N.offsetHeight},e1=z(F);if(u==="none")return{top:null,left:null,transformOrigin:I2(e1)};const p2=I();let w1=p2.top-e1.vertical,v1=p2.left-e1.horizontal;const x2=w1+F.height,g2=v1+F.width,m2=P1(J1(a)),w2=m2.innerHeight-w,v2=m2.innerWidth-w;if(w!==null&&w1w2){const n1=x2-w2;w1-=n1,e1.vertical+=n1}if(w!==null&&v1v2){const n1=g2-v2;v1-=n1,e1.horizontal+=n1}return{top:`${Math.round(w1)}px`,left:`${Math.round(v1)}px`,transformOrigin:I2(e1)}},[a,u,I,z,w]),[W,O]=H.useState(d),$=H.useCallback(()=>{const N=U.current;if(!N)return;const F=T(N);F.top!==null&&(N.style.top=F.top),F.left!==null&&(N.style.left=F.left),N.style.transformOrigin=F.transformOrigin,O(!0)},[T]);H.useEffect(()=>(M&&window.addEventListener("scroll",$),()=>window.removeEventListener("scroll",$)),[a,M,$]);const J=(N,F)=>{L&&L(N,F),$()},q=()=>{O(!1)};H.useEffect(()=>{d&&$()}),H.useImperativeHandle(C,()=>d?{updatePosition:()=>{$()}}:null,[d,$]),H.useEffect(()=>{if(!d)return;const N=H3(()=>{$()}),F=P1(a);return F.addEventListener("resize",N),()=>{N.clear(),F.removeEventListener("resize",N)}},[a,d,$]);let A=y;y==="auto"&&!j.muiSupportAuto&&(A=void 0);const x1=f||(a?s1(J1(a)).body:void 0),g1=(s=g==null?void 0:g.root)!=null?s:N5,L1=(o=g==null?void 0:g.paper)!=null?o:R5,H1=F1({elementType:L1,externalSlotProps:Z({},V,{style:W?V.style:Z({},V.style,{opacity:0})}),additionalProps:{elevation:_,ref:B},ownerState:b,className:c1(E.paper,V==null?void 0:V.className)}),m1=F1({elementType:g1,externalSlotProps:(v==null?void 0:v.root)||{},externalForwardedProps:P,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:x1,open:d},ownerState:b,className:c1(E.root,x)}),{slotProps:X1}=m1,Y1=r1(m1,P5);return r.jsx(g1,Z({},Y1,!e3(g1)&&{slotProps:X1,disableScrollLock:M},{children:r.jsx(j,Z({appear:!0,in:d,onEntering:J,onExited:q,timeout:A},S,{children:r.jsx(L1,Z({},H1,{children:p}))}))}))}),E7=T5;function U5(e,t){if(Object.is(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(const[i,s]of e)if(!Object.is(s,t.get(i)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const i of e)if(!t.has(i))return!1;return!0}const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(let i=0;i{const i=e(n);return U5(t.current,i)?t.current:t.current=i}}const A5=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"bubble_chart",children:[r.jsx("mask",{id:"mask0_1551_42",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:r.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_1551_42)",children:r.jsx("path",{id:"bubble_chart_2",d:"M5.83333 15C4.91667 15 4.13194 14.6736 3.47917 14.0208C2.82639 13.3681 2.5 12.5833 2.5 11.6667C2.5 10.75 2.82639 9.96528 3.47917 9.3125C4.13194 8.65972 4.91667 8.33333 5.83333 8.33333C6.75 8.33333 7.53472 8.65972 8.1875 9.3125C8.84028 9.96528 9.16667 10.75 9.16667 11.6667C9.16667 12.5833 8.84028 13.3681 8.1875 14.0208C7.53472 14.6736 6.75 15 5.83333 15ZM13.75 11.6667C12.4722 11.6667 11.3889 11.2222 10.5 10.3333C9.61111 9.44444 9.16667 8.36111 9.16667 7.08333C9.16667 5.80556 9.61111 4.72222 10.5 3.83333C11.3889 2.94444 12.4722 2.5 13.75 2.5C15.0278 2.5 16.1111 2.94444 17 3.83333C17.8889 4.72222 18.3333 5.80556 18.3333 7.08333C18.3333 8.36111 17.8889 9.44444 17 10.3333C16.1111 11.2222 15.0278 11.6667 13.75 11.6667ZM12.0833 17.5C11.3889 17.5 10.7986 17.2569 10.3125 16.7708C9.82639 16.2847 9.58333 15.6944 9.58333 15C9.58333 14.3056 9.82639 13.7153 10.3125 13.2292C10.7986 12.7431 11.3889 12.5 12.0833 12.5C12.7778 12.5 13.3681 12.7431 13.8542 13.2292C14.3403 13.7153 14.5833 14.3056 14.5833 15C14.5833 15.6944 14.3403 16.2847 13.8542 16.7708C13.3681 17.2569 12.7778 17.5 12.0833 17.5Z",fill:"currentColor"})})]})}),z5=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"communities",children:[r.jsx("mask",{id:"mask0_1551_39",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:r.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_1551_39)",children:r.jsx("path",{id:"communities_2",d:"M7.50002 13.125C7.90494 13.125 8.24921 12.9832 8.53285 12.6995C8.81651 12.4159 8.95833 12.0716 8.95833 11.6667C8.95833 11.2618 8.81651 10.9175 8.53285 10.6339C8.24921 10.3502 7.90494 10.2084 7.50002 10.2084C7.0951 10.2084 6.75083 10.3502 6.46719 10.6339C6.18353 10.9175 6.04171 11.2618 6.04171 11.6667C6.04171 12.0716 6.18353 12.4159 6.46719 12.6995C6.75083 12.9832 7.0951 13.125 7.50002 13.125ZM12.5 13.125C12.9049 13.125 13.2492 12.9832 13.5329 12.6995C13.8165 12.4159 13.9583 12.0716 13.9583 11.6667C13.9583 11.2618 13.8165 10.9175 13.5329 10.6339C13.2492 10.3502 12.9049 10.2084 12.5 10.2084C12.0951 10.2084 11.7508 10.3502 11.4672 10.6339C11.1835 10.9175 11.0417 11.2618 11.0417 11.6667C11.0417 12.0716 11.1835 12.4159 11.4672 12.6995C11.7508 12.9832 12.0951 13.125 12.5 13.125ZM10 8.95833C10.4049 8.95833 10.7492 8.81651 11.0329 8.53285C11.3165 8.24922 11.4583 7.90494 11.4583 7.50002C11.4583 7.0951 11.3165 6.75083 11.0329 6.46719C10.7492 6.18354 10.4049 6.04171 10 6.04171C9.5951 6.04171 9.25083 6.18354 8.96719 6.46719C8.68354 6.75083 8.54171 7.0951 8.54171 7.50002C8.54171 7.90494 8.68354 8.24922 8.96719 8.53285C9.25083 8.81651 9.5951 8.95833 10 8.95833ZM10.0014 17.9167C8.90647 17.9167 7.87728 17.7089 6.91383 17.2933C5.95037 16.8778 5.1123 16.3138 4.39962 15.6015C3.68693 14.8891 3.12271 14.0514 2.70698 13.0884C2.29124 12.1253 2.08337 11.0964 2.08337 10.0014C2.08337 8.90647 2.29115 7.87728 2.70671 6.91383C3.12226 5.95037 3.68622 5.11231 4.39858 4.39963C5.11096 3.68693 5.94866 3.12272 6.91169 2.70698C7.8747 2.29124 8.90368 2.08337 9.99862 2.08337C11.0936 2.08337 12.1228 2.29115 13.0862 2.70671C14.0497 3.12226 14.8877 3.68622 15.6004 4.39858C16.3131 5.11096 16.8773 5.94866 17.2931 6.91169C17.7088 7.8747 17.9167 8.90368 17.9167 9.99863C17.9167 11.0936 17.7089 12.1228 17.2933 13.0862C16.8778 14.0497 16.3138 14.8877 15.6015 15.6004C14.8891 16.3131 14.0514 16.8773 13.0884 17.2931C12.1253 17.7088 11.0964 17.9167 10.0014 17.9167ZM10 16.6667C11.8611 16.6667 13.4375 16.0209 14.7292 14.7292C16.0209 13.4375 16.6667 11.8611 16.6667 10C16.6667 8.13891 16.0209 6.56252 14.7292 5.27085C13.4375 3.97919 11.8611 3.33335 10 3.33335C8.13891 3.33335 6.56252 3.97919 5.27085 5.27085C3.97919 6.56252 3.33335 8.13891 3.33335 10C3.33335 11.8611 3.97919 13.4375 5.27085 14.7292C6.56252 16.0209 8.13891 16.6667 10 16.6667Z",fill:"currentColor"})})]})}),F5=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"grain",children:[r.jsx("mask",{id:"mask0_1551_45",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:r.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_1551_45)",children:r.jsx("path",{id:"grain_2",d:"M4.99999 16.5064C4.57906 16.5064 4.22276 16.3605 3.93109 16.0689C3.63942 15.7772 3.49359 15.4209 3.49359 15C3.49359 14.5791 3.63942 14.2228 3.93109 13.9311C4.22276 13.6394 4.57906 13.4936 4.99999 13.4936C5.42092 13.4936 5.77722 13.6394 6.06888 13.9311C6.36055 14.2228 6.50638 14.5791 6.50638 15C6.50638 15.4209 6.36055 15.7772 6.06888 16.0689C5.77722 16.3605 5.42092 16.5064 4.99999 16.5064ZM11.6667 16.5064C11.2457 16.5064 10.8894 16.3605 10.5978 16.0689C10.3061 15.7772 10.1603 15.4209 10.1603 15C10.1603 14.5791 10.3061 14.2228 10.5978 13.9311C10.8894 13.6394 11.2457 13.4936 11.6667 13.4936C12.0876 13.4936 12.4439 13.6394 12.7355 13.9311C13.0272 14.2228 13.1731 14.5791 13.1731 15C13.1731 15.4209 13.0272 15.7772 12.7355 16.0689C12.4439 16.3605 12.0876 16.5064 11.6667 16.5064ZM8.33332 13.1731C7.91239 13.1731 7.55609 13.0272 7.26442 12.7355C6.97276 12.4439 6.82692 12.0876 6.82692 11.6667C6.82692 11.2457 6.97276 10.8894 7.26442 10.5978C7.55609 10.3061 7.91239 10.1603 8.33332 10.1603C8.75425 10.1603 9.11055 10.3061 9.40222 10.5978C9.69388 10.8894 9.83972 11.2457 9.83972 11.6667C9.83972 12.0876 9.69388 12.4439 9.40222 12.7355C9.11055 13.0272 8.75425 13.1731 8.33332 13.1731ZM15 13.1731C14.5791 13.1731 14.2228 13.0272 13.9311 12.7355C13.6394 12.4439 13.4936 12.0876 13.4936 11.6667C13.4936 11.2457 13.6394 10.8894 13.9311 10.5978C14.2228 10.3061 14.5791 10.1603 15 10.1603C15.4209 10.1603 15.7772 10.3061 16.0689 10.5978C16.3605 10.8894 16.5064 11.2457 16.5064 11.6667C16.5064 12.0876 16.3605 12.4439 16.0689 12.7355C15.7772 13.0272 15.4209 13.1731 15 13.1731ZM4.99999 9.83972C4.57906 9.83972 4.22276 9.69388 3.93109 9.40222C3.63942 9.11055 3.49359 8.75425 3.49359 8.33332C3.49359 7.91239 3.63942 7.55609 3.93109 7.26442C4.22276 6.97276 4.57906 6.82692 4.99999 6.82692C5.42092 6.82692 5.77722 6.97276 6.06888 7.26442C6.36055 7.55609 6.50638 7.91239 6.50638 8.33332C6.50638 8.75425 6.36055 9.11055 6.06888 9.40222C5.77722 9.69388 5.42092 9.83972 4.99999 9.83972ZM11.6667 9.83972C11.2457 9.83972 10.8894 9.69388 10.5978 9.40222C10.3061 9.11055 10.1603 8.75425 10.1603 8.33332C10.1603 7.91239 10.3061 7.55609 10.5978 7.26442C10.8894 6.97276 11.2457 6.82692 11.6667 6.82692C12.0876 6.82692 12.4439 6.97276 12.7355 7.26442C13.0272 7.55609 13.1731 7.91239 13.1731 8.33332C13.1731 8.75425 13.0272 9.11055 12.7355 9.40222C12.4439 9.69388 12.0876 9.83972 11.6667 9.83972ZM8.33332 6.50638C7.91239 6.50638 7.55609 6.36055 7.26442 6.06888C6.97276 5.77722 6.82692 5.42092 6.82692 4.99999C6.82692 4.57906 6.97276 4.22276 7.26442 3.93109C7.55609 3.63942 7.91239 3.49359 8.33332 3.49359C8.75425 3.49359 9.11055 3.63942 9.40222 3.93109C9.69388 4.22276 9.83972 4.57906 9.83972 4.99999C9.83972 5.42092 9.69388 5.77722 9.40222 6.06888C9.11055 6.36055 8.75425 6.50638 8.33332 6.50638ZM15 6.50638C14.5791 6.50638 14.2228 6.36055 13.9311 6.06888C13.6394 5.77722 13.4936 5.42092 13.4936 4.99999C13.4936 4.57906 13.6394 4.22276 13.9311 3.93109C14.2228 3.63942 14.5791 3.49359 15 3.49359C15.4209 3.49359 15.7772 3.63942 16.0689 3.93109C16.3605 4.22276 16.5064 4.57906 16.5064 4.99999C16.5064 5.42092 16.3605 5.77722 16.0689 6.06888C15.7772 6.36055 15.4209 6.50638 15 6.50638Z",fill:"currentColor"})})]})}),D5=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"public",children:[r.jsx("mask",{id:"mask0_1551_36",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:r.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_1551_36)",children:r.jsx("path",{id:"public_2",d:"M10.0028 17.5C8.96567 17.5 7.9906 17.3032 7.07758 16.9096C6.16457 16.516 5.37037 15.9818 4.69498 15.3071C4.0196 14.6323 3.48493 13.8389 3.09096 12.9267C2.69699 12.0145 2.5 11.0399 2.5 10.0028C2.5 8.96567 2.6968 7.9906 3.0904 7.07758C3.48401 6.16457 4.01819 5.37037 4.69294 4.69498C5.36769 4.0196 6.16114 3.48493 7.07329 3.09096C7.98546 2.69699 8.9601 2.5 9.99721 2.5C11.0343 2.5 12.0094 2.6968 12.9224 3.0904C13.8354 3.48401 14.6296 4.01819 15.305 4.69294C15.9804 5.36769 16.5151 6.16114 16.909 7.07329C17.303 7.98546 17.5 8.9601 17.5 9.99721C17.5 11.0343 17.3032 12.0094 16.9096 12.9224C16.516 13.8354 15.9818 14.6296 15.3071 15.305C14.6323 15.9804 13.8389 16.5151 12.9267 16.909C12.0145 17.303 11.0399 17.5 10.0028 17.5ZM9.16667 16.625V15C8.70833 15 8.31597 14.8368 7.98958 14.5104C7.66319 14.184 7.5 13.7917 7.5 13.3333V12.5L3.5 8.5C3.45833 8.75 3.42014 9 3.38542 9.25C3.35069 9.5 3.33333 9.75 3.33333 10C3.33333 11.6806 3.88542 13.1528 4.98958 14.4167C6.09375 15.6806 7.48611 16.4167 9.16667 16.625ZM14.9167 14.5C15.1944 14.1944 15.4444 13.8646 15.6667 13.5104C15.8889 13.1562 16.0729 12.7882 16.2187 12.4062C16.3646 12.0243 16.4757 11.6319 16.5521 11.2292C16.6285 10.8264 16.6667 10.4167 16.6667 10C16.6667 8.63083 16.2909 7.38042 15.5393 6.24877C14.7877 5.11712 13.7746 4.30129 12.5 3.80129V4.16667C12.5 4.625 12.3368 5.01736 12.0104 5.34375C11.684 5.67014 11.2917 5.83333 10.8333 5.83333H9.16667V7.5C9.16667 7.73611 9.08681 7.93403 8.92708 8.09375C8.76736 8.25347 8.56944 8.33333 8.33333 8.33333H6.66667V10H11.6667C11.9028 10 12.1007 10.0799 12.2604 10.2396C12.4201 10.3993 12.5 10.5972 12.5 10.8333V13.3333H13.3333C13.6944 13.3333 14.0208 13.441 14.3125 13.6562C14.6042 13.8715 14.8056 14.1528 14.9167 14.5Z",fill:"currentColor"})})]})});function P2(e,t,n){var i,s=1;e==null&&(e=0),t==null&&(t=0),n==null&&(n=0);function o(){var l,C=i.length,a,h=0,c=0,u=0;for(l=0;l=(a=(l+C)/2))?l=a:C=a,i=s,!(s=s[u=+c]))return i[u]=o,e;if(h=+e._x.call(null,s.data),t===h)return o.next=s,i?i[u]=o:e._root=o,e;do i=i?i[u]=new Array(2):e._root=new Array(2),(c=t>=(a=(l+C)/2))?l=a:C=a;while((u=+c)==(p=+(h>=a)));return i[p]=s,i[u]=o,e}function G5(e){Array.isArray(e)||(e=Array.from(e));const t=e.length,n=new Float64Array(t);let i=1/0,s=-1/0;for(let o=0,l;os&&(s=l));if(i>s)return this;this.cover(i).cover(s);for(let o=0;oe||e>=n;)switch(l=+(el||(o=h.x1)=u))&&(h=C[C.length-1],C[C.length-1]=C[C.length-1-c],C[C.length-1-c]=h)}else{var p=Math.abs(e-+this._x.call(null,a.data));p=(h=(l+C)/2))?l=h:C=h,t=n,!(n=n[u=+c]))return this;if(!n.length)break;t[u+1&1]&&(i=t,p=u)}for(;n.data!==e;)if(s=n,!(n=n.next))return this;return(o=n.next)&&delete n.next,s?(o?s.next=o:delete s.next,this):t?(o?t[u]=o:delete t[u],(n=t[0]||t[1])&&n===(t[1]||t[0])&&!n.length&&(i?i[p]=n:this._root=n),this):(this._root=o,this)}function J5(e){for(var t=0,n=e.length;t=(u=(C+h)/2))?C=u:h=u,(w=n>=(p=(a+c)/2))?a=p:c=p,s=o,!(o=o[d=w<<1|_]))return s[d]=l,e;if(x=+e._x.call(null,o.data),f=+e._y.call(null,o.data),t===x&&n===f)return l.next=o,s?s[d]=l:e._root=l,e;do s=s?s[d]=new Array(4):e._root=new Array(4),(_=t>=(u=(C+h)/2))?C=u:h=u,(w=n>=(p=(a+c)/2))?a=p:c=p;while((d=w<<1|_)===(k=(f>=p)<<1|x>=u));return s[k]=o,s[d]=l,e}function l0(e){var t,n,i=e.length,s,o,l=new Array(i),C=new Array(i),a=1/0,h=1/0,c=-1/0,u=-1/0;for(n=0;nc&&(c=s),ou&&(u=o));if(a>c||h>u)return this;for(this.cover(a,h).cover(c,u),n=0;ne||e>=s||i>t||t>=o;)switch(h=(tc||(C=f.y0)>u||(a=f.x1)=d)<<1|e>=w)&&(f=p[p.length-1],p[p.length-1]=p[p.length-1-_],p[p.length-1-_]=f)}else{var k=e-+this._x.call(null,x.data),g=t-+this._y.call(null,x.data),v=k*k+g*g;if(v=(p=(l+a)/2))?l=p:a=p,(_=u>=(x=(C+h)/2))?C=x:h=x,t=n,!(n=n[w=_<<1|f]))return this;if(!n.length)break;(t[w+1&3]||t[w+2&3]||t[w+3&3])&&(i=t,d=w)}for(;n.data!==e;)if(s=n,!(n=n.next))return this;return(o=n.next)&&delete n.next,s?(o?s.next=o:delete s.next,this):t?(o?t[w]=o:delete t[w],(n=t[0]||t[1]||t[2]||t[3])&&n===(t[3]||t[2]||t[1]||t[0])&&!n.length&&(i?i[d]=n:this._root=n),this):(this._root=o,this)}function d0(e){for(var t=0,n=e.length;t=(f=(a+u)/2))?a=f:u=f,(m=n>=(_=(h+p)/2))?h=_:p=_,(j=i>=(w=(c+x)/2))?c=w:x=w,o=l,!(l=l[y=j<<2|m<<1|v]))return o[y]=C,e;if(d=+e._x.call(null,l.data),k=+e._y.call(null,l.data),g=+e._z.call(null,l.data),t===d&&n===k&&i===g)return C.next=l,o?o[y]=C:e._root=C,e;do o=o?o[y]=new Array(8):e._root=new Array(8),(v=t>=(f=(a+u)/2))?a=f:u=f,(m=n>=(_=(h+p)/2))?h=_:p=_,(j=i>=(w=(c+x)/2))?c=w:x=w;while((y=j<<2|m<<1|v)===(L=(g>=w)<<2|(k>=_)<<1|d>=f));return o[L]=l,o[y]=C,e}function j0(e){Array.isArray(e)||(e=Array.from(e));const t=e.length,n=new Float64Array(t),i=new Float64Array(t),s=new Float64Array(t);let o=1/0,l=1/0,C=1/0,a=-1/0,h=-1/0,c=-1/0;for(let u=0,p,x,f,_;ua&&(a=x),fh&&(h=f),_c&&(c=_));if(o>a||l>h||C>c)return this;this.cover(o,l,C).cover(a,h,c);for(let u=0;ue||e>=l||s>t||t>=C||o>n||n>=a;)switch(p=(nf||(h=g.y0)>_||(c=g.z0)>w||(u=g.x1)=y)<<2|(t>=j)<<1|e>=m)&&(g=d[d.length-1],d[d.length-1]=d[d.length-1-v],d[d.length-1-v]=g)}else{var L=e-+this._x.call(null,k.data),M=t-+this._y.call(null,k.data),S=n-+this._z.call(null,k.data),P=L*L+M*M+S*S;if(P=(_=(l+h)/2))?l=_:h=_,(g=x>=(w=(C+c)/2))?C=w:c=w,(v=f>=(d=(a+u)/2))?a=d:u=d,t=n,!(n=n[m=v<<2|g<<1|k]))return this;if(!n.length)break;(t[m+1&7]||t[m+2&7]||t[m+3&7]||t[m+4&7]||t[m+5&7]||t[m+6&7]||t[m+7&7])&&(i=t,j=m)}for(;n.data!==e;)if(s=n,!(n=n.next))return this;return(o=n.next)&&delete n.next,s?(o?s.next=o:delete s.next,this):t?(o?t[m]=o:delete t[m],(n=t[0]||t[1]||t[2]||t[3]||t[4]||t[5]||t[6]||t[7])&&n===(t[7]||t[6]||t[5]||t[4]||t[3]||t[2]||t[1]||t[0])&&!n.length&&(i?i[j]=n:this._root=n),this):(this._root=o,this)}function Z0(e){for(var t=0,n=e.length;t1&&(_=x.y+x.vy),n>2&&(w=x.z+x.vz),p.visit(v);function v(m,j,y,L,M,S,P){var V=[j,y,L,M,S,P],U=V[0],B=V[1],b=V[2],E=V[n],I=V[n+1],z=V[n+2],T=m.data,W=m.r,O=d+W;if(T){if(T.index>x.index){var $=f-T.x-T.vx,J=n>1?_-T.y-T.vy:0,q=n>2?w-T.z-T.vz:0,A=$*$+J*J+q*q;A1&&J===0&&(J=t1(s),A+=J*J),n>2&&q===0&&(q=t1(s),A+=q*q),A=(O-(A=Math.sqrt(A)))/A*o,x.vx+=($*=A)*(O=(W*=W)/(k+W)),n>1&&(x.vy+=(J*=A)*O),n>2&&(x.vz+=(q*=A)*O),T.vx-=$*(O=1-O),n>1&&(T.vy-=J*O),n>2&&(T.vz-=q*O))}return}return U>f+O||E1&&(B>_+O||I<_-O)||n>2&&(b>w+O||zc.r&&(c.r=c[u].r)}function h(){if(t){var c,u=t.length,p;for(i=new Array(u),c=0;ctypeof p=="function")||Math.random,n=u.find(p=>[1,2,3].includes(p))||2,h()},C.iterations=function(c){return arguments.length?(l=+c,C):l},C.strength=function(c){return arguments.length?(o=+c,C):o},C.radius=function(c){return arguments.length?(e=typeof c=="function"?c:Y(+c),h(),C):e},C}function $0(e){return e.index}function U2(e,t){var n=e.get(t);if(!n)throw new Error("node not found: "+t);return n}function A0(e){var t=$0,n=p,i,s=Y(30),o,l,C,a,h,c,u=1;e==null&&(e=[]);function p(d){return 1/Math.min(a[d.source.index],a[d.target.index])}function x(d){for(var k=0,g=e.length;k1&&(M=y.y+y.vy-j.y-j.vy||t1(c)),C>2&&(S=y.z+y.vz-j.z-j.vz||t1(c)),P=Math.sqrt(L*L+M*M+S*S),P=(P-o[v])/P*d*i[v],L*=P,M*=P,S*=P,y.vx-=L*(V=h[v]),C>1&&(y.vy-=M*V),C>2&&(y.vz-=S*V),j.vx+=L*(V=1-V),C>1&&(j.vy+=M*V),C>2&&(j.vz+=S*V)}function f(){if(l){var d,k=l.length,g=e.length,v=new Map(l.map((j,y)=>[t(j,y,l),j])),m;for(d=0,a=new Array(k);dtypeof g=="function")||Math.random,C=k.find(g=>[1,2,3].includes(g))||2,f()},x.links=function(d){return arguments.length?(e=d,f(),x):e},x.id=function(d){return arguments.length?(t=d,x):t},x.iterations=function(d){return arguments.length?(u=+d,x):u},x.strength=function(d){return arguments.length?(n=typeof d=="function"?d:Y(+d),_(),x):n},x.distance=function(d){return arguments.length?(s=typeof d=="function"?d:Y(+d),w(),x):s},x}var z0={value:()=>{}};function l3(){for(var e=0,t=arguments.length,n={},i;e=0&&(i=n.slice(s+1),n=n.slice(0,s)),n&&!t.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:i}})}$1.prototype=l3.prototype={constructor:$1,on:function(e,t){var n=this._,i=F0(e+"",n),s,o=-1,l=i.length;if(arguments.length<2){for(;++o0)for(var n=new Array(s),i=0,s,o;i=0&&e._call.call(void 0,t),e=e._next;--y1}function $2(){h1=(q1=B1.now())+W1,y1=E1=0;try{G0()}finally{y1=0,X0(),h1=0}}function W0(){var e=B1.now(),t=e-q1;t>C3&&(W1-=t,q1=e)}function X0(){for(var e,t=D1,n,i=1/0;t;)t._call?(i>t._time&&(i=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:D1=n);S1=e,l2(i)}function l2(e){if(!y1){E1&&(E1=clearTimeout(E1));var t=e-h1;t>24?(e<1/0&&(E1=setTimeout($2,e-B1.now()-W1)),M1&&(M1=clearInterval(M1))):(M1||(q1=B1.now(),M1=setInterval(W0,C3)),y1=1,a3($2))}}const Y0=1664525,K0=1013904223,A2=4294967296;function Q0(){let e=1;return()=>(e=(Y0*e+K0)%A2)/A2}var z2=3;function n2(e){return e.x}function F2(e){return e.y}function J0(e){return e.z}var e6=10,t6=Math.PI*(3-Math.sqrt(5)),n6=Math.PI*20/(9+Math.sqrt(221));function r6(e,t){t=t||2;var n=Math.min(z2,Math.max(1,Math.round(t))),i,s=1,o=.001,l=1-Math.pow(o,1/300),C=0,a=.6,h=new Map,c=h3(x),u=l3("tick","end"),p=Q0();e==null&&(e=[]);function x(){f(),u.call("tick",i),s1&&(v.fy==null?v.y+=v.vy*=a:(v.y=v.fy,v.vy=0)),n>2&&(v.fz==null?v.z+=v.vz*=a:(v.z=v.fz,v.vz=0));return i}function _(){for(var d=0,k=e.length,g;d1&&isNaN(g.y)||n>2&&isNaN(g.z)){var v=e6*(n>2?Math.cbrt(.5+d):n>1?Math.sqrt(.5+d):d),m=d*t6,j=d*n6;n===1?g.x=v:n===2?(g.x=v*Math.cos(m),g.y=v*Math.sin(m)):(g.x=v*Math.sin(m)*Math.cos(j),g.y=v*Math.cos(m),g.z=v*Math.sin(m)*Math.sin(j))}(isNaN(g.vx)||n>1&&isNaN(g.vy)||n>2&&isNaN(g.vz))&&(g.vx=0,n>1&&(g.vy=0),n>2&&(g.vz=0))}}function w(d){return d.initialize&&d.initialize(e,p,n),d}return _(),i={tick:f,restart:function(){return c.restart(x),i},stop:function(){return c.stop(),i},numDimensions:function(d){return arguments.length?(n=Math.min(z2,Math.max(1,Math.round(d))),h.forEach(w),i):n},nodes:function(d){return arguments.length?(e=d,_(),h.forEach(w),i):e},alpha:function(d){return arguments.length?(s=+d,i):s},alphaMin:function(d){return arguments.length?(o=+d,i):o},alphaDecay:function(d){return arguments.length?(l=+d,i):+l},alphaTarget:function(d){return arguments.length?(C=+d,i):C},velocityDecay:function(d){return arguments.length?(a=1-d,i):1-a},randomSource:function(d){return arguments.length?(p=d,h.forEach(w),i):p},force:function(d,k){return arguments.length>1?(k==null?h.delete(d):h.set(d,w(k)),i):h.get(d)},find:function(){var d=Array.prototype.slice.call(arguments),k=d.shift()||0,g=(n>1?d.shift():null)||0,v=(n>2?d.shift():null)||0,m=d.shift()||1/0,j=0,y=e.length,L,M,S,P,V,U;for(m*=m,j=0;j1?(u.on(d,k),i):u.on(d)}}}function i6(){var e,t,n,i,s,o=Y(-30),l,C=1,a=1/0,h=.81;function c(f){var _,w=e.length,d=(t===1?a2(e,n2):t===2?h2(e,n2,F2):t===3?d2(e,n2,F2,J0):null).visitAfter(p);for(s=f,_=0;_1&&(f.y=v/k),t>2&&(f.z=m/k)}else{w=f,w.x=w.data.x,t>1&&(w.y=w.data.y),t>2&&(w.z=w.data.z);do _+=l[w.data.index];while(w=w.next)}f.value=_}function x(f,_,w,d,k){if(!f.value)return!0;var g=[w,d,k][t-1],v=f.x-n.x,m=t>1?f.y-n.y:0,j=t>2?f.z-n.z:0,y=g-_,L=v*v+m*m+j*j;if(y*y/h1&&m===0&&(m=t1(i),L+=m*m),t>2&&j===0&&(j=t1(i),L+=j*j),L1&&(n.vy+=m*f.value*s/L),t>2&&(n.vz+=j*f.value*s/L)),!0;if(f.length||L>=a)return;(f.data!==n||f.next)&&(v===0&&(v=t1(i),L+=v*v),t>1&&m===0&&(m=t1(i),L+=m*m),t>2&&j===0&&(j=t1(i),L+=j*j),L1&&(n.vy+=m*y),t>2&&(n.vz+=j*y));while(f=f.next)}return c.initialize=function(f,..._){e=f,i=_.find(w=>typeof w=="function")||Math.random,t=_.find(w=>[1,2,3].includes(w))||2,u()},c.strength=function(f){return arguments.length?(o=typeof f=="function"?f:Y(+f),u(),c):o},c.distanceMin=function(f){return arguments.length?(C=f*f,c):Math.sqrt(C)},c.distanceMax=function(f){return arguments.length?(a=f*f,c):Math.sqrt(a)},c.theta=function(f){return arguments.length?(h=f*f,c):Math.sqrt(h)},c}function D2(e,t,n,i){var s,o,l=Y(.1),C,a;typeof e!="function"&&(e=Y(+e)),t==null&&(t=0),n==null&&(n=0),i==null&&(i=0);function h(u){for(var p=0,x=s.length;p1&&(f.vy+=w*g),o>2&&(f.vz+=d*g)}}function c(){if(s){var u,p=s.length;for(C=new Array(p),a=new Array(p),u=0;u[1,2,3].includes(x))||2,c()},h.strength=function(u){return arguments.length?(l=typeof u=="function"?u:Y(+u),c(),h):l},h.radius=function(u){return arguments.length?(e=typeof u=="function"?u:Y(+u),c(),h):e},h.x=function(u){return arguments.length?(t=+u,h):t},h.y=function(u){return arguments.length?(n=+u,h):n},h.z=function(u){return arguments.length?(i=+u,h):i},h}function s6(e){var t=Y(.1),n,i,s;typeof e!="function"&&(e=Y(e==null?0:+e));function o(C){for(var a=0,h=n.length,c;a{},setForces:()=>{},addRadialForce:()=>{},addDefaultForce:()=>{},addSplitForce:()=>{},simulationRestart:()=>{},getLinks:()=>[]},l6={data:null,simulation:null,selectionGraphData:{nodes:[],links:[]},disableCameraRotation:!1,scrollEventsDisabled:!1,graphRadius:1500,selectionGraphRadius:200,graphStyle:"sphere",hoveredNode:null,selectedNode:null,activeEdge:null,cameraFocusTrigger:!1,nearbyNodeIds:[],showSelectionGraph:!1,simulationHelpers:o6,isHovering:!1,selectionPath:[]},u1=W2()((e,t)=>({...l6,setData:n=>{e({data:n})},setSelectionData:n=>e({selectionGraphData:n}),setScrollEventsDisabled:n=>e({scrollEventsDisabled:n}),setDisableCameraRotation:n=>e({disableCameraRotation:n}),setIsHovering:n=>e({isHovering:n}),setGraphRadius:n=>e({graphRadius:n}),setSelectionGraphRadius:n=>e({selectionGraphRadius:n}),setGraphStyle:n=>e({graphStyle:"sphere"}),setHoveredNode:n=>{e({hoveredNode:n})},setActiveEdge:n=>{e({activeEdge:n})},addToSelectionPath:n=>{const{selectionPath:i}=t();e({selectionPath:[...i,n]})},setSelectedNode:n=>{n||e({hoveredNode:null,selectedNode:null,disableCameraRotation:!1,showSelectionGraph:!1,selectionPath:[]});const{selectedNode:i,simulation:s,selectionPath:o}=t();if((i==null?void 0:i.ref_id)!==(n==null?void 0:n.ref_id)){const l=s.nodes().find(C=>C.ref_id===(n==null?void 0:n.ref_id))||null;e({hoveredNode:null,selectedNode:l,disableCameraRotation:!0,showSelectionGraph:!!n,selectionPath:[...o,l.ref_id]})}},setCameraFocusTrigger:n=>e({cameraFocusTrigger:n}),setNearbyNodeIds:n=>{const i=t().nearbyNodeIds;(n.length!==i.length||n[0]!==i[0])&&e({nearbyNodeIds:n})},setShowSelectionGraph:n=>e({showSelectionGraph:n}),simulationHelpers:{addNodesAndLinks:(n,i,s)=>{const{simulation:o,simulationHelpers:l}=t();o.stop();const C=structuredClone(n),a=structuredClone(i);o.stop();const h=s?[]:o.nodes(),c=s?[]:o.force("link").links();h.push(...C),c.push(...a);try{o.nodes(h),o.force("link").links([]).links(c),l.simulationRestart()}catch(u){console.error(u)}},addRadialForce:()=>{const{simulation:n}=t();n.nodes(n.nodes().map(i=>({...i,...r2}))).force("y",null).force("radial",D2(200,0,0,0).strength(.1)).force("center",P2().strength(1)).force("collide",t2().radius(()=>250).strength(1).iterations(1))},addDefaultForce:()=>{const{simulation:n}=t();n.nodes(n.nodes().map(i=>({...i,...r2}))).force("y",null).force("charge",i6().strength(-20)).force("center",P2().strength(1)).force("collide",t2().radius(()=>250).strength(1).iterations(1))},addSplitForce:()=>{const{simulation:n}=t(),{nodeTypes:i}=G1.getState();n.stop().nodes(n.nodes().map(s=>({...s,...r2}))).force("radial",D2(200,0,0,0).strength(.1)).force("collide",t2().radius(()=>250).strength(1).iterations(1)).force("y",s6().y(s=>{const o=i.indexOf(s.node_type),l=Math.floor(o/2)*400;return o%2===0?l:-l}).strength(10))},getLinks:()=>{const{simulation:n}=t();return n?n.force("link").links():[]},setForces:()=>{const{graphStyle:n,simulationHelpers:i}=t();n==="split"&&i.addSplitForce(),n==="sphere"&&i.addRadialForce(),n==="force"&&i.addDefaultForce(),i.simulationRestart()},simulationRestart:()=>{const{simulation:n}=t();n.alpha(1).restart()}},simulationCreate:(n,i)=>{const s=structuredClone(n),o=structuredClone(i),l=r6([]).numDimensions(3).stop().nodes(s).force("link",A0().links(o).id(C=>C.ref_id));e({simulation:l})},removeSimulation:()=>e({simulation:null})})),u3=()=>u1(e=>e.selectedNode),S7=()=>u1(e=>e.hoveredNode),C6=()=>u1(e=>e.setSelectedNode),I7=()=>{const e=u1(s=>s.selectedNode);if(!e)return[];const{dataInitial:t}=G1.getState();return((t==null?void 0:t.links)||[]).reduce((s,o)=>(o.source===(e==null?void 0:e.ref_id)&&s.push(o.target),o.target===(e==null?void 0:e.ref_id)&&s.push(o.source),s),[])},a6=()=>(u1($5(e=>[e.graphStyle,e.setGraphStyle])),null);D(p1).attrs({direction:"row",align:"center",justify:"space-between"})` padding: 6px 6px 6px 11px; background: ${i1.BG1}; border-radius: 200px; @@ -173,4 +173,4 @@ import{G as g3,R as O1,H as r1,J as Z1,K as q2,L as N1,M as R1,O as d1,x as Z,P display: flex; flex-direction: column; gap: 4px; -`,P7=()=>r.jsx(E6,{children:r.jsx(V6,{})}),E6=D("div")(({theme:e})=>({position:"absolute",zIndex:1,top:0,left:0,userSelect:"none",pointerEvents:"none",display:"flex",justifyContent:"flex-end",alignItems:"flex-start",height:"100%",width:"100%",padding:"16px",paddingRight:"0",overflow:"hidden",[e.breakpoints.down("sm")]:{top:50}})),B7=()=>{const e=H.useContext(j3);return e==null?void 0:e.socket},S6=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 22 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M14 16C11.7667 16 9.875 15.225 8.325 13.675C6.775 12.125 6 10.2333 6 8C6 5.76667 6.775 3.875 8.325 2.325C9.875 0.775 11.7667 0 14 0C16.2333 0 18.125 0.775 19.675 2.325C21.225 3.875 22 5.76667 22 8C22 10.2333 21.225 12.125 19.675 13.675C18.125 15.225 16.2333 16 14 16ZM4.625 15.25C3.225 14.6 2.10433 13.625 1.263 12.325C0.421 11.025 0 9.58333 0 8C0 6.41667 0.421 4.975 1.263 3.675C2.10433 2.375 3.225 1.4 4.625 0.75C4.975 0.583333 5.29167 0.595667 5.575 0.787C5.85833 0.979 6 1.29167 6 1.725C6 1.89167 5.946 2.054 5.838 2.212C5.72933 2.37067 5.59167 2.49167 5.425 2.575C4.375 3.05833 3.54167 3.78733 2.925 4.762C2.30833 5.73733 2 6.81667 2 8C2 9.18333 2.30833 10.2623 2.925 11.237C3.54167 12.2123 4.375 12.9417 5.425 13.425C5.59167 13.5083 5.72933 13.625 5.838 13.775C5.946 13.925 6 14.0917 6 14.275C6 14.6917 5.85833 15 5.575 15.2C5.29167 15.4 4.975 15.4167 4.625 15.25ZM14 14C15.6667 14 17.0833 13.4167 18.25 12.25C19.4167 11.0833 20 9.66667 20 8C20 6.33333 19.4167 4.91667 18.25 3.75C17.0833 2.58333 15.6667 2 14 2C12.3333 2 10.9167 2.58333 9.75 3.75C8.58333 4.91667 8 6.33333 8 8C8 9.66667 8.58333 11.0833 9.75 12.25C10.9167 13.4167 12.3333 14 14 14Z",fill:"currentColor"})}),I6=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"Nodes",children:[r.jsx("mask",{id:"mask0_1506_141",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"16",height:"16",children:r.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_1506_141)",children:r.jsx("path",{id:"hub",d:"M4.00071 15.1667C3.49166 15.1667 3.05873 14.9886 2.70189 14.6322C2.34506 14.2759 2.16664 13.8432 2.16664 13.3341C2.16664 12.8251 2.3449 12.3922 2.70141 12.0353C3.05793 11.6785 3.49084 11.5001 4.00014 11.5001C4.14275 11.5001 4.28286 11.5178 4.42048 11.5533C4.55808 11.5887 4.68799 11.6364 4.81021 11.6962L6.13204 10.0513C5.85512 9.74962 5.66409 9.41201 5.55896 9.03851C5.45384 8.66501 5.43247 8.28938 5.49486 7.91161L3.57431 7.2757C3.40679 7.54493 3.18652 7.76074 2.91351 7.92313C2.6405 8.08552 2.33598 8.16671 1.99996 8.16671C1.4907 8.16671 1.05784 7.98855 0.701359 7.63221C0.344882 7.27588 0.166637 6.84319 0.166626 6.33415C0.166626 5.8251 0.344793 5.39217 0.701126 5.03533C1.05746 4.6785 1.49015 4.50008 1.99919 4.50008C2.50824 4.50008 2.94118 4.67832 3.29801 5.0348C3.65484 5.39128 3.83326 5.82414 3.83328 6.3334C3.83328 6.37272 3.83221 6.40563 3.83008 6.43211C3.82794 6.45861 3.82688 6.48511 3.82688 6.51161L5.74101 7.177C5.92476 6.83683 6.17711 6.54496 6.49806 6.30138C6.81899 6.05779 7.18715 5.90138 7.60253 5.83215V3.78595C7.17347 3.68509 6.82689 3.46821 6.56279 3.13531C6.29869 2.80241 6.16664 2.42312 6.16664 1.99742C6.16664 1.49064 6.34481 1.05883 6.70114 0.701999C7.05748 0.345166 7.49016 0.166748 7.99921 0.166748C8.50825 0.166748 8.94119 0.344987 9.29803 0.701465C9.65486 1.05794 9.83328 1.49081 9.83328 2.00007C9.83328 2.424 9.69951 2.80241 9.43199 3.13531C9.16448 3.46821 8.81961 3.68509 8.39739 3.78595V5.83215C8.81277 5.90138 9.17986 6.05779 9.49866 6.30138C9.81746 6.54496 10.0709 6.83683 10.2589 7.177L12.173 6.51161C12.1688 6.48084 12.1666 6.45327 12.1666 6.42892V6.3334C12.1666 5.82414 12.3448 5.39128 12.7011 5.0348C13.0575 4.67832 13.4902 4.50008 13.9992 4.50008C14.5083 4.50008 14.9412 4.67825 15.298 5.03458C15.6549 5.39091 15.8333 5.8236 15.8333 6.33265C15.8333 6.84169 15.655 7.27463 15.2986 7.63146C14.9421 7.9883 14.5092 8.16671 14 8.16671C13.6653 8.16671 13.3594 8.08552 13.0823 7.92313C12.8052 7.76074 12.5863 7.54493 12.4256 7.2757L10.5051 7.91161C10.5674 8.28938 10.5461 8.6633 10.441 9.03338C10.3358 9.40347 10.1448 9.74065 9.86788 10.0449L11.1897 11.6796C11.3119 11.624 11.4418 11.5802 11.5794 11.5481C11.7171 11.5161 11.8572 11.5001 11.9998 11.5001C12.5091 11.5001 12.942 11.6782 13.2985 12.0346C13.655 12.3909 13.8333 12.8236 13.8333 13.3326C13.8333 13.8417 13.6551 14.2746 13.2988 14.6315C12.9424 14.9883 12.5098 15.1667 12.0007 15.1667C11.4917 15.1667 11.0587 14.9885 10.7019 14.632C10.3451 14.2755 10.1666 13.8427 10.1666 13.3334C10.1666 13.1232 10.2006 12.9208 10.2686 12.7264C10.3365 12.5319 10.438 12.3535 10.573 12.1911L9.25123 10.5334C8.8726 10.759 8.45488 10.8718 7.99804 10.8718C7.54121 10.8718 7.12134 10.759 6.73844 10.5334L5.42688 12.1911C5.55764 12.3535 5.65807 12.5319 5.72816 12.7264C5.79824 12.9208 5.83328 13.1232 5.83328 13.3334C5.83328 13.8427 5.65511 14.2755 5.29878 14.632C4.94244 14.9885 4.50975 15.1667 4.00071 15.1667Z",fill:"currentColor"})})]})}),P6=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M7.37516 8.625V11.3334C7.37516 11.5104 7.43508 11.6589 7.55491 11.7786C7.67476 11.8984 7.82326 11.9583 8.00041 11.9583C8.17758 11.9583 8.32599 11.8984 8.44564 11.7786C8.5653 11.6589 8.62512 11.5104 8.62512 11.3334V8.625H11.3335C11.5106 8.625 11.659 8.56508 11.7788 8.44525C11.8986 8.3254 11.9585 8.1769 11.9585 7.99975C11.9585 7.82258 11.8986 7.67417 11.7788 7.55452C11.659 7.43487 11.5106 7.37504 11.3335 7.37504H8.62512V4.66669C8.62512 4.4896 8.56521 4.34117 8.44537 4.22137C8.32553 4.1016 8.17702 4.04171 7.99987 4.04171C7.82271 4.04171 7.6743 4.1016 7.55464 4.22137C7.43499 4.34117 7.37516 4.4896 7.37516 4.66669V7.37504H4.66681C4.48973 7.37504 4.3413 7.43496 4.22152 7.55479C4.10173 7.67464 4.04183 7.82314 4.04183 8.00029C4.04183 8.17746 4.10173 8.32587 4.22152 8.44552C4.3413 8.56517 4.48973 8.625 4.66681 8.625H7.37516ZM8.00154 15.9167C6.90659 15.9167 5.8774 15.7089 4.91395 15.2933C3.9505 14.8778 3.11243 14.3138 2.39975 13.6015C1.68705 12.8891 1.12284 12.0514 0.7071 11.0884C0.291364 10.1253 0.0834961 9.09636 0.0834961 8.00142C0.0834961 6.90647 0.291274 5.87728 0.70683 4.91383C1.12239 3.95037 1.68634 3.11231 2.3987 2.39963C3.11108 1.68693 3.94878 1.12272 4.91181 0.706979C5.87482 0.291243 6.9038 0.083374 7.99875 0.083374C9.09369 0.083374 10.1229 0.291153 11.0863 0.706708C12.0498 1.12226 12.8879 1.68622 13.6005 2.39858C14.3132 3.11096 14.8774 3.94866 15.2932 4.91169C15.7089 5.8747 15.9168 6.90368 15.9168 7.99863C15.9168 9.09357 15.709 10.1228 15.2935 11.0862C14.8779 12.0497 14.3139 12.8877 13.6016 13.6004C12.8892 14.3131 12.0515 14.8773 11.0885 15.2931C10.1255 15.7088 9.09648 15.9167 8.00154 15.9167ZM8.00014 14.6667C9.86125 14.6667 11.4376 14.0209 12.7293 12.7292C14.021 11.4375 14.6668 9.86113 14.6668 8.00002C14.6668 6.13891 14.021 4.56252 12.7293 3.27085C11.4376 1.97919 9.86125 1.33335 8.00014 1.33335C6.13903 1.33335 4.56264 1.97919 3.27098 3.27085C1.97931 4.56252 1.33348 6.13891 1.33348 8.00002C1.33348 9.86113 1.97931 11.4375 3.27098 12.7292C4.56264 14.0209 6.13903 14.6667 8.00014 14.6667Z",fill:"currentColor"})}),B6=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_1259_25",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_1259_25)",children:r.jsx("path",{d:"M11.25 12.75V16C11.25 16.2125 11.3219 16.3906 11.4657 16.5343C11.6095 16.6781 11.7877 16.75 12.0003 16.75C12.2129 16.75 12.391 16.6781 12.5346 16.5343C12.6782 16.3906 12.75 16.2125 12.75 16V12.75H16C16.2125 12.75 16.3906 12.6781 16.5344 12.5343C16.6781 12.3904 16.75 12.2122 16.75 11.9997C16.75 11.7871 16.6781 11.609 16.5344 11.4654C16.3906 11.3218 16.2125 11.25 16 11.25H12.75V7.99998C12.75 7.78748 12.6781 7.60935 12.5343 7.4656C12.3905 7.32187 12.2123 7.25 11.9997 7.25C11.7871 7.25 11.609 7.32187 11.4654 7.4656C11.3218 7.60935 11.25 7.78748 11.25 7.99998V11.25H8.00001C7.78751 11.25 7.60939 11.3219 7.46566 11.4657C7.32191 11.6095 7.25003 11.7877 7.25003 12.0003C7.25003 12.2129 7.32191 12.391 7.46566 12.5346C7.60939 12.6782 7.78751 12.75 8.00001 12.75H11.25ZM12.0017 21.5C10.6877 21.5 9.45271 21.2506 8.29658 20.752C7.14043 20.2533 6.13475 19.5765 5.27953 18.7217C4.4243 17.8669 3.74724 16.8616 3.24836 15.706C2.74947 14.5504 2.50003 13.3156 2.50003 12.0017C2.50003 10.6877 2.74936 9.45268 3.24803 8.29655C3.7467 7.1404 4.42345 6.13472 5.27828 5.2795C6.13313 4.42427 7.13837 3.74721 8.29401 3.24833C9.44962 2.74944 10.6844 2.5 11.9983 2.5C13.3123 2.5 14.5473 2.74933 15.7034 3.248C16.8596 3.74667 17.8653 4.42342 18.7205 5.27825C19.5757 6.1331 20.2528 7.13834 20.7517 8.29398C21.2505 9.44959 21.5 10.6844 21.5 11.9983C21.5 13.3122 21.2506 14.5473 20.752 15.7034C20.2533 16.8596 19.5766 17.8652 18.7217 18.7205C17.8669 19.5757 16.8616 20.2527 15.706 20.7516C14.5504 21.2505 13.3156 21.5 12.0017 21.5ZM12 20C14.2333 20 16.125 19.225 17.675 17.675C19.225 16.125 20 14.2333 20 12C20 9.76664 19.225 7.87498 17.675 6.32498C16.125 4.77498 14.2333 3.99998 12 3.99998C9.76667 3.99998 7.87501 4.77498 6.32501 6.32498C4.77501 7.87498 4.00001 9.76664 4.00001 12C4.00001 14.2333 4.77501 16.125 6.32501 17.675C7.87501 19.225 9.76667 20 12 20Z",fill:"currentColor"})})]}),N6=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"add_link",children:[r.jsx("mask",{id:"mask0_2659_52",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:r.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_2659_52)",children:r.jsx("path",{id:"add_link_2",d:"M14.1987 13.7821H12.3349C12.1629 13.7821 12.0192 13.7222 11.9039 13.6024C11.7885 13.4826 11.7308 13.3342 11.7308 13.1571C11.7308 12.9851 11.7907 12.8379 11.9105 12.7156C12.0303 12.5933 12.1787 12.5321 12.3558 12.5321H14.1987V10.6891C14.1987 10.5121 14.2587 10.3636 14.3785 10.2438C14.4983 10.124 14.6468 10.0641 14.824 10.0641C15.0012 10.0641 15.1496 10.124 15.2692 10.2438C15.3889 10.3636 15.4487 10.5121 15.4487 10.6891V12.5321H17.2917C17.4687 12.5321 17.6172 12.592 17.737 12.7119C17.8568 12.8317 17.9167 12.9802 17.9167 13.1574C17.9167 13.3345 17.8568 13.4829 17.737 13.6026C17.6172 13.7222 17.4687 13.7821 17.2917 13.7821H15.4487V15.625C15.4487 15.8021 15.3888 15.9505 15.2689 16.0703C15.1491 16.1901 15.0006 16.25 14.8234 16.25C14.6463 16.25 14.4979 16.1901 14.3782 16.0703C14.2586 15.9505 14.1987 15.8021 14.1987 15.625V13.7821ZM8.38142 13.7821H5.8654C4.81904 13.7821 3.92711 13.4134 3.18961 12.676C2.45211 11.9386 2.08336 11.0467 2.08336 10.0005C2.08336 8.95426 2.45211 8.06229 3.18961 7.32458C3.92711 6.58687 4.81904 6.21802 5.8654 6.21802H8.38142C8.55342 6.21802 8.70059 6.27918 8.82292 6.4015C8.94524 6.52383 9.0064 6.67233 9.0064 6.847C9.0064 7.02168 8.94524 7.16884 8.82292 7.2885C8.70059 7.40815 8.55342 7.46798 8.38142 7.46798H5.86444C5.16529 7.46798 4.56865 7.71504 4.07453 8.20916C3.5804 8.70329 3.33334 9.30025 3.33334 10C3.33334 10.6998 3.5804 11.2968 4.07453 11.7909C4.56865 12.285 5.16529 12.5321 5.86444 12.5321H8.38142C8.55342 12.5321 8.70059 12.5933 8.82292 12.7156C8.94524 12.8379 9.0064 12.9864 9.0064 13.1611C9.0064 13.3358 8.94524 13.4829 8.82292 13.6026C8.70059 13.7222 8.55342 13.7821 8.38142 13.7821ZM7.50001 10.625C7.32292 10.625 7.17449 10.5651 7.05471 10.4453C6.93492 10.3254 6.87503 10.1769 6.87503 9.99977C6.87503 9.8226 6.93492 9.67419 7.05471 9.55454C7.17449 9.43489 7.32292 9.37506 7.50001 9.37506H12.5C12.6771 9.37506 12.8255 9.43498 12.9453 9.55481C13.0651 9.67466 13.125 9.82316 13.125 10.0003C13.125 10.1775 13.0651 10.3259 12.9453 10.4455C12.8255 10.5652 12.6771 10.625 12.5 10.625H7.50001ZM17.9167 10H16.6667C16.6667 9.30025 16.4196 8.70329 15.9255 8.20916C15.4314 7.71504 14.8347 7.46798 14.1356 7.46798H11.5978C11.4258 7.46798 11.2821 7.40809 11.1667 7.28831C11.0513 7.16852 10.9936 7.02008 10.9936 6.843C10.9936 6.671 11.0535 6.52383 11.1733 6.4015C11.2931 6.27918 11.4415 6.21802 11.6186 6.21802H14.1346C15.181 6.21802 16.0729 6.58676 16.8104 7.32425C17.5479 8.06175 17.9167 8.95368 17.9167 10Z",fill:"currentColor"})})]})}),R6=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_1259_27",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_1259_27)",children:r.jsx("path",{d:"M5.30773 20.5C4.81061 20.5 4.38506 20.3229 4.03106 19.9689C3.67704 19.6149 3.50003 19.1894 3.50003 18.6923V5.3077C3.50003 4.81058 3.67704 4.38503 4.03106 4.03103C4.38506 3.67701 4.81061 3.5 5.30773 3.5H18.6923C19.1894 3.5 19.615 3.67701 19.969 4.03103C20.323 4.38503 20.5 4.81058 20.5 5.3077V11.6327C20.2538 11.5275 20.0074 11.4384 19.7606 11.3654C19.5138 11.2923 19.2603 11.234 19 11.1904V5.3077C19 5.23077 18.968 5.16024 18.9039 5.09613C18.8397 5.03203 18.7692 4.99998 18.6923 4.99998H5.30773C5.2308 4.99998 5.16027 5.03203 5.09616 5.09613C5.03206 5.16024 5.00001 5.23077 5.00001 5.3077V18.6923C5.00001 18.7692 5.03206 18.8397 5.09616 18.9038C5.16027 18.9679 5.2308 19 5.30773 19H11.1654C11.2026 19.2769 11.2577 19.5387 11.3308 19.7855C11.4038 20.0323 11.4929 20.2705 11.5981 20.5H5.30773ZM5.00001 19V4.99998V11.1904V11.1154V19ZM7.25003 15.8849C7.25003 16.0975 7.32191 16.2756 7.46566 16.4192C7.60939 16.5628 7.78751 16.6346 8.00001 16.6346H11.2673C11.3109 16.3743 11.3757 16.1208 11.4616 15.874C11.5475 15.6272 11.641 15.3808 11.7423 15.1346H8.00001C7.78751 15.1346 7.60939 15.2065 7.46566 15.3503C7.32191 15.4941 7.25003 15.6723 7.25003 15.8849ZM7.25003 12.0003C7.25003 12.2129 7.32191 12.391 7.46566 12.5346C7.60939 12.6782 7.78751 12.75 8.00001 12.75H13.5904C14.0212 12.3846 14.4808 12.0785 14.9692 11.8317C15.4577 11.5849 15.9807 11.4096 16.5384 11.3058C16.4259 11.281 16.3009 11.2655 16.1634 11.2593C16.0259 11.2531 15.901 11.25 15.7885 11.25H8.00001C7.78751 11.25 7.60939 11.3219 7.46566 11.4657C7.32191 11.6095 7.25003 11.7877 7.25003 12.0003ZM7.25003 8.1157C7.25003 8.3283 7.32191 8.50639 7.46566 8.64998C7.60939 8.79356 7.78751 8.86535 8.00001 8.86535H16C16.2125 8.86535 16.3906 8.79344 16.5344 8.64963C16.6781 8.50583 16.75 8.32763 16.75 8.11503C16.75 7.90244 16.6781 7.72436 16.5344 7.58078C16.3906 7.43718 16.2125 7.36538 16 7.36538H8.00001C7.78751 7.36538 7.60939 7.43728 7.46566 7.5811C7.32191 7.72492 7.25003 7.90312 7.25003 8.1157ZM18 22.5576C16.7513 22.5576 15.6891 22.1198 14.8135 21.2442C13.9378 20.3685 13.5 19.3064 13.5 18.0577C13.5 16.809 13.9378 15.7468 14.8135 14.8712C15.6891 13.9955 16.7513 13.5577 18 13.5577C19.2487 13.5577 20.3109 13.9955 21.1865 14.8712C22.0622 15.7468 22.5 16.809 22.5 18.0577C22.5 19.3064 22.0622 20.3685 21.1865 21.2442C20.3109 22.1198 19.2487 22.5576 18 22.5576ZM17.5577 18.5V20.5577C17.5577 20.6756 17.6019 20.7788 17.6904 20.8673C17.7788 20.9557 17.8821 21 18 21C18.118 21 18.2212 20.9557 18.3096 20.8673C18.3981 20.7788 18.4423 20.6756 18.4423 20.5577V18.5H20.5C20.618 18.5 20.7212 18.4557 20.8096 18.3673C20.8981 18.2788 20.9423 18.1756 20.9423 18.0577C20.9423 17.9397 20.8981 17.8365 20.8096 17.748C20.7212 17.6596 20.618 17.6154 20.5 17.6154H18.4423V15.5577C18.4423 15.4397 18.3981 15.3365 18.3096 15.2481C18.2212 15.1596 18.118 15.1154 18 15.1154C17.8821 15.1154 17.7788 15.1596 17.6904 15.2481C17.6019 15.3365 17.5577 15.4397 17.5577 15.5577V17.6154H15.5C15.3821 17.6154 15.2788 17.6596 15.1904 17.748C15.1019 17.8365 15.0577 17.9397 15.0577 18.0577C15.0577 18.1756 15.1019 18.2788 15.1904 18.3673C15.2788 18.4557 15.3821 18.5 15.5 18.5H17.5577Z",fill:"currentColor"})})]}),T6=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 10 10",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M7.50033 10C7.27703 10 7.08233 9.91694 6.9162 9.75081C6.75006 9.58467 6.66699 9.38996 6.66699 9.16667V0.833333C6.66699 0.610042 6.75006 0.415326 6.9162 0.249187C7.08233 0.0830625 7.27703 0 7.50033 0H8.75033C8.97362 0 9.16833 0.0830625 9.33447 0.249187C9.5006 0.415326 9.58366 0.610042 9.58366 0.833333V9.16667C9.58366 9.38996 9.5006 9.58467 9.33447 9.75081C9.16833 9.91694 8.97362 10 8.75033 10H7.50033ZM1.25033 10C1.02703 10 0.832319 9.91694 0.66618 9.75081C0.500055 9.58467 0.416992 9.38996 0.416992 9.16667V0.833333C0.416992 0.610042 0.500055 0.415326 0.66618 0.249187C0.832319 0.0830625 1.02703 0 1.25033 0H2.50033C2.72362 0 2.91833 0.0830625 3.08445 0.249187C3.25059 0.415326 3.33366 0.610042 3.33366 0.833333V9.16667C3.33366 9.38996 3.25059 9.58467 3.08445 9.75081C2.91833 9.91694 2.72362 10 2.50033 10H1.25033Z",fill:"currentColor"})}),U6=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 15 13",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M13.577 7.62502H11.8142C11.6368 7.62502 11.4883 7.56519 11.3687 7.44554C11.249 7.32589 11.1892 7.17739 11.1892 7.00004C11.1892 6.82269 11.249 6.67419 11.3687 6.55454C11.4883 6.43489 11.6368 6.37506 11.8142 6.37506H13.577C13.7543 6.37506 13.9028 6.43489 14.0225 6.55454C14.1421 6.67419 14.202 6.82269 14.202 7.00004C14.202 7.17739 14.1421 7.32589 14.0225 7.44554C13.9028 7.56519 13.7543 7.62502 13.577 7.62502ZM10.1106 10.9279C10.2175 10.7816 10.354 10.6972 10.5201 10.6747C10.6862 10.6523 10.8425 10.6945 10.9888 10.8013L12.3943 11.8574C12.5406 11.9642 12.625 12.1007 12.6475 12.2669C12.6699 12.433 12.6277 12.5892 12.5209 12.7356C12.4141 12.882 12.2776 12.9664 12.1114 12.9888C11.9453 13.0112 11.7891 12.969 11.6427 12.8622L10.2372 11.8061C10.0909 11.6993 10.0065 11.5628 9.98405 11.3967C9.96161 11.2305 10.0038 11.0743 10.1106 10.9279ZM12.3622 2.1106L10.9568 3.16671C10.8104 3.27354 10.6542 3.31574 10.488 3.29331C10.3219 3.27087 10.1854 3.18646 10.0786 3.0401C9.97176 2.89374 9.92956 2.7375 9.95199 2.57137C9.97442 2.40525 10.0588 2.26876 10.2052 2.16192L11.6106 1.10583C11.757 0.998998 11.9133 0.956796 12.0794 0.979227C12.2455 1.00166 12.382 1.08606 12.4888 1.23244C12.5957 1.3788 12.6379 1.53504 12.6154 1.70116C12.593 1.86729 12.5086 2.00377 12.3622 2.1106ZM4.05778 9.08335H1.71805C1.5033 9.08335 1.32408 9.0115 1.18039 8.86779C1.03669 8.7241 0.964844 8.54488 0.964844 8.33014V5.66994C0.964844 5.4552 1.03669 5.27599 1.18039 5.13229C1.32408 4.98858 1.5033 4.91673 1.71805 4.91673H4.05778L6.55134 2.42317C6.75114 2.22339 6.9811 2.17771 7.24124 2.28614C7.50138 2.39459 7.63145 2.5909 7.63145 2.87508V11.125C7.63145 11.4092 7.50138 11.6055 7.24124 11.7139C6.9811 11.8224 6.75114 11.7767 6.55134 11.5769L4.05778 9.08335Z",fill:"currentColor"})}),O6=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M7.28729 0.918723C7.41428 0.105284 8.58572 0.105284 8.71271 0.918723L8.76054 1.22508C9.2444 4.32436 11.6757 6.75568 14.775 7.23954L15.0814 7.28737C15.8948 7.41436 15.8948 8.5858 15.0814 8.71279L14.775 8.76062C11.6757 9.24448 9.2444 11.6758 8.76054 14.7751L8.71271 15.0814C8.58572 15.8949 7.41428 15.8949 7.28729 15.0814L7.23946 14.7751C6.7556 11.6758 4.32428 9.24448 1.225 8.76062L0.918643 8.71279C0.105204 8.5858 0.105204 7.41436 0.918642 7.28737L1.225 7.23954C4.32428 6.75568 6.7556 4.32436 7.23946 1.22508L7.28729 0.918723Z",fill:"currentColor"})}),$6=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_7541_21694",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"15",children:r.jsx("rect",{y:"0.25",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_7541_21694)",children:r.jsx("path",{d:"M1.07697 10.4639C1.16067 9.50216 1.45574 8.61772 1.96217 7.81059C2.4687 7.00354 3.14323 6.36236 3.98576 5.88704L2.99074 4.16621C2.9361 4.0824 2.92244 3.99661 2.94976 3.90881C2.97708 3.82093 3.0356 3.75268 3.12534 3.70406C3.20312 3.65915 3.28503 3.65035 3.37107 3.67767C3.45701 3.70499 3.52692 3.75909 3.58078 3.83998L4.57697 5.56504C5.34872 5.24159 6.15639 5.07986 6.99999 5.07986C7.84358 5.07986 8.65126 5.24159 9.42301 5.56504L10.4192 3.83998C10.4731 3.75909 10.543 3.70499 10.6289 3.67767C10.7149 3.65035 10.7969 3.65915 10.8746 3.70406C10.9644 3.75268 11.0229 3.82093 11.0502 3.90881C11.0775 3.99661 11.0639 4.0824 11.0092 4.16621L10.0142 5.88704C10.8567 6.36236 11.5313 7.00354 12.0378 7.81059C12.5442 8.61772 12.8393 9.50216 12.923 10.4639H1.07697ZM4.30849 8.98323C4.49719 8.98323 4.6564 8.91809 4.78609 8.78782C4.91588 8.65744 4.98078 8.49795 4.98078 8.30934C4.98078 8.12063 4.91564 7.96138 4.78536 7.83159C4.65508 7.70189 4.49559 7.63704 4.30688 7.63704C4.11817 7.63704 3.95897 7.70218 3.82928 7.83246C3.69949 7.96274 3.63459 8.12223 3.63459 8.31094C3.63459 8.49955 3.69973 8.65875 3.83001 8.78854C3.96028 8.91834 4.11978 8.98323 4.30849 8.98323ZM9.69309 8.98323C9.8818 8.98323 10.041 8.91809 10.1707 8.78782C10.3005 8.65744 10.3654 8.49795 10.3654 8.30934C10.3654 8.12063 10.3002 7.96138 10.17 7.83159C10.0397 7.70189 9.88019 7.63704 9.69149 7.63704C9.50278 7.63704 9.34358 7.70218 9.21388 7.83246C9.08409 7.96274 9.0192 8.12223 9.0192 8.31094C9.0192 8.49955 9.08433 8.65875 9.21461 8.78854C9.34489 8.91834 9.50438 8.98323 9.69309 8.98323Z",fill:"currentColor"})})]}),A6=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"arrow_forward",children:[r.jsx("mask",{id:"mask0_8980_24763",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:r.jsx("rect",{id:"Bounding box",x:"20",y:"20",width:"1em",height:"1em",transform:"rotate(-180 20 20)",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_8980_24763)",children:r.jsx("path",{id:"arrow_forward_2",d:"M7.52981 10.4372L16.0625 10.4372C16.2221 10.4372 16.3558 10.4911 16.4635 10.5988C16.5712 10.7065 16.625 10.8401 16.625 10.9997C16.625 11.1593 16.5712 11.293 16.4635 11.4007C16.3558 11.5084 16.2221 11.5622 16.0625 11.5622L7.52981 11.5622L11.4067 15.4391C11.5183 15.5507 11.5733 15.6812 11.5719 15.8307C11.5704 15.9802 11.5115 16.1132 11.3952 16.2295C11.2789 16.3382 11.1471 16.3944 11 16.3983C10.8529 16.4021 10.7212 16.3459 10.6048 16.2295L5.84956 11.4742C5.77938 11.404 5.72986 11.33 5.70101 11.2521C5.67216 11.1742 5.65773 11.0901 5.65773 10.9997C5.65773 10.9093 5.67216 10.8252 5.70101 10.7473C5.72986 10.6694 5.77938 10.5954 5.84956 10.5252L10.6048 5.76993C10.7087 5.66608 10.8373 5.61295 10.9906 5.61055C11.144 5.60815 11.2789 5.66128 11.3952 5.76993C11.5115 5.88626 11.5697 6.01992 11.5697 6.17088C11.5697 6.32184 11.5115 6.45549 11.3952 6.57183L7.52981 10.4372Z",fill:"currentColor"})})]})}),z6=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M9.47019 6.56248H0.9375C0.777887 6.56248 0.644237 6.50863 0.53655 6.40094C0.42885 6.29326 0.375 6.15961 0.375 5.99999C0.375 5.84038 0.42885 5.70673 0.53655 5.59904C0.644237 5.49136 0.777887 5.43751 0.9375 5.43751H9.47019L5.59326 1.56058C5.48172 1.44904 5.42667 1.31851 5.42812 1.169C5.42956 1.01948 5.48846 0.886545 5.60481 0.770208C5.72114 0.661558 5.85287 0.605308 5.99998 0.601458C6.14709 0.597608 6.27882 0.653858 6.39516 0.770208L11.1504 5.52549C11.2206 5.59568 11.2701 5.66971 11.299 5.7476C11.3278 5.82548 11.3423 5.90961 11.3423 5.99999C11.3423 6.09038 11.3278 6.17451 11.299 6.25239C11.2701 6.33028 11.2206 6.40431 11.1504 6.4745L6.39516 11.2298C6.29132 11.3336 6.16272 11.3868 6.00936 11.3892C5.85599 11.3916 5.72114 11.3384 5.60481 11.2298C5.48846 11.1134 5.43028 10.9798 5.43028 10.8288C5.43028 10.6779 5.48846 10.5442 5.60481 10.4279L9.47019 6.56248Z",fill:"currentColor"})}),F6=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 6 10",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M6 5L6.90043e-08 9.33013L4.47556e-07 0.669872L6 5Z",fill:"currentColor"})}),D6=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"Audio",children:[r.jsx("mask",{id:"mask0_1506_147",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"16",height:"16",children:r.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_1506_147)",children:r.jsx("path",{id:"headphones",d:"M4.48719 13.6667H3.53851C3.20175 13.6667 2.91671 13.55 2.68337 13.3167C2.45004 13.0833 2.33337 12.7983 2.33337 12.4615V8.00002C2.33337 7.21337 2.4821 6.47654 2.77954 5.78952C3.07697 5.10251 3.48124 4.50345 3.99234 3.99234C4.50345 3.48124 5.10247 3.07697 5.78941 2.77954C6.47634 2.4821 7.21309 2.33337 7.99966 2.33337C8.78622 2.33337 9.5231 2.4821 10.2103 2.77954C10.8975 3.07697 11.4966 3.48124 12.0077 3.99234C12.5188 4.50345 12.9231 5.10251 13.2205 5.78952C13.518 6.47654 13.6667 7.21337 13.6667 8.00002V12.4615C13.6667 12.7983 13.55 13.0833 13.3167 13.3167C13.0833 13.55 12.7983 13.6667 12.4615 13.6667H11.5129C11.1814 13.6667 10.8977 13.5487 10.6617 13.3127C10.4257 13.0767 10.3077 12.793 10.3077 12.4615V10.1539C10.3077 9.82247 10.4257 9.53878 10.6617 9.30278C10.8977 9.06676 11.1814 8.94876 11.5129 8.94876H12.6667V8.00002C12.6667 6.70002 12.2139 5.59725 11.3084 4.69169C10.4028 3.78614 9.30002 3.33336 8.00002 3.33336C6.70002 3.33336 5.59725 3.78614 4.69169 4.69169C3.78614 5.59725 3.33336 6.70002 3.33336 8.00002V8.94876H4.48719C4.8186 8.94876 5.10231 9.06676 5.33831 9.30278C5.57431 9.53878 5.69231 9.82247 5.69231 10.1539V12.4615C5.69231 12.793 5.57431 13.0767 5.33831 13.3127C5.10231 13.5487 4.8186 13.6667 4.48719 13.6667Z",fill:"currentColor"})})]})}),q6=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_9540_45",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_9540_45)",children:r.jsx("path",{d:"M5.13135 11.705V11.2019H4.04489C3.85871 11.2019 3.70155 11.1378 3.57341 11.0098C3.44537 10.8817 3.38135 10.7245 3.38135 10.5383C3.38135 10.3521 3.44537 10.195 3.57341 10.0668C3.70155 9.9388 3.85871 9.87478 4.04489 9.87478H4.54801V4.12516H4.04489C3.85871 4.12516 3.70155 4.06114 3.57341 3.9331C3.44537 3.80496 3.38135 3.6478 3.38135 3.46162C3.38135 3.27544 3.44537 3.11828 3.57341 2.99014C3.70155 2.8621 3.85871 2.79808 4.04489 2.79808H5.13135V2.29495C5.13135 2.10877 5.19537 1.95161 5.32341 1.82347C5.45155 1.69543 5.60871 1.63141 5.79489 1.63141C5.98107 1.63141 6.13823 1.69543 6.26637 1.82347C6.39441 1.95161 6.45843 2.10877 6.45843 2.29495V2.79808H7.54139V2.29495C7.54139 2.10877 7.60541 1.95161 7.73345 1.82347C7.86159 1.69543 8.01875 1.63141 8.20493 1.63141C8.39111 1.63141 8.54827 1.69543 8.67641 1.82347C8.80445 1.95161 8.86847 2.10877 8.86847 2.29495V2.89185C9.3857 3.04196 9.80958 3.33114 10.1401 3.75941C10.4707 4.18777 10.636 4.67879 10.636 5.23247C10.636 5.50985 10.5896 5.77794 10.497 6.03674C10.4044 6.29555 10.2742 6.52815 10.1062 6.73455C10.4418 6.94805 10.7112 7.2333 10.9144 7.5903C11.1177 7.9473 11.2193 8.33969 11.2193 8.76747C11.2193 9.42537 10.9908 9.99033 10.5339 10.4623C10.0769 10.9345 9.52181 11.1786 8.86847 11.1949V11.705C8.86847 11.8912 8.80445 12.0483 8.67641 12.1765C8.54827 12.3045 8.39111 12.3685 8.20493 12.3685C8.01875 12.3685 7.86159 12.3045 7.73345 12.1765C7.60541 12.0483 7.54139 11.8912 7.54139 11.705V11.2019H6.45843V11.705C6.45843 11.8912 6.39441 12.0483 6.26637 12.1765C6.13823 12.3045 5.98107 12.3685 5.79489 12.3685C5.60871 12.3685 5.45155 12.3045 5.32341 12.1765C5.19537 12.0483 5.13135 11.8912 5.13135 11.705ZM5.8751 6.33643H8.20493C8.50953 6.33643 8.76965 6.22861 8.98529 6.01297C9.20102 5.79724 9.30889 5.53707 9.30889 5.23247C9.30889 4.92797 9.20102 4.66727 8.98529 4.45037C8.76965 4.23356 8.50953 4.12516 8.20493 4.12516H5.8751V6.33643ZM5.8751 9.87478H8.78826C9.09286 9.87478 9.35298 9.76638 9.56862 9.54957C9.78436 9.33267 9.89222 9.07197 9.89222 8.76747C9.89222 8.46287 9.78436 8.20271 9.56862 7.98697C9.35298 7.77133 9.09286 7.66351 8.78826 7.66351H5.8751V9.87478Z",fill:"currentColor"})})]}),G6=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 9 9",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{id:"Icon","fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.97172 5.26825L8.23268 0.525927C8.24606 0.301673 8.05202 0.110397 7.81782 0.116993L3.00677 0.374226C2.66551 0.394014 2.51161 0.796353 2.7525 1.0338L7.30259 5.51889C7.54348 5.75633 7.95165 5.60463 7.97172 5.26825ZM5.56945 5.5915L2.67881 2.74215L1.79555 3.61278L4.6862 6.46213L5.56945 5.5915ZM1.14615 6.44238L0.0353953 5.34749L0.918648 4.47686L3.80929 7.32621L2.92604 8.19685L1.81528 7.10196L0.918648 7.98578C0.731292 8.17046 0.436874 8.17046 0.249518 7.98578C0.0621611 7.8011 0.0621611 7.51089 0.249517 7.32621L1.14615 6.44238Z",fill:"currentColor"})}),W6=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"browse_gallery",children:[r.jsx("mask",{id:"mask0_1360_27257",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:r.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_1360_27257)",children:r.jsx("path",{id:"browse_gallery_2",d:"M11.8 15.8442L12.8442 14.8L9.74998 11.7026V7.25003H8.25003V12.2942L11.8 15.8442ZM18 19.9615V18.3C19.2333 17.7167 20.2083 16.8583 20.925 15.725C21.6417 14.5917 22 13.35 22 12C22 10.65 21.6417 9.40834 20.925 8.27501C20.2083 7.14167 19.2333 6.28334 18 5.70001V4.03851C19.6628 4.67184 20.9952 5.71318 21.9971 7.16253C22.999 8.61188 23.5 10.2244 23.5 12C23.5 13.7756 22.999 15.3881 21.9971 16.8375C20.9952 18.2868 19.6628 19.3282 18 19.9615ZM9.00055 20.5C7.8207 20.5 6.71539 20.2769 5.68463 19.8307C4.65386 19.3846 3.75514 18.7782 2.98848 18.0115C2.22181 17.2449 1.61541 16.3463 1.16927 15.3159C0.723092 14.2855 0.5 13.1804 0.5 12.0006C0.5 10.8207 0.723083 9.7154 1.16925 8.68463C1.6154 7.65386 2.2218 6.75515 2.98845 5.98848C3.75512 5.22183 4.65365 4.61543 5.68405 4.16928C6.71445 3.72311 7.81957 3.50003 8.99942 3.50003C10.1793 3.50003 11.2846 3.72311 12.3154 4.16928C13.3461 4.61543 14.2448 5.22183 15.0115 5.98848C15.7782 6.75515 16.3846 7.65368 16.8307 8.68408C17.2769 9.71448 17.5 10.8196 17.5 11.9995C17.5 13.1793 17.2769 14.2846 16.8307 15.3154C16.3846 16.3461 15.7782 17.2449 15.0115 18.0115C14.2448 18.7782 13.3463 19.3846 12.3159 19.8307C11.2855 20.2769 10.1804 20.5 9.00055 20.5ZM9 19C10.95 19 12.6042 18.3208 13.9625 16.9625C15.3208 15.6042 16 13.95 16 12C16 10.05 15.3208 8.39584 13.9625 7.03751C12.6042 5.67917 10.95 5.00001 9 5.00001C7.05 5.00001 5.39583 5.67917 4.0375 7.03751C2.67917 8.39584 2 10.05 2 12C2 13.95 2.67917 15.6042 4.0375 16.9625C5.39583 18.3208 7.05 19 9 19Z",fill:"currentColor"})})]})}),X6=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_7541_21901",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_7541_21901)",children:r.jsx("path",{d:"M5.21632 8.60415C4.28522 8.60415 3.49344 8.27787 2.84099 7.62531C2.18843 6.97285 1.86215 6.18108 1.86215 5.24998C1.86215 5.08917 1.87396 4.92744 1.89759 4.76479C1.92112 4.60214 1.96054 4.44639 2.01586 4.29754C2.05329 4.20781 2.1038 4.14145 2.16738 4.09848C2.23087 4.05551 2.30262 4.0243 2.38263 4.00485C2.46274 3.98541 2.54334 3.98687 2.62442 4.00923C2.7056 4.03169 2.77944 4.07622 2.84594 4.14281L4.39965 5.68529L5.65163 4.43331L4.11469 2.89083C4.04819 2.82424 4.00371 2.74947 3.98126 2.66654C3.9588 2.58351 3.95729 2.50199 3.97674 2.42198C3.99618 2.34197 4.02836 2.27017 4.07328 2.20658C4.1181 2.143 4.18353 2.09249 4.26957 2.05506C4.41842 1.99605 4.57324 1.95473 4.73405 1.9311C4.89476 1.90758 5.05551 1.89581 5.21632 1.89581C6.14742 1.89581 6.93924 2.22209 7.5918 2.87465C8.24426 3.5271 8.57049 4.31888 8.57049 5.24998C8.57049 5.49605 8.5473 5.72525 8.50092 5.93758C8.45455 6.15001 8.38498 6.35535 8.29223 6.55358L11.4625 9.70577C11.707 9.95029 11.8293 10.2487 11.8293 10.6009C11.8293 10.9531 11.707 11.2516 11.4625 11.4962C11.218 11.7407 10.9196 11.8629 10.5674 11.8629C10.2151 11.8629 9.91672 11.7377 9.67211 11.4871L6.51992 8.3259C6.3142 8.41495 6.10517 8.48359 5.89284 8.53181C5.68041 8.58004 5.4549 8.60415 5.21632 8.60415Z",fill:"currentColor"})})]}),Y6=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M2.1875 11.4688C2.1875 12.0381 2.64941 12.5 3.21875 12.5H10.7812C11.3506 12.5 11.8125 12.0381 11.8125 11.4688V5.625H2.1875V11.4688ZM9.0625 7.25781C9.0625 7.11602 9.17852 7 9.32031 7H10.1797C10.3215 7 10.4375 7.11602 10.4375 7.25781V8.11719C10.4375 8.25898 10.3215 8.375 10.1797 8.375H9.32031C9.17852 8.375 9.0625 8.25898 9.0625 8.11719V7.25781ZM9.0625 10.0078C9.0625 9.86602 9.17852 9.75 9.32031 9.75H10.1797C10.3215 9.75 10.4375 9.86602 10.4375 10.0078V10.8672C10.4375 11.009 10.3215 11.125 10.1797 11.125H9.32031C9.17852 11.125 9.0625 11.009 9.0625 10.8672V10.0078ZM6.3125 7.25781C6.3125 7.11602 6.42852 7 6.57031 7H7.42969C7.57148 7 7.6875 7.11602 7.6875 7.25781V8.11719C7.6875 8.25898 7.57148 8.375 7.42969 8.375H6.57031C6.42852 8.375 6.3125 8.25898 6.3125 8.11719V7.25781ZM6.3125 10.0078C6.3125 9.86602 6.42852 9.75 6.57031 9.75H7.42969C7.57148 9.75 7.6875 9.86602 7.6875 10.0078V10.8672C7.6875 11.009 7.57148 11.125 7.42969 11.125H6.57031C6.42852 11.125 6.3125 11.009 6.3125 10.8672V10.0078ZM3.5625 7.25781C3.5625 7.11602 3.67852 7 3.82031 7H4.67969C4.82148 7 4.9375 7.11602 4.9375 7.25781V8.11719C4.9375 8.25898 4.82148 8.375 4.67969 8.375H3.82031C3.67852 8.375 3.5625 8.25898 3.5625 8.11719V7.25781ZM3.5625 10.0078C3.5625 9.86602 3.67852 9.75 3.82031 9.75H4.67969C4.82148 9.75 4.9375 9.86602 4.9375 10.0078V10.8672C4.9375 11.009 4.82148 11.125 4.67969 11.125H3.82031C3.67852 11.125 3.5625 11.009 3.5625 10.8672V10.0078ZM10.7812 2.875H9.75V1.84375C9.75 1.65469 9.59531 1.5 9.40625 1.5H8.71875C8.52969 1.5 8.375 1.65469 8.375 1.84375V2.875H5.625V1.84375C5.625 1.65469 5.47031 1.5 5.28125 1.5H4.59375C4.40469 1.5 4.25 1.65469 4.25 1.84375V2.875H3.21875C2.64941 2.875 2.1875 3.33691 2.1875 3.90625V4.9375H11.8125V3.90625C11.8125 3.33691 11.3506 2.875 10.7812 2.875Z",fill:"currentColor"})}),K6=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 32 32",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"cancel",children:[r.jsx("mask",{id:"mask0_1264_3381",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"32",height:"32",children:r.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_1264_3381)",children:r.jsx("path",{id:"cancel_2",d:"M16 17.4051L20.0975 21.5025C20.2821 21.6872 20.5141 21.7816 20.7936 21.7859C21.0731 21.7902 21.3094 21.6957 21.5025 21.5025C21.6957 21.3094 21.7923 21.0752 21.7923 20.8C21.7923 20.5248 21.6957 20.2906 21.5025 20.0975L17.4051 16L21.5025 11.9025C21.6872 11.7179 21.7816 11.4859 21.7859 11.2064C21.7902 10.9269 21.6957 10.6906 21.5025 10.4975C21.3094 10.3043 21.0752 10.2077 20.8 10.2077C20.5248 10.2077 20.2906 10.3043 20.0975 10.4975L16 14.5949L11.9025 10.4975C11.7179 10.3129 11.4859 10.2184 11.2064 10.2141C10.9269 10.2099 10.6906 10.3043 10.4975 10.4975C10.3043 10.6906 10.2077 10.9248 10.2077 11.2C10.2077 11.4752 10.3043 11.7094 10.4975 11.9025L14.5949 16L10.4975 20.0975C10.3129 20.2821 10.2184 20.5141 10.2141 20.7936C10.2099 21.0731 10.3043 21.3094 10.4975 21.5025C10.6906 21.6957 10.9248 21.7923 11.2 21.7923C11.4752 21.7923 11.7094 21.6957 11.9025 21.5025L16 17.4051ZM16.0022 28.6666C14.2503 28.6666 12.6036 28.3342 11.0621 27.6693C9.52057 27.0044 8.17966 26.1021 7.03937 24.9623C5.89906 23.8225 4.99632 22.4822 4.33114 20.9413C3.66596 19.4005 3.33337 17.7542 3.33337 16.0022C3.33337 14.2503 3.66582 12.6036 4.33071 11.0621C4.9956 9.52057 5.89793 8.17967 7.03771 7.03938C8.17751 5.89907 9.51783 4.99632 11.0587 4.33114C12.5995 3.66596 14.2459 3.33337 15.9978 3.33337C17.7497 3.33337 19.3964 3.66582 20.9379 4.33071C22.4794 4.9956 23.8204 5.89793 24.9606 7.03771C26.101 8.17751 27.0037 9.51783 27.6689 11.0587C28.3341 12.5995 28.6666 14.2459 28.6666 15.9978C28.6666 17.7497 28.3342 19.3964 27.6693 20.9379C27.0044 22.4794 26.1021 23.8204 24.9623 24.9606C23.8225 26.101 22.4822 27.0037 20.9413 27.6689C19.4005 28.3341 17.7542 28.6666 16.0022 28.6666Z",fill:"currentColor"})})]})}),Q6=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 10 7",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M3.08467 5.34482L8.02842 0.401074C8.14508 0.284408 8.28363 0.226074 8.44404 0.226074C8.60446 0.226074 8.743 0.284408 8.85967 0.401074C8.97633 0.517741 9.03467 0.656283 9.03467 0.816699C9.03467 0.977116 8.97633 1.11566 8.85967 1.23232L3.493 6.59899C3.37633 6.71566 3.24022 6.77399 3.08467 6.77399C2.92911 6.77399 2.793 6.71566 2.67633 6.59899L0.168 4.09066C0.0513333 3.97399 -0.00456944 3.83545 0.000291667 3.67503C0.00515278 3.51462 0.0659167 3.37607 0.182583 3.25941C0.29925 3.14274 0.437792 3.08441 0.598208 3.08441C0.758625 3.08441 0.897167 3.14274 1.01383 3.25941L3.08467 5.34482Z",fill:"currentColor"})}),J6=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 11 8",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M10.6649 1.81615L4.76839 7.381C4.56014 7.57431 4.29239 7.67389 4.02463 7.67389C3.75688 7.67389 3.48913 7.57431 3.28088 7.381L0.329676 4.59858C-0.0987253 4.19439 -0.110625 3.52661 0.299926 3.10485C0.710477 2.6831 1.38878 2.67138 1.81718 3.07556L4.02463 5.16092L9.17735 0.293138C9.60575 -0.111046 10.2841 -0.0934726 10.6946 0.322427C11.1052 0.744184 11.0933 1.41197 10.6649 1.81615Z",fill:"currentColor"})}),e9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 10 6",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M5.00031 5.21584C4.89989 5.21584 4.80642 5.1998 4.71989 5.16772C4.63337 5.13577 4.55107 5.08077 4.47302 5.00272L0.72781 1.25751C0.612533 1.14209 0.551421 0.999177 0.544477 0.82876C0.537532 0.658482 0.598644 0.508691 0.72781 0.379385C0.848644 0.258691 0.995032 0.198343 1.16698 0.198343C1.33892 0.198343 1.48531 0.258691 1.60614 0.379385L5.00031 3.76084L8.39448 0.379385C8.50989 0.263968 8.65281 0.202788 8.82323 0.195843C8.99364 0.188899 9.14351 0.250079 9.27281 0.379385C9.39351 0.50008 9.45385 0.646399 9.45385 0.818344C9.45385 0.990427 9.39351 1.13682 9.27281 1.25751L5.5276 5.00272C5.44955 5.08077 5.36725 5.13577 5.28073 5.16772C5.1942 5.1998 5.10073 5.21584 5.00031 5.21584Z",fill:"currentColor"})}),t9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 18 18",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"keyboard_arrow_left",children:[r.jsx("mask",{id:"mask0_1428_267",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"18",height:"18",children:r.jsx("path",{id:"Bounding box",d:"M0 0H18V18H0V0Z",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_1428_267)",children:r.jsx("path",{id:"keyboard_arrow_left_2",d:"M8.10001 8.99998L11.025 11.925C11.1625 12.0625 11.2313 12.2375 11.2313 12.45C11.2313 12.6625 11.1625 12.8375 11.025 12.975C10.8875 13.1125 10.7125 13.1812 10.5 13.1812C10.2875 13.1812 10.1125 13.1125 9.97501 12.975L6.52501 9.52498C6.45001 9.44998 6.39688 9.36873 6.36563 9.28123C6.33438 9.19373 6.31876 9.09998 6.31876 8.99998C6.31876 8.89998 6.33438 8.80623 6.36563 8.71873C6.39688 8.63123 6.45001 8.54998 6.52501 8.47498L9.97501 5.02498C10.1125 4.88748 10.2875 4.81873 10.5 4.81873C10.7125 4.81873 10.8875 4.88748 11.025 5.02498C11.1625 5.16248 11.2313 5.33748 11.2313 5.54998C11.2313 5.76248 11.1625 5.93748 11.025 6.07498L8.10001 8.99998Z",fill:"currentColor"})})]})}),n9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 18 18",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"chevron_right",children:[r.jsx("mask",{id:"mask0_1247_21809",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"18",height:"18",children:r.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_1247_21809)",children:r.jsx("path",{id:"chevron_right_2",d:"M9.44998 8.99998L6.52498 6.07498C6.38748 5.93748 6.31873 5.76248 6.31873 5.54998C6.31873 5.33748 6.38748 5.16248 6.52498 5.02498C6.66248 4.88748 6.83748 4.81873 7.04998 4.81873C7.26248 4.81873 7.43748 4.88748 7.57498 5.02498L11.025 8.47498C11.1 8.54997 11.1531 8.63123 11.1844 8.71873C11.2156 8.80623 11.2312 8.89998 11.2312 8.99998C11.2312 9.09998 11.2156 9.19373 11.1844 9.28123C11.1531 9.36873 11.1 9.44998 11.025 9.52497L7.57498 12.975C7.43748 13.1125 7.26248 13.1812 7.04998 13.1812C6.83748 13.1812 6.66248 13.1125 6.52498 12.975C6.38748 12.8375 6.31873 12.6625 6.31873 12.45C6.31873 12.2375 6.38748 12.0625 6.52498 11.925L9.44998 8.99998Z",fill:"currentColor"})})]})}),r9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 10 6",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M4.99993 1.71281L1.60576 5.10719C1.49034 5.22247 1.34528 5.28149 1.17055 5.28427C0.99597 5.28691 0.848262 5.22788 0.727428 5.10719C0.606734 4.98635 0.546387 4.83997 0.546387 4.66802C0.546387 4.49608 0.606734 4.34969 0.727428 4.22885L4.47264 0.483646C4.62333 0.333091 4.7991 0.257812 4.99993 0.257812C5.20076 0.257812 5.37653 0.333091 5.52722 0.483646L9.27243 4.22885C9.38771 4.34427 9.44673 4.48934 9.44951 4.66406C9.45215 4.83865 9.39312 4.98635 9.27243 5.10719C9.1516 5.22788 9.00521 5.28823 8.83326 5.28823C8.66132 5.28823 8.51493 5.22788 8.39409 5.10719L4.99993 1.71281Z",fill:"currentColor"})}),i9=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("path",{d:"M9.16074 4.89288H4.83931C4.73083 4.89288 4.64288 4.98083 4.64288 5.08931V9.41074C4.64288 9.51923 4.73083 9.60717 4.83931 9.60717H9.16074C9.26923 9.60717 9.35717 9.51923 9.35717 9.41074V5.08931C9.35717 4.98083 9.26923 4.89288 9.16074 4.89288Z",fill:"currentColor"}),r.jsx("path",{d:"M12.1071 5.67857C12.2113 5.67857 12.3113 5.63718 12.3849 5.56351C12.4586 5.48983 12.5 5.38991 12.5 5.28571C12.5 5.18152 12.4586 5.0816 12.3849 5.00792C12.3113 4.93425 12.2113 4.89286 12.1071 4.89286H11.7143V4.10714C11.7138 3.69051 11.5481 3.29108 11.2535 2.99648C10.9589 2.70188 10.5595 2.53617 10.1429 2.53571H9.35714V2.14286C9.35714 2.03866 9.31575 1.93874 9.24208 1.86507C9.1684 1.79139 9.06848 1.75 8.96429 1.75C8.86009 1.75 8.76017 1.79139 8.68649 1.86507C8.61282 1.93874 8.57143 2.03866 8.57143 2.14286V2.53571H7.39286V2.14286C7.39286 2.03866 7.35147 1.93874 7.27779 1.86507C7.20412 1.79139 7.10419 1.75 7 1.75C6.89581 1.75 6.79588 1.79139 6.72221 1.86507C6.64853 1.93874 6.60714 2.03866 6.60714 2.14286V2.53571H5.42857V2.14286C5.42857 2.03866 5.38718 1.93874 5.31351 1.86507C5.23983 1.79139 5.13991 1.75 5.03571 1.75C4.93152 1.75 4.8316 1.79139 4.75792 1.86507C4.68425 1.93874 4.64286 2.03866 4.64286 2.14286V2.53571H3.85714C3.44051 2.53617 3.04108 2.70188 2.74648 2.99648C2.45188 3.29108 2.28617 3.69051 2.28571 4.10714V4.89286H1.89286C1.78866 4.89286 1.68874 4.93425 1.61507 5.00792C1.54139 5.0816 1.5 5.18152 1.5 5.28571C1.5 5.38991 1.54139 5.48983 1.61507 5.56351C1.68874 5.63718 1.78866 5.67857 1.89286 5.67857H2.28571V6.85714H1.89286C1.78866 6.85714 1.68874 6.89853 1.61507 6.97221C1.54139 7.04588 1.5 7.14581 1.5 7.25C1.5 7.35419 1.54139 7.45412 1.61507 7.52779C1.68874 7.60147 1.78866 7.64286 1.89286 7.64286H2.28571V8.82143H1.89286C1.78866 8.82143 1.68874 8.86282 1.61507 8.93649C1.54139 9.01017 1.5 9.11009 1.5 9.21429C1.5 9.31848 1.54139 9.4184 1.61507 9.49208C1.68874 9.56575 1.78866 9.60714 1.89286 9.60714H2.28571V10.3929C2.28617 10.8095 2.45188 11.2089 2.74648 11.5035C3.04108 11.7981 3.44051 11.9638 3.85714 11.9643H4.64286V12.3571C4.64286 12.4613 4.68425 12.5613 4.75792 12.6349C4.8316 12.7086 4.93152 12.75 5.03571 12.75C5.13991 12.75 5.23983 12.7086 5.31351 12.6349C5.38718 12.5613 5.42857 12.4613 5.42857 12.3571V11.9643H6.60714V12.3571C6.60714 12.4613 6.64853 12.5613 6.72221 12.6349C6.79588 12.7086 6.89581 12.75 7 12.75C7.10419 12.75 7.20412 12.7086 7.27779 12.6349C7.35147 12.5613 7.39286 12.4613 7.39286 12.3571V11.9643H8.57143V12.3571C8.57143 12.4613 8.61282 12.5613 8.68649 12.6349C8.76017 12.7086 8.86009 12.75 8.96429 12.75C9.06848 12.75 9.1684 12.7086 9.24208 12.6349C9.31575 12.5613 9.35714 12.4613 9.35714 12.3571V11.9643H10.1429C10.5595 11.9638 10.9589 11.7981 11.2535 11.5035C11.5481 11.2089 11.7138 10.8095 11.7143 10.3929V9.60714H12.1071C12.2113 9.60714 12.3113 9.56575 12.3849 9.49208C12.4586 9.4184 12.5 9.31848 12.5 9.21429C12.5 9.11009 12.4586 9.01017 12.3849 8.93649C12.3113 8.86282 12.2113 8.82143 12.1071 8.82143H11.7143V7.64286H12.1071C12.2113 7.64286 12.3113 7.60147 12.3849 7.52779C12.4586 7.45412 12.5 7.35419 12.5 7.25C12.5 7.14581 12.4586 7.04588 12.3849 6.97221C12.3113 6.89853 12.2113 6.85714 12.1071 6.85714H11.7143V5.67857H12.1071ZM10.1429 9.60714C10.1429 9.81553 10.0601 10.0154 9.91273 10.1627C9.76538 10.3101 9.56553 10.3929 9.35714 10.3929H4.64286C4.43447 10.3929 4.23462 10.3101 4.08727 10.1627C3.93992 10.0154 3.85714 9.81553 3.85714 9.60714V4.89286C3.85714 4.68447 3.93992 4.48462 4.08727 4.33727C4.23462 4.18992 4.43447 4.10714 4.64286 4.10714H9.35714C9.56553 4.10714 9.76538 4.18992 9.91273 4.33727C10.0601 4.48462 10.1429 4.68447 10.1429 4.89286V9.60714Z",fill:"currentColor"})]}),s9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 32 32",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"cancel",children:[r.jsx("mask",{id:"mask0_1264_3381",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"32",height:"32",children:r.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_1264_3381)",children:r.jsx("path",{id:"cancel_2",d:"M16 17.4051L20.0975 21.5025C20.2821 21.6872 20.5141 21.7816 20.7936 21.7859C21.0731 21.7902 21.3094 21.6957 21.5025 21.5025C21.6957 21.3094 21.7923 21.0752 21.7923 20.8C21.7923 20.5248 21.6957 20.2906 21.5025 20.0975L17.4051 16L21.5025 11.9025C21.6872 11.7179 21.7816 11.4859 21.7859 11.2064C21.7902 10.9269 21.6957 10.6906 21.5025 10.4975C21.3094 10.3043 21.0752 10.2077 20.8 10.2077C20.5248 10.2077 20.2906 10.3043 20.0975 10.4975L16 14.5949L11.9025 10.4975C11.7179 10.3129 11.4859 10.2184 11.2064 10.2141C10.9269 10.2099 10.6906 10.3043 10.4975 10.4975C10.3043 10.6906 10.2077 10.9248 10.2077 11.2C10.2077 11.4752 10.3043 11.7094 10.4975 11.9025L14.5949 16L10.4975 20.0975C10.3129 20.2821 10.2184 20.5141 10.2141 20.7936C10.2099 21.0731 10.3043 21.3094 10.4975 21.5025C10.6906 21.6957 10.9248 21.7923 11.2 21.7923C11.4752 21.7923 11.7094 21.6957 11.9025 21.5025L16 17.4051ZM16.0022 28.6666C14.2503 28.6666 12.6036 28.3342 11.0621 27.6693C9.52057 27.0044 8.17966 26.1021 7.03937 24.9623C5.89906 23.8225 4.99632 22.4822 4.33114 20.9413C3.66596 19.4005 3.33337 17.7542 3.33337 16.0022C3.33337 14.2503 3.66582 12.6036 4.33071 11.0621C4.9956 9.52057 5.89793 8.17967 7.03771 7.03938C8.17751 5.89907 9.51783 4.99632 11.0587 4.33114C12.5995 3.66596 14.2459 3.33337 15.9978 3.33337C17.7497 3.33337 19.3964 3.66582 20.9379 4.33071C22.4794 4.9956 23.8204 5.89793 24.9606 7.03771C26.101 8.17751 27.0037 9.51783 27.6689 11.0587C28.3341 12.5995 28.6666 14.2459 28.6666 15.9978C28.6666 17.7497 28.3342 19.3964 27.6693 20.9379C27.0044 22.4794 26.1021 23.8204 24.9623 24.9606C23.8225 26.101 22.4822 27.0037 20.9413 27.6689C19.4005 28.3341 17.7542 28.6666 16.0022 28.6666Z",fill:"currentColor"})})]})}),o9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 8 8",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M5.5884 4.12155L3.88306 2.41429C3.8396 2.37079 3.80894 2.32471 3.79108 2.27605C3.77323 2.22738 3.7643 2.17524 3.7643 2.11963C3.7643 2.06401 3.77323 2.01206 3.79108 1.96379C3.80894 1.91553 3.8396 1.86964 3.88306 1.82614L5.5884 0.118886C5.63185 0.0753881 5.67788 0.0446995 5.72649 0.0268199C5.7751 0.00894031 5.82719 0 5.88275 0C5.9383 0 5.99019 0.00894031 6.0384 0.0268199C6.08662 0.0446995 6.13245 0.0753881 6.1759 0.118886L7.88125 1.82614C7.9247 1.86964 7.95536 1.91573 7.97321 1.96439C7.99107 2.01306 8 2.0652 8 2.12081C8 2.17643 7.99107 2.22838 7.97321 2.27664C7.95536 2.32491 7.9247 2.37079 7.88125 2.41429L6.1759 4.12155C6.13245 4.16505 6.08642 4.19574 6.03781 4.21362C5.9892 4.23149 5.93711 4.24043 5.88155 4.24043C5.826 4.24043 5.77412 4.23149 5.7259 4.21362C5.67768 4.19574 5.63185 4.16505 5.5884 4.12155ZM0 3.21787V0.804477C0 0.68544 0.0402151 0.585661 0.120645 0.505141C0.201076 0.424621 0.300743 0.384361 0.419648 0.384361H2.83035C2.94925 0.384361 3.04891 0.424621 3.12934 0.505141C3.20977 0.585661 3.24999 0.68544 3.24999 0.804477V3.21787C3.24999 3.3369 3.20977 3.43668 3.12934 3.5172C3.04891 3.59772 2.94925 3.63798 2.83035 3.63798H0.419648C0.300743 3.63798 0.201076 3.59772 0.120645 3.5172C0.0402151 3.43668 0 3.3369 0 3.21787ZM4.35715 7.57988V5.16649C4.35715 5.04746 4.39737 4.94768 4.4778 4.86716C4.55823 4.78664 4.65789 4.74638 4.77679 4.74638H7.18749C7.3064 4.74638 7.40607 4.78664 7.4865 4.86716C7.56693 4.94768 7.60714 5.04746 7.60714 5.16649V7.57988C7.60714 7.69892 7.56693 7.7987 7.4865 7.87922C7.40607 7.95974 7.3064 8 7.18749 8H4.77679C4.65789 8 4.55823 7.95974 4.4778 7.87922C4.39737 7.7987 4.35715 7.69892 4.35715 7.57988ZM0 7.57988V5.16649C0 5.04746 0.0402151 4.94768 0.120645 4.86716C0.201076 4.78664 0.300743 4.74638 0.419648 4.74638H2.83035C2.94925 4.74638 3.04891 4.78664 3.12934 4.86716C3.20977 4.94768 3.24999 5.04746 3.24999 5.16649V7.57988C3.24999 7.69892 3.20977 7.7987 3.12934 7.87922C3.04891 7.95974 2.94925 8 2.83035 8H0.419648C0.300743 8 0.201076 7.95974 0.120645 7.87922C0.0402151 7.7987 0 7.69892 0 7.57988Z",fill:"currentColor"})}),l9=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_7640_4256",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_7640_4256)",children:r.jsx("path",{d:"M3.98234 10.0176L8.00952 8.00958L10.0175 3.9824L5.99031 5.99038L3.98234 10.0176ZM6.99992 7.58331C6.83464 7.58331 6.6961 7.52741 6.58429 7.4156C6.47249 7.3038 6.41658 7.16526 6.41658 6.99998C6.41658 6.8347 6.47249 6.69616 6.58429 6.58435C6.6961 6.47255 6.83464 6.41665 6.99992 6.41665C7.1652 6.41665 7.30374 6.47255 7.41554 6.58435C7.52735 6.69616 7.58325 6.8347 7.58325 6.99998C7.58325 7.16526 7.52735 7.3038 7.41554 7.4156C7.30374 7.52741 7.1652 7.58331 6.99992 7.58331ZM7.00094 12.5416C6.23444 12.5416 5.51397 12.3962 4.83954 12.1053C4.16511 11.8144 3.57847 11.4197 3.07963 10.921C2.58078 10.4223 2.18581 9.83595 1.89473 9.16181C1.60374 8.48767 1.45825 7.7674 1.45825 7.001C1.45825 6.2345 1.6037 5.51403 1.89459 4.8396C2.18547 4.16517 2.58025 3.57854 3.0789 3.07969C3.57755 2.58084 4.16395 2.18588 4.83809 1.89479C5.51222 1.60381 6.23249 1.45831 6.9989 1.45831C7.7654 1.45831 8.48586 1.60376 9.16029 1.89465C9.83472 2.18553 10.4214 2.58031 10.9202 3.07896C11.4191 3.57761 11.814 4.16401 12.1051 4.83815C12.3961 5.51229 12.5416 6.23256 12.5416 6.99896C12.5416 7.76546 12.3961 8.48592 12.1053 9.16035C11.8144 9.83479 11.4196 10.4214 10.9209 10.9203C10.4223 11.4191 9.83589 11.8141 9.16175 12.1052C8.48761 12.3962 7.76734 12.5416 7.00094 12.5416Z",fill:"currentColor"})})]}),C9=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_7541_22054",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_7541_22054)",children:r.jsx("path",{d:"M10.5808 11.4972L7.8257 8.74213L8.74765 7.82003L11.5029 10.5751C11.627 10.6993 11.6891 10.853 11.6891 11.0362C11.6891 11.2194 11.627 11.3731 11.5029 11.4972C11.3787 11.6214 11.225 11.6834 11.0418 11.6834C10.8586 11.6834 10.7049 11.6214 10.5808 11.4972ZM2.50278 11.4972C2.37863 11.3731 2.31655 11.2194 2.31655 11.0362C2.31655 10.853 2.37863 10.6993 2.50278 10.5751L6.08357 6.99446L4.72163 5.63807C4.62587 5.73383 4.50473 5.78171 4.35822 5.78171C4.21161 5.78171 4.09042 5.73383 3.99465 5.63807L3.70984 5.34757V6.56469C3.70984 6.68583 3.65617 6.76794 3.54884 6.811C3.44151 6.85398 3.34482 6.83244 3.25878 6.7464L1.78703 5.27465C1.70099 5.18861 1.6795 5.09197 1.72257 4.98473C1.76554 4.8774 1.8476 4.82373 1.96874 4.82373H3.18586L2.91549 4.55336C2.8101 4.44787 2.7574 4.32391 2.7574 4.18148C2.7574 4.03905 2.8101 3.91509 2.91549 3.80961L4.20786 2.51738C4.37236 2.35278 4.55052 2.23237 4.74234 2.15615C4.93416 2.07983 5.13366 2.04167 5.34084 2.04167C5.50534 2.04167 5.66051 2.06525 5.80634 2.1124C5.95217 2.15946 6.09465 2.23388 6.23378 2.33567C6.30028 2.38049 6.33693 2.44198 6.34374 2.52015C6.35045 2.59832 6.32351 2.66769 6.26295 2.72826L5.3229 3.6683L5.64374 3.98913C5.7394 4.0848 5.78724 4.20594 5.78724 4.35255C5.78724 4.49916 5.7394 4.6203 5.64374 4.71596L7.00553 6.07236L8.40786 4.67003C8.34282 4.5519 8.29533 4.42984 8.26538 4.30384C8.23544 4.17774 8.22047 4.04518 8.22047 3.90615C8.22047 3.38115 8.40145 2.93767 8.7634 2.57571C9.12536 2.21375 9.56884 2.03278 10.0938 2.03278C10.1604 2.03278 10.2212 2.03423 10.2761 2.03715C10.3312 2.04016 10.389 2.04955 10.4495 2.0653C10.5221 2.09067 10.5696 2.14205 10.592 2.21944C10.6144 2.29693 10.5972 2.36406 10.5404 2.42084L9.64847 3.31261C9.59392 3.36725 9.56665 3.42971 9.56665 3.5C9.56665 3.5703 9.59392 3.63276 9.64847 3.6874L10.3126 4.35153C10.3672 4.40607 10.4297 4.43334 10.5 4.43334C10.5703 4.43334 10.6327 4.40607 10.6874 4.35153L11.5792 3.45961C11.6359 3.40283 11.7031 3.38416 11.7806 3.40361C11.8579 3.42305 11.9093 3.47201 11.9347 3.55046C11.9504 3.61103 11.9598 3.66883 11.9628 3.72386C11.9658 3.77879 11.9672 3.83955 11.9672 3.90615C11.9672 4.43115 11.7862 4.87463 11.4243 5.23659C11.0623 5.59855 10.6188 5.77953 10.0938 5.77953C9.95481 5.77953 9.82225 5.76606 9.69615 5.73913C9.57015 5.7122 9.44809 5.6632 9.32997 5.59213L3.42488 11.4972C3.30073 11.6214 3.14702 11.6834 2.96376 11.6834C2.78059 11.6834 2.62693 11.6214 2.50278 11.4972Z",fill:"currentColor"})})]}),a9=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 56 56",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("path",{d:"M4.75129 14.5773L28 1.1547L51.2487 14.5773V41.4226L28 54.8453L4.75129 41.4226V14.5773Z",stroke:"#47505E","stroke-width":"2"}),r.jsx("path",{d:"M51.5956 14.4722L28.0001 28.0003M28.0001 28.0003L4.40457 14.4722M28.0001 28.0003L28.0001 55.3711",stroke:"#47505E","stroke-width":"2"})]}),c9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"content_copy",children:[r.jsx("mask",{id:"mask0_1489_75628",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:r.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_1489_75628)",children:r.jsx("path",{id:"content_copy_2",d:"M5.28363 10.2083C4.98897 10.2083 4.73956 10.1063 4.5354 9.9021C4.33124 9.69793 4.22915 9.44852 4.22915 9.15385V2.51287C4.22915 2.21821 4.33124 1.96879 4.5354 1.76462C4.73956 1.56046 4.98897 1.45837 5.28363 1.45837H10.1746C10.4693 1.45837 10.7187 1.56046 10.9229 1.76462C11.127 1.96879 11.2291 2.21821 11.2291 2.51287V9.15385C11.2291 9.44852 11.127 9.69793 10.9229 9.9021C10.7187 10.1063 10.4693 10.2083 10.1746 10.2083H5.28363ZM5.28363 9.33336H10.1746C10.2195 9.33336 10.2606 9.31466 10.298 9.27727C10.3354 9.23987 10.3541 9.19873 10.3541 9.15385V2.51287C10.3541 2.46799 10.3354 2.42685 10.298 2.38945C10.2606 2.35206 10.2195 2.33336 10.1746 2.33336H5.28363C5.23875 2.33336 5.19762 2.35206 5.16023 2.38945C5.12282 2.42685 5.10412 2.46799 5.10412 2.51287V9.15385C5.10412 9.19873 5.12282 9.23987 5.16023 9.27727C5.19762 9.31466 5.23875 9.33336 5.28363 9.33336ZM3.24198 12.25C2.94733 12.25 2.69792 12.1479 2.49375 11.9437C2.28958 11.7396 2.1875 11.4902 2.1875 11.1955V3.67953H3.06249V11.1955C3.06249 11.2404 3.08118 11.2815 3.11857 11.3189C3.15597 11.3563 3.19711 11.375 3.24198 11.375H9.00796V12.25H3.24198Z",fill:"currentColor"})})]})}),h9=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_9540_27",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_9540_27)",children:r.jsx("path",{d:"M2.51277 11.9583C2.21809 11.9583 1.96867 11.8562 1.7645 11.6521C1.56034 11.4479 1.45825 11.1985 1.45825 10.9038V4.84619C1.45825 4.55151 1.56034 4.30208 1.7645 4.09792C1.96867 3.89375 2.21809 3.79167 2.51277 3.79167H4.95825V2.80452C4.95825 2.50984 5.06034 2.26042 5.2645 2.05625C5.46867 1.85208 5.71809 1.75 6.01277 1.75H7.98706C8.28174 1.75 8.53117 1.85208 8.73534 2.05625C8.9395 2.26042 9.04159 2.50984 9.04159 2.80452V3.79167H11.4871C11.7817 3.79167 12.0312 3.89375 12.2353 4.09792C12.4395 4.30208 12.5416 4.55151 12.5416 4.84619V10.9038C12.5416 11.1985 12.4395 11.4479 12.2353 11.6521C12.0312 11.8562 11.7817 11.9583 11.4871 11.9583H2.51277ZM5.83325 3.79167H8.16659V2.80452C8.16659 2.7596 8.14787 2.71848 8.11044 2.68115C8.07311 2.64371 8.03198 2.625 7.98706 2.625H6.01277C5.96786 2.625 5.92673 2.64371 5.8894 2.68115C5.85197 2.71848 5.83325 2.7596 5.83325 2.80452V3.79167Z",fill:"currentColor"})})]}),u9=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 23 22",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_8954_27793",maskUnits:"userSpaceOnUse",x:"10",y:"-3",width:"16",height:"16",children:r.jsx("rect",{x:"10",y:"-3",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_8954_27793)",children:r.jsx("path",{d:"M17.5 5.50005H14.1666C14.025 5.50005 13.9062 5.45212 13.8104 5.35625C13.7145 5.26037 13.6666 5.14157 13.6666 4.99985C13.6666 4.85812 13.7145 4.73939 13.8104 4.64367C13.9062 4.54794 14.025 4.50008 14.1666 4.50008H17.5V1.16675C17.5 1.02508 17.5479 0.906331 17.6438 0.810498C17.7396 0.714665 17.8584 0.666748 18.0002 0.666748C18.1419 0.666748 18.2606 0.714665 18.3563 0.810498C18.4521 0.906331 18.4999 1.02508 18.4999 1.16675V4.50008H21.8333C21.9749 4.50008 22.0937 4.54802 22.1895 4.64388C22.2853 4.73976 22.3333 4.85856 22.3333 5.00028C22.3333 5.14202 22.2853 5.26074 22.1895 5.35647C22.0937 5.45219 21.9749 5.50005 21.8333 5.50005H18.4999V8.83338C18.4999 8.97505 18.452 9.0938 18.3561 9.18963C18.2602 9.28547 18.1414 9.33338 17.9997 9.33338C17.858 9.33338 17.7393 9.28547 17.6435 9.18963C17.5478 9.0938 17.5 8.97505 17.5 8.83338V5.50005Z",fill:"currentColor"})}),r.jsx("path",{d:"M1.33333 6C1.33333 7.47276 2.52724 8.66667 4 8.66667C5.47276 8.66667 6.66667 7.47276 6.66667 6C6.66667 4.52724 5.47276 3.33333 4 3.33333C2.52724 3.33333 1.33333 4.52724 1.33333 6ZM14.3333 19C14.3333 20.4728 15.5272 21.6667 17 21.6667C18.4728 21.6667 19.6667 20.4728 19.6667 19C19.6667 17.5272 18.4728 16.3333 17 16.3333C15.5272 16.3333 14.3333 17.5272 14.3333 19ZM3.64645 6.35355L16.6464 19.3536L17.3536 18.6464L4.35355 5.64645L3.64645 6.35355Z",fill:"currentColor"})]}),d9=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 34 34",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_2777_4506",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"34",height:"34",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsxs("g",{mask:"url(#mask0_2777_4506)",children:[r.jsx("mask",{id:"mask1_2777_4506",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"34",height:"34",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask1_2777_4506)",children:r.jsx("path",{d:"M8.25212 29.988L10.5542 20.0359L2.83337 13.3421L13.0334 12.4567L17 3.07129L20.9667 12.4567L31.1667 13.3421L23.4459 20.0359L25.748 29.988L17 24.7109L8.25212 29.988Z",fill:"currentColor"})})]})]}),f9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"delete",children:[r.jsx("mask",{id:"mask0_2401_3378",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:r.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{children:r.jsx("path",{id:"delete_2",d:"M6.08975 17.0834C5.67415 17.0834 5.31919 16.9362 5.02485 16.6419C4.73051 16.3475 4.58333 15.9926 4.58333 15.577V5.00009H4.375C4.19765 5.00009 4.04915 4.94026 3.9295 4.82061C3.80983 4.70095 3.75 4.55245 3.75 4.37511C3.75 4.19776 3.80983 4.04926 3.9295 3.92961C4.04915 3.80994 4.19765 3.75011 4.375 3.75011H7.49998C7.49998 3.54605 7.57183 3.37218 7.71552 3.22848C7.85922 3.08479 8.03309 3.01294 8.23715 3.01294H11.7628C11.9669 3.01294 12.1407 3.08479 12.2844 3.22848C12.4281 3.37218 12.5 3.54605 12.5 3.75011H15.625C15.8023 3.75011 15.9508 3.80994 16.0705 3.92961C16.1901 4.04926 16.25 4.19776 16.25 4.37511C16.25 4.55245 16.1901 4.70095 16.0705 4.82061C15.9508 4.94026 15.8023 5.00009 15.625 5.00009H15.4166V15.577C15.4166 15.9926 15.2695 16.3475 14.9751 16.6419C14.6808 16.9362 14.3258 17.0834 13.9102 17.0834H6.08975ZM14.1666 5.00009H5.83331V15.577C5.83331 15.6518 5.85735 15.7132 5.90544 15.7613C5.95352 15.8094 6.01496 15.8334 6.08975 15.8334H13.9102C13.985 15.8334 14.0464 15.8094 14.0945 15.7613C14.1426 15.7132 14.1666 15.6518 14.1666 15.577V5.00009ZM7.83654 14.1668H9.08652V6.66675H7.83654V14.1668ZM10.9134 14.1668H12.1634V6.66675H10.9134V14.1668Z",fill:"currentColor"})})]})}),p9=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 60 52",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("path",{d:"M12.849 16.2461L31.5592 5.44376L50.2694 16.2461V37.8508L31.5592 48.6531L12.849 37.8508V16.2461Z",stroke:"#6B7A8D",fill:"currentColor","stroke-width":"2"}),r.jsx("path",{d:"M50.7383 16.0509L31.559 27.047M31.559 27.047L12.3798 16.0509M31.559 27.047L31.559 49.2949",stroke:"#6B7A8D","stroke-width":"2"}),r.jsx("path",{d:"M7.44052 9.03136C5.80715 8.08833 3.71857 8.64797 2.77554 10.2813C1.83251 11.9147 2.39215 14.0033 4.02552 14.9463L52.5595 42.9674C54.1929 43.9104 56.2814 43.3508 57.2245 41.7174L55.4924 40.7174L57.2245 41.7174C58.1675 40.0841 57.6079 37.9955 55.9745 37.0525L7.44052 9.03136Z",fill:"currentColor",stroke:"#23252F","stroke-width":"4","stroke-linecap":"round"})]}),x9=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_7541_22108",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_7541_22108)",children:r.jsx("path",{d:"M5.22302 6.62316L6.51656 5.32073L5.50915 4.30427L5.15798 4.65543C5.07719 4.73623 4.97715 4.77905 4.85785 4.78391C4.73866 4.78877 4.63381 4.74595 4.54329 4.65543C4.45278 4.56492 4.40752 4.46099 4.40752 4.34364C4.40752 4.2262 4.45278 4.12222 4.54329 4.03171L4.88542 3.68958L3.98796 2.79212L2.68552 4.09456L5.22302 6.62316ZM9.8999 11.3088L11.2022 10.0064L10.3047 9.10889L9.95371 9.45116C9.86689 9.53789 9.76534 9.58217 9.64906 9.58402C9.53279 9.58587 9.42939 9.54158 9.33888 9.45116C9.24846 9.36065 9.20325 9.25818 9.20325 9.14375C9.20325 9.02932 9.24846 8.92684 9.33888 8.83633L9.68115 8.48531L8.67038 7.48343L7.37683 8.77698L9.8999 11.3088ZM9.2626 3.84329L10.1746 4.75533L11.0924 3.8376L10.1713 2.91666L9.2626 3.84329ZM2.569 11.9583C2.4186 11.9583 2.29313 11.908 2.1926 11.8074C2.09198 11.7069 2.04167 11.5814 2.04167 11.431V10.0187C2.04167 9.94846 2.0544 9.88152 2.07987 9.81793C2.10525 9.75435 2.14526 9.69529 2.1999 9.64075L4.59944 7.24121L1.953 4.58923C1.81767 4.45389 1.75 4.289 1.75 4.09456C1.75 3.90012 1.81767 3.73523 1.953 3.59989L3.49329 2.0596C3.62863 1.92427 3.79351 1.85811 3.98796 1.86112C4.1824 1.86404 4.34729 1.93321 4.48263 2.06864L7.14919 4.72048L9.55325 2.30752C9.64376 2.217 9.74322 2.15007 9.85163 2.10671C9.96003 2.06334 10.0733 2.04166 10.1916 2.04166C10.3097 2.04166 10.423 2.06334 10.5314 2.10671C10.6399 2.15007 10.7393 2.217 10.8297 2.30752L11.6925 3.19608C11.783 3.2865 11.849 3.38595 11.8904 3.49445C11.9319 3.60286 11.9526 3.71612 11.9526 3.83425C11.9526 3.95247 11.9319 4.06335 11.8904 4.16689C11.849 4.27043 11.783 4.36746 11.6925 4.45798L9.29965 6.86539L11.9404 9.51737C12.0757 9.65271 12.1434 9.81759 12.1434 10.012C12.1434 10.2065 12.0757 10.3714 11.9404 10.5067L10.4001 12.047C10.2648 12.1823 10.0999 12.25 9.90544 12.25C9.71099 12.25 9.5461 12.1823 9.41077 12.047L6.75879 9.40056L4.35925 11.8001C4.30471 11.8547 4.24565 11.8947 4.18206 11.9201C4.11848 11.9456 4.05154 11.9583 3.98125 11.9583H2.569Z",fill:"currentColor"})})]}),g9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M1.33333 12C0.966667 12 0.652778 11.8694 0.391667 11.6083C0.130556 11.3472 0 11.0333 0 10.6667V1.33333C0 0.966667 0.130556 0.652778 0.391667 0.391667C0.652778 0.130556 0.966667 0 1.33333 0H10.6667C11.0333 0 11.3472 0.130556 11.6083 0.391667C11.8694 0.652778 12 0.966667 12 1.33333V10.6667C12 11.0333 11.8694 11.3472 11.6083 11.6083C11.3472 11.8694 11.0333 12 10.6667 12H1.33333ZM3.33333 9.33333H6.66667C6.85556 9.33333 7.01389 9.26945 7.14167 9.14167C7.26944 9.01389 7.33333 8.85556 7.33333 8.66667C7.33333 8.47778 7.26944 8.31945 7.14167 8.19167C7.01389 8.06389 6.85556 8 6.66667 8H3.33333C3.14444 8 2.98611 8.06389 2.85833 8.19167C2.73056 8.31945 2.66667 8.47778 2.66667 8.66667C2.66667 8.85556 2.73056 9.01389 2.85833 9.14167C2.98611 9.26945 3.14444 9.33333 3.33333 9.33333ZM3.33333 6.66667H8.66667C8.85556 6.66667 9.01389 6.60278 9.14167 6.475C9.26945 6.34722 9.33333 6.18889 9.33333 6C9.33333 5.81111 9.26945 5.65278 9.14167 5.525C9.01389 5.39722 8.85556 5.33333 8.66667 5.33333H3.33333C3.14444 5.33333 2.98611 5.39722 2.85833 5.525C2.73056 5.65278 2.66667 5.81111 2.66667 6C2.66667 6.18889 2.73056 6.34722 2.85833 6.475C2.98611 6.60278 3.14444 6.66667 3.33333 6.66667ZM3.33333 4H8.66667C8.85556 4 9.01389 3.93611 9.14167 3.80833C9.26945 3.68056 9.33333 3.52222 9.33333 3.33333C9.33333 3.14444 9.26945 2.98611 9.14167 2.85833C9.01389 2.73056 8.85556 2.66667 8.66667 2.66667H3.33333C3.14444 2.66667 2.98611 2.73056 2.85833 2.85833C2.73056 2.98611 2.66667 3.14444 2.66667 3.33333C2.66667 3.52222 2.73056 3.68056 2.85833 3.80833C2.98611 3.93611 3.14444 4 3.33333 4Z",fill:"currentColor"})}),m9=e=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",children:[r.jsx("mask",{id:"mask0_2638_2680",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_2638_2680)",children:r.jsx("path",{d:"M9.99732 16C9.90858 16 9.82421 15.985 9.74419 15.9551C9.66418 15.9252 9.5909 15.8765 9.52435 15.8091L6.18835 12.4277C6.06278 12.3004 6 12.1406 6 11.9483C6 11.7559 6.06278 11.5961 6.18835 11.4689C6.32145 11.3315 6.48099 11.2648 6.66697 11.2686C6.85295 11.2724 7.00873 11.3392 7.13429 11.4689L9.32114 13.674V4.68539C9.32114 4.49306 9.3864 4.33074 9.51692 4.19845C9.64744 4.06615 9.80758 4 9.99732 4C10.1871 4 10.3472 4.06615 10.4777 4.19845C10.6082 4.33074 10.6735 4.49306 10.6735 4.68539V13.674L12.849 11.4689C12.9845 11.3315 13.1447 11.2629 13.3294 11.2629C13.5143 11.2629 13.6744 11.3315 13.8099 11.4689C13.9378 11.6062 14.0012 11.7685 14 11.9558C13.9988 12.1431 13.9354 12.3004 13.8099 12.4277L10.4738 15.8091C10.4073 15.8765 10.3334 15.9252 10.2522 15.9551C10.171 15.985 10.0861 16 9.99732 16Z",fill:"currentColor"})})]}),w9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("g",{id:"Type=Edit, Size=20x20",children:r.jsx("path",{id:"icon","fill-rule":"evenodd","clip-rule":"evenodd",d:"M14.9243 3.3359L9.06461 9.19559C8.97523 9.28497 8.9036 9.39048 8.85353 9.50654L7.99772 11.49C7.89015 11.7394 8.14272 11.9919 8.39203 11.8843L10.3755 11.0285C10.4916 10.9785 10.5971 10.9068 10.6865 10.8175L16.5462 4.95777C16.994 4.50991 16.994 3.78377 16.5462 3.3359C16.0983 2.88804 15.3722 2.88804 14.9243 3.3359ZM14.5297 10.7363C14.5297 10.3876 14.8127 10.1047 15.1615 10.1047C15.5116 10.1047 15.7933 10.3889 15.7933 10.7363L15.7222 14.1051C15.7222 15.1499 14.8954 16 13.8506 16H5.87166C4.85054 16 4 15.1499 4 14.0814V6.0806C4 5.05918 4.85054 4.2091 5.87166 4.2091L9.68606 4.20936C10.0362 4.20936 10.3178 4.49228 10.3178 4.841C10.3178 5.18972 10.0349 5.47264 9.68606 5.47264H5.89535C5.54735 5.47264 5.26357 5.75609 5.26357 6.10428V14.1051C5.26357 14.4533 5.54735 14.7367 5.89535 14.7367H13.898C14.246 14.7367 14.5297 14.4533 14.5297 14.1051V10.7363Z",fill:"currentColor"})})}),v9=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"4 3 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("path",{d:"M10 4.7002H6.1C5.21634 4.7002 4.5 5.41654 4.5 6.3002V13.9002C4.5 14.7838 5.21634 15.5002 6.1 15.5002H13.7C14.5837 15.5002 15.3 14.7839 15.3 13.9002V10.5002",stroke:"#909BAA","stroke-linecap":"round"}),r.jsx("path",{d:"M16 4L9 11",stroke:"#909BAA","stroke-width":"1.5","stroke-linecap":"round"})]}),_9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10.1765 0.310088L4.72809 5.70971C4.63832 5.79868 4.56637 5.90372 4.51607 6.01926L3.74627 7.78746C3.63822 8.03565 3.89191 8.28707 4.14234 8.17999L5.92651 7.41707C6.04309 7.36722 6.14907 7.29592 6.23885 7.20695L11.6872 1.80733C12.1044 1.39388 12.1044 0.723539 11.6872 0.310088C11.27 -0.103363 10.5936 -0.103363 10.1765 0.310088ZM9.80835 7.14088C9.80835 6.81895 10.072 6.55777 10.3969 6.55777C10.723 6.55777 10.9854 6.82017 10.9854 7.14088L10.9191 10.2508C10.9191 11.2153 10.1489 12.0001 9.17571 12.0001H1.74343C0.79227 12.0001 0 11.2153 0 10.2289V2.84292C0 1.89999 0.79227 1.11523 1.74343 1.11523L5.29651 1.11548C5.62264 1.11548 5.88501 1.37666 5.88501 1.69858C5.88501 2.0205 5.62141 2.28168 5.29651 2.28168H1.7655C1.44134 2.28168 1.177 2.54335 1.177 2.86479V10.2508C1.177 10.5722 1.44134 10.8339 1.7655 10.8339H9.21985C9.54402 10.8339 9.80835 10.5722 9.80835 10.2508V7.14088Z",fill:"currentColor"})}),k9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"Episode",children:[r.jsx("path",{id:"Rectangle 4456 (Stroke)","fill-rule":"evenodd","clip-rule":"evenodd",d:"M10 6.125H1L1 11H10V6.125ZM1 5.125C0.447715 5.125 0 5.57272 0 6.125V11C0 11.5523 0.447715 12 1 12H10C10.5523 12 11 11.5523 11 11V6.125C11 5.57272 10.5523 5.125 10 5.125H1Z",fill:"currentColor"}),r.jsx("path",{id:"Rectangle 4457 (Stroke)","fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.0625 3.5625H2.0625V2.5625H12.0625C12.8909 2.5625 13.5625 3.23407 13.5625 4.0625V9.9375H12.5625V4.0625C12.5625 3.78636 12.3386 3.5625 12.0625 3.5625Z",fill:"currentColor"}),r.jsx("path",{id:"Rectangle 4458 (Stroke)","fill-rule":"evenodd","clip-rule":"evenodd",d:"M14.125 1.5H4.125V0.5H14.125C14.9534 0.5 15.625 1.17157 15.625 2V7.875H14.625V2C14.625 1.72386 14.4011 1.5 14.125 1.5Z",fill:"currentColor"})]})}),j9=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_9540_31",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_9540_31)",children:r.jsx("path",{d:"M4.2304 12.5416C3.33955 12.5416 2.5819 12.2297 1.95744 11.6058C1.33298 10.9821 1.02075 10.2245 1.02075 9.33331V6.59617C1.02075 6.30615 1.124 6.0579 1.3305 5.8514C1.537 5.6449 1.78526 5.54165 2.07527 5.54165H6.3829C6.67291 5.54165 6.92117 5.6449 7.12767 5.8514C7.33417 6.0579 7.43742 6.30615 7.43742 6.59617V9.33331C7.43742 10.2245 7.12563 10.9821 6.50204 11.6058C5.87846 12.2297 5.12125 12.5416 4.2304 12.5416ZM3.06242 8.40217C3.20903 8.40217 3.33357 8.35098 3.43604 8.2486C3.53842 8.14613 3.58961 8.02159 3.58961 7.87498C3.58961 7.72837 3.53842 7.60383 3.43604 7.50135C3.33357 7.39898 3.20903 7.34779 3.06242 7.34779C2.91581 7.34779 2.79131 7.39898 2.68894 7.50135C2.58647 7.60383 2.53523 7.72837 2.53523 7.87498C2.53523 8.02159 2.58647 8.14613 2.68894 8.2486C2.79131 8.35098 2.91581 8.40217 3.06242 8.40217ZM5.39575 8.40217C5.54236 8.40217 5.6669 8.35098 5.76938 8.2486C5.87175 8.14613 5.92294 8.02159 5.92294 7.87498C5.92294 7.72837 5.87175 7.60383 5.76938 7.50135C5.6669 7.39898 5.54236 7.34779 5.39575 7.34779C5.24914 7.34779 5.12465 7.39898 5.02227 7.50135C4.9198 7.60383 4.86856 7.72837 4.86856 7.87498C4.86856 8.02159 4.9198 8.14613 5.02227 8.2486C5.12465 8.35098 5.24914 8.40217 5.39575 8.40217ZM12.9791 2.51283V5.24998C12.9791 6.14122 12.6671 6.89872 12.0433 7.5225C11.4195 8.14638 10.662 8.45831 9.77075 8.45831C9.59575 8.45831 9.42318 8.4449 9.25304 8.41806C9.0829 8.39133 8.9152 8.35113 8.74992 8.29746C8.61381 8.24389 8.50686 8.15595 8.42908 8.03365C8.35131 7.91144 8.31242 7.77552 8.31242 7.6259V6.23713C8.31242 5.83628 8.19575 5.48161 7.96242 5.17313C7.72909 4.86464 7.42546 4.7104 7.05154 4.7104C6.91057 4.7104 6.79381 4.65916 6.70125 4.55669C6.6087 4.45422 6.56242 4.32972 6.56242 4.18321V2.51283C6.56242 2.22282 6.66567 1.97456 6.87217 1.76806C7.07867 1.56156 7.32693 1.45831 7.61694 1.45831H11.9246C12.2146 1.45831 12.4628 1.56156 12.6693 1.76806C12.8758 1.97456 12.9791 2.22282 12.9791 2.51283ZM8.60409 4.31883C8.7507 4.31883 8.87519 4.26765 8.97756 4.16527C9.08004 4.0628 9.13127 3.93826 9.13127 3.79165C9.13127 3.64504 9.08004 3.52049 8.97756 3.41802C8.87519 3.31565 8.7507 3.26446 8.60409 3.26446C8.45747 3.26446 8.33293 3.31565 8.23046 3.41802C8.12809 3.52049 8.0769 3.64504 8.0769 3.79165C8.0769 3.93826 8.12809 4.0628 8.23046 4.16527C8.33293 4.26765 8.45747 4.31883 8.60409 4.31883ZM10.9374 4.31883C11.084 4.31883 11.2085 4.26765 11.3109 4.16527C11.4134 4.0628 11.4646 3.93826 11.4646 3.79165C11.4646 3.64504 11.4134 3.52049 11.3109 3.41802C11.2085 3.31565 11.084 3.26446 10.9374 3.26446C10.7908 3.26446 10.6663 3.31565 10.5638 3.41802C10.4614 3.52049 10.4102 3.64504 10.4102 3.79165C10.4102 3.93826 10.4614 4.0628 10.5638 4.16527C10.6663 4.26765 10.7908 4.31883 10.9374 4.31883ZM9.77046 5.30613C9.51486 5.30613 9.26947 5.35362 9.03429 5.4486C8.79911 5.54349 8.61945 5.70051 8.49529 5.91965C8.44289 6.00938 8.4494 6.09557 8.51484 6.17821C8.58027 6.26085 8.67131 6.30217 8.78798 6.30217H10.7534C10.8663 6.30217 10.9555 6.26085 11.021 6.17821C11.0864 6.09557 11.093 6.00938 11.0407 5.91965C10.9165 5.70051 10.7377 5.54349 10.5041 5.4486C10.2706 5.35362 10.0261 5.30613 9.77046 5.30613ZM4.22909 10.3855C4.47885 10.3855 4.71685 10.3395 4.94309 10.2475C5.16932 10.1556 5.3505 10.006 5.48661 9.79881C5.54494 9.70781 5.54586 9.61686 5.48938 9.52596C5.43299 9.43496 5.34646 9.38946 5.22979 9.38946H3.22852C3.1137 9.38946 3.02756 9.43525 2.97011 9.52683C2.91274 9.61842 2.91323 9.70908 2.97156 9.79881C3.10768 10.006 3.28885 10.1556 3.51509 10.2475C3.74132 10.3395 3.97932 10.3855 4.22909 10.3855Z",fill:"currentColor"})})]}),y9=e=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 32 32",fill:"currentColor",children:[r.jsx("mask",{id:"mask0_4160_9271",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"32",height:"32",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_4160_9271)",children:r.jsx("path",{d:"M11 25V21H7V19H13V25H11ZM19 25V19H25V21H21V25H19ZM7 13V11H11V7H13V13H7ZM19 13V7H21V11H25V13H19Z",fill:"currentColor"})})]}),L9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"captive_portal",children:[r.jsx("mask",{id:"mask0_8513_13265",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:r.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),r.jsxs("g",{mask:"url(#mask0_8513_13265)",children:[r.jsx("path",{id:"captive_portal_2",d:"M9.99992 17.9154C8.90589 17.9154 7.87735 17.7073 6.91429 17.2912C5.9511 16.8751 5.11318 16.3107 4.40054 15.5981C3.6879 14.8854 3.12353 14.0475 2.70742 13.0843C2.29131 12.1213 2.08325 11.0927 2.08325 9.9987C2.08325 8.90467 2.29131 7.87613 2.70742 6.91307C3.12353 5.94988 3.6879 5.11196 4.40054 4.39932C5.11318 3.68668 5.9511 3.12231 6.91429 2.7062C7.87735 2.29009 8.90589 2.08203 9.99992 2.08203C11.0939 2.08203 12.1225 2.29009 13.0855 2.7062C14.0487 3.12231 14.8867 3.68668 15.5993 4.39932C16.3119 5.11196 16.8763 5.94988 17.2924 6.91307C17.7085 7.87613 17.9166 8.90467 17.9166 9.9987C17.9166 10.1429 17.9131 10.2983 17.9062 10.4649C17.8992 10.6316 17.8861 10.7871 17.8668 10.9314C17.8444 11.1088 17.7699 11.2487 17.6433 11.3512C17.5167 11.4538 17.3605 11.5052 17.1745 11.5052C17.011 11.5052 16.8717 11.4346 16.7564 11.2935C16.641 11.1525 16.5945 10.9977 16.617 10.8289C16.6448 10.6846 16.66 10.5462 16.6626 10.4137C16.6653 10.2812 16.6666 10.1429 16.6666 9.9987C16.6666 9.69425 16.6466 9.39113 16.6066 9.08932C16.5664 8.78738 16.5037 8.48689 16.4183 8.18786H13.3203C13.3727 8.48689 13.4107 8.78738 13.4343 9.08932C13.4578 9.39113 13.4695 9.69425 13.4695 9.9987C13.4695 10.1429 13.4682 10.2962 13.4655 10.4587C13.4628 10.6211 13.4544 10.7743 13.4405 10.9185C13.4182 11.0959 13.345 11.2379 13.221 11.3447C13.0971 11.4517 12.9464 11.5052 12.7691 11.5052C12.6056 11.5052 12.4628 11.4389 12.3405 11.3064C12.2182 11.1739 12.1682 11.0233 12.1905 10.8545C12.2044 10.7102 12.2128 10.5676 12.2155 10.4266C12.2182 10.2855 12.2195 10.1429 12.2195 9.9987C12.2195 9.69425 12.2078 9.39113 12.1843 9.08932C12.1607 8.78738 12.1228 8.48689 12.0705 8.18786H7.92929C7.87707 8.48689 7.83915 8.78738 7.81554 9.08932C7.79207 9.39113 7.78033 9.69425 7.78033 9.9987C7.78033 10.3031 7.79207 10.6063 7.81554 10.9081C7.83915 11.21 7.87707 11.5105 7.92929 11.8095H10.3685C10.5458 11.8095 10.6944 11.8694 10.8141 11.9891C10.9337 12.1087 10.9935 12.2572 10.9935 12.4345C10.9935 12.6119 10.9337 12.7604 10.8141 12.8802C10.6944 12.9997 10.5458 13.0595 10.3685 13.0595H8.21617C8.39895 13.7155 8.63693 14.3445 8.93013 14.9466C9.22346 15.5487 9.58006 16.1157 9.99992 16.6477C10.1495 16.6477 10.2991 16.6485 10.4487 16.6502C10.5983 16.6517 10.7451 16.6429 10.8893 16.6237C11.0614 16.6012 11.2051 16.6455 11.3203 16.7566C11.4358 16.8677 11.4935 17.0093 11.4935 17.1814C11.4935 17.3672 11.4457 17.5222 11.3501 17.6462C11.2544 17.7701 11.1179 17.8432 10.9405 17.8656C10.7964 17.8849 10.641 17.898 10.4743 17.9049C10.3076 17.9119 10.1495 17.9154 9.99992 17.9154ZM3.58159 11.8095H6.6795C6.62714 11.5105 6.58915 11.21 6.56554 10.9081C6.54207 10.6063 6.53033 10.3031 6.53033 9.9987C6.53033 9.69425 6.54207 9.39113 6.56554 9.08932C6.58915 8.78738 6.62714 8.48689 6.6795 8.18786H3.58159C3.49617 8.48689 3.43339 8.78738 3.39325 9.08932C3.35325 9.39113 3.33325 9.69425 3.33325 9.9987C3.33325 10.3031 3.35325 10.6063 3.39325 10.9081C3.43339 11.21 3.49617 11.5105 3.58159 11.8095ZM8.38617 16.4345C8.05075 15.9143 7.76256 15.3715 7.52159 14.8064C7.28061 14.2413 7.08429 13.659 6.93263 13.0595H4.10575C4.54047 13.9174 5.1302 14.6413 5.87492 15.231C6.61964 15.8209 7.45672 16.222 8.38617 16.4345ZM4.10575 6.93786H6.93263C7.0736 6.33314 7.26325 5.74821 7.50159 5.18307C7.73978 4.61779 8.03464 4.07773 8.38617 3.56286C7.45131 3.77009 6.6129 4.16856 5.87096 4.75828C5.12888 5.348 4.54047 6.07453 4.10575 6.93786ZM8.21617 6.93786H11.7837C11.6063 6.28189 11.3669 5.65557 11.0655 5.05891C10.7643 4.4621 10.4091 3.89238 9.99992 3.34974C9.58534 3.88168 9.22874 4.4487 8.93013 5.05078C8.63152 5.65286 8.39353 6.28189 8.21617 6.93786ZM13.0672 6.93786H15.8941C15.4594 6.07453 14.871 5.34668 14.1289 4.75432C13.3869 4.16182 12.5485 3.76467 11.6137 3.56286C11.9491 4.08314 12.2333 4.62717 12.4662 5.19495C12.6991 5.76286 12.8994 6.34384 13.0672 6.93786Z",fill:"currentColor"}),r.jsx("path",{id:"travel_explore",d:"M18.0634 18.7783L16.8556 17.5822C16.6378 17.7211 16.4031 17.8331 16.1517 17.9184C15.9003 18.0038 15.6342 18.0465 15.3535 18.0465C14.6044 18.0465 13.9694 17.7857 13.4484 17.2642C12.9275 16.7428 12.667 16.1071 12.667 15.3572C12.667 14.6074 12.9275 13.9717 13.4484 13.4502C13.9694 12.9287 14.6044 12.668 15.3535 12.668C16.1026 12.668 16.7376 12.9287 17.2586 13.4502C17.7795 13.9717 18.04 14.6074 18.04 15.3572C18.04 15.6425 17.9963 15.9121 17.9089 16.166C17.8215 16.4198 17.7063 16.6557 17.5633 16.8738L18.7711 18.0698C18.8684 18.1628 18.917 18.2798 18.917 18.4208C18.917 18.5618 18.8684 18.6809 18.7711 18.7783C18.6781 18.8714 18.5611 18.918 18.4203 18.918C18.2796 18.918 18.1606 18.8714 18.0634 18.7783ZM15.3535 17.038C15.8236 17.038 16.221 16.8755 16.5456 16.5506C16.8703 16.2256 17.0326 15.8278 17.0326 15.3572C17.0326 14.8866 16.8703 14.4888 16.5456 14.1639C16.221 13.8389 15.8236 13.6764 15.3535 13.6764C14.8834 13.6764 14.486 13.8389 14.1614 14.1639C13.8367 14.4888 13.6744 14.8866 13.6744 15.3572C13.6744 15.8278 13.8367 16.2256 14.1614 16.5506C14.486 16.8755 14.8834 17.038 15.3535 17.038Z",fill:"currentColor"})]})]})}),H9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 18 19",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M9.5002 0.270145C10.3742 0.270145 11.1128 0.571885 11.7161 1.17537C12.3193 1.77868 12.6209 2.51732 12.6209 3.39129C12.6209 4.17273 12.3716 4.85117 11.873 5.42662C11.3744 6.00189 10.7483 6.34792 9.99474 6.46469L9.99474 9.0052L13.8388 9.0052C14.2785 9.0052 14.6549 9.16172 14.9679 9.47476C15.2809 9.78779 15.4375 10.1642 15.4375 10.6039L15.4375 12.564L17.0171 12.564C17.2435 12.564 17.4334 12.6405 17.5866 12.7936C17.7396 12.9468 17.8162 13.1366 17.8162 13.3631L17.8162 17.5042C17.8162 17.7389 17.7396 17.9321 17.5866 18.0836C17.4334 18.2352 17.2435 18.311 17.0171 18.311L12.8759 18.311C12.6412 18.311 12.4481 18.2345 12.2965 18.0814C12.1449 17.9282 12.0692 17.7384 12.0692 17.5119L12.0692 13.3707C12.0692 13.136 12.1457 12.9429 12.2987 12.7913C12.452 12.6398 12.6418 12.564 12.8682 12.564L14.4479 12.564L14.4479 10.6039C14.4479 10.4262 14.3908 10.2803 14.2767 10.166C14.1624 10.0518 14.0164 9.99478 13.8388 9.99478L5.16112 9.99478C4.98349 9.99478 4.83753 10.0518 4.72323 10.166C4.6091 10.2803 4.55203 10.4262 4.55203 10.6039L4.55203 12.6115C5.3056 12.7283 5.93168 13.0743 6.43026 13.6496C6.92885 14.225 7.17814 14.9034 7.17814 15.6849C7.17814 16.5587 6.87648 17.2973 6.27317 17.9008C5.66969 18.5041 4.93096 18.8058 4.05699 18.8058C3.18303 18.8058 2.44439 18.5041 1.84107 17.9008C1.23792 17.2973 0.936342 16.5587 0.936343 15.6849C0.936343 14.9034 1.18564 14.225 1.68422 13.6496C2.18281 13.0743 2.80888 12.7283 3.56245 12.6115L3.56245 10.6039C3.56245 10.1642 3.71897 9.78779 4.03201 9.47476C4.34504 9.16172 4.72142 9.0052 5.16112 9.0052L9.00516 9.0052L9.00516 6.46469C8.25159 6.34792 7.62552 6.00189 7.12693 5.42662C6.62835 4.85117 6.37905 4.17273 6.37905 3.39129C6.37905 2.51732 6.68071 1.77868 7.28403 1.17537C7.88751 0.571885 8.62623 0.270145 9.5002 0.270145Z",fill:"currentColor"})}),M9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 25 22",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M17.8553 2.95196L15.3555 5.30477C15.2095 5.44218 15.1081 5.62031 15.0647 5.81603L14.52 8.26717H7.41204C6.80549 8.26717 6.31378 8.75888 6.31378 9.36543C6.31378 9.97198 6.80549 10.4637 7.41204 10.4637H15.0998C15.1427 10.4637 15.185 10.4612 15.2266 10.4564C15.2442 10.4574 15.2619 10.4578 15.2798 10.4578H18.6054C18.8441 10.4578 19.0749 10.3724 19.2562 10.2171L21.3582 8.41535C21.5744 9.252 21.6894 10.1293 21.6894 11.0336C21.6894 16.7958 17.0182 21.467 11.256 21.467C9.70613 21.467 8.23523 21.1291 6.91291 20.5229L1.57616 21.8571C1.20996 21.9486 0.878268 21.6169 0.969816 21.2508L2.21945 16.2522C1.33102 14.7172 0.82251 12.9347 0.82251 11.0336C0.82251 5.27132 5.49373 0.600098 11.256 0.600098C13.7596 0.600098 16.0573 1.48194 17.8553 2.95196ZM7.41204 12.6603C6.80549 12.6603 6.31378 13.152 6.31378 13.7586C6.31378 14.3651 6.80549 14.8568 7.41204 14.8568H11.8051C12.4116 14.8568 12.9033 14.3651 12.9033 13.7586C12.9033 13.152 12.4116 12.6603 11.8051 12.6603H7.41204ZM22.1006 1.12041L16.3757 6.84529C16.3348 6.88621 16.3066 6.93809 16.2945 6.99468L15.9135 8.77616C15.868 8.98885 16.0569 9.17774 16.2696 9.13226L18.0511 8.75129C18.1077 8.73919 18.1596 8.71098 18.2005 8.67006L23.9254 2.94518C24.0425 2.82803 24.0425 2.63808 23.9254 2.52092L22.5249 1.12041C22.4077 1.00325 22.2178 1.00325 22.1006 1.12041Z",fill:"currentColor"})}),V9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"filter_alt_off",children:[r.jsx("mask",{id:"mask0_1543_23288",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:r.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_1543_23288)",children:r.jsx("path",{id:"filter_alt_off_2",d:"M14.8 11.9748L6.82503 3.9998H19C19.4167 3.9998 19.7167 4.18314 19.9 4.5498C20.0834 4.91647 20.05 5.26647 19.8 5.5998L14.8 11.9748ZM19.775 22.5998L14 16.8248V18.9998C14 19.2831 13.9042 19.5206 13.7125 19.7123C13.5209 19.904 13.2834 19.9998 13 19.9998H11C10.7167 19.9998 10.4792 19.904 10.2875 19.7123C10.0959 19.5206 10 19.2831 10 18.9998V12.8248L1.40002 4.2248L2.80002 2.7998L21.2 21.1998L19.775 22.5998Z",fill:"currentColor"})})]})}),Z9=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_7541_22315",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"15",children:r.jsx("rect",{y:"0.25",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_7541_22315)",children:r.jsx("path",{d:"M7.02156 2.82555C8.05212 2.82555 9.02376 3.04731 9.93648 3.49084C10.8492 3.93437 11.6095 4.57535 12.2173 5.4138C12.2947 5.5152 12.3195 5.60635 12.2917 5.68724C12.2639 5.76803 12.2161 5.83623 12.1485 5.89184C12.0809 5.94512 12.003 5.96874 11.9147 5.96271C11.8264 5.95669 11.7508 5.90895 11.6879 5.81951C11.1625 5.06817 10.4856 4.49369 9.6575 4.09605C8.82926 3.69841 7.95062 3.49842 7.02156 3.49609C6.09241 3.49376 5.21989 3.69258 4.404 4.09255C3.58811 4.49252 2.91606 5.06934 2.38785 5.82301C2.32019 5.92451 2.2411 5.98012 2.15058 5.98984C2.05997 5.99956 1.98088 5.97895 1.91331 5.92801C1.83592 5.87473 1.7876 5.80638 1.76835 5.72296C1.7491 5.63964 1.77098 5.5556 1.83398 5.47082C2.43209 4.63276 3.18741 3.9824 4.09994 3.51971C5.01247 3.05694 5.98634 2.82555 7.02156 2.82555ZM7.02156 4.20338C8.3364 4.20338 9.46301 4.64492 10.4014 5.52798C11.3398 6.41115 11.809 7.50043 11.809 8.79582C11.809 9.2936 11.6341 9.7117 11.2843 10.0501C10.9345 10.3887 10.5082 10.5579 10.0055 10.5579C9.50263 10.5579 9.07144 10.3916 8.71192 10.0589C8.35239 9.72619 8.17263 9.31212 8.17263 8.81667C8.17263 8.50517 8.06053 8.24238 7.83633 8.0283C7.61204 7.81421 7.34162 7.70717 7.02506 7.70717C6.70841 7.70717 6.43799 7.81421 6.21379 8.0283C5.9895 8.24238 5.87735 8.50517 5.87735 8.81667C5.87735 9.75282 6.14992 10.5369 6.69504 11.1688C7.24007 11.8008 7.9724 12.2373 8.89202 12.4784C8.99109 12.5052 9.05754 12.5573 9.09137 12.6347C9.12521 12.7121 9.13124 12.7943 9.10946 12.8813C9.08768 12.9587 9.04359 13.0258 8.97719 13.0826C8.91069 13.1393 8.82324 13.1567 8.71483 13.1349C7.65715 12.8892 6.80806 12.382 6.16756 11.6135C5.52706 10.8448 5.20681 9.91256 5.20681 8.81667C5.20681 8.31666 5.38415 7.89496 5.73881 7.55157C6.09348 7.20828 6.52223 7.03663 7.02506 7.03663C7.5278 7.03663 7.9565 7.20599 8.31117 7.54471C8.66583 7.88334 8.84317 8.30037 8.84317 8.79582C8.84317 9.10498 8.95774 9.36666 9.1869 9.58084C9.41595 9.79492 9.68881 9.90196 10.0055 9.90196C10.322 9.90196 10.5906 9.79492 10.8112 9.58084C11.0317 9.36666 11.1419 9.10498 11.1419 8.79582C11.1419 7.68661 10.7386 6.75323 9.93196 5.99567C9.1254 5.23812 8.15897 4.85934 7.03265 4.85934C5.90633 4.85934 4.94159 5.24103 4.13844 6.00442C3.33529 6.76781 2.93371 7.70153 2.93371 8.80559C2.93371 9.08083 2.95617 9.38878 3.00108 9.72944C3.046 10.0702 3.14298 10.4518 3.29202 10.8742C3.32585 10.9757 3.32401 11.0657 3.28648 11.1442C3.24895 11.2227 3.18663 11.2789 3.09952 11.3128C3.00784 11.3466 2.92088 11.3442 2.83863 11.3055C2.75647 11.2668 2.69615 11.1992 2.65765 11.1029C2.52115 10.7493 2.4213 10.3842 2.3581 10.0075C2.29491 9.63091 2.26331 9.23395 2.26331 8.81667C2.26331 7.51438 2.72949 6.4199 3.66185 5.53324C4.59422 4.64667 5.71412 4.20338 7.02156 4.20338ZM7.02506 1.40338C7.65195 1.40338 8.26304 1.47873 8.85833 1.62942C9.45372 1.78012 10.0297 1.9976 10.5862 2.28188C10.6877 2.3374 10.7475 2.4056 10.7655 2.48648C10.7836 2.56728 10.7758 2.64637 10.7419 2.72376C10.7058 2.80114 10.6478 2.86103 10.5681 2.90342C10.4885 2.94571 10.3954 2.9391 10.2888 2.88359C9.7782 2.61876 9.24883 2.41702 8.70069 2.27838C8.15255 2.13974 7.59401 2.07042 7.02506 2.07042C6.46117 2.07042 5.90642 2.13605 5.36081 2.2673C4.8152 2.39855 4.29448 2.60398 3.79865 2.88359C3.70687 2.9391 3.61572 2.95412 3.52521 2.92865C3.4346 2.90328 3.3664 2.84703 3.3206 2.75992C3.27938 2.67748 3.27078 2.59654 3.29479 2.51711C3.3189 2.43758 3.37451 2.37118 3.46163 2.3179C4.01074 2.01467 4.58644 1.78644 5.18873 1.63321C5.79112 1.47999 6.40323 1.40338 7.02506 1.40338ZM7.02506 5.61446C7.93156 5.61446 8.71051 5.92178 9.3619 6.53642C10.0133 7.15096 10.339 7.9041 10.339 8.79582C10.339 8.89955 10.3093 8.98399 10.25 9.04913C10.1907 9.11427 10.1092 9.14684 10.0055 9.14684C9.90901 9.14684 9.82876 9.11427 9.76469 9.04913C9.70052 8.98399 9.66844 8.89955 9.66844 8.79582C9.66844 8.08522 9.40793 7.48852 8.88692 7.00571C8.3659 6.52291 7.74529 6.28151 7.02506 6.28151C6.30241 6.28151 5.68485 6.52524 5.1724 7.01271C4.66004 7.50019 4.40385 8.10151 4.40385 8.81667C4.40385 9.5856 4.53297 10.2441 4.79119 10.7923C5.04951 11.3404 5.44 11.8904 5.96267 12.4422C6.03033 12.5099 6.06475 12.5879 6.06592 12.6762C6.06708 12.7643 6.03733 12.8411 5.97667 12.9064C5.909 12.9787 5.82699 13.0131 5.73065 13.0097C5.6342 13.0062 5.55219 12.9706 5.48463 12.9029C4.91101 12.3048 4.47628 11.6864 4.18044 11.0476C3.88469 10.409 3.73681 9.66533 3.73681 8.81667C3.73681 7.92038 4.05765 7.16258 4.69931 6.54328C5.34098 5.92407 6.11623 5.61446 7.02506 5.61446ZM7.01398 8.4623C7.11538 8.4623 7.19632 8.49613 7.25679 8.5638C7.31726 8.63137 7.3475 8.71104 7.3475 8.80282C7.3475 9.55055 7.6065 10.1479 8.1245 10.5948C8.6425 11.0417 9.255 11.2652 9.962 11.2652C10.0297 11.2652 10.1187 11.2592 10.229 11.2471C10.3395 11.2351 10.4519 11.2217 10.5662 11.2069C10.663 11.192 10.7465 11.2099 10.8167 11.2607C10.8868 11.3114 10.9293 11.3852 10.9442 11.4821C10.959 11.5737 10.9397 11.6505 10.8864 11.7123C10.8332 11.7742 10.7653 11.8171 10.6829 11.8413C10.5172 11.8899 10.3676 11.9178 10.234 11.925C10.1004 11.9321 10.0097 11.9356 9.962 11.9356C9.07115 11.9356 8.30149 11.6469 7.65302 11.0694C7.00465 10.4919 6.68046 9.73635 6.68046 8.80282C6.68046 8.71104 6.71065 8.63137 6.77102 8.5638C6.83149 8.49613 6.91248 8.4623 7.01398 8.4623Z",fill:"currentColor"})})]}),b9=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("path",{d:"M4.5 6.04386L7.83333 2.83398V13.6673",stroke:"white","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),r.jsx("path",{d:"M15.5 13.9581L12.1667 17.168L12.1667 6.33463",stroke:"white","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})]}),E9=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_9540_23",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_9540_23)",children:r.jsx("path",{d:"M0.729248 11.2291V10.3418C0.729248 10.2273 0.751123 10.1166 0.794873 10.0095C0.838526 9.9025 0.900408 9.80834 0.980519 9.72706L1.89591 8.81167V5.18931L1.03666 4.32904C0.940901 4.23328 0.865748 4.12094 0.811206 3.99202C0.756567 3.8631 0.729248 3.72753 0.729248 3.58529V2.33331C0.729248 2.20935 0.771199 2.10547 0.855102 2.02167C0.939005 1.93776 1.04294 1.89581 1.16689 1.89581C1.29095 1.89581 1.39483 1.93776 1.47854 2.02167C1.56235 2.10547 1.60425 2.20935 1.60425 2.33331V3.06248H3.06258V2.33331C3.06258 2.20935 3.10453 2.10547 3.18844 2.02167C3.27234 1.93776 3.37627 1.89581 3.50023 1.89581C3.62428 1.89581 3.72816 1.93776 3.81187 2.02167C3.89568 2.10547 3.93758 2.20935 3.93758 2.33331V3.06248H5.39592V2.33331C5.39592 2.20935 5.43787 2.10547 5.52177 2.02167C5.60567 1.93776 5.7096 1.89581 5.83356 1.89581C5.95762 1.89581 6.0615 1.93776 6.14521 2.02167C6.22901 2.10547 6.27092 2.20935 6.27092 2.33331V3.58529C6.27092 3.72753 6.2436 3.8631 6.18896 3.99202C6.13442 4.12094 6.05926 4.23328 5.9635 4.32904L5.10425 5.18829V5.97915H8.89592V5.18829L8.03667 4.32904C7.9409 4.23328 7.86575 4.12094 7.81121 3.99202C7.75657 3.8631 7.72925 3.72753 7.72925 3.58529V2.33331C7.72925 2.20935 7.7712 2.10547 7.8551 2.02167C7.93901 1.93776 8.04294 1.89581 8.16689 1.89581C8.29095 1.89581 8.39483 1.93776 8.47854 2.02167C8.56235 2.10547 8.60425 2.20935 8.60425 2.33331V3.06248H10.0626V2.33331C10.0626 2.20935 10.1045 2.10547 10.1884 2.02167C10.2723 1.93776 10.3763 1.89581 10.5002 1.89581C10.6243 1.89581 10.7282 1.93776 10.8119 2.02167C10.8957 2.10547 10.9376 2.20935 10.9376 2.33331V3.06248H12.3959V2.33331C12.3959 2.20935 12.4379 2.10547 12.5218 2.02167C12.6057 1.93776 12.7096 1.89581 12.8336 1.89581C12.9576 1.89581 13.0615 1.93776 13.1452 2.02167C13.229 2.10547 13.2709 2.20935 13.2709 2.33331V3.58529C13.2709 3.72753 13.2436 3.8631 13.189 3.99202C13.1344 4.12094 13.0593 4.23328 12.9635 4.32904L12.1042 5.18931V8.81167L13.0196 9.72706C13.0998 9.80834 13.1616 9.9025 13.2053 10.0095C13.249 10.1166 13.2709 10.2273 13.2709 10.3418V11.2291C13.2709 11.4677 13.1847 11.6732 13.0124 11.8456C12.84 12.018 12.6345 12.1041 12.3959 12.1041H8.83977C8.69044 12.1041 8.56521 12.0536 8.4641 11.9526C8.36309 11.8515 8.31258 11.7263 8.31258 11.577V10.5C8.31258 10.139 8.18396 9.83002 7.92671 9.57306C7.66946 9.31601 7.36024 9.18748 6.99906 9.18748C6.63778 9.18748 6.32886 9.31601 6.07229 9.57306C5.81582 9.83002 5.68758 10.139 5.68758 10.5V11.5742C5.68758 11.7263 5.63707 11.8527 5.53606 11.9532C5.43495 12.0538 5.30973 12.1041 5.16039 12.1041H1.60425C1.36566 12.1041 1.16019 12.018 0.987811 11.8456C0.815436 11.6732 0.729248 11.4677 0.729248 11.2291Z",fill:"currentColor"})})]}),S9=e=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 22 22",fill:"currentColor",children:[r.jsx("mask",{id:"mask0_3130_18463",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"22",height:"22",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_3130_18463)",children:r.jsx("path",{d:"M4.58301 17.4166V12.8333H5.95798V16.0416H9.16634V17.4166H4.58301ZM4.58301 9.16658V4.58325H9.16634V5.95823H5.95798V9.16658H4.58301ZM12.833 17.4166V16.0416H16.0414V12.8333H17.4163V17.4166H12.833ZM16.0414 9.16658V5.95823H12.833V4.58325H17.4163V9.16658H16.0414Z",fill:"currentColor"})})]}),I9=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_7541_22375",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"15",children:r.jsx("rect",{y:"0.25",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_7541_22375)",children:r.jsx("path",{d:"M3.2509 12.3541C2.86201 12.3541 2.54458 12.2487 2.29861 12.0378C2.05254 11.8269 1.9295 11.5475 1.9295 11.1999C1.9295 10.9374 1.99809 10.7263 2.13528 10.5665C2.27255 10.4069 2.44702 10.3271 2.65867 10.3271C2.8606 10.3271 3.03259 10.3966 3.17463 10.5358C3.31677 10.6749 3.38784 10.8424 3.38784 11.0383C3.38784 11.1168 3.37044 11.1858 3.33563 11.2452C3.30082 11.3047 3.258 11.3513 3.20715 11.3849C3.22582 11.4036 3.25202 11.4195 3.28575 11.4326C3.31939 11.4457 3.35678 11.4522 3.3979 11.4522C3.52507 11.4462 3.62905 11.3878 3.70984 11.2767C3.79053 11.1656 3.85557 10.9945 3.90496 10.7634L4.81482 5.93748H3.55613C3.43198 5.93748 3.328 5.89558 3.24419 5.81177C3.16048 5.72806 3.11863 5.62413 3.11863 5.49998C3.11863 5.37583 3.16048 5.2719 3.24419 5.18819C3.328 5.10438 3.43198 5.06248 3.55613 5.06248H4.97742L5.27244 3.46735C5.34798 3.05679 5.5172 2.73386 5.78009 2.49858C6.04298 2.2634 6.36546 2.14581 6.74755 2.14581C7.13051 2.14581 7.44497 2.2582 7.69094 2.48298C7.93701 2.70766 8.06005 2.99087 8.06005 3.3326C8.06005 3.58315 7.99146 3.78829 7.85428 3.94802C7.717 4.10766 7.54253 4.18748 7.33088 4.18748C7.12895 4.18748 6.95696 4.11884 6.81492 3.98156C6.67278 3.84438 6.60171 3.67483 6.60171 3.4729C6.60171 3.39434 6.61912 3.32536 6.65392 3.26596C6.68873 3.20646 6.7334 3.15989 6.78794 3.12625C6.76928 3.10379 6.7403 3.08508 6.70103 3.0701C6.66175 3.05523 6.62155 3.04779 6.58042 3.04779C6.45851 3.05975 6.36148 3.11322 6.28934 3.20821C6.2172 3.30319 6.16203 3.44378 6.12382 3.62996L5.8759 5.06248H8.11051C8.23466 5.06248 8.33864 5.10438 8.42244 5.18819C8.50615 5.2719 8.54801 5.37583 8.54801 5.49998C8.54801 5.61217 8.51213 5.70867 8.44038 5.78946C8.36853 5.87015 8.27953 5.91648 8.17336 5.92844H7.89846L8.98551 7.16817L10.0725 5.92844H9.7978C9.69153 5.91648 9.60253 5.87015 9.53078 5.78946C9.45893 5.70867 9.42301 5.61217 9.42301 5.49998C9.42301 5.37583 9.46491 5.2719 9.54871 5.18819C9.63242 5.10438 9.73635 5.06248 9.86051 5.06248H11.6105C11.7347 5.06248 11.8386 5.10438 11.9224 5.18819C12.0062 5.2719 12.048 5.37583 12.048 5.49998C12.048 5.62413 12.0062 5.72806 11.9224 5.81177C11.8386 5.89558 11.7347 5.93748 11.6105 5.93748H11.2224L9.56782 7.83331L11.228 9.72915H11.6105C11.7347 9.72915 11.8386 9.77105 11.9224 9.85485C12.0062 9.93856 12.048 10.0425 12.048 10.1666C12.048 10.2908 12.0062 10.3947 11.9224 10.4784C11.8386 10.5622 11.7347 10.6041 11.6105 10.6041H9.86051C9.73635 10.6041 9.63242 10.5622 9.54871 10.4784C9.46491 10.3947 9.42301 10.2908 9.42301 10.1666C9.42301 10.0545 9.45893 9.95796 9.53078 9.87717C9.60253 9.79647 9.69153 9.75015 9.7978 9.73819H10.0725L8.98551 8.48956L7.89846 9.73819H8.17336C8.27953 9.75015 8.36853 9.79647 8.44038 9.87717C8.51213 9.95796 8.54801 10.0545 8.54801 10.1666C8.54801 10.2908 8.50615 10.3947 8.42244 10.4784C8.33864 10.5622 8.23466 10.6041 8.11051 10.6041H6.3605C6.23635 10.6041 6.13242 10.5622 6.04871 10.4784C5.96491 10.3947 5.923 10.2908 5.923 10.1666C5.923 10.0425 5.96491 9.93856 6.04871 9.85485C6.13242 9.77105 6.23635 9.72915 6.3605 9.72915H6.74871L8.40334 7.83331L6.74871 5.93748H5.70761L4.77428 10.8363C4.68162 11.3337 4.50648 11.711 4.24884 11.9683C3.9912 12.2255 3.65855 12.3541 3.2509 12.3541Z",fill:"currentColor"})})]}),P9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M7.00261 14C6.03462 14 5.12456 13.8163 4.27241 13.449C3.42026 13.0816 2.67901 12.583 2.04865 11.9533C1.4183 11.3235 0.919269 10.5829 0.551561 9.73159C0.183854 8.88024 0 7.97058 0 7.00261C0 6.03462 0.183679 5.12456 0.551036 4.27241C0.918407 3.42026 1.41698 2.67901 2.04674 2.04865C2.67651 1.4183 3.41706 0.919269 4.26841 0.551562C5.11976 0.183854 6.02942 0 6.99739 0C7.96538 0 8.87544 0.183679 9.72759 0.551036C10.5797 0.918406 11.321 1.41697 11.9514 2.04674C12.5817 2.67651 13.0807 3.41706 13.4484 4.26841C13.8161 5.11976 14 6.02942 14 6.99739C14 7.96538 13.8163 8.87544 13.449 9.72759C13.0816 10.5797 12.583 11.321 11.9533 11.9514C11.3235 12.5817 10.5829 13.0807 9.73159 13.4484C8.88024 13.8161 7.97058 14 7.00261 14ZM6.22222 13.1833V11.6667C5.79444 11.6667 5.42824 11.5144 5.12361 11.2097C4.81898 10.9051 4.66667 10.5389 4.66667 10.1111V9.33333L0.933333 5.6C0.894445 5.83333 0.858796 6.06667 0.826389 6.3C0.793981 6.53333 0.777778 6.76667 0.777778 7C0.777778 8.56852 1.29306 9.94259 2.32361 11.1222C3.35417 12.3019 4.6537 12.9889 6.22222 13.1833ZM11.5889 11.2C11.8481 10.9148 12.0815 10.6069 12.2889 10.2764C12.4963 9.94583 12.6681 9.60231 12.8042 9.24583C12.9403 8.88935 13.044 8.52315 13.1153 8.14722C13.1866 7.7713 13.2222 7.38889 13.2222 7C13.2222 5.72211 12.8715 4.55506 12.17 3.49885C11.4685 2.44264 10.5229 1.68121 9.33333 1.21454V1.55556C9.33333 1.98333 9.18102 2.34954 8.87639 2.65417C8.57176 2.9588 8.20556 3.11111 7.77778 3.11111H6.22222V4.66667C6.22222 4.88704 6.14769 5.07176 5.99861 5.22083C5.84954 5.36991 5.66481 5.44444 5.44444 5.44444H3.88889V7H8.55556C8.77593 7 8.96065 7.07454 9.10972 7.22361C9.2588 7.37269 9.33333 7.55741 9.33333 7.77778V10.1111H10.1111C10.4481 10.1111 10.7528 10.2116 11.025 10.4125C11.2972 10.6134 11.4852 10.8759 11.5889 11.2Z",fill:"currentColor"})}),B9=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_7541_22441",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_7541_22441)",children:r.jsx("path",{d:"M10.8837 12.5271C10.8134 12.5271 10.748 12.5159 10.6874 12.4934C10.6267 12.471 10.5691 12.4325 10.5146 12.3779L7.57328 9.44214C7.51864 9.3875 7.48009 9.3299 7.45764 9.26933C7.43528 9.20876 7.42409 9.14333 7.42409 9.07304C7.42409 9.00274 7.43528 8.93731 7.45764 8.87674C7.48009 8.81618 7.51864 8.75862 7.57328 8.70408L8.67826 7.5991C8.7328 7.54446 8.79036 7.50591 8.85093 7.48345C8.9115 7.46109 8.97693 7.44991 9.04722 7.44991C9.11751 7.44991 9.18294 7.46109 9.24351 7.48345C9.30418 7.50591 9.36178 7.54446 9.41632 7.5991L12.3576 10.5404C12.4123 10.595 12.4508 10.6525 12.4733 10.7131C12.4956 10.7737 12.5068 10.8392 12.5068 10.9095C12.5068 10.9798 12.4956 11.0452 12.4733 11.1058C12.4508 11.1664 12.4123 11.2239 12.3576 11.2785L11.2527 12.3779C11.1981 12.4325 11.1406 12.471 11.08 12.4934C11.0194 12.5159 10.954 12.5271 10.8837 12.5271ZM3.10174 12.536C3.03145 12.536 2.96451 12.5233 2.90093 12.4979C2.83744 12.4725 2.77838 12.4325 2.72374 12.3779L1.6278 11.2875C1.57316 11.2329 1.53316 11.1738 1.50778 11.1103C1.48231 11.0467 1.46957 10.9798 1.46957 10.9095C1.46957 10.8392 1.48231 10.7728 1.50778 10.7103C1.53316 10.6479 1.57316 10.5894 1.6278 10.5347L4.67455 7.48797H5.90291L6.37628 7.0146L3.93635 4.57466H3.10509L1.48634 2.95591L2.93243 1.50997L4.55118 3.12872V3.95997L6.99097 6.39991L8.71632 4.67456L7.86495 3.82304L8.60301 3.08497H7.11784L6.79366 2.76633L8.65682 0.903015L8.97547 1.22166V2.71252L9.71353 1.97445L11.9079 4.15743C12.0619 4.30774 12.178 4.47899 12.2561 4.6712C12.3343 4.86341 12.3734 5.0668 12.3734 5.28137C12.3734 5.46988 12.3409 5.65145 12.2758 5.82606C12.2108 6.00067 12.1162 6.15938 11.992 6.3022L10.7749 5.08508L9.95255 5.90743L9.33451 5.28925L6.51205 8.1117V9.34225L3.47084 12.3779C3.4163 12.4325 3.3587 12.4725 3.29803 12.4979C3.23746 12.5233 3.17203 12.536 3.10174 12.536Z",fill:"currentColor"})})]}),N9=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_7541_22444",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_7541_22444)",children:r.jsx("path",{d:"M6.13623 11.9584C5.99341 11.9584 5.87169 11.908 5.77107 11.8074C5.67054 11.7069 5.62028 11.5852 5.62028 11.4423V7.44306H8.5368V11.4423C8.5368 11.5852 8.48653 11.7069 8.386 11.8074C8.28538 11.908 8.16366 11.9584 8.02084 11.9584H6.13623ZM5.62028 6.56252V4.37502H3.53821C3.37216 4.37502 3.23921 4.31071 3.13936 4.18208C3.03951 4.05346 3.01467 3.90797 3.06484 3.7456C3.22107 3.23412 3.52018 2.82228 3.96215 2.5101C4.40422 2.19783 4.89709 2.04169 5.44075 2.04169H8.02084C8.16366 2.04169 8.28538 2.092 8.386 2.19262C8.48653 2.29315 8.5368 2.41487 8.5368 2.55779V3.758L10.0355 2.25927C10.1021 2.19277 10.1792 2.13988 10.2667 2.1006C10.3542 2.06133 10.445 2.04169 10.5392 2.04169H10.6738C10.8017 2.04169 10.9094 2.08359 10.9969 2.1674C11.0844 2.2511 11.1281 2.35503 11.1281 2.47919V5.91196C11.1281 6.03601 11.0844 6.13994 10.9969 6.22375C10.9094 6.30746 10.8017 6.34931 10.6738 6.34931H10.5392C10.445 6.34931 10.3542 6.32972 10.2667 6.29054C10.1792 6.25126 10.1021 6.19833 10.0355 6.13173L8.5368 4.633V6.56252H5.62028Z",fill:"currentColor"})})]}),R9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M4.24488 9.94873L3.51732 12.8382C3.48633 12.976 3.4201 13.0844 3.31861 13.1635C3.21711 13.2425 3.09318 13.2821 2.94682 13.2821C2.75237 13.2821 2.59319 13.2046 2.46928 13.0497C2.34535 12.8948 2.31009 12.7244 2.36351 12.5385L3.01094 9.94873H0.635943C0.427609 9.94873 0.260144 9.86913 0.133547 9.70995C0.00694957 9.55077 -0.0296407 9.37129 0.023776 9.1715C0.0600955 9.02514 0.134609 8.90975 0.247318 8.82535C0.360026 8.74096 0.489568 8.69877 0.635943 8.69877H3.32344L4.1728 5.30131H1.7978C1.58946 5.30131 1.422 5.22172 1.2954 5.06254C1.1688 4.90336 1.13221 4.72388 1.18563 4.5241C1.22195 4.37773 1.29646 4.26234 1.40917 4.17795C1.52188 4.09355 1.65142 4.05135 1.7978 4.05135H4.4853L5.21286 1.16191C5.24383 1.02409 5.31007 0.915657 5.41157 0.836601C5.51305 0.757546 5.63698 0.718018 5.78336 0.718018C5.97779 0.718018 6.13697 0.795469 6.2609 0.950372C6.38483 1.10529 6.42009 1.27569 6.36667 1.46158L5.71923 4.05135H9.16476L9.89232 1.16191C9.9233 1.02409 9.98954 0.915657 10.091 0.836601C10.1925 0.757546 10.3165 0.718018 10.4628 0.718018C10.6573 0.718018 10.8164 0.795469 10.9404 0.950372C11.0643 1.10529 11.0995 1.27569 11.0461 1.46158L10.3987 4.05135H12.7737C12.982 4.05135 13.1495 4.13094 13.2761 4.29012C13.4027 4.4493 13.4393 4.62879 13.3859 4.82858C13.3495 4.97494 13.275 5.09032 13.1623 5.17473C13.0496 5.25911 12.9201 5.30131 12.7737 5.30131H10.0862L9.23684 8.69877H11.6118C11.8202 8.69877 11.9876 8.77836 12.1142 8.93754C12.2408 9.09672 12.2774 9.2762 12.224 9.47598C12.1877 9.62235 12.1132 9.73773 12.0005 9.82212C11.8878 9.90652 11.7582 9.94873 11.6118 9.94873H8.92434L8.19678 12.8382C8.1658 12.976 8.09957 13.0844 7.99807 13.1635C7.89658 13.2425 7.77265 13.2821 7.62628 13.2821C7.43185 13.2821 7.27267 13.2046 7.14874 13.0497C7.0248 12.8948 6.98955 12.7244 7.04296 12.5385L7.6904 9.94873H4.24488ZM4.55738 8.69877H8.0029L8.85226 5.30131H5.40673L4.55738 8.69877Z",fill:"currentColor"})}),T9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M4.24488 9.94873L3.51732 12.8382C3.48633 12.976 3.4201 13.0844 3.31861 13.1635C3.21711 13.2425 3.09318 13.2821 2.94682 13.2821C2.75237 13.2821 2.59319 13.2046 2.46928 13.0497C2.34535 12.8948 2.31009 12.7244 2.36351 12.5385L3.01094 9.94873H0.635943C0.427609 9.94873 0.260144 9.86913 0.133547 9.70995C0.00694957 9.55077 -0.0296407 9.37129 0.023776 9.1715C0.0600955 9.02514 0.134609 8.90975 0.247318 8.82535C0.360026 8.74096 0.489568 8.69877 0.635943 8.69877H3.32344L4.1728 5.30131H1.7978C1.58946 5.30131 1.422 5.22172 1.2954 5.06254C1.1688 4.90336 1.13221 4.72388 1.18563 4.5241C1.22195 4.37773 1.29646 4.26234 1.40917 4.17795C1.52188 4.09355 1.65142 4.05135 1.7978 4.05135H4.4853L5.21286 1.16191C5.24383 1.02409 5.31007 0.915657 5.41157 0.836601C5.51305 0.757546 5.63698 0.718018 5.78336 0.718018C5.97779 0.718018 6.13697 0.795469 6.2609 0.950372C6.38483 1.10529 6.42009 1.27569 6.36667 1.46158L5.71923 4.05135H9.16476L9.89232 1.16191C9.9233 1.02409 9.98954 0.915657 10.091 0.836601C10.1925 0.757546 10.3165 0.718018 10.4628 0.718018C10.6573 0.718018 10.8164 0.795469 10.9404 0.950372C11.0643 1.10529 11.0995 1.27569 11.0461 1.46158L10.3987 4.05135H12.7737C12.982 4.05135 13.1495 4.13094 13.2761 4.29012C13.4027 4.4493 13.4393 4.62879 13.3859 4.82858C13.3495 4.97494 13.275 5.09032 13.1623 5.17473C13.0496 5.25911 12.9201 5.30131 12.7737 5.30131H10.0862L9.23684 8.69877H11.6118C11.8202 8.69877 11.9876 8.77836 12.1142 8.93754C12.2408 9.09672 12.2774 9.2762 12.224 9.47598C12.1877 9.62235 12.1132 9.73773 12.0005 9.82212C11.8878 9.90652 11.7582 9.94873 11.6118 9.94873H8.92434L8.19678 12.8382C8.1658 12.976 8.09957 13.0844 7.99807 13.1635C7.89658 13.2425 7.77265 13.2821 7.62628 13.2821C7.43185 13.2821 7.27267 13.2046 7.14874 13.0497C7.0248 12.8948 6.98955 12.7244 7.04296 12.5385L7.6904 9.94873H4.24488ZM4.55738 8.69877H8.0029L8.85226 5.30131H5.40673L4.55738 8.69877Z",fill:"currentColor"})}),U9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 18 18",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M8.95833 14.0013C9.25 14.0013 9.49653 13.9006 9.69792 13.6992C9.89931 13.4978 10 13.2513 10 12.9596C10 12.668 9.89931 12.4214 9.69792 12.2201C9.49653 12.0187 9.25 11.918 8.95833 11.918C8.66667 11.918 8.42014 12.0187 8.21875 12.2201C8.01736 12.4214 7.91667 12.668 7.91667 12.9596C7.91667 13.2513 8.01736 13.4978 8.21875 13.6992C8.42014 13.9006 8.66667 14.0013 8.95833 14.0013ZM9 17.3346C7.84722 17.3346 6.76389 17.1159 5.75 16.6784C4.73611 16.2409 3.85417 15.6471 3.10417 14.8971C2.35417 14.1471 1.76042 13.2652 1.32292 12.2513C0.885416 11.2374 0.666666 10.1541 0.666666 9.0013C0.666666 7.84852 0.885416 6.76519 1.32292 5.7513C1.76042 4.73741 2.35417 3.85547 3.10417 3.10547C3.85417 2.35547 4.73611 1.76172 5.75 1.32422C6.76389 0.886719 7.84722 0.667969 9 0.667969C10.1528 0.667969 11.2361 0.886719 12.25 1.32422C13.2639 1.76172 14.1458 2.35547 14.8958 3.10547C15.6458 3.85547 16.2396 4.73741 16.6771 5.7513C17.1146 6.76519 17.3333 7.84852 17.3333 9.0013C17.3333 10.1541 17.1146 11.2374 16.6771 12.2513C16.2396 13.2652 15.6458 14.1471 14.8958 14.8971C14.1458 15.6471 13.2639 16.2409 12.25 16.6784C11.2361 17.1159 10.1528 17.3346 9 17.3346ZM9.08333 5.41797C9.43056 5.41797 9.73264 5.52908 9.98958 5.7513C10.2465 5.97352 10.375 6.2513 10.375 6.58464C10.375 6.89019 10.2812 7.16102 10.0937 7.39714C9.90625 7.63325 9.69444 7.85547 9.45833 8.0638C9.13889 8.34158 8.85764 8.64714 8.61458 8.98047C8.37153 9.3138 8.25 9.6888 8.25 10.1055C8.25 10.2999 8.32292 10.4631 8.46875 10.5951C8.61458 10.727 8.78472 10.793 8.97917 10.793C9.1875 10.793 9.36458 10.7235 9.51042 10.5846C9.65625 10.4457 9.75 10.2721 9.79167 10.0638C9.84722 9.77214 9.97222 9.51172 10.1667 9.28255C10.3611 9.05339 10.5694 8.83464 10.7917 8.6263C11.1111 8.32075 11.3854 7.98741 11.6146 7.6263C11.8437 7.26519 11.9583 6.86241 11.9583 6.41797C11.9583 5.70964 11.6701 5.12977 11.0937 4.67839C10.5174 4.227 9.84722 4.0013 9.08333 4.0013C8.55555 4.0013 8.05208 4.11241 7.57292 4.33464C7.09375 4.55686 6.72917 4.89714 6.47917 5.35547C6.38194 5.52214 6.35069 5.69922 6.38542 5.88672C6.42014 6.07422 6.51389 6.21658 6.66667 6.3138C6.86111 6.42491 7.0625 6.45964 7.27083 6.41797C7.47917 6.3763 7.65278 6.25825 7.79167 6.0638C7.94444 5.85547 8.13542 5.69575 8.36458 5.58464C8.59375 5.47352 8.83333 5.41797 9.08333 5.41797Z",fill:"currentColor"})}),O9=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_9540_19",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_9540_19)",children:r.jsx("path",{d:"M2.625 11.0833V5.923C2.625 5.75607 2.66233 5.59794 2.737 5.44861C2.81176 5.29918 2.91501 5.17614 3.04675 5.0795L6.36737 2.57788C6.55161 2.4373 6.76219 2.367 6.99913 2.367C7.23606 2.367 7.44722 2.4373 7.63263 2.57788L10.9532 5.0795C11.085 5.17614 11.1882 5.29918 11.263 5.44861C11.3377 5.59794 11.375 5.75607 11.375 5.923V11.0833C11.375 11.3219 11.2888 11.5274 11.1164 11.6998C10.9441 11.8721 10.7386 11.9583 10.5 11.9583H8.63785C8.48842 11.9583 8.3632 11.9078 8.26219 11.8067C8.16108 11.7056 8.11052 11.5804 8.11052 11.431V8.58169C8.11052 8.43236 8.06001 8.30714 7.959 8.20603C7.85799 8.10501 7.73276 8.0545 7.58333 8.0545H6.41667C6.26724 8.0545 6.14201 8.10501 6.041 8.20603C5.93999 8.30714 5.88948 8.43236 5.88948 8.58169V11.431C5.88948 11.5804 5.83892 11.7056 5.73781 11.8067C5.6368 11.9078 5.51158 11.9583 5.36215 11.9583H3.5C3.26142 11.9583 3.05594 11.8721 2.88356 11.6998C2.71119 11.5274 2.625 11.3219 2.625 11.0833Z",fill:"currentColor"})})]}),$9=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_7541_22519",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"15",children:r.jsx("rect",{y:"0.25",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_7541_22519)",children:r.jsx("path",{d:"M6.56249 5.32954V4.85719C6.17963 4.76074 5.86516 4.55755 5.61909 4.2476C5.37302 3.93756 5.24999 3.57726 5.24999 3.16669C5.24999 2.68135 5.42032 2.26835 5.76099 1.92769C6.10166 1.58702 6.51466 1.41669 6.99999 1.41669C7.48532 1.41669 7.89832 1.58702 8.23899 1.92769C8.57966 2.26835 8.74999 2.68135 8.74999 3.16669C8.74999 3.57726 8.62696 3.93756 8.38089 4.2476C8.13482 4.55755 7.82035 4.76074 7.43749 4.85719V5.32954L11.431 7.627C11.597 7.72267 11.7264 7.85202 11.8192 8.01506C11.9119 8.1781 11.9583 8.35534 11.9583 8.54677V9.45327C11.9583 9.6447 11.9119 9.82194 11.8192 9.98498C11.7264 10.148 11.597 10.2774 11.431 10.373L7.52718 12.62C7.36122 12.7158 7.18549 12.7637 6.99999 12.7637C6.81449 12.7637 6.63876 12.7158 6.4728 12.62L2.56899 10.373C2.40293 10.2774 2.27353 10.148 2.18078 9.98498C2.08803 9.82194 2.04166 9.6447 2.04166 9.45327V8.54677C2.04166 8.35534 2.08803 8.1781 2.18078 8.01506C2.27353 7.85202 2.40293 7.72267 2.56899 7.627L6.56249 5.32954ZM3.65253 8.01287L6.9103 9.89194C6.94015 9.9106 6.97005 9.91994 6.99999 9.91994C7.02993 9.91994 7.05983 9.9106 7.08968 9.89194L10.3419 8.01287L7.43749 6.33462V8.27085H6.56249V6.33462L3.65253 8.01287Z",fill:"currentColor"})})]}),A9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("g",{id:"Icons 20x20",children:r.jsx("path",{id:"Union","fill-rule":"evenodd","clip-rule":"evenodd",d:"M17.5661 2.056C17.7371 2.12703 17.873 2.26296 17.9441 2.434C17.9799 2.51816 17.999 2.60853 18.0001 2.7V6.9C18.0001 7.08565 17.9263 7.2637 17.795 7.39497C17.6638 7.52625 17.4857 7.6 17.3001 7.6C17.1144 7.6 16.9364 7.52625 16.8051 7.39497C16.6738 7.2637 16.6001 7.08565 16.6001 6.9V4.387L10.0971 10.897C10.032 10.9626 9.95456 11.0147 9.86926 11.0502C9.78396 11.0858 9.69246 11.1041 9.60006 11.1041C9.50765 11.1041 9.41615 11.0858 9.33085 11.0502C9.24555 11.0147 9.16813 10.9626 9.10306 10.897C9.03745 10.8319 8.98537 10.7545 8.94983 10.6692C8.91429 10.5839 8.896 10.4924 8.896 10.4C8.896 10.3076 8.91429 10.2161 8.94983 10.1308C8.98537 10.0455 9.03745 9.96807 9.10306 9.903L15.6131 3.4H13.1001C12.9144 3.4 12.7364 3.32625 12.6051 3.19497C12.4738 3.0637 12.4001 2.88565 12.4001 2.7C12.4001 2.51435 12.4738 2.3363 12.6051 2.20503C12.7364 2.07375 12.9144 2 13.1001 2H17.3001C17.3915 2.00111 17.4819 2.02013 17.5661 2.056ZM14.705 9.20463C14.8363 9.07336 15.0143 8.99961 15.2 8.99961C15.3857 8.99961 15.5637 9.07336 15.695 9.20463C15.8263 9.33591 15.9 9.51396 15.9 9.69961V13.8996C15.9 14.4566 15.6788 14.9907 15.2849 15.3845C14.8911 15.7784 14.357 15.9996 13.8 15.9996H6.1C5.54305 15.9996 5.0089 15.7784 4.61508 15.3845C4.22125 14.9907 4 14.4566 4 13.8996V6.19961C4 5.64265 4.22125 5.10851 4.61508 4.71469C5.0089 4.32086 5.54305 4.09961 6.1 4.09961H10.3C10.4857 4.09961 10.6637 4.17336 10.795 4.30463C10.9263 4.43591 11 4.61396 11 4.79961C11 4.98526 10.9263 5.16331 10.795 5.29458C10.6637 5.42586 10.4857 5.49961 10.3 5.49961H6.1C5.91435 5.49961 5.7363 5.57336 5.60503 5.70463C5.47375 5.83591 5.4 6.01396 5.4 6.19961V13.8996C5.4 14.0853 5.47375 14.2633 5.60503 14.3946C5.7363 14.5259 5.91435 14.5996 6.1 14.5996H13.8C13.9857 14.5996 14.1637 14.5259 14.295 14.3946C14.4263 14.2633 14.5 14.0853 14.5 13.8996V9.69961C14.5 9.51396 14.5737 9.33591 14.705 9.20463Z",fill:"currentColor"})})}),z9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 18 18",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("g",{id:"Menu icons",children:r.jsx("path",{id:"Union","fill-rule":"evenodd","clip-rule":"evenodd",d:"M16.2669 9.02431C16.2669 13.346 12.7635 16.8494 8.44179 16.8494C7.27934 16.8494 6.1761 16.5959 5.18431 16.1412L1.18187 17.1418C0.90723 17.2105 0.658457 16.9617 0.727118 16.6871L1.66434 12.9382C0.998057 11.7869 0.616699 10.4502 0.616699 9.02431C0.616699 4.70263 4.12011 1.19922 8.44179 1.19922C12.7635 1.19922 16.2669 4.70263 16.2669 9.02431ZM4.73511 7.77304C4.73511 7.31812 5.10389 6.94934 5.5588 6.94934H11.3247C11.7796 6.94934 12.1484 7.31812 12.1484 7.77304C12.1484 8.22795 11.7796 8.59673 11.3247 8.59673H5.5588C5.10389 8.59673 4.73511 8.22795 4.73511 7.77304ZM4.73505 11.068C4.73505 10.613 5.10383 10.2443 5.55874 10.2443H8.85352C9.30843 10.2443 9.67721 10.613 9.67721 11.068C9.67721 11.5229 9.30843 11.8917 8.85352 11.8917H5.55874C5.10383 11.8917 4.73505 11.5229 4.73505 11.068Z",fill:"currentColor"})})}),F9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 12 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M1.33317 15.5L0.166504 14.3333L4.18734 10.2917C4.50678 9.97222 4.74984 9.61111 4.9165 9.20833C5.08317 8.80556 5.1665 8.38194 5.1665 7.9375L5.1665 3.6875L3.83317 5L2.6665 3.83333L5.99984 0.5L9.33317 3.83333L8.1665 5L6.83317 3.6875L6.83317 7.9375C6.83317 8.38194 6.9165 8.80556 7.08317 9.20833C7.24984 9.61111 7.49289 9.97222 7.81234 10.2917L11.8332 14.3333L10.6665 15.5L5.99984 10.8333L1.33317 15.5Z",fill:"currentColor"})}),D9=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_9540_49",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_9540_49)",children:r.jsx("path",{d:"M7.02162 12.3023C6.84934 12.3023 6.70438 12.2441 6.58675 12.1276C6.4692 12.0112 6.41043 11.8668 6.41043 11.6945V11.0377C5.96593 10.9381 5.57665 10.7639 5.2426 10.515C4.90854 10.2661 4.63827 9.92181 4.43177 9.48207C4.35904 9.33196 4.35836 9.1746 4.42972 9.01001C4.50109 8.84531 4.62636 8.72777 4.80554 8.65738C4.95331 8.59438 5.10532 8.5974 5.26156 8.66642C5.41789 8.73545 5.5419 8.84983 5.63358 9.00957C5.79662 9.28733 6.00103 9.49748 6.24681 9.64001C6.49259 9.78263 6.78975 9.85395 7.13829 9.85395C7.5299 9.85395 7.85671 9.76922 8.11872 9.59976C8.38064 9.4304 8.5116 9.16658 8.5116 8.80832C8.5116 8.48428 8.40349 8.22319 8.18727 8.02505C7.97104 7.82691 7.47638 7.60495 6.70327 7.35917C5.87649 7.10134 5.30521 6.78488 4.98943 6.4098C4.67365 6.03481 4.51577 5.58015 4.51577 5.04582C4.51577 4.42321 4.71702 3.93107 5.11952 3.5694C5.52211 3.20783 5.95242 2.99574 6.41043 2.93313V2.30547C6.41043 2.13319 6.4692 1.98881 6.58675 1.87234C6.70438 1.75587 6.84934 1.69763 7.02162 1.69763C7.19613 1.69763 7.34104 1.75587 7.45635 1.87234C7.57165 1.98881 7.62931 2.13319 7.62931 2.30547V2.93313C7.99875 2.99847 8.32134 3.12106 8.59706 3.30092C8.87278 3.48078 9.10047 3.7043 9.28014 3.97147C9.37688 4.10942 9.39506 4.26376 9.33468 4.43449C9.27421 4.60511 9.15322 4.72795 8.9717 4.80301C8.83093 4.86367 8.68295 4.86669 8.52779 4.81205C8.37262 4.75741 8.22022 4.65737 8.0706 4.51192C7.94888 4.38515 7.80528 4.28763 7.63981 4.21938C7.47434 4.15104 7.27216 4.11686 7.03329 4.11686C6.62184 4.11686 6.31185 4.2047 6.10331 4.38038C5.89486 4.55597 5.79064 4.77428 5.79064 5.03532C5.79064 5.33992 5.92772 5.58108 6.20189 5.7588C6.47615 5.93652 6.97763 6.1298 7.70631 6.33863C8.38647 6.53774 8.90321 6.85167 9.25652 7.28042C9.60982 7.70917 9.78647 8.20875 9.78647 8.77915C9.78647 9.47876 9.57997 10.0119 9.16697 10.3785C8.75397 10.7452 8.24142 10.9747 7.62931 11.0668V11.6945C7.62931 11.8668 7.57107 12.0112 7.4546 12.1276C7.33822 12.2441 7.1939 12.3023 7.02162 12.3023Z",fill:"currentColor"})})]}),q9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"volume_mute",children:[r.jsx("mask",{id:"mask0_1483_75386",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:r.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),r.jsxs("g",{mask:"url(#mask0_1483_75386)",children:[r.jsx("path",{id:"volume_up_2",d:"M14.0384 20.1095V18.5595C15.4807 18.1005 16.6425 17.2672 17.5239 16.0595C18.4053 14.8518 18.8461 13.4903 18.8461 11.9749C18.8461 10.4595 18.4053 9.09799 17.5239 7.89031C16.6425 6.68261 15.4807 5.84927 14.0384 5.39031V3.84033C15.8999 4.33905 17.4165 5.33841 18.5883 6.83841C19.7601 8.33839 20.346 10.0506 20.346 11.9749C20.346 13.8993 19.7601 15.6114 18.5883 17.1114C17.4165 18.6114 15.8999 19.6108 14.0384 20.1095ZM3.65381 14.4999V9.49993H7.36531L11.6537 5.21153V18.7883L7.36531 14.4999H3.65381ZM14.0384 15.6537V8.29608C14.7127 8.66275 15.2339 9.17909 15.6018 9.84511C15.9698 10.5111 16.1537 11.2294 16.1537 11.9999C16.1537 12.7602 15.9682 13.4675 15.597 14.122C15.2259 14.7765 14.7063 15.2871 14.0384 15.6537Z",fill:"currentColor"}),r.jsx("path",{id:"mute_line",d:"M6 21L21 4",stroke:"#808080","stroke-width":"2","stroke-linecap":"round"})]})]})}),G9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 10 10",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("circle",{cx:"5",cy:"5",r:"4.5",fill:"currentColor",stroke:"#6B7A8D"})}),W9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"notes",children:[r.jsx("mask",{id:"mask0_1473_73722",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"16",height:"16",children:r.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_1473_73722)",children:r.jsx("path",{id:"notes_2",d:"M2.83337 11.7564C2.69171 11.7564 2.57296 11.7085 2.47712 11.6126C2.38129 11.5167 2.33337 11.3979 2.33337 11.2562C2.33337 11.1144 2.38129 10.9957 2.47712 10.9C2.57296 10.8043 2.69171 10.7564 2.83337 10.7564H9.16668C9.30834 10.7564 9.42709 10.8043 9.52293 10.9002C9.61876 10.9961 9.66668 11.1149 9.66668 11.2566C9.66668 11.3983 9.61876 11.5171 9.52293 11.6128C9.42709 11.7085 9.30834 11.7564 9.16668 11.7564H2.83337ZM2.83337 8.49997C2.69171 8.49997 2.57296 8.45204 2.47712 8.35617C2.38129 8.2603 2.33337 8.1415 2.33337 7.99977C2.33337 7.85804 2.38129 7.73931 2.47712 7.64359C2.57296 7.54787 2.69171 7.50001 2.83337 7.50001H13.1667C13.3083 7.50001 13.4271 7.54794 13.5229 7.64381C13.6188 7.73969 13.6667 7.85849 13.6667 8.00021C13.6667 8.14194 13.6188 8.26067 13.5229 8.35639C13.4271 8.45211 13.3083 8.49997 13.1667 8.49997H2.83337ZM2.83337 5.24357C2.69171 5.24357 2.57296 5.19564 2.47712 5.09976C2.38129 5.00389 2.33337 4.88509 2.33337 4.74336C2.33337 4.60164 2.38129 4.48291 2.47712 4.38719C2.57296 4.29146 2.69171 4.24359 2.83337 4.24359H13.1667C13.3083 4.24359 13.4271 4.29153 13.5229 4.38741C13.6188 4.48329 13.6667 4.60209 13.6667 4.74381C13.6667 4.88554 13.6188 5.00427 13.5229 5.09999C13.4271 5.19571 13.3083 5.24357 13.1667 5.24357H2.83337Z",fill:"currentColor"})})]})}),X9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M1.16675 4.66669V7.0006H1.75008V10.5H1.16675V12.25H10.5001L12.2501 12.2506L12.8334 12.25V10.5H12.2501V7.0006H12.8334V4.66669L7.00008 1.16669L1.16675 4.66669ZM3.50008 10.5V7.0006H4.66675V10.5H3.50008ZM6.41675 10.5V7.0006H7.58342V10.5H6.41675ZM10.5001 10.5H9.33342V7.0006H10.5001V10.5ZM8.16675 4.66669C8.16671 4.81993 8.13649 4.97167 8.07781 5.11324C8.01913 5.25481 7.93314 5.38343 7.82475 5.49177C7.71636 5.6001 7.58769 5.68603 7.4461 5.74464C7.3045 5.80325 7.15275 5.83339 6.9995 5.83335C6.84625 5.83332 6.69451 5.80309 6.55294 5.74441C6.41138 5.68573 6.28275 5.59974 6.17442 5.49135C6.06608 5.38296 5.98016 5.2543 5.92155 5.1127C5.86294 4.97111 5.83279 4.81935 5.83283 4.6661C5.83291 4.35661 5.95593 4.05982 6.17483 3.84103C6.39373 3.62223 6.69059 3.49936 7.00008 3.49944C7.30958 3.49951 7.60637 3.62254 7.82516 3.84144C8.04395 4.06034 8.16683 4.35719 8.16675 4.66669Z",fill:"currentColor"})}),Y9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 22 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M17 7H15C14.7167 7 14.4792 6.90417 14.2875 6.7125C14.0958 6.52083 14 6.28333 14 6C14 5.71667 14.0958 5.47917 14.2875 5.2875C14.4792 5.09583 14.7167 5 15 5H17V3C17 2.71667 17.0958 2.47917 17.2875 2.2875C17.4792 2.09583 17.7167 2 18 2C18.2833 2 18.5208 2.09583 18.7125 2.2875C18.9042 2.47917 19 2.71667 19 3V5H21C21.2833 5 21.5208 5.09583 21.7125 5.2875C21.9042 5.47917 22 5.71667 22 6C22 6.28333 21.9042 6.52083 21.7125 6.7125C21.5208 6.90417 21.2833 7 21 7H19V9C19 9.28333 18.9042 9.52083 18.7125 9.7125C18.5208 9.90417 18.2833 10 18 10C17.7167 10 17.4792 9.90417 17.2875 9.7125C17.0958 9.52083 17 9.28333 17 9V7ZM8 8C6.9 8 5.95833 7.60833 5.175 6.825C4.39167 6.04167 4 5.1 4 4C4 2.9 4.39167 1.95833 5.175 1.175C5.95833 0.391667 6.9 0 8 0C9.1 0 10.0417 0.391667 10.825 1.175C11.6083 1.95833 12 2.9 12 4C12 5.1 11.6083 6.04167 10.825 6.825C10.0417 7.60833 9.1 8 8 8ZM0 14V13.2C0 12.6333 0.145833 12.1125 0.4375 11.6375C0.729167 11.1625 1.11667 10.8 1.6 10.55C2.63333 10.0333 3.68333 9.64583 4.75 9.3875C5.81667 9.12917 6.9 9 8 9C9.1 9 10.1833 9.12917 11.25 9.3875C12.3167 9.64583 13.3667 10.0333 14.4 10.55C14.8833 10.8 15.2708 11.1625 15.5625 11.6375C15.8542 12.1125 16 12.6333 16 13.2V14C16 14.55 15.8042 15.0208 15.4125 15.4125C15.0208 15.8042 14.55 16 14 16H2C1.45 16 0.979167 15.8042 0.5875 15.4125C0.195833 15.0208 0 14.55 0 14Z",fill:"currentColor"})}),K9=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_7640_2772",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_7640_2772)",children:r.jsx("path",{d:"M3.51334 10.0871C4.00917 9.71924 4.54934 9.42869 5.13384 9.21548C5.71824 9.00237 6.34027 8.89581 6.99992 8.89581C7.65957 8.89581 8.2816 9.00237 8.866 9.21548C9.4505 9.42869 9.99067 9.71924 10.4865 10.0871C10.8491 9.68851 11.1365 9.2271 11.3485 8.70288C11.5606 8.17865 11.6666 7.61102 11.6666 6.99998C11.6666 5.70692 11.2121 4.60588 10.303 3.69685C9.39402 2.78783 8.29297 2.33331 6.99992 2.33331C5.70686 2.33331 4.60582 2.78783 3.69679 3.69685C2.78777 4.60588 2.33325 5.70692 2.33325 6.99998C2.33325 7.61102 2.43927 8.17865 2.65131 8.70288C2.86336 9.2271 3.1507 9.68851 3.51334 10.0871ZM6.99992 7.43748C6.46743 7.43748 6.01836 7.2546 5.65271 6.88885C5.28696 6.5232 5.10409 6.07413 5.10409 5.54165C5.10409 5.00916 5.28696 4.56009 5.65271 4.19444C6.01836 3.82869 6.46743 3.64581 6.99992 3.64581C7.5324 3.64581 7.98147 3.82869 8.34713 4.19444C8.71288 4.56009 8.89575 5.00916 8.89575 5.54165C8.89575 6.07413 8.71288 6.5232 8.34713 6.88885C7.98147 7.2546 7.5324 7.43748 6.99992 7.43748ZM6.99992 12.5416C6.2304 12.5416 5.50853 12.3969 4.83429 12.1075C4.16006 11.8181 3.57356 11.4239 3.07481 10.9251C2.57597 10.4263 2.18183 9.83984 1.8924 9.1656C1.60297 8.49137 1.45825 7.76949 1.45825 6.99998C1.45825 6.23047 1.60297 5.50859 1.8924 4.83435C2.18183 4.16012 2.57597 3.57363 3.07481 3.07488C3.57356 2.57603 4.16006 2.18189 4.83429 1.89246C5.50853 1.60303 6.2304 1.45831 6.99992 1.45831C7.76943 1.45831 8.49131 1.60303 9.16554 1.89246C9.83978 2.18189 10.4263 2.57603 10.925 3.07488C11.4239 3.57363 11.818 4.16012 12.1074 4.83435C12.3969 5.50859 12.5416 6.23047 12.5416 6.99998C12.5416 7.76949 12.3969 8.49137 12.1074 9.1656C11.818 9.83984 11.4239 10.4263 10.925 10.9251C10.4263 11.4239 9.83978 11.8181 9.16554 12.1075C8.49131 12.3969 7.76943 12.5416 6.99992 12.5416Z",fill:"currentColor"})})]}),Q9=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_7541_22741",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"15",children:r.jsx("rect",{y:"0.25",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_7541_22741)",children:r.jsx("path",{d:"M4.26283 13.375C3.96815 13.375 3.71873 13.2729 3.51456 13.0687C3.3104 12.8646 3.20831 12.6152 3.20831 12.3205V2.17952C3.20831 1.88484 3.3104 1.63542 3.51456 1.43125C3.71873 1.22708 3.96815 1.125 4.26283 1.125H9.73713C10.0318 1.125 10.2812 1.22708 10.4854 1.43125C10.6896 1.63542 10.7916 1.88484 10.7916 2.17952V12.3205C10.7916 12.6152 10.6896 12.8646 10.4854 13.0687C10.2812 13.2729 10.0318 13.375 9.73713 13.375H4.26283ZM6.99998 12.0737C7.1428 12.0737 7.26452 12.0234 7.36515 11.9228C7.46567 11.8223 7.51594 11.7005 7.51594 11.5576C7.51594 11.4148 7.46567 11.2931 7.36515 11.1926C7.26452 11.092 7.1428 11.0417 6.99998 11.0417C6.85716 11.0417 6.73544 11.092 6.63481 11.1926C6.53429 11.2931 6.48402 11.4148 6.48402 11.5576C6.48402 11.7005 6.53429 11.8223 6.63481 11.9228C6.73544 12.0234 6.85716 12.0737 6.99998 12.0737ZM4.08331 9.7404H9.91665V3.60417H4.08331V9.7404Z",fill:"currentColor"})})]}),J9=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_7640_3741",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_7640_3741)",children:r.jsx("path",{d:"M6.99992 12.2151C6.88627 12.2151 6.77262 12.1955 6.65897 12.1564C6.54522 12.1171 6.44235 12.0563 6.35038 11.9741C5.82694 11.4916 5.33708 10.9948 4.88082 10.4836C4.42465 9.97255 4.02813 9.4616 3.69126 8.95079C3.35428 8.43999 3.08765 7.9337 2.89136 7.43194C2.69507 6.93008 2.59692 6.44542 2.59692 5.97798C2.59692 4.63184 3.03233 3.54203 3.90315 2.70854C4.77407 1.87506 5.80633 1.45831 6.99992 1.45831C8.19352 1.45831 9.22578 1.87506 10.0967 2.70854C10.9675 3.54203 11.4029 4.63184 11.4029 5.97798C11.4029 6.44542 11.3048 6.92911 11.1085 7.42902C10.9122 7.92904 10.6465 8.43537 10.3115 8.94802C9.97638 9.46067 9.58074 9.97163 9.12457 10.4809C8.6684 10.9902 8.17855 11.4861 7.65501 11.9684C7.5644 12.0506 7.46139 12.1123 7.34599 12.1534C7.23068 12.1946 7.11533 12.2151 6.99992 12.2151ZM7.00094 6.92138C7.29115 6.92138 7.53926 6.81803 7.74528 6.61133C7.95139 6.40464 8.05444 6.15619 8.05444 5.86598C8.05444 5.57577 7.9511 5.32761 7.7444 5.1215C7.53771 4.91549 7.28921 4.81248 6.9989 4.81248C6.70869 4.81248 6.46058 4.91583 6.25457 5.12252C6.04846 5.32922 5.9454 5.57772 5.9454 5.86802C5.9454 6.15823 6.04875 6.40634 6.25544 6.61236C6.46214 6.81837 6.71064 6.92138 7.00094 6.92138Z",fill:"currentColor"})})]}),e7=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 21 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_3553_6463",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"21",height:"20",children:r.jsx("rect",{x:"0.5",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{children:r.jsx("path",{d:"M9.87516 10.625H5.7085C5.53141 10.625 5.38298 10.5651 5.26318 10.4453C5.14339 10.3254 5.0835 10.1769 5.0835 9.99975C5.0835 9.82258 5.14339 9.67417 5.26318 9.55452C5.38298 9.43487 5.53141 9.37504 5.7085 9.37504H9.87516V5.20837C9.87516 5.03129 9.93508 4.88285 10.0549 4.76306C10.1748 4.64327 10.3233 4.58337 10.5004 4.58337C10.6776 4.58337 10.826 4.64327 10.9456 4.76306C11.0653 4.88285 11.1251 5.03129 11.1251 5.20837V9.37504H15.2918C15.4689 9.37504 15.6173 9.43496 15.7371 9.55479C15.8569 9.67464 15.9168 9.82314 15.9168 10.0003C15.9168 10.1775 15.8569 10.3259 15.7371 10.4455C15.6173 10.5652 15.4689 10.625 15.2918 10.625H11.1251V14.7917C11.1251 14.9688 11.0652 15.1172 10.9454 15.237C10.8255 15.3568 10.677 15.4167 10.4999 15.4167C10.3227 15.4167 10.1743 15.3568 10.0546 15.237C9.93499 15.1172 9.87516 14.9688 9.87516 14.7917V10.625Z",fill:"currentColor"})})]}),t7=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{opacity:"0.4",children:[r.jsx("mask",{id:"mask0_5162_13105",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_5162_13105)",children:r.jsx("path",{d:"M19.7615 21.8691L15.7154 17.8537C15.1256 18.0819 14.5195 18.2467 13.8971 18.348C13.2747 18.4493 12.6423 18.4999 12 18.4999C9.89486 18.4999 7.96698 17.94 6.21635 16.8201C4.46572 15.7002 3.07822 14.2243 2.05385 12.3922C1.97052 12.2486 1.90963 12.1025 1.87118 11.9538C1.83271 11.8051 1.81348 11.6538 1.81348 11.4999C1.81348 11.3461 1.83431 11.1932 1.87598 11.0413C1.91764 10.8894 1.98014 10.7448 2.06348 10.6076C2.46219 9.9448 2.88591 9.30345 3.33463 8.68357C3.78336 8.0637 4.30516 7.51531 4.90003 7.0384L2.13078 4.2384L3.18463 3.18457L20.8153 20.8153L19.7615 21.8691ZM12 15.5768C12.2218 15.5768 12.4336 15.5637 12.6356 15.5374C12.8375 15.5111 13.0346 15.4537 13.2269 15.3653L8.13463 10.273C8.05258 10.4653 7.99681 10.6624 7.96733 10.8643C7.93783 11.0663 7.92308 11.2781 7.92308 11.4999C7.92308 12.6345 8.31891 13.5977 9.11058 14.3893C9.90224 15.181 10.8654 15.5768 12 15.5768ZM18.9538 16.0845L15.8173 12.973C15.9019 12.7345 15.9663 12.4941 16.0105 12.2518C16.0548 12.0095 16.0769 11.7589 16.0769 11.4999C16.0769 10.3653 15.681 9.40219 14.8894 8.61052C14.0977 7.81885 13.1346 7.42302 12 7.42302C11.741 7.42302 11.4904 7.44674 11.2481 7.49417C11.0058 7.5416 10.7686 7.61917 10.5366 7.72687L8.03463 5.23457C8.67051 4.98329 9.3189 4.79803 9.9798 4.6788C10.6407 4.55956 11.3141 4.49995 12 4.49995C14.1115 4.49995 16.0484 5.06245 17.8105 6.18745C19.5727 7.31245 20.9628 8.79738 21.9807 10.6422C22.0576 10.7692 22.1169 10.9054 22.1586 11.0509C22.2003 11.1964 22.2211 11.3461 22.2211 11.4999C22.2211 11.6538 22.2028 11.8034 22.1663 11.9489C22.1297 12.0945 22.073 12.2307 21.9961 12.3576C21.6089 13.0832 21.1673 13.7605 20.6711 14.3893C20.175 15.0182 19.6025 15.5832 18.9538 16.0845ZM14.6846 11.8499L11.675 8.84992C12.0955 8.76659 12.5051 8.79671 12.9038 8.9403C13.3025 9.0839 13.6468 9.30761 13.9365 9.61145C14.2327 9.91145 14.4465 10.2563 14.5779 10.6461C14.7093 11.0358 14.7449 11.4371 14.6846 11.8499Z",fill:"currentColor"})})]})}),n7=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_5162_13106",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_5162_13106)",children:r.jsx("path",{d:"M12.0023 15.5769C13.1354 15.5769 14.0978 15.1803 14.8895 14.3871C15.6811 13.5939 16.077 12.6308 16.077 11.4977C16.077 10.3646 15.6804 9.40224 14.8872 8.61058C14.094 7.81891 13.1309 7.42308 11.9978 7.42308C10.8647 7.42308 9.90234 7.81966 9.11067 8.61282C8.31901 9.40601 7.92317 10.3692 7.92317 11.5023C7.92317 12.6353 8.31976 13.5977 9.11293 14.3894C9.90611 15.181 10.8692 15.5769 12.0023 15.5769ZM12.0001 14.2C11.2501 14.2 10.6126 13.9375 10.0876 13.4125C9.56258 12.8875 9.30007 12.25 9.30007 11.5C9.30007 10.75 9.56258 10.1125 10.0876 9.58748C10.6126 9.06248 11.2501 8.79998 12.0001 8.79998C12.7501 8.79998 13.3876 9.06248 13.9126 9.58748C14.4376 10.1125 14.7001 10.75 14.7001 11.5C14.7001 12.25 14.4376 12.8875 13.9126 13.4125C13.3876 13.9375 12.7501 14.2 12.0001 14.2ZM12.0014 18.5C9.70183 18.5 7.60651 17.8657 5.71547 16.5971C3.82446 15.3285 2.43216 13.6295 1.53857 11.5C2.43216 9.37049 3.82401 7.67146 5.71412 6.40288C7.60422 5.13429 9.69908 4.5 11.9987 4.5C14.2983 4.5 16.3936 5.13429 18.2847 6.40288C20.1757 7.67146 21.568 9.37049 22.4616 11.5C21.568 13.6295 20.1761 15.3285 18.286 16.5971C16.3959 17.8657 14.3011 18.5 12.0014 18.5Z",fill:"currentColor"})})]}),r7=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_7541_22801",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"15",children:r.jsx("rect",{y:"0.25",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_7541_22801)",children:r.jsx("path",{d:"M7.58335 12.2196V11.1089H8.69387V12.2196H7.58335ZM6.47283 11.1089V8.36054H7.58335V11.1089H6.47283ZM10.8589 9.24677V7.25002H11.9696V9.24677H10.8589ZM9.74839 7.25002V6.1395H10.8589V7.25002H9.74839ZM3.14112 8.36054V7.25002H4.25164V8.36054H3.14112ZM2.03046 7.25002V6.1395H3.14112V7.25002H2.03046ZM7.00002 3.39112V2.28046H8.11054V3.39112H7.00002ZM2.72594 4.91669H4.66669V2.97594H2.72594V4.91669ZM2.03046 5.08498V2.80779C2.03046 2.65836 2.08101 2.53314 2.18212 2.43212C2.28314 2.33101 2.40836 2.28046 2.55779 2.28046H4.83498C4.98431 2.28046 5.10953 2.33101 5.21064 2.43212C5.31166 2.53314 5.36216 2.65836 5.36216 2.80779V5.08498C5.36216 5.23431 5.31166 5.35953 5.21064 5.46064C5.10953 5.56166 4.98431 5.61217 4.83498 5.61217H2.55779C2.40836 5.61217 2.28314 5.56166 2.18212 5.46064C2.08101 5.35953 2.03046 5.23431 2.03046 5.08498ZM2.72594 11.5241H4.7116V9.58335H2.72594V11.5241ZM2.03046 11.6922V9.41506C2.03046 9.26573 2.08101 9.14051 2.18212 9.03939C2.28314 8.93838 2.40836 8.88787 2.55779 8.88787H4.87989C5.02923 8.88787 5.15445 8.93838 5.25556 9.03939C5.35657 9.14051 5.40708 9.26573 5.40708 9.41506V11.6922C5.40708 11.8417 5.35657 11.9669 5.25556 12.0679C5.15445 12.169 5.02923 12.2196 4.87989 12.2196H2.55779C2.40836 12.2196 2.28314 12.169 2.18212 12.0679C2.08101 11.9669 2.03046 11.8417 2.03046 11.6922ZM9.33335 4.91669H11.2741V2.97594H9.33335V4.91669ZM8.63787 5.08498V2.80779C8.63787 2.65836 8.68838 2.53314 8.78939 2.43212C8.89051 2.33101 9.01573 2.28046 9.16506 2.28046H11.4422C11.5917 2.28046 11.7169 2.33101 11.8179 2.43212C11.919 2.53314 11.9696 2.65836 11.9696 2.80779V5.08498C11.9696 5.23431 11.919 5.35953 11.8179 5.46064C11.7169 5.56166 11.5917 5.61217 11.4422 5.61217H9.16506C9.01573 5.61217 8.89051 5.56166 8.78939 5.46064C8.68838 5.35953 8.63787 5.23431 8.63787 5.08498ZM9.74839 12.2196V10.3573H8.63787V9.24677H10.8589V11.1089H11.9696V12.2196H9.74839ZM7.58335 8.36054V7.25002H9.74839V8.36054H7.58335ZM5.36216 8.36054V7.25002H4.25164V6.1395H7.58335V7.25002H6.47283V8.36054H5.36216ZM5.8895 5.61217V3.39112H7.00002V4.50164H8.11054V5.61217H5.8895ZM3.2925 4.35012V3.5425H4.10012V4.35012H3.2925ZM3.33173 10.9183V10.1105H4.1395V10.9183H3.33173ZM9.89991 4.35012V3.5425H10.7075V4.35012H9.89991Z",fill:"currentColor"})})]}),i7=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_5099_7163",maskUnits:"userSpaceOnUse",x:"2",y:"2",width:"16",height:"16",children:r.jsx("rect",{x:"2",y:"2",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_5099_7163)",children:r.jsx("path",{d:"M10 16.6667C9.16667 16.6667 8.38611 16.5083 7.65833 16.1917C6.93056 15.875 6.29722 15.4472 5.75833 14.9083C5.21944 14.3695 4.79167 13.7361 4.475 13.0083C4.15833 12.2806 4 11.5 4 10.6667C4 10.4778 4.06389 10.3195 4.19167 10.1917C4.31944 10.0639 4.47778 10 4.66667 10C4.85556 10 5.01389 10.0639 5.14167 10.1917C5.26944 10.3195 5.33333 10.4778 5.33333 10.6667C5.33333 11.9667 5.78611 13.0695 6.69167 13.975C7.59722 14.8806 8.7 15.3333 10 15.3333C11.3 15.3333 12.4028 14.8806 13.3083 13.975C14.2139 13.0695 14.6667 11.9667 14.6667 10.6667C14.6667 9.36667 14.2139 8.2639 13.3083 7.35834C12.4028 6.45279 11.3 6.00001 10 6.00001H9.9L10.4667 6.56667C10.6 6.70001 10.6639 6.85556 10.6583 7.03334C10.6528 7.21112 10.5889 7.36667 10.4667 7.50001C10.3333 7.63334 10.175 7.70279 9.99167 7.70834C9.80833 7.7139 9.65 7.65001 9.51667 7.51667L7.8 5.80001C7.66667 5.66667 7.6 5.51112 7.6 5.33334C7.6 5.15556 7.66667 5.00001 7.8 4.86667L9.51667 3.15001C9.65 3.01667 9.80833 2.95279 9.99167 2.95834C10.175 2.9639 10.3333 3.03334 10.4667 3.16667C10.5889 3.30001 10.6528 3.45556 10.6583 3.63334C10.6639 3.81112 10.6 3.96667 10.4667 4.10001L9.9 4.66667H10C10.8333 4.66667 11.6139 4.82501 12.3417 5.14167C13.0694 5.45834 13.7028 5.88612 14.2417 6.42501C14.7806 6.9639 15.2083 7.59723 15.525 8.32501C15.8417 9.05279 16 9.83334 16 10.6667C16 11.5 15.8417 12.2806 15.525 13.0083C15.2083 13.7361 14.7806 14.3695 14.2417 14.9083C13.7028 15.4472 13.0694 15.875 12.3417 16.1917C11.6139 16.5083 10.8333 16.6667 10 16.6667Z",fill:"currentColor"})})]}),s7=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_7541_22828",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"15",children:r.jsx("rect",{y:"0.25",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_7541_22828)",children:r.jsx("path",{d:"M5.24999 7.10419C5.53339 7.10419 5.77441 7.00492 5.97303 6.8064C6.17156 6.60777 6.27082 6.36676 6.27082 6.08335C6.27082 5.79995 6.17156 5.55894 5.97303 5.36031C5.77441 5.16178 5.53339 5.06252 5.24999 5.06252C4.96659 5.06252 4.72557 5.16178 4.52695 5.36031C4.32842 5.55894 4.22916 5.79995 4.22916 6.08335C4.22916 6.36676 4.32842 6.60777 4.52695 6.8064C4.72557 7.00492 4.96659 7.10419 5.24999 7.10419ZM8.74999 7.10419C9.03339 7.10419 9.27441 7.00492 9.47303 6.8064C9.67156 6.60777 9.77082 6.36676 9.77082 6.08335C9.77082 5.79995 9.67156 5.55894 9.47303 5.36031C9.27441 5.16178 9.03339 5.06252 8.74999 5.06252C8.46659 5.06252 8.22557 5.16178 8.02695 5.36031C7.82842 5.55894 7.72916 5.79995 7.72916 6.08335C7.72916 6.36676 7.82842 6.60777 8.02695 6.8064C8.22557 7.00492 8.46659 7.10419 8.74999 7.10419ZM5.10416 12.2084V10.2004C5.10416 10.148 5.12098 10.105 5.15461 10.0713C5.18825 10.0377 5.23127 10.0209 5.28368 10.0209H6.56249V12.2084H5.10416ZM7.43749 12.2084V10.0209H8.7163C8.76871 10.0209 8.81173 10.0377 8.84537 10.0713C8.879 10.105 8.89582 10.148 8.89582 10.2004V12.2084H7.43749ZM3.09618 12.2084C2.80616 12.2084 2.55791 12.1051 2.35141 11.8986C2.14491 11.6921 2.04166 11.4438 2.04166 11.1538V5.50002C2.04166 4.60878 2.35359 3.85128 2.97747 3.2275C3.60125 2.60362 4.35875 2.29169 5.24999 2.29169H8.74999C9.64123 2.29169 10.3987 2.60362 11.0225 3.2275C11.6464 3.85128 11.9583 4.60878 11.9583 5.50002V11.1538C11.9583 11.4438 11.8551 11.6921 11.6486 11.8986C11.4421 12.1051 11.1938 12.2084 10.9038 12.2084H9.77082V10.2004C9.77082 9.91036 9.66757 9.6621 9.46107 9.4556C9.25457 9.2491 9.00632 9.14585 8.7163 9.14585H5.28368C4.99366 9.14585 4.74541 9.2491 4.53891 9.4556C4.33241 9.6621 4.22916 9.91036 4.22916 10.2004V12.2084H3.09618Z",fill:"currentColor"})})]}),o7=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_7541_22840",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"15",children:r.jsx("rect",{y:"0.25",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_7541_22840)",children:r.jsx("path",{d:"M3.09619 12.2084C2.80151 12.2084 2.55209 12.1063 2.34792 11.9021C2.14376 11.6979 2.04167 11.4485 2.04167 11.1538V3.34621C2.04167 3.05153 2.14376 2.8021 2.34792 2.59794C2.55209 2.39377 2.80151 2.29169 3.09619 2.29169H9.35682C9.49915 2.29169 9.63478 2.31901 9.76369 2.37365C9.89261 2.42819 10.0049 2.50334 10.1006 2.5991L11.6509 4.14946C11.7467 4.24512 11.8218 4.35742 11.8764 4.48633C11.931 4.61525 11.9583 4.75087 11.9583 4.89321V11.1538C11.9583 11.4485 11.8563 11.6979 11.6521 11.9021C11.4479 12.1063 11.1985 12.2084 10.9038 12.2084H3.09619ZM6.99869 10.3238C7.40343 10.3238 7.74789 10.1821 8.03207 9.89879C8.31625 9.61549 8.45834 9.27146 8.45834 8.86673C8.45834 8.46199 8.31669 8.11753 8.03338 7.83335C7.75007 7.54917 7.40605 7.40708 7.00132 7.40708C6.59658 7.40708 6.25212 7.54874 5.96794 7.83204C5.68376 8.11535 5.54167 8.45937 5.54167 8.8641C5.54167 9.26884 5.68333 9.6133 5.96663 9.89748C6.24994 10.1817 6.59396 10.3238 6.99869 10.3238ZM4.25163 6.01598H7.98598C8.13707 6.01598 8.26292 5.96547 8.36355 5.86446C8.46408 5.76344 8.51434 5.63822 8.51434 5.48879V4.50165C8.51434 4.35221 8.46383 4.22699 8.36282 4.12598C8.2618 4.02497 8.13658 3.97446 7.98715 3.97446H4.2528C4.10171 3.97446 3.97586 4.02497 3.87523 4.12598C3.77471 4.22699 3.72444 4.35221 3.72444 4.50165V5.48879C3.72444 5.63822 3.77495 5.76344 3.87596 5.86446C3.97698 5.96547 4.1022 6.01598 4.25163 6.01598Z",fill:"currentColor"})})]}),l7=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"schedule",children:[r.jsx("mask",{id:"mask0_4051_4016",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:r.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_4051_4016)",children:r.jsx("path",{id:"schedule_2",d:"M12.75 11.6961V7.74995C12.75 7.53747 12.6781 7.35935 12.5343 7.2156C12.3904 7.07185 12.2122 6.99998 11.9997 6.99998C11.7871 6.99998 11.609 7.07185 11.4654 7.2156C11.3218 7.35935 11.25 7.53747 11.25 7.74995V11.9269C11.25 12.0446 11.2718 12.1587 11.3154 12.269C11.359 12.3794 11.4276 12.4814 11.5212 12.575L14.9462 16C15.0846 16.1384 15.2587 16.2093 15.4683 16.2125C15.6779 16.2157 15.8551 16.1448 16 16C16.1448 15.8551 16.2173 15.6795 16.2173 15.4731C16.2173 15.2667 16.1448 15.091 16 14.9462L12.75 11.6961ZM12.0016 21.5C10.6877 21.5 9.45268 21.2506 8.29655 20.752C7.1404 20.2533 6.13472 19.5765 5.2795 18.7217C4.42427 17.8669 3.74721 16.8616 3.24833 15.706C2.74944 14.5504 2.5 13.3156 2.5 12.0017C2.5 10.6877 2.74933 9.45268 3.248 8.29655C3.74667 7.1404 4.42342 6.13472 5.27825 5.2795C6.1331 4.42427 7.13834 3.74721 8.29398 3.24833C9.44959 2.74944 10.6844 2.5 11.9983 2.5C13.3122 2.5 14.5473 2.74933 15.7034 3.248C16.8596 3.74667 17.8652 4.42342 18.7205 5.27825C19.5757 6.1331 20.2527 7.13834 20.7516 8.29398C21.2505 9.44959 21.5 10.6844 21.5 11.9983C21.5 13.3122 21.2506 14.5473 20.752 15.7034C20.2533 16.8596 19.5765 17.8652 18.7217 18.7205C17.8669 19.5757 16.8616 20.2527 15.706 20.7516C14.5504 21.2505 13.3156 21.5 12.0016 21.5Z",fill:"currentColor"})})]})}),C7=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_9540_35",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_9540_35)",children:r.jsx("path",{d:"M12.2501 9.33332V5.89165L7.55426 8.44373C7.37926 8.54096 7.19454 8.58957 7.0001 8.58957C6.80565 8.58957 6.62093 8.54096 6.44593 8.44373L1.51676 5.7604C1.40982 5.70207 1.33447 5.62915 1.29072 5.54165C1.24697 5.45415 1.2251 5.35693 1.2251 5.24998C1.2251 5.14304 1.24697 5.04582 1.29072 4.95832C1.33447 4.87082 1.40982 4.7979 1.51676 4.73957L6.44593 2.05623C6.53343 2.00762 6.62336 1.97116 6.71572 1.94686C6.80808 1.92255 6.90288 1.9104 7.0001 1.9104C7.09732 1.9104 7.19211 1.92255 7.28447 1.94686C7.37683 1.97116 7.46676 2.00762 7.55426 2.05623L13.1105 5.08957C13.2077 5.13818 13.2831 5.20866 13.3366 5.30103C13.39 5.39339 13.4168 5.49304 13.4168 5.59998V9.33332C13.4168 9.49859 13.3609 9.63714 13.2491 9.74894C13.1373 9.86075 12.9987 9.91665 12.8334 9.91665C12.6682 9.91665 12.5296 9.86075 12.4178 9.74894C12.306 9.63714 12.2501 9.49859 12.2501 9.33332ZM6.44593 11.9437L3.52926 10.3687C3.33482 10.2618 3.18413 10.116 3.07718 9.93123C2.97024 9.74651 2.91676 9.54721 2.91676 9.33332V7.11665L6.44593 9.02707C6.62093 9.12429 6.80565 9.1729 7.0001 9.1729C7.19454 9.1729 7.37926 9.12429 7.55426 9.02707L11.0834 7.11665V9.33332C11.0834 9.54721 11.03 9.74651 10.923 9.93123C10.8161 10.116 10.6654 10.2618 10.4709 10.3687L7.55426 11.9437C7.46676 11.9923 7.37683 12.0288 7.28447 12.0531C7.19211 12.0774 7.09732 12.0896 7.0001 12.0896C6.90288 12.0896 6.80808 12.0774 6.71572 12.0531C6.62336 12.0288 6.53343 11.9923 6.44593 11.9437Z",fill:"currentColor"})})]}),a7=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M5.99995 7.22422L1.71245 11.5117C1.55203 11.6721 1.34787 11.7523 1.09995 11.7523C0.852035 11.7523 0.647868 11.6721 0.487451 11.5117C0.327035 11.3513 0.246826 11.1471 0.246826 10.8992C0.246826 10.6513 0.327035 10.4471 0.487451 10.2867L4.77495 5.99922L0.487451 1.71172C0.327035 1.5513 0.246826 1.34714 0.246826 1.09922C0.246826 0.851302 0.327035 0.647135 0.487451 0.486719C0.647868 0.326302 0.852035 0.246094 1.09995 0.246094C1.34787 0.246094 1.55203 0.326302 1.71245 0.486719L5.99995 4.77422L10.2875 0.486719C10.4479 0.326302 10.652 0.246094 10.9 0.246094C11.1479 0.246094 11.352 0.326302 11.5125 0.486719C11.6729 0.647135 11.7531 0.851302 11.7531 1.09922C11.7531 1.34714 11.6729 1.5513 11.5125 1.71172L7.22495 5.99922L11.5125 10.2867C11.6729 10.4471 11.7531 10.6513 11.7531 10.8992C11.7531 11.1471 11.6729 11.3513 11.5125 11.5117C11.352 11.6721 11.1479 11.7523 10.9 11.7523C10.652 11.7523 10.4479 11.6721 10.2875 11.5117L5.99995 7.22422Z",fill:"currentColor"})}),c7=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M7.38474 15.5C7.13341 15.5 6.92316 15.4153 6.75399 15.246C6.58466 15.0768 6.49999 14.8666 6.49999 14.6152V8.827L0.901988 1.7155C0.709655 1.459 0.681738 1.19233 0.818238 0.9155C0.954905 0.6385 1.18541 0.5 1.50974 0.5H14.4902C14.8146 0.5 15.0451 0.6385 15.1817 0.9155C15.3182 1.19233 15.2903 1.459 15.098 1.7155L9.49999 8.827V14.6152C9.49999 14.8666 9.41532 15.0768 9.24599 15.246C9.07682 15.4153 8.86657 15.5 8.61524 15.5H7.38474Z",fill:"currentColor"})}),h7=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 32 32",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("g",{id:"Property 1=Normal",children:r.jsx("path",{id:"search",d:"M15.5192 20.6153C13.8115 20.6153 12.3654 20.023 11.1808 18.8384C9.99618 17.6538 9.40387 16.2077 9.40387 14.5C9.40387 12.7923 9.99618 11.3462 11.1808 10.1615C12.3654 8.97694 13.8115 8.38464 15.5192 8.38464C17.2269 8.38464 18.6731 8.97694 19.8577 10.1615C21.0423 11.3462 21.6346 12.7923 21.6346 14.5C21.6346 15.2141 21.5147 15.8961 21.275 16.5461C21.0352 17.1961 20.7153 17.7615 20.3153 18.2423L23.0692 20.9961C23.2077 21.1346 23.2785 21.3087 23.2817 21.5183C23.2849 21.7279 23.2141 21.9051 23.0692 22.05C22.9243 22.1948 22.7487 22.2673 22.5423 22.2673C22.3359 22.2673 22.1603 22.1948 22.0154 22.05L19.2615 19.2961C18.7615 19.7089 18.1865 20.032 17.5365 20.2653C16.8865 20.4987 16.2141 20.6153 15.5192 20.6153ZM15.5192 19.1154C16.8077 19.1154 17.899 18.6683 18.7933 17.774C19.6875 16.8798 20.1346 15.7885 20.1346 14.5C20.1346 13.2115 19.6875 12.1202 18.7933 11.2259C17.899 10.3317 16.8077 9.88459 15.5192 9.88459C14.2308 9.88459 13.1394 10.3317 12.2452 11.2259C11.351 12.1202 10.9038 13.2115 10.9038 14.5C10.9038 15.7885 11.351 16.8798 12.2452 17.774C13.1394 18.6683 14.2308 19.1154 15.5192 19.1154Z",fill:"currentColor"})})}),u7=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"sensors",children:[r.jsx("mask",{id:"mask0_1506_161",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"16",height:"16",children:r.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_1506_161)",children:r.jsx("path",{id:"sensors_2",d:"M5 8.97359C4.73205 8.97359 4.49839 8.87655 4.29903 8.68246C4.09968 8.48836 4 8.26087 4 8C4 7.73913 4.09968 7.51164 4.29903 7.31754C4.49839 7.12345 4.73205 7.02641 5 7.02641C5.26795 7.02641 5.50161 7.12345 5.70097 7.31754C5.90032 7.51164 6 7.73913 6 8C6 8.26087 5.90032 8.48836 5.70097 8.68246C5.50161 8.87655 5.26795 8.97359 5 8.97359ZM8.17885 11.0949C8.08527 11.0038 8.03431 10.893 8.02597 10.7626C8.01764 10.6321 8.05642 10.5076 8.1423 10.389C8.40257 10.0595 8.61058 9.69099 8.76635 9.28346C8.92212 8.87591 9 8.44809 9 8C9 7.5519 8.92212 7.12408 8.76635 6.71654C8.61058 6.30901 8.40257 5.94048 8.1423 5.61095C8.05642 5.49239 8.01539 5.37006 8.01922 5.24398C8.02308 5.11792 8.07821 5.00308 8.18463 4.89948C8.29488 4.79214 8.41699 4.7394 8.55097 4.74127C8.68494 4.74315 8.79488 4.79964 8.88077 4.91072C9.23077 5.33136 9.50482 5.80567 9.7029 6.33365C9.90097 6.86165 10 7.41709 10 8C10 8.5829 9.90097 9.13648 9.7029 9.66073C9.50482 10.185 9.23077 10.6593 8.88077 11.0837C8.79488 11.1948 8.68397 11.2512 8.54807 11.2531C8.41217 11.255 8.2891 11.2022 8.17885 11.0949ZM11.0096 13.8509C10.916 13.7598 10.8663 13.6481 10.8606 13.5158C10.8548 13.3834 10.8987 13.2599 10.9923 13.1451C11.6154 12.4548 12.1058 11.6737 12.4635 10.8019C12.8212 9.93002 13 8.99606 13 8C13 7.00394 12.8221 6.06998 12.4663 5.19813C12.1106 4.32626 11.6212 3.5452 10.9981 2.85494C10.9045 2.74012 10.8555 2.62061 10.851 2.49641C10.8465 2.37222 10.8994 2.25644 11.0096 2.14908C11.1071 2.05422 11.225 2.00461 11.3635 2.00025C11.5019 1.99588 11.6179 2.04924 11.7115 2.16033C12.4244 2.9417 12.984 3.82667 13.3904 4.81524C13.7968 5.80381 14 6.86539 14 8C14 9.13086 13.7968 10.1915 13.3904 11.182C12.984 12.1724 12.4244 13.0583 11.7115 13.8397C11.6179 13.9508 11.5019 14.0041 11.3635 13.9998C11.225 13.9954 11.1071 13.9458 11.0096 13.8509Z",fill:"currentColor"})})]})}),d7=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_1259_28",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_1259_28)",children:r.jsx("path",{d:"M3 20.75L2.91345 19.4327L4.74998 17.6058V20.75H3ZM7.25003 20.75V15.1058L8.74998 13.6058V20.75H7.25003ZM11.25 20.75V13.6058L12.75 15.1308V20.75H11.25ZM15.25 20.75V15.1308L16.75 13.6308V20.75H15.25ZM19.25 20.75V11.1058L20.75 9.60583V20.75H19.25ZM3.25003 15.2192V13.1058L10 6.35581L14 10.3558L20.75 3.60583V5.71924L14 12.4692L10 8.46921L3.25003 15.2192Z",fill:"currentColor"})})]}),f7=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_1259_29",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_1259_29)",children:r.jsx("path",{d:"M13.5096 21.5H10.4808C10.2564 21.5 10.0622 21.4246 9.8981 21.274C9.734 21.1233 9.63528 20.9358 9.60195 20.7115L9.31157 18.4538C9.04362 18.3641 8.76894 18.2384 8.48752 18.0769C8.2061 17.9153 7.9545 17.7422 7.7327 17.5576L5.64425 18.4384C5.43015 18.5217 5.21765 18.5301 5.00675 18.4634C4.79585 18.3967 4.63014 18.2647 4.50962 18.0673L3.00582 15.4481C2.8853 15.2506 2.84845 15.0397 2.89525 14.8154C2.94203 14.591 3.0558 14.4102 3.23657 14.2731L5.04427 12.9058C5.02119 12.757 5.00484 12.6077 4.99522 12.4577C4.9856 12.3077 4.9808 12.1583 4.9808 12.0096C4.9808 11.8673 4.9856 11.7227 4.99522 11.5759C5.00484 11.4291 5.02119 11.2686 5.04427 11.0942L3.23657 9.72688C3.0558 9.58971 2.94203 9.40894 2.89525 9.18458C2.84845 8.96023 2.8853 8.74934 3.00582 8.5519L4.50962 5.95195C4.61989 5.74425 4.78143 5.60963 4.99425 5.5481C5.20706 5.48657 5.42052 5.49747 5.63462 5.5808L7.72307 6.45195C7.9641 6.26092 8.22148 6.08623 8.4952 5.9279C8.76893 5.76955 9.03785 5.6423 9.30195 5.54615L9.60195 3.28848C9.63528 3.06411 9.734 2.87661 9.8981 2.72598C10.0622 2.57533 10.2564 2.5 10.4808 2.5H13.5096C13.7339 2.5 13.9298 2.57533 14.0971 2.72598C14.2644 2.87661 14.3647 3.06411 14.398 3.28848L14.6884 5.55578C14.9884 5.66474 15.2599 5.79198 15.5029 5.9375C15.7458 6.08302 15.991 6.2545 16.2384 6.45195L18.3654 5.5808C18.5795 5.49747 18.7904 5.48753 18.998 5.55098C19.2057 5.61444 19.3699 5.74489 19.4904 5.94233L20.9942 8.5519C21.1147 8.74934 21.1515 8.96023 21.1047 9.18458C21.058 9.40894 20.9442 9.58971 20.7634 9.72688L18.9173 11.123C18.9532 11.2846 18.9727 11.4355 18.9759 11.5759C18.9791 11.7163 18.9807 11.8577 18.9807 12C18.9807 12.1359 18.9775 12.274 18.9711 12.4144C18.9647 12.5548 18.9416 12.7154 18.9019 12.8962L20.7288 14.2731C20.916 14.4038 21.0314 14.583 21.0749 14.8106C21.1185 15.0381 21.0801 15.2506 20.9596 15.4481L19.4557 18.0519C19.3352 18.2493 19.167 18.3823 18.9509 18.4509C18.7349 18.5195 18.5198 18.5121 18.3057 18.4288L16.2384 17.548C15.991 17.7455 15.7384 17.9201 15.4807 18.0721C15.223 18.224 14.9589 18.348 14.6884 18.4442L14.398 20.7115C14.3647 20.9358 14.2644 21.1233 14.0971 21.274C13.9298 21.4246 13.7339 21.5 13.5096 21.5ZM12.0115 15C12.8436 15 13.5516 14.708 14.1355 14.124C14.7195 13.54 15.0115 12.832 15.0115 12C15.0115 11.1679 14.7195 10.4599 14.1355 9.87595C13.5516 9.29198 12.8436 9 12.0115 9C11.1692 9 10.4587 9.29198 9.87982 9.87595C9.30099 10.4599 9.01157 11.1679 9.01157 12C9.01157 12.832 9.30099 13.54 9.87982 14.124C10.4587 14.708 11.1692 15 12.0115 15Z",fill:"currentColor"})})]}),p7=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"shield_person",children:[r.jsx("mask",{id:"mask0_1543_22988",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:r.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_1543_22988)",children:r.jsx("path",{id:"shield_person_2",d:"M9.99998 10.6249C10.7521 10.6249 11.3915 10.3616 11.9182 9.83486C12.4449 9.30816 12.7083 8.66875 12.7083 7.91661C12.7083 7.16447 12.4449 6.52505 11.9182 5.99836C11.3915 5.47165 10.7521 5.20829 9.99998 5.20829C9.24784 5.20829 8.60842 5.47165 8.08173 5.99836C7.55502 6.52505 7.29167 7.16447 7.29167 7.91661C7.29167 8.66875 7.55502 9.30816 8.08173 9.83486C8.60842 10.3616 9.24784 10.6249 9.99998 10.6249ZM9.99998 17.9005C8.08973 17.376 6.57051 16.3049 5.44231 14.6874C4.3141 13.0699 3.75 11.2574 3.75 9.24994V4.45509L9.99998 2.11536L16.25 4.45509V9.24994C16.25 11.2574 15.6859 13.0699 14.5576 14.6874C13.4295 16.3049 11.9102 17.376 9.99998 17.9005ZM9.99998 16.5833C10.782 16.3301 11.4823 15.9422 12.1009 15.4198C12.7195 14.8974 13.2569 14.298 13.7131 13.6218C13.1373 13.3269 12.5371 13.1009 11.9126 12.9439C11.2882 12.7868 10.6506 12.7083 9.99998 12.7083C9.34934 12.7083 8.71179 12.7868 8.08733 12.9439C7.46286 13.1009 6.8627 13.3269 6.28685 13.6218C6.74305 14.298 7.28044 14.8974 7.89902 15.4198C8.51762 15.9422 9.21794 16.3301 9.99998 16.5833Z",fill:"currentColor"})})]})}),x7=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 12 8",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M0.333496 7.66704V6.66706H3.91681V7.66704H0.333496ZM0.333496 4.50037V3.50041H7.7886V4.50037H0.333496ZM0.333496 1.33372V0.33374H11.6668V1.33372H0.333496Z",fill:"currentColor"})}),g7=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"brand_awareness",children:[r.jsx("mask",{id:"mask0_3696_4540",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:r.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_3696_4540)",children:r.jsx("path",{id:"brand_awareness_2",d:"M15.577 10.625H13.8142C13.6368 10.625 13.4883 10.5652 13.3687 10.4455C13.249 10.3259 13.1892 10.1774 13.1892 10C13.1892 9.82269 13.249 9.67419 13.3687 9.55454C13.4883 9.43489 13.6368 9.37506 13.8142 9.37506H15.577C15.7543 9.37506 15.9028 9.43489 16.0225 9.55454C16.1421 9.67419 16.202 9.82269 16.202 10C16.202 10.1774 16.1421 10.3259 16.0225 10.4455C15.9028 10.5652 15.7543 10.625 15.577 10.625ZM12.1106 13.9279C12.2175 13.7816 12.354 13.6972 12.5201 13.6747C12.6862 13.6523 12.8425 13.6945 12.9888 13.8013L14.3943 14.8574C14.5406 14.9642 14.625 15.1007 14.6475 15.2669C14.6699 15.433 14.6277 15.5892 14.5209 15.7356C14.4141 15.882 14.2776 15.9664 14.1114 15.9888C13.9453 16.0112 13.7891 15.969 13.6427 15.8622L12.2372 14.8061C12.0909 14.6993 12.0065 14.5628 11.9841 14.3967C11.9616 14.2305 12.0038 14.0743 12.1106 13.9279ZM14.3622 5.1106L12.9568 6.16671C12.8104 6.27354 12.6542 6.31574 12.488 6.29331C12.3219 6.27087 12.1854 6.18646 12.0786 6.0401C11.9718 5.89374 11.9296 5.7375 11.952 5.57137C11.9744 5.40525 12.0588 5.26876 12.2052 5.16192L13.6106 4.10583C13.757 3.999 13.9133 3.9568 14.0794 3.97923C14.2455 4.00166 14.382 4.08606 14.4888 4.23244C14.5957 4.3788 14.6379 4.53504 14.6154 4.70116C14.593 4.86729 14.5086 5.00377 14.3622 5.1106ZM6.05778 12.0834H3.71805C3.5033 12.0834 3.32408 12.0115 3.18039 11.8678C3.03669 11.7241 2.96484 11.5449 2.96484 11.3301V8.66994C2.96484 8.4552 3.03669 8.27599 3.18039 8.13229C3.32408 7.98858 3.5033 7.91673 3.71805 7.91673H6.05778L8.55134 5.42317C8.75114 5.22339 8.9811 5.17771 9.24124 5.28614C9.50138 5.39459 9.63145 5.5909 9.63145 5.87508V14.125C9.63145 14.4092 9.50138 14.6055 9.24124 14.7139C8.9811 14.8224 8.75114 14.7767 8.55134 14.5769L6.05778 12.0834Z",fill:"currentColor"})})]})}),m7=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("g",{id:"Menu icons",children:r.jsx("path",{id:"Subtract",d:"M9.56745 16.1438C9.44134 16.1438 9.31606 16.1269 9.19162 16.0931C9.06718 16.0595 8.95315 16.0133 8.84954 15.9546C8.2587 15.602 7.64141 15.3367 6.99766 15.159C6.35405 14.981 5.68822 14.8921 5.00016 14.8921C4.49169 14.8921 3.99225 14.9484 3.50183 15.061C3.01141 15.1738 2.53863 15.3397 2.0835 15.5588C1.78655 15.6954 1.50398 15.6751 1.23579 15.4977C0.967593 15.3205 0.833496 15.0695 0.833496 14.7446V5.71272C0.833496 5.53313 0.881066 5.36723 0.976204 5.21501C1.0712 5.06279 1.20315 4.95195 1.37204 4.88251C1.93607 4.60792 2.52391 4.40202 3.13558 4.2648C3.74725 4.12744 4.36877 4.05876 5.00016 4.05876C5.811 4.05876 6.60051 4.17362 7.3687 4.40334C8.1369 4.63306 8.87516 4.95626 9.5835 5.37292V14.9433C10.2866 14.4989 11.0283 14.1709 11.8087 13.9594C12.5891 13.7479 13.3752 13.6421 14.1668 13.6421C14.6454 13.6421 15.0816 13.6717 15.4754 13.731C15.869 13.7904 16.3249 13.9006 16.8431 14.0619C16.9018 14.078 16.9566 14.0794 17.0075 14.066C17.0581 14.0526 17.0835 14.0085 17.0835 13.9338V4.5748C17.2277 4.61758 17.3684 4.66515 17.5058 4.71751C17.643 4.76987 17.7768 4.83556 17.9072 4.91459C18.0493 4.98404 18.1559 5.08549 18.2268 5.21897C18.2979 5.35258 18.3335 5.49577 18.3335 5.64855V14.7285C18.3335 15.0534 18.1954 15.3031 17.9191 15.4777C17.643 15.6524 17.3484 15.6741 17.0354 15.5427C16.5856 15.329 16.1196 15.1671 15.6372 15.0571C15.1549 14.9471 14.6647 14.8921 14.1668 14.8921C13.4735 14.8921 12.7996 14.981 12.1452 15.159C11.4909 15.3367 10.8683 15.602 10.2775 15.9546C10.1738 16.0133 10.0611 16.0595 9.93933 16.0931C9.81752 16.1269 9.69357 16.1438 9.56745 16.1438ZM11.8895 12.2319C11.7613 12.3462 11.6227 12.3692 11.4737 12.3008C11.3247 12.2324 11.2502 12.1132 11.2502 11.9433V5.46751C11.2502 5.41723 11.2606 5.36778 11.2814 5.31917C11.3022 5.27056 11.3309 5.22813 11.3672 5.19188L14.7645 1.79438C14.8927 1.66619 15.0335 1.63549 15.1868 1.7023C15.3402 1.76897 15.4168 1.89153 15.4168 2.07001V8.8873C15.4168 8.95133 15.4043 9.00633 15.3791 9.0523C15.354 9.09827 15.3233 9.13945 15.287 9.17584L11.8895 12.2319Z",fill:"currentColor"})})}),w7=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_1259_26",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_1259_26)",children:r.jsx("path",{d:"M10.0577 18.7499C9.84521 18.7499 9.66708 18.678 9.52333 18.5342C9.3796 18.3904 9.30773 18.2122 9.30773 17.9996C9.30773 17.787 9.3796 17.609 9.52333 17.4654C9.66708 17.3218 9.84521 17.25 10.0577 17.25H19.75C19.9625 17.25 20.1406 17.3219 20.2844 17.4657C20.4281 17.6095 20.5 17.7877 20.5 18.0003C20.5 18.2129 20.4281 18.391 20.2844 18.5346C20.1406 18.6782 19.9625 18.7499 19.75 18.7499H10.0577ZM10.0577 12.7499C9.84521 12.7499 9.66708 12.678 9.52333 12.5342C9.3796 12.3904 9.30773 12.2122 9.30773 11.9996C9.30773 11.787 9.3796 11.609 9.52333 11.4654C9.66708 11.3218 9.84521 11.25 10.0577 11.25H19.75C19.9625 11.25 20.1406 11.3219 20.2844 11.4657C20.4281 11.6095 20.5 11.7877 20.5 12.0003C20.5 12.2129 20.4281 12.391 20.2844 12.5346C20.1406 12.6782 19.9625 12.7499 19.75 12.7499H10.0577ZM10.0577 6.74995C9.84521 6.74995 9.66708 6.67805 9.52333 6.53425C9.3796 6.39043 9.30773 6.21223 9.30773 5.99965C9.30773 5.78705 9.3796 5.60896 9.52333 5.46537C9.66708 5.32179 9.84521 5.25 10.0577 5.25H19.75C19.9625 5.25 20.1406 5.3219 20.2844 5.4657C20.4281 5.60951 20.5 5.78771 20.5 6.0003C20.5 6.2129 20.4281 6.39099 20.2844 6.53457C20.1406 6.67816 19.9625 6.74995 19.75 6.74995H10.0577ZM5.16348 19.6634C4.70603 19.6634 4.31443 19.5005 3.98868 19.1748C3.66291 18.849 3.50003 18.4574 3.50003 18C3.50003 17.5425 3.66291 17.1509 3.98868 16.8252C4.31443 16.4994 4.70603 16.3365 5.16348 16.3365C5.62093 16.3365 6.01253 16.4994 6.33828 16.8252C6.66403 17.1509 6.82691 17.5425 6.82691 18C6.82691 18.4574 6.66403 18.849 6.33828 19.1748C6.01253 19.5005 5.62093 19.6634 5.16348 19.6634ZM5.16348 13.6634C4.70603 13.6634 4.31443 13.5005 3.98868 13.1748C3.66291 12.849 3.50003 12.4574 3.50003 12C3.50003 11.5425 3.66291 11.1509 3.98868 10.8252C4.31443 10.4994 4.70603 10.3365 5.16348 10.3365C5.62093 10.3365 6.01253 10.4994 6.33828 10.8252C6.66403 11.1509 6.82691 11.5425 6.82691 12C6.82691 12.4574 6.66403 12.849 6.33828 13.1748C6.01253 13.5005 5.62093 13.6634 5.16348 13.6634ZM5.16348 7.6634C4.70603 7.6634 4.31443 7.50052 3.98868 7.17477C3.66291 6.84902 3.50003 6.45742 3.50003 5.99997C3.50003 5.54252 3.66291 5.15092 3.98868 4.82517C4.31443 4.49942 4.70603 4.33655 5.16348 4.33655C5.62093 4.33655 6.01253 4.49942 6.33828 4.82517C6.66403 5.15092 6.82691 5.54252 6.82691 5.99997C6.82691 6.45742 6.66403 6.84902 6.33828 7.17477C6.01253 7.50052 5.62093 7.6634 5.16348 7.6634Z",fill:"currentColor"})})]}),v7=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"stacks",children:[r.jsx("mask",{id:"mask0_8417_33308",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:r.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_8417_33308)",children:r.jsx("path",{id:"stacks_2",d:"M11.9998 13.1877C11.8717 13.1877 11.7477 13.1701 11.6278 13.135C11.5078 13.0996 11.3857 13.0531 11.2613 12.9955L3.38833 8.91472C3.2435 8.82755 3.13675 8.7218 3.06808 8.59747C2.99958 8.47297 2.96533 8.3383 2.96533 8.19347C2.96533 8.04864 2.99958 7.91405 3.06808 7.78972C3.13675 7.66539 3.2435 7.55964 3.38833 7.47247L11.2613 3.39172C11.3857 3.33389 11.5078 3.28739 11.6278 3.25222C11.7477 3.21689 11.8717 3.19922 11.9998 3.19922C12.128 3.19922 12.252 3.21689 12.3718 3.25222C12.4918 3.28739 12.614 3.33389 12.7383 3.39172L20.6306 7.47247C20.7754 7.55964 20.8822 7.66539 20.9508 7.78972C21.0193 7.91405 21.0536 8.04864 21.0536 8.19347C21.0536 8.3383 21.0193 8.47297 20.9508 8.59747C20.8822 8.7218 20.7754 8.82755 20.6306 8.91472L12.7383 12.9955C12.614 13.0531 12.4918 13.0996 12.3718 13.135C12.252 13.1701 12.128 13.1877 11.9998 13.1877ZM11.9998 12.2455L19.9211 8.19347L11.9998 4.14172L4.09783 8.19347L11.9998 12.2455ZM11.9998 16.0532L20.1576 11.855C20.2038 11.8255 20.3172 11.8223 20.4978 11.8455C20.6145 11.8711 20.7046 11.9253 20.7681 12.008C20.8316 12.0906 20.8633 12.1903 20.8633 12.307C20.8633 12.4006 20.8441 12.484 20.8056 12.557C20.7671 12.6301 20.7011 12.6911 20.6076 12.7397L12.7383 16.8032C12.614 16.8609 12.4918 16.9073 12.3718 16.9425C12.252 16.9778 12.128 16.9955 11.9998 16.9955C11.8717 16.9955 11.7477 16.9778 11.6278 16.9425C11.5078 16.9073 11.3857 16.8609 11.2613 16.8032L3.41133 12.7397C3.31783 12.6911 3.24858 12.6301 3.20358 12.557C3.15875 12.484 3.13633 12.4006 3.13633 12.307C3.13633 12.1903 3.17125 12.0906 3.24108 12.008C3.31108 11.9253 3.40442 11.8711 3.52108 11.8455C3.57875 11.8198 3.63542 11.8066 3.69108 11.806C3.74692 11.8053 3.80367 11.8216 3.86133 11.855L11.9998 16.0532ZM11.9998 19.8607L20.1576 15.6627C20.2038 15.6332 20.3172 15.6301 20.4978 15.6532C20.6145 15.6789 20.7046 15.7331 20.7681 15.8157C20.8316 15.8984 20.8633 15.9981 20.8633 16.1147C20.8633 16.2082 20.8441 16.2916 20.8056 16.3647C20.7671 16.4377 20.7011 16.4986 20.6076 16.5475L12.7383 20.6107C12.614 20.6686 12.4918 20.7151 12.3718 20.7502C12.252 20.7856 12.128 20.8032 11.9998 20.8032C11.8717 20.8032 11.7477 20.7856 11.6278 20.7502C11.5078 20.7151 11.3857 20.6686 11.2613 20.6107L3.41133 16.5475C3.31783 16.4986 3.24858 16.4377 3.20358 16.3647C3.15875 16.2916 3.13633 16.2082 3.13633 16.1147C3.13633 15.9981 3.17125 15.8984 3.24108 15.8157C3.31108 15.7331 3.40442 15.6789 3.52108 15.6532C3.57875 15.6276 3.63542 15.6144 3.69108 15.6137C3.74692 15.6131 3.80367 15.6294 3.86133 15.6627L11.9998 19.8607Z",fill:"currentColor"})})]})}),_7=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_9529_33",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_9529_33)",children:r.jsx("path",{d:"M4.05992 11.7788C3.80539 11.7788 3.5794 11.6954 3.38194 11.5287C3.18448 11.3621 3.06383 11.1515 3.01998 10.8971L2.19982 5.98194C2.17298 5.82084 2.21036 5.67725 2.31196 5.55115C2.41346 5.42515 2.54811 5.36215 2.71592 5.36215H11.2842C11.452 5.36215 11.5867 5.42515 11.6882 5.55115C11.7898 5.67725 11.8271 5.82084 11.8003 5.98194L10.9801 10.8971C10.9363 11.1515 10.8156 11.3621 10.6182 11.5287C10.4207 11.6954 10.1947 11.7788 9.94021 11.7788H4.05992ZM5.8334 8.42465H8.16673C8.29069 8.42465 8.39457 8.3827 8.47838 8.2988C8.56228 8.21489 8.60423 8.11096 8.60423 7.987C8.60423 7.86295 8.56228 7.75907 8.47838 7.67536C8.39457 7.59155 8.29069 7.54965 8.16673 7.54965H5.8334C5.70944 7.54965 5.60556 7.5916 5.52175 7.6755C5.43785 7.75941 5.3959 7.86334 5.3959 7.9873C5.3959 8.11135 5.43785 8.21528 5.52175 8.29909C5.60556 8.38279 5.70944 8.42465 5.8334 8.42465ZM3.50007 4.66667C3.37611 4.66667 3.27223 4.62472 3.18842 4.54082C3.10452 4.45691 3.06257 4.35298 3.06257 4.22902C3.06257 4.10497 3.10452 4.00109 3.18842 3.91738C3.27223 3.83357 3.37611 3.79167 3.50007 3.79167H10.5001C10.624 3.79167 10.7279 3.83362 10.8117 3.91752C10.8956 4.00143 10.9376 4.10536 10.9376 4.22932C10.9376 4.35337 10.8956 4.45725 10.8117 4.54096C10.7279 4.62477 10.624 4.66667 10.5001 4.66667H3.50007ZM4.66673 3.09619C4.54277 3.09619 4.43889 3.05424 4.35509 2.97034C4.27118 2.88643 4.22923 2.7825 4.22923 2.65855C4.22923 2.53449 4.27118 2.43061 4.35509 2.3469C4.43889 2.26309 4.54277 2.22119 4.66673 2.22119H9.3334C9.45736 2.22119 9.56124 2.26314 9.64505 2.34705C9.72895 2.43095 9.7709 2.53488 9.7709 2.65884C9.7709 2.78289 9.72895 2.88677 9.64505 2.97048C9.56124 3.05429 9.45736 3.09619 9.3334 3.09619H4.66673Z",fill:"currentColor"})})]}),k7=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 50 40",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M39.6982 23.8981C38.314 33.2849 30.2251 40.4893 20.4536 40.4893C17.5648 40.4893 14.8231 39.8596 12.3582 38.7301L1.90313 41.3438C1.44763 41.4577 1.03503 41.0451 1.14891 40.5896L3.60474 30.7663C1.94817 27.904 1 24.5806 1 21.0357C1 10.2917 9.70969 1.58203 20.4536 1.58203C22.4575 1.58203 24.3907 1.88502 26.2097 2.44769C24.8111 4.62659 24 7.21857 24 10C24 12.0989 24.4619 14.0899 25.2895 15.877H13.2863C12.1553 15.877 11.2385 16.7938 11.2385 17.9247C11.2385 19.0556 12.1553 19.9725 13.2863 19.9725H27.6205C27.7906 19.9725 27.9557 19.9517 28.1137 19.9127C30.6462 22.4384 34.1407 24 38 24C38.5748 24 39.1415 23.9654 39.6982 23.8981ZM13.2863 24.0664C12.1553 24.0664 11.2385 24.9832 11.2385 26.1142C11.2385 27.2451 12.1553 28.1619 13.2863 28.1619H21.4773C22.6082 28.1619 23.525 27.2451 23.525 26.1142C23.525 24.9832 22.6082 24.0664 21.4773 24.0664H13.2863Z",fill:"currentColor"}),r.jsx("circle",{cx:"38",cy:"10",r:"10",fill:"currentColor"}),r.jsx("path",{d:"M34 9.5L37 12.5L42.5 7",stroke:"#23252F","stroke-width":"2.5","stroke-linecap":"round","stroke-linejoin":"round"})]}),j7=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_7541_22378",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"15",children:r.jsx("rect",{y:"0.25",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_7541_22378)",children:r.jsx("path",{d:"M7.46552 7.25L3.91958 3.8184C3.87622 3.77503 3.84409 3.72778 3.82319 3.67665C3.80219 3.6256 3.79169 3.57281 3.79169 3.51827V3.28319C3.79169 3.1674 3.83092 3.07042 3.90937 2.99225C3.98793 2.91408 4.0852 2.875 4.20119 2.875H9.59133C9.76274 2.875 9.90842 2.93503 10.0284 3.0551C10.1484 3.17527 10.2084 3.3211 10.2084 3.4926C10.2084 3.6642 10.1484 3.81076 10.0284 3.93229C9.90842 4.05382 9.76274 4.11458 9.59133 4.11458H5.79748L8.61542 6.872C8.72304 6.97593 8.77685 7.10154 8.77685 7.24883C8.77685 7.39622 8.72304 7.52261 8.61542 7.628L5.79748 10.3911H9.59133C9.76274 10.3911 9.90842 10.4511 10.0284 10.5712C10.1484 10.6913 10.2084 10.8371 10.2084 11.0087C10.2084 11.1802 10.1484 11.3258 10.0284 11.4455C9.90842 11.5652 9.76274 11.625 9.59133 11.625H4.08554C4.00455 11.625 3.93533 11.5963 3.87787 11.5388C3.82042 11.4814 3.79169 11.4121 3.79169 11.3311V10.932C3.79169 10.8899 3.79849 10.8512 3.8121 10.8158C3.82571 10.7803 3.84958 10.7464 3.88371 10.7141L7.46552 7.25Z",fill:"currentColor"})})]}),y7=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 22 22",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_5577_416",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"22",height:"22",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_5577_416)",children:r.jsx("path",{d:"M11 17.6634C10.6219 17.6634 10.2982 17.5287 10.0289 17.2595C9.75964 16.9902 9.625 16.6665 9.625 16.2884C9.625 15.9103 9.75964 15.5866 10.0289 15.3173C10.2982 15.0481 10.6219 14.9134 11 14.9134C11.3781 14.9134 11.7018 15.0481 11.971 15.3173C12.2403 15.5866 12.375 15.9103 12.375 16.2884C12.375 16.6665 12.2403 16.9902 11.971 17.2595C11.7018 17.5287 11.3781 17.6634 11 17.6634ZM11 12.3749C10.6219 12.3749 10.2982 12.2403 10.0289 11.971C9.75964 11.7018 9.625 11.3781 9.625 11C9.625 10.6218 9.75964 10.2982 10.0289 10.0289C10.2982 9.75962 10.6219 9.62498 11 9.62498C11.3781 9.62498 11.7018 9.75962 11.971 10.0289C12.2403 10.2982 12.375 10.6218 12.375 11C12.375 11.3781 12.2403 11.7018 11.971 11.971C11.7018 12.2403 11.3781 12.3749 11 12.3749ZM11 7.08648C10.6219 7.08648 10.2982 6.95184 10.0289 6.68257C9.75964 6.41332 9.625 6.08963 9.625 5.7115C9.625 5.33339 9.75964 5.0097 10.0289 4.74043C10.2982 4.47118 10.6219 4.33655 11 4.33655C11.3781 4.33655 11.7018 4.47118 11.971 4.74043C12.2403 5.0097 12.375 5.33339 12.375 5.7115C12.375 6.08963 12.2403 6.41332 11.971 6.68257C11.7018 6.95184 11.3781 7.08648 11 7.08648Z",fill:"currentColor"})})]}),L7=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"Twitter",children:[r.jsx("mask",{id:"mask0_1506_167",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"16",height:"16",children:r.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_1506_167)",children:r.jsx("g",{id:"X",children:r.jsx("path",{id:"path1009",d:"M2.0317 2L7.05085 8.71109L2 14.1675H3.13674L7.55875 9.39033L11.1316 14.1675H15L9.69845 7.07891L14.3997 2H13.263L9.19054 6.39967L5.90008 2H2.0317ZM3.70336 2.83733H5.48051L13.3281 13.33H11.5509L3.70336 2.83733Z",fill:"currentColor"})})})]})}),H7=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"Video",children:[r.jsx("mask",{id:"mask0_1506_153",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"16",height:"16",children:r.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_1506_153)",children:r.jsx("path",{id:"Subtract","fill-rule":"evenodd","clip-rule":"evenodd",d:"M14.3782 3.03719C15.0725 3.22309 15.6201 3.76987 15.8053 4.46427C16.1429 5.72367 16.1429 8.35001 16.1429 8.35001C16.1429 8.35001 16.1429 10.9773 15.8053 12.2358C15.6201 12.9302 15.0725 13.4769 14.3782 13.6628C13.1197 14 8.07143 14 8.07143 14C8.07143 14 3.02403 14 1.76471 13.6628C1.07038 13.4769 0.522808 12.9302 0.337533 12.2358C0 10.9764 0 8.35001 0 8.35001C0 8.35001 0 5.72367 0.337533 4.46427C0.522808 3.76987 1.07038 3.22309 1.76471 3.03719C3.02312 2.70001 8.07143 2.70001 8.07143 2.70001C8.07143 2.70001 13.1197 2.70001 14.3782 3.03719ZM10.4931 8.35003L6.45735 5.9286V10.7715L10.4931 8.35003Z",fill:"currentColor"})})]})}),M7=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M14.0716 15L10.8994 11.7764C10.437 11.9597 9.96181 12.0919 9.47381 12.1732C8.98581 12.2545 8.49002 12.2952 7.98643 12.2952C6.33597 12.2952 4.82448 11.8457 3.45194 10.9466C2.07941 10.0476 0.991584 8.86271 0.188459 7.39193C0.123124 7.27666 0.0753836 7.15933 0.045238 7.03994C0.0150793 6.92055 0 6.7991 0 6.67559C0 6.55208 0.0163338 6.42935 0.0490013 6.30739C0.0816688 6.18543 0.13067 6.06938 0.196005 5.95925C0.508607 5.42714 0.84081 4.91226 1.19261 4.41462C1.54443 3.91699 1.95353 3.47673 2.41992 3.09386L0.24877 0.846015L1.07501 0L14.8978 14.154L14.0716 15ZM7.98643 9.94854C8.16032 9.94854 8.32642 9.93799 8.48473 9.91689C8.64305 9.89579 8.7976 9.84973 8.94838 9.77871L4.95591 5.69059C4.89158 5.84498 4.84786 6.00324 4.82475 6.16535C4.80162 6.32745 4.79005 6.49753 4.79005 6.67559C4.79005 7.58645 5.10039 8.35966 5.72108 8.99521C6.34176 9.63076 7.09688 9.94854 7.98643 9.94854ZM13.4384 10.3561L10.9792 7.85816C11.0456 7.66673 11.0961 7.47375 11.1308 7.27922C11.1655 7.0847 11.1828 6.88349 11.1828 6.67559C11.1828 5.76473 10.8725 4.99152 10.2518 4.35597C9.63109 3.72042 8.87598 3.40264 7.98643 3.40264C7.78339 3.40264 7.58689 3.42168 7.39692 3.45976C7.20694 3.49784 7.02099 3.56011 6.83907 3.64657L4.87751 1.64575C5.37606 1.44402 5.88441 1.29529 6.40257 1.19957C6.92071 1.10385 7.44867 1.05599 7.98643 1.05599C9.64191 1.05599 11.1604 1.50756 12.542 2.41072C13.9236 3.31387 15.0134 4.50598 15.8115 5.98705C15.8718 6.08894 15.9183 6.19829 15.951 6.31511C15.9837 6.43192 16 6.55208 16 6.67559C16 6.7991 15.9857 6.91926 15.957 7.03607C15.9284 7.15289 15.8839 7.26225 15.8236 7.36414C15.52 7.94669 15.1738 8.49038 14.7848 8.99521C14.3958 9.50005 13.947 9.95369 13.4384 10.3561ZM10.0912 6.95657L7.73162 4.54816C8.06131 4.48126 8.38246 4.50545 8.69506 4.62072C9.00767 4.736 9.27754 4.9156 9.5047 5.15952C9.7369 5.40036 9.90451 5.67723 10.0075 5.99012C10.1106 6.30301 10.1385 6.62516 10.0912 6.95657Z",fill:"currentColor"})}),V7=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 18 13",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M9.00204 9.98073C9.94628 9.98073 10.7483 9.65024 11.408 8.98927C12.0677 8.32829 12.3976 7.52567 12.3976 6.58142C12.3976 5.63718 12.0671 4.8352 11.4061 4.17548C10.7451 3.51576 9.9425 3.1859 8.99825 3.1859C8.05401 3.1859 7.25203 3.51638 6.59231 4.17735C5.93259 4.83834 5.60273 5.64096 5.60273 6.58521C5.60273 7.52944 5.93321 8.33142 6.59419 8.99115C7.25517 9.65087 8.05779 9.98073 9.00204 9.98073ZM9.00014 8.83331C8.37514 8.83331 7.84389 8.61456 7.40639 8.17706C6.96889 7.73956 6.75014 7.20831 6.75014 6.58331C6.75014 5.95831 6.96889 5.42706 7.40639 4.98956C7.84389 4.55206 8.37514 4.33331 9.00014 4.33331C9.62514 4.33331 10.1564 4.55206 10.5939 4.98956C11.0314 5.42706 11.2501 5.95831 11.2501 6.58331C11.2501 7.20831 11.0314 7.73956 10.5939 8.17706C10.1564 8.61456 9.62514 8.83331 9.00014 8.83331ZM9.00129 12.4166C7.08494 12.4166 5.33884 11.888 3.76298 10.8309C2.18713 9.77374 1.02688 8.35788 0.282227 6.58331C1.02688 4.80874 2.18675 3.39288 3.76185 2.33573C5.33694 1.27858 7.08265 0.75 8.999 0.75C10.9153 0.75 12.6614 1.27858 14.2373 2.33573C15.8132 3.39288 16.9734 4.80874 17.7181 6.58331C16.9734 8.35788 15.8135 9.77374 14.2384 10.8309C12.6634 11.888 10.9176 12.4166 9.00129 12.4166Z",fill:"currentColor"})}),Z7=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"volume_up",children:[r.jsx("mask",{id:"mask0_1483_75386",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:r.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_1483_75386)",children:r.jsx("path",{id:"volume_up_2",d:"M14.0384 20.1095V18.5595C15.4807 18.1005 16.6425 17.2672 17.5239 16.0595C18.4053 14.8518 18.8461 13.4903 18.8461 11.9749C18.8461 10.4595 18.4053 9.09799 17.5239 7.89031C16.6425 6.68261 15.4807 5.84927 14.0384 5.39031V3.84033C15.8999 4.33905 17.4165 5.33841 18.5883 6.83841C19.7601 8.33839 20.346 10.0506 20.346 11.9749C20.346 13.8993 19.7601 15.6114 18.5883 17.1114C17.4165 18.6114 15.8999 19.6108 14.0384 20.1095ZM3.65381 14.4999V9.49993H7.36531L11.6537 5.21153V18.7883L7.36531 14.4999H3.65381ZM14.0384 15.6537V8.29608C14.7127 8.66275 15.2339 9.17909 15.6018 9.84511C15.9698 10.5111 16.1537 11.2294 16.1537 11.9999C16.1537 12.7602 15.9682 13.4675 15.597 14.122C15.2259 14.7765 14.7063 15.2871 14.0384 15.6537Z",fill:"currentColor"})})]})}),N7={AddCircleIcon:P6,AddContentIcon:B6,AddLinkIcon:N6,AddSourceIcon:R6,AiPauseIcon:T6,AiPlayIcon:U6,AiSummaryIcon:O6,AndroidIcon:$6,ArrowBackIcon:A6,ArrowForwardIcon:z6,ArrowRight:F6,AudioIcon:D6,BitcoinIcon:q6,BoostIcon:G6,BrowseGalleryIcon:W6,BubbleChartIcon:A5,BudgetIcon:S6,BuildIcon:X6,CalendarIcon:Y6,CameraCenterIcon:d3,CancelIcon:K6,CheckIcon:Q6,CheckedIcon:J6,ChevronDownIcon:e9,ChevronLeftIcon:t9,ChevronRightIcon:n9,ChevronUpIcon:r9,ChipIcon:i9,ClearIcon:C2,CloseIcon:s9,ColorPickerIcon:o9,CommunitiesIcon:z5,CompassIcon:l9,ConstructionIcon:C9,ContentIcon:a9,CopyIcon:c9,CorporationIcon:h9,CreateEdgeIcon:u9,DefaultShowIcon:d9,DeleteIcon:f9,DeleteNodeIcon:p9,DesignServicesIcon:x9,DocumentIcon:g9,DownloadIcon:m9,EditIcon:w9,EditNodeIcon:v9,EditTopicIcon:_9,EpisodeIcon:k9,EventIcon:j9,ExitFullScreen:y9,ExploreIcon:L9,FamilyHistoryIcon:H9,FeedbackIcon:M9,FilterOffIcon:V9,FingerprintIcon:Z9,FlipIcon:b9,FortIcon:E9,FullScreenIcon:S9,FunctionIcon:I9,GlobeIcon:P9,GrainIcon:F5,HandymanIcon:B9,HardwareIcon:N9,HashTag:R9,HashtagIcon:T9,HelpIcon:U9,HomeIcon:O9,InfoIcon:y3,JoystickIcon:$9,LinkIcon:A9,MenuIcon:z9,MergeIcon:F9,MoneyIcon:D9,MuteVolumeIcon:q9,NodeCircleIcon:G9,NodesIcon:I6,NotesIcon:W9,OrganizationIcon:X9,PauseIcon:p3,PersonAdd:Y9,PersonIcon:K9,PhoneIcon:Q9,PlaceIcon:J9,PlayIcon:x3,PlusIcon:e7,PropertyHide:t7,PropertyShow:n7,PublicIcon:D5,QrCodeIcon:r7,ReloadIcon:i7,RobotIcon:s7,SaveIcon:o7,ScheduleIcon:l7,SchoolIcon:C7,SearchFilterCloseIcon:a7,SearchFilterIcon:c7,SearchIcon:h7,SensorsIcon:u7,SentimentDataIcon:d7,SettingsIcon:f7,ShieldPersonIcon:p7,SortFilterIcon:x7,SoundIcon:g7,SourcesIcon:m7,SourcesTableIcon:w7,StackIcon:v7,StorageIcon:_7,SucessFeedBackIcon:k7,SumFunctionIcon:j7,ThreeDotsIcons:y7,TwitterIcon:L7,VideoIcon:H7,VisibilityOff:M7,VisibilityOn:V7,VolumeIcon:Z7};export{h7 as $,V6 as A,S6 as B,z5 as C,g9 as D,L9 as E,M9 as F,L3 as G,U9 as H,N7 as I,s1 as J,t3 as K,P1 as L,z9 as M,I6 as N,P7 as O,E7 as P,K2 as Q,s7 as R,w7 as S,d6 as T,H3 as U,Q2 as V,z1 as W,e3 as X,F1 as Y,b5 as Z,z3 as _,B7 as a,v7 as a0,G6 as a1,A9 as a2,P9 as a3,T9 as a4,m7 as a5,r9 as a6,e9 as a7,O6 as a8,T6 as a9,n7 as aA,t7 as aB,y7 as aC,V7 as aD,M7 as aE,x7 as aF,_9 as aG,v9 as aH,p9 as aI,P2 as aJ,t2 as aK,H9 as aL,u9 as aM,k7 as aN,M3 as aO,R5 as aP,t5 as aQ,g7 as aR,A5 as aS,U6 as aa,A6 as ab,Q6 as ac,W6 as ad,m9 as ae,i7 as af,d7 as ag,R9 as ah,a7 as ai,c7 as aj,W9 as ak,c9 as al,l7 as am,q9 as an,Z7 as ao,S9 as ap,y9 as aq,t9 as ar,n9 as as,a9 as at,V9 as au,B3 as av,f9 as aw,G9 as ax,b9 as ay,F6 as az,g6 as b,m6 as c,p3 as d,x3 as e,J2 as f,e7 as g,u1 as h,R6 as i,B6 as j,f7 as k,z6 as l,u3 as m,$5 as n,I7 as o,S7 as p,F9 as q,P6 as r,C9 as s,w9 as t,C6 as u,s9 as v,r6 as w,A0 as x,D2 as y,i6 as z}; +`,P7=()=>r.jsx(E6,{children:r.jsx(V6,{})}),E6=D("div")(({theme:e})=>({position:"absolute",zIndex:1,top:0,left:0,userSelect:"none",pointerEvents:"none",display:"flex",justifyContent:"flex-end",alignItems:"flex-start",height:"100%",width:"100%",padding:"16px",paddingRight:"0",overflow:"hidden",[e.breakpoints.down("sm")]:{top:50}})),B7=()=>{const e=H.useContext(j3);return e==null?void 0:e.socket},S6=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 22 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M14 16C11.7667 16 9.875 15.225 8.325 13.675C6.775 12.125 6 10.2333 6 8C6 5.76667 6.775 3.875 8.325 2.325C9.875 0.775 11.7667 0 14 0C16.2333 0 18.125 0.775 19.675 2.325C21.225 3.875 22 5.76667 22 8C22 10.2333 21.225 12.125 19.675 13.675C18.125 15.225 16.2333 16 14 16ZM4.625 15.25C3.225 14.6 2.10433 13.625 1.263 12.325C0.421 11.025 0 9.58333 0 8C0 6.41667 0.421 4.975 1.263 3.675C2.10433 2.375 3.225 1.4 4.625 0.75C4.975 0.583333 5.29167 0.595667 5.575 0.787C5.85833 0.979 6 1.29167 6 1.725C6 1.89167 5.946 2.054 5.838 2.212C5.72933 2.37067 5.59167 2.49167 5.425 2.575C4.375 3.05833 3.54167 3.78733 2.925 4.762C2.30833 5.73733 2 6.81667 2 8C2 9.18333 2.30833 10.2623 2.925 11.237C3.54167 12.2123 4.375 12.9417 5.425 13.425C5.59167 13.5083 5.72933 13.625 5.838 13.775C5.946 13.925 6 14.0917 6 14.275C6 14.6917 5.85833 15 5.575 15.2C5.29167 15.4 4.975 15.4167 4.625 15.25ZM14 14C15.6667 14 17.0833 13.4167 18.25 12.25C19.4167 11.0833 20 9.66667 20 8C20 6.33333 19.4167 4.91667 18.25 3.75C17.0833 2.58333 15.6667 2 14 2C12.3333 2 10.9167 2.58333 9.75 3.75C8.58333 4.91667 8 6.33333 8 8C8 9.66667 8.58333 11.0833 9.75 12.25C10.9167 13.4167 12.3333 14 14 14Z",fill:"currentColor"})}),I6=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"Nodes",children:[r.jsx("mask",{id:"mask0_1506_141",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"16",height:"16",children:r.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_1506_141)",children:r.jsx("path",{id:"hub",d:"M4.00071 15.1667C3.49166 15.1667 3.05873 14.9886 2.70189 14.6322C2.34506 14.2759 2.16664 13.8432 2.16664 13.3341C2.16664 12.8251 2.3449 12.3922 2.70141 12.0353C3.05793 11.6785 3.49084 11.5001 4.00014 11.5001C4.14275 11.5001 4.28286 11.5178 4.42048 11.5533C4.55808 11.5887 4.68799 11.6364 4.81021 11.6962L6.13204 10.0513C5.85512 9.74962 5.66409 9.41201 5.55896 9.03851C5.45384 8.66501 5.43247 8.28938 5.49486 7.91161L3.57431 7.2757C3.40679 7.54493 3.18652 7.76074 2.91351 7.92313C2.6405 8.08552 2.33598 8.16671 1.99996 8.16671C1.4907 8.16671 1.05784 7.98855 0.701359 7.63221C0.344882 7.27588 0.166637 6.84319 0.166626 6.33415C0.166626 5.8251 0.344793 5.39217 0.701126 5.03533C1.05746 4.6785 1.49015 4.50008 1.99919 4.50008C2.50824 4.50008 2.94118 4.67832 3.29801 5.0348C3.65484 5.39128 3.83326 5.82414 3.83328 6.3334C3.83328 6.37272 3.83221 6.40563 3.83008 6.43211C3.82794 6.45861 3.82688 6.48511 3.82688 6.51161L5.74101 7.177C5.92476 6.83683 6.17711 6.54496 6.49806 6.30138C6.81899 6.05779 7.18715 5.90138 7.60253 5.83215V3.78595C7.17347 3.68509 6.82689 3.46821 6.56279 3.13531C6.29869 2.80241 6.16664 2.42312 6.16664 1.99742C6.16664 1.49064 6.34481 1.05883 6.70114 0.701999C7.05748 0.345166 7.49016 0.166748 7.99921 0.166748C8.50825 0.166748 8.94119 0.344987 9.29803 0.701465C9.65486 1.05794 9.83328 1.49081 9.83328 2.00007C9.83328 2.424 9.69951 2.80241 9.43199 3.13531C9.16448 3.46821 8.81961 3.68509 8.39739 3.78595V5.83215C8.81277 5.90138 9.17986 6.05779 9.49866 6.30138C9.81746 6.54496 10.0709 6.83683 10.2589 7.177L12.173 6.51161C12.1688 6.48084 12.1666 6.45327 12.1666 6.42892V6.3334C12.1666 5.82414 12.3448 5.39128 12.7011 5.0348C13.0575 4.67832 13.4902 4.50008 13.9992 4.50008C14.5083 4.50008 14.9412 4.67825 15.298 5.03458C15.6549 5.39091 15.8333 5.8236 15.8333 6.33265C15.8333 6.84169 15.655 7.27463 15.2986 7.63146C14.9421 7.9883 14.5092 8.16671 14 8.16671C13.6653 8.16671 13.3594 8.08552 13.0823 7.92313C12.8052 7.76074 12.5863 7.54493 12.4256 7.2757L10.5051 7.91161C10.5674 8.28938 10.5461 8.6633 10.441 9.03338C10.3358 9.40347 10.1448 9.74065 9.86788 10.0449L11.1897 11.6796C11.3119 11.624 11.4418 11.5802 11.5794 11.5481C11.7171 11.5161 11.8572 11.5001 11.9998 11.5001C12.5091 11.5001 12.942 11.6782 13.2985 12.0346C13.655 12.3909 13.8333 12.8236 13.8333 13.3326C13.8333 13.8417 13.6551 14.2746 13.2988 14.6315C12.9424 14.9883 12.5098 15.1667 12.0007 15.1667C11.4917 15.1667 11.0587 14.9885 10.7019 14.632C10.3451 14.2755 10.1666 13.8427 10.1666 13.3334C10.1666 13.1232 10.2006 12.9208 10.2686 12.7264C10.3365 12.5319 10.438 12.3535 10.573 12.1911L9.25123 10.5334C8.8726 10.759 8.45488 10.8718 7.99804 10.8718C7.54121 10.8718 7.12134 10.759 6.73844 10.5334L5.42688 12.1911C5.55764 12.3535 5.65807 12.5319 5.72816 12.7264C5.79824 12.9208 5.83328 13.1232 5.83328 13.3334C5.83328 13.8427 5.65511 14.2755 5.29878 14.632C4.94244 14.9885 4.50975 15.1667 4.00071 15.1667Z",fill:"currentColor"})})]})}),P6=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M7.37516 8.625V11.3334C7.37516 11.5104 7.43508 11.6589 7.55491 11.7786C7.67476 11.8984 7.82326 11.9583 8.00041 11.9583C8.17758 11.9583 8.32599 11.8984 8.44564 11.7786C8.5653 11.6589 8.62512 11.5104 8.62512 11.3334V8.625H11.3335C11.5106 8.625 11.659 8.56508 11.7788 8.44525C11.8986 8.3254 11.9585 8.1769 11.9585 7.99975C11.9585 7.82258 11.8986 7.67417 11.7788 7.55452C11.659 7.43487 11.5106 7.37504 11.3335 7.37504H8.62512V4.66669C8.62512 4.4896 8.56521 4.34117 8.44537 4.22137C8.32553 4.1016 8.17702 4.04171 7.99987 4.04171C7.82271 4.04171 7.6743 4.1016 7.55464 4.22137C7.43499 4.34117 7.37516 4.4896 7.37516 4.66669V7.37504H4.66681C4.48973 7.37504 4.3413 7.43496 4.22152 7.55479C4.10173 7.67464 4.04183 7.82314 4.04183 8.00029C4.04183 8.17746 4.10173 8.32587 4.22152 8.44552C4.3413 8.56517 4.48973 8.625 4.66681 8.625H7.37516ZM8.00154 15.9167C6.90659 15.9167 5.8774 15.7089 4.91395 15.2933C3.9505 14.8778 3.11243 14.3138 2.39975 13.6015C1.68705 12.8891 1.12284 12.0514 0.7071 11.0884C0.291364 10.1253 0.0834961 9.09636 0.0834961 8.00142C0.0834961 6.90647 0.291274 5.87728 0.70683 4.91383C1.12239 3.95037 1.68634 3.11231 2.3987 2.39963C3.11108 1.68693 3.94878 1.12272 4.91181 0.706979C5.87482 0.291243 6.9038 0.083374 7.99875 0.083374C9.09369 0.083374 10.1229 0.291153 11.0863 0.706708C12.0498 1.12226 12.8879 1.68622 13.6005 2.39858C14.3132 3.11096 14.8774 3.94866 15.2932 4.91169C15.7089 5.8747 15.9168 6.90368 15.9168 7.99863C15.9168 9.09357 15.709 10.1228 15.2935 11.0862C14.8779 12.0497 14.3139 12.8877 13.6016 13.6004C12.8892 14.3131 12.0515 14.8773 11.0885 15.2931C10.1255 15.7088 9.09648 15.9167 8.00154 15.9167ZM8.00014 14.6667C9.86125 14.6667 11.4376 14.0209 12.7293 12.7292C14.021 11.4375 14.6668 9.86113 14.6668 8.00002C14.6668 6.13891 14.021 4.56252 12.7293 3.27085C11.4376 1.97919 9.86125 1.33335 8.00014 1.33335C6.13903 1.33335 4.56264 1.97919 3.27098 3.27085C1.97931 4.56252 1.33348 6.13891 1.33348 8.00002C1.33348 9.86113 1.97931 11.4375 3.27098 12.7292C4.56264 14.0209 6.13903 14.6667 8.00014 14.6667Z",fill:"currentColor"})}),B6=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_1259_25",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_1259_25)",children:r.jsx("path",{d:"M11.25 12.75V16C11.25 16.2125 11.3219 16.3906 11.4657 16.5343C11.6095 16.6781 11.7877 16.75 12.0003 16.75C12.2129 16.75 12.391 16.6781 12.5346 16.5343C12.6782 16.3906 12.75 16.2125 12.75 16V12.75H16C16.2125 12.75 16.3906 12.6781 16.5344 12.5343C16.6781 12.3904 16.75 12.2122 16.75 11.9997C16.75 11.7871 16.6781 11.609 16.5344 11.4654C16.3906 11.3218 16.2125 11.25 16 11.25H12.75V7.99998C12.75 7.78748 12.6781 7.60935 12.5343 7.4656C12.3905 7.32187 12.2123 7.25 11.9997 7.25C11.7871 7.25 11.609 7.32187 11.4654 7.4656C11.3218 7.60935 11.25 7.78748 11.25 7.99998V11.25H8.00001C7.78751 11.25 7.60939 11.3219 7.46566 11.4657C7.32191 11.6095 7.25003 11.7877 7.25003 12.0003C7.25003 12.2129 7.32191 12.391 7.46566 12.5346C7.60939 12.6782 7.78751 12.75 8.00001 12.75H11.25ZM12.0017 21.5C10.6877 21.5 9.45271 21.2506 8.29658 20.752C7.14043 20.2533 6.13475 19.5765 5.27953 18.7217C4.4243 17.8669 3.74724 16.8616 3.24836 15.706C2.74947 14.5504 2.50003 13.3156 2.50003 12.0017C2.50003 10.6877 2.74936 9.45268 3.24803 8.29655C3.7467 7.1404 4.42345 6.13472 5.27828 5.2795C6.13313 4.42427 7.13837 3.74721 8.29401 3.24833C9.44962 2.74944 10.6844 2.5 11.9983 2.5C13.3123 2.5 14.5473 2.74933 15.7034 3.248C16.8596 3.74667 17.8653 4.42342 18.7205 5.27825C19.5757 6.1331 20.2528 7.13834 20.7517 8.29398C21.2505 9.44959 21.5 10.6844 21.5 11.9983C21.5 13.3122 21.2506 14.5473 20.752 15.7034C20.2533 16.8596 19.5766 17.8652 18.7217 18.7205C17.8669 19.5757 16.8616 20.2527 15.706 20.7516C14.5504 21.2505 13.3156 21.5 12.0017 21.5ZM12 20C14.2333 20 16.125 19.225 17.675 17.675C19.225 16.125 20 14.2333 20 12C20 9.76664 19.225 7.87498 17.675 6.32498C16.125 4.77498 14.2333 3.99998 12 3.99998C9.76667 3.99998 7.87501 4.77498 6.32501 6.32498C4.77501 7.87498 4.00001 9.76664 4.00001 12C4.00001 14.2333 4.77501 16.125 6.32501 17.675C7.87501 19.225 9.76667 20 12 20Z",fill:"currentColor"})})]}),N6=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"add_link",children:[r.jsx("mask",{id:"mask0_2659_52",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:r.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_2659_52)",children:r.jsx("path",{id:"add_link_2",d:"M14.1987 13.7821H12.3349C12.1629 13.7821 12.0192 13.7222 11.9039 13.6024C11.7885 13.4826 11.7308 13.3342 11.7308 13.1571C11.7308 12.9851 11.7907 12.8379 11.9105 12.7156C12.0303 12.5933 12.1787 12.5321 12.3558 12.5321H14.1987V10.6891C14.1987 10.5121 14.2587 10.3636 14.3785 10.2438C14.4983 10.124 14.6468 10.0641 14.824 10.0641C15.0012 10.0641 15.1496 10.124 15.2692 10.2438C15.3889 10.3636 15.4487 10.5121 15.4487 10.6891V12.5321H17.2917C17.4687 12.5321 17.6172 12.592 17.737 12.7119C17.8568 12.8317 17.9167 12.9802 17.9167 13.1574C17.9167 13.3345 17.8568 13.4829 17.737 13.6026C17.6172 13.7222 17.4687 13.7821 17.2917 13.7821H15.4487V15.625C15.4487 15.8021 15.3888 15.9505 15.2689 16.0703C15.1491 16.1901 15.0006 16.25 14.8234 16.25C14.6463 16.25 14.4979 16.1901 14.3782 16.0703C14.2586 15.9505 14.1987 15.8021 14.1987 15.625V13.7821ZM8.38142 13.7821H5.8654C4.81904 13.7821 3.92711 13.4134 3.18961 12.676C2.45211 11.9386 2.08336 11.0467 2.08336 10.0005C2.08336 8.95426 2.45211 8.06229 3.18961 7.32458C3.92711 6.58687 4.81904 6.21802 5.8654 6.21802H8.38142C8.55342 6.21802 8.70059 6.27918 8.82292 6.4015C8.94524 6.52383 9.0064 6.67233 9.0064 6.847C9.0064 7.02168 8.94524 7.16884 8.82292 7.2885C8.70059 7.40815 8.55342 7.46798 8.38142 7.46798H5.86444C5.16529 7.46798 4.56865 7.71504 4.07453 8.20916C3.5804 8.70329 3.33334 9.30025 3.33334 10C3.33334 10.6998 3.5804 11.2968 4.07453 11.7909C4.56865 12.285 5.16529 12.5321 5.86444 12.5321H8.38142C8.55342 12.5321 8.70059 12.5933 8.82292 12.7156C8.94524 12.8379 9.0064 12.9864 9.0064 13.1611C9.0064 13.3358 8.94524 13.4829 8.82292 13.6026C8.70059 13.7222 8.55342 13.7821 8.38142 13.7821ZM7.50001 10.625C7.32292 10.625 7.17449 10.5651 7.05471 10.4453C6.93492 10.3254 6.87503 10.1769 6.87503 9.99977C6.87503 9.8226 6.93492 9.67419 7.05471 9.55454C7.17449 9.43489 7.32292 9.37506 7.50001 9.37506H12.5C12.6771 9.37506 12.8255 9.43498 12.9453 9.55481C13.0651 9.67466 13.125 9.82316 13.125 10.0003C13.125 10.1775 13.0651 10.3259 12.9453 10.4455C12.8255 10.5652 12.6771 10.625 12.5 10.625H7.50001ZM17.9167 10H16.6667C16.6667 9.30025 16.4196 8.70329 15.9255 8.20916C15.4314 7.71504 14.8347 7.46798 14.1356 7.46798H11.5978C11.4258 7.46798 11.2821 7.40809 11.1667 7.28831C11.0513 7.16852 10.9936 7.02008 10.9936 6.843C10.9936 6.671 11.0535 6.52383 11.1733 6.4015C11.2931 6.27918 11.4415 6.21802 11.6186 6.21802H14.1346C15.181 6.21802 16.0729 6.58676 16.8104 7.32425C17.5479 8.06175 17.9167 8.95368 17.9167 10Z",fill:"currentColor"})})]})}),R6=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_1259_27",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_1259_27)",children:r.jsx("path",{d:"M5.30773 20.5C4.81061 20.5 4.38506 20.3229 4.03106 19.9689C3.67704 19.6149 3.50003 19.1894 3.50003 18.6923V5.3077C3.50003 4.81058 3.67704 4.38503 4.03106 4.03103C4.38506 3.67701 4.81061 3.5 5.30773 3.5H18.6923C19.1894 3.5 19.615 3.67701 19.969 4.03103C20.323 4.38503 20.5 4.81058 20.5 5.3077V11.6327C20.2538 11.5275 20.0074 11.4384 19.7606 11.3654C19.5138 11.2923 19.2603 11.234 19 11.1904V5.3077C19 5.23077 18.968 5.16024 18.9039 5.09613C18.8397 5.03203 18.7692 4.99998 18.6923 4.99998H5.30773C5.2308 4.99998 5.16027 5.03203 5.09616 5.09613C5.03206 5.16024 5.00001 5.23077 5.00001 5.3077V18.6923C5.00001 18.7692 5.03206 18.8397 5.09616 18.9038C5.16027 18.9679 5.2308 19 5.30773 19H11.1654C11.2026 19.2769 11.2577 19.5387 11.3308 19.7855C11.4038 20.0323 11.4929 20.2705 11.5981 20.5H5.30773ZM5.00001 19V4.99998V11.1904V11.1154V19ZM7.25003 15.8849C7.25003 16.0975 7.32191 16.2756 7.46566 16.4192C7.60939 16.5628 7.78751 16.6346 8.00001 16.6346H11.2673C11.3109 16.3743 11.3757 16.1208 11.4616 15.874C11.5475 15.6272 11.641 15.3808 11.7423 15.1346H8.00001C7.78751 15.1346 7.60939 15.2065 7.46566 15.3503C7.32191 15.4941 7.25003 15.6723 7.25003 15.8849ZM7.25003 12.0003C7.25003 12.2129 7.32191 12.391 7.46566 12.5346C7.60939 12.6782 7.78751 12.75 8.00001 12.75H13.5904C14.0212 12.3846 14.4808 12.0785 14.9692 11.8317C15.4577 11.5849 15.9807 11.4096 16.5384 11.3058C16.4259 11.281 16.3009 11.2655 16.1634 11.2593C16.0259 11.2531 15.901 11.25 15.7885 11.25H8.00001C7.78751 11.25 7.60939 11.3219 7.46566 11.4657C7.32191 11.6095 7.25003 11.7877 7.25003 12.0003ZM7.25003 8.1157C7.25003 8.3283 7.32191 8.50639 7.46566 8.64998C7.60939 8.79356 7.78751 8.86535 8.00001 8.86535H16C16.2125 8.86535 16.3906 8.79344 16.5344 8.64963C16.6781 8.50583 16.75 8.32763 16.75 8.11503C16.75 7.90244 16.6781 7.72436 16.5344 7.58078C16.3906 7.43718 16.2125 7.36538 16 7.36538H8.00001C7.78751 7.36538 7.60939 7.43728 7.46566 7.5811C7.32191 7.72492 7.25003 7.90312 7.25003 8.1157ZM18 22.5576C16.7513 22.5576 15.6891 22.1198 14.8135 21.2442C13.9378 20.3685 13.5 19.3064 13.5 18.0577C13.5 16.809 13.9378 15.7468 14.8135 14.8712C15.6891 13.9955 16.7513 13.5577 18 13.5577C19.2487 13.5577 20.3109 13.9955 21.1865 14.8712C22.0622 15.7468 22.5 16.809 22.5 18.0577C22.5 19.3064 22.0622 20.3685 21.1865 21.2442C20.3109 22.1198 19.2487 22.5576 18 22.5576ZM17.5577 18.5V20.5577C17.5577 20.6756 17.6019 20.7788 17.6904 20.8673C17.7788 20.9557 17.8821 21 18 21C18.118 21 18.2212 20.9557 18.3096 20.8673C18.3981 20.7788 18.4423 20.6756 18.4423 20.5577V18.5H20.5C20.618 18.5 20.7212 18.4557 20.8096 18.3673C20.8981 18.2788 20.9423 18.1756 20.9423 18.0577C20.9423 17.9397 20.8981 17.8365 20.8096 17.748C20.7212 17.6596 20.618 17.6154 20.5 17.6154H18.4423V15.5577C18.4423 15.4397 18.3981 15.3365 18.3096 15.2481C18.2212 15.1596 18.118 15.1154 18 15.1154C17.8821 15.1154 17.7788 15.1596 17.6904 15.2481C17.6019 15.3365 17.5577 15.4397 17.5577 15.5577V17.6154H15.5C15.3821 17.6154 15.2788 17.6596 15.1904 17.748C15.1019 17.8365 15.0577 17.9397 15.0577 18.0577C15.0577 18.1756 15.1019 18.2788 15.1904 18.3673C15.2788 18.4557 15.3821 18.5 15.5 18.5H17.5577Z",fill:"currentColor"})})]}),T6=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 10 10",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M7.50033 10C7.27703 10 7.08233 9.91694 6.9162 9.75081C6.75006 9.58467 6.66699 9.38996 6.66699 9.16667V0.833333C6.66699 0.610042 6.75006 0.415326 6.9162 0.249187C7.08233 0.0830625 7.27703 0 7.50033 0H8.75033C8.97362 0 9.16833 0.0830625 9.33447 0.249187C9.5006 0.415326 9.58366 0.610042 9.58366 0.833333V9.16667C9.58366 9.38996 9.5006 9.58467 9.33447 9.75081C9.16833 9.91694 8.97362 10 8.75033 10H7.50033ZM1.25033 10C1.02703 10 0.832319 9.91694 0.66618 9.75081C0.500055 9.58467 0.416992 9.38996 0.416992 9.16667V0.833333C0.416992 0.610042 0.500055 0.415326 0.66618 0.249187C0.832319 0.0830625 1.02703 0 1.25033 0H2.50033C2.72362 0 2.91833 0.0830625 3.08445 0.249187C3.25059 0.415326 3.33366 0.610042 3.33366 0.833333V9.16667C3.33366 9.38996 3.25059 9.58467 3.08445 9.75081C2.91833 9.91694 2.72362 10 2.50033 10H1.25033Z",fill:"currentColor"})}),U6=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 15 13",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M13.577 7.62502H11.8142C11.6368 7.62502 11.4883 7.56519 11.3687 7.44554C11.249 7.32589 11.1892 7.17739 11.1892 7.00004C11.1892 6.82269 11.249 6.67419 11.3687 6.55454C11.4883 6.43489 11.6368 6.37506 11.8142 6.37506H13.577C13.7543 6.37506 13.9028 6.43489 14.0225 6.55454C14.1421 6.67419 14.202 6.82269 14.202 7.00004C14.202 7.17739 14.1421 7.32589 14.0225 7.44554C13.9028 7.56519 13.7543 7.62502 13.577 7.62502ZM10.1106 10.9279C10.2175 10.7816 10.354 10.6972 10.5201 10.6747C10.6862 10.6523 10.8425 10.6945 10.9888 10.8013L12.3943 11.8574C12.5406 11.9642 12.625 12.1007 12.6475 12.2669C12.6699 12.433 12.6277 12.5892 12.5209 12.7356C12.4141 12.882 12.2776 12.9664 12.1114 12.9888C11.9453 13.0112 11.7891 12.969 11.6427 12.8622L10.2372 11.8061C10.0909 11.6993 10.0065 11.5628 9.98405 11.3967C9.96161 11.2305 10.0038 11.0743 10.1106 10.9279ZM12.3622 2.1106L10.9568 3.16671C10.8104 3.27354 10.6542 3.31574 10.488 3.29331C10.3219 3.27087 10.1854 3.18646 10.0786 3.0401C9.97176 2.89374 9.92956 2.7375 9.95199 2.57137C9.97442 2.40525 10.0588 2.26876 10.2052 2.16192L11.6106 1.10583C11.757 0.998998 11.9133 0.956796 12.0794 0.979227C12.2455 1.00166 12.382 1.08606 12.4888 1.23244C12.5957 1.3788 12.6379 1.53504 12.6154 1.70116C12.593 1.86729 12.5086 2.00377 12.3622 2.1106ZM4.05778 9.08335H1.71805C1.5033 9.08335 1.32408 9.0115 1.18039 8.86779C1.03669 8.7241 0.964844 8.54488 0.964844 8.33014V5.66994C0.964844 5.4552 1.03669 5.27599 1.18039 5.13229C1.32408 4.98858 1.5033 4.91673 1.71805 4.91673H4.05778L6.55134 2.42317C6.75114 2.22339 6.9811 2.17771 7.24124 2.28614C7.50138 2.39459 7.63145 2.5909 7.63145 2.87508V11.125C7.63145 11.4092 7.50138 11.6055 7.24124 11.7139C6.9811 11.8224 6.75114 11.7767 6.55134 11.5769L4.05778 9.08335Z",fill:"currentColor"})}),O6=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M7.28729 0.918723C7.41428 0.105284 8.58572 0.105284 8.71271 0.918723L8.76054 1.22508C9.2444 4.32436 11.6757 6.75568 14.775 7.23954L15.0814 7.28737C15.8948 7.41436 15.8948 8.5858 15.0814 8.71279L14.775 8.76062C11.6757 9.24448 9.2444 11.6758 8.76054 14.7751L8.71271 15.0814C8.58572 15.8949 7.41428 15.8949 7.28729 15.0814L7.23946 14.7751C6.7556 11.6758 4.32428 9.24448 1.225 8.76062L0.918643 8.71279C0.105204 8.5858 0.105204 7.41436 0.918642 7.28737L1.225 7.23954C4.32428 6.75568 6.7556 4.32436 7.23946 1.22508L7.28729 0.918723Z",fill:"currentColor"})}),$6=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_7541_21694",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"15",children:r.jsx("rect",{y:"0.25",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_7541_21694)",children:r.jsx("path",{d:"M1.07697 10.4639C1.16067 9.50216 1.45574 8.61772 1.96217 7.81059C2.4687 7.00354 3.14323 6.36236 3.98576 5.88704L2.99074 4.16621C2.9361 4.0824 2.92244 3.99661 2.94976 3.90881C2.97708 3.82093 3.0356 3.75268 3.12534 3.70406C3.20312 3.65915 3.28503 3.65035 3.37107 3.67767C3.45701 3.70499 3.52692 3.75909 3.58078 3.83998L4.57697 5.56504C5.34872 5.24159 6.15639 5.07986 6.99999 5.07986C7.84358 5.07986 8.65126 5.24159 9.42301 5.56504L10.4192 3.83998C10.4731 3.75909 10.543 3.70499 10.6289 3.67767C10.7149 3.65035 10.7969 3.65915 10.8746 3.70406C10.9644 3.75268 11.0229 3.82093 11.0502 3.90881C11.0775 3.99661 11.0639 4.0824 11.0092 4.16621L10.0142 5.88704C10.8567 6.36236 11.5313 7.00354 12.0378 7.81059C12.5442 8.61772 12.8393 9.50216 12.923 10.4639H1.07697ZM4.30849 8.98323C4.49719 8.98323 4.6564 8.91809 4.78609 8.78782C4.91588 8.65744 4.98078 8.49795 4.98078 8.30934C4.98078 8.12063 4.91564 7.96138 4.78536 7.83159C4.65508 7.70189 4.49559 7.63704 4.30688 7.63704C4.11817 7.63704 3.95897 7.70218 3.82928 7.83246C3.69949 7.96274 3.63459 8.12223 3.63459 8.31094C3.63459 8.49955 3.69973 8.65875 3.83001 8.78854C3.96028 8.91834 4.11978 8.98323 4.30849 8.98323ZM9.69309 8.98323C9.8818 8.98323 10.041 8.91809 10.1707 8.78782C10.3005 8.65744 10.3654 8.49795 10.3654 8.30934C10.3654 8.12063 10.3002 7.96138 10.17 7.83159C10.0397 7.70189 9.88019 7.63704 9.69149 7.63704C9.50278 7.63704 9.34358 7.70218 9.21388 7.83246C9.08409 7.96274 9.0192 8.12223 9.0192 8.31094C9.0192 8.49955 9.08433 8.65875 9.21461 8.78854C9.34489 8.91834 9.50438 8.98323 9.69309 8.98323Z",fill:"currentColor"})})]}),A6=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"arrow_forward",children:[r.jsx("mask",{id:"mask0_8980_24763",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:r.jsx("rect",{id:"Bounding box",x:"20",y:"20",width:"1em",height:"1em",transform:"rotate(-180 20 20)",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_8980_24763)",children:r.jsx("path",{id:"arrow_forward_2",d:"M7.52981 10.4372L16.0625 10.4372C16.2221 10.4372 16.3558 10.4911 16.4635 10.5988C16.5712 10.7065 16.625 10.8401 16.625 10.9997C16.625 11.1593 16.5712 11.293 16.4635 11.4007C16.3558 11.5084 16.2221 11.5622 16.0625 11.5622L7.52981 11.5622L11.4067 15.4391C11.5183 15.5507 11.5733 15.6812 11.5719 15.8307C11.5704 15.9802 11.5115 16.1132 11.3952 16.2295C11.2789 16.3382 11.1471 16.3944 11 16.3983C10.8529 16.4021 10.7212 16.3459 10.6048 16.2295L5.84956 11.4742C5.77938 11.404 5.72986 11.33 5.70101 11.2521C5.67216 11.1742 5.65773 11.0901 5.65773 10.9997C5.65773 10.9093 5.67216 10.8252 5.70101 10.7473C5.72986 10.6694 5.77938 10.5954 5.84956 10.5252L10.6048 5.76993C10.7087 5.66608 10.8373 5.61295 10.9906 5.61055C11.144 5.60815 11.2789 5.66128 11.3952 5.76993C11.5115 5.88626 11.5697 6.01992 11.5697 6.17088C11.5697 6.32184 11.5115 6.45549 11.3952 6.57183L7.52981 10.4372Z",fill:"currentColor"})})]})}),z6=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M9.47019 6.56248H0.9375C0.777887 6.56248 0.644237 6.50863 0.53655 6.40094C0.42885 6.29326 0.375 6.15961 0.375 5.99999C0.375 5.84038 0.42885 5.70673 0.53655 5.59904C0.644237 5.49136 0.777887 5.43751 0.9375 5.43751H9.47019L5.59326 1.56058C5.48172 1.44904 5.42667 1.31851 5.42812 1.169C5.42956 1.01948 5.48846 0.886545 5.60481 0.770208C5.72114 0.661558 5.85287 0.605308 5.99998 0.601458C6.14709 0.597608 6.27882 0.653858 6.39516 0.770208L11.1504 5.52549C11.2206 5.59568 11.2701 5.66971 11.299 5.7476C11.3278 5.82548 11.3423 5.90961 11.3423 5.99999C11.3423 6.09038 11.3278 6.17451 11.299 6.25239C11.2701 6.33028 11.2206 6.40431 11.1504 6.4745L6.39516 11.2298C6.29132 11.3336 6.16272 11.3868 6.00936 11.3892C5.85599 11.3916 5.72114 11.3384 5.60481 11.2298C5.48846 11.1134 5.43028 10.9798 5.43028 10.8288C5.43028 10.6779 5.48846 10.5442 5.60481 10.4279L9.47019 6.56248Z",fill:"currentColor"})}),F6=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 6 10",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M6 5L6.90043e-08 9.33013L4.47556e-07 0.669872L6 5Z",fill:"currentColor"})}),D6=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"Audio",children:[r.jsx("mask",{id:"mask0_1506_147",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"16",height:"16",children:r.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_1506_147)",children:r.jsx("path",{id:"headphones",d:"M4.48719 13.6667H3.53851C3.20175 13.6667 2.91671 13.55 2.68337 13.3167C2.45004 13.0833 2.33337 12.7983 2.33337 12.4615V8.00002C2.33337 7.21337 2.4821 6.47654 2.77954 5.78952C3.07697 5.10251 3.48124 4.50345 3.99234 3.99234C4.50345 3.48124 5.10247 3.07697 5.78941 2.77954C6.47634 2.4821 7.21309 2.33337 7.99966 2.33337C8.78622 2.33337 9.5231 2.4821 10.2103 2.77954C10.8975 3.07697 11.4966 3.48124 12.0077 3.99234C12.5188 4.50345 12.9231 5.10251 13.2205 5.78952C13.518 6.47654 13.6667 7.21337 13.6667 8.00002V12.4615C13.6667 12.7983 13.55 13.0833 13.3167 13.3167C13.0833 13.55 12.7983 13.6667 12.4615 13.6667H11.5129C11.1814 13.6667 10.8977 13.5487 10.6617 13.3127C10.4257 13.0767 10.3077 12.793 10.3077 12.4615V10.1539C10.3077 9.82247 10.4257 9.53878 10.6617 9.30278C10.8977 9.06676 11.1814 8.94876 11.5129 8.94876H12.6667V8.00002C12.6667 6.70002 12.2139 5.59725 11.3084 4.69169C10.4028 3.78614 9.30002 3.33336 8.00002 3.33336C6.70002 3.33336 5.59725 3.78614 4.69169 4.69169C3.78614 5.59725 3.33336 6.70002 3.33336 8.00002V8.94876H4.48719C4.8186 8.94876 5.10231 9.06676 5.33831 9.30278C5.57431 9.53878 5.69231 9.82247 5.69231 10.1539V12.4615C5.69231 12.793 5.57431 13.0767 5.33831 13.3127C5.10231 13.5487 4.8186 13.6667 4.48719 13.6667Z",fill:"currentColor"})})]})}),q6=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_9540_45",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_9540_45)",children:r.jsx("path",{d:"M5.13135 11.705V11.2019H4.04489C3.85871 11.2019 3.70155 11.1378 3.57341 11.0098C3.44537 10.8817 3.38135 10.7245 3.38135 10.5383C3.38135 10.3521 3.44537 10.195 3.57341 10.0668C3.70155 9.9388 3.85871 9.87478 4.04489 9.87478H4.54801V4.12516H4.04489C3.85871 4.12516 3.70155 4.06114 3.57341 3.9331C3.44537 3.80496 3.38135 3.6478 3.38135 3.46162C3.38135 3.27544 3.44537 3.11828 3.57341 2.99014C3.70155 2.8621 3.85871 2.79808 4.04489 2.79808H5.13135V2.29495C5.13135 2.10877 5.19537 1.95161 5.32341 1.82347C5.45155 1.69543 5.60871 1.63141 5.79489 1.63141C5.98107 1.63141 6.13823 1.69543 6.26637 1.82347C6.39441 1.95161 6.45843 2.10877 6.45843 2.29495V2.79808H7.54139V2.29495C7.54139 2.10877 7.60541 1.95161 7.73345 1.82347C7.86159 1.69543 8.01875 1.63141 8.20493 1.63141C8.39111 1.63141 8.54827 1.69543 8.67641 1.82347C8.80445 1.95161 8.86847 2.10877 8.86847 2.29495V2.89185C9.3857 3.04196 9.80958 3.33114 10.1401 3.75941C10.4707 4.18777 10.636 4.67879 10.636 5.23247C10.636 5.50985 10.5896 5.77794 10.497 6.03674C10.4044 6.29555 10.2742 6.52815 10.1062 6.73455C10.4418 6.94805 10.7112 7.2333 10.9144 7.5903C11.1177 7.9473 11.2193 8.33969 11.2193 8.76747C11.2193 9.42537 10.9908 9.99033 10.5339 10.4623C10.0769 10.9345 9.52181 11.1786 8.86847 11.1949V11.705C8.86847 11.8912 8.80445 12.0483 8.67641 12.1765C8.54827 12.3045 8.39111 12.3685 8.20493 12.3685C8.01875 12.3685 7.86159 12.3045 7.73345 12.1765C7.60541 12.0483 7.54139 11.8912 7.54139 11.705V11.2019H6.45843V11.705C6.45843 11.8912 6.39441 12.0483 6.26637 12.1765C6.13823 12.3045 5.98107 12.3685 5.79489 12.3685C5.60871 12.3685 5.45155 12.3045 5.32341 12.1765C5.19537 12.0483 5.13135 11.8912 5.13135 11.705ZM5.8751 6.33643H8.20493C8.50953 6.33643 8.76965 6.22861 8.98529 6.01297C9.20102 5.79724 9.30889 5.53707 9.30889 5.23247C9.30889 4.92797 9.20102 4.66727 8.98529 4.45037C8.76965 4.23356 8.50953 4.12516 8.20493 4.12516H5.8751V6.33643ZM5.8751 9.87478H8.78826C9.09286 9.87478 9.35298 9.76638 9.56862 9.54957C9.78436 9.33267 9.89222 9.07197 9.89222 8.76747C9.89222 8.46287 9.78436 8.20271 9.56862 7.98697C9.35298 7.77133 9.09286 7.66351 8.78826 7.66351H5.8751V9.87478Z",fill:"currentColor"})})]}),G6=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 9 9",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{id:"Icon","fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.97172 5.26825L8.23268 0.525927C8.24606 0.301673 8.05202 0.110397 7.81782 0.116993L3.00677 0.374226C2.66551 0.394014 2.51161 0.796353 2.7525 1.0338L7.30259 5.51889C7.54348 5.75633 7.95165 5.60463 7.97172 5.26825ZM5.56945 5.5915L2.67881 2.74215L1.79555 3.61278L4.6862 6.46213L5.56945 5.5915ZM1.14615 6.44238L0.0353953 5.34749L0.918648 4.47686L3.80929 7.32621L2.92604 8.19685L1.81528 7.10196L0.918648 7.98578C0.731292 8.17046 0.436874 8.17046 0.249518 7.98578C0.0621611 7.8011 0.0621611 7.51089 0.249517 7.32621L1.14615 6.44238Z",fill:"currentColor"})}),W6=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"browse_gallery",children:[r.jsx("mask",{id:"mask0_1360_27257",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:r.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_1360_27257)",children:r.jsx("path",{id:"browse_gallery_2",d:"M11.8 15.8442L12.8442 14.8L9.74998 11.7026V7.25003H8.25003V12.2942L11.8 15.8442ZM18 19.9615V18.3C19.2333 17.7167 20.2083 16.8583 20.925 15.725C21.6417 14.5917 22 13.35 22 12C22 10.65 21.6417 9.40834 20.925 8.27501C20.2083 7.14167 19.2333 6.28334 18 5.70001V4.03851C19.6628 4.67184 20.9952 5.71318 21.9971 7.16253C22.999 8.61188 23.5 10.2244 23.5 12C23.5 13.7756 22.999 15.3881 21.9971 16.8375C20.9952 18.2868 19.6628 19.3282 18 19.9615ZM9.00055 20.5C7.8207 20.5 6.71539 20.2769 5.68463 19.8307C4.65386 19.3846 3.75514 18.7782 2.98848 18.0115C2.22181 17.2449 1.61541 16.3463 1.16927 15.3159C0.723092 14.2855 0.5 13.1804 0.5 12.0006C0.5 10.8207 0.723083 9.7154 1.16925 8.68463C1.6154 7.65386 2.2218 6.75515 2.98845 5.98848C3.75512 5.22183 4.65365 4.61543 5.68405 4.16928C6.71445 3.72311 7.81957 3.50003 8.99942 3.50003C10.1793 3.50003 11.2846 3.72311 12.3154 4.16928C13.3461 4.61543 14.2448 5.22183 15.0115 5.98848C15.7782 6.75515 16.3846 7.65368 16.8307 8.68408C17.2769 9.71448 17.5 10.8196 17.5 11.9995C17.5 13.1793 17.2769 14.2846 16.8307 15.3154C16.3846 16.3461 15.7782 17.2449 15.0115 18.0115C14.2448 18.7782 13.3463 19.3846 12.3159 19.8307C11.2855 20.2769 10.1804 20.5 9.00055 20.5ZM9 19C10.95 19 12.6042 18.3208 13.9625 16.9625C15.3208 15.6042 16 13.95 16 12C16 10.05 15.3208 8.39584 13.9625 7.03751C12.6042 5.67917 10.95 5.00001 9 5.00001C7.05 5.00001 5.39583 5.67917 4.0375 7.03751C2.67917 8.39584 2 10.05 2 12C2 13.95 2.67917 15.6042 4.0375 16.9625C5.39583 18.3208 7.05 19 9 19Z",fill:"currentColor"})})]})}),X6=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_7541_21901",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_7541_21901)",children:r.jsx("path",{d:"M5.21632 8.60415C4.28522 8.60415 3.49344 8.27787 2.84099 7.62531C2.18843 6.97285 1.86215 6.18108 1.86215 5.24998C1.86215 5.08917 1.87396 4.92744 1.89759 4.76479C1.92112 4.60214 1.96054 4.44639 2.01586 4.29754C2.05329 4.20781 2.1038 4.14145 2.16738 4.09848C2.23087 4.05551 2.30262 4.0243 2.38263 4.00485C2.46274 3.98541 2.54334 3.98687 2.62442 4.00923C2.7056 4.03169 2.77944 4.07622 2.84594 4.14281L4.39965 5.68529L5.65163 4.43331L4.11469 2.89083C4.04819 2.82424 4.00371 2.74947 3.98126 2.66654C3.9588 2.58351 3.95729 2.50199 3.97674 2.42198C3.99618 2.34197 4.02836 2.27017 4.07328 2.20658C4.1181 2.143 4.18353 2.09249 4.26957 2.05506C4.41842 1.99605 4.57324 1.95473 4.73405 1.9311C4.89476 1.90758 5.05551 1.89581 5.21632 1.89581C6.14742 1.89581 6.93924 2.22209 7.5918 2.87465C8.24426 3.5271 8.57049 4.31888 8.57049 5.24998C8.57049 5.49605 8.5473 5.72525 8.50092 5.93758C8.45455 6.15001 8.38498 6.35535 8.29223 6.55358L11.4625 9.70577C11.707 9.95029 11.8293 10.2487 11.8293 10.6009C11.8293 10.9531 11.707 11.2516 11.4625 11.4962C11.218 11.7407 10.9196 11.8629 10.5674 11.8629C10.2151 11.8629 9.91672 11.7377 9.67211 11.4871L6.51992 8.3259C6.3142 8.41495 6.10517 8.48359 5.89284 8.53181C5.68041 8.58004 5.4549 8.60415 5.21632 8.60415Z",fill:"currentColor"})})]}),Y6=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M2.1875 11.4688C2.1875 12.0381 2.64941 12.5 3.21875 12.5H10.7812C11.3506 12.5 11.8125 12.0381 11.8125 11.4688V5.625H2.1875V11.4688ZM9.0625 7.25781C9.0625 7.11602 9.17852 7 9.32031 7H10.1797C10.3215 7 10.4375 7.11602 10.4375 7.25781V8.11719C10.4375 8.25898 10.3215 8.375 10.1797 8.375H9.32031C9.17852 8.375 9.0625 8.25898 9.0625 8.11719V7.25781ZM9.0625 10.0078C9.0625 9.86602 9.17852 9.75 9.32031 9.75H10.1797C10.3215 9.75 10.4375 9.86602 10.4375 10.0078V10.8672C10.4375 11.009 10.3215 11.125 10.1797 11.125H9.32031C9.17852 11.125 9.0625 11.009 9.0625 10.8672V10.0078ZM6.3125 7.25781C6.3125 7.11602 6.42852 7 6.57031 7H7.42969C7.57148 7 7.6875 7.11602 7.6875 7.25781V8.11719C7.6875 8.25898 7.57148 8.375 7.42969 8.375H6.57031C6.42852 8.375 6.3125 8.25898 6.3125 8.11719V7.25781ZM6.3125 10.0078C6.3125 9.86602 6.42852 9.75 6.57031 9.75H7.42969C7.57148 9.75 7.6875 9.86602 7.6875 10.0078V10.8672C7.6875 11.009 7.57148 11.125 7.42969 11.125H6.57031C6.42852 11.125 6.3125 11.009 6.3125 10.8672V10.0078ZM3.5625 7.25781C3.5625 7.11602 3.67852 7 3.82031 7H4.67969C4.82148 7 4.9375 7.11602 4.9375 7.25781V8.11719C4.9375 8.25898 4.82148 8.375 4.67969 8.375H3.82031C3.67852 8.375 3.5625 8.25898 3.5625 8.11719V7.25781ZM3.5625 10.0078C3.5625 9.86602 3.67852 9.75 3.82031 9.75H4.67969C4.82148 9.75 4.9375 9.86602 4.9375 10.0078V10.8672C4.9375 11.009 4.82148 11.125 4.67969 11.125H3.82031C3.67852 11.125 3.5625 11.009 3.5625 10.8672V10.0078ZM10.7812 2.875H9.75V1.84375C9.75 1.65469 9.59531 1.5 9.40625 1.5H8.71875C8.52969 1.5 8.375 1.65469 8.375 1.84375V2.875H5.625V1.84375C5.625 1.65469 5.47031 1.5 5.28125 1.5H4.59375C4.40469 1.5 4.25 1.65469 4.25 1.84375V2.875H3.21875C2.64941 2.875 2.1875 3.33691 2.1875 3.90625V4.9375H11.8125V3.90625C11.8125 3.33691 11.3506 2.875 10.7812 2.875Z",fill:"currentColor"})}),K6=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 32 32",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"cancel",children:[r.jsx("mask",{id:"mask0_1264_3381",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"32",height:"32",children:r.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_1264_3381)",children:r.jsx("path",{id:"cancel_2",d:"M16 17.4051L20.0975 21.5025C20.2821 21.6872 20.5141 21.7816 20.7936 21.7859C21.0731 21.7902 21.3094 21.6957 21.5025 21.5025C21.6957 21.3094 21.7923 21.0752 21.7923 20.8C21.7923 20.5248 21.6957 20.2906 21.5025 20.0975L17.4051 16L21.5025 11.9025C21.6872 11.7179 21.7816 11.4859 21.7859 11.2064C21.7902 10.9269 21.6957 10.6906 21.5025 10.4975C21.3094 10.3043 21.0752 10.2077 20.8 10.2077C20.5248 10.2077 20.2906 10.3043 20.0975 10.4975L16 14.5949L11.9025 10.4975C11.7179 10.3129 11.4859 10.2184 11.2064 10.2141C10.9269 10.2099 10.6906 10.3043 10.4975 10.4975C10.3043 10.6906 10.2077 10.9248 10.2077 11.2C10.2077 11.4752 10.3043 11.7094 10.4975 11.9025L14.5949 16L10.4975 20.0975C10.3129 20.2821 10.2184 20.5141 10.2141 20.7936C10.2099 21.0731 10.3043 21.3094 10.4975 21.5025C10.6906 21.6957 10.9248 21.7923 11.2 21.7923C11.4752 21.7923 11.7094 21.6957 11.9025 21.5025L16 17.4051ZM16.0022 28.6666C14.2503 28.6666 12.6036 28.3342 11.0621 27.6693C9.52057 27.0044 8.17966 26.1021 7.03937 24.9623C5.89906 23.8225 4.99632 22.4822 4.33114 20.9413C3.66596 19.4005 3.33337 17.7542 3.33337 16.0022C3.33337 14.2503 3.66582 12.6036 4.33071 11.0621C4.9956 9.52057 5.89793 8.17967 7.03771 7.03938C8.17751 5.89907 9.51783 4.99632 11.0587 4.33114C12.5995 3.66596 14.2459 3.33337 15.9978 3.33337C17.7497 3.33337 19.3964 3.66582 20.9379 4.33071C22.4794 4.9956 23.8204 5.89793 24.9606 7.03771C26.101 8.17751 27.0037 9.51783 27.6689 11.0587C28.3341 12.5995 28.6666 14.2459 28.6666 15.9978C28.6666 17.7497 28.3342 19.3964 27.6693 20.9379C27.0044 22.4794 26.1021 23.8204 24.9623 24.9606C23.8225 26.101 22.4822 27.0037 20.9413 27.6689C19.4005 28.3341 17.7542 28.6666 16.0022 28.6666Z",fill:"currentColor"})})]})}),Q6=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 10 7",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M3.08467 5.34482L8.02842 0.401074C8.14508 0.284408 8.28363 0.226074 8.44404 0.226074C8.60446 0.226074 8.743 0.284408 8.85967 0.401074C8.97633 0.517741 9.03467 0.656283 9.03467 0.816699C9.03467 0.977116 8.97633 1.11566 8.85967 1.23232L3.493 6.59899C3.37633 6.71566 3.24022 6.77399 3.08467 6.77399C2.92911 6.77399 2.793 6.71566 2.67633 6.59899L0.168 4.09066C0.0513333 3.97399 -0.00456944 3.83545 0.000291667 3.67503C0.00515278 3.51462 0.0659167 3.37607 0.182583 3.25941C0.29925 3.14274 0.437792 3.08441 0.598208 3.08441C0.758625 3.08441 0.897167 3.14274 1.01383 3.25941L3.08467 5.34482Z",fill:"currentColor"})}),J6=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 11 8",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M10.6649 1.81615L4.76839 7.381C4.56014 7.57431 4.29239 7.67389 4.02463 7.67389C3.75688 7.67389 3.48913 7.57431 3.28088 7.381L0.329676 4.59858C-0.0987253 4.19439 -0.110625 3.52661 0.299926 3.10485C0.710477 2.6831 1.38878 2.67138 1.81718 3.07556L4.02463 5.16092L9.17735 0.293138C9.60575 -0.111046 10.2841 -0.0934726 10.6946 0.322427C11.1052 0.744184 11.0933 1.41197 10.6649 1.81615Z",fill:"currentColor"})}),e9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 10 6",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M5.00031 5.21584C4.89989 5.21584 4.80642 5.1998 4.71989 5.16772C4.63337 5.13577 4.55107 5.08077 4.47302 5.00272L0.72781 1.25751C0.612533 1.14209 0.551421 0.999177 0.544477 0.82876C0.537532 0.658482 0.598644 0.508691 0.72781 0.379385C0.848644 0.258691 0.995032 0.198343 1.16698 0.198343C1.33892 0.198343 1.48531 0.258691 1.60614 0.379385L5.00031 3.76084L8.39448 0.379385C8.50989 0.263968 8.65281 0.202788 8.82323 0.195843C8.99364 0.188899 9.14351 0.250079 9.27281 0.379385C9.39351 0.50008 9.45385 0.646399 9.45385 0.818344C9.45385 0.990427 9.39351 1.13682 9.27281 1.25751L5.5276 5.00272C5.44955 5.08077 5.36725 5.13577 5.28073 5.16772C5.1942 5.1998 5.10073 5.21584 5.00031 5.21584Z",fill:"currentColor"})}),t9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 18 18",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"keyboard_arrow_left",children:[r.jsx("mask",{id:"mask0_1428_267",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"18",height:"18",children:r.jsx("path",{id:"Bounding box",d:"M0 0H18V18H0V0Z",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_1428_267)",children:r.jsx("path",{id:"keyboard_arrow_left_2",d:"M8.10001 8.99998L11.025 11.925C11.1625 12.0625 11.2313 12.2375 11.2313 12.45C11.2313 12.6625 11.1625 12.8375 11.025 12.975C10.8875 13.1125 10.7125 13.1812 10.5 13.1812C10.2875 13.1812 10.1125 13.1125 9.97501 12.975L6.52501 9.52498C6.45001 9.44998 6.39688 9.36873 6.36563 9.28123C6.33438 9.19373 6.31876 9.09998 6.31876 8.99998C6.31876 8.89998 6.33438 8.80623 6.36563 8.71873C6.39688 8.63123 6.45001 8.54998 6.52501 8.47498L9.97501 5.02498C10.1125 4.88748 10.2875 4.81873 10.5 4.81873C10.7125 4.81873 10.8875 4.88748 11.025 5.02498C11.1625 5.16248 11.2313 5.33748 11.2313 5.54998C11.2313 5.76248 11.1625 5.93748 11.025 6.07498L8.10001 8.99998Z",fill:"currentColor"})})]})}),n9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 18 18",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"chevron_right",children:[r.jsx("mask",{id:"mask0_1247_21809",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"18",height:"18",children:r.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_1247_21809)",children:r.jsx("path",{id:"chevron_right_2",d:"M9.44998 8.99998L6.52498 6.07498C6.38748 5.93748 6.31873 5.76248 6.31873 5.54998C6.31873 5.33748 6.38748 5.16248 6.52498 5.02498C6.66248 4.88748 6.83748 4.81873 7.04998 4.81873C7.26248 4.81873 7.43748 4.88748 7.57498 5.02498L11.025 8.47498C11.1 8.54997 11.1531 8.63123 11.1844 8.71873C11.2156 8.80623 11.2312 8.89998 11.2312 8.99998C11.2312 9.09998 11.2156 9.19373 11.1844 9.28123C11.1531 9.36873 11.1 9.44998 11.025 9.52497L7.57498 12.975C7.43748 13.1125 7.26248 13.1812 7.04998 13.1812C6.83748 13.1812 6.66248 13.1125 6.52498 12.975C6.38748 12.8375 6.31873 12.6625 6.31873 12.45C6.31873 12.2375 6.38748 12.0625 6.52498 11.925L9.44998 8.99998Z",fill:"currentColor"})})]})}),r9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 10 6",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M4.99993 1.71281L1.60576 5.10719C1.49034 5.22247 1.34528 5.28149 1.17055 5.28427C0.99597 5.28691 0.848262 5.22788 0.727428 5.10719C0.606734 4.98635 0.546387 4.83997 0.546387 4.66802C0.546387 4.49608 0.606734 4.34969 0.727428 4.22885L4.47264 0.483646C4.62333 0.333091 4.7991 0.257812 4.99993 0.257812C5.20076 0.257812 5.37653 0.333091 5.52722 0.483646L9.27243 4.22885C9.38771 4.34427 9.44673 4.48934 9.44951 4.66406C9.45215 4.83865 9.39312 4.98635 9.27243 5.10719C9.1516 5.22788 9.00521 5.28823 8.83326 5.28823C8.66132 5.28823 8.51493 5.22788 8.39409 5.10719L4.99993 1.71281Z",fill:"currentColor"})}),i9=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("path",{d:"M9.16074 4.89288H4.83931C4.73083 4.89288 4.64288 4.98083 4.64288 5.08931V9.41074C4.64288 9.51923 4.73083 9.60717 4.83931 9.60717H9.16074C9.26923 9.60717 9.35717 9.51923 9.35717 9.41074V5.08931C9.35717 4.98083 9.26923 4.89288 9.16074 4.89288Z",fill:"currentColor"}),r.jsx("path",{d:"M12.1071 5.67857C12.2113 5.67857 12.3113 5.63718 12.3849 5.56351C12.4586 5.48983 12.5 5.38991 12.5 5.28571C12.5 5.18152 12.4586 5.0816 12.3849 5.00792C12.3113 4.93425 12.2113 4.89286 12.1071 4.89286H11.7143V4.10714C11.7138 3.69051 11.5481 3.29108 11.2535 2.99648C10.9589 2.70188 10.5595 2.53617 10.1429 2.53571H9.35714V2.14286C9.35714 2.03866 9.31575 1.93874 9.24208 1.86507C9.1684 1.79139 9.06848 1.75 8.96429 1.75C8.86009 1.75 8.76017 1.79139 8.68649 1.86507C8.61282 1.93874 8.57143 2.03866 8.57143 2.14286V2.53571H7.39286V2.14286C7.39286 2.03866 7.35147 1.93874 7.27779 1.86507C7.20412 1.79139 7.10419 1.75 7 1.75C6.89581 1.75 6.79588 1.79139 6.72221 1.86507C6.64853 1.93874 6.60714 2.03866 6.60714 2.14286V2.53571H5.42857V2.14286C5.42857 2.03866 5.38718 1.93874 5.31351 1.86507C5.23983 1.79139 5.13991 1.75 5.03571 1.75C4.93152 1.75 4.8316 1.79139 4.75792 1.86507C4.68425 1.93874 4.64286 2.03866 4.64286 2.14286V2.53571H3.85714C3.44051 2.53617 3.04108 2.70188 2.74648 2.99648C2.45188 3.29108 2.28617 3.69051 2.28571 4.10714V4.89286H1.89286C1.78866 4.89286 1.68874 4.93425 1.61507 5.00792C1.54139 5.0816 1.5 5.18152 1.5 5.28571C1.5 5.38991 1.54139 5.48983 1.61507 5.56351C1.68874 5.63718 1.78866 5.67857 1.89286 5.67857H2.28571V6.85714H1.89286C1.78866 6.85714 1.68874 6.89853 1.61507 6.97221C1.54139 7.04588 1.5 7.14581 1.5 7.25C1.5 7.35419 1.54139 7.45412 1.61507 7.52779C1.68874 7.60147 1.78866 7.64286 1.89286 7.64286H2.28571V8.82143H1.89286C1.78866 8.82143 1.68874 8.86282 1.61507 8.93649C1.54139 9.01017 1.5 9.11009 1.5 9.21429C1.5 9.31848 1.54139 9.4184 1.61507 9.49208C1.68874 9.56575 1.78866 9.60714 1.89286 9.60714H2.28571V10.3929C2.28617 10.8095 2.45188 11.2089 2.74648 11.5035C3.04108 11.7981 3.44051 11.9638 3.85714 11.9643H4.64286V12.3571C4.64286 12.4613 4.68425 12.5613 4.75792 12.6349C4.8316 12.7086 4.93152 12.75 5.03571 12.75C5.13991 12.75 5.23983 12.7086 5.31351 12.6349C5.38718 12.5613 5.42857 12.4613 5.42857 12.3571V11.9643H6.60714V12.3571C6.60714 12.4613 6.64853 12.5613 6.72221 12.6349C6.79588 12.7086 6.89581 12.75 7 12.75C7.10419 12.75 7.20412 12.7086 7.27779 12.6349C7.35147 12.5613 7.39286 12.4613 7.39286 12.3571V11.9643H8.57143V12.3571C8.57143 12.4613 8.61282 12.5613 8.68649 12.6349C8.76017 12.7086 8.86009 12.75 8.96429 12.75C9.06848 12.75 9.1684 12.7086 9.24208 12.6349C9.31575 12.5613 9.35714 12.4613 9.35714 12.3571V11.9643H10.1429C10.5595 11.9638 10.9589 11.7981 11.2535 11.5035C11.5481 11.2089 11.7138 10.8095 11.7143 10.3929V9.60714H12.1071C12.2113 9.60714 12.3113 9.56575 12.3849 9.49208C12.4586 9.4184 12.5 9.31848 12.5 9.21429C12.5 9.11009 12.4586 9.01017 12.3849 8.93649C12.3113 8.86282 12.2113 8.82143 12.1071 8.82143H11.7143V7.64286H12.1071C12.2113 7.64286 12.3113 7.60147 12.3849 7.52779C12.4586 7.45412 12.5 7.35419 12.5 7.25C12.5 7.14581 12.4586 7.04588 12.3849 6.97221C12.3113 6.89853 12.2113 6.85714 12.1071 6.85714H11.7143V5.67857H12.1071ZM10.1429 9.60714C10.1429 9.81553 10.0601 10.0154 9.91273 10.1627C9.76538 10.3101 9.56553 10.3929 9.35714 10.3929H4.64286C4.43447 10.3929 4.23462 10.3101 4.08727 10.1627C3.93992 10.0154 3.85714 9.81553 3.85714 9.60714V4.89286C3.85714 4.68447 3.93992 4.48462 4.08727 4.33727C4.23462 4.18992 4.43447 4.10714 4.64286 4.10714H9.35714C9.56553 4.10714 9.76538 4.18992 9.91273 4.33727C10.0601 4.48462 10.1429 4.68447 10.1429 4.89286V9.60714Z",fill:"currentColor"})]}),s9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 32 32",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"cancel",children:[r.jsx("mask",{id:"mask0_1264_3381",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"32",height:"32",children:r.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_1264_3381)",children:r.jsx("path",{id:"cancel_2",d:"M16 17.4051L20.0975 21.5025C20.2821 21.6872 20.5141 21.7816 20.7936 21.7859C21.0731 21.7902 21.3094 21.6957 21.5025 21.5025C21.6957 21.3094 21.7923 21.0752 21.7923 20.8C21.7923 20.5248 21.6957 20.2906 21.5025 20.0975L17.4051 16L21.5025 11.9025C21.6872 11.7179 21.7816 11.4859 21.7859 11.2064C21.7902 10.9269 21.6957 10.6906 21.5025 10.4975C21.3094 10.3043 21.0752 10.2077 20.8 10.2077C20.5248 10.2077 20.2906 10.3043 20.0975 10.4975L16 14.5949L11.9025 10.4975C11.7179 10.3129 11.4859 10.2184 11.2064 10.2141C10.9269 10.2099 10.6906 10.3043 10.4975 10.4975C10.3043 10.6906 10.2077 10.9248 10.2077 11.2C10.2077 11.4752 10.3043 11.7094 10.4975 11.9025L14.5949 16L10.4975 20.0975C10.3129 20.2821 10.2184 20.5141 10.2141 20.7936C10.2099 21.0731 10.3043 21.3094 10.4975 21.5025C10.6906 21.6957 10.9248 21.7923 11.2 21.7923C11.4752 21.7923 11.7094 21.6957 11.9025 21.5025L16 17.4051ZM16.0022 28.6666C14.2503 28.6666 12.6036 28.3342 11.0621 27.6693C9.52057 27.0044 8.17966 26.1021 7.03937 24.9623C5.89906 23.8225 4.99632 22.4822 4.33114 20.9413C3.66596 19.4005 3.33337 17.7542 3.33337 16.0022C3.33337 14.2503 3.66582 12.6036 4.33071 11.0621C4.9956 9.52057 5.89793 8.17967 7.03771 7.03938C8.17751 5.89907 9.51783 4.99632 11.0587 4.33114C12.5995 3.66596 14.2459 3.33337 15.9978 3.33337C17.7497 3.33337 19.3964 3.66582 20.9379 4.33071C22.4794 4.9956 23.8204 5.89793 24.9606 7.03771C26.101 8.17751 27.0037 9.51783 27.6689 11.0587C28.3341 12.5995 28.6666 14.2459 28.6666 15.9978C28.6666 17.7497 28.3342 19.3964 27.6693 20.9379C27.0044 22.4794 26.1021 23.8204 24.9623 24.9606C23.8225 26.101 22.4822 27.0037 20.9413 27.6689C19.4005 28.3341 17.7542 28.6666 16.0022 28.6666Z",fill:"currentColor"})})]})}),o9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 8 8",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M5.5884 4.12155L3.88306 2.41429C3.8396 2.37079 3.80894 2.32471 3.79108 2.27605C3.77323 2.22738 3.7643 2.17524 3.7643 2.11963C3.7643 2.06401 3.77323 2.01206 3.79108 1.96379C3.80894 1.91553 3.8396 1.86964 3.88306 1.82614L5.5884 0.118886C5.63185 0.0753881 5.67788 0.0446995 5.72649 0.0268199C5.7751 0.00894031 5.82719 0 5.88275 0C5.9383 0 5.99019 0.00894031 6.0384 0.0268199C6.08662 0.0446995 6.13245 0.0753881 6.1759 0.118886L7.88125 1.82614C7.9247 1.86964 7.95536 1.91573 7.97321 1.96439C7.99107 2.01306 8 2.0652 8 2.12081C8 2.17643 7.99107 2.22838 7.97321 2.27664C7.95536 2.32491 7.9247 2.37079 7.88125 2.41429L6.1759 4.12155C6.13245 4.16505 6.08642 4.19574 6.03781 4.21362C5.9892 4.23149 5.93711 4.24043 5.88155 4.24043C5.826 4.24043 5.77412 4.23149 5.7259 4.21362C5.67768 4.19574 5.63185 4.16505 5.5884 4.12155ZM0 3.21787V0.804477C0 0.68544 0.0402151 0.585661 0.120645 0.505141C0.201076 0.424621 0.300743 0.384361 0.419648 0.384361H2.83035C2.94925 0.384361 3.04891 0.424621 3.12934 0.505141C3.20977 0.585661 3.24999 0.68544 3.24999 0.804477V3.21787C3.24999 3.3369 3.20977 3.43668 3.12934 3.5172C3.04891 3.59772 2.94925 3.63798 2.83035 3.63798H0.419648C0.300743 3.63798 0.201076 3.59772 0.120645 3.5172C0.0402151 3.43668 0 3.3369 0 3.21787ZM4.35715 7.57988V5.16649C4.35715 5.04746 4.39737 4.94768 4.4778 4.86716C4.55823 4.78664 4.65789 4.74638 4.77679 4.74638H7.18749C7.3064 4.74638 7.40607 4.78664 7.4865 4.86716C7.56693 4.94768 7.60714 5.04746 7.60714 5.16649V7.57988C7.60714 7.69892 7.56693 7.7987 7.4865 7.87922C7.40607 7.95974 7.3064 8 7.18749 8H4.77679C4.65789 8 4.55823 7.95974 4.4778 7.87922C4.39737 7.7987 4.35715 7.69892 4.35715 7.57988ZM0 7.57988V5.16649C0 5.04746 0.0402151 4.94768 0.120645 4.86716C0.201076 4.78664 0.300743 4.74638 0.419648 4.74638H2.83035C2.94925 4.74638 3.04891 4.78664 3.12934 4.86716C3.20977 4.94768 3.24999 5.04746 3.24999 5.16649V7.57988C3.24999 7.69892 3.20977 7.7987 3.12934 7.87922C3.04891 7.95974 2.94925 8 2.83035 8H0.419648C0.300743 8 0.201076 7.95974 0.120645 7.87922C0.0402151 7.7987 0 7.69892 0 7.57988Z",fill:"currentColor"})}),l9=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_7640_4256",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_7640_4256)",children:r.jsx("path",{d:"M3.98234 10.0176L8.00952 8.00958L10.0175 3.9824L5.99031 5.99038L3.98234 10.0176ZM6.99992 7.58331C6.83464 7.58331 6.6961 7.52741 6.58429 7.4156C6.47249 7.3038 6.41658 7.16526 6.41658 6.99998C6.41658 6.8347 6.47249 6.69616 6.58429 6.58435C6.6961 6.47255 6.83464 6.41665 6.99992 6.41665C7.1652 6.41665 7.30374 6.47255 7.41554 6.58435C7.52735 6.69616 7.58325 6.8347 7.58325 6.99998C7.58325 7.16526 7.52735 7.3038 7.41554 7.4156C7.30374 7.52741 7.1652 7.58331 6.99992 7.58331ZM7.00094 12.5416C6.23444 12.5416 5.51397 12.3962 4.83954 12.1053C4.16511 11.8144 3.57847 11.4197 3.07963 10.921C2.58078 10.4223 2.18581 9.83595 1.89473 9.16181C1.60374 8.48767 1.45825 7.7674 1.45825 7.001C1.45825 6.2345 1.6037 5.51403 1.89459 4.8396C2.18547 4.16517 2.58025 3.57854 3.0789 3.07969C3.57755 2.58084 4.16395 2.18588 4.83809 1.89479C5.51222 1.60381 6.23249 1.45831 6.9989 1.45831C7.7654 1.45831 8.48586 1.60376 9.16029 1.89465C9.83472 2.18553 10.4214 2.58031 10.9202 3.07896C11.4191 3.57761 11.814 4.16401 12.1051 4.83815C12.3961 5.51229 12.5416 6.23256 12.5416 6.99896C12.5416 7.76546 12.3961 8.48592 12.1053 9.16035C11.8144 9.83479 11.4196 10.4214 10.9209 10.9203C10.4223 11.4191 9.83589 11.8141 9.16175 12.1052C8.48761 12.3962 7.76734 12.5416 7.00094 12.5416Z",fill:"currentColor"})})]}),C9=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_7541_22054",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_7541_22054)",children:r.jsx("path",{d:"M10.5808 11.4972L7.8257 8.74213L8.74765 7.82003L11.5029 10.5751C11.627 10.6993 11.6891 10.853 11.6891 11.0362C11.6891 11.2194 11.627 11.3731 11.5029 11.4972C11.3787 11.6214 11.225 11.6834 11.0418 11.6834C10.8586 11.6834 10.7049 11.6214 10.5808 11.4972ZM2.50278 11.4972C2.37863 11.3731 2.31655 11.2194 2.31655 11.0362C2.31655 10.853 2.37863 10.6993 2.50278 10.5751L6.08357 6.99446L4.72163 5.63807C4.62587 5.73383 4.50473 5.78171 4.35822 5.78171C4.21161 5.78171 4.09042 5.73383 3.99465 5.63807L3.70984 5.34757V6.56469C3.70984 6.68583 3.65617 6.76794 3.54884 6.811C3.44151 6.85398 3.34482 6.83244 3.25878 6.7464L1.78703 5.27465C1.70099 5.18861 1.6795 5.09197 1.72257 4.98473C1.76554 4.8774 1.8476 4.82373 1.96874 4.82373H3.18586L2.91549 4.55336C2.8101 4.44787 2.7574 4.32391 2.7574 4.18148C2.7574 4.03905 2.8101 3.91509 2.91549 3.80961L4.20786 2.51738C4.37236 2.35278 4.55052 2.23237 4.74234 2.15615C4.93416 2.07983 5.13366 2.04167 5.34084 2.04167C5.50534 2.04167 5.66051 2.06525 5.80634 2.1124C5.95217 2.15946 6.09465 2.23388 6.23378 2.33567C6.30028 2.38049 6.33693 2.44198 6.34374 2.52015C6.35045 2.59832 6.32351 2.66769 6.26295 2.72826L5.3229 3.6683L5.64374 3.98913C5.7394 4.0848 5.78724 4.20594 5.78724 4.35255C5.78724 4.49916 5.7394 4.6203 5.64374 4.71596L7.00553 6.07236L8.40786 4.67003C8.34282 4.5519 8.29533 4.42984 8.26538 4.30384C8.23544 4.17774 8.22047 4.04518 8.22047 3.90615C8.22047 3.38115 8.40145 2.93767 8.7634 2.57571C9.12536 2.21375 9.56884 2.03278 10.0938 2.03278C10.1604 2.03278 10.2212 2.03423 10.2761 2.03715C10.3312 2.04016 10.389 2.04955 10.4495 2.0653C10.5221 2.09067 10.5696 2.14205 10.592 2.21944C10.6144 2.29693 10.5972 2.36406 10.5404 2.42084L9.64847 3.31261C9.59392 3.36725 9.56665 3.42971 9.56665 3.5C9.56665 3.5703 9.59392 3.63276 9.64847 3.6874L10.3126 4.35153C10.3672 4.40607 10.4297 4.43334 10.5 4.43334C10.5703 4.43334 10.6327 4.40607 10.6874 4.35153L11.5792 3.45961C11.6359 3.40283 11.7031 3.38416 11.7806 3.40361C11.8579 3.42305 11.9093 3.47201 11.9347 3.55046C11.9504 3.61103 11.9598 3.66883 11.9628 3.72386C11.9658 3.77879 11.9672 3.83955 11.9672 3.90615C11.9672 4.43115 11.7862 4.87463 11.4243 5.23659C11.0623 5.59855 10.6188 5.77953 10.0938 5.77953C9.95481 5.77953 9.82225 5.76606 9.69615 5.73913C9.57015 5.7122 9.44809 5.6632 9.32997 5.59213L3.42488 11.4972C3.30073 11.6214 3.14702 11.6834 2.96376 11.6834C2.78059 11.6834 2.62693 11.6214 2.50278 11.4972Z",fill:"currentColor"})})]}),a9=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 56 56",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("path",{d:"M4.75129 14.5773L28 1.1547L51.2487 14.5773V41.4226L28 54.8453L4.75129 41.4226V14.5773Z",stroke:"#47505E","stroke-width":"2"}),r.jsx("path",{d:"M51.5956 14.4722L28.0001 28.0003M28.0001 28.0003L4.40457 14.4722M28.0001 28.0003L28.0001 55.3711",stroke:"#47505E","stroke-width":"2"})]}),c9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"content_copy",children:[r.jsx("mask",{id:"mask0_1489_75628",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:r.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_1489_75628)",children:r.jsx("path",{id:"content_copy_2",d:"M5.28363 10.2083C4.98897 10.2083 4.73956 10.1063 4.5354 9.9021C4.33124 9.69793 4.22915 9.44852 4.22915 9.15385V2.51287C4.22915 2.21821 4.33124 1.96879 4.5354 1.76462C4.73956 1.56046 4.98897 1.45837 5.28363 1.45837H10.1746C10.4693 1.45837 10.7187 1.56046 10.9229 1.76462C11.127 1.96879 11.2291 2.21821 11.2291 2.51287V9.15385C11.2291 9.44852 11.127 9.69793 10.9229 9.9021C10.7187 10.1063 10.4693 10.2083 10.1746 10.2083H5.28363ZM5.28363 9.33336H10.1746C10.2195 9.33336 10.2606 9.31466 10.298 9.27727C10.3354 9.23987 10.3541 9.19873 10.3541 9.15385V2.51287C10.3541 2.46799 10.3354 2.42685 10.298 2.38945C10.2606 2.35206 10.2195 2.33336 10.1746 2.33336H5.28363C5.23875 2.33336 5.19762 2.35206 5.16023 2.38945C5.12282 2.42685 5.10412 2.46799 5.10412 2.51287V9.15385C5.10412 9.19873 5.12282 9.23987 5.16023 9.27727C5.19762 9.31466 5.23875 9.33336 5.28363 9.33336ZM3.24198 12.25C2.94733 12.25 2.69792 12.1479 2.49375 11.9437C2.28958 11.7396 2.1875 11.4902 2.1875 11.1955V3.67953H3.06249V11.1955C3.06249 11.2404 3.08118 11.2815 3.11857 11.3189C3.15597 11.3563 3.19711 11.375 3.24198 11.375H9.00796V12.25H3.24198Z",fill:"currentColor"})})]})}),h9=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_9540_27",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_9540_27)",children:r.jsx("path",{d:"M2.51277 11.9583C2.21809 11.9583 1.96867 11.8562 1.7645 11.6521C1.56034 11.4479 1.45825 11.1985 1.45825 10.9038V4.84619C1.45825 4.55151 1.56034 4.30208 1.7645 4.09792C1.96867 3.89375 2.21809 3.79167 2.51277 3.79167H4.95825V2.80452C4.95825 2.50984 5.06034 2.26042 5.2645 2.05625C5.46867 1.85208 5.71809 1.75 6.01277 1.75H7.98706C8.28174 1.75 8.53117 1.85208 8.73534 2.05625C8.9395 2.26042 9.04159 2.50984 9.04159 2.80452V3.79167H11.4871C11.7817 3.79167 12.0312 3.89375 12.2353 4.09792C12.4395 4.30208 12.5416 4.55151 12.5416 4.84619V10.9038C12.5416 11.1985 12.4395 11.4479 12.2353 11.6521C12.0312 11.8562 11.7817 11.9583 11.4871 11.9583H2.51277ZM5.83325 3.79167H8.16659V2.80452C8.16659 2.7596 8.14787 2.71848 8.11044 2.68115C8.07311 2.64371 8.03198 2.625 7.98706 2.625H6.01277C5.96786 2.625 5.92673 2.64371 5.8894 2.68115C5.85197 2.71848 5.83325 2.7596 5.83325 2.80452V3.79167Z",fill:"currentColor"})})]}),u9=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 23 22",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_8954_27793",maskUnits:"userSpaceOnUse",x:"10",y:"-3",width:"16",height:"16",children:r.jsx("rect",{x:"10",y:"-3",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_8954_27793)",children:r.jsx("path",{d:"M17.5 5.50005H14.1666C14.025 5.50005 13.9062 5.45212 13.8104 5.35625C13.7145 5.26037 13.6666 5.14157 13.6666 4.99985C13.6666 4.85812 13.7145 4.73939 13.8104 4.64367C13.9062 4.54794 14.025 4.50008 14.1666 4.50008H17.5V1.16675C17.5 1.02508 17.5479 0.906331 17.6438 0.810498C17.7396 0.714665 17.8584 0.666748 18.0002 0.666748C18.1419 0.666748 18.2606 0.714665 18.3563 0.810498C18.4521 0.906331 18.4999 1.02508 18.4999 1.16675V4.50008H21.8333C21.9749 4.50008 22.0937 4.54802 22.1895 4.64388C22.2853 4.73976 22.3333 4.85856 22.3333 5.00028C22.3333 5.14202 22.2853 5.26074 22.1895 5.35647C22.0937 5.45219 21.9749 5.50005 21.8333 5.50005H18.4999V8.83338C18.4999 8.97505 18.452 9.0938 18.3561 9.18963C18.2602 9.28547 18.1414 9.33338 17.9997 9.33338C17.858 9.33338 17.7393 9.28547 17.6435 9.18963C17.5478 9.0938 17.5 8.97505 17.5 8.83338V5.50005Z",fill:"currentColor"})}),r.jsx("path",{d:"M1.33333 6C1.33333 7.47276 2.52724 8.66667 4 8.66667C5.47276 8.66667 6.66667 7.47276 6.66667 6C6.66667 4.52724 5.47276 3.33333 4 3.33333C2.52724 3.33333 1.33333 4.52724 1.33333 6ZM14.3333 19C14.3333 20.4728 15.5272 21.6667 17 21.6667C18.4728 21.6667 19.6667 20.4728 19.6667 19C19.6667 17.5272 18.4728 16.3333 17 16.3333C15.5272 16.3333 14.3333 17.5272 14.3333 19ZM3.64645 6.35355L16.6464 19.3536L17.3536 18.6464L4.35355 5.64645L3.64645 6.35355Z",fill:"currentColor"})]}),d9=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 34 34",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_2777_4506",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"34",height:"34",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsxs("g",{mask:"url(#mask0_2777_4506)",children:[r.jsx("mask",{id:"mask1_2777_4506",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"34",height:"34",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask1_2777_4506)",children:r.jsx("path",{d:"M8.25212 29.988L10.5542 20.0359L2.83337 13.3421L13.0334 12.4567L17 3.07129L20.9667 12.4567L31.1667 13.3421L23.4459 20.0359L25.748 29.988L17 24.7109L8.25212 29.988Z",fill:"currentColor"})})]})]}),f9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"delete",children:[r.jsx("mask",{id:"mask0_2401_3378",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:r.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{children:r.jsx("path",{id:"delete_2",d:"M6.08975 17.0834C5.67415 17.0834 5.31919 16.9362 5.02485 16.6419C4.73051 16.3475 4.58333 15.9926 4.58333 15.577V5.00009H4.375C4.19765 5.00009 4.04915 4.94026 3.9295 4.82061C3.80983 4.70095 3.75 4.55245 3.75 4.37511C3.75 4.19776 3.80983 4.04926 3.9295 3.92961C4.04915 3.80994 4.19765 3.75011 4.375 3.75011H7.49998C7.49998 3.54605 7.57183 3.37218 7.71552 3.22848C7.85922 3.08479 8.03309 3.01294 8.23715 3.01294H11.7628C11.9669 3.01294 12.1407 3.08479 12.2844 3.22848C12.4281 3.37218 12.5 3.54605 12.5 3.75011H15.625C15.8023 3.75011 15.9508 3.80994 16.0705 3.92961C16.1901 4.04926 16.25 4.19776 16.25 4.37511C16.25 4.55245 16.1901 4.70095 16.0705 4.82061C15.9508 4.94026 15.8023 5.00009 15.625 5.00009H15.4166V15.577C15.4166 15.9926 15.2695 16.3475 14.9751 16.6419C14.6808 16.9362 14.3258 17.0834 13.9102 17.0834H6.08975ZM14.1666 5.00009H5.83331V15.577C5.83331 15.6518 5.85735 15.7132 5.90544 15.7613C5.95352 15.8094 6.01496 15.8334 6.08975 15.8334H13.9102C13.985 15.8334 14.0464 15.8094 14.0945 15.7613C14.1426 15.7132 14.1666 15.6518 14.1666 15.577V5.00009ZM7.83654 14.1668H9.08652V6.66675H7.83654V14.1668ZM10.9134 14.1668H12.1634V6.66675H10.9134V14.1668Z",fill:"currentColor"})})]})}),p9=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 60 52",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("path",{d:"M12.849 16.2461L31.5592 5.44376L50.2694 16.2461V37.8508L31.5592 48.6531L12.849 37.8508V16.2461Z",stroke:"#6B7A8D",fill:"currentColor","stroke-width":"2"}),r.jsx("path",{d:"M50.7383 16.0509L31.559 27.047M31.559 27.047L12.3798 16.0509M31.559 27.047L31.559 49.2949",stroke:"#6B7A8D","stroke-width":"2"}),r.jsx("path",{d:"M7.44052 9.03136C5.80715 8.08833 3.71857 8.64797 2.77554 10.2813C1.83251 11.9147 2.39215 14.0033 4.02552 14.9463L52.5595 42.9674C54.1929 43.9104 56.2814 43.3508 57.2245 41.7174L55.4924 40.7174L57.2245 41.7174C58.1675 40.0841 57.6079 37.9955 55.9745 37.0525L7.44052 9.03136Z",fill:"currentColor",stroke:"#23252F","stroke-width":"4","stroke-linecap":"round"})]}),x9=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_7541_22108",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_7541_22108)",children:r.jsx("path",{d:"M5.22302 6.62316L6.51656 5.32073L5.50915 4.30427L5.15798 4.65543C5.07719 4.73623 4.97715 4.77905 4.85785 4.78391C4.73866 4.78877 4.63381 4.74595 4.54329 4.65543C4.45278 4.56492 4.40752 4.46099 4.40752 4.34364C4.40752 4.2262 4.45278 4.12222 4.54329 4.03171L4.88542 3.68958L3.98796 2.79212L2.68552 4.09456L5.22302 6.62316ZM9.8999 11.3088L11.2022 10.0064L10.3047 9.10889L9.95371 9.45116C9.86689 9.53789 9.76534 9.58217 9.64906 9.58402C9.53279 9.58587 9.42939 9.54158 9.33888 9.45116C9.24846 9.36065 9.20325 9.25818 9.20325 9.14375C9.20325 9.02932 9.24846 8.92684 9.33888 8.83633L9.68115 8.48531L8.67038 7.48343L7.37683 8.77698L9.8999 11.3088ZM9.2626 3.84329L10.1746 4.75533L11.0924 3.8376L10.1713 2.91666L9.2626 3.84329ZM2.569 11.9583C2.4186 11.9583 2.29313 11.908 2.1926 11.8074C2.09198 11.7069 2.04167 11.5814 2.04167 11.431V10.0187C2.04167 9.94846 2.0544 9.88152 2.07987 9.81793C2.10525 9.75435 2.14526 9.69529 2.1999 9.64075L4.59944 7.24121L1.953 4.58923C1.81767 4.45389 1.75 4.289 1.75 4.09456C1.75 3.90012 1.81767 3.73523 1.953 3.59989L3.49329 2.0596C3.62863 1.92427 3.79351 1.85811 3.98796 1.86112C4.1824 1.86404 4.34729 1.93321 4.48263 2.06864L7.14919 4.72048L9.55325 2.30752C9.64376 2.217 9.74322 2.15007 9.85163 2.10671C9.96003 2.06334 10.0733 2.04166 10.1916 2.04166C10.3097 2.04166 10.423 2.06334 10.5314 2.10671C10.6399 2.15007 10.7393 2.217 10.8297 2.30752L11.6925 3.19608C11.783 3.2865 11.849 3.38595 11.8904 3.49445C11.9319 3.60286 11.9526 3.71612 11.9526 3.83425C11.9526 3.95247 11.9319 4.06335 11.8904 4.16689C11.849 4.27043 11.783 4.36746 11.6925 4.45798L9.29965 6.86539L11.9404 9.51737C12.0757 9.65271 12.1434 9.81759 12.1434 10.012C12.1434 10.2065 12.0757 10.3714 11.9404 10.5067L10.4001 12.047C10.2648 12.1823 10.0999 12.25 9.90544 12.25C9.71099 12.25 9.5461 12.1823 9.41077 12.047L6.75879 9.40056L4.35925 11.8001C4.30471 11.8547 4.24565 11.8947 4.18206 11.9201C4.11848 11.9456 4.05154 11.9583 3.98125 11.9583H2.569Z",fill:"currentColor"})})]}),g9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M1.33333 12C0.966667 12 0.652778 11.8694 0.391667 11.6083C0.130556 11.3472 0 11.0333 0 10.6667V1.33333C0 0.966667 0.130556 0.652778 0.391667 0.391667C0.652778 0.130556 0.966667 0 1.33333 0H10.6667C11.0333 0 11.3472 0.130556 11.6083 0.391667C11.8694 0.652778 12 0.966667 12 1.33333V10.6667C12 11.0333 11.8694 11.3472 11.6083 11.6083C11.3472 11.8694 11.0333 12 10.6667 12H1.33333ZM3.33333 9.33333H6.66667C6.85556 9.33333 7.01389 9.26945 7.14167 9.14167C7.26944 9.01389 7.33333 8.85556 7.33333 8.66667C7.33333 8.47778 7.26944 8.31945 7.14167 8.19167C7.01389 8.06389 6.85556 8 6.66667 8H3.33333C3.14444 8 2.98611 8.06389 2.85833 8.19167C2.73056 8.31945 2.66667 8.47778 2.66667 8.66667C2.66667 8.85556 2.73056 9.01389 2.85833 9.14167C2.98611 9.26945 3.14444 9.33333 3.33333 9.33333ZM3.33333 6.66667H8.66667C8.85556 6.66667 9.01389 6.60278 9.14167 6.475C9.26945 6.34722 9.33333 6.18889 9.33333 6C9.33333 5.81111 9.26945 5.65278 9.14167 5.525C9.01389 5.39722 8.85556 5.33333 8.66667 5.33333H3.33333C3.14444 5.33333 2.98611 5.39722 2.85833 5.525C2.73056 5.65278 2.66667 5.81111 2.66667 6C2.66667 6.18889 2.73056 6.34722 2.85833 6.475C2.98611 6.60278 3.14444 6.66667 3.33333 6.66667ZM3.33333 4H8.66667C8.85556 4 9.01389 3.93611 9.14167 3.80833C9.26945 3.68056 9.33333 3.52222 9.33333 3.33333C9.33333 3.14444 9.26945 2.98611 9.14167 2.85833C9.01389 2.73056 8.85556 2.66667 8.66667 2.66667H3.33333C3.14444 2.66667 2.98611 2.73056 2.85833 2.85833C2.73056 2.98611 2.66667 3.14444 2.66667 3.33333C2.66667 3.52222 2.73056 3.68056 2.85833 3.80833C2.98611 3.93611 3.14444 4 3.33333 4Z",fill:"currentColor"})}),m9=e=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",children:[r.jsx("mask",{id:"mask0_2638_2680",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_2638_2680)",children:r.jsx("path",{d:"M9.99732 16C9.90858 16 9.82421 15.985 9.74419 15.9551C9.66418 15.9252 9.5909 15.8765 9.52435 15.8091L6.18835 12.4277C6.06278 12.3004 6 12.1406 6 11.9483C6 11.7559 6.06278 11.5961 6.18835 11.4689C6.32145 11.3315 6.48099 11.2648 6.66697 11.2686C6.85295 11.2724 7.00873 11.3392 7.13429 11.4689L9.32114 13.674V4.68539C9.32114 4.49306 9.3864 4.33074 9.51692 4.19845C9.64744 4.06615 9.80758 4 9.99732 4C10.1871 4 10.3472 4.06615 10.4777 4.19845C10.6082 4.33074 10.6735 4.49306 10.6735 4.68539V13.674L12.849 11.4689C12.9845 11.3315 13.1447 11.2629 13.3294 11.2629C13.5143 11.2629 13.6744 11.3315 13.8099 11.4689C13.9378 11.6062 14.0012 11.7685 14 11.9558C13.9988 12.1431 13.9354 12.3004 13.8099 12.4277L10.4738 15.8091C10.4073 15.8765 10.3334 15.9252 10.2522 15.9551C10.171 15.985 10.0861 16 9.99732 16Z",fill:"currentColor"})})]}),w9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("g",{id:"Type=Edit, Size=20x20",children:r.jsx("path",{id:"icon","fill-rule":"evenodd","clip-rule":"evenodd",d:"M14.9243 3.3359L9.06461 9.19559C8.97523 9.28497 8.9036 9.39048 8.85353 9.50654L7.99772 11.49C7.89015 11.7394 8.14272 11.9919 8.39203 11.8843L10.3755 11.0285C10.4916 10.9785 10.5971 10.9068 10.6865 10.8175L16.5462 4.95777C16.994 4.50991 16.994 3.78377 16.5462 3.3359C16.0983 2.88804 15.3722 2.88804 14.9243 3.3359ZM14.5297 10.7363C14.5297 10.3876 14.8127 10.1047 15.1615 10.1047C15.5116 10.1047 15.7933 10.3889 15.7933 10.7363L15.7222 14.1051C15.7222 15.1499 14.8954 16 13.8506 16H5.87166C4.85054 16 4 15.1499 4 14.0814V6.0806C4 5.05918 4.85054 4.2091 5.87166 4.2091L9.68606 4.20936C10.0362 4.20936 10.3178 4.49228 10.3178 4.841C10.3178 5.18972 10.0349 5.47264 9.68606 5.47264H5.89535C5.54735 5.47264 5.26357 5.75609 5.26357 6.10428V14.1051C5.26357 14.4533 5.54735 14.7367 5.89535 14.7367H13.898C14.246 14.7367 14.5297 14.4533 14.5297 14.1051V10.7363Z",fill:"currentColor"})})}),v9=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"4 3 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("path",{d:"M10 4.7002H6.1C5.21634 4.7002 4.5 5.41654 4.5 6.3002V13.9002C4.5 14.7838 5.21634 15.5002 6.1 15.5002H13.7C14.5837 15.5002 15.3 14.7839 15.3 13.9002V10.5002",stroke:"#909BAA","stroke-linecap":"round"}),r.jsx("path",{d:"M16 4L9 11",stroke:"#909BAA","stroke-width":"1.5","stroke-linecap":"round"})]}),_9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10.1765 0.310088L4.72809 5.70971C4.63832 5.79868 4.56637 5.90372 4.51607 6.01926L3.74627 7.78746C3.63822 8.03565 3.89191 8.28707 4.14234 8.17999L5.92651 7.41707C6.04309 7.36722 6.14907 7.29592 6.23885 7.20695L11.6872 1.80733C12.1044 1.39388 12.1044 0.723539 11.6872 0.310088C11.27 -0.103363 10.5936 -0.103363 10.1765 0.310088ZM9.80835 7.14088C9.80835 6.81895 10.072 6.55777 10.3969 6.55777C10.723 6.55777 10.9854 6.82017 10.9854 7.14088L10.9191 10.2508C10.9191 11.2153 10.1489 12.0001 9.17571 12.0001H1.74343C0.79227 12.0001 0 11.2153 0 10.2289V2.84292C0 1.89999 0.79227 1.11523 1.74343 1.11523L5.29651 1.11548C5.62264 1.11548 5.88501 1.37666 5.88501 1.69858C5.88501 2.0205 5.62141 2.28168 5.29651 2.28168H1.7655C1.44134 2.28168 1.177 2.54335 1.177 2.86479V10.2508C1.177 10.5722 1.44134 10.8339 1.7655 10.8339H9.21985C9.54402 10.8339 9.80835 10.5722 9.80835 10.2508V7.14088Z",fill:"currentColor"})}),k9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"Episode",children:[r.jsx("path",{id:"Rectangle 4456 (Stroke)","fill-rule":"evenodd","clip-rule":"evenodd",d:"M10 6.125H1L1 11H10V6.125ZM1 5.125C0.447715 5.125 0 5.57272 0 6.125V11C0 11.5523 0.447715 12 1 12H10C10.5523 12 11 11.5523 11 11V6.125C11 5.57272 10.5523 5.125 10 5.125H1Z",fill:"currentColor"}),r.jsx("path",{id:"Rectangle 4457 (Stroke)","fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.0625 3.5625H2.0625V2.5625H12.0625C12.8909 2.5625 13.5625 3.23407 13.5625 4.0625V9.9375H12.5625V4.0625C12.5625 3.78636 12.3386 3.5625 12.0625 3.5625Z",fill:"currentColor"}),r.jsx("path",{id:"Rectangle 4458 (Stroke)","fill-rule":"evenodd","clip-rule":"evenodd",d:"M14.125 1.5H4.125V0.5H14.125C14.9534 0.5 15.625 1.17157 15.625 2V7.875H14.625V2C14.625 1.72386 14.4011 1.5 14.125 1.5Z",fill:"currentColor"})]})}),j9=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_9540_31",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_9540_31)",children:r.jsx("path",{d:"M4.2304 12.5416C3.33955 12.5416 2.5819 12.2297 1.95744 11.6058C1.33298 10.9821 1.02075 10.2245 1.02075 9.33331V6.59617C1.02075 6.30615 1.124 6.0579 1.3305 5.8514C1.537 5.6449 1.78526 5.54165 2.07527 5.54165H6.3829C6.67291 5.54165 6.92117 5.6449 7.12767 5.8514C7.33417 6.0579 7.43742 6.30615 7.43742 6.59617V9.33331C7.43742 10.2245 7.12563 10.9821 6.50204 11.6058C5.87846 12.2297 5.12125 12.5416 4.2304 12.5416ZM3.06242 8.40217C3.20903 8.40217 3.33357 8.35098 3.43604 8.2486C3.53842 8.14613 3.58961 8.02159 3.58961 7.87498C3.58961 7.72837 3.53842 7.60383 3.43604 7.50135C3.33357 7.39898 3.20903 7.34779 3.06242 7.34779C2.91581 7.34779 2.79131 7.39898 2.68894 7.50135C2.58647 7.60383 2.53523 7.72837 2.53523 7.87498C2.53523 8.02159 2.58647 8.14613 2.68894 8.2486C2.79131 8.35098 2.91581 8.40217 3.06242 8.40217ZM5.39575 8.40217C5.54236 8.40217 5.6669 8.35098 5.76938 8.2486C5.87175 8.14613 5.92294 8.02159 5.92294 7.87498C5.92294 7.72837 5.87175 7.60383 5.76938 7.50135C5.6669 7.39898 5.54236 7.34779 5.39575 7.34779C5.24914 7.34779 5.12465 7.39898 5.02227 7.50135C4.9198 7.60383 4.86856 7.72837 4.86856 7.87498C4.86856 8.02159 4.9198 8.14613 5.02227 8.2486C5.12465 8.35098 5.24914 8.40217 5.39575 8.40217ZM12.9791 2.51283V5.24998C12.9791 6.14122 12.6671 6.89872 12.0433 7.5225C11.4195 8.14638 10.662 8.45831 9.77075 8.45831C9.59575 8.45831 9.42318 8.4449 9.25304 8.41806C9.0829 8.39133 8.9152 8.35113 8.74992 8.29746C8.61381 8.24389 8.50686 8.15595 8.42908 8.03365C8.35131 7.91144 8.31242 7.77552 8.31242 7.6259V6.23713C8.31242 5.83628 8.19575 5.48161 7.96242 5.17313C7.72909 4.86464 7.42546 4.7104 7.05154 4.7104C6.91057 4.7104 6.79381 4.65916 6.70125 4.55669C6.6087 4.45422 6.56242 4.32972 6.56242 4.18321V2.51283C6.56242 2.22282 6.66567 1.97456 6.87217 1.76806C7.07867 1.56156 7.32693 1.45831 7.61694 1.45831H11.9246C12.2146 1.45831 12.4628 1.56156 12.6693 1.76806C12.8758 1.97456 12.9791 2.22282 12.9791 2.51283ZM8.60409 4.31883C8.7507 4.31883 8.87519 4.26765 8.97756 4.16527C9.08004 4.0628 9.13127 3.93826 9.13127 3.79165C9.13127 3.64504 9.08004 3.52049 8.97756 3.41802C8.87519 3.31565 8.7507 3.26446 8.60409 3.26446C8.45747 3.26446 8.33293 3.31565 8.23046 3.41802C8.12809 3.52049 8.0769 3.64504 8.0769 3.79165C8.0769 3.93826 8.12809 4.0628 8.23046 4.16527C8.33293 4.26765 8.45747 4.31883 8.60409 4.31883ZM10.9374 4.31883C11.084 4.31883 11.2085 4.26765 11.3109 4.16527C11.4134 4.0628 11.4646 3.93826 11.4646 3.79165C11.4646 3.64504 11.4134 3.52049 11.3109 3.41802C11.2085 3.31565 11.084 3.26446 10.9374 3.26446C10.7908 3.26446 10.6663 3.31565 10.5638 3.41802C10.4614 3.52049 10.4102 3.64504 10.4102 3.79165C10.4102 3.93826 10.4614 4.0628 10.5638 4.16527C10.6663 4.26765 10.7908 4.31883 10.9374 4.31883ZM9.77046 5.30613C9.51486 5.30613 9.26947 5.35362 9.03429 5.4486C8.79911 5.54349 8.61945 5.70051 8.49529 5.91965C8.44289 6.00938 8.4494 6.09557 8.51484 6.17821C8.58027 6.26085 8.67131 6.30217 8.78798 6.30217H10.7534C10.8663 6.30217 10.9555 6.26085 11.021 6.17821C11.0864 6.09557 11.093 6.00938 11.0407 5.91965C10.9165 5.70051 10.7377 5.54349 10.5041 5.4486C10.2706 5.35362 10.0261 5.30613 9.77046 5.30613ZM4.22909 10.3855C4.47885 10.3855 4.71685 10.3395 4.94309 10.2475C5.16932 10.1556 5.3505 10.006 5.48661 9.79881C5.54494 9.70781 5.54586 9.61686 5.48938 9.52596C5.43299 9.43496 5.34646 9.38946 5.22979 9.38946H3.22852C3.1137 9.38946 3.02756 9.43525 2.97011 9.52683C2.91274 9.61842 2.91323 9.70908 2.97156 9.79881C3.10768 10.006 3.28885 10.1556 3.51509 10.2475C3.74132 10.3395 3.97932 10.3855 4.22909 10.3855Z",fill:"currentColor"})})]}),y9=e=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 32 32",fill:"currentColor",children:[r.jsx("mask",{id:"mask0_4160_9271",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"32",height:"32",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_4160_9271)",children:r.jsx("path",{d:"M11 25V21H7V19H13V25H11ZM19 25V19H25V21H21V25H19ZM7 13V11H11V7H13V13H7ZM19 13V7H21V11H25V13H19Z",fill:"currentColor"})})]}),L9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"captive_portal",children:[r.jsx("mask",{id:"mask0_8513_13265",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:r.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),r.jsxs("g",{mask:"url(#mask0_8513_13265)",children:[r.jsx("path",{id:"captive_portal_2",d:"M9.99992 17.9154C8.90589 17.9154 7.87735 17.7073 6.91429 17.2912C5.9511 16.8751 5.11318 16.3107 4.40054 15.5981C3.6879 14.8854 3.12353 14.0475 2.70742 13.0843C2.29131 12.1213 2.08325 11.0927 2.08325 9.9987C2.08325 8.90467 2.29131 7.87613 2.70742 6.91307C3.12353 5.94988 3.6879 5.11196 4.40054 4.39932C5.11318 3.68668 5.9511 3.12231 6.91429 2.7062C7.87735 2.29009 8.90589 2.08203 9.99992 2.08203C11.0939 2.08203 12.1225 2.29009 13.0855 2.7062C14.0487 3.12231 14.8867 3.68668 15.5993 4.39932C16.3119 5.11196 16.8763 5.94988 17.2924 6.91307C17.7085 7.87613 17.9166 8.90467 17.9166 9.9987C17.9166 10.1429 17.9131 10.2983 17.9062 10.4649C17.8992 10.6316 17.8861 10.7871 17.8668 10.9314C17.8444 11.1088 17.7699 11.2487 17.6433 11.3512C17.5167 11.4538 17.3605 11.5052 17.1745 11.5052C17.011 11.5052 16.8717 11.4346 16.7564 11.2935C16.641 11.1525 16.5945 10.9977 16.617 10.8289C16.6448 10.6846 16.66 10.5462 16.6626 10.4137C16.6653 10.2812 16.6666 10.1429 16.6666 9.9987C16.6666 9.69425 16.6466 9.39113 16.6066 9.08932C16.5664 8.78738 16.5037 8.48689 16.4183 8.18786H13.3203C13.3727 8.48689 13.4107 8.78738 13.4343 9.08932C13.4578 9.39113 13.4695 9.69425 13.4695 9.9987C13.4695 10.1429 13.4682 10.2962 13.4655 10.4587C13.4628 10.6211 13.4544 10.7743 13.4405 10.9185C13.4182 11.0959 13.345 11.2379 13.221 11.3447C13.0971 11.4517 12.9464 11.5052 12.7691 11.5052C12.6056 11.5052 12.4628 11.4389 12.3405 11.3064C12.2182 11.1739 12.1682 11.0233 12.1905 10.8545C12.2044 10.7102 12.2128 10.5676 12.2155 10.4266C12.2182 10.2855 12.2195 10.1429 12.2195 9.9987C12.2195 9.69425 12.2078 9.39113 12.1843 9.08932C12.1607 8.78738 12.1228 8.48689 12.0705 8.18786H7.92929C7.87707 8.48689 7.83915 8.78738 7.81554 9.08932C7.79207 9.39113 7.78033 9.69425 7.78033 9.9987C7.78033 10.3031 7.79207 10.6063 7.81554 10.9081C7.83915 11.21 7.87707 11.5105 7.92929 11.8095H10.3685C10.5458 11.8095 10.6944 11.8694 10.8141 11.9891C10.9337 12.1087 10.9935 12.2572 10.9935 12.4345C10.9935 12.6119 10.9337 12.7604 10.8141 12.8802C10.6944 12.9997 10.5458 13.0595 10.3685 13.0595H8.21617C8.39895 13.7155 8.63693 14.3445 8.93013 14.9466C9.22346 15.5487 9.58006 16.1157 9.99992 16.6477C10.1495 16.6477 10.2991 16.6485 10.4487 16.6502C10.5983 16.6517 10.7451 16.6429 10.8893 16.6237C11.0614 16.6012 11.2051 16.6455 11.3203 16.7566C11.4358 16.8677 11.4935 17.0093 11.4935 17.1814C11.4935 17.3672 11.4457 17.5222 11.3501 17.6462C11.2544 17.7701 11.1179 17.8432 10.9405 17.8656C10.7964 17.8849 10.641 17.898 10.4743 17.9049C10.3076 17.9119 10.1495 17.9154 9.99992 17.9154ZM3.58159 11.8095H6.6795C6.62714 11.5105 6.58915 11.21 6.56554 10.9081C6.54207 10.6063 6.53033 10.3031 6.53033 9.9987C6.53033 9.69425 6.54207 9.39113 6.56554 9.08932C6.58915 8.78738 6.62714 8.48689 6.6795 8.18786H3.58159C3.49617 8.48689 3.43339 8.78738 3.39325 9.08932C3.35325 9.39113 3.33325 9.69425 3.33325 9.9987C3.33325 10.3031 3.35325 10.6063 3.39325 10.9081C3.43339 11.21 3.49617 11.5105 3.58159 11.8095ZM8.38617 16.4345C8.05075 15.9143 7.76256 15.3715 7.52159 14.8064C7.28061 14.2413 7.08429 13.659 6.93263 13.0595H4.10575C4.54047 13.9174 5.1302 14.6413 5.87492 15.231C6.61964 15.8209 7.45672 16.222 8.38617 16.4345ZM4.10575 6.93786H6.93263C7.0736 6.33314 7.26325 5.74821 7.50159 5.18307C7.73978 4.61779 8.03464 4.07773 8.38617 3.56286C7.45131 3.77009 6.6129 4.16856 5.87096 4.75828C5.12888 5.348 4.54047 6.07453 4.10575 6.93786ZM8.21617 6.93786H11.7837C11.6063 6.28189 11.3669 5.65557 11.0655 5.05891C10.7643 4.4621 10.4091 3.89238 9.99992 3.34974C9.58534 3.88168 9.22874 4.4487 8.93013 5.05078C8.63152 5.65286 8.39353 6.28189 8.21617 6.93786ZM13.0672 6.93786H15.8941C15.4594 6.07453 14.871 5.34668 14.1289 4.75432C13.3869 4.16182 12.5485 3.76467 11.6137 3.56286C11.9491 4.08314 12.2333 4.62717 12.4662 5.19495C12.6991 5.76286 12.8994 6.34384 13.0672 6.93786Z",fill:"currentColor"}),r.jsx("path",{id:"travel_explore",d:"M18.0634 18.7783L16.8556 17.5822C16.6378 17.7211 16.4031 17.8331 16.1517 17.9184C15.9003 18.0038 15.6342 18.0465 15.3535 18.0465C14.6044 18.0465 13.9694 17.7857 13.4484 17.2642C12.9275 16.7428 12.667 16.1071 12.667 15.3572C12.667 14.6074 12.9275 13.9717 13.4484 13.4502C13.9694 12.9287 14.6044 12.668 15.3535 12.668C16.1026 12.668 16.7376 12.9287 17.2586 13.4502C17.7795 13.9717 18.04 14.6074 18.04 15.3572C18.04 15.6425 17.9963 15.9121 17.9089 16.166C17.8215 16.4198 17.7063 16.6557 17.5633 16.8738L18.7711 18.0698C18.8684 18.1628 18.917 18.2798 18.917 18.4208C18.917 18.5618 18.8684 18.6809 18.7711 18.7783C18.6781 18.8714 18.5611 18.918 18.4203 18.918C18.2796 18.918 18.1606 18.8714 18.0634 18.7783ZM15.3535 17.038C15.8236 17.038 16.221 16.8755 16.5456 16.5506C16.8703 16.2256 17.0326 15.8278 17.0326 15.3572C17.0326 14.8866 16.8703 14.4888 16.5456 14.1639C16.221 13.8389 15.8236 13.6764 15.3535 13.6764C14.8834 13.6764 14.486 13.8389 14.1614 14.1639C13.8367 14.4888 13.6744 14.8866 13.6744 15.3572C13.6744 15.8278 13.8367 16.2256 14.1614 16.5506C14.486 16.8755 14.8834 17.038 15.3535 17.038Z",fill:"currentColor"})]})]})}),H9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 18 19",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M9.5002 0.270145C10.3742 0.270145 11.1128 0.571885 11.7161 1.17537C12.3193 1.77868 12.6209 2.51732 12.6209 3.39129C12.6209 4.17273 12.3716 4.85117 11.873 5.42662C11.3744 6.00189 10.7483 6.34792 9.99474 6.46469L9.99474 9.0052L13.8388 9.0052C14.2785 9.0052 14.6549 9.16172 14.9679 9.47476C15.2809 9.78779 15.4375 10.1642 15.4375 10.6039L15.4375 12.564L17.0171 12.564C17.2435 12.564 17.4334 12.6405 17.5866 12.7936C17.7396 12.9468 17.8162 13.1366 17.8162 13.3631L17.8162 17.5042C17.8162 17.7389 17.7396 17.9321 17.5866 18.0836C17.4334 18.2352 17.2435 18.311 17.0171 18.311L12.8759 18.311C12.6412 18.311 12.4481 18.2345 12.2965 18.0814C12.1449 17.9282 12.0692 17.7384 12.0692 17.5119L12.0692 13.3707C12.0692 13.136 12.1457 12.9429 12.2987 12.7913C12.452 12.6398 12.6418 12.564 12.8682 12.564L14.4479 12.564L14.4479 10.6039C14.4479 10.4262 14.3908 10.2803 14.2767 10.166C14.1624 10.0518 14.0164 9.99478 13.8388 9.99478L5.16112 9.99478C4.98349 9.99478 4.83753 10.0518 4.72323 10.166C4.6091 10.2803 4.55203 10.4262 4.55203 10.6039L4.55203 12.6115C5.3056 12.7283 5.93168 13.0743 6.43026 13.6496C6.92885 14.225 7.17814 14.9034 7.17814 15.6849C7.17814 16.5587 6.87648 17.2973 6.27317 17.9008C5.66969 18.5041 4.93096 18.8058 4.05699 18.8058C3.18303 18.8058 2.44439 18.5041 1.84107 17.9008C1.23792 17.2973 0.936342 16.5587 0.936343 15.6849C0.936343 14.9034 1.18564 14.225 1.68422 13.6496C2.18281 13.0743 2.80888 12.7283 3.56245 12.6115L3.56245 10.6039C3.56245 10.1642 3.71897 9.78779 4.03201 9.47476C4.34504 9.16172 4.72142 9.0052 5.16112 9.0052L9.00516 9.0052L9.00516 6.46469C8.25159 6.34792 7.62552 6.00189 7.12693 5.42662C6.62835 4.85117 6.37905 4.17273 6.37905 3.39129C6.37905 2.51732 6.68071 1.77868 7.28403 1.17537C7.88751 0.571885 8.62623 0.270145 9.5002 0.270145Z",fill:"currentColor"})}),M9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 25 22",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M17.8553 2.95196L15.3555 5.30477C15.2095 5.44218 15.1081 5.62031 15.0647 5.81603L14.52 8.26717H7.41204C6.80549 8.26717 6.31378 8.75888 6.31378 9.36543C6.31378 9.97198 6.80549 10.4637 7.41204 10.4637H15.0998C15.1427 10.4637 15.185 10.4612 15.2266 10.4564C15.2442 10.4574 15.2619 10.4578 15.2798 10.4578H18.6054C18.8441 10.4578 19.0749 10.3724 19.2562 10.2171L21.3582 8.41535C21.5744 9.252 21.6894 10.1293 21.6894 11.0336C21.6894 16.7958 17.0182 21.467 11.256 21.467C9.70613 21.467 8.23523 21.1291 6.91291 20.5229L1.57616 21.8571C1.20996 21.9486 0.878268 21.6169 0.969816 21.2508L2.21945 16.2522C1.33102 14.7172 0.82251 12.9347 0.82251 11.0336C0.82251 5.27132 5.49373 0.600098 11.256 0.600098C13.7596 0.600098 16.0573 1.48194 17.8553 2.95196ZM7.41204 12.6603C6.80549 12.6603 6.31378 13.152 6.31378 13.7586C6.31378 14.3651 6.80549 14.8568 7.41204 14.8568H11.8051C12.4116 14.8568 12.9033 14.3651 12.9033 13.7586C12.9033 13.152 12.4116 12.6603 11.8051 12.6603H7.41204ZM22.1006 1.12041L16.3757 6.84529C16.3348 6.88621 16.3066 6.93809 16.2945 6.99468L15.9135 8.77616C15.868 8.98885 16.0569 9.17774 16.2696 9.13226L18.0511 8.75129C18.1077 8.73919 18.1596 8.71098 18.2005 8.67006L23.9254 2.94518C24.0425 2.82803 24.0425 2.63808 23.9254 2.52092L22.5249 1.12041C22.4077 1.00325 22.2178 1.00325 22.1006 1.12041Z",fill:"currentColor"})}),V9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"filter_alt_off",children:[r.jsx("mask",{id:"mask0_1543_23288",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:r.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_1543_23288)",children:r.jsx("path",{id:"filter_alt_off_2",d:"M14.8 11.9748L6.82503 3.9998H19C19.4167 3.9998 19.7167 4.18314 19.9 4.5498C20.0834 4.91647 20.05 5.26647 19.8 5.5998L14.8 11.9748ZM19.775 22.5998L14 16.8248V18.9998C14 19.2831 13.9042 19.5206 13.7125 19.7123C13.5209 19.904 13.2834 19.9998 13 19.9998H11C10.7167 19.9998 10.4792 19.904 10.2875 19.7123C10.0959 19.5206 10 19.2831 10 18.9998V12.8248L1.40002 4.2248L2.80002 2.7998L21.2 21.1998L19.775 22.5998Z",fill:"currentColor"})})]})}),Z9=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_7541_22315",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"15",children:r.jsx("rect",{y:"0.25",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_7541_22315)",children:r.jsx("path",{d:"M7.02156 2.82555C8.05212 2.82555 9.02376 3.04731 9.93648 3.49084C10.8492 3.93437 11.6095 4.57535 12.2173 5.4138C12.2947 5.5152 12.3195 5.60635 12.2917 5.68724C12.2639 5.76803 12.2161 5.83623 12.1485 5.89184C12.0809 5.94512 12.003 5.96874 11.9147 5.96271C11.8264 5.95669 11.7508 5.90895 11.6879 5.81951C11.1625 5.06817 10.4856 4.49369 9.6575 4.09605C8.82926 3.69841 7.95062 3.49842 7.02156 3.49609C6.09241 3.49376 5.21989 3.69258 4.404 4.09255C3.58811 4.49252 2.91606 5.06934 2.38785 5.82301C2.32019 5.92451 2.2411 5.98012 2.15058 5.98984C2.05997 5.99956 1.98088 5.97895 1.91331 5.92801C1.83592 5.87473 1.7876 5.80638 1.76835 5.72296C1.7491 5.63964 1.77098 5.5556 1.83398 5.47082C2.43209 4.63276 3.18741 3.9824 4.09994 3.51971C5.01247 3.05694 5.98634 2.82555 7.02156 2.82555ZM7.02156 4.20338C8.3364 4.20338 9.46301 4.64492 10.4014 5.52798C11.3398 6.41115 11.809 7.50043 11.809 8.79582C11.809 9.2936 11.6341 9.7117 11.2843 10.0501C10.9345 10.3887 10.5082 10.5579 10.0055 10.5579C9.50263 10.5579 9.07144 10.3916 8.71192 10.0589C8.35239 9.72619 8.17263 9.31212 8.17263 8.81667C8.17263 8.50517 8.06053 8.24238 7.83633 8.0283C7.61204 7.81421 7.34162 7.70717 7.02506 7.70717C6.70841 7.70717 6.43799 7.81421 6.21379 8.0283C5.9895 8.24238 5.87735 8.50517 5.87735 8.81667C5.87735 9.75282 6.14992 10.5369 6.69504 11.1688C7.24007 11.8008 7.9724 12.2373 8.89202 12.4784C8.99109 12.5052 9.05754 12.5573 9.09137 12.6347C9.12521 12.7121 9.13124 12.7943 9.10946 12.8813C9.08768 12.9587 9.04359 13.0258 8.97719 13.0826C8.91069 13.1393 8.82324 13.1567 8.71483 13.1349C7.65715 12.8892 6.80806 12.382 6.16756 11.6135C5.52706 10.8448 5.20681 9.91256 5.20681 8.81667C5.20681 8.31666 5.38415 7.89496 5.73881 7.55157C6.09348 7.20828 6.52223 7.03663 7.02506 7.03663C7.5278 7.03663 7.9565 7.20599 8.31117 7.54471C8.66583 7.88334 8.84317 8.30037 8.84317 8.79582C8.84317 9.10498 8.95774 9.36666 9.1869 9.58084C9.41595 9.79492 9.68881 9.90196 10.0055 9.90196C10.322 9.90196 10.5906 9.79492 10.8112 9.58084C11.0317 9.36666 11.1419 9.10498 11.1419 8.79582C11.1419 7.68661 10.7386 6.75323 9.93196 5.99567C9.1254 5.23812 8.15897 4.85934 7.03265 4.85934C5.90633 4.85934 4.94159 5.24103 4.13844 6.00442C3.33529 6.76781 2.93371 7.70153 2.93371 8.80559C2.93371 9.08083 2.95617 9.38878 3.00108 9.72944C3.046 10.0702 3.14298 10.4518 3.29202 10.8742C3.32585 10.9757 3.32401 11.0657 3.28648 11.1442C3.24895 11.2227 3.18663 11.2789 3.09952 11.3128C3.00784 11.3466 2.92088 11.3442 2.83863 11.3055C2.75647 11.2668 2.69615 11.1992 2.65765 11.1029C2.52115 10.7493 2.4213 10.3842 2.3581 10.0075C2.29491 9.63091 2.26331 9.23395 2.26331 8.81667C2.26331 7.51438 2.72949 6.4199 3.66185 5.53324C4.59422 4.64667 5.71412 4.20338 7.02156 4.20338ZM7.02506 1.40338C7.65195 1.40338 8.26304 1.47873 8.85833 1.62942C9.45372 1.78012 10.0297 1.9976 10.5862 2.28188C10.6877 2.3374 10.7475 2.4056 10.7655 2.48648C10.7836 2.56728 10.7758 2.64637 10.7419 2.72376C10.7058 2.80114 10.6478 2.86103 10.5681 2.90342C10.4885 2.94571 10.3954 2.9391 10.2888 2.88359C9.7782 2.61876 9.24883 2.41702 8.70069 2.27838C8.15255 2.13974 7.59401 2.07042 7.02506 2.07042C6.46117 2.07042 5.90642 2.13605 5.36081 2.2673C4.8152 2.39855 4.29448 2.60398 3.79865 2.88359C3.70687 2.9391 3.61572 2.95412 3.52521 2.92865C3.4346 2.90328 3.3664 2.84703 3.3206 2.75992C3.27938 2.67748 3.27078 2.59654 3.29479 2.51711C3.3189 2.43758 3.37451 2.37118 3.46163 2.3179C4.01074 2.01467 4.58644 1.78644 5.18873 1.63321C5.79112 1.47999 6.40323 1.40338 7.02506 1.40338ZM7.02506 5.61446C7.93156 5.61446 8.71051 5.92178 9.3619 6.53642C10.0133 7.15096 10.339 7.9041 10.339 8.79582C10.339 8.89955 10.3093 8.98399 10.25 9.04913C10.1907 9.11427 10.1092 9.14684 10.0055 9.14684C9.90901 9.14684 9.82876 9.11427 9.76469 9.04913C9.70052 8.98399 9.66844 8.89955 9.66844 8.79582C9.66844 8.08522 9.40793 7.48852 8.88692 7.00571C8.3659 6.52291 7.74529 6.28151 7.02506 6.28151C6.30241 6.28151 5.68485 6.52524 5.1724 7.01271C4.66004 7.50019 4.40385 8.10151 4.40385 8.81667C4.40385 9.5856 4.53297 10.2441 4.79119 10.7923C5.04951 11.3404 5.44 11.8904 5.96267 12.4422C6.03033 12.5099 6.06475 12.5879 6.06592 12.6762C6.06708 12.7643 6.03733 12.8411 5.97667 12.9064C5.909 12.9787 5.82699 13.0131 5.73065 13.0097C5.6342 13.0062 5.55219 12.9706 5.48463 12.9029C4.91101 12.3048 4.47628 11.6864 4.18044 11.0476C3.88469 10.409 3.73681 9.66533 3.73681 8.81667C3.73681 7.92038 4.05765 7.16258 4.69931 6.54328C5.34098 5.92407 6.11623 5.61446 7.02506 5.61446ZM7.01398 8.4623C7.11538 8.4623 7.19632 8.49613 7.25679 8.5638C7.31726 8.63137 7.3475 8.71104 7.3475 8.80282C7.3475 9.55055 7.6065 10.1479 8.1245 10.5948C8.6425 11.0417 9.255 11.2652 9.962 11.2652C10.0297 11.2652 10.1187 11.2592 10.229 11.2471C10.3395 11.2351 10.4519 11.2217 10.5662 11.2069C10.663 11.192 10.7465 11.2099 10.8167 11.2607C10.8868 11.3114 10.9293 11.3852 10.9442 11.4821C10.959 11.5737 10.9397 11.6505 10.8864 11.7123C10.8332 11.7742 10.7653 11.8171 10.6829 11.8413C10.5172 11.8899 10.3676 11.9178 10.234 11.925C10.1004 11.9321 10.0097 11.9356 9.962 11.9356C9.07115 11.9356 8.30149 11.6469 7.65302 11.0694C7.00465 10.4919 6.68046 9.73635 6.68046 8.80282C6.68046 8.71104 6.71065 8.63137 6.77102 8.5638C6.83149 8.49613 6.91248 8.4623 7.01398 8.4623Z",fill:"currentColor"})})]}),b9=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("path",{d:"M4.5 6.04386L7.83333 2.83398V13.6673",stroke:"white","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),r.jsx("path",{d:"M15.5 13.9581L12.1667 17.168L12.1667 6.33463",stroke:"white","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})]}),E9=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_9540_23",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_9540_23)",children:r.jsx("path",{d:"M0.729248 11.2291V10.3418C0.729248 10.2273 0.751123 10.1166 0.794873 10.0095C0.838526 9.9025 0.900408 9.80834 0.980519 9.72706L1.89591 8.81167V5.18931L1.03666 4.32904C0.940901 4.23328 0.865748 4.12094 0.811206 3.99202C0.756567 3.8631 0.729248 3.72753 0.729248 3.58529V2.33331C0.729248 2.20935 0.771199 2.10547 0.855102 2.02167C0.939005 1.93776 1.04294 1.89581 1.16689 1.89581C1.29095 1.89581 1.39483 1.93776 1.47854 2.02167C1.56235 2.10547 1.60425 2.20935 1.60425 2.33331V3.06248H3.06258V2.33331C3.06258 2.20935 3.10453 2.10547 3.18844 2.02167C3.27234 1.93776 3.37627 1.89581 3.50023 1.89581C3.62428 1.89581 3.72816 1.93776 3.81187 2.02167C3.89568 2.10547 3.93758 2.20935 3.93758 2.33331V3.06248H5.39592V2.33331C5.39592 2.20935 5.43787 2.10547 5.52177 2.02167C5.60567 1.93776 5.7096 1.89581 5.83356 1.89581C5.95762 1.89581 6.0615 1.93776 6.14521 2.02167C6.22901 2.10547 6.27092 2.20935 6.27092 2.33331V3.58529C6.27092 3.72753 6.2436 3.8631 6.18896 3.99202C6.13442 4.12094 6.05926 4.23328 5.9635 4.32904L5.10425 5.18829V5.97915H8.89592V5.18829L8.03667 4.32904C7.9409 4.23328 7.86575 4.12094 7.81121 3.99202C7.75657 3.8631 7.72925 3.72753 7.72925 3.58529V2.33331C7.72925 2.20935 7.7712 2.10547 7.8551 2.02167C7.93901 1.93776 8.04294 1.89581 8.16689 1.89581C8.29095 1.89581 8.39483 1.93776 8.47854 2.02167C8.56235 2.10547 8.60425 2.20935 8.60425 2.33331V3.06248H10.0626V2.33331C10.0626 2.20935 10.1045 2.10547 10.1884 2.02167C10.2723 1.93776 10.3763 1.89581 10.5002 1.89581C10.6243 1.89581 10.7282 1.93776 10.8119 2.02167C10.8957 2.10547 10.9376 2.20935 10.9376 2.33331V3.06248H12.3959V2.33331C12.3959 2.20935 12.4379 2.10547 12.5218 2.02167C12.6057 1.93776 12.7096 1.89581 12.8336 1.89581C12.9576 1.89581 13.0615 1.93776 13.1452 2.02167C13.229 2.10547 13.2709 2.20935 13.2709 2.33331V3.58529C13.2709 3.72753 13.2436 3.8631 13.189 3.99202C13.1344 4.12094 13.0593 4.23328 12.9635 4.32904L12.1042 5.18931V8.81167L13.0196 9.72706C13.0998 9.80834 13.1616 9.9025 13.2053 10.0095C13.249 10.1166 13.2709 10.2273 13.2709 10.3418V11.2291C13.2709 11.4677 13.1847 11.6732 13.0124 11.8456C12.84 12.018 12.6345 12.1041 12.3959 12.1041H8.83977C8.69044 12.1041 8.56521 12.0536 8.4641 11.9526C8.36309 11.8515 8.31258 11.7263 8.31258 11.577V10.5C8.31258 10.139 8.18396 9.83002 7.92671 9.57306C7.66946 9.31601 7.36024 9.18748 6.99906 9.18748C6.63778 9.18748 6.32886 9.31601 6.07229 9.57306C5.81582 9.83002 5.68758 10.139 5.68758 10.5V11.5742C5.68758 11.7263 5.63707 11.8527 5.53606 11.9532C5.43495 12.0538 5.30973 12.1041 5.16039 12.1041H1.60425C1.36566 12.1041 1.16019 12.018 0.987811 11.8456C0.815436 11.6732 0.729248 11.4677 0.729248 11.2291Z",fill:"currentColor"})})]}),S9=e=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 22 22",fill:"currentColor",children:[r.jsx("mask",{id:"mask0_3130_18463",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"22",height:"22",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_3130_18463)",children:r.jsx("path",{d:"M4.58301 17.4166V12.8333H5.95798V16.0416H9.16634V17.4166H4.58301ZM4.58301 9.16658V4.58325H9.16634V5.95823H5.95798V9.16658H4.58301ZM12.833 17.4166V16.0416H16.0414V12.8333H17.4163V17.4166H12.833ZM16.0414 9.16658V5.95823H12.833V4.58325H17.4163V9.16658H16.0414Z",fill:"currentColor"})})]}),I9=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_7541_22375",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"15",children:r.jsx("rect",{y:"0.25",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_7541_22375)",children:r.jsx("path",{d:"M3.2509 12.3541C2.86201 12.3541 2.54458 12.2487 2.29861 12.0378C2.05254 11.8269 1.9295 11.5475 1.9295 11.1999C1.9295 10.9374 1.99809 10.7263 2.13528 10.5665C2.27255 10.4069 2.44702 10.3271 2.65867 10.3271C2.8606 10.3271 3.03259 10.3966 3.17463 10.5358C3.31677 10.6749 3.38784 10.8424 3.38784 11.0383C3.38784 11.1168 3.37044 11.1858 3.33563 11.2452C3.30082 11.3047 3.258 11.3513 3.20715 11.3849C3.22582 11.4036 3.25202 11.4195 3.28575 11.4326C3.31939 11.4457 3.35678 11.4522 3.3979 11.4522C3.52507 11.4462 3.62905 11.3878 3.70984 11.2767C3.79053 11.1656 3.85557 10.9945 3.90496 10.7634L4.81482 5.93748H3.55613C3.43198 5.93748 3.328 5.89558 3.24419 5.81177C3.16048 5.72806 3.11863 5.62413 3.11863 5.49998C3.11863 5.37583 3.16048 5.2719 3.24419 5.18819C3.328 5.10438 3.43198 5.06248 3.55613 5.06248H4.97742L5.27244 3.46735C5.34798 3.05679 5.5172 2.73386 5.78009 2.49858C6.04298 2.2634 6.36546 2.14581 6.74755 2.14581C7.13051 2.14581 7.44497 2.2582 7.69094 2.48298C7.93701 2.70766 8.06005 2.99087 8.06005 3.3326C8.06005 3.58315 7.99146 3.78829 7.85428 3.94802C7.717 4.10766 7.54253 4.18748 7.33088 4.18748C7.12895 4.18748 6.95696 4.11884 6.81492 3.98156C6.67278 3.84438 6.60171 3.67483 6.60171 3.4729C6.60171 3.39434 6.61912 3.32536 6.65392 3.26596C6.68873 3.20646 6.7334 3.15989 6.78794 3.12625C6.76928 3.10379 6.7403 3.08508 6.70103 3.0701C6.66175 3.05523 6.62155 3.04779 6.58042 3.04779C6.45851 3.05975 6.36148 3.11322 6.28934 3.20821C6.2172 3.30319 6.16203 3.44378 6.12382 3.62996L5.8759 5.06248H8.11051C8.23466 5.06248 8.33864 5.10438 8.42244 5.18819C8.50615 5.2719 8.54801 5.37583 8.54801 5.49998C8.54801 5.61217 8.51213 5.70867 8.44038 5.78946C8.36853 5.87015 8.27953 5.91648 8.17336 5.92844H7.89846L8.98551 7.16817L10.0725 5.92844H9.7978C9.69153 5.91648 9.60253 5.87015 9.53078 5.78946C9.45893 5.70867 9.42301 5.61217 9.42301 5.49998C9.42301 5.37583 9.46491 5.2719 9.54871 5.18819C9.63242 5.10438 9.73635 5.06248 9.86051 5.06248H11.6105C11.7347 5.06248 11.8386 5.10438 11.9224 5.18819C12.0062 5.2719 12.048 5.37583 12.048 5.49998C12.048 5.62413 12.0062 5.72806 11.9224 5.81177C11.8386 5.89558 11.7347 5.93748 11.6105 5.93748H11.2224L9.56782 7.83331L11.228 9.72915H11.6105C11.7347 9.72915 11.8386 9.77105 11.9224 9.85485C12.0062 9.93856 12.048 10.0425 12.048 10.1666C12.048 10.2908 12.0062 10.3947 11.9224 10.4784C11.8386 10.5622 11.7347 10.6041 11.6105 10.6041H9.86051C9.73635 10.6041 9.63242 10.5622 9.54871 10.4784C9.46491 10.3947 9.42301 10.2908 9.42301 10.1666C9.42301 10.0545 9.45893 9.95796 9.53078 9.87717C9.60253 9.79647 9.69153 9.75015 9.7978 9.73819H10.0725L8.98551 8.48956L7.89846 9.73819H8.17336C8.27953 9.75015 8.36853 9.79647 8.44038 9.87717C8.51213 9.95796 8.54801 10.0545 8.54801 10.1666C8.54801 10.2908 8.50615 10.3947 8.42244 10.4784C8.33864 10.5622 8.23466 10.6041 8.11051 10.6041H6.3605C6.23635 10.6041 6.13242 10.5622 6.04871 10.4784C5.96491 10.3947 5.923 10.2908 5.923 10.1666C5.923 10.0425 5.96491 9.93856 6.04871 9.85485C6.13242 9.77105 6.23635 9.72915 6.3605 9.72915H6.74871L8.40334 7.83331L6.74871 5.93748H5.70761L4.77428 10.8363C4.68162 11.3337 4.50648 11.711 4.24884 11.9683C3.9912 12.2255 3.65855 12.3541 3.2509 12.3541Z",fill:"currentColor"})})]}),P9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M7.00261 14C6.03462 14 5.12456 13.8163 4.27241 13.449C3.42026 13.0816 2.67901 12.583 2.04865 11.9533C1.4183 11.3235 0.919269 10.5829 0.551561 9.73159C0.183854 8.88024 0 7.97058 0 7.00261C0 6.03462 0.183679 5.12456 0.551036 4.27241C0.918407 3.42026 1.41698 2.67901 2.04674 2.04865C2.67651 1.4183 3.41706 0.919269 4.26841 0.551562C5.11976 0.183854 6.02942 0 6.99739 0C7.96538 0 8.87544 0.183679 9.72759 0.551036C10.5797 0.918406 11.321 1.41697 11.9514 2.04674C12.5817 2.67651 13.0807 3.41706 13.4484 4.26841C13.8161 5.11976 14 6.02942 14 6.99739C14 7.96538 13.8163 8.87544 13.449 9.72759C13.0816 10.5797 12.583 11.321 11.9533 11.9514C11.3235 12.5817 10.5829 13.0807 9.73159 13.4484C8.88024 13.8161 7.97058 14 7.00261 14ZM6.22222 13.1833V11.6667C5.79444 11.6667 5.42824 11.5144 5.12361 11.2097C4.81898 10.9051 4.66667 10.5389 4.66667 10.1111V9.33333L0.933333 5.6C0.894445 5.83333 0.858796 6.06667 0.826389 6.3C0.793981 6.53333 0.777778 6.76667 0.777778 7C0.777778 8.56852 1.29306 9.94259 2.32361 11.1222C3.35417 12.3019 4.6537 12.9889 6.22222 13.1833ZM11.5889 11.2C11.8481 10.9148 12.0815 10.6069 12.2889 10.2764C12.4963 9.94583 12.6681 9.60231 12.8042 9.24583C12.9403 8.88935 13.044 8.52315 13.1153 8.14722C13.1866 7.7713 13.2222 7.38889 13.2222 7C13.2222 5.72211 12.8715 4.55506 12.17 3.49885C11.4685 2.44264 10.5229 1.68121 9.33333 1.21454V1.55556C9.33333 1.98333 9.18102 2.34954 8.87639 2.65417C8.57176 2.9588 8.20556 3.11111 7.77778 3.11111H6.22222V4.66667C6.22222 4.88704 6.14769 5.07176 5.99861 5.22083C5.84954 5.36991 5.66481 5.44444 5.44444 5.44444H3.88889V7H8.55556C8.77593 7 8.96065 7.07454 9.10972 7.22361C9.2588 7.37269 9.33333 7.55741 9.33333 7.77778V10.1111H10.1111C10.4481 10.1111 10.7528 10.2116 11.025 10.4125C11.2972 10.6134 11.4852 10.8759 11.5889 11.2Z",fill:"currentColor"})}),B9=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_7541_22441",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_7541_22441)",children:r.jsx("path",{d:"M10.8837 12.5271C10.8134 12.5271 10.748 12.5159 10.6874 12.4934C10.6267 12.471 10.5691 12.4325 10.5146 12.3779L7.57328 9.44214C7.51864 9.3875 7.48009 9.3299 7.45764 9.26933C7.43528 9.20876 7.42409 9.14333 7.42409 9.07304C7.42409 9.00274 7.43528 8.93731 7.45764 8.87674C7.48009 8.81618 7.51864 8.75862 7.57328 8.70408L8.67826 7.5991C8.7328 7.54446 8.79036 7.50591 8.85093 7.48345C8.9115 7.46109 8.97693 7.44991 9.04722 7.44991C9.11751 7.44991 9.18294 7.46109 9.24351 7.48345C9.30418 7.50591 9.36178 7.54446 9.41632 7.5991L12.3576 10.5404C12.4123 10.595 12.4508 10.6525 12.4733 10.7131C12.4956 10.7737 12.5068 10.8392 12.5068 10.9095C12.5068 10.9798 12.4956 11.0452 12.4733 11.1058C12.4508 11.1664 12.4123 11.2239 12.3576 11.2785L11.2527 12.3779C11.1981 12.4325 11.1406 12.471 11.08 12.4934C11.0194 12.5159 10.954 12.5271 10.8837 12.5271ZM3.10174 12.536C3.03145 12.536 2.96451 12.5233 2.90093 12.4979C2.83744 12.4725 2.77838 12.4325 2.72374 12.3779L1.6278 11.2875C1.57316 11.2329 1.53316 11.1738 1.50778 11.1103C1.48231 11.0467 1.46957 10.9798 1.46957 10.9095C1.46957 10.8392 1.48231 10.7728 1.50778 10.7103C1.53316 10.6479 1.57316 10.5894 1.6278 10.5347L4.67455 7.48797H5.90291L6.37628 7.0146L3.93635 4.57466H3.10509L1.48634 2.95591L2.93243 1.50997L4.55118 3.12872V3.95997L6.99097 6.39991L8.71632 4.67456L7.86495 3.82304L8.60301 3.08497H7.11784L6.79366 2.76633L8.65682 0.903015L8.97547 1.22166V2.71252L9.71353 1.97445L11.9079 4.15743C12.0619 4.30774 12.178 4.47899 12.2561 4.6712C12.3343 4.86341 12.3734 5.0668 12.3734 5.28137C12.3734 5.46988 12.3409 5.65145 12.2758 5.82606C12.2108 6.00067 12.1162 6.15938 11.992 6.3022L10.7749 5.08508L9.95255 5.90743L9.33451 5.28925L6.51205 8.1117V9.34225L3.47084 12.3779C3.4163 12.4325 3.3587 12.4725 3.29803 12.4979C3.23746 12.5233 3.17203 12.536 3.10174 12.536Z",fill:"currentColor"})})]}),N9=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_7541_22444",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_7541_22444)",children:r.jsx("path",{d:"M6.13623 11.9584C5.99341 11.9584 5.87169 11.908 5.77107 11.8074C5.67054 11.7069 5.62028 11.5852 5.62028 11.4423V7.44306H8.5368V11.4423C8.5368 11.5852 8.48653 11.7069 8.386 11.8074C8.28538 11.908 8.16366 11.9584 8.02084 11.9584H6.13623ZM5.62028 6.56252V4.37502H3.53821C3.37216 4.37502 3.23921 4.31071 3.13936 4.18208C3.03951 4.05346 3.01467 3.90797 3.06484 3.7456C3.22107 3.23412 3.52018 2.82228 3.96215 2.5101C4.40422 2.19783 4.89709 2.04169 5.44075 2.04169H8.02084C8.16366 2.04169 8.28538 2.092 8.386 2.19262C8.48653 2.29315 8.5368 2.41487 8.5368 2.55779V3.758L10.0355 2.25927C10.1021 2.19277 10.1792 2.13988 10.2667 2.1006C10.3542 2.06133 10.445 2.04169 10.5392 2.04169H10.6738C10.8017 2.04169 10.9094 2.08359 10.9969 2.1674C11.0844 2.2511 11.1281 2.35503 11.1281 2.47919V5.91196C11.1281 6.03601 11.0844 6.13994 10.9969 6.22375C10.9094 6.30746 10.8017 6.34931 10.6738 6.34931H10.5392C10.445 6.34931 10.3542 6.32972 10.2667 6.29054C10.1792 6.25126 10.1021 6.19833 10.0355 6.13173L8.5368 4.633V6.56252H5.62028Z",fill:"currentColor"})})]}),R9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M4.24488 9.94873L3.51732 12.8382C3.48633 12.976 3.4201 13.0844 3.31861 13.1635C3.21711 13.2425 3.09318 13.2821 2.94682 13.2821C2.75237 13.2821 2.59319 13.2046 2.46928 13.0497C2.34535 12.8948 2.31009 12.7244 2.36351 12.5385L3.01094 9.94873H0.635943C0.427609 9.94873 0.260144 9.86913 0.133547 9.70995C0.00694957 9.55077 -0.0296407 9.37129 0.023776 9.1715C0.0600955 9.02514 0.134609 8.90975 0.247318 8.82535C0.360026 8.74096 0.489568 8.69877 0.635943 8.69877H3.32344L4.1728 5.30131H1.7978C1.58946 5.30131 1.422 5.22172 1.2954 5.06254C1.1688 4.90336 1.13221 4.72388 1.18563 4.5241C1.22195 4.37773 1.29646 4.26234 1.40917 4.17795C1.52188 4.09355 1.65142 4.05135 1.7978 4.05135H4.4853L5.21286 1.16191C5.24383 1.02409 5.31007 0.915657 5.41157 0.836601C5.51305 0.757546 5.63698 0.718018 5.78336 0.718018C5.97779 0.718018 6.13697 0.795469 6.2609 0.950372C6.38483 1.10529 6.42009 1.27569 6.36667 1.46158L5.71923 4.05135H9.16476L9.89232 1.16191C9.9233 1.02409 9.98954 0.915657 10.091 0.836601C10.1925 0.757546 10.3165 0.718018 10.4628 0.718018C10.6573 0.718018 10.8164 0.795469 10.9404 0.950372C11.0643 1.10529 11.0995 1.27569 11.0461 1.46158L10.3987 4.05135H12.7737C12.982 4.05135 13.1495 4.13094 13.2761 4.29012C13.4027 4.4493 13.4393 4.62879 13.3859 4.82858C13.3495 4.97494 13.275 5.09032 13.1623 5.17473C13.0496 5.25911 12.9201 5.30131 12.7737 5.30131H10.0862L9.23684 8.69877H11.6118C11.8202 8.69877 11.9876 8.77836 12.1142 8.93754C12.2408 9.09672 12.2774 9.2762 12.224 9.47598C12.1877 9.62235 12.1132 9.73773 12.0005 9.82212C11.8878 9.90652 11.7582 9.94873 11.6118 9.94873H8.92434L8.19678 12.8382C8.1658 12.976 8.09957 13.0844 7.99807 13.1635C7.89658 13.2425 7.77265 13.2821 7.62628 13.2821C7.43185 13.2821 7.27267 13.2046 7.14874 13.0497C7.0248 12.8948 6.98955 12.7244 7.04296 12.5385L7.6904 9.94873H4.24488ZM4.55738 8.69877H8.0029L8.85226 5.30131H5.40673L4.55738 8.69877Z",fill:"currentColor"})}),T9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M4.24488 9.94873L3.51732 12.8382C3.48633 12.976 3.4201 13.0844 3.31861 13.1635C3.21711 13.2425 3.09318 13.2821 2.94682 13.2821C2.75237 13.2821 2.59319 13.2046 2.46928 13.0497C2.34535 12.8948 2.31009 12.7244 2.36351 12.5385L3.01094 9.94873H0.635943C0.427609 9.94873 0.260144 9.86913 0.133547 9.70995C0.00694957 9.55077 -0.0296407 9.37129 0.023776 9.1715C0.0600955 9.02514 0.134609 8.90975 0.247318 8.82535C0.360026 8.74096 0.489568 8.69877 0.635943 8.69877H3.32344L4.1728 5.30131H1.7978C1.58946 5.30131 1.422 5.22172 1.2954 5.06254C1.1688 4.90336 1.13221 4.72388 1.18563 4.5241C1.22195 4.37773 1.29646 4.26234 1.40917 4.17795C1.52188 4.09355 1.65142 4.05135 1.7978 4.05135H4.4853L5.21286 1.16191C5.24383 1.02409 5.31007 0.915657 5.41157 0.836601C5.51305 0.757546 5.63698 0.718018 5.78336 0.718018C5.97779 0.718018 6.13697 0.795469 6.2609 0.950372C6.38483 1.10529 6.42009 1.27569 6.36667 1.46158L5.71923 4.05135H9.16476L9.89232 1.16191C9.9233 1.02409 9.98954 0.915657 10.091 0.836601C10.1925 0.757546 10.3165 0.718018 10.4628 0.718018C10.6573 0.718018 10.8164 0.795469 10.9404 0.950372C11.0643 1.10529 11.0995 1.27569 11.0461 1.46158L10.3987 4.05135H12.7737C12.982 4.05135 13.1495 4.13094 13.2761 4.29012C13.4027 4.4493 13.4393 4.62879 13.3859 4.82858C13.3495 4.97494 13.275 5.09032 13.1623 5.17473C13.0496 5.25911 12.9201 5.30131 12.7737 5.30131H10.0862L9.23684 8.69877H11.6118C11.8202 8.69877 11.9876 8.77836 12.1142 8.93754C12.2408 9.09672 12.2774 9.2762 12.224 9.47598C12.1877 9.62235 12.1132 9.73773 12.0005 9.82212C11.8878 9.90652 11.7582 9.94873 11.6118 9.94873H8.92434L8.19678 12.8382C8.1658 12.976 8.09957 13.0844 7.99807 13.1635C7.89658 13.2425 7.77265 13.2821 7.62628 13.2821C7.43185 13.2821 7.27267 13.2046 7.14874 13.0497C7.0248 12.8948 6.98955 12.7244 7.04296 12.5385L7.6904 9.94873H4.24488ZM4.55738 8.69877H8.0029L8.85226 5.30131H5.40673L4.55738 8.69877Z",fill:"currentColor"})}),U9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 18 18",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M8.95833 14.0013C9.25 14.0013 9.49653 13.9006 9.69792 13.6992C9.89931 13.4978 10 13.2513 10 12.9596C10 12.668 9.89931 12.4214 9.69792 12.2201C9.49653 12.0187 9.25 11.918 8.95833 11.918C8.66667 11.918 8.42014 12.0187 8.21875 12.2201C8.01736 12.4214 7.91667 12.668 7.91667 12.9596C7.91667 13.2513 8.01736 13.4978 8.21875 13.6992C8.42014 13.9006 8.66667 14.0013 8.95833 14.0013ZM9 17.3346C7.84722 17.3346 6.76389 17.1159 5.75 16.6784C4.73611 16.2409 3.85417 15.6471 3.10417 14.8971C2.35417 14.1471 1.76042 13.2652 1.32292 12.2513C0.885416 11.2374 0.666666 10.1541 0.666666 9.0013C0.666666 7.84852 0.885416 6.76519 1.32292 5.7513C1.76042 4.73741 2.35417 3.85547 3.10417 3.10547C3.85417 2.35547 4.73611 1.76172 5.75 1.32422C6.76389 0.886719 7.84722 0.667969 9 0.667969C10.1528 0.667969 11.2361 0.886719 12.25 1.32422C13.2639 1.76172 14.1458 2.35547 14.8958 3.10547C15.6458 3.85547 16.2396 4.73741 16.6771 5.7513C17.1146 6.76519 17.3333 7.84852 17.3333 9.0013C17.3333 10.1541 17.1146 11.2374 16.6771 12.2513C16.2396 13.2652 15.6458 14.1471 14.8958 14.8971C14.1458 15.6471 13.2639 16.2409 12.25 16.6784C11.2361 17.1159 10.1528 17.3346 9 17.3346ZM9.08333 5.41797C9.43056 5.41797 9.73264 5.52908 9.98958 5.7513C10.2465 5.97352 10.375 6.2513 10.375 6.58464C10.375 6.89019 10.2812 7.16102 10.0937 7.39714C9.90625 7.63325 9.69444 7.85547 9.45833 8.0638C9.13889 8.34158 8.85764 8.64714 8.61458 8.98047C8.37153 9.3138 8.25 9.6888 8.25 10.1055C8.25 10.2999 8.32292 10.4631 8.46875 10.5951C8.61458 10.727 8.78472 10.793 8.97917 10.793C9.1875 10.793 9.36458 10.7235 9.51042 10.5846C9.65625 10.4457 9.75 10.2721 9.79167 10.0638C9.84722 9.77214 9.97222 9.51172 10.1667 9.28255C10.3611 9.05339 10.5694 8.83464 10.7917 8.6263C11.1111 8.32075 11.3854 7.98741 11.6146 7.6263C11.8437 7.26519 11.9583 6.86241 11.9583 6.41797C11.9583 5.70964 11.6701 5.12977 11.0937 4.67839C10.5174 4.227 9.84722 4.0013 9.08333 4.0013C8.55555 4.0013 8.05208 4.11241 7.57292 4.33464C7.09375 4.55686 6.72917 4.89714 6.47917 5.35547C6.38194 5.52214 6.35069 5.69922 6.38542 5.88672C6.42014 6.07422 6.51389 6.21658 6.66667 6.3138C6.86111 6.42491 7.0625 6.45964 7.27083 6.41797C7.47917 6.3763 7.65278 6.25825 7.79167 6.0638C7.94444 5.85547 8.13542 5.69575 8.36458 5.58464C8.59375 5.47352 8.83333 5.41797 9.08333 5.41797Z",fill:"currentColor"})}),O9=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_9540_19",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_9540_19)",children:r.jsx("path",{d:"M2.625 11.0833V5.923C2.625 5.75607 2.66233 5.59794 2.737 5.44861C2.81176 5.29918 2.91501 5.17614 3.04675 5.0795L6.36737 2.57788C6.55161 2.4373 6.76219 2.367 6.99913 2.367C7.23606 2.367 7.44722 2.4373 7.63263 2.57788L10.9532 5.0795C11.085 5.17614 11.1882 5.29918 11.263 5.44861C11.3377 5.59794 11.375 5.75607 11.375 5.923V11.0833C11.375 11.3219 11.2888 11.5274 11.1164 11.6998C10.9441 11.8721 10.7386 11.9583 10.5 11.9583H8.63785C8.48842 11.9583 8.3632 11.9078 8.26219 11.8067C8.16108 11.7056 8.11052 11.5804 8.11052 11.431V8.58169C8.11052 8.43236 8.06001 8.30714 7.959 8.20603C7.85799 8.10501 7.73276 8.0545 7.58333 8.0545H6.41667C6.26724 8.0545 6.14201 8.10501 6.041 8.20603C5.93999 8.30714 5.88948 8.43236 5.88948 8.58169V11.431C5.88948 11.5804 5.83892 11.7056 5.73781 11.8067C5.6368 11.9078 5.51158 11.9583 5.36215 11.9583H3.5C3.26142 11.9583 3.05594 11.8721 2.88356 11.6998C2.71119 11.5274 2.625 11.3219 2.625 11.0833Z",fill:"currentColor"})})]}),$9=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_7541_22519",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"15",children:r.jsx("rect",{y:"0.25",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_7541_22519)",children:r.jsx("path",{d:"M6.56249 5.32954V4.85719C6.17963 4.76074 5.86516 4.55755 5.61909 4.2476C5.37302 3.93756 5.24999 3.57726 5.24999 3.16669C5.24999 2.68135 5.42032 2.26835 5.76099 1.92769C6.10166 1.58702 6.51466 1.41669 6.99999 1.41669C7.48532 1.41669 7.89832 1.58702 8.23899 1.92769C8.57966 2.26835 8.74999 2.68135 8.74999 3.16669C8.74999 3.57726 8.62696 3.93756 8.38089 4.2476C8.13482 4.55755 7.82035 4.76074 7.43749 4.85719V5.32954L11.431 7.627C11.597 7.72267 11.7264 7.85202 11.8192 8.01506C11.9119 8.1781 11.9583 8.35534 11.9583 8.54677V9.45327C11.9583 9.6447 11.9119 9.82194 11.8192 9.98498C11.7264 10.148 11.597 10.2774 11.431 10.373L7.52718 12.62C7.36122 12.7158 7.18549 12.7637 6.99999 12.7637C6.81449 12.7637 6.63876 12.7158 6.4728 12.62L2.56899 10.373C2.40293 10.2774 2.27353 10.148 2.18078 9.98498C2.08803 9.82194 2.04166 9.6447 2.04166 9.45327V8.54677C2.04166 8.35534 2.08803 8.1781 2.18078 8.01506C2.27353 7.85202 2.40293 7.72267 2.56899 7.627L6.56249 5.32954ZM3.65253 8.01287L6.9103 9.89194C6.94015 9.9106 6.97005 9.91994 6.99999 9.91994C7.02993 9.91994 7.05983 9.9106 7.08968 9.89194L10.3419 8.01287L7.43749 6.33462V8.27085H6.56249V6.33462L3.65253 8.01287Z",fill:"currentColor"})})]}),A9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("g",{id:"Icons 20x20",children:r.jsx("path",{id:"Union","fill-rule":"evenodd","clip-rule":"evenodd",d:"M17.5661 2.056C17.7371 2.12703 17.873 2.26296 17.9441 2.434C17.9799 2.51816 17.999 2.60853 18.0001 2.7V6.9C18.0001 7.08565 17.9263 7.2637 17.795 7.39497C17.6638 7.52625 17.4857 7.6 17.3001 7.6C17.1144 7.6 16.9364 7.52625 16.8051 7.39497C16.6738 7.2637 16.6001 7.08565 16.6001 6.9V4.387L10.0971 10.897C10.032 10.9626 9.95456 11.0147 9.86926 11.0502C9.78396 11.0858 9.69246 11.1041 9.60006 11.1041C9.50765 11.1041 9.41615 11.0858 9.33085 11.0502C9.24555 11.0147 9.16813 10.9626 9.10306 10.897C9.03745 10.8319 8.98537 10.7545 8.94983 10.6692C8.91429 10.5839 8.896 10.4924 8.896 10.4C8.896 10.3076 8.91429 10.2161 8.94983 10.1308C8.98537 10.0455 9.03745 9.96807 9.10306 9.903L15.6131 3.4H13.1001C12.9144 3.4 12.7364 3.32625 12.6051 3.19497C12.4738 3.0637 12.4001 2.88565 12.4001 2.7C12.4001 2.51435 12.4738 2.3363 12.6051 2.20503C12.7364 2.07375 12.9144 2 13.1001 2H17.3001C17.3915 2.00111 17.4819 2.02013 17.5661 2.056ZM14.705 9.20463C14.8363 9.07336 15.0143 8.99961 15.2 8.99961C15.3857 8.99961 15.5637 9.07336 15.695 9.20463C15.8263 9.33591 15.9 9.51396 15.9 9.69961V13.8996C15.9 14.4566 15.6788 14.9907 15.2849 15.3845C14.8911 15.7784 14.357 15.9996 13.8 15.9996H6.1C5.54305 15.9996 5.0089 15.7784 4.61508 15.3845C4.22125 14.9907 4 14.4566 4 13.8996V6.19961C4 5.64265 4.22125 5.10851 4.61508 4.71469C5.0089 4.32086 5.54305 4.09961 6.1 4.09961H10.3C10.4857 4.09961 10.6637 4.17336 10.795 4.30463C10.9263 4.43591 11 4.61396 11 4.79961C11 4.98526 10.9263 5.16331 10.795 5.29458C10.6637 5.42586 10.4857 5.49961 10.3 5.49961H6.1C5.91435 5.49961 5.7363 5.57336 5.60503 5.70463C5.47375 5.83591 5.4 6.01396 5.4 6.19961V13.8996C5.4 14.0853 5.47375 14.2633 5.60503 14.3946C5.7363 14.5259 5.91435 14.5996 6.1 14.5996H13.8C13.9857 14.5996 14.1637 14.5259 14.295 14.3946C14.4263 14.2633 14.5 14.0853 14.5 13.8996V9.69961C14.5 9.51396 14.5737 9.33591 14.705 9.20463Z",fill:"currentColor"})})}),z9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 18 18",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("g",{id:"Menu icons",children:r.jsx("path",{id:"Union","fill-rule":"evenodd","clip-rule":"evenodd",d:"M16.2669 9.02431C16.2669 13.346 12.7635 16.8494 8.44179 16.8494C7.27934 16.8494 6.1761 16.5959 5.18431 16.1412L1.18187 17.1418C0.90723 17.2105 0.658457 16.9617 0.727118 16.6871L1.66434 12.9382C0.998057 11.7869 0.616699 10.4502 0.616699 9.02431C0.616699 4.70263 4.12011 1.19922 8.44179 1.19922C12.7635 1.19922 16.2669 4.70263 16.2669 9.02431ZM4.73511 7.77304C4.73511 7.31812 5.10389 6.94934 5.5588 6.94934H11.3247C11.7796 6.94934 12.1484 7.31812 12.1484 7.77304C12.1484 8.22795 11.7796 8.59673 11.3247 8.59673H5.5588C5.10389 8.59673 4.73511 8.22795 4.73511 7.77304ZM4.73505 11.068C4.73505 10.613 5.10383 10.2443 5.55874 10.2443H8.85352C9.30843 10.2443 9.67721 10.613 9.67721 11.068C9.67721 11.5229 9.30843 11.8917 8.85352 11.8917H5.55874C5.10383 11.8917 4.73505 11.5229 4.73505 11.068Z",fill:"currentColor"})})}),F9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 12 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M1.33317 15.5L0.166504 14.3333L4.18734 10.2917C4.50678 9.97222 4.74984 9.61111 4.9165 9.20833C5.08317 8.80556 5.1665 8.38194 5.1665 7.9375L5.1665 3.6875L3.83317 5L2.6665 3.83333L5.99984 0.5L9.33317 3.83333L8.1665 5L6.83317 3.6875L6.83317 7.9375C6.83317 8.38194 6.9165 8.80556 7.08317 9.20833C7.24984 9.61111 7.49289 9.97222 7.81234 10.2917L11.8332 14.3333L10.6665 15.5L5.99984 10.8333L1.33317 15.5Z",fill:"currentColor"})}),D9=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_9540_49",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_9540_49)",children:r.jsx("path",{d:"M7.02162 12.3023C6.84934 12.3023 6.70438 12.2441 6.58675 12.1276C6.4692 12.0112 6.41043 11.8668 6.41043 11.6945V11.0377C5.96593 10.9381 5.57665 10.7639 5.2426 10.515C4.90854 10.2661 4.63827 9.92181 4.43177 9.48207C4.35904 9.33196 4.35836 9.1746 4.42972 9.01001C4.50109 8.84531 4.62636 8.72777 4.80554 8.65738C4.95331 8.59438 5.10532 8.5974 5.26156 8.66642C5.41789 8.73545 5.5419 8.84983 5.63358 9.00957C5.79662 9.28733 6.00103 9.49748 6.24681 9.64001C6.49259 9.78263 6.78975 9.85395 7.13829 9.85395C7.5299 9.85395 7.85671 9.76922 8.11872 9.59976C8.38064 9.4304 8.5116 9.16658 8.5116 8.80832C8.5116 8.48428 8.40349 8.22319 8.18727 8.02505C7.97104 7.82691 7.47638 7.60495 6.70327 7.35917C5.87649 7.10134 5.30521 6.78488 4.98943 6.4098C4.67365 6.03481 4.51577 5.58015 4.51577 5.04582C4.51577 4.42321 4.71702 3.93107 5.11952 3.5694C5.52211 3.20783 5.95242 2.99574 6.41043 2.93313V2.30547C6.41043 2.13319 6.4692 1.98881 6.58675 1.87234C6.70438 1.75587 6.84934 1.69763 7.02162 1.69763C7.19613 1.69763 7.34104 1.75587 7.45635 1.87234C7.57165 1.98881 7.62931 2.13319 7.62931 2.30547V2.93313C7.99875 2.99847 8.32134 3.12106 8.59706 3.30092C8.87278 3.48078 9.10047 3.7043 9.28014 3.97147C9.37688 4.10942 9.39506 4.26376 9.33468 4.43449C9.27421 4.60511 9.15322 4.72795 8.9717 4.80301C8.83093 4.86367 8.68295 4.86669 8.52779 4.81205C8.37262 4.75741 8.22022 4.65737 8.0706 4.51192C7.94888 4.38515 7.80528 4.28763 7.63981 4.21938C7.47434 4.15104 7.27216 4.11686 7.03329 4.11686C6.62184 4.11686 6.31185 4.2047 6.10331 4.38038C5.89486 4.55597 5.79064 4.77428 5.79064 5.03532C5.79064 5.33992 5.92772 5.58108 6.20189 5.7588C6.47615 5.93652 6.97763 6.1298 7.70631 6.33863C8.38647 6.53774 8.90321 6.85167 9.25652 7.28042C9.60982 7.70917 9.78647 8.20875 9.78647 8.77915C9.78647 9.47876 9.57997 10.0119 9.16697 10.3785C8.75397 10.7452 8.24142 10.9747 7.62931 11.0668V11.6945C7.62931 11.8668 7.57107 12.0112 7.4546 12.1276C7.33822 12.2441 7.1939 12.3023 7.02162 12.3023Z",fill:"currentColor"})})]}),q9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"volume_mute",children:[r.jsx("mask",{id:"mask0_1483_75386",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:r.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),r.jsxs("g",{mask:"url(#mask0_1483_75386)",children:[r.jsx("path",{id:"volume_up_2",d:"M14.0384 20.1095V18.5595C15.4807 18.1005 16.6425 17.2672 17.5239 16.0595C18.4053 14.8518 18.8461 13.4903 18.8461 11.9749C18.8461 10.4595 18.4053 9.09799 17.5239 7.89031C16.6425 6.68261 15.4807 5.84927 14.0384 5.39031V3.84033C15.8999 4.33905 17.4165 5.33841 18.5883 6.83841C19.7601 8.33839 20.346 10.0506 20.346 11.9749C20.346 13.8993 19.7601 15.6114 18.5883 17.1114C17.4165 18.6114 15.8999 19.6108 14.0384 20.1095ZM3.65381 14.4999V9.49993H7.36531L11.6537 5.21153V18.7883L7.36531 14.4999H3.65381ZM14.0384 15.6537V8.29608C14.7127 8.66275 15.2339 9.17909 15.6018 9.84511C15.9698 10.5111 16.1537 11.2294 16.1537 11.9999C16.1537 12.7602 15.9682 13.4675 15.597 14.122C15.2259 14.7765 14.7063 15.2871 14.0384 15.6537Z",fill:"currentColor"}),r.jsx("path",{id:"mute_line",d:"M6 21L21 4",stroke:"#808080","stroke-width":"2","stroke-linecap":"round"})]})]})}),G9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 10 10",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("circle",{cx:"5",cy:"5",r:"4.5",fill:"currentColor",stroke:"#6B7A8D"})}),W9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"notes",children:[r.jsx("mask",{id:"mask0_1473_73722",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"16",height:"16",children:r.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_1473_73722)",children:r.jsx("path",{id:"notes_2",d:"M2.83337 11.7564C2.69171 11.7564 2.57296 11.7085 2.47712 11.6126C2.38129 11.5167 2.33337 11.3979 2.33337 11.2562C2.33337 11.1144 2.38129 10.9957 2.47712 10.9C2.57296 10.8043 2.69171 10.7564 2.83337 10.7564H9.16668C9.30834 10.7564 9.42709 10.8043 9.52293 10.9002C9.61876 10.9961 9.66668 11.1149 9.66668 11.2566C9.66668 11.3983 9.61876 11.5171 9.52293 11.6128C9.42709 11.7085 9.30834 11.7564 9.16668 11.7564H2.83337ZM2.83337 8.49997C2.69171 8.49997 2.57296 8.45204 2.47712 8.35617C2.38129 8.2603 2.33337 8.1415 2.33337 7.99977C2.33337 7.85804 2.38129 7.73931 2.47712 7.64359C2.57296 7.54787 2.69171 7.50001 2.83337 7.50001H13.1667C13.3083 7.50001 13.4271 7.54794 13.5229 7.64381C13.6188 7.73969 13.6667 7.85849 13.6667 8.00021C13.6667 8.14194 13.6188 8.26067 13.5229 8.35639C13.4271 8.45211 13.3083 8.49997 13.1667 8.49997H2.83337ZM2.83337 5.24357C2.69171 5.24357 2.57296 5.19564 2.47712 5.09976C2.38129 5.00389 2.33337 4.88509 2.33337 4.74336C2.33337 4.60164 2.38129 4.48291 2.47712 4.38719C2.57296 4.29146 2.69171 4.24359 2.83337 4.24359H13.1667C13.3083 4.24359 13.4271 4.29153 13.5229 4.38741C13.6188 4.48329 13.6667 4.60209 13.6667 4.74381C13.6667 4.88554 13.6188 5.00427 13.5229 5.09999C13.4271 5.19571 13.3083 5.24357 13.1667 5.24357H2.83337Z",fill:"currentColor"})})]})}),X9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M1.16675 4.66669V7.0006H1.75008V10.5H1.16675V12.25H10.5001L12.2501 12.2506L12.8334 12.25V10.5H12.2501V7.0006H12.8334V4.66669L7.00008 1.16669L1.16675 4.66669ZM3.50008 10.5V7.0006H4.66675V10.5H3.50008ZM6.41675 10.5V7.0006H7.58342V10.5H6.41675ZM10.5001 10.5H9.33342V7.0006H10.5001V10.5ZM8.16675 4.66669C8.16671 4.81993 8.13649 4.97167 8.07781 5.11324C8.01913 5.25481 7.93314 5.38343 7.82475 5.49177C7.71636 5.6001 7.58769 5.68603 7.4461 5.74464C7.3045 5.80325 7.15275 5.83339 6.9995 5.83335C6.84625 5.83332 6.69451 5.80309 6.55294 5.74441C6.41138 5.68573 6.28275 5.59974 6.17442 5.49135C6.06608 5.38296 5.98016 5.2543 5.92155 5.1127C5.86294 4.97111 5.83279 4.81935 5.83283 4.6661C5.83291 4.35661 5.95593 4.05982 6.17483 3.84103C6.39373 3.62223 6.69059 3.49936 7.00008 3.49944C7.30958 3.49951 7.60637 3.62254 7.82516 3.84144C8.04395 4.06034 8.16683 4.35719 8.16675 4.66669Z",fill:"currentColor"})}),Y9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 22 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M17 7H15C14.7167 7 14.4792 6.90417 14.2875 6.7125C14.0958 6.52083 14 6.28333 14 6C14 5.71667 14.0958 5.47917 14.2875 5.2875C14.4792 5.09583 14.7167 5 15 5H17V3C17 2.71667 17.0958 2.47917 17.2875 2.2875C17.4792 2.09583 17.7167 2 18 2C18.2833 2 18.5208 2.09583 18.7125 2.2875C18.9042 2.47917 19 2.71667 19 3V5H21C21.2833 5 21.5208 5.09583 21.7125 5.2875C21.9042 5.47917 22 5.71667 22 6C22 6.28333 21.9042 6.52083 21.7125 6.7125C21.5208 6.90417 21.2833 7 21 7H19V9C19 9.28333 18.9042 9.52083 18.7125 9.7125C18.5208 9.90417 18.2833 10 18 10C17.7167 10 17.4792 9.90417 17.2875 9.7125C17.0958 9.52083 17 9.28333 17 9V7ZM8 8C6.9 8 5.95833 7.60833 5.175 6.825C4.39167 6.04167 4 5.1 4 4C4 2.9 4.39167 1.95833 5.175 1.175C5.95833 0.391667 6.9 0 8 0C9.1 0 10.0417 0.391667 10.825 1.175C11.6083 1.95833 12 2.9 12 4C12 5.1 11.6083 6.04167 10.825 6.825C10.0417 7.60833 9.1 8 8 8ZM0 14V13.2C0 12.6333 0.145833 12.1125 0.4375 11.6375C0.729167 11.1625 1.11667 10.8 1.6 10.55C2.63333 10.0333 3.68333 9.64583 4.75 9.3875C5.81667 9.12917 6.9 9 8 9C9.1 9 10.1833 9.12917 11.25 9.3875C12.3167 9.64583 13.3667 10.0333 14.4 10.55C14.8833 10.8 15.2708 11.1625 15.5625 11.6375C15.8542 12.1125 16 12.6333 16 13.2V14C16 14.55 15.8042 15.0208 15.4125 15.4125C15.0208 15.8042 14.55 16 14 16H2C1.45 16 0.979167 15.8042 0.5875 15.4125C0.195833 15.0208 0 14.55 0 14Z",fill:"currentColor"})}),K9=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_7640_2772",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_7640_2772)",children:r.jsx("path",{d:"M3.51334 10.0871C4.00917 9.71924 4.54934 9.42869 5.13384 9.21548C5.71824 9.00237 6.34027 8.89581 6.99992 8.89581C7.65957 8.89581 8.2816 9.00237 8.866 9.21548C9.4505 9.42869 9.99067 9.71924 10.4865 10.0871C10.8491 9.68851 11.1365 9.2271 11.3485 8.70288C11.5606 8.17865 11.6666 7.61102 11.6666 6.99998C11.6666 5.70692 11.2121 4.60588 10.303 3.69685C9.39402 2.78783 8.29297 2.33331 6.99992 2.33331C5.70686 2.33331 4.60582 2.78783 3.69679 3.69685C2.78777 4.60588 2.33325 5.70692 2.33325 6.99998C2.33325 7.61102 2.43927 8.17865 2.65131 8.70288C2.86336 9.2271 3.1507 9.68851 3.51334 10.0871ZM6.99992 7.43748C6.46743 7.43748 6.01836 7.2546 5.65271 6.88885C5.28696 6.5232 5.10409 6.07413 5.10409 5.54165C5.10409 5.00916 5.28696 4.56009 5.65271 4.19444C6.01836 3.82869 6.46743 3.64581 6.99992 3.64581C7.5324 3.64581 7.98147 3.82869 8.34713 4.19444C8.71288 4.56009 8.89575 5.00916 8.89575 5.54165C8.89575 6.07413 8.71288 6.5232 8.34713 6.88885C7.98147 7.2546 7.5324 7.43748 6.99992 7.43748ZM6.99992 12.5416C6.2304 12.5416 5.50853 12.3969 4.83429 12.1075C4.16006 11.8181 3.57356 11.4239 3.07481 10.9251C2.57597 10.4263 2.18183 9.83984 1.8924 9.1656C1.60297 8.49137 1.45825 7.76949 1.45825 6.99998C1.45825 6.23047 1.60297 5.50859 1.8924 4.83435C2.18183 4.16012 2.57597 3.57363 3.07481 3.07488C3.57356 2.57603 4.16006 2.18189 4.83429 1.89246C5.50853 1.60303 6.2304 1.45831 6.99992 1.45831C7.76943 1.45831 8.49131 1.60303 9.16554 1.89246C9.83978 2.18189 10.4263 2.57603 10.925 3.07488C11.4239 3.57363 11.818 4.16012 12.1074 4.83435C12.3969 5.50859 12.5416 6.23047 12.5416 6.99998C12.5416 7.76949 12.3969 8.49137 12.1074 9.1656C11.818 9.83984 11.4239 10.4263 10.925 10.9251C10.4263 11.4239 9.83978 11.8181 9.16554 12.1075C8.49131 12.3969 7.76943 12.5416 6.99992 12.5416Z",fill:"currentColor"})})]}),Q9=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_7541_22741",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"15",children:r.jsx("rect",{y:"0.25",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_7541_22741)",children:r.jsx("path",{d:"M4.26283 13.375C3.96815 13.375 3.71873 13.2729 3.51456 13.0687C3.3104 12.8646 3.20831 12.6152 3.20831 12.3205V2.17952C3.20831 1.88484 3.3104 1.63542 3.51456 1.43125C3.71873 1.22708 3.96815 1.125 4.26283 1.125H9.73713C10.0318 1.125 10.2812 1.22708 10.4854 1.43125C10.6896 1.63542 10.7916 1.88484 10.7916 2.17952V12.3205C10.7916 12.6152 10.6896 12.8646 10.4854 13.0687C10.2812 13.2729 10.0318 13.375 9.73713 13.375H4.26283ZM6.99998 12.0737C7.1428 12.0737 7.26452 12.0234 7.36515 11.9228C7.46567 11.8223 7.51594 11.7005 7.51594 11.5576C7.51594 11.4148 7.46567 11.2931 7.36515 11.1926C7.26452 11.092 7.1428 11.0417 6.99998 11.0417C6.85716 11.0417 6.73544 11.092 6.63481 11.1926C6.53429 11.2931 6.48402 11.4148 6.48402 11.5576C6.48402 11.7005 6.53429 11.8223 6.63481 11.9228C6.73544 12.0234 6.85716 12.0737 6.99998 12.0737ZM4.08331 9.7404H9.91665V3.60417H4.08331V9.7404Z",fill:"currentColor"})})]}),J9=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_7640_3741",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_7640_3741)",children:r.jsx("path",{d:"M6.99992 12.2151C6.88627 12.2151 6.77262 12.1955 6.65897 12.1564C6.54522 12.1171 6.44235 12.0563 6.35038 11.9741C5.82694 11.4916 5.33708 10.9948 4.88082 10.4836C4.42465 9.97255 4.02813 9.4616 3.69126 8.95079C3.35428 8.43999 3.08765 7.9337 2.89136 7.43194C2.69507 6.93008 2.59692 6.44542 2.59692 5.97798C2.59692 4.63184 3.03233 3.54203 3.90315 2.70854C4.77407 1.87506 5.80633 1.45831 6.99992 1.45831C8.19352 1.45831 9.22578 1.87506 10.0967 2.70854C10.9675 3.54203 11.4029 4.63184 11.4029 5.97798C11.4029 6.44542 11.3048 6.92911 11.1085 7.42902C10.9122 7.92904 10.6465 8.43537 10.3115 8.94802C9.97638 9.46067 9.58074 9.97163 9.12457 10.4809C8.6684 10.9902 8.17855 11.4861 7.65501 11.9684C7.5644 12.0506 7.46139 12.1123 7.34599 12.1534C7.23068 12.1946 7.11533 12.2151 6.99992 12.2151ZM7.00094 6.92138C7.29115 6.92138 7.53926 6.81803 7.74528 6.61133C7.95139 6.40464 8.05444 6.15619 8.05444 5.86598C8.05444 5.57577 7.9511 5.32761 7.7444 5.1215C7.53771 4.91549 7.28921 4.81248 6.9989 4.81248C6.70869 4.81248 6.46058 4.91583 6.25457 5.12252C6.04846 5.32922 5.9454 5.57772 5.9454 5.86802C5.9454 6.15823 6.04875 6.40634 6.25544 6.61236C6.46214 6.81837 6.71064 6.92138 7.00094 6.92138Z",fill:"currentColor"})})]}),e7=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 21 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_3553_6463",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"21",height:"20",children:r.jsx("rect",{x:"0.5",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{children:r.jsx("path",{d:"M9.87516 10.625H5.7085C5.53141 10.625 5.38298 10.5651 5.26318 10.4453C5.14339 10.3254 5.0835 10.1769 5.0835 9.99975C5.0835 9.82258 5.14339 9.67417 5.26318 9.55452C5.38298 9.43487 5.53141 9.37504 5.7085 9.37504H9.87516V5.20837C9.87516 5.03129 9.93508 4.88285 10.0549 4.76306C10.1748 4.64327 10.3233 4.58337 10.5004 4.58337C10.6776 4.58337 10.826 4.64327 10.9456 4.76306C11.0653 4.88285 11.1251 5.03129 11.1251 5.20837V9.37504H15.2918C15.4689 9.37504 15.6173 9.43496 15.7371 9.55479C15.8569 9.67464 15.9168 9.82314 15.9168 10.0003C15.9168 10.1775 15.8569 10.3259 15.7371 10.4455C15.6173 10.5652 15.4689 10.625 15.2918 10.625H11.1251V14.7917C11.1251 14.9688 11.0652 15.1172 10.9454 15.237C10.8255 15.3568 10.677 15.4167 10.4999 15.4167C10.3227 15.4167 10.1743 15.3568 10.0546 15.237C9.93499 15.1172 9.87516 14.9688 9.87516 14.7917V10.625Z",fill:"currentColor"})})]}),t7=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{opacity:"0.4",children:[r.jsx("mask",{id:"mask0_5162_13105",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_5162_13105)",children:r.jsx("path",{d:"M19.7615 21.8691L15.7154 17.8537C15.1256 18.0819 14.5195 18.2467 13.8971 18.348C13.2747 18.4493 12.6423 18.4999 12 18.4999C9.89486 18.4999 7.96698 17.94 6.21635 16.8201C4.46572 15.7002 3.07822 14.2243 2.05385 12.3922C1.97052 12.2486 1.90963 12.1025 1.87118 11.9538C1.83271 11.8051 1.81348 11.6538 1.81348 11.4999C1.81348 11.3461 1.83431 11.1932 1.87598 11.0413C1.91764 10.8894 1.98014 10.7448 2.06348 10.6076C2.46219 9.9448 2.88591 9.30345 3.33463 8.68357C3.78336 8.0637 4.30516 7.51531 4.90003 7.0384L2.13078 4.2384L3.18463 3.18457L20.8153 20.8153L19.7615 21.8691ZM12 15.5768C12.2218 15.5768 12.4336 15.5637 12.6356 15.5374C12.8375 15.5111 13.0346 15.4537 13.2269 15.3653L8.13463 10.273C8.05258 10.4653 7.99681 10.6624 7.96733 10.8643C7.93783 11.0663 7.92308 11.2781 7.92308 11.4999C7.92308 12.6345 8.31891 13.5977 9.11058 14.3893C9.90224 15.181 10.8654 15.5768 12 15.5768ZM18.9538 16.0845L15.8173 12.973C15.9019 12.7345 15.9663 12.4941 16.0105 12.2518C16.0548 12.0095 16.0769 11.7589 16.0769 11.4999C16.0769 10.3653 15.681 9.40219 14.8894 8.61052C14.0977 7.81885 13.1346 7.42302 12 7.42302C11.741 7.42302 11.4904 7.44674 11.2481 7.49417C11.0058 7.5416 10.7686 7.61917 10.5366 7.72687L8.03463 5.23457C8.67051 4.98329 9.3189 4.79803 9.9798 4.6788C10.6407 4.55956 11.3141 4.49995 12 4.49995C14.1115 4.49995 16.0484 5.06245 17.8105 6.18745C19.5727 7.31245 20.9628 8.79738 21.9807 10.6422C22.0576 10.7692 22.1169 10.9054 22.1586 11.0509C22.2003 11.1964 22.2211 11.3461 22.2211 11.4999C22.2211 11.6538 22.2028 11.8034 22.1663 11.9489C22.1297 12.0945 22.073 12.2307 21.9961 12.3576C21.6089 13.0832 21.1673 13.7605 20.6711 14.3893C20.175 15.0182 19.6025 15.5832 18.9538 16.0845ZM14.6846 11.8499L11.675 8.84992C12.0955 8.76659 12.5051 8.79671 12.9038 8.9403C13.3025 9.0839 13.6468 9.30761 13.9365 9.61145C14.2327 9.91145 14.4465 10.2563 14.5779 10.6461C14.7093 11.0358 14.7449 11.4371 14.6846 11.8499Z",fill:"currentColor"})})]})}),n7=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_5162_13106",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_5162_13106)",children:r.jsx("path",{d:"M12.0023 15.5769C13.1354 15.5769 14.0978 15.1803 14.8895 14.3871C15.6811 13.5939 16.077 12.6308 16.077 11.4977C16.077 10.3646 15.6804 9.40224 14.8872 8.61058C14.094 7.81891 13.1309 7.42308 11.9978 7.42308C10.8647 7.42308 9.90234 7.81966 9.11067 8.61282C8.31901 9.40601 7.92317 10.3692 7.92317 11.5023C7.92317 12.6353 8.31976 13.5977 9.11293 14.3894C9.90611 15.181 10.8692 15.5769 12.0023 15.5769ZM12.0001 14.2C11.2501 14.2 10.6126 13.9375 10.0876 13.4125C9.56258 12.8875 9.30007 12.25 9.30007 11.5C9.30007 10.75 9.56258 10.1125 10.0876 9.58748C10.6126 9.06248 11.2501 8.79998 12.0001 8.79998C12.7501 8.79998 13.3876 9.06248 13.9126 9.58748C14.4376 10.1125 14.7001 10.75 14.7001 11.5C14.7001 12.25 14.4376 12.8875 13.9126 13.4125C13.3876 13.9375 12.7501 14.2 12.0001 14.2ZM12.0014 18.5C9.70183 18.5 7.60651 17.8657 5.71547 16.5971C3.82446 15.3285 2.43216 13.6295 1.53857 11.5C2.43216 9.37049 3.82401 7.67146 5.71412 6.40288C7.60422 5.13429 9.69908 4.5 11.9987 4.5C14.2983 4.5 16.3936 5.13429 18.2847 6.40288C20.1757 7.67146 21.568 9.37049 22.4616 11.5C21.568 13.6295 20.1761 15.3285 18.286 16.5971C16.3959 17.8657 14.3011 18.5 12.0014 18.5Z",fill:"currentColor"})})]}),r7=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_7541_22801",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"15",children:r.jsx("rect",{y:"0.25",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_7541_22801)",children:r.jsx("path",{d:"M7.58335 12.2196V11.1089H8.69387V12.2196H7.58335ZM6.47283 11.1089V8.36054H7.58335V11.1089H6.47283ZM10.8589 9.24677V7.25002H11.9696V9.24677H10.8589ZM9.74839 7.25002V6.1395H10.8589V7.25002H9.74839ZM3.14112 8.36054V7.25002H4.25164V8.36054H3.14112ZM2.03046 7.25002V6.1395H3.14112V7.25002H2.03046ZM7.00002 3.39112V2.28046H8.11054V3.39112H7.00002ZM2.72594 4.91669H4.66669V2.97594H2.72594V4.91669ZM2.03046 5.08498V2.80779C2.03046 2.65836 2.08101 2.53314 2.18212 2.43212C2.28314 2.33101 2.40836 2.28046 2.55779 2.28046H4.83498C4.98431 2.28046 5.10953 2.33101 5.21064 2.43212C5.31166 2.53314 5.36216 2.65836 5.36216 2.80779V5.08498C5.36216 5.23431 5.31166 5.35953 5.21064 5.46064C5.10953 5.56166 4.98431 5.61217 4.83498 5.61217H2.55779C2.40836 5.61217 2.28314 5.56166 2.18212 5.46064C2.08101 5.35953 2.03046 5.23431 2.03046 5.08498ZM2.72594 11.5241H4.7116V9.58335H2.72594V11.5241ZM2.03046 11.6922V9.41506C2.03046 9.26573 2.08101 9.14051 2.18212 9.03939C2.28314 8.93838 2.40836 8.88787 2.55779 8.88787H4.87989C5.02923 8.88787 5.15445 8.93838 5.25556 9.03939C5.35657 9.14051 5.40708 9.26573 5.40708 9.41506V11.6922C5.40708 11.8417 5.35657 11.9669 5.25556 12.0679C5.15445 12.169 5.02923 12.2196 4.87989 12.2196H2.55779C2.40836 12.2196 2.28314 12.169 2.18212 12.0679C2.08101 11.9669 2.03046 11.8417 2.03046 11.6922ZM9.33335 4.91669H11.2741V2.97594H9.33335V4.91669ZM8.63787 5.08498V2.80779C8.63787 2.65836 8.68838 2.53314 8.78939 2.43212C8.89051 2.33101 9.01573 2.28046 9.16506 2.28046H11.4422C11.5917 2.28046 11.7169 2.33101 11.8179 2.43212C11.919 2.53314 11.9696 2.65836 11.9696 2.80779V5.08498C11.9696 5.23431 11.919 5.35953 11.8179 5.46064C11.7169 5.56166 11.5917 5.61217 11.4422 5.61217H9.16506C9.01573 5.61217 8.89051 5.56166 8.78939 5.46064C8.68838 5.35953 8.63787 5.23431 8.63787 5.08498ZM9.74839 12.2196V10.3573H8.63787V9.24677H10.8589V11.1089H11.9696V12.2196H9.74839ZM7.58335 8.36054V7.25002H9.74839V8.36054H7.58335ZM5.36216 8.36054V7.25002H4.25164V6.1395H7.58335V7.25002H6.47283V8.36054H5.36216ZM5.8895 5.61217V3.39112H7.00002V4.50164H8.11054V5.61217H5.8895ZM3.2925 4.35012V3.5425H4.10012V4.35012H3.2925ZM3.33173 10.9183V10.1105H4.1395V10.9183H3.33173ZM9.89991 4.35012V3.5425H10.7075V4.35012H9.89991Z",fill:"currentColor"})})]}),i7=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_5099_7163",maskUnits:"userSpaceOnUse",x:"2",y:"2",width:"16",height:"16",children:r.jsx("rect",{x:"2",y:"2",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_5099_7163)",children:r.jsx("path",{d:"M10 16.6667C9.16667 16.6667 8.38611 16.5083 7.65833 16.1917C6.93056 15.875 6.29722 15.4472 5.75833 14.9083C5.21944 14.3695 4.79167 13.7361 4.475 13.0083C4.15833 12.2806 4 11.5 4 10.6667C4 10.4778 4.06389 10.3195 4.19167 10.1917C4.31944 10.0639 4.47778 10 4.66667 10C4.85556 10 5.01389 10.0639 5.14167 10.1917C5.26944 10.3195 5.33333 10.4778 5.33333 10.6667C5.33333 11.9667 5.78611 13.0695 6.69167 13.975C7.59722 14.8806 8.7 15.3333 10 15.3333C11.3 15.3333 12.4028 14.8806 13.3083 13.975C14.2139 13.0695 14.6667 11.9667 14.6667 10.6667C14.6667 9.36667 14.2139 8.2639 13.3083 7.35834C12.4028 6.45279 11.3 6.00001 10 6.00001H9.9L10.4667 6.56667C10.6 6.70001 10.6639 6.85556 10.6583 7.03334C10.6528 7.21112 10.5889 7.36667 10.4667 7.50001C10.3333 7.63334 10.175 7.70279 9.99167 7.70834C9.80833 7.7139 9.65 7.65001 9.51667 7.51667L7.8 5.80001C7.66667 5.66667 7.6 5.51112 7.6 5.33334C7.6 5.15556 7.66667 5.00001 7.8 4.86667L9.51667 3.15001C9.65 3.01667 9.80833 2.95279 9.99167 2.95834C10.175 2.9639 10.3333 3.03334 10.4667 3.16667C10.5889 3.30001 10.6528 3.45556 10.6583 3.63334C10.6639 3.81112 10.6 3.96667 10.4667 4.10001L9.9 4.66667H10C10.8333 4.66667 11.6139 4.82501 12.3417 5.14167C13.0694 5.45834 13.7028 5.88612 14.2417 6.42501C14.7806 6.9639 15.2083 7.59723 15.525 8.32501C15.8417 9.05279 16 9.83334 16 10.6667C16 11.5 15.8417 12.2806 15.525 13.0083C15.2083 13.7361 14.7806 14.3695 14.2417 14.9083C13.7028 15.4472 13.0694 15.875 12.3417 16.1917C11.6139 16.5083 10.8333 16.6667 10 16.6667Z",fill:"currentColor"})})]}),s7=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_7541_22828",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"15",children:r.jsx("rect",{y:"0.25",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_7541_22828)",children:r.jsx("path",{d:"M5.24999 7.10419C5.53339 7.10419 5.77441 7.00492 5.97303 6.8064C6.17156 6.60777 6.27082 6.36676 6.27082 6.08335C6.27082 5.79995 6.17156 5.55894 5.97303 5.36031C5.77441 5.16178 5.53339 5.06252 5.24999 5.06252C4.96659 5.06252 4.72557 5.16178 4.52695 5.36031C4.32842 5.55894 4.22916 5.79995 4.22916 6.08335C4.22916 6.36676 4.32842 6.60777 4.52695 6.8064C4.72557 7.00492 4.96659 7.10419 5.24999 7.10419ZM8.74999 7.10419C9.03339 7.10419 9.27441 7.00492 9.47303 6.8064C9.67156 6.60777 9.77082 6.36676 9.77082 6.08335C9.77082 5.79995 9.67156 5.55894 9.47303 5.36031C9.27441 5.16178 9.03339 5.06252 8.74999 5.06252C8.46659 5.06252 8.22557 5.16178 8.02695 5.36031C7.82842 5.55894 7.72916 5.79995 7.72916 6.08335C7.72916 6.36676 7.82842 6.60777 8.02695 6.8064C8.22557 7.00492 8.46659 7.10419 8.74999 7.10419ZM5.10416 12.2084V10.2004C5.10416 10.148 5.12098 10.105 5.15461 10.0713C5.18825 10.0377 5.23127 10.0209 5.28368 10.0209H6.56249V12.2084H5.10416ZM7.43749 12.2084V10.0209H8.7163C8.76871 10.0209 8.81173 10.0377 8.84537 10.0713C8.879 10.105 8.89582 10.148 8.89582 10.2004V12.2084H7.43749ZM3.09618 12.2084C2.80616 12.2084 2.55791 12.1051 2.35141 11.8986C2.14491 11.6921 2.04166 11.4438 2.04166 11.1538V5.50002C2.04166 4.60878 2.35359 3.85128 2.97747 3.2275C3.60125 2.60362 4.35875 2.29169 5.24999 2.29169H8.74999C9.64123 2.29169 10.3987 2.60362 11.0225 3.2275C11.6464 3.85128 11.9583 4.60878 11.9583 5.50002V11.1538C11.9583 11.4438 11.8551 11.6921 11.6486 11.8986C11.4421 12.1051 11.1938 12.2084 10.9038 12.2084H9.77082V10.2004C9.77082 9.91036 9.66757 9.6621 9.46107 9.4556C9.25457 9.2491 9.00632 9.14585 8.7163 9.14585H5.28368C4.99366 9.14585 4.74541 9.2491 4.53891 9.4556C4.33241 9.6621 4.22916 9.91036 4.22916 10.2004V12.2084H3.09618Z",fill:"currentColor"})})]}),o7=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_7541_22840",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"15",children:r.jsx("rect",{y:"0.25",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_7541_22840)",children:r.jsx("path",{d:"M3.09619 12.2084C2.80151 12.2084 2.55209 12.1063 2.34792 11.9021C2.14376 11.6979 2.04167 11.4485 2.04167 11.1538V3.34621C2.04167 3.05153 2.14376 2.8021 2.34792 2.59794C2.55209 2.39377 2.80151 2.29169 3.09619 2.29169H9.35682C9.49915 2.29169 9.63478 2.31901 9.76369 2.37365C9.89261 2.42819 10.0049 2.50334 10.1006 2.5991L11.6509 4.14946C11.7467 4.24512 11.8218 4.35742 11.8764 4.48633C11.931 4.61525 11.9583 4.75087 11.9583 4.89321V11.1538C11.9583 11.4485 11.8563 11.6979 11.6521 11.9021C11.4479 12.1063 11.1985 12.2084 10.9038 12.2084H3.09619ZM6.99869 10.3238C7.40343 10.3238 7.74789 10.1821 8.03207 9.89879C8.31625 9.61549 8.45834 9.27146 8.45834 8.86673C8.45834 8.46199 8.31669 8.11753 8.03338 7.83335C7.75007 7.54917 7.40605 7.40708 7.00132 7.40708C6.59658 7.40708 6.25212 7.54874 5.96794 7.83204C5.68376 8.11535 5.54167 8.45937 5.54167 8.8641C5.54167 9.26884 5.68333 9.6133 5.96663 9.89748C6.24994 10.1817 6.59396 10.3238 6.99869 10.3238ZM4.25163 6.01598H7.98598C8.13707 6.01598 8.26292 5.96547 8.36355 5.86446C8.46408 5.76344 8.51434 5.63822 8.51434 5.48879V4.50165C8.51434 4.35221 8.46383 4.22699 8.36282 4.12598C8.2618 4.02497 8.13658 3.97446 7.98715 3.97446H4.2528C4.10171 3.97446 3.97586 4.02497 3.87523 4.12598C3.77471 4.22699 3.72444 4.35221 3.72444 4.50165V5.48879C3.72444 5.63822 3.77495 5.76344 3.87596 5.86446C3.97698 5.96547 4.1022 6.01598 4.25163 6.01598Z",fill:"currentColor"})})]}),l7=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"schedule",children:[r.jsx("mask",{id:"mask0_4051_4016",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:r.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_4051_4016)",children:r.jsx("path",{id:"schedule_2",d:"M12.75 11.6961V7.74995C12.75 7.53747 12.6781 7.35935 12.5343 7.2156C12.3904 7.07185 12.2122 6.99998 11.9997 6.99998C11.7871 6.99998 11.609 7.07185 11.4654 7.2156C11.3218 7.35935 11.25 7.53747 11.25 7.74995V11.9269C11.25 12.0446 11.2718 12.1587 11.3154 12.269C11.359 12.3794 11.4276 12.4814 11.5212 12.575L14.9462 16C15.0846 16.1384 15.2587 16.2093 15.4683 16.2125C15.6779 16.2157 15.8551 16.1448 16 16C16.1448 15.8551 16.2173 15.6795 16.2173 15.4731C16.2173 15.2667 16.1448 15.091 16 14.9462L12.75 11.6961ZM12.0016 21.5C10.6877 21.5 9.45268 21.2506 8.29655 20.752C7.1404 20.2533 6.13472 19.5765 5.2795 18.7217C4.42427 17.8669 3.74721 16.8616 3.24833 15.706C2.74944 14.5504 2.5 13.3156 2.5 12.0017C2.5 10.6877 2.74933 9.45268 3.248 8.29655C3.74667 7.1404 4.42342 6.13472 5.27825 5.2795C6.1331 4.42427 7.13834 3.74721 8.29398 3.24833C9.44959 2.74944 10.6844 2.5 11.9983 2.5C13.3122 2.5 14.5473 2.74933 15.7034 3.248C16.8596 3.74667 17.8652 4.42342 18.7205 5.27825C19.5757 6.1331 20.2527 7.13834 20.7516 8.29398C21.2505 9.44959 21.5 10.6844 21.5 11.9983C21.5 13.3122 21.2506 14.5473 20.752 15.7034C20.2533 16.8596 19.5765 17.8652 18.7217 18.7205C17.8669 19.5757 16.8616 20.2527 15.706 20.7516C14.5504 21.2505 13.3156 21.5 12.0016 21.5Z",fill:"currentColor"})})]})}),C7=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_9540_35",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_9540_35)",children:r.jsx("path",{d:"M12.2501 9.33332V5.89165L7.55426 8.44373C7.37926 8.54096 7.19454 8.58957 7.0001 8.58957C6.80565 8.58957 6.62093 8.54096 6.44593 8.44373L1.51676 5.7604C1.40982 5.70207 1.33447 5.62915 1.29072 5.54165C1.24697 5.45415 1.2251 5.35693 1.2251 5.24998C1.2251 5.14304 1.24697 5.04582 1.29072 4.95832C1.33447 4.87082 1.40982 4.7979 1.51676 4.73957L6.44593 2.05623C6.53343 2.00762 6.62336 1.97116 6.71572 1.94686C6.80808 1.92255 6.90288 1.9104 7.0001 1.9104C7.09732 1.9104 7.19211 1.92255 7.28447 1.94686C7.37683 1.97116 7.46676 2.00762 7.55426 2.05623L13.1105 5.08957C13.2077 5.13818 13.2831 5.20866 13.3366 5.30103C13.39 5.39339 13.4168 5.49304 13.4168 5.59998V9.33332C13.4168 9.49859 13.3609 9.63714 13.2491 9.74894C13.1373 9.86075 12.9987 9.91665 12.8334 9.91665C12.6682 9.91665 12.5296 9.86075 12.4178 9.74894C12.306 9.63714 12.2501 9.49859 12.2501 9.33332ZM6.44593 11.9437L3.52926 10.3687C3.33482 10.2618 3.18413 10.116 3.07718 9.93123C2.97024 9.74651 2.91676 9.54721 2.91676 9.33332V7.11665L6.44593 9.02707C6.62093 9.12429 6.80565 9.1729 7.0001 9.1729C7.19454 9.1729 7.37926 9.12429 7.55426 9.02707L11.0834 7.11665V9.33332C11.0834 9.54721 11.03 9.74651 10.923 9.93123C10.8161 10.116 10.6654 10.2618 10.4709 10.3687L7.55426 11.9437C7.46676 11.9923 7.37683 12.0288 7.28447 12.0531C7.19211 12.0774 7.09732 12.0896 7.0001 12.0896C6.90288 12.0896 6.80808 12.0774 6.71572 12.0531C6.62336 12.0288 6.53343 11.9923 6.44593 11.9437Z",fill:"currentColor"})})]}),a7=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M5.99995 7.22422L1.71245 11.5117C1.55203 11.6721 1.34787 11.7523 1.09995 11.7523C0.852035 11.7523 0.647868 11.6721 0.487451 11.5117C0.327035 11.3513 0.246826 11.1471 0.246826 10.8992C0.246826 10.6513 0.327035 10.4471 0.487451 10.2867L4.77495 5.99922L0.487451 1.71172C0.327035 1.5513 0.246826 1.34714 0.246826 1.09922C0.246826 0.851302 0.327035 0.647135 0.487451 0.486719C0.647868 0.326302 0.852035 0.246094 1.09995 0.246094C1.34787 0.246094 1.55203 0.326302 1.71245 0.486719L5.99995 4.77422L10.2875 0.486719C10.4479 0.326302 10.652 0.246094 10.9 0.246094C11.1479 0.246094 11.352 0.326302 11.5125 0.486719C11.6729 0.647135 11.7531 0.851302 11.7531 1.09922C11.7531 1.34714 11.6729 1.5513 11.5125 1.71172L7.22495 5.99922L11.5125 10.2867C11.6729 10.4471 11.7531 10.6513 11.7531 10.8992C11.7531 11.1471 11.6729 11.3513 11.5125 11.5117C11.352 11.6721 11.1479 11.7523 10.9 11.7523C10.652 11.7523 10.4479 11.6721 10.2875 11.5117L5.99995 7.22422Z",fill:"currentColor"})}),c7=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M7.38474 15.5C7.13341 15.5 6.92316 15.4153 6.75399 15.246C6.58466 15.0768 6.49999 14.8666 6.49999 14.6152V8.827L0.901988 1.7155C0.709655 1.459 0.681738 1.19233 0.818238 0.9155C0.954905 0.6385 1.18541 0.5 1.50974 0.5H14.4902C14.8146 0.5 15.0451 0.6385 15.1817 0.9155C15.3182 1.19233 15.2903 1.459 15.098 1.7155L9.49999 8.827V14.6152C9.49999 14.8666 9.41532 15.0768 9.24599 15.246C9.07682 15.4153 8.86657 15.5 8.61524 15.5H7.38474Z",fill:"currentColor"})}),h7=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 32 32",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("g",{id:"Property 1=Normal",children:r.jsx("path",{id:"search",d:"M15.5192 20.6153C13.8115 20.6153 12.3654 20.023 11.1808 18.8384C9.99618 17.6538 9.40387 16.2077 9.40387 14.5C9.40387 12.7923 9.99618 11.3462 11.1808 10.1615C12.3654 8.97694 13.8115 8.38464 15.5192 8.38464C17.2269 8.38464 18.6731 8.97694 19.8577 10.1615C21.0423 11.3462 21.6346 12.7923 21.6346 14.5C21.6346 15.2141 21.5147 15.8961 21.275 16.5461C21.0352 17.1961 20.7153 17.7615 20.3153 18.2423L23.0692 20.9961C23.2077 21.1346 23.2785 21.3087 23.2817 21.5183C23.2849 21.7279 23.2141 21.9051 23.0692 22.05C22.9243 22.1948 22.7487 22.2673 22.5423 22.2673C22.3359 22.2673 22.1603 22.1948 22.0154 22.05L19.2615 19.2961C18.7615 19.7089 18.1865 20.032 17.5365 20.2653C16.8865 20.4987 16.2141 20.6153 15.5192 20.6153ZM15.5192 19.1154C16.8077 19.1154 17.899 18.6683 18.7933 17.774C19.6875 16.8798 20.1346 15.7885 20.1346 14.5C20.1346 13.2115 19.6875 12.1202 18.7933 11.2259C17.899 10.3317 16.8077 9.88459 15.5192 9.88459C14.2308 9.88459 13.1394 10.3317 12.2452 11.2259C11.351 12.1202 10.9038 13.2115 10.9038 14.5C10.9038 15.7885 11.351 16.8798 12.2452 17.774C13.1394 18.6683 14.2308 19.1154 15.5192 19.1154Z",fill:"currentColor"})})}),u7=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"sensors",children:[r.jsx("mask",{id:"mask0_1506_161",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"16",height:"16",children:r.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_1506_161)",children:r.jsx("path",{id:"sensors_2",d:"M5 8.97359C4.73205 8.97359 4.49839 8.87655 4.29903 8.68246C4.09968 8.48836 4 8.26087 4 8C4 7.73913 4.09968 7.51164 4.29903 7.31754C4.49839 7.12345 4.73205 7.02641 5 7.02641C5.26795 7.02641 5.50161 7.12345 5.70097 7.31754C5.90032 7.51164 6 7.73913 6 8C6 8.26087 5.90032 8.48836 5.70097 8.68246C5.50161 8.87655 5.26795 8.97359 5 8.97359ZM8.17885 11.0949C8.08527 11.0038 8.03431 10.893 8.02597 10.7626C8.01764 10.6321 8.05642 10.5076 8.1423 10.389C8.40257 10.0595 8.61058 9.69099 8.76635 9.28346C8.92212 8.87591 9 8.44809 9 8C9 7.5519 8.92212 7.12408 8.76635 6.71654C8.61058 6.30901 8.40257 5.94048 8.1423 5.61095C8.05642 5.49239 8.01539 5.37006 8.01922 5.24398C8.02308 5.11792 8.07821 5.00308 8.18463 4.89948C8.29488 4.79214 8.41699 4.7394 8.55097 4.74127C8.68494 4.74315 8.79488 4.79964 8.88077 4.91072C9.23077 5.33136 9.50482 5.80567 9.7029 6.33365C9.90097 6.86165 10 7.41709 10 8C10 8.5829 9.90097 9.13648 9.7029 9.66073C9.50482 10.185 9.23077 10.6593 8.88077 11.0837C8.79488 11.1948 8.68397 11.2512 8.54807 11.2531C8.41217 11.255 8.2891 11.2022 8.17885 11.0949ZM11.0096 13.8509C10.916 13.7598 10.8663 13.6481 10.8606 13.5158C10.8548 13.3834 10.8987 13.2599 10.9923 13.1451C11.6154 12.4548 12.1058 11.6737 12.4635 10.8019C12.8212 9.93002 13 8.99606 13 8C13 7.00394 12.8221 6.06998 12.4663 5.19813C12.1106 4.32626 11.6212 3.5452 10.9981 2.85494C10.9045 2.74012 10.8555 2.62061 10.851 2.49641C10.8465 2.37222 10.8994 2.25644 11.0096 2.14908C11.1071 2.05422 11.225 2.00461 11.3635 2.00025C11.5019 1.99588 11.6179 2.04924 11.7115 2.16033C12.4244 2.9417 12.984 3.82667 13.3904 4.81524C13.7968 5.80381 14 6.86539 14 8C14 9.13086 13.7968 10.1915 13.3904 11.182C12.984 12.1724 12.4244 13.0583 11.7115 13.8397C11.6179 13.9508 11.5019 14.0041 11.3635 13.9998C11.225 13.9954 11.1071 13.9458 11.0096 13.8509Z",fill:"currentColor"})})]})}),d7=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_1259_28",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_1259_28)",children:r.jsx("path",{d:"M3 20.75L2.91345 19.4327L4.74998 17.6058V20.75H3ZM7.25003 20.75V15.1058L8.74998 13.6058V20.75H7.25003ZM11.25 20.75V13.6058L12.75 15.1308V20.75H11.25ZM15.25 20.75V15.1308L16.75 13.6308V20.75H15.25ZM19.25 20.75V11.1058L20.75 9.60583V20.75H19.25ZM3.25003 15.2192V13.1058L10 6.35581L14 10.3558L20.75 3.60583V5.71924L14 12.4692L10 8.46921L3.25003 15.2192Z",fill:"currentColor"})})]}),f7=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_1259_29",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_1259_29)",children:r.jsx("path",{d:"M13.5096 21.5H10.4808C10.2564 21.5 10.0622 21.4246 9.8981 21.274C9.734 21.1233 9.63528 20.9358 9.60195 20.7115L9.31157 18.4538C9.04362 18.3641 8.76894 18.2384 8.48752 18.0769C8.2061 17.9153 7.9545 17.7422 7.7327 17.5576L5.64425 18.4384C5.43015 18.5217 5.21765 18.5301 5.00675 18.4634C4.79585 18.3967 4.63014 18.2647 4.50962 18.0673L3.00582 15.4481C2.8853 15.2506 2.84845 15.0397 2.89525 14.8154C2.94203 14.591 3.0558 14.4102 3.23657 14.2731L5.04427 12.9058C5.02119 12.757 5.00484 12.6077 4.99522 12.4577C4.9856 12.3077 4.9808 12.1583 4.9808 12.0096C4.9808 11.8673 4.9856 11.7227 4.99522 11.5759C5.00484 11.4291 5.02119 11.2686 5.04427 11.0942L3.23657 9.72688C3.0558 9.58971 2.94203 9.40894 2.89525 9.18458C2.84845 8.96023 2.8853 8.74934 3.00582 8.5519L4.50962 5.95195C4.61989 5.74425 4.78143 5.60963 4.99425 5.5481C5.20706 5.48657 5.42052 5.49747 5.63462 5.5808L7.72307 6.45195C7.9641 6.26092 8.22148 6.08623 8.4952 5.9279C8.76893 5.76955 9.03785 5.6423 9.30195 5.54615L9.60195 3.28848C9.63528 3.06411 9.734 2.87661 9.8981 2.72598C10.0622 2.57533 10.2564 2.5 10.4808 2.5H13.5096C13.7339 2.5 13.9298 2.57533 14.0971 2.72598C14.2644 2.87661 14.3647 3.06411 14.398 3.28848L14.6884 5.55578C14.9884 5.66474 15.2599 5.79198 15.5029 5.9375C15.7458 6.08302 15.991 6.2545 16.2384 6.45195L18.3654 5.5808C18.5795 5.49747 18.7904 5.48753 18.998 5.55098C19.2057 5.61444 19.3699 5.74489 19.4904 5.94233L20.9942 8.5519C21.1147 8.74934 21.1515 8.96023 21.1047 9.18458C21.058 9.40894 20.9442 9.58971 20.7634 9.72688L18.9173 11.123C18.9532 11.2846 18.9727 11.4355 18.9759 11.5759C18.9791 11.7163 18.9807 11.8577 18.9807 12C18.9807 12.1359 18.9775 12.274 18.9711 12.4144C18.9647 12.5548 18.9416 12.7154 18.9019 12.8962L20.7288 14.2731C20.916 14.4038 21.0314 14.583 21.0749 14.8106C21.1185 15.0381 21.0801 15.2506 20.9596 15.4481L19.4557 18.0519C19.3352 18.2493 19.167 18.3823 18.9509 18.4509C18.7349 18.5195 18.5198 18.5121 18.3057 18.4288L16.2384 17.548C15.991 17.7455 15.7384 17.9201 15.4807 18.0721C15.223 18.224 14.9589 18.348 14.6884 18.4442L14.398 20.7115C14.3647 20.9358 14.2644 21.1233 14.0971 21.274C13.9298 21.4246 13.7339 21.5 13.5096 21.5ZM12.0115 15C12.8436 15 13.5516 14.708 14.1355 14.124C14.7195 13.54 15.0115 12.832 15.0115 12C15.0115 11.1679 14.7195 10.4599 14.1355 9.87595C13.5516 9.29198 12.8436 9 12.0115 9C11.1692 9 10.4587 9.29198 9.87982 9.87595C9.30099 10.4599 9.01157 11.1679 9.01157 12C9.01157 12.832 9.30099 13.54 9.87982 14.124C10.4587 14.708 11.1692 15 12.0115 15Z",fill:"currentColor"})})]}),p7=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"shield_person",children:[r.jsx("mask",{id:"mask0_1543_22988",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:r.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_1543_22988)",children:r.jsx("path",{id:"shield_person_2",d:"M9.99998 10.6249C10.7521 10.6249 11.3915 10.3616 11.9182 9.83486C12.4449 9.30816 12.7083 8.66875 12.7083 7.91661C12.7083 7.16447 12.4449 6.52505 11.9182 5.99836C11.3915 5.47165 10.7521 5.20829 9.99998 5.20829C9.24784 5.20829 8.60842 5.47165 8.08173 5.99836C7.55502 6.52505 7.29167 7.16447 7.29167 7.91661C7.29167 8.66875 7.55502 9.30816 8.08173 9.83486C8.60842 10.3616 9.24784 10.6249 9.99998 10.6249ZM9.99998 17.9005C8.08973 17.376 6.57051 16.3049 5.44231 14.6874C4.3141 13.0699 3.75 11.2574 3.75 9.24994V4.45509L9.99998 2.11536L16.25 4.45509V9.24994C16.25 11.2574 15.6859 13.0699 14.5576 14.6874C13.4295 16.3049 11.9102 17.376 9.99998 17.9005ZM9.99998 16.5833C10.782 16.3301 11.4823 15.9422 12.1009 15.4198C12.7195 14.8974 13.2569 14.298 13.7131 13.6218C13.1373 13.3269 12.5371 13.1009 11.9126 12.9439C11.2882 12.7868 10.6506 12.7083 9.99998 12.7083C9.34934 12.7083 8.71179 12.7868 8.08733 12.9439C7.46286 13.1009 6.8627 13.3269 6.28685 13.6218C6.74305 14.298 7.28044 14.8974 7.89902 15.4198C8.51762 15.9422 9.21794 16.3301 9.99998 16.5833Z",fill:"currentColor"})})]})}),x7=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 12 8",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M0.333496 7.66704V6.66706H3.91681V7.66704H0.333496ZM0.333496 4.50037V3.50041H7.7886V4.50037H0.333496ZM0.333496 1.33372V0.33374H11.6668V1.33372H0.333496Z",fill:"currentColor"})}),g7=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"brand_awareness",children:[r.jsx("mask",{id:"mask0_3696_4540",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:r.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_3696_4540)",children:r.jsx("path",{id:"brand_awareness_2",d:"M15.577 10.625H13.8142C13.6368 10.625 13.4883 10.5652 13.3687 10.4455C13.249 10.3259 13.1892 10.1774 13.1892 10C13.1892 9.82269 13.249 9.67419 13.3687 9.55454C13.4883 9.43489 13.6368 9.37506 13.8142 9.37506H15.577C15.7543 9.37506 15.9028 9.43489 16.0225 9.55454C16.1421 9.67419 16.202 9.82269 16.202 10C16.202 10.1774 16.1421 10.3259 16.0225 10.4455C15.9028 10.5652 15.7543 10.625 15.577 10.625ZM12.1106 13.9279C12.2175 13.7816 12.354 13.6972 12.5201 13.6747C12.6862 13.6523 12.8425 13.6945 12.9888 13.8013L14.3943 14.8574C14.5406 14.9642 14.625 15.1007 14.6475 15.2669C14.6699 15.433 14.6277 15.5892 14.5209 15.7356C14.4141 15.882 14.2776 15.9664 14.1114 15.9888C13.9453 16.0112 13.7891 15.969 13.6427 15.8622L12.2372 14.8061C12.0909 14.6993 12.0065 14.5628 11.9841 14.3967C11.9616 14.2305 12.0038 14.0743 12.1106 13.9279ZM14.3622 5.1106L12.9568 6.16671C12.8104 6.27354 12.6542 6.31574 12.488 6.29331C12.3219 6.27087 12.1854 6.18646 12.0786 6.0401C11.9718 5.89374 11.9296 5.7375 11.952 5.57137C11.9744 5.40525 12.0588 5.26876 12.2052 5.16192L13.6106 4.10583C13.757 3.999 13.9133 3.9568 14.0794 3.97923C14.2455 4.00166 14.382 4.08606 14.4888 4.23244C14.5957 4.3788 14.6379 4.53504 14.6154 4.70116C14.593 4.86729 14.5086 5.00377 14.3622 5.1106ZM6.05778 12.0834H3.71805C3.5033 12.0834 3.32408 12.0115 3.18039 11.8678C3.03669 11.7241 2.96484 11.5449 2.96484 11.3301V8.66994C2.96484 8.4552 3.03669 8.27599 3.18039 8.13229C3.32408 7.98858 3.5033 7.91673 3.71805 7.91673H6.05778L8.55134 5.42317C8.75114 5.22339 8.9811 5.17771 9.24124 5.28614C9.50138 5.39459 9.63145 5.5909 9.63145 5.87508V14.125C9.63145 14.4092 9.50138 14.6055 9.24124 14.7139C8.9811 14.8224 8.75114 14.7767 8.55134 14.5769L6.05778 12.0834Z",fill:"currentColor"})})]})}),m7=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("g",{id:"Menu icons",children:r.jsx("path",{id:"Subtract",d:"M9.56745 16.1438C9.44134 16.1438 9.31606 16.1269 9.19162 16.0931C9.06718 16.0595 8.95315 16.0133 8.84954 15.9546C8.2587 15.602 7.64141 15.3367 6.99766 15.159C6.35405 14.981 5.68822 14.8921 5.00016 14.8921C4.49169 14.8921 3.99225 14.9484 3.50183 15.061C3.01141 15.1738 2.53863 15.3397 2.0835 15.5588C1.78655 15.6954 1.50398 15.6751 1.23579 15.4977C0.967593 15.3205 0.833496 15.0695 0.833496 14.7446V5.71272C0.833496 5.53313 0.881066 5.36723 0.976204 5.21501C1.0712 5.06279 1.20315 4.95195 1.37204 4.88251C1.93607 4.60792 2.52391 4.40202 3.13558 4.2648C3.74725 4.12744 4.36877 4.05876 5.00016 4.05876C5.811 4.05876 6.60051 4.17362 7.3687 4.40334C8.1369 4.63306 8.87516 4.95626 9.5835 5.37292V14.9433C10.2866 14.4989 11.0283 14.1709 11.8087 13.9594C12.5891 13.7479 13.3752 13.6421 14.1668 13.6421C14.6454 13.6421 15.0816 13.6717 15.4754 13.731C15.869 13.7904 16.3249 13.9006 16.8431 14.0619C16.9018 14.078 16.9566 14.0794 17.0075 14.066C17.0581 14.0526 17.0835 14.0085 17.0835 13.9338V4.5748C17.2277 4.61758 17.3684 4.66515 17.5058 4.71751C17.643 4.76987 17.7768 4.83556 17.9072 4.91459C18.0493 4.98404 18.1559 5.08549 18.2268 5.21897C18.2979 5.35258 18.3335 5.49577 18.3335 5.64855V14.7285C18.3335 15.0534 18.1954 15.3031 17.9191 15.4777C17.643 15.6524 17.3484 15.6741 17.0354 15.5427C16.5856 15.329 16.1196 15.1671 15.6372 15.0571C15.1549 14.9471 14.6647 14.8921 14.1668 14.8921C13.4735 14.8921 12.7996 14.981 12.1452 15.159C11.4909 15.3367 10.8683 15.602 10.2775 15.9546C10.1738 16.0133 10.0611 16.0595 9.93933 16.0931C9.81752 16.1269 9.69357 16.1438 9.56745 16.1438ZM11.8895 12.2319C11.7613 12.3462 11.6227 12.3692 11.4737 12.3008C11.3247 12.2324 11.2502 12.1132 11.2502 11.9433V5.46751C11.2502 5.41723 11.2606 5.36778 11.2814 5.31917C11.3022 5.27056 11.3309 5.22813 11.3672 5.19188L14.7645 1.79438C14.8927 1.66619 15.0335 1.63549 15.1868 1.7023C15.3402 1.76897 15.4168 1.89153 15.4168 2.07001V8.8873C15.4168 8.95133 15.4043 9.00633 15.3791 9.0523C15.354 9.09827 15.3233 9.13945 15.287 9.17584L11.8895 12.2319Z",fill:"currentColor"})})}),w7=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_1259_26",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_1259_26)",children:r.jsx("path",{d:"M10.0577 18.7499C9.84521 18.7499 9.66708 18.678 9.52333 18.5342C9.3796 18.3904 9.30773 18.2122 9.30773 17.9996C9.30773 17.787 9.3796 17.609 9.52333 17.4654C9.66708 17.3218 9.84521 17.25 10.0577 17.25H19.75C19.9625 17.25 20.1406 17.3219 20.2844 17.4657C20.4281 17.6095 20.5 17.7877 20.5 18.0003C20.5 18.2129 20.4281 18.391 20.2844 18.5346C20.1406 18.6782 19.9625 18.7499 19.75 18.7499H10.0577ZM10.0577 12.7499C9.84521 12.7499 9.66708 12.678 9.52333 12.5342C9.3796 12.3904 9.30773 12.2122 9.30773 11.9996C9.30773 11.787 9.3796 11.609 9.52333 11.4654C9.66708 11.3218 9.84521 11.25 10.0577 11.25H19.75C19.9625 11.25 20.1406 11.3219 20.2844 11.4657C20.4281 11.6095 20.5 11.7877 20.5 12.0003C20.5 12.2129 20.4281 12.391 20.2844 12.5346C20.1406 12.6782 19.9625 12.7499 19.75 12.7499H10.0577ZM10.0577 6.74995C9.84521 6.74995 9.66708 6.67805 9.52333 6.53425C9.3796 6.39043 9.30773 6.21223 9.30773 5.99965C9.30773 5.78705 9.3796 5.60896 9.52333 5.46537C9.66708 5.32179 9.84521 5.25 10.0577 5.25H19.75C19.9625 5.25 20.1406 5.3219 20.2844 5.4657C20.4281 5.60951 20.5 5.78771 20.5 6.0003C20.5 6.2129 20.4281 6.39099 20.2844 6.53457C20.1406 6.67816 19.9625 6.74995 19.75 6.74995H10.0577ZM5.16348 19.6634C4.70603 19.6634 4.31443 19.5005 3.98868 19.1748C3.66291 18.849 3.50003 18.4574 3.50003 18C3.50003 17.5425 3.66291 17.1509 3.98868 16.8252C4.31443 16.4994 4.70603 16.3365 5.16348 16.3365C5.62093 16.3365 6.01253 16.4994 6.33828 16.8252C6.66403 17.1509 6.82691 17.5425 6.82691 18C6.82691 18.4574 6.66403 18.849 6.33828 19.1748C6.01253 19.5005 5.62093 19.6634 5.16348 19.6634ZM5.16348 13.6634C4.70603 13.6634 4.31443 13.5005 3.98868 13.1748C3.66291 12.849 3.50003 12.4574 3.50003 12C3.50003 11.5425 3.66291 11.1509 3.98868 10.8252C4.31443 10.4994 4.70603 10.3365 5.16348 10.3365C5.62093 10.3365 6.01253 10.4994 6.33828 10.8252C6.66403 11.1509 6.82691 11.5425 6.82691 12C6.82691 12.4574 6.66403 12.849 6.33828 13.1748C6.01253 13.5005 5.62093 13.6634 5.16348 13.6634ZM5.16348 7.6634C4.70603 7.6634 4.31443 7.50052 3.98868 7.17477C3.66291 6.84902 3.50003 6.45742 3.50003 5.99997C3.50003 5.54252 3.66291 5.15092 3.98868 4.82517C4.31443 4.49942 4.70603 4.33655 5.16348 4.33655C5.62093 4.33655 6.01253 4.49942 6.33828 4.82517C6.66403 5.15092 6.82691 5.54252 6.82691 5.99997C6.82691 6.45742 6.66403 6.84902 6.33828 7.17477C6.01253 7.50052 5.62093 7.6634 5.16348 7.6634Z",fill:"currentColor"})})]}),v7=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"stacks",children:[r.jsx("mask",{id:"mask0_8417_33308",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:r.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_8417_33308)",children:r.jsx("path",{id:"stacks_2",d:"M11.9998 13.1877C11.8717 13.1877 11.7477 13.1701 11.6278 13.135C11.5078 13.0996 11.3857 13.0531 11.2613 12.9955L3.38833 8.91472C3.2435 8.82755 3.13675 8.7218 3.06808 8.59747C2.99958 8.47297 2.96533 8.3383 2.96533 8.19347C2.96533 8.04864 2.99958 7.91405 3.06808 7.78972C3.13675 7.66539 3.2435 7.55964 3.38833 7.47247L11.2613 3.39172C11.3857 3.33389 11.5078 3.28739 11.6278 3.25222C11.7477 3.21689 11.8717 3.19922 11.9998 3.19922C12.128 3.19922 12.252 3.21689 12.3718 3.25222C12.4918 3.28739 12.614 3.33389 12.7383 3.39172L20.6306 7.47247C20.7754 7.55964 20.8822 7.66539 20.9508 7.78972C21.0193 7.91405 21.0536 8.04864 21.0536 8.19347C21.0536 8.3383 21.0193 8.47297 20.9508 8.59747C20.8822 8.7218 20.7754 8.82755 20.6306 8.91472L12.7383 12.9955C12.614 13.0531 12.4918 13.0996 12.3718 13.135C12.252 13.1701 12.128 13.1877 11.9998 13.1877ZM11.9998 12.2455L19.9211 8.19347L11.9998 4.14172L4.09783 8.19347L11.9998 12.2455ZM11.9998 16.0532L20.1576 11.855C20.2038 11.8255 20.3172 11.8223 20.4978 11.8455C20.6145 11.8711 20.7046 11.9253 20.7681 12.008C20.8316 12.0906 20.8633 12.1903 20.8633 12.307C20.8633 12.4006 20.8441 12.484 20.8056 12.557C20.7671 12.6301 20.7011 12.6911 20.6076 12.7397L12.7383 16.8032C12.614 16.8609 12.4918 16.9073 12.3718 16.9425C12.252 16.9778 12.128 16.9955 11.9998 16.9955C11.8717 16.9955 11.7477 16.9778 11.6278 16.9425C11.5078 16.9073 11.3857 16.8609 11.2613 16.8032L3.41133 12.7397C3.31783 12.6911 3.24858 12.6301 3.20358 12.557C3.15875 12.484 3.13633 12.4006 3.13633 12.307C3.13633 12.1903 3.17125 12.0906 3.24108 12.008C3.31108 11.9253 3.40442 11.8711 3.52108 11.8455C3.57875 11.8198 3.63542 11.8066 3.69108 11.806C3.74692 11.8053 3.80367 11.8216 3.86133 11.855L11.9998 16.0532ZM11.9998 19.8607L20.1576 15.6627C20.2038 15.6332 20.3172 15.6301 20.4978 15.6532C20.6145 15.6789 20.7046 15.7331 20.7681 15.8157C20.8316 15.8984 20.8633 15.9981 20.8633 16.1147C20.8633 16.2082 20.8441 16.2916 20.8056 16.3647C20.7671 16.4377 20.7011 16.4986 20.6076 16.5475L12.7383 20.6107C12.614 20.6686 12.4918 20.7151 12.3718 20.7502C12.252 20.7856 12.128 20.8032 11.9998 20.8032C11.8717 20.8032 11.7477 20.7856 11.6278 20.7502C11.5078 20.7151 11.3857 20.6686 11.2613 20.6107L3.41133 16.5475C3.31783 16.4986 3.24858 16.4377 3.20358 16.3647C3.15875 16.2916 3.13633 16.2082 3.13633 16.1147C3.13633 15.9981 3.17125 15.8984 3.24108 15.8157C3.31108 15.7331 3.40442 15.6789 3.52108 15.6532C3.57875 15.6276 3.63542 15.6144 3.69108 15.6137C3.74692 15.6131 3.80367 15.6294 3.86133 15.6627L11.9998 19.8607Z",fill:"currentColor"})})]})}),_7=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_9529_33",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_9529_33)",children:r.jsx("path",{d:"M4.05992 11.7788C3.80539 11.7788 3.5794 11.6954 3.38194 11.5287C3.18448 11.3621 3.06383 11.1515 3.01998 10.8971L2.19982 5.98194C2.17298 5.82084 2.21036 5.67725 2.31196 5.55115C2.41346 5.42515 2.54811 5.36215 2.71592 5.36215H11.2842C11.452 5.36215 11.5867 5.42515 11.6882 5.55115C11.7898 5.67725 11.8271 5.82084 11.8003 5.98194L10.9801 10.8971C10.9363 11.1515 10.8156 11.3621 10.6182 11.5287C10.4207 11.6954 10.1947 11.7788 9.94021 11.7788H4.05992ZM5.8334 8.42465H8.16673C8.29069 8.42465 8.39457 8.3827 8.47838 8.2988C8.56228 8.21489 8.60423 8.11096 8.60423 7.987C8.60423 7.86295 8.56228 7.75907 8.47838 7.67536C8.39457 7.59155 8.29069 7.54965 8.16673 7.54965H5.8334C5.70944 7.54965 5.60556 7.5916 5.52175 7.6755C5.43785 7.75941 5.3959 7.86334 5.3959 7.9873C5.3959 8.11135 5.43785 8.21528 5.52175 8.29909C5.60556 8.38279 5.70944 8.42465 5.8334 8.42465ZM3.50007 4.66667C3.37611 4.66667 3.27223 4.62472 3.18842 4.54082C3.10452 4.45691 3.06257 4.35298 3.06257 4.22902C3.06257 4.10497 3.10452 4.00109 3.18842 3.91738C3.27223 3.83357 3.37611 3.79167 3.50007 3.79167H10.5001C10.624 3.79167 10.7279 3.83362 10.8117 3.91752C10.8956 4.00143 10.9376 4.10536 10.9376 4.22932C10.9376 4.35337 10.8956 4.45725 10.8117 4.54096C10.7279 4.62477 10.624 4.66667 10.5001 4.66667H3.50007ZM4.66673 3.09619C4.54277 3.09619 4.43889 3.05424 4.35509 2.97034C4.27118 2.88643 4.22923 2.7825 4.22923 2.65855C4.22923 2.53449 4.27118 2.43061 4.35509 2.3469C4.43889 2.26309 4.54277 2.22119 4.66673 2.22119H9.3334C9.45736 2.22119 9.56124 2.26314 9.64505 2.34705C9.72895 2.43095 9.7709 2.53488 9.7709 2.65884C9.7709 2.78289 9.72895 2.88677 9.64505 2.97048C9.56124 3.05429 9.45736 3.09619 9.3334 3.09619H4.66673Z",fill:"currentColor"})})]}),k7=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 50 40",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M39.6982 23.8981C38.314 33.2849 30.2251 40.4893 20.4536 40.4893C17.5648 40.4893 14.8231 39.8596 12.3582 38.7301L1.90313 41.3438C1.44763 41.4577 1.03503 41.0451 1.14891 40.5896L3.60474 30.7663C1.94817 27.904 1 24.5806 1 21.0357C1 10.2917 9.70969 1.58203 20.4536 1.58203C22.4575 1.58203 24.3907 1.88502 26.2097 2.44769C24.8111 4.62659 24 7.21857 24 10C24 12.0989 24.4619 14.0899 25.2895 15.877H13.2863C12.1553 15.877 11.2385 16.7938 11.2385 17.9247C11.2385 19.0556 12.1553 19.9725 13.2863 19.9725H27.6205C27.7906 19.9725 27.9557 19.9517 28.1137 19.9127C30.6462 22.4384 34.1407 24 38 24C38.5748 24 39.1415 23.9654 39.6982 23.8981ZM13.2863 24.0664C12.1553 24.0664 11.2385 24.9832 11.2385 26.1142C11.2385 27.2451 12.1553 28.1619 13.2863 28.1619H21.4773C22.6082 28.1619 23.525 27.2451 23.525 26.1142C23.525 24.9832 22.6082 24.0664 21.4773 24.0664H13.2863Z",fill:"currentColor"}),r.jsx("circle",{cx:"38",cy:"10",r:"10",fill:"currentColor"}),r.jsx("path",{d:"M34 9.5L37 12.5L42.5 7",stroke:"#23252F","stroke-width":"2.5","stroke-linecap":"round","stroke-linejoin":"round"})]}),j7=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_7541_22378",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"15",children:r.jsx("rect",{y:"0.25",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_7541_22378)",children:r.jsx("path",{d:"M7.46552 7.25L3.91958 3.8184C3.87622 3.77503 3.84409 3.72778 3.82319 3.67665C3.80219 3.6256 3.79169 3.57281 3.79169 3.51827V3.28319C3.79169 3.1674 3.83092 3.07042 3.90937 2.99225C3.98793 2.91408 4.0852 2.875 4.20119 2.875H9.59133C9.76274 2.875 9.90842 2.93503 10.0284 3.0551C10.1484 3.17527 10.2084 3.3211 10.2084 3.4926C10.2084 3.6642 10.1484 3.81076 10.0284 3.93229C9.90842 4.05382 9.76274 4.11458 9.59133 4.11458H5.79748L8.61542 6.872C8.72304 6.97593 8.77685 7.10154 8.77685 7.24883C8.77685 7.39622 8.72304 7.52261 8.61542 7.628L5.79748 10.3911H9.59133C9.76274 10.3911 9.90842 10.4511 10.0284 10.5712C10.1484 10.6913 10.2084 10.8371 10.2084 11.0087C10.2084 11.1802 10.1484 11.3258 10.0284 11.4455C9.90842 11.5652 9.76274 11.625 9.59133 11.625H4.08554C4.00455 11.625 3.93533 11.5963 3.87787 11.5388C3.82042 11.4814 3.79169 11.4121 3.79169 11.3311V10.932C3.79169 10.8899 3.79849 10.8512 3.8121 10.8158C3.82571 10.7803 3.84958 10.7464 3.88371 10.7141L7.46552 7.25Z",fill:"currentColor"})})]}),y7=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 22 22",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_5577_416",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"22",height:"22",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_5577_416)",children:r.jsx("path",{d:"M11 17.6634C10.6219 17.6634 10.2982 17.5287 10.0289 17.2595C9.75964 16.9902 9.625 16.6665 9.625 16.2884C9.625 15.9103 9.75964 15.5866 10.0289 15.3173C10.2982 15.0481 10.6219 14.9134 11 14.9134C11.3781 14.9134 11.7018 15.0481 11.971 15.3173C12.2403 15.5866 12.375 15.9103 12.375 16.2884C12.375 16.6665 12.2403 16.9902 11.971 17.2595C11.7018 17.5287 11.3781 17.6634 11 17.6634ZM11 12.3749C10.6219 12.3749 10.2982 12.2403 10.0289 11.971C9.75964 11.7018 9.625 11.3781 9.625 11C9.625 10.6218 9.75964 10.2982 10.0289 10.0289C10.2982 9.75962 10.6219 9.62498 11 9.62498C11.3781 9.62498 11.7018 9.75962 11.971 10.0289C12.2403 10.2982 12.375 10.6218 12.375 11C12.375 11.3781 12.2403 11.7018 11.971 11.971C11.7018 12.2403 11.3781 12.3749 11 12.3749ZM11 7.08648C10.6219 7.08648 10.2982 6.95184 10.0289 6.68257C9.75964 6.41332 9.625 6.08963 9.625 5.7115C9.625 5.33339 9.75964 5.0097 10.0289 4.74043C10.2982 4.47118 10.6219 4.33655 11 4.33655C11.3781 4.33655 11.7018 4.47118 11.971 4.74043C12.2403 5.0097 12.375 5.33339 12.375 5.7115C12.375 6.08963 12.2403 6.41332 11.971 6.68257C11.7018 6.95184 11.3781 7.08648 11 7.08648Z",fill:"currentColor"})})]}),L7=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"Twitter",children:[r.jsx("mask",{id:"mask0_1506_167",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"16",height:"16",children:r.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_1506_167)",children:r.jsx("g",{id:"X",children:r.jsx("path",{id:"path1009",d:"M2.0317 2L7.05085 8.71109L2 14.1675H3.13674L7.55875 9.39033L11.1316 14.1675H15L9.69845 7.07891L14.3997 2H13.263L9.19054 6.39967L5.90008 2H2.0317ZM3.70336 2.83733H5.48051L13.3281 13.33H11.5509L3.70336 2.83733Z",fill:"currentColor"})})})]})}),H7=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"Video",children:[r.jsx("mask",{id:"mask0_1506_153",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"16",height:"16",children:r.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_1506_153)",children:r.jsx("path",{id:"Subtract","fill-rule":"evenodd","clip-rule":"evenodd",d:"M14.3782 3.03719C15.0725 3.22309 15.6201 3.76987 15.8053 4.46427C16.1429 5.72367 16.1429 8.35001 16.1429 8.35001C16.1429 8.35001 16.1429 10.9773 15.8053 12.2358C15.6201 12.9302 15.0725 13.4769 14.3782 13.6628C13.1197 14 8.07143 14 8.07143 14C8.07143 14 3.02403 14 1.76471 13.6628C1.07038 13.4769 0.522808 12.9302 0.337533 12.2358C0 10.9764 0 8.35001 0 8.35001C0 8.35001 0 5.72367 0.337533 4.46427C0.522808 3.76987 1.07038 3.22309 1.76471 3.03719C3.02312 2.70001 8.07143 2.70001 8.07143 2.70001C8.07143 2.70001 13.1197 2.70001 14.3782 3.03719ZM10.4931 8.35003L6.45735 5.9286V10.7715L10.4931 8.35003Z",fill:"currentColor"})})]})}),M7=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M14.0716 15L10.8994 11.7764C10.437 11.9597 9.96181 12.0919 9.47381 12.1732C8.98581 12.2545 8.49002 12.2952 7.98643 12.2952C6.33597 12.2952 4.82448 11.8457 3.45194 10.9466C2.07941 10.0476 0.991584 8.86271 0.188459 7.39193C0.123124 7.27666 0.0753836 7.15933 0.045238 7.03994C0.0150793 6.92055 0 6.7991 0 6.67559C0 6.55208 0.0163338 6.42935 0.0490013 6.30739C0.0816688 6.18543 0.13067 6.06938 0.196005 5.95925C0.508607 5.42714 0.84081 4.91226 1.19261 4.41462C1.54443 3.91699 1.95353 3.47673 2.41992 3.09386L0.24877 0.846015L1.07501 0L14.8978 14.154L14.0716 15ZM7.98643 9.94854C8.16032 9.94854 8.32642 9.93799 8.48473 9.91689C8.64305 9.89579 8.7976 9.84973 8.94838 9.77871L4.95591 5.69059C4.89158 5.84498 4.84786 6.00324 4.82475 6.16535C4.80162 6.32745 4.79005 6.49753 4.79005 6.67559C4.79005 7.58645 5.10039 8.35966 5.72108 8.99521C6.34176 9.63076 7.09688 9.94854 7.98643 9.94854ZM13.4384 10.3561L10.9792 7.85816C11.0456 7.66673 11.0961 7.47375 11.1308 7.27922C11.1655 7.0847 11.1828 6.88349 11.1828 6.67559C11.1828 5.76473 10.8725 4.99152 10.2518 4.35597C9.63109 3.72042 8.87598 3.40264 7.98643 3.40264C7.78339 3.40264 7.58689 3.42168 7.39692 3.45976C7.20694 3.49784 7.02099 3.56011 6.83907 3.64657L4.87751 1.64575C5.37606 1.44402 5.88441 1.29529 6.40257 1.19957C6.92071 1.10385 7.44867 1.05599 7.98643 1.05599C9.64191 1.05599 11.1604 1.50756 12.542 2.41072C13.9236 3.31387 15.0134 4.50598 15.8115 5.98705C15.8718 6.08894 15.9183 6.19829 15.951 6.31511C15.9837 6.43192 16 6.55208 16 6.67559C16 6.7991 15.9857 6.91926 15.957 7.03607C15.9284 7.15289 15.8839 7.26225 15.8236 7.36414C15.52 7.94669 15.1738 8.49038 14.7848 8.99521C14.3958 9.50005 13.947 9.95369 13.4384 10.3561ZM10.0912 6.95657L7.73162 4.54816C8.06131 4.48126 8.38246 4.50545 8.69506 4.62072C9.00767 4.736 9.27754 4.9156 9.5047 5.15952C9.7369 5.40036 9.90451 5.67723 10.0075 5.99012C10.1106 6.30301 10.1385 6.62516 10.0912 6.95657Z",fill:"currentColor"})}),V7=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 18 13",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M9.00204 9.98073C9.94628 9.98073 10.7483 9.65024 11.408 8.98927C12.0677 8.32829 12.3976 7.52567 12.3976 6.58142C12.3976 5.63718 12.0671 4.8352 11.4061 4.17548C10.7451 3.51576 9.9425 3.1859 8.99825 3.1859C8.05401 3.1859 7.25203 3.51638 6.59231 4.17735C5.93259 4.83834 5.60273 5.64096 5.60273 6.58521C5.60273 7.52944 5.93321 8.33142 6.59419 8.99115C7.25517 9.65087 8.05779 9.98073 9.00204 9.98073ZM9.00014 8.83331C8.37514 8.83331 7.84389 8.61456 7.40639 8.17706C6.96889 7.73956 6.75014 7.20831 6.75014 6.58331C6.75014 5.95831 6.96889 5.42706 7.40639 4.98956C7.84389 4.55206 8.37514 4.33331 9.00014 4.33331C9.62514 4.33331 10.1564 4.55206 10.5939 4.98956C11.0314 5.42706 11.2501 5.95831 11.2501 6.58331C11.2501 7.20831 11.0314 7.73956 10.5939 8.17706C10.1564 8.61456 9.62514 8.83331 9.00014 8.83331ZM9.00129 12.4166C7.08494 12.4166 5.33884 11.888 3.76298 10.8309C2.18713 9.77374 1.02688 8.35788 0.282227 6.58331C1.02688 4.80874 2.18675 3.39288 3.76185 2.33573C5.33694 1.27858 7.08265 0.75 8.999 0.75C10.9153 0.75 12.6614 1.27858 14.2373 2.33573C15.8132 3.39288 16.9734 4.80874 17.7181 6.58331C16.9734 8.35788 15.8135 9.77374 14.2384 10.8309C12.6634 11.888 10.9176 12.4166 9.00129 12.4166Z",fill:"currentColor"})}),Z7=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"volume_up",children:[r.jsx("mask",{id:"mask0_1483_75386",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:r.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_1483_75386)",children:r.jsx("path",{id:"volume_up_2",d:"M14.0384 20.1095V18.5595C15.4807 18.1005 16.6425 17.2672 17.5239 16.0595C18.4053 14.8518 18.8461 13.4903 18.8461 11.9749C18.8461 10.4595 18.4053 9.09799 17.5239 7.89031C16.6425 6.68261 15.4807 5.84927 14.0384 5.39031V3.84033C15.8999 4.33905 17.4165 5.33841 18.5883 6.83841C19.7601 8.33839 20.346 10.0506 20.346 11.9749C20.346 13.8993 19.7601 15.6114 18.5883 17.1114C17.4165 18.6114 15.8999 19.6108 14.0384 20.1095ZM3.65381 14.4999V9.49993H7.36531L11.6537 5.21153V18.7883L7.36531 14.4999H3.65381ZM14.0384 15.6537V8.29608C14.7127 8.66275 15.2339 9.17909 15.6018 9.84511C15.9698 10.5111 16.1537 11.2294 16.1537 11.9999C16.1537 12.7602 15.9682 13.4675 15.597 14.122C15.2259 14.7765 14.7063 15.2871 14.0384 15.6537Z",fill:"currentColor"})})]})}),N7={AddCircleIcon:P6,AddContentIcon:B6,AddLinkIcon:N6,AddSourceIcon:R6,AiPauseIcon:T6,AiPlayIcon:U6,AiSummaryIcon:O6,AndroidIcon:$6,ArrowBackIcon:A6,ArrowForwardIcon:z6,ArrowRight:F6,AudioIcon:D6,BitcoinIcon:q6,BoostIcon:G6,BrowseGalleryIcon:W6,BubbleChartIcon:A5,BudgetIcon:S6,BuildIcon:X6,CalendarIcon:Y6,CameraCenterIcon:d3,CancelIcon:K6,CheckIcon:Q6,CheckedIcon:J6,ChevronDownIcon:e9,ChevronLeftIcon:t9,ChevronRightIcon:n9,ChevronUpIcon:r9,ChipIcon:i9,ClearIcon:C2,CloseIcon:s9,ColorPickerIcon:o9,CommunitiesIcon:z5,CompassIcon:l9,ConstructionIcon:C9,ContentIcon:a9,CopyIcon:c9,CorporationIcon:h9,CreateEdgeIcon:u9,DefaultShowIcon:d9,DeleteIcon:f9,DeleteNodeIcon:p9,DesignServicesIcon:x9,DocumentIcon:g9,DownloadIcon:m9,EditIcon:w9,EditNodeIcon:v9,EditTopicIcon:_9,EpisodeIcon:k9,EventIcon:j9,ExitFullScreen:y9,ExploreIcon:L9,FamilyHistoryIcon:H9,FeedbackIcon:M9,FilterOffIcon:V9,FingerprintIcon:Z9,FlipIcon:b9,FortIcon:E9,FullScreenIcon:S9,FunctionIcon:I9,GlobeIcon:P9,GrainIcon:F5,HandymanIcon:B9,HardwareIcon:N9,HashTag:R9,HashtagIcon:T9,HelpIcon:U9,HomeIcon:O9,InfoIcon:y3,JoystickIcon:$9,LinkIcon:A9,MenuIcon:z9,MergeIcon:F9,MoneyIcon:D9,MuteVolumeIcon:q9,NodeCircleIcon:G9,NodesIcon:I6,NotesIcon:W9,OrganizationIcon:X9,PauseIcon:p3,PersonAdd:Y9,PersonIcon:K9,PhoneIcon:Q9,PlaceIcon:J9,PlayIcon:x3,PlusIcon:e7,PropertyHide:t7,PropertyShow:n7,PublicIcon:D5,QrCodeIcon:r7,ReloadIcon:i7,RobotIcon:s7,SaveIcon:o7,ScheduleIcon:l7,SchoolIcon:C7,SearchFilterCloseIcon:a7,SearchFilterIcon:c7,SearchIcon:h7,SensorsIcon:u7,SentimentDataIcon:d7,SettingsIcon:f7,ShieldPersonIcon:p7,SortFilterIcon:x7,SoundIcon:g7,SourcesIcon:m7,SourcesTableIcon:w7,StackIcon:v7,StorageIcon:_7,SucessFeedBackIcon:k7,SumFunctionIcon:j7,ThreeDotsIcons:y7,TwitterIcon:L7,VideoIcon:H7,VisibilityOff:M7,VisibilityOn:V7,VolumeIcon:Z7};export{h7 as $,V6 as A,S6 as B,z5 as C,g9 as D,L9 as E,M9 as F,L3 as G,U9 as H,N7 as I,s1 as J,t3 as K,P1 as L,z9 as M,I6 as N,P7 as O,E7 as P,K2 as Q,s7 as R,w7 as S,d6 as T,H3 as U,Q2 as V,z1 as W,e3 as X,F1 as Y,b5 as Z,z3 as _,B7 as a,v7 as a0,G6 as a1,A9 as a2,P9 as a3,T9 as a4,m7 as a5,r9 as a6,e9 as a7,O6 as a8,T6 as a9,n7 as aA,t7 as aB,y7 as aC,V7 as aD,M7 as aE,x7 as aF,_9 as aG,v9 as aH,p9 as aI,P2 as aJ,t2 as aK,H9 as aL,u9 as aM,k7 as aN,M3 as aO,R5 as aP,t5 as aQ,g7 as aR,A5 as aS,U6 as aa,A6 as ab,Q6 as ac,W6 as ad,m9 as ae,i7 as af,d7 as ag,R9 as ah,a7 as ai,c7 as aj,W9 as ak,c9 as al,l7 as am,q9 as an,Z7 as ao,S9 as ap,y9 as aq,t9 as ar,n9 as as,a9 as at,V9 as au,B3 as av,f9 as aw,G9 as ax,b9 as ay,F6 as az,g6 as b,m6 as c,p3 as d,x3 as e,J2 as f,e7 as g,u1 as h,R6 as i,B6 as j,f7 as k,z6 as l,u3 as m,S7 as n,F9 as o,P6 as p,C9 as q,w9 as r,s9 as s,I7 as t,C6 as u,$5 as v,r6 as w,A0 as x,D2 as y,i6 as z}; diff --git a/build/assets/index-1c3cbad2.js b/build/assets/index-b8439fd8.js similarity index 92% rename from build/assets/index-1c3cbad2.js rename to build/assets/index-b8439fd8.js index 36c080a23..6e1b4b944 100644 --- a/build/assets/index-1c3cbad2.js +++ b/build/assets/index-b8439fd8.js @@ -1,4 +1,4 @@ -import{s as i,a as t,F as c,j as e,e as j,r as l,u as $,B as w,bs as C,bt as I,aX as R}from"./index-3506c528.js";import{aI as z,h as D,m as E}from"./index-ccbb14cf.js";import{S as L}from"./Skeleton-c3abb4f1.js";import{C as T}from"./ClipLoader-273b2bbd.js";const G=({nodeName:p})=>e.jsx(c,{children:e.jsxs(c,{align:"center",direction:"column",justify:"space-between",children:[e.jsx(A,{children:e.jsx(z,{})}),e.jsxs(M,{children:["Are you sure you want to delete ",p||"this item","?"]})]})}),M=i(c)` +import{s as i,a as t,F as c,j as e,e as j,r as l,u as $,B as w,bs as C,bt as I,aX as R}from"./index-6541aa03.js";import{aI as z,h as D,m as E}from"./index-ad617d4b.js";import{S as L}from"./Skeleton-851daffa.js";import{C as T}from"./ClipLoader-708ab7a4.js";const G=({nodeName:p})=>e.jsx(c,{children:e.jsxs(c,{align:"center",direction:"column",justify:"space-between",children:[e.jsx(A,{children:e.jsx(z,{})}),e.jsxs(M,{children:["Are you sure you want to delete ",p||"this item","?"]})]})}),M=i(c)` color: ${t.white}; font-family: 'Barlow'; font-size: 20px; diff --git a/build/assets/index-831eec8c.js b/build/assets/index-badf8d31.js similarity index 99% rename from build/assets/index-831eec8c.js rename to build/assets/index-badf8d31.js index 7ee945b50..cff902513 100644 --- a/build/assets/index-831eec8c.js +++ b/build/assets/index-badf8d31.js @@ -1,4 +1,4 @@ -import{ar as He,a9 as Tr,j as V,s as zn,a as Bn,r as Un,e as vt,k as zr,b as Lr,u as Or,A as Dr,F as fe,T as Ft,B as vr,c as Fr,aX as Rr}from"./index-3506c528.js";import{d as Br,aR as Nr,aS as Mr}from"./index-ccbb14cf.js";function _r(n,e){const t=e||{};return(n[n.length-1]===""?[...n,""]:n).join((t.padRight?" ":"")+","+(t.padLeft===!1?"":" ")).trim()}const jr=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Hr=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Ur={};function Ue(n,e){return((e||Ur).jsx?Hr:jr).test(n)}const Vr=/[ \t\n\f\r]/g;function qr(n){return typeof n=="object"?n.type==="text"?Ve(n.value):!1:Ve(n)}function Ve(n){return n.replace(Vr,"")===""}class jn{constructor(e,t,r){this.property=e,this.normal=t,r&&(this.space=r)}}jn.prototype.property={};jn.prototype.normal={};jn.prototype.space=null;function Rt(n,e){const t={},r={};let i=-1;for(;++i4&&t.slice(0,4)==="data"&&Yr.test(e)){if(e.charAt(4)==="-"){const l=e.slice(5).replace($e,Zr);r="data"+l.charAt(0).toUpperCase()+l.slice(1)}else{const l=e.slice(4);if(!$e.test(l)){let o=l.replace(Kr,Jr);o.charAt(0)!=="-"&&(o="-"+o),e="data"+o}}i=Se}return new i(r,e)}function Jr(n){return"-"+n.toLowerCase()}function Zr(n){return n.charAt(1).toUpperCase()}const ni={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},ei=Rt([Mt,Nt,Ht,Ut,Qr],"html"),Ce=Rt([Mt,Nt,Ht,Ut,Xr],"svg");function ti(n){return n.join(" ").trim()}var Vt={},We=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,ri=/\n/g,ii=/^\s*/,li=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,oi=/^:\s*/,ai=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,ui=/^[;\s]*/,si=/^\s+|\s+$/g,ci=` +import{ar as He,a9 as Tr,j as V,s as zn,a as Bn,r as Un,e as vt,k as zr,b as Lr,u as Or,A as Dr,F as fe,T as Ft,B as vr,c as Fr,aX as Rr}from"./index-6541aa03.js";import{d as Br,aR as Nr,aS as Mr}from"./index-ad617d4b.js";function _r(n,e){const t=e||{};return(n[n.length-1]===""?[...n,""]:n).join((t.padRight?" ":"")+","+(t.padLeft===!1?"":" ")).trim()}const jr=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Hr=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Ur={};function Ue(n,e){return((e||Ur).jsx?Hr:jr).test(n)}const Vr=/[ \t\n\f\r]/g;function qr(n){return typeof n=="object"?n.type==="text"?Ve(n.value):!1:Ve(n)}function Ve(n){return n.replace(Vr,"")===""}class jn{constructor(e,t,r){this.property=e,this.normal=t,r&&(this.space=r)}}jn.prototype.property={};jn.prototype.normal={};jn.prototype.space=null;function Rt(n,e){const t={},r={};let i=-1;for(;++i4&&t.slice(0,4)==="data"&&Yr.test(e)){if(e.charAt(4)==="-"){const l=e.slice(5).replace($e,Zr);r="data"+l.charAt(0).toUpperCase()+l.slice(1)}else{const l=e.slice(4);if(!$e.test(l)){let o=l.replace(Kr,Jr);o.charAt(0)!=="-"&&(o="-"+o),e="data"+o}}i=Se}return new i(r,e)}function Jr(n){return"-"+n.toLowerCase()}function Zr(n){return n.charAt(1).toUpperCase()}const ni={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},ei=Rt([Mt,Nt,Ht,Ut,Qr],"html"),Ce=Rt([Mt,Nt,Ht,Ut,Xr],"svg");function ti(n){return n.join(" ").trim()}var Vt={},We=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,ri=/\n/g,ii=/^\s*/,li=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,oi=/^:\s*/,ai=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,ui=/^[;\s]*/,si=/^\s+|\s+$/g,ci=` `,Qe="/",Xe="*",Sn="",pi="comment",fi="declaration",hi=function(n,e){if(typeof n!="string")throw new TypeError("First argument must be a string");if(!n)return[];e=e||{};var t=1,r=1;function i(y){var k=y.match(ri);k&&(t+=k.length);var I=y.lastIndexOf(ci);r=~I?y.length-I:r+y.length}function l(){var y={line:t,column:r};return function(k){return k.position=new o(y),s(),k}}function o(y){this.start=y,this.end={line:t,column:r},this.source=e.source}o.prototype.content=n;function a(y){var k=new Error(e.source+":"+t+":"+r+": "+y);if(k.reason=y,k.filename=e.source,k.line=t,k.column=r,k.source=n,!e.silent)throw k}function u(y){var k=y.exec(n);if(k){var I=k[0];return i(I),n=n.slice(I.length),k}}function s(){u(ii)}function c(y){var k;for(y=y||[];k=f();)k!==!1&&y.push(k);return y}function f(){var y=l();if(!(Qe!=n.charAt(0)||Xe!=n.charAt(1))){for(var k=2;Sn!=n.charAt(k)&&(Xe!=n.charAt(k)||Qe!=n.charAt(k+1));)++k;if(k+=2,Sn===n.charAt(k-1))return a("End of comment missing");var I=n.slice(2,k-2);return r+=2,i(I),n=n.slice(k),r+=2,y({type:pi,comment:I})}}function d(){var y=l(),k=u(li);if(k){if(f(),!u(oi))return a("property missing ':'");var I=u(ai),w=y({type:fi,property:Ye(k[0].replace(We,Sn)),value:I?Ye(I[0].replace(We,Sn)):Sn});return u(ui),w}}function p(){var y=[];c(y);for(var k;k=d();)k!==!1&&(y.push(k),c(y));return y}return s(),p()};function Ye(n){return n?n.replace(si,Sn):Sn}var mi=He&&He.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(Vt,"__esModule",{value:!0});var di=mi(hi);function gi(n,e){var t=null;if(!n||typeof n!="string")return t;var r=(0,di.default)(n),i=typeof e=="function";return r.forEach(function(l){if(l.type==="declaration"){var o=l.property,a=l.value;i?e(o,a,l):a&&(t=t||{},t[o]=a)}}),t}var Ke=Vt.default=gi;const yi=Ke.default||Ke,qt=$t("end"),Ee=$t("start");function $t(n){return e;function e(t){const r=t&&t.position&&t.position[n]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function xi(n){const e=Ee(n),t=qt(n);if(e&&t)return{start:e,end:t}}function Nn(n){return!n||typeof n!="object"?"":"position"in n||"type"in n?Ge(n.position):"start"in n||"end"in n?Ge(n):"line"in n||"column"in n?de(n):""}function de(n){return Je(n&&n.line)+":"+Je(n&&n.column)}function Ge(n){return de(n&&n.start)+"-"+de(n&&n.end)}function Je(n){return n&&typeof n=="number"?n:1}class K extends Error{constructor(e,t,r){super(),typeof t=="string"&&(r=t,t=void 0);let i="",l={},o=!1;if(t&&("line"in t&&"column"in t?l={place:t}:"start"in t&&"end"in t?l={place:t}:"type"in t?l={ancestors:[t],place:t.position}:l={...t}),typeof e=="string"?i=e:!l.cause&&e&&(o=!0,i=e.message,l.cause=e),!l.ruleId&&!l.source&&typeof r=="string"){const u=r.indexOf(":");u===-1?l.ruleId=r:(l.source=r.slice(0,u),l.ruleId=r.slice(u+1))}if(!l.place&&l.ancestors&&l.ancestors){const u=l.ancestors[l.ancestors.length-1];u&&(l.place=u.position)}const a=l.place&&"start"in l.place?l.place.start:l.place;this.ancestors=l.ancestors||void 0,this.cause=l.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file,this.message=i,this.line=a?a.line:void 0,this.name=Nn(l.place)||"1:1",this.place=l.place||void 0,this.reason=this.message,this.ruleId=l.ruleId||void 0,this.source=l.source||void 0,this.stack=o&&l.cause&&typeof l.cause.stack=="string"?l.cause.stack:"",this.actual,this.expected,this.note,this.url}}K.prototype.file="";K.prototype.name="";K.prototype.reason="";K.prototype.message="";K.prototype.stack="";K.prototype.column=void 0;K.prototype.line=void 0;K.prototype.ancestors=void 0;K.prototype.cause=void 0;K.prototype.fatal=void 0;K.prototype.place=void 0;K.prototype.ruleId=void 0;K.prototype.source=void 0;const Ie={}.hasOwnProperty,ki=new Map,bi=/[A-Z]/g,wi=/-([a-z])/g,Si=new Set(["table","tbody","thead","tfoot","tr"]),Ci=new Set(["td","th"]),Wt="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Ei(n,e){if(!e||e.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const t=e.filePath||void 0;let r;if(e.development){if(typeof e.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=Di(t,e.jsxDEV)}else{if(typeof e.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof e.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=Oi(t,e.jsx,e.jsxs)}const i={Fragment:e.Fragment,ancestors:[],components:e.components||{},create:r,elementAttributeNameCase:e.elementAttributeNameCase||"react",evaluater:e.createEvaluater?e.createEvaluater():void 0,filePath:t,ignoreInvalidStyle:e.ignoreInvalidStyle||!1,passKeys:e.passKeys!==!1,passNode:e.passNode||!1,schema:e.space==="svg"?Ce:ei,stylePropertyNameCase:e.stylePropertyNameCase||"dom",tableCellAlignToStyle:e.tableCellAlignToStyle!==!1},l=Qt(i,n,void 0);return l&&typeof l!="string"?l:i.create(n,i.Fragment,{children:l||void 0},void 0)}function Qt(n,e,t){if(e.type==="element")return Ii(n,e,t);if(e.type==="mdxFlowExpression"||e.type==="mdxTextExpression")return Ai(n,e);if(e.type==="mdxJsxFlowElement"||e.type==="mdxJsxTextElement")return Ti(n,e,t);if(e.type==="mdxjsEsm")return Pi(n,e);if(e.type==="root")return zi(n,e,t);if(e.type==="text")return Li(n,e)}function Ii(n,e,t){const r=n.schema;let i=r;e.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=Ce,n.schema=i),n.ancestors.push(e);const l=Yt(n,e.tagName,!1),o=vi(n,e);let a=Pe(n,e);return Si.has(e.tagName)&&(a=a.filter(function(u){return typeof u=="string"?!qr(u):!0})),Xt(n,o,l,e),Ae(o,a),n.ancestors.pop(),n.schema=r,n.create(e,l,o,t)}function Ai(n,e){if(e.data&&e.data.estree&&n.evaluater){const r=e.data.estree.body[0];return r.type,n.evaluater.evaluateExpression(r.expression)}_n(n,e.position)}function Pi(n,e){if(e.data&&e.data.estree&&n.evaluater)return n.evaluater.evaluateProgram(e.data.estree);_n(n,e.position)}function Ti(n,e,t){const r=n.schema;let i=r;e.name==="svg"&&r.space==="html"&&(i=Ce,n.schema=i),n.ancestors.push(e);const l=e.name===null?n.Fragment:Yt(n,e.name,!0),o=Fi(n,e),a=Pe(n,e);return Xt(n,o,l,e),Ae(o,a),n.ancestors.pop(),n.schema=r,n.create(e,l,o,t)}function zi(n,e,t){const r={};return Ae(r,Pe(n,e)),n.create(e,n.Fragment,r,t)}function Li(n,e){return e.value}function Xt(n,e,t,r){typeof t!="string"&&t!==n.Fragment&&n.passNode&&(e.node=r)}function Ae(n,e){if(e.length>0){const t=e.length>1?e:e[0];t&&(n.children=t)}}function Oi(n,e,t){return r;function r(i,l,o,a){const s=Array.isArray(o.children)?t:e;return a?s(l,o,a):s(l,o)}}function Di(n,e){return t;function t(r,i,l,o){const a=Array.isArray(l.children),u=Ee(r);return e(i,l,o,a,{columnNumber:u?u.column-1:void 0,fileName:n,lineNumber:u?u.line:void 0},void 0)}}function vi(n,e){const t={};let r,i;for(i in e.properties)if(i!=="children"&&Ie.call(e.properties,i)){const l=Ri(n,i,e.properties[i]);if(l){const[o,a]=l;n.tableCellAlignToStyle&&o==="align"&&typeof a=="string"&&Ci.has(e.tagName)?r=a:t[o]=a}}if(r){const l=t.style||(t.style={});l[n.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return t}function Fi(n,e){const t={};for(const r of e.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&n.evaluater){const l=r.data.estree.body[0];l.type;const o=l.expression;o.type;const a=o.properties[0];a.type,Object.assign(t,n.evaluater.evaluateExpression(a.argument))}else _n(n,e.position);else{const i=r.name;let l;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&n.evaluater){const a=r.value.data.estree.body[0];a.type,l=n.evaluater.evaluateExpression(a.expression)}else _n(n,e.position);else l=r.value===null?!0:r.value;t[i]=l}return t}function Pe(n,e){const t=[];let r=-1;const i=n.passKeys?new Map:ki;for(;++ri?0:i+e:e=e>i?i:e,t=t>0?t:0,r.length<1e4)o=Array.from(r),o.unshift(e,t),n.splice(...o);else for(t&&n.splice(e,t);l0?(pn(n,n.length,0,e),n):e}const et={}.hasOwnProperty;function qi(n){const e={};let t=-1;for(;++t13&&t<32||t>126&&t<160||t>55295&&t<57344||t>64975&&t<65008||(t&65535)===65535||(t&65535)===65534||t>1114111?"�":String.fromCodePoint(t)}function Tn(n){return n.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Qi=xn(/\p{P}/u),cn=xn(/[A-Za-z]/),en=xn(/[\dA-Za-z]/),Xi=xn(/[#-'*+\--9=?A-Z^-~]/);function ge(n){return n!==null&&(n<32||n===127)}const ye=xn(/\d/),Yi=xn(/[\dA-Fa-f]/),Jt=xn(/[!-/:-@[-`{-~]/);function T(n){return n!==null&&n<-2}function J(n){return n!==null&&(n<0||n===32)}function B(n){return n===-2||n===-1||n===32}function Ki(n){return Jt(n)||Qi(n)}const Gi=xn(/\s/);function xn(n){return e;function e(t){return t!==null&&t>-1&&n.test(String.fromCharCode(t))}}function On(n){const e=[];let t=-1,r=0,i=0;for(;++t55295&&l<57344){const a=n.charCodeAt(t+1);l<56320&&a>56319&&a<57344?(o=String.fromCharCode(l,a),i=1):o="�"}else o=String.fromCharCode(l);o&&(e.push(n.slice(r,t),encodeURIComponent(o)),r=t+i+1,o=""),i&&(t+=i,i=0)}return e.join("")+n.slice(r)}function j(n,e,t,r){const i=r?r-1:Number.POSITIVE_INFINITY;let l=0;return o;function o(u){return B(u)?(n.enter(t),a(u)):e(u)}function a(u){return B(u)&&l++o))return;const R=e.events.length;let q=R,M,H;for(;q--;)if(e.events[q][0]==="exit"&&e.events[q][1].type==="chunkFlow"){if(M){H=e.events[q][1].end;break}M=!0}for(w(r),x=R;xC;){const O=t[D];e.containerState=O[1],O[0].exit.call(e,n)}t.length=C}function E(){i.write([null]),l=void 0,i=void 0,e.containerState._closeFlow=void 0}}function tl(n,e,t){return j(n,n.attempt(this.parser.constructs.document,e,t),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function rt(n){if(n===null||J(n)||Gi(n))return 1;if(Ki(n))return 2}function ze(n,e,t){const r=[];let i=-1;for(;++i1&&n[t][1].end.offset-n[t][1].start.offset>1?2:1;const f=Object.assign({},n[r][1].end),d=Object.assign({},n[t][1].start);it(f,-u),it(d,u),o={type:u>1?"strongSequence":"emphasisSequence",start:f,end:Object.assign({},n[r][1].end)},a={type:u>1?"strongSequence":"emphasisSequence",start:Object.assign({},n[t][1].start),end:d},l={type:u>1?"strongText":"emphasisText",start:Object.assign({},n[r][1].end),end:Object.assign({},n[t][1].start)},i={type:u>1?"strong":"emphasis",start:Object.assign({},o.start),end:Object.assign({},a.end)},n[r][1].end=Object.assign({},o.start),n[t][1].start=Object.assign({},a.end),s=[],n[r][1].end.offset-n[r][1].start.offset&&(s=tn(s,[["enter",n[r][1],e],["exit",n[r][1],e]])),s=tn(s,[["enter",i,e],["enter",o,e],["exit",o,e],["enter",l,e]]),s=tn(s,ze(e.parser.constructs.insideSpan.null,n.slice(r+1,t),e)),s=tn(s,[["exit",l,e],["enter",a,e],["exit",a,e],["exit",i,e]]),n[t][1].end.offset-n[t][1].start.offset?(c=2,s=tn(s,[["enter",n[t][1],e],["exit",n[t][1],e]])):c=0,pn(n,r-1,t-r+3,s),t=r+s.length-c-2;break}}for(t=-1;++t0&&B(x)?j(n,E,"linePrefix",l+1)(x):E(x)}function E(x){return x===null||T(x)?n.check(lt,k,D)(x):(n.enter("codeFlowValue"),C(x))}function C(x){return x===null||T(x)?(n.exit("codeFlowValue"),E(x)):(n.consume(x),C)}function D(x){return n.exit("codeFenced"),e(x)}function O(x,R,q){let M=0;return H;function H(F){return x.enter("lineEnding"),x.consume(F),x.exit("lineEnding"),P}function P(F){return x.enter("codeFencedFence"),B(F)?j(x,A,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(F):A(F)}function A(F){return F===a?(x.enter("codeFencedFenceSequence"),U(F)):q(F)}function U(F){return F===a?(M++,x.consume(F),U):M>=o?(x.exit("codeFencedFenceSequence"),B(F)?j(x,$,"whitespace")(F):$(F)):q(F)}function $(F){return F===null||T(F)?(x.exit("codeFencedFence"),R(F)):q(F)}}}function ml(n,e,t){const r=this;return i;function i(o){return o===null?t(o):(n.enter("lineEnding"),n.consume(o),n.exit("lineEnding"),l)}function l(o){return r.parser.lazy[r.now().line]?t(o):e(o)}}const re={name:"codeIndented",tokenize:gl},dl={tokenize:yl,partial:!0};function gl(n,e,t){const r=this;return i;function i(s){return n.enter("codeIndented"),j(n,l,"linePrefix",4+1)(s)}function l(s){const c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?o(s):t(s)}function o(s){return s===null?u(s):T(s)?n.attempt(dl,o,u)(s):(n.enter("codeFlowValue"),a(s))}function a(s){return s===null||T(s)?(n.exit("codeFlowValue"),o(s)):(n.consume(s),a)}function u(s){return n.exit("codeIndented"),e(s)}}function yl(n,e,t){const r=this;return i;function i(o){return r.parser.lazy[r.now().line]?t(o):T(o)?(n.enter("lineEnding"),n.consume(o),n.exit("lineEnding"),i):j(n,l,"linePrefix",4+1)(o)}function l(o){const a=r.events[r.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?e(o):T(o)?i(o):t(o)}}const xl={name:"codeText",tokenize:wl,resolve:kl,previous:bl};function kl(n){let e=n.length-4,t=3,r,i;if((n[t][1].type==="lineEnding"||n[t][1].type==="space")&&(n[e][1].type==="lineEnding"||n[e][1].type==="space")){for(r=t;++r=4?e(o):n.interrupt(r.parser.constructs.flow,t,e)(o)}}function rr(n,e,t,r,i,l,o,a,u){const s=u||Number.POSITIVE_INFINITY;let c=0;return f;function f(w){return w===60?(n.enter(r),n.enter(i),n.enter(l),n.consume(w),n.exit(l),d):w===null||w===32||w===41||ge(w)?t(w):(n.enter(r),n.enter(o),n.enter(a),n.enter("chunkString",{contentType:"string"}),k(w))}function d(w){return w===62?(n.enter(l),n.consume(w),n.exit(l),n.exit(i),n.exit(r),e):(n.enter(a),n.enter("chunkString",{contentType:"string"}),p(w))}function p(w){return w===62?(n.exit("chunkString"),n.exit(a),d(w)):w===null||w===60||T(w)?t(w):(n.consume(w),w===92?y:p)}function y(w){return w===60||w===62||w===92?(n.consume(w),p):p(w)}function k(w){return!c&&(w===null||w===41||J(w))?(n.exit("chunkString"),n.exit(a),n.exit(o),n.exit(r),e(w)):c999||p===null||p===91||p===93&&!u||p===94&&!a&&"_hiddenFootnoteSupport"in o.parser.constructs?t(p):p===93?(n.exit(l),n.enter(i),n.consume(p),n.exit(i),n.exit(r),e):T(p)?(n.enter("lineEnding"),n.consume(p),n.exit("lineEnding"),c):(n.enter("chunkString",{contentType:"string"}),f(p))}function f(p){return p===null||p===91||p===93||T(p)||a++>999?(n.exit("chunkString"),c(p)):(n.consume(p),u||(u=!B(p)),p===92?d:f)}function d(p){return p===91||p===92||p===93?(n.consume(p),a++,f):f(p)}}function lr(n,e,t,r,i,l){let o;return a;function a(d){return d===34||d===39||d===40?(n.enter(r),n.enter(i),n.consume(d),n.exit(i),o=d===40?41:d,u):t(d)}function u(d){return d===o?(n.enter(i),n.consume(d),n.exit(i),n.exit(r),e):(n.enter(l),s(d))}function s(d){return d===o?(n.exit(l),u(o)):d===null?t(d):T(d)?(n.enter("lineEnding"),n.consume(d),n.exit("lineEnding"),j(n,s,"linePrefix")):(n.enter("chunkString",{contentType:"string"}),c(d))}function c(d){return d===o||d===null||T(d)?(n.exit("chunkString"),s(d)):(n.consume(d),d===92?f:c)}function f(d){return d===o||d===92?(n.consume(d),c):c(d)}}function Mn(n,e){let t;return r;function r(i){return T(i)?(n.enter("lineEnding"),n.consume(i),n.exit("lineEnding"),t=!0,r):B(i)?j(n,r,t?"linePrefix":"lineSuffix")(i):e(i)}}const Tl={name:"definition",tokenize:Ll},zl={tokenize:Ol,partial:!0};function Ll(n,e,t){const r=this;let i;return l;function l(p){return n.enter("definition"),o(p)}function o(p){return ir.call(r,n,a,t,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function a(p){return i=Tn(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(n.enter("definitionMarker"),n.consume(p),n.exit("definitionMarker"),u):t(p)}function u(p){return J(p)?Mn(n,s)(p):s(p)}function s(p){return rr(n,c,t,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function c(p){return n.attempt(zl,f,f)(p)}function f(p){return B(p)?j(n,d,"whitespace")(p):d(p)}function d(p){return p===null||T(p)?(n.exit("definition"),r.parser.defined.push(i),e(p)):t(p)}}function Ol(n,e,t){return r;function r(a){return J(a)?Mn(n,i)(a):t(a)}function i(a){return lr(n,l,t,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function l(a){return B(a)?j(n,o,"whitespace")(a):o(a)}function o(a){return a===null||T(a)?e(a):t(a)}}const Dl={name:"hardBreakEscape",tokenize:vl};function vl(n,e,t){return r;function r(l){return n.enter("hardBreakEscape"),n.consume(l),i}function i(l){return T(l)?(n.exit("hardBreakEscape"),e(l)):t(l)}}const Fl={name:"headingAtx",tokenize:Bl,resolve:Rl};function Rl(n,e){let t=n.length-2,r=3,i,l;return n[r][1].type==="whitespace"&&(r+=2),t-2>r&&n[t][1].type==="whitespace"&&(t-=2),n[t][1].type==="atxHeadingSequence"&&(r===t-1||t-4>r&&n[t-2][1].type==="whitespace")&&(t-=r+1===t?2:4),t>r&&(i={type:"atxHeadingText",start:n[r][1].start,end:n[t][1].end},l={type:"chunkText",start:n[r][1].start,end:n[t][1].end,contentType:"text"},pn(n,r,t-r+1,[["enter",i,e],["enter",l,e],["exit",l,e],["exit",i,e]])),n}function Bl(n,e,t){let r=0;return i;function i(c){return n.enter("atxHeading"),l(c)}function l(c){return n.enter("atxHeadingSequence"),o(c)}function o(c){return c===35&&r++<6?(n.consume(c),o):c===null||J(c)?(n.exit("atxHeadingSequence"),a(c)):t(c)}function a(c){return c===35?(n.enter("atxHeadingSequence"),u(c)):c===null||T(c)?(n.exit("atxHeading"),e(c)):B(c)?j(n,a,"whitespace")(c):(n.enter("atxHeadingText"),s(c))}function u(c){return c===35?(n.consume(c),u):(n.exit("atxHeadingSequence"),a(c))}function s(c){return c===null||c===35||J(c)?(n.exit("atxHeadingText"),a(c)):(n.consume(c),s)}}const Nl=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],at=["pre","script","style","textarea"],Ml={name:"htmlFlow",tokenize:Ul,resolveTo:Hl,concrete:!0},_l={tokenize:ql,partial:!0},jl={tokenize:Vl,partial:!0};function Hl(n){let e=n.length;for(;e--&&!(n[e][0]==="enter"&&n[e][1].type==="htmlFlow"););return e>1&&n[e-2][1].type==="linePrefix"&&(n[e][1].start=n[e-2][1].start,n[e+1][1].start=n[e-2][1].start,n.splice(e-2,2)),n}function Ul(n,e,t){const r=this;let i,l,o,a,u;return s;function s(m){return c(m)}function c(m){return n.enter("htmlFlow"),n.enter("htmlFlowData"),n.consume(m),f}function f(m){return m===33?(n.consume(m),d):m===47?(n.consume(m),l=!0,k):m===63?(n.consume(m),i=3,r.interrupt?e:h):cn(m)?(n.consume(m),o=String.fromCharCode(m),I):t(m)}function d(m){return m===45?(n.consume(m),i=2,p):m===91?(n.consume(m),i=5,a=0,y):cn(m)?(n.consume(m),i=4,r.interrupt?e:h):t(m)}function p(m){return m===45?(n.consume(m),r.interrupt?e:h):t(m)}function y(m){const an="CDATA[";return m===an.charCodeAt(a++)?(n.consume(m),a===an.length?r.interrupt?e:A:y):t(m)}function k(m){return cn(m)?(n.consume(m),o=String.fromCharCode(m),I):t(m)}function I(m){if(m===null||m===47||m===62||J(m)){const an=m===47,kn=o.toLowerCase();return!an&&!l&&at.includes(kn)?(i=1,r.interrupt?e(m):A(m)):Nl.includes(o.toLowerCase())?(i=6,an?(n.consume(m),w):r.interrupt?e(m):A(m)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?t(m):l?E(m):C(m))}return m===45||en(m)?(n.consume(m),o+=String.fromCharCode(m),I):t(m)}function w(m){return m===62?(n.consume(m),r.interrupt?e:A):t(m)}function E(m){return B(m)?(n.consume(m),E):H(m)}function C(m){return m===47?(n.consume(m),H):m===58||m===95||cn(m)?(n.consume(m),D):B(m)?(n.consume(m),C):H(m)}function D(m){return m===45||m===46||m===58||m===95||en(m)?(n.consume(m),D):O(m)}function O(m){return m===61?(n.consume(m),x):B(m)?(n.consume(m),O):C(m)}function x(m){return m===null||m===60||m===61||m===62||m===96?t(m):m===34||m===39?(n.consume(m),u=m,R):B(m)?(n.consume(m),x):q(m)}function R(m){return m===u?(n.consume(m),u=null,M):m===null||T(m)?t(m):(n.consume(m),R)}function q(m){return m===null||m===34||m===39||m===47||m===60||m===61||m===62||m===96||J(m)?O(m):(n.consume(m),q)}function M(m){return m===47||m===62||B(m)?C(m):t(m)}function H(m){return m===62?(n.consume(m),P):t(m)}function P(m){return m===null||T(m)?A(m):B(m)?(n.consume(m),P):t(m)}function A(m){return m===45&&i===2?(n.consume(m),Y):m===60&&i===1?(n.consume(m),Q):m===62&&i===4?(n.consume(m),on):m===63&&i===3?(n.consume(m),h):m===93&&i===5?(n.consume(m),fn):T(m)&&(i===6||i===7)?(n.exit("htmlFlowData"),n.check(_l,hn,U)(m)):m===null||T(m)?(n.exit("htmlFlowData"),U(m)):(n.consume(m),A)}function U(m){return n.check(jl,$,hn)(m)}function $(m){return n.enter("lineEnding"),n.consume(m),n.exit("lineEnding"),F}function F(m){return m===null||T(m)?U(m):(n.enter("htmlFlowData"),A(m))}function Y(m){return m===45?(n.consume(m),h):A(m)}function Q(m){return m===47?(n.consume(m),o="",ln):A(m)}function ln(m){if(m===62){const an=o.toLowerCase();return at.includes(an)?(n.consume(m),on):A(m)}return cn(m)&&o.length<8?(n.consume(m),o+=String.fromCharCode(m),ln):A(m)}function fn(m){return m===93?(n.consume(m),h):A(m)}function h(m){return m===62?(n.consume(m),on):m===45&&i===2?(n.consume(m),h):A(m)}function on(m){return m===null||T(m)?(n.exit("htmlFlowData"),hn(m)):(n.consume(m),on)}function hn(m){return n.exit("htmlFlow"),e(m)}}function Vl(n,e,t){const r=this;return i;function i(o){return T(o)?(n.enter("lineEnding"),n.consume(o),n.exit("lineEnding"),l):t(o)}function l(o){return r.parser.lazy[r.now().line]?t(o):e(o)}}function ql(n,e,t){return r;function r(i){return n.enter("lineEnding"),n.consume(i),n.exit("lineEnding"),n.attempt(Gn,e,t)}}const $l={name:"htmlText",tokenize:Wl};function Wl(n,e,t){const r=this;let i,l,o;return a;function a(h){return n.enter("htmlText"),n.enter("htmlTextData"),n.consume(h),u}function u(h){return h===33?(n.consume(h),s):h===47?(n.consume(h),O):h===63?(n.consume(h),C):cn(h)?(n.consume(h),q):t(h)}function s(h){return h===45?(n.consume(h),c):h===91?(n.consume(h),l=0,y):cn(h)?(n.consume(h),E):t(h)}function c(h){return h===45?(n.consume(h),p):t(h)}function f(h){return h===null?t(h):h===45?(n.consume(h),d):T(h)?(o=f,Q(h)):(n.consume(h),f)}function d(h){return h===45?(n.consume(h),p):f(h)}function p(h){return h===62?Y(h):h===45?d(h):f(h)}function y(h){const on="CDATA[";return h===on.charCodeAt(l++)?(n.consume(h),l===on.length?k:y):t(h)}function k(h){return h===null?t(h):h===93?(n.consume(h),I):T(h)?(o=k,Q(h)):(n.consume(h),k)}function I(h){return h===93?(n.consume(h),w):k(h)}function w(h){return h===62?Y(h):h===93?(n.consume(h),w):k(h)}function E(h){return h===null||h===62?Y(h):T(h)?(o=E,Q(h)):(n.consume(h),E)}function C(h){return h===null?t(h):h===63?(n.consume(h),D):T(h)?(o=C,Q(h)):(n.consume(h),C)}function D(h){return h===62?Y(h):C(h)}function O(h){return cn(h)?(n.consume(h),x):t(h)}function x(h){return h===45||en(h)?(n.consume(h),x):R(h)}function R(h){return T(h)?(o=R,Q(h)):B(h)?(n.consume(h),R):Y(h)}function q(h){return h===45||en(h)?(n.consume(h),q):h===47||h===62||J(h)?M(h):t(h)}function M(h){return h===47?(n.consume(h),Y):h===58||h===95||cn(h)?(n.consume(h),H):T(h)?(o=M,Q(h)):B(h)?(n.consume(h),M):Y(h)}function H(h){return h===45||h===46||h===58||h===95||en(h)?(n.consume(h),H):P(h)}function P(h){return h===61?(n.consume(h),A):T(h)?(o=P,Q(h)):B(h)?(n.consume(h),P):M(h)}function A(h){return h===null||h===60||h===61||h===62||h===96?t(h):h===34||h===39?(n.consume(h),i=h,U):T(h)?(o=A,Q(h)):B(h)?(n.consume(h),A):(n.consume(h),$)}function U(h){return h===i?(n.consume(h),i=void 0,F):h===null?t(h):T(h)?(o=U,Q(h)):(n.consume(h),U)}function $(h){return h===null||h===34||h===39||h===60||h===61||h===96?t(h):h===47||h===62||J(h)?M(h):(n.consume(h),$)}function F(h){return h===47||h===62||J(h)?M(h):t(h)}function Y(h){return h===62?(n.consume(h),n.exit("htmlTextData"),n.exit("htmlText"),e):t(h)}function Q(h){return n.exit("htmlTextData"),n.enter("lineEnding"),n.consume(h),n.exit("lineEnding"),ln}function ln(h){return B(h)?j(n,fn,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(h):fn(h)}function fn(h){return n.enter("htmlTextData"),o(h)}}const Le={name:"labelEnd",tokenize:Jl,resolveTo:Gl,resolveAll:Kl},Ql={tokenize:Zl},Xl={tokenize:no},Yl={tokenize:eo};function Kl(n){let e=-1;for(;++e=3&&(s===null||T(s))?(n.exit("thematicBreak"),e(s)):t(s)}function u(s){return s===i?(n.consume(s),r++,u):(n.exit("thematicBreakSequence"),B(s)?j(n,a,"whitespace")(s):a(s))}}const G={name:"list",tokenize:co,continuation:{tokenize:po},exit:ho},uo={tokenize:mo,partial:!0},so={tokenize:fo,partial:!0};function co(n,e,t){const r=this,i=r.events[r.events.length-1];let l=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return a;function a(p){const y=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(y==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:ye(p)){if(r.containerState.type||(r.containerState.type=y,n.enter(y,{_container:!0})),y==="listUnordered")return n.enter("listItemPrefix"),p===42||p===45?n.check(Wn,t,s)(p):s(p);if(!r.interrupt||p===49)return n.enter("listItemPrefix"),n.enter("listItemValue"),u(p)}return t(p)}function u(p){return ye(p)&&++o<10?(n.consume(p),u):(!r.interrupt||o<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(n.exit("listItemValue"),s(p)):t(p)}function s(p){return n.enter("listItemMarker"),n.consume(p),n.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,n.check(Gn,r.interrupt?t:c,n.attempt(uo,d,f))}function c(p){return r.containerState.initialBlankLine=!0,l++,d(p)}function f(p){return B(p)?(n.enter("listItemPrefixWhitespace"),n.consume(p),n.exit("listItemPrefixWhitespace"),d):t(p)}function d(p){return r.containerState.size=l+r.sliceSerialize(n.exit("listItemPrefix"),!0).length,e(p)}}function po(n,e,t){const r=this;return r.containerState._closeFlow=void 0,n.check(Gn,i,l);function i(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,j(n,e,"listItemIndent",r.containerState.size+1)(a)}function l(a){return r.containerState.furtherBlankLines||!B(a)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(a)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,n.attempt(so,e,o)(a))}function o(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,j(n,n.attempt(G,e,t),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function fo(n,e,t){const r=this;return j(n,i,"listItemIndent",r.containerState.size+1);function i(l){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?e(l):t(l)}}function ho(n){n.exit(this.containerState.type)}function mo(n,e,t){const r=this;return j(n,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4+1);function i(l){const o=r.events[r.events.length-1];return!B(l)&&o&&o[1].type==="listItemPrefixWhitespace"?e(l):t(l)}}const ut={name:"setextUnderline",tokenize:yo,resolveTo:go};function go(n,e){let t=n.length,r,i,l;for(;t--;)if(n[t][0]==="enter"){if(n[t][1].type==="content"){r=t;break}n[t][1].type==="paragraph"&&(i=t)}else n[t][1].type==="content"&&n.splice(t,1),!l&&n[t][1].type==="definition"&&(l=t);const o={type:"setextHeading",start:Object.assign({},n[i][1].start),end:Object.assign({},n[n.length-1][1].end)};return n[i][1].type="setextHeadingText",l?(n.splice(i,0,["enter",o,e]),n.splice(l+1,0,["exit",n[r][1],e]),n[r][1].end=Object.assign({},n[l][1].end)):n[r][1]=o,n.push(["exit",o,e]),n}function yo(n,e,t){const r=this;let i;return l;function l(s){let c=r.events.length,f;for(;c--;)if(r.events[c][1].type!=="lineEnding"&&r.events[c][1].type!=="linePrefix"&&r.events[c][1].type!=="content"){f=r.events[c][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||f)?(n.enter("setextHeadingLine"),i=s,o(s)):t(s)}function o(s){return n.enter("setextHeadingLineSequence"),a(s)}function a(s){return s===i?(n.consume(s),a):(n.exit("setextHeadingLineSequence"),B(s)?j(n,u,"lineSuffix")(s):u(s))}function u(s){return s===null||T(s)?(n.exit("setextHeadingLine"),e(s)):t(s)}}const xo={tokenize:ko};function ko(n){const e=this,t=n.attempt(Gn,r,n.attempt(this.parser.constructs.flowInitial,i,j(n,n.attempt(this.parser.constructs.flow,i,n.attempt(Cl,i)),"linePrefix")));return t;function r(l){if(l===null){n.consume(l);return}return n.enter("lineEndingBlank"),n.consume(l),n.exit("lineEndingBlank"),e.currentConstruct=void 0,t}function i(l){if(l===null){n.consume(l);return}return n.enter("lineEnding"),n.consume(l),n.exit("lineEnding"),e.currentConstruct=void 0,t}}const bo={resolveAll:ar()},wo=or("string"),So=or("text");function or(n){return{tokenize:e,resolveAll:ar(n==="text"?Co:void 0)};function e(t){const r=this,i=this.parser.constructs[n],l=t.attempt(i,o,a);return o;function o(c){return s(c)?l(c):a(c)}function a(c){if(c===null){t.consume(c);return}return t.enter("data"),t.consume(c),u}function u(c){return s(c)?(t.exit("data"),l(c)):(t.consume(c),u)}function s(c){if(c===null)return!0;const f=i[c];let d=-1;if(f)for(;++d-1){const a=o[0];typeof a=="string"?o[0]=a.slice(r):o.shift()}l>0&&o.push(n[i].slice(0,l))}return o}function Ao(n,e){let t=-1;const r=[];let i;for(;++t0){const un=z.tokenStack[z.tokenStack.length-1];(un[1]||ct).call(z,void 0,un[0])}for(S.position={start:yn(g.length>0?g[0][1].start:{line:1,column:1,offset:0}),end:yn(g.length>0?g[g.length-2][1].end:{line:1,column:1,offset:0})},N=-1;++N{const o=u.useRef({});return u.useEffect(()=>{o.current=e}),o.current},Ht=Ut;function Vt(e){return e==null||Object.keys(e).length===0}function Kt(e){const{styles:o,defaultTheme:t={}}=e,r=typeof o=="function"?s=>o(Vt(s)?t:s):o;return f.jsx(kt,{styles:r})}function qt({styles:e,themeId:o,defaultTheme:t={}}){const r=Rt(t),s=typeof e=="function"?e(o&&r[o]||r):e;return f.jsx(Kt,{styles:s})}const Gt=zo(f.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");function Ko(e){return typeof e.normalize<"u"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function Xt(e={}){const{ignoreAccents:o=!0,ignoreCase:t=!0,limit:r,matchFrom:s="any",stringify:c,trim:d=!1}=e;return(i,{inputValue:b,getOptionLabel:p})=>{let m=d?b.trim():b;t&&(m=m.toLowerCase()),o&&(m=Ko(m));const h=m?i.filter($=>{let v=(c||p)($);return t&&(v=v.toLowerCase()),o&&(v=Ko(v)),s==="start"?v.indexOf(m)===0:v.indexOf(m)>-1}):i;return typeof r=="number"?h.slice(0,r):h}}function wo(e,o){for(let t=0;t{var o;return e.current!==null&&((o=e.current.parentElement)==null?void 0:o.contains(document.activeElement))};function Jt(e){const{unstable_isActiveElementInListbox:o=Zt,unstable_classNamePrefix:t="Mui",autoComplete:r=!1,autoHighlight:s=!1,autoSelect:c=!1,blurOnSelect:d=!1,clearOnBlur:i=!e.freeSolo,clearOnEscape:b=!1,componentName:p="useAutocomplete",defaultValue:m=e.multiple?[]:null,disableClearable:h=!1,disableCloseOnSelect:$=!1,disabled:v,disabledItemsFocusable:R=!1,disableListWrap:M=!1,filterOptions:P=Yt,filterSelectedOptions:O=!1,freeSolo:k=!1,getOptionDisabled:C,getOptionKey:I,getOptionLabel:E=l=>{var n;return(n=l.label)!=null?n:l},groupBy:N,handleHomeEndKeys:F=!e.freeSolo,id:q,includeInputInList:le=!1,inputValue:de,isOptionEqualToValue:oe=(l,n)=>l===n,multiple:T=!1,onChange:J,onClose:G,onHighlightChange:se,onInputChange:Q,onOpen:re,open:U,openOnFocus:A=!1,options:ie,readOnly:Se=!1,selectOnFocus:we=!e.freeSolo,value:ue}=e,W=Ao(q);let ee=E;ee=l=>{const n=E(l);return typeof n!="string"?String(n):n};const fe=u.useRef(!1),We=u.useRef(!0),Z=u.useRef(null),be=u.useRef(null),[Me,Y]=u.useState(null),[H,ze]=u.useState(-1),_e=s?0:-1,te=u.useRef(_e),[S,to]=fo({controlled:ue,default:m,name:p}),[_,xe]=fo({controlled:de,default:"",name:p,state:"inputValue"}),[Fe,ce]=u.useState(!1),Te=u.useCallback((l,n)=>{if(!(T?S.length!(O&&(T?S:[S]).some(n=>n!==null&&oe(l,n)))),{inputValue:Ee&&Ye?"":_,getOptionLabel:ee}):[],he=Ht({filteredOptions:j,value:S,inputValue:_});u.useEffect(()=>{const l=S!==he.value;Fe&&!l||k&&!l||Te(null,S)},[S,Te,Fe,he.value,k]);const Ke=me&&j.length>0&&!Se,qe=xo(l=>{l===-1?Z.current.focus():Me.querySelector(`[data-tag-index="${l}"]`).focus()});u.useEffect(()=>{T&&H>S.length-1&&(ze(-1),qe(-1))},[S,T,H,qe]);function y(l,n){if(!be.current||l<0||l>=j.length)return-1;let g=l;for(;;){const x=be.current.querySelector(`[data-option-index="${g}"]`),K=R?!1:!x||x.disabled||x.getAttribute("aria-disabled")==="true";if(x&&x.hasAttribute("tabindex")&&!K)return g;if(n==="next"?g=(g+1)%j.length:g=(g-1+j.length)%j.length,g===l)return-1}}const B=xo(({event:l,index:n,reason:g="auto"})=>{if(te.current=n,n===-1?Z.current.removeAttribute("aria-activedescendant"):Z.current.setAttribute("aria-activedescendant",`${W}-option-${n}`),se&&se(l,n===-1?null:j[n],g),!be.current)return;const x=be.current.querySelector(`[role="option"].${t}-focused`);x&&(x.classList.remove(`${t}-focused`),x.classList.remove(`${t}-focusVisible`));let K=be.current;if(be.current.getAttribute("role")!=="listbox"&&(K=be.current.parentElement.querySelector('[role="listbox"]')),!K)return;if(n===-1){K.scrollTop=0;return}const pe=be.current.querySelector(`[data-option-index="${n}"]`);if(pe&&(pe.classList.add(`${t}-focused`),g==="keyboard"&&pe.classList.add(`${t}-focusVisible`),K.scrollHeight>K.clientHeight&&g!=="mouse"&&g!=="touch")){const ge=pe,He=K.clientHeight+K.scrollTop,_o=ge.offsetTop+ge.offsetHeight;_o>He?K.scrollTop=_o-K.clientHeight:ge.offsetTop-ge.offsetHeight*(N?1.3:0){if(!z)return;const pe=y((()=>{const ge=j.length-1;if(n==="reset")return _e;if(n==="start")return 0;if(n==="end")return ge;const He=te.current+n;return He<0?He===-1&&le?-1:M&&te.current!==-1||Math.abs(n)>1?0:ge:He>ge?He===ge+1&&le?-1:M||Math.abs(n)>1?ge:0:He})(),g);if(B({index:pe,reason:x,event:l}),r&&n!=="reset")if(pe===-1)Z.current.value=_;else{const ge=ee(j[pe]);Z.current.value=ge,ge.toLowerCase().indexOf(_.toLowerCase())===0&&_.length>0&&Z.current.setSelectionRange(_.length,ge.length)}}),ke=()=>{const l=(n,g)=>{const x=n?ee(n):"",K=g?ee(g):"";return x===K};if(te.current!==-1&&he.filteredOptions&&he.filteredOptions.length!==j.length&&he.inputValue===_&&(T?S.length===he.value.length&&he.value.every((n,g)=>ee(S[g])===ee(n)):l(he.value,S))){const n=he.filteredOptions[te.current];if(n&&j.some(x=>ee(x)===ee(n)))return!0}return!1},Ze=u.useCallback(()=>{if(!z||ke())return;const l=T?S[0]:S;if(j.length===0||l==null){X({diff:"reset"});return}if(be.current){if(l!=null){const n=j[te.current];if(T&&n&&wo(S,x=>oe(n,x))!==-1)return;const g=wo(j,x=>oe(x,l));g===-1?X({diff:"reset"}):B({index:g});return}if(te.current>=j.length-1){B({index:j.length-1});return}B({index:te.current})}},[j.length,T?!1:S,O,X,B,z,_,T]),Po=xo(l=>{Ot(be,l),l&&Ze()});u.useEffect(()=>{Ze()},[Ze]);const Ne=l=>{me||(Ae(!0),De(!0),re&&re(l))},Ge=(l,n)=>{me&&(Ae(!1),G&&G(l,n))},Ue=(l,n,g,x)=>{if(T){if(S.length===n.length&&S.every((K,pe)=>K===n[pe]))return}else if(S===n)return;J&&J(l,n,g,x),to(n)},no=u.useRef(!1),eo=(l,n,g="selectOption",x="options")=>{let K=g,pe=n;if(T){pe=Array.isArray(S)?S.slice():[];const ge=wo(pe,He=>oe(n,He));ge===-1?pe.push(n):x!=="freeSolo"&&(pe.splice(ge,1),K="removeOption")}Te(l,pe),Ue(l,pe,K,{option:n}),!$&&(!l||!l.ctrlKey&&!l.metaKey)&&Ge(l,K),(d===!0||d==="touch"&&no.current||d==="mouse"&&!no.current)&&Z.current.blur()};function go(l,n){if(l===-1)return-1;let g=l;for(;;){if(n==="next"&&g===S.length||n==="previous"&&g===-1)return-1;const x=Me.querySelector(`[data-tag-index="${g}"]`);if(!x||!x.hasAttribute("tabindex")||x.disabled||x.getAttribute("aria-disabled")==="true")g+=n==="next"?1:-1;else return g}}const mo=(l,n)=>{if(!T)return;_===""&&Ge(l,"toggleInput");let g=H;H===-1?_===""&&n==="previous"&&(g=S.length-1):(g+=n==="next"?1:-1,g<0&&(g=0),g===S.length&&(g=-1)),g=go(g,n),ze(g),qe(g)},ho=l=>{fe.current=!0,xe(""),Q&&Q(l,"","clear"),Ue(l,T?[]:null,"clear")},ko=l=>n=>{if(l.onKeyDown&&l.onKeyDown(n),!n.defaultMuiPrevented&&(H!==-1&&["ArrowLeft","ArrowRight"].indexOf(n.key)===-1&&(ze(-1),qe(-1)),n.which!==229))switch(n.key){case"Home":z&&F&&(n.preventDefault(),X({diff:"start",direction:"next",reason:"keyboard",event:n}));break;case"End":z&&F&&(n.preventDefault(),X({diff:"end",direction:"previous",reason:"keyboard",event:n}));break;case"PageUp":n.preventDefault(),X({diff:-qo,direction:"previous",reason:"keyboard",event:n}),Ne(n);break;case"PageDown":n.preventDefault(),X({diff:qo,direction:"next",reason:"keyboard",event:n}),Ne(n);break;case"ArrowDown":n.preventDefault(),X({diff:1,direction:"next",reason:"keyboard",event:n}),Ne(n);break;case"ArrowUp":n.preventDefault(),X({diff:-1,direction:"previous",reason:"keyboard",event:n}),Ne(n);break;case"ArrowLeft":mo(n,"previous");break;case"ArrowRight":mo(n,"next");break;case"Enter":if(te.current!==-1&&z){const g=j[te.current],x=C?C(g):!1;if(n.preventDefault(),x)return;eo(n,g,"selectOption"),r&&Z.current.setSelectionRange(Z.current.value.length,Z.current.value.length)}else k&&_!==""&&Ee===!1&&(T&&n.preventDefault(),eo(n,_,"createOption","freeSolo"));break;case"Escape":z?(n.preventDefault(),n.stopPropagation(),Ge(n,"escape")):b&&(_!==""||T&&S.length>0)&&(n.preventDefault(),n.stopPropagation(),ho(n));break;case"Backspace":if(T&&!Se&&_===""&&S.length>0){const g=H===-1?S.length-1:H,x=S.slice();x.splice(g,1),Ue(n,x,"removeOption",{option:S[g]})}break;case"Delete":if(T&&!Se&&_===""&&S.length>0&&H!==-1){const g=H,x=S.slice();x.splice(g,1),Ue(n,x,"removeOption",{option:S[g]})}break}},jo=l=>{ce(!0),A&&!fe.current&&Ne(l)},ro=l=>{if(o(be)){Z.current.focus();return}ce(!1),We.current=!0,fe.current=!1,c&&te.current!==-1&&z?eo(l,j[te.current],"blur"):c&&k&&_!==""?eo(l,_,"blur","freeSolo"):i&&Te(l,S),Ge(l,"blur")},Ce=l=>{const n=l.target.value;_!==n&&(xe(n),De(!1),Q&&Q(l,n,"input")),n===""?!h&&!T&&Ue(l,null,"clear"):Ne(l)},ve=l=>{const n=Number(l.currentTarget.getAttribute("data-option-index"));te.current!==n&&B({event:l,index:n,reason:"mouse"})},Be=l=>{B({event:l,index:Number(l.currentTarget.getAttribute("data-option-index")),reason:"touch"}),no.current=!0},Wo=l=>{const n=Number(l.currentTarget.getAttribute("data-option-index"));eo(l,j[n],"selectOption"),no.current=!1},Ro=l=>n=>{const g=S.slice();g.splice(l,1),Ue(n,g,"removeOption",{option:S[l]})},Oo=l=>{me?Ge(l,"toggleInput"):Ne(l)},Lo=l=>{l.currentTarget.contains(l.target)&&l.target.getAttribute("id")!==W&&l.preventDefault()},vo=l=>{l.currentTarget.contains(l.target)&&(Z.current.focus(),we&&We.current&&Z.current.selectionEnd-Z.current.selectionStart===0&&Z.current.select(),We.current=!1)},co=l=>{!v&&(_===""||!me)&&Oo(l)};let oo=k&&_.length>0;oo=oo||(T?S.length>0:S!==null);let ao=j;return N&&(ao=j.reduce((l,n,g)=>{const x=N(n);return l.length>0&&l[l.length-1].group===x?l[l.length-1].options.push(n):l.push({key:g,index:g,group:x,options:[n]}),l},[])),v&&Fe&&ro(),{getRootProps:(l={})=>a({"aria-owns":Ke?`${W}-listbox`:null},l,{onKeyDown:ko(l),onMouseDown:Lo,onClick:vo}),getInputLabelProps:()=>({id:`${W}-label`,htmlFor:W}),getInputProps:()=>({id:W,value:_,onBlur:ro,onFocus:jo,onChange:Ce,onMouseDown:co,"aria-activedescendant":z?"":null,"aria-autocomplete":r?"both":"list","aria-controls":Ke?`${W}-listbox`:void 0,"aria-expanded":Ke,autoComplete:"off",ref:Z,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:v}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:ho}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:Oo}),getTagProps:({index:l})=>a({key:l,"data-tag-index":l,tabIndex:-1},!Se&&{onDelete:Ro(l)}),getListboxProps:()=>({role:"listbox",id:`${W}-listbox`,"aria-labelledby":`${W}-label`,ref:Po,onMouseDown:l=>{l.preventDefault()}}),getOptionProps:({index:l,option:n})=>{var g;const x=(T?S:[S]).some(pe=>pe!=null&&oe(n,pe)),K=C?C(n):!1;return{key:(g=I==null?void 0:I(n))!=null?g:ee(n),tabIndex:-1,role:"option",id:`${W}-option-${l}`,onMouseMove:ve,onClick:Wo,onTouchStart:Be,"data-option-index":l,"aria-disabled":K,"aria-selected":x}},id:W,inputValue:_,value:S,dirty:oo,expanded:z&&Me,popupOpen:z,focused:Fe||H!==-1,anchorEl:Me,setAnchorEl:Y,focusedTag:H,groupedOptions:ao}}function Qt(e){return ye("MuiListSubheader",e)}$e("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const en=["className","color","component","disableGutters","disableSticky","inset"],on=e=>{const{classes:o,color:t,disableGutters:r,inset:s,disableSticky:c}=e,d={root:["root",t!=="default"&&`color${L(t)}`,!r&&"gutters",s&&"inset",!c&&"sticky"]};return Ie(d,Qt,o)},tn=w("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.root,t.color!=="default"&&o[`color${L(t.color)}`],!t.disableGutters&&o.gutters,t.inset&&o.inset,!t.disableSticky&&o.sticky]}})(({theme:e,ownerState:o})=>a({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},o.color==="primary"&&{color:(e.vars||e).palette.primary.main},o.color==="inherit"&&{color:"inherit"},!o.disableGutters&&{paddingLeft:16,paddingRight:16},o.inset&&{paddingLeft:72},!o.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper})),bt=u.forwardRef(function(o,t){const r=Pe({props:o,name:"MuiListSubheader"}),{className:s,color:c="default",component:d="li",disableGutters:i=!1,disableSticky:b=!1,inset:p=!1}=r,m=ae(r,en),h=a({},r,{color:c,component:d,disableGutters:i,disableSticky:b,inset:p}),$=on(h);return f.jsx(tn,a({as:d,className:ne($.root,s),ref:t,ownerState:h},m))});bt.muiSkipListHighlight=!0;const nn=bt,rn=zo(f.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function an(e){return ye("MuiChip",e)}const ln=$e("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),V=ln,sn=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],cn=e=>{const{classes:o,disabled:t,size:r,color:s,iconColor:c,onDelete:d,clickable:i,variant:b}=e,p={root:["root",b,t&&"disabled",`size${L(r)}`,`color${L(s)}`,i&&"clickable",i&&`clickableColor${L(s)}`,d&&"deletable",d&&`deletableColor${L(s)}`,`${b}${L(s)}`],label:["label",`label${L(r)}`],avatar:["avatar",`avatar${L(r)}`,`avatarColor${L(s)}`],icon:["icon",`icon${L(r)}`,`iconColor${L(c)}`],deleteIcon:["deleteIcon",`deleteIcon${L(r)}`,`deleteIconColor${L(s)}`,`deleteIcon${L(b)}Color${L(s)}`]};return Ie(p,an,o)},dn=w("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e,{color:r,iconColor:s,clickable:c,onDelete:d,size:i,variant:b}=t;return[{[`& .${V.avatar}`]:o.avatar},{[`& .${V.avatar}`]:o[`avatar${L(i)}`]},{[`& .${V.avatar}`]:o[`avatarColor${L(r)}`]},{[`& .${V.icon}`]:o.icon},{[`& .${V.icon}`]:o[`icon${L(i)}`]},{[`& .${V.icon}`]:o[`iconColor${L(s)}`]},{[`& .${V.deleteIcon}`]:o.deleteIcon},{[`& .${V.deleteIcon}`]:o[`deleteIcon${L(i)}`]},{[`& .${V.deleteIcon}`]:o[`deleteIconColor${L(r)}`]},{[`& .${V.deleteIcon}`]:o[`deleteIcon${L(b)}Color${L(r)}`]},o.root,o[`size${L(i)}`],o[`color${L(r)}`],c&&o.clickable,c&&r!=="default"&&o[`clickableColor${L(r)})`],d&&o.deletable,d&&r!=="default"&&o[`deletableColor${L(r)}`],o[b],o[`${b}${L(r)}`]]}})(({theme:e,ownerState:o})=>{const t=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return a({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${V.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${V.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${V.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${V.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${V.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${V.icon}`]:a({marginLeft:5,marginRight:-6},o.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},o.iconColor===o.color&&a({color:e.vars?e.vars.palette.Chip.defaultIconColor:t},o.color!=="default"&&{color:"inherit"})),[`& .${V.deleteIcon}`]:a({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:Re(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:Re(e.palette.text.primary,.4)}},o.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},o.color!=="default"&&{color:e.vars?`rgba(${e.vars.palette[o.color].contrastTextChannel} / 0.7)`:Re(e.palette[o.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[o.color].contrastText}})},o.size==="small"&&{height:24},o.color!=="default"&&{backgroundColor:(e.vars||e).palette[o.color].main,color:(e.vars||e).palette[o.color].contrastText},o.onDelete&&{[`&.${V.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Re(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},o.onDelete&&o.color!=="default"&&{[`&.${V.focusVisible}`]:{backgroundColor:(e.vars||e).palette[o.color].dark}})},({theme:e,ownerState:o})=>a({},o.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Re(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${V.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Re(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},o.clickable&&o.color!=="default"&&{[`&:hover, &.${V.focusVisible}`]:{backgroundColor:(e.vars||e).palette[o.color].dark}}),({theme:e,ownerState:o})=>a({},o.variant==="outlined"&&{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${V.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${V.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${V.avatar}`]:{marginLeft:4},[`& .${V.avatarSmall}`]:{marginLeft:2},[`& .${V.icon}`]:{marginLeft:4},[`& .${V.iconSmall}`]:{marginLeft:2},[`& .${V.deleteIcon}`]:{marginRight:5},[`& .${V.deleteIconSmall}`]:{marginRight:3}},o.variant==="outlined"&&o.color!=="default"&&{color:(e.vars||e).palette[o.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[o.color].mainChannel} / 0.7)`:Re(e.palette[o.color].main,.7)}`,[`&.${V.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[o.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Re(e.palette[o.color].main,e.palette.action.hoverOpacity)},[`&.${V.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[o.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:Re(e.palette[o.color].main,e.palette.action.focusOpacity)},[`& .${V.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[o.color].mainChannel} / 0.7)`:Re(e.palette[o.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[o.color].main}}})),un=w("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,o)=>{const{ownerState:t}=e,{size:r}=t;return[o.label,o[`label${L(r)}`]]}})(({ownerState:e})=>a({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.variant==="outlined"&&{paddingLeft:11,paddingRight:11},e.size==="small"&&{paddingLeft:8,paddingRight:8},e.size==="small"&&e.variant==="outlined"&&{paddingLeft:7,paddingRight:7}));function Go(e){return e.key==="Backspace"||e.key==="Delete"}const pn=u.forwardRef(function(o,t){const r=Pe({props:o,name:"MuiChip"}),{avatar:s,className:c,clickable:d,color:i="default",component:b,deleteIcon:p,disabled:m=!1,icon:h,label:$,onClick:v,onDelete:R,onKeyDown:M,onKeyUp:P,size:O="medium",variant:k="filled",tabIndex:C,skipFocusWhenDisabled:I=!1}=r,E=ae(r,sn),N=u.useRef(null),F=lo(N,t),q=A=>{A.stopPropagation(),R&&R(A)},le=A=>{A.currentTarget===A.target&&Go(A)&&A.preventDefault(),M&&M(A)},de=A=>{A.currentTarget===A.target&&(R&&Go(A)?R(A):A.key==="Escape"&&N.current&&N.current.blur()),P&&P(A)},oe=d!==!1&&v?!0:d,T=oe||R?Uo:b||"div",J=a({},r,{component:T,disabled:m,size:O,color:i,iconColor:u.isValidElement(h)&&h.props.color||i,onDelete:!!R,clickable:oe,variant:k}),G=cn(J),se=T===Uo?a({component:b||"div",focusVisibleClassName:G.focusVisible},R&&{disableRipple:!0}):{};let Q=null;R&&(Q=p&&u.isValidElement(p)?u.cloneElement(p,{className:ne(p.props.className,G.deleteIcon),onClick:q}):f.jsx(rn,{className:ne(G.deleteIcon),onClick:q}));let re=null;s&&u.isValidElement(s)&&(re=u.cloneElement(s,{className:ne(G.avatar,s.props.className)}));let U=null;return h&&u.isValidElement(h)&&(U=u.cloneElement(h,{className:ne(G.icon,h.props.className)})),f.jsxs(dn,a({as:T,className:ne(G.root,c),disabled:oe&&m?!0:void 0,onClick:v,onKeyDown:le,onKeyUp:de,ref:F,tabIndex:I&&m?-1:C,ownerState:J},se,E,{children:[re||U,f.jsx(un,{className:ne(G.label),ownerState:J,children:$}),Q]}))}),fn=pn;function bn(e){return f.jsx(qt,a({},e,{defaultTheme:Lt,themeId:wt}))}function gn(e){return ye("MuiInputBase",e)}const mn=$e("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Oe=mn,hn=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],Co=(e,o)=>{const{ownerState:t}=e;return[o.root,t.formControl&&o.formControl,t.startAdornment&&o.adornedStart,t.endAdornment&&o.adornedEnd,t.error&&o.error,t.size==="small"&&o.sizeSmall,t.multiline&&o.multiline,t.color&&o[`color${L(t.color)}`],t.fullWidth&&o.fullWidth,t.hiddenLabel&&o.hiddenLabel]},yo=(e,o)=>{const{ownerState:t}=e;return[o.input,t.size==="small"&&o.inputSizeSmall,t.multiline&&o.inputMultiline,t.type==="search"&&o.inputTypeSearch,t.startAdornment&&o.inputAdornedStart,t.endAdornment&&o.inputAdornedEnd,t.hiddenLabel&&o.inputHiddenLabel]},vn=e=>{const{classes:o,color:t,disabled:r,error:s,endAdornment:c,focused:d,formControl:i,fullWidth:b,hiddenLabel:p,multiline:m,readOnly:h,size:$,startAdornment:v,type:R}=e,M={root:["root",`color${L(t)}`,r&&"disabled",s&&"error",b&&"fullWidth",d&&"focused",i&&"formControl",$&&$!=="medium"&&`size${L($)}`,m&&"multiline",v&&"adornedStart",c&&"adornedEnd",p&&"hiddenLabel",h&&"readOnly"],input:["input",r&&"disabled",R==="search"&&"inputTypeSearch",m&&"inputMultiline",$==="small"&&"inputSizeSmall",p&&"inputHiddenLabel",v&&"inputAdornedStart",c&&"inputAdornedEnd",h&&"readOnly"]};return Ie(M,gn,o)},$o=w("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Co})(({theme:e,ownerState:o})=>a({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Oe.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},o.multiline&&a({padding:"4px 0 5px"},o.size==="small"&&{paddingTop:1}),o.fullWidth&&{width:"100%"})),Io=w("input",{name:"MuiInputBase",slot:"Input",overridesResolver:yo})(({theme:e,ownerState:o})=>{const t=e.palette.mode==="light",r=a({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),s={opacity:"0 !important"},c=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return a({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Oe.formControl} &`]:{"&::-webkit-input-placeholder":s,"&::-moz-placeholder":s,"&:-ms-input-placeholder":s,"&::-ms-input-placeholder":s,"&:focus::-webkit-input-placeholder":c,"&:focus::-moz-placeholder":c,"&:focus:-ms-input-placeholder":c,"&:focus::-ms-input-placeholder":c},[`&.${Oe.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},o.size==="small"&&{paddingTop:1},o.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},o.type==="search"&&{MozAppearance:"textfield"})}),xn=f.jsx(bn,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Cn=u.forwardRef(function(o,t){var r;const s=Pe({props:o,name:"MuiInputBase"}),{"aria-describedby":c,autoComplete:d,autoFocus:i,className:b,components:p={},componentsProps:m={},defaultValue:h,disabled:$,disableInjectingGlobalStyles:v,endAdornment:R,fullWidth:M=!1,id:P,inputComponent:O="input",inputProps:k={},inputRef:C,maxRows:I,minRows:E,multiline:N=!1,name:F,onBlur:q,onChange:le,onClick:de,onFocus:oe,onKeyDown:T,onKeyUp:J,placeholder:G,readOnly:se,renderSuffix:Q,rows:re,slotProps:U={},slots:A={},startAdornment:ie,type:Se="text",value:we}=s,ue=ae(s,hn),W=k.value!=null?k.value:we,{current:ee}=u.useRef(W!=null),fe=u.useRef(),We=u.useCallback(z=>{},[]),Z=lo(fe,C,k.ref,We),[be,Me]=u.useState(!1),Y=so(),H=io({props:s,muiFormControl:Y,states:["color","disabled","error","hiddenLabel","size","required","filled"]});H.focused=Y?Y.focused:be,u.useEffect(()=>{!Y&&$&&be&&(Me(!1),q&&q())},[Y,$,be,q]);const ze=Y&&Y.onFilled,_e=Y&&Y.onEmpty,te=u.useCallback(z=>{ut(z)?ze&&ze():_e&&_e()},[ze,_e]);st(()=>{ee&&te({value:W})},[W,te,ee]);const S=z=>{if(H.disabled){z.stopPropagation();return}oe&&oe(z),k.onFocus&&k.onFocus(z),Y&&Y.onFocus?Y.onFocus(z):Me(!0)},to=z=>{q&&q(z),k.onBlur&&k.onBlur(z),Y&&Y.onBlur?Y.onBlur(z):Me(!1)},_=(z,...j)=>{if(!ee){const he=z.target||fe.current;if(he==null)throw new Error(it(1));te({value:he.value})}k.onChange&&k.onChange(z,...j),le&&le(z,...j)};u.useEffect(()=>{te(fe.current)},[]);const xe=z=>{fe.current&&z.currentTarget===z.target&&fe.current.focus(),de&&de(z)};let Fe=O,ce=k;N&&Fe==="input"&&(re?ce=a({type:void 0,minRows:re,maxRows:re},ce):ce=a({type:void 0,maxRows:I,minRows:E},ce),Fe=_t);const Te=z=>{te(z.animationName==="mui-auto-fill-cancel"?fe.current:{value:"x"})};u.useEffect(()=>{Y&&Y.setAdornedStart(!!ie)},[Y,ie]);const me=a({},s,{color:H.color||"primary",disabled:H.disabled,endAdornment:R,error:H.error,focused:H.focused,formControl:Y,fullWidth:M,hiddenLabel:H.hiddenLabel,multiline:N,size:H.size,startAdornment:ie,type:Se}),Ae=vn(me),Ye=A.root||p.Root||$o,De=U.root||m.root||{},Ee=A.input||p.Input||Io;return ce=a({},ce,(r=U.input)!=null?r:m.input),f.jsxs(u.Fragment,{children:[!v&&xn,f.jsxs(Ye,a({},De,!Ho(Ye)&&{ownerState:a({},me,De.ownerState)},{ref:t,onClick:xe},ue,{className:ne(Ae.root,De.className,b,se&&"MuiInputBase-readOnly"),children:[ie,f.jsx(zt.Provider,{value:null,children:f.jsx(Ee,a({ownerState:me,"aria-invalid":H.error,"aria-describedby":c,autoComplete:d,autoFocus:i,defaultValue:h,disabled:H.disabled,id:P,onAnimationStart:Te,name:F,placeholder:G,readOnly:se,required:H.required,rows:re,value:W,onKeyDown:T,onKeyUp:J,type:Se},ce,!Ho(Ee)&&{as:Fe,ownerState:a({},me,ce.ownerState)},{ref:Z,className:ne(Ae.input,ce.className,se&&"MuiInputBase-readOnly"),onBlur:to,onChange:_,onFocus:S}))}),R,Q?Q(a({},H,{startAdornment:ie})):null]}))]})}),Do=Cn;function yn(e){return ye("MuiInput",e)}const $n=a({},Oe,$e("MuiInput",["root","underline","input"])),Qe=$n;function In(e){return ye("MuiOutlinedInput",e)}const Sn=a({},Oe,$e("MuiOutlinedInput",["root","notchedOutline","input"])),Ve=Sn;function Pn(e){return ye("MuiFilledInput",e)}const kn=a({},Oe,$e("MuiFilledInput",["root","underline","input"])),Le=kn,gt=zo(f.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function Rn(e){return ye("MuiAutocomplete",e)}const On=$e("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]),D=On;var Xo,Yo;const Ln=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionKey","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","slotProps","value"],wn=["ref"],Mn=["key"],Fn=e=>{const{classes:o,disablePortal:t,expanded:r,focused:s,fullWidth:c,hasClearIcon:d,hasPopupIcon:i,inputFocused:b,popupOpen:p,size:m}=e,h={root:["root",r&&"expanded",s&&"focused",c&&"fullWidth",d&&"hasClearIcon",i&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",b&&"inputFocused"],tag:["tag",`tagSize${L(m)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",p&&"popupIndicatorOpen"],popper:["popper",t&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return Ie(h,Rn,o)},Tn=w("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e,{fullWidth:r,hasClearIcon:s,hasPopupIcon:c,inputFocused:d,size:i}=t;return[{[`& .${D.tag}`]:o.tag},{[`& .${D.tag}`]:o[`tagSize${L(i)}`]},{[`& .${D.inputRoot}`]:o.inputRoot},{[`& .${D.input}`]:o.input},{[`& .${D.input}`]:d&&o.inputFocused},o.root,r&&o.fullWidth,c&&o.hasPopupIcon,s&&o.hasClearIcon]}})(({ownerState:e})=>a({[`&.${D.focused} .${D.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${D.clearIndicator}`]:{visibility:"visible"}}},e.fullWidth&&{width:"100%"},{[`& .${D.tag}`]:a({margin:3,maxWidth:"calc(100% - 6px)"},e.size==="small"&&{margin:2,maxWidth:"calc(100% - 4px)"}),[`& .${D.inputRoot}`]:{flexWrap:"wrap",[`.${D.hasPopupIcon}&, .${D.hasClearIcon}&`]:{paddingRight:26+4},[`.${D.hasPopupIcon}.${D.hasClearIcon}&`]:{paddingRight:52+4},[`& .${D.input}`]:{width:0,minWidth:30}},[`& .${Qe.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${Qe.root}.${Oe.sizeSmall}`]:{[`& .${Qe.input}`]:{padding:"2px 4px 3px 0"}},[`& .${Ve.root}`]:{padding:9,[`.${D.hasPopupIcon}&, .${D.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${D.hasPopupIcon}.${D.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${D.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${D.endAdornment}`]:{right:9}},[`& .${Ve.root}.${Oe.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${D.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${Le.root}`]:{paddingTop:19,paddingLeft:8,[`.${D.hasPopupIcon}&, .${D.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${D.hasPopupIcon}.${D.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${Le.input}`]:{padding:"7px 4px"},[`& .${D.endAdornment}`]:{right:9}},[`& .${Le.root}.${Oe.sizeSmall}`]:{paddingBottom:1,[`& .${Le.input}`]:{padding:"2.5px 4px"}},[`& .${Oe.hiddenLabel}`]:{paddingTop:8},[`& .${Le.root}.${Oe.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${D.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${Le.root}.${Oe.hiddenLabel}.${Oe.sizeSmall}`]:{[`& .${D.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${D.input}`]:a({flexGrow:1,textOverflow:"ellipsis",opacity:0},e.inputFocused&&{opacity:1})})),An=w("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,o)=>o.endAdornment})({position:"absolute",right:0,top:"calc(50% - 14px)"}),Nn=w(pt,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,o)=>o.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),zn=w(pt,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},o)=>a({},o.popupIndicator,e.popupOpen&&o.popupIndicatorOpen)})(({ownerState:e})=>a({padding:2,marginRight:-2},e.popupOpen&&{transform:"rotate(180deg)"})),Dn=w(No,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[{[`& .${D.option}`]:o.option},o.popper,t.disablePortal&&o.popperDisablePortal]}})(({theme:e,ownerState:o})=>a({zIndex:(e.vars||e).zIndex.modal},o.disablePortal&&{position:"absolute"})),En=w(ft,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,o)=>o.paper})(({theme:e})=>a({},e.typography.body1,{overflow:"auto"})),Bn=w("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,o)=>o.loading})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),jn=w("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,o)=>o.noOptions})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),Wn=w("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,o)=>o.listbox})(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${D.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${D.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${D.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Re(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${D.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Re(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${D.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Re(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}})),_n=w(nn,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,o)=>o.groupLabel})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8})),Un=w("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,o)=>o.groupUl})({padding:0,[`& .${D.option}`]:{paddingLeft:24}}),Hn=u.forwardRef(function(o,t){var r,s,c,d;const i=Pe({props:o,name:"MuiAutocomplete"}),{autoComplete:b=!1,autoHighlight:p=!1,autoSelect:m=!1,blurOnSelect:h=!1,ChipProps:$,className:v,clearIcon:R=Xo||(Xo=f.jsx(Gt,{fontSize:"small"})),clearOnBlur:M=!i.freeSolo,clearOnEscape:P=!1,clearText:O="Clear",closeText:k="Close",componentsProps:C={},defaultValue:I=i.multiple?[]:null,disableClearable:E=!1,disableCloseOnSelect:N=!1,disabled:F=!1,disabledItemsFocusable:q=!1,disableListWrap:le=!1,disablePortal:de=!1,filterSelectedOptions:oe=!1,forcePopupIcon:T="auto",freeSolo:J=!1,fullWidth:G=!1,getLimitTagsText:se=n=>`+${n}`,getOptionLabel:Q,groupBy:re,handleHomeEndKeys:U=!i.freeSolo,includeInputInList:A=!1,limitTags:ie=-1,ListboxComponent:Se="ul",ListboxProps:we,loading:ue=!1,loadingText:W="Loading…",multiple:ee=!1,noOptionsText:fe="No options",openOnFocus:We=!1,openText:Z="Open",PaperComponent:be=ft,PopperComponent:Me=No,popupIcon:Y=Yo||(Yo=f.jsx(gt,{})),readOnly:H=!1,renderGroup:ze,renderInput:_e,renderOption:te,renderTags:S,selectOnFocus:to=!i.freeSolo,size:_="medium",slotProps:xe={}}=i,Fe=ae(i,Ln),{getRootProps:ce,getInputProps:Te,getInputLabelProps:me,getPopupIndicatorProps:Ae,getClearProps:Ye,getTagProps:De,getListboxProps:Ee,getOptionProps:z,value:j,dirty:he,expanded:Ke,id:qe,popupOpen:y,focused:B,focusedTag:X,anchorEl:ke,setAnchorEl:Ze,inputValue:Po,groupedOptions:Ne}=Jt(a({},i,{componentName:"Autocomplete"})),Ge=!E&&!F&&he&&!H,Ue=(!J||T===!0)&&T!==!1,{onMouseDown:no}=Te(),{ref:eo}=we??{},go=Ee(),{ref:mo}=go,ho=ae(go,wn),ko=lo(mo,eo),ro=Q||(n=>{var g;return(g=n.label)!=null?g:n}),Ce=a({},i,{disablePortal:de,expanded:Ke,focused:B,fullWidth:G,getOptionLabel:ro,hasClearIcon:Ge,hasPopupIcon:Ue,inputFocused:X===-1,popupOpen:y,size:_}),ve=Fn(Ce);let Be;if(ee&&j.length>0){const n=g=>a({className:ve.tag,disabled:F},De(g));S?Be=S(j,n,Ce):Be=j.map((g,x)=>f.jsx(fn,a({label:ro(g),size:_},n({index:x}),$)))}if(ie>-1&&Array.isArray(Be)){const n=Be.length-ie;!B&&n>0&&(Be=Be.splice(0,ie),Be.push(f.jsx("span",{className:ve.tag,children:se(n)},Be.length)))}const Ro=ze||(n=>f.jsxs("li",{children:[f.jsx(_n,{className:ve.groupLabel,ownerState:Ce,component:"div",children:n.group}),f.jsx(Un,{className:ve.groupUl,ownerState:Ce,children:n.children})]},n.key)),Lo=te||((n,g)=>{const{key:x}=n,K=ae(n,Mn);return f.jsx("li",a({},K,{children:ro(g)}),x)}),vo=(n,g)=>{const x=z({option:n,index:g});return Lo(a({},x,{className:ve.option}),n,{selected:x["aria-selected"],index:g,inputValue:Po},Ce)},co=(r=xe.clearIndicator)!=null?r:C.clearIndicator,oo=(s=xe.paper)!=null?s:C.paper,ao=(c=xe.popper)!=null?c:C.popper,l=(d=xe.popupIndicator)!=null?d:C.popupIndicator;return f.jsxs(u.Fragment,{children:[f.jsx(Tn,a({ref:t,className:ne(ve.root,v),ownerState:Ce},ce(Fe),{children:_e({id:qe,disabled:F,fullWidth:!0,size:_==="small"?"small":void 0,InputLabelProps:me(),InputProps:a({ref:Ze,className:ve.inputRoot,startAdornment:Be,onClick:n=>{n.target===n.currentTarget&&no(n)}},(Ge||Ue)&&{endAdornment:f.jsxs(An,{className:ve.endAdornment,ownerState:Ce,children:[Ge?f.jsx(Nn,a({},Ye(),{"aria-label":O,title:O,ownerState:Ce},co,{className:ne(ve.clearIndicator,co==null?void 0:co.className),children:R})):null,Ue?f.jsx(zn,a({},Ae(),{disabled:F,"aria-label":y?k:Z,title:y?k:Z,ownerState:Ce},l,{className:ne(ve.popupIndicator,l==null?void 0:l.className),children:Y})):null]})}),inputProps:a({className:ve.input,disabled:F,readOnly:H},Te())})})),ke?f.jsx(Dn,a({as:Me,disablePortal:de,style:{width:ke?ke.clientWidth:null},ownerState:Ce,role:"presentation",anchorEl:ke,open:y},ao,{className:ne(ve.popper,ao==null?void 0:ao.className),children:f.jsxs(En,a({ownerState:Ce,as:be},oo,{className:ne(ve.paper,oo==null?void 0:oo.className),children:[ue&&Ne.length===0?f.jsx(Bn,{className:ve.loading,ownerState:Ce,children:W}):null,Ne.length===0&&!J&&!ue?f.jsx(jn,{className:ve.noOptions,ownerState:Ce,role:"presentation",onMouseDown:n=>{n.preventDefault()},children:fe}):null,Ne.length>0?f.jsx(Wn,a({as:Se,className:ve.listbox,ownerState:Ce},ho,we,{ref:ko,children:Ne.map((n,g)=>re?Ro({key:n.key,group:n.group,children:n.options.map((x,K)=>vo(x,n.index+K))}):vo(n,g))})):null]}))})):null]})}),Vn=Hn;function Kn(e){return ye("MuiCircularProgress",e)}$e("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const qn=["className","color","disableShrink","size","style","thickness","value","variant"];let So=e=>e,Zo,Jo,Qo,et;const Je=44,Gn=ct(Zo||(Zo=So` +import{r as u,j as f,bX as kt,bY as Rt,a2 as xo,a0 as Ot,x as a,L as ye,M as $e,O as w,Y as L,S as Pe,H as ae,U as ne,V as Ie,P as Re,Z as lo,X as Uo,bZ as Lt,b_ as wt,$ as st,b$ as it,bu as ct,bv as dt,ai as Xe,c0 as To,a3 as Mt,al as Ft,s as Tt,a as je,F as At}from"./index-6541aa03.js";import{T as Nt}from"./index-8f946e20.js";import{a as Ao,u as fo,b as so,f as io,i as ut,c as zt,P as No,F as Dt,S as Et}from"./Stack-bcf44d60.js";import{X as Ho,f as pt,av as ft,aO as Bt,J as Fo,P as jt,aP as Wt,Y as Vo}from"./index-ad617d4b.js";import{c as zo}from"./createSvgIcon-0b5f6bf4.js";import{T as _t}from"./TextareaAutosize-387bd327.js";const Ut=e=>{const o=u.useRef({});return u.useEffect(()=>{o.current=e}),o.current},Ht=Ut;function Vt(e){return e==null||Object.keys(e).length===0}function Kt(e){const{styles:o,defaultTheme:t={}}=e,r=typeof o=="function"?s=>o(Vt(s)?t:s):o;return f.jsx(kt,{styles:r})}function qt({styles:e,themeId:o,defaultTheme:t={}}){const r=Rt(t),s=typeof e=="function"?e(o&&r[o]||r):e;return f.jsx(Kt,{styles:s})}const Gt=zo(f.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");function Ko(e){return typeof e.normalize<"u"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function Xt(e={}){const{ignoreAccents:o=!0,ignoreCase:t=!0,limit:r,matchFrom:s="any",stringify:c,trim:d=!1}=e;return(i,{inputValue:b,getOptionLabel:p})=>{let m=d?b.trim():b;t&&(m=m.toLowerCase()),o&&(m=Ko(m));const h=m?i.filter($=>{let v=(c||p)($);return t&&(v=v.toLowerCase()),o&&(v=Ko(v)),s==="start"?v.indexOf(m)===0:v.indexOf(m)>-1}):i;return typeof r=="number"?h.slice(0,r):h}}function wo(e,o){for(let t=0;t{var o;return e.current!==null&&((o=e.current.parentElement)==null?void 0:o.contains(document.activeElement))};function Jt(e){const{unstable_isActiveElementInListbox:o=Zt,unstable_classNamePrefix:t="Mui",autoComplete:r=!1,autoHighlight:s=!1,autoSelect:c=!1,blurOnSelect:d=!1,clearOnBlur:i=!e.freeSolo,clearOnEscape:b=!1,componentName:p="useAutocomplete",defaultValue:m=e.multiple?[]:null,disableClearable:h=!1,disableCloseOnSelect:$=!1,disabled:v,disabledItemsFocusable:R=!1,disableListWrap:M=!1,filterOptions:P=Yt,filterSelectedOptions:O=!1,freeSolo:k=!1,getOptionDisabled:C,getOptionKey:I,getOptionLabel:E=l=>{var n;return(n=l.label)!=null?n:l},groupBy:N,handleHomeEndKeys:F=!e.freeSolo,id:q,includeInputInList:le=!1,inputValue:de,isOptionEqualToValue:oe=(l,n)=>l===n,multiple:T=!1,onChange:J,onClose:G,onHighlightChange:se,onInputChange:Q,onOpen:re,open:U,openOnFocus:A=!1,options:ie,readOnly:Se=!1,selectOnFocus:we=!e.freeSolo,value:ue}=e,W=Ao(q);let ee=E;ee=l=>{const n=E(l);return typeof n!="string"?String(n):n};const fe=u.useRef(!1),We=u.useRef(!0),Z=u.useRef(null),be=u.useRef(null),[Me,Y]=u.useState(null),[H,ze]=u.useState(-1),_e=s?0:-1,te=u.useRef(_e),[S,to]=fo({controlled:ue,default:m,name:p}),[_,xe]=fo({controlled:de,default:"",name:p,state:"inputValue"}),[Fe,ce]=u.useState(!1),Te=u.useCallback((l,n)=>{if(!(T?S.length!(O&&(T?S:[S]).some(n=>n!==null&&oe(l,n)))),{inputValue:Ee&&Ye?"":_,getOptionLabel:ee}):[],he=Ht({filteredOptions:j,value:S,inputValue:_});u.useEffect(()=>{const l=S!==he.value;Fe&&!l||k&&!l||Te(null,S)},[S,Te,Fe,he.value,k]);const Ke=me&&j.length>0&&!Se,qe=xo(l=>{l===-1?Z.current.focus():Me.querySelector(`[data-tag-index="${l}"]`).focus()});u.useEffect(()=>{T&&H>S.length-1&&(ze(-1),qe(-1))},[S,T,H,qe]);function y(l,n){if(!be.current||l<0||l>=j.length)return-1;let g=l;for(;;){const x=be.current.querySelector(`[data-option-index="${g}"]`),K=R?!1:!x||x.disabled||x.getAttribute("aria-disabled")==="true";if(x&&x.hasAttribute("tabindex")&&!K)return g;if(n==="next"?g=(g+1)%j.length:g=(g-1+j.length)%j.length,g===l)return-1}}const B=xo(({event:l,index:n,reason:g="auto"})=>{if(te.current=n,n===-1?Z.current.removeAttribute("aria-activedescendant"):Z.current.setAttribute("aria-activedescendant",`${W}-option-${n}`),se&&se(l,n===-1?null:j[n],g),!be.current)return;const x=be.current.querySelector(`[role="option"].${t}-focused`);x&&(x.classList.remove(`${t}-focused`),x.classList.remove(`${t}-focusVisible`));let K=be.current;if(be.current.getAttribute("role")!=="listbox"&&(K=be.current.parentElement.querySelector('[role="listbox"]')),!K)return;if(n===-1){K.scrollTop=0;return}const pe=be.current.querySelector(`[data-option-index="${n}"]`);if(pe&&(pe.classList.add(`${t}-focused`),g==="keyboard"&&pe.classList.add(`${t}-focusVisible`),K.scrollHeight>K.clientHeight&&g!=="mouse"&&g!=="touch")){const ge=pe,He=K.clientHeight+K.scrollTop,_o=ge.offsetTop+ge.offsetHeight;_o>He?K.scrollTop=_o-K.clientHeight:ge.offsetTop-ge.offsetHeight*(N?1.3:0){if(!z)return;const pe=y((()=>{const ge=j.length-1;if(n==="reset")return _e;if(n==="start")return 0;if(n==="end")return ge;const He=te.current+n;return He<0?He===-1&&le?-1:M&&te.current!==-1||Math.abs(n)>1?0:ge:He>ge?He===ge+1&&le?-1:M||Math.abs(n)>1?ge:0:He})(),g);if(B({index:pe,reason:x,event:l}),r&&n!=="reset")if(pe===-1)Z.current.value=_;else{const ge=ee(j[pe]);Z.current.value=ge,ge.toLowerCase().indexOf(_.toLowerCase())===0&&_.length>0&&Z.current.setSelectionRange(_.length,ge.length)}}),ke=()=>{const l=(n,g)=>{const x=n?ee(n):"",K=g?ee(g):"";return x===K};if(te.current!==-1&&he.filteredOptions&&he.filteredOptions.length!==j.length&&he.inputValue===_&&(T?S.length===he.value.length&&he.value.every((n,g)=>ee(S[g])===ee(n)):l(he.value,S))){const n=he.filteredOptions[te.current];if(n&&j.some(x=>ee(x)===ee(n)))return!0}return!1},Ze=u.useCallback(()=>{if(!z||ke())return;const l=T?S[0]:S;if(j.length===0||l==null){X({diff:"reset"});return}if(be.current){if(l!=null){const n=j[te.current];if(T&&n&&wo(S,x=>oe(n,x))!==-1)return;const g=wo(j,x=>oe(x,l));g===-1?X({diff:"reset"}):B({index:g});return}if(te.current>=j.length-1){B({index:j.length-1});return}B({index:te.current})}},[j.length,T?!1:S,O,X,B,z,_,T]),Po=xo(l=>{Ot(be,l),l&&Ze()});u.useEffect(()=>{Ze()},[Ze]);const Ne=l=>{me||(Ae(!0),De(!0),re&&re(l))},Ge=(l,n)=>{me&&(Ae(!1),G&&G(l,n))},Ue=(l,n,g,x)=>{if(T){if(S.length===n.length&&S.every((K,pe)=>K===n[pe]))return}else if(S===n)return;J&&J(l,n,g,x),to(n)},no=u.useRef(!1),eo=(l,n,g="selectOption",x="options")=>{let K=g,pe=n;if(T){pe=Array.isArray(S)?S.slice():[];const ge=wo(pe,He=>oe(n,He));ge===-1?pe.push(n):x!=="freeSolo"&&(pe.splice(ge,1),K="removeOption")}Te(l,pe),Ue(l,pe,K,{option:n}),!$&&(!l||!l.ctrlKey&&!l.metaKey)&&Ge(l,K),(d===!0||d==="touch"&&no.current||d==="mouse"&&!no.current)&&Z.current.blur()};function go(l,n){if(l===-1)return-1;let g=l;for(;;){if(n==="next"&&g===S.length||n==="previous"&&g===-1)return-1;const x=Me.querySelector(`[data-tag-index="${g}"]`);if(!x||!x.hasAttribute("tabindex")||x.disabled||x.getAttribute("aria-disabled")==="true")g+=n==="next"?1:-1;else return g}}const mo=(l,n)=>{if(!T)return;_===""&&Ge(l,"toggleInput");let g=H;H===-1?_===""&&n==="previous"&&(g=S.length-1):(g+=n==="next"?1:-1,g<0&&(g=0),g===S.length&&(g=-1)),g=go(g,n),ze(g),qe(g)},ho=l=>{fe.current=!0,xe(""),Q&&Q(l,"","clear"),Ue(l,T?[]:null,"clear")},ko=l=>n=>{if(l.onKeyDown&&l.onKeyDown(n),!n.defaultMuiPrevented&&(H!==-1&&["ArrowLeft","ArrowRight"].indexOf(n.key)===-1&&(ze(-1),qe(-1)),n.which!==229))switch(n.key){case"Home":z&&F&&(n.preventDefault(),X({diff:"start",direction:"next",reason:"keyboard",event:n}));break;case"End":z&&F&&(n.preventDefault(),X({diff:"end",direction:"previous",reason:"keyboard",event:n}));break;case"PageUp":n.preventDefault(),X({diff:-qo,direction:"previous",reason:"keyboard",event:n}),Ne(n);break;case"PageDown":n.preventDefault(),X({diff:qo,direction:"next",reason:"keyboard",event:n}),Ne(n);break;case"ArrowDown":n.preventDefault(),X({diff:1,direction:"next",reason:"keyboard",event:n}),Ne(n);break;case"ArrowUp":n.preventDefault(),X({diff:-1,direction:"previous",reason:"keyboard",event:n}),Ne(n);break;case"ArrowLeft":mo(n,"previous");break;case"ArrowRight":mo(n,"next");break;case"Enter":if(te.current!==-1&&z){const g=j[te.current],x=C?C(g):!1;if(n.preventDefault(),x)return;eo(n,g,"selectOption"),r&&Z.current.setSelectionRange(Z.current.value.length,Z.current.value.length)}else k&&_!==""&&Ee===!1&&(T&&n.preventDefault(),eo(n,_,"createOption","freeSolo"));break;case"Escape":z?(n.preventDefault(),n.stopPropagation(),Ge(n,"escape")):b&&(_!==""||T&&S.length>0)&&(n.preventDefault(),n.stopPropagation(),ho(n));break;case"Backspace":if(T&&!Se&&_===""&&S.length>0){const g=H===-1?S.length-1:H,x=S.slice();x.splice(g,1),Ue(n,x,"removeOption",{option:S[g]})}break;case"Delete":if(T&&!Se&&_===""&&S.length>0&&H!==-1){const g=H,x=S.slice();x.splice(g,1),Ue(n,x,"removeOption",{option:S[g]})}break}},jo=l=>{ce(!0),A&&!fe.current&&Ne(l)},ro=l=>{if(o(be)){Z.current.focus();return}ce(!1),We.current=!0,fe.current=!1,c&&te.current!==-1&&z?eo(l,j[te.current],"blur"):c&&k&&_!==""?eo(l,_,"blur","freeSolo"):i&&Te(l,S),Ge(l,"blur")},Ce=l=>{const n=l.target.value;_!==n&&(xe(n),De(!1),Q&&Q(l,n,"input")),n===""?!h&&!T&&Ue(l,null,"clear"):Ne(l)},ve=l=>{const n=Number(l.currentTarget.getAttribute("data-option-index"));te.current!==n&&B({event:l,index:n,reason:"mouse"})},Be=l=>{B({event:l,index:Number(l.currentTarget.getAttribute("data-option-index")),reason:"touch"}),no.current=!0},Wo=l=>{const n=Number(l.currentTarget.getAttribute("data-option-index"));eo(l,j[n],"selectOption"),no.current=!1},Ro=l=>n=>{const g=S.slice();g.splice(l,1),Ue(n,g,"removeOption",{option:S[l]})},Oo=l=>{me?Ge(l,"toggleInput"):Ne(l)},Lo=l=>{l.currentTarget.contains(l.target)&&l.target.getAttribute("id")!==W&&l.preventDefault()},vo=l=>{l.currentTarget.contains(l.target)&&(Z.current.focus(),we&&We.current&&Z.current.selectionEnd-Z.current.selectionStart===0&&Z.current.select(),We.current=!1)},co=l=>{!v&&(_===""||!me)&&Oo(l)};let oo=k&&_.length>0;oo=oo||(T?S.length>0:S!==null);let ao=j;return N&&(ao=j.reduce((l,n,g)=>{const x=N(n);return l.length>0&&l[l.length-1].group===x?l[l.length-1].options.push(n):l.push({key:g,index:g,group:x,options:[n]}),l},[])),v&&Fe&&ro(),{getRootProps:(l={})=>a({"aria-owns":Ke?`${W}-listbox`:null},l,{onKeyDown:ko(l),onMouseDown:Lo,onClick:vo}),getInputLabelProps:()=>({id:`${W}-label`,htmlFor:W}),getInputProps:()=>({id:W,value:_,onBlur:ro,onFocus:jo,onChange:Ce,onMouseDown:co,"aria-activedescendant":z?"":null,"aria-autocomplete":r?"both":"list","aria-controls":Ke?`${W}-listbox`:void 0,"aria-expanded":Ke,autoComplete:"off",ref:Z,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:v}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:ho}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:Oo}),getTagProps:({index:l})=>a({key:l,"data-tag-index":l,tabIndex:-1},!Se&&{onDelete:Ro(l)}),getListboxProps:()=>({role:"listbox",id:`${W}-listbox`,"aria-labelledby":`${W}-label`,ref:Po,onMouseDown:l=>{l.preventDefault()}}),getOptionProps:({index:l,option:n})=>{var g;const x=(T?S:[S]).some(pe=>pe!=null&&oe(n,pe)),K=C?C(n):!1;return{key:(g=I==null?void 0:I(n))!=null?g:ee(n),tabIndex:-1,role:"option",id:`${W}-option-${l}`,onMouseMove:ve,onClick:Wo,onTouchStart:Be,"data-option-index":l,"aria-disabled":K,"aria-selected":x}},id:W,inputValue:_,value:S,dirty:oo,expanded:z&&Me,popupOpen:z,focused:Fe||H!==-1,anchorEl:Me,setAnchorEl:Y,focusedTag:H,groupedOptions:ao}}function Qt(e){return ye("MuiListSubheader",e)}$e("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const en=["className","color","component","disableGutters","disableSticky","inset"],on=e=>{const{classes:o,color:t,disableGutters:r,inset:s,disableSticky:c}=e,d={root:["root",t!=="default"&&`color${L(t)}`,!r&&"gutters",s&&"inset",!c&&"sticky"]};return Ie(d,Qt,o)},tn=w("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.root,t.color!=="default"&&o[`color${L(t.color)}`],!t.disableGutters&&o.gutters,t.inset&&o.inset,!t.disableSticky&&o.sticky]}})(({theme:e,ownerState:o})=>a({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},o.color==="primary"&&{color:(e.vars||e).palette.primary.main},o.color==="inherit"&&{color:"inherit"},!o.disableGutters&&{paddingLeft:16,paddingRight:16},o.inset&&{paddingLeft:72},!o.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper})),bt=u.forwardRef(function(o,t){const r=Pe({props:o,name:"MuiListSubheader"}),{className:s,color:c="default",component:d="li",disableGutters:i=!1,disableSticky:b=!1,inset:p=!1}=r,m=ae(r,en),h=a({},r,{color:c,component:d,disableGutters:i,disableSticky:b,inset:p}),$=on(h);return f.jsx(tn,a({as:d,className:ne($.root,s),ref:t,ownerState:h},m))});bt.muiSkipListHighlight=!0;const nn=bt,rn=zo(f.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function an(e){return ye("MuiChip",e)}const ln=$e("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),V=ln,sn=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],cn=e=>{const{classes:o,disabled:t,size:r,color:s,iconColor:c,onDelete:d,clickable:i,variant:b}=e,p={root:["root",b,t&&"disabled",`size${L(r)}`,`color${L(s)}`,i&&"clickable",i&&`clickableColor${L(s)}`,d&&"deletable",d&&`deletableColor${L(s)}`,`${b}${L(s)}`],label:["label",`label${L(r)}`],avatar:["avatar",`avatar${L(r)}`,`avatarColor${L(s)}`],icon:["icon",`icon${L(r)}`,`iconColor${L(c)}`],deleteIcon:["deleteIcon",`deleteIcon${L(r)}`,`deleteIconColor${L(s)}`,`deleteIcon${L(b)}Color${L(s)}`]};return Ie(p,an,o)},dn=w("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e,{color:r,iconColor:s,clickable:c,onDelete:d,size:i,variant:b}=t;return[{[`& .${V.avatar}`]:o.avatar},{[`& .${V.avatar}`]:o[`avatar${L(i)}`]},{[`& .${V.avatar}`]:o[`avatarColor${L(r)}`]},{[`& .${V.icon}`]:o.icon},{[`& .${V.icon}`]:o[`icon${L(i)}`]},{[`& .${V.icon}`]:o[`iconColor${L(s)}`]},{[`& .${V.deleteIcon}`]:o.deleteIcon},{[`& .${V.deleteIcon}`]:o[`deleteIcon${L(i)}`]},{[`& .${V.deleteIcon}`]:o[`deleteIconColor${L(r)}`]},{[`& .${V.deleteIcon}`]:o[`deleteIcon${L(b)}Color${L(r)}`]},o.root,o[`size${L(i)}`],o[`color${L(r)}`],c&&o.clickable,c&&r!=="default"&&o[`clickableColor${L(r)})`],d&&o.deletable,d&&r!=="default"&&o[`deletableColor${L(r)}`],o[b],o[`${b}${L(r)}`]]}})(({theme:e,ownerState:o})=>{const t=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return a({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${V.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${V.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${V.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${V.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${V.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${V.icon}`]:a({marginLeft:5,marginRight:-6},o.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},o.iconColor===o.color&&a({color:e.vars?e.vars.palette.Chip.defaultIconColor:t},o.color!=="default"&&{color:"inherit"})),[`& .${V.deleteIcon}`]:a({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:Re(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:Re(e.palette.text.primary,.4)}},o.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},o.color!=="default"&&{color:e.vars?`rgba(${e.vars.palette[o.color].contrastTextChannel} / 0.7)`:Re(e.palette[o.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[o.color].contrastText}})},o.size==="small"&&{height:24},o.color!=="default"&&{backgroundColor:(e.vars||e).palette[o.color].main,color:(e.vars||e).palette[o.color].contrastText},o.onDelete&&{[`&.${V.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Re(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},o.onDelete&&o.color!=="default"&&{[`&.${V.focusVisible}`]:{backgroundColor:(e.vars||e).palette[o.color].dark}})},({theme:e,ownerState:o})=>a({},o.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Re(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${V.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Re(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},o.clickable&&o.color!=="default"&&{[`&:hover, &.${V.focusVisible}`]:{backgroundColor:(e.vars||e).palette[o.color].dark}}),({theme:e,ownerState:o})=>a({},o.variant==="outlined"&&{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${V.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${V.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${V.avatar}`]:{marginLeft:4},[`& .${V.avatarSmall}`]:{marginLeft:2},[`& .${V.icon}`]:{marginLeft:4},[`& .${V.iconSmall}`]:{marginLeft:2},[`& .${V.deleteIcon}`]:{marginRight:5},[`& .${V.deleteIconSmall}`]:{marginRight:3}},o.variant==="outlined"&&o.color!=="default"&&{color:(e.vars||e).palette[o.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[o.color].mainChannel} / 0.7)`:Re(e.palette[o.color].main,.7)}`,[`&.${V.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[o.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Re(e.palette[o.color].main,e.palette.action.hoverOpacity)},[`&.${V.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[o.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:Re(e.palette[o.color].main,e.palette.action.focusOpacity)},[`& .${V.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[o.color].mainChannel} / 0.7)`:Re(e.palette[o.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[o.color].main}}})),un=w("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,o)=>{const{ownerState:t}=e,{size:r}=t;return[o.label,o[`label${L(r)}`]]}})(({ownerState:e})=>a({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.variant==="outlined"&&{paddingLeft:11,paddingRight:11},e.size==="small"&&{paddingLeft:8,paddingRight:8},e.size==="small"&&e.variant==="outlined"&&{paddingLeft:7,paddingRight:7}));function Go(e){return e.key==="Backspace"||e.key==="Delete"}const pn=u.forwardRef(function(o,t){const r=Pe({props:o,name:"MuiChip"}),{avatar:s,className:c,clickable:d,color:i="default",component:b,deleteIcon:p,disabled:m=!1,icon:h,label:$,onClick:v,onDelete:R,onKeyDown:M,onKeyUp:P,size:O="medium",variant:k="filled",tabIndex:C,skipFocusWhenDisabled:I=!1}=r,E=ae(r,sn),N=u.useRef(null),F=lo(N,t),q=A=>{A.stopPropagation(),R&&R(A)},le=A=>{A.currentTarget===A.target&&Go(A)&&A.preventDefault(),M&&M(A)},de=A=>{A.currentTarget===A.target&&(R&&Go(A)?R(A):A.key==="Escape"&&N.current&&N.current.blur()),P&&P(A)},oe=d!==!1&&v?!0:d,T=oe||R?Uo:b||"div",J=a({},r,{component:T,disabled:m,size:O,color:i,iconColor:u.isValidElement(h)&&h.props.color||i,onDelete:!!R,clickable:oe,variant:k}),G=cn(J),se=T===Uo?a({component:b||"div",focusVisibleClassName:G.focusVisible},R&&{disableRipple:!0}):{};let Q=null;R&&(Q=p&&u.isValidElement(p)?u.cloneElement(p,{className:ne(p.props.className,G.deleteIcon),onClick:q}):f.jsx(rn,{className:ne(G.deleteIcon),onClick:q}));let re=null;s&&u.isValidElement(s)&&(re=u.cloneElement(s,{className:ne(G.avatar,s.props.className)}));let U=null;return h&&u.isValidElement(h)&&(U=u.cloneElement(h,{className:ne(G.icon,h.props.className)})),f.jsxs(dn,a({as:T,className:ne(G.root,c),disabled:oe&&m?!0:void 0,onClick:v,onKeyDown:le,onKeyUp:de,ref:F,tabIndex:I&&m?-1:C,ownerState:J},se,E,{children:[re||U,f.jsx(un,{className:ne(G.label),ownerState:J,children:$}),Q]}))}),fn=pn;function bn(e){return f.jsx(qt,a({},e,{defaultTheme:Lt,themeId:wt}))}function gn(e){return ye("MuiInputBase",e)}const mn=$e("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Oe=mn,hn=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],Co=(e,o)=>{const{ownerState:t}=e;return[o.root,t.formControl&&o.formControl,t.startAdornment&&o.adornedStart,t.endAdornment&&o.adornedEnd,t.error&&o.error,t.size==="small"&&o.sizeSmall,t.multiline&&o.multiline,t.color&&o[`color${L(t.color)}`],t.fullWidth&&o.fullWidth,t.hiddenLabel&&o.hiddenLabel]},yo=(e,o)=>{const{ownerState:t}=e;return[o.input,t.size==="small"&&o.inputSizeSmall,t.multiline&&o.inputMultiline,t.type==="search"&&o.inputTypeSearch,t.startAdornment&&o.inputAdornedStart,t.endAdornment&&o.inputAdornedEnd,t.hiddenLabel&&o.inputHiddenLabel]},vn=e=>{const{classes:o,color:t,disabled:r,error:s,endAdornment:c,focused:d,formControl:i,fullWidth:b,hiddenLabel:p,multiline:m,readOnly:h,size:$,startAdornment:v,type:R}=e,M={root:["root",`color${L(t)}`,r&&"disabled",s&&"error",b&&"fullWidth",d&&"focused",i&&"formControl",$&&$!=="medium"&&`size${L($)}`,m&&"multiline",v&&"adornedStart",c&&"adornedEnd",p&&"hiddenLabel",h&&"readOnly"],input:["input",r&&"disabled",R==="search"&&"inputTypeSearch",m&&"inputMultiline",$==="small"&&"inputSizeSmall",p&&"inputHiddenLabel",v&&"inputAdornedStart",c&&"inputAdornedEnd",h&&"readOnly"]};return Ie(M,gn,o)},$o=w("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Co})(({theme:e,ownerState:o})=>a({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Oe.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},o.multiline&&a({padding:"4px 0 5px"},o.size==="small"&&{paddingTop:1}),o.fullWidth&&{width:"100%"})),Io=w("input",{name:"MuiInputBase",slot:"Input",overridesResolver:yo})(({theme:e,ownerState:o})=>{const t=e.palette.mode==="light",r=a({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),s={opacity:"0 !important"},c=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return a({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Oe.formControl} &`]:{"&::-webkit-input-placeholder":s,"&::-moz-placeholder":s,"&:-ms-input-placeholder":s,"&::-ms-input-placeholder":s,"&:focus::-webkit-input-placeholder":c,"&:focus::-moz-placeholder":c,"&:focus:-ms-input-placeholder":c,"&:focus::-ms-input-placeholder":c},[`&.${Oe.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},o.size==="small"&&{paddingTop:1},o.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},o.type==="search"&&{MozAppearance:"textfield"})}),xn=f.jsx(bn,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Cn=u.forwardRef(function(o,t){var r;const s=Pe({props:o,name:"MuiInputBase"}),{"aria-describedby":c,autoComplete:d,autoFocus:i,className:b,components:p={},componentsProps:m={},defaultValue:h,disabled:$,disableInjectingGlobalStyles:v,endAdornment:R,fullWidth:M=!1,id:P,inputComponent:O="input",inputProps:k={},inputRef:C,maxRows:I,minRows:E,multiline:N=!1,name:F,onBlur:q,onChange:le,onClick:de,onFocus:oe,onKeyDown:T,onKeyUp:J,placeholder:G,readOnly:se,renderSuffix:Q,rows:re,slotProps:U={},slots:A={},startAdornment:ie,type:Se="text",value:we}=s,ue=ae(s,hn),W=k.value!=null?k.value:we,{current:ee}=u.useRef(W!=null),fe=u.useRef(),We=u.useCallback(z=>{},[]),Z=lo(fe,C,k.ref,We),[be,Me]=u.useState(!1),Y=so(),H=io({props:s,muiFormControl:Y,states:["color","disabled","error","hiddenLabel","size","required","filled"]});H.focused=Y?Y.focused:be,u.useEffect(()=>{!Y&&$&&be&&(Me(!1),q&&q())},[Y,$,be,q]);const ze=Y&&Y.onFilled,_e=Y&&Y.onEmpty,te=u.useCallback(z=>{ut(z)?ze&&ze():_e&&_e()},[ze,_e]);st(()=>{ee&&te({value:W})},[W,te,ee]);const S=z=>{if(H.disabled){z.stopPropagation();return}oe&&oe(z),k.onFocus&&k.onFocus(z),Y&&Y.onFocus?Y.onFocus(z):Me(!0)},to=z=>{q&&q(z),k.onBlur&&k.onBlur(z),Y&&Y.onBlur?Y.onBlur(z):Me(!1)},_=(z,...j)=>{if(!ee){const he=z.target||fe.current;if(he==null)throw new Error(it(1));te({value:he.value})}k.onChange&&k.onChange(z,...j),le&&le(z,...j)};u.useEffect(()=>{te(fe.current)},[]);const xe=z=>{fe.current&&z.currentTarget===z.target&&fe.current.focus(),de&&de(z)};let Fe=O,ce=k;N&&Fe==="input"&&(re?ce=a({type:void 0,minRows:re,maxRows:re},ce):ce=a({type:void 0,maxRows:I,minRows:E},ce),Fe=_t);const Te=z=>{te(z.animationName==="mui-auto-fill-cancel"?fe.current:{value:"x"})};u.useEffect(()=>{Y&&Y.setAdornedStart(!!ie)},[Y,ie]);const me=a({},s,{color:H.color||"primary",disabled:H.disabled,endAdornment:R,error:H.error,focused:H.focused,formControl:Y,fullWidth:M,hiddenLabel:H.hiddenLabel,multiline:N,size:H.size,startAdornment:ie,type:Se}),Ae=vn(me),Ye=A.root||p.Root||$o,De=U.root||m.root||{},Ee=A.input||p.Input||Io;return ce=a({},ce,(r=U.input)!=null?r:m.input),f.jsxs(u.Fragment,{children:[!v&&xn,f.jsxs(Ye,a({},De,!Ho(Ye)&&{ownerState:a({},me,De.ownerState)},{ref:t,onClick:xe},ue,{className:ne(Ae.root,De.className,b,se&&"MuiInputBase-readOnly"),children:[ie,f.jsx(zt.Provider,{value:null,children:f.jsx(Ee,a({ownerState:me,"aria-invalid":H.error,"aria-describedby":c,autoComplete:d,autoFocus:i,defaultValue:h,disabled:H.disabled,id:P,onAnimationStart:Te,name:F,placeholder:G,readOnly:se,required:H.required,rows:re,value:W,onKeyDown:T,onKeyUp:J,type:Se},ce,!Ho(Ee)&&{as:Fe,ownerState:a({},me,ce.ownerState)},{ref:Z,className:ne(Ae.input,ce.className,se&&"MuiInputBase-readOnly"),onBlur:to,onChange:_,onFocus:S}))}),R,Q?Q(a({},H,{startAdornment:ie})):null]}))]})}),Do=Cn;function yn(e){return ye("MuiInput",e)}const $n=a({},Oe,$e("MuiInput",["root","underline","input"])),Qe=$n;function In(e){return ye("MuiOutlinedInput",e)}const Sn=a({},Oe,$e("MuiOutlinedInput",["root","notchedOutline","input"])),Ve=Sn;function Pn(e){return ye("MuiFilledInput",e)}const kn=a({},Oe,$e("MuiFilledInput",["root","underline","input"])),Le=kn,gt=zo(f.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function Rn(e){return ye("MuiAutocomplete",e)}const On=$e("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]),D=On;var Xo,Yo;const Ln=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionKey","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","slotProps","value"],wn=["ref"],Mn=["key"],Fn=e=>{const{classes:o,disablePortal:t,expanded:r,focused:s,fullWidth:c,hasClearIcon:d,hasPopupIcon:i,inputFocused:b,popupOpen:p,size:m}=e,h={root:["root",r&&"expanded",s&&"focused",c&&"fullWidth",d&&"hasClearIcon",i&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",b&&"inputFocused"],tag:["tag",`tagSize${L(m)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",p&&"popupIndicatorOpen"],popper:["popper",t&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return Ie(h,Rn,o)},Tn=w("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e,{fullWidth:r,hasClearIcon:s,hasPopupIcon:c,inputFocused:d,size:i}=t;return[{[`& .${D.tag}`]:o.tag},{[`& .${D.tag}`]:o[`tagSize${L(i)}`]},{[`& .${D.inputRoot}`]:o.inputRoot},{[`& .${D.input}`]:o.input},{[`& .${D.input}`]:d&&o.inputFocused},o.root,r&&o.fullWidth,c&&o.hasPopupIcon,s&&o.hasClearIcon]}})(({ownerState:e})=>a({[`&.${D.focused} .${D.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${D.clearIndicator}`]:{visibility:"visible"}}},e.fullWidth&&{width:"100%"},{[`& .${D.tag}`]:a({margin:3,maxWidth:"calc(100% - 6px)"},e.size==="small"&&{margin:2,maxWidth:"calc(100% - 4px)"}),[`& .${D.inputRoot}`]:{flexWrap:"wrap",[`.${D.hasPopupIcon}&, .${D.hasClearIcon}&`]:{paddingRight:26+4},[`.${D.hasPopupIcon}.${D.hasClearIcon}&`]:{paddingRight:52+4},[`& .${D.input}`]:{width:0,minWidth:30}},[`& .${Qe.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${Qe.root}.${Oe.sizeSmall}`]:{[`& .${Qe.input}`]:{padding:"2px 4px 3px 0"}},[`& .${Ve.root}`]:{padding:9,[`.${D.hasPopupIcon}&, .${D.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${D.hasPopupIcon}.${D.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${D.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${D.endAdornment}`]:{right:9}},[`& .${Ve.root}.${Oe.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${D.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${Le.root}`]:{paddingTop:19,paddingLeft:8,[`.${D.hasPopupIcon}&, .${D.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${D.hasPopupIcon}.${D.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${Le.input}`]:{padding:"7px 4px"},[`& .${D.endAdornment}`]:{right:9}},[`& .${Le.root}.${Oe.sizeSmall}`]:{paddingBottom:1,[`& .${Le.input}`]:{padding:"2.5px 4px"}},[`& .${Oe.hiddenLabel}`]:{paddingTop:8},[`& .${Le.root}.${Oe.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${D.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${Le.root}.${Oe.hiddenLabel}.${Oe.sizeSmall}`]:{[`& .${D.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${D.input}`]:a({flexGrow:1,textOverflow:"ellipsis",opacity:0},e.inputFocused&&{opacity:1})})),An=w("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,o)=>o.endAdornment})({position:"absolute",right:0,top:"calc(50% - 14px)"}),Nn=w(pt,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,o)=>o.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),zn=w(pt,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},o)=>a({},o.popupIndicator,e.popupOpen&&o.popupIndicatorOpen)})(({ownerState:e})=>a({padding:2,marginRight:-2},e.popupOpen&&{transform:"rotate(180deg)"})),Dn=w(No,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[{[`& .${D.option}`]:o.option},o.popper,t.disablePortal&&o.popperDisablePortal]}})(({theme:e,ownerState:o})=>a({zIndex:(e.vars||e).zIndex.modal},o.disablePortal&&{position:"absolute"})),En=w(ft,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,o)=>o.paper})(({theme:e})=>a({},e.typography.body1,{overflow:"auto"})),Bn=w("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,o)=>o.loading})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),jn=w("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,o)=>o.noOptions})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),Wn=w("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,o)=>o.listbox})(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${D.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${D.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${D.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Re(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${D.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Re(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${D.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Re(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}})),_n=w(nn,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,o)=>o.groupLabel})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8})),Un=w("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,o)=>o.groupUl})({padding:0,[`& .${D.option}`]:{paddingLeft:24}}),Hn=u.forwardRef(function(o,t){var r,s,c,d;const i=Pe({props:o,name:"MuiAutocomplete"}),{autoComplete:b=!1,autoHighlight:p=!1,autoSelect:m=!1,blurOnSelect:h=!1,ChipProps:$,className:v,clearIcon:R=Xo||(Xo=f.jsx(Gt,{fontSize:"small"})),clearOnBlur:M=!i.freeSolo,clearOnEscape:P=!1,clearText:O="Clear",closeText:k="Close",componentsProps:C={},defaultValue:I=i.multiple?[]:null,disableClearable:E=!1,disableCloseOnSelect:N=!1,disabled:F=!1,disabledItemsFocusable:q=!1,disableListWrap:le=!1,disablePortal:de=!1,filterSelectedOptions:oe=!1,forcePopupIcon:T="auto",freeSolo:J=!1,fullWidth:G=!1,getLimitTagsText:se=n=>`+${n}`,getOptionLabel:Q,groupBy:re,handleHomeEndKeys:U=!i.freeSolo,includeInputInList:A=!1,limitTags:ie=-1,ListboxComponent:Se="ul",ListboxProps:we,loading:ue=!1,loadingText:W="Loading…",multiple:ee=!1,noOptionsText:fe="No options",openOnFocus:We=!1,openText:Z="Open",PaperComponent:be=ft,PopperComponent:Me=No,popupIcon:Y=Yo||(Yo=f.jsx(gt,{})),readOnly:H=!1,renderGroup:ze,renderInput:_e,renderOption:te,renderTags:S,selectOnFocus:to=!i.freeSolo,size:_="medium",slotProps:xe={}}=i,Fe=ae(i,Ln),{getRootProps:ce,getInputProps:Te,getInputLabelProps:me,getPopupIndicatorProps:Ae,getClearProps:Ye,getTagProps:De,getListboxProps:Ee,getOptionProps:z,value:j,dirty:he,expanded:Ke,id:qe,popupOpen:y,focused:B,focusedTag:X,anchorEl:ke,setAnchorEl:Ze,inputValue:Po,groupedOptions:Ne}=Jt(a({},i,{componentName:"Autocomplete"})),Ge=!E&&!F&&he&&!H,Ue=(!J||T===!0)&&T!==!1,{onMouseDown:no}=Te(),{ref:eo}=we??{},go=Ee(),{ref:mo}=go,ho=ae(go,wn),ko=lo(mo,eo),ro=Q||(n=>{var g;return(g=n.label)!=null?g:n}),Ce=a({},i,{disablePortal:de,expanded:Ke,focused:B,fullWidth:G,getOptionLabel:ro,hasClearIcon:Ge,hasPopupIcon:Ue,inputFocused:X===-1,popupOpen:y,size:_}),ve=Fn(Ce);let Be;if(ee&&j.length>0){const n=g=>a({className:ve.tag,disabled:F},De(g));S?Be=S(j,n,Ce):Be=j.map((g,x)=>f.jsx(fn,a({label:ro(g),size:_},n({index:x}),$)))}if(ie>-1&&Array.isArray(Be)){const n=Be.length-ie;!B&&n>0&&(Be=Be.splice(0,ie),Be.push(f.jsx("span",{className:ve.tag,children:se(n)},Be.length)))}const Ro=ze||(n=>f.jsxs("li",{children:[f.jsx(_n,{className:ve.groupLabel,ownerState:Ce,component:"div",children:n.group}),f.jsx(Un,{className:ve.groupUl,ownerState:Ce,children:n.children})]},n.key)),Lo=te||((n,g)=>{const{key:x}=n,K=ae(n,Mn);return f.jsx("li",a({},K,{children:ro(g)}),x)}),vo=(n,g)=>{const x=z({option:n,index:g});return Lo(a({},x,{className:ve.option}),n,{selected:x["aria-selected"],index:g,inputValue:Po},Ce)},co=(r=xe.clearIndicator)!=null?r:C.clearIndicator,oo=(s=xe.paper)!=null?s:C.paper,ao=(c=xe.popper)!=null?c:C.popper,l=(d=xe.popupIndicator)!=null?d:C.popupIndicator;return f.jsxs(u.Fragment,{children:[f.jsx(Tn,a({ref:t,className:ne(ve.root,v),ownerState:Ce},ce(Fe),{children:_e({id:qe,disabled:F,fullWidth:!0,size:_==="small"?"small":void 0,InputLabelProps:me(),InputProps:a({ref:Ze,className:ve.inputRoot,startAdornment:Be,onClick:n=>{n.target===n.currentTarget&&no(n)}},(Ge||Ue)&&{endAdornment:f.jsxs(An,{className:ve.endAdornment,ownerState:Ce,children:[Ge?f.jsx(Nn,a({},Ye(),{"aria-label":O,title:O,ownerState:Ce},co,{className:ne(ve.clearIndicator,co==null?void 0:co.className),children:R})):null,Ue?f.jsx(zn,a({},Ae(),{disabled:F,"aria-label":y?k:Z,title:y?k:Z,ownerState:Ce},l,{className:ne(ve.popupIndicator,l==null?void 0:l.className),children:Y})):null]})}),inputProps:a({className:ve.input,disabled:F,readOnly:H},Te())})})),ke?f.jsx(Dn,a({as:Me,disablePortal:de,style:{width:ke?ke.clientWidth:null},ownerState:Ce,role:"presentation",anchorEl:ke,open:y},ao,{className:ne(ve.popper,ao==null?void 0:ao.className),children:f.jsxs(En,a({ownerState:Ce,as:be},oo,{className:ne(ve.paper,oo==null?void 0:oo.className),children:[ue&&Ne.length===0?f.jsx(Bn,{className:ve.loading,ownerState:Ce,children:W}):null,Ne.length===0&&!J&&!ue?f.jsx(jn,{className:ve.noOptions,ownerState:Ce,role:"presentation",onMouseDown:n=>{n.preventDefault()},children:fe}):null,Ne.length>0?f.jsx(Wn,a({as:Se,className:ve.listbox,ownerState:Ce},ho,we,{ref:ko,children:Ne.map((n,g)=>re?Ro({key:n.key,group:n.group,children:n.options.map((x,K)=>vo(x,n.index+K))}):vo(n,g))})):null]}))})):null]})}),Vn=Hn;function Kn(e){return ye("MuiCircularProgress",e)}$e("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const qn=["className","color","disableShrink","size","style","thickness","value","variant"];let So=e=>e,Zo,Jo,Qo,et;const Je=44,Gn=ct(Zo||(Zo=So` 0% { transform: rotate(0deg); } diff --git a/build/assets/index-578f4f7c.js b/build/assets/index-d5562a09.js similarity index 99% rename from build/assets/index-578f4f7c.js rename to build/assets/index-d5562a09.js index 252eb5087..4d2924e88 100644 --- a/build/assets/index-578f4f7c.js +++ b/build/assets/index-d5562a09.js @@ -1,4 +1,4 @@ -import{r as y,L as _o,M as jo,O as Wt,x as oe,S as Oo,a3 as Ei,H as Po,j as p,U as To,bx as En,by as gr,V as $o,Y as bt,P as Zr,aj as Ci,ak as Si,s as O,a as j,t as br,bc as _i,bb as xr,T as _e,F as $,aU as hn,aV as gn,b9 as ji,B as Cn,bz as Oi,bA as Hn,v as Ao,bB as Pi,C as mr,bC as Ti,J as c,k as vr,am as Jr,bD as $i,an as Ai,bE as Qr,bF as Mo,ba as ko,e as Ro,bG as Mi,N as gt,z as ar,d as yr,ae as ki,y as ea,aX as Ri}from"./index-3506c528.js";import{A as Dt}from"./index-1575e121.js";import{C as Ie}from"./ClipLoader-273b2bbd.js";import{I as or,f as Bi,aw as Fi,g as Bo,x as ta,z as na,aJ as ra,aK as aa,w as Ni,aL as Ii,aM as Di}from"./index-ccbb14cf.js";import{S as Hi,j as zi,p as Li,q as Gi,r as Wi,m as Ui,F as Vi}from"./isPlainObject-9e89c04f.js";import{P as E}from"./index-c106f68f.js";import{T as Yi,a as Xi}from"./Tabs-53998bef.js";import{p as ir,c as Ki,g as qi}from"./index-90ded230.js";import{e as Zi}from"./Stack-7521353f.js";import{L as Ji,m as Qi,u as me,a as Sn,t as sr,T as Fo,f as No,c as es,k as ts,H as ns,h as oa,C as rs,j as as,i as os}from"./index-b1ebd2b7.js";import{R as is,y as ss,z as ls,V as G,A as qe,I as Ze,Q as ia,J as ln,O as cn,K as sa,e as de,N as cs,r as us,C as ps}from"./three.module-10ab52a5.js";import"./index-d54cb162.js";import"./createSvgIcon-0fd508c0.js";import"./TextareaAutosize-e8dfc0e6.js";import"./Typography-7897fa03.js";const ds=y.createContext(),la=ds;function fs(t){return _o("MuiGrid",t)}const hs=[0,1,2,3,4,5,6,7,8,9,10],gs=["column-reverse","column","row-reverse","row"],bs=["nowrap","wrap-reverse","wrap"],Mt=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],xs=jo("MuiGrid",["root","container","item","zeroMinWidth",...hs.map(t=>`spacing-xs-${t}`),...gs.map(t=>`direction-xs-${t}`),...bs.map(t=>`wrap-xs-${t}`),...Mt.map(t=>`grid-xs-${t}`),...Mt.map(t=>`grid-sm-${t}`),...Mt.map(t=>`grid-md-${t}`),...Mt.map(t=>`grid-lg-${t}`),...Mt.map(t=>`grid-xl-${t}`)]),zt=xs,ms=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function xt(t){const e=parseFloat(t);return`${e}${String(t).replace(String(e),"")||"px"}`}function vs({theme:t,ownerState:e}){let n;return t.breakpoints.keys.reduce((r,a)=>{let o={};if(e[a]&&(n=e[a]),!n)return r;if(n===!0)o={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(n==="auto")o={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const s=En({values:e.columns,breakpoints:t.breakpoints.values}),i=typeof s=="object"?s[a]:s;if(i==null)return r;const l=`${Math.round(n/i*1e8)/1e6}%`;let u={};if(e.container&&e.item&&e.columnSpacing!==0){const d=t.spacing(e.columnSpacing);if(d!=="0px"){const f=`calc(${l} + ${xt(d)})`;u={flexBasis:f,maxWidth:f}}}o=oe({flexBasis:l,flexGrow:0,maxWidth:l},u)}return t.breakpoints.values[a]===0?Object.assign(r,o):r[t.breakpoints.up(a)]=o,r},{})}function ys({theme:t,ownerState:e}){const n=En({values:e.direction,breakpoints:t.breakpoints.values});return gr({theme:t},n,r=>{const a={flexDirection:r};return r.indexOf("column")===0&&(a[`& > .${zt.item}`]={maxWidth:"none"}),a})}function Io({breakpoints:t,values:e}){let n="";Object.keys(e).forEach(a=>{n===""&&e[a]!==0&&(n=a)});const r=Object.keys(t).sort((a,o)=>t[a]-t[o]);return r.slice(0,r.indexOf(n))}function ws({theme:t,ownerState:e}){const{container:n,rowSpacing:r}=e;let a={};if(n&&r!==0){const o=En({values:r,breakpoints:t.breakpoints.values});let s;typeof o=="object"&&(s=Io({breakpoints:t.breakpoints.values,values:o})),a=gr({theme:t},o,(i,l)=>{var u;const d=t.spacing(i);return d!=="0px"?{marginTop:`-${xt(d)}`,[`& > .${zt.item}`]:{paddingTop:xt(d)}}:(u=s)!=null&&u.includes(l)?{}:{marginTop:0,[`& > .${zt.item}`]:{paddingTop:0}}})}return a}function Es({theme:t,ownerState:e}){const{container:n,columnSpacing:r}=e;let a={};if(n&&r!==0){const o=En({values:r,breakpoints:t.breakpoints.values});let s;typeof o=="object"&&(s=Io({breakpoints:t.breakpoints.values,values:o})),a=gr({theme:t},o,(i,l)=>{var u;const d=t.spacing(i);return d!=="0px"?{width:`calc(100% + ${xt(d)})`,marginLeft:`-${xt(d)}`,[`& > .${zt.item}`]:{paddingLeft:xt(d)}}:(u=s)!=null&&u.includes(l)?{}:{width:"100%",marginLeft:0,[`& > .${zt.item}`]:{paddingLeft:0}}})}return a}function Cs(t,e,n={}){if(!t||t<=0)return[];if(typeof t=="string"&&!Number.isNaN(Number(t))||typeof t=="number")return[n[`spacing-xs-${String(t)}`]];const r=[];return e.forEach(a=>{const o=t[a];Number(o)>0&&r.push(n[`spacing-${a}-${String(o)}`])}),r}const Ss=Wt("div",{name:"MuiGrid",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t,{container:r,direction:a,item:o,spacing:s,wrap:i,zeroMinWidth:l,breakpoints:u}=n;let d=[];r&&(d=Cs(s,u,e));const f=[];return u.forEach(h=>{const g=n[h];g&&f.push(e[`grid-${h}-${String(g)}`])}),[e.root,r&&e.container,o&&e.item,l&&e.zeroMinWidth,...d,a!=="row"&&e[`direction-xs-${String(a)}`],i!=="wrap"&&e[`wrap-xs-${String(i)}`],...f]}})(({ownerState:t})=>oe({boxSizing:"border-box"},t.container&&{display:"flex",flexWrap:"wrap",width:"100%"},t.item&&{margin:0},t.zeroMinWidth&&{minWidth:0},t.wrap!=="wrap"&&{flexWrap:t.wrap}),ys,ws,Es,vs);function _s(t,e){if(!t||t<=0)return[];if(typeof t=="string"&&!Number.isNaN(Number(t))||typeof t=="number")return[`spacing-xs-${String(t)}`];const n=[];return e.forEach(r=>{const a=t[r];if(Number(a)>0){const o=`spacing-${r}-${String(a)}`;n.push(o)}}),n}const js=t=>{const{classes:e,container:n,direction:r,item:a,spacing:o,wrap:s,zeroMinWidth:i,breakpoints:l}=t;let u=[];n&&(u=_s(o,l));const d=[];l.forEach(h=>{const g=t[h];g&&d.push(`grid-${h}-${String(g)}`)});const f={root:["root",n&&"container",a&&"item",i&&"zeroMinWidth",...u,r!=="row"&&`direction-xs-${String(r)}`,s!=="wrap"&&`wrap-xs-${String(s)}`,...d]};return $o(f,fs,e)},Os=y.forwardRef(function(e,n){const r=Oo({props:e,name:"MuiGrid"}),{breakpoints:a}=Ei(),o=Zi(r),{className:s,columns:i,columnSpacing:l,component:u="div",container:d=!1,direction:f="row",item:h=!1,rowSpacing:g,spacing:x=0,wrap:m="wrap",zeroMinWidth:v=!1}=o,w=Po(o,ms),_=g||x,B=l||x,P=y.useContext(la),T=d?i||12:P,M={},L=oe({},w);a.keys.forEach(S=>{w[S]!=null&&(M[S]=w[S],delete L[S])});const H=oe({},o,{columns:T,container:d,direction:f,item:h,rowSpacing:_,columnSpacing:B,wrap:m,zeroMinWidth:v,spacing:x},M,{breakpoints:a.keys}),V=js(H);return p.jsx(la.Provider,{value:T,children:p.jsx(Ss,oe({ownerState:H,className:To(V.root,s),as:u,ref:n},L))})}),je=Os;function Ps(t){return _o("MuiSwitch",t)}const Ts=jo("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),Q=Ts,$s=["className","color","edge","size","sx"],As=t=>{const{classes:e,edge:n,size:r,color:a,checked:o,disabled:s}=t,i={root:["root",n&&`edge${bt(n)}`,`size${bt(r)}`],switchBase:["switchBase",`color${bt(a)}`,o&&"checked",s&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=$o(i,Ps,e);return oe({},e,l)},Ms=Wt("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.edge&&e[`edge${bt(n.edge)}`],e[`size${bt(n.size)}`]]}})(({ownerState:t})=>oe({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},t.edge==="start"&&{marginLeft:-8},t.edge==="end"&&{marginRight:-8},t.size==="small"&&{width:40,height:24,padding:7,[`& .${Q.thumb}`]:{width:16,height:16},[`& .${Q.switchBase}`]:{padding:4,[`&.${Q.checked}`]:{transform:"translateX(16px)"}}})),ks=Wt(Hi,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.switchBase,{[`& .${Q.input}`]:e.input},n.color!=="default"&&e[`color${bt(n.color)}`]]}})(({theme:t})=>({position:"absolute",top:0,left:0,zIndex:1,color:t.vars?t.vars.palette.Switch.defaultColor:`${t.palette.mode==="light"?t.palette.common.white:t.palette.grey[300]}`,transition:t.transitions.create(["left","transform"],{duration:t.transitions.duration.shortest}),[`&.${Q.checked}`]:{transform:"translateX(20px)"},[`&.${Q.disabled}`]:{color:t.vars?t.vars.palette.Switch.defaultDisabledColor:`${t.palette.mode==="light"?t.palette.grey[100]:t.palette.grey[600]}`},[`&.${Q.checked} + .${Q.track}`]:{opacity:.5},[`&.${Q.disabled} + .${Q.track}`]:{opacity:t.vars?t.vars.opacity.switchTrackDisabled:`${t.palette.mode==="light"?.12:.2}`},[`& .${Q.input}`]:{left:"-100%",width:"300%"}}),({theme:t,ownerState:e})=>oe({"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:Zr(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},e.color!=="default"&&{[`&.${Q.checked}`]:{color:(t.vars||t).palette[e.color].main,"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette[e.color].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:Zr(t.palette[e.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Q.disabled}`]:{color:t.vars?t.vars.palette.Switch[`${e.color}DisabledColor`]:`${t.palette.mode==="light"?Ci(t.palette[e.color].main,.62):Si(t.palette[e.color].main,.55)}`}},[`&.${Q.checked} + .${Q.track}`]:{backgroundColor:(t.vars||t).palette[e.color].main}})),Rs=Wt("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(t,e)=>e.track})(({theme:t})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:t.transitions.create(["opacity","background-color"],{duration:t.transitions.duration.shortest}),backgroundColor:t.vars?t.vars.palette.common.onBackground:`${t.palette.mode==="light"?t.palette.common.black:t.palette.common.white}`,opacity:t.vars?t.vars.opacity.switchTrack:`${t.palette.mode==="light"?.38:.3}`})),Bs=Wt("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(t,e)=>e.thumb})(({theme:t})=>({boxShadow:(t.vars||t).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),Fs=y.forwardRef(function(e,n){const r=Oo({props:e,name:"MuiSwitch"}),{className:a,color:o="primary",edge:s=!1,size:i="medium",sx:l}=r,u=Po(r,$s),d=oe({},r,{color:o,edge:s,size:i}),f=As(d),h=p.jsx(Bs,{className:f.thumb,ownerState:d});return p.jsxs(Ms,{className:To(f.root,a),sx:l,ownerState:d,children:[p.jsx(ks,oe({type:"checkbox",icon:h,checkedIcon:h,ref:n,ownerState:d},u,{classes:oe({},f,{root:f.switchBase})})),p.jsx(Rs,{className:f.track,ownerState:d})]})}),Do=Fs;var Ns=Object.defineProperty,Is=(t,e,n)=>e in t?Ns(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,R=(t,e,n)=>(Is(t,typeof e!="symbol"?e+"":e,n),n);const un=new is,ca=new ss,Ds=Math.cos(70*(Math.PI/180)),ua=(t,e)=>(t%e+e)%e;let Hs=class extends ls{constructor(e,n){super(),R(this,"object"),R(this,"domElement"),R(this,"enabled",!0),R(this,"target",new G),R(this,"minDistance",0),R(this,"maxDistance",1/0),R(this,"minZoom",0),R(this,"maxZoom",1/0),R(this,"minPolarAngle",0),R(this,"maxPolarAngle",Math.PI),R(this,"minAzimuthAngle",-1/0),R(this,"maxAzimuthAngle",1/0),R(this,"enableDamping",!1),R(this,"dampingFactor",.05),R(this,"enableZoom",!0),R(this,"zoomSpeed",1),R(this,"enableRotate",!0),R(this,"rotateSpeed",1),R(this,"enablePan",!0),R(this,"panSpeed",1),R(this,"screenSpacePanning",!0),R(this,"keyPanSpeed",7),R(this,"zoomToCursor",!1),R(this,"autoRotate",!1),R(this,"autoRotateSpeed",2),R(this,"reverseOrbit",!1),R(this,"reverseHorizontalOrbit",!1),R(this,"reverseVerticalOrbit",!1),R(this,"keys",{LEFT:"ArrowLeft",UP:"ArrowUp",RIGHT:"ArrowRight",BOTTOM:"ArrowDown"}),R(this,"mouseButtons",{LEFT:qe.ROTATE,MIDDLE:qe.DOLLY,RIGHT:qe.PAN}),R(this,"touches",{ONE:Ze.ROTATE,TWO:Ze.DOLLY_PAN}),R(this,"target0"),R(this,"position0"),R(this,"zoom0"),R(this,"_domElementKeyEvents",null),R(this,"getPolarAngle"),R(this,"getAzimuthalAngle"),R(this,"setPolarAngle"),R(this,"setAzimuthalAngle"),R(this,"getDistance"),R(this,"listenToKeyEvents"),R(this,"stopListenToKeyEvents"),R(this,"saveState"),R(this,"reset"),R(this,"update"),R(this,"connect"),R(this,"dispose"),this.object=e,this.domElement=n,this.target0=this.target.clone(),this.position0=this.object.position.clone(),this.zoom0=this.object.zoom,this.getPolarAngle=()=>d.phi,this.getAzimuthalAngle=()=>d.theta,this.setPolarAngle=b=>{let C=ua(b,2*Math.PI),F=d.phi;F<0&&(F+=2*Math.PI),C<0&&(C+=2*Math.PI);let U=Math.abs(C-F);2*Math.PI-U{let C=ua(b,2*Math.PI),F=d.theta;F<0&&(F+=2*Math.PI),C<0&&(C+=2*Math.PI);let U=Math.abs(C-F);2*Math.PI-Ur.object.position.distanceTo(r.target),this.listenToKeyEvents=b=>{b.addEventListener("keydown",jt),this._domElementKeyEvents=b},this.stopListenToKeyEvents=()=>{this._domElementKeyEvents.removeEventListener("keydown",jt),this._domElementKeyEvents=null},this.saveState=()=>{r.target0.copy(r.target),r.position0.copy(r.object.position),r.zoom0=r.object.zoom},this.reset=()=>{r.target.copy(r.target0),r.object.position.copy(r.position0),r.object.zoom=r.zoom0,r.object.updateProjectionMatrix(),r.dispatchEvent(a),r.update(),l=i.NONE},this.update=(()=>{const b=new G,C=new G(0,1,0),F=new ia().setFromUnitVectors(e.up,C),U=F.clone().invert(),Z=new G,we=new ia,Me=2*Math.PI;return function(){const qr=r.object.position;F.setFromUnitVectors(e.up,C),U.copy(F).invert(),b.copy(qr).sub(r.target),b.applyQuaternion(F),d.setFromVector3(b),r.autoRotate&&l===i.NONE&&K(X()),r.enableDamping?(d.theta+=f.theta*r.dampingFactor,d.phi+=f.phi*r.dampingFactor):(d.theta+=f.theta,d.phi+=f.phi);let Ee=r.minAzimuthAngle,Ce=r.maxAzimuthAngle;isFinite(Ee)&&isFinite(Ce)&&(Ee<-Math.PI?Ee+=Me:Ee>Math.PI&&(Ee-=Me),Ce<-Math.PI?Ce+=Me:Ce>Math.PI&&(Ce-=Me),Ee<=Ce?d.theta=Math.max(Ee,Math.min(Ce,d.theta)):d.theta=d.theta>(Ee+Ce)/2?Math.max(Ee,d.theta):Math.min(Ce,d.theta)),d.phi=Math.max(r.minPolarAngle,Math.min(r.maxPolarAngle,d.phi)),d.makeSafe(),r.enableDamping===!0?r.target.addScaledVector(g,r.dampingFactor):r.target.add(g),r.zoomToCursor&&V||r.object.isOrthographicCamera?d.radius=Fe(d.radius):d.radius=Fe(d.radius*h),b.setFromSpherical(d),b.applyQuaternion(U),qr.copy(r.target).add(b),r.object.matrixAutoUpdate||r.object.updateMatrix(),r.object.lookAt(r.target),r.enableDamping===!0?(f.theta*=1-r.dampingFactor,f.phi*=1-r.dampingFactor,g.multiplyScalar(1-r.dampingFactor)):(f.set(0,0,0),g.set(0,0,0));let on=!1;if(r.zoomToCursor&&V){let $t=null;if(r.object instanceof ln&&r.object.isPerspectiveCamera){const At=b.length();$t=Fe(At*h);const sn=At-$t;r.object.position.addScaledVector(L,sn),r.object.updateMatrixWorld()}else if(r.object.isOrthographicCamera){const At=new G(H.x,H.y,0);At.unproject(r.object),r.object.zoom=Math.max(r.minZoom,Math.min(r.maxZoom,r.object.zoom/h)),r.object.updateProjectionMatrix(),on=!0;const sn=new G(H.x,H.y,0);sn.unproject(r.object),r.object.position.sub(sn).add(At),r.object.updateMatrixWorld(),$t=b.length()}else console.warn("WARNING: OrbitControls.js encountered an unknown camera type - zoom to cursor disabled."),r.zoomToCursor=!1;$t!==null&&(r.screenSpacePanning?r.target.set(0,0,-1).transformDirection(r.object.matrix).multiplyScalar($t).add(r.object.position):(un.origin.copy(r.object.position),un.direction.set(0,0,-1).transformDirection(r.object.matrix),Math.abs(r.object.up.dot(un.direction))u||8*(1-we.dot(r.object.quaternion))>u?(r.dispatchEvent(a),Z.copy(r.object.position),we.copy(r.object.quaternion),on=!1,!0):!1}})(),this.connect=b=>{b===document&&console.error('THREE.OrbitControls: "document" should not be used as the target "domElement". Please use "renderer.domElement" instead.'),r.domElement=b,r.domElement.style.touchAction="none",r.domElement.addEventListener("contextmenu",Ot),r.domElement.addEventListener("pointerdown",Xe),r.domElement.addEventListener("pointercancel",z),r.domElement.addEventListener("wheel",le)},this.dispose=()=>{var b,C,F,U,Z,we;(b=r.domElement)==null||b.removeEventListener("contextmenu",Ot),(C=r.domElement)==null||C.removeEventListener("pointerdown",Xe),(F=r.domElement)==null||F.removeEventListener("pointercancel",z),(U=r.domElement)==null||U.removeEventListener("wheel",le),(Z=r.domElement)==null||Z.ownerDocument.removeEventListener("pointermove",Ke),(we=r.domElement)==null||we.ownerDocument.removeEventListener("pointerup",k),r._domElementKeyEvents!==null&&r._domElementKeyEvents.removeEventListener("keydown",jt)};const r=this,a={type:"change"},o={type:"start"},s={type:"end"},i={NONE:-1,ROTATE:0,DOLLY:1,PAN:2,TOUCH_ROTATE:3,TOUCH_PAN:4,TOUCH_DOLLY_PAN:5,TOUCH_DOLLY_ROTATE:6};let l=i.NONE;const u=1e-6,d=new sa,f=new sa;let h=1;const g=new G,x=new de,m=new de,v=new de,w=new de,_=new de,B=new de,P=new de,T=new de,M=new de,L=new G,H=new de;let V=!1;const S=[],D={};function X(){return 2*Math.PI/60/60*r.autoRotateSpeed}function I(){return Math.pow(.95,r.zoomSpeed)}function K(b){r.reverseOrbit||r.reverseHorizontalOrbit?f.theta+=b:f.theta-=b}function re(b){r.reverseOrbit||r.reverseVerticalOrbit?f.phi+=b:f.phi-=b}const xe=(()=>{const b=new G;return function(F,U){b.setFromMatrixColumn(U,0),b.multiplyScalar(-F),g.add(b)}})(),Te=(()=>{const b=new G;return function(F,U){r.screenSpacePanning===!0?b.setFromMatrixColumn(U,1):(b.setFromMatrixColumn(U,0),b.crossVectors(r.object.up,b)),b.multiplyScalar(F),g.add(b)}})(),pe=(()=>{const b=new G;return function(F,U){const Z=r.domElement;if(Z&&r.object instanceof ln&&r.object.isPerspectiveCamera){const we=r.object.position;b.copy(we).sub(r.target);let Me=b.length();Me*=Math.tan(r.object.fov/2*Math.PI/180),xe(2*F*Me/Z.clientHeight,r.object.matrix),Te(2*U*Me/Z.clientHeight,r.object.matrix)}else Z&&r.object instanceof cn&&r.object.isOrthographicCamera?(xe(F*(r.object.right-r.object.left)/r.object.zoom/Z.clientWidth,r.object.matrix),Te(U*(r.object.top-r.object.bottom)/r.object.zoom/Z.clientHeight,r.object.matrix)):(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - pan disabled."),r.enablePan=!1)}})();function Et(b){r.object instanceof ln&&r.object.isPerspectiveCamera||r.object instanceof cn&&r.object.isOrthographicCamera?h/=b:(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),r.enableZoom=!1)}function Ue(b){r.object instanceof ln&&r.object.isPerspectiveCamera||r.object instanceof cn&&r.object.isOrthographicCamera?h*=b:(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),r.enableZoom=!1)}function $e(b){if(!r.zoomToCursor||!r.domElement)return;V=!0;const C=r.domElement.getBoundingClientRect(),F=b.clientX-C.left,U=b.clientY-C.top,Z=C.width,we=C.height;H.x=F/Z*2-1,H.y=-(U/we)*2+1,L.set(H.x,H.y,1).unproject(r.object).sub(r.object.position).normalize()}function Fe(b){return Math.max(r.minDistance,Math.min(r.maxDistance,b))}function ye(b){x.set(b.clientX,b.clientY)}function Ct(b){$e(b),P.set(b.clientX,b.clientY)}function St(b){w.set(b.clientX,b.clientY)}function kn(b){m.set(b.clientX,b.clientY),v.subVectors(m,x).multiplyScalar(r.rotateSpeed);const C=r.domElement;C&&(K(2*Math.PI*v.x/C.clientHeight),re(2*Math.PI*v.y/C.clientHeight)),x.copy(m),r.update()}function Jt(b){T.set(b.clientX,b.clientY),M.subVectors(T,P),M.y>0?Et(I()):M.y<0&&Ue(I()),P.copy(T),r.update()}function Rn(b){_.set(b.clientX,b.clientY),B.subVectors(_,w).multiplyScalar(r.panSpeed),pe(B.x,B.y),w.copy(_),r.update()}function ee(b){$e(b),b.deltaY<0?Ue(I()):b.deltaY>0&&Et(I()),r.update()}function Bn(b){let C=!1;switch(b.code){case r.keys.UP:pe(0,r.keyPanSpeed),C=!0;break;case r.keys.BOTTOM:pe(0,-r.keyPanSpeed),C=!0;break;case r.keys.LEFT:pe(r.keyPanSpeed,0),C=!0;break;case r.keys.RIGHT:pe(-r.keyPanSpeed,0),C=!0;break}C&&(b.preventDefault(),r.update())}function Ve(){if(S.length==1)x.set(S[0].pageX,S[0].pageY);else{const b=.5*(S[0].pageX+S[1].pageX),C=.5*(S[0].pageY+S[1].pageY);x.set(b,C)}}function Ae(){if(S.length==1)w.set(S[0].pageX,S[0].pageY);else{const b=.5*(S[0].pageX+S[1].pageX),C=.5*(S[0].pageY+S[1].pageY);w.set(b,C)}}function Qt(){const b=S[0].pageX-S[1].pageX,C=S[0].pageY-S[1].pageY,F=Math.sqrt(b*b+C*C);P.set(0,F)}function Fn(){r.enableZoom&&Qt(),r.enablePan&&Ae()}function Nn(){r.enableZoom&&Qt(),r.enableRotate&&Ve()}function _t(b){if(S.length==1)m.set(b.pageX,b.pageY);else{const F=Dn(b),U=.5*(b.pageX+F.x),Z=.5*(b.pageY+F.y);m.set(U,Z)}v.subVectors(m,x).multiplyScalar(r.rotateSpeed);const C=r.domElement;C&&(K(2*Math.PI*v.x/C.clientHeight),re(2*Math.PI*v.y/C.clientHeight)),x.copy(m)}function en(b){if(S.length==1)_.set(b.pageX,b.pageY);else{const C=Dn(b),F=.5*(b.pageX+C.x),U=.5*(b.pageY+C.y);_.set(F,U)}B.subVectors(_,w).multiplyScalar(r.panSpeed),pe(B.x,B.y),w.copy(_)}function tn(b){const C=Dn(b),F=b.pageX-C.x,U=b.pageY-C.y,Z=Math.sqrt(F*F+U*U);T.set(0,Z),M.set(0,Math.pow(T.y/P.y,r.zoomSpeed)),Et(M.y),P.copy(T)}function Ye(b){r.enableZoom&&tn(b),r.enablePan&&en(b)}function In(b){r.enableZoom&&tn(b),r.enableRotate&&_t(b)}function Xe(b){var C,F;r.enabled!==!1&&(S.length===0&&((C=r.domElement)==null||C.ownerDocument.addEventListener("pointermove",Ke),(F=r.domElement)==null||F.ownerDocument.addEventListener("pointerup",k)),an(b),b.pointerType==="touch"?nn(b):J(b))}function Ke(b){r.enabled!==!1&&(b.pointerType==="touch"?rn(b):se(b))}function k(b){var C,F,U;Pt(b),S.length===0&&((C=r.domElement)==null||C.releasePointerCapture(b.pointerId),(F=r.domElement)==null||F.ownerDocument.removeEventListener("pointermove",Ke),(U=r.domElement)==null||U.ownerDocument.removeEventListener("pointerup",k)),r.dispatchEvent(s),l=i.NONE}function z(b){Pt(b)}function J(b){let C;switch(b.button){case 0:C=r.mouseButtons.LEFT;break;case 1:C=r.mouseButtons.MIDDLE;break;case 2:C=r.mouseButtons.RIGHT;break;default:C=-1}switch(C){case qe.DOLLY:if(r.enableZoom===!1)return;Ct(b),l=i.DOLLY;break;case qe.ROTATE:if(b.ctrlKey||b.metaKey||b.shiftKey){if(r.enablePan===!1)return;St(b),l=i.PAN}else{if(r.enableRotate===!1)return;ye(b),l=i.ROTATE}break;case qe.PAN:if(b.ctrlKey||b.metaKey||b.shiftKey){if(r.enableRotate===!1)return;ye(b),l=i.ROTATE}else{if(r.enablePan===!1)return;St(b),l=i.PAN}break;default:l=i.NONE}l!==i.NONE&&r.dispatchEvent(o)}function se(b){if(r.enabled!==!1)switch(l){case i.ROTATE:if(r.enableRotate===!1)return;kn(b);break;case i.DOLLY:if(r.enableZoom===!1)return;Jt(b);break;case i.PAN:if(r.enablePan===!1)return;Rn(b);break}}function le(b){r.enabled===!1||r.enableZoom===!1||l!==i.NONE&&l!==i.ROTATE||(b.preventDefault(),r.dispatchEvent(o),ee(b),r.dispatchEvent(s))}function jt(b){r.enabled===!1||r.enablePan===!1||Bn(b)}function nn(b){switch(Tt(b),S.length){case 1:switch(r.touches.ONE){case Ze.ROTATE:if(r.enableRotate===!1)return;Ve(),l=i.TOUCH_ROTATE;break;case Ze.PAN:if(r.enablePan===!1)return;Ae(),l=i.TOUCH_PAN;break;default:l=i.NONE}break;case 2:switch(r.touches.TWO){case Ze.DOLLY_PAN:if(r.enableZoom===!1&&r.enablePan===!1)return;Fn(),l=i.TOUCH_DOLLY_PAN;break;case Ze.DOLLY_ROTATE:if(r.enableZoom===!1&&r.enableRotate===!1)return;Nn(),l=i.TOUCH_DOLLY_ROTATE;break;default:l=i.NONE}break;default:l=i.NONE}l!==i.NONE&&r.dispatchEvent(o)}function rn(b){switch(Tt(b),l){case i.TOUCH_ROTATE:if(r.enableRotate===!1)return;_t(b),r.update();break;case i.TOUCH_PAN:if(r.enablePan===!1)return;en(b),r.update();break;case i.TOUCH_DOLLY_PAN:if(r.enableZoom===!1&&r.enablePan===!1)return;Ye(b),r.update();break;case i.TOUCH_DOLLY_ROTATE:if(r.enableZoom===!1&&r.enableRotate===!1)return;In(b),r.update();break;default:l=i.NONE}}function Ot(b){r.enabled!==!1&&b.preventDefault()}function an(b){S.push(b)}function Pt(b){delete D[b.pointerId];for(let C=0;Cnew cs(void 0,void 0,void 0)),u=y.useCallback((f,h,g,x=20)=>(f instanceof G?l.v0.copy(f):l.v0.set(...f),h instanceof G?l.v2.copy(h):l.v2.set(...h),g instanceof G?l.v1.copy(g):l.v1.copy(l.v0.clone().add(l.v2.clone().sub(l.v0)).add(zs.set(0,l.v0.y-l.v2.y,0))),l.getPoints(x)),[]);y.useLayoutEffect(()=>{i.current.setPoints=(f,h,g)=>{const x=u(f,h,g);i.current.geometry&&i.current.geometry.setPositions(x.map(m=>m.toArray()).flat())}},[]);const d=y.useMemo(()=>u(e,n,r,a),[e,n,r,a]);return y.createElement(Ji,oe({ref:Qi([i,s]),points:d},o))}),Ls=y.forwardRef(({makeDefault:t,camera:e,regress:n,domElement:r,enableDamping:a=!0,onChange:o,onStart:s,onEnd:i,...l},u)=>{const d=me(T=>T.invalidate),f=me(T=>T.camera),h=me(T=>T.gl),g=me(T=>T.events),x=me(T=>T.setEvents),m=me(T=>T.set),v=me(T=>T.get),w=me(T=>T.performance),_=e||f,B=r||g.connected||h.domElement,P=y.useMemo(()=>new Hs(_),[_]);return Sn(()=>{P.enabled&&P.update()},-1),y.useEffect(()=>(P.connect(B),()=>void P.dispose()),[B,n,P,d]),y.useEffect(()=>{const T=H=>{d(),n&&w.regress(),o&&o(H)},M=H=>{s&&s(H)},L=H=>{i&&i(H)};return P.addEventListener("change",T),P.addEventListener("start",M),P.addEventListener("end",L),()=>{P.removeEventListener("start",M),P.removeEventListener("end",L),P.removeEventListener("change",T)}},[o,s,i,P,d,x]),y.useEffect(()=>{if(t){const T=v().controls;return m({controls:P}),()=>m({controls:T})}},[t,P]),y.createElement("primitive",oe({ref:u,object:P,enableDamping:a},l))}),Gs={type:"",parent:""},da=({onSelect:t,dataTestId:e,edgeLink:n,hideSelectAll:r,placeholder:a})=>{const o=br({mode:"onChange",defaultValues:Gs}),{watch:s,setValue:i}=o,[l,u]=y.useState([]),[d,f]=y.useState(!1),h=v=>{i("parent",(v==null?void 0:v.value)||""),t(v==null?void 0:v.value)},g=v=>v.charAt(0).toUpperCase()+v.slice(1);y.useEffect(()=>{(async()=>{f(!0);try{const _=(await xr()).schemas.filter(P=>!P.is_deleted&&P.type).map(P=>P.type==="thing"?{label:"No Parent",value:P.type}:{label:g(P.type),value:P.type}).filter((P,T,M)=>T===M.findIndex(L=>L.value===P.value));u(r?_:[{label:"Select all",value:"all"},..._]),n&&i("parent",n)}catch(w){console.warn(w)}finally{f(!1)}})()},[n,i,r]);const x=s("parent"),m=()=>{const v=l==null?void 0:l.find(w=>w.value===x);if(v)return v;if(n)return{label:n,value:n}};return p.jsx(Ws,{dataTestId:e,disabled:!!n,isLoading:d,onSelect:h,options:l||_i,placeholder:a,selectedValue:m()})},Ws=O(Dt)` +import{r as y,L as _o,M as jo,O as Wt,x as oe,S as Oo,a3 as Ei,H as Po,j as p,U as To,bx as En,by as gr,V as $o,Y as bt,P as Zr,aj as Ci,ak as Si,s as O,a as j,t as br,bc as _i,bb as xr,T as _e,F as $,aU as hn,aV as gn,b9 as ji,B as Cn,bz as Oi,bA as Hn,v as Ao,bB as Pi,C as mr,bC as Ti,J as c,k as vr,am as Jr,bD as $i,an as Ai,bE as Qr,bF as Mo,ba as ko,e as Ro,bG as Mi,N as gt,z as ar,d as yr,ae as ki,y as ea,aX as Ri}from"./index-6541aa03.js";import{A as Dt}from"./index-bb4d07d0.js";import{C as Ie}from"./ClipLoader-708ab7a4.js";import{I as or,f as Bi,aw as Fi,g as Bo,x as ta,z as na,aJ as ra,aK as aa,w as Ni,aL as Ii,aM as Di}from"./index-ad617d4b.js";import{S as Hi,j as zi,p as Li,q as Gi,r as Wi,m as Ui,F as Vi}from"./isPlainObject-5d028b0a.js";import{P as E}from"./index-049c9db0.js";import{T as Yi,a as Xi}from"./Tabs-31512595.js";import{p as ir,c as Ki,g as qi}from"./index-90ded230.js";import{e as Zi}from"./Stack-bcf44d60.js";import{L as Ji,m as Qi,u as me,a as Sn,t as sr,T as Fo,f as No,c as es,l as ts,H as ns,h as oa,C as rs,j as as,i as os}from"./index-6b78adda.js";import{R as is,y as ss,z as ls,V as G,A as qe,I as Ze,Q as ia,J as ln,O as cn,K as sa,e as de,N as cs,r as us,C as ps}from"./three.module-10ab52a5.js";import"./index-8f946e20.js";import"./createSvgIcon-0b5f6bf4.js";import"./TextareaAutosize-387bd327.js";import"./Typography-0c02c7d4.js";const ds=y.createContext(),la=ds;function fs(t){return _o("MuiGrid",t)}const hs=[0,1,2,3,4,5,6,7,8,9,10],gs=["column-reverse","column","row-reverse","row"],bs=["nowrap","wrap-reverse","wrap"],Mt=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],xs=jo("MuiGrid",["root","container","item","zeroMinWidth",...hs.map(t=>`spacing-xs-${t}`),...gs.map(t=>`direction-xs-${t}`),...bs.map(t=>`wrap-xs-${t}`),...Mt.map(t=>`grid-xs-${t}`),...Mt.map(t=>`grid-sm-${t}`),...Mt.map(t=>`grid-md-${t}`),...Mt.map(t=>`grid-lg-${t}`),...Mt.map(t=>`grid-xl-${t}`)]),zt=xs,ms=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function xt(t){const e=parseFloat(t);return`${e}${String(t).replace(String(e),"")||"px"}`}function vs({theme:t,ownerState:e}){let n;return t.breakpoints.keys.reduce((r,a)=>{let o={};if(e[a]&&(n=e[a]),!n)return r;if(n===!0)o={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(n==="auto")o={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const s=En({values:e.columns,breakpoints:t.breakpoints.values}),i=typeof s=="object"?s[a]:s;if(i==null)return r;const l=`${Math.round(n/i*1e8)/1e6}%`;let u={};if(e.container&&e.item&&e.columnSpacing!==0){const d=t.spacing(e.columnSpacing);if(d!=="0px"){const f=`calc(${l} + ${xt(d)})`;u={flexBasis:f,maxWidth:f}}}o=oe({flexBasis:l,flexGrow:0,maxWidth:l},u)}return t.breakpoints.values[a]===0?Object.assign(r,o):r[t.breakpoints.up(a)]=o,r},{})}function ys({theme:t,ownerState:e}){const n=En({values:e.direction,breakpoints:t.breakpoints.values});return gr({theme:t},n,r=>{const a={flexDirection:r};return r.indexOf("column")===0&&(a[`& > .${zt.item}`]={maxWidth:"none"}),a})}function Io({breakpoints:t,values:e}){let n="";Object.keys(e).forEach(a=>{n===""&&e[a]!==0&&(n=a)});const r=Object.keys(t).sort((a,o)=>t[a]-t[o]);return r.slice(0,r.indexOf(n))}function ws({theme:t,ownerState:e}){const{container:n,rowSpacing:r}=e;let a={};if(n&&r!==0){const o=En({values:r,breakpoints:t.breakpoints.values});let s;typeof o=="object"&&(s=Io({breakpoints:t.breakpoints.values,values:o})),a=gr({theme:t},o,(i,l)=>{var u;const d=t.spacing(i);return d!=="0px"?{marginTop:`-${xt(d)}`,[`& > .${zt.item}`]:{paddingTop:xt(d)}}:(u=s)!=null&&u.includes(l)?{}:{marginTop:0,[`& > .${zt.item}`]:{paddingTop:0}}})}return a}function Es({theme:t,ownerState:e}){const{container:n,columnSpacing:r}=e;let a={};if(n&&r!==0){const o=En({values:r,breakpoints:t.breakpoints.values});let s;typeof o=="object"&&(s=Io({breakpoints:t.breakpoints.values,values:o})),a=gr({theme:t},o,(i,l)=>{var u;const d=t.spacing(i);return d!=="0px"?{width:`calc(100% + ${xt(d)})`,marginLeft:`-${xt(d)}`,[`& > .${zt.item}`]:{paddingLeft:xt(d)}}:(u=s)!=null&&u.includes(l)?{}:{width:"100%",marginLeft:0,[`& > .${zt.item}`]:{paddingLeft:0}}})}return a}function Cs(t,e,n={}){if(!t||t<=0)return[];if(typeof t=="string"&&!Number.isNaN(Number(t))||typeof t=="number")return[n[`spacing-xs-${String(t)}`]];const r=[];return e.forEach(a=>{const o=t[a];Number(o)>0&&r.push(n[`spacing-${a}-${String(o)}`])}),r}const Ss=Wt("div",{name:"MuiGrid",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t,{container:r,direction:a,item:o,spacing:s,wrap:i,zeroMinWidth:l,breakpoints:u}=n;let d=[];r&&(d=Cs(s,u,e));const f=[];return u.forEach(h=>{const g=n[h];g&&f.push(e[`grid-${h}-${String(g)}`])}),[e.root,r&&e.container,o&&e.item,l&&e.zeroMinWidth,...d,a!=="row"&&e[`direction-xs-${String(a)}`],i!=="wrap"&&e[`wrap-xs-${String(i)}`],...f]}})(({ownerState:t})=>oe({boxSizing:"border-box"},t.container&&{display:"flex",flexWrap:"wrap",width:"100%"},t.item&&{margin:0},t.zeroMinWidth&&{minWidth:0},t.wrap!=="wrap"&&{flexWrap:t.wrap}),ys,ws,Es,vs);function _s(t,e){if(!t||t<=0)return[];if(typeof t=="string"&&!Number.isNaN(Number(t))||typeof t=="number")return[`spacing-xs-${String(t)}`];const n=[];return e.forEach(r=>{const a=t[r];if(Number(a)>0){const o=`spacing-${r}-${String(a)}`;n.push(o)}}),n}const js=t=>{const{classes:e,container:n,direction:r,item:a,spacing:o,wrap:s,zeroMinWidth:i,breakpoints:l}=t;let u=[];n&&(u=_s(o,l));const d=[];l.forEach(h=>{const g=t[h];g&&d.push(`grid-${h}-${String(g)}`)});const f={root:["root",n&&"container",a&&"item",i&&"zeroMinWidth",...u,r!=="row"&&`direction-xs-${String(r)}`,s!=="wrap"&&`wrap-xs-${String(s)}`,...d]};return $o(f,fs,e)},Os=y.forwardRef(function(e,n){const r=Oo({props:e,name:"MuiGrid"}),{breakpoints:a}=Ei(),o=Zi(r),{className:s,columns:i,columnSpacing:l,component:u="div",container:d=!1,direction:f="row",item:h=!1,rowSpacing:g,spacing:x=0,wrap:m="wrap",zeroMinWidth:v=!1}=o,w=Po(o,ms),_=g||x,B=l||x,P=y.useContext(la),T=d?i||12:P,M={},L=oe({},w);a.keys.forEach(S=>{w[S]!=null&&(M[S]=w[S],delete L[S])});const H=oe({},o,{columns:T,container:d,direction:f,item:h,rowSpacing:_,columnSpacing:B,wrap:m,zeroMinWidth:v,spacing:x},M,{breakpoints:a.keys}),V=js(H);return p.jsx(la.Provider,{value:T,children:p.jsx(Ss,oe({ownerState:H,className:To(V.root,s),as:u,ref:n},L))})}),je=Os;function Ps(t){return _o("MuiSwitch",t)}const Ts=jo("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),Q=Ts,$s=["className","color","edge","size","sx"],As=t=>{const{classes:e,edge:n,size:r,color:a,checked:o,disabled:s}=t,i={root:["root",n&&`edge${bt(n)}`,`size${bt(r)}`],switchBase:["switchBase",`color${bt(a)}`,o&&"checked",s&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=$o(i,Ps,e);return oe({},e,l)},Ms=Wt("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.edge&&e[`edge${bt(n.edge)}`],e[`size${bt(n.size)}`]]}})(({ownerState:t})=>oe({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},t.edge==="start"&&{marginLeft:-8},t.edge==="end"&&{marginRight:-8},t.size==="small"&&{width:40,height:24,padding:7,[`& .${Q.thumb}`]:{width:16,height:16},[`& .${Q.switchBase}`]:{padding:4,[`&.${Q.checked}`]:{transform:"translateX(16px)"}}})),ks=Wt(Hi,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.switchBase,{[`& .${Q.input}`]:e.input},n.color!=="default"&&e[`color${bt(n.color)}`]]}})(({theme:t})=>({position:"absolute",top:0,left:0,zIndex:1,color:t.vars?t.vars.palette.Switch.defaultColor:`${t.palette.mode==="light"?t.palette.common.white:t.palette.grey[300]}`,transition:t.transitions.create(["left","transform"],{duration:t.transitions.duration.shortest}),[`&.${Q.checked}`]:{transform:"translateX(20px)"},[`&.${Q.disabled}`]:{color:t.vars?t.vars.palette.Switch.defaultDisabledColor:`${t.palette.mode==="light"?t.palette.grey[100]:t.palette.grey[600]}`},[`&.${Q.checked} + .${Q.track}`]:{opacity:.5},[`&.${Q.disabled} + .${Q.track}`]:{opacity:t.vars?t.vars.opacity.switchTrackDisabled:`${t.palette.mode==="light"?.12:.2}`},[`& .${Q.input}`]:{left:"-100%",width:"300%"}}),({theme:t,ownerState:e})=>oe({"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:Zr(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},e.color!=="default"&&{[`&.${Q.checked}`]:{color:(t.vars||t).palette[e.color].main,"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette[e.color].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:Zr(t.palette[e.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Q.disabled}`]:{color:t.vars?t.vars.palette.Switch[`${e.color}DisabledColor`]:`${t.palette.mode==="light"?Ci(t.palette[e.color].main,.62):Si(t.palette[e.color].main,.55)}`}},[`&.${Q.checked} + .${Q.track}`]:{backgroundColor:(t.vars||t).palette[e.color].main}})),Rs=Wt("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(t,e)=>e.track})(({theme:t})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:t.transitions.create(["opacity","background-color"],{duration:t.transitions.duration.shortest}),backgroundColor:t.vars?t.vars.palette.common.onBackground:`${t.palette.mode==="light"?t.palette.common.black:t.palette.common.white}`,opacity:t.vars?t.vars.opacity.switchTrack:`${t.palette.mode==="light"?.38:.3}`})),Bs=Wt("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(t,e)=>e.thumb})(({theme:t})=>({boxShadow:(t.vars||t).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),Fs=y.forwardRef(function(e,n){const r=Oo({props:e,name:"MuiSwitch"}),{className:a,color:o="primary",edge:s=!1,size:i="medium",sx:l}=r,u=Po(r,$s),d=oe({},r,{color:o,edge:s,size:i}),f=As(d),h=p.jsx(Bs,{className:f.thumb,ownerState:d});return p.jsxs(Ms,{className:To(f.root,a),sx:l,ownerState:d,children:[p.jsx(ks,oe({type:"checkbox",icon:h,checkedIcon:h,ref:n,ownerState:d},u,{classes:oe({},f,{root:f.switchBase})})),p.jsx(Rs,{className:f.track,ownerState:d})]})}),Do=Fs;var Ns=Object.defineProperty,Is=(t,e,n)=>e in t?Ns(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,R=(t,e,n)=>(Is(t,typeof e!="symbol"?e+"":e,n),n);const un=new is,ca=new ss,Ds=Math.cos(70*(Math.PI/180)),ua=(t,e)=>(t%e+e)%e;let Hs=class extends ls{constructor(e,n){super(),R(this,"object"),R(this,"domElement"),R(this,"enabled",!0),R(this,"target",new G),R(this,"minDistance",0),R(this,"maxDistance",1/0),R(this,"minZoom",0),R(this,"maxZoom",1/0),R(this,"minPolarAngle",0),R(this,"maxPolarAngle",Math.PI),R(this,"minAzimuthAngle",-1/0),R(this,"maxAzimuthAngle",1/0),R(this,"enableDamping",!1),R(this,"dampingFactor",.05),R(this,"enableZoom",!0),R(this,"zoomSpeed",1),R(this,"enableRotate",!0),R(this,"rotateSpeed",1),R(this,"enablePan",!0),R(this,"panSpeed",1),R(this,"screenSpacePanning",!0),R(this,"keyPanSpeed",7),R(this,"zoomToCursor",!1),R(this,"autoRotate",!1),R(this,"autoRotateSpeed",2),R(this,"reverseOrbit",!1),R(this,"reverseHorizontalOrbit",!1),R(this,"reverseVerticalOrbit",!1),R(this,"keys",{LEFT:"ArrowLeft",UP:"ArrowUp",RIGHT:"ArrowRight",BOTTOM:"ArrowDown"}),R(this,"mouseButtons",{LEFT:qe.ROTATE,MIDDLE:qe.DOLLY,RIGHT:qe.PAN}),R(this,"touches",{ONE:Ze.ROTATE,TWO:Ze.DOLLY_PAN}),R(this,"target0"),R(this,"position0"),R(this,"zoom0"),R(this,"_domElementKeyEvents",null),R(this,"getPolarAngle"),R(this,"getAzimuthalAngle"),R(this,"setPolarAngle"),R(this,"setAzimuthalAngle"),R(this,"getDistance"),R(this,"listenToKeyEvents"),R(this,"stopListenToKeyEvents"),R(this,"saveState"),R(this,"reset"),R(this,"update"),R(this,"connect"),R(this,"dispose"),this.object=e,this.domElement=n,this.target0=this.target.clone(),this.position0=this.object.position.clone(),this.zoom0=this.object.zoom,this.getPolarAngle=()=>d.phi,this.getAzimuthalAngle=()=>d.theta,this.setPolarAngle=b=>{let C=ua(b,2*Math.PI),F=d.phi;F<0&&(F+=2*Math.PI),C<0&&(C+=2*Math.PI);let U=Math.abs(C-F);2*Math.PI-U{let C=ua(b,2*Math.PI),F=d.theta;F<0&&(F+=2*Math.PI),C<0&&(C+=2*Math.PI);let U=Math.abs(C-F);2*Math.PI-Ur.object.position.distanceTo(r.target),this.listenToKeyEvents=b=>{b.addEventListener("keydown",jt),this._domElementKeyEvents=b},this.stopListenToKeyEvents=()=>{this._domElementKeyEvents.removeEventListener("keydown",jt),this._domElementKeyEvents=null},this.saveState=()=>{r.target0.copy(r.target),r.position0.copy(r.object.position),r.zoom0=r.object.zoom},this.reset=()=>{r.target.copy(r.target0),r.object.position.copy(r.position0),r.object.zoom=r.zoom0,r.object.updateProjectionMatrix(),r.dispatchEvent(a),r.update(),l=i.NONE},this.update=(()=>{const b=new G,C=new G(0,1,0),F=new ia().setFromUnitVectors(e.up,C),U=F.clone().invert(),Z=new G,we=new ia,Me=2*Math.PI;return function(){const qr=r.object.position;F.setFromUnitVectors(e.up,C),U.copy(F).invert(),b.copy(qr).sub(r.target),b.applyQuaternion(F),d.setFromVector3(b),r.autoRotate&&l===i.NONE&&K(X()),r.enableDamping?(d.theta+=f.theta*r.dampingFactor,d.phi+=f.phi*r.dampingFactor):(d.theta+=f.theta,d.phi+=f.phi);let Ee=r.minAzimuthAngle,Ce=r.maxAzimuthAngle;isFinite(Ee)&&isFinite(Ce)&&(Ee<-Math.PI?Ee+=Me:Ee>Math.PI&&(Ee-=Me),Ce<-Math.PI?Ce+=Me:Ce>Math.PI&&(Ce-=Me),Ee<=Ce?d.theta=Math.max(Ee,Math.min(Ce,d.theta)):d.theta=d.theta>(Ee+Ce)/2?Math.max(Ee,d.theta):Math.min(Ce,d.theta)),d.phi=Math.max(r.minPolarAngle,Math.min(r.maxPolarAngle,d.phi)),d.makeSafe(),r.enableDamping===!0?r.target.addScaledVector(g,r.dampingFactor):r.target.add(g),r.zoomToCursor&&V||r.object.isOrthographicCamera?d.radius=Fe(d.radius):d.radius=Fe(d.radius*h),b.setFromSpherical(d),b.applyQuaternion(U),qr.copy(r.target).add(b),r.object.matrixAutoUpdate||r.object.updateMatrix(),r.object.lookAt(r.target),r.enableDamping===!0?(f.theta*=1-r.dampingFactor,f.phi*=1-r.dampingFactor,g.multiplyScalar(1-r.dampingFactor)):(f.set(0,0,0),g.set(0,0,0));let on=!1;if(r.zoomToCursor&&V){let $t=null;if(r.object instanceof ln&&r.object.isPerspectiveCamera){const At=b.length();$t=Fe(At*h);const sn=At-$t;r.object.position.addScaledVector(L,sn),r.object.updateMatrixWorld()}else if(r.object.isOrthographicCamera){const At=new G(H.x,H.y,0);At.unproject(r.object),r.object.zoom=Math.max(r.minZoom,Math.min(r.maxZoom,r.object.zoom/h)),r.object.updateProjectionMatrix(),on=!0;const sn=new G(H.x,H.y,0);sn.unproject(r.object),r.object.position.sub(sn).add(At),r.object.updateMatrixWorld(),$t=b.length()}else console.warn("WARNING: OrbitControls.js encountered an unknown camera type - zoom to cursor disabled."),r.zoomToCursor=!1;$t!==null&&(r.screenSpacePanning?r.target.set(0,0,-1).transformDirection(r.object.matrix).multiplyScalar($t).add(r.object.position):(un.origin.copy(r.object.position),un.direction.set(0,0,-1).transformDirection(r.object.matrix),Math.abs(r.object.up.dot(un.direction))u||8*(1-we.dot(r.object.quaternion))>u?(r.dispatchEvent(a),Z.copy(r.object.position),we.copy(r.object.quaternion),on=!1,!0):!1}})(),this.connect=b=>{b===document&&console.error('THREE.OrbitControls: "document" should not be used as the target "domElement". Please use "renderer.domElement" instead.'),r.domElement=b,r.domElement.style.touchAction="none",r.domElement.addEventListener("contextmenu",Ot),r.domElement.addEventListener("pointerdown",Xe),r.domElement.addEventListener("pointercancel",z),r.domElement.addEventListener("wheel",le)},this.dispose=()=>{var b,C,F,U,Z,we;(b=r.domElement)==null||b.removeEventListener("contextmenu",Ot),(C=r.domElement)==null||C.removeEventListener("pointerdown",Xe),(F=r.domElement)==null||F.removeEventListener("pointercancel",z),(U=r.domElement)==null||U.removeEventListener("wheel",le),(Z=r.domElement)==null||Z.ownerDocument.removeEventListener("pointermove",Ke),(we=r.domElement)==null||we.ownerDocument.removeEventListener("pointerup",k),r._domElementKeyEvents!==null&&r._domElementKeyEvents.removeEventListener("keydown",jt)};const r=this,a={type:"change"},o={type:"start"},s={type:"end"},i={NONE:-1,ROTATE:0,DOLLY:1,PAN:2,TOUCH_ROTATE:3,TOUCH_PAN:4,TOUCH_DOLLY_PAN:5,TOUCH_DOLLY_ROTATE:6};let l=i.NONE;const u=1e-6,d=new sa,f=new sa;let h=1;const g=new G,x=new de,m=new de,v=new de,w=new de,_=new de,B=new de,P=new de,T=new de,M=new de,L=new G,H=new de;let V=!1;const S=[],D={};function X(){return 2*Math.PI/60/60*r.autoRotateSpeed}function I(){return Math.pow(.95,r.zoomSpeed)}function K(b){r.reverseOrbit||r.reverseHorizontalOrbit?f.theta+=b:f.theta-=b}function re(b){r.reverseOrbit||r.reverseVerticalOrbit?f.phi+=b:f.phi-=b}const xe=(()=>{const b=new G;return function(F,U){b.setFromMatrixColumn(U,0),b.multiplyScalar(-F),g.add(b)}})(),Te=(()=>{const b=new G;return function(F,U){r.screenSpacePanning===!0?b.setFromMatrixColumn(U,1):(b.setFromMatrixColumn(U,0),b.crossVectors(r.object.up,b)),b.multiplyScalar(F),g.add(b)}})(),pe=(()=>{const b=new G;return function(F,U){const Z=r.domElement;if(Z&&r.object instanceof ln&&r.object.isPerspectiveCamera){const we=r.object.position;b.copy(we).sub(r.target);let Me=b.length();Me*=Math.tan(r.object.fov/2*Math.PI/180),xe(2*F*Me/Z.clientHeight,r.object.matrix),Te(2*U*Me/Z.clientHeight,r.object.matrix)}else Z&&r.object instanceof cn&&r.object.isOrthographicCamera?(xe(F*(r.object.right-r.object.left)/r.object.zoom/Z.clientWidth,r.object.matrix),Te(U*(r.object.top-r.object.bottom)/r.object.zoom/Z.clientHeight,r.object.matrix)):(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - pan disabled."),r.enablePan=!1)}})();function Et(b){r.object instanceof ln&&r.object.isPerspectiveCamera||r.object instanceof cn&&r.object.isOrthographicCamera?h/=b:(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),r.enableZoom=!1)}function Ue(b){r.object instanceof ln&&r.object.isPerspectiveCamera||r.object instanceof cn&&r.object.isOrthographicCamera?h*=b:(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),r.enableZoom=!1)}function $e(b){if(!r.zoomToCursor||!r.domElement)return;V=!0;const C=r.domElement.getBoundingClientRect(),F=b.clientX-C.left,U=b.clientY-C.top,Z=C.width,we=C.height;H.x=F/Z*2-1,H.y=-(U/we)*2+1,L.set(H.x,H.y,1).unproject(r.object).sub(r.object.position).normalize()}function Fe(b){return Math.max(r.minDistance,Math.min(r.maxDistance,b))}function ye(b){x.set(b.clientX,b.clientY)}function Ct(b){$e(b),P.set(b.clientX,b.clientY)}function St(b){w.set(b.clientX,b.clientY)}function kn(b){m.set(b.clientX,b.clientY),v.subVectors(m,x).multiplyScalar(r.rotateSpeed);const C=r.domElement;C&&(K(2*Math.PI*v.x/C.clientHeight),re(2*Math.PI*v.y/C.clientHeight)),x.copy(m),r.update()}function Jt(b){T.set(b.clientX,b.clientY),M.subVectors(T,P),M.y>0?Et(I()):M.y<0&&Ue(I()),P.copy(T),r.update()}function Rn(b){_.set(b.clientX,b.clientY),B.subVectors(_,w).multiplyScalar(r.panSpeed),pe(B.x,B.y),w.copy(_),r.update()}function ee(b){$e(b),b.deltaY<0?Ue(I()):b.deltaY>0&&Et(I()),r.update()}function Bn(b){let C=!1;switch(b.code){case r.keys.UP:pe(0,r.keyPanSpeed),C=!0;break;case r.keys.BOTTOM:pe(0,-r.keyPanSpeed),C=!0;break;case r.keys.LEFT:pe(r.keyPanSpeed,0),C=!0;break;case r.keys.RIGHT:pe(-r.keyPanSpeed,0),C=!0;break}C&&(b.preventDefault(),r.update())}function Ve(){if(S.length==1)x.set(S[0].pageX,S[0].pageY);else{const b=.5*(S[0].pageX+S[1].pageX),C=.5*(S[0].pageY+S[1].pageY);x.set(b,C)}}function Ae(){if(S.length==1)w.set(S[0].pageX,S[0].pageY);else{const b=.5*(S[0].pageX+S[1].pageX),C=.5*(S[0].pageY+S[1].pageY);w.set(b,C)}}function Qt(){const b=S[0].pageX-S[1].pageX,C=S[0].pageY-S[1].pageY,F=Math.sqrt(b*b+C*C);P.set(0,F)}function Fn(){r.enableZoom&&Qt(),r.enablePan&&Ae()}function Nn(){r.enableZoom&&Qt(),r.enableRotate&&Ve()}function _t(b){if(S.length==1)m.set(b.pageX,b.pageY);else{const F=Dn(b),U=.5*(b.pageX+F.x),Z=.5*(b.pageY+F.y);m.set(U,Z)}v.subVectors(m,x).multiplyScalar(r.rotateSpeed);const C=r.domElement;C&&(K(2*Math.PI*v.x/C.clientHeight),re(2*Math.PI*v.y/C.clientHeight)),x.copy(m)}function en(b){if(S.length==1)_.set(b.pageX,b.pageY);else{const C=Dn(b),F=.5*(b.pageX+C.x),U=.5*(b.pageY+C.y);_.set(F,U)}B.subVectors(_,w).multiplyScalar(r.panSpeed),pe(B.x,B.y),w.copy(_)}function tn(b){const C=Dn(b),F=b.pageX-C.x,U=b.pageY-C.y,Z=Math.sqrt(F*F+U*U);T.set(0,Z),M.set(0,Math.pow(T.y/P.y,r.zoomSpeed)),Et(M.y),P.copy(T)}function Ye(b){r.enableZoom&&tn(b),r.enablePan&&en(b)}function In(b){r.enableZoom&&tn(b),r.enableRotate&&_t(b)}function Xe(b){var C,F;r.enabled!==!1&&(S.length===0&&((C=r.domElement)==null||C.ownerDocument.addEventListener("pointermove",Ke),(F=r.domElement)==null||F.ownerDocument.addEventListener("pointerup",k)),an(b),b.pointerType==="touch"?nn(b):J(b))}function Ke(b){r.enabled!==!1&&(b.pointerType==="touch"?rn(b):se(b))}function k(b){var C,F,U;Pt(b),S.length===0&&((C=r.domElement)==null||C.releasePointerCapture(b.pointerId),(F=r.domElement)==null||F.ownerDocument.removeEventListener("pointermove",Ke),(U=r.domElement)==null||U.ownerDocument.removeEventListener("pointerup",k)),r.dispatchEvent(s),l=i.NONE}function z(b){Pt(b)}function J(b){let C;switch(b.button){case 0:C=r.mouseButtons.LEFT;break;case 1:C=r.mouseButtons.MIDDLE;break;case 2:C=r.mouseButtons.RIGHT;break;default:C=-1}switch(C){case qe.DOLLY:if(r.enableZoom===!1)return;Ct(b),l=i.DOLLY;break;case qe.ROTATE:if(b.ctrlKey||b.metaKey||b.shiftKey){if(r.enablePan===!1)return;St(b),l=i.PAN}else{if(r.enableRotate===!1)return;ye(b),l=i.ROTATE}break;case qe.PAN:if(b.ctrlKey||b.metaKey||b.shiftKey){if(r.enableRotate===!1)return;ye(b),l=i.ROTATE}else{if(r.enablePan===!1)return;St(b),l=i.PAN}break;default:l=i.NONE}l!==i.NONE&&r.dispatchEvent(o)}function se(b){if(r.enabled!==!1)switch(l){case i.ROTATE:if(r.enableRotate===!1)return;kn(b);break;case i.DOLLY:if(r.enableZoom===!1)return;Jt(b);break;case i.PAN:if(r.enablePan===!1)return;Rn(b);break}}function le(b){r.enabled===!1||r.enableZoom===!1||l!==i.NONE&&l!==i.ROTATE||(b.preventDefault(),r.dispatchEvent(o),ee(b),r.dispatchEvent(s))}function jt(b){r.enabled===!1||r.enablePan===!1||Bn(b)}function nn(b){switch(Tt(b),S.length){case 1:switch(r.touches.ONE){case Ze.ROTATE:if(r.enableRotate===!1)return;Ve(),l=i.TOUCH_ROTATE;break;case Ze.PAN:if(r.enablePan===!1)return;Ae(),l=i.TOUCH_PAN;break;default:l=i.NONE}break;case 2:switch(r.touches.TWO){case Ze.DOLLY_PAN:if(r.enableZoom===!1&&r.enablePan===!1)return;Fn(),l=i.TOUCH_DOLLY_PAN;break;case Ze.DOLLY_ROTATE:if(r.enableZoom===!1&&r.enableRotate===!1)return;Nn(),l=i.TOUCH_DOLLY_ROTATE;break;default:l=i.NONE}break;default:l=i.NONE}l!==i.NONE&&r.dispatchEvent(o)}function rn(b){switch(Tt(b),l){case i.TOUCH_ROTATE:if(r.enableRotate===!1)return;_t(b),r.update();break;case i.TOUCH_PAN:if(r.enablePan===!1)return;en(b),r.update();break;case i.TOUCH_DOLLY_PAN:if(r.enableZoom===!1&&r.enablePan===!1)return;Ye(b),r.update();break;case i.TOUCH_DOLLY_ROTATE:if(r.enableZoom===!1&&r.enableRotate===!1)return;In(b),r.update();break;default:l=i.NONE}}function Ot(b){r.enabled!==!1&&b.preventDefault()}function an(b){S.push(b)}function Pt(b){delete D[b.pointerId];for(let C=0;Cnew cs(void 0,void 0,void 0)),u=y.useCallback((f,h,g,x=20)=>(f instanceof G?l.v0.copy(f):l.v0.set(...f),h instanceof G?l.v2.copy(h):l.v2.set(...h),g instanceof G?l.v1.copy(g):l.v1.copy(l.v0.clone().add(l.v2.clone().sub(l.v0)).add(zs.set(0,l.v0.y-l.v2.y,0))),l.getPoints(x)),[]);y.useLayoutEffect(()=>{i.current.setPoints=(f,h,g)=>{const x=u(f,h,g);i.current.geometry&&i.current.geometry.setPositions(x.map(m=>m.toArray()).flat())}},[]);const d=y.useMemo(()=>u(e,n,r,a),[e,n,r,a]);return y.createElement(Ji,oe({ref:Qi([i,s]),points:d},o))}),Ls=y.forwardRef(({makeDefault:t,camera:e,regress:n,domElement:r,enableDamping:a=!0,onChange:o,onStart:s,onEnd:i,...l},u)=>{const d=me(T=>T.invalidate),f=me(T=>T.camera),h=me(T=>T.gl),g=me(T=>T.events),x=me(T=>T.setEvents),m=me(T=>T.set),v=me(T=>T.get),w=me(T=>T.performance),_=e||f,B=r||g.connected||h.domElement,P=y.useMemo(()=>new Hs(_),[_]);return Sn(()=>{P.enabled&&P.update()},-1),y.useEffect(()=>(P.connect(B),()=>void P.dispose()),[B,n,P,d]),y.useEffect(()=>{const T=H=>{d(),n&&w.regress(),o&&o(H)},M=H=>{s&&s(H)},L=H=>{i&&i(H)};return P.addEventListener("change",T),P.addEventListener("start",M),P.addEventListener("end",L),()=>{P.removeEventListener("start",M),P.removeEventListener("end",L),P.removeEventListener("change",T)}},[o,s,i,P,d,x]),y.useEffect(()=>{if(t){const T=v().controls;return m({controls:P}),()=>m({controls:T})}},[t,P]),y.createElement("primitive",oe({ref:u,object:P,enableDamping:a},l))}),Gs={type:"",parent:""},da=({onSelect:t,dataTestId:e,edgeLink:n,hideSelectAll:r,placeholder:a})=>{const o=br({mode:"onChange",defaultValues:Gs}),{watch:s,setValue:i}=o,[l,u]=y.useState([]),[d,f]=y.useState(!1),h=v=>{i("parent",(v==null?void 0:v.value)||""),t(v==null?void 0:v.value)},g=v=>v.charAt(0).toUpperCase()+v.slice(1);y.useEffect(()=>{(async()=>{f(!0);try{const _=(await xr()).schemas.filter(P=>!P.is_deleted&&P.type).map(P=>P.type==="thing"?{label:"No Parent",value:P.type}:{label:g(P.type),value:P.type}).filter((P,T,M)=>T===M.findIndex(L=>L.value===P.value));u(r?_:[{label:"Select all",value:"all"},..._]),n&&i("parent",n)}catch(w){console.warn(w)}finally{f(!1)}})()},[n,i,r]);const x=s("parent"),m=()=>{const v=l==null?void 0:l.find(w=>w.value===x);if(v)return v;if(n)return{label:n,value:n}};return p.jsx(Ws,{dataTestId:e,disabled:!!n,isLoading:d,onSelect:h,options:l||_i,placeholder:a,selectedValue:m()})},Ws=O(Dt)` .MuiInputBase-input { font-family: Barlow; font-size: 14px; diff --git a/build/assets/index-54853042.js b/build/assets/index-d58befe2.js similarity index 85% rename from build/assets/index-54853042.js rename to build/assets/index-d58befe2.js index e78445af0..8c6555c49 100644 --- a/build/assets/index-54853042.js +++ b/build/assets/index-d58befe2.js @@ -1 +1 @@ -import{c as f,bs as m}from"./index-3506c528.js";import{D as y}from"./constants-f759a65e.js";const c={data:null,ids:[],loading:!1,total:0,filters:{is_muted:!1,sortBy:y,page:0,pageSize:50}};let s=null;const S=f((a,n)=>({...c,setTopics:async()=>{a({loading:!0}),s&&s.abort();const t=new AbortController,{signal:p}=t;s=t;const{data:d,ids:g,filters:e}=n(),u=T(e);e.page===0&&a({data:null,ids:[],total:0});try{const o=await m(u,p),i=e.page===0?{}:{...d||{}},l=e.page===0?[]:[...g];o.data.forEach(r=>{i[r.ref_id]=r,l.push(r.ref_id)}),a({data:i,ids:l,total:o.totalCount}),a({loading:!1})}catch(o){console.error(o)}},setFilters:t=>a({filters:{...n().filters,page:0,...t}}),terminate:()=>a(c)})),T=a=>({muted:a.is_muted?"True":"False",skip:String(a.page*a.pageSize),limit:String(a.pageSize),sort_by:a.sortBy,...a.search?{search:a.search}:{node_type:"Topic"}});export{S as u}; +import{c as f,bs as m}from"./index-6541aa03.js";import{D as y}from"./constants-71fc61fd.js";const c={data:null,ids:[],loading:!1,total:0,filters:{is_muted:!1,sortBy:y,page:0,pageSize:50}};let s=null;const S=f((a,n)=>({...c,setTopics:async()=>{a({loading:!0}),s&&s.abort();const t=new AbortController,{signal:p}=t;s=t;const{data:d,ids:g,filters:e}=n(),u=T(e);e.page===0&&a({data:null,ids:[],total:0});try{const o=await m(u,p),i=e.page===0?{}:{...d||{}},l=e.page===0?[]:[...g];o.data.forEach(r=>{i[r.ref_id]=r,l.push(r.ref_id)}),a({data:i,ids:l,total:o.totalCount}),a({loading:!1})}catch(o){console.error(o)}},setFilters:t=>a({filters:{...n().filters,page:0,...t}}),terminate:()=>a(c)})),T=a=>({muted:a.is_muted?"True":"False",skip:String(a.page*a.pageSize),limit:String(a.pageSize),sort_by:a.sortBy,...a.search?{search:a.search}:{node_type:"Topic"}});export{S as u}; diff --git a/build/assets/index-df640694.js b/build/assets/index-df640694.js deleted file mode 100644 index cf98719c1..000000000 --- a/build/assets/index-df640694.js +++ /dev/null @@ -1,733 +0,0 @@ -import{r as v,a1 as lu,x as Ae,j as F,R as sp,a8 as S_,J as M,a9 as O_,c as rp,s as $e,a as xe,F as en,B as ip,u as Os,b as op,k as go,n as A_,d as _o,aa as ap,A as cp,l as R_,e as Fo,D as P_,ab as D_,ac as M_,i as I_,ad as N_,ae as Ph}from"./index-3506c528.js";import{u as qe,a as fn,m as uu,b as sc,e as lp,q as $_,c as F_,L as up,T as hu,P as L_,f as j_,t as du,g as hp,H as yo,d as dp,h as V_,i as fp,C as Dh,j as Mh}from"./index-b1ebd2b7.js";import{P as Te}from"./index-c106f68f.js";import{l as Ih,H as z_,E as U_,m as As,h as ot,I as pp,n as fu,o as mp,b as B_,p as W_,q as q_,r as Nh,D as H_,s as Y_,R as G_,g as X_,t as Z_,N as dl,P as K_,v as Q_,w as J_,x as ey,y as ty,z as ny,O as sy}from"./index-ccbb14cf.js";import{T as ry}from"./TextareaAutosize-e8dfc0e6.js";import{a as Lo,b as iy,V as ge,c as oy,d as ay,M as hr,e as ke,f as cy,B as ly,S as gp,P as Nc,g as uy,h as aa,i as Ms,T as rc,j as pa,k as hy,l as $h,m as vo,Q as dy,G as fy,C as pu,n as py,o as _p,p as my,q as gy,r as _y,E as yy,s as vy,t as by,u as ic,v as Fh,w as fl,x as yp}from"./three.module-10ab52a5.js";import{T as Lh}from"./index-d54cb162.js";import{u as xy}from"./index-27744ada.js";import{C as wy}from"./ClipLoader-273b2bbd.js";const ky=["top","right","bottom","left"],_s=Math.min,Ft=Math.max,ma=Math.round,jo=Math.floor,ys=s=>({x:s,y:s}),Ty={left:"right",right:"left",bottom:"top",top:"bottom"},Ey={start:"end",end:"start"};function pl(s,e,t){return Ft(s,_s(e,t))}function qn(s,e){return typeof s=="function"?s(e):s}function Hn(s){return s.split("-")[0]}function Kr(s){return s.split("-")[1]}function mu(s){return s==="x"?"y":"x"}function gu(s){return s==="y"?"height":"width"}function Qr(s){return["top","bottom"].includes(Hn(s))?"y":"x"}function _u(s){return mu(Qr(s))}function Cy(s,e,t){t===void 0&&(t=!1);const n=Kr(s),r=_u(s),i=gu(r);let o=r==="x"?n===(t?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[i]>e.floating[i]&&(o=ga(o)),[o,ga(o)]}function Sy(s){const e=ga(s);return[ml(s),e,ml(e)]}function ml(s){return s.replace(/start|end/g,e=>Ey[e])}function Oy(s,e,t){const n=["left","right"],r=["right","left"],i=["top","bottom"],o=["bottom","top"];switch(s){case"top":case"bottom":return t?e?r:n:e?n:r;case"left":case"right":return e?i:o;default:return[]}}function Ay(s,e,t,n){const r=Kr(s);let i=Oy(Hn(s),t==="start",n);return r&&(i=i.map(o=>o+"-"+r),e&&(i=i.concat(i.map(ml)))),i}function ga(s){return s.replace(/left|right|bottom|top/g,e=>Ty[e])}function Ry(s){return{top:0,right:0,bottom:0,left:0,...s}}function vp(s){return typeof s!="number"?Ry(s):{top:s,right:s,bottom:s,left:s}}function _a(s){return{...s,top:s.y,left:s.x,right:s.x+s.width,bottom:s.y+s.height}}function jh(s,e,t){let{reference:n,floating:r}=s;const i=Qr(e),o=_u(e),a=gu(o),c=Hn(e),l=i==="y",u=n.x+n.width/2-r.width/2,h=n.y+n.height/2-r.height/2,d=n[a]/2-r[a]/2;let f;switch(c){case"top":f={x:u,y:n.y-r.height};break;case"bottom":f={x:u,y:n.y+n.height};break;case"right":f={x:n.x+n.width,y:h};break;case"left":f={x:n.x-r.width,y:h};break;default:f={x:n.x,y:n.y}}switch(Kr(e)){case"start":f[o]-=d*(t&&l?-1:1);break;case"end":f[o]+=d*(t&&l?-1:1);break}return f}const Py=async(s,e,t)=>{const{placement:n="bottom",strategy:r="absolute",middleware:i=[],platform:o}=t,a=i.filter(Boolean),c=await(o.isRTL==null?void 0:o.isRTL(e));let l=await o.getElementRects({reference:s,floating:e,strategy:r}),{x:u,y:h}=jh(l,n,c),d=n,f={},m=0;for(let p=0;p({name:"arrow",options:s,async fn(e){const{x:t,y:n,placement:r,rects:i,platform:o,elements:a,middlewareData:c}=e,{element:l,padding:u=0}=qn(s,e)||{};if(l==null)return{};const h=vp(u),d={x:t,y:n},f=_u(r),m=gu(f),p=await o.getDimensions(l),g=f==="y",_=g?"top":"left",x=g?"bottom":"right",k=g?"clientHeight":"clientWidth",y=i.reference[m]+i.reference[f]-d[f]-i.floating[m],b=d[f]-i.reference[f],T=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l));let E=T?T[k]:0;(!E||!await(o.isElement==null?void 0:o.isElement(T)))&&(E=a.floating[k]||i.floating[m]);const w=y/2-b/2,C=E/2-p[m]/2-1,S=_s(h[_],C),R=_s(h[x],C),O=S,j=E-p[m]-R,V=E/2-p[m]/2+w,W=pl(O,V,j),z=!c.arrow&&Kr(r)!=null&&V!=W&&i.reference[m]/2-(VO<=0)){var C,S;const O=(((C=i.flip)==null?void 0:C.index)||0)+1,j=b[O];if(j)return{data:{index:O,overflows:w},reset:{placement:j}};let V=(S=w.filter(W=>W.overflows[0]<=0).sort((W,z)=>W.overflows[1]-z.overflows[1])[0])==null?void 0:S.placement;if(!V)switch(f){case"bestFit":{var R;const W=(R=w.map(z=>[z.placement,z.overflows.filter(U=>U>0).reduce((U,B)=>U+B,0)]).sort((z,U)=>z[1]-U[1])[0])==null?void 0:R[0];W&&(V=W);break}case"initialPlacement":V=a;break}if(r!==V)return{reset:{placement:V}}}return{}}}};function zh(s,e){return{top:s.top-e.height,right:s.right-e.width,bottom:s.bottom-e.height,left:s.left-e.width}}function Uh(s){return ky.some(e=>s[e]>=0)}const My=function(s){return s===void 0&&(s={}),{name:"hide",options:s,async fn(e){const{rects:t}=e,{strategy:n="referenceHidden",...r}=qn(s,e);switch(n){case"referenceHidden":{const i=await Li(e,{...r,elementContext:"reference"}),o=zh(i,t.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:Uh(o)}}}case"escaped":{const i=await Li(e,{...r,altBoundary:!0}),o=zh(i,t.floating);return{data:{escapedOffsets:o,escaped:Uh(o)}}}default:return{}}}}};async function Iy(s,e){const{placement:t,platform:n,elements:r}=s,i=await(n.isRTL==null?void 0:n.isRTL(r.floating)),o=Hn(t),a=Kr(t),c=Qr(t)==="y",l=["left","top"].includes(o)?-1:1,u=i&&c?-1:1,h=qn(e,s);let{mainAxis:d,crossAxis:f,alignmentAxis:m}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...h};return a&&typeof m=="number"&&(f=a==="end"?m*-1:m),c?{x:f*u,y:d*l}:{x:d*l,y:f*u}}const Ny=function(s){return s===void 0&&(s=0),{name:"offset",options:s,async fn(e){var t,n;const{x:r,y:i,placement:o,middlewareData:a}=e,c=await Iy(e,s);return o===((t=a.offset)==null?void 0:t.placement)&&(n=a.arrow)!=null&&n.alignmentOffset?{}:{x:r+c.x,y:i+c.y,data:{...c,placement:o}}}}},$y=function(s){return s===void 0&&(s={}),{name:"shift",options:s,async fn(e){const{x:t,y:n,placement:r}=e,{mainAxis:i=!0,crossAxis:o=!1,limiter:a={fn:g=>{let{x:_,y:x}=g;return{x:_,y:x}}},...c}=qn(s,e),l={x:t,y:n},u=await Li(e,c),h=Qr(Hn(r)),d=mu(h);let f=l[d],m=l[h];if(i){const g=d==="y"?"top":"left",_=d==="y"?"bottom":"right",x=f+u[g],k=f-u[_];f=pl(x,f,k)}if(o){const g=h==="y"?"top":"left",_=h==="y"?"bottom":"right",x=m+u[g],k=m-u[_];m=pl(x,m,k)}const p=a.fn({...e,[d]:f,[h]:m});return{...p,data:{x:p.x-t,y:p.y-n}}}}},Fy=function(s){return s===void 0&&(s={}),{options:s,fn(e){const{x:t,y:n,placement:r,rects:i,middlewareData:o}=e,{offset:a=0,mainAxis:c=!0,crossAxis:l=!0}=qn(s,e),u={x:t,y:n},h=Qr(r),d=mu(h);let f=u[d],m=u[h];const p=qn(a,e),g=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(c){const k=d==="y"?"height":"width",y=i.reference[d]-i.floating[k]+g.mainAxis,b=i.reference[d]+i.reference[k]-g.mainAxis;fb&&(f=b)}if(l){var _,x;const k=d==="y"?"width":"height",y=["top","left"].includes(Hn(r)),b=i.reference[h]-i.floating[k]+(y&&((_=o.offset)==null?void 0:_[h])||0)+(y?0:g.crossAxis),T=i.reference[h]+i.reference[k]+(y?0:((x=o.offset)==null?void 0:x[h])||0)-(y?g.crossAxis:0);mT&&(m=T)}return{[d]:f,[h]:m}}}},Ly=function(s){return s===void 0&&(s={}),{name:"size",options:s,async fn(e){const{placement:t,rects:n,platform:r,elements:i}=e,{apply:o=()=>{},...a}=qn(s,e),c=await Li(e,a),l=Hn(t),u=Kr(t),h=Qr(t)==="y",{width:d,height:f}=n.floating;let m,p;l==="top"||l==="bottom"?(m=l,p=u===(await(r.isRTL==null?void 0:r.isRTL(i.floating))?"start":"end")?"left":"right"):(p=l,m=u==="end"?"top":"bottom");const g=f-c[m],_=d-c[p],x=!e.middlewareData.shift;let k=g,y=_;if(h){const T=d-c.left-c.right;y=u||x?_s(_,T):T}else{const T=f-c.top-c.bottom;k=u||x?_s(g,T):T}if(x&&!u){const T=Ft(c.left,0),E=Ft(c.right,0),w=Ft(c.top,0),C=Ft(c.bottom,0);h?y=d-2*(T!==0||E!==0?T+E:Ft(c.left,c.right)):k=f-2*(w!==0||C!==0?w+C:Ft(c.top,c.bottom))}await o({...e,availableWidth:y,availableHeight:k});const b=await r.getDimensions(i.floating);return d!==b.width||f!==b.height?{reset:{rects:!0}}:{}}}};function vs(s){return bp(s)?(s.nodeName||"").toLowerCase():"#document"}function Vt(s){var e;return(s==null||(e=s.ownerDocument)==null?void 0:e.defaultView)||window}function Jn(s){var e;return(e=(bp(s)?s.ownerDocument:s.document)||window.document)==null?void 0:e.documentElement}function bp(s){return s instanceof Node||s instanceof Vt(s).Node}function Yn(s){return s instanceof Element||s instanceof Vt(s).Element}function Cn(s){return s instanceof HTMLElement||s instanceof Vt(s).HTMLElement}function Bh(s){return typeof ShadowRoot>"u"?!1:s instanceof ShadowRoot||s instanceof Vt(s).ShadowRoot}function bo(s){const{overflow:e,overflowX:t,overflowY:n,display:r}=Kt(s);return/auto|scroll|overlay|hidden|clip/.test(e+n+t)&&!["inline","contents"].includes(r)}function jy(s){return["table","td","th"].includes(vs(s))}function yu(s){const e=vu(),t=Kt(s);return t.transform!=="none"||t.perspective!=="none"||(t.containerType?t.containerType!=="normal":!1)||!e&&(t.backdropFilter?t.backdropFilter!=="none":!1)||!e&&(t.filter?t.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(t.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(t.contain||"").includes(n))}function Vy(s){let e=$r(s);for(;Cn(e)&&!oc(e);){if(yu(e))return e;e=$r(e)}return null}function vu(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function oc(s){return["html","body","#document"].includes(vs(s))}function Kt(s){return Vt(s).getComputedStyle(s)}function ac(s){return Yn(s)?{scrollLeft:s.scrollLeft,scrollTop:s.scrollTop}:{scrollLeft:s.pageXOffset,scrollTop:s.pageYOffset}}function $r(s){if(vs(s)==="html")return s;const e=s.assignedSlot||s.parentNode||Bh(s)&&s.host||Jn(s);return Bh(e)?e.host:e}function xp(s){const e=$r(s);return oc(e)?s.ownerDocument?s.ownerDocument.body:s.body:Cn(e)&&bo(e)?e:xp(e)}function ji(s,e,t){var n;e===void 0&&(e=[]),t===void 0&&(t=!0);const r=xp(s),i=r===((n=s.ownerDocument)==null?void 0:n.body),o=Vt(r);return i?e.concat(o,o.visualViewport||[],bo(r)?r:[],o.frameElement&&t?ji(o.frameElement):[]):e.concat(r,ji(r,[],t))}function wp(s){const e=Kt(s);let t=parseFloat(e.width)||0,n=parseFloat(e.height)||0;const r=Cn(s),i=r?s.offsetWidth:t,o=r?s.offsetHeight:n,a=ma(t)!==i||ma(n)!==o;return a&&(t=i,n=o),{width:t,height:n,$:a}}function bu(s){return Yn(s)?s:s.contextElement}function Or(s){const e=bu(s);if(!Cn(e))return ys(1);const t=e.getBoundingClientRect(),{width:n,height:r,$:i}=wp(e);let o=(i?ma(t.width):t.width)/n,a=(i?ma(t.height):t.height)/r;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}const zy=ys(0);function kp(s){const e=Vt(s);return!vu()||!e.visualViewport?zy:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Uy(s,e,t){return e===void 0&&(e=!1),!t||e&&t!==Vt(s)?!1:e}function Zs(s,e,t,n){e===void 0&&(e=!1),t===void 0&&(t=!1);const r=s.getBoundingClientRect(),i=bu(s);let o=ys(1);e&&(n?Yn(n)&&(o=Or(n)):o=Or(s));const a=Uy(i,t,n)?kp(i):ys(0);let c=(r.left+a.x)/o.x,l=(r.top+a.y)/o.y,u=r.width/o.x,h=r.height/o.y;if(i){const d=Vt(i),f=n&&Yn(n)?Vt(n):n;let m=d.frameElement;for(;m&&n&&f!==d;){const p=Or(m),g=m.getBoundingClientRect(),_=Kt(m),x=g.left+(m.clientLeft+parseFloat(_.paddingLeft))*p.x,k=g.top+(m.clientTop+parseFloat(_.paddingTop))*p.y;c*=p.x,l*=p.y,u*=p.x,h*=p.y,c+=x,l+=k,m=Vt(m).frameElement}}return _a({width:u,height:h,x:c,y:l})}function By(s){let{rect:e,offsetParent:t,strategy:n}=s;const r=Cn(t),i=Jn(t);if(t===i)return e;let o={scrollLeft:0,scrollTop:0},a=ys(1);const c=ys(0);if((r||!r&&n!=="fixed")&&((vs(t)!=="body"||bo(i))&&(o=ac(t)),Cn(t))){const l=Zs(t);a=Or(t),c.x=l.x+t.clientLeft,c.y=l.y+t.clientTop}return{width:e.width*a.x,height:e.height*a.y,x:e.x*a.x-o.scrollLeft*a.x+c.x,y:e.y*a.y-o.scrollTop*a.y+c.y}}function Wy(s){return Array.from(s.getClientRects())}function Tp(s){return Zs(Jn(s)).left+ac(s).scrollLeft}function qy(s){const e=Jn(s),t=ac(s),n=s.ownerDocument.body,r=Ft(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=Ft(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let o=-t.scrollLeft+Tp(s);const a=-t.scrollTop;return Kt(n).direction==="rtl"&&(o+=Ft(e.clientWidth,n.clientWidth)-r),{width:r,height:i,x:o,y:a}}function Hy(s,e){const t=Vt(s),n=Jn(s),r=t.visualViewport;let i=n.clientWidth,o=n.clientHeight,a=0,c=0;if(r){i=r.width,o=r.height;const l=vu();(!l||l&&e==="fixed")&&(a=r.offsetLeft,c=r.offsetTop)}return{width:i,height:o,x:a,y:c}}function Yy(s,e){const t=Zs(s,!0,e==="fixed"),n=t.top+s.clientTop,r=t.left+s.clientLeft,i=Cn(s)?Or(s):ys(1),o=s.clientWidth*i.x,a=s.clientHeight*i.y,c=r*i.x,l=n*i.y;return{width:o,height:a,x:c,y:l}}function Wh(s,e,t){let n;if(e==="viewport")n=Hy(s,t);else if(e==="document")n=qy(Jn(s));else if(Yn(e))n=Yy(e,t);else{const r=kp(s);n={...e,x:e.x-r.x,y:e.y-r.y}}return _a(n)}function Ep(s,e){const t=$r(s);return t===e||!Yn(t)||oc(t)?!1:Kt(t).position==="fixed"||Ep(t,e)}function Gy(s,e){const t=e.get(s);if(t)return t;let n=ji(s,[],!1).filter(a=>Yn(a)&&vs(a)!=="body"),r=null;const i=Kt(s).position==="fixed";let o=i?$r(s):s;for(;Yn(o)&&!oc(o);){const a=Kt(o),c=yu(o);!c&&a.position==="fixed"&&(r=null),(i?!c&&!r:!c&&a.position==="static"&&!!r&&["absolute","fixed"].includes(r.position)||bo(o)&&!c&&Ep(s,o))?n=n.filter(u=>u!==o):r=a,o=$r(o)}return e.set(s,n),n}function Xy(s){let{element:e,boundary:t,rootBoundary:n,strategy:r}=s;const o=[...t==="clippingAncestors"?Gy(e,this._c):[].concat(t),n],a=o[0],c=o.reduce((l,u)=>{const h=Wh(e,u,r);return l.top=Ft(h.top,l.top),l.right=_s(h.right,l.right),l.bottom=_s(h.bottom,l.bottom),l.left=Ft(h.left,l.left),l},Wh(e,a,r));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Zy(s){return wp(s)}function Ky(s,e,t){const n=Cn(e),r=Jn(e),i=t==="fixed",o=Zs(s,!0,i,e);let a={scrollLeft:0,scrollTop:0};const c=ys(0);if(n||!n&&!i)if((vs(e)!=="body"||bo(r))&&(a=ac(e)),n){const l=Zs(e,!0,i,e);c.x=l.x+e.clientLeft,c.y=l.y+e.clientTop}else r&&(c.x=Tp(r));return{x:o.left+a.scrollLeft-c.x,y:o.top+a.scrollTop-c.y,width:o.width,height:o.height}}function qh(s,e){return!Cn(s)||Kt(s).position==="fixed"?null:e?e(s):s.offsetParent}function Cp(s,e){const t=Vt(s);if(!Cn(s))return t;let n=qh(s,e);for(;n&&jy(n)&&Kt(n).position==="static";)n=qh(n,e);return n&&(vs(n)==="html"||vs(n)==="body"&&Kt(n).position==="static"&&!yu(n))?t:n||Vy(s)||t}const Qy=async function(s){let{reference:e,floating:t,strategy:n}=s;const r=this.getOffsetParent||Cp,i=this.getDimensions;return{reference:Ky(e,await r(t),n),floating:{x:0,y:0,...await i(t)}}};function Jy(s){return Kt(s).direction==="rtl"}const e1={convertOffsetParentRelativeRectToViewportRelativeRect:By,getDocumentElement:Jn,getClippingRect:Xy,getOffsetParent:Cp,getElementRects:Qy,getClientRects:Wy,getDimensions:Zy,getScale:Or,isElement:Yn,isRTL:Jy};function t1(s,e){let t=null,n;const r=Jn(s);function i(){clearTimeout(n),t&&t.disconnect(),t=null}function o(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),i();const{left:l,top:u,width:h,height:d}=s.getBoundingClientRect();if(a||e(),!h||!d)return;const f=jo(u),m=jo(r.clientWidth-(l+h)),p=jo(r.clientHeight-(u+d)),g=jo(l),x={rootMargin:-f+"px "+-m+"px "+-p+"px "+-g+"px",threshold:Ft(0,_s(1,c))||1};let k=!0;function y(b){const T=b[0].intersectionRatio;if(T!==c){if(!k)return o();T?o(!1,T):n=setTimeout(()=>{o(!1,1e-7)},100)}k=!1}try{t=new IntersectionObserver(y,{...x,root:r.ownerDocument})}catch{t=new IntersectionObserver(y,x)}t.observe(s)}return o(!0),i}function n1(s,e,t,n){n===void 0&&(n={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=n,l=bu(s),u=r||i?[...l?ji(l):[],...ji(e)]:[];u.forEach(_=>{r&&_.addEventListener("scroll",t,{passive:!0}),i&&_.addEventListener("resize",t)});const h=l&&a?t1(l,t):null;let d=-1,f=null;o&&(f=new ResizeObserver(_=>{let[x]=_;x&&x.target===l&&f&&(f.unobserve(e),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{f&&f.observe(e)})),t()}),l&&!c&&f.observe(l),f.observe(e));let m,p=c?Zs(s):null;c&&g();function g(){const _=Zs(s);p&&(_.x!==p.x||_.y!==p.y||_.width!==p.width||_.height!==p.height)&&t(),p=_,m=requestAnimationFrame(g)}return t(),()=>{u.forEach(_=>{r&&_.removeEventListener("scroll",t),i&&_.removeEventListener("resize",t)}),h&&h(),f&&f.disconnect(),f=null,c&&cancelAnimationFrame(m)}}const s1=(s,e,t)=>{const n=new Map,r={platform:e1,...t},i={...r.platform,_c:n};return Py(s,e,{...r,platform:i})},r1=s=>{function e(t){return{}.hasOwnProperty.call(t,"current")}return{name:"arrow",options:s,fn(t){const{element:n,padding:r}=typeof s=="function"?s(t):s;return n&&e(n)?n.current!=null?Vh({element:n.current,padding:r}).fn(t):{}:n?Vh({element:n,padding:r}).fn(t):{}}}};var ca=typeof document<"u"?v.useLayoutEffect:v.useEffect;function ya(s,e){if(s===e)return!0;if(typeof s!=typeof e)return!1;if(typeof s=="function"&&s.toString()===e.toString())return!0;let t,n,r;if(s&&e&&typeof s=="object"){if(Array.isArray(s)){if(t=s.length,t!=e.length)return!1;for(n=t;n--!==0;)if(!ya(s[n],e[n]))return!1;return!0}if(r=Object.keys(s),t=r.length,t!==Object.keys(e).length)return!1;for(n=t;n--!==0;)if(!{}.hasOwnProperty.call(e,r[n]))return!1;for(n=t;n--!==0;){const i=r[n];if(!(i==="_owner"&&s.$$typeof)&&!ya(s[i],e[i]))return!1}return!0}return s!==s&&e!==e}function Sp(s){return typeof window>"u"?1:(s.ownerDocument.defaultView||window).devicePixelRatio||1}function Hh(s,e){const t=Sp(s);return Math.round(e*t)/t}function Yh(s){const e=v.useRef(s);return ca(()=>{e.current=s}),e}function i1(s){s===void 0&&(s={});const{placement:e="bottom",strategy:t="absolute",middleware:n=[],platform:r,elements:{reference:i,floating:o}={},transform:a=!0,whileElementsMounted:c,open:l}=s,[u,h]=v.useState({x:0,y:0,strategy:t,placement:e,middlewareData:{},isPositioned:!1}),[d,f]=v.useState(n);ya(d,n)||f(n);const[m,p]=v.useState(null),[g,_]=v.useState(null),x=v.useCallback(z=>{z!=T.current&&(T.current=z,p(z))},[p]),k=v.useCallback(z=>{z!==E.current&&(E.current=z,_(z))},[_]),y=i||m,b=o||g,T=v.useRef(null),E=v.useRef(null),w=v.useRef(u),C=Yh(c),S=Yh(r),R=v.useCallback(()=>{if(!T.current||!E.current)return;const z={placement:e,strategy:t,middleware:d};S.current&&(z.platform=S.current),s1(T.current,E.current,z).then(U=>{const B={...U,isPositioned:!0};O.current&&!ya(w.current,B)&&(w.current=B,lu.flushSync(()=>{h(B)}))})},[d,e,t,S]);ca(()=>{l===!1&&w.current.isPositioned&&(w.current.isPositioned=!1,h(z=>({...z,isPositioned:!1})))},[l]);const O=v.useRef(!1);ca(()=>(O.current=!0,()=>{O.current=!1}),[]),ca(()=>{if(y&&(T.current=y),b&&(E.current=b),y&&b){if(C.current)return C.current(y,b,R);R()}},[y,b,R,C]);const j=v.useMemo(()=>({reference:T,floating:E,setReference:x,setFloating:k}),[x,k]),V=v.useMemo(()=>({reference:y,floating:b}),[y,b]),W=v.useMemo(()=>{const z={position:t,left:0,top:0};if(!V.floating)return z;const U=Hh(V.floating,u.x),B=Hh(V.floating,u.y);return a?{...z,transform:"translate("+U+"px, "+B+"px)",...Sp(V.floating)>=1.5&&{willChange:"transform"}}:{position:t,left:U,top:B}},[t,a,V.floating,u.x,u.y]);return v.useMemo(()=>({...u,update:R,refs:j,elements:V,floatingStyles:W}),[u,R,j,V,W])}function o1(s){let e;const t=new Set,n=(l,u)=>{const h=typeof l=="function"?l(e):l;if(h!==e){const d=e;e=u?h:Object.assign({},e,h),t.forEach(f=>f(e,d))}},r=()=>e,i=(l,u=r,h=Object.is)=>{console.warn("[DEPRECATED] Please use `subscribeWithSelector` middleware");let d=u(e);function f(){const m=u(e);if(!h(d,m)){const p=d;l(d=m,p)}}return t.add(f),()=>t.delete(f)},c={setState:n,getState:r,subscribe:(l,u,h)=>u||h?i(l,u,h):(t.add(l),()=>t.delete(l)),destroy:()=>t.clear()};return e=s(n,r,c),c}const a1=typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),Gh=a1?v.useEffect:v.useLayoutEffect;function c1(s){const e=typeof s=="function"?o1(s):s,t=(n=e.getState,r=Object.is)=>{const[,i]=v.useReducer(g=>g+1,0),o=e.getState(),a=v.useRef(o),c=v.useRef(n),l=v.useRef(r),u=v.useRef(!1),h=v.useRef();h.current===void 0&&(h.current=n(o));let d,f=!1;(a.current!==o||c.current!==n||l.current!==r||u.current)&&(d=n(o),f=!r(h.current,d)),Gh(()=>{f&&(h.current=d),a.current=o,c.current=n,l.current=r,u.current=!1});const m=v.useRef(o);Gh(()=>{const g=()=>{try{const x=e.getState(),k=c.current(x);l.current(h.current,k)||(a.current=x,h.current=k,i())}catch{u.current=!0,i()}},_=e.subscribe(g);return e.getState()!==m.current&&g(),_},[]);const p=f?d:h.current;return v.useDebugValue(p),p};return Object.assign(t,e),t[Symbol.iterator]=function(){console.warn("[useStore, api] = create() is deprecated and will be removed in v4");const n=[t,e];return{next(){const r=n.length<=0;return{value:n.shift(),done:r}}}},t}let ci=0;const l1=c1(s=>(Lo.onStart=(e,t,n)=>{s({active:!0,item:e,loaded:t,total:n,progress:(t-ci)/(n-ci)*100})},Lo.onLoad=()=>{s({active:!1})},Lo.onError=e=>s(t=>({errors:[...t.errors,e]})),Lo.onProgress=(e,t,n)=>{t===n&&(ci=n),s({active:!0,item:e,loaded:t,total:n,progress:(t-ci)/(n-ci)*100||100})},{errors:[],active:!1,progress:0,item:"",loaded:0,total:0})),u1=s=>`Loading ${s.toFixed(2)}%`;function h1({containerStyles:s,innerStyles:e,barStyles:t,dataStyles:n,dataInterpolation:r=u1,initialState:i=o=>o}){const{active:o,progress:a}=l1(),c=v.useRef(0),l=v.useRef(0),u=v.useRef(null),[h,d]=v.useState(i(o));v.useEffect(()=>{let m;return o!==h&&(m=setTimeout(()=>d(o),300)),()=>clearTimeout(m)},[h,o]);const f=v.useCallback(()=>{u.current&&(c.current+=(a-c.current)/2,(c.current>.95*a||a===100)&&(c.current=a),u.current.innerText=r(c.current),c.current(f(),()=>cancelAnimationFrame(l.current)),[f]),h?v.createElement("div",{style:{...Vo.container,opacity:o?1:0,...s}},v.createElement("div",null,v.createElement("div",{style:{...Vo.inner,...e}},v.createElement("div",{style:{...Vo.bar,transform:`scaleX(${a/100})`,...t}}),v.createElement("span",{ref:u,style:{...Vo.data,...n}})))):null}const Vo={container:{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:"#171717",display:"flex",alignItems:"center",justifyContent:"center",transition:"opacity 300ms ease",zIndex:1e3},inner:{width:100,height:3,background:"#272727",textAlign:"center"},bar:{height:3,width:"100%",background:"white",transition:"transform 200ms",transformOrigin:"left center"},data:{display:"inline-block",position:"relative",fontVariantNumeric:"tabular-nums",marginTop:"0.8em",color:"#f0f0f0",fontSize:"0.6em",fontFamily:'-apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", "Helvetica Neue", Helvetica, Arial, Roboto, Ubuntu, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',whiteSpace:"nowrap"}},$c=new iy,Fc=new ge,dr=new ge,nn=new ge,Mn=new ge,yn=new ge,In=new ge,Nn=new ge,li=new ge,ui=new ge,hi=new ge,zo=new ge,di=new ge,fi=new ge,pi=new ge;class d1{constructor(e,t,n){this.camera=e,this.scene=t,this.startPoint=new ge,this.endPoint=new ge,this.collection=[],this.deep=n||Number.MAX_VALUE}select(e,t){return this.startPoint=e||this.startPoint,this.endPoint=t||this.endPoint,this.collection=[],this.updateFrustum(this.startPoint,this.endPoint),this.searchChildInFrustum($c,this.scene),this.collection}updateFrustum(e,t){if(e=e||this.startPoint,t=t||this.endPoint,e.x===t.x&&(t.x+=Number.EPSILON),e.y===t.y&&(t.y+=Number.EPSILON),this.camera.updateProjectionMatrix(),this.camera.updateMatrixWorld(),this.camera.isPerspectiveCamera){dr.copy(e),dr.x=Math.min(e.x,t.x),dr.y=Math.max(e.y,t.y),t.x=Math.max(e.x,t.x),t.y=Math.min(e.y,t.y),nn.setFromMatrixPosition(this.camera.matrixWorld),Mn.copy(dr),yn.set(t.x,dr.y,0),In.copy(t),Nn.set(dr.x,t.y,0),Mn.unproject(this.camera),yn.unproject(this.camera),In.unproject(this.camera),Nn.unproject(this.camera),di.copy(Mn).sub(nn),fi.copy(yn).sub(nn),pi.copy(In).sub(nn),di.normalize(),fi.normalize(),pi.normalize(),di.multiplyScalar(this.deep),fi.multiplyScalar(this.deep),pi.multiplyScalar(this.deep),di.add(nn),fi.add(nn),pi.add(nn);var n=$c.planes;n[0].setFromCoplanarPoints(nn,Mn,yn),n[1].setFromCoplanarPoints(nn,yn,In),n[2].setFromCoplanarPoints(In,Nn,nn),n[3].setFromCoplanarPoints(Nn,Mn,nn),n[4].setFromCoplanarPoints(yn,In,Nn),n[5].setFromCoplanarPoints(pi,fi,di),n[5].normal.multiplyScalar(-1)}else if(this.camera.isOrthographicCamera){const r=Math.min(e.x,t.x),i=Math.max(e.y,t.y),o=Math.max(e.x,t.x),a=Math.min(e.y,t.y);Mn.set(r,i,-1),yn.set(o,i,-1),In.set(o,a,-1),Nn.set(r,a,-1),li.set(r,i,1),ui.set(o,i,1),hi.set(o,a,1),zo.set(r,a,1),Mn.unproject(this.camera),yn.unproject(this.camera),In.unproject(this.camera),Nn.unproject(this.camera),li.unproject(this.camera),ui.unproject(this.camera),hi.unproject(this.camera),zo.unproject(this.camera);var n=$c.planes;n[0].setFromCoplanarPoints(Mn,li,ui),n[1].setFromCoplanarPoints(yn,ui,hi),n[2].setFromCoplanarPoints(hi,zo,Nn),n[3].setFromCoplanarPoints(zo,li,Mn),n[4].setFromCoplanarPoints(yn,In,Nn),n[5].setFromCoplanarPoints(hi,ui,li),n[5].normal.multiplyScalar(-1)}else console.error("THREE.SelectionBox: Unsupported camera type.")}searchChildInFrustum(e,t){if((t.isMesh||t.isLine||t.isPoints)&&t.material!==void 0&&(t.geometry.boundingSphere===null&&t.geometry.computeBoundingSphere(),Fc.copy(t.geometry.boundingSphere.center),Fc.applyMatrix4(t.matrixWorld),e.containsPoint(Fc)&&this.collection.push(t)),t.children.length>0)for(let n=0;n0?X.copy(O[O.length-1]):X.identity())}function r(N){const L=new Ms,A=new ke,I=new ke,Y=new ke;let $=!0,q=!1;const re=N.getAttribute("d").match(/[a-df-z][^a-df-z]*/gi);for(let ie=0,ne=re.length;ie0&&(A.copy(Y),L.currentPath.currentPoint.copy(A),$=!0);break;default:console.warn(me)}q=!1}return L}function i(N){if(!(!N.sheet||!N.sheet.cssRules||!N.sheet.cssRules.length))for(let L=0;LY.trim());for(let Y=0;Y1){const rs=Math.sqrt(Q);L=rs*L,A=rs*A,te=L*L,H=A*A}const se=te*P+H*D,ce=(te*H-se)/se;let ye=Math.sqrt(Math.max(0,ce));Y===$&&(ye=-ye);const Qe=ye*L*me/A,ee=-ye*A*ne/L,de=Math.cos(I)*Qe-Math.sin(I)*ee+(q.x+oe.x)/2,Je=Math.sin(I)*Qe+Math.cos(I)*ee+(q.y+oe.y)/2,it=a(1,0,(ne-Qe)/L,(me-ee)/A),Nt=a((ne-Qe)/L,(me-ee)/A,(-ne-Qe)/L,(-me-ee)/A)%(Math.PI*2);N.currentPath.absellipse(de,Je,L,A,it,it+Nt,$===0,I)}function a(N,L,A,I){const Y=N*A+L*I,$=Math.sqrt(N*N+L*L)*Math.sqrt(A*A+I*I);let q=Math.acos(Math.max(-1,Math.min(1,Y/$)));return N*I-L*A<0&&(q=-q),q}function c(N){const L=k(N.getAttribute("x")||0),A=k(N.getAttribute("y")||0),I=k(N.getAttribute("rx")||N.getAttribute("ry")||0),Y=k(N.getAttribute("ry")||N.getAttribute("rx")||0),$=k(N.getAttribute("width")),q=k(N.getAttribute("height")),oe=1-.551915024494,re=new Ms;return re.moveTo(L+I,A),re.lineTo(L+$-I,A),(I!==0||Y!==0)&&re.bezierCurveTo(L+$-I*oe,A,L+$,A+Y*oe,L+$,A+Y),re.lineTo(L+$,A+q-Y),(I!==0||Y!==0)&&re.bezierCurveTo(L+$,A+q-Y*oe,L+$-I*oe,A+q,L+$-I,A+q),re.lineTo(L+I,A+q),(I!==0||Y!==0)&&re.bezierCurveTo(L+I*oe,A+q,L,A+q-Y*oe,L,A+q-Y),re.lineTo(L,A+Y),(I!==0||Y!==0)&&re.bezierCurveTo(L,A+Y*oe,L+I*oe,A,L+I,A),re}function l(N){function L($,q,oe){const re=k(q),ie=k(oe);Y===0?I.moveTo(re,ie):I.lineTo(re,ie),Y++}const A=/(-?[\d\.?]+)[,|\s](-?[\d\.?]+)/g,I=new Ms;let Y=0;return N.getAttribute("points").replace(A,L),I.currentPath.autoClose=!0,I}function u(N){function L($,q,oe){const re=k(q),ie=k(oe);Y===0?I.moveTo(re,ie):I.lineTo(re,ie),Y++}const A=/(-?[\d\.?]+)[,|\s](-?[\d\.?]+)/g,I=new Ms;let Y=0;return N.getAttribute("points").replace(A,L),I.currentPath.autoClose=!1,I}function h(N){const L=k(N.getAttribute("cx")||0),A=k(N.getAttribute("cy")||0),I=k(N.getAttribute("r")||0),Y=new Nc;Y.absarc(L,A,I,0,Math.PI*2);const $=new Ms;return $.subPaths.push(Y),$}function d(N){const L=k(N.getAttribute("cx")||0),A=k(N.getAttribute("cy")||0),I=k(N.getAttribute("rx")||0),Y=k(N.getAttribute("ry")||0),$=new Nc;$.absellipse(L,A,I,Y,0,Math.PI*2);const q=new Ms;return q.subPaths.push($),q}function f(N){const L=k(N.getAttribute("x1")||0),A=k(N.getAttribute("y1")||0),I=k(N.getAttribute("x2")||0),Y=k(N.getAttribute("y2")||0),$=new Ms;return $.moveTo(L,A),$.lineTo(I,Y),$.currentPath.autoClose=!1,$}function m(N,L){L=Object.assign({},L);let A={};if(N.hasAttribute("class")){const q=N.getAttribute("class").split(/\s/).filter(Boolean).map(oe=>oe.trim());for(let oe=0;oe0&&L.premultiply(O[O.length-1]),X.copy(L),O.push(L),L}function b(N){const L=new hr,A=j;if(N.nodeName==="use"&&(N.hasAttribute("x")||N.hasAttribute("y"))){const I=k(N.getAttribute("x")),Y=k(N.getAttribute("y"));L.translate(I,Y)}if(N.hasAttribute("transform")){const I=N.getAttribute("transform").split(")");for(let Y=I.length-1;Y>=0;Y--){const $=I[Y].trim();if($==="")continue;const q=$.indexOf("("),oe=$.length;if(q>0&&q=1){const ne=ie[0];let me=ne;ie.length>=2&&(me=ie[1]),A.translate(ne,me)}break;case"rotate":if(ie.length>=1){let ne=0,me=0,te=0;ne=-ie[0]*Math.PI/180,ie.length>=3&&(me=ie[1],te=ie[2]),V.identity().translate(-me,-te),W.identity().rotate(ne),z.multiplyMatrices(W,V),V.identity().translate(me,te),A.multiplyMatrices(V,z)}break;case"scale":if(ie.length>=1){const ne=ie[0];let me=ne;ie.length>=2&&(me=ie[1]),A.scale(ne,me)}break;case"skewX":ie.length===1&&A.set(1,Math.tan(ie[0]*Math.PI/180),0,0,1,0,0,0,1);break;case"skewY":ie.length===1&&A.set(1,0,0,Math.tan(ie[0]*Math.PI/180),1,0,0,0,1);break;case"matrix":ie.length===6&&A.set(ie[0],ie[2],ie[4],ie[1],ie[3],ie[5],0,0,1);break}}L.premultiply(A)}}return L}function T(N,L){function A($){B.set($.x,$.y,1).applyMatrix3(L),$.set(B.x,B.y)}const I=E(L),Y=N.subPaths;for(let $=0,q=Y.length;$=1||z<0||z>1)return null;if(O===0&&V===0){for(let U=0;U<2;U++)if(o(U===0?x:k,g,_),r.loc==n.ORIGIN){const B=U===0?x:k;return{x:B.x,y:B.y,t:r.t}}else if(r.loc==n.BETWEEN){const B=+(y+r.t*(b-y)).toPrecision(10),X=+(w+r.t*(C-w)).toPrecision(10);return{x:B,y:X,t:r.t}}return null}else{for(let X=0;X<2;X++)if(o(X===0?x:k,g,_),r.loc==n.ORIGIN){const K=X===0?x:k;return{x:K.x,y:K.y,t:r.t}}const U=+(y+W*(b-y)).toPrecision(10),B=+(w+W*(C-w)).toPrecision(10);return{x:U,y:B,t:W}}}function o(g,_,x){const k=x.x-_.x,y=x.y-_.y,b=g.x-_.x,T=g.y-_.y,E=k*T-b*y;if(g.x===_.x&&g.y===_.y){r.loc=n.ORIGIN,r.t=0;return}if(g.x===x.x&&g.y===x.y){r.loc=n.DESTINATION,r.t=1;return}if(E<-Number.EPSILON){r.loc=n.LEFT;return}if(E>Number.EPSILON){r.loc=n.RIGHT;return}if(k*b<0||y*T<0){r.loc=n.BEHIND;return}if(Math.sqrt(k*k+y*y)R.t<=S.t+Number.EPSILON&&R.t>=S.t-Number.EPSILON)===void 0&&(x.push(S),k.push(new ke(S.x,S.y)))}}return k}function c(g,_,x){const k=new ke;_.getCenter(k);const y=[];return x.forEach(b=>{b.boundingBox.containsPoint(k)&&a(g,b.points).forEach(E=>{y.push({identifier:b.identifier,isCW:b.isCW,point:E})})}),y.sort((b,T)=>b.point.x-T.point.x),y}function l(g,_,x,k,y){(y==null||y==="")&&(y="nonzero");const b=new ke;g.boundingBox.getCenter(b);const T=[new ke(x,b.y),new ke(k,b.y)],E=c(T,g.boundingBox,_);E.sort((j,V)=>j.point.x-V.point.x);const w=[],C=[];E.forEach(j=>{j.identifier===g.identifier?w.push(j):C.push(j)});const S=w[0].point.x,R=[];let O=0;for(;O0&&R[R.length-1]===C[O].identifier?R.pop():R.push(C[O].identifier),O++;if(R.push(g.identifier),y==="evenodd"){const j=R.length%2===0,V=R[R.length-2];return{identifier:g.identifier,isHole:j,for:V}}else if(y==="nonzero"){let j=!0,V=null,W=null;for(let z=0;z{const _=g.getPoints();let x=-999999999,k=999999999,y=-999999999,b=999999999;for(let T=0;T<_.length;T++){const E=_[T];E.y>x&&(x=E.y),E.yy&&(y=E.x),E.x=b&&(h=b-1),{curves:g.curves,points:_,isCW:cy.isClockWise(_),identifier:u++,boundingBox:new ly(new ke(b,k),new ke(y,x))}});f=f.filter(g=>g.points.length>1);const m=f.map(g=>l(g,f,h,d,e.userData.style.fillRule)),p=[];return f.forEach(g=>{if(!m[g.identifier].isHole){const x=new gp;x.curves=g.curves,m.filter(y=>y.isHole&&y.for===g.identifier).forEach(y=>{const b=f[y.identifier],T=new Nc;T.curves=b.curves,x.holes.push(T)}),p.push(x)}}),p}static getStrokeStyle(e,t,n,r,i){return e=e!==void 0?e:1,t=t!==void 0?t:"#000",n=n!==void 0?n:"miter",r=r!==void 0?r:"butt",i=i!==void 0?i:4,{strokeColor:t,strokeWidth:e,strokeLineJoin:n,strokeLineCap:r,strokeMiterLimit:i}}static pointsToStroke(e,t,n,r){const i=[],o=[],a=[];if(Ai.pointsToStrokeWithBuffers(e,t,n,r,i,o,a)===0)return null;const c=new uy;return c.setAttribute("position",new aa(i,3)),c.setAttribute("normal",new aa(o,3)),c.setAttribute("uv",new aa(a,2)),c}static pointsToStrokeWithBuffers(e,t,n,r,i,o,a,c){const l=new ke,u=new ke,h=new ke,d=new ke,f=new ke,m=new ke,p=new ke,g=new ke,_=new ke,x=new ke,k=new ke,y=new ke,b=new ke,T=new ke,E=new ke,w=new ke,C=new ke;n=n!==void 0?n:12,r=r!==void 0?r:.001,c=c!==void 0?c:0,e=me(e);const S=e.length;if(S<2)return 0;const R=e[0].equals(e[S-1]);let O,j=e[0],V;const W=t.strokeWidth/2,z=1/(S-1);let U=0,B,X,K,J,N=!1,L=0,A=c*3,I=c*2;Y(e[0],e[1],l).multiplyScalar(W),g.copy(e[0]).sub(l),_.copy(e[0]).add(l),x.copy(g),k.copy(_);for(let te=1;te=r&&D.push(te[P]);return D.push(te[te.length-1]),D}}}function f1(s,e){if(Object.is(s,e))return!0;if(typeof s!="object"||s===null||typeof e!="object"||e===null)return!1;const t=Object.keys(s);if(t.length!==Object.keys(e).length)return!1;for(let n=0;nc,...a}){const{setEvents:c,camera:l,raycaster:u,gl:h,controls:d,size:f,get:m}=qe(),[p,g]=v.useState(!1),[_,x]=v.useReducer((T,{object:E,shift:w})=>E===void 0?[]:Array.isArray(E)?E:w?T.includes(E)?T.filter(C=>C!==E):[E,...T]:T[0]===E?[]:[E],[]);v.useEffect(()=>void(n==null?void 0:n(_)),[_]);const k=v.useCallback(T=>{T.stopPropagation(),x({object:o([T.object])[0],shift:e&&T.shiftKey})},[]),y=v.useCallback(T=>!p&&x({}),[p]),b=v.useRef(null);return v.useEffect(()=>{if(!s||!e)return;const T=new d1(l,b.current),E=document.createElement("div");E.style.pointerEvents="none",E.style.border=r,E.style.backgroundColor=i,E.style.position="fixed";const w=new ke,C=new ke,S=new ke,R=m().events.enabled,O=d==null?void 0:d.enabled;let j=!1;function V(N,L){const{offsetX:A,offsetY:I}=N,{width:Y,height:$}=f;L.set(A/Y*2-1,-(I/$)*2+1)}function W(N){var L;d&&(d.enabled=!1),c({enabled:!1}),j=!0,(L=h.domElement.parentElement)==null||L.appendChild(E),E.style.left=`${N.clientX}px`,E.style.top=`${N.clientY}px`,E.style.width="0px",E.style.height="0px",w.x=N.clientX,w.y=N.clientY}function z(N){S.x=Math.max(w.x,N.clientX),S.y=Math.max(w.y,N.clientY),C.x=Math.min(w.x,N.clientX),C.y=Math.min(w.y,N.clientY),E.style.left=`${C.x}px`,E.style.top=`${C.y}px`,E.style.width=`${S.x-C.x}px`,E.style.height=`${S.y-C.y}px`}function U(){if(j){var N;d&&(d.enabled=O),c({enabled:R}),j=!1,(N=E.parentElement)==null||N.removeChild(E)}}function B(N){N.shiftKey&&(W(N),V(N,T.startPoint))}let X=[];function K(N){if(j){z(N),V(N,T.endPoint);const L=T.select().sort(A=>A.uuid).filter(A=>A.isMesh);f1(L,X)||(X=L,x({object:o(L)}))}}function J(N){j&&U()}return document.addEventListener("pointerdown",B,{passive:!0}),document.addEventListener("pointermove",K,{passive:!0,capture:!0}),document.addEventListener("pointerup",J,{passive:!0}),()=>{document.removeEventListener("pointerdown",B),document.removeEventListener("pointermove",K),document.removeEventListener("pointerup",J)}},[f.width,f.height,u,l,d,h]),v.createElement("group",Ae({ref:b,onClick:k,onPointerOver:()=>g(!0),onPointerOut:()=>g(!1),onPointerMissed:y},a),v.createElement(p1.Provider,{value:_},t))}const xu=v.forwardRef(function({follow:e=!0,lockX:t=!1,lockY:n=!1,lockZ:r=!1,...i},o){const a=v.useRef();return fn(({camera:c})=>{if(!e||!a.current)return;const l=a.current.rotation.clone();c.getWorldQuaternion(a.current.quaternion),t&&(a.current.rotation.x=l.x),n&&(a.current.rotation.y=l.y),r&&(a.current.rotation.z=l.z)}),v.createElement("group",Ae({ref:uu([a,o])},i))}),Xh=s=>s===Object(s)&&!Array.isArray(s)&&typeof s!="function";function Bs(s,e){const t=qe(r=>r.gl),n=sc(rc,Xh(s)?Object.values(s):s);if(v.useLayoutEffect(()=>{e==null||e(n)},[e]),v.useEffect(()=>{(Array.isArray(n)?n:[n]).forEach(t.initTexture)},[t,n]),Xh(s)){const r=Object.keys(s),i={};return r.forEach(o=>Object.assign(i,{[o]:n[r.indexOf(o)]})),i}else return n}Bs.preload=s=>sc.preload(rc,s);Bs.clear=s=>sc.clear(rc,s);const g1=v.forwardRef(function({src:e,skipFill:t,skipStrokes:n,fillMaterial:r,strokeMaterial:i,fillMeshProps:o,strokeMeshProps:a,...c},l){const u=sc(Ai,e.startsWith("n?[]:u.paths.map(d=>{var f;return((f=d.userData)==null?void 0:f.style.stroke)===void 0||d.userData.style.stroke==="none"?null:d.subPaths.map(m=>Ai.pointsToStroke(m.getPoints(),d.userData.style))}),[u,n]);return v.useEffect(()=>()=>h.forEach(d=>d&&d.map(f=>f.dispose())),[h]),v.createElement("object3D",Ae({ref:l},c),v.createElement("object3D",{scale:[1,-1,1]},u.paths.map((d,f)=>{var m,p;return v.createElement(v.Fragment,{key:f},!t&&((m=d.userData)==null?void 0:m.style.fill)!==void 0&&d.userData.style.fill!=="none"&&Ai.createShapes(d).map((g,_)=>v.createElement("mesh",Ae({key:_},o),v.createElement("shapeGeometry",{args:[g]}),v.createElement("meshBasicMaterial",Ae({color:d.userData.style.fill,opacity:d.userData.style.fillOpacity,transparent:!0,side:pa,depthWrite:!1},r)))),!n&&((p=d.userData)==null?void 0:p.style.stroke)!==void 0&&d.userData.style.stroke!=="none"&&d.subPaths.map((g,_)=>v.createElement("mesh",Ae({key:_,geometry:h[f][_]},a),v.createElement("meshBasicMaterial",Ae({color:d.userData.style.stroke,opacity:d.userData.style.strokeOpacity,transparent:!0,side:pa,depthWrite:!1},i)))))})))});/*! - * camera-controls - * https://github.com/yomotsu/camera-controls - * (c) 2017 @yomotsu - * Released under the MIT License. - */const fe={LEFT:1,RIGHT:2,MIDDLE:4},G=Object.freeze({NONE:0,ROTATE:1,TRUCK:2,OFFSET:4,DOLLY:8,ZOOM:16,TOUCH_ROTATE:32,TOUCH_TRUCK:64,TOUCH_OFFSET:128,TOUCH_DOLLY:256,TOUCH_ZOOM:512,TOUCH_DOLLY_TRUCK:1024,TOUCH_DOLLY_OFFSET:2048,TOUCH_DOLLY_ROTATE:4096,TOUCH_ZOOM_TRUCK:8192,TOUCH_ZOOM_OFFSET:16384,TOUCH_ZOOM_ROTATE:32768}),fr={NONE:0,IN:1,OUT:-1};function Is(s){return s.isPerspectiveCamera}function os(s){return s.isOrthographicCamera}const pr=Math.PI*2,Zh=Math.PI/2,Op=1e-5,mi=Math.PI/180;function sn(s,e,t){return Math.max(e,Math.min(t,s))}function Fe(s,e=Op){return Math.abs(s)0==f>u&&(f=u,t.value=(f-u)/i),f}function Qh(s,e,t,n,r=1/0,i,o){n=Math.max(1e-4,n);const a=2/n,c=a*i,l=1/(1+c+.48*c*c+.235*c*c*c);let u=e.x,h=e.y,d=e.z,f=s.x-u,m=s.y-h,p=s.z-d;const g=u,_=h,x=d,k=r*n,y=k*k,b=f*f+m*m+p*p;if(b>y){const W=Math.sqrt(b);f=f/W*k,m=m/W*k,p=p/W*k}u=s.x-f,h=s.y-m,d=s.z-p;const T=(t.x+a*f)*i,E=(t.y+a*m)*i,w=(t.z+a*p)*i;t.x=(t.x-a*T)*l,t.y=(t.y-a*E)*l,t.z=(t.z-a*w)*l,o.x=u+(f+T)*l,o.y=h+(m+E)*l,o.z=d+(p+w)*l;const C=g-s.x,S=_-s.y,R=x-s.z,O=o.x-g,j=o.y-_,V=o.z-x;return C*O+S*j+R*V>0&&(o.x=g,o.y=_,o.z=x,t.x=(o.x-g)/i,t.y=(o.y-_)/i,t.z=(o.z-x)/i),o}function Lc(s,e){e.set(0,0),s.forEach(t=>{e.x+=t.clientX,e.y+=t.clientY}),e.x/=s.length,e.y/=s.length}function jc(s,e){return os(s)?(console.warn(`${e} is not supported in OrthographicCamera`),!0):!1}class _1{constructor(){this._listeners={}}addEventListener(e,t){const n=this._listeners;n[e]===void 0&&(n[e]=[]),n[e].indexOf(t)===-1&&n[e].push(t)}hasEventListener(e,t){const n=this._listeners;return n[e]!==void 0&&n[e].indexOf(t)!==-1}removeEventListener(e,t){const r=this._listeners[e];if(r!==void 0){const i=r.indexOf(t);i!==-1&&r.splice(i,1)}}removeAllEventListeners(e){if(!e){this._listeners={};return}Array.isArray(this._listeners[e])&&(this._listeners[e].length=0)}dispatchEvent(e){const n=this._listeners[e.type];if(n!==void 0){e.target=this;const r=n.slice(0);for(let i=0,o=r.length;i{},this._enabled=!0,this._state=G.NONE,this._viewport=null,this._changedDolly=0,this._changedZoom=0,this._hasRested=!0,this._boundaryEnclosesCamera=!1,this._needsUpdate=!0,this._updatedLastTime=!1,this._elementRect=new DOMRect,this._isDragging=!1,this._dragNeedsUpdate=!0,this._activePointers=[],this._lockedPointer=null,this._interactiveArea=new DOMRect(0,0,1,1),this._isUserControllingRotate=!1,this._isUserControllingDolly=!1,this._isUserControllingTruck=!1,this._isUserControllingOffset=!1,this._isUserControllingZoom=!1,this._lastDollyDirection=fr.NONE,this._thetaVelocity={value:0},this._phiVelocity={value:0},this._radiusVelocity={value:0},this._targetVelocity=new ue.Vector3,this._focalOffsetVelocity=new ue.Vector3,this._zoomVelocity={value:0},this._truckInternal=(y,b,T)=>{let E,w;if(Is(this._camera)){const C=_e.copy(this._camera.position).sub(this._target),S=this._camera.getEffectiveFOV()*mi,R=C.length()*Math.tan(S*.5);E=this.truckSpeed*y*R/this._elementRect.height,w=this.truckSpeed*b*R/this._elementRect.height}else if(os(this._camera)){const C=this._camera;E=y*(C.right-C.left)/C.zoom/this._elementRect.width,w=b*(C.top-C.bottom)/C.zoom/this._elementRect.height}else return;this.verticalDragToForward?(T?this.setFocalOffset(this._focalOffsetEnd.x+E,this._focalOffsetEnd.y,this._focalOffsetEnd.z,!0):this.truck(E,0,!0),this.forward(-w,!0)):T?this.setFocalOffset(this._focalOffsetEnd.x+E,this._focalOffsetEnd.y+w,this._focalOffsetEnd.z,!0):this.truck(E,w,!0)},this._rotateInternal=(y,b)=>{const T=pr*this.azimuthRotateSpeed*y/this._elementRect.height,E=pr*this.polarRotateSpeed*b/this._elementRect.height;this.rotate(T,E,!0)},this._dollyInternal=(y,b,T)=>{const E=Math.pow(.95,-y*this.dollySpeed),w=this._sphericalEnd.radius,C=this._sphericalEnd.radius*E,S=sn(C,this.minDistance,this.maxDistance),R=S-C;this.infinityDolly&&this.dollyToCursor?this._dollyToNoClamp(C,!0):this.infinityDolly&&!this.dollyToCursor?(this.dollyInFixed(R,!0),this._dollyToNoClamp(S,!0)):this._dollyToNoClamp(S,!0),this.dollyToCursor&&(this._changedDolly+=(this.infinityDolly?C:S)-w,this._dollyControlCoord.set(b,T)),this._lastDollyDirection=Math.sign(-y)},this._zoomInternal=(y,b,T)=>{const E=Math.pow(.95,y*this.dollySpeed),w=this._zoom,C=this._zoom*E;this.zoomTo(C,!0),this.dollyToCursor&&(this._changedZoom+=C-w,this._dollyControlCoord.set(b,T))},typeof ue>"u"&&console.error("camera-controls: `THREE` is undefined. You must first run `CameraControls.install( { THREE: THREE } )`. Check the docs for further information."),this._camera=e,this._yAxisUpSpace=new ue.Quaternion().setFromUnitVectors(this._camera.up,Wo),this._yAxisUpSpaceInverse=this._yAxisUpSpace.clone().invert(),this._state=G.NONE,this._target=new ue.Vector3,this._targetEnd=this._target.clone(),this._focalOffset=new ue.Vector3,this._focalOffsetEnd=this._focalOffset.clone(),this._spherical=new ue.Spherical().setFromVector3(_e.copy(this._camera.position).applyQuaternion(this._yAxisUpSpace)),this._sphericalEnd=this._spherical.clone(),this._lastDistance=this._spherical.radius,this._zoom=this._camera.zoom,this._zoomEnd=this._zoom,this._lastZoom=this._zoom,this._nearPlaneCorners=[new ue.Vector3,new ue.Vector3,new ue.Vector3,new ue.Vector3],this._updateNearPlaneCorners(),this._boundary=new ue.Box3(new ue.Vector3(-1/0,-1/0,-1/0),new ue.Vector3(1/0,1/0,1/0)),this._cameraUp0=this._camera.up.clone(),this._target0=this._target.clone(),this._position0=this._camera.position.clone(),this._zoom0=this._zoom,this._focalOffset0=this._focalOffset.clone(),this._dollyControlCoord=new ue.Vector2,this.mouseButtons={left:G.ROTATE,middle:G.DOLLY,right:G.TRUCK,wheel:Is(this._camera)?G.DOLLY:os(this._camera)?G.ZOOM:G.NONE},this.touches={one:G.TOUCH_ROTATE,two:Is(this._camera)?G.TOUCH_DOLLY_TRUCK:os(this._camera)?G.TOUCH_ZOOM_TRUCK:G.NONE,three:G.TOUCH_TRUCK};const n=new ue.Vector2,r=new ue.Vector2,i=new ue.Vector2,o=y=>{if(!this._enabled||!this._domElement)return;if(this._interactiveArea.left!==0||this._interactiveArea.top!==0||this._interactiveArea.width!==1||this._interactiveArea.height!==1){const E=this._domElement.getBoundingClientRect(),w=y.clientX/E.width,C=y.clientY/E.height;if(wthis._interactiveArea.right||Cthis._interactiveArea.bottom)return}const b=y.pointerType!=="mouse"?null:(y.buttons&fe.LEFT)===fe.LEFT?fe.LEFT:(y.buttons&fe.MIDDLE)===fe.MIDDLE?fe.MIDDLE:(y.buttons&fe.RIGHT)===fe.RIGHT?fe.RIGHT:null;if(b!==null){const E=this._findPointerByMouseButton(b);E&&this._disposePointer(E)}if((y.buttons&fe.LEFT)===fe.LEFT&&this._lockedPointer)return;const T={pointerId:y.pointerId,clientX:y.clientX,clientY:y.clientY,deltaX:0,deltaY:0,mouseButton:b};this._activePointers.push(T),this._domElement.ownerDocument.removeEventListener("pointermove",c,{passive:!1}),this._domElement.ownerDocument.removeEventListener("pointerup",u),this._domElement.ownerDocument.addEventListener("pointermove",c,{passive:!1}),this._domElement.ownerDocument.addEventListener("pointerup",u),this._isDragging=!0,p(y)},a=y=>{if(!this._enabled||!this._domElement||this._lockedPointer)return;if(this._interactiveArea.left!==0||this._interactiveArea.top!==0||this._interactiveArea.width!==1||this._interactiveArea.height!==1){const E=this._domElement.getBoundingClientRect(),w=y.clientX/E.width,C=y.clientY/E.height;if(wthis._interactiveArea.right||Cthis._interactiveArea.bottom)return}const b=(y.buttons&fe.LEFT)===fe.LEFT?fe.LEFT:(y.buttons&fe.MIDDLE)===fe.MIDDLE?fe.MIDDLE:(y.buttons&fe.RIGHT)===fe.RIGHT?fe.RIGHT:null;if(b!==null){const E=this._findPointerByMouseButton(b);E&&this._disposePointer(E)}const T={pointerId:1,clientX:y.clientX,clientY:y.clientY,deltaX:0,deltaY:0,mouseButton:(y.buttons&fe.LEFT)===fe.LEFT?fe.LEFT:(y.buttons&fe.MIDDLE)===fe.LEFT?fe.MIDDLE:(y.buttons&fe.RIGHT)===fe.LEFT?fe.RIGHT:null};this._activePointers.push(T),this._domElement.ownerDocument.removeEventListener("mousemove",l),this._domElement.ownerDocument.removeEventListener("mouseup",h),this._domElement.ownerDocument.addEventListener("mousemove",l),this._domElement.ownerDocument.addEventListener("mouseup",h),this._isDragging=!0,p(y)},c=y=>{y.cancelable&&y.preventDefault();const b=y.pointerId,T=this._lockedPointer||this._findPointerById(b);if(T){if(T.clientX=y.clientX,T.clientY=y.clientY,T.deltaX=y.movementX,T.deltaY=y.movementY,this._state=0,y.pointerType==="touch")switch(this._activePointers.length){case 1:this._state=this.touches.one;break;case 2:this._state=this.touches.two;break;case 3:this._state=this.touches.three;break}else(!this._isDragging&&this._lockedPointer||this._isDragging&&(y.buttons&fe.LEFT)===fe.LEFT)&&(this._state=this._state|this.mouseButtons.left),this._isDragging&&(y.buttons&fe.MIDDLE)===fe.MIDDLE&&(this._state=this._state|this.mouseButtons.middle),this._isDragging&&(y.buttons&fe.RIGHT)===fe.RIGHT&&(this._state=this._state|this.mouseButtons.right);g()}},l=y=>{const b=this._lockedPointer||this._findPointerById(1);b&&(b.clientX=y.clientX,b.clientY=y.clientY,b.deltaX=y.movementX,b.deltaY=y.movementY,this._state=0,(this._lockedPointer||(y.buttons&fe.LEFT)===fe.LEFT)&&(this._state=this._state|this.mouseButtons.left),(y.buttons&fe.MIDDLE)===fe.MIDDLE&&(this._state=this._state|this.mouseButtons.middle),(y.buttons&fe.RIGHT)===fe.RIGHT&&(this._state=this._state|this.mouseButtons.right),g())},u=y=>{const b=this._findPointerById(y.pointerId);if(!(b&&b===this._lockedPointer)){if(b&&this._disposePointer(b),y.pointerType==="touch")switch(this._activePointers.length){case 0:this._state=G.NONE;break;case 1:this._state=this.touches.one;break;case 2:this._state=this.touches.two;break;case 3:this._state=this.touches.three;break}else this._state=G.NONE;_()}},h=()=>{const y=this._findPointerById(1);y&&y===this._lockedPointer||(y&&this._disposePointer(y),this._state=G.NONE,_())};let d=-1;const f=y=>{if(!this._domElement||!this._enabled||this.mouseButtons.wheel===G.NONE)return;if(this._interactiveArea.left!==0||this._interactiveArea.top!==0||this._interactiveArea.width!==1||this._interactiveArea.height!==1){const C=this._domElement.getBoundingClientRect(),S=y.clientX/C.width,R=y.clientY/C.height;if(Sthis._interactiveArea.right||Rthis._interactiveArea.bottom)return}if(y.preventDefault(),this.dollyToCursor||this.mouseButtons.wheel===G.ROTATE||this.mouseButtons.wheel===G.TRUCK){const C=performance.now();d-C<1e3&&this._getClientRect(this._elementRect),d=C}const b=v1?-1:-3,T=y.deltaMode===1?y.deltaY/b:y.deltaY/(b*10),E=this.dollyToCursor?(y.clientX-this._elementRect.x)/this._elementRect.width*2-1:0,w=this.dollyToCursor?(y.clientY-this._elementRect.y)/this._elementRect.height*-2+1:0;switch(this.mouseButtons.wheel){case G.ROTATE:{this._rotateInternal(y.deltaX,y.deltaY),this._isUserControllingRotate=!0;break}case G.TRUCK:{this._truckInternal(y.deltaX,y.deltaY,!1),this._isUserControllingTruck=!0;break}case G.OFFSET:{this._truckInternal(y.deltaX,y.deltaY,!0),this._isUserControllingOffset=!0;break}case G.DOLLY:{this._dollyInternal(-T,E,w),this._isUserControllingDolly=!0;break}case G.ZOOM:{this._zoomInternal(-T,E,w),this._isUserControllingZoom=!0;break}}this.dispatchEvent({type:"control"})},m=y=>{if(!(!this._domElement||!this._enabled)){if(this.mouseButtons.right===gl.ACTION.NONE){const b=y instanceof PointerEvent?y.pointerId:(y instanceof MouseEvent,0),T=this._findPointerById(b);T&&this._disposePointer(T),this._domElement.ownerDocument.removeEventListener("pointermove",c,{passive:!1}),this._domElement.ownerDocument.removeEventListener("pointerup",u),this._domElement.ownerDocument.removeEventListener("mousemove",l),this._domElement.ownerDocument.removeEventListener("mouseup",h);return}y.preventDefault()}},p=y=>{if(!this._enabled)return;if(Lc(this._activePointers,Et),this._getClientRect(this._elementRect),n.copy(Et),r.copy(Et),this._activePointers.length>=2){const T=Et.x-this._activePointers[1].clientX,E=Et.y-this._activePointers[1].clientY,w=Math.sqrt(T*T+E*E);i.set(0,w);const C=(this._activePointers[0].clientX+this._activePointers[1].clientX)*.5,S=(this._activePointers[0].clientY+this._activePointers[1].clientY)*.5;r.set(C,S)}if(this._state=0,!y)this._lockedPointer&&(this._state=this._state|this.mouseButtons.left);else if("pointerType"in y&&y.pointerType==="touch")switch(this._activePointers.length){case 1:this._state=this.touches.one;break;case 2:this._state=this.touches.two;break;case 3:this._state=this.touches.three;break}else!this._lockedPointer&&(y.buttons&fe.LEFT)===fe.LEFT&&(this._state=this._state|this.mouseButtons.left),(y.buttons&fe.MIDDLE)===fe.MIDDLE&&(this._state=this._state|this.mouseButtons.middle),(y.buttons&fe.RIGHT)===fe.RIGHT&&(this._state=this._state|this.mouseButtons.right);((this._state&G.ROTATE)===G.ROTATE||(this._state&G.TOUCH_ROTATE)===G.TOUCH_ROTATE||(this._state&G.TOUCH_DOLLY_ROTATE)===G.TOUCH_DOLLY_ROTATE||(this._state&G.TOUCH_ZOOM_ROTATE)===G.TOUCH_ZOOM_ROTATE)&&(this._sphericalEnd.theta=this._spherical.theta,this._sphericalEnd.phi=this._spherical.phi,this._thetaVelocity.value=0,this._phiVelocity.value=0),((this._state&G.TRUCK)===G.TRUCK||(this._state&G.TOUCH_TRUCK)===G.TOUCH_TRUCK||(this._state&G.TOUCH_DOLLY_TRUCK)===G.TOUCH_DOLLY_TRUCK||(this._state&G.TOUCH_ZOOM_TRUCK)===G.TOUCH_ZOOM_TRUCK)&&(this._targetEnd.copy(this._target),this._targetVelocity.set(0,0,0)),((this._state&G.DOLLY)===G.DOLLY||(this._state&G.TOUCH_DOLLY)===G.TOUCH_DOLLY||(this._state&G.TOUCH_DOLLY_TRUCK)===G.TOUCH_DOLLY_TRUCK||(this._state&G.TOUCH_DOLLY_OFFSET)===G.TOUCH_DOLLY_OFFSET||(this._state&G.TOUCH_DOLLY_ROTATE)===G.TOUCH_DOLLY_ROTATE)&&(this._sphericalEnd.radius=this._spherical.radius,this._radiusVelocity.value=0),((this._state&G.ZOOM)===G.ZOOM||(this._state&G.TOUCH_ZOOM)===G.TOUCH_ZOOM||(this._state&G.TOUCH_ZOOM_TRUCK)===G.TOUCH_ZOOM_TRUCK||(this._state&G.TOUCH_ZOOM_OFFSET)===G.TOUCH_ZOOM_OFFSET||(this._state&G.TOUCH_ZOOM_ROTATE)===G.TOUCH_ZOOM_ROTATE)&&(this._zoomEnd=this._zoom,this._zoomVelocity.value=0),((this._state&G.OFFSET)===G.OFFSET||(this._state&G.TOUCH_OFFSET)===G.TOUCH_OFFSET||(this._state&G.TOUCH_DOLLY_OFFSET)===G.TOUCH_DOLLY_OFFSET||(this._state&G.TOUCH_ZOOM_OFFSET)===G.TOUCH_ZOOM_OFFSET)&&(this._focalOffsetEnd.copy(this._focalOffset),this._focalOffsetVelocity.set(0,0,0)),this.dispatchEvent({type:"controlstart"})},g=()=>{if(!this._enabled||!this._dragNeedsUpdate)return;this._dragNeedsUpdate=!1,Lc(this._activePointers,Et);const b=this._domElement&&document.pointerLockElement===this._domElement?this._lockedPointer||this._activePointers[0]:null,T=b?-b.deltaX:r.x-Et.x,E=b?-b.deltaY:r.y-Et.y;if(r.copy(Et),((this._state&G.ROTATE)===G.ROTATE||(this._state&G.TOUCH_ROTATE)===G.TOUCH_ROTATE||(this._state&G.TOUCH_DOLLY_ROTATE)===G.TOUCH_DOLLY_ROTATE||(this._state&G.TOUCH_ZOOM_ROTATE)===G.TOUCH_ZOOM_ROTATE)&&(this._rotateInternal(T,E),this._isUserControllingRotate=!0),(this._state&G.DOLLY)===G.DOLLY||(this._state&G.ZOOM)===G.ZOOM){const w=this.dollyToCursor?(n.x-this._elementRect.x)/this._elementRect.width*2-1:0,C=this.dollyToCursor?(n.y-this._elementRect.y)/this._elementRect.height*-2+1:0,S=this.dollyDragInverted?-1:1;(this._state&G.DOLLY)===G.DOLLY?(this._dollyInternal(S*E*Bo,w,C),this._isUserControllingDolly=!0):(this._zoomInternal(S*E*Bo,w,C),this._isUserControllingZoom=!0)}if((this._state&G.TOUCH_DOLLY)===G.TOUCH_DOLLY||(this._state&G.TOUCH_ZOOM)===G.TOUCH_ZOOM||(this._state&G.TOUCH_DOLLY_TRUCK)===G.TOUCH_DOLLY_TRUCK||(this._state&G.TOUCH_ZOOM_TRUCK)===G.TOUCH_ZOOM_TRUCK||(this._state&G.TOUCH_DOLLY_OFFSET)===G.TOUCH_DOLLY_OFFSET||(this._state&G.TOUCH_ZOOM_OFFSET)===G.TOUCH_ZOOM_OFFSET||(this._state&G.TOUCH_DOLLY_ROTATE)===G.TOUCH_DOLLY_ROTATE||(this._state&G.TOUCH_ZOOM_ROTATE)===G.TOUCH_ZOOM_ROTATE){const w=Et.x-this._activePointers[1].clientX,C=Et.y-this._activePointers[1].clientY,S=Math.sqrt(w*w+C*C),R=i.y-S;i.set(0,S);const O=this.dollyToCursor?(r.x-this._elementRect.x)/this._elementRect.width*2-1:0,j=this.dollyToCursor?(r.y-this._elementRect.y)/this._elementRect.height*-2+1:0;(this._state&G.TOUCH_DOLLY)===G.TOUCH_DOLLY||(this._state&G.TOUCH_DOLLY_ROTATE)===G.TOUCH_DOLLY_ROTATE||(this._state&G.TOUCH_DOLLY_TRUCK)===G.TOUCH_DOLLY_TRUCK||(this._state&G.TOUCH_DOLLY_OFFSET)===G.TOUCH_DOLLY_OFFSET?(this._dollyInternal(R*Bo,O,j),this._isUserControllingDolly=!0):(this._zoomInternal(R*Bo,O,j),this._isUserControllingZoom=!0)}((this._state&G.TRUCK)===G.TRUCK||(this._state&G.TOUCH_TRUCK)===G.TOUCH_TRUCK||(this._state&G.TOUCH_DOLLY_TRUCK)===G.TOUCH_DOLLY_TRUCK||(this._state&G.TOUCH_ZOOM_TRUCK)===G.TOUCH_ZOOM_TRUCK)&&(this._truckInternal(T,E,!1),this._isUserControllingTruck=!0),((this._state&G.OFFSET)===G.OFFSET||(this._state&G.TOUCH_OFFSET)===G.TOUCH_OFFSET||(this._state&G.TOUCH_DOLLY_OFFSET)===G.TOUCH_DOLLY_OFFSET||(this._state&G.TOUCH_ZOOM_OFFSET)===G.TOUCH_ZOOM_OFFSET)&&(this._truckInternal(T,E,!0),this._isUserControllingOffset=!0),this.dispatchEvent({type:"control"})},_=()=>{Lc(this._activePointers,Et),r.copy(Et),this._dragNeedsUpdate=!1,(this._activePointers.length===0||this._activePointers.length===1&&this._activePointers[0]===this._lockedPointer)&&(this._isDragging=!1),this._activePointers.length===0&&this._domElement&&(this._domElement.ownerDocument.removeEventListener("pointermove",c,{passive:!1}),this._domElement.ownerDocument.removeEventListener("mousemove",l),this._domElement.ownerDocument.removeEventListener("pointerup",u),this._domElement.ownerDocument.removeEventListener("mouseup",h),this.dispatchEvent({type:"controlend"}))};this.lockPointer=()=>{!this._enabled||!this._domElement||(this.cancel(),this._lockedPointer={pointerId:-1,clientX:0,clientY:0,deltaX:0,deltaY:0,mouseButton:null},this._activePointers.push(this._lockedPointer),this._domElement.ownerDocument.removeEventListener("pointermove",c,{passive:!1}),this._domElement.ownerDocument.removeEventListener("pointerup",u),this._domElement.requestPointerLock(),this._domElement.ownerDocument.addEventListener("pointerlockchange",x),this._domElement.ownerDocument.addEventListener("pointerlockerror",k),this._domElement.ownerDocument.addEventListener("pointermove",c,{passive:!1}),this._domElement.ownerDocument.addEventListener("pointerup",u),p())},this.unlockPointer=()=>{this._lockedPointer!==null&&(this._disposePointer(this._lockedPointer),this._lockedPointer=null),document.exitPointerLock(),this.cancel(),this._domElement&&(this._domElement.ownerDocument.removeEventListener("pointerlockchange",x),this._domElement.ownerDocument.removeEventListener("pointerlockerror",k))};const x=()=>{this._domElement&&this._domElement.ownerDocument.pointerLockElement===this._domElement||this.unlockPointer()},k=()=>{this.unlockPointer()};this._addAllEventListeners=y=>{this._domElement=y,this._domElement.style.touchAction="none",this._domElement.style.userSelect="none",this._domElement.style.webkitUserSelect="none",this._domElement.addEventListener("pointerdown",o),b1&&this._domElement.addEventListener("mousedown",a),this._domElement.addEventListener("pointercancel",u),this._domElement.addEventListener("wheel",f,{passive:!1}),this._domElement.addEventListener("contextmenu",m)},this._removeAllEventListeners=()=>{this._domElement&&(this._domElement.style.touchAction="",this._domElement.style.userSelect="",this._domElement.style.webkitUserSelect="",this._domElement.removeEventListener("pointerdown",o),this._domElement.removeEventListener("mousedown",a),this._domElement.removeEventListener("pointercancel",u),this._domElement.removeEventListener("wheel",f,{passive:!1}),this._domElement.removeEventListener("contextmenu",m),this._domElement.ownerDocument.removeEventListener("pointermove",c,{passive:!1}),this._domElement.ownerDocument.removeEventListener("mousemove",l),this._domElement.ownerDocument.removeEventListener("pointerup",u),this._domElement.ownerDocument.removeEventListener("mouseup",h),this._domElement.ownerDocument.removeEventListener("pointerlockchange",x),this._domElement.ownerDocument.removeEventListener("pointerlockerror",k))},this.cancel=()=>{this._state!==G.NONE&&(this._state=G.NONE,this._activePointers.length=0,_())},t&&this.connect(t),this.update(0)}get camera(){return this._camera}set camera(e){this._camera=e,this.updateCameraUp(),this._camera.updateProjectionMatrix(),this._updateNearPlaneCorners(),this._needsUpdate=!0}get enabled(){return this._enabled}set enabled(e){this._enabled=e,this._domElement&&(e?(this._domElement.style.touchAction="none",this._domElement.style.userSelect="none",this._domElement.style.webkitUserSelect="none"):(this.cancel(),this._domElement.style.touchAction="",this._domElement.style.userSelect="",this._domElement.style.webkitUserSelect=""))}get active(){return!this._hasRested}get currentAction(){return this._state}get distance(){return this._spherical.radius}set distance(e){this._spherical.radius===e&&this._sphericalEnd.radius===e||(this._spherical.radius=e,this._sphericalEnd.radius=e,this._needsUpdate=!0)}get azimuthAngle(){return this._spherical.theta}set azimuthAngle(e){this._spherical.theta===e&&this._sphericalEnd.theta===e||(this._spherical.theta=e,this._sphericalEnd.theta=e,this._needsUpdate=!0)}get polarAngle(){return this._spherical.phi}set polarAngle(e){this._spherical.phi===e&&this._sphericalEnd.phi===e||(this._spherical.phi=e,this._sphericalEnd.phi=e,this._needsUpdate=!0)}get boundaryEnclosesCamera(){return this._boundaryEnclosesCamera}set boundaryEnclosesCamera(e){this._boundaryEnclosesCamera=e,this._needsUpdate=!0}set interactiveArea(e){this._interactiveArea.width=sn(e.width,0,1),this._interactiveArea.height=sn(e.height,0,1),this._interactiveArea.x=sn(e.x,0,1-this._interactiveArea.width),this._interactiveArea.y=sn(e.y,0,1-this._interactiveArea.height)}addEventListener(e,t){super.addEventListener(e,t)}removeEventListener(e,t){super.removeEventListener(e,t)}rotate(e,t,n=!1){return this.rotateTo(this._sphericalEnd.theta+e,this._sphericalEnd.phi+t,n)}rotateAzimuthTo(e,t=!1){return this.rotateTo(e,this._sphericalEnd.phi,t)}rotatePolarTo(e,t=!1){return this.rotateTo(this._sphericalEnd.theta,e,t)}rotateTo(e,t,n=!1){this._isUserControllingRotate=!1;const r=sn(e,this.minAzimuthAngle,this.maxAzimuthAngle),i=sn(t,this.minPolarAngle,this.maxPolarAngle);this._sphericalEnd.theta=r,this._sphericalEnd.phi=i,this._sphericalEnd.makeSafe(),this._needsUpdate=!0,n||(this._spherical.theta=this._sphericalEnd.theta,this._spherical.phi=this._sphericalEnd.phi);const o=!n||Ee(this._spherical.theta,this._sphericalEnd.theta,this.restThreshold)&&Ee(this._spherical.phi,this._sphericalEnd.phi,this.restThreshold);return this._createOnRestPromise(o)}dolly(e,t=!1){return this.dollyTo(this._sphericalEnd.radius-e,t)}dollyTo(e,t=!1){return this._isUserControllingDolly=!1,this._lastDollyDirection=fr.NONE,this._changedDolly=0,this._dollyToNoClamp(sn(e,this.minDistance,this.maxDistance),t)}_dollyToNoClamp(e,t=!1){const n=this._sphericalEnd.radius;if(this.colliderMeshes.length>=1){const o=this._collisionTest(),a=Ee(o,this._spherical.radius);if(!(n>e)&&a)return Promise.resolve();this._sphericalEnd.radius=Math.min(e,o)}else this._sphericalEnd.radius=e;this._needsUpdate=!0,t||(this._spherical.radius=this._sphericalEnd.radius);const i=!t||Ee(this._spherical.radius,this._sphericalEnd.radius,this.restThreshold);return this._createOnRestPromise(i)}dollyInFixed(e,t=!1){this._targetEnd.add(this._getCameraDirection(yi).multiplyScalar(e)),t||this._target.copy(this._targetEnd);const n=!t||Ee(this._target.x,this._targetEnd.x,this.restThreshold)&&Ee(this._target.y,this._targetEnd.y,this.restThreshold)&&Ee(this._target.z,this._targetEnd.z,this.restThreshold);return this._createOnRestPromise(n)}zoom(e,t=!1){return this.zoomTo(this._zoomEnd+e,t)}zoomTo(e,t=!1){this._isUserControllingZoom=!1,this._zoomEnd=sn(e,this.minZoom,this.maxZoom),this._needsUpdate=!0,t||(this._zoom=this._zoomEnd);const n=!t||Ee(this._zoom,this._zoomEnd,this.restThreshold);return this._changedZoom=0,this._createOnRestPromise(n)}pan(e,t,n=!1){return console.warn("`pan` has been renamed to `truck`"),this.truck(e,t,n)}truck(e,t,n=!1){this._camera.updateMatrix(),vn.setFromMatrixColumn(this._camera.matrix,0),bn.setFromMatrixColumn(this._camera.matrix,1),vn.multiplyScalar(e),bn.multiplyScalar(-t);const r=_e.copy(vn).add(bn),i=we.copy(this._targetEnd).add(r);return this.moveTo(i.x,i.y,i.z,n)}forward(e,t=!1){_e.setFromMatrixColumn(this._camera.matrix,0),_e.crossVectors(this._camera.up,_e),_e.multiplyScalar(e);const n=we.copy(this._targetEnd).add(_e);return this.moveTo(n.x,n.y,n.z,t)}elevate(e,t=!1){return _e.copy(this._camera.up).multiplyScalar(e),this.moveTo(this._targetEnd.x+_e.x,this._targetEnd.y+_e.y,this._targetEnd.z+_e.z,t)}moveTo(e,t,n,r=!1){this._isUserControllingTruck=!1;const i=_e.set(e,t,n).sub(this._targetEnd);this._encloseToBoundary(this._targetEnd,i,this.boundaryFriction),this._needsUpdate=!0,r||this._target.copy(this._targetEnd);const o=!r||Ee(this._target.x,this._targetEnd.x,this.restThreshold)&&Ee(this._target.y,this._targetEnd.y,this.restThreshold)&&Ee(this._target.z,this._targetEnd.z,this.restThreshold);return this._createOnRestPromise(o)}lookInDirectionOf(e,t,n,r=!1){const a=_e.set(e,t,n).sub(this._targetEnd).normalize().multiplyScalar(-this._sphericalEnd.radius);return this.setPosition(a.x,a.y,a.z,r)}fitToBox(e,t,{cover:n=!1,paddingLeft:r=0,paddingRight:i=0,paddingBottom:o=0,paddingTop:a=0}={}){const c=[],l=e.isBox3?gr.copy(e):gr.setFromObject(e);l.isEmpty()&&(console.warn("camera-controls: fitTo() cannot be used with an empty box. Aborting"),Promise.resolve());const u=Kh(this._sphericalEnd.theta,Zh),h=Kh(this._sphericalEnd.phi,Zh);c.push(this.rotateTo(u,h,t));const d=_e.setFromSpherical(this._sphericalEnd).normalize(),f=sd.setFromUnitVectors(d,Vc),m=Ee(Math.abs(d.y),1);m&&f.multiply(Uc.setFromAxisAngle(Wo,u)),f.multiply(this._yAxisUpSpaceInverse);const p=nd.makeEmpty();we.copy(l.min).applyQuaternion(f),p.expandByPoint(we),we.copy(l.min).setX(l.max.x).applyQuaternion(f),p.expandByPoint(we),we.copy(l.min).setY(l.max.y).applyQuaternion(f),p.expandByPoint(we),we.copy(l.max).setZ(l.min.z).applyQuaternion(f),p.expandByPoint(we),we.copy(l.min).setZ(l.max.z).applyQuaternion(f),p.expandByPoint(we),we.copy(l.max).setY(l.min.y).applyQuaternion(f),p.expandByPoint(we),we.copy(l.max).setX(l.min.x).applyQuaternion(f),p.expandByPoint(we),we.copy(l.max).applyQuaternion(f),p.expandByPoint(we),p.min.x-=r,p.min.y-=o,p.max.x+=i,p.max.y+=a,f.setFromUnitVectors(Vc,d),m&&f.premultiply(Uc.invert()),f.premultiply(this._yAxisUpSpace);const g=p.getSize(_e),_=p.getCenter(we).applyQuaternion(f);if(Is(this._camera)){const x=this.getDistanceToFitBox(g.x,g.y,g.z,n);c.push(this.moveTo(_.x,_.y,_.z,t)),c.push(this.dollyTo(x,t)),c.push(this.setFocalOffset(0,0,0,t))}else if(os(this._camera)){const x=this._camera,k=x.right-x.left,y=x.top-x.bottom,b=n?Math.max(k/g.x,y/g.y):Math.min(k/g.x,y/g.y);c.push(this.moveTo(_.x,_.y,_.z,t)),c.push(this.zoomTo(b,t)),c.push(this.setFocalOffset(0,0,0,t))}return Promise.all(c)}fitToSphere(e,t){const n=[],i=e instanceof ue.Sphere?zc.copy(e):gl.createBoundingSphere(e,zc);if(n.push(this.moveTo(i.center.x,i.center.y,i.center.z,t)),Is(this._camera)){const o=this.getDistanceToFitSphere(i.radius);n.push(this.dollyTo(o,t))}else if(os(this._camera)){const o=this._camera.right-this._camera.left,a=this._camera.top-this._camera.bottom,c=2*i.radius,l=Math.min(o/c,a/c);n.push(this.zoomTo(l,t))}return n.push(this.setFocalOffset(0,0,0,t)),Promise.all(n)}setLookAt(e,t,n,r,i,o,a=!1){this._isUserControllingRotate=!1,this._isUserControllingDolly=!1,this._isUserControllingTruck=!1,this._lastDollyDirection=fr.NONE,this._changedDolly=0;const c=we.set(r,i,o),l=_e.set(e,t,n);this._targetEnd.copy(c),this._sphericalEnd.setFromVector3(l.sub(c).applyQuaternion(this._yAxisUpSpace)),this.normalizeRotations(),this._needsUpdate=!0,a||(this._target.copy(this._targetEnd),this._spherical.copy(this._sphericalEnd));const u=!a||Ee(this._target.x,this._targetEnd.x,this.restThreshold)&&Ee(this._target.y,this._targetEnd.y,this.restThreshold)&&Ee(this._target.z,this._targetEnd.z,this.restThreshold)&&Ee(this._spherical.theta,this._sphericalEnd.theta,this.restThreshold)&&Ee(this._spherical.phi,this._sphericalEnd.phi,this.restThreshold)&&Ee(this._spherical.radius,this._sphericalEnd.radius,this.restThreshold);return this._createOnRestPromise(u)}lerpLookAt(e,t,n,r,i,o,a,c,l,u,h,d,f,m=!1){this._isUserControllingRotate=!1,this._isUserControllingDolly=!1,this._isUserControllingTruck=!1,this._lastDollyDirection=fr.NONE,this._changedDolly=0;const p=_e.set(r,i,o),g=we.set(e,t,n);Wt.setFromVector3(g.sub(p).applyQuaternion(this._yAxisUpSpace));const _=mr.set(u,h,d),x=we.set(a,c,l);vi.setFromVector3(x.sub(_).applyQuaternion(this._yAxisUpSpace)),this._targetEnd.copy(p.lerp(_,f));const k=vi.theta-Wt.theta,y=vi.phi-Wt.phi,b=vi.radius-Wt.radius;this._sphericalEnd.set(Wt.radius+b*f,Wt.phi+y*f,Wt.theta+k*f),this.normalizeRotations(),this._needsUpdate=!0,m||(this._target.copy(this._targetEnd),this._spherical.copy(this._sphericalEnd));const T=!m||Ee(this._target.x,this._targetEnd.x,this.restThreshold)&&Ee(this._target.y,this._targetEnd.y,this.restThreshold)&&Ee(this._target.z,this._targetEnd.z,this.restThreshold)&&Ee(this._spherical.theta,this._sphericalEnd.theta,this.restThreshold)&&Ee(this._spherical.phi,this._sphericalEnd.phi,this.restThreshold)&&Ee(this._spherical.radius,this._sphericalEnd.radius,this.restThreshold);return this._createOnRestPromise(T)}setPosition(e,t,n,r=!1){return this.setLookAt(e,t,n,this._targetEnd.x,this._targetEnd.y,this._targetEnd.z,r)}setTarget(e,t,n,r=!1){const i=this.getPosition(_e),o=this.setLookAt(i.x,i.y,i.z,e,t,n,r);return this._sphericalEnd.phi=sn(this._sphericalEnd.phi,this.minPolarAngle,this.maxPolarAngle),o}setFocalOffset(e,t,n,r=!1){this._isUserControllingOffset=!1,this._focalOffsetEnd.set(e,t,n),this._needsUpdate=!0,r||this._focalOffset.copy(this._focalOffsetEnd);const i=!r||Ee(this._focalOffset.x,this._focalOffsetEnd.x,this.restThreshold)&&Ee(this._focalOffset.y,this._focalOffsetEnd.y,this.restThreshold)&&Ee(this._focalOffset.z,this._focalOffsetEnd.z,this.restThreshold);return this._createOnRestPromise(i)}setOrbitPoint(e,t,n){this._camera.updateMatrixWorld(),vn.setFromMatrixColumn(this._camera.matrixWorldInverse,0),bn.setFromMatrixColumn(this._camera.matrixWorldInverse,1),Ns.setFromMatrixColumn(this._camera.matrixWorldInverse,2);const r=_e.set(e,t,n),i=r.distanceTo(this._camera.position),o=r.sub(this._camera.position);vn.multiplyScalar(o.x),bn.multiplyScalar(o.y),Ns.multiplyScalar(o.z),_e.copy(vn).add(bn).add(Ns),_e.z=_e.z+i,this.dollyTo(i,!1),this.setFocalOffset(-_e.x,_e.y,-_e.z,!1),this.moveTo(e,t,n,!1)}setBoundary(e){if(!e){this._boundary.min.set(-1/0,-1/0,-1/0),this._boundary.max.set(1/0,1/0,1/0),this._needsUpdate=!0;return}this._boundary.copy(e),this._boundary.clampPoint(this._targetEnd,this._targetEnd),this._needsUpdate=!0}setViewport(e,t,n,r){if(e===null){this._viewport=null;return}this._viewport=this._viewport||new ue.Vector4,typeof e=="number"?this._viewport.set(e,t,n,r):this._viewport.copy(e)}getDistanceToFitBox(e,t,n,r=!1){if(jc(this._camera,"getDistanceToFitBox"))return this._spherical.radius;const i=e/t,o=this._camera.getEffectiveFOV()*mi,a=this._camera.aspect;return((r?i>a:it.pointerId===e)}_findPointerByMouseButton(e){return this._activePointers.find(t=>t.mouseButton===e)}_disposePointer(e){this._activePointers.splice(this._activePointers.indexOf(e),1)}_encloseToBoundary(e,t,n){const r=t.lengthSq();if(r===0)return e;const i=we.copy(t).add(e),a=this._boundary.clampPoint(i,mr).sub(i),c=a.lengthSq();if(c===0)return e.add(t);if(c===r)return e;if(n===0)return e.add(t).add(a);{const l=1+n*c/t.dot(a);return e.add(we.copy(t).multiplyScalar(l)).add(a.multiplyScalar(1-n))}}_updateNearPlaneCorners(){if(Is(this._camera)){const e=this._camera,t=e.near,n=e.getEffectiveFOV()*mi,r=Math.tan(n*.5)*t,i=r*e.aspect;this._nearPlaneCorners[0].set(-i,-r,0),this._nearPlaneCorners[1].set(i,-r,0),this._nearPlaneCorners[2].set(i,r,0),this._nearPlaneCorners[3].set(-i,r,0)}else if(os(this._camera)){const e=this._camera,t=1/e.zoom,n=e.left*t,r=e.right*t,i=e.top*t,o=e.bottom*t;this._nearPlaneCorners[0].set(n,i,0),this._nearPlaneCorners[1].set(r,i,0),this._nearPlaneCorners[2].set(r,o,0),this._nearPlaneCorners[3].set(n,o,0)}}_collisionTest(){let e=1/0;if(!(this.colliderMeshes.length>=1)||jc(this._camera,"_collisionTest"))return e;const n=this._getTargetDirection(yi);Bc.lookAt(Jh,n,this._camera.up);for(let r=0;r<4;r++){const i=we.copy(this._nearPlaneCorners[r]);i.applyMatrix4(Bc);const o=mr.addVectors(this._target,i);qo.set(o,n),qo.far=this._spherical.radius+1;const a=qo.intersectObjects(this.colliderMeshes);a.length!==0&&a[0].distance{const n=()=>{this.removeEventListener("rest",n),t()};this.addEventListener("rest",n)}))}_addAllEventListeners(e){}_removeAllEventListeners(){}get dampingFactor(){return console.warn(".dampingFactor has been deprecated. use smoothTime (in seconds) instead."),0}set dampingFactor(e){console.warn(".dampingFactor has been deprecated. use smoothTime (in seconds) instead.")}get draggingDampingFactor(){return console.warn(".draggingDampingFactor has been deprecated. use draggingSmoothTime (in seconds) instead."),0}set draggingDampingFactor(e){console.warn(".draggingDampingFactor has been deprecated. use draggingSmoothTime (in seconds) instead.")}static createBoundingSphere(e,t=new ue.Sphere){const n=t,r=n.center;gr.makeEmpty(),e.traverseVisible(o=>{o.isMesh&&gr.expandByObject(o)}),gr.getCenter(r);let i=0;return e.traverseVisible(o=>{if(!o.isMesh)return;const a=o,c=a.geometry.clone();c.applyMatrix4(a.matrixWorld);const u=c.attributes.position;for(let h=0,d=u.count;h{v.useMemo(()=>{Wc.install({THREE:hy}),lp({CameraControlsImpl:Wc})},[]);const{camera:t,domElement:n,makeDefault:r,onStart:i,onEnd:o,onChange:a,regress:c,...l}=s,u=qe(b=>b.camera),h=qe(b=>b.gl),d=qe(b=>b.invalidate),f=qe(b=>b.events),m=qe(b=>b.setEvents),p=qe(b=>b.set),g=qe(b=>b.get),_=qe(b=>b.performance),x=t||u,k=n||f.connected||h.domElement,y=v.useMemo(()=>new Wc(x),[x]);return fn((b,T)=>{y.enabled&&y.update(T)},-1),v.useEffect(()=>(y.connect(k),()=>void y.disconnect()),[k,y]),v.useEffect(()=>{const b=w=>{d(),c&&_.regress(),a&&a(w)},T=w=>{i&&i(w)},E=w=>{o&&o(w)};return y.addEventListener("update",b),y.addEventListener("controlstart",T),y.addEventListener("controlend",E),()=>{y.removeEventListener("update",b),y.removeEventListener("controlstart",T),y.removeEventListener("controlend",E)}},[y,i,o,d,m,c,a]),v.useEffect(()=>{if(r){const b=g().controls;return p({controls:y}),()=>p({controls:b})}},[r,y]),v.createElement("primitive",Ae({ref:e,object:y},l))});Te.func.isRequired,Te.arrayOf(Te.oneOfType([Te.element,Te.func])).isRequired;const rd=new vo,id=new vo,Ho=[],bi=new _p;class x1 extends fy{constructor(){super(),this.color=new pu("white"),this.instance={current:void 0},this.instanceKey={current:void 0}}get geometry(){var e;return(e=this.instance.current)==null?void 0:e.geometry}raycast(e,t){const n=this.instance.current;if(!n||!n.geometry||!n.material)return;bi.geometry=n.geometry;const r=n.matrixWorld,i=n.userData.instances.indexOf(this.instanceKey);if(!(i===-1||i>n.count)){n.getMatrixAt(i,rd),id.multiplyMatrices(r,rd),bi.matrixWorld=id,n.material instanceof py?bi.material.side=n.material.side:bi.material.side=n.material[0].side,bi.raycast(e,Ho);for(let o=0,a=Ho.length;o{v.useMemo(()=>lp({PositionMesh:x1}),[]);const r=v.useRef(),{subscribe:i,getParent:o}=v.useContext(s||Pp);return v.useLayoutEffect(()=>i(r),[]),v.createElement("positionMesh",Ae({instance:o(),instanceKey:r,ref:uu([n,r])},t),e)}),k1=v.forwardRef(({children:s,range:e,limit:t=1e3,frames:n=1/0,...r},i)=>{const[{context:o,instance:a}]=v.useState(()=>{const g=v.createContext(null);return{context:g,instance:v.forwardRef((_,x)=>v.createElement(Dp,Ae({context:g},_,{ref:x})))}}),c=v.useRef(null),[l,u]=v.useState([]),[[h,d]]=v.useState(()=>{const g=new Float32Array(t*16);for(let _=0;_1))]});v.useEffect(()=>{c.current.instanceMatrix.needsUpdate=!0});let f=0,m=0;fn(()=>{if(n===1/0||f({getParent:()=>c,subscribe:g=>(u(_=>[..._,g]),()=>u(_=>_.filter(x=>x.current!==g.current)))}),[]);return v.createElement("instancedMesh",Ae({userData:{instances:l},matrixAutoUpdate:!1,ref:uu([i,c]),args:[null,null,0],raycast:()=>null},r),v.createElement("instancedBufferAttribute",{attach:"instanceMatrix",count:h.length/16,array:h,itemSize:16,usage:$h}),v.createElement("instancedBufferAttribute",{attach:"instanceColor",count:d.length/3,array:d,itemSize:3,usage:$h}),typeof s=="function"?v.createElement(o.Provider,{value:p},s(a)):v.createElement(Pp.Provider,{value:p},s))});function T1({all:s,scene:e,camera:t}){const n=qe(({gl:o})=>o),r=qe(({camera:o})=>o),i=qe(({scene:o})=>o);return v.useLayoutEffect(()=>{const o=[];s&&(e||i).traverse(l=>{l.visible===!1&&(o.push(l),l.visible=!0)}),n.compile(e||i,t||r);const a=new my(128);new gy(.01,1e5,a).update(n,e||i),a.dispose(),o.forEach(l=>l.visible=!1)},[]),null}function hd({pixelated:s}){const e=qe(o=>o.gl),t=qe(o=>o.internal.active),n=qe(o=>o.performance.current),r=qe(o=>o.viewport.initialDpr),i=qe(o=>o.setDpr);return v.useEffect(()=>{const o=e.domElement;return()=>{t&&i(r),s&&o&&(o.style.imageRendering="auto")}},[]),v.useEffect(()=>{i(n*r),s&&e.domElement&&(e.domElement.style.imageRendering=n===1?"auto":"pixelated")},[n]),null}function dd(){const s=qe(n=>n.get),e=qe(n=>n.setEvents),t=qe(n=>n.performance.current);return v.useEffect(()=>{const n=s().events.enabled;return()=>e({enabled:n})},[]),v.useEffect(()=>e({enabled:t===1}),[t]),null}const E1=v.createContext(null);function C1({children:s,enabled:e=!0}){const[t,n]=v.useState([]),r=v.useMemo(()=>({selected:t,select:n,enabled:e}),[t,n,e]);return F.jsx(E1.Provider,{value:r,children:s})}function S1(s,e){typeof s=="function"?s(e):s!=null&&(s.current=e)}function Mp(...s){return e=>s.forEach(t=>S1(t,e))}function Jr(...s){return v.useCallback(Mp(...s),s)}const Ip=v.forwardRef((s,e)=>{const{children:t,...n}=s,r=v.Children.toArray(t),i=r.find(O1);if(i){const o=i.props.children,a=r.map(c=>c===i?v.Children.count(o)>1?v.Children.only(null):v.isValidElement(o)?o.props.children:null:c);return v.createElement(_l,Ae({},n,{ref:e}),v.isValidElement(o)?v.cloneElement(o,void 0,a):null)}return v.createElement(_l,Ae({},n,{ref:e}),t)});Ip.displayName="Slot";const _l=v.forwardRef((s,e)=>{const{children:t,...n}=s;return v.isValidElement(t)?v.cloneElement(t,{...A1(n,t.props),ref:e?Mp(e,t.ref):t.ref}):v.Children.count(t)>1?v.Children.only(null):null});_l.displayName="SlotClone";const Np=({children:s})=>v.createElement(v.Fragment,null,s);function O1(s){return v.isValidElement(s)&&s.type===Np}function A1(s,e){const t={...e};for(const n in e){const r=s[n],i=e[n];/^on[A-Z]/.test(n)?r&&i?t[n]=(...a)=>{i(...a),r(...a)}:r&&(t[n]=r):n==="style"?t[n]={...r,...i}:n==="className"&&(t[n]=[r,i].filter(Boolean).join(" "))}return{...s,...t}}const R1=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],ir=R1.reduce((s,e)=>{const t=v.forwardRef((n,r)=>{const{asChild:i,...o}=n,a=i?Ip:e;return v.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),v.createElement(a,Ae({},o,{ref:r}))});return t.displayName=`Primitive.${e}`,{...s,[e]:t}},{});function P1(s,e){s&&lu.flushSync(()=>s.dispatchEvent(e))}const D1=v.forwardRef((s,e)=>{var t;const{container:n=globalThis==null||(t=globalThis.document)===null||t===void 0?void 0:t.body,...r}=s;return n?sp.createPortal(v.createElement(ir.div,Ae({},r,{ref:e})),n):null}),M1=D1;var fd=Object.prototype.hasOwnProperty;function Vi(s,e){var t,n;if(s===e)return!0;if(s&&e&&(t=s.constructor)===e.constructor){if(t===Date)return s.getTime()===e.getTime();if(t===RegExp)return s.toString()===e.toString();if(t===Array){if((n=s.length)===e.length)for(;n--&&Vi(s[n],e[n]););return n===-1}if(!t||typeof s=="object"){n=0;for(t in s)if(fd.call(s,t)&&++n&&!fd.call(e,t)||!(t in e)||!Vi(s[t],e[t]))return!1;return Object.keys(e).length===n}}return s!==s&&e!==e}function xo(s,e){if(Object.is(s,e))return!0;if(typeof s!="object"||s===null||typeof e!="object"||e===null)return!1;const t=Object.keys(s);if(t.length!==Object.keys(e).length)return!1;for(let n=0;n0;)o[a]=arguments[a+4];s.call(this,o),s.captureStackTrace&&s.captureStackTrace(this,e),this.rule=t,this.value=n,this.cause=r,this.target=i}return s&&(e.__proto__=s),e.prototype=Object.create(s&&s.prototype),e.prototype.constructor=e,e}(Error),Sn=function(e,t){e===void 0&&(e=[]),t===void 0&&(t=[]),this.chain=e,this.nextRuleModifiers=t};Sn.prototype._applyRule=function(e,t){var n=this;return function(){for(var r=[],i=arguments.length;i--;)r[i]=arguments[i];return n.chain.push(new cc(t,e.apply(n,r),r,n.nextRuleModifiers)),n.nextRuleModifiers=[],n}};Sn.prototype._applyModifier=function(e,t){return this.nextRuleModifiers.push(new I1(t,e.simple,e.async)),this};Sn.prototype._clone=function(){return new Sn(this.chain.slice(),this.nextRuleModifiers.slice())};Sn.prototype.test=function(e){return this.chain.every(function(t){return t._test(e)})};Sn.prototype.testAll=function(e){var t=[];return this.chain.forEach(function(n){try{n._check(e)}catch(r){t.push(new wu(n,e,r))}}),t};Sn.prototype.check=function(e){this.chain.forEach(function(t){try{t._check(e)}catch(n){throw new wu(t,e,n)}})};Sn.prototype.testAsync=function(e){var t=this;return new Promise(function(n,r){Lp(e,t.chain.slice(),n,r)})};function Lp(s,e,t,n){if(e.length){var r=e.shift();r._testAsync(s).then(function(){Lp(s,e,t,n)},function(i){n(new wu(r,s,i))})}else t(s)}var pd=function(s,e){return e&&typeof s=="string"&&s.trim().length===0?!0:s==null};function N1(s,e){return e===void 0&&(e=!1),{simple:function(t){return pd(t,e)||s.check(t)===void 0},async:function(t){return pd(t,e)||s.testAsync(t)}}}function St(){return typeof Proxy<"u"?jp(new Sn):yl(new Sn)}var zi={};St.extend=function(s){Object.assign(zi,s)};St.clearCustomRules=function(){zi={}};function jp(s){return new Proxy(s,{get:function(t,n){if(n in t)return t[n];var r=jp(s._clone());if(n in va)return r._applyModifier(va[n],n);if(n in zi)return r._applyRule(zi[n],n);if(n in vl)return r._applyRule(vl[n],n)}})}function yl(s){var e=function(r,i){return Object.keys(r).forEach(function(o){i[o]=function(){for(var a=[],c=arguments.length;c--;)a[c]=arguments[c];var l=yl(i._clone()),u=l._applyRule(r[o],o).apply(void 0,a);return u}}),i},t=e(vl,s),n=e(zi,t);return Object.keys(va).forEach(function(r){Object.defineProperty(n,r,{get:function(){var i=yl(n._clone());return i._applyModifier(va[r],r)}})}),n}var va={not:{simple:function(s){return function(e){return!s(e)}},async:function(s){return function(e){return Promise.resolve(s(e)).then(function(t){return!t}).catch(function(){return!0})}}},some:{simple:function(s){return function(e){return Yo(e).some(function(t){try{return s(t)}catch{return!1}})}},async:function(s){return function(e){return Promise.all(Yo(e).map(function(t){try{return s(t).catch(function(){return!1})}catch{return!1}})).then(function(t){return t.some(Boolean)})}}},every:{simple:function(s){return function(e){return e!==!1&&Yo(e).every(s)}},async:function(s){return function(e){return Promise.all(Yo(e).map(s)).then(function(t){return t.every(Boolean)})}}},strict:{simple:function(s,e){return function(t){return md(e)&&t&&typeof t=="object"?Object.keys(e.args[0]).length===Object.keys(t).length&&s(t):s(t)}},async:function(s,e){return function(t){return Promise.resolve(s(t)).then(function(n){return md(e)&&t&&typeof t=="object"?Object.keys(e.args[0]).length===Object.keys(t).length&&n:n}).catch(function(){return!1})}}}};function md(s){return s&&s.name==="schema"&&s.args.length>0&&typeof s.args[0]=="object"}function Yo(s){return typeof s=="string"?s.split(""):s}var vl={equal:function(s){return function(e){return e==s}},exact:function(s){return function(e){return e===s}},number:function(s){return s===void 0&&(s=!0),function(e){return typeof e=="number"&&(s||isFinite(e))}},integer:function(){return function(s){var e=Number.isInteger||$1;return e(s)}},numeric:function(){return function(s){return!isNaN(parseFloat(s))&&isFinite(s)}},string:function(){return _r("string")},boolean:function(){return _r("boolean")},undefined:function(){return _r("undefined")},null:function(){return _r("null")},array:function(){return _r("array")},object:function(){return _r("object")},instanceOf:function(s){return function(e){return e instanceof s}},pattern:function(s){return function(e){return s.test(e)}},lowercase:function(){return function(s){return typeof s=="boolean"||s===s.toLowerCase()&&s.trim()!==""}},uppercase:function(){return function(s){return s===s.toUpperCase()&&s.trim()!==""}},vowel:function(){return function(s){return/^[aeiou]+$/i.test(s)}},consonant:function(){return function(s){return/^(?=[^aeiou])([a-z]+)$/i.test(s)}},first:function(s){return function(e){return e[0]==s}},last:function(s){return function(e){return e[e.length-1]==s}},empty:function(){return function(s){return s.length===0}},length:function(s,e){return function(t){return t.length>=s&&t.length<=(e||s)}},minLength:function(s){return function(e){return e.length>=s}},maxLength:function(s){return function(e){return e.length<=s}},negative:function(){return function(s){return s<0}},positive:function(){return function(s){return s>=0}},between:function(s,e){return function(t){return t>=s&&t<=e}},range:function(s,e){return function(t){return t>=s&&t<=e}},lessThan:function(s){return function(e){return es}},greaterThanOrEqual:function(s){return function(e){return e>=s}},even:function(){return function(s){return s%2===0}},odd:function(){return function(s){return s%2!==0}},includes:function(s){return function(e){return~e.indexOf(s)}},schema:function(s){return F1(s)},passesAnyOf:function(){for(var s=[],e=arguments.length;e--;)s[e]=arguments[e];return function(t){return s.some(function(n){return n.test(t)})}},optional:N1};function _r(s){return function(e){return Array.isArray(e)&&s==="array"||e===null&&s==="null"||typeof e===s}}function $1(s){return typeof s=="number"&&isFinite(s)&&Math.floor(s)===s}function F1(s){return{simple:function(e){var t=[];if(Object.keys(s).forEach(function(n){var r=s[n];try{r.check((e||{})[n])}catch(i){i.target=n,t.push(i)}}),t.length>0)throw t;return!0},async:function(e){var t=[],n=Object.keys(s).map(function(r){var i=s[r];return i.testAsync((e||{})[r]).catch(function(o){o.target=r,t.push(o)})});return Promise.all(n).then(function(){if(t.length>0)throw t;return!0})}}}function Vn(s,e,{checkForDefaultPrevented:t=!0}={}){return function(r){if(s==null||s(r),t===!1||!r.defaultPrevented)return e==null?void 0:e(r)}}function Vp(s,e=[]){let t=[];function n(i,o){const a=v.createContext(o),c=t.length;t=[...t,o];function l(h){const{scope:d,children:f,...m}=h,p=(d==null?void 0:d[s][c])||a,g=v.useMemo(()=>m,Object.values(m));return v.createElement(p.Provider,{value:g},f)}function u(h,d){const f=(d==null?void 0:d[s][c])||a,m=v.useContext(f);if(m)return m;if(o!==void 0)return o;throw new Error(`\`${h}\` must be used within \`${i}\``)}return l.displayName=i+"Provider",[l,u]}const r=()=>{const i=t.map(o=>v.createContext(o));return function(a){const c=(a==null?void 0:a[s])||i;return v.useMemo(()=>({[`__scope${s}`]:{...a,[s]:c}}),[a,c])}};return r.scopeName=s,[n,L1(r,...e)]}function L1(...s){const e=s[0];if(s.length===1)return e;const t=()=>{const n=s.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(i){const o=n.reduce((a,{useScope:c,scopeName:l})=>{const h=c(i)[`__scope${l}`];return{...a,...h}},{});return v.useMemo(()=>({[`__scope${e.scopeName}`]:o}),[o])}};return t.scopeName=e.scopeName,t}function ei(s){const e=v.useRef(s);return v.useEffect(()=>{e.current=s}),v.useMemo(()=>(...t)=>{var n;return(n=e.current)===null||n===void 0?void 0:n.call(e,...t)},[])}function j1(s,e=globalThis==null?void 0:globalThis.document){const t=ei(s);v.useEffect(()=>{const n=r=>{r.key==="Escape"&&t(r)};return e.addEventListener("keydown",n),()=>e.removeEventListener("keydown",n)},[t,e])}const bl="dismissableLayer.update",V1="dismissableLayer.pointerDownOutside",z1="dismissableLayer.focusOutside";let gd;const U1=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),B1=v.forwardRef((s,e)=>{var t;const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:o,onInteractOutside:a,onDismiss:c,...l}=s,u=v.useContext(U1),[h,d]=v.useState(null),f=(t=h==null?void 0:h.ownerDocument)!==null&&t!==void 0?t:globalThis==null?void 0:globalThis.document,[,m]=v.useState({}),p=Jr(e,w=>d(w)),g=Array.from(u.layers),[_]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),x=g.indexOf(_),k=h?g.indexOf(h):-1,y=u.layersWithOutsidePointerEventsDisabled.size>0,b=k>=x,T=W1(w=>{const C=w.target,S=[...u.branches].some(R=>R.contains(C));!b||S||(i==null||i(w),a==null||a(w),w.defaultPrevented||c==null||c())},f),E=q1(w=>{const C=w.target;[...u.branches].some(R=>R.contains(C))||(o==null||o(w),a==null||a(w),w.defaultPrevented||c==null||c())},f);return j1(w=>{k===u.layers.size-1&&(r==null||r(w),!w.defaultPrevented&&c&&(w.preventDefault(),c()))},f),v.useEffect(()=>{if(h)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(gd=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(h)),u.layers.add(h),_d(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=gd)}},[h,f,n,u]),v.useEffect(()=>()=>{h&&(u.layers.delete(h),u.layersWithOutsidePointerEventsDisabled.delete(h),_d())},[h,u]),v.useEffect(()=>{const w=()=>m({});return document.addEventListener(bl,w),()=>document.removeEventListener(bl,w)},[]),v.createElement(ir.div,Ae({},l,{ref:p,style:{pointerEvents:y?b?"auto":"none":void 0,...s.style},onFocusCapture:Vn(s.onFocusCapture,E.onFocusCapture),onBlurCapture:Vn(s.onBlurCapture,E.onBlurCapture),onPointerDownCapture:Vn(s.onPointerDownCapture,T.onPointerDownCapture)}))});function W1(s,e=globalThis==null?void 0:globalThis.document){const t=ei(s),n=v.useRef(!1),r=v.useRef(()=>{});return v.useEffect(()=>{const i=a=>{if(a.target&&!n.current){let l=function(){zp(V1,t,c,{discrete:!0})};const c={originalEvent:a};a.pointerType==="touch"?(e.removeEventListener("click",r.current),r.current=l,e.addEventListener("click",r.current,{once:!0})):l()}else e.removeEventListener("click",r.current);n.current=!1},o=window.setTimeout(()=>{e.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(o),e.removeEventListener("pointerdown",i),e.removeEventListener("click",r.current)}},[e,t]),{onPointerDownCapture:()=>n.current=!0}}function q1(s,e=globalThis==null?void 0:globalThis.document){const t=ei(s),n=v.useRef(!1);return v.useEffect(()=>{const r=i=>{i.target&&!n.current&&zp(z1,t,{originalEvent:i},{discrete:!1})};return e.addEventListener("focusin",r),()=>e.removeEventListener("focusin",r)},[e,t]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function _d(){const s=new CustomEvent(bl);document.dispatchEvent(s)}function zp(s,e,t,{discrete:n}){const r=t.originalEvent.target,i=new CustomEvent(s,{bubbles:!1,cancelable:!0,detail:t});e&&r.addEventListener(s,e,{once:!0}),n?P1(r,i):r.dispatchEvent(i)}const Fr=globalThis!=null&&globalThis.document?v.useLayoutEffect:()=>{},H1=S_["useId".toString()]||(()=>{});let Y1=0;function G1(s){const[e,t]=v.useState(H1());return Fr(()=>{s||t(n=>n??String(Y1++))},[s]),s||(e?`radix-${e}`:"")}const X1=v.forwardRef((s,e)=>{const{children:t,width:n=10,height:r=5,...i}=s;return v.createElement(ir.svg,Ae({},i,{ref:e,width:n,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),s.asChild?t:v.createElement("polygon",{points:"0,0 30,0 15,10"}))}),Z1=X1;function K1(s){const[e,t]=v.useState(void 0);return Fr(()=>{if(s){t({width:s.offsetWidth,height:s.offsetHeight});const n=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;const i=r[0];let o,a;if("borderBoxSize"in i){const c=i.borderBoxSize,l=Array.isArray(c)?c[0]:c;o=l.inlineSize,a=l.blockSize}else o=s.offsetWidth,a=s.offsetHeight;t({width:o,height:a})});return n.observe(s,{box:"border-box"}),()=>n.unobserve(s)}else t(void 0)},[s]),e}const Up="Popper",[Bp,Wp]=Vp(Up),[Q1,qp]=Bp(Up),J1=s=>{const{__scopePopper:e,children:t}=s,[n,r]=v.useState(null);return v.createElement(Q1,{scope:e,anchor:n,onAnchorChange:r},t)},ev="PopperAnchor",tv=v.forwardRef((s,e)=>{const{__scopePopper:t,virtualRef:n,...r}=s,i=qp(ev,t),o=v.useRef(null),a=Jr(e,o);return v.useEffect(()=>{i.onAnchorChange((n==null?void 0:n.current)||o.current)}),n?null:v.createElement(ir.div,Ae({},r,{ref:a}))}),Hp="PopperContent",[nv,sv]=Bp(Hp),rv=v.forwardRef((s,e)=>{var t,n,r,i,o,a,c,l;const{__scopePopper:u,side:h="bottom",sideOffset:d=0,align:f="center",alignOffset:m=0,arrowPadding:p=0,avoidCollisions:g=!0,collisionBoundary:_=[],collisionPadding:x=0,sticky:k="partial",hideWhenDetached:y=!1,updatePositionStrategy:b="optimized",onPlaced:T,...E}=s,w=qp(Hp,u),[C,S]=v.useState(null),R=Jr(e,H=>S(H)),[O,j]=v.useState(null),V=K1(O),W=(t=V==null?void 0:V.width)!==null&&t!==void 0?t:0,z=(n=V==null?void 0:V.height)!==null&&n!==void 0?n:0,U=h+(f!=="center"?"-"+f:""),B=typeof x=="number"?x:{top:0,right:0,bottom:0,left:0,...x},X=Array.isArray(_)?_:[_],K=X.length>0,J={padding:B,boundary:X.filter(cv),altBoundary:K},{refs:N,floatingStyles:L,placement:A,isPositioned:I,middlewareData:Y}=i1({strategy:"fixed",placement:U,whileElementsMounted:(...H)=>n1(...H,{animationFrame:b==="always"}),elements:{reference:w.anchor},middleware:[Ny({mainAxis:d+z,alignmentAxis:m}),g&&$y({mainAxis:!0,crossAxis:!1,limiter:k==="partial"?Fy():void 0,...J}),g&&Dy({...J}),Ly({...J,apply:({elements:H,rects:D,availableWidth:P,availableHeight:Q})=>{const{width:se,height:ce}=D.reference,ye=H.floating.style;ye.setProperty("--radix-popper-available-width",`${P}px`),ye.setProperty("--radix-popper-available-height",`${Q}px`),ye.setProperty("--radix-popper-anchor-width",`${se}px`),ye.setProperty("--radix-popper-anchor-height",`${ce}px`)}}),O&&r1({element:O,padding:p}),lv({arrowWidth:W,arrowHeight:z}),y&&My({strategy:"referenceHidden",...J})]}),[$,q]=Yp(A),oe=ei(T);Fr(()=>{I&&(oe==null||oe())},[I,oe]);const re=(r=Y.arrow)===null||r===void 0?void 0:r.x,ie=(i=Y.arrow)===null||i===void 0?void 0:i.y,ne=((o=Y.arrow)===null||o===void 0?void 0:o.centerOffset)!==0,[me,te]=v.useState();return Fr(()=>{C&&te(window.getComputedStyle(C).zIndex)},[C]),v.createElement("div",{ref:N.setFloating,"data-radix-popper-content-wrapper":"",style:{...L,transform:I?L.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:me,"--radix-popper-transform-origin":[(a=Y.transformOrigin)===null||a===void 0?void 0:a.x,(c=Y.transformOrigin)===null||c===void 0?void 0:c.y].join(" ")},dir:s.dir},v.createElement(nv,{scope:u,placedSide:$,onArrowChange:j,arrowX:re,arrowY:ie,shouldHideArrow:ne},v.createElement(ir.div,Ae({"data-side":$,"data-align":q},E,{ref:R,style:{...E.style,animation:I?void 0:"none",opacity:(l=Y.hide)!==null&&l!==void 0&&l.referenceHidden?0:void 0}}))))}),iv="PopperArrow",ov={top:"bottom",right:"left",bottom:"top",left:"right"},av=v.forwardRef(function(e,t){const{__scopePopper:n,...r}=e,i=sv(iv,n),o=ov[i.placedSide];return v.createElement("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0}},v.createElement(Z1,Ae({},r,{ref:t,style:{...r.style,display:"block"}})))});function cv(s){return s!==null}const lv=s=>({name:"transformOrigin",options:s,fn(e){var t,n,r,i,o;const{placement:a,rects:c,middlewareData:l}=e,h=((t=l.arrow)===null||t===void 0?void 0:t.centerOffset)!==0,d=h?0:s.arrowWidth,f=h?0:s.arrowHeight,[m,p]=Yp(a),g={start:"0%",center:"50%",end:"100%"}[p],_=((n=(r=l.arrow)===null||r===void 0?void 0:r.x)!==null&&n!==void 0?n:0)+d/2,x=((i=(o=l.arrow)===null||o===void 0?void 0:o.y)!==null&&i!==void 0?i:0)+f/2;let k="",y="";return m==="bottom"?(k=h?g:`${_}px`,y=`${-f}px`):m==="top"?(k=h?g:`${_}px`,y=`${c.floating.height+f}px`):m==="right"?(k=`${-f}px`,y=h?g:`${x}px`):m==="left"&&(k=`${c.floating.width+f}px`,y=h?g:`${x}px`),{data:{x:k,y}}}});function Yp(s){const[e,t="center"]=s.split("-");return[e,t]}const uv=J1,hv=tv,dv=rv,fv=av;function pv(s,e){return v.useReducer((t,n)=>{const r=e[t][n];return r??t},s)}const Gp=s=>{const{present:e,children:t}=s,n=mv(e),r=typeof t=="function"?t({present:n.isPresent}):v.Children.only(t),i=Jr(n.ref,r.ref);return typeof t=="function"||n.isPresent?v.cloneElement(r,{ref:i}):null};Gp.displayName="Presence";function mv(s){const[e,t]=v.useState(),n=v.useRef({}),r=v.useRef(s),i=v.useRef("none"),o=s?"mounted":"unmounted",[a,c]=pv(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return v.useEffect(()=>{const l=Go(n.current);i.current=a==="mounted"?l:"none"},[a]),Fr(()=>{const l=n.current,u=r.current;if(u!==s){const d=i.current,f=Go(l);s?c("MOUNT"):f==="none"||(l==null?void 0:l.display)==="none"?c("UNMOUNT"):c(u&&d!==f?"ANIMATION_OUT":"UNMOUNT"),r.current=s}},[s,c]),Fr(()=>{if(e){const l=h=>{const f=Go(n.current).includes(h.animationName);h.target===e&&f&&lu.flushSync(()=>c("ANIMATION_END"))},u=h=>{h.target===e&&(i.current=Go(n.current))};return e.addEventListener("animationstart",u),e.addEventListener("animationcancel",l),e.addEventListener("animationend",l),()=>{e.removeEventListener("animationstart",u),e.removeEventListener("animationcancel",l),e.removeEventListener("animationend",l)}}else c("ANIMATION_END")},[e,c]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:v.useCallback(l=>{l&&(n.current=getComputedStyle(l)),t(l)},[])}}function Go(s){return(s==null?void 0:s.animationName)||"none"}function gv({prop:s,defaultProp:e,onChange:t=()=>{}}){const[n,r]=_v({defaultProp:e,onChange:t}),i=s!==void 0,o=i?s:n,a=ei(t),c=v.useCallback(l=>{if(i){const h=typeof l=="function"?l(s):l;h!==s&&a(h)}else r(l)},[i,s,r,a]);return[o,c]}function _v({defaultProp:s,onChange:e}){const t=v.useState(s),[n]=t,r=v.useRef(n),i=ei(e);return v.useEffect(()=>{r.current!==n&&(i(n),r.current=n)},[n,r,i]),t}const yv=v.forwardRef((s,e)=>v.createElement(ir.span,Ae({},s,{ref:e,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...s.style}}))),vv=yv,[lc,XD]=Vp("Tooltip",[Wp]),uc=Wp(),bv="TooltipProvider",xl="tooltip.open",[ZD,ku]=lc(bv),Tu="Tooltip",[xv,hc]=lc(Tu),wv=s=>{const{__scopeTooltip:e,children:t,open:n,defaultOpen:r=!1,onOpenChange:i,disableHoverableContent:o,delayDuration:a}=s,c=ku(Tu,s.__scopeTooltip),l=uc(e),[u,h]=v.useState(null),d=G1(),f=v.useRef(0),m=o??c.disableHoverableContent,p=a??c.delayDuration,g=v.useRef(!1),[_=!1,x]=gv({prop:n,defaultProp:r,onChange:E=>{E?(c.onOpen(),document.dispatchEvent(new CustomEvent(xl))):c.onClose(),i==null||i(E)}}),k=v.useMemo(()=>_?g.current?"delayed-open":"instant-open":"closed",[_]),y=v.useCallback(()=>{window.clearTimeout(f.current),g.current=!1,x(!0)},[x]),b=v.useCallback(()=>{window.clearTimeout(f.current),x(!1)},[x]),T=v.useCallback(()=>{window.clearTimeout(f.current),f.current=window.setTimeout(()=>{g.current=!0,x(!0)},p)},[p,x]);return v.useEffect(()=>()=>window.clearTimeout(f.current),[]),v.createElement(uv,l,v.createElement(xv,{scope:e,contentId:d,open:_,stateAttribute:k,trigger:u,onTriggerChange:h,onTriggerEnter:v.useCallback(()=>{c.isOpenDelayed?T():y()},[c.isOpenDelayed,T,y]),onTriggerLeave:v.useCallback(()=>{m?b():window.clearTimeout(f.current)},[b,m]),onOpen:y,onClose:b,disableHoverableContent:m},t))},yd="TooltipTrigger",kv=v.forwardRef((s,e)=>{const{__scopeTooltip:t,...n}=s,r=hc(yd,t),i=ku(yd,t),o=uc(t),a=v.useRef(null),c=Jr(e,a,r.onTriggerChange),l=v.useRef(!1),u=v.useRef(!1),h=v.useCallback(()=>l.current=!1,[]);return v.useEffect(()=>()=>document.removeEventListener("pointerup",h),[h]),v.createElement(hv,Ae({asChild:!0},o),v.createElement(ir.button,Ae({"aria-describedby":r.open?r.contentId:void 0,"data-state":r.stateAttribute},n,{ref:c,onPointerMove:Vn(s.onPointerMove,d=>{d.pointerType!=="touch"&&!u.current&&!i.isPointerInTransitRef.current&&(r.onTriggerEnter(),u.current=!0)}),onPointerLeave:Vn(s.onPointerLeave,()=>{r.onTriggerLeave(),u.current=!1}),onPointerDown:Vn(s.onPointerDown,()=>{l.current=!0,document.addEventListener("pointerup",h,{once:!0})}),onFocus:Vn(s.onFocus,()=>{l.current||r.onOpen()}),onBlur:Vn(s.onBlur,r.onClose),onClick:Vn(s.onClick,r.onClose)})))}),Tv="TooltipPortal",[KD,Ev]=lc(Tv,{forceMount:void 0}),Ui="TooltipContent",Cv=v.forwardRef((s,e)=>{const t=Ev(Ui,s.__scopeTooltip),{forceMount:n=t.forceMount,side:r="top",...i}=s,o=hc(Ui,s.__scopeTooltip);return v.createElement(Gp,{present:n||o.open},o.disableHoverableContent?v.createElement(Xp,Ae({side:r},i,{ref:e})):v.createElement(Sv,Ae({side:r},i,{ref:e})))}),Sv=v.forwardRef((s,e)=>{const t=hc(Ui,s.__scopeTooltip),n=ku(Ui,s.__scopeTooltip),r=v.useRef(null),i=Jr(e,r),[o,a]=v.useState(null),{trigger:c,onClose:l}=t,u=r.current,{onPointerInTransitChange:h}=n,d=v.useCallback(()=>{a(null),h(!1)},[h]),f=v.useCallback((m,p)=>{const g=m.currentTarget,_={x:m.clientX,y:m.clientY},x=Dv(_,g.getBoundingClientRect()),k=Mv(_,x),y=Iv(p.getBoundingClientRect()),b=$v([...k,...y]);a(b),h(!0)},[h]);return v.useEffect(()=>()=>d(),[d]),v.useEffect(()=>{if(c&&u){const m=g=>f(g,u),p=g=>f(g,c);return c.addEventListener("pointerleave",m),u.addEventListener("pointerleave",p),()=>{c.removeEventListener("pointerleave",m),u.removeEventListener("pointerleave",p)}}},[c,u,f,d]),v.useEffect(()=>{if(o){const m=p=>{const g=p.target,_={x:p.clientX,y:p.clientY},x=(c==null?void 0:c.contains(g))||(u==null?void 0:u.contains(g)),k=!Nv(_,o);x?d():k&&(d(),l())};return document.addEventListener("pointermove",m),()=>document.removeEventListener("pointermove",m)}},[c,u,o,l,d]),v.createElement(Xp,Ae({},s,{ref:i}))}),[Ov,Av]=lc(Tu,{isInside:!1}),Xp=v.forwardRef((s,e)=>{const{__scopeTooltip:t,children:n,"aria-label":r,onEscapeKeyDown:i,onPointerDownOutside:o,...a}=s,c=hc(Ui,t),l=uc(t),{onClose:u}=c;return v.useEffect(()=>(document.addEventListener(xl,u),()=>document.removeEventListener(xl,u)),[u]),v.useEffect(()=>{if(c.trigger){const h=d=>{const f=d.target;f!=null&&f.contains(c.trigger)&&u()};return window.addEventListener("scroll",h,{capture:!0}),()=>window.removeEventListener("scroll",h,{capture:!0})}},[c.trigger,u]),v.createElement(B1,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:h=>h.preventDefault(),onDismiss:u},v.createElement(dv,Ae({"data-state":c.stateAttribute},l,a,{ref:e,style:{...a.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"}}),v.createElement(Np,null,n),v.createElement(Ov,{scope:t,isInside:!0},v.createElement(vv,{id:c.contentId,role:"tooltip"},r||n))))}),Rv="TooltipArrow",Pv=v.forwardRef((s,e)=>{const{__scopeTooltip:t,...n}=s,r=uc(t);return Av(Rv,t).isInside?null:v.createElement(fv,Ae({},r,n,{ref:e}))});function Dv(s,e){const t=Math.abs(e.top-s.y),n=Math.abs(e.bottom-s.y),r=Math.abs(e.right-s.x),i=Math.abs(e.left-s.x);switch(Math.min(t,n,r,i)){case i:return"left";case r:return"right";case t:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function Mv(s,e,t=5){const n=[];switch(e){case"top":n.push({x:s.x-t,y:s.y+t},{x:s.x+t,y:s.y+t});break;case"bottom":n.push({x:s.x-t,y:s.y-t},{x:s.x+t,y:s.y-t});break;case"left":n.push({x:s.x+t,y:s.y-t},{x:s.x+t,y:s.y+t});break;case"right":n.push({x:s.x-t,y:s.y-t},{x:s.x-t,y:s.y+t});break}return n}function Iv(s){const{top:e,right:t,bottom:n,left:r}=s;return[{x:r,y:e},{x:t,y:e},{x:t,y:n},{x:r,y:n}]}function Nv(s,e){const{x:t,y:n}=s;let r=!1;for(let i=0,o=e.length-1;in!=u>n&&t<(l-a)*(n-c)/(u-c)+a&&(r=!r)}return r}function $v(s){const e=s.slice();return e.sort((t,n)=>t.xn.x?1:t.yn.y?1:0),Fv(e)}function Fv(s){if(s.length<=1)return s.slice();const e=[];for(let n=0;n=2;){const i=e[e.length-1],o=e[e.length-2];if((i.x-o.x)*(r.y-o.y)>=(i.y-o.y)*(r.x-o.x))e.pop();else break}e.push(r)}e.pop();const t=[];for(let n=s.length-1;n>=0;n--){const r=s[n];for(;t.length>=2;){const i=t[t.length-1],o=t[t.length-2];if((i.x-o.x)*(r.y-o.y)>=(i.y-o.y)*(r.x-o.x))t.pop();else break}t.push(r)}return t.pop(),e.length===1&&t.length===1&&e[0].x===t[0].x&&e[0].y===t[0].y?e:e.concat(t)}const Lv=wv,jv=kv,Vv=Cv,zv=Pv;function Uv(s,e){if(s==null)return{};var t={},n=Object.keys(s),r,i;for(i=0;i=0)&&(t[r]=s[r]);return t}function Re(s,e){if(s==null)return{};var t=Uv(s,e),n,r;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(s);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(s,n)&&(t[n]=s[n])}return t}let We;(function(s){s[s.UNSUPPORTED_INPUT=0]="UNSUPPORTED_INPUT",s[s.NO_COMPONENT_FOR_TYPE=1]="NO_COMPONENT_FOR_TYPE",s[s.UNKNOWN_INPUT=2]="UNKNOWN_INPUT",s[s.DUPLICATE_KEYS=3]="DUPLICATE_KEYS",s[s.ALREADY_REGISTERED_TYPE=4]="ALREADY_REGISTERED_TYPE",s[s.CLIPBOARD_ERROR=5]="CLIPBOARD_ERROR",s[s.THEME_ERROR=6]="THEME_ERROR",s[s.PATH_DOESNT_EXIST=7]="PATH_DOESNT_EXIST",s[s.INPUT_TYPE_OVERRIDE=8]="INPUT_TYPE_OVERRIDE",s[s.EMPTY_KEY=9]="EMPTY_KEY"})(We||(We={}));const Bv={[We.UNSUPPORTED_INPUT]:(s,e)=>[`An input with type \`${s}\` input was found at path \`${e}\` but it's not supported yet.`],[We.NO_COMPONENT_FOR_TYPE]:(s,e)=>[`Type \`${s}\` found at path \`${e}\` can't be displayed in panel because no component supports it yet.`],[We.UNKNOWN_INPUT]:(s,e)=>[`input at path \`${s}\` is not recognized.`,e],[We.DUPLICATE_KEYS]:(s,e,t)=>[`Key \`${s}\` of path \`${e}\` already exists at path \`${t}\`. Even nested keys need to be unique. Rename one of the keys.`],[We.ALREADY_REGISTERED_TYPE]:s=>[`Type ${s} has already been registered. You can't register a component with the same type.`],[We.CLIPBOARD_ERROR]:s=>["Error copying the value",s],[We.THEME_ERROR]:(s,e)=>[`Error accessing the theme \`${s}.${e}\` value.`],[We.PATH_DOESNT_EXIST]:s=>[`Error getting the value at path \`${s}\`. There is probably an error in your \`render\` function.`],[We.PATH_DOESNT_EXIST]:s=>[`Error accessing the value at path \`${s}\``],[We.INPUT_TYPE_OVERRIDE]:(s,e,t)=>[`Input at path \`${s}\` already exists with type: \`${e}\`. Its type cannot be overridden with type \`${t}\`.`],[We.EMPTY_KEY]:()=>["Keys can not be empty, if you want to hide a label use whitespace."]};function Zp(s,e,...t){const[n,...r]=Bv[e](...t);console[s]("LEVA: "+n,...r)}const Un=Zp.bind(null,"warn"),Wv=Zp.bind(null,"log"),qv=["value"],Hv=["schema"],Yv=["value"],Kp=[],Ks={};function vd(s){let{value:e}=s,t=Re(s,qv);for(let n of Kp){const r=n(e,t);if(r)return r}}function es(s,e){let{schema:t}=e,n=Re(e,Hv);if(s in Ks){Un(We.ALREADY_REGISTERED_TYPE,s);return}Kp.push((r,i)=>t(r,i)&&s),Ks[s]=n}function qc(s,e,t,n){const{normalize:r}=Ks[s];if(r)return r(e,t,n);if(typeof e!="object"||!("value"in e))return{value:e};const{value:i}=e,o=Re(e,Yv);return{value:i,settings:o}}function Gv(s,e,t,n,r,i){const{sanitize:o}=Ks[s];return o?o(e,t,n,r,i):e}function bd(s,e,t){const{format:n}=Ks[s];return n?n(e,t):e}function Xv(s,e,t){return e in s?Object.defineProperty(s,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):s[e]=t,s}function xd(s,e){var t=Object.keys(s);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(s);e&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(s,r).enumerable})),t.push.apply(t,n)}return t}function he(s){for(var e=1;es>t?t:s{if(s===""||typeof s=="number")return s;try{const e=as(s);if(!isNaN(e))return e}catch{}return parseFloat(s)},Kv=Math.log(10);function wd(s){let e=Math.abs(+String(s).replace(".",""));if(e===0)return .01;for(;e!==0&&e%10===0;)e/=10;const t=Math.floor(Math.log(e)/Kv)+1,n=Math.floor(Math.log10(Math.abs(s))),r=Math.pow(10,n-t);return Math.max(r,.001)}const ba=(s,e,t)=>t===e?0:(bs(s,e,t)-e)/(t-e),xa=(s,e,t)=>s*(t-e)+e,Qv=()=>"_"+Math.random().toString(36).substr(2,9),kd=/\(([0-9+\-*/^ .]+)\)/,Td=/(\d+(?:\.\d+)?) ?\^ ?(\d+(?:\.\d+)?)/,Ed=/(\d+(?:\.\d+)?) ?\* ?(\d+(?:\.\d+)?)/,Cd=/(\d+(?:\.\d+)?) ?\/ ?(\d+(?:\.\d+)?)/,Sd=/(\d+(?:\.\d+)?) ?\+ ?(\d+(?:\.\d+)?)/,Od=/(\d+(?:\.\d+)?) ?- ?(\d+(?:\.\d+)?)/;function as(s){if(isNaN(Number(s)))if(kd.test(s)){const e=s.replace(kd,(t,n)=>String(as(n)));return as(e)}else if(Td.test(s)){const e=s.replace(Td,(t,n,r)=>String(Math.pow(Number(n),Number(r))));return as(e)}else if(Ed.test(s)){const e=s.replace(Ed,(t,n,r)=>String(Number(n)*Number(r)));return as(e)}else if(Cd.test(s)){const e=s.replace(Cd,(t,n,r)=>{if(r!=0)return String(Number(n)/Number(r));throw new Error("Division by zero")});return as(e)}else if(Sd.test(s)){const e=s.replace(Sd,(t,n,r)=>String(Number(n)+Number(r)));return as(e)}else if(Od.test(s)){const e=s.replace(Od,(t,n,r)=>String(Number(n)-Number(r)));return as(e)}else return Number(s);return Number(s)}function Jv(s,e){return e.reduce((t,n)=>(s&&s.hasOwnProperty(n)&&(t[n]=s[n]),t),{})}function eb(s,e){const t=he({},s);return e.forEach(n=>n in s&&delete t[n]),t}function tb(s,e){return s.reduce((t,n,r)=>Object.assign(t,{[e[r]]:n}),{})}function Qp(s){return Object.prototype.toString.call(s)==="[object Object]"}const nb=s=>Qp(s)&&Object.keys(s).length===0;let cn;(function(s){s.BUTTON="BUTTON",s.BUTTON_GROUP="BUTTON_GROUP",s.MONITOR="MONITOR",s.FOLDER="FOLDER"})(cn||(cn={}));let un;(function(s){s.SELECT="SELECT",s.IMAGE="IMAGE",s.NUMBER="NUMBER",s.COLOR="COLOR",s.STRING="STRING",s.BOOLEAN="BOOLEAN",s.INTERVAL="INTERVAL",s.VECTOR3D="VECTOR3D",s.VECTOR2D="VECTOR2D"})(un||(un={}));const sb=["type","__customInput"],rb=["render","label","optional","order","disabled","hint","onChange","onEditStart","onEditEnd","transient"],ib=["type"];function Jp(s,e,t={},n){var r,i;if(typeof s!="object"||Array.isArray(s))return{type:n,input:s,options:he({key:e,label:e,optional:!1,disabled:!1,order:0},t)};if("__customInput"in s){const{type:b,__customInput:T}=s,E=Re(s,sb);return Jp(T,e,E,b)}const{render:o,label:a,optional:c,order:l=0,disabled:u,hint:h,onChange:d,onEditStart:f,onEditEnd:m,transient:p}=s,g=Re(s,rb),_=he({render:o,key:e,label:a??e,hint:h,transient:p??!!d,onEditStart:f,onEditEnd:m,disabled:u,optional:c,order:l},t);let{type:x}=g,k=Re(g,ib);if(x=n??x,x in cn)return{type:x,input:k,options:_};let y;return n&&Qp(k)&&"value"in k?y=k.value:y=nb(k)?void 0:k,{type:x,input:y,options:he(he({},_),{},{onChange:d,optional:(r=_.optional)!==null&&r!==void 0?r:!1,disabled:(i=_.disabled)!==null&&i!==void 0?i:!1})}}function ob(s,e,t,n){const r=Jp(s,e),{type:i,input:o,options:a}=r;if(i)return i in cn?r:{type:i,input:qc(i,o,t,n),options:a};let c=vd(o);return c?{type:c,input:qc(c,o,t,n),options:a}:(c=vd({value:o}),c?{type:c,input:qc(c,{value:o},t,n),options:a}:!1)}function Ad(s,e,t,n,r){const{value:i,type:o,settings:a}=s;s.value=e0({type:o,value:i,settings:a},e,t,n),s.fromPanel=r}const ab=function(e,t,n){this.type="LEVA_ERROR",this.message="LEVA: "+e,this.previousValue=t,this.error=n};function e0({type:s,value:e,settings:t},n,r,i){const o=s!=="SELECT"&&typeof n=="function"?n(e):n;let a;try{a=Gv(s,o,t,e,r,i)}catch(c){throw new ab(`The value \`${n}\` did not result in a correct value.`,e,c)}return Vi(a,e)?e:a}const t0=(s,e,t=!1)=>{let n=0;return function(){const r=arguments,i=t&&!n,o=()=>s.apply(this,r);window.clearTimeout(n),n=window.setTimeout(o,e),i&&o()}},n0=s=>s.shiftKey?5:s.altKey?1/5:1;function cb(s,e){const t=console.error;console.error=()=>{},sp.render(s,e),console.error=t}const lb=["value"],ub=["min","max"],hb=s=>{if(typeof s=="number")return!0;if(typeof s=="string"){const e=parseFloat(s);return isNaN(e)?!1:s.substring((""+e).length).trim().length<4}return!1},s0=(s,{min:e=-1/0,max:t=1/0,suffix:n})=>{const r=parseFloat(s);if(s===""||isNaN(r))throw Error("Invalid number");const i=bs(r,e,t);return n?i+n:i},db=(s,{pad:e=0,suffix:t})=>{const n=parseFloat(s).toFixed(e);return t?n+t:n},r0=s=>{let{value:e}=s,t=Re(s,lb);const{min:n=-1/0,max:r=1/0}=t,i=Re(t,ub);let o=parseFloat(e);const a=typeof e=="string"?e.substring((""+o).length):void 0;o=bs(o,n,r);let c=t.step;c||(Number.isFinite(n)?Number.isFinite(r)?c=+(Math.abs(r-n)/100).toPrecision(1):c=+(Math.abs(o-n)/100).toPrecision(1):Number.isFinite(r)&&(c=+(Math.abs(r-o)/100).toPrecision(1)));const l=c?wd(c)*10:wd(o);c=c||l/10;const u=Math.round(bs(Math.log10(1/l),0,2));return{value:a?o+a:o,settings:he({initialValue:o,step:c,pad:u,min:n,max:r,suffix:a},i)}},i0=(s,{step:e,initialValue:t})=>{const n=Math.round((s-t)/e);return t+n*e};var o0=Object.freeze({__proto__:null,schema:hb,sanitize:s0,format:db,normalize:r0,sanitizeStep:i0});function Ke(){return Ke=Object.assign?Object.assign.bind():function(s){for(var e=1;e({colors:{elevation1:"#292d39",elevation2:"#181c20",elevation3:"#373c4b",accent1:"#0066dc",accent2:"#007bff",accent3:"#3c93ff",highlight1:"#535760",highlight2:"#8c92a4",highlight3:"#fefefe",vivid1:"#ffcc00",folderWidgetColor:"$highlight2",folderTextColor:"$highlight3",toolTipBackground:"$highlight3",toolTipText:"$elevation2"},radii:{xs:"2px",sm:"3px",lg:"10px"},space:{xs:"3px",sm:"6px",md:"10px",rowGap:"7px",colGap:"7px"},fonts:{mono:"ui-monospace, SFMono-Regular, Menlo, 'Roboto Mono', monospace",sans:"system-ui, sans-serif"},fontSizes:{root:"11px",toolTip:"$root"},sizes:{rootWidth:"280px",controlWidth:"160px",numberInputMinWidth:"38px",scrubberWidth:"8px",scrubberHeight:"16px",rowHeight:"24px",folderTitleHeight:"20px",checkboxSize:"16px",joystickWidth:"100px",joystickHeight:"100px",colorPickerWidth:"$controlWidth",colorPickerHeight:"100px",imagePreviewWidth:"$controlWidth",imagePreviewHeight:"100px",monitorHeight:"60px",titleBarHeight:"39px"},shadows:{level1:"0 0 9px 0 #00000088",level2:"0 4px 14px #00000033"},borderWidths:{root:"0px",input:"1px",focus:"1px",hover:"1px",active:"1px",folder:"1px"},fontWeights:{label:"normal",folder:"normal",button:"normal"}});function Xo(s,e){const[t,n]=s.split(" "),r={};return t!=="none"&&(r.boxShadow=`${e.inset?"inset ":""}0 0 0 $borderWidths${[e.key]} $colors${t!=="default"&&t||e.borderColor}`),n&&(r.backgroundColor=n),r}const xi={$inputStyle:()=>s=>Xo(s,{key:"$input",borderColor:"$highlight1",inset:!0}),$focusStyle:()=>s=>Xo(s,{key:"$focus",borderColor:"$accent2"}),$hoverStyle:()=>s=>Xo(s,{key:"$hover",borderColor:"$accent1",inset:!0}),$activeStyle:()=>s=>Xo(s,{key:"$active",borderColor:"$accent1",inset:!0})},{styled:ae,css:QD,createTheme:pb,globalCss:mb,keyframes:JD}=$_({prefix:"leva",theme:u0(),utils:he(he({},xi),{},{$flex:()=>({display:"flex",alignItems:"center"}),$flexCenter:()=>({display:"flex",alignItems:"center",justifyContent:"center"}),$reset:()=>({outline:"none",fontSize:"inherit",fontWeight:"inherit",color:"inherit",fontFamily:"inherit",border:"none",backgroundColor:"transparent",appearance:"none"}),$draggable:()=>({touchAction:"none",WebkitUserDrag:"none",userSelect:"none"}),$focus:s=>({"&:focus":xi.$focusStyle()(s)}),$focusWithin:s=>({"&:focus-within":xi.$focusStyle()(s)}),$hover:s=>({"&:hover":xi.$hoverStyle()(s)}),$active:s=>({"&:active":xi.$activeStyle()(s)})})}),gb=mb({".leva__panel__dragged":{WebkitUserDrag:"none",userSelect:"none",input:{userSelect:"none"},"*":{cursor:"ew-resize !important"}}});function _b(s){const e=u0();if(!s)return{theme:e,className:""};Object.keys(s).forEach(n=>{Object.assign(e[n],s[n])});const t=pb(e);return{theme:e,className:t.className}}function Bn(s,e){const{theme:t}=v.useContext(Eu);if(!(s in t)||!(e in t[s]))return Un(We.THEME_ERROR,s,e),"";let n=e;for(;;){let r=t[s][n];if(typeof r=="string"&&r.charAt(0)==="$")n=r.substr(1);else return r}}const h0=ae("input",{$reset:"",padding:"0 $sm",width:0,minWidth:0,flex:1,height:"100%",variants:{levaType:{number:{textAlign:"right"}},as:{textarea:{padding:"$sm"}}}}),d0=ae("div",{$draggable:"",height:"100%",$flexCenter:"",position:"relative",padding:"0 $xs",fontSize:"0.8em",opacity:.8,cursor:"default",touchAction:"none",[`& + ${h0}`]:{paddingLeft:0}}),yb=ae(d0,{cursor:"ew-resize",marginRight:"-$xs",textTransform:"uppercase",opacity:.3,"&:hover":{opacity:1},variants:{dragging:{true:{backgroundColor:"$accent2",opacity:1}}}}),vb=ae("div",{$flex:"",position:"relative",borderRadius:"$sm",overflow:"hidden",color:"inherit",height:"$rowHeight",backgroundColor:"$elevation3",$inputStyle:"$elevation1",$hover:"",$focusWithin:"",variants:{textArea:{true:{height:"auto"}}}}),bb=["innerLabel","value","onUpdate","onChange","onKeyDown","type","id","inputType","rows"],xb=["onUpdate"];function Cu(s){let{innerLabel:e,value:t,onUpdate:n,onChange:r,onKeyDown:i,type:o,id:a,inputType:c="text",rows:l=0}=s,u=Re(s,bb);const{id:h,emitOnEditStart:d,emitOnEditEnd:f,disabled:m}=_t(),p=a||h,g=v.useRef(null),_=l>0,x=_?"textarea":"input",k=v.useCallback(T=>E=>{const w=E.currentTarget.value;T(w)},[]);M.useEffect(()=>{const T=g.current,E=k(w=>{n(w),f()});return T==null||T.addEventListener("blur",E),()=>T==null?void 0:T.removeEventListener("blur",E)},[k,n,f]);const y=v.useCallback(T=>{T.key==="Enter"&&k(n)(T)},[k,n]),b=Object.assign({as:x},_?{rows:l}:{},u);return M.createElement(vb,{textArea:_},e&&typeof e=="string"?M.createElement(d0,null,e):e,M.createElement(h0,Ke({levaType:o,ref:g,id:p,type:c,autoComplete:"off",spellCheck:"false",value:t,onChange:k(r),onFocus:()=>d(),onKeyPress:y,onKeyDown:i,disabled:m},b)))}function wb(s){let{onUpdate:e}=s,t=Re(s,xb);const n=v.useCallback(i=>e(Zv(i)),[e]),r=v.useCallback(i=>{const o=i.key==="ArrowUp"?1:i.key==="ArrowDown"?-1:0;if(o){i.preventDefault();const a=i.altKey?.1:i.shiftKey?10:1;e(c=>parseFloat(c)+o*a)}},[e]);return M.createElement(Cu,Ke({},t,{onUpdate:n,onKeyDown:r,type:"number"}))}const wa=ae("div",{}),wl=ae("div",{position:"relative",background:"$elevation2",transition:"height 300ms ease",variants:{fill:{true:{},false:{}},flat:{false:{},true:{}},isRoot:{true:{},false:{paddingLeft:"$md","&::after":{content:'""',position:"absolute",left:0,top:0,width:"$borderWidths$folder",height:"100%",backgroundColor:"$folderWidgetColor",opacity:.4,transform:"translateX(-50%)"}}}},compoundVariants:[{isRoot:!0,fill:!1,css:{overflowY:"auto",maxHeight:"calc(100vh - 20px - $$titleBarHeight)"}},{isRoot:!0,flat:!1,css:{borderRadius:"$lg"}}]}),kb=ae("div",{$flex:"",color:"$folderTextColor",userSelect:"none",cursor:"pointer",height:"$folderTitleHeight",fontWeight:"$folder","> svg":{marginLeft:-4,marginRight:4,cursor:"pointer",fill:"$folderWidgetColor",opacity:.6},"&:hover > svg":{fill:"$folderWidgetColor"},[`&:hover + ${wl}::after`]:{opacity:.6},[`${wa}:hover > & + ${wl}::after`]:{opacity:.6},[`${wa}:hover > & > svg`]:{opacity:1}}),f0=ae("div",{position:"relative",display:"grid",gridTemplateColumns:"100%",rowGap:"$rowGap",transition:"opacity 250ms ease",variants:{toggled:{true:{opacity:1,transitionDelay:"250ms"},false:{opacity:0,transitionDelay:"0ms",pointerEvents:"none"}},isRoot:{true:{"& > div":{paddingLeft:"$md",paddingRight:"$md"},"& > div:first-of-type":{paddingTop:"$sm"},"& > div:last-of-type":{paddingBottom:"$sm"},[`> ${wa}:not(:first-of-type)`]:{paddingTop:"$sm",marginTop:"$md",borderTop:"$borderWidths$folder solid $colors$elevation1"}}}}}),p0=ae("div",{position:"relative",zIndex:100,display:"grid",rowGap:"$rowGap",gridTemplateRows:"minmax($sizes$rowHeight, max-content)",alignItems:"center",color:"$highlight2",[`${f0} > &`]:{"&:first-of-type":{marginTop:"$rowGap"},"&:last-of-type":{marginBottom:"$rowGap"}},variants:{disabled:{true:{pointerEvents:"none"},false:{"&:hover,&:focus-within":{color:"$highlight3"}}}}}),m0=ae(p0,{gridTemplateColumns:"auto $sizes$controlWidth",columnGap:"$colGap"}),Tb=ae("div",{$flex:"",height:"100%",position:"relative",overflow:"hidden","& > div":{marginLeft:"$colGap",padding:"0 $xs",opacity:.4},"& > div:hover":{opacity:.8},"& > div > svg":{display:"none",cursor:"pointer",width:13,minWidth:13,height:13,backgroundColor:"$elevation2"},"&:hover > div > svg":{display:"block"},variants:{align:{top:{height:"100%",alignItems:"flex-start",paddingTop:"$sm"}}}}),Eb=ae("input",{$reset:"",height:0,width:0,opacity:0,margin:0,"& + label":{position:"relative",$flexCenter:"",height:"100%",userSelect:"none",cursor:"pointer",paddingLeft:2,paddingRight:"$sm",pointerEvents:"auto"},"& + label:after":{content:'""',width:6,height:6,backgroundColor:"$elevation3",borderRadius:"50%",$activeStyle:""},"&:focus + label:after":{$focusStyle:""},"& + label:active:after":{backgroundColor:"$accent1",$focusStyle:""},"&:checked + label:after":{backgroundColor:"$accent1"}}),kl=ae("label",{fontWeight:"$label",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap","& > svg":{display:"block"}}),Cb=ae("div",{opacity:1,variants:{disabled:{true:{opacity:.6,pointerEvents:"none",[`& ${kl}`]:{pointerEvents:"auto"}}}}}),g0=ae("div",{position:"fixed",top:0,bottom:0,right:0,left:0,zIndex:1e3,userSelect:"none"}),Sb=ae("div",{background:"$toolTipBackground",fontFamily:"$sans",fontSize:"$toolTip",padding:"$xs $sm",color:"$toolTipText",borderRadius:"$xs",boxShadow:"$level2",maxWidth:260}),Ob=ae(zv,{fill:"$toolTipBackground"});function Su({children:s}){const{className:e}=v.useContext(Eu);return M.createElement(M1,{className:e},s)}const Ab=["align"];function Rb(){const{id:s,disable:e,disabled:t}=_t();return M.createElement(M.Fragment,null,M.createElement(Eb,{id:s+"__disable",type:"checkbox",checked:!t,onChange:()=>e(!t)}),M.createElement("label",{htmlFor:s+"__disable"}))}function Pb(s){const{id:e,optional:t,hint:n}=_t(),r=s.htmlFor||(e?{htmlFor:e}:null),i=!n&&typeof s.children=="string"?{title:s.children}:null;return M.createElement(M.Fragment,null,t&&M.createElement(Rb,null),n!==void 0?M.createElement(Lv,null,M.createElement(jv,{asChild:!0},M.createElement(kl,Ke({},r,s))),M.createElement(Vv,{side:"top",sideOffset:2},M.createElement(Sb,null,n,M.createElement(Ob,null)))):M.createElement(kl,Ke({},r,i,s)))}function pn(s){let{align:e}=s,t=Re(s,Ab);const{value:n,label:r,key:i,disabled:o}=_t(),{hideCopyButton:a}=fb(),c=!a&&i!==void 0,[l,u]=v.useState(!1),h=async()=>{try{await navigator.clipboard.writeText(JSON.stringify({[i]:n??""})),u(!0)}catch{Un(We.CLIPBOARD_ERROR,{[i]:n})}};return M.createElement(Tb,{align:e,onPointerLeave:()=>u(!1)},M.createElement(Pb,t),c&&!o&&M.createElement("div",{title:`Click to copy ${typeof r=="string"?r:i} value`},l?M.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},M.createElement("path",{d:"M9 2a1 1 0 000 2h2a1 1 0 100-2H9z"}),M.createElement("path",{fillRule:"evenodd",d:"M4 5a2 2 0 012-2 3 3 0 003 3h2a3 3 0 003-3 2 2 0 012 2v11a2 2 0 01-2 2H6a2 2 0 01-2-2V5zm9.707 5.707a1 1 0 00-1.414-1.414L9 12.586l-1.293-1.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"})):M.createElement("svg",{onClick:h,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},M.createElement("path",{d:"M8 3a1 1 0 011-1h2a1 1 0 110 2H9a1 1 0 01-1-1z"}),M.createElement("path",{d:"M6 3a2 2 0 00-2 2v11a2 2 0 002 2h8a2 2 0 002-2V5a2 2 0 00-2-2 3 3 0 01-3 3H9a3 3 0 01-3-3z"}))))}const Db=["toggled"],Mb=ae("svg",{fill:"currentColor",transition:"transform 350ms ease, fill 250ms ease"});function Ou(s){let{toggled:e}=s,t=Re(s,Db);return M.createElement(Mb,Ke({width:"9",height:"5",viewBox:"0 0 9 5",xmlns:"http://www.w3.org/2000/svg",style:{transform:`rotate(${e?0:-90}deg)`}},t),M.createElement("path",{d:"M3.8 4.4c.4.3 1 .3 1.4 0L8 1.7A1 1 0 007.4 0H1.6a1 1 0 00-.7 1.7l3 2.7z"}))}const Ib=["input"];function tn(s){let{input:e}=s,t=Re(s,Ib);return e?M.createElement(m0,t):M.createElement(p0,t)}function _0({value:s,type:e,settings:t,setValue:n}){const[r,i]=v.useState(bd(e,s,t)),o=v.useRef(s),a=v.useRef(t);a.current=t;const c=v.useCallback(u=>i(bd(e,u,a.current)),[e]),l=v.useCallback(u=>{try{n(u)}catch(h){const{type:d,previousValue:f}=h;if(d!=="LEVA_ERROR")throw h;c(f)}},[c,n]);return v.useEffect(()=>{Vi(s,o.current)||c(s),o.current=s},[s,c]),{displayValue:r,onChange:i,onUpdate:l}}function ko(s,e){const{emitOnEditStart:t,emitOnEditEnd:n}=_t();return F_(r=>{r.first&&(document.body.classList.add("leva__panel__dragged"),t==null||t());const i=s(r);return r.last&&(document.body.classList.remove("leva__panel__dragged"),n==null||n()),i},e)}function Nb(s){const e=v.useRef(null),t=v.useRef(null),n=v.useRef(!1);return v.useEffect(()=>{const r=t0(()=>{e.current.width=e.current.offsetWidth*window.devicePixelRatio,e.current.height=e.current.offsetHeight*window.devicePixelRatio,s(e.current,t.current)},250);return window.addEventListener("resize",r),n.current||(r(),n.current=!0),()=>window.removeEventListener("resize",r)},[s]),v.useEffect(()=>{t.current=e.current.getContext("2d")},[]),[e,t]}function y0(){const s=v.useRef(null),e=v.useRef({x:0,y:0}),t=v.useCallback(n=>{Object.assign(e.current,n),s.current&&(s.current.style.transform=`translate3d(${e.current.x}px, ${e.current.y}px, 0)`)},[]);return[s,t]}const $b=["__refCount"],Hc=(s,e)=>{if(!s[e])return null;const t=s[e];return Re(t,$b)};function Fb(s){const e=wo(),[t,n]=v.useState(Hc(e.getData(),s)),r=v.useCallback(l=>e.setValueAtPath(s,l,!0),[s,e]),i=v.useCallback(l=>e.setSettingsAtPath(s,l),[s,e]),o=v.useCallback(l=>e.disableInputAtPath(s,l),[s,e]),a=v.useCallback(()=>e.emitOnEditStart(s),[s,e]),c=v.useCallback(()=>e.emitOnEditEnd(s),[s,e]);return v.useEffect(()=>{n(Hc(e.getData(),s));const l=e.useStore.subscribe(u=>Hc(u.data,s),n,{equalityFn:xo});return()=>l()},[e,s]),[t,{set:r,setSettings:i,disable:o,storeId:e.storeId,emitOnEditStart:a,emitOnEditEnd:c}]}const Lb=ae("div",{variants:{hasRange:{true:{position:"relative",display:"grid",gridTemplateColumns:"auto $sizes$numberInputMinWidth",columnGap:"$colGap",alignItems:"center"}}}}),v0=ae("div",{position:"relative",width:"100%",height:2,borderRadius:"$xs",backgroundColor:"$elevation1"}),Tl=ae("div",{position:"absolute",width:"$scrubberWidth",height:"$scrubberHeight",borderRadius:"$xs",boxShadow:"0 0 0 2px $colors$elevation2",backgroundColor:"$accent2",cursor:"pointer",$active:"none $accent1",$hover:"none $accent3",variants:{position:{left:{borderTopRightRadius:0,borderBottomRightRadius:0,transform:"translateX(calc(-0.5 * ($sizes$scrubberWidth + 4px)))"},right:{borderTopLeftRadius:0,borderBottomLeftRadius:0,transform:"translateX(calc(0.5 * ($sizes$scrubberWidth + 4px)))"}}}}),b0=ae("div",{position:"relative",$flex:"",height:"100%",cursor:"pointer",touchAction:"none"}),x0=ae("div",{position:"absolute",height:"100%",backgroundColor:"$accent2"});function jb({value:s,min:e,max:t,onDrag:n,step:r,initialValue:i}){const o=v.useRef(null),a=v.useRef(null),c=v.useRef(0),l=Bn("sizes","scrubberWidth"),u=ko(({event:d,first:f,xy:[m],movement:[p],memo:g})=>{if(f){const{width:x,left:k}=o.current.getBoundingClientRect();c.current=x-parseFloat(l),g=(d==null?void 0:d.target)===a.current?s:xa((m-k)/x,e,t)}const _=g+xa(p/c.current,0,t-e);return n(i0(_,{step:r,initialValue:i})),g}),h=ba(s,e,t);return M.createElement(b0,Ke({ref:o},u()),M.createElement(v0,null,M.createElement(x0,{style:{left:0,right:`${(1-h)*100}%`}})),M.createElement(Tl,{ref:a,style:{left:`calc(${h} * (100% - ${l}))`}}))}const Vb=M.memo(({label:s,onUpdate:e,step:t,innerLabelTrim:n})=>{const[r,i]=v.useState(!1),o=ko(({active:a,delta:[c],event:l,memo:u=0})=>(i(a),u+=c/2,Math.abs(u)>=1&&(e(h=>parseFloat(h)+Math.floor(u)*t*n0(l)),u=0),u));return M.createElement(yb,Ke({dragging:r,title:s.length>1?s:""},o()),s.slice(0,n))});function w0({label:s,id:e,displayValue:t,onUpdate:n,onChange:r,settings:i,innerLabelTrim:o=1}){const a=o>0&&M.createElement(Vb,{label:s,step:i.step,onUpdate:n,innerLabelTrim:o});return M.createElement(wb,{id:e,value:String(t),onUpdate:n,onChange:r,innerLabel:a})}function zb(){const s=_t(),{label:e,value:t,onUpdate:n,settings:r,id:i}=s,{min:o,max:a}=r,c=a!==1/0&&o!==-1/0;return M.createElement(tn,{input:!0},M.createElement(pn,null,e),M.createElement(Lb,{hasRange:c},c&&M.createElement(jb,Ke({value:parseFloat(t),onDrag:n},r)),M.createElement(w0,Ke({},s,{id:i,label:"value",innerLabelTrim:c?0:1}))))}const{sanitizeStep:Ub}=o0,Bb=Re(o0,["sanitizeStep"]);var Wb=he({component:zb},Bb);const qb=(s,e)=>St().schema({options:St().passesAnyOf(St().object(),St().array())}).test(e),Hb=(s,{values:e})=>{if(e.indexOf(s)<0)throw Error("Selected value doesn't match Select options");return s},Yb=(s,{values:e})=>e.indexOf(s),Gb=s=>{let{value:e,options:t}=s,n,r;return Array.isArray(t)?(r=t,n=t.map(i=>String(i))):(r=Object.values(t),n=Object.keys(t)),"value"in s?r.includes(e)||(n.unshift(String(e)),r.unshift(e)):e=r[0],Object.values(t).includes(e)||(t[String(e)]=e),{value:e,settings:{keys:n,values:r}}};var Xb=Object.freeze({__proto__:null,schema:qb,sanitize:Hb,format:Yb,normalize:Gb});const Zb=ae("div",{$flexCenter:"",position:"relative","> svg":{pointerEvents:"none",position:"absolute",right:"$md"}}),El=ae("select",{position:"absolute",top:0,left:0,width:"100%",height:"100%",opacity:0}),Kb=ae("div",{display:"flex",alignItems:"center",width:"100%",height:"$rowHeight",backgroundColor:"$elevation3",borderRadius:"$sm",padding:"0 $sm",cursor:"pointer",[`${El}:focus + &`]:{$focusStyle:""},[`${El}:hover + &`]:{$hoverStyle:""}});function Qb({displayValue:s,value:e,onUpdate:t,id:n,settings:r,disabled:i}){const{keys:o,values:a}=r,c=v.useRef();return e===a[s]&&(c.current=o[s]),M.createElement(Zb,null,M.createElement(El,{id:n,value:s,onChange:l=>t(a[Number(l.currentTarget.value)]),disabled:i},o.map((l,u)=>M.createElement("option",{key:l,value:u},l))),M.createElement(Kb,null,c.current),M.createElement(Ou,{toggled:!0}))}function Jb(){const{label:s,value:e,displayValue:t,onUpdate:n,id:r,disabled:i,settings:o}=_t();return M.createElement(tn,{input:!0},M.createElement(pn,null,s),M.createElement(Qb,{id:r,value:e,displayValue:t,onUpdate:n,settings:o,disabled:i}))}var ex=he({component:Jb},Xb);const tx=s=>St().string().test(s),nx=s=>{if(typeof s!="string")throw Error("Invalid string");return s},sx=({value:s,editable:e=!0,rows:t=!1})=>({value:s,settings:{editable:e,rows:typeof t=="number"?t:t?5:0}});var rx=Object.freeze({__proto__:null,schema:tx,sanitize:nx,normalize:sx});const ix=["displayValue","onUpdate","onChange","editable"],ox=ae("div",{whiteSpace:"pre-wrap"});function ax(s){let{displayValue:e,onUpdate:t,onChange:n,editable:r=!0}=s,i=Re(s,ix);return r?M.createElement(Cu,Ke({value:e,onUpdate:t,onChange:n},i)):M.createElement(ox,null,e)}function cx(){const{label:s,settings:e,displayValue:t,onUpdate:n,onChange:r}=_t();return M.createElement(tn,{input:!0},M.createElement(pn,null,s),M.createElement(ax,Ke({displayValue:t,onUpdate:n,onChange:r},e)))}var lx=he({component:cx},rx);const ux=s=>St().boolean().test(s),hx=s=>{if(typeof s!="boolean")throw Error("Invalid boolean");return s};var dx=Object.freeze({__proto__:null,schema:ux,sanitize:hx});const fx=ae("div",{position:"relative",$flex:"",height:"$rowHeight",input:{$reset:"",height:0,width:0,opacity:0,margin:0},label:{position:"relative",$flexCenter:"",userSelect:"none",cursor:"pointer",height:"$checkboxSize",width:"$checkboxSize",backgroundColor:"$elevation3",borderRadius:"$sm",$hover:""},"input:focus + label":{$focusStyle:""},"input:focus:checked + label, input:checked + label:hover":{$hoverStyle:"$accent3"},"input + label:active":{backgroundColor:"$accent1"},"input:checked + label:active":{backgroundColor:"$accent1"},"label > svg":{display:"none",width:"90%",height:"90%",stroke:"$highlight3"},"input:checked + label":{backgroundColor:"$accent2"},"input:checked + label > svg":{display:"block"}});function px({value:s,onUpdate:e,id:t,disabled:n}){return M.createElement(fx,null,M.createElement("input",{id:t,type:"checkbox",checked:s,onChange:r=>e(r.currentTarget.checked),disabled:n}),M.createElement("label",{htmlFor:t},M.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},M.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"}))))}function mx(){const{label:s,value:e,onUpdate:t,disabled:n,id:r}=_t();return M.createElement(tn,{input:!0},M.createElement(pn,null,s),M.createElement(px,{value:e,onUpdate:t,id:r,disabled:n}))}var gx=he({component:mx},dx);const _x=["locked"];function yx({value:s,id:e,valueKey:t,settings:n,onUpdate:r,innerLabelTrim:i}){const o=v.useRef(s[t]);o.current=s[t];const a=v.useCallback(l=>r({[t]:e0({type:"NUMBER",value:o.current,settings:n},l)}),[r,n,t]),c=_0({type:"NUMBER",value:s[t],settings:n,setValue:a});return M.createElement(w0,{id:e,label:t,value:s[t],displayValue:c.displayValue,onUpdate:c.onUpdate,onChange:c.onChange,settings:n,innerLabelTrim:i})}const vx=ae("div",{display:"grid",columnGap:"$colGap",gridAutoFlow:"column dense",alignItems:"center",variants:{withLock:{true:{gridTemplateColumns:"10px auto","> svg":{cursor:"pointer"}}}}});function bx(s){let{locked:e}=s,t=Re(s,_x);return M.createElement("svg",Ke({width:"10",height:"10",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e?M.createElement("path",{d:"M5 4.63601C5 3.76031 5.24219 3.1054 5.64323 2.67357C6.03934 2.24705 6.64582 1.9783 7.5014 1.9783C8.35745 1.9783 8.96306 2.24652 9.35823 2.67208C9.75838 3.10299 10 3.75708 10 4.63325V5.99999H5V4.63601ZM4 5.99999V4.63601C4 3.58148 4.29339 2.65754 4.91049 1.99307C5.53252 1.32329 6.42675 0.978302 7.5014 0.978302C8.57583 0.978302 9.46952 1.32233 10.091 1.99162C10.7076 2.65557 11 3.57896 11 4.63325V5.99999H12C12.5523 5.99999 13 6.44771 13 6.99999V13C13 13.5523 12.5523 14 12 14H3C2.44772 14 2 13.5523 2 13V6.99999C2 6.44771 2.44772 5.99999 3 5.99999H4ZM3 6.99999H12V13H3V6.99999Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}):M.createElement("path",{d:"M9 3.63601C9 2.76044 9.24207 2.11211 9.64154 1.68623C10.0366 1.26502 10.6432 1 11.5014 1C12.4485 1 13.0839 1.30552 13.4722 1.80636C13.8031 2.23312 14 2.84313 14 3.63325H15C15 2.68242 14.7626 1.83856 14.2625 1.19361C13.6389 0.38943 12.6743 0 11.5014 0C10.4294 0 9.53523 0.337871 8.91218 1.0021C8.29351 1.66167 8 2.58135 8 3.63601V6H1C0.447715 6 0 6.44772 0 7V13C0 13.5523 0.447715 14 1 14H10C10.5523 14 11 13.5523 11 13V7C11 6.44772 10.5523 6 10 6H9V3.63601ZM1 7H10V13H1V7Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}))}function Au({value:s,onUpdate:e,settings:t,innerLabelTrim:n}){const{id:r,setSettings:i}=_t(),{lock:o,locked:a}=t;return M.createElement(vx,{withLock:o},o&&M.createElement(bx,{locked:a,onClick:()=>i({locked:!a})}),Object.keys(s).map((c,l)=>M.createElement(yx,{id:l===0?r:`${r}.${c}`,key:c,valueKey:c,value:s,settings:t[c],onUpdate:e,innerLabelTrim:n})))}const k0=(s,e)=>{const t={};let n=0,r=1/0;Object.entries(s).forEach(([i,o])=>{t[i]=r0(he({value:o},e[i])).settings,n=Math.max(n,t[i].step),r=Math.min(r,t[i].pad)});for(let i in t){const{step:o,min:a,max:c}=e[i]||{};!isFinite(o)&&(!isFinite(a)||!isFinite(c))&&(t[i].step=n,t[i].pad=r)}return t},xx=["lock"],wx=["value"];function kx(s){const e=St().array().length(s).every.number(),t=n=>{if(!n||typeof n!="object")return!1;const r=Object.values(n);return r.length===s&&r.every(i=>isFinite(i))};return n=>e.test(n)||t(n)}function Tx(s){return Array.isArray(s)?"array":"object"}function Ri(s,e,t){return Tx(s)===e?s:e==="array"?Object.values(s):tb(s,t)}const Ex=(s,e,t)=>{const n=Ri(s,"object",e.keys);for(let o in n)n[o]=s0(n[o],e[o]);const r=Object.keys(n);let i={};if(r.length===e.keys.length)i=n;else{const o=Ri(t,"object",e.keys);if(r.length===1&&e.locked){const a=r[0],c=n[a],l=o[a],u=l!==0?c/l:1;for(let h in o)h===a?i[a]=c:i[h]=o[h]*u}else i=he(he({},o),n)}return Ri(i,e.format,e.keys)},Cx=(s,e)=>Ri(s,"object",e.keys),Sx=s=>!!s&&("step"in s||"min"in s||"max"in s);function Ox(s,e,t=[]){const{lock:n=!1}=e,r=Re(e,xx),i=Array.isArray(s)?"array":"object",o=i==="object"?Object.keys(s):t,a=Ri(s,"object",o),c=Sx(r)?o.reduce((u,h)=>Object.assign(u,{[h]:r}),{}):r,l=k0(a,c);return{value:i==="array"?s:a,settings:he(he({},l),{},{format:i,keys:o,lock:n,locked:!1})}}function T0(s){return{schema:kx(s.length),normalize:e=>{let{value:t}=e,n=Re(e,wx);return Ox(t,n,s)},format:(e,t)=>Cx(e,t),sanitize:(e,t,n)=>Ex(e,t,n)}}var Ax={grad:.9,turn:360,rad:360/(2*Math.PI)},$n=function(s){return typeof s=="string"?s.length>0:typeof s=="number"},ct=function(s,e,t){return e===void 0&&(e=0),t===void 0&&(t=Math.pow(10,e)),Math.round(t*s)/t+0},Yt=function(s,e,t){return e===void 0&&(e=0),t===void 0&&(t=1),s>t?t:s>e?s:e},E0=function(s){return(s=isFinite(s)?s%360:0)>0?s:s+360},Rd=function(s){return{r:Yt(s.r,0,255),g:Yt(s.g,0,255),b:Yt(s.b,0,255),a:Yt(s.a)}},Yc=function(s){return{r:ct(s.r),g:ct(s.g),b:ct(s.b),a:ct(s.a,3)}},Rx=/^#([0-9a-f]{3,8})$/i,Zo=function(s){var e=s.toString(16);return e.length<2?"0"+e:e},C0=function(s){var e=s.r,t=s.g,n=s.b,r=s.a,i=Math.max(e,t,n),o=i-Math.min(e,t,n),a=o?i===e?(t-n)/o:i===t?2+(n-e)/o:4+(e-t)/o:0;return{h:60*(a<0?a+6:a),s:i?o/i*100:0,v:i/255*100,a:r}},S0=function(s){var e=s.h,t=s.s,n=s.v,r=s.a;e=e/360*6,t/=100,n/=100;var i=Math.floor(e),o=n*(1-t),a=n*(1-(e-i)*t),c=n*(1-(1-e+i)*t),l=i%6;return{r:255*[n,a,o,o,c,n][l],g:255*[c,n,n,a,o,o][l],b:255*[o,o,c,n,n,a][l],a:r}},Pd=function(s){return{h:E0(s.h),s:Yt(s.s,0,100),l:Yt(s.l,0,100),a:Yt(s.a)}},Dd=function(s){return{h:ct(s.h),s:ct(s.s),l:ct(s.l),a:ct(s.a,3)}},Md=function(s){return S0((t=(e=s).s,{h:e.h,s:(t*=((n=e.l)<50?n:100-n)/100)>0?2*t/(n+t)*100:0,v:n+t,a:e.a}));var e,t,n},Pi=function(s){return{h:(e=C0(s)).h,s:(r=(200-(t=e.s))*(n=e.v)/100)>0&&r<200?t*n/100/(r<=100?r:200-r)*100:0,l:r/2,a:e.a};var e,t,n,r},Px=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Dx=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Mx=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Ix=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Cl={string:[[function(s){var e=Rx.exec(s);return e?(s=e[1]).length<=4?{r:parseInt(s[0]+s[0],16),g:parseInt(s[1]+s[1],16),b:parseInt(s[2]+s[2],16),a:s.length===4?ct(parseInt(s[3]+s[3],16)/255,2):1}:s.length===6||s.length===8?{r:parseInt(s.substr(0,2),16),g:parseInt(s.substr(2,2),16),b:parseInt(s.substr(4,2),16),a:s.length===8?ct(parseInt(s.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(s){var e=Mx.exec(s)||Ix.exec(s);return e?e[2]!==e[4]||e[4]!==e[6]?null:Rd({r:Number(e[1])/(e[2]?100/255:1),g:Number(e[3])/(e[4]?100/255:1),b:Number(e[5])/(e[6]?100/255:1),a:e[7]===void 0?1:Number(e[7])/(e[8]?100:1)}):null},"rgb"],[function(s){var e=Px.exec(s)||Dx.exec(s);if(!e)return null;var t,n,r=Pd({h:(t=e[1],n=e[2],n===void 0&&(n="deg"),Number(t)*(Ax[n]||1)),s:Number(e[3]),l:Number(e[4]),a:e[5]===void 0?1:Number(e[5])/(e[6]?100:1)});return Md(r)},"hsl"]],object:[[function(s){var e=s.r,t=s.g,n=s.b,r=s.a,i=r===void 0?1:r;return $n(e)&&$n(t)&&$n(n)?Rd({r:Number(e),g:Number(t),b:Number(n),a:Number(i)}):null},"rgb"],[function(s){var e=s.h,t=s.s,n=s.l,r=s.a,i=r===void 0?1:r;if(!$n(e)||!$n(t)||!$n(n))return null;var o=Pd({h:Number(e),s:Number(t),l:Number(n),a:Number(i)});return Md(o)},"hsl"],[function(s){var e=s.h,t=s.s,n=s.v,r=s.a,i=r===void 0?1:r;if(!$n(e)||!$n(t)||!$n(n))return null;var o=function(a){return{h:E0(a.h),s:Yt(a.s,0,100),v:Yt(a.v,0,100),a:Yt(a.a)}}({h:Number(e),s:Number(t),v:Number(n),a:Number(i)});return S0(o)},"hsv"]]},Id=function(s,e){for(var t=0;t=.5},s.prototype.toHex=function(){return e=Yc(this.rgba),t=e.r,n=e.g,r=e.b,o=(i=e.a)<1?Zo(ct(255*i)):"","#"+Zo(t)+Zo(n)+Zo(r)+o;var e,t,n,r,i,o},s.prototype.toRgb=function(){return Yc(this.rgba)},s.prototype.toRgbString=function(){return e=Yc(this.rgba),t=e.r,n=e.g,r=e.b,(i=e.a)<1?"rgba("+t+", "+n+", "+r+", "+i+")":"rgb("+t+", "+n+", "+r+")";var e,t,n,r,i},s.prototype.toHsl=function(){return Dd(Pi(this.rgba))},s.prototype.toHslString=function(){return e=Dd(Pi(this.rgba)),t=e.h,n=e.s,r=e.l,(i=e.a)<1?"hsla("+t+", "+n+"%, "+r+"%, "+i+")":"hsl("+t+", "+n+"%, "+r+"%)";var e,t,n,r,i},s.prototype.toHsv=function(){return e=C0(this.rgba),{h:ct(e.h),s:ct(e.s),v:ct(e.v),a:ct(e.a,3)};var e},s.prototype.invert=function(){return vt({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},s.prototype.saturate=function(e){return e===void 0&&(e=.1),vt(Gc(this.rgba,e))},s.prototype.desaturate=function(e){return e===void 0&&(e=.1),vt(Gc(this.rgba,-e))},s.prototype.grayscale=function(){return vt(Gc(this.rgba,-1))},s.prototype.lighten=function(e){return e===void 0&&(e=.1),vt(Nd(this.rgba,e))},s.prototype.darken=function(e){return e===void 0&&(e=.1),vt(Nd(this.rgba,-e))},s.prototype.rotate=function(e){return e===void 0&&(e=15),this.hue(this.hue()+e)},s.prototype.alpha=function(e){return typeof e=="number"?vt({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):ct(this.rgba.a,3);var t},s.prototype.hue=function(e){var t=Pi(this.rgba);return typeof e=="number"?vt({h:e,s:t.s,l:t.l,a:t.a}):ct(t.h)},s.prototype.isEqual=function(e){return this.toHex()===vt(e).toHex()},s}(),vt=function(s){return s instanceof Sl?s:new Sl(s)},$d=[],$x=function(s){s.forEach(function(e){$d.indexOf(e)<0&&(e(Sl,Cl),$d.push(e))})};function Fx(s,e){var t={white:"#ffffff",bisque:"#ffe4c4",blue:"#0000ff",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",antiquewhite:"#faebd7",aqua:"#00ffff",azure:"#f0ffff",whitesmoke:"#f5f5f5",papayawhip:"#ffefd5",plum:"#dda0dd",blanchedalmond:"#ffebcd",black:"#000000",gold:"#ffd700",goldenrod:"#daa520",gainsboro:"#dcdcdc",cornsilk:"#fff8dc",cornflowerblue:"#6495ed",burlywood:"#deb887",aquamarine:"#7fffd4",beige:"#f5f5dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkkhaki:"#bdb76b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",peachpuff:"#ffdab9",darkmagenta:"#8b008b",darkred:"#8b0000",darkorchid:"#9932cc",darkorange:"#ff8c00",darkslateblue:"#483d8b",gray:"#808080",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",deeppink:"#ff1493",deepskyblue:"#00bfff",wheat:"#f5deb3",firebrick:"#b22222",floralwhite:"#fffaf0",ghostwhite:"#f8f8ff",darkviolet:"#9400d3",magenta:"#ff00ff",green:"#008000",dodgerblue:"#1e90ff",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",blueviolet:"#8a2be2",forestgreen:"#228b22",lawngreen:"#7cfc00",indianred:"#cd5c5c",indigo:"#4b0082",fuchsia:"#ff00ff",brown:"#a52a2a",maroon:"#800000",mediumblue:"#0000cd",lightcoral:"#f08080",darkturquoise:"#00ced1",lightcyan:"#e0ffff",ivory:"#fffff0",lightyellow:"#ffffe0",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",linen:"#faf0e6",mediumaquamarine:"#66cdaa",lemonchiffon:"#fffacd",lime:"#00ff00",khaki:"#f0e68c",mediumseagreen:"#3cb371",limegreen:"#32cd32",mediumspringgreen:"#00fa9a",lightskyblue:"#87cefa",lightblue:"#add8e6",midnightblue:"#191970",lightpink:"#ffb6c1",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",mintcream:"#f5fffa",lightslategray:"#778899",lightslategrey:"#778899",navajowhite:"#ffdead",navy:"#000080",mediumvioletred:"#c71585",powderblue:"#b0e0e6",palegoldenrod:"#eee8aa",oldlace:"#fdf5e6",paleturquoise:"#afeeee",mediumturquoise:"#48d1cc",mediumorchid:"#ba55d3",rebeccapurple:"#663399",lightsteelblue:"#b0c4de",mediumslateblue:"#7b68ee",thistle:"#d8bfd8",tan:"#d2b48c",orchid:"#da70d6",mediumpurple:"#9370db",purple:"#800080",pink:"#ffc0cb",skyblue:"#87ceeb",springgreen:"#00ff7f",palegreen:"#98fb98",red:"#ff0000",yellow:"#ffff00",slateblue:"#6a5acd",lavenderblush:"#fff0f5",peru:"#cd853f",palevioletred:"#db7093",violet:"#ee82ee",teal:"#008080",slategray:"#708090",slategrey:"#708090",aliceblue:"#f0f8ff",darkseagreen:"#8fbc8f",darkolivegreen:"#556b2f",greenyellow:"#adff2f",seagreen:"#2e8b57",seashell:"#fff5ee",tomato:"#ff6347",silver:"#c0c0c0",sienna:"#a0522d",lavender:"#e6e6fa",lightgreen:"#90ee90",orange:"#ffa500",orangered:"#ff4500",steelblue:"#4682b4",royalblue:"#4169e1",turquoise:"#40e0d0",yellowgreen:"#9acd32",salmon:"#fa8072",saddlebrown:"#8b4513",sandybrown:"#f4a460",rosybrown:"#bc8f8f",darksalmon:"#e9967a",lightgoldenrodyellow:"#fafad2",snow:"#fffafa",lightgrey:"#d3d3d3",lightgray:"#d3d3d3",dimgray:"#696969",dimgrey:"#696969",olivedrab:"#6b8e23",olive:"#808000"},n={};for(var r in t)n[t[r]]=r;var i={};s.prototype.toName=function(o){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var a,c,l=n[this.toHex()];if(l)return l;if(o!=null&&o.closest){var u=this.toRgb(),h=1/0,d="black";if(!i.length)for(var f in t)i[f]=new s(t[f]).toRgb();for(var m in t){var p=(a=u,c=i[m],Math.pow(a.r-c.r,2)+Math.pow(a.g-c.g,2)+Math.pow(a.b-c.b,2));p=0||(r[t]=s[t]);return r}function Ol(s){var e=v.useRef(s),t=v.useRef(function(n){e.current&&e.current(n)});return e.current=s,t.current}var Lr=function(s,e,t){return e===void 0&&(e=0),t===void 0&&(t=1),s>t?t:s0:g.buttons>0)&&r.current?i(Fd(r.current,g,a.current)):p(!1)},m=function(){return p(!1)};function p(g){var _=c.current,x=Al(r.current),k=g?x.addEventListener:x.removeEventListener;k(_?"touchmove":"mousemove",f),k(_?"touchend":"mouseup",m)}return[function(g){var _=g.nativeEvent,x=r.current;if(x&&(Ld(_),!function(y,b){return b&&!Di(y)}(_,c.current)&&x)){if(Di(_)){c.current=!0;var k=_.changedTouches||[];k.length&&(a.current=k[0].identifier)}x.focus(),i(Fd(x,_,a.current)),p(!0)}},function(g){var _=g.which||g.keyCode;_<37||_>40||(g.preventDefault(),o({left:_===39?.05:_===37?-.05:0,top:_===40?.05:_===38?-.05:0}))},p]},[o,i]),u=l[0],h=l[1],d=l[2];return v.useEffect(function(){return d},[d]),M.createElement("div",ti({},n,{onTouchStart:u,onMouseDown:u,className:"react-colorful__interactive",ref:r,onKeyDown:h,tabIndex:0,role:"slider"}))}),To=function(s){return s.filter(Boolean).join(" ")},Du=function(s){var e=s.color,t=s.left,n=s.top,r=n===void 0?.5:n,i=To(["react-colorful__pointer",s.className]);return M.createElement("div",{className:i,style:{top:100*r+"%",left:100*t+"%"}},M.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:e}}))},wt=function(s,e,t){return e===void 0&&(e=0),t===void 0&&(t=Math.pow(10,e)),Math.round(t*s)/t},A0=function(s){var e=s.s,t=s.v,n=s.a,r=(200-e)*t/100;return{h:wt(s.h),s:wt(r>0&&r<200?e*t/100/(r<=100?r:200-r)*100:0),l:wt(r/2),a:wt(n,2)}},Rl=function(s){var e=A0(s);return"hsl("+e.h+", "+e.s+"%, "+e.l+"%)"},Zc=function(s){var e=A0(s);return"hsla("+e.h+", "+e.s+"%, "+e.l+"%, "+e.a+")"},R0=function(s){var e=s.h,t=s.s,n=s.v,r=s.a;e=e/360*6,t/=100,n/=100;var i=Math.floor(e),o=n*(1-t),a=n*(1-(e-i)*t),c=n*(1-(1-e+i)*t),l=i%6;return{r:wt(255*[n,a,o,o,c,n][l]),g:wt(255*[c,n,n,a,o,o][l]),b:wt(255*[o,o,c,n,n,a][l]),a:wt(r,2)}},P0=function(s){var e=s.r,t=s.g,n=s.b,r=s.a,i=Math.max(e,t,n),o=i-Math.min(e,t,n),a=o?i===e?(t-n)/o:i===t?2+(n-e)/o:4+(e-t)/o:0;return{h:wt(60*(a<0?a+6:a)),s:wt(i?o/i*100:0),v:wt(i/255*100),a:r}},D0=M.memo(function(s){var e=s.hue,t=s.onChange,n=To(["react-colorful__hue",s.className]);return M.createElement("div",{className:n},M.createElement(Pu,{onMove:function(r){t({h:360*r.left})},onKey:function(r){t({h:Lr(e+360*r.left,0,360)})},"aria-label":"Hue","aria-valuenow":wt(e),"aria-valuemax":"360","aria-valuemin":"0"},M.createElement(Du,{className:"react-colorful__hue-pointer",left:e/360,color:Rl({h:e,s:100,v:100,a:1})})))}),M0=M.memo(function(s){var e=s.hsva,t=s.onChange,n={backgroundColor:Rl({h:e.h,s:100,v:100,a:1})};return M.createElement("div",{className:"react-colorful__saturation",style:n},M.createElement(Pu,{onMove:function(r){t({s:100*r.left,v:100-100*r.top})},onKey:function(r){t({s:Lr(e.s+100*r.left,0,100),v:Lr(e.v-100*r.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+wt(e.s)+"%, Brightness "+wt(e.v)+"%"},M.createElement(Du,{className:"react-colorful__saturation-pointer",top:1-e.v/100,left:e.s/100,color:Rl(e)})))}),Mu=function(s,e){if(s===e)return!0;for(var t in s)if(s[t]!==e[t])return!1;return!0};function I0(s,e,t){var n=Ol(t),r=v.useState(function(){return s.toHsva(e)}),i=r[0],o=r[1],a=v.useRef({color:e,hsva:i});v.useEffect(function(){if(!s.equal(e,a.current.color)){var l=s.toHsva(e);a.current={hsva:l,color:e},o(l)}},[e,s]),v.useEffect(function(){var l;Mu(i,a.current.hsva)||s.equal(l=s.fromHsva(i),a.current.color)||(a.current={hsva:i,color:l},n(l))},[i,s,n]);var c=v.useCallback(function(l){o(function(u){return Object.assign({},u,l)})},[]);return[i,c]}var Lx=typeof window<"u"?v.useLayoutEffect:v.useEffect,jx=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0},jd=new Map,N0=function(s){Lx(function(){var e=s.current?s.current.ownerDocument:document;if(e!==void 0&&!jd.has(e)){var t=e.createElement("style");t.innerHTML=`.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`,jd.set(e,t);var n=jx();n&&t.setAttribute("nonce",n),e.head.appendChild(t)}},[])},Vx=function(s){var e=s.className,t=s.colorModel,n=s.color,r=n===void 0?t.defaultColor:n,i=s.onChange,o=Ru(s,["className","colorModel","color","onChange"]),a=v.useRef(null);N0(a);var c=I0(t,r,i),l=c[0],u=c[1],h=To(["react-colorful",e]);return M.createElement("div",ti({},o,{ref:a,className:h}),M.createElement(M0,{hsva:l,onChange:u}),M.createElement(D0,{hue:l.h,onChange:u,className:"react-colorful__last-control"}))},zx=function(s){var e=s.className,t=s.hsva,n=s.onChange,r={backgroundImage:"linear-gradient(90deg, "+Zc(Object.assign({},t,{a:0}))+", "+Zc(Object.assign({},t,{a:1}))+")"},i=To(["react-colorful__alpha",e]),o=wt(100*t.a);return M.createElement("div",{className:i},M.createElement("div",{className:"react-colorful__alpha-gradient",style:r}),M.createElement(Pu,{onMove:function(a){n({a:a.left})},onKey:function(a){n({a:Lr(t.a+a.left)})},"aria-label":"Alpha","aria-valuetext":o+"%","aria-valuenow":o,"aria-valuemin":"0","aria-valuemax":"100"},M.createElement(Du,{className:"react-colorful__alpha-pointer",left:t.a,color:Zc(t)})))},Ux=function(s){var e=s.className,t=s.colorModel,n=s.color,r=n===void 0?t.defaultColor:n,i=s.onChange,o=Ru(s,["className","colorModel","color","onChange"]),a=v.useRef(null);N0(a);var c=I0(t,r,i),l=c[0],u=c[1],h=To(["react-colorful",e]);return M.createElement("div",ti({},o,{ref:a,className:h}),M.createElement(M0,{hsva:l,onChange:u}),M.createElement(D0,{hue:l.h,onChange:u}),M.createElement(zx,{hsva:l,onChange:u,className:"react-colorful__last-control"}))},Bx={defaultColor:{r:0,g:0,b:0,a:1},toHsva:P0,fromHsva:R0,equal:Mu},Wx=function(s){return M.createElement(Ux,ti({},s,{colorModel:Bx}))},qx={defaultColor:{r:0,g:0,b:0},toHsva:function(s){return P0({r:s.r,g:s.g,b:s.b,a:1})},fromHsva:function(s){return{r:(e=R0(s)).r,g:e.g,b:e.b};var e},equal:Mu},Hx=function(s){return M.createElement(Vx,ti({},s,{colorModel:qx}))};function mn(s,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(s,e,t,n);else for(var a=s.length-1;a>=0;a--)(o=s[a])&&(i=(r<3?o(i):r>3?o(e,t,i):o(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}function Ie(s,e,t,n){function r(i){return i instanceof t?i:new t(function(o){o(i)})}return new(t||(t=Promise))(function(i,o){function a(u){try{l(n.next(u))}catch(h){o(h)}}function c(u){try{l(n.throw(u))}catch(h){o(h)}}function l(u){u.done?i(u.value):r(u.value).then(a,c)}l((n=n.apply(s,e||[])).next())})}function ni(s,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,r,i,o;return o={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(l){return function(u){return c([l,u])}}function c(l){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,l[0]&&(t=0)),t;)try{if(n=1,r&&(i=l[0]&2?r.return:l[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,l[1])).done)return i;switch(r=0,i&&(l=[l[0]&2,i.value]),l[0]){case 0:case 1:i=l;break;case 4:return t.label++,{value:l[1],done:!1};case 5:t.label++,r=l[1],l=[0];continue;case 7:l=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){t=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]0)&&!(r=n.next()).done;)i.push(r.value)}catch(a){o={error:a}}finally{try{r&&!r.done&&(t=n.return)&&t.call(n)}finally{if(o)throw o.error}}return i}function Gx(){for(var s=[],e=0;e0?n:s.name,writable:!1,configurable:!1,enumerable:!0})}return t}function Zx(s){var e=s.name,t=e&&e.lastIndexOf(".")!==-1;if(t&&!s.type){var n=e.split(".").pop().toLowerCase(),r=Xx.get(n);r&&Object.defineProperty(s,"type",{value:r,writable:!1,configurable:!1,enumerable:!0})}return s}var Kx=[".DS_Store","Thumbs.db"];function Qx(s){return Ie(this,void 0,void 0,function(){return ni(this,function(e){return ka(s)&&Jx(s)?[2,sw(s.dataTransfer,s.type)]:ew(s)?[2,tw(s)]:Array.isArray(s)&&s.every(function(t){return"getFile"in t&&typeof t.getFile=="function"})?[2,nw(s)]:[2,[]]})})}function Jx(s){return ka(s.dataTransfer)}function ew(s){return ka(s)&&ka(s.target)}function ka(s){return typeof s=="object"&&s!==null}function tw(s){return Pl(s.target.files).map(function(e){return Eo(e)})}function nw(s){return Ie(this,void 0,void 0,function(){var e;return ni(this,function(t){switch(t.label){case 0:return[4,Promise.all(s.map(function(n){return n.getFile()}))];case 1:return e=t.sent(),[2,e.map(function(n){return Eo(n)})]}})})}function sw(s,e){return Ie(this,void 0,void 0,function(){var t,n;return ni(this,function(r){switch(r.label){case 0:return s===null?[2,[]]:s.items?(t=Pl(s.items).filter(function(i){return i.kind==="file"}),e!=="drop"?[2,t]:[4,Promise.all(t.map(rw))]):[3,2];case 1:return n=r.sent(),[2,Vd($0(n))];case 2:return[2,Vd(Pl(s.files).map(function(i){return Eo(i)}))]}})})}function Vd(s){return s.filter(function(e){return Kx.indexOf(e.name)===-1})}function Pl(s){if(s===null)return[];for(var e=[],t=0;ts.length)&&(e=s.length);for(var t=0,n=new Array(e);tt)return[!1,Hd(t)];if(s.sizet)return[!1,Hd(t)]}return[!0,null]}function wi(s){return s!=null}function yw(s){var e=s.files,t=s.accept,n=s.minSize,r=s.maxSize,i=s.multiple,o=s.maxFiles;return!i&&e.length>1||i&&o>=1&&e.length>o?!1:e.every(function(a){var c=j0(a,t),l=Wd(c,1),u=l[0],h=V0(a,n,r),d=Wd(h,1),f=d[0];return u&&f})}function Ta(s){return typeof s.isPropagationStopped=="function"?s.isPropagationStopped():typeof s.cancelBubble<"u"?s.cancelBubble:!1}function Ko(s){return s.dataTransfer?Array.prototype.some.call(s.dataTransfer.types,function(e){return e==="Files"||e==="application/x-moz-file"}):!!s.target&&!!s.target.files}function Gd(s){s.preventDefault()}function vw(s){return s.indexOf("MSIE")!==-1||s.indexOf("Trident/")!==-1}function bw(s){return s.indexOf("Edge/")!==-1}function xw(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return vw(s)||bw(s)}function xn(){for(var s=arguments.length,e=new Array(s),t=0;t1?r-1:0),o=1;os.length)&&(e=s.length);for(var t=0,n=new Array(e);t=0)&&Object.prototype.propertyIsEnumerable.call(s,n)&&(t[n]=s[n])}return t}function Fw(s,e){if(s==null)return{};var t={},n=Object.keys(s),r,i;for(i=0;i=0)&&(t[r]=s[r]);return t}var Iu=v.forwardRef(function(s,e){var t=s.children,n=Ea(s,Cw),r=B0(n),i=r.open,o=Ea(r,Sw);return v.useImperativeHandle(e,function(){return{open:i}},[i]),M.createElement(v.Fragment,null,t(Be(Be({},o),{},{open:i})))});Iu.displayName="Dropzone";var U0={disabled:!1,getFilesFromEvent:Qx,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0};Iu.defaultProps=U0;Iu.propTypes={children:Te.func,accept:Te.oneOfType([Te.string,Te.arrayOf(Te.string)]),multiple:Te.bool,preventDropOnDocument:Te.bool,noClick:Te.bool,noKeyboard:Te.bool,noDrag:Te.bool,noDragEventsBubbling:Te.bool,minSize:Te.number,maxSize:Te.number,maxFiles:Te.number,disabled:Te.bool,getFilesFromEvent:Te.func,onFileDialogCancel:Te.func,onFileDialogOpen:Te.func,useFsAccessApi:Te.bool,onDragEnter:Te.func,onDragLeave:Te.func,onDragOver:Te.func,onDrop:Te.func,onDropAccepted:Te.func,onDropRejected:Te.func,validator:Te.func};var Il={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,draggedFiles:[],acceptedFiles:[],fileRejections:[]};function B0(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=Be(Be({},U0),s),t=e.accept,n=e.disabled,r=e.getFilesFromEvent,i=e.maxSize,o=e.minSize,a=e.multiple,c=e.maxFiles,l=e.onDragEnter,u=e.onDragLeave,h=e.onDragOver,d=e.onDrop,f=e.onDropAccepted,m=e.onDropRejected,p=e.onFileDialogCancel,g=e.onFileDialogOpen,_=e.useFsAccessApi,x=e.preventDropOnDocument,k=e.noClick,y=e.noKeyboard,b=e.noDrag,T=e.noDragEventsBubbling,E=e.validator,w=v.useMemo(function(){return typeof g=="function"?g:Zd},[g]),C=v.useMemo(function(){return typeof p=="function"?p:Zd},[p]),S=v.useRef(null),R=v.useRef(null),O=v.useReducer(Lw,Il),j=Kc(O,2),V=j[0],W=j[1],z=V.isFocused,U=V.isFileDialogActive,B=V.draggedFiles,X=v.useRef(typeof window<"u"&&window.isSecureContext&&_&&ww()),K=function(){!X.current&&U&&setTimeout(function(){if(R.current){var de=R.current.files;de.length||(W({type:"closeDialog"}),C())}},300)};v.useEffect(function(){return window.addEventListener("focus",K,!1),function(){window.removeEventListener("focus",K,!1)}},[R,U,C,X]);var J=v.useRef([]),N=function(de){S.current&&S.current.contains(de.target)||(de.preventDefault(),J.current=[])};v.useEffect(function(){return x&&(document.addEventListener("dragover",Gd,!1),document.addEventListener("drop",N,!1)),function(){x&&(document.removeEventListener("dragover",Gd),document.removeEventListener("drop",N))}},[S,x]);var L=v.useCallback(function(ee){ee.preventDefault(),ee.persist(),D(ee),J.current=[].concat(Rw(J.current),[ee.target]),Ko(ee)&&Promise.resolve(r(ee)).then(function(de){Ta(ee)&&!T||(W({draggedFiles:de,isDragActive:!0,type:"setDraggedFiles"}),l&&l(ee))})},[r,l,T]),A=v.useCallback(function(ee){ee.preventDefault(),ee.persist(),D(ee);var de=Ko(ee);if(de&&ee.dataTransfer)try{ee.dataTransfer.dropEffect="copy"}catch{}return de&&h&&h(ee),!1},[h,T]),I=v.useCallback(function(ee){ee.preventDefault(),ee.persist(),D(ee);var de=J.current.filter(function(it){return S.current&&S.current.contains(it)}),Je=de.indexOf(ee.target);Je!==-1&&de.splice(Je,1),J.current=de,!(de.length>0)&&(W({isDragActive:!1,type:"setDraggedFiles",draggedFiles:[]}),Ko(ee)&&u&&u(ee))},[S,u,T]),Y=v.useCallback(function(ee,de){var Je=[],it=[];ee.forEach(function(Nt){var rs=j0(Nt,t),ur=Kc(rs,2),Oc=ur[0],Ac=ur[1],Rc=V0(Nt,o,i),$o=Kc(Rc,2),Pc=$o[0],Dc=$o[1],Mc=E?E(Nt):null;if(Oc&&Pc&&!Mc)Je.push(Nt);else{var Ic=[Ac,Dc];Mc&&(Ic=Ic.concat(Mc)),it.push({file:Nt,errors:Ic.filter(function(C_){return C_})})}}),(!a&&Je.length>1||a&&c>=1&&Je.length>c)&&(Je.forEach(function(Nt){it.push({file:Nt,errors:[_w]})}),Je.splice(0)),W({acceptedFiles:Je,fileRejections:it,type:"setFiles"}),d&&d(Je,it,de),it.length>0&&m&&m(it,de),Je.length>0&&f&&f(Je,de)},[W,a,t,o,i,c,d,f,m,E]),$=v.useCallback(function(ee){ee.preventDefault(),ee.persist(),D(ee),J.current=[],Ko(ee)&&Promise.resolve(r(ee)).then(function(de){Ta(ee)&&!T||Y(de,ee)}),W({type:"reset"})},[r,Y,T]),q=v.useCallback(function(){if(X.current){W({type:"openDialog"}),w();var ee={multiple:a,types:kw(t)};window.showOpenFilePicker(ee).then(function(de){return r(de)}).then(function(de){Y(de,null),W({type:"closeDialog"})}).catch(function(de){Tw(de)?(C(de),W({type:"closeDialog"})):Ew(de)&&(X.current=!1,R.current&&(R.current.value=null,R.current.click()))});return}R.current&&(W({type:"openDialog"}),w(),R.current.value=null,R.current.click())},[W,w,C,_,Y,t,a]),oe=v.useCallback(function(ee){!S.current||!S.current.isEqualNode(ee.target)||(ee.key===" "||ee.key==="Enter"||ee.keyCode===32||ee.keyCode===13)&&(ee.preventDefault(),q())},[S,q]),re=v.useCallback(function(){W({type:"focus"})},[]),ie=v.useCallback(function(){W({type:"blur"})},[]),ne=v.useCallback(function(){k||(xw()?setTimeout(q,0):q())},[k,q]),me=function(de){return n?null:de},te=function(de){return y?null:me(de)},H=function(de){return b?null:me(de)},D=function(de){T&&de.stopPropagation()},P=v.useMemo(function(){return function(){var ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},de=ee.refKey,Je=de===void 0?"ref":de,it=ee.role,Nt=ee.onKeyDown,rs=ee.onFocus,ur=ee.onBlur,Oc=ee.onClick,Ac=ee.onDragEnter,Rc=ee.onDragOver,$o=ee.onDragLeave,Pc=ee.onDrop,Dc=Ea(ee,Ow);return Be(Be(Ml({onKeyDown:te(xn(Nt,oe)),onFocus:te(xn(rs,re)),onBlur:te(xn(ur,ie)),onClick:me(xn(Oc,ne)),onDragEnter:H(xn(Ac,L)),onDragOver:H(xn(Rc,A)),onDragLeave:H(xn($o,I)),onDrop:H(xn(Pc,$)),role:typeof it=="string"&&it!==""?it:"button"},Je,S),!n&&!y?{tabIndex:0}:{}),Dc)}},[S,oe,re,ie,ne,L,A,I,$,y,b,n]),Q=v.useCallback(function(ee){ee.stopPropagation()},[]),se=v.useMemo(function(){return function(){var ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},de=ee.refKey,Je=de===void 0?"ref":de,it=ee.onChange,Nt=ee.onClick,rs=Ea(ee,Aw),ur=Ml({accept:t,multiple:a,type:"file",style:{display:"none"},onChange:me(xn(it,$)),onClick:me(xn(Nt,Q)),tabIndex:-1},Je,R);return Be(Be({},ur),rs)}},[R,t,a,$,n]),ce=B.length,ye=ce>0&&yw({files:B,accept:t,minSize:o,maxSize:i,multiple:a,maxFiles:c}),Qe=ce>0&&!ye;return Be(Be({},V),{},{isDragAccept:ye,isDragReject:Qe,isFocused:z&&!n,getRootProps:P,getInputProps:se,rootRef:S,inputRef:R,open:me(q)})}function Lw(s,e){switch(e.type){case"focus":return Be(Be({},s),{},{isFocused:!0});case"blur":return Be(Be({},s),{},{isFocused:!1});case"openDialog":return Be(Be({},Il),{},{isFileDialogActive:!0});case"closeDialog":return Be(Be({},s),{},{isFileDialogActive:!1});case"setDraggedFiles":var t=e.isDragActive,n=e.draggedFiles;return Be(Be({},s),{},{draggedFiles:n,isDragActive:t});case"setFiles":return Be(Be({},s),{},{acceptedFiles:e.acceptedFiles,fileRejections:e.fileRejections});case"reset":return Be({},Il);default:return s}}function Zd(){}function jw(s){let e;const t=new Set,n=(l,u)=>{const h=typeof l=="function"?l(e):l;if(h!==e){const d=e;e=u?h:Object.assign({},e,h),t.forEach(f=>f(e,d))}},r=()=>e,i=(l,u=r,h=Object.is)=>{console.warn("[DEPRECATED] Please use `subscribeWithSelector` middleware");let d=u(e);function f(){const m=u(e);if(!h(d,m)){const p=d;l(d=m,p)}}return t.add(f),()=>t.delete(f)},c={setState:n,getState:r,subscribe:(l,u,h)=>u||h?i(l,u,h):(t.add(l),()=>t.delete(l)),destroy:()=>t.clear()};return e=s(n,r,c),c}const Vw=typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),Kd=Vw?v.useEffect:v.useLayoutEffect;function zw(s){const e=typeof s=="function"?jw(s):s,t=(n=e.getState,r=Object.is)=>{const[,i]=v.useReducer(g=>g+1,0),o=e.getState(),a=v.useRef(o),c=v.useRef(n),l=v.useRef(r),u=v.useRef(!1),h=v.useRef();h.current===void 0&&(h.current=n(o));let d,f=!1;(a.current!==o||c.current!==n||l.current!==r||u.current)&&(d=n(o),f=!r(h.current,d)),Kd(()=>{f&&(h.current=d),a.current=o,c.current=n,l.current=r,u.current=!1});const m=v.useRef(o);Kd(()=>{const g=()=>{try{const x=e.getState(),k=c.current(x);l.current(h.current,k)||(a.current=x,h.current=k,i())}catch{u.current=!0,i()}},_=e.subscribe(g);return e.getState()!==m.current&&g(),_},[]);const p=f?d:h.current;return v.useDebugValue(p),p};return Object.assign(t,e),t[Symbol.iterator]=function(){console.warn("[useStore, api] = create() is deprecated and will be removed in v4");const n=[t,e];return{next(){const r=n.length<=0;return{value:n.shift(),done:r}}}},t}const Uw=s=>(e,t,n)=>{const r=n.subscribe;return n.subscribe=(o,a,c)=>{let l=o;if(a){const u=(c==null?void 0:c.equalityFn)||Object.is;let h=o(n.getState());l=d=>{const f=o(d);if(!u(h,f)){const m=h;a(h=f,m)}},c!=null&&c.fireImmediately&&a(h,h)}return r(l)},s(e,t,n)};/*! - * isobject - * - * Copyright (c) 2014-2017, Jon Schlinkert. - * Released under the MIT License. - */var Bw=function(e){return e!=null&&typeof e=="object"&&Array.isArray(e)===!1};/*! - * is-plain-object - * - * Copyright (c) 2014-2017, Jon Schlinkert. - * Released under the MIT License. - */var Ww=Bw;function Qd(s){return Ww(s)===!0&&Object.prototype.toString.call(s)==="[object Object]"}var W0=function(e){var t,n;return!(Qd(e)===!1||(t=e.constructor,typeof t!="function")||(n=t.prototype,Qd(n)===!1)||n.hasOwnProperty("isPrototypeOf")===!1)};/*! - * is-extendable - * - * Copyright (c) 2015-2017, Jon Schlinkert. - * Released under the MIT License. - */var qw=W0,Nu=function(e){return qw(e)||typeof e=="function"||Array.isArray(e)};/*! - * for-in - * - * Copyright (c) 2014-2017, Jon Schlinkert. - * Released under the MIT License. - */var Hw=function(e,t,n){for(var r in e)if(t.call(n,e[r],r,e)===!1)break},Yw=Nu,Gw=Hw;function q0(s,e){for(var t=arguments.length,n=0;++n - * - * Copyright (c) 2014-2015, Jon Schlinkert. - * Licensed under the MIT License. - */var Qw=function(s,e,t,n,r){if(!Jw(s)||!e)return s;if(e=Qo(e),t&&(e+="."+Qo(t)),n&&(e+="."+Qo(n)),r&&(e+="."+Qo(r)),e in s)return s[e];for(var i=e.split("."),o=i.length,a=-1;s&&++a - * - * Copyright (c) 2015, Jon Schlinkert. - * Licensed under the MIT License. - */var ek=function(s,e){if(s===null||typeof s>"u")throw new TypeError("expected first argument to be an object.");if(typeof e>"u"||typeof Symbol>"u"||typeof Object.getOwnPropertySymbols!="function")return s;for(var t=Object.prototype.propertyIsEnumerable,n=Object(s),r=arguments.length,i=0;++i"u")throw new TypeError("Cannot convert undefined or null to object");Jd(s)||(s={});for(var e=1;e - * - * Copyright (c) 2015-2017, Jon Schlinkert. - * Released under the MIT License. - */var ck=sk,lk=function(s,e,t){if(typeof s!="string")throw new TypeError("expected a string");typeof e=="function"&&(t=e,e=null),typeof e=="string"&&(e={sep:e});var n=ck({sep:"."},e),r=n.quotes||['"',"'","`"],i;n.brackets===!0?i={"<":">","(":")","[":"]","{":"}"}:n.brackets&&(i=n.brackets);var o=[],a=[],c=[""],l=n.sep,u=s.length,h=-1,d;function f(){if(i&&a.length)return i[a[a.length-1]]}for(;++h - * - * Copyright (c) 2015, Jon Schlinkert. - * Licensed under the MIT License. - */var dk=function(e){return typeof e<"u"&&e!==null&&(typeof e=="object"||typeof e=="function")},ef=dk,fk=function(e){ef(e)||(e={});for(var t=arguments.length,n=1;n - * - * Copyright (c) 2015, Jon Schlinkert. - * Licensed under the MIT License. - */var gk=function(e){return typeof e<"u"&&e!==null&&(typeof e=="object"||typeof e=="function")};/*! - * set-value - * - * Copyright (c) 2014-2015, 2017, Jon Schlinkert. - * Released under the MIT License. - */var _k=lk,yk=fk,tf=W0,nf=gk,vk=function(s,e,t){if(!nf(s)||(Array.isArray(e)&&(e=[].concat.apply([],e).join(".")),typeof e!="string"))return s;for(var n=_k(e,{sep:".",brackets:!0}).filter(bk),r=n.length,i=-1,o=s;++is.filter(Boolean).join(".");function Tk(s){const e=s.split(".");return[e.pop(),e.join(".")||void 0]}function Ek(s,e){return Object.entries(Jv(s,e)).reduce((t,[,{value:n,disabled:r,key:i}])=>(t[i]=r?void 0:n,t),{})}function Ck(s,e){const t=v.useRef();return(e?Vi:xo)(s,t.current)||(t.current=s),t.current}function H0(s,e){return v.useMemo(s,Ck(e,!0))}function Sk(s){const e=v.useRef(null),t=v.useRef(null),n=v.useRef(!0);return v.useLayoutEffect(()=>{s||(e.current.style.height="0px",e.current.style.overflow="hidden")},[]),v.useEffect(()=>{if(n.current){n.current=!1;return}let r;const i=e.current,o=()=>{s&&(i.style.removeProperty("height"),i.style.removeProperty("overflow"),t.current.scrollIntoView({behavior:"smooth",block:"nearest"}))};i.addEventListener("transitionend",o,{once:!0});const{height:a}=t.current.getBoundingClientRect();return i.style.height=a+"px",s||(i.style.overflow="hidden",r=window.setTimeout(()=>i.style.height="0px",50)),()=>{i.removeEventListener("transitionend",o),clearTimeout(r)}},[s]),{wrapperRef:e,contentRef:t}}const Ok=s=>{const[e,t]=v.useState(s.getVisiblePaths());return v.useEffect(()=>{t(s.getVisiblePaths());const n=s.useStore.subscribe(s.getVisiblePaths,t,{equalityFn:xo});return()=>n()},[s]),e};function Ak(s,e,t){return s.useStore(r=>{const i=he(he({},t),r.data);return Ek(i,e)},xo)}function Y0(s=3){const e=v.useRef(null),t=v.useRef(null),[n,r]=v.useState(!1),i=v.useCallback(()=>r(!0),[]),o=v.useCallback(()=>r(!1),[]);return v.useLayoutEffect(()=>{if(n){const{bottom:a,top:c,left:l}=e.current.getBoundingClientRect(),{height:u}=t.current.getBoundingClientRect(),h=a+u>window.innerHeight-40?"up":"down";t.current.style.position="fixed",t.current.style.zIndex="10000",t.current.style.left=l+"px",h==="down"?t.current.style.top=a+s+"px":t.current.style.bottom=window.innerHeight-c+s+"px"}},[s,n]),{popinRef:e,wrapperRef:t,shown:n,show:i,hide:o}}$x([Fx]);const Rk={rgb:"toRgb",hsl:"toHsl",hsv:"toHsv",hex:"toHex"};St.extend({color:()=>s=>vt(s).isValid()});const Pk=s=>St().color().test(s);function G0(s,{format:e,hasAlpha:t,isString:n}){const r=Rk[e]+(n&&e!=="hex"?"String":""),i=s[r]();return typeof i=="object"&&!t?eb(i,["a"]):i}const X0=(s,e)=>{const t=vt(s);if(!t.isValid())throw Error("Invalid color");return G0(t,e)},Dk=(s,e)=>G0(vt(s),he(he({},e),{},{isString:!0,format:"hex"})),Mk=({value:s})=>{const e=Nx(s),t=e==="name"?"hex":e,n=typeof s=="object"?"a"in s:e==="hex"&&s.length===8||/^(rgba)|(hsla)|(hsva)/.test(s),r={format:t,hasAlpha:n,isString:typeof s=="string"};return{value:X0(s,r),settings:r}};var Ik=Object.freeze({__proto__:null,schema:Pk,sanitize:X0,format:Dk,normalize:Mk});const Nk=ae("div",{position:"relative",boxSizing:"border-box",borderRadius:"$sm",overflow:"hidden",cursor:"pointer",height:"$rowHeight",width:"$rowHeight",backgroundColor:"#fff",backgroundImage:`url('data:image/svg+xml;charset=utf-8,')`,$inputStyle:"",$hover:"",zIndex:1,variants:{active:{true:{$inputStyle:"$accent1"}}},"&::before":{content:'""',position:"absolute",top:0,bottom:0,right:0,left:0,backgroundColor:"currentColor",zIndex:1}}),$k=ae("div",{position:"relative",display:"grid",gridTemplateColumns:"$sizes$rowHeight auto",columnGap:"$colGap",alignItems:"center"}),Fk=ae("div",{width:"$colorPickerWidth",height:"$colorPickerHeight",".react-colorful":{width:"100%",height:"100%",boxShadow:"$level2",cursor:"crosshair"},".react-colorful__saturation":{borderRadius:"$sm $sm 0 0"},".react-colorful__alpha, .react-colorful__hue":{height:10},".react-colorful__last-control":{borderRadius:"0 0 $sm $sm"},".react-colorful__pointer":{height:12,width:12}});function of(s,e){return e!=="rgb"?vt(s).toRgb():s}function Lk({value:s,displayValue:e,settings:t,onUpdate:n}){const{emitOnEditStart:r,emitOnEditEnd:i}=_t(),{format:o,hasAlpha:a}=t,{popinRef:c,wrapperRef:l,shown:u,show:h,hide:d}=Y0(),f=v.useRef(0),[m,p]=v.useState(()=>of(s,o)),g=a?Wx:Hx,_=()=>{p(of(s,o)),h(),r()},x=()=>{d(),i(),window.clearTimeout(f.current)},k=()=>{f.current=window.setTimeout(x,500)};return v.useEffect(()=>()=>window.clearTimeout(f.current),[]),M.createElement(M.Fragment,null,M.createElement(Nk,{ref:c,active:u,onClick:()=>_(),style:{color:e}}),u&&M.createElement(Su,null,M.createElement(g0,{onPointerUp:x}),M.createElement(Fk,{ref:l,onMouseEnter:()=>window.clearTimeout(f.current),onMouseLeave:y=>y.buttons===0&&k()},M.createElement(g,{color:m,onChange:n}))))}function jk(){const{value:s,displayValue:e,label:t,onChange:n,onUpdate:r,settings:i}=_t();return M.createElement(tn,{input:!0},M.createElement(pn,null,t),M.createElement($k,null,M.createElement(Lk,{value:s,displayValue:e,onChange:n,onUpdate:r,settings:i}),M.createElement(Cu,{value:e,onChange:n,onUpdate:r})))}var Vk=he({component:jk},Ik);function zk(){const{label:s,displayValue:e,onUpdate:t,settings:n}=_t();return M.createElement(tn,{input:!0},M.createElement(pn,null,s),M.createElement(Au,{value:e,settings:n,onUpdate:t}))}var Uk=he({component:zk},T0(["x","y","z"]));const Bk=ae("div",{$flexCenter:"",position:"relative",backgroundColor:"$elevation3",borderRadius:"$sm",cursor:"pointer",height:"$rowHeight",width:"$rowHeight",touchAction:"none",$draggable:"",$hover:"","&:active":{cursor:"none"},"&::after":{content:'""',backgroundColor:"$accent2",height:4,width:4,borderRadius:2}}),Wk=ae("div",{$flexCenter:"",width:"$joystickWidth",height:"$joystickHeight",borderRadius:"$sm",boxShadow:"$level2",position:"fixed",zIndex:1e4,overflow:"hidden",$draggable:"",transform:"translate(-50%, -50%)",variants:{isOutOfBounds:{true:{backgroundColor:"$elevation1"},false:{backgroundColor:"$elevation3"}}},"> div":{position:"absolute",$flexCenter:"",borderStyle:"solid",borderWidth:1,borderColor:"$highlight1",backgroundColor:"$elevation3",width:"80%",height:"80%","&::after,&::before":{content:'""',position:"absolute",zindex:10,backgroundColor:"$highlight1"},"&::before":{width:"100%",height:1},"&::after":{height:"100%",width:1}},"> span":{position:"relative",zindex:100,width:10,height:10,backgroundColor:"$accent2",borderRadius:"50%"}});function qk({value:s,settings:e,onUpdate:t}){const n=v.useRef(),r=v.useRef(0),i=v.useRef(0),o=v.useRef(1),[a,c]=v.useState(!1),[l,u]=v.useState(!1),[h,d]=y0(),f=v.useRef(null),m=v.useRef(null);v.useLayoutEffect(()=>{if(a){const{top:O,left:j,width:V,height:W}=f.current.getBoundingClientRect();m.current.style.left=j+V/2+"px",m.current.style.top=O+W/2+"px"}},[a]);const{keys:[p,g],joystick:_}=e,x=_==="invertY"?1:-1,{[p]:{step:k},[g]:{step:y}}=e,b=Bn("sizes","joystickWidth"),T=Bn("sizes","joystickHeight"),E=parseFloat(b)*.8/2,w=parseFloat(T)*.8/2,C=v.useCallback(()=>{n.current||(u(!0),r.current&&d({x:r.current*E}),i.current&&d({y:i.current*-w}),n.current=window.setInterval(()=>{t(O=>{const j=k*r.current*o.current,V=x*y*i.current*o.current;return Array.isArray(O)?{[p]:O[0]+j,[g]:O[1]+V}:{[p]:O[p]+j,[g]:O[g]+V}})},16))},[E,w,t,d,k,y,p,g,x]),S=v.useCallback(()=>{window.clearTimeout(n.current),n.current=void 0,u(!1)},[]);v.useEffect(()=>{function O(j){o.current=n0(j)}return window.addEventListener("keydown",O),window.addEventListener("keyup",O),()=>{window.clearTimeout(n.current),window.removeEventListener("keydown",O),window.removeEventListener("keyup",O)}},[]);const R=ko(({first:O,active:j,delta:[V,W],movement:[z,U]})=>{O&&c(!0);const B=bs(z,-E,E),X=bs(U,-w,w);r.current=Math.abs(z)>Math.abs(B)?Math.sign(z-B):0,i.current=Math.abs(U)>Math.abs(X)?Math.sign(X-U):0;let K=s[p],J=s[g];j?(r.current||(K+=V*k*o.current,d({x:B})),i.current||(J-=x*W*y*o.current,d({y:X})),r.current||i.current?C():S(),t({[p]:K,[g]:J})):(c(!1),r.current=0,i.current=0,d({x:0,y:0}),S())});return M.createElement(Bk,Ke({ref:f},R()),a&&M.createElement(Su,null,M.createElement(Wk,{ref:m,isOutOfBounds:l},M.createElement("div",null),M.createElement("span",{ref:h}))))}const Hk=ae("div",{display:"grid",columnGap:"$colGap",variants:{withJoystick:{true:{gridTemplateColumns:"$sizes$rowHeight auto"},false:{gridTemplateColumns:"auto"}}}});function Yk(){const{label:s,displayValue:e,onUpdate:t,settings:n}=_t();return M.createElement(tn,{input:!0},M.createElement(pn,null,s),M.createElement(Hk,{withJoystick:!!n.joystick},n.joystick&&M.createElement(qk,{value:e,settings:n,onUpdate:t}),M.createElement(Au,{value:e,settings:n,onUpdate:t})))}const Gk=["joystick"],Z0=T0(["x","y"]),Xk=s=>{let{joystick:e=!0}=s,t=Re(s,Gk);const{value:n,settings:r}=Z0.normalize(t);return{value:n,settings:he(he({},r),{},{joystick:e})}};var Zk=he(he({component:Yk},Z0),{},{normalize:Xk});const Kk=s=>{if(s!==void 0){if(s instanceof File)try{return URL.createObjectURL(s)}catch{return}if(typeof s=="string"&&s.indexOf("blob:")===0)return s;throw Error("Invalid image format [undefined | blob | File].")}},Qk=(s,e)=>typeof e=="object"&&"image"in e,Jk=({image:s})=>({value:s});var eT=Object.freeze({__proto__:null,sanitize:Kk,schema:Qk,normalize:Jk});const tT=ae("div",{position:"relative",display:"grid",gridTemplateColumns:"$sizes$rowHeight auto 20px",columnGap:"$colGap",alignItems:"center"}),nT=ae("div",{$flexCenter:"",overflow:"hidden",height:"$rowHeight",background:"$elevation3",textAlign:"center",color:"inherit",borderRadius:"$sm",outline:"none",userSelect:"none",cursor:"pointer",$inputStyle:"",$hover:"",$focusWithin:"",$active:"$accent1 $elevation1",variants:{isDragAccept:{true:{$inputStyle:"$accent1",backgroundColor:"$elevation1"}}}}),sT=ae("div",{boxSizing:"border-box",borderRadius:"$sm",height:"$rowHeight",width:"$rowHeight",$inputStyle:"",backgroundSize:"cover",backgroundPosition:"center",variants:{hasImage:{true:{cursor:"pointer",$hover:"",$active:""}}}}),rT=ae("div",{$flexCenter:"",width:"$imagePreviewWidth",height:"$imagePreviewHeight",borderRadius:"$sm",boxShadow:"$level2",pointerEvents:"none",$inputStyle:"",backgroundSize:"cover",backgroundPosition:"center"}),iT=ae("div",{fontSize:"0.8em",height:"100%",padding:"$rowGap $md"}),oT=ae("div",{$flexCenter:"",top:"0",right:"0",marginRight:"$sm",height:"100%",cursor:"pointer",variants:{disabled:{true:{color:"$elevation3",cursor:"default"}}},"&::after,&::before":{content:'""',position:"absolute",height:2,width:10,borderRadius:1,backgroundColor:"currentColor"},"&::after":{transform:"rotate(45deg)"},"&::before":{transform:"rotate(-45deg)"}});function aT(){const{label:s,value:e,onUpdate:t,disabled:n}=_t(),{popinRef:r,wrapperRef:i,shown:o,show:a,hide:c}=Y0(),l=v.useCallback(m=>{m.length&&t(m[0])},[t]),u=v.useCallback(m=>{m.stopPropagation(),t(void 0)},[t]),{getRootProps:h,getInputProps:d,isDragAccept:f}=B0({maxFiles:1,accept:"image/*",onDrop:l,disabled:n});return M.createElement(tn,{input:!0},M.createElement(pn,null,s),M.createElement(tT,null,M.createElement(sT,{ref:r,hasImage:!!e,onPointerDown:()=>!!e&&a(),onPointerUp:c,style:{backgroundImage:e?`url(${e})`:"none"}}),o&&!!e&&M.createElement(Su,null,M.createElement(g0,{onPointerUp:c,style:{cursor:"pointer"}}),M.createElement(rT,{ref:i,style:{backgroundImage:`url(${e})`}})),M.createElement(nT,h({isDragAccept:f}),M.createElement("input",d()),M.createElement(iT,null,f?"drop image":"click or drop")),M.createElement(oT,{onClick:u,disabled:!e})))}var cT=he({component:aT},eT);const af=St().number(),lT=(s,e)=>St().array().length(2).every.number().test(s)&&St().schema({min:af,max:af}).test(e),Ca=s=>({min:s[0],max:s[1]}),K0=(s,{bounds:[e,t]},n)=>{const r=Array.isArray(s)?Ca(s):s,i={min:n[0],max:n[1]},{min:o,max:a}=he(he({},i),r);return[bs(Number(o),e,Math.max(e,a)),bs(Number(a),Math.min(t,o),t)]},uT=({value:s,min:e,max:t})=>{const n={min:e,max:t},r=k0(Ca(s),{min:n,max:n}),i=[e,t],o=he(he({},r),{},{bounds:i});return{value:K0(Ca(s),o,s),settings:o}};var hT=Object.freeze({__proto__:null,schema:lT,format:Ca,sanitize:K0,normalize:uT});const dT=["value","bounds","onDrag"],fT=["bounds"],pT=ae("div",{display:"grid",columnGap:"$colGap",gridTemplateColumns:"auto calc($sizes$numberInputMinWidth * 2 + $space$rowGap)"});function mT(s){let{value:e,bounds:[t,n],onDrag:r}=s,i=Re(s,dT);const o=v.useRef(null),a=v.useRef(null),c=v.useRef(null),l=v.useRef(0),u=Bn("sizes","scrubberWidth"),h=ko(({event:m,first:p,xy:[g],movement:[_],memo:x={}})=>{if(p){const{width:y,left:b}=o.current.getBoundingClientRect();l.current=y-parseFloat(u);const T=(m==null?void 0:m.target)===a.current||(m==null?void 0:m.target)===c.current;x.pos=xa((g-b)/y,t,n);const E=Math.abs(x.pos-e.min)-Math.abs(x.pos-e.max);x.key=E<0||E===0&&x.pos<=e.min?"min":"max",T&&(x.pos=e[x.key])}const k=x.pos+xa(_/l.current,0,n-t);return r({[x.key]:Ub(k,i[x.key])}),x}),d=`calc(${ba(e.min,t,n)} * (100% - ${u} - 8px) + 4px)`,f=`calc(${1-ba(e.max,t,n)} * (100% - ${u} - 8px) + 4px)`;return M.createElement(b0,Ke({ref:o},h()),M.createElement(v0,null,M.createElement(x0,{style:{left:d,right:f}})),M.createElement(Tl,{position:"left",ref:a,style:{left:d}}),M.createElement(Tl,{position:"right",ref:c,style:{right:f}}))}function gT(){const{label:s,displayValue:e,onUpdate:t,settings:n}=_t(),r=Re(n,fT);return M.createElement(M.Fragment,null,M.createElement(tn,{input:!0},M.createElement(pn,null,s),M.createElement(pT,null,M.createElement(mT,Ke({value:e},n,{onDrag:t})),M.createElement(Au,{value:e,settings:r,onUpdate:t,innerLabelTrim:0}))))}var _T=he({component:gT},hT);const yT=()=>{const s=new Map;return{on:(e,t)=>{let n=s.get(e);n===void 0&&(n=new Set,s.set(e,n)),n.add(t)},off:(e,t)=>{const n=s.get(e);n!==void 0&&(n.delete(t),n.size===0&&s.delete(e))},emit:(e,...t)=>{const n=s.get(e);if(n!==void 0)for(const r of n)r(...t)}}},vT=["type","value"],bT=["onChange","transient","onEditStart","onEditEnd"],xT=function(){const e=zw(Uw(()=>({data:{}}))),t=yT();this.storeId=Qv(),this.useStore=e;const n={},r=new Set;this.getVisiblePaths=()=>{const o=this.getData(),a=Object.keys(o),c=[];Object.entries(n).forEach(([u,h])=>{h.render&&a.some(d=>d.indexOf(u)===0)&&!h.render(this.get)&&c.push(u+".")});const l=[];return r.forEach(u=>{u in o&&o[u].__refCount>0&&c.every(h=>u.indexOf(h)===-1)&&(!o[u].render||o[u].render(this.get))&&l.push(u)}),l},this.setOrderedPaths=o=>{o.forEach(a=>r.add(a))},this.orderPaths=o=>(this.setOrderedPaths(o),o),this.disposePaths=o=>{e.setState(a=>{const c=a.data;return o.forEach(l=>{if(l in c){const u=c[l];u.__refCount--,u.__refCount===0&&u.type in cn&&delete c[l]}}),{data:c}})},this.dispose=()=>{e.setState(()=>({data:{}}))},this.getFolderSettings=o=>n[o]||{},this.getData=()=>e.getState().data,this.addData=(o,a)=>{e.setState(c=>{const l=c.data;return Object.entries(o).forEach(([u,h])=>{let d=l[u];if(d){const{type:f,value:m}=h,p=Re(h,vT);f!==d.type?Un(We.INPUT_TYPE_OVERRIDE,f):((d.__refCount===0||a)&&Object.assign(d,p),d.__refCount++)}else l[u]=he(he({},h),{},{__refCount:1})}),{data:l}})},this.setValueAtPath=(o,a,c)=>{e.setState(l=>{const u=l.data;return Ad(u[o],a,o,this,c),{data:u}})},this.setSettingsAtPath=(o,a)=>{e.setState(c=>{const l=c.data;return l[o].settings=he(he({},l[o].settings),a),{data:l}})},this.disableInputAtPath=(o,a)=>{e.setState(c=>{const l=c.data;return l[o].disabled=a,{data:l}})},this.set=(o,a)=>{e.setState(c=>{const l=c.data;return Object.entries(o).forEach(([u,h])=>{try{Ad(l[u],h,void 0,void 0,a)}catch{}}),{data:l}})},this.getInput=o=>{try{return this.getData()[o]}catch{Un(We.PATH_DOESNT_EXIST,o)}},this.get=o=>{var a;return(a=this.getInput(o))===null||a===void 0?void 0:a.value},this.emitOnEditStart=o=>{t.emit(`onEditStart:${o}`,this.get(o),o,he(he({},this.getInput(o)),{},{get:this.get}))},this.emitOnEditEnd=o=>{t.emit(`onEditEnd:${o}`,this.get(o),o,he(he({},this.getInput(o)),{},{get:this.get}))},this.subscribeToEditStart=(o,a)=>{const c=`onEditStart:${o}`;return t.on(c,a),()=>t.off(c,a)},this.subscribeToEditEnd=(o,a)=>{const c=`onEditEnd:${o}`;return t.on(c,a),()=>t.off(c,a)};const i=(o,a,c)=>{const l={};return Object.entries(o).forEach(([u,h])=>{if(u==="")return Un(We.EMPTY_KEY);let d=$u(a,u);if(h.type===cn.FOLDER){const f=i(h.schema,d,c);Object.assign(l,f),d in n||(n[d]=h.settings)}else if(u in c)Un(We.DUPLICATE_KEYS,u,d,c[u].path);else{const f=ob(h,u,d,l);if(f){const{type:m,options:p,input:g}=f,{onChange:_,transient:x,onEditStart:k,onEditEnd:y}=p,b=Re(p,bT);l[d]=he(he(he({type:m},b),g),{},{fromPanel:!0}),c[u]={path:d,onChange:_,transient:x,onEditStart:k,onEditEnd:y}}else Un(We.UNKNOWN_INPUT,d,h)}}),l};this.getDataFromSchema=o=>{const a={};return[i(o,"",a),a]}},Q0=new xT,wT={collapsed:!1};function kT(s,e){return{type:cn.FOLDER,schema:s,settings:he(he({},wT),e)}}const cf=s=>"__levaInput"in s,TT=(s,e)=>{const t={},n=e?e.toLowerCase():null;return s.forEach(r=>{const[i,o]=Tk(r);(!n||i.toLowerCase().indexOf(n)>-1)&&kk(t,o,{[i]:{__levaInput:!0,path:r}})}),t},ET=["type","label","path","valueKey","value","settings","setValue","disabled"];function CT(s){let{type:e,label:t,path:n,valueKey:r,value:i,settings:o,setValue:a,disabled:c}=s,l=Re(s,ET);const{displayValue:u,onChange:h,onUpdate:d}=_0({type:e,value:i,settings:o,setValue:a}),f=Ks[e].component;return f?M.createElement(a0.Provider,{value:he({key:r,path:n,id:""+n,label:t,displayValue:u,value:i,onChange:h,onUpdate:d,settings:o,setValue:a,disabled:c},l)},M.createElement(Cb,{disabled:c},M.createElement(f,null))):(Un(We.NO_COMPONENT_FOR_TYPE,e,n),null)}const ST=ae("button",{display:"block",$reset:"",fontWeight:"$button",height:"$rowHeight",borderStyle:"none",borderRadius:"$sm",backgroundColor:"$elevation1",color:"$highlight1","&:not(:disabled)":{color:"$highlight3",backgroundColor:"$accent2",cursor:"pointer",$hover:"$accent3",$active:"$accent3 $accent1",$focus:""}});function OT({onClick:s,settings:e,label:t}){const n=wo();return M.createElement(tn,null,M.createElement(ST,{disabled:e.disabled,onClick:()=>s(n.get)},t))}const AT=ae("div",{$flex:"",justifyContent:"flex-end",gap:"$colGap"}),RT=ae("button",{$reset:"",cursor:"pointer",borderRadius:"$xs","&:hover":{backgroundColor:"$elevation3"}}),PT=({label:s,opts:e})=>{let t=typeof s=="string"&&s.trim()===""?null:s,n=e;return typeof e.opts=="object"&&(n.label!==void 0&&(t=e.label),n=e.opts),{label:t,opts:n}};function DT(s){const{label:e,opts:t}=PT(s),n=wo();return M.createElement(tn,{input:!!e},e&&M.createElement(pn,null,e),M.createElement(AT,null,Object.entries(t).map(([r,i])=>M.createElement(RT,{key:r,onClick:()=>i(n.get)},r))))}const MT=ae("canvas",{height:"$monitorHeight",width:"100%",display:"block",borderRadius:"$sm"}),J0=100;function IT(s,e){s.push(e),s.length>J0&&s.shift()}const NT=v.forwardRef(function({initialValue:s},e){const t=Bn("colors","highlight3"),n=Bn("colors","elevation2"),r=Bn("colors","highlight1"),[i,o]=v.useMemo(()=>[vt(r).alpha(.4).toRgbString(),vt(r).alpha(.1).toRgbString()],[r]),a=v.useRef([s]),c=v.useRef(s),l=v.useRef(s),u=v.useRef(),h=v.useCallback((m,p)=>{if(!m)return;const{width:g,height:_}=m,x=new Path2D,k=g/J0,y=_*.05;for(let E=0;E({frame:m=>{(c.current===void 0||ml.current)&&(l.current=m),IT(a.current,m),u.current=requestAnimationFrame(()=>h(d.current,f.current))}}),[d,f,h]),v.useEffect(()=>()=>cancelAnimationFrame(u.current),[]),M.createElement(MT,{ref:d})}),lf=s=>Number.isFinite(s)?s.toPrecision(2):s.toString(),$T=v.forwardRef(function({initialValue:s},e){const[t,n]=v.useState(lf(s));return v.useImperativeHandle(e,()=>({frame:r=>n(lf(r))}),[]),M.createElement("div",null,t)});function uf(s){return typeof s=="function"?s():s.current}function FT({label:s,objectOrFn:e,settings:t}){const n=v.useRef(),r=v.useRef(uf(e));return v.useEffect(()=>{const i=window.setInterval(()=>{var o;document.hidden||(o=n.current)===null||o===void 0||o.frame(uf(e))},t.interval);return()=>window.clearInterval(i)},[e,t.interval]),M.createElement(tn,{input:!0},M.createElement(pn,{align:"top"},s),t.graph?M.createElement(NT,{ref:n,initialValue:r.current}):M.createElement($T,{ref:n,initialValue:r.current}))}const LT=["type","label","key"],jT={[cn.BUTTON]:OT,[cn.BUTTON_GROUP]:DT,[cn.MONITOR]:FT},VT=M.memo(({path:s})=>{const[e,{set:t,setSettings:n,disable:r,storeId:i,emitOnEditStart:o,emitOnEditEnd:a}]=Fb(s);if(!e)return null;const{type:c,label:l,key:u}=e,h=Re(e,LT);if(c in cn){const d=jT[c];return M.createElement(d,Ke({label:l,path:s},h))}return c in Ks?M.createElement(CT,Ke({key:i+s,type:c,label:l,storeId:i,path:s,valueKey:u,setValue:t,setSettings:n,disable:r,emitOnEditStart:o,emitOnEditEnd:a},h)):(Wv(We.UNSUPPORTED_INPUT,c,s),null)});function zT({toggle:s,toggled:e,name:t}){return M.createElement(kb,{onClick:()=>s()},M.createElement(Ou,{toggled:e}),M.createElement("div",null,t))}const UT=({name:s,path:e,tree:t})=>{const n=wo(),r=$u(e,s),{collapsed:i,color:o}=n.getFolderSettings(r),[a,c]=v.useState(!i),l=v.useRef(null),u=Bn("colors","folderWidgetColor"),h=Bn("colors","folderTextColor");return v.useLayoutEffect(()=>{l.current.style.setProperty("--leva-colors-folderWidgetColor",o||u),l.current.style.setProperty("--leva-colors-folderTextColor",o||h)},[o,u,h]),M.createElement(wa,{ref:l},M.createElement(zT,{name:s,toggled:a,toggle:()=>c(d=>!d)}),M.createElement(em,{parent:r,tree:t,toggled:a}))},em=M.memo(({isRoot:s=!1,fill:e=!1,flat:t=!1,parent:n,tree:r,toggled:i})=>{const{wrapperRef:o,contentRef:a}=Sk(i),c=wo(),l=([h,d])=>{var f;return(cf(d)?(f=c.getInput(d.path))===null||f===void 0?void 0:f.order:c.getFolderSettings($u(n,h)).order)||0},u=Object.entries(r).sort((h,d)=>l(h)-l(d));return M.createElement(wl,{ref:o,isRoot:s,fill:e,flat:t},M.createElement(f0,{ref:a,isRoot:s,toggled:i},u.map(([h,d])=>cf(d)?M.createElement(VT,{key:d.path,valueKey:d.valueKey,path:d.path}):M.createElement(UT,{key:h,name:h,path:n,tree:d}))))}),BT=ae("div",{position:"relative",fontFamily:"$mono",fontSize:"$root",color:"$rootText",backgroundColor:"$elevation1",variants:{fill:{false:{position:"fixed",top:"10px",right:"10px",zIndex:1e3,width:"$rootWidth"},true:{position:"relative",width:"100%"}},flat:{false:{borderRadius:"$lg",boxShadow:"$level1"}},oneLineLabels:{true:{[`${m0}`]:{gridTemplateColumns:"auto",gridAutoColumns:"minmax(max-content, 1fr)",gridAutoRows:"minmax($sizes$rowHeight), auto)",rowGap:0,columnGap:0,marginTop:"$rowGap"}}},hideTitleBar:{true:{$$titleBarHeight:"0px"},false:{$$titleBarHeight:"$sizes$titleBarHeight"}}},"&,*,*:after,*:before":{boxSizing:"border-box"},"*::selection":{backgroundColor:"$accent2"}}),tm=40,Sa=ae("i",{$flexCenter:"",width:tm,userSelect:"none",cursor:"pointer","> svg":{fill:"$highlight1",transition:"transform 350ms ease, fill 250ms ease"},"&:hover > svg":{fill:"$highlight3"},variants:{active:{true:{"> svg":{fill:"$highlight2"}}}}}),WT=ae("div",{display:"flex",alignItems:"stretch",justifyContent:"space-between",height:"$titleBarHeight",variants:{mode:{drag:{cursor:"grab"}}}}),qT=ae("div",{$flex:"",position:"relative",width:"100%",overflow:"hidden",transition:"height 250ms ease",color:"$highlight3",paddingLeft:"$md",[`> ${Sa}`]:{height:30},variants:{toggled:{true:{height:30},false:{height:0}}}}),HT=ae("input",{$reset:"",flex:1,position:"relative",height:30,width:"100%",backgroundColor:"transparent",fontSize:"10px",borderRadius:"$root","&:focus":{},"&::placeholder":{color:"$highlight2"}}),YT=ae("div",{touchAction:"none",$flexCenter:"",flex:1,"> svg":{fill:"$highlight1"},color:"$highlight1",variants:{drag:{true:{$draggable:"","> svg":{transition:"fill 250ms ease"},"&:hover":{color:"$highlight3"},"&:hover > svg":{fill:"$highlight3"}}},filterEnabled:{false:{paddingRight:tm}}}}),GT=M.forwardRef(({setFilter:s,toggle:e},t)=>{const[n,r]=v.useState(""),i=v.useMemo(()=>t0(s,250),[s]),o=()=>{s(""),r("")},a=c=>{const l=c.currentTarget.value;e(!0),r(l)};return v.useEffect(()=>{i(n)},[n,i]),M.createElement(M.Fragment,null,M.createElement(HT,{ref:t,value:n,placeholder:"[Open filter with CMD+SHIFT+L]",onPointerDown:c=>c.stopPropagation(),onChange:a}),M.createElement(Sa,{onClick:()=>o(),style:{visibility:n?"visible":"hidden"}},M.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"14",width:"14",viewBox:"0 0 20 20",fill:"currentColor"},M.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z",clipRule:"evenodd"}))))});function XT({setFilter:s,onDrag:e,onDragStart:t,onDragEnd:n,toggle:r,toggled:i,title:o,drag:a,filterEnabled:c,from:l}){const[u,h]=v.useState(!1),d=v.useRef(null);v.useEffect(()=>{var m,p;u?(m=d.current)===null||m===void 0||m.focus():(p=d.current)===null||p===void 0||p.blur()},[u]);const f=ko(({offset:[m,p],first:g,last:_})=>{e({x:m,y:p}),g&&t({x:m,y:p}),_&&n({x:m,y:p})},{filterTaps:!0,from:({offset:[m,p]})=>[(l==null?void 0:l.x)||m,(l==null?void 0:l.y)||p]});return v.useEffect(()=>{const m=p=>{p.key==="L"&&p.shiftKey&&p.metaKey&&h(g=>!g)};return window.addEventListener("keydown",m),()=>window.removeEventListener("keydown",m)},[]),M.createElement(M.Fragment,null,M.createElement(WT,{mode:a?"drag":void 0},M.createElement(Sa,{active:!i,onClick:()=>r()},M.createElement(Ou,{toggled:i,width:12,height:8})),M.createElement(YT,Ke({},a?f():{},{drag:a,filterEnabled:c}),o===void 0&&a?M.createElement("svg",{width:"20",height:"10",viewBox:"0 0 28 14",xmlns:"http://www.w3.org/2000/svg"},M.createElement("circle",{cx:"2",cy:"2",r:"2"}),M.createElement("circle",{cx:"14",cy:"2",r:"2"}),M.createElement("circle",{cx:"26",cy:"2",r:"2"}),M.createElement("circle",{cx:"2",cy:"12",r:"2"}),M.createElement("circle",{cx:"14",cy:"12",r:"2"}),M.createElement("circle",{cx:"26",cy:"12",r:"2"})):o),c&&M.createElement(Sa,{active:u,onClick:()=>h(m=>!m)},M.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"20",viewBox:"0 0 20 20"},M.createElement("path",{d:"M9 9a2 2 0 114 0 2 2 0 01-4 0z"}),M.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm1-13a4 4 0 00-3.446 6.032l-2.261 2.26a1 1 0 101.414 1.415l2.261-2.261A4 4 0 1011 5z",clipRule:"evenodd"})))),M.createElement(qT,{toggled:u},M.createElement(GT,{ref:d,setFilter:s,toggle:r})))}const ZT=["store","hidden","theme","collapsed"];function KT(s){let{store:e,hidden:t=!1,theme:n,collapsed:r=!1}=s,i=Re(s,ZT);const o=H0(()=>_b(n),[n]),[a,c]=v.useState(!r),l=typeof r=="object"?!r.collapsed:a,u=v.useMemo(()=>typeof r=="object"?h=>{typeof h=="function"?r.onChange(!h(!r.collapsed)):r.onChange(!h)}:c,[r]);return!e||t?null:M.createElement(Eu.Provider,{value:o},M.createElement(QT,Ke({store:e},i,{toggled:l,setToggle:u,rootClass:o.className})))}const QT=M.memo(({store:s,rootClass:e,fill:t=!1,flat:n=!1,neverHide:r=!1,oneLineLabels:i=!1,titleBar:o={title:void 0,drag:!0,filter:!0,position:void 0,onDrag:void 0,onDragStart:void 0,onDragEnd:void 0},hideCopyButton:a=!1,toggled:c,setToggle:l})=>{var u,h;const d=Ok(s),[f,m]=v.useState(""),p=v.useMemo(()=>TT(d,f),[d,f]),[g,_]=y0(),x=r||d.length>0,k=typeof o=="object"&&o.title||void 0,y=typeof o=="object"&&(u=o.drag)!==null&&u!==void 0?u:!0,b=typeof o=="object"&&(h=o.filter)!==null&&h!==void 0?h:!0,T=typeof o=="object"&&o.position||void 0,E=typeof o=="object"&&o.onDrag||void 0,w=typeof o=="object"&&o.onDragStart||void 0,C=typeof o=="object"&&o.onDragEnd||void 0;return M.useEffect(()=>{_({x:T==null?void 0:T.x,y:T==null?void 0:T.y})},[T,_]),gb(),M.createElement(l0.Provider,{value:{hideCopyButton:a}},M.createElement(BT,{ref:g,className:e,fill:t,flat:n,oneLineLabels:i,hideTitleBar:!o,style:{display:x?"block":"none"}},o&&M.createElement(XT,{onDrag:S=>{_(S),E==null||E(S)},onDragStart:S=>w==null?void 0:w(S),onDragEnd:S=>C==null?void 0:C(S),setFilter:m,toggle:S=>l(R=>S??!R),toggled:c,title:k,drag:y,filterEnabled:b,from:T}),x&&M.createElement(c0.Provider,{value:s},M.createElement(em,{isRoot:!0,fill:t,flat:n,tree:p,toggled:c}))))}),JT=["isRoot"];let Oa=!1,Vs=null;function nm(s){let{isRoot:e=!1}=s,t=Re(s,JT);return v.useEffect(()=>(Oa=!0,!e&&Vs&&(Vs.remove(),Vs=null),()=>{e||(Oa=!1)}),[e]),M.createElement(KT,Ke({store:Q0},t))}function eE(s){v.useEffect(()=>{s&&!Oa&&(Vs||(Vs=document.getElementById("leva__root")||Object.assign(document.createElement("div"),{id:"leva__root"}),document.body&&(document.body.appendChild(Vs),cb(M.createElement(nm,{isRoot:!0}),Vs))),Oa=!0)},[s])}function tE(s,e,t,n,r){let i,o,a,c,l;return typeof s=="string"?(o=s,i=e,Array.isArray(t)?l=t:t&&("store"in t?(c=t,l=n):(a=t,Array.isArray(n)?l=n:(c=n,l=r)))):(i=s,Array.isArray(e)?l=e:(c=e,l=t)),{schema:i,folderName:o,folderSettings:a,hookSettings:c,deps:l||[]}}function nE(s,e,t,n,r){const{folderName:i,schema:o,folderSettings:a,hookSettings:c,deps:l}=tE(s,e,t,n,r),u=typeof o=="function",h=v.useRef(!1),d=v.useRef(!0),f=H0(()=>{h.current=!0;const R=typeof o=="function"?o():o;return i?{[i]:kT(R,a)}:R},l),m=!(c!=null&&c.store);eE(m);const[p]=v.useState(()=>(c==null?void 0:c.store)||Q0),[g,_]=v.useMemo(()=>p.getDataFromSchema(f),[p,f]),[x,k,y,b,T]=v.useMemo(()=>{const R=[],O=[],j={},V={},W={};return Object.values(_).forEach(({path:z,onChange:U,onEditStart:B,onEditEnd:X,transient:K})=>{R.push(z),U?(j[z]=U,K||O.push(z)):O.push(z),B&&(V[z]=B),X&&(W[z]=X)}),[R,O,j,V,W]},[_]),E=v.useMemo(()=>p.orderPaths(x),[x,p]),w=Ak(p,k,g),C=v.useCallback(R=>{const O=Object.entries(R).reduce((j,[V,W])=>Object.assign(j,{[_[V].path]:W}),{});p.set(O,!1)},[p,_]),S=v.useCallback(R=>p.get(_[R].path),[p,_]);return v.useEffect(()=>{const R=!d.current&&h.current;return p.addData(g,R),d.current=!1,h.current=!1,()=>p.disposePaths(E)},[p,E,g]),v.useEffect(()=>{const R=[];return Object.entries(y).forEach(([O,j])=>{j(p.get(O),O,he({initial:!0,get:p.get},p.getInput(O)));const V=p.useStore.subscribe(W=>{const z=W.data[O];return[z.disabled?void 0:z.value,z]},([W,z])=>j(W,O,he({initial:!1,get:p.get},z)),{equalityFn:xo});R.push(V)}),()=>R.forEach(O=>O())},[p,y]),v.useEffect(()=>{const R=[];return Object.entries(b).forEach(([O,j])=>R.push(p.subscribeToEditStart(O,j))),Object.entries(T).forEach(([O,j])=>R.push(p.subscribeToEditEnd(O,j))),()=>R.forEach(O=>O())},[b,T,p]),u?[w,C,S]:w}es(un.SELECT,ex);es(un.IMAGE,cT);es(un.NUMBER,Wb);es(un.COLOR,Vk);es(un.STRING,lx);es(un.BOOLEAN,gx);es(un.INTERVAL,_T);es(un.VECTOR3D,Uk);es(un.VECTOR2D,Zk);const sE={isUserDragging:!1,isUserScrolling:!1,userMovedCamera:!1,isUserScrollingOnHtmlPanel:!1},ds=rp(s=>({...sE,setIsUserDragging:e=>s({isUserDragging:e}),setIsUserScrolling:e=>s({isUserScrolling:e}),setUserMovedCamera:e=>s({userMovedCamera:e}),setIsUserScrollingOnHtmlPanel:e=>s({isUserScrollingOnHtmlPanel:e})})),rE=()=>{const[s,e]=v.useState(""),t=v.useRef(null),{fetchData:n,setAbortRequests:r,seedQuestions:i}=Os(y=>y),[o]=op(y=>[y.setBudget]),{setUniverseQuestionIsOpen:a,setSidebarOpen:c,setShowCollapseButton:l}=go(y=>({setUniverseQuestionIsOpen:y.setUniverseQuestionIsOpen,setSidebarOpen:y.setSidebarOpen,setShowCollapseButton:y.setShowCollapseButton})),u=A_(y=>y.resetAiSummaryAnswer),[h,d]=v.useState([]);v.useEffect(()=>{i&&d(x(i).slice(0,4))},[i]),v.useEffect(()=>{t.current&&t.current.focus()},[]);const f=async y=>{y&&(u(),a(),c(!0),l(!0)),await n(o,r,y)},m=!!s.trim().length,p=async y=>{y.keyCode===13&&y.shiftKey===!1&&m&&(y.preventDefault(),f(s))},g=async y=>{e(y),await f(y)},_=()=>{a(),c(!0),l(!0)},x=y=>{const b=[...y];let T=b.length-1;for(;T>0;){const E=Math.floor(Math.random()*(T+1));[b[T],b[E]]=[b[E],b[T]],T-=1}return b},k=!!s&&s.trim().length>0;return F.jsxs(aE,{children:["Ideas have shapes",F.jsxs(oE,{onKeyDown:p,py:12,tabIndex:-1,children:[F.jsx(iE,{ref:t,onChange:y=>e(y.target.value),placeholder:"What do you want to know?",value:s}),F.jsx(cE,{color:"secondary",disabled:!k,onClick:()=>f(s),variant:"contained",children:k?F.jsxs(F.Fragment,{children:["Search ",F.jsx(Ih,{})]}):F.jsx(Ih,{})})]}),h.length>0&&F.jsx(uE,{children:h.map(y=>F.jsxs(hE,{onClick:()=>g(y),children:[F.jsx(z_,{}),y]},y))}),F.jsx(lE,{"data-testid":"explore-graph-btn",onClick:_,startIcon:F.jsx(U_,{}),children:"Explore Graph"})]})},iE=$e(ry).attrs({maxRows:3})` - background: ${xe.BG1}; - max-width: 700px; - width: 700px; - color: ${xe.white}; - padding: 0 16px 0 16px; - overflow-y: auto !important; - border: none; - resize: none; - outline: none; - border-radius: 12px; - font-family: 'Barlow'; - display: flex; - align-items: center; - text-align: justify; - font-size: 16px; - font-weight: 400; - - &:-moz-placeholder, /* Firefox 18- */ - &::-moz-placeholder, /* Firefox 19+ */ - &:-ms-input-placeholder, /* IE 10+ */ - &::-webkit-input-placeholder, /* Webkit based */ - &::placeholder { - color: #0bf; - } - - &::-webkit-scrollbar { - width: 3px; - } - - &::-webkit-scrollbar-track { - border-radius: 12px; - margin: 13px; - overflow-y: hidden; - } -`,oE=$e(en)` - position: relative; - margin-top: 30px; - background: ${xe.BG1}; - max-width: 702px; - width: 702px; - color: ${xe.white}; - min-height: 150px; - border: 1px solid ${xe.modalShield}; - resize: none; - outline: none; - border-radius: 12px; - box-shadow: 0px 1px 6px 0px rgba(0, 0, 0, 0.5); -`,aE=$e(en)` - background: #16161de3; - position: absolute; - left: 0; - right: 0; - bottom: 0; - top: 0; - color: #fff; - align-items: center; - justify-content: center; - font-size: 32px; - font-style: normal; - font-weight: 700; - line-height: 16px; - font-family: 'Barlow'; -`,cE=$e(ip)` - && { - position: absolute; - bottom: 16px; - right: 16px; - height: 32px; - border-radius: 16px; - min-width: 32px; - } - - &&.MuiButton-root { - padding: 0 10px 0 12px; - } - - svg { - margin-top: 1px; - width: 11px; - height: 11px; - } -`,lE=$e(ip)` - && { - position: absolute; - bottom: 20px; - right: 20px; - border-radius: 16px; - } -`,uE=$e.div` - display: grid; - grid-template-columns: repeat(2, 1fr); - gap: 10px; - margin-top: 20px; - max-width: 702px; - width: 100%; -`,hE=$e.div` - background: ${xe.BG1}; - color: ${xe.white}; - padding: 15px 12px; - border-radius: 8px; - cursor: pointer; - display: flex; - align-items: center; - justify-content: flex-start; - text-align: left; - font-family: Barlow; - font-size: 14px; - font-weight: 400; - gap: 10px; - &:hover { - background: ${xe.SEEDQUESTION_HOVER}; - } - - &:active { - background: ${xe.SEEDQUESTION}; - } - svg { - width: 20px; - height: 20px; - } - - path { - fill: ${xe.modalWhiteOverlayBg}; - } -`,dE=new ge(0,0,0),hf=1,fE=16777215,pE=50,mE=(s,e)=>{var i,o;if(!(s!=null&&s.ref_id)||!(e!=null&&e.ref_id))return!1;let t=!1;const n=s.guests,r=e.guests;return((i=s.children)!=null&&i.includes(e.ref_id)||(o=e.children)!=null&&o.includes(s.ref_id))&&(t=!0),(n!=null&&n.find(a=>a.ref_id===e.ref_id)||r!=null&&r.find(a=>a.ref_id===s.ref_id))&&(t=!0),t},Mi=new ge(0,0,0),df=100,gE=600,_E=2e3,fs={x:0,y:0,z:200},sm="14.8.49",ff=(s,e,t)=>({endTime:e,insertTime:t,type:"exponentialRampToValue",value:s}),pf=(s,e,t)=>({endTime:e,insertTime:t,type:"linearRampToValue",value:s}),Fl=(s,e)=>({startTime:e,type:"setValue",value:s}),rm=(s,e,t)=>({duration:t,startTime:e,type:"setValueCurve",values:s}),im=(s,e,{startTime:t,target:n,timeConstant:r})=>n+(e-n)*Math.exp((t-s)/r),kr=s=>s.type==="exponentialRampToValue",Aa=s=>s.type==="linearRampToValue",cs=s=>kr(s)||Aa(s),Fu=s=>s.type==="setValue",Ln=s=>s.type==="setValueCurve",Ra=(s,e,t,n)=>{const r=s[e];return r===void 0?n:cs(r)||Fu(r)?r.value:Ln(r)?r.values[r.values.length-1]:im(t,Ra(s,e-1,r.startTime,n),r)},mf=(s,e,t,n,r)=>t===void 0?[n.insertTime,r]:cs(t)?[t.endTime,t.value]:Fu(t)?[t.startTime,t.value]:Ln(t)?[t.startTime+t.duration,t.values[t.values.length-1]]:[t.startTime,Ra(s,e-1,t.startTime,r)],Ll=s=>s.type==="cancelAndHold",jl=s=>s.type==="cancelScheduledValues",is=s=>Ll(s)||jl(s)?s.cancelTime:kr(s)||Aa(s)?s.endTime:s.startTime,gf=(s,e,t,{endTime:n,value:r})=>t===r?r:0t+(s-e)/(n-e)*(r-t),yE=(s,e)=>{const t=Math.floor(e),n=Math.ceil(e);return t===n?s[t]:(1-(e-t))*s[t]+(1-(n-e))*s[n]},vE=(s,{duration:e,startTime:t,values:n})=>{const r=(s-t)/e*(n.length-1);return yE(n,r)},Jo=s=>s.type==="setTarget";class bE{constructor(e){this._automationEvents=[],this._currenTime=0,this._defaultValue=e}[Symbol.iterator](){return this._automationEvents[Symbol.iterator]()}add(e){const t=is(e);if(Ll(e)||jl(e)){const n=this._automationEvents.findIndex(i=>jl(e)&&Ln(i)?i.startTime+i.duration>=t:is(i)>=t),r=this._automationEvents[n];if(n!==-1&&(this._automationEvents=this._automationEvents.slice(0,n)),Ll(e)){const i=this._automationEvents[this._automationEvents.length-1];if(r!==void 0&&cs(r)){if(i!==void 0&&Jo(i))throw new Error("The internal list is malformed.");const o=i===void 0?r.insertTime:Ln(i)?i.startTime+i.duration:is(i),a=i===void 0?this._defaultValue:Ln(i)?i.values[i.values.length-1]:i.value,c=kr(r)?gf(t,o,a,r):_f(t,o,a,r),l=kr(r)?ff(c,t,this._currenTime):pf(c,t,this._currenTime);this._automationEvents.push(l)}if(i!==void 0&&Jo(i)&&this._automationEvents.push(Fl(this.getValue(t),t)),i!==void 0&&Ln(i)&&i.startTime+i.duration>t){const o=t-i.startTime,a=(i.values.length-1)/i.duration,c=Math.max(2,1+Math.ceil(o*a)),l=o/(c-1)*a,u=i.values.slice(0,c);if(l<1)for(let h=1;his(o)>t),r=n===-1?this._automationEvents[this._automationEvents.length-1]:this._automationEvents[n-1];if(r!==void 0&&Ln(r)&&is(r)+r.duration>t)return!1;const i=kr(e)?ff(e.value,e.endTime,this._currenTime):Aa(e)?pf(e.value,t,this._currenTime):e;if(n===-1)this._automationEvents.push(i);else{if(Ln(e)&&t+e.duration>is(this._automationEvents[n]))return!1;this._automationEvents.splice(n,0,i)}}return!0}flush(e){const t=this._automationEvents.findIndex(n=>is(n)>e);if(t>1){const n=this._automationEvents.slice(t-1),r=n[0];Jo(r)&&n.unshift(Fl(Ra(this._automationEvents,t-2,r.startTime,this._defaultValue),r.startTime)),this._automationEvents=n}}getValue(e){if(this._automationEvents.length===0)return this._defaultValue;const t=this._automationEvents.findIndex(o=>is(o)>e),n=this._automationEvents[t],r=(t===-1?this._automationEvents.length:t)-1,i=this._automationEvents[r];if(i!==void 0&&Jo(i)&&(n===void 0||!cs(n)||n.insertTime>e))return im(e,Ra(this._automationEvents,r-1,i.startTime,this._defaultValue),i);if(i!==void 0&&Fu(i)&&(n===void 0||!cs(n)))return i.value;if(i!==void 0&&Ln(i)&&(n===void 0||!cs(n)||i.startTime+i.duration>e))return e({cancelTime:s,type:"cancelAndHold"}),wE=s=>({cancelTime:s,type:"cancelScheduledValues"}),kE=(s,e)=>({endTime:e,type:"exponentialRampToValue",value:s}),TE=(s,e)=>({endTime:e,type:"linearRampToValue",value:s}),EE=(s,e,t)=>({startTime:e,target:s,timeConstant:t,type:"setTarget"}),CE=()=>new DOMException("","AbortError"),SE=s=>(e,t,[n,r,i],o)=>{s(e[r],[t,n,i],a=>a[0]===t&&a[1]===n,o)},OE=s=>(e,t,n)=>{const r=[];for(let i=0;i(e,t)=>{s.set(e,{activeInputs:new Set,passiveInputs:new WeakMap,renderer:t})},jr=new WeakSet,om=new WeakMap,Lu=new WeakMap,am=new WeakMap,ju=new WeakMap,dc=new WeakMap,cm=new WeakMap,Vl=new WeakMap,zl=new WeakMap,Ul=new WeakMap,lm={construct(){return lm}},RE=s=>{try{const e=new Proxy(s,lm);new e}catch{return!1}return!0},yf=/^import(?:(?:[\s]+[\w]+|(?:[\s]+[\w]+[\s]*,)?[\s]*\{[\s]*[\w]+(?:[\s]+as[\s]+[\w]+)?(?:[\s]*,[\s]*[\w]+(?:[\s]+as[\s]+[\w]+)?)*[\s]*}|(?:[\s]+[\w]+[\s]*,)?[\s]*\*[\s]+as[\s]+[\w]+)[\s]+from)?(?:[\s]*)("([^"\\]|\\.)+"|'([^'\\]|\\.)+')(?:[\s]*);?/,vf=(s,e)=>{const t=[];let n=s.replace(/^[\s]+/,""),r=n.match(yf);for(;r!==null;){const i=r[1].slice(1,-1),o=r[0].replace(/([\s]+)?;?$/,"").replace(i,new URL(i,e).toString());t.push(o),n=n.slice(r[0].length).replace(/^[\s]+/,""),r=n.match(yf)}return[t.join(";"),n]},bf=s=>{if(s!==void 0&&!Array.isArray(s))throw new TypeError("The parameterDescriptors property of given value for processorCtor is not an array.")},xf=s=>{if(!RE(s))throw new TypeError("The given value for processorCtor should be a constructor.");if(s.prototype===null||typeof s.prototype!="object")throw new TypeError("The given value for processorCtor should have a prototype.")},PE=(s,e,t,n,r,i,o,a,c,l,u,h,d)=>{let f=0;return(m,p,g={credentials:"omit"})=>{const _=u.get(m);if(_!==void 0&&_.has(p))return Promise.resolve();const x=l.get(m);if(x!==void 0){const b=x.get(p);if(b!==void 0)return b}const k=i(m),y=k.audioWorklet===void 0?r(p).then(([b,T])=>{const[E,w]=vf(b,T),C=`${E};((a,b)=>{(a[b]=a[b]||[]).push((AudioWorkletProcessor,global,registerProcessor,sampleRate,self,window)=>{${w} -})})(window,'_AWGS')`;return t(C)}).then(()=>{const b=d._AWGS.pop();if(b===void 0)throw new SyntaxError;n(k.currentTime,k.sampleRate,()=>b(class{},void 0,(T,E)=>{if(T.trim()==="")throw e();const w=zl.get(k);if(w!==void 0){if(w.has(T))throw e();xf(E),bf(E.parameterDescriptors),w.set(T,E)}else xf(E),bf(E.parameterDescriptors),zl.set(k,new Map([[T,E]]))},k.sampleRate,void 0,void 0))}):Promise.all([r(p),Promise.resolve(s(h,h))]).then(([[b,T],E])=>{const w=f+1;f=w;const[C,S]=vf(b,T),V=`${C};((AudioWorkletProcessor,registerProcessor)=>{${S} -})(${E?"AudioWorkletProcessor":"class extends AudioWorkletProcessor {__b=new WeakSet();constructor(){super();(p=>p.postMessage=(q=>(m,t)=>q.call(p,m,t?t.filter(u=>!this.__b.has(u)):t))(p.postMessage))(this.port)}}"},(n,p)=>registerProcessor(n,class extends p{${E?"":"__c = (a) => a.forEach(e=>this.__b.add(e.buffer));"}process(i,o,p){${E?"":"i.forEach(this.__c);o.forEach(this.__c);this.__c(Object.values(p));"}return super.process(i.map(j=>j.some(k=>k.length===0)?[]:j),o,p)}}));registerProcessor('__sac${w}',class extends AudioWorkletProcessor{process(){return !1}})`,W=new Blob([V],{type:"application/javascript; charset=utf-8"}),z=URL.createObjectURL(W);return k.audioWorklet.addModule(z,g).then(()=>{if(a(k))return k;const U=o(k);return U.audioWorklet.addModule(z,g).then(()=>U)}).then(U=>{if(c===null)throw new SyntaxError;try{new c(U,`__sac${w}`)}catch{throw new SyntaxError}}).finally(()=>URL.revokeObjectURL(z))});return x===void 0?l.set(m,new Map([[p,y]])):x.set(p,y),y.then(()=>{const b=u.get(m);b===void 0?u.set(m,new Set([p])):b.add(p)}).finally(()=>{const b=l.get(m);b!==void 0&&b.delete(p)}),y}},hn=(s,e)=>{const t=s.get(e);if(t===void 0)throw new Error("A value with the given key could not be found.");return t},fc=(s,e)=>{const t=Array.from(s).filter(e);if(t.length>1)throw Error("More than one element was found.");if(t.length===0)throw Error("No element was found.");const[n]=t;return s.delete(n),n},um=(s,e,t,n)=>{const r=hn(s,e),i=fc(r,o=>o[0]===t&&o[1]===n);return r.size===0&&s.delete(e),i},Co=s=>hn(cm,s),Vr=s=>{if(jr.has(s))throw new Error("The AudioNode is already stored.");jr.add(s),Co(s).forEach(e=>e(!0))},hm=s=>"port"in s,So=s=>{if(!jr.has(s))throw new Error("The AudioNode is not stored.");jr.delete(s),Co(s).forEach(e=>e(!1))},Bl=(s,e)=>{!hm(s)&&e.every(t=>t.size===0)&&So(s)},DE=(s,e,t,n,r,i,o,a,c,l,u,h,d)=>{const f=new WeakMap;return(m,p,g,_,x)=>{const{activeInputs:k,passiveInputs:y}=i(p),{outputs:b}=i(m),T=a(m),E=w=>{const C=c(p),S=c(m);if(w){const R=um(y,m,g,_);s(k,m,R,!1),!x&&!h(m)&&t(S,C,g,_),d(p)&&Vr(p)}else{const R=n(k,m,g,_);e(y,_,R,!1),!x&&!h(m)&&r(S,C,g,_);const O=o(p);if(O===0)u(p)&&Bl(p,k);else{const j=f.get(p);j!==void 0&&clearTimeout(j),f.set(p,setTimeout(()=>{u(p)&&Bl(p,k)},O*1e3))}}};return l(b,[p,g,_],w=>w[0]===p&&w[1]===g&&w[2]===_,!0)?(T.add(E),u(m)?s(k,m,[g,_,E],!0):e(y,_,[m,g,E],!0),!0):!1}},ME=s=>(e,t,[n,r,i],o)=>{const a=e.get(n);a===void 0?e.set(n,new Set([[r,t,i]])):s(a,[r,t,i],c=>c[0]===r&&c[1]===t,o)},IE=s=>(e,t)=>{const n=s(e,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:0});t.connect(n).connect(e.destination);const r=()=>{t.removeEventListener("ended",r),t.disconnect(n),n.disconnect()};t.addEventListener("ended",r)},NE=s=>(e,t)=>{s(e).add(t)},$E={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",fftSize:2048,maxDecibels:-30,minDecibels:-100,smoothingTimeConstant:.8},FE=(s,e,t,n,r,i)=>class extends s{constructor(a,c){const l=r(a),u={...$E,...c},h=n(l,u),d=i(l)?e():null;super(a,!1,h,d),this._nativeAnalyserNode=h}get fftSize(){return this._nativeAnalyserNode.fftSize}set fftSize(a){this._nativeAnalyserNode.fftSize=a}get frequencyBinCount(){return this._nativeAnalyserNode.frequencyBinCount}get maxDecibels(){return this._nativeAnalyserNode.maxDecibels}set maxDecibels(a){const c=this._nativeAnalyserNode.maxDecibels;if(this._nativeAnalyserNode.maxDecibels=a,!(a>this._nativeAnalyserNode.minDecibels))throw this._nativeAnalyserNode.maxDecibels=c,t()}get minDecibels(){return this._nativeAnalyserNode.minDecibels}set minDecibels(a){const c=this._nativeAnalyserNode.minDecibels;if(this._nativeAnalyserNode.minDecibels=a,!(this._nativeAnalyserNode.maxDecibels>a))throw this._nativeAnalyserNode.minDecibels=c,t()}get smoothingTimeConstant(){return this._nativeAnalyserNode.smoothingTimeConstant}set smoothingTimeConstant(a){this._nativeAnalyserNode.smoothingTimeConstant=a}getByteFrequencyData(a){this._nativeAnalyserNode.getByteFrequencyData(a)}getByteTimeDomainData(a){this._nativeAnalyserNode.getByteTimeDomainData(a)}getFloatFrequencyData(a){this._nativeAnalyserNode.getFloatFrequencyData(a)}getFloatTimeDomainData(a){this._nativeAnalyserNode.getFloatTimeDomainData(a)}},yt=(s,e)=>s.context===e,LE=(s,e,t)=>()=>{const n=new WeakMap,r=async(i,o)=>{let a=e(i);if(!yt(a,o)){const l={channelCount:a.channelCount,channelCountMode:a.channelCountMode,channelInterpretation:a.channelInterpretation,fftSize:a.fftSize,maxDecibels:a.maxDecibels,minDecibels:a.minDecibels,smoothingTimeConstant:a.smoothingTimeConstant};a=s(o,l)}return n.set(o,a),await t(i,o,a),a};return{render(i,o){const a=n.get(o);return a!==void 0?Promise.resolve(a):r(i,o)}}},Pa=s=>{try{s.copyToChannel(new Float32Array(1),0,-1)}catch{return!1}return!0},Rn=()=>new DOMException("","IndexSizeError"),Vu=s=>{s.getChannelData=(e=>t=>{try{return e.call(s,t)}catch(n){throw n.code===12?Rn():n}})(s.getChannelData)},jE={numberOfChannels:1},VE=(s,e,t,n,r,i,o,a)=>{let c=null;return class dm{constructor(u){if(r===null)throw new Error("Missing the native OfflineAudioContext constructor.");const{length:h,numberOfChannels:d,sampleRate:f}={...jE,...u};c===null&&(c=new r(1,1,44100));const m=n!==null&&e(i,i)?new n({length:h,numberOfChannels:d,sampleRate:f}):c.createBuffer(d,h,f);if(m.numberOfChannels===0)throw t();return typeof m.copyFromChannel!="function"?(o(m),Vu(m)):e(Pa,()=>Pa(m))||a(m),s.add(m),m}static[Symbol.hasInstance](u){return u!==null&&typeof u=="object"&&Object.getPrototypeOf(u)===dm.prototype||s.has(u)}}},Ct=-34028234663852886e22,bt=-Ct,Wn=s=>jr.has(s),zE={buffer:null,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",loop:!1,loopEnd:0,loopStart:0,playbackRate:1},UE=(s,e,t,n,r,i,o,a)=>class extends s{constructor(l,u){const h=i(l),d={...zE,...u},f=r(h,d),m=o(h),p=m?e():null;super(l,!1,f,p),this._audioBufferSourceNodeRenderer=p,this._isBufferNullified=!1,this._isBufferSet=d.buffer!==null,this._nativeAudioBufferSourceNode=f,this._onended=null,this._playbackRate=t(this,m,f.playbackRate,bt,Ct)}get buffer(){return this._isBufferNullified?null:this._nativeAudioBufferSourceNode.buffer}set buffer(l){if(this._nativeAudioBufferSourceNode.buffer=l,l!==null){if(this._isBufferSet)throw n();this._isBufferSet=!0}}get loop(){return this._nativeAudioBufferSourceNode.loop}set loop(l){this._nativeAudioBufferSourceNode.loop=l}get loopEnd(){return this._nativeAudioBufferSourceNode.loopEnd}set loopEnd(l){this._nativeAudioBufferSourceNode.loopEnd=l}get loopStart(){return this._nativeAudioBufferSourceNode.loopStart}set loopStart(l){this._nativeAudioBufferSourceNode.loopStart=l}get onended(){return this._onended}set onended(l){const u=typeof l=="function"?a(this,l):null;this._nativeAudioBufferSourceNode.onended=u;const h=this._nativeAudioBufferSourceNode.onended;this._onended=h!==null&&h===u?l:h}get playbackRate(){return this._playbackRate}start(l=0,u=0,h){if(this._nativeAudioBufferSourceNode.start(l,u,h),this._audioBufferSourceNodeRenderer!==null&&(this._audioBufferSourceNodeRenderer.start=h===void 0?[l,u]:[l,u,h]),this.context.state!=="closed"){Vr(this);const d=()=>{this._nativeAudioBufferSourceNode.removeEventListener("ended",d),Wn(this)&&So(this)};this._nativeAudioBufferSourceNode.addEventListener("ended",d)}}stop(l=0){this._nativeAudioBufferSourceNode.stop(l),this._audioBufferSourceNodeRenderer!==null&&(this._audioBufferSourceNodeRenderer.stop=l)}},BE=(s,e,t,n,r)=>()=>{const i=new WeakMap;let o=null,a=null;const c=async(l,u)=>{let h=t(l);const d=yt(h,u);if(!d){const f={buffer:h.buffer,channelCount:h.channelCount,channelCountMode:h.channelCountMode,channelInterpretation:h.channelInterpretation,loop:h.loop,loopEnd:h.loopEnd,loopStart:h.loopStart,playbackRate:h.playbackRate.value};h=e(u,f),o!==null&&h.start(...o),a!==null&&h.stop(a)}return i.set(u,h),d?await s(u,l.playbackRate,h.playbackRate):await n(u,l.playbackRate,h.playbackRate),await r(l,u,h),h};return{set start(l){o=l},set stop(l){a=l},render(l,u){const h=i.get(u);return h!==void 0?Promise.resolve(h):c(l,u)}}},WE=s=>"playbackRate"in s,qE=s=>"frequency"in s&&"gain"in s,HE=s=>"offset"in s,YE=s=>!("frequency"in s)&&"gain"in s,GE=s=>"detune"in s&&"frequency"in s,XE=s=>"pan"in s,kt=s=>hn(om,s),Oo=s=>hn(am,s),Wl=(s,e)=>{const{activeInputs:t}=kt(s);t.forEach(r=>r.forEach(([i])=>{e.includes(s)||Wl(i,[...e,s])}));const n=WE(s)?[s.playbackRate]:hm(s)?Array.from(s.parameters.values()):qE(s)?[s.Q,s.detune,s.frequency,s.gain]:HE(s)?[s.offset]:YE(s)?[s.gain]:GE(s)?[s.detune,s.frequency]:XE(s)?[s.pan]:[];for(const r of n){const i=Oo(r);i!==void 0&&i.activeInputs.forEach(([o])=>Wl(o,e))}Wn(s)&&So(s)},fm=s=>{Wl(s.destination,[])},ZE=s=>s===void 0||typeof s=="number"||typeof s=="string"&&(s==="balanced"||s==="interactive"||s==="playback"),KE=(s,e,t,n,r,i,o,a,c)=>class extends s{constructor(u={}){if(c===null)throw new Error("Missing the native AudioContext constructor.");let h;try{h=new c(u)}catch(m){throw m.code===12&&m.message==="sampleRate is not in range"?t():m}if(h===null)throw n();if(!ZE(u.latencyHint))throw new TypeError(`The provided value '${u.latencyHint}' is not a valid enum value of type AudioContextLatencyCategory.`);if(u.sampleRate!==void 0&&h.sampleRate!==u.sampleRate)throw t();super(h,2);const{latencyHint:d}=u,{sampleRate:f}=h;if(this._baseLatency=typeof h.baseLatency=="number"?h.baseLatency:d==="balanced"?512/f:d==="interactive"||d===void 0?256/f:d==="playback"?1024/f:Math.max(2,Math.min(128,Math.round(d*f/128)))*128/f,this._nativeAudioContext=h,c.name==="webkitAudioContext"?(this._nativeGainNode=h.createGain(),this._nativeOscillatorNode=h.createOscillator(),this._nativeGainNode.gain.value=1e-37,this._nativeOscillatorNode.connect(this._nativeGainNode).connect(h.destination),this._nativeOscillatorNode.start()):(this._nativeGainNode=null,this._nativeOscillatorNode=null),this._state=null,h.state==="running"){this._state="suspended";const m=()=>{this._state==="suspended"&&(this._state=null),h.removeEventListener("statechange",m)};h.addEventListener("statechange",m)}}get baseLatency(){return this._baseLatency}get state(){return this._state!==null?this._state:this._nativeAudioContext.state}close(){return this.state==="closed"?this._nativeAudioContext.close().then(()=>{throw e()}):(this._state==="suspended"&&(this._state=null),this._nativeAudioContext.close().then(()=>{this._nativeGainNode!==null&&this._nativeOscillatorNode!==null&&(this._nativeOscillatorNode.stop(),this._nativeGainNode.disconnect(),this._nativeOscillatorNode.disconnect()),fm(this)}))}createMediaElementSource(u){return new r(this,{mediaElement:u})}createMediaStreamDestination(){return new i(this)}createMediaStreamSource(u){return new o(this,{mediaStream:u})}createMediaStreamTrackSource(u){return new a(this,{mediaStreamTrack:u})}resume(){return this._state==="suspended"?new Promise((u,h)=>{const d=()=>{this._nativeAudioContext.removeEventListener("statechange",d),this._nativeAudioContext.state==="running"?u():this.resume().then(u,h)};this._nativeAudioContext.addEventListener("statechange",d)}):this._nativeAudioContext.resume().catch(u=>{throw u===void 0||u.code===15?e():u})}suspend(){return this._nativeAudioContext.suspend().catch(u=>{throw u===void 0?e():u})}},QE=(s,e,t,n,r,i,o,a)=>class extends s{constructor(l,u){const h=i(l),d=o(h),f=r(h,u,d),m=d?e(a):null;super(l,!1,f,m),this._isNodeOfNativeOfflineAudioContext=d,this._nativeAudioDestinationNode=f}get channelCount(){return this._nativeAudioDestinationNode.channelCount}set channelCount(l){if(this._isNodeOfNativeOfflineAudioContext)throw n();if(l>this._nativeAudioDestinationNode.maxChannelCount)throw t();this._nativeAudioDestinationNode.channelCount=l}get channelCountMode(){return this._nativeAudioDestinationNode.channelCountMode}set channelCountMode(l){if(this._isNodeOfNativeOfflineAudioContext)throw n();this._nativeAudioDestinationNode.channelCountMode=l}get maxChannelCount(){return this._nativeAudioDestinationNode.maxChannelCount}},JE=s=>{const e=new WeakMap,t=async(n,r)=>{const i=r.destination;return e.set(r,i),await s(n,r,i),i};return{render(n,r){const i=e.get(r);return i!==void 0?Promise.resolve(i):t(n,r)}}},eC=(s,e,t,n,r,i,o,a)=>(c,l)=>{const u=l.listener,h=()=>{const b=new Float32Array(1),T=e(l,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:9}),E=o(l);let w=!1,C=[0,0,-1,0,1,0],S=[0,0,0];const R=()=>{if(w)return;w=!0;const W=n(l,256,9,0);W.onaudioprocess=({inputBuffer:z})=>{const U=[i(z,b,0),i(z,b,1),i(z,b,2),i(z,b,3),i(z,b,4),i(z,b,5)];U.some((X,K)=>X!==C[K])&&(u.setOrientation(...U),C=U);const B=[i(z,b,6),i(z,b,7),i(z,b,8)];B.some((X,K)=>X!==S[K])&&(u.setPosition(...B),S=B)},T.connect(W)},O=W=>z=>{z!==C[W]&&(C[W]=z,u.setOrientation(...C))},j=W=>z=>{z!==S[W]&&(S[W]=z,u.setPosition(...S))},V=(W,z,U)=>{const B=t(l,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",offset:z});B.connect(T,0,W),B.start(),Object.defineProperty(B.offset,"defaultValue",{get(){return z}});const X=s({context:c},E,B.offset,bt,Ct);return a(X,"value",K=>()=>K.call(X),K=>J=>{try{K.call(X,J)}catch(N){if(N.code!==9)throw N}R(),E&&U(J)}),X.cancelAndHoldAtTime=(K=>E?()=>{throw r()}:(...J)=>{const N=K.apply(X,J);return R(),N})(X.cancelAndHoldAtTime),X.cancelScheduledValues=(K=>E?()=>{throw r()}:(...J)=>{const N=K.apply(X,J);return R(),N})(X.cancelScheduledValues),X.exponentialRampToValueAtTime=(K=>E?()=>{throw r()}:(...J)=>{const N=K.apply(X,J);return R(),N})(X.exponentialRampToValueAtTime),X.linearRampToValueAtTime=(K=>E?()=>{throw r()}:(...J)=>{const N=K.apply(X,J);return R(),N})(X.linearRampToValueAtTime),X.setTargetAtTime=(K=>E?()=>{throw r()}:(...J)=>{const N=K.apply(X,J);return R(),N})(X.setTargetAtTime),X.setValueAtTime=(K=>E?()=>{throw r()}:(...J)=>{const N=K.apply(X,J);return R(),N})(X.setValueAtTime),X.setValueCurveAtTime=(K=>E?()=>{throw r()}:(...J)=>{const N=K.apply(X,J);return R(),N})(X.setValueCurveAtTime),X};return{forwardX:V(0,0,O(0)),forwardY:V(1,0,O(1)),forwardZ:V(2,-1,O(2)),positionX:V(6,0,j(0)),positionY:V(7,0,j(1)),positionZ:V(8,0,j(2)),upX:V(3,0,O(3)),upY:V(4,1,O(4)),upZ:V(5,0,O(5))}},{forwardX:d,forwardY:f,forwardZ:m,positionX:p,positionY:g,positionZ:_,upX:x,upY:k,upZ:y}=u.forwardX===void 0?h():u;return{get forwardX(){return d},get forwardY(){return f},get forwardZ(){return m},get positionX(){return p},get positionY(){return g},get positionZ(){return _},get upX(){return x},get upY(){return k},get upZ(){return y}}},Da=s=>"context"in s,Ao=s=>Da(s[0]),or=(s,e,t,n)=>{for(const r of s)if(t(r)){if(n)return!1;throw Error("The set contains at least one similar element.")}return s.add(e),!0},wf=(s,e,[t,n],r)=>{or(s,[e,t,n],i=>i[0]===e&&i[1]===t,r)},kf=(s,[e,t,n],r)=>{const i=s.get(e);i===void 0?s.set(e,new Set([[t,n]])):or(i,[t,n],o=>o[0]===t,r)},si=s=>"inputs"in s,Ma=(s,e,t,n)=>{if(si(e)){const r=e.inputs[n];return s.connect(r,t,0),[r,t,0]}return s.connect(e,t,n),[e,t,n]},pm=(s,e,t)=>{for(const n of s)if(n[0]===e&&n[1]===t)return s.delete(n),n;return null},tC=(s,e,t)=>fc(s,n=>n[0]===e&&n[1]===t),mm=(s,e)=>{if(!Co(s).delete(e))throw new Error("Missing the expected event listener.")},gm=(s,e,t)=>{const n=hn(s,e),r=fc(n,i=>i[0]===t);return n.size===0&&s.delete(e),r},Ia=(s,e,t,n)=>{si(e)?s.disconnect(e.inputs[n],t,0):s.disconnect(e,t,n)},ze=s=>hn(Lu,s),Bi=s=>hn(ju,s),Qs=s=>Vl.has(s),la=s=>!jr.has(s),Tf=(s,e)=>new Promise(t=>{if(e!==null)t(!0);else{const n=s.createScriptProcessor(256,1,1),r=s.createGain(),i=s.createBuffer(1,2,44100),o=i.getChannelData(0);o[0]=1,o[1]=1;const a=s.createBufferSource();a.buffer=i,a.loop=!0,a.connect(n).connect(s.destination),a.connect(r),a.disconnect(r),n.onaudioprocess=c=>{const l=c.inputBuffer.getChannelData(0);Array.prototype.some.call(l,u=>u===1)?t(!0):t(!1),a.stop(),n.onaudioprocess=null,a.disconnect(n),n.disconnect(s.destination)},a.start()}}),Jc=(s,e)=>{const t=new Map;for(const n of s)for(const r of n){const i=t.get(r);t.set(r,i===void 0?1:i+1)}t.forEach((n,r)=>e(r,n))},Na=s=>"context"in s,nC=s=>{const e=new Map;s.connect=(t=>(n,r=0,i=0)=>{const o=Na(n)?t(n,r,i):t(n,r),a=e.get(n);return a===void 0?e.set(n,[{input:i,output:r}]):a.every(c=>c.input!==i||c.output!==r)&&a.push({input:i,output:r}),o})(s.connect.bind(s)),s.disconnect=(t=>(n,r,i)=>{if(t.apply(s),n===void 0)e.clear();else if(typeof n=="number")for(const[o,a]of e){const c=a.filter(l=>l.output!==n);c.length===0?e.delete(o):e.set(o,c)}else if(e.has(n))if(r===void 0)e.delete(n);else{const o=e.get(n);if(o!==void 0){const a=o.filter(c=>c.output!==r&&(c.input!==i||i===void 0));a.length===0?e.delete(n):e.set(n,a)}}for(const[o,a]of e)a.forEach(c=>{Na(o)?s.connect(o,c.output,c.input):s.connect(o,c.output)})})(s.disconnect)},sC=(s,e,t,n)=>{const{activeInputs:r,passiveInputs:i}=Oo(e),{outputs:o}=kt(s),a=Co(s),c=l=>{const u=ze(s),h=Bi(e);if(l){const d=gm(i,s,t);wf(r,s,d,!1),!n&&!Qs(s)&&u.connect(h,t)}else{const d=tC(r,s,t);kf(i,d,!1),!n&&!Qs(s)&&u.disconnect(h,t)}};return or(o,[e,t],l=>l[0]===e&&l[1]===t,!0)?(a.add(c),Wn(s)?wf(r,s,[t,c],!0):kf(i,[s,t,c],!0),!0):!1},rC=(s,e,t,n)=>{const{activeInputs:r,passiveInputs:i}=kt(e),o=pm(r[n],s,t);return o===null?[um(i,s,t,n)[2],!1]:[o[2],!0]},iC=(s,e,t)=>{const{activeInputs:n,passiveInputs:r}=Oo(e),i=pm(n,s,t);return i===null?[gm(r,s,t)[1],!1]:[i[2],!0]},zu=(s,e,t,n,r)=>{const[i,o]=rC(s,t,n,r);if(i!==null&&(mm(s,i),o&&!e&&!Qs(s)&&Ia(ze(s),ze(t),n,r)),Wn(t)){const{activeInputs:a}=kt(t);Bl(t,a)}},Uu=(s,e,t,n)=>{const[r,i]=iC(s,t,n);r!==null&&(mm(s,r),i&&!e&&!Qs(s)&&ze(s).disconnect(Bi(t),n))},oC=(s,e)=>{const t=kt(s),n=[];for(const r of t.outputs)Ao(r)?zu(s,e,...r):Uu(s,e,...r),n.push(r[0]);return t.outputs.clear(),n},aC=(s,e,t)=>{const n=kt(s),r=[];for(const i of n.outputs)i[1]===t&&(Ao(i)?zu(s,e,...i):Uu(s,e,...i),r.push(i[0]),n.outputs.delete(i));return r},cC=(s,e,t,n,r)=>{const i=kt(s);return Array.from(i.outputs).filter(o=>o[0]===t&&(n===void 0||o[1]===n)&&(r===void 0||o[2]===r)).map(o=>(Ao(o)?zu(s,e,...o):Uu(s,e,...o),i.outputs.delete(o),o[0]))},lC=(s,e,t,n,r,i,o,a,c,l,u,h,d,f,m,p)=>class extends l{constructor(_,x,k,y){super(k),this._context=_,this._nativeAudioNode=k;const b=u(_);h(b)&&t(Tf,()=>Tf(b,p))!==!0&&nC(k),Lu.set(this,k),cm.set(this,new Set),_.state!=="closed"&&x&&Vr(this),s(this,y,k)}get channelCount(){return this._nativeAudioNode.channelCount}set channelCount(_){this._nativeAudioNode.channelCount=_}get channelCountMode(){return this._nativeAudioNode.channelCountMode}set channelCountMode(_){this._nativeAudioNode.channelCountMode=_}get channelInterpretation(){return this._nativeAudioNode.channelInterpretation}set channelInterpretation(_){this._nativeAudioNode.channelInterpretation=_}get context(){return this._context}get numberOfInputs(){return this._nativeAudioNode.numberOfInputs}get numberOfOutputs(){return this._nativeAudioNode.numberOfOutputs}connect(_,x=0,k=0){if(x<0||x>=this._nativeAudioNode.numberOfOutputs)throw r();const y=u(this._context),b=m(y);if(d(_)||f(_))throw i();if(Da(_)){const w=ze(_);try{const S=Ma(this._nativeAudioNode,w,x,k),R=la(this);(b||R)&&this._nativeAudioNode.disconnect(...S),this.context.state!=="closed"&&!R&&la(_)&&Vr(_)}catch(S){throw S.code===12?i():S}if(e(this,_,x,k,b)){const S=c([this],_);Jc(S,n(b))}return _}const T=Bi(_);if(T.name==="playbackRate"&&T.maxValue===1024)throw o();try{this._nativeAudioNode.connect(T,x),(b||la(this))&&this._nativeAudioNode.disconnect(T,x)}catch(w){throw w.code===12?i():w}if(sC(this,_,x,b)){const w=c([this],_);Jc(w,n(b))}}disconnect(_,x,k){let y;const b=u(this._context),T=m(b);if(_===void 0)y=oC(this,T);else if(typeof _=="number"){if(_<0||_>=this.numberOfOutputs)throw r();y=aC(this,T,_)}else{if(x!==void 0&&(x<0||x>=this.numberOfOutputs)||Da(_)&&k!==void 0&&(k<0||k>=_.numberOfInputs))throw r();if(y=cC(this,T,_,x,k),y.length===0)throw i()}for(const E of y){const w=c([this],E);Jc(w,a)}}},uC=(s,e,t,n,r,i,o,a,c,l,u,h,d)=>(f,m,p,g=null,_=null)=>{const x=p.value,k=new bE(x),y=m?n(k):null,b={get defaultValue(){return x},get maxValue(){return g===null?p.maxValue:g},get minValue(){return _===null?p.minValue:_},get value(){return p.value},set value(T){p.value=T,b.setValueAtTime(T,f.context.currentTime)},cancelAndHoldAtTime(T){if(typeof p.cancelAndHoldAtTime=="function")y===null&&k.flush(f.context.currentTime),k.add(r(T)),p.cancelAndHoldAtTime(T);else{const E=Array.from(k).pop();y===null&&k.flush(f.context.currentTime),k.add(r(T));const w=Array.from(k).pop();p.cancelScheduledValues(T),E!==w&&w!==void 0&&(w.type==="exponentialRampToValue"?p.exponentialRampToValueAtTime(w.value,w.endTime):w.type==="linearRampToValue"?p.linearRampToValueAtTime(w.value,w.endTime):w.type==="setValue"?p.setValueAtTime(w.value,w.startTime):w.type==="setValueCurve"&&p.setValueCurveAtTime(w.values,w.startTime,w.duration))}return b},cancelScheduledValues(T){return y===null&&k.flush(f.context.currentTime),k.add(i(T)),p.cancelScheduledValues(T),b},exponentialRampToValueAtTime(T,E){if(T===0)throw new RangeError;if(!Number.isFinite(E)||E<0)throw new RangeError;const w=f.context.currentTime;return y===null&&k.flush(w),Array.from(k).length===0&&(k.add(l(x,w)),p.setValueAtTime(x,w)),k.add(o(T,E)),p.exponentialRampToValueAtTime(T,E),b},linearRampToValueAtTime(T,E){const w=f.context.currentTime;return y===null&&k.flush(w),Array.from(k).length===0&&(k.add(l(x,w)),p.setValueAtTime(x,w)),k.add(a(T,E)),p.linearRampToValueAtTime(T,E),b},setTargetAtTime(T,E,w){return y===null&&k.flush(f.context.currentTime),k.add(c(T,E,w)),p.setTargetAtTime(T,E,w),b},setValueAtTime(T,E){return y===null&&k.flush(f.context.currentTime),k.add(l(T,E)),p.setValueAtTime(T,E),b},setValueCurveAtTime(T,E,w){const C=T instanceof Float32Array?T:new Float32Array(T);if(h!==null&&h.name==="webkitAudioContext"){const S=E+w,R=f.context.sampleRate,O=Math.ceil(E*R),j=Math.floor(S*R),V=j-O,W=new Float32Array(V);for(let U=0;U({replay(e){for(const t of s)if(t.type==="exponentialRampToValue"){const{endTime:n,value:r}=t;e.exponentialRampToValueAtTime(r,n)}else if(t.type==="linearRampToValue"){const{endTime:n,value:r}=t;e.linearRampToValueAtTime(r,n)}else if(t.type==="setTarget"){const{startTime:n,target:r,timeConstant:i}=t;e.setTargetAtTime(r,n,i)}else if(t.type==="setValue"){const{startTime:n,value:r}=t;e.setValueAtTime(r,n)}else if(t.type==="setValueCurve"){const{duration:n,startTime:r,values:i}=t;e.setValueCurveAtTime(i,r,n)}else throw new Error("Can't apply an unknown automation.")}});class _m{constructor(e){this._map=new Map(e)}get size(){return this._map.size}entries(){return this._map.entries()}forEach(e,t=null){return this._map.forEach((n,r)=>e.call(t,n,r,this))}get(e){return this._map.get(e)}has(e){return this._map.has(e)}keys(){return this._map.keys()}values(){return this._map.values()}}const dC={channelCount:2,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:1,numberOfOutputs:1,parameterData:{},processorOptions:{}},fC=(s,e,t,n,r,i,o,a,c,l,u,h,d,f)=>class extends e{constructor(p,g,_){var x;const k=a(p),y=c(k),b=u({...dC,..._});d(b);const T=zl.get(k),E=T==null?void 0:T.get(g),w=y||k.state!=="closed"?k:(x=o(k))!==null&&x!==void 0?x:k,C=r(w,y?null:p.baseLatency,l,g,E,b),S=y?n(g,b,E):null;super(p,!0,C,S);const R=[];C.parameters.forEach((j,V)=>{const W=t(this,y,j);R.push([V,W])}),this._nativeAudioWorkletNode=C,this._onprocessorerror=null,this._parameters=new _m(R),y&&s(k,this);const{activeInputs:O}=i(this);h(C,O)}get onprocessorerror(){return this._onprocessorerror}set onprocessorerror(p){const g=typeof p=="function"?f(this,p):null;this._nativeAudioWorkletNode.onprocessorerror=g;const _=this._nativeAudioWorkletNode.onprocessorerror;this._onprocessorerror=_!==null&&_===g?p:_}get parameters(){return this._parameters===null?this._nativeAudioWorkletNode.parameters:this._parameters}get port(){return this._nativeAudioWorkletNode.port}};function $a(s,e,t,n,r){if(typeof s.copyFromChannel=="function")e[t].byteLength===0&&(e[t]=new Float32Array(128)),s.copyFromChannel(e[t],n,r);else{const i=s.getChannelData(n);if(e[t].byteLength===0)e[t]=i.slice(r,r+128);else{const o=new Float32Array(i.buffer,r*Float32Array.BYTES_PER_ELEMENT,128);e[t].set(o)}}}const ym=(s,e,t,n,r)=>{typeof s.copyToChannel=="function"?e[t].byteLength!==0&&s.copyToChannel(e[t],n,r):e[t].byteLength!==0&&s.getChannelData(n).set(e[t],r)},Fa=(s,e)=>{const t=[];for(let n=0;n{const t=hn(Ul,s),n=ze(e);return hn(t,n)},mC=async(s,e,t,n,r,i,o)=>{const a=e===null?Math.ceil(s.context.length/128)*128:e.length,c=n.channelCount*n.numberOfInputs,l=r.reduce((g,_)=>g+_,0),u=l===0?null:t.createBuffer(l,a,t.sampleRate);if(i===void 0)throw new Error("Missing the processor constructor.");const h=kt(s),d=await pC(t,s),f=Fa(n.numberOfInputs,n.channelCount),m=Fa(n.numberOfOutputs,r),p=Array.from(s.parameters.keys()).reduce((g,_)=>({...g,[_]:new Float32Array(128)}),{});for(let g=0;g0&&e!==null)for(let _=0;_{$a(e,p,_,c+x,g)});for(let _=0;_h.activeInputs[y].size===0?[]:k),x=o(g/t.sampleRate,t.sampleRate,()=>d.process(_,m,p));if(u!==null)for(let k=0,y=0;k(g,_,x)=>{const k=new WeakMap;let y=null;const b=async(T,E)=>{let w=u(T),C=null;const S=yt(w,E),R=Array.isArray(_.outputChannelCount)?_.outputChannelCount:Array.from(_.outputChannelCount);if(h===null){const O=R.reduce((z,U)=>z+U,0),j=r(E,{channelCount:Math.max(1,O),channelCountMode:"explicit",channelInterpretation:"discrete",numberOfOutputs:Math.max(1,O)}),V=[];for(let z=0;z{const J=new d(X,Math.ceil(T.context.length/128)*128,E.sampleRate),N=[],L=[];for(let Y=0;Y<_.numberOfInputs;Y+=1)N.push(o(J,{channelCount:_.channelCount,channelCountMode:_.channelCountMode,channelInterpretation:_.channelInterpretation,gain:1})),L.push(r(J,{channelCount:_.channelCount,channelCountMode:"explicit",channelInterpretation:"discrete",numberOfOutputs:_.channelCount}));const A=await Promise.all(Array.from(T.parameters.values()).map(async Y=>{const $=i(J,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",offset:Y.value});return await f(J,Y,$.offset),$})),I=n(J,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:Math.max(1,U+B)});for(let Y=0;Y<_.numberOfInputs;Y+=1){N[Y].connect(L[Y]);for(let $=0;$<_.channelCount;$+=1)L[Y].connect(I,$,Y*_.channelCount+$)}for(const[Y,$]of A.entries())$.connect(I,0,U+Y),$.start(0);return I.connect(J.destination),await Promise.all(N.map(Y=>m(T,J,Y))),p(J)})(),E,_,R,x,l)}const O=await y,j=t(E,{buffer:null,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",loop:!1,loopEnd:0,loopStart:0,playbackRate:1}),[V,W,z]=C;O!==null&&(j.buffer=O,j.start(0)),j.connect(V);for(let U=0,B=0;Uclass extends m{constructor(b,T){super(b,T),this._nativeContext=b,this._audioWorklet=s===void 0?void 0:{addModule:(E,w)=>s(this,E,w)}}get audioWorklet(){return this._audioWorklet}createAnalyser(){return new e(this)}createBiquadFilter(){return new r(this)}createBuffer(b,T,E){return new t({length:T,numberOfChannels:b,sampleRate:E})}createBufferSource(){return new n(this)}createChannelMerger(b=6){return new i(this,{numberOfInputs:b})}createChannelSplitter(b=6){return new o(this,{numberOfOutputs:b})}createConstantSource(){return new a(this)}createConvolver(){return new c(this)}createDelay(b=1){return new u(this,{maxDelayTime:b})}createDynamicsCompressor(){return new h(this)}createGain(){return new d(this)}createIIRFilter(b,T){return new f(this,{feedback:T,feedforward:b})}createOscillator(){return new p(this)}createPanner(){return new g(this)}createPeriodicWave(b,T,E={disableNormalization:!1}){return new _(this,{...E,imag:T,real:b})}createStereoPanner(){return new x(this)}createWaveShaper(){return new k(this)}decodeAudioData(b,T,E){return l(this._nativeContext,b).then(w=>(typeof T=="function"&&T(w),w),w=>{throw typeof E=="function"&&E(w),w})}},yC={Q:1,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",detune:0,frequency:350,gain:0,type:"lowpass"},vC=(s,e,t,n,r,i,o,a)=>class extends s{constructor(l,u){const h=i(l),d={...yC,...u},f=r(h,d),m=o(h),p=m?t():null;super(l,!1,f,p),this._Q=e(this,m,f.Q,bt,Ct),this._detune=e(this,m,f.detune,1200*Math.log2(bt),-1200*Math.log2(bt)),this._frequency=e(this,m,f.frequency,l.sampleRate/2,0),this._gain=e(this,m,f.gain,40*Math.log10(bt),Ct),this._nativeBiquadFilterNode=f,a(this,1)}get detune(){return this._detune}get frequency(){return this._frequency}get gain(){return this._gain}get Q(){return this._Q}get type(){return this._nativeBiquadFilterNode.type}set type(l){this._nativeBiquadFilterNode.type=l}getFrequencyResponse(l,u,h){try{this._nativeBiquadFilterNode.getFrequencyResponse(l,u,h)}catch(d){throw d.code===11?n():d}if(l.length!==u.length||u.length!==h.length)throw n()}},bC=(s,e,t,n,r)=>()=>{const i=new WeakMap,o=async(a,c)=>{let l=t(a);const u=yt(l,c);if(!u){const h={Q:l.Q.value,channelCount:l.channelCount,channelCountMode:l.channelCountMode,channelInterpretation:l.channelInterpretation,detune:l.detune.value,frequency:l.frequency.value,gain:l.gain.value,type:l.type};l=e(c,h)}return i.set(c,l),u?(await s(c,a.Q,l.Q),await s(c,a.detune,l.detune),await s(c,a.frequency,l.frequency),await s(c,a.gain,l.gain)):(await n(c,a.Q,l.Q),await n(c,a.detune,l.detune),await n(c,a.frequency,l.frequency),await n(c,a.gain,l.gain)),await r(a,c,l),l};return{render(a,c){const l=i.get(c);return l!==void 0?Promise.resolve(l):o(a,c)}}},xC=(s,e)=>(t,n)=>{const r=e.get(t);if(r!==void 0)return r;const i=s.get(t);if(i!==void 0)return i;try{const o=n();return o instanceof Promise?(s.set(t,o),o.catch(()=>!1).then(a=>(s.delete(t),e.set(t,a),a))):(e.set(t,o),o)}catch{return e.set(t,!1),!1}},wC={channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:6},kC=(s,e,t,n,r)=>class extends s{constructor(o,a){const c=n(o),l={...wC,...a},u=t(c,l),h=r(c)?e():null;super(o,!1,u,h)}},TC=(s,e,t)=>()=>{const n=new WeakMap,r=async(i,o)=>{let a=e(i);if(!yt(a,o)){const l={channelCount:a.channelCount,channelCountMode:a.channelCountMode,channelInterpretation:a.channelInterpretation,numberOfInputs:a.numberOfInputs};a=s(o,l)}return n.set(o,a),await t(i,o,a),a};return{render(i,o){const a=n.get(o);return a!==void 0?Promise.resolve(a):r(i,o)}}},EC={channelCount:6,channelCountMode:"explicit",channelInterpretation:"discrete",numberOfOutputs:6},CC=(s,e,t,n,r,i)=>class extends s{constructor(a,c){const l=n(a),u=i({...EC,...c}),h=t(l,u),d=r(l)?e():null;super(a,!1,h,d)}},SC=(s,e,t)=>()=>{const n=new WeakMap,r=async(i,o)=>{let a=e(i);if(!yt(a,o)){const l={channelCount:a.channelCount,channelCountMode:a.channelCountMode,channelInterpretation:a.channelInterpretation,numberOfOutputs:a.numberOfOutputs};a=s(o,l)}return n.set(o,a),await t(i,o,a),a};return{render(i,o){const a=n.get(o);return a!==void 0?Promise.resolve(a):r(i,o)}}},OC=s=>(e,t,n)=>s(t,e,n),AC=s=>(e,t,n=0,r=0)=>{const i=e[n];if(i===void 0)throw s();return Na(t)?i.connect(t,0,r):i.connect(t,0)},RC=s=>(e,t)=>{const n=s(e,{buffer:null,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",loop:!1,loopEnd:0,loopStart:0,playbackRate:1}),r=e.createBuffer(1,2,44100);return n.buffer=r,n.loop=!0,n.connect(t),n.start(),()=>{n.stop(),n.disconnect(t)}},PC={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",offset:1},DC=(s,e,t,n,r,i,o)=>class extends s{constructor(c,l){const u=r(c),h={...PC,...l},d=n(u,h),f=i(u),m=f?t():null;super(c,!1,d,m),this._constantSourceNodeRenderer=m,this._nativeConstantSourceNode=d,this._offset=e(this,f,d.offset,bt,Ct),this._onended=null}get offset(){return this._offset}get onended(){return this._onended}set onended(c){const l=typeof c=="function"?o(this,c):null;this._nativeConstantSourceNode.onended=l;const u=this._nativeConstantSourceNode.onended;this._onended=u!==null&&u===l?c:u}start(c=0){if(this._nativeConstantSourceNode.start(c),this._constantSourceNodeRenderer!==null&&(this._constantSourceNodeRenderer.start=c),this.context.state!=="closed"){Vr(this);const l=()=>{this._nativeConstantSourceNode.removeEventListener("ended",l),Wn(this)&&So(this)};this._nativeConstantSourceNode.addEventListener("ended",l)}}stop(c=0){this._nativeConstantSourceNode.stop(c),this._constantSourceNodeRenderer!==null&&(this._constantSourceNodeRenderer.stop=c)}},MC=(s,e,t,n,r)=>()=>{const i=new WeakMap;let o=null,a=null;const c=async(l,u)=>{let h=t(l);const d=yt(h,u);if(!d){const f={channelCount:h.channelCount,channelCountMode:h.channelCountMode,channelInterpretation:h.channelInterpretation,offset:h.offset.value};h=e(u,f),o!==null&&h.start(o),a!==null&&h.stop(a)}return i.set(u,h),d?await s(u,l.offset,h.offset):await n(u,l.offset,h.offset),await r(l,u,h),h};return{set start(l){o=l},set stop(l){a=l},render(l,u){const h=i.get(u);return h!==void 0?Promise.resolve(h):c(l,u)}}},IC=s=>e=>(s[0]=e,s[0]),NC={buffer:null,channelCount:2,channelCountMode:"clamped-max",channelInterpretation:"speakers",disableNormalization:!1},$C=(s,e,t,n,r,i)=>class extends s{constructor(a,c){const l=n(a),u={...NC,...c},h=t(l,u),f=r(l)?e():null;super(a,!1,h,f),this._isBufferNullified=!1,this._nativeConvolverNode=h,u.buffer!==null&&i(this,u.buffer.duration)}get buffer(){return this._isBufferNullified?null:this._nativeConvolverNode.buffer}set buffer(a){if(this._nativeConvolverNode.buffer=a,a===null&&this._nativeConvolverNode.buffer!==null){const c=this._nativeConvolverNode.context;this._nativeConvolverNode.buffer=c.createBuffer(1,1,c.sampleRate),this._isBufferNullified=!0,i(this,0)}else this._isBufferNullified=!1,i(this,this._nativeConvolverNode.buffer===null?0:this._nativeConvolverNode.buffer.duration)}get normalize(){return this._nativeConvolverNode.normalize}set normalize(a){this._nativeConvolverNode.normalize=a}},FC=(s,e,t)=>()=>{const n=new WeakMap,r=async(i,o)=>{let a=e(i);if(!yt(a,o)){const l={buffer:a.buffer,channelCount:a.channelCount,channelCountMode:a.channelCountMode,channelInterpretation:a.channelInterpretation,disableNormalization:!a.normalize};a=s(o,l)}return n.set(o,a),si(a)?await t(i,o,a.inputs[0]):await t(i,o,a),a};return{render(i,o){const a=n.get(o);return a!==void 0?Promise.resolve(a):r(i,o)}}},LC=(s,e)=>(t,n,r)=>{if(e===null)throw new Error("Missing the native OfflineAudioContext constructor.");try{return new e(t,n,r)}catch(i){throw i.name==="SyntaxError"?s():i}},jC=()=>new DOMException("","DataCloneError"),Ef=s=>{const{port1:e,port2:t}=new MessageChannel;return new Promise(n=>{const r=()=>{t.onmessage=null,e.close(),t.close(),n()};t.onmessage=()=>r();try{e.postMessage(s,[s])}catch{}finally{r()}})},VC=(s,e,t,n,r,i,o,a,c,l,u)=>(h,d)=>{const f=o(h)?h:i(h);if(r.has(d)){const m=t();return Promise.reject(m)}try{r.add(d)}catch{}return e(c,()=>c(f))?f.decodeAudioData(d).then(m=>(Ef(d).catch(()=>{}),e(a,()=>a(m))||u(m),s.add(m),m)):new Promise((m,p)=>{const g=async()=>{try{await Ef(d)}catch{}},_=x=>{p(x),g()};try{f.decodeAudioData(d,x=>{typeof x.copyFromChannel!="function"&&(l(x),Vu(x)),s.add(x),g().then(()=>m(x))},x=>{_(x===null?n():x)})}catch(x){_(x)}})},zC=(s,e,t,n,r,i,o,a)=>(c,l)=>{const u=e.get(c);if(u===void 0)throw new Error("Missing the expected cycle count.");const h=i(c.context),d=a(h);if(u===l){if(e.delete(c),!d&&o(c)){const f=n(c),{outputs:m}=t(c);for(const p of m)if(Ao(p)){const g=n(p[0]);s(f,g,p[1],p[2])}else{const g=r(p[0]);f.connect(g,p[1])}}}else e.set(c,u-l)},UC={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",delayTime:0,maxDelayTime:1},BC=(s,e,t,n,r,i,o)=>class extends s{constructor(c,l){const u=r(c),h={...UC,...l},d=n(u,h),f=i(u),m=f?t(h.maxDelayTime):null;super(c,!1,d,m),this._delayTime=e(this,f,d.delayTime),o(this,h.maxDelayTime)}get delayTime(){return this._delayTime}},WC=(s,e,t,n,r)=>i=>{const o=new WeakMap,a=async(c,l)=>{let u=t(c);const h=yt(u,l);if(!h){const d={channelCount:u.channelCount,channelCountMode:u.channelCountMode,channelInterpretation:u.channelInterpretation,delayTime:u.delayTime.value,maxDelayTime:i};u=e(l,d)}return o.set(l,u),h?await s(l,c.delayTime,u.delayTime):await n(l,c.delayTime,u.delayTime),await r(c,l,u),u};return{render(c,l){const u=o.get(l);return u!==void 0?Promise.resolve(u):a(c,l)}}},qC=s=>(e,t,n,r)=>s(e[r],i=>i[0]===t&&i[1]===n),HC=s=>(e,t)=>{s(e).delete(t)},YC=s=>"delayTime"in s,GC=(s,e,t)=>function n(r,i){const o=Da(i)?i:t(s,i);if(YC(o))return[];if(r[0]===o)return[r];if(r.includes(o))return[];const{outputs:a}=e(o);return Array.from(a).map(c=>n([...r,o],c[0])).reduce((c,l)=>c.concat(l),[])},ea=(s,e,t)=>{const n=e[t];if(n===void 0)throw s();return n},XC=s=>(e,t=void 0,n=void 0,r=0)=>t===void 0?e.forEach(i=>i.disconnect()):typeof t=="number"?ea(s,e,t).disconnect():Na(t)?n===void 0?e.forEach(i=>i.disconnect(t)):r===void 0?ea(s,e,n).disconnect(t,0):ea(s,e,n).disconnect(t,0,r):n===void 0?e.forEach(i=>i.disconnect(t)):ea(s,e,n).disconnect(t,0),ZC={attack:.003,channelCount:2,channelCountMode:"clamped-max",channelInterpretation:"speakers",knee:30,ratio:12,release:.25,threshold:-24},KC=(s,e,t,n,r,i,o,a)=>class extends s{constructor(l,u){const h=i(l),d={...ZC,...u},f=n(h,d),m=o(h),p=m?t():null;super(l,!1,f,p),this._attack=e(this,m,f.attack),this._knee=e(this,m,f.knee),this._nativeDynamicsCompressorNode=f,this._ratio=e(this,m,f.ratio),this._release=e(this,m,f.release),this._threshold=e(this,m,f.threshold),a(this,.006)}get attack(){return this._attack}get channelCount(){return this._nativeDynamicsCompressorNode.channelCount}set channelCount(l){const u=this._nativeDynamicsCompressorNode.channelCount;if(this._nativeDynamicsCompressorNode.channelCount=l,l>2)throw this._nativeDynamicsCompressorNode.channelCount=u,r()}get channelCountMode(){return this._nativeDynamicsCompressorNode.channelCountMode}set channelCountMode(l){const u=this._nativeDynamicsCompressorNode.channelCountMode;if(this._nativeDynamicsCompressorNode.channelCountMode=l,l==="max")throw this._nativeDynamicsCompressorNode.channelCountMode=u,r()}get knee(){return this._knee}get ratio(){return this._ratio}get reduction(){return typeof this._nativeDynamicsCompressorNode.reduction.value=="number"?this._nativeDynamicsCompressorNode.reduction.value:this._nativeDynamicsCompressorNode.reduction}get release(){return this._release}get threshold(){return this._threshold}},QC=(s,e,t,n,r)=>()=>{const i=new WeakMap,o=async(a,c)=>{let l=t(a);const u=yt(l,c);if(!u){const h={attack:l.attack.value,channelCount:l.channelCount,channelCountMode:l.channelCountMode,channelInterpretation:l.channelInterpretation,knee:l.knee.value,ratio:l.ratio.value,release:l.release.value,threshold:l.threshold.value};l=e(c,h)}return i.set(c,l),u?(await s(c,a.attack,l.attack),await s(c,a.knee,l.knee),await s(c,a.ratio,l.ratio),await s(c,a.release,l.release),await s(c,a.threshold,l.threshold)):(await n(c,a.attack,l.attack),await n(c,a.knee,l.knee),await n(c,a.ratio,l.ratio),await n(c,a.release,l.release),await n(c,a.threshold,l.threshold)),await r(a,c,l),l};return{render(a,c){const l=i.get(c);return l!==void 0?Promise.resolve(l):o(a,c)}}},JC=()=>new DOMException("","EncodingError"),eS=s=>e=>new Promise((t,n)=>{if(s===null){n(new SyntaxError);return}const r=s.document.head;if(r===null)n(new SyntaxError);else{const i=s.document.createElement("script"),o=new Blob([e],{type:"application/javascript"}),a=URL.createObjectURL(o),c=s.onerror,l=()=>{s.onerror=c,URL.revokeObjectURL(a)};s.onerror=(u,h,d,f,m)=>{if(h===a||h===s.location.href&&d===1&&f===1)return l(),n(m),!1;if(c!==null)return c(u,h,d,f,m)},i.onerror=()=>{l(),n(new SyntaxError)},i.onload=()=>{l(),t()},i.src=a,i.type="module",r.appendChild(i)}}),tS=s=>class{constructor(t){this._nativeEventTarget=t,this._listeners=new WeakMap}addEventListener(t,n,r){if(n!==null){let i=this._listeners.get(n);i===void 0&&(i=s(this,n),typeof n=="function"&&this._listeners.set(n,i)),this._nativeEventTarget.addEventListener(t,i,r)}}dispatchEvent(t){return this._nativeEventTarget.dispatchEvent(t)}removeEventListener(t,n,r){const i=n===null?void 0:this._listeners.get(n);this._nativeEventTarget.removeEventListener(t,i===void 0?null:i,r)}},nS=s=>(e,t,n)=>{Object.defineProperties(s,{currentFrame:{configurable:!0,get(){return Math.round(e*t)}},currentTime:{configurable:!0,get(){return e}}});try{return n()}finally{s!==null&&(delete s.currentFrame,delete s.currentTime)}},sS=s=>async e=>{try{const t=await fetch(e);if(t.ok)return[await t.text(),t.url]}catch{}throw s()},rS={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",gain:1},iS=(s,e,t,n,r,i)=>class extends s{constructor(a,c){const l=r(a),u={...rS,...c},h=n(l,u),d=i(l),f=d?t():null;super(a,!1,h,f),this._gain=e(this,d,h.gain,bt,Ct)}get gain(){return this._gain}},oS=(s,e,t,n,r)=>()=>{const i=new WeakMap,o=async(a,c)=>{let l=t(a);const u=yt(l,c);if(!u){const h={channelCount:l.channelCount,channelCountMode:l.channelCountMode,channelInterpretation:l.channelInterpretation,gain:l.gain.value};l=e(c,h)}return i.set(c,l),u?await s(c,a.gain,l.gain):await n(c,a.gain,l.gain),await r(a,c,l),l};return{render(a,c){const l=i.get(c);return l!==void 0?Promise.resolve(l):o(a,c)}}},aS=(s,e)=>t=>e(s,t),cS=s=>e=>{const t=s(e);if(t.renderer===null)throw new Error("Missing the renderer of the given AudioNode in the audio graph.");return t.renderer},lS=s=>e=>{var t;return(t=s.get(e))!==null&&t!==void 0?t:0},uS=s=>e=>{const t=s(e);if(t.renderer===null)throw new Error("Missing the renderer of the given AudioParam in the audio graph.");return t.renderer},hS=s=>e=>s.get(e),ut=()=>new DOMException("","InvalidStateError"),dS=s=>e=>{const t=s.get(e);if(t===void 0)throw ut();return t},fS=(s,e)=>t=>{let n=s.get(t);if(n!==void 0)return n;if(e===null)throw new Error("Missing the native OfflineAudioContext constructor.");return n=new e(1,1,44100),s.set(t,n),n},pS=s=>e=>{const t=s.get(e);if(t===void 0)throw new Error("The context has no set of AudioWorkletNodes.");return t},pc=()=>new DOMException("","InvalidAccessError"),mS=s=>{s.getFrequencyResponse=(e=>(t,n,r)=>{if(t.length!==n.length||n.length!==r.length)throw pc();return e.call(s,t,n,r)})(s.getFrequencyResponse)},gS={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers"},_S=(s,e,t,n,r,i)=>class extends s{constructor(a,c){const l=n(a),u=r(l),h={...gS,...c},d=e(l,u?null:a.baseLatency,h),f=u?t(h.feedback,h.feedforward):null;super(a,!1,d,f),mS(d),this._nativeIIRFilterNode=d,i(this,1)}getFrequencyResponse(a,c,l){return this._nativeIIRFilterNode.getFrequencyResponse(a,c,l)}},vm=(s,e,t,n,r,i,o,a,c,l,u)=>{const h=l.length;let d=a;for(let f=0;f{const r=t instanceof Float64Array?t:new Float64Array(t),i=n instanceof Float64Array?n:new Float64Array(n),o=r.length,a=i.length,c=Math.min(o,a);if(r[0]!==1){for(let m=0;m(i,o)=>{const a=new WeakMap;let c=null;const l=async(u,h)=>{let d=null,f=e(u);const m=yt(f,h);if(h.createIIRFilter===void 0?d=s(h,{buffer:null,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",loop:!1,loopEnd:0,loopStart:0,playbackRate:1}):m||(f=h.createIIRFilter(o,i)),a.set(h,d===null?f:d),d!==null){if(c===null){if(t===null)throw new Error("Missing the native OfflineAudioContext constructor.");const g=new t(u.context.destination.channelCount,u.context.length,h.sampleRate);c=(async()=>{await n(u,g,g.destination);const _=await r(g);return yS(_,h,i,o)})()}const p=await c;return d.buffer=p,d.start(0),d}return await n(u,h,f),f};return{render(u,h){const d=a.get(h);return d!==void 0?Promise.resolve(d):l(u,h)}}},bS=(s,e,t,n,r,i)=>o=>(a,c)=>{const l=s.get(a);if(l===void 0){if(!o&&i(a)){const u=n(a),{outputs:h}=t(a);for(const d of h)if(Ao(d)){const f=n(d[0]);e(u,f,d[1],d[2])}else{const f=r(d[0]);u.disconnect(f,d[1])}}s.set(a,c)}else s.set(a,l+c)},xS=(s,e)=>t=>{const n=s.get(t);return e(n)||e(t)},wS=(s,e)=>t=>s.has(t)||e(t),kS=(s,e)=>t=>s.has(t)||e(t),TS=(s,e)=>t=>{const n=s.get(t);return e(n)||e(t)},ES=s=>e=>s!==null&&e instanceof s,CS=s=>e=>s!==null&&typeof s.AudioNode=="function"&&e instanceof s.AudioNode,SS=s=>e=>s!==null&&typeof s.AudioParam=="function"&&e instanceof s.AudioParam,OS=(s,e)=>t=>s(t)||e(t),AS=s=>e=>s!==null&&e instanceof s,RS=s=>s!==null&&s.isSecureContext,PS=(s,e,t,n)=>class extends s{constructor(i,o){const a=t(i),c=e(a,o);if(n(a))throw TypeError();super(i,!0,c,null),this._nativeMediaElementAudioSourceNode=c}get mediaElement(){return this._nativeMediaElementAudioSourceNode.mediaElement}},DS={channelCount:2,channelCountMode:"explicit",channelInterpretation:"speakers"},MS=(s,e,t,n)=>class extends s{constructor(i,o){const a=t(i);if(n(a))throw new TypeError;const c={...DS,...o},l=e(a,c);super(i,!1,l,null),this._nativeMediaStreamAudioDestinationNode=l}get stream(){return this._nativeMediaStreamAudioDestinationNode.stream}},IS=(s,e,t,n)=>class extends s{constructor(i,o){const a=t(i),c=e(a,o);if(n(a))throw new TypeError;super(i,!0,c,null),this._nativeMediaStreamAudioSourceNode=c}get mediaStream(){return this._nativeMediaStreamAudioSourceNode.mediaStream}},NS=(s,e,t)=>class extends s{constructor(r,i){const o=t(r),a=e(o,i);super(r,!0,a,null)}},$S=(s,e,t,n,r,i)=>class extends t{constructor(a,c){super(a),this._nativeContext=a,dc.set(this,a),n(a)&&r.set(a,new Set),this._destination=new s(this,c),this._listener=e(this,a),this._onstatechange=null}get currentTime(){return this._nativeContext.currentTime}get destination(){return this._destination}get listener(){return this._listener}get onstatechange(){return this._onstatechange}set onstatechange(a){const c=typeof a=="function"?i(this,a):null;this._nativeContext.onstatechange=c;const l=this._nativeContext.onstatechange;this._onstatechange=l!==null&&l===c?a:l}get sampleRate(){return this._nativeContext.sampleRate}get state(){return this._nativeContext.state}},Wi=s=>{const e=new Uint32Array([1179011410,40,1163280727,544501094,16,131073,44100,176400,1048580,1635017060,4,0]);try{const t=s.decodeAudioData(e.buffer,()=>{});return t===void 0?!1:(t.catch(()=>{}),!0)}catch{}return!1},FS=(s,e)=>(t,n,r)=>{const i=new Set;return t.connect=(o=>(a,c=0,l=0)=>{const u=i.size===0;if(e(a))return o.call(t,a,c,l),s(i,[a,c,l],h=>h[0]===a&&h[1]===c&&h[2]===l,!0),u&&n(),a;o.call(t,a,c),s(i,[a,c],h=>h[0]===a&&h[1]===c,!0),u&&n()})(t.connect),t.disconnect=(o=>(a,c,l)=>{const u=i.size>0;if(a===void 0)o.apply(t),i.clear();else if(typeof a=="number"){o.call(t,a);for(const d of i)d[1]===a&&i.delete(d)}else{e(a)?o.call(t,a,c,l):o.call(t,a,c);for(const d of i)d[0]===a&&(c===void 0||d[1]===c)&&(l===void 0||d[2]===l)&&i.delete(d)}const h=i.size===0;u&&h&&r()})(t.disconnect),t},Ue=(s,e,t)=>{const n=e[t];n!==void 0&&n!==s[t]&&(s[t]=n)},at=(s,e)=>{Ue(s,e,"channelCount"),Ue(s,e,"channelCountMode"),Ue(s,e,"channelInterpretation")},Cf=s=>typeof s.getFloatTimeDomainData=="function",LS=s=>{s.getFloatTimeDomainData=e=>{const t=new Uint8Array(e.length);s.getByteTimeDomainData(t);const n=Math.max(t.length,s.fftSize);for(let r=0;r(t,n)=>{const r=t.createAnalyser();if(at(r,n),!(n.maxDecibels>n.minDecibels))throw e();return Ue(r,n,"fftSize"),Ue(r,n,"maxDecibels"),Ue(r,n,"minDecibels"),Ue(r,n,"smoothingTimeConstant"),s(Cf,()=>Cf(r))||LS(r),r},VS=s=>s===null?null:s.hasOwnProperty("AudioBuffer")?s.AudioBuffer:null,Ge=(s,e,t)=>{const n=e[t];n!==void 0&&n!==s[t].value&&(s[t].value=n)},zS=s=>{s.start=(e=>{let t=!1;return(n=0,r=0,i)=>{if(t)throw ut();e.call(s,n,r,i),t=!0}})(s.start)},Bu=s=>{s.start=(e=>(t=0,n=0,r)=>{if(typeof r=="number"&&r<0||n<0||t<0)throw new RangeError("The parameters can't be negative.");e.call(s,t,n,r)})(s.start)},Wu=s=>{s.stop=(e=>(t=0)=>{if(t<0)throw new RangeError("The parameter can't be negative.");e.call(s,t)})(s.stop)},US=(s,e,t,n,r,i,o,a,c,l,u)=>(h,d)=>{const f=h.createBufferSource();return at(f,d),Ge(f,d,"playbackRate"),Ue(f,d,"buffer"),Ue(f,d,"loop"),Ue(f,d,"loopEnd"),Ue(f,d,"loopStart"),e(t,()=>t(h))||zS(f),e(n,()=>n(h))||c(f),e(r,()=>r(h))||l(f,h),e(i,()=>i(h))||Bu(f),e(o,()=>o(h))||u(f,h),e(a,()=>a(h))||Wu(f),s(h,f),f},BS=s=>s===null?null:s.hasOwnProperty("AudioContext")?s.AudioContext:s.hasOwnProperty("webkitAudioContext")?s.webkitAudioContext:null,WS=(s,e)=>(t,n,r)=>{const i=t.destination;if(i.channelCount!==n)try{i.channelCount=n}catch{}r&&i.channelCountMode!=="explicit"&&(i.channelCountMode="explicit"),i.maxChannelCount===0&&Object.defineProperty(i,"maxChannelCount",{value:n});const o=s(t,{channelCount:n,channelCountMode:i.channelCountMode,channelInterpretation:i.channelInterpretation,gain:1});return e(o,"channelCount",a=>()=>a.call(o),a=>c=>{a.call(o,c);try{i.channelCount=c}catch(l){if(c>i.maxChannelCount)throw l}}),e(o,"channelCountMode",a=>()=>a.call(o),a=>c=>{a.call(o,c),i.channelCountMode=c}),e(o,"channelInterpretation",a=>()=>a.call(o),a=>c=>{a.call(o,c),i.channelInterpretation=c}),Object.defineProperty(o,"maxChannelCount",{get:()=>i.maxChannelCount}),o.connect(i),o},qS=s=>s===null?null:s.hasOwnProperty("AudioWorkletNode")?s.AudioWorkletNode:null,HS=s=>{const{port1:e}=new MessageChannel;try{e.postMessage(s)}finally{e.close()}},YS=(s,e,t,n,r)=>(i,o,a,c,l,u)=>{if(a!==null)try{const h=new a(i,c,u),d=new Map;let f=null;if(Object.defineProperties(h,{channelCount:{get:()=>u.channelCount,set:()=>{throw s()}},channelCountMode:{get:()=>"explicit",set:()=>{throw s()}},onprocessorerror:{get:()=>f,set:m=>{typeof f=="function"&&h.removeEventListener("processorerror",f),f=typeof m=="function"?m:null,typeof f=="function"&&h.addEventListener("processorerror",f)}}}),h.addEventListener=(m=>(...p)=>{if(p[0]==="processorerror"){const g=typeof p[1]=="function"?p[1]:typeof p[1]=="object"&&p[1]!==null&&typeof p[1].handleEvent=="function"?p[1].handleEvent:null;if(g!==null){const _=d.get(p[1]);_!==void 0?p[1]=_:(p[1]=x=>{x.type==="error"?(Object.defineProperties(x,{type:{value:"processorerror"}}),g(x)):g(new ErrorEvent(p[0],{...x}))},d.set(g,p[1]))}}return m.call(h,"error",p[1],p[2]),m.call(h,...p)})(h.addEventListener),h.removeEventListener=(m=>(...p)=>{if(p[0]==="processorerror"){const g=d.get(p[1]);g!==void 0&&(d.delete(p[1]),p[1]=g)}return m.call(h,"error",p[1],p[2]),m.call(h,p[0],p[1],p[2])})(h.removeEventListener),u.numberOfOutputs!==0){const m=t(i,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:0});return h.connect(m).connect(i.destination),r(h,()=>m.disconnect(),()=>m.connect(i.destination))}return h}catch(h){throw h.code===11?n():h}if(l===void 0)throw n();return HS(u),e(i,o,l,u)},bm=(s,e)=>s===null?512:Math.max(512,Math.min(16384,Math.pow(2,Math.round(Math.log2(s*e))))),GS=s=>new Promise((e,t)=>{const{port1:n,port2:r}=new MessageChannel;n.onmessage=({data:i})=>{n.close(),r.close(),e(i)},n.onmessageerror=({data:i})=>{n.close(),r.close(),t(i)},r.postMessage(s)}),XS=async(s,e)=>{const t=await GS(e);return new s(t)},ZS=(s,e,t,n)=>{let r=Ul.get(s);r===void 0&&(r=new WeakMap,Ul.set(s,r));const i=XS(t,n);return r.set(e,i),i},KS=(s,e,t,n,r,i,o,a,c,l,u,h,d)=>(f,m,p,g)=>{if(g.numberOfInputs===0&&g.numberOfOutputs===0)throw c();const _=Array.isArray(g.outputChannelCount)?g.outputChannelCount:Array.from(g.outputChannelCount);if(_.some(H=>H<1))throw c();if(_.length!==g.numberOfOutputs)throw e();if(g.channelCountMode!=="explicit")throw c();const x=g.channelCount*g.numberOfInputs,k=_.reduce((H,D)=>H+D,0),y=p.parameterDescriptors===void 0?0:p.parameterDescriptors.length;if(x+y>6||k>6)throw c();const b=new MessageChannel,T=[],E=[];for(let H=0;HH===void 0?0:H},maxValue:{get:()=>D===void 0?bt:D},minValue:{get:()=>P===void 0?Ct:P}}),w.push(se)}const C=n(f,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:Math.max(1,x+y)}),S=bm(m,f.sampleRate),R=a(f,S,x+y,Math.max(1,k)),O=r(f,{channelCount:Math.max(1,k),channelCountMode:"explicit",channelInterpretation:"discrete",numberOfOutputs:Math.max(1,k)}),j=[];for(let H=0;H{const P=w[D];return P.connect(C,0,x+D),P.start(0),[H,P.offset]}));C.connect(R);let W=g.channelInterpretation,z=null;const U=g.numberOfOutputs===0?[R]:j,B={get bufferSize(){return S},get channelCount(){return g.channelCount},set channelCount(H){throw t()},get channelCountMode(){return g.channelCountMode},set channelCountMode(H){throw t()},get channelInterpretation(){return W},set channelInterpretation(H){for(const D of T)D.channelInterpretation=H;W=H},get context(){return R.context},get inputs(){return T},get numberOfInputs(){return g.numberOfInputs},get numberOfOutputs(){return g.numberOfOutputs},get onprocessorerror(){return z},set onprocessorerror(H){typeof z=="function"&&B.removeEventListener("processorerror",z),z=typeof H=="function"?H:null,typeof z=="function"&&B.addEventListener("processorerror",z)},get parameters(){return V},get port(){return b.port2},addEventListener(...H){return R.addEventListener(H[0],H[1],H[2])},connect:s.bind(null,U),disconnect:l.bind(null,U),dispatchEvent(...H){return R.dispatchEvent(H[0])},removeEventListener(...H){return R.removeEventListener(H[0],H[1],H[2])}},X=new Map;b.port1.addEventListener=(H=>(...D)=>{if(D[0]==="message"){const P=typeof D[1]=="function"?D[1]:typeof D[1]=="object"&&D[1]!==null&&typeof D[1].handleEvent=="function"?D[1].handleEvent:null;if(P!==null){const Q=X.get(D[1]);Q!==void 0?D[1]=Q:(D[1]=se=>{u(f.currentTime,f.sampleRate,()=>P(se))},X.set(P,D[1]))}}return H.call(b.port1,D[0],D[1],D[2])})(b.port1.addEventListener),b.port1.removeEventListener=(H=>(...D)=>{if(D[0]==="message"){const P=X.get(D[1]);P!==void 0&&(X.delete(D[1]),D[1]=P)}return H.call(b.port1,D[0],D[1],D[2])})(b.port1.removeEventListener);let K=null;Object.defineProperty(b.port1,"onmessage",{get:()=>K,set:H=>{typeof K=="function"&&b.port1.removeEventListener("message",K),K=typeof H=="function"?H:null,typeof K=="function"&&(b.port1.addEventListener("message",K),b.port1.start())}}),p.prototype.port=b.port1;let J=null;ZS(f,B,p,g).then(H=>J=H);const L=Fa(g.numberOfInputs,g.channelCount),A=Fa(g.numberOfOutputs,_),I=p.parameterDescriptors===void 0?[]:p.parameterDescriptors.reduce((H,{name:D})=>({...H,[D]:new Float32Array(128)}),{});let Y=!0;const $=()=>{g.numberOfOutputs>0&&R.disconnect(O);for(let H=0,D=0;H{if(J!==null){const P=h(B);for(let Q=0;Q{$a(H,I,se,x+ce,Q)});for(let se=0;se{if(P[Qe].size>0)return q.set(Qe,S/128),ye;const de=q.get(Qe);return de===void 0?[]:(ye.every(Je=>Je.every(it=>it===0))&&(de===1?q.delete(Qe):q.set(Qe,de-1)),ye)});Y=u(f.currentTime+Q/f.sampleRate,f.sampleRate,()=>J.process(se,A,I));for(let ye=0,Qe=0;yeR.connect(re).connect(f.destination),ne=()=>{R.disconnect(re),re.disconnect()},me=()=>{if(Y){ne(),g.numberOfOutputs>0&&R.connect(O);for(let H=0,D=0;H{Y&&(ie(),$()),oe=!1};return ie(),d(B,me,te)},xm=(s,e)=>{const t=s.createBiquadFilter();return at(t,e),Ge(t,e,"Q"),Ge(t,e,"detune"),Ge(t,e,"frequency"),Ge(t,e,"gain"),Ue(t,e,"type"),t},QS=(s,e)=>(t,n)=>{const r=t.createChannelMerger(n.numberOfInputs);return s!==null&&s.name==="webkitAudioContext"&&e(t,r),at(r,n),r},JS=s=>{const e=s.numberOfOutputs;Object.defineProperty(s,"channelCount",{get:()=>e,set:t=>{if(t!==e)throw ut()}}),Object.defineProperty(s,"channelCountMode",{get:()=>"explicit",set:t=>{if(t!=="explicit")throw ut()}}),Object.defineProperty(s,"channelInterpretation",{get:()=>"discrete",set:t=>{if(t!=="discrete")throw ut()}})},Ro=(s,e)=>{const t=s.createChannelSplitter(e.numberOfOutputs);return at(t,e),JS(t),t},eO=(s,e,t,n,r)=>(i,o)=>{if(i.createConstantSource===void 0)return t(i,o);const a=i.createConstantSource();return at(a,o),Ge(a,o,"offset"),e(n,()=>n(i))||Bu(a),e(r,()=>r(i))||Wu(a),s(i,a),a},ri=(s,e)=>(s.connect=e.connect.bind(e),s.disconnect=e.disconnect.bind(e),s),tO=(s,e,t,n)=>(r,{offset:i,...o})=>{const a=r.createBuffer(1,2,44100),c=e(r,{buffer:null,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",loop:!1,loopEnd:0,loopStart:0,playbackRate:1}),l=t(r,{...o,gain:i}),u=a.getChannelData(0);u[0]=1,u[1]=1,c.buffer=a,c.loop=!0;const h={get bufferSize(){},get channelCount(){return l.channelCount},set channelCount(m){l.channelCount=m},get channelCountMode(){return l.channelCountMode},set channelCountMode(m){l.channelCountMode=m},get channelInterpretation(){return l.channelInterpretation},set channelInterpretation(m){l.channelInterpretation=m},get context(){return l.context},get inputs(){return[]},get numberOfInputs(){return c.numberOfInputs},get numberOfOutputs(){return l.numberOfOutputs},get offset(){return l.gain},get onended(){return c.onended},set onended(m){c.onended=m},addEventListener(...m){return c.addEventListener(m[0],m[1],m[2])},dispatchEvent(...m){return c.dispatchEvent(m[0])},removeEventListener(...m){return c.removeEventListener(m[0],m[1],m[2])},start(m=0){c.start.call(c,m)},stop(m=0){c.stop.call(c,m)}},d=()=>c.connect(l),f=()=>c.disconnect(l);return s(r,c),n(ri(h,l),d,f)},nO=(s,e)=>(t,n)=>{const r=t.createConvolver();if(at(r,n),n.disableNormalization===r.normalize&&(r.normalize=!n.disableNormalization),Ue(r,n,"buffer"),n.channelCount>2||(e(r,"channelCount",i=>()=>i.call(r),i=>o=>{if(o>2)throw s();return i.call(r,o)}),n.channelCountMode==="max"))throw s();return e(r,"channelCountMode",i=>()=>i.call(r),i=>o=>{if(o==="max")throw s();return i.call(r,o)}),r},wm=(s,e)=>{const t=s.createDelay(e.maxDelayTime);return at(t,e),Ge(t,e,"delayTime"),t},sO=s=>(e,t)=>{const n=e.createDynamicsCompressor();if(at(n,t),t.channelCount>2||t.channelCountMode==="max")throw s();return Ge(n,t,"attack"),Ge(n,t,"knee"),Ge(n,t,"ratio"),Ge(n,t,"release"),Ge(n,t,"threshold"),n},Mt=(s,e)=>{const t=s.createGain();return at(t,e),Ge(t,e,"gain"),t},rO=s=>(e,t,n)=>{if(e.createIIRFilter===void 0)return s(e,t,n);const r=e.createIIRFilter(n.feedforward,n.feedback);return at(r,n),r};function iO(s,e){const t=e[0]*e[0]+e[1]*e[1];return[(s[0]*e[0]+s[1]*e[1])/t,(s[1]*e[0]-s[0]*e[1])/t]}function oO(s,e){return[s[0]*e[0]-s[1]*e[1],s[0]*e[1]+s[1]*e[0]]}function Sf(s,e){let t=[0,0];for(let n=s.length-1;n>=0;n-=1)t=oO(t,e),t[0]+=s[n];return t}const aO=(s,e,t,n)=>(r,i,{channelCount:o,channelCountMode:a,channelInterpretation:c,feedback:l,feedforward:u})=>{const h=bm(i,r.sampleRate),d=l instanceof Float64Array?l:new Float64Array(l),f=u instanceof Float64Array?u:new Float64Array(u),m=d.length,p=f.length,g=Math.min(m,p);if(m===0||m>20)throw n();if(d[0]===0)throw e();if(p===0||p>20)throw n();if(f[0]===0)throw e();if(d[0]!==1){for(let w=0;w{const C=w.inputBuffer,S=w.outputBuffer,R=C.numberOfChannels;for(let O=0;Os.createMediaElementSource(e.mediaElement),lO=(s,e)=>{const t=s.createMediaStreamDestination();return at(t,e),t.numberOfOutputs===1&&Object.defineProperty(t,"numberOfOutputs",{get:()=>0}),t},uO=(s,{mediaStream:e})=>{const t=e.getAudioTracks();t.sort((i,o)=>i.ido.id?1:0);const n=t.slice(0,1),r=s.createMediaStreamSource(new MediaStream(n));return Object.defineProperty(r,"mediaStream",{value:e}),r},hO=(s,e)=>(t,{mediaStreamTrack:n})=>{if(typeof t.createMediaStreamTrackSource=="function")return t.createMediaStreamTrackSource(n);const r=new MediaStream([n]),i=t.createMediaStreamSource(r);if(n.kind!=="audio")throw s();if(e(t))throw new TypeError;return i},dO=s=>s===null?null:s.hasOwnProperty("OfflineAudioContext")?s.OfflineAudioContext:s.hasOwnProperty("webkitOfflineAudioContext")?s.webkitOfflineAudioContext:null,fO=(s,e,t,n,r,i)=>(o,a)=>{const c=o.createOscillator();return at(c,a),Ge(c,a,"detune"),Ge(c,a,"frequency"),a.periodicWave!==void 0?c.setPeriodicWave(a.periodicWave):Ue(c,a,"type"),e(t,()=>t(o))||Bu(c),e(n,()=>n(o))||i(c,o),e(r,()=>r(o))||Wu(c),s(o,c),c},pO=s=>(e,t)=>{const n=e.createPanner();return n.orientationX===void 0?s(e,t):(at(n,t),Ge(n,t,"orientationX"),Ge(n,t,"orientationY"),Ge(n,t,"orientationZ"),Ge(n,t,"positionX"),Ge(n,t,"positionY"),Ge(n,t,"positionZ"),Ue(n,t,"coneInnerAngle"),Ue(n,t,"coneOuterAngle"),Ue(n,t,"coneOuterGain"),Ue(n,t,"distanceModel"),Ue(n,t,"maxDistance"),Ue(n,t,"panningModel"),Ue(n,t,"refDistance"),Ue(n,t,"rolloffFactor"),n)},mO=(s,e,t,n,r,i,o,a,c,l)=>(u,{coneInnerAngle:h,coneOuterAngle:d,coneOuterGain:f,distanceModel:m,maxDistance:p,orientationX:g,orientationY:_,orientationZ:x,panningModel:k,positionX:y,positionY:b,positionZ:T,refDistance:E,rolloffFactor:w,...C})=>{const S=u.createPanner();if(C.channelCount>2||C.channelCountMode==="max")throw o();at(S,C);const R={channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete"},O=t(u,{...R,channelInterpretation:"speakers",numberOfInputs:6}),j=n(u,{...C,gain:1}),V=n(u,{...R,gain:1}),W=n(u,{...R,gain:0}),z=n(u,{...R,gain:0}),U=n(u,{...R,gain:0}),B=n(u,{...R,gain:0}),X=n(u,{...R,gain:0}),K=r(u,256,6,1),J=i(u,{...R,curve:new Float32Array([1,1]),oversample:"none"});let N=[g,_,x],L=[y,b,T];const A=new Float32Array(1);K.onaudioprocess=({inputBuffer:q})=>{const oe=[c(q,A,0),c(q,A,1),c(q,A,2)];oe.some((ie,ne)=>ie!==N[ne])&&(S.setOrientation(...oe),N=oe);const re=[c(q,A,3),c(q,A,4),c(q,A,5)];re.some((ie,ne)=>ie!==L[ne])&&(S.setPosition(...re),L=re)},Object.defineProperty(W.gain,"defaultValue",{get:()=>0}),Object.defineProperty(z.gain,"defaultValue",{get:()=>0}),Object.defineProperty(U.gain,"defaultValue",{get:()=>0}),Object.defineProperty(B.gain,"defaultValue",{get:()=>0}),Object.defineProperty(X.gain,"defaultValue",{get:()=>0});const I={get bufferSize(){},get channelCount(){return S.channelCount},set channelCount(q){if(q>2)throw o();j.channelCount=q,S.channelCount=q},get channelCountMode(){return S.channelCountMode},set channelCountMode(q){if(q==="max")throw o();j.channelCountMode=q,S.channelCountMode=q},get channelInterpretation(){return S.channelInterpretation},set channelInterpretation(q){j.channelInterpretation=q,S.channelInterpretation=q},get coneInnerAngle(){return S.coneInnerAngle},set coneInnerAngle(q){S.coneInnerAngle=q},get coneOuterAngle(){return S.coneOuterAngle},set coneOuterAngle(q){S.coneOuterAngle=q},get coneOuterGain(){return S.coneOuterGain},set coneOuterGain(q){if(q<0||q>1)throw e();S.coneOuterGain=q},get context(){return S.context},get distanceModel(){return S.distanceModel},set distanceModel(q){S.distanceModel=q},get inputs(){return[j]},get maxDistance(){return S.maxDistance},set maxDistance(q){if(q<0)throw new RangeError;S.maxDistance=q},get numberOfInputs(){return S.numberOfInputs},get numberOfOutputs(){return S.numberOfOutputs},get orientationX(){return V.gain},get orientationY(){return W.gain},get orientationZ(){return z.gain},get panningModel(){return S.panningModel},set panningModel(q){S.panningModel=q},get positionX(){return U.gain},get positionY(){return B.gain},get positionZ(){return X.gain},get refDistance(){return S.refDistance},set refDistance(q){if(q<0)throw new RangeError;S.refDistance=q},get rolloffFactor(){return S.rolloffFactor},set rolloffFactor(q){if(q<0)throw new RangeError;S.rolloffFactor=q},addEventListener(...q){return j.addEventListener(q[0],q[1],q[2])},dispatchEvent(...q){return j.dispatchEvent(q[0])},removeEventListener(...q){return j.removeEventListener(q[0],q[1],q[2])}};h!==I.coneInnerAngle&&(I.coneInnerAngle=h),d!==I.coneOuterAngle&&(I.coneOuterAngle=d),f!==I.coneOuterGain&&(I.coneOuterGain=f),m!==I.distanceModel&&(I.distanceModel=m),p!==I.maxDistance&&(I.maxDistance=p),g!==I.orientationX.value&&(I.orientationX.value=g),_!==I.orientationY.value&&(I.orientationY.value=_),x!==I.orientationZ.value&&(I.orientationZ.value=x),k!==I.panningModel&&(I.panningModel=k),y!==I.positionX.value&&(I.positionX.value=y),b!==I.positionY.value&&(I.positionY.value=b),T!==I.positionZ.value&&(I.positionZ.value=T),E!==I.refDistance&&(I.refDistance=E),w!==I.rolloffFactor&&(I.rolloffFactor=w),(N[0]!==1||N[1]!==0||N[2]!==0)&&S.setOrientation(...N),(L[0]!==0||L[1]!==0||L[2]!==0)&&S.setPosition(...L);const Y=()=>{j.connect(S),s(j,J,0,0),J.connect(V).connect(O,0,0),J.connect(W).connect(O,0,1),J.connect(z).connect(O,0,2),J.connect(U).connect(O,0,3),J.connect(B).connect(O,0,4),J.connect(X).connect(O,0,5),O.connect(K).connect(u.destination)},$=()=>{j.disconnect(S),a(j,J,0,0),J.disconnect(V),V.disconnect(O),J.disconnect(W),W.disconnect(O),J.disconnect(z),z.disconnect(O),J.disconnect(U),U.disconnect(O),J.disconnect(B),B.disconnect(O),J.disconnect(X),X.disconnect(O),O.disconnect(K),K.disconnect(u.destination)};return l(ri(I,S),Y,$)},gO=s=>(e,{disableNormalization:t,imag:n,real:r})=>{const i=n instanceof Float32Array?n:new Float32Array(n),o=r instanceof Float32Array?r:new Float32Array(r),a=e.createPeriodicWave(o,i,{disableNormalization:t});if(Array.from(n).length<2)throw s();return a},Po=(s,e,t,n)=>s.createScriptProcessor(e,t,n),_O=(s,e)=>(t,n)=>{const r=n.channelCountMode;if(r==="clamped-max")throw e();if(t.createStereoPanner===void 0)return s(t,n);const i=t.createStereoPanner();return at(i,n),Ge(i,n,"pan"),Object.defineProperty(i,"channelCountMode",{get:()=>r,set:o=>{if(o!==r)throw e()}}),i},yO=(s,e,t,n,r,i)=>{const a=new Float32Array([1,1]),c=Math.PI/2,l={channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete"},u={...l,oversample:"none"},h=(m,p,g,_)=>{const x=new Float32Array(16385),k=new Float32Array(16385);for(let C=0;C<16385;C+=1){const S=C/16384*c;x[C]=Math.cos(S),k[C]=Math.sin(S)}const y=t(m,{...l,gain:0}),b=n(m,{...u,curve:x}),T=n(m,{...u,curve:a}),E=t(m,{...l,gain:0}),w=n(m,{...u,curve:k});return{connectGraph(){p.connect(y),p.connect(T.inputs===void 0?T:T.inputs[0]),p.connect(E),T.connect(g),g.connect(b.inputs===void 0?b:b.inputs[0]),g.connect(w.inputs===void 0?w:w.inputs[0]),b.connect(y.gain),w.connect(E.gain),y.connect(_,0,0),E.connect(_,0,1)},disconnectGraph(){p.disconnect(y),p.disconnect(T.inputs===void 0?T:T.inputs[0]),p.disconnect(E),T.disconnect(g),g.disconnect(b.inputs===void 0?b:b.inputs[0]),g.disconnect(w.inputs===void 0?w:w.inputs[0]),b.disconnect(y.gain),w.disconnect(E.gain),y.disconnect(_,0,0),E.disconnect(_,0,1)}}},d=(m,p,g,_)=>{const x=new Float32Array(16385),k=new Float32Array(16385),y=new Float32Array(16385),b=new Float32Array(16385),T=Math.floor(16385/2);for(let U=0;U<16385;U+=1)if(U>T){const B=(U-T)/(16384-T)*c;x[U]=Math.cos(B),k[U]=Math.sin(B),y[U]=0,b[U]=1}else{const B=U/(16384-T)*c;x[U]=1,k[U]=0,y[U]=Math.cos(B),b[U]=Math.sin(B)}const E=e(m,{channelCount:2,channelCountMode:"explicit",channelInterpretation:"discrete",numberOfOutputs:2}),w=t(m,{...l,gain:0}),C=n(m,{...u,curve:x}),S=t(m,{...l,gain:0}),R=n(m,{...u,curve:k}),O=n(m,{...u,curve:a}),j=t(m,{...l,gain:0}),V=n(m,{...u,curve:y}),W=t(m,{...l,gain:0}),z=n(m,{...u,curve:b});return{connectGraph(){p.connect(E),p.connect(O.inputs===void 0?O:O.inputs[0]),E.connect(w,0),E.connect(S,0),E.connect(j,1),E.connect(W,1),O.connect(g),g.connect(C.inputs===void 0?C:C.inputs[0]),g.connect(R.inputs===void 0?R:R.inputs[0]),g.connect(V.inputs===void 0?V:V.inputs[0]),g.connect(z.inputs===void 0?z:z.inputs[0]),C.connect(w.gain),R.connect(S.gain),V.connect(j.gain),z.connect(W.gain),w.connect(_,0,0),j.connect(_,0,0),S.connect(_,0,1),W.connect(_,0,1)},disconnectGraph(){p.disconnect(E),p.disconnect(O.inputs===void 0?O:O.inputs[0]),E.disconnect(w,0),E.disconnect(S,0),E.disconnect(j,1),E.disconnect(W,1),O.disconnect(g),g.disconnect(C.inputs===void 0?C:C.inputs[0]),g.disconnect(R.inputs===void 0?R:R.inputs[0]),g.disconnect(V.inputs===void 0?V:V.inputs[0]),g.disconnect(z.inputs===void 0?z:z.inputs[0]),C.disconnect(w.gain),R.disconnect(S.gain),V.disconnect(j.gain),z.disconnect(W.gain),w.disconnect(_,0,0),j.disconnect(_,0,0),S.disconnect(_,0,1),W.disconnect(_,0,1)}}},f=(m,p,g,_,x)=>{if(p===1)return h(m,g,_,x);if(p===2)return d(m,g,_,x);throw r()};return(m,{channelCount:p,channelCountMode:g,pan:_,...x})=>{if(g==="max")throw r();const k=s(m,{...x,channelCount:1,channelCountMode:g,numberOfInputs:2}),y=t(m,{...x,channelCount:p,channelCountMode:g,gain:1}),b=t(m,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:_});let{connectGraph:T,disconnectGraph:E}=f(m,p,y,b,k);Object.defineProperty(b.gain,"defaultValue",{get:()=>0}),Object.defineProperty(b.gain,"maxValue",{get:()=>1}),Object.defineProperty(b.gain,"minValue",{get:()=>-1});const w={get bufferSize(){},get channelCount(){return y.channelCount},set channelCount(O){y.channelCount!==O&&(C&&E(),{connectGraph:T,disconnectGraph:E}=f(m,O,y,b,k),C&&T()),y.channelCount=O},get channelCountMode(){return y.channelCountMode},set channelCountMode(O){if(O==="clamped-max"||O==="max")throw r();y.channelCountMode=O},get channelInterpretation(){return y.channelInterpretation},set channelInterpretation(O){y.channelInterpretation=O},get context(){return y.context},get inputs(){return[y]},get numberOfInputs(){return y.numberOfInputs},get numberOfOutputs(){return y.numberOfOutputs},get pan(){return b.gain},addEventListener(...O){return y.addEventListener(O[0],O[1],O[2])},dispatchEvent(...O){return y.dispatchEvent(O[0])},removeEventListener(...O){return y.removeEventListener(O[0],O[1],O[2])}};let C=!1;const S=()=>{T(),C=!0},R=()=>{E(),C=!1};return i(ri(w,k),S,R)}},vO=(s,e,t,n,r,i,o)=>(a,c)=>{const l=a.createWaveShaper();if(i!==null&&i.name==="webkitAudioContext"&&a.createGain().gain.automationRate===void 0)return t(a,c);at(l,c);const u=c.curve===null||c.curve instanceof Float32Array?c.curve:new Float32Array(c.curve);if(u!==null&&u.length<2)throw e();Ue(l,{curve:u},"curve"),Ue(l,c,"oversample");let h=null,d=!1;return o(l,"curve",p=>()=>p.call(l),p=>g=>(p.call(l,g),d&&(n(g)&&h===null?h=s(a,l):!n(g)&&h!==null&&(h(),h=null)),g)),r(l,()=>{d=!0,n(l.curve)&&(h=s(a,l))},()=>{d=!1,h!==null&&(h(),h=null)})},bO=(s,e,t,n,r)=>(i,{curve:o,oversample:a,...c})=>{const l=i.createWaveShaper(),u=i.createWaveShaper();at(l,c),at(u,c);const h=t(i,{...c,gain:1}),d=t(i,{...c,gain:-1}),f=t(i,{...c,gain:1}),m=t(i,{...c,gain:-1});let p=null,g=!1,_=null;const x={get bufferSize(){},get channelCount(){return l.channelCount},set channelCount(b){h.channelCount=b,d.channelCount=b,l.channelCount=b,f.channelCount=b,u.channelCount=b,m.channelCount=b},get channelCountMode(){return l.channelCountMode},set channelCountMode(b){h.channelCountMode=b,d.channelCountMode=b,l.channelCountMode=b,f.channelCountMode=b,u.channelCountMode=b,m.channelCountMode=b},get channelInterpretation(){return l.channelInterpretation},set channelInterpretation(b){h.channelInterpretation=b,d.channelInterpretation=b,l.channelInterpretation=b,f.channelInterpretation=b,u.channelInterpretation=b,m.channelInterpretation=b},get context(){return l.context},get curve(){return _},set curve(b){if(b!==null&&b.length<2)throw e();if(b===null)l.curve=b,u.curve=b;else{const T=b.length,E=new Float32Array(T+2-T%2),w=new Float32Array(T+2-T%2);E[0]=b[0],w[0]=-b[T-1];const C=Math.ceil((T+1)/2),S=(T+1)/2-1;for(let R=1;R{h.connect(l).connect(f),h.connect(d).connect(u).connect(m).connect(f),g=!0,n(_)&&(p=s(i,h))},y=()=>{h.disconnect(l),l.disconnect(f),h.disconnect(d),d.disconnect(u),u.disconnect(m),m.disconnect(f),g=!1,p!==null&&(p(),p=null)};return r(ri(x,f),k,y)},Tt=()=>new DOMException("","NotSupportedError"),xO={numberOfChannels:1},wO=(s,e,t,n,r)=>class extends s{constructor(o,a,c){let l;if(typeof o=="number"&&a!==void 0&&c!==void 0)l={length:a,numberOfChannels:o,sampleRate:c};else if(typeof o=="object")l=o;else throw new Error("The given parameters are not valid.");const{length:u,numberOfChannels:h,sampleRate:d}={...xO,...l},f=n(h,u,d);e(Wi,()=>Wi(f))||f.addEventListener("statechange",(()=>{let m=0;const p=g=>{this._state==="running"&&(m>0?(f.removeEventListener("statechange",p),g.stopImmediatePropagation(),this._waitForThePromiseToSettle(g)):m+=1)};return p})()),super(f,h),this._length=u,this._nativeOfflineAudioContext=f,this._state=null}get length(){return this._nativeOfflineAudioContext.length===void 0?this._length:this._nativeOfflineAudioContext.length}get state(){return this._state===null?this._nativeOfflineAudioContext.state:this._state}startRendering(){return this._state==="running"?Promise.reject(t()):(this._state="running",r(this.destination,this._nativeOfflineAudioContext).finally(()=>{this._state=null,fm(this)}))}_waitForThePromiseToSettle(o){this._state===null?this._nativeOfflineAudioContext.dispatchEvent(o):setTimeout(()=>this._waitForThePromiseToSettle(o))}},kO={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",detune:0,frequency:440,periodicWave:void 0,type:"sine"},TO=(s,e,t,n,r,i,o)=>class extends s{constructor(c,l){const u=r(c),h={...kO,...l},d=t(u,h),f=i(u),m=f?n():null,p=c.sampleRate/2;super(c,!1,d,m),this._detune=e(this,f,d.detune,153600,-153600),this._frequency=e(this,f,d.frequency,p,-p),this._nativeOscillatorNode=d,this._onended=null,this._oscillatorNodeRenderer=m,this._oscillatorNodeRenderer!==null&&h.periodicWave!==void 0&&(this._oscillatorNodeRenderer.periodicWave=h.periodicWave)}get detune(){return this._detune}get frequency(){return this._frequency}get onended(){return this._onended}set onended(c){const l=typeof c=="function"?o(this,c):null;this._nativeOscillatorNode.onended=l;const u=this._nativeOscillatorNode.onended;this._onended=u!==null&&u===l?c:u}get type(){return this._nativeOscillatorNode.type}set type(c){this._nativeOscillatorNode.type=c,this._oscillatorNodeRenderer!==null&&(this._oscillatorNodeRenderer.periodicWave=null)}setPeriodicWave(c){this._nativeOscillatorNode.setPeriodicWave(c),this._oscillatorNodeRenderer!==null&&(this._oscillatorNodeRenderer.periodicWave=c)}start(c=0){if(this._nativeOscillatorNode.start(c),this._oscillatorNodeRenderer!==null&&(this._oscillatorNodeRenderer.start=c),this.context.state!=="closed"){Vr(this);const l=()=>{this._nativeOscillatorNode.removeEventListener("ended",l),Wn(this)&&So(this)};this._nativeOscillatorNode.addEventListener("ended",l)}}stop(c=0){this._nativeOscillatorNode.stop(c),this._oscillatorNodeRenderer!==null&&(this._oscillatorNodeRenderer.stop=c)}},EO=(s,e,t,n,r)=>()=>{const i=new WeakMap;let o=null,a=null,c=null;const l=async(u,h)=>{let d=t(u);const f=yt(d,h);if(!f){const m={channelCount:d.channelCount,channelCountMode:d.channelCountMode,channelInterpretation:d.channelInterpretation,detune:d.detune.value,frequency:d.frequency.value,periodicWave:o===null?void 0:o,type:d.type};d=e(h,m),a!==null&&d.start(a),c!==null&&d.stop(c)}return i.set(h,d),f?(await s(h,u.detune,d.detune),await s(h,u.frequency,d.frequency)):(await n(h,u.detune,d.detune),await n(h,u.frequency,d.frequency)),await r(u,h,d),d};return{set periodicWave(u){o=u},set start(u){a=u},set stop(u){c=u},render(u,h){const d=i.get(h);return d!==void 0?Promise.resolve(d):l(u,h)}}},CO={channelCount:2,channelCountMode:"clamped-max",channelInterpretation:"speakers",coneInnerAngle:360,coneOuterAngle:360,coneOuterGain:0,distanceModel:"inverse",maxDistance:1e4,orientationX:1,orientationY:0,orientationZ:0,panningModel:"equalpower",positionX:0,positionY:0,positionZ:0,refDistance:1,rolloffFactor:1},SO=(s,e,t,n,r,i,o)=>class extends s{constructor(c,l){const u=r(c),h={...CO,...l},d=t(u,h),f=i(u),m=f?n():null;super(c,!1,d,m),this._nativePannerNode=d,this._orientationX=e(this,f,d.orientationX,bt,Ct),this._orientationY=e(this,f,d.orientationY,bt,Ct),this._orientationZ=e(this,f,d.orientationZ,bt,Ct),this._positionX=e(this,f,d.positionX,bt,Ct),this._positionY=e(this,f,d.positionY,bt,Ct),this._positionZ=e(this,f,d.positionZ,bt,Ct),o(this,1)}get coneInnerAngle(){return this._nativePannerNode.coneInnerAngle}set coneInnerAngle(c){this._nativePannerNode.coneInnerAngle=c}get coneOuterAngle(){return this._nativePannerNode.coneOuterAngle}set coneOuterAngle(c){this._nativePannerNode.coneOuterAngle=c}get coneOuterGain(){return this._nativePannerNode.coneOuterGain}set coneOuterGain(c){this._nativePannerNode.coneOuterGain=c}get distanceModel(){return this._nativePannerNode.distanceModel}set distanceModel(c){this._nativePannerNode.distanceModel=c}get maxDistance(){return this._nativePannerNode.maxDistance}set maxDistance(c){this._nativePannerNode.maxDistance=c}get orientationX(){return this._orientationX}get orientationY(){return this._orientationY}get orientationZ(){return this._orientationZ}get panningModel(){return this._nativePannerNode.panningModel}set panningModel(c){this._nativePannerNode.panningModel=c}get positionX(){return this._positionX}get positionY(){return this._positionY}get positionZ(){return this._positionZ}get refDistance(){return this._nativePannerNode.refDistance}set refDistance(c){this._nativePannerNode.refDistance=c}get rolloffFactor(){return this._nativePannerNode.rolloffFactor}set rolloffFactor(c){this._nativePannerNode.rolloffFactor=c}},OO=(s,e,t,n,r,i,o,a,c,l)=>()=>{const u=new WeakMap;let h=null;const d=async(f,m)=>{let p=null,g=i(f);const _={channelCount:g.channelCount,channelCountMode:g.channelCountMode,channelInterpretation:g.channelInterpretation},x={..._,coneInnerAngle:g.coneInnerAngle,coneOuterAngle:g.coneOuterAngle,coneOuterGain:g.coneOuterGain,distanceModel:g.distanceModel,maxDistance:g.maxDistance,panningModel:g.panningModel,refDistance:g.refDistance,rolloffFactor:g.rolloffFactor},k=yt(g,m);if("bufferSize"in g)p=n(m,{..._,gain:1});else if(!k){const y={...x,orientationX:g.orientationX.value,orientationY:g.orientationY.value,orientationZ:g.orientationZ.value,positionX:g.positionX.value,positionY:g.positionY.value,positionZ:g.positionZ.value};g=r(m,y)}if(u.set(m,p===null?g:p),p!==null){if(h===null){if(o===null)throw new Error("Missing the native OfflineAudioContext constructor.");const R=new o(6,f.context.length,m.sampleRate),O=e(R,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:6});O.connect(R.destination),h=(async()=>{const j=await Promise.all([f.orientationX,f.orientationY,f.orientationZ,f.positionX,f.positionY,f.positionZ].map(async(V,W)=>{const z=t(R,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",offset:W===0?1:0});return await a(R,V,z.offset),z}));for(let V=0;V<6;V+=1)j[V].connect(O,0,V),j[V].start(0);return l(R)})()}const y=await h,b=n(m,{..._,gain:1});await c(f,m,b);const T=[];for(let R=0;RV!==E[W])||j.some((V,W)=>V!==w[W])){E=O,w=j;const V=R/m.sampleRate;C.gain.setValueAtTime(0,V),C=n(m,{..._,gain:0}),S=r(m,{...x,orientationX:E[0],orientationY:E[1],orientationZ:E[2],positionX:w[0],positionY:w[1],positionZ:w[2]}),C.gain.setValueAtTime(1,V),b.connect(C).connect(S.inputs[0]),S.connect(p)}}return p}return k?(await s(m,f.orientationX,g.orientationX),await s(m,f.orientationY,g.orientationY),await s(m,f.orientationZ,g.orientationZ),await s(m,f.positionX,g.positionX),await s(m,f.positionY,g.positionY),await s(m,f.positionZ,g.positionZ)):(await a(m,f.orientationX,g.orientationX),await a(m,f.orientationY,g.orientationY),await a(m,f.orientationZ,g.orientationZ),await a(m,f.positionX,g.positionX),await a(m,f.positionY,g.positionY),await a(m,f.positionZ,g.positionZ)),si(g)?await c(f,m,g.inputs[0]):await c(f,m,g),g};return{render(f,m){const p=u.get(m);return p!==void 0?Promise.resolve(p):d(f,m)}}},AO={disableNormalization:!1},RO=(s,e,t,n)=>class km{constructor(i,o){const a=e(i),c=n({...AO,...o}),l=s(a,c);return t.add(l),l}static[Symbol.hasInstance](i){return i!==null&&typeof i=="object"&&Object.getPrototypeOf(i)===km.prototype||t.has(i)}},PO=(s,e)=>(t,n,r)=>(s(n).replay(r),e(n,t,r)),DO=(s,e,t)=>async(n,r,i)=>{const o=s(n);await Promise.all(o.activeInputs.map((a,c)=>Array.from(a).map(async([l,u])=>{const d=await e(l).render(l,r),f=n.context.destination;!t(l)&&(n!==f||!t(n))&&d.connect(i,u,c)})).reduce((a,c)=>[...a,...c],[]))},MO=(s,e,t)=>async(n,r,i)=>{const o=e(n);await Promise.all(Array.from(o.activeInputs).map(async([a,c])=>{const u=await s(a).render(a,r);t(a)||u.connect(i,c)}))},IO=(s,e,t,n)=>r=>s(Wi,()=>Wi(r))?Promise.resolve(s(n,n)).then(i=>{if(!i){const o=t(r,512,0,1);r.oncomplete=()=>{o.onaudioprocess=null,o.disconnect()},o.onaudioprocess=()=>r.currentTime,o.connect(r.destination)}return r.startRendering()}):new Promise(i=>{const o=e(r,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:0});r.oncomplete=a=>{o.disconnect(),i(a.renderedBuffer)},o.connect(r.destination),r.startRendering()}),NO=s=>(e,t)=>{s.set(e,t)},$O=s=>(e,t)=>s.set(e,t),FO=(s,e,t,n,r,i,o,a)=>(c,l)=>t(c).render(c,l).then(()=>Promise.all(Array.from(n(l)).map(u=>t(u).render(u,l)))).then(()=>r(l)).then(u=>(typeof u.copyFromChannel!="function"?(o(u),Vu(u)):e(i,()=>i(u))||a(u),s.add(u),u)),LO={channelCount:2,channelCountMode:"explicit",channelInterpretation:"speakers",pan:0},jO=(s,e,t,n,r,i)=>class extends s{constructor(a,c){const l=r(a),u={...LO,...c},h=t(l,u),d=i(l),f=d?n():null;super(a,!1,h,f),this._pan=e(this,d,h.pan)}get pan(){return this._pan}},VO=(s,e,t,n,r)=>()=>{const i=new WeakMap,o=async(a,c)=>{let l=t(a);const u=yt(l,c);if(!u){const h={channelCount:l.channelCount,channelCountMode:l.channelCountMode,channelInterpretation:l.channelInterpretation,pan:l.pan.value};l=e(c,h)}return i.set(c,l),u?await s(c,a.pan,l.pan):await n(c,a.pan,l.pan),si(l)?await r(a,c,l.inputs[0]):await r(a,c,l),l};return{render(a,c){const l=i.get(c);return l!==void 0?Promise.resolve(l):o(a,c)}}},zO=s=>()=>{if(s===null)return!1;try{new s({length:1,sampleRate:44100})}catch{return!1}return!0},UO=(s,e)=>async()=>{if(s===null)return!0;if(e===null)return!1;const t=new Blob(['class A extends AudioWorkletProcessor{process(i){this.port.postMessage(i,[i[0][0].buffer])}}registerProcessor("a",A)'],{type:"application/javascript; charset=utf-8"}),n=new e(1,128,44100),r=URL.createObjectURL(t);let i=!1,o=!1;try{await n.audioWorklet.addModule(r);const a=new s(n,"a",{numberOfOutputs:0}),c=n.createOscillator();a.port.onmessage=()=>i=!0,a.onprocessorerror=()=>o=!0,c.connect(a),c.start(0),await n.startRendering(),await new Promise(l=>setTimeout(l))}catch{}finally{URL.revokeObjectURL(r)}return i&&!o},BO=(s,e)=>()=>{if(e===null)return Promise.resolve(!1);const t=new e(1,1,44100),n=s(t,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:0});return new Promise(r=>{t.oncomplete=()=>{n.disconnect(),r(t.currentTime!==0)},t.startRendering()})},WO=()=>new DOMException("","UnknownError"),qO={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",curve:null,oversample:"none"},HO=(s,e,t,n,r,i,o)=>class extends s{constructor(c,l){const u=r(c),h={...qO,...l},d=t(u,h),m=i(u)?n():null;super(c,!0,d,m),this._isCurveNullified=!1,this._nativeWaveShaperNode=d,o(this,1)}get curve(){return this._isCurveNullified?null:this._nativeWaveShaperNode.curve}set curve(c){if(c===null)this._isCurveNullified=!0,this._nativeWaveShaperNode.curve=new Float32Array([0,0]);else{if(c.length<2)throw e();this._isCurveNullified=!1,this._nativeWaveShaperNode.curve=c}}get oversample(){return this._nativeWaveShaperNode.oversample}set oversample(c){this._nativeWaveShaperNode.oversample=c}},YO=(s,e,t)=>()=>{const n=new WeakMap,r=async(i,o)=>{let a=e(i);if(!yt(a,o)){const l={channelCount:a.channelCount,channelCountMode:a.channelCountMode,channelInterpretation:a.channelInterpretation,curve:a.curve,oversample:a.oversample};a=s(o,l)}return n.set(o,a),si(a)?await t(i,o,a.inputs[0]):await t(i,o,a),a};return{render(i,o){const a=n.get(o);return a!==void 0?Promise.resolve(a):r(i,o)}}},GO=()=>typeof window>"u"?null:window,XO=(s,e)=>t=>{t.copyFromChannel=(n,r,i=0)=>{const o=s(i),a=s(r);if(a>=t.numberOfChannels)throw e();const c=t.length,l=t.getChannelData(a),u=n.length;for(let h=o<0?-o:0;h+o{const o=s(i),a=s(r);if(a>=t.numberOfChannels)throw e();const c=t.length,l=t.getChannelData(a),u=n.length;for(let h=o<0?-o:0;h+oe=>{e.copyFromChannel=(t=>(n,r,i=0)=>{const o=s(i),a=s(r);if(o(n,r,i=0)=>{const o=s(i),a=s(r);if(o(e,t)=>{const n=t.createBuffer(1,1,44100);e.buffer===null&&(e.buffer=n),s(e,"buffer",r=>()=>{const i=r.call(e);return i===n?null:i},r=>i=>r.call(e,i===null?n:i))},QO=(s,e)=>(t,n)=>{n.channelCount=1,n.channelCountMode="explicit",Object.defineProperty(n,"channelCount",{get:()=>1,set:()=>{throw s()}}),Object.defineProperty(n,"channelCountMode",{get:()=>"explicit",set:()=>{throw s()}});const r=t.createBufferSource();e(n,()=>{const a=n.numberOfInputs;for(let c=0;cr.disconnect(n))},Tm=(s,e,t)=>s.copyFromChannel===void 0?s.getChannelData(t)[0]:(s.copyFromChannel(e,t),e[0]),Em=s=>{if(s===null)return!1;const e=s.length;return e%2!==0?s[Math.floor(e/2)]!==0:s[e/2-1]+s[e/2]!==0},Do=(s,e,t,n)=>{let r=s;for(;!r.hasOwnProperty(e);)r=Object.getPrototypeOf(r);const{get:i,set:o}=Object.getOwnPropertyDescriptor(r,e);Object.defineProperty(s,e,{get:t(i),set:n(o)})},JO=s=>({...s,outputChannelCount:s.outputChannelCount!==void 0?s.outputChannelCount:s.numberOfInputs===1&&s.numberOfOutputs===1?[s.channelCount]:Array.from({length:s.numberOfOutputs},()=>1)}),e2=s=>({...s,channelCount:s.numberOfOutputs}),t2=s=>{const{imag:e,real:t}=s;return e===void 0?t===void 0?{...s,imag:[0,0],real:[0,0]}:{...s,imag:Array.from(t,()=>0),real:t}:t===void 0?{...s,imag:e,real:Array.from(e,()=>0)}:{...s,imag:e,real:t}},Cm=(s,e,t)=>{try{s.setValueAtTime(e,t)}catch(n){if(n.code!==9)throw n;Cm(s,e,t+1e-7)}},n2=s=>{const e=s.createBufferSource();e.start();try{e.start()}catch{return!0}return!1},s2=s=>{const e=s.createBufferSource(),t=s.createBuffer(1,1,44100);e.buffer=t;try{e.start(0,1)}catch{return!1}return!0},r2=s=>{const e=s.createBufferSource();e.start();try{e.stop()}catch{return!1}return!0},qu=s=>{const e=s.createOscillator();try{e.start(-1)}catch(t){return t instanceof RangeError}return!1},Sm=s=>{const e=s.createBuffer(1,1,44100),t=s.createBufferSource();t.buffer=e,t.start(),t.stop();try{return t.stop(),!0}catch{return!1}},Hu=s=>{const e=s.createOscillator();try{e.stop(-1)}catch(t){return t instanceof RangeError}return!1},i2=s=>{const{port1:e,port2:t}=new MessageChannel;try{e.postMessage(s)}finally{e.close(),t.close()}},o2=s=>{s.start=(e=>(t=0,n=0,r)=>{const i=s.buffer,o=i===null?n:Math.min(i.duration,n);i!==null&&o>i.duration-.5/s.context.sampleRate?e.call(s,t,0,0):e.call(s,t,o,r)})(s.start)},Om=(s,e)=>{const t=e.createGain();s.connect(t);const n=(r=>()=>{r.call(s,t),s.removeEventListener("ended",n)})(s.disconnect);s.addEventListener("ended",n),ri(s,t),s.stop=(r=>{let i=!1;return(o=0)=>{if(i)try{r.call(s,o)}catch{t.gain.setValueAtTime(0,o)}else r.call(s,o),i=!0}})(s.stop)},ii=(s,e)=>t=>{const n={value:s};return Object.defineProperties(t,{currentTarget:n,target:n}),typeof e=="function"?e.call(s,t):e.handleEvent.call(s,t)},a2=SE(or),c2=ME(or),l2=qC(fc),Am=new WeakMap,u2=lS(Am),gn=xC(new Map,new WeakMap),On=GO(),Rm=jS(gn,Rn),Yu=cS(kt),dt=DO(kt,Yu,Qs),h2=LE(Rm,ze,dt),je=dS(dc),ts=dO(On),Pe=AS(ts),Pm=new WeakMap,Dm=tS(ii),Mo=BS(On),Gu=ES(Mo),Xu=CS(On),Mm=SS(On),qi=qS(On),st=lC(OE(om),DE(a2,c2,Ma,l2,Ia,kt,u2,Co,ze,or,Wn,Qs,la),gn,bS(Vl,Ia,kt,ze,Bi,Wn),Rn,pc,Tt,zC(Ma,Vl,kt,ze,Bi,je,Wn,Pe),GC(Pm,kt,hn),Dm,je,Gu,Xu,Mm,Pe,qi),d2=FE(st,h2,Rn,Rm,je,Pe),Zu=new WeakSet,Of=VS(On),Im=IC(new Uint32Array(1)),Ku=XO(Im,Rn),Qu=ZO(Im),Nm=VE(Zu,gn,Tt,Of,ts,zO(Of),Ku,Qu),mc=IE(Mt),$m=MO(Yu,Oo,Qs),Pn=OC($m),oi=US(mc,gn,n2,s2,r2,qu,Sm,Hu,o2,KO(Do),Om),Dn=PO(uS(Oo),$m),f2=BE(Pn,oi,ze,Dn,dt),_n=uC(AE(am),Pm,ju,hC,xE,wE,kE,TE,EE,Fl,rm,Mo,Cm),p2=UE(st,f2,_n,ut,oi,je,Pe,ii),m2=QE(st,JE,Rn,ut,WS(Mt,Do),je,Pe,dt),g2=bC(Pn,xm,ze,Dn,dt),ar=$O(Am),_2=vC(st,_n,g2,pc,xm,je,Pe,ar),Rs=FS(or,Xu),y2=QO(ut,Rs),Ps=QS(Mo,y2),v2=TC(Ps,ze,dt),b2=kC(st,v2,Ps,je,Pe),x2=SC(Ro,ze,dt),w2=CC(st,x2,Ro,je,Pe,e2),k2=tO(mc,oi,Mt,Rs),ai=eO(mc,gn,k2,qu,Hu),T2=MC(Pn,ai,ze,Dn,dt),E2=DC(st,_n,T2,ai,je,Pe,ii),Fm=nO(Tt,Do),C2=FC(Fm,ze,dt),S2=$C(st,C2,Fm,je,Pe,ar),O2=WC(Pn,wm,ze,Dn,dt),A2=BC(st,_n,O2,wm,je,Pe,ar),Lm=sO(Tt),R2=QC(Pn,Lm,ze,Dn,dt),P2=KC(st,_n,R2,Lm,Tt,je,Pe,ar),D2=oS(Pn,Mt,ze,Dn,dt),M2=iS(st,_n,D2,Mt,je,Pe),I2=aO(pc,ut,Po,Tt),gc=IO(gn,Mt,Po,BO(Mt,ts)),N2=vS(oi,ze,ts,dt,gc),$2=rO(I2),F2=_S(st,$2,N2,je,Pe,ar),L2=eC(_n,Ps,ai,Po,Tt,Tm,Pe,Do),jm=new WeakMap,j2=$S(m2,L2,Dm,Pe,jm,ii),Vm=fO(mc,gn,qu,Sm,Hu,Om),V2=EO(Pn,Vm,ze,Dn,dt),z2=TO(st,_n,Vm,V2,je,Pe,ii),zm=RC(oi),U2=bO(zm,ut,Mt,Em,Rs),_c=vO(zm,ut,U2,Em,Rs,Mo,Do),B2=mO(Ma,ut,Ps,Mt,Po,_c,Tt,Ia,Tm,Rs),Um=pO(B2),W2=OO(Pn,Ps,ai,Mt,Um,ze,ts,Dn,dt,gc),q2=SO(st,_n,Um,W2,je,Pe,ar),H2=gO(Rn),Y2=RO(H2,je,new WeakSet,t2),G2=yO(Ps,Ro,Mt,_c,Tt,Rs),Bm=_O(G2,Tt),X2=VO(Pn,Bm,ze,Dn,dt),Z2=jO(st,_n,Bm,X2,je,Pe),K2=YO(_c,ze,dt),Q2=HO(st,ut,_c,K2,je,Pe,ar),Wm=RS(On),Ju=nS(On),qm=new WeakMap,J2=fS(qm,ts),eA=Wm?PE(gn,Tt,eS(On),Ju,sS(CE),je,J2,Pe,qi,new WeakMap,new WeakMap,UO(qi,ts),On):void 0,tA=OS(Gu,Pe),nA=VC(Zu,gn,jC,JC,new WeakSet,je,tA,Pa,Wi,Ku,Qu),Hm=_C(eA,d2,Nm,p2,_2,b2,w2,E2,S2,nA,A2,P2,M2,F2,j2,z2,q2,Y2,Z2,Q2),sA=PS(st,cO,je,Pe),rA=MS(st,lO,je,Pe),iA=IS(st,uO,je,Pe),oA=hO(ut,Pe),aA=NS(st,oA,je),cA=KE(Hm,ut,Tt,WO,sA,rA,iA,aA,Mo),eh=pS(jm),lA=NE(eh),Ym=AC(Rn),uA=HC(eh),Gm=XC(Rn),Xm=new WeakMap,hA=aS(Xm,hn),dA=KS(Ym,Rn,ut,Ps,Ro,ai,Mt,Po,Tt,Gm,Ju,hA,Rs),fA=YS(ut,dA,Mt,Tt,Rs),pA=gC(Pn,Ym,oi,Ps,Ro,ai,Mt,uA,Gm,Ju,ze,qi,ts,Dn,dt,gc),mA=hS(qm),gA=NO(Xm),Af=Wm?fC(lA,st,_n,pA,fA,kt,mA,je,Pe,qi,JO,gA,i2,ii):void 0,_A=LC(Tt,ts),yA=FO(Zu,gn,Yu,eh,gc,Pa,Ku,Qu),vA=wO(Hm,gn,ut,_A,yA),bA=xS(dc,Gu),xA=wS(Lu,Xu),wA=kS(ju,Mm),kA=TS(dc,Pe);function zt(s){return typeof s>"u"}function ve(s){return!zt(s)}function TA(s){return typeof s=="function"}function xs(s){return typeof s=="number"}function Ws(s){return Object.prototype.toString.call(s)==="[object Object]"&&s.constructor===Object}function EA(s){return typeof s=="boolean"}function ln(s){return Array.isArray(s)}function Gn(s){return typeof s=="string"}function ta(s){return Gn(s)&&/^([a-g]{1}(?:b|#|x|bb)?)(-?[0-9]+)/i.test(s)}function pe(s,e){if(!s)throw new Error(e)}function dn(s,e,t=1/0){if(!(e<=s&&s<=t))throw new RangeError(`Value must be within [${e}, ${t}], got: ${s}`)}function Zm(s){!s.isOffline&&s.state!=="running"&&th('The AudioContext is "suspended". Invoke Tone.start() from a user action to start the audio.')}let Km=!1,Rf=!1;function Pf(s){Km=s}function CA(s){zt(s)&&Km&&!Rf&&(Rf=!0,th("Events scheduled inside of scheduled callbacks should use the passed in scheduling time. See https://github.com/Tonejs/Tone.js/wiki/Accurate-Timing"))}let Qm=console;function SA(...s){Qm.log(...s)}function th(...s){Qm.warn(...s)}function OA(s){return new cA(s)}function AA(s,e,t){return new vA(s,e,t)}const qs=typeof self=="object"?self:null,RA=qs&&(qs.hasOwnProperty("AudioContext")||qs.hasOwnProperty("webkitAudioContext"));function PA(s,e,t){return pe(ve(Af),"This node only works in a secure context (https or localhost)"),new Af(s,e,t)}class DA{constructor(e,t,n,r){this._callback=e,this._type=t,this._minimumUpdateInterval=Math.max(128/(r||44100),.001),this.updateInterval=n,this._createClock()}_createWorker(){const e=new Blob([` - // the initial timeout time - let timeoutTime = ${(this._updateInterval*1e3).toFixed(1)}; - // onmessage callback - self.onmessage = function(msg){ - timeoutTime = parseInt(msg.data); - }; - // the tick function which posts a message - // and schedules a new tick - function tick(){ - setTimeout(tick, timeoutTime); - self.postMessage('tick'); - } - // call tick initially - tick(); - `],{type:"text/javascript"}),t=URL.createObjectURL(e),n=new Worker(t);n.onmessage=this._callback.bind(this),this._worker=n}_createTimeout(){this._timeout=setTimeout(()=>{this._createTimeout(),this._callback()},this._updateInterval*1e3)}_createClock(){if(this._type==="worker")try{this._createWorker()}catch{this._type="timeout",this._createClock()}else this._type==="timeout"&&this._createTimeout()}_disposeClock(){this._timeout&&clearTimeout(this._timeout),this._worker&&(this._worker.terminate(),this._worker.onmessage=null)}get updateInterval(){return this._updateInterval}set updateInterval(e){var t;this._updateInterval=Math.max(e,this._minimumUpdateInterval),this._type==="worker"&&((t=this._worker)===null||t===void 0||t.postMessage(this._updateInterval*1e3))}get type(){return this._type}set type(e){this._disposeClock(),this._type=e,this._createClock()}dispose(){this._disposeClock()}}function Js(s){return wA(s)}function ps(s){return xA(s)}function ua(s){return kA(s)}function wr(s){return bA(s)}function MA(s){return s instanceof Nm}function IA(s,e){return s==="value"||Js(e)||ps(e)||MA(e)}function Rr(s,...e){if(!e.length)return s;const t=e.shift();if(Ws(s)&&Ws(t))for(const n in t)IA(n,t[n])?s[n]=t[n]:Ws(t[n])?(s[n]||Object.assign(s,{[n]:{}}),Rr(s[n],t[n])):Object.assign(s,{[n]:t[n]});return Rr(s,...e)}function NA(s,e){return s.length===e.length&&s.every((t,n)=>e[n]===t)}function Z(s,e,t=[],n){const r={},i=Array.from(e);if(Ws(i[0])&&n&&!Reflect.has(i[0],n)&&(Object.keys(i[0]).some(a=>Reflect.has(s,a))||(Rr(r,{[n]:i[0]}),t.splice(t.indexOf(n),1),i.shift())),i.length===1&&Ws(i[0]))Rr(r,i[0]);else for(let o=0;o{Reflect.has(s,t)&&delete s[t]}),s}/** - * Tone.js - * @author Yotam Mann - * @license http://opensource.org/licenses/MIT MIT License - * @copyright 2014-2019 Yotam Mann - */class ns{constructor(){this.debug=!1,this._wasDisposed=!1}static getDefaults(){return{}}log(...e){(this.debug||qs&&this.toString()===qs.TONE_DEBUG_CLASS)&&SA(this,...e)}dispose(){return this._wasDisposed=!0,this}get disposed(){return this._wasDisposed}toString(){return this.name}}ns.version=sm;const nh=1e-6;function zr(s,e){return s>e+nh}function ql(s,e){return zr(s,e)||rn(s,e)}function La(s,e){return s+nhthis.memory){const t=this.length-this.memory;this._timeline.splice(0,t)}return this}remove(e){const t=this._timeline.indexOf(e);return t!==-1&&this._timeline.splice(t,1),this}get(e,t="time"){const n=this._search(e,t);return n!==-1?this._timeline[n]:null}peek(){return this._timeline[0]}shift(){return this._timeline.shift()}getAfter(e,t="time"){const n=this._search(e,t);return n+10&&this._timeline[t-1].time=0?this._timeline[n-1]:null}cancel(e){if(this._timeline.length>1){let t=this._search(e);if(t>=0)if(rn(this._timeline[t].time,e)){for(let n=t;n>=0&&rn(this._timeline[n].time,e);n--)t=n;this._timeline=this._timeline.slice(0,t)}else this._timeline=this._timeline.slice(0,t+1);else this._timeline=[]}else this._timeline.length===1&&ql(this._timeline[0].time,e)&&(this._timeline=[]);return this}cancelBefore(e){const t=this._search(e);return t>=0&&(this._timeline=this._timeline.slice(t+1)),this}previousEvent(e){const t=this._timeline.indexOf(e);return t>0?this._timeline[t-1]:null}_search(e,t="time"){if(this._timeline.length===0)return-1;let n=0;const r=this._timeline.length;let i=r;if(r>0&&this._timeline[r-1][t]<=e)return r-1;for(;n=0&&this._timeline[n].time>=e;)n--;return this._iterate(t,n+1),this}forEachAtTime(e,t){const n=this._search(e);if(n!==-1&&rn(this._timeline[n].time,e)){let r=n;for(let i=n;i>=0&&rn(this._timeline[i].time,e);i--)r=i;this._iterate(i=>{t(i)},r,n)}return this}dispose(){return super.dispose(),this._timeline=[],this}};const eg=[];function yc(s){eg.push(s)}function LA(s){eg.forEach(e=>e(s))}const tg=[];function vc(s){tg.push(s)}function jA(s){tg.forEach(e=>e(s))}class Io extends ns{constructor(){super(...arguments),this.name="Emitter"}on(e,t){return e.split(/\W+/).forEach(r=>{zt(this._events)&&(this._events={}),this._events.hasOwnProperty(r)||(this._events[r]=[]),this._events[r].push(t)}),this}once(e,t){const n=(...r)=>{t(...r),this.off(e,n)};return this.on(e,n),this}off(e,t){return e.split(/\W+/).forEach(r=>{if(zt(this._events)&&(this._events={}),this._events.hasOwnProperty(r))if(zt(t))this._events[r]=[];else{const i=this._events[r];for(let o=i.length-1;o>=0;o--)i[o]===t&&i.splice(o,1)}}),this}emit(e,...t){if(this._events&&this._events.hasOwnProperty(e)){const n=this._events[e].slice(0);for(let r=0,i=n.length;r{const n=Object.getOwnPropertyDescriptor(Io.prototype,t);Object.defineProperty(e.prototype,t,n)})}dispose(){return super.dispose(),this._events=void 0,this}}class ng extends Io{constructor(){super(...arguments),this.isOffline=!1}toJSON(){return{}}}let sh=class sg extends ng{constructor(){var e,t;super(),this.name="Context",this._constants=new Map,this._timeouts=new Tn,this._timeoutIds=0,this._initialized=!1,this._closeStarted=!1,this.isOffline=!1,this._workletPromise=null;const n=Z(sg.getDefaults(),arguments,["context"]);n.context?(this._context=n.context,this._latencyHint=((e=arguments[0])===null||e===void 0?void 0:e.latencyHint)||""):(this._context=OA({latencyHint:n.latencyHint}),this._latencyHint=n.latencyHint),this._ticker=new DA(this.emit.bind(this,"tick"),n.clockSource,n.updateInterval,this._context.sampleRate),this.on("tick",this._timeoutLoop.bind(this)),this._context.onstatechange=()=>{this.emit("statechange",this.state)},this[!((t=arguments[0])===null||t===void 0)&&t.hasOwnProperty("updateInterval")?"_lookAhead":"lookAhead"]=n.lookAhead}static getDefaults(){return{clockSource:"worker",latencyHint:"interactive",lookAhead:.1,updateInterval:.05}}initialize(){return this._initialized||(LA(this),this._initialized=!0),this}createAnalyser(){return this._context.createAnalyser()}createOscillator(){return this._context.createOscillator()}createBufferSource(){return this._context.createBufferSource()}createBiquadFilter(){return this._context.createBiquadFilter()}createBuffer(e,t,n){return this._context.createBuffer(e,t,n)}createChannelMerger(e){return this._context.createChannelMerger(e)}createChannelSplitter(e){return this._context.createChannelSplitter(e)}createConstantSource(){return this._context.createConstantSource()}createConvolver(){return this._context.createConvolver()}createDelay(e){return this._context.createDelay(e)}createDynamicsCompressor(){return this._context.createDynamicsCompressor()}createGain(){return this._context.createGain()}createIIRFilter(e,t){return this._context.createIIRFilter(e,t)}createPanner(){return this._context.createPanner()}createPeriodicWave(e,t,n){return this._context.createPeriodicWave(e,t,n)}createStereoPanner(){return this._context.createStereoPanner()}createWaveShaper(){return this._context.createWaveShaper()}createMediaStreamSource(e){return pe(wr(this._context),"Not available if OfflineAudioContext"),this._context.createMediaStreamSource(e)}createMediaElementSource(e){return pe(wr(this._context),"Not available if OfflineAudioContext"),this._context.createMediaElementSource(e)}createMediaStreamDestination(){return pe(wr(this._context),"Not available if OfflineAudioContext"),this._context.createMediaStreamDestination()}decodeAudioData(e){return this._context.decodeAudioData(e)}get currentTime(){return this._context.currentTime}get state(){return this._context.state}get sampleRate(){return this._context.sampleRate}get listener(){return this.initialize(),this._listener}set listener(e){pe(!this._initialized,"The listener cannot be set after initialization."),this._listener=e}get transport(){return this.initialize(),this._transport}set transport(e){pe(!this._initialized,"The transport cannot be set after initialization."),this._transport=e}get draw(){return this.initialize(),this._draw}set draw(e){pe(!this._initialized,"Draw cannot be set after initialization."),this._draw=e}get destination(){return this.initialize(),this._destination}set destination(e){pe(!this._initialized,"The destination cannot be set after initialization."),this._destination=e}createAudioWorkletNode(e,t){return PA(this.rawContext,e,t)}addAudioWorkletModule(e){return Ie(this,void 0,void 0,function*(){pe(ve(this.rawContext.audioWorklet),"AudioWorkletNode is only available in a secure context (https or localhost)"),this._workletPromise||(this._workletPromise=this.rawContext.audioWorklet.addModule(e)),yield this._workletPromise})}workletsAreReady(){return Ie(this,void 0,void 0,function*(){(yield this._workletPromise)?this._workletPromise:Promise.resolve()})}get updateInterval(){return this._ticker.updateInterval}set updateInterval(e){this._ticker.updateInterval=e}get clockSource(){return this._ticker.type}set clockSource(e){this._ticker.type=e}get lookAhead(){return this._lookAhead}set lookAhead(e){this._lookAhead=e,this.updateInterval=e?e/2:.01}get latencyHint(){return this._latencyHint}get rawContext(){return this._context}now(){return this._context.currentTime+this._lookAhead}immediate(){return this._context.currentTime}resume(){return wr(this._context)?this._context.resume():Promise.resolve()}close(){return Ie(this,void 0,void 0,function*(){wr(this._context)&&this.state!=="closed"&&!this._closeStarted&&(this._closeStarted=!0,yield this._context.close()),this._initialized&&jA(this)})}getConstant(e){if(this._constants.has(e))return this._constants.get(e);{const t=this._context.createBuffer(1,128,this._context.sampleRate),n=t.getChannelData(0);for(let i=0;ithis._constants[e].disconnect()),this.close(),this}_timeoutLoop(){const e=this.now();let t=this._timeouts.peek();for(;this._timeouts.length&&t&&t.time<=e;)t.callback(),this._timeouts.shift(),t=this._timeouts.peek()}setTimeout(e,t){this._timeoutIds++;const n=this.now();return this._timeouts.add({callback:e,id:this._timeoutIds,time:n+t}),this._timeoutIds}clearTimeout(e){return this._timeouts.forEach(t=>{t.id===e&&this._timeouts.remove(t)}),this}clearInterval(e){return this.clearTimeout(e)}setInterval(e,t){const n=++this._timeoutIds,r=()=>{const i=this.now();this._timeouts.add({callback:()=>{e(),r()},id:n,time:i+t})};return r(),n}};class VA extends ng{constructor(){super(...arguments),this.lookAhead=0,this.latencyHint=0,this.isOffline=!1}createAnalyser(){return{}}createOscillator(){return{}}createBufferSource(){return{}}createBiquadFilter(){return{}}createBuffer(e,t,n){return{}}createChannelMerger(e){return{}}createChannelSplitter(e){return{}}createConstantSource(){return{}}createConvolver(){return{}}createDelay(e){return{}}createDynamicsCompressor(){return{}}createGain(){return{}}createIIRFilter(e,t){return{}}createPanner(){return{}}createPeriodicWave(e,t,n){return{}}createStereoPanner(){return{}}createWaveShaper(){return{}}createMediaStreamSource(e){return{}}createMediaElementSource(e){return{}}createMediaStreamDestination(){return{}}decodeAudioData(e){return Promise.resolve({})}createAudioWorkletNode(e,t){return{}}get rawContext(){return{}}addAudioWorkletModule(e){return Ie(this,void 0,void 0,function*(){return Promise.resolve()})}resume(){return Promise.resolve()}setTimeout(e,t){return 0}clearTimeout(e){return this}setInterval(e,t){return 0}clearInterval(e){return this}getConstant(e){return{}}get currentTime(){return 0}get state(){return{}}get sampleRate(){return 0}get listener(){return{}}get transport(){return{}}get draw(){return{}}set draw(e){}get destination(){return{}}set destination(e){}now(){return 0}immediate(){return 0}}function Ve(s,e){ln(e)?e.forEach(t=>Ve(s,t)):Object.defineProperty(s,e,{enumerable:!0,writable:!1})}function rh(s,e){ln(e)?e.forEach(t=>rh(s,t)):Object.defineProperty(s,e,{writable:!0})}const Ce=()=>{};class Se extends ns{constructor(){super(),this.name="ToneAudioBuffer",this.onload=Ce;const e=Z(Se.getDefaults(),arguments,["url","onload","onerror"]);this.reverse=e.reverse,this.onload=e.onload,Gn(e.url)?this.load(e.url).catch(e.onerror):e.url&&this.set(e.url)}static getDefaults(){return{onerror:Ce,onload:Ce,reverse:!1}}get sampleRate(){return this._buffer?this._buffer.sampleRate:on().sampleRate}set(e){return e instanceof Se?e.loaded?this._buffer=e.get():e.onload=()=>{this.set(e),this.onload(this)}:this._buffer=e,this._reversed&&this._reverse(),this}get(){return this._buffer}load(e){return Ie(this,void 0,void 0,function*(){const t=Se.load(e).then(n=>{this.set(n),this.onload(this)});Se.downloads.push(t);try{yield t}finally{const n=Se.downloads.indexOf(t);Se.downloads.splice(n,1)}return this})}dispose(){return super.dispose(),this._buffer=void 0,this}fromArray(e){const t=ln(e)&&e[0].length>0,n=t?e.length:1,r=t?e[0].length:e.length,i=on(),o=i.createBuffer(n,r,i.sampleRate),a=!t&&n===1?[e]:e;for(let c=0;cr/n),this.fromArray(t)}return this}toArray(e){if(xs(e))return this.getChannelData(e);if(this.numberOfChannels===1)return this.toArray(0);{const t=[];for(let n=0;n0}get duration(){return this._buffer?this._buffer.duration:0}get length(){return this._buffer?this._buffer.length:0}get numberOfChannels(){return this._buffer?this._buffer.numberOfChannels:0}get reverse(){return this._reversed}set reverse(e){this._reversed!==e&&(this._reversed=e,this._reverse())}static fromArray(e){return new Se().fromArray(e)}static fromUrl(e){return Ie(this,void 0,void 0,function*(){return yield new Se().load(e)})}static load(e){return Ie(this,void 0,void 0,function*(){const t=e.match(/\[([^\]\[]+\|.+)\]$/);if(t){const c=t[1].split("|");let l=c[0];for(const u of c)if(Se.supportsType(u)){l=u;break}e=e.replace(t[0],l)}const n=Se.baseUrl===""||Se.baseUrl.endsWith("/")?Se.baseUrl:Se.baseUrl+"/",r=document.createElement("a");r.href=n+e,r.pathname=(r.pathname+r.hash).split("/").map(encodeURIComponent).join("/");const i=yield fetch(r.href);if(!i.ok)throw new Error(`could not load url: ${e}`);const o=yield i.arrayBuffer();return yield on().decodeAudioData(o)})}static supportsType(e){const t=e.split("."),n=t[t.length-1];return document.createElement("audio").canPlayType("audio/"+n)!==""}static loaded(){return Ie(this,void 0,void 0,function*(){for(yield Promise.resolve();Se.downloads.length;)yield Se.downloads[0]})}}Se.baseUrl="";Se.downloads=[];class bc extends sh{constructor(){super({clockSource:"offline",context:ua(arguments[0])?arguments[0]:AA(arguments[0],arguments[1]*arguments[2],arguments[2]),lookAhead:0,updateInterval:ua(arguments[0])?128/arguments[0].sampleRate:128/arguments[2]}),this.name="OfflineContext",this._currentTime=0,this.isOffline=!0,this._duration=ua(arguments[0])?arguments[0].length/arguments[0].sampleRate:arguments[1]}now(){return this._currentTime}get currentTime(){return this._currentTime}_renderClock(e){return Ie(this,void 0,void 0,function*(){let t=0;for(;this._duration-this._currentTime>=0;){this.emit("tick"),this._currentTime+=128/this.sampleRate,t++;const n=Math.floor(this.sampleRate/128);e&&t%n===0&&(yield new Promise(r=>setTimeout(r,1)))}})}render(e=!0){return Ie(this,void 0,void 0,function*(){yield this.workletsAreReady(),yield this._renderClock(e);const t=yield this._context.startRendering();return new Se(t)})}close(){return Promise.resolve()}}const rg=new VA;let zs=rg;function on(){return zs===rg&&RA&&zA(new sh),zs}function zA(s,e=!1){e&&zs.dispose(),wr(s)?zs=new sh(s):ua(s)?zs=new bc(s):zs=s}function UA(){return zs.resume()}if(qs&&!qs.TONE_SILENCE_LOGGING){const e=` * Tone.js v${sm} * `;console.log(`%c${e}`,"background: #000; color: #fff")}function BA(s){return Math.pow(10,s/20)}function WA(s){return 20*(Math.log(s)/Math.LN10)}function ig(s){return Math.pow(2,s/12)}let xc=440;function qA(){return xc}function HA(s){xc=s}function Hl(s){return Math.round(og(s))}function og(s){return 69+12*Math.log2(s/xc)}function YA(s){return xc*Math.pow(2,(s-69)/12)}class ih extends ns{constructor(e,t,n){super(),this.defaultUnits="s",this._val=t,this._units=n,this.context=e,this._expressions=this._getExpressions()}_getExpressions(){return{hz:{method:e=>this._frequencyToUnits(parseFloat(e)),regexp:/^(\d+(?:\.\d+)?)hz$/i},i:{method:e=>this._ticksToUnits(parseInt(e,10)),regexp:/^(\d+)i$/i},m:{method:e=>this._beatsToUnits(parseInt(e,10)*this._getTimeSignature()),regexp:/^(\d+)m$/i},n:{method:(e,t)=>{const n=parseInt(e,10),r=t==="."?1.5:1;return n===1?this._beatsToUnits(this._getTimeSignature())*r:this._beatsToUnits(4/n)*r},regexp:/^(\d+)n(\.?)$/i},number:{method:e=>this._expressions[this.defaultUnits].method.call(this,e),regexp:/^(\d+(?:\.\d+)?)$/},s:{method:e=>this._secondsToUnits(parseFloat(e)),regexp:/^(\d+(?:\.\d+)?)s$/},samples:{method:e=>parseInt(e,10)/this.context.sampleRate,regexp:/^(\d+)samples$/},t:{method:e=>{const t=parseInt(e,10);return this._beatsToUnits(8/(Math.floor(t)*3))},regexp:/^(\d+)t$/i},tr:{method:(e,t,n)=>{let r=0;return e&&e!=="0"&&(r+=this._beatsToUnits(this._getTimeSignature()*parseFloat(e))),t&&t!=="0"&&(r+=this._beatsToUnits(parseFloat(t))),n&&n!=="0"&&(r+=this._beatsToUnits(parseFloat(n)/4)),r},regexp:/^(\d+(?:\.\d+)?):(\d+(?:\.\d+)?):?(\d+(?:\.\d+)?)?$/}}}valueOf(){if(this._val instanceof ih&&this.fromType(this._val),zt(this._val))return this._noArg();if(Gn(this._val)&&zt(this._units)){for(const e in this._expressions)if(this._expressions[e].regexp.test(this._val.trim())){this._units=e;break}}else if(Ws(this._val)){let e=0;for(const t in this._val)if(ve(this._val[t])){const n=this._val[t],r=new this.constructor(this.context,t).valueOf()*n;e+=r}return e}if(ve(this._units)){const e=this._expressions[this._units],t=this._val.toString().trim().match(e.regexp);return t?e.method.apply(this,t.slice(1)):e.method.call(this,this._val)}else return Gn(this._val)?parseFloat(this._val):this._val}_frequencyToUnits(e){return 1/e}_beatsToUnits(e){return 60/this._getBpm()*e}_secondsToUnits(e){return e}_ticksToUnits(e){return e*this._beatsToUnits(1)/this._getPPQ()}_noArg(){return this._now()}_getBpm(){return this.context.transport.bpm.value}_getTimeSignature(){return this.context.transport.timeSignature}_getPPQ(){return this.context.transport.PPQ}fromType(e){switch(this._units=void 0,this.defaultUnits){case"s":this._val=e.toSeconds();break;case"i":this._val=e.toTicks();break;case"hz":this._val=e.toFrequency();break;case"midi":this._val=e.toMidi();break}return this}toFrequency(){return 1/this.toSeconds()}toSamples(){return this.toSeconds()*this.context.sampleRate}toMilliseconds(){return this.toSeconds()*1e3}}class an extends ih{constructor(){super(...arguments),this.name="TimeClass"}_getExpressions(){return Object.assign(super._getExpressions(),{now:{method:e=>this._now()+new this.constructor(this.context,e).valueOf(),regexp:/^\+(.+)/},quantize:{method:e=>{const t=new an(this.context,e).valueOf();return this._secondsToUnits(this.context.transport.nextSubdivision(t))},regexp:/^@(.+)/}})}quantize(e,t=1){const n=new this.constructor(this.context,e).valueOf(),r=this.valueOf(),a=Math.round(r/n)*n-r;return r+a*t}toNotation(){const e=this.toSeconds(),t=["1m"];for(let i=1;i<9;i++){const o=Math.pow(2,i);t.push(o+"n."),t.push(o+"n"),t.push(o+"t")}t.push("0");let n=t[0],r=new an(this.context,t[0]).toSeconds();return t.forEach(i=>{const o=new an(this.context,i).toSeconds();Math.abs(o-e)3&&(r=parseFloat(parseFloat(i).toFixed(3))),[n,t,r].join(":")}toTicks(){const e=this._beatsToUnits(1);return this.valueOf()/e*this._getPPQ()}toSeconds(){return this.valueOf()}toMidi(){return Hl(this.toFrequency())}_now(){return this.context.now()}}class Gt extends an{constructor(){super(...arguments),this.name="Frequency",this.defaultUnits="hz"}static get A4(){return qA()}static set A4(e){HA(e)}_getExpressions(){return Object.assign({},super._getExpressions(),{midi:{regexp:/^(\d+(?:\.\d+)?midi)/,method(e){return this.defaultUnits==="midi"?e:Gt.mtof(e)}},note:{regexp:/^([a-g]{1}(?:b|#|##|x|bb|###|#x|x#|bbb)?)(-?[0-9]+)/i,method(e,t){const r=GA[e.toLowerCase()]+(parseInt(t,10)+1)*12;return this.defaultUnits==="midi"?r:Gt.mtof(r)}},tr:{regexp:/^(\d+(?:\.\d+)?):(\d+(?:\.\d+)?):?(\d+(?:\.\d+)?)?/,method(e,t,n){let r=1;return e&&e!=="0"&&(r*=this._beatsToUnits(this._getTimeSignature()*parseFloat(e))),t&&t!=="0"&&(r*=this._beatsToUnits(parseFloat(t))),n&&n!=="0"&&(r*=this._beatsToUnits(parseFloat(n)/4)),r}}})}transpose(e){return new Gt(this.context,this.valueOf()*ig(e))}harmonize(e){return e.map(t=>this.transpose(t))}toMidi(){return Hl(this.valueOf())}toNote(){const e=this.toFrequency(),t=Math.log2(e/Gt.A4);let n=Math.round(12*t)+57;const r=Math.floor(n/12);return r<0&&(n+=-12*r),XA[n%12]+r.toString()}toSeconds(){return 1/super.toSeconds()}toTicks(){const e=this._beatsToUnits(1),t=this.valueOf()/e;return Math.floor(t*this._getPPQ())}_noArg(){return 0}_frequencyToUnits(e){return e}_ticksToUnits(e){return 1/(e*60/(this._getBpm()*this._getPPQ()))}_beatsToUnits(e){return 1/super._beatsToUnits(e)}_secondsToUnits(e){return 1/e}static mtof(e){return YA(e)}static ftom(e){return Hl(e)}}const GA={cbbb:-3,cbb:-2,cb:-1,c:0,"c#":1,cx:2,"c##":2,"c###":3,"cx#":3,"c#x":3,dbbb:-1,dbb:0,db:1,d:2,"d#":3,dx:4,"d##":4,"d###":5,"dx#":5,"d#x":5,ebbb:1,ebb:2,eb:3,e:4,"e#":5,ex:6,"e##":6,"e###":7,"ex#":7,"e#x":7,fbbb:2,fbb:3,fb:4,f:5,"f#":6,fx:7,"f##":7,"f###":8,"fx#":8,"f#x":8,gbbb:4,gbb:5,gb:6,g:7,"g#":8,gx:9,"g##":9,"g###":10,"gx#":10,"g#x":10,abbb:6,abb:7,ab:8,a:9,"a#":10,ax:11,"a##":11,"a###":12,"ax#":12,"a#x":12,bbbb:8,bbb:9,bb:10,b:11,"b#":12,bx:13,"b##":13,"b###":14,"bx#":14,"b#x":14},XA=["C","C#","D","D#","E","F","F#","G","G#","A","A#","B"];class Ii extends an{constructor(){super(...arguments),this.name="TransportTime"}_now(){return this.context.transport.seconds}}class Ot extends ns{constructor(){super();const e=Z(Ot.getDefaults(),arguments,["context"]);this.defaultContext?this.context=this.defaultContext:this.context=e.context}static getDefaults(){return{context:on()}}now(){return this.context.currentTime+this.context.lookAhead}immediate(){return this.context.currentTime}get sampleTime(){return 1/this.context.sampleRate}get blockTime(){return 128/this.context.sampleRate}toSeconds(e){return CA(e),new an(this.context,e).toSeconds()}toFrequency(e){return new Gt(this.context,e).toFrequency()}toTicks(e){return new Ii(this.context,e).toTicks()}_getPartialProperties(e){const t=this.get();return Object.keys(t).forEach(n=>{zt(e[n])&&delete t[n]}),t}get(){const e=$A(this);return Object.keys(e).forEach(t=>{if(Reflect.has(this,t)){const n=this[t];ve(n)&&ve(n.value)&&ve(n.setValueAtTime)?e[t]=n.value:n instanceof Ot?e[t]=n._getPartialProperties(e[t]):ln(n)||xs(n)||Gn(n)||EA(n)?e[t]=n:delete e[t]}}),e}set(e){return Object.keys(e).forEach(t=>{Reflect.has(this,t)&&ve(this[t])&&(this[t]&&ve(this[t].value)&&ve(this[t].setValueAtTime)?this[t].value!==e[t]&&(this[t].value=e[t]):this[t]instanceof Ot?this[t].set(e[t]):this[t]=e[t])}),this}}class oh extends Tn{constructor(e="stopped"){super(),this.name="StateTimeline",this._initial=e,this.setStateAtTime(this._initial,0)}getValueAtTime(e){const t=this.get(e);return t!==null?t.state:this._initial}setStateAtTime(e,t,n){return dn(t,0),this.add(Object.assign({},n,{state:e,time:t})),this}getLastState(e,t){const n=this._search(t);for(let r=n;r>=0;r--){const i=this._timeline[r];if(i.state===e)return i}}getNextState(e,t){const n=this._search(t);if(n!==-1)for(let r=n;r0,"timeConstant must be a number greater than 0");const i=this.toSeconds(t);return this._assertRange(r),pe(isFinite(r)&&isFinite(i),`Invalid argument(s) to setTargetAtTime: ${JSON.stringify(e)}, ${JSON.stringify(t)}`),this._events.add({constant:n,time:i,type:"setTargetAtTime",value:r}),this.log(this.units,"setTargetAtTime",e,i,n),this._param.setTargetAtTime(r,i,n),this}setValueCurveAtTime(e,t,n,r=1){n=this.toSeconds(n),t=this.toSeconds(t);const i=this._fromType(e[0])*r;this.setValueAtTime(this._toType(i),t);const o=n/(e.length-1);for(let a=1;a{r.type==="cancelScheduledValues"?e.cancelScheduledValues(r.time):r.type==="setTargetAtTime"?e.setTargetAtTime(r.value,r.time,r.constant):e[r.type](r.value,r.time)}),this}setParam(e){pe(this._swappable,"The Param must be assigned as 'swappable' in the constructor");const t=this.input;return t.disconnect(this._param),this.apply(e),this._param=e,t.connect(this._param),this}dispose(){return super.dispose(),this._events.dispose(),this}get defaultValue(){return this._toType(this._param.defaultValue)}_exponentialApproach(e,t,n,r,i){return n+(t-n)*Math.exp(-(i-e)/r)}_linearInterpolate(e,t,n,r,i){return t+(r-t)*((i-e)/(n-e))}_exponentialInterpolate(e,t,n,r,i){return t*Math.pow(r/t,(i-e)/(n-e))}}class le extends Ot{constructor(){super(...arguments),this._internalChannels=[]}get numberOfInputs(){return ve(this.input)?Js(this.input)||this.input instanceof Oe?1:this.input.numberOfInputs:0}get numberOfOutputs(){return ve(this.output)?this.output.numberOfOutputs:0}_isAudioNode(e){return ve(e)&&(e instanceof le||ps(e))}_getInternalNodes(){const e=this._internalChannels.slice(0);return this._isAudioNode(this.input)&&e.push(this.input),this._isAudioNode(this.output)&&this.input!==this.output&&e.push(this.output),e}_setChannelProperties(e){this._getInternalNodes().forEach(n=>{n.channelCount=e.channelCount,n.channelCountMode=e.channelCountMode,n.channelInterpretation=e.channelInterpretation})}_getChannelProperties(){const e=this._getInternalNodes();pe(e.length>0,"ToneAudioNode does not have any internal nodes");const t=e[0];return{channelCount:t.channelCount,channelCountMode:t.channelCountMode,channelInterpretation:t.channelInterpretation}}get channelCount(){return this._getChannelProperties().channelCount}set channelCount(e){const t=this._getChannelProperties();this._setChannelProperties(Object.assign(t,{channelCount:e}))}get channelCountMode(){return this._getChannelProperties().channelCountMode}set channelCountMode(e){const t=this._getChannelProperties();this._setChannelProperties(Object.assign(t,{channelCountMode:e}))}get channelInterpretation(){return this._getChannelProperties().channelInterpretation}set channelInterpretation(e){const t=this._getChannelProperties();this._setChannelProperties(Object.assign(t,{channelInterpretation:e}))}connect(e,t=0,n=0){return ws(this,e,t,n),this}toDestination(){return this.connect(this.context.destination),this}toMaster(){return th("toMaster() has been renamed toDestination()"),this.toDestination()}disconnect(e,t=0,n=0){return ZA(this,e,t,n),this}chain(...e){return Hi(this,...e),this}fan(...e){return e.forEach(t=>this.connect(t)),this}dispose(){return super.dispose(),ve(this.input)&&(this.input instanceof le?this.input.dispose():ps(this.input)&&this.input.disconnect()),ve(this.output)&&(this.output instanceof le?this.output.dispose():ps(this.output)&&this.output.disconnect()),this._internalChannels=[],this}}function Hi(...s){const e=s.shift();s.reduce((t,n)=>(t instanceof le?t.connect(n):ps(t)&&ws(t,n),n),e)}function ws(s,e,t=0,n=0){for(pe(ve(s),"Cannot connect from undefined node"),pe(ve(e),"Cannot connect to undefined node"),(e instanceof le||ps(e))&&pe(e.numberOfInputs>0,"Cannot connect to node with no inputs"),pe(s.numberOfOutputs>0,"Cannot connect from node with no outputs");e instanceof le||e instanceof Oe;)ve(e.input)&&(e=e.input);for(;s instanceof le;)ve(s.output)&&(s=s.output);Js(e)?s.connect(e,t):s.connect(e,t,n)}function ZA(s,e,t=0,n=0){if(ve(e))for(;e instanceof le;)e=e.input;for(;!ps(s);)ve(s.output)&&(s=s.output);Js(e)?s.disconnect(e,t):ps(e)?s.disconnect(e,t,n):s.disconnect()}class Ne extends le{constructor(){super(Z(Ne.getDefaults(),arguments,["gain","units"])),this.name="Gain",this._gainNode=this.context.createGain(),this.input=this._gainNode,this.output=this._gainNode;const e=Z(Ne.getDefaults(),arguments,["gain","units"]);this.gain=new Oe({context:this.context,convert:e.convert,param:this._gainNode.gain,units:e.units,value:e.gain,minValue:e.minValue,maxValue:e.maxValue}),Ve(this,"gain")}static getDefaults(){return Object.assign(le.getDefaults(),{convert:!0,gain:1,units:"gain"})}dispose(){return super.dispose(),this._gainNode.disconnect(),this.gain.dispose(),this}}class Ur extends le{constructor(e){super(e),this.onended=Ce,this._startTime=-1,this._stopTime=-1,this._timeout=-1,this.output=new Ne({context:this.context,gain:0}),this._gainNode=this.output,this.getStateAtTime=function(t){const n=this.toSeconds(t);return this._startTime!==-1&&n>=this._startTime&&(this._stopTime===-1||n<=this._stopTime)?"started":"stopped"},this._fadeIn=e.fadeIn,this._fadeOut=e.fadeOut,this._curve=e.curve,this.onended=e.onended}static getDefaults(){return Object.assign(le.getDefaults(),{curve:"linear",fadeIn:0,fadeOut:0,onended:Ce})}_startGain(e,t=1){pe(this._startTime===-1,"Source cannot be started more than once");const n=this.toSeconds(this._fadeIn);return this._startTime=e+n,this._startTime=Math.max(this._startTime,this.context.currentTime),n>0?(this._gainNode.gain.setValueAtTime(0,e),this._curve==="linear"?this._gainNode.gain.linearRampToValueAtTime(t,e+n):this._gainNode.gain.exponentialApproachValueAtTime(t,e,n)):this._gainNode.gain.setValueAtTime(t,e),this}stop(e){return this.log("stop",e),this._stopGain(this.toSeconds(e)),this}_stopGain(e){pe(this._startTime!==-1,"'start' must be called before 'stop'"),this.cancelStop();const t=this.toSeconds(this._fadeOut);return this._stopTime=this.toSeconds(e)+t,this._stopTime=Math.max(this._stopTime,this.now()),t>0?this._curve==="linear"?this._gainNode.gain.linearRampTo(0,t,e):this._gainNode.gain.targetRampTo(0,t,e):(this._gainNode.gain.cancelAndHoldAtTime(e),this._gainNode.gain.setValueAtTime(0,e)),this.context.clearTimeout(this._timeout),this._timeout=this.context.setTimeout(()=>{const n=this._curve==="exponential"?t*2:0;this._stopSource(this.now()+n),this._onended()},this._stopTime-this.context.currentTime),this}_onended(){if(this.onended!==Ce&&(this.onended(this),this.onended=Ce,!this.context.isOffline)){const e=()=>this.dispose();typeof window.requestIdleCallback<"u"?window.requestIdleCallback(e):setTimeout(e,1e3)}}get state(){return this.getStateAtTime(this.now())}cancelStop(){return this.log("cancelStop"),pe(this._startTime!==-1,"Source is not started"),this._gainNode.gain.cancelScheduledValues(this._startTime+this.sampleTime),this.context.clearTimeout(this._timeout),this._stopTime=-1,this}dispose(){return super.dispose(),this._gainNode.dispose(),this.onended=Ce,this}}class ja extends Ur{constructor(){super(Z(ja.getDefaults(),arguments,["offset"])),this.name="ToneConstantSource",this._source=this.context.createConstantSource();const e=Z(ja.getDefaults(),arguments,["offset"]);ws(this._source,this._gainNode),this.offset=new Oe({context:this.context,convert:e.convert,param:this._source.offset,units:e.units,value:e.offset,minValue:e.minValue,maxValue:e.maxValue})}static getDefaults(){return Object.assign(Ur.getDefaults(),{convert:!0,offset:1,units:"number"})}start(e){const t=this.toSeconds(e);return this.log("start",t),this._startGain(t),this._source.start(t),this}_stopSource(e){this._source.stop(e)}dispose(){return super.dispose(),this.state==="started"&&this.stop(),this._source.disconnect(),this.offset.dispose(),this}}class Le extends le{constructor(){super(Z(Le.getDefaults(),arguments,["value","units"])),this.name="Signal",this.override=!0;const e=Z(Le.getDefaults(),arguments,["value","units"]);this.output=this._constantSource=new ja({context:this.context,convert:e.convert,offset:e.value,units:e.units,minValue:e.minValue,maxValue:e.maxValue}),this._constantSource.start(0),this.input=this._param=this._constantSource.offset}static getDefaults(){return Object.assign(le.getDefaults(),{convert:!0,units:"number",value:0})}connect(e,t=0,n=0){return ah(this,e,t,n),this}dispose(){return super.dispose(),this._param.dispose(),this._constantSource.dispose(),this}setValueAtTime(e,t){return this._param.setValueAtTime(e,t),this}getValueAtTime(e){return this._param.getValueAtTime(e)}setRampPoint(e){return this._param.setRampPoint(e),this}linearRampToValueAtTime(e,t){return this._param.linearRampToValueAtTime(e,t),this}exponentialRampToValueAtTime(e,t){return this._param.exponentialRampToValueAtTime(e,t),this}exponentialRampTo(e,t,n){return this._param.exponentialRampTo(e,t,n),this}linearRampTo(e,t,n){return this._param.linearRampTo(e,t,n),this}targetRampTo(e,t,n){return this._param.targetRampTo(e,t,n),this}exponentialApproachValueAtTime(e,t,n){return this._param.exponentialApproachValueAtTime(e,t,n),this}setTargetAtTime(e,t,n){return this._param.setTargetAtTime(e,t,n),this}setValueCurveAtTime(e,t,n,r){return this._param.setValueCurveAtTime(e,t,n,r),this}cancelScheduledValues(e){return this._param.cancelScheduledValues(e),this}cancelAndHoldAtTime(e){return this._param.cancelAndHoldAtTime(e),this}rampTo(e,t,n){return this._param.rampTo(e,t,n),this}get value(){return this._param.value}set value(e){this._param.value=e}get convert(){return this._param.convert}set convert(e){this._param.convert=e}get units(){return this._param.units}get overridden(){return this._param.overridden}set overridden(e){this._param.overridden=e}get maxValue(){return this._param.maxValue}get minValue(){return this._param.minValue}apply(e){return this._param.apply(e),this}}function ah(s,e,t,n){(e instanceof Oe||Js(e)||e instanceof Le&&e.override)&&(e.cancelScheduledValues(0),e.setValueAtTime(0,0),e instanceof Le&&(e.overridden=!0)),ws(s,e,t,n)}class Va extends Oe{constructor(){super(Z(Va.getDefaults(),arguments,["value"])),this.name="TickParam",this._events=new Tn(1/0),this._multiplier=1;const e=Z(Va.getDefaults(),arguments,["value"]);this._multiplier=e.multiplier,this._events.cancel(0),this._events.add({ticks:0,time:0,type:"setValueAtTime",value:this._fromType(e.value)}),this.setValueAtTime(e.value,0)}static getDefaults(){return Object.assign(Oe.getDefaults(),{multiplier:1,units:"hertz",value:1})}setTargetAtTime(e,t,n){t=this.toSeconds(t),this.setRampPoint(t);const r=this._fromType(e),i=this._events.get(t),o=Math.round(Math.max(1/n,1));for(let a=0;a<=o;a++){const c=n*a+t,l=this._exponentialApproach(i.time,i.value,r,n,c);this.linearRampToValueAtTime(this._toType(l),c)}return this}setValueAtTime(e,t){const n=this.toSeconds(t);super.setValueAtTime(e,t);const r=this._events.get(n),i=this._events.previousEvent(r),o=this._getTicksUntilEvent(i,n);return r.ticks=Math.max(o,0),this}linearRampToValueAtTime(e,t){const n=this.toSeconds(t);super.linearRampToValueAtTime(e,t);const r=this._events.get(n),i=this._events.previousEvent(r),o=this._getTicksUntilEvent(i,n);return r.ticks=Math.max(o,0),this}exponentialRampToValueAtTime(e,t){t=this.toSeconds(t);const n=this._fromType(e),r=this._events.get(t),i=Math.round(Math.max((t-r.time)*10,1)),o=(t-r.time)/i;for(let a=0;a<=i;a++){const c=o*a+r.time,l=this._exponentialInterpolate(r.time,r.value,t,n,c);this.linearRampToValueAtTime(this._toType(l),c)}return this}_getTicksUntilEvent(e,t){if(e===null)e={ticks:0,time:0,type:"setValueAtTime",value:0};else if(zt(e.ticks)){const o=this._events.previousEvent(e);e.ticks=this._getTicksUntilEvent(o,e.time)}const n=this._fromType(this.getValueAtTime(e.time));let r=this._fromType(this.getValueAtTime(t));const i=this._events.get(t);return i&&i.time===t&&i.type==="setValueAtTime"&&(r=this._fromType(this.getValueAtTime(t-this.sampleTime))),.5*(t-e.time)*(n+r)+e.ticks}getTicksAtTime(e){const t=this.toSeconds(e),n=this._events.get(t);return Math.max(this._getTicksUntilEvent(n,t),0)}getDurationOfTicks(e,t){const n=this.toSeconds(t),r=this.getTicksAtTime(t);return this.getTimeOfTick(r+e)-n}getTimeOfTick(e){const t=this._events.get(e,"ticks"),n=this._events.getAfter(e,"ticks");if(t&&t.ticks===e)return t.time;if(t&&n&&n.type==="linearRampToValueAtTime"&&t.value!==n.value){const r=this._fromType(this.getValueAtTime(t.time)),o=(this._fromType(this.getValueAtTime(n.time))-r)/(n.time-t.time),a=Math.sqrt(Math.pow(r,2)-2*o*(t.ticks-e)),c=(-r+a)/o,l=(-r-a)/o;return(c>0?c:l)+t.time}else return t?t.value===0?1/0:t.time+(e-t.ticks)/t.value:e/this._initialValue}ticksToTime(e,t){return this.getDurationOfTicks(e,t)}timeToTicks(e,t){const n=this.toSeconds(t),r=this.toSeconds(e),i=this.getTicksAtTime(n);return this.getTicksAtTime(n+r)-i}_fromType(e){return this.units==="bpm"&&this.multiplier?1/(60/e/this.multiplier):super._fromType(e)}_toType(e){return this.units==="bpm"&&this.multiplier?e/this.multiplier*60:super._toType(e)}get multiplier(){return this._multiplier}set multiplier(e){const t=this.value;this._multiplier=e,this.cancelScheduledValues(0),this.setValueAtTime(t,0)}}class za extends Le{constructor(){super(Z(za.getDefaults(),arguments,["value"])),this.name="TickSignal";const e=Z(za.getDefaults(),arguments,["value"]);this.input=this._param=new Va({context:this.context,convert:e.convert,multiplier:e.multiplier,param:this._constantSource.offset,units:e.units,value:e.value})}static getDefaults(){return Object.assign(Le.getDefaults(),{multiplier:1,units:"hertz",value:1})}ticksToTime(e,t){return this._param.ticksToTime(e,t)}timeToTicks(e,t){return this._param.timeToTicks(e,t)}getTimeOfTick(e){return this._param.getTimeOfTick(e)}getDurationOfTicks(e,t){return this._param.getDurationOfTicks(e,t)}getTicksAtTime(e){return this._param.getTicksAtTime(e)}get multiplier(){return this._param.multiplier}set multiplier(e){this._param.multiplier=e}dispose(){return super.dispose(),this._param.dispose(),this}}class Ua extends Ot{constructor(){super(Z(Ua.getDefaults(),arguments,["frequency"])),this.name="TickSource",this._state=new oh,this._tickOffset=new Tn,this._ticksAtTime=new Tn,this._secondsAtTime=new Tn;const e=Z(Ua.getDefaults(),arguments,["frequency"]);this.frequency=new za({context:this.context,units:e.units,value:e.frequency}),Ve(this,"frequency"),this._state.setStateAtTime("stopped",0),this.setTicksAtTime(0,0)}static getDefaults(){return Object.assign({frequency:1,units:"hertz"},Ot.getDefaults())}get state(){return this.getStateAtTime(this.now())}start(e,t){const n=this.toSeconds(e);return this._state.getValueAtTime(n)!=="started"&&(this._state.setStateAtTime("started",n),ve(t)&&this.setTicksAtTime(t,n),this._ticksAtTime.cancel(n),this._secondsAtTime.cancel(n)),this}stop(e){const t=this.toSeconds(e);if(this._state.getValueAtTime(t)==="stopped"){const n=this._state.get(t);n&&n.time>0&&(this._tickOffset.cancel(n.time),this._state.cancel(n.time))}return this._state.cancel(t),this._state.setStateAtTime("stopped",t),this.setTicksAtTime(0,t),this._ticksAtTime.cancel(t),this._secondsAtTime.cancel(t),this}pause(e){const t=this.toSeconds(e);return this._state.getValueAtTime(t)==="started"&&(this._state.setStateAtTime("paused",t),this._ticksAtTime.cancel(t),this._secondsAtTime.cancel(t)),this}cancel(e){return e=this.toSeconds(e),this._state.cancel(e),this._tickOffset.cancel(e),this._ticksAtTime.cancel(e),this._secondsAtTime.cancel(e),this}getTicksAtTime(e){const t=this.toSeconds(e),n=this._state.getLastState("stopped",t),r=this._ticksAtTime.get(t),i={state:"paused",time:t};this._state.add(i);let o=r||n,a=r?r.ticks:0,c=null;return this._state.forEachBetween(o.time,t+this.sampleTime,l=>{let u=o.time;const h=this._tickOffset.get(l.time);h&&h.time>=o.time&&(a=h.ticks,u=h.time),o.state==="started"&&l.state!=="started"&&(a+=this.frequency.getTicksAtTime(l.time)-this.frequency.getTicksAtTime(u),l.time!=i.time&&(c={state:l.state,time:l.time,ticks:a})),o=l}),this._state.remove(i),c&&this._ticksAtTime.add(c),a}get ticks(){return this.getTicksAtTime(this.now())}set ticks(e){this.setTicksAtTime(e,this.now())}get seconds(){return this.getSecondsAtTime(this.now())}set seconds(e){const t=this.now(),n=this.frequency.timeToTicks(e,t);this.setTicksAtTime(n,t)}getSecondsAtTime(e){e=this.toSeconds(e);const t=this._state.getLastState("stopped",e),n={state:"paused",time:e};this._state.add(n);const r=this._secondsAtTime.get(e);let i=r||t,o=r?r.seconds:0,a=null;return this._state.forEachBetween(i.time,e+this.sampleTime,c=>{let l=i.time;const u=this._tickOffset.get(c.time);u&&u.time>=i.time&&(o=u.seconds,l=u.time),i.state==="started"&&c.state!=="started"&&(o+=c.time-l,c.time!=n.time&&(a={state:c.state,time:c.time,seconds:o})),i=c}),this._state.remove(n),a&&this._secondsAtTime.add(a),o}setTicksAtTime(e,t){return t=this.toSeconds(t),this._tickOffset.cancel(t),this._tickOffset.add({seconds:this.frequency.getDurationOfTicks(e,t),ticks:e,time:t}),this._ticksAtTime.cancel(t),this._secondsAtTime.cancel(t),this}getStateAtTime(e){return e=this.toSeconds(e),this._state.getValueAtTime(e)}getTimeOfTick(e,t=this.now()){const n=this._tickOffset.get(t),r=this._state.get(t),i=Math.max(n.time,r.time),o=this.frequency.getTicksAtTime(i)+e-n.ticks;return this.frequency.getTimeOfTick(o)}forEachTickBetween(e,t,n){let r=this._state.get(e);this._state.forEachBetween(e,t,o=>{r&&r.state==="started"&&o.state!=="started"&&this.forEachTickBetween(Math.max(r.time,e),o.time-this.sampleTime,n),r=o});let i=null;if(r&&r.state==="started"){const o=Math.max(r.time,e),a=this.frequency.getTicksAtTime(o),c=this.frequency.getTicksAtTime(r.time),l=a-c;let u=Math.ceil(l)-l;u=rn(u,1)?0:u;let h=this.frequency.getTimeOfTick(a+u);for(;h{switch(n.state){case"started":const r=this._tickSource.getTicksAtTime(n.time);this.emit("start",n.time,r);break;case"stopped":n.time!==0&&this.emit("stop",n.time);break;case"paused":this.emit("pause",n.time);break}}),this._tickSource.forEachTickBetween(e,t,(n,r)=>{this.callback(n,r)}))}getStateAtTime(e){const t=this.toSeconds(e);return this._state.getValueAtTime(t)}dispose(){return super.dispose(),this.context.off("tick",this._boundLoop),this._tickSource.dispose(),this._state.dispose(),this}}Io.mixin(Yi);class ch extends ns{constructor(){super(),this.name="ToneAudioBuffers",this._buffers=new Map,this._loadingCount=0;const e=Z(ch.getDefaults(),arguments,["urls","onload","baseUrl"],"urls");this.baseUrl=e.baseUrl,Object.keys(e.urls).forEach(t=>{this._loadingCount++;const n=e.urls[t];this.add(t,n,this._bufferLoaded.bind(this,e.onload),e.onerror)})}static getDefaults(){return{baseUrl:"",onerror:Ce,onload:Ce,urls:{}}}has(e){return this._buffers.has(e.toString())}get(e){return pe(this.has(e),`ToneAudioBuffers has no buffer named: ${e}`),this._buffers.get(e.toString())}_bufferLoaded(e){this._loadingCount--,this._loadingCount===0&&e&&e()}get loaded(){return Array.from(this._buffers).every(([e,t])=>t.loaded)}add(e,t,n=Ce,r=Ce){return Gn(t)?(this.baseUrl&&t.trim().substring(0,11).toLowerCase()==="data:audio/"&&(this.baseUrl=""),this._buffers.set(e.toString(),new Se(this.baseUrl+t,n,r))):this._buffers.set(e.toString(),new Se(t,n,r)),this}dispose(){return super.dispose(),this._buffers.forEach(e=>e.dispose()),this._buffers.clear(),this}}class Er extends Ii{constructor(){super(...arguments),this.name="Ticks",this.defaultUnits="i"}_now(){return this.context.transport.ticks}_beatsToUnits(e){return this._getPPQ()*e}_secondsToUnits(e){return Math.floor(e/(60/this._getBpm())*this._getPPQ())}_ticksToUnits(e){return e}toTicks(){return this.valueOf()}toSeconds(){return this.valueOf()/this._getPPQ()*(60/this._getBpm())}}class KA extends Ot{constructor(){super(...arguments),this.name="Draw",this.expiration=.25,this.anticipation=.008,this._events=new Tn,this._boundDrawLoop=this._drawLoop.bind(this),this._animationFrame=-1}schedule(e,t){return this._events.add({callback:e,time:this.toSeconds(t)}),this._events.length===1&&(this._animationFrame=requestAnimationFrame(this._boundDrawLoop)),this}cancel(e){return this._events.cancel(this.toSeconds(e)),this}_drawLoop(){const e=this.context.currentTime;for(;this._events.length&&this._events.peek().time-this.anticipation<=e;){const t=this._events.shift();t&&e-t.time<=this.expiration&&t.callback()}this._events.length>0&&(this._animationFrame=requestAnimationFrame(this._boundDrawLoop))}dispose(){return super.dispose(),this._events.dispose(),cancelAnimationFrame(this._animationFrame),this}}yc(s=>{s.draw=new KA({context:s})});vc(s=>{s.draw.dispose()});class QA extends ns{constructor(){super(...arguments),this.name="IntervalTimeline",this._root=null,this._length=0}add(e){pe(ve(e.time),"Events must have a time property"),pe(ve(e.duration),"Events must have a duration parameter"),e.time=e.time.valueOf();let t=new JA(e.time,e.time+e.duration,e);for(this._root===null?this._root=t:this._root.insert(t),this._length++;t!==null;)t.updateHeight(),t.updateMax(),this._rebalance(t),t=t.parent;return this}remove(e){if(this._root!==null){const t=[];this._root.search(e.time,t);for(const n of t)if(n.event===e){this._removeNode(n),this._length--;break}}return this}get length(){return this._length}cancel(e){return this.forEachFrom(e,t=>this.remove(t)),this}_setRoot(e){this._root=e,this._root!==null&&(this._root.parent=null)}_replaceNodeInParent(e,t){e.parent!==null?(e.isLeftChild()?e.parent.left=t:e.parent.right=t,this._rebalance(e.parent)):this._setRoot(t)}_removeNode(e){if(e.left===null&&e.right===null)this._replaceNodeInParent(e,null);else if(e.right===null)this._replaceNodeInParent(e,e.left);else if(e.left===null)this._replaceNodeInParent(e,e.right);else{const t=e.getBalance();let n,r=null;if(t>0)if(e.left.right===null)n=e.left,n.right=e.right,r=n;else{for(n=e.left.right;n.right!==null;)n=n.right;n.parent&&(n.parent.right=n.left,r=n.parent,n.left=e.left,n.right=e.right)}else if(e.right.left===null)n=e.right,n.left=e.left,r=n;else{for(n=e.right.left;n.left!==null;)n=n.left;n.parent&&(n.parent.left=n.right,r=n.parent,n.left=e.left,n.right=e.right)}e.parent!==null?e.isLeftChild()?e.parent.left=n:e.parent.right=n:this._setRoot(n),r&&this._rebalance(r)}e.dispose()}_rotateLeft(e){const t=e.parent,n=e.isLeftChild(),r=e.right;r&&(e.right=r.left,r.left=e),t!==null?n?t.left=r:t.right=r:this._setRoot(r)}_rotateRight(e){const t=e.parent,n=e.isLeftChild(),r=e.left;r&&(e.left=r.right,r.right=e),t!==null?n?t.left=r:t.right=r:this._setRoot(r)}_rebalance(e){const t=e.getBalance();t>1&&e.left?e.left.getBalance()<0?this._rotateLeft(e.left):this._rotateRight(e):t<-1&&e.right&&(e.right.getBalance()>0?this._rotateRight(e.right):this._rotateLeft(e))}get(e){if(this._root!==null){const t=[];if(this._root.search(e,t),t.length>0){let n=t[0];for(let r=1;rn.low&&(n=t[r]);return n.event}}return null}forEach(e){if(this._root!==null){const t=[];this._root.traverse(n=>t.push(n)),t.forEach(n=>{n.event&&e(n.event)})}return this}forEachAtTime(e,t){if(this._root!==null){const n=[];this._root.search(e,n),n.forEach(r=>{r.event&&t(r.event)})}return this}forEachFrom(e,t){if(this._root!==null){const n=[];this._root.searchAfter(e,n),n.forEach(r=>{r.event&&t(r.event)})}return this}dispose(){return super.dispose(),this._root!==null&&this._root.traverse(e=>e.dispose()),this._root=null,this}}class JA{constructor(e,t,n){this._left=null,this._right=null,this.parent=null,this.height=0,this.event=n,this.low=e,this.high=t,this.max=this.high}insert(e){e.low<=this.low?this.left===null?this.left=e:this.left.insert(e):this.right===null?this.right=e:this.right.insert(e)}search(e,t){e>this.max||(this.left!==null&&this.left.search(e,t),this.low<=e&&this.high>e&&t.push(this),!(this.low>e)&&this.right!==null&&this.right.search(e,t))}searchAfter(e,t){this.low>=e&&(t.push(this),this.left!==null&&this.left.searchAfter(e,t)),this.right!==null&&this.right.searchAfter(e,t)}traverse(e){e(this),this.left!==null&&this.left.traverse(e),this.right!==null&&this.right.traverse(e)}updateHeight(){this.left!==null&&this.right!==null?this.height=Math.max(this.left.height,this.right.height)+1:this.right!==null?this.height=this.right.height+1:this.left!==null?this.height=this.left.height+1:this.height=0}updateMax(){this.max=this.high,this.left!==null&&(this.max=Math.max(this.max,this.left.max)),this.right!==null&&(this.max=Math.max(this.max,this.right.max))}getBalance(){let e=0;return this.left!==null&&this.right!==null?e=this.left.height-this.right.height:this.left!==null?e=this.left.height+1:this.right!==null&&(e=-(this.right.height+1)),e}isLeftChild(){return this.parent!==null&&this.parent.left===this}get left(){return this._left}set left(e){this._left=e,e!==null&&(e.parent=this),this.updateHeight(),this.updateMax()}get right(){return this._right}set right(e){this._right=e,e!==null&&(e.parent=this),this.updateHeight(),this.updateMax()}dispose(){this.parent=null,this._left=null,this._right=null,this.event=null}}class ks extends le{constructor(){super(Z(ks.getDefaults(),arguments,["volume"])),this.name="Volume";const e=Z(ks.getDefaults(),arguments,["volume"]);this.input=this.output=new Ne({context:this.context,gain:e.volume,units:"decibels"}),this.volume=this.output.gain,Ve(this,"volume"),this._unmutedVolume=e.volume,this.mute=e.mute}static getDefaults(){return Object.assign(le.getDefaults(),{mute:!1,volume:0})}get mute(){return this.volume.value===-1/0}set mute(e){!this.mute&&e?(this._unmutedVolume=this.volume.value,this.volume.value=-1/0):this.mute&&!e&&(this.volume.value=this._unmutedVolume)}dispose(){return super.dispose(),this.input.dispose(),this.volume.dispose(),this}}let eR=class Yl extends le{constructor(){super(Z(Yl.getDefaults(),arguments)),this.name="Destination",this.input=new ks({context:this.context}),this.output=new Ne({context:this.context}),this.volume=this.input.volume;const e=Z(Yl.getDefaults(),arguments);Hi(this.input,this.output,this.context.rawContext.destination),this.mute=e.mute,this._internalChannels=[this.input,this.context.rawContext.destination,this.output]}static getDefaults(){return Object.assign(le.getDefaults(),{mute:!1,volume:0})}get mute(){return this.input.mute}set mute(e){this.input.mute=e}chain(...e){return this.input.disconnect(),e.unshift(this.input),e.push(this.output),Hi(...e),this}get maxChannelCount(){return this.context.rawContext.destination.maxChannelCount}dispose(){return super.dispose(),this.volume.dispose(),this}};yc(s=>{s.destination=new eR({context:s})});vc(s=>{s.destination.dispose()});class tR extends ns{constructor(e){super(),this.name="TimelineValue",this._timeline=new Tn({memory:10}),this._initialValue=e}set(e,t){return this._timeline.add({value:e,time:t}),this}get(e){const t=this._timeline.get(e);return t?t.value:this._initialValue}}class Xn extends le{constructor(){super(Object.assign(Z(Xn.getDefaults(),arguments,["context"])))}connect(e,t=0,n=0){return ah(this,e,t,n),this}}class er extends Xn{constructor(){super(Object.assign(Z(er.getDefaults(),arguments,["mapping","length"]))),this.name="WaveShaper",this._shaper=this.context.createWaveShaper(),this.input=this._shaper,this.output=this._shaper;const e=Z(er.getDefaults(),arguments,["mapping","length"]);ln(e.mapping)||e.mapping instanceof Float32Array?this.curve=Float32Array.from(e.mapping):TA(e.mapping)&&this.setMap(e.mapping,e.length)}static getDefaults(){return Object.assign(Le.getDefaults(),{length:1024})}setMap(e,t=1024){const n=new Float32Array(t);for(let r=0,i=t;rn.includes(e));pe(t,"oversampling must be either 'none', '2x', or '4x'"),this._shaper.oversample=e}dispose(){return super.dispose(),this._shaper.disconnect(),this}}class Gi extends Xn{constructor(){super(Object.assign(Z(Gi.getDefaults(),arguments,["value"]))),this.name="Pow";const e=Z(Gi.getDefaults(),arguments,["value"]);this._exponentScaler=this.input=this.output=new er({context:this.context,mapping:this._expFunc(e.value),length:8192}),this._exponent=e.value}static getDefaults(){return Object.assign(Xn.getDefaults(),{value:1})}_expFunc(e){return t=>Math.pow(Math.abs(t),e)}get value(){return this._exponent}set value(e){this._exponent=e,this._exponentScaler.setMap(this._expFunc(this._exponent))}dispose(){return super.dispose(),this._exponentScaler.dispose(),this}}class Ts{constructor(e,t){this.id=Ts._eventId++,this._remainderTime=0;const n=Object.assign(Ts.getDefaults(),t);this.transport=e,this.callback=n.callback,this._once=n.once,this.time=Math.floor(n.time),this._remainderTime=n.time-this.time}static getDefaults(){return{callback:Ce,once:!1,time:0}}get floatTime(){return this.time+this._remainderTime}invoke(e){if(this.callback){const t=this.transport.bpm.getDurationOfTicks(1,e);this.callback(e+this._remainderTime*t),this._once&&this.transport.clear(this.id)}}dispose(){return this.callback=void 0,this}}Ts._eventId=0;class lh extends Ts{constructor(e,t){super(e,t),this._currentId=-1,this._nextId=-1,this._nextTick=this.time,this._boundRestart=this._restart.bind(this);const n=Object.assign(lh.getDefaults(),t);this.duration=n.duration,this._interval=n.interval,this._nextTick=n.time,this.transport.on("start",this._boundRestart),this.transport.on("loopStart",this._boundRestart),this.transport.on("ticks",this._boundRestart),this.context=this.transport.context,this._restart()}static getDefaults(){return Object.assign({},Ts.getDefaults(),{duration:1/0,interval:1,once:!1})}invoke(e){this._createEvents(e),super.invoke(e)}_createEvent(){return La(this._nextTick,this.floatTime+this.duration)?this.transport.scheduleOnce(this.invoke.bind(this),new Er(this.context,this._nextTick).toSeconds()):-1}_createEvents(e){La(this._nextTick+this._interval,this.floatTime+this.duration)&&(this._nextTick+=this._interval,this._currentId=this._nextId,this._nextId=this.transport.scheduleOnce(this.invoke.bind(this),new Er(this.context,this._nextTick).toSeconds()))}_restart(e){this.transport.clear(this._currentId),this.transport.clear(this._nextId),this._nextTick=this.floatTime;const t=this.transport.getTicksAtTime(e);zr(t,this.time)&&(this._nextTick=this.floatTime+Math.ceil((t-this.floatTime)/this._interval)*this._interval),this._currentId=this._createEvent(),this._nextTick+=this._interval,this._nextId=this._createEvent()}dispose(){return super.dispose(),this.transport.clear(this._currentId),this.transport.clear(this._nextId),this.transport.off("start",this._boundRestart),this.transport.off("loopStart",this._boundRestart),this.transport.off("ticks",this._boundRestart),this}}class Xi extends Ot{constructor(){super(Z(Xi.getDefaults(),arguments)),this.name="Transport",this._loop=new tR(!1),this._loopStart=0,this._loopEnd=0,this._scheduledEvents={},this._timeline=new Tn,this._repeatedEvents=new QA,this._syncedSignals=[],this._swingAmount=0;const e=Z(Xi.getDefaults(),arguments);this._ppq=e.ppq,this._clock=new Yi({callback:this._processTick.bind(this),context:this.context,frequency:0,units:"bpm"}),this._bindClockEvents(),this.bpm=this._clock.frequency,this._clock.frequency.multiplier=e.ppq,this.bpm.setValueAtTime(e.bpm,0),Ve(this,"bpm"),this._timeSignature=e.timeSignature,this._swingTicks=e.ppq/2}static getDefaults(){return Object.assign(Ot.getDefaults(),{bpm:120,loopEnd:"4m",loopStart:0,ppq:192,swing:0,swingSubdivision:"8n",timeSignature:4})}_processTick(e,t){if(this._loop.get(e)&&t>=this._loopEnd&&(this.emit("loopEnd",e),this._clock.setTicksAtTime(this._loopStart,e),t=this._loopStart,this.emit("loopStart",e,this._clock.getSecondsAtTime(e)),this.emit("loop",e)),this._swingAmount>0&&t%this._ppq!==0&&t%(this._swingTicks*2)!==0){const n=t%(this._swingTicks*2)/(this._swingTicks*2),r=Math.sin(n*Math.PI)*this._swingAmount;e+=new Er(this.context,this._swingTicks*2/3).toSeconds()*r}Pf(!0),this._timeline.forEachAtTime(t,n=>n.invoke(e)),Pf(!1)}schedule(e,t){const n=new Ts(this,{callback:e,time:new Ii(this.context,t).toTicks()});return this._addEvent(n,this._timeline)}scheduleRepeat(e,t,n,r=1/0){const i=new lh(this,{callback:e,duration:new an(this.context,r).toTicks(),interval:new an(this.context,t).toTicks(),time:new Ii(this.context,n).toTicks()});return this._addEvent(i,this._repeatedEvents)}scheduleOnce(e,t){const n=new Ts(this,{callback:e,once:!0,time:new Ii(this.context,t).toTicks()});return this._addEvent(n,this._timeline)}clear(e){if(this._scheduledEvents.hasOwnProperty(e)){const t=this._scheduledEvents[e.toString()];t.timeline.remove(t.event),t.event.dispose(),delete this._scheduledEvents[e.toString()]}return this}_addEvent(e,t){return this._scheduledEvents[e.id.toString()]={event:e,timeline:t},t.add(e),e.id}cancel(e=0){const t=this.toTicks(e);return this._timeline.forEachFrom(t,n=>this.clear(n.id)),this._repeatedEvents.forEachFrom(t,n=>this.clear(n.id)),this}_bindClockEvents(){this._clock.on("start",(e,t)=>{t=new Er(this.context,t).toSeconds(),this.emit("start",e,t)}),this._clock.on("stop",e=>{this.emit("stop",e)}),this._clock.on("pause",e=>{this.emit("pause",e)})}get state(){return this._clock.getStateAtTime(this.now())}start(e,t){this.context.resume();let n;return ve(t)&&(n=this.toTicks(t)),this._clock.start(e,n),this}stop(e){return this._clock.stop(e),this}pause(e){return this._clock.pause(e),this}toggle(e){return e=this.toSeconds(e),this._clock.getStateAtTime(e)!=="started"?this.start(e):this.stop(e),this}get timeSignature(){return this._timeSignature}set timeSignature(e){ln(e)&&(e=e[0]/e[1]*4),this._timeSignature=e}get loopStart(){return new an(this.context,this._loopStart,"i").toSeconds()}set loopStart(e){this._loopStart=this.toTicks(e)}get loopEnd(){return new an(this.context,this._loopEnd,"i").toSeconds()}set loopEnd(e){this._loopEnd=this.toTicks(e)}get loop(){return this._loop.get(this.now())}set loop(e){this._loop.set(e,this.now())}setLoopPoints(e,t){return this.loopStart=e,this.loopEnd=t,this}get swing(){return this._swingAmount}set swing(e){this._swingAmount=e}get swingSubdivision(){return new Er(this.context,this._swingTicks).toNotation()}set swingSubdivision(e){this._swingTicks=this.toTicks(e)}get position(){const e=this.now(),t=this._clock.getTicksAtTime(e);return new Er(this.context,t).toBarsBeatsSixteenths()}set position(e){const t=this.toTicks(e);this.ticks=t}get seconds(){return this._clock.seconds}set seconds(e){const t=this.now(),n=this._clock.frequency.timeToTicks(e,t);this.ticks=n}get progress(){if(this.loop){const e=this.now();return(this._clock.getTicksAtTime(e)-this._loopStart)/(this._loopEnd-this._loopStart)}else return 0}get ticks(){return this._clock.ticks}set ticks(e){if(this._clock.ticks!==e){const t=this.now();if(this.state==="started"){const n=this._clock.getTicksAtTime(t),r=this._clock.frequency.getDurationOfTicks(Math.ceil(n)-n,t),i=t+r;this.emit("stop",i),this._clock.setTicksAtTime(e,i),this.emit("start",i,this._clock.getSecondsAtTime(i))}else this.emit("ticks",t),this._clock.setTicksAtTime(e,t)}}getTicksAtTime(e){return this._clock.getTicksAtTime(e)}getSecondsAtTime(e){return this._clock.getSecondsAtTime(e)}get PPQ(){return this._clock.frequency.multiplier}set PPQ(e){this._clock.frequency.multiplier=e}nextSubdivision(e){if(e=this.toTicks(e),this.state!=="started")return 0;{const t=this.now(),n=this.getTicksAtTime(t),r=e-n%e;return this._clock.nextTickTime(r,t)}}syncSignal(e,t){const n=this.now();let r=this.bpm,i=1/(60/r.getValueAtTime(n)/this.PPQ),o=[];if(e.units==="time"){const c=.015625/i,l=new Ne(c),u=new Gi(-1),h=new Ne(c);r.chain(l,u,h),r=h,i=1/i,o=[l,u,h]}t||(e.getValueAtTime(n)!==0?t=e.getValueAtTime(n)/i:t=0);const a=new Ne(t);return r.connect(a),a.connect(e._param),o.push(a),this._syncedSignals.push({initial:e.value,nodes:o,signal:e}),e.value=0,this}unsyncSignal(e){for(let t=this._syncedSignals.length-1;t>=0;t--){const n=this._syncedSignals[t];n.signal===e&&(n.nodes.forEach(r=>r.dispose()),n.signal.value=n.initial,this._syncedSignals.splice(t,1))}return this}dispose(){return super.dispose(),this._clock.dispose(),rh(this,"bpm"),this._timeline.dispose(),this._repeatedEvents.dispose(),this}}Io.mixin(Xi);yc(s=>{s.transport=new Xi({context:s})});vc(s=>{s.transport.dispose()});class gt extends le{constructor(e){super(e),this.input=void 0,this._state=new oh("stopped"),this._synced=!1,this._scheduled=[],this._syncedStart=Ce,this._syncedStop=Ce,this._state.memory=100,this._state.increasing=!0,this._volume=this.output=new ks({context:this.context,mute:e.mute,volume:e.volume}),this.volume=this._volume.volume,Ve(this,"volume"),this.onstop=e.onstop}static getDefaults(){return Object.assign(le.getDefaults(),{mute:!1,onstop:Ce,volume:0})}get state(){return this._synced?this.context.transport.state==="started"?this._state.getValueAtTime(this.context.transport.seconds):"stopped":this._state.getValueAtTime(this.now())}get mute(){return this._volume.mute}set mute(e){this._volume.mute=e}_clampToCurrentTime(e){return this._synced?e:Math.max(e,this.context.currentTime)}start(e,t,n){let r=zt(e)&&this._synced?this.context.transport.seconds:this.toSeconds(e);if(r=this._clampToCurrentTime(r),!this._synced&&this._state.getValueAtTime(r)==="started")pe(zr(r,this._state.get(r).time),"Start time must be strictly greater than previous start time"),this._state.cancel(r),this._state.setStateAtTime("started",r),this.log("restart",r),this.restart(r,t,n);else if(this.log("start",r),this._state.setStateAtTime("started",r),this._synced){const i=this._state.get(r);i&&(i.offset=this.toSeconds(Pr(t,0)),i.duration=n?this.toSeconds(n):void 0);const o=this.context.transport.schedule(a=>{this._start(a,t,n)},r);this._scheduled.push(o),this.context.transport.state==="started"&&this.context.transport.getSecondsAtTime(this.immediate())>r&&this._syncedStart(this.now(),this.context.transport.seconds)}else Zm(this.context),this._start(r,t,n);return this}stop(e){let t=zt(e)&&this._synced?this.context.transport.seconds:this.toSeconds(e);if(t=this._clampToCurrentTime(t),this._state.getValueAtTime(t)==="started"||ve(this._state.getNextState("started",t))){if(this.log("stop",t),!this._synced)this._stop(t);else{const n=this.context.transport.schedule(this._stop.bind(this),t);this._scheduled.push(n)}this._state.cancel(t),this._state.setStateAtTime("stopped",t)}return this}restart(e,t,n){return e=this.toSeconds(e),this._state.getValueAtTime(e)==="started"&&(this._state.cancel(e),this._restart(e,t,n)),this}sync(){return this._synced||(this._synced=!0,this._syncedStart=(e,t)=>{if(zr(t,0)){const n=this._state.get(t);if(n&&n.state==="started"&&n.time!==t){const r=t-this.toSeconds(n.time);let i;n.duration&&(i=this.toSeconds(n.duration)-r),this._start(e,this.toSeconds(n.offset)+r,i)}}},this._syncedStop=e=>{const t=this.context.transport.getSecondsAtTime(Math.max(e-this.sampleTime,0));this._state.getValueAtTime(t)==="started"&&this._stop(e)},this.context.transport.on("start",this._syncedStart),this.context.transport.on("loopStart",this._syncedStart),this.context.transport.on("stop",this._syncedStop),this.context.transport.on("pause",this._syncedStop),this.context.transport.on("loopEnd",this._syncedStop)),this}unsync(){return this._synced&&(this.context.transport.off("stop",this._syncedStop),this.context.transport.off("pause",this._syncedStop),this.context.transport.off("loopEnd",this._syncedStop),this.context.transport.off("start",this._syncedStart),this.context.transport.off("loopStart",this._syncedStart)),this._synced=!1,this._scheduled.forEach(e=>this.context.transport.clear(e)),this._scheduled=[],this._state.cancel(0),this._stop(0),this}dispose(){return super.dispose(),this.onstop=Ce,this.unsync(),this._volume.dispose(),this._state.dispose(),this}}class Br extends Ur{constructor(){super(Z(Br.getDefaults(),arguments,["url","onload"])),this.name="ToneBufferSource",this._source=this.context.createBufferSource(),this._internalChannels=[this._source],this._sourceStarted=!1,this._sourceStopped=!1;const e=Z(Br.getDefaults(),arguments,["url","onload"]);ws(this._source,this._gainNode),this._source.onended=()=>this._stopSource(),this.playbackRate=new Oe({context:this.context,param:this._source.playbackRate,units:"positive",value:e.playbackRate}),this.loop=e.loop,this.loopStart=e.loopStart,this.loopEnd=e.loopEnd,this._buffer=new Se(e.url,e.onload,e.onerror),this._internalChannels.push(this._source)}static getDefaults(){return Object.assign(Ur.getDefaults(),{url:new Se,loop:!1,loopEnd:0,loopStart:0,onload:Ce,onerror:Ce,playbackRate:1})}get fadeIn(){return this._fadeIn}set fadeIn(e){this._fadeIn=e}get fadeOut(){return this._fadeOut}set fadeOut(e){this._fadeOut=e}get curve(){return this._curve}set curve(e){this._curve=e}start(e,t,n,r=1){pe(this.buffer.loaded,"buffer is either not set or not loaded");const i=this.toSeconds(e);this._startGain(i,r),this.loop?t=Pr(t,this.loopStart):t=Pr(t,0);let o=Math.max(this.toSeconds(t),0);if(this.loop){const a=this.toSeconds(this.loopEnd)||this.buffer.duration,c=this.toSeconds(this.loopStart),l=a-c;ql(o,a)&&(o=(o-c)%l+c),rn(o,this.buffer.duration)&&(o=0)}if(this._source.buffer=this.buffer.get(),this._source.loopEnd=this.toSeconds(this.loopEnd)||this.buffer.duration,La(o,this.buffer.duration)&&(this._sourceStarted=!0,this._source.start(i,o)),ve(n)){let a=this.toSeconds(n);a=Math.max(a,0),this.stop(i+a)}return this}_stopSource(e){!this._sourceStopped&&this._sourceStarted&&(this._sourceStopped=!0,this._source.stop(this.toSeconds(e)),this._onended())}get loopStart(){return this._source.loopStart}set loopStart(e){this._source.loopStart=this.toSeconds(e)}get loopEnd(){return this._source.loopEnd}set loopEnd(e){this._source.loopEnd=this.toSeconds(e)}get buffer(){return this._buffer}set buffer(e){this._buffer.set(e)}get loop(){return this._source.loop}set loop(e){this._source.loop=e,this._sourceStarted&&this.cancelStop()}dispose(){return super.dispose(),this._source.onended=null,this._source.disconnect(),this._buffer.dispose(),this.playbackRate.dispose(),this}}class Zi extends gt{constructor(){super(Z(Zi.getDefaults(),arguments,["type"])),this.name="Noise",this._source=null;const e=Z(Zi.getDefaults(),arguments,["type"]);this._playbackRate=e.playbackRate,this.type=e.type,this._fadeIn=e.fadeIn,this._fadeOut=e.fadeOut}static getDefaults(){return Object.assign(gt.getDefaults(),{fadeIn:0,fadeOut:0,playbackRate:1,type:"white"})}get type(){return this._type}set type(e){if(pe(e in Df,"Noise: invalid type: "+e),this._type!==e&&(this._type=e,this.state==="started")){const t=this.now();this._stop(t),this._start(t)}}get playbackRate(){return this._playbackRate}set playbackRate(e){this._playbackRate=e,this._source&&(this._source.playbackRate.value=e)}_start(e){const t=Df[this._type];this._source=new Br({url:t,context:this.context,fadeIn:this._fadeIn,fadeOut:this._fadeOut,loop:!0,onended:()=>this.onstop(this),playbackRate:this._playbackRate}).connect(this.output),this._source.start(this.toSeconds(e),Math.random()*(t.duration-.001))}_stop(e){this._source&&(this._source.stop(this.toSeconds(e)),this._source=null)}get fadeIn(){return this._fadeIn}set fadeIn(e){this._fadeIn=e,this._source&&(this._source.fadeIn=this._fadeIn)}get fadeOut(){return this._fadeOut}set fadeOut(e){this._fadeOut=e,this._source&&(this._source.fadeOut=this._fadeOut)}_restart(e){this._stop(e),this._start(e)}dispose(){return super.dispose(),this._source&&this._source.disconnect(),this}}const yr=44100*5,el=2,Fn={brown:null,pink:null,white:null},Df={get brown(){if(!Fn.brown){const s=[];for(let e=0;ethis.onstop(this)});this._oscillator=n,this._wave?this._oscillator.setPeriodicWave(this._wave):this._oscillator.type=this._type,this._oscillator.connect(this.output),this.frequency.connect(this._oscillator.frequency),this.detune.connect(this._oscillator.detune),this._oscillator.start(t)}_stop(e){const t=this.toSeconds(e);this._oscillator&&this._oscillator.stop(t)}_restart(e){const t=this.toSeconds(e);return this.log("restart",t),this._oscillator&&this._oscillator.cancelStop(),this._state.cancel(t),this}syncFrequency(){return this.context.transport.syncSignal(this.frequency),this}unsyncFrequency(){return this.context.transport.unsyncSignal(this.frequency),this}_getCachedPeriodicWave(){if(this._type==="custom")return nt._periodicWaveCache.find(t=>t.phase===this._phase&&NA(t.partials,this._partials));{const e=nt._periodicWaveCache.find(t=>t.type===this._type&&t.phase===this._phase);return this._partialCount=e?e.partialCount:this._partialCount,e}}get type(){return this._type}set type(e){this._type=e;const t=["sine","square","sawtooth","triangle"].indexOf(e)!==-1;if(this._phase===0&&t)this._wave=void 0,this._partialCount=0,this._oscillator!==null&&(this._oscillator.type=e);else{const n=this._getCachedPeriodicWave();if(ve(n)){const{partials:r,wave:i}=n;this._wave=i,this._partials=r,this._oscillator!==null&&this._oscillator.setPeriodicWave(this._wave)}else{const[r,i]=this._getRealImaginary(e,this._phase),o=this.context.createPeriodicWave(r,i);this._wave=o,this._oscillator!==null&&this._oscillator.setPeriodicWave(this._wave),nt._periodicWaveCache.push({imag:i,partialCount:this._partialCount,partials:this._partials,phase:this._phase,real:r,type:this._type,wave:this._wave}),nt._periodicWaveCache.length>100&&nt._periodicWaveCache.shift()}}}get baseType(){return this._type.replace(this.partialCount.toString(),"")}set baseType(e){this.partialCount&&this._type!=="custom"&&e!=="custom"?this.type=e+this.partialCount:this.type=e}get partialCount(){return this._partialCount}set partialCount(e){dn(e,0);let t=this._type;const n=/^(sine|triangle|square|sawtooth)(\d+)$/.exec(this._type);if(n&&(t=n[1]),this._type!=="custom")e===0?this.type=t:this.type=t+e.toString();else{const r=new Float32Array(e);this._partials.forEach((i,o)=>r[o]=i),this._partials=Array.from(r),this.type=this._type}}_getRealImaginary(e,t){let r=2048;const i=new Float32Array(r),o=new Float32Array(r);let a=1;if(e==="custom"){if(a=this._partials.length+1,this._partialCount=this._partials.length,r=a,this._partials.length===0)return[i,o]}else{const c=/^(sine|triangle|square|sawtooth)(\d+)$/.exec(e);c?(a=parseInt(c[2],10)+1,this._partialCount=parseInt(c[2],10),e=c[1],a=Math.max(a,2),r=a):this._partialCount=0,this._partials=[]}for(let c=1;c>1&1?-1:1):u=0,this._partials[c-1]=u;break;case"custom":u=this._partials[c-1];break;default:throw new TypeError("Oscillator: invalid type: "+e)}u!==0?(i[c]=-u*Math.sin(t*c),o[c]=u*Math.cos(t*c)):(i[c]=0,o[c]=0)}return[i,o]}_inverseFFT(e,t,n){let r=0;const i=e.length;for(let o=0;o(e+1)/2}),this.input=this._norm,this.output=this._norm}dispose(){return super.dispose(),this._norm.dispose(),this}}class Es extends Le{constructor(){super(Object.assign(Z(Es.getDefaults(),arguments,["value"]))),this.name="Multiply",this.override=!1;const e=Z(Es.getDefaults(),arguments,["value"]);this._mult=this.input=this.output=new Ne({context:this.context,minValue:e.minValue,maxValue:e.maxValue}),this.factor=this._param=this._mult.gain,this.factor.setValueAtTime(e.value,0)}static getDefaults(){return Object.assign(Le.getDefaults(),{value:0})}dispose(){return super.dispose(),this._mult.dispose(),this}}class Ki extends gt{constructor(){super(Z(Ki.getDefaults(),arguments,["frequency","type","modulationType"])),this.name="AMOscillator",this._modulationScale=new nR({context:this.context}),this._modulationNode=new Ne({context:this.context});const e=Z(Ki.getDefaults(),arguments,["frequency","type","modulationType"]);this._carrier=new nt({context:this.context,detune:e.detune,frequency:e.frequency,onstop:()=>this.onstop(this),phase:e.phase,type:e.type}),this.frequency=this._carrier.frequency,this.detune=this._carrier.detune,this._modulator=new nt({context:this.context,phase:e.phase,type:e.modulationType}),this.harmonicity=new Es({context:this.context,units:"positive",value:e.harmonicity}),this.frequency.chain(this.harmonicity,this._modulator.frequency),this._modulator.chain(this._modulationScale,this._modulationNode.gain),this._carrier.chain(this._modulationNode,this.output),Ve(this,["frequency","detune","harmonicity"])}static getDefaults(){return Object.assign(nt.getDefaults(),{harmonicity:1,modulationType:"square"})}_start(e){this._modulator.start(e),this._carrier.start(e)}_stop(e){this._modulator.stop(e),this._carrier.stop(e)}_restart(e){this._modulator.restart(e),this._carrier.restart(e)}get type(){return this._carrier.type}set type(e){this._carrier.type=e}get baseType(){return this._carrier.baseType}set baseType(e){this._carrier.baseType=e}get partialCount(){return this._carrier.partialCount}set partialCount(e){this._carrier.partialCount=e}get modulationType(){return this._modulator.type}set modulationType(e){this._modulator.type=e}get phase(){return this._carrier.phase}set phase(e){this._carrier.phase=e,this._modulator.phase=e}get partials(){return this._carrier.partials}set partials(e){this._carrier.partials=e}asArray(e=1024){return Ie(this,void 0,void 0,function*(){return cr(this,e)})}dispose(){return super.dispose(),this.frequency.dispose(),this.detune.dispose(),this.harmonicity.dispose(),this._carrier.dispose(),this._modulator.dispose(),this._modulationNode.dispose(),this._modulationScale.dispose(),this}}class Qi extends gt{constructor(){super(Z(Qi.getDefaults(),arguments,["frequency","type","modulationType"])),this.name="FMOscillator",this._modulationNode=new Ne({context:this.context,gain:0});const e=Z(Qi.getDefaults(),arguments,["frequency","type","modulationType"]);this._carrier=new nt({context:this.context,detune:e.detune,frequency:0,onstop:()=>this.onstop(this),phase:e.phase,type:e.type}),this.detune=this._carrier.detune,this.frequency=new Le({context:this.context,units:"frequency",value:e.frequency}),this._modulator=new nt({context:this.context,phase:e.phase,type:e.modulationType}),this.harmonicity=new Es({context:this.context,units:"positive",value:e.harmonicity}),this.modulationIndex=new Es({context:this.context,units:"positive",value:e.modulationIndex}),this.frequency.connect(this._carrier.frequency),this.frequency.chain(this.harmonicity,this._modulator.frequency),this.frequency.chain(this.modulationIndex,this._modulationNode),this._modulator.connect(this._modulationNode.gain),this._modulationNode.connect(this._carrier.frequency),this._carrier.connect(this.output),this.detune.connect(this._modulator.detune),Ve(this,["modulationIndex","frequency","detune","harmonicity"])}static getDefaults(){return Object.assign(nt.getDefaults(),{harmonicity:1,modulationIndex:2,modulationType:"square"})}_start(e){this._modulator.start(e),this._carrier.start(e)}_stop(e){this._modulator.stop(e),this._carrier.stop(e)}_restart(e){return this._modulator.restart(e),this._carrier.restart(e),this}get type(){return this._carrier.type}set type(e){this._carrier.type=e}get baseType(){return this._carrier.baseType}set baseType(e){this._carrier.baseType=e}get partialCount(){return this._carrier.partialCount}set partialCount(e){this._carrier.partialCount=e}get modulationType(){return this._modulator.type}set modulationType(e){this._modulator.type=e}get phase(){return this._carrier.phase}set phase(e){this._carrier.phase=e,this._modulator.phase=e}get partials(){return this._carrier.partials}set partials(e){this._carrier.partials=e}asArray(e=1024){return Ie(this,void 0,void 0,function*(){return cr(this,e)})}dispose(){return super.dispose(),this.frequency.dispose(),this.harmonicity.dispose(),this._carrier.dispose(),this._modulator.dispose(),this._modulationNode.dispose(),this.modulationIndex.dispose(),this}}class Wr extends gt{constructor(){super(Z(Wr.getDefaults(),arguments,["frequency","width"])),this.name="PulseOscillator",this._widthGate=new Ne({context:this.context,gain:0}),this._thresh=new er({context:this.context,mapping:t=>t<=0?-1:1});const e=Z(Wr.getDefaults(),arguments,["frequency","width"]);this.width=new Le({context:this.context,units:"audioRange",value:e.width}),this._triangle=new nt({context:this.context,detune:e.detune,frequency:e.frequency,onstop:()=>this.onstop(this),phase:e.phase,type:"triangle"}),this.frequency=this._triangle.frequency,this.detune=this._triangle.detune,this._triangle.chain(this._thresh,this.output),this.width.chain(this._widthGate,this._thresh),Ve(this,["width","frequency","detune"])}static getDefaults(){return Object.assign(gt.getDefaults(),{detune:0,frequency:440,phase:0,type:"pulse",width:.2})}_start(e){e=this.toSeconds(e),this._triangle.start(e),this._widthGate.gain.setValueAtTime(1,e)}_stop(e){e=this.toSeconds(e),this._triangle.stop(e),this._widthGate.gain.cancelScheduledValues(e),this._widthGate.gain.setValueAtTime(0,e)}_restart(e){this._triangle.restart(e),this._widthGate.gain.cancelScheduledValues(e),this._widthGate.gain.setValueAtTime(1,e)}get phase(){return this._triangle.phase}set phase(e){this._triangle.phase=e}get type(){return"pulse"}get baseType(){return"pulse"}get partials(){return[]}get partialCount(){return 0}set carrierType(e){this._triangle.type=e}asArray(e=1024){return Ie(this,void 0,void 0,function*(){return cr(this,e)})}dispose(){return super.dispose(),this._triangle.dispose(),this.width.dispose(),this._widthGate.dispose(),this._thresh.dispose(),this}}class Ji extends gt{constructor(){super(Z(Ji.getDefaults(),arguments,["frequency","type","spread"])),this.name="FatOscillator",this._oscillators=[];const e=Z(Ji.getDefaults(),arguments,["frequency","type","spread"]);this.frequency=new Le({context:this.context,units:"frequency",value:e.frequency}),this.detune=new Le({context:this.context,units:"cents",value:e.detune}),this._spread=e.spread,this._type=e.type,this._phase=e.phase,this._partials=e.partials,this._partialCount=e.partialCount,this.count=e.count,Ve(this,["frequency","detune"])}static getDefaults(){return Object.assign(nt.getDefaults(),{count:3,spread:20,type:"sawtooth"})}_start(e){e=this.toSeconds(e),this._forEach(t=>t.start(e))}_stop(e){e=this.toSeconds(e),this._forEach(t=>t.stop(e))}_restart(e){this._forEach(t=>t.restart(e))}_forEach(e){for(let t=0;tt.type=e)}get spread(){return this._spread}set spread(e){if(this._spread=e,this._oscillators.length>1){const t=-e/2,n=e/(this._oscillators.length-1);this._forEach((r,i)=>r.detune.value=t+n*i)}}get count(){return this._oscillators.length}set count(e){if(dn(e,1),this._oscillators.length!==e){this._forEach(t=>t.dispose()),this._oscillators=[];for(let t=0;tthis.onstop(this):Ce});this.type==="custom"&&(n.partials=this._partials),this.frequency.connect(n.frequency),this.detune.connect(n.detune),n.detune.overridden=!1,n.connect(this.output),this._oscillators[t]=n}this.spread=this._spread,this.state==="started"&&this._forEach(t=>t.start())}}get phase(){return this._phase}set phase(e){this._phase=e,this._forEach((t,n)=>t.phase=this._phase+n/this.count*360)}get baseType(){return this._oscillators[0].baseType}set baseType(e){this._forEach(t=>t.baseType=e),this._type=this._oscillators[0].type}get partials(){return this._oscillators[0].partials}set partials(e){this._partials=e,this._partialCount=this._partials.length,e.length&&(this._type="custom",this._forEach(t=>t.partials=e))}get partialCount(){return this._oscillators[0].partialCount}set partialCount(e){this._partialCount=e,this._forEach(t=>t.partialCount=e),this._type=this._oscillators[0].type}asArray(e=1024){return Ie(this,void 0,void 0,function*(){return cr(this,e)})}dispose(){return super.dispose(),this.frequency.dispose(),this.detune.dispose(),this._forEach(e=>e.dispose()),this}}class eo extends gt{constructor(){super(Z(eo.getDefaults(),arguments,["frequency","modulationFrequency"])),this.name="PWMOscillator",this.sourceType="pwm",this._scale=new Es({context:this.context,value:2});const e=Z(eo.getDefaults(),arguments,["frequency","modulationFrequency"]);this._pulse=new Wr({context:this.context,frequency:e.modulationFrequency}),this._pulse.carrierType="sine",this.modulationFrequency=this._pulse.frequency,this._modulator=new nt({context:this.context,detune:e.detune,frequency:e.frequency,onstop:()=>this.onstop(this),phase:e.phase}),this.frequency=this._modulator.frequency,this.detune=this._modulator.detune,this._modulator.chain(this._scale,this._pulse.width),this._pulse.connect(this.output),Ve(this,["modulationFrequency","frequency","detune"])}static getDefaults(){return Object.assign(gt.getDefaults(),{detune:0,frequency:440,modulationFrequency:.4,phase:0,type:"pwm"})}_start(e){e=this.toSeconds(e),this._modulator.start(e),this._pulse.start(e)}_stop(e){e=this.toSeconds(e),this._modulator.stop(e),this._pulse.stop(e)}_restart(e){this._modulator.restart(e),this._pulse.restart(e)}get type(){return"pwm"}get baseType(){return"pwm"}get partials(){return[]}get partialCount(){return 0}get phase(){return this._modulator.phase}set phase(e){this._modulator.phase=e}asArray(e=1024){return Ie(this,void 0,void 0,function*(){return cr(this,e)})}dispose(){return super.dispose(),this._pulse.dispose(),this._scale.dispose(),this._modulator.dispose(),this}}const Mf={am:Ki,fat:Ji,fm:Qi,oscillator:nt,pulse:Wr,pwm:eo};class tr extends gt{constructor(){super(Z(tr.getDefaults(),arguments,["frequency","type"])),this.name="OmniOscillator";const e=Z(tr.getDefaults(),arguments,["frequency","type"]);this.frequency=new Le({context:this.context,units:"frequency",value:e.frequency}),this.detune=new Le({context:this.context,units:"cents",value:e.detune}),Ve(this,["frequency","detune"]),this.set(e)}static getDefaults(){return Object.assign(nt.getDefaults(),Qi.getDefaults(),Ki.getDefaults(),Ji.getDefaults(),Wr.getDefaults(),eo.getDefaults())}_start(e){this._oscillator.start(e)}_stop(e){this._oscillator.stop(e)}_restart(e){return this._oscillator.restart(e),this}get type(){let e="";return["am","fm","fat"].some(t=>this._sourceType===t)&&(e=this._sourceType),e+this._oscillator.type}set type(e){e.substr(0,2)==="fm"?(this._createNewOscillator("fm"),this._oscillator=this._oscillator,this._oscillator.type=e.substr(2)):e.substr(0,2)==="am"?(this._createNewOscillator("am"),this._oscillator=this._oscillator,this._oscillator.type=e.substr(2)):e.substr(0,3)==="fat"?(this._createNewOscillator("fat"),this._oscillator=this._oscillator,this._oscillator.type=e.substr(3)):e==="pwm"?(this._createNewOscillator("pwm"),this._oscillator=this._oscillator):e==="pulse"?this._createNewOscillator("pulse"):(this._createNewOscillator("oscillator"),this._oscillator=this._oscillator,this._oscillator.type=e)}get partials(){return this._oscillator.partials}set partials(e){!this._getOscType(this._oscillator,"pulse")&&!this._getOscType(this._oscillator,"pwm")&&(this._oscillator.partials=e)}get partialCount(){return this._oscillator.partialCount}set partialCount(e){!this._getOscType(this._oscillator,"pulse")&&!this._getOscType(this._oscillator,"pwm")&&(this._oscillator.partialCount=e)}set(e){return Reflect.has(e,"type")&&e.type&&(this.type=e.type),super.set(e),this}_createNewOscillator(e){if(e!==this._sourceType){this._sourceType=e;const t=Mf[e],n=this.now();if(this._oscillator){const r=this._oscillator;r.stop(n),this.context.setTimeout(()=>r.dispose(),this.blockTime)}this._oscillator=new t({context:this.context}),this.frequency.connect(this._oscillator.frequency),this.detune.connect(this._oscillator.detune),this._oscillator.connect(this.output),this._oscillator.onstop=()=>this.onstop(this),this.state==="started"&&this._oscillator.start(n)}}get phase(){return this._oscillator.phase}set phase(e){this._oscillator.phase=e}get sourceType(){return this._sourceType}set sourceType(e){let t="sine";this._oscillator.type!=="pwm"&&this._oscillator.type!=="pulse"&&(t=this._oscillator.type),e==="fm"?this.type="fm"+t:e==="am"?this.type="am"+t:e==="fat"?this.type="fat"+t:e==="oscillator"?this.type=t:e==="pulse"?this.type="pulse":e==="pwm"&&(this.type="pwm")}_getOscType(e,t){return e instanceof Mf[t]}get baseType(){return this._oscillator.baseType}set baseType(e){!this._getOscType(this._oscillator,"pulse")&&!this._getOscType(this._oscillator,"pwm")&&e!=="pulse"&&e!=="pwm"&&(this._oscillator.baseType=e)}get width(){if(this._getOscType(this._oscillator,"pulse"))return this._oscillator.width}get count(){if(this._getOscType(this._oscillator,"fat"))return this._oscillator.count}set count(e){this._getOscType(this._oscillator,"fat")&&xs(e)&&(this._oscillator.count=e)}get spread(){if(this._getOscType(this._oscillator,"fat"))return this._oscillator.spread}set spread(e){this._getOscType(this._oscillator,"fat")&&xs(e)&&(this._oscillator.spread=e)}get modulationType(){if(this._getOscType(this._oscillator,"fm")||this._getOscType(this._oscillator,"am"))return this._oscillator.modulationType}set modulationType(e){(this._getOscType(this._oscillator,"fm")||this._getOscType(this._oscillator,"am"))&&Gn(e)&&(this._oscillator.modulationType=e)}get modulationIndex(){if(this._getOscType(this._oscillator,"fm"))return this._oscillator.modulationIndex}get harmonicity(){if(this._getOscType(this._oscillator,"fm")||this._getOscType(this._oscillator,"am"))return this._oscillator.harmonicity}get modulationFrequency(){if(this._getOscType(this._oscillator,"pwm"))return this._oscillator.modulationFrequency}asArray(e=1024){return Ie(this,void 0,void 0,function*(){return cr(this,e)})}dispose(){return super.dispose(),this.detune.dispose(),this.frequency.dispose(),this._oscillator.dispose(),this}}class uh extends Le{constructor(){super(Object.assign(Z(uh.getDefaults(),arguments,["value"]))),this.override=!1,this.name="Add",this._sum=new Ne({context:this.context}),this.input=this._sum,this.output=this._sum,this.addend=this._param,Hi(this._constantSource,this._sum)}static getDefaults(){return Object.assign(Le.getDefaults(),{value:0})}dispose(){return super.dispose(),this._sum.dispose(),this}}class Wa extends Xn{constructor(){super(Object.assign(Z(Wa.getDefaults(),arguments,["min","max"]))),this.name="Scale";const e=Z(Wa.getDefaults(),arguments,["min","max"]);this._mult=this.input=new Es({context:this.context,value:e.max-e.min}),this._add=this.output=new uh({context:this.context,value:e.min}),this._min=e.min,this._max=e.max,this.input.connect(this.output)}static getDefaults(){return Object.assign(Xn.getDefaults(),{max:1,min:0})}get min(){return this._min}set min(e){this._min=e,this._setRange()}get max(){return this._max}set max(e){this._max=e,this._setRange()}_setRange(){this._add.value=this._min,this._mult.value=this._max-this._min}dispose(){return super.dispose(),this._add.dispose(),this._mult.dispose(),this}}function ag(s,e=1/0){const t=new WeakMap;return function(n,r){Reflect.defineProperty(n,r,{configurable:!0,enumerable:!0,get:function(){return t.get(this)},set:function(i){dn(i,s,e),t.set(this,i)}})}}function ss(s,e=1/0){const t=new WeakMap;return function(n,r){Reflect.defineProperty(n,r,{configurable:!0,enumerable:!0,get:function(){return t.get(this)},set:function(i){dn(this.toSeconds(i),s,e),t.set(this,i)}})}}class to extends gt{constructor(){super(Z(to.getDefaults(),arguments,["url","onload"])),this.name="Player",this._activeSources=new Set;const e=Z(to.getDefaults(),arguments,["url","onload"]);this._buffer=new Se({onload:this._onload.bind(this,e.onload),onerror:e.onerror,reverse:e.reverse,url:e.url}),this.autostart=e.autostart,this._loop=e.loop,this._loopStart=e.loopStart,this._loopEnd=e.loopEnd,this._playbackRate=e.playbackRate,this.fadeIn=e.fadeIn,this.fadeOut=e.fadeOut}static getDefaults(){return Object.assign(gt.getDefaults(),{autostart:!1,fadeIn:0,fadeOut:0,loop:!1,loopEnd:0,loopStart:0,onload:Ce,onerror:Ce,playbackRate:1,reverse:!1})}load(e){return Ie(this,void 0,void 0,function*(){return yield this._buffer.load(e),this._onload(),this})}_onload(e=Ce){e(),this.autostart&&this.start()}_onSourceEnd(e){this.onstop(this),this._activeSources.delete(e),this._activeSources.size===0&&!this._synced&&this._state.getValueAtTime(this.now())==="started"&&(this._state.cancel(this.now()),this._state.setStateAtTime("stopped",this.now()))}start(e,t,n){return super.start(e,t,n),this}_start(e,t,n){this._loop?t=Pr(t,this._loopStart):t=Pr(t,0);const r=this.toSeconds(t),i=n;n=Pr(n,Math.max(this._buffer.duration-r,0));let o=this.toSeconds(n);o=o/this._playbackRate,e=this.toSeconds(e);const a=new Br({url:this._buffer,context:this.context,fadeIn:this.fadeIn,fadeOut:this.fadeOut,loop:this._loop,loopEnd:this._loopEnd,loopStart:this._loopStart,onended:this._onSourceEnd.bind(this),playbackRate:this._playbackRate}).connect(this.output);!this._loop&&!this._synced&&(this._state.cancel(e+o),this._state.setStateAtTime("stopped",e+o,{implicitEnd:!0})),this._activeSources.add(a),this._loop&&zt(i)?a.start(e,r):a.start(e,r,o-this.toSeconds(this.fadeOut))}_stop(e){const t=this.toSeconds(e);this._activeSources.forEach(n=>n.stop(t))}restart(e,t,n){return super.restart(e,t,n),this}_restart(e,t,n){var r;(r=[...this._activeSources].pop())===null||r===void 0||r.stop(e),this._start(e,t,n)}seek(e,t){const n=this.toSeconds(t);if(this._state.getValueAtTime(n)==="started"){const r=this.toSeconds(e);this._stop(n),this._start(n,r)}return this}setLoopPoints(e,t){return this.loopStart=e,this.loopEnd=t,this}get loopStart(){return this._loopStart}set loopStart(e){this._loopStart=e,this.buffer.loaded&&dn(this.toSeconds(e),0,this.buffer.duration),this._activeSources.forEach(t=>{t.loopStart=e})}get loopEnd(){return this._loopEnd}set loopEnd(e){this._loopEnd=e,this.buffer.loaded&&dn(this.toSeconds(e),0,this.buffer.duration),this._activeSources.forEach(t=>{t.loopEnd=e})}get buffer(){return this._buffer}set buffer(e){this._buffer.set(e)}get loop(){return this._loop}set loop(e){if(this._loop!==e&&(this._loop=e,this._activeSources.forEach(t=>{t.loop=e}),e)){const t=this._state.getNextState("stopped",this.now());t&&this._state.cancel(t.time)}}get playbackRate(){return this._playbackRate}set playbackRate(e){this._playbackRate=e;const t=this.now(),n=this._state.getNextState("stopped",t);n&&n.implicitEnd&&(this._state.cancel(n.time),this._activeSources.forEach(r=>r.cancelStop())),this._activeSources.forEach(r=>{r.playbackRate.setValueAtTime(e,t)})}get reverse(){return this._buffer.reverse}set reverse(e){this._buffer.reverse=e}get loaded(){return this._buffer.loaded}dispose(){return super.dispose(),this._activeSources.forEach(e=>e.dispose()),this._activeSources.clear(),this._buffer.dispose(),this}}mn([ss(0)],to.prototype,"fadeIn",void 0);mn([ss(0)],to.prototype,"fadeOut",void 0);class sR extends Xn{constructor(){super(...arguments),this.name="GainToAudio",this._norm=new er({context:this.context,mapping:e=>Math.abs(e)*2-1}),this.input=this._norm,this.output=this._norm}dispose(){return super.dispose(),this._norm.dispose(),this}}class Qt extends le{constructor(){super(Z(Qt.getDefaults(),arguments,["attack","decay","sustain","release"])),this.name="Envelope",this._sig=new Le({context:this.context,value:0}),this.output=this._sig,this.input=void 0;const e=Z(Qt.getDefaults(),arguments,["attack","decay","sustain","release"]);this.attack=e.attack,this.decay=e.decay,this.sustain=e.sustain,this.release=e.release,this.attackCurve=e.attackCurve,this.releaseCurve=e.releaseCurve,this.decayCurve=e.decayCurve}static getDefaults(){return Object.assign(le.getDefaults(),{attack:.01,attackCurve:"linear",decay:.1,decayCurve:"exponential",release:1,releaseCurve:"exponential",sustain:.5})}get value(){return this.getValueAtTime(this.now())}_getCurve(e,t){if(Gn(e))return e;{let n;for(n in na)if(na[n][t]===e)return n;return e}}_setCurve(e,t,n){if(Gn(n)&&Reflect.has(na,n)){const r=na[n];Ws(r)?e!=="_decayCurve"&&(this[e]=r[t]):this[e]=r}else if(ln(n)&&e!=="_decayCurve")this[e]=n;else throw new Error("Envelope: invalid curve: "+n)}get attackCurve(){return this._getCurve(this._attackCurve,"In")}set attackCurve(e){this._setCurve("_attackCurve","In",e)}get releaseCurve(){return this._getCurve(this._releaseCurve,"Out")}set releaseCurve(e){this._setCurve("_releaseCurve","Out",e)}get decayCurve(){return this._getCurve(this._decayCurve,"Out")}set decayCurve(e){this._setCurve("_decayCurve","Out",e)}triggerAttack(e,t=1){this.log("triggerAttack",e,t),e=this.toSeconds(e);let r=this.toSeconds(this.attack);const i=this.toSeconds(this.decay),o=this.getValueAtTime(e);if(o>0){const a=1/r;r=(1-o)/a}if(r0){const n=this.toSeconds(this.release);n{let e,t;const n=[];for(e=0;e<128;e++)n[e]=Math.sin(e/(128-1)*(Math.PI/2));const r=[],i=6.4;for(e=0;e<128-1;e++){t=e/(128-1);const d=Math.sin(t*(Math.PI*2)*i-Math.PI/2)+1;r[e]=d/10+t*.83}r[128-1]=1;const o=[],a=5;for(e=0;e<128;e++)o[e]=Math.ceil(e/(128-1)*a)/a;const c=[];for(e=0;e<128;e++)t=e/(128-1),c[e]=.5*(1-Math.cos(Math.PI*t));const l=[];for(e=0;e<128;e++){t=e/(128-1);const d=Math.pow(t,3)*4+.2,f=Math.cos(d*Math.PI*2*t);l[e]=Math.abs(f*(1-t))}function u(d){const f=new Array(d.length);for(let m=0;mthis._original_triggerRelease(t);const e=Z(nr.getDefaults(),arguments);this._volume=this.output=new ks({context:this.context,volume:e.volume}),this.volume=this._volume.volume,Ve(this,"volume")}static getDefaults(){return Object.assign(le.getDefaults(),{volume:0})}sync(){return this._syncState()&&(this._syncMethod("triggerAttack",1),this._syncMethod("triggerRelease",0),this.context.transport.on("stop",this._syncedRelease),this.context.transport.on("pause",this._syncedRelease),this.context.transport.on("loopEnd",this._syncedRelease)),this}_syncState(){let e=!1;return this._synced||(this._synced=!0,e=!0),e}_syncMethod(e,t){const n=this["_original_"+e]=this[e];this[e]=(...r)=>{const i=r[t],o=this.context.transport.schedule(a=>{r[t]=a,n.apply(this,r)},i);this._scheduledEvents.push(o)}}unsync(){return this._scheduledEvents.forEach(e=>this.context.transport.clear(e)),this._scheduledEvents=[],this._synced&&(this._synced=!1,this.triggerAttack=this._original_triggerAttack,this.triggerRelease=this._original_triggerRelease,this.context.transport.off("stop",this._syncedRelease),this.context.transport.off("pause",this._syncedRelease),this.context.transport.off("loopEnd",this._syncedRelease)),this}triggerAttackRelease(e,t,n,r){const i=this.toSeconds(n),o=this.toSeconds(t);return this.triggerAttack(e,i,r),this.triggerRelease(i+o),this}dispose(){return super.dispose(),this._volume.dispose(),this.unsync(),this._scheduledEvents=[],this}}class Zn extends nr{constructor(){super(Z(Zn.getDefaults(),arguments));const e=Z(Zn.getDefaults(),arguments);this.portamento=e.portamento,this.onsilence=e.onsilence}static getDefaults(){return Object.assign(nr.getDefaults(),{detune:0,onsilence:Ce,portamento:0})}triggerAttack(e,t,n=1){this.log("triggerAttack",e,t,n);const r=this.toSeconds(t);return this._triggerEnvelopeAttack(r,n),this.setNote(e,r),this}triggerRelease(e){this.log("triggerRelease",e);const t=this.toSeconds(e);return this._triggerEnvelopeRelease(t),this}setNote(e,t){const n=this.toSeconds(t),r=e instanceof Gt?e.toFrequency():e;if(this.portamento>0&&this.getLevelAtTime(n)>.05){const i=this.toSeconds(this.portamento);this.frequency.exponentialRampTo(r,i,n)}else this.frequency.setValueAtTime(r,n);return this}}mn([ss(0)],Zn.prototype,"portamento",void 0);class wc extends Qt{constructor(){super(Z(wc.getDefaults(),arguments,["attack","decay","sustain","release"])),this.name="AmplitudeEnvelope",this._gainNode=new Ne({context:this.context,gain:0}),this.output=this._gainNode,this.input=this._gainNode,this._sig.connect(this._gainNode.gain),this.output=this._gainNode,this.input=this._gainNode}dispose(){return super.dispose(),this._gainNode.dispose(),this}}class no extends Zn{constructor(){super(Z(no.getDefaults(),arguments)),this.name="Synth";const e=Z(no.getDefaults(),arguments);this.oscillator=new tr(Object.assign({context:this.context,detune:e.detune,onstop:()=>this.onsilence(this)},e.oscillator)),this.frequency=this.oscillator.frequency,this.detune=this.oscillator.detune,this.envelope=new wc(Object.assign({context:this.context},e.envelope)),this.oscillator.chain(this.envelope,this.output),Ve(this,["oscillator","frequency","detune","envelope"])}static getDefaults(){return Object.assign(Zn.getDefaults(),{envelope:Object.assign(Tr(Qt.getDefaults(),Object.keys(le.getDefaults())),{attack:.005,decay:.1,release:1,sustain:.3}),oscillator:Object.assign(Tr(tr.getDefaults(),[...Object.keys(gt.getDefaults()),"frequency","detune"]),{type:"triangle"})})}_triggerEnvelopeAttack(e,t){if(this.envelope.triggerAttack(e,t),this.oscillator.start(e),this.envelope.sustain===0){const n=this.toSeconds(this.envelope.attack),r=this.toSeconds(this.envelope.decay);this.oscillator.stop(e+n+r)}}_triggerEnvelopeRelease(e){this.envelope.triggerRelease(e),this.oscillator.stop(e+this.toSeconds(this.envelope.release))}getLevelAtTime(e){return e=this.toSeconds(e),this.envelope.getValueAtTime(e)}dispose(){return super.dispose(),this.oscillator.dispose(),this.envelope.dispose(),this}}class so extends le{constructor(){super(Z(so.getDefaults(),arguments,["frequency","type"])),this.name="BiquadFilter";const e=Z(so.getDefaults(),arguments,["frequency","type"]);this._filter=this.context.createBiquadFilter(),this.input=this.output=this._filter,this.Q=new Oe({context:this.context,units:"number",value:e.Q,param:this._filter.Q}),this.frequency=new Oe({context:this.context,units:"frequency",value:e.frequency,param:this._filter.frequency}),this.detune=new Oe({context:this.context,units:"cents",value:e.detune,param:this._filter.detune}),this.gain=new Oe({context:this.context,units:"decibels",convert:!1,value:e.gain,param:this._filter.gain}),this.type=e.type}static getDefaults(){return Object.assign(le.getDefaults(),{Q:1,type:"lowpass",frequency:350,detune:0,gain:0})}get type(){return this._filter.type}set type(e){pe(["lowpass","highpass","bandpass","lowshelf","highshelf","notch","allpass","peaking"].indexOf(e)!==-1,`Invalid filter type: ${e}`),this._filter.type=e}getFrequencyResponse(e=128){const t=new Float32Array(e);for(let o=0;on.type=e)}get rolloff(){return this._rolloff}set rolloff(e){const t=xs(e)?e:parseInt(e,10),n=[-12,-24,-48,-96];let r=n.indexOf(t);pe(r!==-1,`rolloff can only be ${n.join(", ")}`),r+=1,this._rolloff=t,this.input.disconnect(),this._filters.forEach(i=>i.disconnect()),this._filters=new Array(r);for(let i=0;i1);return this._filters.forEach(()=>{t.getFrequencyResponse(e).forEach((i,o)=>n[o]*=i)}),t.dispose(),n}dispose(){return super.dispose(),this._filters.forEach(e=>{e.dispose()}),rh(this,["detune","frequency","gain","Q"]),this.frequency.dispose(),this.Q.dispose(),this.detune.dispose(),this.gain.dispose(),this}}class ro extends Qt{constructor(){super(Z(ro.getDefaults(),arguments,["attack","decay","sustain","release"])),this.name="FrequencyEnvelope";const e=Z(ro.getDefaults(),arguments,["attack","decay","sustain","release"]);this._octaves=e.octaves,this._baseFrequency=this.toFrequency(e.baseFrequency),this._exponent=this.input=new Gi({context:this.context,value:e.exponent}),this._scale=this.output=new Wa({context:this.context,min:this._baseFrequency,max:this._baseFrequency*Math.pow(2,this._octaves)}),this._sig.chain(this._exponent,this._scale)}static getDefaults(){return Object.assign(Qt.getDefaults(),{baseFrequency:200,exponent:1,octaves:4})}get baseFrequency(){return this._baseFrequency}set baseFrequency(e){const t=this.toFrequency(e);dn(t,0),this._baseFrequency=t,this._scale.min=this._baseFrequency,this.octaves=this._octaves}get octaves(){return this._octaves}set octaves(e){this._octaves=e,this._scale.max=this._baseFrequency*Math.pow(2,e)}get exponent(){return this._exponent.value}set exponent(e){this._exponent.value=e}dispose(){return super.dispose(),this._exponent.dispose(),this._scale.dispose(),this}}class io extends Zn{constructor(){super(Z(io.getDefaults(),arguments)),this.name="MonoSynth";const e=Z(io.getDefaults(),arguments);this.oscillator=new tr(Object.assign(e.oscillator,{context:this.context,detune:e.detune,onstop:()=>this.onsilence(this)})),this.frequency=this.oscillator.frequency,this.detune=this.oscillator.detune,this.filter=new qr(Object.assign(e.filter,{context:this.context})),this.filterEnvelope=new ro(Object.assign(e.filterEnvelope,{context:this.context})),this.envelope=new wc(Object.assign(e.envelope,{context:this.context})),this.oscillator.chain(this.filter,this.envelope,this.output),this.filterEnvelope.connect(this.filter.frequency),Ve(this,["oscillator","frequency","detune","filter","filterEnvelope","envelope"])}static getDefaults(){return Object.assign(Zn.getDefaults(),{envelope:Object.assign(Tr(Qt.getDefaults(),Object.keys(le.getDefaults())),{attack:.005,decay:.1,release:1,sustain:.9}),filter:Object.assign(Tr(qr.getDefaults(),Object.keys(le.getDefaults())),{Q:1,rolloff:-12,type:"lowpass"}),filterEnvelope:Object.assign(Tr(ro.getDefaults(),Object.keys(le.getDefaults())),{attack:.6,baseFrequency:200,decay:.2,exponent:2,octaves:3,release:2,sustain:.5}),oscillator:Object.assign(Tr(tr.getDefaults(),Object.keys(gt.getDefaults())),{type:"sawtooth"})})}_triggerEnvelopeAttack(e,t=1){if(this.envelope.triggerAttack(e,t),this.filterEnvelope.triggerAttack(e),this.oscillator.start(e),this.envelope.sustain===0){const n=this.toSeconds(this.envelope.attack),r=this.toSeconds(this.envelope.decay);this.oscillator.stop(e+n+r)}}_triggerEnvelopeRelease(e){this.envelope.triggerRelease(e),this.filterEnvelope.triggerRelease(e),this.oscillator.stop(e+this.toSeconds(this.envelope.release))}getLevelAtTime(e){return e=this.toSeconds(e),this.envelope.getValueAtTime(e)}dispose(){return super.dispose(),this.oscillator.dispose(),this.envelope.dispose(),this.filterEnvelope.dispose(),this.filter.dispose(),this}}class oo extends no{constructor(){super(Z(oo.getDefaults(),arguments)),this.name="MembraneSynth",this.portamento=0;const e=Z(oo.getDefaults(),arguments);this.pitchDecay=e.pitchDecay,this.octaves=e.octaves,Ve(this,["oscillator","envelope"])}static getDefaults(){return Rr(Zn.getDefaults(),no.getDefaults(),{envelope:{attack:.001,attackCurve:"exponential",decay:.4,release:1.4,sustain:.01},octaves:10,oscillator:{type:"sine"},pitchDecay:.05})}setNote(e,t){const n=this.toSeconds(t),r=this.toFrequency(e instanceof Gt?e.toFrequency():e),i=r*this.octaves;return this.oscillator.frequency.setValueAtTime(i,n),this.oscillator.frequency.exponentialRampToValueAtTime(r,n+this.toSeconds(this.pitchDecay)),this}dispose(){return super.dispose(),this}}mn([ag(0)],oo.prototype,"octaves",void 0);mn([ss(0)],oo.prototype,"pitchDecay",void 0);const cg=new Set;function hh(s){cg.add(s)}function lg(s,e){const t=`registerProcessor("${s}", ${e})`;cg.add(t)}const rR=` - /** - * The base AudioWorkletProcessor for use in Tone.js. Works with the [[ToneAudioWorklet]]. - */ - class ToneAudioWorkletProcessor extends AudioWorkletProcessor { - - constructor(options) { - - super(options); - /** - * If the processor was disposed or not. Keep alive until it's disposed. - */ - this.disposed = false; - /** - * The number of samples in the processing block - */ - this.blockSize = 128; - /** - * the sample rate - */ - this.sampleRate = sampleRate; - - this.port.onmessage = (event) => { - // when it receives a dispose - if (event.data === "dispose") { - this.disposed = true; - } - }; - } - } -`;hh(rR);const iR=` - /** - * Abstract class for a single input/output processor. - * has a 'generate' function which processes one sample at a time - */ - class SingleIOProcessor extends ToneAudioWorkletProcessor { - - constructor(options) { - super(Object.assign(options, { - numberOfInputs: 1, - numberOfOutputs: 1 - })); - /** - * Holds the name of the parameter and a single value of that - * parameter at the current sample - * @type { [name: string]: number } - */ - this.params = {} - } - - /** - * Generate an output sample from the input sample and parameters - * @abstract - * @param input number - * @param channel number - * @param parameters { [name: string]: number } - * @returns number - */ - generate(){} - - /** - * Update the private params object with the - * values of the parameters at the given index - * @param parameters { [name: string]: Float32Array }, - * @param index number - */ - updateParams(parameters, index) { - for (const paramName in parameters) { - const param = parameters[paramName]; - if (param.length > 1) { - this.params[paramName] = parameters[paramName][index]; - } else { - this.params[paramName] = parameters[paramName][0]; - } - } - } - - /** - * Process a single frame of the audio - * @param inputs Float32Array[][] - * @param outputs Float32Array[][] - */ - process(inputs, outputs, parameters) { - const input = inputs[0]; - const output = outputs[0]; - // get the parameter values - const channelCount = Math.max(input && input.length || 0, output.length); - for (let sample = 0; sample < this.blockSize; sample++) { - this.updateParams(parameters, sample); - for (let channel = 0; channel < channelCount; channel++) { - const inputSample = input && input.length ? input[channel][sample] : 0; - output[channel][sample] = this.generate(inputSample, channel, this.params); - } - } - return !this.disposed; - } - }; -`;hh(iR);const oR=` - /** - * A multichannel buffer for use within an AudioWorkletProcessor as a delay line - */ - class DelayLine { - - constructor(size, channels) { - this.buffer = []; - this.writeHead = [] - this.size = size; - - // create the empty channels - for (let i = 0; i < channels; i++) { - this.buffer[i] = new Float32Array(this.size); - this.writeHead[i] = 0; - } - } - - /** - * Push a value onto the end - * @param channel number - * @param value number - */ - push(channel, value) { - this.writeHead[channel] += 1; - if (this.writeHead[channel] > this.size) { - this.writeHead[channel] = 0; - } - this.buffer[channel][this.writeHead[channel]] = value; - } - - /** - * Get the recorded value of the channel given the delay - * @param channel number - * @param delay number delay samples - */ - get(channel, delay) { - let readHead = this.writeHead[channel] - Math.floor(delay); - if (readHead < 0) { - readHead += this.size; - } - return this.buffer[channel][readHead]; - } - } -`;hh(oR);const aR="feedback-comb-filter",cR=` - class FeedbackCombFilterWorklet extends SingleIOProcessor { - - constructor(options) { - super(options); - this.delayLine = new DelayLine(this.sampleRate, options.channelCount || 2); - } - - static get parameterDescriptors() { - return [{ - name: "delayTime", - defaultValue: 0.1, - minValue: 0, - maxValue: 1, - automationRate: "k-rate" - }, { - name: "feedback", - defaultValue: 0.5, - minValue: 0, - maxValue: 0.9999, - automationRate: "k-rate" - }]; - } - - generate(input, channel, parameters) { - const delayedSample = this.delayLine.get(channel, parameters.delayTime * this.sampleRate); - this.delayLine.push(channel, input + delayedSample * parameters.feedback); - return delayedSample; - } - } -`;lg(aR,cR);class ao extends nr{constructor(){super(Z(ao.getDefaults(),arguments,["urls","onload","baseUrl"],"urls")),this.name="Sampler",this._activeSources=new Map;const e=Z(ao.getDefaults(),arguments,["urls","onload","baseUrl"],"urls"),t={};Object.keys(e.urls).forEach(n=>{const r=parseInt(n,10);if(pe(ta(n)||xs(r)&&isFinite(r),`url key is neither a note or midi pitch: ${n}`),ta(n)){const i=new Gt(this.context,n).toMidi();t[i]=e.urls[n]}else xs(r)&&isFinite(r)&&(t[r]=e.urls[r])}),this._buffers=new ch({urls:t,onload:e.onload,baseUrl:e.baseUrl,onerror:e.onerror}),this.attack=e.attack,this.release=e.release,this.curve=e.curve,this._buffers.loaded&&Promise.resolve().then(e.onload)}static getDefaults(){return Object.assign(nr.getDefaults(),{attack:0,baseUrl:"",curve:"exponential",onload:Ce,onerror:Ce,release:.1,urls:{}})}_findClosest(e){let n=0;for(;n<96;){if(this._buffers.has(e+n))return-n;if(this._buffers.has(e-n))return n;n++}throw new Error(`No available buffers for note: ${e}`)}triggerAttack(e,t,n=1){return this.log("triggerAttack",e,t,n),Array.isArray(e)||(e=[e]),e.forEach(r=>{const i=og(new Gt(this.context,r).toFrequency()),o=Math.round(i),a=i-o,c=this._findClosest(o),l=o-c,u=this._buffers.get(l),h=ig(c+a),d=new Br({url:u,context:this.context,curve:this.curve,fadeIn:this.attack,fadeOut:this.release,playbackRate:h}).connect(this.output);d.start(t,0,u.duration/h,n),ln(this._activeSources.get(o))||this._activeSources.set(o,[]),this._activeSources.get(o).push(d),d.onended=()=>{if(this._activeSources&&this._activeSources.has(o)){const f=this._activeSources.get(o),m=f.indexOf(d);m!==-1&&f.splice(m,1)}}}),this}triggerRelease(e,t){return this.log("triggerRelease",e,t),Array.isArray(e)||(e=[e]),e.forEach(n=>{const r=new Gt(this.context,n).toMidi();if(this._activeSources.has(r)&&this._activeSources.get(r).length){const i=this._activeSources.get(r);t=this.toSeconds(t),i.forEach(o=>{o.stop(t)}),this._activeSources.set(r,[])}}),this}releaseAll(e){const t=this.toSeconds(e);return this._activeSources.forEach(n=>{for(;n.length;)n.shift().stop(t)}),this}sync(){return this._syncState()&&(this._syncMethod("triggerAttack",1),this._syncMethod("triggerRelease",1)),this}triggerAttackRelease(e,t,n,r=1){const i=this.toSeconds(n);return this.triggerAttack(e,i,r),ln(t)?(pe(ln(e),"notes must be an array when duration is array"),e.forEach((o,a)=>{const c=t[Math.min(a,t.length-1)];this.triggerRelease(o,i+this.toSeconds(c))})):this.triggerRelease(e,i+this.toSeconds(t)),this}add(e,t,n){if(pe(ta(e)||isFinite(e),`note must be a pitch or midi: ${e}`),ta(e)){const r=new Gt(this.context,e).toMidi();this._buffers.add(r,t,n)}else this._buffers.add(e,t,n);return this}get loaded(){return this._buffers.loaded}dispose(){return super.dispose(),this._buffers.dispose(),this._activeSources.forEach(e=>{e.forEach(t=>t.dispose())}),this._activeSources.clear(),this}}mn([ss(0)],ao.prototype,"attack",void 0);mn([ss(0)],ao.prototype,"release",void 0);class qa extends le{constructor(){super(Object.assign(Z(qa.getDefaults(),arguments,["fade"]))),this.name="CrossFade",this._panner=this.context.createStereoPanner(),this._split=this.context.createChannelSplitter(2),this._g2a=new sR({context:this.context}),this.a=new Ne({context:this.context,gain:0}),this.b=new Ne({context:this.context,gain:0}),this.output=new Ne({context:this.context}),this._internalChannels=[this.a,this.b];const e=Z(qa.getDefaults(),arguments,["fade"]);this.fade=new Le({context:this.context,units:"normalRange",value:e.fade}),Ve(this,"fade"),this.context.getConstant(1).connect(this._panner),this._panner.connect(this._split),this._panner.channelCount=1,this._panner.channelCountMode="explicit",ws(this._split,this.a.gain,0),ws(this._split,this.b.gain,1),this.fade.chain(this._g2a,this._panner.pan),this.a.connect(this.output),this.b.connect(this.output)}static getDefaults(){return Object.assign(le.getDefaults(),{fade:.5})}dispose(){return super.dispose(),this.a.dispose(),this.b.dispose(),this.output.dispose(),this.fade.dispose(),this._g2a.dispose(),this._panner.disconnect(),this._split.disconnect(),this}}class If extends le{constructor(e){super(e),this.name="Effect",this._dryWet=new qa({context:this.context}),this.wet=this._dryWet.fade,this.effectSend=new Ne({context:this.context}),this.effectReturn=new Ne({context:this.context}),this.input=new Ne({context:this.context}),this.output=this._dryWet,this.input.fan(this._dryWet.a,this.effectSend),this.effectReturn.connect(this._dryWet.b),this.wet.setValueAtTime(e.wet,0),this._internalChannels=[this.effectReturn,this.effectSend],Ve(this,"wet")}static getDefaults(){return Object.assign(le.getDefaults(),{wet:1})}connectEffect(e){return this._internalChannels.push(e),this.effectSend.chain(e,this.effectReturn),this}dispose(){return super.dispose(),this._dryWet.dispose(),this.effectSend.dispose(),this.effectReturn.dispose(),this.wet.dispose(),this}}class Ha extends le{constructor(){super(Object.assign(Z(Ha.getDefaults(),arguments,["pan"]))),this.name="Panner",this._panner=this.context.createStereoPanner(),this.input=this._panner,this.output=this._panner;const e=Z(Ha.getDefaults(),arguments,["pan"]);this.pan=new Oe({context:this.context,param:this._panner.pan,value:e.pan,minValue:-1,maxValue:1}),this._panner.channelCount=e.channelCount,this._panner.channelCountMode="explicit",Ve(this,"pan")}static getDefaults(){return Object.assign(le.getDefaults(),{pan:0,channelCount:1})}dispose(){return super.dispose(),this._panner.disconnect(),this.pan.dispose(),this}}const lR="bit-crusher",uR=` - class BitCrusherWorklet extends SingleIOProcessor { - - static get parameterDescriptors() { - return [{ - name: "bits", - defaultValue: 12, - minValue: 1, - maxValue: 16, - automationRate: 'k-rate' - }]; - } - - generate(input, _channel, parameters) { - const step = Math.pow(0.5, parameters.bits - 1); - const val = step * Math.floor(input / step + 0.5); - return val; - } - } -`;lg(lR,uR);class Ya extends le{constructor(){super(Z(Ya.getDefaults(),arguments,["channels"])),this.name="Merge";const e=Z(Ya.getDefaults(),arguments,["channels"]);this._merger=this.output=this.input=this.context.createChannelMerger(e.channels)}static getDefaults(){return Object.assign(le.getDefaults(),{channels:2})}dispose(){return super.dispose(),this._merger.disconnect(),this}}class Ga extends If{constructor(){super(Z(Ga.getDefaults(),arguments,["decay"])),this.name="Reverb",this._convolver=this.context.createConvolver(),this.ready=Promise.resolve();const e=Z(Ga.getDefaults(),arguments,["decay"]);this._decay=e.decay,this._preDelay=e.preDelay,this.generate(),this.connectEffect(this._convolver)}static getDefaults(){return Object.assign(If.getDefaults(),{decay:1.5,preDelay:.01})}get decay(){return this._decay}set decay(e){e=this.toSeconds(e),dn(e,.001),this._decay=e,this.generate()}get preDelay(){return this._preDelay}set preDelay(e){e=this.toSeconds(e),dn(e,0),this._preDelay=e,this.generate()}generate(){return Ie(this,void 0,void 0,function*(){const e=this.ready,t=new bc(2,this._decay+this._preDelay,this.context.sampleRate),n=new Zi({context:t}),r=new Zi({context:t}),i=new Ya({context:t});n.connect(i,0,0),r.connect(i,0,1);const o=new Ne({context:t}).toDestination();i.connect(o),n.start(0),r.start(0),o.gain.setValueAtTime(0,0),o.gain.setValueAtTime(1,this._preDelay),o.gain.exponentialApproachValueAtTime(0,this._preDelay,this.decay);const a=t.render();return this.ready=a.then(Ce),yield e,this._convolver.buffer=(yield a).get(),this})}dispose(){return super.dispose(),this._convolver.disconnect(),this}}class et extends le{constructor(){super(Z(et.getDefaults(),arguments,["solo"])),this.name="Solo";const e=Z(et.getDefaults(),arguments,["solo"]);this.input=this.output=new Ne({context:this.context}),et._allSolos.has(this.context)||et._allSolos.set(this.context,new Set),et._allSolos.get(this.context).add(this),this.solo=e.solo}static getDefaults(){return Object.assign(le.getDefaults(),{solo:!1})}get solo(){return this._isSoloed()}set solo(e){e?this._addSolo():this._removeSolo(),et._allSolos.get(this.context).forEach(t=>t._updateSolo())}get muted(){return this.input.gain.value===0}_addSolo(){et._soloed.has(this.context)||et._soloed.set(this.context,new Set),et._soloed.get(this.context).add(this)}_removeSolo(){et._soloed.has(this.context)&&et._soloed.get(this.context).delete(this)}_isSoloed(){return et._soloed.has(this.context)&&et._soloed.get(this.context).has(this)}_noSolos(){return!et._soloed.has(this.context)||et._soloed.has(this.context)&&et._soloed.get(this.context).size===0}_updateSolo(){this._isSoloed()?this.input.gain.value=1:this._noSolos()?this.input.gain.value=1:this.input.gain.value=0}dispose(){return super.dispose(),et._allSolos.get(this.context).delete(this),this._removeSolo(),this}}et._allSolos=new Map;et._soloed=new Map;class Xa extends le{constructor(){super(Z(Xa.getDefaults(),arguments,["pan","volume"])),this.name="PanVol";const e=Z(Xa.getDefaults(),arguments,["pan","volume"]);this._panner=this.input=new Ha({context:this.context,pan:e.pan,channelCount:e.channelCount}),this.pan=this._panner.pan,this._volume=this.output=new ks({context:this.context,volume:e.volume}),this.volume=this._volume.volume,this._panner.connect(this._volume),this.mute=e.mute,Ve(this,["pan","volume"])}static getDefaults(){return Object.assign(le.getDefaults(),{mute:!1,pan:0,volume:0,channelCount:1})}get mute(){return this._volume.mute}set mute(e){this._volume.mute=e}dispose(){return super.dispose(),this._panner.dispose(),this.pan.dispose(),this._volume.dispose(),this.volume.dispose(),this}}class js extends le{constructor(){super(Z(js.getDefaults(),arguments,["volume","pan"])),this.name="Channel";const e=Z(js.getDefaults(),arguments,["volume","pan"]);this._solo=this.input=new et({solo:e.solo,context:this.context}),this._panVol=this.output=new Xa({context:this.context,pan:e.pan,volume:e.volume,mute:e.mute,channelCount:e.channelCount}),this.pan=this._panVol.pan,this.volume=this._panVol.volume,this._solo.connect(this._panVol),Ve(this,["pan","volume"])}static getDefaults(){return Object.assign(le.getDefaults(),{pan:0,volume:0,mute:!1,solo:!1,channelCount:1})}get solo(){return this._solo.solo}set solo(e){this._solo.solo=e}get muted(){return this._solo.muted||this.mute}get mute(){return this._panVol.mute}set mute(e){this._panVol.mute=e}_getBus(e){return js.buses.has(e)||js.buses.set(e,new Ne({context:this.context})),js.buses.get(e)}send(e,t=0){const n=this._getBus(e),r=new Ne({context:this.context,units:"decibels",gain:t});return this.connect(r),r.connect(n),r}receive(e){return this._getBus(e).connect(this),this}dispose(){return super.dispose(),this._panVol.dispose(),this.pan.dispose(),this.volume.dispose(),this._solo.dispose(),this}}js.buses=new Map;class hR extends le{constructor(){super(...arguments),this.name="Listener",this.positionX=new Oe({context:this.context,param:this.context.rawContext.listener.positionX}),this.positionY=new Oe({context:this.context,param:this.context.rawContext.listener.positionY}),this.positionZ=new Oe({context:this.context,param:this.context.rawContext.listener.positionZ}),this.forwardX=new Oe({context:this.context,param:this.context.rawContext.listener.forwardX}),this.forwardY=new Oe({context:this.context,param:this.context.rawContext.listener.forwardY}),this.forwardZ=new Oe({context:this.context,param:this.context.rawContext.listener.forwardZ}),this.upX=new Oe({context:this.context,param:this.context.rawContext.listener.upX}),this.upY=new Oe({context:this.context,param:this.context.rawContext.listener.upY}),this.upZ=new Oe({context:this.context,param:this.context.rawContext.listener.upZ})}static getDefaults(){return Object.assign(le.getDefaults(),{positionX:0,positionY:0,positionZ:0,forwardX:0,forwardY:0,forwardZ:-1,upX:0,upY:1,upZ:0})}dispose(){return super.dispose(),this.positionX.dispose(),this.positionY.dispose(),this.positionZ.dispose(),this.forwardX.dispose(),this.forwardY.dispose(),this.forwardZ.dispose(),this.upX.dispose(),this.upY.dispose(),this.upZ.dispose(),this}}yc(s=>{s.listener=new hR({context:s})});vc(s=>{s.listener.dispose()});on().transport;const dh=on().destination;on().destination;on().listener;on().draw;on();const fh=new qr(900,"highpass"),ug=new ks(-6);ug.chain(fh,dh);const dR=new Ga(3).connect(ug),kc=new io({envelope:{attack:0,decay:.9,sustain:.2,release:.1}});kc.oscillator.type="triangle2";kc.volume.value=-6;kc.chain(fh,dh);const Tc=new io({envelope:{attack:.4,decay:.9,sustain:.7,release:.6}}).connect(dR);Tc.oscillator.type="triangle";Tc.volume.value=-6;Tc.chain(fh,dh);function fR(){return Math.floor((Math.random()-.5)*20)}let Nf=!1;const pR=async(s=0)=>{Nf||(await UA(),Nf=!0);try{if(s>2e3)Tc.triggerAttackRelease(60,.3);else if(s>1e3){let e=310;e+=fR(),kc.triggerAttackRelease(e,.001)}}catch(e){console.warn(e)}},sa=1800,mR=(s,e)=>s.clone().normalize().clone().negate().normalize().multiplyScalar(e).add(s),gR=(s,e,t,n,r)=>{const i=new gp,o=1e-5;i.absarc(o,o,o,-Math.PI/2,-Math.PI,!0),i.absarc(o,e-n*2,o,Math.PI,Math.PI/2,!0),i.absarc(s-n*2,e-n*2,o,Math.PI/2,0,!0),i.absarc(s-n*2,o,o,0,-Math.PI/2,!0);const a=new yy(i,{depth:t-n*2,bevelEnabled:!0,bevelSegments:r,steps:2,bevelSize:n,bevelThickness:n,curveSegments:r});a.center();const c=[],l=a.getAttribute("normal"),u=a.getAttribute("position");for(let h=0;h.9?(m=f.x/s+.5,p=1-(f.z/t+.5)):Math.abs(d.x)>.9?(m=-f.z/t+.5,p=1-(-f.y/e+.5)):Math.abs(d.z)>.9&&(m=f.x/s+.5,p=1-(-f.y/e+.5)),c.push(m,p)}return a.setAttribute("uv",new aa(c,2)),a};gR(10,10,10,2,10);new _y(10,10,10);const _R=500,yR=800;let ki=null;const vR=500,hg=(s,e)=>{if(ki)return null;ki=setTimeout(()=>{ki&&(clearTimeout(ki),ki=null)},vR);const t=[];return s.forEach(r=>{const i=e.position.distanceTo(dE.set(r.x,r.y,r.z));ir.distance-i.distance).slice(0,_R).map(r=>r.id)};let vr,Ti;const bR=1e3,xR=2e3,wR=s=>{const e=As(),t=ds(w=>w.isUserDragging),n=ds(w=>w.isUserScrolling),r=ds(w=>w.setUserMovedCamera),{data:i,graphStyle:o,showSelectionGraph:a,setNearbyNodeIds:c,cameraFocusTrigger:l,graphRadius:u}=ot(w=>w),{camera:h}=qe(),[d,f]=v.useState(!1),[m,p]=v.useState(!1),[g,_]=v.useState(df),x=v.useMemo(()=>{if(a)return new ge(0,0,0);const w=i==null?void 0:i.nodes.find(R=>R.ref_id===(e==null?void 0:e.ref_id)),C=u+300;let S=new ge(0,0,C);if(w&&i){const R=i==null?void 0:i.nodes.filter(z=>{var U;return(U=w.children)==null?void 0:U.find(B=>B===z.id)}),O=new ge(w.x,w.y,w.z);let j=new ge(0,0,0);R.map(z=>(j=j.add(new ge(z.x,z.y,z.z).normalize()),z));const V=w.scale?1-1/(w.scale+10):1,W=O.sub(j).multiplyScalar(.8*V);S=O.add(W)}return S},[a,e,i,u]),k=v.useMemo(()=>{if(a)return new ge(0,0,0);const w=i==null?void 0:i.nodes.find(C=>C.ref_id===(e==null?void 0:e.ref_id));return new ge((w==null?void 0:w.x)||0,(w==null?void 0:w.y)||0,(w==null?void 0:w.z)||0)},[a,e,i]);v.useEffect(()=>{var w;a&&((w=s.current)==null||w.setLookAt(fs.x,fs.y,fs.z,0,0,0,!1)),y()},[a]),v.useEffect(()=>{a?_(_E):(e==null?void 0:e.node_type)==="topic"?_(gE):_(df)},[e,_,a]),v.useEffect(()=>{b()},[l]),v.useEffect(()=>{(t||n)&&(f(!0),p(!0))},[t,n,f,p]),v.useEffect(()=>{if(e)if(!a&&o==="earth"&&(s!=null&&s.current)){const w=s.current.camera.position.distanceTo(new ge),C=mR(k,-w/2);s.current.setLookAt(C.x,C.y,C.z,0,0,0,!0)}else vr&&clearTimeout(vr),vr=setTimeout(()=>{p(!0),clearTimeout(vr)},xR),y();return()=>{vr&&clearTimeout(vr),Ti&&clearTimeout(Ti)}},[e]),fn(w=>{s.current&&(d||T(x,w.camera),m||E(k,w.camera))});const y=()=>{if(e){const w=h.position.distanceTo(x);pR(w)}b()},b=()=>{f(!1),p(!1),r(!1),Ti&&clearTimeout(Ti),Ti=setTimeout(()=>{f(!0),p(!0)},bR)},T=(w,C)=>{if(C.position.distanceTo(w){var S;(S=s==null?void 0:s.current)==null||S.setLookAt(C.position.x,C.position.y,C.position.z,w.x,w.y,w.z,!0)};return null},kR=1;let ra=null;const TR=(s,{enabled:e})=>{const t=As();wR(s);const n=ds(a=>a.isUserDragging),{graphStyle:r,graphRadius:i,disableCameraRotation:o}=ot(a=>a);return v.useEffect(()=>{e||(ra==null||ra.kill(),ra=null)},[e]),v.useEffect(()=>{s.current&&i&&(r==="sphere"?(s.current.maxDistance=8e3,s.current.minDistance=200,s.current.setTarget(0,0,500,!0)):(s.current.maxDistance=s.current.getDistanceToFitSphere(i+200),s.current.minDistance=100))},[i,r,s]),v.useEffect(()=>{!t&&s.current&&s.current.setLookAt(Mi.x,Mi.y,i,0,0,0,!0)},[t,i]),fn((a,c)=>{s.current&&(!o&&!n&&(s.current.azimuthAngle+=kR*c*vy.DEG2RAD),s.current.update(c))}),null},ER=({disableAnimations:s})=>{const e=v.useRef(null),{data:t,setNearbyNodeIds:n,setDisableCameraRotation:r}=ot(h=>h),[i]=v.useState(.8),{camera:o}=qe(),[a,c,l,u]=ds(h=>[h.isUserDragging,h.setIsUserDragging,h.isUserScrolling,h.isUserScrollingOnHtmlPanel]);return TR(e,{enabled:!s&&!l&&!a}),v.useEffect(()=>{if(!a){const h=hg((t==null?void 0:t.nodes)||[],o);h&&n(h)}},[o,o.position,o.position.x,o.position.y,o.position.z,t==null?void 0:t.nodes,n,a]),v.useEffect(()=>{a&&r(!0)},[a,r]),F.jsx(Rp,{ref:e,boundaryEnclosesCamera:!0,enabled:!u,makeDefault:!0,maxDistance:12e3,minDistance:100,onEnd:()=>c(!1),onStart:()=>c(!0),smoothTime:i})};function jn(s){if(s===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s}function dg(s,e){s.prototype=Object.create(e.prototype),s.prototype.constructor=s,s.__proto__=e}/*! - * GSAP 3.12.4 - * https://gsap.com - * - * @license Copyright 2008-2023, GreenSock. All rights reserved. - * Subject to the terms at https://gsap.com/standard-license or for - * Club GSAP members, the agreement issued with that membership. - * @author: Jack Doyle, jack@greensock.com -*/var Ut={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},Hr={duration:.5,overwrite:!1,delay:0},ph,pt,Xe,Xt=1e8,Me=1/Xt,Gl=Math.PI*2,CR=Gl/4,SR=0,fg=Math.sqrt,OR=Math.cos,AR=Math.sin,ht=function(e){return typeof e=="string"},Ze=function(e){return typeof e=="function"},Kn=function(e){return typeof e=="number"},mh=function(e){return typeof e>"u"},An=function(e){return typeof e=="object"},At=function(e){return e!==!1},gh=function(){return typeof window<"u"},ia=function(e){return Ze(e)||ht(e)},pg=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},mt=Array.isArray,Xl=/(?:-?\.?\d|\.)+/gi,mg=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,Cr=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,tl=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,gg=/[+-]=-?[.\d]+/,_g=/[^,'"\[\]\s]+/gi,RR=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,He,Ht,Zl,_h,Bt={},Za={},yg,vg=function(e){return(Za=sr(e,Bt))&&It},yh=function(e,t){return console.warn("Invalid property",e,"set to",t,"Missing plugin? gsap.registerPlugin()")},co=function(e,t){return!t&&console.warn(e)},bg=function(e,t){return e&&(Bt[e]=t)&&Za&&(Za[e]=t)||Bt},lo=function(){return 0},PR={suppressEvents:!0,isStart:!0,kill:!1},ha={suppressEvents:!0,kill:!1},DR={suppressEvents:!0},vh={},ms=[],Kl={},xg,$t={},nl={},$f=30,da=[],bh="",xh=function(e){var t=e[0],n,r;if(An(t)||Ze(t)||(e=[e]),!(n=(t._gsap||{}).harness)){for(r=da.length;r--&&!da[r].targetTest(t););n=da[r]}for(r=e.length;r--;)e[r]&&(e[r]._gsap||(e[r]._gsap=new qg(e[r],n)))||e.splice(r,1);return e},Hs=function(e){return e._gsap||xh(Zt(e))[0]._gsap},wg=function(e,t,n){return(n=e[t])&&Ze(n)?e[t]():mh(n)&&e.getAttribute&&e.getAttribute(t)||n},Rt=function(e,t){return(e=e.split(",")).forEach(t)||e},tt=function(e){return Math.round(e*1e5)/1e5||0},lt=function(e){return Math.round(e*1e7)/1e7||0},Dr=function(e,t){var n=t.charAt(0),r=parseFloat(t.substr(2));return e=parseFloat(e),n==="+"?e+r:n==="-"?e-r:n==="*"?e*r:e/r},MR=function(e,t){for(var n=t.length,r=0;e.indexOf(t[r])<0&&++ra;)o=o._prev;return o?(t._next=o._next,o._next=t):(t._next=e[n],e[n]=t),t._next?t._next._prev=t:e[r]=t,t._prev=o,t.parent=t._dp=e,t},Ec=function(e,t,n,r){n===void 0&&(n="_first"),r===void 0&&(r="_last");var i=t._prev,o=t._next;i?i._next=o:e[n]===t&&(e[n]=o),o?o._prev=i:e[r]===t&&(e[r]=i),t._next=t._prev=t.parent=null},Cs=function(e,t){e.parent&&(!t||e.parent.autoRemoveChildren)&&e.parent.remove&&e.parent.remove(e),e._act=0},Ys=function(e,t){if(e&&(!t||t._end>e._dur||t._start<0))for(var n=e;n;)n._dirty=1,n=n.parent;return e},$R=function(e){for(var t=e.parent;t&&t.parent;)t._dirty=1,t.totalDuration(),t=t.parent;return e},Ql=function(e,t,n,r){return e._startAt&&(pt?e._startAt.revert(ha):e.vars.immediateRender&&!e.vars.autoRevert||e._startAt.render(t,!0,r))},FR=function s(e){return!e||e._ts&&s(e.parent)},Lf=function(e){return e._repeat?Yr(e._tTime,e=e.duration()+e._rDelay)*e:0},Yr=function(e,t){var n=Math.floor(e/=t);return e&&n===e?n-1:n},Ja=function(e,t){return(e-t._start)*t._ts+(t._ts>=0?0:t._dirty?t.totalDuration():t._tDur)},Cc=function(e){return e._end=lt(e._start+(e._tDur/Math.abs(e._ts||e._rts||Me)||0))},Sc=function(e,t){var n=e._dp;return n&&n.smoothChildTiming&&e._ts&&(e._start=lt(n._time-(e._ts>0?t/e._ts:((e._dirty?e.totalDuration():e._tDur)-t)/-e._ts)),Cc(e),n._dirty||Ys(n,e)),e},Sg=function(e,t){var n;if((t._time||!t._dur&&t._initted||t._startMe)&&t.render(n,!0)),Ys(e,t)._dp&&e._initted&&e._time>=e._dur&&e._ts){if(e._dur=0&&n.totalTime(n._tTime),n=n._dp;e._zTime=-Me}},wn=function(e,t,n,r){return t.parent&&Cs(t),t._start=lt((Kn(n)?n:n||e!==He?qt(e,n,t):e._time)+t._delay),t._end=lt(t._start+(t.totalDuration()/Math.abs(t.timeScale())||0)),Cg(e,t,"_first","_last",e._sort?"_start":0),Jl(t)||(e._recent=t),r||Sg(e,t),e._ts<0&&Sc(e,e._tTime),e},Og=function(e,t){return(Bt.ScrollTrigger||yh("scrollTrigger",t))&&Bt.ScrollTrigger.create(t,e)},Ag=function(e,t,n,r,i){if(kh(e,t,i),!e._initted)return 1;if(!n&&e._pt&&!pt&&(e._dur&&e.vars.lazy!==!1||!e._dur&&e.vars.lazy)&&xg!==Lt.frame)return ms.push(e),e._lazy=[i,r],1},LR=function s(e){var t=e.parent;return t&&t._ts&&t._initted&&!t._lock&&(t.rawTime()<0||s(t))},Jl=function(e){var t=e.data;return t==="isFromStart"||t==="isStart"},jR=function(e,t,n,r){var i=e.ratio,o=t<0||!t&&(!e._start&&LR(e)&&!(!e._initted&&Jl(e))||(e._ts<0||e._dp._ts<0)&&!Jl(e))?0:1,a=e._rDelay,c=0,l,u,h;if(a&&e._repeat&&(c=No(0,e._tDur,t),u=Yr(c,a),e._yoyo&&u&1&&(o=1-o),u!==Yr(e._tTime,a)&&(i=1-o,e.vars.repeatRefresh&&e._initted&&e.invalidate())),o!==i||pt||r||e._zTime===Me||!t&&e._zTime){if(!e._initted&&Ag(e,t,r,n,c))return;for(h=e._zTime,e._zTime=t||(n?Me:0),n||(n=t&&!h),e.ratio=o,e._from&&(o=1-o),e._time=0,e._tTime=c,l=e._pt;l;)l.r(o,l.d),l=l._next;t<0&&Ql(e,t,n,!0),e._onUpdate&&!n&&jt(e,"onUpdate"),c&&e._repeat&&!n&&e.parent&&jt(e,"onRepeat"),(t>=e._tDur||t<0)&&e.ratio===o&&(o&&Cs(e,1),!n&&!pt&&(jt(e,o?"onComplete":"onReverseComplete",!0),e._prom&&e._prom()))}else e._zTime||(e._zTime=t)},VR=function(e,t,n){var r;if(n>t)for(r=e._first;r&&r._start<=n;){if(r.data==="isPause"&&r._start>t)return r;r=r._next}else for(r=e._last;r&&r._start>=n;){if(r.data==="isPause"&&r._start0&&!r&&Sc(e,e._tTime=e._tDur*a),e.parent&&Cc(e),n||Ys(e.parent,e),e},jf=function(e){return e instanceof xt?Ys(e):Gr(e,e._dur)},zR={_start:0,endTime:lo,totalDuration:lo},qt=function s(e,t,n){var r=e.labels,i=e._recent||zR,o=e.duration()>=Xt?i.endTime(!1):e._dur,a,c,l;return ht(t)&&(isNaN(t)||t in r)?(c=t.charAt(0),l=t.substr(-1)==="%",a=t.indexOf("="),c==="<"||c===">"?(a>=0&&(t=t.replace(/=/,"")),(c==="<"?i._start:i.endTime(i._repeat>=0))+(parseFloat(t.substr(1))||0)*(l?(a<0?i:n).totalDuration()/100:1)):a<0?(t in r||(r[t]=o),r[t]):(c=parseFloat(t.charAt(a-1)+t.substr(a+1)),l&&n&&(c=c/100*(mt(n)?n[0]:n).totalDuration()),a>1?s(e,t.substr(0,a-1),n)+c:o+c)):t==null?o:+t},$i=function(e,t,n){var r=Kn(t[1]),i=(r?2:1)+(e<2?0:1),o=t[i],a,c;if(r&&(o.duration=t[1]),o.parent=n,e){for(a=o,c=n;c&&!("immediateRender"in a);)a=c.vars.defaults||{},c=At(c.vars.inherit)&&c.parent;o.immediateRender=At(a.immediateRender),e<2?o.runBackwards=1:o.startAt=t[i-1]}return new rt(t[0],o,t[i+1])},Ds=function(e,t){return e||e===0?t(e):t},No=function(e,t,n){return nt?t:n},ft=function(e,t){return!ht(e)||!(t=RR.exec(e))?"":t[1]},UR=function(e,t,n){return Ds(n,function(r){return No(e,t,r)})},eu=[].slice,Rg=function(e,t){return e&&An(e)&&"length"in e&&(!t&&!e.length||e.length-1 in e&&An(e[0]))&&!e.nodeType&&e!==Ht},BR=function(e,t,n){return n===void 0&&(n=[]),e.forEach(function(r){var i;return ht(r)&&!t||Rg(r,1)?(i=n).push.apply(i,Zt(r)):n.push(r)})||n},Zt=function(e,t,n){return Xe&&!t&&Xe.selector?Xe.selector(e):ht(e)&&!n&&(Zl||!Xr())?eu.call((t||_h).querySelectorAll(e),0):mt(e)?BR(e,n):Rg(e)?eu.call(e,0):e?[e]:[]},tu=function(e){return e=Zt(e)[0]||co("Invalid scope")||{},function(t){var n=e.current||e.nativeElement||e;return Zt(t,n.querySelectorAll?n:n===e?co("Invalid scope")||_h.createElement("div"):e)}},Pg=function(e){return e.sort(function(){return .5-Math.random()})},Dg=function(e){if(Ze(e))return e;var t=An(e)?e:{each:e},n=Gs(t.ease),r=t.from||0,i=parseFloat(t.base)||0,o={},a=r>0&&r<1,c=isNaN(r)||a,l=t.axis,u=r,h=r;return ht(r)?u=h={center:.5,edges:.5,end:1}[r]||0:!a&&c&&(u=r[0],h=r[1]),function(d,f,m){var p=(m||t).length,g=o[p],_,x,k,y,b,T,E,w,C;if(!g){if(C=t.grid==="auto"?0:(t.grid||[1,Xt])[1],!C){for(E=-Xt;E<(E=m[C++].getBoundingClientRect().left)&&CE&&(E=b),bp?p-1:l?l==="y"?p/C:C:Math.max(C,p/C))||0)*(r==="edges"?-1:1),g.b=p<0?i-p:i,g.u=ft(t.amount||t.each)||0,n=n&&p<0?Ug(n):n}return p=(g[d]-g.min)/g.max||0,lt(g.b+(n?n(p):p)*g.v)+g.u}},nu=function(e){var t=Math.pow(10,((e+"").split(".")[1]||"").length);return function(n){var r=lt(Math.round(parseFloat(n)/e)*e*t);return(r-r%1)/t+(Kn(n)?0:ft(n))}},Mg=function(e,t){var n=mt(e),r,i;return!n&&An(e)&&(r=n=e.radius||Xt,e.values?(e=Zt(e.values),(i=!Kn(e[0]))&&(r*=r)):e=nu(e.increment)),Ds(t,n?Ze(e)?function(o){return i=e(o),Math.abs(i-o)<=r?i:o}:function(o){for(var a=parseFloat(i?o.x:o),c=parseFloat(i?o.y:0),l=Xt,u=0,h=e.length,d,f;h--;)i?(d=e[h].x-a,f=e[h].y-c,d=d*d+f*f):d=Math.abs(e[h]-a),dr?i-o:o)})},uo=function(e){for(var t=0,n="",r,i,o,a;~(r=e.indexOf("random(",t));)o=e.indexOf(")",r),a=e.charAt(r+7)==="[",i=e.substr(r+7,o-r-7).match(a?_g:Xl),n+=e.substr(t,r-t)+Ig(a?i:+i[0],a?0:+i[1],+i[2]||1e-5),t=o+1;return n+e.substr(t,e.length-t)},$g=function(e,t,n,r,i){var o=t-e,a=r-n;return Ds(i,function(c){return n+((c-e)/o*a||0)})},XR=function s(e,t,n,r){var i=isNaN(e+t)?0:function(f){return(1-f)*e+f*t};if(!i){var o=ht(e),a={},c,l,u,h,d;if(n===!0&&(r=1)&&(n=null),o)e={p:e},t={p:t};else if(mt(e)&&!mt(t)){for(u=[],h=e.length,d=h-2,l=1;l(a=Math.abs(a))&&(c=o,i=a);return c},jt=function(e,t,n){var r=e.vars,i=r[t],o=Xe,a=e._ctx,c,l,u;if(i)return c=r[t+"Params"],l=r.callbackScope||e,n&&ms.length&&Ka(),a&&(Xe=a),u=c?i.apply(l,c):i.call(l),Xe=o,u},Si=function(e){return Cs(e),e.scrollTrigger&&e.scrollTrigger.kill(!!pt),e.progress()<1&&jt(e,"onInterrupt"),e},Sr,Fg=[],Lg=function(e){if(gh()&&e){e=!e.name&&e.default||e;var t=e.name,n=Ze(e),r=t&&!n&&e.init?function(){this._props=[]}:e,i={init:lo,render:Ch,add:wh,kill:hP,modifier:uP,rawVars:0},o={targetTest:0,get:0,getSetter:Eh,aliases:{},register:0};if(Xr(),e!==r){if($t[t])return;Jt(r,Jt(Qa(e,i),o)),sr(r.prototype,sr(i,Qa(e,o))),$t[r.prop=t]=r,e.targetTest&&(da.push(r),vh[t]=1),t=(t==="css"?"CSS":t.charAt(0).toUpperCase()+t.substr(1))+"Plugin"}bg(t,r),e.register&&e.register(It,r,Pt)}else e&&Fg.push(e)},De=255,Oi={aqua:[0,De,De],lime:[0,De,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,De],navy:[0,0,128],white:[De,De,De],olive:[128,128,0],yellow:[De,De,0],orange:[De,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[De,0,0],pink:[De,192,203],cyan:[0,De,De],transparent:[De,De,De,0]},sl=function(e,t,n){return e+=e<0?1:e>1?-1:0,(e*6<1?t+(n-t)*e*6:e<.5?n:e*3<2?t+(n-t)*(2/3-e)*6:t)*De+.5|0},jg=function(e,t,n){var r=e?Kn(e)?[e>>16,e>>8&De,e&De]:0:Oi.black,i,o,a,c,l,u,h,d,f,m;if(!r){if(e.substr(-1)===","&&(e=e.substr(0,e.length-1)),Oi[e])r=Oi[e];else if(e.charAt(0)==="#"){if(e.length<6&&(i=e.charAt(1),o=e.charAt(2),a=e.charAt(3),e="#"+i+i+o+o+a+a+(e.length===5?e.charAt(4)+e.charAt(4):"")),e.length===9)return r=parseInt(e.substr(1,6),16),[r>>16,r>>8&De,r&De,parseInt(e.substr(7),16)/255];e=parseInt(e.substr(1),16),r=[e>>16,e>>8&De,e&De]}else if(e.substr(0,3)==="hsl"){if(r=m=e.match(Xl),!t)c=+r[0]%360/360,l=+r[1]/100,u=+r[2]/100,o=u<=.5?u*(l+1):u+l-u*l,i=u*2-o,r.length>3&&(r[3]*=1),r[0]=sl(c+1/3,i,o),r[1]=sl(c,i,o),r[2]=sl(c-1/3,i,o);else if(~e.indexOf("="))return r=e.match(mg),n&&r.length<4&&(r[3]=1),r}else r=e.match(Xl)||Oi.transparent;r=r.map(Number)}return t&&!m&&(i=r[0]/De,o=r[1]/De,a=r[2]/De,h=Math.max(i,o,a),d=Math.min(i,o,a),u=(h+d)/2,h===d?c=l=0:(f=h-d,l=u>.5?f/(2-h-d):f/(h+d),c=h===i?(o-a)/f+(oe&&(n+=_-t),r+=_,b=r-n,k=b-o,(k>0||x)&&(T=++h.frame,d=b-h.time*1e3,h.time=b=b/1e3,o+=k+(k>=i?4:i-k),y=1),x||(c=l(p)),y)for(f=0;f=_&&f--},_listeners:a},h}(),Xr=function(){return!ho&&Lt.wake()},be={},KR=/^[\d.\-M][\d.\-,\s]/,QR=/["']/g,JR=function(e){for(var t={},n=e.substr(1,e.length-3).split(":"),r=n[0],i=1,o=n.length,a,c,l;i1&&n.config?n.config.apply(null,~e.indexOf("{")?[JR(t[1])]:eP(e).split(",").map(Tg)):be._CE&&KR.test(e)?be._CE("",e):n},Ug=function(e){return function(t){return 1-e(1-t)}},Bg=function s(e,t){for(var n=e._first,r;n;)n instanceof xt?s(n,t):n.vars.yoyoEase&&(!n._yoyo||!n._repeat)&&n._yoyo!==t&&(n.timeline?s(n.timeline,t):(r=n._ease,n._ease=n._yEase,n._yEase=r,n._yoyo=t)),n=n._next},Gs=function(e,t){return e&&(Ze(e)?e:be[e]||tP(e))||t},lr=function(e,t,n,r){n===void 0&&(n=function(c){return 1-t(1-c)}),r===void 0&&(r=function(c){return c<.5?t(c*2)/2:1-t((1-c)*2)/2});var i={easeIn:t,easeOut:n,easeInOut:r},o;return Rt(e,function(a){be[a]=Bt[a]=i,be[o=a.toLowerCase()]=n;for(var c in i)be[o+(c==="easeIn"?".in":c==="easeOut"?".out":".inOut")]=be[a+"."+c]=i[c]}),i},Wg=function(e){return function(t){return t<.5?(1-e(1-t*2))/2:.5+e((t-.5)*2)/2}},rl=function s(e,t,n){var r=t>=1?t:1,i=(n||(e?.3:.45))/(t<1?t:1),o=i/Gl*(Math.asin(1/r)||0),a=function(u){return u===1?1:r*Math.pow(2,-10*u)*AR((u-o)*i)+1},c=e==="out"?a:e==="in"?function(l){return 1-a(1-l)}:Wg(a);return i=Gl/i,c.config=function(l,u){return s(e,l,u)},c},il=function s(e,t){t===void 0&&(t=1.70158);var n=function(o){return o?--o*o*((t+1)*o+t)+1:0},r=e==="out"?n:e==="in"?function(i){return 1-n(1-i)}:Wg(n);return r.config=function(i){return s(e,i)},r};Rt("Linear,Quad,Cubic,Quart,Quint,Strong",function(s,e){var t=e<5?e+1:e;lr(s+",Power"+(t-1),e?function(n){return Math.pow(n,t)}:function(n){return n},function(n){return 1-Math.pow(1-n,t)},function(n){return n<.5?Math.pow(n*2,t)/2:1-Math.pow((1-n)*2,t)/2})});be.Linear.easeNone=be.none=be.Linear.easeIn;lr("Elastic",rl("in"),rl("out"),rl());(function(s,e){var t=1/e,n=2*t,r=2.5*t,i=function(a){return a0?n+(n+this._rDelay)*this._repeat:n):this.totalDuration()&&this._dur},e.totalDuration=function(n){return arguments.length?(this._dirty=0,Gr(this,this._repeat<0?n:(n-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(n,r){if(Xr(),!arguments.length)return this._tTime;var i=this._dp;if(i&&i.smoothChildTiming&&this._ts){for(Sc(this,n),!i._dp||i.parent||Sg(i,this);i&&i.parent;)i.parent._time!==i._start+(i._ts>=0?i._tTime/i._ts:(i.totalDuration()-i._tTime)/-i._ts)&&i.totalTime(i._tTime,!0),i=i.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&n0||!this._tDur&&!n)&&wn(this._dp,this,this._start-this._delay)}return(this._tTime!==n||!this._dur&&!r||this._initted&&Math.abs(this._zTime)===Me||!n&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=n),kg(this,n,r)),this},e.time=function(n,r){return arguments.length?this.totalTime(Math.min(this.totalDuration(),n+Lf(this))%(this._dur+this._rDelay)||(n?this._dur:0),r):this._time},e.totalProgress=function(n,r){return arguments.length?this.totalTime(this.totalDuration()*n,r):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>0?1:0},e.progress=function(n,r){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-n:n)+Lf(this),r):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},e.iteration=function(n,r){var i=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(n-1)*i,r):this._repeat?Yr(this._tTime,i)+1:1},e.timeScale=function(n,r){if(!arguments.length)return this._rts===-Me?0:this._rts;if(this._rts===n)return this;var i=this.parent&&this._ts?Ja(this.parent._time,this):this._tTime;return this._rts=+n||0,this._ts=this._ps||n===-Me?0:this._rts,this.totalTime(No(-Math.abs(this._delay),this._tDur,i),r!==!1),Cc(this),$R(this)},e.paused=function(n){return arguments.length?(this._ps!==n&&(this._ps=n,n?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(Xr(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==Me&&(this._tTime-=Me)))),this):this._ps},e.startTime=function(n){if(arguments.length){this._start=n;var r=this.parent||this._dp;return r&&(r._sort||!this.parent)&&wn(r,this,n-this._delay),this}return this._start},e.endTime=function(n){return this._start+(At(n)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},e.rawTime=function(n){var r=this.parent||this._dp;return r?n&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?Ja(r.rawTime(n),this):this._tTime:this._tTime},e.revert=function(n){n===void 0&&(n=DR);var r=pt;return pt=n,(this._initted||this._startAt)&&(this.timeline&&this.timeline.revert(n),this.totalTime(-.01,n.suppressEvents)),this.data!=="nested"&&n.kill!==!1&&this.kill(),pt=r,this},e.globalTime=function(n){for(var r=this,i=arguments.length?n:r.rawTime();r;)i=r._start+i/(Math.abs(r._ts)||1),r=r._dp;return!this.parent&&this._sat?this._sat.globalTime(n):i},e.repeat=function(n){return arguments.length?(this._repeat=n===1/0?-2:n,jf(this)):this._repeat===-2?1/0:this._repeat},e.repeatDelay=function(n){if(arguments.length){var r=this._time;return this._rDelay=n,jf(this),r?this.time(r):this}return this._rDelay},e.yoyo=function(n){return arguments.length?(this._yoyo=n,this):this._yoyo},e.seek=function(n,r){return this.totalTime(qt(this,n),At(r))},e.restart=function(n,r){return this.play().totalTime(n?-this._delay:0,At(r))},e.play=function(n,r){return n!=null&&this.seek(n,r),this.reversed(!1).paused(!1)},e.reverse=function(n,r){return n!=null&&this.seek(n||this.totalDuration(),r),this.reversed(!0).paused(!1)},e.pause=function(n,r){return n!=null&&this.seek(n,r),this.paused(!0)},e.resume=function(){return this.paused(!1)},e.reversed=function(n){return arguments.length?(!!n!==this.reversed()&&this.timeScale(-this._rts||(n?-Me:0)),this):this._rts<0},e.invalidate=function(){return this._initted=this._act=0,this._zTime=-Me,this},e.isActive=function(){var n=this.parent||this._dp,r=this._start,i;return!!(!n||this._ts&&this._initted&&n.isActive()&&(i=n.rawTime(!0))>=r&&i1?(r?(o[n]=r,i&&(o[n+"Params"]=i),n==="onUpdate"&&(this._onUpdate=r)):delete o[n],this):o[n]},e.then=function(n){var r=this;return new Promise(function(i){var o=Ze(n)?n:Eg,a=function(){var l=r.then;r.then=null,Ze(o)&&(o=o(r))&&(o.then||o===r)&&(r.then=l),i(o),r.then=l};r._initted&&r.totalProgress()===1&&r._ts>=0||!r._tTime&&r._ts<0?a():r._prom=a})},e.kill=function(){Si(this)},s}();Jt(fo.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-Me,_prom:0,_ps:!1,_rts:1});var xt=function(s){dg(e,s);function e(n,r){var i;return n===void 0&&(n={}),i=s.call(this,n)||this,i.labels={},i.smoothChildTiming=!!n.smoothChildTiming,i.autoRemoveChildren=!!n.autoRemoveChildren,i._sort=At(n.sortChildren),He&&wn(n.parent||He,jn(i),r),n.reversed&&i.reverse(),n.paused&&i.paused(!0),n.scrollTrigger&&Og(jn(i),n.scrollTrigger),i}var t=e.prototype;return t.to=function(r,i,o){return $i(0,arguments,this),this},t.from=function(r,i,o){return $i(1,arguments,this),this},t.fromTo=function(r,i,o,a){return $i(2,arguments,this),this},t.set=function(r,i,o){return i.duration=0,i.parent=this,Ni(i).repeatDelay||(i.repeat=0),i.immediateRender=!!i.immediateRender,new rt(r,i,qt(this,o),1),this},t.call=function(r,i,o){return wn(this,rt.delayedCall(0,r,i),o)},t.staggerTo=function(r,i,o,a,c,l,u){return o.duration=i,o.stagger=o.stagger||a,o.onComplete=l,o.onCompleteParams=u,o.parent=this,new rt(r,o,qt(this,c)),this},t.staggerFrom=function(r,i,o,a,c,l,u){return o.runBackwards=1,Ni(o).immediateRender=At(o.immediateRender),this.staggerTo(r,i,o,a,c,l,u)},t.staggerFromTo=function(r,i,o,a,c,l,u,h){return a.startAt=o,Ni(a).immediateRender=At(a.immediateRender),this.staggerTo(r,i,a,c,l,u,h)},t.render=function(r,i,o){var a=this._time,c=this._dirty?this.totalDuration():this._tDur,l=this._dur,u=r<=0?0:lt(r),h=this._zTime<0!=r<0&&(this._initted||!l),d,f,m,p,g,_,x,k,y,b,T,E;if(this!==He&&u>c&&r>=0&&(u=c),u!==this._tTime||o||h){if(a!==this._time&&l&&(u+=this._time-a,r+=this._time-a),d=u,y=this._start,k=this._ts,_=!k,h&&(l||(a=this._zTime),(r||!i)&&(this._zTime=r)),this._repeat){if(T=this._yoyo,g=l+this._rDelay,this._repeat<-1&&r<0)return this.totalTime(g*100+r,i,o);if(d=lt(u%g),u===c?(p=this._repeat,d=l):(p=~~(u/g),p&&p===u/g&&(d=l,p--),d>l&&(d=l)),b=Yr(this._tTime,g),!a&&this._tTime&&b!==p&&this._tTime-b*g-this._dur<=0&&(b=p),T&&p&1&&(d=l-d,E=1),p!==b&&!this._lock){var w=T&&b&1,C=w===(T&&p&1);if(p=a&&r>=0)for(f=this._first;f;){if(m=f._next,(f._act||d>=f._start)&&f._ts&&x!==f){if(f.parent!==this)return this.render(r,i,o);if(f.render(f._ts>0?(d-f._start)*f._ts:(f._dirty?f.totalDuration():f._tDur)+(d-f._start)*f._ts,i,o),d!==this._time||!this._ts&&!_){x=0,m&&(u+=this._zTime=-Me);break}}f=m}else{f=this._last;for(var S=r<0?r:d;f;){if(m=f._prev,(f._act||S<=f._end)&&f._ts&&x!==f){if(f.parent!==this)return this.render(r,i,o);if(f.render(f._ts>0?(S-f._start)*f._ts:(f._dirty?f.totalDuration():f._tDur)+(S-f._start)*f._ts,i,o||pt&&(f._initted||f._startAt)),d!==this._time||!this._ts&&!_){x=0,m&&(u+=this._zTime=S?-Me:Me);break}}f=m}}if(x&&!i&&(this.pause(),x.render(d>=a?0:-Me)._zTime=d>=a?1:-1,this._ts))return this._start=y,Cc(this),this.render(r,i,o);this._onUpdate&&!i&&jt(this,"onUpdate",!0),(u===c&&this._tTime>=this.totalDuration()||!u&&a)&&(y===this._start||Math.abs(k)!==Math.abs(this._ts))&&(this._lock||((r||!l)&&(u===c&&this._ts>0||!u&&this._ts<0)&&Cs(this,1),!i&&!(r<0&&!a)&&(u||a||!c)&&(jt(this,u===c&&r>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(u0)&&this._prom())))}return this},t.add=function(r,i){var o=this;if(Kn(i)||(i=qt(this,i,r)),!(r instanceof fo)){if(mt(r))return r.forEach(function(a){return o.add(a,i)}),this;if(ht(r))return this.addLabel(r,i);if(Ze(r))r=rt.delayedCall(0,r);else return this}return this!==r?wn(this,r,i):this},t.getChildren=function(r,i,o,a){r===void 0&&(r=!0),i===void 0&&(i=!0),o===void 0&&(o=!0),a===void 0&&(a=-Xt);for(var c=[],l=this._first;l;)l._start>=a&&(l instanceof rt?i&&c.push(l):(o&&c.push(l),r&&c.push.apply(c,l.getChildren(!0,i,o)))),l=l._next;return c},t.getById=function(r){for(var i=this.getChildren(1,1,1),o=i.length;o--;)if(i[o].vars.id===r)return i[o]},t.remove=function(r){return ht(r)?this.removeLabel(r):Ze(r)?this.killTweensOf(r):(Ec(this,r),r===this._recent&&(this._recent=this._last),Ys(this))},t.totalTime=function(r,i){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=lt(Lt.time-(this._ts>0?r/this._ts:(this.totalDuration()-r)/-this._ts))),s.prototype.totalTime.call(this,r,i),this._forcing=0,this):this._tTime},t.addLabel=function(r,i){return this.labels[r]=qt(this,i),this},t.removeLabel=function(r){return delete this.labels[r],this},t.addPause=function(r,i,o){var a=rt.delayedCall(0,i||lo,o);return a.data="isPause",this._hasPause=1,wn(this,a,qt(this,r))},t.removePause=function(r){var i=this._first;for(r=qt(this,r);i;)i._start===r&&i.data==="isPause"&&Cs(i),i=i._next},t.killTweensOf=function(r,i,o){for(var a=this.getTweensOf(r,o),c=a.length;c--;)ls!==a[c]&&a[c].kill(r,i);return this},t.getTweensOf=function(r,i){for(var o=[],a=Zt(r),c=this._first,l=Kn(i),u;c;)c instanceof rt?MR(c._targets,a)&&(l?(!ls||c._initted&&c._ts)&&c.globalTime(0)<=i&&c.globalTime(c.totalDuration())>i:!i||c.isActive())&&o.push(c):(u=c.getTweensOf(a,i)).length&&o.push.apply(o,u),c=c._next;return o},t.tweenTo=function(r,i){i=i||{};var o=this,a=qt(o,r),c=i,l=c.startAt,u=c.onStart,h=c.onStartParams,d=c.immediateRender,f,m=rt.to(o,Jt({ease:i.ease||"none",lazy:!1,immediateRender:!1,time:a,overwrite:"auto",duration:i.duration||Math.abs((a-(l&&"time"in l?l.time:o._time))/o.timeScale())||Me,onStart:function(){if(o.pause(),!f){var g=i.duration||Math.abs((a-(l&&"time"in l?l.time:o._time))/o.timeScale());m._dur!==g&&Gr(m,g,0,1).render(m._time,!0,!0),f=1}u&&u.apply(m,h||[])}},i));return d?m.render(0):m},t.tweenFromTo=function(r,i,o){return this.tweenTo(i,Jt({startAt:{time:qt(this,r)}},o))},t.recent=function(){return this._recent},t.nextLabel=function(r){return r===void 0&&(r=this._time),Vf(this,qt(this,r))},t.previousLabel=function(r){return r===void 0&&(r=this._time),Vf(this,qt(this,r),1)},t.currentLabel=function(r){return arguments.length?this.seek(r,!0):this.previousLabel(this._time+Me)},t.shiftChildren=function(r,i,o){o===void 0&&(o=0);for(var a=this._first,c=this.labels,l;a;)a._start>=o&&(a._start+=r,a._end+=r),a=a._next;if(i)for(l in c)c[l]>=o&&(c[l]+=r);return Ys(this)},t.invalidate=function(r){var i=this._first;for(this._lock=0;i;)i.invalidate(r),i=i._next;return s.prototype.invalidate.call(this,r)},t.clear=function(r){r===void 0&&(r=!0);for(var i=this._first,o;i;)o=i._next,this.remove(i),i=o;return this._dp&&(this._time=this._tTime=this._pTime=0),r&&(this.labels={}),Ys(this)},t.totalDuration=function(r){var i=0,o=this,a=o._last,c=Xt,l,u,h;if(arguments.length)return o.timeScale((o._repeat<0?o.duration():o.totalDuration())/(o.reversed()?-r:r));if(o._dirty){for(h=o.parent;a;)l=a._prev,a._dirty&&a.totalDuration(),u=a._start,u>c&&o._sort&&a._ts&&!o._lock?(o._lock=1,wn(o,a,u-a._delay,1)._lock=0):c=u,u<0&&a._ts&&(i-=u,(!h&&!o._dp||h&&h.smoothChildTiming)&&(o._start+=u/o._ts,o._time-=u,o._tTime-=u),o.shiftChildren(-u,!1,-1/0),c=0),a._end>i&&a._ts&&(i=a._end),a=l;Gr(o,o===He&&o._time>i?o._time:i,1,1),o._dirty=0}return o._tDur},e.updateRoot=function(r){if(He._ts&&(kg(He,Ja(r,He)),xg=Lt.frame),Lt.frame>=$f){$f+=Ut.autoSleep||120;var i=He._first;if((!i||!i._ts)&&Ut.autoSleep&&Lt._listeners.length<2){for(;i&&!i._ts;)i=i._next;i||Lt.sleep()}}},e}(fo);Jt(xt.prototype,{_lock:0,_hasPause:0,_forcing:0});var nP=function(e,t,n,r,i,o,a){var c=new Pt(this._pt,e,t,0,1,Kg,null,i),l=0,u=0,h,d,f,m,p,g,_,x;for(c.b=n,c.e=r,n+="",r+="",(_=~r.indexOf("random("))&&(r=uo(r)),o&&(x=[n,r],o(x,e,t),n=x[0],r=x[1]),d=n.match(tl)||[];h=tl.exec(r);)m=h[0],p=r.substring(l,h.index),f?f=(f+1)%5:p.substr(-5)==="rgba("&&(f=1),m!==d[u++]&&(g=parseFloat(d[u-1])||0,c._pt={_next:c._pt,p:p||u===1?p:",",s:g,c:m.charAt(1)==="="?Dr(g,m)-g:parseFloat(m)-g,m:f&&f<4?Math.round:0},l=tl.lastIndex);return c.c=l")}),y.duration();else{T={};for(w in m)w==="ease"||w==="easeEach"||oP(w,m[w],T,m.easeEach);for(w in T)for(j=T[w].sort(function(z,U){return z.t-U.t}),O=0,b=0;bc-Me&&!u?c:rl&&(d=l)),_=this._yoyo&&m&1,_&&(y=this._yEase,d=l-d),g=Yr(this._tTime,p),d===a&&!o&&this._initted&&m===g)return this._tTime=h,this;m!==g&&(k&&this._yEase&&Bg(k,_),this.vars.repeatRefresh&&!_&&!this._lock&&this._time!==l&&this._initted&&(this._lock=o=1,this.render(lt(p*m),!0).invalidate()._lock=0))}if(!this._initted){if(Ag(this,u?r:d,o,i,h))return this._tTime=0,this;if(a!==this._time&&!(o&&this.vars.repeatRefresh&&m!==g))return this;if(l!==this._dur)return this.render(r,i,o)}if(this._tTime=h,this._time=d,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=x=(y||this._ease)(d/l),this._from&&(this.ratio=x=1-x),d&&!a&&!i&&!m&&(jt(this,"onStart"),this._tTime!==h))return this;for(f=this._pt;f;)f.r(x,f.d),f=f._next;k&&k.render(r<0?r:!d&&_?-Me:k._dur*k._ease(d/this._dur),i,o)||this._startAt&&(this._zTime=r),this._onUpdate&&!i&&(u&&Ql(this,r,i,o),jt(this,"onUpdate")),this._repeat&&m!==g&&this.vars.onRepeat&&!i&&this.parent&&jt(this,"onRepeat"),(h===this._tDur||!h)&&this._tTime===h&&(u&&!this._onUpdate&&Ql(this,r,!0,!0),(r||!l)&&(h===this._tDur&&this._ts>0||!h&&this._ts<0)&&Cs(this,1),!i&&!(u&&!a)&&(h||a||_)&&(jt(this,h===c?"onComplete":"onReverseComplete",!0),this._prom&&!(h0)&&this._prom()))}return this},t.targets=function(){return this._targets},t.invalidate=function(r){return(!r||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(r),s.prototype.invalidate.call(this,r)},t.resetTo=function(r,i,o,a,c){ho||Lt.wake(),this._ts||this.play();var l=Math.min(this._dur,(this._dp._time-this._start)*this._ts),u;return this._initted||kh(this,l),u=this._ease(l/this._dur),rP(this,r,i,o,a,u,l,c)?this.resetTo(r,i,o,a,1):(Sc(this,0),this.parent||Cg(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},t.kill=function(r,i){if(i===void 0&&(i="all"),!r&&(!i||i==="all"))return this._lazy=this._pt=0,this.parent?Si(this):this;if(this.timeline){var o=this.timeline.totalDuration();return this.timeline.killTweensOf(r,i,ls&&ls.vars.overwrite!==!0)._first||Si(this),this.parent&&o!==this.timeline.totalDuration()&&Gr(this,this._dur*this.timeline._tDur/o,0,1),this}var a=this._targets,c=r?Zt(r):a,l=this._ptLookup,u=this._pt,h,d,f,m,p,g,_;if((!i||i==="all")&&NR(a,c))return i==="all"&&(this._pt=0),Si(this);for(h=this._op=this._op||[],i!=="all"&&(ht(i)&&(p={},Rt(i,function(x){return p[x]=1}),i=p),i=iP(a,i)),_=a.length;_--;)if(~c.indexOf(a[_])){d=l[_],i==="all"?(h[_]=i,m=d,f={}):(f=h[_]=h[_]||{},m=i);for(p in m)g=d&&d[p],g&&((!("kill"in g.d)||g.d.kill(p)===!0)&&Ec(this,g,"_pt"),delete d[p]),f!=="all"&&(f[p]=1)}return this._initted&&!this._pt&&u&&Si(this),this},e.to=function(r,i){return new e(r,i,arguments[2])},e.from=function(r,i){return $i(1,arguments)},e.delayedCall=function(r,i,o,a){return new e(i,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:r,onComplete:i,onReverseComplete:i,onCompleteParams:o,onReverseCompleteParams:o,callbackScope:a})},e.fromTo=function(r,i,o){return $i(2,arguments)},e.set=function(r,i){return i.duration=0,i.repeatDelay||(i.repeat=0),new e(r,i)},e.killTweensOf=function(r,i,o){return He.killTweensOf(r,i,o)},e}(fo);Jt(rt.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0});Rt("staggerTo,staggerFrom,staggerFromTo",function(s){rt[s]=function(){var e=new xt,t=eu.call(arguments,0);return t.splice(s==="staggerFromTo"?5:4,0,0),e[s].apply(e,t)}});var Th=function(e,t,n){return e[t]=n},Xg=function(e,t,n){return e[t](n)},aP=function(e,t,n,r){return e[t](r.fp,n)},cP=function(e,t,n){return e.setAttribute(t,n)},Eh=function(e,t){return Ze(e[t])?Xg:mh(e[t])&&e.setAttribute?cP:Th},Zg=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e6)/1e6,t)},lP=function(e,t){return t.set(t.t,t.p,!!(t.s+t.c*e),t)},Kg=function(e,t){var n=t._pt,r="";if(!e&&t.b)r=t.b;else if(e===1&&t.e)r=t.e;else{for(;n;)r=n.p+(n.m?n.m(n.s+n.c*e):Math.round((n.s+n.c*e)*1e4)/1e4)+r,n=n._next;r+=t.c}t.set(t.t,t.p,r,t)},Ch=function(e,t){for(var n=t._pt;n;)n.r(e,n.d),n=n._next},uP=function(e,t,n,r){for(var i=this._pt,o;i;)o=i._next,i.p===r&&i.modifier(e,t,n),i=o},hP=function(e){for(var t=this._pt,n,r;t;)r=t._next,t.p===e&&!t.op||t.op===e?Ec(this,t,"_pt"):t.dep||(n=1),t=r;return!n},dP=function(e,t,n,r){r.mSet(e,t,r.m.call(r.tween,n,r.mt),r)},Qg=function(e){for(var t=e._pt,n,r,i,o;t;){for(n=t._next,r=i;r&&r.pr>t.pr;)r=r._next;(t._prev=r?r._prev:o)?t._prev._next=t:i=t,(t._next=r)?r._prev=t:o=t,t=n}e._pt=i},Pt=function(){function s(t,n,r,i,o,a,c,l,u){this.t=n,this.s=i,this.c=o,this.p=r,this.r=a||Zg,this.d=c||this,this.set=l||Th,this.pr=u||0,this._next=t,t&&(t._prev=this)}var e=s.prototype;return e.modifier=function(n,r,i){this.mSet=this.mSet||this.set,this.set=dP,this.m=n,this.mt=i,this.tween=r},s}();Rt(bh+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",function(s){return vh[s]=1});Bt.TweenMax=Bt.TweenLite=rt;Bt.TimelineLite=Bt.TimelineMax=xt;He=new xt({sortChildren:!1,defaults:Hr,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0});Ut.stringFilter=zg;var Xs=[],fa={},fP=[],Uf=0,pP=0,ol=function(e){return(fa[e]||fP).map(function(t){return t()})},ru=function(){var e=Date.now(),t=[];e-Uf>2&&(ol("matchMediaInit"),Xs.forEach(function(n){var r=n.queries,i=n.conditions,o,a,c,l;for(a in r)o=Ht.matchMedia(r[a]).matches,o&&(c=1),o!==i[a]&&(i[a]=o,l=1);l&&(n.revert(),c&&t.push(n))}),ol("matchMediaRevert"),t.forEach(function(n){return n.onMatch(n,function(r){return n.add(null,r)})}),Uf=e,ol("matchMedia"))},Jg=function(){function s(t,n){this.selector=n&&tu(n),this.data=[],this._r=[],this.isReverted=!1,this.id=pP++,t&&this.add(t)}var e=s.prototype;return e.add=function(n,r,i){Ze(n)&&(i=r,r=n,n=Ze);var o=this,a=function(){var l=Xe,u=o.selector,h;return l&&l!==o&&l.data.push(o),i&&(o.selector=tu(i)),Xe=o,h=r.apply(o,arguments),Ze(h)&&o._r.push(h),Xe=l,o.selector=u,o.isReverted=!1,h};return o.last=a,n===Ze?a(o,function(c){return o.add(null,c)}):n?o[n]=a:a},e.ignore=function(n){var r=Xe;Xe=null,n(this),Xe=r},e.getTweens=function(){var n=[];return this.data.forEach(function(r){return r instanceof s?n.push.apply(n,r.getTweens()):r instanceof rt&&!(r.parent&&r.parent.data==="nested")&&n.push(r)}),n},e.clear=function(){this._r.length=this.data.length=0},e.kill=function(n,r){var i=this;if(n?function(){for(var a=i.getTweens(),c=i.data.length,l;c--;)l=i.data[c],l.data==="isFlip"&&(l.revert(),l.getChildren(!0,!0,!1).forEach(function(u){return a.splice(a.indexOf(u),1)}));for(a.map(function(u){return{g:u._dur||u._delay||u._sat&&!u._sat.vars.immediateRender?u.globalTime(0):-1/0,t:u}}).sort(function(u,h){return h.g-u.g||-1/0}).forEach(function(u){return u.t.revert(n)}),c=i.data.length;c--;)l=i.data[c],l instanceof xt?l.data!=="nested"&&(l.scrollTrigger&&l.scrollTrigger.revert(),l.kill()):!(l instanceof rt)&&l.revert&&l.revert(n);i._r.forEach(function(u){return u(n,i)}),i.isReverted=!0}():this.data.forEach(function(a){return a.kill&&a.kill()}),this.clear(),r)for(var o=Xs.length;o--;)Xs[o].id===this.id&&Xs.splice(o,1)},e.revert=function(n){this.kill(n||{})},s}(),mP=function(){function s(t){this.contexts=[],this.scope=t}var e=s.prototype;return e.add=function(n,r,i){An(n)||(n={matches:n});var o=new Jg(0,i||this.scope),a=o.conditions={},c,l,u;Xe&&!o.selector&&(o.selector=Xe.selector),this.contexts.push(o),r=o.add("onMatch",r),o.queries=n;for(l in n)l==="all"?u=1:(c=Ht.matchMedia(n[l]),c&&(Xs.indexOf(o)<0&&Xs.push(o),(a[l]=c.matches)&&(u=1),c.addListener?c.addListener(ru):c.addEventListener("change",ru)));return u&&r(o,function(h){return o.add(null,h)}),this},e.revert=function(n){this.kill(n||{})},e.kill=function(n){this.contexts.forEach(function(r){return r.kill(n,!0)})},s}(),ec={registerPlugin:function(){for(var e=arguments.length,t=new Array(e),n=0;n1){var r=e.map(function(u){return It.quickSetter(u,t,n)}),i=r.length;return function(u){for(var h=i;h--;)r[h](u)}}e=e[0]||{};var o=$t[t],a=Hs(e),c=a.harness&&(a.harness.aliases||{})[t]||t,l=o?function(u){var h=new o;Sr._pt=0,h.init(e,n?u+n:u,Sr,0,[e]),h.render(1,h),Sr._pt&&Ch(1,Sr)}:a.set(e,c);return o?l:function(u){return l(e,c,n?u+n:u,a,1)}},quickTo:function(e,t,n){var r,i=It.to(e,sr((r={},r[t]="+=0.1",r.paused=!0,r),n||{})),o=function(c,l,u){return i.resetTo(t,c,l,u)};return o.tween=i,o},isTweening:function(e){return He.getTweensOf(e,!0).length>0},defaults:function(e){return e&&e.ease&&(e.ease=Gs(e.ease,Hr.ease)),Ff(Hr,e||{})},config:function(e){return Ff(Ut,e||{})},registerEffect:function(e){var t=e.name,n=e.effect,r=e.plugins,i=e.defaults,o=e.extendTimeline;(r||"").split(",").forEach(function(a){return a&&!$t[a]&&!Bt[a]&&co(t+" effect requires "+a+" plugin.")}),nl[t]=function(a,c,l){return n(Zt(a),Jt(c||{},i),l)},o&&(xt.prototype[t]=function(a,c,l){return this.add(nl[t](a,An(c)?c:(l=c)&&{},this),l)})},registerEase:function(e,t){be[e]=Gs(t)},parseEase:function(e,t){return arguments.length?Gs(e,t):be},getById:function(e){return He.getById(e)},exportRoot:function(e,t){e===void 0&&(e={});var n=new xt(e),r,i;for(n.smoothChildTiming=At(e.smoothChildTiming),He.remove(n),n._dp=0,n._time=n._tTime=He._time,r=He._first;r;)i=r._next,(t||!(!r._dur&&r instanceof rt&&r.vars.onComplete===r._targets[0]))&&wn(n,r,r._start-r._delay),r=i;return wn(He,n,0),n},context:function(e,t){return e?new Jg(e,t):Xe},matchMedia:function(e){return new mP(e)},matchMediaRefresh:function(){return Xs.forEach(function(e){var t=e.conditions,n,r;for(r in t)t[r]&&(t[r]=!1,n=1);n&&e.revert()})||ru()},addEventListener:function(e,t){var n=fa[e]||(fa[e]=[]);~n.indexOf(t)||n.push(t)},removeEventListener:function(e,t){var n=fa[e],r=n&&n.indexOf(t);r>=0&&n.splice(r,1)},utils:{wrap:YR,wrapYoyo:GR,distribute:Dg,random:Ig,snap:Mg,normalize:HR,getUnit:ft,clamp:UR,splitColor:jg,toArray:Zt,selector:tu,mapRange:$g,pipe:WR,unitize:qR,interpolate:XR,shuffle:Pg},install:vg,effects:nl,ticker:Lt,updateRoot:xt.updateRoot,plugins:$t,globalTimeline:He,core:{PropTween:Pt,globals:bg,Tween:rt,Timeline:xt,Animation:fo,getCache:Hs,_removeLinkedListItem:Ec,reverting:function(){return pt},context:function(e){return e&&Xe&&(Xe.data.push(e),e._ctx=Xe),Xe},suppressOverwrites:function(e){return ph=e}}};Rt("to,from,fromTo,delayedCall,set,killTweensOf",function(s){return ec[s]=rt[s]});Lt.add(xt.updateRoot);Sr=ec.to({},{duration:0});var gP=function(e,t){for(var n=e._pt;n&&n.p!==t&&n.op!==t&&n.fp!==t;)n=n._next;return n},_P=function(e,t){var n=e._targets,r,i,o;for(r in t)for(i=n.length;i--;)o=e._ptLookup[i][r],o&&(o=o.d)&&(o._pt&&(o=gP(o,r)),o&&o.modifier&&o.modifier(t[r],e,n[i],r))},al=function(e,t){return{name:e,rawVars:1,init:function(r,i,o){o._onInit=function(a){var c,l;if(ht(i)&&(c={},Rt(i,function(u){return c[u]=1}),i=c),t){c={};for(l in i)c[l]=t(i[l]);i=c}_P(a,i)}}}},It=ec.registerPlugin({name:"attr",init:function(e,t,n,r,i){var o,a,c;this.tween=n;for(o in t)c=e.getAttribute(o)||"",a=this.add(e,"setAttribute",(c||0)+"",t[o],r,i,0,0,o),a.op=o,a.b=c,this._props.push(o)},render:function(e,t){for(var n=t._pt;n;)pt?n.set(n.t,n.p,n.b,n):n.r(e,n.d),n=n._next}},{name:"endArray",init:function(e,t){for(var n=t.length;n--;)this.add(e,n,e[n]||0,t[n],0,0,0,0,0,1)}},al("roundProps",nu),al("modifiers"),al("snap",Mg))||ec;rt.version=xt.version=It.version="3.12.4";yg=1;gh()&&Xr();be.Power0;be.Power1;be.Power2;be.Power3;be.Power4;be.Linear;be.Quad;be.Cubic;be.Quart;be.Quint;be.Strong;be.Elastic;be.Back;be.SteppedEase;be.Bounce;be.Sine;be.Expo;be.Circ;/*! - * CSSPlugin 3.12.4 - * https://gsap.com - * - * Copyright 2008-2023, GreenSock. All rights reserved. - * Subject to the terms at https://gsap.com/standard-license or for - * Club GSAP members, the agreement issued with that membership. - * @author: Jack Doyle, jack@greensock.com -*/var Bf,us,Mr,Sh,Us,Wf,Oh,yP=function(){return typeof window<"u"},Qn={},Ls=180/Math.PI,Ir=Math.PI/180,br=Math.atan2,qf=1e8,Ah=/([A-Z])/g,vP=/(left|right|width|margin|padding|x)/i,bP=/[\s,\(]\S/,kn={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},iu=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},xP=function(e,t){return t.set(t.t,t.p,e===1?t.e:Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},wP=function(e,t){return t.set(t.t,t.p,e?Math.round((t.s+t.c*e)*1e4)/1e4+t.u:t.b,t)},kP=function(e,t){var n=t.s+t.c*e;t.set(t.t,t.p,~~(n+(n<0?-.5:.5))+t.u,t)},e_=function(e,t){return t.set(t.t,t.p,e?t.e:t.b,t)},t_=function(e,t){return t.set(t.t,t.p,e!==1?t.b:t.e,t)},TP=function(e,t,n){return e.style[t]=n},EP=function(e,t,n){return e.style.setProperty(t,n)},CP=function(e,t,n){return e._gsap[t]=n},SP=function(e,t,n){return e._gsap.scaleX=e._gsap.scaleY=n},OP=function(e,t,n,r,i){var o=e._gsap;o.scaleX=o.scaleY=n,o.renderTransform(i,o)},AP=function(e,t,n,r,i){var o=e._gsap;o[t]=n,o.renderTransform(i,o)},Ye="transform",Dt=Ye+"Origin",RP=function s(e,t){var n=this,r=this.target,i=r.style,o=r._gsap;if(e in Qn&&i){if(this.tfm=this.tfm||{},e!=="transform")e=kn[e]||e,~e.indexOf(",")?e.split(",").forEach(function(a){return n.tfm[a]=zn(r,a)}):this.tfm[e]=o.x?o[e]:zn(r,e),e===Dt&&(this.tfm.zOrigin=o.zOrigin);else return kn.transform.split(",").forEach(function(a){return s.call(n,a,t)});if(this.props.indexOf(Ye)>=0)return;o.svg&&(this.svgo=r.getAttribute("data-svg-origin"),this.props.push(Dt,t,"")),e=Ye}(i||t)&&this.props.push(e,t,i[e])},n_=function(e){e.translate&&(e.removeProperty("translate"),e.removeProperty("scale"),e.removeProperty("rotate"))},PP=function(){var e=this.props,t=this.target,n=t.style,r=t._gsap,i,o;for(i=0;i=0?Hf[o]:"")+e},au=function(){yP()&&window.document&&(Bf=window,us=Bf.document,Mr=us.documentElement,Us=ou("div")||{style:{}},ou("div"),Ye=Zr(Ye),Dt=Ye+"Origin",Us.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",r_=!!Zr("perspective"),Oh=It.core.reverting,Sh=1)},cl=function s(e){var t=ou("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),n=this.parentNode,r=this.nextSibling,i=this.style.cssText,o;if(Mr.appendChild(t),t.appendChild(this),this.style.display="block",e)try{o=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=s}catch{}else this._gsapBBox&&(o=this._gsapBBox());return n&&(r?n.insertBefore(this,r):n.appendChild(this)),Mr.removeChild(t),this.style.cssText=i,o},Yf=function(e,t){for(var n=t.length;n--;)if(e.hasAttribute(t[n]))return e.getAttribute(t[n])},i_=function(e){var t;try{t=e.getBBox()}catch{t=cl.call(e,!0)}return t&&(t.width||t.height)||e.getBBox===cl||(t=cl.call(e,!0)),t&&!t.width&&!t.x&&!t.y?{x:+Yf(e,["x","cx","x1"])||0,y:+Yf(e,["y","cy","y1"])||0,width:0,height:0}:t},o_=function(e){return!!(e.getCTM&&(!e.parentNode||e.ownerSVGElement)&&i_(e))},rr=function(e,t){if(t){var n=e.style,r;t in Qn&&t!==Dt&&(t=Ye),n.removeProperty?(r=t.substr(0,2),(r==="ms"||t.substr(0,6)==="webkit")&&(t="-"+t),n.removeProperty(r==="--"?t:t.replace(Ah,"-$1").toLowerCase())):n.removeAttribute(t)}},hs=function(e,t,n,r,i,o){var a=new Pt(e._pt,t,n,0,1,o?t_:e_);return e._pt=a,a.b=r,a.e=i,e._props.push(n),a},Gf={deg:1,rad:1,turn:1},DP={grid:1,flex:1},Ss=function s(e,t,n,r){var i=parseFloat(n)||0,o=(n+"").trim().substr((i+"").length)||"px",a=Us.style,c=vP.test(t),l=e.tagName.toLowerCase()==="svg",u=(l?"client":"offset")+(c?"Width":"Height"),h=100,d=r==="px",f=r==="%",m,p,g,_;if(r===o||!i||Gf[r]||Gf[o])return i;if(o!=="px"&&!d&&(i=s(e,t,n,"px")),_=e.getCTM&&o_(e),(f||o==="%")&&(Qn[t]||~t.indexOf("adius")))return m=_?e.getBBox()[c?"width":"height"]:e[u],tt(f?i/m*h:i/100*m);if(a[c?"width":"height"]=h+(d?o:r),p=~t.indexOf("adius")||r==="em"&&e.appendChild&&!l?e:e.parentNode,_&&(p=(e.ownerSVGElement||{}).parentNode),(!p||p===us||!p.appendChild)&&(p=us.body),g=p._gsap,g&&f&&g.width&&c&&g.time===Lt.time&&!g.uncache)return tt(i/g.width*h);if(f&&(t==="height"||t==="width")){var x=e.style[t];e.style[t]=h+r,m=e[u],x?e.style[t]=x:rr(e,t)}else(f||o==="%")&&!DP[En(p,"display")]&&(a.position=En(e,"position")),p===e&&(a.position="static"),p.appendChild(Us),m=Us[u],p.removeChild(Us),a.position="absolute";return c&&f&&(g=Hs(p),g.time=Lt.time,g.width=p[u]),tt(d?m*i/h:m&&i?h/m*i:0)},zn=function(e,t,n,r){var i;return Sh||au(),t in kn&&t!=="transform"&&(t=kn[t],~t.indexOf(",")&&(t=t.split(",")[0])),Qn[t]&&t!=="transform"?(i=mo(e,r),i=t!=="transformOrigin"?i[t]:i.svg?i.origin:nc(En(e,Dt))+" "+i.zOrigin+"px"):(i=e.style[t],(!i||i==="auto"||r||~(i+"").indexOf("calc("))&&(i=tc[t]&&tc[t](e,t,n)||En(e,t)||wg(e,t)||(t==="opacity"?1:0))),n&&!~(i+"").trim().indexOf(" ")?Ss(e,t,i,n)+n:i},MP=function(e,t,n,r){if(!n||n==="none"){var i=Zr(t,e,1),o=i&&En(e,i,1);o&&o!==n?(t=i,n=o):t==="borderColor"&&(n=En(e,"borderTopColor"))}var a=new Pt(this._pt,e.style,t,0,1,Kg),c=0,l=0,u,h,d,f,m,p,g,_,x,k,y,b;if(a.b=n,a.e=r,n+="",r+="",r==="auto"&&(p=e.style[t],e.style[t]=r,r=En(e,t)||r,p?e.style[t]=p:rr(e,t)),u=[n,r],zg(u),n=u[0],r=u[1],d=n.match(Cr)||[],b=r.match(Cr)||[],b.length){for(;h=Cr.exec(r);)g=h[0],x=r.substring(c,h.index),m?m=(m+1)%5:(x.substr(-5)==="rgba("||x.substr(-5)==="hsla(")&&(m=1),g!==(p=d[l++]||"")&&(f=parseFloat(p)||0,y=p.substr((f+"").length),g.charAt(1)==="="&&(g=Dr(f,g)+y),_=parseFloat(g),k=g.substr((_+"").length),c=Cr.lastIndex-k.length,k||(k=k||Ut.units[t]||y,c===r.length&&(r+=k,a.e+=k)),y!==k&&(f=Ss(e,t,p,k)||0),a._pt={_next:a._pt,p:x||l===1?x:",",s:f,c:_-f,m:m&&m<4||t==="zIndex"?Math.round:0});a.c=c-1;)a=i[l],Qn[a]&&(c=1,a=a==="transformOrigin"?Dt:Ye),rr(n,a);c&&(rr(n,Ye),o&&(o.svg&&n.removeAttribute("transform"),mo(n,1),o.uncache=1,n_(r)))}},tc={clearProps:function(e,t,n,r,i){if(i.data!=="isFromStart"){var o=e._pt=new Pt(e._pt,t,n,0,0,NP);return o.u=r,o.pr=-10,o.tween=i,e._props.push(n),1}}},po=[1,0,0,1,0,0],a_={},c_=function(e){return e==="matrix(1, 0, 0, 1, 0, 0)"||e==="none"||!e},Zf=function(e){var t=En(e,Ye);return c_(t)?po:t.substr(7).match(mg).map(tt)},Rh=function(e,t){var n=e._gsap||Hs(e),r=e.style,i=Zf(e),o,a,c,l;return n.svg&&e.getAttribute("transform")?(c=e.transform.baseVal.consolidate().matrix,i=[c.a,c.b,c.c,c.d,c.e,c.f],i.join(",")==="1,0,0,1,0,0"?po:i):(i===po&&!e.offsetParent&&e!==Mr&&!n.svg&&(c=r.display,r.display="block",o=e.parentNode,(!o||!e.offsetParent)&&(l=1,a=e.nextElementSibling,Mr.appendChild(e)),i=Zf(e),c?r.display=c:rr(e,"display"),l&&(a?o.insertBefore(e,a):o?o.appendChild(e):Mr.removeChild(e))),t&&i.length>6?[i[0],i[1],i[4],i[5],i[12],i[13]]:i)},cu=function(e,t,n,r,i,o){var a=e._gsap,c=i||Rh(e,!0),l=a.xOrigin||0,u=a.yOrigin||0,h=a.xOffset||0,d=a.yOffset||0,f=c[0],m=c[1],p=c[2],g=c[3],_=c[4],x=c[5],k=t.split(" "),y=parseFloat(k[0])||0,b=parseFloat(k[1])||0,T,E,w,C;n?c!==po&&(E=f*g-m*p)&&(w=y*(g/E)+b*(-p/E)+(p*x-g*_)/E,C=y*(-m/E)+b*(f/E)-(f*x-m*_)/E,y=w,b=C):(T=i_(e),y=T.x+(~k[0].indexOf("%")?y/100*T.width:y),b=T.y+(~(k[1]||k[0]).indexOf("%")?b/100*T.height:b)),r||r!==!1&&a.smooth?(_=y-l,x=b-u,a.xOffset=h+(_*f+x*p)-_,a.yOffset=d+(_*m+x*g)-x):a.xOffset=a.yOffset=0,a.xOrigin=y,a.yOrigin=b,a.smooth=!!r,a.origin=t,a.originIsAbsolute=!!n,e.style[Dt]="0px 0px",o&&(hs(o,a,"xOrigin",l,y),hs(o,a,"yOrigin",u,b),hs(o,a,"xOffset",h,a.xOffset),hs(o,a,"yOffset",d,a.yOffset)),e.setAttribute("data-svg-origin",y+" "+b)},mo=function(e,t){var n=e._gsap||new qg(e);if("x"in n&&!t&&!n.uncache)return n;var r=e.style,i=n.scaleX<0,o="px",a="deg",c=getComputedStyle(e),l=En(e,Dt)||"0",u,h,d,f,m,p,g,_,x,k,y,b,T,E,w,C,S,R,O,j,V,W,z,U,B,X,K,J,N,L,A,I;return u=h=d=p=g=_=x=k=y=0,f=m=1,n.svg=!!(e.getCTM&&o_(e)),c.translate&&((c.translate!=="none"||c.scale!=="none"||c.rotate!=="none")&&(r[Ye]=(c.translate!=="none"?"translate3d("+(c.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(c.rotate!=="none"?"rotate("+c.rotate+") ":"")+(c.scale!=="none"?"scale("+c.scale.split(" ").join(",")+") ":"")+(c[Ye]!=="none"?c[Ye]:"")),r.scale=r.rotate=r.translate="none"),E=Rh(e,n.svg),n.svg&&(n.uncache?(B=e.getBBox(),l=n.xOrigin-B.x+"px "+(n.yOrigin-B.y)+"px",U=""):U=!t&&e.getAttribute("data-svg-origin"),cu(e,U||l,!!U||n.originIsAbsolute,n.smooth!==!1,E)),b=n.xOrigin||0,T=n.yOrigin||0,E!==po&&(R=E[0],O=E[1],j=E[2],V=E[3],u=W=E[4],h=z=E[5],E.length===6?(f=Math.sqrt(R*R+O*O),m=Math.sqrt(V*V+j*j),p=R||O?br(O,R)*Ls:0,x=j||V?br(j,V)*Ls+p:0,x&&(m*=Math.abs(Math.cos(x*Ir))),n.svg&&(u-=b-(b*R+T*j),h-=T-(b*O+T*V))):(I=E[6],L=E[7],K=E[8],J=E[9],N=E[10],A=E[11],u=E[12],h=E[13],d=E[14],w=br(I,N),g=w*Ls,w&&(C=Math.cos(-w),S=Math.sin(-w),U=W*C+K*S,B=z*C+J*S,X=I*C+N*S,K=W*-S+K*C,J=z*-S+J*C,N=I*-S+N*C,A=L*-S+A*C,W=U,z=B,I=X),w=br(-j,N),_=w*Ls,w&&(C=Math.cos(-w),S=Math.sin(-w),U=R*C-K*S,B=O*C-J*S,X=j*C-N*S,A=V*S+A*C,R=U,O=B,j=X),w=br(O,R),p=w*Ls,w&&(C=Math.cos(w),S=Math.sin(w),U=R*C+O*S,B=W*C+z*S,O=O*C-R*S,z=z*C-W*S,R=U,W=B),g&&Math.abs(g)+Math.abs(p)>359.9&&(g=p=0,_=180-_),f=tt(Math.sqrt(R*R+O*O+j*j)),m=tt(Math.sqrt(z*z+I*I)),w=br(W,z),x=Math.abs(w)>2e-4?w*Ls:0,y=A?1/(A<0?-A:A):0),n.svg&&(U=e.getAttribute("transform"),n.forceCSS=e.setAttribute("transform","")||!c_(En(e,Ye)),U&&e.setAttribute("transform",U))),Math.abs(x)>90&&Math.abs(x)<270&&(i?(f*=-1,x+=p<=0?180:-180,p+=p<=0?180:-180):(m*=-1,x+=x<=0?180:-180)),t=t||n.uncache,n.x=u-((n.xPercent=u&&(!t&&n.xPercent||(Math.round(e.offsetWidth/2)===Math.round(-u)?-50:0)))?e.offsetWidth*n.xPercent/100:0)+o,n.y=h-((n.yPercent=h&&(!t&&n.yPercent||(Math.round(e.offsetHeight/2)===Math.round(-h)?-50:0)))?e.offsetHeight*n.yPercent/100:0)+o,n.z=d+o,n.scaleX=tt(f),n.scaleY=tt(m),n.rotation=tt(p)+a,n.rotationX=tt(g)+a,n.rotationY=tt(_)+a,n.skewX=x+a,n.skewY=k+a,n.transformPerspective=y+o,(n.zOrigin=parseFloat(l.split(" ")[2])||!t&&n.zOrigin||0)&&(r[Dt]=nc(l)),n.xOffset=n.yOffset=0,n.force3D=Ut.force3D,n.renderTransform=n.svg?FP:r_?l_:$P,n.uncache=0,n},nc=function(e){return(e=e.split(" "))[0]+" "+e[1]},ll=function(e,t,n){var r=ft(t);return tt(parseFloat(t)+parseFloat(Ss(e,"x",n+"px",r)))+r},$P=function(e,t){t.z="0px",t.rotationY=t.rotationX="0deg",t.force3D=0,l_(e,t)},$s="0deg",Ei="0px",Fs=") ",l_=function(e,t){var n=t||this,r=n.xPercent,i=n.yPercent,o=n.x,a=n.y,c=n.z,l=n.rotation,u=n.rotationY,h=n.rotationX,d=n.skewX,f=n.skewY,m=n.scaleX,p=n.scaleY,g=n.transformPerspective,_=n.force3D,x=n.target,k=n.zOrigin,y="",b=_==="auto"&&e&&e!==1||_===!0;if(k&&(h!==$s||u!==$s)){var T=parseFloat(u)*Ir,E=Math.sin(T),w=Math.cos(T),C;T=parseFloat(h)*Ir,C=Math.cos(T),o=ll(x,o,E*C*-k),a=ll(x,a,-Math.sin(T)*-k),c=ll(x,c,w*C*-k+k)}g!==Ei&&(y+="perspective("+g+Fs),(r||i)&&(y+="translate("+r+"%, "+i+"%) "),(b||o!==Ei||a!==Ei||c!==Ei)&&(y+=c!==Ei||b?"translate3d("+o+", "+a+", "+c+") ":"translate("+o+", "+a+Fs),l!==$s&&(y+="rotate("+l+Fs),u!==$s&&(y+="rotateY("+u+Fs),h!==$s&&(y+="rotateX("+h+Fs),(d!==$s||f!==$s)&&(y+="skew("+d+", "+f+Fs),(m!==1||p!==1)&&(y+="scale("+m+", "+p+Fs),x.style[Ye]=y||"translate(0, 0)"},FP=function(e,t){var n=t||this,r=n.xPercent,i=n.yPercent,o=n.x,a=n.y,c=n.rotation,l=n.skewX,u=n.skewY,h=n.scaleX,d=n.scaleY,f=n.target,m=n.xOrigin,p=n.yOrigin,g=n.xOffset,_=n.yOffset,x=n.forceCSS,k=parseFloat(o),y=parseFloat(a),b,T,E,w,C;c=parseFloat(c),l=parseFloat(l),u=parseFloat(u),u&&(u=parseFloat(u),l+=u,c+=u),c||l?(c*=Ir,l*=Ir,b=Math.cos(c)*h,T=Math.sin(c)*h,E=Math.sin(c-l)*-d,w=Math.cos(c-l)*d,l&&(u*=Ir,C=Math.tan(l-u),C=Math.sqrt(1+C*C),E*=C,w*=C,u&&(C=Math.tan(u),C=Math.sqrt(1+C*C),b*=C,T*=C)),b=tt(b),T=tt(T),E=tt(E),w=tt(w)):(b=h,w=d,T=E=0),(k&&!~(o+"").indexOf("px")||y&&!~(a+"").indexOf("px"))&&(k=Ss(f,"x",o,"px"),y=Ss(f,"y",a,"px")),(m||p||g||_)&&(k=tt(k+m-(m*b+p*E)+g),y=tt(y+p-(m*T+p*w)+_)),(r||i)&&(C=f.getBBox(),k=tt(k+r/100*C.width),y=tt(y+i/100*C.height)),C="matrix("+b+","+T+","+E+","+w+","+k+","+y+")",f.setAttribute("transform",C),x&&(f.style[Ye]=C)},LP=function(e,t,n,r,i){var o=360,a=ht(i),c=parseFloat(i)*(a&&~i.indexOf("rad")?Ls:1),l=c-r,u=r+l+"deg",h,d;return a&&(h=i.split("_")[1],h==="short"&&(l%=o,l!==l%(o/2)&&(l+=l<0?o:-o)),h==="cw"&&l<0?l=(l+o*qf)%o-~~(l/o)*o:h==="ccw"&&l>0&&(l=(l-o*qf)%o-~~(l/o)*o)),e._pt=d=new Pt(e._pt,t,n,r,l,xP),d.e=u,d.u="deg",e._props.push(n),d},Kf=function(e,t){for(var n in t)e[n]=t[n];return e},jP=function(e,t,n){var r=Kf({},n._gsap),i="perspective,force3D,transformOrigin,svgOrigin",o=n.style,a,c,l,u,h,d,f,m;r.svg?(l=n.getAttribute("transform"),n.setAttribute("transform",""),o[Ye]=t,a=mo(n,1),rr(n,Ye),n.setAttribute("transform",l)):(l=getComputedStyle(n)[Ye],o[Ye]=t,a=mo(n,1),o[Ye]=l);for(c in Qn)l=r[c],u=a[c],l!==u&&i.indexOf(c)<0&&(f=ft(l),m=ft(u),h=f!==m?Ss(n,c,l,m):parseFloat(l),d=parseFloat(u),e._pt=new Pt(e._pt,a,c,h,d-h,iu),e._pt.u=m||0,e._props.push(c));Kf(a,r)};Rt("padding,margin,Width,Radius",function(s,e){var t="Top",n="Right",r="Bottom",i="Left",o=(e<3?[t,n,r,i]:[t+i,t+n,r+n,r+i]).map(function(a){return e<2?s+a:"border"+a+s});tc[e>1?"border"+s:s]=function(a,c,l,u,h){var d,f;if(arguments.length<4)return d=o.map(function(m){return zn(a,m,l)}),f=d.join(" "),f.split(d[0]).length===5?d[0]:f;d=(u+"").split(" "),f={},o.forEach(function(m,p){return f[m]=d[p]=d[p]||d[(p-1)/2|0]}),a.init(c,f,h)}});var u_={name:"css",register:au,targetTest:function(e){return e.style&&e.nodeType},init:function(e,t,n,r,i){var o=this._props,a=e.style,c=n.vars.startAt,l,u,h,d,f,m,p,g,_,x,k,y,b,T,E,w;Sh||au(),this.styles=this.styles||s_(e),w=this.styles.props,this.tween=n;for(p in t)if(p!=="autoRound"&&(u=t[p],!($t[p]&&Hg(p,t,n,r,e,i)))){if(f=typeof u,m=tc[p],f==="function"&&(u=u.call(n,r,e,i),f=typeof u),f==="string"&&~u.indexOf("random(")&&(u=uo(u)),m)m(this,e,p,u,n)&&(E=1);else if(p.substr(0,2)==="--")l=(getComputedStyle(e).getPropertyValue(p)+"").trim(),u+="",gs.lastIndex=0,gs.test(l)||(g=ft(l),_=ft(u)),_?g!==_&&(l=Ss(e,p,l,_)+_):g&&(u+=g),this.add(a,"setProperty",l,u,r,i,0,0,p),o.push(p),w.push(p,0,a[p]);else if(f!=="undefined"){if(c&&p in c?(l=typeof c[p]=="function"?c[p].call(n,r,e,i):c[p],ht(l)&&~l.indexOf("random(")&&(l=uo(l)),ft(l+"")||l==="auto"||(l+=Ut.units[p]||ft(zn(e,p))||""),(l+"").charAt(1)==="="&&(l=zn(e,p))):l=zn(e,p),d=parseFloat(l),x=f==="string"&&u.charAt(1)==="="&&u.substr(0,2),x&&(u=u.substr(2)),h=parseFloat(u),p in kn&&(p==="autoAlpha"&&(d===1&&zn(e,"visibility")==="hidden"&&h&&(d=0),w.push("visibility",0,a.visibility),hs(this,a,"visibility",d?"inherit":"hidden",h?"inherit":"hidden",!h)),p!=="scale"&&p!=="transform"&&(p=kn[p],~p.indexOf(",")&&(p=p.split(",")[0]))),k=p in Qn,k){if(this.styles.save(p),y||(b=e._gsap,b.renderTransform&&!t.parseTransform||mo(e,t.parseTransform),T=t.smoothOrigin!==!1&&b.smooth,y=this._pt=new Pt(this._pt,a,Ye,0,1,b.renderTransform,b,0,-1),y.dep=1),p==="scale")this._pt=new Pt(this._pt,b,"scaleY",b.scaleY,(x?Dr(b.scaleY,x+h):h)-b.scaleY||0,iu),this._pt.u=0,o.push("scaleY",p),p+="X";else if(p==="transformOrigin"){w.push(Dt,0,a[Dt]),u=IP(u),b.svg?cu(e,u,0,T,0,this):(_=parseFloat(u.split(" ")[2])||0,_!==b.zOrigin&&hs(this,b,"zOrigin",b.zOrigin,_),hs(this,a,p,nc(l),nc(u)));continue}else if(p==="svgOrigin"){cu(e,u,1,T,0,this);continue}else if(p in a_){LP(this,b,p,d,x?Dr(d,x+u):u);continue}else if(p==="smoothOrigin"){hs(this,b,"smooth",b.smooth,u);continue}else if(p==="force3D"){b[p]=u;continue}else if(p==="transform"){jP(this,u,e);continue}}else p in a||(p=Zr(p)||p);if(k||(h||h===0)&&(d||d===0)&&!bP.test(u)&&p in a)g=(l+"").substr((d+"").length),h||(h=0),_=ft(u)||(p in Ut.units?Ut.units[p]:g),g!==_&&(d=Ss(e,p,l,_)),this._pt=new Pt(this._pt,k?b:a,p,d,(x?Dr(d,x+h):h)-d,!k&&(_==="px"||p==="zIndex")&&t.autoRound!==!1?kP:iu),this._pt.u=_||0,g!==_&&_!=="%"&&(this._pt.b=l,this._pt.r=wP);else if(p in a)MP.call(this,e,p,l,x?x+u:u);else if(p in e)this.add(e,p,l||e[p],x?x+u:u,r,i);else if(p!=="parseTransform"){yh(p,u);continue}k||(p in a?w.push(p,0,a[p]):w.push(p,1,l||e[p])),o.push(p)}}E&&Qg(this)},render:function(e,t){if(t.tween._time||!Oh())for(var n=t._pt;n;)n.r(e,n.d),n=n._next;else t.styles.revert()},get:zn,aliases:kn,getSetter:function(e,t,n){var r=kn[t];return r&&r.indexOf(",")<0&&(t=r),t in Qn&&t!==Dt&&(e._gsap.x||zn(e,"x"))?n&&Wf===n?t==="scale"?SP:CP:(Wf=n||{})&&(t==="scale"?OP:AP):e.style&&!mh(e.style[t])?TP:~t.indexOf("-")?EP:Eh(e,t)},core:{_removeProperty:rr,_getMatrix:Rh}};It.utils.checkPrefix=Zr;It.core.getStyleSaver=s_;(function(s,e,t,n){var r=Rt(s+","+e+","+t,function(i){Qn[i]=1});Rt(e,function(i){Ut.units[i]="deg",a_[i]=1}),kn[r[13]]=s+","+e,Rt(n,function(i){var o=i.split(":");kn[o[1]]=r[o[0]]})})("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY");Rt("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(s){Ut.units[s]="px"});It.registerPlugin(u_);var Nr=It.registerPlugin(u_)||It;Nr.core.Tween;const h_=s=>{const e=v.useRef(null),{label:t,source:n,target:r,sourceX:i,sourceY:o,sourceZ:a,targetX:c,targetY:l,targetZ:u}=s;return v.useEffect(()=>{if(e.current){const h=e.current;Nr.fromTo(h.material,{linewidth:hf*15},{linewidth:hf,duration:1})}},[e]),fn(()=>{const{selectedNode:h,hoveredNode:d}=ot.getState();if(e.current){const f=e.current,m=h||d;f.visible=!m,(m==null?void 0:m.ref_id)===n||(m==null?void 0:m.ref_id)===r?(f.visible=!0,Nr.to(f.material,{linewidth:6,duration:.5,ease:"power1.out"})):Nr.to(f.material,{linewidth:1,duration:.5,ease:"power1.out"})}}),F.jsxs("group",{children:[F.jsx(up,{ref:e,isLine2:!0,lineWidth:2,name:"line",points:[i,o,a,c,l,u]}),F.jsx(xu,{children:F.jsxs(hu,{anchorX:"center",anchorY:"middle",color:"white",fontSize:10,children:[t,"1"]})})]})};h_.displayName="LineComponent";const VP=v.memo(h_),d_=v.memo(({linksPosition:s})=>{const e=Os(n=>n.dataInitial),{showSelectionGraph:t}=ot(n=>n);return F.jsx("group",{name:"simulation-3d-group__connections",visible:!t,children:e==null?void 0:e.links.map(n=>{const r=s.get(n.ref_id)||{sx:0,sy:0,sz:0,tx:0,ty:0,tz:0};return F.jsx(VP,{label:n.edge_type,source:n.source,sourceX:r.sx,sourceY:r.sy,sourceZ:r.sz,target:n.target,targetX:r.tx,targetY:r.ty,targetZ:r.tz},n.ref_id)})})});d_.displayName="Connections";const zP=({color:s,scale:e})=>F.jsx(xu,{follow:!0,lockX:!1,lockY:!1,lockZ:!1,children:F.jsx(Dp,{color:s,scale:e})}),UP=["#fff","#9747FF","#00887A","#0098A6","#0288D1","#33691E","#465A65","#512DA7","#5C6BC0","#5D4038","#662C00","#689F39","#6B1B00","#750000","#78909C","#7E57C2","#8C6E63","#AA47BC","#BF360C","#C2175B","#EC407A","#EF6C00","#F5511E","#FF9696","#FFC064","#FFCD29","#FFEA60"],BP=()=>{const s=As(),e=Os(i=>i.dataInitial),{normalizedSchemasByType:t}=_o(i=>i),n=ap(),r=v.useMemo(()=>new by(30,2,16,100),[]);return F.jsx(F.Fragment,{children:F.jsxs(k1,{geometry:r,limit:1e3,range:1e3,visible:!s||!0,children:[F.jsx("meshBasicMaterial",{}),e==null?void 0:e.nodes.map(i=>{var c;const a=((c=t[i.node_type])==null?void 0:c.primary_color)??(UP[n.indexOf(i.node_type)]||xe.white);return F.jsx(zP,{color:a,scale:i.scale||1},i.ref_id)})]})})},WP=v.memo(BP);function qP(s){const e=v.useRef(s);v.useEffect(()=>{const t=Object.entries(s).reduce((n,[r,i])=>(e.current[r]!==i&&(n[r]=[e.current[r],i]),n),{});Object.keys(t).length>0&&console.log("Changed props:",t),e.current=s})}const HP=s=>{const e=/(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff]|[\u0023-\u0039]\ufe0f?\u20e3|\u3299|\u3297|\u303d|\u3030|\u24c2|\ud83c[\udd70-\udd71]|\ud83c[\udd7e-\udd7f]|\ud83c\udd8e|\ud83c[\udd91-\udd9a]|\ud83c[\udde6-\uddff]|\ud83c[\ude01-\ude02]|\ud83c\ude1a|\ud83c\ude2f|\ud83c[\ude32-\ude3a]|\ud83c[\ude50-\ude51]|\u203c|\u2049|[\u25aa-\u25ab]|\u25b6|\u25c0|[\u25fb-\u25fe]|\u00a9|\u00ae|\u2122|\u2139|\ud83c\udc04|[\u2600-\u26FF]|\u2b05|\u2b06|\u2b07|\u2b1b|\u2b1c|\u2b50|\u2b55|\u231a|\u231b|\u2328|\u23cf|[\u23e9-\u23f3]|[\u23f8-\u23fa]|\ud83c\udccf|\u2934|\u2935|[\u2190-\u21ff])/g;return s.replace(e,t=>/^[\d*#]$/.test(t)?t:"")},f_={metalness:.9,roughness:0},p_=new rc,m_=p_.load("noimage.jpeg");new ic({...f_,map:m_});const YP=.4;new ic({...f_,map:m_,transparent:!0,opacity:YP});const oa={},GP=s=>{const[e,t]=v.useState(null);return v.useEffect(()=>{var r;if(!s){t(null);return}const n=s;if((r=oa[n])!=null&&r.texture){t(oa[n].texture);return}p_.load(s,i=>{oa[n]={texture:i,material:new ic({map:i})},t(i)},void 0,()=>{t(null)})},[s]),v.useEffect(()=>()=>{e&&(Object.values(oa).some(r=>r.texture===e)||e.dispose())},[e]),{texture:e}};function XP(s){const e=du(s,30),t=e.split(" ");if(t.length<=5)return e;const n=Math.ceil(t.length/3),r=n*2,i=t.slice(0,n).join(" "),o=t.slice(n,r).join(" "),a=t.slice(r).join(" ");return`${i} -${o} -${a}`}const g_=v.memo(s=>{var y,b,T,E;const{node:e,hide:t,ignoreDistance:n,color:r}=s,i=v.useRef(null),o=v.useRef(null),a=v.useRef(null);qP(s);const c=v.useRef(new ge),{texture:l}=GP(((y=e.properties)==null?void 0:y.image_url)||""),{normalizedSchemasByType:u,getNodeKeysByType:h}=_o(w=>w);fn(({camera:w,clock:C})=>{const{selectedNode:S,hoveredNode:R,activeEdge:O}=ot.getState(),j=()=>{const W=c.current.setFromMatrixPosition(o.current.matrixWorld);o.current&&(o.current.visible=n?!0:W.distanceTo(w.position)<1500)};if(e.ref_id===(S==null?void 0:S.ref_id)||e.ref_id===(R==null?void 0:R.ref_id)||(O==null?void 0:O.target)===e.ref_id||(O==null?void 0:O.source)===e.ref_id){o.current&&(o.current.visible=!0);const W=C.getElapsedTime(),z=2,U=W%z/z,B=1+U*2,X=1-U;if(a.current){a.current.visible=!0,a.current.scale.set(B,B,B);const{material:K}=a.current;K instanceof Fh&&(K.opacity=X)}return}a.current&&(a.current.visible=!1),j()});const d=(b=u[e.node_type])==null?void 0:b.primary_color,f=(T=u[e.node_type])==null?void 0:T.icon,m=d??r,g=(f?pp[f]:null)?f:"NodesIcon",_=h(e.node_type)||"",x=_&&(e!=null&&e.properties)?HP(String((e==null?void 0:e.properties[_])||"")):"",k={u_texture:{value:l},u_radius:{value:.5}};return F.jsx(xu,{follow:!0,lockX:!1,lockY:!1,lockZ:!1,name:"billboard",userData:e,children:F.jsxs("mesh",{ref:o,name:e.ref_id,userData:e,visible:!t,children:[F.jsxs("mesh",{ref:a,position:[0,0,-2],children:[F.jsx("ringGeometry",{args:[29,30,32]})," ",F.jsx("meshBasicMaterial",{color:m,opacity:.5,side:pa,transparent:!0})]}),(E=e.properties)!=null&&E.image_url&&l?F.jsx(L_,{args:[10*2,10*2],scale:2,children:F.jsx("shaderMaterial",{fragmentShader:` - uniform sampler2D u_texture; - uniform float u_radius; - varying vec2 vUv; - - void main() { - vec2 center = vec2(0.5, 0.5); // Center of the circle - float dist = distance(vUv, center); - if (dist < u_radius) { - gl_FragColor = texture2D(u_texture, vUv); - } else { - discard; // Discard pixels outside the circle - } - } - `,uniforms:k,vertexShader:` - varying vec2 vUv; - void main() { - vUv = uv; - gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0); - } - `})}):F.jsx(g1,{ref:i,name:"svg",onUpdate:w=>{w.traverse(C=>{C instanceof _p&&(C.material=new Fh({color:r}))})},position:[-15,15,0],scale:2,src:`svg-icons/${g}.svg`,strokeMaterial:{color:"yellow"},userData:e}),x&&F.jsx(hu,{color:r,fillOpacity:1,name:"text",position:[0,-65,0],scale:1,userData:e,...j_,fontSize:20,children:XP(x)})]})})},(s,e)=>s.hide===e.hide&&s.ignoreDistance===e.ignoreDistance&&s.node.ref_id===e.node.ref_id);g_.displayName="TextNode";const Qf={x:20,y:20},__=v.memo(s=>{const{node:e,color:t,index:n,stopFrames:r}=s,i=ot(c=>c.simulation),o=v.useRef(!1),a=v.useRef(null);return fn(({camera:c,size:l})=>{if(!r&&a.current&&i){const u=i.nodes()[n];if(!u)return;if(!o.current){const d=new ge(-1+Qf.x*2/l.width,1-Qf.y*2/l.height,0).unproject(c),f=5,m=d.sub(c.position).normalize(),p=c.position.clone().add(m.multiplyScalar(f));a.current.position.copy(p),a.current.scale.set(.1,.1,.1),a.current.visible=!1}u.fx&&!o.current&&(a.current.visible=!0,o.current=!0,Nr.to(a.current.position,{x:u.fx,y:u.fy,z:u.fz,duration:4,ease:"power2.in"}),Nr.to(a.current.scale,{x:1,y:1,z:1,duration:4.5,ease:"power2.in"}))}}),F.jsxs("mesh",{ref:a,name:"wr2",scale:e.scale||1,userData:e,children:[F.jsx("boxGeometry",{args:[40,40,40]}),F.jsx("meshStandardMaterial",{opacity:0,transparent:!0}),F.jsx(g_,{color:t,ignoreDistance:!1,node:e,scale:e.scale||1},e.ref_id)]},e.ref_id)},(s,e)=>s.node.ref_id===e.node.ref_id);__.displayName="NodeWrapper";const ZP=$e(en)` - text-align: center; - width: ${s=>s.type==="topic"?"auto":`${s.size}px`}; - height: ${s=>s.type==="topic"?"auto":`${s.size}px`}; - outline: 1px solid ${s=>xe.white||s.color}; - outline-offset: 0px; - background: rgba(0, 0, 0, 0.75); - color: ${s=>s.fontColor}; - border-radius: ${s=>`${s.type==="guest"?"100%":"6px"}`}; - font-size: ${s=>`${s.fontSize}px`}; - cursor: pointer; - transition: font-size 0.4s, outline 0.4s; - transform: scale(${s=>s.scale}); - align-items: center; - justify-content: center; - font-family: Barlow; - font-size: 26px; - font-style: normal; - font-weight: 700; - text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); - - &:hover { - outline-offset: 4px; - } - - &.selected { - .badge-wrapper { - top: 0; - } - - font-size: 36px; - - &:hover { - outline-offset: 0px; - } - } - - &.topic { - outline: none; - background: none; - &:hover { - font-size: 36px; - } - white-space: nowrap; - .badge-wrapper { - display: none; - } - } - - .badge-wrapper { - position: absolute; - top: -7px; - left: -14px; - } -`,KP=$e(en)` - text-align: center; - outline: 1px solid ${xe.white}; - outline-offset: 0px; - white-space: nowrap; - padding: 4px; - background: rgba(0, 0, 0, 0.75); - color: ${xe.white}; - border-radius: 6px; - font-size: 20px; - cursor: pointer; - transition: font-size 0.4s, outline 0.4s; - align-items: center; - justify-content: flex-start; - font-family: Barlow; - font-size: 26px; - font-style: normal; - font-weight: 700; - text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); - max-width: auto; - max-height: 100px; - white-space: normal; - font-size: 16px; - - &:hover { - outline-offset: 4px; - } - - &.selected { - .badge-wrapper { - top: 0; - } - - font-size: 36px; - - &:hover { - outline-offset: 0px; - } - } - - &.topic { - outline: none; - background: none; - &:hover { - font-size: 36px; - } - white-space: nowrap; - .badge-wrapper { - display: none; - } - } - - .badge-wrapper { - position: absolute; - top: -7px; - left: -14px; - } -`;$e.img` - background-image: ${({src:s})=>`url(${s})`}; - background-size: contain; - background-repeat: no-repeat; - width: ${s=>s.size}px; - height: ${s=>s.size}px; - border-radius: ${s=>s.borderRadius}; -`;$e.div` - display: flex; - position: absolute; - bottom: -14px; - left: -5px; - width: auto; - justify-content: center; - align-items: center; -`;$e.div` - display: flex; - justify-content: center; - align-items: center; - background: ${xe.transparentBlack}; - border: 2px solid ${s=>s.color}; - color: #fff; - padding: 0 4px; - min-width: 30px; - height: 26px; - font-size: 12px; - font-weight: 500; - border-radius: 6px; - margin-right: 5px; -`;$e.div` - display: flex; - justify-content: center; - align-items: center; - border: 2px solid ${s=>s.color}44; - background: ${xe.transparentBlack}; - padding: 0 4px; - color: ${s=>s.color}; - min-width: 30px; - height: 26px; - font-size: 12px; - font-weight: 500; - border-radius: 6px; - margin-right: 5px; -`;const QP=new ge,JP=({position:s,userData:e,color:t})=>{const n=v.useRef(null),{selectedNode:r,setSelectedNode:i,showSelectionGraph:o,hoveredNode:a,setHoveredNode:c}=ot(fu(f=>f)),l=((e==null?void 0:e.node_type)||"")==="Topic"||!!e.name,u=((e==null?void 0:e.node_type)||"")==="Guest"||((e==null?void 0:e.node_type)||"")==="Person";fn(()=>{if(o&&n.current){const f=QP.set((e==null?void 0:e.x)||0,(e==null?void 0:e.y)||0,(e==null?void 0:e.z)||0);n.current.position.copy(f)}}),v.useEffect(()=>function(){n.current&&n.current.clear()},[n]);const h=v.useMemo(()=>(a==null?void 0:a.ref_id)===(e==null?void 0:e.ref_id),[a==null?void 0:a.ref_id,e==null?void 0:e.ref_id]),d=(r==null?void 0:r.ref_id)===(e==null?void 0:e.ref_id);return l||d&&o||!d?F.jsx("group",{ref:n,position:s,children:F.jsx(yo,{center:!0,sprite:!0,zIndexRange:[0,0],children:l?F.jsxs(KP,{direction:"column",onClick:f=>{f.stopPropagation(),e&&i(e)},onPointerOut:f=>{f.stopPropagation()},onPointerOver:f=>{f.stopPropagation()},children:[F.jsx("div",{className:"badge-wrapper",children:F.jsx(Lh,{type:(e==null?void 0:e.node_type)||""})}),e!=null&&e.name?F.jsx("span",{children:du(e==null?void 0:e.name,20)}):null]}):F.jsxs(ZP,{className:cp(e==null?void 0:e.node_type,{selected:d}),color:t,fontColor:xe.white,fontSize:l?64:20,onClick:f=>{f.stopPropagation(),e&&i(e)},onPointerOut:f=>{f.stopPropagation()},onPointerOver:f=>{f.stopPropagation()},scale:h?1.05:1,selected:!1,size:d?68:40,type:(e==null?void 0:e.node_type)||"",children:[!u&&!l?F.jsx("div",{className:"badge-wrapper",children:F.jsx(Lh,{type:(e==null?void 0:e.node_type)||""})}):null,e!=null&&e.name?e==null?void 0:e.name:F.jsx(B_,{rounded:u,size:d?60:52,src:(e==null?void 0:e.image_url)||"audio_default.svg",type:e==null?void 0:e.node_type})]})})}):null},y_=v.memo(()=>{const{simulation:s,showSelectionGraph:e,selectedNode:t,selectionGraphData:n}=ot(fu(o=>o)),r=mp(),i=v.useMemo(()=>{const o=(s==null?void 0:s.nodes())||[];return(e?n.nodes:o).filter(u=>r.includes((u==null?void 0:u.ref_id)||"")||(t==null?void 0:t.ref_id)===(u==null?void 0:u.ref_id)).slice(0,pE).map(u=>{const h=hp(u.node_type||"",!0),d=new ge((u==null?void 0:u.x)||0,(u==null?void 0:u.y)||0,(u==null?void 0:u.z)||0),f=o.filter(m=>m.ref_id&&mE(m,u)).map(m=>(m==null?void 0:m.ref_id)||"")||[];return F.jsx(JP,{color:h,position:d,relativeIds:f,userData:u},`node-badge-${u.ref_id}`)})},[s,e,n.nodes,r,t==null?void 0:t.ref_id]);return F.jsx(v.Fragment,{children:i.length?i:null},"node-badges")});y_.displayName="RelevanceBadges";const eD=200,tD=["#fff","#9747FF","#00887A","#0098A6","#0288D1","#33691E","#465A65","#512DA7","#5C6BC0","#5D4038","#662C00","#689F39","#6B1B00","#750000","#78909C","#7E57C2","#8C6E63","#AA47BC","#BF360C","#C2175B","#EC407A","#EF6C00","#F5511E","#FF9696","#FFC064","#FFCD29","#FFEA60"],v_=v.memo(()=>{const s=As(),e=W_(),{selectionGraphData:t,showSelectionGraph:n,setHoveredNode:r,setIsHovering:i}=ot(p=>p),o=ap(),a=Os(p=>p.dataInitial),c=go(p=>p.setTranscriptOpen),l=v.useCallback(p=>!!(n&&!t.nodes.find(g=>g.ref_id===p.ref_id)),[n,t]),u=v.useCallback(p=>{const g=p==null?void 0:p[0];g&&(c(!1),g.userData&&(l(g.userData)||ot.getState().setSelectedNode((g==null?void 0:g.userData)||null)))},[c,l]),h=v.useRef(null),d=v.useCallback(p=>{p.stopPropagation(),h.current&&(clearTimeout(h.current),h.current=null),e&&(i(!1),r(null))},[i,r,e]),f=v.useCallback(p=>{var x;const _=p.intersections.map(k=>k.object)[0];if(h.current&&(clearTimeout(h.current),h.current=null),(x=_==null?void 0:_.userData)!=null&&x.ref_id){const k=_.userData;l(k)||(p.stopPropagation(),h.current=setTimeout(()=>{i(!0),r(k)},eD))}},[r,l,i]),m=n&&!!s;return F.jsxs(F.Fragment,{children:[F.jsxs(m1,{filter:p=>p.filter(g=>{var _;return!!((_=g.userData)!=null&&_.ref_id)}),onChange:u,onPointerOut:d,onPointerOver:f,children:[F.jsx("group",{name:"simulation-3d-group__nodes",visible:!m,children:a==null?void 0:a.nodes.map((p,g)=>{const _=tD[o.indexOf(p.node_type)]||xe.white;return F.jsx(__,{color:_,index:g,node:p,scale:p.scale||1,stopFrames:m},p.ref_id)})}),F.jsx("group",{name:"simulation-3d-group__node-points",children:F.jsx(WP,{})})]}),F.jsx(y_,{})]})});v_.displayName="Cubes";const nD={earthRef:null},sD=rp(s=>({...nD,setEarthRef:e=>s({earthRef:e})})),rD=new ge(0,0,0),iD=()=>{const s=v.useRef(null),e=v.useRef(null),{graphStyle:t,showSelectionGraph:n}=ot(a=>a),r=sD(a=>a.setEarthRef),i=Bs("textures/earth/galaxy.png"),o=Bs("textures/earth/clouds.png");return fn(({camera:a})=>{e.current&&e.current.position.copy(a.getWorldPosition(rD))}),v.useLayoutEffect(()=>{s.current&&r(s)},[r]),t!=="earth"||n?null:F.jsxs(F.Fragment,{children:[F.jsxs("mesh",{ref:s,userData:{type:"earth"},children:[F.jsx("sphereGeometry",{args:[sa,200,200]}),F.jsx(oD,{})]}),F.jsxs("mesh",{children:[F.jsx("sphereGeometry",{args:[sa+2,200,200]}),F.jsx("meshStandardMaterial",{alphaMap:o,map:o,transparent:!0})]}),F.jsxs("mesh",{children:[F.jsx("sphereGeometry",{args:[sa*4,200,200]}),F.jsx("meshStandardMaterial",{map:i,opacity:.4,side:pa,transparent:!0})]}),F.jsx("directionalLight",{ref:e,intensity:.9,position:[0,0,sa*3]})]})},oD=()=>{const s=Bs("textures/earth/earth.jpeg"),e=Bs("textures/earth/bump.jpeg"),t=Bs("textures/earth/water.png"),n=v.useMemo(()=>new ic({map:s,bumpMap:e,aoMap:e,roughnessMap:e,metalnessMap:t,toneMapped:!0,roughness:35,metalness:0}),[s,e,t]);return F.jsx("meshStandardMaterial",{...n})},aD="C",cD=256,lD=256,uD={g:"LottieFiles AE 0.1.20"},hD=[{ty:0,nm:"I",sr:1,st:0,op:26,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[128,128,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],w:256,h:256,refId:"comp_0",ind:1},{ty:0,nm:"I",sr:1,st:26,op:52,ip:26,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[128,128,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],w:256,h:256,refId:"comp_1",ind:2},{ty:0,nm:"I",sr:1,st:52,op:78,ip:52,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[128,128,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],w:256,h:256,refId:"comp_2",ind:3},{ty:0,nm:"I",sr:1,st:78,op:108,ip:78,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[128,128,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],w:256,h:256,refId:"comp_3",ind:4}],dD="5.5.7",fD=60,pD=104,mD=0,gD=[{nm:"",id:"comp_0",layers:[{ty:4,nm:"I",sr:1,st:0,op:30,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[128,128,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"T",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,20],[-34.641,0],[0,-20],[34.641,0]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[34.656,.016],[0,20],[-34.641,0],[.016,-19.984]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[44.641,30]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]},{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,30],[-17.32,10],[-17.32,-30],[17.32,-10]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[51.962,10],[17.321,30],[17.321,-10],[51.962,-30]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]},{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,10],[-17.321,30],[-17.321,-10],[17.321,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.32,-9.984],[17.32,10],[17.32,-30],[-17.32,-50.016]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[61.962,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]},{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,10],[-17.32,30],[-17.32,-10],[17.32,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.32,30],[17.32,50],[17.305,10],[-17.32,-10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]},{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,30],[-17.321,10],[-17.321,-30],[17.321,-10]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.321,10],[-51.962,30],[-51.962,-10],[-17.321,-30]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[61.962,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]},{ty:"gr",nm:"T",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,20],[-34.641,0],[0,-20],[34.641,0]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[34.641,0],[0,20],[-34.641,0],[0,-20]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[44.641,70]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:1}]},{nm:"",id:"comp_1",layers:[{ty:4,nm:"R",sr:1,st:0,op:30,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[0,0,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[128,128,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:0}},ef:[],shapes:[],ind:1},{ty:4,nm:"S",sr:1,st:-20,op:32,ip:13,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,30],[-17.32,10],[-17.32,-30],[17.32,-10]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,-10.016],[-17.32,-30],[17.32,-50],[51.961,-30]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:2,parent:1},{ty:4,nm:"T",sr:1,st:-20,op:13,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"T",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,20],[-34.641,0],[0,-20],[34.641,0]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[34.641,0],[.015,-20],[0,20],[34.641,40]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[44.641,30]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:3,parent:1},{ty:4,nm:"S",sr:1,st:-20,op:13,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,30],[-17.32,10],[-17.32,-30],[17.32,-10]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,-10.016],[-17.32,-30],[17.32,-50],[51.961,-30]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:4,parent:1},{ty:4,nm:"F",sr:1,st:-20,op:33,ip:13,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,10],[-17.321,30],[-17.321,-10],[17.321,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.324,30],[-17.34,-9.984],[17.336,-30.016],[17.336,10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[61.962,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:5,parent:1},{ty:4,nm:"T",sr:1,st:-20,op:35,ip:13,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"T",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,20],[-34.641,0],[0,-20],[34.641,0]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[34.641,0],[.015,-20],[0,20],[34.641,40]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[44.641,30]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:6,parent:1},{ty:4,nm:"F",sr:1,st:-20,op:13,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,10],[-17.321,30],[-17.321,-10],[17.321,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.324,30],[-17.34,-9.984],[17.336,-30.016],[17.336,10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[61.962,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:7,parent:1},{ty:4,nm:"F",sr:1,st:-20,op:13,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,10],[-17.32,30],[-17.32,-10],[17.32,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.305,30],[-17.336,-9.984],[17.336,-30.016],[17.32,10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:8,parent:1},{ty:4,nm:"T",sr:1,st:-20,op:32,ip:13,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"T",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,20],[-34.641,0],[0,-20],[34.641,0]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[.016,-20.016],[-34.643,-40],[-34.641,.016],[0,20]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[44.641,70]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:9,parent:1},{ty:4,nm:"S",sr:1,st:-20,op:31,ip:13,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,-10],[17.321,30],[-17.321,10],[-17.321,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,30],[-17.305,50],[-51.961,30],[-17.321,10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[61.962,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:10,parent:1},{ty:4,nm:"F",sr:1,st:-20,op:34,ip:13,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,10],[-17.32,30],[-17.32,-10],[17.32,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.305,30],[-17.336,-9.984],[17.336,-30.016],[17.32,10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:11,parent:1},{ty:4,nm:"S",sr:1,st:-20,op:13,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,-10],[17.321,30],[-17.321,10],[-17.321,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,30],[-17.305,50],[-51.961,30],[-17.321,10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[61.962,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:12,parent:1},{ty:4,nm:"T",sr:1,st:-20,op:13,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"T",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,20],[-34.641,0],[0,-20],[34.641,0]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[.016,-20.016],[-34.643,-40],[-34.641,.016],[0,20]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[44.641,70]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:13,parent:1}]},{nm:"",id:"comp_2",layers:[{ty:4,nm:"R",sr:1,st:0,op:30,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[0,0,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[128,128,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:0}},ef:[],shapes:[],ind:1},{ty:4,nm:"T",sr:1,st:0,op:30,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"T",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,20],[-34.641,0],[0,-20],[34.641,0]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-34.656,.031],[.047,-19.969],[34.652,.031],[0,20]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[44.641,30]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:2,parent:1},{ty:4,nm:"S",sr:1,st:0,op:13,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,30],[-17.32,10],[-17.32,-30],[17.32,-10]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.32,10],[17.32,-9.984],[17.32,-50],[-17.32,-30]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:3,parent:1},{ty:4,nm:"F",sr:1,st:0,op:30,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,10],[-17.321,30],[-17.321,-10],[17.321,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.321,30],[-51.962,10],[-51.962,-30],[-17.321,-10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[61.962,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:4,parent:1},{ty:4,nm:"S",sr:1,st:0,op:30,ip:13,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,30],[-17.32,10],[-17.32,-30],[17.32,-10]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.32,10],[17.32,-9.984],[17.32,-50],[-17.32,-30]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:5,parent:1},{ty:4,nm:"F",sr:1,st:0,op:13,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,10],[-17.32,30],[-17.32,-10],[17.32,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[51.962,30],[17.321,10],[17.321,-30],[51.962,-10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:6,parent:1},{ty:4,nm:"S",sr:1,st:0,op:30,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,30],[-17.321,10],[-17.321,-30],[17.321,-10]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.32,50],[17.32,30],[17.336,-10],[-17.336,10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[61.962,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:7,parent:1},{ty:4,nm:"F",sr:1,st:0,op:30,ip:13,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,10],[-17.32,30],[-17.32,-10],[17.32,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[51.962,30],[17.321,10],[17.321,-30],[51.962,-10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:8,parent:1},{ty:4,nm:"T",sr:1,st:0,op:30,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"T",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,20],[-34.641,0],[0,-20],[34.641,0]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-34.656,0],[.015,-20],[34.656,0],[.012,20.062]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[44.641,70]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:9,parent:1}]},{nm:"",id:"comp_3",layers:[{ty:4,nm:"R",sr:1,st:0,op:30,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[0,0,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[128,128,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:0}},ef:[],shapes:[],ind:1},{ty:4,nm:"S",sr:1,st:0,op:32,ip:13,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,30],[-17.321,10],[-17.321,-30],[17.321,-10]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.336,-10],[-17.32,-30.016],[-51.961,-10],[-17.305,10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[61.962,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:2,parent:1},{ty:4,nm:"T",sr:1,st:0,op:32,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"T",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,20],[-34.641,0],[0,-20],[34.641,0]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[.015,60.016],[-34.642,40],[-34.641,0],[0,20]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[44.641,30]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:3,parent:1},{ty:4,nm:"S",sr:1,st:0,op:13,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.32,10],[-17.32,-30],[17.32,-10],[17.32,30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.312,-10],[-17.313,10],[17.332,30],[51.977,10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:4,parent:1},{ty:4,nm:"F",sr:1,st:0,op:32,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,10],[-17.321,30],[-17.321,-10],[17.321,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.336,-29.984],[17.348,10],[-17.305,30],[-17.305,-9.984]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[61.962,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:5,parent:1},{ty:4,nm:"F",sr:1,st:0,op:13,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,10],[-17.32,30],[-17.32,-10],[17.32,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.336,-30],[17.32,10],[-17.32,30],[-17.336,-10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:6,parent:1},{ty:4,nm:"S",sr:1,st:0,op:13,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,30],[-17.321,10],[-17.321,-30],[17.321,-10]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.336,-10],[-17.32,-30.016],[-51.961,-10],[-17.305,10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[61.962,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:7,parent:1},{ty:4,nm:"T",sr:1,st:0,op:32,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"T",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,20],[-34.641,0],[0,-20],[34.641,0]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[34.641,0],[0,-20],[0,-60.016],[34.641,-40]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[44.641,70]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:8,parent:1},{ty:4,nm:"S",sr:1,st:0,op:32,ip:13,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.32,10],[-17.32,-30],[17.32,-10],[17.32,30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.312,-10],[-17.313,10],[17.332,30],[51.977,10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:9,parent:1},{ty:4,nm:"F",sr:1,st:0,op:32,ip:13,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,10],[-17.32,30],[-17.32,-10],[17.32,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.336,-30],[17.32,10],[-17.32,30],[-17.336,-10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:10,parent:1}]}],_D={nm:aD,h:cD,w:lD,meta:uD,layers:hD,v:dD,fr:fD,op:pD,ip:mD,assets:gD},yD=({meshId:s})=>{const e=v.useRef(null);return v.useEffect(()=>{const t=document.getElementById(`lottie-animation-${s}`);return t&&(e.current=R_.loadAnimation({container:t,animationData:_D,loop:!0,autoplay:!0})),()=>{e.current&&e.current.destroy()}},[s]),F.jsx("div",{id:`lottie-animation-${s}`,style:{width:"2em",height:"2em"}})},ul=()=>Math.floor(Math.random()*2001)-1e3,vD=()=>F.jsx(F.Fragment,{children:["a","b","c"].map(s=>{const e=ul(),t=ul(),n=ul();return F.jsx("mesh",{position:[e,t,n],children:F.jsx(yo,{center:!0,sprite:!0,children:F.jsx(bD,{children:F.jsx(yD,{meshId:s})})})},s)})}),bD=$e.div` - border: 2px solid white; - border-radius: 50%; - display: flex; - align-items: center; - justify-content: center; - color: white; - font-size: 20px; -`,Ci=s=>({close:{backgroundColor:"rgba(48, 51, 66, 1)",borderColor:"#fff",fontColor:"rgba(255, 255, 255, 1)"},focus:{backgroundColor:s?"rgba(255, 255, 255, 0.90);":"rgba(255, 255, 255, 0.90)",borderColor:s?"#FFDB58bb":"#fff",fontColor:"rgba(48, 51, 66, 1)"},menu:{backgroundColor:"#00000066",borderColor:s?"#ffffff66":"#5078f2",fontColor:s?"#ffffff66":"#fff"}}),xD=new ge,b_=v.memo(()=>{var w,C;const s=v.useRef(null),e=go(S=>S.setSidebarOpen),[t,n]=M.useState(null),{open:r}=Fo("editNodeName"),{open:i}=Fo("addEdgeToNode"),{open:o}=Fo("mergeToNode"),{open:a}=Fo("createBounty"),[c]=op(S=>[S.isAdmin]),[l]=Os(S=>[S.addNewNode]),u=As(),{showSelectionGraph:h,selectionGraphData:d,setSelectedNode:f,setShowSelectionGraph:m}=ot(S=>S),p=xy(),g=v.useCallback(async()=>{try{if(u!=null&&u.ref_id){const S=await P_(u==null?void 0:u.ref_id,d.nodes.length||0);S&&l(S)}}catch(S){console.error(S)}},[l,u==null?void 0:u.ref_id,d.nodes.length]);fn(()=>{_()});const _=v.useCallback(()=>{const S=h?d:p;if(s.current){const R=S==null?void 0:S.nodes.find(O=>O.ref_id===(u==null?void 0:u.ref_id));if(R){const O=xD.set(R==null?void 0:R.x,R==null?void 0:R.y,R==null?void 0:R.z);s.current.position.copy(O)}}},[u,h,d,p]),x=v.useMemo(()=>{const S=c?[{key:"control-key-1",colors:Ci(h).focus,icon:F.jsx(X_,{}),left:-80,className:"add",onClick:O=>{n(O.currentTarget)}},{key:"control-key-2",colors:Ci(h).focus,icon:F.jsx(Z_,{}),left:-40,className:"edit",onClick:()=>{r()}}]:[],R=[{key:"control-key-4",colors:Ci(h).focus,icon:F.jsx(D_,{}),left:0,className:"expand",onClick:()=>{const O=!h;m(O),O&&e(!0)}},{key:"control-key-5",colors:Ci(!0).close,icon:F.jsx(dl,{}),left:40,className:"exit",onClick:()=>{g()}},{key:"control-key-6",colors:Ci(!0).close,icon:F.jsx(M_,{}),left:40,className:"exit",onClick:()=>{m(!1),f(null)}}];return[...S,...R].map((O,j)=>({...O,left:-80+j*40}))},[c,h,r,m,e,g,f]);if(!u)return null;const k=()=>{n(null)},y=!!t,b=y?"simple-popover":void 0,T=((w=u==null?void 0:u.node_type)==null?void 0:w.toLowerCase())==="repository",E=!!(u&&((C=u==null?void 0:u.node_type)==null?void 0:C.toLowerCase())==="function");return F.jsx("group",{ref:s,children:F.jsxs(yo,{center:!0,className:"control-panel",onClick:S=>S.stopPropagation(),onKeyDown:S=>S.stopPropagation(),onPointerDown:S=>S.stopPropagation(),onPointerOut:S=>S.stopPropagation(),onPointerOver:S=>S.stopPropagation(),onPointerUp:S=>S.stopPropagation(),sprite:!0,zIndexRange:[16777271,16777272],children:[x.map(S=>F.jsx(wD,{backgroundColor:S.colors.backgroundColor,borderColor:S.colors.borderColor,className:S.className,fontColor:S.colors.fontColor,left:S.left,onClick:R=>{R.stopPropagation(),S.onClick(R)},children:S.icon},S.key)),E&&F.jsx(TD,{left:2,onClick:()=>{a()},children:"Create Test"}),F.jsx(kD,{anchorEl:t,anchorOrigin:{vertical:"bottom",horizontal:"right"},id:b,onClose:k,open:y,transformOrigin:{vertical:"top",horizontal:"right"},children:T?F.jsxs(F.Fragment,{children:[F.jsxs(xr,{"data-testid":"generate_tests",onClick:()=>{k()},children:[F.jsx(Jf,{children:F.jsx(Nh,{"data-testid":"AddCircleIcon"})}),"Generate Tests"]}),F.jsxs(xr,{"data-testid":"add_comments",onClick:()=>{k()},children:[F.jsxs(Jf,{children:[F.jsx(H_,{"data-testid":"DocumentIcon"})," "]}),"Add Comments"]}),F.jsxs(xr,{"data-testid":"review_bugs",onClick:()=>{k()},children:[F.jsx(Y_,{"data-testid":"ConstructionIcon"})," Review Bugs"]}),F.jsxs(xr,{"data-testid":"find_vulnerabilities",onClick:()=>{k()},children:[F.jsx(G_,{"data-testid":"RobotIcon"})," Find Vulnerabilities"]})]}):F.jsxs(F.Fragment,{children:[F.jsxs(xr,{"data-testid":"merge",onClick:()=>{o(),k()},children:[F.jsx(q_,{"data-testid":"MergeIcon"})," Merge"]}),F.jsxs(xr,{"data-testid":"add_edge",onClick:()=>{i(),k()},children:[F.jsx(Nh,{"data-testid":"AddCircleIcon"}),"Add edge"]})]})})]})})});b_.displayName="NodeControls";const wD=$e.div` - position: fixed; - top: -60px; - left: ${s=>-7+s.left}px; - width: 24px; - height: 24px; - - border-radius: 40px; - display: flex; - justify-content: center; - align-items: center; - background: ${s=>s.backgroundColor?s.backgroundColor:"#000000bb"}; - color: ${s=>s.fontColor?s.fontColor:"#ffffff"}; - border-radius: 100%; - font-size: 16px; - cursor: pointer; - transition: opacity 0.4s; - box-shadow: 0px 2px 12px rgba(0, 0, 0, 0.5); -`,xr=$e(en).attrs({direction:"row",px:12,py:8})` - display: flex; - align-items: center; - justify-content: start; - gap: 12px; - cursor: pointer; - background: ${xe.BUTTON1}; - color: ${xe.white}; - - &:hover { - background: ${xe.BUTTON1_HOVER}; - color: ${xe.GRAY3}; - } -`,kD=$e(K_)` - && { - z-index: 9999; - } - .MuiPaper-root { - min-width: 149px; - color: ${xe.GRAY3}; - box-shadow: 0px 1px 6px 0px rgba(0, 0, 0, 0.2); - border-radius: 6px; - z-index: 1; - font-family: Barlow; - font-size: 14px; - font-weight: 500; - background-color: transparent !important; - margin: 2px; - } -`,Jf=$e.div` - display: flex; - align-items: center; - justify-content: start; - - svg { - margin-top: 1px; - width: 12px; - height: 12px; - } -`,TD=$e.div` - position: fixed; - top: 40px; - left: ${s=>-53+s.left}px; - width: 100px; - padding: 6px; - border-radius: 4px; - display: flex; - justify-content: center; - align-items: center; - background: ${xe.createTestButton}; - color: ${xe.black}; - font-size: 14px; - font-family: Barlow; - font-weight: 600; - cursor: pointer; - &:hover { - transform: scale(1.05); - } -`,x_=v.memo(()=>F.jsx(F.Fragment,{children:F.jsx(b_,{})}));x_.displayName="NodeDetailsPanel";const ED=()=>{const{dataInitial:s,isLoadingNew:e,isFetching:t,dataNew:n,resetDataNew:r}=Os(g=>g),i=v.useRef(null),o=v.useRef(!1),{normalizedSchemasByType:a}=_o(g=>g),c=v.useRef(new Map),{setData:l,simulation:u,simulationCreate:h,simulationHelpers:d,graphStyle:f,setGraphRadius:m}=ot(g=>g),p=ot(g=>g.removeSimulation);return v.useEffect(()=>{if(!n)return;const g=n.nodes||[],_=n.links||[],x=structuredClone(g),k=structuredClone(_);if(u){const y=I_.isEqual(n,s);d.addNodesAndLinks(x,k,y)}u||h(x,k),r()},[l,n,u,h,r,d,s]),v.useEffect(()=>{s||p()},[s,p]),v.useEffect(()=>{u&&d.setForces()},[f,d,u]),v.useEffect(()=>{u&&(u.on("tick",()=>{if(!o.current&&u.alpha()<.1){const g=u.nodes().map(k=>new ge(k.x,k.y,k.z)),_=new fl().setFromPoints(g),x=new yp;_.getBoundingSphere(x),Math.min(5e3,x.radius)}}),u.on("end",()=>{const g=u.nodes().map(x=>(x.fx=x.x,x.fy=x.y,x.fz=x.z,new ge(x.x,x.y,x.z)));if(i.current){const x=i.current.getObjectByName("simulation-3d-group__node-points"),k=i.current.getObjectByName("simulation-3d-group__connections");x&&x.children[0].children.forEach((y,b)=>{const T=u.nodes()[b];T&&y.position.set(T.x,T.y,T.z)}),k&&(c.current.clear(),k.children.forEach((y,b)=>{var w;const T=y.children[0],E=y.children[1];if(T instanceof dp){const C=T,S=s==null?void 0:s.links[b];if(S){const R=u.nodes().find(N=>N.ref_id===S.source),O=u.nodes().find(N=>N.ref_id===S.target);if(!R||!O){console.warn(`Missing source or target node for link: ${S==null?void 0:S.ref_id}`);return}const{x:j,y:V,z:W}=R,{x:z,y:U,z:B}=O;c.current.set(S.ref_id,{sx:j,sy:V,sz:W,tx:z,ty:U,tz:B});const X=new ge((j+z)/2,(V+U)/2,(W+B)/2);E.position.set(X.x,X.y,X.z);const K=((w=a[R.node_type])==null?void 0:w.primary_color)||"white";C.geometry.setPositions([j,V,W,z,U,B]);const{material:J}=C;J.color=new pu(K),J.transparent=!0,J.opacity=.3}}}))}const _=new fl().setFromPoints(g);console.log(_)}))},[s,u,m,a]),u?F.jsxs("group",{ref:i,children:[F.jsx(v_,{}),f==="earth"&&F.jsx(iD,{}),(e||t)&&F.jsx(vD,{}),f!=="earth"&&F.jsx(d_,{linksPosition:c.current}),F.jsx(x_,{})]}):null},CD=({fullSize:s=!0})=>{const e=go(t=>t.sidebarIsOpen);return F.jsx(SD,{align:"center",className:cp({"sidebar-is-open":e&&!s}),justify:"center",children:F.jsx(wy,{color:xe.SECONDARY_BLUE,size:64})})},SD=$e(en)` - position: absolute; - left: 0; - right: 0; - bottom: 0; - top: 0; - background-color: ${xe.black}; - z-index: 1; -`,w_=s=>{const e=v.useRef(null),{label:t,sourceX:n,sourceY:r,sourceZ:i,targetX:o,targetY:a,targetZ:c}=s;return F.jsxs("group",{children:[F.jsx(up,{ref:e,color:"blue",isLine2:!0,lineWidth:2,name:"line",points:[n,r,i,o,a,c]}),F.jsx("mesh",{children:F.jsx(hu,{anchorX:"center",anchorY:"middle",color:"white",fontSize:10,children:t})})]})};w_.displayName="Connection";const OD=v.memo(w_),k_=v.memo(({linksPosition:s})=>{const{selectionGraphData:e}=ot(t=>t);return F.jsx("group",{name:"simulation-3d-group__connections",children:e==null?void 0:e.links.map(t=>{const n=s.get(t.ref_id)||{sx:0,sy:0,sz:0,tx:0,ty:0,tz:0};return F.jsx(OD,{label:t.edge_type,sourceX:n.sx,sourceY:n.sy,sourceZ:n.sz,targetX:n.tx,targetY:n.ty,targetZ:n.tz},t.ref_id)})})});k_.displayName="Connections";const AD=({onClick:s,node:e,selected:t,rounded:n=!0})=>{var d;const{normalizedSchemasByType:r,getNodeKeysByType:i}=_o(f=>f),o=ot(f=>f.setSelectedNode),a=(d=r[e.node_type])==null?void 0:d.icon,c=a?pp[a]:null,l=i(e.node_type)||"",u=e!=null&&e.properties?e==null?void 0:e.properties[l]:"",h=u?du(u,30):"";return F.jsx(RD,{align:"center",direction:"row",justify:"flex-start",children:F.jsx(F.Fragment,{children:t?F.jsxs(PD,{rounded:!1,children:[F.jsx(DD,{onClick:()=>o(null),children:F.jsx(Q_,{})}),F.jsx("div",{children:c?F.jsx(c,{}):F.jsx(dl,{})}),F.jsx(ep,{children:h})]}):F.jsxs(F.Fragment,{children:[F.jsx(T_,{onClick:s,rounded:n,children:F.jsx("div",{children:c?F.jsx(c,{}):F.jsx(dl,{})})}),F.jsx(ep,{children:h})]})})})},RD=$e(en)``,ep=$e(en)` - color: ${xe.white}; - margin-left: 16px; - font-weight: 700; -`,T_=$e(en)` - text-align: center; - width: 48px; - height: 48px; - outline: 1px solid ${xe.white}; - outline-offset: 0px; - background: ${xe.BG1}; - color: ${xe.white}; - border-radius: ${s=>`${s.rounded?"50%":"6px"}`}; - cursor: pointer; - transition: font-size 0.4s, outline 0.4s; - align-items: center; - justify-content: center; - font-family: Barlow; - font-size: 24px; - font-style: normal; - font-weight: 700; - text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); - - &:hover { - outline-offset: 4px; - } -`,PD=$e(T_)` - width: 300px; - height: 150px; -`,DD=$e(en)` - position: absolute; - top: -10px; - right: -10px; - width: 24px; - height: 24px; - - border-radius: 40px; - display: flex; - justify-content: center; - align-items: center; - background: black; - color: #ffffff; - border-radius: 100%; - font-size: 16px; - cursor: pointer; - transition: opacity 0.4s; - box-shadow: 0px 2px 12px rgba(0, 0, 0, 0.5); -`,MD=6,E_=v.memo(()=>{const[s,e]=v.useState(null),{dataInitial:t}=Os(m=>m),n=As(),r=v.useRef(null),i=v.useRef(new Map),o=mp().slice(0,MD),a=V_(n==null?void 0:n.ref_id),{normalizedSchemasByType:c}=_o(m=>m),{selectionGraphData:l,setSelectionData:u,setSelectedNode:h,setSelectionGraphRadius:d}=ot(fu(m=>m));v.useEffect(()=>{const m=structuredClone((t==null?void 0:t.nodes)||[]),p=structuredClone((t==null?void 0:t.links)||[]);if(a===(n==null?void 0:n.ref_id))return;const g=m.filter(_=>_.ref_id===(n==null?void 0:n.ref_id)||o.includes((_==null?void 0:_.ref_id)||"")).map(_=>{const x=_.ref_id===(n==null?void 0:n.ref_id)?{fx:0,fy:0,fz:0}:{};return{..._,x:0,y:0,z:0,...x}});if(g){const _=p.filter(x=>g.some(k=>k.ref_id===x.target)&&g.some(k=>k.ref_id===x.source));u({nodes:g,links:_}),e(null),i.current=new Map}},[t,n,o,u,a]),v.useEffect(()=>{if(s||!l.nodes.length)return;const m=structuredClone(l.links),p=J_([]).numDimensions(2).stop().nodes(l.nodes).force("link",ey().links(m).id(g=>g.ref_id).distance(()=>150)).force("radial",ty(500,0,0,0).strength(0)).force("charge",ny().strength(-1e3)).alpha(1).restart();e(p)},[l,s]),v.useEffect(()=>()=>{u({nodes:[],links:[]})},[u]),v.useEffect(()=>{s&&(s.on("tick",()=>{if(!r.current)return;r.current.children.forEach((g,_)=>{const x=s.nodes()[_];x&&g.position.set(x.x,x.y,x.z)}),r.current.getObjectByName("simulation-3d-group__connections").children.forEach((g,_)=>{const x=g.children[0],k=g.children[1];if(x instanceof dp){const y=x,b=l==null?void 0:l.links[_];if(b){const T=s.nodes().find(z=>z.ref_id===b.source),E=s.nodes().find(z=>z.ref_id===b.target);if(!T||!E)return;const{x:w,y:C,z:S}=T,{x:R,y:O,z:j}=E;i.current.set(b.ref_id,{sx:w,sy:C,sz:S,tx:R,ty:O,tz:j});const V=new ge((w+R)/2,(C+O)/2,(S+j)/2);k.position.set(V.x,V.y,V.z),y.geometry.setPositions([w,C,S,R,O,j]);const{material:W}=y;W.color=new pu("white")}}})}),s.on("end",()=>{const m=s.nodes().map(x=>new ge(x.x,x.y,x.z)),p=new fl().setFromPoints(m),g=new yp;p.getBoundingSphere(g);const _=Math.min(5e3,g.radius);d(_)}))},[c,l==null?void 0:l.links,s,d]);const f=v.useCallback(m=>{h(m)},[h]);return F.jsxs("group",{ref:r,name:"simulation-2d-group",children:[l==null?void 0:l.nodes.map(m=>F.jsxs("mesh",{children:[F.jsx(yo,{center:!0,sprite:!0,zIndexRange:[0,0],children:F.jsx(AD,{node:m,onClick:()=>f(m),selected:m.ref_id===(n==null?void 0:n.ref_id)})}),F.jsx("mesh",{})]},m.ref_id)),F.jsx(k_,{linksPosition:i.current})]})});E_.displayName="SelectionDataNodes";const ID=()=>{const s=v.useRef(null),e=ot(n=>n.selectionGraphRadius),[t]=v.useState(.8);return v.useEffect(()=>{s.current&&s.current.setLookAt(fs.x,fs.y,e*2,0,0,0,!0)},[e]),F.jsx(Rp,{ref:s,azimuthRotateSpeed:0,boundaryEnclosesCamera:!0,makeDefault:!0,maxDistance:12e3,minDistance:100,polarRotateSpeed:0,smoothTime:t})},ND=()=>F.jsxs(F.Fragment,{children:[F.jsx(fp,{}),F.jsx(ID,{}),F.jsx(E_,{})]}),tp=()=>F.jsx(yo,{children:F.jsx(h1,{})}),$D=()=>{const{universeColor:s}=nE("universe",{universeColor:xe.black}),e=As();return v.useMemo(()=>e!=null&&e.node_type?hp(e.node_type):fE,[e]),F.jsxs(F.Fragment,{children:[F.jsx("color",{args:[xe.BLUE_PRESS_STATE||s],attach:"transparent"}),F.jsx(fp,{}),F.jsx(ER,{}),F.jsxs(C1,{children:[!1,F.jsx(ED,{})]})]})};let hl=null;const np={aspect:window.innerWidth/window.innerHeight,far:3e4,near:1,position:[Mi.x,Mi.y,Mi.z]},FD=()=>{const[s,e,t]=[ds(c=>c.setIsUserScrollingOnHtmlPanel),ds(c=>c.setIsUserScrolling),ds(c=>c.setUserMovedCamera)],n=Os(c=>c.isFetching),r=go(c=>c.universeQuestionIsOpen),i=As(),o=v.useCallback(c=>{var h;const{target:l}=c,{offsetParent:u}=l;hl&&clearTimeout(hl),(h=u==null?void 0:u.classList)!=null&&h.contains("html-panel")&&u.clientHeight{e(!1),s(!1)},200)},[e,s,t]),a=v.useCallback(c=>N_(c,"threeState"),[]);return F.jsxs(LD,{children:[F.jsxs(v.Suspense,{fallback:null,children:[F.jsx(nm,{hidden:!0,isRoot:!0}),F.jsxs(Dh,{camera:np,frameloop:i?"demand":"always",id:"universe-canvas",onCreated:a,onWheel:o,children:[Ph&&F.jsx(Mh,{position:"top-right",style:{top:"80px"}}),F.jsxs(v.Suspense,{fallback:F.jsx(tp,{}),children:[F.jsx(T1,{}),F.jsx(hd,{}),F.jsx(dd,{}),F.jsx($D,{})]})]}),i?F.jsx(jD,{children:F.jsxs(Dh,{camera:{...np,position:[fs.x,fs.y,fs.z]},id:"selection-canvas",onCreated:({gl:c})=>{c.setClearColor("#000000"),c.setClearAlpha(.8)},children:[Ph&&F.jsx(Mh,{position:"top-right",style:{top:"80px"}}),F.jsxs(v.Suspense,{fallback:F.jsx(tp,{}),children:[F.jsx(hd,{}),F.jsx(dd,{}),F.jsx(ND,{},i.ref_id)]})]})}):null]}),r&&F.jsx(rE,{}),n&&F.jsx(CD,{fullSize:!1}),F.jsx(sy,{})]})},LD=$e(en)` - flex: 1 1 100%; - position: relative; -`,jD=$e(en)` - position: absolute; - inset: 0; -`,OM=v.memo(FD);export{OM as Universe}; diff --git a/build/assets/index-6c442139.js b/build/assets/index-e7d624e0.js similarity index 95% rename from build/assets/index-6c442139.js rename to build/assets/index-e7d624e0.js index 013e596eb..9e23a56bc 100644 --- a/build/assets/index-6c442139.js +++ b/build/assets/index-e7d624e0.js @@ -1,4 +1,4 @@ -import{W as s0,c as r0,r as x,_ as h,j as a,s as c,a as r,F as d,u as _,I as e0,C as o0,l as m0,b as a0,d as n0,e as c0,g as l0,f as h0,h as p0,i as d0,m as f0,k as i0,n as t0,o as y0,T as N,B as G0,Q as b0,p as u0,q as E0,t as A0,v as B0,w as D0}from"./index-3506c528.js";import{P as V0,T as R,u as k0,B as S0,I as g0,N as F0,a as j0,O as w0,A as v0}from"./index-ccbb14cf.js";function P0(i){return i===null?"?":i.toLocaleString("en-US").split(",").join(" ")}const _0=s0` +import{W as s0,c as r0,r as x,_ as h,j as a,s as c,a as r,F as d,u as _,I as e0,C as o0,l as m0,b as a0,d as n0,e as c0,g as l0,f as h0,h as p0,i as d0,m as f0,k as i0,n as t0,o as y0,T as N,B as G0,Q as b0,p as u0,q as E0,t as A0,v as B0,w as D0}from"./index-6541aa03.js";import{P as V0,T as R,u as k0,B as S0,I as g0,N as F0,a as j0,O as w0,A as v0}from"./index-ad617d4b.js";function P0(i){return i===null?"?":i.toLocaleString("en-US").split(",").join(" ")}const _0=s0` html { box-sizing: border-box; } @@ -50,7 +50,7 @@ import{W as s0,c as r0,r as x,_ as h,j as a,s as c,a as r,F as d,u as _,I as e0, border-collapse: collapse; border-spacing: 0; } -`,M0={askedQuestions:null,askedQuestionsAnswers:null,hasQuestionInProgress:!1,hasTeachingInProgress:!1,hasInstagraphInProgress:!1,teachMeAnswer:null,instgraphAnswser:null},C0=r0(i=>({...M0,setAskedQuestion:k=>i(e=>({askedQuestions:[...e.askedQuestions||[],k],hasQuestionInProgress:!0})),setAskedQuestionAnswer:k=>i(e=>({askedQuestionsAnswers:[...e.askedQuestionsAnswers||[],k],hasQuestionInProgress:!1})),setHasQuestionInProgress:k=>i({hasQuestionInProgress:k}),setHasTeachingInProgress:k=>i({hasTeachingInProgress:k}),setHasInstagraphInProgress:k=>i({hasInstagraphInProgress:k}),setTeachMeAnswer:k=>i({hasTeachingInProgress:!1,teachMeAnswer:k}),setInstagraphAnswer:k=>{var e,n,o,y;(e=k==null?void 0:k.instagraph)!=null&&e.edges&&((n=k==null?void 0:k.instagraph)!=null&&n.nodes)&&i({hasInstagraphInProgress:!1,instgraphAnswser:{edges:(o=k==null?void 0:k.instagraph)==null?void 0:o.edges,nodes:(y=k==null?void 0:k.instagraph)==null?void 0:y.nodes}})}})),T0="0.1.106",I0=x.lazy(()=>h(()=>import("./index-75c1ca4f.js"),["assets/index-75c1ca4f.js","assets/index-3506c528.js","assets/index-b4d03b7b.css","assets/index-ccbb14cf.js","assets/ClipLoader-273b2bbd.js","assets/Tabs-53998bef.js","assets/createSvgIcon-0fd508c0.js"]).then(({SettingsModal:i})=>({default:i}))),z0=x.lazy(()=>h(()=>import("./index-ec018768.js"),["assets/index-ec018768.js","assets/index-3506c528.js","assets/index-b4d03b7b.css","assets/index-ccbb14cf.js","assets/ClipLoader-273b2bbd.js"]).then(({AddContentModal:i})=>({default:i}))),L0=x.lazy(()=>h(()=>import("./index-d713bacb.js"),["assets/index-d713bacb.js","assets/index-3506c528.js","assets/index-b4d03b7b.css","assets/index-ccbb14cf.js","assets/ClipLoader-273b2bbd.js","assets/index-90ded230.js","assets/three.module-10ab52a5.js","assets/index-1575e121.js","assets/index-d54cb162.js","assets/Stack-7521353f.js","assets/createSvgIcon-0fd508c0.js","assets/TextareaAutosize-e8dfc0e6.js","assets/index-64f1c910.js"]).then(({AddItemModal:i})=>({default:i}))),N0=x.lazy(()=>h(()=>import("./index-8c64b2dc.js"),["assets/index-8c64b2dc.js","assets/index-3506c528.js","assets/index-b4d03b7b.css","assets/index-ccbb14cf.js","assets/constants-f759a65e.js","assets/ClipLoader-273b2bbd.js","assets/index-1575e121.js","assets/index-d54cb162.js","assets/Stack-7521353f.js","assets/createSvgIcon-0fd508c0.js","assets/TextareaAutosize-e8dfc0e6.js","assets/index-54853042.js","assets/Typography-7897fa03.js","assets/Tabs-53998bef.js"]).then(({SourcesTableModal:i})=>({default:i}))),R0=x.lazy(()=>h(()=>import("./index-b5c638db.js"),["assets/index-b5c638db.js","assets/index-3506c528.js","assets/index-b4d03b7b.css","assets/index-ccbb14cf.js","assets/index-d54cb162.js","assets/Skeleton-c3abb4f1.js","assets/ClipLoader-273b2bbd.js"]).then(({EditNodeNameModal:i})=>({default:i}))),O0=x.lazy(()=>h(()=>import("./index-1c3cbad2.js"),["assets/index-1c3cbad2.js","assets/index-3506c528.js","assets/index-b4d03b7b.css","assets/index-ccbb14cf.js","assets/Skeleton-c3abb4f1.js","assets/ClipLoader-273b2bbd.js"]).then(({RemoveNodeModal:i})=>({default:i}))),$0=x.lazy(()=>h(()=>import("./index-c8b2a94e.js"),["assets/index-c8b2a94e.js","assets/index-3506c528.js","assets/index-b4d03b7b.css","assets/index-ccbb14cf.js","assets/index-1575e121.js","assets/index-d54cb162.js","assets/Stack-7521353f.js","assets/createSvgIcon-0fd508c0.js","assets/TextareaAutosize-e8dfc0e6.js","assets/constants-f759a65e.js","assets/ClipLoader-273b2bbd.js"]).then(({AddNodeEdgeModal:i})=>({default:i}))),q0=x.lazy(()=>h(()=>import("./index-501d0152.js"),["assets/index-501d0152.js","assets/index-3506c528.js","assets/index-b4d03b7b.css","assets/index-ccbb14cf.js","assets/index-54853042.js","assets/constants-f759a65e.js","assets/index-1575e121.js","assets/index-d54cb162.js","assets/Stack-7521353f.js","assets/createSvgIcon-0fd508c0.js","assets/TextareaAutosize-e8dfc0e6.js","assets/ClipLoader-273b2bbd.js"]).then(({MergeNodeModal:i})=>({default:i}))),Q0=x.lazy(()=>h(()=>import("./index-07c7bb26.js"),["assets/index-07c7bb26.js","assets/index-3506c528.js","assets/index-b4d03b7b.css","assets/index-90ded230.js","assets/three.module-10ab52a5.js","assets/ClipLoader-273b2bbd.js","assets/index-ccbb14cf.js","assets/index-1575e121.js","assets/index-d54cb162.js","assets/Stack-7521353f.js","assets/createSvgIcon-0fd508c0.js","assets/TextareaAutosize-e8dfc0e6.js","assets/index-64f1c910.js"]).then(({ChangeNodeTypeModal:i})=>({default:i}))),U0=x.lazy(()=>h(()=>import("./index-578f4f7c.js"),["assets/index-578f4f7c.js","assets/index-3506c528.js","assets/index-b4d03b7b.css","assets/index-1575e121.js","assets/index-d54cb162.js","assets/Stack-7521353f.js","assets/index-ccbb14cf.js","assets/createSvgIcon-0fd508c0.js","assets/TextareaAutosize-e8dfc0e6.js","assets/ClipLoader-273b2bbd.js","assets/isPlainObject-9e89c04f.js","assets/Typography-7897fa03.js","assets/index-c106f68f.js","assets/Tabs-53998bef.js","assets/index-90ded230.js","assets/three.module-10ab52a5.js","assets/index-b1ebd2b7.js"]).then(({BlueprintModal:i})=>({default:i}))),W0=x.lazy(()=>h(()=>import("./index-87e08d45.js"),["assets/index-87e08d45.js","assets/index-3506c528.js","assets/index-b4d03b7b.css","assets/index-ccbb14cf.js"]).then(({UserFeedBackModal:i})=>({default:i}))),H0=x.lazy(()=>h(()=>import("./index-12606cd8.js"),["assets/index-12606cd8.js","assets/index-3506c528.js","assets/index-b4d03b7b.css","assets/index-ccbb14cf.js","assets/index-1575e121.js","assets/index-d54cb162.js","assets/Stack-7521353f.js","assets/createSvgIcon-0fd508c0.js","assets/TextareaAutosize-e8dfc0e6.js"]).then(({CreateBountyModal:i})=>({default:i}))),Y0=x.lazy(()=>h(()=>import("./index-3506c528.js").then(i=>i.ca),["assets/index-3506c528.js","assets/index-b4d03b7b.css"]).then(({OnboardingModal:i})=>({default:i}))),J0=x.lazy(()=>h(()=>import("./index-831eec8c.js"),["assets/index-831eec8c.js","assets/index-3506c528.js","assets/index-b4d03b7b.css","assets/index-ccbb14cf.js"]).then(({BriefDescription:i})=>({default:i}))),K0=()=>a.jsxs(a.Fragment,{children:[a.jsx(L0,{}),a.jsx(z0,{}),a.jsx(I0,{}),a.jsx(R0,{}),a.jsx(O0,{}),a.jsx(N0,{}),a.jsx($0,{}),a.jsx(Q0,{}),a.jsx(U0,{}),a.jsx(q0,{}),a.jsx(W0,{}),a.jsx(H0,{}),a.jsx(Y0,{}),a.jsx(J0,{})]}),X0=()=>{const[i,k]=x.useState(null),{runningProjectMessages:e}=_(m=>m),n=m=>{k(m.currentTarget)},o=()=>{k(null)},y=!!i,u=y?"simple-popover":void 0;return e.length?a.jsxs(Z0,{ml:8,children:[a.jsx(ia,{onClick:n,children:a.jsxs(R,{content:"Messages",margin:"18px",children:[a.jsx("div",{className:"icon",children:a.jsx(e0,{})}),a.jsx("div",{className:"text",children:a.jsx("p",{children:e.length})})]})}),a.jsxs(ta,{anchorEl:i,anchorOrigin:{vertical:"bottom",horizontal:"right"},id:u,onClose:o,open:y,children:[a.jsx(x0,{onClick:o,children:a.jsx(o0,{})}),a.jsx(aa,{p:16,children:e.map(m=>a.jsx("p",{className:"item",children:m},m))})]})]}):null},Z0=c(d).attrs({align:"center",direction:"row",grow:0,justify:"flex-start"})``,aa=c(d)` +`,M0={askedQuestions:null,askedQuestionsAnswers:null,hasQuestionInProgress:!1,hasTeachingInProgress:!1,hasInstagraphInProgress:!1,teachMeAnswer:null,instgraphAnswser:null},C0=r0(i=>({...M0,setAskedQuestion:k=>i(e=>({askedQuestions:[...e.askedQuestions||[],k],hasQuestionInProgress:!0})),setAskedQuestionAnswer:k=>i(e=>({askedQuestionsAnswers:[...e.askedQuestionsAnswers||[],k],hasQuestionInProgress:!1})),setHasQuestionInProgress:k=>i({hasQuestionInProgress:k}),setHasTeachingInProgress:k=>i({hasTeachingInProgress:k}),setHasInstagraphInProgress:k=>i({hasInstagraphInProgress:k}),setTeachMeAnswer:k=>i({hasTeachingInProgress:!1,teachMeAnswer:k}),setInstagraphAnswer:k=>{var e,n,o,y;(e=k==null?void 0:k.instagraph)!=null&&e.edges&&((n=k==null?void 0:k.instagraph)!=null&&n.nodes)&&i({hasInstagraphInProgress:!1,instgraphAnswser:{edges:(o=k==null?void 0:k.instagraph)==null?void 0:o.edges,nodes:(y=k==null?void 0:k.instagraph)==null?void 0:y.nodes}})}})),T0="0.1.106",I0=x.lazy(()=>h(()=>import("./index-0cbd2958.js"),["assets/index-0cbd2958.js","assets/index-6541aa03.js","assets/index-b4d03b7b.css","assets/index-ad617d4b.js","assets/ClipLoader-708ab7a4.js","assets/Tabs-31512595.js","assets/createSvgIcon-0b5f6bf4.js"]).then(({SettingsModal:i})=>({default:i}))),z0=x.lazy(()=>h(()=>import("./index-8a795fb2.js"),["assets/index-8a795fb2.js","assets/index-6541aa03.js","assets/index-b4d03b7b.css","assets/index-ad617d4b.js","assets/ClipLoader-708ab7a4.js"]).then(({AddContentModal:i})=>({default:i}))),L0=x.lazy(()=>h(()=>import("./index-3240d88e.js"),["assets/index-3240d88e.js","assets/index-6541aa03.js","assets/index-b4d03b7b.css","assets/index-ad617d4b.js","assets/ClipLoader-708ab7a4.js","assets/index-90ded230.js","assets/three.module-10ab52a5.js","assets/index-bb4d07d0.js","assets/index-8f946e20.js","assets/Stack-bcf44d60.js","assets/createSvgIcon-0b5f6bf4.js","assets/TextareaAutosize-387bd327.js","assets/index-64f1c910.js"]).then(({AddItemModal:i})=>({default:i}))),N0=x.lazy(()=>h(()=>import("./index-00326e4f.js"),["assets/index-00326e4f.js","assets/index-6541aa03.js","assets/index-b4d03b7b.css","assets/index-ad617d4b.js","assets/constants-71fc61fd.js","assets/ClipLoader-708ab7a4.js","assets/index-bb4d07d0.js","assets/index-8f946e20.js","assets/Stack-bcf44d60.js","assets/createSvgIcon-0b5f6bf4.js","assets/TextareaAutosize-387bd327.js","assets/index-d58befe2.js","assets/Typography-0c02c7d4.js","assets/Tabs-31512595.js"]).then(({SourcesTableModal:i})=>({default:i}))),R0=x.lazy(()=>h(()=>import("./index-4241a17b.js"),["assets/index-4241a17b.js","assets/index-6541aa03.js","assets/index-b4d03b7b.css","assets/index-ad617d4b.js","assets/index-8f946e20.js","assets/Skeleton-851daffa.js","assets/ClipLoader-708ab7a4.js"]).then(({EditNodeNameModal:i})=>({default:i}))),O0=x.lazy(()=>h(()=>import("./index-b8439fd8.js"),["assets/index-b8439fd8.js","assets/index-6541aa03.js","assets/index-b4d03b7b.css","assets/index-ad617d4b.js","assets/Skeleton-851daffa.js","assets/ClipLoader-708ab7a4.js"]).then(({RemoveNodeModal:i})=>({default:i}))),$0=x.lazy(()=>h(()=>import("./index-5207a9c5.js"),["assets/index-5207a9c5.js","assets/index-6541aa03.js","assets/index-b4d03b7b.css","assets/index-ad617d4b.js","assets/index-bb4d07d0.js","assets/index-8f946e20.js","assets/Stack-bcf44d60.js","assets/createSvgIcon-0b5f6bf4.js","assets/TextareaAutosize-387bd327.js","assets/constants-71fc61fd.js","assets/ClipLoader-708ab7a4.js"]).then(({AddNodeEdgeModal:i})=>({default:i}))),q0=x.lazy(()=>h(()=>import("./index-fcaf3d10.js"),["assets/index-fcaf3d10.js","assets/index-6541aa03.js","assets/index-b4d03b7b.css","assets/index-ad617d4b.js","assets/index-d58befe2.js","assets/constants-71fc61fd.js","assets/index-bb4d07d0.js","assets/index-8f946e20.js","assets/Stack-bcf44d60.js","assets/createSvgIcon-0b5f6bf4.js","assets/TextareaAutosize-387bd327.js","assets/ClipLoader-708ab7a4.js"]).then(({MergeNodeModal:i})=>({default:i}))),Q0=x.lazy(()=>h(()=>import("./index-0241105d.js"),["assets/index-0241105d.js","assets/index-6541aa03.js","assets/index-b4d03b7b.css","assets/index-90ded230.js","assets/three.module-10ab52a5.js","assets/ClipLoader-708ab7a4.js","assets/index-ad617d4b.js","assets/index-bb4d07d0.js","assets/index-8f946e20.js","assets/Stack-bcf44d60.js","assets/createSvgIcon-0b5f6bf4.js","assets/TextareaAutosize-387bd327.js","assets/index-64f1c910.js"]).then(({ChangeNodeTypeModal:i})=>({default:i}))),U0=x.lazy(()=>h(()=>import("./index-d5562a09.js"),["assets/index-d5562a09.js","assets/index-6541aa03.js","assets/index-b4d03b7b.css","assets/index-bb4d07d0.js","assets/index-8f946e20.js","assets/Stack-bcf44d60.js","assets/index-ad617d4b.js","assets/createSvgIcon-0b5f6bf4.js","assets/TextareaAutosize-387bd327.js","assets/ClipLoader-708ab7a4.js","assets/isPlainObject-5d028b0a.js","assets/Typography-0c02c7d4.js","assets/index-049c9db0.js","assets/Tabs-31512595.js","assets/index-90ded230.js","assets/three.module-10ab52a5.js","assets/index-6b78adda.js"]).then(({BlueprintModal:i})=>({default:i}))),W0=x.lazy(()=>h(()=>import("./index-ecdcb3cc.js"),["assets/index-ecdcb3cc.js","assets/index-6541aa03.js","assets/index-b4d03b7b.css","assets/index-ad617d4b.js"]).then(({UserFeedBackModal:i})=>({default:i}))),H0=x.lazy(()=>h(()=>import("./index-8bfad94c.js"),["assets/index-8bfad94c.js","assets/index-6541aa03.js","assets/index-b4d03b7b.css","assets/index-ad617d4b.js","assets/index-bb4d07d0.js","assets/index-8f946e20.js","assets/Stack-bcf44d60.js","assets/createSvgIcon-0b5f6bf4.js","assets/TextareaAutosize-387bd327.js"]).then(({CreateBountyModal:i})=>({default:i}))),Y0=x.lazy(()=>h(()=>import("./index-6541aa03.js").then(i=>i.ca),["assets/index-6541aa03.js","assets/index-b4d03b7b.css"]).then(({OnboardingModal:i})=>({default:i}))),J0=x.lazy(()=>h(()=>import("./index-badf8d31.js"),["assets/index-badf8d31.js","assets/index-6541aa03.js","assets/index-b4d03b7b.css","assets/index-ad617d4b.js"]).then(({BriefDescription:i})=>({default:i}))),K0=()=>a.jsxs(a.Fragment,{children:[a.jsx(L0,{}),a.jsx(z0,{}),a.jsx(I0,{}),a.jsx(R0,{}),a.jsx(O0,{}),a.jsx(N0,{}),a.jsx($0,{}),a.jsx(Q0,{}),a.jsx(U0,{}),a.jsx(q0,{}),a.jsx(W0,{}),a.jsx(H0,{}),a.jsx(Y0,{}),a.jsx(J0,{})]}),X0=()=>{const[i,k]=x.useState(null),{runningProjectMessages:e}=_(m=>m),n=m=>{k(m.currentTarget)},o=()=>{k(null)},y=!!i,u=y?"simple-popover":void 0;return e.length?a.jsxs(Z0,{ml:8,children:[a.jsx(ia,{onClick:n,children:a.jsxs(R,{content:"Messages",margin:"18px",children:[a.jsx("div",{className:"icon",children:a.jsx(e0,{})}),a.jsx("div",{className:"text",children:a.jsx("p",{children:e.length})})]})}),a.jsxs(ta,{anchorEl:i,anchorOrigin:{vertical:"bottom",horizontal:"right"},id:u,onClose:o,open:y,children:[a.jsx(x0,{onClick:o,children:a.jsx(o0,{})}),a.jsx(aa,{p:16,children:e.map(m=>a.jsx("p",{className:"item",children:m},m))})]})]}):null},Z0=c(d).attrs({align:"center",direction:"row",grow:0,justify:"flex-start"})``,aa=c(d)` max-height: 50vh; max-width: 30vw; background: transparent; @@ -360,4 +360,4 @@ import{W as s0,c as r0,r as x,_ as h,j as a,s as c,a as r,F as d,u as _,I as e0, color: ${r.white}; font-size: 12px; opacity: 0.5; -`,_a=x.lazy(()=>h(()=>import("./index-c72c0e72.js"),["assets/index-c72c0e72.js","assets/index-3506c528.js","assets/index-b4d03b7b.css","assets/index-ccbb14cf.js"]).then(({MainToolbar:i})=>({default:i}))),Ma=x.lazy(()=>h(()=>import("./index-df640694.js"),["assets/index-df640694.js","assets/index-3506c528.js","assets/index-b4d03b7b.css","assets/index-b1ebd2b7.js","assets/three.module-10ab52a5.js","assets/index-c106f68f.js","assets/index-ccbb14cf.js","assets/TextareaAutosize-e8dfc0e6.js","assets/index-d54cb162.js","assets/index-27744ada.js","assets/ClipLoader-273b2bbd.js"]).then(({Universe:i})=>({default:i}))),Ca=x.lazy(()=>h(()=>import("./index-44c74031.js").then(i=>i.i),["assets/index-44c74031.js","assets/index-3506c528.js","assets/index-b4d03b7b.css","assets/index-ccbb14cf.js","assets/ClipLoader-273b2bbd.js","assets/Skeleton-c3abb4f1.js","assets/Stack-7521353f.js","assets/index-d54cb162.js","assets/isPlainObject-9e89c04f.js","assets/Typography-7897fa03.js","assets/createSvgIcon-0fd508c0.js","assets/index-831eec8c.js","assets/index-c106f68f.js","assets/index-27744ada.js"]).then(({SideBar:i})=>({default:i}))),Ta=()=>{const[i]=u0(),k=i.get("q"),{setBudget:e,setNodeCount:n}=a0(t=>t),o=x.useRef(null),y=x.useRef(null),{setSidebarOpen:u,currentSearch:m,setCurrentSearch:V,setRelevanceSelected:M,setTranscriptOpen:C,universeQuestionIsOpen:T,setUniverseQuestionIsOpen:g}=i0(t=>t),I=C0(t=>t.setTeachMeAnswer),{fetchData:F,setCategoryFilter:j,setAbortRequests:w,addNewNode:s,splashDataLoading:p,runningProjectId:f,setRunningProjectMessages:B,isFetching:D,resetData:S}=_(t=>t),{setAiSummaryAnswer:G,getKeyExist:O,aiRefId:z}=t0(t=>t),v=k0(),[$,E]=E0(t=>[t.realtimeGraphFeatureFlag,t.chatInterfaceFeatureFlag]),l=j0(),q=A0({mode:"onChange"}),{setValue:Q}=q;x.useEffect(()=>{Q("search",k??""),C(!1),v(null),M(!1),V(k??""),I(""),j(null)},[k,j,V,M,v,I,C,Q]),x.useEffect(()=>{const t=async()=>{await F(e,w),u(!0),m?await D0(e):v(null)};S(),t()},[m,F,e,w,u,v,S]);const U=x.useCallback(()=>{n("INCREMENT")},[n]),W=x.useCallback(t=>{D||(o.current||(o.current={nodes:[],edges:[]}),t.edges&&o.current.edges.push(...t.edges),t.nodes&&o.current.nodes.push(...t.nodes),y.current&&clearTimeout(y.current),y.current=setTimeout(()=>{if(o.current){const{nodes:b,edges:A}=o.current,P={nodes:b,edges:A};o.current={nodes:[],edges:[]},s(P)}},3e3))},[s,D]),H=x.useCallback(t=>{t.ref_id&&G(t.ref_id,{answer:t.answer,answerLoading:!1})},[G]),Y=x.useCallback(t=>{t.ref_id&&G(t.ref_id,{audio_en:t.audio_EN})},[G]),J=x.useCallback(t=>{t.ref_id&&G(t.ref_id,{questions:t.relevant_questions.map(b=>b.question),questionsLoading:!1})},[G]),K=x.useCallback(t=>{t.ref_id&&G(t.ref_id,{sources:t.sources.map(b=>b.ref_id),sourcesLoading:!1})},[G]),X=x.useCallback(t=>{t.question&&O(z)&&G(z,{answerLoading:!1,entities:t.entities})},[G,O,z]);return x.useEffect(()=>(l&&(l.connect(),l.on("connect_error",t=>{console.error("Socket connection error:",t)}),l.on("newnode",U),E&&l.on("extractedentitieshook",X),E&&l.on("askquestionhook",H),E&&l.on("relevantquestionshook",J),E&&l.on("answersourceshook",K),$&&l.on("new_node_created",W),E&&l.on("answeraudiohook",Y)),()=>{l&&l.off()}),[l,U,W,$,H,E,J,K,X,Y]),x.useEffect(()=>{},[f,B]),x.useEffect(()=>{if(f)try{l==null||l.emit("update_project_id",{id:f})}catch(t){console.error(t)}},[f,l]),x.useEffect(()=>{p||E&&g()},[g,p,E]),a.jsxs(a.Fragment,{children:[a.jsx(_0,{}),a.jsx(Fa,{}),a.jsx(x.Suspense,{fallback:a.jsx("div",{children:"Loading..."}),children:p?null:a.jsxs(va,{direction:"row",children:[a.jsxs(B0,{...q,children:[a.jsx(_a,{}),!T&&a.jsx(Ca,{}),a.jsx(Ma,{}),a.jsx(w0,{}),a.jsx(Ba,{}),a.jsxs(Pa,{children:["v",T0]}),a.jsx(v0,{})]}),a.jsx(K0,{}),a.jsx(wa,{})]})})]})},La=Object.freeze(Object.defineProperty({__proto__:null,App:Ta},Symbol.toStringTag,{value:"Module"}));export{P0 as f,La as i}; +`,_a=x.lazy(()=>h(()=>import("./index-82597361.js"),["assets/index-82597361.js","assets/index-6541aa03.js","assets/index-b4d03b7b.css","assets/index-ad617d4b.js"]).then(({MainToolbar:i})=>({default:i}))),Ma=x.lazy(()=>h(()=>import("./index-8001dd73.js"),["assets/index-8001dd73.js","assets/index-6541aa03.js","assets/index-b4d03b7b.css","assets/index-6b78adda.js","assets/three.module-10ab52a5.js","assets/index-049c9db0.js","assets/index-ad617d4b.js","assets/TextareaAutosize-387bd327.js","assets/index-070f6d98.js","assets/ClipLoader-708ab7a4.js"]).then(({Universe:i})=>({default:i}))),Ca=x.lazy(()=>h(()=>import("./index-0c54fe39.js").then(i=>i.i),["assets/index-0c54fe39.js","assets/index-6541aa03.js","assets/index-b4d03b7b.css","assets/index-ad617d4b.js","assets/ClipLoader-708ab7a4.js","assets/Skeleton-851daffa.js","assets/Stack-bcf44d60.js","assets/index-8f946e20.js","assets/isPlainObject-5d028b0a.js","assets/Typography-0c02c7d4.js","assets/createSvgIcon-0b5f6bf4.js","assets/index-badf8d31.js","assets/index-049c9db0.js","assets/index-070f6d98.js"]).then(({SideBar:i})=>({default:i}))),Ta=()=>{const[i]=u0(),k=i.get("q"),{setBudget:e,setNodeCount:n}=a0(t=>t),o=x.useRef(null),y=x.useRef(null),{setSidebarOpen:u,currentSearch:m,setCurrentSearch:V,setRelevanceSelected:M,setTranscriptOpen:C,universeQuestionIsOpen:T,setUniverseQuestionIsOpen:g}=i0(t=>t),I=C0(t=>t.setTeachMeAnswer),{fetchData:F,setCategoryFilter:j,setAbortRequests:w,addNewNode:s,splashDataLoading:p,runningProjectId:f,setRunningProjectMessages:B,isFetching:D,resetData:S}=_(t=>t),{setAiSummaryAnswer:G,getKeyExist:O,aiRefId:z}=t0(t=>t),v=k0(),[$,E]=E0(t=>[t.realtimeGraphFeatureFlag,t.chatInterfaceFeatureFlag]),l=j0(),q=A0({mode:"onChange"}),{setValue:Q}=q;x.useEffect(()=>{Q("search",k??""),C(!1),v(null),M(!1),V(k??""),I(""),j(null)},[k,j,V,M,v,I,C,Q]),x.useEffect(()=>{const t=async()=>{await F(e,w),u(!0),m?await D0(e):v(null)};S(),t()},[m,F,e,w,u,v,S]);const U=x.useCallback(()=>{n("INCREMENT")},[n]),W=x.useCallback(t=>{D||(o.current||(o.current={nodes:[],edges:[]}),t.edges&&o.current.edges.push(...t.edges),t.nodes&&o.current.nodes.push(...t.nodes),y.current&&clearTimeout(y.current),y.current=setTimeout(()=>{if(o.current){const{nodes:b,edges:A}=o.current,P={nodes:b,edges:A};o.current={nodes:[],edges:[]},s(P)}},3e3))},[s,D]),H=x.useCallback(t=>{t.ref_id&&G(t.ref_id,{answer:t.answer,answerLoading:!1})},[G]),Y=x.useCallback(t=>{t.ref_id&&G(t.ref_id,{audio_en:t.audio_EN})},[G]),J=x.useCallback(t=>{t.ref_id&&G(t.ref_id,{questions:t.relevant_questions.map(b=>b.question),questionsLoading:!1})},[G]),K=x.useCallback(t=>{t.ref_id&&G(t.ref_id,{sources:t.sources.map(b=>b.ref_id),sourcesLoading:!1})},[G]),X=x.useCallback(t=>{t.question&&O(z)&&G(z,{answerLoading:!1,entities:t.entities})},[G,O,z]);return x.useEffect(()=>(l&&(l.connect(),l.on("connect_error",t=>{console.error("Socket connection error:",t)}),l.on("newnode",U),E&&l.on("extractedentitieshook",X),E&&l.on("askquestionhook",H),E&&l.on("relevantquestionshook",J),E&&l.on("answersourceshook",K),$&&l.on("new_node_created",W),E&&l.on("answeraudiohook",Y)),()=>{l&&l.off()}),[l,U,W,$,H,E,J,K,X,Y]),x.useEffect(()=>{},[f,B]),x.useEffect(()=>{if(f)try{l==null||l.emit("update_project_id",{id:f})}catch(t){console.error(t)}},[f,l]),x.useEffect(()=>{p||E&&g()},[g,p,E]),a.jsxs(a.Fragment,{children:[a.jsx(_0,{}),a.jsx(Fa,{}),a.jsx(x.Suspense,{fallback:a.jsx("div",{children:"Loading..."}),children:p?null:a.jsxs(va,{direction:"row",children:[a.jsxs(B0,{...q,children:[a.jsx(_a,{}),!T&&a.jsx(Ca,{}),a.jsx(Ma,{}),a.jsx(w0,{}),a.jsx(Ba,{}),a.jsxs(Pa,{children:["v",T0]}),a.jsx(v0,{})]}),a.jsx(K0,{}),a.jsx(wa,{})]})})]})},La=Object.freeze(Object.defineProperty({__proto__:null,App:Ta},Symbol.toStringTag,{value:"Module"}));export{P0 as f,La as i}; diff --git a/build/assets/index-87e08d45.js b/build/assets/index-ecdcb3cc.js similarity index 97% rename from build/assets/index-87e08d45.js rename to build/assets/index-ecdcb3cc.js index d824a47ad..6047bb2eb 100644 --- a/build/assets/index-87e08d45.js +++ b/build/assets/index-ecdcb3cc.js @@ -1,4 +1,4 @@ -import{s as a,j as e,F as s,aU as g,aV as j,B as w,T as i,a as n,e as S,t as y,r as m,aT as k,aX as v,v as F,z as T}from"./index-3506c528.js";import{aN as B}from"./index-ccbb14cf.js";const E=({allowNextStep:r})=>e.jsxs(s,{p:12,children:[e.jsx(s,{align:"center",direction:"row",justify:"space-between",mb:25,children:e.jsx(s,{align:"center",direction:"row",children:e.jsx(z,{children:"Feedback"})})}),e.jsx(s,{mb:30,children:e.jsx(g,{id:"feedback-message",isTextArea:!0,maxLength:500,name:"message",placeholder:"Leave your feedback here ...",rules:j})}),e.jsx(s,{children:e.jsx(w,{color:"secondary","data-testid":"submit-feedback-btn",disabled:!r,size:"large",type:"submit",variant:"contained",children:"Submit"})})]}),z=a(i)` +import{s as a,j as e,F as s,aU as g,aV as j,B as w,T as i,a as n,e as S,t as y,r as m,aT as k,aX as v,v as F,z as T}from"./index-6541aa03.js";import{aN as B}from"./index-ad617d4b.js";const E=({allowNextStep:r})=>e.jsxs(s,{p:12,children:[e.jsx(s,{align:"center",direction:"row",justify:"space-between",mb:25,children:e.jsx(s,{align:"center",direction:"row",children:e.jsx(z,{children:"Feedback"})})}),e.jsx(s,{mb:30,children:e.jsx(g,{id:"feedback-message",isTextArea:!0,maxLength:500,name:"message",placeholder:"Leave your feedback here ...",rules:j})}),e.jsx(s,{children:e.jsx(w,{color:"secondary","data-testid":"submit-feedback-btn",disabled:!r,size:"large",type:"submit",variant:"contained",children:"Submit"})})]}),z=a(i)` font-size: 22px; font-weight: 600; font-family: 'Barlow'; diff --git a/build/assets/index-501d0152.js b/build/assets/index-fcaf3d10.js similarity index 91% rename from build/assets/index-501d0152.js rename to build/assets/index-fcaf3d10.js index f7631aec6..2c5ecea4c 100644 --- a/build/assets/index-501d0152.js +++ b/build/assets/index-fcaf3d10.js @@ -1,4 +1,4 @@ -import{r as p,i as T,j as e,F as x,C as I,bc as _,bo as L,s as n,T as v,e as A,t as B,aX as E,v as F,a as M,br as N,B as k}from"./index-3506c528.js";import{ax as z,ay as O,az as D,m as P}from"./index-ccbb14cf.js";import{u as w}from"./index-54853042.js";import{S as X,A as Y,I as R}from"./constants-f759a65e.js";import{A as H,T as W}from"./index-1575e121.js";import{C as U}from"./ClipLoader-273b2bbd.js";import"./index-d54cb162.js";import"./Stack-7521353f.js";import"./createSvgIcon-0fd508c0.js";import"./TextareaAutosize-e8dfc0e6.js";const $=({topicId:s,onSelect:a,selectedValue:d,dataId:c})=>{const[u,h]=p.useState([]),[g,f]=p.useState(!1),j=p.useMemo(()=>{const o=async i=>{const m={is_muted:"False",sort_by:Y,search:i,skip:"0",limit:"1000"};f(!0);try{const C=(await L(m.search)).data.filter(y=>(y==null?void 0:y.ref_id)!==s);h(C)}catch{h([])}finally{f(!1)}};return T.debounce(o,300)},[s]),r=o=>{const i=o.trim();if(!i){h([]);return}i.length>2&&j(o)},b=o=>{const i=o?u.find(m=>m.ref_id===o.value):null;a(i||null)},t=o=>({label:o.search_value,value:o.ref_id,type:o.node_type}),S=o=>o.map(t);return d?e.jsxs(x,{align:"center",basis:"100%",direction:"row",grow:1,shrink:1,children:[e.jsx("span",{children:d.search_value}),e.jsx(X,{onClick:()=>a(null),size:"medium",children:e.jsx(I,{})})]}):e.jsx(H,{dataId:c,handleInputChange:r,isLoading:g,onSelect:b,options:S(u)||_,selectedValue:d?t(d):null})},q=({from:s,onSelect:a,selectedToNode:d,isSwapped:c,setIsSwapped:u})=>e.jsxs(x,{mb:20,children:[e.jsx(x,{align:"center",direction:"row",justify:"space-between",mb:18,children:e.jsx(x,{align:"center",direction:"row",children:e.jsx(G,{children:"Merge topic"})})}),e.jsxs(Q,{swap:c,children:[e.jsx(J,{children:e.jsx(V,{disabled:!0,label:c?"To":"From",swap:c,value:s==null?void 0:s.name})}),e.jsxs(x,{my:16,children:[e.jsx(ee,{children:"Type"}),e.jsx(v,{children:"IS ALIAS"})]}),e.jsx(x,{"data-testid":"to-section-container",children:e.jsxs(Z,{children:[e.jsx(te,{children:c?"From":"To"}),e.jsx($,{dataId:"to-node",onSelect:a,selectedValue:d,topicId:s==null?void 0:s.ref_id})]})}),e.jsxs(K,{children:[e.jsx(oe,{children:e.jsx(z,{})}),e.jsx(se,{"data-testid":"swap-icon",onClick:u,children:e.jsx(O,{})}),e.jsx(ne,{children:e.jsx(D,{})})]})]})]}),G=n(v)` +import{r as p,i as T,j as e,F as x,C as I,bc as _,bo as L,s as n,T as v,e as A,t as B,aX as E,v as F,a as M,br as N,B as k}from"./index-6541aa03.js";import{ax as z,ay as O,az as D,m as P}from"./index-ad617d4b.js";import{u as w}from"./index-d58befe2.js";import{S as X,A as Y,I as R}from"./constants-71fc61fd.js";import{A as H,T as W}from"./index-bb4d07d0.js";import{C as U}from"./ClipLoader-708ab7a4.js";import"./index-8f946e20.js";import"./Stack-bcf44d60.js";import"./createSvgIcon-0b5f6bf4.js";import"./TextareaAutosize-387bd327.js";const $=({topicId:s,onSelect:a,selectedValue:d,dataId:c})=>{const[u,h]=p.useState([]),[g,f]=p.useState(!1),j=p.useMemo(()=>{const o=async i=>{const m={is_muted:"False",sort_by:Y,search:i,skip:"0",limit:"1000"};f(!0);try{const C=(await L(m.search)).data.filter(y=>(y==null?void 0:y.ref_id)!==s);h(C)}catch{h([])}finally{f(!1)}};return T.debounce(o,300)},[s]),r=o=>{const i=o.trim();if(!i){h([]);return}i.length>2&&j(o)},b=o=>{const i=o?u.find(m=>m.ref_id===o.value):null;a(i||null)},t=o=>({label:o.search_value,value:o.ref_id,type:o.node_type}),S=o=>o.map(t);return d?e.jsxs(x,{align:"center",basis:"100%",direction:"row",grow:1,shrink:1,children:[e.jsx("span",{children:d.search_value}),e.jsx(X,{onClick:()=>a(null),size:"medium",children:e.jsx(I,{})})]}):e.jsx(H,{dataId:c,handleInputChange:r,isLoading:g,onSelect:b,options:S(u)||_,selectedValue:d?t(d):null})},q=({from:s,onSelect:a,selectedToNode:d,isSwapped:c,setIsSwapped:u})=>e.jsxs(x,{mb:20,children:[e.jsx(x,{align:"center",direction:"row",justify:"space-between",mb:18,children:e.jsx(x,{align:"center",direction:"row",children:e.jsx(G,{children:"Merge topic"})})}),e.jsxs(Q,{swap:c,children:[e.jsx(J,{children:e.jsx(V,{disabled:!0,label:c?"To":"From",swap:c,value:s==null?void 0:s.name})}),e.jsxs(x,{my:16,children:[e.jsx(ee,{children:"Type"}),e.jsx(v,{children:"IS ALIAS"})]}),e.jsx(x,{"data-testid":"to-section-container",children:e.jsxs(Z,{children:[e.jsx(te,{children:c?"From":"To"}),e.jsx($,{dataId:"to-node",onSelect:a,selectedValue:d,topicId:s==null?void 0:s.ref_id})]})}),e.jsxs(K,{children:[e.jsx(oe,{children:e.jsx(z,{})}),e.jsx(se,{"data-testid":"swap-icon",onClick:u,children:e.jsx(O,{})}),e.jsx(ne,{children:e.jsx(D,{})})]})]})]}),G=n(v)` font-size: 22px; font-weight: 600; font-family: 'Barlow'; diff --git a/build/assets/isPlainObject-9e89c04f.js b/build/assets/isPlainObject-5d028b0a.js similarity index 98% rename from build/assets/isPlainObject-9e89c04f.js rename to build/assets/isPlainObject-5d028b0a.js index 8acd994b9..8617fb046 100644 --- a/build/assets/isPlainObject-9e89c04f.js +++ b/build/assets/isPlainObject-5d028b0a.js @@ -1 +1 @@ -import{L as de,M as pe,O as M,X as Ne,x as S,ai as Ge,r as U,H as ge,j as E,U as H,Y as K,V as be,S as Ue,au as z,av as B,aB as T,bL as he,az as ve,a9 as X,bM as He,aF as Ke,bN as ze,bO as ye,bP as Xe,bQ as Ye,bR as Ze,aI as ke,aL as _e,aA as Qe,aH as Je,bS as We,aG as me,bT as je}from"./index-3506c528.js";import{u as Ve,b as $e,f as er,S as rr}from"./Stack-7521353f.js";import{T as W}from"./Typography-7897fa03.js";function ar(e){return de("PrivateSwitchBase",e)}pe("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const nr=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],tr=e=>{const{classes:r,checked:a,disabled:n,edge:s}=e,t={root:["root",a&&"checked",n&&"disabled",s&&`edge${K(s)}`],input:["input"]};return be(t,ar,r)},sr=M(Ne)(({ownerState:e})=>S({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),ir=M("input",{shouldForwardProp:Ge})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),or=U.forwardRef(function(r,a){const{autoFocus:n,checked:s,checkedIcon:t,className:i,defaultChecked:o,disabled:l,disableFocusRipple:c=!1,edge:d=!1,icon:f,id:u,inputProps:h,inputRef:p,name:g,onBlur:b,onChange:y,onFocus:v,readOnly:O,required:$=!1,tabIndex:_,type:P,value:L}=r,A=ge(r,nr),[w,xe]=Ve({controlled:s,default:!!o,name:"SwitchBase",state:"checked"}),C=$e(),Me=m=>{v&&v(m),C&&C.onFocus&&C.onFocus(m)},Be=m=>{b&&b(m),C&&C.onBlur&&C.onBlur(m)},qe=m=>{if(m.nativeEvent.defaultPrevented)return;const J=m.target.checked;xe(J),y&&y(m,J)};let I=l;C&&typeof I>"u"&&(I=C.disabled);const De=P==="checkbox"||P==="radio",D=S({},r,{checked:w,disabled:I,disableFocusRipple:c,edge:d}),Q=tr(D);return E.jsxs(sr,S({component:"span",className:H(Q.root,i),centerRipple:!0,focusRipple:!c,disabled:I,tabIndex:null,role:void 0,onFocus:Me,onBlur:Be,ownerState:D,ref:a},A,{children:[E.jsx(ir,S({autoFocus:n,checked:s,defaultChecked:o,className:Q.input,disabled:I,id:De?u:void 0,name:g,onChange:qe,readOnly:O,ref:p,required:$,ownerState:D,tabIndex:_,type:P},P==="checkbox"&&L===void 0?{}:{value:L},h)),w?t:f]}))}),ss=or;function lr(e){return de("MuiFormControlLabel",e)}const ur=pe("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),F=ur,cr=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],fr=e=>{const{classes:r,disabled:a,labelPlacement:n,error:s,required:t}=e,i={root:["root",a&&"disabled",`labelPlacement${K(n)}`,s&&"error",t&&"required"],label:["label",a&&"disabled"],asterisk:["asterisk",s&&"error"]};return be(i,lr,r)},dr=M("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:a}=e;return[{[`& .${F.label}`]:r.label},r.root,r[`labelPlacement${K(a.labelPlacement)}`]]}})(({theme:e,ownerState:r})=>S({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${F.disabled}`]:{cursor:"default"}},r.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},r.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},r.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${F.label}`]:{[`&.${F.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),pr=M("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,r)=>r.asterisk})(({theme:e})=>({[`&.${F.error}`]:{color:(e.vars||e).palette.error.main}})),gr=U.forwardRef(function(r,a){var n,s;const t=Ue({props:r,name:"MuiFormControlLabel"}),{className:i,componentsProps:o={},control:l,disabled:c,disableTypography:d,label:f,labelPlacement:u="end",required:h,slotProps:p={}}=t,g=ge(t,cr),b=$e(),y=(n=c??l.props.disabled)!=null?n:b==null?void 0:b.disabled,v=h??l.props.required,O={disabled:y,required:v};["checked","name","onChange","value","inputRef"].forEach(w=>{typeof l.props[w]>"u"&&typeof t[w]<"u"&&(O[w]=t[w])});const $=er({props:t,muiFormControl:b,states:["error"]}),_=S({},t,{disabled:y,labelPlacement:u,required:v,error:$.error}),P=fr(_),L=(s=p.typography)!=null?s:o.typography;let A=f;return A!=null&&A.type!==W&&!d&&(A=E.jsx(W,S({component:"span"},L,{className:H(P.label,L==null?void 0:L.className),children:A}))),E.jsxs(dr,S({className:H(P.root,i),ownerState:_,ref:a},g,{children:[U.cloneElement(l,O),v?E.jsxs(rr,{display:"block",children:[A,E.jsxs(pr,{ownerState:_,"aria-hidden":!0,className:P.asterisk,children:[" ","*"]})]}):A]}))}),is=gr;var br=z,hr=B,vr="[object Symbol]";function yr(e){return typeof e=="symbol"||hr(e)&&br(e)==vr}var Y=yr,_r=T,mr=Y,$r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Pr=/^\w*$/;function Ar(e,r){if(_r(e))return!1;var a=typeof e;return a=="number"||a=="symbol"||a=="boolean"||e==null||mr(e)?!0:Pr.test(e)||!$r.test(e)||r!=null&&e in Object(r)}var Z=Ar,Pe=he,Cr="Expected a function";function k(e,r){if(typeof e!="function"||r!=null&&typeof r!="function")throw new TypeError(Cr);var a=function(){var n=arguments,s=r?r.apply(this,n):n[0],t=a.cache;if(t.has(s))return t.get(s);var i=e.apply(this,n);return a.cache=t.set(s,i)||t,i};return a.cache=new(k.Cache||Pe),a}k.Cache=Pe;var Sr=k,Tr=Sr,Or=500;function wr(e){var r=Tr(e,function(n){return a.size===Or&&a.clear(),n}),a=r.cache;return r}var Lr=wr,Er=Lr,Ir=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Fr=/\\(\\)?/g,Rr=Er(function(e){var r=[];return e.charCodeAt(0)===46&&r.push(""),e.replace(Ir,function(a,n,s,t){r.push(s?t.replace(Fr,"$1"):n||a)}),r}),xr=Rr;function Mr(e,r){for(var a=-1,n=e==null?0:e.length,s=Array(n);++ao))return!1;var c=t.get(e),d=t.get(r);if(c&&d)return c==r&&d==e;var f=-1,u=!0,h=a&Ta?new Pa:void 0;for(t.set(e,r),t.set(r,e);++f{const{classes:r,checked:a,disabled:n,edge:s}=e,t={root:["root",a&&"checked",n&&"disabled",s&&`edge${K(s)}`],input:["input"]};return be(t,ar,r)},sr=M(Ne)(({ownerState:e})=>S({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),ir=M("input",{shouldForwardProp:Ge})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),or=U.forwardRef(function(r,a){const{autoFocus:n,checked:s,checkedIcon:t,className:i,defaultChecked:o,disabled:l,disableFocusRipple:c=!1,edge:d=!1,icon:f,id:u,inputProps:h,inputRef:p,name:g,onBlur:b,onChange:y,onFocus:v,readOnly:O,required:$=!1,tabIndex:_,type:P,value:L}=r,A=ge(r,nr),[w,xe]=Ve({controlled:s,default:!!o,name:"SwitchBase",state:"checked"}),C=$e(),Me=m=>{v&&v(m),C&&C.onFocus&&C.onFocus(m)},Be=m=>{b&&b(m),C&&C.onBlur&&C.onBlur(m)},qe=m=>{if(m.nativeEvent.defaultPrevented)return;const J=m.target.checked;xe(J),y&&y(m,J)};let I=l;C&&typeof I>"u"&&(I=C.disabled);const De=P==="checkbox"||P==="radio",D=S({},r,{checked:w,disabled:I,disableFocusRipple:c,edge:d}),Q=tr(D);return E.jsxs(sr,S({component:"span",className:H(Q.root,i),centerRipple:!0,focusRipple:!c,disabled:I,tabIndex:null,role:void 0,onFocus:Me,onBlur:Be,ownerState:D,ref:a},A,{children:[E.jsx(ir,S({autoFocus:n,checked:s,defaultChecked:o,className:Q.input,disabled:I,id:De?u:void 0,name:g,onChange:qe,readOnly:O,ref:p,required:$,ownerState:D,tabIndex:_,type:P},P==="checkbox"&&L===void 0?{}:{value:L},h)),w?t:f]}))}),ss=or;function lr(e){return de("MuiFormControlLabel",e)}const ur=pe("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),F=ur,cr=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],fr=e=>{const{classes:r,disabled:a,labelPlacement:n,error:s,required:t}=e,i={root:["root",a&&"disabled",`labelPlacement${K(n)}`,s&&"error",t&&"required"],label:["label",a&&"disabled"],asterisk:["asterisk",s&&"error"]};return be(i,lr,r)},dr=M("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:a}=e;return[{[`& .${F.label}`]:r.label},r.root,r[`labelPlacement${K(a.labelPlacement)}`]]}})(({theme:e,ownerState:r})=>S({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${F.disabled}`]:{cursor:"default"}},r.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},r.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},r.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${F.label}`]:{[`&.${F.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),pr=M("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,r)=>r.asterisk})(({theme:e})=>({[`&.${F.error}`]:{color:(e.vars||e).palette.error.main}})),gr=U.forwardRef(function(r,a){var n,s;const t=Ue({props:r,name:"MuiFormControlLabel"}),{className:i,componentsProps:o={},control:l,disabled:c,disableTypography:d,label:f,labelPlacement:u="end",required:h,slotProps:p={}}=t,g=ge(t,cr),b=$e(),y=(n=c??l.props.disabled)!=null?n:b==null?void 0:b.disabled,v=h??l.props.required,O={disabled:y,required:v};["checked","name","onChange","value","inputRef"].forEach(w=>{typeof l.props[w]>"u"&&typeof t[w]<"u"&&(O[w]=t[w])});const $=er({props:t,muiFormControl:b,states:["error"]}),_=S({},t,{disabled:y,labelPlacement:u,required:v,error:$.error}),P=fr(_),L=(s=p.typography)!=null?s:o.typography;let A=f;return A!=null&&A.type!==W&&!d&&(A=E.jsx(W,S({component:"span"},L,{className:H(P.label,L==null?void 0:L.className),children:A}))),E.jsxs(dr,S({className:H(P.root,i),ownerState:_,ref:a},g,{children:[U.cloneElement(l,O),v?E.jsxs(rr,{display:"block",children:[A,E.jsxs(pr,{ownerState:_,"aria-hidden":!0,className:P.asterisk,children:[" ","*"]})]}):A]}))}),is=gr;var br=z,hr=B,vr="[object Symbol]";function yr(e){return typeof e=="symbol"||hr(e)&&br(e)==vr}var Y=yr,_r=T,mr=Y,$r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Pr=/^\w*$/;function Ar(e,r){if(_r(e))return!1;var a=typeof e;return a=="number"||a=="symbol"||a=="boolean"||e==null||mr(e)?!0:Pr.test(e)||!$r.test(e)||r!=null&&e in Object(r)}var Z=Ar,Pe=he,Cr="Expected a function";function k(e,r){if(typeof e!="function"||r!=null&&typeof r!="function")throw new TypeError(Cr);var a=function(){var n=arguments,s=r?r.apply(this,n):n[0],t=a.cache;if(t.has(s))return t.get(s);var i=e.apply(this,n);return a.cache=t.set(s,i)||t,i};return a.cache=new(k.Cache||Pe),a}k.Cache=Pe;var Sr=k,Tr=Sr,Or=500;function wr(e){var r=Tr(e,function(n){return a.size===Or&&a.clear(),n}),a=r.cache;return r}var Lr=wr,Er=Lr,Ir=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Fr=/\\(\\)?/g,Rr=Er(function(e){var r=[];return e.charCodeAt(0)===46&&r.push(""),e.replace(Ir,function(a,n,s,t){r.push(s?t.replace(Fr,"$1"):n||a)}),r}),xr=Rr;function Mr(e,r){for(var a=-1,n=e==null?0:e.length,s=Array(n);++ao))return!1;var c=t.get(e),d=t.get(r);if(c&&d)return c==r&&d==e;var f=-1,u=!0,h=a&Ta?new Pa:void 0;for(t.set(e,r),t.set(r,e);++f Second Brain - +