From cfd5a05742cd2732cffce6a7f12e11027bc77c61 Mon Sep 17 00:00:00 2001 From: Github Actions Date: Wed, 29 Jan 2025 23:45:10 +0000 Subject: [PATCH] ci: automatic build fixes --- build/assets/CheckIcon-bcbb5853.js | 1 + ...der-9eb1180c.js => ClipLoader-c90857c8.js} | 2 +- ...on-2b8db985.js => DailyMotion-6a6f4c68.js} | 2 +- build/assets/DeleteNodeIcon-be8a9a17.js | 1 + build/assets/EditNodeIcon-665ec0f5.js | 1 + ...ebook-6501d9fa.js => Facebook-c4e38700.js} | 2 +- ...yer-1c5633fd.js => FilePlayer-13d27ffe.js} | 2 +- ...altura-7b327c6c.js => Kaltura-b12fa3ac.js} | 2 +- ...cloud-d3d3f708.js => Mixcloud-6271b595.js} | 2 +- build/assets/NodeCircleIcon-6e372d93.js | 1 + ...review-0fb823bb.js => Preview-464e6343.js} | 2 +- build/assets/SearchIcon-3c9f4418.js | 1 + ...leton-633e7f1d.js => Skeleton-d97f7e12.js} | 10 +- ...oud-059442ac.js => SoundCloud-8291b59c.js} | 2 +- build/assets/SoundIcon-a0618346.js | 1 + build/assets/SourcesTableIcon-54a999e3.js | 1 + build/assets/Stack-2f0ef3f5.js | 1 - build/assets/Stack-ff0fb8f6.js | 1 + ...ble-77cccbf9.js => Streamable-26990a94.js} | 2 +- build/assets/SucessFeedBackIcon-edca1d93.js | 1 + build/assets/Tabs-050299f8.js | 1 - build/assets/Tabs-9bc26124.js | 1 + build/assets/TextareaAutosize-3b102137.js | 2 - build/assets/TextareaAutosize-c42da1c8.js | 2 + ...{Twitch-1ae089b5.js => Twitch-79ac99b3.js} | 2 +- ...phy-5c2f9b73.js => Typography-13640c0b.js} | 2 +- ...idyard-f4d3294e.js => Vidyard-862371df.js} | 2 +- .../{Vimeo-80d3d98e.js => Vimeo-1c339b7e.js} | 2 +- build/assets/VisibilityOn-aa220caf.js | 1 + build/assets/VolumeIcon-750bd7e3.js | 1 + ...{Wistia-0ff1df4a.js => Wistia-341ad116.js} | 2 +- ...ouTube-7562d82d.js => YouTube-f9411286.js} | 2 +- ...ants-167ef3c0.js => constants-e4e2b00b.js} | 4 +- ...-b68c7390.js => createSvgIcon-09ff14f6.js} | 2 +- build/assets/index-02556457.js | 47 ++ build/assets/index-04df737c.js | 92 +++ .../{index-6eb81ca4.js => index-057df3f8.js} | 66 +- build/assets/index-068043a5.js | 168 +++++ .../{index-db89c0a2.js => index-13ae7535.js} | 14 +- build/assets/index-18a58def.js | 34 + .../{index-1d805415.js => index-2353781d.js} | 4 +- build/assets/index-2380a87b.js | 92 --- .../{index-ec17158d.js => index-28e04477.js} | 10 +- build/assets/index-30a4fcdf.js | 18 - .../{index-eeddd406.js => index-3109fb7b.js} | 2 +- .../{index-5b7bb80c.js => index-33375362.js} | 2 +- build/assets/index-3ac851f3.js | 168 ----- .../{index-fe4c7b4c.js => index-4a684a7a.js} | 10 +- build/assets/index-4dcb3294.js | 1 - .../{index-0c2703db.js => index-50985761.js} | 8 +- build/assets/index-673eed35.js | 47 -- build/assets/index-717b1eb9.js | 1 + build/assets/index-7c5e8119.js | 95 --- build/assets/index-80a17f62.js | 193 ----- build/assets/index-83d18e4b.js | 193 +++++ .../{index-16f87ec1.js => index-85f1fd1c.js} | 56 +- .../{index-287bd287.js => index-9509df5b.js} | 8 +- build/assets/index-964e9ac6.js | 673 ++++++++++++++++++ build/assets/index-a37fbd62.js | 18 + build/assets/index-aeaca922.js | 673 ------------------ .../{index-9525fdf3.js => index-b37638c7.js} | 24 +- .../{index-9142d688.js => index-b7808ecf.js} | 125 ++-- build/assets/index-b82a9f52.js | 363 ---------- .../{index-49aceffc.js => index-d6e6bd7b.js} | 12 +- build/assets/index-da8a239d.js | 71 ++ build/assets/index-dce7cf9f.js | 363 ++++++++++ build/assets/index-de2489a8.js | 34 - build/assets/index-e033fd45.js | 95 +++ build/assets/index-f3df532f.js | 71 -- .../{index-c10c0497.js => index-ffad0f79.js} | 24 +- build/assets/isPlainObject-44e85bf8.js | 1 - build/assets/isPlainObject-c1defea0.js | 1 + build/index.html | 2 +- 73 files changed, 1977 insertions(+), 1966 deletions(-) create mode 100644 build/assets/CheckIcon-bcbb5853.js rename build/assets/{ClipLoader-9eb1180c.js => ClipLoader-c90857c8.js} (97%) rename build/assets/{DailyMotion-2b8db985.js => DailyMotion-6a6f4c68.js} (95%) create mode 100644 build/assets/DeleteNodeIcon-be8a9a17.js create mode 100644 build/assets/EditNodeIcon-665ec0f5.js rename build/assets/{Facebook-6501d9fa.js => Facebook-c4e38700.js} (96%) rename build/assets/{FilePlayer-1c5633fd.js => FilePlayer-13d27ffe.js} (98%) rename build/assets/{Kaltura-7b327c6c.js => Kaltura-b12fa3ac.js} (95%) rename build/assets/{Mixcloud-d3d3f708.js => Mixcloud-6271b595.js} (95%) create mode 100644 build/assets/NodeCircleIcon-6e372d93.js rename build/assets/{Preview-0fb823bb.js => Preview-464e6343.js} (97%) create mode 100644 build/assets/SearchIcon-3c9f4418.js rename build/assets/{Skeleton-633e7f1d.js => Skeleton-d97f7e12.js} (66%) rename build/assets/{SoundCloud-059442ac.js => SoundCloud-8291b59c.js} (95%) create mode 100644 build/assets/SoundIcon-a0618346.js create mode 100644 build/assets/SourcesTableIcon-54a999e3.js delete mode 100644 build/assets/Stack-2f0ef3f5.js create mode 100644 build/assets/Stack-ff0fb8f6.js rename build/assets/{Streamable-77cccbf9.js => Streamable-26990a94.js} (95%) create mode 100644 build/assets/SucessFeedBackIcon-edca1d93.js delete mode 100644 build/assets/Tabs-050299f8.js create mode 100644 build/assets/Tabs-9bc26124.js delete mode 100644 build/assets/TextareaAutosize-3b102137.js create mode 100644 build/assets/TextareaAutosize-c42da1c8.js rename build/assets/{Twitch-1ae089b5.js => Twitch-79ac99b3.js} (95%) rename build/assets/{Typography-5c2f9b73.js => Typography-13640c0b.js} (65%) rename build/assets/{Vidyard-f4d3294e.js => Vidyard-862371df.js} (95%) rename build/assets/{Vimeo-80d3d98e.js => Vimeo-1c339b7e.js} (96%) create mode 100644 build/assets/VisibilityOn-aa220caf.js create mode 100644 build/assets/VolumeIcon-750bd7e3.js rename build/assets/{Wistia-0ff1df4a.js => Wistia-341ad116.js} (96%) rename build/assets/{YouTube-7562d82d.js => YouTube-f9411286.js} (97%) rename build/assets/{constants-167ef3c0.js => constants-e4e2b00b.js} (68%) rename build/assets/{createSvgIcon-b68c7390.js => createSvgIcon-09ff14f6.js} (67%) create mode 100644 build/assets/index-02556457.js create mode 100644 build/assets/index-04df737c.js rename build/assets/{index-6eb81ca4.js => index-057df3f8.js} (96%) create mode 100644 build/assets/index-068043a5.js rename build/assets/{index-db89c0a2.js => index-13ae7535.js} (66%) create mode 100644 build/assets/index-18a58def.js rename build/assets/{index-1d805415.js => index-2353781d.js} (99%) delete mode 100644 build/assets/index-2380a87b.js rename build/assets/{index-ec17158d.js => index-28e04477.js} (50%) delete mode 100644 build/assets/index-30a4fcdf.js rename build/assets/{index-eeddd406.js => index-3109fb7b.js} (85%) rename build/assets/{index-5b7bb80c.js => index-33375362.js} (81%) delete mode 100644 build/assets/index-3ac851f3.js rename build/assets/{index-fe4c7b4c.js => index-4a684a7a.js} (85%) delete mode 100644 build/assets/index-4dcb3294.js rename build/assets/{index-0c2703db.js => index-50985761.js} (55%) delete mode 100644 build/assets/index-673eed35.js create mode 100644 build/assets/index-717b1eb9.js delete mode 100644 build/assets/index-7c5e8119.js delete mode 100644 build/assets/index-80a17f62.js create mode 100644 build/assets/index-83d18e4b.js rename build/assets/{index-16f87ec1.js => index-85f1fd1c.js} (84%) rename build/assets/{index-287bd287.js => index-9509df5b.js} (75%) create mode 100644 build/assets/index-964e9ac6.js create mode 100644 build/assets/index-a37fbd62.js delete mode 100644 build/assets/index-aeaca922.js rename build/assets/{index-9525fdf3.js => index-b37638c7.js} (84%) rename build/assets/{index-9142d688.js => index-b7808ecf.js} (76%) delete mode 100644 build/assets/index-b82a9f52.js rename build/assets/{index-49aceffc.js => index-d6e6bd7b.js} (57%) create mode 100644 build/assets/index-da8a239d.js create mode 100644 build/assets/index-dce7cf9f.js delete mode 100644 build/assets/index-de2489a8.js create mode 100644 build/assets/index-e033fd45.js delete mode 100644 build/assets/index-f3df532f.js rename build/assets/{index-c10c0497.js => index-ffad0f79.js} (71%) delete mode 100644 build/assets/isPlainObject-44e85bf8.js create mode 100644 build/assets/isPlainObject-c1defea0.js diff --git a/build/assets/CheckIcon-bcbb5853.js b/build/assets/CheckIcon-bcbb5853.js new file mode 100644 index 000000000..d5fab9f3d --- /dev/null +++ b/build/assets/CheckIcon-bcbb5853.js @@ -0,0 +1 @@ +import{j as C}from"./index-2353781d.js";const t=o=>C.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 10 7",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:C.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"})});export{t as C}; diff --git a/build/assets/ClipLoader-9eb1180c.js b/build/assets/ClipLoader-c90857c8.js similarity index 97% rename from build/assets/ClipLoader-9eb1180c.js rename to build/assets/ClipLoader-c90857c8.js index fb5d8fa07..9079b8c41 100644 --- a/build/assets/ClipLoader-9eb1180c.js +++ b/build/assets/ClipLoader-c90857c8.js @@ -1,4 +1,4 @@ -import{r as m}from"./index-1d805415.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-2353781d.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-2b8db985.js b/build/assets/DailyMotion-6a6f4c68.js similarity index 95% rename from build/assets/DailyMotion-2b8db985.js rename to build/assets/DailyMotion-6a6f4c68.js index fdb5b62b6..64c28bed5 100644 --- a/build/assets/DailyMotion-2b8db985.js +++ b/build/assets/DailyMotion-6a6f4c68.js @@ -1 +1 @@ -import{a8 as P,r as v}from"./index-1d805415.js";import{u as D,p as O}from"./index-6eb81ca4.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{a3 as P,r as v}from"./index-2353781d.js";import{u as D,p as O}from"./index-057df3f8.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/DeleteNodeIcon-be8a9a17.js b/build/assets/DeleteNodeIcon-be8a9a17.js new file mode 100644 index 000000000..caf3976b6 --- /dev/null +++ b/build/assets/DeleteNodeIcon-be8a9a17.js @@ -0,0 +1 @@ +import{j as t}from"./index-2353781d.js";const e=o=>t.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 60 52",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[t.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"}),t.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"}),t.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"})]});export{e as D}; diff --git a/build/assets/EditNodeIcon-665ec0f5.js b/build/assets/EditNodeIcon-665ec0f5.js new file mode 100644 index 000000000..4dd8cf890 --- /dev/null +++ b/build/assets/EditNodeIcon-665ec0f5.js @@ -0,0 +1 @@ +import{j as o}from"./index-2353781d.js";const r=t=>o.jsxs("svg",{width:"1em",height:"1em",viewBox:"4 3 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[o.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"}),o.jsx("path",{d:"M16 4L9 11",stroke:"#909BAA","stroke-width":"1.5","stroke-linecap":"round"})]});export{r as E}; diff --git a/build/assets/Facebook-6501d9fa.js b/build/assets/Facebook-c4e38700.js similarity index 96% rename from build/assets/Facebook-6501d9fa.js rename to build/assets/Facebook-c4e38700.js index 800802e81..2bf4040f7 100644 --- a/build/assets/Facebook-6501d9fa.js +++ b/build/assets/Facebook-c4e38700.js @@ -1 +1 @@ -import{a8 as _,r as P}from"./index-1d805415.js";import{u as g,p as m}from"./index-6eb81ca4.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{a3 as _,r as P}from"./index-2353781d.js";import{u as g,p as m}from"./index-057df3f8.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-1c5633fd.js b/build/assets/FilePlayer-13d27ffe.js similarity index 98% rename from build/assets/FilePlayer-1c5633fd.js rename to build/assets/FilePlayer-13d27ffe.js index a47f631f8..6eb9461c2 100644 --- a/build/assets/FilePlayer-1c5633fd.js +++ b/build/assets/FilePlayer-13d27ffe.js @@ -1 +1 @@ -import{a8 as b,r as _}from"./index-1d805415.js";import{u as O,p as A}from"./index-6eb81ca4.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{a3 as b,r as _}from"./index-2353781d.js";import{u as O,p as A}from"./index-057df3f8.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-7b327c6c.js b/build/assets/Kaltura-b12fa3ac.js similarity index 95% rename from build/assets/Kaltura-7b327c6c.js rename to build/assets/Kaltura-b12fa3ac.js index ed8b0ff36..d27f2562f 100644 --- a/build/assets/Kaltura-7b327c6c.js +++ b/build/assets/Kaltura-b12fa3ac.js @@ -1 +1 @@ -import{a8 as y,r as f}from"./index-1d805415.js";import{u as _,p as m}from"./index-6eb81ca4.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{a3 as y,r as f}from"./index-2353781d.js";import{u as _,p as m}from"./index-057df3f8.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-d3d3f708.js b/build/assets/Mixcloud-6271b595.js similarity index 95% rename from build/assets/Mixcloud-d3d3f708.js rename to build/assets/Mixcloud-6271b595.js index cf342b237..5c686d075 100644 --- a/build/assets/Mixcloud-d3d3f708.js +++ b/build/assets/Mixcloud-6271b595.js @@ -1 +1 @@ -import{a8 as _,r as f}from"./index-1d805415.js";import{u as m,p as g}from"./index-6eb81ca4.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{a3 as _,r as f}from"./index-2353781d.js";import{u as m,p as g}from"./index-057df3f8.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/NodeCircleIcon-6e372d93.js b/build/assets/NodeCircleIcon-6e372d93.js new file mode 100644 index 000000000..1ea727537 --- /dev/null +++ b/build/assets/NodeCircleIcon-6e372d93.js @@ -0,0 +1 @@ +import{j as r}from"./index-2353781d.js";const t=o=>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"})}),s=o=>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"})]}),i=o=>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"})});export{t as A,s as F,i as N}; diff --git a/build/assets/Preview-0fb823bb.js b/build/assets/Preview-464e6343.js similarity index 97% rename from build/assets/Preview-0fb823bb.js rename to build/assets/Preview-464e6343.js index 82aeaec44..cd4088f3e 100644 --- a/build/assets/Preview-0fb823bb.js +++ b/build/assets/Preview-464e6343.js @@ -1 +1 @@ -import{a8 as y,r as b}from"./index-1d805415.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{a3 as y,r as b}from"./index-2353781d.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/SearchIcon-3c9f4418.js b/build/assets/SearchIcon-3c9f4418.js new file mode 100644 index 000000000..73bf73328 --- /dev/null +++ b/build/assets/SearchIcon-3c9f4418.js @@ -0,0 +1 @@ +import{j as C}from"./index-2353781d.js";const e=r=>C.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 21 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[C.jsx("mask",{id:"mask0_3553_6463",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"21",height:"20",children:C.jsx("rect",{x:"0.5",width:"1em",height:"1em",fill:"currentColor"})}),C.jsx("g",{children:C.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"})})]}),t=r=>C.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 32 32",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:C.jsx("g",{id:"Property 1=Normal",children:C.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"})})});export{e as P,t as S}; diff --git a/build/assets/Skeleton-633e7f1d.js b/build/assets/Skeleton-d97f7e12.js similarity index 66% rename from build/assets/Skeleton-633e7f1d.js rename to build/assets/Skeleton-d97f7e12.js index 6f4f7e04f..49edca74f 100644 --- a/build/assets/Skeleton-633e7f1d.js +++ b/build/assets/Skeleton-d97f7e12.js @@ -1,4 +1,4 @@ -import{K as y,L as w,bx as b,M as R,N as o,O as S,by as u,r as _,P as U,G as $,j as M,S as j,U as A}from"./index-1d805415.js";function N(t){return String(t).match(/[\d.\-+]*\s*(.*)/)[1]||""}function X(t){return parseFloat(t)}function K(t){return y("MuiSkeleton",t)}w("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const P=["animation","className","component","height","style","variant","width"];let r=t=>t,p,g,m,f;const B=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"]},K,a)},E=b(p||(p=r` +import{z as x,D as y,bu as b,E as R,G as o,H as S,bv as u,r as _,J as $,w as U,j as M,K as j,L as A}from"./index-2353781d.js";function X(t){return String(t).match(/[\d.\-+]*\s*(.*)/)[1]||""}function E(t){return parseFloat(t)}function K(t){return x("MuiSkeleton",t)}y("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const N=["animation","className","component","height","style","variant","width"];let r=t=>t,p,g,m,f;const B=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"]},K,a)},F=b(p||(p=r` 0% { opacity: 1; } @@ -10,7 +10,7 @@ import{K as y,L as w,bx as b,M as R,N as o,O as S,by as u,r as _,P as U,G as $,j 100% { opacity: 1; } -`)),F=b(g||(g=r` +`)),L=b(g||(g=r` 0% { transform: translateX(-100%); } @@ -23,9 +23,9 @@ import{K as y,L as w,bx as b,M as R,N as o,O as S,by as u,r as _,P as U,G as $,j 100% { transform: translateX(100%); } -`)),L=R("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(t,a)=>{const{ownerState:e}=t;return[a.root,a[e.variant],e.animation!==!1&&a[e.animation],e.hasChildren&&a.withChildren,e.hasChildren&&!e.width&&a.fitContent,e.hasChildren&&!e.height&&a.heightAuto]}})(({theme:t,ownerState:a})=>{const e=N(t.shape.borderRadius)||"px",i=X(t.shape.borderRadius);return o({display:"block",backgroundColor:t.vars?t.vars.palette.Skeleton.bg:S(t.palette.text.primary,t.palette.mode==="light"?.11:.13),height:"1.2em"},a.variant==="text"&&{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${i}${e}/${Math.round(i/.6*10)/10}${e}`,"&:empty:before":{content:'"\\00a0"'}},a.variant==="circular"&&{borderRadius:"50%"},a.variant==="rounded"&&{borderRadius:(t.vars||t).shape.borderRadius},a.hasChildren&&{"& > *":{visibility:"hidden"}},a.hasChildren&&!a.width&&{maxWidth:"fit-content"},a.hasChildren&&!a.height&&{height:"auto"})},({ownerState:t})=>t.animation==="pulse"&&u(m||(m=r` +`)),P=R("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(t,a)=>{const{ownerState:e}=t;return[a.root,a[e.variant],e.animation!==!1&&a[e.animation],e.hasChildren&&a.withChildren,e.hasChildren&&!e.width&&a.fitContent,e.hasChildren&&!e.height&&a.heightAuto]}})(({theme:t,ownerState:a})=>{const e=X(t.shape.borderRadius)||"px",i=E(t.shape.borderRadius);return o({display:"block",backgroundColor:t.vars?t.vars.palette.Skeleton.bg:S(t.palette.text.primary,t.palette.mode==="light"?.11:.13),height:"1.2em"},a.variant==="text"&&{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${i}${e}/${Math.round(i/.6*10)/10}${e}`,"&:empty:before":{content:'"\\00a0"'}},a.variant==="circular"&&{borderRadius:"50%"},a.variant==="rounded"&&{borderRadius:(t.vars||t).shape.borderRadius},a.hasChildren&&{"& > *":{visibility:"hidden"}},a.hasChildren&&!a.width&&{maxWidth:"fit-content"},a.hasChildren&&!a.height&&{height:"auto"})},({ownerState:t})=>t.animation==="pulse"&&u(m||(m=r` animation: ${0} 2s ease-in-out 0.5s infinite; - `),E),({ownerState:t,theme:a})=>t.animation==="wave"&&u(f||(f=r` + `),F),({ownerState:t,theme:a})=>t.animation==="wave"&&u(f||(f=r` position: relative; overflow: hidden; @@ -48,4 +48,4 @@ import{K as y,L as w,bx as b,M as R,N as o,O as S,by as u,r as _,P as U,G as $,j right: 0; top: 0; } - `),F,(a.vars||a).palette.action.hover)),O=_.forwardRef(function(a,e){const i=U({props:a,name:"MuiSkeleton"}),{animation:n="pulse",className:l,component:s="span",height:h,style:v,variant:C="text",width:k}=i,d=$(i,P),c=o({},i,{animation:n,component:s,variant:C,hasChildren:!!d.children}),x=B(c);return M.jsx(L,o({as:s,ref:e,className:j(x.root,l),ownerState:c},d,{style:o({width:k,height:h},v)}))}),W=O;export{W as S}; + `),L,(a.vars||a).palette.action.hover)),T=_.forwardRef(function(a,e){const i=$({props:a,name:"MuiSkeleton"}),{animation:n="pulse",className:l,component:s="span",height:h,style:v,variant:C="text",width:k}=i,d=U(i,N),c=o({},i,{animation:n,component:s,variant:C,hasChildren:!!d.children}),w=B(c);return M.jsx(P,o({as:s,ref:e,className:j(w.root,l),ownerState:c},d,{style:o({width:k,height:h},v)}))}),z=T;export{z as S}; diff --git a/build/assets/SoundCloud-059442ac.js b/build/assets/SoundCloud-8291b59c.js similarity index 95% rename from build/assets/SoundCloud-059442ac.js rename to build/assets/SoundCloud-8291b59c.js index 4fa07fb72..dee8e039b 100644 --- a/build/assets/SoundCloud-059442ac.js +++ b/build/assets/SoundCloud-8291b59c.js @@ -1 +1 @@ -import{a8 as P,r as g}from"./index-1d805415.js";import{u as b,p as v}from"./index-6eb81ca4.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{a3 as P,r as g}from"./index-2353781d.js";import{u as b,p as v}from"./index-057df3f8.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/SoundIcon-a0618346.js b/build/assets/SoundIcon-a0618346.js new file mode 100644 index 000000000..4b6685b23 --- /dev/null +++ b/build/assets/SoundIcon-a0618346.js @@ -0,0 +1 @@ +import{j as C}from"./index-2353781d.js";const r=s=>C.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:C.jsxs("g",{id:"bubble_chart",children:[C.jsx("mask",{id:"mask0_1551_42",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:C.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),C.jsx("g",{mask:"url(#mask0_1551_42)",children:C.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"})})]})}),i=s=>C.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:C.jsxs("g",{id:"brand_awareness",children:[C.jsx("mask",{id:"mask0_3696_4540",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:C.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),C.jsx("g",{mask:"url(#mask0_3696_4540)",children:C.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"})})]})});export{r as B,i as S}; diff --git a/build/assets/SourcesTableIcon-54a999e3.js b/build/assets/SourcesTableIcon-54a999e3.js new file mode 100644 index 000000000..c1e60c86b --- /dev/null +++ b/build/assets/SourcesTableIcon-54a999e3.js @@ -0,0 +1 @@ +import{j as C}from"./index-2353781d.js";const r=e=>C.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:C.jsxs("g",{id:"communities",children:[C.jsx("mask",{id:"mask0_1551_39",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:C.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),C.jsx("g",{mask:"url(#mask0_1551_39)",children:C.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"})})]})}),i=e=>C.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[C.jsx("mask",{id:"mask0_1259_25",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:C.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),C.jsx("g",{mask:"url(#mask0_1259_25)",children:C.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"})})]}),t=e=>C.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[C.jsx("mask",{id:"mask0_1259_27",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:C.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),C.jsx("g",{mask:"url(#mask0_1259_27)",children:C.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"})})]}),l=e=>C.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 25 22",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:C.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"})}),o=e=>C.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 18 18",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:C.jsx("g",{id:"Menu icons",children:C.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"})})}),n=e=>C.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[C.jsx("mask",{id:"mask0_1259_29",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:C.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),C.jsx("g",{mask:"url(#mask0_1259_29)",children:C.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"})})]}),h=e=>C.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[C.jsx("mask",{id:"mask0_1259_26",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:C.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),C.jsx("g",{mask:"url(#mask0_1259_26)",children:C.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"})})]});export{t as A,r as C,l as F,o as M,h as S,i as a,n as b}; diff --git a/build/assets/Stack-2f0ef3f5.js b/build/assets/Stack-2f0ef3f5.js deleted file mode 100644 index f416977ce..000000000 --- a/build/assets/Stack-2f0ef3f5.js +++ /dev/null @@ -1 +0,0 @@ -import{r as E,a7 as Mt,G as ae,N as T,c4 as Ft,c5 as Wt,c6 as Lt,c7 as Vt,c8 as Nt,bB as Je,bA as Ae,c9 as Ht,c3 as It,ca as Ut,j as J,cb as Qe,U as ke,K as Te,L as ht,Y as et,Z as tt,M as Be,cc as qt,P as Me,X as gt,S as Xt}from"./index-1d805415.js";import{q as rt,aK as zt,D as Yt}from"./index-3ac851f3.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=Mt["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"],Kt=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 Zt(e){const{sx:t}=e,r=ae(e,_t),{systemProps:o,otherProps:n}=Kt(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"},Je({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,Je({theme:t},c,(i,f)=>e.useFlexGap?{gap:Qe(o,i)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${ir(f?a[f]:e.direction)}`]:Qe(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=Zt(l),{component:h="div",direction:p="column",spacing:x=0,divider:d,children:m,className:w,useFlexGap:O=!1}=v,b=ae(v,tr),u={direction:p,spacing:x,useFlexGap:O},g=n();return J.jsx(a,T({as:h,ownerState:u,ref:f,className:Jt(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 M="top",N="bottom",H="right",F="left",Fe="auto",de=[M,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",Pr="afterWrite",Or=[vr,mr,hr,gr,yr,br,xr,wr,Pr];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 Q(e){var t=W(e).Element;return e instanceof t||e instanceof Element}function V(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];!V(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},{});!V(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 Z=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&&V(e)&&(n=e.offsetWidth>0&&re(o.width)/e.offsetWidth||1,a=e.offsetHeight>0&&re(o.height)/e.offsetHeight||1);var c=Q(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 Le(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 Pt(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 Y(e){return((Q(e)?e.ownerDocument:e.document)||window.document).documentElement}function Pe(e){return U(e)==="html"?e:e.assignedSlot||e.parentNode||(We(e)?e.host:null)||Y(e)}function it(e){return!V(e)||q(e).position==="fixed"?null:e.offsetParent}function Sr(e){var t=/firefox/i.test($e()),r=/Trident/i.test($e());if(r&&V(e)){var o=q(e);if(o.position==="fixed")return null}var n=Pe(e);for(We(n)&&(n=n.host);V(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 Ve(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ce(e,t,r){return Z(e,we(t,r))}function $r(e,t,r){var o=ce(e,t,r);return o>r?r:o}function Ot(){return{top:0,right:0,bottom:0,left:0}}function Et(e){return Object.assign({},Ot(),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=Ve(s),f=[F,H].indexOf(s)>=0,l=f?"height":"width";if(!(!a||!c)){var v=Dr(n.padding,r),h=Le(a),p=i==="y"?M: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),O=w?i==="y"?w.clientHeight||0:w.clientWidth||0:0,b=d/2-m/2,u=v[p],g=O-h[l]-v[x],y=O/2-h[l]/2+b,P=ce(u,y,g),A=i;r.modifiersData[o]=(t={},t[A]=P,t.centerOffset=P-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)||Pt(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 Br={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Mr(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"),O=c.hasOwnProperty("y"),b=F,u=M,g=window;if(f){var y=ve(r),P="clientHeight",A="clientWidth";if(y===W(r)&&(y=Y(r),q(y).position!=="static"&&s==="absolute"&&(P="scrollHeight",A="scrollWidth")),y=y,n===M||(n===F||n===H)&&a===ue){u=N;var C=v&&y===g&&g.visualViewport?g.visualViewport.height:y[P];d-=C-o.height,d*=i?1:-1}if(n===F||(n===M||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&&Br),k=l===!0?Mr({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]=O?"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]=O?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 Lr(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 Vr={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Lr,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(Y(e)).left+Ne(e).scrollLeft}function Ir(e,t){var r=W(e),o=Y(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=Y(e),o=Ne(e),n=(t=e.ownerDocument)==null?void 0:t.body,a=Z(r.scrollWidth,r.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),c=Z(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+=Z(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:V(e)&&Ie(e)?e:Rt(Pe(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(Pe(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)):Q(t)?qr(t,r):De(Ur(Y(e)))}function Xr(e){var t=fe(Pe(e)),r=["absolute","fixed"].indexOf(q(e).position)>=0,o=r&&V(e)?ve(e):e;return Q(o)?t.filter(function(n){return Q(n)&&Pt(n,o)&&U(n)!=="body"}):[]}function zr(e,t,r,o){var n=t==="clippingParents"?Xr(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=Z(l.top,i.top),i.right=we(l.right,i.right),i.bottom=we(l.bottom,i.bottom),i.left=Z(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 M: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?Ve(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)),O=h===le?dr:le,b=e.rects.popper,u=e.elements[x?O:h],g=zr(Q(u)?u:u.contextElement||Y(e.elements.popper),i,l,c),y=oe(e.elements.reference),P=At({reference:y,element:b,strategy:"absolute",placement:n}),A=De(Object.assign({},b,P)),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,L=[M,N].indexOf(S)>=0?"y":"x";R[S]+=k[L]*j})}return R}function Yr(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),O=w===m,b=i||(O||!x?[xe(m)]:Gr(m)),u=[m].concat(b).reduce(function(ee,z){return ee.concat(I(z)===Fe?Yr(t,{placement:z,boundary:l,rootBoundary:v,padding:f,flipVariations:x,allowedAutoPlacements:d}):z)},[]),g=t.rects.reference,y=t.rects.popper,P=new Map,A=!0,C=u[0],R=0;R=0,L=j?"width":"height",D=pe(t,{placement:$,boundary:l,rootBoundary:v,altBoundary:h,padding:f}),B=j?S?H:F:S?N:M;g[L]>y[L]&&(B=xe(B));var X=xe(B),G=[];if(a&&G.push(D[k]<=0),s&&G.push(D[B]<=0,D[X]<=0),G.every(function(ee){return ee})){C=$,A=!1;break}P.set($,G)}if(A)for(var me=x?3:1,Oe=function(z){var se=u.find(function(ge){var _=P.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=Oe(ie);if(he==="break")break}t.placement!==C&&(t.modifiersData[o]._skip=!0,t.placement=C,t.reset=!0)}}const Kr={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[M,H,N,F].some(function(t){return e[t]>=0})}function Zr(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 Jr={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Zr};function Qr(e,t,r){var o=I(e),n=[F,M].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]=Qr(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),O=ne(t.placement),b=!O,u=Ve(w),g=no(u),y=t.modifiersData.popperOffsets,P=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"?M:F,L=u==="y"?N:H,D=u==="y"?"height":"width",B=y[u],X=B+m[j],G=B-m[L],me=p?-A[D]/2:0,Oe=O===te?P[D]:A[D],ie=O===te?-A[D]:-P[D],he=t.elements.arrow,ee=p&&he?Le(he):{width:0,height:0},z=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Ot(),se=z[j],ge=z[L],_=ce(0,P[D],ee[D]),Ee=b?P[D]/2-me-_-se-R.mainAxis:Oe-_-se-R.mainAxis,$t=b?-P[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=B+Ee-Ue-Dt,kt=B+$t-Ue,qe=ce(p?we(X,jt):X,B,p?Z(G,kt):G);y[u]=qe,k[u]=qe-B}if(s){var Xe,Tt=u==="x"?M:F,Bt=u==="x"?N:H,K=y[g],ye=g==="y"?"height":"width",ze=K+m[Tt],Ye=K-m[Bt],Re=[M,F].indexOf(w)!==-1,Ge=(Xe=$==null?void 0:$[g])!=null?Xe:0,_e=Re?ze:K-P[ye]-A[ye]-Ge+R.altAxis,Ke=Re?K+P[ye]+A[ye]-Ge-R.altAxis:Ye,Ze=p&&Re?$r(_e,K,Ke):ce(p?_e:ze,K,p?Ke:Ye);y[g]=Ze,k[g]=Ze-K}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)||!V(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=V(t),n=V(t)&&co(t),a=Y(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)),V(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 Or.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),O=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=Po(l,c),[P,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 L=X=>{A(X.placement)};let D=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:X})=>{L(X)}}];i!=null&&(D=D.concat(i)),v&&v.modifiers!=null&&(D=D.concat(v.modifiers));const B=yo(C,w.current,T({placement:y},v,{modifiers:D}));return g.current(B),()=>{B.destroy(),g.current(null)}},[C,s,i,f,v,y]);const $={placement:P};d!==null&&($.TransitionProps=d);const k=Eo(),S=(o=x.root)!=null?o:"div",j=Yt({elementType:S,externalSlotProps:p.root,externalForwardedProps:m,additionalProps:{role:"tooltip",ref:O},ownerState:t,className:k.root});return J.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,O=ae(t,wo),[b,u]=E.useState(!0),g=()=>{u(!1)},y=()=>{u(!0)};if(!i&&!l&&(!d||b))return null;let P;if(a)P=a;else if(o){const R=je(o);P=R&&Oo(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 J.jsx(zt,{disablePortal:s,container:P,children:J.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},O,{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=Be(Ao,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Do=E.forwardRef(function(t,r){var o;const n=qt(),a=Me({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:O,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,P=T({anchorEl:c,container:l,disablePortal:v,keepMounted:h,modifiers:p,open:x,placement:d,popperOptions:m,popperRef:w,transition:O},g);return J.jsx($o,T({as:s,direction:n==null?void 0:n.direction,slots:{root:y},slotProps:u??f},P,{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 Xo(){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 Bo=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],Mo=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=Be("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=Me({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,Bo),O=T({},o,{color:c,component:s,disabled:i,error:f,fullWidth:v,hiddenLabel:h,margin:p,required:x,size:d,variant:m}),b=Mo(O),[u,g]=E.useState(()=>{let S=!1;return n&&E.Children.forEach(n,j=>{if(!Se(j,["Input","Select"]))return;const L=Se(j,["Select"])?j.props.input:j;L&&ko(L.props)&&(S=!0)}),S}),[y,P]=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:()=>{P(!1)},onFilled:()=>{P(!0)},onFocus:()=>{C(!0)},registerEffect:$,required:x,variant:m}),[u,c,i,f,y,R,v,h,$,x,d,m]);return J.jsx(St.Provider,{value:k,children:J.jsx(Fo,T({as:s,ownerState:O,className:Xt(b.root,a),ref:r},w,{children:n}))})}),zo=Wo,Lo=lr({createStyledComponent:Be("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Me({props:e,name:"MuiStack"})}),Yo=Lo;export{zo as F,Uo as P,Yo as S,Ho as a,Xo as b,St as c,Zt as e,qo as f,mt as i,Io as u}; diff --git a/build/assets/Stack-ff0fb8f6.js b/build/assets/Stack-ff0fb8f6.js new file mode 100644 index 000000000..05a61411c --- /dev/null +++ b/build/assets/Stack-ff0fb8f6.js @@ -0,0 +1 @@ +import{r as E,a2 as Mt,w as ae,G as T,c1 as Ft,c2 as Wt,c3 as Lt,c4 as Vt,c5 as Nt,by as Qe,bx as Ae,c6 as Ht,c0 as It,c7 as Ut,j as Q,c8 as Ze,L as ke,z as Te,D as ht,O as et,P as tt,E as Be,c9 as qt,J as Me,N as gt,K as zt}from"./index-2353781d.js";import{o as rt,E as Xt,p as Yt}from"./index-068043a5.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=Mt["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 Kt(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"},Qe({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,Qe({theme:t},c,(i,f)=>e.useFlexGap?{gap:Ze(o,i)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${ir(f?a[f]:e.direction)}`]:Ze(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=Kt(l),{component:h="div",direction:p="column",spacing:x=0,divider:d,children:m,className:w,useFlexGap:O=!1}=v,b=ae(v,tr),u={direction:p,spacing:x,useFlexGap:O},g=n();return Q.jsx(a,T({as:h,ownerState:u,ref:f,className:Qt(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 M="top",N="bottom",H="right",F="left",Fe="auto",de=[M,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",Pr="afterWrite",Or=[vr,mr,hr,gr,yr,br,xr,wr,Pr];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 Z(e){var t=W(e).Element;return e instanceof t||e instanceof Element}function V(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];!V(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},{});!V(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 K=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&&V(e)&&(n=e.offsetWidth>0&&re(o.width)/e.offsetWidth||1,a=e.offsetHeight>0&&re(o.height)/e.offsetHeight||1);var c=Z(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 Le(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 Pt(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 Y(e){return((Z(e)?e.ownerDocument:e.document)||window.document).documentElement}function Pe(e){return U(e)==="html"?e:e.assignedSlot||e.parentNode||(We(e)?e.host:null)||Y(e)}function it(e){return!V(e)||q(e).position==="fixed"?null:e.offsetParent}function Sr(e){var t=/firefox/i.test($e()),r=/Trident/i.test($e());if(r&&V(e)){var o=q(e);if(o.position==="fixed")return null}var n=Pe(e);for(We(n)&&(n=n.host);V(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 Ve(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ce(e,t,r){return K(e,we(t,r))}function $r(e,t,r){var o=ce(e,t,r);return o>r?r:o}function Ot(){return{top:0,right:0,bottom:0,left:0}}function Et(e){return Object.assign({},Ot(),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=Ve(s),f=[F,H].indexOf(s)>=0,l=f?"height":"width";if(!(!a||!c)){var v=Dr(n.padding,r),h=Le(a),p=i==="y"?M: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),O=w?i==="y"?w.clientHeight||0:w.clientWidth||0:0,b=d/2-m/2,u=v[p],g=O-h[l]-v[x],y=O/2-h[l]/2+b,P=ce(u,y,g),A=i;r.modifiersData[o]=(t={},t[A]=P,t.centerOffset=P-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)||Pt(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 Br={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Mr(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"),O=c.hasOwnProperty("y"),b=F,u=M,g=window;if(f){var y=ve(r),P="clientHeight",A="clientWidth";if(y===W(r)&&(y=Y(r),q(y).position!=="static"&&s==="absolute"&&(P="scrollHeight",A="scrollWidth")),y=y,n===M||(n===F||n===H)&&a===ue){u=N;var C=v&&y===g&&g.visualViewport?g.visualViewport.height:y[P];d-=C-o.height,d*=i?1:-1}if(n===F||(n===M||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&&Br),k=l===!0?Mr({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]=O?"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]=O?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 Lr(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 Vr={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Lr,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(Y(e)).left+Ne(e).scrollLeft}function Ir(e,t){var r=W(e),o=Y(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=Y(e),o=Ne(e),n=(t=e.ownerDocument)==null?void 0:t.body,a=K(r.scrollWidth,r.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),c=K(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+=K(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:V(e)&&Ie(e)?e:Rt(Pe(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(Pe(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)):Z(t)?qr(t,r):De(Ur(Y(e)))}function zr(e){var t=fe(Pe(e)),r=["absolute","fixed"].indexOf(q(e).position)>=0,o=r&&V(e)?ve(e):e;return Z(o)?t.filter(function(n){return Z(n)&&Pt(n,o)&&U(n)!=="body"}):[]}function Xr(e,t,r,o){var n=t==="clippingParents"?zr(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=K(l.top,i.top),i.right=we(l.right,i.right),i.bottom=we(l.bottom,i.bottom),i.left=K(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 M: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?Ve(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)),O=h===le?dr:le,b=e.rects.popper,u=e.elements[x?O:h],g=Xr(Z(u)?u:u.contextElement||Y(e.elements.popper),i,l,c),y=oe(e.elements.reference),P=At({reference:y,element:b,strategy:"absolute",placement:n}),A=De(Object.assign({},b,P)),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,L=[M,N].indexOf(S)>=0?"y":"x";R[S]+=k[L]*j})}return R}function Yr(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),O=w===m,b=i||(O||!x?[xe(m)]:Gr(m)),u=[m].concat(b).reduce(function(ee,X){return ee.concat(I(X)===Fe?Yr(t,{placement:X,boundary:l,rootBoundary:v,padding:f,flipVariations:x,allowedAutoPlacements:d}):X)},[]),g=t.rects.reference,y=t.rects.popper,P=new Map,A=!0,C=u[0],R=0;R=0,L=j?"width":"height",D=pe(t,{placement:$,boundary:l,rootBoundary:v,altBoundary:h,padding:f}),B=j?S?H:F:S?N:M;g[L]>y[L]&&(B=xe(B));var z=xe(B),G=[];if(a&&G.push(D[k]<=0),s&&G.push(D[B]<=0,D[z]<=0),G.every(function(ee){return ee})){C=$,A=!1;break}P.set($,G)}if(A)for(var me=x?3:1,Oe=function(X){var se=u.find(function(ge){var _=P.get(ge);if(_)return _.slice(0,X).every(function(Ee){return Ee})});if(se)return C=se,"break"},ie=me;ie>0;ie--){var he=Oe(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[M,H,N,F].some(function(t){return e[t]>=0})}function Kr(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 Qr={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Kr};function Zr(e,t,r){var o=I(e),n=[F,M].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]=Zr(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),O=ne(t.placement),b=!O,u=Ve(w),g=no(u),y=t.modifiersData.popperOffsets,P=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"?M:F,L=u==="y"?N:H,D=u==="y"?"height":"width",B=y[u],z=B+m[j],G=B-m[L],me=p?-A[D]/2:0,Oe=O===te?P[D]:A[D],ie=O===te?-A[D]:-P[D],he=t.elements.arrow,ee=p&&he?Le(he):{width:0,height:0},X=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Ot(),se=X[j],ge=X[L],_=ce(0,P[D],ee[D]),Ee=b?P[D]/2-me-_-se-R.mainAxis:Oe-_-se-R.mainAxis,$t=b?-P[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=B+Ee-Ue-Dt,kt=B+$t-Ue,qe=ce(p?we(z,jt):z,B,p?K(G,kt):G);y[u]=qe,k[u]=qe-B}if(s){var ze,Tt=u==="x"?M:F,Bt=u==="x"?N:H,J=y[g],ye=g==="y"?"height":"width",Xe=J+m[Tt],Ye=J-m[Bt],Re=[M,F].indexOf(w)!==-1,Ge=(ze=$==null?void 0:$[g])!=null?ze:0,_e=Re?Xe:J-P[ye]-A[ye]-Ge+R.altAxis,Je=Re?J+P[ye]+A[ye]-Ge-R.altAxis:Ye,Ke=p&&Re?$r(_e,J,Je):ce(p?_e:Xe,J,p?Je:Ye);y[g]=Ke,k[g]=Ke-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)||!V(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=V(t),n=V(t)&&co(t),a=Y(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)),V(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 Or.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),O=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=Po(l,c),[P,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 L=z=>{A(z.placement)};let D=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:z})=>{L(z)}}];i!=null&&(D=D.concat(i)),v&&v.modifiers!=null&&(D=D.concat(v.modifiers));const B=yo(C,w.current,T({placement:y},v,{modifiers:D}));return g.current(B),()=>{B.destroy(),g.current(null)}},[C,s,i,f,v,y]);const $={placement:P};d!==null&&($.TransitionProps=d);const k=Eo(),S=(o=x.root)!=null?o:"div",j=Yt({elementType:S,externalSlotProps:p.root,externalForwardedProps:m,additionalProps:{role:"tooltip",ref:O},ownerState:t,className:k.root});return Q.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,O=ae(t,wo),[b,u]=E.useState(!0),g=()=>{u(!1)},y=()=>{u(!0)};if(!i&&!l&&(!d||b))return null;let P;if(a)P=a;else if(o){const R=je(o);P=R&&Oo(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 Q.jsx(Xt,{disablePortal:s,container:P,children:Q.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},O,{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=Be(Ao,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Do=E.forwardRef(function(t,r){var o;const n=qt(),a=Me({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:O,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,P=T({anchorEl:c,container:l,disablePortal:v,keepMounted:h,modifiers:p,open:x,placement:d,popperOptions:m,popperRef:w,transition:O},g);return Q.jsx($o,T({as:s,direction:n==null?void 0:n.direction,slots:{root:y},slotProps:u??f},P,{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 zo(){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 Bo=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],Mo=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=Be("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=Me({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,Bo),O=T({},o,{color:c,component:s,disabled:i,error:f,fullWidth:v,hiddenLabel:h,margin:p,required:x,size:d,variant:m}),b=Mo(O),[u,g]=E.useState(()=>{let S=!1;return n&&E.Children.forEach(n,j=>{if(!Se(j,["Input","Select"]))return;const L=Se(j,["Select"])?j.props.input:j;L&&ko(L.props)&&(S=!0)}),S}),[y,P]=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:()=>{P(!1)},onFilled:()=>{P(!0)},onFocus:()=>{C(!0)},registerEffect:$,required:x,variant:m}),[u,c,i,f,y,R,v,h,$,x,d,m]);return Q.jsx(St.Provider,{value:k,children:Q.jsx(Fo,T({as:s,ownerState:O,className:zt(b.root,a),ref:r},w,{children:n}))})}),Xo=Wo,Lo=lr({createStyledComponent:Be("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Me({props:e,name:"MuiStack"})}),Yo=Lo;export{Xo as F,Uo as P,Yo as S,Ho as a,zo as b,St as c,Kt as e,qo as f,mt as i,Io as u}; diff --git a/build/assets/Streamable-77cccbf9.js b/build/assets/Streamable-26990a94.js similarity index 95% rename from build/assets/Streamable-77cccbf9.js rename to build/assets/Streamable-26990a94.js index af852f735..61cd8679c 100644 --- a/build/assets/Streamable-77cccbf9.js +++ b/build/assets/Streamable-26990a94.js @@ -1 +1 @@ -import{a8 as m,r as f}from"./index-1d805415.js";import{u as _,p as b}from"./index-6eb81ca4.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{a3 as m,r as f}from"./index-2353781d.js";import{u as _,p as b}from"./index-057df3f8.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/SucessFeedBackIcon-edca1d93.js b/build/assets/SucessFeedBackIcon-edca1d93.js new file mode 100644 index 000000000..0fac15a96 --- /dev/null +++ b/build/assets/SucessFeedBackIcon-edca1d93.js @@ -0,0 +1 @@ +import{j as e}from"./index-2353781d.js";const s=r=>e.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 50 40",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[e.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"}),e.jsx("circle",{cx:"38",cy:"10",r:"10",fill:"currentColor"}),e.jsx("path",{d:"M34 9.5L37 12.5L42.5 7",stroke:"#23252F","stroke-width":"2.5","stroke-linecap":"round","stroke-linejoin":"round"})]});export{s as S}; diff --git a/build/assets/Tabs-050299f8.js b/build/assets/Tabs-050299f8.js deleted file mode 100644 index 416fe219f..000000000 --- a/build/assets/Tabs-050299f8.js +++ /dev/null @@ -1 +0,0 @@ -import{L as ft,K as pt,M as O,V as Wt,X as Lt,N as b,r as c,P as ht,G as rt,S as L,j as S,U as St,Z as Qt,a2 as Nt,a1 as ut}from"./index-1d805415.js";import{w as $t,s as kt,D as lt,q as te}from"./index-3ac851f3.js";import{c as Ft}from"./createSvgIcon-b68c7390.js";let U;function At(){if(U)return U;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),U="reverse",t.scrollLeft>0?U="default":(t.scrollLeft=1,t.scrollLeft===0&&(U="negative")),document.body.removeChild(t),U}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(Wt,{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,D=rt(a,re),Y=b({},a,{disabled:d,disableFocusRipple:h,selected:I,icon:!!u,iconPosition:m,label:!!T,fullWidth:p,textColor:H,wrapped:nt}),X=ne(Y),N=u&&T&&c.isValidElement(u)?c.cloneElement(u,{className:L(X.iconWrapper,u.props.className)}):u,Z=R=>{!I&&y&&y(R,C),x&&x(R)},_=R=>{g&&!I&&y&&y(R,C),j&&j(R)};return S.jsxs(se,b({focusRipple:!h,className:L(X.root,n),ref:r,role:"tab","aria-selected":I,disabled:d,onClick:Z,onFocus:_,ownerState:Y,tabIndex:I?0:-1},D,{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 Qt(()=>{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(Wt,{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})),Pe=O(pe)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),Pt={},We=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:D={},slotProps:Y={},TabIndicatorProps:X={},TabScrollButtonProps:N={},textColor:Z="primary",value:_,variant:R="standard",visibleScrollbar:st=!1}=a,Ot=rt(a,Te),E=R==="scrollable",B=g==="vertical",K=B?"scrollTop":"scrollLeft",J=B?"top":"left",Q=B?"bottom":"right",at=B?"clientHeight":"clientWidth",V=B?"height":"width",$=b({},a,{component:y,allowScrollButtonsMobile:x,indicatorColor:j,orientation:g,vertical:B,scrollButtons:C,textColor:Z,variant:R,visibleScrollbar:st,fixed:!E,hideScrollbar:E&&!st,scrollableX:E&&!B,scrollableY:E&&B,centered:m&&!E,scrollButtonsHideMobile:!x}),P=Ie($),jt=lt({elementType:D.StartScrollButtonIcon,externalSlotProps:Y.startScrollButtonIcon,ownerState:$}),Ht=lt({elementType:D.EndScrollButtonIcon,externalSlotProps:Y.endScrollButtonIcon,ownerState:$}),[vt,Dt]=c.useState(!1),[k,mt]=c.useState(Pt),[xt,Xt]=c.useState(!1),[gt,_t]=c.useState(!1),[yt,Ut]=c.useState(!1),[Ct,Yt]=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&&_!==!1){const s=F.current.children;if(s.length>0){const f=s[Bt.get(_)];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,[V]:l?l[V]:0};if(isNaN(k[s])||isNaN(k[V]))mt(f);else{const v=Math.abs(k[s]-f[s]),M=Math.abs(k[V]-f[V]);(v>=1||M>=1)&&mt(f)}}),it=(o,{animation:l=!0}={})=>{l?ue(K,z.current,o,{duration:n.transitions.duration.standard}):z.current[K]=o},Tt=o=>{let l=z.current[K];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},Kt=()=>{Tt(-1*It())},Vt=()=>{Tt(It())},qt=c.useCallback(o=>{Yt({overflow:null,scrollbarWidth:o})},[]),Gt=()=>{const o={};o.scrollbarSizeListener=E?S.jsx(Pe,{onChange:qt,className:L(P.scrollableX,P.hideScrollbar)}):null;const i=E&&(C==="auto"&&(xt||gt)||C===!0);return o.scrollButtonStart=i?S.jsx(H,b({slots:{StartScrollButtonIcon:D.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:jt},orientation:g,direction:d?"right":"left",onClick:Kt,disabled:!xt},N,{className:L(P.scrollButtons,N.className)})):null,o.scrollButtonEnd=i?S.jsx(H,b({slots:{EndScrollButtonIcon:D.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:Ht},orientation:g,direction:d?"left":"right",onClick:Vt,disabled:!gt},N,{className:L(P.scrollButtons,N.className)})):null,o},Et=ut(o=>{const{tabsMeta:l,tabMeta:i}=wt();if(!(!i||!l)){if(i[J]l[Q]){const s=l[K]+(i[Q]-l[Q]);it(s,{animation:o})}}}),tt=ut(()=>{E&&C!==!1&&Ut(!yt)});c.useEffect(()=>{const o=$t(()=>{z.current&&q()});let l;const i=v=>{v.forEach(M=>{M.removedNodes.forEach(G=>{var W;(W=l)==null||W.unobserve(G)}),M.addedNodes.forEach(G=>{var W;(W=l)==null||W.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=>{Xt(!dt[0].isIntersecting)},M=new IntersectionObserver(v,f);M.observe(i);const G=dt=>{_t(!dt[0].isIntersecting)},W=new IntersectionObserver(G,f);return W.observe(s),()=>{M.disconnect(),W.disconnect()}}},[E,C,yt,w==null?void 0:w.length]),c.useEffect(()=>{Dt(!0)},[]),c.useEffect(()=>{q()}),c.useEffect(()=>{Et(Pt!==k)},[Et,k]),c.useImperativeHandle(u,()=>({updateIndicator:q,updateScrollButtons:tt}),[q,tt]);const Mt=S.jsx(ze,b({},X,{className:L(P.indicator,X.className),ownerState:$,style:b({},k,X.style)}));let et=0;const Zt=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===_;return et+=1,c.cloneElement(o,b({fullWidth:R==="fullWidth",indicator:i&&!vt&&Mt,selected:i,selectionFollowsFocus:nt,onChange:I,textColor:Z,value:l},et===1&&_===!1&&!o.props.tabIndex?{tabIndex:0}:{}))}),Jt=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(P.root,T),ownerState:$,ref:r,as:y},Ot,{children:[ct.scrollButtonStart,ct.scrollbarSizeListener,S.jsxs(Me,{className:P.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:P.flexContainer,ownerState:$,onKeyDown:Jt,ref:F,role:"tablist",children:Zt}),vt&&Mt]}),ct.scrollButtonEnd]}))}),Fe=We;export{Fe as T,ke as a}; diff --git a/build/assets/Tabs-9bc26124.js b/build/assets/Tabs-9bc26124.js new file mode 100644 index 000000000..ed6576ccf --- /dev/null +++ b/build/assets/Tabs-9bc26124.js @@ -0,0 +1 @@ +import{D as ft,z as pt,E as O,M as Wt,N as Lt,G as b,r as c,J as ht,w as rt,K as L,j as S,L as St,P as Zt,X as Nt,V as ut}from"./index-2353781d.js";import{l as $t,j as kt,p as lt,o as te}from"./index-068043a5.js";import{c as Ft}from"./createSvgIcon-09ff14f6.js";let U;function At(){if(U)return U;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),U="reverse",t.scrollLeft>0?U="default":(t.scrollLeft=1,t.scrollLeft===0&&(U="negative")),document.body.removeChild(t),U}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(Wt,{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,D=rt(a,re),Y=b({},a,{disabled:d,disableFocusRipple:h,selected:I,icon:!!u,iconPosition:m,label:!!T,fullWidth:p,textColor:H,wrapped:nt}),X=ne(Y),N=u&&T&&c.isValidElement(u)?c.cloneElement(u,{className:L(X.iconWrapper,u.props.className)}):u,J=R=>{!I&&y&&y(R,C),x&&x(R)},_=R=>{g&&!I&&y&&y(R,C),j&&j(R)};return S.jsxs(se,b({focusRipple:!h,className:L(X.root,n),ref:r,role:"tab","aria-selected":I,disabled:d,onClick:J,onFocus:_,ownerState:Y,tabIndex:I?0:-1},D,{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(Wt,{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})),Pe=O(pe)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),Pt={},We=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:D={},slotProps:Y={},TabIndicatorProps:X={},TabScrollButtonProps:N={},textColor:J="primary",value:_,variant:R="standard",visibleScrollbar:st=!1}=a,Ot=rt(a,Te),E=R==="scrollable",B=g==="vertical",K=B?"scrollTop":"scrollLeft",Q=B?"top":"left",Z=B?"bottom":"right",at=B?"clientHeight":"clientWidth",V=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}),P=Ie($),jt=lt({elementType:D.StartScrollButtonIcon,externalSlotProps:Y.startScrollButtonIcon,ownerState:$}),Ht=lt({elementType:D.EndScrollButtonIcon,externalSlotProps:Y.endScrollButtonIcon,ownerState:$}),[vt,Dt]=c.useState(!1),[k,mt]=c.useState(Pt),[xt,Xt]=c.useState(!1),[gt,_t]=c.useState(!1),[yt,Ut]=c.useState(!1),[Ct,Yt]=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&&_!==!1){const s=F.current.children;if(s.length>0){const f=s[Bt.get(_)];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,[V]:l?l[V]:0};if(isNaN(k[s])||isNaN(k[V]))mt(f);else{const v=Math.abs(k[s]-f[s]),M=Math.abs(k[V]-f[V]);(v>=1||M>=1)&&mt(f)}}),it=(o,{animation:l=!0}={})=>{l?ue(K,z.current,o,{duration:n.transitions.duration.standard}):z.current[K]=o},Tt=o=>{let l=z.current[K];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},Kt=()=>{Tt(-1*It())},Vt=()=>{Tt(It())},qt=c.useCallback(o=>{Yt({overflow:null,scrollbarWidth:o})},[]),Gt=()=>{const o={};o.scrollbarSizeListener=E?S.jsx(Pe,{onChange:qt,className:L(P.scrollableX,P.hideScrollbar)}):null;const i=E&&(C==="auto"&&(xt||gt)||C===!0);return o.scrollButtonStart=i?S.jsx(H,b({slots:{StartScrollButtonIcon:D.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:jt},orientation:g,direction:d?"right":"left",onClick:Kt,disabled:!xt},N,{className:L(P.scrollButtons,N.className)})):null,o.scrollButtonEnd=i?S.jsx(H,b({slots:{EndScrollButtonIcon:D.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:Ht},orientation:g,direction:d?"left":"right",onClick:Vt,disabled:!gt},N,{className:L(P.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[K]+(i[Z]-l[Z]);it(s,{animation:o})}}}),tt=ut(()=>{E&&C!==!1&&Ut(!yt)});c.useEffect(()=>{const o=$t(()=>{z.current&&q()});let l;const i=v=>{v.forEach(M=>{M.removedNodes.forEach(G=>{var W;(W=l)==null||W.unobserve(G)}),M.addedNodes.forEach(G=>{var W;(W=l)==null||W.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=>{Xt(!dt[0].isIntersecting)},M=new IntersectionObserver(v,f);M.observe(i);const G=dt=>{_t(!dt[0].isIntersecting)},W=new IntersectionObserver(G,f);return W.observe(s),()=>{M.disconnect(),W.disconnect()}}},[E,C,yt,w==null?void 0:w.length]),c.useEffect(()=>{Dt(!0)},[]),c.useEffect(()=>{q()}),c.useEffect(()=>{Et(Pt!==k)},[Et,k]),c.useImperativeHandle(u,()=>({updateIndicator:q,updateScrollButtons:tt}),[q,tt]);const Mt=S.jsx(ze,b({},X,{className:L(P.indicator,X.className),ownerState:$,style:b({},k,X.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===_;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&&_===!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(P.root,T),ownerState:$,ref:r,as:y},Ot,{children:[ct.scrollButtonStart,ct.scrollbarSizeListener,S.jsxs(Me,{className:P.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:P.flexContainer,ownerState:$,onKeyDown:Qt,ref:F,role:"tablist",children:Jt}),vt&&Mt]}),ct.scrollButtonEnd]}))}),Fe=We;export{Fe as T,ke as a}; diff --git a/build/assets/TextareaAutosize-3b102137.js b/build/assets/TextareaAutosize-3b102137.js deleted file mode 100644 index bb27bdd26..000000000 --- a/build/assets/TextareaAutosize-3b102137.js +++ /dev/null @@ -1,2 +0,0 @@ -import{r as o,G as _,Y as I,Z as T,j as v,N as b,a0 as Z}from"./index-1d805415.js";import{s as F,w as D}from"./index-3ac851f3.js";const G=["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 Y=o.forwardRef(function(l,N){const{onChange:R,maxRows:x,minRows:h=1,style:S,value:y}=l,O=_(l,G),{current:k}=o.useRef(y!=null),p=o.useRef(null),A=I(N,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 B=s+(g==="border-box"?w+a:0),L=Math.abs(s-u)<=1;return{outerHeightStyle:B,overflow:L}},[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)||Z.flushSync(()=>{E(d=>C(d,u))})},i=()=>{c.current=0,e()};let n;const t=D(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 j=e=>{c.current=0,k||W(),R&&R(e)};return v.jsxs(o.Fragment,{children:[v.jsx("textarea",b({value:y,onChange:j,ref:A,rows:h,style:b({height:z.outerHeightStyle,overflow:z.overflow?"hidden":void 0},S)},O)),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{Y as T}; diff --git a/build/assets/TextareaAutosize-c42da1c8.js b/build/assets/TextareaAutosize-c42da1c8.js new file mode 100644 index 000000000..569080018 --- /dev/null +++ b/build/assets/TextareaAutosize-c42da1c8.js @@ -0,0 +1,2 @@ +import{r as o,w as _,O as I,P as O,j as v,G as b,U as P}from"./index-2353781d.js";import{j as T,l as U}from"./index-068043a5.js";const D=["onChange","maxRows","minRows","style","value"];function m(r){return parseInt(r,10)||0}const G={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function F(r){return r==null||Object.keys(r).length===0||r.outerHeightStyle===0&&!r.overflow}const q=o.forwardRef(function(l,M){const{onChange:R,maxRows:x,minRows:h=1,style:S,value:y}=l,j=_(l,D),{current:k}=o.useRef(y!=null),p=o.useRef(null),A=I(M,p),H=o.useRef(null),c=o.useRef(0),[z,E]=o.useState({outerHeightStyle:0}),f=o.useCallback(()=>{const e=p.current,n=T(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 B=s+(g==="border-box"?w+a:0),L=Math.abs(s-u)<=1;return{outerHeightStyle:B,overflow:L}},[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();F(e)||E(i=>C(i,e))},[f]);O(()=>{const e=()=>{const u=f();F(u)||P.flushSync(()=>{E(d=>C(d,u))})},i=()=>{c.current=0,e()};let n;const t=U(i),g=p.current,w=T(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]),O(()=>{W()}),o.useEffect(()=>{c.current=0},[y]);const N=e=>{c.current=0,k||W(),R&&R(e)};return v.jsxs(o.Fragment,{children:[v.jsx("textarea",b({value:y,onChange:N,ref:A,rows:h,style:b({height:z.outerHeightStyle,overflow:z.overflow?"hidden":void 0},S)},j)),v.jsx("textarea",{"aria-hidden":!0,className:l.className,readOnly:!0,ref:H,tabIndex:-1,style:b({},G.shadow,S,{paddingTop:0,paddingBottom:0})})]})});export{q as T}; diff --git a/build/assets/Twitch-1ae089b5.js b/build/assets/Twitch-79ac99b3.js similarity index 95% rename from build/assets/Twitch-1ae089b5.js rename to build/assets/Twitch-79ac99b3.js index a6fa93661..6383c4a87 100644 --- a/build/assets/Twitch-1ae089b5.js +++ b/build/assets/Twitch-79ac99b3.js @@ -1 +1 @@ -import{a8 as w,r as D}from"./index-1d805415.js";import{u as C,p as N}from"./index-6eb81ca4.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{a3 as w,r as D}from"./index-2353781d.js";import{u as C,p as N}from"./index-057df3f8.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-5c2f9b73.js b/build/assets/Typography-13640c0b.js similarity index 65% rename from build/assets/Typography-5c2f9b73.js rename to build/assets/Typography-13640c0b.js index f681a1ad3..6644f9311 100644 --- a/build/assets/Typography-5c2f9b73.js +++ b/build/assets/Typography-13640c0b.js @@ -1 +1 @@ -import{K as b,L as B,M as W,X as u,N as s,r as C,P as M,G as P,j as R,S as U,U as j}from"./index-1d805415.js";import{e as N}from"./Stack-2f0ef3f5.js";function L(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,L,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"},z={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},A=a=>z[a]||a,D=C.forwardRef(function(t,r){const n=M({props:t,name:"MuiTypography"}),e=A(n.color),o=N(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=P(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 R.jsx(E,s({as:v,ref:r,ownerState:m,className:U(T.root,i)},x))}),K=D;export{K as T}; +import{z as b,D as B,E as W,N as u,G as s,r as C,J as M,w as R,j as P,K as j,L as N}from"./index-2353781d.js";import{e as U}from"./Stack-ff0fb8f6.js";function E(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 L=["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 N(i,E,p)},$=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"},z={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},D=a=>z[a]||a,J=C.forwardRef(function(t,r){const n=M({props:t,name:"MuiTypography"}),e=D(n.color),o=U(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,L),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($,s({as:v,ref:r,ownerState:m,className:j(T.root,i)},x))}),G=J;export{G as T}; diff --git a/build/assets/Vidyard-f4d3294e.js b/build/assets/Vidyard-862371df.js similarity index 95% rename from build/assets/Vidyard-f4d3294e.js rename to build/assets/Vidyard-862371df.js index 175225b0f..f5c20cd8c 100644 --- a/build/assets/Vidyard-f4d3294e.js +++ b/build/assets/Vidyard-862371df.js @@ -1 +1 @@ -import{a8 as g,r as v}from"./index-1d805415.js";import{u as b,p as O}from"./index-6eb81ca4.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{a3 as g,r as v}from"./index-2353781d.js";import{u as b,p as O}from"./index-057df3f8.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-80d3d98e.js b/build/assets/Vimeo-1c339b7e.js similarity index 96% rename from build/assets/Vimeo-80d3d98e.js rename to build/assets/Vimeo-1c339b7e.js index 9fcc1ef9c..d8260cb4b 100644 --- a/build/assets/Vimeo-80d3d98e.js +++ b/build/assets/Vimeo-1c339b7e.js @@ -1 +1 @@ -import{a8 as d,r as f}from"./index-1d805415.js";import{u as m,p as _}from"./index-6eb81ca4.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{a3 as d,r as f}from"./index-2353781d.js";import{u as m,p as _}from"./index-057df3f8.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/VisibilityOn-aa220caf.js b/build/assets/VisibilityOn-aa220caf.js new file mode 100644 index 000000000..e5bc40465 --- /dev/null +++ b/build/assets/VisibilityOn-aa220caf.js @@ -0,0 +1 @@ +import{j as C}from"./index-2353781d.js";const s=e=>C.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:C.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"})}),t=e=>C.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 56 56",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[C.jsx("path",{d:"M4.75129 14.5773L28 1.1547L51.2487 14.5773V41.4226L28 54.8453L4.75129 41.4226V14.5773Z",stroke:"#47505E","stroke-width":"2"}),C.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"})]}),i=e=>C.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:C.jsxs("g",{id:"delete",children:[C.jsx("mask",{id:"mask0_2401_3378",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:C.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),C.jsx("g",{children:C.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"})})]})}),l=e=>C.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:C.jsx("g",{id:"Type=Edit, Size=20x20",children:C.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"})})}),o=e=>C.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:C.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"})}),h=e=>C.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:C.jsxs("g",{id:"filter_alt_off",children:[C.jsx("mask",{id:"mask0_1543_23288",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:C.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),C.jsx("g",{mask:"url(#mask0_1543_23288)",children:C.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"})})]})}),n=e=>C.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 12 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:C.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"})}),d=e=>C.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:C.jsxs("g",{opacity:"0.4",children:[C.jsx("mask",{id:"mask0_5162_13105",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:C.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),C.jsx("g",{mask:"url(#mask0_5162_13105)",children:C.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"})})]})}),c=e=>C.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[C.jsx("mask",{id:"mask0_5162_13106",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:C.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),C.jsx("g",{mask:"url(#mask0_5162_13106)",children:C.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"})})]}),w=e=>C.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 12 8",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:C.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"})}),x=e=>C.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 22 22",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[C.jsx("mask",{id:"mask0_5577_416",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"22",height:"22",children:C.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),C.jsx("g",{mask:"url(#mask0_5577_416)",children:C.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"})})]}),m=e=>C.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:C.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"})}),g=e=>C.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 18 13",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:C.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"})});export{s as A,t as C,i as D,l as E,h as F,n as M,c as P,w as S,x as T,g as V,d as a,m as b,o as c}; diff --git a/build/assets/VolumeIcon-750bd7e3.js b/build/assets/VolumeIcon-750bd7e3.js new file mode 100644 index 000000000..6ada76a4b --- /dev/null +++ b/build/assets/VolumeIcon-750bd7e3.js @@ -0,0 +1 @@ +import{a3 as h,j as C}from"./index-2353781d.js";var i={exports:{}},c="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",d=c,a=d;function o(){}function l(){}l.resetWarningCache=o;var m=function(){function e(x,g,p,u,L,n){if(n!==a){var t=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 t.name="Invariant Violation",t}}e.isRequired=e;function r(){return e}var s={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:l,resetWarningCache:o};return s.PropTypes=s,s};i.exports=m();var w=i.exports;const v=h(w),_=e=>C.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 10 10",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:C.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"})}),f=e=>C.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 15 13",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:C.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"})}),H=e=>C.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:C.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"})}),k=e=>C.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:C.jsxs("g",{id:"arrow_forward",children:[C.jsx("mask",{id:"mask0_8980_24763",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:C.jsx("rect",{id:"Bounding box",x:"20",y:"20",width:"1em",height:"1em",transform:"rotate(-180 20 20)",fill:"currentColor"})}),C.jsx("g",{mask:"url(#mask0_8980_24763)",children:C.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"})})]})}),V=e=>C.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 9 9",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:C.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"})}),M=e=>C.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:C.jsxs("g",{id:"browse_gallery",children:[C.jsx("mask",{id:"mask0_1360_27257",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:C.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),C.jsx("g",{mask:"url(#mask0_1360_27257)",children:C.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"})})]})}),Z=e=>C.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 10 6",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:C.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"})}),y=e=>C.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 18 18",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:C.jsxs("g",{id:"keyboard_arrow_left",children:[C.jsx("mask",{id:"mask0_1428_267",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"18",height:"18",children:C.jsx("path",{id:"Bounding box",d:"M0 0H18V18H0V0Z",fill:"currentColor"})}),C.jsx("g",{mask:"url(#mask0_1428_267)",children:C.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"})})]})}),B=e=>C.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 18 18",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:C.jsxs("g",{id:"chevron_right",children:[C.jsx("mask",{id:"mask0_1247_21809",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"18",height:"18",children:C.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),C.jsx("g",{mask:"url(#mask0_1247_21809)",children:C.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"})})]})}),S=e=>C.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 10 6",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:C.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"})}),U=e=>C.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 32 32",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:C.jsxs("g",{id:"cancel",children:[C.jsx("mask",{id:"mask0_1264_3381",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"32",height:"32",children:C.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),C.jsx("g",{mask:"url(#mask0_1264_3381)",children:C.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"})})]})}),I=e=>C.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:C.jsxs("g",{id:"content_copy",children:[C.jsx("mask",{id:"mask0_1489_75628",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:C.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),C.jsx("g",{mask:"url(#mask0_1489_75628)",children:C.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"})})]})}),b=e=>C.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",children:[C.jsx("mask",{id:"mask0_2638_2680",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:C.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),C.jsx("g",{mask:"url(#mask0_2638_2680)",children:C.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"})})]}),O=e=>C.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 32 32",fill:"currentColor",children:[C.jsx("mask",{id:"mask0_4160_9271",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"32",height:"32",children:C.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),C.jsx("g",{mask:"url(#mask0_4160_9271)",children:C.jsx("path",{d:"M11 25V21H7V19H13V25H11ZM19 25V19H25V21H21V25H19ZM7 13V11H11V7H13V13H7ZM19 13V7H21V11H25V13H19Z",fill:"currentColor"})})]}),T=e=>C.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 22 22",fill:"currentColor",children:[C.jsx("mask",{id:"mask0_3130_18463",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"22",height:"22",children:C.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),C.jsx("g",{mask:"url(#mask0_3130_18463)",children:C.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"})})]}),P=e=>C.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:C.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"})}),R=e=>C.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:C.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"})}),E=e=>C.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:C.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"})}),F=e=>C.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:C.jsx("g",{id:"Icons 20x20",children:C.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"})})}),D=e=>C.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:C.jsxs("g",{id:"volume_mute",children:[C.jsx("mask",{id:"mask0_1483_75386",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:C.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),C.jsxs("g",{mask:"url(#mask0_1483_75386)",children:[C.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"}),C.jsx("path",{id:"mute_line",d:"M6 21L21 4",stroke:"#808080","stroke-width":"2","stroke-linecap":"round"})]})]})}),A=e=>C.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:C.jsxs("g",{id:"notes",children:[C.jsx("mask",{id:"mask0_1473_73722",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"16",height:"16",children:C.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),C.jsx("g",{mask:"url(#mask0_1473_73722)",children:C.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"})})]})}),N=e=>C.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[C.jsx("mask",{id:"mask0_5099_7163",maskUnits:"userSpaceOnUse",x:"2",y:"2",width:"16",height:"16",children:C.jsx("rect",{x:"2",y:"2",width:"1em",height:"1em",fill:"currentColor"})}),C.jsx("g",{mask:"url(#mask0_5099_7163)",children:C.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"})})]}),W=e=>C.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:C.jsxs("g",{id:"schedule",children:[C.jsx("mask",{id:"mask0_4051_4016",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:C.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),C.jsx("g",{mask:"url(#mask0_4051_4016)",children:C.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"})})]})}),G=e=>C.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:C.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"})}),q=e=>C.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:C.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"})}),Y=e=>C.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[C.jsx("mask",{id:"mask0_1259_28",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:C.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),C.jsx("g",{mask:"url(#mask0_1259_28)",children:C.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"})})]}),$=e=>C.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:C.jsx("g",{id:"Menu icons",children:C.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"})})}),z=e=>C.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:C.jsxs("g",{id:"stacks",children:[C.jsx("mask",{id:"mask0_8417_33308",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:C.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),C.jsx("g",{mask:"url(#mask0_8417_33308)",children:C.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"})})]})}),J=e=>C.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:C.jsxs("g",{id:"volume_up",children:[C.jsx("mask",{id:"mask0_1483_75386",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:C.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),C.jsx("g",{mask:"url(#mask0_1483_75386)",children:C.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"})})]})});export{_ as A,V as B,U as C,b as D,O as E,T as F,P as G,E as H,F as L,D as M,A as N,v as P,N as R,z as S,J as V,f as a,$ as b,S as c,Z as d,H as e,k as f,M as g,Y as h,R as i,G as j,q as k,I as l,W as m,y as n,B as o,w as p}; diff --git a/build/assets/Wistia-0ff1df4a.js b/build/assets/Wistia-341ad116.js similarity index 96% rename from build/assets/Wistia-0ff1df4a.js rename to build/assets/Wistia-341ad116.js index 738490e41..916050c78 100644 --- a/build/assets/Wistia-0ff1df4a.js +++ b/build/assets/Wistia-341ad116.js @@ -1 +1 @@ -import{a8 as m,r as g}from"./index-1d805415.js";import{u as v,p as w}from"./index-6eb81ca4.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{a3 as m,r as g}from"./index-2353781d.js";import{u as v,p as w}from"./index-057df3f8.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-7562d82d.js b/build/assets/YouTube-f9411286.js similarity index 97% rename from build/assets/YouTube-7562d82d.js rename to build/assets/YouTube-f9411286.js index 329e7e035..fd3b6a2c9 100644 --- a/build/assets/YouTube-7562d82d.js +++ b/build/assets/YouTube-f9411286.js @@ -1 +1 @@ -import{a8 as U,r as I}from"./index-1d805415.js";import{u as L,p as Y}from"./index-6eb81ca4.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{a3 as U,r as I}from"./index-2353781d.js";import{u as L,p as Y}from"./index-057df3f8.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-167ef3c0.js b/build/assets/constants-e4e2b00b.js similarity index 68% rename from build/assets/constants-167ef3c0.js rename to build/assets/constants-e4e2b00b.js index a7dd32859..ccb7d747b 100644 --- a/build/assets/constants-167ef3c0.js +++ b/build/assets/constants-e4e2b00b.js @@ -1,8 +1,8 @@ -import{s,b0 as t,a_ as a,a$ as o,b1 as n}from"./index-1d805415.js";import{e as c}from"./index-3ac851f3.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/",b=s(c)` +import{s,aZ as t,aX as a,aY as o,a_ as n}from"./index-2353781d.js";import{I as c}from"./index-068043a5.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; padding: 4px; transition: background-color 150ms cubic-bezier(0.4, 0, 0.2, 1); } -`;export{_ as A,u as D,p as E,A as I,E as Q,b as S,d as T,S as V,l as a,I as b,r as c,i as s}; +`;export{_ as A,u as D,p as E,A as I,E as Q,L as S,d as T,S as V,l as a,I as b,r as c,i as s}; diff --git a/build/assets/createSvgIcon-b68c7390.js b/build/assets/createSvgIcon-09ff14f6.js similarity index 67% rename from build/assets/createSvgIcon-b68c7390.js rename to build/assets/createSvgIcon-09ff14f6.js index 4f31285bb..1ed8ba280 100644 --- a/build/assets/createSvgIcon-b68c7390.js +++ b/build/assets/createSvgIcon-09ff14f6.js @@ -1 +1 @@ -import{K as I,L as C,M as w,X as f,r as v,P as R,G as N,N as S,j as g,S as b,U as j}from"./index-1d805415.js";function M(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 j(n,M,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=N(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:b(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{z as I,D as C,E as w,N as f,r as v,J as R,w as N,G as g,j as S,K as b,L as j}from"./index-2353781d.js";function A(o){return I("MuiSvgIcon",o)}C("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const B=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],E=o=>{const{color:e,fontSize:t,classes:i}=o,n={root:["root",e!=="inherit"&&`color${f(e)}`,`fontSize${f(t)}`]};return j(n,A,i)},M=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]}}),z=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=N(i,B),l=v.isValidElement(n)&&n.type==="svg",y=g({},i,{color:m,component:a,fontSize:h,instanceFontSize:e.fontSize,inheritViewBox:d,viewBox:s,hasSvgAsChild:l}),x={};d||(x.viewBox=s);const _=E(y);return S.jsxs(M,g({as:a,className:b(_.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?S.jsx("title",{children:r}):null]}))});z.muiName="SvgIcon";const $=z;function U(o,e){function t(i,n){return S.jsx($,g({"data-testid":`${e}Icon`,ref:n},i,{children:o}))}return t.muiName=$.muiName,v.memo(v.forwardRef(t))}export{U as c}; diff --git a/build/assets/index-02556457.js b/build/assets/index-02556457.js new file mode 100644 index 000000000..38911cd9f --- /dev/null +++ b/build/assets/index-02556457.js @@ -0,0 +1,47 @@ +import{s as c,a as N,T as _,F as s,a0 as x,h as O,r as d,j as e,aT as k,aU as P,i as V,u as G,k as q,B as F,br as H,bs as Y,aW as J}from"./index-2353781d.js";import{f as I}from"./index-068043a5.js";import{E as K}from"./EditNodeIcon-665ec0f5.js";import{T as Q}from"./index-33375362.js";import{S as X}from"./Skeleton-d97f7e12.js";import{C as Z}from"./ClipLoader-c90857c8.js";const ee=/^https:\/\/\S+\.(png|jpe?g|svg)$/;function te(i){return!!ee.test(i)}function oe(i){return i.split("_").map(p=>p.charAt(0).toUpperCase()+p.slice(1)).join(" ")}const ae=()=>{const{open:i}=x("changeNodeType"),{close:p}=x("editNodeName"),{changeNodeTypeFeatureFlag:y}=O(a=>({changeNodeTypeFeatureFlag:a.changeNodeTypeFeatureFlag})),o=I(),j=o==null?void 0:o.node_type,[m,g]=d.useState({});d.useEffect(()=>{o!=null&&o.properties&&g(o.properties)},[o]);const b=()=>{p(),i()},h=(a,n)=>{g(T=>({...T,[a]: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(ne,{children:"Edit Node"}),e.jsxs(se,{children:[e.jsx(Q,{type:j}),y&&e.jsx(ie,{onClick:b,children:e.jsx(K,{})})]})]})}),e.jsx(ce,{children:Object.keys(m).map(a=>e.jsxs(s,{mb:18,children:[e.jsx(re,{style:{marginBottom:8},children:oe(a)}),e.jsx(k,{id:`cy-${a}`,maxLength:50,name:`properties.${a}`,onChange:n=>h(a,n),placeholder:`Please Enter the ${a}`,rules:a==="name"?{...P}:{}})]},a))})]})},ne=c(_)` + font-size: 22px; + font-weight: 600; + font-family: 'Barlow'; +`,re=c(_)` + color: ${N.GRAY6}; + font-family: 'Barlow'; + font-size: 12px; + font-weight: 400; + line-height: 18px; +`,se=c.span` + display: inline-flex; + align-items: center; + justify-content: center; + gap: 15px; + margin: 5px 0 0 40px; +`,ie=c(s)` + align-items: center; + cursor: pointer; +`,ce=c(s)` + display: flex; + max-height: 60vh; + overflow-y: auto; + padding-right: 40px; + width: calc(100% + 40px); +`,le=()=>{var v,w,S;const{close:i}=x("editNodeName"),p=V({mode:"onChange"}),{watch:y,setValue:o,reset:j,getValues:m}=p,[g,b]=d.useState(!1),[h,a]=d.useState(!1),[n,T]=d.useState(),t=I(),D=G(r=>r.updateNode),{open:B}=x("removeNode");d.useEffect(()=>(n?Object.keys(n).forEach(r=>{o(r,n[r])}):t&&Object.keys(t).forEach(r=>{o(r,t[r])}),()=>{j()}),[n,o,j,t]),d.useEffect(()=>{(async()=>{if(!(!t||t.type!=="topic")){a(!0);try{const{data:u}=await H({search:t==null?void 0:t.name}),f=u.find(A=>A.name===t.name);T(f)}catch(u){console.error(u)}finally{a(!1)}}})()},[t]);const L=y("imageInputType"),C=y("image_url");d.useEffect(()=>{o("imageInputType",te(C))},[C,o]);const R=()=>{i()},l=n||t,$=async()=>{if(!l)return;b(!0);const r=m(),u={name:r.name,image_url:r.image_url,properties:r.properties};try{const f={node_type:l.node_type,ref_id:l.ref_id,properties:u.properties};await Y((l==null?void 0:l.ref_id)||"",f),D({...l,...u}),R()}catch(f){console.warn(f)}finally{b(!1)}},U=async()=>{B()},E=(w=(v=m())==null?void 0:v.name)==null?void 0:w.trim(),z=E&&(n==null?void 0:n.name.trim())!==E,M=m().image_url&&(t==null?void 0:t.image_url)!==((S=m())==null?void 0:S.image_url),W=g||h||!!C&&!L||!z&&!M;return e.jsx(de,{children:e.jsxs(q,{...p,children:[h?e.jsx(s,{my:24,children:e.jsx(X,{})}):e.jsx(ae,{}),e.jsxs(s,{direction:"row",justify:"space-between",mt:20,children:[e.jsx(s,{direction:"column",children:e.jsx(pe,{color:"secondary",disabled:h||!l,onClick:U,size:"large",variant:"contained",children:"Delete"})}),e.jsxs(ue,{color:"secondary",disabled:W,onClick:$,size:"large",variant:"contained",children:["Save Changes",g&&e.jsx(me,{children:e.jsx(Z,{color:N.lightGray,size:12})})]})]})]})})},de=c(s)` + padding: 20px; +`,pe=c(F)` + && { + color: ${N.primaryRed}; + background-color: rgba(237, 116, 116, 0.1); + flex: 1; + margin-right: 10px; + + &:hover, + &:active, + &:focus { + color: ${N.primaryRed}; + background-color: rgba(237, 116, 116, 0.2); + } + } +`,me=c.span` + margin-top: 4px; +`,ue=c(F)` + width: 80% !important; + margin: 0 auto !important; +`,be=()=>{const{close:i}=x("editNodeName");return e.jsx(J,{id:"editNodeName",kind:"regular",onClose:i,preventOutsideClose:!0,children:e.jsx(le,{})})};export{be as EditNodeNameModal}; diff --git a/build/assets/index-04df737c.js b/build/assets/index-04df737c.js new file mode 100644 index 000000000..b334be3db --- /dev/null +++ b/build/assets/index-04df737c.js @@ -0,0 +1,92 @@ +import{r,j as e,bm as A,a6 as B,F as h,C as F,bb as O,bn as _,s as l,T as N,a0 as E,i as z,k as D,a as C,B as M,bo as Y,aW as P}from"./index-2353781d.js";import{f as X}from"./index-068043a5.js";import{N as G,F as H,A as R}from"./NodeCircleIcon-6e372d93.js";import{A as I,T as W}from"./index-da8a239d.js";import{S as V,A as $}from"./constants-e4e2b00b.js";import{C as T}from"./ClipLoader-c90857c8.js";import"./index-33375362.js";import"./Stack-ff0fb8f6.js";import"./createSvgIcon-09ff14f6.js";import"./TextareaAutosize-c42da1c8.js";const q=({selectedType:t,setSelectedType:c})=>{const[p,d]=r.useState([]);r.useEffect(()=>{(async()=>{try{const{data:x}=await A();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 B.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(V,{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(G,{})}),e.jsx(ae,{onClick:x,children:e.jsx(H,{})}),e.jsx(ie,{children:e.jsx(R,{})})]})]})]})},Q=l.div` + position: absolute; + top: 26px; + bottom: 26px; + left: 4px; + width: 35px; + border-left: 1.5px solid #6b7a8d4d; + border-top: 1.5px solid #6b7a8d4d; + border-bottom: 1.5px solid #6b7a8d4d; + border-radius: 12px 0 0 12px; +`,U=l(N)` + font-size: 22px; + font-weight: 600; +`,Z=l.div` + position: relative; + color: white; + font-family: 'Barlow'; + display: flex; + flex-direction: ${t=>t.swap?"column-reverse":"column"}; + margin-bottom: 10px; + padding-left: 38px; +`,ee=l(W)` + position: relative; + width: 100%; + padding: 16px; + gap: 10px; + border-radius: 6px; + border: 1px solid #6b7a8d4d; + opacity: 0px; + display: flex; +`,te=l.div` + position: relative; + width: 100%; + padding: 15px; + gap: 10px; + border-radius: 6px; + border: 1.4px solid #6b7a8d4d; + opacity: 0px; + display: flex; + align-items: center; +`,oe=l.label` + color: #bac1c6; + font-size: 13px; + font-weight: 400; + line-height: 18px; + letter-spacing: 0.01em; + text-align: left; + margin-bottom: 6px; +`,se=l.label` + color: #bac1c6; + background-color: #23252f; + font-size: 13px; + font-weight: 400; + line-height: 18px; + letter-spacing: 0.01em; + text-align: left; + position: absolute; + left: 15px; + top: -10px; +`,ne=l.div` + position: absolute; + top: 0; + right: 0; + transform: translateY(-50%) translateX(50%); + color: #23252f; +`,ae=l.div` + position: absolute; + color: transparent; + top: 50%; + left: 0; + transform: translateY(-50%) translateX(-50%); + cursor: pointer; + width: 32px; + height: 32px; + background-color: #303342; + display: flex; + justify-content: center; + align-items: center; + border-radius: 8px; +`,ie=l.div` + position: absolute; + bottom: 0; + right: 0; + transform: translateY(10px) translateX(3px); + color: #6b7a8d; + line-height: 1; +`,re=()=>{const{close:t}=E("addEdgeToNode"),c=z({mode:"onChange"}),[p,d]=r.useState(!1),[n,f]=r.useState(""),[o,x]=r.useState(!1),[m,j]=r.useState(!1),[a,v]=r.useState(null),[s,u]=r.useState(),i=X();r.useEffect(()=>{(async()=>{if(i){j(!0);try{if(i.type==="topic"){const{data:y}=await _(i==null?void 0:i.name,{exact_match:"true",node_type:"topic"}),L=y.find(k=>k.node_type==="topic");u(L)}}catch(y){console.error(y)}finally{j(!1)}}})()},[i]);const S=()=>{t()},w=async()=>{const g=s||i;if(!(!a||!(g!=null&&g.ref_id))){d(!0);try{await Y({relationship:n,...o?{to:g.ref_id,from:a==null?void 0:a.ref_id}:{from:g.ref_id,to:a==null?void 0:a.ref_id}}),S()}catch(y){console.warn(y)}finally{d(!1)}}},b=p||!a||!n;return e.jsxs(D,{...c,children:[m?e.jsx(h,{align:"center",my:24,children:e.jsx(T,{color:C.lightGray,size:24})}):e.jsx(K,{from:s??i,isSwapped:o,onSelect:v,selectedToNode:a,selectedType:n,setIsSwapped:()=>x(!o),setSelectedType:f}),e.jsxs(le,{color:"secondary",disabled:b,onClick:w,size:"large",variant:"contained",children:["Confirm",p&&e.jsx(ce,{children:e.jsx(T,{color:C.lightGray,size:12})})]})]})},le=l(M)` + width: 293px !important; + margin: 0 0 10px auto !important; +`,ce=l.span` + margin-top: 2px; +`,je=()=>{const{close:t}=E("addEdgeToNode");return e.jsx(P,{id:"addEdgeToNode",kind:"small",onClose:t,preventOutsideClose:!0,children:e.jsx(re,{})})};export{je as AddNodeEdgeModal}; diff --git a/build/assets/index-6eb81ca4.js b/build/assets/index-057df3f8.js similarity index 96% rename from build/assets/index-6eb81ca4.js rename to build/assets/index-057df3f8.js index a1367962b..da354cc9b 100644 --- a/build/assets/index-6eb81ca4.js +++ b/build/assets/index-057df3f8.js @@ -1,4 +1,4 @@ -import{ad as XA,ae as xa,i as Bv,af as HD,r as M,ag as ZA,Y as Vs,Z as WD,a1 as Bs,N as ce,j as h,L as hb,K as mb,M as Pr,ah as VD,X as Jt,O as Yi,P as bb,G as Gl,S as Lr,U as yb,a2 as zl,ai as YD,aj as KD,ak as JA,s as B,a as P,aa as QA,al as vb,o as ql,F,t as XD,u as ur,b as jo,n as Na,am as eO,v as ZD,T as Ze,an as JD,B as Mt,x as dn,k as Nt,d as Sb,A as $r,ao as ti,ap as Tt,aq as QD,a8 as ft,q as tO,C as rO,ar as eM,as as nO,e as Uv,p as tM,at as aO,au as iO,av as ri,aw as Ce,H as U,ax as rM,ay as nM,az as aM,aA as Hl,aB as iM,aC as oM,aD as sM,aE as lM,aF as oO,aG as uM,aH as Wl,aI as cM,aJ as dM,aK as pM,aL as fM,aM as gM,aN as Gv,l as hM,aO as mM,aP as bM,I as yM,aQ as vM,D as SM,_ as ir,aR as EM,aS as xM}from"./index-1d805415.js";import{v as na,q as Us,r as sc,s as sO,t as wM,w as _M,x as TM,y as zv,z as Gs,D as Tn,G as qv,J as bs,K as lO,L as uO,Q as cO,R as AM,U as Eb,W as dO,X as vn,Y as pO,f as xb,Z as OM,u as Fo,_ as kM,$ as wb,a0 as Vl,a1 as RM,a2 as IM,P as CM,a3 as fO,a4 as NM,a5 as LM,a6 as DM,a7 as MM,c as _b,d as Tb,a8 as PM,a9 as $M,aa as jM,l as Pt,ab as gO,ac as FM,e as hO,ad as BM,b as Bo,M as UM,V as GM,ae as zM,af as qM,p as HM,ag as mO,ah as WM}from"./index-3ac851f3.js";import{c as VM,a as lc,C as Yl}from"./ClipLoader-9eb1180c.js";import{S as bO}from"./Skeleton-633e7f1d.js";import{u as yO,P as Ab,a as YM,F as KM}from"./Stack-2f0ef3f5.js";import{S as Ob,u as XM}from"./index-80a17f62.js";import{T as ni}from"./index-5b7bb80c.js";import{S as ZM,F as Hv,i as Uo,g as vr,t as JM,_ as vO,a as QM,b as eP,c as ia,d as kb,e as tP,f as rP,h as nP,j as Go,m as aP,k as iP,l as oP,n as SO,o as sP,p as lP}from"./isPlainObject-44e85bf8.js";import{c as Rb}from"./createSvgIcon-b68c7390.js";import{P as we,p as uP}from"./index-4dcb3294.js";const Wv="023d8eb306f0027b902fbdc81d33b49b6558b3434d374626f8c324979c92d47c21",cP=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(Wv,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 cP(t),n={amount:t,refid:e};return await XA.post("/boost",JSON.stringify(n)),r};function Ib(e){return e?String(e).replace(/[[]{2}/g,"").replace(/[\]]{2}/g,""):""}const pP=e=>{const[t,r]=e.split("-")||["",""];return parseInt(r,10)!==0?`${t} - ${r}`:t},EO=(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=Bv.groupBy(r,i=>i.timestamp),a=Bv.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},fP=async e=>{await HD(async()=>{try{await xa.saveGraphData({metaData:{date:Math.floor(new Date().getTime()/1e3),...e},type:"second_brain_consumed_content"})}catch(t){console.warn(t)}})},gP=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},hP={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},mP=hP;function bP(e,t,r=(n,a)=>n===a){return e.length===t.length&&e.every((n,a)=>r(n,t[a]))}const yP=2;function xO(e,t){return e-t}function mi(e,t,r){return e==null?t:Math.min(Math.max(t,e),r)}function Vv(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}%`})}},wP=e=>e;let Es;function uc(){return Es===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?Es=CSS.supports("touch-action","none"):Es=!0),Es}function _P(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=wP,step:v=1,tabIndex:S,value:O}=e,_=M.useRef(),[w,A]=M.useState(-1),[x,E]=M.useState(-1),[k,C]=M.useState(!1),I=M.useRef(0),[N,D]=yO({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(N);let H=q?N.slice().sort(xO):[N];H=H.map(te=>mi(te,l,s));const z=o===!0&&v!==null?[...Array(Math.floor((s-l)/v)+1)].map((te,de)=>({value:l+v*de})):o||[],W=z.map(te=>te.value),{isFocusVisibleRef:K,onBlur:G,onFocus:V,ref:J}=ZA(),[ae,re]=M.useState(-1),ue=M.useRef(),Se=Vs(J,ue),Q=Vs(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)};WD(()=>{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 Le=de.target.valueAsNumber;if(z&&v==null){const Ge=W[W.length-1];Le>Ge?Le=Ge:Le{const{current:ye}=ue,{width:ve,height:ge,bottom:qe,left:Le}=ye.getBoundingClientRect();let Ge;oe.indexOf("vertical")===0?Ge=(qe-te.y)/ge:Ge=(te.x-Le)/ve,oe.indexOf("-reverse")!==-1&&(Ge=1-Ge);let Qe;if(Qe=vP(Ge,l,s),v)Qe=EP(Qe,v,l);else{const rr=Vv(W,Qe);Qe=W[rr]}Qe=mi(Qe,l,s);let jt=0;if(q){de?jt=ee.current:jt=Vv(H,Qe),a&&(Qe=mi(Qe,H[jt-1]||-1/0,H[jt+1]||1/0));const rr=Qe;Qe=Yv({values:H,newValue:Qe,index:jt}),a&&de||(jt=Qe.indexOf(rr),ee.current=jt)}return{newValue:Qe,activeIndex:jt}},X=Bs(te=>{const de=ys(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});vs({sliderRef:ue,activeIndex:ve,setActive:A}),D(ye),!k&&I.current>yP&&C(!0),j&&!Ss(ye,N)&&j(te,ye,ve)}),Ee=Bs(te=>{const de=ys(te,_);if(C(!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=Bs(te=>{if(n)return;uc()||te.preventDefault();const de=te.changedTouches[0];de!=null&&(_.current=de.identifier);const ye=ys(te,_);if(ye!==!1){const{newValue:ge,activeIndex:qe}=ie({finger:ye});vs({sliderRef:ue,activeIndex:qe,setActive:A}),D(ge),j&&!Ss(ge,N)&&j(te,ge,qe)}I.current=0;const ve=Us(ue.current);ve.addEventListener("touchmove",X),ve.addEventListener("touchend",Ee)}),he=M.useCallback(()=>{const te=Us(ue.current);te.removeEventListener("mousemove",X),te.removeEventListener("mouseup",Ee),te.removeEventListener("touchmove",X),te.removeEventListener("touchend",Ee)},[Ee,X]);M.useEffect(()=>{const{current:te}=ue;return te.addEventListener("touchstart",fe,{passive:uc()}),()=>{te.removeEventListener("touchstart",fe,{passive:uc()}),he()}},[he,fe]),M.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=ys(de,_);if(ve!==!1){const{newValue:qe,activeIndex:Le}=ie({finger:ve});vs({sliderRef:ue,activeIndex:Le,setActive:A}),D(qe),j&&!Ss(qe,N)&&j(de,qe,Le)}I.current=0;const ge=Us(ue.current);ge.addEventListener("mousemove",X),ge.addEventListener("mouseup",Ee)},at=Ys(q?H[0]:l,l,s),tt=Ys(H[H.length-1],l,s)-at,tr=(te={})=>{const de=sc(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:xP,dragging:k,focusedThumbIndex:ae,getHiddenInputProps:(te={})=>{var de;const ye=sc(te),ve={onChange:xe(ye||{}),onFocus:Ie(ye||{}),onBlur:Ue(ye||{})},ge=ce({},ye,ve);return ce({tabIndex:S,"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({},mP,{direction:i?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:tr,getThumbProps:(te={})=>{const de=sc(te),ye={onMouseOver:Pe(de||{}),onMouseLeave:$e(de||{})};return ce({},te,de,ye)},marks:z,open:x,range:q,rootRef:Q,trackLeap:tt,trackOffset:at,values:H,getThumbStyle:te=>({pointerEvents:w!==-1&&w!==te?"none":void 0})}}const TP=Rb(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"),AP=Rb(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"),OP=Rb(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 kP(e){return mb("MuiCheckbox",e)}const RP=hb("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),cc=RP,IP=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],CP=e=>{const{classes:t,indeterminate:r,color:n,size:a}=e,i={root:["root",r&&"indeterminate",`color${Jt(n)}`,`size${Jt(a)}`]},o=yb(i,kP,t);return ce({},t,o)},NP=Pr(ZM,{shouldForwardProp:e=>VD(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})`:Yi(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${cc.checked}, &.${cc.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${cc.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),LP=h.jsx(AP,{}),DP=h.jsx(TP,{}),MP=h.jsx(OP,{}),PP=M.forwardRef(function(t,r){var n,a;const i=bb({props:t,name:"MuiCheckbox"}),{checkedIcon:o=LP,color:s="primary",icon:l=DP,indeterminate:c=!1,indeterminateIcon:d=MP,inputProps:p,size:g="medium",className:m}=i,b=Gl(i,IP),v=c?d:l,S=c?d:o,O=ce({},i,{color:s,indeterminate:c,size:g}),_=CP(O);return h.jsx(NP,ce({type:"checkbox",inputProps:ce({"data-indeterminate":c},p),icon:M.cloneElement(v,{fontSize:(n=v.props.fontSize)!=null?n:g}),checkedIcon:M.cloneElement(S,{fontSize:(a=S.props.fontSize)!=null?a:g}),ownerState:O,ref:r,className:Lr(_.root,m)},b,{classes:_}))}),$P=PP,jP=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function FP(e,t,r){const n=t.getBoundingClientRect(),a=r&&r.getBoundingClientRect(),i=sO(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 BP(e){return typeof e=="function"?e():e}function xs(e,t,r){const n=BP(r),a=FP(e,t,n);a&&(t.style.webkitTransform=a,t.style.transform=a)}const UP=M.forwardRef(function(t,r){const n=zl(),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:v,onExit:S,onExited:O,onExiting:_,style:w,timeout:A=i,TransitionComponent:x=wM}=t,E=Gl(t,jP),k=M.useRef(null),C=Vs(l.ref,k,r),I=G=>V=>{G&&(V===void 0?G(k.current):G(k.current,V))},N=I((G,V)=>{xs(d,G,c),TM(G),m&&m(G,V)}),D=I((G,V)=>{const J=zv({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",v&&v(G,V)}),j=I(b),q=I(_),H=I(G=>{const V=zv({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),xs(d,G,c),S&&S(G)}),z=I(G=>{G.style.webkitTransition="",G.style.transition="",O&&O(G)}),W=G=>{o&&o(k.current,G)},K=M.useCallback(()=>{k.current&&xs(d,k.current,c)},[d,c]);return M.useEffect(()=>{if(g||d==="down"||d==="right")return;const G=_M(()=>{k.current&&xs(d,k.current,c)}),V=sO(k.current);return V.addEventListener("resize",G),()=>{G.clear(),V.removeEventListener("resize",G)}},[d,g,c]),M.useEffect(()=>{g||K()},[g,K]),h.jsx(x,ce({nodeRef:k,onEnter:N,onEntered:j,onEntering:D,onExit:H,onExited:z,onExiting:q,addEndListener:W,appear:s,in:g,timeout:A},E,{children:(G,V)=>M.cloneElement(l,ce({ref:C,style:ce({visibility:G==="exited"&&!g?"hidden":void 0},w,l.props.style)},V))}))}),La=UP,GP=e=>!e||!Gs(e),zP=GP;function qP(e){return mb("MuiSlider",e)}const HP=hb("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=HP,WP=e=>{const{open:t}=e;return{offset:Lr(t&&Dr.valueLabelOpen),circle:Dr.valueLabelCircle,label:Dr.valueLabelLabel}};function VP(e){const{children:t,className:r,value:n}=e,a=WP(e);return t?M.cloneElement(t,{className:Lr(t.props.className)},h.jsxs(M.Fragment,{children:[t.props.children,h.jsx("span",{className:Lr(a.offset,r),"aria-hidden":!0,children:h.jsx("span",{className:a.circle,children:h.jsx("span",{className:a.label,children:n})})})]})):null}const YP=["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 Kv(e){return e}const KP=Pr("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"}}})),XP=Pr("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})),ZP=Pr("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?YD(e.palette[t.color].main,.62):KD(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})}),JP=Pr("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)`:Yi(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)`:Yi(e.palette[t.color].main,.16)}`},[`&.${Dr.disabled}`]:{"&:hover":{boxShadow:"none"}}})),QP=Pr(VP,{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"})),e2=Pr("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>JA(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})),t2=Pr("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>JA(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})),r2=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 yb(c,qP,o)},n2=({children:e})=>e,a2=M.forwardRef(function(t,r){var n,a,i,o,s,l,c,d,p,g,m,b,v,S,O,_,w,A,x,E,k,C,I,N;const D=bb({props:t,name:"MuiSlider"}),q=zl().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=Kv,slotProps:fe,slots:he,track:je="normal",valueLabelDisplay:at="off",valueLabelFormat:tt=Kv}=D,tr=Gl(D,YP),Pe=ce({},D,{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:at,valueLabelFormat:tt}),{axisProps:$e,getRootProps:Ye,getHiddenInputProps:$t,getThumbProps:Kt,open:te,active:de,axis:ye,focusedThumbIndex:ve,range:ge,dragging:qe,marks:Le,values:Ge,trackOffset:Qe,trackLeap:jt,getThumbStyle:rr}=_P(ce({},Pe,{rootRef:r}));Pe.marked=Le.length>0&&Le.some(_e=>_e.label),Pe.dragging=qe,Pe.focusedThumbIndex=ve;const ze=r2(Pe),Kr=(n=(a=he==null?void 0:he.root)!=null?a:G.Root)!=null?n:KP,Xr=(i=(o=he==null?void 0:he.rail)!=null?o:G.Rail)!=null?i:XP,Zr=(s=(l=he==null?void 0:he.track)!=null?l:G.Track)!=null?s:ZP,He=(c=(d=he==null?void 0:he.thumb)!=null?d:G.Thumb)!=null?c:JP,Bn=(p=(g=he==null?void 0:he.valueLabel)!=null?g:G.ValueLabel)!=null?p:QP,Jr=(m=(b=he==null?void 0:he.mark)!=null?b:G.Mark)!=null?m:e2,wr=(v=(S=he==null?void 0:he.markLabel)!=null?S:G.MarkLabel)!=null?v:t2,Qr=(O=(_=he==null?void 0:he.input)!=null?_:G.Input)!=null?O:"input",_r=(w=fe==null?void 0:fe.root)!=null?w:V.root,Tr=(A=fe==null?void 0:fe.rail)!=null?A:V.rail,Ar=(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,ui=(C=fe==null?void 0:fe.mark)!=null?C:V.mark,Or=(I=fe==null?void 0:fe.markLabel)!=null?I:V.markLabel,En=(N=fe==null?void 0:fe.input)!=null?N:V.input,le=Tn({elementType:Kr,getSlotProps:Ye,externalSlotProps:_r,externalForwardedProps:tr,additionalProps:ce({},zP(Kr)&&{as:K}),ownerState:ce({},Pe,_r==null?void 0:_r.ownerState),className:[ze.root,re]}),Gn=Tn({elementType:Xr,externalSlotProps:Tr,ownerState:Pe,className:ze.rail}),Ft=Tn({elementType:Zr,externalSlotProps:Ar,additionalProps:{style:ce({},$e[ye].offset(Qe),$e[ye].leap(jt))},ownerState:ce({},Pe,Ar==null?void 0:Ar.ownerState),className:ze.track}),ct=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:ui,ownerState:Pe,className:ze.mark}),nr=Tn({elementType:wr,externalSlotProps:Or,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)),Le.filter(_e=>_e.value>=ee&&_e.value<=xe).map((_e,We)=>{const kt=Ys(_e.value,ee,xe),rt=$e[ye].offset(kt);let dt;return je===!1?dt=Ge.indexOf(_e.value)!==-1:dt=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(M.Fragment,{children:[h.jsx(Jr,ce({"data-index":We},Oe,!Gs(Jr)&&{markActive:dt},{style:ce({},rt,Oe.style),className:Lr(Oe.className,dt&&ze.markActive)})),_e.label!=null?h.jsx(wr,ce({"aria-hidden":!0,"data-index":We},nr,!Gs(wr)&&{markLabelActive:dt},{style:ce({},rt,nr.style),className:Lr(ze.markLabel,nr.className,dt&&ze.markLabelActive),children:_e.label})):null]},We)}),Ge.map((_e,We)=>{const kt=Ys(_e,ee,xe),rt=$e[ye].offset(kt),dt=at==="off"?n2:Bn;return h.jsx(dt,ce({},!Gs(dt)&&{valueLabelFormat:tt,valueLabelDisplay:at,value:typeof tt=="function"?tt(Ee(_e),We):tt,index:We,open:te===We||de===We||at==="on",disabled:Se},zn,{children:h.jsx(He,ce({"data-index":We},ct,{className:Lr(ze.thumb,ct.className,de===We&&ze.active,ve===We&&ze.focusVisible),style:ce({},rt,rr(We),ct.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)})]}))}),Kl=a2;function i2(e){return mb("MuiTooltip",e)}const o2=hb("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),Cn=o2,s2=["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 l2(e){return Math.round(e*1e5)/1e5}const u2=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 yb(o,i2,t)},c2=Pr(Ab,{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"] .${Cn.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Cn.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Cn.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"] .${Cn.arrow}`]:ce({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),d2=Pr("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:Yi(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:`${l2(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${Cn.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"})),[`.${Cn.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"})),[`.${Cn.popper}[data-popper-placement*="top"] &`]:ce({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${Cn.popper}[data-popper-placement*="bottom"] &`]:ce({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),p2=Pr("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:Yi(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let ws=!1,dc=null,bi={x:0,y:0};function _s(e,t){return r=>{t&&t(r),e(r)}}const f2=M.forwardRef(function(t,r){var n,a,i,o,s,l,c,d,p,g,m,b,v,S,O,_,w,A,x;const E=bb({props:t,name:"MuiTooltip"}),{arrow:k=!1,children:C,components:I={},componentsProps:N={},describeChild:D=!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=qv,TransitionProps:Ee}=E,fe=Gl(E,s2),he=M.isValidElement(C)?C:h.jsx("span",{children:C}),je=zl(),at=je.direction==="rtl",[tt,tr]=M.useState(),[Pe,$e]=M.useState(null),Ye=M.useRef(!1),$t=H||V,Kt=M.useRef(),te=M.useRef(),de=M.useRef(),ye=M.useRef(),[ve,ge]=yO({controlled:Q,default:!1,name:"Tooltip",state:"open"});let qe=ve;const Le=YM(J),Ge=M.useRef(),Qe=M.useCallback(()=>{Ge.current!==void 0&&(document.body.style.WebkitUserSelect=Ge.current,Ge.current=void 0),clearTimeout(ye.current)},[]);M.useEffect(()=>()=>{clearTimeout(Kt.current),clearTimeout(te.current),clearTimeout(de.current),Qe()},[Qe]);const jt=ke=>{clearTimeout(dc),ws=!0,ge(!0),Se&&!qe&&Se(ke)},rr=Bs(ke=>{clearTimeout(dc),dc=setTimeout(()=>{ws=!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"||(tt&&tt.removeAttribute("title"),clearTimeout(te.current),clearTimeout(de.current),W||ws&&K?te.current=setTimeout(()=>{jt(ke)},ws?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}=ZA(),[,Jr]=M.useState(!1),wr=ke=>{Zr(ke),Xr.current===!1&&(Jr(!1),Kr(ke))},Qr=ke=>{tt||tr(ke.currentTarget),He(ke),Xr.current===!0&&(Jr(!0),ze(ke))},_r=ke=>{Ye.current=!0;const Bt=he.props;Bt.onTouchStart&&Bt.onTouchStart(ke)},Tr=ze,Ar=Kr,Un=ke=>{_r(ke),clearTimeout(de.current),clearTimeout(Kt.current),Qe(),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),Qe(),clearTimeout(de.current),de.current=setTimeout(()=>{rr(ke)},re)};M.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 ui=Vs(he.ref,Bn,tr,r);!ie&&ie!==0&&(qe=!1);const Or=M.useRef(),En=ke=>{const Bt=he.props;Bt.onMouseMove&&Bt.onMouseMove(ke),bi={x:ke.clientX,y:ke.clientY},Or.current&&Or.current.update()},le={},Gn=typeof ie=="string";D?(le.title=!qe&&Gn&&!q?ie:null,le["aria-describedby"]=qe?Le:null):(le["aria-label"]=Gn?ie:null,le["aria-labelledby"]=qe&&!Gn?Le:null);const Ft=ce({},le,fe,he.props,{className:Lr(fe.className,he.props.className),onTouchStart:_r,ref:ui},V?{onMouseMove:En}:{}),ct={};z||(Ft.onTouchStart=Un,Ft.onTouchEnd=Fr),q||(Ft.onMouseOver=_s(Tr,Ft.onMouseOver),Ft.onMouseLeave=_s(Ar,Ft.onMouseLeave),$t||(ct.onMouseOver=Tr,ct.onMouseLeave=Ar)),j||(Ft.onFocus=_s(Qr,Ft.onFocus),Ft.onBlur=_s(wr,Ft.onBlur),$t||(ct.onFocus=Qr,ct.onBlur=wr));const zn=M.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:at,arrow:k,disableInteractive:$t,placement:Ie,PopperComponentProp:Ue,touch:Ye.current}),nr=u2(Oe),da=(n=(a=oe.popper)!=null?a:I.Popper)!=null?n:c2,_e=(i=(o=(s=oe.transition)!=null?s:I.Transition)!=null?o:X)!=null?i:qv,We=(l=(c=oe.tooltip)!=null?c:I.Tooltip)!=null?l:d2,kt=(d=(p=oe.arrow)!=null?p:I.Arrow)!=null?d:p2,rt=bs(da,ce({},xe,(g=ee.popper)!=null?g:N.popper,{className:Lr(nr.popper,xe==null?void 0:xe.className,(m=(b=ee.popper)!=null?b:N.popper)==null?void 0:m.className)}),Oe),dt=bs(_e,ce({},Ee,(v=ee.transition)!=null?v:N.transition),Oe),kr=bs(We,ce({},(S=ee.tooltip)!=null?S:N.tooltip,{className:Lr(nr.tooltip,(O=(_=ee.tooltip)!=null?_:N.tooltip)==null?void 0:O.className)}),Oe),en=bs(kt,ce({},(w=ee.arrow)!=null?w:N.arrow,{className:Lr(nr.arrow,(A=(x=ee.arrow)!=null?x:N.arrow)==null?void 0:A.className)}),Oe);return h.jsxs(M.Fragment,{children:[M.cloneElement(he,Ft),h.jsx(da,ce({as:Ue??Ab,placement:Ie,anchorEl:V?{getBoundingClientRect:()=>({top:bi.y,left:bi.x,right:bi.x,bottom:bi.y,width:0,height:0})}:tt,popperRef:Or,open:tt?qe:!1,id:Le,transition:!0},ct,rt,{popperOptions:zn,children:({TransitionProps:ke})=>h.jsx(_e,ce({timeout:je.transitions.duration.shorter},ke,dt,{children:h.jsxs(We,ce({},kr,{children:[ie,k?h.jsx(kt,ce({},en,{ref:$e})):null]}))}))}))]})}),g2=f2,h2=(e,t="down")=>{const r=zl(),[n,a]=M.useState(!1),i=r.breakpoints[t](e).split("@media")[1].trim();return M.useEffect(()=>{const o=()=>{const{matches:s}=window.matchMedia(i);a(s)};return o(),window.addEventListener("resize",o),()=>window.removeEventListener("resize",o)},[i]),n},m2=e=>e.filter(t=>t.tldr).length>=2&&e.some(t=>t.audio_EN);function b2(e){return e.tldr_topic??e.name}var Ks=globalThis&&globalThis.__assign||function(){return Ks=Object.assign||function(e){for(var t,r=1,n=arguments.length;r({autoCorrect:"off",autoComplete:"off"}))` +import{aa as XA,ab as xa,a6 as Bv,ac as HD,r as M,ad as ZA,O as Vs,P as WD,V as Bs,G as ce,j as h,D as hb,z as mb,E as Pr,ae as VD,N as Jt,H as Yi,J as bb,w as Gl,K as Lr,L as yb,X as zl,af as YD,ag as KD,ah as JA,s as B,a as P,a7 as QA,ai as vb,e as ql,F,i as XD,u as ur,g as jo,d as Na,aj as eO,k as ZD,T as Ze,ak as JD,B as Mt,o as dn,b as Nt,n as Sb,A as $r,al as ti,am as Tt,an as QD,a3 as ft,h as tO,C as rO,ao as eM,ap as nO,a0 as Uv,f as tM,aq as aO,ar as iO,as as ri,at as Ce,x as U,au as rM,av as nM,aw as aM,ax as Hl,ay as iM,az as oM,aA as sM,aB as lM,aC as oO,aD as uM,aE as Wl,aF as cM,aG as dM,aH as pM,aI as fM,aJ as gM,aK as Gv,a5 as hM,aL as mM,aM as bM,I as yM,aN as vM,t as SM,_ as ir,aO as EM,aP as xM}from"./index-2353781d.js";import{A as sO,a as lO,S as wM,B as uO,L as vn,G as cO,H as _M,b as TM,c as Eb,d as Vl,e as AM,f as OM,g as kM,D as RM,R as IM,h as CM,i as NM,j as LM,k as DM,P as we,N as dO,l as MM,m as PM,p as $M,M as jM,V as FM,F as BM,E as UM,C as GM,n as pO,o as zM}from"./VolumeIcon-750bd7e3.js";import{v as na,o as Us,i as sc,j as fO,k as qM,l as HM,r as WM,m as zv,n as Gs,p as Tn,G as qv,q as bs,e as xb,u as Fo,P as VM,c as wb,d as _b,f as Pt,I as gO,b as Bo}from"./index-068043a5.js";import{S as hO,P as Tb}from"./SearchIcon-3c9f4418.js";import{c as YM,a as lc,C as Yl}from"./ClipLoader-c90857c8.js";import{S as mO}from"./Skeleton-d97f7e12.js";import{u as bO,P as Ab,a as KM,F as XM}from"./Stack-ff0fb8f6.js";import{S as Ob,u as ZM}from"./index-83d18e4b.js";import{T as ni}from"./index-33375362.js";import{C as yO}from"./CheckIcon-bcbb5853.js";import{S as JM,F as Hv,i as Uo,g as vr,t as QM,_ as vO,a as eP,b as tP,c as ia,d as kb,e as rP,f as nP,h as aP,j as Go,m as iP,k as oP,l as sP,n as SO,o as lP,p as uP}from"./isPlainObject-c1defea0.js";import{c as Rb}from"./createSvgIcon-09ff14f6.js";const Wv="023d8eb306f0027b902fbdc81d33b49b6558b3434d374626f8c324979c92d47c21",cP=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(Wv,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 cP(t),n={amount:t,refid:e};return await XA.post("/boost",JSON.stringify(n)),r};function Ib(e){return e?String(e).replace(/[[]{2}/g,"").replace(/[\]]{2}/g,""):""}const pP=e=>{const[t,r]=e.split("-")||["",""];return parseInt(r,10)!==0?`${t} - ${r}`:t},EO=(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=Bv.groupBy(r,i=>i.timestamp),a=Bv.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},fP=async e=>{await HD(async()=>{try{await xa.saveGraphData({metaData:{date:Math.floor(new Date().getTime()/1e3),...e},type:"second_brain_consumed_content"})}catch(t){console.warn(t)}})},gP=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},hP={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},mP=hP;function bP(e,t,r=(n,a)=>n===a){return e.length===t.length&&e.every((n,a)=>r(n,t[a]))}const yP=2;function xO(e,t){return e-t}function mi(e,t,r){return e==null?t:Math.min(Math.max(t,e),r)}function Vv(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}%`})}},wP=e=>e;let Es;function uc(){return Es===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?Es=CSS.supports("touch-action","none"):Es=!0),Es}function _P(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=wP,step:v=1,tabIndex:S,value:O}=e,_=M.useRef(),[w,A]=M.useState(-1),[x,E]=M.useState(-1),[k,C]=M.useState(!1),I=M.useRef(0),[N,D]=bO({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(N);let H=q?N.slice().sort(xO):[N];H=H.map(te=>mi(te,l,s));const z=o===!0&&v!==null?[...Array(Math.floor((s-l)/v)+1)].map((te,de)=>({value:l+v*de})):o||[],W=z.map(te=>te.value),{isFocusVisibleRef:K,onBlur:G,onFocus:V,ref:J}=ZA(),[ae,re]=M.useState(-1),ue=M.useRef(),Se=Vs(J,ue),Q=Vs(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)};WD(()=>{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 Le=de.target.valueAsNumber;if(z&&v==null){const Ge=W[W.length-1];Le>Ge?Le=Ge:Le{const{current:ye}=ue,{width:ve,height:ge,bottom:qe,left:Le}=ye.getBoundingClientRect();let Ge;oe.indexOf("vertical")===0?Ge=(qe-te.y)/ge:Ge=(te.x-Le)/ve,oe.indexOf("-reverse")!==-1&&(Ge=1-Ge);let Qe;if(Qe=vP(Ge,l,s),v)Qe=EP(Qe,v,l);else{const rr=Vv(W,Qe);Qe=W[rr]}Qe=mi(Qe,l,s);let jt=0;if(q){de?jt=ee.current:jt=Vv(H,Qe),a&&(Qe=mi(Qe,H[jt-1]||-1/0,H[jt+1]||1/0));const rr=Qe;Qe=Yv({values:H,newValue:Qe,index:jt}),a&&de||(jt=Qe.indexOf(rr),ee.current=jt)}return{newValue:Qe,activeIndex:jt}},X=Bs(te=>{const de=ys(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});vs({sliderRef:ue,activeIndex:ve,setActive:A}),D(ye),!k&&I.current>yP&&C(!0),j&&!Ss(ye,N)&&j(te,ye,ve)}),Ee=Bs(te=>{const de=ys(te,_);if(C(!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=Bs(te=>{if(n)return;uc()||te.preventDefault();const de=te.changedTouches[0];de!=null&&(_.current=de.identifier);const ye=ys(te,_);if(ye!==!1){const{newValue:ge,activeIndex:qe}=ie({finger:ye});vs({sliderRef:ue,activeIndex:qe,setActive:A}),D(ge),j&&!Ss(ge,N)&&j(te,ge,qe)}I.current=0;const ve=Us(ue.current);ve.addEventListener("touchmove",X),ve.addEventListener("touchend",Ee)}),he=M.useCallback(()=>{const te=Us(ue.current);te.removeEventListener("mousemove",X),te.removeEventListener("mouseup",Ee),te.removeEventListener("touchmove",X),te.removeEventListener("touchend",Ee)},[Ee,X]);M.useEffect(()=>{const{current:te}=ue;return te.addEventListener("touchstart",fe,{passive:uc()}),()=>{te.removeEventListener("touchstart",fe,{passive:uc()}),he()}},[he,fe]),M.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=ys(de,_);if(ve!==!1){const{newValue:qe,activeIndex:Le}=ie({finger:ve});vs({sliderRef:ue,activeIndex:Le,setActive:A}),D(qe),j&&!Ss(qe,N)&&j(de,qe,Le)}I.current=0;const ge=Us(ue.current);ge.addEventListener("mousemove",X),ge.addEventListener("mouseup",Ee)},at=Ys(q?H[0]:l,l,s),tt=Ys(H[H.length-1],l,s)-at,tr=(te={})=>{const de=sc(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:xP,dragging:k,focusedThumbIndex:ae,getHiddenInputProps:(te={})=>{var de;const ye=sc(te),ve={onChange:xe(ye||{}),onFocus:Ie(ye||{}),onBlur:Ue(ye||{})},ge=ce({},ye,ve);return ce({tabIndex:S,"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({},mP,{direction:i?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:tr,getThumbProps:(te={})=>{const de=sc(te),ye={onMouseOver:Pe(de||{}),onMouseLeave:$e(de||{})};return ce({},te,de,ye)},marks:z,open:x,range:q,rootRef:Q,trackLeap:tt,trackOffset:at,values:H,getThumbStyle:te=>({pointerEvents:w!==-1&&w!==te?"none":void 0})}}const TP=Rb(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"),AP=Rb(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"),OP=Rb(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 kP(e){return mb("MuiCheckbox",e)}const RP=hb("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),cc=RP,IP=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],CP=e=>{const{classes:t,indeterminate:r,color:n,size:a}=e,i={root:["root",r&&"indeterminate",`color${Jt(n)}`,`size${Jt(a)}`]},o=yb(i,kP,t);return ce({},t,o)},NP=Pr(JM,{shouldForwardProp:e=>VD(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})`:Yi(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${cc.checked}, &.${cc.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${cc.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),LP=h.jsx(AP,{}),DP=h.jsx(TP,{}),MP=h.jsx(OP,{}),PP=M.forwardRef(function(t,r){var n,a;const i=bb({props:t,name:"MuiCheckbox"}),{checkedIcon:o=LP,color:s="primary",icon:l=DP,indeterminate:c=!1,indeterminateIcon:d=MP,inputProps:p,size:g="medium",className:m}=i,b=Gl(i,IP),v=c?d:l,S=c?d:o,O=ce({},i,{color:s,indeterminate:c,size:g}),_=CP(O);return h.jsx(NP,ce({type:"checkbox",inputProps:ce({"data-indeterminate":c},p),icon:M.cloneElement(v,{fontSize:(n=v.props.fontSize)!=null?n:g}),checkedIcon:M.cloneElement(S,{fontSize:(a=S.props.fontSize)!=null?a:g}),ownerState:O,ref:r,className:Lr(_.root,m)},b,{classes:_}))}),$P=PP,jP=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function FP(e,t,r){const n=t.getBoundingClientRect(),a=r&&r.getBoundingClientRect(),i=fO(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 BP(e){return typeof e=="function"?e():e}function xs(e,t,r){const n=BP(r),a=FP(e,t,n);a&&(t.style.webkitTransform=a,t.style.transform=a)}const UP=M.forwardRef(function(t,r){const n=zl(),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:v,onExit:S,onExited:O,onExiting:_,style:w,timeout:A=i,TransitionComponent:x=qM}=t,E=Gl(t,jP),k=M.useRef(null),C=Vs(l.ref,k,r),I=G=>V=>{G&&(V===void 0?G(k.current):G(k.current,V))},N=I((G,V)=>{xs(d,G,c),WM(G),m&&m(G,V)}),D=I((G,V)=>{const J=zv({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",v&&v(G,V)}),j=I(b),q=I(_),H=I(G=>{const V=zv({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),xs(d,G,c),S&&S(G)}),z=I(G=>{G.style.webkitTransition="",G.style.transition="",O&&O(G)}),W=G=>{o&&o(k.current,G)},K=M.useCallback(()=>{k.current&&xs(d,k.current,c)},[d,c]);return M.useEffect(()=>{if(g||d==="down"||d==="right")return;const G=HM(()=>{k.current&&xs(d,k.current,c)}),V=fO(k.current);return V.addEventListener("resize",G),()=>{G.clear(),V.removeEventListener("resize",G)}},[d,g,c]),M.useEffect(()=>{g||K()},[g,K]),h.jsx(x,ce({nodeRef:k,onEnter:N,onEntered:j,onEntering:D,onExit:H,onExited:z,onExiting:q,addEndListener:W,appear:s,in:g,timeout:A},E,{children:(G,V)=>M.cloneElement(l,ce({ref:C,style:ce({visibility:G==="exited"&&!g?"hidden":void 0},w,l.props.style)},V))}))}),La=UP,GP=e=>!e||!Gs(e),zP=GP;function qP(e){return mb("MuiSlider",e)}const HP=hb("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=HP,WP=e=>{const{open:t}=e;return{offset:Lr(t&&Dr.valueLabelOpen),circle:Dr.valueLabelCircle,label:Dr.valueLabelLabel}};function VP(e){const{children:t,className:r,value:n}=e,a=WP(e);return t?M.cloneElement(t,{className:Lr(t.props.className)},h.jsxs(M.Fragment,{children:[t.props.children,h.jsx("span",{className:Lr(a.offset,r),"aria-hidden":!0,children:h.jsx("span",{className:a.circle,children:h.jsx("span",{className:a.label,children:n})})})]})):null}const YP=["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 Kv(e){return e}const KP=Pr("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"}}})),XP=Pr("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})),ZP=Pr("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?YD(e.palette[t.color].main,.62):KD(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})}),JP=Pr("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)`:Yi(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)`:Yi(e.palette[t.color].main,.16)}`},[`&.${Dr.disabled}`]:{"&:hover":{boxShadow:"none"}}})),QP=Pr(VP,{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"})),e2=Pr("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>JA(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})),t2=Pr("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>JA(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})),r2=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 yb(c,qP,o)},n2=({children:e})=>e,a2=M.forwardRef(function(t,r){var n,a,i,o,s,l,c,d,p,g,m,b,v,S,O,_,w,A,x,E,k,C,I,N;const D=bb({props:t,name:"MuiSlider"}),q=zl().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=Kv,slotProps:fe,slots:he,track:je="normal",valueLabelDisplay:at="off",valueLabelFormat:tt=Kv}=D,tr=Gl(D,YP),Pe=ce({},D,{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:at,valueLabelFormat:tt}),{axisProps:$e,getRootProps:Ye,getHiddenInputProps:$t,getThumbProps:Kt,open:te,active:de,axis:ye,focusedThumbIndex:ve,range:ge,dragging:qe,marks:Le,values:Ge,trackOffset:Qe,trackLeap:jt,getThumbStyle:rr}=_P(ce({},Pe,{rootRef:r}));Pe.marked=Le.length>0&&Le.some(_e=>_e.label),Pe.dragging=qe,Pe.focusedThumbIndex=ve;const ze=r2(Pe),Kr=(n=(a=he==null?void 0:he.root)!=null?a:G.Root)!=null?n:KP,Xr=(i=(o=he==null?void 0:he.rail)!=null?o:G.Rail)!=null?i:XP,Zr=(s=(l=he==null?void 0:he.track)!=null?l:G.Track)!=null?s:ZP,He=(c=(d=he==null?void 0:he.thumb)!=null?d:G.Thumb)!=null?c:JP,Bn=(p=(g=he==null?void 0:he.valueLabel)!=null?g:G.ValueLabel)!=null?p:QP,Jr=(m=(b=he==null?void 0:he.mark)!=null?b:G.Mark)!=null?m:e2,wr=(v=(S=he==null?void 0:he.markLabel)!=null?S:G.MarkLabel)!=null?v:t2,Qr=(O=(_=he==null?void 0:he.input)!=null?_:G.Input)!=null?O:"input",_r=(w=fe==null?void 0:fe.root)!=null?w:V.root,Tr=(A=fe==null?void 0:fe.rail)!=null?A:V.rail,Ar=(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,ui=(C=fe==null?void 0:fe.mark)!=null?C:V.mark,Or=(I=fe==null?void 0:fe.markLabel)!=null?I:V.markLabel,En=(N=fe==null?void 0:fe.input)!=null?N:V.input,le=Tn({elementType:Kr,getSlotProps:Ye,externalSlotProps:_r,externalForwardedProps:tr,additionalProps:ce({},zP(Kr)&&{as:K}),ownerState:ce({},Pe,_r==null?void 0:_r.ownerState),className:[ze.root,re]}),Gn=Tn({elementType:Xr,externalSlotProps:Tr,ownerState:Pe,className:ze.rail}),Ft=Tn({elementType:Zr,externalSlotProps:Ar,additionalProps:{style:ce({},$e[ye].offset(Qe),$e[ye].leap(jt))},ownerState:ce({},Pe,Ar==null?void 0:Ar.ownerState),className:ze.track}),ct=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:ui,ownerState:Pe,className:ze.mark}),nr=Tn({elementType:wr,externalSlotProps:Or,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)),Le.filter(_e=>_e.value>=ee&&_e.value<=xe).map((_e,We)=>{const kt=Ys(_e.value,ee,xe),rt=$e[ye].offset(kt);let dt;return je===!1?dt=Ge.indexOf(_e.value)!==-1:dt=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(M.Fragment,{children:[h.jsx(Jr,ce({"data-index":We},Oe,!Gs(Jr)&&{markActive:dt},{style:ce({},rt,Oe.style),className:Lr(Oe.className,dt&&ze.markActive)})),_e.label!=null?h.jsx(wr,ce({"aria-hidden":!0,"data-index":We},nr,!Gs(wr)&&{markLabelActive:dt},{style:ce({},rt,nr.style),className:Lr(ze.markLabel,nr.className,dt&&ze.markLabelActive),children:_e.label})):null]},We)}),Ge.map((_e,We)=>{const kt=Ys(_e,ee,xe),rt=$e[ye].offset(kt),dt=at==="off"?n2:Bn;return h.jsx(dt,ce({},!Gs(dt)&&{valueLabelFormat:tt,valueLabelDisplay:at,value:typeof tt=="function"?tt(Ee(_e),We):tt,index:We,open:te===We||de===We||at==="on",disabled:Se},zn,{children:h.jsx(He,ce({"data-index":We},ct,{className:Lr(ze.thumb,ct.className,de===We&&ze.active,ve===We&&ze.focusVisible),style:ce({},rt,rr(We),ct.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)})]}))}),Kl=a2;function i2(e){return mb("MuiTooltip",e)}const o2=hb("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),Cn=o2,s2=["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 l2(e){return Math.round(e*1e5)/1e5}const u2=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 yb(o,i2,t)},c2=Pr(Ab,{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"] .${Cn.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Cn.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Cn.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"] .${Cn.arrow}`]:ce({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),d2=Pr("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:Yi(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:`${l2(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${Cn.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"})),[`.${Cn.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"})),[`.${Cn.popper}[data-popper-placement*="top"] &`]:ce({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${Cn.popper}[data-popper-placement*="bottom"] &`]:ce({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),p2=Pr("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:Yi(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let ws=!1,dc=null,bi={x:0,y:0};function _s(e,t){return r=>{t&&t(r),e(r)}}const f2=M.forwardRef(function(t,r){var n,a,i,o,s,l,c,d,p,g,m,b,v,S,O,_,w,A,x;const E=bb({props:t,name:"MuiTooltip"}),{arrow:k=!1,children:C,components:I={},componentsProps:N={},describeChild:D=!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=qv,TransitionProps:Ee}=E,fe=Gl(E,s2),he=M.isValidElement(C)?C:h.jsx("span",{children:C}),je=zl(),at=je.direction==="rtl",[tt,tr]=M.useState(),[Pe,$e]=M.useState(null),Ye=M.useRef(!1),$t=H||V,Kt=M.useRef(),te=M.useRef(),de=M.useRef(),ye=M.useRef(),[ve,ge]=bO({controlled:Q,default:!1,name:"Tooltip",state:"open"});let qe=ve;const Le=KM(J),Ge=M.useRef(),Qe=M.useCallback(()=>{Ge.current!==void 0&&(document.body.style.WebkitUserSelect=Ge.current,Ge.current=void 0),clearTimeout(ye.current)},[]);M.useEffect(()=>()=>{clearTimeout(Kt.current),clearTimeout(te.current),clearTimeout(de.current),Qe()},[Qe]);const jt=ke=>{clearTimeout(dc),ws=!0,ge(!0),Se&&!qe&&Se(ke)},rr=Bs(ke=>{clearTimeout(dc),dc=setTimeout(()=>{ws=!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"||(tt&&tt.removeAttribute("title"),clearTimeout(te.current),clearTimeout(de.current),W||ws&&K?te.current=setTimeout(()=>{jt(ke)},ws?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}=ZA(),[,Jr]=M.useState(!1),wr=ke=>{Zr(ke),Xr.current===!1&&(Jr(!1),Kr(ke))},Qr=ke=>{tt||tr(ke.currentTarget),He(ke),Xr.current===!0&&(Jr(!0),ze(ke))},_r=ke=>{Ye.current=!0;const Bt=he.props;Bt.onTouchStart&&Bt.onTouchStart(ke)},Tr=ze,Ar=Kr,Un=ke=>{_r(ke),clearTimeout(de.current),clearTimeout(Kt.current),Qe(),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),Qe(),clearTimeout(de.current),de.current=setTimeout(()=>{rr(ke)},re)};M.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 ui=Vs(he.ref,Bn,tr,r);!ie&&ie!==0&&(qe=!1);const Or=M.useRef(),En=ke=>{const Bt=he.props;Bt.onMouseMove&&Bt.onMouseMove(ke),bi={x:ke.clientX,y:ke.clientY},Or.current&&Or.current.update()},le={},Gn=typeof ie=="string";D?(le.title=!qe&&Gn&&!q?ie:null,le["aria-describedby"]=qe?Le:null):(le["aria-label"]=Gn?ie:null,le["aria-labelledby"]=qe&&!Gn?Le:null);const Ft=ce({},le,fe,he.props,{className:Lr(fe.className,he.props.className),onTouchStart:_r,ref:ui},V?{onMouseMove:En}:{}),ct={};z||(Ft.onTouchStart=Un,Ft.onTouchEnd=Fr),q||(Ft.onMouseOver=_s(Tr,Ft.onMouseOver),Ft.onMouseLeave=_s(Ar,Ft.onMouseLeave),$t||(ct.onMouseOver=Tr,ct.onMouseLeave=Ar)),j||(Ft.onFocus=_s(Qr,Ft.onFocus),Ft.onBlur=_s(wr,Ft.onBlur),$t||(ct.onFocus=Qr,ct.onBlur=wr));const zn=M.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:at,arrow:k,disableInteractive:$t,placement:Ie,PopperComponentProp:Ue,touch:Ye.current}),nr=u2(Oe),da=(n=(a=oe.popper)!=null?a:I.Popper)!=null?n:c2,_e=(i=(o=(s=oe.transition)!=null?s:I.Transition)!=null?o:X)!=null?i:qv,We=(l=(c=oe.tooltip)!=null?c:I.Tooltip)!=null?l:d2,kt=(d=(p=oe.arrow)!=null?p:I.Arrow)!=null?d:p2,rt=bs(da,ce({},xe,(g=ee.popper)!=null?g:N.popper,{className:Lr(nr.popper,xe==null?void 0:xe.className,(m=(b=ee.popper)!=null?b:N.popper)==null?void 0:m.className)}),Oe),dt=bs(_e,ce({},Ee,(v=ee.transition)!=null?v:N.transition),Oe),kr=bs(We,ce({},(S=ee.tooltip)!=null?S:N.tooltip,{className:Lr(nr.tooltip,(O=(_=ee.tooltip)!=null?_:N.tooltip)==null?void 0:O.className)}),Oe),en=bs(kt,ce({},(w=ee.arrow)!=null?w:N.arrow,{className:Lr(nr.arrow,(A=(x=ee.arrow)!=null?x:N.arrow)==null?void 0:A.className)}),Oe);return h.jsxs(M.Fragment,{children:[M.cloneElement(he,Ft),h.jsx(da,ce({as:Ue??Ab,placement:Ie,anchorEl:V?{getBoundingClientRect:()=>({top:bi.y,left:bi.x,right:bi.x,bottom:bi.y,width:0,height:0})}:tt,popperRef:Or,open:tt?qe:!1,id:Le,transition:!0},ct,rt,{popperOptions:zn,children:({TransitionProps:ke})=>h.jsx(_e,ce({timeout:je.transitions.duration.shorter},ke,dt,{children:h.jsxs(We,ce({},kr,{children:[ie,k?h.jsx(kt,ce({},en,{ref:$e})):null]}))}))}))]})}),g2=f2,h2=(e,t="down")=>{const r=zl(),[n,a]=M.useState(!1),i=r.breakpoints[t](e).split("@media")[1].trim();return M.useEffect(()=>{const o=()=>{const{matches:s}=window.matchMedia(i);a(s)};return o(),window.addEventListener("resize",o),()=>window.removeEventListener("resize",o)},[i]),n},m2=e=>e.filter(t=>t.tldr).length>=2&&e.some(t=>t.audio_EN);function b2(e){return e.tldr_topic??e.name}var Ks=globalThis&&globalThis.__assign||function(){return Ks=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; @@ -41,7 +41,7 @@ import{ad as XA,ae as xa,i as Bv,af as HD,r as M,ag as ZA,Y as Vs,Z as WD,a1 as background-position-x: 95%; background-repeat: no-repeat; `} -`,wO=({loading:e,placeholder:t="Search",onSubmit:r})=>{const{register:n,watch:a}=vb(),i=a("search"),o=ql();return h.jsx(E2,{...n("search"),"data-testid":"search_input",disabled:e,id:"main-search",onKeyPress:s=>{if(s.key==="Enter"){if(i.trim()==="")return;if(r){r();return}const l=i.replace(/\s+/g,"+");o(`/search?q=${l}`)}},placeholder:t,type:"text"})},x2=()=>{const e=XD({mode:"onChange"}),{setAbortRequests:t}=ur(s=>s),{setBudget:r}=jo(s=>s),{reset:n}=e,a=Na(s=>s.fetchAIData),i=eO(),o=e.handleSubmit(({search:s})=>{s.trim()!==""&&(a(r,t,s),n({search:""}))});return h.jsx(_O,{children:h.jsx(ZD,{...e,children:h.jsxs(w2,{children:[h.jsx(wO,{loading:i,onSubmit:o,placeholder:"Ask follow-up"}),h.jsx(_2,{"data-testid":"search-ai_action_icon",onClick:()=>{i||o()},children:i?h.jsx(T2,{color:P.lightGray,"data-testid":"loader",size:"20"}):h.jsx(lO,{})})]})})})},_O=B(F)` +`,wO=({loading:e,placeholder:t="Search",onSubmit:r})=>{const{register:n,watch:a}=vb(),i=a("search"),o=ql();return h.jsx(E2,{...n("search"),"data-testid":"search_input",disabled:e,id:"main-search",onKeyPress:s=>{if(s.key==="Enter"){if(i.trim()==="")return;if(r){r();return}const l=i.replace(/\s+/g,"+");o(`/search?q=${l}`)}},placeholder:t,type:"text"})},x2=()=>{const e=XD({mode:"onChange"}),{setAbortRequests:t}=ur(s=>s),{setBudget:r}=jo(s=>s),{reset:n}=e,a=Na(s=>s.fetchAIData),i=eO(),o=e.handleSubmit(({search:s})=>{s.trim()!==""&&(a(r,t,s),n({search:""}))});return h.jsx(_O,{children:h.jsx(ZD,{...e,children:h.jsxs(w2,{children:[h.jsx(wO,{loading:i,onSubmit:o,placeholder:"Ask follow-up"}),h.jsx(_2,{"data-testid":"search-ai_action_icon",onClick:()=>{i||o()},children:i?h.jsx(T2,{color:P.lightGray,"data-testid":"loader",size:"20"}):h.jsx(hO,{})})]})})})},_O=B(F)` position: sticky; bottom: 0; padding: 12px; @@ -89,7 +89,7 @@ import{ad as XA,ae as xa,i as Bv,af as HD,r as M,ag as ZA,Y as Vs,Z as WD,a1 as .title { margin: 20px 0 8px; } -`,Ts=B(bO)` +`,Ts=B(mO)` && { background: rgba(0, 0, 0, 0.15); } @@ -284,7 +284,7 @@ import{ad as XA,ae as xa,i as Bv,af as HD,r as M,ag as ZA,Y as Vs,Z as WD,a1 as border-radius: 2px !important; } } -`,q2=({answer:e,entities:t,handleLoaded:r,hasBeenRendered:n,onRegenerate:a,isPlaying:i,onTogglePlay:o,hasAudio:s})=>{const{fetchData:l,setAbortRequests:c}=ur(N=>N),{setBudget:d}=jo(N=>N),[p,g]=M.useState(""),[m,b]=M.useState(t),[v,S]=M.useState(!1),[O,_]=M.useState(null),[w,A]=M.useState(!1);M.useEffect(()=>{let N;if(!(!e||n)){if(p.length{g(e.slice(0,p.length+1))},10),()=>clearTimeout(N);S(!0),r()}},[e,p,r,n]),M.useEffect(()=>{p||n&&(g(e),S(!0))},[e,p,n]);const x=N=>{l(d,c,N)};M.useEffect(()=>{t&&m!==t&&b(t)},[t,m]);const E=I2(p,x,m,v),k=async()=>{try{await navigator.clipboard.writeText(e),A(!0),setTimeout(()=>{A(!1)},1e3)}catch(N){console.error("Failed to copy text:",N)}},C=()=>{_(N=>N==="positive"?null:"positive")},I=()=>{_(N=>N==="negative"?null:"negative")};return h.jsxs(B2,{children:[h.jsx(U2,{children:t!=null&&t.length?E:h.jsx(Ob,{children:p})}),v&&p.length===e.length&&h.jsxs(G2,{children:[s&&h.jsxs(vi,{onClick:o,children:[h.jsx(yi,{children:i?h.jsx(uO,{}):h.jsx(cO,{})}),h.jsx(Ze,{children:"Read Aloud"})]}),h.jsxs(vi,{onClick:k,children:[w?h.jsx(yi,{children:h.jsx(L2,{})}):h.jsx(z2,{children:h.jsx(D2,{})}),h.jsx(Ze,{children:"Copy"})]}),h.jsxs(vi,{className:O==="positive"?"active":"",onClick:C,children:[h.jsx(yi,{children:O==="positive"?h.jsx(F2,{}):h.jsx(P2,{})}),h.jsx(Ze,{children:"Helpful"})]}),h.jsxs(vi,{className:O==="negative"?"active":"",onClick:I,children:[h.jsx(yi,{children:O==="negative"?h.jsx(j2,{}):h.jsx(M2,{})}),h.jsx(Ze,{children:"Unhelpful"})]}),h.jsxs(vi,{onClick:a,children:[h.jsx(yi,{children:h.jsx($2,{})}),h.jsx(Ze,{children:"Rewrite"})]})]})]})},H2=({questions:e})=>{const{setAbortRequests:t}=ur(o=>o),[r]=jo(o=>[o.setBudget]),n=eO(),a=Na(o=>o.fetchAIData),i=o=>{n||o&&a(r,t,o)};return e!=null&&e.length?h.jsxs(X2,{children:[h.jsx(La,{direction:"right",in:!0,mountOnEnter:!0,children:h.jsxs(V2,{className:"heading",direction:"row",children:[h.jsx("div",{className:"heading__icon",children:h.jsx(AM,{})}),h.jsx(Y2,{children:"More on this"})]})}),h.jsx(La,{direction:"right",in:!0,mountOnEnter:!0,children:h.jsx(F,{children:e.map(o=>h.jsxs(K2,{align:"center",className:dn({disabled:n}),direction:"row",justify:"space-between",onClick:()=>i(o),children:[h.jsx("span",{children:o}),h.jsx(F,{className:dn({disabled:n},"icon"),children:h.jsx(Eb,{})})]},o))})})]}):null},W2=M.memo(H2),V2=B(F)` +`,q2=({answer:e,entities:t,handleLoaded:r,hasBeenRendered:n,onRegenerate:a,isPlaying:i,onTogglePlay:o,hasAudio:s})=>{const{fetchData:l,setAbortRequests:c}=ur(N=>N),{setBudget:d}=jo(N=>N),[p,g]=M.useState(""),[m,b]=M.useState(t),[v,S]=M.useState(!1),[O,_]=M.useState(null),[w,A]=M.useState(!1);M.useEffect(()=>{let N;if(!(!e||n)){if(p.length{g(e.slice(0,p.length+1))},10),()=>clearTimeout(N);S(!0),r()}},[e,p,r,n]),M.useEffect(()=>{p||n&&(g(e),S(!0))},[e,p,n]);const x=N=>{l(d,c,N)};M.useEffect(()=>{t&&m!==t&&b(t)},[t,m]);const E=I2(p,x,m,v),k=async()=>{try{await navigator.clipboard.writeText(e),A(!0),setTimeout(()=>{A(!1)},1e3)}catch(N){console.error("Failed to copy text:",N)}},C=()=>{_(N=>N==="positive"?null:"positive")},I=()=>{_(N=>N==="negative"?null:"negative")};return h.jsxs(B2,{children:[h.jsx(U2,{children:t!=null&&t.length?E:h.jsx(Ob,{children:p})}),v&&p.length===e.length&&h.jsxs(G2,{children:[s&&h.jsxs(vi,{onClick:o,children:[h.jsx(yi,{children:i?h.jsx(sO,{}):h.jsx(lO,{})}),h.jsx(Ze,{children:"Read Aloud"})]}),h.jsxs(vi,{onClick:k,children:[w?h.jsx(yi,{children:h.jsx(L2,{})}):h.jsx(z2,{children:h.jsx(D2,{})}),h.jsx(Ze,{children:"Copy"})]}),h.jsxs(vi,{className:O==="positive"?"active":"",onClick:C,children:[h.jsx(yi,{children:O==="positive"?h.jsx(F2,{}):h.jsx(P2,{})}),h.jsx(Ze,{children:"Helpful"})]}),h.jsxs(vi,{className:O==="negative"?"active":"",onClick:I,children:[h.jsx(yi,{children:O==="negative"?h.jsx(j2,{}):h.jsx(M2,{})}),h.jsx(Ze,{children:"Unhelpful"})]}),h.jsxs(vi,{onClick:a,children:[h.jsx(yi,{children:h.jsx($2,{})}),h.jsx(Ze,{children:"Rewrite"})]})]})]})},H2=({questions:e})=>{const{setAbortRequests:t}=ur(o=>o),[r]=jo(o=>[o.setBudget]),n=eO(),a=Na(o=>o.fetchAIData),i=o=>{n||o&&a(r,t,o)};return e!=null&&e.length?h.jsxs(X2,{children:[h.jsx(La,{direction:"right",in:!0,mountOnEnter:!0,children:h.jsxs(V2,{className:"heading",direction:"row",children:[h.jsx("div",{className:"heading__icon",children:h.jsx(wM,{})}),h.jsx(Y2,{children:"More on this"})]})}),h.jsx(La,{direction:"right",in:!0,mountOnEnter:!0,children:h.jsx(F,{children:e.map(o=>h.jsxs(K2,{align:"center",className:dn({disabled:n}),direction:"row",justify:"space-between",onClick:()=>i(o),children:[h.jsx("span",{children:o}),h.jsx(F,{className:dn({disabled:n},"icon"),children:h.jsx(Tb,{})})]},o))})})]}):null},W2=M.memo(H2),V2=B(F)` &.heading { font-weight: 600; color: ${P.white}; @@ -352,7 +352,7 @@ import{ad as XA,ae as xa,i as Bv,af as HD,r as M,ag as ZA,Y as Vs,Z as WD,a1 as margin: 0; border-radius: 3px; color: inherit; -`,Xl=({amt:e})=>h.jsxs(J2,{align:"center",direction:"row",justify:"flex-start",children:[h.jsx("div",{className:"icon",children:h.jsx(dO,{})}),h.jsx("div",{className:"value","data-testid":"boost-amt",children:e}),h.jsx("div",{className:"text",children:"sat"})]}),J2=B(F)` +`,Xl=({amt:e})=>h.jsxs(J2,{align:"center",direction:"row",justify:"flex-start",children:[h.jsx("div",{className:"icon",children:h.jsx(uO,{})}),h.jsx("div",{className:"value","data-testid":"boost-amt",children:e}),h.jsx("div",{className:"text",children:"sat"})]}),J2=B(F)` font-size: 13px; font-style: normal; font-weight: 500; @@ -487,7 +487,7 @@ import{ad as XA,ae as xa,i as Bv,af as HD,r as M,ag as ZA,Y as Vs,Z as WD,a1 as [`+$+"] ";for(Y in arguments[0])s(arguments[0],Y)&&(R+=Y+": "+arguments[0][Y]+", ");R=R.slice(0,-2)}else R=arguments[$];T.push(R)}I(u+` Arguments: `+Array.prototype.slice.call(T).join("")+` `+new Error().stack),y=!1}return f.apply(this,arguments)},f)}var D={};function j(u,f){n.deprecationHandler!=null&&n.deprecationHandler(u,f),D[u]||(I(f),D[u]=!0)}n.suppressDeprecationWarnings=!1,n.deprecationHandler=null;function q(u){return typeof Function<"u"&&u instanceof Function||Object.prototype.toString.call(u)==="[object Function]"}function H(u){var f,y;for(y in u)s(u,y)&&(f=u[y],q(f)?this[y]=f:this["_"+y]=f);this._config=u,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function z(u,f){var y=m({},u),T;for(T in f)s(f,T)&&(o(u[T])&&o(f[T])?(y[T]={},m(y[T],u[T]),m(y[T],f[T])):f[T]!=null?y[T]=f[T]:delete y[T]);for(T in u)s(u,T)&&!s(f,T)&&o(u[T])&&(y[T]=m({},y[T]));return y}function W(u){u!=null&&this.set(u)}var K;Object.keys?K=Object.keys:K=function(u){var f,y=[];for(f in u)s(u,f)&&y.push(f);return y};var G={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function V(u,f,y){var T=this._calendar[u]||this._calendar.sameElse;return q(T)?T.call(f,y):T}function J(u,f,y){var T=""+Math.abs(u),R=f-T.length,$=u>=0;return($?y?"+":"":"-")+Math.pow(10,Math.max(0,R)).toString().substr(1)+T}var ae=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,re=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,ue={},Se={};function Q(u,f,y,T){var R=T;typeof T=="string"&&(R=function(){return this[T]()}),u&&(Se[u]=R),f&&(Se[f[0]]=function(){return J(R.apply(this,arguments),f[1],f[2])}),y&&(Se[y]=function(){return this.localeData().ordinal(R.apply(this,arguments),u)})}function Ie(u){return u.match(/\[[\s\S]/)?u.replace(/^\[|\]$/g,""):u.replace(/\\/g,"")}function Ue(u){var f=u.match(ae),y,T;for(y=0,T=f.length;y=0&&re.test(u);)u=u.replace(re,T),re.lastIndex=0,y-=1;return u}var oe={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function ie(u){var f=this._longDateFormat[u],y=this._longDateFormat[u.toUpperCase()];return f||!y?f:(this._longDateFormat[u]=y.match(ae).map(function(T){return T==="MMMM"||T==="MM"||T==="DD"||T==="dddd"?T.slice(1):T}).join(""),this._longDateFormat[u])}var X="Invalid date";function Ee(){return this._invalidDate}var fe="%d",he=/\d{1,2}/;function je(u){return this._ordinal.replace("%d",u)}var at={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function tt(u,f,y,T){var R=this._relativeTime[y];return q(R)?R(u,f,y,T):R.replace(/%d/i,u)}function tr(u,f){var y=this._relativeTime[u>0?"future":"past"];return q(y)?y(f):y.replace(/%s/i,f)}var Pe={};function $e(u,f){var y=u.toLowerCase();Pe[y]=Pe[y+"s"]=Pe[f]=u}function Ye(u){return typeof u=="string"?Pe[u]||Pe[u.toLowerCase()]:void 0}function $t(u){var f={},y,T;for(T in u)s(u,T)&&(y=Ye(T),y&&(f[y]=u[T]));return f}var Kt={};function te(u,f){Kt[u]=f}function de(u){var f=[],y;for(y in u)s(u,y)&&f.push({unit:y,priority:Kt[y]});return f.sort(function(T,R){return T.priority-R.priority}),f}function ye(u){return u%4===0&&u%100!==0||u%400===0}function ve(u){return u<0?Math.ceil(u)||0:Math.floor(u)}function ge(u){var f=+u,y=0;return f!==0&&isFinite(f)&&(y=ve(f)),y}function qe(u,f){return function(y){return y!=null?(Ge(this,u,y),n.updateOffset(this,f),this):Le(this,u)}}function Le(u,f){return u.isValid()?u._d["get"+(u._isUTC?"UTC":"")+f]():NaN}function Ge(u,f,y){u.isValid()&&!isNaN(y)&&(f==="FullYear"&&ye(u.year())&&u.month()===1&&u.date()===29?(y=ge(y),u._d["set"+(u._isUTC?"UTC":"")+f](y,u.month(),is(y,u.month()))):u._d["set"+(u._isUTC?"UTC":"")+f](y))}function Qe(u){return u=Ye(u),q(this[u])?this[u]():this}function jt(u,f){if(typeof u=="object"){u=$t(u);var y=de(u),T,R=y.length;for(T=0;T68?1900:2e3)};var lv=qe("FullYear",!0);function RC(){return ye(this.year())}function IC(u,f,y,T,R,$,Y){var me;return u<100&&u>=0?(me=new Date(u+400,f,y,T,R,$,Y),isFinite(me.getFullYear())&&me.setFullYear(u)):me=new Date(u,f,y,T,R,$,Y),me}function di(u){var f,y;return u<100&&u>=0?(y=Array.prototype.slice.call(arguments),y[0]=u+400,f=new Date(Date.UTC.apply(null,y)),isFinite(f.getUTCFullYear())&&f.setUTCFullYear(u)):f=new Date(Date.UTC.apply(null,arguments)),f}function os(u,f,y){var T=7+f-y,R=(7+di(u,0,T).getUTCDay()-f)%7;return-R+T-1}function uv(u,f,y,T,R){var $=(7+y-T)%7,Y=os(u,T,R),me=1+7*(f-1)+$+Y,Te,Ke;return me<=0?(Te=u-1,Ke=ci(Te)+me):me>ci(u)?(Te=u+1,Ke=me-ci(u)):(Te=u,Ke=me),{year:Te,dayOfYear:Ke}}function pi(u,f,y){var T=os(u.year(),f,y),R=Math.floor((u.dayOfYear()-T-1)/7)+1,$,Y;return R<1?(Y=u.year()-1,$=R+tn(Y,f,y)):R>tn(u.year(),f,y)?($=R-tn(u.year(),f,y),Y=u.year()+1):(Y=u.year(),$=R),{week:$,year:Y}}function tn(u,f,y){var T=os(u,f,y),R=os(u+1,f,y);return(ci(u)-T+R)/7}Q("w",["ww",2],"wo","week"),Q("W",["WW",2],"Wo","isoWeek"),$e("week","w"),$e("isoWeek","W"),te("week",5),te("isoWeek",5),le("w",He),le("ww",He,ze),le("W",He),le("WW",He,ze),nr(["w","ww","W","WW"],function(u,f,y,T){f[T.substr(0,1)]=ge(u)});function CC(u){return pi(u,this._week.dow,this._week.doy).week}var NC={dow:0,doy:6};function LC(){return this._week.dow}function DC(){return this._week.doy}function MC(u){var f=this.localeData().week(this);return u==null?f:this.add((u-f)*7,"d")}function PC(u){var f=pi(this,1,4).week;return u==null?f:this.add((u-f)*7,"d")}Q("d",0,"do","day"),Q("dd",0,0,function(u){return this.localeData().weekdaysMin(this,u)}),Q("ddd",0,0,function(u){return this.localeData().weekdaysShort(this,u)}),Q("dddd",0,0,function(u){return this.localeData().weekdays(this,u)}),Q("e",0,0,"weekday"),Q("E",0,0,"isoWeekday"),$e("day","d"),$e("weekday","e"),$e("isoWeekday","E"),te("day",11),te("weekday",11),te("isoWeekday",11),le("d",He),le("e",He),le("E",He),le("dd",function(u,f){return f.weekdaysMinRegex(u)}),le("ddd",function(u,f){return f.weekdaysShortRegex(u)}),le("dddd",function(u,f){return f.weekdaysRegex(u)}),nr(["dd","ddd","dddd"],function(u,f,y,T){var R=y._locale.weekdaysParse(u,T,y._strict);R!=null?f.d=R:S(y).invalidWeekday=u}),nr(["d","e","E"],function(u,f,y,T){f[T]=ge(u)});function $C(u,f){return typeof u!="string"?u:isNaN(u)?(u=f.weekdaysParse(u),typeof u=="number"?u:null):parseInt(u,10)}function jC(u,f){return typeof u=="string"?f.weekdaysParse(u)%7||7:isNaN(u)?null:u}function qu(u,f){return u.slice(f,7).concat(u.slice(0,f))}var FC="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),cv="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),BC="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),UC=Or,GC=Or,zC=Or;function qC(u,f){var y=i(this._weekdays)?this._weekdays:this._weekdays[u&&u!==!0&&this._weekdays.isFormat.test(f)?"format":"standalone"];return u===!0?qu(y,this._week.dow):u?y[u.day()]:y}function HC(u){return u===!0?qu(this._weekdaysShort,this._week.dow):u?this._weekdaysShort[u.day()]:this._weekdaysShort}function WC(u){return u===!0?qu(this._weekdaysMin,this._week.dow):u?this._weekdaysMin[u.day()]:this._weekdaysMin}function VC(u,f,y){var T,R,$,Y=u.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],T=0;T<7;++T)$=b([2e3,1]).day(T),this._minWeekdaysParse[T]=this.weekdaysMin($,"").toLocaleLowerCase(),this._shortWeekdaysParse[T]=this.weekdaysShort($,"").toLocaleLowerCase(),this._weekdaysParse[T]=this.weekdays($,"").toLocaleLowerCase();return y?f==="dddd"?(R=gt.call(this._weekdaysParse,Y),R!==-1?R:null):f==="ddd"?(R=gt.call(this._shortWeekdaysParse,Y),R!==-1?R:null):(R=gt.call(this._minWeekdaysParse,Y),R!==-1?R:null):f==="dddd"?(R=gt.call(this._weekdaysParse,Y),R!==-1||(R=gt.call(this._shortWeekdaysParse,Y),R!==-1)?R:(R=gt.call(this._minWeekdaysParse,Y),R!==-1?R:null)):f==="ddd"?(R=gt.call(this._shortWeekdaysParse,Y),R!==-1||(R=gt.call(this._weekdaysParse,Y),R!==-1)?R:(R=gt.call(this._minWeekdaysParse,Y),R!==-1?R:null)):(R=gt.call(this._minWeekdaysParse,Y),R!==-1||(R=gt.call(this._weekdaysParse,Y),R!==-1)?R:(R=gt.call(this._shortWeekdaysParse,Y),R!==-1?R:null))}function YC(u,f,y){var T,R,$;if(this._weekdaysParseExact)return VC.call(this,u,f,y);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),T=0;T<7;T++){if(R=b([2e3,1]).day(T),y&&!this._fullWeekdaysParse[T]&&(this._fullWeekdaysParse[T]=new RegExp("^"+this.weekdays(R,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[T]=new RegExp("^"+this.weekdaysShort(R,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[T]=new RegExp("^"+this.weekdaysMin(R,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[T]||($="^"+this.weekdays(R,"")+"|^"+this.weekdaysShort(R,"")+"|^"+this.weekdaysMin(R,""),this._weekdaysParse[T]=new RegExp($.replace(".",""),"i")),y&&f==="dddd"&&this._fullWeekdaysParse[T].test(u))return T;if(y&&f==="ddd"&&this._shortWeekdaysParse[T].test(u))return T;if(y&&f==="dd"&&this._minWeekdaysParse[T].test(u))return T;if(!y&&this._weekdaysParse[T].test(u))return T}}function KC(u){if(!this.isValid())return u!=null?this:NaN;var f=this._isUTC?this._d.getUTCDay():this._d.getDay();return u!=null?(u=$C(u,this.localeData()),this.add(u-f,"d")):f}function XC(u){if(!this.isValid())return u!=null?this:NaN;var f=(this.day()+7-this.localeData()._week.dow)%7;return u==null?f:this.add(u-f,"d")}function ZC(u){if(!this.isValid())return u!=null?this:NaN;if(u!=null){var f=jC(u,this.localeData());return this.day(this.day()%7?f:f-7)}else return this.day()||7}function JC(u){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Hu.call(this),u?this._weekdaysStrictRegex:this._weekdaysRegex):(s(this,"_weekdaysRegex")||(this._weekdaysRegex=UC),this._weekdaysStrictRegex&&u?this._weekdaysStrictRegex:this._weekdaysRegex)}function QC(u){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Hu.call(this),u?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(s(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=GC),this._weekdaysShortStrictRegex&&u?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function eN(u){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Hu.call(this),u?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(s(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=zC),this._weekdaysMinStrictRegex&&u?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Hu(){function u(Ut,sn){return sn.length-Ut.length}var f=[],y=[],T=[],R=[],$,Y,me,Te,Ke;for($=0;$<7;$++)Y=b([2e3,1]).day($),me=ct(this.weekdaysMin(Y,"")),Te=ct(this.weekdaysShort(Y,"")),Ke=ct(this.weekdays(Y,"")),f.push(me),y.push(Te),T.push(Ke),R.push(me),R.push(Te),R.push(Ke);f.sort(u),y.sort(u),T.sort(u),R.sort(u),this._weekdaysRegex=new RegExp("^("+R.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+T.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+y.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+f.join("|")+")","i")}function Wu(){return this.hours()%12||12}function tN(){return this.hours()||24}Q("H",["HH",2],0,"hour"),Q("h",["hh",2],0,Wu),Q("k",["kk",2],0,tN),Q("hmm",0,0,function(){return""+Wu.apply(this)+J(this.minutes(),2)}),Q("hmmss",0,0,function(){return""+Wu.apply(this)+J(this.minutes(),2)+J(this.seconds(),2)}),Q("Hmm",0,0,function(){return""+this.hours()+J(this.minutes(),2)}),Q("Hmmss",0,0,function(){return""+this.hours()+J(this.minutes(),2)+J(this.seconds(),2)});function dv(u,f){Q(u,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),f)})}dv("a",!0),dv("A",!1),$e("hour","h"),te("hour",13);function pv(u,f){return f._meridiemParse}le("a",pv),le("A",pv),le("H",He),le("h",He),le("k",He),le("HH",He,ze),le("hh",He,ze),le("kk",He,ze),le("hmm",Bn),le("hmmss",Jr),le("Hmm",Bn),le("Hmmss",Jr),Oe(["H","HH"],rt),Oe(["k","kk"],function(u,f,y){var T=ge(u);f[rt]=T===24?0:T}),Oe(["a","A"],function(u,f,y){y._isPm=y._locale.isPM(u),y._meridiem=u}),Oe(["h","hh"],function(u,f,y){f[rt]=ge(u),S(y).bigHour=!0}),Oe("hmm",function(u,f,y){var T=u.length-2;f[rt]=ge(u.substr(0,T)),f[dt]=ge(u.substr(T)),S(y).bigHour=!0}),Oe("hmmss",function(u,f,y){var T=u.length-4,R=u.length-2;f[rt]=ge(u.substr(0,T)),f[dt]=ge(u.substr(T,2)),f[kr]=ge(u.substr(R)),S(y).bigHour=!0}),Oe("Hmm",function(u,f,y){var T=u.length-2;f[rt]=ge(u.substr(0,T)),f[dt]=ge(u.substr(T))}),Oe("Hmmss",function(u,f,y){var T=u.length-4,R=u.length-2;f[rt]=ge(u.substr(0,T)),f[dt]=ge(u.substr(T,2)),f[kr]=ge(u.substr(R))});function rN(u){return(u+"").toLowerCase().charAt(0)==="p"}var nN=/[ap]\.?m?\.?/i,aN=qe("Hours",!0);function iN(u,f,y){return u>11?y?"pm":"PM":y?"am":"AM"}var fv={calendar:G,longDateFormat:oe,invalidDate:X,ordinal:fe,dayOfMonthOrdinalParse:he,relativeTime:at,months:vC,monthsShort:nv,week:NC,weekdays:FC,weekdaysMin:BC,weekdaysShort:cv,meridiemParse:nN},lt={},fi={},gi;function oN(u,f){var y,T=Math.min(u.length,f.length);for(y=0;y0;){if(R=ss($.slice(0,y).join("-")),R)return R;if(T&&T.length>=y&&oN($,T)>=y-1)break;y--}f++}return gi}function lN(u){return u.match("^[^/\\\\]*$")!=null}function ss(u){var f=null,y;if(lt[u]===void 0&&e&&e.exports&&lN(u))try{f=gi._abbr,y=QD,y("./locale/"+u),xn(f)}catch{lt[u]=null}return lt[u]}function xn(u,f){var y;return u&&(c(f)?y=rn(u):y=Vu(u,f),y?gi=y:typeof console<"u"&&console.warn&&console.warn("Locale "+u+" not found. Did you forget to load it?")),gi._abbr}function Vu(u,f){if(f!==null){var y,T=fv;if(f.abbr=u,lt[u]!=null)j("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),T=lt[u]._config;else if(f.parentLocale!=null)if(lt[f.parentLocale]!=null)T=lt[f.parentLocale]._config;else if(y=ss(f.parentLocale),y!=null)T=y._config;else return fi[f.parentLocale]||(fi[f.parentLocale]=[]),fi[f.parentLocale].push({name:u,config:f}),null;return lt[u]=new W(z(T,f)),fi[u]&&fi[u].forEach(function(R){Vu(R.name,R.config)}),xn(u),lt[u]}else return delete lt[u],null}function uN(u,f){if(f!=null){var y,T,R=fv;lt[u]!=null&<[u].parentLocale!=null?lt[u].set(z(lt[u]._config,f)):(T=ss(u),T!=null&&(R=T._config),f=z(R,f),T==null&&(f.abbr=u),y=new W(f),y.parentLocale=lt[u],lt[u]=y),xn(u)}else lt[u]!=null&&(lt[u].parentLocale!=null?(lt[u]=lt[u].parentLocale,u===xn()&&xn(u)):lt[u]!=null&&delete lt[u]);return lt[u]}function rn(u){var f;if(u&&u._locale&&u._locale._abbr&&(u=u._locale._abbr),!u)return gi;if(!i(u)){if(f=ss(u),f)return f;u=[u]}return sN(u)}function cN(){return K(lt)}function Yu(u){var f,y=u._a;return y&&S(u).overflow===-2&&(f=y[We]<0||y[We]>11?We:y[kt]<1||y[kt]>is(y[_e],y[We])?kt:y[rt]<0||y[rt]>24||y[rt]===24&&(y[dt]!==0||y[kr]!==0||y[en]!==0)?rt:y[dt]<0||y[dt]>59?dt:y[kr]<0||y[kr]>59?kr:y[en]<0||y[en]>999?en:-1,S(u)._overflowDayOfYear&&(f<_e||f>kt)&&(f=kt),S(u)._overflowWeeks&&f===-1&&(f=ke),S(u)._overflowWeekday&&f===-1&&(f=Bt),S(u).overflow=f),u}var dN=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,pN=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,fN=/Z|[+-]\d\d(?::?\d\d)?/,ls=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Ku=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],gN=/^\/?Date\((-?\d+)/i,hN=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,mN={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function hv(u){var f,y,T=u._i,R=dN.exec(T)||pN.exec(T),$,Y,me,Te,Ke=ls.length,Ut=Ku.length;if(R){for(S(u).iso=!0,f=0,y=Ke;fci(Y)||u._dayOfYear===0)&&(S(u)._overflowDayOfYear=!0),y=di(Y,0,u._dayOfYear),u._a[We]=y.getUTCMonth(),u._a[kt]=y.getUTCDate()),f=0;f<3&&u._a[f]==null;++f)u._a[f]=T[f]=R[f];for(;f<7;f++)u._a[f]=T[f]=u._a[f]==null?f===2?1:0:u._a[f];u._a[rt]===24&&u._a[dt]===0&&u._a[kr]===0&&u._a[en]===0&&(u._nextDay=!0,u._a[rt]=0),u._d=(u._useUTC?di:IC).apply(null,T),$=u._useUTC?u._d.getUTCDay():u._d.getDay(),u._tzm!=null&&u._d.setUTCMinutes(u._d.getUTCMinutes()-u._tzm),u._nextDay&&(u._a[rt]=24),u._w&&typeof u._w.d<"u"&&u._w.d!==$&&(S(u).weekdayMismatch=!0)}}function _N(u){var f,y,T,R,$,Y,me,Te,Ke;f=u._w,f.GG!=null||f.W!=null||f.E!=null?($=1,Y=4,y=pa(f.GG,u._a[_e],pi(it(),1,4).year),T=pa(f.W,1),R=pa(f.E,1),(R<1||R>7)&&(Te=!0)):($=u._locale._week.dow,Y=u._locale._week.doy,Ke=pi(it(),$,Y),y=pa(f.gg,u._a[_e],Ke.year),T=pa(f.w,Ke.week),f.d!=null?(R=f.d,(R<0||R>6)&&(Te=!0)):f.e!=null?(R=f.e+$,(f.e<0||f.e>6)&&(Te=!0)):R=$),T<1||T>tn(y,$,Y)?S(u)._overflowWeeks=!0:Te!=null?S(u)._overflowWeekday=!0:(me=uv(y,T,R,$,Y),u._a[_e]=me.year,u._dayOfYear=me.dayOfYear)}n.ISO_8601=function(){},n.RFC_2822=function(){};function Zu(u){if(u._f===n.ISO_8601){hv(u);return}if(u._f===n.RFC_2822){mv(u);return}u._a=[],S(u).empty=!0;var f=""+u._i,y,T,R,$,Y,me=f.length,Te=0,Ke,Ut;for(R=ee(u._f,u._locale).match(ae)||[],Ut=R.length,y=0;y0&&S(u).unusedInput.push(Y),f=f.slice(f.indexOf(T)+T.length),Te+=T.length),Se[$]?(T?S(u).empty=!1:S(u).unusedTokens.push($),da($,T,u)):u._strict&&!T&&S(u).unusedTokens.push($);S(u).charsLeftOver=me-Te,f.length>0&&S(u).unusedInput.push(f),u._a[rt]<=12&&S(u).bigHour===!0&&u._a[rt]>0&&(S(u).bigHour=void 0),S(u).parsedDateParts=u._a.slice(0),S(u).meridiem=u._meridiem,u._a[rt]=TN(u._locale,u._a[rt],u._meridiem),Ke=S(u).era,Ke!==null&&(u._a[_e]=u._locale.erasConvertYear(Ke,u._a[_e])),Xu(u),Yu(u)}function TN(u,f,y){var T;return y==null?f:u.meridiemHour!=null?u.meridiemHour(f,y):(u.isPM!=null&&(T=u.isPM(y),T&&f<12&&(f+=12),!T&&f===12&&(f=0)),f)}function AN(u){var f,y,T,R,$,Y,me=!1,Te=u._f.length;if(Te===0){S(u).invalidFormat=!0,u._d=new Date(NaN);return}for(R=0;Rthis?this:u:w()});function vv(u,f){var y,T;if(f.length===1&&i(f[0])&&(f=f[0]),!f.length)return it();for(y=f[0],T=1;Tthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function VN(){if(!c(this._isDSTShifted))return this._isDSTShifted;var u={},f;return E(u,this),u=bv(u),u._a?(f=u._isUTC?b(u._a):it(u._a),this._isDSTShifted=this.isValid()&&jN(u._a,f.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function YN(){return this.isValid()?!this._isUTC:!1}function KN(){return this.isValid()?this._isUTC:!1}function Ev(){return this.isValid()?this._isUTC&&this._offset===0:!1}var XN=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,ZN=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Rr(u,f){var y=u,T=null,R,$,Y;return cs(u)?y={ms:u._milliseconds,d:u._days,M:u._months}:d(u)||!isNaN(+u)?(y={},f?y[f]=+u:y.milliseconds=+u):(T=XN.exec(u))?(R=T[1]==="-"?-1:1,y={y:0,d:ge(T[kt])*R,h:ge(T[rt])*R,m:ge(T[dt])*R,s:ge(T[kr])*R,ms:ge(Ju(T[en]*1e3))*R}):(T=ZN.exec(u))?(R=T[1]==="-"?-1:1,y={y:qn(T[2],R),M:qn(T[3],R),w:qn(T[4],R),d:qn(T[5],R),h:qn(T[6],R),m:qn(T[7],R),s:qn(T[8],R)}):y==null?y={}:typeof y=="object"&&("from"in y||"to"in y)&&(Y=JN(it(y.from),it(y.to)),y={},y.ms=Y.milliseconds,y.M=Y.months),$=new us(y),cs(u)&&s(u,"_locale")&&($._locale=u._locale),cs(u)&&s(u,"_isValid")&&($._isValid=u._isValid),$}Rr.fn=us.prototype,Rr.invalid=$N;function qn(u,f){var y=u&&parseFloat(u.replace(",","."));return(isNaN(y)?0:y)*f}function xv(u,f){var y={};return y.months=f.month()-u.month()+(f.year()-u.year())*12,u.clone().add(y.months,"M").isAfter(f)&&--y.months,y.milliseconds=+f-+u.clone().add(y.months,"M"),y}function JN(u,f){var y;return u.isValid()&&f.isValid()?(f=ec(f,u),u.isBefore(f)?y=xv(u,f):(y=xv(f,u),y.milliseconds=-y.milliseconds,y.months=-y.months),y):{milliseconds:0,months:0}}function wv(u,f){return function(y,T){var R,$;return T!==null&&!isNaN(+T)&&(j(f,"moment()."+f+"(period, number) is deprecated. Please use moment()."+f+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),$=y,y=T,T=$),R=Rr(y,T),_v(this,R,u),this}}function _v(u,f,y,T){var R=f._milliseconds,$=Ju(f._days),Y=Ju(f._months);u.isValid()&&(T=T??!0,Y&&iv(u,Le(u,"Month")+Y*y),$&&Ge(u,"Date",Le(u,"Date")+$*y),R&&u._d.setTime(u._d.valueOf()+R*y),T&&n.updateOffset(u,$||Y))}var QN=wv(1,"add"),eL=wv(-1,"subtract");function Tv(u){return typeof u=="string"||u instanceof String}function tL(u){return C(u)||p(u)||Tv(u)||d(u)||nL(u)||rL(u)||u===null||u===void 0}function rL(u){var f=o(u)&&!l(u),y=!1,T=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],R,$,Y=T.length;for(R=0;Ry.valueOf():y.valueOf()9999?xe(y,f?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):q(Date.prototype.toISOString)?f?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",xe(y,"Z")):xe(y,f?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function bL(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var u="moment",f="",y,T,R,$;return this.isLocal()||(u=this.utcOffset()===0?"moment.utc":"moment.parseZone",f="Z"),y="["+u+'("]',T=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",R="-MM-DD[T]HH:mm:ss.SSS",$=f+'[")]',this.format(y+T+R+$)}function yL(u){u||(u=this.isUtc()?n.defaultFormatUtc:n.defaultFormat);var f=xe(this,u);return this.localeData().postformat(f)}function vL(u,f){return this.isValid()&&(C(u)&&u.isValid()||it(u).isValid())?Rr({to:this,from:u}).locale(this.locale()).humanize(!f):this.localeData().invalidDate()}function SL(u){return this.from(it(),u)}function EL(u,f){return this.isValid()&&(C(u)&&u.isValid()||it(u).isValid())?Rr({from:this,to:u}).locale(this.locale()).humanize(!f):this.localeData().invalidDate()}function xL(u){return this.to(it(),u)}function Av(u){var f;return u===void 0?this._locale._abbr:(f=rn(u),f!=null&&(this._locale=f),this)}var Ov=N("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(u){return u===void 0?this.localeData():this.locale(u)});function kv(){return this._locale}var ps=1e3,fa=60*ps,fs=60*fa,Rv=(365*400+97)*24*fs;function ga(u,f){return(u%f+f)%f}function Iv(u,f,y){return u<100&&u>=0?new Date(u+400,f,y)-Rv:new Date(u,f,y).valueOf()}function Cv(u,f,y){return u<100&&u>=0?Date.UTC(u+400,f,y)-Rv:Date.UTC(u,f,y)}function wL(u){var f,y;if(u=Ye(u),u===void 0||u==="millisecond"||!this.isValid())return this;switch(y=this._isUTC?Cv:Iv,u){case"year":f=y(this.year(),0,1);break;case"quarter":f=y(this.year(),this.month()-this.month()%3,1);break;case"month":f=y(this.year(),this.month(),1);break;case"week":f=y(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":f=y(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":f=y(this.year(),this.month(),this.date());break;case"hour":f=this._d.valueOf(),f-=ga(f+(this._isUTC?0:this.utcOffset()*fa),fs);break;case"minute":f=this._d.valueOf(),f-=ga(f,fa);break;case"second":f=this._d.valueOf(),f-=ga(f,ps);break}return this._d.setTime(f),n.updateOffset(this,!0),this}function _L(u){var f,y;if(u=Ye(u),u===void 0||u==="millisecond"||!this.isValid())return this;switch(y=this._isUTC?Cv:Iv,u){case"year":f=y(this.year()+1,0,1)-1;break;case"quarter":f=y(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":f=y(this.year(),this.month()+1,1)-1;break;case"week":f=y(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":f=y(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":f=y(this.year(),this.month(),this.date()+1)-1;break;case"hour":f=this._d.valueOf(),f+=fs-ga(f+(this._isUTC?0:this.utcOffset()*fa),fs)-1;break;case"minute":f=this._d.valueOf(),f+=fa-ga(f,fa)-1;break;case"second":f=this._d.valueOf(),f+=ps-ga(f,ps)-1;break}return this._d.setTime(f),n.updateOffset(this,!0),this}function TL(){return this._d.valueOf()-(this._offset||0)*6e4}function AL(){return Math.floor(this.valueOf()/1e3)}function OL(){return new Date(this.valueOf())}function kL(){var u=this;return[u.year(),u.month(),u.date(),u.hour(),u.minute(),u.second(),u.millisecond()]}function RL(){var u=this;return{years:u.year(),months:u.month(),date:u.date(),hours:u.hours(),minutes:u.minutes(),seconds:u.seconds(),milliseconds:u.milliseconds()}}function IL(){return this.isValid()?this.toISOString():null}function CL(){return _(this)}function NL(){return m({},S(this))}function LL(){return S(this).overflow}function DL(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}Q("N",0,0,"eraAbbr"),Q("NN",0,0,"eraAbbr"),Q("NNN",0,0,"eraAbbr"),Q("NNNN",0,0,"eraName"),Q("NNNNN",0,0,"eraNarrow"),Q("y",["y",1],"yo","eraYear"),Q("y",["yy",2],0,"eraYear"),Q("y",["yyy",3],0,"eraYear"),Q("y",["yyyy",4],0,"eraYear"),le("N",rc),le("NN",rc),le("NNN",rc),le("NNNN",HL),le("NNNNN",WL),Oe(["N","NN","NNN","NNNN","NNNNN"],function(u,f,y,T){var R=y._locale.erasParse(u,T,y._strict);R?S(y).era=R:S(y).invalidEra=u}),le("y",Tr),le("yy",Tr),le("yyy",Tr),le("yyyy",Tr),le("yo",VL),Oe(["y","yy","yyy","yyyy"],_e),Oe(["yo"],function(u,f,y,T){var R;y._locale._eraYearOrdinalRegex&&(R=u.match(y._locale._eraYearOrdinalRegex)),y._locale.eraYearOrdinalParse?f[_e]=y._locale.eraYearOrdinalParse(u,R):f[_e]=parseInt(u,10)});function ML(u,f){var y,T,R,$=this._eras||rn("en")._eras;for(y=0,T=$.length;y=0)return $[T]}function $L(u,f){var y=u.since<=u.until?1:-1;return f===void 0?n(u.since).year():n(u.since).year()+(f-u.offset)*y}function jL(){var u,f,y,T=this.localeData().eras();for(u=0,f=T.length;u$&&(f=$),eD.call(this,u,f,y,T,R))}function eD(u,f,y,T,R){var $=uv(u,f,y,T,R),Y=di($.year,0,$.dayOfYear);return this.year(Y.getUTCFullYear()),this.month(Y.getUTCMonth()),this.date(Y.getUTCDate()),this}Q("Q",0,"Qo","quarter"),$e("quarter","Q"),te("quarter",7),le("Q",rr),Oe("Q",function(u,f){f[We]=(ge(u)-1)*3});function tD(u){return u==null?Math.ceil((this.month()+1)/3):this.month((u-1)*3+this.month()%3)}Q("D",["DD",2],"Do","date"),$e("date","D"),te("date",9),le("D",He),le("DD",He,ze),le("Do",function(u,f){return u?f._dayOfMonthOrdinalParse||f._ordinalParse:f._dayOfMonthOrdinalParseLenient}),Oe(["D","DD"],kt),Oe("Do",function(u,f){f[kt]=ge(u.match(He)[0])});var Lv=qe("Date",!0);Q("DDD",["DDDD",3],"DDDo","dayOfYear"),$e("dayOfYear","DDD"),te("dayOfYear",4),le("DDD",wr),le("DDDD",Kr),Oe(["DDD","DDDD"],function(u,f,y){y._dayOfYear=ge(u)});function rD(u){var f=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return u==null?f:this.add(u-f,"d")}Q("m",["mm",2],0,"minute"),$e("minute","m"),te("minute",14),le("m",He),le("mm",He,ze),Oe(["m","mm"],dt);var nD=qe("Minutes",!1);Q("s",["ss",2],0,"second"),$e("second","s"),te("second",15),le("s",He),le("ss",He,ze),Oe(["s","ss"],kr);var aD=qe("Seconds",!1);Q("S",0,0,function(){return~~(this.millisecond()/100)}),Q(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),Q(0,["SSS",3],0,"millisecond"),Q(0,["SSSS",4],0,function(){return this.millisecond()*10}),Q(0,["SSSSS",5],0,function(){return this.millisecond()*100}),Q(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),Q(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),Q(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),Q(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),$e("millisecond","ms"),te("millisecond",16),le("S",wr,rr),le("SS",wr,ze),le("SSS",wr,Kr);var wn,Dv;for(wn="SSSS";wn.length<=9;wn+="S")le(wn,Tr);function iD(u,f){f[en]=ge(("0."+u)*1e3)}for(wn="S";wn.length<=9;wn+="S")Oe(wn,iD);Dv=qe("Milliseconds",!1),Q("z",0,0,"zoneAbbr"),Q("zz",0,0,"zoneName");function oD(){return this._isUTC?"UTC":""}function sD(){return this._isUTC?"Coordinated Universal Time":""}var ne=k.prototype;ne.add=QN,ne.calendar=oL,ne.clone=sL,ne.diff=gL,ne.endOf=_L,ne.format=yL,ne.from=vL,ne.fromNow=SL,ne.to=EL,ne.toNow=xL,ne.get=Qe,ne.invalidAt=LL,ne.isAfter=lL,ne.isBefore=uL,ne.isBetween=cL,ne.isSame=dL,ne.isSameOrAfter=pL,ne.isSameOrBefore=fL,ne.isValid=CL,ne.lang=Ov,ne.locale=Av,ne.localeData=kv,ne.max=CN,ne.min=IN,ne.parsingFlags=NL,ne.set=jt,ne.startOf=wL,ne.subtract=eL,ne.toArray=kL,ne.toObject=RL,ne.toDate=OL,ne.toISOString=mL,ne.inspect=bL,typeof Symbol<"u"&&Symbol.for!=null&&(ne[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),ne.toJSON=IL,ne.toString=hL,ne.unix=AL,ne.valueOf=TL,ne.creationData=DL,ne.eraName=jL,ne.eraNarrow=FL,ne.eraAbbr=BL,ne.eraYear=UL,ne.year=lv,ne.isLeapYear=RC,ne.weekYear=YL,ne.isoWeekYear=KL,ne.quarter=ne.quarters=tD,ne.month=ov,ne.daysInMonth=AC,ne.week=ne.weeks=MC,ne.isoWeek=ne.isoWeeks=PC,ne.weeksInYear=JL,ne.weeksInWeekYear=QL,ne.isoWeeksInYear=XL,ne.isoWeeksInISOWeekYear=ZL,ne.date=Lv,ne.day=ne.days=KC,ne.weekday=XC,ne.isoWeekday=ZC,ne.dayOfYear=rD,ne.hour=ne.hours=aN,ne.minute=ne.minutes=nD,ne.second=ne.seconds=aD,ne.millisecond=ne.milliseconds=Dv,ne.utcOffset=BN,ne.utc=GN,ne.local=zN,ne.parseZone=qN,ne.hasAlignedHourOffset=HN,ne.isDST=WN,ne.isLocal=YN,ne.isUtcOffset=KN,ne.isUtc=Ev,ne.isUTC=Ev,ne.zoneAbbr=oD,ne.zoneName=sD,ne.dates=N("dates accessor is deprecated. Use date instead.",Lv),ne.months=N("months accessor is deprecated. Use month instead",ov),ne.years=N("years accessor is deprecated. Use year instead",lv),ne.zone=N("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",UN),ne.isDSTShifted=N("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",VN);function lD(u){return it(u*1e3)}function uD(){return it.apply(null,arguments).parseZone()}function Mv(u){return u}var Fe=W.prototype;Fe.calendar=V,Fe.longDateFormat=ie,Fe.invalidDate=Ee,Fe.ordinal=je,Fe.preparse=Mv,Fe.postformat=Mv,Fe.relativeTime=tt,Fe.pastFuture=tr,Fe.set=H,Fe.eras=ML,Fe.erasParse=PL,Fe.erasConvertYear=$L,Fe.erasAbbrRegex=zL,Fe.erasNameRegex=GL,Fe.erasNarrowRegex=qL,Fe.months=xC,Fe.monthsShort=wC,Fe.monthsParse=TC,Fe.monthsRegex=kC,Fe.monthsShortRegex=OC,Fe.week=CC,Fe.firstDayOfYear=DC,Fe.firstDayOfWeek=LC,Fe.weekdays=qC,Fe.weekdaysMin=WC,Fe.weekdaysShort=HC,Fe.weekdaysParse=YC,Fe.weekdaysRegex=JC,Fe.weekdaysShortRegex=QC,Fe.weekdaysMinRegex=eN,Fe.isPM=rN,Fe.meridiem=iN;function hs(u,f,y,T){var R=rn(),$=b().set(T,f);return R[y]($,u)}function Pv(u,f,y){if(d(u)&&(f=u,u=void 0),u=u||"",f!=null)return hs(u,f,y,"month");var T,R=[];for(T=0;T<12;T++)R[T]=hs(u,T,y,"month");return R}function ac(u,f,y,T){typeof u=="boolean"?(d(f)&&(y=f,f=void 0),f=f||""):(f=u,y=f,u=!1,d(f)&&(y=f,f=void 0),f=f||"");var R=rn(),$=u?R._week.dow:0,Y,me=[];if(y!=null)return hs(f,(y+$)%7,T,"day");for(Y=0;Y<7;Y++)me[Y]=hs(f,(Y+$)%7,T,"day");return me}function cD(u,f){return Pv(u,f,"months")}function dD(u,f){return Pv(u,f,"monthsShort")}function pD(u,f,y){return ac(u,f,y,"weekdays")}function fD(u,f,y){return ac(u,f,y,"weekdaysShort")}function gD(u,f,y){return ac(u,f,y,"weekdaysMin")}xn("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(u){var f=u%10,y=ge(u%100/10)===1?"th":f===1?"st":f===2?"nd":f===3?"rd":"th";return u+y}}),n.lang=N("moment.lang is deprecated. Use moment.locale instead.",xn),n.langData=N("moment.langData is deprecated. Use moment.localeData instead.",rn);var nn=Math.abs;function hD(){var u=this._data;return this._milliseconds=nn(this._milliseconds),this._days=nn(this._days),this._months=nn(this._months),u.milliseconds=nn(u.milliseconds),u.seconds=nn(u.seconds),u.minutes=nn(u.minutes),u.hours=nn(u.hours),u.months=nn(u.months),u.years=nn(u.years),this}function $v(u,f,y,T){var R=Rr(f,y);return u._milliseconds+=T*R._milliseconds,u._days+=T*R._days,u._months+=T*R._months,u._bubble()}function mD(u,f){return $v(this,u,f,1)}function bD(u,f){return $v(this,u,f,-1)}function jv(u){return u<0?Math.floor(u):Math.ceil(u)}function yD(){var u=this._milliseconds,f=this._days,y=this._months,T=this._data,R,$,Y,me,Te;return u>=0&&f>=0&&y>=0||u<=0&&f<=0&&y<=0||(u+=jv(ic(y)+f)*864e5,f=0,y=0),T.milliseconds=u%1e3,R=ve(u/1e3),T.seconds=R%60,$=ve(R/60),T.minutes=$%60,Y=ve($/60),T.hours=Y%24,f+=ve(Y/24),Te=ve(Fv(f)),y+=Te,f-=jv(ic(Te)),me=ve(y/12),y%=12,T.days=f,T.months=y,T.years=me,this}function Fv(u){return u*4800/146097}function ic(u){return u*146097/4800}function vD(u){if(!this.isValid())return NaN;var f,y,T=this._milliseconds;if(u=Ye(u),u==="month"||u==="quarter"||u==="year")switch(f=this._days+T/864e5,y=this._months+Fv(f),u){case"month":return y;case"quarter":return y/3;case"year":return y/12}else switch(f=this._days+Math.round(ic(this._months)),u){case"week":return f/7+T/6048e5;case"day":return f+T/864e5;case"hour":return f*24+T/36e5;case"minute":return f*1440+T/6e4;case"second":return f*86400+T/1e3;case"millisecond":return Math.floor(f*864e5)+T;default:throw new Error("Unknown unit "+u)}}function SD(){return this.isValid()?this._milliseconds+this._days*864e5+this._months%12*2592e6+ge(this._months/12)*31536e6:NaN}function an(u){return function(){return this.as(u)}}var ED=an("ms"),xD=an("s"),wD=an("m"),_D=an("h"),TD=an("d"),AD=an("w"),OD=an("M"),kD=an("Q"),RD=an("y");function ID(){return Rr(this)}function CD(u){return u=Ye(u),this.isValid()?this[u+"s"]():NaN}function Hn(u){return function(){return this.isValid()?this._data[u]:NaN}}var ND=Hn("milliseconds"),LD=Hn("seconds"),DD=Hn("minutes"),MD=Hn("hours"),PD=Hn("days"),$D=Hn("months"),jD=Hn("years");function FD(){return ve(this.days()/7)}var on=Math.round,ha={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function BD(u,f,y,T,R){return R.relativeTime(f||1,!!y,u,T)}function UD(u,f,y,T){var R=Rr(u).abs(),$=on(R.as("s")),Y=on(R.as("m")),me=on(R.as("h")),Te=on(R.as("d")),Ke=on(R.as("M")),Ut=on(R.as("w")),sn=on(R.as("y")),_n=$<=y.ss&&["s",$]||$0,_n[4]=T,BD.apply(null,_n)}function GD(u){return u===void 0?on:typeof u=="function"?(on=u,!0):!1}function zD(u,f){return ha[u]===void 0?!1:f===void 0?ha[u]:(ha[u]=f,u==="s"&&(ha.ss=f-1),!0)}function qD(u,f){if(!this.isValid())return this.localeData().invalidDate();var y=!1,T=ha,R,$;return typeof u=="object"&&(f=u,u=!1),typeof u=="boolean"&&(y=u),typeof f=="object"&&(T=Object.assign({},ha,f),f.s!=null&&f.ss==null&&(T.ss=f.s-1)),R=this.localeData(),$=UD(this,!y,T,R),y&&($=R.pastFuture(+this,$)),R.postformat($)}var oc=Math.abs;function ma(u){return(u>0)-(u<0)||+u}function ms(){if(!this.isValid())return this.localeData().invalidDate();var u=oc(this._milliseconds)/1e3,f=oc(this._days),y=oc(this._months),T,R,$,Y,me=this.asSeconds(),Te,Ke,Ut,sn;return me?(T=ve(u/60),R=ve(T/60),u%=60,T%=60,$=ve(y/12),y%=12,Y=u?u.toFixed(3).replace(/\.?0+$/,""):"",Te=me<0?"-":"",Ke=ma(this._months)!==ma(me)?"-":"",Ut=ma(this._days)!==ma(me)?"-":"",sn=ma(this._milliseconds)!==ma(me)?"-":"",Te+"P"+($?Ke+$+"Y":"")+(y?Ke+y+"M":"")+(f?Ut+f+"D":"")+(R||T||u?"T":"")+(R?sn+R+"H":"")+(T?sn+T+"M":"")+(u?sn+Y+"S":"")):"P0D"}var De=us.prototype;De.isValid=PN,De.abs=hD,De.add=mD,De.subtract=bD,De.as=vD,De.asMilliseconds=ED,De.asSeconds=xD,De.asMinutes=wD,De.asHours=_D,De.asDays=TD,De.asWeeks=AD,De.asMonths=OD,De.asQuarters=kD,De.asYears=RD,De.valueOf=SD,De._bubble=yD,De.clone=ID,De.get=CD,De.milliseconds=ND,De.seconds=LD,De.minutes=DD,De.hours=MD,De.days=PD,De.weeks=FD,De.months=$D,De.years=jD,De.humanize=qD,De.toISOString=ms,De.toString=ms,De.toJSON=ms,De.locale=Av,De.localeData=kv,De.toIsoString=N("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ms),De.lang=Ov,Q("X",0,0,"unix"),Q("x",0,0,"valueOf"),le("x",Ar),le("X",ui),Oe("X",function(u,f,y){y._d=new Date(parseFloat(u)*1e3)}),Oe("x",function(u,f,y){y._d=new Date(ge(u))});//! moment.js -return n.version="2.29.4",a(it),n.fn=ne,n.min=NN,n.max=LN,n.now=DN,n.utc=b,n.unix=lD,n.months=cD,n.isDate=p,n.locale=xn,n.invalid=w,n.duration=Rr,n.isMoment=C,n.weekdays=pD,n.parseZone=uD,n.localeData=rn,n.isDuration=cs,n.monthsShort=dD,n.weekdaysMin=gD,n.defineLocale=Vu,n.updateLocale=uN,n.locales=cN,n.weekdaysShort=fD,n.normalizeUnits=Ye,n.relativeTimeRounding=GD,n.relativeTimeThreshold=zD,n.calendarFormat=iL,n.prototype=ne,n.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},n})})(OO);var i$=OO.exports;const kO=ft(i$),o$=({text:e,type:t,sourceLink:r,date:n})=>h.jsxs(F,{direction:"column",children:[h.jsxs(F,{align:"center",direction:"row",justify:"space-between",children:[h.jsx(F,{align:"center",direction:"row",children:h.jsx(ni,{type:t})}),r&&h.jsx(Da,{href:`${r}${r!=null&&r.includes("?")?"&":"?"}open=system`,onClick:a=>a.stopPropagation(),target:"_blank",children:h.jsx(vn,{})})]}),h.jsx(b$,{"data-testid":"episode-description",children:e}),h.jsxs(F,{align:"center",direction:"row",justify:"flex-start",children:[h.jsx(F,{align:"center",direction:"row",justify:"flex-start",children:!!n&&h.jsx(oa,{children:kO.unix(n).fromNow()})}),r&&h.jsxs(Da,{href:r,onClick:a=>a.stopPropagation(),target:"_blank",children:[h.jsx(pO,{}),h.jsx(s$,{children:r})]})]})]}),s$=B(Ze)` +return n.version="2.29.4",a(it),n.fn=ne,n.min=NN,n.max=LN,n.now=DN,n.utc=b,n.unix=lD,n.months=cD,n.isDate=p,n.locale=xn,n.invalid=w,n.duration=Rr,n.isMoment=C,n.weekdays=pD,n.parseZone=uD,n.localeData=rn,n.isDuration=cs,n.monthsShort=dD,n.weekdaysMin=gD,n.defineLocale=Vu,n.updateLocale=uN,n.locales=cN,n.weekdaysShort=fD,n.normalizeUnits=Ye,n.relativeTimeRounding=GD,n.relativeTimeThreshold=zD,n.calendarFormat=iL,n.prototype=ne,n.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},n})})(OO);var i$=OO.exports;const kO=ft(i$),o$=({text:e,type:t,sourceLink:r,date:n})=>h.jsxs(F,{direction:"column",children:[h.jsxs(F,{align:"center",direction:"row",justify:"space-between",children:[h.jsx(F,{align:"center",direction:"row",children:h.jsx(ni,{type:t})}),r&&h.jsx(Da,{href:`${r}${r!=null&&r.includes("?")?"&":"?"}open=system`,onClick:a=>a.stopPropagation(),target:"_blank",children:h.jsx(vn,{})})]}),h.jsx(b$,{"data-testid":"episode-description",children:e}),h.jsxs(F,{align:"center",direction:"row",justify:"flex-start",children:[h.jsx(F,{align:"center",direction:"row",justify:"flex-start",children:!!n&&h.jsx(oa,{children:kO.unix(n).fromNow()})}),r&&h.jsxs(Da,{href:r,onClick:a=>a.stopPropagation(),target:"_blank",children:[h.jsx(cO,{}),h.jsx(s$,{children:r})]})]})]}),s$=B(Ze)` max-width: 150px; overflow: hidden; text-overflow: ellipsis; @@ -573,7 +573,7 @@ return n.version="2.29.4",a(it),n.fn=ne,n.min=NN,n.max=LN,n.now=DN,n.utc=b,n.uni .player-controls { margin-left: 4px; } -`,Cb=({boostCount:e,date:t,imageUrl:r,showTitle:n,type:a,text:i,name:o,sourceLink:s,verified:l=!1,twitterHandle:c,className:d="episode-wrapper",onClick:p,node:g})=>{const m=Nt(A=>A.currentSearch),b=xb(A=>A.setHoveredNode),v=qr(String(i),m),S=qr(String(o),m),_=qr(String(a==="show"?"":n),m),w=["Tweet","person","guest","topic","document"];return h.jsxs(m$,{className:d,onClick:p,onMouseLeave:()=>{b(null)},onMouseOver:()=>{b(g)},children:[!w.includes(a)&&h.jsx(Q2,{boostCount:e,date:t,imageUrl:r,newName:o,node:g,showTitle:n,type:a}),a==="topic"&&h.jsx(y$,{children:h.jsxs(F,{grow:1,shrink:1,children:[h.jsxs(F,{align:"center",direction:"row",justify:"space-between",children:[h.jsxs(F,{align:"center",direction:"row",pr:16,children:[h.jsx(OM,{}),h.jsx("p",{children:_})]}),s&&h.jsx(Da,{href:`${s}${s!=null&&s.includes("?")?"&":"?"}open=system`,onClick:A=>A.stopPropagation(),target:"_blank",children:h.jsx(vn,{})})]}),h.jsx(F,{align:"center",direction:"row",justify:"flex-start",mt:9,children:!!t&&h.jsx(oa,{children:ti.unix(t).fromNow()})})]})}),["person","guest"].includes(a)&&h.jsx(l$,{date:t,imageUrl:r,name:S||"",sourceLink:s||"",title:n||""}),["image"].includes(a)&&h.jsx(r$,{date:t,imageUrl:s,name:S||"",sourceLink:s||""}),a==="Tweet"&&h.jsx(d$,{date:t,imageUrl:r,name:S||"",sourceLink:s||"",text:v||"",twitterHandle:c,verified:l}),a==="document"&&h.jsx(o$,{date:t,sourceLink:s||"",text:v||"",type:a})]})},b$=B(F)` +`,Cb=({boostCount:e,date:t,imageUrl:r,showTitle:n,type:a,text:i,name:o,sourceLink:s,verified:l=!1,twitterHandle:c,className:d="episode-wrapper",onClick:p,node:g})=>{const m=Nt(A=>A.currentSearch),b=xb(A=>A.setHoveredNode),v=qr(String(i),m),S=qr(String(o),m),_=qr(String(a==="show"?"":n),m),w=["Tweet","person","guest","topic","document"];return h.jsxs(m$,{className:d,onClick:p,onMouseLeave:()=>{b(null)},onMouseOver:()=>{b(g)},children:[!w.includes(a)&&h.jsx(Q2,{boostCount:e,date:t,imageUrl:r,newName:o,node:g,showTitle:n,type:a}),a==="topic"&&h.jsx(y$,{children:h.jsxs(F,{grow:1,shrink:1,children:[h.jsxs(F,{align:"center",direction:"row",justify:"space-between",children:[h.jsxs(F,{align:"center",direction:"row",pr:16,children:[h.jsx(_M,{}),h.jsx("p",{children:_})]}),s&&h.jsx(Da,{href:`${s}${s!=null&&s.includes("?")?"&":"?"}open=system`,onClick:A=>A.stopPropagation(),target:"_blank",children:h.jsx(vn,{})})]}),h.jsx(F,{align:"center",direction:"row",justify:"flex-start",mt:9,children:!!t&&h.jsx(oa,{children:ti.unix(t).fromNow()})})]})}),["person","guest"].includes(a)&&h.jsx(l$,{date:t,imageUrl:r,name:S||"",sourceLink:s||"",title:n||""}),["image"].includes(a)&&h.jsx(r$,{date:t,imageUrl:s,name:S||"",sourceLink:s||""}),a==="Tweet"&&h.jsx(d$,{date:t,imageUrl:r,name:S||"",sourceLink:s||"",text:v||"",twitterHandle:c,verified:l}),a==="document"&&h.jsx(o$,{date:t,sourceLink:s||"",text:v||"",type:a})]})},b$=B(F)` font-family: Barlow; font-size: 13px; font-style: normal; @@ -672,7 +672,7 @@ return n.version="2.29.4",a(it),n.fn=ne,n.min=NN,n.max=LN,n.now=DN,n.utc=b,n.uni overflow-y: auto; overflow-x: hidden; background: ${P.body}; -`,Nb=e=>{const{properties:t,ref_id:r}=e;return{boost:(t==null?void 0:t.boost)||0,children:[],x:0,y:0,z:0,edge_count:e.edge_count||0,hidden:!1,colors:[],date:t==null?void 0:t.date,description:"",episode_title:(t==null?void 0:t.episode_title)||"",hosts:[],guests:[],id:"",image_url:t==null?void 0:t.image_url,sender_pic:"",sender_alias:"",message_content:"",keyword:!1,label:"",source_link:(t==null?void 0:t.source_link)||"",link:(t==null?void 0:t.link)||"",name:e.name,node_type:e.node_type,ref_id:r,scale:1,show_title:(t==null?void 0:t.show_title)||"",text:t==null?void 0:t.text,timestamp:"",topics:[],type:(t==null?void 0:t.type)||"",weight:0,tweet_id:t==null?void 0:t.tweet_id,posted_by:void 0,twitter_handle:t==null?void 0:t.twitter_handle,profile_picture:"",verified:t==null?void 0:t.verified,unique_id:"",properties:{},media_url:""}},S$={edge_type:"POSTED",properties:{date_added_to_graph:"1737561660.0435429",weight:1},ref_id:"7efabdc1-b494-4d8c-8d55-5062ce1237d3",source:"efa4819e-a54e-49dd-858f-2aed5cf10940",target:"0ba6ef37-bf92-4094-89a0-893f05d34e6c"},E$=({sourceIds:e,question:t})=>{const r=M.useRef(null),[n,a]=M.useState(!1),i=ur(m=>m.addNewNode),o=M.useRef(!1),{dataInitial:s}=Na(m=>m),l=Fo(),c=M.useMemo(()=>(s==null?void 0:s.nodes.filter(m=>e.includes(m.ref_id)))||[],[s==null?void 0:s.nodes,e]);M.useEffect(()=>{if(!c.length||o.current)return;const m=c.map((b,v)=>({...S$,source:t,target:b.ref_id,ref_id:`${String(+new Date)}-${v}`,edge_type:"IS_SOURCE",properties:{date_added_to_graph:String(new Date),weight:1}}));o.current=!0,i({nodes:c,edges:m})},[c,i,t]);const d=()=>a(!n),p=n?c:[...c].slice(0,3),g=M.useCallback(m=>{l(m)},[l]);return h.jsxs(_$,{children:[h.jsx(La,{direction:"right",in:!0,mountOnEnter:!0,children:h.jsxs(w$,{align:"center",className:"heading",direction:"row",justify:"space-between",children:[h.jsxs(F,{align:"center",direction:"row",children:[h.jsx("div",{className:"heading__icon",children:h.jsx(kM,{})}),h.jsx("span",{className:"tittle",children:"Sources"}),h.jsx("span",{className:"heading__count",children:e.length})]}),h.jsxs(A$,{onClick:d,children:[n?"Hide all":"Show all",n?h.jsx(wb,{}):h.jsx(Vl,{})]})]})}),n&&p.length>0&&h.jsx(v$,{ref:r,id:"search-result-list",shrink:1,children:p.map((m,b)=>{const v=Nb(m),{image_url:S,date:O,boost:_,show_title:w,node_type:A,text:x,source_link:E,name:k,verified:C=!1,twitter_handle:I}=v||{};return h.jsx(T$,{boostCount:_||0,date:O||0,imageUrl:S||"",name:k||"",node:m,onClick:()=>{g(m)},showTitle:Ib(w),sourceLink:E,text:x||"",twitterHandle:I,type:A,verified:C},b.toString())})})]})},x$=M.memo(E$),w$=B(F)` +`,Nb=e=>{const{properties:t,ref_id:r}=e;return{boost:(t==null?void 0:t.boost)||0,children:[],x:0,y:0,z:0,edge_count:e.edge_count||0,hidden:!1,colors:[],date:t==null?void 0:t.date,description:"",episode_title:(t==null?void 0:t.episode_title)||"",hosts:[],guests:[],id:"",image_url:t==null?void 0:t.image_url,sender_pic:"",sender_alias:"",message_content:"",keyword:!1,label:"",source_link:(t==null?void 0:t.source_link)||"",link:(t==null?void 0:t.link)||"",name:e.name,node_type:e.node_type,ref_id:r,scale:1,show_title:(t==null?void 0:t.show_title)||"",text:t==null?void 0:t.text,timestamp:"",topics:[],type:(t==null?void 0:t.type)||"",weight:0,tweet_id:t==null?void 0:t.tweet_id,posted_by:void 0,twitter_handle:t==null?void 0:t.twitter_handle,profile_picture:"",verified:t==null?void 0:t.verified,unique_id:"",properties:{},media_url:""}},S$={edge_type:"POSTED",properties:{date_added_to_graph:"1737561660.0435429",weight:1},ref_id:"7efabdc1-b494-4d8c-8d55-5062ce1237d3",source:"efa4819e-a54e-49dd-858f-2aed5cf10940",target:"0ba6ef37-bf92-4094-89a0-893f05d34e6c"},E$=({sourceIds:e,question:t})=>{const r=M.useRef(null),[n,a]=M.useState(!1),i=ur(m=>m.addNewNode),o=M.useRef(!1),{dataInitial:s}=Na(m=>m),l=Fo(),c=M.useMemo(()=>(s==null?void 0:s.nodes.filter(m=>e.includes(m.ref_id)))||[],[s==null?void 0:s.nodes,e]);M.useEffect(()=>{if(!c.length||o.current)return;const m=c.map((b,v)=>({...S$,source:t,target:b.ref_id,ref_id:`${String(+new Date)}-${v}`,edge_type:"IS_SOURCE",properties:{date_added_to_graph:String(new Date),weight:1}}));o.current=!0,i({nodes:c,edges:m})},[c,i,t]);const d=()=>a(!n),p=n?c:[...c].slice(0,3),g=M.useCallback(m=>{l(m)},[l]);return h.jsxs(_$,{children:[h.jsx(La,{direction:"right",in:!0,mountOnEnter:!0,children:h.jsxs(w$,{align:"center",className:"heading",direction:"row",justify:"space-between",children:[h.jsxs(F,{align:"center",direction:"row",children:[h.jsx("div",{className:"heading__icon",children:h.jsx(TM,{})}),h.jsx("span",{className:"tittle",children:"Sources"}),h.jsx("span",{className:"heading__count",children:e.length})]}),h.jsxs(A$,{onClick:d,children:[n?"Hide all":"Show all",n?h.jsx(Eb,{}):h.jsx(Vl,{})]})]})}),n&&p.length>0&&h.jsx(v$,{ref:r,id:"search-result-list",shrink:1,children:p.map((m,b)=>{const v=Nb(m),{image_url:S,date:O,boost:_,show_title:w,node_type:A,text:x,source_link:E,name:k,verified:C=!1,twitter_handle:I}=v||{};return h.jsx(T$,{boostCount:_||0,date:O||0,imageUrl:S||"",name:k||"",node:m,onClick:()=>{g(m)},showTitle:Ib(w),sourceLink:E,text:x||"",twitterHandle:I,type:A,verified:C},b.toString())})})]})},x$=M.memo(E$),w$=B(F)` &.heading { font-weight: 600; color: ${P.white}; @@ -754,7 +754,7 @@ return n.version="2.29.4",a(it),n.fn=ne,n.min=NN,n.max=LN,n.now=DN,n.utc=b,n.uni border-radius: 50%; margin-right: 8px; } -`,Si=B(bO)` +`,Si=B(mO)` && { background: #353a46; border-radius: 0.5rem; @@ -771,7 +771,7 @@ return n.version="2.29.4",a(it),n.fn=ne,n.min=NN,n.max=LN,n.now=DN,n.utc=b,n.uni `,I$=B(Ze)` font-weight: 600; font-size: 0.9375rem; -`,Ei=8,As=332,C$=()=>h.jsx(h.Fragment,{children:h.jsx(O$,{children:h.jsxs(F,{direction:"column",children:[h.jsxs(F,{direction:"row",children:[h.jsx(R$,{children:h.jsx(RM,{})}),h.jsx(I$,{children:"Answer"})]}),h.jsxs(k$,{grow:1,shrink:1,children:[h.jsx(Si,{height:Ei,variant:"rectangular",width:As}),h.jsx(Si,{height:Ei,variant:"rectangular",width:As}),h.jsx(Si,{height:Ei,variant:"rectangular",width:As}),h.jsx(Si,{height:Ei,variant:"rectangular",width:As}),h.jsx(Si,{height:Ei,variant:"rectangular",width:180})]})]})})}),N$=B.div` +`,Ei=8,As=332,C$=()=>h.jsx(h.Fragment,{children:h.jsx(O$,{children:h.jsxs(F,{direction:"column",children:[h.jsxs(F,{direction:"row",children:[h.jsx(R$,{children:h.jsx(AM,{})}),h.jsx(I$,{children:"Answer"})]}),h.jsxs(k$,{grow:1,shrink:1,children:[h.jsx(Si,{height:Ei,variant:"rectangular",width:As}),h.jsx(Si,{height:Ei,variant:"rectangular",width:As}),h.jsx(Si,{height:Ei,variant:"rectangular",width:As}),h.jsx(Si,{height:Ei,variant:"rectangular",width:As}),h.jsx(Si,{height:Ei,variant:"rectangular",width:180})]})]})})}),N$=B.div` flex-grow: 1; overflow-wrap: break-word; white-space: normal; @@ -785,7 +785,7 @@ return n.version="2.29.4",a(it),n.fn=ne,n.min=NN,n.max=LN,n.now=DN,n.utc=b,n.uni padding: 24px 10px 24px 24px; flex-shrink: 1; overflow: hidden; -`,Zv=({question:e,response:t,refId:r})=>{const n=M.useRef(null),[a,i]=M.useState(!1),{setAiSummaryAnswer:o}=Na(w=>w),{setBudget:s}=jo(w=>w),{setAbortRequests:l}=ur(w=>w),c=M.useRef(null),{currentPlayingAudio:d,setCurrentPlayingAudio:p}=Nt(w=>w),[g,m]=M.useState(!1);M.useEffect(()=>{n.current&&n.current.scrollIntoView({behavior:"smooth"})},[]),M.useEffect(()=>{const w=c.current,A=()=>{p(null),m(!1)};return w&&w.addEventListener("ended",A),()=>{w&&w.removeEventListener("ended",A)}},[p,g]);const b=()=>{i(!a)},v=()=>{r&&o(r,{hasBeenRendered:!0})},S=()=>{c.current&&(c.current.paused?(c.current.play(),p(c),m(!0)):(c.current.pause(),p(null),m(!1)))},O=()=>{d!=null&&d.current&&d.current!==c.current&&(d.current.pause(),p(null)),S()},_=async()=>{o(r,{question:e,answer:"",answerLoading:!0,sourcesLoading:!0,questionsLoading:!0,entities:void 0,shouldRender:!0,questions:[],sources:[],audio_en:void 0});const{fetchData:w}=ur.getState(),{resetAiSummaryAnswer:A}=Na.getState();A(),await w(s,l,e,{force_regenerate:!0})};return h.jsxs(M$,{children:[h.jsxs(D$,{children:[h.jsx(N$,{ref:n,children:h.jsx(L$,{children:e})}),h.jsx(P$,{onClick:b,children:a?h.jsx(Vl,{}):h.jsx(wb,{})})]}),!a&&h.jsxs(h.Fragment,{children:[t.answerLoading?h.jsx(C$,{}):h.jsx(q2,{answer:t.answer||"",entities:t.entities,handleLoaded:()=>v(),hasAudio:!!t.audio_en,hasBeenRendered:!!(t!=null&&t.hasBeenRendered),isPlaying:g&&(d==null?void 0:d.current)===c.current,onRegenerate:_,onTogglePlay:O}),t.questionsLoading?h.jsx(TO,{count:1}):h.jsx(W2,{questions:t.questions||[]}),((t==null?void 0:t.sources)||[]).length?h.jsx(x$,{question:e,sourceIds:t.sources||[]}):null]}),t.audio_en&&h.jsx($$,{ref:c,src:t.audio_en,children:h.jsx("track",{kind:"captions"})})]})},M$=B(F).attrs({direction:"column"})` +`,Zv=({question:e,response:t,refId:r})=>{const n=M.useRef(null),[a,i]=M.useState(!1),{setAiSummaryAnswer:o}=Na(w=>w),{setBudget:s}=jo(w=>w),{setAbortRequests:l}=ur(w=>w),c=M.useRef(null),{currentPlayingAudio:d,setCurrentPlayingAudio:p}=Nt(w=>w),[g,m]=M.useState(!1);M.useEffect(()=>{n.current&&n.current.scrollIntoView({behavior:"smooth"})},[]),M.useEffect(()=>{const w=c.current,A=()=>{p(null),m(!1)};return w&&w.addEventListener("ended",A),()=>{w&&w.removeEventListener("ended",A)}},[p,g]);const b=()=>{i(!a)},v=()=>{r&&o(r,{hasBeenRendered:!0})},S=()=>{c.current&&(c.current.paused?(c.current.play(),p(c),m(!0)):(c.current.pause(),p(null),m(!1)))},O=()=>{d!=null&&d.current&&d.current!==c.current&&(d.current.pause(),p(null)),S()},_=async()=>{o(r,{question:e,answer:"",answerLoading:!0,sourcesLoading:!0,questionsLoading:!0,entities:void 0,shouldRender:!0,questions:[],sources:[],audio_en:void 0});const{fetchData:w}=ur.getState(),{resetAiSummaryAnswer:A}=Na.getState();A(),await w(s,l,e,{force_regenerate:!0})};return h.jsxs(M$,{children:[h.jsxs(D$,{children:[h.jsx(N$,{ref:n,children:h.jsx(L$,{children:e})}),h.jsx(P$,{onClick:b,children:a?h.jsx(Vl,{}):h.jsx(Eb,{})})]}),!a&&h.jsxs(h.Fragment,{children:[t.answerLoading?h.jsx(C$,{}):h.jsx(q2,{answer:t.answer||"",entities:t.entities,handleLoaded:()=>v(),hasAudio:!!t.audio_en,hasBeenRendered:!!(t!=null&&t.hasBeenRendered),isPlaying:g&&(d==null?void 0:d.current)===c.current,onRegenerate:_,onTogglePlay:O}),t.questionsLoading?h.jsx(TO,{count:1}):h.jsx(W2,{questions:t.questions||[]}),((t==null?void 0:t.sources)||[]).length?h.jsx(x$,{question:e,sourceIds:t.sources||[]}):null]}),t.audio_en&&h.jsx($$,{ref:c,src:t.audio_en,children:h.jsx("track",{kind:"captions"})})]})},M$=B(F).attrs({direction:"column"})` border-top: 1px solid #101317; `,P$=B(Mt)` &&.MuiButton-root { @@ -811,12 +811,12 @@ return n.version="2.29.4",a(it),n.fn=ne,n.min=NN,n.max=LN,n.now=DN,n.utc=b,n.uni } `,$$=B.audio` display: none; -`,j$=390,F$=()=>{const{aiSummaryAnswers:e,resetAiSummaryAnswer:t,newLoading:r,setNewLoading:n}=Na(l=>l),{abortFetchData:a,resetGraph:i}=ur(l=>l),o=ql(),s=()=>{n(null),a(),i(),t(),o("/")};return h.jsxs(B$,{children:[h.jsx(F,{align:"flex-start",children:h.jsx(F,{p:24,children:h.jsx(Mt,{onClick:s,startIcon:h.jsx(IM,{}),children:"Home"})})}),h.jsx(U$,{children:h.jsxs(F,{children:[Object.keys(e).filter(l=>e[l].shouldRender).map(l=>{var c;return h.jsx(Zv,{question:((c=e[l])==null?void 0:c.question)||"",refId:l,response:e[l]},l)}),r&&h.jsx(Zv,{question:r.question||"",refId:"",response:r})]})}),h.jsx(x2,{})]})},B$=B(F)(({theme:e})=>({position:"relative",background:P.BG1,flex:1,width:"100%",zIndex:30,[e.breakpoints.up("sm")]:{width:j$}})),U$=B(F)` +`,j$=390,F$=()=>{const{aiSummaryAnswers:e,resetAiSummaryAnswer:t,newLoading:r,setNewLoading:n}=Na(l=>l),{abortFetchData:a,resetGraph:i}=ur(l=>l),o=ql(),s=()=>{n(null),a(),i(),t(),o("/")};return h.jsxs(B$,{children:[h.jsx(F,{align:"flex-start",children:h.jsx(F,{p:24,children:h.jsx(Mt,{onClick:s,startIcon:h.jsx(OM,{}),children:"Home"})})}),h.jsx(U$,{children:h.jsxs(F,{children:[Object.keys(e).filter(l=>e[l].shouldRender).map(l=>{var c;return h.jsx(Zv,{question:((c=e[l])==null?void 0:c.question)||"",refId:l,response:e[l]},l)}),r&&h.jsx(Zv,{question:r.question||"",refId:"",response:r})]})}),h.jsx(x2,{})]})},B$=B(F)(({theme:e})=>({position:"relative",background:P.BG1,flex:1,width:"100%",zIndex:30,[e.breakpoints.up("sm")]:{width:j$}})),U$=B(F)` overflow-y: auto; overflow-x: hidden; flex: 1; width: 100%; -`,G$=()=>{var p;const[e,t]=M.useState(null),{sidebarFilter:r,setSidebarFilter:n,sidebarFilterCounts:a=[]}=ur(g=>g),i=(r??"").toLowerCase(),o=((p=a.find(g=>g.name===i))==null?void 0:p.count)||0,s=g=>g?g.charAt(0).toUpperCase()+g.slice(1):"",l=g=>{o>=1&&t(g.currentTarget)},c=()=>{t(null)},d=g=>{n(g),c()};return h.jsxs("div",{children:[h.jsxs(z$,{onClick:l,children:[h.jsx("div",{className:"text",children:"Show"}),h.jsx("div",{className:"value","data-testid":"value",children:`${s(i)} (${o})`}),o>=1&&h.jsx("div",{className:"icon",children:e?h.jsx(wb,{}):h.jsx(Vl,{})})]}),h.jsx(H$,{anchorEl:e,anchorOrigin:{vertical:"bottom",horizontal:"left"},anchorPosition:{top:62,left:0},onClose:c,open:!!e,transformOrigin:{vertical:"top",horizontal:"left"},children:h.jsx(KM,{children:a.filter(({name:g})=>g).map(({name:g,count:m})=>h.jsxs(q$,{className:dn({active:g===r}),onClick:b=>{b.preventDefault(),d(g)},children:[h.jsx("span",{className:"icon",children:g===r?h.jsx(fO,{}):null}),h.jsx("span",{children:`${s(g)} (${m})`})]},g))})})]})},z$=B(F).attrs({direction:"row",align:"center"})` +`,G$=()=>{var p;const[e,t]=M.useState(null),{sidebarFilter:r,setSidebarFilter:n,sidebarFilterCounts:a=[]}=ur(g=>g),i=(r??"").toLowerCase(),o=((p=a.find(g=>g.name===i))==null?void 0:p.count)||0,s=g=>g?g.charAt(0).toUpperCase()+g.slice(1):"",l=g=>{o>=1&&t(g.currentTarget)},c=()=>{t(null)},d=g=>{n(g),c()};return h.jsxs("div",{children:[h.jsxs(z$,{onClick:l,children:[h.jsx("div",{className:"text",children:"Show"}),h.jsx("div",{className:"value","data-testid":"value",children:`${s(i)} (${o})`}),o>=1&&h.jsx("div",{className:"icon",children:e?h.jsx(Eb,{}):h.jsx(Vl,{})})]}),h.jsx(H$,{anchorEl:e,anchorOrigin:{vertical:"bottom",horizontal:"left"},anchorPosition:{top:62,left:0},onClose:c,open:!!e,transformOrigin:{vertical:"top",horizontal:"left"},children:h.jsx(XM,{children:a.filter(({name:g})=>g).map(({name:g,count:m})=>h.jsxs(q$,{className:dn({active:g===r}),onClick:b=>{b.preventDefault(),d(g)},children:[h.jsx("span",{className:"icon",children:g===r?h.jsx(yO,{}):null}),h.jsx("span",{children:`${s(g)} (${m})`})]},g))})})]})},z$=B(F).attrs({direction:"row",align:"center"})` cursor: pointer; flex-grow: 1; color: ${P.GRAY6}; @@ -853,7 +853,7 @@ return n.version="2.29.4",a(it),n.fn=ne,n.min=NN,n.max=LN,n.now=DN,n.utc=b,n.uni width: 9px; font-size: 10px; } -`,H$=B(CM)` +`,H$=B(VM)` .MuiPaper-root { background: ${P.BUTTON1}; min-width: 149px; @@ -907,7 +907,7 @@ return n.version="2.29.4",a(it),n.fn=ne,n.min=NN,n.max=LN,n.now=DN,n.utc=b,n.uni border-radius: 8px; } } -`,J$=({maxResults:e,setMaxResults:t})=>{const r=(n,a)=>{const i=Array.isArray(a)?a[0]:a;t(i)};return h.jsxs(h.Fragment,{children:[h.jsxs(Db,{children:[h.jsx("div",{children:"Max results"}),h.jsx(Lb,{children:"Total number of relationships"})]}),h.jsxs(zo,{children:[h.jsxs(IO,{children:[h.jsx("span",{children:"0"}),h.jsx("span",{children:"300"})]}),h.jsx(RO,{direction:"row",children:h.jsx(Q$,{className:"volume-slider","data-testid":"max-results-slider",max:300,min:0,onChange:r,size:"medium",step:1,value:e,valueLabelDisplay:"on"})})]})]})},Q$=B(Kl)({"& .MuiSlider-valueLabel":{backgroundColor:`${P.primaryBlue}`}}),ej=({handleSchemaTypeClick:e,selectedTypes:t,schemaAll:r})=>{const[n,a]=M.useState(!1),s=3*4,l=(n?r:r.slice(0,s)).filter((c,d,p)=>d===p.findIndex(g=>g.type===c.type));return h.jsxs(h.Fragment,{children:[h.jsxs(tj,{children:[h.jsx("div",{children:"Type"}),h.jsxs(rj,{children:[h.jsx(nj,{children:t.length}),h.jsx(aj,{children:"Selected"})]})]}),h.jsxs(zo,{children:[h.jsx(oj,{children:l.map(c=>h.jsx(sj,{isSelected:t.includes(c.type),onClick:()=>e(c==null?void 0:c.type),children:c.type},c.type))}),!n&&r.length>s&&h.jsx(lj,{onClick:()=>a(!0),children:h.jsxs(ij,{children:[h.jsx(Eb,{})," View More"]})})]})]})},tj=B.div` +`,J$=({maxResults:e,setMaxResults:t})=>{const r=(n,a)=>{const i=Array.isArray(a)?a[0]:a;t(i)};return h.jsxs(h.Fragment,{children:[h.jsxs(Db,{children:[h.jsx("div",{children:"Max results"}),h.jsx(Lb,{children:"Total number of relationships"})]}),h.jsxs(zo,{children:[h.jsxs(IO,{children:[h.jsx("span",{children:"0"}),h.jsx("span",{children:"300"})]}),h.jsx(RO,{direction:"row",children:h.jsx(Q$,{className:"volume-slider","data-testid":"max-results-slider",max:300,min:0,onChange:r,size:"medium",step:1,value:e,valueLabelDisplay:"on"})})]})]})},Q$=B(Kl)({"& .MuiSlider-valueLabel":{backgroundColor:`${P.primaryBlue}`}}),ej=({handleSchemaTypeClick:e,selectedTypes:t,schemaAll:r})=>{const[n,a]=M.useState(!1),s=3*4,l=(n?r:r.slice(0,s)).filter((c,d,p)=>d===p.findIndex(g=>g.type===c.type));return h.jsxs(h.Fragment,{children:[h.jsxs(tj,{children:[h.jsx("div",{children:"Type"}),h.jsxs(rj,{children:[h.jsx(nj,{children:t.length}),h.jsx(aj,{children:"Selected"})]})]}),h.jsxs(zo,{children:[h.jsx(oj,{children:l.map(c=>h.jsx(sj,{isSelected:t.includes(c.type),onClick:()=>e(c==null?void 0:c.type),children:c.type},c.type))}),!n&&r.length>s&&h.jsx(lj,{onClick:()=>a(!0),children:h.jsxs(ij,{children:[h.jsx(Tb,{})," View More"]})})]})]})},tj=B.div` display: flex; justify-content: space-between; align-items: center; @@ -1122,7 +1122,7 @@ return n.version="2.29.4",a(it),n.fn=ne,n.min=NN,n.max=LN,n.now=DN,n.utc=b,n.uni .entity { color: ${P.SECONDARY_BLUE}; } -`,Sj=()=>{const{nodeCount:e,setNodeCount:t,setBudget:r}=jo(o=>o),{fetchData:n,setAbortRequests:a}=ur(o=>o),i=async()=>{e<1||(await n(r,a,"",{skip_cache:"true"}),t("CLEAR"))};return h.jsx(wj,{children:h.jsxs("div",{className:"heading-container",children:[h.jsxs("div",{className:"heading",children:[h.jsx("span",{className:"heading__title",children:"Latest"}),h.jsx("span",{className:"heading__icon",children:h.jsx(NM,{})})]}),e?h.jsx("div",{className:"button_container",children:h.jsx(Ej,{className:"button","data-testid":"see_latest_button",onClick:i,startIcon:h.jsx(LM,{}),children:`See Latest (${e})`})}):null]})})},Ej=B(Mt)` +`,Sj=()=>{const{nodeCount:e,setNodeCount:t,setBudget:r}=jo(o=>o),{fetchData:n,setAbortRequests:a}=ur(o=>o),i=async()=>{e<1||(await n(r,a,"",{skip_cache:"true"}),t("CLEAR"))};return h.jsx(wj,{children:h.jsxs("div",{className:"heading-container",children:[h.jsxs("div",{className:"heading",children:[h.jsx("span",{className:"heading__title",children:"Latest"}),h.jsx("span",{className:"heading__icon",children:h.jsx(kM,{})})]}),e?h.jsx("div",{className:"button_container",children:h.jsx(Ej,{className:"button","data-testid":"see_latest_button",onClick:i,startIcon:h.jsx(RM,{}),children:`See Latest (${e})`})}):null]})})},Ej=B(Mt)` && { width: 100%; margin-top: 1.2rem; @@ -1187,7 +1187,7 @@ return n.version="2.29.4",a(it),n.fn=ne,n.min=NN,n.max=LN,n.now=DN,n.utc=b,n.uni } `,_j=({isSearchResult:e})=>{const t=e?80:10,{setSelectedTimestamp:r,nextPage:n}=ur(A=>A),a=Fo(),{currentSearch:i,setSidebarOpen:o,setRelevanceSelected:s}=Nt(A=>A),[l,c]=M.useState(0),[d,p]=M.useState(0),g=nO(),b=l*t+t,v=g&&g.length>0?g.length-1>b:!1,S=h2("sm","down"),O=M.useCallback(A=>{fP(A),r(A),s(!0),a(A),S&&o(!1)},[a,s,o,r,S]),_=()=>{n(),v&&(c(l+1),p(A=>A+1))},w=M.useMemo(()=>{if(g){const A=[...g].sort((x,E)=>(E.date||0)-(x.date||0));return i&&A.sort((x,E)=>{const k=x.node_type==="topic"&&x.name.toLowerCase()===i.toLowerCase()?1:0;return(E.node_type==="topic"&&E.name.toLowerCase()===i.toLowerCase()?1:0)-k}),A.slice(0,b)}return[]},[g,i,b]);return h.jsxs(h.Fragment,{children:[(w??[]).map(A=>{const x=Nb(A),{image_url:E,date:k,boost:C,show_title:I,node_type:N,text:D,source_link:j,name:q,verified:H=!1,twitter_handle:z}=x||{};return N?h.jsx(Cb,{boostCount:C||0,date:k||0,imageUrl:E||"",name:q||"",node:A,onClick:()=>{O(A)},showTitle:Ib(I),sourceLink:j,text:D||"",twitterHandle:z,type:N,verified:H},x.ref_id):null}),h.jsx(Aj,{align:"center",background:"BG1",direction:"row",justify:"center",children:v&&h.jsx(Mt,{onClick:_,size:"medium",children:"Load More"},d)})]})},Tj=M.memo(_j),Aj=B(F)` flex: 0 0 86px; -`,Oj=async()=>{const e="/get_trends";return await XA.get(e)},kj=["Drivechain","Ordinals","L402","Nostr","AI"],Rj=()=>{var C;const{open:e}=Uv("addContent"),[t,r]=M.useState(!1),[n,a]=M.useState(!1),i=M.useRef(null),[o,s]=M.useState(0),[l,c]=M.useState(!1),{currentPlayingAudio:d,setCurrentPlayingAudio:p}=Nt(I=>I),g=ql(),{open:m}=Uv("briefDescription"),{trendingTopics:b,setTrendingTopics:v}=ur(I=>I),{setValue:S}=vb(),{setTrend:O}=XM(),_=M.useCallback(async()=>{r(!0),a(!1),s(0),c(!1),p(null);try{const I=await Oj();if(I.length&&Array.isArray(I)){const N=new Map(I.map(j=>[j.name,j])),D=Array.from(N.values());v(D)}}catch{v(kj.map(N=>({name:N,count:0})))}finally{r(!1)}},[p,v]);M.useEffect(()=>{b.length||_()},[_,b.length]),M.useEffect(()=>{const I=setTimeout(()=>{a(!0)},5e3);return()=>clearTimeout(I)},[a,t]);const w=I=>{S("search",I);const N=I.replace(/\s+/g,"+");g(`/search?q=${N}`)},A=(I,N)=>{I.stopPropagation(),I.currentTarget.blur(),N!=null&&N.tldr&&(O(N),m())},x=I=>{I.stopPropagation(),I.currentTarget.blur(),c(!l),p(i)};M.useEffect(()=>{var I,N;l?(I=i.current)==null||I.play():(N=i.current)==null||N.pause()},[o,l]),M.useEffect(()=>{d||c(!1)},[d]);const E=()=>{s(I=>{var D,j;let N=(I+1)%b.length;for(;N!==I&&!((D=b[N])!=null&&D.audio_EN);)N=(N+1)%b.length;return N===I?(c(!1),N):((j=i.current)==null||j.load(),N===0&&(c(!1),s(0)),N)}),p(i)},k=t?"Loading":"No new trending topics in the last 24 hours";return h.jsx(Cj,{"data-testid":"trending-component",children:h.jsxs("div",{children:[h.jsxs("div",{className:"heading-container",children:[h.jsxs("div",{className:"heading",children:[h.jsx("span",{className:"heading__title",children:"Trending Topics"}),h.jsx("span",{className:"heading__icon",children:t?h.jsx(Yl,{color:P.white,size:16}):h.jsx(h.Fragment,{children:n?h.jsx(Lj,{onClick:_,size:"small",startIcon:h.jsx(DM,{})}):h.jsx(MM,{})})})]}),m2(b)?h.jsxs("div",{children:[h.jsx(Mt,{onClick:I=>x(I),startIcon:l?h.jsx(_b,{}):h.jsx(Tb,{}),children:l?"Pause":"Play All"}),h.jsx(Pj,{ref:i,onEnded:E,src:(C=b[o])==null?void 0:C.audio_EN,children:h.jsx("track",{kind:"captions"})})]}):null]}),b.length===0?h.jsxs("div",{className:"trending-empty",children:[h.jsx(Nj,{children:k}),h.jsx(Mt,{color:"secondary",disabled:t,onClick:e,size:"medium",startIcon:h.jsx(Eb,{}),sx:{alignSelf:"flex-end",m:"0 36px 16px 0"},variant:"contained",children:"Add Content"})]}):h.jsx("ul",{className:"list",children:b.map((I,N)=>h.jsxs(F,{align:"center",className:"list-item",direction:"row",justify:"space-between",onClick:()=>w(I.tldr_topic??I.name),children:[h.jsxs(Ij,{children:[h.jsx(Mj,{children:h.jsx(PM,{})}),h.jsx("span",{className:"tldr",children:b2(I)})]}),I.tldr&&h.jsx(Dj,{className:dn({isPlaying:o===N&&l}),onClick:D=>A(D,I),children:"TLDR"})]},I.name))})]})})},Ij=B.div` +`,Oj=async()=>{const e="/get_trends";return await XA.get(e)},kj=["Drivechain","Ordinals","L402","Nostr","AI"],Rj=()=>{var C;const{open:e}=Uv("addContent"),[t,r]=M.useState(!1),[n,a]=M.useState(!1),i=M.useRef(null),[o,s]=M.useState(0),[l,c]=M.useState(!1),{currentPlayingAudio:d,setCurrentPlayingAudio:p}=Nt(I=>I),g=ql(),{open:m}=Uv("briefDescription"),{trendingTopics:b,setTrendingTopics:v}=ur(I=>I),{setValue:S}=vb(),{setTrend:O}=ZM(),_=M.useCallback(async()=>{r(!0),a(!1),s(0),c(!1),p(null);try{const I=await Oj();if(I.length&&Array.isArray(I)){const N=new Map(I.map(j=>[j.name,j])),D=Array.from(N.values());v(D)}}catch{v(kj.map(N=>({name:N,count:0})))}finally{r(!1)}},[p,v]);M.useEffect(()=>{b.length||_()},[_,b.length]),M.useEffect(()=>{const I=setTimeout(()=>{a(!0)},5e3);return()=>clearTimeout(I)},[a,t]);const w=I=>{S("search",I);const N=I.replace(/\s+/g,"+");g(`/search?q=${N}`)},A=(I,N)=>{I.stopPropagation(),I.currentTarget.blur(),N!=null&&N.tldr&&(O(N),m())},x=I=>{I.stopPropagation(),I.currentTarget.blur(),c(!l),p(i)};M.useEffect(()=>{var I,N;l?(I=i.current)==null||I.play():(N=i.current)==null||N.pause()},[o,l]),M.useEffect(()=>{d||c(!1)},[d]);const E=()=>{s(I=>{var D,j;let N=(I+1)%b.length;for(;N!==I&&!((D=b[N])!=null&&D.audio_EN);)N=(N+1)%b.length;return N===I?(c(!1),N):((j=i.current)==null||j.load(),N===0&&(c(!1),s(0)),N)}),p(i)},k=t?"Loading":"No new trending topics in the last 24 hours";return h.jsx(Cj,{"data-testid":"trending-component",children:h.jsxs("div",{children:[h.jsxs("div",{className:"heading-container",children:[h.jsxs("div",{className:"heading",children:[h.jsx("span",{className:"heading__title",children:"Trending Topics"}),h.jsx("span",{className:"heading__icon",children:t?h.jsx(Yl,{color:P.white,size:16}):h.jsx(h.Fragment,{children:n?h.jsx(Lj,{onClick:_,size:"small",startIcon:h.jsx(IM,{})}):h.jsx(CM,{})})})]}),m2(b)?h.jsxs("div",{children:[h.jsx(Mt,{onClick:I=>x(I),startIcon:l?h.jsx(wb,{}):h.jsx(_b,{}),children:l?"Pause":"Play All"}),h.jsx(Pj,{ref:i,onEnded:E,src:(C=b[o])==null?void 0:C.audio_EN,children:h.jsx("track",{kind:"captions"})})]}):null]}),b.length===0?h.jsxs("div",{className:"trending-empty",children:[h.jsx(Nj,{children:k}),h.jsx(Mt,{color:"secondary",disabled:t,onClick:e,size:"medium",startIcon:h.jsx(Tb,{}),sx:{alignSelf:"flex-end",m:"0 36px 16px 0"},variant:"contained",children:"Add Content"})]}):h.jsx("ul",{className:"list",children:b.map((I,N)=>h.jsxs(F,{align:"center",className:"list-item",direction:"row",justify:"space-between",onClick:()=>w(I.tldr_topic??I.name),children:[h.jsxs(Ij,{children:[h.jsx(Mj,{children:h.jsx(NM,{})}),h.jsx("span",{className:"tldr",children:b2(I)})]}),I.tldr&&h.jsx(Dj,{className:dn({isPlaying:o===N&&l}),onClick:D=>A(D,I),children:"TLDR"})]},I.name))})]})})},Ij=B.div` position: relative; display: flex; align-items: flex-start; @@ -1294,7 +1294,7 @@ return n.version="2.29.4",a(it),n.fn=ne,n.min=NN,n.max=LN,n.now=DN,n.utc=b,n.uni `,Pj=B.audio` height: 0; width: 0; -`,$j=()=>{const{isFetching:e,setSidebarFilter:t}=ur(k=>k),r=Fo(),n=nO(),{currentSearch:a,clearSearch:i,searchFormValue:o}=Nt(k=>k),[s]=tO(k=>[k.trendingTopicsFeatureFlag]),{setValue:l,watch:c}=vb(),d=M.useRef(null),[p,g]=M.useState(!1),[m,b]=M.useState(!1),[v,S]=M.useState(null),[O]=tM(),_=O.get("q")??"";M.useEffect(()=>{l("search",_||o)},[l,o,_]),M.useEffect(()=>{const k=d.current;if(!k)return;const C=()=>{g((k==null?void 0:k.scrollTop)>0)};k.addEventListener("scroll",C)},[]);const w=c("search"),A=k=>{S(m?null:k.currentTarget),b(C=>!C)},x=()=>{b(!1),S(null)},E=ql();return h.jsxs(h.Fragment,{children:[h.jsxs(CO,{className:dn({"has-shadow":p}),children:[h.jsxs(zj,{children:[h.jsxs(jj,{children:[h.jsx(wO,{}),h.jsx(Bj,{"data-testid":"search_action_icon",onClick:()=>{if(a){l("search",""),i(),t("all"),r(null),E("/");return}if(w.trim()==="")return;const k=w.replace(/\s+/g,"+");E(`/search?q=${k}`)},children:e?h.jsx(Yl,{color:P.SECONDARY_BLUE,"data-testid":"loader",size:"20"}):h.jsx(h.Fragment,{children:a!=null&&a.trim()?h.jsx(rO,{}):h.jsx(lO,{})})})]}),h.jsx(qj,{"data-testid":"search_filter_icon",isFilterOpen:m,onClick:A,children:m?h.jsx($M,{}):h.jsx(jM,{})}),h.jsx(dj,{anchorEl:v,onClose:x,setAnchorEl:S})]}),a&&h.jsx(Fj,{children:e?h.jsx(yj,{}):h.jsxs(h.Fragment,{children:[h.jsxs("div",{className:"left",children:[h.jsx("span",{className:"count",children:n.length}),h.jsx("span",{className:"label",children:" results"})]}),h.jsx("div",{className:"right",style:{alignItems:"center"},children:h.jsx(G$,{})})]})})]}),h.jsxs(Uj,{ref:d,children:[!a&&s&&h.jsx(Gj,{children:h.jsx(Rj,{})}),!a&&h.jsx(xj,{}),e?h.jsx(TO,{}):h.jsx(Tj,{isSearchResult:!!a})]})]})},CO=B(F).attrs({direction:"column",justify:"center",align:"stretch"})(({theme:e})=>({padding:e.spacing(3.75,2),[e.breakpoints.up("sm")]:{padding:"12px"},"&.has-shadow":{borderBottom:"1px solid rgba(0, 0, 0, 0.25)",background:P.BG1,boxShadow:"0px 1px 6px 0px rgba(0, 0, 0, 0.20)"}})),jj=B(F).attrs({direction:"row",justify:"center",align:"center"})` +`,$j=()=>{const{isFetching:e,setSidebarFilter:t}=ur(k=>k),r=Fo(),n=nO(),{currentSearch:a,clearSearch:i,searchFormValue:o}=Nt(k=>k),[s]=tO(k=>[k.trendingTopicsFeatureFlag]),{setValue:l,watch:c}=vb(),d=M.useRef(null),[p,g]=M.useState(!1),[m,b]=M.useState(!1),[v,S]=M.useState(null),[O]=tM(),_=O.get("q")??"";M.useEffect(()=>{l("search",_||o)},[l,o,_]),M.useEffect(()=>{const k=d.current;if(!k)return;const C=()=>{g((k==null?void 0:k.scrollTop)>0)};k.addEventListener("scroll",C)},[]);const w=c("search"),A=k=>{S(m?null:k.currentTarget),b(C=>!C)},x=()=>{b(!1),S(null)},E=ql();return h.jsxs(h.Fragment,{children:[h.jsxs(CO,{className:dn({"has-shadow":p}),children:[h.jsxs(zj,{children:[h.jsxs(jj,{children:[h.jsx(wO,{}),h.jsx(Bj,{"data-testid":"search_action_icon",onClick:()=>{if(a){l("search",""),i(),t("all"),r(null),E("/");return}if(w.trim()==="")return;const k=w.replace(/\s+/g,"+");E(`/search?q=${k}`)},children:e?h.jsx(Yl,{color:P.SECONDARY_BLUE,"data-testid":"loader",size:"20"}):h.jsx(h.Fragment,{children:a!=null&&a.trim()?h.jsx(rO,{}):h.jsx(hO,{})})})]}),h.jsx(qj,{"data-testid":"search_filter_icon",isFilterOpen:m,onClick:A,children:m?h.jsx(LM,{}):h.jsx(DM,{})}),h.jsx(dj,{anchorEl:v,onClose:x,setAnchorEl:S})]}),a&&h.jsx(Fj,{children:e?h.jsx(yj,{}):h.jsxs(h.Fragment,{children:[h.jsxs("div",{className:"left",children:[h.jsx("span",{className:"count",children:n.length}),h.jsx("span",{className:"label",children:" results"})]}),h.jsx("div",{className:"right",style:{alignItems:"center"},children:h.jsx(G$,{})})]})})]}),h.jsxs(Uj,{ref:d,children:[!a&&s&&h.jsx(Gj,{children:h.jsx(Rj,{})}),!a&&h.jsx(xj,{}),e?h.jsx(TO,{}):h.jsx(Tj,{isSearchResult:!!a})]})]})},CO=B(F).attrs({direction:"column",justify:"center",align:"stretch"})(({theme:e})=>({padding:e.spacing(3.75,2),[e.breakpoints.up("sm")]:{padding:"12px"},"&.has-shadow":{borderBottom:"1px solid rgba(0, 0, 0, 0.25)",background:P.BG1,boxShadow:"0px 1px 6px 0px rgba(0, 0, 0, 0.20)"}})),jj=B(F).attrs({direction:"row",justify:"center",align:"center"})` width: 85%; `,Fj=B(F).attrs({direction:"row",justify:"space-between",align:"center"})` flex-grow: 1; @@ -1366,10 +1366,10 @@ return n.version="2.29.4",a(it),n.fn=ne,n.min=NN,n.max=LN,n.now=DN,n.utc=b,n.uni * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var At=typeof Symbol=="function"&&Symbol.for,Mb=At?Symbol.for("react.element"):60103,Pb=At?Symbol.for("react.portal"):60106,Zl=At?Symbol.for("react.fragment"):60107,Jl=At?Symbol.for("react.strict_mode"):60108,Ql=At?Symbol.for("react.profiler"):60114,eu=At?Symbol.for("react.provider"):60109,tu=At?Symbol.for("react.context"):60110,$b=At?Symbol.for("react.async_mode"):60111,ru=At?Symbol.for("react.concurrent_mode"):60111,nu=At?Symbol.for("react.forward_ref"):60112,au=At?Symbol.for("react.suspense"):60113,Vj=At?Symbol.for("react.suspense_list"):60120,iu=At?Symbol.for("react.memo"):60115,ou=At?Symbol.for("react.lazy"):60116,Yj=At?Symbol.for("react.block"):60121,Kj=At?Symbol.for("react.fundamental"):60117,Xj=At?Symbol.for("react.responder"):60118,Zj=At?Symbol.for("react.scope"):60119;function cr(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Mb:switch(e=e.type,e){case $b:case ru:case Zl:case Ql:case Jl:case au:return e;default:switch(e=e&&e.$$typeof,e){case tu:case nu:case ou:case iu:case eu:return e;default:return t}}case Pb:return t}}}function DO(e){return cr(e)===ru}Ve.AsyncMode=$b;Ve.ConcurrentMode=ru;Ve.ContextConsumer=tu;Ve.ContextProvider=eu;Ve.Element=Mb;Ve.ForwardRef=nu;Ve.Fragment=Zl;Ve.Lazy=ou;Ve.Memo=iu;Ve.Portal=Pb;Ve.Profiler=Ql;Ve.StrictMode=Jl;Ve.Suspense=au;Ve.isAsyncMode=function(e){return DO(e)||cr(e)===$b};Ve.isConcurrentMode=DO;Ve.isContextConsumer=function(e){return cr(e)===tu};Ve.isContextProvider=function(e){return cr(e)===eu};Ve.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Mb};Ve.isForwardRef=function(e){return cr(e)===nu};Ve.isFragment=function(e){return cr(e)===Zl};Ve.isLazy=function(e){return cr(e)===ou};Ve.isMemo=function(e){return cr(e)===iu};Ve.isPortal=function(e){return cr(e)===Pb};Ve.isProfiler=function(e){return cr(e)===Ql};Ve.isStrictMode=function(e){return cr(e)===Jl};Ve.isSuspense=function(e){return cr(e)===au};Ve.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Zl||e===ru||e===Ql||e===Jl||e===au||e===Vj||typeof e=="object"&&e!==null&&(e.$$typeof===ou||e.$$typeof===iu||e.$$typeof===eu||e.$$typeof===tu||e.$$typeof===nu||e.$$typeof===Kj||e.$$typeof===Xj||e.$$typeof===Zj||e.$$typeof===Yj)};Ve.typeOf=cr;LO.exports=Ve;var Xh=LO.exports,Jj=aO,Qj=iO,eF="[object Number]";function tF(e){return typeof e=="number"||Qj(e)&&Jj(e)==eF}var MO=tF;const rF=ft(MO);var nF=MO;function aF(e){return nF(e)&&e!=+e}var iF=aF;const qo=ft(iF);var Mr=function(t){return t===0?0:t>0?1:-1},Xn=function(t){return Uo(t)&&t.indexOf("%")===t.length-1},se=function(t){return rF(t)&&!qo(t)},Et=function(t){return se(t)||Uo(t)},oF=0,Ho=function(t){var r=++oF;return"".concat(t||"").concat(r)},Ma=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!se(t)&&!Uo(t))return n;var i;if(Xn(t)){var o=t.indexOf("%");i=r*parseFloat(t.slice(0,o))/100}else i=+t;return qo(i)&&(i=n),a&&i>r&&(i=r),i},kn=function(t){if(!t)return null;var r=Object.keys(t);return r&&r.length?t[r[0]]:null},sF=function(t){if(!Array.isArray(t))return!1;for(var r=t.length,n={},a=0;a=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function gF(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i=0)&&(r[a]=e[a]);return r}var t0={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},pn=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},r0=null,hc=null,Fb=function e(t){if(t===r0&&Array.isArray(hc))return hc;var r=[];return M.Children.forEach(t,function(n){Ne(n)||(Xh.isFragment(n)?r=r.concat(e(n.props.children)):r.push(n))}),hc=r,r0=t,r};function lr(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(function(a){return pn(a)}):n=[pn(t)],Fb(e).forEach(function(a){var i=vr(a,"type.displayName")||vr(a,"type.name");n.indexOf(i)!==-1&&r.push(a)}),r}function ln(e,t){var r=lr(e,t);return r&&r[0]}var n0=function(t){if(!t||!t.props)return!1;var r=t.props,n=r.width,a=r.height;return!(!se(n)||n<=0||!se(a)||a<=0)},hF=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],mF=function(t){return t&&t.type&&Uo(t.type)&&hF.indexOf(t.type)>=0},bF=function(t,r,n,a){var i,o=(i=gc==null?void 0:gc[a])!==null&&i!==void 0?i:[];return!Ce(t)&&(a&&o.includes(r)||cF.includes(r))||n&&jb.includes(r)},Me=function(t,r,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var a=t;if(M.isValidElement(t)&&(a=t.props),!ri(a))return null;var i={};return Object.keys(a).forEach(function(o){var s;bF((s=a)===null||s===void 0?void 0:s[o],o,r,n)&&(i[o]=a[o])}),i},PO=function e(t,r){if(t===r)return!0;var n=M.Children.count(t);if(n!==M.Children.count(r))return!1;if(n===0)return!0;if(n===1)return a0(Array.isArray(t)?t[0]:t,Array.isArray(r)?r[0]:r);for(var a=0;a=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function xF(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i=0)&&(r[a]=e[a]);return r}function Qh(e){var t=e.children,r=e.width,n=e.height,a=e.viewBox,i=e.className,o=e.style,s=e.title,l=e.desc,c=EF(e,SF),d=a||{width:r,height:n,x:0,y:0},p=Je("recharts-surface",i);return U.createElement("svg",Jh({},Me(c,!0,"svg"),{className:p,width:r,height:n,style:o,viewBox:"".concat(d.x," ").concat(d.y," ").concat(d.width," ").concat(d.height)}),U.createElement("title",null,s),U.createElement("desc",null,l),t)}var wF=["children","className"];function em(){return em=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function TF(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i=0)&&(r[a]=e[a]);return r}var pt=U.forwardRef(function(e,t){var r=e.children,n=e.className,a=_F(e,wF),i=Je("recharts-layer",n);return U.createElement("g",em({className:i},Me(a,!0),{ref:t}),r)}),ea=function(t,r){for(var n=arguments.length,a=new Array(n>2?n-2:0),i=2;ia?0:a+t),r=r>a?a:r,r<0&&(r+=a),a=t>r?0:r-t>>>0,t>>>=0;for(var i=Array(a);++n=n?e:kF(e,t,r)}var IF=RF,CF="\\ud800-\\udfff",NF="\\u0300-\\u036f",LF="\\ufe20-\\ufe2f",DF="\\u20d0-\\u20ff",MF=NF+LF+DF,PF="\\ufe0e\\ufe0f",$F="\\u200d",jF=RegExp("["+$F+CF+MF+PF+"]");function FF(e){return jF.test(e)}var $O=FF;function BF(e){return e.split("")}var UF=BF,jO="\\ud800-\\udfff",GF="\\u0300-\\u036f",zF="\\ufe20-\\ufe2f",qF="\\u20d0-\\u20ff",HF=GF+zF+qF,WF="\\ufe0e\\ufe0f",VF="["+jO+"]",tm="["+HF+"]",rm="\\ud83c[\\udffb-\\udfff]",YF="(?:"+tm+"|"+rm+")",FO="[^"+jO+"]",BO="(?:\\ud83c[\\udde6-\\uddff]){2}",UO="[\\ud800-\\udbff][\\udc00-\\udfff]",KF="\\u200d",GO=YF+"?",zO="["+WF+"]?",XF="(?:"+KF+"(?:"+[FO,BO,UO].join("|")+")"+zO+GO+")*",ZF=zO+GO+XF,JF="(?:"+[FO+tm+"?",tm,BO,UO,VF].join("|")+")",QF=RegExp(rm+"(?="+rm+")|"+JF+ZF,"g");function eB(e){return e.match(QF)||[]}var tB=eB,rB=UF,nB=$O,aB=tB;function iB(e){return nB(e)?aB(e):rB(e)}var oB=iB,sB=IF,lB=$O,uB=oB,cB=JM;function dB(e){return function(t){t=cB(t);var r=lB(t)?uB(t):void 0,n=r?r[0]:t.charAt(0),a=r?sB(r,1).join(""):t.slice(1);return n[e]()+a}}var pB=dB,fB=pB,gB=fB("toUpperCase"),hB=gB;const su=ft(hB);function nt(e){return function(){return e}}const qO=Math.cos,Js=Math.sin,jr=Math.sqrt,Qs=Math.PI,lu=2*Qs,nm=Math.PI,am=2*nm,Yn=1e-6,mB=am-Yn;function HO(e){this._+=e[0];for(let t=1,r=e.length;t=0))throw new Error(`invalid digits: ${e}`);if(t>15)return HO;const r=10**t;return function(n){this._+=n[0];for(let a=1,i=n.length;aYn)if(!(Math.abs(p*l-c*d)>Yn)||!i)this._append`L${this._x1=t},${this._y1=r}`;else{let m=n-o,b=a-s,v=l*l+c*c,S=m*m+b*b,O=Math.sqrt(v),_=Math.sqrt(g),w=i*Math.tan((nm-Math.acos((v+g-S)/(2*O*_)))/2),A=w/_,x=w/O;Math.abs(A-1)>Yn&&this._append`L${t+A*d},${r+A*p}`,this._append`A${i},${i},0,0,${+(p*m>d*b)},${this._x1=t+x*l},${this._y1=r+x*c}`}}arc(t,r,n,a,i,o){if(t=+t,r=+r,n=+n,o=!!o,n<0)throw new Error(`negative radius: ${n}`);let s=n*Math.cos(a),l=n*Math.sin(a),c=t+s,d=r+l,p=1^o,g=o?a-i:i-a;this._x1===null?this._append`M${c},${d}`:(Math.abs(this._x1-c)>Yn||Math.abs(this._y1-d)>Yn)&&this._append`L${c},${d}`,n&&(g<0&&(g=g%am+am),g>mB?this._append`A${n},${n},0,1,${p},${t-s},${r-l}A${n},${n},0,1,${p},${this._x1=c},${this._y1=d}`:g>Yn&&this._append`A${n},${n},0,${+(g>=nm)},${p},${this._x1=t+n*Math.cos(i)},${this._y1=r+n*Math.sin(i)}`)}rect(t,r,n,a){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${n=+n}v${+a}h${-n}Z`}toString(){return this._}}function Bb(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{const n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);t=n}return e},()=>new yB(t)}function Ub(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function WO(e){this._context=e}WO.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function uu(e){return new WO(e)}function VO(e){return e[0]}function YO(e){return e[1]}function KO(e,t){var r=nt(!0),n=null,a=uu,i=null,o=Bb(s);e=typeof e=="function"?e:e===void 0?VO:nt(e),t=typeof t=="function"?t:t===void 0?YO:nt(t);function s(l){var c,d=(l=Ub(l)).length,p,g=!1,m;for(n==null&&(i=a(m=o())),c=0;c<=d;++c)!(c=m;--b)s.point(w[b],A[b]);s.lineEnd(),s.areaEnd()}O&&(w[g]=+e(S,g,p),A[g]=+t(S,g,p),s.point(n?+n(S,g,p):w[g],r?+r(S,g,p):A[g]))}if(_)return s=null,_+""||null}function d(){return KO().defined(a).curve(o).context(i)}return c.x=function(p){return arguments.length?(e=typeof p=="function"?p:nt(+p),n=null,c):e},c.x0=function(p){return arguments.length?(e=typeof p=="function"?p:nt(+p),c):e},c.x1=function(p){return arguments.length?(n=p==null?null:typeof p=="function"?p:nt(+p),c):n},c.y=function(p){return arguments.length?(t=typeof p=="function"?p:nt(+p),r=null,c):t},c.y0=function(p){return arguments.length?(t=typeof p=="function"?p:nt(+p),c):t},c.y1=function(p){return arguments.length?(r=p==null?null:typeof p=="function"?p:nt(+p),c):r},c.lineX0=c.lineY0=function(){return d().x(e).y(t)},c.lineY1=function(){return d().x(e).y(r)},c.lineX1=function(){return d().x(n).y(t)},c.defined=function(p){return arguments.length?(a=typeof p=="function"?p:nt(!!p),c):a},c.curve=function(p){return arguments.length?(o=p,i!=null&&(s=o(i)),c):o},c.context=function(p){return arguments.length?(p==null?i=s=null:s=o(i=p),c):i},c}class XO{constructor(t,r){this._context=t,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}}function vB(e){return new XO(e,!0)}function SB(e){return new XO(e,!1)}const Gb={draw(e,t){const r=jr(t/Qs);e.moveTo(r,0),e.arc(0,0,r,0,lu)}},EB={draw(e,t){const r=jr(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}},ZO=jr(1/3),xB=ZO*2,wB={draw(e,t){const r=jr(t/xB),n=r*ZO;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},_B={draw(e,t){const r=jr(t),n=-r/2;e.rect(n,n,r,r)}},TB=.8908130915292852,JO=Js(Qs/10)/Js(7*Qs/10),AB=Js(lu/10)*JO,OB=-qO(lu/10)*JO,kB={draw(e,t){const r=jr(t*TB),n=AB*r,a=OB*r;e.moveTo(0,-r),e.lineTo(n,a);for(let i=1;i<5;++i){const o=lu*i/5,s=qO(o),l=Js(o);e.lineTo(l*r,-s*r),e.lineTo(s*n-l*a,l*n+s*a)}e.closePath()}},mc=jr(3),RB={draw(e,t){const r=-jr(t/(mc*3));e.moveTo(0,r*2),e.lineTo(-mc*r,-r),e.lineTo(mc*r,-r),e.closePath()}},dr=-.5,pr=jr(3)/2,im=1/jr(12),IB=(im/2+1)*3,CB={draw(e,t){const r=jr(t/IB),n=r/2,a=r*im,i=n,o=r*im+r,s=-i,l=o;e.moveTo(n,a),e.lineTo(i,o),e.lineTo(s,l),e.lineTo(dr*n-pr*a,pr*n+dr*a),e.lineTo(dr*i-pr*o,pr*i+dr*o),e.lineTo(dr*s-pr*l,pr*s+dr*l),e.lineTo(dr*n+pr*a,dr*a-pr*n),e.lineTo(dr*i+pr*o,dr*o-pr*i),e.lineTo(dr*s+pr*l,dr*l-pr*s),e.closePath()}};function NB(e,t){let r=null,n=Bb(a);e=typeof e=="function"?e:nt(e||Gb),t=typeof t=="function"?t:nt(t===void 0?64:+t);function a(){let i;if(r||(r=i=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),i)return r=null,i+""||null}return a.type=function(i){return arguments.length?(e=typeof i=="function"?i:nt(i),a):e},a.size=function(i){return arguments.length?(t=typeof i=="function"?i:nt(+i),a):t},a.context=function(i){return arguments.length?(r=i??null,a):r},a}function el(){}function tl(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function QO(e){this._context=e}QO.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:tl(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:tl(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function LB(e){return new QO(e)}function ek(e){this._context=e}ek.prototype={areaStart:el,areaEnd:el,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:tl(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function DB(e){return new ek(e)}function tk(e){this._context=e}tk.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:tl(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function MB(e){return new tk(e)}function rk(e){this._context=e}rk.prototype={areaStart:el,areaEnd:el,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function PB(e){return new rk(e)}function o0(e){return e<0?-1:1}function s0(e,t,r){var n=e._x1-e._x0,a=t-e._x1,i=(e._y1-e._y0)/(n||a<0&&-0),o=(r-e._y1)/(a||n<0&&-0),s=(i*a+o*n)/(n+a);return(o0(i)+o0(o))*Math.min(Math.abs(i),Math.abs(o),.5*Math.abs(s))||0}function l0(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function bc(e,t,r){var n=e._x0,a=e._y0,i=e._x1,o=e._y1,s=(i-n)/3;e._context.bezierCurveTo(n+s,a+s*t,i-s,o-s*r,i,o)}function rl(e){this._context=e}rl.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:bc(this,this._t0,l0(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,bc(this,l0(this,r=s0(this,e,t)),r);break;default:bc(this,this._t0,r=s0(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function nk(e){this._context=new ak(e)}(nk.prototype=Object.create(rl.prototype)).point=function(e,t){rl.prototype.point.call(this,t,e)};function ak(e){this._context=e}ak.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,n,a,i){this._context.bezierCurveTo(t,e,n,r,i,a)}};function $B(e){return new rl(e)}function jB(e){return new nk(e)}function ik(e){this._context=e}ik.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var n=u0(e),a=u0(t),i=0,o=1;o=0;--t)a[t]=(o[t]-a[t+1])/i[t];for(i[r-1]=(e[r]+a[r-1])/2,t=0;t=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function BB(e){return new cu(e,.5)}function UB(e){return new cu(e,0)}function GB(e){return new cu(e,1)}function Pa(e,t){if((o=e.length)>1)for(var r=1,n,a,i=e[t[0]],o,s=i.length;r=0;)r[t]=t;return r}function zB(e,t){return e[t]}function qB(e){const t=[];return t.key=e,t}function HB(){var e=nt([]),t=om,r=Pa,n=zB;function a(i){var o=Array.from(e.apply(this,arguments),qB),s,l=o.length,c=-1,d;for(const p of i)for(s=0,++c;s0){for(var r,n,a=0,i=e[0].length,o;a0){for(var r=0,n=e[t[0]],a,i=n.length;r0)||!((i=(a=e[t[0]]).length)>0))){for(var r=0,n=1,a,i,o;n=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function eU(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i=0)&&(r[a]=e[a]);return r}var ok={symbolCircle:Gb,symbolCross:EB,symbolDiamond:wB,symbolSquare:_B,symbolStar:kB,symbolTriangle:RB,symbolWye:CB},tU=Math.PI/180,rU=function(t){var r="symbol".concat(su(t));return ok[r]||Gb},nU=function(t,r,n){if(r==="area")return t;switch(n){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":{var a=18*tU;return 1.25*t*t*(Math.tan(a)-Math.tan(a*2)*Math.pow(Math.tan(a),2))}case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}},aU=function(t,r){ok["symbol".concat(su(t))]=r},du=function(t){var r=t.type,n=r===void 0?"circle":r,a=t.size,i=a===void 0?64:a,o=t.sizeType,s=o===void 0?"area":o,l=QB(t,KB),c=d0(d0({},l),{},{type:n,size:i,sizeType:s}),d=function(){var S=rU(n),O=NB().type(S).size(nU(i,s,n));return O()},p=c.className,g=c.cx,m=c.cy,b=Me(c,!0);return g===+g&&m===+m&&i===+i?U.createElement("path",sm({},b,{className:Je("recharts-symbols",p),transform:"translate(".concat(g,", ").concat(m,")"),d:d()})):null};du.registerSymbol=aU;function $a(e){"@babel/helpers - typeof";return $a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$a(e)}function lm(){return lm=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function nl(e){return nl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},nl(e)}function Zi(e,t,r){return t=sk(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function sk(e){var t=fU(e,"string");return $a(t)==="symbol"?t:String(t)}function fU(e,t){if($a(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if($a(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var fr=32,zb=function(e){lU(r,e);var t=uU(r);function r(){return oU(this,r),t.apply(this,arguments)}return sU(r,[{key:"renderIcon",value:function(a){var i=this.props.inactiveColor,o=fr/2,s=fr/6,l=fr/3,c=a.inactive?i:a.color;if(a.type==="plainline")return U.createElement("line",{strokeWidth:4,fill:"none",stroke:c,strokeDasharray:a.payload.strokeDasharray,x1:0,y1:o,x2:fr,y2:o,className:"recharts-legend-icon"});if(a.type==="line")return U.createElement("path",{strokeWidth:4,fill:"none",stroke:c,d:"M0,".concat(o,"h").concat(l,` + */var At=typeof Symbol=="function"&&Symbol.for,Mb=At?Symbol.for("react.element"):60103,Pb=At?Symbol.for("react.portal"):60106,Zl=At?Symbol.for("react.fragment"):60107,Jl=At?Symbol.for("react.strict_mode"):60108,Ql=At?Symbol.for("react.profiler"):60114,eu=At?Symbol.for("react.provider"):60109,tu=At?Symbol.for("react.context"):60110,$b=At?Symbol.for("react.async_mode"):60111,ru=At?Symbol.for("react.concurrent_mode"):60111,nu=At?Symbol.for("react.forward_ref"):60112,au=At?Symbol.for("react.suspense"):60113,Vj=At?Symbol.for("react.suspense_list"):60120,iu=At?Symbol.for("react.memo"):60115,ou=At?Symbol.for("react.lazy"):60116,Yj=At?Symbol.for("react.block"):60121,Kj=At?Symbol.for("react.fundamental"):60117,Xj=At?Symbol.for("react.responder"):60118,Zj=At?Symbol.for("react.scope"):60119;function cr(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Mb:switch(e=e.type,e){case $b:case ru:case Zl:case Ql:case Jl:case au:return e;default:switch(e=e&&e.$$typeof,e){case tu:case nu:case ou:case iu:case eu:return e;default:return t}}case Pb:return t}}}function DO(e){return cr(e)===ru}Ve.AsyncMode=$b;Ve.ConcurrentMode=ru;Ve.ContextConsumer=tu;Ve.ContextProvider=eu;Ve.Element=Mb;Ve.ForwardRef=nu;Ve.Fragment=Zl;Ve.Lazy=ou;Ve.Memo=iu;Ve.Portal=Pb;Ve.Profiler=Ql;Ve.StrictMode=Jl;Ve.Suspense=au;Ve.isAsyncMode=function(e){return DO(e)||cr(e)===$b};Ve.isConcurrentMode=DO;Ve.isContextConsumer=function(e){return cr(e)===tu};Ve.isContextProvider=function(e){return cr(e)===eu};Ve.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Mb};Ve.isForwardRef=function(e){return cr(e)===nu};Ve.isFragment=function(e){return cr(e)===Zl};Ve.isLazy=function(e){return cr(e)===ou};Ve.isMemo=function(e){return cr(e)===iu};Ve.isPortal=function(e){return cr(e)===Pb};Ve.isProfiler=function(e){return cr(e)===Ql};Ve.isStrictMode=function(e){return cr(e)===Jl};Ve.isSuspense=function(e){return cr(e)===au};Ve.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Zl||e===ru||e===Ql||e===Jl||e===au||e===Vj||typeof e=="object"&&e!==null&&(e.$$typeof===ou||e.$$typeof===iu||e.$$typeof===eu||e.$$typeof===tu||e.$$typeof===nu||e.$$typeof===Kj||e.$$typeof===Xj||e.$$typeof===Zj||e.$$typeof===Yj)};Ve.typeOf=cr;LO.exports=Ve;var Xh=LO.exports,Jj=aO,Qj=iO,eF="[object Number]";function tF(e){return typeof e=="number"||Qj(e)&&Jj(e)==eF}var MO=tF;const rF=ft(MO);var nF=MO;function aF(e){return nF(e)&&e!=+e}var iF=aF;const qo=ft(iF);var Mr=function(t){return t===0?0:t>0?1:-1},Xn=function(t){return Uo(t)&&t.indexOf("%")===t.length-1},se=function(t){return rF(t)&&!qo(t)},Et=function(t){return se(t)||Uo(t)},oF=0,Ho=function(t){var r=++oF;return"".concat(t||"").concat(r)},Ma=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!se(t)&&!Uo(t))return n;var i;if(Xn(t)){var o=t.indexOf("%");i=r*parseFloat(t.slice(0,o))/100}else i=+t;return qo(i)&&(i=n),a&&i>r&&(i=r),i},kn=function(t){if(!t)return null;var r=Object.keys(t);return r&&r.length?t[r[0]]:null},sF=function(t){if(!Array.isArray(t))return!1;for(var r=t.length,n={},a=0;a=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function gF(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i=0)&&(r[a]=e[a]);return r}var t0={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},pn=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},r0=null,hc=null,Fb=function e(t){if(t===r0&&Array.isArray(hc))return hc;var r=[];return M.Children.forEach(t,function(n){Ne(n)||(Xh.isFragment(n)?r=r.concat(e(n.props.children)):r.push(n))}),hc=r,r0=t,r};function lr(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(function(a){return pn(a)}):n=[pn(t)],Fb(e).forEach(function(a){var i=vr(a,"type.displayName")||vr(a,"type.name");n.indexOf(i)!==-1&&r.push(a)}),r}function ln(e,t){var r=lr(e,t);return r&&r[0]}var n0=function(t){if(!t||!t.props)return!1;var r=t.props,n=r.width,a=r.height;return!(!se(n)||n<=0||!se(a)||a<=0)},hF=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],mF=function(t){return t&&t.type&&Uo(t.type)&&hF.indexOf(t.type)>=0},bF=function(t,r,n,a){var i,o=(i=gc==null?void 0:gc[a])!==null&&i!==void 0?i:[];return!Ce(t)&&(a&&o.includes(r)||cF.includes(r))||n&&jb.includes(r)},Me=function(t,r,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var a=t;if(M.isValidElement(t)&&(a=t.props),!ri(a))return null;var i={};return Object.keys(a).forEach(function(o){var s;bF((s=a)===null||s===void 0?void 0:s[o],o,r,n)&&(i[o]=a[o])}),i},PO=function e(t,r){if(t===r)return!0;var n=M.Children.count(t);if(n!==M.Children.count(r))return!1;if(n===0)return!0;if(n===1)return a0(Array.isArray(t)?t[0]:t,Array.isArray(r)?r[0]:r);for(var a=0;a=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function xF(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i=0)&&(r[a]=e[a]);return r}function Qh(e){var t=e.children,r=e.width,n=e.height,a=e.viewBox,i=e.className,o=e.style,s=e.title,l=e.desc,c=EF(e,SF),d=a||{width:r,height:n,x:0,y:0},p=Je("recharts-surface",i);return U.createElement("svg",Jh({},Me(c,!0,"svg"),{className:p,width:r,height:n,style:o,viewBox:"".concat(d.x," ").concat(d.y," ").concat(d.width," ").concat(d.height)}),U.createElement("title",null,s),U.createElement("desc",null,l),t)}var wF=["children","className"];function em(){return em=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function TF(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i=0)&&(r[a]=e[a]);return r}var pt=U.forwardRef(function(e,t){var r=e.children,n=e.className,a=_F(e,wF),i=Je("recharts-layer",n);return U.createElement("g",em({className:i},Me(a,!0),{ref:t}),r)}),ea=function(t,r){for(var n=arguments.length,a=new Array(n>2?n-2:0),i=2;ia?0:a+t),r=r>a?a:r,r<0&&(r+=a),a=t>r?0:r-t>>>0,t>>>=0;for(var i=Array(a);++n=n?e:kF(e,t,r)}var IF=RF,CF="\\ud800-\\udfff",NF="\\u0300-\\u036f",LF="\\ufe20-\\ufe2f",DF="\\u20d0-\\u20ff",MF=NF+LF+DF,PF="\\ufe0e\\ufe0f",$F="\\u200d",jF=RegExp("["+$F+CF+MF+PF+"]");function FF(e){return jF.test(e)}var $O=FF;function BF(e){return e.split("")}var UF=BF,jO="\\ud800-\\udfff",GF="\\u0300-\\u036f",zF="\\ufe20-\\ufe2f",qF="\\u20d0-\\u20ff",HF=GF+zF+qF,WF="\\ufe0e\\ufe0f",VF="["+jO+"]",tm="["+HF+"]",rm="\\ud83c[\\udffb-\\udfff]",YF="(?:"+tm+"|"+rm+")",FO="[^"+jO+"]",BO="(?:\\ud83c[\\udde6-\\uddff]){2}",UO="[\\ud800-\\udbff][\\udc00-\\udfff]",KF="\\u200d",GO=YF+"?",zO="["+WF+"]?",XF="(?:"+KF+"(?:"+[FO,BO,UO].join("|")+")"+zO+GO+")*",ZF=zO+GO+XF,JF="(?:"+[FO+tm+"?",tm,BO,UO,VF].join("|")+")",QF=RegExp(rm+"(?="+rm+")|"+JF+ZF,"g");function eB(e){return e.match(QF)||[]}var tB=eB,rB=UF,nB=$O,aB=tB;function iB(e){return nB(e)?aB(e):rB(e)}var oB=iB,sB=IF,lB=$O,uB=oB,cB=QM;function dB(e){return function(t){t=cB(t);var r=lB(t)?uB(t):void 0,n=r?r[0]:t.charAt(0),a=r?sB(r,1).join(""):t.slice(1);return n[e]()+a}}var pB=dB,fB=pB,gB=fB("toUpperCase"),hB=gB;const su=ft(hB);function nt(e){return function(){return e}}const qO=Math.cos,Js=Math.sin,jr=Math.sqrt,Qs=Math.PI,lu=2*Qs,nm=Math.PI,am=2*nm,Yn=1e-6,mB=am-Yn;function HO(e){this._+=e[0];for(let t=1,r=e.length;t=0))throw new Error(`invalid digits: ${e}`);if(t>15)return HO;const r=10**t;return function(n){this._+=n[0];for(let a=1,i=n.length;aYn)if(!(Math.abs(p*l-c*d)>Yn)||!i)this._append`L${this._x1=t},${this._y1=r}`;else{let m=n-o,b=a-s,v=l*l+c*c,S=m*m+b*b,O=Math.sqrt(v),_=Math.sqrt(g),w=i*Math.tan((nm-Math.acos((v+g-S)/(2*O*_)))/2),A=w/_,x=w/O;Math.abs(A-1)>Yn&&this._append`L${t+A*d},${r+A*p}`,this._append`A${i},${i},0,0,${+(p*m>d*b)},${this._x1=t+x*l},${this._y1=r+x*c}`}}arc(t,r,n,a,i,o){if(t=+t,r=+r,n=+n,o=!!o,n<0)throw new Error(`negative radius: ${n}`);let s=n*Math.cos(a),l=n*Math.sin(a),c=t+s,d=r+l,p=1^o,g=o?a-i:i-a;this._x1===null?this._append`M${c},${d}`:(Math.abs(this._x1-c)>Yn||Math.abs(this._y1-d)>Yn)&&this._append`L${c},${d}`,n&&(g<0&&(g=g%am+am),g>mB?this._append`A${n},${n},0,1,${p},${t-s},${r-l}A${n},${n},0,1,${p},${this._x1=c},${this._y1=d}`:g>Yn&&this._append`A${n},${n},0,${+(g>=nm)},${p},${this._x1=t+n*Math.cos(i)},${this._y1=r+n*Math.sin(i)}`)}rect(t,r,n,a){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${n=+n}v${+a}h${-n}Z`}toString(){return this._}}function Bb(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{const n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);t=n}return e},()=>new yB(t)}function Ub(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function WO(e){this._context=e}WO.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function uu(e){return new WO(e)}function VO(e){return e[0]}function YO(e){return e[1]}function KO(e,t){var r=nt(!0),n=null,a=uu,i=null,o=Bb(s);e=typeof e=="function"?e:e===void 0?VO:nt(e),t=typeof t=="function"?t:t===void 0?YO:nt(t);function s(l){var c,d=(l=Ub(l)).length,p,g=!1,m;for(n==null&&(i=a(m=o())),c=0;c<=d;++c)!(c=m;--b)s.point(w[b],A[b]);s.lineEnd(),s.areaEnd()}O&&(w[g]=+e(S,g,p),A[g]=+t(S,g,p),s.point(n?+n(S,g,p):w[g],r?+r(S,g,p):A[g]))}if(_)return s=null,_+""||null}function d(){return KO().defined(a).curve(o).context(i)}return c.x=function(p){return arguments.length?(e=typeof p=="function"?p:nt(+p),n=null,c):e},c.x0=function(p){return arguments.length?(e=typeof p=="function"?p:nt(+p),c):e},c.x1=function(p){return arguments.length?(n=p==null?null:typeof p=="function"?p:nt(+p),c):n},c.y=function(p){return arguments.length?(t=typeof p=="function"?p:nt(+p),r=null,c):t},c.y0=function(p){return arguments.length?(t=typeof p=="function"?p:nt(+p),c):t},c.y1=function(p){return arguments.length?(r=p==null?null:typeof p=="function"?p:nt(+p),c):r},c.lineX0=c.lineY0=function(){return d().x(e).y(t)},c.lineY1=function(){return d().x(e).y(r)},c.lineX1=function(){return d().x(n).y(t)},c.defined=function(p){return arguments.length?(a=typeof p=="function"?p:nt(!!p),c):a},c.curve=function(p){return arguments.length?(o=p,i!=null&&(s=o(i)),c):o},c.context=function(p){return arguments.length?(p==null?i=s=null:s=o(i=p),c):i},c}class XO{constructor(t,r){this._context=t,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}}function vB(e){return new XO(e,!0)}function SB(e){return new XO(e,!1)}const Gb={draw(e,t){const r=jr(t/Qs);e.moveTo(r,0),e.arc(0,0,r,0,lu)}},EB={draw(e,t){const r=jr(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}},ZO=jr(1/3),xB=ZO*2,wB={draw(e,t){const r=jr(t/xB),n=r*ZO;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},_B={draw(e,t){const r=jr(t),n=-r/2;e.rect(n,n,r,r)}},TB=.8908130915292852,JO=Js(Qs/10)/Js(7*Qs/10),AB=Js(lu/10)*JO,OB=-qO(lu/10)*JO,kB={draw(e,t){const r=jr(t*TB),n=AB*r,a=OB*r;e.moveTo(0,-r),e.lineTo(n,a);for(let i=1;i<5;++i){const o=lu*i/5,s=qO(o),l=Js(o);e.lineTo(l*r,-s*r),e.lineTo(s*n-l*a,l*n+s*a)}e.closePath()}},mc=jr(3),RB={draw(e,t){const r=-jr(t/(mc*3));e.moveTo(0,r*2),e.lineTo(-mc*r,-r),e.lineTo(mc*r,-r),e.closePath()}},dr=-.5,pr=jr(3)/2,im=1/jr(12),IB=(im/2+1)*3,CB={draw(e,t){const r=jr(t/IB),n=r/2,a=r*im,i=n,o=r*im+r,s=-i,l=o;e.moveTo(n,a),e.lineTo(i,o),e.lineTo(s,l),e.lineTo(dr*n-pr*a,pr*n+dr*a),e.lineTo(dr*i-pr*o,pr*i+dr*o),e.lineTo(dr*s-pr*l,pr*s+dr*l),e.lineTo(dr*n+pr*a,dr*a-pr*n),e.lineTo(dr*i+pr*o,dr*o-pr*i),e.lineTo(dr*s+pr*l,dr*l-pr*s),e.closePath()}};function NB(e,t){let r=null,n=Bb(a);e=typeof e=="function"?e:nt(e||Gb),t=typeof t=="function"?t:nt(t===void 0?64:+t);function a(){let i;if(r||(r=i=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),i)return r=null,i+""||null}return a.type=function(i){return arguments.length?(e=typeof i=="function"?i:nt(i),a):e},a.size=function(i){return arguments.length?(t=typeof i=="function"?i:nt(+i),a):t},a.context=function(i){return arguments.length?(r=i??null,a):r},a}function el(){}function tl(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function QO(e){this._context=e}QO.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:tl(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:tl(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function LB(e){return new QO(e)}function ek(e){this._context=e}ek.prototype={areaStart:el,areaEnd:el,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:tl(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function DB(e){return new ek(e)}function tk(e){this._context=e}tk.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:tl(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function MB(e){return new tk(e)}function rk(e){this._context=e}rk.prototype={areaStart:el,areaEnd:el,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function PB(e){return new rk(e)}function o0(e){return e<0?-1:1}function s0(e,t,r){var n=e._x1-e._x0,a=t-e._x1,i=(e._y1-e._y0)/(n||a<0&&-0),o=(r-e._y1)/(a||n<0&&-0),s=(i*a+o*n)/(n+a);return(o0(i)+o0(o))*Math.min(Math.abs(i),Math.abs(o),.5*Math.abs(s))||0}function l0(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function bc(e,t,r){var n=e._x0,a=e._y0,i=e._x1,o=e._y1,s=(i-n)/3;e._context.bezierCurveTo(n+s,a+s*t,i-s,o-s*r,i,o)}function rl(e){this._context=e}rl.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:bc(this,this._t0,l0(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,bc(this,l0(this,r=s0(this,e,t)),r);break;default:bc(this,this._t0,r=s0(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function nk(e){this._context=new ak(e)}(nk.prototype=Object.create(rl.prototype)).point=function(e,t){rl.prototype.point.call(this,t,e)};function ak(e){this._context=e}ak.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,n,a,i){this._context.bezierCurveTo(t,e,n,r,i,a)}};function $B(e){return new rl(e)}function jB(e){return new nk(e)}function ik(e){this._context=e}ik.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var n=u0(e),a=u0(t),i=0,o=1;o=0;--t)a[t]=(o[t]-a[t+1])/i[t];for(i[r-1]=(e[r]+a[r-1])/2,t=0;t=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function BB(e){return new cu(e,.5)}function UB(e){return new cu(e,0)}function GB(e){return new cu(e,1)}function Pa(e,t){if((o=e.length)>1)for(var r=1,n,a,i=e[t[0]],o,s=i.length;r=0;)r[t]=t;return r}function zB(e,t){return e[t]}function qB(e){const t=[];return t.key=e,t}function HB(){var e=nt([]),t=om,r=Pa,n=zB;function a(i){var o=Array.from(e.apply(this,arguments),qB),s,l=o.length,c=-1,d;for(const p of i)for(s=0,++c;s0){for(var r,n,a=0,i=e[0].length,o;a0){for(var r=0,n=e[t[0]],a,i=n.length;r0)||!((i=(a=e[t[0]]).length)>0))){for(var r=0,n=1,a,i,o;n=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function eU(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i=0)&&(r[a]=e[a]);return r}var ok={symbolCircle:Gb,symbolCross:EB,symbolDiamond:wB,symbolSquare:_B,symbolStar:kB,symbolTriangle:RB,symbolWye:CB},tU=Math.PI/180,rU=function(t){var r="symbol".concat(su(t));return ok[r]||Gb},nU=function(t,r,n){if(r==="area")return t;switch(n){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":{var a=18*tU;return 1.25*t*t*(Math.tan(a)-Math.tan(a*2)*Math.pow(Math.tan(a),2))}case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}},aU=function(t,r){ok["symbol".concat(su(t))]=r},du=function(t){var r=t.type,n=r===void 0?"circle":r,a=t.size,i=a===void 0?64:a,o=t.sizeType,s=o===void 0?"area":o,l=QB(t,KB),c=d0(d0({},l),{},{type:n,size:i,sizeType:s}),d=function(){var S=rU(n),O=NB().type(S).size(nU(i,s,n));return O()},p=c.className,g=c.cx,m=c.cy,b=Me(c,!0);return g===+g&&m===+m&&i===+i?U.createElement("path",sm({},b,{className:Je("recharts-symbols",p),transform:"translate(".concat(g,", ").concat(m,")"),d:d()})):null};du.registerSymbol=aU;function $a(e){"@babel/helpers - typeof";return $a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$a(e)}function lm(){return lm=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function nl(e){return nl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},nl(e)}function Zi(e,t,r){return t=sk(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function sk(e){var t=fU(e,"string");return $a(t)==="symbol"?t:String(t)}function fU(e,t){if($a(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if($a(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var fr=32,zb=function(e){lU(r,e);var t=uU(r);function r(){return oU(this,r),t.apply(this,arguments)}return sU(r,[{key:"renderIcon",value:function(a){var i=this.props.inactiveColor,o=fr/2,s=fr/6,l=fr/3,c=a.inactive?i:a.color;if(a.type==="plainline")return U.createElement("line",{strokeWidth:4,fill:"none",stroke:c,strokeDasharray:a.payload.strokeDasharray,x1:0,y1:o,x2:fr,y2:o,className:"recharts-legend-icon"});if(a.type==="line")return U.createElement("path",{strokeWidth:4,fill:"none",stroke:c,d:"M0,".concat(o,"h").concat(l,` A`).concat(s,",").concat(s,",0,1,1,").concat(2*l,",").concat(o,` H`).concat(fr,"M").concat(2*l,",").concat(o,` - A`).concat(s,",").concat(s,",0,1,1,").concat(l,",").concat(o),className:"recharts-legend-icon"});if(a.type==="rect")return U.createElement("path",{stroke:"none",fill:c,d:"M0,".concat(fr/8,"h").concat(fr,"v").concat(fr*3/4,"h").concat(-fr,"z"),className:"recharts-legend-icon"});if(U.isValidElement(a.legendIcon)){var d=iU({},a);return delete d.legendIcon,U.cloneElement(a.legendIcon,d)}return U.createElement(du,{fill:c,cx:o,cy:o,size:fr,sizeType:"diameter",type:a.type})}},{key:"renderItems",value:function(){var a=this,i=this.props,o=i.payload,s=i.iconSize,l=i.layout,c=i.formatter,d=i.inactiveColor,p={x:0,y:0,width:fr,height:fr},g={display:l==="horizontal"?"inline-block":"block",marginRight:10},m={display:"inline-block",verticalAlign:"middle",marginRight:4};return o.map(function(b,v){var S,O=b.formatter||c,_=Je((S={"recharts-legend-item":!0},Zi(S,"legend-item-".concat(v),!0),Zi(S,"inactive",b.inactive),S));if(b.type==="none")return null;var w=Ce(b.value)?null:b.value;ea(!Ce(b.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: `);var A=b.inactive?d:b.color;return U.createElement("li",lm({className:_,style:g,key:"legend-item-".concat(v)},Ki(a.props,b,v)),U.createElement(Qh,{width:s,height:s,viewBox:p,style:m},a.renderIcon(b)),U.createElement("span",{className:"recharts-legend-item-text",style:{color:A}},O?O(w,b,v):w))})}},{key:"render",value:function(){var a=this.props,i=a.payload,o=a.layout,s=a.align;if(!i||!i.length)return null;var l={padding:0,margin:0,textAlign:o==="horizontal"?s:"left"};return U.createElement("ul",{className:"recharts-default-legend",style:l},this.renderItems())}}]),r}(M.PureComponent);Zi(zb,"displayName","Legend");Zi(zb,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});function gU(e,t,r,n){for(var a=e.length,i=r+(n?1:-1);n?i--:++i-1}var AU=TU;function OU(e,t,r){for(var n=-1,a=e==null?0:e.length;++n=GU){var c=t?null:BU(e);if(c)return UU(c);o=!1,a=FU,l=new PU}else l=t?[]:s;e:for(;++n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function al(e){return al=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},al(e)}function pu(e,t,r){return t=dk(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dk(e){var t=r3(e,"string");return ja(t)==="symbol"?t:String(t)}function r3(e,t){if(ja(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(ja(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function n3(e,t){if(e==null)return{};var r=a3(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function a3(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i=0)&&(r[a]=e[a]);return r}function i3(e){return e.value}function o3(e,t){if(U.isValidElement(e))return U.cloneElement(e,t);if(typeof e=="function")return U.createElement(e,t);t.ref;var r=n3(t,KU);return U.createElement(zb,r)}var b0=1,Ji=function(e){JU(r,e);var t=QU(r);function r(){var n;XU(this,r);for(var a=arguments.length,i=new Array(a),o=0;ob0||Math.abs(i.height-this.lastBoundingBox.height)>b0)&&(this.lastBoundingBox.width=i.width,this.lastBoundingBox.height=i.height,a&&a(i))}else(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,a&&a(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?Wn({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(a){var i=this.props,o=i.layout,s=i.align,l=i.verticalAlign,c=i.margin,d=i.chartWidth,p=i.chartHeight,g,m;if(!a||(a.left===void 0||a.left===null)&&(a.right===void 0||a.right===null))if(s==="center"&&o==="vertical"){var b=this.getBBoxSnapshot();g={left:((d||0)-b.width)/2}}else g=s==="right"?{right:c&&c.right||0}:{left:c&&c.left||0};if(!a||(a.top===void 0||a.top===null)&&(a.bottom===void 0||a.bottom===null))if(l==="middle"){var v=this.getBBoxSnapshot();m={top:((p||0)-v.height)/2}}else m=l==="bottom"?{bottom:c&&c.bottom||0}:{top:c&&c.top||0};return Wn(Wn({},g),m)}},{key:"render",value:function(){var a=this,i=this.props,o=i.content,s=i.width,l=i.height,c=i.wrapperStyle,d=i.payloadUniqBy,p=i.payload,g=Wn(Wn({position:"absolute",width:s||"auto",height:l||"auto"},this.getDefaultPosition(c)),c);return U.createElement("div",{className:"recharts-legend-wrapper",style:g,ref:function(b){a.wrapperNode=b}},o3(o,Wn(Wn({},this.props),{},{payload:uk(p,d,i3)})))}}],[{key:"getWithHeight",value:function(a,i){var o=a.props.layout;return o==="vertical"&&se(a.props.height)?{height:a.props.height}:o==="horizontal"?{width:a.props.width||i}:null}}]),r}(M.PureComponent);pu(Ji,"displayName","Legend");pu(Ji,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var y0=nM,s3=aM,l3=Hl,v0=y0?y0.isConcatSpreadable:void 0;function u3(e){return l3(e)||s3(e)||!!(v0&&e&&e[v0])}var c3=u3,d3=iM,p3=c3;function pk(e,t,r,n,a){var i=-1,o=e.length;for(r||(r=p3),a||(a=[]);++i0&&r(s)?t>1?pk(s,t-1,r,n,a):d3(a,s):n||(a[a.length]=s)}return a}var fk=pk;function f3(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}var g3=f3,S0=kb;function h3(e,t){if(e!==t){var r=e!==void 0,n=e===null,a=e===e,i=S0(e),o=t!==void 0,s=t===null,l=t===t,c=S0(t);if(!s&&!c&&!i&&e>t||i&&o&&l&&!s&&!c||n&&o&&l||!r&&l||!a)return 1;if(!n&&!i&&!c&&e=s)return l;var c=r[n];return l*(c=="desc"?-1:1)}}return e.index-t.index}var v3=y3,vc=tP,S3=rP,E3=ia,x3=nP,w3=g3,_3=oM,T3=v3,A3=Go,O3=Hl;function k3(e,t,r){t.length?t=vc(t,function(i){return O3(i)?function(o){return S3(o,i.length===1?i[0]:i)}:i}):t=[A3];var n=-1;t=vc(t,_3(E3));var a=x3(e,function(i,o,s){var l=vc(t,function(c){return c(i)});return{criteria:l,index:++n,value:i}});return w3(a,function(i,o){return T3(i,o,r)})}var R3=k3;function I3(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var C3=I3,N3=C3,E0=Math.max;function L3(e,t,r){return t=E0(t===void 0?e.length-1:t,0),function(){for(var n=arguments,a=-1,i=E0(n.length-t,0),o=Array(i);++a0){if(++t>=U3)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var H3=q3,W3=B3,V3=H3,Y3=V3(W3),K3=Y3,X3=Go,Z3=D3,J3=K3;function Q3(e,t){return J3(Z3(e,t,X3),e+"")}var e5=Q3,t5=lM,r5=oO,n5=uM,a5=Wl;function i5(e,t,r){if(!a5(r))return!1;var n=typeof t;return(n=="number"?r5(r)&&n5(t,r.length):n=="string"&&t in r)?t5(r[t],e):!1}var fu=i5,o5=fk,s5=R3,l5=e5,w0=fu,u5=l5(function(e,t){if(e==null)return[];var r=t.length;return r>1&&w0(e,t[0],t[1])?t=[]:r>2&&w0(t[0],t[1],t[2])&&(t=[t[0]]),s5(e,o5(t,1),[])}),c5=u5;const qb=ft(c5);function Qi(e){"@babel/helpers - typeof";return Qi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qi(e)}function d5(e,t){return h5(e)||g5(e,t)||f5(e,t)||p5()}function p5(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. + A`).concat(s,",").concat(s,",0,1,1,").concat(l,",").concat(o),className:"recharts-legend-icon"});if(a.type==="rect")return U.createElement("path",{stroke:"none",fill:c,d:"M0,".concat(fr/8,"h").concat(fr,"v").concat(fr*3/4,"h").concat(-fr,"z"),className:"recharts-legend-icon"});if(U.isValidElement(a.legendIcon)){var d=iU({},a);return delete d.legendIcon,U.cloneElement(a.legendIcon,d)}return U.createElement(du,{fill:c,cx:o,cy:o,size:fr,sizeType:"diameter",type:a.type})}},{key:"renderItems",value:function(){var a=this,i=this.props,o=i.payload,s=i.iconSize,l=i.layout,c=i.formatter,d=i.inactiveColor,p={x:0,y:0,width:fr,height:fr},g={display:l==="horizontal"?"inline-block":"block",marginRight:10},m={display:"inline-block",verticalAlign:"middle",marginRight:4};return o.map(function(b,v){var S,O=b.formatter||c,_=Je((S={"recharts-legend-item":!0},Zi(S,"legend-item-".concat(v),!0),Zi(S,"inactive",b.inactive),S));if(b.type==="none")return null;var w=Ce(b.value)?null:b.value;ea(!Ce(b.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: `);var A=b.inactive?d:b.color;return U.createElement("li",lm({className:_,style:g,key:"legend-item-".concat(v)},Ki(a.props,b,v)),U.createElement(Qh,{width:s,height:s,viewBox:p,style:m},a.renderIcon(b)),U.createElement("span",{className:"recharts-legend-item-text",style:{color:A}},O?O(w,b,v):w))})}},{key:"render",value:function(){var a=this.props,i=a.payload,o=a.layout,s=a.align;if(!i||!i.length)return null;var l={padding:0,margin:0,textAlign:o==="horizontal"?s:"left"};return U.createElement("ul",{className:"recharts-default-legend",style:l},this.renderItems())}}]),r}(M.PureComponent);Zi(zb,"displayName","Legend");Zi(zb,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});function gU(e,t,r,n){for(var a=e.length,i=r+(n?1:-1);n?i--:++i-1}var AU=TU;function OU(e,t,r){for(var n=-1,a=e==null?0:e.length;++n=GU){var c=t?null:BU(e);if(c)return UU(c);o=!1,a=FU,l=new PU}else l=t?[]:s;e:for(;++n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function al(e){return al=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},al(e)}function pu(e,t,r){return t=dk(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dk(e){var t=r3(e,"string");return ja(t)==="symbol"?t:String(t)}function r3(e,t){if(ja(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(ja(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function n3(e,t){if(e==null)return{};var r=a3(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function a3(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i=0)&&(r[a]=e[a]);return r}function i3(e){return e.value}function o3(e,t){if(U.isValidElement(e))return U.cloneElement(e,t);if(typeof e=="function")return U.createElement(e,t);t.ref;var r=n3(t,KU);return U.createElement(zb,r)}var b0=1,Ji=function(e){JU(r,e);var t=QU(r);function r(){var n;XU(this,r);for(var a=arguments.length,i=new Array(a),o=0;ob0||Math.abs(i.height-this.lastBoundingBox.height)>b0)&&(this.lastBoundingBox.width=i.width,this.lastBoundingBox.height=i.height,a&&a(i))}else(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,a&&a(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?Wn({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(a){var i=this.props,o=i.layout,s=i.align,l=i.verticalAlign,c=i.margin,d=i.chartWidth,p=i.chartHeight,g,m;if(!a||(a.left===void 0||a.left===null)&&(a.right===void 0||a.right===null))if(s==="center"&&o==="vertical"){var b=this.getBBoxSnapshot();g={left:((d||0)-b.width)/2}}else g=s==="right"?{right:c&&c.right||0}:{left:c&&c.left||0};if(!a||(a.top===void 0||a.top===null)&&(a.bottom===void 0||a.bottom===null))if(l==="middle"){var v=this.getBBoxSnapshot();m={top:((p||0)-v.height)/2}}else m=l==="bottom"?{bottom:c&&c.bottom||0}:{top:c&&c.top||0};return Wn(Wn({},g),m)}},{key:"render",value:function(){var a=this,i=this.props,o=i.content,s=i.width,l=i.height,c=i.wrapperStyle,d=i.payloadUniqBy,p=i.payload,g=Wn(Wn({position:"absolute",width:s||"auto",height:l||"auto"},this.getDefaultPosition(c)),c);return U.createElement("div",{className:"recharts-legend-wrapper",style:g,ref:function(b){a.wrapperNode=b}},o3(o,Wn(Wn({},this.props),{},{payload:uk(p,d,i3)})))}}],[{key:"getWithHeight",value:function(a,i){var o=a.props.layout;return o==="vertical"&&se(a.props.height)?{height:a.props.height}:o==="horizontal"?{width:a.props.width||i}:null}}]),r}(M.PureComponent);pu(Ji,"displayName","Legend");pu(Ji,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var y0=nM,s3=aM,l3=Hl,v0=y0?y0.isConcatSpreadable:void 0;function u3(e){return l3(e)||s3(e)||!!(v0&&e&&e[v0])}var c3=u3,d3=iM,p3=c3;function pk(e,t,r,n,a){var i=-1,o=e.length;for(r||(r=p3),a||(a=[]);++i0&&r(s)?t>1?pk(s,t-1,r,n,a):d3(a,s):n||(a[a.length]=s)}return a}var fk=pk;function f3(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}var g3=f3,S0=kb;function h3(e,t){if(e!==t){var r=e!==void 0,n=e===null,a=e===e,i=S0(e),o=t!==void 0,s=t===null,l=t===t,c=S0(t);if(!s&&!c&&!i&&e>t||i&&o&&l&&!s&&!c||n&&o&&l||!r&&l||!a)return 1;if(!n&&!i&&!c&&e=s)return l;var c=r[n];return l*(c=="desc"?-1:1)}}return e.index-t.index}var v3=y3,vc=rP,S3=nP,E3=ia,x3=aP,w3=g3,_3=oM,T3=v3,A3=Go,O3=Hl;function k3(e,t,r){t.length?t=vc(t,function(i){return O3(i)?function(o){return S3(o,i.length===1?i[0]:i)}:i}):t=[A3];var n=-1;t=vc(t,_3(E3));var a=x3(e,function(i,o,s){var l=vc(t,function(c){return c(i)});return{criteria:l,index:++n,value:i}});return w3(a,function(i,o){return T3(i,o,r)})}var R3=k3;function I3(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var C3=I3,N3=C3,E0=Math.max;function L3(e,t,r){return t=E0(t===void 0?e.length-1:t,0),function(){for(var n=arguments,a=-1,i=E0(n.length-t,0),o=Array(i);++a0){if(++t>=U3)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var H3=q3,W3=B3,V3=H3,Y3=V3(W3),K3=Y3,X3=Go,Z3=D3,J3=K3;function Q3(e,t){return J3(Z3(e,t,X3),e+"")}var e5=Q3,t5=lM,r5=oO,n5=uM,a5=Wl;function i5(e,t,r){if(!a5(r))return!1;var n=typeof t;return(n=="number"?r5(r)&&n5(t,r.length):n=="string"&&t in r)?t5(r[t],e):!1}var fu=i5,o5=fk,s5=R3,l5=e5,w0=fu,u5=l5(function(e,t){if(e==null)return[];var r=t.length;return r>1&&w0(e,t[0],t[1])?t=[]:r>2&&w0(t[0],t[1],t[2])&&(t=[t[0]]),s5(e,o5(t,1),[])}),c5=u5;const qb=ft(c5);function Qi(e){"@babel/helpers - typeof";return Qi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qi(e)}function d5(e,t){return h5(e)||g5(e,t)||f5(e,t)||p5()}function p5(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function f5(e,t){if(e){if(typeof e=="string")return _0(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _0(e,t)}}function _0(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0;)if(!r.equals(e[n],t[n],n,n,e,t,r))return!1;return!0}function T5(e,t){return ai(e.getTime(),t.getTime())}function I0(e,t,r){if(e.size!==t.size)return!1;for(var n={},a=e.entries(),i=0,o,s;(o=a.next())&&!o.done;){for(var l=t.entries(),c=!1,d=0;(s=l.next())&&!s.done;){var p=o.value,g=p[0],m=p[1],b=s.value,v=b[0],S=b[1];!c&&!n[d]&&(c=r.equals(g,v,i,d,e,t,r)&&r.equals(m,S,g,v,e,t,r))&&(n[d]=!0),d++}if(!c)return!1;i++}return!0}function A5(e,t,r){var n=R0(e),a=n.length;if(R0(t).length!==a)return!1;for(var i;a-- >0;)if(i=n[a],i===hk&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof||!gk(t,i)||!r.equals(e[i],t[i],i,i,e,t,r))return!1;return!0}function wi(e,t,r){var n=O0(e),a=n.length;if(O0(t).length!==a)return!1;for(var i,o,s;a-- >0;)if(i=n[a],i===hk&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof||!gk(t,i)||!r.equals(e[i],t[i],i,i,e,t,r)||(o=k0(e,i),s=k0(t,i),(o||s)&&(!o||!s||o.configurable!==s.configurable||o.enumerable!==s.enumerable||o.writable!==s.writable)))return!1;return!0}function O5(e,t){return ai(e.valueOf(),t.valueOf())}function k5(e,t){return e.source===t.source&&e.flags===t.flags}function C0(e,t,r){if(e.size!==t.size)return!1;for(var n={},a=e.values(),i,o;(i=a.next())&&!i.done;){for(var s=t.values(),l=!1,c=0;(o=s.next())&&!o.done;)!l&&!n[c]&&(l=r.equals(i.value,o.value,i.value,o.value,e,t,r))&&(n[c]=!0),c++;if(!l)return!1}return!0}function R5(e,t){var r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(e[r]!==t[r])return!1;return!0}var I5="[object Arguments]",C5="[object Boolean]",N5="[object Date]",L5="[object Map]",D5="[object Number]",M5="[object Object]",P5="[object RegExp]",$5="[object Set]",j5="[object String]",F5=Array.isArray,N0=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,L0=Object.assign,B5=Object.prototype.toString.call.bind(Object.prototype.toString);function U5(e){var t=e.areArraysEqual,r=e.areDatesEqual,n=e.areMapsEqual,a=e.areObjectsEqual,i=e.arePrimitiveWrappersEqual,o=e.areRegExpsEqual,s=e.areSetsEqual,l=e.areTypedArraysEqual;return function(d,p,g){if(d===p)return!0;if(d==null||p==null||typeof d!="object"||typeof p!="object")return d!==d&&p!==p;var m=d.constructor;if(m!==p.constructor)return!1;if(m===Object)return a(d,p,g);if(F5(d))return t(d,p,g);if(N0!=null&&N0(d))return l(d,p,g);if(m===Date)return r(d,p,g);if(m===RegExp)return o(d,p,g);if(m===Map)return n(d,p,g);if(m===Set)return s(d,p,g);var b=B5(d);return b===N5?r(d,p,g):b===P5?o(d,p,g):b===L5?n(d,p,g):b===$5?s(d,p,g):b===M5?typeof d.then!="function"&&typeof p.then!="function"&&a(d,p,g):b===I5?a(d,p,g):b===C5||b===D5||b===j5?i(d,p,g):!1}}function G5(e){var t=e.circular,r=e.createCustomConfig,n=e.strict,a={areArraysEqual:n?wi:_5,areDatesEqual:T5,areMapsEqual:n?A0(I0,wi):I0,areObjectsEqual:n?wi:A5,arePrimitiveWrappersEqual:O5,areRegExpsEqual:k5,areSetsEqual:n?A0(C0,wi):C0,areTypedArraysEqual:n?wi:R5};if(r&&(a=L0({},a,r(a))),t){var i=ks(a.areArraysEqual),o=ks(a.areMapsEqual),s=ks(a.areObjectsEqual),l=ks(a.areSetsEqual);a=L0({},a,{areArraysEqual:i,areMapsEqual:o,areObjectsEqual:s,areSetsEqual:l})}return a}function z5(e){return function(t,r,n,a,i,o,s){return e(t,r,s)}}function q5(e){var t=e.circular,r=e.comparator,n=e.createState,a=e.equals,i=e.strict;if(n)return function(l,c){var d=n(),p=d.cache,g=p===void 0?t?new WeakMap:void 0:p,m=d.meta;return r(l,c,{cache:g,equals:a,meta:m,strict:i})};if(t)return function(l,c){return r(l,c,{cache:new WeakMap,equals:a,meta:void 0,strict:i})};var o={cache:void 0,equals:a,meta:void 0,strict:i};return function(l,c){return r(l,c,o)}}var H5=Pn();Pn({strict:!0});Pn({circular:!0});Pn({circular:!0,strict:!0});Pn({createInternalComparator:function(){return ai}});Pn({strict:!0,createInternalComparator:function(){return ai}});Pn({circular:!0,createInternalComparator:function(){return ai}});Pn({circular:!0,createInternalComparator:function(){return ai},strict:!0});function Pn(e){e===void 0&&(e={});var t=e.circular,r=t===void 0?!1:t,n=e.createInternalComparator,a=e.createState,i=e.strict,o=i===void 0?!1:i,s=G5(e),l=U5(s),c=n?n(l):z5(l);return q5({circular:r,comparator:l,createState:a,equals:c,strict:o})}function W5(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function D0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=-1,n=function a(i){r<0&&(r=i),i-r>t?(e(i),r=-1):W5(a)};requestAnimationFrame(n)}function dm(e){"@babel/helpers - typeof";return dm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},dm(e)}function V5(e){return Z5(e)||X5(e)||K5(e)||Y5()}function Y5(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function K5(e,t){if(e){if(typeof e=="string")return M0(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return M0(e,t)}}function M0(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||fn.isSsr)return{width:0,height:0};var n=r6(r),a=JSON.stringify({text:t,copyStyle:n});if(ba.widthCache[a])return ba.widthCache[a];try{var i=document.getElementById(nS);i||(i=document.createElement("span"),i.setAttribute("id",nS),i.setAttribute("aria-hidden","true"),document.body.appendChild(i));var o=xm(xm({},t6),n);Object.assign(i.style,o),i.textContent="".concat(t);var s=i.getBoundingClientRect(),l={width:s.width,height:s.height};return ba.widthCache[a]=l,++ba.cacheCount>e6&&(ba.cacheCount=0,ba.widthCache={}),l}catch{return{width:0,height:0}}},n6=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function io(e){"@babel/helpers - typeof";return io=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},io(e)}function dl(e,t){return s6(e)||o6(e,t)||i6(e,t)||a6()}function a6(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function i6(e,t){if(e){if(typeof e=="string")return aS(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return aS(e,t)}}function aS(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function E6(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i=0)&&(r[a]=e[a]);return r}function cS(e,t){return T6(e)||_6(e,t)||w6(e,t)||x6()}function x6(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function w6(e,t){if(e){if(typeof e=="string")return dS(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return dS(e,t)}}function dS(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&arguments[0]!==void 0?arguments[0]:[];return z.reduce(function(W,K){var G=K.word,V=K.width,J=W[W.length-1];if(J&&(a==null||i||J.width+V+nK.width?W:K})};if(!d)return m;for(var v="…",S=function(z){var W=p.slice(0,z),K=kk({breakAll:c,style:l,children:W+v}).wordsWithComputedWidth,G=g(K),V=G.length>o||b(G).width>Number(a);return[V,G]},O=0,_=p.length-1,w=0,A;O<=_&&w<=p.length-1;){var x=Math.floor((O+_)/2),E=x-1,k=S(E),C=cS(k,2),I=C[0],N=C[1],D=S(x),j=cS(D,1),q=j[0];if(!I&&!q&&(O=x+1),I&&q&&(_=x-1),!I&&q){A=N;break}w++}return A||m},pS=function(t){var r=Ne(t)?[]:t.toString().split(Ok);return[{words:r}]},O6=function(t){var r=t.width,n=t.scaleToFit,a=t.children,i=t.style,o=t.breakAll,s=t.maxLines;if((r||n)&&!fn.isSsr){var l,c,d=kk({breakAll:o,children:a,style:i});if(d){var p=d.wordsWithComputedWidth,g=d.spaceWidth;l=p,c=g}else return pS(a);return A6({breakAll:o,children:a,maxLines:s,style:i},l,c,r,n)}return pS(a)},fS="#808080",pl=function(t){var r=t.x,n=r===void 0?0:r,a=t.y,i=a===void 0?0:a,o=t.lineHeight,s=o===void 0?"1em":o,l=t.capHeight,c=l===void 0?"0.71em":l,d=t.scaleToFit,p=d===void 0?!1:d,g=t.textAnchor,m=g===void 0?"start":g,b=t.verticalAnchor,v=b===void 0?"end":b,S=t.fill,O=S===void 0?fS:S,_=uS(t,v6),w=M.useMemo(function(){return O6({breakAll:_.breakAll,children:_.children,maxLines:_.maxLines,scaleToFit:p,style:_.style,width:_.width})},[_.breakAll,_.children,_.maxLines,p,_.style,_.width]),A=_.dx,x=_.dy,E=_.angle,k=_.className,C=_.breakAll,I=uS(_,S6);if(!Et(n)||!Et(i))return null;var N=n+(se(A)?A:0),D=i+(se(x)?x:0),j;switch(v){case"start":j=_c("calc(".concat(c,")"));break;case"middle":j=_c("calc(".concat((w.length-1)/2," * -").concat(s," + (").concat(c," / 2))"));break;default:j=_c("calc(".concat(w.length-1," * -").concat(s,")"));break}var q=[];if(p){var H=w[0].width,z=_.width;q.push("scale(".concat((se(z)?z/H:1)/H,")"))}return E&&q.push("rotate(".concat(E,", ").concat(N,", ").concat(D,")")),q.length&&(I.transform=q.join(" ")),U.createElement("text",wm({},Me(I,!0),{x:N,y:D,className:Je("recharts-text",k),textAnchor:m,fill:O.includes("url")?fS:O}),w.map(function(W,K){var G=W.words.join(C?"":" ");return U.createElement("tspan",{x:N,dy:K===0?j:s,key:G},G)}))};function Dn(e,t){return e==null||t==null?NaN:et?1:e>=t?0:NaN}function k6(e,t){return e==null||t==null?NaN:te?1:t>=e?0:NaN}function Yb(e){let t,r,n;e.length!==2?(t=Dn,r=(s,l)=>Dn(e(s),l),n=(s,l)=>e(s)-l):(t=e===Dn||e===k6?e:R6,r=e,n=e);function a(s,l,c=0,d=s.length){if(c>>1;r(s[p],l)<0?c=p+1:d=p}while(c>>1;r(s[p],l)<=0?c=p+1:d=p}while(cc&&n(s[p-1],l)>-n(s[p],l)?p-1:p}return{left:a,center:o,right:i}}function R6(){return 0}function Rk(e){return e===null?NaN:+e}function*I6(e,t){if(t===void 0)for(let r of e)r!=null&&(r=+r)>=r&&(yield r);else{let r=-1;for(let n of e)(n=t(n,++r,e))!=null&&(n=+n)>=n&&(yield n)}}const C6=Yb(Dn),N6=C6.right;Yb(Rk).center;const Wo=N6;class gS extends Map{constructor(t,r=M6){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(const[n,a]of t)this.set(n,a)}get(t){return super.get(hS(this,t))}has(t){return super.has(hS(this,t))}set(t,r){return super.set(L6(this,t),r)}delete(t){return super.delete(D6(this,t))}}function hS({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function L6({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function D6({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function M6(e){return e!==null&&typeof e=="object"?e.valueOf():e}function P6(e=Dn){if(e===Dn)return Ik;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,r)=>{const n=e(t,r);return n||n===0?n:(e(r,r)===0)-(e(t,t)===0)}}function Ik(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(et?1:0)}const $6=Math.sqrt(50),j6=Math.sqrt(10),F6=Math.sqrt(2);function fl(e,t,r){const n=(t-e)/Math.max(0,r),a=Math.floor(Math.log10(n)),i=n/Math.pow(10,a),o=i>=$6?10:i>=j6?5:i>=F6?2:1;let s,l,c;return a<0?(c=Math.pow(10,-a)/o,s=Math.round(e*c),l=Math.round(t*c),s/ct&&--l,c=-c):(c=Math.pow(10,a)*o,s=Math.round(e/c),l=Math.round(t/c),s*ct&&--l),l0))return[];if(e===t)return[e];const n=t=a))return[];const s=i-a+1,l=new Array(s);if(n)if(o<0)for(let c=0;c=n)&&(r=n);else{let n=-1;for(let a of e)(a=t(a,++n,e))!=null&&(r=a)&&(r=a)}return r}function bS(e,t){let r;if(t===void 0)for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);else{let n=-1;for(let a of e)(a=t(a,++n,e))!=null&&(r>a||r===void 0&&a>=a)&&(r=a)}return r}function Ck(e,t,r=0,n=1/0,a){if(t=Math.floor(t),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(e.length-1,n)),!(r<=t&&t<=n))return e;for(a=a===void 0?Ik:P6(a);n>r;){if(n-r>600){const l=n-r+1,c=t-r+1,d=Math.log(l),p=.5*Math.exp(2*d/3),g=.5*Math.sqrt(d*p*(l-p)/l)*(c-l/2<0?-1:1),m=Math.max(r,Math.floor(t-c*p/l+g)),b=Math.min(n,Math.floor(t+(l-c)*p/l+g));Ck(e,t,m,b,a)}const i=e[t];let o=r,s=n;for(Ti(e,r,t),a(e[n],i)>0&&Ti(e,r,n);o0;)--s}a(e[r],i)===0?Ti(e,r,s):(++s,Ti(e,s,n)),s<=t&&(r=s+1),t<=s&&(n=s-1)}return e}function Ti(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function B6(e,t,r){if(e=Float64Array.from(I6(e,r)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return bS(e);if(t>=1)return mS(e);var n,a=(n-1)*t,i=Math.floor(a),o=mS(Ck(e,i).subarray(0,i+1)),s=bS(e.subarray(i+1));return o+(s-o)*(a-i)}}function U6(e,t,r=Rk){if(!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return+r(e[0],0,e);if(t>=1)return+r(e[n-1],n-1,e);var n,a=(n-1)*t,i=Math.floor(a),o=+r(e[i],i,e),s=+r(e[i+1],i+1,e);return o+(s-o)*(a-i)}}function G6(e,t,r){e=+e,t=+t,r=(a=arguments.length)<2?(t=e,e=0,1):a<3?1:+r;for(var n=-1,a=Math.max(0,Math.ceil((t-e)/r))|0,i=new Array(a);++n>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?Ns(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?Ns(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=q6.exec(e))?new Qt(t[1],t[2],t[3],1):(t=H6.exec(e))?new Qt(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=W6.exec(e))?Ns(t[1],t[2],t[3],t[4]):(t=V6.exec(e))?Ns(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Y6.exec(e))?_S(t[1],t[2]/100,t[3]/100,1):(t=K6.exec(e))?_S(t[1],t[2]/100,t[3]/100,t[4]):yS.hasOwnProperty(e)?ES(yS[e]):e==="transparent"?new Qt(NaN,NaN,NaN,0):null}function ES(e){return new Qt(e>>16&255,e>>8&255,e&255,1)}function Ns(e,t,r,n){return n<=0&&(e=t=r=NaN),new Qt(e,t,r,n)}function J6(e){return e instanceof Vo||(e=uo(e)),e?(e=e.rgb(),new Qt(e.r,e.g,e.b,e.opacity)):new Qt}function km(e,t,r,n){return arguments.length===1?J6(e):new Qt(e,t,r,n??1)}function Qt(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}Xb(Qt,km,Lk(Vo,{brighter(e){return e=e==null?gl:Math.pow(gl,e),new Qt(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?so:Math.pow(so,e),new Qt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Qt(ta(this.r),ta(this.g),ta(this.b),hl(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:xS,formatHex:xS,formatHex8:Q6,formatRgb:wS,toString:wS}));function xS(){return`#${Jn(this.r)}${Jn(this.g)}${Jn(this.b)}`}function Q6(){return`#${Jn(this.r)}${Jn(this.g)}${Jn(this.b)}${Jn((isNaN(this.opacity)?1:this.opacity)*255)}`}function wS(){const e=hl(this.opacity);return`${e===1?"rgb(":"rgba("}${ta(this.r)}, ${ta(this.g)}, ${ta(this.b)}${e===1?")":`, ${e})`}`}function hl(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function ta(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Jn(e){return e=ta(e),(e<16?"0":"")+e.toString(16)}function _S(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Nr(e,t,r,n)}function Dk(e){if(e instanceof Nr)return new Nr(e.h,e.s,e.l,e.opacity);if(e instanceof Vo||(e=uo(e)),!e)return new Nr;if(e instanceof Nr)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,a=Math.min(t,r,n),i=Math.max(t,r,n),o=NaN,s=i-a,l=(i+a)/2;return s?(t===i?o=(r-n)/s+(r0&&l<1?0:o,new Nr(o,s,l,e.opacity)}function ez(e,t,r,n){return arguments.length===1?Dk(e):new Nr(e,t,r,n??1)}function Nr(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}Xb(Nr,ez,Lk(Vo,{brighter(e){return e=e==null?gl:Math.pow(gl,e),new Nr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?so:Math.pow(so,e),new Nr(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,a=2*r-n;return new Qt(Tc(e>=240?e-240:e+120,a,n),Tc(e,a,n),Tc(e<120?e+240:e-120,a,n),this.opacity)},clamp(){return new Nr(TS(this.h),Ls(this.s),Ls(this.l),hl(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=hl(this.opacity);return`${e===1?"hsl(":"hsla("}${TS(this.h)}, ${Ls(this.s)*100}%, ${Ls(this.l)*100}%${e===1?")":`, ${e})`}`}}));function TS(e){return e=(e||0)%360,e<0?e+360:e}function Ls(e){return Math.max(0,Math.min(1,e||0))}function Tc(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const Zb=e=>()=>e;function tz(e,t){return function(r){return e+r*t}}function rz(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function nz(e){return(e=+e)==1?Mk:function(t,r){return r-t?rz(t,r,e):Zb(isNaN(t)?r:t)}}function Mk(e,t){var r=t-e;return r?tz(e,r):Zb(isNaN(e)?t:e)}const AS=function e(t){var r=nz(t);function n(a,i){var o=r((a=km(a)).r,(i=km(i)).r),s=r(a.g,i.g),l=r(a.b,i.b),c=Mk(a.opacity,i.opacity);return function(d){return a.r=o(d),a.g=s(d),a.b=l(d),a.opacity=c(d),a+""}}return n.gamma=e,n}(1);function az(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),a;return function(i){for(a=0;ar&&(i=t.slice(r,i),s[o]?s[o]+=i:s[++o]=i),(n=n[0])===(a=a[0])?s[o]?s[o]+=a:s[++o]=a:(s[++o]=null,l.push({i:o,x:ml(n,a)})),r=Ac.lastIndex;return rt&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function hz(e,t,r){var n=e[0],a=e[1],i=t[0],o=t[1];return a2?mz:hz,l=c=null,p}function p(g){return g==null||isNaN(g=+g)?i:(l||(l=s(e.map(n),t,r)))(n(o(g)))}return p.invert=function(g){return o(a((c||(c=s(t,e.map(n),ml)))(g)))},p.domain=function(g){return arguments.length?(e=Array.from(g,bl),d()):e.slice()},p.range=function(g){return arguments.length?(t=Array.from(g),d()):t.slice()},p.rangeRound=function(g){return t=Array.from(g),r=Jb,d()},p.clamp=function(g){return arguments.length?(o=g?!0:Vt,d()):o!==Vt},p.interpolate=function(g){return arguments.length?(r=g,d()):r},p.unknown=function(g){return arguments.length?(i=g,p):i},function(g,m){return n=g,a=m,d()}}function Qb(){return gu()(Vt,Vt)}function bz(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function yl(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function za(e){return e=yl(Math.abs(e)),e?e[1]:NaN}function yz(e,t){return function(r,n){for(var a=r.length,i=[],o=0,s=e[0],l=0;a>0&&s>0&&(l+s+1>n&&(s=Math.max(1,n-l)),i.push(r.substring(a-=s,a+s)),!((l+=s+1)>n));)s=e[o=(o+1)%e.length];return i.reverse().join(t)}}function vz(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var Sz=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function co(e){if(!(t=Sz.exec(e)))throw new Error("invalid format: "+e);var t;return new ey({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}co.prototype=ey.prototype;function ey(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}ey.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function Ez(e){e:for(var t=e.length,r=1,n=-1,a;r0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(a+1):e}var Pk;function xz(e,t){var r=yl(e,t);if(!r)return e+"";var n=r[0],a=r[1],i=a-(Pk=Math.max(-8,Math.min(8,Math.floor(a/3)))*3)+1,o=n.length;return i===o?n:i>o?n+new Array(i-o+1).join("0"):i>0?n.slice(0,i)+"."+n.slice(i):"0."+new Array(1-i).join("0")+yl(e,Math.max(0,t+i-1))[0]}function kS(e,t){var r=yl(e,t);if(!r)return e+"";var n=r[0],a=r[1];return a<0?"0."+new Array(-a).join("0")+n:n.length>a+1?n.slice(0,a+1)+"."+n.slice(a+1):n+new Array(a-n.length+2).join("0")}const RS={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:bz,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>kS(e*100,t),r:kS,s:xz,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function IS(e){return e}var CS=Array.prototype.map,NS=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function wz(e){var t=e.grouping===void 0||e.thousands===void 0?IS:yz(CS.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",a=e.decimal===void 0?".":e.decimal+"",i=e.numerals===void 0?IS:vz(CS.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"−":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function c(p){p=co(p);var g=p.fill,m=p.align,b=p.sign,v=p.symbol,S=p.zero,O=p.width,_=p.comma,w=p.precision,A=p.trim,x=p.type;x==="n"?(_=!0,x="g"):RS[x]||(w===void 0&&(w=12),A=!0,x="g"),(S||g==="0"&&m==="=")&&(S=!0,g="0",m="=");var E=v==="$"?r:v==="#"&&/[boxX]/.test(x)?"0"+x.toLowerCase():"",k=v==="$"?n:/[%p]/.test(x)?o:"",C=RS[x],I=/[defgprs%]/.test(x);w=w===void 0?6:/[gprs]/.test(x)?Math.max(1,Math.min(21,w)):Math.max(0,Math.min(20,w));function N(D){var j=E,q=k,H,z,W;if(x==="c")q=C(D)+q,D="";else{D=+D;var K=D<0||1/D<0;if(D=isNaN(D)?l:C(Math.abs(D),w),A&&(D=Ez(D)),K&&+D==0&&b!=="+"&&(K=!1),j=(K?b==="("?b:s:b==="-"||b==="("?"":b)+j,q=(x==="s"?NS[8+Pk/3]:"")+q+(K&&b==="("?")":""),I){for(H=-1,z=D.length;++HW||W>57){q=(W===46?a+D.slice(H+1):D.slice(H))+q,D=D.slice(0,H);break}}}_&&!S&&(D=t(D,1/0));var G=j.length+D.length+q.length,V=G>1)+j+D+q+V.slice(G);break;default:D=V+j+D+q;break}return i(D)}return N.toString=function(){return p+""},N}function d(p,g){var m=c((p=co(p),p.type="f",p)),b=Math.max(-8,Math.min(8,Math.floor(za(g)/3)))*3,v=Math.pow(10,-b),S=NS[8+b/3];return function(O){return m(v*O)+S}}return{format:c,formatPrefix:d}}var Ds,ty,$k;_z({thousands:",",grouping:[3],currency:["$",""]});function _z(e){return Ds=wz(e),ty=Ds.format,$k=Ds.formatPrefix,Ds}function Tz(e){return Math.max(0,-za(Math.abs(e)))}function Az(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(za(t)/3)))*3-za(Math.abs(e)))}function Oz(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,za(t)-za(e))+1}function jk(e,t,r,n){var a=Am(e,t,r),i;switch(n=co(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(i=Az(a,o))&&(n.precision=i),$k(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(i=Oz(a,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=i-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(i=Tz(a))&&(n.precision=i-(n.type==="%")*2);break}}return ty(n)}function $n(e){var t=e.domain;return e.ticks=function(r){var n=t();return _m(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var a=t();return jk(a[0],a[a.length-1],r??10,n)},e.nice=function(r){r==null&&(r=10);var n=t(),a=0,i=n.length-1,o=n[a],s=n[i],l,c,d=10;for(s0;){if(c=Tm(o,s,r),c===l)return n[a]=o,n[i]=s,t(n);if(c>0)o=Math.floor(o/c)*c,s=Math.ceil(s/c)*c;else if(c<0)o=Math.ceil(o*c)/c,s=Math.floor(s*c)/c;else break;l=c}return e},e}function vl(){var e=Qb();return e.copy=function(){return Yo(e,vl())},Er.apply(e,arguments),$n(e)}function Fk(e){var t;function r(n){return n==null||isNaN(n=+n)?t:n}return r.invert=r,r.domain=r.range=function(n){return arguments.length?(e=Array.from(n,bl),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return Fk(e).unknown(t)},e=arguments.length?Array.from(e,bl):[0,1],$n(r)}function Bk(e,t){e=e.slice();var r=0,n=e.length-1,a=e[r],i=e[n],o;return iMath.pow(e,t)}function Nz(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function MS(e){return(t,r)=>-e(-t,r)}function ry(e){const t=e(LS,DS),r=t.domain;let n=10,a,i;function o(){return a=Nz(n),i=Cz(n),r()[0]<0?(a=MS(a),i=MS(i),e(kz,Rz)):e(LS,DS),t}return t.base=function(s){return arguments.length?(n=+s,o()):n},t.domain=function(s){return arguments.length?(r(s),o()):r()},t.ticks=s=>{const l=r();let c=l[0],d=l[l.length-1];const p=d0){for(;g<=m;++g)for(b=1;bd)break;O.push(v)}}else for(;g<=m;++g)for(b=n-1;b>=1;--b)if(v=g>0?b/i(-g):b*i(g),!(vd)break;O.push(v)}O.length*2{if(s==null&&(s=10),l==null&&(l=n===10?"s":","),typeof l!="function"&&(!(n%1)&&(l=co(l)).precision==null&&(l.trim=!0),l=ty(l)),s===1/0)return l;const c=Math.max(1,n*s/t.ticks().length);return d=>{let p=d/i(Math.round(a(d)));return p*nr(Bk(r(),{floor:s=>i(Math.floor(a(s))),ceil:s=>i(Math.ceil(a(s)))})),t}function Uk(){const e=ry(gu()).domain([1,10]);return e.copy=()=>Yo(e,Uk()).base(e.base()),Er.apply(e,arguments),e}function PS(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function $S(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function ny(e){var t=1,r=e(PS(t),$S(t));return r.constant=function(n){return arguments.length?e(PS(t=+n),$S(t)):t},$n(r)}function Gk(){var e=ny(gu());return e.copy=function(){return Yo(e,Gk()).constant(e.constant())},Er.apply(e,arguments)}function jS(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function Lz(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function Dz(e){return e<0?-e*e:e*e}function ay(e){var t=e(Vt,Vt),r=1;function n(){return r===1?e(Vt,Vt):r===.5?e(Lz,Dz):e(jS(r),jS(1/r))}return t.exponent=function(a){return arguments.length?(r=+a,n()):r},$n(t)}function iy(){var e=ay(gu());return e.copy=function(){return Yo(e,iy()).exponent(e.exponent())},Er.apply(e,arguments),e}function Mz(){return iy.apply(null,arguments).exponent(.5)}function FS(e){return Math.sign(e)*e*e}function Pz(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function zk(){var e=Qb(),t=[0,1],r=!1,n;function a(i){var o=Pz(e(i));return isNaN(o)?n:r?Math.round(o):o}return a.invert=function(i){return e.invert(FS(i))},a.domain=function(i){return arguments.length?(e.domain(i),a):e.domain()},a.range=function(i){return arguments.length?(e.range((t=Array.from(i,bl)).map(FS)),a):t.slice()},a.rangeRound=function(i){return a.range(i).round(!0)},a.round=function(i){return arguments.length?(r=!!i,a):r},a.clamp=function(i){return arguments.length?(e.clamp(i),a):e.clamp()},a.unknown=function(i){return arguments.length?(n=i,a):n},a.copy=function(){return zk(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},Er.apply(a,arguments),$n(a)}function qk(){var e=[],t=[],r=[],n;function a(){var o=0,s=Math.max(1,t.length);for(r=new Array(s-1);++o0?r[s-1]:e[0],s=r?[n[r-1],t]:[n[c-1],n[c]]},o.unknown=function(l){return arguments.length&&(i=l),o},o.thresholds=function(){return n.slice()},o.copy=function(){return Hk().domain([e,t]).range(a).unknown(i)},Er.apply($n(o),arguments)}function Wk(){var e=[.5],t=[0,1],r,n=1;function a(i){return i!=null&&i<=i?t[Wo(e,i,0,n)]:r}return a.domain=function(i){return arguments.length?(e=Array.from(i),n=Math.min(e.length,t.length-1),a):e.slice()},a.range=function(i){return arguments.length?(t=Array.from(i),n=Math.min(e.length,t.length-1),a):t.slice()},a.invertExtent=function(i){var o=t.indexOf(i);return[e[o-1],e[o]]},a.unknown=function(i){return arguments.length?(r=i,a):r},a.copy=function(){return Wk().domain(e).range(t).unknown(r)},Er.apply(a,arguments)}const Oc=new Date,kc=new Date;function xt(e,t,r,n){function a(i){return e(i=arguments.length===0?new Date:new Date(+i)),i}return a.floor=i=>(e(i=new Date(+i)),i),a.ceil=i=>(e(i=new Date(i-1)),t(i,1),e(i),i),a.round=i=>{const o=a(i),s=a.ceil(i);return i-o(t(i=new Date(+i),o==null?1:Math.floor(o)),i),a.range=(i,o,s)=>{const l=[];if(i=a.ceil(i),s=s==null?1:Math.floor(s),!(i0))return l;let c;do l.push(c=new Date(+i)),t(i,s),e(i);while(cxt(o=>{if(o>=o)for(;e(o),!i(o);)o.setTime(o-1)},(o,s)=>{if(o>=o)if(s<0)for(;++s<=0;)for(;t(o,-1),!i(o););else for(;--s>=0;)for(;t(o,1),!i(o););}),r&&(a.count=(i,o)=>(Oc.setTime(+i),kc.setTime(+o),e(Oc),e(kc),Math.floor(r(Oc,kc))),a.every=i=>(i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?a.filter(n?o=>n(o)%i===0:o=>a.count(0,o)%i===0):a)),a}const Sl=xt(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Sl.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?xt(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):Sl);Sl.range;const un=1e3,yr=un*60,cn=yr*60,mn=cn*24,oy=mn*7,BS=mn*30,Rc=mn*365,Qn=xt(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*un)},(e,t)=>(t-e)/un,e=>e.getUTCSeconds());Qn.range;const sy=xt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*un)},(e,t)=>{e.setTime(+e+t*yr)},(e,t)=>(t-e)/yr,e=>e.getMinutes());sy.range;const ly=xt(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*yr)},(e,t)=>(t-e)/yr,e=>e.getUTCMinutes());ly.range;const uy=xt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*un-e.getMinutes()*yr)},(e,t)=>{e.setTime(+e+t*cn)},(e,t)=>(t-e)/cn,e=>e.getHours());uy.range;const cy=xt(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*cn)},(e,t)=>(t-e)/cn,e=>e.getUTCHours());cy.range;const Ko=xt(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*yr)/mn,e=>e.getDate()-1);Ko.range;const hu=xt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/mn,e=>e.getUTCDate()-1);hu.range;const Vk=xt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/mn,e=>Math.floor(e/mn));Vk.range;function sa(e){return xt(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*yr)/oy)}const mu=sa(0),El=sa(1),$z=sa(2),jz=sa(3),qa=sa(4),Fz=sa(5),Bz=sa(6);mu.range;El.range;$z.range;jz.range;qa.range;Fz.range;Bz.range;function la(e){return xt(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r*7)},(t,r)=>(r-t)/oy)}const bu=la(0),xl=la(1),Uz=la(2),Gz=la(3),Ha=la(4),zz=la(5),qz=la(6);bu.range;xl.range;Uz.range;Gz.range;Ha.range;zz.range;qz.range;const dy=xt(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());dy.range;const py=xt(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());py.range;const bn=xt(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());bn.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:xt(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)});bn.range;const yn=xt(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());yn.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:xt(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)});yn.range;function Yk(e,t,r,n,a,i){const o=[[Qn,1,un],[Qn,5,5*un],[Qn,15,15*un],[Qn,30,30*un],[i,1,yr],[i,5,5*yr],[i,15,15*yr],[i,30,30*yr],[a,1,cn],[a,3,3*cn],[a,6,6*cn],[a,12,12*cn],[n,1,mn],[n,2,2*mn],[r,1,oy],[t,1,BS],[t,3,3*BS],[e,1,Rc]];function s(c,d,p){const g=dS).right(o,g);if(m===o.length)return e.every(Am(c/Rc,d/Rc,p));if(m===0)return Sl.every(Math.max(Am(c,d,p),1));const[b,v]=o[g/o[m-1][2]53)return null;"w"in X||(X.w=1),"Z"in X?(fe=Cc(Ai(X.y,0,1)),he=fe.getUTCDay(),fe=he>4||he===0?xl.ceil(fe):xl(fe),fe=hu.offset(fe,(X.V-1)*7),X.y=fe.getUTCFullYear(),X.m=fe.getUTCMonth(),X.d=fe.getUTCDate()+(X.w+6)%7):(fe=Ic(Ai(X.y,0,1)),he=fe.getDay(),fe=he>4||he===0?El.ceil(fe):El(fe),fe=Ko.offset(fe,(X.V-1)*7),X.y=fe.getFullYear(),X.m=fe.getMonth(),X.d=fe.getDate()+(X.w+6)%7)}else("W"in X||"U"in X)&&("w"in X||(X.w="u"in X?X.u%7:"W"in X?1:0),he="Z"in X?Cc(Ai(X.y,0,1)).getUTCDay():Ic(Ai(X.y,0,1)).getDay(),X.m=0,X.d="W"in X?(X.w+6)%7+X.W*7-(he+5)%7:X.w+X.U*7-(he+6)%7);return"Z"in X?(X.H+=X.Z/100|0,X.M+=X.Z%100,Cc(X)):Ic(X)}}function C(ee,oe,ie,X){for(var Ee=0,fe=oe.length,he=ie.length,je,at;Ee=he)return-1;if(je=oe.charCodeAt(Ee++),je===37){if(je=oe.charAt(Ee++),at=x[je in US?oe.charAt(Ee++):je],!at||(X=at(ee,ie,X))<0)return-1}else if(je!=ie.charCodeAt(X++))return-1}return X}function I(ee,oe,ie){var X=c.exec(oe.slice(ie));return X?(ee.p=d.get(X[0].toLowerCase()),ie+X[0].length):-1}function N(ee,oe,ie){var X=m.exec(oe.slice(ie));return X?(ee.w=b.get(X[0].toLowerCase()),ie+X[0].length):-1}function D(ee,oe,ie){var X=p.exec(oe.slice(ie));return X?(ee.w=g.get(X[0].toLowerCase()),ie+X[0].length):-1}function j(ee,oe,ie){var X=O.exec(oe.slice(ie));return X?(ee.m=_.get(X[0].toLowerCase()),ie+X[0].length):-1}function q(ee,oe,ie){var X=v.exec(oe.slice(ie));return X?(ee.m=S.get(X[0].toLowerCase()),ie+X[0].length):-1}function H(ee,oe,ie){return C(ee,t,oe,ie)}function z(ee,oe,ie){return C(ee,r,oe,ie)}function W(ee,oe,ie){return C(ee,n,oe,ie)}function K(ee){return o[ee.getDay()]}function G(ee){return i[ee.getDay()]}function V(ee){return l[ee.getMonth()]}function J(ee){return s[ee.getMonth()]}function ae(ee){return a[+(ee.getHours()>=12)]}function re(ee){return 1+~~(ee.getMonth()/3)}function ue(ee){return o[ee.getUTCDay()]}function Se(ee){return i[ee.getUTCDay()]}function Q(ee){return l[ee.getUTCMonth()]}function Ie(ee){return s[ee.getUTCMonth()]}function Ue(ee){return a[+(ee.getUTCHours()>=12)]}function xe(ee){return 1+~~(ee.getUTCMonth()/3)}return{format:function(ee){var oe=E(ee+="",w);return oe.toString=function(){return ee},oe},parse:function(ee){var oe=k(ee+="",!1);return oe.toString=function(){return ee},oe},utcFormat:function(ee){var oe=E(ee+="",A);return oe.toString=function(){return ee},oe},utcParse:function(ee){var oe=k(ee+="",!0);return oe.toString=function(){return ee},oe}}}var US={"-":"",_:" ",0:"0"},Ot=/^\s*\d+/,Xz=/^%/,Zz=/[\\^$*+?|[\]().{}]/g;function Be(e,t,r){var n=e<0?"-":"",a=(n?-e:e)+"",i=a.length;return n+(i[t.toLowerCase(),r]))}function Qz(e,t,r){var n=Ot.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function eq(e,t,r){var n=Ot.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function tq(e,t,r){var n=Ot.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function rq(e,t,r){var n=Ot.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function nq(e,t,r){var n=Ot.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function GS(e,t,r){var n=Ot.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function zS(e,t,r){var n=Ot.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function aq(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function iq(e,t,r){var n=Ot.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function oq(e,t,r){var n=Ot.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function qS(e,t,r){var n=Ot.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function sq(e,t,r){var n=Ot.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function HS(e,t,r){var n=Ot.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function lq(e,t,r){var n=Ot.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function uq(e,t,r){var n=Ot.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function cq(e,t,r){var n=Ot.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function dq(e,t,r){var n=Ot.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function pq(e,t,r){var n=Xz.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function fq(e,t,r){var n=Ot.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function gq(e,t,r){var n=Ot.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function WS(e,t){return Be(e.getDate(),t,2)}function hq(e,t){return Be(e.getHours(),t,2)}function mq(e,t){return Be(e.getHours()%12||12,t,2)}function bq(e,t){return Be(1+Ko.count(bn(e),e),t,3)}function Kk(e,t){return Be(e.getMilliseconds(),t,3)}function yq(e,t){return Kk(e,t)+"000"}function vq(e,t){return Be(e.getMonth()+1,t,2)}function Sq(e,t){return Be(e.getMinutes(),t,2)}function Eq(e,t){return Be(e.getSeconds(),t,2)}function xq(e){var t=e.getDay();return t===0?7:t}function wq(e,t){return Be(mu.count(bn(e)-1,e),t,2)}function Xk(e){var t=e.getDay();return t>=4||t===0?qa(e):qa.ceil(e)}function _q(e,t){return e=Xk(e),Be(qa.count(bn(e),e)+(bn(e).getDay()===4),t,2)}function Tq(e){return e.getDay()}function Aq(e,t){return Be(El.count(bn(e)-1,e),t,2)}function Oq(e,t){return Be(e.getFullYear()%100,t,2)}function kq(e,t){return e=Xk(e),Be(e.getFullYear()%100,t,2)}function Rq(e,t){return Be(e.getFullYear()%1e4,t,4)}function Iq(e,t){var r=e.getDay();return e=r>=4||r===0?qa(e):qa.ceil(e),Be(e.getFullYear()%1e4,t,4)}function Cq(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Be(t/60|0,"0",2)+Be(t%60,"0",2)}function VS(e,t){return Be(e.getUTCDate(),t,2)}function Nq(e,t){return Be(e.getUTCHours(),t,2)}function Lq(e,t){return Be(e.getUTCHours()%12||12,t,2)}function Dq(e,t){return Be(1+hu.count(yn(e),e),t,3)}function Zk(e,t){return Be(e.getUTCMilliseconds(),t,3)}function Mq(e,t){return Zk(e,t)+"000"}function Pq(e,t){return Be(e.getUTCMonth()+1,t,2)}function $q(e,t){return Be(e.getUTCMinutes(),t,2)}function jq(e,t){return Be(e.getUTCSeconds(),t,2)}function Fq(e){var t=e.getUTCDay();return t===0?7:t}function Bq(e,t){return Be(bu.count(yn(e)-1,e),t,2)}function Jk(e){var t=e.getUTCDay();return t>=4||t===0?Ha(e):Ha.ceil(e)}function Uq(e,t){return e=Jk(e),Be(Ha.count(yn(e),e)+(yn(e).getUTCDay()===4),t,2)}function Gq(e){return e.getUTCDay()}function zq(e,t){return Be(xl.count(yn(e)-1,e),t,2)}function qq(e,t){return Be(e.getUTCFullYear()%100,t,2)}function Hq(e,t){return e=Jk(e),Be(e.getUTCFullYear()%100,t,2)}function Wq(e,t){return Be(e.getUTCFullYear()%1e4,t,4)}function Vq(e,t){var r=e.getUTCDay();return e=r>=4||r===0?Ha(e):Ha.ceil(e),Be(e.getUTCFullYear()%1e4,t,4)}function Yq(){return"+0000"}function YS(){return"%"}function KS(e){return+e}function XS(e){return Math.floor(+e/1e3)}var ya,Qk,eR;Kq({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function Kq(e){return ya=Kz(e),Qk=ya.format,ya.parse,eR=ya.utcFormat,ya.utcParse,ya}function Xq(e){return new Date(e)}function Zq(e){return e instanceof Date?+e:+new Date(+e)}function fy(e,t,r,n,a,i,o,s,l,c){var d=Qb(),p=d.invert,g=d.domain,m=c(".%L"),b=c(":%S"),v=c("%I:%M"),S=c("%I %p"),O=c("%a %d"),_=c("%b %d"),w=c("%B"),A=c("%Y");function x(E){return(l(E)t(a/(e.length-1)))},r.quantiles=function(n){return Array.from({length:n+1},(a,i)=>B6(e,i/n))},r.copy=function(){return aR(t).domain(e)},Sn.apply(r,arguments)}function vu(){var e=0,t=.5,r=1,n=1,a,i,o,s,l,c=Vt,d,p=!1,g;function m(v){return isNaN(v=+v)?g:(v=.5+((v=+d(v))-i)*(n*vt}var i8=a8,o8=lR,s8=i8,l8=Go;function u8(e){return e&&e.length?o8(e,l8,s8):void 0}var c8=u8;const Su=ft(c8);function d8(e,t){return ee.e^i.s<0?1:-1;for(n=i.d.length,a=e.d.length,t=0,r=ne.d[t]^i.s<0?1:-1;return n===a?0:n>a^i.s<0?1:-1};pe.decimalPlaces=pe.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*st;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};pe.dividedBy=pe.div=function(e){return gn(this,new this.constructor(e))};pe.dividedToIntegerBy=pe.idiv=function(e){var t=this,r=t.constructor;return et(gn(t,new r(e),0,1),r.precision)};pe.equals=pe.eq=function(e){return!this.cmp(e)};pe.exponent=function(){return bt(this)};pe.greaterThan=pe.gt=function(e){return this.cmp(e)>0};pe.greaterThanOrEqualTo=pe.gte=function(e){return this.cmp(e)>=0};pe.isInteger=pe.isint=function(){return this.e>this.d.length-2};pe.isNegative=pe.isneg=function(){return this.s<0};pe.isPositive=pe.ispos=function(){return this.s>0};pe.isZero=function(){return this.s===0};pe.lessThan=pe.lt=function(e){return this.cmp(e)<0};pe.lessThanOrEqualTo=pe.lte=function(e){return this.cmp(e)<1};pe.logarithm=pe.log=function(e){var t,r=this,n=r.constructor,a=n.precision,i=a+5;if(e===void 0)e=new n(10);else if(e=new n(e),e.s<1||e.eq(sr))throw Error(Sr+"NaN");if(r.s<1)throw Error(Sr+(r.s?"NaN":"-Infinity"));return r.eq(sr)?new n(0):(ut=!1,t=gn(po(r,i),po(e,i),i),ut=!0,et(t,a))};pe.minus=pe.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?pR(t,e):cR(t,(e.s=-e.s,e))};pe.modulo=pe.mod=function(e){var t,r=this,n=r.constructor,a=n.precision;if(e=new n(e),!e.s)throw Error(Sr+"NaN");return r.s?(ut=!1,t=gn(r,e,0,1).times(e),ut=!0,r.minus(t)):et(new n(r),a)};pe.naturalExponential=pe.exp=function(){return dR(this)};pe.naturalLogarithm=pe.ln=function(){return po(this)};pe.negated=pe.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};pe.plus=pe.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?cR(t,e):pR(t,(e.s=-e.s,e))};pe.precision=pe.sd=function(e){var t,r,n,a=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(ra+e);if(t=bt(a)+1,n=a.d.length-1,r=n*st+1,n=a.d[n],n){for(;n%10==0;n/=10)r--;for(n=a.d[0];n>=10;n/=10)r++}return e&&t>r?t:r};pe.squareRoot=pe.sqrt=function(){var e,t,r,n,a,i,o,s=this,l=s.constructor;if(s.s<1){if(!s.s)return new l(0);throw Error(Sr+"NaN")}for(e=bt(s),ut=!1,a=Math.sqrt(+s),a==0||a==1/0?(t=zr(s.d),(t.length+e)%2==0&&(t+="0"),a=Math.sqrt(t),e=si((e+1)/2)-(e<0||e%2),a==1/0?t="5e"+e:(t=a.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),n=new l(t)):n=new l(a.toString()),r=l.precision,a=o=r+3;;)if(i=n,n=i.plus(gn(s,i,o+2)).times(.5),zr(i.d).slice(0,o)===(t=zr(n.d)).slice(0,o)){if(t=t.slice(o-3,o+1),a==o&&t=="4999"){if(et(i,r+1,0),i.times(i).eq(s)){n=i;break}}else if(t!="9999")break;o+=4}return ut=!0,et(n,r)};pe.times=pe.mul=function(e){var t,r,n,a,i,o,s,l,c,d=this,p=d.constructor,g=d.d,m=(e=new p(e)).d;if(!d.s||!e.s)return new p(0);for(e.s*=d.s,r=d.e+e.e,l=g.length,c=m.length,l=0;){for(t=0,a=l+n;a>n;)s=i[a]+m[n]*g[a-n-1]+t,i[a--]=s%_t|0,t=s/_t|0;i[a]=(i[a]+t)%_t|0}for(;!i[--o];)i.pop();return t?++r:i.shift(),e.d=i,e.e=r,ut?et(e,p.precision):e};pe.toDecimalPlaces=pe.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(Vr(e,0,oi),t===void 0?t=n.rounding:Vr(t,0,8),et(r,e+bt(r)+1,t))};pe.toExponential=function(e,t){var r,n=this,a=n.constructor;return e===void 0?r=aa(n,!0):(Vr(e,0,oi),t===void 0?t=a.rounding:Vr(t,0,8),n=et(new a(n),e+1,t),r=aa(n,!0,e+1)),r};pe.toFixed=function(e,t){var r,n,a=this,i=a.constructor;return e===void 0?aa(a):(Vr(e,0,oi),t===void 0?t=i.rounding:Vr(t,0,8),n=et(new i(a),e+bt(a)+1,t),r=aa(n.abs(),!1,e+bt(n)+1),a.isneg()&&!a.isZero()?"-"+r:r)};pe.toInteger=pe.toint=function(){var e=this,t=e.constructor;return et(new t(e),bt(e)+1,t.rounding)};pe.toNumber=function(){return+this};pe.toPower=pe.pow=function(e){var t,r,n,a,i,o,s=this,l=s.constructor,c=12,d=+(e=new l(e));if(!e.s)return new l(sr);if(s=new l(s),!s.s){if(e.s<1)throw Error(Sr+"Infinity");return s}if(s.eq(sr))return s;if(n=l.precision,e.eq(sr))return et(s,n);if(t=e.e,r=e.d.length-1,o=t>=r,i=s.s,o){if((r=d<0?-d:d)<=uR){for(a=new l(sr),t=Math.ceil(n/st+4),ut=!1;r%2&&(a=a.times(s),QS(a.d,t)),r=si(r/2),r!==0;)s=s.times(s),QS(s.d,t);return ut=!0,e.s<0?new l(sr).div(a):et(a,n)}}else if(i<0)throw Error(Sr+"NaN");return i=i<0&&e.d[Math.max(t,r)]&1?-1:1,s.s=1,ut=!1,a=e.times(po(s,n+c)),ut=!0,a=dR(a),a.s=i,a};pe.toPrecision=function(e,t){var r,n,a=this,i=a.constructor;return e===void 0?(r=bt(a),n=aa(a,r<=i.toExpNeg||r>=i.toExpPos)):(Vr(e,1,oi),t===void 0?t=i.rounding:Vr(t,0,8),a=et(new i(a),e,t),r=bt(a),n=aa(a,e<=r||r<=i.toExpNeg,e)),n};pe.toSignificantDigits=pe.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(Vr(e,1,oi),t===void 0?t=n.rounding:Vr(t,0,8)),et(new n(r),e,t)};pe.toString=pe.valueOf=pe.val=pe.toJSON=pe[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=bt(e),r=e.constructor;return aa(e,t<=r.toExpNeg||t>=r.toExpPos)};function cR(e,t){var r,n,a,i,o,s,l,c,d=e.constructor,p=d.precision;if(!e.s||!t.s)return t.s||(t=new d(e)),ut?et(t,p):t;if(l=e.d,c=t.d,o=e.e,a=t.e,l=l.slice(),i=o-a,i){for(i<0?(n=l,i=-i,s=c.length):(n=c,a=o,s=l.length),o=Math.ceil(p/st),s=o>s?o+1:s+1,i>s&&(i=s,n.length=1),n.reverse();i--;)n.push(0);n.reverse()}for(s=l.length,i=c.length,s-i<0&&(i=s,n=c,c=l,l=n),r=0;i;)r=(l[--i]=l[i]+c[i]+r)/_t|0,l[i]%=_t;for(r&&(l.unshift(r),++a),s=l.length;l[--s]==0;)l.pop();return t.d=l,t.e=a,ut?et(t,p):t}function Vr(e,t,r){if(e!==~~e||er)throw Error(ra+e)}function zr(e){var t,r,n,a=e.length-1,i="",o=e[0];if(a>0){for(i+=o,t=1;to?1:-1;else for(s=l=0;sa[s]?1:-1;break}return l}function r(n,a,i){for(var o=0;i--;)n[i]-=o,o=n[i]1;)n.shift()}return function(n,a,i,o){var s,l,c,d,p,g,m,b,v,S,O,_,w,A,x,E,k,C,I=n.constructor,N=n.s==a.s?1:-1,D=n.d,j=a.d;if(!n.s)return new I(n);if(!a.s)throw Error(Sr+"Division by zero");for(l=n.e-a.e,k=j.length,x=D.length,m=new I(N),b=m.d=[],c=0;j[c]==(D[c]||0);)++c;if(j[c]>(D[c]||0)&&--l,i==null?_=i=I.precision:o?_=i+(bt(n)-bt(a))+1:_=i,_<0)return new I(0);if(_=_/st+2|0,c=0,k==1)for(d=0,j=j[0],_++;(c1&&(j=e(j,d),D=e(D,d),k=j.length,x=D.length),A=k,v=D.slice(0,k),S=v.length;S=_t/2&&++E;do d=0,s=t(j,v,k,S),s<0?(O=v[0],k!=S&&(O=O*_t+(v[1]||0)),d=O/E|0,d>1?(d>=_t&&(d=_t-1),p=e(j,d),g=p.length,S=v.length,s=t(p,v,g,S),s==1&&(d--,r(p,k16)throw Error(my+bt(e));if(!e.s)return new d(sr);for(t==null?(ut=!1,s=p):s=t,o=new d(.03125);e.abs().gte(.1);)e=e.times(o),c+=5;for(n=Math.log(Kn(2,c))/Math.LN10*2+5|0,s+=n,r=a=i=new d(sr),d.precision=s;;){if(a=et(a.times(e),s),r=r.times(++l),o=i.plus(gn(a,r,s)),zr(o.d).slice(0,s)===zr(i.d).slice(0,s)){for(;c--;)i=et(i.times(i),s);return d.precision=p,t==null?(ut=!0,et(i,p)):i}i=o}}function bt(e){for(var t=e.e*st,r=e.d[0];r>=10;r/=10)t++;return t}function Nc(e,t,r){if(t>e.LN10.sd())throw ut=!0,r&&(e.precision=r),Error(Sr+"LN10 precision limit exceeded");return et(new e(e.LN10),t)}function In(e){for(var t="";e--;)t+="0";return t}function po(e,t){var r,n,a,i,o,s,l,c,d,p=1,g=10,m=e,b=m.d,v=m.constructor,S=v.precision;if(m.s<1)throw Error(Sr+(m.s?"NaN":"-Infinity"));if(m.eq(sr))return new v(0);if(t==null?(ut=!1,c=S):c=t,m.eq(10))return t==null&&(ut=!0),Nc(v,c);if(c+=g,v.precision=c,r=zr(b),n=r.charAt(0),i=bt(m),Math.abs(i)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)m=m.times(e),r=zr(m.d),n=r.charAt(0),p++;i=bt(m),n>1?(m=new v("0."+r),i++):m=new v(n+"."+r.slice(1))}else return l=Nc(v,c+2,S).times(i+""),m=po(new v(n+"."+r.slice(1)),c-g).plus(l),v.precision=S,t==null?(ut=!0,et(m,S)):m;for(s=o=m=gn(m.minus(sr),m.plus(sr),c),d=et(m.times(m),c),a=3;;){if(o=et(o.times(d),c),l=s.plus(gn(o,new v(a),c)),zr(l.d).slice(0,c)===zr(s.d).slice(0,c))return s=s.times(2),i!==0&&(s=s.plus(Nc(v,c+2,S).times(i+""))),s=gn(s,new v(p),c),v.precision=S,t==null?(ut=!0,et(s,S)):s;s=l,a+=2}}function JS(e,t){var r,n,a;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;t.charCodeAt(n)===48;)++n;for(a=t.length;t.charCodeAt(a-1)===48;)--a;if(t=t.slice(n,a),t){if(a-=n,r=r-n-1,e.e=si(r/st),e.d=[],n=(r+1)%st,r<0&&(n+=st),nwl||e.e<-wl))throw Error(my+r)}else e.s=0,e.e=0,e.d=[0];return e}function et(e,t,r){var n,a,i,o,s,l,c,d,p=e.d;for(o=1,i=p[0];i>=10;i/=10)o++;if(n=t-o,n<0)n+=st,a=t,c=p[d=0];else{if(d=Math.ceil((n+1)/st),i=p.length,d>=i)return e;for(c=i=p[d],o=1;i>=10;i/=10)o++;n%=st,a=n-st+o}if(r!==void 0&&(i=Kn(10,o-a-1),s=c/i%10|0,l=t<0||p[d+1]!==void 0||c%i,l=r<4?(s||l)&&(r==0||r==(e.s<0?3:2)):s>5||s==5&&(r==4||l||r==6&&(n>0?a>0?c/Kn(10,o-a):0:p[d-1])%10&1||r==(e.s<0?8:7))),t<1||!p[0])return l?(i=bt(e),p.length=1,t=t-i-1,p[0]=Kn(10,(st-t%st)%st),e.e=si(-t/st)||0):(p.length=1,p[0]=e.e=e.s=0),e;if(n==0?(p.length=d,i=1,d--):(p.length=d+1,i=Kn(10,st-n),p[d]=a>0?(c/Kn(10,o-a)%Kn(10,a)|0)*i:0),l)for(;;)if(d==0){(p[0]+=i)==_t&&(p[0]=1,++e.e);break}else{if(p[d]+=i,p[d]!=_t)break;p[d--]=0,i=1}for(n=p.length;p[--n]===0;)p.pop();if(ut&&(e.e>wl||e.e<-wl))throw Error(my+bt(e));return e}function pR(e,t){var r,n,a,i,o,s,l,c,d,p,g=e.constructor,m=g.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new g(e),ut?et(t,m):t;if(l=e.d,p=t.d,n=t.e,c=e.e,l=l.slice(),o=c-n,o){for(d=o<0,d?(r=l,o=-o,s=p.length):(r=p,n=c,s=l.length),a=Math.max(Math.ceil(m/st),s)+2,o>a&&(o=a,r.length=1),r.reverse(),a=o;a--;)r.push(0);r.reverse()}else{for(a=l.length,s=p.length,d=a0;--a)l[s++]=0;for(a=p.length;a>o;){if(l[--a]0?i=i.charAt(0)+"."+i.slice(1)+In(n):o>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(a<0?"e":"e+")+a):a<0?(i="0."+In(-a-1)+i,r&&(n=r-o)>0&&(i+=In(n))):a>=o?(i+=In(a+1-o),r&&(n=r-a-1)>0&&(i=i+"."+In(n))):((n=a+1)0&&(a+1===o&&(i+="."),i+=In(n))),e.s<0?"-"+i:i}function QS(e,t){if(e.length>t)return e.length=t,!0}function fR(e){var t,r,n;function a(i){var o=this;if(!(o instanceof a))return new a(i);if(o.constructor=a,i instanceof a){o.s=i.s,o.e=i.e,o.d=(i=i.d)?i.slice():i;return}if(typeof i=="number"){if(i*0!==0)throw Error(ra+i);if(i>0)o.s=1;else if(i<0)i=-i,o.s=-1;else{o.s=0,o.e=0,o.d=[0];return}if(i===~~i&&i<1e7){o.e=0,o.d=[i];return}return JS(o,i.toString())}else if(typeof i!="string")throw Error(ra+i);if(i.charCodeAt(0)===45?(i=i.slice(1),o.s=-1):o.s=1,O8.test(i))JS(o,i);else throw Error(ra+i)}if(a.prototype=pe,a.ROUND_UP=0,a.ROUND_DOWN=1,a.ROUND_CEIL=2,a.ROUND_FLOOR=3,a.ROUND_HALF_UP=4,a.ROUND_HALF_DOWN=5,a.ROUND_HALF_EVEN=6,a.ROUND_HALF_CEIL=7,a.ROUND_HALF_FLOOR=8,a.clone=fR,a.config=a.set=k8,e===void 0&&(e={}),e)for(n=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t=a[t+1]&&n<=a[t+2])this[r]=n;else throw Error(ra+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(ra+r+": "+n);return this}var by=fR(A8);sr=new by(1);const Xe=by;function R8(e){return L8(e)||N8(e)||C8(e)||I8()}function I8(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function w6(e,t){if(e){if(typeof e=="string")return dS(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return dS(e,t)}}function dS(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&arguments[0]!==void 0?arguments[0]:[];return z.reduce(function(W,K){var G=K.word,V=K.width,J=W[W.length-1];if(J&&(a==null||i||J.width+V+nK.width?W:K})};if(!d)return m;for(var v="…",S=function(z){var W=p.slice(0,z),K=kk({breakAll:c,style:l,children:W+v}).wordsWithComputedWidth,G=g(K),V=G.length>o||b(G).width>Number(a);return[V,G]},O=0,_=p.length-1,w=0,A;O<=_&&w<=p.length-1;){var x=Math.floor((O+_)/2),E=x-1,k=S(E),C=cS(k,2),I=C[0],N=C[1],D=S(x),j=cS(D,1),q=j[0];if(!I&&!q&&(O=x+1),I&&q&&(_=x-1),!I&&q){A=N;break}w++}return A||m},pS=function(t){var r=Ne(t)?[]:t.toString().split(Ok);return[{words:r}]},O6=function(t){var r=t.width,n=t.scaleToFit,a=t.children,i=t.style,o=t.breakAll,s=t.maxLines;if((r||n)&&!fn.isSsr){var l,c,d=kk({breakAll:o,children:a,style:i});if(d){var p=d.wordsWithComputedWidth,g=d.spaceWidth;l=p,c=g}else return pS(a);return A6({breakAll:o,children:a,maxLines:s,style:i},l,c,r,n)}return pS(a)},fS="#808080",pl=function(t){var r=t.x,n=r===void 0?0:r,a=t.y,i=a===void 0?0:a,o=t.lineHeight,s=o===void 0?"1em":o,l=t.capHeight,c=l===void 0?"0.71em":l,d=t.scaleToFit,p=d===void 0?!1:d,g=t.textAnchor,m=g===void 0?"start":g,b=t.verticalAnchor,v=b===void 0?"end":b,S=t.fill,O=S===void 0?fS:S,_=uS(t,v6),w=M.useMemo(function(){return O6({breakAll:_.breakAll,children:_.children,maxLines:_.maxLines,scaleToFit:p,style:_.style,width:_.width})},[_.breakAll,_.children,_.maxLines,p,_.style,_.width]),A=_.dx,x=_.dy,E=_.angle,k=_.className,C=_.breakAll,I=uS(_,S6);if(!Et(n)||!Et(i))return null;var N=n+(se(A)?A:0),D=i+(se(x)?x:0),j;switch(v){case"start":j=_c("calc(".concat(c,")"));break;case"middle":j=_c("calc(".concat((w.length-1)/2," * -").concat(s," + (").concat(c," / 2))"));break;default:j=_c("calc(".concat(w.length-1," * -").concat(s,")"));break}var q=[];if(p){var H=w[0].width,z=_.width;q.push("scale(".concat((se(z)?z/H:1)/H,")"))}return E&&q.push("rotate(".concat(E,", ").concat(N,", ").concat(D,")")),q.length&&(I.transform=q.join(" ")),U.createElement("text",wm({},Me(I,!0),{x:N,y:D,className:Je("recharts-text",k),textAnchor:m,fill:O.includes("url")?fS:O}),w.map(function(W,K){var G=W.words.join(C?"":" ");return U.createElement("tspan",{x:N,dy:K===0?j:s,key:G},G)}))};function Dn(e,t){return e==null||t==null?NaN:et?1:e>=t?0:NaN}function k6(e,t){return e==null||t==null?NaN:te?1:t>=e?0:NaN}function Yb(e){let t,r,n;e.length!==2?(t=Dn,r=(s,l)=>Dn(e(s),l),n=(s,l)=>e(s)-l):(t=e===Dn||e===k6?e:R6,r=e,n=e);function a(s,l,c=0,d=s.length){if(c>>1;r(s[p],l)<0?c=p+1:d=p}while(c>>1;r(s[p],l)<=0?c=p+1:d=p}while(cc&&n(s[p-1],l)>-n(s[p],l)?p-1:p}return{left:a,center:o,right:i}}function R6(){return 0}function Rk(e){return e===null?NaN:+e}function*I6(e,t){if(t===void 0)for(let r of e)r!=null&&(r=+r)>=r&&(yield r);else{let r=-1;for(let n of e)(n=t(n,++r,e))!=null&&(n=+n)>=n&&(yield n)}}const C6=Yb(Dn),N6=C6.right;Yb(Rk).center;const Wo=N6;class gS extends Map{constructor(t,r=M6){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(const[n,a]of t)this.set(n,a)}get(t){return super.get(hS(this,t))}has(t){return super.has(hS(this,t))}set(t,r){return super.set(L6(this,t),r)}delete(t){return super.delete(D6(this,t))}}function hS({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function L6({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function D6({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function M6(e){return e!==null&&typeof e=="object"?e.valueOf():e}function P6(e=Dn){if(e===Dn)return Ik;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,r)=>{const n=e(t,r);return n||n===0?n:(e(r,r)===0)-(e(t,t)===0)}}function Ik(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(et?1:0)}const $6=Math.sqrt(50),j6=Math.sqrt(10),F6=Math.sqrt(2);function fl(e,t,r){const n=(t-e)/Math.max(0,r),a=Math.floor(Math.log10(n)),i=n/Math.pow(10,a),o=i>=$6?10:i>=j6?5:i>=F6?2:1;let s,l,c;return a<0?(c=Math.pow(10,-a)/o,s=Math.round(e*c),l=Math.round(t*c),s/ct&&--l,c=-c):(c=Math.pow(10,a)*o,s=Math.round(e/c),l=Math.round(t/c),s*ct&&--l),l0))return[];if(e===t)return[e];const n=t=a))return[];const s=i-a+1,l=new Array(s);if(n)if(o<0)for(let c=0;c=n)&&(r=n);else{let n=-1;for(let a of e)(a=t(a,++n,e))!=null&&(r=a)&&(r=a)}return r}function bS(e,t){let r;if(t===void 0)for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);else{let n=-1;for(let a of e)(a=t(a,++n,e))!=null&&(r>a||r===void 0&&a>=a)&&(r=a)}return r}function Ck(e,t,r=0,n=1/0,a){if(t=Math.floor(t),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(e.length-1,n)),!(r<=t&&t<=n))return e;for(a=a===void 0?Ik:P6(a);n>r;){if(n-r>600){const l=n-r+1,c=t-r+1,d=Math.log(l),p=.5*Math.exp(2*d/3),g=.5*Math.sqrt(d*p*(l-p)/l)*(c-l/2<0?-1:1),m=Math.max(r,Math.floor(t-c*p/l+g)),b=Math.min(n,Math.floor(t+(l-c)*p/l+g));Ck(e,t,m,b,a)}const i=e[t];let o=r,s=n;for(Ti(e,r,t),a(e[n],i)>0&&Ti(e,r,n);o0;)--s}a(e[r],i)===0?Ti(e,r,s):(++s,Ti(e,s,n)),s<=t&&(r=s+1),t<=s&&(n=s-1)}return e}function Ti(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function B6(e,t,r){if(e=Float64Array.from(I6(e,r)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return bS(e);if(t>=1)return mS(e);var n,a=(n-1)*t,i=Math.floor(a),o=mS(Ck(e,i).subarray(0,i+1)),s=bS(e.subarray(i+1));return o+(s-o)*(a-i)}}function U6(e,t,r=Rk){if(!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return+r(e[0],0,e);if(t>=1)return+r(e[n-1],n-1,e);var n,a=(n-1)*t,i=Math.floor(a),o=+r(e[i],i,e),s=+r(e[i+1],i+1,e);return o+(s-o)*(a-i)}}function G6(e,t,r){e=+e,t=+t,r=(a=arguments.length)<2?(t=e,e=0,1):a<3?1:+r;for(var n=-1,a=Math.max(0,Math.ceil((t-e)/r))|0,i=new Array(a);++n>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?Ns(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?Ns(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=q6.exec(e))?new Qt(t[1],t[2],t[3],1):(t=H6.exec(e))?new Qt(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=W6.exec(e))?Ns(t[1],t[2],t[3],t[4]):(t=V6.exec(e))?Ns(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Y6.exec(e))?_S(t[1],t[2]/100,t[3]/100,1):(t=K6.exec(e))?_S(t[1],t[2]/100,t[3]/100,t[4]):yS.hasOwnProperty(e)?ES(yS[e]):e==="transparent"?new Qt(NaN,NaN,NaN,0):null}function ES(e){return new Qt(e>>16&255,e>>8&255,e&255,1)}function Ns(e,t,r,n){return n<=0&&(e=t=r=NaN),new Qt(e,t,r,n)}function J6(e){return e instanceof Vo||(e=uo(e)),e?(e=e.rgb(),new Qt(e.r,e.g,e.b,e.opacity)):new Qt}function km(e,t,r,n){return arguments.length===1?J6(e):new Qt(e,t,r,n??1)}function Qt(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}Xb(Qt,km,Lk(Vo,{brighter(e){return e=e==null?gl:Math.pow(gl,e),new Qt(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?so:Math.pow(so,e),new Qt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Qt(ta(this.r),ta(this.g),ta(this.b),hl(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:xS,formatHex:xS,formatHex8:Q6,formatRgb:wS,toString:wS}));function xS(){return`#${Jn(this.r)}${Jn(this.g)}${Jn(this.b)}`}function Q6(){return`#${Jn(this.r)}${Jn(this.g)}${Jn(this.b)}${Jn((isNaN(this.opacity)?1:this.opacity)*255)}`}function wS(){const e=hl(this.opacity);return`${e===1?"rgb(":"rgba("}${ta(this.r)}, ${ta(this.g)}, ${ta(this.b)}${e===1?")":`, ${e})`}`}function hl(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function ta(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Jn(e){return e=ta(e),(e<16?"0":"")+e.toString(16)}function _S(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Nr(e,t,r,n)}function Dk(e){if(e instanceof Nr)return new Nr(e.h,e.s,e.l,e.opacity);if(e instanceof Vo||(e=uo(e)),!e)return new Nr;if(e instanceof Nr)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,a=Math.min(t,r,n),i=Math.max(t,r,n),o=NaN,s=i-a,l=(i+a)/2;return s?(t===i?o=(r-n)/s+(r0&&l<1?0:o,new Nr(o,s,l,e.opacity)}function ez(e,t,r,n){return arguments.length===1?Dk(e):new Nr(e,t,r,n??1)}function Nr(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}Xb(Nr,ez,Lk(Vo,{brighter(e){return e=e==null?gl:Math.pow(gl,e),new Nr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?so:Math.pow(so,e),new Nr(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,a=2*r-n;return new Qt(Tc(e>=240?e-240:e+120,a,n),Tc(e,a,n),Tc(e<120?e+240:e-120,a,n),this.opacity)},clamp(){return new Nr(TS(this.h),Ls(this.s),Ls(this.l),hl(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=hl(this.opacity);return`${e===1?"hsl(":"hsla("}${TS(this.h)}, ${Ls(this.s)*100}%, ${Ls(this.l)*100}%${e===1?")":`, ${e})`}`}}));function TS(e){return e=(e||0)%360,e<0?e+360:e}function Ls(e){return Math.max(0,Math.min(1,e||0))}function Tc(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const Zb=e=>()=>e;function tz(e,t){return function(r){return e+r*t}}function rz(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function nz(e){return(e=+e)==1?Mk:function(t,r){return r-t?rz(t,r,e):Zb(isNaN(t)?r:t)}}function Mk(e,t){var r=t-e;return r?tz(e,r):Zb(isNaN(e)?t:e)}const AS=function e(t){var r=nz(t);function n(a,i){var o=r((a=km(a)).r,(i=km(i)).r),s=r(a.g,i.g),l=r(a.b,i.b),c=Mk(a.opacity,i.opacity);return function(d){return a.r=o(d),a.g=s(d),a.b=l(d),a.opacity=c(d),a+""}}return n.gamma=e,n}(1);function az(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),a;return function(i){for(a=0;ar&&(i=t.slice(r,i),s[o]?s[o]+=i:s[++o]=i),(n=n[0])===(a=a[0])?s[o]?s[o]+=a:s[++o]=a:(s[++o]=null,l.push({i:o,x:ml(n,a)})),r=Ac.lastIndex;return rt&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function hz(e,t,r){var n=e[0],a=e[1],i=t[0],o=t[1];return a2?mz:hz,l=c=null,p}function p(g){return g==null||isNaN(g=+g)?i:(l||(l=s(e.map(n),t,r)))(n(o(g)))}return p.invert=function(g){return o(a((c||(c=s(t,e.map(n),ml)))(g)))},p.domain=function(g){return arguments.length?(e=Array.from(g,bl),d()):e.slice()},p.range=function(g){return arguments.length?(t=Array.from(g),d()):t.slice()},p.rangeRound=function(g){return t=Array.from(g),r=Jb,d()},p.clamp=function(g){return arguments.length?(o=g?!0:Vt,d()):o!==Vt},p.interpolate=function(g){return arguments.length?(r=g,d()):r},p.unknown=function(g){return arguments.length?(i=g,p):i},function(g,m){return n=g,a=m,d()}}function Qb(){return gu()(Vt,Vt)}function bz(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function yl(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function za(e){return e=yl(Math.abs(e)),e?e[1]:NaN}function yz(e,t){return function(r,n){for(var a=r.length,i=[],o=0,s=e[0],l=0;a>0&&s>0&&(l+s+1>n&&(s=Math.max(1,n-l)),i.push(r.substring(a-=s,a+s)),!((l+=s+1)>n));)s=e[o=(o+1)%e.length];return i.reverse().join(t)}}function vz(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var Sz=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function co(e){if(!(t=Sz.exec(e)))throw new Error("invalid format: "+e);var t;return new ey({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}co.prototype=ey.prototype;function ey(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}ey.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function Ez(e){e:for(var t=e.length,r=1,n=-1,a;r0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(a+1):e}var Pk;function xz(e,t){var r=yl(e,t);if(!r)return e+"";var n=r[0],a=r[1],i=a-(Pk=Math.max(-8,Math.min(8,Math.floor(a/3)))*3)+1,o=n.length;return i===o?n:i>o?n+new Array(i-o+1).join("0"):i>0?n.slice(0,i)+"."+n.slice(i):"0."+new Array(1-i).join("0")+yl(e,Math.max(0,t+i-1))[0]}function kS(e,t){var r=yl(e,t);if(!r)return e+"";var n=r[0],a=r[1];return a<0?"0."+new Array(-a).join("0")+n:n.length>a+1?n.slice(0,a+1)+"."+n.slice(a+1):n+new Array(a-n.length+2).join("0")}const RS={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:bz,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>kS(e*100,t),r:kS,s:xz,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function IS(e){return e}var CS=Array.prototype.map,NS=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function wz(e){var t=e.grouping===void 0||e.thousands===void 0?IS:yz(CS.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",a=e.decimal===void 0?".":e.decimal+"",i=e.numerals===void 0?IS:vz(CS.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"−":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function c(p){p=co(p);var g=p.fill,m=p.align,b=p.sign,v=p.symbol,S=p.zero,O=p.width,_=p.comma,w=p.precision,A=p.trim,x=p.type;x==="n"?(_=!0,x="g"):RS[x]||(w===void 0&&(w=12),A=!0,x="g"),(S||g==="0"&&m==="=")&&(S=!0,g="0",m="=");var E=v==="$"?r:v==="#"&&/[boxX]/.test(x)?"0"+x.toLowerCase():"",k=v==="$"?n:/[%p]/.test(x)?o:"",C=RS[x],I=/[defgprs%]/.test(x);w=w===void 0?6:/[gprs]/.test(x)?Math.max(1,Math.min(21,w)):Math.max(0,Math.min(20,w));function N(D){var j=E,q=k,H,z,W;if(x==="c")q=C(D)+q,D="";else{D=+D;var K=D<0||1/D<0;if(D=isNaN(D)?l:C(Math.abs(D),w),A&&(D=Ez(D)),K&&+D==0&&b!=="+"&&(K=!1),j=(K?b==="("?b:s:b==="-"||b==="("?"":b)+j,q=(x==="s"?NS[8+Pk/3]:"")+q+(K&&b==="("?")":""),I){for(H=-1,z=D.length;++HW||W>57){q=(W===46?a+D.slice(H+1):D.slice(H))+q,D=D.slice(0,H);break}}}_&&!S&&(D=t(D,1/0));var G=j.length+D.length+q.length,V=G>1)+j+D+q+V.slice(G);break;default:D=V+j+D+q;break}return i(D)}return N.toString=function(){return p+""},N}function d(p,g){var m=c((p=co(p),p.type="f",p)),b=Math.max(-8,Math.min(8,Math.floor(za(g)/3)))*3,v=Math.pow(10,-b),S=NS[8+b/3];return function(O){return m(v*O)+S}}return{format:c,formatPrefix:d}}var Ds,ty,$k;_z({thousands:",",grouping:[3],currency:["$",""]});function _z(e){return Ds=wz(e),ty=Ds.format,$k=Ds.formatPrefix,Ds}function Tz(e){return Math.max(0,-za(Math.abs(e)))}function Az(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(za(t)/3)))*3-za(Math.abs(e)))}function Oz(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,za(t)-za(e))+1}function jk(e,t,r,n){var a=Am(e,t,r),i;switch(n=co(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(i=Az(a,o))&&(n.precision=i),$k(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(i=Oz(a,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=i-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(i=Tz(a))&&(n.precision=i-(n.type==="%")*2);break}}return ty(n)}function $n(e){var t=e.domain;return e.ticks=function(r){var n=t();return _m(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var a=t();return jk(a[0],a[a.length-1],r??10,n)},e.nice=function(r){r==null&&(r=10);var n=t(),a=0,i=n.length-1,o=n[a],s=n[i],l,c,d=10;for(s0;){if(c=Tm(o,s,r),c===l)return n[a]=o,n[i]=s,t(n);if(c>0)o=Math.floor(o/c)*c,s=Math.ceil(s/c)*c;else if(c<0)o=Math.ceil(o*c)/c,s=Math.floor(s*c)/c;else break;l=c}return e},e}function vl(){var e=Qb();return e.copy=function(){return Yo(e,vl())},Er.apply(e,arguments),$n(e)}function Fk(e){var t;function r(n){return n==null||isNaN(n=+n)?t:n}return r.invert=r,r.domain=r.range=function(n){return arguments.length?(e=Array.from(n,bl),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return Fk(e).unknown(t)},e=arguments.length?Array.from(e,bl):[0,1],$n(r)}function Bk(e,t){e=e.slice();var r=0,n=e.length-1,a=e[r],i=e[n],o;return iMath.pow(e,t)}function Nz(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function MS(e){return(t,r)=>-e(-t,r)}function ry(e){const t=e(LS,DS),r=t.domain;let n=10,a,i;function o(){return a=Nz(n),i=Cz(n),r()[0]<0?(a=MS(a),i=MS(i),e(kz,Rz)):e(LS,DS),t}return t.base=function(s){return arguments.length?(n=+s,o()):n},t.domain=function(s){return arguments.length?(r(s),o()):r()},t.ticks=s=>{const l=r();let c=l[0],d=l[l.length-1];const p=d0){for(;g<=m;++g)for(b=1;bd)break;O.push(v)}}else for(;g<=m;++g)for(b=n-1;b>=1;--b)if(v=g>0?b/i(-g):b*i(g),!(vd)break;O.push(v)}O.length*2{if(s==null&&(s=10),l==null&&(l=n===10?"s":","),typeof l!="function"&&(!(n%1)&&(l=co(l)).precision==null&&(l.trim=!0),l=ty(l)),s===1/0)return l;const c=Math.max(1,n*s/t.ticks().length);return d=>{let p=d/i(Math.round(a(d)));return p*nr(Bk(r(),{floor:s=>i(Math.floor(a(s))),ceil:s=>i(Math.ceil(a(s)))})),t}function Uk(){const e=ry(gu()).domain([1,10]);return e.copy=()=>Yo(e,Uk()).base(e.base()),Er.apply(e,arguments),e}function PS(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function $S(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function ny(e){var t=1,r=e(PS(t),$S(t));return r.constant=function(n){return arguments.length?e(PS(t=+n),$S(t)):t},$n(r)}function Gk(){var e=ny(gu());return e.copy=function(){return Yo(e,Gk()).constant(e.constant())},Er.apply(e,arguments)}function jS(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function Lz(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function Dz(e){return e<0?-e*e:e*e}function ay(e){var t=e(Vt,Vt),r=1;function n(){return r===1?e(Vt,Vt):r===.5?e(Lz,Dz):e(jS(r),jS(1/r))}return t.exponent=function(a){return arguments.length?(r=+a,n()):r},$n(t)}function iy(){var e=ay(gu());return e.copy=function(){return Yo(e,iy()).exponent(e.exponent())},Er.apply(e,arguments),e}function Mz(){return iy.apply(null,arguments).exponent(.5)}function FS(e){return Math.sign(e)*e*e}function Pz(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function zk(){var e=Qb(),t=[0,1],r=!1,n;function a(i){var o=Pz(e(i));return isNaN(o)?n:r?Math.round(o):o}return a.invert=function(i){return e.invert(FS(i))},a.domain=function(i){return arguments.length?(e.domain(i),a):e.domain()},a.range=function(i){return arguments.length?(e.range((t=Array.from(i,bl)).map(FS)),a):t.slice()},a.rangeRound=function(i){return a.range(i).round(!0)},a.round=function(i){return arguments.length?(r=!!i,a):r},a.clamp=function(i){return arguments.length?(e.clamp(i),a):e.clamp()},a.unknown=function(i){return arguments.length?(n=i,a):n},a.copy=function(){return zk(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},Er.apply(a,arguments),$n(a)}function qk(){var e=[],t=[],r=[],n;function a(){var o=0,s=Math.max(1,t.length);for(r=new Array(s-1);++o0?r[s-1]:e[0],s=r?[n[r-1],t]:[n[c-1],n[c]]},o.unknown=function(l){return arguments.length&&(i=l),o},o.thresholds=function(){return n.slice()},o.copy=function(){return Hk().domain([e,t]).range(a).unknown(i)},Er.apply($n(o),arguments)}function Wk(){var e=[.5],t=[0,1],r,n=1;function a(i){return i!=null&&i<=i?t[Wo(e,i,0,n)]:r}return a.domain=function(i){return arguments.length?(e=Array.from(i),n=Math.min(e.length,t.length-1),a):e.slice()},a.range=function(i){return arguments.length?(t=Array.from(i),n=Math.min(e.length,t.length-1),a):t.slice()},a.invertExtent=function(i){var o=t.indexOf(i);return[e[o-1],e[o]]},a.unknown=function(i){return arguments.length?(r=i,a):r},a.copy=function(){return Wk().domain(e).range(t).unknown(r)},Er.apply(a,arguments)}const Oc=new Date,kc=new Date;function xt(e,t,r,n){function a(i){return e(i=arguments.length===0?new Date:new Date(+i)),i}return a.floor=i=>(e(i=new Date(+i)),i),a.ceil=i=>(e(i=new Date(i-1)),t(i,1),e(i),i),a.round=i=>{const o=a(i),s=a.ceil(i);return i-o(t(i=new Date(+i),o==null?1:Math.floor(o)),i),a.range=(i,o,s)=>{const l=[];if(i=a.ceil(i),s=s==null?1:Math.floor(s),!(i0))return l;let c;do l.push(c=new Date(+i)),t(i,s),e(i);while(cxt(o=>{if(o>=o)for(;e(o),!i(o);)o.setTime(o-1)},(o,s)=>{if(o>=o)if(s<0)for(;++s<=0;)for(;t(o,-1),!i(o););else for(;--s>=0;)for(;t(o,1),!i(o););}),r&&(a.count=(i,o)=>(Oc.setTime(+i),kc.setTime(+o),e(Oc),e(kc),Math.floor(r(Oc,kc))),a.every=i=>(i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?a.filter(n?o=>n(o)%i===0:o=>a.count(0,o)%i===0):a)),a}const Sl=xt(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Sl.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?xt(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):Sl);Sl.range;const un=1e3,yr=un*60,cn=yr*60,mn=cn*24,oy=mn*7,BS=mn*30,Rc=mn*365,Qn=xt(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*un)},(e,t)=>(t-e)/un,e=>e.getUTCSeconds());Qn.range;const sy=xt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*un)},(e,t)=>{e.setTime(+e+t*yr)},(e,t)=>(t-e)/yr,e=>e.getMinutes());sy.range;const ly=xt(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*yr)},(e,t)=>(t-e)/yr,e=>e.getUTCMinutes());ly.range;const uy=xt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*un-e.getMinutes()*yr)},(e,t)=>{e.setTime(+e+t*cn)},(e,t)=>(t-e)/cn,e=>e.getHours());uy.range;const cy=xt(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*cn)},(e,t)=>(t-e)/cn,e=>e.getUTCHours());cy.range;const Ko=xt(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*yr)/mn,e=>e.getDate()-1);Ko.range;const hu=xt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/mn,e=>e.getUTCDate()-1);hu.range;const Vk=xt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/mn,e=>Math.floor(e/mn));Vk.range;function sa(e){return xt(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*yr)/oy)}const mu=sa(0),El=sa(1),$z=sa(2),jz=sa(3),qa=sa(4),Fz=sa(5),Bz=sa(6);mu.range;El.range;$z.range;jz.range;qa.range;Fz.range;Bz.range;function la(e){return xt(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r*7)},(t,r)=>(r-t)/oy)}const bu=la(0),xl=la(1),Uz=la(2),Gz=la(3),Ha=la(4),zz=la(5),qz=la(6);bu.range;xl.range;Uz.range;Gz.range;Ha.range;zz.range;qz.range;const dy=xt(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());dy.range;const py=xt(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());py.range;const bn=xt(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());bn.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:xt(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)});bn.range;const yn=xt(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());yn.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:xt(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)});yn.range;function Yk(e,t,r,n,a,i){const o=[[Qn,1,un],[Qn,5,5*un],[Qn,15,15*un],[Qn,30,30*un],[i,1,yr],[i,5,5*yr],[i,15,15*yr],[i,30,30*yr],[a,1,cn],[a,3,3*cn],[a,6,6*cn],[a,12,12*cn],[n,1,mn],[n,2,2*mn],[r,1,oy],[t,1,BS],[t,3,3*BS],[e,1,Rc]];function s(c,d,p){const g=dS).right(o,g);if(m===o.length)return e.every(Am(c/Rc,d/Rc,p));if(m===0)return Sl.every(Math.max(Am(c,d,p),1));const[b,v]=o[g/o[m-1][2]53)return null;"w"in X||(X.w=1),"Z"in X?(fe=Cc(Ai(X.y,0,1)),he=fe.getUTCDay(),fe=he>4||he===0?xl.ceil(fe):xl(fe),fe=hu.offset(fe,(X.V-1)*7),X.y=fe.getUTCFullYear(),X.m=fe.getUTCMonth(),X.d=fe.getUTCDate()+(X.w+6)%7):(fe=Ic(Ai(X.y,0,1)),he=fe.getDay(),fe=he>4||he===0?El.ceil(fe):El(fe),fe=Ko.offset(fe,(X.V-1)*7),X.y=fe.getFullYear(),X.m=fe.getMonth(),X.d=fe.getDate()+(X.w+6)%7)}else("W"in X||"U"in X)&&("w"in X||(X.w="u"in X?X.u%7:"W"in X?1:0),he="Z"in X?Cc(Ai(X.y,0,1)).getUTCDay():Ic(Ai(X.y,0,1)).getDay(),X.m=0,X.d="W"in X?(X.w+6)%7+X.W*7-(he+5)%7:X.w+X.U*7-(he+6)%7);return"Z"in X?(X.H+=X.Z/100|0,X.M+=X.Z%100,Cc(X)):Ic(X)}}function C(ee,oe,ie,X){for(var Ee=0,fe=oe.length,he=ie.length,je,at;Ee=he)return-1;if(je=oe.charCodeAt(Ee++),je===37){if(je=oe.charAt(Ee++),at=x[je in US?oe.charAt(Ee++):je],!at||(X=at(ee,ie,X))<0)return-1}else if(je!=ie.charCodeAt(X++))return-1}return X}function I(ee,oe,ie){var X=c.exec(oe.slice(ie));return X?(ee.p=d.get(X[0].toLowerCase()),ie+X[0].length):-1}function N(ee,oe,ie){var X=m.exec(oe.slice(ie));return X?(ee.w=b.get(X[0].toLowerCase()),ie+X[0].length):-1}function D(ee,oe,ie){var X=p.exec(oe.slice(ie));return X?(ee.w=g.get(X[0].toLowerCase()),ie+X[0].length):-1}function j(ee,oe,ie){var X=O.exec(oe.slice(ie));return X?(ee.m=_.get(X[0].toLowerCase()),ie+X[0].length):-1}function q(ee,oe,ie){var X=v.exec(oe.slice(ie));return X?(ee.m=S.get(X[0].toLowerCase()),ie+X[0].length):-1}function H(ee,oe,ie){return C(ee,t,oe,ie)}function z(ee,oe,ie){return C(ee,r,oe,ie)}function W(ee,oe,ie){return C(ee,n,oe,ie)}function K(ee){return o[ee.getDay()]}function G(ee){return i[ee.getDay()]}function V(ee){return l[ee.getMonth()]}function J(ee){return s[ee.getMonth()]}function ae(ee){return a[+(ee.getHours()>=12)]}function re(ee){return 1+~~(ee.getMonth()/3)}function ue(ee){return o[ee.getUTCDay()]}function Se(ee){return i[ee.getUTCDay()]}function Q(ee){return l[ee.getUTCMonth()]}function Ie(ee){return s[ee.getUTCMonth()]}function Ue(ee){return a[+(ee.getUTCHours()>=12)]}function xe(ee){return 1+~~(ee.getUTCMonth()/3)}return{format:function(ee){var oe=E(ee+="",w);return oe.toString=function(){return ee},oe},parse:function(ee){var oe=k(ee+="",!1);return oe.toString=function(){return ee},oe},utcFormat:function(ee){var oe=E(ee+="",A);return oe.toString=function(){return ee},oe},utcParse:function(ee){var oe=k(ee+="",!0);return oe.toString=function(){return ee},oe}}}var US={"-":"",_:" ",0:"0"},Ot=/^\s*\d+/,Xz=/^%/,Zz=/[\\^$*+?|[\]().{}]/g;function Be(e,t,r){var n=e<0?"-":"",a=(n?-e:e)+"",i=a.length;return n+(i[t.toLowerCase(),r]))}function Qz(e,t,r){var n=Ot.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function eq(e,t,r){var n=Ot.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function tq(e,t,r){var n=Ot.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function rq(e,t,r){var n=Ot.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function nq(e,t,r){var n=Ot.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function GS(e,t,r){var n=Ot.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function zS(e,t,r){var n=Ot.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function aq(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function iq(e,t,r){var n=Ot.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function oq(e,t,r){var n=Ot.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function qS(e,t,r){var n=Ot.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function sq(e,t,r){var n=Ot.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function HS(e,t,r){var n=Ot.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function lq(e,t,r){var n=Ot.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function uq(e,t,r){var n=Ot.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function cq(e,t,r){var n=Ot.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function dq(e,t,r){var n=Ot.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function pq(e,t,r){var n=Xz.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function fq(e,t,r){var n=Ot.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function gq(e,t,r){var n=Ot.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function WS(e,t){return Be(e.getDate(),t,2)}function hq(e,t){return Be(e.getHours(),t,2)}function mq(e,t){return Be(e.getHours()%12||12,t,2)}function bq(e,t){return Be(1+Ko.count(bn(e),e),t,3)}function Kk(e,t){return Be(e.getMilliseconds(),t,3)}function yq(e,t){return Kk(e,t)+"000"}function vq(e,t){return Be(e.getMonth()+1,t,2)}function Sq(e,t){return Be(e.getMinutes(),t,2)}function Eq(e,t){return Be(e.getSeconds(),t,2)}function xq(e){var t=e.getDay();return t===0?7:t}function wq(e,t){return Be(mu.count(bn(e)-1,e),t,2)}function Xk(e){var t=e.getDay();return t>=4||t===0?qa(e):qa.ceil(e)}function _q(e,t){return e=Xk(e),Be(qa.count(bn(e),e)+(bn(e).getDay()===4),t,2)}function Tq(e){return e.getDay()}function Aq(e,t){return Be(El.count(bn(e)-1,e),t,2)}function Oq(e,t){return Be(e.getFullYear()%100,t,2)}function kq(e,t){return e=Xk(e),Be(e.getFullYear()%100,t,2)}function Rq(e,t){return Be(e.getFullYear()%1e4,t,4)}function Iq(e,t){var r=e.getDay();return e=r>=4||r===0?qa(e):qa.ceil(e),Be(e.getFullYear()%1e4,t,4)}function Cq(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Be(t/60|0,"0",2)+Be(t%60,"0",2)}function VS(e,t){return Be(e.getUTCDate(),t,2)}function Nq(e,t){return Be(e.getUTCHours(),t,2)}function Lq(e,t){return Be(e.getUTCHours()%12||12,t,2)}function Dq(e,t){return Be(1+hu.count(yn(e),e),t,3)}function Zk(e,t){return Be(e.getUTCMilliseconds(),t,3)}function Mq(e,t){return Zk(e,t)+"000"}function Pq(e,t){return Be(e.getUTCMonth()+1,t,2)}function $q(e,t){return Be(e.getUTCMinutes(),t,2)}function jq(e,t){return Be(e.getUTCSeconds(),t,2)}function Fq(e){var t=e.getUTCDay();return t===0?7:t}function Bq(e,t){return Be(bu.count(yn(e)-1,e),t,2)}function Jk(e){var t=e.getUTCDay();return t>=4||t===0?Ha(e):Ha.ceil(e)}function Uq(e,t){return e=Jk(e),Be(Ha.count(yn(e),e)+(yn(e).getUTCDay()===4),t,2)}function Gq(e){return e.getUTCDay()}function zq(e,t){return Be(xl.count(yn(e)-1,e),t,2)}function qq(e,t){return Be(e.getUTCFullYear()%100,t,2)}function Hq(e,t){return e=Jk(e),Be(e.getUTCFullYear()%100,t,2)}function Wq(e,t){return Be(e.getUTCFullYear()%1e4,t,4)}function Vq(e,t){var r=e.getUTCDay();return e=r>=4||r===0?Ha(e):Ha.ceil(e),Be(e.getUTCFullYear()%1e4,t,4)}function Yq(){return"+0000"}function YS(){return"%"}function KS(e){return+e}function XS(e){return Math.floor(+e/1e3)}var ya,Qk,eR;Kq({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function Kq(e){return ya=Kz(e),Qk=ya.format,ya.parse,eR=ya.utcFormat,ya.utcParse,ya}function Xq(e){return new Date(e)}function Zq(e){return e instanceof Date?+e:+new Date(+e)}function fy(e,t,r,n,a,i,o,s,l,c){var d=Qb(),p=d.invert,g=d.domain,m=c(".%L"),b=c(":%S"),v=c("%I:%M"),S=c("%I %p"),O=c("%a %d"),_=c("%b %d"),w=c("%B"),A=c("%Y");function x(E){return(l(E)t(a/(e.length-1)))},r.quantiles=function(n){return Array.from({length:n+1},(a,i)=>B6(e,i/n))},r.copy=function(){return aR(t).domain(e)},Sn.apply(r,arguments)}function vu(){var e=0,t=.5,r=1,n=1,a,i,o,s,l,c=Vt,d,p=!1,g;function m(v){return isNaN(v=+v)?g:(v=.5+((v=+d(v))-i)*(n*vt}var i8=a8,o8=lR,s8=i8,l8=Go;function u8(e){return e&&e.length?o8(e,l8,s8):void 0}var c8=u8;const Su=ft(c8);function d8(e,t){return ee.e^i.s<0?1:-1;for(n=i.d.length,a=e.d.length,t=0,r=ne.d[t]^i.s<0?1:-1;return n===a?0:n>a^i.s<0?1:-1};pe.decimalPlaces=pe.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*st;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};pe.dividedBy=pe.div=function(e){return gn(this,new this.constructor(e))};pe.dividedToIntegerBy=pe.idiv=function(e){var t=this,r=t.constructor;return et(gn(t,new r(e),0,1),r.precision)};pe.equals=pe.eq=function(e){return!this.cmp(e)};pe.exponent=function(){return bt(this)};pe.greaterThan=pe.gt=function(e){return this.cmp(e)>0};pe.greaterThanOrEqualTo=pe.gte=function(e){return this.cmp(e)>=0};pe.isInteger=pe.isint=function(){return this.e>this.d.length-2};pe.isNegative=pe.isneg=function(){return this.s<0};pe.isPositive=pe.ispos=function(){return this.s>0};pe.isZero=function(){return this.s===0};pe.lessThan=pe.lt=function(e){return this.cmp(e)<0};pe.lessThanOrEqualTo=pe.lte=function(e){return this.cmp(e)<1};pe.logarithm=pe.log=function(e){var t,r=this,n=r.constructor,a=n.precision,i=a+5;if(e===void 0)e=new n(10);else if(e=new n(e),e.s<1||e.eq(sr))throw Error(Sr+"NaN");if(r.s<1)throw Error(Sr+(r.s?"NaN":"-Infinity"));return r.eq(sr)?new n(0):(ut=!1,t=gn(po(r,i),po(e,i),i),ut=!0,et(t,a))};pe.minus=pe.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?pR(t,e):cR(t,(e.s=-e.s,e))};pe.modulo=pe.mod=function(e){var t,r=this,n=r.constructor,a=n.precision;if(e=new n(e),!e.s)throw Error(Sr+"NaN");return r.s?(ut=!1,t=gn(r,e,0,1).times(e),ut=!0,r.minus(t)):et(new n(r),a)};pe.naturalExponential=pe.exp=function(){return dR(this)};pe.naturalLogarithm=pe.ln=function(){return po(this)};pe.negated=pe.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};pe.plus=pe.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?cR(t,e):pR(t,(e.s=-e.s,e))};pe.precision=pe.sd=function(e){var t,r,n,a=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(ra+e);if(t=bt(a)+1,n=a.d.length-1,r=n*st+1,n=a.d[n],n){for(;n%10==0;n/=10)r--;for(n=a.d[0];n>=10;n/=10)r++}return e&&t>r?t:r};pe.squareRoot=pe.sqrt=function(){var e,t,r,n,a,i,o,s=this,l=s.constructor;if(s.s<1){if(!s.s)return new l(0);throw Error(Sr+"NaN")}for(e=bt(s),ut=!1,a=Math.sqrt(+s),a==0||a==1/0?(t=zr(s.d),(t.length+e)%2==0&&(t+="0"),a=Math.sqrt(t),e=si((e+1)/2)-(e<0||e%2),a==1/0?t="5e"+e:(t=a.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),n=new l(t)):n=new l(a.toString()),r=l.precision,a=o=r+3;;)if(i=n,n=i.plus(gn(s,i,o+2)).times(.5),zr(i.d).slice(0,o)===(t=zr(n.d)).slice(0,o)){if(t=t.slice(o-3,o+1),a==o&&t=="4999"){if(et(i,r+1,0),i.times(i).eq(s)){n=i;break}}else if(t!="9999")break;o+=4}return ut=!0,et(n,r)};pe.times=pe.mul=function(e){var t,r,n,a,i,o,s,l,c,d=this,p=d.constructor,g=d.d,m=(e=new p(e)).d;if(!d.s||!e.s)return new p(0);for(e.s*=d.s,r=d.e+e.e,l=g.length,c=m.length,l=0;){for(t=0,a=l+n;a>n;)s=i[a]+m[n]*g[a-n-1]+t,i[a--]=s%_t|0,t=s/_t|0;i[a]=(i[a]+t)%_t|0}for(;!i[--o];)i.pop();return t?++r:i.shift(),e.d=i,e.e=r,ut?et(e,p.precision):e};pe.toDecimalPlaces=pe.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(Vr(e,0,oi),t===void 0?t=n.rounding:Vr(t,0,8),et(r,e+bt(r)+1,t))};pe.toExponential=function(e,t){var r,n=this,a=n.constructor;return e===void 0?r=aa(n,!0):(Vr(e,0,oi),t===void 0?t=a.rounding:Vr(t,0,8),n=et(new a(n),e+1,t),r=aa(n,!0,e+1)),r};pe.toFixed=function(e,t){var r,n,a=this,i=a.constructor;return e===void 0?aa(a):(Vr(e,0,oi),t===void 0?t=i.rounding:Vr(t,0,8),n=et(new i(a),e+bt(a)+1,t),r=aa(n.abs(),!1,e+bt(n)+1),a.isneg()&&!a.isZero()?"-"+r:r)};pe.toInteger=pe.toint=function(){var e=this,t=e.constructor;return et(new t(e),bt(e)+1,t.rounding)};pe.toNumber=function(){return+this};pe.toPower=pe.pow=function(e){var t,r,n,a,i,o,s=this,l=s.constructor,c=12,d=+(e=new l(e));if(!e.s)return new l(sr);if(s=new l(s),!s.s){if(e.s<1)throw Error(Sr+"Infinity");return s}if(s.eq(sr))return s;if(n=l.precision,e.eq(sr))return et(s,n);if(t=e.e,r=e.d.length-1,o=t>=r,i=s.s,o){if((r=d<0?-d:d)<=uR){for(a=new l(sr),t=Math.ceil(n/st+4),ut=!1;r%2&&(a=a.times(s),QS(a.d,t)),r=si(r/2),r!==0;)s=s.times(s),QS(s.d,t);return ut=!0,e.s<0?new l(sr).div(a):et(a,n)}}else if(i<0)throw Error(Sr+"NaN");return i=i<0&&e.d[Math.max(t,r)]&1?-1:1,s.s=1,ut=!1,a=e.times(po(s,n+c)),ut=!0,a=dR(a),a.s=i,a};pe.toPrecision=function(e,t){var r,n,a=this,i=a.constructor;return e===void 0?(r=bt(a),n=aa(a,r<=i.toExpNeg||r>=i.toExpPos)):(Vr(e,1,oi),t===void 0?t=i.rounding:Vr(t,0,8),a=et(new i(a),e,t),r=bt(a),n=aa(a,e<=r||r<=i.toExpNeg,e)),n};pe.toSignificantDigits=pe.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(Vr(e,1,oi),t===void 0?t=n.rounding:Vr(t,0,8)),et(new n(r),e,t)};pe.toString=pe.valueOf=pe.val=pe.toJSON=pe[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=bt(e),r=e.constructor;return aa(e,t<=r.toExpNeg||t>=r.toExpPos)};function cR(e,t){var r,n,a,i,o,s,l,c,d=e.constructor,p=d.precision;if(!e.s||!t.s)return t.s||(t=new d(e)),ut?et(t,p):t;if(l=e.d,c=t.d,o=e.e,a=t.e,l=l.slice(),i=o-a,i){for(i<0?(n=l,i=-i,s=c.length):(n=c,a=o,s=l.length),o=Math.ceil(p/st),s=o>s?o+1:s+1,i>s&&(i=s,n.length=1),n.reverse();i--;)n.push(0);n.reverse()}for(s=l.length,i=c.length,s-i<0&&(i=s,n=c,c=l,l=n),r=0;i;)r=(l[--i]=l[i]+c[i]+r)/_t|0,l[i]%=_t;for(r&&(l.unshift(r),++a),s=l.length;l[--s]==0;)l.pop();return t.d=l,t.e=a,ut?et(t,p):t}function Vr(e,t,r){if(e!==~~e||er)throw Error(ra+e)}function zr(e){var t,r,n,a=e.length-1,i="",o=e[0];if(a>0){for(i+=o,t=1;to?1:-1;else for(s=l=0;sa[s]?1:-1;break}return l}function r(n,a,i){for(var o=0;i--;)n[i]-=o,o=n[i]1;)n.shift()}return function(n,a,i,o){var s,l,c,d,p,g,m,b,v,S,O,_,w,A,x,E,k,C,I=n.constructor,N=n.s==a.s?1:-1,D=n.d,j=a.d;if(!n.s)return new I(n);if(!a.s)throw Error(Sr+"Division by zero");for(l=n.e-a.e,k=j.length,x=D.length,m=new I(N),b=m.d=[],c=0;j[c]==(D[c]||0);)++c;if(j[c]>(D[c]||0)&&--l,i==null?_=i=I.precision:o?_=i+(bt(n)-bt(a))+1:_=i,_<0)return new I(0);if(_=_/st+2|0,c=0,k==1)for(d=0,j=j[0],_++;(c1&&(j=e(j,d),D=e(D,d),k=j.length,x=D.length),A=k,v=D.slice(0,k),S=v.length;S=_t/2&&++E;do d=0,s=t(j,v,k,S),s<0?(O=v[0],k!=S&&(O=O*_t+(v[1]||0)),d=O/E|0,d>1?(d>=_t&&(d=_t-1),p=e(j,d),g=p.length,S=v.length,s=t(p,v,g,S),s==1&&(d--,r(p,k16)throw Error(my+bt(e));if(!e.s)return new d(sr);for(t==null?(ut=!1,s=p):s=t,o=new d(.03125);e.abs().gte(.1);)e=e.times(o),c+=5;for(n=Math.log(Kn(2,c))/Math.LN10*2+5|0,s+=n,r=a=i=new d(sr),d.precision=s;;){if(a=et(a.times(e),s),r=r.times(++l),o=i.plus(gn(a,r,s)),zr(o.d).slice(0,s)===zr(i.d).slice(0,s)){for(;c--;)i=et(i.times(i),s);return d.precision=p,t==null?(ut=!0,et(i,p)):i}i=o}}function bt(e){for(var t=e.e*st,r=e.d[0];r>=10;r/=10)t++;return t}function Nc(e,t,r){if(t>e.LN10.sd())throw ut=!0,r&&(e.precision=r),Error(Sr+"LN10 precision limit exceeded");return et(new e(e.LN10),t)}function In(e){for(var t="";e--;)t+="0";return t}function po(e,t){var r,n,a,i,o,s,l,c,d,p=1,g=10,m=e,b=m.d,v=m.constructor,S=v.precision;if(m.s<1)throw Error(Sr+(m.s?"NaN":"-Infinity"));if(m.eq(sr))return new v(0);if(t==null?(ut=!1,c=S):c=t,m.eq(10))return t==null&&(ut=!0),Nc(v,c);if(c+=g,v.precision=c,r=zr(b),n=r.charAt(0),i=bt(m),Math.abs(i)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)m=m.times(e),r=zr(m.d),n=r.charAt(0),p++;i=bt(m),n>1?(m=new v("0."+r),i++):m=new v(n+"."+r.slice(1))}else return l=Nc(v,c+2,S).times(i+""),m=po(new v(n+"."+r.slice(1)),c-g).plus(l),v.precision=S,t==null?(ut=!0,et(m,S)):m;for(s=o=m=gn(m.minus(sr),m.plus(sr),c),d=et(m.times(m),c),a=3;;){if(o=et(o.times(d),c),l=s.plus(gn(o,new v(a),c)),zr(l.d).slice(0,c)===zr(s.d).slice(0,c))return s=s.times(2),i!==0&&(s=s.plus(Nc(v,c+2,S).times(i+""))),s=gn(s,new v(p),c),v.precision=S,t==null?(ut=!0,et(s,S)):s;s=l,a+=2}}function JS(e,t){var r,n,a;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;t.charCodeAt(n)===48;)++n;for(a=t.length;t.charCodeAt(a-1)===48;)--a;if(t=t.slice(n,a),t){if(a-=n,r=r-n-1,e.e=si(r/st),e.d=[],n=(r+1)%st,r<0&&(n+=st),nwl||e.e<-wl))throw Error(my+r)}else e.s=0,e.e=0,e.d=[0];return e}function et(e,t,r){var n,a,i,o,s,l,c,d,p=e.d;for(o=1,i=p[0];i>=10;i/=10)o++;if(n=t-o,n<0)n+=st,a=t,c=p[d=0];else{if(d=Math.ceil((n+1)/st),i=p.length,d>=i)return e;for(c=i=p[d],o=1;i>=10;i/=10)o++;n%=st,a=n-st+o}if(r!==void 0&&(i=Kn(10,o-a-1),s=c/i%10|0,l=t<0||p[d+1]!==void 0||c%i,l=r<4?(s||l)&&(r==0||r==(e.s<0?3:2)):s>5||s==5&&(r==4||l||r==6&&(n>0?a>0?c/Kn(10,o-a):0:p[d-1])%10&1||r==(e.s<0?8:7))),t<1||!p[0])return l?(i=bt(e),p.length=1,t=t-i-1,p[0]=Kn(10,(st-t%st)%st),e.e=si(-t/st)||0):(p.length=1,p[0]=e.e=e.s=0),e;if(n==0?(p.length=d,i=1,d--):(p.length=d+1,i=Kn(10,st-n),p[d]=a>0?(c/Kn(10,o-a)%Kn(10,a)|0)*i:0),l)for(;;)if(d==0){(p[0]+=i)==_t&&(p[0]=1,++e.e);break}else{if(p[d]+=i,p[d]!=_t)break;p[d--]=0,i=1}for(n=p.length;p[--n]===0;)p.pop();if(ut&&(e.e>wl||e.e<-wl))throw Error(my+bt(e));return e}function pR(e,t){var r,n,a,i,o,s,l,c,d,p,g=e.constructor,m=g.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new g(e),ut?et(t,m):t;if(l=e.d,p=t.d,n=t.e,c=e.e,l=l.slice(),o=c-n,o){for(d=o<0,d?(r=l,o=-o,s=p.length):(r=p,n=c,s=l.length),a=Math.max(Math.ceil(m/st),s)+2,o>a&&(o=a,r.length=1),r.reverse(),a=o;a--;)r.push(0);r.reverse()}else{for(a=l.length,s=p.length,d=a0;--a)l[s++]=0;for(a=p.length;a>o;){if(l[--a]0?i=i.charAt(0)+"."+i.slice(1)+In(n):o>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(a<0?"e":"e+")+a):a<0?(i="0."+In(-a-1)+i,r&&(n=r-o)>0&&(i+=In(n))):a>=o?(i+=In(a+1-o),r&&(n=r-a-1)>0&&(i=i+"."+In(n))):((n=a+1)0&&(a+1===o&&(i+="."),i+=In(n))),e.s<0?"-"+i:i}function QS(e,t){if(e.length>t)return e.length=t,!0}function fR(e){var t,r,n;function a(i){var o=this;if(!(o instanceof a))return new a(i);if(o.constructor=a,i instanceof a){o.s=i.s,o.e=i.e,o.d=(i=i.d)?i.slice():i;return}if(typeof i=="number"){if(i*0!==0)throw Error(ra+i);if(i>0)o.s=1;else if(i<0)i=-i,o.s=-1;else{o.s=0,o.e=0,o.d=[0];return}if(i===~~i&&i<1e7){o.e=0,o.d=[i];return}return JS(o,i.toString())}else if(typeof i!="string")throw Error(ra+i);if(i.charCodeAt(0)===45?(i=i.slice(1),o.s=-1):o.s=1,O8.test(i))JS(o,i);else throw Error(ra+i)}if(a.prototype=pe,a.ROUND_UP=0,a.ROUND_DOWN=1,a.ROUND_CEIL=2,a.ROUND_FLOOR=3,a.ROUND_HALF_UP=4,a.ROUND_HALF_DOWN=5,a.ROUND_HALF_EVEN=6,a.ROUND_HALF_CEIL=7,a.ROUND_HALF_FLOOR=8,a.clone=fR,a.config=a.set=k8,e===void 0&&(e={}),e)for(n=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t=a[t+1]&&n<=a[t+2])this[r]=n;else throw Error(ra+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(ra+r+": "+n);return this}var by=fR(A8);sr=new by(1);const Xe=by;function R8(e){return L8(e)||N8(e)||C8(e)||I8()}function I8(){throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function C8(e,t){if(e){if(typeof e=="string")return Cm(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Cm(e,t)}}function N8(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function L8(e){if(Array.isArray(e))return Cm(e)}function Cm(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=t?r.apply(void 0,a):e(t-o,eE(function(){for(var s=arguments.length,l=new Array(s),c=0;ce.length)&&(t=e.length);for(var r=0,n=new Array(t);r"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,a=!1,i=void 0;try{for(var o=e[Symbol.iterator](),s;!(n=(s=o.next()).done)&&(r.push(s.value),!(t&&r.length===t));n=!0);}catch(l){a=!0,i=l}finally{try{!n&&o.return!=null&&o.return()}finally{if(a)throw i}}return r}}function Y8(e){if(Array.isArray(e))return e}function yR(e){var t=fo(e,2),r=t[0],n=t[1],a=r,i=n;return r>n&&(a=n,i=r),[a,i]}function vR(e,t,r){if(e.lte(0))return new Xe(0);var n=_u.getDigitCount(e.toNumber()),a=new Xe(10).pow(n),i=e.div(a),o=n!==1?.05:.1,s=new Xe(Math.ceil(i.div(o).toNumber())).add(r).mul(o),l=s.mul(a);return t?l:new Xe(Math.ceil(l))}function K8(e,t,r){var n=1,a=new Xe(e);if(!a.isint()&&r){var i=Math.abs(e);i<1?(n=new Xe(10).pow(_u.getDigitCount(e)-1),a=new Xe(Math.floor(a.div(n).toNumber())).mul(n)):i>1&&(a=new Xe(Math.floor(e)))}else e===0?a=new Xe(Math.floor((t-1)/2)):r||(a=new Xe(Math.floor(e)));var o=Math.floor((t-1)/2),s=$8(P8(function(l){return a.add(new Xe(l-o).mul(n)).toNumber()}),Nm);return s(0,t)}function SR(e,t,r,n){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(r-1)))return{step:new Xe(0),tickMin:new Xe(0),tickMax:new Xe(0)};var i=vR(new Xe(t).sub(e).div(r-1),n,a),o;e<=0&&t>=0?o=new Xe(0):(o=new Xe(e).add(t).div(2),o=o.sub(new Xe(o).mod(i)));var s=Math.ceil(o.sub(e).div(i).toNumber()),l=Math.ceil(new Xe(t).sub(o).div(i).toNumber()),c=s+l+1;return c>r?SR(e,t,r,n,a+1):(c0?l+(r-c):l,s=t>0?s:s+(r-c)),{step:i,tickMin:o.sub(new Xe(s).mul(i)),tickMax:o.add(new Xe(l).mul(i))})}function X8(e){var t=fo(e,2),r=t[0],n=t[1],a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Math.max(a,2),s=yR([r,n]),l=fo(s,2),c=l[0],d=l[1];if(c===-1/0||d===1/0){var p=d===1/0?[c].concat(Dm(Nm(0,a-1).map(function(){return 1/0}))):[].concat(Dm(Nm(0,a-1).map(function(){return-1/0})),[d]);return r>n?Lm(p):p}if(c===d)return K8(c,a,i);var g=SR(c,d,o,i),m=g.step,b=g.tickMin,v=g.tickMax,S=_u.rangeStep(b,v.add(new Xe(.1).mul(m)),m);return r>n?Lm(S):S}function Z8(e,t){var r=fo(e,2),n=r[0],a=r[1],i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=yR([n,a]),s=fo(o,2),l=s[0],c=s[1];if(l===-1/0||c===1/0)return[n,a];if(l===c)return[l];var d=Math.max(t,2),p=vR(new Xe(c).sub(l).div(d-1),i,0),g=[].concat(Dm(_u.rangeStep(new Xe(l),new Xe(c).sub(new Xe(.99).mul(p)),p)),[c]);return n>a?Lm(g):g}var J8=mR(X8),Q8=mR(Z8),eH=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function _l(){return _l=Object.assign?Object.assign.bind():function(e){for(var t=1;t0&&Math.abs(l)>0){var c=Math.min(i,i+s),d=Math.max(i,i+s),p=Math.min(o,o+l),g=Math.max(o,o+l);return n>=c&&n<=d&&a>=p&&a<=g}return!1},W9={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},vy=function(t){var r=AE(AE({},W9),t),n=M.useRef(),a=M.useState(-1),i=$9(a,2),o=i[0],s=i[1];M.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var A=n.current.getTotalLength();A&&s(A)}catch{}},[]);var l=r.x,c=r.y,d=r.width,p=r.height,g=r.radius,m=r.className,b=r.animationEasing,v=r.animationDuration,S=r.animationBegin,O=r.isAnimationActive,_=r.isUpdateAnimationActive;if(l!==+l||c!==+c||d!==+d||p!==+p||d===0||p===0)return null;var w=Je("recharts-rectangle",m);return _?U.createElement(hn,{canBegin:o>0,from:{width:d,height:p,x:l,y:c},to:{width:d,height:p,x:l,y:c},duration:v,animationEasing:b,isActive:_},function(A){var x=A.width,E=A.height,k=A.x,C=A.y;return U.createElement(hn,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:S,duration:v,isActive:O,easing:b},U.createElement("path",kl({},Me(r,!0),{className:w,d:OE(k,C,x,E,g),ref:n})))}):U.createElement("path",kl({},Me(r,!0),{className:w,d:OE(l,c,d,p,g)}))};function zm(){return zm=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Q9(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i=0)&&(r[a]=e[a]);return r}var eW=function(t,r,n,a,i,o){return"M".concat(t,",").concat(i,"v").concat(a,"M").concat(o,",").concat(r,"h").concat(n)},tW=function(t){var r=t.x,n=r===void 0?0:r,a=t.y,i=a===void 0?0:a,o=t.top,s=o===void 0?0:o,l=t.left,c=l===void 0?0:l,d=t.width,p=d===void 0?0:d,g=t.height,m=g===void 0?0:g,b=t.className,v=J9(t,V9),S=Y9({x:n,y:i,top:s,left:c,width:p,height:m},v);return!se(n)||!se(i)||!se(p)||!se(m)||!se(s)||!se(c)?null:U.createElement("path",qm({},Me(S,!0),{className:Je("recharts-cross",b),d:eW(n,i,p,m,s,c)}))},rW=aO,nW=iO,aW="[object Boolean]";function iW(e){return e===!0||e===!1||nW(e)&&rW(e)==aW}var oW=iW;const sW=ft(oW);function _o(e){"@babel/helpers - typeof";return _o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_o(e)}function Rl(){return Rl=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r0,from:{upperWidth:0,lowerWidth:0,height:g,x:l,y:c},to:{upperWidth:d,lowerWidth:p,height:g,x:l,y:c},duration:v,animationEasing:b,isActive:O},function(w){var A=w.upperWidth,x=w.lowerWidth,E=w.height,k=w.x,C=w.y;return U.createElement(hn,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:S,duration:v,easing:b},U.createElement("path",Rl({},Me(r,!0),{className:_,d:NE(k,C,A,x,E),ref:n})))}):U.createElement("g",null,U.createElement("path",Rl({},Me(r,!0),{className:_,d:NE(l,c,d,p,g)})))},yW=["option","shapeType","propTransformer","activeClassName","isActive"];function To(e){"@babel/helpers - typeof";return To=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},To(e)}function vW(e,t){if(e==null)return{};var r=SW(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function SW(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i=0)&&(r[a]=e[a]);return r}function LE(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Il(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Ll(e){return Ll=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ll(e)}function or(e,t,r){return t=NR(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function NR(e){var t=aV(e,"string");return Wa(t)==="symbol"?t:String(t)}function aV(e,t){if(Wa(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Wa(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var iV=function(t){var r=t.data,n=t.startIndex,a=t.endIndex,i=t.x,o=t.width,s=t.travellerWidth;if(!r||!r.length)return{};var l=r.length,c=zi().domain(Cl(0,l)).range([i,i+o-s]),d=c.domain().map(function(p){return c(p)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:c(n),endX:c(a),scale:c,scaleValues:d}},BE=function(t){return t.changedTouches&&!!t.changedTouches.length},ko=function(e){eV(r,e);var t=tV(r);function r(n){var a;return JW(this,r),a=t.call(this,n),or(Br(a),"handleDrag",function(i){a.leaveTimer&&(clearTimeout(a.leaveTimer),a.leaveTimer=null),a.state.isTravellerMoving?a.handleTravellerMove(i):a.state.isSlideMoving&&a.handleSlideDrag(i)}),or(Br(a),"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&a.handleDrag(i.changedTouches[0])}),or(Br(a),"handleDragEnd",function(){a.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var i=a.props,o=i.endIndex,s=i.onDragEnd,l=i.startIndex;s==null||s({endIndex:o,startIndex:l})}),a.detachDragEndListener()}),or(Br(a),"handleLeaveWrapper",function(){(a.state.isTravellerMoving||a.state.isSlideMoving)&&(a.leaveTimer=window.setTimeout(a.handleDragEnd,a.props.leaveTimeOut))}),or(Br(a),"handleEnterSlideOrTraveller",function(){a.setState({isTextActive:!0})}),or(Br(a),"handleLeaveSlideOrTraveller",function(){a.setState({isTextActive:!1})}),or(Br(a),"handleSlideDragStart",function(i){var o=BE(i)?i.changedTouches[0]:i;a.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:o.pageX}),a.attachDragEndListener()}),a.travellerDragStartHandlers={startX:a.handleTravellerDragStart.bind(Br(a),"startX"),endX:a.handleTravellerDragStart.bind(Br(a),"endX")},a.state={},a}return QW(r,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(a){var i=a.startX,o=a.endX,s=this.state.scaleValues,l=this.props,c=l.gap,d=l.data,p=d.length-1,g=Math.min(i,o),m=Math.max(i,o),b=r.getIndexInRange(s,g),v=r.getIndexInRange(s,m);return{startIndex:b-b%c,endIndex:v===p?p:v-v%c}}},{key:"getTextOfTick",value:function(a){var i=this.props,o=i.data,s=i.tickFormatter,l=i.dataKey,c=Yt(o[a],l,a);return Ce(s)?s(c,a):c}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(a){var i=this.state,o=i.slideMoveStartX,s=i.startX,l=i.endX,c=this.props,d=c.x,p=c.width,g=c.travellerWidth,m=c.startIndex,b=c.endIndex,v=c.onChange,S=a.pageX-o;S>0?S=Math.min(S,d+p-g-l,d+p-g-s):S<0&&(S=Math.max(S,d-s,d-l));var O=this.getIndex({startX:s+S,endX:l+S});(O.startIndex!==m||O.endIndex!==b)&&v&&v(O),this.setState({startX:s+S,endX:l+S,slideMoveStartX:a.pageX})}},{key:"handleTravellerDragStart",value:function(a,i){var o=BE(i)?i.changedTouches[0]:i;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:a,brushMoveStartX:o.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(a){var i,o=this.state,s=o.brushMoveStartX,l=o.movingTravellerId,c=o.endX,d=o.startX,p=this.state[l],g=this.props,m=g.x,b=g.width,v=g.travellerWidth,S=g.onChange,O=g.gap,_=g.data,w={startX:this.state.startX,endX:this.state.endX},A=a.pageX-s;A>0?A=Math.min(A,m+b-v-p):A<0&&(A=Math.max(A,m-p)),w[l]=p+A;var x=this.getIndex(w),E=x.startIndex,k=x.endIndex,C=function(){var N=_.length-1;return l==="startX"&&(c>d?E%O===0:k%O===0)||cd?k%O===0:E%O===0)||c>d&&k===N};this.setState((i={},or(i,l,p+A),or(i,"brushMoveStartX",a.pageX),i),function(){S&&C()&&S(x)})}},{key:"handleTravellerMoveKeyboard",value:function(a,i){var o=this,s=this.state,l=s.scaleValues,c=s.startX,d=s.endX,p=this.state[i],g=l.indexOf(p);if(g!==-1){var m=g+a;if(!(m===-1||m>=l.length)){var b=l[m];i==="startX"&&b>=d||i==="endX"&&b<=c||this.setState(or({},i,b),function(){o.props.onChange(o.getIndex({startX:o.state.startX,endX:o.state.endX}))})}}}},{key:"renderBackground",value:function(){var a=this.props,i=a.x,o=a.y,s=a.width,l=a.height,c=a.fill,d=a.stroke;return U.createElement("rect",{stroke:d,fill:c,x:i,y:o,width:s,height:l})}},{key:"renderPanorama",value:function(){var a=this.props,i=a.x,o=a.y,s=a.width,l=a.height,c=a.data,d=a.children,p=a.padding,g=M.Children.only(d);return g?U.cloneElement(g,{x:i,y:o,width:s,height:l,margin:p,compact:!0,data:c}):null}},{key:"renderTravellerLayer",value:function(a,i){var o=this,s=this.props,l=s.y,c=s.travellerWidth,d=s.height,p=s.traveller,g=s.ariaLabel,m=s.data,b=s.startIndex,v=s.endIndex,S=Math.max(a,this.props.x),O=Pc(Pc({},Me(this.props)),{},{x:S,y:l,width:c,height:d}),_=g||"Min value: ".concat(m[b].name,", Max value: ").concat(m[v].name);return U.createElement(pt,{tabIndex:0,role:"slider","aria-label":_,"aria-valuenow":a,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[i],onTouchStart:this.travellerDragStartHandlers[i],onKeyDown:function(A){["ArrowLeft","ArrowRight"].includes(A.key)&&(A.preventDefault(),A.stopPropagation(),o.handleTravellerMoveKeyboard(A.key==="ArrowRight"?1:-1,i))},onFocus:function(){o.setState({isTravellerFocused:!0})},onBlur:function(){o.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},r.renderTraveller(p,O))}},{key:"renderSlide",value:function(a,i){var o=this.props,s=o.y,l=o.height,c=o.stroke,d=o.travellerWidth,p=Math.min(a,i)+d,g=Math.max(Math.abs(i-a)-d,0);return U.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:c,fillOpacity:.2,x:p,y:s,width:g,height:l})}},{key:"renderText",value:function(){var a=this.props,i=a.startIndex,o=a.endIndex,s=a.y,l=a.height,c=a.travellerWidth,d=a.stroke,p=this.state,g=p.startX,m=p.endX,b=5,v={pointerEvents:"none",fill:d};return U.createElement(pt,{className:"recharts-brush-texts"},U.createElement(pl,Nl({textAnchor:"end",verticalAnchor:"middle",x:Math.min(g,m)-b,y:s+l/2},v),this.getTextOfTick(i)),U.createElement(pl,Nl({textAnchor:"start",verticalAnchor:"middle",x:Math.max(g,m)+c+b,y:s+l/2},v),this.getTextOfTick(o)))}},{key:"render",value:function(){var a=this.props,i=a.data,o=a.className,s=a.children,l=a.x,c=a.y,d=a.width,p=a.height,g=a.alwaysShowText,m=this.state,b=m.startX,v=m.endX,S=m.isTextActive,O=m.isSlideMoving,_=m.isTravellerMoving,w=m.isTravellerFocused;if(!i||!i.length||!se(l)||!se(c)||!se(d)||!se(p)||d<=0||p<=0)return null;var A=Je("recharts-brush",o),x=U.Children.count(s)===1,E=ZW("userSelect","none");return U.createElement(pt,{className:A,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:E},this.renderBackground(),x&&this.renderPanorama(),this.renderSlide(b,v),this.renderTravellerLayer(b,"startX"),this.renderTravellerLayer(v,"endX"),(S||O||_||w||g)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(a){var i=a.x,o=a.y,s=a.width,l=a.height,c=a.stroke,d=Math.floor(o+l/2)-1;return U.createElement(U.Fragment,null,U.createElement("rect",{x:i,y:o,width:s,height:l,fill:c,stroke:"none"}),U.createElement("line",{x1:i+1,y1:d,x2:i+s-1,y2:d,fill:"none",stroke:"#fff"}),U.createElement("line",{x1:i+1,y1:d+2,x2:i+s-1,y2:d+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(a,i){var o;return U.isValidElement(a)?o=U.cloneElement(a,i):Ce(a)?o=a(i):o=r.renderDefaultTraveller(i),o}},{key:"getDerivedStateFromProps",value:function(a,i){var o=a.data,s=a.width,l=a.x,c=a.travellerWidth,d=a.updateId,p=a.startIndex,g=a.endIndex;if(o!==i.prevData||d!==i.prevUpdateId)return Pc({prevData:o,prevTravellerWidth:c,prevUpdateId:d,prevX:l,prevWidth:s},o&&o.length?iV({data:o,width:s,x:l,travellerWidth:c,startIndex:p,endIndex:g}):{scale:null,scaleValues:null});if(i.scale&&(s!==i.prevWidth||l!==i.prevX||c!==i.prevTravellerWidth)){i.scale.range([l,l+s-c]);var m=i.scale.domain().map(function(b){return i.scale(b)});return{prevData:o,prevTravellerWidth:c,prevUpdateId:d,prevX:l,prevWidth:s,startX:i.scale(a.startIndex),endX:i.scale(a.endIndex),scaleValues:m}}return null}},{key:"getIndexInRange",value:function(a,i){for(var o=a.length,s=0,l=o-1;l-s>1;){var c=Math.floor((s+l)/2);a[c]>i?l=c:s=c}return i>=a[l]?l:s}}]),r}(M.PureComponent);or(ko,"displayName","Brush");or(ko,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var oV=SO;function sV(e,t){var r;return oV(e,function(n,a,i){return r=t(n,a,i),!r}),!!r}var lV=sV,uV=sP,cV=ia,dV=lV,pV=Hl,fV=fu;function gV(e,t,r){var n=pV(e)?uV:dV;return r&&fV(e,t,r)&&(t=void 0),n(e,cV(t))}var hV=gV;const mV=ft(hV);var Wr=function(t,r){var n=t.alwaysShow,a=t.ifOverflow;return n&&(a="extendDomain"),a===r},bV=dM,yV=lP,vV=ia;function SV(e,t){var r={};return t=vV(t),yV(e,function(n,a,i){bV(r,a,t(n,a,i))}),r}var EV=SV;const xV=ft(EV);function wV(e,t){for(var r=-1,n=e==null?0:e.length;++r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function BV(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i=0)&&(r[a]=e[a]);return r}function UV(e,t){var r=e.x,n=e.y,a=FV(e,MV),i="".concat(r),o=parseInt(i,10),s="".concat(n),l=parseInt(s,10),c="".concat(t.height||a.height),d=parseInt(c,10),p="".concat(t.width||a.width),g=parseInt(p,10);return Ci(Ci(Ci(Ci(Ci({},t),a),o?{x:o}:{}),l?{y:l}:{}),{},{height:d,width:g,name:t.name,radius:t.radius})}function GE(e){return U.createElement(Hm,Vm({shapeType:"rectangle",propTransformer:UV,activeClassName:"recharts-active-bar"},e))}var GV=["value","background"];function Va(e){"@babel/helpers - typeof";return Va=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Va(e)}function zV(e,t){if(e==null)return{};var r=qV(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function qV(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i=0)&&(r[a]=e[a]);return r}function Dl(){return Dl=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Ml(e){return Ml=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ml(e)}function Nn(e,t,r){return t=DR(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function DR(e){var t=ZV(e,"string");return Va(t)==="symbol"?t:String(t)}function ZV(e,t){if(Va(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Va(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ou=function(e){VV(r,e);var t=YV(r);function r(){var n;HV(this,r);for(var a=arguments.length,i=new Array(a),o=0;o0&&Math.abs(H)0&&Math.abs(q)0&&(q=Math.min((Se||0)-(H[Q-1]||0),q))});var z=q/j,W=v.layout==="vertical"?n.height:n.width;if(v.padding==="gap"&&(k=z*W/2),v.padding==="no-gap"){var K=Ma(t.barCategoryGap,z*W),G=z*W/2;k=G-K-(G-K)/W*K}}a==="xAxis"?C=[n.left+(w.left||0)+(k||0),n.left+n.width-(w.right||0)-(k||0)]:a==="yAxis"?C=l==="horizontal"?[n.top+n.height-(w.bottom||0),n.top+(w.top||0)]:[n.top+(w.top||0)+(k||0),n.top+n.height-(w.bottom||0)-(k||0)]:C=v.range,x&&(C=[C[1],C[0]]);var V=wH(v,i,g),J=V.scale,ae=V.realScaleType;J.domain(O).range(C),_H(J);var re=NH(J,Cr(Cr({},v),{},{realScaleType:ae}));a==="xAxis"?(D=S==="top"&&!A||S==="bottom"&&A,I=n.left,N=p[E]-D*v.height):a==="yAxis"&&(D=S==="left"&&!A||S==="right"&&A,I=p[E]-D*v.width,N=n.top);var ue=Cr(Cr(Cr({},v),re),{},{realScaleType:ae,x:I,y:N,scale:J,width:a==="xAxis"?n.width:v.width,height:a==="yAxis"?n.height:v.height});return ue.bandSize=Tl(ue,re),!v.hide&&a==="xAxis"?p[E]+=(D?-1:1)*ue.height:v.hide||(p[E]+=(D?-1:1)*ue.width),Cr(Cr({},m),{},ku({},b,ue))},{})},PR=function(t,r){var n=t.x,a=t.y,i=r.x,o=r.y;return{x:Math.min(n,i),y:Math.min(a,o),width:Math.abs(i-n),height:Math.abs(o-a)}},rY=function(t){var r=t.x1,n=t.y1,a=t.x2,i=t.y2;return PR({x:r,y:n},{x:a,y:i})},$R=function(){function e(t){JV(this,e),this.scale=t}return QV(e,[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=n.bandAware,i=n.position;if(r!==void 0){if(i)switch(i){case"start":return this.scale(r);case"middle":{var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+o}case"end":{var s=this.bandwidth?this.bandwidth():0;return this.scale(r)+s}default:return this.scale(r)}if(a){var l=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+l}return this.scale(r)}}},{key:"isInRange",value:function(r){var n=this.range(),a=n[0],i=n[n.length-1];return a<=i?r>=a&&r<=i:r>=i&&r<=a}}],[{key:"create",value:function(r){return new e(r)}}]),e}();ku($R,"EPS",1e-4);var Ey=function(t){var r=Object.keys(t).reduce(function(n,a){return Cr(Cr({},n),{},ku({},a,$R.create(t[a])))},{});return Cr(Cr({},r),{},{apply:function(a){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=i.bandAware,s=i.position;return xV(a,function(l,c){return r[c].apply(l,{bandAware:o,position:s})})},isInRange:function(a){return LR(a,function(i,o){return r[o].isInRange(i)})}})};function nY(e){return(e%180+180)%180}var aY=function(t){var r=t.width,n=t.height,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,i=nY(a),o=i*Math.PI/180,s=Math.atan(n/r),l=o>s&&oe.length)&&(t=e.length);for(var r=0,n=new Array(t);r0,from:{upperWidth:0,lowerWidth:0,height:g,x:l,y:c},to:{upperWidth:d,lowerWidth:p,height:g,x:l,y:c},duration:v,animationEasing:b,isActive:O},function(w){var A=w.upperWidth,x=w.lowerWidth,E=w.height,k=w.x,C=w.y;return U.createElement(hn,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:S,duration:v,easing:b},U.createElement("path",Rl({},Me(r,!0),{className:_,d:NE(k,C,A,x,E),ref:n})))}):U.createElement("g",null,U.createElement("path",Rl({},Me(r,!0),{className:_,d:NE(l,c,d,p,g)})))},yW=["option","shapeType","propTransformer","activeClassName","isActive"];function To(e){"@babel/helpers - typeof";return To=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},To(e)}function vW(e,t){if(e==null)return{};var r=SW(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function SW(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i=0)&&(r[a]=e[a]);return r}function LE(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Il(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Ll(e){return Ll=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ll(e)}function or(e,t,r){return t=NR(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function NR(e){var t=aV(e,"string");return Wa(t)==="symbol"?t:String(t)}function aV(e,t){if(Wa(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Wa(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var iV=function(t){var r=t.data,n=t.startIndex,a=t.endIndex,i=t.x,o=t.width,s=t.travellerWidth;if(!r||!r.length)return{};var l=r.length,c=zi().domain(Cl(0,l)).range([i,i+o-s]),d=c.domain().map(function(p){return c(p)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:c(n),endX:c(a),scale:c,scaleValues:d}},BE=function(t){return t.changedTouches&&!!t.changedTouches.length},ko=function(e){eV(r,e);var t=tV(r);function r(n){var a;return JW(this,r),a=t.call(this,n),or(Br(a),"handleDrag",function(i){a.leaveTimer&&(clearTimeout(a.leaveTimer),a.leaveTimer=null),a.state.isTravellerMoving?a.handleTravellerMove(i):a.state.isSlideMoving&&a.handleSlideDrag(i)}),or(Br(a),"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&a.handleDrag(i.changedTouches[0])}),or(Br(a),"handleDragEnd",function(){a.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var i=a.props,o=i.endIndex,s=i.onDragEnd,l=i.startIndex;s==null||s({endIndex:o,startIndex:l})}),a.detachDragEndListener()}),or(Br(a),"handleLeaveWrapper",function(){(a.state.isTravellerMoving||a.state.isSlideMoving)&&(a.leaveTimer=window.setTimeout(a.handleDragEnd,a.props.leaveTimeOut))}),or(Br(a),"handleEnterSlideOrTraveller",function(){a.setState({isTextActive:!0})}),or(Br(a),"handleLeaveSlideOrTraveller",function(){a.setState({isTextActive:!1})}),or(Br(a),"handleSlideDragStart",function(i){var o=BE(i)?i.changedTouches[0]:i;a.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:o.pageX}),a.attachDragEndListener()}),a.travellerDragStartHandlers={startX:a.handleTravellerDragStart.bind(Br(a),"startX"),endX:a.handleTravellerDragStart.bind(Br(a),"endX")},a.state={},a}return QW(r,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(a){var i=a.startX,o=a.endX,s=this.state.scaleValues,l=this.props,c=l.gap,d=l.data,p=d.length-1,g=Math.min(i,o),m=Math.max(i,o),b=r.getIndexInRange(s,g),v=r.getIndexInRange(s,m);return{startIndex:b-b%c,endIndex:v===p?p:v-v%c}}},{key:"getTextOfTick",value:function(a){var i=this.props,o=i.data,s=i.tickFormatter,l=i.dataKey,c=Yt(o[a],l,a);return Ce(s)?s(c,a):c}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(a){var i=this.state,o=i.slideMoveStartX,s=i.startX,l=i.endX,c=this.props,d=c.x,p=c.width,g=c.travellerWidth,m=c.startIndex,b=c.endIndex,v=c.onChange,S=a.pageX-o;S>0?S=Math.min(S,d+p-g-l,d+p-g-s):S<0&&(S=Math.max(S,d-s,d-l));var O=this.getIndex({startX:s+S,endX:l+S});(O.startIndex!==m||O.endIndex!==b)&&v&&v(O),this.setState({startX:s+S,endX:l+S,slideMoveStartX:a.pageX})}},{key:"handleTravellerDragStart",value:function(a,i){var o=BE(i)?i.changedTouches[0]:i;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:a,brushMoveStartX:o.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(a){var i,o=this.state,s=o.brushMoveStartX,l=o.movingTravellerId,c=o.endX,d=o.startX,p=this.state[l],g=this.props,m=g.x,b=g.width,v=g.travellerWidth,S=g.onChange,O=g.gap,_=g.data,w={startX:this.state.startX,endX:this.state.endX},A=a.pageX-s;A>0?A=Math.min(A,m+b-v-p):A<0&&(A=Math.max(A,m-p)),w[l]=p+A;var x=this.getIndex(w),E=x.startIndex,k=x.endIndex,C=function(){var N=_.length-1;return l==="startX"&&(c>d?E%O===0:k%O===0)||cd?k%O===0:E%O===0)||c>d&&k===N};this.setState((i={},or(i,l,p+A),or(i,"brushMoveStartX",a.pageX),i),function(){S&&C()&&S(x)})}},{key:"handleTravellerMoveKeyboard",value:function(a,i){var o=this,s=this.state,l=s.scaleValues,c=s.startX,d=s.endX,p=this.state[i],g=l.indexOf(p);if(g!==-1){var m=g+a;if(!(m===-1||m>=l.length)){var b=l[m];i==="startX"&&b>=d||i==="endX"&&b<=c||this.setState(or({},i,b),function(){o.props.onChange(o.getIndex({startX:o.state.startX,endX:o.state.endX}))})}}}},{key:"renderBackground",value:function(){var a=this.props,i=a.x,o=a.y,s=a.width,l=a.height,c=a.fill,d=a.stroke;return U.createElement("rect",{stroke:d,fill:c,x:i,y:o,width:s,height:l})}},{key:"renderPanorama",value:function(){var a=this.props,i=a.x,o=a.y,s=a.width,l=a.height,c=a.data,d=a.children,p=a.padding,g=M.Children.only(d);return g?U.cloneElement(g,{x:i,y:o,width:s,height:l,margin:p,compact:!0,data:c}):null}},{key:"renderTravellerLayer",value:function(a,i){var o=this,s=this.props,l=s.y,c=s.travellerWidth,d=s.height,p=s.traveller,g=s.ariaLabel,m=s.data,b=s.startIndex,v=s.endIndex,S=Math.max(a,this.props.x),O=Pc(Pc({},Me(this.props)),{},{x:S,y:l,width:c,height:d}),_=g||"Min value: ".concat(m[b].name,", Max value: ").concat(m[v].name);return U.createElement(pt,{tabIndex:0,role:"slider","aria-label":_,"aria-valuenow":a,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[i],onTouchStart:this.travellerDragStartHandlers[i],onKeyDown:function(A){["ArrowLeft","ArrowRight"].includes(A.key)&&(A.preventDefault(),A.stopPropagation(),o.handleTravellerMoveKeyboard(A.key==="ArrowRight"?1:-1,i))},onFocus:function(){o.setState({isTravellerFocused:!0})},onBlur:function(){o.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},r.renderTraveller(p,O))}},{key:"renderSlide",value:function(a,i){var o=this.props,s=o.y,l=o.height,c=o.stroke,d=o.travellerWidth,p=Math.min(a,i)+d,g=Math.max(Math.abs(i-a)-d,0);return U.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:c,fillOpacity:.2,x:p,y:s,width:g,height:l})}},{key:"renderText",value:function(){var a=this.props,i=a.startIndex,o=a.endIndex,s=a.y,l=a.height,c=a.travellerWidth,d=a.stroke,p=this.state,g=p.startX,m=p.endX,b=5,v={pointerEvents:"none",fill:d};return U.createElement(pt,{className:"recharts-brush-texts"},U.createElement(pl,Nl({textAnchor:"end",verticalAnchor:"middle",x:Math.min(g,m)-b,y:s+l/2},v),this.getTextOfTick(i)),U.createElement(pl,Nl({textAnchor:"start",verticalAnchor:"middle",x:Math.max(g,m)+c+b,y:s+l/2},v),this.getTextOfTick(o)))}},{key:"render",value:function(){var a=this.props,i=a.data,o=a.className,s=a.children,l=a.x,c=a.y,d=a.width,p=a.height,g=a.alwaysShowText,m=this.state,b=m.startX,v=m.endX,S=m.isTextActive,O=m.isSlideMoving,_=m.isTravellerMoving,w=m.isTravellerFocused;if(!i||!i.length||!se(l)||!se(c)||!se(d)||!se(p)||d<=0||p<=0)return null;var A=Je("recharts-brush",o),x=U.Children.count(s)===1,E=ZW("userSelect","none");return U.createElement(pt,{className:A,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:E},this.renderBackground(),x&&this.renderPanorama(),this.renderSlide(b,v),this.renderTravellerLayer(b,"startX"),this.renderTravellerLayer(v,"endX"),(S||O||_||w||g)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(a){var i=a.x,o=a.y,s=a.width,l=a.height,c=a.stroke,d=Math.floor(o+l/2)-1;return U.createElement(U.Fragment,null,U.createElement("rect",{x:i,y:o,width:s,height:l,fill:c,stroke:"none"}),U.createElement("line",{x1:i+1,y1:d,x2:i+s-1,y2:d,fill:"none",stroke:"#fff"}),U.createElement("line",{x1:i+1,y1:d+2,x2:i+s-1,y2:d+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(a,i){var o;return U.isValidElement(a)?o=U.cloneElement(a,i):Ce(a)?o=a(i):o=r.renderDefaultTraveller(i),o}},{key:"getDerivedStateFromProps",value:function(a,i){var o=a.data,s=a.width,l=a.x,c=a.travellerWidth,d=a.updateId,p=a.startIndex,g=a.endIndex;if(o!==i.prevData||d!==i.prevUpdateId)return Pc({prevData:o,prevTravellerWidth:c,prevUpdateId:d,prevX:l,prevWidth:s},o&&o.length?iV({data:o,width:s,x:l,travellerWidth:c,startIndex:p,endIndex:g}):{scale:null,scaleValues:null});if(i.scale&&(s!==i.prevWidth||l!==i.prevX||c!==i.prevTravellerWidth)){i.scale.range([l,l+s-c]);var m=i.scale.domain().map(function(b){return i.scale(b)});return{prevData:o,prevTravellerWidth:c,prevUpdateId:d,prevX:l,prevWidth:s,startX:i.scale(a.startIndex),endX:i.scale(a.endIndex),scaleValues:m}}return null}},{key:"getIndexInRange",value:function(a,i){for(var o=a.length,s=0,l=o-1;l-s>1;){var c=Math.floor((s+l)/2);a[c]>i?l=c:s=c}return i>=a[l]?l:s}}]),r}(M.PureComponent);or(ko,"displayName","Brush");or(ko,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var oV=SO;function sV(e,t){var r;return oV(e,function(n,a,i){return r=t(n,a,i),!r}),!!r}var lV=sV,uV=lP,cV=ia,dV=lV,pV=Hl,fV=fu;function gV(e,t,r){var n=pV(e)?uV:dV;return r&&fV(e,t,r)&&(t=void 0),n(e,cV(t))}var hV=gV;const mV=ft(hV);var Wr=function(t,r){var n=t.alwaysShow,a=t.ifOverflow;return n&&(a="extendDomain"),a===r},bV=dM,yV=uP,vV=ia;function SV(e,t){var r={};return t=vV(t),yV(e,function(n,a,i){bV(r,a,t(n,a,i))}),r}var EV=SV;const xV=ft(EV);function wV(e,t){for(var r=-1,n=e==null?0:e.length;++r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function BV(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i=0)&&(r[a]=e[a]);return r}function UV(e,t){var r=e.x,n=e.y,a=FV(e,MV),i="".concat(r),o=parseInt(i,10),s="".concat(n),l=parseInt(s,10),c="".concat(t.height||a.height),d=parseInt(c,10),p="".concat(t.width||a.width),g=parseInt(p,10);return Ci(Ci(Ci(Ci(Ci({},t),a),o?{x:o}:{}),l?{y:l}:{}),{},{height:d,width:g,name:t.name,radius:t.radius})}function GE(e){return U.createElement(Hm,Vm({shapeType:"rectangle",propTransformer:UV,activeClassName:"recharts-active-bar"},e))}var GV=["value","background"];function Va(e){"@babel/helpers - typeof";return Va=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Va(e)}function zV(e,t){if(e==null)return{};var r=qV(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function qV(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i=0)&&(r[a]=e[a]);return r}function Dl(){return Dl=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Ml(e){return Ml=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ml(e)}function Nn(e,t,r){return t=DR(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function DR(e){var t=ZV(e,"string");return Va(t)==="symbol"?t:String(t)}function ZV(e,t){if(Va(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Va(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ou=function(e){VV(r,e);var t=YV(r);function r(){var n;HV(this,r);for(var a=arguments.length,i=new Array(a),o=0;o0&&Math.abs(H)0&&Math.abs(q)0&&(q=Math.min((Se||0)-(H[Q-1]||0),q))});var z=q/j,W=v.layout==="vertical"?n.height:n.width;if(v.padding==="gap"&&(k=z*W/2),v.padding==="no-gap"){var K=Ma(t.barCategoryGap,z*W),G=z*W/2;k=G-K-(G-K)/W*K}}a==="xAxis"?C=[n.left+(w.left||0)+(k||0),n.left+n.width-(w.right||0)-(k||0)]:a==="yAxis"?C=l==="horizontal"?[n.top+n.height-(w.bottom||0),n.top+(w.top||0)]:[n.top+(w.top||0)+(k||0),n.top+n.height-(w.bottom||0)-(k||0)]:C=v.range,x&&(C=[C[1],C[0]]);var V=wH(v,i,g),J=V.scale,ae=V.realScaleType;J.domain(O).range(C),_H(J);var re=NH(J,Cr(Cr({},v),{},{realScaleType:ae}));a==="xAxis"?(D=S==="top"&&!A||S==="bottom"&&A,I=n.left,N=p[E]-D*v.height):a==="yAxis"&&(D=S==="left"&&!A||S==="right"&&A,I=p[E]-D*v.width,N=n.top);var ue=Cr(Cr(Cr({},v),re),{},{realScaleType:ae,x:I,y:N,scale:J,width:a==="xAxis"?n.width:v.width,height:a==="yAxis"?n.height:v.height});return ue.bandSize=Tl(ue,re),!v.hide&&a==="xAxis"?p[E]+=(D?-1:1)*ue.height:v.hide||(p[E]+=(D?-1:1)*ue.width),Cr(Cr({},m),{},ku({},b,ue))},{})},PR=function(t,r){var n=t.x,a=t.y,i=r.x,o=r.y;return{x:Math.min(n,i),y:Math.min(a,o),width:Math.abs(i-n),height:Math.abs(o-a)}},rY=function(t){var r=t.x1,n=t.y1,a=t.x2,i=t.y2;return PR({x:r,y:n},{x:a,y:i})},$R=function(){function e(t){JV(this,e),this.scale=t}return QV(e,[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=n.bandAware,i=n.position;if(r!==void 0){if(i)switch(i){case"start":return this.scale(r);case"middle":{var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+o}case"end":{var s=this.bandwidth?this.bandwidth():0;return this.scale(r)+s}default:return this.scale(r)}if(a){var l=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+l}return this.scale(r)}}},{key:"isInRange",value:function(r){var n=this.range(),a=n[0],i=n[n.length-1];return a<=i?r>=a&&r<=i:r>=i&&r<=a}}],[{key:"create",value:function(r){return new e(r)}}]),e}();ku($R,"EPS",1e-4);var Ey=function(t){var r=Object.keys(t).reduce(function(n,a){return Cr(Cr({},n),{},ku({},a,$R.create(t[a])))},{});return Cr(Cr({},r),{},{apply:function(a){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=i.bandAware,s=i.position;return xV(a,function(l,c){return r[c].apply(l,{bandAware:o,position:s})})},isInRange:function(a){return LR(a,function(i,o){return r[o].isInRange(i)})}})};function nY(e){return(e%180+180)%180}var aY=function(t){var r=t.width,n=t.height,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,i=nY(a),o=i*Math.PI/180,s=Math.atan(n/r),l=o>s&&oe.length)&&(t=e.length);for(var r=0,n=new Array(t);re*a)return!1;var i=r();return e*(t-e*i/2-n)>=0&&e*(t+e*i/2-a)<=0}function TY(e,t){return jR(e,t+1)}function AY(e,t,r,n,a){for(var i=(n||[]).slice(),o=t.start,s=t.end,l=0,c=1,d=o,p=function(){var b=n==null?void 0:n[l];if(b===void 0)return{v:jR(n,c)};var v=l,S,O=function(){return S===void 0&&(S=r(b,v)),S},_=b.coordinate,w=l===0||Pl(e,_,O,d,s);w||(l=0,d=o,c+=1),w&&(d=_+e*(O()/2+a),l+=c)},g;c<=i.length;)if(g=p(),g)return g.v;return[]}function Do(e){"@babel/helpers - typeof";return Do=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Do(e)}function ex(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Lt(e){for(var t=1;t0?m.coordinate-S*e:m.coordinate})}else i[g]=m=Lt(Lt({},m),{},{tickCoord:m.coordinate});var O=Pl(e,m.tickCoord,v,s,l);O&&(l=m.tickCoord-e*(v()/2+a),i[g]=Lt(Lt({},m),{},{isShow:!0}))},d=o-1;d>=0;d--)c(d);return i}function CY(e,t,r,n,a,i){var o=(n||[]).slice(),s=o.length,l=t.start,c=t.end;if(i){var d=n[s-1],p=r(d,s-1),g=e*(d.coordinate+e*p/2-c);o[s-1]=d=Lt(Lt({},d),{},{tickCoord:g>0?d.coordinate-g*e:d.coordinate});var m=Pl(e,d.tickCoord,function(){return p},l,c);m&&(c=d.tickCoord-e*(p/2+a),o[s-1]=Lt(Lt({},d),{},{isShow:!0}))}for(var b=i?s-1:s,v=function(_){var w=o[_],A,x=function(){return A===void 0&&(A=r(w,_)),A};if(_===0){var E=e*(w.coordinate-e*x()/2-l);o[_]=w=Lt(Lt({},w),{},{tickCoord:E<0?w.coordinate-E*e:w.coordinate})}else o[_]=w=Lt(Lt({},w),{},{tickCoord:w.coordinate});var k=Pl(e,w.tickCoord,x,l,c);k&&(l=w.tickCoord+e*(x()/2+a),o[_]=Lt(Lt({},w),{},{isShow:!0}))},S=0;S=2?Mr(a[1].coordinate-a[0].coordinate):1,O=_Y(i,S,m);return l==="equidistantPreserveStart"?AY(S,O,v,a,o):(l==="preserveStart"||l==="preserveStartEnd"?g=CY(S,O,v,a,o,l==="preserveStartEnd"):g=IY(S,O,v,a,o),g.filter(function(_){return _.isShow}))}var NY=["viewBox"],LY=["viewBox"],DY=["ticks"];function Ya(e){"@babel/helpers - typeof";return Ya=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ya(e)}function Aa(){return Aa=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function MY(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i=0)&&(r[a]=e[a]);return r}function PY(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rx(e,t){for(var r=0;r"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function $l(e){return $l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},$l(e)}function wy(e,t,r){return t=FR(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function FR(e){var t=zY(e,"string");return Ya(t)==="symbol"?t:String(t)}function zY(e,t){if(Ya(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Ya(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Hi=function(e){jY(r,e);var t=FY(r);function r(n){var a;return PY(this,r),a=t.call(this,n),a.state={fontSize:"",letterSpacing:""},a}return $Y(r,[{key:"shouldComponentUpdate",value:function(a,i){var o=a.viewBox,s=$c(a,NY),l=this.props,c=l.viewBox,d=$c(l,LY);return!Ra(o,c)||!Ra(s,d)||!Ra(i,this.state)}},{key:"componentDidMount",value:function(){var a=this.layerReference;if(a){var i=a.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];i&&this.setState({fontSize:window.getComputedStyle(i).fontSize,letterSpacing:window.getComputedStyle(i).letterSpacing})}}},{key:"getTickLineCoord",value:function(a){var i=this.props,o=i.x,s=i.y,l=i.width,c=i.height,d=i.orientation,p=i.tickSize,g=i.mirror,m=i.tickMargin,b,v,S,O,_,w,A=g?-1:1,x=a.tickSize||p,E=se(a.tickCoord)?a.tickCoord:a.coordinate;switch(d){case"top":b=v=a.coordinate,O=s+ +!g*c,S=O-A*x,w=S-A*m,_=E;break;case"left":S=O=a.coordinate,v=o+ +!g*l,b=v-A*x,_=b-A*m,w=E;break;case"right":S=O=a.coordinate,v=o+ +g*l,b=v+A*x,_=b+A*m,w=E;break;default:b=v=a.coordinate,O=s+ +g*c,S=O+A*x,w=S+A*m,_=E;break}return{line:{x1:b,y1:S,x2:v,y2:O},tick:{x:_,y:w}}}},{key:"getTickTextAnchor",value:function(){var a=this.props,i=a.orientation,o=a.mirror,s;switch(i){case"left":s=o?"start":"end";break;case"right":s=o?"end":"start";break;default:s="middle";break}return s}},{key:"getTickVerticalAnchor",value:function(){var a=this.props,i=a.orientation,o=a.mirror,s="end";switch(i){case"left":case"right":s="middle";break;case"top":s=o?"start":"end";break;default:s=o?"end":"start";break}return s}},{key:"renderAxisLine",value:function(){var a=this.props,i=a.x,o=a.y,s=a.width,l=a.height,c=a.orientation,d=a.mirror,p=a.axisLine,g=Gt(Gt(Gt({},Me(this.props)),Me(p)),{},{fill:"none"});if(c==="top"||c==="bottom"){var m=+(c==="top"&&!d||c==="bottom"&&d);g=Gt(Gt({},g),{},{x1:i,y1:o+m*l,x2:i+s,y2:o+m*l})}else{var b=+(c==="left"&&!d||c==="right"&&d);g=Gt(Gt({},g),{},{x1:i+b*s,y1:o,x2:i+b*s,y2:o+l})}return U.createElement("line",Aa({},g,{className:Je("recharts-cartesian-axis-line",vr(p,"className"))}))}},{key:"renderTicks",value:function(a,i,o){var s=this,l=this.props,c=l.tickLine,d=l.stroke,p=l.tick,g=l.tickFormatter,m=l.unit,b=Jm(Gt(Gt({},this.props),{},{ticks:a}),i,o),v=this.getTickTextAnchor(),S=this.getTickVerticalAnchor(),O=Me(this.props),_=Me(p),w=Gt(Gt({},O),{},{fill:"none"},Me(c)),A=b.map(function(x,E){var k=s.getTickLineCoord(x),C=k.line,I=k.tick,N=Gt(Gt(Gt(Gt({textAnchor:v,verticalAnchor:S},O),{},{stroke:"none",fill:d},_),I),{},{index:E,payload:x,visibleTicksCount:b.length,tickFormatter:g});return U.createElement(pt,Aa({className:"recharts-cartesian-axis-tick",key:"tick-".concat(x.value,"-").concat(x.coordinate,"-").concat(x.tickCoord)},Ki(s.props,x,E)),c&&U.createElement("line",Aa({},w,C,{className:Je("recharts-cartesian-axis-tick-line",vr(c,"className"))})),p&&r.renderTickItem(p,N,"".concat(Ce(g)?g(x.value,E):x.value).concat(m||"")))});return U.createElement("g",{className:"recharts-cartesian-axis-ticks"},A)}},{key:"render",value:function(){var a=this,i=this.props,o=i.axisLine,s=i.width,l=i.height,c=i.ticksGenerator,d=i.className,p=i.hide;if(p)return null;var g=this.props,m=g.ticks,b=$c(g,DY),v=m;return Ce(c)&&(v=m&&m.length>0?c(this.props):c(b)),s<=0||l<=0||!v||!v.length?null:U.createElement(pt,{className:Je("recharts-cartesian-axis",d),ref:function(O){a.layerReference=O}},o&&this.renderAxisLine(),this.renderTicks(v,this.state.fontSize,this.state.letterSpacing),Dt.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(a,i,o){var s;return U.isValidElement(a)?s=U.cloneElement(a,i):Ce(a)?s=a(i):s=U.createElement(pl,Aa({},i,{className:"recharts-cartesian-axis-tick-value"}),o),s}}]),r}(M.Component);wy(Hi,"displayName","CartesianAxis");wy(Hi,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"});var qY=["x1","y1","x2","y2","key"],HY=["offset"];function Ka(e){"@babel/helpers - typeof";return Ka=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ka(e)}function eb(){return eb=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function WY(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i=0)&&(r[a]=e[a]);return r}function ax(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function On(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function jl(e){return jl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},jl(e)}function _y(e,t,r){return t=BR(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function BR(e){var t=e7(e,"string");return Ka(t)==="symbol"?t:String(t)}function e7(e,t){if(Ka(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Ka(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ty=function(e){KY(r,e);var t=XY(r);function r(){return VY(this,r),t.apply(this,arguments)}return YY(r,[{key:"renderHorizontal",value:function(a){var i=this,o=this.props,s=o.x,l=o.width,c=o.horizontal;if(!a||!a.length)return null;var d=a.map(function(p,g){var m=On(On({},i.props),{},{x1:s,y1:p,x2:s+l,y2:p,key:"line-".concat(g),index:g});return r.renderLineItem(c,m)});return U.createElement("g",{className:"recharts-cartesian-grid-horizontal"},d)}},{key:"renderVertical",value:function(a){var i=this,o=this.props,s=o.y,l=o.height,c=o.vertical;if(!a||!a.length)return null;var d=a.map(function(p,g){var m=On(On({},i.props),{},{x1:p,y1:s,x2:p,y2:s+l,key:"line-".concat(g),index:g});return r.renderLineItem(c,m)});return U.createElement("g",{className:"recharts-cartesian-grid-vertical"},d)}},{key:"renderVerticalStripes",value:function(a){var i=this.props.verticalFill;if(!i||!i.length)return null;var o=this.props,s=o.fillOpacity,l=o.x,c=o.y,d=o.width,p=o.height,g=a.map(function(b){return Math.round(b+l-l)}).sort(function(b,v){return b-v});l!==g[0]&&g.unshift(0);var m=g.map(function(b,v){var S=!g[v+1],O=S?l+d-b:g[v+1]-b;if(O<=0)return null;var _=v%i.length;return U.createElement("rect",{key:"react-".concat(v),x:b,y:c,width:O,height:p,stroke:"none",fill:i[_],fillOpacity:s,className:"recharts-cartesian-grid-bg"})});return U.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},m)}},{key:"renderHorizontalStripes",value:function(a){var i=this.props.horizontalFill;if(!i||!i.length)return null;var o=this.props,s=o.fillOpacity,l=o.x,c=o.y,d=o.width,p=o.height,g=a.map(function(b){return Math.round(b+c-c)}).sort(function(b,v){return b-v});c!==g[0]&&g.unshift(0);var m=g.map(function(b,v){var S=!g[v+1],O=S?c+p-b:g[v+1]-b;if(O<=0)return null;var _=v%i.length;return U.createElement("rect",{key:"react-".concat(v),y:b,x:l,height:O,width:d,stroke:"none",fill:i[_],fillOpacity:s,className:"recharts-cartesian-grid-bg"})});return U.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},m)}},{key:"renderBackground",value:function(){var a=this.props.fill;if(!a||a==="none")return null;var i=this.props,o=i.fillOpacity,s=i.x,l=i.y,c=i.width,d=i.height;return U.createElement("rect",{x:s,y:l,width:c,height:d,stroke:"none",fill:a,fillOpacity:o,className:"recharts-cartesian-grid-bg"})}},{key:"render",value:function(){var a=this.props,i=a.x,o=a.y,s=a.width,l=a.height,c=a.horizontal,d=a.vertical,p=a.horizontalCoordinatesGenerator,g=a.verticalCoordinatesGenerator,m=a.xAxis,b=a.yAxis,v=a.offset,S=a.chartWidth,O=a.chartHeight,_=a.syncWithTicks,w=a.horizontalValues,A=a.verticalValues;if(!se(s)||s<=0||!se(l)||l<=0||!se(i)||i!==+i||!se(o)||o!==+o)return null;var x=this.props,E=x.horizontalPoints,k=x.verticalPoints;if((!E||!E.length)&&Ce(p)){var C=w&&w.length;E=p({yAxis:b?On(On({},b),{},{ticks:C?w:b.ticks}):void 0,width:S,height:O,offset:v},C?!0:_)}if((!k||!k.length)&&Ce(g)){var I=A&&A.length;k=g({xAxis:m?On(On({},m),{},{ticks:I?A:m.ticks}):void 0,width:S,height:O,offset:v},I?!0:_)}return U.createElement("g",{className:"recharts-cartesian-grid"},this.renderBackground(),c&&this.renderHorizontal(E),d&&this.renderVertical(k),c&&this.renderHorizontalStripes(E),d&&this.renderVerticalStripes(k))}}],[{key:"renderLineItem",value:function(a,i){var o;if(U.isValidElement(a))o=U.cloneElement(a,i);else if(Ce(a))o=a(i);else{var s=i.x1,l=i.y1,c=i.x2,d=i.y2,p=i.key,g=nx(i,qY),m=Me(g);m.offset;var b=nx(m,HY);o=U.createElement("line",eb({},b,{x1:s,y1:l,x2:c,y2:d,fill:"none",key:p}))}return o}}]),r}(M.PureComponent);_y(Ty,"displayName","CartesianGrid");_y(Ty,"defaultProps",{horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]});var Ru=function(){return null};Ru.displayName="ZAxis";Ru.defaultProps={zAxisId:0,range:[64,64],scale:"auto",type:"number"};var t7=["option","isActive"];function Wi(){return Wi=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function n7(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i=0)&&(r[a]=e[a]);return r}function a7(e){var t=e.option,r=e.isActive,n=r7(e,t7);return typeof t=="string"?U.createElement(Hm,Wi({option:U.createElement(du,Wi({type:t},n)),isActive:r,shapeType:"symbols"},n)):U.createElement(Hm,Wi({option:t,isActive:r,shapeType:"symbols"},n))}function Xa(e){"@babel/helpers - typeof";return Xa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xa(e)}function Vi(){return Vi=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Fl(e){return Fl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Fl(e)}function Ln(e,t,r){return t=UR(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function UR(e){var t=d7(e,"string");return Xa(t)==="symbol"?t:String(t)}function d7(e,t){if(Xa(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Xa(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Qo=function(e){s7(r,e);var t=l7(r);function r(){var n;i7(this,r);for(var a=arguments.length,i=new Array(a),o=0;o-1?a[i?t[o]:o]:void 0}}var m7=h7,b7=IR;function y7(e){var t=b7(e),r=t%1;return t===t?r?t-r:t:0}var v7=y7,S7=lk,E7=ia,x7=v7,w7=Math.max;function _7(e,t,r){var n=e==null?0:e.length;if(!n)return-1;var a=r==null?0:x7(r);return a<0&&(a=w7(n+a,0)),S7(e,E7(t),a)}var T7=_7,A7=m7,O7=T7,k7=A7(O7),R7=k7;const I7=ft(R7);var C7="Invariant failed";function N7(e,t){if(!e)throw new Error(C7)}function GR(e){var t=e.cx,r=e.cy,n=e.radius,a=e.startAngle,i=e.endAngle,o=Ct(t,r,n,a),s=Ct(t,r,n,i);return{points:[o,s],cx:t,cy:r,radius:n,startAngle:a,endAngle:i}}function lx(e){return P7(e)||M7(e)||D7(e)||L7()}function L7(){throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function D7(e,t){if(e){if(typeof e=="string")return nb(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return nb(e,t)}}function M7(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function P7(e){if(Array.isArray(e))return nb(e)}function nb(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Z7(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i=0)&&(r[a]=e[a]);return r}function J7(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function px(e,t){for(var r=0;r"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Bl(e){return Bl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Bl(e)}function Ja(e){return oK(e)||iK(e)||HR(e)||aK()}function aK(){throw new TypeError(`Invalid attempt to spread non-iterable instance. @@ -1457,11 +1457,11 @@ ${({disabled:e})=>e&&QA` background: ${({selected:e})=>e?P.gray300:P.gray200}; } } -`,Ay=({count:e=0,updateCount:t,content:r,readOnly:n,refId:a})=>{const[i,o]=M.useState(!1);M.useEffect(()=>{o(!1)},[a]);let{image_url:s}=r||{};s&&(s=s.replace(".jpg","_l.jpg"));const l=5;async function c(){if(!(i||!a)){o(!0);try{await dP(a,l),t&&t(e+l)}catch(d){console.error(d)}o(!1)}}return n?e?h.jsx(yx,{className:"booster__pill",style:{padding:"1px 8px 1px 3px",width:"fit-content"},children:h.jsxs(F,{align:"center",direction:"row",justify:"center",children:[h.jsx(fM,{fontSize:12}),h.jsx("div",{style:{fontSize:10},children:e||0})]})}):null:h.jsx("div",{children:h.jsx(yx,{"data-testid":"booster-pill",disabled:i,onClick:async()=>{i||await c()},style:{padding:"4px 8px",borderWidth:0,backgroundColor:"#303342",height:"25px",width:"fit-content"},children:i?h.jsx(DK,{color:"#fff",loading:!0,size:10}):h.jsxs(F,{align:"center","data-testid":"loader",direction:"row",justify:"space-around",children:[h.jsx(dO,{style:{color:P.white}}),h.jsx("div",{style:{marginLeft:8,marginRight:8},children:"Boost"})]})})})},Oy=B(F)` +`,Ay=({count:e=0,updateCount:t,content:r,readOnly:n,refId:a})=>{const[i,o]=M.useState(!1);M.useEffect(()=>{o(!1)},[a]);let{image_url:s}=r||{};s&&(s=s.replace(".jpg","_l.jpg"));const l=5;async function c(){if(!(i||!a)){o(!0);try{await dP(a,l),t&&t(e+l)}catch(d){console.error(d)}o(!1)}}return n?e?h.jsx(yx,{className:"booster__pill",style:{padding:"1px 8px 1px 3px",width:"fit-content"},children:h.jsxs(F,{align:"center",direction:"row",justify:"center",children:[h.jsx(fM,{fontSize:12}),h.jsx("div",{style:{fontSize:10},children:e||0})]})}):null:h.jsx("div",{children:h.jsx(yx,{"data-testid":"booster-pill",disabled:i,onClick:async()=>{i||await c()},style:{padding:"4px 8px",borderWidth:0,backgroundColor:"#303342",height:"25px",width:"fit-content"},children:i?h.jsx(DK,{color:"#fff",loading:!0,size:10}):h.jsxs(F,{align:"center","data-testid":"loader",direction:"row",justify:"space-around",children:[h.jsx(uO,{style:{color:P.white}}),h.jsx("div",{style:{marginLeft:8,marginRight:8},children:"Boost"})]})})})},Oy=B(F)` background: ${P.divider2}; height: 1px; margin: auto 22px; -`,MK=({stateless:e,node:t,searchTerm:r})=>h.jsxs(F,{grow:1,shrink:1,children:[h.jsx($K,{children:e&&h.jsxs(PK,{children:[h.jsx("div",{className:"icon",children:h.jsx(gO,{})}),h.jsx("div",{className:"title",children:"Description"})]})}),h.jsx(Ze,{children:t!=null&&t.description?qr(t.description,r):"..."})]}),PK=B(F).attrs({direction:"row",align:"center"})` +`,MK=({stateless:e,node:t,searchTerm:r})=>h.jsxs(F,{grow:1,shrink:1,children:[h.jsx($K,{children:e&&h.jsxs(PK,{children:[h.jsx("div",{className:"icon",children:h.jsx(dO,{})}),h.jsx("div",{className:"title",children:"Description"})]})}),h.jsx(Ze,{children:t!=null&&t.description?qr(t.description,r):"..."})]}),PK=B(F).attrs({direction:"row",align:"center"})` .icon { font-size: 16px; color: ${P.GRAY3}; @@ -1491,7 +1491,7 @@ ${({disabled:e})=>e&&QA` &:hover { color: ${P.GRAY3}; } -`,FK=({stateless:e,node:t})=>{var b;const[r,n]=Nt(v=>[v.transcriptIsOpen,v.setTranscriptOpen]),[a,i]=M.useState(!1),[o,s]=M.useState(""),[l,c]=M.useState(!1);if(!e&&!r)return null;const d=async()=>{try{const v=await Gv(t==null?void 0:t.ref_id);s(v.data.text)}catch(v){console.error("Error fetching full transcript",v)}},p=async()=>{if(o===""){const v=await Gv(t==null?void 0:t.ref_id);m(v.data.text)}else m(o);setTimeout(()=>{i(!1)},2e3)},g=async()=>{l?c(!1):(await d(),c(!0))},m=v=>{v!==void 0&&(navigator.clipboard.writeText(v),i(!0))};return h.jsxs(F,{grow:1,shrink:1,children:[h.jsxs(UK,{children:[e&&h.jsxs(BK,{children:[h.jsx("div",{className:"icon",children:h.jsx(gO,{})}),h.jsx("div",{className:"title",children:"Transcript"})]}),t!=null&&t.text?h.jsx(h.Fragment,{children:a?h.jsxs(qK,{align:"center",direction:"row",justify:"flex-start",children:[h.jsx("div",{className:"icon",children:h.jsx(fO,{})}),h.jsx("div",{className:"text",children:"Copied"})]}):h.jsx(Mt,{endIcon:h.jsx(FM,{}),onPointerDown:()=>p(),size:"small",variant:"outlined",children:"Copy"})}):h.jsx("div",{}),!e&&h.jsx(GK,{onClick:()=>{n(!1)},children:h.jsx(gM,{fontSize:35})})]}),h.jsxs(zK,{children:[l?o:`${(b=t==null?void 0:t.text)==null?void 0:b.substring(0,100)}`,h.jsxs(jK,{onClick:g,children:["... ",l?"show less":"more"]})]})]})},BK=B(F).attrs({direction:"row",align:"center"})` +`,FK=({stateless:e,node:t})=>{var b;const[r,n]=Nt(v=>[v.transcriptIsOpen,v.setTranscriptOpen]),[a,i]=M.useState(!1),[o,s]=M.useState(""),[l,c]=M.useState(!1);if(!e&&!r)return null;const d=async()=>{try{const v=await Gv(t==null?void 0:t.ref_id);s(v.data.text)}catch(v){console.error("Error fetching full transcript",v)}},p=async()=>{if(o===""){const v=await Gv(t==null?void 0:t.ref_id);m(v.data.text)}else m(o);setTimeout(()=>{i(!1)},2e3)},g=async()=>{l?c(!1):(await d(),c(!0))},m=v=>{v!==void 0&&(navigator.clipboard.writeText(v),i(!0))};return h.jsxs(F,{grow:1,shrink:1,children:[h.jsxs(UK,{children:[e&&h.jsxs(BK,{children:[h.jsx("div",{className:"icon",children:h.jsx(dO,{})}),h.jsx("div",{className:"title",children:"Transcript"})]}),t!=null&&t.text?h.jsx(h.Fragment,{children:a?h.jsxs(qK,{align:"center",direction:"row",justify:"flex-start",children:[h.jsx("div",{className:"icon",children:h.jsx(yO,{})}),h.jsx("div",{className:"text",children:"Copied"})]}):h.jsx(Mt,{endIcon:h.jsx(MM,{}),onPointerDown:()=>p(),size:"small",variant:"outlined",children:"Copy"})}):h.jsx("div",{}),!e&&h.jsx(GK,{onClick:()=>{n(!1)},children:h.jsx(gM,{fontSize:35})})]}),h.jsxs(zK,{children:[l?o:`${(b=t==null?void 0:t.text)==null?void 0:b.substring(0,100)}`,h.jsxs(jK,{onClick:g,children:["... ",l?"show less":"more"]})]})]})},BK=B(F).attrs({direction:"row",align:"center"})` .icon { font-size: 16px; color: ${P.GRAY3}; @@ -1607,7 +1607,7 @@ ${({disabled:e})=>e&&QA` color: ${P.white}; } } -`,cX=({onClick:e,timestamp:t,isSelected:r,setOpenClip:n})=>{const a=r?"blueTextAccent":"placeholderText";return r?(mM,P[a]):(bM,P[a]),h.jsxs(uX,{align:"center","data-testid":"wrapper",direction:"row",isSelected:r,justify:"flex-start",onClick:e,px:20,py:20,children:[h.jsxs("div",{children:[h.jsx(hO,{className:"play-pause",children:r?h.jsx(lX,{}):h.jsx(BM,{})}),!1]}),h.jsxs(dX,{align:"flex-start",direction:"column",justify:"center",children:[t.timestamp&&h.jsx("span",{className:"timestamp",children:pP(t.timestamp)}),h.jsx("span",{className:"title",children:Ib(t.show_title)})]}),h.jsx("div",{className:"info",children:h.jsx(F,{"data-testid":"info-icon-wrapper",onClick:()=>n(t),pt:4,children:h.jsx(yM,{})})})]})},dX=B(F)` +`,cX=({onClick:e,timestamp:t,isSelected:r,setOpenClip:n})=>{const a=r?"blueTextAccent":"placeholderText";return r?(mM,P[a]):(bM,P[a]),h.jsxs(uX,{align:"center","data-testid":"wrapper",direction:"row",isSelected:r,justify:"flex-start",onClick:e,px:20,py:20,children:[h.jsxs("div",{children:[h.jsx(gO,{className:"play-pause",children:r?h.jsx(lX,{}):h.jsx(PM,{})}),!1]}),h.jsxs(dX,{align:"flex-start",direction:"column",justify:"center",children:[t.timestamp&&h.jsx("span",{className:"timestamp",children:pP(t.timestamp)}),h.jsx("span",{className:"title",children:Ib(t.show_title)})]}),h.jsx("div",{className:"info",children:h.jsx(F,{"data-testid":"info-icon-wrapper",onClick:()=>n(t),pt:4,children:h.jsx(yM,{})})})]})},dX=B(F)` font-size: 13px; color: ${P.white}; font-family: 'Barlow'; @@ -1842,7 +1842,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho */var r=function(n){var a=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,i=0,o={},s={manual:n.Prism&&n.Prism.manual,disableWorkerMessageHandler:n.Prism&&n.Prism.disableWorkerMessageHandler,util:{encode:function _(w){return w instanceof l?new l(w.type,_(w.content),w.alias):Array.isArray(w)?w.map(_):w.replace(/&/g,"&").replace(/"u")return null;if("currentScript"in document&&1<2)return document.currentScript;try{throw new Error}catch(x){var _=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(x.stack)||[])[1];if(_){var w=document.getElementsByTagName("script");for(var A in w)if(w[A].src==_)return w[A]}return null}},isActive:function(_,w,A){for(var x="no-"+w;_;){var E=_.classList;if(E.contains(w))return!0;if(E.contains(x))return!1;_=_.parentElement}return!!A}},languages:{plain:o,plaintext:o,text:o,txt:o,extend:function(_,w){var A=s.util.clone(s.languages[_]);for(var x in w)A[x]=w[x];return A},insertBefore:function(_,w,A,x){x=x||s.languages;var E=x[_],k={};for(var C in E)if(E.hasOwnProperty(C)){if(C==w)for(var I in A)A.hasOwnProperty(I)&&(k[I]=A[I]);A.hasOwnProperty(C)||(k[C]=E[C])}var N=x[_];return x[_]=k,s.languages.DFS(s.languages,function(D,j){j===N&&D!=_&&(this[D]=k)}),k},DFS:function _(w,A,x,E){E=E||{};var k=s.util.objId;for(var C in w)if(w.hasOwnProperty(C)){A.call(w,C,w[C],x||C);var I=w[C],N=s.util.type(I);N==="Object"&&!E[k(I)]?(E[k(I)]=!0,_(I,A,null,E)):N==="Array"&&!E[k(I)]&&(E[k(I)]=!0,_(I,A,C,E))}}},plugins:{},highlightAll:function(_,w){s.highlightAllUnder(document,_,w)},highlightAllUnder:function(_,w,A){var x={callback:A,container:_,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};s.hooks.run("before-highlightall",x),x.elements=Array.prototype.slice.apply(x.container.querySelectorAll(x.selector)),s.hooks.run("before-all-elements-highlight",x);for(var E=0,k;k=x.elements[E++];)s.highlightElement(k,w===!0,x.callback)},highlightElement:function(_,w,A){var x=s.util.getLanguage(_),E=s.languages[x];s.util.setLanguage(_,x);var k=_.parentElement;k&&k.nodeName.toLowerCase()==="pre"&&s.util.setLanguage(k,x);var C=_.textContent,I={element:_,language:x,grammar:E,code:C};function N(j){I.highlightedCode=j,s.hooks.run("before-insert",I),I.element.innerHTML=I.highlightedCode,s.hooks.run("after-highlight",I),s.hooks.run("complete",I),A&&A.call(I.element)}if(s.hooks.run("before-sanity-check",I),k=I.element.parentElement,k&&k.nodeName.toLowerCase()==="pre"&&!k.hasAttribute("tabindex")&&k.setAttribute("tabindex","0"),!I.code){s.hooks.run("complete",I),A&&A.call(I.element);return}if(s.hooks.run("before-highlight",I),!I.grammar){N(s.util.encode(I.code));return}if(w&&n.Worker){var D=new Worker(s.filename);D.onmessage=function(j){N(j.data)},D.postMessage(JSON.stringify({language:I.language,code:I.code,immediateClose:!0}))}else N(s.highlight(I.code,I.grammar,I.language))},highlight:function(_,w,A){var x={code:_,grammar:w,language:A};if(s.hooks.run("before-tokenize",x),!x.grammar)throw new Error('The language "'+x.language+'" has no grammar.');return x.tokens=s.tokenize(x.code,x.grammar),s.hooks.run("after-tokenize",x),l.stringify(s.util.encode(x.tokens),x.language)},tokenize:function(_,w){var A=w.rest;if(A){for(var x in A)w[x]=A[x];delete w.rest}var E=new p;return g(E,E.head,_),d(_,E,w,E.head,0),b(E)},hooks:{all:{},add:function(_,w){var A=s.hooks.all;A[_]=A[_]||[],A[_].push(w)},run:function(_,w){var A=s.hooks.all[_];if(!(!A||!A.length))for(var x=0,E;E=A[x++];)E(w)}},Token:l};n.Prism=s;function l(_,w,A,x){this.type=_,this.content=w,this.alias=A,this.length=(x||"").length|0}l.stringify=function _(w,A){if(typeof w=="string")return w;if(Array.isArray(w)){var x="";return w.forEach(function(N){x+=_(N,A)}),x}var E={type:w.type,content:_(w.content,A),tag:"span",classes:["token",w.type],attributes:{},language:A},k=w.alias;k&&(Array.isArray(k)?Array.prototype.push.apply(E.classes,k):E.classes.push(k)),s.hooks.run("wrap",E);var C="";for(var I in E.attributes)C+=" "+I+'="'+(E.attributes[I]||"").replace(/"/g,""")+'"';return"<"+E.tag+' class="'+E.classes.join(" ")+'"'+C+">"+E.content+""};function c(_,w,A,x){_.lastIndex=w;var E=_.exec(A);if(E&&x&&E[1]){var k=E[1].length;E.index+=k,E[0]=E[0].slice(k)}return E}function d(_,w,A,x,E,k){for(var C in A)if(!(!A.hasOwnProperty(C)||!A[C])){var I=A[C];I=Array.isArray(I)?I:[I];for(var N=0;N=k.reach);V+=G.value.length,G=G.next){var J=G.value;if(w.length>_.length)return;if(!(J instanceof l)){var ae=1,re;if(H){if(re=c(K,V,_,q),!re||re.index>=_.length)break;var Ie=re.index,ue=re.index+re[0].length,Se=V;for(Se+=G.value.length;Ie>=Se;)G=G.next,Se+=G.value.length;if(Se-=G.value.length,V=Se,G.value instanceof l)continue;for(var Q=G;Q!==w.tail&&(Sek.reach&&(k.reach=oe);var ie=G.prev;xe&&(ie=g(w,ie,xe),V+=xe.length),m(w,ie,ae);var X=new l(C,j?s.tokenize(Ue,j):Ue,z,Ue);if(G=g(w,ie,X),ee&&g(w,G,ee),ae>1){var Ee={cause:C+","+N,reach:oe};d(_,w,A,G.prev,V,Ee),k&&Ee.reach>k.reach&&(k.reach=Ee.reach)}}}}}}function p(){var _={value:null,prev:null,next:null},w={value:null,prev:_,next:null};_.next=w,this.head=_,this.tail=w,this.length=0}function g(_,w,A){var x=w.next,E={value:A,prev:w,next:x};return w.next=E,x.prev=E,_.length++,E}function m(_,w,A){for(var x=w.next,E=0;E/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},e.languages.markup.tag.inside["attr-value"].inside.entity=e.languages.markup.entity,e.languages.markup.doctype.inside["internal-subset"].inside=e.languages.markup,e.hooks.add("wrap",function(t){t.type==="entity"&&(t.attributes.title=t.content.value.replace(/&/,"&"))}),Object.defineProperty(e.languages.markup.tag,"addInlined",{value:function(r,n){var a={};a["language-"+n]={pattern:/(^$)/i,lookbehind:!0,inside:e.languages[n]},a.cdata=/^$/i;var i={"included-cdata":{pattern://i,inside:a}};i["language-"+n]={pattern:/[\s\S]+/,inside:e.languages[n]};var o={};o[r]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,function(){return r}),"i"),lookbehind:!0,greedy:!0,inside:i},e.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(e.languages.markup.tag,"addAttribute",{value:function(t,r){e.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[r,"language-"+r],inside:e.languages[r]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),e.languages.html=e.languages.markup,e.languages.mathml=e.languages.markup,e.languages.svg=e.languages.markup,e.languages.xml=e.languages.extend("markup",{}),e.languages.ssml=e.languages.xml,e.languages.atom=e.languages.xml,e.languages.rss=e.languages.xml}var lte=Fy;Fy.displayName="css";Fy.aliases=[];function Fy(e){(function(t){var r=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;t.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+r.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+r.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+r.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:r,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},t.languages.css.atrule.inside.rest=t.languages.css;var n=t.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))})(e)}var ute=By;By.displayName="clike";By.aliases=[];function By(e){e.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}}var cte=Uy;Uy.displayName="javascript";Uy.aliases=["js"];function Uy(e){e.languages.javascript=e.languages.extend("clike",{"class-name":[e.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),e.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,e.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:e.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:e.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:e.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:e.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),e.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:e.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),e.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),e.languages.markup&&(e.languages.markup.tag.addInlined("script","javascript"),e.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),e.languages.js=e.languages.javascript}var Fi=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof Tt=="object"?Tt:{},dte=Ote();Fi.Prism={manual:!0,disableWorkerMessageHandler:!0};var pte=OJ,fte=zee,AI=ote,gte=ste,hte=lte,mte=ute,bte=cte;dte();var Gy={}.hasOwnProperty;function OI(){}OI.prototype=AI;var yt=new OI,yte=yt;yt.highlight=Ste;yt.register=ts;yt.alias=vte;yt.registered=Ete;yt.listLanguages=xte;ts(gte);ts(hte);ts(mte);ts(bte);yt.util.encode=Tte;yt.Token.stringify=wte;function ts(e){if(typeof e!="function"||!e.displayName)throw new Error("Expected `function` for `grammar`, got `"+e+"`");yt.languages[e.displayName]===void 0&&e(yt)}function vte(e,t){var r=yt.languages,n=e,a,i,o,s;t&&(n={},n[e]=t);for(a in n)for(i=n[a],i=typeof i=="string"?[i]:i,o=i.length,s=-1;++s code[class*="language-"]':{background:"#f5f2f0",padding:".1em",borderRadius:".3em",whiteSpace:"normal"},comment:{color:"slategray"},prolog:{color:"slategray"},doctype:{color:"slategray"},cdata:{color:"slategray"},punctuation:{color:"#999"},namespace:{Opacity:".7"},property:{color:"#905"},tag:{color:"#905"},boolean:{color:"#905"},number:{color:"#905"},constant:{color:"#905"},symbol:{color:"#905"},deleted:{color:"#905"},selector:{color:"#690"},"attr-name":{color:"#690"},string:{color:"#690"},char:{color:"#690"},builtin:{color:"#690"},inserted:{color:"#690"},operator:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},entity:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)",cursor:"help"},url:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},".language-css .token.string":{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},".style .token.string":{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},atrule:{color:"#07a"},"attr-value":{color:"#07a"},keyword:{color:"#07a"},function:{color:"#DD4A68"},"class-name":{color:"#DD4A68"},regex:{color:"#e90"},important:{color:"#e90",fontWeight:"bold"},variable:{color:"#e90"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}};var zc,Fx;function Rte(){if(Fx)return zc;Fx=1,zc=e,e.displayName="abap",e.aliases=[];function e(t){t.languages.abap={comment:/^\*.*/m,string:/(`|')(?:\\.|(?!\1)[^\\\r\n])*\1/,"string-template":{pattern:/([|}])(?:\\.|[^\\|{\r\n])*(?=[|{])/,lookbehind:!0,alias:"string"},"eol-comment":{pattern:/(^|\s)".*/m,lookbehind:!0,alias:"comment"},keyword:{pattern:/(\s|\.|^)(?:SCIENTIFIC_WITH_LEADING_ZERO|SCALE_PRESERVING_SCIENTIFIC|RMC_COMMUNICATION_FAILURE|END-ENHANCEMENT-SECTION|MULTIPLY-CORRESPONDING|SUBTRACT-CORRESPONDING|VERIFICATION-MESSAGE|DIVIDE-CORRESPONDING|ENHANCEMENT-SECTION|CURRENCY_CONVERSION|RMC_SYSTEM_FAILURE|START-OF-SELECTION|MOVE-CORRESPONDING|RMC_INVALID_STATUS|CUSTOMER-FUNCTION|END-OF-DEFINITION|ENHANCEMENT-POINT|SYSTEM-EXCEPTIONS|ADD-CORRESPONDING|SCALE_PRESERVING|SELECTION-SCREEN|CURSOR-SELECTION|END-OF-SELECTION|LOAD-OF-PROGRAM|SCROLL-BOUNDARY|SELECTION-TABLE|EXCEPTION-TABLE|IMPLEMENTATIONS|PARAMETER-TABLE|RIGHT-JUSTIFIED|UNIT_CONVERSION|AUTHORITY-CHECK|LIST-PROCESSING|SIGN_AS_POSTFIX|COL_BACKGROUND|IMPLEMENTATION|INTERFACE-POOL|TRANSFORMATION|IDENTIFICATION|ENDENHANCEMENT|LINE-SELECTION|INITIALIZATION|LEFT-JUSTIFIED|SELECT-OPTIONS|SELECTION-SETS|COMMUNICATION|CORRESPONDING|DECIMAL_SHIFT|PRINT-CONTROL|VALUE-REQUEST|CHAIN-REQUEST|FUNCTION-POOL|FIELD-SYMBOLS|FUNCTIONALITY|INVERTED-DATE|SELECTION-SET|CLASS-METHODS|OUTPUT-LENGTH|CLASS-CODING|COL_NEGATIVE|ERRORMESSAGE|FIELD-GROUPS|HELP-REQUEST|NO-EXTENSION|NO-TOPOFPAGE|REDEFINITION|DISPLAY-MODE|ENDINTERFACE|EXIT-COMMAND|FIELD-SYMBOL|NO-SCROLLING|SHORTDUMP-ID|ACCESSPOLICY|CLASS-EVENTS|COL_POSITIVE|DECLARATIONS|ENHANCEMENTS|FILTER-TABLE|SWITCHSTATES|SYNTAX-CHECK|TRANSPORTING|ASYNCHRONOUS|SYNTAX-TRACE|TOKENIZATION|USER-COMMAND|WITH-HEADING|ABAP-SOURCE|BREAK-POINT|CHAIN-INPUT|COMPRESSION|FIXED-POINT|NEW-SECTION|NON-UNICODE|OCCURRENCES|RESPONSIBLE|SYSTEM-CALL|TRACE-TABLE|ABBREVIATED|CHAR-TO-HEX|END-OF-FILE|ENDFUNCTION|ENVIRONMENT|ASSOCIATION|COL_HEADING|EDITOR-CALL|END-OF-PAGE|ENGINEERING|IMPLEMENTED|INTENSIFIED|RADIOBUTTON|SYSTEM-EXIT|TOP-OF-PAGE|TRANSACTION|APPLICATION|CONCATENATE|DESTINATION|ENHANCEMENT|IMMEDIATELY|NO-GROUPING|PRECOMPILED|REPLACEMENT|TITLE-LINES|ACTIVATION|BYTE-ORDER|CLASS-POOL|CONNECTION|CONVERSION|DEFINITION|DEPARTMENT|EXPIRATION|INHERITING|MESSAGE-ID|NO-HEADING|PERFORMING|QUEUE-ONLY|RIGHTSPACE|SCIENTIFIC|STATUSINFO|STRUCTURES|SYNCPOINTS|WITH-TITLE|ATTRIBUTES|BOUNDARIES|CLASS-DATA|COL_NORMAL|DD\/MM\/YYYY|DESCENDING|INTERFACES|LINE-COUNT|MM\/DD\/YYYY|NON-UNIQUE|PRESERVING|SELECTIONS|STATEMENTS|SUBROUTINE|TRUNCATION|TYPE-POOLS|ARITHMETIC|BACKGROUND|ENDPROVIDE|EXCEPTIONS|IDENTIFIER|INDEX-LINE|OBLIGATORY|PARAMETERS|PERCENTAGE|PUSHBUTTON|RESOLUTION|COMPONENTS|DEALLOCATE|DISCONNECT|DUPLICATES|FIRST-LINE|HEAD-LINES|NO-DISPLAY|OCCURRENCE|RESPECTING|RETURNCODE|SUBMATCHES|TRACE-FILE|ASCENDING|BYPASSING|ENDMODULE|EXCEPTION|EXCLUDING|EXPORTING|INCREMENT|MATCHCODE|PARAMETER|PARTIALLY|PREFERRED|REFERENCE|REPLACING|RETURNING|SELECTION|SEPARATED|SPECIFIED|STATEMENT|TIMESTAMP|TYPE-POOL|ACCEPTING|APPENDAGE|ASSIGNING|COL_GROUP|COMPARING|CONSTANTS|DANGEROUS|IMPORTING|INSTANCES|LEFTSPACE|LOG-POINT|QUICKINFO|READ-ONLY|SCROLLING|SQLSCRIPT|STEP-LOOP|TOP-LINES|TRANSLATE|APPENDING|AUTHORITY|CHARACTER|COMPONENT|CONDITION|DIRECTORY|DUPLICATE|MESSAGING|RECEIVING|SUBSCREEN|ACCORDING|COL_TOTAL|END-LINES|ENDMETHOD|ENDSELECT|EXPANDING|EXTENSION|INCLUDING|INFOTYPES|INTERFACE|INTERVALS|LINE-SIZE|PF-STATUS|PROCEDURE|PROTECTED|REQUESTED|RESUMABLE|RIGHTPLUS|SAP-SPOOL|SECONDARY|STRUCTURE|SUBSTRING|TABLEVIEW|NUMOFCHAR|ADJACENT|ANALYSIS|ASSIGNED|BACKWARD|CHANNELS|CHECKBOX|CONTINUE|CRITICAL|DATAINFO|DD\/MM\/YY|DURATION|ENCODING|ENDCLASS|FUNCTION|LEFTPLUS|LINEFEED|MM\/DD\/YY|OVERFLOW|RECEIVED|SKIPPING|SORTABLE|STANDARD|SUBTRACT|SUPPRESS|TABSTRIP|TITLEBAR|TRUNCATE|UNASSIGN|WHENEVER|ANALYZER|COALESCE|COMMENTS|CONDENSE|DECIMALS|DEFERRED|ENDWHILE|EXPLICIT|KEYWORDS|MESSAGES|POSITION|PRIORITY|RECEIVER|RENAMING|TIMEZONE|TRAILING|ALLOCATE|CENTERED|CIRCULAR|CONTROLS|CURRENCY|DELETING|DESCRIBE|DISTANCE|ENDCATCH|EXPONENT|EXTENDED|GENERATE|IGNORING|INCLUDES|INTERNAL|MAJOR-ID|MODIFIER|NEW-LINE|OPTIONAL|PROPERTY|ROLLBACK|STARTING|SUPPLIED|ABSTRACT|CHANGING|CONTEXTS|CREATING|CUSTOMER|DATABASE|DAYLIGHT|DEFINING|DISTINCT|DIVISION|ENABLING|ENDCHAIN|ESCAPING|HARMLESS|IMPLICIT|INACTIVE|LANGUAGE|MINOR-ID|MULTIPLY|NEW-PAGE|NO-TITLE|POS_HIGH|SEPARATE|TEXTPOOL|TRANSFER|SELECTOR|DBMAXLEN|ITERATOR|ARCHIVE|BIT-XOR|BYTE-CO|COLLECT|COMMENT|CURRENT|DEFAULT|DISPLAY|ENDFORM|EXTRACT|LEADING|LISTBOX|LOCATOR|MEMBERS|METHODS|NESTING|POS_LOW|PROCESS|PROVIDE|RAISING|RESERVE|SECONDS|SUMMARY|VISIBLE|BETWEEN|BIT-AND|BYTE-CS|CLEANUP|COMPUTE|CONTROL|CONVERT|DATASET|ENDCASE|FORWARD|HEADERS|HOTSPOT|INCLUDE|INVERSE|KEEPING|NO-ZERO|OBJECTS|OVERLAY|PADDING|PATTERN|PROGRAM|REFRESH|SECTION|SUMMING|TESTING|VERSION|WINDOWS|WITHOUT|BIT-NOT|BYTE-CA|BYTE-NA|CASTING|CONTEXT|COUNTRY|DYNAMIC|ENABLED|ENDLOOP|EXECUTE|FRIENDS|HANDLER|HEADING|INITIAL|\*-INPUT|LOGFILE|MAXIMUM|MINIMUM|NO-GAPS|NO-SIGN|PRAGMAS|PRIMARY|PRIVATE|REDUCED|REPLACE|REQUEST|RESULTS|UNICODE|WARNING|ALIASES|BYTE-CN|BYTE-NS|CALLING|COL_KEY|COLUMNS|CONNECT|ENDEXEC|ENTRIES|EXCLUDE|FILTERS|FURTHER|HELP-ID|LOGICAL|MAPPING|MESSAGE|NAMETAB|OPTIONS|PACKAGE|PERFORM|RECEIVE|STATICS|VARYING|BINDING|CHARLEN|GREATER|XSTRLEN|ACCEPT|APPEND|DETAIL|ELSEIF|ENDING|ENDTRY|FORMAT|FRAMES|GIVING|HASHED|HEADER|IMPORT|INSERT|MARGIN|MODULE|NATIVE|OBJECT|OFFSET|REMOTE|RESUME|SAVING|SIMPLE|SUBMIT|TABBED|TOKENS|UNIQUE|UNPACK|UPDATE|WINDOW|YELLOW|ACTUAL|ASPECT|CENTER|CURSOR|DELETE|DIALOG|DIVIDE|DURING|ERRORS|EVENTS|EXTEND|FILTER|HANDLE|HAVING|IGNORE|LITTLE|MEMORY|NO-GAP|OCCURS|OPTION|PERSON|PLACES|PUBLIC|REDUCE|REPORT|RESULT|SINGLE|SORTED|SWITCH|SYNTAX|TARGET|VALUES|WRITER|ASSERT|BLOCKS|BOUNDS|BUFFER|CHANGE|COLUMN|COMMIT|CONCAT|COPIES|CREATE|DDMMYY|DEFINE|ENDIAN|ESCAPE|EXPAND|KERNEL|LAYOUT|LEGACY|LEVELS|MMDDYY|NUMBER|OUTPUT|RANGES|READER|RETURN|SCREEN|SEARCH|SELECT|SHARED|SOURCE|STABLE|STATIC|SUBKEY|SUFFIX|TABLES|UNWIND|YYMMDD|ASSIGN|BACKUP|BEFORE|BINARY|BIT-OR|BLANKS|CLIENT|CODING|COMMON|DEMAND|DYNPRO|EXCEPT|EXISTS|EXPORT|FIELDS|GLOBAL|GROUPS|LENGTH|LOCALE|MEDIUM|METHOD|MODIFY|NESTED|OTHERS|REJECT|SCROLL|SUPPLY|SYMBOL|ENDFOR|STRLEN|ALIGN|BEGIN|BOUND|ENDAT|ENTRY|EVENT|FINAL|FLUSH|GRANT|INNER|SHORT|USING|WRITE|AFTER|BLACK|BLOCK|CLOCK|COLOR|COUNT|DUMMY|EMPTY|ENDDO|ENDON|GREEN|INDEX|INOUT|LEAVE|LEVEL|LINES|MODIF|ORDER|OUTER|RANGE|RESET|RETRY|RIGHT|SMART|SPLIT|STYLE|TABLE|THROW|UNDER|UNTIL|UPPER|UTF-8|WHERE|ALIAS|BLANK|CLEAR|CLOSE|EXACT|FETCH|FIRST|FOUND|GROUP|LLANG|LOCAL|OTHER|REGEX|SPOOL|TITLE|TYPES|VALID|WHILE|ALPHA|BOXED|CATCH|CHAIN|CHECK|CLASS|COVER|ENDIF|EQUIV|FIELD|FLOOR|FRAME|INPUT|LOWER|MATCH|NODES|PAGES|PRINT|RAISE|ROUND|SHIFT|SPACE|SPOTS|STAMP|STATE|TASKS|TIMES|TRMAC|ULINE|UNION|VALUE|WIDTH|EQUAL|LOG10|TRUNC|BLOB|CASE|CEIL|CLOB|COND|EXIT|FILE|GAPS|HOLD|INCL|INTO|KEEP|KEYS|LAST|LINE|LONG|LPAD|MAIL|MODE|OPEN|PINK|READ|ROWS|TEST|THEN|ZERO|AREA|BACK|BADI|BYTE|CAST|EDIT|EXEC|FAIL|FIND|FKEQ|FONT|FREE|GKEQ|HIDE|INIT|ITNO|LATE|LOOP|MAIN|MARK|MOVE|NEXT|NULL|RISK|ROLE|UNIT|WAIT|ZONE|BASE|CALL|CODE|DATA|DATE|FKGE|GKGE|HIGH|KIND|LEFT|LIST|MASK|MESH|NAME|NODE|PACK|PAGE|POOL|SEND|SIGN|SIZE|SOME|STOP|TASK|TEXT|TIME|USER|VARY|WITH|WORD|BLUE|CONV|COPY|DEEP|ELSE|FORM|FROM|HINT|ICON|JOIN|LIKE|LOAD|ONLY|PART|SCAN|SKIP|SORT|TYPE|UNIX|VIEW|WHEN|WORK|ACOS|ASIN|ATAN|COSH|EACH|FRAC|LESS|RTTI|SINH|SQRT|TANH|AVG|BIT|DIV|ISO|LET|OUT|PAD|SQL|ALL|CI_|CPI|END|LOB|LPI|MAX|MIN|NEW|OLE|RUN|SET|\?TO|YES|ABS|ADD|AND|BIG|FOR|HDB|JOB|LOW|NOT|SAP|TRY|VIA|XML|ANY|GET|IDS|KEY|MOD|OFF|PUT|RAW|RED|REF|SUM|TAB|XSD|CNT|COS|EXP|LOG|SIN|TAN|XOR|AT|CO|CP|DO|GT|ID|IF|NS|OR|BT|CA|CS|GE|NA|NB|EQ|IN|LT|NE|NO|OF|ON|PF|TO|AS|BY|CN|IS|LE|NP|UP|E|I|M|O|Z|C|X)\b/i,lookbehind:!0},number:/\b\d+\b/,operator:{pattern:/(\s)(?:\*\*?|<[=>]?|>=?|\?=|[-+\/=])(?=\s)/,lookbehind:!0},"string-operator":{pattern:/(\s)&&?(?=\s)/,lookbehind:!0,alias:"keyword"},"token-operator":[{pattern:/(\w)(?:->?|=>|[~|{}])(?=\w)/,lookbehind:!0,alias:"punctuation"},{pattern:/[|{}]/,alias:"punctuation"}],punctuation:/[,.:()]/}}return zc}var qc,Bx;function Ite(){if(Bx)return qc;Bx=1,qc=e,e.displayName="abnf",e.aliases=[];function e(t){(function(r){var n="(?:ALPHA|BIT|CHAR|CR|CRLF|CTL|DIGIT|DQUOTE|HEXDIG|HTAB|LF|LWSP|OCTET|SP|VCHAR|WSP)";r.languages.abnf={comment:/;.*/,string:{pattern:/(?:%[is])?"[^"\n\r]*"/,greedy:!0,inside:{punctuation:/^%[is]/}},range:{pattern:/%(?:b[01]+-[01]+|d\d+-\d+|x[A-F\d]+-[A-F\d]+)/i,alias:"number"},terminal:{pattern:/%(?:b[01]+(?:\.[01]+)*|d\d+(?:\.\d+)*|x[A-F\d]+(?:\.[A-F\d]+)*)/i,alias:"number"},repetition:{pattern:/(^|[^\w-])(?:\d*\*\d*|\d+)/,lookbehind:!0,alias:"operator"},definition:{pattern:/(^[ \t]*)(?:[a-z][\w-]*|<[^<>\r\n]*>)(?=\s*=)/m,lookbehind:!0,alias:"keyword",inside:{punctuation:/<|>/}},"core-rule":{pattern:RegExp("(?:(^|[^<\\w-])"+n+"|<"+n+">)(?![\\w-])","i"),lookbehind:!0,alias:["rule","constant"],inside:{punctuation:/<|>/}},rule:{pattern:/(^|[^<\w-])[a-z][\w-]*|<[^<>\r\n]*>/i,lookbehind:!0,inside:{punctuation:/<|>/}},operator:/=\/?|\//,punctuation:/[()\[\]]/}})(t)}return qc}var Hc,Ux;function Cte(){if(Ux)return Hc;Ux=1,Hc=e,e.displayName="actionscript",e.aliases=[];function e(t){t.languages.actionscript=t.languages.extend("javascript",{keyword:/\b(?:as|break|case|catch|class|const|default|delete|do|dynamic|each|else|extends|final|finally|for|function|get|if|implements|import|in|include|instanceof|interface|internal|is|namespace|native|new|null|override|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|use|var|void|while|with)\b/,operator:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<>?>?|[!=]=?)=?|[~?@]/}),t.languages.actionscript["class-name"].alias="function",delete t.languages.actionscript.parameter,delete t.languages.actionscript["literal-property"],t.languages.markup&&t.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:t.languages.markup}})}return Hc}var Wc,Gx;function Nte(){if(Gx)return Wc;Gx=1,Wc=e,e.displayName="ada",e.aliases=[];function e(t){t.languages.ada={comment:/--.*/,string:/"(?:""|[^"\r\f\n])*"/,number:[{pattern:/\b\d(?:_?\d)*#[\dA-F](?:_?[\dA-F])*(?:\.[\dA-F](?:_?[\dA-F])*)?#(?:E[+-]?\d(?:_?\d)*)?/i},{pattern:/\b\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:E[+-]?\d(?:_?\d)*)?\b/i}],"attr-name":/\b'\w+/,keyword:/\b(?:abort|abs|abstract|accept|access|aliased|all|and|array|at|begin|body|case|constant|declare|delay|delta|digits|do|else|elsif|end|entry|exception|exit|for|function|generic|goto|if|in|interface|is|limited|loop|mod|new|not|null|of|others|out|overriding|package|pragma|private|procedure|protected|raise|range|record|rem|renames|requeue|return|reverse|select|separate|some|subtype|synchronized|tagged|task|terminate|then|type|until|use|when|while|with|xor)\b/i,boolean:/\b(?:false|true)\b/i,operator:/<[=>]?|>=?|=>?|:=|\/=?|\*\*?|[&+-]/,punctuation:/\.\.?|[,;():]/,char:/'.'/,variable:/\b[a-z](?:\w)*\b/i}}return Wc}var Vc,zx;function Lte(){if(zx)return Vc;zx=1,Vc=e,e.displayName="agda",e.aliases=[];function e(t){(function(r){r.languages.agda={comment:/\{-[\s\S]*?(?:-\}|$)|--.*/,string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},punctuation:/[(){}⦃⦄.;@]/,"class-name":{pattern:/((?:data|record) +)\S+/,lookbehind:!0},function:{pattern:/(^[ \t]*)(?!\s)[^:\r\n]+(?=:)/m,lookbehind:!0},operator:{pattern:/(^\s*|\s)(?:[=|:∀→λ\\?_]|->)(?=\s)/,lookbehind:!0},keyword:/\b(?:Set|abstract|constructor|data|eta-equality|field|forall|hiding|import|in|inductive|infix|infixl|infixr|instance|let|macro|module|mutual|no-eta-equality|open|overlap|pattern|postulate|primitive|private|public|quote|quoteContext|quoteGoal|quoteTerm|record|renaming|rewrite|syntax|tactic|unquote|unquoteDecl|unquoteDef|using|variable|where|with)\b/}})(t)}return Vc}var Yc,qx;function Dte(){if(qx)return Yc;qx=1,Yc=e,e.displayName="al",e.aliases=[];function e(t){t.languages.al={comment:/\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/'(?:''|[^'\r\n])*'(?!')|"(?:""|[^"\r\n])*"(?!")/,greedy:!0},function:{pattern:/(\b(?:event|procedure|trigger)\s+|(?:^|[^.])\.\s*)[a-z_]\w*(?=\s*\()/i,lookbehind:!0},keyword:[/\b(?:array|asserterror|begin|break|case|do|downto|else|end|event|exit|for|foreach|function|if|implements|in|indataset|interface|internal|local|of|procedure|program|protected|repeat|runonclient|securityfiltering|suppressdispose|temporary|then|to|trigger|until|var|while|with|withevents)\b/i,/\b(?:action|actions|addafter|addbefore|addfirst|addlast|area|assembly|chartpart|codeunit|column|controladdin|cuegroup|customizes|dataitem|dataset|dotnet|elements|enum|enumextension|extends|field|fieldattribute|fieldelement|fieldgroup|fieldgroups|fields|filter|fixed|grid|group|key|keys|label|labels|layout|modify|moveafter|movebefore|movefirst|movelast|page|pagecustomization|pageextension|part|profile|query|repeater|report|requestpage|schema|separator|systempart|table|tableelement|tableextension|textattribute|textelement|type|usercontrol|value|xmlport)\b/i],number:/\b(?:0x[\da-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)(?:F|LL?|U(?:LL?)?)?\b/i,boolean:/\b(?:false|true)\b/i,variable:/\b(?:Curr(?:FieldNo|Page|Report)|x?Rec|RequestOptionsPage)\b/,"class-name":/\b(?:automation|biginteger|bigtext|blob|boolean|byte|char|clienttype|code|completiontriggererrorlevel|connectiontype|database|dataclassification|datascope|date|dateformula|datetime|decimal|defaultlayout|dialog|dictionary|dotnetassembly|dotnettypedeclaration|duration|errorinfo|errortype|executioncontext|executionmode|fieldclass|fieldref|fieldtype|file|filterpagebuilder|guid|httpclient|httpcontent|httpheaders|httprequestmessage|httpresponsemessage|instream|integer|joker|jsonarray|jsonobject|jsontoken|jsonvalue|keyref|list|moduledependencyinfo|moduleinfo|none|notification|notificationscope|objecttype|option|outstream|pageresult|record|recordid|recordref|reportformat|securityfilter|sessionsettings|tableconnectiontype|tablefilter|testaction|testfield|testfilterfield|testpage|testpermissions|testrequestpage|text|textbuilder|textconst|textencoding|time|transactionmodel|transactiontype|variant|verbosity|version|view|views|webserviceactioncontext|webserviceactionresultcode|xmlattribute|xmlattributecollection|xmlcdata|xmlcomment|xmldeclaration|xmldocument|xmldocumenttype|xmlelement|xmlnamespacemanager|xmlnametable|xmlnode|xmlnodelist|xmlprocessinginstruction|xmlreadoptions|xmltext|xmlwriteoptions)\b/i,operator:/\.\.|:[=:]|[-+*/]=?|<>|[<>]=?|=|\b(?:and|div|mod|not|or|xor)\b/i,punctuation:/[()\[\]{}:.;,]/}}return Yc}var Kc,Hx;function Mte(){if(Hx)return Kc;Hx=1,Kc=e,e.displayName="antlr4",e.aliases=["g4"];function e(t){t.languages.antlr4={comment:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,string:{pattern:/'(?:\\.|[^\\'\r\n])*'/,greedy:!0},"character-class":{pattern:/\[(?:\\.|[^\\\]\r\n])*\]/,greedy:!0,alias:"regex",inside:{range:{pattern:/([^[]|(?:^|[^\\])(?:\\\\)*\\\[)-(?!\])/,lookbehind:!0,alias:"punctuation"},escape:/\\(?:u(?:[a-fA-F\d]{4}|\{[a-fA-F\d]+\})|[pP]\{[=\w-]+\}|[^\r\nupP])/,punctuation:/[\[\]]/}},action:{pattern:/\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\}/,greedy:!0,inside:{content:{pattern:/(\{)[\s\S]+(?=\})/,lookbehind:!0},punctuation:/[{}]/}},command:{pattern:/(->\s*(?!\s))(?:\s*(?:,\s*)?\b[a-z]\w*(?:\s*\([^()\r\n]*\))?)+(?=\s*;)/i,lookbehind:!0,inside:{function:/\b\w+(?=\s*(?:[,(]|$))/,punctuation:/[,()]/}},annotation:{pattern:/@\w+(?:::\w+)*/,alias:"keyword"},label:{pattern:/#[ \t]*\w+/,alias:"punctuation"},keyword:/\b(?:catch|channels|finally|fragment|grammar|import|lexer|locals|mode|options|parser|returns|throws|tokens)\b/,definition:[{pattern:/\b[a-z]\w*(?=\s*:)/,alias:["rule","class-name"]},{pattern:/\b[A-Z]\w*(?=\s*:)/,alias:["token","constant"]}],constant:/\b[A-Z][A-Z_]*\b/,operator:/\.\.|->|[|~]|[*+?]\??/,punctuation:/[;:()=]/},t.languages.g4=t.languages.antlr4}return Kc}var Xc,Wx;function Pte(){if(Wx)return Xc;Wx=1,Xc=e,e.displayName="apacheconf",e.aliases=[];function e(t){t.languages.apacheconf={comment:/#.*/,"directive-inline":{pattern:/(^[\t ]*)\b(?:AcceptFilter|AcceptPathInfo|AccessFileName|Action|Add(?:Alt|AltByEncoding|AltByType|Charset|DefaultCharset|Description|Encoding|Handler|Icon|IconByEncoding|IconByType|InputFilter|Language|ModuleInfo|OutputFilter|OutputFilterByType|Type)|Alias|AliasMatch|Allow(?:CONNECT|EncodedSlashes|Methods|Override|OverrideList)?|Anonymous(?:_LogEmail|_MustGiveEmail|_NoUserID|_VerifyEmail)?|AsyncRequestWorkerFactor|Auth(?:BasicAuthoritative|BasicFake|BasicProvider|BasicUseDigestAlgorithm|DBDUserPWQuery|DBDUserRealmQuery|DBMGroupFile|DBMType|DBMUserFile|Digest(?:Algorithm|Domain|NonceLifetime|Provider|Qop|ShmemSize)|Form(?:Authoritative|Body|DisableNoStore|FakeBasicAuth|Location|LoginRequiredLocation|LoginSuccessLocation|LogoutLocation|Method|Mimetype|Password|Provider|SitePassphrase|Size|Username)|GroupFile|LDAP(?:AuthorizePrefix|BindAuthoritative|BindDN|BindPassword|CharsetConfig|CompareAsUser|CompareDNOnServer|DereferenceAliases|GroupAttribute|GroupAttributeIsDN|InitialBindAsUser|InitialBindPattern|MaxSubGroupDepth|RemoteUserAttribute|RemoteUserIsDN|SearchAsUser|SubGroupAttribute|SubGroupClass|Url)|Merging|Name|nCache(?:Context|Enable|ProvideFor|SOCache|Timeout)|nzFcgiCheckAuthnProvider|nzFcgiDefineProvider|Type|UserFile|zDBDLoginToReferer|zDBDQuery|zDBDRedirectQuery|zDBMType|zSendForbiddenOnFailure)|BalancerGrowth|BalancerInherit|BalancerMember|BalancerPersist|BrowserMatch|BrowserMatchNoCase|BufferedLogs|BufferSize|Cache(?:DefaultExpire|DetailHeader|DirLength|DirLevels|Disable|Enable|File|Header|IgnoreCacheControl|IgnoreHeaders|IgnoreNoLastMod|IgnoreQueryString|IgnoreURLSessionIdentifiers|KeyBaseURL|LastModifiedFactor|Lock|LockMaxAge|LockPath|MaxExpire|MaxFileSize|MinExpire|MinFileSize|NegotiatedDocs|QuickHandler|ReadSize|ReadTime|Root|Socache(?:MaxSize|MaxTime|MinTime|ReadSize|ReadTime)?|StaleOnError|StoreExpired|StoreNoStore|StorePrivate)|CGIDScriptTimeout|CGIMapExtension|CharsetDefault|CharsetOptions|CharsetSourceEnc|CheckCaseOnly|CheckSpelling|ChrootDir|ContentDigest|CookieDomain|CookieExpires|CookieName|CookieStyle|CookieTracking|CoreDumpDirectory|CustomLog|Dav|DavDepthInfinity|DavGenericLockDB|DavLockDB|DavMinTimeout|DBDExptime|DBDInitSQL|DBDKeep|DBDMax|DBDMin|DBDParams|DBDPersist|DBDPrepareSQL|DBDriver|DefaultIcon|DefaultLanguage|DefaultRuntimeDir|DefaultType|Define|Deflate(?:BufferSize|CompressionLevel|FilterNote|InflateLimitRequestBody|InflateRatio(?:Burst|Limit)|MemLevel|WindowSize)|Deny|DirectoryCheckHandler|DirectoryIndex|DirectoryIndexRedirect|DirectorySlash|DocumentRoot|DTracePrivileges|DumpIOInput|DumpIOOutput|EnableExceptionHook|EnableMMAP|EnableSendfile|Error|ErrorDocument|ErrorLog|ErrorLogFormat|Example|ExpiresActive|ExpiresByType|ExpiresDefault|ExtendedStatus|ExtFilterDefine|ExtFilterOptions|FallbackResource|FileETag|FilterChain|FilterDeclare|FilterProtocol|FilterProvider|FilterTrace|ForceLanguagePriority|ForceType|ForensicLog|GprofDir|GracefulShutdownTimeout|Group|Header|HeaderName|Heartbeat(?:Address|Listen|MaxServers|Storage)|HostnameLookups|IdentityCheck|IdentityCheckTimeout|ImapBase|ImapDefault|ImapMenu|Include|IncludeOptional|Index(?:HeadInsert|Ignore|IgnoreReset|Options|OrderDefault|StyleSheet)|InputSed|ISAPI(?:AppendLogToErrors|AppendLogToQuery|CacheFile|FakeAsync|LogNotSupported|ReadAheadBuffer)|KeepAlive|KeepAliveTimeout|KeptBodySize|LanguagePriority|LDAP(?:CacheEntries|CacheTTL|ConnectionPoolTTL|ConnectionTimeout|LibraryDebug|OpCacheEntries|OpCacheTTL|ReferralHopLimit|Referrals|Retries|RetryDelay|SharedCacheFile|SharedCacheSize|Timeout|TrustedClientCert|TrustedGlobalCert|TrustedMode|VerifyServerCert)|Limit(?:InternalRecursion|Request(?:Body|Fields|FieldSize|Line)|XMLRequestBody)|Listen|ListenBackLog|LoadFile|LoadModule|LogFormat|LogLevel|LogMessage|LuaAuthzProvider|LuaCodeCache|Lua(?:Hook(?:AccessChecker|AuthChecker|CheckUserID|Fixups|InsertFilter|Log|MapToStorage|TranslateName|TypeChecker)|Inherit|InputFilter|MapHandler|OutputFilter|PackageCPath|PackagePath|QuickHandler|Root|Scope)|Max(?:ConnectionsPerChild|KeepAliveRequests|MemFree|RangeOverlaps|RangeReversals|Ranges|RequestWorkers|SpareServers|SpareThreads|Threads)|MergeTrailers|MetaDir|MetaFiles|MetaSuffix|MimeMagicFile|MinSpareServers|MinSpareThreads|MMapFile|ModemStandard|ModMimeUsePathInfo|MultiviewsMatch|Mutex|NameVirtualHost|NoProxy|NWSSLTrustedCerts|NWSSLUpgradeable|Options|Order|OutputSed|PassEnv|PidFile|PrivilegesMode|Protocol|ProtocolEcho|Proxy(?:AddHeaders|BadHeader|Block|Domain|ErrorOverride|ExpressDBMFile|ExpressDBMType|ExpressEnable|FtpDirCharset|FtpEscapeWildcards|FtpListOnWildcard|HTML(?:BufSize|CharsetOut|DocType|Enable|Events|Extended|Fixups|Interp|Links|Meta|StripComments|URLMap)|IOBufferSize|MaxForwards|Pass(?:Inherit|InterpolateEnv|Match|Reverse|ReverseCookieDomain|ReverseCookiePath)?|PreserveHost|ReceiveBufferSize|Remote|RemoteMatch|Requests|SCGIInternalRedirect|SCGISendfile|Set|SourceAddress|Status|Timeout|Via)|ReadmeName|ReceiveBufferSize|Redirect|RedirectMatch|RedirectPermanent|RedirectTemp|ReflectorHeader|RemoteIP(?:Header|InternalProxy|InternalProxyList|ProxiesHeader|TrustedProxy|TrustedProxyList)|RemoveCharset|RemoveEncoding|RemoveHandler|RemoveInputFilter|RemoveLanguage|RemoveOutputFilter|RemoveType|RequestHeader|RequestReadTimeout|Require|Rewrite(?:Base|Cond|Engine|Map|Options|Rule)|RLimitCPU|RLimitMEM|RLimitNPROC|Satisfy|ScoreBoardFile|Script(?:Alias|AliasMatch|InterpreterSource|Log|LogBuffer|LogLength|Sock)?|SecureListen|SeeRequestTail|SendBufferSize|Server(?:Admin|Alias|Limit|Name|Path|Root|Signature|Tokens)|Session(?:Cookie(?:Name|Name2|Remove)|Crypto(?:Cipher|Driver|Passphrase|PassphraseFile)|DBD(?:CookieName|CookieName2|CookieRemove|DeleteLabel|InsertLabel|PerUser|SelectLabel|UpdateLabel)|Env|Exclude|Header|Include|MaxAge)?|SetEnv|SetEnvIf|SetEnvIfExpr|SetEnvIfNoCase|SetHandler|SetInputFilter|SetOutputFilter|SSIEndTag|SSIErrorMsg|SSIETag|SSILastModified|SSILegacyExprParser|SSIStartTag|SSITimeFormat|SSIUndefinedEcho|SSL(?:CACertificateFile|CACertificatePath|CADNRequestFile|CADNRequestPath|CARevocationCheck|CARevocationFile|CARevocationPath|CertificateChainFile|CertificateFile|CertificateKeyFile|CipherSuite|Compression|CryptoDevice|Engine|FIPS|HonorCipherOrder|InsecureRenegotiation|OCSP(?:DefaultResponder|Enable|OverrideResponder|ResponderTimeout|ResponseMaxAge|ResponseTimeSkew|UseRequestNonce)|OpenSSLConfCmd|Options|PassPhraseDialog|Protocol|Proxy(?:CACertificateFile|CACertificatePath|CARevocation(?:Check|File|Path)|CheckPeer(?:CN|Expire|Name)|CipherSuite|Engine|MachineCertificate(?:ChainFile|File|Path)|Protocol|Verify|VerifyDepth)|RandomSeed|RenegBufferSize|Require|RequireSSL|Session(?:Cache|CacheTimeout|TicketKeyFile|Tickets)|SRPUnknownUserSeed|SRPVerifierFile|Stapling(?:Cache|ErrorCacheTimeout|FakeTryLater|ForceURL|ResponderTimeout|ResponseMaxAge|ResponseTimeSkew|ReturnResponderErrors|StandardCacheTimeout)|StrictSNIVHostCheck|UserName|UseStapling|VerifyClient|VerifyDepth)|StartServers|StartThreads|Substitute|Suexec|SuexecUserGroup|ThreadLimit|ThreadsPerChild|ThreadStackSize|TimeOut|TraceEnable|TransferLog|TypesConfig|UnDefine|UndefMacro|UnsetEnv|Use|UseCanonicalName|UseCanonicalPhysicalPort|User|UserDir|VHostCGIMode|VHostCGIPrivs|VHostGroup|VHostPrivs|VHostSecure|VHostUser|Virtual(?:DocumentRoot|ScriptAlias)(?:IP)?|WatchdogInterval|XBitHack|xml2EncAlias|xml2EncDefault|xml2StartParse)\b/im,lookbehind:!0,alias:"property"},"directive-block":{pattern:/<\/?\b(?:Auth[nz]ProviderAlias|Directory|DirectoryMatch|Else|ElseIf|Files|FilesMatch|If|IfDefine|IfModule|IfVersion|Limit|LimitExcept|Location|LocationMatch|Macro|Proxy|Require(?:All|Any|None)|VirtualHost)\b.*>/i,inside:{"directive-block":{pattern:/^<\/?\w+/,inside:{punctuation:/^<\/?/},alias:"tag"},"directive-block-parameter":{pattern:/.*[^>]/,inside:{punctuation:/:/,string:{pattern:/("|').*\1/,inside:{variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/}}},alias:"attr-value"},punctuation:/>/},alias:"tag"},"directive-flags":{pattern:/\[(?:[\w=],?)+\]/,alias:"keyword"},string:{pattern:/("|').*\1/,inside:{variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/}},variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/,regex:/\^?.*\$|\^.*\$?/}}return Xc}var Zc,Vx;function zy(){if(Vx)return Zc;Vx=1,Zc=e,e.displayName="sql",e.aliases=[];function e(t){t.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/}}return Zc}var Jc,Yx;function $te(){if(Yx)return Jc;Yx=1;var e=zy();Jc=t,t.displayName="apex",t.aliases=[];function t(r){r.register(e),function(n){var a=/\b(?:(?:after|before)(?=\s+[a-z])|abstract|activate|and|any|array|as|asc|autonomous|begin|bigdecimal|blob|boolean|break|bulk|by|byte|case|cast|catch|char|class|collect|commit|const|continue|currency|date|datetime|decimal|default|delete|desc|do|double|else|end|enum|exception|exit|export|extends|final|finally|float|for|from|get(?=\s*[{};])|global|goto|group|having|hint|if|implements|import|in|inner|insert|instanceof|int|integer|interface|into|join|like|limit|list|long|loop|map|merge|new|not|null|nulls|number|object|of|on|or|outer|override|package|parallel|pragma|private|protected|public|retrieve|return|rollback|select|set|short|sObject|sort|static|string|super|switch|synchronized|system|testmethod|then|this|throw|time|transaction|transient|trigger|try|undelete|update|upsert|using|virtual|void|webservice|when|where|while|(?:inherited|with|without)\s+sharing)\b/i,i=/\b(?:(?=[a-z_]\w*\s*[<\[])|(?!))[A-Z_]\w*(?:\s*\.\s*[A-Z_]\w*)*\b(?:\s*(?:\[\s*\]|<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>))*/.source.replace(//g,function(){return a.source});function o(l){return RegExp(l.replace(//g,function(){return i}),"i")}var s={keyword:a,punctuation:/[()\[\]{};,:.<>]/};n.languages.apex={comment:n.languages.clike.comment,string:n.languages.clike.string,sql:{pattern:/((?:[=,({:]|\breturn)\s*)\[[^\[\]]*\]/i,lookbehind:!0,greedy:!0,alias:"language-sql",inside:n.languages.sql},annotation:{pattern:/@\w+\b/,alias:"punctuation"},"class-name":[{pattern:o(/(\b(?:class|enum|extends|implements|instanceof|interface|new|trigger\s+\w+\s+on)\s+)/.source),lookbehind:!0,inside:s},{pattern:o(/(\(\s*)(?=\s*\)\s*[\w(])/.source),lookbehind:!0,inside:s},{pattern:o(/(?=\s*\w+\s*[;=,(){:])/.source),inside:s}],trigger:{pattern:/(\btrigger\s+)\w+\b/i,lookbehind:!0,alias:"class-name"},keyword:a,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/(?:\B\.\d+|\b\d+(?:\.\d+|L)?)\b/i,operator:/[!=](?:==?)?|\?\.?|&&|\|\||--|\+\+|[-+*/^&|]=?|:|<{1,3}=?/,punctuation:/[()\[\]{};,.]/}}(r)}return Jc}var Qc,Kx;function jte(){if(Kx)return Qc;Kx=1,Qc=e,e.displayName="apl",e.aliases=[];function e(t){t.languages.apl={comment:/(?:⍝|#[! ]).*$/m,string:{pattern:/'(?:[^'\r\n]|'')*'/,greedy:!0},number:/¯?(?:\d*\.?\b\d+(?:e[+¯]?\d+)?|¯|∞)(?:j¯?(?:(?:\d+(?:\.\d+)?|\.\d+)(?:e[+¯]?\d+)?|¯|∞))?/i,statement:/:[A-Z][a-z][A-Za-z]*\b/,"system-function":{pattern:/⎕[A-Z]+/i,alias:"function"},constant:/[⍬⌾#⎕⍞]/,function:/[-+×÷⌈⌊∣|⍳⍸?*⍟○!⌹<≤=>≥≠≡≢∊⍷∪∩~∨∧⍱⍲⍴,⍪⌽⊖⍉↑↓⊂⊃⊆⊇⌷⍋⍒⊤⊥⍕⍎⊣⊢⍁⍂≈⍯↗¤→]/,"monadic-operator":{pattern:/[\\\/⌿⍀¨⍨⌶&∥]/,alias:"operator"},"dyadic-operator":{pattern:/[.⍣⍠⍤∘⌸@⌺⍥]/,alias:"operator"},assignment:{pattern:/←/,alias:"keyword"},punctuation:/[\[;\]()◇⋄]/,dfn:{pattern:/[{}⍺⍵⍶⍹∇⍫:]/,alias:"builtin"}}}return Qc}var ed,Xx;function Fte(){if(Xx)return ed;Xx=1,ed=e,e.displayName="applescript",e.aliases=[];function e(t){t.languages.applescript={comment:[/\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[\s\S])*?\*\)/,/--.+/,/#.+/],string:/"(?:\\.|[^"\\\r\n])*"/,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e-?\d+)?\b/i,operator:[/[&=≠≤≥*+\-\/÷^]|[<>]=?/,/\b(?:(?:begin|end|start)s? with|(?:contains?|(?:does not|doesn't) contain)|(?:is|isn't|is not) (?:contained by|in)|(?:(?:is|isn't|is not) )?(?:greater|less) than(?: or equal)?(?: to)?|(?:comes|(?:does not|doesn't) come) (?:after|before)|(?:is|isn't|is not) equal(?: to)?|(?:(?:does not|doesn't) equal|equal to|equals|is not|isn't)|(?:a )?(?:ref(?: to)?|reference to)|(?:and|as|div|mod|not|or))\b/],keyword:/\b(?:about|above|after|against|apart from|around|aside from|at|back|before|beginning|behind|below|beneath|beside|between|but|by|considering|continue|copy|does|eighth|else|end|equal|error|every|exit|false|fifth|first|for|fourth|from|front|get|given|global|if|ignoring|in|instead of|into|is|it|its|last|local|me|middle|my|ninth|of|on|onto|out of|over|prop|property|put|repeat|return|returning|second|set|seventh|since|sixth|some|tell|tenth|that|the|then|third|through|thru|timeout|times|to|transaction|true|try|until|where|while|whose|with|without)\b/,"class-name":/\b(?:POSIX file|RGB color|alias|application|boolean|centimeters|centimetres|class|constant|cubic centimeters|cubic centimetres|cubic feet|cubic inches|cubic meters|cubic metres|cubic yards|date|degrees Celsius|degrees Fahrenheit|degrees Kelvin|feet|file|gallons|grams|inches|integer|kilograms|kilometers|kilometres|list|liters|litres|meters|metres|miles|number|ounces|pounds|quarts|real|record|reference|script|square feet|square kilometers|square kilometres|square meters|square metres|square miles|square yards|text|yards)\b/,punctuation:/[{}():,¬«»《》]/}}return ed}var td,Zx;function Bte(){if(Zx)return td;Zx=1,td=e,e.displayName="aql",e.aliases=[];function e(t){t.languages.aql={comment:/\/\/.*|\/\*[\s\S]*?\*\//,property:{pattern:/([{,]\s*)(?:(?!\d)\w+|(["'´`])(?:(?!\2)[^\\\r\n]|\\.)*\2)(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\.)*\1/,greedy:!0},identifier:{pattern:/([´`])(?:(?!\1)[^\\\r\n]|\\.)*\1/,greedy:!0},variable:/@@?\w+/,keyword:[{pattern:/(\bWITH\s+)COUNT(?=\s+INTO\b)/i,lookbehind:!0},/\b(?:AGGREGATE|ALL|AND|ANY|ASC|COLLECT|DESC|DISTINCT|FILTER|FOR|GRAPH|IN|INBOUND|INSERT|INTO|K_PATHS|K_SHORTEST_PATHS|LET|LIKE|LIMIT|NONE|NOT|NULL|OR|OUTBOUND|REMOVE|REPLACE|RETURN|SHORTEST_PATH|SORT|UPDATE|UPSERT|WINDOW|WITH)\b/i,{pattern:/(^|[^\w.[])(?:KEEP|PRUNE|SEARCH|TO)\b/i,lookbehind:!0},{pattern:/(^|[^\w.[])(?:CURRENT|NEW|OLD)\b/,lookbehind:!0},{pattern:/\bOPTIONS(?=\s*\{)/i}],function:/\b(?!\d)\w+(?=\s*\()/,boolean:/\b(?:false|true)\b/i,range:{pattern:/\.\./,alias:"operator"},number:[/\b0b[01]+/i,/\b0x[0-9a-f]+/i,/(?:\B\.\d+|\b(?:0|[1-9]\d*)(?:\.\d+)?)(?:e[+-]?\d+)?/i],operator:/\*{2,}|[=!]~|[!=<>]=?|&&|\|\||[-+*/%]/,punctuation:/::|[?.:,;()[\]{}]/}}return td}var rd,Jx;function ca(){if(Jx)return rd;Jx=1,rd=e,e.displayName="c",e.aliases=[];function e(t){t.languages.c=t.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),t.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),t.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},t.languages.c.string],char:t.languages.c.char,comment:t.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:t.languages.c}}}}),t.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete t.languages.c.boolean}return rd}var nd,Qx;function qy(){if(Qx)return nd;Qx=1;var e=ca();nd=t,t.displayName="cpp",t.aliases=[];function t(r){r.register(e),function(n){var a=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,i=/\b(?!)\w+(?:\s*\.\s*\w+)*\b/.source.replace(//g,function(){return a.source});n.languages.cpp=n.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!)\w+/.source.replace(//g,function(){return a.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:a,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),n.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/(?:\s*:\s*)?|:\s*/.source.replace(//g,function(){return i})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),n.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:n.languages.cpp}}}}),n.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),n.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:n.languages.extend("cpp",{})}}),n.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},n.languages.cpp["base-clause"])}(r)}return nd}var ad,ew;function Ute(){if(ew)return ad;ew=1;var e=qy();ad=t,t.displayName="arduino",t.aliases=["ino"];function t(r){r.register(e),r.languages.arduino=r.languages.extend("cpp",{keyword:/\b(?:String|array|bool|boolean|break|byte|case|catch|continue|default|do|double|else|finally|for|function|goto|if|in|instanceof|int|integer|long|loop|new|null|return|setup|string|switch|throw|try|void|while|word)\b/,constant:/\b(?:ANALOG_MESSAGE|DEFAULT|DIGITAL_MESSAGE|EXTERNAL|FIRMATA_STRING|HIGH|INPUT|INPUT_PULLUP|INTERNAL|INTERNAL1V1|INTERNAL2V56|LED_BUILTIN|LOW|OUTPUT|REPORT_ANALOG|REPORT_DIGITAL|SET_PIN_MODE|SYSEX_START|SYSTEM_RESET)\b/,builtin:/\b(?:Audio|BSSID|Bridge|Client|Console|EEPROM|Esplora|EsploraTFT|Ethernet|EthernetClient|EthernetServer|EthernetUDP|File|FileIO|FileSystem|Firmata|GPRS|GSM|GSMBand|GSMClient|GSMModem|GSMPIN|GSMScanner|GSMServer|GSMVoiceCall|GSM_SMS|HttpClient|IPAddress|IRread|Keyboard|KeyboardController|LiquidCrystal|LiquidCrystal_I2C|Mailbox|Mouse|MouseController|PImage|Process|RSSI|RobotControl|RobotMotor|SD|SPI|SSID|Scheduler|Serial|Server|Servo|SoftwareSerial|Stepper|Stream|TFT|Task|USBHost|WiFi|WiFiClient|WiFiServer|WiFiUDP|Wire|YunClient|YunServer|abs|addParameter|analogRead|analogReadResolution|analogReference|analogWrite|analogWriteResolution|answerCall|attach|attachGPRS|attachInterrupt|attached|autoscroll|available|background|beep|begin|beginPacket|beginSD|beginSMS|beginSpeaker|beginTFT|beginTransmission|beginWrite|bit|bitClear|bitRead|bitSet|bitWrite|blink|blinkVersion|buffer|changePIN|checkPIN|checkPUK|checkReg|circle|cityNameRead|cityNameWrite|clear|clearScreen|click|close|compassRead|config|connect|connected|constrain|cos|countryNameRead|countryNameWrite|createChar|cursor|debugPrint|delay|delayMicroseconds|detach|detachInterrupt|digitalRead|digitalWrite|disconnect|display|displayLogos|drawBMP|drawCompass|encryptionType|end|endPacket|endSMS|endTransmission|endWrite|exists|exitValue|fill|find|findUntil|flush|gatewayIP|get|getAsynchronously|getBand|getButton|getCurrentCarrier|getIMEI|getKey|getModifiers|getOemKey|getPINUsed|getResult|getSignalStrength|getSocket|getVoiceCallStatus|getXChange|getYChange|hangCall|height|highByte|home|image|interrupts|isActionDone|isDirectory|isListening|isPIN|isPressed|isValid|keyPressed|keyReleased|keyboardRead|knobRead|leftToRight|line|lineFollowConfig|listen|listenOnLocalhost|loadImage|localIP|lowByte|macAddress|maintain|map|max|messageAvailable|micros|millis|min|mkdir|motorsStop|motorsWrite|mouseDragged|mouseMoved|mousePressed|mouseReleased|move|noAutoscroll|noBlink|noBuffer|noCursor|noDisplay|noFill|noInterrupts|noListenOnLocalhost|noStroke|noTone|onReceive|onRequest|open|openNextFile|overflow|parseCommand|parseFloat|parseInt|parsePacket|pauseMode|peek|pinMode|playFile|playMelody|point|pointTo|position|pow|prepare|press|print|printFirmwareVersion|printVersion|println|process|processInput|pulseIn|put|random|randomSeed|read|readAccelerometer|readBlue|readButton|readBytes|readBytesUntil|readGreen|readJoystickButton|readJoystickSwitch|readJoystickX|readJoystickY|readLightSensor|readMessage|readMicrophone|readNetworks|readRed|readSlider|readString|readStringUntil|readTemperature|ready|rect|release|releaseAll|remoteIP|remoteNumber|remotePort|remove|requestFrom|retrieveCallingNumber|rewindDirectory|rightToLeft|rmdir|robotNameRead|robotNameWrite|run|runAsynchronously|runShellCommand|runShellCommandAsynchronously|running|scanNetworks|scrollDisplayLeft|scrollDisplayRight|seek|sendAnalog|sendDigitalPortPair|sendDigitalPorts|sendString|sendSysex|serialEvent|setBand|setBitOrder|setClockDivider|setCursor|setDNS|setDataMode|setFirmwareVersion|setMode|setPINUsed|setSpeed|setTextSize|setTimeout|shiftIn|shiftOut|shutdown|sin|size|sqrt|startLoop|step|stop|stroke|subnetMask|switchPIN|tan|tempoWrite|text|tone|transfer|tuneWrite|turn|updateIR|userNameRead|userNameWrite|voiceCall|waitContinue|width|write|writeBlue|writeGreen|writeJSON|writeMessage|writeMicroseconds|writeRGB|writeRed|yield)\b/}),r.languages.ino=r.languages.arduino}return ad}var id,tw;function Gte(){if(tw)return id;tw=1,id=e,e.displayName="arff",e.aliases=[];function e(t){t.languages.arff={comment:/%.*/,string:{pattern:/(["'])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:/@(?:attribute|data|end|relation)\b/i,number:/\b\d+(?:\.\d+)?\b/,punctuation:/[{},]/}}return id}var od,rw;function zte(){if(rw)return od;rw=1,od=e,e.displayName="asciidoc",e.aliases=["adoc"];function e(t){(function(r){var n={pattern:/(^[ \t]*)\[(?!\[)(?:(["'$`])(?:(?!\2)[^\\]|\\.)*\2|\[(?:[^\[\]\\]|\\.)*\]|[^\[\]\\"'$`]|\\.)*\]/m,lookbehind:!0,inside:{quoted:{pattern:/([$`])(?:(?!\1)[^\\]|\\.)*\1/,inside:{punctuation:/^[$`]|[$`]$/}},interpreted:{pattern:/'(?:[^'\\]|\\.)*'/,inside:{punctuation:/^'|'$/}},string:/"(?:[^"\\]|\\.)*"/,variable:/\w+(?==)/,punctuation:/^\[|\]$|,/,operator:/=/,"attr-value":/(?!^\s+$).+/}},a=r.languages.asciidoc={"comment-block":{pattern:/^(\/{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1/m,alias:"comment"},table:{pattern:/^\|={3,}(?:(?:\r?\n|\r(?!\n)).*)*?(?:\r?\n|\r)\|={3,}$/m,inside:{specifiers:{pattern:/(?:(?:(?:\d+(?:\.\d+)?|\.\d+)[+*](?:[<^>](?:\.[<^>])?|\.[<^>])?|[<^>](?:\.[<^>])?|\.[<^>])[a-z]*|[a-z]+)(?=\|)/,alias:"attr-value"},punctuation:{pattern:/(^|[^\\])[|!]=*/,lookbehind:!0}}},"passthrough-block":{pattern:/^(\+{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m,inside:{punctuation:/^\++|\++$/}},"literal-block":{pattern:/^(-{4,}|\.{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m,inside:{punctuation:/^(?:-+|\.+)|(?:-+|\.+)$/}},"other-block":{pattern:/^(--|\*{4,}|_{4,}|={4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m,inside:{punctuation:/^(?:-+|\*+|_+|=+)|(?:-+|\*+|_+|=+)$/}},"list-punctuation":{pattern:/(^[ \t]*)(?:-|\*{1,5}|\.{1,5}|(?:[a-z]|\d+)\.|[xvi]+\))(?= )/im,lookbehind:!0,alias:"punctuation"},"list-label":{pattern:/(^[ \t]*)[a-z\d].+(?::{2,4}|;;)(?=\s)/im,lookbehind:!0,alias:"symbol"},"indented-block":{pattern:/((\r?\n|\r)\2)([ \t]+)\S.*(?:(?:\r?\n|\r)\3.+)*(?=\2{2}|$)/,lookbehind:!0},comment:/^\/\/.*/m,title:{pattern:/^.+(?:\r?\n|\r)(?:={3,}|-{3,}|~{3,}|\^{3,}|\+{3,})$|^={1,5} .+|^\.(?![\s.]).*/m,alias:"important",inside:{punctuation:/^(?:\.|=+)|(?:=+|-+|~+|\^+|\++)$/}},"attribute-entry":{pattern:/^:[^:\r\n]+:(?: .*?(?: \+(?:\r?\n|\r).*?)*)?$/m,alias:"tag"},attributes:n,hr:{pattern:/^'{3,}$/m,alias:"punctuation"},"page-break":{pattern:/^<{3,}$/m,alias:"punctuation"},admonition:{pattern:/^(?:CAUTION|IMPORTANT|NOTE|TIP|WARNING):/m,alias:"keyword"},callout:[{pattern:/(^[ \t]*)/m,lookbehind:!0,alias:"symbol"},{pattern:/<\d+>/,alias:"symbol"}],macro:{pattern:/\b[a-z\d][a-z\d-]*::?(?:[^\s\[\]]*\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:{function:/^[a-z\d-]+(?=:)/,punctuation:/^::?/,attributes:{pattern:/(?:\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:n.inside}}},inline:{pattern:/(^|[^\\])(?:(?:\B\[(?:[^\]\\"']|(["'])(?:(?!\2)[^\\]|\\.)*\2|\\.)*\])?(?:\b_(?!\s)(?: _|[^_\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: _|[^_\\\r\n]|\\.)+)*_\b|\B``(?!\s).+?(?:(?:\r?\n|\r).+?)*''\B|\B`(?!\s)(?:[^`'\s]|\s+\S)+['`]\B|\B(['*+#])(?!\s)(?: \3|(?!\3)[^\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: \3|(?!\3)[^\\\r\n]|\\.)+)*\3\B)|(?:\[(?:[^\]\\"']|(["'])(?:(?!\4)[^\\]|\\.)*\4|\\.)*\])?(?:(__|\*\*|\+\+\+?|##|\$\$|[~^]).+?(?:(?:\r?\n|\r).+?)*\5|\{[^}\r\n]+\}|\[\[\[?.+?(?:(?:\r?\n|\r).+?)*\]?\]\]|<<.+?(?:(?:\r?\n|\r).+?)*>>|\(\(\(?.+?(?:(?:\r?\n|\r).+?)*\)?\)\)))/m,lookbehind:!0,inside:{attributes:n,url:{pattern:/^(?:\[\[\[?.+?\]?\]\]|<<.+?>>)$/,inside:{punctuation:/^(?:\[\[\[?|<<)|(?:\]\]\]?|>>)$/}},"attribute-ref":{pattern:/^\{.+\}$/,inside:{variable:{pattern:/(^\{)[a-z\d,+_-]+/,lookbehind:!0},operator:/^[=?!#%@$]|!(?=[:}])/,punctuation:/^\{|\}$|::?/}},italic:{pattern:/^(['_])[\s\S]+\1$/,inside:{punctuation:/^(?:''?|__?)|(?:''?|__?)$/}},bold:{pattern:/^\*[\s\S]+\*$/,inside:{punctuation:/^\*\*?|\*\*?$/}},punctuation:/^(?:``?|\+{1,3}|##?|\$\$|[~^]|\(\(\(?)|(?:''?|\+{1,3}|##?|\$\$|[~^`]|\)?\)\))$/}},replacement:{pattern:/\((?:C|R|TM)\)/,alias:"builtin"},entity:/&#?[\da-z]{1,8};/i,"line-continuation":{pattern:/(^| )\+$/m,lookbehind:!0,alias:"punctuation"}};function i(o){o=o.split(" ");for(var s={},l=0,c=o.length;l>=?|<<=?|&&?|\|\|?|[-+*/%&|^!=<>?]=?/,punctuation:/[(),:]/}}return ld}var ud,iw;function Mu(){if(iw)return ud;iw=1,ud=e,e.displayName="csharp",e.aliases=["dotnet","cs"];function e(t){(function(r){function n(ae,re){return ae.replace(/<<(\d+)>>/g,function(ue,Se){return"(?:"+re[+Se]+")"})}function a(ae,re,ue){return RegExp(n(ae,re),ue||"")}function i(ae,re){for(var ue=0;ue>/g,function(){return"(?:"+ae+")"});return ae.replace(/<>/g,"[^\\s\\S]")}var o={type:"bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",typeDeclaration:"class enum interface record struct",contextual:"add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",other:"abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield"};function s(ae){return"\\b(?:"+ae.trim().replace(/ /g,"|")+")\\b"}var l=s(o.typeDeclaration),c=RegExp(s(o.type+" "+o.typeDeclaration+" "+o.contextual+" "+o.other)),d=s(o.typeDeclaration+" "+o.contextual+" "+o.other),p=s(o.type+" "+o.typeDeclaration+" "+o.other),g=i(/<(?:[^<>;=+\-*/%&|^]|<>)*>/.source,2),m=i(/\((?:[^()]|<>)*\)/.source,2),b=/@?\b[A-Za-z_]\w*\b/.source,v=n(/<<0>>(?:\s*<<1>>)?/.source,[b,g]),S=n(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[d,v]),O=/\[\s*(?:,\s*)*\]/.source,_=n(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[S,O]),w=n(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[g,m,O]),A=n(/\(<<0>>+(?:,<<0>>+)+\)/.source,[w]),x=n(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[A,S,O]),E={keyword:c,punctuation:/[<>()?,.:[\]]/},k=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,C=/"(?:\\.|[^\\"\r\n])*"/.source,I=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;r.languages.csharp=r.languages.extend("clike",{string:[{pattern:a(/(^|[^$\\])<<0>>/.source,[I]),lookbehind:!0,greedy:!0},{pattern:a(/(^|[^@$\\])<<0>>/.source,[C]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:a(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[S]),lookbehind:!0,inside:E},{pattern:a(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[b,x]),lookbehind:!0,inside:E},{pattern:a(/(\busing\s+)<<0>>(?=\s*=)/.source,[b]),lookbehind:!0},{pattern:a(/(\b<<0>>\s+)<<1>>/.source,[l,v]),lookbehind:!0,inside:E},{pattern:a(/(\bcatch\s*\(\s*)<<0>>/.source,[S]),lookbehind:!0,inside:E},{pattern:a(/(\bwhere\s+)<<0>>/.source,[b]),lookbehind:!0},{pattern:a(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[_]),lookbehind:!0,inside:E},{pattern:a(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[x,p,b]),inside:E}],keyword:c,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),r.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),r.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:a(/([(,]\s*)<<0>>(?=\s*:)/.source,[b]),lookbehind:!0,alias:"punctuation"}}),r.languages.insertBefore("csharp","class-name",{namespace:{pattern:a(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[b]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:a(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[m]),lookbehind:!0,alias:"class-name",inside:E},"return-type":{pattern:a(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[x,S]),inside:E,alias:"class-name"},"constructor-invocation":{pattern:a(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[x]),lookbehind:!0,inside:E,alias:"class-name"},"generic-method":{pattern:a(/<<0>>\s*<<1>>(?=\s*\()/.source,[b,g]),inside:{function:a(/^<<0>>/.source,[b]),generic:{pattern:RegExp(g),alias:"class-name",inside:E}}},"type-list":{pattern:a(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[l,v,b,x,c.source,m,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:a(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[v,m]),lookbehind:!0,greedy:!0,inside:r.languages.csharp},keyword:c,"class-name":{pattern:RegExp(x),greedy:!0,inside:E},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var N=C+"|"+k,D=n(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[N]),j=i(n(/[^"'/()]|<<0>>|\(<>*\)/.source,[D]),2),q=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,H=n(/<<0>>(?:\s*\(<<1>>*\))?/.source,[S,j]);r.languages.insertBefore("csharp","class-name",{attribute:{pattern:a(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[q,H]),lookbehind:!0,greedy:!0,inside:{target:{pattern:a(/^<<0>>(?=\s*:)/.source,[q]),alias:"keyword"},"attribute-arguments":{pattern:a(/\(<<0>>*\)/.source,[j]),inside:r.languages.csharp},"class-name":{pattern:RegExp(S),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var z=/:[^}\r\n]+/.source,W=i(n(/[^"'/()]|<<0>>|\(<>*\)/.source,[D]),2),K=n(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[W,z]),G=i(n(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<>*\)/.source,[N]),2),V=n(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[G,z]);function J(ae,re){return{interpolation:{pattern:a(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[ae]),lookbehind:!0,inside:{"format-string":{pattern:a(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[re,z]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:r.languages.csharp}}},string:/[\s\S]+/}}r.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:a(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[K]),lookbehind:!0,greedy:!0,inside:J(K,W)},{pattern:a(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[V]),lookbehind:!0,greedy:!0,inside:J(V,G)}],char:{pattern:RegExp(k),greedy:!0}}),r.languages.dotnet=r.languages.cs=r.languages.csharp})(t)}return ud}var cd,ow;function Wte(){if(ow)return cd;ow=1;var e=Mu();cd=t,t.displayName="aspnet",t.aliases=[];function t(r){r.register(e),r.languages.aspnet=r.languages.extend("markup",{"page-directive":{pattern:/<%\s*@.*%>/,alias:"tag",inside:{"page-directive":{pattern:/<%\s*@\s*(?:Assembly|Control|Implements|Import|Master(?:Type)?|OutputCache|Page|PreviousPageType|Reference|Register)?|%>/i,alias:"tag"},rest:r.languages.markup.tag.inside}},directive:{pattern:/<%.*%>/,alias:"tag",inside:{directive:{pattern:/<%\s*?[$=%#:]{0,2}|%>/,alias:"tag"},rest:r.languages.csharp}}}),r.languages.aspnet.tag.pattern=/<(?!%)\/?[^\s>\/]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,r.languages.insertBefore("inside","punctuation",{directive:r.languages.aspnet.directive},r.languages.aspnet.tag.inside["attr-value"]),r.languages.insertBefore("aspnet","comment",{"asp-comment":{pattern:/<%--[\s\S]*?--%>/,alias:["asp","comment"]}}),r.languages.insertBefore("aspnet",r.languages.javascript?"script":"tag",{"asp-script":{pattern:/(]*>)[\s\S]*?(?=<\/script>)/i,lookbehind:!0,alias:["asp","script"],inside:r.languages.csharp||{}}})}return cd}var dd,sw;function Vte(){if(sw)return dd;sw=1,dd=e,e.displayName="autohotkey",e.aliases=[];function e(t){t.languages.autohotkey={comment:[{pattern:/(^|\s);.*/,lookbehind:!0},{pattern:/(^[\t ]*)\/\*(?:[\r\n](?![ \t]*\*\/)|[^\r\n])*(?:[\r\n][ \t]*\*\/)?/m,lookbehind:!0,greedy:!0}],tag:{pattern:/^([ \t]*)[^\s,`":]+(?=:[ \t]*$)/m,lookbehind:!0},string:/"(?:[^"\n\r]|"")*"/,variable:/%\w+%/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/\?|\/\/?=?|:=|\|[=|]?|&[=&]?|\+[=+]?|-[=-]?|\*[=*]?|<(?:<=?|>|=)?|>>?=?|[.^!=~]=?|\b(?:AND|NOT|OR)\b/,boolean:/\b(?:false|true)\b/,selector:/\b(?:AutoTrim|BlockInput|Break|Click|ClipWait|Continue|Control|ControlClick|ControlFocus|ControlGet|ControlGetFocus|ControlGetPos|ControlGetText|ControlMove|ControlSend|ControlSendRaw|ControlSetText|CoordMode|Critical|DetectHiddenText|DetectHiddenWindows|Drive|DriveGet|DriveSpaceFree|EnvAdd|EnvDiv|EnvGet|EnvMult|EnvSet|EnvSub|EnvUpdate|Exit|ExitApp|FileAppend|FileCopy|FileCopyDir|FileCreateDir|FileCreateShortcut|FileDelete|FileEncoding|FileGetAttrib|FileGetShortcut|FileGetSize|FileGetTime|FileGetVersion|FileInstall|FileMove|FileMoveDir|FileRead|FileReadLine|FileRecycle|FileRecycleEmpty|FileRemoveDir|FileSelectFile|FileSelectFolder|FileSetAttrib|FileSetTime|FormatTime|GetKeyState|Gosub|Goto|GroupActivate|GroupAdd|GroupClose|GroupDeactivate|Gui|GuiControl|GuiControlGet|Hotkey|ImageSearch|IniDelete|IniRead|IniWrite|Input|InputBox|KeyWait|ListHotkeys|ListLines|ListVars|Loop|Menu|MouseClick|MouseClickDrag|MouseGetPos|MouseMove|MsgBox|OnExit|OutputDebug|Pause|PixelGetColor|PixelSearch|PostMessage|Process|Progress|Random|RegDelete|RegRead|RegWrite|Reload|Repeat|Return|Run|RunAs|RunWait|Send|SendEvent|SendInput|SendMessage|SendMode|SendPlay|SendRaw|SetBatchLines|SetCapslockState|SetControlDelay|SetDefaultMouseSpeed|SetEnv|SetFormat|SetKeyDelay|SetMouseDelay|SetNumlockState|SetRegView|SetScrollLockState|SetStoreCapslockMode|SetTimer|SetTitleMatchMode|SetWinDelay|SetWorkingDir|Shutdown|Sleep|Sort|SoundBeep|SoundGet|SoundGetWaveVolume|SoundPlay|SoundSet|SoundSetWaveVolume|SplashImage|SplashTextOff|SplashTextOn|SplitPath|StatusBarGetText|StatusBarWait|StringCaseSense|StringGetPos|StringLeft|StringLen|StringLower|StringMid|StringReplace|StringRight|StringSplit|StringTrimLeft|StringTrimRight|StringUpper|Suspend|SysGet|Thread|ToolTip|Transform|TrayTip|URLDownloadToFile|WinActivate|WinActivateBottom|WinClose|WinGet|WinGetActiveStats|WinGetActiveTitle|WinGetClass|WinGetPos|WinGetText|WinGetTitle|WinHide|WinKill|WinMaximize|WinMenuSelectItem|WinMinimize|WinMinimizeAll|WinMinimizeAllUndo|WinMove|WinRestore|WinSet|WinSetTitle|WinShow|WinWait|WinWaitActive|WinWaitClose|WinWaitNotActive)\b/i,constant:/\b(?:a_ahkpath|a_ahkversion|a_appdata|a_appdatacommon|a_autotrim|a_batchlines|a_caretx|a_carety|a_computername|a_controldelay|a_cursor|a_dd|a_ddd|a_dddd|a_defaultmousespeed|a_desktop|a_desktopcommon|a_detecthiddentext|a_detecthiddenwindows|a_endchar|a_eventinfo|a_exitreason|a_fileencoding|a_formatfloat|a_formatinteger|a_gui|a_guicontrol|a_guicontrolevent|a_guievent|a_guiheight|a_guiwidth|a_guix|a_guiy|a_hour|a_iconfile|a_iconhidden|a_iconnumber|a_icontip|a_index|a_ipaddress1|a_ipaddress2|a_ipaddress3|a_ipaddress4|a_is64bitos|a_isadmin|a_iscompiled|a_iscritical|a_ispaused|a_issuspended|a_isunicode|a_keydelay|a_language|a_lasterror|a_linefile|a_linenumber|a_loopfield|a_loopfileattrib|a_loopfiledir|a_loopfileext|a_loopfilefullpath|a_loopfilelongpath|a_loopfilename|a_loopfileshortname|a_loopfileshortpath|a_loopfilesize|a_loopfilesizekb|a_loopfilesizemb|a_loopfiletimeaccessed|a_loopfiletimecreated|a_loopfiletimemodified|a_loopreadline|a_loopregkey|a_loopregname|a_loopregsubkey|a_loopregtimemodified|a_loopregtype|a_mday|a_min|a_mm|a_mmm|a_mmmm|a_mon|a_mousedelay|a_msec|a_mydocuments|a_now|a_nowutc|a_numbatchlines|a_ostype|a_osversion|a_priorhotkey|a_priorkey|a_programfiles|a_programs|a_programscommon|a_ptrsize|a_regview|a_screendpi|a_screenheight|a_screenwidth|a_scriptdir|a_scriptfullpath|a_scripthwnd|a_scriptname|a_sec|a_space|a_startmenu|a_startmenucommon|a_startup|a_startupcommon|a_stringcasesense|a_tab|a_temp|a_thisfunc|a_thishotkey|a_thislabel|a_thismenu|a_thismenuitem|a_thismenuitempos|a_tickcount|a_timeidle|a_timeidlephysical|a_timesincepriorhotkey|a_timesincethishotkey|a_titlematchmode|a_titlematchmodespeed|a_username|a_wday|a_windelay|a_windir|a_workingdir|a_yday|a_year|a_yweek|a_yyyy|clipboard|clipboardall|comspec|errorlevel|programfiles)\b/i,builtin:/\b(?:abs|acos|asc|asin|atan|ceil|chr|class|comobjactive|comobjarray|comobjconnect|comobjcreate|comobjerror|comobjflags|comobjget|comobjquery|comobjtype|comobjvalue|cos|dllcall|exp|fileexist|Fileopen|floor|format|il_add|il_create|il_destroy|instr|isfunc|islabel|IsObject|ln|log|ltrim|lv_add|lv_delete|lv_deletecol|lv_getcount|lv_getnext|lv_gettext|lv_insert|lv_insertcol|lv_modify|lv_modifycol|lv_setimagelist|mod|numget|numput|onmessage|regexmatch|regexreplace|registercallback|round|rtrim|sb_seticon|sb_setparts|sb_settext|sin|sqrt|strlen|strreplace|strsplit|substr|tan|tv_add|tv_delete|tv_get|tv_getchild|tv_getcount|tv_getnext|tv_getparent|tv_getprev|tv_getselection|tv_gettext|tv_modify|varsetcapacity|winactive|winexist|__Call|__Get|__New|__Set)\b/i,symbol:/\b(?:alt|altdown|altup|appskey|backspace|browser_back|browser_favorites|browser_forward|browser_home|browser_refresh|browser_search|browser_stop|bs|capslock|ctrl|ctrlbreak|ctrldown|ctrlup|del|delete|down|end|enter|esc|escape|f1|f10|f11|f12|f13|f14|f15|f16|f17|f18|f19|f2|f20|f21|f22|f23|f24|f3|f4|f5|f6|f7|f8|f9|home|ins|insert|joy1|joy10|joy11|joy12|joy13|joy14|joy15|joy16|joy17|joy18|joy19|joy2|joy20|joy21|joy22|joy23|joy24|joy25|joy26|joy27|joy28|joy29|joy3|joy30|joy31|joy32|joy4|joy5|joy6|joy7|joy8|joy9|joyaxes|joybuttons|joyinfo|joyname|joypov|joyr|joyu|joyv|joyx|joyy|joyz|lalt|launch_app1|launch_app2|launch_mail|launch_media|lbutton|lcontrol|lctrl|left|lshift|lwin|lwindown|lwinup|mbutton|media_next|media_play_pause|media_prev|media_stop|numlock|numpad0|numpad1|numpad2|numpad3|numpad4|numpad5|numpad6|numpad7|numpad8|numpad9|numpadadd|numpadclear|numpaddel|numpaddiv|numpaddot|numpaddown|numpadend|numpadenter|numpadhome|numpadins|numpadleft|numpadmult|numpadpgdn|numpadpgup|numpadright|numpadsub|numpadup|pgdn|pgup|printscreen|ralt|rbutton|rcontrol|rctrl|right|rshift|rwin|rwindown|rwinup|scrolllock|shift|shiftdown|shiftup|space|tab|up|volume_down|volume_mute|volume_up|wheeldown|wheelleft|wheelright|wheelup|xbutton1|xbutton2)\b/i,important:/#\b(?:AllowSameLineComments|ClipboardTimeout|CommentFlag|DerefChar|ErrorStdOut|EscapeChar|HotkeyInterval|HotkeyModifierTimeout|Hotstring|If|IfTimeout|IfWinActive|IfWinExist|IfWinNotActive|IfWinNotExist|Include|IncludeAgain|InputLevel|InstallKeybdHook|InstallMouseHook|KeyHistory|MaxHotkeysPerInterval|MaxMem|MaxThreads|MaxThreadsBuffer|MaxThreadsPerHotkey|MenuMaskKey|NoEnv|NoTrayIcon|Persistent|SingleInstance|UseHook|Warn|WinActivateForce)\b/i,keyword:/\b(?:Abort|AboveNormal|Add|ahk_class|ahk_exe|ahk_group|ahk_id|ahk_pid|All|Alnum|Alpha|AltSubmit|AltTab|AltTabAndMenu|AltTabMenu|AltTabMenuDismiss|AlwaysOnTop|AutoSize|Background|BackgroundTrans|BelowNormal|between|BitAnd|BitNot|BitOr|BitShiftLeft|BitShiftRight|BitXOr|Bold|Border|Button|ByRef|Catch|Checkbox|Checked|CheckedGray|Choose|ChooseString|Close|Color|ComboBox|Contains|ControlList|Count|Date|DateTime|Days|DDL|Default|DeleteAll|Delimiter|Deref|Destroy|Digit|Disable|Disabled|DropDownList|Edit|Eject|Else|Enable|Enabled|Error|Exist|Expand|ExStyle|FileSystem|Finally|First|Flash|Float|FloatFast|Focus|Font|for|global|Grid|Group|GroupBox|GuiClose|GuiContextMenu|GuiDropFiles|GuiEscape|GuiSize|Hdr|Hidden|Hide|High|HKCC|HKCR|HKCU|HKEY_CLASSES_ROOT|HKEY_CURRENT_CONFIG|HKEY_CURRENT_USER|HKEY_LOCAL_MACHINE|HKEY_USERS|HKLM|HKU|Hours|HScroll|Icon|IconSmall|ID|IDLast|If|IfEqual|IfExist|IfGreater|IfGreaterOrEqual|IfInString|IfLess|IfLessOrEqual|IfMsgBox|IfNotEqual|IfNotExist|IfNotInString|IfWinActive|IfWinExist|IfWinNotActive|IfWinNotExist|Ignore|ImageList|in|Integer|IntegerFast|Interrupt|is|italic|Join|Label|LastFound|LastFoundExist|Limit|Lines|List|ListBox|ListView|local|Lock|Logoff|Low|Lower|Lowercase|MainWindow|Margin|Maximize|MaximizeBox|MaxSize|Minimize|MinimizeBox|MinMax|MinSize|Minutes|MonthCal|Mouse|Move|Multi|NA|No|NoActivate|NoDefault|NoHide|NoIcon|NoMainWindow|norm|Normal|NoSort|NoSortHdr|NoStandard|Not|NoTab|NoTimers|Number|Off|Ok|On|OwnDialogs|Owner|Parse|Password|Picture|Pixel|Pos|Pow|Priority|ProcessName|Radio|Range|Read|ReadOnly|Realtime|Redraw|Region|REG_BINARY|REG_DWORD|REG_EXPAND_SZ|REG_MULTI_SZ|REG_SZ|Relative|Rename|Report|Resize|Restore|Retry|RGB|Screen|Seconds|Section|Serial|SetLabel|ShiftAltTab|Show|Single|Slider|SortDesc|Standard|static|Status|StatusBar|StatusCD|strike|Style|Submit|SysMenu|Tab2|TabStop|Text|Theme|Throw|Tile|ToggleCheck|ToggleEnable|ToolWindow|Top|Topmost|TransColor|Transparent|Tray|TreeView|Try|TryAgain|Type|UnCheck|underline|Unicode|Unlock|Until|UpDown|Upper|Uppercase|UseErrorLevel|Vis|VisFirst|Visible|VScroll|Wait|WaitClose|WantCtrlA|WantF2|WantReturn|While|Wrap|Xdigit|xm|xp|xs|Yes|ym|yp|ys)\b/i,function:/[^(); \t,\n+*\-=?>:\\\/<&%\[\]]+(?=\()/,punctuation:/[{}[\]():,]/}}return dd}var pd,lw;function Yte(){if(lw)return pd;lw=1,pd=e,e.displayName="autoit",e.aliases=[];function e(t){t.languages.autoit={comment:[/;.*/,{pattern:/(^[\t ]*)#(?:comments-start|cs)[\s\S]*?^[ \t]*#(?:ce|comments-end)/m,lookbehind:!0}],url:{pattern:/(^[\t ]*#include\s+)(?:<[^\r\n>]+>|"[^\r\n"]+")/m,lookbehind:!0},string:{pattern:/(["'])(?:\1\1|(?!\1)[^\r\n])*\1/,greedy:!0,inside:{variable:/([%$@])\w+\1/}},directive:{pattern:/(^[\t ]*)#[\w-]+/m,lookbehind:!0,alias:"keyword"},function:/\b\w+(?=\()/,variable:/[$@]\w+/,keyword:/\b(?:Case|Const|Continue(?:Case|Loop)|Default|Dim|Do|Else(?:If)?|End(?:Func|If|Select|Switch|With)|Enum|Exit(?:Loop)?|For|Func|Global|If|In|Local|Next|Null|ReDim|Select|Static|Step|Switch|Then|To|Until|Volatile|WEnd|While|With)\b/i,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,boolean:/\b(?:False|True)\b/i,operator:/<[=>]?|[-+*\/=&>]=?|[?^]|\b(?:And|Not|Or)\b/i,punctuation:/[\[\]().,:]/}}return pd}var fd,uw;function Kte(){if(uw)return fd;uw=1,fd=e,e.displayName="avisynth",e.aliases=["avs"];function e(t){(function(r){function n(d,p){return d.replace(/<<(\d+)>>/g,function(g,m){return p[+m]})}function a(d,p,g){return RegExp(n(d,p),g||"")}var i=/bool|clip|float|int|string|val/.source,o=[/is(?:bool|clip|float|int|string)|defined|(?:(?:internal)?function|var)?exists?/.source,/apply|assert|default|eval|import|nop|select|undefined/.source,/opt_(?:allowfloataudio|avipadscanlines|dwchannelmask|enable_(?:b64a|planartopackedrgb|v210|y3_10_10|y3_10_16)|usewaveextensible|vdubplanarhack)|set(?:cachemode|maxcpu|memorymax|planarlegacyalignment|workingdir)/.source,/hex(?:value)?|value/.source,/abs|ceil|continued(?:denominator|numerator)?|exp|floor|fmod|frac|log(?:10)?|max|min|muldiv|pi|pow|rand|round|sign|spline|sqrt/.source,/a?sinh?|a?cosh?|a?tan[2h]?/.source,/(?:bit(?:and|not|x?or|[lr]?shift[aslu]?|sh[lr]|sa[lr]|[lr]rotatel?|ro[rl]|te?st|set(?:count)?|cl(?:ea)?r|ch(?:an)?ge?))/.source,/average(?:[bgr]|chroma[uv]|luma)|(?:[rgb]|chroma[uv]|luma|rgb|[yuv](?=difference(?:fromprevious|tonext)))difference(?:fromprevious|tonext)?|[yuvrgb]plane(?:median|min|max|minmaxdifference)/.source,/getprocessinfo|logmsg|script(?:dir(?:utf8)?|file(?:utf8)?|name(?:utf8)?)|setlogparams/.source,/chr|(?:fill|find|left|mid|replace|rev|right)str|format|[lu]case|ord|str(?:cmpi?|fromutf8|len|toutf8)|time|trim(?:all|left|right)/.source,/isversionorgreater|version(?:number|string)/.source,/buildpixeltype|colorspacenametopixeltype/.source,/addautoloaddir|on(?:cpu|cuda)|prefetch|setfiltermtmode/.source].join("|"),s=[/has(?:audio|video)/.source,/height|width/.source,/frame(?:count|rate)|framerate(?:denominator|numerator)/.source,/getparity|is(?:field|frame)based/.source,/bitspercomponent|componentsize|hasalpha|is(?:planar(?:rgba?)?|interleaved|rgb(?:24|32|48|64)?|y(?:8|u(?:va?|y2))?|yv(?:12|16|24|411)|420|422|444|packedrgb)|numcomponents|pixeltype/.source,/audio(?:bits|channels|duration|length(?:[fs]|hi|lo)?|rate)|isaudio(?:float|int)/.source].join("|"),l=[/avi(?:file)?source|directshowsource|image(?:reader|source|sourceanim)|opendmlsource|segmented(?:avisource|directshowsource)|wavsource/.source,/coloryuv|convertbacktoyuy2|convertto(?:RGB(?:24|32|48|64)|(?:planar)?RGBA?|Y8?|YV(?:12|16|24|411)|YUVA?(?:411|420|422|444)|YUY2)|fixluminance|gr[ae]yscale|invert|levels|limiter|mergea?rgb|merge(?:chroma|luma)|rgbadjust|show(?:alpha|blue|green|red)|swapuv|tweak|[uv]toy8?|ytouv/.source,/(?:colorkey|reset)mask|layer|mask(?:hs)?|merge|overlay|subtract/.source,/addborders|(?:bicubic|bilinear|blackman|gauss|lanczos4|lanczos|point|sinc|spline(?:16|36|64))resize|crop(?:bottom)?|flip(?:horizontal|vertical)|(?:horizontal|vertical)?reduceby2|letterbox|skewrows|turn(?:180|left|right)/.source,/blur|fixbrokenchromaupsampling|generalconvolution|(?:spatial|temporal)soften|sharpen/.source,/trim|(?:un)?alignedsplice|(?:assume|assumescaled|change|convert)FPS|(?:delete|duplicate)frame|dissolve|fade(?:in|io|out)[02]?|freezeframe|interleave|loop|reverse|select(?:even|odd|(?:range)?every)/.source,/assume[bt]ff|assume(?:field|frame)based|bob|complementparity|doubleweave|peculiarblend|pulldown|separate(?:columns|fields|rows)|swapfields|weave(?:columns|rows)?/.source,/amplify(?:db)?|assumesamplerate|audiodub(?:ex)?|audiotrim|convertaudioto(?:(?:8|16|24|32)bit|float)|converttomono|delayaudio|ensurevbrmp3sync|get(?:left|right)?channel|kill(?:audio|video)|mergechannels|mixaudio|monotostereo|normalize|resampleaudio|ssrc|supereq|timestretch/.source,/animate|applyrange|conditional(?:filter|reader|select)|frameevaluate|scriptclip|tcp(?:server|source)|writefile(?:end|if|start)?/.source,/imagewriter/.source,/blackness|blankclip|colorbars(?:hd)?|compare|dumpfiltergraph|echo|histogram|info|messageclip|preroll|setgraphanalysis|show(?:framenumber|smpte|time)|showfiveversions|stack(?:horizontal|vertical)|subtitle|tone|version/.source].join("|"),c=[o,s,l].join("|");r.languages.avisynth={comment:[{pattern:/(^|[^\\])\[\*(?:[^\[*]|\[(?!\*)|\*(?!\])|\[\*(?:[^\[*]|\[(?!\*)|\*(?!\]))*\*\])*\*\]/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],argument:{pattern:a(/\b(?:<<0>>)\s+("?)\w+\1/.source,[i],"i"),inside:{keyword:/^\w+/}},"argument-label":{pattern:/([,(][\s\\]*)\w+\s*=(?!=)/,lookbehind:!0,inside:{"argument-name":{pattern:/^\w+/,alias:"punctuation"},punctuation:/=$/}},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0,inside:{constant:{pattern:/\b(?:DEFAULT_MT_MODE|(?:MAINSCRIPT|PROGRAM|SCRIPT)DIR|(?:MACHINE|USER)_(?:CLASSIC|PLUS)_PLUGINS)\b/}}}],variable:/\b(?:last)\b/i,boolean:/\b(?:false|no|true|yes)\b/i,keyword:/\b(?:catch|else|for|function|global|if|return|try|while|__END__)\b/i,constant:/\bMT_(?:MULTI_INSTANCE|NICE_FILTER|SERIALIZED|SPECIAL_MT)\b/,"builtin-function":{pattern:a(/\b(?:<<0>>)\b/.source,[c],"i"),alias:"function"},"type-cast":{pattern:a(/\b(?:<<0>>)(?=\s*\()/.source,[i],"i"),alias:"keyword"},function:{pattern:/\b[a-z_]\w*(?=\s*\()|(\.)[a-z_]\w*\b/i,lookbehind:!0},"line-continuation":{pattern:/(^[ \t]*)\\|\\(?=[ \t]*$)/m,lookbehind:!0,alias:"punctuation"},number:/\B\$(?:[\da-f]{6}|[\da-f]{8})\b|(?:(?:\b|\B-)\d+(?:\.\d*)?\b|\B\.\d+\b)/i,operator:/\+\+?|[!=<>]=?|&&|\|\||[?:*/%-]/,punctuation:/[{}\[\]();,.]/},r.languages.avs=r.languages.avisynth})(t)}return fd}var gd,cw;function Xte(){if(cw)return gd;cw=1,gd=e,e.displayName="avroIdl",e.aliases=[];function e(t){t.languages["avro-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/(^|[^\\])"(?:[^\r\n"\\]|\\.)*"/,lookbehind:!0,greedy:!0},annotation:{pattern:/@(?:[$\w.-]|`[^\r\n`]+`)+/,greedy:!0,alias:"function"},"function-identifier":{pattern:/`[^\r\n`]+`(?=\s*\()/,greedy:!0,alias:"function"},identifier:{pattern:/`[^\r\n`]+`/,greedy:!0},"class-name":{pattern:/(\b(?:enum|error|protocol|record|throws)\b\s+)[$\w]+/,lookbehind:!0,greedy:!0},keyword:/\b(?:array|boolean|bytes|date|decimal|double|enum|error|false|fixed|float|idl|import|int|local_timestamp_ms|long|map|null|oneway|protocol|record|schema|string|throws|time_ms|timestamp_ms|true|union|uuid|void)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:[{pattern:/(^|[^\w.])-?(?:(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|0x(?:[a-f0-9]+(?:\.[a-f0-9]*)?|\.[a-f0-9]+)(?:p[+-]?\d+)?)[dfl]?(?![\w.])/i,lookbehind:!0},/-?\b(?:Infinity|NaN)\b/],operator:/=/,punctuation:/[()\[\]{}<>.:,;-]/},t.languages.avdl=t.languages["avro-idl"]}return gd}var hd,dw;function kI(){if(dw)return hd;dw=1,hd=e,e.displayName="bash",e.aliases=["shell"];function e(t){(function(r){var n="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",a={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},i={bash:a,environment:{pattern:RegExp("\\$"+n),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+n),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};r.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+n),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:i},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:a}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:i},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:i.entity}}],environment:{pattern:RegExp("\\$?"+n),alias:"constant"},variable:i.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},a.inside=r.languages.bash;for(var o=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],s=i.variable[1].inside,l=0;l?^\w +\-.])*"/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:AS|BEEP|BLOAD|BSAVE|CALL(?: ABSOLUTE)?|CASE|CHAIN|CHDIR|CLEAR|CLOSE|CLS|COM|COMMON|CONST|DATA|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DIM|DO|DOUBLE|ELSE|ELSEIF|END|ENVIRON|ERASE|ERROR|EXIT|FIELD|FILES|FOR|FUNCTION|GET|GOSUB|GOTO|IF|INPUT|INTEGER|IOCTL|KEY|KILL|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|MKDIR|NAME|NEXT|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPTION BASE|OUT|POKE|PUT|READ|REDIM|REM|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SELECT CASE|SHARED|SHELL|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|SUB|SWAP|SYSTEM|THEN|TIMER|TO|TROFF|TRON|TYPE|UNLOCK|UNTIL|USING|VIEW PRINT|WAIT|WEND|WHILE|WRITE)(?:\$|\b)/i,function:/\b(?:ABS|ACCESS|ACOS|ANGLE|AREA|ARITHMETIC|ARRAY|ASIN|ASK|AT|ATN|BASE|BEGIN|BREAK|CAUSE|CEIL|CHR|CLIP|COLLATE|COLOR|CON|COS|COSH|COT|CSC|DATE|DATUM|DEBUG|DECIMAL|DEF|DEG|DEGREES|DELETE|DET|DEVICE|DISPLAY|DOT|ELAPSED|EPS|ERASABLE|EXLINE|EXP|EXTERNAL|EXTYPE|FILETYPE|FIXED|FP|GO|GRAPH|HANDLER|IDN|IMAGE|IN|INT|INTERNAL|IP|IS|KEYED|LBOUND|LCASE|LEFT|LEN|LENGTH|LET|LINE|LINES|LOG|LOG10|LOG2|LTRIM|MARGIN|MAT|MAX|MAXNUM|MID|MIN|MISSING|MOD|NATIVE|NUL|NUMERIC|OF|OPTION|ORD|ORGANIZATION|OUTIN|OUTPUT|PI|POINT|POINTER|POINTS|POS|PRINT|PROGRAM|PROMPT|RAD|RADIANS|RANDOMIZE|RECORD|RECSIZE|RECTYPE|RELATIVE|REMAINDER|REPEAT|REST|RETRY|REWRITE|RIGHT|RND|ROUND|RTRIM|SAME|SEC|SELECT|SEQUENTIAL|SET|SETTER|SGN|SIN|SINH|SIZE|SKIP|SQR|STANDARD|STATUS|STR|STREAM|STYLE|TAB|TAN|TANH|TEMPLATE|TEXT|THERE|TIME|TIMEOUT|TRACE|TRANSFORM|TRUNCATE|UBOUND|UCASE|USE|VAL|VARIABLE|VIEWPORT|WHEN|WINDOW|WITH|ZER|ZONEWIDTH)(?:\$|\b)/i,operator:/<[=>]?|>=?|[+\-*\/^=&]|\b(?:AND|EQV|IMP|NOT|OR|XOR)\b/i,punctuation:/[,;:()]/}}return md}var bd,fw;function Zte(){if(fw)return bd;fw=1,bd=e,e.displayName="batch",e.aliases=[];function e(t){(function(r){var n=/%%?[~:\w]+%?|!\S+!/,a={pattern:/\/[a-z?]+(?=[ :]|$):?|-[a-z]\b|--[a-z-]+\b/im,alias:"attr-name",inside:{punctuation:/:/}},i=/"(?:[\\"]"|[^"])*"(?!")/,o=/(?:\b|-)\d+\b/;r.languages.batch={comment:[/^::.*/m,{pattern:/((?:^|[&(])[ \t]*)rem\b(?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0}],label:{pattern:/^:.*/m,alias:"property"},command:[{pattern:/((?:^|[&(])[ \t]*)for(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* \S+ in \([^)]+\) do/im,lookbehind:!0,inside:{keyword:/\b(?:do|in)\b|^for\b/i,string:i,parameter:a,variable:n,number:o,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*)if(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:not )?(?:cmdextversion \d+|defined \w+|errorlevel \d+|exist \S+|(?:"[^"]*"|(?!")(?:(?!==)\S)+)?(?:==| (?:equ|geq|gtr|leq|lss|neq) )(?:"[^"]*"|[^\s"]\S*))/im,lookbehind:!0,inside:{keyword:/\b(?:cmdextversion|defined|errorlevel|exist|not)\b|^if\b/i,string:i,parameter:a,variable:n,number:o,operator:/\^|==|\b(?:equ|geq|gtr|leq|lss|neq)\b/i}},{pattern:/((?:^|[&()])[ \t]*)else\b/im,lookbehind:!0,inside:{keyword:/^else\b/i}},{pattern:/((?:^|[&(])[ \t]*)set(?: \/[a-z](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0,inside:{keyword:/^set\b/i,string:i,parameter:a,variable:[n,/\w+(?=(?:[*\/%+\-&^|]|<<|>>)?=)/],number:o,operator:/[*\/%+\-&^|]=?|<<=?|>>=?|[!~_=]/,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*@?)\w+\b(?:"(?:[\\"]"|[^"])*"(?!")|[^"^&)\r\n]|\^(?:\r\n|[\s\S]))*/m,lookbehind:!0,inside:{keyword:/^\w+\b/,string:i,parameter:a,label:{pattern:/(^\s*):\S+/m,lookbehind:!0,alias:"property"},variable:n,number:o,operator:/\^/}}],operator:/[&@]/,punctuation:/[()']/}})(t)}return bd}var yd,gw;function Jte(){if(gw)return yd;gw=1,yd=e,e.displayName="bbcode",e.aliases=["shortcode"];function e(t){t.languages.bbcode={tag:{pattern:/\[\/?[^\s=\]]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+))?(?:\s+[^\s=\]]+\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+))*\s*\]/,inside:{tag:{pattern:/^\[\/?[^\s=\]]+/,inside:{punctuation:/^\[\/?/}},"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+)/,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\]/,"attr-name":/[^\s=\]]+/}}},t.languages.shortcode=t.languages.bbcode}return yd}var vd,hw;function Qte(){if(hw)return vd;hw=1,vd=e,e.displayName="bicep",e.aliases=[];function e(t){t.languages.bicep={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],property:[{pattern:/([\r\n][ \t]*)[a-z_]\w*(?=[ \t]*:)/i,lookbehind:!0},{pattern:/([\r\n][ \t]*)'(?:\\.|\$(?!\{)|[^'\\\r\n$])*'(?=[ \t]*:)/,lookbehind:!0,greedy:!0}],string:[{pattern:/'''[^'][\s\S]*?'''/,greedy:!0},{pattern:/(^|[^\\'])'(?:\\.|\$(?!\{)|[^'\\\r\n$])*'/,lookbehind:!0,greedy:!0}],"interpolated-string":{pattern:/(^|[^\\'])'(?:\\.|\$(?:(?!\{)|\{[^{}\r\n]*\})|[^'\\\r\n$])*'/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}\r\n]*\}/,inside:{expression:{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0},punctuation:/^\$\{|\}$/}},string:/[\s\S]+/}},datatype:{pattern:/(\b(?:output|param)\b[ \t]+\w+[ \t]+)\w+\b/,lookbehind:!0,alias:"class-name"},boolean:/\b(?:false|true)\b/,keyword:/\b(?:existing|for|if|in|module|null|output|param|resource|targetScope|var)\b/,decorator:/@\w+\b/,function:/\b[a-z_]\w*(?=[ \t]*\()/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/,punctuation:/[{}[\];(),.:]/},t.languages.bicep["interpolated-string"].inside.interpolation.inside.expression.inside=t.languages.bicep}return vd}var Sd,mw;function ere(){if(mw)return Sd;mw=1,Sd=e,e.displayName="birb",e.aliases=[];function e(t){t.languages.birb=t.languages.extend("clike",{string:{pattern:/r?("|')(?:\\.|(?!\1)[^\\])*\1/,greedy:!0},"class-name":[/\b[A-Z](?:[\d_]*[a-zA-Z]\w*)?\b/,/\b(?:[A-Z]\w*|(?!(?:var|void)\b)[a-z]\w*)(?=\s+\w+\s*[;,=()])/],keyword:/\b(?:assert|break|case|class|const|default|else|enum|final|follows|for|grab|if|nest|new|next|noSeeb|return|static|switch|throw|var|void|while)\b/,operator:/\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?|:/,variable:/\b[a-z_]\w*\b/}),t.languages.insertBefore("birb","function",{metadata:{pattern:/<\w+>/,greedy:!0,alias:"symbol"}})}return Sd}var Ed,bw;function tre(){if(bw)return Ed;bw=1;var e=ca();Ed=t,t.displayName="bison",t.aliases=[];function t(r){r.register(e),r.languages.bison=r.languages.extend("c",{}),r.languages.insertBefore("bison","comment",{bison:{pattern:/^(?:[^%]|%(?!%))*%%[\s\S]*?%%/,inside:{c:{pattern:/%\{[\s\S]*?%\}|\{(?:\{[^}]*\}|[^{}])*\}/,inside:{delimiter:{pattern:/^%?\{|%?\}$/,alias:"punctuation"},"bison-variable":{pattern:/[$@](?:<[^\s>]+>)?[\w$]+/,alias:"variable",inside:{punctuation:/<|>/}},rest:r.languages.c}},comment:r.languages.c.comment,string:r.languages.c.string,property:/\S+(?=:)/,keyword:/%\w+/,number:{pattern:/(^|[^@])\b(?:0x[\da-f]+|\d+)/i,lookbehind:!0},punctuation:/%[%?]|[|:;\[\]<>]/}}})}return Ed}var xd,yw;function rre(){if(yw)return xd;yw=1,xd=e,e.displayName="bnf",e.aliases=["rbnf"];function e(t){t.languages.bnf={string:{pattern:/"[^\r\n"]*"|'[^\r\n']*'/},definition:{pattern:/<[^<>\r\n\t]+>(?=\s*::=)/,alias:["rule","keyword"],inside:{punctuation:/^<|>$/}},rule:{pattern:/<[^<>\r\n\t]+>/,inside:{punctuation:/^<|>$/}},operator:/::=|[|()[\]{}*+?]|\.{3}/},t.languages.rbnf=t.languages.bnf}return xd}var wd,vw;function nre(){if(vw)return wd;vw=1,wd=e,e.displayName="brainfuck",e.aliases=[];function e(t){t.languages.brainfuck={pointer:{pattern:/<|>/,alias:"keyword"},increment:{pattern:/\+/,alias:"inserted"},decrement:{pattern:/-/,alias:"deleted"},branching:{pattern:/\[|\]/,alias:"important"},operator:/[.,]/,comment:/\S+/}}return wd}var _d,Sw;function are(){if(Sw)return _d;Sw=1,_d=e,e.displayName="brightscript",e.aliases=[];function e(t){t.languages.brightscript={comment:/(?:\brem|').*/i,"directive-statement":{pattern:/(^[\t ]*)#(?:const|else(?:[\t ]+if)?|end[\t ]+if|error|if).*/im,lookbehind:!0,alias:"property",inside:{"error-message":{pattern:/(^#error).+/,lookbehind:!0},directive:{pattern:/^#(?:const|else(?:[\t ]+if)?|end[\t ]+if|error|if)/,alias:"keyword"},expression:{pattern:/[\s\S]+/,inside:null}}},property:{pattern:/([\r\n{,][\t ]*)(?:(?!\d)\w+|"(?:[^"\r\n]|"")*"(?!"))(?=[ \t]*:)/,lookbehind:!0,greedy:!0},string:{pattern:/"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},"class-name":{pattern:/(\bAs[\t ]+)\w+/i,lookbehind:!0},keyword:/\b(?:As|Dim|Each|Else|Elseif|End|Exit|For|Function|Goto|If|In|Print|Return|Step|Stop|Sub|Then|To|While)\b/i,boolean:/\b(?:false|true)\b/i,function:/\b(?!\d)\w+(?=[\t ]*\()/,number:/(?:\b\d+(?:\.\d+)?(?:[ed][+-]\d+)?|&h[a-f\d]+)\b[%&!#]?/i,operator:/--|\+\+|>>=?|<<=?|<>|[-+*/\\<>]=?|[:^=?]|\b(?:and|mod|not|or)\b/i,punctuation:/[.,;()[\]{}]/,constant:/\b(?:LINE_NUM)\b/i},t.languages.brightscript["directive-statement"].inside.expression.inside=t.languages.brightscript}return _d}var Td,Ew;function ire(){if(Ew)return Td;Ew=1,Td=e,e.displayName="bro",e.aliases=[];function e(t){t.languages.bro={comment:{pattern:/(^|[^\\$])#.*/,lookbehind:!0,inside:{italic:/\b(?:FIXME|TODO|XXX)\b/}},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},boolean:/\b[TF]\b/,function:{pattern:/(\b(?:event|function|hook)[ \t]+)\w+(?:::\w+)?/,lookbehind:!0},builtin:/(?:@(?:load(?:-(?:plugin|sigs))?|unload|prefixes|ifn?def|else|(?:end)?if|DIR|FILENAME))|(?:&?(?:add_func|create_expire|default|delete_func|encrypt|error_handler|expire_func|group|log|mergeable|optional|persistent|priority|raw_output|read_expire|redef|rotate_interval|rotate_size|synchronized|type_column|write_expire))/,constant:{pattern:/(\bconst[ \t]+)\w+/i,lookbehind:!0},keyword:/\b(?:add|addr|alarm|any|bool|break|const|continue|count|delete|double|else|enum|event|export|file|for|function|global|hook|if|in|int|interval|local|module|next|of|opaque|pattern|port|print|record|return|schedule|set|string|subnet|table|time|timeout|using|vector|when)\b/,operator:/--?|\+\+?|!=?=?|<=?|>=?|==?=?|&&|\|\|?|\?|\*|\/|~|\^|%/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,punctuation:/[{}[\];(),.:]/}}return Td}var Ad,xw;function ore(){if(xw)return Ad;xw=1,Ad=e,e.displayName="bsl",e.aliases=[];function e(t){t.languages.bsl={comment:/\/\/.*/,string:[{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},{pattern:/'(?:[^'\r\n\\]|\\.)*'/}],keyword:[{pattern:/(^|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:пока|для|новый|прервать|попытка|исключение|вызватьисключение|иначе|конецпопытки|неопределено|функция|перем|возврат|конецфункции|если|иначеесли|процедура|конецпроцедуры|тогда|знач|экспорт|конецесли|из|каждого|истина|ложь|по|цикл|конеццикла|выполнить)(?![\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])/i,lookbehind:!0},{pattern:/\b(?:break|do|each|else|elseif|enddo|endfunction|endif|endprocedure|endtry|except|execute|export|false|for|function|if|in|new|null|procedure|raise|return|then|to|true|try|undefined|val|var|while)\b/i}],number:{pattern:/(^(?=\d)|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:\d+(?:\.\d*)?|\.\d+)(?:E[+-]?\d+)?/i,lookbehind:!0},operator:[/[<>+\-*/]=?|[%=]/,{pattern:/(^|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:и|или|не)(?![\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])/i,lookbehind:!0},{pattern:/\b(?:and|not|or)\b/i}],punctuation:/\(\.|\.\)|[()\[\]:;,.]/,directive:[{pattern:/^([ \t]*)&.*/m,lookbehind:!0,greedy:!0,alias:"important"},{pattern:/^([ \t]*)#.*/gm,lookbehind:!0,greedy:!0,alias:"important"}]},t.languages.oscript=t.languages.bsl}return Ad}var Od,ww;function sre(){if(ww)return Od;ww=1,Od=e,e.displayName="cfscript",e.aliases=[];function e(t){t.languages.cfscript=t.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,inside:{annotation:{pattern:/(?:^|[^.])@[\w\.]+/,alias:"punctuation"}}},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],keyword:/\b(?:abstract|break|catch|component|continue|default|do|else|extends|final|finally|for|function|if|in|include|package|private|property|public|remote|required|rethrow|return|static|switch|throw|try|var|while|xml)\b(?!\s*=)/,operator:[/\+\+|--|&&|\|\||::|=>|[!=]==|<=?|>=?|[-+*/%&|^!=<>]=?|\?(?:\.|:)?|[?:]/,/\b(?:and|contains|eq|equal|eqv|gt|gte|imp|is|lt|lte|mod|not|or|xor)\b/],scope:{pattern:/\b(?:application|arguments|cgi|client|cookie|local|session|super|this|variables)\b/,alias:"global"},type:{pattern:/\b(?:any|array|binary|boolean|date|guid|numeric|query|string|struct|uuid|void|xml)\b/,alias:"builtin"}}),t.languages.insertBefore("cfscript","keyword",{"function-variable":{pattern:/[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"}}),delete t.languages.cfscript["class-name"],t.languages.cfc=t.languages.cfscript}return Od}var kd,_w;function lre(){if(_w)return kd;_w=1;var e=qy();kd=t,t.displayName="chaiscript",t.aliases=[];function t(r){r.register(e),r.languages.chaiscript=r.languages.extend("clike",{string:{pattern:/(^|[^\\])'(?:[^'\\]|\\[\s\S])*'/,lookbehind:!0,greedy:!0},"class-name":[{pattern:/(\bclass\s+)\w+/,lookbehind:!0},{pattern:/(\b(?:attr|def)\s+)\w+(?=\s*::)/,lookbehind:!0}],keyword:/\b(?:attr|auto|break|case|catch|class|continue|def|default|else|finally|for|fun|global|if|return|switch|this|try|var|while)\b/,number:[r.languages.cpp.number,/\b(?:Infinity|NaN)\b/],operator:/>>=?|<<=?|\|\||&&|:[:=]?|--|\+\+|[=!<>+\-*/%|&^]=?|[?~]|`[^`\r\n]{1,4}`/}),r.languages.insertBefore("chaiscript","operator",{"parameter-type":{pattern:/([,(]\s*)\w+(?=\s+\w)/,lookbehind:!0,alias:"class-name"}}),r.languages.insertBefore("chaiscript","string",{"string-interpolation":{pattern:/(^|[^\\])"(?:[^"$\\]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\}/,lookbehind:!0,inside:{"interpolation-expression":{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:r.languages.chaiscript},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"}}},string:/[\s\S]+/}}})}return kd}var Rd,Tw;function ure(){if(Tw)return Rd;Tw=1,Rd=e,e.displayName="cil",e.aliases=[];function e(t){t.languages.cil={comment:/\/\/.*/,string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},directive:{pattern:/(^|\W)\.[a-z]+(?=\s)/,lookbehind:!0,alias:"class-name"},variable:/\[[\w\.]+\]/,keyword:/\b(?:abstract|ansi|assembly|auto|autochar|beforefieldinit|bool|bstr|byvalstr|catch|char|cil|class|currency|date|decimal|default|enum|error|explicit|extends|extern|famandassem|family|famorassem|final(?:ly)?|float32|float64|hidebysig|u?int(?:8|16|32|64)?|iant|idispatch|implements|import|initonly|instance|interface|iunknown|literal|lpstr|lpstruct|lptstr|lpwstr|managed|method|native(?:Type)?|nested|newslot|object(?:ref)?|pinvokeimpl|private|privatescope|public|reqsecobj|rtspecialname|runtime|sealed|sequential|serializable|specialname|static|string|struct|syschar|tbstr|unicode|unmanagedexp|unsigned|value(?:type)?|variant|virtual|void)\b/,function:/\b(?:(?:constrained|no|readonly|tail|unaligned|volatile)\.)?(?:conv\.(?:[iu][1248]?|ovf\.[iu][1248]?(?:\.un)?|r\.un|r4|r8)|ldc\.(?:i4(?:\.\d+|\.[mM]1|\.s)?|i8|r4|r8)|ldelem(?:\.[iu][1248]?|\.r[48]|\.ref|a)?|ldind\.(?:[iu][1248]?|r[48]|ref)|stelem\.?(?:i[1248]?|r[48]|ref)?|stind\.(?:i[1248]?|r[48]|ref)?|end(?:fault|filter|finally)|ldarg(?:\.[0-3s]|a(?:\.s)?)?|ldloc(?:\.\d+|\.s)?|sub(?:\.ovf(?:\.un)?)?|mul(?:\.ovf(?:\.un)?)?|add(?:\.ovf(?:\.un)?)?|stloc(?:\.[0-3s])?|refany(?:type|val)|blt(?:\.un)?(?:\.s)?|ble(?:\.un)?(?:\.s)?|bgt(?:\.un)?(?:\.s)?|bge(?:\.un)?(?:\.s)?|unbox(?:\.any)?|init(?:blk|obj)|call(?:i|virt)?|brfalse(?:\.s)?|bne\.un(?:\.s)?|ldloca(?:\.s)?|brzero(?:\.s)?|brtrue(?:\.s)?|brnull(?:\.s)?|brinst(?:\.s)?|starg(?:\.s)?|leave(?:\.s)?|shr(?:\.un)?|rem(?:\.un)?|div(?:\.un)?|clt(?:\.un)?|alignment|castclass|ldvirtftn|beq(?:\.s)?|ckfinite|ldsflda|ldtoken|localloc|mkrefany|rethrow|cgt\.un|arglist|switch|stsfld|sizeof|newobj|newarr|ldsfld|ldnull|ldflda|isinst|throw|stobj|stfld|ldstr|ldobj|ldlen|ldftn|ldfld|cpobj|cpblk|break|br\.s|xor|shl|ret|pop|not|nop|neg|jmp|dup|cgt|ceq|box|and|or|br)\b/,boolean:/\b(?:false|true)\b/,number:/\b-?(?:0x[0-9a-f]+|\d+)(?:\.[0-9a-f]+)?\b/i,punctuation:/[{}[\];(),:=]|IL_[0-9A-Za-z]+/}}return Rd}var Id,Aw;function cre(){if(Aw)return Id;Aw=1,Id=e,e.displayName="clojure",e.aliases=[];function e(t){t.languages.clojure={comment:{pattern:/;.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},char:/\\\w+/,symbol:{pattern:/(^|[\s()\[\]{},])::?[\w*+!?'<>=/.-]+/,lookbehind:!0},keyword:{pattern:/(\()(?:-|->|->>|\.|\.\.|\*|\/|\+|<|<=|=|==|>|>=|accessor|agent|agent-errors|aget|alength|all-ns|alter|and|append-child|apply|array-map|aset|aset-boolean|aset-byte|aset-char|aset-double|aset-float|aset-int|aset-long|aset-short|assert|assoc|await|await-for|bean|binding|bit-and|bit-not|bit-or|bit-shift-left|bit-shift-right|bit-xor|boolean|branch\?|butlast|byte|cast|char|children|class|clear-agent-errors|comment|commute|comp|comparator|complement|concat|cond|conj|cons|constantly|construct-proxy|contains\?|count|create-ns|create-struct|cycle|dec|declare|def|def-|definline|definterface|defmacro|defmethod|defmulti|defn|defn-|defonce|defproject|defprotocol|defrecord|defstruct|deftype|deref|difference|disj|dissoc|distinct|do|doall|doc|dorun|doseq|dosync|dotimes|doto|double|down|drop|drop-while|edit|end\?|ensure|eval|every\?|false\?|ffirst|file-seq|filter|find|find-doc|find-ns|find-var|first|float|flush|fn|fnseq|for|frest|gensym|get|get-proxy-class|hash-map|hash-set|identical\?|identity|if|if-let|if-not|import|in-ns|inc|index|insert-child|insert-left|insert-right|inspect-table|inspect-tree|instance\?|int|interleave|intersection|into|into-array|iterate|join|key|keys|keyword|keyword\?|last|lazy-cat|lazy-cons|left|lefts|let|line-seq|list|list\*|load|load-file|locking|long|loop|macroexpand|macroexpand-1|make-array|make-node|map|map-invert|map\?|mapcat|max|max-key|memfn|merge|merge-with|meta|min|min-key|monitor-enter|name|namespace|neg\?|new|newline|next|nil\?|node|not|not-any\?|not-every\?|not=|ns|ns-imports|ns-interns|ns-map|ns-name|ns-publics|ns-refers|ns-resolve|ns-unmap|nth|nthrest|or|parse|partial|path|peek|pop|pos\?|pr|pr-str|print|print-str|println|println-str|prn|prn-str|project|proxy|proxy-mappings|quot|quote|rand|rand-int|range|re-find|re-groups|re-matcher|re-matches|re-pattern|re-seq|read|read-line|recur|reduce|ref|ref-set|refer|rem|remove|remove-method|remove-ns|rename|rename-keys|repeat|replace|replicate|resolve|rest|resultset-seq|reverse|rfirst|right|rights|root|rrest|rseq|second|select|select-keys|send|send-off|seq|seq-zip|seq\?|set|set!|short|slurp|some|sort|sort-by|sorted-map|sorted-map-by|sorted-set|special-symbol\?|split-at|split-with|str|string\?|struct|struct-map|subs|subvec|symbol|symbol\?|sync|take|take-nth|take-while|test|throw|time|to-array|to-array-2d|tree-seq|true\?|try|union|up|update-proxy|val|vals|var|var-get|var-set|var\?|vector|vector-zip|vector\?|when|when-first|when-let|when-not|with-local-vars|with-meta|with-open|with-out-str|xml-seq|xml-zip|zero\?|zipmap|zipper)(?=[\s)]|$)/,lookbehind:!0},boolean:/\b(?:false|nil|true)\b/,number:{pattern:/(^|[^\w$@])(?:\d+(?:[/.]\d+)?(?:e[+-]?\d+)?|0x[a-f0-9]+|[1-9]\d?r[a-z0-9]+)[lmn]?(?![\w$@])/i,lookbehind:!0},function:{pattern:/((?:^|[^'])\()[\w*+!?'<>=/.-]+(?=[\s)]|$)/,lookbehind:!0},operator:/[#@^`~]/,punctuation:/[{}\[\](),]/}}return Id}var Cd,Ow;function dre(){if(Ow)return Cd;Ow=1,Cd=e,e.displayName="cmake",e.aliases=[];function e(t){t.languages.cmake={comment:/#.*/,string:{pattern:/"(?:[^\\"]|\\.)*"/,greedy:!0,inside:{interpolation:{pattern:/\$\{(?:[^{}$]|\$\{[^{}$]*\})*\}/,inside:{punctuation:/\$\{|\}/,variable:/\w+/}}}},variable:/\b(?:CMAKE_\w+|\w+_(?:(?:BINARY|SOURCE)_DIR|DESCRIPTION|HOMEPAGE_URL|ROOT|VERSION(?:_MAJOR|_MINOR|_PATCH|_TWEAK)?)|(?:ANDROID|APPLE|BORLAND|BUILD_SHARED_LIBS|CACHE|CPACK_(?:ABSOLUTE_DESTINATION_FILES|COMPONENT_INCLUDE_TOPLEVEL_DIRECTORY|ERROR_ON_ABSOLUTE_INSTALL_DESTINATION|INCLUDE_TOPLEVEL_DIRECTORY|INSTALL_DEFAULT_DIRECTORY_PERMISSIONS|INSTALL_SCRIPT|PACKAGING_INSTALL_PREFIX|SET_DESTDIR|WARN_ON_ABSOLUTE_INSTALL_DESTINATION)|CTEST_(?:BINARY_DIRECTORY|BUILD_COMMAND|BUILD_NAME|BZR_COMMAND|BZR_UPDATE_OPTIONS|CHANGE_ID|CHECKOUT_COMMAND|CONFIGURATION_TYPE|CONFIGURE_COMMAND|COVERAGE_COMMAND|COVERAGE_EXTRA_FLAGS|CURL_OPTIONS|CUSTOM_(?:COVERAGE_EXCLUDE|ERROR_EXCEPTION|ERROR_MATCH|ERROR_POST_CONTEXT|ERROR_PRE_CONTEXT|MAXIMUM_FAILED_TEST_OUTPUT_SIZE|MAXIMUM_NUMBER_OF_(?:ERRORS|WARNINGS)|MAXIMUM_PASSED_TEST_OUTPUT_SIZE|MEMCHECK_IGNORE|POST_MEMCHECK|POST_TEST|PRE_MEMCHECK|PRE_TEST|TESTS_IGNORE|WARNING_EXCEPTION|WARNING_MATCH)|CVS_CHECKOUT|CVS_COMMAND|CVS_UPDATE_OPTIONS|DROP_LOCATION|DROP_METHOD|DROP_SITE|DROP_SITE_CDASH|DROP_SITE_PASSWORD|DROP_SITE_USER|EXTRA_COVERAGE_GLOB|GIT_COMMAND|GIT_INIT_SUBMODULES|GIT_UPDATE_CUSTOM|GIT_UPDATE_OPTIONS|HG_COMMAND|HG_UPDATE_OPTIONS|LABELS_FOR_SUBPROJECTS|MEMORYCHECK_(?:COMMAND|COMMAND_OPTIONS|SANITIZER_OPTIONS|SUPPRESSIONS_FILE|TYPE)|NIGHTLY_START_TIME|P4_CLIENT|P4_COMMAND|P4_OPTIONS|P4_UPDATE_OPTIONS|RUN_CURRENT_SCRIPT|SCP_COMMAND|SITE|SOURCE_DIRECTORY|SUBMIT_URL|SVN_COMMAND|SVN_OPTIONS|SVN_UPDATE_OPTIONS|TEST_LOAD|TEST_TIMEOUT|TRIGGER_SITE|UPDATE_COMMAND|UPDATE_OPTIONS|UPDATE_VERSION_ONLY|USE_LAUNCHERS)|CYGWIN|ENV|EXECUTABLE_OUTPUT_PATH|GHS-MULTI|IOS|LIBRARY_OUTPUT_PATH|MINGW|MSVC(?:10|11|12|14|60|70|71|80|90|_IDE|_TOOLSET_VERSION|_VERSION)?|MSYS|PROJECT_(?:BINARY_DIR|DESCRIPTION|HOMEPAGE_URL|NAME|SOURCE_DIR|VERSION|VERSION_(?:MAJOR|MINOR|PATCH|TWEAK))|UNIX|WIN32|WINCE|WINDOWS_PHONE|WINDOWS_STORE|XCODE|XCODE_VERSION))\b/,property:/\b(?:cxx_\w+|(?:ARCHIVE_OUTPUT_(?:DIRECTORY|NAME)|COMPILE_DEFINITIONS|COMPILE_PDB_NAME|COMPILE_PDB_OUTPUT_DIRECTORY|EXCLUDE_FROM_DEFAULT_BUILD|IMPORTED_(?:IMPLIB|LIBNAME|LINK_DEPENDENT_LIBRARIES|LINK_INTERFACE_LANGUAGES|LINK_INTERFACE_LIBRARIES|LINK_INTERFACE_MULTIPLICITY|LOCATION|NO_SONAME|OBJECTS|SONAME)|INTERPROCEDURAL_OPTIMIZATION|LIBRARY_OUTPUT_DIRECTORY|LIBRARY_OUTPUT_NAME|LINK_FLAGS|LINK_INTERFACE_LIBRARIES|LINK_INTERFACE_MULTIPLICITY|LOCATION|MAP_IMPORTED_CONFIG|OSX_ARCHITECTURES|OUTPUT_NAME|PDB_NAME|PDB_OUTPUT_DIRECTORY|RUNTIME_OUTPUT_DIRECTORY|RUNTIME_OUTPUT_NAME|STATIC_LIBRARY_FLAGS|VS_CSHARP|VS_DOTNET_REFERENCEPROP|VS_DOTNET_REFERENCE|VS_GLOBAL_SECTION_POST|VS_GLOBAL_SECTION_PRE|VS_GLOBAL|XCODE_ATTRIBUTE)_\w+|\w+_(?:CLANG_TIDY|COMPILER_LAUNCHER|CPPCHECK|CPPLINT|INCLUDE_WHAT_YOU_USE|OUTPUT_NAME|POSTFIX|VISIBILITY_PRESET)|ABSTRACT|ADDITIONAL_MAKE_CLEAN_FILES|ADVANCED|ALIASED_TARGET|ALLOW_DUPLICATE_CUSTOM_TARGETS|ANDROID_(?:ANT_ADDITIONAL_OPTIONS|API|API_MIN|ARCH|ASSETS_DIRECTORIES|GUI|JAR_DEPENDENCIES|NATIVE_LIB_DEPENDENCIES|NATIVE_LIB_DIRECTORIES|PROCESS_MAX|PROGUARD|PROGUARD_CONFIG_PATH|SECURE_PROPS_PATH|SKIP_ANT_STEP|STL_TYPE)|ARCHIVE_OUTPUT_DIRECTORY|ATTACHED_FILES|ATTACHED_FILES_ON_FAIL|AUTOGEN_(?:BUILD_DIR|ORIGIN_DEPENDS|PARALLEL|SOURCE_GROUP|TARGETS_FOLDER|TARGET_DEPENDS)|AUTOMOC|AUTOMOC_(?:COMPILER_PREDEFINES|DEPEND_FILTERS|EXECUTABLE|MACRO_NAMES|MOC_OPTIONS|SOURCE_GROUP|TARGETS_FOLDER)|AUTORCC|AUTORCC_EXECUTABLE|AUTORCC_OPTIONS|AUTORCC_SOURCE_GROUP|AUTOUIC|AUTOUIC_EXECUTABLE|AUTOUIC_OPTIONS|AUTOUIC_SEARCH_PATHS|BINARY_DIR|BUILDSYSTEM_TARGETS|BUILD_RPATH|BUILD_RPATH_USE_ORIGIN|BUILD_WITH_INSTALL_NAME_DIR|BUILD_WITH_INSTALL_RPATH|BUNDLE|BUNDLE_EXTENSION|CACHE_VARIABLES|CLEAN_NO_CUSTOM|COMMON_LANGUAGE_RUNTIME|COMPATIBLE_INTERFACE_(?:BOOL|NUMBER_MAX|NUMBER_MIN|STRING)|COMPILE_(?:DEFINITIONS|FEATURES|FLAGS|OPTIONS|PDB_NAME|PDB_OUTPUT_DIRECTORY)|COST|CPACK_DESKTOP_SHORTCUTS|CPACK_NEVER_OVERWRITE|CPACK_PERMANENT|CPACK_STARTUP_SHORTCUTS|CPACK_START_MENU_SHORTCUTS|CPACK_WIX_ACL|CROSSCOMPILING_EMULATOR|CUDA_EXTENSIONS|CUDA_PTX_COMPILATION|CUDA_RESOLVE_DEVICE_SYMBOLS|CUDA_SEPARABLE_COMPILATION|CUDA_STANDARD|CUDA_STANDARD_REQUIRED|CXX_EXTENSIONS|CXX_STANDARD|CXX_STANDARD_REQUIRED|C_EXTENSIONS|C_STANDARD|C_STANDARD_REQUIRED|DEBUG_CONFIGURATIONS|DEFINE_SYMBOL|DEFINITIONS|DEPENDS|DEPLOYMENT_ADDITIONAL_FILES|DEPLOYMENT_REMOTE_DIRECTORY|DISABLED|DISABLED_FEATURES|ECLIPSE_EXTRA_CPROJECT_CONTENTS|ECLIPSE_EXTRA_NATURES|ENABLED_FEATURES|ENABLED_LANGUAGES|ENABLE_EXPORTS|ENVIRONMENT|EXCLUDE_FROM_ALL|EXCLUDE_FROM_DEFAULT_BUILD|EXPORT_NAME|EXPORT_PROPERTIES|EXTERNAL_OBJECT|EchoString|FAIL_REGULAR_EXPRESSION|FIND_LIBRARY_USE_LIB32_PATHS|FIND_LIBRARY_USE_LIB64_PATHS|FIND_LIBRARY_USE_LIBX32_PATHS|FIND_LIBRARY_USE_OPENBSD_VERSIONING|FIXTURES_CLEANUP|FIXTURES_REQUIRED|FIXTURES_SETUP|FOLDER|FRAMEWORK|Fortran_FORMAT|Fortran_MODULE_DIRECTORY|GENERATED|GENERATOR_FILE_NAME|GENERATOR_IS_MULTI_CONFIG|GHS_INTEGRITY_APP|GHS_NO_SOURCE_GROUP_FILE|GLOBAL_DEPENDS_DEBUG_MODE|GLOBAL_DEPENDS_NO_CYCLES|GNUtoMS|HAS_CXX|HEADER_FILE_ONLY|HELPSTRING|IMPLICIT_DEPENDS_INCLUDE_TRANSFORM|IMPORTED|IMPORTED_(?:COMMON_LANGUAGE_RUNTIME|CONFIGURATIONS|GLOBAL|IMPLIB|LIBNAME|LINK_DEPENDENT_LIBRARIES|LINK_INTERFACE_(?:LANGUAGES|LIBRARIES|MULTIPLICITY)|LOCATION|NO_SONAME|OBJECTS|SONAME)|IMPORT_PREFIX|IMPORT_SUFFIX|INCLUDE_DIRECTORIES|INCLUDE_REGULAR_EXPRESSION|INSTALL_NAME_DIR|INSTALL_RPATH|INSTALL_RPATH_USE_LINK_PATH|INTERFACE_(?:AUTOUIC_OPTIONS|COMPILE_DEFINITIONS|COMPILE_FEATURES|COMPILE_OPTIONS|INCLUDE_DIRECTORIES|LINK_DEPENDS|LINK_DIRECTORIES|LINK_LIBRARIES|LINK_OPTIONS|POSITION_INDEPENDENT_CODE|SOURCES|SYSTEM_INCLUDE_DIRECTORIES)|INTERPROCEDURAL_OPTIMIZATION|IN_TRY_COMPILE|IOS_INSTALL_COMBINED|JOB_POOLS|JOB_POOL_COMPILE|JOB_POOL_LINK|KEEP_EXTENSION|LABELS|LANGUAGE|LIBRARY_OUTPUT_DIRECTORY|LINKER_LANGUAGE|LINK_(?:DEPENDS|DEPENDS_NO_SHARED|DIRECTORIES|FLAGS|INTERFACE_LIBRARIES|INTERFACE_MULTIPLICITY|LIBRARIES|OPTIONS|SEARCH_END_STATIC|SEARCH_START_STATIC|WHAT_YOU_USE)|LISTFILE_STACK|LOCATION|MACOSX_BUNDLE|MACOSX_BUNDLE_INFO_PLIST|MACOSX_FRAMEWORK_INFO_PLIST|MACOSX_PACKAGE_LOCATION|MACOSX_RPATH|MACROS|MANUALLY_ADDED_DEPENDENCIES|MEASUREMENT|MODIFIED|NAME|NO_SONAME|NO_SYSTEM_FROM_IMPORTED|OBJECT_DEPENDS|OBJECT_OUTPUTS|OSX_ARCHITECTURES|OUTPUT_NAME|PACKAGES_FOUND|PACKAGES_NOT_FOUND|PARENT_DIRECTORY|PASS_REGULAR_EXPRESSION|PDB_NAME|PDB_OUTPUT_DIRECTORY|POSITION_INDEPENDENT_CODE|POST_INSTALL_SCRIPT|PREDEFINED_TARGETS_FOLDER|PREFIX|PRE_INSTALL_SCRIPT|PRIVATE_HEADER|PROCESSORS|PROCESSOR_AFFINITY|PROJECT_LABEL|PUBLIC_HEADER|REPORT_UNDEFINED_PROPERTIES|REQUIRED_FILES|RESOURCE|RESOURCE_LOCK|RULE_LAUNCH_COMPILE|RULE_LAUNCH_CUSTOM|RULE_LAUNCH_LINK|RULE_MESSAGES|RUNTIME_OUTPUT_DIRECTORY|RUN_SERIAL|SKIP_AUTOGEN|SKIP_AUTOMOC|SKIP_AUTORCC|SKIP_AUTOUIC|SKIP_BUILD_RPATH|SKIP_RETURN_CODE|SOURCES|SOURCE_DIR|SOVERSION|STATIC_LIBRARY_FLAGS|STATIC_LIBRARY_OPTIONS|STRINGS|SUBDIRECTORIES|SUFFIX|SYMBOLIC|TARGET_ARCHIVES_MAY_BE_SHARED_LIBS|TARGET_MESSAGES|TARGET_SUPPORTS_SHARED_LIBS|TESTS|TEST_INCLUDE_FILE|TEST_INCLUDE_FILES|TIMEOUT|TIMEOUT_AFTER_MATCH|TYPE|USE_FOLDERS|VALUE|VARIABLES|VERSION|VISIBILITY_INLINES_HIDDEN|VS_(?:CONFIGURATION_TYPE|COPY_TO_OUT_DIR|DEBUGGER_(?:COMMAND|COMMAND_ARGUMENTS|ENVIRONMENT|WORKING_DIRECTORY)|DEPLOYMENT_CONTENT|DEPLOYMENT_LOCATION|DOTNET_REFERENCES|DOTNET_REFERENCES_COPY_LOCAL|GLOBAL_KEYWORD|GLOBAL_PROJECT_TYPES|GLOBAL_ROOTNAMESPACE|INCLUDE_IN_VSIX|IOT_STARTUP_TASK|KEYWORD|RESOURCE_GENERATOR|SCC_AUXPATH|SCC_LOCALPATH|SCC_PROJECTNAME|SCC_PROVIDER|SDK_REFERENCES|SHADER_(?:DISABLE_OPTIMIZATIONS|ENABLE_DEBUG|ENTRYPOINT|FLAGS|MODEL|OBJECT_FILE_NAME|OUTPUT_HEADER_FILE|TYPE|VARIABLE_NAME)|STARTUP_PROJECT|TOOL_OVERRIDE|USER_PROPS|WINRT_COMPONENT|WINRT_EXTENSIONS|WINRT_REFERENCES|XAML_TYPE)|WILL_FAIL|WIN32_EXECUTABLE|WINDOWS_EXPORT_ALL_SYMBOLS|WORKING_DIRECTORY|WRAP_EXCLUDE|XCODE_(?:EMIT_EFFECTIVE_PLATFORM_NAME|EXPLICIT_FILE_TYPE|FILE_ATTRIBUTES|LAST_KNOWN_FILE_TYPE|PRODUCT_TYPE|SCHEME_(?:ADDRESS_SANITIZER|ADDRESS_SANITIZER_USE_AFTER_RETURN|ARGUMENTS|DISABLE_MAIN_THREAD_CHECKER|DYNAMIC_LIBRARY_LOADS|DYNAMIC_LINKER_API_USAGE|ENVIRONMENT|EXECUTABLE|GUARD_MALLOC|MAIN_THREAD_CHECKER_STOP|MALLOC_GUARD_EDGES|MALLOC_SCRIBBLE|MALLOC_STACK|THREAD_SANITIZER(?:_STOP)?|UNDEFINED_BEHAVIOUR_SANITIZER(?:_STOP)?|ZOMBIE_OBJECTS))|XCTEST)\b/,keyword:/\b(?:add_compile_definitions|add_compile_options|add_custom_command|add_custom_target|add_definitions|add_dependencies|add_executable|add_library|add_link_options|add_subdirectory|add_test|aux_source_directory|break|build_command|build_name|cmake_host_system_information|cmake_minimum_required|cmake_parse_arguments|cmake_policy|configure_file|continue|create_test_sourcelist|ctest_build|ctest_configure|ctest_coverage|ctest_empty_binary_directory|ctest_memcheck|ctest_read_custom_files|ctest_run_script|ctest_sleep|ctest_start|ctest_submit|ctest_test|ctest_update|ctest_upload|define_property|else|elseif|enable_language|enable_testing|endforeach|endfunction|endif|endmacro|endwhile|exec_program|execute_process|export|export_library_dependencies|file|find_file|find_library|find_package|find_path|find_program|fltk_wrap_ui|foreach|function|get_cmake_property|get_directory_property|get_filename_component|get_property|get_source_file_property|get_target_property|get_test_property|if|include|include_directories|include_external_msproject|include_guard|include_regular_expression|install|install_files|install_programs|install_targets|link_directories|link_libraries|list|load_cache|load_command|macro|make_directory|mark_as_advanced|math|message|option|output_required_files|project|qt_wrap_cpp|qt_wrap_ui|remove|remove_definitions|return|separate_arguments|set|set_directory_properties|set_property|set_source_files_properties|set_target_properties|set_tests_properties|site_name|source_group|string|subdir_depends|subdirs|target_compile_definitions|target_compile_features|target_compile_options|target_include_directories|target_link_directories|target_link_libraries|target_link_options|target_sources|try_compile|try_run|unset|use_mangled_mesa|utility_source|variable_requires|variable_watch|while|write_file)(?=\s*\()\b/,boolean:/\b(?:FALSE|OFF|ON|TRUE)\b/,namespace:/\b(?:INTERFACE|PRIVATE|PROPERTIES|PUBLIC|SHARED|STATIC|TARGET_OBJECTS)\b/,operator:/\b(?:AND|DEFINED|EQUAL|GREATER|LESS|MATCHES|NOT|OR|STREQUAL|STRGREATER|STRLESS|VERSION_EQUAL|VERSION_GREATER|VERSION_LESS)\b/,inserted:{pattern:/\b\w+::\w+\b/,alias:"class-name"},number:/\b\d+(?:\.\d+)*\b/,function:/\b[a-z_]\w*(?=\s*\()\b/i,punctuation:/[()>}]|\$[<{]/}}return Cd}var Nd,kw;function pre(){if(kw)return Nd;kw=1,Nd=e,e.displayName="cobol",e.aliases=[];function e(t){t.languages.cobol={comment:{pattern:/\*>.*|(^[ \t]*)\*.*/m,lookbehind:!0,greedy:!0},string:{pattern:/[xzgn]?(?:"(?:[^\r\n"]|"")*"(?!")|'(?:[^\r\n']|'')*'(?!'))/i,greedy:!0},level:{pattern:/(^[ \t]*)\d+\b/m,lookbehind:!0,greedy:!0,alias:"number"},"class-name":{pattern:/(\bpic(?:ture)?\s+)(?:(?:[-\w$/,:*+<>]|\.(?!\s|$))(?:\(\d+\))?)+/i,lookbehind:!0,inside:{number:{pattern:/(\()\d+/,lookbehind:!0},punctuation:/[()]/}},keyword:{pattern:/(^|[^\w-])(?:ABORT|ACCEPT|ACCESS|ADD|ADDRESS|ADVANCING|AFTER|ALIGNED|ALL|ALPHABET|ALPHABETIC|ALPHABETIC-LOWER|ALPHABETIC-UPPER|ALPHANUMERIC|ALPHANUMERIC-EDITED|ALSO|ALTER|ALTERNATE|ANY|ARE|AREA|AREAS|AS|ASCENDING|ASCII|ASSIGN|ASSOCIATED-DATA|ASSOCIATED-DATA-LENGTH|AT|ATTRIBUTE|AUTHOR|AUTO|AUTO-SKIP|BACKGROUND-COLOR|BACKGROUND-COLOUR|BASIS|BEEP|BEFORE|BEGINNING|BELL|BINARY|BIT|BLANK|BLINK|BLOCK|BOTTOM|BOUNDS|BY|BYFUNCTION|BYTITLE|CALL|CANCEL|CAPABLE|CCSVERSION|CD|CF|CH|CHAINING|CHANGED|CHANNEL|CHARACTER|CHARACTERS|CLASS|CLASS-ID|CLOCK-UNITS|CLOSE|CLOSE-DISPOSITION|COBOL|CODE|CODE-SET|COL|COLLATING|COLUMN|COM-REG|COMMA|COMMITMENT|COMMON|COMMUNICATION|COMP|COMP-1|COMP-2|COMP-3|COMP-4|COMP-5|COMPUTATIONAL|COMPUTATIONAL-1|COMPUTATIONAL-2|COMPUTATIONAL-3|COMPUTATIONAL-4|COMPUTATIONAL-5|COMPUTE|CONFIGURATION|CONTAINS|CONTENT|CONTINUE|CONTROL|CONTROL-POINT|CONTROLS|CONVENTION|CONVERTING|COPY|CORR|CORRESPONDING|COUNT|CRUNCH|CURRENCY|CURSOR|DATA|DATA-BASE|DATE|DATE-COMPILED|DATE-WRITTEN|DAY|DAY-OF-WEEK|DBCS|DE|DEBUG-CONTENTS|DEBUG-ITEM|DEBUG-LINE|DEBUG-NAME|DEBUG-SUB-1|DEBUG-SUB-2|DEBUG-SUB-3|DEBUGGING|DECIMAL-POINT|DECLARATIVES|DEFAULT|DEFAULT-DISPLAY|DEFINITION|DELETE|DELIMITED|DELIMITER|DEPENDING|DESCENDING|DESTINATION|DETAIL|DFHRESP|DFHVALUE|DISABLE|DISK|DISPLAY|DISPLAY-1|DIVIDE|DIVISION|DONTCARE|DOUBLE|DOWN|DUPLICATES|DYNAMIC|EBCDIC|EGCS|EGI|ELSE|EMI|EMPTY-CHECK|ENABLE|END|END-ACCEPT|END-ADD|END-CALL|END-COMPUTE|END-DELETE|END-DIVIDE|END-EVALUATE|END-IF|END-MULTIPLY|END-OF-PAGE|END-PERFORM|END-READ|END-RECEIVE|END-RETURN|END-REWRITE|END-SEARCH|END-START|END-STRING|END-SUBTRACT|END-UNSTRING|END-WRITE|ENDING|ENTER|ENTRY|ENTRY-PROCEDURE|ENVIRONMENT|EOL|EOP|EOS|ERASE|ERROR|ESCAPE|ESI|EVALUATE|EVENT|EVERY|EXCEPTION|EXCLUSIVE|EXHIBIT|EXIT|EXPORT|EXTEND|EXTENDED|EXTERNAL|FD|FILE|FILE-CONTROL|FILLER|FINAL|FIRST|FOOTING|FOR|FOREGROUND-COLOR|FOREGROUND-COLOUR|FROM|FULL|FUNCTION|FUNCTION-POINTER|FUNCTIONNAME|GENERATE|GIVING|GLOBAL|GO|GOBACK|GRID|GROUP|HEADING|HIGH-VALUE|HIGH-VALUES|HIGHLIGHT|I-O|I-O-CONTROL|ID|IDENTIFICATION|IF|IMPLICIT|IMPORT|IN|INDEX|INDEXED|INDICATE|INITIAL|INITIALIZE|INITIATE|INPUT|INPUT-OUTPUT|INSPECT|INSTALLATION|INTEGER|INTO|INVALID|INVOKE|IS|JUST|JUSTIFIED|KANJI|KEPT|KEY|KEYBOARD|LABEL|LANGUAGE|LAST|LB|LD|LEADING|LEFT|LEFTLINE|LENGTH|LENGTH-CHECK|LIBACCESS|LIBPARAMETER|LIBRARY|LIMIT|LIMITS|LINAGE|LINAGE-COUNTER|LINE|LINE-COUNTER|LINES|LINKAGE|LIST|LOCAL|LOCAL-STORAGE|LOCK|LONG-DATE|LONG-TIME|LOW-VALUE|LOW-VALUES|LOWER|LOWLIGHT|MEMORY|MERGE|MESSAGE|MMDDYYYY|MODE|MODULES|MORE-LABELS|MOVE|MULTIPLE|MULTIPLY|NAMED|NATIONAL|NATIONAL-EDITED|NATIVE|NEGATIVE|NETWORK|NEXT|NO|NO-ECHO|NULL|NULLS|NUMBER|NUMERIC|NUMERIC-DATE|NUMERIC-EDITED|NUMERIC-TIME|OBJECT-COMPUTER|OCCURS|ODT|OF|OFF|OMITTED|ON|OPEN|OPTIONAL|ORDER|ORDERLY|ORGANIZATION|OTHER|OUTPUT|OVERFLOW|OVERLINE|OWN|PACKED-DECIMAL|PADDING|PAGE|PAGE-COUNTER|PASSWORD|PERFORM|PF|PH|PIC|PICTURE|PLUS|POINTER|PORT|POSITION|POSITIVE|PRINTER|PRINTING|PRIVATE|PROCEDURE|PROCEDURE-POINTER|PROCEDURES|PROCEED|PROCESS|PROGRAM|PROGRAM-ID|PROGRAM-LIBRARY|PROMPT|PURGE|QUEUE|QUOTE|QUOTES|RANDOM|RD|READ|READER|REAL|RECEIVE|RECEIVED|RECORD|RECORDING|RECORDS|RECURSIVE|REDEFINES|REEL|REF|REFERENCE|REFERENCES|RELATIVE|RELEASE|REMAINDER|REMARKS|REMOTE|REMOVAL|REMOVE|RENAMES|REPLACE|REPLACING|REPORT|REPORTING|REPORTS|REQUIRED|RERUN|RESERVE|RESET|RETURN|RETURN-CODE|RETURNING|REVERSE-VIDEO|REVERSED|REWIND|REWRITE|RF|RH|RIGHT|ROUNDED|RUN|SAME|SAVE|SCREEN|SD|SEARCH|SECTION|SECURE|SECURITY|SEGMENT|SEGMENT-LIMIT|SELECT|SEND|SENTENCE|SEPARATE|SEQUENCE|SEQUENTIAL|SET|SHARED|SHAREDBYALL|SHAREDBYRUNUNIT|SHARING|SHIFT-IN|SHIFT-OUT|SHORT-DATE|SIGN|SIZE|SORT|SORT-CONTROL|SORT-CORE-SIZE|SORT-FILE-SIZE|SORT-MERGE|SORT-MESSAGE|SORT-MODE-SIZE|SORT-RETURN|SOURCE|SOURCE-COMPUTER|SPACE|SPACES|SPECIAL-NAMES|STANDARD|STANDARD-1|STANDARD-2|START|STATUS|STOP|STRING|SUB-QUEUE-1|SUB-QUEUE-2|SUB-QUEUE-3|SUBTRACT|SUM|SUPPRESS|SYMBOL|SYMBOLIC|SYNC|SYNCHRONIZED|TABLE|TALLY|TALLYING|TAPE|TASK|TERMINAL|TERMINATE|TEST|TEXT|THEN|THREAD|THREAD-LOCAL|THROUGH|THRU|TIME|TIMER|TIMES|TITLE|TO|TODAYS-DATE|TODAYS-NAME|TOP|TRAILING|TRUNCATED|TYPE|TYPEDEF|UNDERLINE|UNIT|UNSTRING|UNTIL|UP|UPON|USAGE|USE|USING|VALUE|VALUES|VARYING|VIRTUAL|WAIT|WHEN|WHEN-COMPILED|WITH|WORDS|WORKING-STORAGE|WRITE|YEAR|YYYYDDD|YYYYMMDD|ZERO-FILL|ZEROES|ZEROS)(?![\w-])/i,lookbehind:!0},boolean:{pattern:/(^|[^\w-])(?:false|true)(?![\w-])/i,lookbehind:!0},number:{pattern:/(^|[^\w-])(?:[+-]?(?:(?:\d+(?:[.,]\d+)?|[.,]\d+)(?:e[+-]?\d+)?|zero))(?![\w-])/i,lookbehind:!0},operator:[/<>|[<>]=?|[=+*/&]/,{pattern:/(^|[^\w-])(?:-|and|equal|greater|less|not|or|than)(?![\w-])/i,lookbehind:!0}],punctuation:/[.:,()]/}}return Nd}var Ld,Rw;function fre(){if(Rw)return Ld;Rw=1,Ld=e,e.displayName="coffeescript",e.aliases=["coffee"];function e(t){(function(r){var n=/#(?!\{).+/,a={pattern:/#\{[^}]+\}/,alias:"variable"};r.languages.coffeescript=r.languages.extend("javascript",{comment:n,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:a}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),r.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:n,interpolation:a}}}),r.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:r.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:a}}]}),r.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete r.languages.coffeescript["template-string"],r.languages.coffee=r.languages.coffeescript})(t)}return Ld}var Dd,Iw;function gre(){if(Iw)return Dd;Iw=1,Dd=e,e.displayName="concurnas",e.aliases=["conc"];function e(t){t.languages.concurnas={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\/\/.*)/,lookbehind:!0,greedy:!0},langext:{pattern:/\b\w+\s*\|\|[\s\S]+?\|\|/,greedy:!0,inside:{"class-name":/^\w+/,string:{pattern:/(^\s*\|\|)[\s\S]+(?=\|\|$)/,lookbehind:!0},punctuation:/\|\|/}},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/,lookbehind:!0},keyword:/\b(?:abstract|actor|also|annotation|assert|async|await|bool|boolean|break|byte|case|catch|changed|char|class|closed|constant|continue|def|default|del|double|elif|else|enum|every|extends|false|finally|float|for|from|global|gpudef|gpukernel|if|import|in|init|inject|int|lambda|local|long|loop|match|new|nodefault|null|of|onchange|open|out|override|package|parfor|parforsync|post|pre|private|protected|provide|provider|public|return|shared|short|single|size_t|sizeof|super|sync|this|throw|trait|trans|transient|true|try|typedef|unchecked|using|val|var|void|while|with)\b/,boolean:/\b(?:false|true)\b/,number:/\b0b[01][01_]*L?\b|\b0x(?:[\da-f_]*\.)?[\da-f_p+-]+\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfls]?/i,punctuation:/[{}[\];(),.:]/,operator:/<==|>==|=>|->|<-|<>|&==|&<>|\?:?|\.\?|\+\+|--|[-+*/=<>]=?|[!^~]|\b(?:and|as|band|bor|bxor|comp|is|isnot|mod|or)\b=?/,annotation:{pattern:/@(?:\w+:)?(?:\w+|\[[^\]]+\])?/,alias:"builtin"}},t.languages.insertBefore("concurnas","langext",{"regex-literal":{pattern:/\br("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:t.languages.concurnas},regex:/[\s\S]+/}},"string-literal":{pattern:/(?:\B|\bs)("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:t.languages.concurnas},string:/[\s\S]+/}}}),t.languages.conc=t.languages.concurnas}return Dd}var Md,Cw;function hre(){if(Cw)return Md;Cw=1,Md=e,e.displayName="coq",e.aliases=[];function e(t){(function(r){for(var n=/\(\*(?:[^(*]|\((?!\*)|\*(?!\))|)*\*\)/.source,a=0;a<2;a++)n=n.replace(//g,function(){return n});n=n.replace(//g,"[]"),r.languages.coq={comment:RegExp(n),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},attribute:[{pattern:RegExp(/#\[(?:[^\[\]("]|"(?:[^"]|"")*"(?!")|\((?!\*)|)*\]/.source.replace(//g,function(){return n})),greedy:!0,alias:"attr-name",inside:{comment:RegExp(n),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},operator:/=/,punctuation:/^#\[|\]$|[,()]/}},{pattern:/\b(?:Cumulative|Global|Local|Monomorphic|NonCumulative|Polymorphic|Private|Program)\b/,alias:"attr-name"}],keyword:/\b(?:Abort|About|Add|Admit|Admitted|All|Arguments|As|Assumptions|Axiom|Axioms|Back|BackTo|Backtrace|BinOp|BinOpSpec|BinRel|Bind|Blacklist|Canonical|Case|Cd|Check|Class|Classes|Close|CoFixpoint|CoInductive|Coercion|Coercions|Collection|Combined|Compute|Conjecture|Conjectures|Constant|Constants|Constraint|Constructors|Context|Corollary|Create|CstOp|Custom|Cut|Debug|Declare|Defined|Definition|Delimit|Dependencies|Dependent|Derive|Diffs|Drop|Elimination|End|Entry|Equality|Eval|Example|Existential|Existentials|Existing|Export|Extern|Extraction|Fact|Fail|Field|File|Firstorder|Fixpoint|Flags|Focus|From|Funclass|Function|Functional|GC|Generalizable|Goal|Grab|Grammar|Graph|Guarded|Haskell|Heap|Hide|Hint|HintDb|Hints|Hypotheses|Hypothesis|IF|Identity|Immediate|Implicit|Implicits|Import|Include|Induction|Inductive|Infix|Info|Initial|InjTyp|Inline|Inspect|Instance|Instances|Intro|Intros|Inversion|Inversion_clear|JSON|Language|Left|Lemma|Let|Lia|Libraries|Library|Load|LoadPath|Locate|Ltac|Ltac2|ML|Match|Method|Minimality|Module|Modules|Morphism|Next|NoInline|Notation|Number|OCaml|Obligation|Obligations|Opaque|Open|Optimize|Parameter|Parameters|Parametric|Path|Paths|Prenex|Preterm|Primitive|Print|Profile|Projections|Proof|Prop|PropBinOp|PropOp|PropUOp|Property|Proposition|Pwd|Qed|Quit|Rec|Record|Recursive|Redirect|Reduction|Register|Relation|Remark|Remove|Require|Reserved|Reset|Resolve|Restart|Rewrite|Right|Ring|Rings|SProp|Saturate|Save|Scheme|Scope|Scopes|Search|SearchHead|SearchPattern|SearchRewrite|Section|Separate|Set|Setoid|Show|Signatures|Solve|Solver|Sort|Sortclass|Sorted|Spec|Step|Strategies|Strategy|String|Structure|SubClass|Subgraph|SuchThat|Tactic|Term|TestCompile|Theorem|Time|Timeout|To|Transparent|Type|Typeclasses|Types|Typing|UnOp|UnOpSpec|Undelimit|Undo|Unfocus|Unfocused|Unfold|Universe|Universes|Unshelve|Variable|Variables|Variant|Verbose|View|Visibility|Zify|_|apply|as|at|by|cofix|else|end|exists|exists2|fix|for|forall|fun|if|in|let|match|measure|move|removed|return|struct|then|using|wf|where|with)\b/,number:/\b(?:0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]+)?(?:p[+-]?\d[\d_]*)?|\d[\d_]*(?:\.[\d_]+)?(?:e[+-]?\d[\d_]*)?)\b/i,punct:{pattern:/@\{|\{\||\[=|:>/,alias:"punctuation"},operator:/\/\\|\\\/|\.{2,3}|:{1,2}=|\*\*|[-=]>|<(?:->?|[+:=>]|<:)|>(?:=|->)|\|[-|]?|[-!%&*+/<=>?@^~']/,punctuation:/\.\(|`\(|@\{|`\{|\{\||\[=|:>|[:.,;(){}\[\]]/}})(t)}return Md}var Pd,Nw;function Pu(){if(Nw)return Pd;Nw=1,Pd=e,e.displayName="ruby",e.aliases=["rb"];function e(t){(function(r){r.languages.ruby=r.languages.extend("clike",{comment:{pattern:/#.*|^=begin\s[\s\S]*?^=end/m,greedy:!0},"class-name":{pattern:/(\b(?:class|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/,operator:/\.{2,3}|&\.|===||[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,punctuation:/[(){}[\].,;]/}),r.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});var n={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:r.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}};delete r.languages.ruby.function;var a="(?:"+[/([^a-zA-Z0-9\s{(\[<=])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S]|\((?:[^()\\]|\\[\s\S])*\))*\)/.source,/\{(?:[^{}\\]|\\[\s\S]|\{(?:[^{}\\]|\\[\s\S])*\})*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S]|\[(?:[^\[\]\\]|\\[\s\S])*\])*\]/.source,/<(?:[^<>\\]|\\[\s\S]|<(?:[^<>\\]|\\[\s\S])*>)*>/.source].join("|")+")",i=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source;r.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+a+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:n,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:n,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+i),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+i+/(?=:(?!:))/.source),lookbehind:!0,greedy:!0}],"method-definition":{pattern:/(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,lookbehind:!0,inside:{function:/\b\w+$/,keyword:/^self\b/,"class-name":/^\w+/,punctuation:/\./}}}),r.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+a),greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?/}},interpolation:n,string:/[\s\S]+/}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?'|'$/}},string:/[\s\S]+/}}],"command-literal":[{pattern:RegExp(/%x/.source+a),greedy:!0,inside:{interpolation:n,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:n,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete r.languages.ruby.string,r.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,constant:/\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/}),r.languages.rb=r.languages.ruby})(t)}return Pd}var $d,Lw;function mre(){if(Lw)return $d;Lw=1;var e=Pu();$d=t,t.displayName="crystal",t.aliases=[];function t(r){r.register(e),function(n){n.languages.crystal=n.languages.extend("ruby",{keyword:[/\b(?:__DIR__|__END_LINE__|__FILE__|__LINE__|abstract|alias|annotation|as|asm|begin|break|case|class|def|do|else|elsif|end|ensure|enum|extend|for|fun|if|ifdef|include|instance_sizeof|lib|macro|module|next|of|out|pointerof|private|protected|ptr|require|rescue|return|select|self|sizeof|struct|super|then|type|typeof|undef|uninitialized|union|unless|until|when|while|with|yield)\b/,{pattern:/(\.\s*)(?:is_a|responds_to)\?/,lookbehind:!0}],number:/\b(?:0b[01_]*[01]|0o[0-7_]*[0-7]|0x[\da-fA-F_]*[\da-fA-F]|(?:\d(?:[\d_]*\d)?)(?:\.[\d_]*\d)?(?:[eE][+-]?[\d_]*\d)?)(?:_(?:[uif](?:8|16|32|64))?)?\b/,operator:[/->/,n.languages.ruby.operator],punctuation:/[(){}[\].,;\\]/}),n.languages.insertBefore("crystal","string-literal",{attribute:{pattern:/@\[.*?\]/,inside:{delimiter:{pattern:/^@\[|\]$/,alias:"punctuation"},attribute:{pattern:/^(\s*)\w+/,lookbehind:!0,alias:"class-name"},args:{pattern:/\S(?:[\s\S]*\S)?/,inside:n.languages.crystal}}},expansion:{pattern:/\{(?:\{.*?\}|%.*?%)\}/,inside:{content:{pattern:/^(\{.)[\s\S]+(?=.\}$)/,lookbehind:!0,inside:n.languages.crystal},delimiter:{pattern:/^\{[\{%]|[\}%]\}$/,alias:"operator"}}},char:{pattern:/'(?:[^\\\r\n]{1,2}|\\(?:.|u(?:[A-Fa-f0-9]{1,4}|\{[A-Fa-f0-9]{1,6}\})))'/,greedy:!0}})}(r)}return $d}var jd,Dw;function bre(){if(Dw)return jd;Dw=1;var e=Mu();jd=t,t.displayName="cshtml",t.aliases=["razor"];function t(r){r.register(e),function(n){var a=/\/(?![/*])|\/\/.*[\r\n]|\/\*[^*]*(?:\*(?!\/)[^*]*)*\*\//.source,i=/@(?!")|"(?:[^\r\n\\"]|\\.)*"|@"(?:[^\\"]|""|\\[\s\S])*"(?!")/.source+"|"+/'(?:(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'|(?=[^\\](?!')))/.source;function o(S,O){for(var _=0;_/g,function(){return"(?:"+S+")"});return S.replace(//g,"[^\\s\\S]").replace(//g,"(?:"+i+")").replace(//g,"(?:"+a+")")}var s=o(/\((?:[^()'"@/]|||)*\)/.source,2),l=o(/\[(?:[^\[\]'"@/]|||)*\]/.source,2),c=o(/\{(?:[^{}'"@/]|||)*\}/.source,2),d=o(/<(?:[^<>'"@/]|||)*>/.source,2),p=/(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?/.source,g=/(?!\d)[^\s>\/=$<%]+/.source+p+/\s*\/?>/.source,m=/\B@?/.source+"(?:"+/<([a-zA-Z][\w:]*)/.source+p+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+g+"|"+o(/<\1/.source+p+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+g+"|")+")*"+/<\/\1\s*>/.source,2))+")*"+/<\/\1\s*>/.source+"|"+/|\+|~|\|\|/,punctuation:/[(),]/}},r.languages.css.atrule.inside["selector-function-argument"].inside=a,r.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}});var i={pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0},o={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};r.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:i,number:o,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:i,number:o})})(t)}return Bd}var Ud,$w;function Sre(){if($w)return Ud;$w=1,Ud=e,e.displayName="csv",e.aliases=[];function e(t){t.languages.csv={value:/[^\r\n,"]+|"(?:[^"]|"")*"(?!")/,punctuation:/,/}}return Ud}var Gd,jw;function Ere(){if(jw)return Gd;jw=1,Gd=e,e.displayName="cypher",e.aliases=[];function e(t){t.languages.cypher={comment:/\/\/.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/,greedy:!0},"class-name":{pattern:/(:\s*)(?:\w+|`(?:[^`\\\r\n])*`)(?=\s*[{):])/,lookbehind:!0,greedy:!0},relationship:{pattern:/(-\[\s*(?:\w+\s*|`(?:[^`\\\r\n])*`\s*)?:\s*|\|\s*:\s*)(?:\w+|`(?:[^`\\\r\n])*`)/,lookbehind:!0,greedy:!0,alias:"property"},identifier:{pattern:/`(?:[^`\\\r\n])*`/,greedy:!0},variable:/\$\w+/,keyword:/\b(?:ADD|ALL|AND|AS|ASC|ASCENDING|ASSERT|BY|CALL|CASE|COMMIT|CONSTRAINT|CONTAINS|CREATE|CSV|DELETE|DESC|DESCENDING|DETACH|DISTINCT|DO|DROP|ELSE|END|ENDS|EXISTS|FOR|FOREACH|IN|INDEX|IS|JOIN|KEY|LIMIT|LOAD|MANDATORY|MATCH|MERGE|NODE|NOT|OF|ON|OPTIONAL|OR|ORDER(?=\s+BY)|PERIODIC|REMOVE|REQUIRE|RETURN|SCALAR|SCAN|SET|SKIP|START|STARTS|THEN|UNION|UNIQUE|UNWIND|USING|WHEN|WHERE|WITH|XOR|YIELD)\b/i,function:/\b\w+\b(?=\s*\()/,boolean:/\b(?:false|null|true)\b/i,number:/\b(?:0x[\da-fA-F]+|\d+(?:\.\d+)?(?:[eE][+-]?\d+)?)\b/,operator:/:|<--?|--?>?|<>|=~?|[<>]=?|[+*/%^|]|\.\.\.?/,punctuation:/[()[\]{},;.]/}}return Gd}var zd,Fw;function xre(){if(Fw)return zd;Fw=1,zd=e,e.displayName="d",e.aliases=[];function e(t){t.languages.d=t.languages.extend("clike",{comment:[{pattern:/^\s*#!.+/,greedy:!0},{pattern:RegExp(/(^|[^\\])/.source+"(?:"+[/\/\+(?:\/\+(?:[^+]|\+(?!\/))*\+\/|(?!\/\+)[\s\S])*?\+\//.source,/\/\/.*/.source,/\/\*[\s\S]*?\*\//.source].join("|")+")"),lookbehind:!0,greedy:!0}],string:[{pattern:RegExp([/\b[rx]"(?:\\[\s\S]|[^\\"])*"[cwd]?/.source,/\bq"(?:\[[\s\S]*?\]|\([\s\S]*?\)|<[\s\S]*?>|\{[\s\S]*?\})"/.source,/\bq"((?!\d)\w+)$[\s\S]*?^\1"/.source,/\bq"(.)[\s\S]*?\2"/.source,/(["`])(?:\\[\s\S]|(?!\3)[^\\])*\3[cwd]?/.source].join("|"),"m"),greedy:!0},{pattern:/\bq\{(?:\{[^{}]*\}|[^{}])*\}/,greedy:!0,alias:"token-string"}],keyword:/\$|\b(?:__(?:(?:DATE|EOF|FILE|FUNCTION|LINE|MODULE|PRETTY_FUNCTION|TIMESTAMP|TIME|VENDOR|VERSION)__|gshared|parameters|traits|vector)|abstract|alias|align|asm|assert|auto|body|bool|break|byte|case|cast|catch|cdouble|cent|cfloat|char|class|const|continue|creal|dchar|debug|default|delegate|delete|deprecated|do|double|dstring|else|enum|export|extern|false|final|finally|float|for|foreach|foreach_reverse|function|goto|idouble|if|ifloat|immutable|import|inout|int|interface|invariant|ireal|lazy|long|macro|mixin|module|new|nothrow|null|out|override|package|pragma|private|protected|ptrdiff_t|public|pure|real|ref|return|scope|shared|short|size_t|static|string|struct|super|switch|synchronized|template|this|throw|true|try|typedef|typeid|typeof|ubyte|ucent|uint|ulong|union|unittest|ushort|version|void|volatile|wchar|while|with|wstring)\b/,number:[/\b0x\.?[a-f\d_]+(?:(?!\.\.)\.[a-f\d_]*)?(?:p[+-]?[a-f\d_]+)?[ulfi]{0,4}/i,{pattern:/((?:\.\.)?)(?:\b0b\.?|\b|\.)\d[\d_]*(?:(?!\.\.)\.[\d_]*)?(?:e[+-]?\d[\d_]*)?[ulfi]{0,4}/i,lookbehind:!0}],operator:/\|[|=]?|&[&=]?|\+[+=]?|-[-=]?|\.?\.\.|=[>=]?|!(?:i[ns]\b|<>?=?|>=?|=)?|\bi[ns]\b|(?:<[<>]?|>>?>?|\^\^|[*\/%^~])=?/}),t.languages.insertBefore("d","string",{char:/'(?:\\(?:\W|\w+)|[^\\])'/}),t.languages.insertBefore("d","keyword",{property:/\B@\w*/}),t.languages.insertBefore("d","function",{register:{pattern:/\b(?:[ABCD][LHX]|E?(?:BP|DI|SI|SP)|[BS]PL|[ECSDGF]S|CR[0234]|[DS]IL|DR[012367]|E[ABCD]X|X?MM[0-7]|R(?:1[0-5]|[89])[BWD]?|R[ABCD]X|R[BS]P|R[DS]I|TR[3-7]|XMM(?:1[0-5]|[89])|YMM(?:1[0-5]|\d))\b|\bST(?:\([0-7]\)|\b)/,alias:"variable"}})}return zd}var qd,Bw;function wre(){if(Bw)return qd;Bw=1,qd=e,e.displayName="dart",e.aliases=[];function e(t){(function(r){var n=[/\b(?:async|sync|yield)\*/,/\b(?:abstract|assert|async|await|break|case|catch|class|const|continue|covariant|default|deferred|do|dynamic|else|enum|export|extends|extension|external|factory|final|finally|for|get|hide|if|implements|import|in|interface|library|mixin|new|null|on|operator|part|rethrow|return|set|show|static|super|switch|sync|this|throw|try|typedef|var|void|while|with|yield)\b/],a=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,i={pattern:RegExp(a+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}}}};r.languages.dart=r.languages.extend("clike",{"class-name":[i,{pattern:RegExp(a+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:i.inside}],keyword:n,operator:/\bis!|\b(?:as|is)\b|\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?/}),r.languages.insertBefore("dart","string",{"string-literal":{pattern:/r?(?:("""|''')[\s\S]*?\1|(["'])(?:\\.|(?!\2)[^\\\r\n])*\2(?!\2))/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,lookbehind:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:r.languages.dart}}},string:/[\s\S]+/}},string:void 0}),r.languages.insertBefore("dart","class-name",{metadata:{pattern:/@\w+/,alias:"function"}}),r.languages.insertBefore("dart","class-name",{generics:{pattern:/<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<[\w\s,.&?]*>)*>)*>)*>/,inside:{"class-name":i,keyword:n,punctuation:/[<>(),.:]/,operator:/[?&|]/}}})})(t)}return qd}var Hd,Uw;function _re(){if(Uw)return Hd;Uw=1,Hd=e,e.displayName="dataweave",e.aliases=[];function e(t){(function(r){r.languages.dataweave={url:/\b[A-Za-z]+:\/\/[\w/:.?=&-]+|\burn:[\w:.?=&-]+/,property:{pattern:/(?:\b\w+#)?(?:"(?:\\.|[^\\"\r\n])*"|\b\w+)(?=\s*[:@])/,greedy:!0},string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},"mime-type":/\b(?:application|audio|image|multipart|text|video)\/[\w+-]+/,date:{pattern:/\|[\w:+-]+\|/,greedy:!0},comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],regex:{pattern:/\/(?:[^\\\/\r\n]|\\[^\r\n])+\//,greedy:!0},keyword:/\b(?:and|as|at|case|do|else|fun|if|input|is|match|not|ns|null|or|output|type|unless|update|using|var)\b/,function:/\b[A-Z_]\w*(?=\s*\()/i,number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\];(),.:@]/,operator:/<<|>>|->|[<>~=]=?|!=|--?-?|\+\+?|!|\?/,boolean:/\b(?:false|true)\b/}})(t)}return Hd}var Wd,Gw;function Tre(){if(Gw)return Wd;Gw=1,Wd=e,e.displayName="dax",e.aliases=[];function e(t){t.languages.dax={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/).*)/,lookbehind:!0},"data-field":{pattern:/'(?:[^']|'')*'(?!')(?:\[[ \w\xA0-\uFFFF]+\])?|\w+\[[ \w\xA0-\uFFFF]+\]/,alias:"symbol"},measure:{pattern:/\[[ \w\xA0-\uFFFF]+\]/,alias:"constant"},string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},function:/\b(?:ABS|ACOS|ACOSH|ACOT|ACOTH|ADDCOLUMNS|ADDMISSINGITEMS|ALL|ALLCROSSFILTERED|ALLEXCEPT|ALLNOBLANKROW|ALLSELECTED|AND|APPROXIMATEDISTINCTCOUNT|ASIN|ASINH|ATAN|ATANH|AVERAGE|AVERAGEA|AVERAGEX|BETA\.DIST|BETA\.INV|BLANK|CALCULATE|CALCULATETABLE|CALENDAR|CALENDARAUTO|CEILING|CHISQ\.DIST|CHISQ\.DIST\.RT|CHISQ\.INV|CHISQ\.INV\.RT|CLOSINGBALANCEMONTH|CLOSINGBALANCEQUARTER|CLOSINGBALANCEYEAR|COALESCE|COMBIN|COMBINA|COMBINEVALUES|CONCATENATE|CONCATENATEX|CONFIDENCE\.NORM|CONFIDENCE\.T|CONTAINS|CONTAINSROW|CONTAINSSTRING|CONTAINSSTRINGEXACT|CONVERT|COS|COSH|COT|COTH|COUNT|COUNTA|COUNTAX|COUNTBLANK|COUNTROWS|COUNTX|CROSSFILTER|CROSSJOIN|CURRENCY|CURRENTGROUP|CUSTOMDATA|DATATABLE|DATE|DATEADD|DATEDIFF|DATESBETWEEN|DATESINPERIOD|DATESMTD|DATESQTD|DATESYTD|DATEVALUE|DAY|DEGREES|DETAILROWS|DISTINCT|DISTINCTCOUNT|DISTINCTCOUNTNOBLANK|DIVIDE|EARLIER|EARLIEST|EDATE|ENDOFMONTH|ENDOFQUARTER|ENDOFYEAR|EOMONTH|ERROR|EVEN|EXACT|EXCEPT|EXP|EXPON\.DIST|FACT|FALSE|FILTER|FILTERS|FIND|FIRSTDATE|FIRSTNONBLANK|FIRSTNONBLANKVALUE|FIXED|FLOOR|FORMAT|GCD|GENERATE|GENERATEALL|GENERATESERIES|GEOMEAN|GEOMEANX|GROUPBY|HASONEFILTER|HASONEVALUE|HOUR|IF|IF\.EAGER|IFERROR|IGNORE|INT|INTERSECT|ISBLANK|ISCROSSFILTERED|ISEMPTY|ISERROR|ISEVEN|ISFILTERED|ISINSCOPE|ISLOGICAL|ISNONTEXT|ISNUMBER|ISO\.CEILING|ISODD|ISONORAFTER|ISSELECTEDMEASURE|ISSUBTOTAL|ISTEXT|KEEPFILTERS|KEYWORDMATCH|LASTDATE|LASTNONBLANK|LASTNONBLANKVALUE|LCM|LEFT|LEN|LN|LOG|LOG10|LOOKUPVALUE|LOWER|MAX|MAXA|MAXX|MEDIAN|MEDIANX|MID|MIN|MINA|MINUTE|MINX|MOD|MONTH|MROUND|NATURALINNERJOIN|NATURALLEFTOUTERJOIN|NEXTDAY|NEXTMONTH|NEXTQUARTER|NEXTYEAR|NONVISUAL|NORM\.DIST|NORM\.INV|NORM\.S\.DIST|NORM\.S\.INV|NOT|NOW|ODD|OPENINGBALANCEMONTH|OPENINGBALANCEQUARTER|OPENINGBALANCEYEAR|OR|PARALLELPERIOD|PATH|PATHCONTAINS|PATHITEM|PATHITEMREVERSE|PATHLENGTH|PERCENTILE\.EXC|PERCENTILE\.INC|PERCENTILEX\.EXC|PERCENTILEX\.INC|PERMUT|PI|POISSON\.DIST|POWER|PREVIOUSDAY|PREVIOUSMONTH|PREVIOUSQUARTER|PREVIOUSYEAR|PRODUCT|PRODUCTX|QUARTER|QUOTIENT|RADIANS|RAND|RANDBETWEEN|RANK\.EQ|RANKX|RELATED|RELATEDTABLE|REMOVEFILTERS|REPLACE|REPT|RIGHT|ROLLUP|ROLLUPADDISSUBTOTAL|ROLLUPGROUP|ROLLUPISSUBTOTAL|ROUND|ROUNDDOWN|ROUNDUP|ROW|SAMEPERIODLASTYEAR|SAMPLE|SEARCH|SECOND|SELECTCOLUMNS|SELECTEDMEASURE|SELECTEDMEASUREFORMATSTRING|SELECTEDMEASURENAME|SELECTEDVALUE|SIGN|SIN|SINH|SQRT|SQRTPI|STARTOFMONTH|STARTOFQUARTER|STARTOFYEAR|STDEV\.P|STDEV\.S|STDEVX\.P|STDEVX\.S|SUBSTITUTE|SUBSTITUTEWITHINDEX|SUM|SUMMARIZE|SUMMARIZECOLUMNS|SUMX|SWITCH|T\.DIST|T\.DIST\.2T|T\.DIST\.RT|T\.INV|T\.INV\.2T|TAN|TANH|TIME|TIMEVALUE|TODAY|TOPN|TOPNPERLEVEL|TOPNSKIP|TOTALMTD|TOTALQTD|TOTALYTD|TREATAS|TRIM|TRUE|TRUNC|UNICHAR|UNICODE|UNION|UPPER|USERELATIONSHIP|USERNAME|USEROBJECTID|USERPRINCIPALNAME|UTCNOW|UTCTODAY|VALUE|VALUES|VAR\.P|VAR\.S|VARX\.P|VARX\.S|WEEKDAY|WEEKNUM|XIRR|XNPV|YEAR|YEARFRAC)(?=\s*\()/i,keyword:/\b(?:DEFINE|EVALUATE|MEASURE|ORDER\s+BY|RETURN|VAR|START\s+AT|ASC|DESC)\b/i,boolean:{pattern:/\b(?:FALSE|NULL|TRUE)\b/i,alias:"constant"},number:/\b\d+(?:\.\d*)?|\B\.\d+\b/,operator:/:=|[-+*\/=^]|&&?|\|\||<(?:=>?|<|>)?|>[>=]?|\b(?:IN|NOT)\b/i,punctuation:/[;\[\](){}`,.]/}}return Wd}var Vd,zw;function Are(){if(zw)return Vd;zw=1,Vd=e,e.displayName="dhall",e.aliases=[];function e(t){t.languages.dhall={comment:/--.*|\{-(?:[^-{]|-(?!\})|\{(?!-)|\{-(?:[^-{]|-(?!\})|\{(?!-))*-\})*-\}/,string:{pattern:/"(?:[^"\\]|\\.)*"|''(?:[^']|'(?!')|'''|''\$\{)*''(?!'|\$)/,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}]*\}/,inside:{expression:{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0,alias:"language-dhall",inside:null},punctuation:/\$\{|\}/}}}},label:{pattern:/`[^`]*`/,greedy:!0},url:{pattern:/\bhttps?:\/\/[\w.:%!$&'*+;=@~-]+(?:\/[\w.:%!$&'*+;=@~-]*)*(?:\?[/?\w.:%!$&'*+;=@~-]*)?/,greedy:!0},env:{pattern:/\benv:(?:(?!\d)\w+|"(?:[^"\\=]|\\.)*")/,greedy:!0,inside:{function:/^env/,operator:/^:/,variable:/[\s\S]+/}},hash:{pattern:/\bsha256:[\da-fA-F]{64}\b/,inside:{function:/sha256/,operator:/:/,number:/[\da-fA-F]{64}/}},keyword:/\b(?:as|assert|else|forall|if|in|let|merge|missing|then|toMap|using|with)\b|\u2200/,builtin:/\b(?:None|Some)\b/,boolean:/\b(?:False|True)\b/,number:/\bNaN\b|-?\bInfinity\b|[+-]?\b(?:0x[\da-fA-F]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/,operator:/\/\\|\/\/\\\\|&&|\|\||===|[!=]=|\/\/|->|\+\+|::|[+*#@=:?<>|\\\u2227\u2a53\u2261\u2afd\u03bb\u2192]/,punctuation:/\.\.|[{}\[\](),./]/,"class-name":/\b[A-Z]\w*\b/},t.languages.dhall.string.inside.interpolation.inside.expression.inside=t.languages.dhall}return Vd}var Yd,qw;function Ore(){if(qw)return Yd;qw=1,Yd=e,e.displayName="diff",e.aliases=[];function e(t){(function(r){r.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var n={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(n).forEach(function(a){var i=n[a],o=[];/^\w+$/.test(a)||o.push(/\w+/.exec(a)[0]),a==="diff"&&o.push("bold"),r.languages.diff[a]={pattern:RegExp("^(?:["+i+`].*(?:\r ?| |(?![\\s\\S])))+`,"m"),alias:o,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(a)[0]}}}}),Object.defineProperty(r.languages.diff,"PREFIXES",{value:n})})(t)}return Yd}var Kd,Hw;function er(){if(Hw)return Kd;Hw=1,Kd=e,e.displayName="markupTemplating",e.aliases=[];function e(t){(function(r){function n(a,i){return"___"+a.toUpperCase()+i+"___"}Object.defineProperties(r.languages["markup-templating"]={},{buildPlaceholders:{value:function(a,i,o,s){if(a.language===i){var l=a.tokenStack=[];a.code=a.code.replace(o,function(c){if(typeof s=="function"&&!s(c))return c;for(var d=l.length,p;a.code.indexOf(p=n(i,d))!==-1;)++d;return l[d]=c,p}),a.grammar=r.languages.markup}}},tokenizePlaceholders:{value:function(a,i){if(a.language!==i||!a.tokenStack)return;a.grammar=r.languages[i];var o=0,s=Object.keys(a.tokenStack);function l(c){for(var d=0;d=s.length);d++){var p=c[d];if(typeof p=="string"||p.content&&typeof p.content=="string"){var g=s[o],m=a.tokenStack[g],b=typeof p=="string"?p:p.content,v=n(i,g),S=b.indexOf(v);if(S>-1){++o;var O=b.substring(0,S),_=new r.Token(i,r.tokenize(m,a.grammar),"language-"+i,m),w=b.substring(S+v.length),A=[];O&&A.push.apply(A,l([O])),A.push(_),w&&A.push.apply(A,l([w])),typeof p=="string"?c.splice.apply(c,[d,1].concat(A)):p.content=A}}else p.content&&l(p.content)}return c}l(a.tokens)}}})})(t)}return Kd}var Xd,Ww;function kre(){if(Ww)return Xd;Ww=1;var e=er();Xd=t,t.displayName="django",t.aliases=["jinja2"];function t(r){r.register(e),function(n){n.languages.django={comment:/^\{#[\s\S]*?#\}$/,tag:{pattern:/(^\{%[+-]?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%][+-]?|[+-]?[}%]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},filter:{pattern:/(\|)\w+/,lookbehind:!0,alias:"function"},test:{pattern:/(\bis\s+(?:not\s+)?)(?!not\b)\w+/,lookbehind:!0,alias:"function"},function:/\b[a-z_]\w+(?=\s*\()/i,keyword:/\b(?:and|as|by|else|for|if|import|in|is|loop|not|or|recursive|with|without)\b/,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,number:/\b\d+(?:\.\d+)?\b/,boolean:/[Ff]alse|[Nn]one|[Tt]rue/,variable:/\b\w+\b/,punctuation:/[{}[\](),.:;]/};var a=/\{\{[\s\S]*?\}\}|\{%[\s\S]*?%\}|\{#[\s\S]*?#\}/g,i=n.languages["markup-templating"];n.hooks.add("before-tokenize",function(o){i.buildPlaceholders(o,"django",a)}),n.hooks.add("after-tokenize",function(o){i.tokenizePlaceholders(o,"django")}),n.languages.jinja2=n.languages.django,n.hooks.add("before-tokenize",function(o){i.buildPlaceholders(o,"jinja2",a)}),n.hooks.add("after-tokenize",function(o){i.tokenizePlaceholders(o,"jinja2")})}(r)}return Xd}var Zd,Vw;function Rre(){if(Vw)return Zd;Vw=1,Zd=e,e.displayName="dnsZoneFile",e.aliases=[];function e(t){t.languages["dns-zone-file"]={comment:/;.*/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},variable:[{pattern:/(^\$ORIGIN[ \t]+)\S+/m,lookbehind:!0},{pattern:/(^|\s)@(?=\s|$)/,lookbehind:!0}],keyword:/^\$(?:INCLUDE|ORIGIN|TTL)(?=\s|$)/m,class:{pattern:/(^|\s)(?:CH|CS|HS|IN)(?=\s|$)/,lookbehind:!0,alias:"keyword"},type:{pattern:/(^|\s)(?:A|A6|AAAA|AFSDB|APL|ATMA|CAA|CDNSKEY|CDS|CERT|CNAME|DHCID|DLV|DNAME|DNSKEY|DS|EID|GID|GPOS|HINFO|HIP|IPSECKEY|ISDN|KEY|KX|LOC|MAILA|MAILB|MB|MD|MF|MG|MINFO|MR|MX|NAPTR|NB|NBSTAT|NIMLOC|NINFO|NS|NSAP|NSAP-PTR|NSEC|NSEC3|NSEC3PARAM|NULL|NXT|OPENPGPKEY|PTR|PX|RKEY|RP|RRSIG|RT|SIG|SINK|SMIMEA|SOA|SPF|SRV|SSHFP|TA|TKEY|TLSA|TSIG|TXT|UID|UINFO|UNSPEC|URI|WKS|X25)(?=\s|$)/,lookbehind:!0,alias:"keyword"},punctuation:/[()]/},t.languages["dns-zone"]=t.languages["dns-zone-file"]}return Zd}var Jd,Yw;function Ire(){if(Yw)return Jd;Yw=1,Jd=e,e.displayName="docker",e.aliases=["dockerfile"];function e(t){(function(r){var n=/\\[\r\n](?:\s|\\[\r\n]|#.*(?!.))*(?![\s#]|\\[\r\n])/.source,a=/(?:[ \t]+(?![ \t])(?:)?|)/.source.replace(//g,function(){return n}),i=/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"|'(?:[^'\\\r\n]|\\(?:\r\n|[\s\S]))*'/.source,o=/--[\w-]+=(?:|(?!["'])(?:[^\s\\]|\\.)+)/.source.replace(//g,function(){return i}),s={pattern:RegExp(i),greedy:!0},l={pattern:/(^[ \t]*)#.*/m,lookbehind:!0,greedy:!0};function c(d,p){return d=d.replace(//g,function(){return o}).replace(//g,function(){return a}),RegExp(d,p)}r.languages.docker={instruction:{pattern:/(^[ \t]*)(?:ADD|ARG|CMD|COPY|ENTRYPOINT|ENV|EXPOSE|FROM|HEALTHCHECK|LABEL|MAINTAINER|ONBUILD|RUN|SHELL|STOPSIGNAL|USER|VOLUME|WORKDIR)(?=\s)(?:\\.|[^\r\n\\])*(?:\\$(?:\s|#.*$)*(?![\s#])(?:\\.|[^\r\n\\])*)*/im,lookbehind:!0,greedy:!0,inside:{options:{pattern:c(/(^(?:ONBUILD)?\w+)(?:)*/.source,"i"),lookbehind:!0,greedy:!0,inside:{property:{pattern:/(^|\s)--[\w-]+/,lookbehind:!0},string:[s,{pattern:/(=)(?!["'])(?:[^\s\\]|\\.)+/,lookbehind:!0}],operator:/\\$/m,punctuation:/=/}},keyword:[{pattern:c(/(^(?:ONBUILD)?HEALTHCHECK(?:)*)(?:CMD|NONE)\b/.source,"i"),lookbehind:!0,greedy:!0},{pattern:c(/(^(?:ONBUILD)?FROM(?:)*(?!--)[^ \t\\]+)AS/.source,"i"),lookbehind:!0,greedy:!0},{pattern:c(/(^ONBUILD)\w+/.source,"i"),lookbehind:!0,greedy:!0},{pattern:/^\w+/,greedy:!0}],comment:l,string:s,variable:/\$(?:\w+|\{[^{}"'\\]*\})/,operator:/\\$/m}},comment:l},r.languages.dockerfile=r.languages.docker})(t)}return Jd}var Qd,Kw;function Cre(){if(Kw)return Qd;Kw=1,Qd=e,e.displayName="dot",e.aliases=["gv"];function e(t){(function(r){var n="(?:"+[/[a-zA-Z_\x80-\uFFFF][\w\x80-\uFFFF]*/.source,/-?(?:\.\d+|\d+(?:\.\d*)?)/.source,/"[^"\\]*(?:\\[\s\S][^"\\]*)*"/.source,/<(?:[^<>]|(?!)*>/.source].join("|")+")",a={markup:{pattern:/(^<)[\s\S]+(?=>$)/,lookbehind:!0,alias:["language-markup","language-html","language-xml"],inside:r.languages.markup}};function i(o,s){return RegExp(o.replace(//g,function(){return n}),s)}r.languages.dot={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\/|^#.*/m,greedy:!0},"graph-name":{pattern:i(/(\b(?:digraph|graph|subgraph)[ \t\r\n]+)/.source,"i"),lookbehind:!0,greedy:!0,alias:"class-name",inside:a},"attr-value":{pattern:i(/(=[ \t\r\n]*)/.source),lookbehind:!0,greedy:!0,inside:a},"attr-name":{pattern:i(/([\[;, \t\r\n])(?=[ \t\r\n]*=)/.source),lookbehind:!0,greedy:!0,inside:a},keyword:/\b(?:digraph|edge|graph|node|strict|subgraph)\b/i,"compass-point":{pattern:/(:[ \t\r\n]*)(?:[ewc_]|[ns][ew]?)(?![\w\x80-\uFFFF])/,lookbehind:!0,alias:"builtin"},node:{pattern:i(/(^|[^-.\w\x80-\uFFFF\\])/.source),lookbehind:!0,greedy:!0,inside:a},operator:/[=:]|-[->]/,punctuation:/[\[\]{};,]/},r.languages.gv=r.languages.dot})(t)}return Qd}var ep,Xw;function Nre(){if(Xw)return ep;Xw=1,ep=e,e.displayName="ebnf",e.aliases=[];function e(t){t.languages.ebnf={comment:/\(\*[\s\S]*?\*\)/,string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0},special:{pattern:/\?[^?\r\n]*\?/,greedy:!0,alias:"class-name"},definition:{pattern:/^([\t ]*)[a-z]\w*(?:[ \t]+[a-z]\w*)*(?=\s*=)/im,lookbehind:!0,alias:["rule","keyword"]},rule:/\b[a-z]\w*(?:[ \t]+[a-z]\w*)*\b/i,punctuation:/\([:/]|[:/]\)|[.,;()[\]{}]/,operator:/[-=|*/!]/}}return ep}var tp,Zw;function Lre(){if(Zw)return tp;Zw=1,tp=e,e.displayName="editorconfig",e.aliases=[];function e(t){t.languages.editorconfig={comment:/[;#].*/,section:{pattern:/(^[ \t]*)\[.+\]/m,lookbehind:!0,alias:"selector",inside:{regex:/\\\\[\[\]{},!?.*]/,operator:/[!?]|\.\.|\*{1,2}/,punctuation:/[\[\]{},]/}},key:{pattern:/(^[ \t]*)[^\s=]+(?=[ \t]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/=.*/,alias:"attr-value",inside:{punctuation:/^=/}}}}return tp}var rp,Jw;function Dre(){if(Jw)return rp;Jw=1,rp=e,e.displayName="eiffel",e.aliases=[];function e(t){t.languages.eiffel={comment:/--.*/,string:[{pattern:/"([^[]*)\[[\s\S]*?\]\1"/,greedy:!0},{pattern:/"([^{]*)\{[\s\S]*?\}\1"/,greedy:!0},{pattern:/"(?:%(?:(?!\n)\s)*\n\s*%|%\S|[^%"\r\n])*"/,greedy:!0}],char:/'(?:%.|[^%'\r\n])+'/,keyword:/\b(?:across|agent|alias|all|and|as|assign|attached|attribute|check|class|convert|create|Current|debug|deferred|detachable|do|else|elseif|end|ensure|expanded|export|external|feature|from|frozen|if|implies|inherit|inspect|invariant|like|local|loop|not|note|obsolete|old|once|or|Precursor|redefine|rename|require|rescue|Result|retry|select|separate|some|then|undefine|until|variant|Void|when|xor)\b/i,boolean:/\b(?:False|True)\b/i,"class-name":/\b[A-Z][\dA-Z_]*\b/,number:[/\b0[xcb][\da-f](?:_*[\da-f])*\b/i,/(?:\b\d(?:_*\d)*)?\.(?:(?:\d(?:_*\d)*)?e[+-]?)?\d(?:_*\d)*\b|\b\d(?:_*\d)*\b\.?/i],punctuation:/:=|<<|>>|\(\||\|\)|->|\.(?=\w)|[{}[\];(),:?]/,operator:/\\\\|\|\.\.\||\.\.|\/[~\/=]?|[><]=?|[-+*^=~]/}}return rp}var np,Qw;function Mre(){if(Qw)return np;Qw=1;var e=er();np=t,t.displayName="ejs",t.aliases=["eta"];function t(r){r.register(e),function(n){n.languages.ejs={delimiter:{pattern:/^<%[-_=]?|[-_]?%>$/,alias:"punctuation"},comment:/^#[\s\S]*/,"language-javascript":{pattern:/[\s\S]+/,inside:n.languages.javascript}},n.hooks.add("before-tokenize",function(a){var i=/<%(?!%)[\s\S]+?%>/g;n.languages["markup-templating"].buildPlaceholders(a,"ejs",i)}),n.hooks.add("after-tokenize",function(a){n.languages["markup-templating"].tokenizePlaceholders(a,"ejs")}),n.languages.eta=n.languages.ejs}(r)}return np}var ap,e_;function Pre(){if(e_)return ap;e_=1,ap=e,e.displayName="elixir",e.aliases=[];function e(t){t.languages.elixir={doc:{pattern:/@(?:doc|moduledoc)\s+(?:("""|''')[\s\S]*?\1|("|')(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2)/,inside:{attribute:/^@\w+/,string:/['"][\s\S]+/}},comment:{pattern:/#.*/,greedy:!0},regex:{pattern:/~[rR](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|[^\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[uismxfr]*/,greedy:!0},string:[{pattern:/~[cCsSwW](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|#\{[^}]+\}|#(?!\{)|[^#\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[csa]?/,greedy:!0,inside:{}},{pattern:/("""|''')[\s\S]*?\1/,greedy:!0,inside:{}},{pattern:/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{}}],atom:{pattern:/(^|[^:]):\w+/,lookbehind:!0,alias:"symbol"},module:{pattern:/\b[A-Z]\w*\b/,alias:"class-name"},"attr-name":/\b\w+\??:(?!:)/,argument:{pattern:/(^|[^&])&\d+/,lookbehind:!0,alias:"variable"},attribute:{pattern:/@\w+/,alias:"variable"},function:/\b[_a-zA-Z]\w*[?!]?(?:(?=\s*(?:\.\s*)?\()|(?=\/\d))/,number:/\b(?:0[box][a-f\d_]+|\d[\d_]*)(?:\.[\d_]+)?(?:e[+-]?[\d_]+)?\b/i,keyword:/\b(?:after|alias|and|case|catch|cond|def(?:callback|delegate|exception|impl|macro|module|n|np|p|protocol|struct)?|do|else|end|fn|for|if|import|not|or|quote|raise|require|rescue|try|unless|unquote|use|when)\b/,boolean:/\b(?:false|nil|true)\b/,operator:[/\bin\b|&&?|\|[|>]?|\\\\|::|\.\.\.?|\+\+?|-[->]?|<[-=>]|>=|!==?|\B!|=(?:==?|[>~])?|[*\/^]/,{pattern:/([^<])<(?!<)/,lookbehind:!0},{pattern:/([^>])>(?!>)/,lookbehind:!0}],punctuation:/<<|>>|[.,%\[\]{}()]/},t.languages.elixir.string.forEach(function(r){r.inside={interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},rest:t.languages.elixir}}}})}return ap}var ip,t_;function $re(){if(t_)return ip;t_=1,ip=e,e.displayName="elm",e.aliases=[];function e(t){t.languages.elm={comment:/--.*|\{-[\s\S]*?-\}/,char:{pattern:/'(?:[^\\'\r\n]|\\(?:[abfnrtv\\']|\d+|x[0-9a-fA-F]+|u\{[0-9a-fA-F]+\}))'/,greedy:!0},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:[^\\"\r\n]|\\.)*"/,greedy:!0}],"import-statement":{pattern:/(^[\t ]*)import\s+[A-Z]\w*(?:\.[A-Z]\w*)*(?:\s+as\s+(?:[A-Z]\w*)(?:\.[A-Z]\w*)*)?(?:\s+exposing\s+)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|exposing|import)\b/}},keyword:/\b(?:alias|as|case|else|exposing|if|in|infixl|infixr|let|module|of|then|type)\b/,builtin:/\b(?:abs|acos|always|asin|atan|atan2|ceiling|clamp|compare|cos|curry|degrees|e|flip|floor|fromPolar|identity|isInfinite|isNaN|logBase|max|min|negate|never|not|pi|radians|rem|round|sin|sqrt|tan|toFloat|toPolar|toString|truncate|turns|uncurry|xor)\b/,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0x[0-9a-f]+)\b/i,operator:/\s\.\s|[+\-/*=.$<>:&|^?%#@~!]{2,}|[+\-/*=$<>:&|^?%#@~!]/,hvariable:/\b(?:[A-Z]\w*\.)*[a-z]\w*\b/,constant:/\b(?:[A-Z]\w*\.)*[A-Z]\w*\b/,punctuation:/[{}[\]|(),.:]/}}return ip}var op,r_;function jre(){if(r_)return op;r_=1;var e=Pu(),t=er();op=r,r.displayName="erb",r.aliases=[];function r(n){n.register(e),n.register(t),function(a){a.languages.erb={delimiter:{pattern:/^(\s*)<%=?|%>(?=\s*$)/,lookbehind:!0,alias:"punctuation"},ruby:{pattern:/\s*\S[\s\S]*/,alias:"language-ruby",inside:a.languages.ruby}},a.hooks.add("before-tokenize",function(i){var o=/<%=?(?:[^\r\n]|[\r\n](?!=begin)|[\r\n]=begin\s(?:[^\r\n]|[\r\n](?!=end))*[\r\n]=end)+?%>/g;a.languages["markup-templating"].buildPlaceholders(i,"erb",o)}),a.hooks.add("after-tokenize",function(i){a.languages["markup-templating"].tokenizePlaceholders(i,"erb")})}(n)}return op}var sp,n_;function Fre(){if(n_)return sp;n_=1,sp=e,e.displayName="erlang",e.aliases=[];function e(t){t.languages.erlang={comment:/%.+/,string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},"quoted-function":{pattern:/'(?:\\.|[^\\'\r\n])+'(?=\()/,alias:"function"},"quoted-atom":{pattern:/'(?:\\.|[^\\'\r\n])+'/,alias:"atom"},boolean:/\b(?:false|true)\b/,keyword:/\b(?:after|case|catch|end|fun|if|of|receive|try|when)\b/,number:[/\$\\?./,/\b\d+#[a-z0-9]+/i,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i],function:/\b[a-z][\w@]*(?=\()/,variable:{pattern:/(^|[^@])(?:\b|\?)[A-Z_][\w@]*/,lookbehind:!0},operator:[/[=\/<>:]=|=[:\/]=|\+\+?|--?|[=*\/!]|\b(?:and|andalso|band|bnot|bor|bsl|bsr|bxor|div|not|or|orelse|rem|xor)\b/,{pattern:/(^|[^<])<(?!<)/,lookbehind:!0},{pattern:/(^|[^>])>(?!>)/,lookbehind:!0}],atom:/\b[a-z][\w@]*/,punctuation:/[()[\]{}:;,.#|]|<<|>>/}}return sp}var lp,a_;function II(){if(a_)return lp;a_=1,lp=e,e.displayName="lua",e.aliases=[];function e(t){t.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/}}return lp}var up,i_;function Bre(){if(i_)return up;i_=1;var e=II(),t=er();up=r,r.displayName="etlua",r.aliases=[];function r(n){n.register(e),n.register(t),function(a){a.languages.etlua={delimiter:{pattern:/^<%[-=]?|-?%>$/,alias:"punctuation"},"language-lua":{pattern:/[\s\S]+/,inside:a.languages.lua}},a.hooks.add("before-tokenize",function(i){var o=/<%[\s\S]+?%>/g;a.languages["markup-templating"].buildPlaceholders(i,"etlua",o)}),a.hooks.add("after-tokenize",function(i){a.languages["markup-templating"].tokenizePlaceholders(i,"etlua")})}(n)}return up}var cp,o_;function Ure(){if(o_)return cp;o_=1,cp=e,e.displayName="excelFormula",e.aliases=[];function e(t){t.languages["excel-formula"]={comment:{pattern:/(\bN\(\s*)"(?:[^"]|"")*"(?=\s*\))/i,lookbehind:!0,greedy:!0},string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},reference:{pattern:/(?:'[^']*'|(?:[^\s()[\]{}<>*?"';,$&]*\[[^^\s()[\]{}<>*?"']+\])?\w+)!/,greedy:!0,alias:"string",inside:{operator:/!$/,punctuation:/'/,sheet:{pattern:/[^[\]]+$/,alias:"function"},file:{pattern:/\[[^[\]]+\]$/,inside:{punctuation:/[[\]]/}},path:/[\s\S]+/}},"function-name":{pattern:/\b[A-Z]\w*(?=\()/i,alias:"keyword"},range:{pattern:/\$?\b(?:[A-Z]+\$?\d+:\$?[A-Z]+\$?\d+|[A-Z]+:\$?[A-Z]+|\d+:\$?\d+)\b/i,alias:"property",inside:{operator:/:/,cell:/\$?[A-Z]+\$?\d+/i,column:/\$?[A-Z]+/i,row:/\$?\d+/}},cell:{pattern:/\b[A-Z]+\d+\b|\$[A-Za-z]+\$?\d+\b|\b[A-Za-z]+\$\d+\b/,alias:"property"},number:/(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?\b/i,boolean:/\b(?:FALSE|TRUE)\b/i,operator:/[-+*/^%=&,]|<[=>]?|>=?/,punctuation:/[[\]();{}|]/},t.languages.xlsx=t.languages.xls=t.languages["excel-formula"]}return cp}var dp,s_;function Gre(){if(s_)return dp;s_=1,dp=e,e.displayName="factor",e.aliases=[];function e(t){(function(r){var n={function:/\b(?:BUGS?|FIX(?:MES?)?|NOTES?|TODOS?|XX+|HACKS?|WARN(?:ING)?|\?{2,}|!{2,})\b/},a={number:/\\[^\s']|%\w/},i={comment:[{pattern:/(^|\s)(?:! .*|!$)/,lookbehind:!0,inside:n},{pattern:/(^|\s)\/\*\s[\s\S]*?\*\/(?=\s|$)/,lookbehind:!0,greedy:!0,inside:n},{pattern:/(^|\s)!\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,inside:n}],number:[{pattern:/(^|\s)[+-]?\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b[01]+|o[0-7]+|d\d+|x[\dA-F]+)(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)[+-]?\d+\/\d+\.?(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)\+?\d+\+\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)-\d+-\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?(?:\d*\.\d+|\d+\.\d*|\d+)(?:e[+-]?\d+)?(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)NAN:\s+[\da-fA-F]+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b1\.[01]*|o1\.[0-7]*|d1\.\d*|x1\.[\dA-F]*)p\d+(?=\s|$)/i,lookbehind:!0}],regexp:{pattern:/(^|\s)R\/\s(?:\\\S|[^\\/])*\/(?:[idmsr]*|[idmsr]+-[idmsr]+)(?=\s|$)/,lookbehind:!0,alias:"number",inside:{variable:/\\\S/,keyword:/[+?*\[\]^$(){}.|]/,operator:{pattern:/(\/)[idmsr]+(?:-[idmsr]+)?/,lookbehind:!0}}},boolean:{pattern:/(^|\s)[tf](?=\s|$)/,lookbehind:!0},"custom-string":{pattern:/(^|\s)[A-Z0-9\-]+"\s(?:\\\S|[^"\\])*"/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:/\\\S|%\w|\//}},"multiline-string":[{pattern:/(^|\s)STRING:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*;(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:a.number,"semicolon-or-setlocal":{pattern:/([\r\n][ \t]*);(?=\s|$)/,lookbehind:!0,alias:"function"}}},{pattern:/(^|\s)HEREDOC:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*\S+(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:a},{pattern:/(^|\s)\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:a}],"special-using":{pattern:/(^|\s)USING:(?:\s\S+)*(?=\s+;(?:\s|$))/,lookbehind:!0,alias:"function",inside:{string:{pattern:/(\s)[^:\s]+/,lookbehind:!0}}},"stack-effect-delimiter":[{pattern:/(^|\s)(?:call|eval|execute)?\((?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)--(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\)(?=\s|$)/,lookbehind:!0,alias:"operator"}],combinators:{pattern:null,lookbehind:!0,alias:"keyword"},"kernel-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"sequences-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"math-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"constructor-word":{pattern:/(^|\s)<(?!=+>|-+>)\S+>(?=\s|$)/,lookbehind:!0,alias:"keyword"},"other-builtin-syntax":{pattern:null,lookbehind:!0,alias:"operator"},"conventionally-named-word":{pattern:/(^|\s)(?!")(?:(?:change|new|set|with)-\S+|\$\S+|>[^>\s]+|[^:>\s]+>|[^>\s]+>[^>\s]+|\+[^+\s]+\+|[^?\s]+\?|\?[^?\s]+|[^>\s]+>>|>>[^>\s]+|[^<\s]+<<|\([^()\s]+\)|[^!\s]+!|[^*\s]\S*\*|[^.\s]\S*\.)(?=\s|$)/,lookbehind:!0,alias:"keyword"},"colon-syntax":{pattern:/(^|\s)(?:[A-Z0-9\-]+#?)?:{1,2}\s+(?:;\S+|(?!;)\S+)(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"function"},"semicolon-or-setlocal":{pattern:/(\s)(?:;|:>)(?=\s|$)/,lookbehind:!0,alias:"function"},"curly-brace-literal-delimiter":[{pattern:/(^|\s)[a-z]*\{(?=\s)/i,lookbehind:!0,alias:"operator"},{pattern:/(\s)\}(?=\s|$)/,lookbehind:!0,alias:"operator"}],"quotation-delimiter":[{pattern:/(^|\s)\[(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\](?=\s|$)/,lookbehind:!0,alias:"operator"}],"normal-word":{pattern:/(^|\s)[^"\s]\S*(?=\s|$)/,lookbehind:!0},string:{pattern:/"(?:\\\S|[^"\\])*"/,greedy:!0,inside:a}},o=function(d){return(d+"").replace(/([.?*+\^$\[\]\\(){}|\-])/g,"\\$1")},s=function(d){return new RegExp("(^|\\s)(?:"+d.map(o).join("|")+")(?=\\s|$)")},l={"kernel-builtin":["or","2nipd","4drop","tuck","wrapper","nip","wrapper?","callstack>array","die","dupd","callstack","callstack?","3dup","hashcode","pick","4nip","build",">boolean","nipd","clone","5nip","eq?","?","=","swapd","2over","clear","2dup","get-retainstack","not","tuple?","dup","3nipd","call","-rotd","object","drop","assert=","assert?","-rot","execute","boa","get-callstack","curried?","3drop","pickd","overd","over","roll","3nip","swap","and","2nip","rotd","throw","(clone)","hashcode*","spin","reach","4dup","equal?","get-datastack","assert","2drop","","boolean?","identity-hashcode","identity-tuple?","null","composed?","new","5drop","rot","-roll","xor","identity-tuple","boolean"],"other-builtin-syntax":["=======","recursive","flushable",">>","<<<<<<","M\\","B","PRIVATE>","\\","======","final","inline","delimiter","deprecated",">>>>>","<<<<<<<","parse-complex","malformed-complex","read-only",">>>>>>>","call-next-method","<<","foldable","$","$[","${"],"sequences-builtin":["member-eq?","mismatch","append","assert-sequence=","longer","repetition","clone-like","3sequence","assert-sequence?","last-index-from","reversed","index-from","cut*","pad-tail","join-as","remove-eq!","concat-as","but-last","snip","nths","nth","sequence","longest","slice?","","remove-nth","tail-slice","empty?","tail*","member?","virtual-sequence?","set-length","drop-prefix","iota","unclip","bounds-error?","unclip-last-slice","non-negative-integer-expected","non-negative-integer-expected?","midpoint@","longer?","?set-nth","?first","rest-slice","prepend-as","prepend","fourth","sift","subseq-start","new-sequence","?last","like","first4","1sequence","reverse","slice","virtual@","repetition?","set-last","index","4sequence","max-length","set-second","immutable-sequence","first2","first3","supremum","unclip-slice","suffix!","insert-nth","tail","3append","short","suffix","concat","flip","immutable?","reverse!","2sequence","sum","delete-all","indices","snip-slice","","check-slice","sequence?","head","append-as","halves","sequence=","collapse-slice","?second","slice-error?","product","bounds-check?","bounds-check","immutable","virtual-exemplar","harvest","remove","pad-head","last","set-fourth","cartesian-product","remove-eq","shorten","shorter","reversed?","shorter?","shortest","head-slice","pop*","tail-slice*","but-last-slice","iota?","append!","cut-slice","new-resizable","head-slice*","sequence-hashcode","pop","set-nth","?nth","second","join","immutable-sequence?","","3append-as","virtual-sequence","subseq?","remove-nth!","length","last-index","lengthen","assert-sequence","copy","move","third","first","tail?","set-first","prefix","bounds-error","","exchange","surround","cut","min-length","set-third","push-all","head?","subseq-start-from","delete-slice","rest","sum-lengths","head*","infimum","remove!","glue","slice-error","subseq","push","replace-slice","subseq-as","unclip-last"],"math-builtin":["number=","next-power-of-2","?1+","fp-special?","imaginary-part","float>bits","number?","fp-infinity?","bignum?","fp-snan?","denominator","gcd","*","+","fp-bitwise=","-","u>=","/",">=","bitand","power-of-2?","log2-expects-positive","neg?","<","log2",">","integer?","number","bits>double","2/","zero?","bits>float","float?","shift","ratio?","rect>","even?","ratio","fp-sign","bitnot",">fixnum","complex?","/i","integer>fixnum","/f","sgn",">bignum","next-float","u<","u>","mod","recip","rational",">float","2^","integer","fixnum?","neg","fixnum","sq","bignum",">rect","bit?","fp-qnan?","simple-gcd","complex","","real",">fraction","double>bits","bitor","rem","fp-nan-payload","real-part","log2-expects-positive?","prev-float","align","unordered?","float","fp-nan?","abs","bitxor","integer>fixnum-strict","u<=","odd?","<=","/mod",">integer","real?","rational?","numerator"]};Object.keys(l).forEach(function(d){i[d].pattern=s(l[d])});var c=["2bi","while","2tri","bi*","4dip","both?","same?","tri@","curry","prepose","3bi","?if","tri*","2keep","3keep","curried","2keepd","when","2bi*","2tri*","4keep","bi@","keepdd","do","unless*","tri-curry","if*","loop","bi-curry*","when*","2bi@","2tri@","with","2with","either?","bi","until","3dip","3curry","tri-curry*","tri-curry@","bi-curry","keepd","compose","2dip","if","3tri","unless","tuple","keep","2curry","tri","most","while*","dip","composed","bi-curry@","find-last-from","trim-head-slice","map-as","each-from","none?","trim-tail","partition","if-empty","accumulate*","reject!","find-from","accumulate-as","collector-for-as","reject","map","map-sum","accumulate!","2each-from","follow","supremum-by","map!","unless-empty","collector","padding","reduce-index","replicate-as","infimum-by","trim-tail-slice","count","find-index","filter","accumulate*!","reject-as","map-integers","map-find","reduce","selector","interleave","2map","filter-as","binary-reduce","map-index-as","find","produce","filter!","replicate","cartesian-map","cartesian-each","find-index-from","map-find-last","3map-as","3map","find-last","selector-as","2map-as","2map-reduce","accumulate","each","each-index","accumulate*-as","when-empty","all?","collector-as","push-either","new-like","collector-for","2selector","push-if","2all?","map-reduce","3each","any?","trim-slice","2reduce","change-nth","produce-as","2each","trim","trim-head","cartesian-find","map-index","if-zero","each-integer","unless-zero","(find-integer)","when-zero","find-last-integer","(all-integers?)","times","(each-integer)","find-integer","all-integers?","unless-negative","if-positive","when-positive","when-negative","unless-positive","if-negative","case","2cleave","cond>quot","case>quot","3cleave","wrong-values","to-fixed-point","alist>quot","cond","cleave","call-effect","recursive-hashcode","spread","deep-spread>quot","2||","0||","n||","0&&","2&&","3||","1||","1&&","n&&","3&&","smart-unless*","keep-inputs","reduce-outputs","smart-when*","cleave>array","smart-with","smart-apply","smart-if","inputs/outputs","output>sequence-n","map-outputs","map-reduce-outputs","dropping","output>array","smart-map-reduce","smart-2map-reduce","output>array-n","nullary","inputsequence"];i.combinators.pattern=s(c),r.languages.factor=i})(t)}return dp}var pp,l_;function zre(){if(l_)return pp;l_=1,pp=e,e.displayName="$false",e.aliases=[];function e(t){(function(r){r.languages.false={comment:{pattern:/\{[^}]*\}/},string:{pattern:/"[^"]*"/,greedy:!0},"character-code":{pattern:/'(?:[^\r]|\r\n?)/,alias:"number"},"assembler-code":{pattern:/\d+`/,alias:"important"},number:/\d+/,operator:/[-!#$%&'*+,./:;=>?@\\^_`|~ßø]/,punctuation:/\[|\]/,variable:/[a-z]/,"non-standard":{pattern:/[()!=]=?|[-+*/%]|\b(?:in|is)\b/}),delete t.languages["firestore-security-rules"]["class-name"],t.languages.insertBefore("firestore-security-rules","keyword",{path:{pattern:/(^|[\s(),])(?:\/(?:[\w\xA0-\uFFFF]+|\{[\w\xA0-\uFFFF]+(?:=\*\*)?\}|\$\([\w\xA0-\uFFFF.]+\)))+/,lookbehind:!0,greedy:!0,inside:{variable:{pattern:/\{[\w\xA0-\uFFFF]+(?:=\*\*)?\}|\$\([\w\xA0-\uFFFF.]+\)/,inside:{operator:/=/,keyword:/\*\*/,punctuation:/[.$(){}]/}},punctuation:/\//}},method:{pattern:/(\ballow\s+)[a-z]+(?:\s*,\s*[a-z]+)*(?=\s*[:;])/,lookbehind:!0,alias:"builtin",inside:{punctuation:/,/}}})}return fp}var gp,c_;function Hre(){if(c_)return gp;c_=1,gp=e,e.displayName="flow",e.aliases=[];function e(t){(function(r){r.languages.flow=r.languages.extend("javascript",{}),r.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|any|mixed|null|void)\b/,alias:"tag"}]}),r.languages.flow["function-variable"].pattern=/(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i,delete r.languages.flow.parameter,r.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(r.languages.flow.keyword)||(r.languages.flow.keyword=[r.languages.flow.keyword]),r.languages.flow.keyword.unshift({pattern:/(^|[^$]\b)(?:Class|declare|opaque|type)\b(?!\$)/,lookbehind:!0},{pattern:/(^|[^$]\B)\$(?:Diff|Enum|Exact|Keys|ObjMap|PropertyType|Record|Shape|Subtype|Supertype|await)\b(?!\$)/,lookbehind:!0})})(t)}return gp}var hp,d_;function Wre(){if(d_)return hp;d_=1,hp=e,e.displayName="fortran",e.aliases=[];function e(t){t.languages.fortran={"quoted-number":{pattern:/[BOZ](['"])[A-F0-9]+\1/i,alias:"number"},string:{pattern:/(?:\b\w+_)?(['"])(?:\1\1|&(?:\r\n?|\n)(?:[ \t]*!.*(?:\r\n?|\n)|(?![ \t]*!))|(?!\1).)*(?:\1|&)/,inside:{comment:{pattern:/(&(?:\r\n?|\n)\s*)!.*/,lookbehind:!0}}},comment:{pattern:/!.*/,greedy:!0},boolean:/\.(?:FALSE|TRUE)\.(?:_\w+)?/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[ED][+-]?\d+)?(?:_\w+)?/i,keyword:[/\b(?:CHARACTER|COMPLEX|DOUBLE ?PRECISION|INTEGER|LOGICAL|REAL)\b/i,/\b(?:END ?)?(?:BLOCK ?DATA|DO|FILE|FORALL|FUNCTION|IF|INTERFACE|MODULE(?! PROCEDURE)|PROGRAM|SELECT|SUBROUTINE|TYPE|WHERE)\b/i,/\b(?:ALLOCATABLE|ALLOCATE|BACKSPACE|CALL|CASE|CLOSE|COMMON|CONTAINS|CONTINUE|CYCLE|DATA|DEALLOCATE|DIMENSION|DO|END|EQUIVALENCE|EXIT|EXTERNAL|FORMAT|GO ?TO|IMPLICIT(?: NONE)?|INQUIRE|INTENT|INTRINSIC|MODULE PROCEDURE|NAMELIST|NULLIFY|OPEN|OPTIONAL|PARAMETER|POINTER|PRINT|PRIVATE|PUBLIC|READ|RETURN|REWIND|SAVE|SELECT|STOP|TARGET|WHILE|WRITE)\b/i,/\b(?:ASSIGNMENT|DEFAULT|ELEMENTAL|ELSE|ELSEIF|ELSEWHERE|ENTRY|IN|INCLUDE|INOUT|KIND|NULL|ONLY|OPERATOR|OUT|PURE|RECURSIVE|RESULT|SEQUENCE|STAT|THEN|USE)\b/i],operator:[/\*\*|\/\/|=>|[=\/]=|[<>]=?|::|[+\-*=%]|\.[A-Z]+\./i,{pattern:/(^|(?!\().)\/(?!\))/,lookbehind:!0}],punctuation:/\(\/|\/\)|[(),;:&]/}}return hp}var mp,p_;function Vre(){if(p_)return mp;p_=1,mp=e,e.displayName="fsharp",e.aliases=[];function e(t){t.languages.fsharp=t.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\(\*(?!\))[\s\S]*?\*\)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(?:"""[\s\S]*?"""|@"(?:""|[^"])*"|"(?:\\[\s\S]|[^\\"])*")B?/,greedy:!0},"class-name":{pattern:/(\b(?:exception|inherit|interface|new|of|type)\s+|\w\s*:\s*|\s:\??>\s*)[.\w]+\b(?:\s*(?:->|\*)\s*[.\w]+\b)*(?!\s*[:.])/,lookbehind:!0,inside:{operator:/->|\*/,punctuation:/\./}},keyword:/\b(?:let|return|use|yield)(?:!\B|\b)|\b(?:abstract|and|as|asr|assert|atomic|base|begin|break|checked|class|component|const|constraint|constructor|continue|default|delegate|do|done|downcast|downto|eager|elif|else|end|event|exception|extern|external|false|finally|fixed|for|fun|function|functor|global|if|in|include|inherit|inline|interface|internal|land|lazy|lor|lsl|lsr|lxor|match|member|method|mixin|mod|module|mutable|namespace|new|not|null|object|of|open|or|override|parallel|private|process|protected|public|pure|rec|sealed|select|sig|static|struct|tailcall|then|to|trait|true|try|type|upcast|val|virtual|void|volatile|when|while|with)\b/,number:[/\b0x[\da-fA-F]+(?:LF|lf|un)?\b/,/\b0b[01]+(?:uy|y)?\b/,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[fm]|e[+-]?\d+)?\b/i,/\b\d+(?:[IlLsy]|UL|u[lsy]?)?\b/],operator:/([<>~&^])\1\1|([*.:<>&])\2|<-|->|[!=:]=|?|\??(?:<=|>=|<>|[-+*/%=<>])\??|[!?^&]|~[+~-]|:>|:\?>?/}),t.languages.insertBefore("fsharp","keyword",{preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(^#)\b(?:else|endif|if|light|line|nowarn)\b/,lookbehind:!0,alias:"keyword"}}}}),t.languages.insertBefore("fsharp","punctuation",{"computation-expression":{pattern:/\b[_a-z]\w*(?=\s*\{)/i,alias:"keyword"}}),t.languages.insertBefore("fsharp","string",{annotation:{pattern:/\[<.+?>\]/,greedy:!0,inside:{punctuation:/^\[<|>\]$/,"class-name":{pattern:/^\w+$|(^|;\s*)[A-Z]\w*(?=\()/,lookbehind:!0},"annotation-content":{pattern:/[\s\S]+/,inside:t.languages.fsharp}}},char:{pattern:/'(?:[^\\']|\\(?:.|\d{3}|x[a-fA-F\d]{2}|u[a-fA-F\d]{4}|U[a-fA-F\d]{8}))'B?/,greedy:!0}})}return mp}var bp,f_;function Yre(){if(f_)return bp;f_=1;var e=er();bp=t,t.displayName="ftl",t.aliases=[];function t(r){r.register(e),function(n){for(var a=/[^<()"']|\((?:)*\)|<(?!#--)|<#--(?:[^-]|-(?!->))*-->|"(?:[^\\"]|\\.)*"|'(?:[^\\']|\\.)*'/.source,i=0;i<2;i++)a=a.replace(//g,function(){return a});a=a.replace(//g,/[^\s\S]/.source);var o={comment:/<#--[\s\S]*?-->/,string:[{pattern:/\br("|')(?:(?!\1)[^\\]|\\.)*\1/,greedy:!0},{pattern:RegExp(/("|')(?:(?!\1|\$\{)[^\\]|\\.|\$\{(?:(?!\})(?:))*\})*\1/.source.replace(//g,function(){return a})),greedy:!0,inside:{interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\\\)*)\$\{(?:(?!\})(?:))*\}/.source.replace(//g,function(){return a})),lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:null}}}}],keyword:/\b(?:as)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/((?:^|[^?])\?\s*)\w+/,lookbehind:!0,alias:"function"},function:/\b\w+(?=\s*\()/,number:/\b\d+(?:\.\d+)?\b/,operator:/\.\.[<*!]?|->|--|\+\+|&&|\|\||\?{1,2}|[-+*/%!=<>]=?|\b(?:gt|gte|lt|lte)\b/,punctuation:/[,;.:()[\]{}]/};o.string[1].inside.interpolation.inside.rest=o,n.languages.ftl={"ftl-comment":{pattern:/^<#--[\s\S]*/,alias:"comment"},"ftl-directive":{pattern:/^<[\s\S]+>$/,inside:{directive:{pattern:/(^<\/?)[#@][a-z]\w*/i,lookbehind:!0,alias:"keyword"},punctuation:/^<\/?|\/?>$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:o}}},"ftl-interpolation":{pattern:/^\$\{[\s\S]*\}$/,inside:{punctuation:/^\$\{|\}$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:o}}}},n.hooks.add("before-tokenize",function(s){var l=RegExp(/<#--[\s\S]*?-->|<\/?[#@][a-zA-Z](?:)*?>|\$\{(?:)*?\}/.source.replace(//g,function(){return a}),"gi");n.languages["markup-templating"].buildPlaceholders(s,"ftl",l)}),n.hooks.add("after-tokenize",function(s){n.languages["markup-templating"].tokenizePlaceholders(s,"ftl")})}(r)}return bp}var yp,g_;function Kre(){if(g_)return yp;g_=1,yp=e,e.displayName="gap",e.aliases=[];function e(t){t.languages.gap={shell:{pattern:/^gap>[\s\S]*?(?=^gap>|$(?![\s\S]))/m,greedy:!0,inside:{gap:{pattern:/^(gap>).+(?:(?:\r(?:\n|(?!\n))|\n)>.*)*/,lookbehind:!0,inside:null},punctuation:/^gap>/}},comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(^|[^\\'"])(?:'(?:[^\r\n\\']|\\.){1,10}'|"(?:[^\r\n\\"]|\\.)*"(?!")|"""[\s\S]*?""")/,lookbehind:!0,greedy:!0,inside:{continuation:{pattern:/([\r\n])>/,lookbehind:!0,alias:"punctuation"}}},keyword:/\b(?:Assert|Info|IsBound|QUIT|TryNextMethod|Unbind|and|atomic|break|continue|do|elif|else|end|fi|for|function|if|in|local|mod|not|od|or|quit|readonly|readwrite|rec|repeat|return|then|until|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:{pattern:/(^|[^\w.]|\.\.)(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?(?:_[a-z]?)?(?=$|[^\w.]|\.\.)/,lookbehind:!0},continuation:{pattern:/([\r\n])>/,lookbehind:!0,alias:"punctuation"},operator:/->|[-+*/^~=!]|<>|[<>]=?|:=|\.\./,punctuation:/[()[\]{},;.:]/},t.languages.gap.shell.inside.gap.inside=t.languages.gap}return yp}var vp,h_;function Xre(){if(h_)return vp;h_=1,vp=e,e.displayName="gcode",e.aliases=[];function e(t){t.languages.gcode={comment:/;.*|\B\(.*?\)\B/,string:{pattern:/"(?:""|[^"])*"/,greedy:!0},keyword:/\b[GM]\d+(?:\.\d+)?\b/,property:/\b[A-Z]/,checksum:{pattern:/(\*)\d+/,lookbehind:!0,alias:"number"},punctuation:/[:*]/}}return vp}var Sp,m_;function Zre(){if(m_)return Sp;m_=1,Sp=e,e.displayName="gdscript",e.aliases=[];function e(t){t.languages.gdscript={comment:/#.*/,string:{pattern:/@?(?:("|')(?:(?!\1)[^\n\\]|\\[\s\S])*\1(?!"|')|"""(?:[^\\]|\\[\s\S])*?""")/,greedy:!0},"class-name":{pattern:/(^(?:class|class_name|extends)[ \t]+|^export\([ \t]*|\bas[ \t]+|(?:\b(?:const|var)[ \t]|[,(])[ \t]*\w+[ \t]*:[ \t]*|->[ \t]*)[a-zA-Z_]\w*/m,lookbehind:!0},keyword:/\b(?:and|as|assert|break|breakpoint|class|class_name|const|continue|elif|else|enum|export|extends|for|func|if|in|is|master|mastersync|match|not|null|onready|or|pass|preload|puppet|puppetsync|remote|remotesync|return|self|setget|signal|static|tool|var|while|yield)\b/,function:/\b[a-z_]\w*(?=[ \t]*\()/i,variable:/\$\w+/,number:[/\b0b[01_]+\b|\b0x[\da-fA-F_]+\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.[\d_]+)(?:e[+-]?[\d_]+)?\b/,/\b(?:INF|NAN|PI|TAU)\b/],constant:/\b[A-Z][A-Z_\d]*\b/,boolean:/\b(?:false|true)\b/,operator:/->|:=|&&|\|\||<<|>>|[-+*/%&|!<>=]=?|[~^]/,punctuation:/[.:,;()[\]{}]/}}return Sp}var Ep,b_;function Jre(){if(b_)return Ep;b_=1,Ep=e,e.displayName="gedcom",e.aliases=[];function e(t){t.languages.gedcom={"line-value":{pattern:/(^[\t ]*\d+ +(?:@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@ +)?\w+ ).+/m,lookbehind:!0,inside:{pointer:{pattern:/^@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@$/,alias:"variable"}}},tag:{pattern:/(^[\t ]*\d+ +(?:@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@ +)?)\w+/m,lookbehind:!0,alias:"string"},level:{pattern:/(^[\t ]*)\d+/m,lookbehind:!0,alias:"number"},pointer:{pattern:/@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@/,alias:"variable"}}}return Ep}var xp,y_;function Qre(){if(y_)return xp;y_=1,xp=e,e.displayName="gherkin",e.aliases=[];function e(t){(function(r){var n=/(?:\r?\n|\r)[ \t]*\|.+\|(?:(?!\|).)*/.source;r.languages.gherkin={pystring:{pattern:/("""|''')[\s\S]+?\1/,alias:"string"},comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},tag:{pattern:/(^[ \t]*)@\S*/m,lookbehind:!0},feature:{pattern:/((?:^|\r?\n|\r)[ \t]*)(?:Ability|Ahoy matey!|Arwedd|Aspekt|Besigheid Behoefte|Business Need|Caracteristica|Característica|Egenskab|Egenskap|Eiginleiki|Feature|Fīča|Fitur|Fonctionnalité|Fonksyonalite|Funcionalidade|Funcionalitat|Functionalitate|Funcţionalitate|Funcționalitate|Functionaliteit|Fungsi|Funkcia|Funkcija|Funkcionalitāte|Funkcionalnost|Funkcja|Funksie|Funktionalität|Funktionalitéit|Funzionalità|Hwaet|Hwæt|Jellemző|Karakteristik|Lastnost|Mak|Mogucnost|laH|Mogućnost|Moznosti|Možnosti|OH HAI|Omadus|Ominaisuus|Osobina|Özellik|Potrzeba biznesowa|perbogh|poQbogh malja'|Požadavek|Požiadavka|Pretty much|Qap|Qu'meH 'ut|Savybė|Tính năng|Trajto|Vermoë|Vlastnosť|Właściwość|Značilnost|Δυνατότητα|Λειτουργία|Могућност|Мөмкинлек|Особина|Свойство|Үзенчәлеклелек|Функционал|Функционалност|Функция|Функціонал|תכונה|خاصية|خصوصیت|صلاحیت|کاروبار کی ضرورت|وِیژگی|रूप लेख|ਖਾਸੀਅਤ|ਨਕਸ਼ ਨੁਹਾਰ|ਮੁਹਾਂਦਰਾ|గుణము|ಹೆಚ್ಚಳ|ความต้องการทางธุรกิจ|ความสามารถ|โครงหลัก|기능|フィーチャ|功能|機能):(?:[^:\r\n]+(?:\r?\n|\r|$))*/,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]+/,lookbehind:!0},keyword:/[^:\r\n]+:/}},scenario:{pattern:/(^[ \t]*)(?:Abstract Scenario|Abstrakt Scenario|Achtergrond|Aer|Ær|Agtergrond|All y'all|Antecedentes|Antecedents|Atburðarás|Atburðarásir|Awww, look mate|B4|Background|Baggrund|Bakgrund|Bakgrunn|Bakgrunnur|Beispiele|Beispiller|Bối cảnh|Cefndir|Cenario|Cenário|Cenario de Fundo|Cenário de Fundo|Cenarios|Cenários|Contesto|Context|Contexte|Contexto|Conto|Contoh|Contone|Dæmi|Dasar|Dead men tell no tales|Delineacao do Cenario|Delineação do Cenário|Dis is what went down|Dữ liệu|Dyagram Senaryo|Dyagram senaryo|Egzanp|Ejemplos|Eksempler|Ekzemploj|Enghreifftiau|Esbozo do escenario|Escenari|Escenario|Esempi|Esquema de l'escenari|Esquema del escenario|Esquema do Cenario|Esquema do Cenário|EXAMPLZ|Examples|Exempel|Exemple|Exemples|Exemplos|First off|Fono|Forgatókönyv|Forgatókönyv vázlat|Fundo|Geçmiş|Grundlage|Hannergrond|ghantoH|Háttér|Heave to|Istorik|Juhtumid|Keadaan|Khung kịch bản|Khung tình huống|Kịch bản|Koncept|Konsep skenario|Kontèks|Kontekst|Kontekstas|Konteksts|Kontext|Konturo de la scenaro|Latar Belakang|lut chovnatlh|lut|lutmey|Lýsing Atburðarásar|Lýsing Dæma|MISHUN SRSLY|MISHUN|Menggariskan Senario|mo'|Náčrt Scenára|Náčrt Scénáře|Náčrt Scenáru|Oris scenarija|Örnekler|Osnova|Osnova Scenára|Osnova scénáře|Osnutek|Ozadje|Paraugs|Pavyzdžiai|Példák|Piemēri|Plan du scénario|Plan du Scénario|Plan Senaryo|Plan senaryo|Plang vum Szenario|Pozadí|Pozadie|Pozadina|Príklady|Příklady|Primer|Primeri|Primjeri|Przykłady|Raamstsenaarium|Reckon it's like|Rerefons|Scenár|Scénář|Scenarie|Scenarij|Scenarijai|Scenarijaus šablonas|Scenariji|Scenārijs|Scenārijs pēc parauga|Scenarijus|Scenario|Scénario|Scenario Amlinellol|Scenario Outline|Scenario Template|Scenariomal|Scenariomall|Scenarios|Scenariu|Scenariusz|Scenaro|Schema dello scenario|Se ðe|Se the|Se þe|Senario|Senaryo Deskripsyon|Senaryo deskripsyon|Senaryo|Senaryo taslağı|Shiver me timbers|Situācija|Situai|Situasie Uiteensetting|Situasie|Skenario konsep|Skenario|Skica|Structura scenariu|Structură scenariu|Struktura scenarija|Stsenaarium|Swa hwaer swa|Swa|Swa hwær swa|Szablon scenariusza|Szenario|Szenariogrundriss|Tapaukset|Tapaus|Tapausaihio|Taust|Tausta|Template Keadaan|Template Senario|Template Situai|The thing of it is|Tình huống|Variantai|Voorbeelde|Voorbeelden|Wharrimean is|Yo-ho-ho|You'll wanna|Założenia|Παραδείγματα|Περιγραφή Σεναρίου|Σενάρια|Σενάριο|Υπόβαθρο|Кереш|Контекст|Концепт|Мисаллар|Мисоллар|Основа|Передумова|Позадина|Предистория|Предыстория|Приклади|Пример|Примери|Примеры|Рамка на сценарий|Скица|Структура сценарија|Структура сценария|Структура сценарію|Сценарий|Сценарий структураси|Сценарийның төзелеше|Сценарији|Сценарио|Сценарій|Тарих|Үрнәкләр|דוגמאות|רקע|תבנית תרחיש|תרחיש|الخلفية|الگوی سناریو|امثلة|پس منظر|زمینه|سناریو|سيناريو|سيناريو مخطط|مثالیں|منظر نامے کا خاکہ|منظرنامہ|نمونه ها|उदाहरण|परिदृश्य|परिदृश्य रूपरेखा|पृष्ठभूमि|ਉਦਾਹਰਨਾਂ|ਪਟਕਥਾ|ਪਟਕਥਾ ਢਾਂਚਾ|ਪਟਕਥਾ ਰੂਪ ਰੇਖਾ|ਪਿਛੋਕੜ|ఉదాహరణలు|కథనం|నేపథ్యం|సన్నివేశం|ಉದಾಹರಣೆಗಳು|ಕಥಾಸಾರಾಂಶ|ವಿವರಣೆ|ಹಿನ್ನೆಲೆ|โครงสร้างของเหตุการณ์|ชุดของตัวอย่าง|ชุดของเหตุการณ์|แนวคิด|สรุปเหตุการณ์|เหตุการณ์|배경|시나리오|시나리오 개요|예|サンプル|シナリオ|シナリオアウトライン|シナリオテンプレ|シナリオテンプレート|テンプレ|例|例子|剧本|剧本大纲|劇本|劇本大綱|场景|场景大纲|場景|場景大綱|背景):[^:\r\n]*/m,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]*/,lookbehind:!0},keyword:/[^:\r\n]+:/}},"table-body":{pattern:RegExp("("+n+")(?:"+n+")+"),lookbehind:!0,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"},td:{pattern:/\s*[^\s|][^|]*/,alias:"string"},punctuation:/\|/}},"table-head":{pattern:RegExp(n),inside:{th:{pattern:/\s*[^\s|][^|]*/,alias:"variable"},punctuation:/\|/}},atrule:{pattern:/(^[ \t]+)(?:'a|'ach|'ej|7|a|A také|A taktiež|A tiež|A zároveň|Aber|Ac|Adott|Akkor|Ak|Aleshores|Ale|Ali|Allora|Alors|Als|Ama|Amennyiben|Amikor|Ampak|an|AN|Ananging|And y'all|And|Angenommen|Anrhegedig a|An|Apabila|Atès|Atesa|Atunci|Avast!|Aye|A|awer|Bagi|Banjur|Bet|Biết|Blimey!|Buh|But at the end of the day I reckon|But y'all|But|BUT|Cal|Când|Cand|Cando|Ce|Cuando|Če|Ða ðe|Ða|Dadas|Dada|Dados|Dado|DaH ghu' bejlu'|dann|Dann|Dano|Dan|Dar|Dat fiind|Data|Date fiind|Date|Dati fiind|Dati|Daţi fiind|Dați fiind|DEN|Dato|De|Den youse gotta|Dengan|Diberi|Diyelim ki|Donada|Donat|Donitaĵo|Do|Dun|Duota|Ðurh|Eeldades|Ef|Eğer ki|Entao|Então|Entón|E|En|Entonces|Epi|És|Etant donnée|Etant donné|Et|Étant données|Étant donnée|Étant donné|Etant données|Etant donnés|Étant donnés|Fakat|Gangway!|Gdy|Gegeben seien|Gegeben sei|Gegeven|Gegewe|ghu' noblu'|Gitt|Given y'all|Given|Givet|Givun|Ha|Cho|I CAN HAZ|In|Ir|It's just unbelievable|I|Ja|Jeśli|Jeżeli|Kad|Kada|Kadar|Kai|Kaj|Když|Keď|Kemudian|Ketika|Khi|Kiedy|Ko|Kuid|Kui|Kun|Lan|latlh|Le sa a|Let go and haul|Le|Lè sa a|Lè|Logo|Lorsqu'<|Lorsque|mä|Maar|Mais|Mając|Ma|Majd|Maka|Manawa|Mas|Men|Menawa|Mutta|Nalika|Nalikaning|Nanging|Når|När|Nato|Nhưng|Niin|Njuk|O zaman|Och|Og|Oletetaan|Ond|Onda|Oraz|Pak|Pero|Però|Podano|Pokiaľ|Pokud|Potem|Potom|Privzeto|Pryd|Quan|Quand|Quando|qaSDI'|Så|Sed|Se|Siis|Sipoze ke|Sipoze Ke|Sipoze|Si|Şi|Și|Soit|Stel|Tada|Tad|Takrat|Tak|Tapi|Ter|Tetapi|Tha the|Tha|Then y'all|Then|Thì|Thurh|Toda|Too right|Un|Und|ugeholl|Và|vaj|Vendar|Ve|wann|Wanneer|WEN|Wenn|When y'all|When|Wtedy|Wun|Y'know|Yeah nah|Yna|Youse know like when|Youse know when youse got|Y|Za predpokladu|Za předpokladu|Zadan|Zadani|Zadano|Zadate|Zadato|Zakładając|Zaradi|Zatati|Þa þe|Þa|Þá|Þegar|Þurh|Αλλά|Δεδομένου|Και|Όταν|Τότε|А також|Агар|Але|Али|Аммо|А|Әгәр|Әйтик|Әмма|Бирок|Ва|Вә|Дадено|Дано|Допустим|Если|Задате|Задати|Задато|И|І|К тому же|Када|Кад|Когато|Когда|Коли|Ләкин|Лекин|Нәтиҗәдә|Нехай|Но|Онда|Припустимо, що|Припустимо|Пусть|Также|Та|Тогда|Тоді|То|Унда|Һәм|Якщо|אבל|אזי|אז|בהינתן|וגם|כאשר|آنگاه|اذاً|اگر|اما|اور|با فرض|بالفرض|بفرض|پھر|تب|ثم|جب|عندما|فرض کیا|لكن|لیکن|متى|هنگامی|و|अगर|और|कदा|किन्तु|चूंकि|जब|तथा|तदा|तब|परन्तु|पर|यदि|ਅਤੇ|ਜਦੋਂ|ਜਿਵੇਂ ਕਿ|ਜੇਕਰ|ਤਦ|ਪਰ|అప్పుడు|ఈ పరిస్థితిలో|కాని|చెప్పబడినది|మరియు|ಆದರೆ|ನಂತರ|ನೀಡಿದ|ಮತ್ತು|ಸ್ಥಿತಿಯನ್ನು|กำหนดให้|ดังนั้น|แต่|เมื่อ|และ|그러면<|그리고<|단<|만약<|만일<|먼저<|조건<|하지만<|かつ<|しかし<|ただし<|ならば<|もし<|並且<|但し<|但是<|假如<|假定<|假設<|假设<|前提<|同时<|同時<|并且<|当<|當<|而且<|那么<|那麼<)(?=[ \t])/m,lookbehind:!0},string:{pattern:/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"}}},outline:{pattern:/<[^>]+>/,alias:"variable"}}})(t)}return xp}var wp,v_;function ene(){if(v_)return wp;v_=1,wp=e,e.displayName="git",e.aliases=[];function e(t){t.languages.git={comment:/^#.*/m,deleted:/^[-–].*/m,inserted:/^\+.*/m,string:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,command:{pattern:/^.*\$ git .*$/m,inside:{parameter:/\s--?\w+/}},coord:/^@@.*@@$/m,"commit-sha1":/^commit \w{40}$/m}}return wp}var _p,S_;function tne(){if(S_)return _p;S_=1;var e=ca();_p=t,t.displayName="glsl",t.aliases=[];function t(r){r.register(e),r.languages.glsl=r.languages.extend("c",{keyword:/\b(?:active|asm|atomic_uint|attribute|[ibdu]?vec[234]|bool|break|buffer|case|cast|centroid|class|coherent|common|const|continue|d?mat[234](?:x[234])?|default|discard|do|double|else|enum|extern|external|false|filter|fixed|flat|float|for|fvec[234]|goto|half|highp|hvec[234]|[iu]?sampler2DMS(?:Array)?|[iu]?sampler2DRect|[iu]?samplerBuffer|[iu]?samplerCube|[iu]?samplerCubeArray|[iu]?sampler[123]D|[iu]?sampler[12]DArray|[iu]?image2DMS(?:Array)?|[iu]?image2DRect|[iu]?imageBuffer|[iu]?imageCube|[iu]?imageCubeArray|[iu]?image[123]D|[iu]?image[12]DArray|if|in|inline|inout|input|int|interface|invariant|layout|long|lowp|mediump|namespace|noinline|noperspective|out|output|partition|patch|precise|precision|public|readonly|resource|restrict|return|sample|sampler[12]DArrayShadow|sampler[12]DShadow|sampler2DRectShadow|sampler3DRect|samplerCubeArrayShadow|samplerCubeShadow|shared|short|sizeof|smooth|static|struct|subroutine|superp|switch|template|this|true|typedef|uint|uniform|union|unsigned|using|varying|void|volatile|while|writeonly)\b/})}return _p}var Tp,E_;function rne(){if(E_)return Tp;E_=1,Tp=e,e.displayName="gml",e.aliases=[];function e(t){t.languages.gamemakerlanguage=t.languages.gml=t.languages.extend("clike",{keyword:/\b(?:break|case|continue|default|do|else|enum|exit|for|globalvar|if|repeat|return|switch|until|var|while)\b/,number:/(?:\b0x[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ulf]{0,4}/i,operator:/--|\+\+|[-+%/=]=?|!=|\*\*?=?|<[<=>]?|>[=>]?|&&?|\^\^?|\|\|?|~|\b(?:and|at|not|or|with|xor)\b/,constant:/\b(?:GM_build_date|GM_version|action_(?:continue|restart|reverse|stop)|all|gamespeed_(?:fps|microseconds)|global|local|noone|other|pi|pointer_(?:invalid|null)|self|timezone_(?:local|utc)|undefined|ev_(?:create|destroy|step|alarm|keyboard|mouse|collision|other|draw|draw_(?:begin|end|post|pre)|keypress|keyrelease|trigger|(?:left|middle|no|right)_button|(?:left|middle|right)_press|(?:left|middle|right)_release|mouse_(?:enter|leave|wheel_down|wheel_up)|global_(?:left|middle|right)_button|global_(?:left|middle|right)_press|global_(?:left|middle|right)_release|joystick(?:1|2)_(?:button1|button2|button3|button4|button5|button6|button7|button8|down|left|right|up)|outside|boundary|game_start|game_end|room_start|room_end|no_more_lives|animation_end|end_of_path|no_more_health|user\d|gui|gui_begin|gui_end|step_(?:begin|end|normal))|vk_(?:alt|anykey|backspace|control|delete|down|end|enter|escape|home|insert|left|nokey|pagedown|pageup|pause|printscreen|return|right|shift|space|tab|up|f\d|numpad\d|add|decimal|divide|lalt|lcontrol|lshift|multiply|ralt|rcontrol|rshift|subtract)|achievement_(?:filter_(?:all_players|favorites_only|friends_only)|friends_info|info|leaderboard_info|our_info|pic_loaded|show_(?:achievement|bank|friend_picker|leaderboard|profile|purchase_prompt|ui)|type_challenge|type_score_challenge)|asset_(?:font|object|path|room|script|shader|sound|sprite|tiles|timeline|unknown)|audio_(?:3d|falloff_(?:exponent_distance|exponent_distance_clamped|inverse_distance|inverse_distance_clamped|linear_distance|linear_distance_clamped|none)|mono|new_system|old_system|stereo)|bm_(?:add|complex|dest_alpha|dest_color|dest_colour|inv_dest_alpha|inv_dest_color|inv_dest_colour|inv_src_alpha|inv_src_color|inv_src_colour|max|normal|one|src_alpha|src_alpha_sat|src_color|src_colour|subtract|zero)|browser_(?:chrome|firefox|ie|ie_mobile|not_a_browser|opera|safari|safari_mobile|tizen|unknown|windows_store)|buffer_(?:bool|f16|f32|f64|fast|fixed|generalerror|grow|invalidtype|network|outofbounds|outofspace|s16|s32|s8|seek_end|seek_relative|seek_start|string|text|u16|u32|u64|u8|vbuffer|wrap)|c_(?:aqua|black|blue|dkgray|fuchsia|gray|green|lime|ltgray|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow)|cmpfunc_(?:always|equal|greater|greaterequal|less|lessequal|never|notequal)|cr_(?:appstart|arrow|beam|cross|default|drag|handpoint|hourglass|none|size_all|size_nesw|size_ns|size_nwse|size_we|uparrow)|cull_(?:clockwise|counterclockwise|noculling)|device_(?:emulator|tablet)|device_ios_(?:ipad|ipad_retina|iphone|iphone5|iphone6|iphone6plus|iphone_retina|unknown)|display_(?:landscape|landscape_flipped|portrait|portrait_flipped)|dll_(?:cdecl|cdel|stdcall)|ds_type_(?:grid|list|map|priority|queue|stack)|ef_(?:cloud|ellipse|explosion|firework|flare|rain|ring|smoke|smokeup|snow|spark|star)|fa_(?:archive|bottom|center|directory|hidden|left|middle|readonly|right|sysfile|top|volumeid)|fb_login_(?:default|fallback_to_webview|forcing_safari|forcing_webview|no_fallback_to_webview|use_system_account)|iap_(?:available|canceled|ev_consume|ev_product|ev_purchase|ev_restore|ev_storeload|failed|purchased|refunded|status_available|status_loading|status_processing|status_restoring|status_unavailable|status_uninitialised|storeload_failed|storeload_ok|unavailable)|leaderboard_type_(?:number|time_mins_secs)|lighttype_(?:dir|point)|matrix_(?:projection|view|world)|mb_(?:any|left|middle|none|right)|network_(?:config_(?:connect_timeout|disable_reliable_udp|enable_reliable_udp|use_non_blocking_socket)|socket_(?:bluetooth|tcp|udp)|type_(?:connect|data|disconnect|non_blocking_connect))|of_challenge_(?:lose|tie|win)|os_(?:android|ios|linux|macosx|ps3|ps4|psvita|unknown|uwp|win32|win8native|windows|winphone|xboxone)|phy_debug_render_(?:aabb|collision_pairs|coms|core_shapes|joints|obb|shapes)|phy_joint_(?:anchor_1_x|anchor_1_y|anchor_2_x|anchor_2_y|angle|angle_limits|damping_ratio|frequency|length_1|length_2|lower_angle_limit|max_force|max_length|max_motor_force|max_motor_torque|max_torque|motor_force|motor_speed|motor_torque|reaction_force_x|reaction_force_y|reaction_torque|speed|translation|upper_angle_limit)|phy_particle_data_flag_(?:category|color|colour|position|typeflags|velocity)|phy_particle_flag_(?:colormixing|colourmixing|elastic|powder|spring|tensile|viscous|wall|water|zombie)|phy_particle_group_flag_(?:rigid|solid)|pr_(?:linelist|linestrip|pointlist|trianglefan|trianglelist|trianglestrip)|ps_(?:distr|shape)_(?:diamond|ellipse|gaussian|invgaussian|line|linear|rectangle)|pt_shape_(?:circle|cloud|disk|explosion|flare|line|pixel|ring|smoke|snow|spark|sphere|square|star)|ty_(?:real|string)|gp_(?:face\d|axislh|axislv|axisrh|axisrv|padd|padl|padr|padu|select|shoulderl|shoulderlb|shoulderr|shoulderrb|start|stickl|stickr)|lb_disp_(?:none|numeric|time_ms|time_sec)|lb_sort_(?:ascending|descending|none)|ov_(?:achievements|community|friends|gamegroup|players|settings)|ugc_(?:filetype_(?:community|microtrans)|list_(?:Favorited|Followed|Published|Subscribed|UsedOrPlayed|VotedDown|VotedOn|VotedUp|WillVoteLater)|match_(?:AllGuides|Artwork|Collections|ControllerBindings|IntegratedGuides|Items|Items_Mtx|Items_ReadyToUse|Screenshots|UsableInGame|Videos|WebGuides)|query_(?:AcceptedForGameRankedByAcceptanceDate|CreatedByFriendsRankedByPublicationDate|FavoritedByFriendsRankedByPublicationDate|NotYetRated)|query_RankedBy(?:NumTimesReported|PublicationDate|TextSearch|TotalVotesAsc|Trend|Vote|VotesUp)|result_success|sortorder_CreationOrder(?:Asc|Desc)|sortorder_(?:ForModeration|LastUpdatedDesc|SubscriptionDateDesc|TitleAsc|VoteScoreDesc)|visibility_(?:friends_only|private|public))|vertex_usage_(?:binormal|blendindices|blendweight|color|colour|depth|fog|normal|position|psize|sample|tangent|texcoord|textcoord)|vertex_type_(?:float\d|color|colour|ubyte4)|input_type|layerelementtype_(?:background|instance|oldtilemap|particlesystem|sprite|tile|tilemap|undefined)|se_(?:chorus|compressor|echo|equalizer|flanger|gargle|none|reverb)|text_type|tile_(?:flip|index_mask|mirror|rotate)|(?:obj|rm|scr|spr)\w+)\b/,variable:/\b(?:alarm|application_surface|async_load|background_(?:alpha|blend|color|colour|foreground|height|hspeed|htiled|index|showcolor|showcolour|visible|vspeed|vtiled|width|x|xscale|y|yscale)|bbox_(?:bottom|left|right|top)|browser_(?:height|width)|caption_(?:health|lives|score)|current_(?:day|hour|minute|month|second|time|weekday|year)|cursor_sprite|debug_mode|delta_time|direction|display_aa|error_(?:last|occurred)|event_(?:action|number|object|type)|fps|fps_real|friction|game_(?:display|project|save)_(?:id|name)|gamemaker_(?:pro|registered|version)|gravity|gravity_direction|(?:h|v)speed|health|iap_data|id|image_(?:alpha|angle|blend|depth|index|number|speed|xscale|yscale)|instance_(?:count|id)|keyboard_(?:key|lastchar|lastkey|string)|layer|lives|mask_index|mouse_(?:button|lastbutton|x|y)|object_index|os_(?:browser|device|type|version)|path_(?:endaction|index|orientation|position|positionprevious|scale|speed)|persistent|phy_(?:rotation|(?:col_normal|collision|com|linear_velocity|position|speed)_(?:x|y)|angular_(?:damping|velocity)|position_(?:x|y)previous|speed|linear_damping|bullet|fixed_rotation|active|mass|inertia|dynamic|kinematic|sleeping|collision_points)|pointer_(?:invalid|null)|room|room_(?:caption|first|height|last|persistent|speed|width)|score|secure_mode|show_(?:health|lives|score)|solid|speed|sprite_(?:height|index|width|xoffset|yoffset)|temp_directory|timeline_(?:index|loop|position|running|speed)|transition_(?:color|kind|steps)|undefined|view_(?:angle|current|enabled|(?:h|v)(?:border|speed)|(?:h|w|x|y)port|(?:h|w|x|y)view|object|surface_id|visible)|visible|webgl_enabled|working_directory|(?:x|y)(?:previous|start)|x|y|argument(?:_relitive|_count|\d)|argument|global|local|other|self)\b/})}return Tp}var Ap,x_;function nne(){if(x_)return Ap;x_=1,Ap=e,e.displayName="gn",e.aliases=["gni"];function e(t){t.languages.gn={comment:{pattern:/#.*/,greedy:!0},"string-literal":{pattern:/(^|[^\\"])"(?:[^\r\n"\\]|\\.)*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[\s\S]*?\}|[a-zA-Z_]\w*|0x[a-fA-F0-9]{2})/,lookbehind:!0,inside:{number:/^\$0x[\s\S]{2}$/,variable:/^\$\w+$/,"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},string:/[\s\S]+/}},keyword:/\b(?:else|if)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/\b(?:assert|defined|foreach|import|pool|print|template|tool|toolchain)(?=\s*\()/i,alias:"keyword"},function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:current_cpu|current_os|current_toolchain|default_toolchain|host_cpu|host_os|root_build_dir|root_gen_dir|root_out_dir|target_cpu|target_gen_dir|target_os|target_out_dir)\b/,number:/-?\b\d+\b/,operator:/[-+!=<>]=?|&&|\|\|/,punctuation:/[(){}[\],.]/},t.languages.gn["string-literal"].inside.interpolation.inside.expression.inside=t.languages.gn,t.languages.gni=t.languages.gn}return Ap}var Op,w_;function ane(){if(w_)return Op;w_=1,Op=e,e.displayName="goModule",e.aliases=[];function e(t){t.languages["go-mod"]=t.languages["go-module"]={comment:{pattern:/\/\/.*/,greedy:!0},version:{pattern:/(^|[\s()[\],])v\d+\.\d+\.\d+(?:[+-][-+.\w]*)?(?![^\s()[\],])/,lookbehind:!0,alias:"number"},"go-version":{pattern:/((?:^|\s)go\s+)\d+(?:\.\d+){1,2}/,lookbehind:!0,alias:"number"},keyword:{pattern:/^([ \t]*)(?:exclude|go|module|replace|require|retract)\b/m,lookbehind:!0},operator:/=>/,punctuation:/[()[\],]/}}return Op}var kp,__;function ine(){if(__)return kp;__=1,kp=e,e.displayName="go",e.aliases=[];function e(t){t.languages.go=t.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),t.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete t.languages.go["class-name"]}return kp}var Rp,T_;function one(){if(T_)return Rp;T_=1,Rp=e,e.displayName="graphql",e.aliases=[];function e(t){t.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:t.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},t.hooks.add("after-tokenize",function(n){if(n.language!=="graphql")return;var a=n.tokens.filter(function(O){return typeof O!="string"&&O.type!=="comment"&&O.type!=="scalar"}),i=0;function o(O){return a[i+O]}function s(O,_){_=_||0;for(var w=0;w0)){var b=l(/^\{$/,/^\}$/);if(b===-1)continue;for(var v=i;v=0&&c(S,"variable-input")}}}}})}return Rp}var Ip,A_;function sne(){if(A_)return Ip;A_=1,Ip=e,e.displayName="groovy",e.aliases=[];function e(t){t.languages.groovy=t.languages.extend("clike",{string:[{pattern:/("""|''')(?:[^\\]|\\[\s\S])*?\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0},{pattern:/(["'/])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0}],keyword:/\b(?:abstract|as|assert|boolean|break|byte|case|catch|char|class|const|continue|def|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|in|instanceof|int|interface|long|native|new|package|private|protected|public|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|trait|transient|try|void|volatile|while)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),t.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment"}}),t.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:and|cleanup|expect|given|setup|then|when|where):/}),t.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),t.hooks.add("wrap",function(r){if(r.language==="groovy"&&r.type==="string"){var n=r.content.value[0];if(n!="'"){var a=/([^\\])(?:\$(?:\{.*?\}|[\w.]+))/;n==="$"&&(a=/([^\$])(?:\$(?:\{.*?\}|[\w.]+))/),r.content.value=r.content.value.replace(/</g,"<").replace(/&/g,"&"),r.content=t.highlight(r.content.value,{expression:{pattern:a,lookbehind:!0,inside:t.languages.groovy}}),r.classes.push(n==="/"?"regex":"gstring")}}})}return Ip}var Cp,O_;function lne(){if(O_)return Cp;O_=1;var e=Pu();Cp=t,t.displayName="haml",t.aliases=[];function t(r){r.register(e),function(n){n.languages.haml={"multiline-comment":{pattern:/((?:^|\r?\n|\r)([\t ]*))(?:\/|-#).*(?:(?:\r?\n|\r)\2[\t ].+)*/,lookbehind:!0,alias:"comment"},"multiline-code":[{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*,[\t ]*(?:(?:\r?\n|\r)\2[\t ].*,[\t ]*)*(?:(?:\r?\n|\r)\2[\t ].+)/,lookbehind:!0,inside:n.languages.ruby},{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*\|[\t ]*(?:(?:\r?\n|\r)\2[\t ].*\|[\t ]*)*/,lookbehind:!0,inside:n.languages.ruby}],filter:{pattern:/((?:^|\r?\n|\r)([\t ]*)):[\w-]+(?:(?:\r?\n|\r)(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"symbol"}}},markup:{pattern:/((?:^|\r?\n|\r)[\t ]*)<.+/,lookbehind:!0,inside:n.languages.markup},doctype:{pattern:/((?:^|\r?\n|\r)[\t ]*)!!!(?: .+)?/,lookbehind:!0},tag:{pattern:/((?:^|\r?\n|\r)[\t ]*)[%.#][\w\-#.]*[\w\-](?:\([^)]+\)|\{(?:\{[^}]+\}|[^{}])+\}|\[[^\]]+\])*[\/<>]*/,lookbehind:!0,inside:{attributes:[{pattern:/(^|[^#])\{(?:\{[^}]+\}|[^{}])+\}/,lookbehind:!0,inside:n.languages.ruby},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*)(?:"(?:\\.|[^\\"\r\n])*"|[^)\s]+)/,lookbehind:!0},"attr-name":/[\w:-]+(?=\s*!?=|\s*[,)])/,punctuation:/[=(),]/}},{pattern:/\[[^\]]+\]/,inside:n.languages.ruby}],punctuation:/[<>]/}},code:{pattern:/((?:^|\r?\n|\r)[\t ]*(?:[~-]|[&!]?=)).+/,lookbehind:!0,inside:n.languages.ruby},interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},ruby:{pattern:/[\s\S]+/,inside:n.languages.ruby}}},punctuation:{pattern:/((?:^|\r?\n|\r)[\t ]*)[~=\-&!]+/,lookbehind:!0}};for(var a="((?:^|\\r?\\n|\\r)([\\t ]*)):{{filter_name}}(?:(?:\\r?\\n|\\r)(?:\\2[\\t ].+|\\s*?(?=\\r?\\n|\\r)))+",i=["css",{filter:"coffee",language:"coffeescript"},"erb","javascript","less","markdown","ruby","scss","textile"],o={},s=0,l=i.length;s@\[\\\]^`{|}~]/,variable:/[^!"#%&'()*+,\/;<=>@\[\\\]^`{|}~\s]+/},n.hooks.add("before-tokenize",function(a){var i=/\{\{\{[\s\S]+?\}\}\}|\{\{[\s\S]+?\}\}/g;n.languages["markup-templating"].buildPlaceholders(a,"handlebars",i)}),n.hooks.add("after-tokenize",function(a){n.languages["markup-templating"].tokenizePlaceholders(a,"handlebars")}),n.languages.hbs=n.languages.handlebars}(r)}return Np}var Lp,R_;function Hy(){if(R_)return Lp;R_=1,Lp=e,e.displayName="haskell",e.aliases=["hs"];function e(t){t.languages.haskell={comment:{pattern:/(^|[^-!#$%*+=?&@|~.:<>^\\\/])(?:--(?:(?=.)[^-!#$%*+=?&@|~.:<>^\\\/].*|$)|\{-[\s\S]*?-\})/m,lookbehind:!0},char:{pattern:/'(?:[^\\']|\\(?:[abfnrtv\\"'&]|\^[A-Z@[\]^_]|ACK|BEL|BS|CAN|CR|DC1|DC2|DC3|DC4|DEL|DLE|EM|ENQ|EOT|ESC|ETB|ETX|FF|FS|GS|HT|LF|NAK|NUL|RS|SI|SO|SOH|SP|STX|SUB|SYN|US|VT|\d+|o[0-7]+|x[0-9a-fA-F]+))'/,alias:"string"},string:{pattern:/"(?:[^\\"]|\\(?:\S|\s+\\))*"/,greedy:!0},keyword:/\b(?:case|class|data|deriving|do|else|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b/,"import-statement":{pattern:/(^[\t ]*)import\s+(?:qualified\s+)?(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*(?:\s+as\s+(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import|qualified)\b/,punctuation:/\./}},builtin:/\b(?:abs|acos|acosh|all|and|any|appendFile|approxRational|asTypeOf|asin|asinh|atan|atan2|atanh|basicIORun|break|catch|ceiling|chr|compare|concat|concatMap|const|cos|cosh|curry|cycle|decodeFloat|denominator|digitToInt|div|divMod|drop|dropWhile|either|elem|encodeFloat|enumFrom|enumFromThen|enumFromThenTo|enumFromTo|error|even|exp|exponent|fail|filter|flip|floatDigits|floatRadix|floatRange|floor|fmap|foldl|foldl1|foldr|foldr1|fromDouble|fromEnum|fromInt|fromInteger|fromIntegral|fromRational|fst|gcd|getChar|getContents|getLine|group|head|id|inRange|index|init|intToDigit|interact|ioError|isAlpha|isAlphaNum|isAscii|isControl|isDenormalized|isDigit|isHexDigit|isIEEE|isInfinite|isLower|isNaN|isNegativeZero|isOctDigit|isPrint|isSpace|isUpper|iterate|last|lcm|length|lex|lexDigits|lexLitChar|lines|log|logBase|lookup|map|mapM|mapM_|max|maxBound|maximum|maybe|min|minBound|minimum|mod|negate|not|notElem|null|numerator|odd|or|ord|otherwise|pack|pi|pred|primExitWith|print|product|properFraction|putChar|putStr|putStrLn|quot|quotRem|range|rangeSize|read|readDec|readFile|readFloat|readHex|readIO|readInt|readList|readLitChar|readLn|readOct|readParen|readSigned|reads|readsPrec|realToFrac|recip|rem|repeat|replicate|return|reverse|round|scaleFloat|scanl|scanl1|scanr|scanr1|seq|sequence|sequence_|show|showChar|showInt|showList|showLitChar|showParen|showSigned|showString|shows|showsPrec|significand|signum|sin|sinh|snd|sort|span|splitAt|sqrt|subtract|succ|sum|tail|take|takeWhile|tan|tanh|threadToIOResult|toEnum|toInt|toInteger|toLower|toRational|toUpper|truncate|uncurry|undefined|unlines|until|unwords|unzip|unzip3|userError|words|writeFile|zip|zip3|zipWith|zipWith3)\b/,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0o[0-7]+|0x[0-9a-f]+)\b/i,operator:[{pattern:/`(?:[A-Z][\w']*\.)*[_a-z][\w']*`/,greedy:!0},{pattern:/(\s)\.(?=\s)/,lookbehind:!0},/[-!#$%*+=?&@|~:<>^\\\/][-!#$%*+=?&@|~.:<>^\\\/]*|\.[-!#$%*+=?&@|~.:<>^\\\/]+/],hvariable:{pattern:/\b(?:[A-Z][\w']*\.)*[_a-z][\w']*/,inside:{punctuation:/\./}},constant:{pattern:/\b(?:[A-Z][\w']*\.)*[A-Z][\w']*/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:]/},t.languages.hs=t.languages.haskell}return Lp}var Dp,I_;function cne(){if(I_)return Dp;I_=1,Dp=e,e.displayName="haxe",e.aliases=[];function e(t){t.languages.haxe=t.languages.extend("clike",{string:{pattern:/"(?:[^"\\]|\\[\s\S])*"/,greedy:!0},"class-name":[{pattern:/(\b(?:abstract|class|enum|extends|implements|interface|new|typedef)\s+)[A-Z_]\w*/,lookbehind:!0},/\b[A-Z]\w*/],keyword:/\bthis\b|\b(?:abstract|as|break|case|cast|catch|class|continue|default|do|dynamic|else|enum|extends|extern|final|for|from|function|if|implements|import|in|inline|interface|macro|new|null|operator|overload|override|package|private|public|return|static|super|switch|throw|to|try|typedef|untyped|using|var|while)(?!\.)\b/,function:{pattern:/\b[a-z_]\w*(?=\s*(?:<[^<>]*>\s*)?\()/i,greedy:!0},operator:/\.{3}|\+\+|--|&&|\|\||->|=>|(?:<{1,3}|[-+*/%!=&|^])=?|[?:~]/}),t.languages.insertBefore("haxe","string",{"string-interpolation":{pattern:/'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{interpolation:{pattern:/(^|[^\\])\$(?:\w+|\{[^{}]+\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:t.languages.haxe}}},string:/[\s\S]+/}}}),t.languages.insertBefore("haxe","class-name",{regex:{pattern:/~\/(?:[^\/\\\r\n]|\\.)+\/[a-z]*/,greedy:!0,inside:{"regex-flags":/\b[a-z]+$/,"regex-source":{pattern:/^(~\/)[\s\S]+(?=\/$)/,lookbehind:!0,alias:"language-regex",inside:t.languages.regex},"regex-delimiter":/^~\/|\/$/}}}),t.languages.insertBefore("haxe","keyword",{preprocessor:{pattern:/#(?:else|elseif|end|if)\b.*/,alias:"property"},metadata:{pattern:/@:?[\w.]+/,alias:"symbol"},reification:{pattern:/\$(?:\w+|(?=\{))/,alias:"important"}})}return Dp}var Mp,C_;function dne(){if(C_)return Mp;C_=1,Mp=e,e.displayName="hcl",e.aliases=[];function e(t){t.languages.hcl={comment:/(?:\/\/|#).*|\/\*[\s\S]*?(?:\*\/|$)/,heredoc:{pattern:/<<-?(\w+\b)[\s\S]*?^[ \t]*\1/m,greedy:!0,alias:"string"},keyword:[{pattern:/(?:data|resource)\s+(?:"(?:\\[\s\S]|[^\\"])*")(?=\s+"[\w-]+"\s+\{)/i,inside:{type:{pattern:/(resource|data|\s+)(?:"(?:\\[\s\S]|[^\\"])*")/i,lookbehind:!0,alias:"variable"}}},{pattern:/(?:backend|module|output|provider|provisioner|variable)\s+(?:[\w-]+|"(?:\\[\s\S]|[^\\"])*")\s+(?=\{)/i,inside:{type:{pattern:/(backend|module|output|provider|provisioner|variable)\s+(?:[\w-]+|"(?:\\[\s\S]|[^\\"])*")\s+/i,lookbehind:!0,alias:"variable"}}},/[\w-]+(?=\s+\{)/],property:[/[-\w\.]+(?=\s*=(?!=))/,/"(?:\\[\s\S]|[^\\"])+"(?=\s*[:=])/],string:{pattern:/"(?:[^\\$"]|\\[\s\S]|\$(?:(?=")|\$+(?!\$)|[^"${])|\$\{(?:[^{}"]|"(?:[^\\"]|\\[\s\S])*")*\})*"/,greedy:!0,inside:{interpolation:{pattern:/(^|[^$])\$\{(?:[^{}"]|"(?:[^\\"]|\\[\s\S])*")*\}/,lookbehind:!0,inside:{type:{pattern:/(\b(?:count|data|local|module|path|self|terraform|var)\b\.)[\w\*]+/i,lookbehind:!0,alias:"variable"},keyword:/\b(?:count|data|local|module|path|self|terraform|var)\b/i,function:/\w+(?=\()/,string:{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0},number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,punctuation:/[!\$#%&'()*+,.\/;<=>@\[\\\]^`{|}~?:]/}}}},number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,boolean:/\b(?:false|true)\b/i,punctuation:/[=\[\]{}]/}}return Mp}var Pp,N_;function pne(){if(N_)return Pp;N_=1;var e=ca();Pp=t,t.displayName="hlsl",t.aliases=[];function t(r){r.register(e),r.languages.hlsl=r.languages.extend("c",{"class-name":[r.languages.c["class-name"],/\b(?:AppendStructuredBuffer|BlendState|Buffer|ByteAddressBuffer|CompileShader|ComputeShader|ConsumeStructuredBuffer|DepthStencilState|DepthStencilView|DomainShader|GeometryShader|Hullshader|InputPatch|LineStream|OutputPatch|PixelShader|PointStream|RWBuffer|RWByteAddressBuffer|RWStructuredBuffer|RWTexture(?:1D|1DArray|2D|2DArray|3D)|RasterizerState|RenderTargetView|SamplerComparisonState|SamplerState|StructuredBuffer|Texture(?:1D|1DArray|2D|2DArray|2DMS|2DMSArray|3D|Cube|CubeArray)|TriangleStream|VertexShader)\b/],keyword:[/\b(?:asm|asm_fragment|auto|break|case|catch|cbuffer|centroid|char|class|column_major|compile|compile_fragment|const|const_cast|continue|default|delete|discard|do|dynamic_cast|else|enum|explicit|export|extern|for|friend|fxgroup|goto|groupshared|if|in|inline|inout|interface|line|lineadj|linear|long|matrix|mutable|namespace|new|nointerpolation|noperspective|operator|out|packoffset|pass|pixelfragment|point|precise|private|protected|public|register|reinterpret_cast|return|row_major|sample|sampler|shared|short|signed|sizeof|snorm|stateblock|stateblock_state|static|static_cast|string|struct|switch|tbuffer|technique|technique10|technique11|template|texture|this|throw|triangle|triangleadj|try|typedef|typename|uniform|union|unorm|unsigned|using|vector|vertexfragment|virtual|void|volatile|while)\b/,/\b(?:bool|double|dword|float|half|int|min(?:10float|12int|16(?:float|int|uint))|uint)(?:[1-4](?:x[1-4])?)?\b/],number:/(?:(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?|\b0x[\da-fA-F]+)[fFhHlLuU]?\b/,boolean:/\b(?:false|true)\b/})}return Pp}var $p,L_;function fne(){if(L_)return $p;L_=1,$p=e,e.displayName="hoon",e.aliases=[];function e(t){t.languages.hoon={comment:{pattern:/::.*/,greedy:!0},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},constant:/%(?:\.[ny]|[\w-]+)/,"class-name":/@(?:[a-z0-9-]*[a-z0-9])?|\*/i,function:/(?:\+[-+] {2})?(?:[a-z](?:[a-z0-9-]*[a-z0-9])?)/,keyword:/\.[\^\+\*=\?]|![><:\.=\?!]|=[>|:,\.\-\^<+;/~\*\?]|\?[>|:\.\-\^<\+&~=@!]|\|[\$_%:\.\-\^~\*=@\?]|\+[|\$\+\*]|:[_\-\^\+~\*]|%[_:\.\-\^\+~\*=]|\^[|:\.\-\+&~\*=\?]|\$[|_%:<>\-\^&~@=\?]|;[:<\+;\/~\*=]|~[>|\$_%<\+\/&=\?!]|--|==/}}return $p}var jp,D_;function gne(){if(D_)return jp;D_=1,jp=e,e.displayName="hpkp",e.aliases=[];function e(t){t.languages.hpkp={directive:{pattern:/\b(?:includeSubDomains|max-age|pin-sha256|preload|report-to|report-uri|strict)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}return jp}var Fp,M_;function hne(){if(M_)return Fp;M_=1,Fp=e,e.displayName="hsts",e.aliases=[];function e(t){t.languages.hsts={directive:{pattern:/\b(?:includeSubDomains|max-age|preload)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}return Fp}var Bp,P_;function mne(){if(P_)return Bp;P_=1,Bp=e,e.displayName="http",e.aliases=[];function e(t){(function(r){function n(p){return RegExp("(^(?:"+p+"):[ ]*(?![ ]))[^]+","i")}r.languages.http={"request-line":{pattern:/^(?:CONNECT|DELETE|GET|HEAD|OPTIONS|PATCH|POST|PRI|PUT|SEARCH|TRACE)\s(?:https?:\/\/|\/)\S*\sHTTP\/[\d.]+/m,inside:{method:{pattern:/^[A-Z]+\b/,alias:"property"},"request-target":{pattern:/^(\s)(?:https?:\/\/|\/)\S*(?=\s)/,lookbehind:!0,alias:"url",inside:r.languages.uri},"http-version":{pattern:/^(\s)HTTP\/[\d.]+/,lookbehind:!0,alias:"property"}}},"response-status":{pattern:/^HTTP\/[\d.]+ \d+ .+/m,inside:{"http-version":{pattern:/^HTTP\/[\d.]+/,alias:"property"},"status-code":{pattern:/^(\s)\d+(?=\s)/,lookbehind:!0,alias:"number"},"reason-phrase":{pattern:/^(\s).+/,lookbehind:!0,alias:"string"}}},header:{pattern:/^[\w-]+:.+(?:(?:\r\n?|\n)[ \t].+)*/m,inside:{"header-value":[{pattern:n(/Content-Security-Policy/.source),lookbehind:!0,alias:["csp","languages-csp"],inside:r.languages.csp},{pattern:n(/Public-Key-Pins(?:-Report-Only)?/.source),lookbehind:!0,alias:["hpkp","languages-hpkp"],inside:r.languages.hpkp},{pattern:n(/Strict-Transport-Security/.source),lookbehind:!0,alias:["hsts","languages-hsts"],inside:r.languages.hsts},{pattern:n(/[^:]+/.source),lookbehind:!0}],"header-name":{pattern:/^[^:]+/,alias:"keyword"},punctuation:/^:/}}};var a=r.languages,i={"application/javascript":a.javascript,"application/json":a.json||a.javascript,"application/xml":a.xml,"text/xml":a.xml,"text/html":a.html,"text/css":a.css,"text/plain":a.plain},o={"application/json":!0,"application/xml":!0};function s(p){var g=p.replace(/^[a-z]+\//,""),m="\\w+/(?:[\\w.-]+\\+)+"+g+"(?![+\\w.-])";return"(?:"+p+"|"+m+")"}var l;for(var c in i)if(i[c]){l=l||{};var d=o[c]?s(c):c;l[c.replace(/\//g,"-")]={pattern:RegExp("("+/content-type:\s*/.source+d+/(?:(?:\r\n?|\n)[\w-].*)*(?:\r(?:\n|(?!\n))|\n)/.source+")"+/[^ \t\w-][\s\S]*/.source,"i"),lookbehind:!0,inside:i[c]}}l&&r.languages.insertBefore("http","header",l)})(t)}return Bp}var Up,$_;function bne(){if($_)return Up;$_=1,Up=e,e.displayName="ichigojam",e.aliases=[];function e(t){t.languages.ichigojam={comment:/(?:\B'|REM)(?:[^\n\r]*)/i,string:{pattern:/"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,greedy:!0},number:/\B#[0-9A-F]+|\B`[01]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:BEEP|BPS|CASE|CLEAR|CLK|CLO|CLP|CLS|CLT|CLV|CONT|COPY|ELSE|END|FILE|FILES|FOR|GOSUB|GOTO|GSB|IF|INPUT|KBD|LED|LET|LIST|LOAD|LOCATE|LRUN|NEW|NEXT|OUT|PLAY|POKE|PRINT|PWM|REM|RENUM|RESET|RETURN|RIGHT|RTN|RUN|SAVE|SCROLL|SLEEP|SRND|STEP|STOP|SUB|TEMPO|THEN|TO|UART|VIDEO|WAIT)(?:\$|\b)/i,function:/\b(?:ABS|ANA|ASC|BIN|BTN|DEC|END|FREE|HELP|HEX|I2CR|I2CW|IN|INKEY|LEN|LINE|PEEK|RND|SCR|SOUND|STR|TICK|USR|VER|VPEEK|ZER)(?:\$|\b)/i,label:/(?:\B@\S+)/,operator:/<[=>]?|>=?|\|\||&&|[+\-*\/=|&^~!]|\b(?:AND|NOT|OR)\b/i,punctuation:/[\[,;:()\]]/}}return Up}var Gp,j_;function yne(){if(j_)return Gp;j_=1,Gp=e,e.displayName="icon",e.aliases=[];function e(t){t.languages.icon={comment:/#.*/,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n_]|\\.|_(?!\1)(?:\r\n|[\s\S]))*\1/,greedy:!0},number:/\b(?:\d+r[a-z\d]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b|\.\d+\b/i,"builtin-keyword":{pattern:/&(?:allocated|ascii|clock|collections|cset|current|date|dateline|digits|dump|e|error(?:number|text|value)?|errout|fail|features|file|host|input|lcase|letters|level|line|main|null|output|phi|pi|pos|progname|random|regions|source|storage|subject|time|trace|ucase|version)\b/,alias:"variable"},directive:{pattern:/\$\w+/,alias:"builtin"},keyword:/\b(?:break|by|case|create|default|do|else|end|every|fail|global|if|initial|invocable|link|local|next|not|of|procedure|record|repeat|return|static|suspend|then|to|until|while)\b/,function:/\b(?!\d)\w+(?=\s*[({]|\s*!\s*\[)/,operator:/[+-]:(?!=)|(?:[\/?@^%&]|\+\+?|--?|==?=?|~==?=?|\*\*?|\|\|\|?|<(?:->?|>?=?)(?::=)?|:(?:=:?)?|[!.\\|~]/,punctuation:/[\[\](){},;]/}}return Gp}var zp,F_;function vne(){if(F_)return zp;F_=1,zp=e,e.displayName="icuMessageFormat",e.aliases=[];function e(t){(function(r){function n(c,d){return d<=0?/[]/.source:c.replace(//g,function(){return n(c,d-1)})}var a=/'[{}:=,](?:[^']|'')*'(?!')/,i={pattern:/''/,greedy:!0,alias:"operator"},o={pattern:a,greedy:!0,inside:{escape:i}},s=n(/\{(?:[^{}']|'(?![{},'])|''||)*\}/.source.replace(//g,function(){return a.source}),8),l={pattern:RegExp(s),inside:{message:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:null},"message-delimiter":{pattern:/./,alias:"punctuation"}}};r.languages["icu-message-format"]={argument:{pattern:RegExp(s),greedy:!0,inside:{content:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:{"argument-name":{pattern:/^(\s*)[^{}:=,\s]+/,lookbehind:!0},"choice-style":{pattern:/^(\s*,\s*choice\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{punctuation:/\|/,range:{pattern:/^(\s*)[+-]?(?:\d+(?:\.\d*)?|\u221e)\s*[<#\u2264]/,lookbehind:!0,inside:{operator:/[<#\u2264]/,number:/\S+/}},rest:null}},"plural-style":{pattern:/^(\s*,\s*(?:plural|selectordinal)\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{offset:/^offset:\s*\d+/,"nested-message":l,selector:{pattern:/=\d+|[^{}:=,\s]+/,inside:{keyword:/^(?:few|many|one|other|two|zero)$/}}}},"select-style":{pattern:/^(\s*,\s*select\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{"nested-message":l,selector:{pattern:/[^{}:=,\s]+/,inside:{keyword:/^other$/}}}},keyword:/\b(?:choice|plural|select|selectordinal)\b/,"arg-type":{pattern:/\b(?:date|duration|number|ordinal|spellout|time)\b/,alias:"keyword"},"arg-skeleton":{pattern:/(,\s*)::[^{}:=,\s]+/,lookbehind:!0},"arg-style":{pattern:/(,\s*)(?:currency|full|integer|long|medium|percent|short)(?=\s*$)/,lookbehind:!0},"arg-style-text":{pattern:RegExp(/(^\s*,\s*(?=\S))/.source+n(/(?:[^{}']|'[^']*'|\{(?:)?\})+/.source,8)+"$"),lookbehind:!0,alias:"string"},punctuation:/,/}},"argument-delimiter":{pattern:/./,alias:"operator"}}},escape:i,string:o},l.inside.message.inside=r.languages["icu-message-format"],r.languages["icu-message-format"].argument.inside.content.inside["choice-style"].inside.rest=r.languages["icu-message-format"]})(t)}return zp}var qp,B_;function Sne(){if(B_)return qp;B_=1;var e=Hy();qp=t,t.displayName="idris",t.aliases=["idr"];function t(r){r.register(e),r.languages.idris=r.languages.extend("haskell",{comment:{pattern:/(?:(?:--|\|\|\|).*$|\{-[\s\S]*?-\})/m},keyword:/\b(?:Type|case|class|codata|constructor|corecord|data|do|dsl|else|export|if|implementation|implicit|import|impossible|in|infix|infixl|infixr|instance|interface|let|module|mutual|namespace|of|parameters|partial|postulate|private|proof|public|quoteGoal|record|rewrite|syntax|then|total|using|where|with)\b/,builtin:void 0}),r.languages.insertBefore("idris","keyword",{"import-statement":{pattern:/(^\s*import\s+)(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*/m,lookbehind:!0,inside:{punctuation:/\./}}}),r.languages.idr=r.languages.idris}return qp}var Hp,U_;function Ene(){if(U_)return Hp;U_=1,Hp=e,e.displayName="iecst",e.aliases=[];function e(t){t.languages.iecst={comment:[{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\(\*[\s\S]*?(?:\*\)|$)|\{[\s\S]*?(?:\}|$))/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:[/\b(?:END_)?(?:PROGRAM|CONFIGURATION|INTERFACE|FUNCTION_BLOCK|FUNCTION|ACTION|TRANSITION|TYPE|STRUCT|(?:INITIAL_)?STEP|NAMESPACE|LIBRARY|CHANNEL|FOLDER|RESOURCE|VAR_(?:ACCESS|CONFIG|EXTERNAL|GLOBAL|INPUT|IN_OUT|OUTPUT|TEMP)|VAR|METHOD|PROPERTY)\b/i,/\b(?:AT|BY|(?:END_)?(?:CASE|FOR|IF|REPEAT|WHILE)|CONSTANT|CONTINUE|DO|ELSE|ELSIF|EXIT|EXTENDS|FROM|GET|GOTO|IMPLEMENTS|JMP|NON_RETAIN|OF|PRIVATE|PROTECTED|PUBLIC|RETAIN|RETURN|SET|TASK|THEN|TO|UNTIL|USING|WITH|__CATCH|__ENDTRY|__FINALLY|__TRY)\b/],"class-name":/\b(?:ANY|ARRAY|BOOL|BYTE|U?(?:D|L|S)?INT|(?:D|L)?WORD|DATE(?:_AND_TIME)?|DT|L?REAL|POINTER|STRING|TIME(?:_OF_DAY)?|TOD)\b/,address:{pattern:/%[IQM][XBWDL][\d.]*|%[IQ][\d.]*/,alias:"symbol"},number:/\b(?:16#[\da-f]+|2#[01_]+|0x[\da-f]+)\b|\b(?:D|DT|T|TOD)#[\d_shmd:]*|\b[A-Z]*#[\d.,_]*|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/,operator:/S?R?:?=>?|&&?|\*\*?|<[=>]?|>=?|[-:^/+#]|\b(?:AND|EQ|EXPT|GE|GT|LE|LT|MOD|NE|NOT|OR|XOR)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,punctuation:/[()[\].,;]/}}return Hp}var Wp,G_;function xne(){if(G_)return Wp;G_=1,Wp=e,e.displayName="ignore",e.aliases=["gitignore","hgignore","npmignore"];function e(t){(function(r){r.languages.ignore={comment:/^#.*/m,entry:{pattern:/\S(?:.*(?:(?:\\ )|\S))?/,alias:"string",inside:{operator:/^!|\*\*?|\?/,regex:{pattern:/(^|[^\\])\[[^\[\]]*\]/,lookbehind:!0},punctuation:/\//}}},r.languages.gitignore=r.languages.ignore,r.languages.hgignore=r.languages.ignore,r.languages.npmignore=r.languages.ignore})(t)}return Wp}var Vp,z_;function wne(){if(z_)return Vp;z_=1,Vp=e,e.displayName="inform7",e.aliases=[];function e(t){t.languages.inform7={string:{pattern:/"[^"]*"/,inside:{substitution:{pattern:/\[[^\[\]]+\]/,inside:{delimiter:{pattern:/\[|\]/,alias:"punctuation"}}}}},comment:{pattern:/\[[^\[\]]+\]/,greedy:!0},title:{pattern:/^[ \t]*(?:book|chapter|part(?! of)|section|table|volume)\b.+/im,alias:"important"},number:{pattern:/(^|[^-])(?:\b\d+(?:\.\d+)?(?:\^\d+)?(?:(?!\d)\w+)?|\b(?:eight|eleven|five|four|nine|one|seven|six|ten|three|twelve|two))\b(?!-)/i,lookbehind:!0},verb:{pattern:/(^|[^-])\b(?:answering|applying to|are|asking|attacking|be(?:ing)?|burning|buying|called|carries|carry(?! out)|carrying|climbing|closing|conceal(?:ing|s)?|consulting|contain(?:ing|s)?|cutting|drinking|dropping|eating|enclos(?:es?|ing)|entering|examining|exiting|getting|giving|going|ha(?:s|ve|ving)|hold(?:ing|s)?|impl(?:ies|y)|incorporat(?:es?|ing)|inserting|is|jumping|kissing|listening|locking|looking|mean(?:ing|s)?|opening|provid(?:es?|ing)|pulling|pushing|putting|relat(?:es?|ing)|removing|searching|see(?:ing|s)?|setting|showing|singing|sleeping|smelling|squeezing|support(?:ing|s)?|swearing|switching|taking|tasting|telling|thinking|throwing|touching|turning|tying|unlock(?:ing|s)?|var(?:ies|y|ying)|waiting|waking|waving|wear(?:ing|s)?)\b(?!-)/i,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^-])\b(?:after|before|carry out|check|continue the action|definition(?= *:)|do nothing|else|end (?:if|the story|unless)|every turn|if|include|instead(?: of)?|let|move|no|now|otherwise|repeat|report|resume the story|rule for|running through|say(?:ing)?|stop the action|test|try(?:ing)?|understand|unless|use|when|while|yes)\b(?!-)/i,lookbehind:!0},property:{pattern:/(^|[^-])\b(?:adjacent(?! to)|carried|closed|concealed|contained|dark|described|edible|empty|enclosed|enterable|even|female|fixed in place|full|handled|held|improper-named|incorporated|inedible|invisible|lighted|lit|lock(?:able|ed)|male|marked for listing|mentioned|negative|neuter|non-(?:empty|full|recurring)|odd|opaque|open(?:able)?|plural-named|portable|positive|privately-named|proper-named|provided|publically-named|pushable between rooms|recurring|related|rubbing|scenery|seen|singular-named|supported|swinging|switch(?:able|ed(?: off| on)?)|touch(?:able|ed)|transparent|unconcealed|undescribed|unlit|unlocked|unmarked for listing|unmentioned|unopenable|untouchable|unvisited|variable|visible|visited|wearable|worn)\b(?!-)/i,lookbehind:!0,alias:"symbol"},position:{pattern:/(^|[^-])\b(?:above|adjacent to|back side of|below|between|down|east|everywhere|front side|here|in|inside(?: from)?|north(?:east|west)?|nowhere|on(?: top of)?|other side|outside(?: from)?|parts? of|regionally in|south(?:east|west)?|through|up|west|within)\b(?!-)/i,lookbehind:!0,alias:"keyword"},type:{pattern:/(^|[^-])\b(?:actions?|activit(?:ies|y)|actors?|animals?|backdrops?|containers?|devices?|directions?|doors?|holders?|kinds?|lists?|m[ae]n|nobody|nothing|nouns?|numbers?|objects?|people|persons?|player(?:'s holdall)?|regions?|relations?|rooms?|rule(?:book)?s?|scenes?|someone|something|supporters?|tables?|texts?|things?|time|vehicles?|wom[ae]n)\b(?!-)/i,lookbehind:!0,alias:"variable"},punctuation:/[.,:;(){}]/},t.languages.inform7.string.inside.substitution.inside.rest=t.languages.inform7,t.languages.inform7.string.inside.substitution.inside.rest.text={pattern:/\S(?:\s*\S)*/,alias:"comment"}}return Vp}var Yp,q_;function _ne(){if(q_)return Yp;q_=1,Yp=e,e.displayName="ini",e.aliases=[];function e(t){t.languages.ini={comment:{pattern:/(^[ \f\t\v]*)[#;][^\n\r]*/m,lookbehind:!0},section:{pattern:/(^[ \f\t\v]*)\[[^\n\r\]]*\]?/m,lookbehind:!0,inside:{"section-name":{pattern:/(^\[[ \f\t\v]*)[^ \f\t\v\]]+(?:[ \f\t\v]+[^ \f\t\v\]]+)*/,lookbehind:!0,alias:"selector"},punctuation:/\[|\]/}},key:{pattern:/(^[ \f\t\v]*)[^ \f\n\r\t\v=]+(?:[ \f\t\v]+[^ \f\n\r\t\v=]+)*(?=[ \f\t\v]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/(=[ \f\t\v]*)[^ \f\n\r\t\v]+(?:[ \f\t\v]+[^ \f\n\r\t\v]+)*/,lookbehind:!0,alias:"attr-value",inside:{"inner-value":{pattern:/^("|').+(?=\1$)/,lookbehind:!0}}},punctuation:/=/}}return Yp}var Kp,H_;function Tne(){if(H_)return Kp;H_=1,Kp=e,e.displayName="io",e.aliases=[];function e(t){t.languages.io={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\/\/.*|#.*)/,lookbehind:!0,greedy:!0},"triple-quoted-string":{pattern:/"""(?:\\[\s\S]|(?!""")[^\\])*"""/,greedy:!0,alias:"string"},string:{pattern:/"(?:\\.|[^\\\r\n"])*"/,greedy:!0},keyword:/\b(?:activate|activeCoroCount|asString|block|break|call|catch|clone|collectGarbage|compileString|continue|do|doFile|doMessage|doString|else|elseif|exit|for|foreach|forward|getEnvironmentVariable|getSlot|hasSlot|if|ifFalse|ifNil|ifNilEval|ifTrue|isActive|isNil|isResumable|list|message|method|parent|pass|pause|perform|performWithArgList|print|println|proto|raise|raiseResumable|removeSlot|resend|resume|schedulerSleepSeconds|self|sender|setSchedulerSleepSeconds|setSlot|shallowCopy|slotNames|super|system|then|thisBlock|thisContext|try|type|uniqueId|updateSlot|wait|while|write|yield)\b/,builtin:/\b(?:Array|AudioDevice|AudioMixer|BigNum|Block|Box|Buffer|CFunction|CGI|Color|Curses|DBM|DNSResolver|DOConnection|DOProxy|DOServer|Date|Directory|Duration|DynLib|Error|Exception|FFT|File|Fnmatch|Font|Future|GL|GLE|GLScissor|GLU|GLUCylinder|GLUQuadric|GLUSphere|GLUT|Host|Image|Importer|LinkList|List|Lobby|Locals|MD5|MP3Decoder|MP3Encoder|Map|Message|Movie|Notification|Number|Object|OpenGL|Point|Protos|Random|Regex|SGML|SGMLElement|SGMLParser|SQLite|Sequence|Server|ShowMessage|SleepyCat|SleepyCatCursor|Socket|SocketManager|Sound|Soup|Store|String|Tree|UDPSender|UPDReceiver|URL|User|Warning|WeakLink)\b/,boolean:/\b(?:false|nil|true)\b/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e-?\d+)?/i,operator:/[=!*/%+\-^&|]=|>>?=?|<+*\-%$|,#][.:]?|[?^]\.?|[;\[]:?|[~}"i][.:]|[ACeEIjLor]\.|(?:[_\/\\qsux]|_?\d):)/,alias:"keyword"},number:/\b_?(?:(?!\d:)\d+(?:\.\d+)?(?:(?:ad|ar|[ejpx])_?\d+(?:\.\d+)?)*(?:b_?[\da-z]+(?:\.[\da-z]+)?)?|_\b(?!\.))/,adverb:{pattern:/[~}]|[\/\\]\.?|[bfM]\.|t[.:]/,alias:"builtin"},operator:/[=a][.:]|_\./,conjunction:{pattern:/&(?:\.:?|:)?|[.:@][.:]?|[!D][.:]|[;dHT]\.|`:?|[\^LS]:|"/,alias:"variable"},punctuation:/[()]/}}return Xp}var Zp,V_;function Wy(){if(V_)return Zp;V_=1,Zp=e,e.displayName="java",e.aliases=[];function e(t){(function(r){var n=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,a=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,i={pattern:RegExp(a+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};r.languages.java=r.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[i,{pattern:RegExp(a+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:i.inside}],keyword:n,function:[r.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0}}),r.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),r.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":i,keyword:n,punctuation:/[<>(),.:]/,operator:/[?&|]/}},namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(//g,function(){return n.source})),lookbehind:!0,inside:{punctuation:/\./}}})})(t)}return Zp}var Jp,Y_;function $u(){if(Y_)return Jp;Y_=1,Jp=e,e.displayName="javadoclike",e.aliases=[];function e(t){(function(r){var n=r.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/};function a(o,s){var l="doc-comment",c=r.languages[o];if(c){var d=c[l];if(!d){var p={};p[l]={pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"},c=r.languages.insertBefore(o,"comment",p),d=c[l]}if(d instanceof RegExp&&(d=c[l]={pattern:d}),Array.isArray(d))for(var g=0,m=d.length;g)?|/.source.replace(//g,function(){return o});a.languages.javadoc=a.languages.extend("javadoclike",{}),a.languages.insertBefore("javadoc","keyword",{reference:{pattern:RegExp(/(@(?:exception|link|linkplain|see|throws|value)\s+(?:\*\s*)?)/.source+"(?:"+s+")"),lookbehind:!0,inside:{function:{pattern:/(#\s*)\w+(?=\s*\()/,lookbehind:!0},field:{pattern:/(#\s*)\w+/,lookbehind:!0},namespace:{pattern:/\b(?:[a-z]\w*\s*\.\s*)+/,inside:{punctuation:/\./}},"class-name":/\b[A-Z]\w*/,keyword:a.languages.java.keyword,punctuation:/[#()[\],.]/}},"class-name":{pattern:/(@param\s+)<[A-Z]\w*>/,lookbehind:!0,inside:{punctuation:/[.<>]/}},"code-section":[{pattern:/(\{@code\s+(?!\s))(?:[^\s{}]|\s+(?![\s}])|\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\})+(?=\s*\})/,lookbehind:!0,inside:{code:{pattern:i,lookbehind:!0,inside:a.languages.java,alias:"language-java"}}},{pattern:/(<(code|pre|tt)>(?!)\s*)\S(?:\S|\s+\S)*?(?=\s*<\/\2>)/,lookbehind:!0,inside:{line:{pattern:i,lookbehind:!0,inside:{tag:a.languages.markup.tag,entity:a.languages.markup.entity,code:{pattern:/.+/,inside:a.languages.java,alias:"language-java"}}}}}],tag:a.languages.markup.tag,entity:a.languages.markup.entity}),a.languages.javadoclike.addSupport("java",a.languages.javadoc)}(n)}return Qp}var ef,X_;function kne(){if(X_)return ef;X_=1,ef=e,e.displayName="javastacktrace",e.aliases=[];function e(t){t.languages.javastacktrace={summary:{pattern:/^([\t ]*)(?:(?:Caused by:|Suppressed:|Exception in thread "[^"]*")[\t ]+)?[\w$.]+(?::.*)?$/m,lookbehind:!0,inside:{keyword:{pattern:/^([\t ]*)(?:(?:Caused by|Suppressed)(?=:)|Exception in thread)/m,lookbehind:!0},string:{pattern:/^(\s*)"[^"]*"/,lookbehind:!0},exceptions:{pattern:/^(:?\s*)[\w$.]+(?=:|$)/,lookbehind:!0,inside:{"class-name":/[\w$]+$/,namespace:/\b[a-z]\w*\b/,punctuation:/\./}},message:{pattern:/(:\s*)\S.*/,lookbehind:!0,alias:"string"},punctuation:/:/}},"stack-frame":{pattern:/^([\t ]*)at (?:[\w$./]|@[\w$.+-]*\/)+(?:)?\([^()]*\)/m,lookbehind:!0,inside:{keyword:{pattern:/^(\s*)at(?= )/,lookbehind:!0},source:[{pattern:/(\()\w+\.\w+:\d+(?=\))/,lookbehind:!0,inside:{file:/^\w+\.\w+/,punctuation:/:/,"line-number":{pattern:/\b\d+\b/,alias:"number"}}},{pattern:/(\()[^()]*(?=\))/,lookbehind:!0,inside:{keyword:/^(?:Native Method|Unknown Source)$/}}],"class-name":/[\w$]+(?=\.(?:|[\w$]+)\()/,function:/(?:|[\w$]+)(?=\()/,"class-loader":{pattern:/(\s)[a-z]\w*(?:\.[a-z]\w*)*(?=\/[\w@$.]*\/)/,lookbehind:!0,alias:"namespace",inside:{punctuation:/\./}},module:{pattern:/([\s/])[a-z]\w*(?:\.[a-z]\w*)*(?:@[\w$.+-]*)?(?=\/)/,lookbehind:!0,inside:{version:{pattern:/(@)[\s\S]+/,lookbehind:!0,alias:"number"},punctuation:/[@.]/}},namespace:{pattern:/(?:\b[a-z]\w*\.)+/,inside:{punctuation:/\./}},punctuation:/[()/.]/}},more:{pattern:/^([\t ]*)\.{3} \d+ [a-z]+(?: [a-z]+)*/m,lookbehind:!0,inside:{punctuation:/\.{3}/,number:/\d+/,keyword:/\b[a-z]+(?: [a-z]+)*\b/}}}}return ef}var tf,Z_;function Rne(){if(Z_)return tf;Z_=1,tf=e,e.displayName="jexl",e.aliases=[];function e(t){t.languages.jexl={string:/(["'])(?:\\[\s\S]|(?!\1)[^\\])*\1/,transform:{pattern:/(\|\s*)[a-zA-Zа-яА-Я_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\wа-яА-Я\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*/,alias:"function",lookbehind:!0},function:/[a-zA-Zа-яА-Я_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\wа-яА-Я\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*\s*(?=\()/,number:/\b\d+(?:\.\d+)?\b|\B\.\d+\b/,operator:/[<>!]=?|-|\+|&&|==|\|\|?|\/\/?|[?:*^%]/,boolean:/\b(?:false|true)\b/,keyword:/\bin\b/,punctuation:/[{}[\](),.]/}}return tf}var rf,J_;function Ine(){if(J_)return rf;J_=1,rf=e,e.displayName="jolie",e.aliases=[];function e(t){t.languages.jolie=t.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\[\s\S]|[^"\\])*"/,lookbehind:!0,greedy:!0},"class-name":{pattern:/((?:\b(?:as|courier|embed|in|inputPort|outputPort|service)\b|@)[ \t]*)\w+/,lookbehind:!0},keyword:/\b(?:as|cH|comp|concurrent|constants|courier|cset|csets|default|define|else|embed|embedded|execution|exit|extender|for|foreach|forward|from|global|if|import|in|include|init|inputPort|install|instanceof|interface|is_defined|linkIn|linkOut|main|new|nullProcess|outputPort|over|private|provide|public|scope|sequential|service|single|spawn|synchronized|this|throw|throws|type|undef|until|while|with)\b/,function:/\b[a-z_]\w*(?=[ \t]*[@(])/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?l?/i,operator:/-[-=>]?|\+[+=]?|<[<=]?|[>=*!]=?|&&|\|\||[?\/%^@|]/,punctuation:/[()[\]{},;.:]/,builtin:/\b(?:Byte|any|bool|char|double|enum|float|int|length|long|ranges|regex|string|undefined|void)\b/}),t.languages.insertBefore("jolie","keyword",{aggregates:{pattern:/(\bAggregates\s*:\s*)(?:\w+(?:\s+with\s+\w+)?\s*,\s*)*\w+(?:\s+with\s+\w+)?/,lookbehind:!0,inside:{keyword:/\bwith\b/,"class-name":/\w+/,punctuation:/,/}},redirects:{pattern:/(\bRedirects\s*:\s*)(?:\w+\s*=>\s*\w+\s*,\s*)*(?:\w+\s*=>\s*\w+)/,lookbehind:!0,inside:{punctuation:/,/,"class-name":/\w+/,operator:/=>/}},property:{pattern:/\b(?:Aggregates|[Ii]nterfaces|Java|Javascript|Jolie|[Ll]ocation|OneWay|[Pp]rotocol|Redirects|RequestResponse)\b(?=[ \t]*:)/}})}return rf}var nf,Q_;function Cne(){if(Q_)return nf;Q_=1,nf=e,e.displayName="jq",e.aliases=[];function e(t){(function(r){var n=/\\\((?:[^()]|\([^()]*\))*\)/.source,a=RegExp(/(^|[^\\])"(?:[^"\r\n\\]|\\[^\r\n(]|__)*"/.source.replace(/__/g,function(){return n})),i={interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+n),lookbehind:!0,inside:{content:{pattern:/^(\\\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:null},punctuation:/^\\\(|\)$/}}},o=r.languages.jq={comment:/#.*/,property:{pattern:RegExp(a.source+/(?=\s*:(?!:))/.source),lookbehind:!0,greedy:!0,inside:i},string:{pattern:a,lookbehind:!0,greedy:!0,inside:i},function:{pattern:/(\bdef\s+)[a-z_]\w+/i,lookbehind:!0},variable:/\B\$\w+/,"property-literal":{pattern:/\b[a-z_]\w*(?=\s*:(?!:))/i,alias:"property"},keyword:/\b(?:as|break|catch|def|elif|else|end|foreach|if|import|include|label|module|modulemeta|null|reduce|then|try|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b\d+\.|\B\.)?\b\d+(?:[eE][+-]?\d+)?\b/,operator:[{pattern:/\|=?/,alias:"pipe"},/\.\.|[!=<>]?=|\?\/\/|\/\/=?|[-+*/%]=?|[<>?]|\b(?:and|not|or)\b/],"c-style-function":{pattern:/\b[a-z_]\w*(?=\s*\()/i,alias:"function"},punctuation:/::|[()\[\]{},:;]|\.(?=\s*[\[\w$])/,dot:{pattern:/\./,alias:"important"}};i.interpolation.inside.content.inside=o})(t)}return nf}var af,e1;function Nne(){if(e1)return af;e1=1,af=e,e.displayName="jsExtras",e.aliases=[];function e(t){(function(r){r.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+r.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),r.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+r.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),r.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]});function n(c,d){return RegExp(c.replace(//g,function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),d)}r.languages.insertBefore("javascript","keyword",{imports:{pattern:n(/(\bimport\b\s*)(?:(?:\s*,\s*(?:\*\s*as\s+|\{[^{}]*\}))?|\*\s*as\s+|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:r.languages.javascript},exports:{pattern:n(/(\bexport\b\s*)(?:\*(?:\s*as\s+)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:r.languages.javascript}}),r.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),r.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),r.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:n(/(\.\s*)#?/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var a=["function","function-variable","method","method-variable","property-access"],i=0;i=k.length)return;var D=I[N];if(typeof D=="string"||typeof D.content=="string"){var j=k[w],q=typeof D=="string"?D:D.content,H=q.indexOf(j);if(H!==-1){++w;var z=q.substring(0,H),W=p(A[j]),K=q.substring(H+j.length),G=[];if(z&&G.push(z),G.push(W),K){var V=[K];C(V),G.push.apply(G,V)}typeof D=="string"?(I.splice.apply(I,[N,1].concat(G)),N+=G.length-1):D.content=G}}else{var J=D.content;Array.isArray(J)?C(J):C([J])}}}return C(E),new r.Token(O,E,"language-"+O,v)}var m={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};r.hooks.add("after-tokenize",function(v){if(!(v.language in m))return;function S(O){for(var _=0,w=O.length;_]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),r.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete r.languages.typescript.parameter,delete r.languages.typescript["literal-property"];var n=r.languages.extend("typescript",{});delete n["class-name"],r.languages.typescript["class-name"].inside=n,r.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:n}}}}),r.languages.ts=r.languages.typescript})(t)}return sf}var lf,n1;function Dne(){if(n1)return lf;n1=1;var e=$u(),t=Vy();lf=r,r.displayName="jsdoc",r.aliases=[];function r(n){n.register(e),n.register(t),function(a){var i=a.languages.javascript,o=/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source,s="(@(?:arg|argument|param|property)\\s+(?:"+o+"\\s+)?)";a.languages.jsdoc=a.languages.extend("javadoclike",{parameter:{pattern:RegExp(s+/(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source),lookbehind:!0,inside:{punctuation:/\./}}}),a.languages.insertBefore("jsdoc","keyword",{"optional-parameter":{pattern:RegExp(s+/\[(?:(?!\s)[$\w\xA0-\uFFFF.])+(?:=[^[\]]+)?\](?=\s|$)/.source),lookbehind:!0,inside:{parameter:{pattern:/(^\[)[$\w\xA0-\uFFFF\.]+/,lookbehind:!0,inside:{punctuation:/\./}},code:{pattern:/(=)[\s\S]*(?=\]$)/,lookbehind:!0,inside:i,alias:"language-javascript"},punctuation:/[=[\]]/}},"class-name":[{pattern:RegExp(/(@(?:augments|class|extends|interface|memberof!?|template|this|typedef)\s+(?:\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(//g,function(){return o})),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+o),lookbehind:!0,inside:{string:i.string,number:i.number,boolean:i.boolean,keyword:a.languages.typescript.keyword,operator:/=>|\.\.\.|[&|?:*]/,punctuation:/[.,;=<>{}()[\]]/}}],example:{pattern:/(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/,lookbehind:!0,inside:{code:{pattern:/^([\t ]*(?:\*\s*)?)\S.*$/m,lookbehind:!0,inside:i,alias:"language-javascript"}}}}),a.languages.javadoclike.addSupport("javascript",a.languages.jsdoc)}(n)}return lf}var uf,a1;function Yy(){if(a1)return uf;a1=1,uf=e,e.displayName="json",e.aliases=["webmanifest"];function e(t){t.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},t.languages.webmanifest=t.languages.json}return uf}var cf,i1;function Mne(){if(i1)return cf;i1=1;var e=Yy();cf=t,t.displayName="json5",t.aliases=[];function t(r){r.register(e),function(n){var a=/("|')(?:\\(?:\r\n?|\n|.)|(?!\1)[^\\\r\n])*\1/;n.languages.json5=n.languages.extend("json",{property:[{pattern:RegExp(a.source+"(?=\\s*:)"),greedy:!0},{pattern:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/,alias:"unquoted"}],string:{pattern:a,greedy:!0},number:/[+-]?\b(?:NaN|Infinity|0x[a-fA-F\d]+)\b|[+-]?(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+\b)?/})}(r)}return cf}var df,o1;function Pne(){if(o1)return df;o1=1;var e=Yy();df=t,t.displayName="jsonp",t.aliases=[];function t(r){r.register(e),r.languages.jsonp=r.languages.extend("json",{punctuation:/[{}[\]();,.]/}),r.languages.insertBefore("jsonp","punctuation",{function:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*\()/})}return df}var pf,s1;function $ne(){if(s1)return pf;s1=1,pf=e,e.displayName="jsstacktrace",e.aliases=[];function e(t){t.languages.jsstacktrace={"error-message":{pattern:/^\S.*/m,alias:"string"},"stack-frame":{pattern:/(^[ \t]+)at[ \t].*/m,lookbehind:!0,inside:{"not-my-code":{pattern:/^at[ \t]+(?!\s)(?:node\.js||.*(?:node_modules|\(\)|\(|$|\(internal\/|\(node\.js)).*/m,alias:"comment"},filename:{pattern:/(\bat\s+(?!\s)|\()(?:[a-zA-Z]:)?[^():]+(?=:)/,lookbehind:!0,alias:"url"},function:{pattern:/(\bat\s+(?:new\s+)?)(?!\s)[_$a-zA-Z\xA0-\uFFFF<][.$\w\xA0-\uFFFF<>]*/,lookbehind:!0,inside:{punctuation:/\./}},punctuation:/[()]/,keyword:/\b(?:at|new)\b/,alias:{pattern:/\[(?:as\s+)?(?!\s)[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*\]/,alias:"variable"},"line-number":{pattern:/:\d+(?::\d+)?\b/,alias:"number",inside:{punctuation:/:/}}}}}}return pf}var ff,l1;function CI(){if(l1)return ff;l1=1,ff=e,e.displayName="jsx",e.aliases=[];function e(t){(function(r){var n=r.util.clone(r.languages.javascript),a=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,i=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,o=/(?:\{*\.{3}(?:[^{}]|)*\})/.source;function s(d,p){return d=d.replace(//g,function(){return a}).replace(//g,function(){return i}).replace(//g,function(){return o}),RegExp(d,p)}o=s(o).source,r.languages.jsx=r.languages.extend("markup",n),r.languages.jsx.tag.pattern=s(/<\/?(?:[\w.:-]+(?:+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|))?|))**\/?)?>/.source),r.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,r.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,r.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,r.languages.jsx.tag.inside.comment=n.comment,r.languages.insertBefore("inside","attr-name",{spread:{pattern:s(//.source),inside:r.languages.jsx}},r.languages.jsx.tag),r.languages.insertBefore("inside","special-attr",{script:{pattern:s(/=/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:r.languages.jsx}}},r.languages.jsx.tag);var l=function(d){return d?typeof d=="string"?d:typeof d.content=="string"?d.content:d.content.map(l).join(""):""},c=function(d){for(var p=[],g=0;g0&&p[p.length-1].tagName===l(m.content[0].content[1])&&p.pop():m.content[m.content.length-1].content==="/>"||p.push({tagName:l(m.content[0].content[1]),openedBraces:0}):p.length>0&&m.type==="punctuation"&&m.content==="{"?p[p.length-1].openedBraces++:p.length>0&&p[p.length-1].openedBraces>0&&m.type==="punctuation"&&m.content==="}"?p[p.length-1].openedBraces--:b=!0),(b||typeof m=="string")&&p.length>0&&p[p.length-1].openedBraces===0){var v=l(m);g0&&(typeof d[g-1]=="string"||d[g-1].type==="plain-text")&&(v=l(d[g-1])+v,d.splice(g-1,1),g--),d[g]=new r.Token("plain-text",v,null,v)}m.content&&typeof m.content!="string"&&c(m.content)}};r.hooks.add("after-tokenize",function(d){d.language!=="jsx"&&d.language!=="tsx"||c(d.tokens)})})(t)}return ff}var gf,u1;function jne(){if(u1)return gf;u1=1,gf=e,e.displayName="julia",e.aliases=[];function e(t){t.languages.julia={comment:{pattern:/(^|[^\\])(?:#=(?:[^#=]|=(?!#)|#(?!=)|#=(?:[^#=]|=(?!#)|#(?!=))*=#)*=#|#.*)/,lookbehind:!0},regex:{pattern:/r"(?:\\.|[^"\\\r\n])*"[imsx]{0,4}/,greedy:!0},string:{pattern:/"""[\s\S]+?"""|(?:\b\w+)?"(?:\\.|[^"\\\r\n])*"|`(?:[^\\`\r\n]|\\.)*`/,greedy:!0},char:{pattern:/(^|[^\w'])'(?:\\[^\r\n][^'\r\n]*|[^\\\r\n])'/,lookbehind:!0,greedy:!0},keyword:/\b(?:abstract|baremodule|begin|bitstype|break|catch|ccall|const|continue|do|else|elseif|end|export|finally|for|function|global|if|immutable|import|importall|in|let|local|macro|module|print|println|quote|return|struct|try|type|typealias|using|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[box])?(?:[\da-f]+(?:_[\da-f]+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[efp][+-]?\d+(?:_\d+)*)?j?/i,operator:/&&|\|\||[-+*^%÷⊻&$\\]=?|\/[\/=]?|!=?=?|\|[=>]?|<(?:<=?|[=:|])?|>(?:=|>>?=?)?|==?=?|[~≠≤≥'√∛]/,punctuation:/::?|[{}[\]();,.?]/,constant:/\b(?:(?:Inf|NaN)(?:16|32|64)?|im|pi)\b|[πℯ]/}}return gf}var hf,c1;function Fne(){if(c1)return hf;c1=1,hf=e,e.displayName="keepalived",e.aliases=[];function e(t){t.languages.keepalived={comment:{pattern:/[#!].*/,greedy:!0},string:{pattern:/(^|[^\\])(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/,lookbehind:!0,greedy:!0},ip:{pattern:RegExp(/\b(?:(?:(?:[\da-f]{1,4}:){7}[\da-f]{1,4}|(?:[\da-f]{1,4}:){6}:[\da-f]{1,4}|(?:[\da-f]{1,4}:){5}:(?:[\da-f]{1,4}:)?[\da-f]{1,4}|(?:[\da-f]{1,4}:){4}:(?:[\da-f]{1,4}:){0,2}[\da-f]{1,4}|(?:[\da-f]{1,4}:){3}:(?:[\da-f]{1,4}:){0,3}[\da-f]{1,4}|(?:[\da-f]{1,4}:){2}:(?:[\da-f]{1,4}:){0,4}[\da-f]{1,4}|(?:[\da-f]{1,4}:){6}|(?:[\da-f]{1,4}:){0,5}:|::(?:[\da-f]{1,4}:){0,5}|[\da-f]{1,4}::(?:[\da-f]{1,4}:){0,5}[\da-f]{1,4}|::(?:[\da-f]{1,4}:){0,6}[\da-f]{1,4}|(?:[\da-f]{1,4}:){1,7}:)(?:\/\d{1,3})?|(?:\/\d{1,2})?)\b/.source.replace(//g,function(){return/(?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d))/.source}),"i"),alias:"number"},path:{pattern:/(\s)\/(?:[^\/\s]+\/)*[^\/\s]*|\b[a-zA-Z]:\\(?:[^\\\s]+\\)*[^\\\s]*/,lookbehind:!0,alias:"string"},variable:/\$\{?\w+\}?/,email:{pattern:/[\w-]+@[\w-]+(?:\.[\w-]{2,3}){1,2}/,alias:"string"},"conditional-configuration":{pattern:/@\^?[\w-]+/,alias:"variable"},operator:/=/,property:/\b(?:BFD_CHECK|DNS_CHECK|FILE_CHECK|HTTP_GET|MISC_CHECK|NAME|PING_CHECK|SCRIPTS|SMTP_CHECK|SSL|SSL_GET|TCP_CHECK|UDP_CHECK|accept|advert_int|alpha|auth_pass|auth_type|authentication|bfd_cpu_affinity|bfd_instance|bfd_no_swap|bfd_priority|bfd_process_name|bfd_rlimit_rttime|bfd_rt_priority|bind_if|bind_port|bindto|ca|certificate|check_unicast_src|checker|checker_cpu_affinity|checker_log_all_failures|checker_no_swap|checker_priority|checker_rlimit_rttime|checker_rt_priority|child_wait_time|connect_ip|connect_port|connect_timeout|dbus_service_name|debug|default_interface|delay|delay_before_retry|delay_loop|digest|dont_track_primary|dynamic|dynamic_interfaces|enable_(?:dbus|script_security|sni|snmp_checker|snmp_rfc|snmp_rfcv2|snmp_rfcv3|snmp_vrrp|traps)|end|fall|fast_recovery|file|flag-[123]|fork_delay|full_command|fwmark|garp_group|garp_interval|garp_lower_prio_delay|garp_lower_prio_repeat|garp_master_delay|garp_master_refresh|garp_master_refresh_repeat|garp_master_repeat|global_defs|global_tracking|gna_interval|group|ha_suspend|hashed|helo_name|higher_prio_send_advert|hoplimit|http_protocol|hysteresis|idle_tx|include|inhibit_on_failure|init_fail|init_file|instance|interface|interfaces|interval|ip_family|ipvs_process_name|keepalived.conf|kernel_rx_buf_size|key|linkbeat_interfaces|linkbeat_use_polling|log_all_failures|log_unknown_vrids|lower_prio_no_advert|lthreshold|lvs_flush|lvs_flush_onstop|lvs_method|lvs_netlink_cmd_rcv_bufs|lvs_netlink_cmd_rcv_bufs_force|lvs_netlink_monitor_rcv_bufs|lvs_netlink_monitor_rcv_bufs_force|lvs_notify_fifo|lvs_notify_fifo_script|lvs_sched|lvs_sync_daemon|max_auto_priority|max_hops|mcast_src_ip|mh-fallback|mh-port|min_auto_priority_delay|min_rx|min_tx|misc_dynamic|misc_path|misc_timeout|multiplier|name|namespace_with_ipsets|native_ipv6|neighbor_ip|net_namespace|net_namespace_ipvs|nftables|nftables_counters|nftables_ifindex|nftables_priority|no_accept|no_checker_emails|no_email_faults|nopreempt|notification_email|notification_email_from|notify|notify_backup|notify_deleted|notify_down|notify_fault|notify_fifo|notify_fifo_script|notify_master|notify_master_rx_lower_pri|notify_priority_changes|notify_stop|notify_up|old_unicast_checksum|omega|ops|param_match|passive|password|path|persistence_engine|persistence_granularity|persistence_timeout|preempt|preempt_delay|priority|process|process_monitor_rcv_bufs|process_monitor_rcv_bufs_force|process_name|process_names|promote_secondaries|protocol|proxy_arp|proxy_arp_pvlan|quorum|quorum_down|quorum_max|quorum_up|random_seed|real_server|regex|regex_max_offset|regex_min_offset|regex_no_match|regex_options|regex_stack|reload_repeat|reload_time_file|require_reply|retry|rise|router_id|rs_init_notifies|script|script_user|sh-fallback|sh-port|shutdown_script|shutdown_script_timeout|skip_check_adv_addr|smtp_alert|smtp_alert_checker|smtp_alert_vrrp|smtp_connect_timeout|smtp_helo_name|smtp_server|snmp_socket|sorry_server|sorry_server_inhibit|sorry_server_lvs_method|source_ip|start|startup_script|startup_script_timeout|state|static_ipaddress|static_routes|static_rules|status_code|step|strict_mode|sync_group_tracking_weight|terminate_delay|timeout|track_bfd|track_file|track_group|track_interface|track_process|track_script|track_src_ip|ttl|type|umask|unicast_peer|unicast_src_ip|unicast_ttl|url|use_ipvlan|use_pid_dir|use_vmac|user|uthreshold|val[123]|version|virtual_ipaddress|virtual_ipaddress_excluded|virtual_router_id|virtual_routes|virtual_rules|virtual_server|virtual_server_group|virtualhost|vmac_xmit_base|vrrp|vrrp_(?:check_unicast_src|cpu_affinity|garp_interval|garp_lower_prio_delay|garp_lower_prio_repeat|garp_master_delay|garp_master_refresh|garp_master_refresh_repeat|garp_master_repeat|gna_interval|higher_prio_send_advert|instance|ipsets|iptables|lower_prio_no_advert|mcast_group4|mcast_group6|min_garp|netlink_cmd_rcv_bufs|netlink_cmd_rcv_bufs_force|netlink_monitor_rcv_bufs|netlink_monitor_rcv_bufs_force|no_swap|notify_fifo|notify_fifo_script|notify_priority_changes|priority|process_name|rlimit_rttime|rt_priority|rx_bufs_multiplier|rx_bufs_policy|script|skip_check_adv_addr|startup_delay|strict|sync_group|track_process|version)|warmup|weight)\b/,constant:/\b(?:A|AAAA|AH|BACKUP|CNAME|DR|MASTER|MX|NAT|NS|PASS|SCTP|SOA|TCP|TUN|TXT|UDP|dh|fo|lblc|lblcr|lc|mh|nq|ovf|rr|sed|sh|wlc|wrr)\b/,number:{pattern:/(^|[^\w.-])-?\d+(?:\.\d+)?/,lookbehind:!0},boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\{\}]/}}return hf}var mf,d1;function Bne(){if(d1)return mf;d1=1,mf=e,e.displayName="keyman",e.aliases=[];function e(t){t.languages.keyman={comment:{pattern:/\bc .*/i,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0},"virtual-key":{pattern:/\[\s*(?:(?:ALT|CAPS|CTRL|LALT|LCTRL|NCAPS|RALT|RCTRL|SHIFT)\s+)*(?:[TKU]_[\w?]+|[A-E]\d\d?|"[^"\r\n]*"|'[^'\r\n]*')\s*\]/i,greedy:!0,alias:"function"},"header-keyword":{pattern:/&\w+/,alias:"bold"},"header-statement":{pattern:/\b(?:bitmap|bitmaps|caps always off|caps on only|copyright|hotkey|language|layout|message|name|shift frees caps|version)\b/i,alias:"bold"},"rule-keyword":{pattern:/\b(?:any|baselayout|beep|call|context|deadkey|dk|if|index|layer|notany|nul|outs|platform|reset|return|save|set|store|use)\b/i,alias:"keyword"},"structural-keyword":{pattern:/\b(?:ansi|begin|group|match|nomatch|unicode|using keys)\b/i,alias:"keyword"},"compile-target":{pattern:/\$(?:keyman|keymanonly|keymanweb|kmfl|weaver):/i,alias:"property"},number:/\b(?:U\+[\dA-F]+|d\d+|x[\da-f]+|\d+)\b/i,operator:/[+>\\$]|\.\./,punctuation:/[()=,]/}}return mf}var bf,p1;function Une(){if(p1)return bf;p1=1,bf=e,e.displayName="kotlin",e.aliases=["kt","kts"];function e(t){(function(r){r.languages.kotlin=r.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete r.languages.kotlin["class-name"];var n={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:r.languages.kotlin}};r.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:n},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:n},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete r.languages.kotlin.string,r.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),r.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),r.languages.kt=r.languages.kotlin,r.languages.kts=r.languages.kotlin})(t)}return bf}var yf,f1;function Gne(){if(f1)return yf;f1=1,yf=e,e.displayName="kumir",e.aliases=["kum"];function e(t){(function(r){var n=/\s\x00-\x1f\x22-\x2f\x3a-\x3f\x5b-\x5e\x60\x7b-\x7e/.source;function a(i,o){return RegExp(i.replace(//g,n),o)}r.languages.kumir={comment:{pattern:/\|.*/},prolog:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^\n\r"]*"|'[^\n\r']*'/,greedy:!0},boolean:{pattern:a(/(^|[])(?:да|нет)(?=[]|$)/.source),lookbehind:!0},"operator-word":{pattern:a(/(^|[])(?:и|или|не)(?=[]|$)/.source),lookbehind:!0,alias:"keyword"},"system-variable":{pattern:a(/(^|[])знач(?=[]|$)/.source),lookbehind:!0,alias:"keyword"},type:[{pattern:a(/(^|[])(?:вещ|лит|лог|сим|цел)(?:\x20*таб)?(?=[]|$)/.source),lookbehind:!0,alias:"builtin"},{pattern:a(/(^|[])(?:компл|сканкод|файл|цвет)(?=[]|$)/.source),lookbehind:!0,alias:"important"}],keyword:{pattern:a(/(^|[])(?:алг|арг(?:\x20*рез)?|ввод|ВКЛЮЧИТЬ|вс[её]|выбор|вывод|выход|дано|для|до|дс|если|иначе|исп|использовать|кон(?:(?:\x20+|_)исп)?|кц(?:(?:\x20+|_)при)?|надо|нач|нс|нц|от|пауза|пока|при|раза?|рез|стоп|таб|то|утв|шаг)(?=[]|$)/.source),lookbehind:!0},name:{pattern:a(/(^|[])[^\d][^]*(?:\x20+[^]+)*(?=[]|$)/.source),lookbehind:!0},number:{pattern:a(/(^|[])(?:\B\$[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?=[]|$)/.source,"i"),lookbehind:!0},punctuation:/:=|[(),:;\[\]]/,"operator-char":{pattern:/\*\*?|<[=>]?|>=?|[-+/=]/,alias:"operator"}},r.languages.kum=r.languages.kumir})(t)}return yf}var vf,g1;function zne(){if(g1)return vf;g1=1,vf=e,e.displayName="kusto",e.aliases=[];function e(t){t.languages.kusto={comment:{pattern:/\/\/.*/,greedy:!0},string:{pattern:/```[\s\S]*?```|[hH]?(?:"(?:[^\r\n\\"]|\\.)*"|'(?:[^\r\n\\']|\\.)*'|@(?:"[^\r\n"]*"|'[^\r\n']*'))/,greedy:!0},verb:{pattern:/(\|\s*)[a-z][\w-]*/i,lookbehind:!0,alias:"keyword"},command:{pattern:/\.[a-z][a-z\d-]*\b/,alias:"keyword"},"class-name":/\b(?:bool|datetime|decimal|dynamic|guid|int|long|real|string|timespan)\b/,keyword:/\b(?:access|alias|and|anti|as|asc|auto|between|by|(?:contains|(?:ends|starts)with|has(?:perfix|suffix)?)(?:_cs)?|database|declare|desc|external|from|fullouter|has_all|in|ingestion|inline|inner|innerunique|into|(?:left|right)(?:anti(?:semi)?|inner|outer|semi)?|let|like|local|not|of|on|or|pattern|print|query_parameters|range|restrict|schema|set|step|table|tables|to|view|where|with|matches\s+regex|nulls\s+(?:first|last))(?![\w-])/,boolean:/\b(?:false|null|true)\b/,function:/\b[a-z_]\w*(?=\s*\()/,datetime:[{pattern:/\b(?:(?:Fri|Friday|Mon|Monday|Sat|Saturday|Sun|Sunday|Thu|Thursday|Tue|Tuesday|Wed|Wednesday)\s*,\s*)?\d{1,2}(?:\s+|-)(?:Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)(?:\s+|-)\d{2}\s+\d{2}:\d{2}(?::\d{2})?(?:\s*(?:\b(?:[A-Z]|(?:[ECMT][DS]|GM|U)T)|[+-]\d{4}))?\b/,alias:"number"},{pattern:/[+-]?\b(?:\d{4}-\d{2}-\d{2}(?:[ T]\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)?|\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)Z?/,alias:"number"}],number:/\b(?:0x[0-9A-Fa-f]+|\d+(?:\.\d+)?(?:[Ee][+-]?\d+)?)(?:(?:min|sec|[mnµ]s|[dhms]|microsecond|tick)\b)?|[+-]?\binf\b/,operator:/=>|[!=]~|[!=<>]=?|[-+*/%|]|\.\./,punctuation:/[()\[\]{},;.:]/}}return vf}var Sf,h1;function qne(){if(h1)return Sf;h1=1,Sf=e,e.displayName="latex",e.aliases=["tex","context"];function e(t){(function(r){var n=/\\(?:[^a-z()[\]]|[a-z*]+)/i,a={"equation-command":{pattern:n,alias:"regex"}};r.languages.latex={comment:/%.*/,cdata:{pattern:/(\\begin\{((?:lstlisting|verbatim)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0},equation:[{pattern:/\$\$(?:\\[\s\S]|[^\\$])+\$\$|\$(?:\\[\s\S]|[^\\$])+\$|\\\([\s\S]*?\\\)|\\\[[\s\S]*?\\\]/,inside:a,alias:"string"},{pattern:/(\\begin\{((?:align|eqnarray|equation|gather|math|multline)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0,inside:a,alias:"string"}],keyword:{pattern:/(\\(?:begin|cite|documentclass|end|label|ref|usepackage)(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0},url:{pattern:/(\\url\{)[^}]+(?=\})/,lookbehind:!0},headline:{pattern:/(\\(?:chapter|frametitle|paragraph|part|section|subparagraph|subsection|subsubparagraph|subsubsection|subsubsubparagraph)\*?(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0,alias:"class-name"},function:{pattern:n,alias:"selector"},punctuation:/[[\]{}&]/},r.languages.tex=r.languages.latex,r.languages.context=r.languages.latex})(t)}return Sf}var Ef,m1;function ju(){if(m1)return Ef;m1=1;var e=er();Ef=t,t.displayName="php",t.aliases=[];function t(r){r.register(e),function(n){var a=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,i=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],o=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,s=/|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,l=/[{}\[\](),:;]/;n.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:a,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|new|or|parent|print|private|protected|public|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s+)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:i,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:o,operator:s,punctuation:l};var c={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:n.languages.php},d=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:c}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:c}}];n.languages.insertBefore("php","variable",{string:d,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:a,string:d,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:i,number:o,operator:s,punctuation:l}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),n.hooks.add("before-tokenize",function(p){if(/<\?/.test(p.code)){var g=/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g;n.languages["markup-templating"].buildPlaceholders(p,"php",g)}}),n.hooks.add("after-tokenize",function(p){n.languages["markup-templating"].tokenizePlaceholders(p,"php")})}(r)}return Ef}var xf,b1;function Hne(){if(b1)return xf;b1=1;var e=er(),t=ju();xf=r,r.displayName="latte",r.aliases=[];function r(n){n.register(e),n.register(t),function(a){a.languages.latte={comment:/^\{\*[\s\S]*/,"latte-tag":{pattern:/(^\{(?:\/(?=[a-z]))?)(?:[=_]|[a-z]\w*\b(?!\())/i,lookbehind:!0,alias:"important"},delimiter:{pattern:/^\{\/?|\}$/,alias:"punctuation"},php:{pattern:/\S(?:[\s\S]*\S)?/,alias:"language-php",inside:a.languages.php}};var i=a.languages.extend("markup",{});a.languages.insertBefore("inside","attr-value",{"n-attr":{pattern:/n:[\w-]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+))?/,inside:{"attr-name":{pattern:/^[^\s=]+/,alias:"important"},"attr-value":{pattern:/=[\s\S]+/,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}],php:{pattern:/\S(?:[\s\S]*\S)?/,inside:a.languages.php}}}}}},i.tag),a.hooks.add("before-tokenize",function(o){if(o.language==="latte"){var s=/\{\*[\s\S]*?\*\}|\{[^'"\s{}*](?:[^"'/{}]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|\/\*(?:[^*]|\*(?!\/))*\*\/)*\}/g;a.languages["markup-templating"].buildPlaceholders(o,"latte",s),o.grammar=i}}),a.hooks.add("after-tokenize",function(o){a.languages["markup-templating"].tokenizePlaceholders(o,"latte")})}(n)}return xf}var wf,y1;function Wne(){if(y1)return wf;y1=1,wf=e,e.displayName="less",e.aliases=[];function e(t){t.languages.less=t.languages.extend("css",{comment:[/\/\*[\s\S]*?\*\//,{pattern:/(^|[^\\])\/\/.*/,lookbehind:!0}],atrule:{pattern:/@[\w-](?:\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{punctuation:/[:()]/}},selector:{pattern:/(?:@\{[\w-]+\}|[^{};\s@])(?:@\{[\w-]+\}|\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};@\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{variable:/@+[\w-]+/}},property:/(?:@\{[\w-]+\}|[\w-])+(?:\+_?)?(?=\s*:)/,operator:/[+\-*\/]/}),t.languages.insertBefore("less","property",{variable:[{pattern:/@[\w-]+\s*:/,inside:{punctuation:/:/}},/@@?[\w-]+/],"mixin-usage":{pattern:/([{;]\s*)[.#](?!\d)[\w-].*?(?=[(;])/,lookbehind:!0,alias:"function"}})}return wf}var _f,v1;function Ky(){if(v1)return _f;v1=1,_f=e,e.displayName="scheme",e.aliases=[];function e(t){(function(r){r.languages.scheme={comment:/;.*|#;\s*(?:\((?:[^()]|\([^()]*\))*\)|\[(?:[^\[\]]|\[[^\[\]]*\])*\])|#\|(?:[^#|]|#(?!\|)|\|(?!#)|#\|(?:[^#|]|#(?!\|)|\|(?!#))*\|#)*\|#/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},symbol:{pattern:/'[^()\[\]#'\s]+/,greedy:!0},char:{pattern:/#\\(?:[ux][a-fA-F\d]+\b|[-a-zA-Z]+\b|[\uD800-\uDBFF][\uDC00-\uDFFF]|\S)/,greedy:!0},"lambda-parameter":[{pattern:/((?:^|[^'`#])[(\[]lambda\s+)(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)/,lookbehind:!0},{pattern:/((?:^|[^'`#])[(\[]lambda\s+[(\[])[^()\[\]']+/,lookbehind:!0}],keyword:{pattern:/((?:^|[^'`#])[(\[])(?:begin|case(?:-lambda)?|cond(?:-expand)?|define(?:-library|-macro|-record-type|-syntax|-values)?|defmacro|delay(?:-force)?|do|else|except|export|guard|if|import|include(?:-ci|-library-declarations)?|lambda|let(?:rec)?(?:-syntax|-values|\*)?|let\*-values|only|parameterize|prefix|(?:quasi-?)?quote|rename|set!|syntax-(?:case|rules)|unless|unquote(?:-splicing)?|when)(?=[()\[\]\s]|$)/,lookbehind:!0},builtin:{pattern:/((?:^|[^'`#])[(\[])(?:abs|and|append|apply|assoc|ass[qv]|binary-port\?|boolean=?\?|bytevector(?:-append|-copy|-copy!|-length|-u8-ref|-u8-set!|\?)?|caar|cadr|call-with-(?:current-continuation|port|values)|call\/cc|car|cdar|cddr|cdr|ceiling|char(?:->integer|-ready\?|\?|<\?|<=\?|=\?|>\?|>=\?)|close-(?:input-port|output-port|port)|complex\?|cons|current-(?:error|input|output)-port|denominator|dynamic-wind|eof-object\??|eq\?|equal\?|eqv\?|error|error-object(?:-irritants|-message|\?)|eval|even\?|exact(?:-integer-sqrt|-integer\?|\?)?|expt|features|file-error\?|floor(?:-quotient|-remainder|\/)?|flush-output-port|for-each|gcd|get-output-(?:bytevector|string)|inexact\??|input-port(?:-open\?|\?)|integer(?:->char|\?)|lcm|length|list(?:->string|->vector|-copy|-ref|-set!|-tail|\?)?|make-(?:bytevector|list|parameter|string|vector)|map|max|member|memq|memv|min|modulo|negative\?|newline|not|null\?|number(?:->string|\?)|numerator|odd\?|open-(?:input|output)-(?:bytevector|string)|or|output-port(?:-open\?|\?)|pair\?|peek-char|peek-u8|port\?|positive\?|procedure\?|quotient|raise|raise-continuable|rational\?|rationalize|read-(?:bytevector|bytevector!|char|error\?|line|string|u8)|real\?|remainder|reverse|round|set-c[ad]r!|square|string(?:->list|->number|->symbol|->utf8|->vector|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?|<\?|<=\?|=\?|>\?|>=\?)?|substring|symbol(?:->string|\?|=\?)|syntax-error|textual-port\?|truncate(?:-quotient|-remainder|\/)?|u8-ready\?|utf8->string|values|vector(?:->list|->string|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?)?|with-exception-handler|write-(?:bytevector|char|string|u8)|zero\?)(?=[()\[\]\s]|$)/,lookbehind:!0},operator:{pattern:/((?:^|[^'`#])[(\[])(?:[-+*%/]|[<>]=?|=>?)(?=[()\[\]\s]|$)/,lookbehind:!0},number:{pattern:RegExp(n({"":/\d+(?:\/\d+)|(?:\d+(?:\.\d*)?|\.\d+)(?:[esfdl][+-]?\d+)?/.source,"":/[+-]?|[+-](?:inf|nan)\.0/.source,"":/[+-](?:|(?:inf|nan)\.0)?i/.source,"":/(?:@|)?|/.source,"":/(?:#d(?:#[ei])?|#[ei](?:#d)?)?/.source,"":/[0-9a-f]+(?:\/[0-9a-f]+)?/.source,"":/[+-]?|[+-](?:inf|nan)\.0/.source,"":/[+-](?:|(?:inf|nan)\.0)?i/.source,"":/(?:@|)?|/.source,"":/#[box](?:#[ei])?|(?:#[ei])?#[box]/.source,"":/(^|[()\[\]\s])(?:|)(?=[()\[\]\s]|$)/.source}),"i"),lookbehind:!0},boolean:{pattern:/(^|[()\[\]\s])#(?:[ft]|false|true)(?=[()\[\]\s]|$)/,lookbehind:!0},function:{pattern:/((?:^|[^'`#])[(\[])(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)(?=[()\[\]\s]|$)/,lookbehind:!0},identifier:{pattern:/(^|[()\[\]\s])\|(?:[^\\|]|\\.)*\|(?=[()\[\]\s]|$)/,lookbehind:!0,greedy:!0},punctuation:/[()\[\]']/};function n(a){for(var i in a)a[i]=a[i].replace(/<[\w\s]+>/g,function(o){return"(?:"+a[o].trim()+")"});return a[i]}})(t)}return _f}var Tf,S1;function Vne(){if(S1)return Tf;S1=1;var e=Ky();Tf=t,t.displayName="lilypond",t.aliases=[];function t(r){r.register(e),function(n){for(var a=/\((?:[^();"#\\]|\\[\s\S]|;.*(?!.)|"(?:[^"\\]|\\.)*"|#(?:\{(?:(?!#\})[\s\S])*#\}|[^{])|)*\)/.source,i=5,o=0;o/g,function(){return a});a=a.replace(//g,/[^\s\S]/.source);var s=n.languages.lilypond={comment:/%(?:(?!\{).*|\{[\s\S]*?%\})/,"embedded-scheme":{pattern:RegExp(/(^|[=\s])#(?:"(?:[^"\\]|\\.)*"|[^\s()"]*(?:[^\s()]|))/.source.replace(//g,function(){return a}),"m"),lookbehind:!0,greedy:!0,inside:{scheme:{pattern:/^(#)[\s\S]+$/,lookbehind:!0,alias:"language-scheme",inside:{"embedded-lilypond":{pattern:/#\{[\s\S]*?#\}/,greedy:!0,inside:{punctuation:/^#\{|#\}$/,lilypond:{pattern:/[\s\S]+/,alias:"language-lilypond",inside:null}}},rest:n.languages.scheme}},punctuation:/#/}},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":{pattern:/(\\new\s+)[\w-]+/,lookbehind:!0},keyword:{pattern:/\\[a-z][-\w]*/i,inside:{punctuation:/^\\/}},operator:/[=|]|<<|>>/,punctuation:{pattern:/(^|[a-z\d])(?:'+|,+|[_^]?-[_^]?(?:[-+^!>._]|(?=\d))|[_^]\.?|[.!])|[{}()[\]<>^~]|\\[()[\]<>\\!]|--|__/,lookbehind:!0},number:/\b\d+(?:\/\d+)?\b/};s["embedded-scheme"].inside.scheme.inside["embedded-lilypond"].inside.lilypond.inside=s,n.languages.ly=s}(r)}return Tf}var Af,E1;function Yne(){if(E1)return Af;E1=1;var e=er();Af=t,t.displayName="liquid",t.aliases=[];function t(r){r.register(e),r.languages.liquid={comment:{pattern:/(^\{%\s*comment\s*%\})[\s\S]+(?=\{%\s*endcomment\s*%\}$)/,lookbehind:!0},delimiter:{pattern:/^\{(?:\{\{|[%\{])-?|-?(?:\}\}|[%\}])\}$/,alias:"punctuation"},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},keyword:/\b(?:as|assign|break|(?:end)?(?:capture|case|comment|for|form|if|paginate|raw|style|tablerow|unless)|continue|cycle|decrement|echo|else|elsif|in|include|increment|limit|liquid|offset|range|render|reversed|section|when|with)\b/,object:/\b(?:address|all_country_option_tags|article|block|blog|cart|checkout|collection|color|country|country_option_tags|currency|current_page|current_tags|customer|customer_address|date|discount_allocation|discount_application|external_video|filter|filter_value|font|forloop|fulfillment|generic_file|gift_card|group|handle|image|line_item|link|linklist|localization|location|measurement|media|metafield|model|model_source|order|page|page_description|page_image|page_title|part|policy|product|product_option|recommendations|request|robots|routes|rule|script|search|selling_plan|selling_plan_allocation|selling_plan_group|shipping_method|shop|shop_locale|sitemap|store_availability|tax_line|template|theme|transaction|unit_price_measurement|user_agent|variant|video|video_source)\b/,function:[{pattern:/(\|\s*)\w+/,lookbehind:!0,alias:"filter"},{pattern:/(\.\s*)(?:first|last|size)/,lookbehind:!0}],boolean:/\b(?:false|nil|true)\b/,range:{pattern:/\.\./,alias:"operator"},number:/\b\d+(?:\.\d+)?\b/,operator:/[!=]=|<>|[<>]=?|[|?:=-]|\b(?:and|contains(?=\s)|or)\b/,punctuation:/[.,\[\]()]/,empty:{pattern:/\bempty\b/,alias:"keyword"}},r.hooks.add("before-tokenize",function(n){var a=/\{%\s*comment\s*%\}[\s\S]*?\{%\s*endcomment\s*%\}|\{(?:%[\s\S]*?%|\{\{[\s\S]*?\}\}|\{[\s\S]*?\})\}/g,i=!1;r.languages["markup-templating"].buildPlaceholders(n,"liquid",a,function(o){var s=/^\{%-?\s*(\w+)/.exec(o);if(s){var l=s[1];if(l==="raw"&&!i)return i=!0,!0;if(l==="endraw")return i=!1,!0}return!i})}),r.hooks.add("after-tokenize",function(n){r.languages["markup-templating"].tokenizePlaceholders(n,"liquid")})}return Af}var Of,x1;function Kne(){if(x1)return Of;x1=1,Of=e,e.displayName="lisp",e.aliases=[];function e(t){(function(r){function n(v){return RegExp(/(\()/.source+"(?:"+v+")"+/(?=[\s\)])/.source)}function a(v){return RegExp(/([\s([])/.source+"(?:"+v+")"+/(?=[\s)])/.source)}var i=/(?!\d)[-+*/~!@$%^=<>{}\w]+/.source,o="&"+i,s="(\\()",l="(?=\\))",c="(?=\\s)",d=/(?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\))*\))*\))*/.source,p={heading:{pattern:/;;;.*/,alias:["comment","title"]},comment:/;.*/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0,inside:{argument:/[-A-Z]+(?=[.,\s])/,symbol:RegExp("`"+i+"'")}},"quoted-symbol":{pattern:RegExp("#?'"+i),alias:["variable","symbol"]},"lisp-property":{pattern:RegExp(":"+i),alias:"property"},splice:{pattern:RegExp(",@?"+i),alias:["symbol","variable"]},keyword:[{pattern:RegExp(s+"(?:and|(?:cl-)?letf|cl-loop|cond|cons|error|if|(?:lexical-)?let\\*?|message|not|null|or|provide|require|setq|unless|use-package|when|while)"+c),lookbehind:!0},{pattern:RegExp(s+"(?:append|by|collect|concat|do|finally|for|in|return)"+c),lookbehind:!0}],declare:{pattern:n(/declare/.source),lookbehind:!0,alias:"keyword"},interactive:{pattern:n(/interactive/.source),lookbehind:!0,alias:"keyword"},boolean:{pattern:a(/nil|t/.source),lookbehind:!0},number:{pattern:a(/[-+]?\d+(?:\.\d*)?/.source),lookbehind:!0},defvar:{pattern:RegExp(s+"def(?:const|custom|group|var)\\s+"+i),lookbehind:!0,inside:{keyword:/^def[a-z]+/,variable:RegExp(i)}},defun:{pattern:RegExp(s+/(?:cl-)?(?:defmacro|defun\*?)\s+/.source+i+/\s+\(/.source+d+/\)/.source),lookbehind:!0,greedy:!0,inside:{keyword:/^(?:cl-)?def\S+/,arguments:null,function:{pattern:RegExp("(^\\s)"+i),lookbehind:!0},punctuation:/[()]/}},lambda:{pattern:RegExp(s+"lambda\\s+\\(\\s*(?:&?"+i+"(?:\\s+&?"+i+")*\\s*)?\\)"),lookbehind:!0,greedy:!0,inside:{keyword:/^lambda/,arguments:null,punctuation:/[()]/}},car:{pattern:RegExp(s+i),lookbehind:!0},punctuation:[/(?:['`,]?\(|[)\[\]])/,{pattern:/(\s)\.(?=\s)/,lookbehind:!0}]},g={"lisp-marker":RegExp(o),varform:{pattern:RegExp(/\(/.source+i+/\s+(?=\S)/.source+d+/\)/.source),inside:p},argument:{pattern:RegExp(/(^|[\s(])/.source+i),lookbehind:!0,alias:"variable"},rest:p},m="\\S+(?:\\s+\\S+)*",b={pattern:RegExp(s+d+l),lookbehind:!0,inside:{"rest-vars":{pattern:RegExp("&(?:body|rest)\\s+"+m),inside:g},"other-marker-vars":{pattern:RegExp("&(?:aux|optional)\\s+"+m),inside:g},keys:{pattern:RegExp("&key\\s+"+m+"(?:\\s+&allow-other-keys)?"),inside:g},argument:{pattern:RegExp(i),alias:"variable"},punctuation:/[()]/}};p.lambda.inside.arguments=b,p.defun.inside.arguments=r.util.clone(b),p.defun.inside.arguments.inside.sublist=b,r.languages.lisp=p,r.languages.elisp=p,r.languages.emacs=p,r.languages["emacs-lisp"]=p})(t)}return Of}var kf,w1;function Xne(){if(w1)return kf;w1=1,kf=e,e.displayName="livescript",e.aliases=[];function e(t){t.languages.livescript={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\])#.*/,lookbehind:!0}],"interpolated-string":{pattern:/(^|[^"])("""|")(?:\\[\s\S]|(?!\2)[^\\])*\2(?!")/,lookbehind:!0,greedy:!0,inside:{variable:{pattern:/(^|[^\\])#[a-z_](?:-?[a-z]|[\d_])*/m,lookbehind:!0},interpolation:{pattern:/(^|[^\\])#\{[^}]+\}/m,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^#\{|\}$/,alias:"variable"}}},string:/[\s\S]+/}},string:[{pattern:/('''|')(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},{pattern:/<\[[\s\S]*?\]>/,greedy:!0},/\\[^\s,;\])}]+/],regex:[{pattern:/\/\/(?:\[[^\r\n\]]*\]|\\.|(?!\/\/)[^\\\[])+\/\/[gimyu]{0,5}/,greedy:!0,inside:{comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0}}},{pattern:/\/(?:\[[^\r\n\]]*\]|\\.|[^/\\\r\n\[])+\/[gimyu]{0,5}/,greedy:!0}],keyword:{pattern:/(^|(?!-).)\b(?:break|case|catch|class|const|continue|default|do|else|extends|fallthrough|finally|for(?: ever)?|function|if|implements|it|let|loop|new|null|otherwise|own|return|super|switch|that|then|this|throw|try|unless|until|var|void|when|while|yield)(?!-)\b/m,lookbehind:!0},"keyword-operator":{pattern:/(^|[^-])\b(?:(?:delete|require|typeof)!|(?:and|by|delete|export|from|import(?: all)?|in|instanceof|is(?: not|nt)?|not|of|or|til|to|typeof|with|xor)(?!-)\b)/m,lookbehind:!0,alias:"operator"},boolean:{pattern:/(^|[^-])\b(?:false|no|off|on|true|yes)(?!-)\b/m,lookbehind:!0},argument:{pattern:/(^|(?!\.&\.)[^&])&(?!&)\d*/m,lookbehind:!0,alias:"variable"},number:/\b(?:\d+~[\da-z]+|\d[\d_]*(?:\.\d[\d_]*)?(?:[a-z]\w*)?)/i,identifier:/[a-z_](?:-?[a-z]|[\d_])*/i,operator:[{pattern:/( )\.(?= )/,lookbehind:!0},/\.(?:[=~]|\.\.?)|\.(?:[&|^]|<<|>>>?)\.|:(?:=|:=?)|&&|\|[|>]|<(?:<[>=?]?|-(?:->?|>)?|\+\+?|@@?|%%?|\*\*?|!(?:~?=|--?>|~?~>)?|~(?:~?>|=)?|==?|\^\^?|[\/?]/],punctuation:/[(){}\[\]|.,:;`]/},t.languages.livescript["interpolated-string"].inside.interpolation.inside.rest=t.languages.livescript}return kf}var Rf,_1;function Zne(){if(_1)return Rf;_1=1,Rf=e,e.displayName="llvm",e.aliases=[];function e(t){(function(r){r.languages.llvm={comment:/;.*/,string:{pattern:/"[^"]*"/,greedy:!0},boolean:/\b(?:false|true)\b/,variable:/[%@!#](?:(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+|\d+)/i,label:/(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+:/i,type:{pattern:/\b(?:double|float|fp128|half|i[1-9]\d*|label|metadata|ppc_fp128|token|void|x86_fp80|x86_mmx)\b/,alias:"class-name"},keyword:/\b[a-z_][a-z_0-9]*\b/,number:/[+-]?\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-Fa-f]+\b|\b0xK[\dA-Fa-f]{20}\b|\b0x[ML][\dA-Fa-f]{32}\b|\b0xH[\dA-Fa-f]{4}\b/,punctuation:/[{}[\];(),.!*=<>]/}})(t)}return Rf}var If,T1;function Jne(){if(T1)return If;T1=1,If=e,e.displayName="log",e.aliases=[];function e(t){t.languages.log={string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?![st] | \w)(?:[^'\\\r\n]|\\.)*'/,greedy:!0},exception:{pattern:/(^|[^\w.])[a-z][\w.]*(?:Error|Exception):.*(?:(?:\r\n?|\n)[ \t]*(?:at[ \t].+|\.{3}.*|Caused by:.*))+(?:(?:\r\n?|\n)[ \t]*\.\.\. .*)?/,lookbehind:!0,greedy:!0,alias:["javastacktrace","language-javastacktrace"],inside:t.languages.javastacktrace||{keyword:/\bat\b/,function:/[a-z_][\w$]*(?=\()/,punctuation:/[.:()]/}},level:[{pattern:/\b(?:ALERT|CRIT|CRITICAL|EMERG|EMERGENCY|ERR|ERROR|FAILURE|FATAL|SEVERE)\b/,alias:["error","important"]},{pattern:/\b(?:WARN|WARNING|WRN)\b/,alias:["warning","important"]},{pattern:/\b(?:DISPLAY|INF|INFO|NOTICE|STATUS)\b/,alias:["info","keyword"]},{pattern:/\b(?:DBG|DEBUG|FINE)\b/,alias:["debug","keyword"]},{pattern:/\b(?:FINER|FINEST|TRACE|TRC|VERBOSE|VRB)\b/,alias:["trace","comment"]}],property:{pattern:/((?:^|[\]|])[ \t]*)[a-z_](?:[\w-]|\b\/\b)*(?:[. ]\(?\w(?:[\w-]|\b\/\b)*\)?)*:(?=\s)/im,lookbehind:!0},separator:{pattern:/(^|[^-+])-{3,}|={3,}|\*{3,}|- - /m,lookbehind:!0,alias:"comment"},url:/\b(?:file|ftp|https?):\/\/[^\s|,;'"]*[^\s|,;'">.]/,email:{pattern:/(^|\s)[-\w+.]+@[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)+(?=\s)/,lookbehind:!0,alias:"url"},"ip-address":{pattern:/\b(?:\d{1,3}(?:\.\d{1,3}){3})\b/,alias:"constant"},"mac-address":{pattern:/\b[a-f0-9]{2}(?::[a-f0-9]{2}){5}\b/i,alias:"constant"},domain:{pattern:/(^|\s)[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)*\.[a-z][a-z0-9-]+(?=\s)/,lookbehind:!0,alias:"constant"},uuid:{pattern:/\b[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\b/i,alias:"constant"},hash:{pattern:/\b(?:[a-f0-9]{32}){1,2}\b/i,alias:"constant"},"file-path":{pattern:/\b[a-z]:[\\/][^\s|,;:(){}\[\]"']+|(^|[\s:\[\](>|])\.{0,2}\/\w[^\s|,;:(){}\[\]"']*/i,lookbehind:!0,greedy:!0,alias:"string"},date:{pattern:RegExp(/\b\d{4}[-/]\d{2}[-/]\d{2}(?:T(?=\d{1,2}:)|(?=\s\d{1,2}:))/.source+"|"+/\b\d{1,4}[-/ ](?:\d{1,2}|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)[-/ ]\d{2,4}T?\b/.source+"|"+/\b(?:(?:Fri|Mon|Sat|Sun|Thu|Tue|Wed)(?:\s{1,2}(?:Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep))?|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)\s{1,2}\d{1,2}\b/.source,"i"),alias:"number"},time:{pattern:/\b\d{1,2}:\d{1,2}:\d{1,2}(?:[.,:]\d+)?(?:\s?[+-]\d{2}:?\d{2}|Z)?\b/,alias:"number"},boolean:/\b(?:false|null|true)\b/i,number:{pattern:/(^|[^.\w])(?:0x[a-f0-9]+|0o[0-7]+|0b[01]+|v?\d[\da-f]*(?:\.\d+)*(?:e[+-]?\d+)?[a-z]{0,3}\b)\b(?!\.\w)/i,lookbehind:!0},operator:/[;:?<=>~/@!$%&+\-|^(){}*#]/,punctuation:/[\[\].,]/}}return If}var Cf,A1;function Qne(){if(A1)return Cf;A1=1,Cf=e,e.displayName="lolcode",e.aliases=[];function e(t){t.languages.lolcode={comment:[/\bOBTW\s[\s\S]*?\sTLDR\b/,/\bBTW.+/],string:{pattern:/"(?::.|[^":])*"/,inside:{variable:/:\{[^}]+\}/,symbol:[/:\([a-f\d]+\)/i,/:\[[^\]]+\]/,/:[)>o":]/]},greedy:!0},number:/(?:\B-)?(?:\b\d+(?:\.\d*)?|\B\.\d+)/,symbol:{pattern:/(^|\s)(?:A )?(?:BUKKIT|NOOB|NUMBAR|NUMBR|TROOF|YARN)(?=\s|,|$)/,lookbehind:!0,inside:{keyword:/A(?=\s)/}},label:{pattern:/((?:^|\s)(?:IM IN YR|IM OUTTA YR) )[a-zA-Z]\w*/,lookbehind:!0,alias:"string"},function:{pattern:/((?:^|\s)(?:HOW IZ I|I IZ|IZ) )[a-zA-Z]\w*/,lookbehind:!0},keyword:[{pattern:/(^|\s)(?:AN|FOUND YR|GIMMEH|GTFO|HAI|HAS A|HOW IZ I|I HAS A|I IZ|IF U SAY SO|IM IN YR|IM OUTTA YR|IS NOW(?: A)?|ITZ(?: A)?|IZ|KTHX|KTHXBYE|LIEK(?: A)?|MAEK|MEBBE|MKAY|NERFIN|NO WAI|O HAI IM|O RLY\?|OIC|OMG|OMGWTF|R|SMOOSH|SRS|TIL|UPPIN|VISIBLE|WILE|WTF\?|YA RLY|YR)(?=\s|,|$)/,lookbehind:!0},/'Z(?=\s|,|$)/],boolean:{pattern:/(^|\s)(?:FAIL|WIN)(?=\s|,|$)/,lookbehind:!0},variable:{pattern:/(^|\s)IT(?=\s|,|$)/,lookbehind:!0},operator:{pattern:/(^|\s)(?:NOT|BOTH SAEM|DIFFRINT|(?:ALL|ANY|BIGGR|BOTH|DIFF|EITHER|MOD|PRODUKT|QUOSHUNT|SMALLR|SUM|WON) OF)(?=\s|,|$)/,lookbehind:!0},punctuation:/\.{3}|…|,|!/}}return Cf}var Nf,O1;function eae(){if(O1)return Nf;O1=1,Nf=e,e.displayName="magma",e.aliases=[];function e(t){t.languages.magma={output:{pattern:/^(>.*(?:\r(?:\n|(?!\n))|\n))(?!>)(?:.+|(?:\r(?:\n|(?!\n))|\n)(?!>).*)(?:(?:\r(?:\n|(?!\n))|\n)(?!>).*)*/m,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/(^|[^\\"])"(?:[^\r\n\\"]|\\.)*"/,lookbehind:!0,greedy:!0},keyword:/\b(?:_|adj|and|assert|assert2|assert3|assigned|break|by|case|cat|catch|clear|cmpeq|cmpne|continue|declare|default|delete|diff|div|do|elif|else|end|eq|error|eval|exists|exit|for|forall|forward|fprintf|freeze|function|ge|gt|if|iload|import|in|intrinsic|is|join|le|load|local|lt|meet|mod|ne|not|notadj|notin|notsubset|or|print|printf|procedure|quit|random|read|readi|repeat|require|requirege|requirerange|restore|return|save|sdiff|select|subset|then|time|to|try|until|vprint|vprintf|vtime|when|where|while|xor)\b/,boolean:/\b(?:false|true)\b/,generator:{pattern:/\b[a-z_]\w*(?=\s*<)/i,alias:"class-name"},function:/\b[a-z_]\w*(?=\s*\()/i,number:{pattern:/(^|[^\w.]|\.\.)(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?(?:_[a-z]?)?(?=$|[^\w.]|\.\.)/,lookbehind:!0},operator:/->|[-+*/^~!|#=]|:=|\.\./,punctuation:/[()[\]{}<>,;.:]/}}return Nf}var Lf,k1;function tae(){if(k1)return Lf;k1=1,Lf=e,e.displayName="makefile",e.aliases=[];function e(t){t.languages.makefile={comment:{pattern:/(^|[^\\])#(?:\\(?:\r\n|[\s\S])|[^\\\r\n])*/,lookbehind:!0},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"builtin-target":{pattern:/\.[A-Z][^:#=\s]+(?=\s*:(?!=))/,alias:"builtin"},target:{pattern:/^(?:[^:=\s]|[ \t]+(?![\s:]))+(?=\s*:(?!=))/m,alias:"symbol",inside:{variable:/\$+(?:(?!\$)[^(){}:#=\s]+|(?=[({]))/}},variable:/\$+(?:(?!\$)[^(){}:#=\s]+|\([@*%<^+?][DF]\)|(?=[({]))/,keyword:/-include\b|\b(?:define|else|endef|endif|export|ifn?def|ifn?eq|include|override|private|sinclude|undefine|unexport|vpath)\b/,function:{pattern:/(\()(?:abspath|addsuffix|and|basename|call|dir|error|eval|file|filter(?:-out)?|findstring|firstword|flavor|foreach|guile|if|info|join|lastword|load|notdir|or|origin|patsubst|realpath|shell|sort|strip|subst|suffix|value|warning|wildcard|word(?:list|s)?)(?=[ \t])/,lookbehind:!0},operator:/(?:::|[?:+!])?=|[|@]/,punctuation:/[:;(){}]/}}return Lf}var Df,R1;function rae(){if(R1)return Df;R1=1,Df=e,e.displayName="markdown",e.aliases=["md"];function e(t){(function(r){var n=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function a(g){return g=g.replace(//g,function(){return n}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+g+")")}var i=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,o=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return i}),s=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;r.languages.markdown=r.languages.extend("markup",{}),r.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:r.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+o+s+"(?:"+o+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+o+s+")(?:"+o+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(i),inside:r.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+o+")"+s+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+o+"$"),inside:{"table-header":{pattern:RegExp(i),alias:"important",inside:r.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:a(/\b__(?:(?!_)|_(?:(?!_))+_)+__\b|\*\*(?:(?!\*)|\*(?:(?!\*))+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:a(/\b_(?:(?!_)|__(?:(?!_))+__)+_\b|\*(?:(?!\*)|\*\*(?:(?!\*))+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:a(/(~~?)(?:(?!~))+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:a(/!?\[(?:(?!\]))+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\]))+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(g){["url","bold","italic","strike","code-snippet"].forEach(function(m){g!==m&&(r.languages.markdown[g].inside.content.inside[m]=r.languages.markdown[m])})}),r.hooks.add("after-tokenize",function(g){if(g.language!=="markdown"&&g.language!=="md")return;function m(b){if(!(!b||typeof b=="string"))for(var v=0,S=b.length;v",quot:'"'},d=String.fromCodePoint||String.fromCharCode;function p(g){var m=g.replace(l,"");return m=m.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(b,v){if(v=v.toLowerCase(),v[0]==="#"){var S;return v[1]==="x"?S=parseInt(v.slice(2),16):S=Number(v.slice(1)),d(S)}else{var O=c[v];return O||b}}),m}r.languages.md=r.languages.markdown})(t)}return Df}var Mf,I1;function nae(){if(I1)return Mf;I1=1,Mf=e,e.displayName="matlab",e.aliases=[];function e(t){t.languages.matlab={comment:[/%\{[\s\S]*?\}%/,/%.+/],string:{pattern:/\B'(?:''|[^'\r\n])*'/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?(?:[ij])?|\b[ij]\b/,keyword:/\b(?:NaN|break|case|catch|continue|else|elseif|end|for|function|if|inf|otherwise|parfor|pause|pi|return|switch|try|while)\b/,function:/\b(?!\d)\w+(?=\s*\()/,operator:/\.?[*^\/\\']|[+\-:@]|[<>=~]=?|&&?|\|\|?/,punctuation:/\.{3}|[.,;\[\](){}!]/}}return Mf}var Pf,C1;function aae(){if(C1)return Pf;C1=1,Pf=e,e.displayName="maxscript",e.aliases=[];function e(t){(function(r){var n=/\b(?:about|and|animate|as|at|attributes|by|case|catch|collect|continue|coordsys|do|else|exit|fn|for|from|function|global|if|in|local|macroscript|mapped|max|not|of|off|on|or|parameters|persistent|plugin|rcmenu|return|rollout|set|struct|then|throw|to|tool|try|undo|utility|when|where|while|with)\b/i;r.languages.maxscript={comment:{pattern:/\/\*[\s\S]*?(?:\*\/|$)|--.*/,greedy:!0},string:{pattern:/(^|[^"\\@])(?:"(?:[^"\\]|\\[\s\S])*"|@"[^"]*")/,lookbehind:!0,greedy:!0},path:{pattern:/\$(?:[\w/\\.*?]|'[^']*')*/,greedy:!0,alias:"string"},"function-call":{pattern:RegExp("((?:"+(/^/.source+"|"+/[;=<>+\-*/^({\[]/.source+"|"+/\b(?:and|by|case|catch|collect|do|else|if|in|not|or|return|then|to|try|where|while|with)\b/.source)+")[ ]*)(?!"+n.source+")"+/[a-z_]\w*\b/.source+"(?=[ ]*(?:"+("(?!"+n.source+")"+/[a-z_]/.source+"|"+/\d|-\.?\d/.source+"|"+/[({'"$@#?]/.source)+"))","im"),lookbehind:!0,greedy:!0,alias:"function"},"function-definition":{pattern:/(\b(?:fn|function)\s+)\w+\b/i,lookbehind:!0,alias:"function"},argument:{pattern:/\b[a-z_]\w*(?=:)/i,alias:"attr-name"},keyword:n,boolean:/\b(?:false|true)\b/,time:{pattern:/(^|[^\w.])(?:(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?[msft])+|\d+:\d+(?:\.\d*)?)(?![\w.:])/,lookbehind:!0,alias:"number"},number:[{pattern:/(^|[^\w.])(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?|0x[a-fA-F0-9]+)(?![\w.:])/,lookbehind:!0},/\b(?:e|pi)\b/],constant:/\b(?:dontcollect|ok|silentValue|undefined|unsupplied)\b/,color:{pattern:/\b(?:black|blue|brown|gray|green|orange|red|white|yellow)\b/i,alias:"constant"},operator:/[-+*/<>=!]=?|[&^?]|#(?!\()/,punctuation:/[()\[\]{}.:,;]|#(?=\()|\\$/m}})(t)}return Pf}var $f,N1;function iae(){if(N1)return $f;N1=1,$f=e,e.displayName="mel",e.aliases=[];function e(t){t.languages.mel={comment:/\/\/.*/,code:{pattern:/`(?:\\.|[^\\`\r\n])*`/,greedy:!0,alias:"italic",inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"}}},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},variable:/\$\w+/,number:/\b0x[\da-fA-F]+\b|\b\d+(?:\.\d*)?|\B\.\d+/,flag:{pattern:/-[^\d\W]\w*/,alias:"operator"},keyword:/\b(?:break|case|continue|default|do|else|float|for|global|if|in|int|matrix|proc|return|string|switch|vector|while)\b/,function:/\b\w+(?=\()|\b(?:CBG|HfAddAttractorToAS|HfAssignAS|HfBuildEqualMap|HfBuildFurFiles|HfBuildFurImages|HfCancelAFR|HfConnectASToHF|HfCreateAttractor|HfDeleteAS|HfEditAS|HfPerformCreateAS|HfRemoveAttractorFromAS|HfSelectAttached|HfSelectAttractors|HfUnAssignAS|Mayatomr|about|abs|addAttr|addAttributeEditorNodeHelp|addDynamic|addNewShelfTab|addPP|addPanelCategory|addPrefixToName|advanceToNextDrivenKey|affectedNet|affects|aimConstraint|air|alias|aliasAttr|align|alignCtx|alignCurve|alignSurface|allViewFit|ambientLight|angle|angleBetween|animCone|animCurveEditor|animDisplay|animView|annotate|appendStringArray|applicationName|applyAttrPreset|applyTake|arcLenDimContext|arcLengthDimension|arclen|arrayMapper|art3dPaintCtx|artAttrCtx|artAttrPaintVertexCtx|artAttrSkinPaintCtx|artAttrTool|artBuildPaintMenu|artFluidAttrCtx|artPuttyCtx|artSelectCtx|artSetPaintCtx|artUserPaintCtx|assignCommand|assignInputDevice|assignViewportFactories|attachCurve|attachDeviceAttr|attachSurface|attrColorSliderGrp|attrCompatibility|attrControlGrp|attrEnumOptionMenu|attrEnumOptionMenuGrp|attrFieldGrp|attrFieldSliderGrp|attrNavigationControlGrp|attrPresetEditWin|attributeExists|attributeInfo|attributeMenu|attributeQuery|autoKeyframe|autoPlace|bakeClip|bakeFluidShading|bakePartialHistory|bakeResults|bakeSimulation|basename|basenameEx|batchRender|bessel|bevel|bevelPlus|binMembership|bindSkin|blend2|blendShape|blendShapeEditor|blendShapePanel|blendTwoAttr|blindDataType|boneLattice|boundary|boxDollyCtx|boxZoomCtx|bufferCurve|buildBookmarkMenu|buildKeyframeMenu|button|buttonManip|cacheFile|cacheFileCombine|cacheFileMerge|cacheFileTrack|camera|cameraView|canCreateManip|canvas|capitalizeString|catch|catchQuiet|ceil|changeSubdivComponentDisplayLevel|changeSubdivRegion|channelBox|character|characterMap|characterOutlineEditor|characterize|chdir|checkBox|checkBoxGrp|checkDefaultRenderGlobals|choice|circle|circularFillet|clamp|clear|clearCache|clip|clipEditor|clipEditorCurrentTimeCtx|clipSchedule|clipSchedulerOutliner|clipTrimBefore|closeCurve|closeSurface|cluster|cmdFileOutput|cmdScrollFieldExecuter|cmdScrollFieldReporter|cmdShell|coarsenSubdivSelectionList|collision|color|colorAtPoint|colorEditor|colorIndex|colorIndexSliderGrp|colorSliderButtonGrp|colorSliderGrp|columnLayout|commandEcho|commandLine|commandPort|compactHairSystem|componentEditor|compositingInterop|computePolysetVolume|condition|cone|confirmDialog|connectAttr|connectControl|connectDynamic|connectJoint|connectionInfo|constrain|constrainValue|constructionHistory|container|containsMultibyte|contextInfo|control|convertFromOldLayers|convertIffToPsd|convertLightmap|convertSolidTx|convertTessellation|convertUnit|copyArray|copyFlexor|copyKey|copySkinWeights|cos|cpButton|cpCache|cpClothSet|cpCollision|cpConstraint|cpConvClothToMesh|cpForces|cpGetSolverAttr|cpPanel|cpProperty|cpRigidCollisionFilter|cpSeam|cpSetEdit|cpSetSolverAttr|cpSolver|cpSolverTypes|cpTool|cpUpdateClothUVs|createDisplayLayer|createDrawCtx|createEditor|createLayeredPsdFile|createMotionField|createNewShelf|createNode|createRenderLayer|createSubdivRegion|cross|crossProduct|ctxAbort|ctxCompletion|ctxEditMode|ctxTraverse|currentCtx|currentTime|currentTimeCtx|currentUnit|curve|curveAddPtCtx|curveCVCtx|curveEPCtx|curveEditorCtx|curveIntersect|curveMoveEPCtx|curveOnSurface|curveSketchCtx|cutKey|cycleCheck|cylinder|dagPose|date|defaultLightListCheckBox|defaultNavigation|defineDataServer|defineVirtualDevice|deformer|deg_to_rad|delete|deleteAttr|deleteShadingGroupsAndMaterials|deleteShelfTab|deleteUI|deleteUnusedBrushes|delrandstr|detachCurve|detachDeviceAttr|detachSurface|deviceEditor|devicePanel|dgInfo|dgdirty|dgeval|dgtimer|dimWhen|directKeyCtx|directionalLight|dirmap|dirname|disable|disconnectAttr|disconnectJoint|diskCache|displacementToPoly|displayAffected|displayColor|displayCull|displayLevelOfDetail|displayPref|displayRGBColor|displaySmoothness|displayStats|displayString|displaySurface|distanceDimContext|distanceDimension|doBlur|dolly|dollyCtx|dopeSheetEditor|dot|dotProduct|doubleProfileBirailSurface|drag|dragAttrContext|draggerContext|dropoffLocator|duplicate|duplicateCurve|duplicateSurface|dynCache|dynControl|dynExport|dynExpression|dynGlobals|dynPaintEditor|dynParticleCtx|dynPref|dynRelEdPanel|dynRelEditor|dynamicLoad|editAttrLimits|editDisplayLayerGlobals|editDisplayLayerMembers|editRenderLayerAdjustment|editRenderLayerGlobals|editRenderLayerMembers|editor|editorTemplate|effector|emit|emitter|enableDevice|encodeString|endString|endsWith|env|equivalent|equivalentTol|erf|error|eval|evalDeferred|evalEcho|event|exactWorldBoundingBox|exclusiveLightCheckBox|exec|executeForEachObject|exists|exp|expression|expressionEditorListen|extendCurve|extendSurface|extrude|fcheck|fclose|feof|fflush|fgetline|fgetword|file|fileBrowserDialog|fileDialog|fileExtension|fileInfo|filetest|filletCurve|filter|filterCurve|filterExpand|filterStudioImport|findAllIntersections|findAnimCurves|findKeyframe|findMenuItem|findRelatedSkinCluster|finder|firstParentOf|fitBspline|flexor|floatEq|floatField|floatFieldGrp|floatScrollBar|floatSlider|floatSlider2|floatSliderButtonGrp|floatSliderGrp|floor|flow|fluidCacheInfo|fluidEmitter|fluidVoxelInfo|flushUndo|fmod|fontDialog|fopen|formLayout|format|fprint|frameLayout|fread|freeFormFillet|frewind|fromNativePath|fwrite|gamma|gauss|geometryConstraint|getApplicationVersionAsFloat|getAttr|getClassification|getDefaultBrush|getFileList|getFluidAttr|getInputDeviceRange|getMayaPanelTypes|getModifiers|getPanel|getParticleAttr|getPluginResource|getenv|getpid|glRender|glRenderEditor|globalStitch|gmatch|goal|gotoBindPose|grabColor|gradientControl|gradientControlNoAttr|graphDollyCtx|graphSelectContext|graphTrackCtx|gravity|grid|gridLayout|group|groupObjectsByName|hardenPointCurve|hardware|hardwareRenderPanel|headsUpDisplay|headsUpMessage|help|helpLine|hermite|hide|hilite|hitTest|hotBox|hotkey|hotkeyCheck|hsv_to_rgb|hudButton|hudSlider|hudSliderButton|hwReflectionMap|hwRender|hwRenderLoad|hyperGraph|hyperPanel|hyperShade|hypot|iconTextButton|iconTextCheckBox|iconTextRadioButton|iconTextRadioCollection|iconTextScrollList|iconTextStaticLabel|ikHandle|ikHandleCtx|ikHandleDisplayScale|ikSolver|ikSplineHandleCtx|ikSystem|ikSystemInfo|ikfkDisplayMethod|illustratorCurves|image|imfPlugins|inheritTransform|insertJoint|insertJointCtx|insertKeyCtx|insertKnotCurve|insertKnotSurface|instance|instanceable|instancer|intField|intFieldGrp|intScrollBar|intSlider|intSliderGrp|interToUI|internalVar|intersect|iprEngine|isAnimCurve|isConnected|isDirty|isParentOf|isSameObject|isTrue|isValidObjectName|isValidString|isValidUiName|isolateSelect|itemFilter|itemFilterAttr|itemFilterRender|itemFilterType|joint|jointCluster|jointCtx|jointDisplayScale|jointLattice|keyTangent|keyframe|keyframeOutliner|keyframeRegionCurrentTimeCtx|keyframeRegionDirectKeyCtx|keyframeRegionDollyCtx|keyframeRegionInsertKeyCtx|keyframeRegionMoveKeyCtx|keyframeRegionScaleKeyCtx|keyframeRegionSelectKeyCtx|keyframeRegionSetKeyCtx|keyframeRegionTrackCtx|keyframeStats|lassoContext|lattice|latticeDeformKeyCtx|launch|launchImageEditor|layerButton|layeredShaderPort|layeredTexturePort|layout|layoutDialog|lightList|lightListEditor|lightListPanel|lightlink|lineIntersection|linearPrecision|linstep|listAnimatable|listAttr|listCameras|listConnections|listDeviceAttachments|listHistory|listInputDeviceAxes|listInputDeviceButtons|listInputDevices|listMenuAnnotation|listNodeTypes|listPanelCategories|listRelatives|listSets|listTransforms|listUnselected|listerEditor|loadFluid|loadNewShelf|loadPlugin|loadPluginLanguageResources|loadPrefObjects|localizedPanelLabel|lockNode|loft|log|longNameOf|lookThru|ls|lsThroughFilter|lsType|lsUI|mag|makeIdentity|makeLive|makePaintable|makeRoll|makeSingleSurface|makeTubeOn|makebot|manipMoveContext|manipMoveLimitsCtx|manipOptions|manipRotateContext|manipRotateLimitsCtx|manipScaleContext|manipScaleLimitsCtx|marker|match|max|memory|menu|menuBarLayout|menuEditor|menuItem|menuItemToShelf|menuSet|menuSetPref|messageLine|min|minimizeApp|mirrorJoint|modelCurrentTimeCtx|modelEditor|modelPanel|mouse|movIn|movOut|move|moveIKtoFK|moveKeyCtx|moveVertexAlongDirection|multiProfileBirailSurface|mute|nParticle|nameCommand|nameField|namespace|namespaceInfo|newPanelItems|newton|nodeCast|nodeIconButton|nodeOutliner|nodePreset|nodeType|noise|nonLinear|normalConstraint|normalize|nurbsBoolean|nurbsCopyUVSet|nurbsCube|nurbsEditUV|nurbsPlane|nurbsSelect|nurbsSquare|nurbsToPoly|nurbsToPolygonsPref|nurbsToSubdiv|nurbsToSubdivPref|nurbsUVSet|nurbsViewDirectionVector|objExists|objectCenter|objectLayer|objectType|objectTypeUI|obsoleteProc|oceanNurbsPreviewPlane|offsetCurve|offsetCurveOnSurface|offsetSurface|openGLExtension|openMayaPref|optionMenu|optionMenuGrp|optionVar|orbit|orbitCtx|orientConstraint|outlinerEditor|outlinerPanel|overrideModifier|paintEffectsDisplay|pairBlend|palettePort|paneLayout|panel|panelConfiguration|panelHistory|paramDimContext|paramDimension|paramLocator|parent|parentConstraint|particle|particleExists|particleInstancer|particleRenderInfo|partition|pasteKey|pathAnimation|pause|pclose|percent|performanceOptions|pfxstrokes|pickWalk|picture|pixelMove|planarSrf|plane|play|playbackOptions|playblast|plugAttr|plugNode|pluginInfo|pluginResourceUtil|pointConstraint|pointCurveConstraint|pointLight|pointMatrixMult|pointOnCurve|pointOnSurface|pointPosition|poleVectorConstraint|polyAppend|polyAppendFacetCtx|polyAppendVertex|polyAutoProjection|polyAverageNormal|polyAverageVertex|polyBevel|polyBlendColor|polyBlindData|polyBoolOp|polyBridgeEdge|polyCacheMonitor|polyCheck|polyChipOff|polyClipboard|polyCloseBorder|polyCollapseEdge|polyCollapseFacet|polyColorBlindData|polyColorDel|polyColorPerVertex|polyColorSet|polyCompare|polyCone|polyCopyUV|polyCrease|polyCreaseCtx|polyCreateFacet|polyCreateFacetCtx|polyCube|polyCut|polyCutCtx|polyCylinder|polyCylindricalProjection|polyDelEdge|polyDelFacet|polyDelVertex|polyDuplicateAndConnect|polyDuplicateEdge|polyEditUV|polyEditUVShell|polyEvaluate|polyExtrudeEdge|polyExtrudeFacet|polyExtrudeVertex|polyFlipEdge|polyFlipUV|polyForceUV|polyGeoSampler|polyHelix|polyInfo|polyInstallAction|polyLayoutUV|polyListComponentConversion|polyMapCut|polyMapDel|polyMapSew|polyMapSewMove|polyMergeEdge|polyMergeEdgeCtx|polyMergeFacet|polyMergeFacetCtx|polyMergeUV|polyMergeVertex|polyMirrorFace|polyMoveEdge|polyMoveFacet|polyMoveFacetUV|polyMoveUV|polyMoveVertex|polyNormal|polyNormalPerVertex|polyNormalizeUV|polyOptUvs|polyOptions|polyOutput|polyPipe|polyPlanarProjection|polyPlane|polyPlatonicSolid|polyPoke|polyPrimitive|polyPrism|polyProjection|polyPyramid|polyQuad|polyQueryBlindData|polyReduce|polySelect|polySelectConstraint|polySelectConstraintMonitor|polySelectCtx|polySelectEditCtx|polySeparate|polySetToFaceNormal|polySewEdge|polyShortestPathCtx|polySmooth|polySoftEdge|polySphere|polySphericalProjection|polySplit|polySplitCtx|polySplitEdge|polySplitRing|polySplitVertex|polyStraightenUVBorder|polySubdivideEdge|polySubdivideFacet|polyToSubdiv|polyTorus|polyTransfer|polyTriangulate|polyUVSet|polyUnite|polyWedgeFace|popen|popupMenu|pose|pow|preloadRefEd|print|progressBar|progressWindow|projFileViewer|projectCurve|projectTangent|projectionContext|projectionManip|promptDialog|propModCtx|propMove|psdChannelOutliner|psdEditTextureFile|psdExport|psdTextureFile|putenv|pwd|python|querySubdiv|quit|rad_to_deg|radial|radioButton|radioButtonGrp|radioCollection|radioMenuItemCollection|rampColorPort|rand|randomizeFollicles|randstate|rangeControl|readTake|rebuildCurve|rebuildSurface|recordAttr|recordDevice|redo|reference|referenceEdit|referenceQuery|refineSubdivSelectionList|refresh|refreshAE|registerPluginResource|rehash|reloadImage|removeJoint|removeMultiInstance|removePanelCategory|rename|renameAttr|renameSelectionList|renameUI|render|renderGlobalsNode|renderInfo|renderLayerButton|renderLayerParent|renderLayerPostProcess|renderLayerUnparent|renderManip|renderPartition|renderQualityNode|renderSettings|renderThumbnailUpdate|renderWindowEditor|renderWindowSelectContext|renderer|reorder|reorderDeformers|requires|reroot|resampleFluid|resetAE|resetPfxToPolyCamera|resetTool|resolutionNode|retarget|reverseCurve|reverseSurface|revolve|rgb_to_hsv|rigidBody|rigidSolver|roll|rollCtx|rootOf|rot|rotate|rotationInterpolation|roundConstantRadius|rowColumnLayout|rowLayout|runTimeCommand|runup|sampleImage|saveAllShelves|saveAttrPreset|saveFluid|saveImage|saveInitialState|saveMenu|savePrefObjects|savePrefs|saveShelf|saveToolSettings|scale|scaleBrushBrightness|scaleComponents|scaleConstraint|scaleKey|scaleKeyCtx|sceneEditor|sceneUIReplacement|scmh|scriptCtx|scriptEditorInfo|scriptJob|scriptNode|scriptTable|scriptToShelf|scriptedPanel|scriptedPanelType|scrollField|scrollLayout|sculpt|searchPathArray|seed|selLoadSettings|select|selectContext|selectCurveCV|selectKey|selectKeyCtx|selectKeyframeRegionCtx|selectMode|selectPref|selectPriority|selectType|selectedNodes|selectionConnection|separator|setAttr|setAttrEnumResource|setAttrMapping|setAttrNiceNameResource|setConstraintRestPosition|setDefaultShadingGroup|setDrivenKeyframe|setDynamic|setEditCtx|setEditor|setFluidAttr|setFocus|setInfinity|setInputDeviceMapping|setKeyCtx|setKeyPath|setKeyframe|setKeyframeBlendshapeTargetWts|setMenuMode|setNodeNiceNameResource|setNodeTypeFlag|setParent|setParticleAttr|setPfxToPolyCamera|setPluginResource|setProject|setStampDensity|setStartupMessage|setState|setToolTo|setUITemplate|setXformManip|sets|shadingConnection|shadingGeometryRelCtx|shadingLightRelCtx|shadingNetworkCompare|shadingNode|shapeCompare|shelfButton|shelfLayout|shelfTabLayout|shellField|shortNameOf|showHelp|showHidden|showManipCtx|showSelectionInTitle|showShadingGroupAttrEditor|showWindow|sign|simplify|sin|singleProfileBirailSurface|size|sizeBytes|skinCluster|skinPercent|smoothCurve|smoothTangentSurface|smoothstep|snap2to2|snapKey|snapMode|snapTogetherCtx|snapshot|soft|softMod|softModCtx|sort|sound|soundControl|source|spaceLocator|sphere|sphrand|spotLight|spotLightPreviewPort|spreadSheetEditor|spring|sqrt|squareSurface|srtContext|stackTrace|startString|startsWith|stitchAndExplodeShell|stitchSurface|stitchSurfacePoints|strcmp|stringArrayCatenate|stringArrayContains|stringArrayCount|stringArrayInsertAtIndex|stringArrayIntersector|stringArrayRemove|stringArrayRemoveAtIndex|stringArrayRemoveDuplicates|stringArrayRemoveExact|stringArrayToString|stringToStringArray|strip|stripPrefixFromName|stroke|subdAutoProjection|subdCleanTopology|subdCollapse|subdDuplicateAndConnect|subdEditUV|subdListComponentConversion|subdMapCut|subdMapSewMove|subdMatchTopology|subdMirror|subdToBlind|subdToPoly|subdTransferUVsToCache|subdiv|subdivCrease|subdivDisplaySmoothness|substitute|substituteAllString|substituteGeometry|substring|surface|surfaceSampler|surfaceShaderList|swatchDisplayPort|switchTable|symbolButton|symbolCheckBox|sysFile|system|tabLayout|tan|tangentConstraint|texLatticeDeformContext|texManipContext|texMoveContext|texMoveUVShellContext|texRotateContext|texScaleContext|texSelectContext|texSelectShortestPathCtx|texSmudgeUVContext|texWinToolCtx|text|textCurves|textField|textFieldButtonGrp|textFieldGrp|textManip|textScrollList|textToShelf|textureDisplacePlane|textureHairColor|texturePlacementContext|textureWindow|threadCount|threePointArcCtx|timeControl|timePort|timerX|toNativePath|toggle|toggleAxis|toggleWindowVisibility|tokenize|tokenizeList|tolerance|tolower|toolButton|toolCollection|toolDropped|toolHasOptions|toolPropertyWindow|torus|toupper|trace|track|trackCtx|transferAttributes|transformCompare|transformLimits|translator|trim|trunc|truncateFluidCache|truncateHairCache|tumble|tumbleCtx|turbulence|twoPointArcCtx|uiRes|uiTemplate|unassignInputDevice|undo|undoInfo|ungroup|uniform|unit|unloadPlugin|untangleUV|untitledFileName|untrim|upAxis|updateAE|userCtx|uvLink|uvSnapshot|validateShelfName|vectorize|view2dToolCtx|viewCamera|viewClipPlane|viewFit|viewHeadOn|viewLookAt|viewManip|viewPlace|viewSet|visor|volumeAxis|vortex|waitCursor|warning|webBrowser|webBrowserPrefs|whatIs|window|windowPref|wire|wireContext|workspace|wrinkle|wrinkleContext|writeTake|xbmLangPathList|xform)\b/,operator:[/\+[+=]?|-[-=]?|&&|\|\||[<>]=|[*\/!=]=?|[%^]/,{pattern:/(^|[^<])<(?!<)/,lookbehind:!0},{pattern:/(^|[^>])>(?!>)/,lookbehind:!0}],punctuation:/<<|>>|[.,:;?\[\](){}]/},t.languages.mel.code.inside.rest=t.languages.mel}return $f}var jf,L1;function oae(){if(L1)return jf;L1=1,jf=e,e.displayName="mermaid",e.aliases=[];function e(t){t.languages.mermaid={comment:{pattern:/%%.*/,greedy:!0},style:{pattern:/^([ \t]*(?:classDef|linkStyle|style)[ \t]+[\w$-]+[ \t]+)\w.*[^\s;]/m,lookbehind:!0,inside:{property:/\b\w[\w-]*(?=[ \t]*:)/,operator:/:/,punctuation:/,/}},"inter-arrow-label":{pattern:/([^<>ox.=-])(?:-[-.]|==)(?![<>ox.=-])[ \t]*(?:"[^"\r\n]*"|[^\s".=-](?:[^\r\n.=-]*[^\s.=-])?)[ \t]*(?:\.+->?|--+[->]|==+[=>])(?![<>ox.=-])/,lookbehind:!0,greedy:!0,inside:{arrow:{pattern:/(?:\.+->?|--+[->]|==+[=>])$/,alias:"operator"},label:{pattern:/^([\s\S]{2}[ \t]*)\S(?:[\s\S]*\S)?/,lookbehind:!0,alias:"property"},"arrow-head":{pattern:/^\S+/,alias:["arrow","operator"]}}},arrow:[{pattern:/(^|[^{}|o.-])[|}][|o](?:--|\.\.)[|o][|{](?![{}|o.-])/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>ox.=-])(?:[ox]?|(?:==+|--+|-\.*-)[>ox]|===+|---+|-\.+-)(?![<>ox.=-])/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>()x-])(?:--?(?:>>|[x>)])(?![<>()x])|(?:<<|[x<(])--?(?!-))/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>|*o.-])(?:[*o]--|--[*o]|<\|?(?:--|\.\.)|(?:--|\.\.)\|?>|--|\.\.)(?![<>|*o.-])/,lookbehind:!0,alias:"operator"}],label:{pattern:/(^|[^|<])\|(?:[^\r\n"|]|"[^"\r\n]*")+\|/,lookbehind:!0,greedy:!0,alias:"property"},text:{pattern:/(?:[(\[{]+|\b>)(?:[^\r\n"()\[\]{}]|"[^"\r\n]*")+(?:[)\]}]+|>)/,alias:"string"},string:{pattern:/"[^"\r\n]*"/,greedy:!0},annotation:{pattern:/<<(?:abstract|choice|enumeration|fork|interface|join|service)>>|\[\[(?:choice|fork|join)\]\]/i,alias:"important"},keyword:[{pattern:/(^[ \t]*)(?:action|callback|class|classDef|classDiagram|click|direction|erDiagram|flowchart|gantt|gitGraph|graph|journey|link|linkStyle|pie|requirementDiagram|sequenceDiagram|stateDiagram|stateDiagram-v2|style|subgraph)(?![\w$-])/m,lookbehind:!0,greedy:!0},{pattern:/(^[ \t]*)(?:activate|alt|and|as|autonumber|deactivate|else|end(?:[ \t]+note)?|loop|opt|par|participant|rect|state|note[ \t]+(?:over|(?:left|right)[ \t]+of))(?![\w$-])/im,lookbehind:!0,greedy:!0}],entity:/#[a-z0-9]+;/,operator:{pattern:/(\w[ \t]*)&(?=[ \t]*\w)|:::|:/,lookbehind:!0},punctuation:/[(){};]/}}return jf}var Ff,D1;function sae(){if(D1)return Ff;D1=1,Ff=e,e.displayName="mizar",e.aliases=[];function e(t){t.languages.mizar={comment:/::.+/,keyword:/@proof\b|\b(?:according|aggregate|all|and|antonym|are|as|associativity|assume|asymmetry|attr|be|begin|being|by|canceled|case|cases|clusters?|coherence|commutativity|compatibility|connectedness|consider|consistency|constructors|contradiction|correctness|def|deffunc|define|definitions?|defpred|do|does|end|environ|equals|ex|exactly|existence|for|from|func|given|hence|hereby|holds|idempotence|identity|iff?|implies|involutiveness|irreflexivity|is|it|let|means|mode|non|not|notations?|now|of|or|otherwise|over|per|pred|prefix|projectivity|proof|provided|qua|reconsider|redefine|reduce|reducibility|reflexivity|registrations?|requirements|reserve|sch|schemes?|section|selector|set|sethood|st|struct|such|suppose|symmetry|synonym|take|that|the|then|theorems?|thesis|thus|to|transitivity|uniqueness|vocabular(?:ies|y)|when|where|with|wrt)\b/,parameter:{pattern:/\$(?:10|\d)/,alias:"variable"},variable:/\b\w+(?=:)/,number:/(?:\b|-)\d+\b/,operator:/\.\.\.|->|&|\.?=/,punctuation:/\(#|#\)|[,:;\[\](){}]/}}return Ff}var Bf,M1;function lae(){if(M1)return Bf;M1=1,Bf=e,e.displayName="mongodb",e.aliases=[];function e(t){(function(r){var n=["$eq","$gt","$gte","$in","$lt","$lte","$ne","$nin","$and","$not","$nor","$or","$exists","$type","$expr","$jsonSchema","$mod","$regex","$text","$where","$geoIntersects","$geoWithin","$near","$nearSphere","$all","$elemMatch","$size","$bitsAllClear","$bitsAllSet","$bitsAnyClear","$bitsAnySet","$comment","$elemMatch","$meta","$slice","$currentDate","$inc","$min","$max","$mul","$rename","$set","$setOnInsert","$unset","$addToSet","$pop","$pull","$push","$pullAll","$each","$position","$slice","$sort","$bit","$addFields","$bucket","$bucketAuto","$collStats","$count","$currentOp","$facet","$geoNear","$graphLookup","$group","$indexStats","$limit","$listLocalSessions","$listSessions","$lookup","$match","$merge","$out","$planCacheStats","$project","$redact","$replaceRoot","$replaceWith","$sample","$set","$skip","$sort","$sortByCount","$unionWith","$unset","$unwind","$setWindowFields","$abs","$accumulator","$acos","$acosh","$add","$addToSet","$allElementsTrue","$and","$anyElementTrue","$arrayElemAt","$arrayToObject","$asin","$asinh","$atan","$atan2","$atanh","$avg","$binarySize","$bsonSize","$ceil","$cmp","$concat","$concatArrays","$cond","$convert","$cos","$dateFromParts","$dateToParts","$dateFromString","$dateToString","$dayOfMonth","$dayOfWeek","$dayOfYear","$degreesToRadians","$divide","$eq","$exp","$filter","$first","$floor","$function","$gt","$gte","$hour","$ifNull","$in","$indexOfArray","$indexOfBytes","$indexOfCP","$isArray","$isNumber","$isoDayOfWeek","$isoWeek","$isoWeekYear","$last","$last","$let","$literal","$ln","$log","$log10","$lt","$lte","$ltrim","$map","$max","$mergeObjects","$meta","$min","$millisecond","$minute","$mod","$month","$multiply","$ne","$not","$objectToArray","$or","$pow","$push","$radiansToDegrees","$range","$reduce","$regexFind","$regexFindAll","$regexMatch","$replaceOne","$replaceAll","$reverseArray","$round","$rtrim","$second","$setDifference","$setEquals","$setIntersection","$setIsSubset","$setUnion","$size","$sin","$slice","$split","$sqrt","$stdDevPop","$stdDevSamp","$strcasecmp","$strLenBytes","$strLenCP","$substr","$substrBytes","$substrCP","$subtract","$sum","$switch","$tan","$toBool","$toDate","$toDecimal","$toDouble","$toInt","$toLong","$toObjectId","$toString","$toLower","$toUpper","$trim","$trunc","$type","$week","$year","$zip","$count","$dateAdd","$dateDiff","$dateSubtract","$dateTrunc","$getField","$rand","$sampleRate","$setField","$unsetField","$comment","$explain","$hint","$max","$maxTimeMS","$min","$orderby","$query","$returnKey","$showDiskLoc","$natural"],a=["ObjectId","Code","BinData","DBRef","Timestamp","NumberLong","NumberDecimal","MaxKey","MinKey","RegExp","ISODate","UUID"];n=n.map(function(o){return o.replace("$","\\$")});var i="(?:"+n.join("|")+")\\b";r.languages.mongodb=r.languages.extend("javascript",{}),r.languages.insertBefore("mongodb","string",{property:{pattern:/(?:(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)(?=\s*:)/,greedy:!0,inside:{keyword:RegExp(`^(['"])?`+i+"(?:\\1)?$")}}}),r.languages.mongodb.string.inside={url:{pattern:/https?:\/\/[-\w@:%.+~#=]{1,256}\.[a-z0-9()]{1,6}\b[-\w()@:%+.~#?&/=]*/i,greedy:!0},entity:{pattern:/\b(?:(?:[01]?\d\d?|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d\d?|2[0-4]\d|25[0-5])\b/,greedy:!0}},r.languages.insertBefore("mongodb","constant",{builtin:{pattern:RegExp("\\b(?:"+a.join("|")+")\\b"),alias:"keyword"}})})(t)}return Bf}var Uf,P1;function uae(){if(P1)return Uf;P1=1,Uf=e,e.displayName="monkey",e.aliases=[];function e(t){t.languages.monkey={comment:{pattern:/^#Rem\s[\s\S]*?^#End|'.+/im,greedy:!0},string:{pattern:/"[^"\r\n]*"/,greedy:!0},preprocessor:{pattern:/(^[ \t]*)#.+/m,lookbehind:!0,greedy:!0,alias:"property"},function:/\b\w+(?=\()/,"type-char":{pattern:/\b[?%#$]/,alias:"class-name"},number:{pattern:/((?:\.\.)?)(?:(?:\b|\B-\.?|\B\.)\d+(?:(?!\.\.)\.\d*)?|\$[\da-f]+)/i,lookbehind:!0},keyword:/\b(?:Abstract|Array|Bool|Case|Catch|Class|Const|Continue|Default|Eachin|Else|ElseIf|End|EndIf|Exit|Extends|Extern|False|Field|Final|Float|For|Forever|Function|Global|If|Implements|Import|Inline|Int|Interface|Local|Method|Module|New|Next|Null|Object|Private|Property|Public|Repeat|Return|Select|Self|Step|Strict|String|Super|Then|Throw|To|True|Try|Until|Void|Wend|While)\b/i,operator:/\.\.|<[=>]?|>=?|:?=|(?:[+\-*\/&~|]|\b(?:Mod|Shl|Shr)\b)=?|\b(?:And|Not|Or)\b/i,punctuation:/[.,:;()\[\]]/}}return Uf}var Gf,$1;function cae(){if($1)return Gf;$1=1,Gf=e,e.displayName="moonscript",e.aliases=["moon"];function e(t){t.languages.moonscript={comment:/--.*/,string:[{pattern:/'[^']*'|\[(=*)\[[\s\S]*?\]\1\]/,greedy:!0},{pattern:/"[^"]*"/,greedy:!0,inside:{interpolation:{pattern:/#\{[^{}]*\}/,inside:{moonscript:{pattern:/(^#\{)[\s\S]+(?=\})/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/#\{|\}/,alias:"punctuation"}}}}}],"class-name":[{pattern:/(\b(?:class|extends)[ \t]+)\w+/,lookbehind:!0},/\b[A-Z]\w*/],keyword:/\b(?:class|continue|do|else|elseif|export|extends|for|from|if|import|in|local|nil|return|self|super|switch|then|unless|using|when|while|with)\b/,variable:/@@?\w*/,property:{pattern:/\b(?!\d)\w+(?=:)|(:)(?!\d)\w+/,lookbehind:!0},function:{pattern:/\b(?:_G|_VERSION|assert|collectgarbage|coroutine\.(?:create|resume|running|status|wrap|yield)|debug\.(?:debug|getfenv|gethook|getinfo|getlocal|getmetatable|getregistry|getupvalue|setfenv|sethook|setlocal|setmetatable|setupvalue|traceback)|dofile|error|getfenv|getmetatable|io\.(?:close|flush|input|lines|open|output|popen|read|stderr|stdin|stdout|tmpfile|type|write)|ipairs|load|loadfile|loadstring|math\.(?:abs|acos|asin|atan|atan2|ceil|cos|cosh|deg|exp|floor|fmod|frexp|ldexp|log|log10|max|min|modf|pi|pow|rad|random|randomseed|sin|sinh|sqrt|tan|tanh)|module|next|os\.(?:clock|date|difftime|execute|exit|getenv|remove|rename|setlocale|time|tmpname)|package\.(?:cpath|loaded|loadlib|path|preload|seeall)|pairs|pcall|print|rawequal|rawget|rawset|require|select|setfenv|setmetatable|string\.(?:byte|char|dump|find|format|gmatch|gsub|len|lower|match|rep|reverse|sub|upper)|table\.(?:concat|insert|maxn|remove|sort)|tonumber|tostring|type|unpack|xpcall)\b/,inside:{punctuation:/\./}},boolean:/\b(?:false|true)\b/,number:/(?:\B\.\d+|\b\d+\.\d+|\b\d+(?=[eE]))(?:[eE][-+]?\d+)?\b|\b(?:0x[a-fA-F\d]+|\d+)(?:U?LL)?\b/,operator:/\.{3}|[-=]>|~=|(?:[-+*/%<>!=]|\.\.)=?|[:#^]|\b(?:and|or)\b=?|\b(?:not)\b/,punctuation:/[.,()[\]{}\\]/},t.languages.moonscript.string[1].inside.interpolation.inside.moonscript.inside=t.languages.moonscript,t.languages.moon=t.languages.moonscript}return Gf}var zf,j1;function dae(){if(j1)return zf;j1=1,zf=e,e.displayName="n1ql",e.aliases=[];function e(t){t.languages.n1ql={comment:{pattern:/\/\*[\s\S]*?(?:$|\*\/)|--.*/,greedy:!0},string:{pattern:/(["'])(?:\\[\s\S]|(?!\1)[^\\]|\1\1)*\1/,greedy:!0},identifier:{pattern:/`(?:\\[\s\S]|[^\\`]|``)*`/,greedy:!0},parameter:/\$[\w.]+/,keyword:/\b(?:ADVISE|ALL|ALTER|ANALYZE|AS|ASC|AT|BEGIN|BINARY|BOOLEAN|BREAK|BUCKET|BUILD|BY|CALL|CAST|CLUSTER|COLLATE|COLLECTION|COMMIT|COMMITTED|CONNECT|CONTINUE|CORRELATE|CORRELATED|COVER|CREATE|CURRENT|DATABASE|DATASET|DATASTORE|DECLARE|DECREMENT|DELETE|DERIVED|DESC|DESCRIBE|DISTINCT|DO|DROP|EACH|ELEMENT|EXCEPT|EXCLUDE|EXECUTE|EXPLAIN|FETCH|FILTER|FLATTEN|FLUSH|FOLLOWING|FOR|FORCE|FROM|FTS|FUNCTION|GOLANG|GRANT|GROUP|GROUPS|GSI|HASH|HAVING|IF|IGNORE|ILIKE|INCLUDE|INCREMENT|INDEX|INFER|INLINE|INNER|INSERT|INTERSECT|INTO|IS|ISOLATION|JAVASCRIPT|JOIN|KEY|KEYS|KEYSPACE|KNOWN|LANGUAGE|LAST|LEFT|LET|LETTING|LEVEL|LIMIT|LSM|MAP|MAPPING|MATCHED|MATERIALIZED|MERGE|MINUS|MISSING|NAMESPACE|NEST|NL|NO|NTH_VALUE|NULL|NULLS|NUMBER|OBJECT|OFFSET|ON|OPTION|OPTIONS|ORDER|OTHERS|OUTER|OVER|PARSE|PARTITION|PASSWORD|PATH|POOL|PRECEDING|PREPARE|PRIMARY|PRIVATE|PRIVILEGE|PROBE|PROCEDURE|PUBLIC|RANGE|RAW|REALM|REDUCE|RENAME|RESPECT|RETURN|RETURNING|REVOKE|RIGHT|ROLE|ROLLBACK|ROW|ROWS|SATISFIES|SAVEPOINT|SCHEMA|SCOPE|SELECT|SELF|SEMI|SET|SHOW|SOME|START|STATISTICS|STRING|SYSTEM|TIES|TO|TRAN|TRANSACTION|TRIGGER|TRUNCATE|UNBOUNDED|UNDER|UNION|UNIQUE|UNKNOWN|UNNEST|UNSET|UPDATE|UPSERT|USE|USER|USING|VALIDATE|VALUE|VALUES|VIA|VIEW|WHERE|WHILE|WINDOW|WITH|WORK|XOR)\b/i,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:FALSE|TRUE)\b/i,number:/(?:\b\d+\.|\B\.)\d+e[+\-]?\d+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/%]|!=|==?|\|\||<[>=]?|>=?|\b(?:AND|ANY|ARRAY|BETWEEN|CASE|ELSE|END|EVERY|EXISTS|FIRST|IN|LIKE|NOT|OR|THEN|VALUED|WHEN|WITHIN)\b/i,punctuation:/[;[\](),.{}:]/}}return zf}var qf,F1;function pae(){if(F1)return qf;F1=1,qf=e,e.displayName="n4js",e.aliases=["n4jsd"];function e(t){t.languages.n4js=t.languages.extend("javascript",{keyword:/\b(?:Array|any|boolean|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|module|new|null|number|package|private|protected|public|return|set|static|string|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/}),t.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),t.languages.n4jsd=t.languages.n4js}return qf}var Hf,B1;function fae(){if(B1)return Hf;B1=1,Hf=e,e.displayName="nand2tetrisHdl",e.aliases=[];function e(t){t.languages["nand2tetris-hdl"]={comment:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,keyword:/\b(?:BUILTIN|CHIP|CLOCKED|IN|OUT|PARTS)\b/,boolean:/\b(?:false|true)\b/,function:/\b[A-Za-z][A-Za-z0-9]*(?=\()/,number:/\b\d+\b/,operator:/=|\.\./,punctuation:/[{}[\];(),:]/}}return Hf}var Wf,U1;function gae(){if(U1)return Wf;U1=1,Wf=e,e.displayName="naniscript",e.aliases=[];function e(t){(function(r){var n=/\{[^\r\n\[\]{}]*\}/,a={"quoted-string":{pattern:/"(?:[^"\\]|\\.)*"/,alias:"operator"},"command-param-id":{pattern:/(\s)\w+:/,lookbehind:!0,alias:"property"},"command-param-value":[{pattern:n,alias:"selector"},{pattern:/([\t ])\S+/,lookbehind:!0,greedy:!0,alias:"operator"},{pattern:/\S(?:.*\S)?/,alias:"operator"}]};r.languages.naniscript={comment:{pattern:/^([\t ]*);.*/m,lookbehind:!0},define:{pattern:/^>.+/m,alias:"tag",inside:{value:{pattern:/(^>\w+[\t ]+)(?!\s)[^{}\r\n]+/,lookbehind:!0,alias:"operator"},key:{pattern:/(^>)\w+/,lookbehind:!0}}},label:{pattern:/^([\t ]*)#[\t ]*\w+[\t ]*$/m,lookbehind:!0,alias:"regex"},command:{pattern:/^([\t ]*)@\w+(?=[\t ]|$).*/m,lookbehind:!0,alias:"function",inside:{"command-name":/^@\w+/,expression:{pattern:n,greedy:!0,alias:"selector"},"command-params":{pattern:/\s*\S[\s\S]*/,inside:a}}},"generic-text":{pattern:/(^[ \t]*)[^#@>;\s].*/m,lookbehind:!0,alias:"punctuation",inside:{"escaped-char":/\\[{}\[\]"]/,expression:{pattern:n,greedy:!0,alias:"selector"},"inline-command":{pattern:/\[[\t ]*\w[^\r\n\[\]]*\]/,greedy:!0,alias:"function",inside:{"command-params":{pattern:/(^\[[\t ]*\w+\b)[\s\S]+(?=\]$)/,lookbehind:!0,inside:a},"command-param-name":{pattern:/^(\[[\t ]*)\w+/,lookbehind:!0,alias:"name"},"start-stop-char":/[\[\]]/}}}}},r.languages.nani=r.languages.naniscript,r.hooks.add("after-tokenize",function(s){var l=s.tokens;l.forEach(function(c){if(typeof c!="string"&&c.type==="generic-text"){var d=o(c);i(d)||(c.type="bad-line",c.content=d)}})});function i(s){for(var l="[]{}",c=[],d=0;d=&|$!]/}}return Vf}var Yf,z1;function mae(){if(z1)return Yf;z1=1,Yf=e,e.displayName="neon",e.aliases=[];function e(t){t.languages.neon={comment:{pattern:/#.*/,greedy:!0},datetime:{pattern:/(^|[[{(=:,\s])\d\d\d\d-\d\d?-\d\d?(?:(?:[Tt]| +)\d\d?:\d\d:\d\d(?:\.\d*)? *(?:Z|[-+]\d\d?(?::?\d\d)?)?)?(?=$|[\]}),\s])/,lookbehind:!0,alias:"number"},key:{pattern:/(^|[[{(,\s])[^,:=[\]{}()'"\s]+(?=\s*:(?:$|[\]}),\s])|\s*=)/,lookbehind:!0,alias:"atrule"},number:{pattern:/(^|[[{(=:,\s])[+-]?(?:0x[\da-fA-F]+|0o[0-7]+|0b[01]+|(?:\d+(?:\.\d*)?|\.?\d+)(?:[eE][+-]?\d+)?)(?=$|[\]}),:=\s])/,lookbehind:!0},boolean:{pattern:/(^|[[{(=:,\s])(?:false|no|true|yes)(?=$|[\]}),:=\s])/i,lookbehind:!0},null:{pattern:/(^|[[{(=:,\s])(?:null)(?=$|[\]}),:=\s])/i,lookbehind:!0,alias:"keyword"},string:{pattern:/(^|[[{(=:,\s])(?:('''|""")\r?\n(?:(?:[^\r\n]|\r?\n(?![\t ]*\2))*\r?\n)?[\t ]*\2|'[^'\r\n]*'|"(?:\\.|[^\\"\r\n])*")/,lookbehind:!0,greedy:!0},literal:{pattern:/(^|[[{(=:,\s])(?:[^#"',:=[\]{}()\s`-]|[:-][^"',=[\]{}()\s])(?:[^,:=\]})(\s]|:(?![\s,\]})]|$)|[ \t]+[^#,:=\]})(\s])*/,lookbehind:!0,alias:"string"},punctuation:/[,:=[\]{}()-]/}}return Yf}var Kf,q1;function bae(){if(q1)return Kf;q1=1,Kf=e,e.displayName="nevod",e.aliases=[];function e(t){t.languages.nevod={comment:/\/\/.*|(?:\/\*[\s\S]*?(?:\*\/|$))/,string:{pattern:/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))!?\*?/,greedy:!0,inside:{"string-attrs":/!$|!\*$|\*$/}},namespace:{pattern:/(@namespace\s+)[a-zA-Z0-9\-.]+(?=\s*\{)/,lookbehind:!0},pattern:{pattern:/(@pattern\s+)?#?[a-zA-Z0-9\-.]+(?:\s*\(\s*(?:~\s*)?[a-zA-Z0-9\-.]+\s*(?:,\s*(?:~\s*)?[a-zA-Z0-9\-.]*)*\))?(?=\s*=)/,lookbehind:!0,inside:{"pattern-name":{pattern:/^#?[a-zA-Z0-9\-.]+/,alias:"class-name"},fields:{pattern:/\(.*\)/,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},punctuation:/[,()]/,operator:{pattern:/~/,alias:"field-hidden-mark"}}}}},search:{pattern:/(@search\s+|#)[a-zA-Z0-9\-.]+(?:\.\*)?(?=\s*;)/,alias:"function",lookbehind:!0},keyword:/@(?:having|inside|namespace|outside|pattern|require|search|where)\b/,"standard-pattern":{pattern:/\b(?:Alpha|AlphaNum|Any|Blank|End|LineBreak|Num|NumAlpha|Punct|Space|Start|Symbol|Word|WordBreak)\b(?:\([a-zA-Z0-9\-.,\s+]*\))?/,inside:{"standard-pattern-name":{pattern:/^[a-zA-Z0-9\-.]+/,alias:"builtin"},quantifier:{pattern:/\b\d+(?:\s*\+|\s*-\s*\d+)?(?!\w)/,alias:"number"},"standard-pattern-attr":{pattern:/[a-zA-Z0-9\-.]+/,alias:"builtin"},punctuation:/[,()]/}},quantifier:{pattern:/\b\d+(?:\s*\+|\s*-\s*\d+)?(?!\w)/,alias:"number"},operator:[{pattern:/=/,alias:"pattern-def"},{pattern:/&/,alias:"conjunction"},{pattern:/~/,alias:"exception"},{pattern:/\?/,alias:"optionality"},{pattern:/[[\]]/,alias:"repetition"},{pattern:/[{}]/,alias:"variation"},{pattern:/[+_]/,alias:"sequence"},{pattern:/\.{2,3}/,alias:"span"}],"field-capture":[{pattern:/([a-zA-Z0-9\-.]+\s*\()\s*[a-zA-Z0-9\-.]+\s*:\s*[a-zA-Z0-9\-.]+(?:\s*,\s*[a-zA-Z0-9\-.]+\s*:\s*[a-zA-Z0-9\-.]+)*(?=\s*\))/,lookbehind:!0,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},colon:/:/}},{pattern:/[a-zA-Z0-9\-.]+\s*:/,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},colon:/:/}}],punctuation:/[:;,()]/,name:/[a-zA-Z0-9\-.]+/}}return Kf}var Xf,H1;function yae(){if(H1)return Xf;H1=1,Xf=e,e.displayName="nginx",e.aliases=[];function e(t){(function(r){var n=/\$(?:\w[a-z\d]*(?:_[^\x00-\x1F\s"'\\()$]*)?|\{[^}\s"'\\]+\})/i;r.languages.nginx={comment:{pattern:/(^|[\s{};])#.*/,lookbehind:!0,greedy:!0},directive:{pattern:/(^|\s)\w(?:[^;{}"'\\\s]|\\.|"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'|\s+(?:#.*(?!.)|(?![#\s])))*?(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:{string:{pattern:/((?:^|[^\\])(?:\\\\)*)(?:"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')/,lookbehind:!0,greedy:!0,inside:{escape:{pattern:/\\["'\\nrt]/,alias:"entity"},variable:n}},comment:{pattern:/(\s)#.*/,lookbehind:!0,greedy:!0},keyword:{pattern:/^\S+/,greedy:!0},boolean:{pattern:/(\s)(?:off|on)(?!\S)/,lookbehind:!0},number:{pattern:/(\s)\d+[a-z]*(?!\S)/i,lookbehind:!0},variable:n}},punctuation:/[{};]/}})(t)}return Xf}var Zf,W1;function vae(){if(W1)return Zf;W1=1,Zf=e,e.displayName="nim",e.aliases=[];function e(t){t.languages.nim={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(?:\b(?!\d)(?:\w|\\x[89a-fA-F][0-9a-fA-F])+)?(?:"""[\s\S]*?"""(?!")|"(?:\\[\s\S]|""|[^"\\])*")/,greedy:!0},char:{pattern:/'(?:\\(?:\d+|x[\da-fA-F]{0,2}|.)|[^'])'/,greedy:!0},function:{pattern:/(?:(?!\d)(?:\w|\\x[89a-fA-F][0-9a-fA-F])+|`[^`\r\n]+`)\*?(?:\[[^\]]+\])?(?=\s*\()/,greedy:!0,inside:{operator:/\*$/}},identifier:{pattern:/`[^`\r\n]+`/,greedy:!0,inside:{punctuation:/`/}},number:/\b(?:0[xXoObB][\da-fA-F_]+|\d[\d_]*(?:(?!\.\.)\.[\d_]*)?(?:[eE][+-]?\d[\d_]*)?)(?:'?[iuf]\d*)?/,keyword:/\b(?:addr|as|asm|atomic|bind|block|break|case|cast|concept|const|continue|converter|defer|discard|distinct|do|elif|else|end|enum|except|export|finally|for|from|func|generic|if|import|include|interface|iterator|let|macro|method|mixin|nil|object|out|proc|ptr|raise|ref|return|static|template|try|tuple|type|using|var|when|while|with|without|yield)\b/,operator:{pattern:/(^|[({\[](?=\.\.)|(?![({\[]\.).)(?:(?:[=+\-*\/<>@$~&%|!?^:\\]|\.\.|\.(?![)}\]]))+|\b(?:and|div|in|is|isnot|mod|not|notin|of|or|shl|shr|xor)\b)/m,lookbehind:!0},punctuation:/[({\[]\.|\.[)}\]]|[`(){}\[\],:]/}}return Zf}var Jf,V1;function Sae(){if(V1)return Jf;V1=1,Jf=e,e.displayName="nix",e.aliases=[];function e(t){t.languages.nix={comment:{pattern:/\/\*[\s\S]*?\*\/|#.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\[\s\S])*"|''(?:(?!'')[\s\S]|''(?:'|\\|\$\{))*''/,greedy:!0,inside:{interpolation:{pattern:/(^|(?:^|(?!'').)[^\\])\$\{(?:[^{}]|\{[^}]*\})*\}/,lookbehind:!0,inside:null}}},url:[/\b(?:[a-z]{3,7}:\/\/)[\w\-+%~\/.:#=?&]+/,{pattern:/([^\/])(?:[\w\-+%~.:#=?&]*(?!\/\/)[\w\-+%~\/.:#=?&])?(?!\/\/)\/[\w\-+%~\/.:#=?&]*/,lookbehind:!0}],antiquotation:{pattern:/\$(?=\{)/,alias:"important"},number:/\b\d+\b/,keyword:/\b(?:assert|builtins|else|if|in|inherit|let|null|or|then|with)\b/,function:/\b(?:abort|add|all|any|attrNames|attrValues|baseNameOf|compareVersions|concatLists|currentSystem|deepSeq|derivation|dirOf|div|elem(?:At)?|fetch(?:Tarball|url)|filter(?:Source)?|fromJSON|genList|getAttr|getEnv|hasAttr|hashString|head|import|intersectAttrs|is(?:Attrs|Bool|Function|Int|List|Null|String)|length|lessThan|listToAttrs|map|mul|parseDrvName|pathExists|read(?:Dir|File)|removeAttrs|replaceStrings|seq|sort|stringLength|sub(?:string)?|tail|throw|to(?:File|JSON|Path|String|XML)|trace|typeOf)\b|\bfoldl'\B/,boolean:/\b(?:false|true)\b/,operator:/[=!<>]=?|\+\+?|\|\||&&|\/\/|->?|[?@]/,punctuation:/[{}()[\].,:;]/},t.languages.nix.string.inside.interpolation.inside=t.languages.nix}return Jf}var Qf,Y1;function Eae(){if(Y1)return Qf;Y1=1,Qf=e,e.displayName="nsis",e.aliases=[];function e(t){t.languages.nsis={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|[#;].*)/,lookbehind:!0,greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:{pattern:/(^[\t ]*)(?:Abort|Add(?:BrandingImage|Size)|AdvSplash|Allow(?:RootDirInstall|SkipFiles)|AutoCloseWindow|BG(?:Font|Gradient|Image)|Banner|BrandingText|BringToFront|CRCCheck|Call(?:InstDLL)?|Caption|ChangeUI|CheckBitmap|ClearErrors|CompletedText|ComponentText|CopyFiles|Create(?:Directory|Font|ShortCut)|Delete(?:INISec|INIStr|RegKey|RegValue)?|Detail(?:Print|sButtonText)|Dialer|Dir(?:Text|Var|Verify)|EnableWindow|Enum(?:RegKey|RegValue)|Exch|Exec(?:Shell(?:Wait)?|Wait)?|ExpandEnvStrings|File(?:BufSize|Close|ErrorText|Open|Read|ReadByte|ReadUTF16LE|ReadWord|Seek|Write|WriteByte|WriteUTF16LE|WriteWord)?|Find(?:Close|First|Next|Window)|FlushINI|Get(?:CurInstType|CurrentAddress|DLLVersion(?:Local)?|DlgItem|ErrorLevel|FileTime(?:Local)?|FullPathName|Function(?:Address|End)?|InstDirError|LabelAddress|TempFileName)|Goto|HideWindow|Icon|If(?:Abort|Errors|FileExists|RebootFlag|Silent)|InitPluginsDir|InstProgressFlags|Inst(?:Type(?:GetText|SetText)?)|Install(?:ButtonText|Colors|Dir(?:RegKey)?)|Int(?:64|Ptr)?CmpU?|Int(?:64)?Fmt|Int(?:Ptr)?Op|IsWindow|Lang(?:DLL|String)|License(?:BkColor|Data|ForceSelection|LangString|Text)|LoadLanguageFile|LockWindow|Log(?:Set|Text)|Manifest(?:DPIAware|SupportedOS)|Math|MessageBox|MiscButtonText|NSISdl|Name|Nop|OutFile|PE(?:DllCharacteristics|SubsysVer)|Page(?:Callbacks)?|Pop|Push|Quit|RMDir|Read(?:EnvStr|INIStr|RegDWORD|RegStr)|Reboot|RegDLL|Rename|RequestExecutionLevel|ReserveFile|Return|SearchPath|Section(?:End|GetFlags|GetInstTypes|GetSize|GetText|Group|In|SetFlags|SetInstTypes|SetSize|SetText)?|SendMessage|Set(?:AutoClose|BrandingImage|Compress|Compressor(?:DictSize)?|CtlColors|CurInstType|DatablockOptimize|DateSave|Details(?:Print|View)|ErrorLevel|Errors|FileAttributes|Font|OutPath|Overwrite|PluginUnload|RebootFlag|RegView|ShellVarContext|Silent)|Show(?:InstDetails|UninstDetails|Window)|Silent(?:Install|UnInstall)|Sleep|SpaceTexts|Splash|StartMenu|Str(?:CmpS?|Cpy|Len)|SubCaption|System|UnRegDLL|Unicode|UninstPage|Uninstall(?:ButtonText|Caption|Icon|SubCaption|Text)|UserInfo|VI(?:AddVersionKey|FileVersion|ProductVersion)|VPatch|Var|WindowIcon|Write(?:INIStr|Reg(?:Bin|DWORD|ExpandStr|MultiStr|None|Str)|Uninstaller)|XPStyle|ns(?:Dialogs|Exec))\b/m,lookbehind:!0},property:/\b(?:ARCHIVE|FILE_(?:ATTRIBUTE_ARCHIVE|ATTRIBUTE_NORMAL|ATTRIBUTE_OFFLINE|ATTRIBUTE_READONLY|ATTRIBUTE_SYSTEM|ATTRIBUTE_TEMPORARY)|HK(?:(?:CR|CU|LM)(?:32|64)?|DD|PD|U)|HKEY_(?:CLASSES_ROOT|CURRENT_CONFIG|CURRENT_USER|DYN_DATA|LOCAL_MACHINE|PERFORMANCE_DATA|USERS)|ID(?:ABORT|CANCEL|IGNORE|NO|OK|RETRY|YES)|MB_(?:ABORTRETRYIGNORE|DEFBUTTON1|DEFBUTTON2|DEFBUTTON3|DEFBUTTON4|ICONEXCLAMATION|ICONINFORMATION|ICONQUESTION|ICONSTOP|OK|OKCANCEL|RETRYCANCEL|RIGHT|RTLREADING|SETFOREGROUND|TOPMOST|USERICON|YESNO)|NORMAL|OFFLINE|READONLY|SHCTX|SHELL_CONTEXT|SYSTEM|TEMPORARY|admin|all|auto|both|colored|false|force|hide|highest|lastused|leave|listonly|none|normal|notset|off|on|open|print|show|silent|silentlog|smooth|textonly|true|user)\b/,constant:/\$\{[!\w\.:\^-]+\}|\$\([!\w\.:\^-]+\)/,variable:/\$\w[\w\.]*/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--?|\+\+?|<=?|>=?|==?=?|&&?|\|\|?|[?*\/~^%]/,punctuation:/[{}[\];(),.:]/,important:{pattern:/(^[\t ]*)!(?:addincludedir|addplugindir|appendfile|cd|define|delfile|echo|else|endif|error|execute|finalize|getdllversion|gettlbversion|if|ifdef|ifmacrodef|ifmacrondef|ifndef|include|insertmacro|macro|macroend|makensis|packhdr|pragma|searchparse|searchreplace|system|tempfile|undef|verbose|warning)\b/im,lookbehind:!0}}}return Qf}var eg,K1;function xae(){if(K1)return eg;K1=1;var e=ca();eg=t,t.displayName="objectivec",t.aliases=["objc"];function t(r){r.register(e),r.languages.objectivec=r.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete r.languages.objectivec["class-name"],r.languages.objc=r.languages.objectivec}return eg}var tg,X1;function wae(){if(X1)return tg;X1=1,tg=e,e.displayName="ocaml",e.aliases=[];function e(t){t.languages.ocaml={comment:{pattern:/\(\*[\s\S]*?\*\)/,greedy:!0},char:{pattern:/'(?:[^\\\r\n']|\\(?:.|[ox]?[0-9a-f]{1,3}))'/i,greedy:!0},string:[{pattern:/"(?:\\(?:[\s\S]|\r\n)|[^\\\r\n"])*"/,greedy:!0},{pattern:/\{([a-z_]*)\|[\s\S]*?\|\1\}/,greedy:!0}],number:[/\b(?:0b[01][01_]*|0o[0-7][0-7_]*)\b/i,/\b0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]*)?(?:p[+-]?\d[\d_]*)?(?!\w)/i,/\b\d[\d_]*(?:\.[\d_]*)?(?:e[+-]?\d[\d_]*)?(?!\w)/i],directive:{pattern:/\B#\w+/,alias:"property"},label:{pattern:/\B~\w+/,alias:"property"},"type-variable":{pattern:/\B'\w+/,alias:"function"},variant:{pattern:/`\w+/,alias:"symbol"},keyword:/\b(?:as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|match|method|module|mutable|new|nonrec|object|of|open|private|rec|sig|struct|then|to|try|type|val|value|virtual|when|where|while|with)\b/,boolean:/\b(?:false|true)\b/,"operator-like-punctuation":{pattern:/\[[<>|]|[>|]\]|\{<|>\}/,alias:"punctuation"},operator:/\.[.~]|:[=>]|[=<>@^|&+\-*\/$%!?~][!$%&*+\-.\/:<=>?@^|~]*|\b(?:and|asr|land|lor|lsl|lsr|lxor|mod|or)\b/,punctuation:/;;|::|[(){}\[\].,:;#]|\b_\b/}}return tg}var rg,Z1;function _ae(){if(Z1)return rg;Z1=1;var e=ca();rg=t,t.displayName="opencl",t.aliases=[];function t(r){r.register(e),function(n){n.languages.opencl=n.languages.extend("c",{keyword:/\b(?:(?:__)?(?:constant|global|kernel|local|private|read_only|read_write|write_only)|__attribute__|auto|(?:bool|u?(?:char|int|long|short)|half|quad)(?:2|3|4|8|16)?|break|case|complex|const|continue|(?:double|float)(?:16(?:x(?:1|2|4|8|16))?|1x(?:1|2|4|8|16)|2(?:x(?:1|2|4|8|16))?|3|4(?:x(?:1|2|4|8|16))?|8(?:x(?:1|2|4|8|16))?)?|default|do|else|enum|extern|for|goto|if|imaginary|inline|packed|pipe|register|restrict|return|signed|sizeof|static|struct|switch|typedef|uniform|union|unsigned|void|volatile|while)\b/,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[fuhl]{0,4}/i,boolean:/\b(?:false|true)\b/,"constant-opencl-kernel":{pattern:/\b(?:CHAR_(?:BIT|MAX|MIN)|CLK_(?:ADDRESS_(?:CLAMP(?:_TO_EDGE)?|NONE|REPEAT)|FILTER_(?:LINEAR|NEAREST)|(?:GLOBAL|LOCAL)_MEM_FENCE|NORMALIZED_COORDS_(?:FALSE|TRUE))|CL_(?:BGRA|(?:HALF_)?FLOAT|INTENSITY|LUMINANCE|A?R?G?B?[Ax]?|(?:(?:UN)?SIGNED|[US]NORM)_(?:INT(?:8|16|32))|UNORM_(?:INT_101010|SHORT_(?:555|565)))|(?:DBL|FLT|HALF)_(?:DIG|EPSILON|(?:MAX|MIN)(?:(?:_10)?_EXP)?|MANT_DIG)|FLT_RADIX|HUGE_VALF?|(?:INT|LONG|SCHAR|SHRT)_(?:MAX|MIN)|INFINITY|MAXFLOAT|M_(?:[12]_PI|2_SQRTPI|E|LN(?:2|10)|LOG(?:2|10)E?|PI(?:_[24])?|SQRT(?:1_2|2))(?:_F|_H)?|NAN|(?:UCHAR|UINT|ULONG|USHRT)_MAX)\b/,alias:"constant"}}),n.languages.insertBefore("opencl","class-name",{"builtin-type":{pattern:/\b(?:_cl_(?:command_queue|context|device_id|event|kernel|mem|platform_id|program|sampler)|cl_(?:image_format|mem_fence_flags)|clk_event_t|event_t|image(?:1d_(?:array_|buffer_)?t|2d_(?:array_(?:depth_|msaa_depth_|msaa_)?|depth_|msaa_depth_|msaa_)?t|3d_t)|intptr_t|ndrange_t|ptrdiff_t|queue_t|reserve_id_t|sampler_t|size_t|uintptr_t)\b/,alias:"keyword"}});var a={"type-opencl-host":{pattern:/\b(?:cl_(?:GLenum|GLint|GLuin|addressing_mode|bitfield|bool|buffer_create_type|build_status|channel_(?:order|type)|(?:u?(?:char|int|long|short)|double|float)(?:2|3|4|8|16)?|command_(?:queue(?:_info|_properties)?|type)|context(?:_info|_properties)?|device_(?:exec_capabilities|fp_config|id|info|local_mem_type|mem_cache_type|type)|(?:event|sampler)(?:_info)?|filter_mode|half|image_info|kernel(?:_info|_work_group_info)?|map_flags|mem(?:_flags|_info|_object_type)?|platform_(?:id|info)|profiling_info|program(?:_build_info|_info)?))\b/,alias:"keyword"},"boolean-opencl-host":{pattern:/\bCL_(?:FALSE|TRUE)\b/,alias:"boolean"},"constant-opencl-host":{pattern:/\bCL_(?:A|ABGR|ADDRESS_(?:CLAMP(?:_TO_EDGE)?|MIRRORED_REPEAT|NONE|REPEAT)|ARGB|BGRA|BLOCKING|BUFFER_CREATE_TYPE_REGION|BUILD_(?:ERROR|IN_PROGRESS|NONE|PROGRAM_FAILURE|SUCCESS)|COMMAND_(?:ACQUIRE_GL_OBJECTS|BARRIER|COPY_(?:BUFFER(?:_RECT|_TO_IMAGE)?|IMAGE(?:_TO_BUFFER)?)|FILL_(?:BUFFER|IMAGE)|MAP(?:_BUFFER|_IMAGE)|MARKER|MIGRATE(?:_SVM)?_MEM_OBJECTS|NATIVE_KERNEL|NDRANGE_KERNEL|READ_(?:BUFFER(?:_RECT)?|IMAGE)|RELEASE_GL_OBJECTS|SVM_(?:FREE|MAP|MEMCPY|MEMFILL|UNMAP)|TASK|UNMAP_MEM_OBJECT|USER|WRITE_(?:BUFFER(?:_RECT)?|IMAGE))|COMPILER_NOT_AVAILABLE|COMPILE_PROGRAM_FAILURE|COMPLETE|CONTEXT_(?:DEVICES|INTEROP_USER_SYNC|NUM_DEVICES|PLATFORM|PROPERTIES|REFERENCE_COUNT)|DEPTH(?:_STENCIL)?|DEVICE_(?:ADDRESS_BITS|AFFINITY_DOMAIN_(?:L[1-4]_CACHE|NEXT_PARTITIONABLE|NUMA)|AVAILABLE|BUILT_IN_KERNELS|COMPILER_AVAILABLE|DOUBLE_FP_CONFIG|ENDIAN_LITTLE|ERROR_CORRECTION_SUPPORT|EXECUTION_CAPABILITIES|EXTENSIONS|GLOBAL_(?:MEM_(?:CACHELINE_SIZE|CACHE_SIZE|CACHE_TYPE|SIZE)|VARIABLE_PREFERRED_TOTAL_SIZE)|HOST_UNIFIED_MEMORY|IL_VERSION|IMAGE(?:2D_MAX_(?:HEIGHT|WIDTH)|3D_MAX_(?:DEPTH|HEIGHT|WIDTH)|_BASE_ADDRESS_ALIGNMENT|_MAX_ARRAY_SIZE|_MAX_BUFFER_SIZE|_PITCH_ALIGNMENT|_SUPPORT)|LINKER_AVAILABLE|LOCAL_MEM_SIZE|LOCAL_MEM_TYPE|MAX_(?:CLOCK_FREQUENCY|COMPUTE_UNITS|CONSTANT_ARGS|CONSTANT_BUFFER_SIZE|GLOBAL_VARIABLE_SIZE|MEM_ALLOC_SIZE|NUM_SUB_GROUPS|ON_DEVICE_(?:EVENTS|QUEUES)|PARAMETER_SIZE|PIPE_ARGS|READ_IMAGE_ARGS|READ_WRITE_IMAGE_ARGS|SAMPLERS|WORK_GROUP_SIZE|WORK_ITEM_DIMENSIONS|WORK_ITEM_SIZES|WRITE_IMAGE_ARGS)|MEM_BASE_ADDR_ALIGN|MIN_DATA_TYPE_ALIGN_SIZE|NAME|NATIVE_VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT)|NOT_(?:AVAILABLE|FOUND)|OPENCL_C_VERSION|PARENT_DEVICE|PARTITION_(?:AFFINITY_DOMAIN|BY_AFFINITY_DOMAIN|BY_COUNTS|BY_COUNTS_LIST_END|EQUALLY|FAILED|MAX_SUB_DEVICES|PROPERTIES|TYPE)|PIPE_MAX_(?:ACTIVE_RESERVATIONS|PACKET_SIZE)|PLATFORM|PREFERRED_(?:GLOBAL_ATOMIC_ALIGNMENT|INTEROP_USER_SYNC|LOCAL_ATOMIC_ALIGNMENT|PLATFORM_ATOMIC_ALIGNMENT|VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT))|PRINTF_BUFFER_SIZE|PROFILE|PROFILING_TIMER_RESOLUTION|QUEUE_(?:ON_(?:DEVICE_(?:MAX_SIZE|PREFERRED_SIZE|PROPERTIES)|HOST_PROPERTIES)|PROPERTIES)|REFERENCE_COUNT|SINGLE_FP_CONFIG|SUB_GROUP_INDEPENDENT_FORWARD_PROGRESS|SVM_(?:ATOMICS|CAPABILITIES|COARSE_GRAIN_BUFFER|FINE_GRAIN_BUFFER|FINE_GRAIN_SYSTEM)|TYPE(?:_ACCELERATOR|_ALL|_CPU|_CUSTOM|_DEFAULT|_GPU)?|VENDOR(?:_ID)?|VERSION)|DRIVER_VERSION|EVENT_(?:COMMAND_(?:EXECUTION_STATUS|QUEUE|TYPE)|CONTEXT|REFERENCE_COUNT)|EXEC_(?:KERNEL|NATIVE_KERNEL|STATUS_ERROR_FOR_EVENTS_IN_WAIT_LIST)|FILTER_(?:LINEAR|NEAREST)|FLOAT|FP_(?:CORRECTLY_ROUNDED_DIVIDE_SQRT|DENORM|FMA|INF_NAN|ROUND_TO_INF|ROUND_TO_NEAREST|ROUND_TO_ZERO|SOFT_FLOAT)|GLOBAL|HALF_FLOAT|IMAGE_(?:ARRAY_SIZE|BUFFER|DEPTH|ELEMENT_SIZE|FORMAT|FORMAT_MISMATCH|FORMAT_NOT_SUPPORTED|HEIGHT|NUM_MIP_LEVELS|NUM_SAMPLES|ROW_PITCH|SLICE_PITCH|WIDTH)|INTENSITY|INVALID_(?:ARG_INDEX|ARG_SIZE|ARG_VALUE|BINARY|BUFFER_SIZE|BUILD_OPTIONS|COMMAND_QUEUE|COMPILER_OPTIONS|CONTEXT|DEVICE|DEVICE_PARTITION_COUNT|DEVICE_QUEUE|DEVICE_TYPE|EVENT|EVENT_WAIT_LIST|GLOBAL_OFFSET|GLOBAL_WORK_SIZE|GL_OBJECT|HOST_PTR|IMAGE_DESCRIPTOR|IMAGE_FORMAT_DESCRIPTOR|IMAGE_SIZE|KERNEL|KERNEL_ARGS|KERNEL_DEFINITION|KERNEL_NAME|LINKER_OPTIONS|MEM_OBJECT|MIP_LEVEL|OPERATION|PIPE_SIZE|PLATFORM|PROGRAM|PROGRAM_EXECUTABLE|PROPERTY|QUEUE_PROPERTIES|SAMPLER|VALUE|WORK_DIMENSION|WORK_GROUP_SIZE|WORK_ITEM_SIZE)|KERNEL_(?:ARG_(?:ACCESS_(?:NONE|QUALIFIER|READ_ONLY|READ_WRITE|WRITE_ONLY)|ADDRESS_(?:CONSTANT|GLOBAL|LOCAL|PRIVATE|QUALIFIER)|INFO_NOT_AVAILABLE|NAME|TYPE_(?:CONST|NAME|NONE|PIPE|QUALIFIER|RESTRICT|VOLATILE))|ATTRIBUTES|COMPILE_NUM_SUB_GROUPS|COMPILE_WORK_GROUP_SIZE|CONTEXT|EXEC_INFO_SVM_FINE_GRAIN_SYSTEM|EXEC_INFO_SVM_PTRS|FUNCTION_NAME|GLOBAL_WORK_SIZE|LOCAL_MEM_SIZE|LOCAL_SIZE_FOR_SUB_GROUP_COUNT|MAX_NUM_SUB_GROUPS|MAX_SUB_GROUP_SIZE_FOR_NDRANGE|NUM_ARGS|PREFERRED_WORK_GROUP_SIZE_MULTIPLE|PRIVATE_MEM_SIZE|PROGRAM|REFERENCE_COUNT|SUB_GROUP_COUNT_FOR_NDRANGE|WORK_GROUP_SIZE)|LINKER_NOT_AVAILABLE|LINK_PROGRAM_FAILURE|LOCAL|LUMINANCE|MAP_(?:FAILURE|READ|WRITE|WRITE_INVALIDATE_REGION)|MEM_(?:ALLOC_HOST_PTR|ASSOCIATED_MEMOBJECT|CONTEXT|COPY_HOST_PTR|COPY_OVERLAP|FLAGS|HOST_NO_ACCESS|HOST_PTR|HOST_READ_ONLY|HOST_WRITE_ONLY|KERNEL_READ_AND_WRITE|MAP_COUNT|OBJECT_(?:ALLOCATION_FAILURE|BUFFER|IMAGE1D|IMAGE1D_ARRAY|IMAGE1D_BUFFER|IMAGE2D|IMAGE2D_ARRAY|IMAGE3D|PIPE)|OFFSET|READ_ONLY|READ_WRITE|REFERENCE_COUNT|SIZE|SVM_ATOMICS|SVM_FINE_GRAIN_BUFFER|TYPE|USES_SVM_POINTER|USE_HOST_PTR|WRITE_ONLY)|MIGRATE_MEM_OBJECT_(?:CONTENT_UNDEFINED|HOST)|MISALIGNED_SUB_BUFFER_OFFSET|NONE|NON_BLOCKING|OUT_OF_(?:HOST_MEMORY|RESOURCES)|PIPE_(?:MAX_PACKETS|PACKET_SIZE)|PLATFORM_(?:EXTENSIONS|HOST_TIMER_RESOLUTION|NAME|PROFILE|VENDOR|VERSION)|PROFILING_(?:COMMAND_(?:COMPLETE|END|QUEUED|START|SUBMIT)|INFO_NOT_AVAILABLE)|PROGRAM_(?:BINARIES|BINARY_SIZES|BINARY_TYPE(?:_COMPILED_OBJECT|_EXECUTABLE|_LIBRARY|_NONE)?|BUILD_(?:GLOBAL_VARIABLE_TOTAL_SIZE|LOG|OPTIONS|STATUS)|CONTEXT|DEVICES|IL|KERNEL_NAMES|NUM_DEVICES|NUM_KERNELS|REFERENCE_COUNT|SOURCE)|QUEUED|QUEUE_(?:CONTEXT|DEVICE|DEVICE_DEFAULT|ON_DEVICE|ON_DEVICE_DEFAULT|OUT_OF_ORDER_EXEC_MODE_ENABLE|PROFILING_ENABLE|PROPERTIES|REFERENCE_COUNT|SIZE)|R|RA|READ_(?:ONLY|WRITE)_CACHE|RG|RGB|RGBA|RGBx|RGx|RUNNING|Rx|SAMPLER_(?:ADDRESSING_MODE|CONTEXT|FILTER_MODE|LOD_MAX|LOD_MIN|MIP_FILTER_MODE|NORMALIZED_COORDS|REFERENCE_COUNT)|(?:UN)?SIGNED_INT(?:8|16|32)|SNORM_INT(?:8|16)|SUBMITTED|SUCCESS|UNORM_INT(?:8|16|24|_101010|_101010_2)|UNORM_SHORT_(?:555|565)|VERSION_(?:1_0|1_1|1_2|2_0|2_1)|sBGRA|sRGB|sRGBA|sRGBx)\b/,alias:"constant"},"function-opencl-host":{pattern:/\bcl(?:BuildProgram|CloneKernel|CompileProgram|Create(?:Buffer|CommandQueue(?:WithProperties)?|Context|ContextFromType|Image|Image2D|Image3D|Kernel|KernelsInProgram|Pipe|ProgramWith(?:Binary|BuiltInKernels|IL|Source)|Sampler|SamplerWithProperties|SubBuffer|SubDevices|UserEvent)|Enqueue(?:(?:Barrier|Marker)(?:WithWaitList)?|Copy(?:Buffer(?:Rect|ToImage)?|Image(?:ToBuffer)?)|(?:Fill|Map)(?:Buffer|Image)|MigrateMemObjects|NDRangeKernel|NativeKernel|(?:Read|Write)(?:Buffer(?:Rect)?|Image)|SVM(?:Free|Map|MemFill|Memcpy|MigrateMem|Unmap)|Task|UnmapMemObject|WaitForEvents)|Finish|Flush|Get(?:CommandQueueInfo|ContextInfo|Device(?:AndHostTimer|IDs|Info)|Event(?:Profiling)?Info|ExtensionFunctionAddress(?:ForPlatform)?|HostTimer|ImageInfo|Kernel(?:ArgInfo|Info|SubGroupInfo|WorkGroupInfo)|MemObjectInfo|PipeInfo|Platform(?:IDs|Info)|Program(?:Build)?Info|SamplerInfo|SupportedImageFormats)|LinkProgram|(?:Release|Retain)(?:CommandQueue|Context|Device|Event|Kernel|MemObject|Program|Sampler)|SVM(?:Alloc|Free)|Set(?:CommandQueueProperty|DefaultDeviceCommandQueue|EventCallback|Kernel|Kernel(?:Arg(?:SVMPointer)?|ExecInfo)|MemObjectDestructorCallback|UserEventStatus)|Unload(?:Platform)?Compiler|WaitForEvents)\b/,alias:"function"}};n.languages.insertBefore("c","keyword",a),n.languages.cpp&&(a["type-opencl-host-cpp"]={pattern:/\b(?:Buffer|BufferGL|BufferRenderGL|CommandQueue|Context|Device|DeviceCommandQueue|EnqueueArgs|Event|Image|Image1D|Image1DArray|Image1DBuffer|Image2D|Image2DArray|Image2DGL|Image3D|Image3DGL|ImageFormat|ImageGL|Kernel|KernelFunctor|LocalSpaceArg|Memory|NDRange|Pipe|Platform|Program|SVMAllocator|SVMTraitAtomic|SVMTraitCoarse|SVMTraitFine|SVMTraitReadOnly|SVMTraitReadWrite|SVMTraitWriteOnly|Sampler|UserEvent)\b/,alias:"keyword"},n.languages.insertBefore("cpp","keyword",a))}(r)}return rg}var ng,J1;function Tae(){if(J1)return ng;J1=1,ng=e,e.displayName="openqasm",e.aliases=["qasm"];function e(t){t.languages.openqasm={comment:/\/\*[\s\S]*?\*\/|\/\/.*/,string:{pattern:/"[^"\r\n\t]*"|'[^'\r\n\t]*'/,greedy:!0},keyword:/\b(?:CX|OPENQASM|U|barrier|boxas|boxto|break|const|continue|ctrl|def|defcal|defcalgrammar|delay|else|end|for|gate|gphase|if|in|include|inv|kernel|lengthof|let|measure|pow|reset|return|rotary|stretchinf|while)\b|#pragma\b/,"class-name":/\b(?:angle|bit|bool|creg|fixed|float|int|length|qreg|qubit|stretch|uint)\b/,function:/\b(?:cos|exp|ln|popcount|rotl|rotr|sin|sqrt|tan)\b(?=\s*\()/,constant:/\b(?:euler|pi|tau)\b|π|𝜏|ℇ/,number:{pattern:/(^|[^.\w$])(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?(?:dt|ns|us|µs|ms|s)?/i,lookbehind:!0},operator:/->|>>=?|<<=?|&&|\|\||\+\+|--|[!=<>&|~^+\-*/%]=?|@/,punctuation:/[(){}\[\];,:.]/},t.languages.qasm=t.languages.openqasm}return ng}var ag,Q1;function Aae(){if(Q1)return ag;Q1=1,ag=e,e.displayName="oz",e.aliases=[];function e(t){t.languages.oz={comment:{pattern:/\/\*[\s\S]*?\*\/|%.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\[\s\S])*"/,greedy:!0},atom:{pattern:/'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,alias:"builtin"},keyword:/\$|\[\]|\b(?:_|at|attr|case|catch|choice|class|cond|declare|define|dis|else(?:case|if)?|end|export|fail|false|feat|finally|from|fun|functor|if|import|in|local|lock|meth|nil|not|of|or|prepare|proc|prop|raise|require|self|skip|then|thread|true|try|unit)\b/,function:[/\b[a-z][A-Za-z\d]*(?=\()/,{pattern:/(\{)[A-Z][A-Za-z\d]*\b/,lookbehind:!0}],number:/\b(?:0[bx][\da-f]+|\d+(?:\.\d*)?(?:e~?\d+)?)\b|&(?:[^\\]|\\(?:\d{3}|.))/i,variable:/`(?:[^`\\]|\\.)+`/,"attr-name":/\b\w+(?=[ \t]*:(?![:=]))/,operator:/:(?:=|::?)|<[-:=]?|=(?:=|=?:?|\\=:?|!!?|[|#+\-*\/,~^@]|\b(?:andthen|div|mod|orelse)\b/,punctuation:/[\[\](){}.:;?]/}}return ag}var ig,eT;function Oae(){if(eT)return ig;eT=1,ig=e,e.displayName="parigp",e.aliases=[];function e(t){t.languages.parigp={comment:/\/\*[\s\S]*?\*\/|\\\\.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"/,greedy:!0},keyword:function(){var r=["breakpoint","break","dbg_down","dbg_err","dbg_up","dbg_x","forcomposite","fordiv","forell","forpart","forprime","forstep","forsubgroup","forvec","for","iferr","if","local","my","next","return","until","while"];return r=r.map(function(n){return n.split("").join(" *")}).join("|"),RegExp("\\b(?:"+r+")\\b")}(),function:/\b\w(?:[\w ]*\w)?(?= *\()/,number:{pattern:/((?:\. *\. *)?)(?:\b\d(?: *\d)*(?: *(?!\. *\.)\.(?: *\d)*)?|\. *\d(?: *\d)*)(?: *e *(?:[+-] *)?\d(?: *\d)*)?/i,lookbehind:!0},operator:/\. *\.|[*\/!](?: *=)?|%(?: *=|(?: *#)?(?: *')*)?|\+(?: *[+=])?|-(?: *[-=>])?|<(?: *>|(?: *<)?(?: *=)?)?|>(?: *>)?(?: *=)?|=(?: *=){0,2}|\\(?: *\/)?(?: *=)?|&(?: *&)?|\| *\||['#~^]/,punctuation:/[\[\]{}().,:;|]/}}return ig}var og,tT;function kae(){if(tT)return og;tT=1,og=e,e.displayName="parser",e.aliases=[];function e(t){(function(r){var n=r.languages.parser=r.languages.extend("markup",{keyword:{pattern:/(^|[^^])(?:\^(?:case|eval|for|if|switch|throw)\b|@(?:BASE|CLASS|GET(?:_DEFAULT)?|OPTIONS|SET_DEFAULT|USE)\b)/,lookbehind:!0},variable:{pattern:/(^|[^^])\B\$(?:\w+|(?=[.{]))(?:(?:\.|::?)\w+)*(?:\.|::?)?/,lookbehind:!0,inside:{punctuation:/\.|:+/}},function:{pattern:/(^|[^^])\B[@^]\w+(?:(?:\.|::?)\w+)*(?:\.|::?)?/,lookbehind:!0,inside:{keyword:{pattern:/(^@)(?:GET_|SET_)/,lookbehind:!0},punctuation:/\.|:+/}},escape:{pattern:/\^(?:[$^;@()\[\]{}"':]|#[a-f\d]*)/i,alias:"builtin"},punctuation:/[\[\](){};]/});n=r.languages.insertBefore("parser","keyword",{"parser-comment":{pattern:/(\s)#.*/,lookbehind:!0,alias:"comment"},expression:{pattern:/(^|[^^])\((?:[^()]|\((?:[^()]|\((?:[^()])*\))*\))*\)/,greedy:!0,lookbehind:!0,inside:{string:{pattern:/(^|[^^])(["'])(?:(?!\2)[^^]|\^[\s\S])*\2/,lookbehind:!0},keyword:n.keyword,variable:n.variable,function:n.function,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[a-f\d]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?)\b/i,escape:n.escape,operator:/[~+*\/\\%]|!(?:\|\|?|=)?|&&?|\|\|?|==|<[<=]?|>[>=]?|-[fd]?|\b(?:def|eq|ge|gt|in|is|le|lt|ne)\b/,punctuation:n.punctuation}}}),r.languages.insertBefore("inside","punctuation",{expression:n.expression,keyword:n.keyword,variable:n.variable,function:n.function,escape:n.escape,"parser-punctuation":{pattern:n.punctuation,alias:"punctuation"}},n.tag.inside["attr-value"])})(t)}return og}var sg,rT;function Rae(){if(rT)return sg;rT=1,sg=e,e.displayName="pascal",e.aliases=["objectpascal"];function e(t){t.languages.pascal={directive:{pattern:/\{\$[\s\S]*?\}/,greedy:!0,alias:["marco","property"]},comment:{pattern:/\(\*[\s\S]*?\*\)|\{[\s\S]*?\}|\/\/.*/,greedy:!0},string:{pattern:/(?:'(?:''|[^'\r\n])*'(?!')|#[&$%]?[a-f\d]+)+|\^[a-z]/i,greedy:!0},asm:{pattern:/(\basm\b)[\s\S]+?(?=\bend\s*[;[])/i,lookbehind:!0,greedy:!0,inside:null},keyword:[{pattern:/(^|[^&])\b(?:absolute|array|asm|begin|case|const|constructor|destructor|do|downto|else|end|file|for|function|goto|if|implementation|inherited|inline|interface|label|nil|object|of|operator|packed|procedure|program|record|reintroduce|repeat|self|set|string|then|to|type|unit|until|uses|var|while|with)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:dispose|exit|false|new|true)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:class|dispinterface|except|exports|finalization|finally|initialization|inline|library|on|out|packed|property|raise|resourcestring|threadvar|try)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:absolute|abstract|alias|assembler|bitpacked|break|cdecl|continue|cppdecl|cvar|default|deprecated|dynamic|enumerator|experimental|export|external|far|far16|forward|generic|helper|implements|index|interrupt|iochecks|local|message|name|near|nodefault|noreturn|nostackframe|oldfpccall|otherwise|overload|override|pascal|platform|private|protected|public|published|read|register|reintroduce|result|safecall|saveregisters|softfloat|specialize|static|stdcall|stored|strict|unaligned|unimplemented|varargs|virtual|write)\b/i,lookbehind:!0}],number:[/(?:[&%]\d+|\$[a-f\d]+)/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?/i],operator:[/\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=]/,{pattern:/(^|[^&])\b(?:and|as|div|exclude|in|include|is|mod|not|or|shl|shr|xor)\b/,lookbehind:!0}],punctuation:/\(\.|\.\)|[()\[\]:;,.]/},t.languages.pascal.asm.inside=t.languages.extend("pascal",{asm:void 0,keyword:void 0,operator:void 0}),t.languages.objectpascal=t.languages.pascal}return sg}var lg,nT;function Iae(){if(nT)return lg;nT=1,lg=e,e.displayName="pascaligo",e.aliases=[];function e(t){(function(r){var n=/\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\)/.source,a=/(?:\b\w+(?:)?|)/.source.replace(//g,function(){return n}),i=r.languages.pascaligo={comment:/\(\*[\s\S]+?\*\)|\/\/.*/,string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1|\^[a-z]/i,greedy:!0},"class-name":[{pattern:RegExp(/(\btype\s+\w+\s+is\s+)/.source.replace(//g,function(){return a}),"i"),lookbehind:!0,inside:null},{pattern:RegExp(/(?=\s+is\b)/.source.replace(//g,function(){return a}),"i"),inside:null},{pattern:RegExp(/(:\s*)/.source.replace(//g,function(){return a})),lookbehind:!0,inside:null}],keyword:{pattern:/(^|[^&])\b(?:begin|block|case|const|else|end|fail|for|from|function|if|is|nil|of|remove|return|skip|then|type|var|while|with)\b/i,lookbehind:!0},boolean:{pattern:/(^|[^&])\b(?:False|True)\b/i,lookbehind:!0},builtin:{pattern:/(^|[^&])\b(?:bool|int|list|map|nat|record|string|unit)\b/i,lookbehind:!0},function:/\b\w+(?=\s*\()/,number:[/%[01]+|&[0-7]+|\$[a-f\d]+/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?(?:mtz|n)?/i],operator:/->|=\/=|\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=|]|\b(?:and|mod|or)\b/,punctuation:/\(\.|\.\)|[()\[\]:;,.{}]/},o=["comment","keyword","builtin","operator","punctuation"].reduce(function(s,l){return s[l]=i[l],s},{});i["class-name"].forEach(function(s){s.inside=o})})(t)}return lg}var ug,aT;function Cae(){if(aT)return ug;aT=1,ug=e,e.displayName="pcaxis",e.aliases=["px"];function e(t){t.languages.pcaxis={string:/"[^"]*"/,keyword:{pattern:/((?:^|;)\s*)[-A-Z\d]+(?:\s*\[[-\w]+\])?(?:\s*\("[^"]*"(?:,\s*"[^"]*")*\))?(?=\s*=)/,lookbehind:!0,greedy:!0,inside:{keyword:/^[-A-Z\d]+/,language:{pattern:/^(\s*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/^\[|\]$/,property:/[-\w]+/}},"sub-key":{pattern:/^(\s*)\S[\s\S]*/,lookbehind:!0,inside:{parameter:{pattern:/"[^"]*"/,alias:"property"},punctuation:/^\(|\)$|,/}}}},operator:/=/,tlist:{pattern:/TLIST\s*\(\s*\w+(?:(?:\s*,\s*"[^"]*")+|\s*,\s*"[^"]*"-"[^"]*")?\s*\)/,greedy:!0,inside:{function:/^TLIST/,property:{pattern:/^(\s*\(\s*)\w+/,lookbehind:!0},string:/"[^"]*"/,punctuation:/[(),]/,operator:/-/}},punctuation:/[;,]/,number:{pattern:/(^|\s)\d+(?:\.\d+)?(?!\S)/,lookbehind:!0},boolean:/NO|YES/},t.languages.px=t.languages.pcaxis}return ug}var cg,iT;function Nae(){if(iT)return cg;iT=1,cg=e,e.displayName="peoplecode",e.aliases=["pcode"];function e(t){t.languages.peoplecode={comment:RegExp([/\/\*[\s\S]*?\*\//.source,/\bREM[^;]*;/.source,/<\*(?:[^<*]|\*(?!>)|<(?!\*)|<\*(?:(?!\*>)[\s\S])*\*>)*\*>/.source,/\/\+[\s\S]*?\+\//.source].join("|")),string:{pattern:/'(?:''|[^'\r\n])*'(?!')|"(?:""|[^"\r\n])*"(?!")/,greedy:!0},variable:/%\w+/,"function-definition":{pattern:/((?:^|[^\w-])(?:function|method)\s+)\w+/i,lookbehind:!0,alias:"function"},"class-name":{pattern:/((?:^|[^-\w])(?:as|catch|class|component|create|extends|global|implements|instance|local|of|property|returns)\s+)\w+(?::\w+)*/i,lookbehind:!0,inside:{punctuation:/:/}},keyword:/\b(?:abstract|alias|as|catch|class|component|constant|create|declare|else|end-(?:class|evaluate|for|function|get|if|method|set|try|while)|evaluate|extends|for|function|get|global|if|implements|import|instance|library|local|method|null|of|out|peopleCode|private|program|property|protected|readonly|ref|repeat|returns?|set|step|then|throw|to|try|until|value|when(?:-other)?|while)\b/i,"operator-keyword":{pattern:/\b(?:and|not|or)\b/i,alias:"operator"},function:/[_a-z]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/\b\d+(?:\.\d+)?\b/,operator:/<>|[<>]=?|!=|\*\*|[-+*/|=@]/,punctuation:/[:.;,()[\]]/},t.languages.pcode=t.languages.peoplecode}return cg}var dg,oT;function Lae(){if(oT)return dg;oT=1,dg=e,e.displayName="perl",e.aliases=[];function e(t){(function(r){var n=/(?:\((?:[^()\\]|\\[\s\S])*\)|\{(?:[^{}\\]|\\[\s\S])*\}|\[(?:[^[\]\\]|\\[\s\S])*\]|<(?:[^<>\\]|\\[\s\S])*>)/.source;r.languages.perl={comment:[{pattern:/(^\s*)=\w[\s\S]*?=cut.*/m,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],string:[{pattern:RegExp(/\b(?:q|qq|qw|qx)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,n].join("|")+")"),greedy:!0},{pattern:/("|`)(?:(?!\1)[^\\]|\\[\s\S])*\1/,greedy:!0},{pattern:/'(?:[^'\\\r\n]|\\.)*'/,greedy:!0}],regex:[{pattern:RegExp(/\b(?:m|qr)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,n].join("|")+")"+/[msixpodualngc]*/.source),greedy:!0},{pattern:RegExp(/(^|[^-])\b(?:s|tr|y)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\2)[^\\]|\\[\s\S])*\2(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,/([a-zA-Z0-9])(?:(?!\3)[^\\]|\\[\s\S])*\3(?:(?!\3)[^\\]|\\[\s\S])*\3/.source,n+/\s*/.source+n].join("|")+")"+/[msixpodualngcer]*/.source),lookbehind:!0,greedy:!0},{pattern:/\/(?:[^\/\\\r\n]|\\.)*\/[msixpodualngc]*(?=\s*(?:$|[\r\n,.;})&|\-+*~<>!?^]|(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|x|xor)\b))/,greedy:!0}],variable:[/[&*$@%]\{\^[A-Z]+\}/,/[&*$@%]\^[A-Z_]/,/[&*$@%]#?(?=\{)/,/[&*$@%]#?(?:(?:::)*'?(?!\d)[\w$]+(?![\w$]))+(?:::)*/,/[&*$@%]\d+/,/(?!%=)[$@%][!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~]/],filehandle:{pattern:/<(?![<=])\S*?>|\b_\b/,alias:"symbol"},"v-string":{pattern:/v\d+(?:\.\d+)*|\d+(?:\.\d+){2,}/,alias:"string"},function:{pattern:/(\bsub[ \t]+)\w+/,lookbehind:!0},keyword:/\b(?:any|break|continue|default|delete|die|do|else|elsif|eval|for|foreach|given|goto|if|last|local|my|next|our|package|print|redo|require|return|say|state|sub|switch|undef|unless|until|use|when|while)\b/,number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)\b/,operator:/-[rwxoRWXOezsfdlpSbctugkTBMAC]\b|\+[+=]?|-[-=>]?|\*\*?=?|\/\/?=?|=[=~>]?|~[~=]?|\|\|?=?|&&?=?|<(?:=>?|<=?)?|>>?=?|![~=]?|[%^]=?|\.(?:=|\.\.?)?|[\\?]|\bx(?:=|\b)|\b(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|xor)\b/,punctuation:/[{}[\];(),:]/}})(t)}return dg}var pg,sT;function Dae(){if(sT)return pg;sT=1;var e=ju();pg=t,t.displayName="phpExtras",t.aliases=[];function t(r){r.register(e),r.languages.insertBefore("php","variable",{this:{pattern:/\$this\b/,alias:"keyword"},global:/\$(?:GLOBALS|HTTP_RAW_POST_DATA|_(?:COOKIE|ENV|FILES|GET|POST|REQUEST|SERVER|SESSION)|argc|argv|http_response_header|php_errormsg)\b/,scope:{pattern:/\b[\w\\]+::/,inside:{keyword:/\b(?:parent|self|static)\b/,punctuation:/::|\\/}}})}return pg}var fg,lT;function Mae(){if(lT)return fg;lT=1;var e=ju(),t=$u();fg=r,r.displayName="phpdoc",r.aliases=[];function r(n){n.register(e),n.register(t),function(a){var i=/(?:\b[a-zA-Z]\w*|[|\\[\]])+/.source;a.languages.phpdoc=a.languages.extend("javadoclike",{parameter:{pattern:RegExp("(@(?:global|param|property(?:-read|-write)?|var)\\s+(?:"+i+"\\s+)?)\\$\\w+"),lookbehind:!0}}),a.languages.insertBefore("phpdoc","keyword",{"class-name":[{pattern:RegExp("(@(?:global|package|param|property(?:-read|-write)?|return|subpackage|throws|var)\\s+)"+i),lookbehind:!0,inside:{keyword:/\b(?:array|bool|boolean|callback|double|false|float|int|integer|mixed|null|object|resource|self|string|true|void)\b/,punctuation:/[|\\[\]()]/}}]}),a.languages.javadoclike.addSupport("php",a.languages.phpdoc)}(n)}return fg}var gg,uT;function Pae(){if(uT)return gg;uT=1;var e=zy();gg=t,t.displayName="plsql",t.aliases=[];function t(r){r.register(e),r.languages.plsql=r.languages.extend("sql",{comment:{pattern:/\/\*[\s\S]*?\*\/|--.*/,greedy:!0},keyword:/\b(?:A|ACCESSIBLE|ADD|AGENT|AGGREGATE|ALL|ALTER|AND|ANY|ARRAY|AS|ASC|AT|ATTRIBUTE|AUTHID|AVG|BEGIN|BETWEEN|BFILE_BASE|BINARY|BLOB_BASE|BLOCK|BODY|BOTH|BOUND|BULK|BY|BYTE|C|CALL|CALLING|CASCADE|CASE|CHAR|CHARACTER|CHARSET|CHARSETFORM|CHARSETID|CHAR_BASE|CHECK|CLOB_BASE|CLONE|CLOSE|CLUSTER|CLUSTERS|COLAUTH|COLLECT|COLUMNS|COMMENT|COMMIT|COMMITTED|COMPILED|COMPRESS|CONNECT|CONSTANT|CONSTRUCTOR|CONTEXT|CONTINUE|CONVERT|COUNT|CRASH|CREATE|CREDENTIAL|CURRENT|CURSOR|CUSTOMDATUM|DANGLING|DATA|DATE|DATE_BASE|DAY|DECLARE|DEFAULT|DEFINE|DELETE|DESC|DETERMINISTIC|DIRECTORY|DISTINCT|DOUBLE|DROP|DURATION|ELEMENT|ELSE|ELSIF|EMPTY|END|ESCAPE|EXCEPT|EXCEPTION|EXCEPTIONS|EXCLUSIVE|EXECUTE|EXISTS|EXIT|EXTERNAL|FETCH|FINAL|FIRST|FIXED|FLOAT|FOR|FORALL|FORCE|FROM|FUNCTION|GENERAL|GOTO|GRANT|GROUP|HASH|HAVING|HEAP|HIDDEN|HOUR|IDENTIFIED|IF|IMMEDIATE|IMMUTABLE|IN|INCLUDING|INDEX|INDEXES|INDICATOR|INDICES|INFINITE|INSERT|INSTANTIABLE|INT|INTERFACE|INTERSECT|INTERVAL|INTO|INVALIDATE|IS|ISOLATION|JAVA|LANGUAGE|LARGE|LEADING|LENGTH|LEVEL|LIBRARY|LIKE|LIKE2|LIKE4|LIKEC|LIMIT|LIMITED|LOCAL|LOCK|LONG|LOOP|MAP|MAX|MAXLEN|MEMBER|MERGE|MIN|MINUS|MINUTE|MOD|MODE|MODIFY|MONTH|MULTISET|MUTABLE|NAME|NAN|NATIONAL|NATIVE|NCHAR|NEW|NOCOMPRESS|NOCOPY|NOT|NOWAIT|NULL|NUMBER_BASE|OBJECT|OCICOLL|OCIDATE|OCIDATETIME|OCIDURATION|OCIINTERVAL|OCILOBLOCATOR|OCINUMBER|OCIRAW|OCIREF|OCIREFCURSOR|OCIROWID|OCISTRING|OCITYPE|OF|OLD|ON|ONLY|OPAQUE|OPEN|OPERATOR|OPTION|OR|ORACLE|ORADATA|ORDER|ORGANIZATION|ORLANY|ORLVARY|OTHERS|OUT|OVERLAPS|OVERRIDING|PACKAGE|PARALLEL_ENABLE|PARAMETER|PARAMETERS|PARENT|PARTITION|PASCAL|PERSISTABLE|PIPE|PIPELINED|PLUGGABLE|POLYMORPHIC|PRAGMA|PRECISION|PRIOR|PRIVATE|PROCEDURE|PUBLIC|RAISE|RANGE|RAW|READ|RECORD|REF|REFERENCE|RELIES_ON|REM|REMAINDER|RENAME|RESOURCE|RESULT|RESULT_CACHE|RETURN|RETURNING|REVERSE|REVOKE|ROLLBACK|ROW|SAMPLE|SAVE|SAVEPOINT|SB1|SB2|SB4|SECOND|SEGMENT|SELECT|SELF|SEPARATE|SEQUENCE|SERIALIZABLE|SET|SHARE|SHORT|SIZE|SIZE_T|SOME|SPARSE|SQL|SQLCODE|SQLDATA|SQLNAME|SQLSTATE|STANDARD|START|STATIC|STDDEV|STORED|STRING|STRUCT|STYLE|SUBMULTISET|SUBPARTITION|SUBSTITUTABLE|SUBTYPE|SUM|SYNONYM|TABAUTH|TABLE|TDO|THE|THEN|TIME|TIMESTAMP|TIMEZONE_ABBR|TIMEZONE_HOUR|TIMEZONE_MINUTE|TIMEZONE_REGION|TO|TRAILING|TRANSACTION|TRANSACTIONAL|TRUSTED|TYPE|UB1|UB2|UB4|UNDER|UNION|UNIQUE|UNPLUG|UNSIGNED|UNTRUSTED|UPDATE|USE|USING|VALIST|VALUE|VALUES|VARIABLE|VARIANCE|VARRAY|VARYING|VIEW|VIEWS|VOID|WHEN|WHERE|WHILE|WITH|WORK|WRAPPED|WRITE|YEAR|ZONE)\b/i,operator:/:=?|=>|[<>^~!]=|\.\.|\|\||\*\*|[-+*/%<>=@]/}),r.languages.insertBefore("plsql","operator",{label:{pattern:/<<\s*\w+\s*>>/,alias:"symbol"}})}return gg}var hg,cT;function $ae(){if(cT)return hg;cT=1,hg=e,e.displayName="powerquery",e.aliases=[];function e(t){t.languages.powerquery={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},"quoted-identifier":{pattern:/#"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},string:{pattern:/(?:#!)?"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},constant:[/\bDay\.(?:Friday|Monday|Saturday|Sunday|Thursday|Tuesday|Wednesday)\b/,/\bTraceLevel\.(?:Critical|Error|Information|Verbose|Warning)\b/,/\bOccurrence\.(?:All|First|Last)\b/,/\bOrder\.(?:Ascending|Descending)\b/,/\bRoundingMode\.(?:AwayFromZero|Down|ToEven|TowardZero|Up)\b/,/\bMissingField\.(?:Error|Ignore|UseNull)\b/,/\bQuoteStyle\.(?:Csv|None)\b/,/\bJoinKind\.(?:FullOuter|Inner|LeftAnti|LeftOuter|RightAnti|RightOuter)\b/,/\bGroupKind\.(?:Global|Local)\b/,/\bExtraValues\.(?:Error|Ignore|List)\b/,/\bJoinAlgorithm\.(?:Dynamic|LeftHash|LeftIndex|PairwiseHash|RightHash|RightIndex|SortMerge)\b/,/\bJoinSide\.(?:Left|Right)\b/,/\bPrecision\.(?:Decimal|Double)\b/,/\bRelativePosition\.From(?:End|Start)\b/,/\bTextEncoding\.(?:Ascii|BigEndianUnicode|Unicode|Utf16|Utf8|Windows)\b/,/\b(?:Any|Binary|Date|DateTime|DateTimeZone|Duration|Function|Int16|Int32|Int64|Int8|List|Logical|None|Number|Record|Table|Text|Time)\.Type\b/,/\bnull\b/],boolean:/\b(?:false|true)\b/,keyword:/\b(?:and|as|each|else|error|if|in|is|let|meta|not|nullable|optional|or|otherwise|section|shared|then|try|type)\b|#(?:binary|date|datetime|datetimezone|duration|infinity|nan|sections|shared|table|time)\b/,function:{pattern:/(^|[^#\w.])[a-z_][\w.]*(?=\s*\()/i,lookbehind:!0},"data-type":{pattern:/\b(?:any|anynonnull|binary|date|datetime|datetimezone|duration|function|list|logical|none|number|record|table|text|time)\b/,alias:"class-name"},number:{pattern:/\b0x[\da-f]+\b|(?:[+-]?(?:\b\d+\.)?\b\d+|[+-]\.\d+|(^|[^.])\B\.\d+)(?:e[+-]?\d+)?\b/i,lookbehind:!0},operator:/[-+*\/&?@^]|<(?:=>?|>)?|>=?|=>?|\.\.\.?/,punctuation:/[,;\[\](){}]/},t.languages.pq=t.languages.powerquery,t.languages.mscript=t.languages.powerquery}return hg}var mg,dT;function jae(){if(dT)return mg;dT=1,mg=e,e.displayName="powershell",e.aliases=[];function e(t){(function(r){var n=r.languages.powershell={comment:[{pattern:/(^|[^`])<#[\s\S]*?#>/,lookbehind:!0},{pattern:/(^|[^`])#.*/,lookbehind:!0}],string:[{pattern:/"(?:`[\s\S]|[^`"])*"/,greedy:!0,inside:null},{pattern:/'(?:[^']|'')*'/,greedy:!0}],namespace:/\[[a-z](?:\[(?:\[[^\]]*\]|[^\[\]])*\]|[^\[\]])*\]/i,boolean:/\$(?:false|true)\b/i,variable:/\$\w+\b/,function:[/\b(?:Add|Approve|Assert|Backup|Block|Checkpoint|Clear|Close|Compare|Complete|Compress|Confirm|Connect|Convert|ConvertFrom|ConvertTo|Copy|Debug|Deny|Disable|Disconnect|Dismount|Edit|Enable|Enter|Exit|Expand|Export|Find|ForEach|Format|Get|Grant|Group|Hide|Import|Initialize|Install|Invoke|Join|Limit|Lock|Measure|Merge|Move|New|Open|Optimize|Out|Ping|Pop|Protect|Publish|Push|Read|Receive|Redo|Register|Remove|Rename|Repair|Request|Reset|Resize|Resolve|Restart|Restore|Resume|Revoke|Save|Search|Select|Send|Set|Show|Skip|Sort|Split|Start|Step|Stop|Submit|Suspend|Switch|Sync|Tee|Test|Trace|Unblock|Undo|Uninstall|Unlock|Unprotect|Unpublish|Unregister|Update|Use|Wait|Watch|Where|Write)-[a-z]+\b/i,/\b(?:ac|cat|chdir|clc|cli|clp|clv|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|ebp|echo|epal|epcsv|epsn|erase|fc|fl|ft|fw|gal|gbp|gc|gci|gcs|gdr|gi|gl|gm|gp|gps|group|gsv|gu|gv|gwmi|iex|ii|ipal|ipcsv|ipsn|irm|iwmi|iwr|kill|lp|ls|measure|mi|mount|move|mp|mv|nal|ndr|ni|nv|ogv|popd|ps|pushd|pwd|rbp|rd|rdr|ren|ri|rm|rmdir|rni|rnp|rp|rv|rvpa|rwmi|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls|sort|sp|spps|spsv|start|sv|swmi|tee|trcm|type|write)\b/i],keyword:/\b(?:Begin|Break|Catch|Class|Continue|Data|Define|Do|DynamicParam|Else|ElseIf|End|Exit|Filter|Finally|For|ForEach|From|Function|If|InlineScript|Parallel|Param|Process|Return|Sequence|Switch|Throw|Trap|Try|Until|Using|Var|While|Workflow)\b/i,operator:{pattern:/(^|\W)(?:!|-(?:b?(?:and|x?or)|as|(?:Not)?(?:Contains|In|Like|Match)|eq|ge|gt|is(?:Not)?|Join|le|lt|ne|not|Replace|sh[lr])\b|-[-=]?|\+[+=]?|[*\/%]=?)/i,lookbehind:!0},punctuation:/[|{}[\];(),.]/};n.string[0].inside={function:{pattern:/(^|[^`])\$\((?:\$\([^\r\n()]*\)|(?!\$\()[^\r\n)])*\)/,lookbehind:!0,inside:n},boolean:n.boolean,variable:n.variable}})(t)}return mg}var bg,pT;function Fae(){if(pT)return bg;pT=1,bg=e,e.displayName="processing",e.aliases=[];function e(t){t.languages.processing=t.languages.extend("clike",{keyword:/\b(?:break|case|catch|class|continue|default|else|extends|final|for|if|implements|import|new|null|private|public|return|static|super|switch|this|try|void|while)\b/,function:/\b\w+(?=\s*\()/,operator:/<[<=]?|>[>=]?|&&?|\|\|?|[%?]|[!=+\-*\/]=?/}),t.languages.insertBefore("processing","number",{constant:/\b(?!XML\b)[A-Z][A-Z\d_]+\b/,type:{pattern:/\b(?:boolean|byte|char|color|double|float|int|[A-Z]\w*)\b/,alias:"class-name"}})}return bg}var yg,fT;function Bae(){if(fT)return yg;fT=1,yg=e,e.displayName="prolog",e.aliases=[];function e(t){t.languages.prolog={comment:{pattern:/\/\*[\s\S]*?\*\/|%.*/,greedy:!0},string:{pattern:/(["'])(?:\1\1|\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1(?!\1)/,greedy:!0},builtin:/\b(?:fx|fy|xf[xy]?|yfx?)\b/,function:/\b[a-z]\w*(?:(?=\()|\/\d+)/,number:/\b\d+(?:\.\d*)?/,operator:/[:\\=><\-?*@\/;+^|!$.]+|\b(?:is|mod|not|xor)\b/,punctuation:/[(){}\[\],]/}}return yg}var vg,gT;function Uae(){if(gT)return vg;gT=1,vg=e,e.displayName="promql",e.aliases=[];function e(t){(function(r){var n=["sum","min","max","avg","group","stddev","stdvar","count","count_values","bottomk","topk","quantile"],a=["on","ignoring","group_right","group_left","by","without"],i=["offset"],o=n.concat(a,i);r.languages.promql={comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},"vector-match":{pattern:new RegExp("((?:"+a.join("|")+")\\s*)\\([^)]*\\)"),lookbehind:!0,inside:{"label-key":{pattern:/\b[^,]+\b/,alias:"attr-name"},punctuation:/[(),]/}},"context-labels":{pattern:/\{[^{}]*\}/,inside:{"label-key":{pattern:/\b[a-z_]\w*(?=\s*(?:=|![=~]))/,alias:"attr-name"},"label-value":{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0,alias:"attr-value"},punctuation:/\{|\}|=~?|![=~]|,/}},"context-range":[{pattern:/\[[\w\s:]+\]/,inside:{punctuation:/\[|\]|:/,"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}},{pattern:/(\boffset\s+)\w+/,lookbehind:!0,inside:{"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}}],keyword:new RegExp("\\b(?:"+o.join("|")+")\\b","i"),function:/\b[a-z_]\w*(?=\s*\()/i,number:/[-+]?(?:(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[-+]?\d+)?\b|\b(?:0x[0-9a-f]+|nan|inf)\b)/i,operator:/[\^*/%+-]|==|!=|<=|<|>=|>|\b(?:and|or|unless)\b/i,punctuation:/[{};()`,.[\]]/}})(t)}return vg}var Sg,hT;function Gae(){if(hT)return Sg;hT=1,Sg=e,e.displayName="properties",e.aliases=[];function e(t){t.languages.properties={comment:/^[ \t]*[#!].*$/m,"attr-value":{pattern:/(^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?: *[=:] *(?! )| ))(?:\\(?:\r\n|[\s\S])|[^\\\r\n])+/m,lookbehind:!0},"attr-name":/^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?= *[=:]| )/m,punctuation:/[=:]/}}return Sg}var Eg,mT;function zae(){if(mT)return Eg;mT=1,Eg=e,e.displayName="protobuf",e.aliases=[];function e(t){(function(r){var n=/\b(?:bool|bytes|double|s?fixed(?:32|64)|float|[su]?int(?:32|64)|string)\b/;r.languages.protobuf=r.languages.extend("clike",{"class-name":[{pattern:/(\b(?:enum|extend|message|service)\s+)[A-Za-z_]\w*(?=\s*\{)/,lookbehind:!0},{pattern:/(\b(?:rpc\s+\w+|returns)\s*\(\s*(?:stream\s+)?)\.?[A-Za-z_]\w*(?:\.[A-Za-z_]\w*)*(?=\s*\))/,lookbehind:!0}],keyword:/\b(?:enum|extend|extensions|import|message|oneof|option|optional|package|public|repeated|required|reserved|returns|rpc(?=\s+\w)|service|stream|syntax|to)\b(?!\s*=\s*\d)/,function:/\b[a-z_]\w*(?=\s*\()/i}),r.languages.insertBefore("protobuf","operator",{map:{pattern:/\bmap<\s*[\w.]+\s*,\s*[\w.]+\s*>(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/[<>.,]/,builtin:n}},builtin:n,"positional-class-name":{pattern:/(?:\b|\B\.)[a-z_]\w*(?:\.[a-z_]\w*)*(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/\./}},annotation:{pattern:/(\[\s*)[a-z_]\w*(?=\s*=)/i,lookbehind:!0}})})(t)}return Eg}var xg,bT;function qae(){if(bT)return xg;bT=1,xg=e,e.displayName="psl",e.aliases=[];function e(t){t.languages.psl={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"(?:\\.|[^\\"])*"/,greedy:!0,inside:{symbol:/\\[ntrbA-Z"\\]/}},"heredoc-string":{pattern:/<<<([a-zA-Z_]\w*)[\r\n](?:.*[\r\n])*?\1\b/,alias:"string",greedy:!0},keyword:/\b(?:__multi|__single|case|default|do|else|elsif|exit|export|for|foreach|function|if|last|line|local|next|requires|return|switch|until|while|word)\b/,constant:/\b(?:ALARM|CHART_ADD_GRAPH|CHART_DELETE_GRAPH|CHART_DESTROY|CHART_LOAD|CHART_PRINT|EOF|OFFLINE|OK|PSL_PROF_LOG|R_CHECK_HORIZ|R_CHECK_VERT|R_CLICKER|R_COLUMN|R_FRAME|R_ICON|R_LABEL|R_LABEL_CENTER|R_LIST_MULTIPLE|R_LIST_MULTIPLE_ND|R_LIST_SINGLE|R_LIST_SINGLE_ND|R_MENU|R_POPUP|R_POPUP_SCROLLED|R_RADIO_HORIZ|R_RADIO_VERT|R_ROW|R_SCALE_HORIZ|R_SCALE_VERT|R_SEP_HORIZ|R_SEP_VERT|R_SPINNER|R_TEXT_FIELD|R_TEXT_FIELD_LABEL|R_TOGGLE|TRIM_LEADING|TRIM_LEADING_AND_TRAILING|TRIM_REDUNDANT|TRIM_TRAILING|VOID|WARN)\b/,boolean:/\b(?:FALSE|False|NO|No|TRUE|True|YES|Yes|false|no|true|yes)\b/,variable:/\b(?:PslDebug|errno|exit_status)\b/,builtin:{pattern:/\b(?:PslExecute|PslFunctionCall|PslFunctionExists|PslSetOptions|_snmp_debug|acos|add_diary|annotate|annotate_get|ascii_to_ebcdic|asctime|asin|atan|atexit|batch_set|blackout|cat|ceil|chan_exists|change_state|close|code_cvt|cond_signal|cond_wait|console_type|convert_base|convert_date|convert_locale_date|cos|cosh|create|date|dcget_text|destroy|destroy_lock|dget_text|difference|dump_hist|ebcdic_to_ascii|encrypt|event_archive|event_catalog_get|event_check|event_query|event_range_manage|event_range_query|event_report|event_schedule|event_trigger|event_trigger2|execute|exists|exp|fabs|file|floor|fmod|fopen|fseek|ftell|full_discovery|get|get_chan_info|get_ranges|get_text|get_vars|getenv|gethostinfo|getpid|getpname|grep|history|history_get_retention|in_transition|index|int|internal|intersection|is_var|isnumber|join|kill|length|lines|lock|lock_info|log|log10|loge|matchline|msg_check|msg_get_format|msg_get_severity|msg_printf|msg_sprintf|ntharg|nthargf|nthline|nthlinef|num_bytes|num_consoles|pconfig|popen|poplines|pow|print|printf|proc_exists|process|random|read|readln|refresh_parameters|remote_check|remote_close|remote_event_query|remote_event_trigger|remote_file_send|remote_open|remove|replace|rindex|sec_check_priv|sec_store_get|sec_store_set|set|set_alarm_ranges|set_locale|share|sin|sinh|sleep|snmp_agent_config|snmp_agent_start|snmp_agent_stop|snmp_close|snmp_config|snmp_get|snmp_get_next|snmp_h_get|snmp_h_get_next|snmp_h_set|snmp_open|snmp_set|snmp_trap_ignore|snmp_trap_listen|snmp_trap_raise_std_trap|snmp_trap_receive|snmp_trap_register_im|snmp_trap_send|snmp_walk|sopen|sort|splitline|sprintf|sqrt|srandom|str_repeat|strcasecmp|subset|substr|system|tail|tan|tanh|text_domain|time|tmpnam|tolower|toupper|trace_psl_process|trim|union|unique|unlock|unset|va_arg|va_start|write)\b/,alias:"builtin-function"},"foreach-variable":{pattern:/(\bforeach\s+(?:(?:\w+\b|"(?:\\.|[^\\"])*")\s+){0,2})[_a-zA-Z]\w*(?=\s*\()/,lookbehind:!0,greedy:!0},function:/\b[_a-z]\w*\b(?=\s*\()/i,number:/\b(?:0x[0-9a-f]+|\d+(?:\.\d+)?)\b/i,operator:/--|\+\+|&&=?|\|\|=?|<<=?|>>=?|[=!]~|[-+*/%&|^!=<>]=?|\.|[:?]/,punctuation:/[(){}\[\];,]/}}return xg}var wg,yT;function Hae(){if(yT)return wg;yT=1,wg=e,e.displayName="pug",e.aliases=[];function e(t){(function(r){r.languages.pug={comment:{pattern:/(^([\t ]*))\/\/.*(?:(?:\r?\n|\r)\2[\t ].+)*/m,lookbehind:!0},"multiline-script":{pattern:/(^([\t ]*)script\b.*\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:r.languages.javascript},filter:{pattern:/(^([\t ]*)):.+(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:/\S[\s\S]*/}},"multiline-plain-text":{pattern:/(^([\t ]*)[\w\-#.]+\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0},markup:{pattern:/(^[\t ]*)<.+/m,lookbehind:!0,inside:r.languages.markup},doctype:{pattern:/((?:^|\n)[\t ]*)doctype(?: .+)?/,lookbehind:!0},"flow-control":{pattern:/(^[\t ]*)(?:case|default|each|else|if|unless|when|while)\b(?: .+)?/m,lookbehind:!0,inside:{each:{pattern:/^each .+? in\b/,inside:{keyword:/\b(?:each|in)\b/,punctuation:/,/}},branch:{pattern:/^(?:case|default|else|if|unless|when|while)\b/,alias:"keyword"},rest:r.languages.javascript}},keyword:{pattern:/(^[\t ]*)(?:append|block|extends|include|prepend)\b.+/m,lookbehind:!0},mixin:[{pattern:/(^[\t ]*)mixin .+/m,lookbehind:!0,inside:{keyword:/^mixin/,function:/\w+(?=\s*\(|\s*$)/,punctuation:/[(),.]/}},{pattern:/(^[\t ]*)\+.+/m,lookbehind:!0,inside:{name:{pattern:/^\+\w+/,alias:"function"},rest:r.languages.javascript}}],script:{pattern:/(^[\t ]*script(?:(?:&[^(]+)?\([^)]+\))*[\t ]).+/m,lookbehind:!0,inside:r.languages.javascript},"plain-text":{pattern:/(^[\t ]*(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?[\t ]).+/m,lookbehind:!0},tag:{pattern:/(^[\t ]*)(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?:?/m,lookbehind:!0,inside:{attributes:[{pattern:/&[^(]+\([^)]+\)/,inside:r.languages.javascript},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*(?!\s))(?:\{[^}]*\}|[^,)\r\n]+)/,lookbehind:!0,inside:r.languages.javascript},"attr-name":/[\w-]+(?=\s*!?=|\s*[,)])/,punctuation:/[!=(),]+/}}],punctuation:/:/,"attr-id":/#[\w\-]+/,"attr-class":/\.[\w\-]+/}},code:[{pattern:/(^[\t ]*(?:-|!?=)).+/m,lookbehind:!0,inside:r.languages.javascript}],punctuation:/[.\-!=|]+/};for(var n=/(^([\t ]*)):(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/.source,a=[{filter:"atpl",language:"twig"},{filter:"coffee",language:"coffeescript"},"ejs","handlebars","less","livescript","markdown",{filter:"sass",language:"scss"},"stylus"],i={},o=0,s=a.length;o",function(){return l.filter}),"m"),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:{pattern:/\S[\s\S]*/,alias:[l.language,"language-"+l.language],inside:r.languages[l.language]}}})}r.languages.insertBefore("pug","filter",i)})(t)}return wg}var _g,vT;function Wae(){if(vT)return _g;vT=1,_g=e,e.displayName="puppet",e.aliases=[];function e(t){(function(r){r.languages.puppet={heredoc:[{pattern:/(@\("([^"\r\n\/):]+)"(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/(@\(([^"\r\n\/):]+)(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,greedy:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/@\("?(?:[^"\r\n\/):]+)"?(?:\/[nrts$uL]*)?\)/,alias:"string",inside:{punctuation:{pattern:/(\().+?(?=\))/,lookbehind:!0}}}],"multiline-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,greedy:!0,alias:"comment"},regex:{pattern:/((?:\bnode\s+|[~=\(\[\{,]\s*|[=+]>\s*|^\s*))\/(?:[^\/\\]|\\[\s\S])+\/(?:[imx]+\b|\B)/,lookbehind:!0,greedy:!0,inside:{"extended-regex":{pattern:/^\/(?:[^\/\\]|\\[\s\S])+\/[im]*x[im]*$/,inside:{comment:/#.*/}}}},comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:\$\{(?:[^'"}]|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}|\$(?!\{)|(?!\1)[^\\$]|\\[\s\S])*\1/,greedy:!0,inside:{"double-quoted":{pattern:/^"[\s\S]*"$/,inside:{}}}},variable:{pattern:/\$(?:::)?\w+(?:::\w+)*/,inside:{punctuation:/::/}},"attr-name":/(?:\b\w+|\*)(?=\s*=>)/,function:[{pattern:/(\.)(?!\d)\w+/,lookbehind:!0},/\b(?:contain|debug|err|fail|include|info|notice|realize|require|tag|warning)\b|\b(?!\d)\w+(?=\()/],number:/\b(?:0x[a-f\d]+|\d+(?:\.\d+)?(?:e-?\d+)?)\b/i,boolean:/\b(?:false|true)\b/,keyword:/\b(?:application|attr|case|class|consumes|default|define|else|elsif|function|if|import|inherits|node|private|produces|type|undef|unless)\b/,datatype:{pattern:/\b(?:Any|Array|Boolean|Callable|Catalogentry|Class|Collection|Data|Default|Enum|Float|Hash|Integer|NotUndef|Numeric|Optional|Pattern|Regexp|Resource|Runtime|Scalar|String|Struct|Tuple|Type|Undef|Variant)\b/,alias:"symbol"},operator:/=[=~>]?|![=~]?|<(?:<\|?|[=~|-])?|>[>=]?|->?|~>|\|>?>?|[*\/%+?]|\b(?:and|in|or)\b/,punctuation:/[\[\]{}().,;]|:+/};var n=[{pattern:/(^|[^\\])\$\{(?:[^'"{}]|\{[^}]*\}|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}/,lookbehind:!0,inside:{"short-variable":{pattern:/(^\$\{)(?!\w+\()(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}},delimiter:{pattern:/^\$/,alias:"variable"},rest:r.languages.puppet}},{pattern:/(^|[^\\])\$(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}}];r.languages.puppet.heredoc[0].inside.interpolation=n,r.languages.puppet.string.inside["double-quoted"].inside.interpolation=n})(t)}return _g}var Tg,ST;function Vae(){if(ST)return Tg;ST=1,Tg=e,e.displayName="pure",e.aliases=[];function e(t){(function(r){r.languages.pure={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0},/#!.+/],"inline-lang":{pattern:/%<[\s\S]+?%>/,greedy:!0,inside:{lang:{pattern:/(^%< *)-\*-.+?-\*-/,lookbehind:!0,alias:"comment"},delimiter:{pattern:/^%<.*|%>$/,alias:"punctuation"}}},string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},number:{pattern:/((?:\.\.)?)(?:\b(?:inf|nan)\b|\b0x[\da-f]+|(?:\b(?:0b)?\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?L?)/i,lookbehind:!0},keyword:/\b(?:NULL|ans|break|bt|case|catch|cd|clear|const|def|del|dump|else|end|exit|extern|false|force|help|if|infix[lr]?|interface|let|ls|mem|namespace|nonfix|of|otherwise|outfix|override|postfix|prefix|private|public|pwd|quit|run|save|show|stats|then|throw|trace|true|type|underride|using|when|with)\b/,function:/\b(?:abs|add_(?:addr|constdef|(?:fundef|interface|macdef|typedef)(?:_at)?|vardef)|all|any|applp?|arity|bigintp?|blob(?:_crc|_size|p)?|boolp?|byte_c?string(?:_pointer)?|byte_(?:matrix|pointer)|calloc|cat|catmap|ceil|char[ps]?|check_ptrtag|chr|clear_sentry|clearsym|closurep?|cmatrixp?|cols?|colcat(?:map)?|colmap|colrev|colvector(?:p|seq)?|complex(?:_float_(?:matrix|pointer)|_matrix(?:_view)?|_pointer|p)?|conj|cookedp?|cst|cstring(?:_(?:dup|list|vector))?|curry3?|cyclen?|del_(?:constdef|fundef|interface|macdef|typedef|vardef)|delete|diag(?:mat)?|dim|dmatrixp?|do|double(?:_matrix(?:_view)?|_pointer|p)?|dowith3?|drop|dropwhile|eval(?:cmd)?|exactp|filter|fix|fixity|flip|float(?:_matrix|_pointer)|floor|fold[lr]1?|frac|free|funp?|functionp?|gcd|get(?:_(?:byte|constdef|double|float|fundef|int(?:64)?|interface(?:_typedef)?|long|macdef|pointer|ptrtag|sentry|short|string|typedef|vardef))?|globsym|hash|head|id|im|imatrixp?|index|inexactp|infp|init|insert|int(?:_matrix(?:_view)?|_pointer|p)?|int64_(?:matrix|pointer)|integerp?|iteraten?|iterwhile|join|keys?|lambdap?|last(?:err(?:pos)?)?|lcd|list[2p]?|listmap|make_ptrtag|malloc|map|matcat|matrixp?|max|member|min|nanp|nargs|nmatrixp?|null|numberp?|ord|pack(?:ed)?|pointer(?:_cast|_tag|_type|p)?|pow|pred|ptrtag|put(?:_(?:byte|double|float|int(?:64)?|long|pointer|short|string))?|rationalp?|re|realp?|realloc|recordp?|redim|reduce(?:_with)?|refp?|repeatn?|reverse|rlistp?|round|rows?|rowcat(?:map)?|rowmap|rowrev|rowvector(?:p|seq)?|same|scan[lr]1?|sentry|sgn|short_(?:matrix|pointer)|slice|smatrixp?|sort|split|str|strcat|stream|stride|string(?:_(?:dup|list|vector)|p)?|subdiag(?:mat)?|submat|subseq2?|substr|succ|supdiag(?:mat)?|symbolp?|tail|take|takewhile|thunkp?|transpose|trunc|tuplep?|typep|ubyte|uint(?:64)?|ulong|uncurry3?|unref|unzip3?|update|ushort|vals?|varp?|vector(?:p|seq)?|void|zip3?|zipwith3?)\b/,special:{pattern:/\b__[a-z]+__\b/i,alias:"builtin"},operator:/(?:[!"#$%&'*+,\-.\/:<=>?@\\^`|~\u00a1-\u00bf\u00d7-\u00f7\u20d0-\u2bff]|\b_+\b)+|\b(?:and|div|mod|not|or)\b/,punctuation:/[(){}\[\];,|]/};var n=["c",{lang:"c++",alias:"cpp"},"fortran"],a=/%< *-\*- *\d* *-\*-[\s\S]+?%>/.source;n.forEach(function(i){var o=i;if(typeof i!="string"&&(o=i.alias,i=i.lang),r.languages[o]){var s={};s["inline-lang-"+o]={pattern:RegExp(a.replace("",i.replace(/([.+*?\/\\(){}\[\]])/g,"\\$1")),"i"),inside:r.util.clone(r.languages.pure["inline-lang"].inside)},s["inline-lang-"+o].inside.rest=r.util.clone(r.languages[o]),r.languages.insertBefore("pure","inline-lang",s)}}),r.languages.c&&(r.languages.pure["inline-lang"].inside.rest=r.util.clone(r.languages.c))})(t)}return Tg}var Ag,ET;function Yae(){if(ET)return Ag;ET=1,Ag=e,e.displayName="purebasic",e.aliases=[];function e(t){t.languages.purebasic=t.languages.extend("clike",{comment:/;.*/,keyword:/\b(?:align|and|as|break|calldebugger|case|compilercase|compilerdefault|compilerelse|compilerelseif|compilerendif|compilerendselect|compilererror|compilerif|compilerselect|continue|data|datasection|debug|debuglevel|declare|declarec|declarecdll|declaredll|declaremodule|default|define|dim|disableasm|disabledebugger|disableexplicit|else|elseif|enableasm|enabledebugger|enableexplicit|end|enddatasection|enddeclaremodule|endenumeration|endif|endimport|endinterface|endmacro|endmodule|endprocedure|endselect|endstructure|endstructureunion|endwith|enumeration|extends|fakereturn|for|foreach|forever|global|gosub|goto|if|import|importc|includebinary|includefile|includepath|interface|macro|module|newlist|newmap|next|not|or|procedure|procedurec|procedurecdll|proceduredll|procedurereturn|protected|prototype|prototypec|read|redim|repeat|restore|return|runtime|select|shared|static|step|structure|structureunion|swap|threaded|to|until|wend|while|with|xincludefile|xor)\b/i,function:/\b\w+(?:\.\w+)?\s*(?=\()/,number:/(?:\$[\da-f]+|\b-?(?:\d+(?:\.\d+)?|\.\d+)(?:e[+-]?\d+)?)\b/i,operator:/(?:@\*?|\?|\*)\w+|-[>-]?|\+\+?|!=?|<>?=?|==?|&&?|\|?\||[~^%?*/@]/}),t.languages.insertBefore("purebasic","keyword",{tag:/#\w+\$?/,asm:{pattern:/(^[\t ]*)!.*/m,lookbehind:!0,alias:"tag",inside:{comment:/;.*/,string:{pattern:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"label-reference-anonymous":{pattern:/(!\s*j[a-z]+\s+)@[fb]/i,lookbehind:!0,alias:"fasm-label"},"label-reference-addressed":{pattern:/(!\s*j[a-z]+\s+)[A-Z._?$@][\w.?$@~#]*/i,lookbehind:!0,alias:"fasm-label"},keyword:[/\b(?:extern|global)\b[^;\r\n]*/i,/\b(?:CPU|DEFAULT|FLOAT)\b.*/],function:{pattern:/^([\t ]*!\s*)[\da-z]+(?=\s|$)/im,lookbehind:!0},"function-inline":{pattern:/(:\s*)[\da-z]+(?=\s)/i,lookbehind:!0,alias:"function"},label:{pattern:/^([\t ]*!\s*)[A-Za-z._?$@][\w.?$@~#]*(?=:)/m,lookbehind:!0,alias:"fasm-label"},register:/\b(?:st\d|[xyz]mm\d\d?|[cdt]r\d|r\d\d?[bwd]?|[er]?[abcd]x|[abcd][hl]|[er]?(?:bp|di|si|sp)|[cdefgs]s|mm\d+)\b/i,number:/(?:\b|-|(?=\$))(?:0[hx](?:[\da-f]*\.)?[\da-f]+(?:p[+-]?\d+)?|\d[\da-f]+[hx]|\$\d[\da-f]*|0[oq][0-7]+|[0-7]+[oq]|0[by][01]+|[01]+[by]|0[dt]\d+|(?:\d+(?:\.\d+)?|\.\d+)(?:\.?e[+-]?\d+)?[dt]?)\b/i,operator:/[\[\]*+\-/%<>=&|$!,.:]/}}}),delete t.languages.purebasic["class-name"],delete t.languages.purebasic.boolean,t.languages.pbfasm=t.languages.purebasic}return Ag}var Og,xT;function Kae(){if(xT)return Og;xT=1;var e=Hy();Og=t,t.displayName="purescript",t.aliases=["purs"];function t(r){r.register(e),r.languages.purescript=r.languages.extend("haskell",{keyword:/\b(?:ado|case|class|data|derive|do|else|forall|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b|∀/,"import-statement":{pattern:/(^[\t ]*)import\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*(?:\s+as\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import)\b/,punctuation:/\./}},builtin:/\b(?:absurd|add|ap|append|apply|between|bind|bottom|clamp|compare|comparing|compose|conj|const|degree|discard|disj|div|eq|flap|flip|gcd|identity|ifM|join|lcm|liftA1|liftM1|map|max|mempty|min|mod|mul|negate|not|notEq|one|otherwise|recip|show|sub|top|unit|unless|unlessM|void|when|whenM|zero)\b/,operator:[r.languages.haskell.operator[0],r.languages.haskell.operator[2],/[\xa2-\xa6\xa8\xa9\xac\xae-\xb1\xb4\xb8\xd7\xf7\u02c2-\u02c5\u02d2-\u02df\u02e5-\u02eb\u02ed\u02ef-\u02ff\u0375\u0384\u0385\u03f6\u0482\u058d-\u058f\u0606-\u0608\u060b\u060e\u060f\u06de\u06e9\u06fd\u06fe\u07f6\u07fe\u07ff\u09f2\u09f3\u09fa\u09fb\u0af1\u0b70\u0bf3-\u0bfa\u0c7f\u0d4f\u0d79\u0e3f\u0f01-\u0f03\u0f13\u0f15-\u0f17\u0f1a-\u0f1f\u0f34\u0f36\u0f38\u0fbe-\u0fc5\u0fc7-\u0fcc\u0fce\u0fcf\u0fd5-\u0fd8\u109e\u109f\u1390-\u1399\u166d\u17db\u1940\u19de-\u19ff\u1b61-\u1b6a\u1b74-\u1b7c\u1fbd\u1fbf-\u1fc1\u1fcd-\u1fcf\u1fdd-\u1fdf\u1fed-\u1fef\u1ffd\u1ffe\u2044\u2052\u207a-\u207c\u208a-\u208c\u20a0-\u20bf\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211e-\u2123\u2125\u2127\u2129\u212e\u213a\u213b\u2140-\u2144\u214a-\u214d\u214f\u218a\u218b\u2190-\u2307\u230c-\u2328\u232b-\u2426\u2440-\u244a\u249c-\u24e9\u2500-\u2767\u2794-\u27c4\u27c7-\u27e5\u27f0-\u2982\u2999-\u29d7\u29dc-\u29fb\u29fe-\u2b73\u2b76-\u2b95\u2b97-\u2bff\u2ce5-\u2cea\u2e50\u2e51\u2e80-\u2e99\u2e9b-\u2ef3\u2f00-\u2fd5\u2ff0-\u2ffb\u3004\u3012\u3013\u3020\u3036\u3037\u303e\u303f\u309b\u309c\u3190\u3191\u3196-\u319f\u31c0-\u31e3\u3200-\u321e\u322a-\u3247\u3250\u3260-\u327f\u328a-\u32b0\u32c0-\u33ff\u4dc0-\u4dff\ua490-\ua4c6\ua700-\ua716\ua720\ua721\ua789\ua78a\ua828-\ua82b\ua836-\ua839\uaa77-\uaa79\uab5b\uab6a\uab6b\ufb29\ufbb2-\ufbc1\ufdfc\ufdfd\ufe62\ufe64-\ufe66\ufe69\uff04\uff0b\uff1c-\uff1e\uff3e\uff40\uff5c\uff5e\uffe0-\uffe6\uffe8-\uffee\ufffc\ufffd]/]}),r.languages.purs=r.languages.purescript}return Og}var kg,wT;function Xae(){if(wT)return kg;wT=1,kg=e,e.displayName="python",e.aliases=["py"];function e(t){t.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},t.languages.python["string-interpolation"].inside.interpolation.inside.rest=t.languages.python,t.languages.py=t.languages.python}return kg}var Rg,_T;function Zae(){if(_T)return Rg;_T=1,Rg=e,e.displayName="q",e.aliases=[];function e(t){t.languages.q={string:/"(?:\\.|[^"\\\r\n])*"/,comment:[{pattern:/([\t )\]}])\/.*/,lookbehind:!0,greedy:!0},{pattern:/(^|\r?\n|\r)\/[\t ]*(?:(?:\r?\n|\r)(?:.*(?:\r?\n|\r(?!\n)))*?(?:\\(?=[\t ]*(?:\r?\n|\r))|$)|\S.*)/,lookbehind:!0,greedy:!0},{pattern:/^\\[\t ]*(?:\r?\n|\r)[\s\S]+/m,greedy:!0},{pattern:/^#!.+/m,greedy:!0}],symbol:/`(?::\S+|[\w.]*)/,datetime:{pattern:/0N[mdzuvt]|0W[dtz]|\d{4}\.\d\d(?:m|\.\d\d(?:T(?:\d\d(?::\d\d(?::\d\d(?:[.:]\d\d\d)?)?)?)?)?[dz]?)|\d\d:\d\d(?::\d\d(?:[.:]\d\d\d)?)?[uvt]?/,alias:"number"},number:/\b(?![01]:)(?:0N[hje]?|0W[hj]?|0[wn]|0x[\da-fA-F]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?[hjfeb]?)/,keyword:/\\\w+\b|\b(?:abs|acos|aj0?|all|and|any|asc|asin|asof|atan|attr|avgs?|binr?|by|ceiling|cols|cor|cos|count|cov|cross|csv|cut|delete|deltas|desc|dev|differ|distinct|div|do|dsave|ej|enlist|eval|except|exec|exit|exp|fby|fills|first|fkeys|flip|floor|from|get|getenv|group|gtime|hclose|hcount|hdel|hopen|hsym|iasc|identity|idesc|if|ij|in|insert|inter|inv|keys?|last|like|list|ljf?|load|log|lower|lsq|ltime|ltrim|mavg|maxs?|mcount|md5|mdev|med|meta|mins?|mmax|mmin|mmu|mod|msum|neg|next|not|null|or|over|parse|peach|pj|plist|prds?|prev|prior|rand|rank|ratios|raze|read0|read1|reciprocal|reval|reverse|rload|rotate|rsave|rtrim|save|scan|scov|sdev|select|set|setenv|show|signum|sin|sqrt|ssr?|string|sublist|sums?|sv|svar|system|tables|tan|til|trim|txf|type|uj|ungroup|union|update|upper|upsert|value|var|views?|vs|wavg|where|while|within|wj1?|wsum|ww|xasc|xbar|xcols?|xdesc|xexp|xgroup|xkey|xlog|xprev|xrank)\b/,adverb:{pattern:/['\/\\]:?|\beach\b/,alias:"function"},verb:{pattern:/(?:\B\.\B|\b[01]:|<[=>]?|>=?|[:+\-*%,!?~=|$&#@^]):?|\b_\b:?/,alias:"operator"},punctuation:/[(){}\[\];.]/}}return Rg}var Ig,TT;function Jae(){if(TT)return Ig;TT=1,Ig=e,e.displayName="qml",e.aliases=[];function e(t){(function(r){for(var n=/"(?:\\.|[^\\"\r\n])*"|'(?:\\.|[^\\'\r\n])*'/.source,a=/\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))*\*\//.source,i=/(?:[^\\()[\]{}"'/]||\/(?![*/])||\(*\)|\[*\]|\{*\}|\\[\s\S])/.source.replace(//g,function(){return n}).replace(//g,function(){return a}),o=0;o<2;o++)i=i.replace(//g,function(){return i});i=i.replace(//g,"[^\\s\\S]"),r.languages.qml={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},"javascript-function":{pattern:RegExp(/((?:^|;)[ \t]*)function\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*\(*\)\s*\{*\}/.source.replace(//g,function(){return i}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:r.languages.javascript},"class-name":{pattern:/((?:^|[:;])[ \t]*)(?!\d)\w+(?=[ \t]*\{|[ \t]+on\b)/m,lookbehind:!0},property:[{pattern:/((?:^|[;{])[ \t]*)(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0},{pattern:/((?:^|[;{])[ \t]*)property[ \t]+(?!\d)\w+(?:\.\w+)*[ \t]+(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0,inside:{keyword:/^property/,property:/\w+(?:\.\w+)*/}}],"javascript-expression":{pattern:RegExp(/(:[ \t]*)(?![\s;}[])(?:(?!$|[;}]))+/.source.replace(//g,function(){return i}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:r.languages.javascript},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},keyword:/\b(?:as|import|on)\b/,punctuation:/[{}[\]:;,]/}})(t)}return Ig}var Cg,AT;function Qae(){if(AT)return Cg;AT=1,Cg=e,e.displayName="qore",e.aliases=[];function e(t){t.languages.qore=t.languages.extend("clike",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:\/\/|#).*)/,lookbehind:!0},string:{pattern:/("|')(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},keyword:/\b(?:abstract|any|assert|binary|bool|boolean|break|byte|case|catch|char|class|code|const|continue|data|default|do|double|else|enum|extends|final|finally|float|for|goto|hash|if|implements|import|inherits|instanceof|int|interface|long|my|native|new|nothing|null|object|our|own|private|reference|rethrow|return|short|soft(?:bool|date|float|int|list|number|string)|static|strictfp|string|sub|super|switch|synchronized|this|throw|throws|transient|try|void|volatile|while)\b/,boolean:/\b(?:false|true)\b/i,function:/\$?\b(?!\d)\w+(?=\()/,number:/\b(?:0b[01]+|0x(?:[\da-f]*\.)?[\da-fp\-]+|(?:\d+(?:\.\d+)?|\.\d+)(?:e\d+)?[df]|(?:\d+(?:\.\d+)?|\.\d+))\b/i,operator:{pattern:/(^|[^.])(?:\+[+=]?|-[-=]?|[!=](?:==?|~)?|>>?=?|<(?:=>?|<=?)?|&[&=]?|\|[|=]?|[*\/%^]=?|[~?])/,lookbehind:!0},variable:/\$(?!\d)\w+\b/})}return Cg}var Ng,OT;function eie(){if(OT)return Ng;OT=1,Ng=e,e.displayName="qsharp",e.aliases=["qs"];function e(t){(function(r){function n(b,v){return b.replace(/<<(\d+)>>/g,function(S,O){return"(?:"+v[+O]+")"})}function a(b,v,S){return RegExp(n(b,v),S||"")}function i(b,v){for(var S=0;S>/g,function(){return"(?:"+b+")"});return b.replace(/<>/g,"[^\\s\\S]")}var o={type:"Adj BigInt Bool Ctl Double false Int One Pauli PauliI PauliX PauliY PauliZ Qubit Range Result String true Unit Zero",other:"Adjoint adjoint apply as auto body borrow borrowing Controlled controlled distribute elif else fail fixup for function if in internal intrinsic invert is let mutable namespace new newtype open operation repeat return self set until use using while within"};function s(b){return"\\b(?:"+b.trim().replace(/ /g,"|")+")\\b"}var l=RegExp(s(o.type+" "+o.other)),c=/\b[A-Za-z_]\w*\b/.source,d=n(/<<0>>(?:\s*\.\s*<<0>>)*/.source,[c]),p={keyword:l,punctuation:/[<>()?,.:[\]]/},g=/"(?:\\.|[^\\"])*"/.source;r.languages.qsharp=r.languages.extend("clike",{comment:/\/\/.*/,string:[{pattern:a(/(^|[^$\\])<<0>>/.source,[g]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:a(/(\b(?:as|open)\s+)<<0>>(?=\s*(?:;|as\b))/.source,[d]),lookbehind:!0,inside:p},{pattern:a(/(\bnamespace\s+)<<0>>(?=\s*\{)/.source,[d]),lookbehind:!0,inside:p}],keyword:l,number:/(?:\b0(?:x[\da-f]+|b[01]+|o[0-7]+)|(?:\B\.\d+|\b\d+(?:\.\d*)?)(?:e[-+]?\d+)?)l?\b/i,operator:/\band=|\bor=|\band\b|\bnot\b|\bor\b|<[-=]|[-=]>|>>>=?|<<<=?|\^\^\^=?|\|\|\|=?|&&&=?|w\/=?|~~~|[*\/+\-^=!%]=?/,punctuation:/::|[{}[\];(),.:]/}),r.languages.insertBefore("qsharp","number",{range:{pattern:/\.\./,alias:"operator"}});var m=i(n(/\{(?:[^"{}]|<<0>>|<>)*\}/.source,[g]),2);r.languages.insertBefore("qsharp","string",{"interpolation-string":{pattern:a(/\$"(?:\\.|<<0>>|[^\\"{])*"/.source,[m]),greedy:!0,inside:{interpolation:{pattern:a(/((?:^|[^\\])(?:\\\\)*)<<0>>/.source,[m]),lookbehind:!0,inside:{punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-qsharp",inside:r.languages.qsharp}}},string:/[\s\S]+/}}})})(t),t.languages.qs=t.languages.qsharp}return Ng}var Lg,kT;function tie(){if(kT)return Lg;kT=1,Lg=e,e.displayName="r",e.aliases=[];function e(t){t.languages.r={comment:/#.*/,string:{pattern:/(['"])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"percent-operator":{pattern:/%[^%\s]*%/,alias:"operator"},boolean:/\b(?:FALSE|TRUE)\b/,ellipsis:/\.\.(?:\.|\d+)/,number:[/\b(?:Inf|NaN)\b/,/(?:\b0x[\dA-Fa-f]+(?:\.\d*)?|\b\d+(?:\.\d*)?|\B\.\d+)(?:[EePp][+-]?\d+)?[iL]?/],keyword:/\b(?:NA|NA_character_|NA_complex_|NA_integer_|NA_real_|NULL|break|else|for|function|if|in|next|repeat|while)\b/,operator:/->?>?|<(?:=|=!]=?|::?|&&?|\|\|?|[+*\/^$@~]/,punctuation:/[(){}\[\],;]/}}return Lg}var Dg,RT;function rie(){if(RT)return Dg;RT=1;var e=Ky();Dg=t,t.displayName="racket",t.aliases=["rkt"];function t(r){r.register(e),r.languages.racket=r.languages.extend("scheme",{"lambda-parameter":{pattern:/([(\[]lambda\s+[(\[])[^()\[\]'\s]+/,lookbehind:!0}}),r.languages.insertBefore("racket","string",{lang:{pattern:/^#lang.+/m,greedy:!0,alias:"keyword"}}),r.languages.rkt=r.languages.racket}return Dg}var Mg,IT;function nie(){if(IT)return Mg;IT=1,Mg=e,e.displayName="reason",e.aliases=[];function e(t){t.languages.reason=t.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),t.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete t.languages.reason.function}return Mg}var Pg,CT;function aie(){if(CT)return Pg;CT=1,Pg=e,e.displayName="regex",e.aliases=[];function e(t){(function(r){var n={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},a=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/,i={pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},o={pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},s="(?:[^\\\\-]|"+a.source+")",l=RegExp(s+"-"+s),c={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"};r.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:l,inside:{escape:a,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":n,"char-set":o,escape:a}},"special-escape":n,"char-set":i,backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":c}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:a,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|:=]=?|!=|\b_\b/,punctuation:/[,;.\[\]{}()]/}}return $g}var jg,LT;function oie(){if(LT)return jg;LT=1,jg=e,e.displayName="renpy",e.aliases=["rpy"];function e(t){t.languages.renpy={comment:{pattern:/(^|[^\\])#.+/,lookbehind:!0},string:{pattern:/("""|''')[\s\S]+?\1|("|')(?:\\.|(?!\2)[^\\])*\2|(?:^#?(?:(?:[0-9a-fA-F]){3}|[0-9a-fA-F]{6})$)/m,greedy:!0},function:/\b[a-z_]\w*(?=\()/i,property:/\b(?:Update|UpdateVersion|action|activate_sound|adv_nvl_transition|after_load_transition|align|alpha|alt|anchor|antialias|area|auto|background|bar_invert|bar_resizing|bar_vertical|black_color|bold|bottom_bar|bottom_gutter|bottom_margin|bottom_padding|box_reverse|box_wrap|can_update|caret|child|color|crop|default_afm_enable|default_afm_time|default_fullscreen|default_text_cps|developer|directory_name|drag_handle|drag_joined|drag_name|drag_raise|draggable|dragged|drop_shadow|drop_shadow_color|droppable|dropped|easein|easeout|edgescroll|end_game_transition|end_splash_transition|enter_replay_transition|enter_sound|enter_transition|enter_yesno_transition|executable_name|exit_replay_transition|exit_sound|exit_transition|exit_yesno_transition|fadein|fadeout|first_indent|first_spacing|fit_first|focus|focus_mask|font|foreground|game_main_transition|get_installed_packages|google_play_key|google_play_salt|ground|has_music|has_sound|has_voice|height|help|hinting|hover|hover_background|hover_color|hover_sound|hovered|hyperlink_functions|idle|idle_color|image_style|include_update|insensitive|insensitive_background|insensitive_color|inside|intra_transition|italic|justify|kerning|keyboard_focus|language|layer_clipping|layers|layout|left_bar|left_gutter|left_margin|left_padding|length|line_leading|line_overlap_split|line_spacing|linear|main_game_transition|main_menu_music|maximum|min_width|minimum|minwidth|modal|mouse|mousewheel|name|narrator_menu|newline_indent|nvl_adv_transition|offset|order_reverse|outlines|overlay_functions|pos|position|prefix|radius|range|rest_indent|right_bar|right_gutter|right_margin|right_padding|rotate|rotate_pad|ruby_style|sample_sound|save_directory|say_attribute_transition|screen_height|screen_width|scrollbars|selected_hover|selected_hover_color|selected_idle|selected_idle_color|selected_insensitive|show_side_image|show_two_window|side_spacing|side_xpos|side_ypos|size|size_group|slow_cps|slow_cps_multiplier|spacing|strikethrough|subpixel|text_align|text_style|text_xpos|text_y_fudge|text_ypos|thumb|thumb_offset|thumb_shadow|thumbnail_height|thumbnail_width|time|top_bar|top_gutter|top_margin|top_padding|translations|underline|unscrollable|update|value|version|version_name|version_tuple|vertical|width|window_hide_transition|window_icon|window_left_padding|window_show_transition|window_title|windows_icon|xadjustment|xalign|xanchor|xanchoraround|xaround|xcenter|xfill|xinitial|xmargin|xmaximum|xminimum|xoffset|xofsset|xpadding|xpos|xsize|xzoom|yadjustment|yalign|yanchor|yanchoraround|yaround|ycenter|yfill|yinitial|ymargin|ymaximum|yminimum|yoffset|ypadding|ypos|ysize|ysizexysize|yzoom|zoom|zorder)\b/,tag:/\b(?:bar|block|button|buttoscreenn|drag|draggroup|fixed|frame|grid|[hv]box|hotbar|hotspot|image|imagebutton|imagemap|input|key|label|menu|mm_menu_frame|mousearea|nvl|parallel|screen|self|side|tag|text|textbutton|timer|vbar|viewport|window)\b|\$/,keyword:/\b(?:None|add|adjustment|alignaround|allow|angle|animation|around|as|assert|behind|box_layout|break|build|cache|call|center|changed|child_size|choice|circles|class|clear|clicked|clipping|clockwise|config|contains|continue|corner1|corner2|counterclockwise|def|default|define|del|delay|disabled|disabled_text|dissolve|elif|else|event|except|exclude|exec|expression|fade|finally|for|from|function|global|gm_root|has|hide|id|if|import|in|init|is|jump|knot|lambda|left|less_rounded|mm_root|movie|music|null|on|onlayer|pass|pause|persistent|play|print|python|queue|raise|random|renpy|repeat|return|right|rounded_window|scene|scope|set|show|slow|slow_abortable|slow_done|sound|stop|store|style|style_group|substitute|suffix|theme|transform|transform_anchor|transpose|try|ui|unhovered|updater|use|voice|while|widget|widget_hover|widget_selected|widget_text|yield)\b/,boolean:/\b(?:[Ff]alse|[Tt]rue)\b/,number:/(?:\b(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?)|\B\.\d+)(?:e[+-]?\d+)?j?/i,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]|\b(?:and|at|not|or|with)\b/,punctuation:/[{}[\];(),.:]/},t.languages.rpy=t.languages.renpy}return jg}var Fg,DT;function sie(){if(DT)return Fg;DT=1,Fg=e,e.displayName="rest",e.aliases=[];function e(t){t.languages.rest={table:[{pattern:/(^[\t ]*)(?:\+[=-]+)+\+(?:\r?\n|\r)(?:\1[+|].+[+|](?:\r?\n|\r))+\1(?:\+[=-]+)+\+/m,lookbehind:!0,inside:{punctuation:/\||(?:\+[=-]+)+\+/}},{pattern:/(^[\t ]*)=+ [ =]*=(?:(?:\r?\n|\r)\1.+)+(?:\r?\n|\r)\1=+ [ =]*=(?=(?:\r?\n|\r){2}|\s*$)/m,lookbehind:!0,inside:{punctuation:/[=-]+/}}],"substitution-def":{pattern:/(^[\t ]*\.\. )\|(?:[^|\s](?:[^|]*[^|\s])?)\| [^:]+::/m,lookbehind:!0,inside:{substitution:{pattern:/^\|(?:[^|\s]|[^|\s][^|]*[^|\s])\|/,alias:"attr-value",inside:{punctuation:/^\||\|$/}},directive:{pattern:/( )(?! )[^:]+::/,lookbehind:!0,alias:"function",inside:{punctuation:/::$/}}}},"link-target":[{pattern:/(^[\t ]*\.\. )\[[^\]]+\]/m,lookbehind:!0,alias:"string",inside:{punctuation:/^\[|\]$/}},{pattern:/(^[\t ]*\.\. )_(?:`[^`]+`|(?:[^:\\]|\\.)+):/m,lookbehind:!0,alias:"string",inside:{punctuation:/^_|:$/}}],directive:{pattern:/(^[\t ]*\.\. )[^:]+::/m,lookbehind:!0,alias:"function",inside:{punctuation:/::$/}},comment:{pattern:/(^[\t ]*\.\.)(?:(?: .+)?(?:(?:\r?\n|\r).+)+| .+)(?=(?:\r?\n|\r){2}|$)/m,lookbehind:!0},title:[{pattern:/^(([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2+)(?:\r?\n|\r).+(?:\r?\n|\r)\1$/m,inside:{punctuation:/^[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+|[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+$/,important:/.+/}},{pattern:/(^|(?:\r?\n|\r){2}).+(?:\r?\n|\r)([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2+(?=\r?\n|\r|$)/,lookbehind:!0,inside:{punctuation:/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+$/,important:/.+/}}],hr:{pattern:/((?:\r?\n|\r){2})([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2{3,}(?=(?:\r?\n|\r){2})/,lookbehind:!0,alias:"punctuation"},field:{pattern:/(^[\t ]*):[^:\r\n]+:(?= )/m,lookbehind:!0,alias:"attr-name"},"command-line-option":{pattern:/(^[\t ]*)(?:[+-][a-z\d]|(?:--|\/)[a-z\d-]+)(?:[ =](?:[a-z][\w-]*|<[^<>]+>))?(?:, (?:[+-][a-z\d]|(?:--|\/)[a-z\d-]+)(?:[ =](?:[a-z][\w-]*|<[^<>]+>))?)*(?=(?:\r?\n|\r)? {2,}\S)/im,lookbehind:!0,alias:"symbol"},"literal-block":{pattern:/::(?:\r?\n|\r){2}([ \t]+)(?![ \t]).+(?:(?:\r?\n|\r)\1.+)*/,inside:{"literal-block-punctuation":{pattern:/^::/,alias:"punctuation"}}},"quoted-literal-block":{pattern:/::(?:\r?\n|\r){2}([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]).*(?:(?:\r?\n|\r)\1.*)*/,inside:{"literal-block-punctuation":{pattern:/^(?:::|([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\1*)/m,alias:"punctuation"}}},"list-bullet":{pattern:/(^[\t ]*)(?:[*+\-•‣⁃]|\(?(?:\d+|[a-z]|[ivxdclm]+)\)|(?:\d+|[a-z]|[ivxdclm]+)\.)(?= )/im,lookbehind:!0,alias:"punctuation"},"doctest-block":{pattern:/(^[\t ]*)>>> .+(?:(?:\r?\n|\r).+)*/m,lookbehind:!0,inside:{punctuation:/^>>>/}},inline:[{pattern:/(^|[\s\-:\/'"<(\[{])(?::[^:]+:`.*?`|`.*?`:[^:]+:|(\*\*?|``?|\|)(?!\s)(?:(?!\2).)*\S\2(?=[\s\-.,:;!?\\\/'")\]}]|$))/m,lookbehind:!0,inside:{bold:{pattern:/(^\*\*).+(?=\*\*$)/,lookbehind:!0},italic:{pattern:/(^\*).+(?=\*$)/,lookbehind:!0},"inline-literal":{pattern:/(^``).+(?=``$)/,lookbehind:!0,alias:"symbol"},role:{pattern:/^:[^:]+:|:[^:]+:$/,alias:"function",inside:{punctuation:/^:|:$/}},"interpreted-text":{pattern:/(^`).+(?=`$)/,lookbehind:!0,alias:"attr-value"},substitution:{pattern:/(^\|).+(?=\|$)/,lookbehind:!0,alias:"attr-value"},punctuation:/\*\*?|``?|\|/}}],link:[{pattern:/\[[^\[\]]+\]_(?=[\s\-.,:;!?\\\/'")\]}]|$)/,alias:"string",inside:{punctuation:/^\[|\]_$/}},{pattern:/(?:\b[a-z\d]+(?:[_.:+][a-z\d]+)*_?_|`[^`]+`_?_|_`[^`]+`)(?=[\s\-.,:;!?\\\/'")\]}]|$)/i,alias:"string",inside:{punctuation:/^_?`|`$|`?_?_$/}}],punctuation:{pattern:/(^[\t ]*)(?:\|(?= |$)|(?:---?|—|\.\.|__)(?= )|\.\.$)/m,lookbehind:!0}}}return Fg}var Bg,MT;function lie(){if(MT)return Bg;MT=1,Bg=e,e.displayName="rip",e.aliases=[];function e(t){t.languages.rip={comment:{pattern:/#.*/,greedy:!0},char:{pattern:/\B`[^\s`'",.:;#\/\\()<>\[\]{}]\b/,greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},regex:{pattern:/(^|[^/])\/(?!\/)(?:\[[^\n\r\]]*\]|\\.|[^/\\\r\n\[])+\/(?=\s*(?:$|[\r\n,.;})]))/,lookbehind:!0,greedy:!0},keyword:/(?:=>|->)|\b(?:case|catch|class|else|exit|finally|if|raise|return|switch|try)\b/,builtin:/@|\bSystem\b/,boolean:/\b(?:false|true)\b/,date:/\b\d{4}-\d{2}-\d{2}\b/,time:/\b\d{2}:\d{2}:\d{2}\b/,datetime:/\b\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\b/,symbol:/:[^\d\s`'",.:;#\/\\()<>\[\]{}][^\s`'",.:;#\/\\()<>\[\]{}]*/,number:/[+-]?\b(?:\d+\.\d+|\d+)\b/,punctuation:/(?:\.{2,3})|[`,.:;=\/\\()<>\[\]{}]/,reference:/[^\d\s`'",.:;#\/\\()<>\[\]{}][^\s`'",.:;#\/\\()<>\[\]{}]*/}}return Bg}var Ug,PT;function uie(){if(PT)return Ug;PT=1,Ug=e,e.displayName="roboconf",e.aliases=[];function e(t){t.languages.roboconf={comment:/#.*/,keyword:{pattern:/(^|\s)(?:(?:external|import)\b|(?:facet|instance of)(?=[ \t]+[\w-]+[ \t]*\{))/,lookbehind:!0},component:{pattern:/[\w-]+(?=[ \t]*\{)/,alias:"variable"},property:/[\w.-]+(?=[ \t]*:)/,value:{pattern:/(=[ \t]*(?![ \t]))[^,;]+/,lookbehind:!0,alias:"attr-value"},optional:{pattern:/\(optional\)/,alias:"builtin"},wildcard:{pattern:/(\.)\*/,lookbehind:!0,alias:"operator"},punctuation:/[{},.;:=]/}}return Ug}var Gg,$T;function cie(){if($T)return Gg;$T=1,Gg=e,e.displayName="robotframework",e.aliases=[];function e(t){(function(r){var n={pattern:/(^[ \t]*| {2}|\t)#.*/m,lookbehind:!0,greedy:!0},a={pattern:/((?:^|[^\\])(?:\\{2})*)[$@&%]\{(?:[^{}\r\n]|\{[^{}\r\n]*\})*\}/,lookbehind:!0,inside:{punctuation:/^[$@&%]\{|\}$/}};function i(c,d){var p={};p["section-header"]={pattern:/^ ?\*{3}.+?\*{3}/,alias:"keyword"};for(var g in d)p[g]=d[g];return p.tag={pattern:/([\r\n](?: {2}|\t)[ \t]*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/\[|\]/}},p.variable=a,p.comment=n,{pattern:RegExp(/^ ?\*{3}[ \t]*[ \t]*\*{3}(?:.|[\r\n](?!\*{3}))*/.source.replace(//g,function(){return c}),"im"),alias:"section",inside:p}}var o={pattern:/(\[Documentation\](?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},s={pattern:/([\r\n] ?)(?!#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,alias:"function",inside:{variable:a}},l={pattern:/([\r\n](?: {2}|\t)[ \t]*)(?!\[|\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,inside:{variable:a}};r.languages.robotframework={settings:i("Settings",{documentation:{pattern:/([\r\n] ?Documentation(?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},property:{pattern:/([\r\n] ?)(?!\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0}}),variables:i("Variables"),"test-cases":i("Test Cases",{"test-name":s,documentation:o,property:l}),keywords:i("Keywords",{"keyword-name":s,documentation:o,property:l}),tasks:i("Tasks",{"task-name":s,documentation:o,property:l}),comment:n},r.languages.robot=r.languages.robotframework})(t)}return Gg}var zg,jT;function die(){if(jT)return zg;jT=1,zg=e,e.displayName="rust",e.aliases=[];function e(t){(function(r){for(var n=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|)*\*\//.source,a=0;a<2;a++)n=n.replace(//g,function(){return n});n=n.replace(//g,function(){return/[^\s\S]/.source}),r.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+n),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<>?=?|[@?]/},r.languages.rust["closure-params"].inside.rest=r.languages.rust,r.languages.rust.attribute.inside.string=r.languages.rust.string})(t)}return zg}var qg,FT;function pie(){if(FT)return qg;FT=1,qg=e,e.displayName="sas",e.aliases=[];function e(t){(function(r){var n=/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))/.source,a=/\b(?:\d[\da-f]*x|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,i={pattern:RegExp(n+"[bx]"),alias:"number"},o={pattern:/&[a-z_]\w*/i},s={pattern:/((?:^|\s|=|\())%(?:ABORT|BY|CMS|COPY|DISPLAY|DO|ELSE|END|EVAL|GLOBAL|GO|GOTO|IF|INC|INCLUDE|INDEX|INPUT|KTRIM|LENGTH|LET|LIST|LOCAL|PUT|QKTRIM|QSCAN|QSUBSTR|QSYSFUNC|QUPCASE|RETURN|RUN|SCAN|SUBSTR|SUPERQ|SYMDEL|SYMEXIST|SYMGLOBL|SYMLOCAL|SYSCALL|SYSEVALF|SYSEXEC|SYSFUNC|SYSGET|SYSRPUT|THEN|TO|TSO|UNQUOTE|UNTIL|UPCASE|WHILE|WINDOW)\b/i,lookbehind:!0,alias:"keyword"},l={pattern:/(^|\s)(?:proc\s+\w+|data(?!=)|quit|run)\b/i,alias:"keyword",lookbehind:!0},c=[/\/\*[\s\S]*?\*\//,{pattern:/(^[ \t]*|;\s*)\*[^;]*;/m,lookbehind:!0}],d={pattern:RegExp(n),greedy:!0},p=/[$%@.(){}\[\];,\\]/,g={pattern:/%?\b\w+(?=\()/,alias:"keyword"},m={function:g,"arg-value":{pattern:/(=\s*)[A-Z\.]+/i,lookbehind:!0},operator:/=/,"macro-variable":o,arg:{pattern:/[A-Z]+/i,alias:"keyword"},number:a,"numeric-constant":i,punctuation:p,string:d},b={pattern:/\b(?:format|put)\b=?[\w'$.]+/i,inside:{keyword:/^(?:format|put)(?==)/i,equals:/=/,format:{pattern:/(?:\w|\$\d)+\.\d?/,alias:"number"}}},v={pattern:/\b(?:format|put)\s+[\w']+(?:\s+[$.\w]+)+(?=;)/i,inside:{keyword:/^(?:format|put)/i,format:{pattern:/[\w$]+\.\d?/,alias:"number"}}},S={pattern:/((?:^|\s)=?)(?:catname|checkpoint execute_always|dm|endsas|filename|footnote|%include|libname|%list|lock|missing|options|page|resetline|%run|sasfile|skip|sysecho|title\d?)\b/i,lookbehind:!0,alias:"keyword"},O={pattern:/(^|\s)(?:submit(?:\s+(?:load|norun|parseonly))?|endsubmit)\b/i,lookbehind:!0,alias:"keyword"},_=/aStore|accessControl|aggregation|audio|autotune|bayesianNetClassifier|bioMedImage|boolRule|builtins|cardinality|cdm|clustering|conditionalRandomFields|configuration|copula|countreg|dataDiscovery|dataPreprocess|dataSciencePilot|dataStep|decisionTree|deduplication|deepLearn|deepNeural|deepRnn|ds2|ecm|entityRes|espCluster|explainModel|factmac|fastKnn|fcmpact|fedSql|freqTab|gVarCluster|gam|gleam|graphSemiSupLearn|hiddenMarkovModel|hyperGroup|ica|image|iml|kernalPca|langModel|ldaTopic|loadStreams|mbc|mixed|mlTools|modelPublishing|network|neuralNet|nmf|nonParametricBayes|nonlinear|optNetwork|optimization|panel|pca|percentile|phreg|pls|qkb|qlim|quantreg|recommend|regression|reinforcementLearn|robustPca|ruleMining|sampling|sandwich|sccasl|search(?:Analytics)?|sentimentAnalysis|sequence|session(?:Prop)?|severity|simSystem|simple|smartData|sparkEmbeddedProcess|sparseML|spatialreg|spc|stabilityMonitoring|svDataDescription|svm|table|text(?:Filters|Frequency|Mining|Parse|Rule(?:Develop|Score)|Topic|Util)|timeData|transpose|tsInfo|tsReconcile|uniTimeSeries|varReduce/.source,w={pattern:RegExp(/(^|\s)(?:action\s+)?(?:)\.[a-z]+\b[^;]+/.source.replace(//g,function(){return _}),"i"),lookbehind:!0,inside:{keyword:RegExp(/(?:)\.[a-z]+\b/.source.replace(//g,function(){return _}),"i"),action:{pattern:/(?:action)/i,alias:"keyword"},comment:c,function:g,"arg-value":m["arg-value"],operator:m.operator,argument:m.arg,number:a,"numeric-constant":i,punctuation:p,string:d}},A={pattern:/((?:^|\s)=?)(?:after|analysis|and|array|barchart|barwidth|begingraph|by|call|cas|cbarline|cfill|class(?:lev)?|close|column|computed?|contains|continue|data(?==)|define|delete|describe|document|do\s+over|do|dol|drop|dul|else|end(?:comp|source)?|entryTitle|eval(?:uate)?|exec(?:ute)?|exit|file(?:name)?|fill(?:attrs)?|flist|fnc|function(?:list)?|global|goto|group(?:by)?|headline|headskip|histogram|if|infile|keep|keylabel|keyword|label|layout|leave|legendlabel|length|libname|loadactionset|merge|midpoints|_?null_|name|noobs|nowd|ods|options|or|otherwise|out(?:put)?|over(?:lay)?|plot|print|put|raise|ranexp|rannor|rbreak|retain|return|select|session|sessref|set|source|statgraph|sum|summarize|table|temp|terminate|then\s+do|then|title\d?|to|var|when|where|xaxisopts|y2axisopts|yaxisopts)\b/i,lookbehind:!0};r.languages.sas={datalines:{pattern:/^([ \t]*)(?:cards|(?:data)?lines);[\s\S]+?^[ \t]*;/im,lookbehind:!0,alias:"string",inside:{keyword:{pattern:/^(?:cards|(?:data)?lines)/i},punctuation:/;/}},"proc-sql":{pattern:/(^proc\s+(?:fed)?sql(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{sql:{pattern:RegExp(/^[ \t]*(?:select|alter\s+table|(?:create|describe|drop)\s+(?:index|table(?:\s+constraints)?|view)|create\s+unique\s+index|insert\s+into|update)(?:|[^;"'])+;/.source.replace(//g,function(){return n}),"im"),alias:"language-sql",inside:r.languages.sql},"global-statements":S,"sql-statements":{pattern:/(^|\s)(?:disconnect\s+from|begin|commit|exec(?:ute)?|reset|rollback|validate)\b/i,lookbehind:!0,alias:"keyword"},number:a,"numeric-constant":i,punctuation:p,string:d}},"proc-groovy":{pattern:/(^proc\s+groovy(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:c,groovy:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:|[^"'])+?(?=endsubmit;)/.source.replace(//g,function(){return n}),"im"),lookbehind:!0,alias:"language-groovy",inside:r.languages.groovy},keyword:A,"submit-statement":O,"global-statements":S,number:a,"numeric-constant":i,punctuation:p,string:d}},"proc-lua":{pattern:/(^proc\s+lua(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:c,lua:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:|[^"'])+?(?=endsubmit;)/.source.replace(//g,function(){return n}),"im"),lookbehind:!0,alias:"language-lua",inside:r.languages.lua},keyword:A,"submit-statement":O,"global-statements":S,number:a,"numeric-constant":i,punctuation:p,string:d}},"proc-cas":{pattern:/(^proc\s+cas(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|quit|data);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:c,"statement-var":{pattern:/((?:^|\s)=?)saveresult\s[^;]+/im,lookbehind:!0,inside:{statement:{pattern:/^saveresult\s+\S+/i,inside:{keyword:/^(?:saveresult)/i}},rest:m}},"cas-actions":w,statement:{pattern:/((?:^|\s)=?)(?:default|(?:un)?set|on|output|upload)[^;]+/im,lookbehind:!0,inside:m},step:l,keyword:A,function:g,format:b,altformat:v,"global-statements":S,number:a,"numeric-constant":i,punctuation:p,string:d}},"proc-args":{pattern:RegExp(/(^proc\s+\w+\s+)(?!\s)(?:[^;"']|)+;/.source.replace(//g,function(){return n}),"im"),lookbehind:!0,inside:m},"macro-keyword":s,"macro-variable":o,"macro-string-functions":{pattern:/((?:^|\s|=))%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)\(.*?(?:[^%]\))/i,lookbehind:!0,inside:{function:{pattern:/%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)/i,alias:"keyword"},"macro-keyword":s,"macro-variable":o,"escaped-char":{pattern:/%['"()<>=¬^~;,#]/},punctuation:p}},"macro-declaration":{pattern:/^%macro[^;]+(?=;)/im,inside:{keyword:/%macro/i}},"macro-end":{pattern:/^%mend[^;]+(?=;)/im,inside:{keyword:/%mend/i}},macro:{pattern:/%_\w+(?=\()/,alias:"keyword"},input:{pattern:/\binput\s[-\w\s/*.$&]+;/i,inside:{input:{alias:"keyword",pattern:/^input/i},comment:c,number:a,"numeric-constant":i}},"options-args":{pattern:/(^options)[-'"|/\\<>*+=:()\w\s]*(?=;)/im,lookbehind:!0,inside:m},"cas-actions":w,comment:c,function:g,format:b,altformat:v,"numeric-constant":i,datetime:{pattern:RegExp(n+"(?:dt?|t)"),alias:"number"},string:d,step:l,keyword:A,"operator-keyword":{pattern:/\b(?:eq|ge|gt|in|le|lt|ne|not)\b/i,alias:"operator"},number:a,operator:/\*\*?|\|\|?|!!?|¦¦?|<[>=]?|>[<=]?|[-+\/=&]|[~¬^]=?/,punctuation:p}})(t)}return qg}var Hg,BT;function fie(){if(BT)return Hg;BT=1,Hg=e,e.displayName="sass",e.aliases=[];function e(t){(function(r){r.languages.sass=r.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}}),r.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}}),delete r.languages.sass.atrule;var n=/\$[-\w]+|#\{\$[-\w]+\}/,a=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];r.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:n,operator:a}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:n,operator:a,important:r.languages.sass.important}}}),delete r.languages.sass.property,delete r.languages.sass.important,r.languages.insertBefore("sass","punctuation",{selector:{pattern:/^([ \t]*)\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*(?:,(?:\r?\n|\r)\1[ \t]+\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*)*/m,lookbehind:!0,greedy:!0}})})(t)}return Hg}var Wg,UT;function gie(){if(UT)return Wg;UT=1;var e=Wy();Wg=t,t.displayName="scala",t.aliases=[];function t(r){r.register(e),r.languages.scala=r.languages.extend("java",{"triple-quoted-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:/<-|=>|\b(?:abstract|case|catch|class|def|do|else|extends|final|finally|for|forSome|if|implicit|import|lazy|match|new|null|object|override|package|private|protected|return|sealed|self|super|this|throw|trait|try|type|val|var|while|with|yield)\b/,number:/\b0x(?:[\da-f]*\.)?[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e\d+)?[dfl]?/i,builtin:/\b(?:Any|AnyRef|AnyVal|Boolean|Byte|Char|Double|Float|Int|Long|Nothing|Short|String|Unit)\b/,symbol:/'[^\d\s\\]\w*/}),r.languages.insertBefore("scala","triple-quoted-string",{"string-interpolation":{pattern:/\b[a-z]\w*(?:"""(?:[^$]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*?"""|"(?:[^$"\r\n]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*")/i,greedy:!0,inside:{id:{pattern:/^\w+/,greedy:!0,alias:"function"},escape:{pattern:/\\\$"|\$[$"]/,greedy:!0,alias:"symbol"},interpolation:{pattern:/\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,greedy:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:r.languages.scala}}},string:/[\s\S]+/}}}),delete r.languages.scala["class-name"],delete r.languages.scala.function}return Wg}var Vg,GT;function hie(){if(GT)return Vg;GT=1,Vg=e,e.displayName="scss",e.aliases=[];function e(t){t.languages.scss=t.languages.extend("css",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},atrule:{pattern:/@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,inside:{rule:/@[\w-]+/}},url:/(?:[-a-z]+-)?url(?=\()/i,selector:{pattern:/(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]))/,inside:{parent:{pattern:/&/,alias:"important"},placeholder:/%[-\w]+/,variable:/\$[-\w]+|#\{\$[-\w]+\}/}},property:{pattern:/(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/,inside:{variable:/\$[-\w]+|#\{\$[-\w]+\}/}}}),t.languages.insertBefore("scss","atrule",{keyword:[/@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i,{pattern:/( )(?:from|through)(?= )/,lookbehind:!0}]}),t.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),t.languages.insertBefore("scss","function",{"module-modifier":{pattern:/\b(?:as|hide|show|with)\b/i,alias:"keyword"},placeholder:{pattern:/%[-\w]+/,alias:"selector"},statement:{pattern:/\B!(?:default|optional)\b/i,alias:"keyword"},boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"},operator:{pattern:/(\s)(?:[-+*\/%]|[=!]=|<=?|>=?|and|not|or)(?=\s)/,lookbehind:!0}}),t.languages.scss.atrule.inside.rest=t.languages.scss}return Vg}var Yg,zT;function mie(){if(zT)return Yg;zT=1;var e=kI();Yg=t,t.displayName="shellSession",t.aliases=[];function t(r){r.register(e),function(n){var a=[/"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/.source,/'[^']*'/.source,/\$'(?:[^'\\]|\\[\s\S])*'/.source,/<<-?\s*(["']?)(\w+)\1\s[\s\S]*?[\r\n]\2/.source].join("|");n.languages["shell-session"]={command:{pattern:RegExp(/^/.source+"(?:"+(/[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+(?::[^\0-\x1F$#%*?"<>:;|]+)?/.source+"|"+/[/~.][^\0-\x1F$#%*?"<>@:;|]*/.source)+")?"+/[$#%](?=\s)/.source+/(?:[^\\\r\n \t'"<$]|[ \t](?:(?!#)|#.*$)|\\(?:[^\r]|\r\n?)|\$(?!')|<(?!<)|<>)+/.source.replace(/<>/g,function(){return a}),"m"),greedy:!0,inside:{info:{pattern:/^[^#$%]+/,alias:"punctuation",inside:{user:/^[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+/,punctuation:/:/,path:/[\s\S]+/}},bash:{pattern:/(^[$#%]\s*)\S[\s\S]*/,lookbehind:!0,alias:"language-bash",inside:n.languages.bash},"shell-symbol":{pattern:/^[$#%]/,alias:"important"}}},output:/.(?:.*(?:[\r\n]|.$))*/},n.languages["sh-session"]=n.languages.shellsession=n.languages["shell-session"]}(r)}return Yg}var Kg,qT;function bie(){if(qT)return Kg;qT=1,Kg=e,e.displayName="smali",e.aliases=[];function e(t){t.languages.smali={comment:/#.*/,string:{pattern:/"(?:[^\r\n\\"]|\\.)*"|'(?:[^\r\n\\']|\\(?:.|u[\da-fA-F]{4}))'/,greedy:!0},"class-name":{pattern:/(^|[^L])L(?:(?:\w+|`[^`\r\n]*`)\/)*(?:[\w$]+|`[^`\r\n]*`)(?=\s*;)/,lookbehind:!0,inside:{"class-name":{pattern:/(^L|\/)(?:[\w$]+|`[^`\r\n]*`)$/,lookbehind:!0},namespace:{pattern:/^(L)(?:(?:\w+|`[^`\r\n]*`)\/)+/,lookbehind:!0,inside:{punctuation:/\//}},builtin:/^L/}},builtin:[{pattern:/([();\[])[BCDFIJSVZ]+/,lookbehind:!0},{pattern:/([\w$>]:)[BCDFIJSVZ]/,lookbehind:!0}],keyword:[{pattern:/(\.end\s+)[\w-]+/,lookbehind:!0},{pattern:/(^|[^\w.-])\.(?!\d)[\w-]+/,lookbehind:!0},{pattern:/(^|[^\w.-])(?:abstract|annotation|bridge|constructor|enum|final|interface|private|protected|public|runtime|static|synthetic|system|transient)(?![\w.-])/,lookbehind:!0}],function:{pattern:/(^|[^\w.-])(?:\w+|<[\w$-]+>)(?=\()/,lookbehind:!0},field:{pattern:/[\w$]+(?=:)/,alias:"variable"},register:{pattern:/(^|[^\w.-])[vp]\d(?![\w.-])/,lookbehind:!0,alias:"variable"},boolean:{pattern:/(^|[^\w.-])(?:false|true)(?![\w.-])/,lookbehind:!0},number:{pattern:/(^|[^/\w.-])-?(?:NAN|INFINITY|0x(?:[\dA-F]+(?:\.[\dA-F]*)?|\.[\dA-F]+)(?:p[+-]?[\dA-F]+)?|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)[dflst]?(?![\w.-])/i,lookbehind:!0},label:{pattern:/(:)\w+/,lookbehind:!0,alias:"property"},operator:/->|\.\.|[\[=]/,punctuation:/[{}(),;:]/}}return Kg}var Xg,HT;function yie(){if(HT)return Xg;HT=1,Xg=e,e.displayName="smalltalk",e.aliases=[];function e(t){t.languages.smalltalk={comment:{pattern:/"(?:""|[^"])*"/,greedy:!0},char:{pattern:/\$./,greedy:!0},string:{pattern:/'(?:''|[^'])*'/,greedy:!0},symbol:/#[\da-z]+|#(?:-|([+\/\\*~<>=@%|&?!])\1?)|#(?=\()/i,"block-arguments":{pattern:/(\[\s*):[^\[|]*\|/,lookbehind:!0,inside:{variable:/:[\da-z]+/i,punctuation:/\|/}},"temporary-variables":{pattern:/\|[^|]+\|/,inside:{variable:/[\da-z]+/i,punctuation:/\|/}},keyword:/\b(?:new|nil|self|super)\b/,boolean:/\b(?:false|true)\b/,number:[/\d+r-?[\dA-Z]+(?:\.[\dA-Z]+)?(?:e-?\d+)?/,/\b\d+(?:\.\d+)?(?:e-?\d+)?/],operator:/[<=]=?|:=|~[~=]|\/\/?|\\\\|>[>=]?|[!^+\-*&|,@]/,punctuation:/[.;:?\[\](){}]/}}return Xg}var Zg,WT;function vie(){if(WT)return Zg;WT=1;var e=er();Zg=t,t.displayName="smarty",t.aliases=[];function t(r){r.register(e),function(n){n.languages.smarty={comment:{pattern:/^\{\*[\s\S]*?\*\}/,greedy:!0},"embedded-php":{pattern:/^\{php\}[\s\S]*?\{\/php\}/,greedy:!0,inside:{smarty:{pattern:/^\{php\}|\{\/php\}$/,inside:null},php:{pattern:/[\s\S]+/,alias:"language-php",inside:n.languages.php}}},string:[{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0,inside:{interpolation:{pattern:/\{[^{}]*\}|`[^`]*`/,inside:{"interpolation-punctuation":{pattern:/^[{`]|[`}]$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},variable:/\$\w+/}},{pattern:/'(?:\\.|[^'\\\r\n])*'/,greedy:!0}],keyword:{pattern:/(^\{\/?)[a-z_]\w*\b(?!\()/i,lookbehind:!0,greedy:!0},delimiter:{pattern:/^\{\/?|\}$/,greedy:!0,alias:"punctuation"},number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,variable:[/\$(?!\d)\w+/,/#(?!\d)\w+#/,{pattern:/(\.|->|\w\s*=)(?!\d)\w+\b(?!\()/,lookbehind:!0},{pattern:/(\[)(?!\d)\w+(?=\])/,lookbehind:!0}],function:{pattern:/(\|\s*)@?[a-z_]\w*|\b[a-z_]\w*(?=\()/i,lookbehind:!0},"attr-name":/\b[a-z_]\w*(?=\s*=)/i,boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\[\](){}.,:`]|->/,operator:[/[+\-*\/%]|==?=?|[!<>]=?|&&|\|\|?/,/\bis\s+(?:not\s+)?(?:div|even|odd)(?:\s+by)?\b/,/\b(?:and|eq|gt?e|gt|lt?e|lt|mod|neq?|not|or)\b/]},n.languages.smarty["embedded-php"].inside.smarty.inside=n.languages.smarty,n.languages.smarty.string[0].inside.interpolation.inside.expression.inside=n.languages.smarty;var a=/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,i=RegExp(/\{\*[\s\S]*?\*\}/.source+"|"+/\{php\}[\s\S]*?\{\/php\}/.source+"|"+/\{(?:[^{}"']||\{(?:[^{}"']||\{(?:[^{}"']|)*\})*\})*\}/.source.replace(//g,function(){return a.source}),"g");n.hooks.add("before-tokenize",function(o){var s="{literal}",l="{/literal}",c=!1;n.languages["markup-templating"].buildPlaceholders(o,"smarty",i,function(d){return d===l&&(c=!1),c?!1:(d===s&&(c=!0),!0)})}),n.hooks.add("after-tokenize",function(o){n.languages["markup-templating"].tokenizePlaceholders(o,"smarty")})}(r)}return Zg}var Jg,VT;function Sie(){if(VT)return Jg;VT=1,Jg=e,e.displayName="sml",e.aliases=["smlnj"];function e(t){(function(r){var n=/\b(?:abstype|and|andalso|as|case|datatype|do|else|end|eqtype|exception|fn|fun|functor|handle|if|in|include|infix|infixr|let|local|nonfix|of|op|open|orelse|raise|rec|sharing|sig|signature|struct|structure|then|type|val|where|while|with|withtype)\b/i;r.languages.sml={comment:/\(\*(?:[^*(]|\*(?!\))|\((?!\*)|\(\*(?:[^*(]|\*(?!\))|\((?!\*))*\*\))*\*\)/,string:{pattern:/#?"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":[{pattern:RegExp(/((?:^|[^:]):\s*)(?:\s*(?:(?:\*|->)\s*|,\s*(?:(?=)|(?!)\s+)))*/.source.replace(//g,function(){return/\s*(?:[*,]|->)/.source}).replace(//g,function(){return/(?:'[\w']*||\((?:[^()]|\([^()]*\))*\)|\{(?:[^{}]|\{[^{}]*\})*\})(?:\s+)*/.source}).replace(//g,function(){return/(?!)[a-z\d_][\w'.]*/.source}).replace(//g,function(){return n.source}),"i"),lookbehind:!0,greedy:!0,inside:null},{pattern:/((?:^|[^\w'])(?:datatype|exception|functor|signature|structure|type)\s+)[a-z_][\w'.]*/i,lookbehind:!0}],function:{pattern:/((?:^|[^\w'])fun\s+)[a-z_][\w'.]*/i,lookbehind:!0},keyword:n,variable:{pattern:/(^|[^\w'])'[\w']*/,lookbehind:!0},number:/~?\b(?:\d+(?:\.\d+)?(?:e~?\d+)?|0x[\da-f]+)\b/i,word:{pattern:/\b0w(?:\d+|x[\da-f]+)\b/i,alias:"constant"},boolean:/\b(?:false|true)\b/i,operator:/\.\.\.|:[>=:]|=>?|->|[<>]=?|[!+\-*/^#|@~]/,punctuation:/[(){}\[\].:,;]/},r.languages.sml["class-name"][0].inside=r.languages.sml,r.languages.smlnj=r.languages.sml})(t)}return Jg}var Qg,YT;function Eie(){if(YT)return Qg;YT=1,Qg=e,e.displayName="solidity",e.aliases=["sol"];function e(t){t.languages.solidity=t.languages.extend("clike",{"class-name":{pattern:/(\b(?:contract|enum|interface|library|new|struct|using)\s+)(?!\d)[\w$]+/,lookbehind:!0},keyword:/\b(?:_|anonymous|as|assembly|assert|break|calldata|case|constant|constructor|continue|contract|default|delete|do|else|emit|enum|event|external|for|from|function|if|import|indexed|inherited|interface|internal|is|let|library|mapping|memory|modifier|new|payable|pragma|private|public|pure|require|returns?|revert|selfdestruct|solidity|storage|struct|suicide|switch|this|throw|using|var|view|while)\b/,operator:/=>|->|:=|=:|\*\*|\+\+|--|\|\||&&|<<=?|>>=?|[-+*/%^&|<>!=]=?|[~?]/}),t.languages.insertBefore("solidity","keyword",{builtin:/\b(?:address|bool|byte|u?int(?:8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?|string|bytes(?:[1-9]|[12]\d|3[0-2])?)\b/}),t.languages.insertBefore("solidity","number",{version:{pattern:/([<>]=?|\^)\d+\.\d+\.\d+\b/,lookbehind:!0,alias:"number"}}),t.languages.sol=t.languages.solidity}return Qg}var eh,KT;function xie(){if(KT)return eh;KT=1,eh=e,e.displayName="solutionFile",e.aliases=[];function e(t){(function(r){var n={pattern:/\{[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}\}/i,alias:"constant",inside:{punctuation:/[{}]/}};r.languages["solution-file"]={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0,inside:{guid:n}},object:{pattern:/^([ \t]*)(?:([A-Z]\w*)\b(?=.*(?:\r\n?|\n)(?:\1[ \t].*(?:\r\n?|\n))*\1End\2(?=[ \t]*$))|End[A-Z]\w*(?=[ \t]*$))/m,lookbehind:!0,greedy:!0,alias:"keyword"},property:{pattern:/^([ \t]*)(?!\s)[^\r\n"#=()]*[^\s"#=()](?=\s*=)/m,lookbehind:!0,inside:{guid:n}},guid:n,number:/\b\d+(?:\.\d+)*\b/,boolean:/\b(?:FALSE|TRUE)\b/,operator:/=/,punctuation:/[(),]/},r.languages.sln=r.languages["solution-file"]})(t)}return eh}var th,XT;function wie(){if(XT)return th;XT=1;var e=er();th=t,t.displayName="soy",t.aliases=[];function t(r){r.register(e),function(n){var a=/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,i=/\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-F]+\b/;n.languages.soy={comment:[/\/\*[\s\S]*?\*\//,{pattern:/(\s)\/\/.*/,lookbehind:!0,greedy:!0}],"command-arg":{pattern:/(\{+\/?\s*(?:alias|call|delcall|delpackage|deltemplate|namespace|template)\s+)\.?[\w.]+/,lookbehind:!0,alias:"string",inside:{punctuation:/\./}},parameter:{pattern:/(\{+\/?\s*@?param\??\s+)\.?[\w.]+/,lookbehind:!0,alias:"variable"},keyword:[{pattern:/(\{+\/?[^\S\r\n]*)(?:\\[nrt]|alias|call|case|css|default|delcall|delpackage|deltemplate|else(?:if)?|fallbackmsg|for(?:each)?|if(?:empty)?|lb|let|literal|msg|namespace|nil|@?param\??|rb|sp|switch|template|xid)/,lookbehind:!0},/\b(?:any|as|attributes|bool|css|float|html|in|int|js|list|map|null|number|string|uri)\b/],delimiter:{pattern:/^\{+\/?|\/?\}+$/,alias:"punctuation"},property:/\w+(?==)/,variable:{pattern:/\$[^\W\d]\w*(?:\??(?:\.\w+|\[[^\]]+\]))*/,inside:{string:{pattern:a,greedy:!0},number:i,punctuation:/[\[\].?]/}},string:{pattern:a,greedy:!0},function:[/\w+(?=\()/,{pattern:/(\|[^\S\r\n]*)\w+/,lookbehind:!0}],boolean:/\b(?:false|true)\b/,number:i,operator:/\?:?|<=?|>=?|==?|!=|[+*/%-]|\b(?:and|not|or)\b/,punctuation:/[{}()\[\]|.,:]/},n.hooks.add("before-tokenize",function(o){var s=/\{\{.+?\}\}|\{.+?\}|\s\/\/.*|\/\*[\s\S]*?\*\//g,l="{literal}",c="{/literal}",d=!1;n.languages["markup-templating"].buildPlaceholders(o,"soy",s,function(p){return p===c&&(d=!1),d?!1:(p===l&&(d=!0),!0)})}),n.hooks.add("after-tokenize",function(o){n.languages["markup-templating"].tokenizePlaceholders(o,"soy")})}(r)}return th}var rh,ZT;function NI(){if(ZT)return rh;ZT=1,rh=e,e.displayName="turtle",e.aliases=[];function e(t){t.languages.turtle={comment:{pattern:/#.*/,greedy:!0},"multiline-string":{pattern:/"""(?:(?:""?)?(?:[^"\\]|\\.))*"""|'''(?:(?:''?)?(?:[^'\\]|\\.))*'''/,greedy:!0,alias:"string",inside:{comment:/#.*/}},string:{pattern:/"(?:[^\\"\r\n]|\\.)*"|'(?:[^\\'\r\n]|\\.)*'/,greedy:!0},url:{pattern:/<(?:[^\x00-\x20<>"{}|^`\\]|\\(?:u[\da-fA-F]{4}|U[\da-fA-F]{8}))*>/,greedy:!0,inside:{punctuation:/[<>]/}},function:{pattern:/(?:(?![-.\d\xB7])[-.\w\xB7\xC0-\uFFFD]+)?:(?:(?![-.])(?:[-.:\w\xC0-\uFFFD]|%[\da-f]{2}|\\.)+)?/i,inside:{"local-name":{pattern:/([^:]*:)[\s\S]+/,lookbehind:!0},prefix:{pattern:/[\s\S]+/,inside:{punctuation:/:/}}}},number:/[+-]?\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,punctuation:/[{}.,;()[\]]|\^\^/,boolean:/\b(?:false|true)\b/,keyword:[/(?:\ba|@prefix|@base)\b|=/,/\b(?:base|graph|prefix)\b/i],tag:{pattern:/@[a-z]+(?:-[a-z\d]+)*/i,inside:{punctuation:/@/}}},t.languages.trig=t.languages.turtle}return rh}var nh,JT;function _ie(){if(JT)return nh;JT=1;var e=NI();nh=t,t.displayName="sparql",t.aliases=["rq"];function t(r){r.register(e),r.languages.sparql=r.languages.extend("turtle",{boolean:/\b(?:false|true)\b/i,variable:{pattern:/[?$]\w+/,greedy:!0}}),r.languages.insertBefore("sparql","punctuation",{keyword:[/\b(?:A|ADD|ALL|AS|ASC|ASK|BNODE|BY|CLEAR|CONSTRUCT|COPY|CREATE|DATA|DEFAULT|DELETE|DESC|DESCRIBE|DISTINCT|DROP|EXISTS|FILTER|FROM|GROUP|HAVING|INSERT|INTO|LIMIT|LOAD|MINUS|MOVE|NAMED|NOT|NOW|OFFSET|OPTIONAL|ORDER|RAND|REDUCED|SELECT|SEPARATOR|SERVICE|SILENT|STRUUID|UNION|USING|UUID|VALUES|WHERE)\b/i,/\b(?:ABS|AVG|BIND|BOUND|CEIL|COALESCE|CONCAT|CONTAINS|COUNT|DATATYPE|DAY|ENCODE_FOR_URI|FLOOR|GROUP_CONCAT|HOURS|IF|IRI|isBLANK|isIRI|isLITERAL|isNUMERIC|isURI|LANG|LANGMATCHES|LCASE|MAX|MD5|MIN|MINUTES|MONTH|REGEX|REPLACE|ROUND|sameTerm|SAMPLE|SECONDS|SHA1|SHA256|SHA384|SHA512|STR|STRAFTER|STRBEFORE|STRDT|STRENDS|STRLANG|STRLEN|STRSTARTS|SUBSTR|SUM|TIMEZONE|TZ|UCASE|URI|YEAR)\b(?=\s*\()/i,/\b(?:BASE|GRAPH|PREFIX)\b/i]}),r.languages.rq=r.languages.sparql}return nh}var ah,QT;function Tie(){if(QT)return ah;QT=1,ah=e,e.displayName="splunkSpl",e.aliases=[];function e(t){t.languages["splunk-spl"]={comment:/`comment\("(?:\\.|[^\\"])*"\)`/,string:{pattern:/"(?:\\.|[^\\"])*"/,greedy:!0},keyword:/\b(?:abstract|accum|addcoltotals|addinfo|addtotals|analyzefields|anomalies|anomalousvalue|anomalydetection|append|appendcols|appendcsv|appendlookup|appendpipe|arules|associate|audit|autoregress|bin|bucket|bucketdir|chart|cluster|cofilter|collect|concurrency|contingency|convert|correlate|datamodel|dbinspect|dedup|delete|delta|diff|erex|eval|eventcount|eventstats|extract|fieldformat|fields|fieldsummary|filldown|fillnull|findtypes|folderize|foreach|format|from|gauge|gentimes|geom|geomfilter|geostats|head|highlight|history|iconify|input|inputcsv|inputlookup|iplocation|join|kmeans|kv|kvform|loadjob|localize|localop|lookup|makecontinuous|makemv|makeresults|map|mcollect|metadata|metasearch|meventcollect|mstats|multikv|multisearch|mvcombine|mvexpand|nomv|outlier|outputcsv|outputlookup|outputtext|overlap|pivot|predict|rangemap|rare|regex|relevancy|reltime|rename|replace|rest|return|reverse|rex|rtorder|run|savedsearch|script|scrub|search|searchtxn|selfjoin|sendemail|set|setfields|sichart|sirare|sistats|sitimechart|sitop|sort|spath|stats|strcat|streamstats|table|tags|tail|timechart|timewrap|top|transaction|transpose|trendline|tscollect|tstats|typeahead|typelearner|typer|union|uniq|untable|where|x11|xmlkv|xmlunescape|xpath|xyseries)\b/i,"operator-word":{pattern:/\b(?:and|as|by|not|or|xor)\b/i,alias:"operator"},function:/\b\w+(?=\s*\()/,property:/\b\w+(?=\s*=(?!=))/,date:{pattern:/\b\d{1,2}\/\d{1,2}\/\d{1,4}(?:(?::\d{1,2}){3})?\b/,alias:"number"},number:/\b\d+(?:\.\d+)?\b/,boolean:/\b(?:f|false|t|true)\b/i,operator:/[<>=]=?|[-+*/%|]/,punctuation:/[()[\],]/}}return ah}var ih,eA;function Aie(){if(eA)return ih;eA=1,ih=e,e.displayName="sqf",e.aliases=[];function e(t){t.languages.sqf=t.languages.extend("clike",{string:{pattern:/"(?:(?:"")?[^"])*"(?!")|'(?:[^'])*'/,greedy:!0},keyword:/\b(?:breakOut|breakTo|call|case|catch|default|do|echo|else|execFSM|execVM|exitWith|for|forEach|forEachMember|forEachMemberAgent|forEachMemberTeam|from|goto|if|nil|preprocessFile|preprocessFileLineNumbers|private|scopeName|spawn|step|switch|then|throw|to|try|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\b(?:abs|accTime|acos|action|actionIDs|actionKeys|actionKeysImages|actionKeysNames|actionKeysNamesArray|actionName|actionParams|activateAddons|activatedAddons|activateKey|add3DENConnection|add3DENEventHandler|add3DENLayer|addAction|addBackpack|addBackpackCargo|addBackpackCargoGlobal|addBackpackGlobal|addCamShake|addCuratorAddons|addCuratorCameraArea|addCuratorEditableObjects|addCuratorEditingArea|addCuratorPoints|addEditorObject|addEventHandler|addForce|addForceGeneratorRTD|addGoggles|addGroupIcon|addHandgunItem|addHeadgear|addItem|addItemCargo|addItemCargoGlobal|addItemPool|addItemToBackpack|addItemToUniform|addItemToVest|addLiveStats|addMagazine|addMagazineAmmoCargo|addMagazineCargo|addMagazineCargoGlobal|addMagazineGlobal|addMagazinePool|addMagazines|addMagazineTurret|addMenu|addMenuItem|addMissionEventHandler|addMPEventHandler|addMusicEventHandler|addOwnedMine|addPlayerScores|addPrimaryWeaponItem|addPublicVariableEventHandler|addRating|addResources|addScore|addScoreSide|addSecondaryWeaponItem|addSwitchableUnit|addTeamMember|addToRemainsCollector|addTorque|addUniform|addVehicle|addVest|addWaypoint|addWeapon|addWeaponCargo|addWeaponCargoGlobal|addWeaponGlobal|addWeaponItem|addWeaponPool|addWeaponTurret|admin|agent|agents|AGLToASL|aimedAtTarget|aimPos|airDensityCurveRTD|airDensityRTD|airplaneThrottle|airportSide|AISFinishHeal|alive|all3DENEntities|allAirports|allControls|allCurators|allCutLayers|allDead|allDeadMen|allDisplays|allGroups|allMapMarkers|allMines|allMissionObjects|allow3DMode|allowCrewInImmobile|allowCuratorLogicIgnoreAreas|allowDamage|allowDammage|allowFileOperations|allowFleeing|allowGetIn|allowSprint|allPlayers|allSimpleObjects|allSites|allTurrets|allUnits|allUnitsUAV|allVariables|ammo|ammoOnPylon|animate|animateBay|animateDoor|animatePylon|animateSource|animationNames|animationPhase|animationSourcePhase|animationState|append|apply|armoryPoints|arrayIntersect|asin|ASLToAGL|ASLToATL|assert|assignAsCargo|assignAsCargoIndex|assignAsCommander|assignAsDriver|assignAsGunner|assignAsTurret|assignCurator|assignedCargo|assignedCommander|assignedDriver|assignedGunner|assignedItems|assignedTarget|assignedTeam|assignedVehicle|assignedVehicleRole|assignItem|assignTeam|assignToAirport|atan|atan2|atg|ATLToASL|attachedObject|attachedObjects|attachedTo|attachObject|attachTo|attackEnabled|backpack|backpackCargo|backpackContainer|backpackItems|backpackMagazines|backpackSpaceFor|behaviour|benchmark|binocular|blufor|boundingBox|boundingBoxReal|boundingCenter|briefingName|buildingExit|buildingPos|buldozer_EnableRoadDiag|buldozer_IsEnabledRoadDiag|buldozer_LoadNewRoads|buldozer_reloadOperMap|buttonAction|buttonSetAction|cadetMode|callExtension|camCommand|camCommit|camCommitPrepared|camCommitted|camConstuctionSetParams|camCreate|camDestroy|cameraEffect|cameraEffectEnableHUD|cameraInterest|cameraOn|cameraView|campaignConfigFile|camPreload|camPreloaded|camPrepareBank|camPrepareDir|camPrepareDive|camPrepareFocus|camPrepareFov|camPrepareFovRange|camPreparePos|camPrepareRelPos|camPrepareTarget|camSetBank|camSetDir|camSetDive|camSetFocus|camSetFov|camSetFovRange|camSetPos|camSetRelPos|camSetTarget|camTarget|camUseNVG|canAdd|canAddItemToBackpack|canAddItemToUniform|canAddItemToVest|cancelSimpleTaskDestination|canFire|canMove|canSlingLoad|canStand|canSuspend|canTriggerDynamicSimulation|canUnloadInCombat|canVehicleCargo|captive|captiveNum|cbChecked|cbSetChecked|ceil|channelEnabled|cheatsEnabled|checkAIFeature|checkVisibility|civilian|className|clear3DENAttribute|clear3DENInventory|clearAllItemsFromBackpack|clearBackpackCargo|clearBackpackCargoGlobal|clearForcesRTD|clearGroupIcons|clearItemCargo|clearItemCargoGlobal|clearItemPool|clearMagazineCargo|clearMagazineCargoGlobal|clearMagazinePool|clearOverlay|clearRadio|clearVehicleInit|clearWeaponCargo|clearWeaponCargoGlobal|clearWeaponPool|clientOwner|closeDialog|closeDisplay|closeOverlay|collapseObjectTree|collect3DENHistory|collectiveRTD|combatMode|commandArtilleryFire|commandChat|commander|commandFire|commandFollow|commandFSM|commandGetOut|commandingMenu|commandMove|commandRadio|commandStop|commandSuppressiveFire|commandTarget|commandWatch|comment|commitOverlay|compile|compileFinal|completedFSM|composeText|configClasses|configFile|configHierarchy|configName|configNull|configProperties|configSourceAddonList|configSourceMod|configSourceModList|confirmSensorTarget|connectTerminalToUAV|controlNull|controlsGroupCtrl|copyFromClipboard|copyToClipboard|copyWaypoints|cos|count|countEnemy|countFriendly|countSide|countType|countUnknown|create3DENComposition|create3DENEntity|createAgent|createCenter|createDialog|createDiaryLink|createDiaryRecord|createDiarySubject|createDisplay|createGearDialog|createGroup|createGuardedPoint|createLocation|createMarker|createMarkerLocal|createMenu|createMine|createMissionDisplay|createMPCampaignDisplay|createSimpleObject|createSimpleTask|createSite|createSoundSource|createTask|createTeam|createTrigger|createUnit|createVehicle|createVehicleCrew|createVehicleLocal|crew|ctAddHeader|ctAddRow|ctClear|ctCurSel|ctData|ctFindHeaderRows|ctFindRowHeader|ctHeaderControls|ctHeaderCount|ctRemoveHeaders|ctRemoveRows|ctrlActivate|ctrlAddEventHandler|ctrlAngle|ctrlAutoScrollDelay|ctrlAutoScrollRewind|ctrlAutoScrollSpeed|ctrlChecked|ctrlClassName|ctrlCommit|ctrlCommitted|ctrlCreate|ctrlDelete|ctrlEnable|ctrlEnabled|ctrlFade|ctrlHTMLLoaded|ctrlIDC|ctrlIDD|ctrlMapAnimAdd|ctrlMapAnimClear|ctrlMapAnimCommit|ctrlMapAnimDone|ctrlMapCursor|ctrlMapMouseOver|ctrlMapScale|ctrlMapScreenToWorld|ctrlMapWorldToScreen|ctrlModel|ctrlModelDirAndUp|ctrlModelScale|ctrlParent|ctrlParentControlsGroup|ctrlPosition|ctrlRemoveAllEventHandlers|ctrlRemoveEventHandler|ctrlScale|ctrlSetActiveColor|ctrlSetAngle|ctrlSetAutoScrollDelay|ctrlSetAutoScrollRewind|ctrlSetAutoScrollSpeed|ctrlSetBackgroundColor|ctrlSetChecked|ctrlSetDisabledColor|ctrlSetEventHandler|ctrlSetFade|ctrlSetFocus|ctrlSetFont|ctrlSetFontH1|ctrlSetFontH1B|ctrlSetFontH2|ctrlSetFontH2B|ctrlSetFontH3|ctrlSetFontH3B|ctrlSetFontH4|ctrlSetFontH4B|ctrlSetFontH5|ctrlSetFontH5B|ctrlSetFontH6|ctrlSetFontH6B|ctrlSetFontHeight|ctrlSetFontHeightH1|ctrlSetFontHeightH2|ctrlSetFontHeightH3|ctrlSetFontHeightH4|ctrlSetFontHeightH5|ctrlSetFontHeightH6|ctrlSetFontHeightSecondary|ctrlSetFontP|ctrlSetFontPB|ctrlSetFontSecondary|ctrlSetForegroundColor|ctrlSetModel|ctrlSetModelDirAndUp|ctrlSetModelScale|ctrlSetPixelPrecision|ctrlSetPosition|ctrlSetScale|ctrlSetStructuredText|ctrlSetText|ctrlSetTextColor|ctrlSetTextColorSecondary|ctrlSetTextSecondary|ctrlSetTooltip|ctrlSetTooltipColorBox|ctrlSetTooltipColorShade|ctrlSetTooltipColorText|ctrlShow|ctrlShown|ctrlText|ctrlTextHeight|ctrlTextSecondary|ctrlTextWidth|ctrlType|ctrlVisible|ctRowControls|ctRowCount|ctSetCurSel|ctSetData|ctSetHeaderTemplate|ctSetRowTemplate|ctSetValue|ctValue|curatorAddons|curatorCamera|curatorCameraArea|curatorCameraAreaCeiling|curatorCoef|curatorEditableObjects|curatorEditingArea|curatorEditingAreaType|curatorMouseOver|curatorPoints|curatorRegisteredObjects|curatorSelected|curatorWaypointCost|current3DENOperation|currentChannel|currentCommand|currentMagazine|currentMagazineDetail|currentMagazineDetailTurret|currentMagazineTurret|currentMuzzle|currentNamespace|currentTask|currentTasks|currentThrowable|currentVisionMode|currentWaypoint|currentWeapon|currentWeaponMode|currentWeaponTurret|currentZeroing|cursorObject|cursorTarget|customChat|customRadio|cutFadeOut|cutObj|cutRsc|cutText|damage|date|dateToNumber|daytime|deActivateKey|debriefingText|debugFSM|debugLog|deg|delete3DENEntities|deleteAt|deleteCenter|deleteCollection|deleteEditorObject|deleteGroup|deleteGroupWhenEmpty|deleteIdentity|deleteLocation|deleteMarker|deleteMarkerLocal|deleteRange|deleteResources|deleteSite|deleteStatus|deleteTeam|deleteVehicle|deleteVehicleCrew|deleteWaypoint|detach|detectedMines|diag_activeMissionFSMs|diag_activeScripts|diag_activeSQFScripts|diag_activeSQSScripts|diag_captureFrame|diag_captureFrameToFile|diag_captureSlowFrame|diag_codePerformance|diag_drawMode|diag_dynamicSimulationEnd|diag_enable|diag_enabled|diag_fps|diag_fpsMin|diag_frameNo|diag_lightNewLoad|diag_list|diag_log|diag_logSlowFrame|diag_mergeConfigFile|diag_recordTurretLimits|diag_setLightNew|diag_tickTime|diag_toggle|dialog|diarySubjectExists|didJIP|didJIPOwner|difficulty|difficultyEnabled|difficultyEnabledRTD|difficultyOption|direction|directSay|disableAI|disableCollisionWith|disableConversation|disableDebriefingStats|disableMapIndicators|disableNVGEquipment|disableRemoteSensors|disableSerialization|disableTIEquipment|disableUAVConnectability|disableUserInput|displayAddEventHandler|displayCtrl|displayNull|displayParent|displayRemoveAllEventHandlers|displayRemoveEventHandler|displaySetEventHandler|dissolveTeam|distance|distance2D|distanceSqr|distributionRegion|do3DENAction|doArtilleryFire|doFire|doFollow|doFSM|doGetOut|doMove|doorPhase|doStop|doSuppressiveFire|doTarget|doWatch|drawArrow|drawEllipse|drawIcon|drawIcon3D|drawLine|drawLine3D|drawLink|drawLocation|drawPolygon|drawRectangle|drawTriangle|driver|drop|dynamicSimulationDistance|dynamicSimulationDistanceCoef|dynamicSimulationEnabled|dynamicSimulationSystemEnabled|east|edit3DENMissionAttributes|editObject|editorSetEventHandler|effectiveCommander|emptyPositions|enableAI|enableAIFeature|enableAimPrecision|enableAttack|enableAudioFeature|enableAutoStartUpRTD|enableAutoTrimRTD|enableCamShake|enableCaustics|enableChannel|enableCollisionWith|enableCopilot|enableDebriefingStats|enableDiagLegend|enableDynamicSimulation|enableDynamicSimulationSystem|enableEndDialog|enableEngineArtillery|enableEnvironment|enableFatigue|enableGunLights|enableInfoPanelComponent|enableIRLasers|enableMimics|enablePersonTurret|enableRadio|enableReload|enableRopeAttach|enableSatNormalOnDetail|enableSaving|enableSentences|enableSimulation|enableSimulationGlobal|enableStamina|enableStressDamage|enableTeamSwitch|enableTraffic|enableUAVConnectability|enableUAVWaypoints|enableVehicleCargo|enableVehicleSensor|enableWeaponDisassembly|endl|endLoadingScreen|endMission|engineOn|enginesIsOnRTD|enginesPowerRTD|enginesRpmRTD|enginesTorqueRTD|entities|environmentEnabled|estimatedEndServerTime|estimatedTimeLeft|evalObjectArgument|everyBackpack|everyContainer|exec|execEditorScript|exp|expectedDestination|exportJIPMessages|eyeDirection|eyePos|face|faction|fadeMusic|fadeRadio|fadeSound|fadeSpeech|failMission|fillWeaponsFromPool|find|findCover|findDisplay|findEditorObject|findEmptyPosition|findEmptyPositionReady|findIf|findNearestEnemy|finishMissionInit|finite|fire|fireAtTarget|firstBackpack|flag|flagAnimationPhase|flagOwner|flagSide|flagTexture|fleeing|floor|flyInHeight|flyInHeightASL|fog|fogForecast|fogParams|forceAddUniform|forceAtPositionRTD|forcedMap|forceEnd|forceFlagTexture|forceFollowRoad|forceGeneratorRTD|forceMap|forceRespawn|forceSpeed|forceWalk|forceWeaponFire|forceWeatherChange|forgetTarget|format|formation|formationDirection|formationLeader|formationMembers|formationPosition|formationTask|formatText|formLeader|freeLook|fromEditor|fuel|fullCrew|gearIDCAmmoCount|gearSlotAmmoCount|gearSlotData|get3DENActionState|get3DENAttribute|get3DENCamera|get3DENConnections|get3DENEntity|get3DENEntityID|get3DENGrid|get3DENIconsVisible|get3DENLayerEntities|get3DENLinesVisible|get3DENMissionAttribute|get3DENMouseOver|get3DENSelected|getAimingCoef|getAllEnvSoundControllers|getAllHitPointsDamage|getAllOwnedMines|getAllSoundControllers|getAmmoCargo|getAnimAimPrecision|getAnimSpeedCoef|getArray|getArtilleryAmmo|getArtilleryComputerSettings|getArtilleryETA|getAssignedCuratorLogic|getAssignedCuratorUnit|getBackpackCargo|getBleedingRemaining|getBurningValue|getCameraViewDirection|getCargoIndex|getCenterOfMass|getClientState|getClientStateNumber|getCompatiblePylonMagazines|getConnectedUAV|getContainerMaxLoad|getCursorObjectParams|getCustomAimCoef|getDammage|getDescription|getDir|getDirVisual|getDLCAssetsUsage|getDLCAssetsUsageByName|getDLCs|getDLCUsageTime|getEditorCamera|getEditorMode|getEditorObjectScope|getElevationOffset|getEngineTargetRpmRTD|getEnvSoundController|getFatigue|getFieldManualStartPage|getForcedFlagTexture|getFriend|getFSMVariable|getFuelCargo|getGroupIcon|getGroupIconParams|getGroupIcons|getHideFrom|getHit|getHitIndex|getHitPointDamage|getItemCargo|getMagazineCargo|getMarkerColor|getMarkerPos|getMarkerSize|getMarkerType|getMass|getMissionConfig|getMissionConfigValue|getMissionDLCs|getMissionLayerEntities|getMissionLayers|getModelInfo|getMousePosition|getMusicPlayedTime|getNumber|getObjectArgument|getObjectChildren|getObjectDLC|getObjectMaterials|getObjectProxy|getObjectTextures|getObjectType|getObjectViewDistance|getOxygenRemaining|getPersonUsedDLCs|getPilotCameraDirection|getPilotCameraPosition|getPilotCameraRotation|getPilotCameraTarget|getPlateNumber|getPlayerChannel|getPlayerScores|getPlayerUID|getPlayerUIDOld|getPos|getPosASL|getPosASLVisual|getPosASLW|getPosATL|getPosATLVisual|getPosVisual|getPosWorld|getPylonMagazines|getRelDir|getRelPos|getRemoteSensorsDisabled|getRepairCargo|getResolution|getRotorBrakeRTD|getShadowDistance|getShotParents|getSlingLoad|getSoundController|getSoundControllerResult|getSpeed|getStamina|getStatValue|getSuppression|getTerrainGrid|getTerrainHeightASL|getText|getTotalDLCUsageTime|getTrimOffsetRTD|getUnitLoadout|getUnitTrait|getUserMFDText|getUserMFDValue|getVariable|getVehicleCargo|getWeaponCargo|getWeaponSway|getWingsOrientationRTD|getWingsPositionRTD|getWPPos|glanceAt|globalChat|globalRadio|goggles|group|groupChat|groupFromNetId|groupIconSelectable|groupIconsVisible|groupId|groupOwner|groupRadio|groupSelectedUnits|groupSelectUnit|grpNull|gunner|gusts|halt|handgunItems|handgunMagazine|handgunWeapon|handsHit|hasInterface|hasPilotCamera|hasWeapon|hcAllGroups|hcGroupParams|hcLeader|hcRemoveAllGroups|hcRemoveGroup|hcSelected|hcSelectGroup|hcSetGroup|hcShowBar|hcShownBar|headgear|hideBody|hideObject|hideObjectGlobal|hideSelection|hint|hintC|hintCadet|hintSilent|hmd|hostMission|htmlLoad|HUDMovementLevels|humidity|image|importAllGroups|importance|in|inArea|inAreaArray|incapacitatedState|independent|inflame|inflamed|infoPanel|infoPanelComponentEnabled|infoPanelComponents|infoPanels|inGameUISetEventHandler|inheritsFrom|initAmbientLife|inPolygon|inputAction|inRangeOfArtillery|insertEditorObject|intersect|is3DEN|is3DENMultiplayer|isAbleToBreathe|isAgent|isAimPrecisionEnabled|isArray|isAutoHoverOn|isAutonomous|isAutoStartUpEnabledRTD|isAutotest|isAutoTrimOnRTD|isBleeding|isBurning|isClass|isCollisionLightOn|isCopilotEnabled|isDamageAllowed|isDedicated|isDLCAvailable|isEngineOn|isEqualTo|isEqualType|isEqualTypeAll|isEqualTypeAny|isEqualTypeArray|isEqualTypeParams|isFilePatchingEnabled|isFlashlightOn|isFlatEmpty|isForcedWalk|isFormationLeader|isGroupDeletedWhenEmpty|isHidden|isInRemainsCollector|isInstructorFigureEnabled|isIRLaserOn|isKeyActive|isKindOf|isLaserOn|isLightOn|isLocalized|isManualFire|isMarkedForCollection|isMultiplayer|isMultiplayerSolo|isNil|isNull|isNumber|isObjectHidden|isObjectRTD|isOnRoad|isPipEnabled|isPlayer|isRealTime|isRemoteExecuted|isRemoteExecutedJIP|isServer|isShowing3DIcons|isSimpleObject|isSprintAllowed|isStaminaEnabled|isSteamMission|isStreamFriendlyUIEnabled|isStressDamageEnabled|isText|isTouchingGround|isTurnedOut|isTutHintsEnabled|isUAVConnectable|isUAVConnected|isUIContext|isUniformAllowed|isVehicleCargo|isVehicleRadarOn|isVehicleSensorEnabled|isWalking|isWeaponDeployed|isWeaponRested|itemCargo|items|itemsWithMagazines|join|joinAs|joinAsSilent|joinSilent|joinString|kbAddDatabase|kbAddDatabaseTargets|kbAddTopic|kbHasTopic|kbReact|kbRemoveTopic|kbTell|kbWasSaid|keyImage|keyName|knowsAbout|land|landAt|landResult|language|laserTarget|lbAdd|lbClear|lbColor|lbColorRight|lbCurSel|lbData|lbDelete|lbIsSelected|lbPicture|lbPictureRight|lbSelection|lbSetColor|lbSetColorRight|lbSetCurSel|lbSetData|lbSetPicture|lbSetPictureColor|lbSetPictureColorDisabled|lbSetPictureColorSelected|lbSetPictureRight|lbSetPictureRightColor|lbSetPictureRightColorDisabled|lbSetPictureRightColorSelected|lbSetSelectColor|lbSetSelectColorRight|lbSetSelected|lbSetText|lbSetTextRight|lbSetTooltip|lbSetValue|lbSize|lbSort|lbSortByValue|lbText|lbTextRight|lbValue|leader|leaderboardDeInit|leaderboardGetRows|leaderboardInit|leaderboardRequestRowsFriends|leaderboardRequestRowsGlobal|leaderboardRequestRowsGlobalAroundUser|leaderboardsRequestUploadScore|leaderboardsRequestUploadScoreKeepBest|leaderboardState|leaveVehicle|libraryCredits|libraryDisclaimers|lifeState|lightAttachObject|lightDetachObject|lightIsOn|lightnings|limitSpeed|linearConversion|lineBreak|lineIntersects|lineIntersectsObjs|lineIntersectsSurfaces|lineIntersectsWith|linkItem|list|listObjects|listRemoteTargets|listVehicleSensors|ln|lnbAddArray|lnbAddColumn|lnbAddRow|lnbClear|lnbColor|lnbColorRight|lnbCurSelRow|lnbData|lnbDeleteColumn|lnbDeleteRow|lnbGetColumnsPosition|lnbPicture|lnbPictureRight|lnbSetColor|lnbSetColorRight|lnbSetColumnsPos|lnbSetCurSelRow|lnbSetData|lnbSetPicture|lnbSetPictureColor|lnbSetPictureColorRight|lnbSetPictureColorSelected|lnbSetPictureColorSelectedRight|lnbSetPictureRight|lnbSetText|lnbSetTextRight|lnbSetValue|lnbSize|lnbSort|lnbSortByValue|lnbText|lnbTextRight|lnbValue|load|loadAbs|loadBackpack|loadFile|loadGame|loadIdentity|loadMagazine|loadOverlay|loadStatus|loadUniform|loadVest|local|localize|locationNull|locationPosition|lock|lockCameraTo|lockCargo|lockDriver|locked|lockedCargo|lockedDriver|lockedTurret|lockIdentity|lockTurret|lockWP|log|logEntities|logNetwork|logNetworkTerminate|lookAt|lookAtPos|magazineCargo|magazines|magazinesAllTurrets|magazinesAmmo|magazinesAmmoCargo|magazinesAmmoFull|magazinesDetail|magazinesDetailBackpack|magazinesDetailUniform|magazinesDetailVest|magazinesTurret|magazineTurretAmmo|mapAnimAdd|mapAnimClear|mapAnimCommit|mapAnimDone|mapCenterOnCamera|mapGridPosition|markAsFinishedOnSteam|markerAlpha|markerBrush|markerColor|markerDir|markerPos|markerShape|markerSize|markerText|markerType|max|members|menuAction|menuAdd|menuChecked|menuClear|menuCollapse|menuData|menuDelete|menuEnable|menuEnabled|menuExpand|menuHover|menuPicture|menuSetAction|menuSetCheck|menuSetData|menuSetPicture|menuSetValue|menuShortcut|menuShortcutText|menuSize|menuSort|menuText|menuURL|menuValue|min|mineActive|mineDetectedBy|missionConfigFile|missionDifficulty|missionName|missionNamespace|missionStart|missionVersion|modelToWorld|modelToWorldVisual|modelToWorldVisualWorld|modelToWorldWorld|modParams|moonIntensity|moonPhase|morale|move|move3DENCamera|moveInAny|moveInCargo|moveInCommander|moveInDriver|moveInGunner|moveInTurret|moveObjectToEnd|moveOut|moveTime|moveTo|moveToCompleted|moveToFailed|musicVolume|name|nameSound|nearEntities|nearestBuilding|nearestLocation|nearestLocations|nearestLocationWithDubbing|nearestObject|nearestObjects|nearestTerrainObjects|nearObjects|nearObjectsReady|nearRoads|nearSupplies|nearTargets|needReload|netId|netObjNull|newOverlay|nextMenuItemIndex|nextWeatherChange|nMenuItems|numberOfEnginesRTD|numberToDate|objectCurators|objectFromNetId|objectParent|objNull|objStatus|onBriefingGear|onBriefingGroup|onBriefingNotes|onBriefingPlan|onBriefingTeamSwitch|onCommandModeChanged|onDoubleClick|onEachFrame|onGroupIconClick|onGroupIconOverEnter|onGroupIconOverLeave|onHCGroupSelectionChanged|onMapSingleClick|onPlayerConnected|onPlayerDisconnected|onPreloadFinished|onPreloadStarted|onShowNewObject|onTeamSwitch|openCuratorInterface|openDLCPage|openDSInterface|openMap|openSteamApp|openYoutubeVideo|opfor|orderGetIn|overcast|overcastForecast|owner|param|params|parseNumber|parseSimpleArray|parseText|parsingNamespace|particlesQuality|pi|pickWeaponPool|pitch|pixelGrid|pixelGridBase|pixelGridNoUIScale|pixelH|pixelW|playableSlotsNumber|playableUnits|playAction|playActionNow|player|playerRespawnTime|playerSide|playersNumber|playGesture|playMission|playMove|playMoveNow|playMusic|playScriptedMission|playSound|playSound3D|position|positionCameraToWorld|posScreenToWorld|posWorldToScreen|ppEffectAdjust|ppEffectCommit|ppEffectCommitted|ppEffectCreate|ppEffectDestroy|ppEffectEnable|ppEffectEnabled|ppEffectForceInNVG|precision|preloadCamera|preloadObject|preloadSound|preloadTitleObj|preloadTitleRsc|primaryWeapon|primaryWeaponItems|primaryWeaponMagazine|priority|processDiaryLink|processInitCommands|productVersion|profileName|profileNamespace|profileNameSteam|progressLoadingScreen|progressPosition|progressSetPosition|publicVariable|publicVariableClient|publicVariableServer|pushBack|pushBackUnique|putWeaponPool|queryItemsPool|queryMagazinePool|queryWeaponPool|rad|radioChannelAdd|radioChannelCreate|radioChannelRemove|radioChannelSetCallSign|radioChannelSetLabel|radioVolume|rain|rainbow|random|rank|rankId|rating|rectangular|registeredTasks|registerTask|reload|reloadEnabled|remoteControl|remoteExec|remoteExecCall|remoteExecutedOwner|remove3DENConnection|remove3DENEventHandler|remove3DENLayer|removeAction|removeAll3DENEventHandlers|removeAllActions|removeAllAssignedItems|removeAllContainers|removeAllCuratorAddons|removeAllCuratorCameraAreas|removeAllCuratorEditingAreas|removeAllEventHandlers|removeAllHandgunItems|removeAllItems|removeAllItemsWithMagazines|removeAllMissionEventHandlers|removeAllMPEventHandlers|removeAllMusicEventHandlers|removeAllOwnedMines|removeAllPrimaryWeaponItems|removeAllWeapons|removeBackpack|removeBackpackGlobal|removeCuratorAddons|removeCuratorCameraArea|removeCuratorEditableObjects|removeCuratorEditingArea|removeDrawIcon|removeDrawLinks|removeEventHandler|removeFromRemainsCollector|removeGoggles|removeGroupIcon|removeHandgunItem|removeHeadgear|removeItem|removeItemFromBackpack|removeItemFromUniform|removeItemFromVest|removeItems|removeMagazine|removeMagazineGlobal|removeMagazines|removeMagazinesTurret|removeMagazineTurret|removeMenuItem|removeMissionEventHandler|removeMPEventHandler|removeMusicEventHandler|removeOwnedMine|removePrimaryWeaponItem|removeSecondaryWeaponItem|removeSimpleTask|removeSwitchableUnit|removeTeamMember|removeUniform|removeVest|removeWeapon|removeWeaponAttachmentCargo|removeWeaponCargo|removeWeaponGlobal|removeWeaponTurret|reportRemoteTarget|requiredVersion|resetCamShake|resetSubgroupDirection|resistance|resize|resources|respawnVehicle|restartEditorCamera|reveal|revealMine|reverse|reversedMouseY|roadAt|roadsConnectedTo|roleDescription|ropeAttachedObjects|ropeAttachedTo|ropeAttachEnabled|ropeAttachTo|ropeCreate|ropeCut|ropeDestroy|ropeDetach|ropeEndPosition|ropeLength|ropes|ropeUnwind|ropeUnwound|rotorsForcesRTD|rotorsRpmRTD|round|runInitScript|safeZoneH|safeZoneW|safeZoneWAbs|safeZoneX|safeZoneXAbs|safeZoneY|save3DENInventory|saveGame|saveIdentity|saveJoysticks|saveOverlay|saveProfileNamespace|saveStatus|saveVar|savingEnabled|say|say2D|say3D|score|scoreSide|screenshot|screenToWorld|scriptDone|scriptName|scriptNull|scudState|secondaryWeapon|secondaryWeaponItems|secondaryWeaponMagazine|select|selectBestPlaces|selectDiarySubject|selectedEditorObjects|selectEditorObject|selectionNames|selectionPosition|selectLeader|selectMax|selectMin|selectNoPlayer|selectPlayer|selectRandom|selectRandomWeighted|selectWeapon|selectWeaponTurret|sendAUMessage|sendSimpleCommand|sendTask|sendTaskResult|sendUDPMessage|serverCommand|serverCommandAvailable|serverCommandExecutable|serverName|serverTime|set|set3DENAttribute|set3DENAttributes|set3DENGrid|set3DENIconsVisible|set3DENLayer|set3DENLinesVisible|set3DENLogicType|set3DENMissionAttribute|set3DENMissionAttributes|set3DENModelsVisible|set3DENObjectType|set3DENSelected|setAccTime|setActualCollectiveRTD|setAirplaneThrottle|setAirportSide|setAmmo|setAmmoCargo|setAmmoOnPylon|setAnimSpeedCoef|setAperture|setApertureNew|setArmoryPoints|setAttributes|setAutonomous|setBehaviour|setBleedingRemaining|setBrakesRTD|setCameraInterest|setCamShakeDefParams|setCamShakeParams|setCamUseTI|setCaptive|setCenterOfMass|setCollisionLight|setCombatMode|setCompassOscillation|setConvoySeparation|setCuratorCameraAreaCeiling|setCuratorCoef|setCuratorEditingAreaType|setCuratorWaypointCost|setCurrentChannel|setCurrentTask|setCurrentWaypoint|setCustomAimCoef|setCustomWeightRTD|setDamage|setDammage|setDate|setDebriefingText|setDefaultCamera|setDestination|setDetailMapBlendPars|setDir|setDirection|setDrawIcon|setDriveOnPath|setDropInterval|setDynamicSimulationDistance|setDynamicSimulationDistanceCoef|setEditorMode|setEditorObjectScope|setEffectCondition|setEngineRpmRTD|setFace|setFaceAnimation|setFatigue|setFeatureType|setFlagAnimationPhase|setFlagOwner|setFlagSide|setFlagTexture|setFog|setForceGeneratorRTD|setFormation|setFormationTask|setFormDir|setFriend|setFromEditor|setFSMVariable|setFuel|setFuelCargo|setGroupIcon|setGroupIconParams|setGroupIconsSelectable|setGroupIconsVisible|setGroupId|setGroupIdGlobal|setGroupOwner|setGusts|setHideBehind|setHit|setHitIndex|setHitPointDamage|setHorizonParallaxCoef|setHUDMovementLevels|setIdentity|setImportance|setInfoPanel|setLeader|setLightAmbient|setLightAttenuation|setLightBrightness|setLightColor|setLightDayLight|setLightFlareMaxDistance|setLightFlareSize|setLightIntensity|setLightnings|setLightUseFlare|setLocalWindParams|setMagazineTurretAmmo|setMarkerAlpha|setMarkerAlphaLocal|setMarkerBrush|setMarkerBrushLocal|setMarkerColor|setMarkerColorLocal|setMarkerDir|setMarkerDirLocal|setMarkerPos|setMarkerPosLocal|setMarkerShape|setMarkerShapeLocal|setMarkerSize|setMarkerSizeLocal|setMarkerText|setMarkerTextLocal|setMarkerType|setMarkerTypeLocal|setMass|setMimic|setMousePosition|setMusicEffect|setMusicEventHandler|setName|setNameSound|setObjectArguments|setObjectMaterial|setObjectMaterialGlobal|setObjectProxy|setObjectTexture|setObjectTextureGlobal|setObjectViewDistance|setOvercast|setOwner|setOxygenRemaining|setParticleCircle|setParticleClass|setParticleFire|setParticleParams|setParticleRandom|setPilotCameraDirection|setPilotCameraRotation|setPilotCameraTarget|setPilotLight|setPiPEffect|setPitch|setPlateNumber|setPlayable|setPlayerRespawnTime|setPos|setPosASL|setPosASL2|setPosASLW|setPosATL|setPosition|setPosWorld|setPylonLoadOut|setPylonsPriority|setRadioMsg|setRain|setRainbow|setRandomLip|setRank|setRectangular|setRepairCargo|setRotorBrakeRTD|setShadowDistance|setShotParents|setSide|setSimpleTaskAlwaysVisible|setSimpleTaskCustomData|setSimpleTaskDescription|setSimpleTaskDestination|setSimpleTaskTarget|setSimpleTaskType|setSimulWeatherLayers|setSize|setSkill|setSlingLoad|setSoundEffect|setSpeaker|setSpeech|setSpeedMode|setStamina|setStaminaScheme|setStatValue|setSuppression|setSystemOfUnits|setTargetAge|setTaskMarkerOffset|setTaskResult|setTaskState|setTerrainGrid|setText|setTimeMultiplier|setTitleEffect|setToneMapping|setToneMappingParams|setTrafficDensity|setTrafficDistance|setTrafficGap|setTrafficSpeed|setTriggerActivation|setTriggerArea|setTriggerStatements|setTriggerText|setTriggerTimeout|setTriggerType|setType|setUnconscious|setUnitAbility|setUnitLoadout|setUnitPos|setUnitPosWeak|setUnitRank|setUnitRecoilCoefficient|setUnitTrait|setUnloadInCombat|setUserActionText|setUserMFDText|setUserMFDValue|setVariable|setVectorDir|setVectorDirAndUp|setVectorUp|setVehicleAmmo|setVehicleAmmoDef|setVehicleArmor|setVehicleCargo|setVehicleId|setVehicleInit|setVehicleLock|setVehiclePosition|setVehicleRadar|setVehicleReceiveRemoteTargets|setVehicleReportOwnPosition|setVehicleReportRemoteTargets|setVehicleTIPars|setVehicleVarName|setVelocity|setVelocityModelSpace|setVelocityTransformation|setViewDistance|setVisibleIfTreeCollapsed|setWantedRpmRTD|setWaves|setWaypointBehaviour|setWaypointCombatMode|setWaypointCompletionRadius|setWaypointDescription|setWaypointForceBehaviour|setWaypointFormation|setWaypointHousePosition|setWaypointLoiterRadius|setWaypointLoiterType|setWaypointName|setWaypointPosition|setWaypointScript|setWaypointSpeed|setWaypointStatements|setWaypointTimeout|setWaypointType|setWaypointVisible|setWeaponReloadingTime|setWind|setWindDir|setWindForce|setWindStr|setWingForceScaleRTD|setWPPos|show3DIcons|showChat|showCinemaBorder|showCommandingMenu|showCompass|showCuratorCompass|showGPS|showHUD|showLegend|showMap|shownArtilleryComputer|shownChat|shownCompass|shownCuratorCompass|showNewEditorObject|shownGPS|shownHUD|shownMap|shownPad|shownRadio|shownScoretable|shownUAVFeed|shownWarrant|shownWatch|showPad|showRadio|showScoretable|showSubtitles|showUAVFeed|showWarrant|showWatch|showWaypoint|showWaypoints|side|sideAmbientLife|sideChat|sideEmpty|sideEnemy|sideFriendly|sideLogic|sideRadio|sideUnknown|simpleTasks|simulationEnabled|simulCloudDensity|simulCloudOcclusion|simulInClouds|simulWeatherSync|sin|size|sizeOf|skill|skillFinal|skipTime|sleep|sliderPosition|sliderRange|sliderSetPosition|sliderSetRange|sliderSetSpeed|sliderSpeed|slingLoadAssistantShown|soldierMagazines|someAmmo|sort|soundVolume|speaker|speed|speedMode|splitString|sqrt|squadParams|stance|startLoadingScreen|stop|stopEngineRTD|stopped|str|sunOrMoon|supportInfo|suppressFor|surfaceIsWater|surfaceNormal|surfaceType|swimInDepth|switchableUnits|switchAction|switchCamera|switchGesture|switchLight|switchMove|synchronizedObjects|synchronizedTriggers|synchronizedWaypoints|synchronizeObjectsAdd|synchronizeObjectsRemove|synchronizeTrigger|synchronizeWaypoint|systemChat|systemOfUnits|tan|targetKnowledge|targets|targetsAggregate|targetsQuery|taskAlwaysVisible|taskChildren|taskCompleted|taskCustomData|taskDescription|taskDestination|taskHint|taskMarkerOffset|taskNull|taskParent|taskResult|taskState|taskType|teamMember|teamMemberNull|teamName|teams|teamSwitch|teamSwitchEnabled|teamType|terminate|terrainIntersect|terrainIntersectASL|terrainIntersectAtASL|text|textLog|textLogFormat|tg|time|timeMultiplier|titleCut|titleFadeOut|titleObj|titleRsc|titleText|toArray|toFixed|toLower|toString|toUpper|triggerActivated|triggerActivation|triggerArea|triggerAttachedVehicle|triggerAttachObject|triggerAttachVehicle|triggerDynamicSimulation|triggerStatements|triggerText|triggerTimeout|triggerTimeoutCurrent|triggerType|turretLocal|turretOwner|turretUnit|tvAdd|tvClear|tvCollapse|tvCollapseAll|tvCount|tvCurSel|tvData|tvDelete|tvExpand|tvExpandAll|tvPicture|tvPictureRight|tvSetColor|tvSetCurSel|tvSetData|tvSetPicture|tvSetPictureColor|tvSetPictureColorDisabled|tvSetPictureColorSelected|tvSetPictureRight|tvSetPictureRightColor|tvSetPictureRightColorDisabled|tvSetPictureRightColorSelected|tvSetSelectColor|tvSetText|tvSetTooltip|tvSetValue|tvSort|tvSortByValue|tvText|tvTooltip|tvValue|type|typeName|typeOf|UAVControl|uiNamespace|uiSleep|unassignCurator|unassignItem|unassignTeam|unassignVehicle|underwater|uniform|uniformContainer|uniformItems|uniformMagazines|unitAddons|unitAimPosition|unitAimPositionVisual|unitBackpack|unitIsUAV|unitPos|unitReady|unitRecoilCoefficient|units|unitsBelowHeight|unlinkItem|unlockAchievement|unregisterTask|updateDrawIcon|updateMenuItem|updateObjectTree|useAIOperMapObstructionTest|useAISteeringComponent|useAudioTimeForMoves|userInputDisabled|vectorAdd|vectorCos|vectorCrossProduct|vectorDiff|vectorDir|vectorDirVisual|vectorDistance|vectorDistanceSqr|vectorDotProduct|vectorFromTo|vectorMagnitude|vectorMagnitudeSqr|vectorModelToWorld|vectorModelToWorldVisual|vectorMultiply|vectorNormalized|vectorUp|vectorUpVisual|vectorWorldToModel|vectorWorldToModelVisual|vehicle|vehicleCargoEnabled|vehicleChat|vehicleRadio|vehicleReceiveRemoteTargets|vehicleReportOwnPosition|vehicleReportRemoteTargets|vehicles|vehicleVarName|velocity|velocityModelSpace|verifySignature|vest|vestContainer|vestItems|vestMagazines|viewDistance|visibleCompass|visibleGPS|visibleMap|visiblePosition|visiblePositionASL|visibleScoretable|visibleWatch|waitUntil|waves|waypointAttachedObject|waypointAttachedVehicle|waypointAttachObject|waypointAttachVehicle|waypointBehaviour|waypointCombatMode|waypointCompletionRadius|waypointDescription|waypointForceBehaviour|waypointFormation|waypointHousePosition|waypointLoiterRadius|waypointLoiterType|waypointName|waypointPosition|waypoints|waypointScript|waypointsEnabledUAV|waypointShow|waypointSpeed|waypointStatements|waypointTimeout|waypointTimeoutCurrent|waypointType|waypointVisible|weaponAccessories|weaponAccessoriesCargo|weaponCargo|weaponDirection|weaponInertia|weaponLowered|weapons|weaponsItems|weaponsItemsCargo|weaponState|weaponsTurret|weightRTD|west|WFSideText|wind|windDir|windRTD|windStr|wingsForcesRTD|worldName|worldSize|worldToModel|worldToModelVisual|worldToScreen)\b/i,number:/(?:\$|\b0x)[\da-f]+\b|(?:\B\.\d+|\b\d+(?:\.\d+)?)(?:e[+-]?\d+)?\b/i,operator:/##|>>|&&|\|\||[!=<>]=?|[-+*/%#^]|\b(?:and|mod|not|or)\b/i,"magic-variable":{pattern:/\b(?:this|thisList|thisTrigger|_exception|_fnc_scriptName|_fnc_scriptNameParent|_forEachIndex|_this|_thisEventHandler|_thisFSM|_thisScript|_x)\b/i,alias:"keyword"},constant:/\bDIK(?:_[a-z\d]+)+\b/i}),t.languages.insertBefore("sqf","string",{macro:{pattern:/(^[ \t]*)#[a-z](?:[^\r\n\\]|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{directive:{pattern:/#[a-z]+\b/i,alias:"keyword"},comment:t.languages.sqf.comment}}}),delete t.languages.sqf["class-name"]}return ih}var oh,tA;function Oie(){if(tA)return oh;tA=1,oh=e,e.displayName="squirrel",e.aliases=[];function e(t){t.languages.squirrel=t.languages.extend("clike",{comment:[t.languages.clike.comment[0],{pattern:/(^|[^\\:])(?:\/\/|#).*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^\\"'@])(?:@"(?:[^"]|"")*"(?!")|"(?:[^\\\r\n"]|\\.)*")/,lookbehind:!0,greedy:!0},"class-name":{pattern:/(\b(?:class|enum|extends|instanceof)\s+)\w+(?:\.\w+)*/,lookbehind:!0,inside:{punctuation:/\./}},keyword:/\b(?:__FILE__|__LINE__|base|break|case|catch|class|clone|const|constructor|continue|default|delete|else|enum|extends|for|foreach|function|if|in|instanceof|local|null|resume|return|static|switch|this|throw|try|typeof|while|yield)\b/,number:/\b(?:0x[0-9a-fA-F]+|\d+(?:\.(?:\d+|[eE][+-]?\d+))?)\b/,operator:/\+\+|--|<=>|<[-<]|>>>?|&&?|\|\|?|[-+*/%!=<>]=?|[~^]|::?/,punctuation:/[(){}\[\],;.]/}),t.languages.insertBefore("squirrel","string",{char:{pattern:/(^|[^\\"'])'(?:[^\\']|\\(?:[xuU][0-9a-fA-F]{0,8}|[\s\S]))'/,lookbehind:!0,greedy:!0}}),t.languages.insertBefore("squirrel","operator",{"attribute-punctuation":{pattern:/<\/|\/>/,alias:"important"},lambda:{pattern:/@(?=\()/,alias:"operator"}})}return oh}var sh,rA;function kie(){if(rA)return sh;rA=1,sh=e,e.displayName="stan",e.aliases=[];function e(t){(function(r){var n=/\b(?:algebra_solver|algebra_solver_newton|integrate_1d|integrate_ode|integrate_ode_bdf|integrate_ode_rk45|map_rect|ode_(?:adams|bdf|ckrk|rk45)(?:_tol)?|ode_adjoint_tol_ctl|reduce_sum|reduce_sum_static)\b/;r.languages.stan={comment:/\/\/.*|\/\*[\s\S]*?\*\/|#(?!include).*/,string:{pattern:/"[\x20\x21\x23-\x5B\x5D-\x7E]*"/,greedy:!0},directive:{pattern:/^([ \t]*)#include\b.*/m,lookbehind:!0,alias:"property"},"function-arg":{pattern:RegExp("("+n.source+/\s*\(\s*/.source+")"+/[a-zA-Z]\w*/.source),lookbehind:!0,alias:"function"},constraint:{pattern:/(\b(?:int|matrix|real|row_vector|vector)\s*)<[^<>]*>/,lookbehind:!0,inside:{expression:{pattern:/(=\s*)\S(?:\S|\s+(?!\s))*?(?=\s*(?:>$|,\s*\w+\s*=))/,lookbehind:!0,inside:null},property:/\b[a-z]\w*(?=\s*=)/i,operator:/=/,punctuation:/^<|>$|,/}},keyword:[{pattern:/\bdata(?=\s*\{)|\b(?:functions|generated|model|parameters|quantities|transformed)\b/,alias:"program-block"},/\b(?:array|break|cholesky_factor_corr|cholesky_factor_cov|complex|continue|corr_matrix|cov_matrix|data|else|for|if|in|increment_log_prob|int|matrix|ordered|positive_ordered|print|real|reject|return|row_vector|simplex|target|unit_vector|vector|void|while)\b/,n],function:/\b[a-z]\w*(?=\s*\()/i,number:/(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:E[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,boolean:/\b(?:false|true)\b/,operator:/<-|\.[*/]=?|\|\|?|&&|[!=<>+\-*/]=?|['^%~?:]/,punctuation:/[()\[\]{},;]/},r.languages.stan.constraint.inside.expression.inside=r.languages.stan})(t)}return sh}var lh,nA;function Rie(){if(nA)return lh;nA=1,lh=e,e.displayName="stylus",e.aliases=[];function e(t){(function(r){var n={pattern:/(\b\d+)(?:%|[a-z]+)/,lookbehind:!0},a={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0},i={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},url:{pattern:/\burl\((["']?).*?\1\)/i,greedy:!0},string:{pattern:/("|')(?:(?!\1)[^\\\r\n]|\\(?:\r\n|[\s\S]))*\1/,greedy:!0},interpolation:null,func:null,important:/\B!(?:important|optional)\b/i,keyword:{pattern:/(^|\s+)(?:(?:else|for|if|return|unless)(?=\s|$)|@[\w-]+)/,lookbehind:!0},hexcode:/#[\da-f]{3,6}/i,color:[/\b(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)\b/i,{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:n,number:a,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:n,boolean:/\b(?:false|true)\b/,operator:[/~|[+!\/%<>?=]=?|[-:]=|\*[*=]?|\.{2,3}|&&|\|\||\B-\B|\b(?:and|in|is(?: a| defined| not|nt)?|not|or)\b/],number:a,punctuation:/[{}()\[\];:,]/};i.interpolation={pattern:/\{[^\r\n}:]+\}/,alias:"variable",inside:{delimiter:{pattern:/^\{|\}$/,alias:"punctuation"},rest:i}},i.func={pattern:/[\w-]+\([^)]*\).*/,inside:{function:/^[^(]+/,rest:i}},r.languages.stylus={"atrule-declaration":{pattern:/(^[ \t]*)@.+/m,lookbehind:!0,inside:{atrule:/^@[\w-]+/,rest:i}},"variable-declaration":{pattern:/(^[ \t]*)[\w$-]+\s*.?=[ \t]*(?:\{[^{}]*\}|\S.*|$)/m,lookbehind:!0,inside:{variable:/^\S+/,rest:i}},statement:{pattern:/(^[ \t]*)(?:else|for|if|return|unless)[ \t].+/m,lookbehind:!0,inside:{keyword:/^\S+/,rest:i}},"property-declaration":{pattern:/((?:^|\{)([ \t]*))(?:[\w-]|\{[^}\r\n]+\})+(?:\s*:\s*|[ \t]+)(?!\s)[^{\r\n]*(?:;|[^{\r\n,]$(?!(?:\r?\n|\r)(?:\{|\2[ \t])))/m,lookbehind:!0,inside:{property:{pattern:/^[^\s:]+/,inside:{interpolation:i.interpolation}},rest:i}},selector:{pattern:/(^[ \t]*)(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)(?:(?:\r?\n|\r)(?:\1(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)))*(?:,$|\{|(?=(?:\r?\n|\r)(?:\{|\1[ \t])))/m,lookbehind:!0,inside:{interpolation:i.interpolation,comment:i.comment,punctuation:/[{},]/}},func:i.func,string:i.string,comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},interpolation:i.interpolation,punctuation:/[{}()\[\];:.]/}})(t)}return lh}var uh,aA;function Iie(){if(aA)return uh;aA=1,uh=e,e.displayName="swift",e.aliases=[];function e(t){t.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+(/(?:elseif|if)\b/.source+"(?:[ ]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+")+"|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},t.languages.swift["string-literal"].forEach(function(r){r.inside.interpolation.inside=t.languages.swift})}return uh}var ch,iA;function Cie(){if(iA)return ch;iA=1,ch=e,e.displayName="systemd",e.aliases=[];function e(t){(function(r){var n={pattern:/^[;#].*/m,greedy:!0},a=/"(?:[^\r\n"\\]|\\(?:[^\r]|\r\n?))*"(?!\S)/.source;r.languages.systemd={comment:n,section:{pattern:/^\[[^\n\r\[\]]*\](?=[ \t]*$)/m,greedy:!0,inside:{punctuation:/^\[|\]$/,"section-name":{pattern:/[\s\S]+/,alias:"selector"}}},key:{pattern:/^[^\s=]+(?=[ \t]*=)/m,greedy:!0,alias:"attr-name"},value:{pattern:RegExp(/(=[ \t]*(?!\s))/.source+"(?:"+a+`|(?=[^"\r -]))(?:`+(/[^\s\\]/.source+'|[ ]+(?:(?![ "])|'+a+")|"+/\\[\r\n]+(?:[#;].*[\r\n]+)*(?![#;])/.source)+")*"),lookbehind:!0,greedy:!0,alias:"attr-value",inside:{comment:n,quoted:{pattern:RegExp(/(^|\s)/.source+a),lookbehind:!0,greedy:!0},punctuation:/\\$/m,boolean:{pattern:/^(?:false|no|off|on|true|yes)$/,greedy:!0}}},punctuation:/=/}})(t)}return ch}var dh,oA;function Xy(){if(oA)return dh;oA=1,dh=e,e.displayName="t4Templating",e.aliases=[];function e(t){(function(r){function n(i,o,s){return{pattern:RegExp("<#"+i+"[\\s\\S]*?#>"),alias:"block",inside:{delimiter:{pattern:RegExp("^<#"+i+"|#>$"),alias:"important"},content:{pattern:/[\s\S]+/,inside:o,alias:s}}}}function a(i){var o=r.languages[i],s="language-"+i;return{block:{pattern:/<#[\s\S]+?#>/,inside:{directive:n("@",{"attr-value":{pattern:/=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+)/,inside:{punctuation:/^=|^["']|["']$/}},keyword:/\b\w+(?=\s)/,"attr-name":/\b\w+/}),expression:n("=",o,s),"class-feature":n("\\+",o,s),standard:n("",o,s)}}}}r.languages["t4-templating"]=Object.defineProperty({},"createT4",{value:a})})(t)}return dh}var ph,sA;function Nie(){if(sA)return ph;sA=1;var e=Xy(),t=Mu();ph=r,r.displayName="t4Cs",r.aliases=[];function r(n){n.register(e),n.register(t),n.languages.t4=n.languages["t4-cs"]=n.languages["t4-templating"].createT4("csharp")}return ph}var fh,lA;function LI(){if(lA)return fh;lA=1;var e=RI();fh=t,t.displayName="vbnet",t.aliases=[];function t(r){r.register(e),r.languages.vbnet=r.languages.extend("basic",{comment:[{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},{pattern:/(^|[^\\:])'.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^"])"(?:""|[^"])*"(?!")/,lookbehind:!0,greedy:!0},keyword:/(?:\b(?:ADDHANDLER|ADDRESSOF|ALIAS|AND|ANDALSO|AS|BEEP|BLOAD|BOOLEAN|BSAVE|BYREF|BYTE|BYVAL|CALL(?: ABSOLUTE)?|CASE|CATCH|CBOOL|CBYTE|CCHAR|CDATE|CDBL|CDEC|CHAIN|CHAR|CHDIR|CINT|CLASS|CLEAR|CLNG|CLOSE|CLS|COBJ|COM|COMMON|CONST|CONTINUE|CSBYTE|CSHORT|CSNG|CSTR|CTYPE|CUINT|CULNG|CUSHORT|DATA|DATE|DECIMAL|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DEFAULT|DELEGATE|DIM|DIRECTCAST|DO|DOUBLE|ELSE|ELSEIF|END|ENUM|ENVIRON|ERASE|ERROR|EVENT|EXIT|FALSE|FIELD|FILES|FINALLY|FOR(?: EACH)?|FRIEND|FUNCTION|GET|GETTYPE|GETXMLNAMESPACE|GLOBAL|GOSUB|GOTO|HANDLES|IF|IMPLEMENTS|IMPORTS|IN|INHERITS|INPUT|INTEGER|INTERFACE|IOCTL|IS|ISNOT|KEY|KILL|LET|LIB|LIKE|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|ME|MKDIR|MOD|MODULE|MUSTINHERIT|MUSTOVERRIDE|MYBASE|MYCLASS|NAME|NAMESPACE|NARROWING|NEW|NEXT|NOT|NOTHING|NOTINHERITABLE|NOTOVERRIDABLE|OBJECT|OF|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPERATOR|OPTION(?: BASE)?|OPTIONAL|OR|ORELSE|OUT|OVERLOADS|OVERRIDABLE|OVERRIDES|PARAMARRAY|PARTIAL|POKE|PRIVATE|PROPERTY|PROTECTED|PUBLIC|PUT|RAISEEVENT|READ|READONLY|REDIM|REM|REMOVEHANDLER|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SBYTE|SELECT(?: CASE)?|SET|SHADOWS|SHARED|SHELL|SHORT|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|STRUCTURE|SUB|SWAP|SYNCLOCK|SYSTEM|THEN|THROW|TIMER|TO|TROFF|TRON|TRUE|TRY|TRYCAST|TYPE|TYPEOF|UINTEGER|ULONG|UNLOCK|UNTIL|USHORT|USING|VIEW PRINT|WAIT|WEND|WHEN|WHILE|WIDENING|WITH|WITHEVENTS|WRITE|WRITEONLY|XOR)|\B(?:#CONST|#ELSE|#ELSEIF|#END|#IF))(?:\$|\b)/i,punctuation:/[,;:(){}]/})}return fh}var gh,uA;function Lie(){if(uA)return gh;uA=1;var e=Xy(),t=LI();gh=r,r.displayName="t4Vb",r.aliases=[];function r(n){n.register(e),n.register(t),n.languages["t4-vb"]=n.languages["t4-templating"].createT4("vbnet")}return gh}var hh,cA;function DI(){if(cA)return hh;cA=1,hh=e,e.displayName="yaml",e.aliases=["yml"];function e(t){(function(r){var n=/[*&][^\s[\]{},]+/,a=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,i="(?:"+a.source+"(?:[ ]+"+n.source+")?|"+n.source+"(?:[ ]+"+a.source+")?)",o=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-])(?:[ \t]*(?:(?![#:])|:))*/.source.replace(//g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),s=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function l(c,d){d=(d||"").replace(/m/g,"")+"m";var p=/([:\-,[{]\s*(?:\s<>[ \t]+)?)(?:<>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<>/g,function(){return i}).replace(/<>/g,function(){return c});return RegExp(p,d)}r.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<>/g,function(){return i})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<>[ \t]+)?)<>(?=\s*:\s)/.source.replace(/<>/g,function(){return i}).replace(/<>/g,function(){return"(?:"+o+"|"+s+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:l(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:l(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:l(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:l(s),lookbehind:!0,greedy:!0},number:{pattern:l(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:a,important:n,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},r.languages.yml=r.languages.yaml})(t)}return hh}var mh,dA;function Die(){if(dA)return mh;dA=1;var e=DI();mh=t,t.displayName="tap",t.aliases=[];function t(r){r.register(e),r.languages.tap={fail:/not ok[^#{\n\r]*/,pass:/ok[^#{\n\r]*/,pragma:/pragma [+-][a-z]+/,bailout:/bail out!.*/i,version:/TAP version \d+/i,plan:/\b\d+\.\.\d+(?: +#.*)?/,subtest:{pattern:/# Subtest(?:: .*)?/,greedy:!0},punctuation:/[{}]/,directive:/#.*/,yamlish:{pattern:/(^[ \t]*)---[\s\S]*?[\r\n][ \t]*\.\.\.$/m,lookbehind:!0,inside:r.languages.yaml,alias:"language-yaml"}}}return mh}var bh,pA;function Mie(){if(pA)return bh;pA=1,bh=e,e.displayName="tcl",e.aliases=[];function e(t){t.languages.tcl={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},string:{pattern:/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"/,greedy:!0},variable:[{pattern:/(\$)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/,lookbehind:!0},{pattern:/(\$)\{[^}]+\}/,lookbehind:!0},{pattern:/(^[\t ]*set[ \t]+)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/m,lookbehind:!0}],function:{pattern:/(^[\t ]*proc[ \t]+)\S+/m,lookbehind:!0},builtin:[{pattern:/(^[\t ]*)(?:break|class|continue|error|eval|exit|for|foreach|if|proc|return|switch|while)\b/m,lookbehind:!0},/\b(?:else|elseif)\b/],scope:{pattern:/(^[\t ]*)(?:global|upvar|variable)\b/m,lookbehind:!0,alias:"constant"},keyword:{pattern:/(^[\t ]*|\[)(?:Safe_Base|Tcl|after|append|apply|array|auto_(?:execok|import|load|mkindex|qualify|reset)|automkindex_old|bgerror|binary|catch|cd|chan|clock|close|concat|dde|dict|encoding|eof|exec|expr|fblocked|fconfigure|fcopy|file(?:event|name)?|flush|gets|glob|history|http|incr|info|interp|join|lappend|lassign|lindex|linsert|list|llength|load|lrange|lrepeat|lreplace|lreverse|lsearch|lset|lsort|math(?:func|op)|memory|msgcat|namespace|open|package|parray|pid|pkg_mkIndex|platform|puts|pwd|re_syntax|read|refchan|regexp|registry|regsub|rename|scan|seek|set|socket|source|split|string|subst|tcl(?:_endOfWord|_findLibrary|startOf(?:Next|Previous)Word|test|vars|wordBreak(?:After|Before))|tell|time|tm|trace|unknown|unload|unset|update|uplevel|vwait)\b/m,lookbehind:!0},operator:/!=?|\*\*?|==|&&?|\|\|?|<[=<]?|>[=>]?|[-+~\/%?^]|\b(?:eq|in|ne|ni)\b/,punctuation:/[{}()\[\]]/}}return bh}var yh,fA;function Pie(){if(fA)return yh;fA=1,yh=e,e.displayName="textile",e.aliases=[];function e(t){(function(r){var n=/\([^|()\n]+\)|\[[^\]\n]+\]|\{[^}\n]+\}/.source,a=/\)|\((?![^|()\n]+\))/.source;function i(g,m){return RegExp(g.replace(//g,function(){return"(?:"+n+")"}).replace(//g,function(){return"(?:"+a+")"}),m||"")}var o={css:{pattern:/\{[^{}]+\}/,inside:{rest:r.languages.css}},"class-id":{pattern:/(\()[^()]+(?=\))/,lookbehind:!0,alias:"attr-value"},lang:{pattern:/(\[)[^\[\]]+(?=\])/,lookbehind:!0,alias:"attr-value"},punctuation:/[\\\/]\d+|\S/},s=r.languages.textile=r.languages.extend("markup",{phrase:{pattern:/(^|\r|\n)\S[\s\S]*?(?=$|\r?\n\r?\n|\r\r)/,lookbehind:!0,inside:{"block-tag":{pattern:i(/^[a-z]\w*(?:||[<>=])*\./.source),inside:{modifier:{pattern:i(/(^[a-z]\w*)(?:||[<>=])+(?=\.)/.source),lookbehind:!0,inside:o},tag:/^[a-z]\w*/,punctuation:/\.$/}},list:{pattern:i(/^[*#]+*\s+\S.*/.source,"m"),inside:{modifier:{pattern:i(/(^[*#]+)+/.source),lookbehind:!0,inside:o},punctuation:/^[*#]+/}},table:{pattern:i(/^(?:(?:||[<>=^~])+\.\s*)?(?:\|(?:(?:||[<>=^~_]|[\\/]\d+)+\.|(?!(?:||[<>=^~_]|[\\/]\d+)+\.))[^|]*)+\|/.source,"m"),inside:{modifier:{pattern:i(/(^|\|(?:\r?\n|\r)?)(?:||[<>=^~_]|[\\/]\d+)+(?=\.)/.source),lookbehind:!0,inside:o},punctuation:/\||^\./}},inline:{pattern:i(/(^|[^a-zA-Z\d])(\*\*|__|\?\?|[*_%@+\-^~])*.+?\2(?![a-zA-Z\d])/.source),lookbehind:!0,inside:{bold:{pattern:i(/(^(\*\*?)*).+?(?=\2)/.source),lookbehind:!0},italic:{pattern:i(/(^(__?)*).+?(?=\2)/.source),lookbehind:!0},cite:{pattern:i(/(^\?\?*).+?(?=\?\?)/.source),lookbehind:!0,alias:"string"},code:{pattern:i(/(^@*).+?(?=@)/.source),lookbehind:!0,alias:"keyword"},inserted:{pattern:i(/(^\+*).+?(?=\+)/.source),lookbehind:!0},deleted:{pattern:i(/(^-*).+?(?=-)/.source),lookbehind:!0},span:{pattern:i(/(^%*).+?(?=%)/.source),lookbehind:!0},modifier:{pattern:i(/(^\*\*|__|\?\?|[*_%@+\-^~])+/.source),lookbehind:!0,inside:o},punctuation:/[*_%?@+\-^~]+/}},"link-ref":{pattern:/^\[[^\]]+\]\S+$/m,inside:{string:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0},url:{pattern:/(^\])\S+$/,lookbehind:!0},punctuation:/[\[\]]/}},link:{pattern:i(/"*[^"]+":.+?(?=[^\w/]?(?:\s|$))/.source),inside:{text:{pattern:i(/(^"*)[^"]+(?=")/.source),lookbehind:!0},modifier:{pattern:i(/(^")+/.source),lookbehind:!0,inside:o},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[":]/}},image:{pattern:i(/!(?:||[<>=])*(?![<>=])[^!\s()]+(?:\([^)]+\))?!(?::.+?(?=[^\w/]?(?:\s|$)))?/.source),inside:{source:{pattern:i(/(^!(?:||[<>=])*)(?![<>=])[^!\s()]+(?:\([^)]+\))?(?=!)/.source),lookbehind:!0,alias:"url"},modifier:{pattern:i(/(^!)(?:||[<>=])+/.source),lookbehind:!0,inside:o},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[!:]/}},footnote:{pattern:/\b\[\d+\]/,alias:"comment",inside:{punctuation:/\[|\]/}},acronym:{pattern:/\b[A-Z\d]+\([^)]+\)/,inside:{comment:{pattern:/(\()[^()]+(?=\))/,lookbehind:!0},punctuation:/[()]/}},mark:{pattern:/\b\((?:C|R|TM)\)/,alias:"comment",inside:{punctuation:/[()]/}}}}}),l=s.phrase.inside,c={inline:l.inline,link:l.link,image:l.image,footnote:l.footnote,acronym:l.acronym,mark:l.mark};s.tag.pattern=/<\/?(?!\d)[a-z0-9]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/i;var d=l.inline.inside;d.bold.inside=c,d.italic.inside=c,d.inserted.inside=c,d.deleted.inside=c,d.span.inside=c;var p=l.table.inside;p.inline=c.inline,p.link=c.link,p.image=c.image,p.footnote=c.footnote,p.acronym=c.acronym,p.mark=c.mark})(t)}return yh}var vh,gA;function $ie(){if(gA)return vh;gA=1,vh=e,e.displayName="toml",e.aliases=[];function e(t){(function(r){var n=/(?:[\w-]+|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*")/.source;function a(i){return i.replace(/__/g,function(){return n})}r.languages.toml={comment:{pattern:/#.*/,greedy:!0},table:{pattern:RegExp(a(/(^[\t ]*\[\s*(?:\[\s*)?)__(?:\s*\.\s*__)*(?=\s*\])/.source),"m"),lookbehind:!0,greedy:!0,alias:"class-name"},key:{pattern:RegExp(a(/(^[\t ]*|[{,]\s*)__(?:\s*\.\s*__)*(?=\s*=)/.source),"m"),lookbehind:!0,greedy:!0,alias:"property"},string:{pattern:/"""(?:\\[\s\S]|[^\\])*?"""|'''[\s\S]*?'''|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},date:[{pattern:/\b\d{4}-\d{2}-\d{2}(?:[T\s]\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})?)?\b/i,alias:"number"},{pattern:/\b\d{2}:\d{2}:\d{2}(?:\.\d+)?\b/,alias:"number"}],number:/(?:\b0(?:x[\da-zA-Z]+(?:_[\da-zA-Z]+)*|o[0-7]+(?:_[0-7]+)*|b[10]+(?:_[10]+)*))\b|[-+]?\b\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?\b|[-+]?\b(?:inf|nan)\b/,boolean:/\b(?:false|true)\b/,punctuation:/[.,=[\]{}]/}})(t)}return vh}var Sh,hA;function jie(){if(hA)return Sh;hA=1,Sh=e,e.displayName="tremor",e.aliases=[];function e(t){(function(r){r.languages.tremor={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},"interpolated-string":null,extractor:{pattern:/\b[a-z_]\w*\|(?:[^\r\n\\|]|\\(?:\r\n|[\s\S]))*\|/i,greedy:!0,inside:{regex:{pattern:/(^re)\|[\s\S]+/,lookbehind:!0},function:/^\w+/,value:/\|[\s\S]+/}},identifier:{pattern:/`[^`]*`/,greedy:!0},function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())\b/,keyword:/\b(?:args|as|by|case|config|connect|connector|const|copy|create|default|define|deploy|drop|each|emit|end|erase|event|flow|fn|for|from|group|having|insert|into|intrinsic|let|links|match|merge|mod|move|of|operator|patch|pipeline|recur|script|select|set|sliding|state|stream|to|tumbling|update|use|when|where|window|with)\b/,boolean:/\b(?:false|null|true)\b/i,number:/\b(?:0b[01_]*|0x[0-9a-fA-F_]*|\d[\d_]*(?:\.\d[\d_]*)?(?:[Ee][+-]?[\d_]+)?)\b/,"pattern-punctuation":{pattern:/%(?=[({[])/,alias:"punctuation"},operator:/[-+*\/%~!^]=?|=[=>]?|&[&=]?|\|[|=]?|<>?>?=?|(?:absent|and|not|or|present|xor)\b/,punctuation:/::|[;\[\]()\{\},.:]/};var n=/#\{(?:[^"{}]|\{[^{}]*\}|"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*")*\}/.source;r.languages.tremor["interpolated-string"]={pattern:RegExp(/(^|[^\\])/.source+'(?:"""(?:'+/[^"\\#]|\\[\s\S]|"(?!"")|#(?!\{)/.source+"|"+n+')*"""|"(?:'+/[^"\\\r\n#]|\\(?:\r\n|[\s\S])|#(?!\{)/.source+"|"+n+')*")'),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:RegExp(n),inside:{punctuation:/^#\{|\}$/,expression:{pattern:/[\s\S]+/,inside:r.languages.tremor}}},string:/[\s\S]+/}},r.languages.troy=r.languages.tremor,r.languages.trickle=r.languages.tremor})(t)}return Sh}var Eh,mA;function Fie(){if(mA)return Eh;mA=1;var e=CI(),t=Vy();Eh=r,r.displayName="tsx",r.aliases=[];function r(n){n.register(e),n.register(t),function(a){var i=a.util.clone(a.languages.typescript);a.languages.tsx=a.languages.extend("jsx",i),delete a.languages.tsx.parameter,delete a.languages.tsx["literal-property"];var o=a.languages.tsx.tag;o.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+o.pattern.source+")",o.pattern.flags),o.lookbehind=!0}(n)}return Eh}var xh,bA;function Bie(){if(bA)return xh;bA=1;var e=er();xh=t,t.displayName="tt2",t.aliases=[];function t(r){r.register(e),function(n){n.languages.tt2=n.languages.extend("clike",{comment:/#.*|\[%#[\s\S]*?%\]/,keyword:/\b(?:BLOCK|CALL|CASE|CATCH|CLEAR|DEBUG|DEFAULT|ELSE|ELSIF|END|FILTER|FINAL|FOREACH|GET|IF|IN|INCLUDE|INSERT|LAST|MACRO|META|NEXT|PERL|PROCESS|RAWPERL|RETURN|SET|STOP|SWITCH|TAGS|THROW|TRY|UNLESS|USE|WHILE|WRAPPER)\b/,punctuation:/[[\]{},()]/}),n.languages.insertBefore("tt2","number",{operator:/=[>=]?|!=?|<=?|>=?|&&|\|\|?|\b(?:and|not|or)\b/,variable:{pattern:/\b[a-z]\w*(?:\s*\.\s*(?:\d+|\$?[a-z]\w*))*\b/i}}),n.languages.insertBefore("tt2","keyword",{delimiter:{pattern:/^(?:\[%|%%)-?|-?%\]$/,alias:"punctuation"}}),n.languages.insertBefore("tt2","string",{"single-quoted-string":{pattern:/'[^\\']*(?:\\[\s\S][^\\']*)*'/,greedy:!0,alias:"string"},"double-quoted-string":{pattern:/"[^\\"]*(?:\\[\s\S][^\\"]*)*"/,greedy:!0,alias:"string",inside:{variable:{pattern:/\$(?:[a-z]\w*(?:\.(?:\d+|\$?[a-z]\w*))*)/i}}}}),delete n.languages.tt2.string,n.hooks.add("before-tokenize",function(a){var i=/\[%[\s\S]+?%\]/g;n.languages["markup-templating"].buildPlaceholders(a,"tt2",i)}),n.hooks.add("after-tokenize",function(a){n.languages["markup-templating"].tokenizePlaceholders(a,"tt2")})}(r)}return xh}var wh,yA;function Uie(){if(yA)return wh;yA=1;var e=er();wh=t,t.displayName="twig",t.aliases=[];function t(r){r.register(e),r.languages.twig={comment:/^\{#[\s\S]*?#\}$/,"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/}},keyword:/\b(?:even|if|odd)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/},r.hooks.add("before-tokenize",function(n){if(n.language==="twig"){var a=/\{(?:#[\s\S]*?#|%[\s\S]*?%|\{[\s\S]*?\})\}/g;r.languages["markup-templating"].buildPlaceholders(n,"twig",a)}}),r.hooks.add("after-tokenize",function(n){r.languages["markup-templating"].tokenizePlaceholders(n,"twig")})}return wh}var _h,vA;function Gie(){if(vA)return _h;vA=1,_h=e,e.displayName="typoscript",e.aliases=["tsconfig"];function e(t){(function(r){var n=/\b(?:ACT|ACTIFSUB|CARRAY|CASE|CLEARGIF|COA|COA_INT|CONSTANTS|CONTENT|CUR|EDITPANEL|EFFECT|EXT|FILE|FLUIDTEMPLATE|FORM|FRAME|FRAMESET|GIFBUILDER|GMENU|GMENU_FOLDOUT|GMENU_LAYERS|GP|HMENU|HRULER|HTML|IENV|IFSUB|IMAGE|IMGMENU|IMGMENUITEM|IMGTEXT|IMG_RESOURCE|INCLUDE_TYPOSCRIPT|JSMENU|JSMENUITEM|LLL|LOAD_REGISTER|NO|PAGE|RECORDS|RESTORE_REGISTER|TEMPLATE|TEXT|TMENU|TMENUITEM|TMENU_LAYERS|USER|USER_INT|_GIFBUILDER|global|globalString|globalVar)\b/;r.languages.typoscript={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0},{pattern:/(^|[^\\:= \t]|(?:^|[^= \t])[ \t]+)\/\/.*/,lookbehind:!0,greedy:!0},{pattern:/(^|[^"'])#.*/,lookbehind:!0,greedy:!0}],function:[{pattern://,inside:{string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,inside:{keyword:n}},keyword:{pattern:/INCLUDE_TYPOSCRIPT/}}},{pattern:/@import\s*(?:"[^"\r\n]*"|'[^'\r\n]*')/,inside:{string:/"[^"\r\n]*"|'[^'\r\n]*'/}}],string:{pattern:/^([^=]*=[< ]?)(?:(?!\]\n).)*/,lookbehind:!0,inside:{function:/\{\$.*\}/,keyword:n,number:/^\d+$/,punctuation:/[,|:]/}},keyword:n,number:{pattern:/\b\d+\s*[.{=]/,inside:{operator:/[.{=]/}},tag:{pattern:/\.?[-\w\\]+\.?/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:|]/,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/},r.languages.tsconfig=r.languages.typoscript})(t)}return _h}var Th,SA;function zie(){if(SA)return Th;SA=1,Th=e,e.displayName="unrealscript",e.aliases=["uc","uscript"];function e(t){t.languages.unrealscript={comment:/\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},category:{pattern:/(\b(?:(?:autoexpand|hide|show)categories|var)\s*\()[^()]+(?=\))/,lookbehind:!0,greedy:!0,alias:"property"},metadata:{pattern:/(\w\s*)<\s*\w+\s*=[^<>|=\r\n]+(?:\|\s*\w+\s*=[^<>|=\r\n]+)*>/,lookbehind:!0,greedy:!0,inside:{property:/\b\w+(?=\s*=)/,operator:/=/,punctuation:/[<>|]/}},macro:{pattern:/`\w+/,alias:"property"},"class-name":{pattern:/(\b(?:class|enum|extends|interface|state(?:\(\))?|struct|within)\s+)\w+/,lookbehind:!0},keyword:/\b(?:abstract|actor|array|auto|autoexpandcategories|bool|break|byte|case|class|classgroup|client|coerce|collapsecategories|config|const|continue|default|defaultproperties|delegate|dependson|deprecated|do|dontcollapsecategories|editconst|editinlinenew|else|enum|event|exec|export|extends|final|float|for|forcescriptorder|foreach|function|goto|guid|hidecategories|hidedropdown|if|ignores|implements|inherits|input|int|interface|iterator|latent|local|material|name|native|nativereplication|noexport|nontransient|noteditinlinenew|notplaceable|operator|optional|out|pawn|perobjectconfig|perobjectlocalized|placeable|postoperator|preoperator|private|protected|reliable|replication|return|server|showcategories|simulated|singular|state|static|string|struct|structdefault|structdefaultproperties|switch|texture|transient|travel|unreliable|until|var|vector|while|within)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/>>|<<|--|\+\+|\*\*|[-+*/~!=<>$@]=?|&&?|\|\|?|\^\^?|[?:%]|\b(?:ClockwiseFrom|Cross|Dot)\b/,punctuation:/[()[\]{};,.]/},t.languages.uc=t.languages.uscript=t.languages.unrealscript}return Th}var Ah,EA;function qie(){if(EA)return Ah;EA=1,Ah=e,e.displayName="uorazor",e.aliases=[];function e(t){t.languages.uorazor={"comment-hash":{pattern:/#.*/,alias:"comment",greedy:!0},"comment-slash":{pattern:/\/\/.*/,alias:"comment",greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/},greedy:!0},"source-layers":{pattern:/\b(?:arms|backpack|blue|bracelet|cancel|clear|cloak|criminal|earrings|enemy|facialhair|friend|friendly|gloves|gray|grey|ground|hair|head|innerlegs|innertorso|innocent|lefthand|middletorso|murderer|neck|nonfriendly|onehandedsecondary|outerlegs|outertorso|pants|red|righthand|ring|self|shirt|shoes|talisman|waist)\b/i,alias:"function"},"source-commands":{pattern:/\b(?:alliance|attack|cast|clearall|clearignore|clearjournal|clearlist|clearsysmsg|createlist|createtimer|dclick|dclicktype|dclickvar|dress|dressconfig|drop|droprelloc|emote|getlabel|guild|gumpclose|gumpresponse|hotkey|ignore|lasttarget|lift|lifttype|menu|menuresponse|msg|org|organize|organizer|overhead|pause|poplist|potion|promptresponse|pushlist|removelist|removetimer|rename|restock|say|scav|scavenger|script|setability|setlasttarget|setskill|settimer|setvar|sysmsg|target|targetloc|targetrelloc|targettype|undress|unignore|unsetvar|useobject|useonce|useskill|usetype|virtue|wait|waitforgump|waitformenu|waitforprompt|waitforstat|waitforsysmsg|waitfortarget|walk|wfsysmsg|wft|whisper|yell)\b/,alias:"function"},"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},function:/\b(?:atlist|close|closest|count|counter|counttype|dead|dex|diffhits|diffmana|diffstam|diffweight|find|findbuff|finddebuff|findlayer|findtype|findtypelist|followers|gumpexists|hidden|hits|hp|hue|human|humanoid|ingump|inlist|insysmessage|insysmsg|int|invul|lhandempty|list|listexists|mana|maxhits|maxhp|maxmana|maxstam|maxweight|monster|mounted|name|next|noto|paralyzed|poisoned|position|prev|previous|queued|rand|random|rhandempty|skill|stam|str|targetexists|timer|timerexists|varexist|warmode|weight)\b/,keyword:/\b(?:and|as|break|continue|else|elseif|endfor|endif|endwhile|for|if|loop|not|or|replay|stop|while)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/}}return Ah}var Oh,xA;function Hie(){if(xA)return Oh;xA=1,Oh=e,e.displayName="uri",e.aliases=["url"];function e(t){t.languages.uri={scheme:{pattern:/^[a-z][a-z0-9+.-]*:/im,greedy:!0,inside:{"scheme-delimiter":/:$/}},fragment:{pattern:/#[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"fragment-delimiter":/^#/}},query:{pattern:/\?[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"query-delimiter":{pattern:/^\?/,greedy:!0},"pair-delimiter":/[&;]/,pair:{pattern:/^[^=][\s\S]*/,inside:{key:/^[^=]+/,value:{pattern:/(^=)[\s\S]+/,lookbehind:!0}}}}},authority:{pattern:RegExp(/^\/\//.source+/(?:[\w\-.~!$&'()*+,;=%:]*@)?/.source+("(?:"+/\[(?:[0-9a-fA-F:.]{2,48}|v[0-9a-fA-F]+\.[\w\-.~!$&'()*+,;=]+)\]/.source+"|"+/[\w\-.~!$&'()*+,;=%]*/.source+")")+/(?::\d*)?/.source,"m"),inside:{"authority-delimiter":/^\/\//,"user-info-segment":{pattern:/^[\w\-.~!$&'()*+,;=%:]*@/,inside:{"user-info-delimiter":/@$/,"user-info":/^[\w\-.~!$&'()*+,;=%:]+/}},"port-segment":{pattern:/:\d*$/,inside:{"port-delimiter":/^:/,port:/^\d+/}},host:{pattern:/[\s\S]+/,inside:{"ip-literal":{pattern:/^\[[\s\S]+\]$/,inside:{"ip-literal-delimiter":/^\[|\]$/,"ipv-future":/^v[\s\S]+/,"ipv6-address":/^[\s\S]+/}},"ipv4-address":/^(?:(?:[03-9]\d?|[12]\d{0,2})\.){3}(?:[03-9]\d?|[12]\d{0,2})$/}}}},path:{pattern:/^[\w\-.~!$&'()*+,;=%:@/]+/m,inside:{"path-separator":/\//}}},t.languages.url=t.languages.uri}return Oh}var kh,wA;function Wie(){if(wA)return kh;wA=1,kh=e,e.displayName="v",e.aliases=[];function e(t){(function(r){var n={pattern:/[\s\S]+/,inside:null};r.languages.v=r.languages.extend("clike",{string:{pattern:/r?(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,alias:"quoted-string",greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[^{}]*\}|\w+(?:\.\w+(?:\([^\(\)]*\))?|\[[^\[\]]+\])*)/,lookbehind:!0,inside:{"interpolation-variable":{pattern:/^\$\w[\s\S]*$/,alias:"variable"},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},"interpolation-expression":n}}}},"class-name":{pattern:/(\b(?:enum|interface|struct|type)\s+)(?:C\.)?\w+/,lookbehind:!0},keyword:/(?:\b(?:__global|as|asm|assert|atomic|break|chan|const|continue|defer|else|embed|enum|fn|for|go(?:to)?|if|import|in|interface|is|lock|match|module|mut|none|or|pub|return|rlock|select|shared|sizeof|static|struct|type(?:of)?|union|unsafe)|\$(?:else|for|if)|#(?:flag|include))\b/,number:/\b(?:0x[a-f\d]+(?:_[a-f\d]+)*|0b[01]+(?:_[01]+)*|0o[0-7]+(?:_[0-7]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?)\b/i,operator:/~|\?|[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\.?/,builtin:/\b(?:any(?:_float|_int)?|bool|byte(?:ptr)?|charptr|f(?:32|64)|i(?:8|16|64|128|nt)|rune|size_t|string|u(?:16|32|64|128)|voidptr)\b/}),n.inside=r.languages.v,r.languages.insertBefore("v","string",{char:{pattern:/`(?:\\`|\\?[^`]{1,2})`/,alias:"rune"}}),r.languages.insertBefore("v","operator",{attribute:{pattern:/(^[\t ]*)\[(?:deprecated|direct_array_access|flag|inline|live|ref_only|typedef|unsafe_fn|windows_stdcall)\]/m,lookbehind:!0,alias:"annotation",inside:{punctuation:/[\[\]]/,keyword:/\w+/}},generic:{pattern:/<\w+>(?=\s*[\)\{])/,inside:{punctuation:/[<>]/,"class-name":/\w+/}}}),r.languages.insertBefore("v","function",{"generic-function":{pattern:/\b\w+\s*<\w+>(?=\()/,inside:{function:/^\w+/,generic:{pattern:/<\w+>/,inside:r.languages.v.generic.inside}}}})})(t)}return kh}var Rh,_A;function Vie(){if(_A)return Rh;_A=1,Rh=e,e.displayName="vala",e.aliases=[];function e(t){t.languages.vala=t.languages.extend("clike",{"class-name":[{pattern:/\b[A-Z]\w*(?:\.\w+)*\b(?=(?:\?\s+|\*?\s+\*?)\w)/,inside:{punctuation:/\./}},{pattern:/(\[)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/(\b(?:class|interface)\s+[A-Z]\w*(?:\.\w+)*\s*:\s*)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/((?:\b(?:class|enum|interface|new|struct)\s+)|(?:catch\s+\())[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}}],keyword:/\b(?:abstract|as|assert|async|base|bool|break|case|catch|char|class|const|construct|continue|default|delegate|delete|do|double|dynamic|else|ensures|enum|errordomain|extern|finally|float|for|foreach|get|if|in|inline|int|int16|int32|int64|int8|interface|internal|is|lock|long|namespace|new|null|out|override|owned|params|private|protected|public|ref|requires|return|set|short|signal|sizeof|size_t|ssize_t|static|string|struct|switch|this|throw|throws|try|typeof|uchar|uint|uint16|uint32|uint64|uint8|ulong|unichar|unowned|ushort|using|value|var|virtual|void|volatile|weak|while|yield)\b/i,function:/\b\w+(?=\s*\()/,number:/(?:\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?:f|u?l?)?/i,operator:/\+\+|--|&&|\|\||<<=?|>>=?|=>|->|~|[+\-*\/%&^|=!<>]=?|\?\??|\.\.\./,punctuation:/[{}[\];(),.:]/,constant:/\b[A-Z0-9_]+\b/}),t.languages.insertBefore("vala","string",{"raw-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"template-string":{pattern:/@"[\s\S]*?"/,greedy:!0,inside:{interpolation:{pattern:/\$(?:\([^)]*\)|[a-zA-Z]\w*)/,inside:{delimiter:{pattern:/^\$\(?|\)$/,alias:"punctuation"},rest:t.languages.vala}},string:/[\s\S]+/}}}),t.languages.insertBefore("vala","keyword",{regex:{pattern:/\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[imsx]{0,4}(?=\s*(?:$|[\r\n,.;})\]]))/,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:t.languages.regex},"regex-delimiter":/^\//,"regex-flags":/^[a-z]+$/}}})}return Rh}var Ih,TA;function Yie(){if(TA)return Ih;TA=1,Ih=e,e.displayName="velocity",e.aliases=[];function e(t){(function(r){r.languages.velocity=r.languages.extend("markup",{});var n={variable:{pattern:/(^|[^\\](?:\\\\)*)\$!?(?:[a-z][\w-]*(?:\([^)]*\))?(?:\.[a-z][\w-]*(?:\([^)]*\))?|\[[^\]]+\])*|\{[^}]+\})/i,lookbehind:!0,inside:{}},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},number:/\b\d+\b/,boolean:/\b(?:false|true)\b/,operator:/[=!<>]=?|[+*/%-]|&&|\|\||\.\.|\b(?:eq|g[et]|l[et]|n(?:e|ot))\b/,punctuation:/[(){}[\]:,.]/};n.variable.inside={string:n.string,function:{pattern:/([^\w-])[a-z][\w-]*(?=\()/,lookbehind:!0},number:n.number,boolean:n.boolean,punctuation:n.punctuation},r.languages.insertBefore("velocity","comment",{unparsed:{pattern:/(^|[^\\])#\[\[[\s\S]*?\]\]#/,lookbehind:!0,greedy:!0,inside:{punctuation:/^#\[\[|\]\]#$/}},"velocity-comment":[{pattern:/(^|[^\\])#\*[\s\S]*?\*#/,lookbehind:!0,greedy:!0,alias:"comment"},{pattern:/(^|[^\\])##.*/,lookbehind:!0,greedy:!0,alias:"comment"}],directive:{pattern:/(^|[^\\](?:\\\\)*)#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})(?:\s*\((?:[^()]|\([^()]*\))*\))?/i,lookbehind:!0,inside:{keyword:{pattern:/^#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})|\bin\b/,inside:{punctuation:/[{}]/}},rest:n}},variable:n.variable}),r.languages.velocity.tag.inside["attr-value"].inside.rest=r.languages.velocity})(t)}return Ih}var Ch,AA;function Kie(){if(AA)return Ch;AA=1,Ch=e,e.displayName="verilog",e.aliases=[];function e(t){t.languages.verilog={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"kernel-function":{pattern:/\B\$\w+\b/,alias:"property"},constant:/\B`\w+\b/,function:/\b\w+(?=\()/,keyword:/\b(?:alias|and|assert|assign|assume|automatic|before|begin|bind|bins|binsof|bit|break|buf|bufif0|bufif1|byte|case|casex|casez|cell|chandle|class|clocking|cmos|config|const|constraint|context|continue|cover|covergroup|coverpoint|cross|deassign|default|defparam|design|disable|dist|do|edge|else|end|endcase|endclass|endclocking|endconfig|endfunction|endgenerate|endgroup|endinterface|endmodule|endpackage|endprimitive|endprogram|endproperty|endsequence|endspecify|endtable|endtask|enum|event|expect|export|extends|extern|final|first_match|for|force|foreach|forever|fork|forkjoin|function|generate|genvar|highz0|highz1|if|iff|ifnone|ignore_bins|illegal_bins|import|incdir|include|initial|inout|input|inside|instance|int|integer|interface|intersect|join|join_any|join_none|large|liblist|library|local|localparam|logic|longint|macromodule|matches|medium|modport|module|nand|negedge|new|nmos|nor|noshowcancelled|not|notif0|notif1|null|or|output|package|packed|parameter|pmos|posedge|primitive|priority|program|property|protected|pull0|pull1|pulldown|pullup|pulsestyle_ondetect|pulsestyle_onevent|pure|rand|randc|randcase|randsequence|rcmos|real|realtime|ref|reg|release|repeat|return|rnmos|rpmos|rtran|rtranif0|rtranif1|scalared|sequence|shortint|shortreal|showcancelled|signed|small|solve|specify|specparam|static|string|strong0|strong1|struct|super|supply0|supply1|table|tagged|task|this|throughout|time|timeprecision|timeunit|tran|tranif0|tranif1|tri|tri0|tri1|triand|trior|trireg|type|typedef|union|unique|unsigned|use|uwire|var|vectored|virtual|void|wait|wait_order|wand|weak0|weak1|while|wildcard|wire|with|within|wor|xnor|xor)\b/,important:/\b(?:always|always_comb|always_ff|always_latch)\b(?: *@)?/,number:/\B##?\d+|(?:\b\d+)?'[odbh] ?[\da-fzx_?]+|\b(?:\d*[._])?\d+(?:e[-+]?\d+)?/i,operator:/[-+{}^~%*\/?=!<>&|]+/,punctuation:/[[\];(),.:]/}}return Ch}var Nh,OA;function Xie(){if(OA)return Nh;OA=1,Nh=e,e.displayName="vhdl",e.aliases=[];function e(t){t.languages.vhdl={comment:/--.+/,"vhdl-vectors":{pattern:/\b[oxb]"[\da-f_]+"|"[01uxzwlh-]+"/i,alias:"number"},"quoted-function":{pattern:/"\S+?"(?=\()/,alias:"function"},string:/"(?:[^\\"\r\n]|\\(?:\r\n|[\s\S]))*"/,constant:/\b(?:library|use)\b/i,keyword:/\b(?:'active|'ascending|'base|'delayed|'driving|'driving_value|'event|'high|'image|'instance_name|'last_active|'last_event|'last_value|'left|'leftof|'length|'low|'path_name|'pos|'pred|'quiet|'range|'reverse_range|'right|'rightof|'simple_name|'stable|'succ|'transaction|'val|'value|access|after|alias|all|architecture|array|assert|attribute|begin|block|body|buffer|bus|case|component|configuration|constant|disconnect|downto|else|elsif|end|entity|exit|file|for|function|generate|generic|group|guarded|if|impure|in|inertial|inout|is|label|library|linkage|literal|loop|map|new|next|null|of|on|open|others|out|package|port|postponed|procedure|process|pure|range|record|register|reject|report|return|select|severity|shared|signal|subtype|then|to|transport|type|unaffected|units|until|use|variable|wait|when|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\w+(?=\()/,number:/'[01uxzwlh-]'|\b(?:\d+#[\da-f_.]+#|\d[\d_.]*)(?:e[-+]?\d+)?/i,operator:/[<>]=?|:=|[-+*/&=]|\b(?:abs|and|mod|nand|nor|not|or|rem|rol|ror|sla|sll|sra|srl|xnor|xor)\b/i,punctuation:/[{}[\];(),.:]/}}return Nh}var Lh,kA;function Zie(){if(kA)return Lh;kA=1,Lh=e,e.displayName="vim",e.aliases=[];function e(t){t.languages.vim={string:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\r\n]|'')*'/,comment:/".*/,function:/\b\w+(?=\()/,keyword:/\b(?:N|Next|P|Print|X|XMLent|XMLns|ab|abbreviate|abc|abclear|abo|aboveleft|al|all|ar|arga|argadd|argd|argdelete|argdo|arge|argedit|argg|argglobal|argl|arglocal|args|argu|argument|as|ascii|b|bN|bNext|ba|bad|badd|ball|bd|bdelete|be|bel|belowright|bf|bfirst|bl|blast|bm|bmodified|bn|bnext|bo|botright|bp|bprevious|br|brea|break|breaka|breakadd|breakd|breakdel|breakl|breaklist|brewind|bro|browse|bufdo|buffer|buffers|bun|bunload|bw|bwipeout|c|cN|cNext|cNfcNfile|ca|cabbrev|cabc|cabclear|cad|caddb|caddbuffer|caddexpr|caddf|caddfile|cal|call|cat|catch|cb|cbuffer|cc|ccl|cclose|cd|ce|center|cex|cexpr|cf|cfile|cfir|cfirst|cg|cgetb|cgetbuffer|cgete|cgetexpr|cgetfile|change|changes|chd|chdir|che|checkpath|checkt|checktime|cl|cla|clast|clist|clo|close|cmapc|cmapclear|cn|cnew|cnewer|cnext|cnf|cnfile|cnorea|cnoreabbrev|co|col|colder|colo|colorscheme|comc|comclear|comp|compiler|con|conf|confirm|continue|cope|copen|copy|cp|cpf|cpfile|cprevious|cq|cquit|cr|crewind|cu|cuna|cunabbrev|cunmap|cw|cwindow|d|debugg|debuggreedy|delc|delcommand|delete|delf|delfunction|delm|delmarks|di|diffg|diffget|diffoff|diffpatch|diffpu|diffput|diffsplit|diffthis|diffu|diffupdate|dig|digraphs|display|dj|djump|dl|dlist|dr|drop|ds|dsearch|dsp|dsplit|e|earlier|echoe|echoerr|echom|echomsg|echon|edit|el|else|elsei|elseif|em|emenu|en|endf|endfo|endfor|endfun|endfunction|endif|endt|endtry|endw|endwhile|ene|enew|ex|exi|exit|exu|exusage|f|file|files|filetype|fin|fina|finally|find|fini|finish|fir|first|fix|fixdel|fo|fold|foldc|foldclose|foldd|folddoc|folddoclosed|folddoopen|foldo|foldopen|for|fu|fun|function|go|goto|gr|grep|grepa|grepadd|h|ha|hardcopy|help|helpf|helpfind|helpg|helpgrep|helpt|helptags|hid|hide|his|history|ia|iabbrev|iabc|iabclear|if|ij|ijump|il|ilist|imapc|imapclear|in|inorea|inoreabbrev|isearch|isp|isplit|iu|iuna|iunabbrev|iunmap|j|join|ju|jumps|k|kee|keepalt|keepj|keepjumps|keepmarks|l|lN|lNext|lNf|lNfile|la|lad|laddb|laddbuffer|laddexpr|laddf|laddfile|lan|language|last|later|lb|lbuffer|lc|lcd|lch|lchdir|lcl|lclose|left|lefta|leftabove|let|lex|lexpr|lf|lfile|lfir|lfirst|lg|lgetb|lgetbuffer|lgete|lgetexpr|lgetfile|lgr|lgrep|lgrepa|lgrepadd|lh|lhelpgrep|list|ll|lla|llast|lli|llist|lm|lmak|lmake|lmap|lmapc|lmapclear|ln|lne|lnew|lnewer|lnext|lnf|lnfile|lnoremap|lo|loadview|loc|lockmarks|lockv|lockvar|lol|lolder|lop|lopen|lp|lpf|lpfile|lprevious|lr|lrewind|ls|lt|ltag|lu|lunmap|lv|lvimgrep|lvimgrepa|lvimgrepadd|lw|lwindow|m|ma|mak|make|mark|marks|mat|match|menut|menutranslate|mk|mkexrc|mks|mksession|mksp|mkspell|mkv|mkvie|mkview|mkvimrc|mod|mode|move|mz|mzf|mzfile|mzscheme|n|nbkey|new|next|nmapc|nmapclear|noh|nohlsearch|norea|noreabbrev|nu|number|nun|nunmap|o|omapc|omapclear|on|only|open|opt|options|ou|ounmap|p|pc|pclose|pe|ped|pedit|perl|perld|perldo|po|pop|popu|popup|pp|ppop|pre|preserve|prev|previous|print|prof|profd|profdel|profile|promptf|promptfind|promptr|promptrepl|ps|psearch|ptN|ptNext|pta|ptag|ptf|ptfirst|ptj|ptjump|ptl|ptlast|ptn|ptnext|ptp|ptprevious|ptr|ptrewind|pts|ptselect|pu|put|pw|pwd|py|pyf|pyfile|python|q|qa|qall|quit|quita|quitall|r|read|rec|recover|red|redi|redir|redo|redr|redraw|redraws|redrawstatus|reg|registers|res|resize|ret|retab|retu|return|rew|rewind|ri|right|rightb|rightbelow|ru|rub|ruby|rubyd|rubydo|rubyf|rubyfile|runtime|rv|rviminfo|sN|sNext|sa|sal|sall|san|sandbox|sargument|sav|saveas|sb|sbN|sbNext|sba|sball|sbf|sbfirst|sbl|sblast|sbm|sbmodified|sbn|sbnext|sbp|sbprevious|sbr|sbrewind|sbuffer|scrip|scripte|scriptencoding|scriptnames|se|set|setf|setfiletype|setg|setglobal|setl|setlocal|sf|sfind|sfir|sfirst|sh|shell|sign|sil|silent|sim|simalt|sl|sla|slast|sleep|sm|smagic|smap|smapc|smapclear|sme|smenu|sn|snext|sni|sniff|sno|snomagic|snor|snoremap|snoreme|snoremenu|so|sor|sort|source|sp|spe|spelld|spelldump|spellgood|spelli|spellinfo|spellr|spellrepall|spellu|spellundo|spellw|spellwrong|split|spr|sprevious|sre|srewind|st|sta|stag|star|startg|startgreplace|startinsert|startr|startreplace|stj|stjump|stop|stopi|stopinsert|sts|stselect|sun|sunhide|sunm|sunmap|sus|suspend|sv|sview|syncbind|t|tN|tNext|ta|tab|tabN|tabNext|tabc|tabclose|tabd|tabdo|tabe|tabedit|tabf|tabfind|tabfir|tabfirst|tabl|tablast|tabm|tabmove|tabn|tabnew|tabnext|tabo|tabonly|tabp|tabprevious|tabr|tabrewind|tabs|tag|tags|tc|tcl|tcld|tcldo|tclf|tclfile|te|tearoff|tf|tfirst|th|throw|tj|tjump|tl|tlast|tm|tmenu|tn|tnext|to|topleft|tp|tprevious|tr|trewind|try|ts|tselect|tu|tunmenu|u|una|unabbreviate|undo|undoj|undojoin|undol|undolist|unh|unhide|unlet|unlo|unlockvar|unm|unmap|up|update|ve|verb|verbose|version|vert|vertical|vi|vie|view|vim|vimgrep|vimgrepa|vimgrepadd|visual|viu|viusage|vmapc|vmapclear|vne|vnew|vs|vsplit|vu|vunmap|w|wN|wNext|wa|wall|wh|while|win|winc|wincmd|windo|winp|winpos|winsize|wn|wnext|wp|wprevious|wq|wqa|wqall|write|ws|wsverb|wv|wviminfo|x|xa|xall|xit|xm|xmap|xmapc|xmapclear|xme|xmenu|xn|xnoremap|xnoreme|xnoremenu|xu|xunmap|y|yank)\b/,builtin:/\b(?:acd|ai|akm|aleph|allowrevins|altkeymap|ambiwidth|ambw|anti|antialias|arab|arabic|arabicshape|ari|arshape|autochdir|autocmd|autoindent|autoread|autowrite|autowriteall|aw|awa|background|backspace|backup|backupcopy|backupdir|backupext|backupskip|balloondelay|ballooneval|balloonexpr|bdir|bdlay|beval|bex|bexpr|bg|bh|bin|binary|biosk|bioskey|bk|bkc|bomb|breakat|brk|browsedir|bs|bsdir|bsk|bt|bufhidden|buflisted|buftype|casemap|ccv|cdpath|cedit|cfu|ch|charconvert|ci|cin|cindent|cink|cinkeys|cino|cinoptions|cinw|cinwords|clipboard|cmdheight|cmdwinheight|cmp|cms|columns|com|comments|commentstring|compatible|complete|completefunc|completeopt|consk|conskey|copyindent|cot|cpo|cpoptions|cpt|cscopepathcomp|cscopeprg|cscopequickfix|cscopetag|cscopetagorder|cscopeverbose|cspc|csprg|csqf|cst|csto|csverb|cuc|cul|cursorcolumn|cursorline|cwh|debug|deco|def|define|delcombine|dex|dg|dict|dictionary|diff|diffexpr|diffopt|digraph|dip|dir|directory|dy|ea|ead|eadirection|eb|ed|edcompatible|ef|efm|ei|ek|enc|encoding|endofline|eol|ep|equalalways|equalprg|errorbells|errorfile|errorformat|esckeys|et|eventignore|expandtab|exrc|fcl|fcs|fdc|fde|fdi|fdl|fdls|fdm|fdn|fdo|fdt|fen|fenc|fencs|fex|ff|ffs|fileencoding|fileencodings|fileformat|fileformats|fillchars|fk|fkmap|flp|fml|fmr|foldcolumn|foldenable|foldexpr|foldignore|foldlevel|foldlevelstart|foldmarker|foldmethod|foldminlines|foldnestmax|foldtext|formatexpr|formatlistpat|formatoptions|formatprg|fp|fs|fsync|ft|gcr|gd|gdefault|gfm|gfn|gfs|gfw|ghr|gp|grepformat|grepprg|gtl|gtt|guicursor|guifont|guifontset|guifontwide|guiheadroom|guioptions|guipty|guitablabel|guitabtooltip|helpfile|helpheight|helplang|hf|hh|hi|hidden|highlight|hk|hkmap|hkmapp|hkp|hl|hlg|hls|hlsearch|ic|icon|iconstring|ignorecase|im|imactivatekey|imak|imc|imcmdline|imd|imdisable|imi|iminsert|ims|imsearch|inc|include|includeexpr|incsearch|inde|indentexpr|indentkeys|indk|inex|inf|infercase|insertmode|invacd|invai|invakm|invallowrevins|invaltkeymap|invanti|invantialias|invar|invarab|invarabic|invarabicshape|invari|invarshape|invautochdir|invautoindent|invautoread|invautowrite|invautowriteall|invaw|invawa|invbackup|invballooneval|invbeval|invbin|invbinary|invbiosk|invbioskey|invbk|invbl|invbomb|invbuflisted|invcf|invci|invcin|invcindent|invcompatible|invconfirm|invconsk|invconskey|invcopyindent|invcp|invcscopetag|invcscopeverbose|invcst|invcsverb|invcuc|invcul|invcursorcolumn|invcursorline|invdeco|invdelcombine|invdg|invdiff|invdigraph|invdisable|invea|inveb|inved|invedcompatible|invek|invendofline|inveol|invequalalways|inverrorbells|invesckeys|invet|invex|invexpandtab|invexrc|invfen|invfk|invfkmap|invfoldenable|invgd|invgdefault|invguipty|invhid|invhidden|invhk|invhkmap|invhkmapp|invhkp|invhls|invhlsearch|invic|invicon|invignorecase|invim|invimc|invimcmdline|invimd|invincsearch|invinf|invinfercase|invinsertmode|invis|invjoinspaces|invjs|invlazyredraw|invlbr|invlinebreak|invlisp|invlist|invloadplugins|invlpl|invlz|invma|invmacatsui|invmagic|invmh|invml|invmod|invmodeline|invmodifiable|invmodified|invmore|invmousef|invmousefocus|invmousehide|invnu|invnumber|invodev|invopendevice|invpaste|invpi|invpreserveindent|invpreviewwindow|invprompt|invpvw|invreadonly|invremap|invrestorescreen|invrevins|invri|invrightleft|invrightleftcmd|invrl|invrlc|invro|invrs|invru|invruler|invsb|invsc|invscb|invscrollbind|invscs|invsecure|invsft|invshellslash|invshelltemp|invshiftround|invshortname|invshowcmd|invshowfulltag|invshowmatch|invshowmode|invsi|invsm|invsmartcase|invsmartindent|invsmarttab|invsmd|invsn|invsol|invspell|invsplitbelow|invsplitright|invspr|invsr|invssl|invsta|invstartofline|invstmp|invswapfile|invswf|invta|invtagbsearch|invtagrelative|invtagstack|invtbi|invtbidi|invtbs|invtermbidi|invterse|invtextauto|invtextmode|invtf|invtgst|invtildeop|invtimeout|invtitle|invto|invtop|invtr|invttimeout|invttybuiltin|invttyfast|invtx|invvb|invvisualbell|invwa|invwarn|invwb|invweirdinvert|invwfh|invwfw|invwildmenu|invwinfixheight|invwinfixwidth|invwiv|invwmnu|invwrap|invwrapscan|invwrite|invwriteany|invwritebackup|invws|isf|isfname|isi|isident|isk|iskeyword|isprint|joinspaces|js|key|keymap|keymodel|keywordprg|km|kmp|kp|langmap|langmenu|laststatus|lazyredraw|lbr|lcs|linebreak|lines|linespace|lisp|lispwords|listchars|loadplugins|lpl|lsp|lz|macatsui|magic|makeef|makeprg|matchpairs|matchtime|maxcombine|maxfuncdepth|maxmapdepth|maxmem|maxmempattern|maxmemtot|mco|mef|menuitems|mfd|mh|mis|mkspellmem|ml|mls|mm|mmd|mmp|mmt|modeline|modelines|modifiable|modified|more|mouse|mousef|mousefocus|mousehide|mousem|mousemodel|mouses|mouseshape|mouset|mousetime|mp|mps|msm|mzq|mzquantum|nf|noacd|noai|noakm|noallowrevins|noaltkeymap|noanti|noantialias|noar|noarab|noarabic|noarabicshape|noari|noarshape|noautochdir|noautoindent|noautoread|noautowrite|noautowriteall|noaw|noawa|nobackup|noballooneval|nobeval|nobin|nobinary|nobiosk|nobioskey|nobk|nobl|nobomb|nobuflisted|nocf|noci|nocin|nocindent|nocompatible|noconfirm|noconsk|noconskey|nocopyindent|nocp|nocscopetag|nocscopeverbose|nocst|nocsverb|nocuc|nocul|nocursorcolumn|nocursorline|nodeco|nodelcombine|nodg|nodiff|nodigraph|nodisable|noea|noeb|noed|noedcompatible|noek|noendofline|noeol|noequalalways|noerrorbells|noesckeys|noet|noex|noexpandtab|noexrc|nofen|nofk|nofkmap|nofoldenable|nogd|nogdefault|noguipty|nohid|nohidden|nohk|nohkmap|nohkmapp|nohkp|nohls|noic|noicon|noignorecase|noim|noimc|noimcmdline|noimd|noincsearch|noinf|noinfercase|noinsertmode|nois|nojoinspaces|nojs|nolazyredraw|nolbr|nolinebreak|nolisp|nolist|noloadplugins|nolpl|nolz|noma|nomacatsui|nomagic|nomh|noml|nomod|nomodeline|nomodifiable|nomodified|nomore|nomousef|nomousefocus|nomousehide|nonu|nonumber|noodev|noopendevice|nopaste|nopi|nopreserveindent|nopreviewwindow|noprompt|nopvw|noreadonly|noremap|norestorescreen|norevins|nori|norightleft|norightleftcmd|norl|norlc|noro|nors|noru|noruler|nosb|nosc|noscb|noscrollbind|noscs|nosecure|nosft|noshellslash|noshelltemp|noshiftround|noshortname|noshowcmd|noshowfulltag|noshowmatch|noshowmode|nosi|nosm|nosmartcase|nosmartindent|nosmarttab|nosmd|nosn|nosol|nospell|nosplitbelow|nosplitright|nospr|nosr|nossl|nosta|nostartofline|nostmp|noswapfile|noswf|nota|notagbsearch|notagrelative|notagstack|notbi|notbidi|notbs|notermbidi|noterse|notextauto|notextmode|notf|notgst|notildeop|notimeout|notitle|noto|notop|notr|nottimeout|nottybuiltin|nottyfast|notx|novb|novisualbell|nowa|nowarn|nowb|noweirdinvert|nowfh|nowfw|nowildmenu|nowinfixheight|nowinfixwidth|nowiv|nowmnu|nowrap|nowrapscan|nowrite|nowriteany|nowritebackup|nows|nrformats|numberwidth|nuw|odev|oft|ofu|omnifunc|opendevice|operatorfunc|opfunc|osfiletype|pa|para|paragraphs|paste|pastetoggle|patchexpr|patchmode|path|pdev|penc|pex|pexpr|pfn|ph|pheader|pi|pm|pmbcs|pmbfn|popt|preserveindent|previewheight|previewwindow|printdevice|printencoding|printexpr|printfont|printheader|printmbcharset|printmbfont|printoptions|prompt|pt|pumheight|pvh|pvw|qe|quoteescape|readonly|remap|report|restorescreen|revins|rightleft|rightleftcmd|rl|rlc|ro|rs|rtp|ruf|ruler|rulerformat|runtimepath|sbo|sc|scb|scr|scroll|scrollbind|scrolljump|scrolloff|scrollopt|scs|sect|sections|secure|sel|selection|selectmode|sessionoptions|sft|shcf|shellcmdflag|shellpipe|shellquote|shellredir|shellslash|shelltemp|shelltype|shellxquote|shiftround|shiftwidth|shm|shortmess|shortname|showbreak|showcmd|showfulltag|showmatch|showmode|showtabline|shq|si|sidescroll|sidescrolloff|siso|sj|slm|smartcase|smartindent|smarttab|smc|smd|softtabstop|sol|spc|spell|spellcapcheck|spellfile|spelllang|spellsuggest|spf|spl|splitbelow|splitright|sps|sr|srr|ss|ssl|ssop|stal|startofline|statusline|stl|stmp|su|sua|suffixes|suffixesadd|sw|swapfile|swapsync|swb|swf|switchbuf|sws|sxq|syn|synmaxcol|syntax|t_AB|t_AF|t_AL|t_CS|t_CV|t_Ce|t_Co|t_Cs|t_DL|t_EI|t_F1|t_F2|t_F3|t_F4|t_F5|t_F6|t_F7|t_F8|t_F9|t_IE|t_IS|t_K1|t_K3|t_K4|t_K5|t_K6|t_K7|t_K8|t_K9|t_KA|t_KB|t_KC|t_KD|t_KE|t_KF|t_KG|t_KH|t_KI|t_KJ|t_KK|t_KL|t_RI|t_RV|t_SI|t_Sb|t_Sf|t_WP|t_WS|t_ZH|t_ZR|t_al|t_bc|t_cd|t_ce|t_cl|t_cm|t_cs|t_da|t_db|t_dl|t_fs|t_k1|t_k2|t_k3|t_k4|t_k5|t_k6|t_k7|t_k8|t_k9|t_kB|t_kD|t_kI|t_kN|t_kP|t_kb|t_kd|t_ke|t_kh|t_kl|t_kr|t_ks|t_ku|t_le|t_mb|t_md|t_me|t_mr|t_ms|t_nd|t_op|t_se|t_so|t_sr|t_te|t_ti|t_ts|t_ue|t_us|t_ut|t_vb|t_ve|t_vi|t_vs|t_xs|tabline|tabpagemax|tabstop|tagbsearch|taglength|tagrelative|tagstack|tal|tb|tbi|tbidi|tbis|tbs|tenc|term|termbidi|termencoding|terse|textauto|textmode|textwidth|tgst|thesaurus|tildeop|timeout|timeoutlen|title|titlelen|titleold|titlestring|toolbar|toolbariconsize|top|tpm|tsl|tsr|ttimeout|ttimeoutlen|ttm|tty|ttybuiltin|ttyfast|ttym|ttymouse|ttyscroll|ttytype|tw|tx|uc|ul|undolevels|updatecount|updatetime|ut|vb|vbs|vdir|verbosefile|vfile|viewdir|viewoptions|viminfo|virtualedit|visualbell|vop|wak|warn|wb|wc|wcm|wd|weirdinvert|wfh|wfw|whichwrap|wi|wig|wildchar|wildcharm|wildignore|wildmenu|wildmode|wildoptions|wim|winaltkeys|window|winfixheight|winfixwidth|winheight|winminheight|winminwidth|winwidth|wiv|wiw|wm|wmh|wmnu|wmw|wop|wrap|wrapmargin|wrapscan|writeany|writebackup|writedelay|ww)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?)\b/i,operator:/\|\||&&|[-+.]=?|[=!](?:[=~][#?]?)?|[<>]=?[#?]?|[*\/%?]|\b(?:is(?:not)?)\b/,punctuation:/[{}[\](),;:]/}}return Lh}var Dh,RA;function Jie(){if(RA)return Dh;RA=1,Dh=e,e.displayName="visualBasic",e.aliases=[];function e(t){t.languages["visual-basic"]={comment:{pattern:/(?:['‘’]|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i,inside:{keyword:/^REM/i}},directive:{pattern:/#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:\b_[ \t]*(?:\r\n?|\n)|.)+/i,alias:"property",greedy:!0},string:{pattern:/\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,greedy:!0},date:{pattern:/#[ \t]*(?:\d+([/-])\d+\1\d+(?:[ \t]+(?:\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?))?|\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?)[ \t]*#/i,alias:"number"},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:[FRD]|U?[ILS])?/i,boolean:/\b(?:False|Nothing|True)\b/i,keyword:/\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Until|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Xor)\b/i,operator:/[+\-*/\\^<=>&#@$%!]|\b_(?=[ \t]*[\r\n])/,punctuation:/[{}().,:?]/},t.languages.vb=t.languages["visual-basic"],t.languages.vba=t.languages["visual-basic"]}return Dh}var Mh,IA;function Qie(){if(IA)return Mh;IA=1,Mh=e,e.displayName="warpscript",e.aliases=[];function e(t){t.languages.warpscript={comment:/#.*|\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'|<'(?:[^\\']|'(?!>)|\\.)*'>/,greedy:!0},variable:/\$\S+/,macro:{pattern:/@\S+/,alias:"property"},keyword:/\b(?:BREAK|CHECKMACRO|CONTINUE|CUDF|DEFINED|DEFINEDMACRO|EVAL|FAIL|FOR|FOREACH|FORSTEP|IFT|IFTE|MSGFAIL|NRETURN|RETHROW|RETURN|SWITCH|TRY|UDF|UNTIL|WHILE)\b/,number:/[+-]?\b(?:NaN|Infinity|\d+(?:\.\d*)?(?:[Ee][+-]?\d+)?|0x[\da-fA-F]+|0b[01]+)\b/,boolean:/\b(?:F|T|false|true)\b/,punctuation:/<%|%>|[{}[\]()]/,operator:/==|&&?|\|\|?|\*\*?|>>>?|<<|[<>!~]=?|[-/%^]|\+!?|\b(?:AND|NOT|OR)\b/}}return Mh}var Ph,CA;function eoe(){if(CA)return Ph;CA=1,Ph=e,e.displayName="wasm",e.aliases=[];function e(t){t.languages.wasm={comment:[/\(;[\s\S]*?;\)/,{pattern:/;;.*/,greedy:!0}],string:{pattern:/"(?:\\[\s\S]|[^"\\])*"/,greedy:!0},keyword:[{pattern:/\b(?:align|offset)=/,inside:{operator:/=/}},{pattern:/\b(?:(?:f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|neg?|nearest|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|sqrt|store(?:8|16|32)?|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))?|memory\.(?:grow|size))\b/,inside:{punctuation:/\./}},/\b(?:anyfunc|block|br(?:_if|_table)?|call(?:_indirect)?|data|drop|elem|else|end|export|func|get_(?:global|local)|global|if|import|local|loop|memory|module|mut|nop|offset|param|result|return|select|set_(?:global|local)|start|table|tee_local|then|type|unreachable)\b/],variable:/\$[\w!#$%&'*+\-./:<=>?@\\^`|~]+/,number:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/,punctuation:/[()]/}}return Ph}var $h,NA;function toe(){if(NA)return $h;NA=1,$h=e,e.displayName="webIdl",e.aliases=[];function e(t){(function(r){var n=/(?:\B-|\b_|\b)[A-Za-z][\w-]*(?![\w-])/.source,a="(?:"+/\b(?:unsigned\s+)?long\s+long(?![\w-])/.source+"|"+/\b(?:unrestricted|unsigned)\s+[a-z]+(?![\w-])/.source+"|"+/(?!(?:unrestricted|unsigned)\b)/.source+n+/(?:\s*<(?:[^<>]|<[^<>]*>)*>)?/.source+")"+/(?:\s*\?)?/.source,i={};r.languages["web-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"[^"]*"/,greedy:!0},namespace:{pattern:RegExp(/(\bnamespace\s+)/.source+n),lookbehind:!0},"class-name":[{pattern:/(^|[^\w-])(?:iterable|maplike|setlike)\s*<(?:[^<>]|<[^<>]*>)*>/,lookbehind:!0,inside:i},{pattern:RegExp(/(\b(?:attribute|const|deleter|getter|optional|setter)\s+)/.source+a),lookbehind:!0,inside:i},{pattern:RegExp("("+/\bcallback\s+/.source+n+/\s*=\s*/.source+")"+a),lookbehind:!0,inside:i},{pattern:RegExp(/(\btypedef\b\s*)/.source+a),lookbehind:!0,inside:i},{pattern:RegExp(/(\b(?:callback|dictionary|enum|interface(?:\s+mixin)?)\s+)(?!(?:interface|mixin)\b)/.source+n),lookbehind:!0},{pattern:RegExp(/(:\s*)/.source+n),lookbehind:!0},RegExp(n+/(?=\s+(?:implements|includes)\b)/.source),{pattern:RegExp(/(\b(?:implements|includes)\s+)/.source+n),lookbehind:!0},{pattern:RegExp(a+"(?="+/\s*(?:\.{3}\s*)?/.source+n+/\s*[(),;=]/.source+")"),inside:i}],builtin:/\b(?:ArrayBuffer|BigInt64Array|BigUint64Array|ByteString|DOMString|DataView|Float32Array|Float64Array|FrozenArray|Int16Array|Int32Array|Int8Array|ObservableArray|Promise|USVString|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray)\b/,keyword:[/\b(?:async|attribute|callback|const|constructor|deleter|dictionary|enum|getter|implements|includes|inherit|interface|mixin|namespace|null|optional|or|partial|readonly|required|setter|static|stringifier|typedef|unrestricted)\b/,/\b(?:any|bigint|boolean|byte|double|float|iterable|long|maplike|object|octet|record|sequence|setlike|short|symbol|undefined|unsigned|void)\b/],boolean:/\b(?:false|true)\b/,number:{pattern:/(^|[^\w-])-?(?:0x[0-9a-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|NaN|Infinity)(?![\w-])/i,lookbehind:!0},operator:/\.{3}|[=:?<>-]/,punctuation:/[(){}[\].,;]/};for(var o in r.languages["web-idl"])o!=="class-name"&&(i[o]=r.languages["web-idl"][o]);r.languages.webidl=r.languages["web-idl"]})(t)}return $h}var jh,LA;function roe(){if(LA)return jh;LA=1,jh=e,e.displayName="wiki",e.aliases=[];function e(t){t.languages.wiki=t.languages.extend("markup",{"block-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,alias:"comment"},heading:{pattern:/^(=+)[^=\r\n].*?\1/m,inside:{punctuation:/^=+|=+$/,important:/.+/}},emphasis:{pattern:/('{2,5}).+?\1/,inside:{"bold-italic":{pattern:/(''''').+?(?=\1)/,lookbehind:!0,alias:["bold","italic"]},bold:{pattern:/(''')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},italic:{pattern:/('')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},punctuation:/^''+|''+$/}},hr:{pattern:/^-{4,}/m,alias:"punctuation"},url:[/ISBN +(?:97[89][ -]?)?(?:\d[ -]?){9}[\dx]\b|(?:PMID|RFC) +\d+/i,/\[\[.+?\]\]|\[.+?\]/],variable:[/__[A-Z]+__/,/\{{3}.+?\}{3}/,/\{\{.+?\}\}/],symbol:[/^#redirect/im,/~{3,5}/],"table-tag":{pattern:/((?:^|[|!])[|!])[^|\r\n]+\|(?!\|)/m,lookbehind:!0,inside:{"table-bar":{pattern:/\|$/,alias:"punctuation"},rest:t.languages.markup.tag.inside}},punctuation:/^(?:\{\||\|\}|\|-|[*#:;!|])|\|\||!!/m}),t.languages.insertBefore("wiki","tag",{nowiki:{pattern:/<(nowiki|pre|source)\b[^>]*>[\s\S]*?<\/\1>/i,inside:{tag:{pattern:/<(?:nowiki|pre|source)\b[^>]*>|<\/(?:nowiki|pre|source)>/i,inside:t.languages.markup.tag.inside}}}})}return jh}var Fh,DA;function noe(){if(DA)return Fh;DA=1,Fh=e,e.displayName="wolfram",e.aliases=["mathematica","wl","nb"];function e(t){t.languages.wolfram={comment:/\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[\s\S])*?\*\)/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:Abs|AbsArg|Accuracy|Block|Do|For|Function|If|Manipulate|Module|Nest|NestList|None|Return|Switch|Table|Which|While)\b/,context:{pattern:/\b\w+`+\w*/,alias:"class-name"},blank:{pattern:/\b\w+_\b/,alias:"regex"},"global-variable":{pattern:/\$\w+/,alias:"variable"},boolean:/\b(?:False|True)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?j?\b/i,operator:/\/\.|;|=\.|\^=|\^:=|:=|<<|>>|<\||\|>|:>|\|->|->|<-|@@@|@@|@|\/@|=!=|===|==|=|\+|-|\^|\[\/-+%=\]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},t.languages.mathematica=t.languages.wolfram,t.languages.wl=t.languages.wolfram,t.languages.nb=t.languages.wolfram}return Fh}var Bh,MA;function aoe(){if(MA)return Bh;MA=1,Bh=e,e.displayName="wren",e.aliases=[];function e(t){t.languages.wren={comment:[{pattern:/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*))*\*\/)*\*\/)*\*\//,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],"triple-quoted-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"string-literal":null,hashbang:{pattern:/^#!\/.+/,greedy:!0,alias:"comment"},attribute:{pattern:/#!?[ \t\u3000]*\w+/,alias:"keyword"},"class-name":[{pattern:/(\bclass\s+)\w+/,lookbehind:!0},/\b[A-Z][a-z\d_]*\b/],constant:/\b[A-Z][A-Z\d_]*\b/,null:{pattern:/\bnull\b/,alias:"keyword"},keyword:/\b(?:as|break|class|construct|continue|else|for|foreign|if|import|in|is|return|static|super|this|var|while)\b/,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,function:/\b[a-z_]\w*(?=\s*[({])/i,operator:/<<|>>|[=!<>]=?|&&|\|\||[-+*/%~^&|?:]|\.{2,3}/,punctuation:/[\[\](){}.,;]/},t.languages.wren["string-literal"]={pattern:/(^|[^\\"])"(?:[^\\"%]|\\[\s\S]|%(?!\()|%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\))*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\)/,lookbehind:!0,inside:{expression:{pattern:/^(%\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:t.languages.wren},"interpolation-punctuation":{pattern:/^%\(|\)$/,alias:"punctuation"}}},string:/[\s\S]+/}}}return Bh}var Uh,PA;function ioe(){if(PA)return Uh;PA=1,Uh=e,e.displayName="xeora",e.aliases=["xeoracube"];function e(t){(function(r){r.languages.xeora=r.languages.extend("markup",{constant:{pattern:/\$(?:DomainContents|PageRenderDuration)\$/,inside:{punctuation:{pattern:/\$/}}},variable:{pattern:/\$@?(?:#+|[-+*~=^])?[\w.]+\$/,inside:{punctuation:{pattern:/[$.]/},operator:{pattern:/#+|[-+*~=^@]/}}},"function-inline":{pattern:/\$F:[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\$/,inside:{variable:{pattern:/(?:[,|])@?(?:#+|[-+*~=^])?[\w.]+/,inside:{punctuation:{pattern:/[,.|]/},operator:{pattern:/#+|[-+*~=^@]/}}},punctuation:{pattern:/\$\w:|[$:?.,|]/}},alias:"function"},"function-block":{pattern:/\$XF:\{[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\}:XF\$/,inside:{punctuation:{pattern:/[$:{}?.,|]/}},alias:"function"},"directive-inline":{pattern:/\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\/\w.]+\$/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}}},alias:"function"},"directive-block-open":{pattern:/\$\w+:\{|\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\w.]+:\{(?:![A-Z]+)?/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}},attribute:{pattern:/![A-Z]+$/,inside:{punctuation:{pattern:/!/}},alias:"keyword"}},alias:"function"},"directive-block-separator":{pattern:/\}:[-\w.]+:\{/,inside:{punctuation:{pattern:/[:{}]/}},alias:"function"},"directive-block-close":{pattern:/\}:[-\w.]+\$/,inside:{punctuation:{pattern:/[:{}$]/}},alias:"function"}}),r.languages.insertBefore("inside","punctuation",{variable:r.languages.xeora["function-inline"].inside.variable},r.languages.xeora["function-block"]),r.languages.xeoracube=r.languages.xeora})(t)}return Uh}var Gh,$A;function ooe(){if($A)return Gh;$A=1,Gh=e,e.displayName="xmlDoc",e.aliases=[];function e(t){(function(r){function n(s,l){r.languages[s]&&r.languages.insertBefore(s,"comment",{"doc-comment":l})}var a=r.languages.markup.tag,i={pattern:/\/\/\/.*/,greedy:!0,alias:"comment",inside:{tag:a}},o={pattern:/'''.*/,greedy:!0,alias:"comment",inside:{tag:a}};n("csharp",i),n("fsharp",i),n("vbnet",o)})(t)}return Gh}var zh,jA;function soe(){if(jA)return zh;jA=1,zh=e,e.displayName="xojo",e.aliases=[];function e(t){t.languages.xojo={comment:{pattern:/(?:'|\/\/|Rem\b).+/i,greedy:!0},string:{pattern:/"(?:""|[^"])*"/,greedy:!0},number:[/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,/&[bchou][a-z\d]+/i],directive:{pattern:/#(?:Else|ElseIf|Endif|If|Pragma)\b/i,alias:"property"},keyword:/\b(?:AddHandler|App|Array|As(?:signs)?|Auto|Boolean|Break|By(?:Ref|Val)|Byte|Call|Case|Catch|CFStringRef|CGFloat|Class|Color|Const|Continue|CString|Currency|CurrentMethodName|Declare|Delegate|Dim|Do(?:uble|wnTo)?|Each|Else(?:If)?|End|Enumeration|Event|Exception|Exit|Extends|False|Finally|For|Function|Get|GetTypeInfo|Global|GOTO|If|Implements|In|Inherits|Int(?:8|16|32|64|eger|erface)?|Lib|Loop|Me|Module|Next|Nil|Object|Optional|OSType|ParamArray|Private|Property|Protected|PString|Ptr|Raise(?:Event)?|ReDim|RemoveHandler|Return|Select(?:or)?|Self|Set|Shared|Short|Single|Soft|Static|Step|String|Sub|Super|Text|Then|To|True|Try|Ubound|UInt(?:8|16|32|64|eger)?|Until|Using|Var(?:iant)?|Wend|While|WindowPtr|WString)\b/i,operator:/<[=>]?|>=?|[+\-*\/\\^=]|\b(?:AddressOf|And|Ctype|IsA?|Mod|New|Not|Or|WeakAddressOf|Xor)\b/i,punctuation:/[.,;:()]/}}return zh}var qh,FA;function loe(){if(FA)return qh;FA=1,qh=e,e.displayName="xquery",e.aliases=[];function e(t){(function(r){r.languages.xquery=r.languages.extend("markup",{"xquery-comment":{pattern:/\(:[\s\S]*?:\)/,greedy:!0,alias:"comment"},string:{pattern:/(["'])(?:\1\1|(?!\1)[\s\S])*\1/,greedy:!0},extension:{pattern:/\(#.+?#\)/,alias:"symbol"},variable:/\$[-\w:]+/,axis:{pattern:/(^|[^-])(?:ancestor(?:-or-self)?|attribute|child|descendant(?:-or-self)?|following(?:-sibling)?|parent|preceding(?:-sibling)?|self)(?=::)/,lookbehind:!0,alias:"operator"},"keyword-operator":{pattern:/(^|[^:-])\b(?:and|castable as|div|eq|except|ge|gt|idiv|instance of|intersect|is|le|lt|mod|ne|or|union)\b(?=$|[^:-])/,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^:-])\b(?:as|ascending|at|base-uri|boundary-space|case|cast as|collation|construction|copy-namespaces|declare|default|descending|else|empty (?:greatest|least)|encoding|every|external|for|function|if|import|in|inherit|lax|let|map|module|namespace|no-inherit|no-preserve|option|order(?: by|ed|ing)?|preserve|return|satisfies|schema|some|stable|strict|strip|then|to|treat as|typeswitch|unordered|validate|variable|version|where|xquery)\b(?=$|[^:-])/,lookbehind:!0},function:/[\w-]+(?::[\w-]+)*(?=\s*\()/,"xquery-element":{pattern:/(element\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"tag"},"xquery-attribute":{pattern:/(attribute\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"attr-name"},builtin:{pattern:/(^|[^:-])\b(?:attribute|comment|document|element|processing-instruction|text|xs:(?:ENTITIES|ENTITY|ID|IDREFS?|NCName|NMTOKENS?|NOTATION|Name|QName|anyAtomicType|anyType|anyURI|base64Binary|boolean|byte|date|dateTime|dayTimeDuration|decimal|double|duration|float|gDay|gMonth|gMonthDay|gYear|gYearMonth|hexBinary|int|integer|language|long|negativeInteger|nonNegativeInteger|nonPositiveInteger|normalizedString|positiveInteger|short|string|time|token|unsigned(?:Byte|Int|Long|Short)|untyped(?:Atomic)?|yearMonthDuration))\b(?=$|[^:-])/,lookbehind:!0},number:/\b\d+(?:\.\d+)?(?:E[+-]?\d+)?/,operator:[/[+*=?|@]|\.\.?|:=|!=|<[=<]?|>[=>]?/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}],punctuation:/[[\](){},;:/]/}),r.languages.xquery.tag.pattern=/<\/?(?!\d)[^\s>\/=$<%]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,r.languages.xquery.tag.inside["attr-value"].pattern=/=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+)/,r.languages.xquery.tag.inside["attr-value"].inside.punctuation=/^="|"$/,r.languages.xquery.tag.inside["attr-value"].inside.expression={pattern:/\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}/,inside:r.languages.xquery,alias:"language-xquery"};var n=function(i){return typeof i=="string"?i:typeof i.content=="string"?i.content:i.content.map(n).join("")},a=function(i){for(var o=[],s=0;s0&&o[o.length-1].tagName===n(l.content[0].content[1])&&o.pop():l.content[l.content.length-1].content==="/>"||o.push({tagName:n(l.content[0].content[1]),openedBraces:0}):o.length>0&&l.type==="punctuation"&&l.content==="{"&&(!i[s+1]||i[s+1].type!=="punctuation"||i[s+1].content!=="{")&&(!i[s-1]||i[s-1].type!=="plain-text"||i[s-1].content!=="{")?o[o.length-1].openedBraces++:o.length>0&&o[o.length-1].openedBraces>0&&l.type==="punctuation"&&l.content==="}"?o[o.length-1].openedBraces--:l.type!=="comment"&&(c=!0)),(c||typeof l=="string")&&o.length>0&&o[o.length-1].openedBraces===0){var d=n(l);s0&&(typeof i[s-1]=="string"||i[s-1].type==="plain-text")&&(d=n(i[s-1])+d,i.splice(s-1,1),s--),/^\s+$/.test(d)?i[s]=d:i[s]=new r.Token("plain-text",d,null,d)}l.content&&typeof l.content!="string"&&a(l.content)}};r.hooks.add("after-tokenize",function(i){i.language==="xquery"&&a(i.tokens)})})(t)}return qh}var Hh,BA;function uoe(){if(BA)return Hh;BA=1,Hh=e,e.displayName="yang",e.aliases=[];function e(t){t.languages.yang={comment:/\/\*[\s\S]*?\*\/|\/\/.*/,string:{pattern:/"(?:[^\\"]|\\.)*"|'[^']*'/,greedy:!0},keyword:{pattern:/(^|[{};\r\n][ \t]*)[a-z_][\w.-]*/i,lookbehind:!0},namespace:{pattern:/(\s)[a-z_][\w.-]*(?=:)/i,lookbehind:!0},boolean:/\b(?:false|true)\b/,operator:/\+/,punctuation:/[{};:]/}}return Hh}var Wh,UA;function coe(){if(UA)return Wh;UA=1,Wh=e,e.displayName="zig",e.aliases=[];function e(t){(function(r){function n(d){return function(){return d}}var a=/\b(?:align|allowzero|and|anyframe|anytype|asm|async|await|break|cancel|catch|comptime|const|continue|defer|else|enum|errdefer|error|export|extern|fn|for|if|inline|linksection|nakedcc|noalias|nosuspend|null|or|orelse|packed|promise|pub|resume|return|stdcallcc|struct|suspend|switch|test|threadlocal|try|undefined|union|unreachable|usingnamespace|var|volatile|while)\b/,i="\\b(?!"+a.source+")(?!\\d)\\w+\\b",o=/align\s*\((?:[^()]|\([^()]*\))*\)/.source,s=/(?:\?|\bpromise->|(?:\[[^[\]]*\]|\*(?!\*)|\*\*)(?:\s*|\s*const\b|\s*volatile\b|\s*allowzero\b)*)/.source.replace(//g,n(o)),l=/(?:\bpromise\b|(?:\berror\.)?(?:\.)*(?!\s+))/.source.replace(//g,n(i)),c="(?!\\s)(?:!?\\s*(?:"+s+"\\s*)*"+l+")+";r.languages.zig={comment:[{pattern:/\/\/[/!].*/,alias:"doc-comment"},/\/{2}.*/],string:[{pattern:/(^|[^\\@])c?"(?:[^"\\\r\n]|\\.)*"/,lookbehind:!0,greedy:!0},{pattern:/([\r\n])([ \t]+c?\\{2}).*(?:(?:\r\n?|\n)\2.*)*/,lookbehind:!0,greedy:!0}],char:{pattern:/(^|[^\\])'(?:[^'\\\r\n]|[\uD800-\uDFFF]{2}|\\(?:.|x[a-fA-F\d]{2}|u\{[a-fA-F\d]{1,6}\}))'/,lookbehind:!0,greedy:!0},builtin:/\B@(?!\d)\w+(?=\s*\()/,label:{pattern:/(\b(?:break|continue)\s*:\s*)\w+\b|\b(?!\d)\w+\b(?=\s*:\s*(?:\{|while\b))/,lookbehind:!0},"class-name":[/\b(?!\d)\w+(?=\s*=\s*(?:(?:extern|packed)\s+)?(?:enum|struct|union)\s*[({])/,{pattern:RegExp(/(:\s*)(?=\s*(?:\s*)?[=;,)])|(?=\s*(?:\s*)?\{)/.source.replace(//g,n(c)).replace(//g,n(o))),lookbehind:!0,inside:null},{pattern:RegExp(/(\)\s*)(?=\s*(?:\s*)?;)/.source.replace(//g,n(c)).replace(//g,n(o))),lookbehind:!0,inside:null}],"builtin-type":{pattern:/\b(?:anyerror|bool|c_u?(?:int|long|longlong|short)|c_longdouble|c_void|comptime_(?:float|int)|f(?:16|32|64|128)|[iu](?:8|16|32|64|128|size)|noreturn|type|void)\b/,alias:"keyword"},keyword:a,function:/\b(?!\d)\w+(?=\s*\()/,number:/\b(?:0b[01]+|0o[0-7]+|0x[a-fA-F\d]+(?:\.[a-fA-F\d]*)?(?:[pP][+-]?[a-fA-F\d]+)?|\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)\b/,boolean:/\b(?:false|true)\b/,operator:/\.[*?]|\.{2,3}|[-=]>|\*\*|\+\+|\|\||(?:<<|>>|[-+*]%|[-+*/%^&|<>!=])=?|[?~]/,punctuation:/[.:,;(){}[\]]/},r.languages.zig["class-name"].forEach(function(d){d.inside===null&&(d.inside=r.languages.zig)})})(t)}return Wh}var L=yte,doe=L;L.register(Rte());L.register(Ite());L.register(Cte());L.register(Nte());L.register(Lte());L.register(Dte());L.register(Mte());L.register(Pte());L.register($te());L.register(jte());L.register(Fte());L.register(Bte());L.register(Ute());L.register(Gte());L.register(zte());L.register(qte());L.register(Hte());L.register(Wte());L.register(Vte());L.register(Yte());L.register(Kte());L.register(Xte());L.register(kI());L.register(RI());L.register(Zte());L.register(Jte());L.register(Qte());L.register(ere());L.register(tre());L.register(rre());L.register(nre());L.register(are());L.register(ire());L.register(ore());L.register(ca());L.register(sre());L.register(lre());L.register(ure());L.register(cre());L.register(dre());L.register(pre());L.register(fre());L.register(gre());L.register(hre());L.register(qy());L.register(mre());L.register(Mu());L.register(bre());L.register(yre());L.register(vre());L.register(Sre());L.register(Ere());L.register(xre());L.register(wre());L.register(_re());L.register(Tre());L.register(Are());L.register(Ore());L.register(kre());L.register(Rre());L.register(Ire());L.register(Cre());L.register(Nre());L.register(Lre());L.register(Dre());L.register(Mre());L.register(Pre());L.register($re());L.register(jre());L.register(Fre());L.register(Bre());L.register(Ure());L.register(Gre());L.register(zre());L.register(qre());L.register(Hre());L.register(Wre());L.register(Vre());L.register(Yre());L.register(Kre());L.register(Xre());L.register(Zre());L.register(Jre());L.register(Qre());L.register(ene());L.register(tne());L.register(rne());L.register(nne());L.register(ane());L.register(ine());L.register(one());L.register(sne());L.register(lne());L.register(une());L.register(Hy());L.register(cne());L.register(dne());L.register(pne());L.register(fne());L.register(gne());L.register(hne());L.register(mne());L.register(bne());L.register(yne());L.register(vne());L.register(Sne());L.register(Ene());L.register(xne());L.register(wne());L.register(_ne());L.register(Tne());L.register(Ane());L.register(Wy());L.register(One());L.register($u());L.register(kne());L.register(Rne());L.register(Ine());L.register(Cne());L.register(Nne());L.register(Lne());L.register(Dne());L.register(Yy());L.register(Mne());L.register(Pne());L.register($ne());L.register(CI());L.register(jne());L.register(Fne());L.register(Bne());L.register(Une());L.register(Gne());L.register(zne());L.register(qne());L.register(Hne());L.register(Wne());L.register(Vne());L.register(Yne());L.register(Kne());L.register(Xne());L.register(Zne());L.register(Jne());L.register(Qne());L.register(II());L.register(eae());L.register(tae());L.register(rae());L.register(er());L.register(nae());L.register(aae());L.register(iae());L.register(oae());L.register(sae());L.register(lae());L.register(uae());L.register(cae());L.register(dae());L.register(pae());L.register(fae());L.register(gae());L.register(hae());L.register(mae());L.register(bae());L.register(yae());L.register(vae());L.register(Sae());L.register(Eae());L.register(xae());L.register(wae());L.register(_ae());L.register(Tae());L.register(Aae());L.register(Oae());L.register(kae());L.register(Rae());L.register(Iae());L.register(Cae());L.register(Nae());L.register(Lae());L.register(Dae());L.register(ju());L.register(Mae());L.register(Pae());L.register($ae());L.register(jae());L.register(Fae());L.register(Bae());L.register(Uae());L.register(Gae());L.register(zae());L.register(qae());L.register(Hae());L.register(Wae());L.register(Vae());L.register(Yae());L.register(Kae());L.register(Xae());L.register(Zae());L.register(Jae());L.register(Qae());L.register(eie());L.register(tie());L.register(rie());L.register(nie());L.register(aie());L.register(iie());L.register(oie());L.register(sie());L.register(lie());L.register(uie());L.register(cie());L.register(Pu());L.register(die());L.register(pie());L.register(fie());L.register(gie());L.register(Ky());L.register(hie());L.register(mie());L.register(bie());L.register(yie());L.register(vie());L.register(Sie());L.register(Eie());L.register(xie());L.register(wie());L.register(_ie());L.register(Tie());L.register(Aie());L.register(zy());L.register(Oie());L.register(kie());L.register(Rie());L.register(Iie());L.register(Cie());L.register(Nie());L.register(Xy());L.register(Lie());L.register(Die());L.register(Mie());L.register(Pie());L.register($ie());L.register(jie());L.register(Fie());L.register(Bie());L.register(NI());L.register(Uie());L.register(Vy());L.register(Gie());L.register(zie());L.register(qie());L.register(Hie());L.register(Wie());L.register(Vie());L.register(LI());L.register(Yie());L.register(Kie());L.register(Xie());L.register(Zie());L.register(Jie());L.register(Qie());L.register(eoe());L.register(toe());L.register(roe());L.register(noe());L.register(aoe());L.register(ioe());L.register(ooe());L.register(soe());L.register(loe());L.register(DI());L.register(uoe());L.register(coe());const poe=ft(doe);var MI=lZ(poe,kte);MI.supportedLanguages=uZ;const foe=MI,goe={'code[class*="language-"]':{color:"#f8f8f2",background:"none",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"#f8f8f2",background:"#272822",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto",borderRadius:"0.3em"},':not(pre) > code[class*="language-"]':{background:"#272822",padding:".1em",borderRadius:".3em",whiteSpace:"normal"},comment:{color:"#8292a2"},prolog:{color:"#8292a2"},doctype:{color:"#8292a2"},cdata:{color:"#8292a2"},punctuation:{color:"#f8f8f2"},namespace:{Opacity:".7"},property:{color:"#f92672"},tag:{color:"#f92672"},constant:{color:"#f92672"},symbol:{color:"#f92672"},deleted:{color:"#f92672"},boolean:{color:"#ae81ff"},number:{color:"#ae81ff"},selector:{color:"#a6e22e"},"attr-name":{color:"#a6e22e"},string:{color:"#a6e22e"},char:{color:"#a6e22e"},builtin:{color:"#a6e22e"},inserted:{color:"#a6e22e"},operator:{color:"#f8f8f2"},entity:{color:"#f8f8f2",cursor:"help"},url:{color:"#f8f8f2"},".language-css .token.string":{color:"#f8f8f2"},".style .token.string":{color:"#f8f8f2"},variable:{color:"#f8f8f2"},atrule:{color:"#e6db74"},"attr-value":{color:"#e6db74"},function:{color:"#e6db74"},"class-name":{color:"#e6db74"},keyword:{color:"#66d9ef"},regex:{color:"#fd971f"},important:{color:"#fd971f",fontWeight:"bold"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}},hoe=()=>{var w,A,x,E,k,C,I;const e=Pt(),t=M.useRef(null),{currentPlayingAudio:r,setCurrentPlayingAudio:n}=Nt(N=>N),[a,i]=M.useState(!1),[o,s]=M.useState([]),[l,c]=M.useState(((w=e==null?void 0:e.properties)==null?void 0:w.boost)||0),d=Sb(N=>N.getIndexByType),{playingNode:p}=Bo(N=>N);M.useEffect(()=>{var N;c(((N=e==null?void 0:e.properties)==null?void 0:N.boost)||0)},[e]),M.useEffect(()=>{(async()=>{var D;if(e!=null&&e.ref_id){const j=await SM(e.ref_id,0,100,{sortBy:"sequence",includeProperties:!0,includeContent:!0,depth:1,useSubGraph:!0});if(j){const H=((D=j.edges)==null?void 0:D.filter(z=>{var W;return((W=z.properties)==null?void 0:W.sequence)!==void 0}).map(z=>{var W;return{node:z.target,sequence:(W=z.properties)==null?void 0:W.sequence}}).sort((z,W)=>z.sequence-W.sequence).map(z=>j.nodes.find(W=>W.ref_id===z.node))).filter(z=>!!z);s(H)}}})()},[e==null?void 0:e.ref_id]),M.useEffect(()=>{const N=t.current,D=()=>{n(null),i(!1)};return N&&N.addEventListener("ended",D),()=>{N&&N.removeEventListener("ended",D)}},[n,a]),M.useEffect(()=>{i(!1)},[e]);const g=()=>{r!=null&&r.current&&r.current!==t.current&&(r.current.pause(),n(null)),t.current&&(t.current.paused?(t.current.play(),n(t),i(!0)):(t.current.pause(),n(null),i(!1)))};if(!e)return null;const m=!(p!=null&&p.ref_id)&&!!((A=e.properties)!=null&&A.image_url),b=!!((x=e.properties)!=null&&x.audio_EN),v=e.properties||{},S=(E=e.properties)==null?void 0:E.source_link,O=(k=e.properties)==null?void 0:k.pubkey,_=N=>{var j;const D=d(N.node_type);return D?(j=N.properties)==null?void 0:j[D]:N.label};return h.jsxs(woe,{children:[m&&h.jsx(Soe,{children:h.jsx("img",{alt:"img_a11y",onError:N=>{N.currentTarget.src="generic_placeholder_img.png",N.currentTarget.className="default-img"},src:(C=e.properties)==null?void 0:C.image_url})}),h.jsxs(yoe,{grow:1,justify:"flex-start",pt:m?0:8,shrink:1,children:[h.jsxs(F,{ml:24,mt:20,style:{width:"fit-content",flexDirection:"row",alignItems:"center"},children:[h.jsx(ni,{type:e.node_type||""}),S&&h.jsx(Aoe,{href:`${S}${S.includes("?")?"&":"?"}open=system`,target:"_blank",children:h.jsx(vn,{})})]}),h.jsx(voe,{children:Object.entries(v).filter(([N])=>N!=="media_url"&&N!=="link"&&N!=="pubkey").map(([N,D])=>h.jsx(boe,{hasAudio:b,isPlaying:a,label:moe(N),togglePlay:g,value:N==="date"&&D?ti(D*1e3).format("MMMM Do YYYY"):D},N))}),o.length>0&&h.jsx(Ooe,{children:o.map((N,D)=>h.jsxs(U.Fragment,{children:[h.jsx(Ze,{children:_(N)}),De.replace(/_/g," ").replace(/\b\w/g,t=>t.toUpperCase()),boe=({label:e,value:t,hasAudio:r,isPlaying:n,togglePlay:a})=>{const i=t.length>140,o=Nt(s=>s.currentSearch);return!t||e==="Audio EN"||e==="Source Link"||e==="Image Url"?null:h.jsxs(h.Fragment,{children:[h.jsxs(Eoe,{className:dn("node-detail",{"node-detail__long":i}),children:[h.jsxs(Ze,{className:"node-detail__label",children:[e,e==="Text"&&r&&h.jsx(_oe,{onClick:a,children:n?h.jsx(uO,{}):h.jsx(cO,{})})]}),e!=="Frame"&&e!=="Code"?h.jsx(Ze,{className:"node-detail__value",children:qr(String(t),o)}):h.jsx(foe,{language:"javascript",style:goe,children:String(t)})]}),h.jsx(xoe,{})]})},yoe=B(F)` +]))(?:`+(/[^\s\\]/.source+'|[ ]+(?:(?![ "])|'+a+")|"+/\\[\r\n]+(?:[#;].*[\r\n]+)*(?![#;])/.source)+")*"),lookbehind:!0,greedy:!0,alias:"attr-value",inside:{comment:n,quoted:{pattern:RegExp(/(^|\s)/.source+a),lookbehind:!0,greedy:!0},punctuation:/\\$/m,boolean:{pattern:/^(?:false|no|off|on|true|yes)$/,greedy:!0}}},punctuation:/=/}})(t)}return ch}var dh,oA;function Xy(){if(oA)return dh;oA=1,dh=e,e.displayName="t4Templating",e.aliases=[];function e(t){(function(r){function n(i,o,s){return{pattern:RegExp("<#"+i+"[\\s\\S]*?#>"),alias:"block",inside:{delimiter:{pattern:RegExp("^<#"+i+"|#>$"),alias:"important"},content:{pattern:/[\s\S]+/,inside:o,alias:s}}}}function a(i){var o=r.languages[i],s="language-"+i;return{block:{pattern:/<#[\s\S]+?#>/,inside:{directive:n("@",{"attr-value":{pattern:/=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+)/,inside:{punctuation:/^=|^["']|["']$/}},keyword:/\b\w+(?=\s)/,"attr-name":/\b\w+/}),expression:n("=",o,s),"class-feature":n("\\+",o,s),standard:n("",o,s)}}}}r.languages["t4-templating"]=Object.defineProperty({},"createT4",{value:a})})(t)}return dh}var ph,sA;function Nie(){if(sA)return ph;sA=1;var e=Xy(),t=Mu();ph=r,r.displayName="t4Cs",r.aliases=[];function r(n){n.register(e),n.register(t),n.languages.t4=n.languages["t4-cs"]=n.languages["t4-templating"].createT4("csharp")}return ph}var fh,lA;function LI(){if(lA)return fh;lA=1;var e=RI();fh=t,t.displayName="vbnet",t.aliases=[];function t(r){r.register(e),r.languages.vbnet=r.languages.extend("basic",{comment:[{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},{pattern:/(^|[^\\:])'.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^"])"(?:""|[^"])*"(?!")/,lookbehind:!0,greedy:!0},keyword:/(?:\b(?:ADDHANDLER|ADDRESSOF|ALIAS|AND|ANDALSO|AS|BEEP|BLOAD|BOOLEAN|BSAVE|BYREF|BYTE|BYVAL|CALL(?: ABSOLUTE)?|CASE|CATCH|CBOOL|CBYTE|CCHAR|CDATE|CDBL|CDEC|CHAIN|CHAR|CHDIR|CINT|CLASS|CLEAR|CLNG|CLOSE|CLS|COBJ|COM|COMMON|CONST|CONTINUE|CSBYTE|CSHORT|CSNG|CSTR|CTYPE|CUINT|CULNG|CUSHORT|DATA|DATE|DECIMAL|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DEFAULT|DELEGATE|DIM|DIRECTCAST|DO|DOUBLE|ELSE|ELSEIF|END|ENUM|ENVIRON|ERASE|ERROR|EVENT|EXIT|FALSE|FIELD|FILES|FINALLY|FOR(?: EACH)?|FRIEND|FUNCTION|GET|GETTYPE|GETXMLNAMESPACE|GLOBAL|GOSUB|GOTO|HANDLES|IF|IMPLEMENTS|IMPORTS|IN|INHERITS|INPUT|INTEGER|INTERFACE|IOCTL|IS|ISNOT|KEY|KILL|LET|LIB|LIKE|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|ME|MKDIR|MOD|MODULE|MUSTINHERIT|MUSTOVERRIDE|MYBASE|MYCLASS|NAME|NAMESPACE|NARROWING|NEW|NEXT|NOT|NOTHING|NOTINHERITABLE|NOTOVERRIDABLE|OBJECT|OF|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPERATOR|OPTION(?: BASE)?|OPTIONAL|OR|ORELSE|OUT|OVERLOADS|OVERRIDABLE|OVERRIDES|PARAMARRAY|PARTIAL|POKE|PRIVATE|PROPERTY|PROTECTED|PUBLIC|PUT|RAISEEVENT|READ|READONLY|REDIM|REM|REMOVEHANDLER|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SBYTE|SELECT(?: CASE)?|SET|SHADOWS|SHARED|SHELL|SHORT|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|STRUCTURE|SUB|SWAP|SYNCLOCK|SYSTEM|THEN|THROW|TIMER|TO|TROFF|TRON|TRUE|TRY|TRYCAST|TYPE|TYPEOF|UINTEGER|ULONG|UNLOCK|UNTIL|USHORT|USING|VIEW PRINT|WAIT|WEND|WHEN|WHILE|WIDENING|WITH|WITHEVENTS|WRITE|WRITEONLY|XOR)|\B(?:#CONST|#ELSE|#ELSEIF|#END|#IF))(?:\$|\b)/i,punctuation:/[,;:(){}]/})}return fh}var gh,uA;function Lie(){if(uA)return gh;uA=1;var e=Xy(),t=LI();gh=r,r.displayName="t4Vb",r.aliases=[];function r(n){n.register(e),n.register(t),n.languages["t4-vb"]=n.languages["t4-templating"].createT4("vbnet")}return gh}var hh,cA;function DI(){if(cA)return hh;cA=1,hh=e,e.displayName="yaml",e.aliases=["yml"];function e(t){(function(r){var n=/[*&][^\s[\]{},]+/,a=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,i="(?:"+a.source+"(?:[ ]+"+n.source+")?|"+n.source+"(?:[ ]+"+a.source+")?)",o=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-])(?:[ \t]*(?:(?![#:])|:))*/.source.replace(//g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),s=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function l(c,d){d=(d||"").replace(/m/g,"")+"m";var p=/([:\-,[{]\s*(?:\s<>[ \t]+)?)(?:<>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<>/g,function(){return i}).replace(/<>/g,function(){return c});return RegExp(p,d)}r.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<>/g,function(){return i})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<>[ \t]+)?)<>(?=\s*:\s)/.source.replace(/<>/g,function(){return i}).replace(/<>/g,function(){return"(?:"+o+"|"+s+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:l(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:l(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:l(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:l(s),lookbehind:!0,greedy:!0},number:{pattern:l(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:a,important:n,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},r.languages.yml=r.languages.yaml})(t)}return hh}var mh,dA;function Die(){if(dA)return mh;dA=1;var e=DI();mh=t,t.displayName="tap",t.aliases=[];function t(r){r.register(e),r.languages.tap={fail:/not ok[^#{\n\r]*/,pass:/ok[^#{\n\r]*/,pragma:/pragma [+-][a-z]+/,bailout:/bail out!.*/i,version:/TAP version \d+/i,plan:/\b\d+\.\.\d+(?: +#.*)?/,subtest:{pattern:/# Subtest(?:: .*)?/,greedy:!0},punctuation:/[{}]/,directive:/#.*/,yamlish:{pattern:/(^[ \t]*)---[\s\S]*?[\r\n][ \t]*\.\.\.$/m,lookbehind:!0,inside:r.languages.yaml,alias:"language-yaml"}}}return mh}var bh,pA;function Mie(){if(pA)return bh;pA=1,bh=e,e.displayName="tcl",e.aliases=[];function e(t){t.languages.tcl={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},string:{pattern:/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"/,greedy:!0},variable:[{pattern:/(\$)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/,lookbehind:!0},{pattern:/(\$)\{[^}]+\}/,lookbehind:!0},{pattern:/(^[\t ]*set[ \t]+)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/m,lookbehind:!0}],function:{pattern:/(^[\t ]*proc[ \t]+)\S+/m,lookbehind:!0},builtin:[{pattern:/(^[\t ]*)(?:break|class|continue|error|eval|exit|for|foreach|if|proc|return|switch|while)\b/m,lookbehind:!0},/\b(?:else|elseif)\b/],scope:{pattern:/(^[\t ]*)(?:global|upvar|variable)\b/m,lookbehind:!0,alias:"constant"},keyword:{pattern:/(^[\t ]*|\[)(?:Safe_Base|Tcl|after|append|apply|array|auto_(?:execok|import|load|mkindex|qualify|reset)|automkindex_old|bgerror|binary|catch|cd|chan|clock|close|concat|dde|dict|encoding|eof|exec|expr|fblocked|fconfigure|fcopy|file(?:event|name)?|flush|gets|glob|history|http|incr|info|interp|join|lappend|lassign|lindex|linsert|list|llength|load|lrange|lrepeat|lreplace|lreverse|lsearch|lset|lsort|math(?:func|op)|memory|msgcat|namespace|open|package|parray|pid|pkg_mkIndex|platform|puts|pwd|re_syntax|read|refchan|regexp|registry|regsub|rename|scan|seek|set|socket|source|split|string|subst|tcl(?:_endOfWord|_findLibrary|startOf(?:Next|Previous)Word|test|vars|wordBreak(?:After|Before))|tell|time|tm|trace|unknown|unload|unset|update|uplevel|vwait)\b/m,lookbehind:!0},operator:/!=?|\*\*?|==|&&?|\|\|?|<[=<]?|>[=>]?|[-+~\/%?^]|\b(?:eq|in|ne|ni)\b/,punctuation:/[{}()\[\]]/}}return bh}var yh,fA;function Pie(){if(fA)return yh;fA=1,yh=e,e.displayName="textile",e.aliases=[];function e(t){(function(r){var n=/\([^|()\n]+\)|\[[^\]\n]+\]|\{[^}\n]+\}/.source,a=/\)|\((?![^|()\n]+\))/.source;function i(g,m){return RegExp(g.replace(//g,function(){return"(?:"+n+")"}).replace(//g,function(){return"(?:"+a+")"}),m||"")}var o={css:{pattern:/\{[^{}]+\}/,inside:{rest:r.languages.css}},"class-id":{pattern:/(\()[^()]+(?=\))/,lookbehind:!0,alias:"attr-value"},lang:{pattern:/(\[)[^\[\]]+(?=\])/,lookbehind:!0,alias:"attr-value"},punctuation:/[\\\/]\d+|\S/},s=r.languages.textile=r.languages.extend("markup",{phrase:{pattern:/(^|\r|\n)\S[\s\S]*?(?=$|\r?\n\r?\n|\r\r)/,lookbehind:!0,inside:{"block-tag":{pattern:i(/^[a-z]\w*(?:||[<>=])*\./.source),inside:{modifier:{pattern:i(/(^[a-z]\w*)(?:||[<>=])+(?=\.)/.source),lookbehind:!0,inside:o},tag:/^[a-z]\w*/,punctuation:/\.$/}},list:{pattern:i(/^[*#]+*\s+\S.*/.source,"m"),inside:{modifier:{pattern:i(/(^[*#]+)+/.source),lookbehind:!0,inside:o},punctuation:/^[*#]+/}},table:{pattern:i(/^(?:(?:||[<>=^~])+\.\s*)?(?:\|(?:(?:||[<>=^~_]|[\\/]\d+)+\.|(?!(?:||[<>=^~_]|[\\/]\d+)+\.))[^|]*)+\|/.source,"m"),inside:{modifier:{pattern:i(/(^|\|(?:\r?\n|\r)?)(?:||[<>=^~_]|[\\/]\d+)+(?=\.)/.source),lookbehind:!0,inside:o},punctuation:/\||^\./}},inline:{pattern:i(/(^|[^a-zA-Z\d])(\*\*|__|\?\?|[*_%@+\-^~])*.+?\2(?![a-zA-Z\d])/.source),lookbehind:!0,inside:{bold:{pattern:i(/(^(\*\*?)*).+?(?=\2)/.source),lookbehind:!0},italic:{pattern:i(/(^(__?)*).+?(?=\2)/.source),lookbehind:!0},cite:{pattern:i(/(^\?\?*).+?(?=\?\?)/.source),lookbehind:!0,alias:"string"},code:{pattern:i(/(^@*).+?(?=@)/.source),lookbehind:!0,alias:"keyword"},inserted:{pattern:i(/(^\+*).+?(?=\+)/.source),lookbehind:!0},deleted:{pattern:i(/(^-*).+?(?=-)/.source),lookbehind:!0},span:{pattern:i(/(^%*).+?(?=%)/.source),lookbehind:!0},modifier:{pattern:i(/(^\*\*|__|\?\?|[*_%@+\-^~])+/.source),lookbehind:!0,inside:o},punctuation:/[*_%?@+\-^~]+/}},"link-ref":{pattern:/^\[[^\]]+\]\S+$/m,inside:{string:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0},url:{pattern:/(^\])\S+$/,lookbehind:!0},punctuation:/[\[\]]/}},link:{pattern:i(/"*[^"]+":.+?(?=[^\w/]?(?:\s|$))/.source),inside:{text:{pattern:i(/(^"*)[^"]+(?=")/.source),lookbehind:!0},modifier:{pattern:i(/(^")+/.source),lookbehind:!0,inside:o},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[":]/}},image:{pattern:i(/!(?:||[<>=])*(?![<>=])[^!\s()]+(?:\([^)]+\))?!(?::.+?(?=[^\w/]?(?:\s|$)))?/.source),inside:{source:{pattern:i(/(^!(?:||[<>=])*)(?![<>=])[^!\s()]+(?:\([^)]+\))?(?=!)/.source),lookbehind:!0,alias:"url"},modifier:{pattern:i(/(^!)(?:||[<>=])+/.source),lookbehind:!0,inside:o},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[!:]/}},footnote:{pattern:/\b\[\d+\]/,alias:"comment",inside:{punctuation:/\[|\]/}},acronym:{pattern:/\b[A-Z\d]+\([^)]+\)/,inside:{comment:{pattern:/(\()[^()]+(?=\))/,lookbehind:!0},punctuation:/[()]/}},mark:{pattern:/\b\((?:C|R|TM)\)/,alias:"comment",inside:{punctuation:/[()]/}}}}}),l=s.phrase.inside,c={inline:l.inline,link:l.link,image:l.image,footnote:l.footnote,acronym:l.acronym,mark:l.mark};s.tag.pattern=/<\/?(?!\d)[a-z0-9]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/i;var d=l.inline.inside;d.bold.inside=c,d.italic.inside=c,d.inserted.inside=c,d.deleted.inside=c,d.span.inside=c;var p=l.table.inside;p.inline=c.inline,p.link=c.link,p.image=c.image,p.footnote=c.footnote,p.acronym=c.acronym,p.mark=c.mark})(t)}return yh}var vh,gA;function $ie(){if(gA)return vh;gA=1,vh=e,e.displayName="toml",e.aliases=[];function e(t){(function(r){var n=/(?:[\w-]+|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*")/.source;function a(i){return i.replace(/__/g,function(){return n})}r.languages.toml={comment:{pattern:/#.*/,greedy:!0},table:{pattern:RegExp(a(/(^[\t ]*\[\s*(?:\[\s*)?)__(?:\s*\.\s*__)*(?=\s*\])/.source),"m"),lookbehind:!0,greedy:!0,alias:"class-name"},key:{pattern:RegExp(a(/(^[\t ]*|[{,]\s*)__(?:\s*\.\s*__)*(?=\s*=)/.source),"m"),lookbehind:!0,greedy:!0,alias:"property"},string:{pattern:/"""(?:\\[\s\S]|[^\\])*?"""|'''[\s\S]*?'''|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},date:[{pattern:/\b\d{4}-\d{2}-\d{2}(?:[T\s]\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})?)?\b/i,alias:"number"},{pattern:/\b\d{2}:\d{2}:\d{2}(?:\.\d+)?\b/,alias:"number"}],number:/(?:\b0(?:x[\da-zA-Z]+(?:_[\da-zA-Z]+)*|o[0-7]+(?:_[0-7]+)*|b[10]+(?:_[10]+)*))\b|[-+]?\b\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?\b|[-+]?\b(?:inf|nan)\b/,boolean:/\b(?:false|true)\b/,punctuation:/[.,=[\]{}]/}})(t)}return vh}var Sh,hA;function jie(){if(hA)return Sh;hA=1,Sh=e,e.displayName="tremor",e.aliases=[];function e(t){(function(r){r.languages.tremor={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},"interpolated-string":null,extractor:{pattern:/\b[a-z_]\w*\|(?:[^\r\n\\|]|\\(?:\r\n|[\s\S]))*\|/i,greedy:!0,inside:{regex:{pattern:/(^re)\|[\s\S]+/,lookbehind:!0},function:/^\w+/,value:/\|[\s\S]+/}},identifier:{pattern:/`[^`]*`/,greedy:!0},function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())\b/,keyword:/\b(?:args|as|by|case|config|connect|connector|const|copy|create|default|define|deploy|drop|each|emit|end|erase|event|flow|fn|for|from|group|having|insert|into|intrinsic|let|links|match|merge|mod|move|of|operator|patch|pipeline|recur|script|select|set|sliding|state|stream|to|tumbling|update|use|when|where|window|with)\b/,boolean:/\b(?:false|null|true)\b/i,number:/\b(?:0b[01_]*|0x[0-9a-fA-F_]*|\d[\d_]*(?:\.\d[\d_]*)?(?:[Ee][+-]?[\d_]+)?)\b/,"pattern-punctuation":{pattern:/%(?=[({[])/,alias:"punctuation"},operator:/[-+*\/%~!^]=?|=[=>]?|&[&=]?|\|[|=]?|<>?>?=?|(?:absent|and|not|or|present|xor)\b/,punctuation:/::|[;\[\]()\{\},.:]/};var n=/#\{(?:[^"{}]|\{[^{}]*\}|"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*")*\}/.source;r.languages.tremor["interpolated-string"]={pattern:RegExp(/(^|[^\\])/.source+'(?:"""(?:'+/[^"\\#]|\\[\s\S]|"(?!"")|#(?!\{)/.source+"|"+n+')*"""|"(?:'+/[^"\\\r\n#]|\\(?:\r\n|[\s\S])|#(?!\{)/.source+"|"+n+')*")'),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:RegExp(n),inside:{punctuation:/^#\{|\}$/,expression:{pattern:/[\s\S]+/,inside:r.languages.tremor}}},string:/[\s\S]+/}},r.languages.troy=r.languages.tremor,r.languages.trickle=r.languages.tremor})(t)}return Sh}var Eh,mA;function Fie(){if(mA)return Eh;mA=1;var e=CI(),t=Vy();Eh=r,r.displayName="tsx",r.aliases=[];function r(n){n.register(e),n.register(t),function(a){var i=a.util.clone(a.languages.typescript);a.languages.tsx=a.languages.extend("jsx",i),delete a.languages.tsx.parameter,delete a.languages.tsx["literal-property"];var o=a.languages.tsx.tag;o.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+o.pattern.source+")",o.pattern.flags),o.lookbehind=!0}(n)}return Eh}var xh,bA;function Bie(){if(bA)return xh;bA=1;var e=er();xh=t,t.displayName="tt2",t.aliases=[];function t(r){r.register(e),function(n){n.languages.tt2=n.languages.extend("clike",{comment:/#.*|\[%#[\s\S]*?%\]/,keyword:/\b(?:BLOCK|CALL|CASE|CATCH|CLEAR|DEBUG|DEFAULT|ELSE|ELSIF|END|FILTER|FINAL|FOREACH|GET|IF|IN|INCLUDE|INSERT|LAST|MACRO|META|NEXT|PERL|PROCESS|RAWPERL|RETURN|SET|STOP|SWITCH|TAGS|THROW|TRY|UNLESS|USE|WHILE|WRAPPER)\b/,punctuation:/[[\]{},()]/}),n.languages.insertBefore("tt2","number",{operator:/=[>=]?|!=?|<=?|>=?|&&|\|\|?|\b(?:and|not|or)\b/,variable:{pattern:/\b[a-z]\w*(?:\s*\.\s*(?:\d+|\$?[a-z]\w*))*\b/i}}),n.languages.insertBefore("tt2","keyword",{delimiter:{pattern:/^(?:\[%|%%)-?|-?%\]$/,alias:"punctuation"}}),n.languages.insertBefore("tt2","string",{"single-quoted-string":{pattern:/'[^\\']*(?:\\[\s\S][^\\']*)*'/,greedy:!0,alias:"string"},"double-quoted-string":{pattern:/"[^\\"]*(?:\\[\s\S][^\\"]*)*"/,greedy:!0,alias:"string",inside:{variable:{pattern:/\$(?:[a-z]\w*(?:\.(?:\d+|\$?[a-z]\w*))*)/i}}}}),delete n.languages.tt2.string,n.hooks.add("before-tokenize",function(a){var i=/\[%[\s\S]+?%\]/g;n.languages["markup-templating"].buildPlaceholders(a,"tt2",i)}),n.hooks.add("after-tokenize",function(a){n.languages["markup-templating"].tokenizePlaceholders(a,"tt2")})}(r)}return xh}var wh,yA;function Uie(){if(yA)return wh;yA=1;var e=er();wh=t,t.displayName="twig",t.aliases=[];function t(r){r.register(e),r.languages.twig={comment:/^\{#[\s\S]*?#\}$/,"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/}},keyword:/\b(?:even|if|odd)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/},r.hooks.add("before-tokenize",function(n){if(n.language==="twig"){var a=/\{(?:#[\s\S]*?#|%[\s\S]*?%|\{[\s\S]*?\})\}/g;r.languages["markup-templating"].buildPlaceholders(n,"twig",a)}}),r.hooks.add("after-tokenize",function(n){r.languages["markup-templating"].tokenizePlaceholders(n,"twig")})}return wh}var _h,vA;function Gie(){if(vA)return _h;vA=1,_h=e,e.displayName="typoscript",e.aliases=["tsconfig"];function e(t){(function(r){var n=/\b(?:ACT|ACTIFSUB|CARRAY|CASE|CLEARGIF|COA|COA_INT|CONSTANTS|CONTENT|CUR|EDITPANEL|EFFECT|EXT|FILE|FLUIDTEMPLATE|FORM|FRAME|FRAMESET|GIFBUILDER|GMENU|GMENU_FOLDOUT|GMENU_LAYERS|GP|HMENU|HRULER|HTML|IENV|IFSUB|IMAGE|IMGMENU|IMGMENUITEM|IMGTEXT|IMG_RESOURCE|INCLUDE_TYPOSCRIPT|JSMENU|JSMENUITEM|LLL|LOAD_REGISTER|NO|PAGE|RECORDS|RESTORE_REGISTER|TEMPLATE|TEXT|TMENU|TMENUITEM|TMENU_LAYERS|USER|USER_INT|_GIFBUILDER|global|globalString|globalVar)\b/;r.languages.typoscript={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0},{pattern:/(^|[^\\:= \t]|(?:^|[^= \t])[ \t]+)\/\/.*/,lookbehind:!0,greedy:!0},{pattern:/(^|[^"'])#.*/,lookbehind:!0,greedy:!0}],function:[{pattern://,inside:{string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,inside:{keyword:n}},keyword:{pattern:/INCLUDE_TYPOSCRIPT/}}},{pattern:/@import\s*(?:"[^"\r\n]*"|'[^'\r\n]*')/,inside:{string:/"[^"\r\n]*"|'[^'\r\n]*'/}}],string:{pattern:/^([^=]*=[< ]?)(?:(?!\]\n).)*/,lookbehind:!0,inside:{function:/\{\$.*\}/,keyword:n,number:/^\d+$/,punctuation:/[,|:]/}},keyword:n,number:{pattern:/\b\d+\s*[.{=]/,inside:{operator:/[.{=]/}},tag:{pattern:/\.?[-\w\\]+\.?/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:|]/,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/},r.languages.tsconfig=r.languages.typoscript})(t)}return _h}var Th,SA;function zie(){if(SA)return Th;SA=1,Th=e,e.displayName="unrealscript",e.aliases=["uc","uscript"];function e(t){t.languages.unrealscript={comment:/\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},category:{pattern:/(\b(?:(?:autoexpand|hide|show)categories|var)\s*\()[^()]+(?=\))/,lookbehind:!0,greedy:!0,alias:"property"},metadata:{pattern:/(\w\s*)<\s*\w+\s*=[^<>|=\r\n]+(?:\|\s*\w+\s*=[^<>|=\r\n]+)*>/,lookbehind:!0,greedy:!0,inside:{property:/\b\w+(?=\s*=)/,operator:/=/,punctuation:/[<>|]/}},macro:{pattern:/`\w+/,alias:"property"},"class-name":{pattern:/(\b(?:class|enum|extends|interface|state(?:\(\))?|struct|within)\s+)\w+/,lookbehind:!0},keyword:/\b(?:abstract|actor|array|auto|autoexpandcategories|bool|break|byte|case|class|classgroup|client|coerce|collapsecategories|config|const|continue|default|defaultproperties|delegate|dependson|deprecated|do|dontcollapsecategories|editconst|editinlinenew|else|enum|event|exec|export|extends|final|float|for|forcescriptorder|foreach|function|goto|guid|hidecategories|hidedropdown|if|ignores|implements|inherits|input|int|interface|iterator|latent|local|material|name|native|nativereplication|noexport|nontransient|noteditinlinenew|notplaceable|operator|optional|out|pawn|perobjectconfig|perobjectlocalized|placeable|postoperator|preoperator|private|protected|reliable|replication|return|server|showcategories|simulated|singular|state|static|string|struct|structdefault|structdefaultproperties|switch|texture|transient|travel|unreliable|until|var|vector|while|within)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/>>|<<|--|\+\+|\*\*|[-+*/~!=<>$@]=?|&&?|\|\|?|\^\^?|[?:%]|\b(?:ClockwiseFrom|Cross|Dot)\b/,punctuation:/[()[\]{};,.]/},t.languages.uc=t.languages.uscript=t.languages.unrealscript}return Th}var Ah,EA;function qie(){if(EA)return Ah;EA=1,Ah=e,e.displayName="uorazor",e.aliases=[];function e(t){t.languages.uorazor={"comment-hash":{pattern:/#.*/,alias:"comment",greedy:!0},"comment-slash":{pattern:/\/\/.*/,alias:"comment",greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/},greedy:!0},"source-layers":{pattern:/\b(?:arms|backpack|blue|bracelet|cancel|clear|cloak|criminal|earrings|enemy|facialhair|friend|friendly|gloves|gray|grey|ground|hair|head|innerlegs|innertorso|innocent|lefthand|middletorso|murderer|neck|nonfriendly|onehandedsecondary|outerlegs|outertorso|pants|red|righthand|ring|self|shirt|shoes|talisman|waist)\b/i,alias:"function"},"source-commands":{pattern:/\b(?:alliance|attack|cast|clearall|clearignore|clearjournal|clearlist|clearsysmsg|createlist|createtimer|dclick|dclicktype|dclickvar|dress|dressconfig|drop|droprelloc|emote|getlabel|guild|gumpclose|gumpresponse|hotkey|ignore|lasttarget|lift|lifttype|menu|menuresponse|msg|org|organize|organizer|overhead|pause|poplist|potion|promptresponse|pushlist|removelist|removetimer|rename|restock|say|scav|scavenger|script|setability|setlasttarget|setskill|settimer|setvar|sysmsg|target|targetloc|targetrelloc|targettype|undress|unignore|unsetvar|useobject|useonce|useskill|usetype|virtue|wait|waitforgump|waitformenu|waitforprompt|waitforstat|waitforsysmsg|waitfortarget|walk|wfsysmsg|wft|whisper|yell)\b/,alias:"function"},"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},function:/\b(?:atlist|close|closest|count|counter|counttype|dead|dex|diffhits|diffmana|diffstam|diffweight|find|findbuff|finddebuff|findlayer|findtype|findtypelist|followers|gumpexists|hidden|hits|hp|hue|human|humanoid|ingump|inlist|insysmessage|insysmsg|int|invul|lhandempty|list|listexists|mana|maxhits|maxhp|maxmana|maxstam|maxweight|monster|mounted|name|next|noto|paralyzed|poisoned|position|prev|previous|queued|rand|random|rhandempty|skill|stam|str|targetexists|timer|timerexists|varexist|warmode|weight)\b/,keyword:/\b(?:and|as|break|continue|else|elseif|endfor|endif|endwhile|for|if|loop|not|or|replay|stop|while)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/}}return Ah}var Oh,xA;function Hie(){if(xA)return Oh;xA=1,Oh=e,e.displayName="uri",e.aliases=["url"];function e(t){t.languages.uri={scheme:{pattern:/^[a-z][a-z0-9+.-]*:/im,greedy:!0,inside:{"scheme-delimiter":/:$/}},fragment:{pattern:/#[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"fragment-delimiter":/^#/}},query:{pattern:/\?[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"query-delimiter":{pattern:/^\?/,greedy:!0},"pair-delimiter":/[&;]/,pair:{pattern:/^[^=][\s\S]*/,inside:{key:/^[^=]+/,value:{pattern:/(^=)[\s\S]+/,lookbehind:!0}}}}},authority:{pattern:RegExp(/^\/\//.source+/(?:[\w\-.~!$&'()*+,;=%:]*@)?/.source+("(?:"+/\[(?:[0-9a-fA-F:.]{2,48}|v[0-9a-fA-F]+\.[\w\-.~!$&'()*+,;=]+)\]/.source+"|"+/[\w\-.~!$&'()*+,;=%]*/.source+")")+/(?::\d*)?/.source,"m"),inside:{"authority-delimiter":/^\/\//,"user-info-segment":{pattern:/^[\w\-.~!$&'()*+,;=%:]*@/,inside:{"user-info-delimiter":/@$/,"user-info":/^[\w\-.~!$&'()*+,;=%:]+/}},"port-segment":{pattern:/:\d*$/,inside:{"port-delimiter":/^:/,port:/^\d+/}},host:{pattern:/[\s\S]+/,inside:{"ip-literal":{pattern:/^\[[\s\S]+\]$/,inside:{"ip-literal-delimiter":/^\[|\]$/,"ipv-future":/^v[\s\S]+/,"ipv6-address":/^[\s\S]+/}},"ipv4-address":/^(?:(?:[03-9]\d?|[12]\d{0,2})\.){3}(?:[03-9]\d?|[12]\d{0,2})$/}}}},path:{pattern:/^[\w\-.~!$&'()*+,;=%:@/]+/m,inside:{"path-separator":/\//}}},t.languages.url=t.languages.uri}return Oh}var kh,wA;function Wie(){if(wA)return kh;wA=1,kh=e,e.displayName="v",e.aliases=[];function e(t){(function(r){var n={pattern:/[\s\S]+/,inside:null};r.languages.v=r.languages.extend("clike",{string:{pattern:/r?(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,alias:"quoted-string",greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[^{}]*\}|\w+(?:\.\w+(?:\([^\(\)]*\))?|\[[^\[\]]+\])*)/,lookbehind:!0,inside:{"interpolation-variable":{pattern:/^\$\w[\s\S]*$/,alias:"variable"},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},"interpolation-expression":n}}}},"class-name":{pattern:/(\b(?:enum|interface|struct|type)\s+)(?:C\.)?\w+/,lookbehind:!0},keyword:/(?:\b(?:__global|as|asm|assert|atomic|break|chan|const|continue|defer|else|embed|enum|fn|for|go(?:to)?|if|import|in|interface|is|lock|match|module|mut|none|or|pub|return|rlock|select|shared|sizeof|static|struct|type(?:of)?|union|unsafe)|\$(?:else|for|if)|#(?:flag|include))\b/,number:/\b(?:0x[a-f\d]+(?:_[a-f\d]+)*|0b[01]+(?:_[01]+)*|0o[0-7]+(?:_[0-7]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?)\b/i,operator:/~|\?|[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\.?/,builtin:/\b(?:any(?:_float|_int)?|bool|byte(?:ptr)?|charptr|f(?:32|64)|i(?:8|16|64|128|nt)|rune|size_t|string|u(?:16|32|64|128)|voidptr)\b/}),n.inside=r.languages.v,r.languages.insertBefore("v","string",{char:{pattern:/`(?:\\`|\\?[^`]{1,2})`/,alias:"rune"}}),r.languages.insertBefore("v","operator",{attribute:{pattern:/(^[\t ]*)\[(?:deprecated|direct_array_access|flag|inline|live|ref_only|typedef|unsafe_fn|windows_stdcall)\]/m,lookbehind:!0,alias:"annotation",inside:{punctuation:/[\[\]]/,keyword:/\w+/}},generic:{pattern:/<\w+>(?=\s*[\)\{])/,inside:{punctuation:/[<>]/,"class-name":/\w+/}}}),r.languages.insertBefore("v","function",{"generic-function":{pattern:/\b\w+\s*<\w+>(?=\()/,inside:{function:/^\w+/,generic:{pattern:/<\w+>/,inside:r.languages.v.generic.inside}}}})})(t)}return kh}var Rh,_A;function Vie(){if(_A)return Rh;_A=1,Rh=e,e.displayName="vala",e.aliases=[];function e(t){t.languages.vala=t.languages.extend("clike",{"class-name":[{pattern:/\b[A-Z]\w*(?:\.\w+)*\b(?=(?:\?\s+|\*?\s+\*?)\w)/,inside:{punctuation:/\./}},{pattern:/(\[)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/(\b(?:class|interface)\s+[A-Z]\w*(?:\.\w+)*\s*:\s*)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/((?:\b(?:class|enum|interface|new|struct)\s+)|(?:catch\s+\())[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}}],keyword:/\b(?:abstract|as|assert|async|base|bool|break|case|catch|char|class|const|construct|continue|default|delegate|delete|do|double|dynamic|else|ensures|enum|errordomain|extern|finally|float|for|foreach|get|if|in|inline|int|int16|int32|int64|int8|interface|internal|is|lock|long|namespace|new|null|out|override|owned|params|private|protected|public|ref|requires|return|set|short|signal|sizeof|size_t|ssize_t|static|string|struct|switch|this|throw|throws|try|typeof|uchar|uint|uint16|uint32|uint64|uint8|ulong|unichar|unowned|ushort|using|value|var|virtual|void|volatile|weak|while|yield)\b/i,function:/\b\w+(?=\s*\()/,number:/(?:\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?:f|u?l?)?/i,operator:/\+\+|--|&&|\|\||<<=?|>>=?|=>|->|~|[+\-*\/%&^|=!<>]=?|\?\??|\.\.\./,punctuation:/[{}[\];(),.:]/,constant:/\b[A-Z0-9_]+\b/}),t.languages.insertBefore("vala","string",{"raw-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"template-string":{pattern:/@"[\s\S]*?"/,greedy:!0,inside:{interpolation:{pattern:/\$(?:\([^)]*\)|[a-zA-Z]\w*)/,inside:{delimiter:{pattern:/^\$\(?|\)$/,alias:"punctuation"},rest:t.languages.vala}},string:/[\s\S]+/}}}),t.languages.insertBefore("vala","keyword",{regex:{pattern:/\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[imsx]{0,4}(?=\s*(?:$|[\r\n,.;})\]]))/,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:t.languages.regex},"regex-delimiter":/^\//,"regex-flags":/^[a-z]+$/}}})}return Rh}var Ih,TA;function Yie(){if(TA)return Ih;TA=1,Ih=e,e.displayName="velocity",e.aliases=[];function e(t){(function(r){r.languages.velocity=r.languages.extend("markup",{});var n={variable:{pattern:/(^|[^\\](?:\\\\)*)\$!?(?:[a-z][\w-]*(?:\([^)]*\))?(?:\.[a-z][\w-]*(?:\([^)]*\))?|\[[^\]]+\])*|\{[^}]+\})/i,lookbehind:!0,inside:{}},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},number:/\b\d+\b/,boolean:/\b(?:false|true)\b/,operator:/[=!<>]=?|[+*/%-]|&&|\|\||\.\.|\b(?:eq|g[et]|l[et]|n(?:e|ot))\b/,punctuation:/[(){}[\]:,.]/};n.variable.inside={string:n.string,function:{pattern:/([^\w-])[a-z][\w-]*(?=\()/,lookbehind:!0},number:n.number,boolean:n.boolean,punctuation:n.punctuation},r.languages.insertBefore("velocity","comment",{unparsed:{pattern:/(^|[^\\])#\[\[[\s\S]*?\]\]#/,lookbehind:!0,greedy:!0,inside:{punctuation:/^#\[\[|\]\]#$/}},"velocity-comment":[{pattern:/(^|[^\\])#\*[\s\S]*?\*#/,lookbehind:!0,greedy:!0,alias:"comment"},{pattern:/(^|[^\\])##.*/,lookbehind:!0,greedy:!0,alias:"comment"}],directive:{pattern:/(^|[^\\](?:\\\\)*)#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})(?:\s*\((?:[^()]|\([^()]*\))*\))?/i,lookbehind:!0,inside:{keyword:{pattern:/^#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})|\bin\b/,inside:{punctuation:/[{}]/}},rest:n}},variable:n.variable}),r.languages.velocity.tag.inside["attr-value"].inside.rest=r.languages.velocity})(t)}return Ih}var Ch,AA;function Kie(){if(AA)return Ch;AA=1,Ch=e,e.displayName="verilog",e.aliases=[];function e(t){t.languages.verilog={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"kernel-function":{pattern:/\B\$\w+\b/,alias:"property"},constant:/\B`\w+\b/,function:/\b\w+(?=\()/,keyword:/\b(?:alias|and|assert|assign|assume|automatic|before|begin|bind|bins|binsof|bit|break|buf|bufif0|bufif1|byte|case|casex|casez|cell|chandle|class|clocking|cmos|config|const|constraint|context|continue|cover|covergroup|coverpoint|cross|deassign|default|defparam|design|disable|dist|do|edge|else|end|endcase|endclass|endclocking|endconfig|endfunction|endgenerate|endgroup|endinterface|endmodule|endpackage|endprimitive|endprogram|endproperty|endsequence|endspecify|endtable|endtask|enum|event|expect|export|extends|extern|final|first_match|for|force|foreach|forever|fork|forkjoin|function|generate|genvar|highz0|highz1|if|iff|ifnone|ignore_bins|illegal_bins|import|incdir|include|initial|inout|input|inside|instance|int|integer|interface|intersect|join|join_any|join_none|large|liblist|library|local|localparam|logic|longint|macromodule|matches|medium|modport|module|nand|negedge|new|nmos|nor|noshowcancelled|not|notif0|notif1|null|or|output|package|packed|parameter|pmos|posedge|primitive|priority|program|property|protected|pull0|pull1|pulldown|pullup|pulsestyle_ondetect|pulsestyle_onevent|pure|rand|randc|randcase|randsequence|rcmos|real|realtime|ref|reg|release|repeat|return|rnmos|rpmos|rtran|rtranif0|rtranif1|scalared|sequence|shortint|shortreal|showcancelled|signed|small|solve|specify|specparam|static|string|strong0|strong1|struct|super|supply0|supply1|table|tagged|task|this|throughout|time|timeprecision|timeunit|tran|tranif0|tranif1|tri|tri0|tri1|triand|trior|trireg|type|typedef|union|unique|unsigned|use|uwire|var|vectored|virtual|void|wait|wait_order|wand|weak0|weak1|while|wildcard|wire|with|within|wor|xnor|xor)\b/,important:/\b(?:always|always_comb|always_ff|always_latch)\b(?: *@)?/,number:/\B##?\d+|(?:\b\d+)?'[odbh] ?[\da-fzx_?]+|\b(?:\d*[._])?\d+(?:e[-+]?\d+)?/i,operator:/[-+{}^~%*\/?=!<>&|]+/,punctuation:/[[\];(),.:]/}}return Ch}var Nh,OA;function Xie(){if(OA)return Nh;OA=1,Nh=e,e.displayName="vhdl",e.aliases=[];function e(t){t.languages.vhdl={comment:/--.+/,"vhdl-vectors":{pattern:/\b[oxb]"[\da-f_]+"|"[01uxzwlh-]+"/i,alias:"number"},"quoted-function":{pattern:/"\S+?"(?=\()/,alias:"function"},string:/"(?:[^\\"\r\n]|\\(?:\r\n|[\s\S]))*"/,constant:/\b(?:library|use)\b/i,keyword:/\b(?:'active|'ascending|'base|'delayed|'driving|'driving_value|'event|'high|'image|'instance_name|'last_active|'last_event|'last_value|'left|'leftof|'length|'low|'path_name|'pos|'pred|'quiet|'range|'reverse_range|'right|'rightof|'simple_name|'stable|'succ|'transaction|'val|'value|access|after|alias|all|architecture|array|assert|attribute|begin|block|body|buffer|bus|case|component|configuration|constant|disconnect|downto|else|elsif|end|entity|exit|file|for|function|generate|generic|group|guarded|if|impure|in|inertial|inout|is|label|library|linkage|literal|loop|map|new|next|null|of|on|open|others|out|package|port|postponed|procedure|process|pure|range|record|register|reject|report|return|select|severity|shared|signal|subtype|then|to|transport|type|unaffected|units|until|use|variable|wait|when|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\w+(?=\()/,number:/'[01uxzwlh-]'|\b(?:\d+#[\da-f_.]+#|\d[\d_.]*)(?:e[-+]?\d+)?/i,operator:/[<>]=?|:=|[-+*/&=]|\b(?:abs|and|mod|nand|nor|not|or|rem|rol|ror|sla|sll|sra|srl|xnor|xor)\b/i,punctuation:/[{}[\];(),.:]/}}return Nh}var Lh,kA;function Zie(){if(kA)return Lh;kA=1,Lh=e,e.displayName="vim",e.aliases=[];function e(t){t.languages.vim={string:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\r\n]|'')*'/,comment:/".*/,function:/\b\w+(?=\()/,keyword:/\b(?:N|Next|P|Print|X|XMLent|XMLns|ab|abbreviate|abc|abclear|abo|aboveleft|al|all|ar|arga|argadd|argd|argdelete|argdo|arge|argedit|argg|argglobal|argl|arglocal|args|argu|argument|as|ascii|b|bN|bNext|ba|bad|badd|ball|bd|bdelete|be|bel|belowright|bf|bfirst|bl|blast|bm|bmodified|bn|bnext|bo|botright|bp|bprevious|br|brea|break|breaka|breakadd|breakd|breakdel|breakl|breaklist|brewind|bro|browse|bufdo|buffer|buffers|bun|bunload|bw|bwipeout|c|cN|cNext|cNfcNfile|ca|cabbrev|cabc|cabclear|cad|caddb|caddbuffer|caddexpr|caddf|caddfile|cal|call|cat|catch|cb|cbuffer|cc|ccl|cclose|cd|ce|center|cex|cexpr|cf|cfile|cfir|cfirst|cg|cgetb|cgetbuffer|cgete|cgetexpr|cgetfile|change|changes|chd|chdir|che|checkpath|checkt|checktime|cl|cla|clast|clist|clo|close|cmapc|cmapclear|cn|cnew|cnewer|cnext|cnf|cnfile|cnorea|cnoreabbrev|co|col|colder|colo|colorscheme|comc|comclear|comp|compiler|con|conf|confirm|continue|cope|copen|copy|cp|cpf|cpfile|cprevious|cq|cquit|cr|crewind|cu|cuna|cunabbrev|cunmap|cw|cwindow|d|debugg|debuggreedy|delc|delcommand|delete|delf|delfunction|delm|delmarks|di|diffg|diffget|diffoff|diffpatch|diffpu|diffput|diffsplit|diffthis|diffu|diffupdate|dig|digraphs|display|dj|djump|dl|dlist|dr|drop|ds|dsearch|dsp|dsplit|e|earlier|echoe|echoerr|echom|echomsg|echon|edit|el|else|elsei|elseif|em|emenu|en|endf|endfo|endfor|endfun|endfunction|endif|endt|endtry|endw|endwhile|ene|enew|ex|exi|exit|exu|exusage|f|file|files|filetype|fin|fina|finally|find|fini|finish|fir|first|fix|fixdel|fo|fold|foldc|foldclose|foldd|folddoc|folddoclosed|folddoopen|foldo|foldopen|for|fu|fun|function|go|goto|gr|grep|grepa|grepadd|h|ha|hardcopy|help|helpf|helpfind|helpg|helpgrep|helpt|helptags|hid|hide|his|history|ia|iabbrev|iabc|iabclear|if|ij|ijump|il|ilist|imapc|imapclear|in|inorea|inoreabbrev|isearch|isp|isplit|iu|iuna|iunabbrev|iunmap|j|join|ju|jumps|k|kee|keepalt|keepj|keepjumps|keepmarks|l|lN|lNext|lNf|lNfile|la|lad|laddb|laddbuffer|laddexpr|laddf|laddfile|lan|language|last|later|lb|lbuffer|lc|lcd|lch|lchdir|lcl|lclose|left|lefta|leftabove|let|lex|lexpr|lf|lfile|lfir|lfirst|lg|lgetb|lgetbuffer|lgete|lgetexpr|lgetfile|lgr|lgrep|lgrepa|lgrepadd|lh|lhelpgrep|list|ll|lla|llast|lli|llist|lm|lmak|lmake|lmap|lmapc|lmapclear|ln|lne|lnew|lnewer|lnext|lnf|lnfile|lnoremap|lo|loadview|loc|lockmarks|lockv|lockvar|lol|lolder|lop|lopen|lp|lpf|lpfile|lprevious|lr|lrewind|ls|lt|ltag|lu|lunmap|lv|lvimgrep|lvimgrepa|lvimgrepadd|lw|lwindow|m|ma|mak|make|mark|marks|mat|match|menut|menutranslate|mk|mkexrc|mks|mksession|mksp|mkspell|mkv|mkvie|mkview|mkvimrc|mod|mode|move|mz|mzf|mzfile|mzscheme|n|nbkey|new|next|nmapc|nmapclear|noh|nohlsearch|norea|noreabbrev|nu|number|nun|nunmap|o|omapc|omapclear|on|only|open|opt|options|ou|ounmap|p|pc|pclose|pe|ped|pedit|perl|perld|perldo|po|pop|popu|popup|pp|ppop|pre|preserve|prev|previous|print|prof|profd|profdel|profile|promptf|promptfind|promptr|promptrepl|ps|psearch|ptN|ptNext|pta|ptag|ptf|ptfirst|ptj|ptjump|ptl|ptlast|ptn|ptnext|ptp|ptprevious|ptr|ptrewind|pts|ptselect|pu|put|pw|pwd|py|pyf|pyfile|python|q|qa|qall|quit|quita|quitall|r|read|rec|recover|red|redi|redir|redo|redr|redraw|redraws|redrawstatus|reg|registers|res|resize|ret|retab|retu|return|rew|rewind|ri|right|rightb|rightbelow|ru|rub|ruby|rubyd|rubydo|rubyf|rubyfile|runtime|rv|rviminfo|sN|sNext|sa|sal|sall|san|sandbox|sargument|sav|saveas|sb|sbN|sbNext|sba|sball|sbf|sbfirst|sbl|sblast|sbm|sbmodified|sbn|sbnext|sbp|sbprevious|sbr|sbrewind|sbuffer|scrip|scripte|scriptencoding|scriptnames|se|set|setf|setfiletype|setg|setglobal|setl|setlocal|sf|sfind|sfir|sfirst|sh|shell|sign|sil|silent|sim|simalt|sl|sla|slast|sleep|sm|smagic|smap|smapc|smapclear|sme|smenu|sn|snext|sni|sniff|sno|snomagic|snor|snoremap|snoreme|snoremenu|so|sor|sort|source|sp|spe|spelld|spelldump|spellgood|spelli|spellinfo|spellr|spellrepall|spellu|spellundo|spellw|spellwrong|split|spr|sprevious|sre|srewind|st|sta|stag|star|startg|startgreplace|startinsert|startr|startreplace|stj|stjump|stop|stopi|stopinsert|sts|stselect|sun|sunhide|sunm|sunmap|sus|suspend|sv|sview|syncbind|t|tN|tNext|ta|tab|tabN|tabNext|tabc|tabclose|tabd|tabdo|tabe|tabedit|tabf|tabfind|tabfir|tabfirst|tabl|tablast|tabm|tabmove|tabn|tabnew|tabnext|tabo|tabonly|tabp|tabprevious|tabr|tabrewind|tabs|tag|tags|tc|tcl|tcld|tcldo|tclf|tclfile|te|tearoff|tf|tfirst|th|throw|tj|tjump|tl|tlast|tm|tmenu|tn|tnext|to|topleft|tp|tprevious|tr|trewind|try|ts|tselect|tu|tunmenu|u|una|unabbreviate|undo|undoj|undojoin|undol|undolist|unh|unhide|unlet|unlo|unlockvar|unm|unmap|up|update|ve|verb|verbose|version|vert|vertical|vi|vie|view|vim|vimgrep|vimgrepa|vimgrepadd|visual|viu|viusage|vmapc|vmapclear|vne|vnew|vs|vsplit|vu|vunmap|w|wN|wNext|wa|wall|wh|while|win|winc|wincmd|windo|winp|winpos|winsize|wn|wnext|wp|wprevious|wq|wqa|wqall|write|ws|wsverb|wv|wviminfo|x|xa|xall|xit|xm|xmap|xmapc|xmapclear|xme|xmenu|xn|xnoremap|xnoreme|xnoremenu|xu|xunmap|y|yank)\b/,builtin:/\b(?:acd|ai|akm|aleph|allowrevins|altkeymap|ambiwidth|ambw|anti|antialias|arab|arabic|arabicshape|ari|arshape|autochdir|autocmd|autoindent|autoread|autowrite|autowriteall|aw|awa|background|backspace|backup|backupcopy|backupdir|backupext|backupskip|balloondelay|ballooneval|balloonexpr|bdir|bdlay|beval|bex|bexpr|bg|bh|bin|binary|biosk|bioskey|bk|bkc|bomb|breakat|brk|browsedir|bs|bsdir|bsk|bt|bufhidden|buflisted|buftype|casemap|ccv|cdpath|cedit|cfu|ch|charconvert|ci|cin|cindent|cink|cinkeys|cino|cinoptions|cinw|cinwords|clipboard|cmdheight|cmdwinheight|cmp|cms|columns|com|comments|commentstring|compatible|complete|completefunc|completeopt|consk|conskey|copyindent|cot|cpo|cpoptions|cpt|cscopepathcomp|cscopeprg|cscopequickfix|cscopetag|cscopetagorder|cscopeverbose|cspc|csprg|csqf|cst|csto|csverb|cuc|cul|cursorcolumn|cursorline|cwh|debug|deco|def|define|delcombine|dex|dg|dict|dictionary|diff|diffexpr|diffopt|digraph|dip|dir|directory|dy|ea|ead|eadirection|eb|ed|edcompatible|ef|efm|ei|ek|enc|encoding|endofline|eol|ep|equalalways|equalprg|errorbells|errorfile|errorformat|esckeys|et|eventignore|expandtab|exrc|fcl|fcs|fdc|fde|fdi|fdl|fdls|fdm|fdn|fdo|fdt|fen|fenc|fencs|fex|ff|ffs|fileencoding|fileencodings|fileformat|fileformats|fillchars|fk|fkmap|flp|fml|fmr|foldcolumn|foldenable|foldexpr|foldignore|foldlevel|foldlevelstart|foldmarker|foldmethod|foldminlines|foldnestmax|foldtext|formatexpr|formatlistpat|formatoptions|formatprg|fp|fs|fsync|ft|gcr|gd|gdefault|gfm|gfn|gfs|gfw|ghr|gp|grepformat|grepprg|gtl|gtt|guicursor|guifont|guifontset|guifontwide|guiheadroom|guioptions|guipty|guitablabel|guitabtooltip|helpfile|helpheight|helplang|hf|hh|hi|hidden|highlight|hk|hkmap|hkmapp|hkp|hl|hlg|hls|hlsearch|ic|icon|iconstring|ignorecase|im|imactivatekey|imak|imc|imcmdline|imd|imdisable|imi|iminsert|ims|imsearch|inc|include|includeexpr|incsearch|inde|indentexpr|indentkeys|indk|inex|inf|infercase|insertmode|invacd|invai|invakm|invallowrevins|invaltkeymap|invanti|invantialias|invar|invarab|invarabic|invarabicshape|invari|invarshape|invautochdir|invautoindent|invautoread|invautowrite|invautowriteall|invaw|invawa|invbackup|invballooneval|invbeval|invbin|invbinary|invbiosk|invbioskey|invbk|invbl|invbomb|invbuflisted|invcf|invci|invcin|invcindent|invcompatible|invconfirm|invconsk|invconskey|invcopyindent|invcp|invcscopetag|invcscopeverbose|invcst|invcsverb|invcuc|invcul|invcursorcolumn|invcursorline|invdeco|invdelcombine|invdg|invdiff|invdigraph|invdisable|invea|inveb|inved|invedcompatible|invek|invendofline|inveol|invequalalways|inverrorbells|invesckeys|invet|invex|invexpandtab|invexrc|invfen|invfk|invfkmap|invfoldenable|invgd|invgdefault|invguipty|invhid|invhidden|invhk|invhkmap|invhkmapp|invhkp|invhls|invhlsearch|invic|invicon|invignorecase|invim|invimc|invimcmdline|invimd|invincsearch|invinf|invinfercase|invinsertmode|invis|invjoinspaces|invjs|invlazyredraw|invlbr|invlinebreak|invlisp|invlist|invloadplugins|invlpl|invlz|invma|invmacatsui|invmagic|invmh|invml|invmod|invmodeline|invmodifiable|invmodified|invmore|invmousef|invmousefocus|invmousehide|invnu|invnumber|invodev|invopendevice|invpaste|invpi|invpreserveindent|invpreviewwindow|invprompt|invpvw|invreadonly|invremap|invrestorescreen|invrevins|invri|invrightleft|invrightleftcmd|invrl|invrlc|invro|invrs|invru|invruler|invsb|invsc|invscb|invscrollbind|invscs|invsecure|invsft|invshellslash|invshelltemp|invshiftround|invshortname|invshowcmd|invshowfulltag|invshowmatch|invshowmode|invsi|invsm|invsmartcase|invsmartindent|invsmarttab|invsmd|invsn|invsol|invspell|invsplitbelow|invsplitright|invspr|invsr|invssl|invsta|invstartofline|invstmp|invswapfile|invswf|invta|invtagbsearch|invtagrelative|invtagstack|invtbi|invtbidi|invtbs|invtermbidi|invterse|invtextauto|invtextmode|invtf|invtgst|invtildeop|invtimeout|invtitle|invto|invtop|invtr|invttimeout|invttybuiltin|invttyfast|invtx|invvb|invvisualbell|invwa|invwarn|invwb|invweirdinvert|invwfh|invwfw|invwildmenu|invwinfixheight|invwinfixwidth|invwiv|invwmnu|invwrap|invwrapscan|invwrite|invwriteany|invwritebackup|invws|isf|isfname|isi|isident|isk|iskeyword|isprint|joinspaces|js|key|keymap|keymodel|keywordprg|km|kmp|kp|langmap|langmenu|laststatus|lazyredraw|lbr|lcs|linebreak|lines|linespace|lisp|lispwords|listchars|loadplugins|lpl|lsp|lz|macatsui|magic|makeef|makeprg|matchpairs|matchtime|maxcombine|maxfuncdepth|maxmapdepth|maxmem|maxmempattern|maxmemtot|mco|mef|menuitems|mfd|mh|mis|mkspellmem|ml|mls|mm|mmd|mmp|mmt|modeline|modelines|modifiable|modified|more|mouse|mousef|mousefocus|mousehide|mousem|mousemodel|mouses|mouseshape|mouset|mousetime|mp|mps|msm|mzq|mzquantum|nf|noacd|noai|noakm|noallowrevins|noaltkeymap|noanti|noantialias|noar|noarab|noarabic|noarabicshape|noari|noarshape|noautochdir|noautoindent|noautoread|noautowrite|noautowriteall|noaw|noawa|nobackup|noballooneval|nobeval|nobin|nobinary|nobiosk|nobioskey|nobk|nobl|nobomb|nobuflisted|nocf|noci|nocin|nocindent|nocompatible|noconfirm|noconsk|noconskey|nocopyindent|nocp|nocscopetag|nocscopeverbose|nocst|nocsverb|nocuc|nocul|nocursorcolumn|nocursorline|nodeco|nodelcombine|nodg|nodiff|nodigraph|nodisable|noea|noeb|noed|noedcompatible|noek|noendofline|noeol|noequalalways|noerrorbells|noesckeys|noet|noex|noexpandtab|noexrc|nofen|nofk|nofkmap|nofoldenable|nogd|nogdefault|noguipty|nohid|nohidden|nohk|nohkmap|nohkmapp|nohkp|nohls|noic|noicon|noignorecase|noim|noimc|noimcmdline|noimd|noincsearch|noinf|noinfercase|noinsertmode|nois|nojoinspaces|nojs|nolazyredraw|nolbr|nolinebreak|nolisp|nolist|noloadplugins|nolpl|nolz|noma|nomacatsui|nomagic|nomh|noml|nomod|nomodeline|nomodifiable|nomodified|nomore|nomousef|nomousefocus|nomousehide|nonu|nonumber|noodev|noopendevice|nopaste|nopi|nopreserveindent|nopreviewwindow|noprompt|nopvw|noreadonly|noremap|norestorescreen|norevins|nori|norightleft|norightleftcmd|norl|norlc|noro|nors|noru|noruler|nosb|nosc|noscb|noscrollbind|noscs|nosecure|nosft|noshellslash|noshelltemp|noshiftround|noshortname|noshowcmd|noshowfulltag|noshowmatch|noshowmode|nosi|nosm|nosmartcase|nosmartindent|nosmarttab|nosmd|nosn|nosol|nospell|nosplitbelow|nosplitright|nospr|nosr|nossl|nosta|nostartofline|nostmp|noswapfile|noswf|nota|notagbsearch|notagrelative|notagstack|notbi|notbidi|notbs|notermbidi|noterse|notextauto|notextmode|notf|notgst|notildeop|notimeout|notitle|noto|notop|notr|nottimeout|nottybuiltin|nottyfast|notx|novb|novisualbell|nowa|nowarn|nowb|noweirdinvert|nowfh|nowfw|nowildmenu|nowinfixheight|nowinfixwidth|nowiv|nowmnu|nowrap|nowrapscan|nowrite|nowriteany|nowritebackup|nows|nrformats|numberwidth|nuw|odev|oft|ofu|omnifunc|opendevice|operatorfunc|opfunc|osfiletype|pa|para|paragraphs|paste|pastetoggle|patchexpr|patchmode|path|pdev|penc|pex|pexpr|pfn|ph|pheader|pi|pm|pmbcs|pmbfn|popt|preserveindent|previewheight|previewwindow|printdevice|printencoding|printexpr|printfont|printheader|printmbcharset|printmbfont|printoptions|prompt|pt|pumheight|pvh|pvw|qe|quoteescape|readonly|remap|report|restorescreen|revins|rightleft|rightleftcmd|rl|rlc|ro|rs|rtp|ruf|ruler|rulerformat|runtimepath|sbo|sc|scb|scr|scroll|scrollbind|scrolljump|scrolloff|scrollopt|scs|sect|sections|secure|sel|selection|selectmode|sessionoptions|sft|shcf|shellcmdflag|shellpipe|shellquote|shellredir|shellslash|shelltemp|shelltype|shellxquote|shiftround|shiftwidth|shm|shortmess|shortname|showbreak|showcmd|showfulltag|showmatch|showmode|showtabline|shq|si|sidescroll|sidescrolloff|siso|sj|slm|smartcase|smartindent|smarttab|smc|smd|softtabstop|sol|spc|spell|spellcapcheck|spellfile|spelllang|spellsuggest|spf|spl|splitbelow|splitright|sps|sr|srr|ss|ssl|ssop|stal|startofline|statusline|stl|stmp|su|sua|suffixes|suffixesadd|sw|swapfile|swapsync|swb|swf|switchbuf|sws|sxq|syn|synmaxcol|syntax|t_AB|t_AF|t_AL|t_CS|t_CV|t_Ce|t_Co|t_Cs|t_DL|t_EI|t_F1|t_F2|t_F3|t_F4|t_F5|t_F6|t_F7|t_F8|t_F9|t_IE|t_IS|t_K1|t_K3|t_K4|t_K5|t_K6|t_K7|t_K8|t_K9|t_KA|t_KB|t_KC|t_KD|t_KE|t_KF|t_KG|t_KH|t_KI|t_KJ|t_KK|t_KL|t_RI|t_RV|t_SI|t_Sb|t_Sf|t_WP|t_WS|t_ZH|t_ZR|t_al|t_bc|t_cd|t_ce|t_cl|t_cm|t_cs|t_da|t_db|t_dl|t_fs|t_k1|t_k2|t_k3|t_k4|t_k5|t_k6|t_k7|t_k8|t_k9|t_kB|t_kD|t_kI|t_kN|t_kP|t_kb|t_kd|t_ke|t_kh|t_kl|t_kr|t_ks|t_ku|t_le|t_mb|t_md|t_me|t_mr|t_ms|t_nd|t_op|t_se|t_so|t_sr|t_te|t_ti|t_ts|t_ue|t_us|t_ut|t_vb|t_ve|t_vi|t_vs|t_xs|tabline|tabpagemax|tabstop|tagbsearch|taglength|tagrelative|tagstack|tal|tb|tbi|tbidi|tbis|tbs|tenc|term|termbidi|termencoding|terse|textauto|textmode|textwidth|tgst|thesaurus|tildeop|timeout|timeoutlen|title|titlelen|titleold|titlestring|toolbar|toolbariconsize|top|tpm|tsl|tsr|ttimeout|ttimeoutlen|ttm|tty|ttybuiltin|ttyfast|ttym|ttymouse|ttyscroll|ttytype|tw|tx|uc|ul|undolevels|updatecount|updatetime|ut|vb|vbs|vdir|verbosefile|vfile|viewdir|viewoptions|viminfo|virtualedit|visualbell|vop|wak|warn|wb|wc|wcm|wd|weirdinvert|wfh|wfw|whichwrap|wi|wig|wildchar|wildcharm|wildignore|wildmenu|wildmode|wildoptions|wim|winaltkeys|window|winfixheight|winfixwidth|winheight|winminheight|winminwidth|winwidth|wiv|wiw|wm|wmh|wmnu|wmw|wop|wrap|wrapmargin|wrapscan|writeany|writebackup|writedelay|ww)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?)\b/i,operator:/\|\||&&|[-+.]=?|[=!](?:[=~][#?]?)?|[<>]=?[#?]?|[*\/%?]|\b(?:is(?:not)?)\b/,punctuation:/[{}[\](),;:]/}}return Lh}var Dh,RA;function Jie(){if(RA)return Dh;RA=1,Dh=e,e.displayName="visualBasic",e.aliases=[];function e(t){t.languages["visual-basic"]={comment:{pattern:/(?:['‘’]|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i,inside:{keyword:/^REM/i}},directive:{pattern:/#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:\b_[ \t]*(?:\r\n?|\n)|.)+/i,alias:"property",greedy:!0},string:{pattern:/\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,greedy:!0},date:{pattern:/#[ \t]*(?:\d+([/-])\d+\1\d+(?:[ \t]+(?:\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?))?|\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?)[ \t]*#/i,alias:"number"},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:[FRD]|U?[ILS])?/i,boolean:/\b(?:False|Nothing|True)\b/i,keyword:/\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Until|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Xor)\b/i,operator:/[+\-*/\\^<=>&#@$%!]|\b_(?=[ \t]*[\r\n])/,punctuation:/[{}().,:?]/},t.languages.vb=t.languages["visual-basic"],t.languages.vba=t.languages["visual-basic"]}return Dh}var Mh,IA;function Qie(){if(IA)return Mh;IA=1,Mh=e,e.displayName="warpscript",e.aliases=[];function e(t){t.languages.warpscript={comment:/#.*|\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'|<'(?:[^\\']|'(?!>)|\\.)*'>/,greedy:!0},variable:/\$\S+/,macro:{pattern:/@\S+/,alias:"property"},keyword:/\b(?:BREAK|CHECKMACRO|CONTINUE|CUDF|DEFINED|DEFINEDMACRO|EVAL|FAIL|FOR|FOREACH|FORSTEP|IFT|IFTE|MSGFAIL|NRETURN|RETHROW|RETURN|SWITCH|TRY|UDF|UNTIL|WHILE)\b/,number:/[+-]?\b(?:NaN|Infinity|\d+(?:\.\d*)?(?:[Ee][+-]?\d+)?|0x[\da-fA-F]+|0b[01]+)\b/,boolean:/\b(?:F|T|false|true)\b/,punctuation:/<%|%>|[{}[\]()]/,operator:/==|&&?|\|\|?|\*\*?|>>>?|<<|[<>!~]=?|[-/%^]|\+!?|\b(?:AND|NOT|OR)\b/}}return Mh}var Ph,CA;function eoe(){if(CA)return Ph;CA=1,Ph=e,e.displayName="wasm",e.aliases=[];function e(t){t.languages.wasm={comment:[/\(;[\s\S]*?;\)/,{pattern:/;;.*/,greedy:!0}],string:{pattern:/"(?:\\[\s\S]|[^"\\])*"/,greedy:!0},keyword:[{pattern:/\b(?:align|offset)=/,inside:{operator:/=/}},{pattern:/\b(?:(?:f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|neg?|nearest|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|sqrt|store(?:8|16|32)?|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))?|memory\.(?:grow|size))\b/,inside:{punctuation:/\./}},/\b(?:anyfunc|block|br(?:_if|_table)?|call(?:_indirect)?|data|drop|elem|else|end|export|func|get_(?:global|local)|global|if|import|local|loop|memory|module|mut|nop|offset|param|result|return|select|set_(?:global|local)|start|table|tee_local|then|type|unreachable)\b/],variable:/\$[\w!#$%&'*+\-./:<=>?@\\^`|~]+/,number:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/,punctuation:/[()]/}}return Ph}var $h,NA;function toe(){if(NA)return $h;NA=1,$h=e,e.displayName="webIdl",e.aliases=[];function e(t){(function(r){var n=/(?:\B-|\b_|\b)[A-Za-z][\w-]*(?![\w-])/.source,a="(?:"+/\b(?:unsigned\s+)?long\s+long(?![\w-])/.source+"|"+/\b(?:unrestricted|unsigned)\s+[a-z]+(?![\w-])/.source+"|"+/(?!(?:unrestricted|unsigned)\b)/.source+n+/(?:\s*<(?:[^<>]|<[^<>]*>)*>)?/.source+")"+/(?:\s*\?)?/.source,i={};r.languages["web-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"[^"]*"/,greedy:!0},namespace:{pattern:RegExp(/(\bnamespace\s+)/.source+n),lookbehind:!0},"class-name":[{pattern:/(^|[^\w-])(?:iterable|maplike|setlike)\s*<(?:[^<>]|<[^<>]*>)*>/,lookbehind:!0,inside:i},{pattern:RegExp(/(\b(?:attribute|const|deleter|getter|optional|setter)\s+)/.source+a),lookbehind:!0,inside:i},{pattern:RegExp("("+/\bcallback\s+/.source+n+/\s*=\s*/.source+")"+a),lookbehind:!0,inside:i},{pattern:RegExp(/(\btypedef\b\s*)/.source+a),lookbehind:!0,inside:i},{pattern:RegExp(/(\b(?:callback|dictionary|enum|interface(?:\s+mixin)?)\s+)(?!(?:interface|mixin)\b)/.source+n),lookbehind:!0},{pattern:RegExp(/(:\s*)/.source+n),lookbehind:!0},RegExp(n+/(?=\s+(?:implements|includes)\b)/.source),{pattern:RegExp(/(\b(?:implements|includes)\s+)/.source+n),lookbehind:!0},{pattern:RegExp(a+"(?="+/\s*(?:\.{3}\s*)?/.source+n+/\s*[(),;=]/.source+")"),inside:i}],builtin:/\b(?:ArrayBuffer|BigInt64Array|BigUint64Array|ByteString|DOMString|DataView|Float32Array|Float64Array|FrozenArray|Int16Array|Int32Array|Int8Array|ObservableArray|Promise|USVString|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray)\b/,keyword:[/\b(?:async|attribute|callback|const|constructor|deleter|dictionary|enum|getter|implements|includes|inherit|interface|mixin|namespace|null|optional|or|partial|readonly|required|setter|static|stringifier|typedef|unrestricted)\b/,/\b(?:any|bigint|boolean|byte|double|float|iterable|long|maplike|object|octet|record|sequence|setlike|short|symbol|undefined|unsigned|void)\b/],boolean:/\b(?:false|true)\b/,number:{pattern:/(^|[^\w-])-?(?:0x[0-9a-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|NaN|Infinity)(?![\w-])/i,lookbehind:!0},operator:/\.{3}|[=:?<>-]/,punctuation:/[(){}[\].,;]/};for(var o in r.languages["web-idl"])o!=="class-name"&&(i[o]=r.languages["web-idl"][o]);r.languages.webidl=r.languages["web-idl"]})(t)}return $h}var jh,LA;function roe(){if(LA)return jh;LA=1,jh=e,e.displayName="wiki",e.aliases=[];function e(t){t.languages.wiki=t.languages.extend("markup",{"block-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,alias:"comment"},heading:{pattern:/^(=+)[^=\r\n].*?\1/m,inside:{punctuation:/^=+|=+$/,important:/.+/}},emphasis:{pattern:/('{2,5}).+?\1/,inside:{"bold-italic":{pattern:/(''''').+?(?=\1)/,lookbehind:!0,alias:["bold","italic"]},bold:{pattern:/(''')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},italic:{pattern:/('')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},punctuation:/^''+|''+$/}},hr:{pattern:/^-{4,}/m,alias:"punctuation"},url:[/ISBN +(?:97[89][ -]?)?(?:\d[ -]?){9}[\dx]\b|(?:PMID|RFC) +\d+/i,/\[\[.+?\]\]|\[.+?\]/],variable:[/__[A-Z]+__/,/\{{3}.+?\}{3}/,/\{\{.+?\}\}/],symbol:[/^#redirect/im,/~{3,5}/],"table-tag":{pattern:/((?:^|[|!])[|!])[^|\r\n]+\|(?!\|)/m,lookbehind:!0,inside:{"table-bar":{pattern:/\|$/,alias:"punctuation"},rest:t.languages.markup.tag.inside}},punctuation:/^(?:\{\||\|\}|\|-|[*#:;!|])|\|\||!!/m}),t.languages.insertBefore("wiki","tag",{nowiki:{pattern:/<(nowiki|pre|source)\b[^>]*>[\s\S]*?<\/\1>/i,inside:{tag:{pattern:/<(?:nowiki|pre|source)\b[^>]*>|<\/(?:nowiki|pre|source)>/i,inside:t.languages.markup.tag.inside}}}})}return jh}var Fh,DA;function noe(){if(DA)return Fh;DA=1,Fh=e,e.displayName="wolfram",e.aliases=["mathematica","wl","nb"];function e(t){t.languages.wolfram={comment:/\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[\s\S])*?\*\)/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:Abs|AbsArg|Accuracy|Block|Do|For|Function|If|Manipulate|Module|Nest|NestList|None|Return|Switch|Table|Which|While)\b/,context:{pattern:/\b\w+`+\w*/,alias:"class-name"},blank:{pattern:/\b\w+_\b/,alias:"regex"},"global-variable":{pattern:/\$\w+/,alias:"variable"},boolean:/\b(?:False|True)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?j?\b/i,operator:/\/\.|;|=\.|\^=|\^:=|:=|<<|>>|<\||\|>|:>|\|->|->|<-|@@@|@@|@|\/@|=!=|===|==|=|\+|-|\^|\[\/-+%=\]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},t.languages.mathematica=t.languages.wolfram,t.languages.wl=t.languages.wolfram,t.languages.nb=t.languages.wolfram}return Fh}var Bh,MA;function aoe(){if(MA)return Bh;MA=1,Bh=e,e.displayName="wren",e.aliases=[];function e(t){t.languages.wren={comment:[{pattern:/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*))*\*\/)*\*\/)*\*\//,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],"triple-quoted-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"string-literal":null,hashbang:{pattern:/^#!\/.+/,greedy:!0,alias:"comment"},attribute:{pattern:/#!?[ \t\u3000]*\w+/,alias:"keyword"},"class-name":[{pattern:/(\bclass\s+)\w+/,lookbehind:!0},/\b[A-Z][a-z\d_]*\b/],constant:/\b[A-Z][A-Z\d_]*\b/,null:{pattern:/\bnull\b/,alias:"keyword"},keyword:/\b(?:as|break|class|construct|continue|else|for|foreign|if|import|in|is|return|static|super|this|var|while)\b/,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,function:/\b[a-z_]\w*(?=\s*[({])/i,operator:/<<|>>|[=!<>]=?|&&|\|\||[-+*/%~^&|?:]|\.{2,3}/,punctuation:/[\[\](){}.,;]/},t.languages.wren["string-literal"]={pattern:/(^|[^\\"])"(?:[^\\"%]|\\[\s\S]|%(?!\()|%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\))*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\)/,lookbehind:!0,inside:{expression:{pattern:/^(%\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:t.languages.wren},"interpolation-punctuation":{pattern:/^%\(|\)$/,alias:"punctuation"}}},string:/[\s\S]+/}}}return Bh}var Uh,PA;function ioe(){if(PA)return Uh;PA=1,Uh=e,e.displayName="xeora",e.aliases=["xeoracube"];function e(t){(function(r){r.languages.xeora=r.languages.extend("markup",{constant:{pattern:/\$(?:DomainContents|PageRenderDuration)\$/,inside:{punctuation:{pattern:/\$/}}},variable:{pattern:/\$@?(?:#+|[-+*~=^])?[\w.]+\$/,inside:{punctuation:{pattern:/[$.]/},operator:{pattern:/#+|[-+*~=^@]/}}},"function-inline":{pattern:/\$F:[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\$/,inside:{variable:{pattern:/(?:[,|])@?(?:#+|[-+*~=^])?[\w.]+/,inside:{punctuation:{pattern:/[,.|]/},operator:{pattern:/#+|[-+*~=^@]/}}},punctuation:{pattern:/\$\w:|[$:?.,|]/}},alias:"function"},"function-block":{pattern:/\$XF:\{[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\}:XF\$/,inside:{punctuation:{pattern:/[$:{}?.,|]/}},alias:"function"},"directive-inline":{pattern:/\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\/\w.]+\$/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}}},alias:"function"},"directive-block-open":{pattern:/\$\w+:\{|\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\w.]+:\{(?:![A-Z]+)?/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}},attribute:{pattern:/![A-Z]+$/,inside:{punctuation:{pattern:/!/}},alias:"keyword"}},alias:"function"},"directive-block-separator":{pattern:/\}:[-\w.]+:\{/,inside:{punctuation:{pattern:/[:{}]/}},alias:"function"},"directive-block-close":{pattern:/\}:[-\w.]+\$/,inside:{punctuation:{pattern:/[:{}$]/}},alias:"function"}}),r.languages.insertBefore("inside","punctuation",{variable:r.languages.xeora["function-inline"].inside.variable},r.languages.xeora["function-block"]),r.languages.xeoracube=r.languages.xeora})(t)}return Uh}var Gh,$A;function ooe(){if($A)return Gh;$A=1,Gh=e,e.displayName="xmlDoc",e.aliases=[];function e(t){(function(r){function n(s,l){r.languages[s]&&r.languages.insertBefore(s,"comment",{"doc-comment":l})}var a=r.languages.markup.tag,i={pattern:/\/\/\/.*/,greedy:!0,alias:"comment",inside:{tag:a}},o={pattern:/'''.*/,greedy:!0,alias:"comment",inside:{tag:a}};n("csharp",i),n("fsharp",i),n("vbnet",o)})(t)}return Gh}var zh,jA;function soe(){if(jA)return zh;jA=1,zh=e,e.displayName="xojo",e.aliases=[];function e(t){t.languages.xojo={comment:{pattern:/(?:'|\/\/|Rem\b).+/i,greedy:!0},string:{pattern:/"(?:""|[^"])*"/,greedy:!0},number:[/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,/&[bchou][a-z\d]+/i],directive:{pattern:/#(?:Else|ElseIf|Endif|If|Pragma)\b/i,alias:"property"},keyword:/\b(?:AddHandler|App|Array|As(?:signs)?|Auto|Boolean|Break|By(?:Ref|Val)|Byte|Call|Case|Catch|CFStringRef|CGFloat|Class|Color|Const|Continue|CString|Currency|CurrentMethodName|Declare|Delegate|Dim|Do(?:uble|wnTo)?|Each|Else(?:If)?|End|Enumeration|Event|Exception|Exit|Extends|False|Finally|For|Function|Get|GetTypeInfo|Global|GOTO|If|Implements|In|Inherits|Int(?:8|16|32|64|eger|erface)?|Lib|Loop|Me|Module|Next|Nil|Object|Optional|OSType|ParamArray|Private|Property|Protected|PString|Ptr|Raise(?:Event)?|ReDim|RemoveHandler|Return|Select(?:or)?|Self|Set|Shared|Short|Single|Soft|Static|Step|String|Sub|Super|Text|Then|To|True|Try|Ubound|UInt(?:8|16|32|64|eger)?|Until|Using|Var(?:iant)?|Wend|While|WindowPtr|WString)\b/i,operator:/<[=>]?|>=?|[+\-*\/\\^=]|\b(?:AddressOf|And|Ctype|IsA?|Mod|New|Not|Or|WeakAddressOf|Xor)\b/i,punctuation:/[.,;:()]/}}return zh}var qh,FA;function loe(){if(FA)return qh;FA=1,qh=e,e.displayName="xquery",e.aliases=[];function e(t){(function(r){r.languages.xquery=r.languages.extend("markup",{"xquery-comment":{pattern:/\(:[\s\S]*?:\)/,greedy:!0,alias:"comment"},string:{pattern:/(["'])(?:\1\1|(?!\1)[\s\S])*\1/,greedy:!0},extension:{pattern:/\(#.+?#\)/,alias:"symbol"},variable:/\$[-\w:]+/,axis:{pattern:/(^|[^-])(?:ancestor(?:-or-self)?|attribute|child|descendant(?:-or-self)?|following(?:-sibling)?|parent|preceding(?:-sibling)?|self)(?=::)/,lookbehind:!0,alias:"operator"},"keyword-operator":{pattern:/(^|[^:-])\b(?:and|castable as|div|eq|except|ge|gt|idiv|instance of|intersect|is|le|lt|mod|ne|or|union)\b(?=$|[^:-])/,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^:-])\b(?:as|ascending|at|base-uri|boundary-space|case|cast as|collation|construction|copy-namespaces|declare|default|descending|else|empty (?:greatest|least)|encoding|every|external|for|function|if|import|in|inherit|lax|let|map|module|namespace|no-inherit|no-preserve|option|order(?: by|ed|ing)?|preserve|return|satisfies|schema|some|stable|strict|strip|then|to|treat as|typeswitch|unordered|validate|variable|version|where|xquery)\b(?=$|[^:-])/,lookbehind:!0},function:/[\w-]+(?::[\w-]+)*(?=\s*\()/,"xquery-element":{pattern:/(element\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"tag"},"xquery-attribute":{pattern:/(attribute\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"attr-name"},builtin:{pattern:/(^|[^:-])\b(?:attribute|comment|document|element|processing-instruction|text|xs:(?:ENTITIES|ENTITY|ID|IDREFS?|NCName|NMTOKENS?|NOTATION|Name|QName|anyAtomicType|anyType|anyURI|base64Binary|boolean|byte|date|dateTime|dayTimeDuration|decimal|double|duration|float|gDay|gMonth|gMonthDay|gYear|gYearMonth|hexBinary|int|integer|language|long|negativeInteger|nonNegativeInteger|nonPositiveInteger|normalizedString|positiveInteger|short|string|time|token|unsigned(?:Byte|Int|Long|Short)|untyped(?:Atomic)?|yearMonthDuration))\b(?=$|[^:-])/,lookbehind:!0},number:/\b\d+(?:\.\d+)?(?:E[+-]?\d+)?/,operator:[/[+*=?|@]|\.\.?|:=|!=|<[=<]?|>[=>]?/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}],punctuation:/[[\](){},;:/]/}),r.languages.xquery.tag.pattern=/<\/?(?!\d)[^\s>\/=$<%]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,r.languages.xquery.tag.inside["attr-value"].pattern=/=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+)/,r.languages.xquery.tag.inside["attr-value"].inside.punctuation=/^="|"$/,r.languages.xquery.tag.inside["attr-value"].inside.expression={pattern:/\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}/,inside:r.languages.xquery,alias:"language-xquery"};var n=function(i){return typeof i=="string"?i:typeof i.content=="string"?i.content:i.content.map(n).join("")},a=function(i){for(var o=[],s=0;s0&&o[o.length-1].tagName===n(l.content[0].content[1])&&o.pop():l.content[l.content.length-1].content==="/>"||o.push({tagName:n(l.content[0].content[1]),openedBraces:0}):o.length>0&&l.type==="punctuation"&&l.content==="{"&&(!i[s+1]||i[s+1].type!=="punctuation"||i[s+1].content!=="{")&&(!i[s-1]||i[s-1].type!=="plain-text"||i[s-1].content!=="{")?o[o.length-1].openedBraces++:o.length>0&&o[o.length-1].openedBraces>0&&l.type==="punctuation"&&l.content==="}"?o[o.length-1].openedBraces--:l.type!=="comment"&&(c=!0)),(c||typeof l=="string")&&o.length>0&&o[o.length-1].openedBraces===0){var d=n(l);s0&&(typeof i[s-1]=="string"||i[s-1].type==="plain-text")&&(d=n(i[s-1])+d,i.splice(s-1,1),s--),/^\s+$/.test(d)?i[s]=d:i[s]=new r.Token("plain-text",d,null,d)}l.content&&typeof l.content!="string"&&a(l.content)}};r.hooks.add("after-tokenize",function(i){i.language==="xquery"&&a(i.tokens)})})(t)}return qh}var Hh,BA;function uoe(){if(BA)return Hh;BA=1,Hh=e,e.displayName="yang",e.aliases=[];function e(t){t.languages.yang={comment:/\/\*[\s\S]*?\*\/|\/\/.*/,string:{pattern:/"(?:[^\\"]|\\.)*"|'[^']*'/,greedy:!0},keyword:{pattern:/(^|[{};\r\n][ \t]*)[a-z_][\w.-]*/i,lookbehind:!0},namespace:{pattern:/(\s)[a-z_][\w.-]*(?=:)/i,lookbehind:!0},boolean:/\b(?:false|true)\b/,operator:/\+/,punctuation:/[{};:]/}}return Hh}var Wh,UA;function coe(){if(UA)return Wh;UA=1,Wh=e,e.displayName="zig",e.aliases=[];function e(t){(function(r){function n(d){return function(){return d}}var a=/\b(?:align|allowzero|and|anyframe|anytype|asm|async|await|break|cancel|catch|comptime|const|continue|defer|else|enum|errdefer|error|export|extern|fn|for|if|inline|linksection|nakedcc|noalias|nosuspend|null|or|orelse|packed|promise|pub|resume|return|stdcallcc|struct|suspend|switch|test|threadlocal|try|undefined|union|unreachable|usingnamespace|var|volatile|while)\b/,i="\\b(?!"+a.source+")(?!\\d)\\w+\\b",o=/align\s*\((?:[^()]|\([^()]*\))*\)/.source,s=/(?:\?|\bpromise->|(?:\[[^[\]]*\]|\*(?!\*)|\*\*)(?:\s*|\s*const\b|\s*volatile\b|\s*allowzero\b)*)/.source.replace(//g,n(o)),l=/(?:\bpromise\b|(?:\berror\.)?(?:\.)*(?!\s+))/.source.replace(//g,n(i)),c="(?!\\s)(?:!?\\s*(?:"+s+"\\s*)*"+l+")+";r.languages.zig={comment:[{pattern:/\/\/[/!].*/,alias:"doc-comment"},/\/{2}.*/],string:[{pattern:/(^|[^\\@])c?"(?:[^"\\\r\n]|\\.)*"/,lookbehind:!0,greedy:!0},{pattern:/([\r\n])([ \t]+c?\\{2}).*(?:(?:\r\n?|\n)\2.*)*/,lookbehind:!0,greedy:!0}],char:{pattern:/(^|[^\\])'(?:[^'\\\r\n]|[\uD800-\uDFFF]{2}|\\(?:.|x[a-fA-F\d]{2}|u\{[a-fA-F\d]{1,6}\}))'/,lookbehind:!0,greedy:!0},builtin:/\B@(?!\d)\w+(?=\s*\()/,label:{pattern:/(\b(?:break|continue)\s*:\s*)\w+\b|\b(?!\d)\w+\b(?=\s*:\s*(?:\{|while\b))/,lookbehind:!0},"class-name":[/\b(?!\d)\w+(?=\s*=\s*(?:(?:extern|packed)\s+)?(?:enum|struct|union)\s*[({])/,{pattern:RegExp(/(:\s*)(?=\s*(?:\s*)?[=;,)])|(?=\s*(?:\s*)?\{)/.source.replace(//g,n(c)).replace(//g,n(o))),lookbehind:!0,inside:null},{pattern:RegExp(/(\)\s*)(?=\s*(?:\s*)?;)/.source.replace(//g,n(c)).replace(//g,n(o))),lookbehind:!0,inside:null}],"builtin-type":{pattern:/\b(?:anyerror|bool|c_u?(?:int|long|longlong|short)|c_longdouble|c_void|comptime_(?:float|int)|f(?:16|32|64|128)|[iu](?:8|16|32|64|128|size)|noreturn|type|void)\b/,alias:"keyword"},keyword:a,function:/\b(?!\d)\w+(?=\s*\()/,number:/\b(?:0b[01]+|0o[0-7]+|0x[a-fA-F\d]+(?:\.[a-fA-F\d]*)?(?:[pP][+-]?[a-fA-F\d]+)?|\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)\b/,boolean:/\b(?:false|true)\b/,operator:/\.[*?]|\.{2,3}|[-=]>|\*\*|\+\+|\|\||(?:<<|>>|[-+*]%|[-+*/%^&|<>!=])=?|[?~]/,punctuation:/[.:,;(){}[\]]/},r.languages.zig["class-name"].forEach(function(d){d.inside===null&&(d.inside=r.languages.zig)})})(t)}return Wh}var L=yte,doe=L;L.register(Rte());L.register(Ite());L.register(Cte());L.register(Nte());L.register(Lte());L.register(Dte());L.register(Mte());L.register(Pte());L.register($te());L.register(jte());L.register(Fte());L.register(Bte());L.register(Ute());L.register(Gte());L.register(zte());L.register(qte());L.register(Hte());L.register(Wte());L.register(Vte());L.register(Yte());L.register(Kte());L.register(Xte());L.register(kI());L.register(RI());L.register(Zte());L.register(Jte());L.register(Qte());L.register(ere());L.register(tre());L.register(rre());L.register(nre());L.register(are());L.register(ire());L.register(ore());L.register(ca());L.register(sre());L.register(lre());L.register(ure());L.register(cre());L.register(dre());L.register(pre());L.register(fre());L.register(gre());L.register(hre());L.register(qy());L.register(mre());L.register(Mu());L.register(bre());L.register(yre());L.register(vre());L.register(Sre());L.register(Ere());L.register(xre());L.register(wre());L.register(_re());L.register(Tre());L.register(Are());L.register(Ore());L.register(kre());L.register(Rre());L.register(Ire());L.register(Cre());L.register(Nre());L.register(Lre());L.register(Dre());L.register(Mre());L.register(Pre());L.register($re());L.register(jre());L.register(Fre());L.register(Bre());L.register(Ure());L.register(Gre());L.register(zre());L.register(qre());L.register(Hre());L.register(Wre());L.register(Vre());L.register(Yre());L.register(Kre());L.register(Xre());L.register(Zre());L.register(Jre());L.register(Qre());L.register(ene());L.register(tne());L.register(rne());L.register(nne());L.register(ane());L.register(ine());L.register(one());L.register(sne());L.register(lne());L.register(une());L.register(Hy());L.register(cne());L.register(dne());L.register(pne());L.register(fne());L.register(gne());L.register(hne());L.register(mne());L.register(bne());L.register(yne());L.register(vne());L.register(Sne());L.register(Ene());L.register(xne());L.register(wne());L.register(_ne());L.register(Tne());L.register(Ane());L.register(Wy());L.register(One());L.register($u());L.register(kne());L.register(Rne());L.register(Ine());L.register(Cne());L.register(Nne());L.register(Lne());L.register(Dne());L.register(Yy());L.register(Mne());L.register(Pne());L.register($ne());L.register(CI());L.register(jne());L.register(Fne());L.register(Bne());L.register(Une());L.register(Gne());L.register(zne());L.register(qne());L.register(Hne());L.register(Wne());L.register(Vne());L.register(Yne());L.register(Kne());L.register(Xne());L.register(Zne());L.register(Jne());L.register(Qne());L.register(II());L.register(eae());L.register(tae());L.register(rae());L.register(er());L.register(nae());L.register(aae());L.register(iae());L.register(oae());L.register(sae());L.register(lae());L.register(uae());L.register(cae());L.register(dae());L.register(pae());L.register(fae());L.register(gae());L.register(hae());L.register(mae());L.register(bae());L.register(yae());L.register(vae());L.register(Sae());L.register(Eae());L.register(xae());L.register(wae());L.register(_ae());L.register(Tae());L.register(Aae());L.register(Oae());L.register(kae());L.register(Rae());L.register(Iae());L.register(Cae());L.register(Nae());L.register(Lae());L.register(Dae());L.register(ju());L.register(Mae());L.register(Pae());L.register($ae());L.register(jae());L.register(Fae());L.register(Bae());L.register(Uae());L.register(Gae());L.register(zae());L.register(qae());L.register(Hae());L.register(Wae());L.register(Vae());L.register(Yae());L.register(Kae());L.register(Xae());L.register(Zae());L.register(Jae());L.register(Qae());L.register(eie());L.register(tie());L.register(rie());L.register(nie());L.register(aie());L.register(iie());L.register(oie());L.register(sie());L.register(lie());L.register(uie());L.register(cie());L.register(Pu());L.register(die());L.register(pie());L.register(fie());L.register(gie());L.register(Ky());L.register(hie());L.register(mie());L.register(bie());L.register(yie());L.register(vie());L.register(Sie());L.register(Eie());L.register(xie());L.register(wie());L.register(_ie());L.register(Tie());L.register(Aie());L.register(zy());L.register(Oie());L.register(kie());L.register(Rie());L.register(Iie());L.register(Cie());L.register(Nie());L.register(Xy());L.register(Lie());L.register(Die());L.register(Mie());L.register(Pie());L.register($ie());L.register(jie());L.register(Fie());L.register(Bie());L.register(NI());L.register(Uie());L.register(Vy());L.register(Gie());L.register(zie());L.register(qie());L.register(Hie());L.register(Wie());L.register(Vie());L.register(LI());L.register(Yie());L.register(Kie());L.register(Xie());L.register(Zie());L.register(Jie());L.register(Qie());L.register(eoe());L.register(toe());L.register(roe());L.register(noe());L.register(aoe());L.register(ioe());L.register(ooe());L.register(soe());L.register(loe());L.register(DI());L.register(uoe());L.register(coe());const poe=ft(doe);var MI=lZ(poe,kte);MI.supportedLanguages=uZ;const foe=MI,goe={'code[class*="language-"]':{color:"#f8f8f2",background:"none",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"#f8f8f2",background:"#272822",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto",borderRadius:"0.3em"},':not(pre) > code[class*="language-"]':{background:"#272822",padding:".1em",borderRadius:".3em",whiteSpace:"normal"},comment:{color:"#8292a2"},prolog:{color:"#8292a2"},doctype:{color:"#8292a2"},cdata:{color:"#8292a2"},punctuation:{color:"#f8f8f2"},namespace:{Opacity:".7"},property:{color:"#f92672"},tag:{color:"#f92672"},constant:{color:"#f92672"},symbol:{color:"#f92672"},deleted:{color:"#f92672"},boolean:{color:"#ae81ff"},number:{color:"#ae81ff"},selector:{color:"#a6e22e"},"attr-name":{color:"#a6e22e"},string:{color:"#a6e22e"},char:{color:"#a6e22e"},builtin:{color:"#a6e22e"},inserted:{color:"#a6e22e"},operator:{color:"#f8f8f2"},entity:{color:"#f8f8f2",cursor:"help"},url:{color:"#f8f8f2"},".language-css .token.string":{color:"#f8f8f2"},".style .token.string":{color:"#f8f8f2"},variable:{color:"#f8f8f2"},atrule:{color:"#e6db74"},"attr-value":{color:"#e6db74"},function:{color:"#e6db74"},"class-name":{color:"#e6db74"},keyword:{color:"#66d9ef"},regex:{color:"#fd971f"},important:{color:"#fd971f",fontWeight:"bold"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}},hoe=()=>{var w,A,x,E,k,C,I;const e=Pt(),t=M.useRef(null),{currentPlayingAudio:r,setCurrentPlayingAudio:n}=Nt(N=>N),[a,i]=M.useState(!1),[o,s]=M.useState([]),[l,c]=M.useState(((w=e==null?void 0:e.properties)==null?void 0:w.boost)||0),d=Sb(N=>N.getIndexByType),{playingNode:p}=Bo(N=>N);M.useEffect(()=>{var N;c(((N=e==null?void 0:e.properties)==null?void 0:N.boost)||0)},[e]),M.useEffect(()=>{(async()=>{var D;if(e!=null&&e.ref_id){const j=await SM(e.ref_id,0,100,{sortBy:"sequence",includeProperties:!0,includeContent:!0,depth:1,useSubGraph:!0});if(j){const H=((D=j.edges)==null?void 0:D.filter(z=>{var W;return((W=z.properties)==null?void 0:W.sequence)!==void 0}).map(z=>{var W;return{node:z.target,sequence:(W=z.properties)==null?void 0:W.sequence}}).sort((z,W)=>z.sequence-W.sequence).map(z=>j.nodes.find(W=>W.ref_id===z.node))).filter(z=>!!z);s(H)}}})()},[e==null?void 0:e.ref_id]),M.useEffect(()=>{const N=t.current,D=()=>{n(null),i(!1)};return N&&N.addEventListener("ended",D),()=>{N&&N.removeEventListener("ended",D)}},[n,a]),M.useEffect(()=>{i(!1)},[e]);const g=()=>{r!=null&&r.current&&r.current!==t.current&&(r.current.pause(),n(null)),t.current&&(t.current.paused?(t.current.play(),n(t),i(!0)):(t.current.pause(),n(null),i(!1)))};if(!e)return null;const m=!(p!=null&&p.ref_id)&&!!((A=e.properties)!=null&&A.image_url),b=!!((x=e.properties)!=null&&x.audio_EN),v=e.properties||{},S=(E=e.properties)==null?void 0:E.source_link,O=(k=e.properties)==null?void 0:k.pubkey,_=N=>{var j;const D=d(N.node_type);return D?(j=N.properties)==null?void 0:j[D]:N.label};return h.jsxs(woe,{children:[m&&h.jsx(Soe,{children:h.jsx("img",{alt:"img_a11y",onError:N=>{N.currentTarget.src="generic_placeholder_img.png",N.currentTarget.className="default-img"},src:(C=e.properties)==null?void 0:C.image_url})}),h.jsxs(yoe,{grow:1,justify:"flex-start",pt:m?0:8,shrink:1,children:[h.jsxs(F,{ml:24,mt:20,style:{width:"fit-content",flexDirection:"row",alignItems:"center"},children:[h.jsx(ni,{type:e.node_type||""}),S&&h.jsx(Aoe,{href:`${S}${S.includes("?")?"&":"?"}open=system`,target:"_blank",children:h.jsx(vn,{})})]}),h.jsx(voe,{children:Object.entries(v).filter(([N])=>N!=="media_url"&&N!=="link"&&N!=="pubkey").map(([N,D])=>h.jsx(boe,{hasAudio:b,isPlaying:a,label:moe(N),togglePlay:g,value:N==="date"&&D?ti(D*1e3).format("MMMM Do YYYY"):D},N))}),o.length>0&&h.jsx(Ooe,{children:o.map((N,D)=>h.jsxs(U.Fragment,{children:[h.jsx(Ze,{children:_(N)}),De.replace(/_/g," ").replace(/\b\w/g,t=>t.toUpperCase()),boe=({label:e,value:t,hasAudio:r,isPlaying:n,togglePlay:a})=>{const i=t.length>140,o=Nt(s=>s.currentSearch);return!t||e==="Audio EN"||e==="Source Link"||e==="Image Url"?null:h.jsxs(h.Fragment,{children:[h.jsxs(Eoe,{className:dn("node-detail",{"node-detail__long":i}),children:[h.jsxs(Ze,{className:"node-detail__label",children:[e,e==="Text"&&r&&h.jsx(_oe,{onClick:a,children:n?h.jsx(sO,{}):h.jsx(lO,{})})]}),e!=="Frame"&&e!=="Code"?h.jsx(Ze,{className:"node-detail__value",children:qr(String(t),o)}):h.jsx(foe,{language:"javascript",style:goe,children:String(t)})]}),h.jsx(xoe,{})]})},yoe=B(F)` overflow: auto; width: 100%; flex-grow: 1; @@ -1946,7 +1946,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho width: 100%; height: 1px; margin: 2px 0; -`,Roe=()=>{var s,l;const[e,t]=M.useState(!1),r=Pt(),n=!!(r!=null&&r.source_link),a=M.useRef(null),i=Nt(c=>c.currentSearch),o=c=>{c.stopPropagation(),c.currentTarget.blur(),t(!e)};return M.useEffect(()=>{var c,d;e?(c=a.current)==null||c.play():(d=a.current)==null||d.pause()},[e]),h.jsxs(F,{align:"flex-start",basis:"100%",direction:"column",grow:1,justify:"center",pt:n?62:0,shrink:1,children:[n&&h.jsxs(Ioe,{children:[h.jsx(pO,{color:P.GRAY6}),h.jsx(Loe,{children:r==null?void 0:r.source_link}),h.jsx(Coe,{href:`${r==null?void 0:r.source_link}?open=system`,onClick:c=>c.stopPropagation(),target:"_blank",children:h.jsx(vn,{})})]}),(s=r==null?void 0:r.audio)!=null&&s.length?h.jsxs(F,{justify:"flex-start",p:12,children:[h.jsx(Mt,{onClick:c=>o(c),startIcon:e?h.jsx(_b,{}):h.jsx(Tb,{}),children:e?"Pause":"Play"}),h.jsx(Doe,{ref:a,src:((l=r.audio[0])==null?void 0:l.link)||"",children:h.jsx("track",{kind:"captions"})})]}):null,h.jsx(Noe,{grow:1,justify:"flex-start",p:12,shrink:1,children:h.jsx(Ze,{color:"primaryText1",kind:"regular",children:qr((r==null?void 0:r.text)||"",i)})})]})},Ioe=B(F)` +`,Roe=()=>{var s,l;const[e,t]=M.useState(!1),r=Pt(),n=!!(r!=null&&r.source_link),a=M.useRef(null),i=Nt(c=>c.currentSearch),o=c=>{c.stopPropagation(),c.currentTarget.blur(),t(!e)};return M.useEffect(()=>{var c,d;e?(c=a.current)==null||c.play():(d=a.current)==null||d.pause()},[e]),h.jsxs(F,{align:"flex-start",basis:"100%",direction:"column",grow:1,justify:"center",pt:n?62:0,shrink:1,children:[n&&h.jsxs(Ioe,{children:[h.jsx(cO,{color:P.GRAY6}),h.jsx(Loe,{children:r==null?void 0:r.source_link}),h.jsx(Coe,{href:`${r==null?void 0:r.source_link}?open=system`,onClick:c=>c.stopPropagation(),target:"_blank",children:h.jsx(vn,{})})]}),(s=r==null?void 0:r.audio)!=null&&s.length?h.jsxs(F,{justify:"flex-start",p:12,children:[h.jsx(Mt,{onClick:c=>o(c),startIcon:e?h.jsx(wb,{}):h.jsx(_b,{}),children:e?"Pause":"Play"}),h.jsx(Doe,{ref:a,src:((l=r.audio[0])==null?void 0:l.link)||"",children:h.jsx("track",{kind:"captions"})})]}):null,h.jsx(Noe,{grow:1,justify:"flex-start",p:12,shrink:1,children:h.jsx(Ze,{color:"primaryText1",kind:"regular",children:qr((r==null?void 0:r.text)||"",i)})})]})},Ioe=B(F)` top: 0px; position: absolute; border-radius: 16px 16px 0px 0px; @@ -1984,7 +1984,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho `,Doe=B.audio` height: 0; width: 0; -`,Moe=()=>{const e=Pt(),{setPlayingNode:t}=Bo(r=>r);switch(M.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(xX,{});case"data_series":return h.jsx(EK,{});case"tribe_message":return h.jsx(yX,{});case"Tweet":return h.jsx(NX,{});case"topic":return h.jsx(CX,{});case"show":return h.jsx(IX,{});case"video":case"podcast":case"clip":case"twitter_space":return h.jsx(QR,{});case"document":return h.jsx(Roe,{});case"episode":return h.jsx(fX,{},e.ref_id);case"image":return h.jsx(bX,{});default:return h.jsx(hoe,{})}},Poe=M.memo(Moe);var $oe=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&&joe(i,r.attrs),r.text&&(i.text=""+r.text);var o="onload"in i?GA:Foe;o(i,n),i.onload||GA(i,n),a.appendChild(i)};function joe(e,t){for(var r in t)e.setAttribute(r,t[r])}function GA(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 Foe(e,t){e.onreadystatechange=function(){this.readyState!="complete"&&this.readyState!="loaded"||(this.onreadystatechange=null,t(null,e))}}var Boe=function(t){return Uoe(t)&&!Goe(t)};function Uoe(e){return!!e&&typeof e=="object"}function Goe(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||Hoe(e)}var zoe=typeof Symbol=="function"&&Symbol.for,qoe=zoe?Symbol.for("react.element"):60103;function Hoe(e){return e.$$typeof===qoe}function Woe(e){return Array.isArray(e)?[]:{}}function $o(e,t){return t.clone!==!1&&t.isMergeableObject(e)?ei(Woe(e),e,t):e}function Voe(e,t,r){return e.concat(t).map(function(n){return $o(n,r)})}function Yoe(e,t){if(!t.customMerge)return ei;var r=t.customMerge(e);return typeof r=="function"?r:ei}function Koe(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function zA(e){return Object.keys(e).concat(Koe(e))}function PI(e,t){try{return t in e}catch{return!1}}function Xoe(e,t){return PI(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function Zoe(e,t,r){var n={};return r.isMergeableObject(e)&&zA(e).forEach(function(a){n[a]=$o(e[a],r)}),zA(t).forEach(function(a){Xoe(e,a)||(PI(e,a)&&r.isMergeableObject(t[a])?n[a]=Yoe(a,r)(e[a],t[a],r):n[a]=$o(t[a],r))}),n}function ei(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||Voe,r.isMergeableObject=r.isMergeableObject||Boe,r.cloneUnlessOtherwiseSpecified=$o;var n=Array.isArray(t),a=Array.isArray(e),i=n===a;return i?n?r.arrayMerge(e,t,r):Zoe(e,t,r):$o(t,r)}ei.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(n,a){return ei(n,a,r)},{})};var Joe=ei,$I=Joe,Qoe=Object.create,Fu=Object.defineProperty,ese=Object.getOwnPropertyDescriptor,tse=Object.getOwnPropertyNames,rse=Object.getPrototypeOf,nse=Object.prototype.hasOwnProperty,ase=(e,t)=>{for(var r in t)Fu(e,r,{get:t[r],enumerable:!0})},jI=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of tse(t))!nse.call(e,a)&&a!==r&&Fu(e,a,{get:()=>t[a],enumerable:!(n=ese(t,a))||n.enumerable});return e},Zy=(e,t,r)=>(r=e!=null?Qoe(rse(e)):{},jI(t||!e||!e.__esModule?Fu(r,"default",{value:e,enumerable:!0}):r,e)),ise=e=>jI(Fu({},"__esModule",{value:!0}),e),FI={};ase(FI,{callPlayer:()=>Ese,getConfig:()=>vse,getSDK:()=>yse,isBlobUrl:()=>wse,isMediaStream:()=>xse,lazy:()=>use,omit:()=>Sse,parseEndTime:()=>hse,parseStartTime:()=>gse,queryString:()=>bse,randomString:()=>mse,supportsWebKitPresentationMode:()=>_se});var Bu=ise(FI),ose=Zy(M),sse=Zy($oe),lse=Zy($I);const use=e=>ose.default.lazy(async()=>{const t=await e();return typeof t.default=="function"?t:t.default}),cse=/[?&#](?:start|t)=([0-9hms]+)/,dse=/[?&#]end=([0-9hms]+)/,db=/(\d+)(h|m|s)/g,pse=/^\d+$/;function BI(e,t){if(e instanceof Array)return;const r=e.match(t);if(r){const n=r[1];if(n.match(db))return fse(n);if(pse.test(n))return parseInt(n)}}function fse(e){let t=0,r=db.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=db.exec(e)}return t}function gse(e){return BI(e,cse)}function hse(e){return BI(e,dse)}function mse(){return Math.random().toString(36).substr(2,5)}function bse(e){return Object.keys(e).map(t=>`${t}=${e[t]}`).join("&")}function Vh(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={},yse=function(t,r,n=null,a=()=>!0,i=sse.default){const o=Vh(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(Vh(r))}}i(t,d=>{d?(Sa[t].forEach(p=>p.reject(d)),Sa[t]=null):n||c(Vh(r))})})};function vse(e,t){return(0,lse.default)(t.config,e.config)}function Sse(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 Ese(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 xse(e){return typeof window<"u"&&typeof window.MediaStream<"u"&&e instanceof window.MediaStream}function wse(e){return/^blob:/.test(e)}function _se(e=document.createElement("video")){const t=/iPhone|iPod/.test(navigator.userAgent)===!1;return e.webkitSupportsPresentationMode&&typeof e.webkitSetPresentationMode=="function"&&t}var Jy=Object.defineProperty,Tse=Object.getOwnPropertyDescriptor,Ase=Object.getOwnPropertyNames,Ose=Object.prototype.hasOwnProperty,kse=(e,t)=>{for(var r in t)Jy(e,r,{get:t[r],enumerable:!0})},Rse=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Ase(t))!Ose.call(e,a)&&a!==r&&Jy(e,a,{get:()=>t[a],enumerable:!(n=Tse(t,a))||n.enumerable});return e},Ise=e=>Rse(Jy({},"__esModule",{value:!0}),e),UI={};kse(UI,{AUDIO_EXTENSIONS:()=>Qy,DASH_EXTENSIONS:()=>eC,FLV_EXTENSIONS:()=>tC,HLS_EXTENSIONS:()=>tv,MATCH_URL_DAILYMOTION:()=>XI,MATCH_URL_FACEBOOK:()=>qI,MATCH_URL_FACEBOOK_WATCH:()=>HI,MATCH_URL_KALTURA:()=>QI,MATCH_URL_MIXCLOUD:()=>ZI,MATCH_URL_SOUNDCLOUD:()=>GI,MATCH_URL_STREAMABLE:()=>WI,MATCH_URL_TWITCH_CHANNEL:()=>KI,MATCH_URL_TWITCH_VIDEO:()=>YI,MATCH_URL_VIDYARD:()=>JI,MATCH_URL_VIMEO:()=>zI,MATCH_URL_WISTIA:()=>VI,MATCH_URL_YOUTUBE:()=>pb,VIDEO_EXTENSIONS:()=>ev,canPlay:()=>Nse});var Cse=Ise(UI),qA=Bu;const pb=/(?:youtu\.be\/|youtube(?:-nocookie|education)?\.com\/(?:embed\/|v\/|watch\/|watch\?v=|watch\?.+&v=|shorts\/|live\/))((\w|-){11})|youtube\.com\/playlist\?list=|youtube\.com\/user\//,GI=/(?:soundcloud\.com|snd\.sc)\/[^.]+$/,zI=/vimeo\.com\/(?!progressive_redirect).+/,qI=/^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/,HI=/^https?:\/\/fb\.watch\/.+$/,WI=/streamable\.com\/([a-z0-9]+)$/,VI=/(?:wistia\.(?:com|net)|wi\.st)\/(?:medias|embed)\/(?:iframe\/)?([^?]+)/,YI=/(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/,KI=/(?:www\.|go\.)?twitch\.tv\/([a-zA-Z0-9_]+)($|\?)/,XI=/^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?(?:[\w.#_-]+)?/,ZI=/mixcloud\.com\/([^/]+\/[^/]+)/,JI=/vidyard.com\/(?:watch\/)?([a-zA-Z0-9-_]+)/,QI=/^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-_].*)$/,Qy=/\.(m4a|m4b|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i,ev=/\.(mp4|og[gv]|webm|mov|m4v)(#t=[,\d+]+)?($|\?)/i,tv=/\.(m3u8)($|\?)/i,eC=/\.(mpd)($|\?)/i,tC=/\.(flv)($|\?)/i,fb=e=>{if(e instanceof Array){for(const t of e)if(typeof t=="string"&&fb(t)||fb(t.src))return!0;return!1}return(0,qA.isMediaStream)(e)||(0,qA.isBlobUrl)(e)?!0:Qy.test(e)||ev.test(e)||tv.test(e)||eC.test(e)||tC.test(e)},Nse={youtube:e=>e instanceof Array?e.every(t=>pb.test(t)):pb.test(e),soundcloud:e=>GI.test(e)&&!Qy.test(e),vimeo:e=>zI.test(e)&&!ev.test(e)&&!tv.test(e),facebook:e=>qI.test(e)||HI.test(e),streamable:e=>WI.test(e),wistia:e=>VI.test(e),twitch:e=>YI.test(e)||KI.test(e),dailymotion:e=>XI.test(e),mixcloud:e=>ZI.test(e),vidyard:e=>JI.test(e),kaltura:e=>QI.test(e),file:fb};var rv=Object.defineProperty,Lse=Object.getOwnPropertyDescriptor,Dse=Object.getOwnPropertyNames,Mse=Object.prototype.hasOwnProperty,Pse=(e,t)=>{for(var r in t)rv(e,r,{get:t[r],enumerable:!0})},$se=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Dse(t))!Mse.call(e,a)&&a!==r&&rv(e,a,{get:()=>t[a],enumerable:!(n=Lse(t,a))||n.enumerable});return e},jse=e=>$se(rv({},"__esModule",{value:!0}),e),rC={};Pse(rC,{default:()=>Bse});var Fse=jse(rC),ar=Bu,Zt=Cse,Bse=[{key:"youtube",name:"YouTube",canPlay:Zt.canPlay.youtube,lazyPlayer:(0,ar.lazy)(()=>ir(()=>import("./YouTube-7562d82d.js").then(e=>e.Y),["assets/YouTube-7562d82d.js","assets/index-1d805415.js","assets/index-b4d03b7b.css"]))},{key:"soundcloud",name:"SoundCloud",canPlay:Zt.canPlay.soundcloud,lazyPlayer:(0,ar.lazy)(()=>ir(()=>import("./SoundCloud-059442ac.js").then(e=>e.S),["assets/SoundCloud-059442ac.js","assets/index-1d805415.js","assets/index-b4d03b7b.css"]))},{key:"vimeo",name:"Vimeo",canPlay:Zt.canPlay.vimeo,lazyPlayer:(0,ar.lazy)(()=>ir(()=>import("./Vimeo-80d3d98e.js").then(e=>e.V),["assets/Vimeo-80d3d98e.js","assets/index-1d805415.js","assets/index-b4d03b7b.css"]))},{key:"facebook",name:"Facebook",canPlay:Zt.canPlay.facebook,lazyPlayer:(0,ar.lazy)(()=>ir(()=>import("./Facebook-6501d9fa.js").then(e=>e.F),["assets/Facebook-6501d9fa.js","assets/index-1d805415.js","assets/index-b4d03b7b.css"]))},{key:"streamable",name:"Streamable",canPlay:Zt.canPlay.streamable,lazyPlayer:(0,ar.lazy)(()=>ir(()=>import("./Streamable-77cccbf9.js").then(e=>e.S),["assets/Streamable-77cccbf9.js","assets/index-1d805415.js","assets/index-b4d03b7b.css"]))},{key:"wistia",name:"Wistia",canPlay:Zt.canPlay.wistia,lazyPlayer:(0,ar.lazy)(()=>ir(()=>import("./Wistia-0ff1df4a.js").then(e=>e.W),["assets/Wistia-0ff1df4a.js","assets/index-1d805415.js","assets/index-b4d03b7b.css"]))},{key:"twitch",name:"Twitch",canPlay:Zt.canPlay.twitch,lazyPlayer:(0,ar.lazy)(()=>ir(()=>import("./Twitch-1ae089b5.js").then(e=>e.T),["assets/Twitch-1ae089b5.js","assets/index-1d805415.js","assets/index-b4d03b7b.css"]))},{key:"dailymotion",name:"DailyMotion",canPlay:Zt.canPlay.dailymotion,lazyPlayer:(0,ar.lazy)(()=>ir(()=>import("./DailyMotion-2b8db985.js").then(e=>e.D),["assets/DailyMotion-2b8db985.js","assets/index-1d805415.js","assets/index-b4d03b7b.css"]))},{key:"mixcloud",name:"Mixcloud",canPlay:Zt.canPlay.mixcloud,lazyPlayer:(0,ar.lazy)(()=>ir(()=>import("./Mixcloud-d3d3f708.js").then(e=>e.M),["assets/Mixcloud-d3d3f708.js","assets/index-1d805415.js","assets/index-b4d03b7b.css"]))},{key:"vidyard",name:"Vidyard",canPlay:Zt.canPlay.vidyard,lazyPlayer:(0,ar.lazy)(()=>ir(()=>import("./Vidyard-f4d3294e.js").then(e=>e.V),["assets/Vidyard-f4d3294e.js","assets/index-1d805415.js","assets/index-b4d03b7b.css"]))},{key:"kaltura",name:"Kaltura",canPlay:Zt.canPlay.kaltura,lazyPlayer:(0,ar.lazy)(()=>ir(()=>import("./Kaltura-7b327c6c.js").then(e=>e.K),["assets/Kaltura-7b327c6c.js","assets/index-1d805415.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-1c5633fd.js").then(e=>e.F),["assets/FilePlayer-1c5633fd.js","assets/index-1d805415.js","assets/index-b4d03b7b.css"]))}],HA=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function Use(e,t){return!!(e===t||HA(e)&&HA(t))}function Gse(e,t){if(e.length!==t.length)return!1;for(var r=0;r{for(var r in t)Uu(e,r,{get:t[r],enumerable:!0})},aC=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Jse(t))!ele.call(e,a)&&a!==r&&Uu(e,a,{get:()=>t[a],enumerable:!(n=Zse(t,a))||n.enumerable});return e},rle=(e,t,r)=>(r=e!=null?Xse(Qse(e)):{},aC(t||!e||!e.__esModule?Uu(r,"default",{value:e,enumerable:!0}):r,e)),nle=e=>aC(Uu({},"__esModule",{value:!0}),e),iC={};tle(iC,{defaultProps:()=>ole,propTypes:()=>ile});var oC=nle(iC),ale=rle(uP);const{string:qt,bool:Ht,number:Ea,array:Yh,oneOfType:Li,shape:hr,object:Wt,func:vt,node:WA}=ale.default,ile={url:Li([qt,Yh,Wt]),playing:Ht,loop:Ht,controls:Ht,volume:Ea,muted:Ht,playbackRate:Ea,width:Li([qt,Ea]),height:Li([qt,Ea]),style:Wt,progressInterval:Ea,playsinline:Ht,pip:Ht,stopOnUnmount:Ht,light:Li([Ht,qt,Wt]),playIcon:WA,previewTabIndex:Ea,fallback:WA,oEmbedUrl:qt,wrapper:Li([qt,vt,hr({render:vt.isRequired})]),config:hr({soundcloud:hr({options:Wt}),youtube:hr({playerVars:Wt,embedOptions:Wt,onUnstarted:vt}),facebook:hr({appId:qt,version:qt,playerId:qt,attributes:Wt}),dailymotion:hr({params:Wt}),vimeo:hr({playerOptions:Wt,title:qt}),file:hr({attributes:Wt,tracks:Yh,forceVideo:Ht,forceAudio:Ht,forceHLS:Ht,forceSafariHLS:Ht,forceDisableHls:Ht,forceDASH:Ht,forceFLV:Ht,hlsOptions:Wt,hlsVersion:qt,dashVersion:qt,flvVersion:qt}),wistia:hr({options:Wt,playerId:qt,customControls:Yh}),mixcloud:hr({options:Wt}),twitch:hr({options:Wt,playerId:qt}),vidyard:hr({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=()=>{},ole={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 sle=Object.create,rs=Object.defineProperty,lle=Object.getOwnPropertyDescriptor,ule=Object.getOwnPropertyNames,cle=Object.getPrototypeOf,dle=Object.prototype.hasOwnProperty,ple=(e,t,r)=>t in e?rs(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,fle=(e,t)=>{for(var r in t)rs(e,r,{get:t[r],enumerable:!0})},sC=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of ule(t))!dle.call(e,a)&&a!==r&&rs(e,a,{get:()=>t[a],enumerable:!(n=lle(t,a))||n.enumerable});return e},lC=(e,t,r)=>(r=e!=null?sle(cle(e)):{},sC(t||!e||!e.__esModule?rs(r,"default",{value:e,enumerable:!0}):r,e)),gle=e=>sC(rs({},"__esModule",{value:!0}),e),mt=(e,t,r)=>(ple(e,typeof t!="symbol"?t+"":t,r),r),uC={};fle(uC,{default:()=>Gu});var hle=gle(uC),VA=lC(M),mle=lC(nC),cC=oC,ble=Bu;const yle=5e3;class Gu extends VA.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,mle.default)(t.url,r)){if(this.isLoading&&!c.forceLoad&&!d&&!(0,ble.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},yle));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?VA.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(Gu,"displayName","Player");mt(Gu,"propTypes",cC.propTypes);mt(Gu,"defaultProps",cC.defaultProps);var vle=Object.create,ns=Object.defineProperty,Sle=Object.getOwnPropertyDescriptor,Ele=Object.getOwnPropertyNames,xle=Object.getPrototypeOf,wle=Object.prototype.hasOwnProperty,_le=(e,t,r)=>t in e?ns(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Tle=(e,t)=>{for(var r in t)ns(e,r,{get:t[r],enumerable:!0})},dC=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Ele(t))!wle.call(e,a)&&a!==r&&ns(e,a,{get:()=>t[a],enumerable:!(n=Sle(t,a))||n.enumerable});return e},as=(e,t,r)=>(r=e!=null?vle(xle(e)):{},dC(t||!e||!e.__esModule?ns(r,"default",{value:e,enumerable:!0}):r,e)),Ale=e=>dC(ns({},"__esModule",{value:!0}),e),ht=(e,t,r)=>(_le(e,typeof t!="symbol"?t+"":t,r),r),pC={};Tle(pC,{createReactPlayer:()=>Mle});var Ole=Ale(pC),_a=as(M),kle=as($I),Kh=as(Hse),YA=as(nC),Bi=oC,fC=Bu,Rle=as(hle);const Ile=(0,fC.lazy)(()=>ir(()=>import("./Preview-0fb823bb.js").then(e=>e.P),["assets/Preview-0fb823bb.js","assets/index-1d805415.js","assets/index-b4d03b7b.css"])),Cle=typeof window<"u"&&window.document,Nle=typeof Tt<"u"&&Tt.window&&Tt.window.document,Lle=Object.keys(Bi.propTypes),Dle=Cle||Nle?_a.Suspense:()=>null,Di=[],Mle=(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,Kh.default)(n=>{for(const a of[...Di,...e])if(a.canPlay(n))return a;return t||null})),ht(this,"getConfig",(0,Kh.default)((n,a)=>{const{config:i}=this.props;return kle.default.all([Bi.defaultProps.config,Bi.defaultProps.config[a]||{},i,i[a]||{}])})),ht(this,"getAttributes",(0,Kh.default)(n=>(0,fC.omit)(this.props,Lle))),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(Rle.default,{...this.props,key:a.key,ref:this.references.player,config:i,activePlayer:a.lazyPlayer||a,onReady:this.handleReady})})}shouldComponentUpdate(n,a){return!(0,YA.default)(this.props,n)||!(0,YA.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(Ile,{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(Dle,{fallback:s},c?this.renderPreview(n):this.renderActivePlayer(n)))}},ht(r,"displayName","ReactPlayer"),ht(r,"propTypes",Bi.propTypes),ht(r,"defaultProps",Bi.defaultProps),ht(r,"addCustomPlayer",n=>{Di.push(n)}),ht(r,"removeCustomPlayers",()=>{Di.length=0}),ht(r,"canPlay",n=>{for(const a of[...Di,...e])if(a.canPlay(n))return!0;return!1}),ht(r,"canEnablePIP",n=>{for(const a of[...Di,...e])if(a.canEnablePIP&&a.canEnablePIP(n))return!0;return!1}),r};var Ple=Object.create,zu=Object.defineProperty,$le=Object.getOwnPropertyDescriptor,jle=Object.getOwnPropertyNames,Fle=Object.getPrototypeOf,Ble=Object.prototype.hasOwnProperty,Ule=(e,t)=>{for(var r in t)zu(e,r,{get:t[r],enumerable:!0})},gC=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of jle(t))!Ble.call(e,a)&&a!==r&&zu(e,a,{get:()=>t[a],enumerable:!(n=$le(t,a))||n.enumerable});return e},Gle=(e,t,r)=>(r=e!=null?Ple(Fle(e)):{},gC(t||!e||!e.__esModule?zu(r,"default",{value:e,enumerable:!0}):r,e)),zle=e=>gC(zu({},"__esModule",{value:!0}),e),hC={};Ule(hC,{default:()=>Vle});var qle=zle(hC),gb=Gle(Fse),Hle=Ole;const Wle=gb.default[gb.default.length-1];var Vle=(0,Hle.createReactPlayer)(gb.default,Wle);const Yle=ft(qle),KA=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}`},Kle=({isPlaying:e,isFullScreen:t,setIsPlaying:r,playingTime:n,duration:a,handleProgressChange:i,handleVolumeChange:o,onFullScreenClick:s,showToolbar:l})=>{const[c,d]=M.useState(.5),[p,g]=M.useState(!1),[m,b]=M.useState(.5),v=(O,_)=>{const w=Array.isArray(_)?_[0]:_;d(w),o(O,w),p&&g(!1)},S=()=>{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(rue,{"aria-label":"Small","data-testid":"progress-bar",isFullScreen:t,max:a,onChange:i,size:"small",value:n}),h.jsxs(Xle,{align:"center",direction:"row",showToolbar:l||t,children:[h.jsx(Qle,{onClick:r,size:"small",children:e?h.jsx(_b,{}):h.jsx(Tb,{})}),h.jsxs(nue,{direction:"row",children:[h.jsx("span",{children:KA(n)}),h.jsx("span",{className:"separator",children:"/"}),h.jsx("span",{className:"duration",children:KA(a)})]}),h.jsxs(eue,{direction:"row",px:9,children:[h.jsx(Kl,{className:"volume-slider",max:1,min:0,onChange:v,size:"small",step:.1,value:c}),h.jsx(Zle,{onClick:S,children:p?h.jsx(Jle,{children:h.jsx(UM,{})}):h.jsx(GM,{})})]}),h.jsx(tue,{"data-testid":"fullscreen-button",onClick:s,children:t?h.jsx(qM,{}):h.jsx(zM,{})})]})]})},Xle=B(F)` +`,Moe=()=>{const e=Pt(),{setPlayingNode:t}=Bo(r=>r);switch(M.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(xX,{});case"data_series":return h.jsx(EK,{});case"tribe_message":return h.jsx(yX,{});case"Tweet":return h.jsx(NX,{});case"topic":return h.jsx(CX,{});case"show":return h.jsx(IX,{});case"video":case"podcast":case"clip":case"twitter_space":return h.jsx(QR,{});case"document":return h.jsx(Roe,{});case"episode":return h.jsx(fX,{},e.ref_id);case"image":return h.jsx(bX,{});default:return h.jsx(hoe,{})}},Poe=M.memo(Moe);var $oe=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&&joe(i,r.attrs),r.text&&(i.text=""+r.text);var o="onload"in i?GA:Foe;o(i,n),i.onload||GA(i,n),a.appendChild(i)};function joe(e,t){for(var r in t)e.setAttribute(r,t[r])}function GA(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 Foe(e,t){e.onreadystatechange=function(){this.readyState!="complete"&&this.readyState!="loaded"||(this.onreadystatechange=null,t(null,e))}}var Boe=function(t){return Uoe(t)&&!Goe(t)};function Uoe(e){return!!e&&typeof e=="object"}function Goe(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||Hoe(e)}var zoe=typeof Symbol=="function"&&Symbol.for,qoe=zoe?Symbol.for("react.element"):60103;function Hoe(e){return e.$$typeof===qoe}function Woe(e){return Array.isArray(e)?[]:{}}function $o(e,t){return t.clone!==!1&&t.isMergeableObject(e)?ei(Woe(e),e,t):e}function Voe(e,t,r){return e.concat(t).map(function(n){return $o(n,r)})}function Yoe(e,t){if(!t.customMerge)return ei;var r=t.customMerge(e);return typeof r=="function"?r:ei}function Koe(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function zA(e){return Object.keys(e).concat(Koe(e))}function PI(e,t){try{return t in e}catch{return!1}}function Xoe(e,t){return PI(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function Zoe(e,t,r){var n={};return r.isMergeableObject(e)&&zA(e).forEach(function(a){n[a]=$o(e[a],r)}),zA(t).forEach(function(a){Xoe(e,a)||(PI(e,a)&&r.isMergeableObject(t[a])?n[a]=Yoe(a,r)(e[a],t[a],r):n[a]=$o(t[a],r))}),n}function ei(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||Voe,r.isMergeableObject=r.isMergeableObject||Boe,r.cloneUnlessOtherwiseSpecified=$o;var n=Array.isArray(t),a=Array.isArray(e),i=n===a;return i?n?r.arrayMerge(e,t,r):Zoe(e,t,r):$o(t,r)}ei.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(n,a){return ei(n,a,r)},{})};var Joe=ei,$I=Joe,Qoe=Object.create,Fu=Object.defineProperty,ese=Object.getOwnPropertyDescriptor,tse=Object.getOwnPropertyNames,rse=Object.getPrototypeOf,nse=Object.prototype.hasOwnProperty,ase=(e,t)=>{for(var r in t)Fu(e,r,{get:t[r],enumerable:!0})},jI=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of tse(t))!nse.call(e,a)&&a!==r&&Fu(e,a,{get:()=>t[a],enumerable:!(n=ese(t,a))||n.enumerable});return e},Zy=(e,t,r)=>(r=e!=null?Qoe(rse(e)):{},jI(t||!e||!e.__esModule?Fu(r,"default",{value:e,enumerable:!0}):r,e)),ise=e=>jI(Fu({},"__esModule",{value:!0}),e),FI={};ase(FI,{callPlayer:()=>Ese,getConfig:()=>vse,getSDK:()=>yse,isBlobUrl:()=>wse,isMediaStream:()=>xse,lazy:()=>use,omit:()=>Sse,parseEndTime:()=>hse,parseStartTime:()=>gse,queryString:()=>bse,randomString:()=>mse,supportsWebKitPresentationMode:()=>_se});var Bu=ise(FI),ose=Zy(M),sse=Zy($oe),lse=Zy($I);const use=e=>ose.default.lazy(async()=>{const t=await e();return typeof t.default=="function"?t:t.default}),cse=/[?&#](?:start|t)=([0-9hms]+)/,dse=/[?&#]end=([0-9hms]+)/,db=/(\d+)(h|m|s)/g,pse=/^\d+$/;function BI(e,t){if(e instanceof Array)return;const r=e.match(t);if(r){const n=r[1];if(n.match(db))return fse(n);if(pse.test(n))return parseInt(n)}}function fse(e){let t=0,r=db.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=db.exec(e)}return t}function gse(e){return BI(e,cse)}function hse(e){return BI(e,dse)}function mse(){return Math.random().toString(36).substr(2,5)}function bse(e){return Object.keys(e).map(t=>`${t}=${e[t]}`).join("&")}function Vh(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={},yse=function(t,r,n=null,a=()=>!0,i=sse.default){const o=Vh(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(Vh(r))}}i(t,d=>{d?(Sa[t].forEach(p=>p.reject(d)),Sa[t]=null):n||c(Vh(r))})})};function vse(e,t){return(0,lse.default)(t.config,e.config)}function Sse(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 Ese(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 xse(e){return typeof window<"u"&&typeof window.MediaStream<"u"&&e instanceof window.MediaStream}function wse(e){return/^blob:/.test(e)}function _se(e=document.createElement("video")){const t=/iPhone|iPod/.test(navigator.userAgent)===!1;return e.webkitSupportsPresentationMode&&typeof e.webkitSetPresentationMode=="function"&&t}var Jy=Object.defineProperty,Tse=Object.getOwnPropertyDescriptor,Ase=Object.getOwnPropertyNames,Ose=Object.prototype.hasOwnProperty,kse=(e,t)=>{for(var r in t)Jy(e,r,{get:t[r],enumerable:!0})},Rse=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Ase(t))!Ose.call(e,a)&&a!==r&&Jy(e,a,{get:()=>t[a],enumerable:!(n=Tse(t,a))||n.enumerable});return e},Ise=e=>Rse(Jy({},"__esModule",{value:!0}),e),UI={};kse(UI,{AUDIO_EXTENSIONS:()=>Qy,DASH_EXTENSIONS:()=>eC,FLV_EXTENSIONS:()=>tC,HLS_EXTENSIONS:()=>tv,MATCH_URL_DAILYMOTION:()=>XI,MATCH_URL_FACEBOOK:()=>qI,MATCH_URL_FACEBOOK_WATCH:()=>HI,MATCH_URL_KALTURA:()=>QI,MATCH_URL_MIXCLOUD:()=>ZI,MATCH_URL_SOUNDCLOUD:()=>GI,MATCH_URL_STREAMABLE:()=>WI,MATCH_URL_TWITCH_CHANNEL:()=>KI,MATCH_URL_TWITCH_VIDEO:()=>YI,MATCH_URL_VIDYARD:()=>JI,MATCH_URL_VIMEO:()=>zI,MATCH_URL_WISTIA:()=>VI,MATCH_URL_YOUTUBE:()=>pb,VIDEO_EXTENSIONS:()=>ev,canPlay:()=>Nse});var Cse=Ise(UI),qA=Bu;const pb=/(?:youtu\.be\/|youtube(?:-nocookie|education)?\.com\/(?:embed\/|v\/|watch\/|watch\?v=|watch\?.+&v=|shorts\/|live\/))((\w|-){11})|youtube\.com\/playlist\?list=|youtube\.com\/user\//,GI=/(?:soundcloud\.com|snd\.sc)\/[^.]+$/,zI=/vimeo\.com\/(?!progressive_redirect).+/,qI=/^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/,HI=/^https?:\/\/fb\.watch\/.+$/,WI=/streamable\.com\/([a-z0-9]+)$/,VI=/(?:wistia\.(?:com|net)|wi\.st)\/(?:medias|embed)\/(?:iframe\/)?([^?]+)/,YI=/(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/,KI=/(?:www\.|go\.)?twitch\.tv\/([a-zA-Z0-9_]+)($|\?)/,XI=/^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?(?:[\w.#_-]+)?/,ZI=/mixcloud\.com\/([^/]+\/[^/]+)/,JI=/vidyard.com\/(?:watch\/)?([a-zA-Z0-9-_]+)/,QI=/^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-_].*)$/,Qy=/\.(m4a|m4b|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i,ev=/\.(mp4|og[gv]|webm|mov|m4v)(#t=[,\d+]+)?($|\?)/i,tv=/\.(m3u8)($|\?)/i,eC=/\.(mpd)($|\?)/i,tC=/\.(flv)($|\?)/i,fb=e=>{if(e instanceof Array){for(const t of e)if(typeof t=="string"&&fb(t)||fb(t.src))return!0;return!1}return(0,qA.isMediaStream)(e)||(0,qA.isBlobUrl)(e)?!0:Qy.test(e)||ev.test(e)||tv.test(e)||eC.test(e)||tC.test(e)},Nse={youtube:e=>e instanceof Array?e.every(t=>pb.test(t)):pb.test(e),soundcloud:e=>GI.test(e)&&!Qy.test(e),vimeo:e=>zI.test(e)&&!ev.test(e)&&!tv.test(e),facebook:e=>qI.test(e)||HI.test(e),streamable:e=>WI.test(e),wistia:e=>VI.test(e),twitch:e=>YI.test(e)||KI.test(e),dailymotion:e=>XI.test(e),mixcloud:e=>ZI.test(e),vidyard:e=>JI.test(e),kaltura:e=>QI.test(e),file:fb};var rv=Object.defineProperty,Lse=Object.getOwnPropertyDescriptor,Dse=Object.getOwnPropertyNames,Mse=Object.prototype.hasOwnProperty,Pse=(e,t)=>{for(var r in t)rv(e,r,{get:t[r],enumerable:!0})},$se=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Dse(t))!Mse.call(e,a)&&a!==r&&rv(e,a,{get:()=>t[a],enumerable:!(n=Lse(t,a))||n.enumerable});return e},jse=e=>$se(rv({},"__esModule",{value:!0}),e),rC={};Pse(rC,{default:()=>Bse});var Fse=jse(rC),ar=Bu,Zt=Cse,Bse=[{key:"youtube",name:"YouTube",canPlay:Zt.canPlay.youtube,lazyPlayer:(0,ar.lazy)(()=>ir(()=>import("./YouTube-f9411286.js").then(e=>e.Y),["assets/YouTube-f9411286.js","assets/index-2353781d.js","assets/index-b4d03b7b.css"]))},{key:"soundcloud",name:"SoundCloud",canPlay:Zt.canPlay.soundcloud,lazyPlayer:(0,ar.lazy)(()=>ir(()=>import("./SoundCloud-8291b59c.js").then(e=>e.S),["assets/SoundCloud-8291b59c.js","assets/index-2353781d.js","assets/index-b4d03b7b.css"]))},{key:"vimeo",name:"Vimeo",canPlay:Zt.canPlay.vimeo,lazyPlayer:(0,ar.lazy)(()=>ir(()=>import("./Vimeo-1c339b7e.js").then(e=>e.V),["assets/Vimeo-1c339b7e.js","assets/index-2353781d.js","assets/index-b4d03b7b.css"]))},{key:"facebook",name:"Facebook",canPlay:Zt.canPlay.facebook,lazyPlayer:(0,ar.lazy)(()=>ir(()=>import("./Facebook-c4e38700.js").then(e=>e.F),["assets/Facebook-c4e38700.js","assets/index-2353781d.js","assets/index-b4d03b7b.css"]))},{key:"streamable",name:"Streamable",canPlay:Zt.canPlay.streamable,lazyPlayer:(0,ar.lazy)(()=>ir(()=>import("./Streamable-26990a94.js").then(e=>e.S),["assets/Streamable-26990a94.js","assets/index-2353781d.js","assets/index-b4d03b7b.css"]))},{key:"wistia",name:"Wistia",canPlay:Zt.canPlay.wistia,lazyPlayer:(0,ar.lazy)(()=>ir(()=>import("./Wistia-341ad116.js").then(e=>e.W),["assets/Wistia-341ad116.js","assets/index-2353781d.js","assets/index-b4d03b7b.css"]))},{key:"twitch",name:"Twitch",canPlay:Zt.canPlay.twitch,lazyPlayer:(0,ar.lazy)(()=>ir(()=>import("./Twitch-79ac99b3.js").then(e=>e.T),["assets/Twitch-79ac99b3.js","assets/index-2353781d.js","assets/index-b4d03b7b.css"]))},{key:"dailymotion",name:"DailyMotion",canPlay:Zt.canPlay.dailymotion,lazyPlayer:(0,ar.lazy)(()=>ir(()=>import("./DailyMotion-6a6f4c68.js").then(e=>e.D),["assets/DailyMotion-6a6f4c68.js","assets/index-2353781d.js","assets/index-b4d03b7b.css"]))},{key:"mixcloud",name:"Mixcloud",canPlay:Zt.canPlay.mixcloud,lazyPlayer:(0,ar.lazy)(()=>ir(()=>import("./Mixcloud-6271b595.js").then(e=>e.M),["assets/Mixcloud-6271b595.js","assets/index-2353781d.js","assets/index-b4d03b7b.css"]))},{key:"vidyard",name:"Vidyard",canPlay:Zt.canPlay.vidyard,lazyPlayer:(0,ar.lazy)(()=>ir(()=>import("./Vidyard-862371df.js").then(e=>e.V),["assets/Vidyard-862371df.js","assets/index-2353781d.js","assets/index-b4d03b7b.css"]))},{key:"kaltura",name:"Kaltura",canPlay:Zt.canPlay.kaltura,lazyPlayer:(0,ar.lazy)(()=>ir(()=>import("./Kaltura-b12fa3ac.js").then(e=>e.K),["assets/Kaltura-b12fa3ac.js","assets/index-2353781d.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-13d27ffe.js").then(e=>e.F),["assets/FilePlayer-13d27ffe.js","assets/index-2353781d.js","assets/index-b4d03b7b.css"]))}],HA=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function Use(e,t){return!!(e===t||HA(e)&&HA(t))}function Gse(e,t){if(e.length!==t.length)return!1;for(var r=0;r{for(var r in t)Uu(e,r,{get:t[r],enumerable:!0})},aC=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Jse(t))!ele.call(e,a)&&a!==r&&Uu(e,a,{get:()=>t[a],enumerable:!(n=Zse(t,a))||n.enumerable});return e},rle=(e,t,r)=>(r=e!=null?Xse(Qse(e)):{},aC(t||!e||!e.__esModule?Uu(r,"default",{value:e,enumerable:!0}):r,e)),nle=e=>aC(Uu({},"__esModule",{value:!0}),e),iC={};tle(iC,{defaultProps:()=>ole,propTypes:()=>ile});var oC=nle(iC),ale=rle($M);const{string:qt,bool:Ht,number:Ea,array:Yh,oneOfType:Li,shape:hr,object:Wt,func:vt,node:WA}=ale.default,ile={url:Li([qt,Yh,Wt]),playing:Ht,loop:Ht,controls:Ht,volume:Ea,muted:Ht,playbackRate:Ea,width:Li([qt,Ea]),height:Li([qt,Ea]),style:Wt,progressInterval:Ea,playsinline:Ht,pip:Ht,stopOnUnmount:Ht,light:Li([Ht,qt,Wt]),playIcon:WA,previewTabIndex:Ea,fallback:WA,oEmbedUrl:qt,wrapper:Li([qt,vt,hr({render:vt.isRequired})]),config:hr({soundcloud:hr({options:Wt}),youtube:hr({playerVars:Wt,embedOptions:Wt,onUnstarted:vt}),facebook:hr({appId:qt,version:qt,playerId:qt,attributes:Wt}),dailymotion:hr({params:Wt}),vimeo:hr({playerOptions:Wt,title:qt}),file:hr({attributes:Wt,tracks:Yh,forceVideo:Ht,forceAudio:Ht,forceHLS:Ht,forceSafariHLS:Ht,forceDisableHls:Ht,forceDASH:Ht,forceFLV:Ht,hlsOptions:Wt,hlsVersion:qt,dashVersion:qt,flvVersion:qt}),wistia:hr({options:Wt,playerId:qt,customControls:Yh}),mixcloud:hr({options:Wt}),twitch:hr({options:Wt,playerId:qt}),vidyard:hr({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=()=>{},ole={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 sle=Object.create,rs=Object.defineProperty,lle=Object.getOwnPropertyDescriptor,ule=Object.getOwnPropertyNames,cle=Object.getPrototypeOf,dle=Object.prototype.hasOwnProperty,ple=(e,t,r)=>t in e?rs(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,fle=(e,t)=>{for(var r in t)rs(e,r,{get:t[r],enumerable:!0})},sC=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of ule(t))!dle.call(e,a)&&a!==r&&rs(e,a,{get:()=>t[a],enumerable:!(n=lle(t,a))||n.enumerable});return e},lC=(e,t,r)=>(r=e!=null?sle(cle(e)):{},sC(t||!e||!e.__esModule?rs(r,"default",{value:e,enumerable:!0}):r,e)),gle=e=>sC(rs({},"__esModule",{value:!0}),e),mt=(e,t,r)=>(ple(e,typeof t!="symbol"?t+"":t,r),r),uC={};fle(uC,{default:()=>Gu});var hle=gle(uC),VA=lC(M),mle=lC(nC),cC=oC,ble=Bu;const yle=5e3;class Gu extends VA.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,mle.default)(t.url,r)){if(this.isLoading&&!c.forceLoad&&!d&&!(0,ble.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},yle));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?VA.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(Gu,"displayName","Player");mt(Gu,"propTypes",cC.propTypes);mt(Gu,"defaultProps",cC.defaultProps);var vle=Object.create,ns=Object.defineProperty,Sle=Object.getOwnPropertyDescriptor,Ele=Object.getOwnPropertyNames,xle=Object.getPrototypeOf,wle=Object.prototype.hasOwnProperty,_le=(e,t,r)=>t in e?ns(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Tle=(e,t)=>{for(var r in t)ns(e,r,{get:t[r],enumerable:!0})},dC=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Ele(t))!wle.call(e,a)&&a!==r&&ns(e,a,{get:()=>t[a],enumerable:!(n=Sle(t,a))||n.enumerable});return e},as=(e,t,r)=>(r=e!=null?vle(xle(e)):{},dC(t||!e||!e.__esModule?ns(r,"default",{value:e,enumerable:!0}):r,e)),Ale=e=>dC(ns({},"__esModule",{value:!0}),e),ht=(e,t,r)=>(_le(e,typeof t!="symbol"?t+"":t,r),r),pC={};Tle(pC,{createReactPlayer:()=>Mle});var Ole=Ale(pC),_a=as(M),kle=as($I),Kh=as(Hse),YA=as(nC),Bi=oC,fC=Bu,Rle=as(hle);const Ile=(0,fC.lazy)(()=>ir(()=>import("./Preview-464e6343.js").then(e=>e.P),["assets/Preview-464e6343.js","assets/index-2353781d.js","assets/index-b4d03b7b.css"])),Cle=typeof window<"u"&&window.document,Nle=typeof Tt<"u"&&Tt.window&&Tt.window.document,Lle=Object.keys(Bi.propTypes),Dle=Cle||Nle?_a.Suspense:()=>null,Di=[],Mle=(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,Kh.default)(n=>{for(const a of[...Di,...e])if(a.canPlay(n))return a;return t||null})),ht(this,"getConfig",(0,Kh.default)((n,a)=>{const{config:i}=this.props;return kle.default.all([Bi.defaultProps.config,Bi.defaultProps.config[a]||{},i,i[a]||{}])})),ht(this,"getAttributes",(0,Kh.default)(n=>(0,fC.omit)(this.props,Lle))),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(Rle.default,{...this.props,key:a.key,ref:this.references.player,config:i,activePlayer:a.lazyPlayer||a,onReady:this.handleReady})})}shouldComponentUpdate(n,a){return!(0,YA.default)(this.props,n)||!(0,YA.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(Ile,{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(Dle,{fallback:s},c?this.renderPreview(n):this.renderActivePlayer(n)))}},ht(r,"displayName","ReactPlayer"),ht(r,"propTypes",Bi.propTypes),ht(r,"defaultProps",Bi.defaultProps),ht(r,"addCustomPlayer",n=>{Di.push(n)}),ht(r,"removeCustomPlayers",()=>{Di.length=0}),ht(r,"canPlay",n=>{for(const a of[...Di,...e])if(a.canPlay(n))return!0;return!1}),ht(r,"canEnablePIP",n=>{for(const a of[...Di,...e])if(a.canEnablePIP&&a.canEnablePIP(n))return!0;return!1}),r};var Ple=Object.create,zu=Object.defineProperty,$le=Object.getOwnPropertyDescriptor,jle=Object.getOwnPropertyNames,Fle=Object.getPrototypeOf,Ble=Object.prototype.hasOwnProperty,Ule=(e,t)=>{for(var r in t)zu(e,r,{get:t[r],enumerable:!0})},gC=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of jle(t))!Ble.call(e,a)&&a!==r&&zu(e,a,{get:()=>t[a],enumerable:!(n=$le(t,a))||n.enumerable});return e},Gle=(e,t,r)=>(r=e!=null?Ple(Fle(e)):{},gC(t||!e||!e.__esModule?zu(r,"default",{value:e,enumerable:!0}):r,e)),zle=e=>gC(zu({},"__esModule",{value:!0}),e),hC={};Ule(hC,{default:()=>Vle});var qle=zle(hC),gb=Gle(Fse),Hle=Ole;const Wle=gb.default[gb.default.length-1];var Vle=(0,Hle.createReactPlayer)(gb.default,Wle);const Yle=ft(qle),KA=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}`},Kle=({isPlaying:e,isFullScreen:t,setIsPlaying:r,playingTime:n,duration:a,handleProgressChange:i,handleVolumeChange:o,onFullScreenClick:s,showToolbar:l})=>{const[c,d]=M.useState(.5),[p,g]=M.useState(!1),[m,b]=M.useState(.5),v=(O,_)=>{const w=Array.isArray(_)?_[0]:_;d(w),o(O,w),p&&g(!1)},S=()=>{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(rue,{"aria-label":"Small","data-testid":"progress-bar",isFullScreen:t,max:a,onChange:i,size:"small",value:n}),h.jsxs(Xle,{align:"center",direction:"row",showToolbar:l||t,children:[h.jsx(Qle,{onClick:r,size:"small",children:e?h.jsx(wb,{}):h.jsx(_b,{})}),h.jsxs(nue,{direction:"row",children:[h.jsx("span",{children:KA(n)}),h.jsx("span",{className:"separator",children:"/"}),h.jsx("span",{className:"duration",children:KA(a)})]}),h.jsxs(eue,{direction:"row",px:9,children:[h.jsx(Kl,{className:"volume-slider",max:1,min:0,onChange:v,size:"small",step:.1,value:c}),h.jsx(Zle,{onClick:S,children:p?h.jsx(Jle,{children:h.jsx(jM,{})}):h.jsx(FM,{})})]}),h.jsx(tue,{"data-testid":"fullscreen-button",onClick:s,children:t?h.jsx(UM,{}):h.jsx(BM,{})})]})]})},Xle=B(F)` height: 60px; padding: 12px 16px; ${e=>e.showToolbar&&` @@ -2001,7 +2001,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } `,Zle=B.span``,Jle=B.span` color: gray; -`,Qle=B(hO)` +`,Qle=B(gO)` && { font-size: 36px; padding: 2px; @@ -2130,7 +2130,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho margin: ${e=>e.isFullScreen?"80px auto":"0"}; width: 100%; cursor: pointer; -`,cue=M.memo(aue),due=({open:e})=>{const{setSelectedNode:t}=xb(i=>i),r=Pt(),{setSidebarOpen:n}=Nt(i=>i),{playingNode:a}=Bo(i=>i);return h.jsx(La,{"data-testid":"sidebar-sub-view",direction:"right",in:e,style:{position:e?"relative":"absolute"},children:h.jsxs(pue,{children:[h.jsx(cue,{hidden:(r==null?void 0:r.ref_id)!==(a==null?void 0:a.ref_id)},a==null?void 0:a.ref_id),h.jsx(gue,{children:h.jsx(Poe,{})}),h.jsx(fue,{"data-testid":"close-sidebar-sub-view",onClick:()=>{t(null)},children:h.jsx(HM,{})}),h.jsx(hue,{onClick:()=>{n(!1)},children:h.jsx(mO,{})})]})})},pue=B(F)(({theme:e})=>({position:"relative",background:P.BG1,width:"100%",margin:"64px auto 20px 10px",borderRadius:"16px",zIndex:29,[e.breakpoints.up("sm")]:{width:"390px"}})),fue=B(F)` +`,cue=M.memo(aue),due=({open:e})=>{const{setSelectedNode:t}=xb(i=>i),r=Pt(),{setSidebarOpen:n}=Nt(i=>i),{playingNode:a}=Bo(i=>i);return h.jsx(La,{"data-testid":"sidebar-sub-view",direction:"right",in:e,style:{position:e?"relative":"absolute"},children:h.jsxs(pue,{children:[h.jsx(cue,{hidden:(r==null?void 0:r.ref_id)!==(a==null?void 0:a.ref_id)},a==null?void 0:a.ref_id),h.jsx(gue,{children:h.jsx(Poe,{})}),h.jsx(fue,{"data-testid":"close-sidebar-sub-view",onClick:()=>{t(null)},children:h.jsx(GM,{})}),h.jsx(hue,{onClick:()=>{n(!1)},children:h.jsx(pO,{})})]})})},pue=B(F)(({theme:e})=>({position:"relative",background:P.BG1,width:"100%",margin:"64px auto 20px 10px",borderRadius:"16px",zIndex:29,[e.breakpoints.up("sm")]:{width:"390px"}})),fue=B(F)` font-size: 32px; color: ${P.white}; cursor: pointer; @@ -2148,7 +2148,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho flex: 1 1 100%; border-radius: 16px; overflow: hidden; -`,hue=B(F).attrs({align:"center",justify:"center",p:8})(({theme:e})=>({backgroundColor:P.BG1_NORMAL,cursor:"pointer",transitionDuration:"0.2s",position:"absolute",right:"0px",top:"50%",zIndex:1,width:"24px",height:"48px",transform:"translateY(-50%)",borderRadius:"0px 6px 6px 0px",boxShadow:"2px 0px 6px 0px rgba(0, 0, 0, 0.25) inset",color:P.white,[e.breakpoints.up("sm")]:{left:"100%"},"&:hover":{backgroundColor:P.BG1_HOVER},"&:active":{backgroundColor:P.BG1_PRESS,color:P.GRAY6}})),mue=()=>{const{sidebarIsOpen:e,showCollapseButton:t}=Nt(r=>({sidebarIsOpen:r.setSidebarOpen,showCollapseButton:r.showCollapseButton}));return h.jsx(h.Fragment,{children:t&&h.jsx(bue,{onClick:()=>{e(!0)},children:h.jsx(WM,{})})})},bue=B(F).attrs({align:"center",justify:"center",p:8})(({theme:e})=>({backgroundColor:P.BG1_NORMAL,cursor:"pointer",transitionDuration:"0.2s",position:"absolute",top:"50%",zIndex:1,width:"24px",height:"48px",transform:"translateY(-50%)",borderRadius:"0px 6px 6px 0px",boxShadow:"2px 0px 6px 0px rgba(0, 0, 0, 0.25) inset",color:P.white,[e.breakpoints.up("sm")]:{left:"64px"},"&:hover":{backgroundColor:P.BG1_HOVER},"&:active":{backgroundColor:P.BG1_PRESS,color:P.GRAY6}})),mC=390,yue=M.forwardRef(({subViewOpen:e},t)=>{const{setSidebarOpen:r}=Nt(a=>a),n=xM();return h.jsxs(Eue,{ref:t,id:"sidebar-wrapper",children:[h.jsx(wue,{}),n?h.jsx(F$,{}):h.jsx($j,{}),!e&&h.jsx(xue,{onClick:()=>{r(!1)},children:h.jsx(mO,{})})]})}),vue=["topic","person","guest","event","organization","place","project","software"],Sue=e=>{if(e==null)return!1;const r=Object.keys(e).filter(n=>n!=="pubkey");return r.length===1&&r[0]==="name"},bC=()=>{const{sidebarIsOpen:e}=Nt(n=>n),t=Pt(),r=!!t&&e&&!vue.includes(t.node_type)&&!Sue(t.properties);return h.jsxs(h.Fragment,{children:[h.jsx(La,{direction:"right",in:e,mountOnEnter:!0,unmountOnExit:!0,children:h.jsx(yue,{subViewOpen:r})}),h.jsx(due,{open:r}),!e&&h.jsx(mue,{})]})},Eue=B(F)(({theme:e})=>({position:"relative",background:P.BG1,height:"100vh",width:"100%",zIndex:30,[e.breakpoints.up("sm")]:{width:mC}})),xue=B(F).attrs({align:"center",justify:"center",p:8})(({theme:e})=>({backgroundColor:P.BG1_NORMAL,cursor:"pointer",transitionDuration:"0.2s",position:"absolute",right:"0px",top:"50%",zIndex:1,width:"24px",height:"48px",transform:"translateY(-50%)",borderRadius:"0px 6px 6px 0px",boxShadow:"2px 0px 6px 0px rgba(0, 0, 0, 0.25) inset",color:P.white,[e.breakpoints.up("sm")]:{left:"100%"},"&:hover":{backgroundColor:P.BG1_HOVER},"&:active":{backgroundColor:P.BG1_PRESS,color:P.GRAY6}})),wue=B(F)` +`,hue=B(F).attrs({align:"center",justify:"center",p:8})(({theme:e})=>({backgroundColor:P.BG1_NORMAL,cursor:"pointer",transitionDuration:"0.2s",position:"absolute",right:"0px",top:"50%",zIndex:1,width:"24px",height:"48px",transform:"translateY(-50%)",borderRadius:"0px 6px 6px 0px",boxShadow:"2px 0px 6px 0px rgba(0, 0, 0, 0.25) inset",color:P.white,[e.breakpoints.up("sm")]:{left:"100%"},"&:hover":{backgroundColor:P.BG1_HOVER},"&:active":{backgroundColor:P.BG1_PRESS,color:P.GRAY6}})),mue=()=>{const{sidebarIsOpen:e,showCollapseButton:t}=Nt(r=>({sidebarIsOpen:r.setSidebarOpen,showCollapseButton:r.showCollapseButton}));return h.jsx(h.Fragment,{children:t&&h.jsx(bue,{onClick:()=>{e(!0)},children:h.jsx(zM,{})})})},bue=B(F).attrs({align:"center",justify:"center",p:8})(({theme:e})=>({backgroundColor:P.BG1_NORMAL,cursor:"pointer",transitionDuration:"0.2s",position:"absolute",top:"50%",zIndex:1,width:"24px",height:"48px",transform:"translateY(-50%)",borderRadius:"0px 6px 6px 0px",boxShadow:"2px 0px 6px 0px rgba(0, 0, 0, 0.25) inset",color:P.white,[e.breakpoints.up("sm")]:{left:"64px"},"&:hover":{backgroundColor:P.BG1_HOVER},"&:active":{backgroundColor:P.BG1_PRESS,color:P.GRAY6}})),mC=390,yue=M.forwardRef(({subViewOpen:e},t)=>{const{setSidebarOpen:r}=Nt(a=>a),n=xM();return h.jsxs(Eue,{ref:t,id:"sidebar-wrapper",children:[h.jsx(wue,{}),n?h.jsx(F$,{}):h.jsx($j,{}),!e&&h.jsx(xue,{onClick:()=>{r(!1)},children:h.jsx(pO,{})})]})}),vue=["topic","person","guest","event","organization","place","project","software"],Sue=e=>{if(e==null)return!1;const r=Object.keys(e).filter(n=>n!=="pubkey");return r.length===1&&r[0]==="name"},bC=()=>{const{sidebarIsOpen:e}=Nt(n=>n),t=Pt(),r=!!t&&e&&!vue.includes(t.node_type)&&!Sue(t.properties);return h.jsxs(h.Fragment,{children:[h.jsx(La,{direction:"right",in:e,mountOnEnter:!0,unmountOnExit:!0,children:h.jsx(yue,{subViewOpen:r})}),h.jsx(due,{open:r}),!e&&h.jsx(mue,{})]})},Eue=B(F)(({theme:e})=>({position:"relative",background:P.BG1,height:"100vh",width:"100%",zIndex:30,[e.breakpoints.up("sm")]:{width:mC}})),xue=B(F).attrs({align:"center",justify:"center",p:8})(({theme:e})=>({backgroundColor:P.BG1_NORMAL,cursor:"pointer",transitionDuration:"0.2s",position:"absolute",right:"0px",top:"50%",zIndex:1,width:"24px",height:"48px",transform:"translateY(-50%)",borderRadius:"0px 6px 6px 0px",boxShadow:"2px 0px 6px 0px rgba(0, 0, 0, 0.25) inset",color:P.white,[e.breakpoints.up("sm")]:{left:"100%"},"&:hover":{backgroundColor:P.BG1_HOVER},"&:active":{backgroundColor:P.BG1_PRESS,color:P.GRAY6}})),wue=B(F)` flex: 0 0 64px; background: ${P.BG2}; -`;bC.displayName="Sidebar";const Due=Object.freeze(Object.defineProperty({__proto__:null,MENU_WIDTH:mC,SideBar:bC},Symbol.toStringTag,{value:"Module"}));export{mC as M,Yle as R,Kl as S,Due as i,Cse as p,KA as s,Bu as u}; +`;bC.displayName="Sidebar";const Pue=Object.freeze(Object.defineProperty({__proto__:null,MENU_WIDTH:mC,SideBar:bC},Symbol.toStringTag,{value:"Module"}));export{mC as M,Yle as R,Kl as S,Pue as i,Cse as p,KA as s,Bu as u}; diff --git a/build/assets/index-068043a5.js b/build/assets/index-068043a5.js new file mode 100644 index 000000000..baed47a21 --- /dev/null +++ b/build/assets/index-068043a5.js @@ -0,0 +1,168 @@ +import{v as gn,R as Bt,w as it,x as Ct,y as Ue,z as Dt,D as Ft,E as dt,G as C,H as Gt,r as T,J as jt,j as k,K as ut,L as Lt,M as xn,N as bt,O as ht,P as _e,S as we,U as yn,V as be,X as Ve,c as Xe,u as zt,s as U,a as rt,F as pt,B as Ye,C as Ke,Y as mn,Z as _n,b as Ze,A as wn,g as bn,$ as En}from"./index-2353781d.js";const Pn=t=>{const[n,e,i]=t.split(":"),r=parseInt(n,10),o=parseInt(e,10),s=parseInt(i,10);return r*3600+o*60+s};function Ee(...t){return t.reduce((n,e)=>e==null?n:function(...r){n.apply(this,r),e.apply(this,r)},()=>{})}function kn(t,n=166){let e;function i(...r){const o=()=>{t.apply(this,r)};clearTimeout(e),e=setTimeout(o,n)}return i.clear=()=>{clearTimeout(e)},i}function ot(t){return t&&t.ownerDocument||document}function At(t){return ot(t).defaultView||window}function Tn(t){const n=t.documentElement.clientWidth;return Math.abs(window.innerWidth-n)}const Sn=t=>{let n;return t<1?n=5.11916*t**2:n=4.5*Math.log(t+1)+2,(n/100).toFixed(2)},Pe=Sn,ke={disabled:!1};var Nn=function(n){return n.scrollTop},Rt="unmounted",lt="exited",ct="entering",wt="entered",re="exiting",at=function(t){gn(n,t);function n(i,r){var o;o=t.call(this,i,r)||this;var s=r,a=s&&!s.isMounting?i.enter:i.appear,l;return o.appearStatus=null,i.in?a?(l=lt,o.appearStatus=ct):l=wt:i.unmountOnExit||i.mountOnEnter?l=Rt:l=lt,o.state={status:l},o.nextCallback=null,o}n.getDerivedStateFromProps=function(r,o){var s=r.in;return s&&o.status===Rt?{status:lt}:null};var e=n.prototype;return e.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},e.componentDidUpdate=function(r){var o=null;if(r!==this.props){var s=this.state.status;this.props.in?s!==ct&&s!==wt&&(o=ct):(s===ct||s===wt)&&(o=re)}this.updateStatus(!1,o)},e.componentWillUnmount=function(){this.cancelNextCallback()},e.getTimeouts=function(){var r=this.props.timeout,o,s,a;return o=s=a=r,r!=null&&typeof r!="number"&&(o=r.exit,s=r.enter,a=r.appear!==void 0?r.appear:s),{exit:o,enter:s,appear:a}},e.updateStatus=function(r,o){if(r===void 0&&(r=!1),o!==null)if(this.cancelNextCallback(),o===ct){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:Bt.findDOMNode(this);s&&Nn(s)}this.performEnter(r)}else this.performExit();else this.props.unmountOnExit&&this.state.status===lt&&this.setState({status:Rt})},e.performEnter=function(r){var o=this,s=this.props.enter,a=this.context?this.context.isMounting:r,l=this.props.nodeRef?[a]:[Bt.findDOMNode(this),a],u=l[0],c=l[1],f=this.getTimeouts(),p=a?f.appear:f.enter;if(!r&&!s||ke.disabled){this.safeSetState({status:wt},function(){o.props.onEntered(u)});return}this.props.onEnter(u,c),this.safeSetState({status:ct},function(){o.props.onEntering(u,c),o.onTransitionEnd(p,function(){o.safeSetState({status:wt},function(){o.props.onEntered(u,c)})})})},e.performExit=function(){var r=this,o=this.props.exit,s=this.getTimeouts(),a=this.props.nodeRef?void 0:Bt.findDOMNode(this);if(!o||ke.disabled){this.safeSetState({status:lt},function(){r.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:re},function(){r.props.onExiting(a),r.onTransitionEnd(s.exit,function(){r.safeSetState({status:lt},function(){r.props.onExited(a)})})})},e.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},e.safeSetState=function(r,o){o=this.setNextCallback(o),this.setState(r,o)},e.setNextCallback=function(r){var o=this,s=!0;return this.nextCallback=function(a){s&&(s=!1,o.nextCallback=null,r(a))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},e.onTransitionEnd=function(r,o){this.setNextCallback(o);var s=this.props.nodeRef?this.props.nodeRef.current:Bt.findDOMNode(this),a=r==null&&!this.props.addEndListener;if(!s||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],u=l[0],c=l[1];this.props.addEndListener(u,c)}r!=null&&setTimeout(this.nextCallback,r)},e.render=function(){var r=this.state.status;if(r===Rt)return null;var o=this.props,s=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 a=it(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Ct.createElement(Ue.Provider,{value:null},typeof s=="function"?s(r,a):Ct.cloneElement(Ct.Children.only(s),a))},n}(Ct.Component);at.contextType=Ue;at.propTypes={};function _t(){}at.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:_t,onEntering:_t,onEntered:_t,onExit:_t,onExiting:_t,onExited:_t};at.UNMOUNTED=Rt;at.EXITED=lt;at.ENTERING=ct;at.ENTERED=wt;at.EXITING=re;const Qe=at,Je=t=>t.scrollTop;function Wt(t,n){var e,i;const{timeout:r,easing:o,style:s={}}=t;return{duration:(e=s.transitionDuration)!=null?e:typeof r=="number"?r:r[n.mode]||0,easing:(i=s.transitionTimingFunction)!=null?i:typeof o=="object"?o[n.mode]:o,delay:s.transitionDelay}}function Cn(t){return Dt("MuiPaper",t)}Ft("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 Rn=["className","component","elevation","square","variant"],Mn=t=>{const{square:n,elevation:e,variant:i,classes:r}=t,o={root:["root",i,!n&&"rounded",i==="elevation"&&`elevation${e}`]};return Lt(o,Cn,r)},$n=dt("div",{name:"MuiPaper",slot:"Root",overridesResolver:(t,n)=>{const{ownerState:e}=t;return[n.root,n[e.variant],!e.square&&n.rounded,e.variant==="elevation"&&n[`elevation${e.elevation}`]]}})(({theme:t,ownerState:n})=>{var e;return C({backgroundColor:(t.vars||t).palette.background.paper,color:(t.vars||t).palette.text.primary,transition:t.transitions.create("box-shadow")},!n.square&&{borderRadius:t.shape.borderRadius},n.variant==="outlined"&&{border:`1px solid ${(t.vars||t).palette.divider}`},n.variant==="elevation"&&C({boxShadow:(t.vars||t).shadows[n.elevation]},!t.vars&&t.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${Gt("#fff",Pe(n.elevation))}, ${Gt("#fff",Pe(n.elevation))})`},t.vars&&{backgroundImage:(e=t.vars.overlays)==null?void 0:e[n.elevation]}))}),zn=T.forwardRef(function(n,e){const i=jt({props:n,name:"MuiPaper"}),{className:r,component:o="div",elevation:s=1,square:a=!1,variant:l="elevation"}=i,u=it(i,Rn),c=C({},i,{component:o,elevation:s,square:a,variant:l}),f=Mn(c);return k.jsx($n,C({as:o,ownerState:c,className:ut(f.root,r),ref:e},u))}),In=zn;function An(t){return Dt("MuiIconButton",t)}const On=Ft("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),Dn=On,Fn=["edge","children","className","color","disabled","disableFocusRipple","size"],jn=t=>{const{classes:n,disabled:e,color:i,edge:r,size:o}=t,s={root:["root",e&&"disabled",i!=="default"&&`color${bt(i)}`,r&&`edge${bt(r)}`,`size${bt(o)}`]};return Lt(s,An,n)},Ln=dt(xn,{name:"MuiIconButton",slot:"Root",overridesResolver:(t,n)=>{const{ownerState:e}=t;return[n.root,e.color!=="default"&&n[`color${bt(e.color)}`],e.edge&&n[`edge${bt(e.edge)}`],n[`size${bt(e.size)}`]]}})(({theme:t,ownerState:n})=>C({textAlign:"center",flex:"0 0 auto",fontSize:t.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(t.vars||t).palette.action.active,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest})},!n.disableRipple&&{"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:Gt(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},n.edge==="start"&&{marginLeft:n.size==="small"?-3:-12},n.edge==="end"&&{marginRight:n.size==="small"?-3:-12}),({theme:t,ownerState:n})=>{var e;const i=(e=(t.vars||t).palette)==null?void 0:e[n.color];return C({},n.color==="inherit"&&{color:"inherit"},n.color!=="inherit"&&n.color!=="default"&&C({color:i==null?void 0:i.main},!n.disableRipple&&{"&:hover":C({},i&&{backgroundColor:t.vars?`rgba(${i.mainChannel} / ${t.vars.palette.action.hoverOpacity})`:Gt(i.main,t.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),n.size==="small"&&{padding:5,fontSize:t.typography.pxToRem(18)},n.size==="large"&&{padding:12,fontSize:t.typography.pxToRem(28)},{[`&.${Dn.disabled}`]:{backgroundColor:"transparent",color:(t.vars||t).palette.action.disabled}})}),Bn=T.forwardRef(function(n,e){const i=jt({props:n,name:"MuiIconButton"}),{edge:r=!1,children:o,className:s,color:a="default",disabled:l=!1,disableFocusRipple:u=!1,size:c="medium"}=i,f=it(i,Fn),p=C({},i,{edge:r,color:a,disabled:l,disableFocusRipple:u,size:c}),v=jn(p);return k.jsx(Ln,C({className:ut(v.root,s),centerRipple:!0,focusRipple:!u,disabled:l,ref:e,ownerState:p},f,{children:o}))}),tn=Bn;function en(t){return typeof t=="string"}function Hn(t,n,e){return t===void 0||en(t)?n:C({},n,{ownerState:C({},n.ownerState,e)})}function nn(t,n=[]){if(t===void 0)return{};const e={};return Object.keys(t).filter(i=>i.match(/^on[A-Z]/)&&typeof t[i]=="function"&&!n.includes(i)).forEach(i=>{e[i]=t[i]}),e}function qn(t,n,e){return typeof t=="function"?t(n,e):t}function rn(t){var n,e,i="";if(typeof t=="string"||typeof t=="number")i+=t;else if(typeof t=="object")if(Array.isArray(t))for(n=0;n!(e.match(/^on[A-Z]/)&&typeof t[e]=="function")).forEach(e=>{n[e]=t[e]}),n}function Gn(t){const{getSlotProps:n,additionalProps:e,externalSlotProps:i,externalForwardedProps:r,className:o}=t;if(!n){const v=Te(e==null?void 0:e.className,o,r==null?void 0:r.className,i==null?void 0:i.className),h=C({},e==null?void 0:e.style,r==null?void 0:r.style,i==null?void 0:i.style),_=C({},e,r,i);return v.length>0&&(_.className=v),Object.keys(h).length>0&&(_.style=h),{props:_,internalRef:void 0}}const s=nn(C({},r,i)),a=Se(i),l=Se(r),u=n(s),c=Te(u==null?void 0:u.className,e==null?void 0:e.className,o,r==null?void 0:r.className,i==null?void 0:i.className),f=C({},u==null?void 0:u.style,e==null?void 0:e.style,r==null?void 0:r.style,i==null?void 0:i.style),p=C({},u,e,l,a);return c.length>0&&(p.className=c),Object.keys(f).length>0&&(p.style=f),{props:p,internalRef:u.ref}}const Wn=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Ut(t){var n;const{elementType:e,externalSlotProps:i,ownerState:r,skipResolvingSlotProps:o=!1}=t,s=it(t,Wn),a=o?{}:qn(i,r),{props:l,internalRef:u}=Gn(C({},s,{externalSlotProps:a})),c=ht(u,a==null?void 0:a.ref,(n=t.additionalProps)==null?void 0:n.ref);return Hn(e,C({},l,{ref:c}),r)}const Un=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Vn(t){const n=parseInt(t.getAttribute("tabindex")||"",10);return Number.isNaN(n)?t.contentEditable==="true"||(t.nodeName==="AUDIO"||t.nodeName==="VIDEO"||t.nodeName==="DETAILS")&&t.getAttribute("tabindex")===null?0:t.tabIndex:n}function Xn(t){if(t.tagName!=="INPUT"||t.type!=="radio"||!t.name)return!1;const n=i=>t.ownerDocument.querySelector(`input[type="radio"]${i}`);let e=n(`[name="${t.name}"]:checked`);return e||(e=n(`[name="${t.name}"]`)),e!==t}function Yn(t){return!(t.disabled||t.tagName==="INPUT"&&t.type==="hidden"||Xn(t))}function Kn(t){const n=[],e=[];return Array.from(t.querySelectorAll(Un)).forEach((i,r)=>{const o=Vn(i);o===-1||!Yn(i)||(o===0?n.push(i):e.push({documentOrder:r,tabIndex:o,node:i}))}),e.sort((i,r)=>i.tabIndex===r.tabIndex?i.documentOrder-r.documentOrder:i.tabIndex-r.tabIndex).map(i=>i.node).concat(n)}function Zn(){return!0}function Qn(t){const{children:n,disableAutoFocus:e=!1,disableEnforceFocus:i=!1,disableRestoreFocus:r=!1,getTabbable:o=Kn,isEnabled:s=Zn,open:a}=t,l=T.useRef(!1),u=T.useRef(null),c=T.useRef(null),f=T.useRef(null),p=T.useRef(null),v=T.useRef(!1),h=T.useRef(null),_=ht(n.ref,h),y=T.useRef(null);T.useEffect(()=>{!a||!h.current||(v.current=!e)},[e,a]),T.useEffect(()=>{if(!a||!h.current)return;const g=ot(h.current);return h.current.contains(g.activeElement)||(h.current.hasAttribute("tabIndex")||h.current.setAttribute("tabIndex","-1"),v.current&&h.current.focus()),()=>{r||(f.current&&f.current.focus&&(l.current=!0,f.current.focus()),f.current=null)}},[a]),T.useEffect(()=>{if(!a||!h.current)return;const g=ot(h.current),m=E=>{y.current=E,!(i||!s()||E.key!=="Tab")&&g.activeElement===h.current&&E.shiftKey&&(l.current=!0,c.current&&c.current.focus())},x=()=>{const E=h.current;if(E===null)return;if(!g.hasFocus()||!s()||l.current){l.current=!1;return}if(E.contains(g.activeElement)||i&&g.activeElement!==u.current&&g.activeElement!==c.current)return;if(g.activeElement!==p.current)p.current=null;else if(p.current!==null)return;if(!v.current)return;let P=[];if((g.activeElement===u.current||g.activeElement===c.current)&&(P=o(h.current)),P.length>0){var S,$;const I=!!((S=y.current)!=null&&S.shiftKey&&(($=y.current)==null?void 0:$.key)==="Tab"),N=P[0],j=P[P.length-1];typeof N!="string"&&typeof j!="string"&&(I?j.focus():N.focus())}else E.focus()};g.addEventListener("focusin",x),g.addEventListener("keydown",m,!0);const b=setInterval(()=>{g.activeElement&&g.activeElement.tagName==="BODY"&&x()},50);return()=>{clearInterval(b),g.removeEventListener("focusin",x),g.removeEventListener("keydown",m,!0)}},[e,i,r,s,a,o]);const d=g=>{f.current===null&&(f.current=g.relatedTarget),v.current=!0,p.current=g.target;const m=n.props.onFocus;m&&m(g)},w=g=>{f.current===null&&(f.current=g.relatedTarget),v.current=!0};return k.jsxs(T.Fragment,{children:[k.jsx("div",{tabIndex:a?0:-1,onFocus:w,ref:u,"data-testid":"sentinelStart"}),T.cloneElement(n,{ref:_,onFocus:d}),k.jsx("div",{tabIndex:a?0:-1,onFocus:w,ref:c,"data-testid":"sentinelEnd"})]})}function Jn(t){return typeof t=="function"?t():t}const ti=T.forwardRef(function(n,e){const{children:i,container:r,disablePortal:o=!1}=n,[s,a]=T.useState(null),l=ht(T.isValidElement(i)?i.ref:null,e);if(_e(()=>{o||a(Jn(r)||document.body)},[r,o]),_e(()=>{if(s&&!o)return we(e,s),()=>{we(e,null)}},[e,s,o]),o){if(T.isValidElement(i)){const u={ref:l};return T.cloneElement(i,u)}return k.jsx(T.Fragment,{children:i})}return k.jsx(T.Fragment,{children:s&&yn.createPortal(i,s)})});function ei(t){const n=ot(t);return n.body===t?At(t).innerWidth>n.documentElement.clientWidth:t.scrollHeight>t.clientHeight}function It(t,n){n?t.setAttribute("aria-hidden","true"):t.removeAttribute("aria-hidden")}function Ne(t){return parseInt(At(t).getComputedStyle(t).paddingRight,10)||0}function ni(t){const e=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(t.tagName)!==-1,i=t.tagName==="INPUT"&&t.getAttribute("type")==="hidden";return e||i}function Ce(t,n,e,i,r){const o=[n,e,...i];[].forEach.call(t.children,s=>{const a=o.indexOf(s)===-1,l=!ni(s);a&&l&&It(s,r)})}function Qt(t,n){let e=-1;return t.some((i,r)=>n(i)?(e=r,!0):!1),e}function ii(t,n){const e=[],i=t.container;if(!n.disableScrollLock){if(ei(i)){const s=Tn(ot(i));e.push({value:i.style.paddingRight,property:"padding-right",el:i}),i.style.paddingRight=`${Ne(i)+s}px`;const a=ot(i).querySelectorAll(".mui-fixed");[].forEach.call(a,l=>{e.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${Ne(l)+s}px`})}let o;if(i.parentNode instanceof DocumentFragment)o=ot(i).body;else{const s=i.parentElement,a=At(i);o=(s==null?void 0:s.nodeName)==="HTML"&&a.getComputedStyle(s).overflowY==="scroll"?s:i}e.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()=>{e.forEach(({value:o,el:s,property:a})=>{o?s.style.setProperty(a,o):s.style.removeProperty(a)})}}function ri(t){const n=[];return[].forEach.call(t.children,e=>{e.getAttribute("aria-hidden")==="true"&&n.push(e)}),n}class oi{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(n,e){let i=this.modals.indexOf(n);if(i!==-1)return i;i=this.modals.length,this.modals.push(n),n.modalRef&&It(n.modalRef,!1);const r=ri(e);Ce(e,n.mount,n.modalRef,r,!0);const o=Qt(this.containers,s=>s.container===e);return o!==-1?(this.containers[o].modals.push(n),i):(this.containers.push({modals:[n],container:e,restore:null,hiddenSiblings:r}),i)}mount(n,e){const i=Qt(this.containers,o=>o.modals.indexOf(n)!==-1),r=this.containers[i];r.restore||(r.restore=ii(r,e))}remove(n,e=!0){const i=this.modals.indexOf(n);if(i===-1)return i;const r=Qt(this.containers,s=>s.modals.indexOf(n)!==-1),o=this.containers[r];if(o.modals.splice(o.modals.indexOf(n),1),this.modals.splice(i,1),o.modals.length===0)o.restore&&o.restore(),n.modalRef&&It(n.modalRef,e),Ce(o.container,n.mount,n.modalRef,o.hiddenSiblings,!1),this.containers.splice(r,1);else{const s=o.modals[o.modals.length-1];s.modalRef&&It(s.modalRef,!1)}return i}isTopModal(n){return this.modals.length>0&&this.modals[this.modals.length-1]===n}}function si(t){return typeof t=="function"?t():t}function ai(t){return t?t.props.hasOwnProperty("in"):!1}const li=new oi;function ci(t){const{container:n,disableEscapeKeyDown:e=!1,disableScrollLock:i=!1,manager:r=li,closeAfterTransition:o=!1,onTransitionEnter:s,onTransitionExited:a,children:l,onClose:u,open:c,rootRef:f}=t,p=T.useRef({}),v=T.useRef(null),h=T.useRef(null),_=ht(h,f),[y,d]=T.useState(!c),w=ai(l);let g=!0;(t["aria-hidden"]==="false"||t["aria-hidden"]===!1)&&(g=!1);const m=()=>ot(v.current),x=()=>(p.current.modalRef=h.current,p.current.mount=v.current,p.current),b=()=>{r.mount(x(),{disableScrollLock:i}),h.current&&(h.current.scrollTop=0)},E=be(()=>{const M=si(n)||m().body;r.add(x(),M),h.current&&b()}),P=T.useCallback(()=>r.isTopModal(x()),[r]),S=be(M=>{v.current=M,M&&(c&&P()?b():h.current&&It(h.current,g))}),$=T.useCallback(()=>{r.remove(x(),g)},[g,r]);T.useEffect(()=>()=>{$()},[$]),T.useEffect(()=>{c?E():(!w||!o)&&$()},[c,$,w,o,E]);const I=M=>z=>{var q;(q=M.onKeyDown)==null||q.call(M,z),!(z.key!=="Escape"||z.which===229||!P())&&(e||(z.stopPropagation(),u&&u(z,"escapeKeyDown")))},N=M=>z=>{var q;(q=M.onClick)==null||q.call(M,z),z.target===z.currentTarget&&u&&u(z,"backdropClick")};return{getRootProps:(M={})=>{const z=nn(t);delete z.onTransitionEnter,delete z.onTransitionExited;const q=C({},z,M);return C({role:"presentation"},q,{onKeyDown:I(q),ref:_})},getBackdropProps:(M={})=>{const z=M;return C({"aria-hidden":!0},z,{onClick:N(z),open:c})},getTransitionProps:()=>{const M=()=>{d(!1),s&&s()},z=()=>{d(!0),a&&a(),o&&$()};return{onEnter:Ee(M,l==null?void 0:l.props.onEnter),onExited:Ee(z,l==null?void 0:l.props.onExited)}},rootRef:_,portalRef:S,isTopModal:P,exited:y,hasTransition:w}}const ui=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],fi={entering:{opacity:1},entered:{opacity:1}},di=T.forwardRef(function(n,e){const i=Ve(),r={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{addEndListener:o,appear:s=!0,children:a,easing:l,in:u,onEnter:c,onEntered:f,onEntering:p,onExit:v,onExited:h,onExiting:_,style:y,timeout:d=r,TransitionComponent:w=Qe}=n,g=it(n,ui),m=T.useRef(null),x=ht(m,a.ref,e),b=A=>R=>{if(A){const M=m.current;R===void 0?A(M):A(M,R)}},E=b(p),P=b((A,R)=>{Je(A);const M=Wt({style:y,timeout:d,easing:l},{mode:"enter"});A.style.webkitTransition=i.transitions.create("opacity",M),A.style.transition=i.transitions.create("opacity",M),c&&c(A,R)}),S=b(f),$=b(_),I=b(A=>{const R=Wt({style:y,timeout:d,easing:l},{mode:"exit"});A.style.webkitTransition=i.transitions.create("opacity",R),A.style.transition=i.transitions.create("opacity",R),v&&v(A)}),N=b(h),j=A=>{o&&o(m.current,A)};return k.jsx(w,C({appear:s,in:u,nodeRef:m,onEnter:P,onEntered:S,onEntering:E,onExit:I,onExited:N,onExiting:$,addEndListener:j,timeout:d},g,{children:(A,R)=>T.cloneElement(a,C({style:C({opacity:0,visibility:A==="exited"&&!u?"hidden":void 0},fi[A],y,a.props.style),ref:x},R))}))}),hi=di;function pi(t){return Dt("MuiBackdrop",t)}Ft("MuiBackdrop",["root","invisible"]);const vi=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],gi=t=>{const{classes:n,invisible:e}=t;return Lt({root:["root",e&&"invisible"]},pi,n)},xi=dt("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(t,n)=>{const{ownerState:e}=t;return[n.root,e.invisible&&n.invisible]}})(({ownerState:t})=>C({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"},t.invisible&&{backgroundColor:"transparent"})),yi=T.forwardRef(function(n,e){var i,r,o;const s=jt({props:n,name:"MuiBackdrop"}),{children:a,className:l,component:u="div",components:c={},componentsProps:f={},invisible:p=!1,open:v,slotProps:h={},slots:_={},TransitionComponent:y=hi,transitionDuration:d}=s,w=it(s,vi),g=C({},s,{component:u,invisible:p}),m=gi(g),x=(i=h.root)!=null?i:f.root;return k.jsx(y,C({in:v,timeout:d},w,{children:k.jsx(xi,C({"aria-hidden":!0},x,{as:(r=(o=_.root)!=null?o:c.Root)!=null?r:u,className:ut(m.root,l,x==null?void 0:x.className),ownerState:C({},g,x==null?void 0:x.ownerState),classes:m,ref:e,children:a}))}))}),mi=yi;function _i(t){return Dt("MuiModal",t)}Ft("MuiModal",["root","hidden","backdrop"]);const wi=["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"],bi=t=>{const{open:n,exited:e,classes:i}=t;return Lt({root:["root",!n&&e&&"hidden"],backdrop:["backdrop"]},_i,i)},Ei=dt("div",{name:"MuiModal",slot:"Root",overridesResolver:(t,n)=>{const{ownerState:e}=t;return[n.root,!e.open&&e.exited&&n.hidden]}})(({theme:t,ownerState:n})=>C({position:"fixed",zIndex:(t.vars||t).zIndex.modal,right:0,bottom:0,top:0,left:0},!n.open&&n.exited&&{visibility:"hidden"})),Pi=dt(mi,{name:"MuiModal",slot:"Backdrop",overridesResolver:(t,n)=>n.backdrop})({zIndex:-1}),ki=T.forwardRef(function(n,e){var i,r,o,s,a,l;const u=jt({name:"MuiModal",props:n}),{BackdropComponent:c=Pi,BackdropProps:f,className:p,closeAfterTransition:v=!1,children:h,container:_,component:y,components:d={},componentsProps:w={},disableAutoFocus:g=!1,disableEnforceFocus:m=!1,disableEscapeKeyDown:x=!1,disablePortal:b=!1,disableRestoreFocus:E=!1,disableScrollLock:P=!1,hideBackdrop:S=!1,keepMounted:$=!1,onBackdropClick:I,open:N,slotProps:j,slots:A}=u,R=it(u,wi),M=C({},u,{closeAfterTransition:v,disableAutoFocus:g,disableEnforceFocus:m,disableEscapeKeyDown:x,disablePortal:b,disableRestoreFocus:E,disableScrollLock:P,hideBackdrop:S,keepMounted:$}),{getRootProps:z,getBackdropProps:q,getTransitionProps:F,portalRef:X,isTopModal:L,exited:B,hasTransition:J}=ci(C({},M,{rootRef:e})),W=C({},M,{exited:B}),H=bi(W),vt={};if(h.props.tabIndex===void 0&&(vt.tabIndex="-1"),J){const{onEnter:O,onExited:G}=F();vt.onEnter=O,vt.onExited=G}const gt=(i=(r=A==null?void 0:A.root)!=null?r:d.Root)!=null?i:Ei,kt=(o=(s=A==null?void 0:A.backdrop)!=null?s:d.Backdrop)!=null?o:c,Tt=(a=j==null?void 0:j.root)!=null?a:w.root,xt=(l=j==null?void 0:j.backdrop)!=null?l:w.backdrop,Kt=Ut({elementType:gt,externalSlotProps:Tt,externalForwardedProps:R,getSlotProps:z,additionalProps:{ref:e,as:y},ownerState:W,className:ut(p,Tt==null?void 0:Tt.className,H==null?void 0:H.root,!W.open&&W.exited&&(H==null?void 0:H.hidden))}),Zt=Ut({elementType:kt,externalSlotProps:xt,additionalProps:f,getSlotProps:O=>q(C({},O,{onClick:G=>{I&&I(G),O!=null&&O.onClick&&O.onClick(G)}})),className:ut(xt==null?void 0:xt.className,f==null?void 0:f.className,H==null?void 0:H.backdrop),ownerState:W});return!$&&!N&&(!J||B)?null:k.jsx(ti,{ref:X,container:_,disablePortal:b,children:k.jsxs(gt,C({},Kt,{children:[!S&&c?k.jsx(kt,C({},Zt)):null,k.jsx(Qn,{disableEnforceFocus:m,disableAutoFocus:g,disableRestoreFocus:E,isEnabled:L,open:N,children:T.cloneElement(h,vt)})]}))})}),Ti=ki,Si=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function oe(t){return`scale(${t}, ${t**2})`}const Ni={entering:{opacity:1,transform:oe(1)},entered:{opacity:1,transform:"none"}},Jt=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),on=T.forwardRef(function(n,e){const{addEndListener:i,appear:r=!0,children:o,easing:s,in:a,onEnter:l,onEntered:u,onEntering:c,onExit:f,onExited:p,onExiting:v,style:h,timeout:_="auto",TransitionComponent:y=Qe}=n,d=it(n,Si),w=T.useRef(),g=T.useRef(),m=Ve(),x=T.useRef(null),b=ht(x,o.ref,e),E=R=>M=>{if(R){const z=x.current;M===void 0?R(z):R(z,M)}},P=E(c),S=E((R,M)=>{Je(R);const{duration:z,delay:q,easing:F}=Wt({style:h,timeout:_,easing:s},{mode:"enter"});let X;_==="auto"?(X=m.transitions.getAutoHeightDuration(R.clientHeight),g.current=X):X=z,R.style.transition=[m.transitions.create("opacity",{duration:X,delay:q}),m.transitions.create("transform",{duration:Jt?X:X*.666,delay:q,easing:F})].join(","),l&&l(R,M)}),$=E(u),I=E(v),N=E(R=>{const{duration:M,delay:z,easing:q}=Wt({style:h,timeout:_,easing:s},{mode:"exit"});let F;_==="auto"?(F=m.transitions.getAutoHeightDuration(R.clientHeight),g.current=F):F=M,R.style.transition=[m.transitions.create("opacity",{duration:F,delay:z}),m.transitions.create("transform",{duration:Jt?F:F*.666,delay:Jt?z:z||F*.333,easing:q})].join(","),R.style.opacity=0,R.style.transform=oe(.75),f&&f(R)}),j=E(p),A=R=>{_==="auto"&&(w.current=setTimeout(R,g.current||0)),i&&i(x.current,R)};return T.useEffect(()=>()=>{clearTimeout(w.current)},[]),k.jsx(y,C({appear:r,in:a,nodeRef:x,onEnter:S,onEntered:$,onEntering:P,onExit:N,onExited:j,onExiting:I,addEndListener:A,timeout:_==="auto"?null:_},d,{children:(R,M)=>T.cloneElement(o,C({style:C({opacity:0,transform:oe(.75),visibility:R==="exited"&&!a?"hidden":void 0},Ni[R],h,o.props.style),ref:b},M))}))});on.muiSupportAuto=!0;const Ci=on;function Ri(t){return Dt("MuiPopover",t)}Ft("MuiPopover",["root","paper"]);const Mi=["onEntering"],$i=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],zi=["slotProps"];function Re(t,n){let e=0;return typeof n=="number"?e=n:n==="center"?e=t.height/2:n==="bottom"&&(e=t.height),e}function Me(t,n){let e=0;return typeof n=="number"?e=n:n==="center"?e=t.width/2:n==="right"&&(e=t.width),e}function $e(t){return[t.horizontal,t.vertical].map(n=>typeof n=="number"?`${n}px`:n).join(" ")}function te(t){return typeof t=="function"?t():t}const Ii=t=>{const{classes:n}=t;return Lt({root:["root"],paper:["paper"]},Ri,n)},Ai=dt(Ti,{name:"MuiPopover",slot:"Root",overridesResolver:(t,n)=>n.root})({}),Oi=dt(In,{name:"MuiPopover",slot:"Paper",overridesResolver:(t,n)=>n.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Di=T.forwardRef(function(n,e){var i,r,o;const s=jt({props:n,name:"MuiPopover"}),{action:a,anchorEl:l,anchorOrigin:u={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:f="anchorEl",children:p,className:v,container:h,elevation:_=8,marginThreshold:y=16,open:d,PaperProps:w={},slots:g,slotProps:m,transformOrigin:x={vertical:"top",horizontal:"left"},TransitionComponent:b=Ci,transitionDuration:E="auto",TransitionProps:{onEntering:P}={},disableScrollLock:S=!1}=s,$=it(s.TransitionProps,Mi),I=it(s,$i),N=(i=m==null?void 0:m.paper)!=null?i:w,j=T.useRef(),A=ht(j,N.ref),R=C({},s,{anchorOrigin:u,anchorReference:f,elevation:_,marginThreshold:y,externalPaperSlotProps:N,transformOrigin:x,TransitionComponent:b,transitionDuration:E,TransitionProps:$}),M=Ii(R),z=T.useCallback(()=>{if(f==="anchorPosition")return c;const O=te(l),tt=(O&&O.nodeType===1?O:ot(j.current).body).getBoundingClientRect();return{top:tt.top+Re(tt,u.vertical),left:tt.left+Me(tt,u.horizontal)}},[l,u.horizontal,u.vertical,c,f]),q=T.useCallback(O=>({vertical:Re(O,x.vertical),horizontal:Me(O,x.horizontal)}),[x.horizontal,x.vertical]),F=T.useCallback(O=>{const G={width:O.offsetWidth,height:O.offsetHeight},tt=q(G);if(f==="none")return{top:null,left:null,transformOrigin:$e(tt)};const pe=z();let yt=pe.top-tt.vertical,mt=pe.left-tt.horizontal;const ve=yt+G.height,ge=mt+G.width,xe=At(te(l)),ye=xe.innerHeight-y,me=xe.innerWidth-y;if(y!==null&&ytye){const nt=ve-ye;yt-=nt,tt.vertical+=nt}if(y!==null&&mtme){const nt=ge-me;mt-=nt,tt.horizontal+=nt}return{top:`${Math.round(yt)}px`,left:`${Math.round(mt)}px`,transformOrigin:$e(tt)}},[l,f,z,q,y]),[X,L]=T.useState(d),B=T.useCallback(()=>{const O=j.current;if(!O)return;const G=F(O);G.top!==null&&(O.style.top=G.top),G.left!==null&&(O.style.left=G.left),O.style.transformOrigin=G.transformOrigin,L(!0)},[F]);T.useEffect(()=>(S&&window.addEventListener("scroll",B),()=>window.removeEventListener("scroll",B)),[l,S,B]);const J=(O,G)=>{P&&P(O,G),B()},W=()=>{L(!1)};T.useEffect(()=>{d&&B()}),T.useImperativeHandle(a,()=>d?{updatePosition:()=>{B()}}:null,[d,B]),T.useEffect(()=>{if(!d)return;const O=kn(()=>{B()}),G=At(l);return G.addEventListener("resize",O),()=>{O.clear(),G.removeEventListener("resize",O)}},[l,d,B]);let H=E;E==="auto"&&!b.muiSupportAuto&&(H=void 0);const vt=h||(l?ot(te(l)).body:void 0),gt=(r=g==null?void 0:g.root)!=null?r:Ai,kt=(o=g==null?void 0:g.paper)!=null?o:Oi,Tt=Ut({elementType:kt,externalSlotProps:C({},N,{style:X?N.style:C({},N.style,{opacity:0})}),additionalProps:{elevation:_,ref:A},ownerState:R,className:ut(M.paper,N==null?void 0:N.className)}),xt=Ut({elementType:gt,externalSlotProps:(m==null?void 0:m.root)||{},externalForwardedProps:I,additionalProps:{ref:e,slotProps:{backdrop:{invisible:!0}},container:vt,open:d},ownerState:R,className:ut(M.root,v)}),{slotProps:Kt}=xt,Zt=it(xt,zi);return k.jsx(gt,C({},Zt,!en(gt)&&{slotProps:Kt,disableScrollLock:S},{children:k.jsx(b,C({appear:!0,in:d,onEntering:J,onExited:W,timeout:H},$,{children:k.jsx(kt,C({},Tt,{children:p}))}))}))}),Co=Di;function Fi(t,n){if(Object.is(t,n))return!0;if(typeof t!="object"||t===null||typeof n!="object"||n===null)return!1;if(t instanceof Map&&n instanceof Map){if(t.size!==n.size)return!1;for(const[i,r]of t)if(!Object.is(r,n.get(i)))return!1;return!0}if(t instanceof Set&&n instanceof Set){if(t.size!==n.size)return!1;for(const i of t)if(!n.has(i))return!1;return!0}const e=Object.keys(t);if(e.length!==Object.keys(n).length)return!1;for(let i=0;i{const i=t(e);return Fi(n.current,i)?n.current:n.current=i}}function ze(t,n,e){var i,r=1;t==null&&(t=0),n==null&&(n=0),e==null&&(e=0);function o(){var s,a=i.length,l,u=0,c=0,f=0;for(s=0;s=(l=(s+a)/2))?s=l:a=l,i=r,!(r=r[f=+c]))return i[f]=o,t;if(u=+t._x.call(null,r.data),n===u)return o.next=r,i?i[f]=o:t._root=o,t;do i=i?i[f]=new Array(2):t._root=new Array(2),(c=n>=(l=(s+a)/2))?s=l:a=l;while((f=+c)==(p=+(u>=l)));return i[p]=r,i[f]=o,t}function Hi(t){Array.isArray(t)||(t=Array.from(t));const n=t.length,e=new Float64Array(n);let i=1/0,r=-1/0;for(let o=0,s;or&&(r=s));if(i>r)return this;this.cover(i).cover(r);for(let o=0;ot||t>=e;)switch(s=+(ts||(o=u.x1)=f))&&(u=a[a.length-1],a[a.length-1]=a[a.length-1-c],a[a.length-1-c]=u)}else{var p=Math.abs(t-+this._x.call(null,l.data));p=(u=(s+a)/2))?s=u:a=u,n=e,!(e=e[f=+c]))return this;if(!e.length)break;n[f+1&1]&&(i=n,p=f)}for(;e.data!==t;)if(r=e,!(e=e.next))return this;return(o=e.next)&&delete e.next,r?(o?r.next=o:delete r.next,this):n?(o?n[f]=o:delete n[f],(e=n[0]||n[1])&&e===(n[1]||n[0])&&!e.length&&(i?i[p]=e:this._root=e),this):(this._root=o,this)}function Xi(t){for(var n=0,e=t.length;n=(f=(a+u)/2))?a=f:u=f,(y=e>=(p=(l+c)/2))?l=p:c=p,r=o,!(o=o[d=y<<1|_]))return r[d]=s,t;if(v=+t._x.call(null,o.data),h=+t._y.call(null,o.data),n===v&&e===h)return s.next=o,r?r[d]=s:t._root=s,t;do r=r?r[d]=new Array(4):t._root=new Array(4),(_=n>=(f=(a+u)/2))?a=f:u=f,(y=e>=(p=(l+c)/2))?l=p:c=p;while((d=y<<1|_)===(w=(h>=p)<<1|v>=f));return r[w]=o,r[d]=s,t}function nr(t){var n,e,i=t.length,r,o,s=new Array(i),a=new Array(i),l=1/0,u=1/0,c=-1/0,f=-1/0;for(e=0;ec&&(c=r),of&&(f=o));if(l>c||u>f)return this;for(this.cover(l,u).cover(c,f),e=0;et||t>=r||i>n||n>=o;)switch(u=(nc||(a=h.y0)>f||(l=h.x1)=d)<<1|t>=y)&&(h=p[p.length-1],p[p.length-1]=p[p.length-1-_],p[p.length-1-_]=h)}else{var w=t-+this._x.call(null,v.data),g=n-+this._y.call(null,v.data),m=w*w+g*g;if(m=(p=(s+l)/2))?s=p:l=p,(_=f>=(v=(a+u)/2))?a=v:u=v,n=e,!(e=e[y=_<<1|h]))return this;if(!e.length)break;(n[y+1&3]||n[y+2&3]||n[y+3&3])&&(i=n,d=y)}for(;e.data!==t;)if(r=e,!(e=e.next))return this;return(o=e.next)&&delete e.next,r?(o?r.next=o:delete r.next,this):n?(o?n[y]=o:delete n[y],(e=n[0]||n[1]||n[2]||n[3])&&e===(n[3]||n[2]||n[1]||n[0])&&!e.length&&(i?i[d]=e:this._root=e),this):(this._root=o,this)}function lr(t){for(var n=0,e=t.length;n=(h=(l+f)/2))?l=h:f=h,(x=e>=(_=(u+p)/2))?u=_:p=_,(b=i>=(y=(c+v)/2))?c=y:v=y,o=s,!(s=s[E=b<<2|x<<1|m]))return o[E]=a,t;if(d=+t._x.call(null,s.data),w=+t._y.call(null,s.data),g=+t._z.call(null,s.data),n===d&&e===w&&i===g)return a.next=s,o?o[E]=a:t._root=a,t;do o=o?o[E]=new Array(8):t._root=new Array(8),(m=n>=(h=(l+f)/2))?l=h:f=h,(x=e>=(_=(u+p)/2))?u=_:p=_,(b=i>=(y=(c+v)/2))?c=y:v=y;while((E=b<<2|x<<1|m)===(P=(g>=y)<<2|(w>=_)<<1|d>=h));return o[P]=s,o[E]=a,t}function yr(t){Array.isArray(t)||(t=Array.from(t));const n=t.length,e=new Float64Array(n),i=new Float64Array(n),r=new Float64Array(n);let o=1/0,s=1/0,a=1/0,l=-1/0,u=-1/0,c=-1/0;for(let f=0,p,v,h,_;fl&&(l=v),hu&&(u=h),_c&&(c=_));if(o>l||s>u||a>c)return this;this.cover(o,s,a).cover(l,u,c);for(let f=0;ft||t>=s||r>n||n>=a||o>e||e>=l;)switch(p=(eh||(u=g.y0)>_||(c=g.z0)>y||(f=g.x1)=E)<<2|(n>=b)<<1|t>=x)&&(g=d[d.length-1],d[d.length-1]=d[d.length-1-m],d[d.length-1-m]=g)}else{var P=t-+this._x.call(null,w.data),S=n-+this._y.call(null,w.data),$=e-+this._z.call(null,w.data),I=P*P+S*S+$*$;if(I=(_=(s+u)/2))?s=_:u=_,(g=v>=(y=(a+c)/2))?a=y:c=y,(m=h>=(d=(l+f)/2))?l=d:f=d,n=e,!(e=e[x=m<<2|g<<1|w]))return this;if(!e.length)break;(n[x+1&7]||n[x+2&7]||n[x+3&7]||n[x+4&7]||n[x+5&7]||n[x+6&7]||n[x+7&7])&&(i=n,b=x)}for(;e.data!==t;)if(r=e,!(e=e.next))return this;return(o=e.next)&&delete e.next,r?(o?r.next=o:delete r.next,this):n?(o?n[x]=o:delete n[x],(e=n[0]||n[1]||n[2]||n[3]||n[4]||n[5]||n[6]||n[7])&&e===(n[7]||n[6]||n[5]||n[4]||n[3]||n[2]||n[1]||n[0])&&!e.length&&(i?i[b]=e:this._root=e),this):(this._root=o,this)}function Pr(t){for(var n=0,e=t.length;n1&&(_=v.y+v.vy),e>2&&(y=v.z+v.vz),p.visit(m);function m(x,b,E,P,S,$,I){var N=[b,E,P,S,$,I],j=N[0],A=N[1],R=N[2],M=N[e],z=N[e+1],q=N[e+2],F=x.data,X=x.r,L=d+X;if(F){if(F.index>v.index){var B=h-F.x-F.vx,J=e>1?_-F.y-F.vy:0,W=e>2?y-F.z-F.vz:0,H=B*B+J*J+W*W;H1&&J===0&&(J=et(r),H+=J*J),e>2&&W===0&&(W=et(r),H+=W*W),H=(L-(H=Math.sqrt(H)))/H*o,v.vx+=(B*=H)*(L=(X*=X)/(w+X)),e>1&&(v.vy+=(J*=H)*L),e>2&&(v.vz+=(W*=H)*L),F.vx-=B*(L=1-L),e>1&&(F.vy-=J*L),e>2&&(F.vz-=W*L))}return}return j>h+L||M1&&(A>_+L||z<_-L)||e>2&&(R>y+L||qc.r&&(c.r=c[f].r)}function u(){if(n){var c,f=n.length,p;for(i=new Array(f),c=0;ctypeof p=="function")||Math.random,e=f.find(p=>[1,2,3].includes(p))||2,u()},a.iterations=function(c){return arguments.length?(s=+c,a):s},a.strength=function(c){return arguments.length?(o=+c,a):o},a.radius=function(c){return arguments.length?(t=typeof c=="function"?c:K(+c),u(),a):t},a}function Or(t){return t.index}function Fe(t,n){var e=t.get(n);if(!e)throw new Error("node not found: "+n);return e}function Dr(t){var n=Or,e=p,i,r=K(30),o,s,a,l,u,c,f=1;t==null&&(t=[]);function p(d){return 1/Math.min(l[d.source.index],l[d.target.index])}function v(d){for(var w=0,g=t.length;w1&&(S=E.y+E.vy-b.y-b.vy||et(c)),a>2&&($=E.z+E.vz-b.z-b.vz||et(c)),I=Math.sqrt(P*P+S*S+$*$),I=(I-o[m])/I*d*i[m],P*=I,S*=I,$*=I,E.vx-=P*(N=u[m]),a>1&&(E.vy-=S*N),a>2&&(E.vz-=$*N),b.vx+=P*(N=1-N),a>1&&(b.vy+=S*N),a>2&&(b.vz+=$*N)}function h(){if(s){var d,w=s.length,g=t.length,m=new Map(s.map((b,E)=>[n(b,E,s),b])),x;for(d=0,l=new Array(w);dtypeof g=="function")||Math.random,a=w.find(g=>[1,2,3].includes(g))||2,h()},v.links=function(d){return arguments.length?(t=d,h(),v):t},v.id=function(d){return arguments.length?(n=d,v):n},v.iterations=function(d){return arguments.length?(f=+d,v):f},v.strength=function(d){return arguments.length?(e=typeof d=="function"?d:K(+d),_(),v):e},v.distance=function(d){return arguments.length?(r=typeof d=="function"?d:K(+d),y(),v):r},v}var Fr={value:()=>{}};function cn(){for(var t=0,n=arguments.length,e={},i;t=0&&(i=e.slice(r+1),e=e.slice(0,r)),e&&!n.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:i}})}qt.prototype=cn.prototype={constructor:qt,on:function(t,n){var e=this._,i=jr(t+"",e),r,o=-1,s=i.length;if(arguments.length<2){for(;++o0)for(var e=new Array(r),i=0,r,o;i=0&&t._call.call(void 0,n),t=t._next;--Et}function Le(){ft=(Xt=Ot.now())+Yt,Et=Mt=0;try{Hr()}finally{Et=0,Gr(),ft=0}}function qr(){var t=Ot.now(),n=t-Xt;n>un&&(Yt-=n,Xt=t)}function Gr(){for(var t,n=Vt,e,i=1/0;n;)n._call?(i>n._time&&(i=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:Vt=e);$t=t,ae(i)}function ae(t){if(!Et){Mt&&(Mt=clearTimeout(Mt));var n=t-ft;n>24?(t<1/0&&(Mt=setTimeout(Le,t-Ot.now()-Yt)),St&&(St=clearInterval(St))):(St||(Xt=Ot.now(),St=setInterval(qr,un)),Et=1,fn(Le))}}const Wr=1664525,Ur=1013904223,Be=4294967296;function Vr(){let t=1;return()=>(t=(Wr*t+Ur)%Be)/Be}var He=3;function ie(t){return t.x}function qe(t){return t.y}function Xr(t){return t.z}var Yr=10,Kr=Math.PI*(3-Math.sqrt(5)),Zr=Math.PI*20/(9+Math.sqrt(221));function Qr(t,n){n=n||2;var e=Math.min(He,Math.max(1,Math.round(n))),i,r=1,o=.001,s=1-Math.pow(o,1/300),a=0,l=.6,u=new Map,c=hn(v),f=cn("tick","end"),p=Vr();t==null&&(t=[]);function v(){h(),f.call("tick",i),r1&&(m.fy==null?m.y+=m.vy*=l:(m.y=m.fy,m.vy=0)),e>2&&(m.fz==null?m.z+=m.vz*=l:(m.z=m.fz,m.vz=0));return i}function _(){for(var d=0,w=t.length,g;d1&&isNaN(g.y)||e>2&&isNaN(g.z)){var m=Yr*(e>2?Math.cbrt(.5+d):e>1?Math.sqrt(.5+d):d),x=d*Kr,b=d*Zr;e===1?g.x=m:e===2?(g.x=m*Math.cos(x),g.y=m*Math.sin(x)):(g.x=m*Math.sin(x)*Math.cos(b),g.y=m*Math.cos(x),g.z=m*Math.sin(x)*Math.sin(b))}(isNaN(g.vx)||e>1&&isNaN(g.vy)||e>2&&isNaN(g.vz))&&(g.vx=0,e>1&&(g.vy=0),e>2&&(g.vz=0))}}function y(d){return d.initialize&&d.initialize(t,p,e),d}return _(),i={tick:h,restart:function(){return c.restart(v),i},stop:function(){return c.stop(),i},numDimensions:function(d){return arguments.length?(e=Math.min(He,Math.max(1,Math.round(d))),u.forEach(y),i):e},nodes:function(d){return arguments.length?(t=d,_(),u.forEach(y),i):t},alpha:function(d){return arguments.length?(r=+d,i):r},alphaMin:function(d){return arguments.length?(o=+d,i):o},alphaDecay:function(d){return arguments.length?(s=+d,i):+s},alphaTarget:function(d){return arguments.length?(a=+d,i):a},velocityDecay:function(d){return arguments.length?(l=1-d,i):1-l},randomSource:function(d){return arguments.length?(p=d,u.forEach(y),i):p},force:function(d,w){return arguments.length>1?(w==null?u.delete(d):u.set(d,y(w)),i):u.get(d)},find:function(){var d=Array.prototype.slice.call(arguments),w=d.shift()||0,g=(e>1?d.shift():null)||0,m=(e>2?d.shift():null)||0,x=d.shift()||1/0,b=0,E=t.length,P,S,$,I,N,j;for(x*=x,b=0;b1?(f.on(d,w),i):f.on(d)}}}function Ge(){var t,n,e,i,r,o=K(-30),s,a=1,l=1/0,u=.81;function c(h){var _,y=t.length,d=(n===1?le(t,ie):n===2?ue(t,ie,qe):n===3?de(t,ie,qe,Xr):null).visitAfter(p);for(r=h,_=0;_1&&(h.y=m/w),n>2&&(h.z=x/w)}else{y=h,y.x=y.data.x,n>1&&(y.y=y.data.y),n>2&&(y.z=y.data.z);do _+=s[y.data.index];while(y=y.next)}h.value=_}function v(h,_,y,d,w){if(!h.value)return!0;var g=[y,d,w][n-1],m=h.x-e.x,x=n>1?h.y-e.y:0,b=n>2?h.z-e.z:0,E=g-_,P=m*m+x*x+b*b;if(E*E/u1&&x===0&&(x=et(i),P+=x*x),n>2&&b===0&&(b=et(i),P+=b*b),P1&&(e.vy+=x*h.value*r/P),n>2&&(e.vz+=b*h.value*r/P)),!0;if(h.length||P>=l)return;(h.data!==e||h.next)&&(m===0&&(m=et(i),P+=m*m),n>1&&x===0&&(x=et(i),P+=x*x),n>2&&b===0&&(b=et(i),P+=b*b),P1&&(e.vy+=x*E),n>2&&(e.vz+=b*E));while(h=h.next)}return c.initialize=function(h,..._){t=h,i=_.find(y=>typeof y=="function")||Math.random,n=_.find(y=>[1,2,3].includes(y))||2,f()},c.strength=function(h){return arguments.length?(o=typeof h=="function"?h:K(+h),f(),c):o},c.distanceMin=function(h){return arguments.length?(a=h*h,c):Math.sqrt(a)},c.distanceMax=function(h){return arguments.length?(l=h*h,c):Math.sqrt(l)},c.theta=function(h){return arguments.length?(u=h*h,c):Math.sqrt(u)},c}function We(t,n,e,i){var r,o,s=K(.1),a,l;typeof t!="function"&&(t=K(+t)),n==null&&(n=0),e==null&&(e=0),i==null&&(i=0);function u(f){for(var p=0,v=r.length;p1&&(h.vy+=y*g),o>2&&(h.vz+=d*g)}}function c(){if(r){var f,p=r.length;for(a=new Array(p),l=new Array(p),f=0;f[1,2,3].includes(v))||2,c()},u.strength=function(f){return arguments.length?(s=typeof f=="function"?f:K(+f),c(),u):s},u.radius=function(f){return arguments.length?(t=typeof f=="function"?f:K(+f),c(),u):t},u.x=function(f){return arguments.length?(n=+f,u):n},u.y=function(f){return arguments.length?(e=+f,u):e},u.z=function(f){return arguments.length?(i=+f,u):i},u}function Jr(t){var n=K(.1),e,i,r;typeof t!="function"&&(t=K(t==null?0:+t));function o(a){for(var l=0,u=e.length,c;l{},setForces:()=>{},addRadialForce:()=>{},addDefaultForce:()=>{},addClusterForce:()=>{},addSplitForce:()=>{},simulationRestart:()=>{},getLinks:()=>[]},eo={data:null,simulation:null,selectionGraphData:{nodes:[],links:[]},disableCameraRotation:!0,scrollEventsDisabled:!1,graphRadius:1500,selectionGraphRadius:200,graphStyle:"sphere",hoveredNode:null,hoveredNodeSiblings:[],selectedNode:null,activeEdge:null,cameraFocusTrigger:!1,nearbyNodeIds:[],showSelectionGraph:!1,simulationHelpers:to,isHovering:!1,selectionPath:[],activeNode:null,highlightNodes:[],searchQuery:"",selectedNodeTypes:[],selectedLinkTypes:[]},Pt=Xe()((t,n)=>({...eo,setData:e=>{t({data:e})},setSelectedNodeTypes:e=>{const{selectedNodeTypes:i}=n(),r=i.includes(e)?i.filter(o=>o!==e):[...i,e];t({selectedNodeTypes:r})},setSelectedLinkTypes:e=>{const{selectedLinkTypes:i}=n(),r=i.includes(e)?i.filter(o=>o!==e):[...i,e];t({selectedLinkTypes:r})},resetSelectedNodeTypes:()=>t({selectedNodeTypes:[]}),resetSelectedLinkTypes:()=>t({selectedLinkTypes:[]}),setSelectionData:e=>t({selectionGraphData:e}),setScrollEventsDisabled:e=>t({scrollEventsDisabled:e}),setDisableCameraRotation:e=>t({disableCameraRotation:e}),setIsHovering:e=>t({isHovering:e}),setGraphRadius:e=>t({graphRadius:e}),setSelectionGraphRadius:e=>t({selectionGraphRadius:e}),setGraphStyle:e=>t({graphStyle:"sphere"}),setHoveredNode:e=>{const{nodesNormalized:i}=zt.getState()||{};if(e){const r=i.get(e.ref_id),o=[...(r==null?void 0:r.targets)||[],...(r==null?void 0:r.sources)||[]];t({hoveredNode:e,hoveredNodeSiblings:o})}else t({hoveredNode:e,hoveredNodeSiblings:[]})},setActiveEdge:e=>{t({activeEdge:e})},setActiveNode:e=>{t({activeNode:e})},setHighlightNodes:e=>{t({highlightNodes:e})},addToSelectionPath:e=>{const{selectionPath:i}=n();t({selectionPath:[...i,e]})},setSelectedNode:e=>{const{nodesNormalized:i}=zt.getState()||{};e||t({hoveredNode:null,selectedNode:null,disableCameraRotation:!1,showSelectionGraph:!1,selectionPath:[]});const{selectedNode:r,simulation:o,selectionPath:s}=n();if((r==null?void 0:r.ref_id)!==(e==null?void 0:e.ref_id)){const a=o.nodes().find(l=>l.ref_id===(e==null?void 0:e.ref_id))||null;if(e!=null&&e.ref_id){const l=(i==null?void 0:i.get(e==null?void 0:e.ref_id))||{};t({hoveredNode:null,selectedNode:{...a,...l},disableCameraRotation:!0,showSelectionGraph:!!e,selectionPath:[...s,a.ref_id]})}}},setCameraFocusTrigger:e=>t({cameraFocusTrigger:e}),setNearbyNodeIds:e=>{const i=n().nearbyNodeIds;(e.length!==i.length||e[0]!==i[0])&&t({nearbyNodeIds:e})},setShowSelectionGraph:e=>t({showSelectionGraph:e}),simulationHelpers:{addNodesAndLinks:(e,i,r)=>{const{simulation:o,simulationHelpers:s}=n();console.log(o.nodes()),console.log(e),o.stop();const a=structuredClone(e),l=structuredClone(i);o.stop();const u=r?[]:o.nodes(),c=r?[]:o.force("link").links();u.push(...a),c.push(...l),o.nodes(u),o.force("link").links([]).links(c),s.simulationRestart();try{console.log("try")}catch(f){console.error(f)}},addRadialForce:()=>{const{simulation:e}=n();e.nodes(e.nodes().map(i=>({...i,...Ht}))).force("y",null).force("center",ze().strength(1)).force("charge",Ge().strength(-1)).force("collide",ne().radius(i=>(i.scale||1)*95).strength(.5).iterations(1))},addClusterForce:()=>{const{simulation:e,highlightNodes:i}=n();e.nodes(e.nodes().map(r=>({...r,...Ht}))).force("cluster",We(r=>i.includes(r.ref_id)?25:500).strength(1))},addDefaultForce:()=>{const{simulation:e}=n();e.nodes(e.nodes().map(i=>({...i,...Ht}))).force("y",null).force("charge",Ge().strength(-20)).force("center",ze().strength(1)).force("collide",ne().radius(()=>250).strength(1).iterations(1))},addSplitForce:()=>{const{simulation:e}=n(),{nodeTypes:i}=zt.getState();e.stop().nodes(e.nodes().map(r=>({...r,...Ht}))).force("radial",We(200,0,0,0).strength(.1)).force("collide",ne().radius(()=>250).strength(1).iterations(1)).force("y",Jr().y(r=>{const o=i.indexOf(r.node_type),s=Math.floor(o/2)*400;return o%2===0?s:-s}).strength(10))},getLinks:()=>{const{simulation:e}=n();return e?e.force("link").links():[]},setForces:()=>{const{graphStyle:e,simulationHelpers:i}=n();e==="split"&&i.addSplitForce(),e==="sphere"&&i.addRadialForce(),e==="force"&&i.addDefaultForce(),i.simulationRestart()},simulationRestart:()=>{const{simulation:e}=n();e.alpha(1).restart()}},simulationCreate:(e,i)=>{const r=structuredClone(e),o=structuredClone(i),s=Qr([]).numDimensions(3).stop().nodes(r).force("link",Dr().strength(0).links(o).id(a=>a.ref_id));t({simulation:s})},removeSimulation:()=>t({simulation:null}),setSearchQuery:e=>t({searchQuery:e})})),pn=()=>Pt(t=>t.selectedNode),Ro=()=>Pt(t=>t.hoveredNode),no=()=>Pt(t=>t.setSelectedNode),io=()=>(Pt(Li(t=>[t.graphStyle,t.setGraphStyle])),null);U(pt).attrs({direction:"row",align:"center",justify:"space-between"})` + padding: 6px 6px 6px 11px; + background: ${rt.BG1}; + border-radius: 200px; + .icon { + color: ${rt.GRAY6}; + font-size: 20px; + cursor: pointer; + + &:hover { + color: ${rt.GRAY3}; + } + + &:active { + color: ${rt.white}; + } + + &.active { + color: ${rt.white}; + } + } + + .icon + .icon { + margin-left: 20px; + } +`;const ro=t=>k.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 18 17",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:k.jsxs("g",{id:"center",children:[k.jsx("path",{id:"Vector 121",d:"M9 4L9 1",stroke:"white","stroke-linecap":"round"}),k.jsx("path",{id:"Vector 123",d:"M14 9H17",stroke:"white","stroke-linecap":"round"}),k.jsx("path",{id:"Vector 122",d:"M9 16L9 14",stroke:"white","stroke-linecap":"round"}),k.jsx("path",{id:"Vector 124",d:"M1 9L4 9",stroke:"white","stroke-linecap":"round"}),k.jsx("circle",{id:"Ellipse 2",cx:"9.00001",cy:"9.00001",r:"5.02857",stroke:"white"})]})}),oo=()=>{const t=Pt(e=>e.cameraFocusTrigger),n=Pt(e=>e.setCameraFocusTrigger);return k.jsx(so,{href:"",onClick:()=>n(!t),size:"medium",startIcon:k.jsx(ro,{})})},so=U(Ye)` + && { + padding: 0; + width: 32px; + min-width: auto; + justify-content: center; + align-items: center; + pointer-events: all; + + .MuiButton-startIcon { + margin-left: 0; + filter: brightness(0.65); + } + } +`,vn=U.div` + position: relative; + display: inline-flex; + align-items: center; +`,ao=U.div` + visibility: hidden; + width: auto; + background-color: ${({backgroundColor:t})=>t||"white"}; + color: ${({color:t})=>t||"black"}; + text-align: ${({textAlign:t})=>t||"center"}; + min-width: ${({minWidth:t})=>t||"auto"}; + border-radius: ${({borderRadius:t})=>t||"4px"}; + padding: ${({padding:t})=>t||"5px 8px"}; + position: absolute; + z-index: 1; + ${({position:t})=>{switch(t){case"top":return"bottom: 100%; left: 50%; transform: translateX(-50%);";case"left":return"right: calc(100% + 6px); top: 50%; transform: translateY(-50%);";default:return"top: 100%; left: 50%; transform: translateX(-50%);"}}} + margin-top: ${({margin:t})=>t||"0px"}; + opacity: 0; + transition: opacity 0.3s; + white-space: ${({whiteSpace:t})=>t||"nowrap"}; + overflow: hidden; + text-overflow: ellipsis; + font-size: ${({fontSize:t})=>t||"12px"}; + font-weight: ${({fontWeight:t})=>t||"600"}; + + ${vn}:hover & { + visibility: visible; + opacity: 1; + } +`,lo=({content:t,children:n,margin:e,backgroundColor:i,color:r,padding:o,fontSize:s,fontWeight:a,borderRadius:l,minWidth:u,whiteSpace:c,position:f,textAlign:p})=>k.jsxs(vn,{children:[n,k.jsx(ao,{backgroundColor:i,borderRadius:l,color:r,fontSize:s,fontWeight:a,margin:e,minWidth:u,padding:o,position:f,textAlign:p,whiteSpace:c,children:t})]}),co=()=>{const{resetGraph:t}=zt(n=>n);return k.jsx(lo,{content:"Clear Graph",fontSize:"13px",position:"left",children:k.jsx(uo,{href:"",onClick:()=>t(),size:"medium",startIcon:k.jsx(Ke,{})})})},uo=U(Ye)` + && { + padding: 0; + width: 32px; + min-width: auto; + justify-content: center; + align-items: center; + pointer-events: all; + + .MuiButton-startIcon { + margin-left: 0; + color: #fff; + filter: brightness(0.65); + } + } +`,fo=t=>k.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 38 38",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:k.jsx("g",{id:"Property 1=Pause Normal",children:k.jsx("path",{id:"Pause",d:"M19 3C10.15 3 3 10.15 3 19C3 27.85 10.15 35 19 35C27.85 35 35 27.85 35 19C35 10.15 27.8 3 19 3ZM17.25 23.3C17.25 24.25 16.5 25.05 15.5 25.05C14.55 25.05 13.75 24.3 13.75 23.3V14.65C13.75 13.7 14.5 12.9 15.5 12.9C16.45 12.9 17.25 13.65 17.25 14.65V23.3ZM24.2 23.3C24.2 24.25 23.45 25.05 22.45 25.05C21.5 25.05 20.7 24.3 20.7 23.3V14.65C20.7 13.7 21.45 12.9 22.45 12.9C23.4 12.9 24.2 13.65 24.2 14.65V23.3Z",fill:"currentColor"})})}),ho=t=>k.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 38 38",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:k.jsx("g",{id:"Play & Pause",children:k.jsx("path",{id:"Play",d:"M19 3C10.1606 3 3 10.1606 3 19C3 27.8394 10.1606 35 19 35C27.8394 35 35 27.8394 35 19C35 10.1606 27.8338 3 19 3ZM24.0746 20.0898L16.936 24.6361C16.182 25.1149 15.1913 24.5755 15.1913 23.6784V14.5913C15.1913 13.6942 16.182 13.1548 16.936 13.6336L24.0746 18.1799C24.7736 18.6202 24.7736 19.644 24.0746 20.0898Z",fill:"currentColor"})})}),Nt={isPlaying:!1,miniPlayerIsVisible:!1,hasError:!1,isSeeking:!1,playingTime:0,playingNode:null,duration:0,volume:.5,playbackSpeed:1,playerRef:null},po=Xe()(mn((t,n)=>({...Nt,setIsSeeking:e=>t({isSeeking:e}),setIsPlaying:e=>t({isPlaying:e}),setPlayerRef:e=>t({playerRef:e}),setMiniPlayerIsVisible:e=>{t(e?{miniPlayerIsVisible:e}:{miniPlayerIsVisible:e,isPlaying:!1})},setHasError:e=>t({hasError:e}),setPlayingTime:e=>t({playingTime:e}),setDuration:e=>t({duration:e}),setVolume:e=>t({volume:e}),setPlayingNodeLink:e=>{const{playingNode:i}=n();i&&t({playingNode:{...i,link:e}})},setPlayingNode:e=>{e||t({...Nt});const i=n().playingNode;(i==null?void 0:i.ref_id)!==(e==null?void 0:e.ref_id)&&t({...Nt,miniPlayerIsVisible:!0,playingNode:e})},resetPlayer:()=>t({duration:Nt.duration,hasError:Nt.hasError}),setPlaybackSpeed:e=>t({playbackSpeed:e})}))),vo=()=>{var m,x,b,E,P;const t=T.useRef(null),[n,e]=T.useState(0),i=pn(),r=no(),[o,s]=Ze(S=>[S.sidebarIsOpen,S.setSidebarOpen]),[a,l,u,c,f,p]=po(S=>[S.isPlaying,S.setIsPlaying,S.playingTime,S.playingNode,S.miniPlayerIsVisible,S.setMiniPlayerIsVisible]),[v,h]=(m=c==null?void 0:c.properties)!=null&&m.timestamp?c.properties.timestamp.split("-").map(S=>Pn(S)):[0,0],_=(u-v)/(h-v)*100;T.useEffect(()=>{var I,N;const S=((I=t.current)==null?void 0:I.offsetWidth)||0,$=((N=t.current)==null?void 0:N.scrollWidth)||0;e($-S)},[]);const y=S=>{p(!1),S.stopPropagation()},d=()=>{r(c),s(!0)},w=o&&(i==null?void 0:i.ref_id)!==(c==null?void 0:c.ref_id)||c&&!o,g=((x=window.location)==null?void 0:x.hostname)==="graphmindset.sphinx.chat";return f&&c&&w&&!g?k.jsxs(go,{onClick:d,children:[k.jsxs(xo,{children:[k.jsx(wn,{src:((b=c==null?void 0:c.properties)==null?void 0:b.image_url)||"",type:c.node_type}),k.jsxs(yo,{children:[k.jsxs(Eo,{ref:t,children:[k.jsx(bo,{className:"title",scrollValue:n,children:(E=c==null?void 0:c.properties)==null?void 0:E.episode_title}),k.jsx("div",{className:"subtitle",children:(P=c==null?void 0:c.properties)==null?void 0:P.show_title})]}),k.jsx(_o,{"data-testid":"play-pause-button",onClick:S=>{l(!a),S.stopPropagation()},size:"small",children:a?k.jsx(fo,{"data-testid":"pause-icon"}):k.jsx(ho,{"data-testid":"play-icon"})})]}),k.jsx(mo,{onClick:S=>y(S),children:k.jsx(Ke,{})})]}),k.jsx(wo,{value:_,variant:"determinate"})]}):null},go=U(pt).attrs({direction:"column",align:"stretch",justify:"space-between"})` + padding: 8px; + background: ${rt.BG1}; + border-radius: 6px; + width: 320px; + height: 72px; + margin-top: 16px; + cursor: pointer; + z-index: 0; +`,xo=U(pt).attrs({direction:"row",align:"center",justify:"flex-start"})``,yo=U(pt).attrs({direction:"row",align:"center",justify:"space-between"})` + flex: 1; + color: ${rt.white}; + margin-left: 11px; + + .title { + font-size: 13px; + margin-bottom: 2px; + font-weight: 500; + } + + .subtitle { + font-size: 11px; + color: ${rt.GRAY6}; + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; + } +`,mo=U(tn)` + padding: 8px; + color: ${rt.GRAY6}; + z-index: 100000; +`,_o=U(tn)` + && { + font-size: 36px; + padding: 2px; + margin-left: 8px; + overflow: hidden; + z-index: 100000; + } +`,wo=U(_n)` + && { + flex-shrink: 0; + height: 2px; + background-color: ${rt.white}; + color: blue; + + .MuiLinearProgress-bar { + background: rgb(65, 90, 127); + } + } +`,bo=U.div` + white-space: nowrap; + overflow: hidden; + width: max-content; + animation: scrollText 12s linear infinite; + + @keyframes scrollText { + 0%, + 15% { + transform: translateX(0); + } + + 60%, + 75% { + transform: translateX(${t=>-t.scrollValue}px); + } + + 100% { + transform: translateX(0); + } + } + color: #fff; +`,Eo=U(pt)` + overflow: hidden; + flex: 1; +`,Po=()=>{const t=pn(),n=zt(r=>r.isFetching),e=Ze(r=>r.universeQuestionIsOpen),{isAdmin:i}=bn(r=>r);return k.jsxs(ko,{align:"flex-end",id:"actions-toolbar",children:[k.jsxs(To,{children:[!n&&!e&&i&&k.jsx(co,{}),!n&&!e&&k.jsx(oo,{})]}),k.jsx(pt,{align:"center",direction:"row",mt:16,children:!n&&!e&&k.jsx(io,{})}),k.jsx(vo,{},t==null?void 0:t.ref_id)]})},ko=U(pt)` + position: absolute; + right: 20px; + bottom: 20px; + pointer-events: all; +`,To=U.div` + display: flex; + flex-direction: column; + gap: 4px; +`,Mo=()=>k.jsx(So,{children:k.jsx(Po,{})}),So=U("div")(({theme:t})=>({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",[t.breakpoints.down("sm")]:{top:50}})),$o=()=>{const t=T.useContext(En);return t==null?void 0:t.socket};export{Po as A,Tn as B,ro as C,Oi as D,ti as E,Ci as G,tn as I,Mo as O,Co as P,lo as T,$o as a,po as b,fo as c,ho as d,Pt as e,pn as f,Ro as g,Li as h,nn as i,At as j,Qe as k,kn as l,Wt as m,en as n,ot as o,Ut as p,Hn as q,Je as r,In as s,Dr as t,no as u,Pn as v,Ge as w,ze as x,ne as y,Qr as z}; diff --git a/build/assets/index-db89c0a2.js b/build/assets/index-13ae7535.js similarity index 66% rename from build/assets/index-db89c0a2.js rename to build/assets/index-13ae7535.js index 4feaa4fbc..d6842d25b 100644 --- a/build/assets/index-db89c0a2.js +++ b/build/assets/index-13ae7535.js @@ -1,4 +1,4 @@ -import{s as v,a as B,T as z,F as r,r as f,al as $,j as e,aW as J,aX as K,bb as X,B as E,bc as U,q as Z,bd as Q,e as D,t as N,aV as O,aZ as ee,v as te,bu as ne,bz as re}from"./index-1d805415.js";import{p as V}from"./index-5fe8c70d.js";import{C as W}from"./ClipLoader-9eb1180c.js";import{l as G}from"./index-3ac851f3.js";import{A as Y}from"./index-f3df532f.js";import{c as oe}from"./index-64f1c910.js";import"./three.module-71ec604c.js";import"./index-5b7bb80c.js";import"./Stack-2f0ef3f5.js";import"./createSvgIcon-b68c7390.js";import"./TextareaAutosize-3b102137.js";const q=a=>a.charAt(0).toUpperCase()+a.slice(1).replace(/_/g," "),k=a=>a?[...a].sort((l,x)=>Number(x.required)-Number(l.required)):[],H=a=>a?a.filter(l=>l.key!=="node_key"):[],ae=({handleSelectType:a,skipToStep:l,nodeType:x,selectedValues:n})=>{const[h,w]=f.useState(!1),[m,C]=f.useState(),{watch:j,formState:{isValid:t}}=$();f.useEffect(()=>{(async()=>{w(!0);const o=await U(x),T=V(o),A=H(T);C(A),w(!1)})()},[x,j]);const s=c=>c.charAt(0).toUpperCase()+c.slice(1).replace(/_/g," "),p=(m?[...m].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=()=>{a(""),l("sourceType")},b=!t||h||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(se,{children:"Required Properties"})})}),e.jsx(ie,{children:h?e.jsx(r,{style:{margin:"auto"},children:e.jsx(W,{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(z,{children:s(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"})})]})]})},se=v(z)` +import{s as v,a as q,T as F,F as r,r as f,ai as U,j as e,aT as J,aU as K,b8 as Q,B as E,b9 as $,h as X,ba as Z,a0 as D,i as N,aS as O,aW as ee,k as te,br as ne,bw as re}from"./index-2353781d.js";import{p as V}from"./index-5fe8c70d.js";import{C as W}from"./ClipLoader-c90857c8.js";import{f as G}from"./index-068043a5.js";import{A as Y}from"./index-da8a239d.js";import{c as oe}from"./index-64f1c910.js";import"./three.module-71ec604c.js";import"./index-33375362.js";import"./Stack-ff0fb8f6.js";import"./createSvgIcon-09ff14f6.js";import"./TextareaAutosize-c42da1c8.js";const B=a=>a.charAt(0).toUpperCase()+a.slice(1).replace(/_/g," "),k=a=>a?[...a].sort((l,x)=>Number(x.required)-Number(l.required)):[],H=a=>a?a.filter(l=>l.key!=="node_key"):[],ae=({handleSelectType:a,skipToStep:l,nodeType:x,selectedValues:n})=>{const[h,w]=f.useState(!1),[m,C]=f.useState(),{watch:j,formState:{isValid:t}}=U();f.useEffect(()=>{(async()=>{w(!0);const o=await $(x),T=V(o),A=H(T);C(A),w(!1)})()},[x,j]);const s=c=>c.charAt(0).toUpperCase()+c.slice(1).replace(/_/g," "),p=(m?[...m].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=()=>{a(""),l("sourceType")},b=!t||h||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(se,{children:"Required Properties"})})}),e.jsx(ie,{children:h?e.jsx(r,{style:{margin:"auto"},children:e.jsx(W,{color:q.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:s(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:Q}}:{}}})]})}))})}),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"})})]})]})},se=v(F)` font-size: 22px; font-weight: 600; font-family: 'Barlow'; @@ -22,14 +22,14 @@ import{s as v,a as B,T as z,F as r,r as f,al as $,j as e,aW as J,aX as K,bb as X gap: 10px; #item-name { - color: ${B.GRAY7}; - -webkit-text-fill-color: ${B.GRAY7}; + color: ${q.GRAY7}; + -webkit-text-fill-color: ${q.GRAY7}; } -`,le=({nodeType:a,onclose:l,selectedNodeType:x})=>e.jsxs(r,{children:[e.jsx(r,{mb:20,children:e.jsx(R,{children:"Confirm Type Change"})}),e.jsx(r,{mb:25,children:e.jsxs(R,{children:["From: ",x]})}),e.jsx(r,{mb:25,children:e.jsxs(R,{children:["To: ",a]})}),e.jsxs(r,{direction:"row",children:[e.jsx(r,{grow:1,children:e.jsx(E,{color:"secondary",onClick:l,size:"large",variant:"contained",children:"Cancel"})}),e.jsx(r,{grow:1,ml:20,children:e.jsx(E,{color:"secondary",size:"large",type:"submit",variant:"contained",children:"Confirm"})})]})]}),R=v(z)` +`,le=({nodeType:a,onclose:l,selectedNodeType:x})=>e.jsxs(r,{children:[e.jsx(r,{mb:20,children:e.jsx(R,{children:"Confirm Type Change"})}),e.jsx(r,{mb:25,children:e.jsxs(R,{children:["From: ",x]})}),e.jsx(r,{mb:25,children:e.jsxs(R,{children:["To: ",a]})}),e.jsxs(r,{direction:"row",children:[e.jsx(r,{grow:1,children:e.jsx(E,{color:"secondary",onClick:l,size:"large",variant:"contained",children:"Cancel"})}),e.jsx(r,{grow:1,ml:20,children:e.jsx(E,{color:"secondary",size:"large",type:"submit",variant:"contained",children:"Confirm"})})]})]}),R=v(F)` font-size: 22px; font-weight: 600; font-family: 'Barlow'; -`,pe=({handleSelectType:a,skipToStep:l,selectedNodeType:x,nodeType:n,selectedValues:h,setSelectedValues:w})=>{const[m,C]=f.useState(!1),[j,t]=f.useState(),[s,i]=f.useState(),{watch:p}=$();f.useEffect(()=>{const d=async(u,y)=>{C(!0);const g=await U(u),F=V(g),_=H(F);y(_),C(!1)};n&&d(n,t),x&&d(x,i)},[n,x,p]);const S=f.useMemo(()=>k(j),[j]),b=f.useMemo(()=>k(s),[s]),c=()=>{a(""),l("sourceType")};f.useEffect(()=>{if(j&&s){const d=s.reduce((u,y)=>{const g=j.find(F=>F.key===y.key);return u[y.key]=g?y.key:"none",u},{});w(d)}},[j,s,w]);const o=(d,u)=>{w(y=>({...y,[d]:u}))},T=()=>{const d=S.every(({key:u,required:y})=>!y||y&&h[u]&&h[u]!=="none");l(d?"createConfirmation":"requiredProperties")},A=f.useMemo(()=>b.map(({key:d})=>{const u=h[d]||"none",y=S.filter(g=>!Object.values(h).includes(g.key)||g.key===u).map(g=>({label:q(g.key),value:g.key}));return y.unshift({label:"None",value:"none"}),{key:d,autoCompleteOptions:y,selectedValue:u}}),[b,S,h]);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(de,{children:"Map Properties"})})}),e.jsx(ue,{children:m?e.jsx(r,{style:{margin:"auto"},children:e.jsx(W,{color:B.lightGray})}):e.jsxs(xe,{children:[e.jsxs(fe,{children:[e.jsx(I,{children:q(x)}),b.map(({key:d})=>e.jsx(he,{children:e.jsx(z,{children:q(d)})},d))]}),e.jsxs(me,{children:[e.jsx(I,{children:q(n)}),A.map(({key:d,autoCompleteOptions:u,selectedValue:y})=>e.jsx(r,{children:e.jsx(Y,{isLoading:m,onSelect:g=>o(d,g?g.value:"none"),options:u,selectedValue:u.find(g=>g.value===y)})},d))]})]})}),e.jsxs(r,{direction:"row",children:[e.jsx(r,{grow:1,children:e.jsx(E,{color:"secondary",onClick:c,size:"large",variant:"contained",children:"Prev"})}),e.jsx(r,{grow:1,ml:20,children:e.jsx(E,{color:"secondary",disabled:m,onClick:T,size:"large",variant:"contained",children:"Next"})})]})]})},de=v(z)` +`,pe=({handleSelectType:a,skipToStep:l,selectedNodeType:x,nodeType:n,selectedValues:h,setSelectedValues:w})=>{const[m,C]=f.useState(!1),[j,t]=f.useState(),[s,i]=f.useState(),{watch:p}=U();f.useEffect(()=>{const d=async(u,y)=>{C(!0);const g=await $(u),z=V(g),_=H(z);y(_),C(!1)};n&&d(n,t),x&&d(x,i)},[n,x,p]);const S=f.useMemo(()=>k(j),[j]),b=f.useMemo(()=>k(s),[s]),c=()=>{a(""),l("sourceType")};f.useEffect(()=>{if(j&&s){const d=s.reduce((u,y)=>{const g=j.find(z=>z.key===y.key);return u[y.key]=g?y.key:"none",u},{});w(d)}},[j,s,w]);const o=(d,u)=>{w(y=>({...y,[d]:u}))},T=()=>{const d=S.every(({key:u,required:y})=>!y||y&&h[u]&&h[u]!=="none");l(d?"createConfirmation":"requiredProperties")},A=f.useMemo(()=>b.map(({key:d})=>{const u=h[d]||"none",y=S.filter(g=>!Object.values(h).includes(g.key)||g.key===u).map(g=>({label:B(g.key),value:g.key}));return y.unshift({label:"None",value:"none"}),{key:d,autoCompleteOptions:y,selectedValue:u}}),[b,S,h]);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(de,{children:"Map Properties"})})}),e.jsx(ue,{children:m?e.jsx(r,{style:{margin:"auto"},children:e.jsx(W,{color:q.lightGray})}):e.jsxs(xe,{children:[e.jsxs(fe,{children:[e.jsx(I,{children:B(x)}),b.map(({key:d})=>e.jsx(he,{children:e.jsx(F,{children:B(d)})},d))]}),e.jsxs(me,{children:[e.jsx(I,{children:B(n)}),A.map(({key:d,autoCompleteOptions:u,selectedValue:y})=>e.jsx(r,{children:e.jsx(Y,{isLoading:m,onSelect:g=>o(d,g?g.value:"none"),options:u,selectedValue:u.find(g=>g.value===y)})},d))]})]})}),e.jsxs(r,{direction:"row",children:[e.jsx(r,{grow:1,children:e.jsx(E,{color:"secondary",onClick:c,size:"large",variant:"contained",children:"Prev"})}),e.jsx(r,{grow:1,ml:20,children:e.jsx(E,{color:"secondary",disabled:m,onClick:T,size:"large",variant:"contained",children:"Next"})})]})]})},de=v(F)` font-size: 22px; font-weight: 600; font-family: 'Barlow'; @@ -70,8 +70,8 @@ import{s as v,a as B,T as z,F as r,r as f,al as $,j as e,aW as J,aX as K,bb as X font-family: 'Barlow'; color: white; margin-bottom: 15px; -`,ye={label:"Not Selected",value:"Not Selected"},ge=[{label:"Corporation",value:"Corporation"},{label:"Event",value:"Event"},{label:"Image",value:"Image"},{label:"Organization",value:"Organization"},{label:"Person",value:"Person"},{label:"Place",value:"Place"},{label:"Project",value:"Project"},{label:"Software",value:"Software"},{label:"Topic",value:"Topic"}],je=({skipToStep:a,allowNextStep:l,onSelectType:x,selectedType:n})=>{const[h]=Z(i=>[i.customSchemaFeatureFlag]),[w,m]=f.useState(null),[C,j]=f.useState(!1),t=G();f.useEffect(()=>{(async()=>{var p;if(h){j(!0);try{const S=await Q(),b=["about","schema",(p=t==null?void 0:t.node_type)==null?void 0:p.toLowerCase()],c=S.schemas.filter(o=>o.ref_id&&!b.includes(o.type.toLowerCase())&&!o.is_deleted).map(o=>({label:oe(o.type),value:o.type,action:()=>a("mapProperties")}));m(c)}catch(S){console.warn(S)}finally{j(!1)}}else m([...ge,ye])})()},[t==null?void 0:t.node_type,n,h,a]);const s=i=>{x((i==null?void 0:i.label)||"")};return 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(be,{children:"Select Type"})})}),e.jsx(r,{direction:"row",mb:20,children:e.jsx(Y,{autoFocus:!0,isLoading:C,onSelect:s,options:w})}),e.jsx(r,{children:e.jsx(E,{color:"secondary",disabled:!l,onClick:()=>a("mapProperties"),size:"large",type:"button",variant:"contained",children:"Next"})})]})},be=v(z)` +`,ye={label:"Not Selected",value:"Not Selected"},ge=[{label:"Corporation",value:"Corporation"},{label:"Event",value:"Event"},{label:"Image",value:"Image"},{label:"Organization",value:"Organization"},{label:"Person",value:"Person"},{label:"Place",value:"Place"},{label:"Project",value:"Project"},{label:"Software",value:"Software"},{label:"Topic",value:"Topic"}],je=({skipToStep:a,allowNextStep:l,onSelectType:x,selectedType:n})=>{const[h]=X(i=>[i.customSchemaFeatureFlag]),[w,m]=f.useState(null),[C,j]=f.useState(!1),t=G();f.useEffect(()=>{(async()=>{var p;if(h){j(!0);try{const S=await Z(),b=["about","schema",(p=t==null?void 0:t.node_type)==null?void 0:p.toLowerCase()],c=S.schemas.filter(o=>o.ref_id&&!b.includes(o.type.toLowerCase())&&!o.is_deleted).map(o=>({label:oe(o.type),value:o.type,action:()=>a("mapProperties")}));m(c)}catch(S){console.warn(S)}finally{j(!1)}}else m([...ge,ye])})()},[t==null?void 0:t.node_type,n,h,a]);const s=i=>{x((i==null?void 0:i.label)||"")};return 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(be,{children:"Select Type"})})}),e.jsx(r,{direction:"row",mb:20,children:e.jsx(Y,{autoFocus:!0,isLoading:C,onSelect:s,options:w})}),e.jsx(r,{children:e.jsx(E,{color:"secondary",disabled:!l,onClick:()=>a("mapProperties"),size:"large",type:"button",variant:"contained",children:"Next"})})]})},be=v(F)` font-size: 22px; font-weight: 600; font-family: 'Barlow'; -`,we=async(a,l,x,n)=>{const h={},w=[];Object.entries(x).forEach(([t,s])=>{s!=="none"&&(h[s]=t),t!==s&&w.push(t)});const m={};Object.keys(n||{}).forEach(t=>{const s=n==null?void 0:n[t];Object.entries(h).forEach(([i,p])=>{p===t&&(m[h[i]]=s)})}),Object.keys(a).forEach(t=>{t!=="nodeType"&&(m[t]=a[t])});const C=n?n.node_type.charAt(0).toUpperCase()+n.node_type.slice(1):void 0,j={node_type:l,node_data:m,properties_to_be_deleted:w,type_to_be_deleted:C?[C]:[]};try{let t=n==null?void 0:n.ref_id;if((n==null?void 0:n.type)==="topic"){const{data:i}=await ne({search:n==null?void 0:n.name}),p=i.find(S=>S.name===n.name);t=p==null?void 0:p.ref_id}const s=t||(n==null?void 0:n.ref_id);s&&await re(s,j)}catch(t){console.error(t);let s=O;if(t.status===400)try{const i=await t.json();s=i.message||i.errorCode||(i==null?void 0:i.status)||O}catch{s=O}else t instanceof Error&&(s=t.message);throw new Error(s)}},Me=()=>{const[a,l]=f.useState("sourceType"),{close:x,visible:n}=D("changeNodeType"),{open:h}=D("editNodeName"),{open:w}=D("addType"),m=N({mode:"onChange"}),{watch:C,setValue:j,reset:t}=m,[s,i]=f.useState(""),[p,S]=f.useState({});f.useEffect(()=>()=>{l("sourceType"),t()},[n,t]);const b=G(),c=b!=null&&b.node_type?b.node_type.charAt(0).toUpperCase()+b.node_type.slice(1):"",o=C("nodeType");C("title");const T=()=>{x()},A=_=>{l(_)},d=m.handleSubmit(async _=>{try{await we(_,o,p,b),T()}catch(P){let L=O;if(T(),(P==null?void 0:P.status)===400){const M=await P.json();L=M.errorCode||(M==null?void 0:M.status)||O}else P instanceof Error&&(L=P.message);i(String(L))}}),u=_=>{_==="Create custom type"?w():j("nodeType",_)},y={sourceType:e.jsx(je,{allowNextStep:!!o,onSelectType:u,selectedType:o,skipToStep:A}),requiredProperties:e.jsx(ae,{handleSelectType:u,nodeType:o,selectedValues:p,skipToStep:A}),createConfirmation:e.jsx(le,{nodeType:o,onclose:T,selectedNodeType:c}),mapProperties:e.jsx(pe,{handleSelectType:u,nodeType:o,selectedNodeType:c,selectedValues:p,setSelectedValues:S,skipToStep:A})},g=a==="mapProperties"?"regular":"small",F=()=>{x(),h()};return e.jsx(ee,{id:"changeNodeType",kind:g,onClose:F,preventOutsideClose:!0,children:e.jsx(te,{...m,children:e.jsx("form",{id:"add-node-form",onSubmit:d,children:y[a]})})})};export{Me as ChangeNodeTypeModal}; +`,we=async(a,l,x,n)=>{const h={},w=[];Object.entries(x).forEach(([t,s])=>{s!=="none"&&(h[s]=t),t!==s&&w.push(t)});const m={};Object.keys(n||{}).forEach(t=>{const s=n==null?void 0:n[t];Object.entries(h).forEach(([i,p])=>{p===t&&(m[h[i]]=s)})}),Object.keys(a).forEach(t=>{t!=="nodeType"&&(m[t]=a[t])});const C=n?n.node_type.charAt(0).toUpperCase()+n.node_type.slice(1):void 0,j={node_type:l,node_data:m,properties_to_be_deleted:w,type_to_be_deleted:C?[C]:[]};try{let t=n==null?void 0:n.ref_id;if((n==null?void 0:n.type)==="topic"){const{data:i}=await ne({search:n==null?void 0:n.name}),p=i.find(S=>S.name===n.name);t=p==null?void 0:p.ref_id}const s=t||(n==null?void 0:n.ref_id);s&&await re(s,j)}catch(t){console.error(t);let s=O;if(t.status===400)try{const i=await t.json();s=i.message||i.errorCode||(i==null?void 0:i.status)||O}catch{s=O}else t instanceof Error&&(s=t.message);throw new Error(s)}},Me=()=>{const[a,l]=f.useState("sourceType"),{close:x,visible:n}=D("changeNodeType"),{open:h}=D("editNodeName"),{open:w}=D("addType"),m=N({mode:"onChange"}),{watch:C,setValue:j,reset:t}=m,[s,i]=f.useState(""),[p,S]=f.useState({});f.useEffect(()=>()=>{l("sourceType"),t()},[n,t]);const b=G(),c=b!=null&&b.node_type?b.node_type.charAt(0).toUpperCase()+b.node_type.slice(1):"",o=C("nodeType");C("title");const T=()=>{x()},A=_=>{l(_)},d=m.handleSubmit(async _=>{try{await we(_,o,p,b),T()}catch(P){let L=O;if(T(),(P==null?void 0:P.status)===400){const M=await P.json();L=M.errorCode||(M==null?void 0:M.status)||O}else P instanceof Error&&(L=P.message);i(String(L))}}),u=_=>{_==="Create custom type"?w():j("nodeType",_)},y={sourceType:e.jsx(je,{allowNextStep:!!o,onSelectType:u,selectedType:o,skipToStep:A}),requiredProperties:e.jsx(ae,{handleSelectType:u,nodeType:o,selectedValues:p,skipToStep:A}),createConfirmation:e.jsx(le,{nodeType:o,onclose:T,selectedNodeType:c}),mapProperties:e.jsx(pe,{handleSelectType:u,nodeType:o,selectedNodeType:c,selectedValues:p,setSelectedValues:S,skipToStep:A})},g=a==="mapProperties"?"regular":"small",z=()=>{x(),h()};return e.jsx(ee,{id:"changeNodeType",kind:g,onClose:z,preventOutsideClose:!0,children:e.jsx(te,{...m,children:e.jsx("form",{id:"add-node-form",onSubmit:d,children:y[a]})})})};export{Me as ChangeNodeTypeModal}; diff --git a/build/assets/index-18a58def.js b/build/assets/index-18a58def.js new file mode 100644 index 000000000..15dc1b3d5 --- /dev/null +++ b/build/assets/index-18a58def.js @@ -0,0 +1,34 @@ +import{s as a,j as e,F as s,aT as g,aU as j,B as S,T as i,a as n,a0 as w,i as y,r as m,aR as k,aW as F,k as v,aa as T}from"./index-2353781d.js";import{S as B}from"./SucessFeedBackIcon-edca1d93.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(S,{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'; +`,C=()=>e.jsxs(s,{align:"center",direction:"column",justify:"center",p:40,children:[e.jsx(M,{children:e.jsx(B,{})}),e.jsx(R,{children:"We've Got Your Feedback"}),e.jsx(W,{children:"Thank you for sharing your thoughts with us! We value your input."})]}),M=a.div` + margin-bottom: 20px; + width: 50px; + height: 50px; + + svg { + width: 100%; + height: 100%; + color: ${n.white}; + fill: none; + } + + circle { + color: ${n.SUCESS}; + } +`,R=a(i)` + font-size: 22px; + font-weight: 700; + font-family: 'Barlow'; + text-align: center; + margin-bottom: 10px; +`,W=a(i)` + font-size: 16px; + font-family: 'Barlow'; + text-align: center; + margin-bottom: 20px; + font-weight: 400; + color: ${n.GRAY6}; + padding-top: 10px; +`,$=async r=>{try{const t=await T.post("/prediction/feedback",JSON.stringify(r));if(t.error){const{message:o}=t.error;throw new Error(o)}}catch(t){throw new Error(t.message||"Error submitting feedback")}},U=()=>{const{close:r,visible:t}=w("feedback"),o=y({mode:"onChange"}),{watch:u,reset:c}=o,[x,d]=m.useState(!1);m.useEffect(()=>()=>{d(!1),c()},[t,c]);const l=u("message"),h=!!l&&l.trim().length>0,f=o.handleSubmit(async p=>{try{await $(p),k("Feedback Submitted"),d(!0)}catch(b){console.error(b.message)}});return e.jsx(F,{id:"feedback",kind:"small",onClose:r,preventOutsideClose:!0,children:e.jsx(v,{...o,children:e.jsx("form",{id:"feedback-form",onSubmit:f,children:x?e.jsx(C,{}):e.jsx(E,{allowNextStep:h})})})})};export{U as UserFeedBackModal}; diff --git a/build/assets/index-1d805415.js b/build/assets/index-2353781d.js similarity index 99% rename from build/assets/index-1d805415.js rename to build/assets/index-2353781d.js index aabf9f134..73f3ce79d 100644 --- a/build/assets/index-1d805415.js +++ b/build/assets/index-2353781d.js @@ -556,7 +556,7 @@ PROCEED WITH CAUTION! color: ${colors.GRAY6}; cursor: pointer; z-index: 1; -`,BaseModal=({background:et="modalBg",children:tt,id:rt,hideBg:nt,kind:it,preventOutsideClose:st,noWrap:at=!1,onClose:ot})=>{const{visible:lt,close:ut}=useModal(rt);return reactExports.useEffect(()=>{const dt=vt=>{vt.keyCode===27&&ut()};return lt&&document.addEventListener("keydown",dt),()=>{document.removeEventListener("keydown",dt)}},[lt,ut]),lt?jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx(Bg,{align:"center","data-testid":"modal-overlay",hideBg:nt,justify:"center",onClick:dt=>{st||(dt.stopPropagation(),ut())},children:jsxRuntimeExports.jsxs(ModalContainer,{background:et,borderRadius:9,id:rt,kind:it,onClick:dt=>{dt.stopPropagation()},px:at?0:20,py:at?0:20,children:[ot&&jsxRuntimeExports.jsx(CloseButton,{"data-testid":"close-modal",onClick:ot,children:jsxRuntimeExports.jsx(ClearIcon,{})}),tt]})})}):null},defaultParams={skip:"0",limit:"500"},editNodeSchemaUpdate=async(et,tt)=>await api$1.put(`/schema/${et}`,JSON.stringify(tt)),changeNodeType=async(et,tt)=>api$1.put("/node",JSON.stringify({...tt,ref_id:et})),getFullTranscript=async et=>{const tt=`/node/text/${et}`;return await api$1.get(tt)},getSchemaAll=async()=>{const et="/schema/all";return await api$1.get(et)},getNodeContent=async et=>{const rt=`/node/content?${new URLSearchParams({...et}).toString()}`;return await api$1.get(rt)},getTotalProcessing=async()=>{const et="/node/content";return await api$1.get(et)},getRadarData=async(et=defaultParams)=>await api$1.get(`/radar?${new URLSearchParams({...defaultParams,...et}).toString()}`),getTopicsData=async(et=defaultParams,tt)=>await api$1.get(`/nodes/info?${new URLSearchParams({...defaultParams,...et}).toString()}`,void 0,tt),getAboutData=async()=>await api$1.get("/about"),getStats=async()=>await api$1.get("/stats"),getEdgeTypes=async()=>await api$1.get("/curation/edge/type"),getEdges=async(et,tt)=>await api$1.get(`/curation/search/${et}?${new URLSearchParams({exact_match:"false",...tt}).toString()}`),postEdgeType=async et=>await api$1.post("/curation/edge",JSON.stringify(et)),postAboutData=async et=>await api$1.post("/about",JSON.stringify(et)),postMergeTopics=async et=>await api$1.post("/curation/merge",JSON.stringify(et)),putRadarData=async(et,tt)=>await api$1.put(`/radar/${et}`,JSON.stringify(tt)),putNodeData=async(et,tt)=>await api$1.put(`/node?ref_id=${et}`,JSON.stringify(tt)),editNodeData=async(et,tt)=>await api$1.put(`/node?ref_id=${et}`,JSON.stringify(tt)),approveRadarData=async(et,tt)=>await api$1.put(`/radar/${et}/approve`,JSON.stringify({approve:"True",pubkey:tt})),deleteRadarData=async et=>await api$1.delete(`/radar/${et}`),deleteNode=async et=>await api$1.delete(`/node/?ref_id=${et}`),getNode=async et=>await api$1.get(`/node/${et}`),getPriceData=async et=>await api$1.get(`/getprice?endpoint=${et}&method=post`),getNodeSchemaTypes=async()=>await api$1.get("/schema/all"),getNodeType=async et=>await api$1.get(`/schema/${et}`),postBluePrintType=async et=>await api$1.post("/schema/edge",JSON.stringify(et)),updateEdgeType=async et=>await api$1.put(`/schema/edge/${et.ref_id}`,JSON.stringify({edge_type:et.edge_type})),deleteEdgeType=async et=>await api$1.delete(`/schema/edge/${et}`),initialValue={label:"Not Selected",value:"Not Selected"},NoParent={label:"No Parent",value:"No Parent"},OptionTypes=[{label:"number",value:"int"},{label:"string",value:"string"},{label:"boolean",value:"boolean"}],OPTIONS=[{label:"Corporation",value:"Corporation"},{label:"Event",value:"Event"},{label:"Image",value:"Image"},{label:"Organization",value:"Organization"},{label:"Person",value:"Person"},{label:"Place",value:"Place"},{label:"Project",value:"Project"},{label:"Software",value:"Software"},{label:"Topic",value:"Topic"}],noSpacePattern=/^[^\s].*$/;var reactInputMask={exports:{}},reactInputMask_production_min={exports:{}},invariant=function(et,tt,rt,nt,it,st,at,ot){if(!et){var lt;if(tt===void 0)lt=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var ut=[rt,nt,it,st,at,ot],dt=0;lt=new Error(tt.replace(/%s/g,function(){return ut[dt++]})),lt.name="Invariant Violation"}throw lt.framesToPop=1,lt}},browser=invariant;function t(et){return et&&typeof et=="object"&&"default"in et?et.default:et}var e=reactExports,n=t(e),i=reactDomExports,r$1=t(browser);function a(){return(a=Object.assign||function(et){for(var tt=1;tt=0||(it[rt]=et[rt]);return it}function u(et){return requestAnimationFrame(et)}function s(et){cancelAnimationFrame(et)}function c(et){var tt=et.ownerDocument;return tt.hasFocus()&&tt.activeElement===et}function f(et){return et==null?void 0:et.ownerDocument}function h$1(et){var tt=function(rt){var nt;return(nt=f(rt))==null?void 0:nt.defaultView}(et);return!!tt&&et instanceof tt.HTMLElement}function g(et){return e.useCallback(function(){var tt=et.current,rt=typeof window<"u"&&h$1(tt);if(!tt||!rt)return null;if(tt.nodeName!=="INPUT"&&(tt=tt.querySelector("input")),!tt)throw new Error("react-input-mask: inputComponent doesn't contain input node");return tt},[et])}function v$1(et,tt){var rt,nt,it,st,at=e.useRef({start:null,end:null}),ot=g(et),lt=e.useCallback(function(){return function(yt){var $t=yt.selectionStart,gt=yt.selectionEnd;return{start:$t,end:gt,length:gt-$t}}(ot())},[ot]),ut=e.useCallback(function(){return at.current},[]),dt=e.useCallback(function(yt){var $t=ot();$t&&c($t)&&(function(gt,wt,St){St===void 0&&(St=wt),gt.setSelectionRange(wt,St)}($t,yt.start,yt.end),at.current=lt())},[ot,lt]),vt=e.useCallback(function(){at.current=lt()},[lt]),mt=(rt=vt,nt=e.useRef(null),it=e.useCallback(function(){nt.current===null&&function yt(){rt(),nt.current=u(yt)}()},[rt]),st=e.useCallback(function(){s(nt.current),nt.current=null},[]),e.useEffect(function(){nt.current&&(st(),it())},[it,st]),e.useEffect(s,[]),[it,st]),kt=mt[0],pt=mt[1];return e.useLayoutEffect(function(){if(tt){var yt=ot();return yt.addEventListener("focus",kt),yt.addEventListener("blur",pt),c(yt)&&kt(),function(){yt.removeEventListener("focus",kt),yt.removeEventListener("blur",pt),pt()}}}),{getSelection:lt,getLastSelection:ut,setSelection:dt}}function d(et,tt){var rt=e.useRef(),nt=v$1(rt,tt),it=nt.getSelection,st=nt.getLastSelection,at=nt.setSelection,ot=function(vt,mt){var kt=g(vt),pt=e.useRef(mt);return{getValue:e.useCallback(function(){return kt().value},[kt]),getLastValue:e.useCallback(function(){return pt.current},[]),setValue:e.useCallback(function(yt){pt.current=yt;var $t=kt();$t&&($t.value=yt)},[kt])}}(rt,et),lt=ot.getValue,ut=ot.getLastValue,dt=ot.setValue;return{inputRef:rt,getInputState:function(){return{value:lt(),selection:it()}},getLastInputState:function(){return{value:ut(),selection:st()}},setInputState:function(vt){var mt=vt.value,kt=vt.selection;dt(mt),at(kt)}}}var p=["disabled","onBlur","onChange","onFocus","onMouseDown","readOnly","value"],m={9:/[0-9]/,a:/[A-Za-z]/,"*":/[A-Za-z0-9]/},P=function(et){var tt=this;this.isCharacterAllowedAtPosition=function(rt,nt){var it=tt.maskOptions.maskPlaceholder;return!!tt.isCharacterFillingPosition(rt,nt)||!!it&&it[nt]===rt},this.isCharacterFillingPosition=function(rt,nt){var it=tt.maskOptions.mask;if(!rt||nt>=it.length)return!1;if(!tt.isPositionEditable(nt))return it[nt]===rt;var st=it[nt];return new RegExp(st).test(rt)},this.isPositionEditable=function(rt){var nt=tt.maskOptions,it=nt.mask,st=nt.permanents;return rt=0;st--)if(it(nt[st],st))return st;return-1}(rt.split(""),function(nt,it){return tt.isPositionEditable(it)&&tt.isCharacterFillingPosition(nt,it)})+1},this.getStringFillingLengthAtPosition=function(rt,nt){return rt.split("").reduce(function(it,st){return tt.insertCharacterAtPosition(it,st,it.length)},function(it,st){st===void 0&&(st=1);for(var at="",ot=0;ot=0;nt--)if(tt.isPositionEditable(nt))return nt;return null},this.getRightEditablePosition=function(rt){for(var nt=tt.maskOptions.mask,it=rt;it=st&&!mt?"":vt=st?dt:mt?ot?ot[vt]:"":lt[vt]}).join("");return tt.formatValue(ut)},this.insertCharacterAtPosition=function(rt,nt,it){var st=tt.maskOptions,at=st.mask,ot=st.maskPlaceholder;if(it>=at.length)return rt;var lt=tt.isCharacterAllowedAtPosition(nt,it),ut=tt.isPositionEditable(it),dt=tt.getRightEditablePosition(it),vt=ot&&dt?nt===ot[dt]:null,mt=rt.slice(0,it);return!lt&&ut||(rt=mt+(lt?nt:at[it])),lt||ut||vt||(rt=tt.insertCharacterAtPosition(rt,nt,it+1)),rt},this.insertStringAtPosition=function(rt,nt,it){var st=tt.maskOptions,at=st.mask,ot=st.maskPlaceholder;if(!nt||it>=at.length)return rt;var lt=nt.split(""),ut=tt.isValueFilled(rt)||!!ot,dt=rt.slice(it);return rt=lt.reduce(function(vt,mt){return tt.insertCharacterAtPosition(vt,mt,vt.length)},rt.slice(0,it)),ut?rt+=dt.slice(rt.length-it):tt.isValueFilled(rt)?rt+=at.slice(rt.length).join(""):rt=dt.split("").filter(function(vt,mt){return tt.isPositionEditable(it+mt)}).reduce(function(vt,mt){var kt=tt.getRightEditablePosition(vt.length);return kt===null?vt:(tt.isPositionEditable(vt.length)||(vt+=at.slice(vt.length,kt).join("")),tt.insertCharacterAtPosition(vt,mt,vt.length))},rt),rt},this.processChange=function(rt,nt){var it=tt.maskOptions,st=it.mask,at=it.prefix,ot=it.lastEditablePosition,lt=rt.value,ut=rt.selection,dt=nt.value,vt=nt.selection,mt=lt,kt="",pt=0,yt=0,$t=Math.min(vt.start,ut.start);return ut.end>vt.start?(kt=mt.slice(vt.start,ut.end),yt=(pt=tt.getStringFillingLengthAtPosition(kt,$t))?vt.length:0):mt.length=st.length?$t=st.length:$t=at.length&&$t{const{visible:lt,close:ut}=useModal(rt);return reactExports.useEffect(()=>{const dt=vt=>{vt.keyCode===27&&ut()};return lt&&document.addEventListener("keydown",dt),()=>{document.removeEventListener("keydown",dt)}},[lt,ut]),lt?jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx(Bg,{align:"center","data-testid":"modal-overlay",hideBg:nt,justify:"center",onClick:dt=>{st||(dt.stopPropagation(),ut())},children:jsxRuntimeExports.jsxs(ModalContainer,{background:et,borderRadius:9,id:rt,kind:it,onClick:dt=>{dt.stopPropagation()},px:at?0:20,py:at?0:20,children:[ot&&jsxRuntimeExports.jsx(CloseButton,{"data-testid":"close-modal",onClick:ot,children:jsxRuntimeExports.jsx(ClearIcon,{})}),tt]})})}):null},defaultParams={skip:"0",limit:"500"},editNodeSchemaUpdate=async(et,tt)=>await api$1.put(`/schema/${et}`,JSON.stringify(tt)),changeNodeType=async(et,tt)=>api$1.put("/node",JSON.stringify({...tt,ref_id:et})),getFullTranscript=async et=>{const tt=`/node/text/${et}`;return await api$1.get(tt)},getSchemaAll=async()=>{const et="/schema/all";return await api$1.get(et)},getNodeContent=async et=>{const rt=`/node/content?${new URLSearchParams({...et}).toString()}`;return await api$1.get(rt)},getRadarData=async(et=defaultParams)=>await api$1.get(`/radar?${new URLSearchParams({...defaultParams,...et}).toString()}`),getTopicsData=async(et=defaultParams,tt)=>await api$1.get(`/nodes/info?${new URLSearchParams({...defaultParams,...et}).toString()}`,void 0,tt),getAboutData=async()=>await api$1.get("/about"),getStats=async()=>await api$1.get("/stats"),getEdgeTypes=async()=>await api$1.get("/curation/edge/type"),getEdges=async(et,tt)=>await api$1.get(`/curation/search/${et}?${new URLSearchParams({exact_match:"false",...tt}).toString()}`),postEdgeType=async et=>await api$1.post("/curation/edge",JSON.stringify(et)),postAboutData=async et=>await api$1.post("/about",JSON.stringify(et)),postMergeTopics=async et=>await api$1.post("/curation/merge",JSON.stringify(et)),putRadarData=async(et,tt)=>await api$1.put(`/radar/${et}`,JSON.stringify(tt)),putNodeData=async(et,tt)=>await api$1.put(`/node?ref_id=${et}`,JSON.stringify(tt)),editNodeData=async(et,tt)=>await api$1.put(`/node?ref_id=${et}`,JSON.stringify(tt)),approveRadarData=async(et,tt)=>await api$1.put(`/radar/${et}/approve`,JSON.stringify({approve:"True",pubkey:tt})),deleteRadarData=async et=>await api$1.delete(`/radar/${et}`),deleteNode=async et=>await api$1.delete(`/node/?ref_id=${et}`),getNode=async et=>await api$1.get(`/node/${et}`),getPriceData=async et=>await api$1.get(`/getprice?endpoint=${et}&method=post`),getNodeSchemaTypes=async()=>await api$1.get("/schema/all"),getNodeType=async et=>await api$1.get(`/schema/${et}`),postBluePrintType=async et=>await api$1.post("/schema/edge",JSON.stringify(et)),updateEdgeType=async et=>await api$1.put(`/schema/edge/${et.ref_id}`,JSON.stringify({edge_type:et.edge_type})),deleteEdgeType=async et=>await api$1.delete(`/schema/edge/${et}`),initialValue={label:"Not Selected",value:"Not Selected"},NoParent={label:"No Parent",value:"No Parent"},OptionTypes=[{label:"number",value:"int"},{label:"string",value:"string"},{label:"boolean",value:"boolean"}],OPTIONS=[{label:"Corporation",value:"Corporation"},{label:"Event",value:"Event"},{label:"Image",value:"Image"},{label:"Organization",value:"Organization"},{label:"Person",value:"Person"},{label:"Place",value:"Place"},{label:"Project",value:"Project"},{label:"Software",value:"Software"},{label:"Topic",value:"Topic"}],noSpacePattern=/^[^\s].*$/;var reactInputMask={exports:{}},reactInputMask_production_min={exports:{}},invariant=function(et,tt,rt,nt,it,st,at,ot){if(!et){var lt;if(tt===void 0)lt=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var ut=[rt,nt,it,st,at,ot],dt=0;lt=new Error(tt.replace(/%s/g,function(){return ut[dt++]})),lt.name="Invariant Violation"}throw lt.framesToPop=1,lt}},browser=invariant;function t(et){return et&&typeof et=="object"&&"default"in et?et.default:et}var e=reactExports,n=t(e),i=reactDomExports,r$1=t(browser);function a(){return(a=Object.assign||function(et){for(var tt=1;tt=0||(it[rt]=et[rt]);return it}function u(et){return requestAnimationFrame(et)}function s(et){cancelAnimationFrame(et)}function c(et){var tt=et.ownerDocument;return tt.hasFocus()&&tt.activeElement===et}function f(et){return et==null?void 0:et.ownerDocument}function h$1(et){var tt=function(rt){var nt;return(nt=f(rt))==null?void 0:nt.defaultView}(et);return!!tt&&et instanceof tt.HTMLElement}function g(et){return e.useCallback(function(){var tt=et.current,rt=typeof window<"u"&&h$1(tt);if(!tt||!rt)return null;if(tt.nodeName!=="INPUT"&&(tt=tt.querySelector("input")),!tt)throw new Error("react-input-mask: inputComponent doesn't contain input node");return tt},[et])}function v$1(et,tt){var rt,nt,it,st,at=e.useRef({start:null,end:null}),ot=g(et),lt=e.useCallback(function(){return function(yt){var $t=yt.selectionStart,gt=yt.selectionEnd;return{start:$t,end:gt,length:gt-$t}}(ot())},[ot]),ut=e.useCallback(function(){return at.current},[]),dt=e.useCallback(function(yt){var $t=ot();$t&&c($t)&&(function(gt,wt,St){St===void 0&&(St=wt),gt.setSelectionRange(wt,St)}($t,yt.start,yt.end),at.current=lt())},[ot,lt]),vt=e.useCallback(function(){at.current=lt()},[lt]),mt=(rt=vt,nt=e.useRef(null),it=e.useCallback(function(){nt.current===null&&function yt(){rt(),nt.current=u(yt)}()},[rt]),st=e.useCallback(function(){s(nt.current),nt.current=null},[]),e.useEffect(function(){nt.current&&(st(),it())},[it,st]),e.useEffect(s,[]),[it,st]),kt=mt[0],pt=mt[1];return e.useLayoutEffect(function(){if(tt){var yt=ot();return yt.addEventListener("focus",kt),yt.addEventListener("blur",pt),c(yt)&&kt(),function(){yt.removeEventListener("focus",kt),yt.removeEventListener("blur",pt),pt()}}}),{getSelection:lt,getLastSelection:ut,setSelection:dt}}function d(et,tt){var rt=e.useRef(),nt=v$1(rt,tt),it=nt.getSelection,st=nt.getLastSelection,at=nt.setSelection,ot=function(vt,mt){var kt=g(vt),pt=e.useRef(mt);return{getValue:e.useCallback(function(){return kt().value},[kt]),getLastValue:e.useCallback(function(){return pt.current},[]),setValue:e.useCallback(function(yt){pt.current=yt;var $t=kt();$t&&($t.value=yt)},[kt])}}(rt,et),lt=ot.getValue,ut=ot.getLastValue,dt=ot.setValue;return{inputRef:rt,getInputState:function(){return{value:lt(),selection:it()}},getLastInputState:function(){return{value:ut(),selection:st()}},setInputState:function(vt){var mt=vt.value,kt=vt.selection;dt(mt),at(kt)}}}var p=["disabled","onBlur","onChange","onFocus","onMouseDown","readOnly","value"],m={9:/[0-9]/,a:/[A-Za-z]/,"*":/[A-Za-z0-9]/},P=function(et){var tt=this;this.isCharacterAllowedAtPosition=function(rt,nt){var it=tt.maskOptions.maskPlaceholder;return!!tt.isCharacterFillingPosition(rt,nt)||!!it&&it[nt]===rt},this.isCharacterFillingPosition=function(rt,nt){var it=tt.maskOptions.mask;if(!rt||nt>=it.length)return!1;if(!tt.isPositionEditable(nt))return it[nt]===rt;var st=it[nt];return new RegExp(st).test(rt)},this.isPositionEditable=function(rt){var nt=tt.maskOptions,it=nt.mask,st=nt.permanents;return rt=0;st--)if(it(nt[st],st))return st;return-1}(rt.split(""),function(nt,it){return tt.isPositionEditable(it)&&tt.isCharacterFillingPosition(nt,it)})+1},this.getStringFillingLengthAtPosition=function(rt,nt){return rt.split("").reduce(function(it,st){return tt.insertCharacterAtPosition(it,st,it.length)},function(it,st){st===void 0&&(st=1);for(var at="",ot=0;ot=0;nt--)if(tt.isPositionEditable(nt))return nt;return null},this.getRightEditablePosition=function(rt){for(var nt=tt.maskOptions.mask,it=rt;it=st&&!mt?"":vt=st?dt:mt?ot?ot[vt]:"":lt[vt]}).join("");return tt.formatValue(ut)},this.insertCharacterAtPosition=function(rt,nt,it){var st=tt.maskOptions,at=st.mask,ot=st.maskPlaceholder;if(it>=at.length)return rt;var lt=tt.isCharacterAllowedAtPosition(nt,it),ut=tt.isPositionEditable(it),dt=tt.getRightEditablePosition(it),vt=ot&&dt?nt===ot[dt]:null,mt=rt.slice(0,it);return!lt&&ut||(rt=mt+(lt?nt:at[it])),lt||ut||vt||(rt=tt.insertCharacterAtPosition(rt,nt,it+1)),rt},this.insertStringAtPosition=function(rt,nt,it){var st=tt.maskOptions,at=st.mask,ot=st.maskPlaceholder;if(!nt||it>=at.length)return rt;var lt=nt.split(""),ut=tt.isValueFilled(rt)||!!ot,dt=rt.slice(it);return rt=lt.reduce(function(vt,mt){return tt.insertCharacterAtPosition(vt,mt,vt.length)},rt.slice(0,it)),ut?rt+=dt.slice(rt.length-it):tt.isValueFilled(rt)?rt+=at.slice(rt.length).join(""):rt=dt.split("").filter(function(vt,mt){return tt.isPositionEditable(it+mt)}).reduce(function(vt,mt){var kt=tt.getRightEditablePosition(vt.length);return kt===null?vt:(tt.isPositionEditable(vt.length)||(vt+=at.slice(vt.length,kt).join("")),tt.insertCharacterAtPosition(vt,mt,vt.length))},rt),rt},this.processChange=function(rt,nt){var it=tt.maskOptions,st=it.mask,at=it.prefix,ot=it.lastEditablePosition,lt=rt.value,ut=rt.selection,dt=nt.value,vt=nt.selection,mt=lt,kt="",pt=0,yt=0,$t=Math.min(vt.start,ut.start);return ut.end>vt.start?(kt=mt.slice(vt.start,ut.end),yt=(pt=tt.getStringFillingLengthAtPosition(kt,$t))?vt.length:0):mt.length=st.length?$t=st.length:$t=at.length&&$tcolors[et]}; background: transparent; @@ -954,4 +954,4 @@ PROCEED WITH CAUTION! margin-top: 20px; max-width: 648px; height: 237px; -`,LazyApp=reactExports.lazy(()=>__vitePreload(()=>import("./index-b82a9f52.js").then(et=>et.i),["assets/index-b82a9f52.js","assets/index-3ac851f3.js"]).then(({App:et})=>({default:et}))),LazyMindSet=reactExports.lazy(()=>__vitePreload(()=>import("./index-c10c0497.js"),["assets/index-c10c0497.js","assets/index-9142d688.js","assets/index-aeaca922.js","assets/three.module-71ec604c.js","assets/index-4dcb3294.js","assets/index-3ac851f3.js","assets/TextareaAutosize-3b102137.js","assets/index-5b7bb80c.js","assets/ClipLoader-9eb1180c.js","assets/index-6eb81ca4.js","assets/Skeleton-633e7f1d.js","assets/Stack-2f0ef3f5.js","assets/index-80a17f62.js","assets/isPlainObject-44e85bf8.js","assets/Typography-5c2f9b73.js","assets/createSvgIcon-b68c7390.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.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Route,{element:jsxRuntimeExports.jsx(LandingPage,{}),path:"/"}),jsxRuntimeExports.jsx(Route,{element:jsxRuntimeExports.jsx(LazyMindSet,{}),path:"/episode/:episodeId"}),jsxRuntimeExports.jsx(Route,{element:jsxRuntimeExports.jsx(Navigate,{replace:!0,to:"/"}),path:"/episode"})]}),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{setRef as $,Avatar as A,Button$1 as B,ClearIcon as C,fetchNodeEdges as D,_inheritsLoose as E,Flex as F,_objectWithoutPropertiesLoose as G,React as H,InfoIcon as I,TransitionGroupContext as J,generateUtilityClass as K,generateUtilityClasses as L,styled$1 as M,_extends as N,alpha as O,useThemeProps as P,Q,ReactDOM as R,clsx$2 as S,Text as T,composeClasses as U,ButtonBase$1 as V,We as W,capitalize as X,useForkRef as Y,useEnhancedEffect$1 as Z,__vitePreload as _,colors as a,YOUTUBE_CHANNEL as a$,reactDomExports as a0,useEventCallback as a1,useTheme as a2,devtools as a3,LinearProgress$1 as a4,SocketContext as a5,isSphinx as a6,$2AODx$react as a7,getDefaultExportFromCjs as a8,useNodeTypes as a9,isArray_1 as aA,_arrayPush as aB,_baseUnary as aC,_defineProperty as aD,eq_1 as aE,isArrayLike_1 as aF,_isIndex as aG,isObject_1 as aH,_root as aI,_baseAssignValue as aJ,keys_1 as aK,MdBolt as aL,MdClose as aM,getFullTranscript as aN,MdPlayArrow as aO,MdAccessTime as aP,useNormalizedNode as aQ,getAugmentedNamespace as aR,useHasAiChats as aS,postAboutData as aT,SuccessNotify as aU,NODE_ADD_ERROR as aV,TextInput as aW,requiredRule as aX,MdError as aY,BaseModal as aZ,TWITTER_HANDLE as a_,Ce as aa,addToGlobalForE2e as ab,isDevelopment as ac,api$1 as ad,distExports$1 as ae,executeIfProd as af,useIsFocusVisible as ag,rootShouldForwardProp as ah,lighten as ai,darken as aj,slotShouldForwardProp as ak,useFormContext as al,useHasAiChatsResponseLoading as am,Ue as an,hooks as ao,commonjsGlobal as ap,commonjsRequire as aq,getSchemaAll as ar,useFilteredNodes as as,_baseGetTag as at,isObjectLike_1 as au,isObject$8 as av,isFunction$4 as aw,_Set as ax,_Symbol as ay,isArguments_1 as az,useUserStore as b,useTheme$2 as b$,RSS as b0,GITHUB_REPOSITORY as b1,LINK as b2,TWITTER_SOURCE as b3,WEB_PAGE as b4,DOCUMENT as b5,getPriceData as b6,isE2E as b7,sphinxBridge as b8,getLSat as b9,resolveBreakpointValues as bA,handleBreakpoints as bB,updateEdgeType as bC,postBluePrintType as bD,deleteEdgeType as bE,cloneDeep_1 as bF,useFieldArray as bG,OptionTypes as bH,NoParent as bI,editNodeSchemaUpdate as bJ,createRoot as bK,react as bL,GRAPH_GROUND_COLOR as bM,GRAPH_LIGHT_INTENSITY as bN,_MapCache as bO,_Uint8Array as bP,_getAllKeys as bQ,_Stack as bR,_getTag as bS,isBufferExports as bT,isTypedArray_1 as bU,isLength_1 as bV,_getPrototype as bW,request as bX,buffer$2 as bY,sphinx$1 as bZ,Global as b_,payLsat as ba,noSpacePattern as bb,getNodeType as bc,getNodeSchemaTypes as bd,OPTIONS as be,initialValue as bf,getNodeContent as bg,MdCheckCircle as bh,MdCancel as bi,approveRadarData as bj,deleteRadarData as bk,getRadarData as bl,BaseTextInput as bm,MdCheck as bn,putRadarData as bo,getEdgeTypes as bp,getEdges as bq,postEdgeType as br,putNodeData as bs,postMergeTopics as bt,getTopicsData as bu,editNodeData as bv,deleteNode as bw,keyframes as bx,css as by,changeNodeType as bz,create as c,defaultTheme$1 as c0,THEME_ID as c1,formatMuiErrorMessage as c2,deepmerge as c3,defaultSxConfig$1 as c4,isPlainObject$1 as c5,createStyled as c6,createTheme$1 as c7,useThemeProps$1 as c8,createUnarySpacing as c9,mergeBreakpointsInOrder as ca,getValue as cb,useTheme$3 as cc,index$1 as cd,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,clsx as x,useParams as y,getNode as z}; +`,LazyApp=reactExports.lazy(()=>__vitePreload(()=>import("./index-dce7cf9f.js"),["assets/index-dce7cf9f.js","assets/index-068043a5.js"]).then(({App:et})=>({default:et}))),LazyMindSet=reactExports.lazy(()=>__vitePreload(()=>import("./index-ffad0f79.js"),["assets/index-ffad0f79.js","assets/index-b7808ecf.js","assets/index-964e9ac6.js","assets/VisibilityOn-aa220caf.js","assets/SourcesTableIcon-54a999e3.js","assets/VolumeIcon-750bd7e3.js","assets/NodeCircleIcon-6e372d93.js","assets/SoundIcon-a0618346.js","assets/index-068043a5.js","assets/CheckIcon-bcbb5853.js","assets/DeleteNodeIcon-be8a9a17.js","assets/EditNodeIcon-665ec0f5.js","assets/SearchIcon-3c9f4418.js","assets/SucessFeedBackIcon-edca1d93.js","assets/three.module-71ec604c.js","assets/TextareaAutosize-c42da1c8.js","assets/index-33375362.js","assets/ClipLoader-c90857c8.js","assets/index-057df3f8.js","assets/Skeleton-d97f7e12.js","assets/Stack-ff0fb8f6.js","assets/index-83d18e4b.js","assets/isPlainObject-c1defea0.js","assets/Typography-13640c0b.js","assets/createSvgIcon-09ff14f6.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.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Route,{element:jsxRuntimeExports.jsx(LandingPage,{}),path:"/"}),jsxRuntimeExports.jsx(Route,{element:jsxRuntimeExports.jsx(LazyMindSet,{}),path:"/episode/:episodeId"}),jsxRuntimeExports.jsx(Route,{element:jsxRuntimeExports.jsx(Navigate,{replace:!0,to:"/"}),path:"/episode"})]}),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{SocketContext as $,Avatar as A,Button$1 as B,ClearIcon as C,generateUtilityClasses as D,styled$1 as E,Flex as F,_extends as G,alpha as H,InfoIcon as I,useThemeProps as J,clsx$2 as K,composeClasses as L,ButtonBase$1 as M,capitalize as N,useForkRef as O,useEnhancedEffect$1 as P,Q,ReactDOM as R,setRef as S,Text as T,reactDomExports as U,useEventCallback as V,We as W,useTheme as X,devtools as Y,LinearProgress$1 as Z,__vitePreload as _,colors as a,LINK as a$,useModal as a0,isSphinx as a1,$2AODx$react as a2,getDefaultExportFromCjs as a3,useNodeTypes as a4,lottie as a5,lodashExports as a6,Ce as a7,addToGlobalForE2e as a8,isDevelopment as a9,_defineProperty as aA,eq_1 as aB,isArrayLike_1 as aC,_isIndex as aD,isObject_1 as aE,_root as aF,_baseAssignValue as aG,keys_1 as aH,MdBolt as aI,MdClose as aJ,getFullTranscript as aK,MdPlayArrow as aL,MdAccessTime as aM,useNormalizedNode as aN,getAugmentedNamespace as aO,useHasAiChats as aP,postAboutData as aQ,SuccessNotify as aR,NODE_ADD_ERROR as aS,TextInput as aT,requiredRule as aU,MdError as aV,BaseModal as aW,TWITTER_HANDLE as aX,YOUTUBE_CHANNEL as aY,RSS as aZ,GITHUB_REPOSITORY as a_,api$1 as aa,distExports$1 as ab,executeIfProd as ac,useIsFocusVisible as ad,rootShouldForwardProp as ae,lighten as af,darken as ag,slotShouldForwardProp as ah,useFormContext as ai,useHasAiChatsResponseLoading as aj,Ue as ak,hooks as al,commonjsGlobal as am,commonjsRequire as an,getSchemaAll as ao,useFilteredNodes as ap,_baseGetTag as aq,isObjectLike_1 as ar,isObject$8 as as,isFunction$4 as at,_Set as au,_Symbol as av,isArguments_1 as aw,isArray_1 as ax,_arrayPush as ay,_baseUnary as az,useAppStore as b,formatMuiErrorMessage as b$,TWITTER_SOURCE as b0,WEB_PAGE as b1,DOCUMENT as b2,getPriceData as b3,isE2E as b4,sphinxBridge as b5,getLSat as b6,payLsat as b7,noSpacePattern as b8,getNodeType 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_,getNodeSchemaTypes as ba,OPTIONS as bb,initialValue as bc,getNodeContent as bd,MdCheckCircle as be,MdCancel as bf,approveRadarData as bg,deleteRadarData as bh,getRadarData as bi,BaseTextInput as bj,MdCheck as bk,putRadarData as bl,getEdgeTypes as bm,getEdges as bn,postEdgeType as bo,putNodeData as bp,postMergeTopics as bq,getTopicsData as br,editNodeData 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,useAiSummaryStore as d,useNavigate as e,useSearchParams as f,useUserStore as g,useFeatureFlagStore as h,useForm as i,jsxRuntimeExports as j,FormProvider as k,updateBudget as l,media as m,useSchemaStore as n,clsx as o,useParams as p,getNode as q,reactExports as r,styled$3 as s,fetchNodeEdges as t,useDataStore as u,_inheritsLoose as v,_objectWithoutPropertiesLoose as w,React as x,TransitionGroupContext as y,generateUtilityClass as z}; diff --git a/build/assets/index-2380a87b.js b/build/assets/index-2380a87b.js deleted file mode 100644 index 4fe66c6dd..000000000 --- a/build/assets/index-2380a87b.js +++ /dev/null @@ -1,92 +0,0 @@ -import{r,j as e,bp as k,i as A,F as h,C as F,be as O,bq as _,s as l,T as z,e as E,t as N,v as D,a as C,B as M,br as Y,aZ as P}from"./index-1d805415.js";import{am as X,an as G,ao as H,l as R}from"./index-3ac851f3.js";import{A as I,T as q}from"./index-f3df532f.js";import{S as V,A as W}from"./constants-167ef3c0.js";import{C as T}from"./ClipLoader-9eb1180c.js";import"./index-5b7bb80c.js";import"./Stack-2f0ef3f5.js";import"./createSvgIcon-b68c7390.js";import"./TextareaAutosize-3b102137.js";const Z=({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})},$=({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:W,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(V,{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})},J=({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(Q,{children:"Add Edge"})})}),e.jsxs(U,{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(Z,{selectedType:p,setSelectedType:d})]}),e.jsx(h,{children:e.jsxs(te,{children:[e.jsx(se,{children:o?"From":"To"}),e.jsx($,{onSelect:c,selectedValue:n,topicId:t==null?void 0:t.ref_id})]})}),e.jsxs(K,{children:[e.jsx(ne,{children:e.jsx(X,{})}),e.jsx(ae,{onClick:x,children:e.jsx(G,{})}),e.jsx(ie,{children:e.jsx(H,{})})]})]})]})},K=l.div` - position: absolute; - top: 26px; - bottom: 26px; - left: 4px; - width: 35px; - border-left: 1.5px solid #6b7a8d4d; - border-top: 1.5px solid #6b7a8d4d; - border-bottom: 1.5px solid #6b7a8d4d; - border-radius: 12px 0 0 12px; -`,Q=l(z)` - font-size: 22px; - font-weight: 600; -`,U=l.div` - position: relative; - color: white; - font-family: 'Barlow'; - display: flex; - flex-direction: ${t=>t.swap?"column-reverse":"column"}; - margin-bottom: 10px; - padding-left: 38px; -`,ee=l(q)` - position: relative; - width: 100%; - padding: 16px; - gap: 10px; - border-radius: 6px; - border: 1px solid #6b7a8d4d; - opacity: 0px; - display: flex; -`,te=l.div` - position: relative; - width: 100%; - padding: 15px; - gap: 10px; - border-radius: 6px; - border: 1.4px solid #6b7a8d4d; - opacity: 0px; - display: flex; - align-items: center; -`,oe=l.label` - color: #bac1c6; - font-size: 13px; - font-weight: 400; - line-height: 18px; - letter-spacing: 0.01em; - text-align: left; - margin-bottom: 6px; -`,se=l.label` - color: #bac1c6; - background-color: #23252f; - font-size: 13px; - font-weight: 400; - line-height: 18px; - letter-spacing: 0.01em; - text-align: left; - position: absolute; - left: 15px; - top: -10px; -`,ne=l.div` - position: absolute; - top: 0; - right: 0; - transform: translateY(-50%) translateX(50%); - color: #23252f; -`,ae=l.div` - position: absolute; - color: transparent; - top: 50%; - left: 0; - transform: translateY(-50%) translateX(-50%); - cursor: pointer; - width: 32px; - height: 32px; - background-color: #303342; - display: flex; - justify-content: center; - align-items: center; - border-radius: 8px; -`,ie=l.div` - position: absolute; - bottom: 0; - right: 0; - transform: translateY(10px) translateX(3px); - color: #6b7a8d; - line-height: 1; -`,re=()=>{const{close:t}=E("addEdgeToNode"),c=N({mode:"onChange"}),[p,d]=r.useState(!1),[n,f]=r.useState(""),[o,x]=r.useState(!1),[m,j]=r.useState(!1),[a,v]=r.useState(null),[s,u]=r.useState(),i=R();r.useEffect(()=>{(async()=>{if(i){j(!0);try{if(i.type==="topic"){const{data:y}=await _(i==null?void 0:i.name,{exact_match:"true",node_type:"topic"}),L=y.find(B=>B.node_type==="topic");u(L)}}catch(y){console.error(y)}finally{j(!1)}}})()},[i]);const S=()=>{t()},w=async()=>{const g=s||i;if(!(!a||!(g!=null&&g.ref_id))){d(!0);try{await Y({relationship:n,...o?{to:g.ref_id,from:a==null?void 0:a.ref_id}:{from:g.ref_id,to:a==null?void 0:a.ref_id}}),S()}catch(y){console.warn(y)}finally{d(!1)}}},b=p||!a||!n;return e.jsxs(D,{...c,children:[m?e.jsx(h,{align:"center",my:24,children:e.jsx(T,{color:C.lightGray,size:24})}):e.jsx(J,{from:s??i,isSwapped:o,onSelect:v,selectedToNode:a,selectedType:n,setIsSwapped:()=>x(!o),setSelectedType:f}),e.jsxs(le,{color:"secondary",disabled:b,onClick:w,size:"large",variant:"contained",children:["Confirm",p&&e.jsx(ce,{children:e.jsx(T,{color:C.lightGray,size:12})})]})]})},le=l(M)` - width: 293px !important; - margin: 0 0 10px auto !important; -`,ce=l.span` - margin-top: 2px; -`,ye=()=>{const{close:t}=E("addEdgeToNode");return e.jsx(P,{id:"addEdgeToNode",kind:"small",onClose:t,preventOutsideClose:!0,children:e.jsx(re,{})})};export{ye as AddNodeEdgeModal}; diff --git a/build/assets/index-ec17158d.js b/build/assets/index-28e04477.js similarity index 50% rename from build/assets/index-ec17158d.js rename to build/assets/index-28e04477.js index fd5b5f988..3eeb54dcc 100644 --- a/build/assets/index-ec17158d.js +++ b/build/assets/index-28e04477.js @@ -1,10 +1,10 @@ -import{e as a,o as B,n as M,u as T,k as z,q as G,b as L,a6 as N,j as e,T as t,s as c,a as n,F as l}from"./index-1d805415.js";import{g as O,h as D,i as E,S as R,C as U,j as W,F as Y}from"./index-3ac851f3.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=B(),{resetAiSummaryAnswer:j,setNewLoading:m}=M(),{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{a0 as a,e as M,d as B,u as T,b as z,h as G,g as L,a1 as N,j as e,T as t,s as c,a as n,F as d}from"./index-2353781d.js";import{M as O,A as D,a as E,S as R,C as U,b as W,F as Y}from"./SourcesTableIcon-54a999e3.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:l}=L(o=>o),v=N(),A=()=>{m(null),k(),j(),f(),g("/")},$=()=>{y(),w(!0),S(!0)};return e.jsxs(Q,{children:[e.jsx(X,{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,l?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&&l?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(q,{"data-testid":"feedback-modal",onClick:b,children:[e.jsx(s,{children:e.jsx(Y,{})}),e.jsx(t,{children:"Send Feedback"})]}):null]})},Q=c(d).attrs({align:"flex-start",direction:"column",justify:"flex-start"})` flex: 0 0 64px; z-index: 31; transition: opacity 1s; background: ${n.BG2}; position: relative; -`,Q=c(l)` +`,X=c(d)` background: blue; align-items: center; justify-content: center; @@ -12,7 +12,7 @@ import{e as a,o as B,n as M,u as T,k as z,q as G,b as L,a6 as N,j as e,T as t,s width: 64px; height: 64px; cursor: pointer; -`,i=c(l).attrs({align:"center",justify:"center",p:0})` +`,i=c(d).attrs({align:"center",justify:"center",p:0})` position: relative; width: 64px; height: 58px; @@ -87,12 +87,12 @@ import{e as a,o as B,n as M,u as T,k as z,q as G,b as L,a6 as N,j as e,T as t,s justify-content: center; border: none; } -`,X=c(i)` +`,q=c(i)` position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); -`,s=c(l)` +`,s=c(d)` justify-content: center; align-items: center; font-size: 24px; diff --git a/build/assets/index-30a4fcdf.js b/build/assets/index-30a4fcdf.js deleted file mode 100644 index 1053eb9bf..000000000 --- a/build/assets/index-30a4fcdf.js +++ /dev/null @@ -1,18 +0,0 @@ -import{ad as M,bX as k,bY as g,bZ as V,s as B,T as C,F as d,al as $,r as x,b as E,j as n,aW as z,aX as K,B as S,e as _,t as U,v as R,aU as A,aZ as G}from"./index-1d805415.js";import{l as I}from"./index-3ac851f3.js";import{A as N}from"./index-f3df532f.js";import"./index-5b7bb80c.js";import"./Stack-2f0ef3f5.js";import"./createSvgIcon-b68c7390.js";import"./TextareaAutosize-3b102137.js";const D="https://community.sphinx.chat",O=async e=>await M.post("/bounty",JSON.stringify(e)),W=async e=>await k(`${D}/person/${e}`,{headers:{"Content-Type":"application/json"},method:"GET"}),P=async e=>await k(`${D}/workspaces/user/${e}`,{headers:{"Content-Type":"application/json"},method:"GET"});async function q(){try{const e=Math.floor(Date.now()/1e3),t=g.Buffer.from(e.toString(16),"hex"),s=g.Buffer.from(t).toString("base64"),o=await V.signMessage(s),a=v(o.signature),l=g.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,"+"),s=t.padEnd(t.length+(4-t.length%4)%4,"=");return g.Buffer.from(s,"base64")}function L(e){let t="";const s=e.byteLength;for(let a=0;a{const t=e.trim();return!!(t&&F.test(t))},Z=({errMessage:e,handleClose:t})=>{const{setValue:s,watch:o}=$(),[a,l]=x.useState([]),{pubKey:p}=E();x.useEffect(()=>{async function r(){try{const c=await W(p);if(!c.id){l([{label:"SecondBrain",value:"SecondBrain"}]);return}const u=await P(c.id);if(u.length>0){const w=[];for(let b=0;b{const c=(r==null?void 0:r.label)||"SecondBrain",u=(r==null?void 0:r.value)||"ck9drb84nncjnaefo090";s("nodeType",c,{shouldValidate:!0}),s("workspaceUuid",u)},y=X(i)&&!!m,h=r=>{r.key===" "&&r.preventDefault()};return n.jsxs(d,{children:[n.jsx(d,{align:"center",direction:"row",justify:"space-between",mb:18,children:n.jsx(H,{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(z,{id:"budget",name:"budget",onKeyDown:h,placeholder:"Enter budget",rules:{...K,pattern:{value:F,message:"Please enter a valid number"}},value:i})]}),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(J,{children:e})]})},T=B(C)` - font-size: 14px; - font-weight: 600; - font-family: 'Barlow'; - margin-bottom: 6px; -`,H=B(C)` - font-size: 18px; - font-weight: 600; - font-family: 'Barlow'; - margin-bottom: 6px; -`,J=B(d)` - font-size: 13px; - font-family: Barlow; - color: #ff8f80; - line-height: 0.2px; - margin-top: 12px; - padding-top: 20px; -`,Y=()=>{const[e,t]=x.useState(""),{close:s}=_("createBounty"),o=I(),{pubKey:a}=E(),l=U({mode:"onChange"}),{handleSubmit:p,setValue:i}=l,m=()=>{i("budget",""),i("nodeType",""),i("workspaceUuid",""),s()},f=async y=>{const{budget:h,workspaceUuid:r}=y;try{const c=await q(),u={type:"code_generation",amount:Number(h),workspace_uuid:r||"ck9drb84nncjnaefo090",ref_id:o==null?void 0:o.ref_id,node_data:(o==null?void 0:o.properties)||{},jwt_token:c,pub_key:a};await O(u),A("Bounty Created")}catch(c){t(c)}finally{i("budget",""),i("nodeType",""),i("workspaceUuid",""),m()}};return n.jsx(R,{...l,children:n.jsx("form",{id:"create-bounty-form",onSubmit:p(f),children:n.jsx(Z,{errMessage:e,handleClose:m})})})},ae=()=>{const{close:e}=_("createBounty"),t=U({mode:"onChange"}),{setValue:s}=t,o=()=>{s("budget",""),s("nodeType",""),e()},a="small";return n.jsx(G,{id:"createBounty",kind:a,onClose:o,preventOutsideClose:!0,children:n.jsx(Y,{})})};export{ae as CreateBountyModal}; diff --git a/build/assets/index-eeddd406.js b/build/assets/index-3109fb7b.js similarity index 85% rename from build/assets/index-eeddd406.js rename to build/assets/index-3109fb7b.js index 6dac56ddb..dc3c1c445 100644 --- a/build/assets/index-eeddd406.js +++ b/build/assets/index-3109fb7b.js @@ -1 +1 @@ -import{c as f,bu as m}from"./index-1d805415.js";import{D as y}from"./constants-167ef3c0.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,br as m}from"./index-2353781d.js";import{D as y}from"./constants-e4e2b00b.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-5b7bb80c.js b/build/assets/index-33375362.js similarity index 81% rename from build/assets/index-5b7bb80c.js rename to build/assets/index-33375362.js index fd6b3cc0a..917f94eb0 100644 --- a/build/assets/index-5b7bb80c.js +++ b/build/assets/index-33375362.js @@ -1,4 +1,4 @@ -import{s as p,a,F as b,d as m,j as c}from"./index-1d805415.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,n as m,j as c}from"./index-2353781d.js";const v=({type:s})=>{var i,g;let e;const[r]=m(l=>[l.normalizedSchemasByType]),d=s,o=(i=r[s])==null?void 0:i.primary_color,n=(g=r[s])==null?void 0:g.icon,t=n?`svg-icons/${n}.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(n??"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-3ac851f3.js b/build/assets/index-3ac851f3.js deleted file mode 100644 index 7e92a7e02..000000000 --- a/build/assets/index-3ac851f3.js +++ /dev/null @@ -1,168 +0,0 @@ -import{E as m3,R as A1,G as r1,H as Z1,J as G2,K as N1,L as R1,M as u1,N as Z,O as F1,r as H,P as U1,j as r,S as c1,U as O1,V as w3,X as k1,Y as d1,Z as _2,$ as k2,a0 as v3,a1 as y2,a2 as W2,c as X2,u as I1,s as q,a as i1,F as f1,B as Y2,C as C2,a3 as _3,a4 as k3,k as K2,A as y3,b as j3,a5 as L3,I as H3}from"./index-1d805415.js";const M3=e=>{const[n,t,i]=e.split(":"),s=parseInt(n,10),o=parseInt(t,10),l=parseInt(i,10);return s*3600+o*60+l};function j2(...e){return e.reduce((n,t)=>t==null?n:function(...s){n.apply(this,s),t.apply(this,s)},()=>{})}function V3(e,n=166){let t;function i(...s){const o=()=>{e.apply(this,s)};clearTimeout(t),t=setTimeout(o,n)}return i.clear=()=>{clearTimeout(t)},i}function s1(e){return e&&e.ownerDocument||document}function B1(e){return s1(e).defaultView||window}function Z3(e){const n=e.documentElement.clientWidth;return Math.abs(window.innerWidth-n)}const b3=e=>{let n;return e<1?n=5.11916*e**2:n=4.5*Math.log(e+1)+2,(n/100).toFixed(2)},L2=b3,H2={disabled:!1};var E3=function(n){return n.scrollTop},b1="unmounted",C1="exited",a1="entering",_1="entered",i2="exiting",l1=function(e){m3(n,e);function n(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=_1:i.unmountOnExit||i.mountOnEnter?a=b1:a=C1,o.state={status:a},o.nextCallback=null,o}n.getDerivedStateFromProps=function(s,o){var l=s.in;return l&&o.status===b1?{status:C1}:null};var t=n.prototype;return t.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},t.componentDidUpdate=function(s){var o=null;if(s!==this.props){var l=this.state.status;this.props.in?l!==a1&&l!==_1&&(o=a1):(l===a1||l===_1)&&(o=i2)}this.updateStatus(!1,o)},t.componentWillUnmount=function(){this.cancelNextCallback()},t.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}},t.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:A1.findDOMNode(this);l&&E3(l)}this.performEnter(s)}else this.performExit();else this.props.unmountOnExit&&this.state.status===C1&&this.setState({status:b1})},t.performEnter=function(s){var o=this,l=this.props.enter,C=this.context?this.context.isMounting:s,a=this.props.nodeRef?[C]:[A1.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:_1},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:_1},function(){o.props.onEntered(h,c)})})})},t.performExit=function(){var s=this,o=this.props.exit,l=this.getTimeouts(),C=this.props.nodeRef?void 0:A1.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)})})})},t.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},t.safeSetState=function(s,o){o=this.setNextCallback(o),this.setState(s,o)},t.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},t.onTransitionEnd=function(s,o){this.setNextCallback(o);var l=this.props.nodeRef?this.props.nodeRef.current:A1.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)},t.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(G2.Provider,{value:null},typeof l=="function"?l(s,C):Z1.cloneElement(Z1.Children.only(l),C))},n}(Z1.Component);l1.contextType=G2;l1.propTypes={};function v1(){}l1.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:v1,onEntering:v1,onEntered:v1,onExit:v1,onExiting:v1,onExited:v1};l1.UNMOUNTED=b1;l1.EXITED=C1;l1.ENTERING=a1;l1.ENTERED=_1;l1.EXITING=i2;const Q2=l1,J2=e=>e.scrollTop;function D1(e,n){var t,i;const{timeout:s,easing:o,style:l={}}=e;return{duration:(t=l.transitionDuration)!=null?t:typeof s=="number"?s:s[n.mode]||0,easing:(i=l.transitionTimingFunction)!=null?i:typeof o=="object"?o[n.mode]:o,delay:l.transitionDelay}}function S3(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 I3=["className","component","elevation","square","variant"],P3=e=>{const{square:n,elevation:t,variant:i,classes:s}=e,o={root:["root",i,!n&&"rounded",i==="elevation"&&`elevation${t}`]};return O1(o,S3,s)},B3=u1("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,n)=>{const{ownerState:t}=e;return[n.root,n[t.variant],!t.square&&n.rounded,t.variant==="elevation"&&n[`elevation${t.elevation}`]]}})(({theme:e,ownerState:n})=>{var t;return Z({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!n.square&&{borderRadius:e.shape.borderRadius},n.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},n.variant==="elevation"&&Z({boxShadow:(e.vars||e).shadows[n.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${F1("#fff",L2(n.elevation))}, ${F1("#fff",L2(n.elevation))})`},e.vars&&{backgroundImage:(t=e.vars.overlays)==null?void 0:t[n.elevation]}))}),T3=H.forwardRef(function(n,t){const i=U1({props:n,name:"MuiPaper"}),{className:s,component:o="div",elevation:l=1,square:C=!1,variant:a="elevation"}=i,h=r1(i,I3),c=Z({},i,{component:o,elevation:l,square:C,variant:a}),u=P3(c);return r.jsx(B3,Z({as:o,ownerState:c,className:c1(u.root,s),ref:t},h))}),N3=T3;function R3(e){return N1("MuiIconButton",e)}const U3=R1("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),O3=U3,A3=["edge","children","className","color","disabled","disableFocusRipple","size"],$3=e=>{const{classes:n,disabled:t,color:i,edge:s,size:o}=e,l={root:["root",t&&"disabled",i!=="default"&&`color${k1(i)}`,s&&`edge${k1(s)}`,`size${k1(o)}`]};return O1(l,R3,n)},z3=u1(w3,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,n)=>{const{ownerState:t}=e;return[n.root,t.color!=="default"&&n[`color${k1(t.color)}`],t.edge&&n[`edge${k1(t.edge)}`],n[`size${k1(t.size)}`]]}})(({theme:e,ownerState:n})=>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})},!n.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:F1(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},n.edge==="start"&&{marginLeft:n.size==="small"?-3:-12},n.edge==="end"&&{marginRight:n.size==="small"?-3:-12}),({theme:e,ownerState:n})=>{var t;const i=(t=(e.vars||e).palette)==null?void 0:t[n.color];return Z({},n.color==="inherit"&&{color:"inherit"},n.color!=="inherit"&&n.color!=="default"&&Z({color:i==null?void 0:i.main},!n.disableRipple&&{"&:hover":Z({},i&&{backgroundColor:e.vars?`rgba(${i.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:F1(i.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),n.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},n.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${O3.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),F3=H.forwardRef(function(n,t){const i=U1({props:n,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,A3),p=Z({},i,{edge:s,color:C,disabled:a,disableFocusRipple:h,size:c}),x=$3(p);return r.jsx(z3,Z({className:c1(x.root,l),centerRipple:!0,focusRipple:!h,disabled:a,ref:t,ownerState:p},u,{children:o}))}),e3=F3;function t3(e){return typeof e=="string"}function D3(e,n,t){return e===void 0||t3(e)?n:Z({},n,{ownerState:Z({},n.ownerState,t)})}function n3(e,n=[]){if(e===void 0)return{};const t={};return Object.keys(e).filter(i=>i.match(/^on[A-Z]/)&&typeof e[i]=="function"&&!n.includes(i)).forEach(i=>{t[i]=e[i]}),t}function q3(e,n,t){return typeof e=="function"?e(n,t):e}function r3(e){var n,t,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e))for(n=0;n!(t.match(/^on[A-Z]/)&&typeof e[t]=="function")).forEach(t=>{n[t]=e[t]}),n}function G3(e){const{getSlotProps:n,additionalProps:t,externalSlotProps:i,externalForwardedProps:s,className:o}=e;if(!n){const x=M2(t==null?void 0:t.className,o,s==null?void 0:s.className,i==null?void 0:i.className),f=Z({},t==null?void 0:t.style,s==null?void 0:s.style,i==null?void 0:i.style),_=Z({},t,s,i);return x.length>0&&(_.className=x),Object.keys(f).length>0&&(_.style=f),{props:_,internalRef:void 0}}const l=n3(Z({},s,i)),C=V2(i),a=V2(s),h=n(l),c=M2(h==null?void 0:h.className,t==null?void 0:t.className,o,s==null?void 0:s.className,i==null?void 0:i.className),u=Z({},h==null?void 0:h.style,t==null?void 0:t.style,s==null?void 0:s.style,i==null?void 0:i.style),p=Z({},h,t,a,C);return c.length>0&&(p.className=c),Object.keys(u).length>0&&(p.style=u),{props:p,internalRef:h.ref}}const W3=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function q1(e){var n;const{elementType:t,externalSlotProps:i,ownerState:s,skipResolvingSlotProps:o=!1}=e,l=r1(e,W3),C=o?{}:q3(i,s),{props:a,internalRef:h}=G3(Z({},l,{externalSlotProps:C})),c=d1(h,C==null?void 0:C.ref,(n=e.additionalProps)==null?void 0:n.ref);return D3(t,Z({},a,{ref:c}),s)}const X3=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Y3(e){const n=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(n)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:n}function K3(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const n=i=>e.ownerDocument.querySelector(`input[type="radio"]${i}`);let t=n(`[name="${e.name}"]:checked`);return t||(t=n(`[name="${e.name}"]`)),t!==e}function Q3(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||K3(e))}function J3(e){const n=[],t=[];return Array.from(e.querySelectorAll(X3)).forEach((i,s)=>{const o=Y3(i);o===-1||!Q3(i)||(o===0?n.push(i):t.push({documentOrder:s,tabIndex:o,node:i}))}),t.sort((i,s)=>i.tabIndex===s.tabIndex?i.documentOrder-s.documentOrder:i.tabIndex-s.tabIndex).map(i=>i.node).concat(n)}function e5(){return!0}function t5(e){const{children:n,disableAutoFocus:t=!1,disableEnforceFocus:i=!1,disableRestoreFocus:s=!1,getTabbable:o=J3,isEnabled:l=e5,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),_=d1(n.ref,f),w=H.useRef(null);H.useEffect(()=>{!C||!f.current||(x.current=!t)},[t,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=j=>{w.current=j,!(i||!l()||j.key!=="Tab")&&g.activeElement===f.current&&j.shiftKey&&(a.current=!0,c.current&&c.current.focus())},m=()=>{const j=f.current;if(j===null)return;if(!g.hasFocus()||!l()||a.current){a.current=!1;return}if(j.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 j.focus()};g.addEventListener("focusin",m),g.addEventListener("keydown",v,!0);const y=setInterval(()=>{g.activeElement&&g.activeElement.tagName==="BODY"&&m()},50);return()=>{clearInterval(y),g.removeEventListener("focusin",m),g.removeEventListener("keydown",v,!0)}},[t,i,s,l,C,o]);const d=g=>{u.current===null&&(u.current=g.relatedTarget),x.current=!0,p.current=g.target;const v=n.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(n,{ref:_,onFocus:d}),r.jsx("div",{tabIndex:C?0:-1,onFocus:k,ref:c,"data-testid":"sentinelEnd"})]})}function n5(e){return typeof e=="function"?e():e}const r5=H.forwardRef(function(n,t){const{children:i,container:s,disablePortal:o=!1}=n,[l,C]=H.useState(null),a=d1(H.isValidElement(i)?i.ref:null,t);if(_2(()=>{o||C(n5(s)||document.body)},[s,o]),_2(()=>{if(l&&!o)return k2(t,l),()=>{k2(t,null)}},[t,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&&v3.createPortal(i,l)})});function i5(e){const n=s1(e);return n.body===e?B1(e).innerWidth>n.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function P1(e,n){n?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Z2(e){return parseInt(B1(e).getComputedStyle(e).paddingRight,10)||0}function s5(e){const t=["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 t||i}function b2(e,n,t,i,s){const o=[n,t,...i];[].forEach.call(e.children,l=>{const C=o.indexOf(l)===-1,a=!s5(l);C&&a&&P1(l,s)})}function Q1(e,n){let t=-1;return e.some((i,s)=>n(i)?(t=s,!0):!1),t}function o5(e,n){const t=[],i=e.container;if(!n.disableScrollLock){if(i5(i)){const l=Z3(s1(i));t.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=>{t.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=B1(i);o=(l==null?void 0:l.nodeName)==="HTML"&&C.getComputedStyle(l).overflowY==="scroll"?l:i}t.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()=>{t.forEach(({value:o,el:l,property:C})=>{o?l.style.setProperty(C,o):l.style.removeProperty(C)})}}function l5(e){const n=[];return[].forEach.call(e.children,t=>{t.getAttribute("aria-hidden")==="true"&&n.push(t)}),n}class C5{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(n,t){let i=this.modals.indexOf(n);if(i!==-1)return i;i=this.modals.length,this.modals.push(n),n.modalRef&&P1(n.modalRef,!1);const s=l5(t);b2(t,n.mount,n.modalRef,s,!0);const o=Q1(this.containers,l=>l.container===t);return o!==-1?(this.containers[o].modals.push(n),i):(this.containers.push({modals:[n],container:t,restore:null,hiddenSiblings:s}),i)}mount(n,t){const i=Q1(this.containers,o=>o.modals.indexOf(n)!==-1),s=this.containers[i];s.restore||(s.restore=o5(s,t))}remove(n,t=!0){const i=this.modals.indexOf(n);if(i===-1)return i;const s=Q1(this.containers,l=>l.modals.indexOf(n)!==-1),o=this.containers[s];if(o.modals.splice(o.modals.indexOf(n),1),this.modals.splice(i,1),o.modals.length===0)o.restore&&o.restore(),n.modalRef&&P1(n.modalRef,t),b2(o.container,n.mount,n.modalRef,o.hiddenSiblings,!1),this.containers.splice(s,1);else{const l=o.modals[o.modals.length-1];l.modalRef&&P1(l.modalRef,!1)}return i}isTopModal(n){return this.modals.length>0&&this.modals[this.modals.length-1]===n}}function a5(e){return typeof e=="function"?e():e}function c5(e){return e?e.props.hasOwnProperty("in"):!1}const h5=new C5;function u5(e){const{container:n,disableEscapeKeyDown:t=!1,disableScrollLock:i=!1,manager:s=h5,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),_=d1(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),y=()=>{s.mount(m(),{disableScrollLock:i}),f.current&&(f.current.scrollTop=0)},j=y2(()=>{const E=a5(n)||v().body;s.add(m(),E),f.current&&y()}),L=H.useCallback(()=>s.isTopModal(m()),[s]),M=y2(E=>{x.current=E,E&&(c&&L()?y():f.current&&P1(f.current,g))}),S=H.useCallback(()=>{s.remove(m(),g)},[g,s]);H.useEffect(()=>()=>{S()},[S]),H.useEffect(()=>{c?j():(!k||!o)&&S()},[c,S,k,o,j]);const P=E=>I=>{var z;(z=E.onKeyDown)==null||z.call(E,I),!(I.key!=="Escape"||I.which===229||!L())&&(t||(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=n3(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:j2(E,a==null?void 0:a.props.onEnter),onExited:j2(I,a==null?void 0:a.props.onExited)}},rootRef:_,portalRef:M,isTopModal:L,exited:w,hasTransition:k}}const d5=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],f5={entering:{opacity:1},entered:{opacity:1}},p5=H.forwardRef(function(n,t){const i=W2(),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=Q2}=n,g=r1(n,d5),v=H.useRef(null),m=d1(v,C.ref,t),y=B=>b=>{if(B){const E=v.current;b===void 0?B(E):B(E,b)}},j=y(p),L=y((B,b)=>{J2(B);const E=D1({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=y(u),S=y(_),P=y(B=>{const b=D1({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=y(f),U=B=>{o&&o(v.current,B)};return r.jsx(k,Z({appear:l,in:h,nodeRef:v,onEnter:L,onEntered:M,onEntering:j,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},f5[B],w,C.props.style),ref:m},b))}))}),x5=p5;function g5(e){return N1("MuiBackdrop",e)}R1("MuiBackdrop",["root","invisible"]);const m5=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],w5=e=>{const{classes:n,invisible:t}=e;return O1({root:["root",t&&"invisible"]},g5,n)},v5=u1("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,n)=>{const{ownerState:t}=e;return[n.root,t.invisible&&n.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"})),_5=H.forwardRef(function(n,t){var i,s,o;const l=U1({props:n,name:"MuiBackdrop"}),{children:C,className:a,component:h="div",components:c={},componentsProps:u={},invisible:p=!1,open:x,slotProps:f={},slots:_={},TransitionComponent:w=x5,transitionDuration:d}=l,k=r1(l,m5),g=Z({},l,{component:h,invisible:p}),v=w5(g),m=(i=f.root)!=null?i:u.root;return r.jsx(w,Z({in:x,timeout:d},k,{children:r.jsx(v5,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:t,children:C}))}))}),k5=_5;function y5(e){return N1("MuiModal",e)}R1("MuiModal",["root","hidden","backdrop"]);const j5=["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"],L5=e=>{const{open:n,exited:t,classes:i}=e;return O1({root:["root",!n&&t&&"hidden"],backdrop:["backdrop"]},y5,i)},H5=u1("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,n)=>{const{ownerState:t}=e;return[n.root,!t.open&&t.exited&&n.hidden]}})(({theme:e,ownerState:n})=>Z({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!n.open&&n.exited&&{visibility:"hidden"})),M5=u1(k5,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,n)=>n.backdrop})({zIndex:-1}),V5=H.forwardRef(function(n,t){var i,s,o,l,C,a;const h=U1({name:"MuiModal",props:n}),{BackdropComponent:c=M5,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:y=!1,disableRestoreFocus:j=!1,disableScrollLock:L=!1,hideBackdrop:M=!1,keepMounted:S=!1,onBackdropClick:P,open:V,slotProps:U,slots:B}=h,b=r1(h,j5),E=Z({},h,{closeAfterTransition:x,disableAutoFocus:g,disableEnforceFocus:v,disableEscapeKeyDown:m,disablePortal:y,disableRestoreFocus:j,disableScrollLock:L,hideBackdrop:M,keepMounted:S}),{getRootProps:I,getBackdropProps:z,getTransitionProps:R,portalRef:W,isTopModal:O,exited:A,hasTransition:J}=u5(Z({},E,{rootRef:t})),D=Z({},E,{exited:A}),$=L5(D),p1={};if(f.props.tabIndex===void 0&&(p1.tabIndex="-1"),J){const{onEnter:T,onExited:F}=R();p1.onEnter=T,p1.onExited=F}const x1=(i=(s=B==null?void 0:B.root)!=null?s:d.Root)!=null?i:H5,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,g1=(a=U==null?void 0:U.backdrop)!=null?a:k.backdrop,Y1=q1({elementType:x1,externalSlotProps:H1,externalForwardedProps:b,getSlotProps:I,additionalProps:{ref:t,as:w},ownerState:D,className:c1(p,H1==null?void 0:H1.className,$==null?void 0:$.root,!D.open&&D.exited&&($==null?void 0:$.hidden))}),K1=q1({elementType:L1,externalSlotProps:g1,additionalProps:u,getSlotProps:T=>z(Z({},T,{onClick:F=>{P&&P(F),T!=null&&T.onClick&&T.onClick(F)}})),className:c1(g1==null?void 0:g1.className,u==null?void 0:u.className,$==null?void 0:$.backdrop),ownerState:D});return!S&&!V&&(!J||A)?null:r.jsx(r5,{ref:W,container:_,disablePortal:y,children:r.jsxs(x1,Z({},Y1,{children:[!M&&c?r.jsx(L1,Z({},K1)):null,r.jsx(t5,{disableEnforceFocus:v,disableAutoFocus:g,disableRestoreFocus:j,isEnabled:O,open:V,children:H.cloneElement(f,p1)})]}))})}),Z5=V5,b5=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function s2(e){return`scale(${e}, ${e**2})`}const E5={entering:{opacity:1,transform:s2(1)},entered:{opacity:1,transform:"none"}},J1=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),i3=H.forwardRef(function(n,t){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=Q2}=n,d=r1(n,b5),k=H.useRef(),g=H.useRef(),v=W2(),m=H.useRef(null),y=d1(m,o.ref,t),j=b=>E=>{if(b){const I=m.current;E===void 0?b(I):b(I,E)}},L=j(c),M=j((b,E)=>{J2(b);const{duration:I,delay:z,easing:R}=D1({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:J1?W:W*.666,delay:z,easing:R})].join(","),a&&a(b,E)}),S=j(h),P=j(x),V=j(b=>{const{duration:E,delay:I,easing:z}=D1({style:f,timeout:_,easing:l},{mode:"exit"});let R;_==="auto"?(R=v.transitions.getAutoHeightDuration(b.clientHeight),g.current=R):R=E,b.style.transition=[v.transitions.create("opacity",{duration:R,delay:I}),v.transitions.create("transform",{duration:J1?R:R*.666,delay:J1?I:I||R*.333,easing:z})].join(","),b.style.opacity=0,b.style.transform=s2(.75),u&&u(b)}),U=j(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},E5[b],f,o.props.style),ref:y},E))}))});i3.muiSupportAuto=!0;const S5=i3;function I5(e){return N1("MuiPopover",e)}R1("MuiPopover",["root","paper"]);const P5=["onEntering"],B5=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],T5=["slotProps"];function E2(e,n){let t=0;return typeof n=="number"?t=n:n==="center"?t=e.height/2:n==="bottom"&&(t=e.height),t}function S2(e,n){let t=0;return typeof n=="number"?t=n:n==="center"?t=e.width/2:n==="right"&&(t=e.width),t}function I2(e){return[e.horizontal,e.vertical].map(n=>typeof n=="number"?`${n}px`:n).join(" ")}function e2(e){return typeof e=="function"?e():e}const N5=e=>{const{classes:n}=e;return O1({root:["root"],paper:["paper"]},I5,n)},R5=u1(Z5,{name:"MuiPopover",slot:"Root",overridesResolver:(e,n)=>n.root})({}),U5=u1(N3,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,n)=>n.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),O5=H.forwardRef(function(n,t){var i,s,o;const l=U1({props:n,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:y=S5,transitionDuration:j="auto",TransitionProps:{onEntering:L}={},disableScrollLock:M=!1}=l,S=r1(l.TransitionProps,P5),P=r1(l,B5),V=(i=v==null?void 0:v.paper)!=null?i:k,U=H.useRef(),B=d1(U,V.ref),b=Z({},l,{anchorOrigin:h,anchorReference:u,elevation:_,marginThreshold:w,externalPaperSlotProps:V,transformOrigin:m,TransitionComponent:y,transitionDuration:j,TransitionProps:S}),E=N5(b),I=H.useCallback(()=>{if(u==="anchorPosition")return c;const T=e2(a),e1=(T&&T.nodeType===1?T: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(T=>({vertical:E2(T,m.vertical),horizontal:S2(T,m.horizontal)}),[m.horizontal,m.vertical]),R=H.useCallback(T=>{const F={width:T.offsetWidth,height:T.offsetHeight},e1=z(F);if(u==="none")return{top:null,left:null,transformOrigin:I2(e1)};const p2=I();let m1=p2.top-e1.vertical,w1=p2.left-e1.horizontal;const x2=m1+F.height,g2=w1+F.width,m2=B1(e2(a)),w2=m2.innerHeight-w,v2=m2.innerWidth-w;if(w!==null&&m1w2){const n1=x2-w2;m1-=n1,e1.vertical+=n1}if(w!==null&&w1v2){const n1=g2-v2;w1-=n1,e1.horizontal+=n1}return{top:`${Math.round(m1)}px`,left:`${Math.round(w1)}px`,transformOrigin:I2(e1)}},[a,u,I,z,w]),[W,O]=H.useState(d),A=H.useCallback(()=>{const T=U.current;if(!T)return;const F=R(T);F.top!==null&&(T.style.top=F.top),F.left!==null&&(T.style.left=F.left),T.style.transformOrigin=F.transformOrigin,O(!0)},[R]);H.useEffect(()=>(M&&window.addEventListener("scroll",A),()=>window.removeEventListener("scroll",A)),[a,M,A]);const J=(T,F)=>{L&&L(T,F),A()},D=()=>{O(!1)};H.useEffect(()=>{d&&A()}),H.useImperativeHandle(C,()=>d?{updatePosition:()=>{A()}}:null,[d,A]),H.useEffect(()=>{if(!d)return;const T=V3(()=>{A()}),F=B1(a);return F.addEventListener("resize",T),()=>{T.clear(),F.removeEventListener("resize",T)}},[a,d,A]);let $=j;j==="auto"&&!y.muiSupportAuto&&($=void 0);const p1=f||(a?s1(e2(a)).body:void 0),x1=(s=g==null?void 0:g.root)!=null?s:R5,L1=(o=g==null?void 0:g.paper)!=null?o:U5,H1=q1({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)}),g1=q1({elementType:x1,externalSlotProps:(v==null?void 0:v.root)||{},externalForwardedProps:P,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:p1,open:d},ownerState:b,className:c1(E.root,x)}),{slotProps:Y1}=g1,K1=r1(g1,T5);return r.jsx(x1,Z({},K1,!t3(x1)&&{slotProps:Y1,disableScrollLock:M},{children:r.jsx(y,Z({appear:!0,in:d,onEntering:J,onExited:D,timeout:$},S,{children:r.jsx(L1,Z({},H1,{children:p}))}))}))}),b7=O5;function A5(e,n){if(Object.is(e,n))return!0;if(typeof e!="object"||e===null||typeof n!="object"||n===null)return!1;if(e instanceof Map&&n instanceof Map){if(e.size!==n.size)return!1;for(const[i,s]of e)if(!Object.is(s,n.get(i)))return!1;return!0}if(e instanceof Set&&n instanceof Set){if(e.size!==n.size)return!1;for(const i of e)if(!n.has(i))return!1;return!0}const t=Object.keys(e);if(t.length!==Object.keys(n).length)return!1;for(let i=0;i{const i=e(t);return A5(n.current,i)?n.current:n.current=i}}const 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:"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"})})]})}),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:"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"})})]})}),q5=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"})})]})}),G5=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,n,t){var i,s=1;e==null&&(e=0),n==null&&(n=0),t==null&&(t=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),n===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=n>=(a=(l+C)/2))?l=a:C=a;while((u=+c)==(p=+(h>=a)));return i[p]=s,i[u]=o,e}function X5(e){Array.isArray(e)||(e=Array.from(e));const n=e.length,t=new Float64Array(n);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>=t;)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,n=t,!(t=t[u=+c]))return this;if(!t.length)break;n[u+1&1]&&(i=n,p=u)}for(;t.data!==e;)if(s=t,!(t=t.next))return this;return(o=t.next)&&delete t.next,s?(o?s.next=o:delete s.next,this):n?(o?n[u]=o:delete n[u],(t=n[0]||n[1])&&t===(n[1]||n[0])&&!t.length&&(i?i[p]=t:this._root=t),this):(this._root=o,this)}function t0(e){for(var n=0,t=e.length;n=(u=(C+h)/2))?C=u:h=u,(w=t>=(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),n===x&&t===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),(_=n>=(u=(C+h)/2))?C=u:h=u,(w=t>=(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 a0(e){var n,t,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(t=0;tc&&(c=s),ou&&(u=o));if(a>c||h>u)return this;for(this.cover(a,h).cover(c,u),t=0;te||e>=s||i>n||n>=o;)switch(h=(nc||(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=n-+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,n=t,!(t=t[w=_<<1|f]))return this;if(!t.length)break;(n[w+1&3]||n[w+2&3]||n[w+3&3])&&(i=n,d=w)}for(;t.data!==e;)if(s=t,!(t=t.next))return this;return(o=t.next)&&delete t.next,s?(o?s.next=o:delete s.next,this):n?(o?n[w]=o:delete n[w],(t=n[0]||n[1]||n[2]||n[3])&&t===(n[3]||n[2]||n[1]||n[0])&&!t.length&&(i?i[d]=t:this._root=t),this):(this._root=o,this)}function p0(e){for(var n=0,t=e.length;n=(f=(a+u)/2))?a=f:u=f,(m=t>=(_=(h+p)/2))?h=_:p=_,(y=i>=(w=(c+x)/2))?c=w:x=w,o=l,!(l=l[j=y<<2|m<<1|v]))return o[j]=C,e;if(d=+e._x.call(null,l.data),k=+e._y.call(null,l.data),g=+e._z.call(null,l.data),n===d&&t===k&&i===g)return C.next=l,o?o[j]=C:e._root=C,e;do o=o?o[j]=new Array(8):e._root=new Array(8),(v=n>=(f=(a+u)/2))?a=f:u=f,(m=t>=(_=(h+p)/2))?h=_:p=_,(y=i>=(w=(c+x)/2))?c=w:x=w;while((j=y<<2|m<<1|v)===(L=(g>=w)<<2|(k>=_)<<1|d>=f));return o[L]=l,o[j]=C,e}function L0(e){Array.isArray(e)||(e=Array.from(e));const n=e.length,t=new Float64Array(n),i=new Float64Array(n),s=new Float64Array(n);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>n||n>=C||o>t||t>=a;)switch(p=(tf||(h=g.y0)>_||(c=g.z0)>w||(u=g.x1)=j)<<2|(n>=y)<<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=n-+this._y.call(null,k.data),S=t-+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,n=t,!(t=t[m=v<<2|g<<1|k]))return this;if(!t.length)break;(n[m+1&7]||n[m+2&7]||n[m+3&7]||n[m+4&7]||n[m+5&7]||n[m+6&7]||n[m+7&7])&&(i=n,y=m)}for(;t.data!==e;)if(s=t,!(t=t.next))return this;return(o=t.next)&&delete t.next,s?(o?s.next=o:delete s.next,this):n?(o?n[m]=o:delete n[m],(t=n[0]||n[1]||n[2]||n[3]||n[4]||n[5]||n[6]||n[7])&&t===(n[7]||n[6]||n[5]||n[4]||n[3]||n[2]||n[1]||n[0])&&!t.length&&(i?i[y]=t:this._root=t),this):(this._root=o,this)}function E0(e){for(var n=0,t=e.length;n1&&(_=x.y+x.vy),t>2&&(w=x.z+x.vz),p.visit(v);function v(m,y,j,L,M,S,P){var V=[y,j,L,M,S,P],U=V[0],B=V[1],b=V[2],E=V[t],I=V[t+1],z=V[t+2],R=m.data,W=m.r,O=d+W;if(R){if(R.index>x.index){var A=f-R.x-R.vx,J=t>1?_-R.y-R.vy:0,D=t>2?w-R.z-R.vz:0,$=A*A+J*J+D*D;$1&&J===0&&(J=t1(s),$+=J*J),t>2&&D===0&&(D=t1(s),$+=D*D),$=(O-($=Math.sqrt($)))/$*o,x.vx+=(A*=$)*(O=(W*=W)/(k+W)),t>1&&(x.vy+=(J*=$)*O),t>2&&(x.vz+=(D*=$)*O),R.vx-=A*(O=1-O),t>1&&(R.vy-=J*O),t>2&&(R.vz-=D*O))}return}return U>f+O||E1&&(B>_+O||I<_-O)||t>2&&(b>w+O||zc.r&&(c.r=c[u].r)}function h(){if(n){var c,u=n.length,p;for(i=new Array(u),c=0;ctypeof p=="function")||Math.random,t=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 z0(e){return e.index}function U2(e,n){var t=e.get(n);if(!t)throw new Error("node not found: "+n);return t}function F0(e){var n=z0,t=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=j.y+j.vy-y.y-y.vy||t1(c)),C>2&&(S=j.z+j.vz-y.z-y.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,j.vx-=L*(V=h[v]),C>1&&(j.vy-=M*V),C>2&&(j.vz-=S*V),y.vx+=L*(V=1-V),C>1&&(y.vy+=M*V),C>2&&(y.vz+=S*V)}function f(){if(l){var d,k=l.length,g=e.length,v=new Map(l.map((y,j)=>[n(y,j,l),y])),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?(n=d,x):n},x.iterations=function(d){return arguments.length?(u=+d,x):u},x.strength=function(d){return arguments.length?(t=typeof d=="function"?d:Y(+d),_(),x):t},x.distance=function(d){return arguments.length?(s=typeof d=="function"?d:Y(+d),w(),x):s},x}var D0={value:()=>{}};function C3(){for(var e=0,n=arguments.length,t={},i;e=0&&(i=t.slice(s+1),t=t.slice(0,s)),t&&!n.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:i}})}z1.prototype=C3.prototype={constructor:z1,on:function(e,n){var t=this._,i=q0(e+"",t),s,o=-1,l=i.length;if(arguments.length<2){for(;++o0)for(var t=new Array(s),i=0,s,o;i=0&&e._call.call(void 0,n),e=e._next;--y1}function A2(){h1=(W1=T1.now())+X1,y1=E1=0;try{X0()}finally{y1=0,K0(),h1=0}}function Y0(){var e=T1.now(),n=e-W1;n>a3&&(X1-=n,W1=e)}function K0(){for(var e,n=G1,t,i=1/0;n;)n._call?(i>n._time&&(i=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:G1=t);S1=e,l2(i)}function l2(e){if(!y1){E1&&(E1=clearTimeout(E1));var n=e-h1;n>24?(e<1/0&&(E1=setTimeout(A2,e-T1.now()-X1)),M1&&(M1=clearInterval(M1))):(M1||(W1=T1.now(),M1=setInterval(Y0,a3)),y1=1,c3(A2))}}const Q0=1664525,J0=1013904223,$2=4294967296;function e6(){let e=1;return()=>(e=(Q0*e+J0)%$2)/$2}var z2=3;function r2(e){return e.x}function F2(e){return e.y}function t6(e){return e.z}var n6=10,r6=Math.PI*(3-Math.sqrt(5)),i6=Math.PI*20/(9+Math.sqrt(221));function s6(e,n){n=n||2;var t=Math.min(z2,Math.max(1,Math.round(n))),i,s=1,o=.001,l=1-Math.pow(o,1/300),C=0,a=.6,h=new Map,c=u3(x),u=C3("tick","end"),p=e6();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)),t>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)||t>2&&isNaN(g.z)){var v=n6*(t>2?Math.cbrt(.5+d):t>1?Math.sqrt(.5+d):d),m=d*r6,y=d*i6;t===1?g.x=v:t===2?(g.x=v*Math.cos(m),g.y=v*Math.sin(m)):(g.x=v*Math.sin(m)*Math.cos(y),g.y=v*Math.cos(m),g.z=v*Math.sin(m)*Math.sin(y))}(isNaN(g.vx)||t>1&&isNaN(g.vy)||t>2&&isNaN(g.vz))&&(g.vx=0,t>1&&(g.vy=0),t>2&&(g.vz=0))}}function w(d){return d.initialize&&d.initialize(e,p,t),d}return _(),i={tick:f,restart:function(){return c.restart(x),i},stop:function(){return c.stop(),i},numDimensions:function(d){return arguments.length?(t=Math.min(z2,Math.max(1,Math.round(d))),h.forEach(w),i):t},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=(t>1?d.shift():null)||0,v=(t>2?d.shift():null)||0,m=d.shift()||1/0,y=0,j=e.length,L,M,S,P,V,U;for(m*=m,y=0;y1?(u.on(d,k),i):u.on(d)}}}function D2(){var e,n,t,i,s,o=Y(-30),l,C=1,a=1/0,h=.81;function c(f){var _,w=e.length,d=(n===1?a2(e,r2):n===2?h2(e,r2,F2):n===3?d2(e,r2,F2,t6):null).visitAfter(p);for(s=f,_=0;_1&&(f.y=v/k),n>2&&(f.z=m/k)}else{w=f,w.x=w.data.x,n>1&&(w.y=w.data.y),n>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][n-1],v=f.x-t.x,m=n>1?f.y-t.y:0,y=n>2?f.z-t.z:0,j=g-_,L=v*v+m*m+y*y;if(j*j/h1&&m===0&&(m=t1(i),L+=m*m),n>2&&y===0&&(y=t1(i),L+=y*y),L1&&(t.vy+=m*f.value*s/L),n>2&&(t.vz+=y*f.value*s/L)),!0;if(f.length||L>=a)return;(f.data!==t||f.next)&&(v===0&&(v=t1(i),L+=v*v),n>1&&m===0&&(m=t1(i),L+=m*m),n>2&&y===0&&(y=t1(i),L+=y*y),L1&&(t.vy+=m*j),n>2&&(t.vz+=y*j));while(f=f.next)}return c.initialize=function(f,..._){e=f,i=_.find(w=>typeof w=="function")||Math.random,n=_.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 q2(e,n,t,i){var s,o,l=Y(.1),C,a;typeof e!="function"&&(e=Y(+e)),n==null&&(n=0),t==null&&(t=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?(n=+u,h):n},h.y=function(u){return arguments.length?(t=+u,h):t},h.z=function(u){return arguments.length?(i=+u,h):i},h}function o6(e){var n=Y(.1),t,i,s;typeof e!="function"&&(e=Y(e==null?0:+e));function o(C){for(var a=0,h=t.length,c;a{},setForces:()=>{},addRadialForce:()=>{},addDefaultForce:()=>{},addClusterForce:()=>{},addSplitForce:()=>{},simulationRestart:()=>{},getLinks:()=>[]},C6={data:null,simulation:null,selectionGraphData:{nodes:[],links:[]},disableCameraRotation:!0,scrollEventsDisabled:!1,graphRadius:1500,selectionGraphRadius:200,graphStyle:"sphere",hoveredNode:null,hoveredNodeSiblings:[],selectedNode:null,activeEdge:null,cameraFocusTrigger:!1,nearbyNodeIds:[],showSelectionGraph:!1,simulationHelpers:l6,isHovering:!1,selectionPath:[],activeNode:null,highlightNodes:[],searchQuery:"",selectedNodeTypes:[],selectedLinkTypes:[]},j1=X2()((e,n)=>({...C6,setData:t=>{e({data:t})},setSelectedNodeTypes:t=>{const{selectedNodeTypes:i}=n(),s=i.includes(t)?i.filter(o=>o!==t):[...i,t];e({selectedNodeTypes:s})},setSelectedLinkTypes:t=>{const{selectedLinkTypes:i}=n(),s=i.includes(t)?i.filter(o=>o!==t):[...i,t];e({selectedLinkTypes:s})},resetSelectedNodeTypes:()=>e({selectedNodeTypes:[]}),resetSelectedLinkTypes:()=>e({selectedLinkTypes:[]}),setSelectionData:t=>e({selectionGraphData:t}),setScrollEventsDisabled:t=>e({scrollEventsDisabled:t}),setDisableCameraRotation:t=>e({disableCameraRotation:t}),setIsHovering:t=>e({isHovering:t}),setGraphRadius:t=>e({graphRadius:t}),setSelectionGraphRadius:t=>e({selectionGraphRadius:t}),setGraphStyle:t=>e({graphStyle:"sphere"}),setHoveredNode:t=>{const{nodesNormalized:i}=I1.getState()||{};if(t){const s=i.get(t.ref_id),o=[...(s==null?void 0:s.targets)||[],...(s==null?void 0:s.sources)||[]];e({hoveredNode:t,hoveredNodeSiblings:o})}else e({hoveredNode:t,hoveredNodeSiblings:[]})},setActiveEdge:t=>{e({activeEdge:t})},setActiveNode:t=>{e({activeNode:t})},setHighlightNodes:t=>{e({highlightNodes:t})},addToSelectionPath:t=>{const{selectionPath:i}=n();e({selectionPath:[...i,t]})},setSelectedNode:t=>{const{nodesNormalized:i}=I1.getState()||{};t||e({hoveredNode:null,selectedNode:null,disableCameraRotation:!1,showSelectionGraph:!1,selectionPath:[]});const{selectedNode:s,simulation:o,selectionPath:l}=n();if((s==null?void 0:s.ref_id)!==(t==null?void 0:t.ref_id)){const C=o.nodes().find(a=>a.ref_id===(t==null?void 0:t.ref_id))||null;if(t!=null&&t.ref_id){const a=(i==null?void 0:i.get(t==null?void 0:t.ref_id))||{};e({hoveredNode:null,selectedNode:{...C,...a},disableCameraRotation:!0,showSelectionGraph:!!t,selectionPath:[...l,C.ref_id]})}}},setCameraFocusTrigger:t=>e({cameraFocusTrigger:t}),setNearbyNodeIds:t=>{const i=n().nearbyNodeIds;(t.length!==i.length||t[0]!==i[0])&&e({nearbyNodeIds:t})},setShowSelectionGraph:t=>e({showSelectionGraph:t}),simulationHelpers:{addNodesAndLinks:(t,i,s)=>{const{simulation:o,simulationHelpers:l}=n();console.log(o.nodes()),console.log(t),o.stop();const C=structuredClone(t),a=structuredClone(i);o.stop();const h=s?[]:o.nodes(),c=s?[]:o.force("link").links();h.push(...C),c.push(...a),o.nodes(h),o.force("link").links([]).links(c),l.simulationRestart();try{console.log("try")}catch(u){console.error(u)}},addRadialForce:()=>{const{simulation:t}=n();t.nodes(t.nodes().map(i=>({...i,...$1}))).force("y",null).force("center",P2().strength(1)).force("charge",D2().strength(-1)).force("collide",n2().radius(i=>(i.scale||1)*95).strength(.5).iterations(1))},addClusterForce:()=>{const{simulation:t,highlightNodes:i}=n();t.nodes(t.nodes().map(s=>({...s,...$1}))).force("cluster",q2(s=>i.includes(s.ref_id)?25:500).strength(1))},addDefaultForce:()=>{const{simulation:t}=n();t.nodes(t.nodes().map(i=>({...i,...$1}))).force("y",null).force("charge",D2().strength(-20)).force("center",P2().strength(1)).force("collide",n2().radius(()=>250).strength(1).iterations(1))},addSplitForce:()=>{const{simulation:t}=n(),{nodeTypes:i}=I1.getState();t.stop().nodes(t.nodes().map(s=>({...s,...$1}))).force("radial",q2(200,0,0,0).strength(.1)).force("collide",n2().radius(()=>250).strength(1).iterations(1)).force("y",o6().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:t}=n();return t?t.force("link").links():[]},setForces:()=>{const{graphStyle:t,simulationHelpers:i}=n();t==="split"&&i.addSplitForce(),t==="sphere"&&i.addRadialForce(),t==="force"&&i.addDefaultForce(),i.simulationRestart()},simulationRestart:()=>{const{simulation:t}=n();t.alpha(1).restart()}},simulationCreate:(t,i)=>{const s=structuredClone(t),o=structuredClone(i),l=s6([]).numDimensions(3).stop().nodes(s).force("link",F0().strength(0).links(o).id(C=>C.ref_id));e({simulation:l})},removeSimulation:()=>e({simulation:null}),setSearchQuery:t=>e({searchQuery:t})})),d3=()=>j1(e=>e.selectedNode),E7=()=>j1(e=>e.hoveredNode),a6=()=>j1(e=>e.setSelectedNode),c6=()=>(j1(z5(e=>[e.graphStyle,e.setGraphStyle])),null);q(f1).attrs({direction:"row",align:"center",justify:"space-between"})` - padding: 6px 6px 6px 11px; - background: ${i1.BG1}; - border-radius: 200px; - .icon { - color: ${i1.GRAY6}; - font-size: 20px; - cursor: pointer; - - &:hover { - color: ${i1.GRAY3}; - } - - &:active { - color: ${i1.white}; - } - - &.active { - color: ${i1.white}; - } - } - - .icon + .icon { - margin-left: 20px; - } -`;const f3=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 18 17",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"center",children:[r.jsx("path",{id:"Vector 121",d:"M9 4L9 1",stroke:"white","stroke-linecap":"round"}),r.jsx("path",{id:"Vector 123",d:"M14 9H17",stroke:"white","stroke-linecap":"round"}),r.jsx("path",{id:"Vector 122",d:"M9 16L9 14",stroke:"white","stroke-linecap":"round"}),r.jsx("path",{id:"Vector 124",d:"M1 9L4 9",stroke:"white","stroke-linecap":"round"}),r.jsx("circle",{id:"Ellipse 2",cx:"9.00001",cy:"9.00001",r:"5.02857",stroke:"white"})]})}),h6=()=>{const e=j1(t=>t.cameraFocusTrigger),n=j1(t=>t.setCameraFocusTrigger);return r.jsx(u6,{href:"",onClick:()=>n(!e),size:"medium",startIcon:r.jsx(f3,{})})},u6=q(Y2)` - && { - padding: 0; - width: 32px; - min-width: auto; - justify-content: center; - align-items: center; - pointer-events: all; - - .MuiButton-startIcon { - margin-left: 0; - filter: brightness(0.65); - } - } -`,p3=q.div` - position: relative; - display: inline-flex; - align-items: center; -`,d6=q.div` - visibility: hidden; - width: auto; - background-color: ${({backgroundColor:e})=>e||"white"}; - color: ${({color:e})=>e||"black"}; - text-align: ${({textAlign:e})=>e||"center"}; - min-width: ${({minWidth:e})=>e||"auto"}; - border-radius: ${({borderRadius:e})=>e||"4px"}; - padding: ${({padding:e})=>e||"5px 8px"}; - position: absolute; - z-index: 1; - ${({position:e})=>{switch(e){case"top":return"bottom: 100%; left: 50%; transform: translateX(-50%);";case"left":return"right: calc(100% + 6px); top: 50%; transform: translateY(-50%);";default:return"top: 100%; left: 50%; transform: translateX(-50%);"}}} - margin-top: ${({margin:e})=>e||"0px"}; - opacity: 0; - transition: opacity 0.3s; - white-space: ${({whiteSpace:e})=>e||"nowrap"}; - overflow: hidden; - text-overflow: ellipsis; - font-size: ${({fontSize:e})=>e||"12px"}; - font-weight: ${({fontWeight:e})=>e||"600"}; - - ${p3}:hover & { - visibility: visible; - opacity: 1; - } -`,f6=({content:e,children:n,margin:t,backgroundColor:i,color:s,padding:o,fontSize:l,fontWeight:C,borderRadius:a,minWidth:h,whiteSpace:c,position:u,textAlign:p})=>r.jsxs(p3,{children:[n,r.jsx(d6,{backgroundColor:i,borderRadius:a,color:s,fontSize:l,fontWeight:C,margin:t,minWidth:h,padding:o,position:u,textAlign:p,whiteSpace:c,children:e})]}),p6=()=>{const{resetGraph:e}=I1(n=>n);return r.jsx(f6,{content:"Clear Graph",fontSize:"13px",position:"left",children:r.jsx(x6,{href:"",onClick:()=>e(),size:"medium",startIcon:r.jsx(C2,{})})})},x6=q(Y2)` - && { - padding: 0; - width: 32px; - min-width: auto; - justify-content: center; - align-items: center; - pointer-events: all; - - .MuiButton-startIcon { - margin-left: 0; - color: #fff; - filter: brightness(0.65); - } - } -`,x3=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 38 38",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("g",{id:"Property 1=Pause Normal",children:r.jsx("path",{id:"Pause",d:"M19 3C10.15 3 3 10.15 3 19C3 27.85 10.15 35 19 35C27.85 35 35 27.85 35 19C35 10.15 27.8 3 19 3ZM17.25 23.3C17.25 24.25 16.5 25.05 15.5 25.05C14.55 25.05 13.75 24.3 13.75 23.3V14.65C13.75 13.7 14.5 12.9 15.5 12.9C16.45 12.9 17.25 13.65 17.25 14.65V23.3ZM24.2 23.3C24.2 24.25 23.45 25.05 22.45 25.05C21.5 25.05 20.7 24.3 20.7 23.3V14.65C20.7 13.7 21.45 12.9 22.45 12.9C23.4 12.9 24.2 13.65 24.2 14.65V23.3Z",fill:"currentColor"})})}),g3=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 38 38",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("g",{id:"Play & Pause",children:r.jsx("path",{id:"Play",d:"M19 3C10.1606 3 3 10.1606 3 19C3 27.8394 10.1606 35 19 35C27.8394 35 35 27.8394 35 19C35 10.1606 27.8338 3 19 3ZM24.0746 20.0898L16.936 24.6361C16.182 25.1149 15.1913 24.5755 15.1913 23.6784V14.5913C15.1913 13.6942 16.182 13.1548 16.936 13.6336L24.0746 18.1799C24.7736 18.6202 24.7736 19.644 24.0746 20.0898Z",fill:"currentColor"})})}),V1={isPlaying:!1,miniPlayerIsVisible:!1,hasError:!1,isSeeking:!1,playingTime:0,playingNode:null,duration:0,volume:.5,playbackSpeed:1,playerRef:null},g6=X2()(_3((e,n)=>({...V1,setIsSeeking:t=>e({isSeeking:t}),setIsPlaying:t=>e({isPlaying:t}),setPlayerRef:t=>e({playerRef:t}),setMiniPlayerIsVisible:t=>{e(t?{miniPlayerIsVisible:t}:{miniPlayerIsVisible:t,isPlaying:!1})},setHasError:t=>e({hasError:t}),setPlayingTime:t=>e({playingTime:t}),setDuration:t=>e({duration:t}),setVolume:t=>e({volume:t}),setPlayingNodeLink:t=>{const{playingNode:i}=n();i&&e({playingNode:{...i,link:t}})},setPlayingNode:t=>{t||e({...V1});const i=n().playingNode;(i==null?void 0:i.ref_id)!==(t==null?void 0:t.ref_id)&&e({...V1,miniPlayerIsVisible:!0,playingNode:t})},resetPlayer:()=>e({duration:V1.duration,hasError:V1.hasError}),setPlaybackSpeed:t=>e({playbackSpeed:t})}))),m6=()=>{var v,m,y,j,L;const e=H.useRef(null),[n,t]=H.useState(0),i=d3(),s=a6(),[o,l]=K2(M=>[M.sidebarIsOpen,M.setSidebarOpen]),[C,a,h,c,u,p]=g6(M=>[M.isPlaying,M.setIsPlaying,M.playingTime,M.playingNode,M.miniPlayerIsVisible,M.setMiniPlayerIsVisible]),[x,f]=(v=c==null?void 0:c.properties)!=null&&v.timestamp?c.properties.timestamp.split("-").map(M=>M3(M)):[0,0],_=(h-x)/(f-x)*100;H.useEffect(()=>{var P,V;const M=((P=e.current)==null?void 0:P.offsetWidth)||0,S=((V=e.current)==null?void 0:V.scrollWidth)||0;t(S-M)},[]);const w=M=>{p(!1),M.stopPropagation()},d=()=>{s(c),l(!0)},k=o&&(i==null?void 0:i.ref_id)!==(c==null?void 0:c.ref_id)||c&&!o,g=((m=window.location)==null?void 0:m.hostname)==="graphmindset.sphinx.chat";return u&&c&&k&&!g?r.jsxs(w6,{onClick:d,children:[r.jsxs(v6,{children:[r.jsx(y3,{src:((y=c==null?void 0:c.properties)==null?void 0:y.image_url)||"",type:c.node_type}),r.jsxs(_6,{children:[r.jsxs(H6,{ref:e,children:[r.jsx(L6,{className:"title",scrollValue:n,children:(j=c==null?void 0:c.properties)==null?void 0:j.episode_title}),r.jsx("div",{className:"subtitle",children:(L=c==null?void 0:c.properties)==null?void 0:L.show_title})]}),r.jsx(y6,{"data-testid":"play-pause-button",onClick:M=>{a(!C),M.stopPropagation()},size:"small",children:C?r.jsx(x3,{"data-testid":"pause-icon"}):r.jsx(g3,{"data-testid":"play-icon"})})]}),r.jsx(k6,{onClick:M=>w(M),children:r.jsx(C2,{})})]}),r.jsx(j6,{value:_,variant:"determinate"})]}):null},w6=q(f1).attrs({direction:"column",align:"stretch",justify:"space-between"})` - padding: 8px; - background: ${i1.BG1}; - border-radius: 6px; - width: 320px; - height: 72px; - margin-top: 16px; - cursor: pointer; - z-index: 0; -`,v6=q(f1).attrs({direction:"row",align:"center",justify:"flex-start"})``,_6=q(f1).attrs({direction:"row",align:"center",justify:"space-between"})` - flex: 1; - color: ${i1.white}; - margin-left: 11px; - - .title { - font-size: 13px; - margin-bottom: 2px; - font-weight: 500; - } - - .subtitle { - font-size: 11px; - color: ${i1.GRAY6}; - overflow: hidden; - white-space: nowrap; - text-overflow: ellipsis; - } -`,k6=q(e3)` - padding: 8px; - color: ${i1.GRAY6}; - z-index: 100000; -`,y6=q(e3)` - && { - font-size: 36px; - padding: 2px; - margin-left: 8px; - overflow: hidden; - z-index: 100000; - } -`,j6=q(k3)` - && { - flex-shrink: 0; - height: 2px; - background-color: ${i1.white}; - color: blue; - - .MuiLinearProgress-bar { - background: rgb(65, 90, 127); - } - } -`,L6=q.div` - white-space: nowrap; - overflow: hidden; - width: max-content; - animation: scrollText 12s linear infinite; - - @keyframes scrollText { - 0%, - 15% { - transform: translateX(0); - } - - 60%, - 75% { - transform: translateX(${e=>-e.scrollValue}px); - } - - 100% { - transform: translateX(0); - } - } - color: #fff; -`,H6=q(f1)` - overflow: hidden; - flex: 1; -`,M6=()=>{const e=d3(),n=I1(s=>s.isFetching),t=K2(s=>s.universeQuestionIsOpen),{isAdmin:i}=j3(s=>s);return r.jsxs(V6,{align:"flex-end",id:"actions-toolbar",children:[r.jsxs(Z6,{children:[!n&&!t&&i&&r.jsx(p6,{}),!n&&!t&&r.jsx(h6,{})]}),r.jsx(f1,{align:"center",direction:"row",mt:16,children:!n&&!t&&r.jsx(c6,{})}),r.jsx(m6,{},e==null?void 0:e.ref_id)]})},V6=q(f1)` - position: absolute; - right: 20px; - bottom: 20px; - pointer-events: all; -`,Z6=q.div` - display: flex; - flex-direction: column; - gap: 4px; -`,S7=()=>r.jsx(b6,{children:r.jsx(M6,{})}),b6=q("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}})),I7=()=>{const e=H.useContext(L3);return e==null?void 0:e.socket},E6=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"})}),S6=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"})})]})}),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.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"})}),P6=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"})})]}),B6=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"})})]})}),T6=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"})})]}),N6=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"})}),R6=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"})}),U6=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"})}),O6=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"})})]})}),$6=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"})}),z6=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"})}),F6=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"})})]})}),D6=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"})})]}),q6=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"})}),G6=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"})})]})}),W6=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"})})]}),X6=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"})}),Y6=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"})})]})}),K6=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"})}),Q6=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"})}),J6=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"})}),e9=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"})})]})}),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:"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"})})]})}),n9=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"})}),r9=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"})]}),i9=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"})})]})}),s9=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"})}),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_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"})})]}),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_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"})})]}),C9=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"})]}),a9=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"})})]})}),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_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"})})]}),h9=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"})]}),u9=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"})})]})]}),d9=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"})})]})}),f9=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"})]}),p9=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"})})]}),x9=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"})}),g9=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"})})]}),m9=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"})})}),w9=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"})]}),v9=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"})}),_9=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"})]})}),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_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"})})]}),j9=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"})]})]})}),L9=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"})}),H9=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"})}),M9=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"})})]})}),V9=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"})})]}),Z9=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"})]}),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_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"})})]}),E9=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"})})]}),S9=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"})})]}),I9=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"})}),P9=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"})})]}),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_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"})})]}),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"})}),N9=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"})}),R9=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"})}),U9=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"})})]}),O9=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"})})}),$9=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"})})}),z9=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"})}),F9=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"})})]}),D9=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"})]})]})}),q9=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"})}),G9=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"})})]})}),W9=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"})}),X9=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"})}),Y9=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"})})]}),K9=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"})})]}),Q9=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"})})]}),J9=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"})})]}),e7=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"})})]})}),t7=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"})})]}),n7=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"})})]}),r7=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"})})]}),i7=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"})})]}),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_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"})})]}),o7=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"})})]})}),l7=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"})})]}),C7=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"})}),a7=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"})}),c7=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"})})}),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:"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"})})]})}),u7=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"})})]}),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_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"})})]}),f7=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"})})]})}),p7=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"})}),x7=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"})})]})}),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.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"})})}),m7=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"})})]}),w7=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"})})]})}),v7=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"})})]}),_7=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"})]}),k7=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"})})]}),j7=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"})})})]})}),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:"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"})})]})}),H7=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"})}),M7=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"})}),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:"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"})})]})}),P7={AddCircleIcon:I6,AddContentIcon:P6,AddLinkIcon:B6,AddSourceIcon:T6,AiPauseIcon:N6,AiPlayIcon:R6,AiSummaryIcon:U6,AndroidIcon:O6,ArrowBackIcon:A6,ArrowForwardIcon:$6,ArrowRight:z6,AudioIcon:F6,BitcoinIcon:D6,BoostIcon:q6,BrowseGalleryIcon:G6,BubbleChartIcon:F5,BudgetIcon:E6,BuildIcon:W6,CalendarIcon:X6,CameraCenterIcon:f3,CancelIcon:Y6,CheckIcon:K6,CheckedIcon:Q6,ChevronDownIcon:J6,ChevronLeftIcon:e9,ChevronRightIcon:t9,ChevronUpIcon:n9,ChipIcon:r9,ClearIcon:C2,CloseIcon:i9,ColorPickerIcon:s9,CommunitiesIcon:D5,CompassIcon:o9,ConstructionIcon:l9,ContentIcon:C9,CopyIcon:a9,CorporationIcon:c9,CreateEdgeIcon:h9,DefaultShowIcon:u9,DeleteIcon:d9,DeleteNodeIcon:f9,DesignServicesIcon:p9,DocumentIcon:x9,DownloadIcon:g9,EditIcon:m9,EditNodeIcon:w9,EditTopicIcon:v9,EpisodeIcon:_9,EventIcon:k9,ExitFullScreen:y9,ExploreIcon:j9,FamilyHistoryIcon:L9,FeedbackIcon:H9,FilterOffIcon:M9,FingerprintIcon:V9,FlipIcon:Z9,FortIcon:b9,FullScreenIcon:E9,FunctionIcon:S9,GlobeIcon:I9,GrainIcon:q5,HandymanIcon:P9,HardwareIcon:B9,HashTag:T9,HashtagIcon:N9,HelpIcon:R9,HomeIcon:U9,InfoIcon:H3,JoystickIcon:O9,LinkIcon:A9,MenuIcon:$9,MergeIcon:z9,MoneyIcon:F9,MuteVolumeIcon:D9,NodeCircleIcon:q9,NodesIcon:S6,NotesIcon:G9,OrganizationIcon:W9,PauseIcon:x3,PersonAdd:X9,PersonIcon:Y9,PhoneIcon:K9,PlaceIcon:Q9,PlayIcon:g3,PlusIcon:J9,PropertyHide:e7,PropertyShow:t7,PublicIcon:G5,QrCodeIcon:n7,ReloadIcon:r7,RobotIcon:i7,SaveIcon:s7,ScheduleIcon:o7,SchoolIcon:l7,SearchFilterCloseIcon:C7,SearchFilterIcon:a7,SearchIcon:c7,SensorsIcon:h7,SentimentDataIcon:u7,SettingsIcon:d7,ShieldPersonIcon:f7,SortFilterIcon:p7,SoundIcon:x7,SourcesIcon:g7,SourcesTableIcon:m7,StackIcon:w7,StorageIcon:v7,SucessFeedBackIcon:_7,SumFunctionIcon:k7,ThreeDotsIcons:y7,TwitterIcon:j7,VideoIcon:L7,VisibilityOff:H7,VisibilityOn:M7,VolumeIcon:V7};export{n9 as $,M6 as A,E6 as B,D5 as C,q1 as D,j9 as E,H9 as F,S5 as G,R9 as H,P7 as I,D3 as J,c7 as K,N6 as L,D9 as M,S6 as N,S7 as O,b7 as P,R6 as Q,w7 as R,m7 as S,f6 as T,J9 as U,V7 as V,q6 as W,A9 as X,I9 as Y,N9 as Z,g7 as _,I7 as a,J6 as a0,U6 as a1,A6 as a2,K6 as a3,G6 as a4,g9 as a5,r7 as a6,u7 as a7,T9 as a8,C7 as a9,F0 as aA,D2 as aB,P2 as aC,n2 as aD,s6 as aE,L9 as aF,h9 as aG,_7 as aH,Z3 as aI,U5 as aJ,r5 as aK,x7 as aL,F5 as aM,a7 as aa,G9 as ab,a9 as ac,o7 as ad,E9 as ae,y9 as af,e9 as ag,t9 as ah,C9 as ai,M9 as aj,N3 as ak,d9 as al,q9 as am,Z9 as an,z6 as ao,t7 as ap,e7 as aq,y7 as ar,M7 as as,H7 as at,z9 as au,p7 as av,v9 as aw,I6 as ax,w9 as ay,f9 as az,g6 as b,x3 as c,g3 as d,e3 as e,j1 as f,$9 as g,T6 as h,P6 as i,d7 as j,$6 as k,d3 as l,E7 as m,z5 as n,m9 as o,i9 as p,s1 as q,n3 as r,B1 as s,Q2 as t,a6 as u,M3 as v,V3 as w,J2 as x,D1 as y,t3 as z}; diff --git a/build/assets/index-fe4c7b4c.js b/build/assets/index-4a684a7a.js similarity index 85% rename from build/assets/index-fe4c7b4c.js rename to build/assets/index-4a684a7a.js index 3cb13ba90..193641d35 100644 --- a/build/assets/index-fe4c7b4c.js +++ b/build/assets/index-4a684a7a.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,aT as G,aU as k,aV as y,v as z,aW as w,aX as M,aY as D,e as j,aZ as I}from"./index-1d805415.js";import{f as A,n as R}from"./index-3ac851f3.js";import{C as B}from"./ClipLoader-9eb1180c.js";import{T as E,a as L}from"./Tabs-050299f8.js";import"./createSvgIcon-b68c7390.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,i as C,b as $,g as T,aQ as G,aR as k,aS as y,k as z,aT as w,aU as M,aV as R,a0 as j,aW as D}from"./index-2353781d.js";import{e as A,h as I}from"./index-068043a5.js";import{C as B}from"./ClipLoader-c90857c8.js";import{T as E,a as L}from"./Tabs-9bc26124.js";import"./createSvgIcon-09ff14f6.js";const V=()=>(A(I(a=>[a.graphStyle,a.setGraphStyle])),null);t(n).attrs({direction:"row",align:"center",justify:"space-between"})` width: 447px; height: 48px; background: ${o.appearanceBg}; @@ -47,7 +47,7 @@ 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,aT width: 16px; height: 16px; } -`,Y=({initialValues:a,onClose:d})=>{const l=C({defaultValues:a,mode:"onSubmit"}),{isSubmitting:r}=l.formState,p=$(s=>s.setAppMetaData),{swarmUiUrl:x}=T(s=>s),[h,u]=b.useState(""),m=l.handleSubmit(async s=>{try{(await G(s)).status==="success"&&(k("Changes Saved"),p(s),d())}catch(c){let f=y;if((c==null?void 0:c.status)===400){const g=await c.json();f=g.errorCode||(g==null?void 0:g.status)||y}else c instanceof Error&&(f=c.message);u(String(f))}}),i=s=>{s.preventDefault(),m()};return e.jsx(z,{...l,children:e.jsx(N,{id:"add-node-form",onSubmit:i,children:e.jsxs(H,{children:[e.jsxs(n,{children:[x&&e.jsx(_,{children:e.jsx(q,{href:x,children:"View Swarm UI"})}),e.jsx(n,{pt:20,children:e.jsx(w,{id:"cy-about-title-id",label:"Graph Title",maxLength:50,name:"title",placeholder:"Type graph title here...",rules:{...M}})}),e.jsx(n,{pt:20,children:e.jsx(w,{id:"cy-about-id",label:"Graph Description",maxLength:100,name:"description",placeholder:"Type graph description here..."})})]}),e.jsxs(n,{mt:210,py:h?0:24,children:[e.jsx(v,{color:"secondary",disabled:r,id:"add-node-submit-cta",size:"large",startIcon:r&&e.jsx(O,{children:e.jsx(B,{color:o.lightGray,size:12})}),type:"submit",variant:"contained",children:"Save Changes"}),h?e.jsx(K,{children:e.jsxs(X,{children:[e.jsx(D,{className:"errorIcon"}),e.jsx("span",{children:h})]})}):null]})]})})})},N=t.form` +`,Y=({initialValues:a,onClose:d})=>{const l=C({defaultValues:a,mode:"onSubmit"}),{isSubmitting:r}=l.formState,p=$(s=>s.setAppMetaData),{swarmUiUrl:x}=T(s=>s),[h,u]=b.useState(""),m=l.handleSubmit(async s=>{try{(await G(s)).status==="success"&&(k("Changes Saved"),p(s),d())}catch(c){let f=y;if((c==null?void 0:c.status)===400){const g=await c.json();f=g.errorCode||(g==null?void 0:g.status)||y}else c instanceof Error&&(f=c.message);u(String(f))}}),i=s=>{s.preventDefault(),m()};return e.jsx(z,{...l,children:e.jsx(N,{id:"add-node-form",onSubmit:i,children:e.jsxs(H,{children:[e.jsxs(n,{children:[x&&e.jsx(_,{children:e.jsx(q,{href:x,children:"View Swarm UI"})}),e.jsx(n,{pt:20,children:e.jsx(w,{id:"cy-about-title-id",label:"Graph Title",maxLength:50,name:"title",placeholder:"Type graph title here...",rules:{...M}})}),e.jsx(n,{pt:20,children:e.jsx(w,{id:"cy-about-id",label:"Graph Description",maxLength:100,name:"description",placeholder:"Type graph description here..."})})]}),e.jsxs(n,{mt:210,py:h?0:24,children:[e.jsx(v,{color:"secondary",disabled:r,id:"add-node-submit-cta",size:"large",startIcon:r&&e.jsx(O,{children:e.jsx(B,{color:o.lightGray,size:12})}),type:"submit",variant:"contained",children:"Save Changes"}),h?e.jsx(K,{children:e.jsxs(Q,{children:[e.jsx(R,{className:"errorIcon"}),e.jsx("span",{children:h})]})}):null]})]})})})},N=t.form` padding: 36px; height: 100%; `,O=t.span` @@ -80,7 +80,7 @@ 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,aT color: ${o.primaryRed}; position: relative; margin-top: 10px; -`,X=t(n)` +`,Q=t(n)` display: flex; flex-direction: row; align-items: center; @@ -107,7 +107,7 @@ 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,aT font-family: Barlow; line-height: 18px; } -`,Z=a=>{const{children:d,value:l,index:r,...p}=a;return l===r?e.jsx(ie,{"aria-labelledby":`simple-tab-${r}`,hidden:l!==r,id:`simple-tabpanel-${r}`,role:"tabpanel",...p,children:d}):null};function J(a){return{id:`simple-tab-${a}`,"aria-controls":`simple-tabpanel-${a}`}}const Q=({onClose:a})=>{const[d,l]=b.useState(0),[r]=T(i=>[i.isAdmin,i.setPubKey]),p=$(i=>i.appMetaData),x=()=>r?"Admin Settings":"Settings",h=({children:i})=>e.jsxs(te,{children:[e.jsx(n,{direction:"row",pt:3,children:e.jsx(se,{"data-testid":"setting-label",children:x()})}),i]}),u=(i,s)=>{l(s)},m=[...r?[{label:"General",component:Y}]:[],{label:"Appearance",component:W}];return e.jsxs(ne,{"data-testid":"settings-modal",direction:"column",children:[e.jsx(h,{children:e.jsx(ee,{"aria-label":"settings tabs",onChange:u,value:d,children:m.map((i,s)=>e.jsx(ae,{disableRipple:!0,label:i.label,...J(s)},i.label))})}),m.map((i,s)=>e.jsx(Z,{index:s,value:d,children:p&&e.jsx(i.component,{initialValues:p,onClose:a})},i.label))]})},ee=t(E)` +`,J=a=>{const{children:d,value:l,index:r,...p}=a;return l===r?e.jsx(ie,{"aria-labelledby":`simple-tab-${r}`,hidden:l!==r,id:`simple-tabpanel-${r}`,role:"tabpanel",...p,children:d}):null};function X(a){return{id:`simple-tab-${a}`,"aria-controls":`simple-tabpanel-${a}`}}const Z=({onClose:a})=>{const[d,l]=b.useState(0),[r]=T(i=>[i.isAdmin,i.setPubKey]),p=$(i=>i.appMetaData),x=()=>r?"Admin Settings":"Settings",h=({children:i})=>e.jsxs(te,{children:[e.jsx(n,{direction:"row",pt:3,children:e.jsx(se,{"data-testid":"setting-label",children:x()})}),i]}),u=(i,s)=>{l(s)},m=[...r?[{label:"General",component:Y}]:[],{label:"Appearance",component:W}];return e.jsxs(ne,{"data-testid":"settings-modal",direction:"column",children:[e.jsx(h,{children:e.jsx(ee,{"aria-label":"settings tabs",onChange:u,value:d,children:m.map((i,s)=>e.jsx(ae,{disableRipple:!0,label:i.label,...X(s)},i.label))})}),m.map((i,s)=>e.jsx(J,{index:s,value:d,children:p&&e.jsx(i.component,{initialValues:p,onClose:a})},i.label))]})},ee=t(E)` && { .MuiTabs-indicator { background: ${o.primaryBlue}; @@ -182,4 +182,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,aT @media (max-width: 768px) { font-size: 18px; } -`,ce=()=>{const{close:a}=j("settings"),{visible:d}=j("addItem");return d?null:e.jsx(I,{background:"BG1",id:"settings",noWrap:!0,onClose:a,preventOutsideClose:!0,children:e.jsx(Q,{onClose:a})})};export{ce as SettingsModal}; +`,ce=()=>{const{close:a}=j("settings"),{visible:d}=j("addItem");return d?null:e.jsx(D,{background:"BG1",id:"settings",noWrap:!0,onClose:a,preventOutsideClose:!0,children:e.jsx(Z,{onClose:a})})};export{ce as SettingsModal}; diff --git a/build/assets/index-4dcb3294.js b/build/assets/index-4dcb3294.js deleted file mode 100644 index bb109d6b4..000000000 --- a/build/assets/index-4dcb3294.js +++ /dev/null @@ -1 +0,0 @@ -import{a8 as c}from"./index-1d805415.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-0c2703db.js b/build/assets/index-50985761.js similarity index 55% rename from build/assets/index-0c2703db.js rename to build/assets/index-50985761.js index d6038d34b..80179ed6a 100644 --- a/build/assets/index-0c2703db.js +++ b/build/assets/index-50985761.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,bu as C,bw as R,aZ as z}from"./index-1d805415.js";import{az as I,f as D,l as E}from"./index-3ac851f3.js";import{S as L}from"./Skeleton-633e7f1d.js";import{C as T}from"./ClipLoader-9eb1180c.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(I,{})}),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,a0 as j,r as l,u as $,B as w,br as C,bt as R,aW as D}from"./index-2353781d.js";import{e as I,f as z}from"./index-068043a5.js";import{D as E}from"./DeleteNodeIcon-be8a9a17.js";import{S as L}from"./Skeleton-d97f7e12.js";import{C as T}from"./ClipLoader-c90857c8.js";const G=({nodeName:p})=>e.jsx(c,{children:e.jsxs(c,{align:"center",direction:"column",justify:"space-between",children:[e.jsx(W,{children:e.jsx(E,{})}),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; @@ -9,7 +9,7 @@ import{s as i,a as t,F as c,j as e,e as j,r as l,u as $,B as w,bu as C,bw as R,a padding: 0 20px; width: 100%; word-wrap: break-word; -`,A=i(c)` +`,W=i(c)` justify-content: center; align-items: center; font-size: 52px; @@ -19,7 +19,7 @@ import{s as i,a as t,F as c,j as e,e as j,r as l,u as $,B as w,bu as C,bw as R,a path:nth-child(3) { color: #6b7a8d; } -`,W=()=>{const{close:p}=j("removeNode"),{close:h}=j("editNodeName"),[x,d]=l.useState(!1),[g]=D(s=>[s.setSelectedNode]),[v]=$(s=>[s.removeNode]),[N,y]=l.useState(!1),[n,b]=l.useState(),[a,S]=l.useState(),o=E(),u=()=>{p()};l.useEffect(()=>{(async()=>{if(o){y(!0);try{if(o.type==="topic"){const{data:r}=await C({search:o==null?void 0:o.name}),f=r.find(m=>m.name===o.name);S(f)}else b(o)}catch(r){console.error(r)}finally{y(!1)}}})()},[o]);const k=async()=>{d(!0);try{g(null),u(),h()}catch(s){console.warn(s)}finally{d(!1)}},B=async()=>{let s="";const r=n||a;if(!r)return;r!=null&&r.ref_id&&(s=r.ref_id),d(!0);const f=o==null?void 0:o.ref_id;try{await R(s),v(f),g(null),u(),h()}catch(m){console.warn(m)}finally{d(!1)}};return e.jsxs(_,{children:[e.jsx(G,{nodeName:(n==null?void 0:n.name)||(a==null?void 0:a.name)||""}),N?e.jsx(L,{}):e.jsxs(c,{direction:"row",mt:34,children:[e.jsx(F,{color:"secondary",onClick:u,size:"large",style:{flex:1,marginRight:20},variant:"contained",children:"Cancel"}),e.jsxs(H,{color:"secondary",disabled:x||!n&&!a,onClick:n||a?B:k,size:"large",style:{flex:1},variant:"contained",children:["Delete",x&&e.jsx(O,{children:e.jsx(T,{color:t.lightGray,size:12})})]})]})]})},_=i(c)` +`,A=()=>{const{close:p}=j("removeNode"),{close:h}=j("editNodeName"),[x,d]=l.useState(!1),[g]=I(s=>[s.setSelectedNode]),[v]=$(s=>[s.removeNode]),[N,y]=l.useState(!1),[n,b]=l.useState(),[a,S]=l.useState(),o=z(),f=()=>{p()};l.useEffect(()=>{(async()=>{if(o){y(!0);try{if(o.type==="topic"){const{data:r}=await C({search:o==null?void 0:o.name}),m=r.find(u=>u.name===o.name);S(m)}else b(o)}catch(r){console.error(r)}finally{y(!1)}}})()},[o]);const k=async()=>{d(!0);try{g(null),f(),h()}catch(s){console.warn(s)}finally{d(!1)}},B=async()=>{let s="";const r=n||a;if(!r)return;r!=null&&r.ref_id&&(s=r.ref_id),d(!0);const m=o==null?void 0:o.ref_id;try{await R(s),v(m),g(null),f(),h()}catch(u){console.warn(u)}finally{d(!1)}};return e.jsxs(_,{children:[e.jsx(G,{nodeName:(n==null?void 0:n.name)||(a==null?void 0:a.name)||""}),N?e.jsx(L,{}):e.jsxs(c,{direction:"row",mt:34,children:[e.jsx(F,{color:"secondary",onClick:f,size:"large",style:{flex:1,marginRight:20},variant:"contained",children:"Cancel"}),e.jsxs(H,{color:"secondary",disabled:x||!n&&!a,onClick:n||a?B:k,size:"large",style:{flex:1},variant:"contained",children:["Delete",x&&e.jsx(O,{children:e.jsx(T,{color:t.lightGray,size:12})})]})]})]})},_=i(c)` padding: 4px 12px 16px; `,F=i(w)` && { @@ -47,4 +47,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,bu as C,bw as R,a } `,O=i.span` margin-top: 2px; -`,P=()=>e.jsx(z,{id:"removeNode",kind:"small",preventOutsideClose:!0,children:e.jsx(W,{})});export{P as RemoveNodeModal}; +`,U=()=>e.jsx(D,{id:"removeNode",kind:"small",preventOutsideClose:!0,children:e.jsx(A,{})});export{U as RemoveNodeModal}; diff --git a/build/assets/index-673eed35.js b/build/assets/index-673eed35.js deleted file mode 100644 index bddb4ce64..000000000 --- a/build/assets/index-673eed35.js +++ /dev/null @@ -1,47 +0,0 @@ -import{s as c,a as N,T as _,F as r,e as x,q as O,r as d,j as e,aW as P,aX as V,t as k,u as q,v as G,B as F,bu as H,bv as X,aZ as Y}from"./index-1d805415.js";import{l as I,ay as Z}from"./index-3ac851f3.js";import{T as J}from"./index-5b7bb80c.js";import{S as K}from"./Skeleton-633e7f1d.js";import{C as Q}from"./ClipLoader-9eb1180c.js";const ee=/^https:\/\/\S+\.(png|jpe?g|svg)$/;function te(i){return!!ee.test(i)}function ae(i){return i.split("_").map(p=>p.charAt(0).toUpperCase()+p.slice(1)).join(" ")}const oe=()=>{const{open:i}=x("changeNodeType"),{close:p}=x("editNodeName"),{changeNodeTypeFeatureFlag:y}=O(o=>({changeNodeTypeFeatureFlag:o.changeNodeTypeFeatureFlag})),a=I(),j=a==null?void 0:a.node_type,[m,g]=d.useState({});d.useEffect(()=>{a!=null&&a.properties&&g(a.properties)},[a]);const b=()=>{p(),i()},h=(o,n)=>{g(T=>({...T,[o]:n}))};return e.jsxs(r,{children:[e.jsx(r,{align:"center",direction:"row",justify:"space-between",mb:18,children:e.jsxs(r,{align:"center",direction:"row",children:[e.jsx(ne,{children:"Edit Node"}),e.jsxs(re,{children:[e.jsx(J,{type:j}),y&&e.jsx(ie,{onClick:b,children:e.jsx(Z,{})})]})]})}),e.jsx(ce,{children:Object.keys(m).map(o=>e.jsxs(r,{mb:18,children:[e.jsx(se,{style:{marginBottom:8},children:ae(o)}),e.jsx(P,{id:`cy-${o}`,maxLength:50,name:`properties.${o}`,onChange:n=>h(o,n),placeholder:`Please Enter the ${o}`,rules:o==="name"?{...V}:{}})]},o))})]})},ne=c(_)` - font-size: 22px; - font-weight: 600; - font-family: 'Barlow'; -`,se=c(_)` - color: ${N.GRAY6}; - font-family: 'Barlow'; - font-size: 12px; - font-weight: 400; - line-height: 18px; -`,re=c.span` - display: inline-flex; - align-items: center; - justify-content: center; - gap: 15px; - margin: 5px 0 0 40px; -`,ie=c(r)` - align-items: center; - cursor: pointer; -`,ce=c(r)` - display: flex; - max-height: 60vh; - overflow-y: auto; - padding-right: 40px; - width: calc(100% + 40px); -`,le=()=>{var w,E,S;const{close:i}=x("editNodeName"),p=k({mode:"onChange"}),{watch:y,setValue:a,reset:j,getValues:m}=p,[g,b]=d.useState(!1),[h,o]=d.useState(!1),[n,T]=d.useState(),t=I(),D=q(s=>s.updateNode),{open:B}=x("removeNode");d.useEffect(()=>(n?Object.keys(n).forEach(s=>{a(s,n[s])}):t&&Object.keys(t).forEach(s=>{a(s,t[s])}),()=>{j()}),[n,a,j,t]),d.useEffect(()=>{(async()=>{if(!(!t||t.type!=="topic")){o(!0);try{const{data:u}=await H({search:t==null?void 0:t.name}),f=u.find(A=>A.name===t.name);T(f)}catch(u){console.error(u)}finally{o(!1)}}})()},[t]);const L=y("imageInputType"),v=y("image_url");d.useEffect(()=>{a("imageInputType",te(v))},[v,a]);const R=()=>{i()},l=n||t,$=async()=>{if(!l)return;b(!0);const s=m(),u={name:s.name,image_url:s.image_url,properties:s.properties};try{const f={node_type:l.node_type,ref_id:l.ref_id,properties:u.properties};await X((l==null?void 0:l.ref_id)||"",f),D({...l,...u}),R()}catch(f){console.warn(f)}finally{b(!1)}},z=async()=>{B()},C=(E=(w=m())==null?void 0:w.name)==null?void 0:E.trim(),M=C&&(n==null?void 0:n.name.trim())!==C,U=m().image_url&&(t==null?void 0:t.image_url)!==((S=m())==null?void 0:S.image_url),W=g||h||!!v&&!L||!M&&!U;return e.jsx(de,{children:e.jsxs(G,{...p,children:[h?e.jsx(r,{my:24,children:e.jsx(K,{})}):e.jsx(oe,{}),e.jsxs(r,{direction:"row",justify:"space-between",mt:20,children:[e.jsx(r,{direction:"column",children:e.jsx(pe,{color:"secondary",disabled:h||!l,onClick:z,size:"large",variant:"contained",children:"Delete"})}),e.jsxs(ue,{color:"secondary",disabled:W,onClick:$,size:"large",variant:"contained",children:["Save Changes",g&&e.jsx(me,{children:e.jsx(Q,{color:N.lightGray,size:12})})]})]})]})})},de=c(r)` - padding: 20px; -`,pe=c(F)` - && { - color: ${N.primaryRed}; - background-color: rgba(237, 116, 116, 0.1); - flex: 1; - margin-right: 10px; - - &:hover, - &:active, - &:focus { - color: ${N.primaryRed}; - background-color: rgba(237, 116, 116, 0.2); - } - } -`,me=c.span` - margin-top: 4px; -`,ue=c(F)` - width: 80% !important; - margin: 0 auto !important; -`,je=()=>{const{close:i}=x("editNodeName");return e.jsx(Y,{id:"editNodeName",kind:"regular",onClose:i,preventOutsideClose:!0,children:e.jsx(le,{})})};export{je as EditNodeNameModal}; diff --git a/build/assets/index-717b1eb9.js b/build/assets/index-717b1eb9.js new file mode 100644 index 000000000..bf1a1c266 --- /dev/null +++ b/build/assets/index-717b1eb9.js @@ -0,0 +1 @@ +function i(t){return t===null?"?":t.toLocaleString("en-US").split(",").join(" ")}export{i as f}; diff --git a/build/assets/index-7c5e8119.js b/build/assets/index-7c5e8119.js deleted file mode 100644 index 91fe79669..000000000 --- a/build/assets/index-7c5e8119.js +++ /dev/null @@ -1,95 +0,0 @@ -import{r as p,i as T,j as e,F as x,C as I,be as _,bq as L,s as n,T as v,e as A,t as B,aZ as E,v as F,a as M,bt as N,B as k}from"./index-1d805415.js";import{am as O,an as z,ao as D,l as P}from"./index-3ac851f3.js";import{u as w}from"./index-eeddd406.js";import{S as Y,A as R,I as X}from"./constants-167ef3c0.js";import{A as H,T as W}from"./index-f3df532f.js";import{C as q}from"./ClipLoader-9eb1180c.js";import"./index-5b7bb80c.js";import"./Stack-2f0ef3f5.js";import"./createSvgIcon-b68c7390.js";import"./TextareaAutosize-3b102137.js";const U=({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:R,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(Y,{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})},Z=({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($,{children:"Merge topic"})})}),e.jsxs(K,{swap:c,children:[e.jsx(G,{children:e.jsx(Q,{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(V,{children:[e.jsx(te,{children:c?"From":"To"}),e.jsx(U,{dataId:"to-node",onSelect:a,selectedValue:d,topicId:s==null?void 0:s.ref_id})]})}),e.jsxs(J,{children:[e.jsx(oe,{children:e.jsx(O,{})}),e.jsx(se,{"data-testid":"swap-icon",onClick:u,children:e.jsx(z,{})}),e.jsx(ne,{children:e.jsx(D,{})})]})]})]}),$=n(v)` - font-size: 22px; - font-weight: 600; - font-family: 'Barlow'; -`,G=n(x)` - flex: 1 1 100%; -`,J=n.div` - position: absolute; - top: 26px; - bottom: 26px; - left: 4px; - width: 35px; - border-left: 1.5px solid #6b7a8d4d; - border-top: 1.5px solid #6b7a8d4d; - border-bottom: 1.5px solid #6b7a8d4d; - border-radius: 12px 0 0 12px; -`,K=n.div` - position: relative; - color: white; - font-family: 'Barlow'; - display: flex; - flex-direction: ${s=>s.swap?"column-reverse":"column"}; - margin-bottom: 10px; - padding-left: 38px; -`,Q=n(W)` - position: relative; - width: 100%; - padding: 16px; - gap: 10px; - border-radius: 6px; - border: 1px solid #6b7a8d4d; - opacity: 0px; - display: flex; -`,V=n.div` - position: relative; - width: 100%; - padding: 15px; - gap: 10px; - border-radius: 6px; - border: 1.4px solid #6b7a8d4d; - opacity: 0px; - display: flex; - align-items: center; -`,ee=n.label` - color: #bac1c6; - font-size: 13px; - font-weight: 400; - line-height: 18px; - letter-spacing: 0.01em; - text-align: left; - margin-bottom: 6px; -`,te=n.label` - color: #bac1c6; - background-color: #23252f; - font-size: 13px; - font-weight: 400; - line-height: 18px; - letter-spacing: 0.01em; - text-align: left; - position: absolute; - left: 15px; - top: -10px; -`,oe=n.div` - position: absolute; - top: 0; - right: 0; - transform: translateY(-50%) translateX(50%); - color: #23252f; -`,se=n.div` - position: absolute; - color: transparent; - top: 50%; - left: 0; - transform: translateY(-50%) translateX(-50%); - cursor: pointer; - width: 32px; - height: 32px; - background-color: #303342; - display: flex; - justify-content: center; - align-items: center; - border-radius: 8px; -`,ne=n.div` - position: absolute; - bottom: 0; - right: 0; - transform: translateY(10px) translateX(3px); - color: #6b7a8d; - line-height: 1; -`,ge=()=>{const{close:s}=A("mergeToNode"),[a,d,c]=w(l=>[l.data,l.ids,l.total]),u=B({mode:"onChange"}),[h,g]=p.useState(!1),[f,j]=p.useState(!1),[r,b]=p.useState(null),[t,S]=p.useState(),o=P();p.useEffect(()=>{o&&S(o)},[o]);const i=()=>{b(null),s()},m=async()=>{if(!(!r||!a)){g(!0);try{await N({from:t==null?void 0:t.ref_id,to:r==null?void 0:r.ref_id}),t!=null&&t.ref_id&&(a[t==null?void 0:t.ref_id]={...a[t==null?void 0:t.ref_id],edgeList:[X],edgeCount:a[t==null?void 0:t.ref_id].edgeCount-1},w.setState({ids:d.filter(l=>l!==r.ref_id),total:c-1})),i()}catch(l){console.warn(l)}finally{g(!1)}}};return e.jsx(E,{id:"mergeToNode",kind:"small",onClose:i,preventOutsideClose:!0,children:e.jsxs(F,{...u,children:[e.jsx(Z,{from:t,isSwapped:f,onSelect:b,selectedToNode:r,setIsSwapped:()=>j(!f)}),e.jsxs(ae,{color:"secondary","data-testid":"merge-topics-button",disabled:h||!r,onClick:m,size:"large",variant:"contained",children:["Merge topics",h&&e.jsx(re,{children:e.jsx(q,{color:M.BLUE_PRESS_STATE,size:12})})]})]})})},ae=n(k)` - width: 293px !important; - margin: 0 0 10px auto !important; -`,re=n.span` - margin-top: 2px; -`;export{ge as MergeNodeModal}; diff --git a/build/assets/index-80a17f62.js b/build/assets/index-80a17f62.js deleted file mode 100644 index 034f9dfe3..000000000 --- a/build/assets/index-80a17f62.js +++ /dev/null @@ -1,193 +0,0 @@ -import{ap as Hn,a8 as zr,j as V,s as Ce,a as J,r as He,e as vt,k as Lr,b as Or,u as Dr,x as vr,F as fn,T as Ft,B as Fr,c as Br,aZ as Rr}from"./index-1d805415.js";import{c as Mr,aL as Nr,aM as _r}from"./index-3ac851f3.js";function jr(e,n){const t=n||{};return(e[e.length-1]===""?[...e,""]:e).join((t.padRight?" ":"")+","+(t.padLeft===!1?"":" ")).trim()}const Hr=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Ur=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Vr={};function Un(e,n){return((n||Vr).jsx?Ur:Hr).test(e)}const qr=/[ \t\n\f\r]/g;function $r(e){return typeof e=="object"?e.type==="text"?Vn(e.value):!1:Vn(e)}function Vn(e){return e.replace(qr,"")===""}class _e{constructor(n,t,r){this.property=n,this.normal=t,r&&(this.space=r)}}_e.prototype.property={};_e.prototype.normal={};_e.prototype.space=null;function Bt(e,n){const t={},r={};let i=-1;for(;++i4&&t.slice(0,4)==="data"&&Yr.test(n)){if(n.charAt(4)==="-"){const l=n.slice(5).replace($n,ei);r="data"+l.charAt(0).toUpperCase()+l.slice(1)}else{const l=n.slice(4);if(!$n.test(l)){let o=l.replace(Kr,Zr);o.charAt(0)!=="-"&&(o="-"+o),n="data"+o}}i=Sn}return new i(r,n)}function Zr(e){return"-"+e.toLowerCase()}function ei(e){return e.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"},ti=Bt([Nt,Mt,Ht,Ut,Xr],"html"),Cn=Bt([Nt,Mt,Ht,Ut,Gr],"svg");function ri(e){return e.join(" ").trim()}var Vt={},Wn=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,ii=/\n/g,li=/^\s*/,oi=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,ai=/^:\s*/,ui=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,si=/^[;\s]*/,ci=/^\s+|\s+$/g,pi=` -`,Qn="/",Xn="*",Se="",fi="comment",hi="declaration",mi=function(e,n){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];n=n||{};var t=1,r=1;function i(y){var k=y.match(ii);k&&(t+=k.length);var I=y.lastIndexOf(pi);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=n.source}o.prototype.content=e;function a(y){var k=new Error(n.source+":"+t+":"+r+": "+y);if(k.reason=y,k.filename=n.source,k.line=t,k.column=r,k.source=e,!n.silent)throw k}function u(y){var k=y.exec(e);if(k){var I=k[0];return i(I),e=e.slice(I.length),k}}function s(){u(li)}function c(y){var k;for(y=y||[];k=f();)k!==!1&&y.push(k);return y}function f(){var y=l();if(!(Qn!=e.charAt(0)||Xn!=e.charAt(1))){for(var k=2;Se!=e.charAt(k)&&(Xn!=e.charAt(k)||Qn!=e.charAt(k+1));)++k;if(k+=2,Se===e.charAt(k-1))return a("End of comment missing");var I=e.slice(2,k-2);return r+=2,i(I),e=e.slice(k),r+=2,y({type:fi,comment:I})}}function d(){var y=l(),k=u(oi);if(k){if(f(),!u(ai))return a("property missing ':'");var I=u(ui),w=y({type:hi,property:Gn(k[0].replace(Wn,Se)),value:I?Gn(I[0].replace(Wn,Se)):Se});return u(si),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 Gn(e){return e?e.replace(ci,Se):Se}var di=Hn&&Hn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Vt,"__esModule",{value:!0});var gi=di(mi);function yi(e,n){var t=null;if(!e||typeof e!="string")return t;var r=(0,gi.default)(e),i=typeof n=="function";return r.forEach(function(l){if(l.type==="declaration"){var o=l.property,a=l.value;i?n(o,a,l):a&&(t=t||{},t[o]=a)}}),t}var Yn=Vt.default=yi;const xi=Yn.default||Yn,qt=$t("end"),En=$t("start");function $t(e){return n;function n(t){const r=t&&t.position&&t.position[e]||{};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 ki(e){const n=En(e),t=qt(e);if(n&&t)return{start:n,end:t}}function Re(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Kn(e.position):"start"in e||"end"in e?Kn(e):"line"in e||"column"in e?dn(e):""}function dn(e){return Jn(e&&e.line)+":"+Jn(e&&e.column)}function Kn(e){return dn(e&&e.start)+"-"+dn(e&&e.end)}function Jn(e){return e&&typeof e=="number"?e:1}class Y extends Error{constructor(n,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 n=="string"?i=n:!l.cause&&n&&(o=!0,i=n.message,l.cause=n),!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=Re(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}}Y.prototype.file="";Y.prototype.name="";Y.prototype.reason="";Y.prototype.message="";Y.prototype.stack="";Y.prototype.column=void 0;Y.prototype.line=void 0;Y.prototype.ancestors=void 0;Y.prototype.cause=void 0;Y.prototype.fatal=void 0;Y.prototype.place=void 0;Y.prototype.ruleId=void 0;Y.prototype.source=void 0;const In={}.hasOwnProperty,bi=new Map,wi=/[A-Z]/g,Si=/-([a-z])/g,Ci=new Set(["table","tbody","thead","tfoot","tr"]),Ei=new Set(["td","th"]),Wt="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Ii(e,n){if(!n||n.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const t=n.filePath||void 0;let r;if(n.development){if(typeof n.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=vi(t,n.jsxDEV)}else{if(typeof n.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof n.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=Di(t,n.jsx,n.jsxs)}const i={Fragment:n.Fragment,ancestors:[],components:n.components||{},create:r,elementAttributeNameCase:n.elementAttributeNameCase||"react",evaluater:n.createEvaluater?n.createEvaluater():void 0,filePath:t,ignoreInvalidStyle:n.ignoreInvalidStyle||!1,passKeys:n.passKeys!==!1,passNode:n.passNode||!1,schema:n.space==="svg"?Cn:ti,stylePropertyNameCase:n.stylePropertyNameCase||"dom",tableCellAlignToStyle:n.tableCellAlignToStyle!==!1},l=Qt(i,e,void 0);return l&&typeof l!="string"?l:i.create(e,i.Fragment,{children:l||void 0},void 0)}function Qt(e,n,t){if(n.type==="element")return Ai(e,n,t);if(n.type==="mdxFlowExpression"||n.type==="mdxTextExpression")return Pi(e,n);if(n.type==="mdxJsxFlowElement"||n.type==="mdxJsxTextElement")return zi(e,n,t);if(n.type==="mdxjsEsm")return Ti(e,n);if(n.type==="root")return Li(e,n,t);if(n.type==="text")return Oi(e,n)}function Ai(e,n,t){const r=e.schema;let i=r;n.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=Cn,e.schema=i),e.ancestors.push(n);const l=Gt(e,n.tagName,!1),o=Fi(e,n);let a=Pn(e,n);return Ci.has(n.tagName)&&(a=a.filter(function(u){return typeof u=="string"?!$r(u):!0})),Xt(e,o,l,n),An(o,a),e.ancestors.pop(),e.schema=r,e.create(n,l,o,t)}function Pi(e,n){if(n.data&&n.data.estree&&e.evaluater){const r=n.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}Ne(e,n.position)}function Ti(e,n){if(n.data&&n.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(n.data.estree);Ne(e,n.position)}function zi(e,n,t){const r=e.schema;let i=r;n.name==="svg"&&r.space==="html"&&(i=Cn,e.schema=i),e.ancestors.push(n);const l=n.name===null?e.Fragment:Gt(e,n.name,!0),o=Bi(e,n),a=Pn(e,n);return Xt(e,o,l,n),An(o,a),e.ancestors.pop(),e.schema=r,e.create(n,l,o,t)}function Li(e,n,t){const r={};return An(r,Pn(e,n)),e.create(n,e.Fragment,r,t)}function Oi(e,n){return n.value}function Xt(e,n,t,r){typeof t!="string"&&t!==e.Fragment&&e.passNode&&(n.node=r)}function An(e,n){if(n.length>0){const t=n.length>1?n:n[0];t&&(e.children=t)}}function Di(e,n,t){return r;function r(i,l,o,a){const s=Array.isArray(o.children)?t:n;return a?s(l,o,a):s(l,o)}}function vi(e,n){return t;function t(r,i,l,o){const a=Array.isArray(l.children),u=En(r);return n(i,l,o,a,{columnNumber:u?u.column-1:void 0,fileName:e,lineNumber:u?u.line:void 0},void 0)}}function Fi(e,n){const t={};let r,i;for(i in n.properties)if(i!=="children"&&In.call(n.properties,i)){const l=Ri(e,i,n.properties[i]);if(l){const[o,a]=l;e.tableCellAlignToStyle&&o==="align"&&typeof a=="string"&&Ei.has(n.tagName)?r=a:t[o]=a}}if(r){const l=t.style||(t.style={});l[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return t}function Bi(e,n){const t={};for(const r of n.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.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,e.evaluater.evaluateExpression(a.argument))}else Ne(e,n.position);else{const i=r.name;let l;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const a=r.value.data.estree.body[0];a.type,l=e.evaluater.evaluateExpression(a.expression)}else Ne(e,n.position);else l=r.value===null?!0:r.value;t[i]=l}return t}function Pn(e,n){const t=[];let r=-1;const i=e.passKeys?new Map:bi;for(;++ri?0:i+n:n=n>i?i:n,t=t>0?t:0,r.length<1e4)o=Array.from(r),o.unshift(n,t),e.splice(...o);else for(t&&e.splice(n,t);l0?(pe(e,e.length,0,n),e):n}const nt={}.hasOwnProperty;function $i(e){const n={};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 ze(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Xi=xe(/\p{P}/u),ce=xe(/[A-Za-z]/),te=xe(/[\dA-Za-z]/),Gi=xe(/[#-'*+\--9=?A-Z^-~]/);function gn(e){return e!==null&&(e<32||e===127)}const yn=xe(/\d/),Yi=xe(/[\dA-Fa-f]/),Jt=xe(/[!-/:-@[-`{-~]/);function T(e){return e!==null&&e<-2}function Z(e){return e!==null&&(e<0||e===32)}function R(e){return e===-2||e===-1||e===32}function Ki(e){return Jt(e)||Xi(e)}const Ji=xe(/\s/);function xe(e){return n;function n(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function Oe(e){const n=[];let t=-1,r=0,i=0;for(;++t55295&&l<57344){const a=e.charCodeAt(t+1);l<56320&&a>56319&&a<57344?(o=String.fromCharCode(l,a),i=1):o="�"}else o=String.fromCharCode(l);o&&(n.push(e.slice(r,t),encodeURIComponent(o)),r=t+i+1,o=""),i&&(t+=i,i=0)}return n.join("")+e.slice(r)}function j(e,n,t,r){const i=r?r-1:Number.POSITIVE_INFINITY;let l=0;return o;function o(u){return R(u)?(e.enter(t),a(u)):n(u)}function a(u){return R(u)&&l++o))return;const B=n.events.length;let q=B,N,H;for(;q--;)if(n.events[q][0]==="exit"&&n.events[q][1].type==="chunkFlow"){if(N){H=n.events[q][1].end;break}N=!0}for(w(r),x=B;xC;){const O=t[D];n.containerState=O[1],O[0].exit.call(n,e)}t.length=C}function E(){i.write([null]),l=void 0,i=void 0,n.containerState._closeFlow=void 0}}function rl(e,n,t){return j(e,e.attempt(this.parser.constructs.document,n,t),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function rt(e){if(e===null||Z(e)||Ji(e))return 1;if(Ki(e))return 2}function zn(e,n,t){const r=[];let i=-1;for(;++i1&&e[t][1].end.offset-e[t][1].start.offset>1?2:1;const f=Object.assign({},e[r][1].end),d=Object.assign({},e[t][1].start);it(f,-u),it(d,u),o={type:u>1?"strongSequence":"emphasisSequence",start:f,end:Object.assign({},e[r][1].end)},a={type:u>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[t][1].start),end:d},l={type:u>1?"strongText":"emphasisText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[t][1].start)},i={type:u>1?"strong":"emphasis",start:Object.assign({},o.start),end:Object.assign({},a.end)},e[r][1].end=Object.assign({},o.start),e[t][1].start=Object.assign({},a.end),s=[],e[r][1].end.offset-e[r][1].start.offset&&(s=re(s,[["enter",e[r][1],n],["exit",e[r][1],n]])),s=re(s,[["enter",i,n],["enter",o,n],["exit",o,n],["enter",l,n]]),s=re(s,zn(n.parser.constructs.insideSpan.null,e.slice(r+1,t),n)),s=re(s,[["exit",l,n],["enter",a,n],["exit",a,n],["exit",i,n]]),e[t][1].end.offset-e[t][1].start.offset?(c=2,s=re(s,[["enter",e[t][1],n],["exit",e[t][1],n]])):c=0,pe(e,r-1,t-r+3,s),t=r+s.length-c-2;break}}for(t=-1;++t0&&R(x)?j(e,E,"linePrefix",l+1)(x):E(x)}function E(x){return x===null||T(x)?e.check(lt,k,D)(x):(e.enter("codeFlowValue"),C(x))}function C(x){return x===null||T(x)?(e.exit("codeFlowValue"),E(x)):(e.consume(x),C)}function D(x){return e.exit("codeFenced"),n(x)}function O(x,B,q){let N=0;return H;function H(F){return x.enter("lineEnding"),x.consume(F),x.exit("lineEnding"),P}function P(F){return x.enter("codeFencedFence"),R(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?(N++,x.consume(F),U):N>=o?(x.exit("codeFencedFenceSequence"),R(F)?j(x,$,"whitespace")(F):$(F)):q(F)}function $(F){return F===null||T(F)?(x.exit("codeFencedFence"),B(F)):q(F)}}}function dl(e,n,t){const r=this;return i;function i(o){return o===null?t(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),l)}function l(o){return r.parser.lazy[r.now().line]?t(o):n(o)}}const tn={name:"codeIndented",tokenize:yl},gl={tokenize:xl,partial:!0};function yl(e,n,t){const r=this;return i;function i(s){return e.enter("codeIndented"),j(e,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)?e.attempt(gl,o,u)(s):(e.enter("codeFlowValue"),a(s))}function a(s){return s===null||T(s)?(e.exit("codeFlowValue"),o(s)):(e.consume(s),a)}function u(s){return e.exit("codeIndented"),n(s)}}function xl(e,n,t){const r=this;return i;function i(o){return r.parser.lazy[r.now().line]?t(o):T(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):j(e,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?n(o):T(o)?i(o):t(o)}}const kl={name:"codeText",tokenize:Sl,resolve:bl,previous:wl};function bl(e){let n=e.length-4,t=3,r,i;if((e[t][1].type==="lineEnding"||e[t][1].type==="space")&&(e[n][1].type==="lineEnding"||e[n][1].type==="space")){for(r=t;++r=4?n(o):e.interrupt(r.parser.constructs.flow,t,n)(o)}}function rr(e,n,t,r,i,l,o,a,u){const s=u||Number.POSITIVE_INFINITY;let c=0;return f;function f(w){return w===60?(e.enter(r),e.enter(i),e.enter(l),e.consume(w),e.exit(l),d):w===null||w===32||w===41||gn(w)?t(w):(e.enter(r),e.enter(o),e.enter(a),e.enter("chunkString",{contentType:"string"}),k(w))}function d(w){return w===62?(e.enter(l),e.consume(w),e.exit(l),e.exit(i),e.exit(r),n):(e.enter(a),e.enter("chunkString",{contentType:"string"}),p(w))}function p(w){return w===62?(e.exit("chunkString"),e.exit(a),d(w)):w===null||w===60||T(w)?t(w):(e.consume(w),w===92?y:p)}function y(w){return w===60||w===62||w===92?(e.consume(w),p):p(w)}function k(w){return!c&&(w===null||w===41||Z(w))?(e.exit("chunkString"),e.exit(a),e.exit(o),e.exit(r),n(w)):c999||p===null||p===91||p===93&&!u||p===94&&!a&&"_hiddenFootnoteSupport"in o.parser.constructs?t(p):p===93?(e.exit(l),e.enter(i),e.consume(p),e.exit(i),e.exit(r),n):T(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),f(p))}function f(p){return p===null||p===91||p===93||T(p)||a++>999?(e.exit("chunkString"),c(p)):(e.consume(p),u||(u=!R(p)),p===92?d:f)}function d(p){return p===91||p===92||p===93?(e.consume(p),a++,f):f(p)}}function lr(e,n,t,r,i,l){let o;return a;function a(d){return d===34||d===39||d===40?(e.enter(r),e.enter(i),e.consume(d),e.exit(i),o=d===40?41:d,u):t(d)}function u(d){return d===o?(e.enter(i),e.consume(d),e.exit(i),e.exit(r),n):(e.enter(l),s(d))}function s(d){return d===o?(e.exit(l),u(o)):d===null?t(d):T(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),j(e,s,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(d))}function c(d){return d===o||d===null||T(d)?(e.exit("chunkString"),s(d)):(e.consume(d),d===92?f:c)}function f(d){return d===o||d===92?(e.consume(d),c):c(d)}}function Me(e,n){let t;return r;function r(i){return T(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t=!0,r):R(i)?j(e,r,t?"linePrefix":"lineSuffix")(i):n(i)}}const zl={name:"definition",tokenize:Ol},Ll={tokenize:Dl,partial:!0};function Ol(e,n,t){const r=this;let i;return l;function l(p){return e.enter("definition"),o(p)}function o(p){return ir.call(r,e,a,t,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function a(p){return i=ze(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),u):t(p)}function u(p){return Z(p)?Me(e,s)(p):s(p)}function s(p){return rr(e,c,t,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function c(p){return e.attempt(Ll,f,f)(p)}function f(p){return R(p)?j(e,d,"whitespace")(p):d(p)}function d(p){return p===null||T(p)?(e.exit("definition"),r.parser.defined.push(i),n(p)):t(p)}}function Dl(e,n,t){return r;function r(a){return Z(a)?Me(e,i)(a):t(a)}function i(a){return lr(e,l,t,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function l(a){return R(a)?j(e,o,"whitespace")(a):o(a)}function o(a){return a===null||T(a)?n(a):t(a)}}const vl={name:"hardBreakEscape",tokenize:Fl};function Fl(e,n,t){return r;function r(l){return e.enter("hardBreakEscape"),e.consume(l),i}function i(l){return T(l)?(e.exit("hardBreakEscape"),n(l)):t(l)}}const Bl={name:"headingAtx",tokenize:Ml,resolve:Rl};function Rl(e,n){let t=e.length-2,r=3,i,l;return e[r][1].type==="whitespace"&&(r+=2),t-2>r&&e[t][1].type==="whitespace"&&(t-=2),e[t][1].type==="atxHeadingSequence"&&(r===t-1||t-4>r&&e[t-2][1].type==="whitespace")&&(t-=r+1===t?2:4),t>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[t][1].end},l={type:"chunkText",start:e[r][1].start,end:e[t][1].end,contentType:"text"},pe(e,r,t-r+1,[["enter",i,n],["enter",l,n],["exit",l,n],["exit",i,n]])),e}function Ml(e,n,t){let r=0;return i;function i(c){return e.enter("atxHeading"),l(c)}function l(c){return e.enter("atxHeadingSequence"),o(c)}function o(c){return c===35&&r++<6?(e.consume(c),o):c===null||Z(c)?(e.exit("atxHeadingSequence"),a(c)):t(c)}function a(c){return c===35?(e.enter("atxHeadingSequence"),u(c)):c===null||T(c)?(e.exit("atxHeading"),n(c)):R(c)?j(e,a,"whitespace")(c):(e.enter("atxHeadingText"),s(c))}function u(c){return c===35?(e.consume(c),u):(e.exit("atxHeadingSequence"),a(c))}function s(c){return c===null||c===35||Z(c)?(e.exit("atxHeadingText"),a(c)):(e.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"],_l={name:"htmlFlow",tokenize:Vl,resolveTo:Ul,concrete:!0},jl={tokenize:$l,partial:!0},Hl={tokenize:ql,partial:!0};function Ul(e){let n=e.length;for(;n--&&!(e[n][0]==="enter"&&e[n][1].type==="htmlFlow"););return n>1&&e[n-2][1].type==="linePrefix"&&(e[n][1].start=e[n-2][1].start,e[n+1][1].start=e[n-2][1].start,e.splice(n-2,2)),e}function Vl(e,n,t){const r=this;let i,l,o,a,u;return s;function s(m){return c(m)}function c(m){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(m),f}function f(m){return m===33?(e.consume(m),d):m===47?(e.consume(m),l=!0,k):m===63?(e.consume(m),i=3,r.interrupt?n:h):ce(m)?(e.consume(m),o=String.fromCharCode(m),I):t(m)}function d(m){return m===45?(e.consume(m),i=2,p):m===91?(e.consume(m),i=5,a=0,y):ce(m)?(e.consume(m),i=4,r.interrupt?n:h):t(m)}function p(m){return m===45?(e.consume(m),r.interrupt?n:h):t(m)}function y(m){const ae="CDATA[";return m===ae.charCodeAt(a++)?(e.consume(m),a===ae.length?r.interrupt?n:A:y):t(m)}function k(m){return ce(m)?(e.consume(m),o=String.fromCharCode(m),I):t(m)}function I(m){if(m===null||m===47||m===62||Z(m)){const ae=m===47,ke=o.toLowerCase();return!ae&&!l&&at.includes(ke)?(i=1,r.interrupt?n(m):A(m)):Nl.includes(o.toLowerCase())?(i=6,ae?(e.consume(m),w):r.interrupt?n(m):A(m)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?t(m):l?E(m):C(m))}return m===45||te(m)?(e.consume(m),o+=String.fromCharCode(m),I):t(m)}function w(m){return m===62?(e.consume(m),r.interrupt?n:A):t(m)}function E(m){return R(m)?(e.consume(m),E):H(m)}function C(m){return m===47?(e.consume(m),H):m===58||m===95||ce(m)?(e.consume(m),D):R(m)?(e.consume(m),C):H(m)}function D(m){return m===45||m===46||m===58||m===95||te(m)?(e.consume(m),D):O(m)}function O(m){return m===61?(e.consume(m),x):R(m)?(e.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?(e.consume(m),u=m,B):R(m)?(e.consume(m),x):q(m)}function B(m){return m===u?(e.consume(m),u=null,N):m===null||T(m)?t(m):(e.consume(m),B)}function q(m){return m===null||m===34||m===39||m===47||m===60||m===61||m===62||m===96||Z(m)?O(m):(e.consume(m),q)}function N(m){return m===47||m===62||R(m)?C(m):t(m)}function H(m){return m===62?(e.consume(m),P):t(m)}function P(m){return m===null||T(m)?A(m):R(m)?(e.consume(m),P):t(m)}function A(m){return m===45&&i===2?(e.consume(m),G):m===60&&i===1?(e.consume(m),Q):m===62&&i===4?(e.consume(m),oe):m===63&&i===3?(e.consume(m),h):m===93&&i===5?(e.consume(m),fe):T(m)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(jl,he,U)(m)):m===null||T(m)?(e.exit("htmlFlowData"),U(m)):(e.consume(m),A)}function U(m){return e.check(Hl,$,he)(m)}function $(m){return e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),F}function F(m){return m===null||T(m)?U(m):(e.enter("htmlFlowData"),A(m))}function G(m){return m===45?(e.consume(m),h):A(m)}function Q(m){return m===47?(e.consume(m),o="",le):A(m)}function le(m){if(m===62){const ae=o.toLowerCase();return at.includes(ae)?(e.consume(m),oe):A(m)}return ce(m)&&o.length<8?(e.consume(m),o+=String.fromCharCode(m),le):A(m)}function fe(m){return m===93?(e.consume(m),h):A(m)}function h(m){return m===62?(e.consume(m),oe):m===45&&i===2?(e.consume(m),h):A(m)}function oe(m){return m===null||T(m)?(e.exit("htmlFlowData"),he(m)):(e.consume(m),oe)}function he(m){return e.exit("htmlFlow"),n(m)}}function ql(e,n,t){const r=this;return i;function i(o){return T(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),l):t(o)}function l(o){return r.parser.lazy[r.now().line]?t(o):n(o)}}function $l(e,n,t){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Ye,n,t)}}const Wl={name:"htmlText",tokenize:Ql};function Ql(e,n,t){const r=this;let i,l,o;return a;function a(h){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(h),u}function u(h){return h===33?(e.consume(h),s):h===47?(e.consume(h),O):h===63?(e.consume(h),C):ce(h)?(e.consume(h),q):t(h)}function s(h){return h===45?(e.consume(h),c):h===91?(e.consume(h),l=0,y):ce(h)?(e.consume(h),E):t(h)}function c(h){return h===45?(e.consume(h),p):t(h)}function f(h){return h===null?t(h):h===45?(e.consume(h),d):T(h)?(o=f,Q(h)):(e.consume(h),f)}function d(h){return h===45?(e.consume(h),p):f(h)}function p(h){return h===62?G(h):h===45?d(h):f(h)}function y(h){const oe="CDATA[";return h===oe.charCodeAt(l++)?(e.consume(h),l===oe.length?k:y):t(h)}function k(h){return h===null?t(h):h===93?(e.consume(h),I):T(h)?(o=k,Q(h)):(e.consume(h),k)}function I(h){return h===93?(e.consume(h),w):k(h)}function w(h){return h===62?G(h):h===93?(e.consume(h),w):k(h)}function E(h){return h===null||h===62?G(h):T(h)?(o=E,Q(h)):(e.consume(h),E)}function C(h){return h===null?t(h):h===63?(e.consume(h),D):T(h)?(o=C,Q(h)):(e.consume(h),C)}function D(h){return h===62?G(h):C(h)}function O(h){return ce(h)?(e.consume(h),x):t(h)}function x(h){return h===45||te(h)?(e.consume(h),x):B(h)}function B(h){return T(h)?(o=B,Q(h)):R(h)?(e.consume(h),B):G(h)}function q(h){return h===45||te(h)?(e.consume(h),q):h===47||h===62||Z(h)?N(h):t(h)}function N(h){return h===47?(e.consume(h),G):h===58||h===95||ce(h)?(e.consume(h),H):T(h)?(o=N,Q(h)):R(h)?(e.consume(h),N):G(h)}function H(h){return h===45||h===46||h===58||h===95||te(h)?(e.consume(h),H):P(h)}function P(h){return h===61?(e.consume(h),A):T(h)?(o=P,Q(h)):R(h)?(e.consume(h),P):N(h)}function A(h){return h===null||h===60||h===61||h===62||h===96?t(h):h===34||h===39?(e.consume(h),i=h,U):T(h)?(o=A,Q(h)):R(h)?(e.consume(h),A):(e.consume(h),$)}function U(h){return h===i?(e.consume(h),i=void 0,F):h===null?t(h):T(h)?(o=U,Q(h)):(e.consume(h),U)}function $(h){return h===null||h===34||h===39||h===60||h===61||h===96?t(h):h===47||h===62||Z(h)?N(h):(e.consume(h),$)}function F(h){return h===47||h===62||Z(h)?N(h):t(h)}function G(h){return h===62?(e.consume(h),e.exit("htmlTextData"),e.exit("htmlText"),n):t(h)}function Q(h){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),le}function le(h){return R(h)?j(e,fe,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(h):fe(h)}function fe(h){return e.enter("htmlTextData"),o(h)}}const Ln={name:"labelEnd",tokenize:Zl,resolveTo:Jl,resolveAll:Kl},Xl={tokenize:eo},Gl={tokenize:no},Yl={tokenize:to};function Kl(e){let n=-1;for(;++n=3&&(s===null||T(s))?(e.exit("thematicBreak"),n(s)):t(s)}function u(s){return s===i?(e.consume(s),r++,u):(e.exit("thematicBreakSequence"),R(s)?j(e,a,"whitespace")(s):a(s))}}const K={name:"list",tokenize:po,continuation:{tokenize:fo},exit:mo},so={tokenize:go,partial:!0},co={tokenize:ho,partial:!0};function po(e,n,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:yn(p)){if(r.containerState.type||(r.containerState.type=y,e.enter(y,{_container:!0})),y==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check($e,t,s)(p):s(p);if(!r.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),u(p)}return t(p)}function u(p){return yn(p)&&++o<10?(e.consume(p),u):(!r.interrupt||o<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),s(p)):t(p)}function s(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,e.check(Ye,r.interrupt?t:c,e.attempt(so,d,f))}function c(p){return r.containerState.initialBlankLine=!0,l++,d(p)}function f(p){return R(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),d):t(p)}function d(p){return r.containerState.size=l+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,n(p)}}function fo(e,n,t){const r=this;return r.containerState._closeFlow=void 0,e.check(Ye,i,l);function i(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,j(e,n,"listItemIndent",r.containerState.size+1)(a)}function l(a){return r.containerState.furtherBlankLines||!R(a)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(a)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(co,n,o)(a))}function o(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,j(e,e.attempt(K,n,t),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function ho(e,n,t){const r=this;return j(e,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?n(l):t(l)}}function mo(e){e.exit(this.containerState.type)}function go(e,n,t){const r=this;return j(e,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!R(l)&&o&&o[1].type==="listItemPrefixWhitespace"?n(l):t(l)}}const ut={name:"setextUnderline",tokenize:xo,resolveTo:yo};function yo(e,n){let t=e.length,r,i,l;for(;t--;)if(e[t][0]==="enter"){if(e[t][1].type==="content"){r=t;break}e[t][1].type==="paragraph"&&(i=t)}else e[t][1].type==="content"&&e.splice(t,1),!l&&e[t][1].type==="definition"&&(l=t);const o={type:"setextHeading",start:Object.assign({},e[i][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[i][1].type="setextHeadingText",l?(e.splice(i,0,["enter",o,n]),e.splice(l+1,0,["exit",e[r][1],n]),e[r][1].end=Object.assign({},e[l][1].end)):e[r][1]=o,e.push(["exit",o,n]),e}function xo(e,n,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)?(e.enter("setextHeadingLine"),i=s,o(s)):t(s)}function o(s){return e.enter("setextHeadingLineSequence"),a(s)}function a(s){return s===i?(e.consume(s),a):(e.exit("setextHeadingLineSequence"),R(s)?j(e,u,"lineSuffix")(s):u(s))}function u(s){return s===null||T(s)?(e.exit("setextHeadingLine"),n(s)):t(s)}}const ko={tokenize:bo};function bo(e){const n=this,t=e.attempt(Ye,r,e.attempt(this.parser.constructs.flowInitial,i,j(e,e.attempt(this.parser.constructs.flow,i,e.attempt(El,i)),"linePrefix")));return t;function r(l){if(l===null){e.consume(l);return}return e.enter("lineEndingBlank"),e.consume(l),e.exit("lineEndingBlank"),n.currentConstruct=void 0,t}function i(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),n.currentConstruct=void 0,t}}const wo={resolveAll:ar()},So=or("string"),Co=or("text");function or(e){return{tokenize:n,resolveAll:ar(e==="text"?Eo:void 0)};function n(t){const r=this,i=this.parser.constructs[e],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(e[i].slice(0,l))}return o}function Po(e,n){let t=-1;const r=[];let i;for(;++t0){const ue=z.tokenStack[z.tokenStack.length-1];(ue[1]||ct).call(z,void 0,ue[0])}for(S.position={start:ye(g.length>0?g[0][1].start:{line:1,column:1,offset:0}),end:ye(g.length>0?g[g.length-2][1].end:{line:1,column:1,offset:0})},M=-1;++M1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(n,u);const s={type:"element",tagName:"sup",properties:{},children:[u]};return e.patch(n,s),e.applyData(n,s)}function ea(e,n){const t={type:"element",tagName:"h"+n.depth,properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function na(e,n){if(e.options.allowDangerousHtml){const t={type:"raw",value:n.value};return e.patch(n,t),e.applyData(n,t)}}function cr(e,n){const t=n.referenceType;let r="]";if(t==="collapsed"?r+="[]":t==="full"&&(r+="["+(n.label||n.identifier)+"]"),n.type==="imageReference")return[{type:"text",value:"!["+n.alt+r}];const i=e.all(n),l=i[0];l&&l.type==="text"?l.value="["+l.value:i.unshift({type:"text",value:"["});const o=i[i.length-1];return o&&o.type==="text"?o.value+=r:i.push({type:"text",value:r}),i}function ta(e,n){const t=String(n.identifier).toUpperCase(),r=e.definitionById.get(t);if(!r)return cr(e,n);const i={src:Oe(r.url||""),alt:n.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const l={type:"element",tagName:"img",properties:i,children:[]};return e.patch(n,l),e.applyData(n,l)}function ra(e,n){const t={src:Oe(n.url)};n.alt!==null&&n.alt!==void 0&&(t.alt=n.alt),n.title!==null&&n.title!==void 0&&(t.title=n.title);const r={type:"element",tagName:"img",properties:t,children:[]};return e.patch(n,r),e.applyData(n,r)}function ia(e,n){const t={type:"text",value:n.value.replace(/\r?\n|\r/g," ")};e.patch(n,t);const r={type:"element",tagName:"code",properties:{},children:[t]};return e.patch(n,r),e.applyData(n,r)}function la(e,n){const t=String(n.identifier).toUpperCase(),r=e.definitionById.get(t);if(!r)return cr(e,n);const i={href:Oe(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const l={type:"element",tagName:"a",properties:i,children:e.all(n)};return e.patch(n,l),e.applyData(n,l)}function oa(e,n){const t={href:Oe(n.url)};n.title!==null&&n.title!==void 0&&(t.title=n.title);const r={type:"element",tagName:"a",properties:t,children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function aa(e,n,t){const r=e.all(n),i=t?ua(t):pr(n),l={},o=[];if(typeof n.checked=="boolean"){const c=r[0];let f;c&&c.type==="element"&&c.tagName==="p"?f=c:(f={type:"element",tagName:"p",properties:{},children:[]},r.unshift(f)),f.children.length>0&&f.children.unshift({type:"text",value:" "}),f.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:n.checked,disabled:!0},children:[]}),l.className=["task-list-item"]}let a=-1;for(;++a1}function sa(e,n){const t={},r=e.all(n);let i=-1;for(typeof n.start=="number"&&n.start!==1&&(t.start=n.start);++i0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(t,!0)},a=En(n.children[1]),u=qt(n.children[n.children.length-1]);a&&u&&(o.position={start:a,end:u}),i.push(o)}const l={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(n,l),e.applyData(n,l)}function ma(e,n,t){const r=t?t.children:void 0,l=(r?r.indexOf(n):1)===0?"th":"td",o=t&&t.type==="table"?t.align:void 0,a=o?o.length:n.children.length;let u=-1;const s=[];for(;++u0,!0),r[0]),i=r.index+r[0].length,r=t.exec(n);return l.push(ht(n.slice(i),i>0,!1)),l.join("")}function ht(e,n,t){let r=0,i=e.length;if(n){let l=e.codePointAt(r);for(;l===pt||l===ft;)r++,l=e.codePointAt(r)}if(t){let l=e.codePointAt(i-1);for(;l===pt||l===ft;)i--,l=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function ya(e,n){const t={type:"text",value:ga(String(n.value))};return e.patch(n,t),e.applyData(n,t)}function xa(e,n){const t={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(n,t),e.applyData(n,t)}const ka={blockquote:Xo,break:Go,code:Yo,delete:Ko,emphasis:Jo,footnoteReference:Zo,heading:ea,html:na,imageReference:ta,image:ra,inlineCode:ia,linkReference:la,link:oa,listItem:aa,list:sa,paragraph:ca,root:pa,strong:fa,table:ha,tableCell:da,tableRow:ma,text:ya,thematicBreak:xa,toml:Ue,yaml:Ue,definition:Ue,footnoteDefinition:Ue};function Ue(){}const fr=-1,Ke=0,Qe=1,Xe=2,On=3,Dn=4,vn=5,Fn=6,hr=7,mr=8,mt=typeof self=="object"?self:globalThis,ba=(e,n)=>{const t=(i,l)=>(e.set(l,i),i),r=i=>{if(e.has(i))return e.get(i);const[l,o]=n[i];switch(l){case Ke:case fr:return t(o,i);case Qe:{const a=t([],i);for(const u of o)a.push(r(u));return a}case Xe:{const a=t({},i);for(const[u,s]of o)a[r(u)]=r(s);return a}case On:return t(new Date(o),i);case Dn:{const{source:a,flags:u}=o;return t(new RegExp(a,u),i)}case vn:{const a=t(new Map,i);for(const[u,s]of o)a.set(r(u),r(s));return a}case Fn:{const a=t(new Set,i);for(const u of o)a.add(r(u));return a}case hr:{const{name:a,message:u}=o;return t(new mt[a](u),i)}case mr:return t(BigInt(o),i);case"BigInt":return t(Object(BigInt(o)),i)}return t(new mt[l](o),i)};return r},dt=e=>ba(new Map,e)(0),Pe="",{toString:wa}={},{keys:Sa}=Object,Be=e=>{const n=typeof e;if(n!=="object"||!e)return[Ke,n];const t=wa.call(e).slice(8,-1);switch(t){case"Array":return[Qe,Pe];case"Object":return[Xe,Pe];case"Date":return[On,Pe];case"RegExp":return[Dn,Pe];case"Map":return[vn,Pe];case"Set":return[Fn,Pe]}return t.includes("Array")?[Qe,t]:t.includes("Error")?[hr,t]:[Xe,t]},Ve=([e,n])=>e===Ke&&(n==="function"||n==="symbol"),Ca=(e,n,t,r)=>{const i=(o,a)=>{const u=r.push(o)-1;return t.set(a,u),u},l=o=>{if(t.has(o))return t.get(o);let[a,u]=Be(o);switch(a){case Ke:{let c=o;switch(u){case"bigint":a=mr,c=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+u);c=null;break;case"undefined":return i([fr],o)}return i([a,c],o)}case Qe:{if(u)return i([u,[...o]],o);const c=[],f=i([a,c],o);for(const d of o)c.push(l(d));return f}case Xe:{if(u)switch(u){case"BigInt":return i([u,o.toString()],o);case"Boolean":case"Number":case"String":return i([u,o.valueOf()],o)}if(n&&"toJSON"in o)return l(o.toJSON());const c=[],f=i([a,c],o);for(const d of Sa(o))(e||!Ve(Be(o[d])))&&c.push([l(d),l(o[d])]);return f}case On:return i([a,o.toISOString()],o);case Dn:{const{source:c,flags:f}=o;return i([a,{source:c,flags:f}],o)}case vn:{const c=[],f=i([a,c],o);for(const[d,p]of o)(e||!(Ve(Be(d))||Ve(Be(p))))&&c.push([l(d),l(p)]);return f}case Fn:{const c=[],f=i([a,c],o);for(const d of o)(e||!Ve(Be(d)))&&c.push(l(d));return f}}const{message:s}=o;return i([a,{name:u,message:s}],o)};return l},gt=(e,{json:n,lossy:t}={})=>{const r=[];return Ca(!(n||t),!!n,new Map,r)(e),r},Ge=typeof structuredClone=="function"?(e,n)=>n&&("json"in n||"lossy"in n)?dt(gt(e,n)):structuredClone(e):(e,n)=>dt(gt(e,n));function Ea(e,n){const t=[{type:"text",value:"↩"}];return n>1&&t.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(n)}]}),t}function Ia(e,n){return"Back to reference "+(e+1)+(n>1?"-"+n:"")}function Aa(e){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",t=e.options.footnoteBackContent||Ea,r=e.options.footnoteBackLabel||Ia,i=e.options.footnoteLabel||"Footnotes",l=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},a=[];let u=-1;for(;++u0&&y.push({type:"text",value:" "});let E=typeof t=="string"?t:t(u,p);typeof E=="string"&&(E={type:"text",value:E}),y.push({type:"element",tagName:"a",properties:{href:"#"+n+"fnref-"+d+(p>1?"-"+p:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(u,p),className:["data-footnote-backref"]},children:Array.isArray(E)?E:[E]})}const I=c[c.length-1];if(I&&I.type==="element"&&I.tagName==="p"){const E=I.children[I.children.length-1];E&&E.type==="text"?E.value+=" ":I.children.push({type:"text",value:" "}),I.children.push(...y)}else c.push(...y);const w={type:"element",tagName:"li",properties:{id:n+"fn-"+d},children:e.wrap(c,!0)};e.patch(s,w),a.push(w)}if(a.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:l,properties:{...Ge(o),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:` -`},{type:"element",tagName:"ol",properties:{},children:e.wrap(a,!0)},{type:"text",value:` -`}]}}const dr=function(e){if(e==null)return La;if(typeof e=="function")return Je(e);if(typeof e=="object")return Array.isArray(e)?Pa(e):Ta(e);if(typeof e=="string")return za(e);throw new Error("Expected function, string, or object as test")};function Pa(e){const n=[];let t=-1;for(;++t":""))+")"})}return d;function d(){let p=gr,y,k,I;if((!n||l(u,s,c[c.length-1]||void 0))&&(p=Ba(t(u,c)),p[0]===yt))return p;if("children"in u&&u.children){const w=u;if(w.children&&p[0]!==va)for(k=(r?w.children.length:-1)+o,I=c.concat(w);k>-1&&k0&&t.push({type:"text",value:` -`}),t}function xt(e){let n=0,t=e.charCodeAt(n);for(;t===9||t===32;)n++,t=e.charCodeAt(n);return e.slice(n)}function kt(e,n){const t=Ma(e,n),r=t.one(e,void 0),i=Aa(t),l=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&l.children.push({type:"text",value:` -`},i),l}function Ua(e,n){return e&&"run"in e?async function(t,r){const i=kt(t,n);await e.run(i,r)}:function(t){return kt(t,n||e)}}function bt(e){if(e)throw e}var We=Object.prototype.hasOwnProperty,xr=Object.prototype.toString,wt=Object.defineProperty,St=Object.getOwnPropertyDescriptor,Ct=function(n){return typeof Array.isArray=="function"?Array.isArray(n):xr.call(n)==="[object Array]"},Et=function(n){if(!n||xr.call(n)!=="[object Object]")return!1;var t=We.call(n,"constructor"),r=n.constructor&&n.constructor.prototype&&We.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!t&&!r)return!1;var i;for(i in n);return typeof i>"u"||We.call(n,i)},It=function(n,t){wt&&t.name==="__proto__"?wt(n,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):n[t.name]=t.newValue},At=function(n,t){if(t==="__proto__")if(We.call(n,t)){if(St)return St(n,t).value}else return;return n[t]},Va=function e(){var n,t,r,i,l,o,a=arguments[0],u=1,s=arguments.length,c=!1;for(typeof a=="boolean"&&(c=a,a=arguments[1]||{},u=2),(a==null||typeof a!="object"&&typeof a!="function")&&(a={});uo.length;let u;a&&o.push(i);try{u=e.apply(this,o)}catch(s){const c=s;if(a&&t)throw c;return i(c)}a||(u instanceof Promise?u.then(l,i):u instanceof Error?i(u):l(u))}function i(o,...a){t||(t=!0,n(o,...a))}function l(o){i(null,o)}}const se={basename:Wa,dirname:Qa,extname:Xa,join:Ga,sep:"/"};function Wa(e,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');je(e);let t=0,r=-1,i=e.length,l;if(n===void 0||n.length===0||n.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(l){t=i+1;break}}else r<0&&(l=!0,r=i+1);return r<0?"":e.slice(t,r)}if(n===e)return"";let o=-1,a=n.length-1;for(;i--;)if(e.codePointAt(i)===47){if(l){t=i+1;break}}else o<0&&(l=!0,o=i+1),a>-1&&(e.codePointAt(i)===n.codePointAt(a--)?a<0&&(r=i):(a=-1,r=o));return t===r?r=o:r<0&&(r=e.length),e.slice(t,r)}function Qa(e){if(je(e),e.length===0)return".";let n=-1,t=e.length,r;for(;--t;)if(e.codePointAt(t)===47){if(r){n=t;break}}else r||(r=!0);return n<0?e.codePointAt(0)===47?"/":".":n===1&&e.codePointAt(0)===47?"//":e.slice(0,n)}function Xa(e){je(e);let n=e.length,t=-1,r=0,i=-1,l=0,o;for(;n--;){const a=e.codePointAt(n);if(a===47){if(o){r=n+1;break}continue}t<0&&(o=!0,t=n+1),a===46?i<0?i=n:l!==1&&(l=1):i>-1&&(l=-1)}return i<0||t<0||l===0||l===1&&i===t-1&&i===r+1?"":e.slice(i,t)}function Ga(...e){let n=-1,t;for(;++n0&&e.codePointAt(e.length-1)===47&&(t+="/"),n?"/"+t:t}function Ka(e,n){let t="",r=0,i=-1,l=0,o=-1,a,u;for(;++o<=e.length;){if(o2){if(u=t.lastIndexOf("/"),u!==t.length-1){u<0?(t="",r=0):(t=t.slice(0,u),r=t.length-1-t.lastIndexOf("/")),i=o,l=0;continue}}else if(t.length>0){t="",r=0,i=o,l=0;continue}}n&&(t=t.length>0?t+"/..":"..",r=2)}else t.length>0?t+="/"+e.slice(i+1,o):t=e.slice(i+1,o),r=o-i-1;i=o,l=0}else a===46&&l>-1?l++:l=-1}return t}function je(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Ja={cwd:Za};function Za(){return"/"}function wn(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function eu(e){if(typeof e=="string")e=new URL(e);else if(!wn(e)){const n=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw n.code="ERR_INVALID_ARG_TYPE",n}if(e.protocol!=="file:"){const n=new TypeError("The URL must be of scheme file");throw n.code="ERR_INVALID_URL_SCHEME",n}return nu(e)}function nu(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const n=e.pathname;let t=-1;for(;++t0){let[p,...y]=c;const k=r[d][1];bn(k)&&bn(p)&&(p=ln(!0,k,p)),r[d]=[s,p,...y]}}}}const lu=new Bn().freeze();function sn(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function cn(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function pn(e,n){if(n)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Tt(e){if(!bn(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function zt(e,n,t){if(!t)throw new Error("`"+e+"` finished async. Use `"+n+"` instead")}function qe(e){return ou(e)?e:new kr(e)}function ou(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function au(e){return typeof e=="string"||uu(e)}function uu(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const su="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Lt=[],Ot={allowDangerousHtml:!0},cu=/^(https?|ircs?|mailto|xmpp)$/i,pu=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function fu(e){const n=e.allowedElements,t=e.allowElement,r=e.children||"",i=e.className,l=e.components,o=e.disallowedElements,a=e.rehypePlugins||Lt,u=e.remarkPlugins||Lt,s=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Ot}:Ot,c=e.skipHtml,f=e.unwrapDisallowed,d=e.urlTransform||hu,p=lu().use(Qo).use(u).use(Ua,s).use(a),y=new kr;typeof r=="string"&&(y.value=r);for(const E of pu)Object.hasOwn(e,E.from)&&(""+E.from+(E.to?"use `"+E.to+"` instead":"remove it")+su+E.id,void 0);const k=p.parse(y);let I=p.runSync(k,y);return i&&(I={type:"element",tagName:"div",properties:{className:i},children:I.type==="root"?I.children:[I]}),yr(I,w),Ii(I,{Fragment:V.Fragment,components:l,ignoreInvalidStyle:!0,jsx:V.jsx,jsxs:V.jsxs,passKeys:!0,passNode:!0});function w(E,C,D){if(E.type==="raw"&&D&&typeof C=="number")return c?D.children.splice(C,1):D.children[C]={type:"text",value:E.value},C;if(E.type==="element"){let O;for(O in nn)if(Object.hasOwn(nn,O)&&Object.hasOwn(E.properties,O)){const x=E.properties[O],B=nn[O];(B===null||B.includes(E.tagName))&&(E.properties[O]=d(String(x||""),O,E))}}if(E.type==="element"){let O=n?!n.includes(E.tagName):o?o.includes(E.tagName):!1;if(!O&&t&&typeof C=="number"&&(O=!t(E,C,D)),O&&D&&typeof C=="number")return f&&E.children?D.children.splice(C,1,...E.children):D.children.splice(C,1),C}}}function hu(e){const n=e.indexOf(":"),t=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return n<0||i>-1&&n>i||t>-1&&n>t||r>-1&&n>r||cu.test(e.slice(0,n))?e:""}const mu=Ce(fu)` - color: ${J.white}; - font-family: 'Barlow', sans-serif; - line-height: 1.5; - - h1, - h2, - h3, - h4, - h5, - h6 { - margin: 1em 0 0.5em; - line-height: 1.3; - font-weight: 600; - margin-top: 1px; - } - - h1 { - font-size: 24px; - font-weight: 600; - margin-bottom: 16px; - } - - h2 { - font-size: 20px; - font-weight: 600; - margin-bottom: 12px; - } - - h3 { - font-size: 1.3em; - } - h4 { - font-size: 1.2em; - } - h5 { - font-size: 1.1em; - } - h6 { - font-size: 1em; - } - - p { - font-weight: normal; - margin: 8px 0; - } - - code { - font-family: 'Courier New', monospace; - background: ${J.BG1}; - padding: 2px 4px; - border-radius: 4px; - font-weight: normal; - } - - pre { - background: ${J.BG1}; - padding: 16px; - border-radius: 8px; - overflow-x: auto; - margin: 1em 0; - - code { - background: none; - padding: 0; - border-radius: 0; - } - } - - ul, - ol { - font-weight: normal; - margin: 8px 0; - padding-left: 20px; - } - - li { - font-weight: normal; - margin: 4px 0; - } - - a { - color: #0bf; - text-decoration: none; - - &:hover { - text-decoration: underline; - } - } - - blockquote { - border-left: 4px solid ${J.modalShield}; - padding-left: 16px; - margin: 16px 0; - font-weight: normal; - } - - table { - border-collapse: collapse; - width: auto; - margin: 1em 0; - background: ${J.BG1}; - border-radius: 4px; - border: 1px solid ${J.modalShield}; - } - - th, - td { - border: 1px solid ${J.modalShield}; - padding: 8px 12px; - text-align: left; - font-weight: normal; - min-width: 100px; - } - - th { - font-weight: 600; - background: ${J.BG2}; - } - - img { - max-width: 100%; - height: auto; - } - - hr { - border: none; - border-top: 1px solid ${J.modalShield}; - margin: 1em 0; - } -`,du=({trend:e,onClose:n})=>{var I,w;const[t,r]=He.useState(!1),{close:i}=vt("briefDescription"),{currentPlayingAudio:l,setCurrentPlayingAudio:o}=Lr(E=>E),[a]=Or(E=>[E.setBudget]),{fetchData:u,setAbortRequests:s}=Dr(E=>E),c=He.useRef(null),f=async()=>{d(),await u(a,s,e.tldr_topic??e.name)},d=He.useCallback(()=>{n(),i()},[n,i]),p=()=>{c.current&&(t?c.current.pause():c.current.play(),r(!t))},y=()=>{var C,D,O;const E=!((C=l==null?void 0:l.current)!=null&&C.paused);E&&((D=l==null?void 0:l.current)==null||D.pause(),o(null)),(((O=l==null?void 0:l.current)==null?void 0:O.src)!==e.audio_EN||!E)&&p()};He.useEffect(()=>{const E=c.current,C=()=>{r(!1),o(null)};return E&&E.addEventListener("ended",C),()=>{E&&E.removeEventListener("ended",C)}},[o]);const k=((I=l==null?void 0:l.current)==null?void 0:I.src)===e.audio_EN&&!((w=l==null?void 0:l.current)!=null&&w.paused)||t;return V.jsxs(V.Fragment,{children:[e.audio_EN?V.jsxs(V.Fragment,{children:[V.jsxs(bu,{children:[V.jsx(Dt,{className:vr("default",{play:k}),onClick:y,size:"small",startIcon:k?V.jsx(Mr,{}):V.jsx(Nr,{}),children:k?"Pause":"Listen"}),V.jsx(Dt,{className:"default",onClick:f,size:"small",startIcon:V.jsx(_r,{}),children:"Learn More"})]}),V.jsx(ku,{ref:c,src:e.audio_EN,children:V.jsx("track",{kind:"captions"})})]}):null,V.jsxs(fn,{mt:75,children:[V.jsx(xu,{children:e.tldr_topic??e.name}),V.jsx(gu,{children:V.jsx(fn,{children:V.jsx(yu,{children:e.tldr&&V.jsx(mu,{children:e.tldr})})})})]})]})},gu=Ce.div` - max-height: 310px; - overflow-y: auto; - margin: 8px 0; - padding: 0 20px; -`,yu=Ce(Ft)` - font-size: 18px; - font-weight: 400; - font-family: 'Barlow'; - * { - all: revert; - } -`,xu=Ce(Ft)` - font-weight: 600; - font-size: 20px; - padding: 0 20px; -`,ku=Ce.audio` - display: none; -`,Dt=Ce(Fr)` - && { - &.default { - font-size: 13px; - font-weight: 500; - font-family: Barlow; - padding: 12px, 16px, 12px, 10px; - color: ${J.white}; - - &:hover { - color: ${J.GRAY3}; - } - - &.play { - color: ${J.BG3}; - background-color: ${J.white}; - } - } - } -`,bu=Ce(fn)` - top: 0px; - position: absolute; - border-radius: 16px 16px 0px 0px; - padding: 0px 12px; - width: 100%; - height: 60px; - display: flex; - flex-direction: row; - align-items: center; - background-color: ${J.BG3}; - gap: 10px; -`,br=Br(e=>({trend:null,setTrend:n=>e({trend:n})})),wu=()=>{const{close:e}=vt("briefDescription"),{trend:n,setTrend:t}=br(),r=()=>{t(null),e()};return n?V.jsx(Rr,{"data-testid":"brief-description-modal",id:"briefDescription",kind:"regular",noWrap:!0,onClose:r,preventOutsideClose:!0,children:V.jsx(du,{onClose:r,trend:n})}):null},Eu=Object.freeze(Object.defineProperty({__proto__:null,BriefDescription:wu,useBriefDescriptionStore:br},Symbol.toStringTag,{value:"Module"}));export{mu as S,Eu as i,br as u}; diff --git a/build/assets/index-83d18e4b.js b/build/assets/index-83d18e4b.js new file mode 100644 index 000000000..2caa880c4 --- /dev/null +++ b/build/assets/index-83d18e4b.js @@ -0,0 +1,193 @@ +import{am as He,a3 as zr,j as V,s as En,a as J,r as Un,a0 as vt,b as Lr,g as Or,u as Dr,o as vr,F as fe,T as Ft,B as Fr,c as Br,aW as Rr}from"./index-2353781d.js";import{S as Mr,B as Nr}from"./SoundIcon-a0618346.js";import{c as _r}from"./index-068043a5.js";function jr(n,e){const t=e||{};return(n[n.length-1]===""?[...n,""]:n).join((t.padRight?" ":"")+","+(t.padLeft===!1?"":" ")).trim()}const Hr=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Ur=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Vr={};function Ue(n,e){return((e||Vr).jsx?Ur:Hr).test(n)}const qr=/[ \t\n\f\r]/g;function $r(n){return typeof n=="object"?n.type==="text"?Ve(n.value):!1:Ve(n)}function Ve(n){return n.replace(qr,"")===""}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 Bt(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,ni);r="data"+l.charAt(0).toUpperCase()+l.slice(1)}else{const l=e.slice(4);if(!$e.test(l)){let o=l.replace(Kr,Zr);o.charAt(0)!=="-"&&(o="-"+o),e="data"+o}}i=Se}return new i(r,e)}function Zr(n){return"-"+n.toLowerCase()}function ni(n){return n.charAt(1).toUpperCase()}const ei={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"},ti=Bt([Nt,Mt,Ht,Ut,Xr],"html"),Ce=Bt([Nt,Mt,Ht,Ut,Gr],"svg");function ri(n){return n.join(" ").trim()}var Vt={},We=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,ii=/\n/g,li=/^\s*/,oi=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,ai=/^:\s*/,ui=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,si=/^[;\s]*/,ci=/^\s+|\s+$/g,pi=` +`,Qe="/",Xe="*",Cn="",fi="comment",hi="declaration",mi=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(ii);k&&(t+=k.length);var I=y.lastIndexOf(pi);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(li)}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;Cn!=n.charAt(k)&&(Xe!=n.charAt(k)||Qe!=n.charAt(k+1));)++k;if(k+=2,Cn===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:fi,comment:I})}}function d(){var y=l(),k=u(oi);if(k){if(f(),!u(ai))return a("property missing ':'");var I=u(ui),w=y({type:hi,property:Ge(k[0].replace(We,Cn)),value:I?Ge(I[0].replace(We,Cn)):Cn});return u(si),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 Ge(n){return n?n.replace(ci,Cn):Cn}var di=He&&He.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(Vt,"__esModule",{value:!0});var gi=di(mi);function yi(n,e){var t=null;if(!n||typeof n!="string")return t;var r=(0,gi.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 Ye=Vt.default=yi;const xi=Ye.default||Ye,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 ki(n){const e=Ee(n),t=qt(n);if(e&&t)return{start:e,end:t}}function Mn(n){return!n||typeof n!="object"?"":"position"in n||"type"in n?Ke(n.position):"start"in n||"end"in n?Ke(n):"line"in n||"column"in n?de(n):""}function de(n){return Je(n&&n.line)+":"+Je(n&&n.column)}function Ke(n){return de(n&&n.start)+"-"+de(n&&n.end)}function Je(n){return n&&typeof n=="number"?n:1}class Y 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=Mn(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}}Y.prototype.file="";Y.prototype.name="";Y.prototype.reason="";Y.prototype.message="";Y.prototype.stack="";Y.prototype.column=void 0;Y.prototype.line=void 0;Y.prototype.ancestors=void 0;Y.prototype.cause=void 0;Y.prototype.fatal=void 0;Y.prototype.place=void 0;Y.prototype.ruleId=void 0;Y.prototype.source=void 0;const Ie={}.hasOwnProperty,bi=new Map,wi=/[A-Z]/g,Si=/-([a-z])/g,Ci=new Set(["table","tbody","thead","tfoot","tr"]),Ei=new Set(["td","th"]),Wt="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Ii(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=vi(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=Di(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:ti,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 Ai(n,e,t);if(e.type==="mdxFlowExpression"||e.type==="mdxTextExpression")return Pi(n,e);if(e.type==="mdxJsxFlowElement"||e.type==="mdxJsxTextElement")return zi(n,e,t);if(e.type==="mdxjsEsm")return Ti(n,e);if(e.type==="root")return Li(n,e,t);if(e.type==="text")return Oi(n,e)}function Ai(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=Gt(n,e.tagName,!1),o=Fi(n,e);let a=Pe(n,e);return Ci.has(e.tagName)&&(a=a.filter(function(u){return typeof u=="string"?!$r(u):!0})),Xt(n,o,l,e),Ae(o,a),n.ancestors.pop(),n.schema=r,n.create(e,l,o,t)}function Pi(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 Ti(n,e){if(e.data&&e.data.estree&&n.evaluater)return n.evaluater.evaluateProgram(e.data.estree);_n(n,e.position)}function zi(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:Gt(n,e.name,!0),o=Bi(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 Li(n,e,t){const r={};return Ae(r,Pe(n,e)),n.create(e,n.Fragment,r,t)}function Oi(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 Di(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 vi(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 Fi(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"&&Ei.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 Bi(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:bi;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?(fn(n,n.length,0,e),n):e}const et={}.hasOwnProperty;function $i(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 Ln(n){return n.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Xi=kn(/\p{P}/u),pn=kn(/[A-Za-z]/),tn=kn(/[\dA-Za-z]/),Gi=kn(/[#-'*+\--9=?A-Z^-~]/);function ge(n){return n!==null&&(n<32||n===127)}const ye=kn(/\d/),Yi=kn(/[\dA-Fa-f]/),Jt=kn(/[!-/:-@[-`{-~]/);function T(n){return n!==null&&n<-2}function Z(n){return n!==null&&(n<0||n===32)}function R(n){return n===-2||n===-1||n===32}function Ki(n){return Jt(n)||Xi(n)}const Ji=kn(/\s/);function kn(n){return e;function e(t){return t!==null&&t>-1&&n.test(String.fromCharCode(t))}}function Dn(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 R(u)?(n.enter(t),a(u)):e(u)}function a(u){return R(u)&&l++o))return;const B=e.events.length;let q=B,N,H;for(;q--;)if(e.events[q][0]==="exit"&&e.events[q][1].type==="chunkFlow"){if(N){H=e.events[q][1].end;break}N=!0}for(w(r),x=B;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 rl(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||Z(n)||Ji(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=rn(s,[["enter",n[r][1],e],["exit",n[r][1],e]])),s=rn(s,[["enter",i,e],["enter",o,e],["exit",o,e],["enter",l,e]]),s=rn(s,ze(e.parser.constructs.insideSpan.null,n.slice(r+1,t),e)),s=rn(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=rn(s,[["enter",n[t][1],e],["exit",n[t][1],e]])):c=0,fn(n,r-1,t-r+3,s),t=r+s.length-c-2;break}}for(t=-1;++t0&&R(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,B,q){let N=0;return H;function H(F){return x.enter("lineEnding"),x.consume(F),x.exit("lineEnding"),P}function P(F){return x.enter("codeFencedFence"),R(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?(N++,x.consume(F),U):N>=o?(x.exit("codeFencedFenceSequence"),R(F)?j(x,$,"whitespace")(F):$(F)):q(F)}function $(F){return F===null||T(F)?(x.exit("codeFencedFence"),B(F)):q(F)}}}function dl(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:yl},gl={tokenize:xl,partial:!0};function yl(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(gl,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 xl(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 kl={name:"codeText",tokenize:Sl,resolve:bl,previous:wl};function bl(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||Z(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=!R(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 Nn(n,e){let t;return r;function r(i){return T(i)?(n.enter("lineEnding"),n.consume(i),n.exit("lineEnding"),t=!0,r):R(i)?j(n,r,t?"linePrefix":"lineSuffix")(i):e(i)}}const zl={name:"definition",tokenize:Ol},Ll={tokenize:Dl,partial:!0};function Ol(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=Ln(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 Z(p)?Nn(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(Ll,f,f)(p)}function f(p){return R(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 Dl(n,e,t){return r;function r(a){return Z(a)?Nn(n,i)(a):t(a)}function i(a){return lr(n,l,t,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function l(a){return R(a)?j(n,o,"whitespace")(a):o(a)}function o(a){return a===null||T(a)?e(a):t(a)}}const vl={name:"hardBreakEscape",tokenize:Fl};function Fl(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 Bl={name:"headingAtx",tokenize:Ml,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"},fn(n,r,t-r+1,[["enter",i,e],["enter",l,e],["exit",l,e],["exit",i,e]])),n}function Ml(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||Z(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)):R(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||Z(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"],_l={name:"htmlFlow",tokenize:Vl,resolveTo:Ul,concrete:!0},jl={tokenize:$l,partial:!0},Hl={tokenize:ql,partial:!0};function Ul(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 Vl(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):pn(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):pn(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 un="CDATA[";return m===un.charCodeAt(a++)?(n.consume(m),a===un.length?r.interrupt?e:A:y):t(m)}function k(m){return pn(m)?(n.consume(m),o=String.fromCharCode(m),I):t(m)}function I(m){if(m===null||m===47||m===62||Z(m)){const un=m===47,bn=o.toLowerCase();return!un&&!l&&at.includes(bn)?(i=1,r.interrupt?e(m):A(m)):Nl.includes(o.toLowerCase())?(i=6,un?(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||tn(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 R(m)?(n.consume(m),E):H(m)}function C(m){return m===47?(n.consume(m),H):m===58||m===95||pn(m)?(n.consume(m),D):R(m)?(n.consume(m),C):H(m)}function D(m){return m===45||m===46||m===58||m===95||tn(m)?(n.consume(m),D):O(m)}function O(m){return m===61?(n.consume(m),x):R(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,B):R(m)?(n.consume(m),x):q(m)}function B(m){return m===u?(n.consume(m),u=null,N):m===null||T(m)?t(m):(n.consume(m),B)}function q(m){return m===null||m===34||m===39||m===47||m===60||m===61||m===62||m===96||Z(m)?O(m):(n.consume(m),q)}function N(m){return m===47||m===62||R(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):R(m)?(n.consume(m),P):t(m)}function A(m){return m===45&&i===2?(n.consume(m),G):m===60&&i===1?(n.consume(m),Q):m===62&&i===4?(n.consume(m),an):m===63&&i===3?(n.consume(m),h):m===93&&i===5?(n.consume(m),hn):T(m)&&(i===6||i===7)?(n.exit("htmlFlowData"),n.check(jl,mn,U)(m)):m===null||T(m)?(n.exit("htmlFlowData"),U(m)):(n.consume(m),A)}function U(m){return n.check(Hl,$,mn)(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 G(m){return m===45?(n.consume(m),h):A(m)}function Q(m){return m===47?(n.consume(m),o="",on):A(m)}function on(m){if(m===62){const un=o.toLowerCase();return at.includes(un)?(n.consume(m),an):A(m)}return pn(m)&&o.length<8?(n.consume(m),o+=String.fromCharCode(m),on):A(m)}function hn(m){return m===93?(n.consume(m),h):A(m)}function h(m){return m===62?(n.consume(m),an):m===45&&i===2?(n.consume(m),h):A(m)}function an(m){return m===null||T(m)?(n.exit("htmlFlowData"),mn(m)):(n.consume(m),an)}function mn(m){return n.exit("htmlFlow"),e(m)}}function ql(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 $l(n,e,t){return r;function r(i){return n.enter("lineEnding"),n.consume(i),n.exit("lineEnding"),n.attempt(Kn,e,t)}}const Wl={name:"htmlText",tokenize:Ql};function Ql(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):pn(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):pn(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?G(h):h===45?d(h):f(h)}function y(h){const an="CDATA[";return h===an.charCodeAt(l++)?(n.consume(h),l===an.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?G(h):h===93?(n.consume(h),w):k(h)}function E(h){return h===null||h===62?G(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?G(h):C(h)}function O(h){return pn(h)?(n.consume(h),x):t(h)}function x(h){return h===45||tn(h)?(n.consume(h),x):B(h)}function B(h){return T(h)?(o=B,Q(h)):R(h)?(n.consume(h),B):G(h)}function q(h){return h===45||tn(h)?(n.consume(h),q):h===47||h===62||Z(h)?N(h):t(h)}function N(h){return h===47?(n.consume(h),G):h===58||h===95||pn(h)?(n.consume(h),H):T(h)?(o=N,Q(h)):R(h)?(n.consume(h),N):G(h)}function H(h){return h===45||h===46||h===58||h===95||tn(h)?(n.consume(h),H):P(h)}function P(h){return h===61?(n.consume(h),A):T(h)?(o=P,Q(h)):R(h)?(n.consume(h),P):N(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)):R(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||Z(h)?N(h):(n.consume(h),$)}function F(h){return h===47||h===62||Z(h)?N(h):t(h)}function G(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"),on}function on(h){return R(h)?j(n,hn,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(h):hn(h)}function hn(h){return n.enter("htmlTextData"),o(h)}}const Le={name:"labelEnd",tokenize:Zl,resolveTo:Jl,resolveAll:Kl},Xl={tokenize:no},Gl={tokenize:eo},Yl={tokenize:to};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"),R(s)?j(n,a,"whitespace")(s):a(s))}}const K={name:"list",tokenize:po,continuation:{tokenize:fo},exit:mo},so={tokenize:go,partial:!0},co={tokenize:ho,partial:!0};function po(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(Kn,r.interrupt?t:c,n.attempt(so,d,f))}function c(p){return r.containerState.initialBlankLine=!0,l++,d(p)}function f(p){return R(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 fo(n,e,t){const r=this;return r.containerState._closeFlow=void 0,n.check(Kn,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||!R(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(co,e,o)(a))}function o(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,j(n,n.attempt(K,e,t),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function ho(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 mo(n){n.exit(this.containerState.type)}function go(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!R(l)&&o&&o[1].type==="listItemPrefixWhitespace"?e(l):t(l)}}const ut={name:"setextUnderline",tokenize:xo,resolveTo:yo};function yo(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 xo(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"),R(s)?j(n,u,"lineSuffix")(s):u(s))}function u(s){return s===null||T(s)?(n.exit("setextHeadingLine"),e(s)):t(s)}}const ko={tokenize:bo};function bo(n){const e=this,t=n.attempt(Kn,r,n.attempt(this.parser.constructs.flowInitial,i,j(n,n.attempt(this.parser.constructs.flow,i,n.attempt(El,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 wo={resolveAll:ar()},So=or("string"),Co=or("text");function or(n){return{tokenize:e,resolveAll:ar(n==="text"?Eo: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 Po(n,e){let t=-1;const r=[];let i;for(;++t0){const sn=z.tokenStack[z.tokenStack.length-1];(sn[1]||ct).call(z,void 0,sn[0])}for(S.position={start:xn(g.length>0?g[0][1].start:{line:1,column:1,offset:0}),end:xn(g.length>0?g[g.length-2][1].end:{line:1,column:1,offset:0})},M=-1;++M1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};n.patch(e,u);const s={type:"element",tagName:"sup",properties:{},children:[u]};return n.patch(e,s),n.applyData(e,s)}function na(n,e){const t={type:"element",tagName:"h"+e.depth,properties:{},children:n.all(e)};return n.patch(e,t),n.applyData(e,t)}function ea(n,e){if(n.options.allowDangerousHtml){const t={type:"raw",value:e.value};return n.patch(e,t),n.applyData(e,t)}}function cr(n,e){const t=e.referenceType;let r="]";if(t==="collapsed"?r+="[]":t==="full"&&(r+="["+(e.label||e.identifier)+"]"),e.type==="imageReference")return[{type:"text",value:"!["+e.alt+r}];const i=n.all(e),l=i[0];l&&l.type==="text"?l.value="["+l.value:i.unshift({type:"text",value:"["});const o=i[i.length-1];return o&&o.type==="text"?o.value+=r:i.push({type:"text",value:r}),i}function ta(n,e){const t=String(e.identifier).toUpperCase(),r=n.definitionById.get(t);if(!r)return cr(n,e);const i={src:Dn(r.url||""),alt:e.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const l={type:"element",tagName:"img",properties:i,children:[]};return n.patch(e,l),n.applyData(e,l)}function ra(n,e){const t={src:Dn(e.url)};e.alt!==null&&e.alt!==void 0&&(t.alt=e.alt),e.title!==null&&e.title!==void 0&&(t.title=e.title);const r={type:"element",tagName:"img",properties:t,children:[]};return n.patch(e,r),n.applyData(e,r)}function ia(n,e){const t={type:"text",value:e.value.replace(/\r?\n|\r/g," ")};n.patch(e,t);const r={type:"element",tagName:"code",properties:{},children:[t]};return n.patch(e,r),n.applyData(e,r)}function la(n,e){const t=String(e.identifier).toUpperCase(),r=n.definitionById.get(t);if(!r)return cr(n,e);const i={href:Dn(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const l={type:"element",tagName:"a",properties:i,children:n.all(e)};return n.patch(e,l),n.applyData(e,l)}function oa(n,e){const t={href:Dn(e.url)};e.title!==null&&e.title!==void 0&&(t.title=e.title);const r={type:"element",tagName:"a",properties:t,children:n.all(e)};return n.patch(e,r),n.applyData(e,r)}function aa(n,e,t){const r=n.all(e),i=t?ua(t):pr(e),l={},o=[];if(typeof e.checked=="boolean"){const c=r[0];let f;c&&c.type==="element"&&c.tagName==="p"?f=c:(f={type:"element",tagName:"p",properties:{},children:[]},r.unshift(f)),f.children.length>0&&f.children.unshift({type:"text",value:" "}),f.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:e.checked,disabled:!0},children:[]}),l.className=["task-list-item"]}let a=-1;for(;++a1}function sa(n,e){const t={},r=n.all(e);let i=-1;for(typeof e.start=="number"&&e.start!==1&&(t.start=e.start);++i0){const o={type:"element",tagName:"tbody",properties:{},children:n.wrap(t,!0)},a=Ee(e.children[1]),u=qt(e.children[e.children.length-1]);a&&u&&(o.position={start:a,end:u}),i.push(o)}const l={type:"element",tagName:"table",properties:{},children:n.wrap(i,!0)};return n.patch(e,l),n.applyData(e,l)}function ma(n,e,t){const r=t?t.children:void 0,l=(r?r.indexOf(e):1)===0?"th":"td",o=t&&t.type==="table"?t.align:void 0,a=o?o.length:e.children.length;let u=-1;const s=[];for(;++u0,!0),r[0]),i=r.index+r[0].length,r=t.exec(e);return l.push(ht(e.slice(i),i>0,!1)),l.join("")}function ht(n,e,t){let r=0,i=n.length;if(e){let l=n.codePointAt(r);for(;l===pt||l===ft;)r++,l=n.codePointAt(r)}if(t){let l=n.codePointAt(i-1);for(;l===pt||l===ft;)i--,l=n.codePointAt(i-1)}return i>r?n.slice(r,i):""}function ya(n,e){const t={type:"text",value:ga(String(e.value))};return n.patch(e,t),n.applyData(e,t)}function xa(n,e){const t={type:"element",tagName:"hr",properties:{},children:[]};return n.patch(e,t),n.applyData(e,t)}const ka={blockquote:Xo,break:Go,code:Yo,delete:Ko,emphasis:Jo,footnoteReference:Zo,heading:na,html:ea,imageReference:ta,image:ra,inlineCode:ia,linkReference:la,link:oa,listItem:aa,list:sa,paragraph:ca,root:pa,strong:fa,table:ha,tableCell:da,tableRow:ma,text:ya,thematicBreak:xa,toml:Vn,yaml:Vn,definition:Vn,footnoteDefinition:Vn};function Vn(){}const fr=-1,Jn=0,Xn=1,Gn=2,Oe=3,De=4,ve=5,Fe=6,hr=7,mr=8,mt=typeof self=="object"?self:globalThis,ba=(n,e)=>{const t=(i,l)=>(n.set(l,i),i),r=i=>{if(n.has(i))return n.get(i);const[l,o]=e[i];switch(l){case Jn:case fr:return t(o,i);case Xn:{const a=t([],i);for(const u of o)a.push(r(u));return a}case Gn:{const a=t({},i);for(const[u,s]of o)a[r(u)]=r(s);return a}case Oe:return t(new Date(o),i);case De:{const{source:a,flags:u}=o;return t(new RegExp(a,u),i)}case ve:{const a=t(new Map,i);for(const[u,s]of o)a.set(r(u),r(s));return a}case Fe:{const a=t(new Set,i);for(const u of o)a.add(r(u));return a}case hr:{const{name:a,message:u}=o;return t(new mt[a](u),i)}case mr:return t(BigInt(o),i);case"BigInt":return t(Object(BigInt(o)),i)}return t(new mt[l](o),i)};return r},dt=n=>ba(new Map,n)(0),Tn="",{toString:wa}={},{keys:Sa}=Object,Rn=n=>{const e=typeof n;if(e!=="object"||!n)return[Jn,e];const t=wa.call(n).slice(8,-1);switch(t){case"Array":return[Xn,Tn];case"Object":return[Gn,Tn];case"Date":return[Oe,Tn];case"RegExp":return[De,Tn];case"Map":return[ve,Tn];case"Set":return[Fe,Tn]}return t.includes("Array")?[Xn,t]:t.includes("Error")?[hr,t]:[Gn,t]},qn=([n,e])=>n===Jn&&(e==="function"||e==="symbol"),Ca=(n,e,t,r)=>{const i=(o,a)=>{const u=r.push(o)-1;return t.set(a,u),u},l=o=>{if(t.has(o))return t.get(o);let[a,u]=Rn(o);switch(a){case Jn:{let c=o;switch(u){case"bigint":a=mr,c=o.toString();break;case"function":case"symbol":if(n)throw new TypeError("unable to serialize "+u);c=null;break;case"undefined":return i([fr],o)}return i([a,c],o)}case Xn:{if(u)return i([u,[...o]],o);const c=[],f=i([a,c],o);for(const d of o)c.push(l(d));return f}case Gn:{if(u)switch(u){case"BigInt":return i([u,o.toString()],o);case"Boolean":case"Number":case"String":return i([u,o.valueOf()],o)}if(e&&"toJSON"in o)return l(o.toJSON());const c=[],f=i([a,c],o);for(const d of Sa(o))(n||!qn(Rn(o[d])))&&c.push([l(d),l(o[d])]);return f}case Oe:return i([a,o.toISOString()],o);case De:{const{source:c,flags:f}=o;return i([a,{source:c,flags:f}],o)}case ve:{const c=[],f=i([a,c],o);for(const[d,p]of o)(n||!(qn(Rn(d))||qn(Rn(p))))&&c.push([l(d),l(p)]);return f}case Fe:{const c=[],f=i([a,c],o);for(const d of o)(n||!qn(Rn(d)))&&c.push(l(d));return f}}const{message:s}=o;return i([a,{name:u,message:s}],o)};return l},gt=(n,{json:e,lossy:t}={})=>{const r=[];return Ca(!(e||t),!!e,new Map,r)(n),r},Yn=typeof structuredClone=="function"?(n,e)=>e&&("json"in e||"lossy"in e)?dt(gt(n,e)):structuredClone(n):(n,e)=>dt(gt(n,e));function Ea(n,e){const t=[{type:"text",value:"↩"}];return e>1&&t.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(e)}]}),t}function Ia(n,e){return"Back to reference "+(n+1)+(e>1?"-"+e:"")}function Aa(n){const e=typeof n.options.clobberPrefix=="string"?n.options.clobberPrefix:"user-content-",t=n.options.footnoteBackContent||Ea,r=n.options.footnoteBackLabel||Ia,i=n.options.footnoteLabel||"Footnotes",l=n.options.footnoteLabelTagName||"h2",o=n.options.footnoteLabelProperties||{className:["sr-only"]},a=[];let u=-1;for(;++u0&&y.push({type:"text",value:" "});let E=typeof t=="string"?t:t(u,p);typeof E=="string"&&(E={type:"text",value:E}),y.push({type:"element",tagName:"a",properties:{href:"#"+e+"fnref-"+d+(p>1?"-"+p:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(u,p),className:["data-footnote-backref"]},children:Array.isArray(E)?E:[E]})}const I=c[c.length-1];if(I&&I.type==="element"&&I.tagName==="p"){const E=I.children[I.children.length-1];E&&E.type==="text"?E.value+=" ":I.children.push({type:"text",value:" "}),I.children.push(...y)}else c.push(...y);const w={type:"element",tagName:"li",properties:{id:e+"fn-"+d},children:n.wrap(c,!0)};n.patch(s,w),a.push(w)}if(a.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:l,properties:{...Yn(o),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:` +`},{type:"element",tagName:"ol",properties:{},children:n.wrap(a,!0)},{type:"text",value:` +`}]}}const dr=function(n){if(n==null)return La;if(typeof n=="function")return Zn(n);if(typeof n=="object")return Array.isArray(n)?Pa(n):Ta(n);if(typeof n=="string")return za(n);throw new Error("Expected function, string, or object as test")};function Pa(n){const e=[];let t=-1;for(;++t":""))+")"})}return d;function d(){let p=gr,y,k,I;if((!e||l(u,s,c[c.length-1]||void 0))&&(p=Ba(t(u,c)),p[0]===yt))return p;if("children"in u&&u.children){const w=u;if(w.children&&p[0]!==va)for(k=(r?w.children.length:-1)+o,I=c.concat(w);k>-1&&k0&&t.push({type:"text",value:` +`}),t}function xt(n){let e=0,t=n.charCodeAt(e);for(;t===9||t===32;)e++,t=n.charCodeAt(e);return n.slice(e)}function kt(n,e){const t=Ma(n,e),r=t.one(n,void 0),i=Aa(t),l=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&l.children.push({type:"text",value:` +`},i),l}function Ua(n,e){return n&&"run"in n?async function(t,r){const i=kt(t,e);await n.run(i,r)}:function(t){return kt(t,e||n)}}function bt(n){if(n)throw n}var Qn=Object.prototype.hasOwnProperty,xr=Object.prototype.toString,wt=Object.defineProperty,St=Object.getOwnPropertyDescriptor,Ct=function(e){return typeof Array.isArray=="function"?Array.isArray(e):xr.call(e)==="[object Array]"},Et=function(e){if(!e||xr.call(e)!=="[object Object]")return!1;var t=Qn.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&Qn.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!t&&!r)return!1;var i;for(i in e);return typeof i>"u"||Qn.call(e,i)},It=function(e,t){wt&&t.name==="__proto__"?wt(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},At=function(e,t){if(t==="__proto__")if(Qn.call(e,t)){if(St)return St(e,t).value}else return;return e[t]},Va=function n(){var e,t,r,i,l,o,a=arguments[0],u=1,s=arguments.length,c=!1;for(typeof a=="boolean"&&(c=a,a=arguments[1]||{},u=2),(a==null||typeof a!="object"&&typeof a!="function")&&(a={});uo.length;let u;a&&o.push(i);try{u=n.apply(this,o)}catch(s){const c=s;if(a&&t)throw c;return i(c)}a||(u instanceof Promise?u.then(l,i):u instanceof Error?i(u):l(u))}function i(o,...a){t||(t=!0,e(o,...a))}function l(o){i(null,o)}}const cn={basename:Wa,dirname:Qa,extname:Xa,join:Ga,sep:"/"};function Wa(n,e){if(e!==void 0&&typeof e!="string")throw new TypeError('"ext" argument must be a string');Hn(n);let t=0,r=-1,i=n.length,l;if(e===void 0||e.length===0||e.length>n.length){for(;i--;)if(n.codePointAt(i)===47){if(l){t=i+1;break}}else r<0&&(l=!0,r=i+1);return r<0?"":n.slice(t,r)}if(e===n)return"";let o=-1,a=e.length-1;for(;i--;)if(n.codePointAt(i)===47){if(l){t=i+1;break}}else o<0&&(l=!0,o=i+1),a>-1&&(n.codePointAt(i)===e.codePointAt(a--)?a<0&&(r=i):(a=-1,r=o));return t===r?r=o:r<0&&(r=n.length),n.slice(t,r)}function Qa(n){if(Hn(n),n.length===0)return".";let e=-1,t=n.length,r;for(;--t;)if(n.codePointAt(t)===47){if(r){e=t;break}}else r||(r=!0);return e<0?n.codePointAt(0)===47?"/":".":e===1&&n.codePointAt(0)===47?"//":n.slice(0,e)}function Xa(n){Hn(n);let e=n.length,t=-1,r=0,i=-1,l=0,o;for(;e--;){const a=n.codePointAt(e);if(a===47){if(o){r=e+1;break}continue}t<0&&(o=!0,t=e+1),a===46?i<0?i=e:l!==1&&(l=1):i>-1&&(l=-1)}return i<0||t<0||l===0||l===1&&i===t-1&&i===r+1?"":n.slice(i,t)}function Ga(...n){let e=-1,t;for(;++e0&&n.codePointAt(n.length-1)===47&&(t+="/"),e?"/"+t:t}function Ka(n,e){let t="",r=0,i=-1,l=0,o=-1,a,u;for(;++o<=n.length;){if(o2){if(u=t.lastIndexOf("/"),u!==t.length-1){u<0?(t="",r=0):(t=t.slice(0,u),r=t.length-1-t.lastIndexOf("/")),i=o,l=0;continue}}else if(t.length>0){t="",r=0,i=o,l=0;continue}}e&&(t=t.length>0?t+"/..":"..",r=2)}else t.length>0?t+="/"+n.slice(i+1,o):t=n.slice(i+1,o),r=o-i-1;i=o,l=0}else a===46&&l>-1?l++:l=-1}return t}function Hn(n){if(typeof n!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(n))}const Ja={cwd:Za};function Za(){return"/"}function we(n){return!!(n!==null&&typeof n=="object"&&"href"in n&&n.href&&"protocol"in n&&n.protocol&&n.auth===void 0)}function nu(n){if(typeof n=="string")n=new URL(n);else if(!we(n)){const e=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+n+"`");throw e.code="ERR_INVALID_ARG_TYPE",e}if(n.protocol!=="file:"){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return eu(n)}function eu(n){if(n.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const e=n.pathname;let t=-1;for(;++t0){let[p,...y]=c;const k=r[d][1];be(k)&&be(p)&&(p=le(!0,k,p)),r[d]=[s,p,...y]}}}}const lu=new Be().freeze();function se(n,e){if(typeof e!="function")throw new TypeError("Cannot `"+n+"` without `parser`")}function ce(n,e){if(typeof e!="function")throw new TypeError("Cannot `"+n+"` without `compiler`")}function pe(n,e){if(e)throw new Error("Cannot call `"+n+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Tt(n){if(!be(n)||typeof n.type!="string")throw new TypeError("Expected node, got `"+n+"`")}function zt(n,e,t){if(!t)throw new Error("`"+n+"` finished async. Use `"+e+"` instead")}function $n(n){return ou(n)?n:new kr(n)}function ou(n){return!!(n&&typeof n=="object"&&"message"in n&&"messages"in n)}function au(n){return typeof n=="string"||uu(n)}function uu(n){return!!(n&&typeof n=="object"&&"byteLength"in n&&"byteOffset"in n)}const su="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Lt=[],Ot={allowDangerousHtml:!0},cu=/^(https?|ircs?|mailto|xmpp)$/i,pu=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function fu(n){const e=n.allowedElements,t=n.allowElement,r=n.children||"",i=n.className,l=n.components,o=n.disallowedElements,a=n.rehypePlugins||Lt,u=n.remarkPlugins||Lt,s=n.remarkRehypeOptions?{...n.remarkRehypeOptions,...Ot}:Ot,c=n.skipHtml,f=n.unwrapDisallowed,d=n.urlTransform||hu,p=lu().use(Qo).use(u).use(Ua,s).use(a),y=new kr;typeof r=="string"&&(y.value=r);for(const E of pu)Object.hasOwn(n,E.from)&&(""+E.from+(E.to?"use `"+E.to+"` instead":"remove it")+su+E.id,void 0);const k=p.parse(y);let I=p.runSync(k,y);return i&&(I={type:"element",tagName:"div",properties:{className:i},children:I.type==="root"?I.children:[I]}),yr(I,w),Ii(I,{Fragment:V.Fragment,components:l,ignoreInvalidStyle:!0,jsx:V.jsx,jsxs:V.jsxs,passKeys:!0,passNode:!0});function w(E,C,D){if(E.type==="raw"&&D&&typeof C=="number")return c?D.children.splice(C,1):D.children[C]={type:"text",value:E.value},C;if(E.type==="element"){let O;for(O in te)if(Object.hasOwn(te,O)&&Object.hasOwn(E.properties,O)){const x=E.properties[O],B=te[O];(B===null||B.includes(E.tagName))&&(E.properties[O]=d(String(x||""),O,E))}}if(E.type==="element"){let O=e?!e.includes(E.tagName):o?o.includes(E.tagName):!1;if(!O&&t&&typeof C=="number"&&(O=!t(E,C,D)),O&&D&&typeof C=="number")return f&&E.children?D.children.splice(C,1,...E.children):D.children.splice(C,1),C}}}function hu(n){const e=n.indexOf(":"),t=n.indexOf("?"),r=n.indexOf("#"),i=n.indexOf("/");return e<0||i>-1&&e>i||t>-1&&e>t||r>-1&&e>r||cu.test(n.slice(0,e))?n:""}const mu=En(fu)` + color: ${J.white}; + font-family: 'Barlow', sans-serif; + line-height: 1.5; + + h1, + h2, + h3, + h4, + h5, + h6 { + margin: 1em 0 0.5em; + line-height: 1.3; + font-weight: 600; + margin-top: 1px; + } + + h1 { + font-size: 24px; + font-weight: 600; + margin-bottom: 16px; + } + + h2 { + font-size: 20px; + font-weight: 600; + margin-bottom: 12px; + } + + h3 { + font-size: 1.3em; + } + h4 { + font-size: 1.2em; + } + h5 { + font-size: 1.1em; + } + h6 { + font-size: 1em; + } + + p { + font-weight: normal; + margin: 8px 0; + } + + code { + font-family: 'Courier New', monospace; + background: ${J.BG1}; + padding: 2px 4px; + border-radius: 4px; + font-weight: normal; + } + + pre { + background: ${J.BG1}; + padding: 16px; + border-radius: 8px; + overflow-x: auto; + margin: 1em 0; + + code { + background: none; + padding: 0; + border-radius: 0; + } + } + + ul, + ol { + font-weight: normal; + margin: 8px 0; + padding-left: 20px; + } + + li { + font-weight: normal; + margin: 4px 0; + } + + a { + color: #0bf; + text-decoration: none; + + &:hover { + text-decoration: underline; + } + } + + blockquote { + border-left: 4px solid ${J.modalShield}; + padding-left: 16px; + margin: 16px 0; + font-weight: normal; + } + + table { + border-collapse: collapse; + width: auto; + margin: 1em 0; + background: ${J.BG1}; + border-radius: 4px; + border: 1px solid ${J.modalShield}; + } + + th, + td { + border: 1px solid ${J.modalShield}; + padding: 8px 12px; + text-align: left; + font-weight: normal; + min-width: 100px; + } + + th { + font-weight: 600; + background: ${J.BG2}; + } + + img { + max-width: 100%; + height: auto; + } + + hr { + border: none; + border-top: 1px solid ${J.modalShield}; + margin: 1em 0; + } +`,du=({trend:n,onClose:e})=>{var I,w;const[t,r]=Un.useState(!1),{close:i}=vt("briefDescription"),{currentPlayingAudio:l,setCurrentPlayingAudio:o}=Lr(E=>E),[a]=Or(E=>[E.setBudget]),{fetchData:u,setAbortRequests:s}=Dr(E=>E),c=Un.useRef(null),f=async()=>{d(),await u(a,s,n.tldr_topic??n.name)},d=Un.useCallback(()=>{e(),i()},[e,i]),p=()=>{c.current&&(t?c.current.pause():c.current.play(),r(!t))},y=()=>{var C,D,O;const E=!((C=l==null?void 0:l.current)!=null&&C.paused);E&&((D=l==null?void 0:l.current)==null||D.pause(),o(null)),(((O=l==null?void 0:l.current)==null?void 0:O.src)!==n.audio_EN||!E)&&p()};Un.useEffect(()=>{const E=c.current,C=()=>{r(!1),o(null)};return E&&E.addEventListener("ended",C),()=>{E&&E.removeEventListener("ended",C)}},[o]);const k=((I=l==null?void 0:l.current)==null?void 0:I.src)===n.audio_EN&&!((w=l==null?void 0:l.current)!=null&&w.paused)||t;return V.jsxs(V.Fragment,{children:[n.audio_EN?V.jsxs(V.Fragment,{children:[V.jsxs(bu,{children:[V.jsx(Dt,{className:vr("default",{play:k}),onClick:y,size:"small",startIcon:k?V.jsx(_r,{}):V.jsx(Mr,{}),children:k?"Pause":"Listen"}),V.jsx(Dt,{className:"default",onClick:f,size:"small",startIcon:V.jsx(Nr,{}),children:"Learn More"})]}),V.jsx(ku,{ref:c,src:n.audio_EN,children:V.jsx("track",{kind:"captions"})})]}):null,V.jsxs(fe,{mt:75,children:[V.jsx(xu,{children:n.tldr_topic??n.name}),V.jsx(gu,{children:V.jsx(fe,{children:V.jsx(yu,{children:n.tldr&&V.jsx(mu,{children:n.tldr})})})})]})]})},gu=En.div` + max-height: 310px; + overflow-y: auto; + margin: 8px 0; + padding: 0 20px; +`,yu=En(Ft)` + font-size: 18px; + font-weight: 400; + font-family: 'Barlow'; + * { + all: revert; + } +`,xu=En(Ft)` + font-weight: 600; + font-size: 20px; + padding: 0 20px; +`,ku=En.audio` + display: none; +`,Dt=En(Fr)` + && { + &.default { + font-size: 13px; + font-weight: 500; + font-family: Barlow; + padding: 12px, 16px, 12px, 10px; + color: ${J.white}; + + &:hover { + color: ${J.GRAY3}; + } + + &.play { + color: ${J.BG3}; + background-color: ${J.white}; + } + } + } +`,bu=En(fe)` + top: 0px; + position: absolute; + border-radius: 16px 16px 0px 0px; + padding: 0px 12px; + width: 100%; + height: 60px; + display: flex; + flex-direction: row; + align-items: center; + background-color: ${J.BG3}; + gap: 10px; +`,br=Br(n=>({trend:null,setTrend:e=>n({trend:e})})),wu=()=>{const{close:n}=vt("briefDescription"),{trend:e,setTrend:t}=br(),r=()=>{t(null),n()};return e?V.jsx(Rr,{"data-testid":"brief-description-modal",id:"briefDescription",kind:"regular",noWrap:!0,onClose:r,preventOutsideClose:!0,children:V.jsx(du,{onClose:r,trend:e})}):null},Iu=Object.freeze(Object.defineProperty({__proto__:null,BriefDescription:wu,useBriefDescriptionStore:br},Symbol.toStringTag,{value:"Module"}));export{mu as S,Iu as i,br as u}; diff --git a/build/assets/index-16f87ec1.js b/build/assets/index-85f1fd1c.js similarity index 84% rename from build/assets/index-16f87ec1.js rename to build/assets/index-85f1fd1c.js index bd56a507b..59048560c 100644 --- a/build/assets/index-16f87ec1.js +++ b/build/assets/index-85f1fd1c.js @@ -1,5 +1,5 @@ -import{r as h,K as X,L as K,M as F,N as I,P as Q,G as Z,j as e,S as J,U as ee,X as D,ai as gt,O as ne,aj as ft,s as c,a as x,T as N,B as W,F as g,e as M,bg as mt,aa as se,H as re,u as le,bh as bt,bi as jt,ae as yt,bj as wt,bk as Ve,x as ae,bl as qe,i as we,a_ as _e,a$ as Ne,b0 as ze,bm as Ct,bn as vt,aM as Tt,bo as $t,b as Xe,C as te,bp as St,be as Ke,bq as Qe,t as Ce,aZ as ce,v as ve,br as kt,aW as _t,aX as Nt,bs as de,bt as zt,k as Lt,q as It,a6 as Rt}from"./index-1d805415.js";import{ai as Bt,U as Mt,P as Te,aj as je,e as q,ak as Et,al as At,o as Ft,K as Ze,am as Je,an as et,ao as tt,a3 as st,ap as Ot,aq as Wt,ar as Ht,as as Le,at as Ie,au as Re,av as ge,aw as Pt,ax as Dt}from"./index-3ac851f3.js";import{T as Be,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-167ef3c0.js";import{C as z}from"./ClipLoader-9eb1180c.js";import{I as Vt,A as Se,T as lt}from"./index-f3df532f.js";import{u as R}from"./index-eeddd406.js";import{T as Me}from"./Typography-5c2f9b73.js";import{T as qt,a as Xt}from"./Tabs-050299f8.js";import"./index-5b7bb80c.js";import"./Stack-2f0ef3f5.js";import"./createSvgIcon-b68c7390.js";import"./TextareaAutosize-3b102137.js";const Kt=h.createContext(),ct=Kt;function Qt(t){return X("MuiTable",t)}K("MuiTable",["root","stickyHeader"]);const Zt=["className","component","padding","size","stickyHeader"],Jt=t=>{const{classes:s,stickyHeader:n}=t;return ee({root:["root",n&&"stickyHeader"]},Qt,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"})),Ee="table",ts=h.forwardRef(function(s,n){const r=Q({props:s,name:"MuiTable"}),{className:l,component:i=Ee,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===Ee?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)}K("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=Q({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=K("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=Q({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)}K("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=Q({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=K("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=Q({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)` +import{r as h,z as X,D as K,E as F,G as I,J as Q,w as J,j as e,K as Z,L as ee,N as D,af as gt,H as ne,ag as ft,s as c,a as x,T as N,B as W,F as g,a0 as E,bd as mt,a7 as se,x as re,u as le,be as bt,bf as jt,ab as yt,bg as wt,bh as Ve,o as ae,bi as qe,a6 as we,aX as _e,aY as Ne,aZ as ze,bj as Ct,bk as vt,aJ as Tt,bl as $t,g as Xe,C as te,bm as St,bb as Ke,bn as Qe,i as Ce,aW as ce,k as ve,bo as kt,aT as _t,aU as Nt,bp as de,bq as zt,b as Lt,h as It,a1 as Rt}from"./index-2353781d.js";import{C as Bt,F as je,D as Et,E as Mt,P as At,a as Ft,T as Ot,V as Le,b as Ie,M as Re,S as ge,c as Wt,A as Ht}from"./VisibilityOn-aa220caf.js";import{P as Pt,S as Je}from"./SearchIcon-3c9f4418.js";import{T as Be,s as U,a as Ze,S as et,A as Te,E as Dt,D as Ut,b as tt,Q as st,V as ot,c as Gt}from"./constants-e4e2b00b.js";import{C as z}from"./ClipLoader-c90857c8.js";import{P as $e,I as q,s as Yt}from"./index-068043a5.js";import{I as Vt,A as Se,T as nt}from"./index-da8a239d.js";import{u as R}from"./index-3109fb7b.js";import{N as rt,F as at,A as it}from"./NodeCircleIcon-6e372d93.js";import{C as lt}from"./CheckIcon-bcbb5853.js";import{T as Ee}from"./Typography-13640c0b.js";import{T as qt,a as Xt}from"./Tabs-9bc26124.js";import"./index-33375362.js";import"./Stack-ff0fb8f6.js";import"./createSvgIcon-09ff14f6.js";import"./TextareaAutosize-c42da1c8.js";const Kt=h.createContext(),ct=Kt;function Qt(t){return X("MuiTable",t)}K("MuiTable",["root","stickyHeader"]);const Jt=["className","component","padding","size","stickyHeader"],Zt=t=>{const{classes:s,stickyHeader:n}=t;return ee({root:["root",n&&"stickyHeader"]},Qt,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=Q({props:s,name:"MuiTable"}),{className:l,component:i=Me,padding:a="normal",size:o="medium",stickyHeader:d=!1}=r,u=J(r,Jt),m=I({},r,{component:i,padding:a,size:o,stickyHeader:d}),p=Zt(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:Z(p.root,l),ownerState:m},u))})}),pe=ts,ss=h.createContext(),xe=ss;function os(t){return X("MuiTableBody",t)}K("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=Q({props:s,name:"MuiTableBody"}),{className:l,component:i=Ae}=r,a=J(r,ns),o=I({},r,{component:i}),d=rs(o);return e.jsx(xe.Provider,{value:is,children:e.jsx(as,I({className:Z(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=K("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=Q({props:s,name:"MuiTableCell"}),{align:l="inherit",className:i,component:a,padding:o,scope:d,size:u,sortDirection:m,variant:p}=r,b=J(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:Z(O.root,i),"aria-sort":L,scope:$,ownerState:A},b))}),ms=fs;function bs(t){return X("MuiTableHead",t)}K("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=Q({props:s,name:"MuiTableHead"}),{className:l,component:i=Fe}=r,a=J(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:Z(d.root,l),ref:n,role:i===Fe?null:"rowgroup",ownerState:o},a))})}),dt=vs;function Ts(t){return X("MuiTableRow",t)}const $s=K("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=Q({props:s,name:"MuiTableRow"}),{className:l,component:i=We,hover:a=!1,selected:o=!1}=r,d=J(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:Z(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}; border: none; @@ -104,14 +104,14 @@ import{r as h,K as X,L as K,M as F,N as I,P as Q,G as Z,j as e,S as J,U as ee,X &:visited { color: ${x.white}; } -`,Rs=h.memo(Is),Bs=({nodes:t})=>{const{open:s}=M("addContent"),n=async()=>{s()};return!t||(t==null?void 0:t.length)===0?e.jsx(e.Fragment,{children:e.jsxs(Ms,{children:[e.jsx(As,{children:e.jsx(Bt,{})}),e.jsx(Es,{children:e.jsx(N,{className:"subtitle",children:"Contribute to the graph by adding your first content."})}),e.jsx(g,{justify:"center",children:e.jsx(W,{color:"secondary",onClick:n,size:"medium",startIcon:e.jsx(Mt,{}),type:"submit",variant:"contained",children:"Add Content"})})]})}):e.jsxs(pe,{component:"table",children:[e.jsx(ue,{children:e.jsxs(G,{component:"tr",children:[e.jsx(f,{className:"empty"}),e.jsx(f,{children:"Date"}),e.jsx(f,{children:"Type"}),e.jsx(f,{children:"Source"}),e.jsx(f,{children:"Status"})]})}),e.jsx("tbody",{children:t==null?void 0:t.map(r=>e.jsx(Rs,{node:r},r==null?void 0:r.ref_id))})]})},Ms=F(g)` +`,Rs=h.memo(Is),Bs=({nodes:t})=>{const{open:s}=E("addContent"),n=async()=>{s()};return!t||(t==null?void 0:t.length)===0?e.jsx(e.Fragment,{children:e.jsxs(Es,{children:[e.jsx(As,{children:e.jsx(Bt,{})}),e.jsx(Ms,{children:e.jsx(N,{className:"subtitle",children:"Contribute to the graph by adding your first content."})}),e.jsx(g,{justify:"center",children:e.jsx(W,{color:"secondary",onClick:n,size:"medium",startIcon:e.jsx(Pt,{}),type:"submit",variant:"contained",children:"Add Content"})})]})}):e.jsxs(pe,{component:"table",children:[e.jsx(ue,{children:e.jsxs(G,{component:"tr",children:[e.jsx(f,{className:"empty"}),e.jsx(f,{children:"Date"}),e.jsx(f,{children:"Type"}),e.jsx(f,{children:"Source"}),e.jsx(f,{children:"Status"})]})}),e.jsx("tbody",{children:t==null?void 0:t.map(r=>e.jsx(Rs,{node:r},r==null?void 0:r.ref_id))})]})},Es=F(g)` display: flex; align-items: center; justify-content: center; margin: 150px auto; width: 100%; flex-direction: column; -`,Es=F(g)` +`,Ms=F(g)` display: flex; align-items: center; justify-content: center; @@ -218,7 +218,7 @@ import{r as h,K as X,L as K,M as F,N as I,P as Q,G as Z,j as e,S as J,U as ee,X font-size: 16px; font-weight: 500; } -`,Ys=c(Te)` +`,Ys=c($e)` && { z-index: 9999; } @@ -228,7 +228,7 @@ import{r as h,K as X,L as K,M as F,N as I,P as Q,G as Z,j as e,S as J,U as ee,X gap: 12px; align-items: center; margin-top: 16px; -`,qs=({data:t})=>{const s=le(a=>a.setQueuedSources),[n,r]=h.useState(""),l=async a=>{if(t!=null&&t.length)try{const o=await yt.enable();await wt(a,o.pubkey),s(t.filter(d=>d.ref_id!==a))}catch(o){console.warn(o)}},i=async a=>{if(!(!a||!(t!=null&&t.length))){r(a);try{await Ve(a),s(t==null?void 0:t.filter(o=>o.ref_id!==a))}catch(o){console.warn(o)}finally{r("")}}};return t!=null&&t.length?e.jsxs(pe,{component:"table",children:[e.jsx(ue,{children:e.jsxs(G,{component:"tr",children:[e.jsx(f,{className:"empty"}),e.jsx(f,{children:"Type"}),e.jsx(f,{children:"Source"}),e.jsx(f,{}),e.jsx(f,{className:"empty"})]})}),(t==null?void 0:t.length)&&e.jsx("tbody",{children:t==null?void 0:t.map(a=>e.jsxs(he,{children:[e.jsx(f,{className:"empty"}),e.jsx(f,{children:U[a.source_type]}),e.jsx(f,{width:"268px",children:a.source_type==="twitter_handle"?e.jsxs(Ue,{href:`${ot}/${a.source}?open=system`,target:"_blank",children:["@",a.source]}):e.jsx(Ue,{href:`${a.source}?open=system`,target:"_blank",children:a.source})}),e.jsx(f,{className:"cell-center",children:e.jsxs(g,{direction:"row",justify:"flex-end",children:[e.jsx(Xs,{className:"approve-wrapper",children:e.jsx(De,{className:"centered",onClick:()=>l(a.ref_id),children:e.jsx(bt,{color:x.primaryGreen,fontSize:24})})}),e.jsx("div",{className:"delete-wrapper",children:n===a.ref_id?e.jsx(z,{color:x.white,size:16}):e.jsx(pt,{message:"Are you sure ?",onConfirm:()=>i(a.ref_id),children:e.jsx(De,{className:"centered",children:e.jsx(jt,{color:x.primaryRed,fontSize:24})})})})]})}),e.jsx(f,{className:"empty"})]},a.source))})]}):e.jsxs(g,{children:[e.jsx(N,{children:"There is not any results for selected filters"}),e.jsx(je,{})]})},De=c(g)` +`,qs=({data:t})=>{const s=le(a=>a.setQueuedSources),[n,r]=h.useState(""),l=async a=>{if(t!=null&&t.length)try{const o=await yt.enable();await wt(a,o.pubkey),s(t.filter(d=>d.ref_id!==a))}catch(o){console.warn(o)}},i=async a=>{if(!(!a||!(t!=null&&t.length))){r(a);try{await Ve(a),s(t==null?void 0:t.filter(o=>o.ref_id!==a))}catch(o){console.warn(o)}finally{r("")}}};return t!=null&&t.length?e.jsxs(pe,{component:"table",children:[e.jsx(ue,{children:e.jsxs(G,{component:"tr",children:[e.jsx(f,{className:"empty"}),e.jsx(f,{children:"Type"}),e.jsx(f,{children:"Source"}),e.jsx(f,{}),e.jsx(f,{className:"empty"})]})}),(t==null?void 0:t.length)&&e.jsx("tbody",{children:t==null?void 0:t.map(a=>e.jsxs(he,{children:[e.jsx(f,{className:"empty"}),e.jsx(f,{children:U[a.source_type]}),e.jsx(f,{width:"268px",children:a.source_type==="twitter_handle"?e.jsxs(Ue,{href:`${Ze}/${a.source}?open=system`,target:"_blank",children:["@",a.source]}):e.jsx(Ue,{href:`${a.source}?open=system`,target:"_blank",children:a.source})}),e.jsx(f,{className:"cell-center",children:e.jsxs(g,{direction:"row",justify:"flex-end",children:[e.jsx(Xs,{className:"approve-wrapper",children:e.jsx(De,{className:"centered",onClick:()=>l(a.ref_id),children:e.jsx(bt,{color:x.primaryGreen,fontSize:24})})}),e.jsx("div",{className:"delete-wrapper",children:n===a.ref_id?e.jsx(z,{color:x.white,size:16}):e.jsx(pt,{message:"Are you sure ?",onConfirm:()=>i(a.ref_id),children:e.jsx(De,{className:"centered",children:e.jsx(jt,{color:x.primaryRed,fontSize:24})})})})]})}),e.jsx(f,{className:"empty"})]},a.source))})]}):e.jsxs(g,{children:[e.jsx(N,{children:"There is not any results for selected filters"}),e.jsx(je,{})]})},De=c(g)` width: 20px; height: 20px; border-radius: 50%; @@ -253,7 +253,7 @@ import{r as h,K as X,L as K,M as F,N as I,P as Q,G as Z,j as e,S as J,U as ee,X } `,Xs=c.div` margin-right: 40px; -`,Ks=()=>{const[t,s]=h.useState(!0),[n,r]=h.useState(""),[l,i]=le(d=>[d.queuedSources,d.setQueuedSources]);h.useEffect(()=>{(async()=>{s(!0);try{const u=await qe({approved:"False"});i(u.data)}catch(u){console.warn(u)}finally{s(!1)}})()},[i]);const a=d=>{r(n===d||!d?"":d)},o=l==null?void 0:l.filter(d=>!n||d.source_type===n);return e.jsxs(Qs,{align:"stretch",direction:"column",justify:"flex-end",children:[e.jsxs(ke,{align:"flex-start",justify:"space-between",children:[e.jsx(N,{className:"title",children:"Queued Sources"}),e.jsx(N,{className:"subtitle",children:"This is a queue of pending sources waiting for approval or denial from graph users. If you think a source will provide good content for the graph, you can pay to approve it. Think of this as an investment: you pay to add it to the source table, and if the content is popular you will earn from it. If content is not relevant to the graph, you should deny it."})]}),e.jsxs(g,{className:"filters",direction:"row",pb:16,px:36,children:[e.jsx(ie,{className:ae({selected:!n}),onClick:()=>a(""),size:"small",children:"All"}),Object.keys(U).map(d=>e.jsx(ie,{className:ae({selected:d===n}),onClick:()=>a(d),size:"small",children:U[d]},d))]}),e.jsx(Zs,{align:"center",justify:t?"center":"flex-start",children:t?e.jsx(z,{color:x.white}):e.jsx(qs,{data:o})})]})},Qs=c(g)` +`,Ks=()=>{const[t,s]=h.useState(!0),[n,r]=h.useState(""),[l,i]=le(d=>[d.queuedSources,d.setQueuedSources]);h.useEffect(()=>{(async()=>{s(!0);try{const u=await qe({approved:"False"});i(u.data)}catch(u){console.warn(u)}finally{s(!1)}})()},[i]);const a=d=>{r(n===d||!d?"":d)},o=l==null?void 0:l.filter(d=>!n||d.source_type===n);return e.jsxs(Qs,{align:"stretch",direction:"column",justify:"flex-end",children:[e.jsxs(ke,{align:"flex-start",justify:"space-between",children:[e.jsx(N,{className:"title",children:"Queued Sources"}),e.jsx(N,{className:"subtitle",children:"This is a queue of pending sources waiting for approval or denial from graph users. If you think a source will provide good content for the graph, you can pay to approve it. Think of this as an investment: you pay to add it to the source table, and if the content is popular you will earn from it. If content is not relevant to the graph, you should deny it."})]}),e.jsxs(g,{className:"filters",direction:"row",pb:16,px:36,children:[e.jsx(ie,{className:ae({selected:!n}),onClick:()=>a(""),size:"small",children:"All"}),Object.keys(U).map(d=>e.jsx(ie,{className:ae({selected:d===n}),onClick:()=>a(d),size:"small",children:U[d]},d))]}),e.jsx(Js,{align:"center",justify:t?"center":"flex-start",children:t?e.jsx(z,{color:x.white}):e.jsx(qs,{data:o})})]})},Qs=c(g)` flex: 1; .title { @@ -279,12 +279,12 @@ import{r as h,K as X,L as K,M as F,N as I,P as Q,G as Z,j as e,S as J,U as ee,X & .filters { overflow-x: auto; } -`,Zs=c(g)` +`,Js=c(g)` min-height: 0; overflow: auto; flex: 1; width: 100%; -`,xt=({onSearch:t,placeholder:s,activeIcon:n,defaultIcon:r,loadingIcon:l,loading:i,...a})=>{const[o,d]=h.useState(""),u=()=>{d(""),t("")},m=h.useCallback(y=>{t(y)},[t]),p=h.useMemo(()=>we.debounce(m,300),[m]),b=y=>{const C=y.target.value.trim(),{value:w}=y.target;d(w),C?p(C):u()},j=()=>i?e.jsx(Ge,{children:e.jsx(fe,{type:"button",children:l})}):e.jsx(Ge,{children:o?e.jsx(fe,{onClick:u,type:"button",children:n}):e.jsx(fe,{type:"button",children:r})});return e.jsxs(Js,{children:[e.jsx(eo,{autoComplete:"off",autoCorrect:"off",inputProps:{"aria-label":"search"},onChange:b,placeholder:s,value:o,...a}),j()]})},Ge=c(g)` +`,xt=({onSearch:t,placeholder:s,activeIcon:n,defaultIcon:r,loadingIcon:l,loading:i,...a})=>{const[o,d]=h.useState(""),u=()=>{d(""),t("")},m=h.useCallback(y=>{t(y)},[t]),p=h.useMemo(()=>we.debounce(m,300),[m]),b=y=>{const C=y.target.value.trim(),{value:w}=y.target;d(w),C?p(C):u()},j=()=>i?e.jsx(Ge,{children:e.jsx(fe,{type:"button",children:l})}):e.jsx(Ge,{children:o?e.jsx(fe,{onClick:u,type:"button",children:n}):e.jsx(fe,{type:"button",children:r})});return e.jsxs(Zs,{children:[e.jsx(eo,{autoComplete:"off",autoCorrect:"off",inputProps:{"aria-label":"search"},onChange:b,placeholder:s,value:o,...a}),j()]})},Ge=c(g)` top: -50%; right: -3%; z-index: 3; @@ -292,7 +292,7 @@ import{r as h,K as X,L as K,M as F,N as I,P as Q,G as Z,j as e,S as J,U as ee,X transform: translate(-50%, 50%); `,fe=c(q)` font-size: 24px; -`,Js=c(Et)` +`,Zs=c(Yt)` && { width: 100%; height: 40px; @@ -351,7 +351,7 @@ import{r as h,K as X,L as K,M as F,N as I,P as Q,G as Z,j as e,S as J,U as ee,X } } width: 100%; -`,to=t=>e.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 21 21",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M13.8 9.97481L5.82503 1.9998H18C18.4167 1.9998 18.7167 2.18314 18.9 2.5498C19.0834 2.91647 19.05 3.26647 18.8 3.5998L13.8 9.97481ZM18.775 20.5998L13 14.8248V16.9998C13 17.2831 12.9042 17.5206 12.7125 17.7123C12.5209 17.904 12.2834 17.9998 12 17.9998H10C9.71669 17.9998 9.47919 17.904 9.28753 17.7123C9.09586 17.5206 9.00002 17.2831 9.00002 16.9998V10.8248L0.400024 2.2248L1.80002 0.799805L20.2 19.1998L18.775 20.5998Z",fill:"currentColor"})}),so=({data:t,canEdit:s=!1})=>{const n=le(o=>o.setSources),[r,l]=h.useState(""),i=async(o,d)=>{if(t!=null&&t.length)try{await $t(o,d);const u=t==null?void 0:t.findIndex(p=>p.ref_id===o),m=[...t];m[u]={...m[u],source:d.source},n(m)}catch(u){console.warn(u)}},a=async o=>{if(!(!o||!(t!=null&&t.length))){l(o);try{await Ve(o),n(t==null?void 0:t.filter(d=>d.ref_id!==o))}catch(d){console.warn(d)}finally{l("")}}};return t!=null&&t.length?e.jsxs(pe,{"aria-label":"a dense table",component:"table",id:"sources-table",size:"small",children:[e.jsx(ue,{children:e.jsxs(G,{component:"tr",children:[e.jsx(f,{className:"empty"}),e.jsx(f,{children:"Type"}),e.jsx(f,{align:"left",children:"Source"}),s&&e.jsx(f,{align:"left"}),e.jsx(f,{className:"empty"})]})}),e.jsx(cs,{component:"tbody",children:t==null?void 0:t.map(o=>e.jsxs(he,{children:[e.jsx(f,{className:"empty"}),e.jsx(f,{align:"left",children:U[o.source_type]}),e.jsx(f,{align:"left",children:e.jsx(oo,{condition:s,wrapper:d=>e.jsx(no,{id:o.ref_id,onSave:u=>i(o.ref_id,{source:u,source_type:o.source_type}),value:o.source,children:d}),children:o.source_type===_e||o.source_type===Ne||o.source_type===ze?e.jsxs(e.Fragment,{children:[o.source_type===_e&&e.jsxs(me,{href:`${ot}/${o.source}`,target:"_blank",children:["@",o.source]}),o.source_type===Ne&&e.jsx(me,{href:`${o.source}${o.source.includes("?")?"&":"?"}open=system`,target:"_blank",children:o.source}),o.source_type===ze&&e.jsx(me,{href:o.source,target:"_blank",children:o.source})]}):e.jsx("div",{children:o.source})})}),s&&e.jsx(f,{align:"left",children:e.jsx("div",{className:"delete-wrapper",id:`delete-${o.source}`,children:r===o.ref_id?e.jsx(ht,{"data-testid":`delete-loader-${o.ref_id}`,children:e.jsx(z,{color:x.white,size:16})}):e.jsx(pt,{"data-testid":`delete-icon-${o.ref_id}`,message:"Are you sure?",onConfirm:()=>a(o.ref_id),children:e.jsx(oe,{className:"centered","data-testid":`delete-icon-${o.ref_id}`,children:e.jsx(At,{})})})})}),e.jsx(f,{className:"empty"})]},o.source))})]}):e.jsxs(ao,{children:[e.jsx(to,{}),e.jsx(N,{className:"text",children:"There is not any results for selected filters"})]})};function oo({condition:t,wrapper:s,children:n}){return t?s(n):n}const no=({value:t,onSave:s,id:n,children:r})=>{const[l,i]=h.useState(!1),[a,o]=h.useState(t),[d,u]=h.useState(!1),m=async()=>{if(n){u(!0);try{await s(a),i(!1)}catch(p){console.warn(p)}finally{u(!1)}}};return e.jsx("div",{children:l?e.jsxs(ro,{align:"center",direction:"row",children:[e.jsx(Ct,{className:"editable-cell__input",name:"cell-input",onChange:p=>o(p),value:a}),e.jsx(oe,{align:"center",justify:"center",children:d?e.jsx(ht,{"data-testid":`edit-loader-${n}`,children:e.jsx(z,{color:x.white,size:12})}):e.jsx(vt,{"data-testid":`check-icon-${n}`,onClick:m})}),e.jsx(oe,{align:"center",className:"secondary",justify:"center",onClick:()=>i(!1),children:e.jsx(Tt,{})})]}):e.jsxs(io,{direction:"row",children:[e.jsx("div",{className:"name",children:r}),e.jsx("div",{className:"spacer"}),e.jsx(oe,{onClick:()=>i(!0),children:e.jsx(Ft,{"data-testid":`edit-icon-${n}`})})]})})},ro=c(g)` +`,to=t=>e.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 21 21",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M13.8 9.97481L5.82503 1.9998H18C18.4167 1.9998 18.7167 2.18314 18.9 2.5498C19.0834 2.91647 19.05 3.26647 18.8 3.5998L13.8 9.97481ZM18.775 20.5998L13 14.8248V16.9998C13 17.2831 12.9042 17.5206 12.7125 17.7123C12.5209 17.904 12.2834 17.9998 12 17.9998H10C9.71669 17.9998 9.47919 17.904 9.28753 17.7123C9.09586 17.5206 9.00002 17.2831 9.00002 16.9998V10.8248L0.400024 2.2248L1.80002 0.799805L20.2 19.1998L18.775 20.5998Z",fill:"currentColor"})}),so=({data:t,canEdit:s=!1})=>{const n=le(o=>o.setSources),[r,l]=h.useState(""),i=async(o,d)=>{if(t!=null&&t.length)try{await $t(o,d);const u=t==null?void 0:t.findIndex(p=>p.ref_id===o),m=[...t];m[u]={...m[u],source:d.source},n(m)}catch(u){console.warn(u)}},a=async o=>{if(!(!o||!(t!=null&&t.length))){l(o);try{await Ve(o),n(t==null?void 0:t.filter(d=>d.ref_id!==o))}catch(d){console.warn(d)}finally{l("")}}};return t!=null&&t.length?e.jsxs(pe,{"aria-label":"a dense table",component:"table",id:"sources-table",size:"small",children:[e.jsx(ue,{children:e.jsxs(G,{component:"tr",children:[e.jsx(f,{className:"empty"}),e.jsx(f,{children:"Type"}),e.jsx(f,{align:"left",children:"Source"}),s&&e.jsx(f,{align:"left"}),e.jsx(f,{className:"empty"})]})}),e.jsx(cs,{component:"tbody",children:t==null?void 0:t.map(o=>e.jsxs(he,{children:[e.jsx(f,{className:"empty"}),e.jsx(f,{align:"left",children:U[o.source_type]}),e.jsx(f,{align:"left",children:e.jsx(oo,{condition:s,wrapper:d=>e.jsx(no,{id:o.ref_id,onSave:u=>i(o.ref_id,{source:u,source_type:o.source_type}),value:o.source,children:d}),children:o.source_type===_e||o.source_type===Ne||o.source_type===ze?e.jsxs(e.Fragment,{children:[o.source_type===_e&&e.jsxs(me,{href:`${Ze}/${o.source}`,target:"_blank",children:["@",o.source]}),o.source_type===Ne&&e.jsx(me,{href:`${o.source}${o.source.includes("?")?"&":"?"}open=system`,target:"_blank",children:o.source}),o.source_type===ze&&e.jsx(me,{href:o.source,target:"_blank",children:o.source})]}):e.jsx("div",{children:o.source})})}),s&&e.jsx(f,{align:"left",children:e.jsx("div",{className:"delete-wrapper",id:`delete-${o.source}`,children:r===o.ref_id?e.jsx(ht,{"data-testid":`delete-loader-${o.ref_id}`,children:e.jsx(z,{color:x.white,size:16})}):e.jsx(pt,{"data-testid":`delete-icon-${o.ref_id}`,message:"Are you sure?",onConfirm:()=>a(o.ref_id),children:e.jsx(oe,{className:"centered","data-testid":`delete-icon-${o.ref_id}`,children:e.jsx(Et,{})})})})}),e.jsx(f,{className:"empty"})]},o.source))})]}):e.jsxs(ao,{children:[e.jsx(to,{}),e.jsx(N,{className:"text",children:"There is not any results for selected filters"})]})};function oo({condition:t,wrapper:s,children:n}){return t?s(n):n}const no=({value:t,onSave:s,id:n,children:r})=>{const[l,i]=h.useState(!1),[a,o]=h.useState(t),[d,u]=h.useState(!1),m=async()=>{if(n){u(!0);try{await s(a),i(!1)}catch(p){console.warn(p)}finally{u(!1)}}};return e.jsx("div",{children:l?e.jsxs(ro,{align:"center",direction:"row",children:[e.jsx(Ct,{className:"editable-cell__input",name:"cell-input",onChange:p=>o(p),value:a}),e.jsx(oe,{align:"center",justify:"center",children:d?e.jsx(ht,{"data-testid":`edit-loader-${n}`,children:e.jsx(z,{color:x.white,size:12})}):e.jsx(vt,{"data-testid":`check-icon-${n}`,onClick:m})}),e.jsx(oe,{align:"center",className:"secondary",justify:"center",onClick:()=>i(!1),children:e.jsx(Tt,{})})]}):e.jsxs(io,{direction:"row",children:[e.jsx("div",{className:"name",children:r}),e.jsx("div",{className:"spacer"}),e.jsx(oe,{onClick:()=>i(!0),children:e.jsx(Mt,{"data-testid":`edit-icon-${n}`})})]})})},ro=c(g)` display: flex; width: 250px; border: 2px solid ${x.lightBlue300}; @@ -440,7 +440,7 @@ import{r as h,K as X,L as K,M as F,N as I,P as Q,G as Z,j as e,S as J,U as ee,X display: flex; justify-content: center; align-items: center; -`,lo=()=>{const[t,s]=h.useState(!0),[n,r]=h.useState(""),[l,i]=le(p=>[p.sources,p.setSources]),[a]=Xe(p=>[p.isAdmin]),[o,d]=h.useState("");h.useEffect(()=>{(async()=>{s(!0);try{const b=await qe();i(b.data)}catch(b){console.warn(b)}finally{s(!1)}})()},[i]);const u=p=>{r(n===p||!p?"":p)},m=h.useMemo(()=>l==null?void 0:l.filter(p=>(!n||p.source_type===n)&&(p.source.toLowerCase().startsWith(o.toLowerCase())||p.source.toLowerCase().includes(o.toLowerCase())||`@${p.source.toLowerCase()}`.startsWith(o.toLowerCase())||`@${p.source.toLowerCase()}`.includes(o.toLowerCase()))),[o,n,l]);return e.jsxs(co,{align:"stretch",direction:"column",justify:"flex-end",children:[e.jsx(ke,{align:"center",direction:"row",justify:"space-between",children:e.jsx(N,{className:"title",children:"Sources for this Graph"})}),e.jsx(xo,{children:e.jsx(xt,{activeIcon:e.jsx(te,{}),defaultIcon:e.jsx(Ze,{}),loading:t,loadingIcon:e.jsx(z,{color:x.lightGray,size:24}),onSearch:d,placeholder:"Find Source"})}),e.jsxs(g,{className:"filters",direction:"row",pb:16,px:36,children:[e.jsx(ie,{className:ae({selected:!n}),onClick:()=>u(""),size:"small",children:"All"}),Object.keys(U).map(p=>e.jsx(ie,{className:ae({selected:p===n}),onClick:()=>u(p),size:"small",children:U[p]},p))]}),e.jsx(po,{align:"center",justify:t?"center":"flex-start",children:t?e.jsx(z,{color:x.white}):e.jsx(so,{canEdit:a,data:m})})]})},co=c(g)` +`,lo=()=>{const[t,s]=h.useState(!0),[n,r]=h.useState(""),[l,i]=le(p=>[p.sources,p.setSources]),[a]=Xe(p=>[p.isAdmin]),[o,d]=h.useState("");h.useEffect(()=>{(async()=>{s(!0);try{const b=await qe();i(b.data)}catch(b){console.warn(b)}finally{s(!1)}})()},[i]);const u=p=>{r(n===p||!p?"":p)},m=h.useMemo(()=>l==null?void 0:l.filter(p=>(!n||p.source_type===n)&&(p.source.toLowerCase().startsWith(o.toLowerCase())||p.source.toLowerCase().includes(o.toLowerCase())||`@${p.source.toLowerCase()}`.startsWith(o.toLowerCase())||`@${p.source.toLowerCase()}`.includes(o.toLowerCase()))),[o,n,l]);return e.jsxs(co,{align:"stretch",direction:"column",justify:"flex-end",children:[e.jsx(ke,{align:"center",direction:"row",justify:"space-between",children:e.jsx(N,{className:"title",children:"Sources for this Graph"})}),e.jsx(xo,{children:e.jsx(xt,{activeIcon:e.jsx(te,{}),defaultIcon:e.jsx(Je,{}),loading:t,loadingIcon:e.jsx(z,{color:x.lightGray,size:24}),onSearch:d,placeholder:"Find Source"})}),e.jsxs(g,{className:"filters",direction:"row",pb:16,px:36,children:[e.jsx(ie,{className:ae({selected:!n}),onClick:()=>u(""),size:"small",children:"All"}),Object.keys(U).map(p=>e.jsx(ie,{className:ae({selected:p===n}),onClick:()=>u(p),size:"small",children:U[p]},p))]}),e.jsx(po,{align:"center",justify:t?"center":"flex-start",children:t?e.jsx(z,{color:x.white}):e.jsx(so,{canEdit:a,data:m})})]})},co=c(g)` flex: 1; .title { font-size: 20px; @@ -462,7 +462,7 @@ import{r as h,K as X,L as K,M as F,N as I,P as Q,G as Z,j as e,S as J,U as ee,X width: 100%; `,xo=c(g)` margin: 0 0 16px 36px; -`,ho=({selectedType:t,setSelectedType:s})=>{const[n,r]=h.useState([]);h.useEffect(()=>{(async()=>{try{const{data:o}=await St();r(o.edge_types)}catch(o){console.warn(o)}})()},[r]);const l=a=>({label:a,value:a}),i=a=>{s((a==null?void 0:a.value)||"")};return e.jsx(Se,{onSelect:i,options:n.map(l),selectedValue:t?l(t):null})},uo=({onSelect:t,selectedValue:s,topicId:n})=>{const[r,l]=h.useState([]),[i,a]=h.useState(!1),o=h.useMemo(()=>{const b=async j=>{const y={is_muted:"False",sort_by:$e,search:j,skip:"0",limit:"1000"};a(!0);try{const w=(await Qe(y.search)).data.filter($=>($==null?void 0:$.ref_id)!==n);l(w)}catch{l([])}finally{a(!1)}};return we.debounce(b,300)},[n]),d=b=>{const j=b.trim();if(!j){l([]);return}j.length>2&&o(b)},u=b=>{const j=b?r.find(y=>y.ref_id===b.value):null;t(j||null)},m=b=>({label:b.search_value,value:b.ref_id,type:b.node_type}),p=b=>b.map(m);return s?e.jsxs(g,{align:"center",basis:"100%",direction:"row",grow:1,shrink:1,children:[e.jsx("span",{children:s.search_value}),e.jsx(nt,{onClick:()=>t(null),size:"medium",children:e.jsx(te,{})})]}):e.jsx(Se,{handleInputChange:d,isLoading:i,onSelect:u,options:p(r)||Ke,selectedValue:s?m(s):null})},go=({from:t,onSelect:s,selectedType:n,setSelectedType:r,isSwapped:l,setIsSwapped:i,selectedToNode:a})=>e.jsxs(g,{mb:20,children:[e.jsx(g,{align:"center",direction:"row",justify:"space-between",mb:18,children:e.jsx(g,{align:"center",direction:"row",children:e.jsx(fo,{children:"Add edge"})})}),e.jsxs(jo,{swap:l,children:[e.jsx(g,{children:e.jsx(yo,{disabled:!0,label:l?"To":"From",swap:l,value:t==null?void 0:t.name})}),e.jsxs(g,{my:16,children:[e.jsx(bo,{children:"Type"}),e.jsx(ho,{selectedType:n,setSelectedType:r})]}),e.jsx(g,{children:e.jsxs(wo,{children:[e.jsx(Co,{children:l?"From":"To"}),e.jsx(uo,{onSelect:s,selectedValue:a,topicId:t==null?void 0:t.ref_id})]})}),e.jsxs(mo,{children:[e.jsx(vo,{children:e.jsx(Je,{})}),e.jsx(To,{onClick:i,children:e.jsx(et,{})}),e.jsx($o,{children:e.jsx(tt,{})})]})]})]}),fo=c(N)` +`,ho=({selectedType:t,setSelectedType:s})=>{const[n,r]=h.useState([]);h.useEffect(()=>{(async()=>{try{const{data:o}=await St();r(o.edge_types)}catch(o){console.warn(o)}})()},[r]);const l=a=>({label:a,value:a}),i=a=>{s((a==null?void 0:a.value)||"")};return e.jsx(Se,{onSelect:i,options:n.map(l),selectedValue:t?l(t):null})},uo=({onSelect:t,selectedValue:s,topicId:n})=>{const[r,l]=h.useState([]),[i,a]=h.useState(!1),o=h.useMemo(()=>{const b=async j=>{const y={is_muted:"False",sort_by:Te,search:j,skip:"0",limit:"1000"};a(!0);try{const w=(await Qe(y.search)).data.filter($=>($==null?void 0:$.ref_id)!==n);l(w)}catch{l([])}finally{a(!1)}};return we.debounce(b,300)},[n]),d=b=>{const j=b.trim();if(!j){l([]);return}j.length>2&&o(b)},u=b=>{const j=b?r.find(y=>y.ref_id===b.value):null;t(j||null)},m=b=>({label:b.search_value,value:b.ref_id,type:b.node_type}),p=b=>b.map(m);return s?e.jsxs(g,{align:"center",basis:"100%",direction:"row",grow:1,shrink:1,children:[e.jsx("span",{children:s.search_value}),e.jsx(et,{onClick:()=>t(null),size:"medium",children:e.jsx(te,{})})]}):e.jsx(Se,{handleInputChange:d,isLoading:i,onSelect:u,options:p(r)||Ke,selectedValue:s?m(s):null})},go=({from:t,onSelect:s,selectedType:n,setSelectedType:r,isSwapped:l,setIsSwapped:i,selectedToNode:a})=>e.jsxs(g,{mb:20,children:[e.jsx(g,{align:"center",direction:"row",justify:"space-between",mb:18,children:e.jsx(g,{align:"center",direction:"row",children:e.jsx(fo,{children:"Add edge"})})}),e.jsxs(jo,{swap:l,children:[e.jsx(g,{children:e.jsx(yo,{disabled:!0,label:l?"To":"From",swap:l,value:t==null?void 0:t.name})}),e.jsxs(g,{my:16,children:[e.jsx(bo,{children:"Type"}),e.jsx(ho,{selectedType:n,setSelectedType:r})]}),e.jsx(g,{children:e.jsxs(wo,{children:[e.jsx(Co,{children:l?"From":"To"}),e.jsx(uo,{onSelect:s,selectedValue:a,topicId:t==null?void 0:t.ref_id})]})}),e.jsxs(mo,{children:[e.jsx(vo,{children:e.jsx(rt,{})}),e.jsx(To,{onClick:i,children:e.jsx(at,{})}),e.jsx($o,{children:e.jsx(it,{})})]})]})]}),fo=c(N)` font-size: 22px; font-weight: 600; font-family: 'Barlow'; @@ -492,7 +492,7 @@ import{r as h,K as X,L as K,M as F,N as I,P as Q,G as Z,j as e,S as J,U as ee,X flex-direction: ${t=>t.swap?"column-reverse":"column"}; margin-bottom: 10px; padding-left: 38px; -`,yo=c(lt)` +`,yo=c(nt)` position: relative; width: 100%; padding: 16px; @@ -549,7 +549,7 @@ import{r as h,K as X,L as K,M as F,N as I,P as Q,G as Z,j as e,S as J,U as ee,X transform: translateY(10px) translateX(3px); color: #6b7a8d; line-height: 1; -`,So=({topic:t,onClose:s})=>{const{close:n}=M("addEdge"),[r]=R(w=>[w.data]),l=Ce({mode:"onChange"}),[i,a]=h.useState(!1),[o,d]=h.useState(!1),[u,m]=h.useState(""),[p,b]=h.useState(null),j=()=>{s(),n()},y=async()=>{if(!(!p||!r)){d(!0);try{await kt({from:t.ref_id,to:p==null?void 0:p.ref_id,relationship:u});const{ref_id:w}=t,{ref_id:$}=p;if(r){const S={...r};S[w]={...S[w],edgeList:[...S[w].edgeList,u]},S[$]&&(S[$]={...S[$],edgeList:[...S[$].edgeList,u]}),R.setState({data:S})}j()}catch(w){console.warn(w)}finally{d(!1)}}},C=o||!p||!u;return e.jsx(ce,{id:"addEdge",kind:"small",onClose:j,preventOutsideClose:!0,children:e.jsxs(ve,{...l,children:[e.jsx(go,{from:t,isSwapped:i,onSelect:b,selectedToNode:p,selectedType:u,setIsSwapped:()=>a(!i),setSelectedType:m}),e.jsxs(ko,{color:"secondary",disabled:C,onClick:y,size:"large",variant:"contained",children:["Confirm",o&&e.jsx(_o,{children:e.jsx(z,{color:x.lightGray,size:12})})]})]})})},ko=c(W)` +`,So=({topic:t,onClose:s})=>{const{close:n}=E("addEdge"),[r]=R(w=>[w.data]),l=Ce({mode:"onChange"}),[i,a]=h.useState(!1),[o,d]=h.useState(!1),[u,m]=h.useState(""),[p,b]=h.useState(null),j=()=>{s(),n()},y=async()=>{if(!(!p||!r)){d(!0);try{await kt({from:t.ref_id,to:p==null?void 0:p.ref_id,relationship:u});const{ref_id:w}=t,{ref_id:$}=p;if(r){const S={...r};S[w]={...S[w],edgeList:[...S[w].edgeList,u]},S[$]&&(S[$]={...S[$],edgeList:[...S[$].edgeList,u]}),R.setState({data:S})}j()}catch(w){console.warn(w)}finally{d(!1)}}},C=o||!p||!u;return e.jsx(ce,{id:"addEdge",kind:"small",onClose:j,preventOutsideClose:!0,children:e.jsxs(ve,{...l,children:[e.jsx(go,{from:t,isSwapped:i,onSelect:b,selectedToNode:p,selectedType:u,setIsSwapped:()=>a(!i),setSelectedType:m}),e.jsxs(ko,{color:"secondary",disabled:C,onClick:y,size:"large",variant:"contained",children:["Confirm",o&&e.jsx(_o,{children:e.jsx(z,{color:x.lightGray,size:12})})]})]})})},ko=c(W)` width: 293px !important; margin: 0 0 10px auto !important; `,_o=c.span` @@ -558,13 +558,13 @@ import{r as h,K as X,L as K,M as F,N as I,P as Q,G as Z,j as e,S as J,U as ee,X font-size: 22px; font-weight: 600; font-family: 'Barlow'; -`,Lo=({topic:t,onClose:s})=>{const{close:n}=M("editTopic"),[r]=R(w=>[w.data]),l=Ce({mode:"onChange"}),{watch:i,setValue:a,reset:o,getValues:d}=l,[u,m]=h.useState(!1);h.useEffect(()=>(t&&a("name",t==null?void 0:t.name),()=>{o()}),[t,a,o]);const p=i("name"),b=p==null?void 0:p.trim(),j=()=>{s(),n()},y=async()=>{m(!0);try{if(await de(t==null?void 0:t.ref_id,{node_type:t==null?void 0:t.node_type,node_data:{name:b}}),r){const w={...r};w[t==null?void 0:t.ref_id].name=b,R.setState({data:w})}j()}catch(w){console.warn(w)}finally{m(!1)}},C=d().name&&(t==null?void 0:t.name)!==d().name;return e.jsx(ce,{id:"editTopic",kind:"regular",onClose:j,preventOutsideClose:!0,children:e.jsxs(ve,{...l,children:[e.jsx(No,{}),e.jsxs(W,{color:"secondary",disabled:u||!b||!C,onClick:y,size:"large",variant:"contained",children:["Save Changes",u&&e.jsx(Io,{children:e.jsx(z,{color:x.lightGray,size:12})})]})]})})},Io=c.span` +`,Lo=({topic:t,onClose:s})=>{const{close:n}=E("editTopic"),[r]=R(w=>[w.data]),l=Ce({mode:"onChange"}),{watch:i,setValue:a,reset:o,getValues:d}=l,[u,m]=h.useState(!1);h.useEffect(()=>(t&&a("name",t==null?void 0:t.name),()=>{o()}),[t,a,o]);const p=i("name"),b=p==null?void 0:p.trim(),j=()=>{s(),n()},y=async()=>{m(!0);try{if(await de(t==null?void 0:t.ref_id,{node_type:t==null?void 0:t.node_type,node_data:{name:b}}),r){const w={...r};w[t==null?void 0:t.ref_id].name=b,R.setState({data:w})}j()}catch(w){console.warn(w)}finally{m(!1)}},C=d().name&&(t==null?void 0:t.name)!==d().name;return e.jsx(ce,{id:"editTopic",kind:"regular",onClose:j,preventOutsideClose:!0,children:e.jsxs(ve,{...l,children:[e.jsx(No,{}),e.jsxs(W,{color:"secondary",disabled:u||!b||!C,onClick:y,size:"large",variant:"contained",children:["Save Changes",u&&e.jsx(Io,{children:e.jsx(z,{color:x.lightGray,size:12})})]})]})})},Io=c.span` margin-top: 2px; -`,Ro=({topicId:t,onSelect:s,selectedValue:n,dataId:r})=>{const[l,i]=h.useState([]),[a,o]=h.useState(!1),d=h.useMemo(()=>{const j=async y=>{const C={is_muted:"False",sort_by:$e,search:y,skip:"0",limit:"1000"};o(!0);try{const $=(await Qe(C.search)).data.filter(S=>(S==null?void 0:S.ref_id)!==t);i($)}catch{i([])}finally{o(!1)}};return we.debounce(j,300)},[t]),u=j=>{const y=j.trim();if(!y){i([]);return}y.length>2&&d(j)},m=j=>{const y=j?l.find(C=>C.ref_id===j.value):null;s(y||null)},p=j=>({label:j.search_value,value:j.ref_id,type:j.node_type}),b=j=>j.map(p);return n?e.jsxs(g,{align:"center",basis:"100%",direction:"row",grow:1,shrink:1,children:[e.jsx("span",{children:n.search_value}),e.jsx(nt,{onClick:()=>s(null),size:"medium",children:e.jsx(te,{})})]}):e.jsx(Se,{dataId:r,handleInputChange:u,isLoading:a,onSelect:m,options:b(l)||Ke,selectedValue:n?p(n):null})},Bo=({from:t,onSelect:s,selectedToNode:n,isSwapped:r,setIsSwapped:l})=>{var o;const i=t==null?void 0:t.map(d=>d.name).join(", "),a=t&&t.length===1?t[0].name:`${i==null?void 0:i.substring(0,25)} ...`;return e.jsxs(g,{mb:20,children:[e.jsx(g,{align:"center",direction:"row",justify:"space-between",mb:18,children:e.jsx(g,{align:"center",direction:"row",children:e.jsx(Mo,{children:"Merge topic"})})}),e.jsxs(Fo,{swap:r,children:[e.jsx(Eo,{children:e.jsx(Oo,{disabled:!0,label:r?"To":"From",swap:r,value:a})}),e.jsxs(g,{my:16,children:[e.jsx(Ho,{children:"Type"}),e.jsx(N,{children:"IS ALIAS"})]}),e.jsx(g,{children:e.jsxs(Wo,{children:[e.jsx(Po,{children:r?"From":"To"}),e.jsx(Ro,{dataId:"to-node",onSelect:s,selectedValue:n,topicId:(o=t[t.length-1])==null?void 0:o.ref_id})]})}),e.jsxs(Ao,{children:[e.jsx(Do,{children:e.jsx(Je,{})}),e.jsx(Uo,{"data-testid":"swap-icon",disabled:(t==null?void 0:t.length)!==1,onClick:(t==null?void 0:t.length)===1?l:void 0,children:e.jsx(et,{})}),e.jsx(Go,{children:e.jsx(tt,{})})]})]})]})},Mo=c(N)` +`,Ro=({topicId:t,onSelect:s,selectedValue:n,dataId:r})=>{const[l,i]=h.useState([]),[a,o]=h.useState(!1),d=h.useMemo(()=>{const j=async y=>{const C={is_muted:"False",sort_by:Te,search:y,skip:"0",limit:"1000"};o(!0);try{const $=(await Qe(C.search)).data.filter(S=>(S==null?void 0:S.ref_id)!==t);i($)}catch{i([])}finally{o(!1)}};return we.debounce(j,300)},[t]),u=j=>{const y=j.trim();if(!y){i([]);return}y.length>2&&d(j)},m=j=>{const y=j?l.find(C=>C.ref_id===j.value):null;s(y||null)},p=j=>({label:j.search_value,value:j.ref_id,type:j.node_type}),b=j=>j.map(p);return n?e.jsxs(g,{align:"center",basis:"100%",direction:"row",grow:1,shrink:1,children:[e.jsx("span",{children:n.search_value}),e.jsx(et,{onClick:()=>s(null),size:"medium",children:e.jsx(te,{})})]}):e.jsx(Se,{dataId:r,handleInputChange:u,isLoading:a,onSelect:m,options:b(l)||Ke,selectedValue:n?p(n):null})},Bo=({from:t,onSelect:s,selectedToNode:n,isSwapped:r,setIsSwapped:l})=>{var o;const i=t==null?void 0:t.map(d=>d.name).join(", "),a=t&&t.length===1?t[0].name:`${i==null?void 0:i.substring(0,25)} ...`;return e.jsxs(g,{mb:20,children:[e.jsx(g,{align:"center",direction:"row",justify:"space-between",mb:18,children:e.jsx(g,{align:"center",direction:"row",children:e.jsx(Eo,{children:"Merge topic"})})}),e.jsxs(Fo,{swap:r,children:[e.jsx(Mo,{children:e.jsx(Oo,{disabled:!0,label:r?"To":"From",swap:r,value:a})}),e.jsxs(g,{my:16,children:[e.jsx(Ho,{children:"Type"}),e.jsx(N,{children:"IS ALIAS"})]}),e.jsx(g,{children:e.jsxs(Wo,{children:[e.jsx(Po,{children:r?"From":"To"}),e.jsx(Ro,{dataId:"to-node",onSelect:s,selectedValue:n,topicId:(o=t[t.length-1])==null?void 0:o.ref_id})]})}),e.jsxs(Ao,{children:[e.jsx(Do,{children:e.jsx(rt,{})}),e.jsx(Uo,{"data-testid":"swap-icon",disabled:(t==null?void 0:t.length)!==1,onClick:(t==null?void 0:t.length)===1?l:void 0,children:e.jsx(at,{})}),e.jsx(Go,{children:e.jsx(it,{})})]})]})]})},Eo=c(N)` font-size: 22px; font-weight: 600; font-family: 'Barlow'; -`,Eo=c(g)` +`,Mo=c(g)` flex: 1 1 100%; `,Ao=c.div` position: absolute; @@ -584,7 +584,7 @@ import{r as h,K as X,L as K,M as F,N as I,P as Q,G as Z,j as e,S as J,U as ee,X flex-direction: ${t=>t.swap?"column-reverse":"column"}; margin-bottom: 10px; padding-left: 38px; -`,Oo=c(lt)` +`,Oo=c(nt)` position: relative; width: 100%; padding: 16px; @@ -649,19 +649,19 @@ import{r as h,K as X,L as K,M as F,N as I,P as Q,G as Z,j as e,S as J,U as ee,X transform: translateY(10px) translateX(3px); color: #6b7a8d; line-height: 1; -`,Yo=({onClose:t,multiTopics:s})=>{const{close:n}=M("mergeTopic"),r=Ce({mode:"onChange"}),{setValue:l,reset:i}=r,[a,o]=h.useState(!1),[d,u]=h.useState(!1),[m,p]=h.useState(null);h.useEffect(()=>{if(s&&s.length>0){const y=s.map(C=>C.name).join(", ");l("name",y)}return()=>{i()}},[s,l,i]);const b=()=>{t(),n()},j=async()=>{o(!0);const y=s==null?void 0:s.map(C=>C.ref_id).filter(C=>!!C);try{y.length&&m&&(await zt({from:y,to:m==null?void 0:m.ref_id}),R.setState(C=>({ids:C.ids.filter(w=>!y.includes(w)),total:C.total-y.length})),b())}catch(C){console.warn(C)}finally{o(!1)}};return e.jsx(ce,{id:"mergeTopic",kind:"small",onClose:b,preventOutsideClose:!0,children:e.jsxs(ve,{...r,children:[e.jsx(Bo,{from:s,isSwapped:d,onSelect:p,selectedToNode:m,setIsSwapped:()=>u(!d)}),e.jsxs(Vo,{color:"secondary","data-testid":"merge-topics-button",disabled:a||!m,onClick:j,size:"large",variant:"contained",children:["Merge topics",a&&e.jsx(qo,{children:e.jsx(z,{color:x.lightGray,size:12})})]})]})})},Vo=c(W)` +`,Yo=({onClose:t,multiTopics:s})=>{const{close:n}=E("mergeTopic"),r=Ce({mode:"onChange"}),{setValue:l,reset:i}=r,[a,o]=h.useState(!1),[d,u]=h.useState(!1),[m,p]=h.useState(null);h.useEffect(()=>{if(s&&s.length>0){const y=s.map(C=>C.name).join(", ");l("name",y)}return()=>{i()}},[s,l,i]);const b=()=>{t(),n()},j=async()=>{o(!0);const y=s==null?void 0:s.map(C=>C.ref_id).filter(C=>!!C);try{y.length&&m&&(await zt({from:y,to:m==null?void 0:m.ref_id}),R.setState(C=>({ids:C.ids.filter(w=>!y.includes(w)),total:C.total-y.length})),b())}catch(C){console.warn(C)}finally{o(!1)}};return e.jsx(ce,{id:"mergeTopic",kind:"small",onClose:b,preventOutsideClose:!0,children:e.jsxs(ve,{...r,children:[e.jsx(Bo,{from:s,isSwapped:d,onSelect:p,selectedToNode:m,setIsSwapped:()=>u(!d)}),e.jsxs(Vo,{color:"secondary","data-testid":"merge-topics-button",disabled:a||!m,onClick:j,size:"large",variant:"contained",children:["Merge topics",a&&e.jsx(qo,{children:e.jsx(z,{color:x.lightGray,size:12})})]})]})})},Vo=c(W)` width: 293px !important; margin: 0 0 10px auto !important; `,qo=c.span` margin-top: 2px; -`,Xo=({topic:t,onClick:s,onSearch:n,checkedStates:r,setCheckedStates:l,isMuteDisabled:i})=>{const[a,o]=R(k=>[k.ids,k.total]),[d,u]=h.useState(!1),[m,p]=h.useState(!1),b=ye(t.date_added_to_graph),j=async(k,v)=>{u(!0);try{await de(k,{node_type:t==null?void 0:t.node_type,node_data:{is_muted:v}}),R.setState({ids:a.filter(_=>_!==k),total:o-1})}catch(_){console.warn(_)}},y=k=>{l(v=>({...v,[k]:!v[k]}))},C=(k,v)=>{var _;(_=window.getSelection())!=null&&_.toString()?k.preventDefault():n(v.name)},w=t.edgeList.slice(0,1),$=t.edgeList.length-w.length,[S,A]=re.useState(null),O=k=>{A(k.currentTarget),p(!0)},L=()=>{p(!1)},H=!!S&&m,B=r[t.ref_id]?"visible":"";return e.jsxs(he,{className:r[t.ref_id]?"checked":"",children:[e.jsx(f,{children:e.jsx(Zo,{className:`checkbox-section ${B}`,"data-testid":"topic-check-box",onClick:()=>y(t.ref_id),children:e.jsx(Jo,{checked:r[t.ref_id],children:e.jsx(en,{children:r[t.ref_id]&&e.jsx(st,{})})})})}),e.jsx(f,{onClick:k=>C(k,t),children:e.jsx(Qo,{children:t.name})}),e.jsx(f,{children:t.node_type}),e.jsx(f,{children:e.jsx(tn,{children:t.edgeCount})}),e.jsxs(f,{children:[e.jsx(Te,{anchorEl:S,anchorOrigin:{vertical:"top",horizontal:"center"},disableRestoreFocus:!0,id:"mouse-over-popover",onClose:L,onMouseEnter:()=>p(!0),onMouseLeave:L,open:H,sx:{pointerEvents:"auto","& .MuiPaper-root":{backgroundColor:"rgba(0, 0, 0, 0.9)",borderRadius:"4px",width:"160px",maxHeight:"200px",overflowY:"scroll"}},transformOrigin:{vertical:"bottom",horizontal:"center"},children:e.jsx(Me,{sx:{p:1.5,fontSize:"13px",fontWeight:400,lineHeight:"1.8",wordWrap:"break-word"},children:t.edgeList.join(", ")})}),w.join(", "),$>0&&e.jsx(Me,{"aria-haspopup":"true","aria-owns":H?"mouse-over-popover":void 0,component:"span",onMouseEnter:O,onMouseLeave:L,sx:{cursor:"pointer"},children:",..."})]}),e.jsx(f,{children:e.jsx("span",{children:b})}),e.jsx(f,{className:"cell-center",children:e.jsx(g,{direction:"row",justify:"space-between",children:e.jsx("div",{className:"approve-wrapper",children:d?e.jsx(Ko,{children:e.jsx(z,{color:x.white,size:16})}):e.jsxs(g,{direction:"row",children:[t.is_muted?e.jsx(q,{className:"centered",disabled:i,onClick:()=>j(t.ref_id,!1),children:e.jsx(Ot,{})}):e.jsx(q,{className:"centered",disabled:i,onClick:()=>j(t.ref_id,!0),children:e.jsx(Wt,{})}),e.jsx(q,{disabled:i,onClick:k=>s(k,t.ref_id),children:e.jsx(Ht,{"data-testid":"ThreeDotsIcons"})})]})})})})]},t.name)},Ko=c.span` +`,Xo=({topic:t,onClick:s,onSearch:n,checkedStates:r,setCheckedStates:l,isMuteDisabled:i})=>{const[a,o]=R(k=>[k.ids,k.total]),[d,u]=h.useState(!1),[m,p]=h.useState(!1),b=ye(t.date_added_to_graph),j=async(k,v)=>{u(!0);try{await de(k,{node_type:t==null?void 0:t.node_type,node_data:{is_muted:v}}),R.setState({ids:a.filter(_=>_!==k),total:o-1})}catch(_){console.warn(_)}},y=k=>{l(v=>({...v,[k]:!v[k]}))},C=(k,v)=>{var _;(_=window.getSelection())!=null&&_.toString()?k.preventDefault():n(v.name)},w=t.edgeList.slice(0,1),$=t.edgeList.length-w.length,[S,A]=re.useState(null),O=k=>{A(k.currentTarget),p(!0)},L=()=>{p(!1)},H=!!S&&m,B=r[t.ref_id]?"visible":"";return e.jsxs(he,{className:r[t.ref_id]?"checked":"",children:[e.jsx(f,{children:e.jsx(Jo,{className:`checkbox-section ${B}`,"data-testid":"topic-check-box",onClick:()=>y(t.ref_id),children:e.jsx(Zo,{checked:r[t.ref_id],children:e.jsx(en,{children:r[t.ref_id]&&e.jsx(lt,{})})})})}),e.jsx(f,{onClick:k=>C(k,t),children:e.jsx(Qo,{children:t.name})}),e.jsx(f,{children:t.node_type}),e.jsx(f,{children:e.jsx(tn,{children:t.edgeCount})}),e.jsxs(f,{children:[e.jsx($e,{anchorEl:S,anchorOrigin:{vertical:"top",horizontal:"center"},disableRestoreFocus:!0,id:"mouse-over-popover",onClose:L,onMouseEnter:()=>p(!0),onMouseLeave:L,open:H,sx:{pointerEvents:"auto","& .MuiPaper-root":{backgroundColor:"rgba(0, 0, 0, 0.9)",borderRadius:"4px",width:"160px",maxHeight:"200px",overflowY:"scroll"}},transformOrigin:{vertical:"bottom",horizontal:"center"},children:e.jsx(Ee,{sx:{p:1.5,fontSize:"13px",fontWeight:400,lineHeight:"1.8",wordWrap:"break-word"},children:t.edgeList.join(", ")})}),w.join(", "),$>0&&e.jsx(Ee,{"aria-haspopup":"true","aria-owns":H?"mouse-over-popover":void 0,component:"span",onMouseEnter:O,onMouseLeave:L,sx:{cursor:"pointer"},children:",..."})]}),e.jsx(f,{children:e.jsx("span",{children:b})}),e.jsx(f,{className:"cell-center",children:e.jsx(g,{direction:"row",justify:"space-between",children:e.jsx("div",{className:"approve-wrapper",children:d?e.jsx(Ko,{children:e.jsx(z,{color:x.white,size:16})}):e.jsxs(g,{direction:"row",children:[t.is_muted?e.jsx(q,{className:"centered",disabled:i,onClick:()=>j(t.ref_id,!1),children:e.jsx(At,{})}):e.jsx(q,{className:"centered",disabled:i,onClick:()=>j(t.ref_id,!0),children:e.jsx(Ft,{})}),e.jsx(q,{disabled:i,onClick:k=>s(k,t.ref_id),children:e.jsx(Ot,{"data-testid":"ThreeDotsIcons"})})]})})})})]},t.name)},Ko=c.span` margin-left: 12px; `,Qo=c.span` cursor: pointer; :hover { text-decoration: underline; } -`,Zo=c.td` +`,Jo=c.td` visibility: hidden; cursor: pointer; display: flex; @@ -670,7 +670,7 @@ import{r as h,K as X,L as K,M as F,N as I,P as Q,G as Z,j as e,S as J,U as ee,X &.visible { visibility: visible; } -`,Jo=c.div` +`,Zo=c.div` width: 14px; height: 14px; border-radius: 4px; @@ -690,7 +690,7 @@ import{r as h,K as X,L as K,M as F,N as I,P as Q,G as Z,j as e,S as J,U as ee,X display: flex; align-items: center; justify-content: center; -`,sn=h.memo(Xo),on=({setShowMuteUnmute:t,showMuted:s,loading:n,onTopicEdit:r,onChangeFilter:l,checkedStates:i,setCheckedStates:a})=>{const{close:o}=M("sourcesTable"),[d,u]=h.useState(!1),[m,p]=re.useState(null),[b,j]=re.useState(""),y=Object.values(i).filter(T=>T).length,[C,w]=Lt(T=>[T.setSearchFormValue,T.setCurrentSearch]),[$,S,A]=R(T=>[T.data,T.ids,T.total]),O=h.useCallback((T,P)=>{p(T.currentTarget),j(P)},[]),L=()=>{p(null)},H=T=>{C(T),w(T),o()},B=T=>{r(b,T),L()},k=T=>{l(T)},v=!!m,_=v?"simple-popover":void 0,E=async()=>{u(!0);try{const T=Object.keys(i).map(async Y=>{if(i[Y])try{return await de(Y,{node_data:{is_muted:!s}}),Y}catch(ut){return console.error("Error updating node data:",ut),null}return null}),P=await Promise.all(T);R.setState({ids:S.filter(Y=>!P.includes(Y)),total:A-P.length}),a({}),u(!1)}catch(T){console.error("Error:",T),u(!1)}};return!n&&!$?e.jsxs(g,{children:[e.jsx(N,{children:"There is not any results for selected filters"}),e.jsx(je,{})]}):e.jsx(e.Fragment,{children:$&&!Object.keys($).length?e.jsxs(g,{children:[e.jsx(N,{children:"There is not any results for selected filters"}),e.jsx(je,{})]}):e.jsxs(xn,{align:"center",justify:d?"center":"flex-start",children:[e.jsxs(pe,{component:"table",children:[y>0?e.jsx(zs,{children:e.jsxs(G,{component:"tr",children:[e.jsx(f,{children:e.jsx(q,{onClick:()=>a({}),children:e.jsx(te,{})})}),e.jsx(f,{colSpan:12,children:e.jsxs(pn,{children:[e.jsxs(dn,{children:[e.jsx(cn,{children:y}),"selected"]}),e.jsx(f,{className:"empty"}),e.jsx(Ye,{onClick:E,role:"button",children:s?e.jsxs(e.Fragment,{children:[e.jsx(Le,{})," Unmute ALL"]}):e.jsxs(e.Fragment,{children:[e.jsx(Ie,{})," Mute ALL"]})}),e.jsx(f,{className:"empty"}),e.jsxs(Ye,{onClick:()=>B("mergeTopic"),children:[e.jsx(Re,{})," Merge"]})]})}),e.jsx(f,{className:"empty"})]})}):e.jsx(ue,{children:e.jsxs(G,{component:"tr",children:[e.jsx(f,{className:"empty"}),e.jsx(f,{children:e.jsxs(be,{onClick:()=>k($e),children:["Name ",e.jsx(ge,{})]})}),e.jsx(f,{children:"Type"}),e.jsx(f,{children:e.jsxs(be,{onClick:()=>k(Ut),children:["Count ",e.jsx(ge,{})]})}),e.jsx(f,{children:"Edge list"}),e.jsx(f,{children:e.jsxs(be,{onClick:()=>k(Gt),children:["Date ",e.jsx(ge,{})]})}),e.jsx(f,{children:e.jsx(g,{px:8,children:e.jsxs(nn,{onClick:t,children:[e.jsx(rn,{checked:s,children:e.jsx(an,{children:s&&e.jsx(st,{})})}),"Muted"]})})})]})}),(n||d)&&!$&&e.jsx(hn,{children:e.jsx(z,{color:x.white})}),$&&e.jsx("tbody",{children:S==null?void 0:S.map(T=>e.jsx(sn,{checkedStates:i,isMuteDisabled:Object.values(i).filter(P=>P).length>1,onClick:O,onSearch:H,setCheckedStates:a,topic:$[T]},T))})]}),b?e.jsxs(ln,{anchorEl:m,anchorOrigin:{vertical:"bottom",horizontal:"right"},id:_,onClose:L,open:v,transformOrigin:{vertical:"top",horizontal:"right"},children:[s?e.jsxs(V,{"data-testid":"unmute",onClick:()=>B("unMute"),children:[" ",e.jsx(Le,{"data-testid":""})," Unmute"]}):e.jsxs(V,{"data-testid":"mute",onClick:()=>B("mute"),children:[" ",e.jsx(Ie,{"data-testid":"VisibilityOff"})," Mute"]}),e.jsxs(V,{"data-testid":"rename",onClick:()=>B("editTopic"),children:[e.jsx(Pt,{"data-testid":"EditTopicIcon"})," Rename"]}),e.jsxs(V,{"data-testid":"merge",onClick:()=>B("mergeTopic"),children:[e.jsx(Re,{"data-testid":"MergeIcon"})," Merge"]}),e.jsxs(V,{"data-testid":"add_edge",onClick:()=>B("addEdge"),children:[e.jsx(Dt,{"data-testid":"AddCircleIcon"})," Add edge"]})]}):null]})})},nn=c.td` +`,sn=h.memo(Xo),on=({setShowMuteUnmute:t,showMuted:s,loading:n,onTopicEdit:r,onChangeFilter:l,checkedStates:i,setCheckedStates:a})=>{const{close:o}=E("sourcesTable"),[d,u]=h.useState(!1),[m,p]=re.useState(null),[b,j]=re.useState(""),y=Object.values(i).filter(T=>T).length,[C,w]=Lt(T=>[T.setSearchFormValue,T.setCurrentSearch]),[$,S,A]=R(T=>[T.data,T.ids,T.total]),O=h.useCallback((T,P)=>{p(T.currentTarget),j(P)},[]),L=()=>{p(null)},H=T=>{C(T),w(T),o()},B=T=>{r(b,T),L()},k=T=>{l(T)},v=!!m,_=v?"simple-popover":void 0,M=async()=>{u(!0);try{const T=Object.keys(i).map(async Y=>{if(i[Y])try{return await de(Y,{node_data:{is_muted:!s}}),Y}catch(ut){return console.error("Error updating node data:",ut),null}return null}),P=await Promise.all(T);R.setState({ids:S.filter(Y=>!P.includes(Y)),total:A-P.length}),a({}),u(!1)}catch(T){console.error("Error:",T),u(!1)}};return!n&&!$?e.jsxs(g,{children:[e.jsx(N,{children:"There is not any results for selected filters"}),e.jsx(je,{})]}):e.jsx(e.Fragment,{children:$&&!Object.keys($).length?e.jsxs(g,{children:[e.jsx(N,{children:"There is not any results for selected filters"}),e.jsx(je,{})]}):e.jsxs(xn,{align:"center",justify:d?"center":"flex-start",children:[e.jsxs(pe,{component:"table",children:[y>0?e.jsx(zs,{children:e.jsxs(G,{component:"tr",children:[e.jsx(f,{children:e.jsx(q,{onClick:()=>a({}),children:e.jsx(te,{})})}),e.jsx(f,{colSpan:12,children:e.jsxs(pn,{children:[e.jsxs(dn,{children:[e.jsx(cn,{children:y}),"selected"]}),e.jsx(f,{className:"empty"}),e.jsx(Ye,{onClick:M,role:"button",children:s?e.jsxs(e.Fragment,{children:[e.jsx(Le,{})," Unmute ALL"]}):e.jsxs(e.Fragment,{children:[e.jsx(Ie,{})," Mute ALL"]})}),e.jsx(f,{className:"empty"}),e.jsxs(Ye,{onClick:()=>B("mergeTopic"),children:[e.jsx(Re,{})," Merge"]})]})}),e.jsx(f,{className:"empty"})]})}):e.jsx(ue,{children:e.jsxs(G,{component:"tr",children:[e.jsx(f,{className:"empty"}),e.jsx(f,{children:e.jsxs(be,{onClick:()=>k(Te),children:["Name ",e.jsx(ge,{})]})}),e.jsx(f,{children:"Type"}),e.jsx(f,{children:e.jsxs(be,{onClick:()=>k(Dt),children:["Count ",e.jsx(ge,{})]})}),e.jsx(f,{children:"Edge list"}),e.jsx(f,{children:e.jsxs(be,{onClick:()=>k(Ut),children:["Date ",e.jsx(ge,{})]})}),e.jsx(f,{children:e.jsx(g,{px:8,children:e.jsxs(nn,{onClick:t,children:[e.jsx(rn,{checked:s,children:e.jsx(an,{children:s&&e.jsx(lt,{})})}),"Muted"]})})})]})}),(n||d)&&!$&&e.jsx(hn,{children:e.jsx(z,{color:x.white})}),$&&e.jsx("tbody",{children:S==null?void 0:S.map(T=>e.jsx(sn,{checkedStates:i,isMuteDisabled:Object.values(i).filter(P=>P).length>1,onClick:O,onSearch:H,setCheckedStates:a,topic:$[T]},T))})]}),b?e.jsxs(ln,{anchorEl:m,anchorOrigin:{vertical:"bottom",horizontal:"right"},id:_,onClose:L,open:v,transformOrigin:{vertical:"top",horizontal:"right"},children:[s?e.jsxs(V,{"data-testid":"unmute",onClick:()=>B("unMute"),children:[" ",e.jsx(Le,{"data-testid":""})," Unmute"]}):e.jsxs(V,{"data-testid":"mute",onClick:()=>B("mute"),children:[" ",e.jsx(Ie,{"data-testid":"VisibilityOff"})," Mute"]}),e.jsxs(V,{"data-testid":"rename",onClick:()=>B("editTopic"),children:[e.jsx(Wt,{"data-testid":"EditTopicIcon"})," Rename"]}),e.jsxs(V,{"data-testid":"merge",onClick:()=>B("mergeTopic"),children:[e.jsx(Re,{"data-testid":"MergeIcon"})," Merge"]}),e.jsxs(V,{"data-testid":"add_edge",onClick:()=>B("addEdge"),children:[e.jsx(Ht,{"data-testid":"AddCircleIcon"})," Add edge"]})]}):null]})})},nn=c.td` cursor: pointer; display: flex; align-items: center; @@ -728,7 +728,7 @@ import{r as h,K as X,L as K,M as F,N as I,P as Q,G as Z,j as e,S as J,U as ee,X background: ${x.BUTTON1_HOVER}; color: ${x.GRAY3}; } -`,ln=c(Te)` +`,ln=c($e)` && { z-index: 9999; } @@ -784,7 +784,7 @@ import{r as h,K as X,L as K,M as F,N as I,P as Q,G as Z,j as e,S as J,U as ee,X display: flex; align-items: center; justify-content: center; -`,un=()=>{const[t,s,n,r,l,i,a,o]=R(v=>[v.data,v.ids,v.total,v.setTopics,v.filters,v.setFilters,v.terminate,v.loading]),{open:d}=M("editTopic"),{open:u}=M("mergeTopic"),{open:m}=M("addEdge"),[p,b]=h.useState(null),[j,y]=h.useState([]),[C,w]=h.useState({}),$={editTopic:d,mergeTopic:u,addEdge:m},S=h.useRef([]);h.useEffect(()=>{s.length&&(S.current=s)},[s]),h.useEffect(()=>{(async()=>{try{await r()}catch{console.error("err")}})()},[r,l]);const A=async()=>{i({page:l.page+1})};h.useEffect(()=>()=>{a()},[a]);const O=v=>{i({sortBy:v})},L=()=>{b(null),y([])},H=async(v,_)=>{try{await de(v,{node_data:{is_muted:_==="mute"}}),R.setState({ids:s.filter(E=>E!==v),total:n-1})}catch(E){console.warn(E)}},B=async(v,_)=>{if(t)if(_==="mergeTopic")if(Object.values(C).filter(E=>E).length>0){const E=Object.entries(C).filter(([,T])=>T).map(([T])=>t[T]);y(E),u()}else y([t[v]]),b(t[v]),u();else["mute","unMute"].includes(_)&&await H(v,_),typeof $[_]=="function"&&$[_](),b(t[v])},k=v=>{i({...l,search:v})};return e.jsxs(e.Fragment,{children:[e.jsxs(gn,{direction:"column",justify:"flex-end",children:[e.jsx(ke,{align:"flex-start",direction:"row",justify:"space-between",children:e.jsx(N,{className:"title",children:"Topics"})}),e.jsx(mn,{"data-testid":"topic-search-container",children:e.jsx(xt,{activeIcon:e.jsx(te,{}),defaultIcon:e.jsx(Ze,{}),loading:o,loadingIcon:e.jsx(z,{color:x.lightGray,size:24}),onSearch:k,placeholder:"Search ..."})}),e.jsxs(fn,{align:"center",justify:o&&!t?"center":"flex-start",children:[e.jsx(on,{checkedStates:C,loading:o,onChangeFilter:O,onTopicEdit:B,setCheckedStates:w,setShowMuteUnmute:()=>i({is_muted:!l.is_muted}),showMuted:l.is_muted}),n>s.length?e.jsxs(W,{className:"load-more",disabled:o,onClick:A,children:["Load more",o&&e.jsx(z,{color:x.lightGray,size:10})]}):null]})]}),j.length>0&&e.jsx(Yo,{multiTopics:j,onClose:L}),p&&e.jsx(Lo,{onClose:L,topic:p}),p&&e.jsx(So,{onClose:L,topic:p})]})},gn=c(g)` +`,un=()=>{const[t,s,n,r,l,i,a,o]=R(v=>[v.data,v.ids,v.total,v.setTopics,v.filters,v.setFilters,v.terminate,v.loading]),{open:d}=E("editTopic"),{open:u}=E("mergeTopic"),{open:m}=E("addEdge"),[p,b]=h.useState(null),[j,y]=h.useState([]),[C,w]=h.useState({}),$={editTopic:d,mergeTopic:u,addEdge:m},S=h.useRef([]);h.useEffect(()=>{s.length&&(S.current=s)},[s]),h.useEffect(()=>{(async()=>{try{await r()}catch{console.error("err")}})()},[r,l]);const A=async()=>{i({page:l.page+1})};h.useEffect(()=>()=>{a()},[a]);const O=v=>{i({sortBy:v})},L=()=>{b(null),y([])},H=async(v,_)=>{try{await de(v,{node_data:{is_muted:_==="mute"}}),R.setState({ids:s.filter(M=>M!==v),total:n-1})}catch(M){console.warn(M)}},B=async(v,_)=>{if(t)if(_==="mergeTopic")if(Object.values(C).filter(M=>M).length>0){const M=Object.entries(C).filter(([,T])=>T).map(([T])=>t[T]);y(M),u()}else y([t[v]]),b(t[v]),u();else["mute","unMute"].includes(_)&&await H(v,_),typeof $[_]=="function"&&$[_](),b(t[v])},k=v=>{i({...l,search:v})};return e.jsxs(e.Fragment,{children:[e.jsxs(gn,{direction:"column",justify:"flex-end",children:[e.jsx(ke,{align:"flex-start",direction:"row",justify:"space-between",children:e.jsx(N,{className:"title",children:"Topics"})}),e.jsx(mn,{"data-testid":"topic-search-container",children:e.jsx(xt,{activeIcon:e.jsx(te,{}),defaultIcon:e.jsx(Je,{}),loading:o,loadingIcon:e.jsx(z,{color:x.lightGray,size:24}),onSearch:k,placeholder:"Search ..."})}),e.jsxs(fn,{align:"center",justify:o&&!t?"center":"flex-start",children:[e.jsx(on,{checkedStates:C,loading:o,onChangeFilter:O,onTopicEdit:B,setCheckedStates:w,setShowMuteUnmute:()=>i({is_muted:!l.is_muted}),showMuted:l.is_muted}),n>s.length?e.jsxs(W,{className:"load-more",disabled:o,onClick:A,children:["Load more",o&&e.jsx(z,{color:x.lightGray,size:10})]}):null]})]}),j.length>0&&e.jsx(Yo,{multiTopics:j,onClose:L}),p&&e.jsx(Lo,{onClose:L,topic:p}),p&&e.jsx(So,{onClose:L,topic:p})]})},gn=c(g)` flex: 1; .title { @@ -821,7 +821,7 @@ import{r as h,K as X,L as K,M as F,N as I,P as Q,G as Z,j as e,S as J,U as ee,X width: 100%; `,mn=c(g)` margin: 0 0 16px 36px; -`,bn=[{label:it,component:Fs},{label:Yt,component:lo},{label:at,component:Ks},{label:rt,component:un}],jn=t=>{const{children:s,value:n,index:r,...l}=t;return n===r?e.jsx(Tn,{"aria-labelledby":`simple-tab-${r}`,hidden:n!==r,id:`simple-tabpanel-${r}`,role:"tabpanel",...l,children:s}):null};function yn(t){return{id:`simple-tab-${t}`,"aria-controls":`simple-tabpanel-${t}`}}const wn=()=>{const[t,s]=h.useState(0),[n]=Xe(o=>[o.isAdmin]),[r]=It(o=>[o.queuedSourcesFeatureFlag]),l=Rt(),i=(o,d)=>{s(d)},a=bn.filter(({label:o})=>o===rt?n:o===at?n&&r:o===it?l:!0);return e.jsxs($n,{"data-testid":"sources-table",direction:"column",children:[e.jsx(Cn,{"aria-label":"sources tabs",onChange:i,value:t,children:a.map((o,d)=>e.jsx(vn,{color:x.white,disableRipple:!0,label:o.label,...yn(d)},o.label))}),a.map((o,d)=>e.jsx(jn,{index:d,value:t,children:e.jsx(o.component,{})},o.label))]})},Cn=c(qt)` +`,bn=[{label:ot,component:Fs},{label:Gt,component:lo},{label:st,component:Ks},{label:tt,component:un}],jn=t=>{const{children:s,value:n,index:r,...l}=t;return n===r?e.jsx(Tn,{"aria-labelledby":`simple-tab-${r}`,hidden:n!==r,id:`simple-tabpanel-${r}`,role:"tabpanel",...l,children:s}):null};function yn(t){return{id:`simple-tab-${t}`,"aria-controls":`simple-tabpanel-${t}`}}const wn=()=>{const[t,s]=h.useState(0),[n]=Xe(o=>[o.isAdmin]),[r]=It(o=>[o.queuedSourcesFeatureFlag]),l=Rt(),i=(o,d)=>{s(d)},a=bn.filter(({label:o})=>o===tt?n:o===st?n&&r:o===ot?l:!0);return e.jsxs($n,{"data-testid":"sources-table",direction:"column",children:[e.jsx(Cn,{"aria-label":"sources tabs",onChange:i,value:t,children:a.map((o,d)=>e.jsx(vn,{color:x.white,disableRipple:!0,label:o.label,...yn(d)},o.label))}),a.map((o,d)=>e.jsx(jn,{index:d,value:t,children:e.jsx(o.component,{})},o.label))]})},Cn=c(qt)` && { background: rgba(0, 0, 0, 0.2); border-radius: 9px 9px 0 0; @@ -876,4 +876,4 @@ import{r as h,K as X,L as K,M as F,N as I,P as Q,G as Z,j as e,S as J,U as ee,X @media (max-width: 768px) { padding: 3px; } -`,On=()=>{const{close:t}=M("sourcesTable"),{visible:s}=M("addContent");return s?null:e.jsx(ce,{background:"BG1",id:"sourcesTable",kind:"large",noWrap:!0,onClose:t,preventOutsideClose:!0,children:e.jsx(wn,{})})};export{On as SourcesTableModal}; +`,Dn=()=>{const{close:t}=E("sourcesTable"),{visible:s}=E("addContent");return s?null:e.jsx(ce,{background:"BG1",id:"sourcesTable",kind:"large",noWrap:!0,onClose:t,preventOutsideClose:!0,children:e.jsx(wn,{})})};export{Dn as SourcesTableModal}; diff --git a/build/assets/index-287bd287.js b/build/assets/index-9509df5b.js similarity index 75% rename from build/assets/index-287bd287.js rename to build/assets/index-9509df5b.js index 2c1e4085b..991a73422 100644 --- a/build/assets/index-287bd287.js +++ b/build/assets/index-9509df5b.js @@ -1,4 +1,4 @@ -import{ad as Q,s as g,a as b,F as t,T,b as V,r as y,j as e,B as C,aY as ee,b6 as te,al as se,aW as L,aX as F,bb as B,bc as ne,q as oe,bd as re,be as ie,bf as ae,e as O,t as ce,u as le,aU as de,aV as I,aZ as pe,v as xe,af as me,ae as ue,b9 as he}from"./index-1d805415.js";import{a3 as fe,f as ye}from"./index-3ac851f3.js";import{f as ge}from"./index-b82a9f52.js";import{C as U}from"./ClipLoader-9eb1180c.js";import{p as q}from"./index-5fe8c70d.js";import{A as je}from"./index-f3df532f.js";import{c as we}from"./index-64f1c910.js";import"./three.module-71ec604c.js";import"./index-5b7bb80c.js";import"./Stack-2f0ef3f5.js";import"./createSvgIcon-b68c7390.js";import"./TextareaAutosize-3b102137.js";const be=async(o,a,c="")=>await Q.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{aa as Z,s as g,a as b,F as t,T,g as V,r as y,j as e,B as C,aV as ee,b3 as te,ai as se,aT as L,aU as F,b8 as B,b9 as ne,h as oe,ba as re,bb as ie,bc as ae,a0 as O,i as ce,u as le,aR as de,aS as I,aW as pe,k as xe,ac as me,ab as ue,b6 as he}from"./index-2353781d.js";import{e as fe}from"./index-068043a5.js";import{C as ye}from"./CheckIcon-bcbb5853.js";import{f as ge}from"./index-717b1eb9.js";import{C as U}from"./ClipLoader-c90857c8.js";import{p as R}from"./index-5fe8c70d.js";import{A as je}from"./index-da8a239d.js";import{c as we}from"./index-64f1c910.js";import"./three.module-71ec604c.js";import"./index-33375362.js";import"./Stack-ff0fb8f6.js";import"./createSvgIcon-09ff14f6.js";import"./TextareaAutosize-c42da1c8.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(q,{children:e.jsx(U,{color:b.lightGray,size:12})}):e.jsxs(q,{children:[" ",e.jsx(ye,{})]}),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}; @@ -71,7 +71,7 @@ import{ad as Q,s as g,a as b,F as t,T,b as V,r as y,j as e,B as C,aY as ee,b6 as color: ${b.primaryRed}; position: relative; margin-top: 20px; -`,R=g.span` +`,q=g.span` display: inline-flex; align-items: center; justify-content: center; @@ -85,7 +85,7 @@ import{ad as Q,s as g,a as b,F as t,T,b as V,r as y,j as e,B as C,aY as ee,b6 as font-size: 22px; font-weight: 600; font-family: 'Barlow'; -`,Ie=({handleSelectType:o,skipToStep:a,nodeType:c})=>{const[m,d]=y.useState(!1),[r,x]=y.useState(),{watch:l,setValue:h,formState:{isValid:w}}=se();y.useEffect(()=>{(async()=>{d(!0);const u=await ne(c),_=(u.attributes&&typeof u.attributes=="object"?q(u.attributes):q(u)).filter(A=>A.key!=="node_key");x(_),d(!1)})()},[c,l]);const f=s=>s.charAt(0).toUpperCase()+s.slice(1).replace(/_/g," "),n=r?[...r].sort((s,u)=>s.required&&!u.required?-1:!s.required&&u.required?1:0):[],j=()=>{o(""),a("sourceType")},p=()=>{r==null||r.forEach(({key:s,required:u})=>{if(u){const S=l(s);typeof S=="string"&&h(s,S.trim(),{shouldValidate:!0})}}),w&&!m&&(r!=null&&r.every(s=>!s.required||l(s.key)))&&a("setBudget")};return e.jsxs(t,{children:[e.jsx(t,{align:"center",direction:"row",justify:"space-between",mb:18,children:e.jsx(t,{align:"center",direction:"row",children:e.jsx(_e,{children:"Set Attributes"})})}),e.jsx(Ae,{children:m?e.jsx(t,{style:{margin:"auto"},children:e.jsx(U,{color:b.lightGray})}):e.jsx(t,{className:"input__wrapper",children:n==null?void 0:n.map(({key:s,required:u})=>e.jsxs(Ee,{children:[e.jsx(T,{children:f(s)}),e.jsx(L,{id:"item-name",maxLength:50,name:s,placeholder:u?"Required":"Optional",rules:{...u?{...F,pattern:{message:"No leading whitespace allowed",value:B}}:{}}})]},s))})}),e.jsxs(t,{direction:"row",children:[e.jsx(t,{grow:1,children:e.jsx(C,{color:"secondary",onClick:j,size:"large",variant:"contained",children:"Prev"})}),e.jsx(t,{grow:1,ml:20,children:e.jsx(C,{color:"secondary",disabled:!w||m||(r==null?void 0:r.some(s=>s.required&&!l(s.key))),onClick:p,size:"large",variant:"contained",children:"Next"})})]})]})},_e=g(T)` +`,Ie=({handleSelectType:o,skipToStep:a,nodeType:c})=>{const[m,d]=y.useState(!1),[r,x]=y.useState(),{watch:l,setValue:h,formState:{isValid:w}}=se();y.useEffect(()=>{(async()=>{d(!0);const u=await ne(c),_=(u.attributes&&typeof u.attributes=="object"?R(u.attributes):R(u)).filter(A=>A.key!=="node_key");x(_),d(!1)})()},[c,l]);const f=s=>s.charAt(0).toUpperCase()+s.slice(1).replace(/_/g," "),n=r?[...r].sort((s,u)=>s.required&&!u.required?-1:!s.required&&u.required?1:0):[],j=()=>{o(""),a("sourceType")},p=()=>{r==null||r.forEach(({key:s,required:u})=>{if(u){const S=l(s);typeof S=="string"&&h(s,S.trim(),{shouldValidate:!0})}}),w&&!m&&(r!=null&&r.every(s=>!s.required||l(s.key)))&&a("setBudget")};return e.jsxs(t,{children:[e.jsx(t,{align:"center",direction:"row",justify:"space-between",mb:18,children:e.jsx(t,{align:"center",direction:"row",children:e.jsx(_e,{children:"Set Attributes"})})}),e.jsx(Ae,{children:m?e.jsx(t,{style:{margin:"auto"},children:e.jsx(U,{color:b.lightGray})}):e.jsx(t,{className:"input__wrapper",children:n==null?void 0:n.map(({key:s,required:u})=>e.jsxs(Ee,{children:[e.jsx(T,{children:f(s)}),e.jsx(L,{id:"item-name",maxLength:50,name:s,placeholder:u?"Required":"Optional",rules:{...u?{...F,pattern:{message:"No leading whitespace allowed",value:B}}:{}}})]},s))})}),e.jsxs(t,{direction:"row",children:[e.jsx(t,{grow:1,children:e.jsx(C,{color:"secondary",onClick:j,size:"large",variant:"contained",children:"Prev"})}),e.jsx(t,{grow:1,ml:20,children:e.jsx(C,{color:"secondary",disabled:!w||m||(r==null?void 0:r.some(s=>s.required&&!l(s.key))),onClick:p,size:"large",variant:"contained",children:"Next"})})]})]})},_e=g(T)` font-size: 22px; font-weight: 600; font-family: 'Barlow'; @@ -120,4 +120,4 @@ import{ad as Q,s as g,a as b,F as t,T,b as V,r as y,j as e,B as C,aY as ee,b6 as font-size: 22px; font-weight: 600; font-family: 'Barlow'; -`,$e=async(o,a,c)=>{var f;const m=Object.entries(o).reduce((n,[j,p])=>(p!=null&&p!==""&&(n[j]=p),n),{}),{nodeType:d,typeName:r,sourceLink:x,...l}=m;let h="",w="";d!=="Create custom type"&&await me(async()=>{const n=await ue.enable();w=n==null?void 0:n.pubkey,h=await he()});try{const n=await Se(d,l,x,r,h,w);c(o,(f=n==null?void 0:n.data)==null?void 0:f.ref_id)}catch(n){let j=I;if(n.status===400){const p=await n.json();j=p.message||p.errorCode||(p==null?void 0:p.status)||I}else n instanceof Error&&(j=n.message);throw new Error(j)}},Xe=()=>{const[o,a]=y.useState("sourceType"),{close:c,visible:m}=O("addItem"),{open:d}=O("addType"),{setBudget:r}=V(i=>i),x=ce({mode:"onChange"}),{watch:l,setValue:h,reset:w}=x,[f,n]=y.useState(!1),[j,p]=y.useState(""),{addNewNode:s}=le(i=>i),[u]=ye(i=>[i.setSelectedNode]);y.useEffect(()=>()=>{a("sourceType"),w()},[m,w]);const S=l("nodeType"),_=l("typeName"),A=l("sourceLink"),W=l("type");l("title");const M=()=>{c()},E=i=>{p(""),a(i)},Y=(i,N)=>{const v=N||`new-id-${Math.random()}`,k=i.nodeType.toLocaleLowerCase(),X=Object.entries(i).reduce((D,[Z,z])=>(z!=null&&z!==""&&(D[Z]=z),D),{}),$={name:i.typeName??i.name,type:k,label:i.typeName??i.name,node_type:k,id:v,edge_count:0,ref_id:v,x:Math.random(),y:Math.random(),z:Math.random(),date:parseInt((new Date().getTime()/1e3).toFixed(0),10),weight:4,...i.source_link?{source_link:i.source_link}:{},properties:{...X}};s({nodes:[$],edges:[]}),u($)},J=x.handleSubmit(async i=>{p(""),n(!0);try{await $e(i,r,Y),de("Item Added"),M()}catch(N){let v=I;if((N==null?void 0:N.status)===400){const k=await N.json();v=k.errorCode||(k==null?void 0:k.status)||I}else N instanceof Error&&(v=N.message);p(String(v))}finally{n(!1)}}),P=i=>{i==="Create custom type"?d():h("nodeType",i)},H={sourceType:e.jsx(Me,{allowNextStep:!!S,onSelectType:P,selectedType:S,skipToStep:E}),source:e.jsx(Le,{name:_,skipToStep:E,sourceLink:A||"",type:S}),setBudget:e.jsx(Ne,{error:j,loading:f,onClick:()=>null}),createConfirmation:e.jsx(Be,{onclose:M,type:W}),setAttribues:e.jsx(Ie,{handleSelectType:P,nodeType:S,skipToStep:E})},K="small";return e.jsx(pe,{id:"addItem",kind:K,onClose:c,preventOutsideClose:!0,children:e.jsx(xe,{...x,children:e.jsx("form",{id:"add-node-form",onSubmit:J,children:H[o]})})})};export{Xe as AddItemModal}; +`,$e=async(o,a,c)=>{var f;const m=Object.entries(o).reduce((n,[j,p])=>(p!=null&&p!==""&&(n[j]=p),n),{}),{nodeType:d,typeName:r,sourceLink:x,...l}=m;let h="",w="";d!=="Create custom type"&&await me(async()=>{const n=await ue.enable();w=n==null?void 0:n.pubkey,h=await he()});try{const n=await Se(d,l,x,r,h,w);c(o,(f=n==null?void 0:n.data)==null?void 0:f.ref_id)}catch(n){let j=I;if(n.status===400){const p=await n.json();j=p.message||p.errorCode||(p==null?void 0:p.status)||I}else n instanceof Error&&(j=n.message);throw new Error(j)}},Xe=()=>{const[o,a]=y.useState("sourceType"),{close:c,visible:m}=O("addItem"),{open:d}=O("addType"),{setBudget:r}=V(i=>i),x=ce({mode:"onChange"}),{watch:l,setValue:h,reset:w}=x,[f,n]=y.useState(!1),[j,p]=y.useState(""),{addNewNode:s}=le(i=>i),[u]=fe(i=>[i.setSelectedNode]);y.useEffect(()=>()=>{a("sourceType"),w()},[m,w]);const S=l("nodeType"),_=l("typeName"),A=l("sourceLink"),W=l("type");l("title");const M=()=>{c()},E=i=>{p(""),a(i)},Y=(i,N)=>{const v=N||`new-id-${Math.random()}`,k=i.nodeType.toLocaleLowerCase(),Q=Object.entries(i).reduce((D,[X,z])=>(z!=null&&z!==""&&(D[X]=z),D),{}),$={name:i.typeName??i.name,type:k,label:i.typeName??i.name,node_type:k,id:v,edge_count:0,ref_id:v,x:Math.random(),y:Math.random(),z:Math.random(),date:parseInt((new Date().getTime()/1e3).toFixed(0),10),weight:4,...i.source_link?{source_link:i.source_link}:{},properties:{...Q}};s({nodes:[$],edges:[]}),u($)},J=x.handleSubmit(async i=>{p(""),n(!0);try{await $e(i,r,Y),de("Item Added"),M()}catch(N){let v=I;if((N==null?void 0:N.status)===400){const k=await N.json();v=k.errorCode||(k==null?void 0:k.status)||I}else N instanceof Error&&(v=N.message);p(String(v))}finally{n(!1)}}),P=i=>{i==="Create custom type"?d():h("nodeType",i)},H={sourceType:e.jsx(Me,{allowNextStep:!!S,onSelectType:P,selectedType:S,skipToStep:E}),source:e.jsx(Le,{name:_,skipToStep:E,sourceLink:A||"",type:S}),setBudget:e.jsx(Ne,{error:j,loading:f,onClick:()=>null}),createConfirmation:e.jsx(Be,{onclose:M,type:W}),setAttribues:e.jsx(Ie,{handleSelectType:P,nodeType:S,skipToStep:E})},K="small";return e.jsx(pe,{id:"addItem",kind:K,onClose:c,preventOutsideClose:!0,children:e.jsx(xe,{...x,children:e.jsx("form",{id:"add-node-form",onSubmit:J,children:H[o]})})})};export{Xe as AddItemModal}; diff --git a/build/assets/index-964e9ac6.js b/build/assets/index-964e9ac6.js new file mode 100644 index 000000000..55e8f1656 --- /dev/null +++ b/build/assets/index-964e9ac6.js @@ -0,0 +1,673 @@ +import{A as q3,C as $3,D as e5,E as t5,c as n5,F as r5,M as i5,a as o5,P as s5,S as l5,T as a5,b as u5,V as c5}from"./VisibilityOn-aa220caf.js";import{a as f5,A as d5,C as h5,F as p5,M as m5,b as g5,S as v5}from"./SourcesTableIcon-54a999e3.js";import{j as y,C as C5,I as y5,r as T,a3 as d0,G as q1,bH as h0,x as e1,bI as x5,a as fi,bJ as w5,bK as S5}from"./index-2353781d.js";import{A as _5,a as k5,e as E5,f as M5,B as L5,g as T5,d as P5,n as b5,o as j5,c as U5,C as I5,l as R5,D as A5,E as O5,F as F5,G as D5,i as B5,H as H5,L as z5,M as V5,N as N5,R as G5,m as W5,j as Z5,k as X5,h as Q5,b as Y5,S as K5,V as J5}from"./VolumeIcon-750bd7e3.js";import{A as q5,F as $5,N as eu}from"./NodeCircleIcon-6e372d93.js";import{B as tu,S as nu}from"./SoundIcon-a0618346.js";import{C as ru,c as iu,d as ou}from"./index-068043a5.js";import{C as su}from"./CheckIcon-bcbb5853.js";import{D as lu}from"./DeleteNodeIcon-be8a9a17.js";import{E as au}from"./EditNodeIcon-665ec0f5.js";import{P as uu,S as cu}from"./SearchIcon-3c9f4418.js";import{S as fu}from"./SucessFeedBackIcon-edca1d93.js";import{A as Is,H as vl,I as du,U as hu,d as p0,j as pu,C as xi,J as mu,O as Cl,x as yl,K as Uo,N as Rs,X as gu,Y as vu,Z as Cu,_ as yu,$ as xu,a0 as wu,a1 as Su,V as ct,b as $1,a2 as _u,h as ku,g as xl,r as Ao,a3 as m0,e as el,a4 as tl,a5 as Tr,a6 as Eu,s as wl,a7 as Mu,a8 as nl,a9 as o2,aa as Lu,k as g0,ab as Tu,l as wi,ac as Ir,ad as v0,ae as Pu,af as bu,ag as ju,ah as Uu,ai as Iu,aj as s2,ak as Ru,al as Au,M as Ou,q as Fu,am as Sl,an as l2,ao as Z1,ap as Du,i as As}from"./three.module-71ec604c.js";const Bu=o=>y.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:y.jsxs("g",{id:"grain",children:[y.jsx("mask",{id:"mask0_1551_45",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:y.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),y.jsx("g",{mask:"url(#mask0_1551_45)",children:y.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"})})]})}),Hu=o=>y.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:y.jsxs("g",{id:"public",children:[y.jsx("mask",{id:"mask0_1551_36",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:y.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),y.jsx("g",{mask:"url(#mask0_1551_36)",children:y.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"})})]})}),zu=o=>y.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 22 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:y.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"})}),Vu=o=>y.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:y.jsxs("g",{id:"Nodes",children:[y.jsx("mask",{id:"mask0_1506_141",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"16",height:"16",children:y.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),y.jsx("g",{mask:"url(#mask0_1506_141)",children:y.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"})})]})}),Nu=o=>y.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:y.jsxs("g",{id:"add_link",children:[y.jsx("mask",{id:"mask0_2659_52",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:y.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),y.jsx("g",{mask:"url(#mask0_2659_52)",children:y.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"})})]})}),Gu=o=>y.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[y.jsx("mask",{id:"mask0_7541_21694",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"15",children:y.jsx("rect",{y:"0.25",width:"1em",height:"1em",fill:"currentColor"})}),y.jsx("g",{mask:"url(#mask0_7541_21694)",children:y.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"})})]}),Wu=o=>y.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:y.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"})}),Zu=o=>y.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:y.jsxs("g",{id:"Audio",children:[y.jsx("mask",{id:"mask0_1506_147",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"16",height:"16",children:y.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),y.jsx("g",{mask:"url(#mask0_1506_147)",children:y.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"})})]})}),Xu=o=>y.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[y.jsx("mask",{id:"mask0_9540_45",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:y.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),y.jsx("g",{mask:"url(#mask0_9540_45)",children:y.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"})})]}),Qu=o=>y.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[y.jsx("mask",{id:"mask0_7541_21901",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:y.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),y.jsx("g",{mask:"url(#mask0_7541_21901)",children:y.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"})})]}),Yu=o=>y.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:y.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"})}),Ku=o=>y.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 32 32",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:y.jsxs("g",{id:"cancel",children:[y.jsx("mask",{id:"mask0_1264_3381",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"32",height:"32",children:y.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),y.jsx("g",{mask:"url(#mask0_1264_3381)",children:y.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"})})]})}),Ju=o=>y.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 11 8",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:y.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"})}),qu=o=>y.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[y.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"}),y.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"})]}),$u=o=>y.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 8 8",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:y.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"})}),e4=o=>y.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[y.jsx("mask",{id:"mask0_7640_4256",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:y.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),y.jsx("g",{mask:"url(#mask0_7640_4256)",children:y.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"})})]}),t4=o=>y.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[y.jsx("mask",{id:"mask0_7541_22054",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:y.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),y.jsx("g",{mask:"url(#mask0_7541_22054)",children:y.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"})})]}),n4=o=>y.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[y.jsx("mask",{id:"mask0_9540_27",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:y.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),y.jsx("g",{mask:"url(#mask0_9540_27)",children:y.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"})})]}),r4=o=>y.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 23 22",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[y.jsx("mask",{id:"mask0_8954_27793",maskUnits:"userSpaceOnUse",x:"10",y:"-3",width:"16",height:"16",children:y.jsx("rect",{x:"10",y:"-3",width:"1em",height:"1em",fill:"currentColor"})}),y.jsx("g",{mask:"url(#mask0_8954_27793)",children:y.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"})}),y.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"})]}),i4=o=>y.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 34 34",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[y.jsx("mask",{id:"mask0_2777_4506",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"34",height:"34",children:y.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),y.jsxs("g",{mask:"url(#mask0_2777_4506)",children:[y.jsx("mask",{id:"mask1_2777_4506",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"34",height:"34",children:y.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),y.jsx("g",{mask:"url(#mask1_2777_4506)",children:y.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"})})]})]}),o4=o=>y.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[y.jsx("mask",{id:"mask0_7541_22108",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:y.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),y.jsx("g",{mask:"url(#mask0_7541_22108)",children:y.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"})})]}),s4=o=>y.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:y.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"})}),l4=o=>y.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:y.jsxs("g",{id:"Episode",children:[y.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"}),y.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"}),y.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"})]})}),a4=o=>y.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[y.jsx("mask",{id:"mask0_9540_31",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:y.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),y.jsx("g",{mask:"url(#mask0_9540_31)",children:y.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"})})]}),u4=o=>y.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:y.jsxs("g",{id:"captive_portal",children:[y.jsx("mask",{id:"mask0_8513_13265",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:y.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),y.jsxs("g",{mask:"url(#mask0_8513_13265)",children:[y.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"}),y.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"})]})]})}),c4=o=>y.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 18 19",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:y.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"})}),f4=o=>y.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[y.jsx("mask",{id:"mask0_7541_22315",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"15",children:y.jsx("rect",{y:"0.25",width:"1em",height:"1em",fill:"currentColor"})}),y.jsx("g",{mask:"url(#mask0_7541_22315)",children:y.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"})})]}),d4=o=>y.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[y.jsx("mask",{id:"mask0_9540_23",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:y.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),y.jsx("g",{mask:"url(#mask0_9540_23)",children:y.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"})})]}),h4=o=>y.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[y.jsx("mask",{id:"mask0_7541_22375",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"15",children:y.jsx("rect",{y:"0.25",width:"1em",height:"1em",fill:"currentColor"})}),y.jsx("g",{mask:"url(#mask0_7541_22375)",children:y.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"})})]}),p4=o=>y.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[y.jsx("mask",{id:"mask0_7541_22441",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:y.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),y.jsx("g",{mask:"url(#mask0_7541_22441)",children:y.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"})})]}),m4=o=>y.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[y.jsx("mask",{id:"mask0_7541_22444",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:y.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),y.jsx("g",{mask:"url(#mask0_7541_22444)",children:y.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"})})]}),g4=o=>y.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 18 18",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:y.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"})}),v4=o=>y.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[y.jsx("mask",{id:"mask0_9540_19",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:y.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),y.jsx("g",{mask:"url(#mask0_9540_19)",children:y.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"})})]}),C4=o=>y.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[y.jsx("mask",{id:"mask0_7541_22519",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"15",children:y.jsx("rect",{y:"0.25",width:"1em",height:"1em",fill:"currentColor"})}),y.jsx("g",{mask:"url(#mask0_7541_22519)",children:y.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"})})]}),y4=o=>y.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[y.jsx("mask",{id:"mask0_9540_49",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:y.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),y.jsx("g",{mask:"url(#mask0_9540_49)",children:y.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"})})]}),x4=o=>y.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:y.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"})}),w4=o=>y.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 22 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:y.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"})}),S4=o=>y.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[y.jsx("mask",{id:"mask0_7640_2772",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:y.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),y.jsx("g",{mask:"url(#mask0_7640_2772)",children:y.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"})})]}),_4=o=>y.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[y.jsx("mask",{id:"mask0_7541_22741",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"15",children:y.jsx("rect",{y:"0.25",width:"1em",height:"1em",fill:"currentColor"})}),y.jsx("g",{mask:"url(#mask0_7541_22741)",children:y.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"})})]}),k4=o=>y.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[y.jsx("mask",{id:"mask0_7640_3741",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:y.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),y.jsx("g",{mask:"url(#mask0_7640_3741)",children:y.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"})})]}),E4=o=>y.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[y.jsx("mask",{id:"mask0_7541_22801",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"15",children:y.jsx("rect",{y:"0.25",width:"1em",height:"1em",fill:"currentColor"})}),y.jsx("g",{mask:"url(#mask0_7541_22801)",children:y.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"})})]}),M4=o=>y.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[y.jsx("mask",{id:"mask0_7541_22828",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"15",children:y.jsx("rect",{y:"0.25",width:"1em",height:"1em",fill:"currentColor"})}),y.jsx("g",{mask:"url(#mask0_7541_22828)",children:y.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"})})]}),L4=o=>y.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[y.jsx("mask",{id:"mask0_7541_22840",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"15",children:y.jsx("rect",{y:"0.25",width:"1em",height:"1em",fill:"currentColor"})}),y.jsx("g",{mask:"url(#mask0_7541_22840)",children:y.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"})})]}),T4=o=>y.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[y.jsx("mask",{id:"mask0_9540_35",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:y.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),y.jsx("g",{mask:"url(#mask0_9540_35)",children:y.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"})})]}),P4=o=>y.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:y.jsxs("g",{id:"sensors",children:[y.jsx("mask",{id:"mask0_1506_161",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"16",height:"16",children:y.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),y.jsx("g",{mask:"url(#mask0_1506_161)",children:y.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"})})]})}),b4=o=>y.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:y.jsxs("g",{id:"shield_person",children:[y.jsx("mask",{id:"mask0_1543_22988",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:y.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),y.jsx("g",{mask:"url(#mask0_1543_22988)",children:y.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"})})]})}),j4=o=>y.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[y.jsx("mask",{id:"mask0_9529_33",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:y.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),y.jsx("g",{mask:"url(#mask0_9529_33)",children:y.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"})})]}),U4=o=>y.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[y.jsx("mask",{id:"mask0_7541_22378",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"15",children:y.jsx("rect",{y:"0.25",width:"1em",height:"1em",fill:"currentColor"})}),y.jsx("g",{mask:"url(#mask0_7541_22378)",children:y.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"})})]}),I4=o=>y.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:y.jsxs("g",{id:"Twitter",children:[y.jsx("mask",{id:"mask0_1506_167",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"16",height:"16",children:y.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),y.jsx("g",{mask:"url(#mask0_1506_167)",children:y.jsx("g",{id:"X",children:y.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"})})})]})}),R4=o=>y.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:y.jsxs("g",{id:"Video",children:[y.jsx("mask",{id:"mask0_1506_153",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"16",height:"16",children:y.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),y.jsx("g",{mask:"url(#mask0_1506_153)",children:y.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"})})]})}),N8={AddCircleIcon:q3,AddContentIcon:f5,AddLinkIcon:Nu,AddSourceIcon:d5,AiPauseIcon:_5,AiPlayIcon:k5,AiSummaryIcon:E5,AndroidIcon:Gu,ArrowBackIcon:M5,ArrowForwardIcon:Wu,ArrowRight:q5,AudioIcon:Zu,BitcoinIcon:Xu,BoostIcon:L5,BrowseGalleryIcon:T5,BubbleChartIcon:tu,BudgetIcon:zu,BuildIcon:Qu,CalendarIcon:Yu,CameraCenterIcon:ru,CancelIcon:Ku,CheckIcon:su,CheckedIcon:Ju,ChevronDownIcon:P5,ChevronLeftIcon:b5,ChevronRightIcon:j5,ChevronUpIcon:U5,ChipIcon:qu,ClearIcon:C5,CloseIcon:I5,ColorPickerIcon:$u,CommunitiesIcon:h5,CompassIcon:e4,ConstructionIcon:t4,ContentIcon:$3,CopyIcon:R5,CorporationIcon:n4,CreateEdgeIcon:r4,DefaultShowIcon:i4,DeleteIcon:e5,DeleteNodeIcon:lu,DesignServicesIcon:o4,DocumentIcon:s4,DownloadIcon:A5,EditIcon:t5,EditNodeIcon:au,EditTopicIcon:n5,EpisodeIcon:l4,EventIcon:a4,ExitFullScreen:O5,ExploreIcon:u4,FamilyHistoryIcon:c4,FeedbackIcon:p5,FilterOffIcon:r5,FingerprintIcon:f4,FlipIcon:$5,FortIcon:d4,FullScreenIcon:F5,FunctionIcon:h4,GlobeIcon:D5,GrainIcon:Bu,HandymanIcon:p4,HardwareIcon:m4,HashTag:B5,HashtagIcon:H5,HelpIcon:g4,HomeIcon:v4,InfoIcon:y5,JoystickIcon:C4,LinkIcon:z5,MenuIcon:m5,MergeIcon:i5,MoneyIcon:y4,MuteVolumeIcon:V5,NodeCircleIcon:eu,NodesIcon:Vu,NotesIcon:N5,OrganizationIcon:x4,PauseIcon:iu,PersonAdd:w4,PersonIcon:S4,PhoneIcon:_4,PlaceIcon:k4,PlayIcon:ou,PlusIcon:uu,PropertyHide:o5,PropertyShow:s5,PublicIcon:Hu,QrCodeIcon:E4,ReloadIcon:G5,RobotIcon:M4,SaveIcon:L4,ScheduleIcon:W5,SchoolIcon:T4,SearchFilterCloseIcon:Z5,SearchFilterIcon:X5,SearchIcon:cu,SensorsIcon:P4,SentimentDataIcon:Q5,SettingsIcon:g5,ShieldPersonIcon:b4,SortFilterIcon:l5,SoundIcon:nu,SourcesIcon:Y5,SourcesTableIcon:v5,StackIcon:K5,StorageIcon:j4,SucessFeedBackIcon:fu,SumFunctionIcon:U4,ThreeDotsIcons:a5,TwitterIcon:I4,VideoIcon:R4,VisibilityOff:u5,VisibilityOn:c5,VolumeIcon:J5};var C0={exports:{}},er={};/** + * @license React + * react-reconciler-constants.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */er.ConcurrentRoot=1;er.ContinuousEventPriority=4;er.DefaultEventPriority=16;er.DiscreteEventPriority=1;er.IdleEventPriority=536870912;er.LegacyRoot=0;C0.exports=er;var Pr=C0.exports;function A4(o){let n;const s=new Set,c=(p,h)=>{const g=typeof p=="function"?p(n):p;if(g!==n){const v=n;n=h?g:Object.assign({},n,g),s.forEach(x=>x(n,v))}},i=()=>n,r=(p,h=i,g=Object.is)=>{console.warn("[DEPRECATED] Please use `subscribeWithSelector` middleware");let v=h(n);function x(){const S=h(n);if(!g(v,S)){const M=v;p(v=S,M)}}return s.add(x),()=>s.delete(x)},u={setState:c,getState:i,subscribe:(p,h,g)=>h||g?r(p,h,g):(s.add(p),()=>s.delete(p)),destroy:()=>s.clear()};return n=o(c,i,u),u}const O4=typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),a2=O4?T.useEffect:T.useLayoutEffect;function F4(o){const n=typeof o=="function"?A4(o):o,s=(c=n.getState,i=Object.is)=>{const[,r]=T.useReducer(k=>k+1,0),a=n.getState(),f=T.useRef(a),u=T.useRef(c),p=T.useRef(i),h=T.useRef(!1),g=T.useRef();g.current===void 0&&(g.current=c(a));let v,x=!1;(f.current!==a||u.current!==c||p.current!==i||h.current)&&(v=c(a),x=!i(g.current,v)),a2(()=>{x&&(g.current=v),f.current=a,u.current=c,p.current=i,h.current=!1});const S=T.useRef(a);a2(()=>{const k=()=>{try{const w=n.getState(),L=u.current(w);p.current(g.current,L)||(f.current=w,g.current=L,r())}catch{h.current=!0,r()}},_=n.subscribe(k);return n.getState()!==S.current&&k(),_},[]);const M=x?v:g.current;return T.useDebugValue(M),M};return Object.assign(s,n),s[Symbol.iterator]=function(){console.warn("[useStore, api] = create() is deprecated and will be removed in v4");const c=[s,n];return{next(){const i=c.length<=0;return{value:c.shift(),done:i}}}},s}var y0={exports:{}},x0={exports:{}},w0={};/** + * @license React + * scheduler.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * 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(N,H){var G=N.length;N.push(H);e:for(;0>>1,D=N[P];if(0>>1;Pi(W,G))iei(Y,W)?(N[P]=Y,N[ie]=G,P=ie):(N[P]=W,N[q]=G,P=q);else if(iei(Y,G))N[P]=Y,N[ie]=G,P=ie;else break e}}return H}function i(N,H){var G=N.sortIndex-H.sortIndex;return G!==0?G:N.id-H.id}if(typeof performance=="object"&&typeof performance.now=="function"){var r=performance;o.unstable_now=function(){return r.now()}}else{var a=Date,f=a.now();o.unstable_now=function(){return a.now()-f}}var u=[],p=[],h=1,g=null,v=3,x=!1,S=!1,M=!1,k=typeof setTimeout=="function"?setTimeout:null,_=typeof clearTimeout=="function"?clearTimeout:null,w=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function L(N){for(var H=s(p);H!==null;){if(H.callback===null)c(p);else if(H.startTime<=N)c(p),H.sortIndex=H.expirationTime,n(u,H);else break;H=s(p)}}function I(N){if(M=!1,L(N),!S)if(s(u)!==null)S=!0,se(U);else{var H=s(p);H!==null&&pe(I,H.startTime-N)}}function U(N,H){S=!1,M&&(M=!1,_(B),B=-1),x=!0;var G=v;try{for(L(H),g=s(u);g!==null&&(!(g.expirationTime>H)||N&&!z());){var P=g.callback;if(typeof P=="function"){g.callback=null,v=g.priorityLevel;var D=P(g.expirationTime<=H);H=o.unstable_now(),typeof D=="function"?g.callback=D:g===s(u)&&c(u),L(H)}else c(u);g=s(u)}if(g!==null)var X=!0;else{var q=s(p);q!==null&&pe(I,q.startTime-H),X=!1}return X}finally{g=null,v=G,x=!1}}var b=!1,O=null,B=-1,Q=5,ee=-1;function z(){return!(o.unstable_now()-eeN||125P?(N.sortIndex=G,n(p,N),s(u)===null&&N===s(p)&&(M?(_(B),B=-1):M=!0,pe(I,G-P))):(N.sortIndex=D,n(u,N),S||x||(S=!0,se(U))),N},o.unstable_shouldYield=z,o.unstable_wrapCallback=function(N){var H=v;return function(){var G=v;v=H;try{return N.apply(this,arguments)}finally{v=G}}}})(w0);x0.exports=w0;var rl=x0.exports;/** + * @license React + * react-reconciler.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var D4=function(n){var s={},c=T,i=rl,r=Object.assign;function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,l=1;lj||m[E]!==C[j]){var Z=` +`+m[E].replace(" at new "," at ");return e.displayName&&Z.includes("")&&(Z=Z.replace("",e.displayName)),Z}while(1<=E&&0<=j);break}}}finally{Hr=!1,Error.prepareStackTrace=l}return(e=e?e.displayName||e.name:"")?Dn(e):""}var nr=Object.prototype.hasOwnProperty,rr=[],Gn=-1;function hn(e){return{current:e}}function Ke(e){0>Gn||(e.current=rr[Gn],rr[Gn]=null,Gn--)}function qe(e,t){Gn++,rr[Gn]=e.current,e.current=t}var pn={},kt=hn(pn),Lt=hn(!1),Wn=pn;function kn(e,t){var l=e.type.contextTypes;if(!l)return pn;var d=e.stateNode;if(d&&d.__reactInternalMemoizedUnmaskedChildContext===t)return d.__reactInternalMemoizedMaskedChildContext;var m={},C;for(C in l)m[C]=t[C];return d&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=m),m}function Tt(e){return e=e.childContextTypes,e!=null}function Bn(){Ke(Lt),Ke(kt)}function ir(e,t,l){if(kt.current!==pn)throw Error(a(168));qe(kt,t),qe(Lt,l)}function or(e,t,l){var d=e.stateNode;if(t=t.childContextTypes,typeof d.getChildContext!="function")return l;d=d.getChildContext();for(var m in d)if(!(m in t))throw Error(a(108,B(e)||"Unknown",m));return r({},l,d)}function v1(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||pn,Wn=kt.current,qe(kt,e),qe(Lt,Lt.current),!0}function mn(e,t,l){var d=e.stateNode;if(!d)throw Error(a(169));l?(e=or(e,t,Wn),d.__reactInternalMemoizedMergedChildContext=e,Ke(Lt),Ke(kt),qe(kt,e)):Ke(Lt),qe(Lt,l)}var gn=Math.clz32?Math.clz32:bi,sr=Math.log,P1=Math.LN2;function bi(e){return e>>>=0,e===0?32:31-(sr(e)/P1|0)|0}var o1=64,s1=4194304;function l1(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 b1(e,t){var l=e.pendingLanes;if(l===0)return 0;var d=0,m=e.suspendedLanes,C=e.pingedLanes,E=l&268435455;if(E!==0){var j=E&~m;j!==0?d=l1(j):(C&=E,C!==0&&(d=l1(C)))}else E=l&~m,E!==0?d=l1(E):C!==0&&(d=l1(C));if(d===0)return 0;if(t!==0&&t!==d&&!(t&m)&&(m=d&-d,C=t&-t,m>=C||m===16&&(C&4194240)!==0))return t;if(d&4&&(d|=l&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=d;0l;l++)t.push(e);return t}function Zn(e,t,l){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-gn(t),e[t]=l}function C1(e,t){var l=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,f1=1<<32-gn(t)+m|l<Ze?(Ut=Re,Re=null):Ut=Re.sibling;var Xe=be(F,Re,V[Ze],he);if(Xe===null){Re===null&&(Re=Ut);break}e&&Re&&Xe.alternate===null&&t(F,Re),R=C(Xe,R,Ze),Be===null?Ee=Xe:Be.sibling=Xe,Be=Xe,Re=Ut}if(Ze===V.length)return l(F,Re),lt&&F1(F,Ze),Ee;if(Re===null){for(;ZeZe?(Ut=Re,Re=null):Ut=Re.sibling;var L1=be(F,Re,Xe.value,he);if(L1===null){Re===null&&(Re=Ut);break}e&&Re&&L1.alternate===null&&t(F,Re),R=C(L1,R,Ze),Be===null?Ee=L1:Be.sibling=L1,Be=L1,Re=Ut}if(Xe.done)return l(F,Re),lt&&F1(F,Ze),Ee;if(Re===null){for(;!Xe.done;Ze++,Xe=V.next())Xe=Ie(F,Xe.value,he),Xe!==null&&(R=C(Xe,R,Ze),Be===null?Ee=Xe:Be.sibling=Xe,Be=Xe);return lt&&F1(F,Ze),Ee}for(Re=d(F,Re);!Xe.done;Ze++,Xe=V.next())Xe=tt(Re,F,Ze,Xe.value,he),Xe!==null&&(e&&Xe.alternate!==null&&Re.delete(Xe.key===null?Ze:Xe.key),R=C(Xe,R,Ze),Be===null?Ee=Xe:Be.sibling=Xe,Be=Xe);return e&&Re.forEach(function(J3){return t(F,J3)}),lt&&F1(F,Ze),Ee}function Un(F,R,V,he){if(typeof V=="object"&&V!==null&&V.type===h&&V.key===null&&(V=V.props.children),typeof V=="object"&&V!==null){switch(V.$$typeof){case u:e:{for(var Ee=V.key,Be=R;Be!==null;){if(Be.key===Ee){if(Ee=V.type,Ee===h){if(Be.tag===7){l(F,Be.sibling),R=m(Be,V.props.children),R.return=F,F=R;break e}}else if(Be.elementType===Ee||typeof Ee=="object"&&Ee!==null&&Ee.$$typeof===L&&Nl(Ee)===Be.type){l(F,Be.sibling),R=m(Be,V.props),R.ref=Kr(F,Be,V),R.return=F,F=R;break e}l(F,Be);break}else t(F,Be);Be=Be.sibling}V.type===h?(R=G1(V.props.children,F.mode,he,V.key),R.return=F,F=R):(he=yo(V.type,V.key,V.props,null,F.mode,he),he.ref=Kr(F,R,V),he.return=F,F=he)}return E(F);case p:e:{for(Be=V.key;R!==null;){if(R.key===Be)if(R.tag===4&&R.stateNode.containerInfo===V.containerInfo&&R.stateNode.implementation===V.implementation){l(F,R.sibling),R=m(R,V.children||[]),R.return=F,F=R;break e}else{l(F,R);break}else t(F,R);R=R.sibling}R=js(V,F.mode,he),R.return=F,F=R}return E(F);case L:return Be=V._init,Un(F,R,Be(V._payload),he)}if(re(V))return Me(F,R,V,he);if(b(V))return Vt(F,R,V,he);zi(F,V)}return typeof V=="string"&&V!==""||typeof V=="number"?(V=""+V,R!==null&&R.tag===6?(l(F,R.sibling),R=m(R,V),R.return=F,F=R):(l(F,R),R=bs(V,F.mode,he),R.return=F,F=R),E(F)):l(F,R)}return Un}var pr=Gl(!0),Wl=Gl(!1),Jr={},Tn=hn(Jr),qr=hn(Jr),mr=hn(Jr);function Yn(e){if(e===Jr)throw Error(a(174));return e}function Qo(e,t){qe(mr,t),qe(qr,e),qe(Tn,Jr),e=pe(t),Ke(Tn),qe(Tn,e)}function gr(){Ke(Tn),Ke(qr),Ke(mr)}function Zl(e){var t=Yn(mr.current),l=Yn(Tn.current);t=N(l,e.type,t),l!==t&&(qe(qr,e),qe(Tn,t))}function Yo(e){qr.current===e&&(Ke(Tn),Ke(qr))}var ut=hn(0);function Vi(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||Ye(l)||gt(l)))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 Ko=[];function Jo(){for(var e=0;el?l:4,e(!0);var d=Pn.transition;Pn.transition={};try{e(!1),t()}finally{Ve=l,Pn.transition=d}}function sa(){return Kn().memoizedState}function k3(e,t,l){var d=k1(e);l={lane:d,action:l,hasEagerState:!1,eagerState:null,next:null},la(e)?aa(t,l):(ua(e,t,l),l=tn(),e=bn(e,d,l),e!==null&&ca(e,t,d))}function E3(e,t,l){var d=k1(e),m={lane:d,action:l,hasEagerState:!1,eagerState:null,next:null};if(la(e))aa(t,m);else{ua(e,t,m);var C=e.alternate;if(e.lanes===0&&(C===null||C.lanes===0)&&(C=t.lastRenderedReducer,C!==null))try{var E=t.lastRenderedState,j=C(E,l);if(m.hasEagerState=!0,m.eagerState=j,Cn(j,E))return}catch{}finally{}l=tn(),e=bn(e,d,l),e!==null&&ca(e,t,d)}}function la(e){var t=e.alternate;return e===mt||t!==null&&t===mt}function aa(e,t){$r=Gi=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function ua(e,t,l){St!==null&&e.mode&1&&!(ze&2)?(e=t.interleaved,e===null?(l.next=l,yn===null?yn=[t]:yn.push(t)):(l.next=e.next,e.next=l),t.interleaved=l):(e=t.pending,e===null?l.next=l:(l.next=e.next,e.next=l),t.pending=l)}function ca(e,t,l){if(l&4194240){var d=t.lanes;d&=e.pendingLanes,l|=d,t.lanes=l,Xn(e,l)}}var Yi={readContext:Ct,useCallback:Ht,useContext:Ht,useEffect:Ht,useImperativeHandle:Ht,useInsertionEffect:Ht,useLayoutEffect:Ht,useMemo:Ht,useReducer:Ht,useRef:Ht,useState:Ht,useDebugValue:Ht,useDeferredValue:Ht,useTransition:Ht,useMutableSource:Ht,useSyncExternalStore:Ht,useId:Ht,unstable_isNewReconciler:!1},M3={readContext:Ct,useCallback:function(e,t){return h1().memoizedState=[e,t===void 0?null:t],e},useContext:Ct,useEffect:ns,useImperativeHandle:function(e,t,l){return l=l!=null?l.concat([e]):null,Xi(4194308,4,na.bind(null,t,e),l)},useLayoutEffect:function(e,t){return Xi(4194308,4,e,t)},useInsertionEffect:function(e,t){return Xi(4,2,e,t)},useMemo:function(e,t){var l=h1();return t=t===void 0?null:t,e=e(),l.memoizedState=[e,t],e},useReducer:function(e,t,l){var d=h1();return t=l!==void 0?l(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=k3.bind(null,mt,e),[d.memoizedState,e]},useRef:function(e){var t=h1();return e={current:e},t.memoizedState=e},useState:ts,useDebugValue:rs,useDeferredValue:function(e){var t=ts(e),l=t[0],d=t[1];return ns(function(){var m=Pn.transition;Pn.transition={};try{d(e)}finally{Pn.transition=m}},[e]),l},useTransition:function(){var e=ts(!1),t=e[0];return e=_3.bind(null,e[1]),h1().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,l){var d=mt,m=h1();if(lt){if(l===void 0)throw Error(a(407));l=l()}else{if(l=t(),St===null)throw Error(a(349));vr&30||Yl(d,t,l)}m.memoizedState=l;var C={value:l,getSnapshot:t};return m.queue=C,ns(Jl.bind(null,d,C,e),[e]),d.flags|=2048,ti(9,Kl.bind(null,d,C,l,t),void 0,null),l},useId:function(){var e=h1(),t=St.identifierPrefix;if(lt){var l=d1,d=f1;l=(d&~(1<<32-gn(d)-1)).toString(32)+l,t=":"+t+"R"+l,l=ei++,0Ss&&(t.flags|=128,d=!0,oi(m,!1),t.lanes=4194304)}else{if(!d)if(e=Vi(C),e!==null){if(t.flags|=128,d=!0,e=e.updateQueue,e!==null&&(t.updateQueue=e,t.flags|=4),oi(m,!0),m.tail===null&&m.tailMode==="hidden"&&!C.alternate&&!lt)return zt(t),null}else 2*at()-m.renderingStartTime>Ss&&l!==1073741824&&(t.flags|=128,d=!0,oi(m,!1),t.lanes=4194304);m.isBackwards?(C.sibling=t.child,t.child=C):(e=m.last,e!==null?e.sibling=C:t.child=C,m.last=C)}return m.tail!==null?(t=m.tail,m.rendering=t,m.tail=t.sibling,m.renderingStartTime=at(),t.sibling=null,e=ut.current,qe(ut,d?e&1|2:e&1),t):(zt(t),null);case 22:case 23:return Ls(),d=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==d&&(t.flags|=8192),d&&t.mode&1?_n&1073741824&&(zt(t),$&&t.subtreeFlags&6&&(t.flags|=8192)):zt(t),null;case 24:return null;case 25:return null}throw Error(a(156,t.tag))}var j3=f.ReactCurrentOwner,Sn=!1;function en(e,t,l,d){t.child=e===null?Wl(t,null,l,d):pr(t,e.child,l,d)}function Ca(e,t,l,d,m){l=l.render;var C=t.ref;return vt(t,m),d=$o(e,t,l,d,C,m),l=es(),e!==null&&!Sn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~m,p1(e,t,m)):(lt&&l&&No(t),t.flags|=1,en(e,t,d,m),t.child)}function ya(e,t,l,d,m){if(e===null){var C=l.type;return typeof C=="function"&&!Ps(C)&&C.defaultProps===void 0&&l.compare===null&&l.defaultProps===void 0?(t.tag=15,t.type=C,xa(e,t,C,d,m)):(e=yo(l.type,null,d,t,t.mode,m),e.ref=t.ref,e.return=t,t.child=e)}if(C=e.child,!(e.lanes&m)){var E=C.memoizedProps;if(l=l.compare,l=l!==null?l:R1,l(E,d)&&e.ref===t.ref)return p1(e,t,m)}return t.flags|=1,e=M1(C,d),e.ref=t.ref,e.return=t,t.child=e}function xa(e,t,l,d,m){if(e!==null&&R1(e.memoizedProps,d)&&e.ref===t.ref)if(Sn=!1,(e.lanes&m)!==0)e.flags&131072&&(Sn=!0);else return t.lanes=e.lanes,p1(e,t,m);return ss(e,t,l,d,m)}function wa(e,t,l){var d=t.pendingProps,m=d.children,C=e!==null?e.memoizedState:null;if(d.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null},qe(Cr,_n),_n|=l;else if(l&1073741824)t.memoizedState={baseLanes:0,cachePool:null},d=C!==null?C.baseLanes:l,qe(Cr,_n),_n|=d;else return e=C!==null?C.baseLanes|l:l,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null},t.updateQueue=null,qe(Cr,_n),_n|=e,null;else C!==null?(d=C.baseLanes|l,t.memoizedState=null):d=l,qe(Cr,_n),_n|=d;return en(e,t,m,l),t.child}function Sa(e,t){var l=t.ref;(e===null&&l!==null||e!==null&&e.ref!==l)&&(t.flags|=512,t.flags|=2097152)}function ss(e,t,l,d,m){var C=Tt(l)?Wn:kt.current;return C=kn(t,C),vt(t,m),l=$o(e,t,l,d,C,m),d=es(),e!==null&&!Sn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~m,p1(e,t,m)):(lt&&d&&No(t),t.flags|=1,en(e,t,l,m),t.child)}function _a(e,t,l,d,m){if(Tt(l)){var C=!0;v1(t)}else C=!1;if(vt(t,m),t.stateNode===null)e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),Fl(t,l,d),Vo(t,l,d,m),d=!0;else if(e===null){var E=t.stateNode,j=t.memoizedProps;E.props=j;var Z=E.context,ae=l.contextType;typeof ae=="object"&&ae!==null?ae=Ct(ae):(ae=Tt(l)?Wn:kt.current,ae=kn(t,ae));var ve=l.getDerivedStateFromProps,Ie=typeof ve=="function"||typeof E.getSnapshotBeforeUpdate=="function";Ie||typeof E.UNSAFE_componentWillReceiveProps!="function"&&typeof E.componentWillReceiveProps!="function"||(j!==d||Z!==ae)&&Dl(t,E,d,ae),x1=!1;var be=t.memoizedState;E.state=be,Fi(t,d,E,m),Z=t.memoizedState,j!==d||be!==Z||Lt.current||x1?(typeof ve=="function"&&(zo(t,l,ve,d),Z=t.memoizedState),(j=x1||Ol(t,l,j,d,be,Z,ae))?(Ie||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=ae,d=j):(typeof E.componentDidMount=="function"&&(t.flags|=4194308),d=!1)}else{E=t.stateNode,Ul(e,t),j=t.memoizedProps,ae=t.type===t.elementType?j:qt(t.type,j),E.props=ae,Ie=t.pendingProps,be=E.context,Z=l.contextType,typeof Z=="object"&&Z!==null?Z=Ct(Z):(Z=Tt(l)?Wn:kt.current,Z=kn(t,Z));var tt=l.getDerivedStateFromProps;(ve=typeof tt=="function"||typeof E.getSnapshotBeforeUpdate=="function")||typeof E.UNSAFE_componentWillReceiveProps!="function"&&typeof E.componentWillReceiveProps!="function"||(j!==Ie||be!==Z)&&Dl(t,E,d,Z),x1=!1,be=t.memoizedState,E.state=be,Fi(t,d,E,m);var Me=t.memoizedState;j!==Ie||be!==Me||Lt.current||x1?(typeof tt=="function"&&(zo(t,l,tt,d),Me=t.memoizedState),(ae=x1||Ol(t,l,ae,d,be,Me,Z)||!1)?(ve||typeof E.UNSAFE_componentWillUpdate!="function"&&typeof E.componentWillUpdate!="function"||(typeof E.componentWillUpdate=="function"&&E.componentWillUpdate(d,Me,Z),typeof E.UNSAFE_componentWillUpdate=="function"&&E.UNSAFE_componentWillUpdate(d,Me,Z)),typeof E.componentDidUpdate=="function"&&(t.flags|=4),typeof E.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof E.componentDidUpdate!="function"||j===e.memoizedProps&&be===e.memoizedState||(t.flags|=4),typeof E.getSnapshotBeforeUpdate!="function"||j===e.memoizedProps&&be===e.memoizedState||(t.flags|=1024),t.memoizedProps=d,t.memoizedState=Me),E.props=d,E.state=Me,E.context=Z,d=ae):(typeof E.componentDidUpdate!="function"||j===e.memoizedProps&&be===e.memoizedState||(t.flags|=4),typeof E.getSnapshotBeforeUpdate!="function"||j===e.memoizedProps&&be===e.memoizedState||(t.flags|=1024),d=!1)}return ls(e,t,l,d,C,m)}function ls(e,t,l,d,m,C){Sa(e,t);var E=(t.flags&128)!==0;if(!d&&!E)return m&&mn(t,l,!1),p1(e,t,C);d=t.stateNode,j3.current=t;var j=E&&typeof l.getDerivedStateFromError!="function"?null:d.render();return t.flags|=1,e!==null&&E?(t.child=pr(t,e.child,null,C),t.child=pr(t,null,j,C)):en(e,t,j,C),t.memoizedState=d.state,m&&mn(t,l,!0),t.child}function ka(e){var t=e.stateNode;t.pendingContext?ir(e,t.pendingContext,t.pendingContext!==t.context):t.context&&ir(e,t.context,!1),Qo(e,t.containerInfo)}function Ea(e,t,l,d,m){return hr(),Xo(m),t.flags|=256,en(e,t,l,d),t.child}var qi={dehydrated:null,treeContext:null,retryLane:0};function $i(e){return{baseLanes:e,cachePool:null}}function Ma(e,t,l){var d=t.pendingProps,m=ut.current,C=!1,E=(t.flags&128)!==0,j;if((j=E)||(j=e!==null&&e.memoizedState===null?!1:(m&2)!==0),j?(C=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(m|=1),qe(ut,m&1),e===null)return Zo(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,C?(d=t.mode,C=t.child,m={mode:"hidden",children:m},!(d&1)&&C!==null?(C.childLanes=0,C.pendingProps=m):C=xo(m,d,0,null),e=G1(e,d,l,null),C.return=t,e.return=t,C.sibling=e,t.child=C,t.child.memoizedState=$i(l),t.memoizedState=qi,e):as(t,m));if(m=e.memoizedState,m!==null){if(j=m.dehydrated,j!==null){if(E)return t.flags&256?(t.flags&=-257,eo(e,t,l,Error(a(422)))):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(C=d.fallback,m=t.mode,d=xo({mode:"visible",children:d.children},m,0,null),C=G1(C,m,l,null),C.flags|=2,d.return=t,C.return=t,d.sibling=C,t.child=d,t.mode&1&&pr(t,e.child,null,l),t.child.memoizedState=$i(l),t.memoizedState=qi,C);if(!(t.mode&1))t=eo(e,t,l,null);else if(gt(j))t=eo(e,t,l,Error(a(419)));else if(d=(l&e.childLanes)!==0,Sn||d){if(d=St,d!==null){switch(l&-l){case 4:C=2;break;case 16:C=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:C=32;break;case 536870912:C=268435456;break;default:C=0}d=C&(d.suspendedLanes|l)?0:C,d!==0&&d!==m.retryLane&&(m.retryLane=d,bn(e,d,-1))}Ts(),t=eo(e,t,l,Error(a(421)))}else Ye(j)?(t.flags|=128,t.child=e.child,t=G3.bind(null,e),rn(j,t),t=null):(l=m.treeContext,xe&&(wn=Vn(j),xn=t,lt=!0,zn=null,Qr=!1,l!==null&&(Mn[Ln++]=f1,Mn[Ln++]=d1,Mn[Ln++]=O1,f1=l.id,d1=l.overflow,O1=t)),t=as(t,t.pendingProps.children),t.flags|=4096);return t}return C?(d=Ta(e,t,d.children,d.fallback,l),C=t.child,m=e.child.memoizedState,C.memoizedState=m===null?$i(l):{baseLanes:m.baseLanes|l,cachePool:null},C.childLanes=e.childLanes&~l,t.memoizedState=qi,d):(l=La(e,t,d.children,l),t.memoizedState=null,l)}return C?(d=Ta(e,t,d.children,d.fallback,l),C=t.child,m=e.child.memoizedState,C.memoizedState=m===null?$i(l):{baseLanes:m.baseLanes|l,cachePool:null},C.childLanes=e.childLanes&~l,t.memoizedState=qi,d):(l=La(e,t,d.children,l),t.memoizedState=null,l)}function as(e,t){return t=xo({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function La(e,t,l,d){var m=e.child;return e=m.sibling,l=M1(m,{mode:"visible",children:l}),!(t.mode&1)&&(l.lanes=d),l.return=t,l.sibling=null,e!==null&&(d=t.deletions,d===null?(t.deletions=[e],t.flags|=16):d.push(e)),t.child=l}function Ta(e,t,l,d,m){var C=t.mode;e=e.child;var E=e.sibling,j={mode:"hidden",children:l};return!(C&1)&&t.child!==e?(l=t.child,l.childLanes=0,l.pendingProps=j,t.deletions=null):(l=M1(e,j),l.subtreeFlags=e.subtreeFlags&14680064),E!==null?d=M1(E,d):(d=G1(d,C,m,null),d.flags|=2),d.return=t,l.return=t,l.sibling=d,t.child=l,d}function eo(e,t,l,d){return d!==null&&Xo(d),pr(t,e.child,null,l),e=as(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Pa(e,t,l){e.lanes|=t;var d=e.alternate;d!==null&&(d.lanes|=t),$t(e.return,t,l)}function us(e,t,l,d,m){var C=e.memoizedState;C===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:d,tail:l,tailMode:m}:(C.isBackwards=t,C.rendering=null,C.renderingStartTime=0,C.last=d,C.tail=l,C.tailMode=m)}function ba(e,t,l){var d=t.pendingProps,m=d.revealOrder,C=d.tail;if(en(e,t,d.children,l),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&&Pa(e,l,t);else if(e.tag===19)Pa(e,l,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(l=t.child,m=null;l!==null;)e=l.alternate,e!==null&&Vi(e)===null&&(m=l),l=l.sibling;l=m,l===null?(m=t.child,t.child=null):(m=l.sibling,l.sibling=null),us(t,!1,m,l,C);break;case"backwards":for(l=null,m=t.child,t.child=null;m!==null;){if(e=m.alternate,e!==null&&Vi(e)===null){t.child=m;break}e=m.sibling,m.sibling=l,l=m,m=e}us(t,!0,l,null,C);break;case"together":us(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function p1(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),yr|=t.lanes,!(l&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(a(153));if(t.child!==null){for(e=t.child,l=M1(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=M1(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function U3(e,t,l){switch(t.tag){case 3:ka(t),hr();break;case 5:Zl(t);break;case 1:Tt(t.type)&&v1(t);break;case 4:Qo(t,t.stateNode.containerInfo);break;case 10:Ai(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):l&t.child.childLanes?Ma(e,t,l):(qe(ut,ut.current&1),e=p1(e,t,l),e!==null?e.sibling:null);qe(ut,ut.current&1);break;case 19:if(d=(l&t.childLanes)!==0,e.flags&128){if(d)return ba(e,t,l);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,wa(e,t,l)}return p1(e,t,l)}function I3(e,t){switch(Go(t),t.tag){case 1:return Tt(t.type)&&Bn(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return gr(),Ke(Lt),Ke(kt),Jo(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Yo(t),null;case 13:if(Ke(ut),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(a(340));hr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ke(ut),null;case 4:return gr(),null;case 10:return bt(t.type._context),null;case 22:case 23:return Ls(),null;case 24:return null;default:return null}}var to=!1,B1=!1,R3=typeof WeakSet=="function"?WeakSet:Set,de=null;function no(e,t){var l=e.ref;if(l!==null)if(typeof l=="function")try{l(null)}catch(d){an(e,t,d)}else l.current=null}function cs(e,t,l){try{l()}catch(d){an(e,t,d)}}var ja=!1;function A3(e,t){for(H(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 l=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(l!==null){var d=l.memoizedProps,m=l.memoizedState,C=e.stateNode,E=C.getSnapshotBeforeUpdate(e.elementType===e.type?d:qt(e.type,d),m);C.__reactInternalSnapshotBeforeUpdate=E}break;case 3:$&&On(e.stateNode.containerInfo);break;case 5:case 6:case 4:case 17:break;default:throw Error(a(163))}}catch(j){an(e,e.return,j)}if(t=e.sibling,t!==null){t.return=e.return,de=t;break}de=e.return}return l=ja,ja=!1,l}function H1(e,t,l){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 C=m.destroy;m.destroy=void 0,C!==void 0&&cs(t,l,C)}m=m.next}while(m!==d)}}function si(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var l=t=t.next;do{if((l.tag&e)===e){var d=l.create;l.destroy=d()}l=l.next}while(l!==t)}}function fs(e){var t=e.ref;if(t!==null){var l=e.stateNode;switch(e.tag){case 5:e=se(l);break;default:e=l}typeof t=="function"?t(e):t.current=e}}function Ua(e,t,l){if(vn&&typeof vn.onCommitFiberUnmount=="function")try{vn.onCommitFiberUnmount(U1,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,C=m.destroy;m=m.tag,C!==void 0&&(m&2||m&4)&&cs(t,l,C),d=d.next}while(d!==e)}break;case 1:if(no(t,l),e=t.stateNode,typeof e.componentWillUnmount=="function")try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(E){an(t,l,E)}break;case 5:no(t,l);break;case 4:$?Da(e,t,l):te&&te&&(t=t.stateNode.containerInfo,l=Fn(t),rt(t,l))}}function Ia(e,t,l){for(var d=t;;)if(Ua(e,d,l),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 Ra(e){var t=e.alternate;t!==null&&(e.alternate=null,Ra(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Te(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 Aa(e){return e.tag===5||e.tag===3||e.tag===4}function Oa(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Aa(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 Fa(e){if($){e:{for(var t=e.return;t!==null;){if(Aa(t))break e;t=t.return}throw Error(a(160))}var l=t;switch(l.tag){case 5:t=l.stateNode,l.flags&32&&(Je(t),l.flags&=-33),l=Oa(e),hs(e,l,t);break;case 3:case 4:t=l.stateNode.containerInfo,l=Oa(e),ds(e,l,t);break;default:throw Error(a(161))}}}function ds(e,t,l){var d=e.tag;if(d===5||d===6)e=e.stateNode,t?He(l,e,t):Fe(l,e);else if(d!==4&&(e=e.child,e!==null))for(ds(e,t,l),e=e.sibling;e!==null;)ds(e,t,l),e=e.sibling}function hs(e,t,l){var d=e.tag;if(d===5||d===6)e=e.stateNode,t?et(l,e,t):Le(l,e);else if(d!==4&&(e=e.child,e!==null))for(hs(e,t,l),e=e.sibling;e!==null;)hs(e,t,l),e=e.sibling}function Da(e,t,l){for(var d=t,m=!1,C,E;;){if(!m){m=d.return;e:for(;;){if(m===null)throw Error(a(160));switch(C=m.stateNode,m.tag){case 5:E=!1;break e;case 3:C=C.containerInfo,E=!0;break e;case 4:C=C.containerInfo,E=!0;break e}m=m.return}m=!0}if(d.tag===5||d.tag===6)Ia(e,d,l),E?Qe(C,d.stateNode):je(C,d.stateNode);else if(d.tag===18)E?Pi(C,d.stateNode):Bo(C,d.stateNode);else if(d.tag===4){if(d.child!==null){C=d.stateNode.containerInfo,E=!0,d.child.return=d,d=d.child;continue}}else if(Ua(e,d,l),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 ps(e,t){if($){switch(t.tag){case 0:case 11:case 14:case 15:H1(3,t,t.return),si(3,t),H1(5,t,t.return);return;case 1:return;case 5:var l=t.stateNode;if(l!=null){var d=t.memoizedProps;e=e!==null?e.memoizedProps:d;var m=t.type,C=t.updateQueue;t.updateQueue=null,C!==null&&Ae(l,C,m,e,d,t)}return;case 6:if(t.stateNode===null)throw Error(a(162));l=t.memoizedProps,We(t.stateNode,e!==null?e.memoizedProps:l,l);return;case 3:xe&&e!==null&&e.memoizedState.isDehydrated&&T1(t.stateNode.containerInfo);return;case 12:return;case 13:ro(t);return;case 19:ro(t);return;case 17:return}throw Error(a(163))}switch(t.tag){case 0:case 11:case 14:case 15:H1(3,t,t.return),si(3,t),H1(5,t,t.return);return;case 12:return;case 13:ro(t);return;case 19:ro(t);return;case 3:xe&&e!==null&&e.memoizedState.isDehydrated&&T1(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(a(163))}}function ro(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var l=e.stateNode;l===null&&(l=e.stateNode=new R3),t.forEach(function(d){var m=W3.bind(null,e,d);l.has(d)||(l.add(d),d.then(m,m))})}}function O3(e,t){for(de=t;de!==null;){t=de;var l=t.deletions;if(l!==null)for(var d=0;d";case oo:return":has("+(vs(e)||"")+")";case so:return'[role="'+e.value+'"]';case ao:return'"'+e.value+'"';case lo:return'[data-testname="'+e.value+'"]';default:throw Error(a(365))}}function Na(e,t){var l=[];e=[e,0];for(var d=0;dm&&(m=E),d&=~C}if(d=m,d=at()-d,d=(120>d?120:480>d?480:1080>d?1080:1920>d?1920:3e3>d?3e3:4320>d?4320:1960*D3(d/1960))-d,10e?16:e,_1===null)var d=!1;else{if(e=_1,_1=null,po=0,ze&6)throw Error(a(331));var m=ze;for(ze|=4,de=e.current;de!==null;){var C=de,E=C.child;if(de.flags&16){var j=C.deletions;if(j!==null){for(var Z=0;Zat()-ws?z1(e,0):xs|=l),ln(e,t)}function qa(e,t){t===0&&(e.mode&1?(t=s1,s1<<=1,!(s1&130023424)&&(s1=4194304)):t=1);var l=tn();e=vo(e,t),e!==null&&(Zn(e,t,l),ln(e,l))}function G3(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),qa(e,l)}function W3(e,t){var l=0;switch(e.tag){case 13:var d=e.stateNode,m=e.memoizedState;m!==null&&(l=m.retryLane);break;case 19:d=e.stateNode;break;default:throw Error(a(314))}d!==null&&d.delete(t),qa(e,l)}var $a;$a=function(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps||Lt.current)Sn=!0;else{if(!(e.lanes&l)&&!(t.flags&128))return Sn=!1,U3(e,t,l);Sn=!!(e.flags&131072)}else Sn=!1,lt&&t.flags&1048576&&Bl(t,Hi,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=kn(t,kt.current);vt(t,l),m=$o(null,t,d,e,m,l);var C=es();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,Tt(d)?(C=!0,v1(t)):C=!1,t.memoizedState=m.state!==null&&m.state!==void 0?m.state:null,Ho(t),m.updater=Di,t.stateNode=m,m._reactInternals=t,Vo(t,d,e,l),t=ls(null,t,d,!0,C,l)):(t.tag=0,lt&&C&&No(t),en(null,t,m,l),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=X3(d),e=qt(d,e),m){case 0:t=ss(null,t,d,e,l);break e;case 1:t=_a(null,t,d,e,l);break e;case 11:t=Ca(null,t,d,e,l);break e;case 14:t=ya(null,t,d,qt(d.type,e),l);break e}throw Error(a(306,d,""))}return t;case 0:return d=t.type,m=t.pendingProps,m=t.elementType===d?m:qt(d,m),ss(e,t,d,m,l);case 1:return d=t.type,m=t.pendingProps,m=t.elementType===d?m:qt(d,m),_a(e,t,d,m,l);case 3:e:{if(ka(t),e===null)throw Error(a(387));d=t.pendingProps,C=t.memoizedState,m=C.element,Ul(e,t),Fi(t,d,null,l);var E=t.memoizedState;if(d=E.element,xe&&C.isDehydrated)if(C={element:d,isDehydrated:!1,cache:E.cache,transitions:E.transitions},t.updateQueue.baseState=C,t.memoizedState=C,t.flags&256){m=Error(a(423)),t=Ea(e,t,d,l,m);break e}else if(d!==m){m=Error(a(424)),t=Ea(e,t,d,l,m);break e}else for(xe&&(wn=Rt(t.stateNode.containerInfo),xn=t,lt=!0,zn=null,Qr=!1),l=Wl(t,null,d,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling;else{if(hr(),d===m){t=p1(e,t,l);break e}en(e,t,d,l)}t=t.child}return t;case 5:return Zl(t),e===null&&Zo(t),d=t.type,m=t.pendingProps,C=e!==null?e.memoizedProps:null,E=m.children,W(d,m)?E=null:C!==null&&W(d,C)&&(t.flags|=32),Sa(e,t),en(e,t,E,l),t.child;case 6:return e===null&&Zo(t),null;case 13:return Ma(e,t,l);case 4:return Qo(t,t.stateNode.containerInfo),d=t.pendingProps,e===null?t.child=pr(t,null,d,l):en(e,t,d,l),t.child;case 11:return d=t.type,m=t.pendingProps,m=t.elementType===d?m:qt(d,m),Ca(e,t,d,m,l);case 7:return en(e,t,t.pendingProps,l),t.child;case 8:return en(e,t,t.pendingProps.children,l),t.child;case 12:return en(e,t,t.pendingProps.children,l),t.child;case 10:e:{if(d=t.type._context,m=t.pendingProps,C=t.memoizedProps,E=m.value,Ai(t,d,E),C!==null)if(Cn(C.value,E)){if(C.children===m.children&&!Lt.current){t=p1(e,t,l);break e}}else for(C=t.child,C!==null&&(C.return=t);C!==null;){var j=C.dependencies;if(j!==null){E=C.child;for(var Z=j.firstContext;Z!==null;){if(Z.context===d){if(C.tag===1){Z=c1(-1,l&-l),Z.tag=2;var ae=C.updateQueue;if(ae!==null){ae=ae.shared;var ve=ae.pending;ve===null?Z.next=Z:(Z.next=ve.next,ve.next=Z),ae.pending=Z}}C.lanes|=l,Z=C.alternate,Z!==null&&(Z.lanes|=l),$t(C.return,l,t),j.lanes|=l;break}Z=Z.next}}else if(C.tag===10)E=C.type===t.type?null:C.child;else if(C.tag===18){if(E=C.return,E===null)throw Error(a(341));E.lanes|=l,j=E.alternate,j!==null&&(j.lanes|=l),$t(E,l,t),E=C.sibling}else E=C.child;if(E!==null)E.return=C;else for(E=C;E!==null;){if(E===t){E=null;break}if(C=E.sibling,C!==null){C.return=E.return,E=C;break}E=E.return}C=E}en(e,t,m.children,l),t=t.child}return t;case 9:return m=t.type,d=t.pendingProps.children,vt(t,l),m=Ct(m),d=d(m),t.flags|=1,en(e,t,d,l),t.child;case 14:return d=t.type,m=qt(d,t.pendingProps),m=qt(d.type,m),ya(e,t,d,m,l);case 15:return xa(e,t,t.type,t.pendingProps,l);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,Tt(d)?(e=!0,v1(t)):e=!1,vt(t,l),Fl(t,d,m),Vo(t,d,m,l),ls(null,t,d,!0,e,l);case 19:return ba(e,t,l);case 22:return wa(e,t,l)}throw Error(a(156,t.tag))};function e2(e,t){return u1(e,t)}function Z3(e,t,l,d){this.tag=e,this.key=l,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 jn(e,t,l,d){return new Z3(e,t,l,d)}function Ps(e){return e=e.prototype,!(!e||!e.isReactComponent)}function X3(e){if(typeof e=="function")return Ps(e)?1:0;if(e!=null){if(e=e.$$typeof,e===M)return 11;if(e===w)return 14}return 2}function M1(e,t){var l=e.alternate;return l===null?(l=jn(e.tag,t,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=t,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&14680064,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,t=e.dependencies,l.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l}function yo(e,t,l,d,m,C){var E=2;if(d=e,typeof e=="function")Ps(e)&&(E=1);else if(typeof e=="string")E=5;else e:switch(e){case h:return G1(l.children,m,C,t);case g:E=8,m|=8;break;case v:return e=jn(12,l,t,m|2),e.elementType=v,e.lanes=C,e;case k:return e=jn(13,l,t,m),e.elementType=k,e.lanes=C,e;case _:return e=jn(19,l,t,m),e.elementType=_,e.lanes=C,e;case I:return xo(l,m,C,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case x:E=10;break e;case S:E=9;break e;case M:E=11;break e;case w:E=14;break e;case L:E=16,d=null;break e}throw Error(a(130,e==null?e:typeof e,""))}return t=jn(E,l,t,m),t.elementType=e,t.type=d,t.lanes=C,t}function G1(e,t,l,d){return e=jn(7,e,d,t),e.lanes=l,e}function xo(e,t,l,d){return e=jn(22,e,d,t),e.elementType=I,e.lanes=l,e.stateNode={},e}function bs(e,t,l){return e=jn(6,e,null,t),e.lanes=l,e}function js(e,t,l){return t=jn(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Q3(e,t,l,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=lr(0),this.expirationTimes=lr(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=lr(0),this.identifierPrefix=d,this.onRecoverableError=m,xe&&(this.mutableSourceEagerHydrationData=null)}function t2(e,t,l,d,m,C,E,j,Z){return e=new Q3(e,t,l,j,Z),t===1?(t=1,C===!0&&(t|=8)):t=0,C=jn(3,null,null,t),e.current=C,C.stateNode=e,C.memoizedState={element:d,isDehydrated:l,cache:null,transitions:null},Ho(C),e}function n2(e){if(!e)return pn;e=e._reactInternals;e:{if(Q(e)!==e||e.tag!==1)throw Error(a(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Tt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(a(171))}if(e.tag===1){var l=e.type;if(Tt(l))return or(e,l,t)}return t}function r2(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(a(188)):(e=Object.keys(e).join(","),Error(a(268,e)));return e=A(t),e===null?null:e.stateNode}function i2(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l=ae&&C>=Ie&&m<=ve&&E<=be){e.splice(t,1);break}else if(d!==ae||l.width!==Z.width||beE){if(!(C!==Ie||l.height!==Z.height||vem)){ae>d&&(Z.width+=ae-d,Z.x=d),veC&&(Z.height+=Ie-C,Z.y=C),bel&&(l=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:Y3,findFiberByHostInstance:e.findFiberByHostInstance||K3,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{U1=t.inject(e),vn=t}catch{}e=!!t.checkDCE}}return e},s.isAlreadyRendering=function(){return!1},s.observeVisibleRects=function(e,t,l,d){if(!me)throw Error(a(363));e=Cs(e,t);var m=Oe(e,l,d).disconnect;return{disconnect:function(){m()}}},s.registerMutableSourceForHydration=function(e,t){var l=t._getVersion;l=l(t._source),e.mutableSourceEagerHydrationData==null?e.mutableSourceEagerHydrationData=[t,l]:e.mutableSourceEagerHydrationData.push(t,l)},s.runWithPriority=function(e,t){var l=Ve;try{return Ve=e,t()}finally{Ve=l}},s.shouldError=function(){return null},s.shouldSuspend=function(){return!1},s.updateContainer=function(e,t,l,d){var m=t.current,C=tn(),E=k1(m);return l=n2(l),t.context===null?t.context=l:t.pendingContext=l,t=c1(C,E),t.payload={element:e},d=d===void 0?null:d,d!==null&&(t.callback=d),w1(m,t),e=bn(m,E,C),e!==null&&Oi(e,m,E),E},s};y0.exports=D4;var B4=y0.exports;const H4=d0(B4),z4=o=>typeof o=="object"&&typeof o.then=="function",X1=[];function S0(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=X1.indexOf(i);r!==-1&&X1.splice(r,1)},promise:(z4(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(X1.push(i),!s)throw i.promise}const V4=(o,n,s)=>_0(o,n,!1,s),N4=(o,n,s)=>void _0(o,n,!0,s),G4=o=>{if(o===void 0||o.length===0)X1.splice(0,X1.length);else{const n=X1.find(s=>S0(o,s.keys,s.equal));n&&n.remove()}},_l={},W4=o=>void Object.assign(_l,o);function Z4(o,n){function s(h,{args:g=[],attach:v,...x},S){let M=`${h[0].toUpperCase()}${h.slice(1)}`,k;if(h==="primitive"){if(x.object===void 0)throw new Error("R3F: Primitives without 'object' are invalid!");const _=x.object;k=Mr(_,{type:h,root:S,attach:v,primitive:!0})}else{const _=_l[M];if(!_)throw new Error(`R3F: ${M} 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!");k=Mr(new _(...g),{type:h,root:S,attach:v,memoizedProps:{args:g}})}return k.__r3f.attach===void 0&&(k instanceof p0?k.__r3f.attach="geometry":k instanceof pu&&(k.__r3f.attach="material")),M!=="inject"&&Ds(k,x),k}function c(h,g){let v=!1;if(g){var x,S;(x=g.__r3f)!=null&&x.attach?Fs(h,g,g.__r3f.attach):g.isObject3D&&h.isObject3D&&(h.add(g),v=!0),v||(S=h.__r3f)==null||S.objects.push(g),g.__r3f||Mr(g,{}),g.__r3f.parent=h,ol(g),Lr(g)}}function i(h,g,v){let x=!1;if(g){var S,M;if((S=g.__r3f)!=null&&S.attach)Fs(h,g,g.__r3f.attach);else if(g.isObject3D&&h.isObject3D){g.parent=h,g.dispatchEvent({type:"added"});const k=h.children.filter(w=>w!==g),_=k.indexOf(v);h.children=[...k.slice(0,_),g,...k.slice(_)],x=!0}x||(M=h.__r3f)==null||M.objects.push(g),g.__r3f||Mr(g,{}),g.__r3f.parent=h,ol(g),Lr(g)}}function r(h,g,v=!1){h&&[...h].forEach(x=>a(g,x,v))}function a(h,g,v){if(g){var x,S,M;if(g.__r3f&&(g.__r3f.parent=null),(x=h.__r3f)!=null&&x.objects&&(h.__r3f.objects=h.__r3f.objects.filter(I=>I!==g)),(S=g.__r3f)!=null&&S.attach)h2(h,g,g.__r3f.attach);else if(g.isObject3D&&h.isObject3D){var k;h.remove(g),(k=g.__r3f)!=null&&k.root&&t9(g.__r3f.root,g)}const w=(M=g.__r3f)==null?void 0:M.primitive,L=!w&&(v===void 0?g.dispose!==null:v);if(!w){var _;r((_=g.__r3f)==null?void 0:_.objects,g,L),r(g.children,g,L)}if(delete g.__r3f,L&&g.dispose&&g.type!=="Scene"){const I=()=>{try{g.dispose()}catch{}};typeof IS_REACT_ACT_ENVIRONMENT>"u"?rl.unstable_scheduleCallback(rl.unstable_IdlePriority,I):I()}Lr(h)}}function f(h,g,v,x){var S;const M=(S=h.__r3f)==null?void 0:S.parent;if(!M)return;const k=s(g,v,h.__r3f.root);if(h.children){for(const _ of h.children)_.__r3f&&c(k,_);h.children=h.children.filter(_=>!_.__r3f)}h.__r3f.objects.forEach(_=>c(k,_)),h.__r3f.objects=[],h.__r3f.autoRemovedBeforeAppend||a(M,h),k.parent&&(k.__r3f.autoRemovedBeforeAppend=!0),c(M,k),k.raycast&&k.__r3f.eventCount&&k.__r3f.root.getState().internal.interaction.push(k),[x,x.alternate].forEach(_=>{_!==null&&(_.stateNode=k,_.ref&&(typeof _.ref=="function"?_.ref(k):_.ref.current=k))})}const u=()=>console.warn("Text is not allowed in the R3F tree! This could be stray whitespace or characters.");return{reconciler:H4({createInstance:s,removeChild:a,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&&a(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 S;if(((S=h==null?void 0:h.__r3f)!=null?S:{}).primitive&&x.object&&x.object!==h)return[!0];{const{args:k=[],children:_,...w}=x,{args:L=[],children:I,...U}=v;if(!Array.isArray(k))throw new Error("R3F: the args prop must be an array!");if(k.some((O,B)=>O!==L[B]))return[!0];const b=b0(h,w,U,!0);return b.changes.length?[!1,b]:null}},commitUpdate(h,[g,v],x,S,M,k){g?f(h,x,M,k):Ds(h,v)},commitMount(h,g,v,x){var S;const M=(S=h.__r3f)!=null?S:{};h.raycast&&M.handlers&&M.eventCount&&h.__r3f.root.getState().internal.interaction.push(h)},getPublicInstance:h=>h,prepareForCommit:()=>null,preparePortalMount:h=>Mr(h.getState().scene),resetAfterCommit:()=>{},shouldSetTextContent:()=>!1,clearContainer:()=>!1,hideInstance(h){var g;const{attach:v,parent:x}=(g=h.__r3f)!=null?g:{};v&&x&&h2(x,h,v),h.isObject3D&&(h.visible=!1),Lr(h)},unhideInstance(h,g){var v;const{attach:x,parent:S}=(v=h.__r3f)!=null?v:{};x&&S&&Fs(S,h,x),(h.isObject3D&&g.visible==null||g.visible)&&(h.visible=!0),Lr(h)},createTextInstance:u,hideTextInstance:u,unhideTextInstance:u,getCurrentEventPriority:()=>n?n():Pr.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:Ds}}var u2,c2;const Os=o=>"colorSpace"in o||"outputColorSpace"in o,k0=()=>{var o;return(o=_l.ColorManagement)!=null?o:null},E0=o=>o&&o.isOrthographicCamera,X4=o=>o&&o.hasOwnProperty("current"),Si=typeof window<"u"&&((u2=window.document)!=null&&u2.createElement||((c2=window.navigator)==null?void 0:c2.product)==="ReactNative")?T.useLayoutEffect:T.useEffect;function M0(o){const n=T.useRef(o);return Si(()=>void(n.current=o),[o]),n}function Q4({set:o}){return Si(()=>(o(new Promise(()=>null)),()=>o(!1)),[o]),null}class L0 extends T.Component{constructor(...n){super(...n),this.state={error:!1}}componentDidCatch(n){this.props.set(n)}render(){return this.state.error?null:this.props.children}}L0.getDerivedStateFromError=()=>({error:!0});const T0="__default",f2=new Map,Y4=o=>o&&!!o.memoized&&!!o.changes;function P0(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 di=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 a=it.arr(o);if(a&&s==="reference")return o===n;if((a||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(a&&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 K4(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 J4(o){o.dispose&&o.type!=="Scene"&&o.dispose();for(const n in o)n.dispose==null||n.dispose(),delete o[n]}function Mr(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,a)=>r[a],o),{target:s,key:i}}else return{target:s,key:n}}const d2=/-\d+$/;function Fs(o,n,s){if(it.str(s)){if(d2.test(s)){const r=s.replace(d2,""),{target:a,key:f}=il(o,r);Array.isArray(a[f])||(a[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 h2(o,n,s){var c,i;if(it.str(s)){const{target:r,key:a}=il(o,s),f=n.__r3f.previousAttach;f===void 0?delete r[a]:r[a]=f}else(c=n.__r3f)==null||c.previousAttach==null||c.previousAttach(o,n);(i=n.__r3f)==null||delete i.previousAttach}function b0(o,{children:n,key:s,ref:c,...i},{children:r,key:a,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 M=Object.keys(u);for(let k=0;k{var _;if((_=o.__r3f)!=null&&_.primitive&&M==="object"||it.equ(k,u[M]))return;if(/^on(Pointer|Click|DoubleClick|ContextMenu|Wheel)/.test(M))return x.push([M,k,!0,[]]);let w=[];M.includes("-")&&(w=M.split("-")),x.push([M,k,!1,w]);for(const L in i){const I=i[L];L.startsWith(`${M}-`)&&x.push([L,I,!1,L.split("-")])}});const S={...i};return g.memoizedProps&&g.memoizedProps.args&&(S.args=g.memoizedProps.args),g.memoizedProps&&g.memoizedProps.attach&&(S.attach=g.memoizedProps.attach),{memoized:S,changes:x}}const q4=typeof process<"u"&&!1;function Ds(o,n){var s,c,i;const r=(s=o.__r3f)!=null?s:{},a=r.root,f=(c=a==null||a.getState==null?void 0:a.getState())!=null?c:{},{memoized:u,changes:p}=Y4(n)?n:b0(o,n),h=r.eventCount;o.__r3f&&(o.__r3f.memoizedProps=u);for(let v=0;vL[I],o),!(w&&w.set))){const[L,...I]=k.reverse();_=I.reverse().reduce((U,b)=>U[b],o),x=L}if(S===T0+"remove")if(_.constructor){let L=f2.get(_.constructor);L||(L=new _.constructor,f2.set(_.constructor,L)),S=L[x]}else S=0;if(M)S?r.handlers[x]=S:delete r.handlers[x],r.eventCount=Object.keys(r.handlers).length;else if(w&&w.set&&(w.copy||w instanceof Is)){if(Array.isArray(S))w.fromArray?w.fromArray(S):w.set(...S);else if(w.copy&&S&&S.constructor&&(q4?w.constructor.name===S.constructor.name:w.constructor===S.constructor))w.copy(S);else if(S!==void 0){const L=w instanceof xi;!L&&w.setScalar?w.setScalar(S):w instanceof Is&&S instanceof Is?w.mask=S.mask:w.set(S),!k0()&&!f.linear&&L&&w.convertSRGBToLinear()}}else if(_[x]=S,_[x]instanceof vl&&_[x].format===du&&_[x].type===hu){const L=_[x];Os(L)&&Os(f.gl)?L.colorSpace=f.gl.outputColorSpace:L.encoding=f.gl.outputEncoding}Lr(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 Lr(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 $4(o,n){o.manual||(E0(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 wo(o){return(o.eventObject||o.object).uuid+"/"+o.index+o.instanceId}function e9(){var o;const n=typeof self<"u"&&self||typeof window<"u"&&window;if(!n)return Pr.DefaultEventPriority;switch((o=n.event)==null?void 0:o.type){case"click":case"contextmenu":case"dblclick":case"pointercancel":case"pointerdown":case"pointerup":return Pr.DiscreteEventPriority;case"pointermove":case"pointerout":case"pointerover":case"pointerenter":case"pointerleave":case"wheel":return Pr.ContinuousEventPriority;default:return Pr.DefaultEventPriority}}function j0(o,n,s,c){const i=s.get(n);i&&(s.delete(n),s.size===0&&(o.delete(c),i.target.releasePointerCapture(c)))}function t9(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)=>{j0(s.capturedMap,n,c,i)})}function n9(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 _=0;_{const L=di(_.object),I=di(w.object);return!L||!I?_.distance-w.distance:I.events.priority-L.events.priority||_.distance-w.distance}).filter(_=>{const w=wo(_);return g.has(w)?!1:(g.add(w),!0)});h.events.filter&&(M=h.events.filter(M,h));for(const _ of M){let w=_.object;for(;w;){var k;(k=w.__r3f)!=null&&k.eventCount&&v.push({..._,eventObject:w}),w=w.parent}}if("pointerId"in u&&h.internal.capturedMap.has(u.pointerId))for(let _ of h.internal.capturedMap.get(u.pointerId).values())g.has(wo(_.intersection))||v.push(_.intersection);return v}function i(u,p,h,g){const v=o.getState();if(u.length){const x={stopped:!1};for(const S of u){const M=di(S.object)||v,{raycaster:k,pointer:_,camera:w,internal:L}=M,I=new ct(_.x,_.y,0).unproject(w),U=ee=>{var z,A;return(z=(A=L.capturedMap.get(ee))==null?void 0:A.has(S.eventObject))!=null?z:!1},b=ee=>{const z={intersection:S,target:p.target};L.capturedMap.has(ee)?L.capturedMap.get(ee).set(S.eventObject,z):L.capturedMap.set(ee,new Map([[S.eventObject,z]])),p.target.setPointerCapture(ee)},O=ee=>{const z=L.capturedMap.get(ee);z&&j0(L.capturedMap,S.eventObject,z,ee)};let B={};for(let ee in p){let z=p[ee];typeof z!="function"&&(B[ee]=z)}let Q={...S,...B,pointer:_,intersections:u,stopped:x.stopped,delta:h,unprojectedPoint:I,ray:k.ray,camera:w,stopPropagation(){const ee="pointerId"in p&&L.capturedMap.get(p.pointerId);if((!ee||ee.has(S.eventObject))&&(Q.stopped=x.stopped=!0,L.hovered.size&&Array.from(L.hovered.values()).find(z=>z.eventObject===S.eventObject))){const z=u.slice(0,u.indexOf(S));r([...z,S])}},target:{hasPointerCapture:U,setPointerCapture:b,releasePointerCapture:O},currentTarget:{hasPointerCapture:U,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(wo(h)),v!=null&&v.eventCount){const S={...h,intersections:u};x.onPointerOut==null||x.onPointerOut(S),x.onPointerLeave==null||x.onPointerLeave(S)}}}function a(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",S=u==="onClick"||u==="onContextMenu"||u==="onDoubleClick",k=c(h,x?s:void 0),_=S?n(h):0;u==="onPointerDown"&&(v.initialClick=[h.offsetX,h.offsetY],v.initialHits=k.map(L=>L.eventObject)),S&&!k.length&&_<=2&&(a(h,v.interaction),g&&g(h)),x&&r(k);function w(L){const I=L.eventObject,U=I.__r3f,b=U==null?void 0:U.handlers;if(U!=null&&U.eventCount)if(x){if(b.onPointerOver||b.onPointerEnter||b.onPointerOut||b.onPointerLeave){const O=wo(L),B=v.hovered.get(O);B?B.stopped&&L.stopPropagation():(v.hovered.set(O,L),b.onPointerOver==null||b.onPointerOver(L),b.onPointerEnter==null||b.onPointerEnter(L))}b.onPointerMove==null||b.onPointerMove(L)}else{const O=b[u];O?(!S||v.initialHits.includes(I))&&(a(h,v.interaction.filter(B=>!v.initialHits.includes(B))),O(L)):S&&v.initialHits.includes(I)&&a(h,v.interaction.filter(B=>!v.initialHits.includes(B)))}}i(k,h,_,w)}}return{handlePointer:f}}const U0=o=>!!(o!=null&&o.render),I0=T.createContext(null),r9=(o,n)=>{const s=F4((f,u)=>{const p=new ct,h=new ct,g=new ct;function v(_=u().camera,w=h,L=u().size){const{width:I,height:U,top:b,left:O}=L,B=I/U;w instanceof ct?g.copy(w):g.set(...w);const Q=_.getWorldPosition(p).distanceTo(g);if(E0(_))return{width:I/_.zoom,height:U/_.zoom,top:b,left:O,factor:1,distance:Q,aspect:B};{const ee=_.fov*Math.PI/180,z=2*Math.tan(ee/2)*Q,A=z*(I/U);return{width:A,height:z,top:b,left:O,factor:I/A,distance:Q,aspect:B}}}let x;const S=_=>f(w=>({performance:{...w.performance,current:_}})),M=new $1;return{set:f,get:u,gl:null,camera:null,raycaster:null,events:{priority:1,enabled:!0,connected:!1},xr:null,scene:null,invalidate:(_=1)=>o(u(),_),advance:(_,w)=>n(_,w,u()),legacy:!1,linear:!1,flat:!1,controls:null,clock:new _u,pointer:M,mouse:M,frameloop:"always",onPointerMissed:void 0,performance:{current:1,min:.5,max:1,debounce:200,regress:()=>{const _=u();x&&clearTimeout(x),_.performance.current!==_.performance.min&&S(_.performance.min),x=setTimeout(()=>S(u().performance.max),_.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:_=>f(w=>({...w,events:{...w.events,..._}})),setSize:(_,w,L,I,U)=>{const b=u().camera,O={width:_,height:w,top:I||0,left:U||0,updateStyle:L};f(B=>({size:O,viewport:{...B.viewport,...v(b,h,O)}}))},setDpr:_=>f(w=>{const L=P0(_);return{viewport:{...w.viewport,dpr:L,initialDpr:w.viewport.initialDpr||L}}}),setFrameloop:(_="always")=>{const w=u().clock;w.stop(),w.elapsedTime=0,_!=="never"&&(w.start(),w.elapsedTime=0),f(()=>({frameloop:_}))},previousRoot:void 0,internal:{active:!1,priority:0,frames:0,lastEvent:T.createRef(),interaction:[],hovered:new Map,subscribers:[],initialClick:[0,0],initialHits:[],capturedMap:new Map,subscribe:(_,w,L)=>{const I=u().internal;return I.priority=I.priority+(w>0?1:0),I.subscribers.push({ref:_,priority:w,store:L}),I.subscribers=I.subscribers.sort((U,b)=>U.priority-b.priority),()=>{const U=u().internal;U!=null&&U.subscribers&&(U.priority=U.priority-(w>0?1:0),U.subscribers=U.subscribers.filter(b=>b.ref!==_))}}}}}),c=s.getState();let i=c.size,r=c.viewport.dpr,a=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,$4(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!==a&&(a=f,g(x=>({viewport:{...x.viewport,...x.viewport.getCurrentViewport(f)}})))}),s.subscribe(f=>o(f)),s};function kl(o,n){const s={callback:o};return n.add(s),()=>void n.delete(s)}let So,R0=new Set,A0=new Set,O0=new Set;const i9=o=>kl(o,R0),o9=o=>kl(o,A0),s9=o=>kl(o,O0);function Bs(o,n){if(o.size)for(const{callback:s}of o.values())s(n)}function hi(o,n){switch(o){case"before":return Bs(R0,n);case"after":return Bs(A0,n);case"tail":return Bs(O0,n)}}let Hs,zs;function Vs(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),Hs=n.internal.subscribers,So=0;So0)&&!((p=i.gl.xr)!=null&&p.isPresenting)&&(s+=Vs(u,i))}if(hi("after",u),s===0)return hi("tail",u),n=!1,cancelAnimationFrame(c)}function a(u,p=1){var h;if(!u)return o.forEach(g=>a(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&&hi("before",u),h)Vs(u,h,g);else for(const v of o.values())Vs(u,v.store.getState());p&&hi("after",u)}return{loop:r,invalidate:a,advance:f}}function F0(){const o=T.useContext(I0);if(!o)throw new Error("R3F: Hooks can only be used within the Canvas component!");return o}function Ar(o=s=>s,n){return F0()(o,n)}function _i(o,n=0){const s=F0(),c=s.getState().internal.subscribe,i=M0(o);return Si(()=>c(i,n,s),[n,c,s]),null}const p2=new WeakMap;function D0(o,n){return function(s,...c){let i=p2.get(s);return i||(i=new s,p2.set(s,i)),o&&o(i),Promise.all(c.map(r=>new Promise((a,f)=>i.load(r,u=>{u.scene&&Object.assign(u,K4(u.scene)),a(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 B0(o,n,s,c){const i=Array.isArray(n)?n:[n],r=V4(D0(s,c),[o,...i],{equal:it.equ});return Array.isArray(n)?r:r[0]}B0.preload=function(o,n,s){const c=Array.isArray(n)?n:[n];return N4(D0(s),[o,...c])};B0.clear=function(o,n){const s=Array.isArray(n)?n:[n];return G4([o,...s])};const Rr=new Map,{invalidate:m2,advance:g2}=l9(Rr),{reconciler:Io,applyProps:wr}=Z4(Rr,e9),Sr={objects:"shallow",strict:!1},a9=(o,n)=>{const s=typeof o=="function"?o(n):o;return U0(s)?s:new Cu({powerPreference:"high-performance",canvas:n,antialias:!0,alpha:!0,...o})};function u9(o,n){const s=typeof HTMLCanvasElement<"u"&&o instanceof HTMLCanvasElement;if(n){const{width:c,height:i,top:r,left:a,updateStyle:f=s}=n;return{width:c,height:i,top:r,left:a,updateStyle:f}}else if(typeof HTMLCanvasElement<"u"&&o instanceof HTMLCanvasElement&&o.parentElement){const{width:c,height:i,top:r,left:a}=o.parentElement.getBoundingClientRect();return{width:c,height:i,top:r,left:a,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 c9(o){const n=Rr.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||r9(m2,g2),a=s||Io.createContainer(r,Pr.ConcurrentRoot,null,!1,null,"",i,null);n||Rr.set(o,{fiber:a,store:r});let f,u=!1,p;return{configure(h={}){let{gl:g,size:v,scene:x,events:S,onCreated:M,shadows:k=!1,linear:_=!1,flat:w=!1,legacy:L=!1,orthographic:I=!1,frameloop:U="always",dpr:b=[1,2],performance:O,raycaster:B,camera:Q,onPointerMissed:ee}=h,z=r.getState(),A=z.gl;z.gl||z.set({gl:A=a9(g,o)});let J=z.raycaster;J||z.set({raycaster:J=new mu});const{params:K,...re}=B||{};if(it.equ(re,J,Sr)||wr(J,{...re}),it.equ(K,J.params,Sr)||wr(J,{params:{...J.params,...K}}),!z.camera||z.camera===p&&!it.equ(p,Q,Sr)){p=Q;const D=Q instanceof yu,X=D?Q:I?new Cl(0,0,0,0,.1,1e3):new yl(75,0,.1,1e3);D||(X.position.z=5,Q&&wr(X,Q),!z.camera&&!(Q!=null&&Q.rotation)&&X.lookAt(0,0,0)),z.set({camera:X}),J.camera=X}if(!z.scene){let D;x instanceof Uo?D=x:(D=new Uo,x&&wr(D,x)),z.set({scene:Mr(D)})}if(!z.xr){var se;const D=(W,ie)=>{const Y=r.getState();Y.frameloop!=="never"&&g2(W,!0,Y,ie)},X=()=>{const W=r.getState();W.gl.xr.enabled=W.gl.xr.isPresenting,W.gl.xr.setAnimationLoop(W.gl.xr.isPresenting?D:null),W.gl.xr.isPresenting||m2(W)},q={connect(){const W=r.getState().gl;W.xr.addEventListener("sessionstart",X),W.xr.addEventListener("sessionend",X)},disconnect(){const W=r.getState().gl;W.xr.removeEventListener("sessionstart",X),W.xr.removeEventListener("sessionend",X)}};typeof((se=A.xr)==null?void 0:se.addEventListener)=="function"&&q.connect(),z.set({xr:q})}if(A.shadowMap){const D=A.shadowMap.enabled,X=A.shadowMap.type;if(A.shadowMap.enabled=!!k,it.boo(k))A.shadowMap.type=Rs;else if(it.str(k)){var pe;const q={basic:xu,percentage:wu,soft:Rs,variance:Su};A.shadowMap.type=(pe=q[k])!=null?pe:Rs}else it.obj(k)&&Object.assign(A.shadowMap,k);(D!==A.shadowMap.enabled||X!==A.shadowMap.type)&&(A.shadowMap.needsUpdate=!0)}const N=k0();N&&("enabled"in N?N.enabled=!L:"legacyMode"in N&&(N.legacyMode=L)),wr(A,{outputEncoding:_?3e3:3001,toneMapping:w?gu:vu}),z.legacy!==L&&z.set(()=>({legacy:L})),z.linear!==_&&z.set(()=>({linear:_})),z.flat!==w&&z.set(()=>({flat:w})),g&&!it.fun(g)&&!U0(g)&&!it.equ(g,A,Sr)&&wr(A,g),S&&!z.events.handlers&&z.set({events:S(r)});const P=u9(o,v);return it.equ(P,z.size,Sr)||z.setSize(P.width,P.height,P.updateStyle,P.top,P.left),b&&z.viewport.dpr!==P0(b)&&z.setDpr(b),z.frameloop!==U&&z.setFrameloop(U),z.onPointerMissed||z.set({onPointerMissed:ee}),O&&!it.equ(O,z.performance,Sr)&&z.set(D=>({performance:{...D.performance,...O}})),f=M,u=!0,this},render(h){return u||this.configure(),Io.updateContainer(T.createElement(f9,{store:r,children:h,onCreated:f,rootElement:o}),a,null,()=>{}),r},unmount(){H0(o)}}}function f9({store:o,children:n,onCreated:s,rootElement:c}){return Si(()=>{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)},[]),T.createElement(I0.Provider,{value:o},n)}function H0(o,n){const s=Rr.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),Io.updateContainer(null,c,null,()=>{i&&setTimeout(()=>{try{var r,a,f,u;i.events.disconnect==null||i.events.disconnect(),(r=i.gl)==null||(a=r.renderLists)==null||a.dispose==null||a.dispose(),(f=i.gl)==null||f.forceContextLoss==null||f.forceContextLoss(),(u=i.gl)!=null&&u.xr&&i.xr.disconnect(),J4(i),Rr.delete(o),n&&n(o)}catch{}},500)})}}Io.injectIntoDevTools({bundleType:0,rendererPackageName:"@react-three/fiber",version:T.version});function sl(o,n,s){var c,i,r,a,f;n==null&&(n=100);function u(){var h=Date.now()-a;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,a=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 d9=sl;const v2=d0(d9);function h9(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[a,f]=T.useState({left:0,top:0,width:0,height:0,bottom:0,right:0,x:0,y:0}),u=T.useRef({element:null,scrollContainers:null,resizeObserver:null,lastBounds:a}),p=n?typeof n=="number"?n:n.scroll:null,h=n?typeof n=="number"?n:n.resize:null,g=T.useRef(!1);T.useEffect(()=>(g.current=!0,()=>void(g.current=!1)));const[v,x,S]=T.useMemo(()=>{const w=()=>{if(!u.current.element)return;const{left:L,top:I,width:U,height:b,bottom:O,right:B,x:Q,y:ee}=u.current.element.getBoundingClientRect(),z={left:L,top:I,width:U,height:b,bottom:O,right:B,x:Q,y:ee};u.current.element instanceof HTMLElement&&i&&(z.height=u.current.element.offsetHeight,z.width=u.current.element.offsetWidth),Object.freeze(z),g.current&&!v9(u.current.lastBounds,z)&&f(u.current.lastBounds=z)};return[w,h?v2(w,h):w,p?v2(w,p):w]},[f,i,p,h]);function M(){u.current.scrollContainers&&(u.current.scrollContainers.forEach(w=>w.removeEventListener("scroll",S,!0)),u.current.scrollContainers=null),u.current.resizeObserver&&(u.current.resizeObserver.disconnect(),u.current.resizeObserver=null)}function k(){u.current.element&&(u.current.resizeObserver=new r(S),u.current.resizeObserver.observe(u.current.element),s&&u.current.scrollContainers&&u.current.scrollContainers.forEach(w=>w.addEventListener("scroll",S,{capture:!0,passive:!0})))}const _=w=>{!w||w===u.current.element||(M(),u.current.element=w,u.current.scrollContainers=z0(w),k())};return m9(S,!!s),p9(x),T.useEffect(()=>{M(),k()},[s,S,x]),T.useEffect(()=>M,[]),[_,a,v]}function p9(o){T.useEffect(()=>{const n=o;return window.addEventListener("resize",n),()=>void window.removeEventListener("resize",n)},[o])}function m9(o,n){T.useEffect(()=>{if(n){const s=o;return window.addEventListener("scroll",s,{capture:!0,passive:!0}),()=>void window.removeEventListener("scroll",s,!0)}},[o,n])}function z0(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,...z0(o.parentElement)]}const g9=["x","y","top","bottom","left","right","width","height"],v9=(o,n)=>g9.every(s=>o[s]===n[s]);var C9=Object.defineProperty,y9=Object.defineProperties,x9=Object.getOwnPropertyDescriptors,C2=Object.getOwnPropertySymbols,w9=Object.prototype.hasOwnProperty,S9=Object.prototype.propertyIsEnumerable,y2=(o,n,s)=>n in o?C9(o,n,{enumerable:!0,configurable:!0,writable:!0,value:s}):o[n]=s,x2=(o,n)=>{for(var s in n||(n={}))w9.call(n,s)&&y2(o,s,n[s]);if(C2)for(var s of C2(n))S9.call(n,s)&&y2(o,s,n[s]);return o},_9=(o,n)=>y9(o,x9(n));function V0(o,n,s){if(!o)return;if(s(o)===!0)return o;let c=n?o.return:o.child;for(;c;){const i=V0(c,n,s);if(i)return i;c=n?null:c.sibling}}function N0(o){try{return Object.defineProperties(o,{_currentRenderer:{get(){return null},set(){}},_currentRenderer2:{get(){return null},set(){}}})}catch{return o}}const El=N0(T.createContext(null));class G0 extends T.Component{render(){return T.createElement(El.Provider,{value:this._reactInternals},this.props.children)}}const{ReactCurrentOwner:w2,ReactCurrentDispatcher:S2}=T.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function k9(){const o=T.useContext(El);if(o===null)throw new Error("its-fine: useFiber must be called within a !");const n=T.useId();return T.useMemo(()=>{for(const c of[w2==null?void 0:w2.current,o,o==null?void 0:o.alternate]){if(!c)continue;const i=V0(c,!1,r=>{let a=r.memoizedState;for(;a;){if(a.memoizedState===n)return!0;a=a.next}});if(i)return i}},[o,n])}function E9(){var o,n;const s=k9(),[c]=T.useState(()=>new Map);c.clear();let i=s;for(;i;){const r=(o=i.type)==null?void 0:o._context;r&&r!==El&&!c.has(r)&&c.set(r,(n=S2==null?void 0:S2.current)==null?void 0:n.readContext(N0(r))),i=i.return}return c}function M9(){const o=E9();return T.useMemo(()=>Array.from(o.keys()).reduce((n,s)=>c=>T.createElement(n,null,T.createElement(s.Provider,_9(x2({},c),{value:o.get(s)}))),n=>T.createElement(G0,x2({},n))),[o])}const Ns={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 L9(o){const{handlePointer:n}=n9(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(Ns).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(a=>({events:{...a.events,connected:s}})),Object.entries((c=r.handlers)!=null?c:[]).forEach(([a,f])=>{const[u,p]=Ns[a];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,a])=>{if(c&&c.connected instanceof HTMLElement){const[f]=Ns[r];c.connected.removeEventListener(f,a)}}),s(r=>({events:{...r.events,connected:void 0}}))}}}}const T9=T.forwardRef(function({children:n,fallback:s,resize:c,style:i,gl:r,events:a=L9,eventSource:f,eventPrefix:u,shadows:p,linear:h,flat:g,legacy:v,orthographic:x,frameloop:S,dpr:M,performance:k,raycaster:_,camera:w,scene:L,onPointerMissed:I,onCreated:U,...b},O){T.useMemo(()=>W4(ku),[]);const B=M9(),[Q,ee]=h9({scroll:!0,debounce:{scroll:50,resize:0},...c}),z=T.useRef(null),A=T.useRef(null);T.useImperativeHandle(O,()=>z.current);const J=M0(I),[K,re]=T.useState(!1),[se,pe]=T.useState(!1);if(K)throw K;if(se)throw se;const N=T.useRef(null);Si(()=>{const G=z.current;ee.width>0&&ee.height>0&&G&&(N.current||(N.current=c9(G)),N.current.configure({gl:r,events:a,shadows:p,linear:h,flat:g,legacy:v,orthographic:x,frameloop:S,dpr:M,performance:k,raycaster:_,camera:w,scene:L,size:ee,onPointerMissed:(...P)=>J.current==null?void 0:J.current(...P),onCreated:P=>{P.events.connect==null||P.events.connect(f?X4(f)?f.current:f:A.current),u&&P.setEvents({compute:(D,X)=>{const q=D[u+"X"],W=D[u+"Y"];X.pointer.set(q/X.size.width*2-1,-(W/X.size.height)*2+1),X.raycaster.setFromCamera(X.pointer,X.camera)}}),U==null||U(P)}}),N.current.render(T.createElement(B,null,T.createElement(L0,{set:pe},T.createElement(T.Suspense,{fallback:T.createElement(Q4,{set:re})},n)))))}),T.useEffect(()=>{const G=z.current;if(G)return()=>H0(G)},[]);const H=f?"none":"auto";return T.createElement("div",q1({ref:A,style:{position:"relative",width:"100%",height:"100%",overflow:"hidden",pointerEvents:H,...i}},b),T.createElement("div",{ref:Q,style:{width:"100%",height:"100%"}},T.createElement("canvas",{ref:z,style:{display:"block"}},s)))}),P9=T.forwardRef(function(n,s){return T.createElement(G0,null,T.createElement(T9,q1({},n,{ref:s})))}),ki=new ct,Ml=new ct,b9=new ct;function j9(o,n,s){const c=ki.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 U9(o,n){const s=ki.setFromMatrixPosition(o.matrixWorld),c=Ml.setFromMatrixPosition(n.matrixWorld),i=s.sub(c),r=n.getWorldDirection(b9);return i.angleTo(r)>Math.PI/2}function I9(o,n,s,c){const i=ki.setFromMatrixPosition(o.matrixWorld),r=i.clone();r.project(n),s.setFromCamera(r,n);const a=s.intersectObjects(c,!0);if(a.length){const f=a[0].distance;return i.distanceTo(s.ray.origin)Math.abs(o)<1e-10?0:o;function W0(o,n,s=""){let c="matrix3d(";for(let i=0;i!==16;i++)c+=ll(n[i]*o.elements[i])+(i!==15?",":")");return s+c}const O9=(o=>n=>W0(n,o))([1,-1,1,1,1,-1,1,1,1,-1,1,1,1,-1,1,1]),F9=(o=>(n,s)=>W0(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 D9(o){return o&&typeof o=="object"&&"current"in o}const W8=T.forwardRef(({children:o,eps:n=.001,style:s,className:c,prepend:i,center:r,fullscreen:a,portal:f,distanceFactor:u,sprite:p=!1,transform:h=!1,occlude:g,onOcclude:v,castShadow:x,receiveShadow:S,material:M,geometry:k,zIndexRange:_=[16777271,0],calculatePosition:w=j9,as:L="div",wrapperClass:I,pointerEvents:U="auto",...b},O)=>{const{gl:B,camera:Q,scene:ee,size:z,raycaster:A,events:J,viewport:K}=Ar(),[re]=T.useState(()=>document.createElement(L)),se=T.useRef(),pe=T.useRef(null),N=T.useRef(0),H=T.useRef([0,0]),G=T.useRef(null),P=T.useRef(null),D=(f==null?void 0:f.current)||J.connected||B.domElement.parentNode,X=T.useRef(null),q=T.useRef(!1),W=T.useMemo(()=>g&&g!=="blending"||Array.isArray(g)&&g.length&&D9(g[0]),[g]);T.useLayoutEffect(()=>{const fe=B.domElement;g&&g==="blending"?(fe.style.zIndex=`${Math.floor(_[0]/2)}`,fe.style.position="absolute",fe.style.pointerEvents="none"):(fe.style.zIndex=null,fe.style.position=null,fe.style.pointerEvents=null)},[g]),T.useLayoutEffect(()=>{if(pe.current){const fe=se.current=h0(re);if(ee.updateMatrixWorld(),h)re.style.cssText="position:absolute;top:0;left:0;pointer-events:none;overflow:hidden;";else{const $=w(pe.current,Q,z);re.style.cssText=`position:absolute;top:0;left:0;transform:translate3d(${$[0]}px,${$[1]}px,0);transform-origin:0 0;`}return D&&(i?D.prepend(re):D.appendChild(re)),()=>{D&&D.removeChild(re),fe.unmount()}}},[D,h]),T.useLayoutEffect(()=>{I&&(re.className=I)},[I]);const ie=T.useMemo(()=>h?{position:"absolute",top:0,left:0,width:z.width,height:z.height,transformStyle:"preserve-3d",pointerEvents:"none"}:{position:"absolute",transform:r?"translate3d(-50%,-50%,0)":"none",...a&&{top:-z.height/2,left:-z.width/2,width:z.width,height:z.height},...s},[s,r,a,z,h]),Y=T.useMemo(()=>({position:"absolute",pointerEvents:U}),[U]);T.useLayoutEffect(()=>{if(q.current=!1,h){var fe;(fe=se.current)==null||fe.render(T.createElement("div",{ref:G,style:ie},T.createElement("div",{ref:P,style:Y},T.createElement("div",{ref:O,className:c,style:s,children:o}))))}else{var $;($=se.current)==null||$.render(T.createElement("div",{ref:O,style:ie,className:c,children:o}))}});const ne=T.useRef(!0);_i(fe=>{if(pe.current){Q.updateMatrixWorld(),pe.current.updateWorldMatrix(!0,!1);const $=h?H.current:w(pe.current,Q,z);if(h||Math.abs(N.current-Q.zoom)>n||Math.abs(H.current[0]-$[0])>n||Math.abs(H.current[1]-$[1])>n){const te=U9(pe.current,Q);let xe=!1;W&&(g!=="blending"?xe=[ee]:Array.isArray(g)&&(xe=g.map(Te=>Te.current)));const Ue=ne.current;if(xe){const Te=I9(pe.current,Q,A,xe);ne.current=Te&&!te}else ne.current=!te;Ue!==ne.current&&(v?v(!ne.current):re.style.display=ne.current?"block":"none");const ce=Math.floor(_[0]/2),Se=g?W?[_[0],ce]:[ce-1,0]:_;if(re.style.zIndex=`${A9(pe.current,Q,Se)}`,h){const[Te,le]=[z.width/2,z.height/2],_e=Q.projectionMatrix.elements[5]*le,{isOrthographicCamera:me,top:oe,left:Pe,bottom:ye,right:we}=Q,ge=O9(Q.matrixWorldInverse),Ge=me?`scale(${_e})translate(${ll(-(we+Pe)/2)}px,${ll((oe+ye)/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=z.width+"px",re.style.height=z.height+"px",re.style.perspective=me?"":`${_e}px`,G.current&&P.current&&(G.current.style.transform=`${Ge}${ge}translate(${Te}px,${le}px)`,P.current.style.transform=F9(Oe,1/((u||10)/400)))}else{const Te=u===void 0?1:R9(pe.current,Q)*u;re.style.transform=`translate3d(${$[0]}px,${$[1]}px,0) scale(${Te})`}H.current=$,N.current=Q.zoom}}if(!W&&X.current&&!q.current)if(h){if(G.current){const $=G.current.children[0];if($!=null&&$.clientWidth&&$!=null&&$.clientHeight){const{isOrthographicCamera:te}=Q;if(te||k)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 xe=(u||10)/400,Ue=$.clientWidth*xe,ce=$.clientHeight*xe;X.current.scale.set(Ue,ce,1)}q.current=!0}}}else{const $=re.children[0];if($!=null&&$.clientWidth&&$!=null&&$.clientHeight){const te=1/K.factor,xe=$.clientWidth*te,Ue=$.clientHeight*te;X.current.scale.set(xe,Ue,1),q.current=!0}X.current.lookAt(fe.camera.position)}});const ue=T.useMemo(()=>({vertexShader:h?void 0:` + /* + This shader is from the THREE's SpriteMaterial. + We need to turn the backing plane into a Sprite + (make it always face the camera) if "transfrom" + is false. + */ + #include + + void main() { + vec2 center = vec2(0., 1.); + float rotation = 0.0; + + // This is somewhat arbitrary, but it seems to work well + // Need to figure out how to derive this dynamically if it even matters + float size = 0.03; + + vec4 mvPosition = modelViewMatrix * vec4( 0.0, 0.0, 0.0, 1.0 ); + vec2 scale; + scale.x = length( vec3( modelMatrix[ 0 ].x, modelMatrix[ 0 ].y, modelMatrix[ 0 ].z ) ); + scale.y = length( vec3( modelMatrix[ 1 ].x, modelMatrix[ 1 ].y, modelMatrix[ 1 ].z ) ); + + bool isPerspective = isPerspectiveMatrix( projectionMatrix ); + if ( isPerspective ) scale *= - mvPosition.z; + + vec2 alignedPosition = ( position.xy - ( center - vec2( 0.5 ) ) ) * scale * size; + vec2 rotatedPosition; + rotatedPosition.x = cos( rotation ) * alignedPosition.x - sin( rotation ) * alignedPosition.y; + rotatedPosition.y = sin( rotation ) * alignedPosition.x + cos( rotation ) * alignedPosition.y; + mvPosition.xy += rotatedPosition; + + gl_Position = projectionMatrix * mvPosition; + } + `,fragmentShader:` + void main() { + gl_FragColor = vec4(0.0, 0.0, 0.0, 0.0); + } + `}),[h]);return T.createElement("group",q1({},b,{ref:pe}),g&&!W&&T.createElement("mesh",{castShadow:x,receiveShadow:S,ref:X},k||T.createElement("planeGeometry",null),M||T.createElement("shaderMaterial",{side:xl,vertexShader:ue.vertexShader,fragmentShader:ue.fragmentShader})))});function Z8(o){return function(n){o.forEach(function(s){typeof s=="function"?s(n):s!=null&&(s.current=n)})}}function B9(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 _2(o,n,s){return n===0||Math.abs(n)===1/0?Math.pow(o,s*5):o*n*s/(n+s*o)}function k2(o,n,s,c=.15){return c===0?B9(o,n,s):os?+_2(o-s,s-n,c)+s:o}function H9(o,[n,s],[c,i]){const[[r,a],[f,u]]=o;return[k2(n,r,a,c),k2(s,f,u,i)]}function z9(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 V9(o){var n=z9(o,"string");return typeof n=="symbol"?n:String(n)}function un(o,n,s){return n=V9(n),n in o?Object.defineProperty(o,n,{value:s,enumerable:!0,configurable:!0,writable:!0}):o[n]=s,o}function E2(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 K9(o){return o.type==="touchend"||o.type==="touchcancel"?o.changedTouches:o.targetTouches}function Q0(o){return Oo(o)?K9(o)[0]:o}function J9(o){return Y9(o).map(n=>n.identifier)}function Gs(o){const n=Q0(o);return Oo(o)?n.identifier:n.pointerId}function L2(o){const n=Q0(o);return[n.clientX,n.clientY]}function q9(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 Ro(o,...n){return typeof o=="function"?o(...n):o}function $9(){}function e6(...o){return o.length===0?$9:o.length===1?o[0]:function(){let n;for(const s of o)n=s.apply(this,arguments)||n;return n}}function T2(o,n){return Object.assign({},n,o||{})}const t6=32;class n6{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?Ro(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,q9(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[a,f]=s._movement,[u,p]=c.threshold,{_step:h,values:g}=s;if(c.hasCustomTransform?(h[0]===!1&&(h[0]=Math.abs(a)>=u&&g[0]),h[1]===!1&&(h[1]=Math.abs(f)>=p&&g[1])):(h[0]===!1&&(h[0]=Math.abs(a)>=u&&Math.sign(a)*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?a-h[0]:0,v[1]=h[1]!==!1?f-h[1]:0;this.restrictToAxis&&!s._blocked&&this.restrictToAxis(v);const x=s.offset,S=s._active&&!s._blocked||s.active;S&&(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=Ro(c.bounds,s)),this.setup&&this.setup()),s.movement=v,this.computeOffset()));const[M,k]=s.offset,[[_,w],[L,I]]=s._bounds;s.overflow=[M<_?-1:M>w?1:0,kI?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 U=s._active?c.rubberband||[0,0]:[0,0];if(s.offset=H9(s._bounds,s.offset,U),s.delta=Zt.sub(s.offset,x),this.computeMovement(),S&&(!s.last||r>t6)){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 r6([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 i6 extends n6{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[X0(n)]:c.axisThreshold;s.axis=r6(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 o6=o=>o,P2=.15,Y0={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[P2,P2];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||o6},threshold(o){return Zt.toVector(o,0)}},s6=0,Ei=ft(ft({},Y0),{},{axis(o,n,{axis:s}){if(this.lockDirection=s==="lock",!this.lockDirection)return s},axisThreshold(o=s6){return o},bounds(o={}){if(typeof o=="function")return r=>Ei.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]]}}),b2={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 l6 extends i6{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=Ei.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=Gs(n),c._pointerActive=!0,this.computeValues(L2(n)),this.computeInitial(),s.preventScrollAxis&&X0(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=Gs(n);if(s._pointerId!==void 0&&i!==s._pointerId)return;const r=L2(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=Gs(n);if(s._pointerId!==void 0&&i!==s._pointerId)return;this.state._pointerActive=!1,this.setActive(),this.compute(n);const[r,a]=s._distance;if(s.tap=r<=c.tapsThreshold&&a<=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,S]=c.swipe.distance,M=c.swipe.duration;if(s.elapsedTimeg&&Math.abs(p)>x&&(s.swipe[0]=Math.sign(f)),_>v&&Math.abs(h)>S&&(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,a6(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=b2[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 b2&&(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 a6(o){"persist"in o&&typeof o.persist=="function"&&o.persist()}const Mi=typeof window<"u"&&window.document&&window.document.createElement;function K0(){return Mi&&"ontouchstart"in window}function u6(){return K0()||Mi&&window.navigator.maxTouchPoints>1}function c6(){return Mi&&"onpointerdown"in window}function f6(){return Mi&&"exitPointerLock"in window.document}function d6(){try{return"constructor"in GestureEvent}catch{return!1}}const An={isBrowser:Mi,gesture:d6(),touch:K0(),touchscreen:u6(),pointer:c6(),pointerLock:f6()},h6=250,p6=180,m6=.5,g6=50,v6=250,C6=10,j2={mouse:0,touch:0,pen:8},y6=ft(ft({},Ei),{},{device(o,n,{pointer:{touch:s=!1,lock:c=!1,mouse:i=!1}={}}){return this.pointerLock=c&&An.pointerLock,An.touch&&s?"touch":this.pointerLock?"mouse":An.pointer&&!i?"pointer":An.touch?"touch":"mouse"},preventScrollAxis(o,n,{preventScroll:s}){if(this.preventScrollDelay=typeof s=="number"?s:s||s===void 0&&o?h6:void 0,!(!An.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=m6,distance:n=g6,duration:s=v6}={}){return{velocity:this.transform(Zt.toVector(o)),distance:this.transform(Zt.toVector(n)),duration:s}},delay(o=0){switch(o){case!0:return p6;case!1:return 0;default:return o}},axisThreshold(o){return o?ft(ft({},j2),o):j2},keyboardDisplacement(o=C6){return o}});ft(ft({},Y0),{},{device(o,n,{shared:s,pointer:{touch:c=!1}={}}){if(s.target&&!An.touch&&An.gesture)return"gesture";if(An.touch&&c)return"touch";if(An.touchscreen){if(An.pointer)return"pointer";if(An.touch)return"touch"}},bounds(o,n,{scaleBounds:s={},angleBounds:c={}}){const i=a=>{const f=T2(Ro(s,a),{min:-1/0,max:1/0});return[f.min,f.max]},r=a=>{const f=T2(Ro(c,a),{min:-1/0,max:1/0});return[f.min,f.max]};return typeof s!="function"&&typeof c!="function"?[i(),r()]:a=>[i(a),r(a)]},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({},Ei),{},{mouseOnly:(o=!0)=>o});ft(ft({},Ei),{},{mouseOnly:(o=!0)=>o});const J0=new Map,al=new Map;function x6(o){J0.set(o.key,o.engine),al.set(o.key,o.resolver)}const w6={key:"drag",engine:l6,resolver:y6};function S6(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 _6(o,n){if(o==null)return{};var s=S6(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 k6={target(o){if(o)return()=>"current"in o?o.current:o},enabled(o=!0){return o},window(o=An.isBrowser?window:void 0){return o},eventOptions({passive:o=!0,capture:n=!1}={}){return{passive:o,capture:n}},transform(o){return o}},E6=["target","eventOptions","window","enabled","transform"];function Po(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]=Po(o[c],i);break;case"boolean":i&&(s[c]=o[c]);break}return s}function M6(o,n,s={}){const c=o,{target:i,eventOptions:r,window:a,enabled:f,transform:u}=c,p=_6(c,E6);if(s.shared=Po({target:i,eventOptions:r,window:a,enabled:f,transform:u},k6),n){const h=al.get(n);s[n]=Po(ft({shared:s.shared},p),h)}else for(const h in p){const g=al.get(h);g&&(s[h]=Po(ft({shared:s.shared},p[h]),g))}return s}class q0{constructor(n,s){un(this,"_listeners",new Set),this._ctrl=n,this._gestureKey=s}add(n,s,c,i,r){const a=this._listeners,f=Q9(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),a.delete(h)};return a.add(h),h}clean(){this._listeners.forEach(n=>n()),this._listeners.clear()}}class L6{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 T6{constructor(n){un(this,"gestures",new Set),un(this,"_targetEventStore",new q0(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}}),P6(this,n)}setEventIds(n){if(Oo(n))return this.touchIds=new Set(J9(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=M6(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 a of this.gestures){const f=this.config[a],u=U2(c,f.eventOptions,!!i);if(f.enabled){const p=J0.get(a);new p(this,n,a).bind(u)}}const r=U2(c,s.eventOptions,!!i);for(const a in this.nativeHandlers)r(a,"",f=>this.nativeHandlers[a](ft(ft({},this.state.shared),{},{event:f,args:n})),void 0,!0)}for(const r in c)c[r]=e6(...c[r]);if(!i)return c;for(const r in c){const{device:a,capture:f,passive:u}=X9(r);this._targetEventStore.add(i,a,"",c[r],{capture:f,passive:u})}}}}function _r(o,n){o.gestures.add(n),o.gestureEventStores[n]=new q0(o,n),o.gestureTimeoutStores[n]=new L6}function P6(o,n){n.drag&&_r(o,"drag"),n.wheel&&_r(o,"wheel"),n.scroll&&_r(o,"scroll"),n.move&&_r(o,"move"),n.pinch&&_r(o,"pinch"),n.hover&&_r(o,"hover")}const U2=(o,n,s)=>(c,i,r,a={},f=!1)=>{var u,p;const h=(u=a.capture)!==null&&u!==void 0?u:n.capture,g=(p=a.passive)!==null&&p!==void 0?p:n.passive;let v=f?c:W9(c,i,h);s&&g&&(v+="Passive"),o[v]=o[v]||[],o[v].push(r)};function b6(o,n={},s,c){const i=e1.useMemo(()=>new T6(o),[]);if(i.applyHandlers(o,c),i.applyConfig(n,s),e1.useEffect(i.effect.bind(i)),e1.useEffect(()=>i.clean.bind(i),[]),n.target===void 0)return i.bind.bind(i)}function X8(o,n){return x6(w6),b6({drag:o},n||{},"drag")}function j6(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 I2=new Ao,_o=new ct;class Ll extends m0{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 Tr(c,3,0)),this.setAttribute("instanceEnd",new Tr(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 Tr(c,3,0)),this.setAttribute("instanceColorEnd",new Tr(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 Eu(n.geometry)),this}fromLineSegments(n){const s=n.geometry;return this.setPositions(s.attributes.position.array),this}computeBoundingBox(){this.boundingBox===null&&(this.boundingBox=new Ao);const n=this.attributes.instanceStart,s=this.attributes.instanceEnd;n!==void 0&&s!==void 0&&(this.boundingBox.setFromBufferAttribute(n),I2.setFromBufferAttribute(s),this.boundingBox.union(I2))}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,a=n.count;r + #include + #include + #include + #include + + uniform float linewidth; + uniform vec2 resolution; + + attribute vec3 instanceStart; + attribute vec3 instanceEnd; + + attribute vec3 instanceColorStart; + attribute vec3 instanceColorEnd; + + #ifdef WORLD_UNITS + + varying vec4 worldPos; + varying vec3 worldStart; + varying vec3 worldEnd; + + #ifdef USE_DASH + + varying vec2 vUv; + + #endif + + #else + + varying vec2 vUv; + + #endif + + #ifdef USE_DASH + + uniform float dashScale; + attribute float instanceDistanceStart; + attribute float instanceDistanceEnd; + varying float vLineDistance; + + #endif + + void trimSegment( const in vec4 start, inout vec4 end ) { + + // trim end segment so it terminates between the camera plane and the near plane + + // conservative estimate of the near plane + float a = projectionMatrix[ 2 ][ 2 ]; // 3nd entry in 3th column + float b = projectionMatrix[ 3 ][ 2 ]; // 3nd entry in 4th column + float nearEstimate = - 0.5 * b / a; + + float alpha = ( nearEstimate - start.z ) / ( end.z - start.z ); + + end.xyz = mix( start.xyz, end.xyz, alpha ); + + } + + void main() { + + #ifdef USE_COLOR + + vColor.xyz = ( position.y < 0.5 ) ? instanceColorStart : instanceColorEnd; + + #endif + + #ifdef USE_DASH + + vLineDistance = ( position.y < 0.5 ) ? dashScale * instanceDistanceStart : dashScale * instanceDistanceEnd; + vUv = uv; + + #endif + + float aspect = resolution.x / resolution.y; + + // camera space + vec4 start = modelViewMatrix * vec4( instanceStart, 1.0 ); + vec4 end = modelViewMatrix * vec4( instanceEnd, 1.0 ); + + #ifdef WORLD_UNITS + + worldStart = start.xyz; + worldEnd = end.xyz; + + #else + + vUv = uv; + + #endif + + // special case for perspective projection, and segments that terminate either in, or behind, the camera plane + // clearly the gpu firmware has a way of addressing this issue when projecting into ndc space + // but we need to perform ndc-space calculations in the shader, so we must address this issue directly + // perhaps there is a more elegant solution -- WestLangley + + bool perspective = ( projectionMatrix[ 2 ][ 3 ] == - 1.0 ); // 4th entry in the 3rd column + + if ( perspective ) { + + if ( start.z < 0.0 && end.z >= 0.0 ) { + + trimSegment( start, end ); + + } else if ( end.z < 0.0 && start.z >= 0.0 ) { + + trimSegment( end, start ); + + } + + } + + // clip space + vec4 clipStart = projectionMatrix * start; + vec4 clipEnd = projectionMatrix * end; + + // ndc space + vec3 ndcStart = clipStart.xyz / clipStart.w; + vec3 ndcEnd = clipEnd.xyz / clipEnd.w; + + // direction + vec2 dir = ndcEnd.xy - ndcStart.xy; + + // account for clip-space aspect ratio + dir.x *= aspect; + dir = normalize( dir ); + + #ifdef WORLD_UNITS + + // get the offset direction as perpendicular to the view vector + vec3 worldDir = normalize( end.xyz - start.xyz ); + vec3 offset; + if ( position.y < 0.5 ) { + + offset = normalize( cross( start.xyz, worldDir ) ); + + } else { + + offset = normalize( cross( end.xyz, worldDir ) ); + + } + + // sign flip + if ( position.x < 0.0 ) offset *= - 1.0; + + float forwardOffset = dot( worldDir, vec3( 0.0, 0.0, 1.0 ) ); + + // don't extend the line if we're rendering dashes because we + // won't be rendering the endcaps + #ifndef USE_DASH + + // extend the line bounds to encompass endcaps + start.xyz += - worldDir * linewidth * 0.5; + end.xyz += worldDir * linewidth * 0.5; + + // shift the position of the quad so it hugs the forward edge of the line + offset.xy -= dir * forwardOffset; + offset.z += 0.5; + + #endif + + // endcaps + if ( position.y > 1.0 || position.y < 0.0 ) { + + offset.xy += dir * 2.0 * forwardOffset; + + } + + // adjust for linewidth + offset *= linewidth * 0.5; + + // set the world position + worldPos = ( position.y < 0.5 ) ? start : end; + worldPos.xyz += offset; + + // project the worldpos + vec4 clip = projectionMatrix * worldPos; + + // shift the depth of the projected points so the line + // segments overlap neatly + vec3 clipPose = ( position.y < 0.5 ) ? ndcStart : ndcEnd; + clip.z = clipPose.z * clip.w; + + #else + + vec2 offset = vec2( dir.y, - dir.x ); + // undo aspect ratio adjustment + dir.x /= aspect; + offset.x /= aspect; + + // sign flip + if ( position.x < 0.0 ) offset *= - 1.0; + + // endcaps + if ( position.y < 0.0 ) { + + offset += - dir; + + } else if ( position.y > 1.0 ) { + + offset += dir; + + } + + // adjust for linewidth + offset *= linewidth; + + // adjust for clip-space to screen-space conversion // maybe resolution should be based on viewport ... + offset /= resolution.y; + + // select end + vec4 clip = ( position.y < 0.5 ) ? clipStart : clipEnd; + + // back to clip space + offset *= clip.w; + + clip.xy += offset; + + #endif + + gl_Position = clip; + + vec4 mvPosition = ( position.y < 0.5 ) ? start : end; // this is an approximation + + #include + #include + #include + + } + `,fragmentShader:` + uniform vec3 diffuse; + uniform float opacity; + uniform float linewidth; + + #ifdef USE_DASH + + uniform float dashOffset; + uniform float dashSize; + uniform float gapSize; + + #endif + + varying float vLineDistance; + + #ifdef WORLD_UNITS + + varying vec4 worldPos; + varying vec3 worldStart; + varying vec3 worldEnd; + + #ifdef USE_DASH + + varying vec2 vUv; + + #endif + + #else + + varying vec2 vUv; + + #endif + + #include + #include + #include + #include + #include + + vec2 closestLineToLine(vec3 p1, vec3 p2, vec3 p3, vec3 p4) { + + float mua; + float mub; + + vec3 p13 = p1 - p3; + vec3 p43 = p4 - p3; + + vec3 p21 = p2 - p1; + + float d1343 = dot( p13, p43 ); + float d4321 = dot( p43, p21 ); + float d1321 = dot( p13, p21 ); + float d4343 = dot( p43, p43 ); + float d2121 = dot( p21, p21 ); + + float denom = d2121 * d4343 - d4321 * d4321; + + float numer = d1343 * d4321 - d1321 * d4343; + + mua = numer / denom; + mua = clamp( mua, 0.0, 1.0 ); + mub = ( d1343 + d4321 * ( mua ) ) / d4343; + mub = clamp( mub, 0.0, 1.0 ); + + return vec2( mua, mub ); + + } + + void main() { + + #include + + #ifdef USE_DASH + + if ( vUv.y < - 1.0 || vUv.y > 1.0 ) discard; // discard endcaps + + if ( mod( vLineDistance + dashOffset, dashSize + gapSize ) > dashSize ) discard; // todo - FIX + + #endif + + float alpha = opacity; + + #ifdef WORLD_UNITS + + // Find the closest points on the view ray and the line segment + vec3 rayEnd = normalize( worldPos.xyz ) * 1e5; + vec3 lineDir = worldEnd - worldStart; + vec2 params = closestLineToLine( worldStart, worldEnd, vec3( 0.0, 0.0, 0.0 ), rayEnd ); + + vec3 p1 = worldStart + lineDir * params.x; + vec3 p2 = rayEnd * params.y; + vec3 delta = p1 - p2; + float len = length( delta ); + float norm = len / linewidth; + + #ifndef USE_DASH + + #ifdef USE_ALPHA_TO_COVERAGE + + float dnorm = fwidth( norm ); + alpha = 1.0 - smoothstep( 0.5 - dnorm, 0.5 + dnorm, norm ); + + #else + + if ( norm > 0.5 ) { + + discard; + + } + + #endif + + #endif + + #else + + #ifdef USE_ALPHA_TO_COVERAGE + + // artifacts appear on some hardware if a derivative is taken within a conditional + float a = vUv.x; + float b = ( vUv.y > 0.0 ) ? vUv.y - 1.0 : vUv.y + 1.0; + float len2 = a * a + b * b; + float dlen = fwidth( len2 ); + + if ( abs( vUv.y ) > 1.0 ) { + + alpha = 1.0 - smoothstep( 1.0 - dlen, 1.0 + dlen, len2 ); + + } + + #else + + if ( abs( vUv.y ) > 1.0 ) { + + float a = vUv.x; + float b = ( vUv.y > 0.0 ) ? vUv.y - 1.0 : vUv.y + 1.0; + float len2 = a * a + b * b; + + if ( len2 > 1.0 ) discard; + + } + + #endif + + #endif + + vec4 diffuseColor = vec4( diffuse, alpha ); + + #include + #include + + gl_FragColor = vec4( diffuseColor.rgb, alpha ); + + #include + #include <${parseInt(Lu.replace(/\D+/g,""))>=154?"colorspace_fragment":"encodings_fragment"}> + #include + #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 R2=new ct,A2=new ct,Ot=new Ir,Ft=new Ir,qn=new Ir,Ws=new ct,Zs=new g0,Nt=new Tu,O2=new ct,ko=new Ao,Eo=new wl,$n=new Ir;let t1,ul,e3,Q1;function F2(o,n,s){return $n.set(0,0,-n,1).applyMatrix4(o.projectionMatrix),$n.multiplyScalar(1/$n.w),$n.x=Q1/s.width,$n.y=Q1/s.height,$n.applyMatrix4(o.projectionMatrixInverse),$n.multiplyScalar(1/$n.w),Math.abs(Math.max($n.x,$n.y))}function U6(o,n){for(let s=0,c=ul.count;sh&&Ft.z>h)continue;if(Ot.z>h){const w=Ot.z-Ft.z,L=(Ot.z-h)/w;Ot.lerp(Ft,L)}else if(Ft.z>h){const w=Ft.z-Ot.z,L=(Ft.z-h)/w;Ft.lerp(Ot,L)}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,Nt.start.copy(Ot),Nt.start.z=0,Nt.end.copy(Ft),Nt.end.z=0;const S=Nt.closestPointToPointParameter(Ws,!0);Nt.at(S,O2);const M=v0.lerp(Ot.z,Ft.z,S),k=M>=-1&&M<=1,_=Ws.distanceTo(O2)S.size),g=T.useMemo(()=>a?new t3:new R6,[a]),[v]=T.useState(()=>new Tl),x=T.useMemo(()=>{const S=a?new Ll:new $0,M=n.map(k=>{const _=Array.isArray(k);return k instanceof ct?[k.x,k.y,k.z]:k instanceof $1?[k.x,k.y,0]:_&&k.length===3?[k[0],k[1],k[2]]:_&&k.length===2?[k[0],k[1],0]:k});if(S.setPositions(M.flat()),c){const k=c.map(_=>_ instanceof xi?_.toArray():_);S.setColors(k.flat())}return S},[n,a,c]);return T.useLayoutEffect(()=>{g.computeLineDistances()},[n,g]),T.useLayoutEffect(()=>{f?v.defines.USE_DASH="":delete v.defines.USE_DASH,v.needsUpdate=!0},[f,v]),T.useEffect(()=>()=>x.dispose(),[x]),T.createElement("primitive",q1({object:g,ref:p},u),T.createElement("primitive",{object:x,attach:"geometry"}),T.createElement("primitive",q1({object:v,attach:"material",color:s,vertexColors:!!c,resolution:[h.width,h.height],linewidth:i??r,dashed:f},u)))});function A6(){var o=Object.create(null);function n(i,r){var a=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[a])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[a]={id:a,value:g,getTransferables:h},r(g)}catch(v){v&&v.noLog||console.error(v),r(v)}}function s(i,r){var a,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=(a=o[f]).value.apply(a,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 a=void 0;self.troikaDefine=function(u){return a=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,a}self.addEventListener("message",function(i){var r=i.data,a=r.messageId,f=r.action,u=r.data;try{f==="registerModule"&&n(u,function(p){p instanceof Error?postMessage({messageId:a,success:!1,error:p.message}):postMessage({messageId:a,success:!0,result:{isCallable:typeof p=="function"}})}),f==="callModule"&&s(u,function(p,h){p instanceof Error?postMessage({messageId:a,success:!1,error:p.message}):postMessage({messageId:a,success:!0,result:p},h||void 0)})}catch(p){postMessage({messageId:a,success:!1,error:p.stack})}})}function O6(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 n3=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 n3=function(){return o},o},F6=0,D6=0,Xs=!1,Ci=Object.create(null),yi=Object.create(null),cl=Object.create(null);function Li(o){if((!o||typeof o.init!="function")&&!Xs)throw new Error("requires `options.init` function");var n=o.dependencies,s=o.init,c=o.getTransferables,i=o.workerId;if(!n3())return O6(o);i==null&&(i="#default");var r="workerModule"+ ++F6,a=o.name||r,f=null;n=n&&n.map(function(p){return typeof p=="function"&&!p.workerModuleData&&(Xs=!0,p=Li({workerId:i,name:"<"+a+"> function dependency: "+p.name,init:`function(){return ( +`+bo(p)+` +)}`}),Xs=!1),p&&p.workerModuleData&&(p=p.workerModuleData),p});function u(){for(var p=[],h=arguments.length;h--;)p[h]=arguments[h];if(!f){f=D2(i,"registerModule",u.workerModuleData);var g=function(){f=null,yi[i].delete(g)};(yi[i]||(yi[i]=new Set)).add(g)}return f.then(function(v){var x=v.isCallable;if(x)return D2(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:a,dependencies:n,init:bo(s),getTransferables:c&&bo(c)},u}function B6(o){yi[o]&&yi[o].forEach(function(n){n()}),Ci[o]&&(Ci[o].terminate(),delete Ci[o])}function bo(o){var n=o.toString();return!/^function/.test(n)&&/^\w+\s*\(/.test(n)&&(n="function "+n),n}function H6(o){var n=Ci[o];if(!n){var s=bo(A6);n=Ci[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,a=cl[r];if(!a)throw new Error("WorkerModule response with empty or unknown messageId");delete cl[r],a(i)}}return n}function D2(o,n,s){return new Promise(function(c,i){var r=++D6;cl[r]=function(a){a.success?c(a.result):i(new Error("Error in worker "+n+" call: "+a.error))},H6(o).postMessage({messageId:r,action:n,data:s})})}function r3(){var o=function(n){function s(H,G,P,D,X,q,W,ie){var Y=1-W;ie.x=Y*Y*H+2*Y*W*P+W*W*X,ie.y=Y*Y*G+2*Y*W*D+W*W*q}function c(H,G,P,D,X,q,W,ie,Y,ne){var ue=1-Y;ne.x=ue*ue*ue*H+3*ue*ue*Y*P+3*ue*Y*Y*X+Y*Y*Y*W,ne.y=ue*ue*ue*G+3*ue*ue*Y*D+3*ue*Y*Y*q+Y*Y*Y*ie}function i(H,G){for(var P=/([MLQCZ])([^MLQCZ]*)/g,D,X,q,W,ie;D=P.exec(H);){var Y=D[2].replace(/^\s*|\s*$/g,"").split(/[,\s]+/).map(function(ne){return parseFloat(ne)});switch(D[1]){case"M":W=X=Y[0],ie=q=Y[1];break;case"L":(Y[0]!==W||Y[1]!==ie)&&G("L",W,ie,W=Y[0],ie=Y[1]);break;case"Q":{G("Q",W,ie,W=Y[2],ie=Y[3],Y[0],Y[1]);break}case"C":{G("C",W,ie,W=Y[4],ie=Y[5],Y[0],Y[1],Y[2],Y[3]);break}case"Z":(W!==X||ie!==q)&&G("L",W,ie,X,q);break}}}function r(H,G,P){P===void 0&&(P=16);var D={x:0,y:0};i(H,function(X,q,W,ie,Y,ne,ue,fe,$){switch(X){case"L":G(q,W,ie,Y);break;case"Q":{for(var te=q,xe=W,Ue=1;Ue0;)Oe[Le]=arguments[Le+2];var Fe=me[Ge]||(me[Ge]=P.getUniformLocation(oe,Ge));P["uniform"+ge].apply(P,[Fe].concat(Oe))},setAttribute:function(ge,Ge,Oe,Le,Fe){var We=_e[ge];We||(We=_e[ge]={buf:P.createBuffer(),loc:P.getAttribLocation(oe,ge),data:null}),P.bindBuffer(P.ARRAY_BUFFER,We.buf),P.vertexAttribPointer(We.loc,Ge,P.FLOAT,!1,0,0),P.enableVertexAttribArray(We.loc),X?P.vertexAttribDivisor(We.loc,Le):ue("ANGLE_instanced_arrays").vertexAttribDivisorANGLE(We.loc,Le),Fe!==We.data&&(P.bufferData(P.ARRAY_BUFFER,Fe,Oe),We.data=Fe)}})}}}W[ce].transaction(le)},te=function(ce,Se){Y++;try{P.activeTexture(P.TEXTURE0+Y);var Te=ie[ce];Te||(Te=ie[ce]=P.createTexture(),P.bindTexture(P.TEXTURE_2D,Te),P.texParameteri(P.TEXTURE_2D,P.TEXTURE_MIN_FILTER,P.NEAREST),P.texParameteri(P.TEXTURE_2D,P.TEXTURE_MAG_FILTER,P.NEAREST)),P.bindTexture(P.TEXTURE_2D,Te),Se(Te,Y)}finally{Y--}},xe=function(ce,Se,Te){var le=P.createFramebuffer();ne.push(le),P.bindFramebuffer(P.FRAMEBUFFER,le),P.activeTexture(P.TEXTURE0+Se),P.bindTexture(P.TEXTURE_2D,ce),P.framebufferTexture2D(P.FRAMEBUFFER,P.COLOR_ATTACHMENT0,P.TEXTURE_2D,ce,0);try{Te(le)}finally{P.deleteFramebuffer(le),P.bindFramebuffer(P.FRAMEBUFFER,ne[--ne.length-1]||null)}},Ue=function(){q={},W={},ie={},Y=-1,ne.length=0};var X=typeof WebGL2RenderingContext<"u"&&P instanceof WebGL2RenderingContext,q={},W={},ie={},Y=-1,ne=[];P.canvas.addEventListener("webglcontextlost",function(ce){Ue(),ce.preventDefault()},!1),u.set(P,D={gl:P,isWebGL2:X,getExtension:ue,withProgram:$,withTexture:te,withTextureFramebuffer:xe,handleContextLoss:Ue})}G(D)}function g(H,G,P,D,X,q,W,ie){W===void 0&&(W=15),ie===void 0&&(ie=null),h(H,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,G),ue("copy",a,f,function(xe){var Ue=xe.setUniform,ce=xe.setAttribute;ce("aUV",2,ne.STATIC_DRAW,0,new Float32Array([0,0,2,0,0,2])),Ue("1i","image",te),ne.bindFramebuffer(ne.FRAMEBUFFER,ie||null),ne.disable(ne.BLEND),ne.colorMask(W&8,W&4,W&2,W&1),ne.viewport(P,D,X,q),ne.scissor(P,D,X,q),ne.drawArrays(ne.TRIANGLES,0,3)})})})}function v(H,G,P){var D=H.width,X=H.height;h(H,function(q){var W=q.gl,ie=new Uint8Array(D*X*4);W.readPixels(0,0,D,X,W.RGBA,W.UNSIGNED_BYTE,ie),H.width=G,H.height=P,g(W,ie,0,0,D,X)})}var x=Object.freeze({__proto__:null,withWebGLContext:h,renderImageData:g,resizeWebGLCanvasWithoutClearing:v});function S(H,G,P,D,X,q){q===void 0&&(q=1);var W=new Uint8Array(H*G),ie=D[2]-D[0],Y=D[3]-D[1],ne=[];r(P,function(ce,Se,Te,le){ne.push({x1:ce,y1:Se,x2:Te,y2:le,minX:Math.min(ce,Te),minY:Math.min(Se,le),maxX:Math.max(ce,Te),maxY:Math.max(Se,le)})}),ne.sort(function(ce,Se){return ce.maxX-Se.maxX});for(var ue=0;ueme.minX&&Se-leme.minY){var oe=_(ce,Se,me.x1,me.y1,me.x2,me.y2);oeSe!=_e.y2>Se&&ce<(_e.x2-_e.x1)*(Se-_e.y1)/(_e.y2-_e.y1)+_e.x1;me&&(Te+=_e.y1<_e.y2?1:-1)}return Te!==0}}function M(H,G,P,D,X,q,W,ie,Y,ne){q===void 0&&(q=1),ie===void 0&&(ie=0),Y===void 0&&(Y=0),ne===void 0&&(ne=0),k(H,G,P,D,X,q,W,null,ie,Y,ne)}function k(H,G,P,D,X,q,W,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=S(H,G,P,D,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 M(le,_e){var me=36,oe=0,Pe=new Map,ye=_e&&new Map,we;return le.split(",").forEach(function ge(Ge){if(Ge.indexOf("+")!==-1)for(var Oe=+Ge;Oe--;)ge(we);else{we=Ge;var Le=Ge.split(">"),Fe=Le[0],We=Le[1];Fe=String.fromCodePoint(oe+=parseInt(Fe,me)),We=String.fromCodePoint(oe+=parseInt(We,me)),Pe.set(Fe,We),_e&&ye.set(We,Fe)}}),{map:Pe,reverseMap:ye}}var k,_,w;function L(){if(!k){var le=M(S.pairs,!0),_e=le.map,me=le.reverseMap;k=_e,_=me,w=M(S.canonical,!1).map}}function I(le){return L(),k.get(le)||null}function U(le){return L(),_.get(le)||null}function b(le){return L(),w.get(le)||null}var O=c.L,B=c.R,Q=c.EN,ee=c.ES,z=c.ET,A=c.AN,J=c.CS,K=c.B,re=c.S,se=c.ON,pe=c.BN,N=c.NSM,H=c.AL,G=c.LRO,P=c.RLO,D=c.LRE,X=c.RLE,q=c.PDF,W=c.LRI,ie=c.RLI,Y=c.FSI,ne=c.PDI;function ue(le,_e){for(var me=125,oe=new Uint32Array(le.length),Pe=0;Pe0)Qe--;else if(ht>0){for(Je=0;!He[He.length-1]._isolate;)He.pop();var Fn=He[He.length-1]._isolInitIndex;Fn!=null&&(Ge.set(Fn,De),Ge.set(De,Fn)),He.pop(),ht--}je=He[He.length-1],ge[De]=je._level,je._override&&we(De,je._override)}else nt&q?(Qe===0&&(Je>0?Je--:!je._isolate&&He.length>1&&(He.pop(),je=He[He.length-1])),ge[De]=je._level):nt&K&&(ge[De]=Le.level);else ge[De]=je._level,je._override&&nt!==pe&&we(De,je._override)}for(var Xt=[],Qt=null,rt=Le.start;rt<=Le.end;rt++){var g1=oe[rt];if(!(g1&u)){var ot=ge[rt],st=g1&r,fn=g1===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;T1--)if(!(oe[T1]&u)){Ti=ge[T1];break}var Fr=Rt[Rt.length-1],Bo=ge[Fr],Pi=Le.level;if(!(oe[Fr]&r)){for(var tr=Fr+1;tr<=Le.end;tr++)if(!(oe[tr]&u)){Pi=ge[tr];break}}Yt.push({_seqIndices:Rt,_sosType:Math.max(Ti,Do)%2?B:O,_eosType:Math.max(Pi,Bo)%2?B:O})}}for(var Dr=0;Dr=0;hn--)if(!(oe[ke[hn]]&u)){Gn=oe[ke[hn]];break}we(rr,Gn&(r|ne)?se:Gn)}}if(ye.get(Q))for(var Ke=0;Ke=-1;pn--){var kt=pn===-1?Dn:oe[ke[pn]];if(kt&a){kt===H&&we(qe,A);break}}}if(ye.get(H))for(var Lt=0;Lt=0&&(Bn=oe[ke[or]],!!(Bn&u));or--);for(var v1=kn+1;v1=0&&oe[ke[sr]]&(z|u);sr--)we(ke[sr],Q);for(mn++;mn=0&&oe[ke[o1]]&u;o1--)we(ke[o1],se);for(var s1=P1+1;s1=0;u1--){var ar=C1[u1].char;if(ar===Vr||ar===U(b(Ve))||I(b(ar))===Ve){Zn.push([C1[u1].seqIndex,Xn]),C1.length=u1;break}}}Zn.sort(function(bt,$t){return bt[0]-$t[0]})}for(var Nr=0;Nr=0;Wr--){var Ri=ke[Wr];if(oe[Ri]&lr){var Cn=oe[Ri]&a1?B:O;Cn!==Nn?Kt=Cn:Kt=Nn;break}}}if(Kt){if(oe[ke[at]]=oe[ke[j1]]=Kt,Kt!==Nn){for(var Jt=at+1;Jt=0;I1--)if(oe[ke[I1]]&u)Zr=I1;else{on=oe[ke[I1]]&a1?B:O;break}for(var R1=Hr,A1=En+1;A1=0&&v(le[y1])&p;y1--)ge[y1]=Le.level}}return{levels:ge,paragraphs:Oe};function cr(bt,$t){for(var vt=bt;vt=ge&&v(le[Le])&p;Le--)Oe[Le]=we.level;for(var Fe=we.level,We=1/0,dt=0;dtFe&&(Fe=Ae),Ae=We;et--)for(var He=0;He=et){for(var je=He;He+1=et;)He++;He>je&&ye.push([je+ge,He+ge])}}}),ye}function Se(le,_e,me,oe){var Pe=Te(le,_e,me,oe),ye=[].concat(le);return Pe.forEach(function(we,ge){ye[ge]=(_e.levels[we]&1?xe(le[we]):null)||le[we]}),ye.join("")}function Te(le,_e,me,oe){for(var Pe=ce(le,_e,me,oe),ye=[],we=0;we/gm;function s(c,i){let r=Uu[i];return r?fl(r):c}return o.replace(n,s)}const Dt=[];for(let o=0;o<256;o++)Dt[o]=(o<16?"0":"")+o.toString(16);function V6(){const o=Math.random()*4294967295|0,n=Math.random()*4294967295|0,s=Math.random()*4294967295|0,c=Math.random()*4294967295|0;return(Dt[o&255]+Dt[o>>8&255]+Dt[o>>16&255]+Dt[o>>24&255]+"-"+Dt[n&255]+Dt[n>>8&255]+"-"+Dt[n>>16&15|64]+Dt[n>>24&255]+"-"+Dt[s&63|128]+Dt[s>>8&255]+"-"+Dt[s>>16&255]+Dt[s>>24&255]+Dt[c&255]+Dt[c>>8&255]+Dt[c>>16&255]+Dt[c>>24&255]).toUpperCase()}const W1=Object.assign||function(){let o=arguments[0];for(let n=1,s=arguments.length;n/gm,` +//!BEGIN_POST_CHUNK $1 +$& +//!END_POST_CHUNK +`),s=fl(s)),x){let M=x({vertexShader:n,fragmentShader:s});n=M.vertexShader,s=M.fragmentShader}if(v){let M=[];s=s.replace(/^\/\/!BEGIN_POST_CHUNK[^]+?^\/\/!END_POST_CHUNK/gm,k=>(M.push(k),"")),g=`${v} +${M.join(` +`)} +${g}`}if(S){const M=` +uniform float ${S}; +`;r=M+r,p=M+p}return u&&(n=`vec3 troika_position_${i}; +vec3 troika_normal_${i}; +vec2 troika_uv_${i}; +${n} +`,r=`${r} +void troikaVertexTransform${i}(inout vec3 position, inout vec3 normal, inout vec2 uv) { + ${u} +} +`,a=` +troika_position_${i} = vec3(position); +troika_normal_${i} = vec3(normal); +troika_uv_${i} = vec2(uv); +troikaVertexTransform${i}(troika_position_${i}, troika_normal_${i}, troika_uv_${i}); +${a} +`,n=n.replace(/\b(position|normal|uv)\b/g,(M,k,_,w)=>/\battribute\s+vec[23]\s+$/.test(w.substr(0,_))?k:`troika_${k}_${i}`),o.map&&o.map.channel>0||(n=n.replace(/\bMAP_UV\b/g,`troika_uv_${i}`))),n=z2(n,i,r,a,f),s=z2(s,i,p,h,g),{vertexShader:n,fragmentShader:s}}function z2(o,n,s,c,i){return(c||i||s)&&(o=o.replace(i3,` +${s} +void troikaOrigMain${n}() {`),o+=` +void main() { + ${c} + troikaOrigMain${n}(); + ${i} +}`),o}function Z6(o,n){return o==="uniforms"?void 0:typeof n=="function"?n.toString():n}let X6=0;const V2=new Map;function Q6(o){const n=JSON.stringify(o,Z6);let s=V2.get(n);return s==null&&V2.set(n,s=++X6),s}function Y6(o,n,s){const{defaultFontURL:c}=s,i=Object.create(null),r=1/0,a=/[\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(w,L){function I(){const U=b=>{console.error(`Failure loading font ${w}${w===c?"":"; trying fallback"}`,b),w!==c&&(w=c,I())};try{const b=new XMLHttpRequest;b.open("get",w,!0),b.responseType="arraybuffer",b.onload=function(){if(b.status>=400)U(new Error(b.statusText));else if(b.status>0)try{const O=o(b.response);L(O)}catch(O){U(O)}},b.onerror=U,b.send()}catch(b){U(b)}}I()}function h(w,L){w||(w=c);let I=i[w];I?I.pending?I.pending.push(L):L(I):(i[w]={pending:[L]},p(w,U=>{let b=i[w].pending;i[w]=U,b.forEach(O=>O(U))}))}function g({text:w="",font:L=c,sdfGlyphSize:I=64,fontSize:U=1,letterSpacing:b=0,lineHeight:O="normal",maxWidth:B=r,direction:Q,textAlign:ee="left",textIndent:z=0,whiteSpace:A="normal",overflowWrap:J="normal",anchorX:K=0,anchorY:re=0,includeCaretPositions:se=!1,chunkedBoundsSize:pe=8192,colorRanges:N=null},H,G=!1){const P=M(),D={fontLoad:0,typesetting:0};w.indexOf("\r")>-1&&(console.info("Typesetter: got text with \\r chars; normalizing to \\n"),w=w.replace(/\r\n/g,` +`).replace(/\r/g,` +`)),U=+U,b=+b,B=+B,O=O||"normal",z=+z,h(L,X=>{const q=isFinite(B);let W=null,ie=null,Y=null,ne=null,ue=null,fe=null,$=null,te=0,xe=0,Ue=A!=="nowrap";const{ascender:ce,descender:Se,unitsPerEm:Te,lineGap:le,capHeight:_e,xHeight:me}=X;D.fontLoad=M()-P;const oe=M(),Pe=U/Te;O==="normal"&&(O=(ce-Se+le)/Te),O=O*U;const ye=(O-(ce-Se)*Pe)/2,we=-(ce*Pe+ye),ge=Math.min(O,(ce-Se)*Pe),Ge=(ce+Se)/2*Pe-ge/2;let Oe=z,Le=new k;const Fe=[Le];X.forEachGlyph(w,U,b,(Ae,et,He)=>{const je=w.charAt(He),Qe=Ae.advanceWidth*Pe,Je=Le.count;let ht;if("isEmpty"in Ae||(Ae.isWhitespace=!!je&&new RegExp(f).test(je),Ae.canBreakAfter=!!je&&u.test(je),Ae.isEmpty=Ae.xMin===Ae.xMax||Ae.yMin===Ae.yMax||a.test(je)),!Ae.isWhitespace&&!Ae.isEmpty&&xe++,Ue&&q&&!Ae.isWhitespace&&et+Qe+Oe>B&&Je){if(Le.glyphAt(Je-1).glyphObj.canBreakAfter)ht=new k,Oe=-et;else for(let nt=Je;nt--;)if(nt===0&&J==="break-word"){ht=new k,Oe=-et;break}else if(Le.glyphAt(nt).glyphObj.canBreakAfter){ht=Le.splitAt(nt+1);const It=ht.glyphAt(0).x;Oe-=It;for(let On=ht.count;On--;)ht.glyphAt(On).x-=It;break}ht&&(Le.isSoftWrapped=!0,Le=ht,Fe.push(Le),te=B)}let De=Le.glyphAt(Le.count);De.glyphObj=Ae,De.x=et+Oe,De.width=Qe,De.charIndex=He,je===` +`&&(Le=new k,Fe.push(Le),Oe=-(et+Qe+b*U)+z)}),Fe.forEach(Ae=>{for(let et=Ae.count;et--;){let{glyphObj:He,x:je,width:Qe}=Ae.glyphAt(et);if(!He.isWhitespace){Ae.width=je+Qe,Ae.width>te&&(te=Ae.width);return}}});let We=0,dt=0;if(K&&(typeof K=="number"?We=-K:typeof K=="string"&&(We=-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 Ae=Fe.length*O;dt=re==="top"?0:re==="top-baseline"?-we:re==="top-cap"?-we-_e*Pe:re==="top-ex"?-we-me*Pe:re==="middle"?Ae/2:re==="bottom"?Ae:re==="bottom-baseline"?Ae-ye+Se*Pe:x(re)*Ae}}if(!G){const Ae=n.getEmbeddingLevels(w,Q);W=new Uint16Array(xe),ie=new Float32Array(xe*2),Y={},fe=[r,r,-r,-r],$=[];let et=we;se&&(ue=new Float32Array(w.length*3)),N&&(ne=new Uint8Array(xe*3));let He=0,je=-1,Qe=-1,Je,ht;if(Fe.forEach((De,nt)=>{let{count:It,width:On}=De;if(It>0){let r1=0;for(let ot=It;ot--&&De.glyphAt(ot).glyphObj.isWhitespace;)r1++;let Fn=0,Xt=0;if(ee==="center")Fn=(te-On)/2;else if(ee==="right")Fn=te-On;else if(ee==="justify"&&De.isSoftWrapped){let ot=0;for(let st=It-r1;st--;)De.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&&S(ue,je,pt),je=Ye}if(N){const{charIndex:Ye}=st;for(;Ye>Qe;)Qe++,N.hasOwnProperty(Qe)&&(ht=N[Qe])}if(!rt.isWhitespace&&!rt.isEmpty){const Ye=He++;Y[fn]||(Y[fn]={path:rt.path,pathBounds:[rt.xMin,rt.yMin,rt.xMax,rt.yMax]});const gt=st.x+We,rn=et+dt;ie[Ye*2]=gt,ie[Ye*2+1]=rn;const pt=gt+rt.xMin*Pe,wt=rn+rt.yMin*Pe,Rt=gt+rt.xMax*Pe,Vn=rn+rt.yMax*Pe;ptfe[2]&&(fe[2]=Rt),Vn>fe[3]&&(fe[3]=Vn),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]=Rt),Vn>dn[3]&&(dn[3]=Vn),W[Ye]=fn,N){const i1=Ye*3;ne[i1]=ht>>16&255,ne[i1+1]=ht>>8&255,ne[i1+2]=ht&255}}}}et-=O}),ue){const De=w.length-je;De>1&&S(ue,je,De)}}D.typesetting=M()-oe,H({glyphIds:W,glyphPositions:ie,glyphData:Y,caretPositions:ue,caretHeight:ge,glyphColors:ne,chunkedBounds:$,fontSize:U,unitsPerEm:Te,ascender:ce*Pe,descender:Se*Pe,capHeight:_e*Pe,xHeight:me*Pe,lineHeight:O,topBaseline:we,blockBounds:[We,dt-Fe.length*O,We+te,dt],visibleBounds:fe,timings:D})})}function v(w,L){g(w,I=>{const[U,b,O,B]=I.blockBounds;L({width:O-U,height:B-b})},{metricsOnly:!0})}function x(w){let L=w.match(/^([\d.]+)%$/),I=L?parseFloat(L[1]):NaN;return isNaN(I)?0:I/100}function S(w,L,I){const U=w[L*3],b=w[L*3+1],O=w[L*3+2],B=(b-U)/I;for(let Q=0;Q(Object.defineProperty(w,L,{get(){return this.data[this.index*_.length+I]},set(b){this.data[this.index*_.length+I]=b}}),w),{data:null,index:0}),{typeset:g,measure:v,loadFont:h}}const Y1=()=>(self.performance||Date).now(),Fo=r3();let N2;function K6(o,n,s,c,i,r,a,f,u,p,h=!0){return h?q6(o,n,s,c,i,r,a,f,u,p).then(null,g=>(N2||(console.warn("WebGL SDF generation failed, falling back to JS",g),N2=!0),W2(o,n,s,c,i,r,a,f,u,p))):W2(o,n,s,c,i,r,a,f,u,p)}const jo=[],J6=5;let hl=0;function o3(){const o=Y1();for(;jo.length&&Y1()-onew Promise((n,s)=>{jo.push(()=>{const c=Y1();try{Fo.webgl.generateIntoCanvas(...o),n({timing:Y1()-c})}catch(i){s(i)}}),hl||(hl=setTimeout(o3,0))}),$6=4,ec=2e3,G2={};let tc=0;function W2(o,n,s,c,i,r,a,f,u,p){const h="TroikaTextSDFGenerator_JS_"+tc++%$6;let g=G2[h];return g||(g=G2[h]={workerModule:Li({name:h,workerId:h,dependencies:[r3,Y1],init(v,x){const S=v().javascript.generate;return function(...M){const k=x();return{textureData:S(...M),timing:x()-k}}},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 S=Y1(),M=new Uint8Array(v.length*4);for(let k=0;k{B6(h)},ec)),{timing:x}})}function nc(o){o._warm||(Fo.webgl.isSupported(o),o._warm=!0)}const rc=Fo.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 ic(){return typeof window>"u"&&(self.window=self),function(o){var n={parse:function(i){var r=n._bin,a=new Uint8Array(i);if(r.readASCII(a,0,4)=="ttcf"){var f=4;r.readUshort(a,f),f+=2,r.readUshort(a,f),f+=2;var u=r.readUint(a,f);f+=4;for(var p=[],h=0;h>>a&1&&r++;return r},n._lctf.readClassDef=function(i,r){var a=n._bin,f=[],u=a.readUshort(i,r);if(r+=2,u==1){var p=a.readUshort(i,r);r+=2;var h=a.readUshort(i,r);r+=2;for(var g=0;g0&&(u.featureParams=f+p);var h=a.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,a){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,w=15&k;if(_!=15&&M.push(_),w!=15&&M.push(w),w==15)break}for(var L="",I=[0,1,2,3,4,5,6,7,8,9,".","e","e-","reserved","-","endOfNumber"],U=0;U=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,a),a+=2;var S=u.readUshort(i,a);a+=2,x=n._lctf.numOfOnes(v);var M=n._lctf.numOfOnes(S);if(h.fmt==1){h.pairsets=[];var k=u.readUshort(i,a);a+=2;for(var _=0;_=1&&h.fmt<=2){if(h.fmt==1)h.delta=u.readShort(i,a),a+=2;else if(h.fmt==2){var v=u.readUshort(i,a);a+=2,h.newg=u.readUshorts(i,a,v),a+=2*h.newg.length}}else if(r==4){h.vals=[],v=u.readUshort(i,a),a+=2;for(var x=0;x>>8;if((S&=15)!=0)throw"unknown kern table format: "+S;r=n.kern.readFormat0(i,r,g)}return g},n.kern.parseV1=function(i,r,a,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,a){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,a):n.U._compoGlyph(f,r,a))},n.U._simpleGlyph=function(i,r){for(var a=0;au)){for(var k=!0,_=0,w=0;wu)){for(k=!0,w=0;w>1,p.length=0,g=!0;else if(A=="o3"||A=="o23")p.length%2!=0&&!g&&(v=p.shift()+f.nominalWidthX),h+=p.length>>1,p.length=0,g=!0;else if(A=="o4")p.length>1&&!g&&(v=p.shift()+f.nominalWidthX,g=!0),x&&n.U.P.closePath(u),k+=p.pop(),n.U.P.moveTo(u,M,k),x=!0;else if(A=="o5")for(;p.length>0;)M+=p.shift(),k+=p.shift(),n.U.P.lineTo(u,M,k);else if(A=="o6"||A=="o7")for(var J=p.length,K=A=="o6",re=0;reMath.abs(B-k)?M=O+p.shift():k=B+p.shift(),n.U.P.curveTo(u,_,w,L,I,Q,ee),n.U.P.curveTo(u,U,b,O,B,M,k));else if(A=="o14"){if(p.length>0&&!g&&(v=p.shift()+a.nominalWidthX,g=!0),p.length==4){var N=p.shift(),H=p.shift(),G=p.shift(),P=p.shift(),D=n.CFF.glyphBySE(a,G),X=n.CFF.glyphBySE(a,P);n.U._drawCFF(a.CharStrings[D],r,a,f,u),r.x=N,r.y=H,n.U._drawCFF(a.CharStrings[X],r,a,f,u)}x&&(n.U.P.closePath(u),x=!1)}else if(A=="o19"||A=="o20")p.length%2!=0&&!g&&(v=p.shift()+f.nominalWidthX),h+=p.length>>1,p.length=0,g=!0,S+=h+7>>3;else if(A=="o21")p.length>2&&!g&&(v=p.shift()+f.nominalWidthX,g=!0),k+=p.pop(),M+=p.pop(),x&&n.U.P.closePath(u),n.U.P.moveTo(u,M,k),x=!0;else if(A=="o22")p.length>1&&!g&&(v=p.shift()+f.nominalWidthX,g=!0),M+=p.pop(),x&&n.U.P.closePath(u),n.U.P.moveTo(u,M,k),x=!0;else if(A=="o25"){for(;p.length>6;)M+=p.shift(),k+=p.shift(),n.U.P.lineTo(u,M,k);_=M+p.shift(),w=k+p.shift(),L=_+p.shift(),I=w+p.shift(),M=L+p.shift(),k=I+p.shift(),n.U.P.curveTo(u,_,w,L,I,M,k)}else if(A=="o26")for(p.length%2&&(M+=p.shift());p.length>0;)_=M,w=k+p.shift(),M=L=_+p.shift(),k=(I=w+p.shift())+p.shift(),n.U.P.curveTo(u,_,w,L,I,M,k);else if(A=="o27")for(p.length%2&&(k+=p.shift());p.length>0;)w=k,L=(_=M+p.shift())+p.shift(),I=w+p.shift(),M=L+p.shift(),k=I,n.U.P.curveTo(u,_,w,L,I,M,k);else if(A=="o10"||A=="o29"){var q=A=="o10"?f:a;if(p.length==0)console.debug("error: empty stack");else{var W=p.pop(),ie=q.Subrs[W+q.Bias];r.x=M,r.y=k,r.nStems=h,r.haveWidth=g,r.width=v,r.open=x,n.U._drawCFF(ie,r,a,f,u),M=r.x,k=r.y,h=r.nStems,g=r.haveWidth,v=r.width,x=r.open}}else if(A=="o30"||A=="o31"){var Y=p.length,ne=(pe=0,A=="o31");for(pe+=Y-(J=-3&Y);pe>>1|(21845&x)<<1;S=(61680&(S=(52428&S)>>>2|(13107&S)<<2))>>>4|(3855&S)<<4,v[x]=((65280&S)>>>8|(255&S)<<8)>>>1}var M=function(A,J,K){for(var re=A.length,se=0,pe=new s(J);se>>G]=P}else for(N=new s(re),se=0;se>>15-A[se]);return N},k=new n(288);for(x=0;x<144;++x)k[x]=8;for(x=144;x<256;++x)k[x]=9;for(x=256;x<280;++x)k[x]=7;for(x=280;x<288;++x)k[x]=8;var _=new n(32);for(x=0;x<32;++x)_[x]=5;var w=M(k,9,1),L=M(_,5,1),I=function(A){for(var J=A[0],K=1;KJ&&(J=A[K]);return J},U=function(A,J,K){var re=J/8|0;return(A[re]|A[re+1]<<8)>>(7&J)&K},b=function(A,J){var K=J/8|0;return(A[K]|A[K+1]<<8|A[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"],B=function(A,J,K){var re=new Error(J||O[A]);if(re.code=A,Error.captureStackTrace&&Error.captureStackTrace(re,B),!K)throw re;return re},Q=function(A,J,K){var re=A.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 N,H=function(je){var Qe=J.length;if(je>Qe){var Je=new n(Math.max(2*Qe,je));Je.set(J),J=Je}},G=K.f||0,P=K.p||0,D=K.b||0,X=K.l,q=K.d,W=K.m,ie=K.n,Y=8*re;do{if(!X){K.f=G=U(A,P,1);var ne=U(A,P+1,3);if(P+=3,!ne){var ue=A[(me=((N=P)/8|0)+(7&N&&1)+4)-4]|A[me-3]<<8,fe=me+ue;if(fe>re){pe&&B(0);break}se&&H(D+ue),J.set(A.subarray(me,fe),D),K.b=D+=ue,K.p=P=8*fe;continue}if(ne==1)X=w,q=L,W=9,ie=5;else if(ne==2){var $=U(A,P,31)+257,te=U(A,P+10,15)+4,xe=$+U(A,P+5,31)+1;P+=14;for(var Ue=new n(xe),ce=new n(19),Se=0;Se>>4)<16)Ue[Se++]=me;else{var Pe=0,ye=0;for(me==16?(ye=3+U(A,P,3),P+=2,Pe=Ue[Se-1]):me==17?(ye=3+U(A,P,7),P+=3):me==18&&(ye=11+U(A,P,127),P+=7);ye--;)Ue[Se++]=Pe}}var we=Ue.subarray(0,$),ge=Ue.subarray($);W=I(we),ie=I(ge),X=M(we,W,1),q=M(ge,ie,1)}else B(1);if(P>Y){pe&&B(0);break}}se&&H(D+131072);for(var Ge=(1<>>4;if((P+=15&Pe)>Y){pe&&B(0);break}if(Pe||B(2),Fe<256)J[D++]=Fe;else{if(Fe==256){Le=P,X=null;break}var We=Fe-254;if(Fe>264){var dt=i[Se=Fe-257];We=U(A,P,(1<>>4;if(Ae||B(3),P+=15&Ae,ge=g[et],et>3&&(dt=r[et],ge+=b(A,P)&(1<Y){pe&&B(0);break}se&&H(D+131072);for(var He=D+We;Dje.length)&&(Je=je.length);var ht=new(je instanceof s?s:je instanceof c?c:n)(Je-Qe);return ht.set(je.subarray(Qe,Je)),ht}(J,0,D)},ee=new n(0),z=typeof TextDecoder<"u"&&new TextDecoder;try{z.decode(ee,{stream:!0})}catch{}return o.convert_streams=function(A){var J=new DataView(A),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 N($){ue.setUint32(fe,$),fe+=4}for(var H={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()},G=0;Math.pow(2,G)<=H.numTables;)G++;G--;for(var P=16*Math.pow(2,G),D=16*H.numTables-P,X=12,q=[],W=0;W{let[ee,z]=Q.split("+");ee=parseInt(ee,36),z=z?parseInt(z,36):0,h.set(B+=ee,b[O]);for(let A=z;A--;)h.set(++B,b[O])})}}return h.get(U)||p}const v=1,x=2,S=3,M=4,k=[null,"isol","init","fina","medi"];function _(U){const b=new Uint8Array(U.length);let O=p,B=v,Q=-1;for(let ee=0;ee65535&&ee++)}return b}function w(U,b){const O=[];for(let Q=0;Q65535&&Q++,O.push(o.U.codeToGlyph(U,ee))}const B=U.GSUB;if(B){const{lookupList:Q,featureList:ee}=B;let z;const A=/^(rlig|liga|mset|isol|init|fina|medi|half|pres|blws)$/,J=[];ee.forEach(K=>{if(A.test(K.tag))for(let re=0;re{if(P!==-1){let X=b[P];if(!X){const{cmds:q,crds:W}=o.U.glyphToPath(U,P);let ie="",Y=0;for(let te=0,xe=q.length;te1?",":"")+W[Y++]}let ne,ue,fe,$;if(W.length){ne=ue=1/0,fe=$=-1/0;for(let te=0,xe=W.length;tefe&&(fe=Ue),ce>$&&($=ce)}}else ne=fe=ue=$=0;X=b[P]={index:P,advanceWidth:U.hmtx.aWidth[P],xMin:ne,yMin:ue,xMax:fe,yMax:$,path:ie,pathCommandCount:q.length}}G!==-1&&(se+=o.U.getPairAdjustment(U,G,P)*pe),re.call(null,X,se,H),X.advanceWidth&&(se+=X.advanceWidth*pe),K&&(se+=K*J),G=P}H+=A.codePointAt(H)>65535?2:1}),se}};return z}return function(b){const O=new Uint8Array(b,0,4),B=o._bin.readASCII(O,0,4);if(B==="wOFF")b=n(b);else if(B==="wOF2")throw new Error("woff2 fonts not supported");return I(o.parse(b)[0])}}const lc=Li({name:"Typr Font Parser",dependencies:[ic,oc,sc],init(o,n,s){const c=o(),i=n();return s(c,i)}}),br={defaultFontURL:"https://fonts.gstatic.com/s/roboto/v18/KFOmCnqEu92Fr1Mu4mxM.woff",sdfGlyphSize:64,sdfMargin:1/16,sdfExponent:9,textureWidth:2048},ac=new xi;function kr(){return(self.performance||Date).now()}const Z2=Object.create(null);function s3(o,n){o=fc({},o);const s=kr();if(o.font=dc(o.font||br.defaultFontURL),o.text=""+o.text,o.sdfGlyphSize=o.sdfGlyphSize||br.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=ac.set(x).getHex()),g[v]=x}o.colorRanges=g}Object.freeze(o);const{textureWidth:c,sdfExponent:i}=br,{sdfGlyphSize:r}=o,a=c/r*4;let f=Z2[r];if(!f){const g=document.createElement("canvas");g.width=c,g.height=r*256/a,f=Z2[r]={glyphCount:0,sdfGlyphSize:r,sdfCanvas:g,sdfTexture:new vl(g,void 0,void 0,void 0,s2,s2),contextLost:!1,glyphsByFont:new Map},f.sdfTexture.generateMipmaps=!1,uc(f)}const{sdfTexture:u,sdfCanvas:p}=f;let h=f.glyphsByFont.get(o.font);h||f.glyphsByFont.set(o.font,h=new Map),pc(o).then(g=>{const{glyphIds:v,glyphPositions:x,fontSize:S,unitsPerEm:M,timings:k}=g,_=[],w=new Float32Array(v.length*4),L=S/M;let I=0,U=0;const b=kr();v.forEach((z,A)=>{let J=h.get(z);if(!J){const{path:pe,pathBounds:N}=g.glyphData[z],H=Math.max(N[2]-N[0],N[3]-N[1])/r*(br.sdfMargin*r+.5),G=f.glyphCount++,P=[N[0]-H,N[1]-H,N[2]+H,N[3]+H];h.set(z,J={path:pe,atlasIndex:G,sdfViewBox:P}),_.push(J)}const{sdfViewBox:K}=J,re=x[U++],se=x[U++];w[I++]=re+K[0]*L,w[I++]=se+K[1]*L,w[I++]=re+K[2]*L,w[I++]=se+K[3]*L,v[A]=J.atlasIndex}),k.quads=(k.quads||0)+(kr()-b);const O=kr();k.sdf={};const B=p.height,Q=Math.ceil(f.glyphCount/a),ee=Math.pow(2,Math.ceil(Math.log2(Q*r)));ee>B&&(console.info(`Increasing SDF texture size ${B}->${ee}`),rc(p,c,ee),u.dispose()),Promise.all(_.map(z=>l3(z,f,o.gpuAccelerateSDF).then(({timing:A})=>{k.sdf[z.atlasIndex]=A}))).then(()=>{_.length&&!f.contextLost&&(a3(f),u.needsUpdate=!0),k.sdfTotal=kr()-O,k.total=kr()-s,n(Object.freeze({parameters:o,sdfTexture:u,sdfGlyphSize:r,sdfExponent:i,glyphBounds:w,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||nc(p)})}function l3({path:o,atlasIndex:n,sdfViewBox:s},{sdfGlyphSize:c,sdfCanvas:i,contextLost:r},a){if(r)return Promise.resolve({timing:-1});const{textureWidth:f,sdfExponent:u}=br,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 K6(c,c,o,s,p,u,i,g,v,x,a)}function uc(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(l3(r,o,!0))})}),Promise.all(c).then(()=>{a3(o),o.sdfTexture.needsUpdate=!0})})}function cc({font:o,characters:n,sdfGlyphSize:s},c){let i=Array.isArray(n)?n.join(` +`):""+n;s3({font:o,sdfGlyphSize:s,text:i},c)}function fc(o,n){for(let s in n)n.hasOwnProperty(s)&&(o[s]=n[s]);return o}let Mo;function dc(o){return Mo||(Mo=typeof document>"u"?{}:document.createElement("a")),Mo.href=o,Mo.href}function a3(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 a=s.image.data;(!a||a.length!==c*i*4)&&(a=new Uint8Array(c*i*4),s.image={width:c,height:i,data:a},s.flipY=!1,s.isDataTexture=!0),r.readPixels(0,0,c,i,r.RGBA,r.UNSIGNED_BYTE,a)}}const hc=Li({name:"Typesetter",dependencies:[br,lc,Y6,z6],init(o,n,s,c){const{defaultFontURL:i}=o;return s(n,c(),{defaultFontURL:i})}}),pc=Li({name:"Typesetter",dependencies:[hc],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}}),X2={};function mc(o){let n=X2[o];if(!n){const s=new Sl(1,1,o,o),c=s.clone(),i=s.attributes,r=c.attributes,a=new p0,f=i.uv.count;for(let u=0;u{a.setAttribute(u,new el([...i[u].array,...r[u].array],i[u].itemSize))}),a.setIndex([...s.index.array,...c.index.array.map(u=>u+f)]),a.translate(.5,.5,0),n=X2[o]=a}return n}const gc="aTroikaGlyphBounds",Q2="aTroikaGlyphIndex",vc="aTroikaGlyphColor";class Cc extends m0{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 Ao}computeBoundingSphere(){}computeBoundingBox(){}setSide(n){const s=this.getIndex().count;this.setDrawRange(n===Ru?s/2:0,n===xl?s:s/2)}set detail(n){if(n!==this._detail){this._detail=n,(typeof n!="number"||n<1)&&(n=1);let s=mc(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){Qs(this,gc,n,4),Qs(this,Q2,s,1),Qs(this,vc,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:a,max:f,sin:u,cos:p}=Math,h=i/2,g=i*2,v=Math.abs(s),x=n[0]/v,S=n[2]/v,M=r((x+h)/g)!==r((S+h)/g)?-v:a(u(x)*v,u(S)*v),k=r((x-h)/g)!==r((S-h)/g)?v:f(u(x)*v,u(S)*v),_=r((x+i)/g)!==r((S+i)/g)?v*2:f(v-p(x)*v,v-p(S)*v);c.min.set(M,n[1],s<0?-_:0),c.max.set(k,n[3],s<0?0:_)}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(Q2).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 Qs(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 Au(s,c)),delete o._maxInstanceCount,o.dispose()):i&&o.deleteAttribute(n)}const yc=` +uniform vec2 uTroikaSDFTextureSize; +uniform float uTroikaSDFGlyphSize; +uniform vec4 uTroikaTotalBounds; +uniform vec4 uTroikaClipRect; +uniform mat3 uTroikaOrient; +uniform bool uTroikaUseGlyphColors; +uniform float uTroikaDistanceOffset; +uniform float uTroikaBlurRadius; +uniform vec2 uTroikaPositionOffset; +uniform float uTroikaCurveRadius; +attribute vec4 aTroikaGlyphBounds; +attribute float aTroikaGlyphIndex; +attribute vec3 aTroikaGlyphColor; +varying vec2 vTroikaGlyphUV; +varying vec4 vTroikaTextureUVBounds; +varying float vTroikaTextureChannel; +varying vec3 vTroikaGlyphColor; +varying vec2 vTroikaGlyphDimensions; +`,xc=` +vec4 bounds = aTroikaGlyphBounds; +bounds.xz += uTroikaPositionOffset.x; +bounds.yw -= uTroikaPositionOffset.y; + +vec4 outlineBounds = vec4( + bounds.xy - uTroikaDistanceOffset - uTroikaBlurRadius, + bounds.zw + uTroikaDistanceOffset + uTroikaBlurRadius +); +vec4 clippedBounds = vec4( + clamp(outlineBounds.xy, uTroikaClipRect.xy, uTroikaClipRect.zw), + clamp(outlineBounds.zw, uTroikaClipRect.xy, uTroikaClipRect.zw) +); + +vec2 clippedXY = (mix(clippedBounds.xy, clippedBounds.zw, position.xy) - bounds.xy) / (bounds.zw - bounds.xy); + +position.xy = mix(bounds.xy, bounds.zw, clippedXY); + +uv = (position.xy - uTroikaTotalBounds.xy) / (uTroikaTotalBounds.zw - uTroikaTotalBounds.xy); + +float rad = uTroikaCurveRadius; +if (rad != 0.0) { + float angle = position.x / rad; + position.xz = vec2(sin(angle) * rad, rad - cos(angle) * rad); + normal.xz = vec2(sin(angle), cos(angle)); +} + +position = uTroikaOrient * position; +normal = uTroikaOrient * normal; + +vTroikaGlyphUV = clippedXY.xy; +vTroikaGlyphDimensions = vec2(bounds[2] - bounds[0], bounds[3] - bounds[1]); + + +float txCols = uTroikaSDFTextureSize.x / uTroikaSDFGlyphSize; +vec2 txUvPerSquare = uTroikaSDFGlyphSize / uTroikaSDFTextureSize; +vec2 txStartUV = txUvPerSquare * vec2( + mod(floor(aTroikaGlyphIndex / 4.0), txCols), + floor(floor(aTroikaGlyphIndex / 4.0) / txCols) +); +vTroikaTextureUVBounds = vec4(txStartUV, vec2(txStartUV) + txUvPerSquare); +vTroikaTextureChannel = mod(aTroikaGlyphIndex, 4.0); +`,wc=` +uniform sampler2D uTroikaSDFTexture; +uniform vec2 uTroikaSDFTextureSize; +uniform float uTroikaSDFGlyphSize; +uniform float uTroikaSDFExponent; +uniform float uTroikaDistanceOffset; +uniform float uTroikaFillOpacity; +uniform float uTroikaOutlineOpacity; +uniform float uTroikaBlurRadius; +uniform vec3 uTroikaStrokeColor; +uniform float uTroikaStrokeWidth; +uniform float uTroikaStrokeOpacity; +uniform bool uTroikaSDFDebug; +varying vec2 vTroikaGlyphUV; +varying vec4 vTroikaTextureUVBounds; +varying float vTroikaTextureChannel; +varying vec2 vTroikaGlyphDimensions; + +float troikaSdfValueToSignedDistance(float alpha) { + // Inverse of exponential encoding in webgl-sdf-generator + + float maxDimension = max(vTroikaGlyphDimensions.x, vTroikaGlyphDimensions.y); + float absDist = (1.0 - pow(2.0 * (alpha > 0.5 ? 1.0 - alpha : alpha), 1.0 / uTroikaSDFExponent)) * maxDimension; + float signedDist = absDist * (alpha > 0.5 ? -1.0 : 1.0); + return signedDist; +} + +float troikaGlyphUvToSdfValue(vec2 glyphUV) { + vec2 textureUV = mix(vTroikaTextureUVBounds.xy, vTroikaTextureUVBounds.zw, glyphUV); + vec4 rgba = texture2D(uTroikaSDFTexture, textureUV); + float ch = floor(vTroikaTextureChannel + 0.5); //NOTE: can't use round() in WebGL1 + return ch == 0.0 ? rgba.r : ch == 1.0 ? rgba.g : ch == 2.0 ? rgba.b : rgba.a; +} + +float troikaGlyphUvToDistance(vec2 uv) { + return troikaSdfValueToSignedDistance(troikaGlyphUvToSdfValue(uv)); +} + +float troikaGetAADist() { + + #if defined(GL_OES_standard_derivatives) || __VERSION__ >= 300 + return length(fwidth(vTroikaGlyphUV * vTroikaGlyphDimensions)) * 0.5; + #else + return vTroikaGlyphDimensions.x / 64.0; + #endif +} + +float troikaGetFragDistValue() { + vec2 clampedGlyphUV = clamp(vTroikaGlyphUV, 0.5 / uTroikaSDFGlyphSize, 1.0 - 0.5 / uTroikaSDFGlyphSize); + float distance = troikaGlyphUvToDistance(clampedGlyphUV); + + // Extrapolate distance when outside bounds: + distance += clampedGlyphUV == vTroikaGlyphUV ? 0.0 : + length((vTroikaGlyphUV - clampedGlyphUV) * vTroikaGlyphDimensions); + + + + return distance; +} + +float troikaGetEdgeAlpha(float distance, float distanceOffset, float aaDist) { + #if defined(IS_DEPTH_MATERIAL) || defined(IS_DISTANCE_MATERIAL) + float alpha = step(-distanceOffset, -distance); + #else + + float alpha = smoothstep( + distanceOffset + aaDist, + distanceOffset - aaDist, + distance + ); + #endif + + return alpha; +} +`,Sc=` +float aaDist = troikaGetAADist(); +float fragDistance = troikaGetFragDistValue(); +float edgeAlpha = uTroikaSDFDebug ? + troikaGlyphUvToSdfValue(vTroikaGlyphUV) : + troikaGetEdgeAlpha(fragDistance, uTroikaDistanceOffset, max(aaDist, uTroikaBlurRadius)); + +#if !defined(IS_DEPTH_MATERIAL) && !defined(IS_DISTANCE_MATERIAL) +vec4 fillRGBA = gl_FragColor; +fillRGBA.a *= uTroikaFillOpacity; +vec4 strokeRGBA = uTroikaStrokeWidth == 0.0 ? fillRGBA : vec4(uTroikaStrokeColor, uTroikaStrokeOpacity); +if (fillRGBA.a == 0.0) fillRGBA.rgb = strokeRGBA.rgb; +gl_FragColor = mix(fillRGBA, strokeRGBA, smoothstep( + -uTroikaStrokeWidth - aaDist, + -uTroikaStrokeWidth + aaDist, + fragDistance +)); +gl_FragColor.a *= edgeAlpha; +#endif + +if (edgeAlpha == 0.0) { + discard; +} +`;function _c(o){const n=dl(o,{chained:!0,extensions:{derivatives:!0},uniforms:{uTroikaSDFTexture:{value:null},uTroikaSDFTextureSize:{value:new $1},uTroikaSDFGlyphSize:{value:0},uTroikaSDFExponent:{value:0},uTroikaTotalBounds:{value:new Ir(0,0,0,0)},uTroikaClipRect:{value:new Ir(0,0,0,0)},uTroikaDistanceOffset:{value:0},uTroikaOutlineOpacity:{value:0},uTroikaFillOpacity:{value:1},uTroikaPositionOffset:{value:new $1},uTroikaCurveRadius:{value:0},uTroikaBlurRadius:{value:0},uTroikaStrokeWidth:{value:0},uTroikaStrokeColor:{value:new xi},uTroikaStrokeOpacity:{value:1},uTroikaOrient:{value:new Ou},uTroikaUseGlyphColors:{value:!0},uTroikaSDFDebug:{value:!1}},vertexDefs:yc,vertexTransform:xc,fragmentDefs:wc,fragmentColorTransform:Sc,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(i3,`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 Pl=new Fu({color:16777215,side:xl,transparent:!0}),Y2=8421504,K2=new g0,Lo=new ct,Ys=new ct,pi=[],kc=new ct,Ks="+x+y";function J2(o){return Array.isArray(o)?o[0]:o}let u3=()=>{const o=new wi(new Sl(1,1),Pl);return u3=()=>o,o},c3=()=>{const o=new wi(new Sl(1,1,32,1),Pl);return c3=()=>o,o};const Ec={type:"syncstart"},Mc={type:"synccomplete"},f3=["font","fontSize","letterSpacing","lineHeight","maxWidth","overflowWrap","text","direction","textAlign","textIndent","whiteSpace","anchorX","anchorY","colorRanges","sdfGlyphSize"],Lc=f3.concat("material","color","depthOffset","clipRect","curveRadius","orientation","glyphGeometryDetail");let d3=class extends wi{constructor(){const n=new Cc;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=Y2,this.strokeOpacity=1,this.fillOpacity=1,this.depthOffset=0,this.clipRect=null,this.orientation=Ks,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(Ec),s3({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(Mc),n&&n()})))}onBeforeRender(n,s,c,i,r,a){this.sync(),r.isTroikaTextMaterial&&this._prepareForRender(r),r._hadOwnSide=r.hasOwnProperty("side"),this.geometry.setSide(r._actualSide=r.side),r.side=Iu}onAfterRender(n,s,c,i,r,a){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=Pl.clone());if((!n||n.baseMaterial!==s)&&(n=this._derivedMaterial=_c(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 J2(this.material).getDepthMaterial()}get customDistanceMaterial(){return J2(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,S,M=0,k=0;if(s){let{outlineWidth:w,outlineOffsetX:L,outlineOffsetY:I,outlineBlur:U,outlineOpacity:b}=this;p=this._parsePercent(w)||0,h=Math.max(0,this._parsePercent(U)||0),v=b,M=this._parsePercent(L)||0,k=this._parsePercent(I)||0}else g=Math.max(0,this._parsePercent(this.strokeWidth)||0),g&&(S=this.strokeColor,c.uTroikaStrokeColor.value.set(S??Y2),x=this.strokeOpacity,x==null&&(x=1)),v=this.fillOpacity;c.uTroikaDistanceOffset.value=p,c.uTroikaPositionOffset.value.set(M,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 _=this.clipRect;if(_&&Array.isArray(_)&&_.length===4)c.uTroikaClipRect.value.fromArray(_);else{const w=(this.fontSize||.1)*100;c.uTroikaClipRect.value.set(u[0]-w,u[1]-w,u[2]+w,u[3]+w)}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 xi;(r!==f._input||typeof r=="object")&&f.set(f._input=r)}let a=this.orientation||Ks;if(a!==n._orientation){let f=c.uTroikaOrient.value;a=a.replace(/[^-+xyz]/g,"");let u=a!==Ks&&a.match(/^([-+])([xyz])([-+])([xyz])$/);if(u){let[,p,h,g,v]=u;Lo.set(0,0,0)[h]=p==="-"?1:-1,Ys.set(0,0,0)[v]=g==="-"?-1:1,K2.lookAt(kc,Lo.cross(Ys),Ys),f.setFromMatrix4(K2)}else f.identity();n._orientation=a}}_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 $1){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 $1){return Lo.copy(n),this.localPositionToTextCoords(this.worldToLocal(Lo),s)}raycast(n,s){const{textRenderInfo:c,curveRadius:i}=this;if(c){const r=c.blockBounds,a=i?c3():u3(),f=a.geometry,{position:u,uv:p}=f.attributes;for(let h=0;h{this[c]=n[c]}),this}clone(){return new this.constructor().copy(this)}};f3.forEach(o=>{const n="_private_"+o;Object.defineProperty(d3.prototype,o,{get(){return this[n]},set(s){s!==this[n]&&(this[n]=s,this._needsSync=!0)}})});function Tc(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=To.indexOf(i);r!==-1&&To.splice(r,1)},c.lifespan)}).catch(r=>i.error=r)};if(To.push(i),!s)throw i.promise}const bc=(o,n,s)=>Pc(o,n,!1,s),q2=T.forwardRef(({anchorX:o="center",anchorY:n="middle",font:s,fontSize:c=1,children:i,characters:r,onSync:a,...f},u)=>{const p=Ar(({invalidate:x})=>x),[h]=T.useState(()=>new d3),[g,v]=T.useMemo(()=>{const x=[];let S="";return T.Children.forEach(i,M=>{typeof M=="string"||typeof M=="number"?S+=M:x.push(M)}),[x,S]},[i]);return bc(()=>new Promise(x=>cc({font:s,characters:r},x)),["troika-text",s,r]),T.useLayoutEffect(()=>void h.sync(()=>{p(),a&&a(h)})),T.useEffect(()=>()=>h.dispose(),[h]),T.createElement("primitive",q1({object:h,ref:u,font:s,text:v,anchorX:o,anchorY:n,fontSize:c},f),g)});function h3(o){const n=o+"Geometry";return T.forwardRef(({args:s,children:c,...i},r)=>T.createElement("mesh",q1({ref:r},i),T.createElement(n,{attach:"geometry",args:s}),c))}const K8=h3("circle"),J8=h3("plane");var $e="colors",nn="sizes",Ce="space",jc={gap:Ce,gridGap:Ce,columnGap:Ce,gridColumnGap:Ce,rowGap:Ce,gridRowGap:Ce,inset:Ce,insetBlock:Ce,insetBlockEnd:Ce,insetBlockStart:Ce,insetInline:Ce,insetInlineEnd:Ce,insetInlineStart:Ce,margin:Ce,marginTop:Ce,marginRight:Ce,marginBottom:Ce,marginLeft:Ce,marginBlock:Ce,marginBlockEnd:Ce,marginBlockStart:Ce,marginInline:Ce,marginInlineEnd:Ce,marginInlineStart:Ce,padding:Ce,paddingTop:Ce,paddingRight:Ce,paddingBottom:Ce,paddingLeft:Ce,paddingBlock:Ce,paddingBlockEnd:Ce,paddingBlockStart:Ce,paddingInline:Ce,paddingInlineEnd:Ce,paddingInlineStart:Ce,top:Ce,right:Ce,bottom:Ce,left:Ce,scrollMargin:Ce,scrollMarginTop:Ce,scrollMarginRight:Ce,scrollMarginBottom:Ce,scrollMarginLeft:Ce,scrollMarginX:Ce,scrollMarginY:Ce,scrollMarginBlock:Ce,scrollMarginBlockEnd:Ce,scrollMarginBlockStart:Ce,scrollMarginInline:Ce,scrollMarginInlineEnd:Ce,scrollMarginInlineStart:Ce,scrollPadding:Ce,scrollPaddingTop:Ce,scrollPaddingRight:Ce,scrollPaddingBottom:Ce,scrollPaddingLeft:Ce,scrollPaddingX:Ce,scrollPaddingY:Ce,scrollPaddingBlock:Ce,scrollPaddingBlockEnd:Ce,scrollPaddingBlockStart:Ce,scrollPaddingInline:Ce,scrollPaddingInlineEnd:Ce,scrollPaddingInlineStart:Ce,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"},Uc=(o,n)=>typeof n=="function"?{"()":Function.prototype.toString.call(n)}:n,Or=()=>{const o=Object.create(null);return(n,s,...c)=>{const i=(r=>JSON.stringify(r,Uc))(n);return i in o?o[i]:o[i]=s(n,...c)}},K1=Symbol.for("sxs.internal"),bl=(o,n)=>Object.defineProperties(o,Object.getOwnPropertyDescriptors(n)),$2=o=>{for(const n in o)return!0;return!1},{hasOwnProperty:Ic}=Object.prototype,pl=o=>o.includes("-")?o:o.replace(/[A-Z]/g,n=>"-"+n.toLowerCase()),Rc=/\s+(?![^()]*\))/,Er=o=>n=>o(...typeof n=="string"?String(n).split(Rc):[n]),e0={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:Er((o,n)=>({marginBlockStart:o,marginBlockEnd:n||o})),marginInline:Er((o,n)=>({marginInlineStart:o,marginInlineEnd:n||o})),maxSize:Er((o,n)=>({maxBlockSize:o,maxInlineSize:n||o})),minSize:Er((o,n)=>({minBlockSize:o,minInlineSize:n||o})),paddingBlock:Er((o,n)=>({paddingBlockStart:o,paddingBlockEnd:n||o})),paddingInline:Er((o,n)=>({paddingInlineStart:o,paddingInlineEnd:n||o}))},Js=/([\d.]+)([^]*)/,Ac=(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,Oc=(o,n)=>o in Fc&&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),Fc={blockSize:1,height:1,inlineSize:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,width:1},m1=o=>o?o+"-":"",p3=(o,n,s)=>o.replace(/([+-])?((?:\d+(?:\.\d*)?|\.\d+)(?:[Ee][+-]?\d+)?)?(\$|--)([$\w-]+)/g,(c,i,r,a,f)=>a=="$"==!!r?c:(i||a=="--"?"calc(":"")+"var(--"+(a==="$"?m1(n)+(f.includes("$")?"":m1(s))+f.replace(/\$/g,"-"):f)+")"+(i||a=="--"?"*"+(i||"")+(r||"1")+")":"")),Dc=/\s*,\s*(?![^()]*\))/,Bc=Object.prototype.toString,jr=(o,n,s,c,i)=>{let r,a,f;const u=(p,h,g)=>{let v,x;const S=M=>{for(v in M){const w=v.charCodeAt(0)===64,L=w&&Array.isArray(M[v])?M[v]:[M[v]];for(x of L){const I=/[A-Z]/.test(_=v)?_:_.replace(/-[^]/g,b=>b[1].toUpperCase()),U=typeof x=="object"&&x&&x.toString===Bc&&(!c.utils[I]||!h.length);if(I in c.utils&&!U){const b=c.utils[I];if(b!==a){a=b,S(b(x)),a=null;continue}}else if(I in e0){const b=e0[I];if(b!==f){f=b,S(b(x)),f=null;continue}}if(w&&(k=v.slice(1)in c.media?"@media "+c.media[v.slice(1)]:v,v=k.replace(/\(\s*([\w-]+)\s*(=|<|<=|>|>=)\s*([\w-]+)\s*(?:(<|<=|>|>=)\s*([\w-]+)\s*)?\)/g,(b,O,B,Q,ee,z)=>{const A=Js.test(O),J=.0625*(A?-1:1),[K,re]=A?[Q,O]:[O,Q];return"("+(B[0]==="="?"":B[0]===">"===A?"max-":"min-")+K+":"+(B[0]!=="="&&B.length===1?re.replace(Js,(se,pe,N)=>Number(pe)+J*(B===">"?1:-1)+N):re)+(ee?") and ("+(ee[0]===">"?"min-":"max-")+K+":"+(ee.length===1?z.replace(Js,(se,pe,N)=>Number(pe)+J*(ee===">"?-1:1)+N):z):"")+")"})),U){const b=w?g.concat(v):[...g],O=w?[...h]:Ac(h,v.split(Dc));r!==void 0&&i(t0(...r)),r=void 0,u(x,O,b)}else r===void 0&&(r=[[],h,g]),v=w||v.charCodeAt(0)!==36?v:`--${m1(c.prefix)}${v.slice(1).replace(/\$/g,"-")}`,x=U?x:typeof x=="number"?x&&I in Hc?String(x)+"px":String(x):p3(Oc(I,x??""),c.prefix,c.themeMap[I]),r[0].push(`${w?`${v} `:`${pl(v)}:`}${x}`)}}var k,_};S(p),r!==void 0&&i(t0(...r)),r=void 0};u(o,n,s)},t0=(o,n,s)=>`${s.map(c=>`${c}{`).join("")}${n.length?`${n.join(",")}{`:""}${o.join(";")}${n.length?"}":""}${Array(s.length?s.length+1:0).join("}")}`,Hc={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},n0=o=>String.fromCharCode(o+(o>25?39:97)),J1=o=>(n=>{let s,c="";for(s=Math.abs(n);s>52;s=s/52|0)c=n0(s%52)+c;return n0(s%52)+c})(((n,s)=>{let c=s.length;for(;c;)n=33*n^s.charCodeAt(--c);return n})(5381,JSON.stringify(o))>>>0),vi=["themed","global","styled","onevar","resonevar","allvar","inline"],zc=o=>{if(o.href&&!o.href.startsWith(location.origin))return!1;try{return!!o.cssRules}catch{return!1}},Vc=o=>{let n;const s=()=>{const{cssRules:i}=n.sheet;return[].map.call(i,(r,a)=>{const{cssText:f}=r;let u="";if(f.startsWith("--sxs"))return"";if(i[a-1]&&(u=i[a-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(zc(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+/),S=vi[x[0]];S&&(n||(n={sheet:f,reset:c,rules:{},toString:s}),n.rules[S]={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:a}=n;for(let f=vi.length-1;f>=0;--f){const u=vi[f];if(!a[u]){const p=vi[f+1],h=a[p]?a[p].index:r.cssRules.length;r.insertRule("@media{}",h),r.insertRule(`--sxs{--sxs:${f}}`,h),a[u]={group:r.cssRules[h+1],index:h,cache:new Set([f])}}Nc(a[u])}};return c(),n},Nc=o=>{const n=o.group;let s=n.cssRules.length;o.apply=c=>{try{n.insertRule(c,s),++s}catch{}}},mi=Symbol(),Gc=Or(),r0=(o,n)=>Gc(o,()=>(...s)=>{let c={type:null,composers:new Set};for(const i of s)if(i!=null)if(i[K1]){c.type==null&&(c.type=i[K1].type);for(const r of i[K1].composers)c.composers.add(r)}else i.constructor!==Object||i.$$typeof?c.type==null&&(c.type=i):c.composers.add(Wc(i,o));return c.type==null&&(c.type="span"),c.composers.size||c.composers.add(["PJLV",{},[],[],{},[]]),Zc(o,c,n)}),Wc=({variants:o,compoundVariants:n,defaultVariants:s,...c},i)=>{const r=`${m1(i.prefix)}c-${J1(c)}`,a=[],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,Ic.call(h,g)||(u[v]="undefined");const x=o[v];for(const S in x){const M={[v]:String(S)};String(S)==="undefined"&&p.push(v);const k=x[S],_=[M,k,!$2(k)];a.push(_)}}var h,g;if(typeof n=="object"&&n)for(const v of n){let{css:x,...S}=v;x=typeof x=="object"&&x||{};for(const k in S)S[k]=String(S[k]);const M=[S,x,!$2(x)];f.push(M)}return[r,c,a,f,u,p]},Zc=(o,n,s)=>{const[c,i,r,a]=Xc(n.composers),f=typeof n.type=="function"||n.type.$$typeof?(g=>{function v(){for(let x=0;xv.rules[x]={apply:S=>v[mi].push([x,S])}),v})(s):null,u=(f||s).rules,p=`.${c}${i.length>1?`:where(.${i.slice(1).join(".")})`:""}`,h=g=>{g=typeof g=="object"&&g||Qc;const{css:v,...x}=g,S={};for(const _ in r)if(delete x[_],_ in g){let w=g[_];typeof w=="object"&&w?S[_]={"@initial":r[_],...w}:(w=String(w),S[_]=w!=="undefined"||a.has(_)?w:r[_])}else S[_]=r[_];const M=new Set([...i]);for(const[_,w,L,I]of n.composers){s.rules.styled.cache.has(_)||(s.rules.styled.cache.add(_),jr(w,[`.${_}`],[],o,O=>{u.styled.apply(O)}));const U=i0(L,S,o.media),b=i0(I,S,o.media,!0);for(const O of U)if(O!==void 0)for(const[B,Q,ee]of O){const z=`${_}-${J1(Q)}-${B}`;M.add(z);const A=(ee?s.rules.resonevar:s.rules.onevar).cache,J=ee?u.resonevar:u.onevar;A.has(z)||(A.add(z),jr(Q,[`.${z}`],[],o,K=>{J.apply(K)}))}for(const O of b)if(O!==void 0)for(const[B,Q]of O){const ee=`${_}-${J1(Q)}-${B}`;M.add(ee),s.rules.allvar.cache.has(ee)||(s.rules.allvar.cache.add(ee),jr(Q,[`.${ee}`],[],o,z=>{u.allvar.apply(z)}))}}if(typeof v=="object"&&v){const _=`${c}-i${J1(v)}-css`;M.add(_),s.rules.inline.cache.has(_)||(s.rules.inline.cache.add(_),jr(v,[`.${_}`],[],o,w=>{u.inline.apply(w)}))}for(const _ of String(g.className||"").trim().split(/\s+/))_&&M.add(_);const k=x.className=[...M].join(" ");return{type:n.type,className:k,selector:p,props:x,toString:()=>k,deferredInjector:f}};return bl(h,{className:c,selector:p,[K1]:n,toString:()=>(s.rules.styled.cache.has(c)||h(),c)})},Xc=o=>{let n="";const s=[],c={},i=[];for(const[r,,,,a,f]of o){n===""&&(n=r),s.push(r),i.push(...f);for(const u in a){const p=a[u];(c[u]===void 0||p!=="undefined"||f.includes(p))&&(c[u]=p)}}return[n,s,c,new Set(i)]},i0=(o,n,s,c)=>{const i=[];e:for(let[r,a,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,S,M=0;for(const k in v){if(g===String(v[k])){if(k!=="@initial"){const _=k.slice(1);(S=S||[]).push(_ in s?s[_]:k.replace(/^@media ?/,"")),h=!0}p+=M,x=!0}++M}if(S&&S.length&&(a={["@media "+S.join(", ")]:a}),!x)continue e}}}(i[p]=i[p]||[]).push([c?"cv":`${u}-${r[u]}`,a,h])}return i},Qc={},Yc=Or(),Kc=(o,n)=>Yc(o,()=>(...s)=>{const c=()=>{for(let i of s){i=typeof i=="object"&&i||{};let r=J1(i);if(!n.rules.global.cache.has(r)){if(n.rules.global.cache.add(r),"@import"in i){let a=[].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};`,a++);delete i["@import"]}jr(i,[],[],o,a=>{n.rules.global.apply(a)})}}return""};return bl(c,{toString:c})}),Jc=Or(),qc=(o,n)=>Jc(o,()=>s=>{const c=`${m1(o.prefix)}k-${J1(s)}`,i=()=>{if(!n.rules.global.cache.has(c)){n.rules.global.cache.add(c);const r=[];jr(s,[],[],o,f=>r.push(f));const a=`@keyframes ${c}{${r.join("")}}`;n.rules.global.apply(a)}return c};return bl(i,{get name(){return i()},toString:i})}),$c=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"--"+m1(this.prefix)+m1(this.scale)+this.token}toString(){return this.computedValue}},e7=Or(),t7=(o,n)=>e7(o,()=>(s,c)=>{c=typeof s=="object"&&s||Object(c);const i=`.${s=(s=typeof s=="string"?s:"")||`${m1(o.prefix)}t-${J1(c)}`}`,r={},a=[];for(const u in c){r[u]={};for(const p in c[u]){const h=`--${m1(o.prefix)}${u}-${p}`,g=p3(String(c[u][p]),o.prefix,u);r[u][p]=new $c(p,g,u,o.prefix),a.push(`${h}:${g}`)}}const f=()=>{if(a.length&&!n.rules.themed.cache.has(s)){n.rules.themed.cache.add(s);const u=`${c===o.theme?":root,":""}.${s}{${a.join(";")}}`;n.rules.themed.apply(u)}return s};return{...r,get className(){return f()},selector:i,toString:f}}),n7=Or(),o0,r7=Or(),i7=o=>{const n=(s=>{let c=!1;const i=n7(s,r=>{c=!0;const a="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:a,media:f,theme:p,themeMap:typeof r.themeMap=="object"&&r.themeMap||{...jc},utils:typeof r.utils=="object"&&r.utils||{}},g=Vc(u),v={css:r0(h,g),globalCss:Kc(h,g),keyframes:qc(h,g),createTheme:t7(h,g),reset(){g.reset(),v.theme.toString()},theme:{},sheet:g,config:h,prefix:a,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})=>r7(s,()=>{const i=r0(s,c);return(...r)=>{const a=i(...r),f=a[K1].type,u=e1.forwardRef((p,h)=>{const g=p&&p.as||f,{props:v,deferredInjector:x}=a(p);return delete v.as,v.ref=h,x?e1.createElement(e1.Fragment,null,e1.createElement(g,v),e1.createElement(x,null)):e1.createElement(g,v)});return u.className=a.className,u.displayName=`Styled.${f.displayName||f.name||f}`,u.selector=a.selector,u.toString=()=>a.selector,u[K1]=a[K1],u}}))(n),n},o7=()=>o0||(o0=i7()),Mt=(...o)=>o7().styled(...o);function xt(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 s7=["color"],m3=T.forwardRef(function(o,n){var s=o.color,c=s===void 0?"currentColor":s,i=xt(o,s7);return T.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}),T.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"}))}),l7=["color"],a7=T.forwardRef(function(o,n){var s=o.color,c=s===void 0?"currentColor":s,i=xt(o,l7);return T.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}),T.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"}))}),u7=["color"],c7=T.forwardRef(function(o,n){var s=o.color,c=s===void 0?"currentColor":s,i=xt(o,u7);return T.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}),T.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"}))}),f7=["color"],d7=T.forwardRef(function(o,n){var s=o.color,c=s===void 0?"currentColor":s,i=xt(o,f7);return T.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}),T.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"}))}),h7=["color"],p7=T.forwardRef(function(o,n){var s=o.color,c=s===void 0?"currentColor":s,i=xt(o,h7);return T.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}),T.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"}))}),m7=["color"],g7=T.forwardRef(function(o,n){var s=o.color,c=s===void 0?"currentColor":s,i=xt(o,m7);return T.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}),T.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"}))}),v7=["color"],C7=T.forwardRef(function(o,n){var s=o.color,c=s===void 0?"currentColor":s,i=xt(o,v7);return T.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}),T.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"}))}),y7=["color"],x7=T.forwardRef(function(o,n){var s=o.color,c=s===void 0?"currentColor":s,i=xt(o,y7);return T.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}),T.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"}))}),w7=["color"],ml=T.forwardRef(function(o,n){var s=o.color,c=s===void 0?"currentColor":s,i=xt(o,w7);return T.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}),T.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"}))}),S7=["color"],_7=T.forwardRef(function(o,n){var s=o.color,c=s===void 0?"currentColor":s,i=xt(o,S7);return T.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}),T.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"}))}),k7=["color"],E7=T.forwardRef(function(o,n){var s=o.color,c=s===void 0?"currentColor":s,i=xt(o,k7);return T.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}),T.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"}))}),M7=["color"],L7=T.forwardRef(function(o,n){var s=o.color,c=s===void 0?"currentColor":s,i=xt(o,M7);return T.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}),T.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"}))}),T7=["color"],P7=T.forwardRef(function(o,n){var s=o.color,c=s===void 0?"currentColor":s,i=xt(o,T7);return T.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}),T.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"}))}),b7=["color"],j7=T.forwardRef(function(o,n){var s=o.color,c=s===void 0?"currentColor":s,i=xt(o,b7);return T.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}),T.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"}))}),U7=["color"],I7=T.forwardRef(function(o,n){var s=o.color,c=s===void 0?"currentColor":s,i=xt(o,U7);return T.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}),T.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"}))}),R7=["color"],A7=T.forwardRef(function(o,n){var s=o.color,c=s===void 0?"currentColor":s,i=xt(o,R7);return T.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}),T.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"}))}),O7=["color"],F7=T.forwardRef(function(o,n){var s=o.color,c=s===void 0?"currentColor":s,i=xt(o,O7);return T.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}),T.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"}))}),D7=["color"],B7=T.forwardRef(function(o,n){var s=o.color,c=s===void 0?"currentColor":s,i=xt(o,D7);return T.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}),T.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"}))}),H7=["color"],g3=T.forwardRef(function(o,n){var s=o.color,c=s===void 0?"currentColor":s,i=xt(o,H7);return T.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}),T.createElement("path",{d:"M4 6H11L7.5 10.5L4 6Z",fill:c}))}),z7=["color"],v3=T.forwardRef(function(o,n){var s=o.color,c=s===void 0?"currentColor":s,i=xt(o,z7);return T.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}),T.createElement("path",{d:"M4 9H11L7.5 4.5L4 9Z",fill:c}))}),V7=["color"],C3=T.forwardRef(function(o,n){var s=o.color,c=s===void 0?"currentColor":s,i=xt(o,V7);return T.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}),T.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 N7(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 G7(o){var n=N7(o,"string");return typeof n=="symbol"?n:String(n)}function W7(o,n,s){return n=G7(n),n in o?Object.defineProperty(o,n,{value:s,enumerable:!0,configurable:!0,writable:!0}):o[n]=s,o}function s0(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 Z7{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=v0.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*Rn.fpsLimit/10/c;i<0||(Rn.value=i,Rn.isOverLimit<25?Rn.isOverLimit++:Ne.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,a=r*1e3/c,f=Ne.getState().overclockingFps?Rn.value:a;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(a),this.logsAccums.fps.push(f),this.logsAccums.gpu.push(i),this.overClock&&typeof window.requestIdleCallback<"u"&&(Rn.isOverLimit>0&&f>a?Rn.isOverLimit--:Ne.getState().overclockingFps&&Ne.setState({overclockingFps:!1})),s>=this.paramTime+180&&(this.paramLogger({cpu:gi(this.logsAccums.cpu),gpu:gi(this.logsAccums.gpu),mem:gi(this.logsAccums.mem),fps:gi(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,Rn.fpsLimit=Math.round(gi(this.logsAccums.fpsFixed)/10)*100,Ne.setState({fpsLimit:Rn.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 a=this.chartHz*r/1e3;for(;--a>0&&this.detected;){const u=(this.frameId-this.chartFrame)/r*1e3,p=Ne.getState().overclockingFps?Rn.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 X7=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 a=c[r],{geometry:f,material:u}=a;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,S=f.drawRange.count*g,M=x,k=Math.min(v,x+S)-1;let _=1;const w=a.count||1;let L="Triangle",I=0;a.isMesh?u.wireframe===!0?(L="Line",_=_/2):(L="Triangle",_=_/3):a.isLine?(L="Line",a.isLineSegments?_=_/2:a.isLineLoop?_=_:_=_-1):a.isPoints?(L="Point",_=_):a.isSprite&&(L="Triangle",_=_/3);const U=Math.round(Math.max(0,k-M+1)*(_*w));U>I&&(I=U,i.type=L),i.total+=U,i.data.push({drawCount:U,type:L}),a.userData.drawCount={type:L,count:U}}),n.drawCounts=i})},Q7=Z1.prototype.updateMatrixWorld,Y7=Z1.prototype.updateWorldMatrix,l0=Z1.prototype.updateMatrix;let Ur={value:0},n1={value:0};const K7=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},a0=(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},J7=o=>o==="muiPerf",Ne=x5(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"})),y3=({trackCPU:o,overClock:n,chart:s,deepAnalyze:c,matrixUpdate:i})=>{const{gl:r,scene:a}=Ar();Ne.setState({gl:r,scene:a});const f=T.useMemo(()=>{const u=new Z7({trackGPU:!0,overClock:n,chartLen:s?s.length:120,chartHz:s?s.hz:60,gl:r.getContext(),chartLogger:g=>{Ne.setState({chart:g})},paramLogger:g=>{Ne.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(Uo.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(Uo.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 T.useEffect(()=>{f&&(f.overClock=n||!1,n===!1&&(Ne.setState({overclockingFps:!1}),Rn.value=0,Rn.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]),T.useEffect(()=>{i&&(Z1.prototype.updateMatrixWorld=function(){(this.matrixWorldNeedsUpdate||arguments[0])&&Ur.value++,Q7.apply(this,arguments)},Z1.prototype.updateWorldMatrix=function(){Ur.value++,Y7.apply(this,arguments)},Z1.prototype.updateMatrix=function(){n1.value++,l0.apply(this,arguments)}),r.info.autoReset=!1;let u=null,p=null;if(r.info)return u=i9(function(){Ne.getState().paused&&Ne.setState({paused:!1}),window.performance&&(window.performance.mark("cpu-started"),f.startCpuProfiling=!0),n1.value-=1,Ur.value=0,n1.value=0,r.info&&r.info.reset()}),p=o9(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={},S=new Map;a.traverse(function(k){if((k instanceof wi||k instanceof Du)&&k.material){let _=k.material.uuid;Array.isArray(k.material)&&k.material.length>1?_=a0(k.material[1],x):_=a0(k.material,x),x[_].meshes[k.uuid]=k}}),r==null||(g=r.info)===null||g===void 0||(v=g.programs)===null||v===void 0||v.forEach(M=>{const k=M.cacheKey.split(","),_=k[k.findIndex(J7)+1];if(K7(_)&&x[_]){const{material:w,meshes:L}=x[_];S.set(_,{program:M,material:w,meshes:L,drawCounts:{total:0,type:"triangle",data:[]},expand:!1,visible:!0})}}),S.size!==Ne.getState().programs.size&&(X7(S),Ne.setState({programs:S,triggerProgramsUpdate:Ne.getState().triggerProgramsUpdate++}))}}),()=>{f&&(typeof window.cancelIdleCallback<"u"&&window.cancelIdleCallback(f.idleCbId),window.cancelAnimationFrame(f.rafId),window.cancelAnimationFrame(f.checkQueryId)),i&&(Z1.prototype.updateMatrixWorld=l0),u(),p()}},[f,r,o,s,i]),T.useEffect(()=>{const u=s9(function(){return f&&(f.paused=!0,n1.value=0,Ur.value=0,Ne.setState({paused:!0,log:{maxMemory:0,gpu:0,mem:0,cpu:0,fps:0,totalTime:0,frameCount:0}})),!1});return()=>{u()}},[]),null},q7=Mt("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"}}),qs=Mt("small",{position:"absolute",right:0,fontSize:"10px"}),Gt=Mt("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=Mt("span",{verticalAlign:"bottom",position:"absolute",bottom:"5px",color:"rgba(101, 197, 188, 1)",textAlign:"right",letterSpacing:"1px",fontSize:"8px",fontWeight:"500",width:"60px"}),$7=Mt("div",{display:"flex"}),e8=Mt("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"}}),t8=Mt("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"}}),n8=Mt("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%"}),jl=Mt("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"}}),r8=Mt("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"}}),i8=Mt("div",{padding:"4px 6px",fontSize:"12px",pointerEvents:"auto"}),o8=Mt("span",{fontWeight:"bold",letterSpacing:"0.08em",maxWidth:"145px",overflow:"hidden",textOverflow:"ellipsis",display:"inline-block",verticalAlign:"middle",fontSize:"11px",marginRight:"10px"}),s8=Mt("div",{maxHeight:"50vh",overflowY:"auto",marginTop:"38px"}),l8=Mt("div",{marginTop:"0"}),u0=Mt("div",{display:"flex",position:"relative",fontWeight:"bold",color:"#fff",lineHeight:"14px",svg:{marginRight:"4px",display:"inline-block"}}),x3=Mt("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)"}}),w3=Mt("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"}),a8=Mt("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"}}),u8=Mt("li",{display:"flex !important",height:"auto !important",span:{height:"40px",display:"block",position:"relative"},b:{paddingLeft:"12px"}}),In=T.memo(({isPerf:o,color:n,colorBlind:s,customData:c,isMemory:i,isShadersInfo:r,metric:a,fontSize:f,offsetY:u=0,offsetX:p,round:h,hasInstance:g})=>{const{width:v,height:x}=Ar(k=>k.viewport),S=T.useRef(null),M=T.useRef(null);return _i(function(){const _=Ne.getState().gl,w=Ne.getState().log;if(!w||!S.current||(c&&(S.current.text=Ne.getState().customData),!a))return;let L=w[a];if(r){var I;L=(I=_.info.programs)===null||I===void 0?void 0:I.length}else a==="matriceCount"?L=n1.value:!o&&_.info.render&&(L=(i?_.info.memory:_.info.render)[a]);if(a==="fps"&&(S.current.color=Ne.getState().overclockingFps?Wt(s).overClock.toString():`rgb(${Wt(s).fps.toString()})`),S.current.text=(Math.round(L*Math.pow(10,h))/Math.pow(10,h)).toFixed(h),g){const U=_.info.instance;if(typeof U>"u"&&a!=="matriceCount")return;let b;a==="matriceCount"?b=Ur.value:b=U[a],b>0?(S.current.fontSize=f/1.15,M.current.fontSize=L>0?f/1.4:f,S.current.position.y=x/2-u-f/1.9,M.current.text=" ± "+(Math.round(b*Math.pow(10,h))/Math.pow(10,h)).toFixed(h)):(S.current.position.y=x/2-u-f,S.current.fontSize=f)}n1.value-=1,S.current.updateMatrix(),S.current.matrixWorld.copy(S.current.matrix)}),y.jsxs(T.Suspense,{fallback:null,children:[y.jsxs(q2,{textAlign:"justify",matrixAutoUpdate:!1,ref:S,fontSize:f,position:[-v/2+p+f,x/2-u-f,0],color:n,characters:"0123456789",onUpdate:k=>{k.updateMatrix(),n1.value-=1,k.matrixWorld.copy(k.matrix)},children:[y.jsx("meshBasicMaterial",{blending:l2}),"0"]}),g&&y.jsx(q2,{textAlign:"justify",matrixAutoUpdate:!1,ref:M,fontSize:8,position:[-v/2+p+f,x/2-u-f*1.15,0],color:"lightgrey",characters:"0123456789",onUpdate:k=>{k.updateMatrix(),n1.value-=1,k.matrixWorld.copy(k.matrix)},children:y.jsx("meshBasicMaterial",{blending:l2})})]})}),c8=({colorBlind:o,customData:n,minimal:s,matrixUpdate:c})=>y.jsxs(y.Fragment,{children:[y.jsx(In,{colorBlind:o,color:`rgb(${Wt(o).fps.toString()})`,isPerf:!0,metric:"fps",fontSize:14,offsetX:140,round:0}),y.jsx(In,{color:`rgb(${Wt(o).cpu.toString()})`,isPerf:!0,metric:"cpu",fontSize:14,offsetX:72,round:3}),y.jsx(In,{color:`rgb(${Wt(o).gpu.toString()})`,isPerf:!0,metric:"gpu",fontSize:14,offsetX:10,round:3}),s?null:y.jsxs(y.Fragment,{children:[y.jsx(In,{metric:"calls",fontSize:14,offsetX:200,round:0,hasInstance:!0}),y.jsx(In,{metric:"triangles",fontSize:14,offsetX:260,round:0,hasInstance:!0}),y.jsx(In,{isMemory:!0,metric:"geometries",fontSize:14,offsetY:30,offsetX:0,round:0}),y.jsx(In,{isMemory:!0,metric:"textures",fontSize:14,offsetY:30,offsetX:80,round:0}),y.jsx(In,{isShadersInfo:!0,metric:"programs",fontSize:14,offsetY:30,offsetX:140,round:0}),y.jsx(In,{metric:"lines",fontSize:14,offsetY:30,offsetX:200,round:0,hasInstance:!0}),y.jsx(In,{metric:"points",fontSize:14,offsetY:30,offsetX:260,round:0,hasInstance:!0}),c&&y.jsx(In,{isPerf:!0,metric:"matriceCount",fontSize:14,offsetY:30,offsetX:320,round:0,hasInstance:!0})]}),n&&y.jsx(In,{color:`rgb(${Wt(o).custom.toString()})`,customData:n,fontSize:14,offsetY:0,offsetX:s?200:320,round:0})]}),f8=({colorBlind:o,minimal:n,chart:s={length:30,hz:15}})=>{const c=T.useMemo(()=>({fps:new Float32Array(s.length*3),cpu:new Float32Array(s.length*3),gpu:new Float32Array(s.length*3)}),[s]),i=T.useRef(null),r=T.useRef(null),a=T.useRef(null),f=T.useRef(null),u=T.useMemo(()=>new ct(0,0,0),[]),p=(h,g=1,v,x)=>{let S=0;const{width:M,height:k}=x,_=Ne.getState().chart.data[h];if(!_||_.length===0)return;const w=n?2:6,L=n?12:50;let I=_.length;for(let U=0;US&&(S=_[b]*g),u.set(w+U/(I-1)*(M-w*2)-M/2,Math.min(100,_[b])*g/100*(k-w*2-L)-k/2,0),u.toArray(v.attributes.position.array,U*3))}v.attributes.position.needsUpdate=!0};return _i(function({viewport:g}){p("fps",1,i.current,g),r.current&&r.current.color.set(Ne.getState().overclockingFps?Wt(o).overClock.toString():`rgb(${Wt(o).fps.toString()})`),p("gpu",5,a.current,g),p("cpu",5,f.current,g)}),y.jsxs(y.Fragment,{children:[y.jsxs("line",{children:[y.jsx("bufferGeometry",{ref:i,children:y.jsx("bufferAttribute",{attach:"attributes-position",count:s.length,array:c.fps,itemSize:3,usage:As,needsUpdate:!0})}),y.jsx("lineBasicMaterial",{ref:r,color:`rgb(${Wt(o).fps.toString()})`,transparent:!0,opacity:.5})]}),y.jsxs("line",{children:[y.jsx("bufferGeometry",{ref:a,children:y.jsx("bufferAttribute",{attach:"attributes-position",count:s.length,array:c.gpu,itemSize:3,usage:As,needsUpdate:!0})}),y.jsx("lineBasicMaterial",{color:`rgb(${Wt(o).gpu.toString()})`,transparent:!0,opacity:.5})]}),y.jsxs("line",{children:[y.jsx("bufferGeometry",{ref:f,children:y.jsx("bufferAttribute",{attach:"attributes-position",count:s.length,array:c.cpu,itemSize:3,usage:As,needsUpdate:!0})}),y.jsx("lineBasicMaterial",{color:`rgb(${Wt(o).cpu.toString()})`,transparent:!0,opacity:.5})]})]})},d8=({colorBlind:o,chart:n,customData:s,matrixUpdate:c,showGraph:i=!0,antialias:r=!0,minimal:a})=>{const f=T.useRef(void 0),u=Ne(p=>p.paused);return y.jsxs(t8,{style:{display:"flex",position:"absolute",height:`${a?37:i?100:60}px`,minWidth:`${a?"100px":s?"370px":"310px"}`},children:[y.jsx(P9,{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:`${a?37:i?100:60}px`},children:u?null:y.jsxs(y.Fragment,{children:[y.jsx(h8,{}),y.jsx(c8,{customData:s,minimal:a,matrixUpdate:c}),i&&y.jsx(f8,{colorBlind:o,minimal:a,chart:n})]})}),u&&y.jsxs(n8,{children:[y.jsx(I7,{})," PAUSED"]})]})},h8=()=>(_i(function({gl:n,scene:s,camera:c}){c.updateMatrix(),n1.value-=1,c.matrixWorld.copy(c.matrix),c.matrixWorldInverse.copy(c.matrixWorld).invert(),n.render(s,c),Ur.value=0,n1.value=0},1/0),null);function p8(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 m8(o,n){if(o==null)return{};var s=p8(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 g8=["portal","className","children"],v8=T.forwardRef((o,n)=>{let{portal:s,className:c,children:i}=o,r=m8(o,g8);const a=Ar(h=>h.gl),f=T.useRef(null),u=T.useRef(null),p=(s==null?void 0:s.current)!=null?s.current:a.domElement.parentNode;return T.useLayoutEffect(()=>{if(!f.current||!p)return;const h=document.createElement("div"),g=u.current=h0(h);return p.appendChild(h),()=>{g.unmount(),u.current=null,p.removeChild(h)}},[p]),T.useLayoutEffect(()=>{const h=u.current;h&&h.render(y.jsx("div",{ref:n,className:c,children:i}))}),y.jsx("group",gl(gl({},r),{},{ref:f}))}),c0=(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()}},C8=({program:o,material:n,setTexNumber:s})=>{const c=Ne(a=>a.gl),[i,r]=T.useState(null);return T.useEffect(()=>{if(c){const a=o==null?void 0:o.getUniforms();let f=0;const u=new Map;a.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=c0(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=c0(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)}},[]),y.jsx(x3,{children:i&&Array.from(i.values()).map(a=>y.jsx("span",{children:typeof a.value=="string"?y.jsx("li",{children:y.jsxs("span",{children:[a.name," :"," ",y.jsxs("b",{children:[a.value.substring(0,30),a.value.length>30?"...":""]})]})}):y.jsxs(y.Fragment,{children:[y.jsx("li",{children:y.jsxs("b",{children:[a.value.name,":"]})}),y.jsxs("div",{children:[Object.keys(a.value).map(f=>f!=="name"?y.jsx("div",{children:f==="url"?y.jsx("a",{href:a.value[f],target:"_blank",children:y.jsx("img",{src:a.value[f]})}):y.jsxs("li",{children:[f,": ",y.jsx("b",{children:a.value[f]})]})},f):null),y.jsxs(w3,{onClick:()=>{var f;console.info(n[a.value.name]||(n==null||(f=n.uniforms[a.value.name])===null||f===void 0?void 0:f.value))},children:["console.info(",a.value.name,");"]})]})]})},a.name))})},y8=({el:o})=>{Ne(c=>c.log);const n=Ne(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 y.jsx(y.Fragment,{children:o.drawCounts.total>0&&y.jsxs(Gt,{style:{height:"auto",width:"auto",margin:"0 4px"},children:[o.drawCounts.type==="Triangle"?y.jsx(C3,{style:{top:"-1px"}}):y.jsx(m3,{style:{top:"-1px"}}),o.drawCounts.total,y.jsxs("small",{children:[o.drawCounts.type,"s"]}),n&&y.jsxs(cn,{style:{bottom:"-10px",width:"40px",fontWeight:"bold"},children:[o.visible&&!o.material.wireframe?s(o):0,"%"]})]})})},x8=({el:o})=>{const[n,s]=T.useState(o.visible),[c,i]=T.useState(o.expand),[r,a]=T.useState(0),{meshes:f,program:u,material:p}=o;return y.jsxs(i8,{children:[y.jsxs(e8,{onClick:()=>{o.expand=!c,Object.keys(f).forEach(h=>{const g=f[h];g.material.wireframe=!1}),i(!c)},children:[y.jsx(jl,{style:{marginRight:"6px"},children:c?y.jsx("span",{children:y.jsx(g3,{})}):y.jsx("span",{children:y.jsx(v3,{})})}),u&&y.jsxs("span",{children:[y.jsx(o8,{children:u.name}),y.jsxs(Gt,{style:{height:"auto",width:"auto",margin:"0 4px"},children:[y.jsx(E7,{style:{top:"-1px"}}),Object.keys(f).length,y.jsx("small",{children:Object.keys(f).length>1?"users":"user"})]}),r>0&&y.jsxs(Gt,{style:{height:"auto",width:"auto",margin:"0 4px"},children:[r>1?y.jsx(ml,{style:{top:"-1px"}}):y.jsx(ml,{style:{top:"-1px"}}),r,y.jsx("small",{children:"tex"})]}),y.jsx(y8,{el:o}),p.glslVersion==="300 es"&&y.jsxs(Gt,{style:{height:"auto",width:"auto",margin:"0 4px"},children:[y.jsx(A7,{style:{top:"-1px"}}),"300",y.jsx("small",{children:"es"}),y.jsx(cn,{style:{bottom:"-10px",width:"40px"},children:"glsl"})]})]}),y.jsx(r8,{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?y.jsx(x7,{}):y.jsx(C7,{})})]}),y.jsxs("div",{style:{maxHeight:c?"9999px":0,overflow:"hidden"},children:[y.jsxs(u0,{children:[y.jsx(c7,{})," Uniforms:"]}),y.jsx(C8,{program:u,material:p,setTexNumber:a}),y.jsxs(u0,{children:[y.jsx(d7,{})," Geometries:"]}),y.jsx(x3,{children:f&&Object.keys(f).map(h=>f[h]&&f[h].geometry&&y.jsxs(u8,{children:[y.jsxs("span",{children:[f[h].geometry.type,": "]}),f[h].userData&&f[h].userData.drawCount&&y.jsxs("b",{children:[y.jsxs("div",{children:[f[h].userData.drawCount.count,y.jsxs("small",{children:[" ",f[h].userData.drawCount.type,"s"]})]}),y.jsx("br",{}),y.jsxs("div",{children:[Math.round(j6(f[h].geometry)/1024*1e3)/1e3,"Kb",y.jsx("small",{children:" memory used"})]})]})]},h))}),y.jsxs(w3,{onClick:()=>{console.info(p)},children:["console.info(",p.type,")"]})]})]})},w8=()=>{Ne(n=>n.triggerProgramsUpdate);const o=Ne(n=>n.programs);return y.jsx(l8,{children:o&&Array.from(o.values()).map(n=>n&&n?y.jsx(x8,{el:n},n.material.uuid):null)})},Wt=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"}),S8=({showGraph:o,colorBlind:n})=>{const s=Ne(i=>i.overclockingFps),c=Ne(i=>i.fpsLimit);return y.jsxs(cn,{style:o?{color:s?Wt(n).overClock.toString():`rgb(${Wt(n).fps})`}:{},children:["FPS ",s?`${c}🚀`:""]})},_8=({showGraph:o,colorBlind:n,customData:s,minimal:c})=>{const i=Ne(r=>r.gl);return i?y.jsxs($7,{children:[y.jsxs(Gt,{children:[y.jsx(L7,{}),y.jsx(cn,{style:o?{color:`rgb(${Wt(n).gpu.toString()})`}:{},children:"GPU"}),y.jsx(qs,{children:"ms"})]}),y.jsxs(Gt,{children:[y.jsx(F7,{}),y.jsx(cn,{style:o?{color:`rgb(${Wt(n).cpu.toString()})`}:{},children:"CPU"}),y.jsx(qs,{children:"ms"})]}),y.jsxs(Gt,{children:[y.jsx(_7,{}),y.jsx(S8,{showGraph:o,colorBlind:n})]}),!c&&i&&y.jsxs(Gt,{children:[y.jsx(B7,{}),y.jsx(cn,{children:i.info.render.calls===1?"call":"calls"})]}),!c&&i&&y.jsxs(Gt,{children:[y.jsx(C3,{}),y.jsx(cn,{children:"Triangles"})]}),s&&y.jsxs(Gt,{children:[y.jsx(a7,{}),y.jsx(cn,{style:o?{color:`rgb(${Wt(n).custom})`}:{},children:s.name}),s.info&&y.jsx(qs,{children:s.info})]})]}):null},k8=({showGraph:o,colorBlind:n,deepAnalyze:s,customData:c,matrixUpdate:i,openByDefault:r,minimal:a})=>y.jsxs(y.Fragment,{children:[y.jsx(_8,{showGraph:o,colorBlind:n,customData:c,minimal:a}),!a&&y.jsx(M8,{matrixUpdate:i,openByDefault:r,deepAnalyze:s,showGraph:o})]}),E8=({matrixUpdate:o})=>y.jsxs("div",{children:[y.jsxs(Gt,{children:[y.jsx(P7,{}),y.jsx(cn,{children:"Geometries"})]}),y.jsxs(Gt,{children:[y.jsx(ml,{}),y.jsx(cn,{children:"Textures"})]}),y.jsxs(Gt,{children:[y.jsx(m3,{}),y.jsx(cn,{children:"shaders"})]}),y.jsxs(Gt,{children:[y.jsx(j7,{}),y.jsx(cn,{children:"Lines"})]}),y.jsxs(Gt,{children:[y.jsx(p7,{}),y.jsx(cn,{children:"Points"})]}),o&&y.jsxs(Gt,{children:[y.jsx(g7,{}),y.jsx(cn,{children:"Matrices"})]})]}),f0=({tab:o,title:n,set:s})=>{const c=Ne(i=>i.tab);return y.jsx(jl,{className:`${c===o?" __perf_toggle_tab_active":""}`,onClick:()=>{s(!0),Ne.setState({tab:o})},children:y.jsx("span",{children:n})})},M8=({openByDefault:o,showGraph:n,deepAnalyze:s,matrixUpdate:c})=>{const[i,r]=e1.useState(o);return y.jsxs("span",{children:[y.jsx(L8,{show:i,showGraph:n,matrixUpdate:c}),o&&!s?null:y.jsxs(a8,{className:"__perf_toggle",children:[s&&y.jsx(f0,{tab:"programs",title:"Programs",set:r}),s&&y.jsx(f0,{tab:"infos",title:"Infos",set:r}),y.jsx(jl,{onClick:()=>{r(!i)},children:i?y.jsxs("span",{children:[y.jsx(g3,{})," Minimize"]}):y.jsxs("span",{children:[y.jsx(v3,{})," More"]})})]})]})},L8=({show:o,showGraph:n,matrixUpdate:s})=>{const c=Ne(i=>i.tab);return y.jsxs(y.Fragment,{children:[y.jsx(E8,{matrixUpdate:s}),o&&y.jsx("div",{children:y.jsx(s8,{style:{marginTop:n?"38px":0},children:c==="programs"&&y.jsx(w8,{})})})]})},T8=({showGraph:o,colorBlind:n,openByDefault:s,className:c,overClock:i,style:r,position:a,chart:f,deepAnalyze:u,antialias:p,customData:h,matrixUpdate:g,minimal:v})=>{const x=T.useRef(null);return y.jsxs(y.Fragment,{children:[y.jsx(y3,{chart:f,overClock:i,deepAnalyze:u,matrixUpdate:g}),y.jsx(v8,{transform:!1,children:y.jsxs(q7,{className:(c?" ".concat(c):" ")+` ${a||""} ${v?"minimal":""}`,style:gl({minHeight:v?"37px":o?"100px":"60px"},r),ref:x,children:[y.jsx(d8,{perfContainerRef:x,colorBlind:n,chart:f,showGraph:o,antialias:p,customData:h,minimal:v,matrixUpdate:g}),y.jsx(k8,{colorBlind:n,showGraph:o,deepAnalyze:u,openByDefault:s,customData:h,matrixUpdate:g,minimal:v})]})})]})},q8=({headless:o=!1,colorBlind:n=!1,overClock:s=!1,showGraph:c=!0,trackCPU:i=!1,deepAnalyze:r=!1,antialias:a=!0,openByDefault:f=!0,customData:u,matrixUpdate:p=!1,position:h="top-right",chart:g={length:30,hz:15},className:v,style:x,minimal:S=!1})=>o?y.jsx(y3,{chart:g,deepAnalyze:r,matrixUpdate:p,overClock:s}):y.jsx(T8,{colorBlind:n,showGraph:c,trackCPU:i,openByDefault:f,className:v,style:x,overClock:s,position:h,antialias:a,chart:g,deepAnalyze:r,minimal:S,customData:u,matrixUpdate:p}),$s=5e3,P8={show:"#FF723C",clip:"#FFFF00",episode:"#FF7F50",guest:"#E066FF",topic:"#F8F8FF",Topic:"#F8F8FF",Organization:"#FF7F50"},$8=(o,n)=>{const s=P8[o]||"#F8F8FF";return n?s:parseInt(s.replace("#","0x"),16)},ef=["#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"],tf={font:"/fonts/Inter-Bold.woff",characters:"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!",fontSize:1,letterSpacing:-.05,lineHeight:1,"material-toneMapped":!1},nf=(o,n)=>o.length>n?`${o.substring(0,n)}...`:o,rf=()=>{const o=T.useRef(null),n=T.useRef(null),s=T.useRef(null);return _i(({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 a=r*.5,f=Math.sin(a)*$s,u=Math.cos(a)*$s;s.current.position.set(f,0,u)}}),y.jsxs(y.Fragment,{children:[y.jsx("hemisphereLight",{args:[fi.white,w5,S5]}),y.jsx("ambientLight",{color:fi.white,intensity:1}),y.jsx("pointLight",{ref:n,color:fi.white,distance:4e3,intensity:5,position:[0,0,0]}),y.jsx("directionalLight",{ref:s,color:fi.white,intensity:8,position:[$s,0,0]}),y.jsx("pointLight",{ref:o,color:fi.white,distance:4e3,intensity:8,position:[0,0,0]})]})},of=o=>{const n=T.useRef();return T.useEffect(()=>{n.current=o}),n.current};export{Wu as A,ef as C,u4 as E,c4 as F,g4 as H,N8 as I,R6 as L,Vu as N,J8 as P,q2 as T,_i as a,B0 as b,Tl as c,Ll as d,W4 as e,X8 as f,Q8 as g,tf as h,W8 as i,of as j,rf as k,P9 as l,Z8 as m,q8 as n,$8 as o,K8 as p,i7 as q,r4 as r,nf as t,Ar as u}; diff --git a/build/assets/index-a37fbd62.js b/build/assets/index-a37fbd62.js new file mode 100644 index 000000000..ae782a099 --- /dev/null +++ b/build/assets/index-a37fbd62.js @@ -0,0 +1,18 @@ +import{aa as V,bU as k,bV as g,bW as M,s as B,T as C,F as d,ai as R,r as x,g as E,j as n,aT as $,aU as z,B as S,a0 as U,i as _,k as K,aR as W,aW as A}from"./index-2353781d.js";import{f as G}from"./index-068043a5.js";import{A as I}from"./index-da8a239d.js";import"./index-33375362.js";import"./Stack-ff0fb8f6.js";import"./createSvgIcon-09ff14f6.js";import"./TextareaAutosize-c42da1c8.js";const D="https://community.sphinx.chat",N=async e=>await V.post("/bounty",JSON.stringify(e)),O=async e=>await k(`${D}/person/${e}`,{headers:{"Content-Type":"application/json"},method:"GET"}),P=async e=>await k(`${D}/workspaces/user/${e}`,{headers:{"Content-Type":"application/json"},method:"GET"});async function q(){try{const e=Math.floor(Date.now()/1e3),t=g.Buffer.from(e.toString(16),"hex"),s=g.Buffer.from(t).toString("base64"),o=await M.signMessage(s),a=L(o.signature),l=g.Buffer.concat([t,a],a.length+t.length);return v(l)}catch(e){return console.log("error from signing more message: ",e),""}}function L(e){const t=e.replace(/_/g,"/").replace(/-/g,"+"),s=t.padEnd(t.length+(4-t.length%4)%4,"=");return g.Buffer.from(s,"base64")}function v(e){let t="";const s=e.byteLength;for(let a=0;a{const t=e.trim();return!!(t&&F.test(t))},J=({errMessage:e,handleClose:t})=>{const{setValue:s,watch:o}=R(),[a,l]=x.useState([]),{pubKey:p}=E();x.useEffect(()=>{async function r(){try{const c=await O(p);if(!c.id){l([{label:"SecondBrain",value:"SecondBrain"}]);return}const u=await P(c.id);if(u.length>0){const w=[];for(let b=0;b{const c=(r==null?void 0:r.label)||"SecondBrain",u=(r==null?void 0:r.value)||"ck9drb84nncjnaefo090";s("nodeType",c,{shouldValidate:!0}),s("workspaceUuid",u)},y=H(i)&&!!m,h=r=>{r.key===" "&&r.preventDefault()};return n.jsxs(d,{children:[n.jsx(d,{align:"center",direction:"row",justify:"space-between",mb:18,children:n.jsx(Q,{children:"Create Bounty"})}),n.jsxs(d,{mb:20,children:[n.jsx(T,{children:"Select Workspace"}),n.jsx(I,{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:{...z,pattern:{value:F,message:"Please enter a valid number"}},value:i})]}),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(X,{children:e})]})},T=B(C)` + font-size: 14px; + font-weight: 600; + font-family: 'Barlow'; + margin-bottom: 6px; +`,Q=B(C)` + font-size: 18px; + font-weight: 600; + font-family: 'Barlow'; + margin-bottom: 6px; +`,X=B(d)` + font-size: 13px; + font-family: Barlow; + color: #ff8f80; + line-height: 0.2px; + margin-top: 12px; + padding-top: 20px; +`,Y=()=>{const[e,t]=x.useState(""),{close:s}=U("createBounty"),o=G(),{pubKey:a}=E(),l=_({mode:"onChange"}),{handleSubmit:p,setValue:i}=l,m=()=>{i("budget",""),i("nodeType",""),i("workspaceUuid",""),s()},f=async y=>{const{budget:h,workspaceUuid:r}=y;try{const c=await q(),u={type:"code_generation",amount:Number(h),workspace_uuid:r||"ck9drb84nncjnaefo090",ref_id:o==null?void 0:o.ref_id,node_data:(o==null?void 0:o.properties)||{},jwt_token:c,pub_key:a};await N(u),W("Bounty Created")}catch(c){t(c)}finally{i("budget",""),i("nodeType",""),i("workspaceUuid",""),m()}};return n.jsx(K,{...l,children:n.jsx("form",{id:"create-bounty-form",onSubmit:p(f),children:n.jsx(J,{errMessage:e,handleClose:m})})})},ae=()=>{const{close:e}=U("createBounty"),t=_({mode:"onChange"}),{setValue:s}=t,o=()=>{s("budget",""),s("nodeType",""),e()},a="small";return n.jsx(A,{id:"createBounty",kind:a,onClose:o,preventOutsideClose:!0,children:n.jsx(Y,{})})};export{ae as CreateBountyModal}; diff --git a/build/assets/index-aeaca922.js b/build/assets/index-aeaca922.js deleted file mode 100644 index 1c2551910..000000000 --- a/build/assets/index-aeaca922.js +++ /dev/null @@ -1,673 +0,0 @@ -import{r as P,a8 as hf,N as qr,bK as pf,H as er,bL as $d,j as L,a as fo,bM as e1,bN as t1}from"./index-1d805415.js";import{A as Aa,H as vl,I as n1,U as r1,d as mf,j as i1,C as wo,J as o1,O as yl,x as xl,K as Rs,N as Da,X as s1,Y as a1,Z as l1,_ as u1,$ as c1,a0 as f1,a1 as d1,V as ct,b as $r,a2 as h1,h as p1,g as Sl,r as Is,a3 as gf,e as el,a4 as tl,a5 as Mi,a6 as m1,s as wl,a7 as g1,a8 as nl,a9 as oc,aa as v1,k as vf,ab as y1,l as Co,ac as Ai,ad as yf,ae as x1,af as S1,ag as w1,ah as C1,ai as _1,aj as sc,ak as E1,al as k1,M as T1,q as P1,am as Cl,an as ac,ao as Zr,ap as M1,i as Ia}from"./three.module-71ec604c.js";var xf={exports:{}},ei={};/** - * @license React - * react-reconciler-constants.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ei.ConcurrentRoot=1;ei.ContinuousEventPriority=4;ei.DefaultEventPriority=16;ei.DiscreteEventPriority=1;ei.IdleEventPriority=536870912;ei.LegacyRoot=0;xf.exports=ei;var bi=xf.exports;function b1(o){let n;const s=new Set,c=(p,h)=>{const g=typeof p=="function"?p(n):p;if(g!==n){const v=n;n=h?g:Object.assign({},n,g),s.forEach(x=>x(n,v))}},i=()=>n,r=(p,h=i,g=Object.is)=>{console.warn("[DEPRECATED] Please use `subscribeWithSelector` middleware");let v=h(n);function x(){const w=h(n);if(!g(v,w)){const k=v;p(v=w,k)}}return s.add(x),()=>s.delete(x)},u={setState:c,getState:i,subscribe:(p,h,g)=>h||g?r(p,h,g):(s.add(p),()=>s.delete(p)),destroy:()=>s.clear()};return n=o(c,i,u),u}const L1=typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),lc=L1?P.useEffect:P.useLayoutEffect;function U1(o){const n=typeof o=="function"?b1(o):o,s=(c=n.getState,i=Object.is)=>{const[,r]=P.useReducer(_=>_+1,0),l=n.getState(),f=P.useRef(l),u=P.useRef(c),p=P.useRef(i),h=P.useRef(!1),g=P.useRef();g.current===void 0&&(g.current=c(l));let v,x=!1;(f.current!==l||u.current!==c||p.current!==i||h.current)&&(v=c(l),x=!i(g.current,v)),lc(()=>{x&&(g.current=v),f.current=l,u.current=c,p.current=i,h.current=!1});const w=P.useRef(l);lc(()=>{const _=()=>{try{const S=n.getState(),T=u.current(S);p.current(g.current,T)||(f.current=S,g.current=T,r())}catch{h.current=!0,r()}},C=n.subscribe(_);return n.getState()!==w.current&&_(),C},[]);const k=x?v:g.current;return P.useDebugValue(k),k};return Object.assign(s,n),s[Symbol.iterator]=function(){console.warn("[useStore, api] = create() is deprecated and will be removed in v4");const c=[s,n];return{next(){const i=c.length<=0;return{value:c.shift(),done:i}}}},s}var Sf={exports:{}},wf={exports:{}},Cf={};/** - * @license React - * scheduler.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * 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,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 - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * 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=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: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=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 - (make it always face the camera) if "transfrom" - is false. - */ - #include - - void main() { - vec2 center = vec2(0., 1.); - float rotation = 0.0; - - // This is somewhat arbitrary, but it seems to work well - // Need to figure out how to derive this dynamically if it even matters - float size = 0.03; - - vec4 mvPosition = modelViewMatrix * vec4( 0.0, 0.0, 0.0, 1.0 ); - vec2 scale; - scale.x = length( vec3( modelMatrix[ 0 ].x, modelMatrix[ 0 ].y, modelMatrix[ 0 ].z ) ); - scale.y = length( vec3( modelMatrix[ 1 ].x, modelMatrix[ 1 ].y, modelMatrix[ 1 ].z ) ); - - bool isPerspective = isPerspectiveMatrix( projectionMatrix ); - if ( isPerspective ) scale *= - mvPosition.z; - - vec2 alignedPosition = ( position.xy - ( center - vec2( 0.5 ) ) ) * scale * size; - vec2 rotatedPosition; - rotatedPosition.x = cos( rotation ) * alignedPosition.x - sin( rotation ) * alignedPosition.y; - rotatedPosition.y = sin( rotation ) * alignedPosition.x + cos( rotation ) * alignedPosition.y; - mvPosition.xy += rotatedPosition; - - gl_Position = projectionMatrix * mvPosition; - } - `,fragmentShader:` - 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 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 - #include - #include - - uniform float linewidth; - uniform vec2 resolution; - - attribute vec3 instanceStart; - attribute vec3 instanceEnd; - - attribute vec3 instanceColorStart; - attribute vec3 instanceColorEnd; - - #ifdef WORLD_UNITS - - varying vec4 worldPos; - varying vec3 worldStart; - varying vec3 worldEnd; - - #ifdef USE_DASH - - varying vec2 vUv; - - #endif - - #else - - varying vec2 vUv; - - #endif - - #ifdef USE_DASH - - uniform float dashScale; - attribute float instanceDistanceStart; - attribute float instanceDistanceEnd; - varying float vLineDistance; - - #endif - - void trimSegment( const in vec4 start, inout vec4 end ) { - - // trim end segment so it terminates between the camera plane and the near plane - - // conservative estimate of the near plane - float a = projectionMatrix[ 2 ][ 2 ]; // 3nd entry in 3th column - float b = projectionMatrix[ 3 ][ 2 ]; // 3nd entry in 4th column - float nearEstimate = - 0.5 * b / a; - - float alpha = ( nearEstimate - start.z ) / ( end.z - start.z ); - - end.xyz = mix( start.xyz, end.xyz, alpha ); - - } - - void main() { - - #ifdef USE_COLOR - - vColor.xyz = ( position.y < 0.5 ) ? instanceColorStart : instanceColorEnd; - - #endif - - #ifdef USE_DASH - - vLineDistance = ( position.y < 0.5 ) ? dashScale * instanceDistanceStart : dashScale * instanceDistanceEnd; - vUv = uv; - - #endif - - float aspect = resolution.x / resolution.y; - - // camera space - vec4 start = modelViewMatrix * vec4( instanceStart, 1.0 ); - vec4 end = modelViewMatrix * vec4( instanceEnd, 1.0 ); - - #ifdef WORLD_UNITS - - worldStart = start.xyz; - worldEnd = end.xyz; - - #else - - vUv = uv; - - #endif - - // special case for perspective projection, and segments that terminate either in, or behind, the camera plane - // clearly the gpu firmware has a way of addressing this issue when projecting into ndc space - // but we need to perform ndc-space calculations in the shader, so we must address this issue directly - // perhaps there is a more elegant solution -- WestLangley - - bool perspective = ( projectionMatrix[ 2 ][ 3 ] == - 1.0 ); // 4th entry in the 3rd column - - if ( perspective ) { - - if ( start.z < 0.0 && end.z >= 0.0 ) { - - trimSegment( start, end ); - - } else if ( end.z < 0.0 && start.z >= 0.0 ) { - - trimSegment( end, start ); - - } - - } - - // clip space - vec4 clipStart = projectionMatrix * start; - vec4 clipEnd = projectionMatrix * end; - - // ndc space - vec3 ndcStart = clipStart.xyz / clipStart.w; - vec3 ndcEnd = clipEnd.xyz / clipEnd.w; - - // direction - vec2 dir = ndcEnd.xy - ndcStart.xy; - - // account for clip-space aspect ratio - dir.x *= aspect; - dir = normalize( dir ); - - #ifdef WORLD_UNITS - - // get the offset direction as perpendicular to the view vector - vec3 worldDir = normalize( end.xyz - start.xyz ); - vec3 offset; - if ( position.y < 0.5 ) { - - offset = normalize( cross( start.xyz, worldDir ) ); - - } else { - - offset = normalize( cross( end.xyz, worldDir ) ); - - } - - // sign flip - if ( position.x < 0.0 ) offset *= - 1.0; - - float forwardOffset = dot( worldDir, vec3( 0.0, 0.0, 1.0 ) ); - - // don't extend the line if we're rendering dashes because we - // won't be rendering the endcaps - #ifndef USE_DASH - - // extend the line bounds to encompass endcaps - start.xyz += - worldDir * linewidth * 0.5; - end.xyz += worldDir * linewidth * 0.5; - - // shift the position of the quad so it hugs the forward edge of the line - offset.xy -= dir * forwardOffset; - offset.z += 0.5; - - #endif - - // endcaps - if ( position.y > 1.0 || position.y < 0.0 ) { - - offset.xy += dir * 2.0 * forwardOffset; - - } - - // adjust for linewidth - offset *= linewidth * 0.5; - - // set the world position - worldPos = ( position.y < 0.5 ) ? start : end; - worldPos.xyz += offset; - - // project the worldpos - vec4 clip = projectionMatrix * worldPos; - - // shift the depth of the projected points so the line - // segments overlap neatly - vec3 clipPose = ( position.y < 0.5 ) ? ndcStart : ndcEnd; - clip.z = clipPose.z * clip.w; - - #else - - vec2 offset = vec2( dir.y, - dir.x ); - // undo aspect ratio adjustment - dir.x /= aspect; - offset.x /= aspect; - - // sign flip - if ( position.x < 0.0 ) offset *= - 1.0; - - // endcaps - if ( position.y < 0.0 ) { - - offset += - dir; - - } else if ( position.y > 1.0 ) { - - offset += dir; - - } - - // adjust for linewidth - offset *= linewidth; - - // adjust for clip-space to screen-space conversion // maybe resolution should be based on viewport ... - offset /= resolution.y; - - // select end - vec4 clip = ( position.y < 0.5 ) ? clipStart : clipEnd; - - // back to clip space - offset *= clip.w; - - clip.xy += offset; - - #endif - - gl_Position = clip; - - vec4 mvPosition = ( position.y < 0.5 ) ? start : end; // this is an approximation - - #include - #include - #include - - } - `,fragmentShader:` - uniform vec3 diffuse; - uniform float opacity; - uniform float linewidth; - - #ifdef USE_DASH - - uniform float dashOffset; - uniform float dashSize; - uniform float gapSize; - - #endif - - varying float vLineDistance; - - #ifdef WORLD_UNITS - - varying vec4 worldPos; - varying vec3 worldStart; - varying vec3 worldEnd; - - #ifdef USE_DASH - - varying vec2 vUv; - - #endif - - #else - - varying vec2 vUv; - - #endif - - #include - #include - #include - #include - #include - - vec2 closestLineToLine(vec3 p1, vec3 p2, vec3 p3, vec3 p4) { - - float mua; - float mub; - - vec3 p13 = p1 - p3; - vec3 p43 = p4 - p3; - - vec3 p21 = p2 - p1; - - float d1343 = dot( p13, p43 ); - float d4321 = dot( p43, p21 ); - float d1321 = dot( p13, p21 ); - float d4343 = dot( p43, p43 ); - float d2121 = dot( p21, p21 ); - - float denom = d2121 * d4343 - d4321 * d4321; - - float numer = d1343 * d4321 - d1321 * d4343; - - mua = numer / denom; - mua = clamp( mua, 0.0, 1.0 ); - mub = ( d1343 + d4321 * ( mua ) ) / d4343; - mub = clamp( mub, 0.0, 1.0 ); - - return vec2( mua, mub ); - - } - - void main() { - - #include - - #ifdef USE_DASH - - if ( vUv.y < - 1.0 || vUv.y > 1.0 ) discard; // discard endcaps - - if ( mod( vLineDistance + dashOffset, dashSize + gapSize ) > dashSize ) discard; // todo - FIX - - #endif - - float alpha = opacity; - - #ifdef WORLD_UNITS - - // Find the closest points on the view ray and the line segment - vec3 rayEnd = normalize( worldPos.xyz ) * 1e5; - vec3 lineDir = worldEnd - worldStart; - vec2 params = closestLineToLine( worldStart, worldEnd, vec3( 0.0, 0.0, 0.0 ), rayEnd ); - - vec3 p1 = worldStart + lineDir * params.x; - vec3 p2 = rayEnd * params.y; - vec3 delta = p1 - p2; - float len = length( delta ); - float norm = len / linewidth; - - #ifndef USE_DASH - - #ifdef USE_ALPHA_TO_COVERAGE - - float dnorm = fwidth( norm ); - alpha = 1.0 - smoothstep( 0.5 - dnorm, 0.5 + dnorm, norm ); - - #else - - if ( norm > 0.5 ) { - - discard; - - } - - #endif - - #endif - - #else - - #ifdef USE_ALPHA_TO_COVERAGE - - // artifacts appear on some hardware if a derivative is taken within a conditional - float a = vUv.x; - float b = ( vUv.y > 0.0 ) ? vUv.y - 1.0 : vUv.y + 1.0; - float len2 = a * a + b * b; - float dlen = fwidth( len2 ); - - if ( abs( vUv.y ) > 1.0 ) { - - alpha = 1.0 - smoothstep( 1.0 - dlen, 1.0 + dlen, len2 ); - - } - - #else - - if ( abs( vUv.y ) > 1.0 ) { - - float a = vUv.x; - float b = ( vUv.y > 0.0 ) ? vUv.y - 1.0 : vUv.y + 1.0; - float len2 = a * a + b * b; - - if ( len2 > 1.0 ) discard; - - } - - #endif - - #endif - - vec4 diffuseColor = vec4( diffuse, alpha ); - - #include - #include - - gl_FragColor = vec4( diffuseColor.rgb, alpha ); - - #include - #include <${parseInt(v1.replace(/\D+/g,""))>=154?"colorspace_fragment":"encodings_fragment"}> - #include - #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 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 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))},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 -`),s=fl(s)),x){let k=x({vertexShader:n,fragmentShader:s});n=k.vertexShader,s=k.fragmentShader}if(v){let k=[];s=s.replace(/^\/\/!BEGIN_POST_CHUNK[^]+?^\/\/!END_POST_CHUNK/gm,_=>(k.push(_),"")),g=`${v} -${k.join(` -`)} -${g}`}if(w){const k=` -uniform float ${w}; -`;r=k+r,p=k+p}return u&&(n=`vec3 troika_position_${i}; -vec3 troika_normal_${i}; -vec2 troika_uv_${i}; -${n} -`,r=`${r} -void troikaVertexTransform${i}(inout vec3 position, inout vec3 normal, inout vec2 uv) { - ${u} -} -`,l=` -troika_position_${i} = vec3(position); -troika_normal_${i} = vec3(normal); -troika_uv_${i} = vec2(uv); -troikaVertexTransform${i}(troika_position_${i}, troika_normal_${i}, troika_uv_${i}); -${l} -`,n=n.replace(/\b(position|normal|uv)\b/g,(k,_,C,S)=>/\battribute\s+vec[23]\s+$/.test(S.substr(0,C))?_:`troika_${_}_${i}`),o.map&&o.map.channel>0||(n=n.replace(/\bMAP_UV\b/g,`troika_uv_${i}`))),n=Nc(n,i,r,l,f),s=Nc(s,i,p,h,g),{vertexShader:n,fragmentShader:s}}function Nc(o,n,s,c,i){return(c||i||s)&&(o=o.replace(od,` -${s} -void troikaOrigMain${n}() {`),o+=` -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 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,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(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(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; -uniform vec4 uTroikaClipRect; -uniform mat3 uTroikaOrient; -uniform bool uTroikaUseGlyphColors; -uniform float uTroikaDistanceOffset; -uniform float uTroikaBlurRadius; -uniform vec2 uTroikaPositionOffset; -uniform float uTroikaCurveRadius; -attribute vec4 aTroikaGlyphBounds; -attribute float aTroikaGlyphIndex; -attribute vec3 aTroikaGlyphColor; -varying vec2 vTroikaGlyphUV; -varying vec4 vTroikaTextureUVBounds; -varying float vTroikaTextureChannel; -varying vec3 vTroikaGlyphColor; -varying vec2 vTroikaGlyphDimensions; -`,p0=` -vec4 bounds = aTroikaGlyphBounds; -bounds.xz += uTroikaPositionOffset.x; -bounds.yw -= uTroikaPositionOffset.y; - -vec4 outlineBounds = vec4( - bounds.xy - uTroikaDistanceOffset - uTroikaBlurRadius, - bounds.zw + uTroikaDistanceOffset + uTroikaBlurRadius -); -vec4 clippedBounds = vec4( - clamp(outlineBounds.xy, uTroikaClipRect.xy, uTroikaClipRect.zw), - clamp(outlineBounds.zw, uTroikaClipRect.xy, uTroikaClipRect.zw) -); - -vec2 clippedXY = (mix(clippedBounds.xy, clippedBounds.zw, position.xy) - bounds.xy) / (bounds.zw - bounds.xy); - -position.xy = mix(bounds.xy, bounds.zw, clippedXY); - -uv = (position.xy - uTroikaTotalBounds.xy) / (uTroikaTotalBounds.zw - uTroikaTotalBounds.xy); - -float rad = uTroikaCurveRadius; -if (rad != 0.0) { - float angle = position.x / rad; - position.xz = vec2(sin(angle) * rad, rad - cos(angle) * rad); - normal.xz = vec2(sin(angle), cos(angle)); -} - -position = uTroikaOrient * position; -normal = uTroikaOrient * normal; - -vTroikaGlyphUV = clippedXY.xy; -vTroikaGlyphDimensions = vec2(bounds[2] - bounds[0], bounds[3] - bounds[1]); - - -float txCols = uTroikaSDFTextureSize.x / uTroikaSDFGlyphSize; -vec2 txUvPerSquare = uTroikaSDFGlyphSize / uTroikaSDFTextureSize; -vec2 txStartUV = txUvPerSquare * vec2( - mod(floor(aTroikaGlyphIndex / 4.0), txCols), - floor(floor(aTroikaGlyphIndex / 4.0) / txCols) -); -vTroikaTextureUVBounds = vec4(txStartUV, vec2(txStartUV) + txUvPerSquare); -vTroikaTextureChannel = mod(aTroikaGlyphIndex, 4.0); -`,m0=` -uniform sampler2D uTroikaSDFTexture; -uniform vec2 uTroikaSDFTextureSize; -uniform float uTroikaSDFGlyphSize; -uniform float uTroikaSDFExponent; -uniform float uTroikaDistanceOffset; -uniform float uTroikaFillOpacity; -uniform float uTroikaOutlineOpacity; -uniform float uTroikaBlurRadius; -uniform vec3 uTroikaStrokeColor; -uniform float uTroikaStrokeWidth; -uniform float uTroikaStrokeOpacity; -uniform bool uTroikaSDFDebug; -varying vec2 vTroikaGlyphUV; -varying vec4 vTroikaTextureUVBounds; -varying float vTroikaTextureChannel; -varying vec2 vTroikaGlyphDimensions; - -float troikaSdfValueToSignedDistance(float alpha) { - // Inverse of exponential encoding in webgl-sdf-generator - - float maxDimension = max(vTroikaGlyphDimensions.x, vTroikaGlyphDimensions.y); - float absDist = (1.0 - pow(2.0 * (alpha > 0.5 ? 1.0 - alpha : alpha), 1.0 / uTroikaSDFExponent)) * maxDimension; - float signedDist = absDist * (alpha > 0.5 ? -1.0 : 1.0); - return signedDist; -} - -float troikaGlyphUvToSdfValue(vec2 glyphUV) { - vec2 textureUV = mix(vTroikaTextureUVBounds.xy, vTroikaTextureUVBounds.zw, glyphUV); - vec4 rgba = texture2D(uTroikaSDFTexture, textureUV); - float ch = floor(vTroikaTextureChannel + 0.5); //NOTE: can't use round() in WebGL1 - return ch == 0.0 ? rgba.r : ch == 1.0 ? rgba.g : ch == 2.0 ? rgba.b : rgba.a; -} - -float troikaGlyphUvToDistance(vec2 uv) { - return troikaSdfValueToSignedDistance(troikaGlyphUvToSdfValue(uv)); -} - -float troikaGetAADist() { - - #if defined(GL_OES_standard_derivatives) || __VERSION__ >= 300 - return length(fwidth(vTroikaGlyphUV * vTroikaGlyphDimensions)) * 0.5; - #else - return vTroikaGlyphDimensions.x / 64.0; - #endif -} - -float troikaGetFragDistValue() { - vec2 clampedGlyphUV = clamp(vTroikaGlyphUV, 0.5 / uTroikaSDFGlyphSize, 1.0 - 0.5 / uTroikaSDFGlyphSize); - float distance = troikaGlyphUvToDistance(clampedGlyphUV); - - // Extrapolate distance when outside bounds: - distance += clampedGlyphUV == vTroikaGlyphUV ? 0.0 : - length((vTroikaGlyphUV - clampedGlyphUV) * vTroikaGlyphDimensions); - - - - return distance; -} - -float troikaGetEdgeAlpha(float distance, float distanceOffset, float aaDist) { - #if defined(IS_DEPTH_MATERIAL) || defined(IS_DISTANCE_MATERIAL) - float alpha = step(-distanceOffset, -distance); - #else - - float alpha = smoothstep( - distanceOffset + aaDist, - distanceOffset - aaDist, - distance - ); - #endif - - return alpha; -} -`,g0=` -float aaDist = troikaGetAADist(); -float fragDistance = troikaGetFragDistValue(); -float edgeAlpha = uTroikaSDFDebug ? - troikaGlyphUvToSdfValue(vTroikaGlyphUV) : - troikaGetEdgeAlpha(fragDistance, uTroikaDistanceOffset, max(aaDist, uTroikaBlurRadius)); - -#if !defined(IS_DEPTH_MATERIAL) && !defined(IS_DISTANCE_MATERIAL) -vec4 fillRGBA = gl_FragColor; -fillRGBA.a *= uTroikaFillOpacity; -vec4 strokeRGBA = uTroikaStrokeWidth == 0.0 ? fillRGBA : vec4(uTroikaStrokeColor, uTroikaStrokeOpacity); -if (fillRGBA.a == 0.0) fillRGBA.rgb = strokeRGBA.rgb; -gl_FragColor = mix(fillRGBA, strokeRGBA, smoothstep( - -uTroikaStrokeWidth - aaDist, - -uTroikaStrokeWidth + aaDist, - fragDistance -)); -gl_FragColor.a *= edgeAlpha; -#endif - -if (edgeAlpha == 0.0) { - discard; -} -`;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=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}=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{Fm as C,Pm as H,Mp as L,Am as P,qc as T,Eo as a,Bf as b,Ml as c,Pl as d,z1 as e,bm as f,Lm as g,Om as h,Bm as i,zm as j,_h as k,Dm as l,Mm as m,Im as n,Rm as o,q0 as q,jm as t,Ii as u}; diff --git a/build/assets/index-9525fdf3.js b/build/assets/index-b37638c7.js similarity index 84% rename from build/assets/index-9525fdf3.js rename to build/assets/index-b37638c7.js index 3aebc497f..966bfc161 100644 --- a/build/assets/index-9525fdf3.js +++ b/build/assets/index-b37638c7.js @@ -1,4 +1,4 @@ -import{r as y,K as _o,L as jo,M as Wt,N as oe,P as Oo,a2 as Ei,G as Po,j as p,S as To,bA as En,bB as gr,U as $o,X as bt,O as Zr,ai as Ci,aj as Si,s as O,a as j,t as br,be as _i,bd as xr,T as _e,F as $,aW as hn,aX as gn,bb as ji,B as Cn,bC as Oi,bD as Hn,v as Ao,bE as Pi,C as mr,bF as Ti,H as c,k as vr,aa as Qr,bG as $i,al as Ai,bH as Jr,bI as Mo,bc as ko,e as Ro,bJ as Mi,aV as gt,ad as ar,d as yr,ac as ki,ar as ea,aZ as Ri}from"./index-1d805415.js";import{A as Dt}from"./index-f3df532f.js";import{C as Ie}from"./ClipLoader-9eb1180c.js";import{I as or,e as Bi,al as Fi,U as Bo,aA as ta,aB as na,aC as ra,aD as aa,aE as Ni,aF as Ii,aG as Di}from"./index-3ac851f3.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-44e85bf8.js";import{P as E}from"./index-4dcb3294.js";import{T as Yi,a as Xi}from"./Tabs-050299f8.js";import{p as ir,c as Ki,g as qi}from"./index-5fe8c70d.js";import{e as Zi}from"./Stack-2f0ef3f5.js";import{g as Qi,m as Ji,u as me,a as Sn,t as sr,T as Fo,h as No,f as es,o as ts,H as ns,i as oa,k as rs,l as as,j as os}from"./index-aeaca922.js";import{R as is,t as ss,u as ls,V as G,v as qe,w as Ze,Q as ia,x as ln,O as cn,y as sa,b as de,z as cs,n as us,C as ps}from"./three.module-71ec604c.js";import"./index-5b7bb80c.js";import"./createSvgIcon-b68c7390.js";import"./TextareaAutosize-3b102137.js";import"./Typography-5c2f9b73.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"]),J=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,[`& .${J.thumb}`]:{width:16,height:16},[`& .${J.switchBase}`]:{padding:4,[`&.${J.checked}`]:{transform:"translateX(16px)"}}})),ks=Wt(Hi,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.switchBase,{[`& .${J.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}),[`&.${J.checked}`]:{transform:"translateX(20px)"},[`&.${J.disabled}`]:{color:t.vars?t.vars.palette.Switch.defaultDisabledColor:`${t.palette.mode==="light"?t.palette.grey[100]:t.palette.grey[600]}`},[`&.${J.checked} + .${J.track}`]:{opacity:.5},[`&.${J.disabled} + .${J.track}`]:{opacity:t.vars?t.vars.opacity.switchTrackDisabled:`${t.palette.mode==="light"?.12:.2}`},[`& .${J.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"&&{[`&.${J.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"}},[`&.${J.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)}`}},[`&.${J.checked} + .${J.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 Qt(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 Jt(){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&&Jt(),r.enablePan&&Ae()}function Nn(){r.enableZoom&&Jt(),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):Q(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 Q(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;Qt(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(Qi,oe({ref:Ji([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,z as _o,D as jo,E as Wt,G as oe,J as Oo,X as Ei,w as Po,j as p,K as To,bx as En,by as gr,L as $o,N as bt,H as Zr,af as Ci,ag as Si,s as O,a as j,i as br,bb as _i,ba as xr,T as _e,F as $,aT as hn,aU as gn,b8 as ji,B as Cn,bz as Oi,bA as Hn,k as Ao,bB as Pi,C as mr,bC as Ti,x as c,b as vr,a7 as Qr,bD as $i,ai as Ai,bE as Jr,bF as Mo,b9 as ko,a0 as Ro,bG as Mi,aS as gt,aa as ar,n as yr,a9 as ki,ao as ea,aW as Ri}from"./index-2353781d.js";import{A as Dt}from"./index-da8a239d.js";import{C as Ie}from"./ClipLoader-c90857c8.js";import{g as Bi,m as Fi,u as me,a as Sn,I as or,t as ir,T as Bo,h as Fo,f as Ni,p as Ii,i as Di,j as ta,l as Hi,n as zi,k as Li,F as Gi,r as Wi}from"./index-964e9ac6.js";import{S as Ui,j as Vi,p as Yi,q as Xi,r as Ki,m as qi,F as Zi}from"./isPlainObject-c1defea0.js";import{P as E}from"./VolumeIcon-750bd7e3.js";import{T as Qi,a as Ji}from"./Tabs-9bc26124.js";import{D as es}from"./VisibilityOn-aa220caf.js";import{P as No}from"./SearchIcon-3c9f4418.js";import{p as sr,c as ts,g as ns}from"./index-5fe8c70d.js";import{e as rs}from"./Stack-ff0fb8f6.js";import{I as as,t as na,w as ra,x as aa,y as oa,z as os}from"./index-068043a5.js";import{R as is,t as ss,u as ls,V as G,v as qe,w as Ze,Q as ia,x as ln,O as cn,y as sa,b as de,z as cs,n as us,C as ps}from"./three.module-71ec604c.js";import"./index-33375362.js";import"./createSvgIcon-09ff14f6.js";import"./TextareaAutosize-c42da1c8.js";import"./SourcesTableIcon-54a999e3.js";import"./NodeCircleIcon-6e372d93.js";import"./SoundIcon-a0618346.js";import"./CheckIcon-bcbb5853.js";import"./DeleteNodeIcon-be8a9a17.js";import"./EditNodeIcon-665ec0f5.js";import"./SucessFeedBackIcon-edca1d93.js";import"./Typography-13640c0b.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=rs(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"]),J=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,[`& .${J.thumb}`]:{width:16,height:16},[`& .${J.switchBase}`]:{padding:4,[`&.${J.checked}`]:{transform:"translateX(16px)"}}})),ks=Wt(Ui,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.switchBase,{[`& .${J.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}),[`&.${J.checked}`]:{transform:"translateX(20px)"},[`&.${J.disabled}`]:{color:t.vars?t.vars.palette.Switch.defaultDisabledColor:`${t.palette.mode==="light"?t.palette.grey[100]:t.palette.grey[600]}`},[`&.${J.checked} + .${J.track}`]:{opacity:.5},[`&.${J.disabled} + .${J.track}`]:{opacity:t.vars?t.vars.opacity.switchTrackDisabled:`${t.palette.mode==="light"?.12:.2}`},[`& .${J.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"&&{[`&.${J.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"}},[`&.${J.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)}`}},[`&.${J.checked} + .${J.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 Qt(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 Jt(){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&&Jt(),r.enablePan&&Ae()}function Nn(){r.enableZoom&&Jt(),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):Q(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 Q(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;Qt(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(Bi,oe({ref:Fi([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; @@ -80,7 +80,7 @@ import{r as y,K as _o,L as jo,M as Wt,N as oe,P as Oo,a2 as Ei,G as Po,j as p,S text-align: left; margin-left: 2px; color: ${j.white}; -`;var ce={},Ut={},el=zi;function tl(t){return typeof t=="function"?t:el}var nl=tl,rl=Li,al=nl;function ol(t,e){return t&&rl(t,al(e))}var wr=ol;Object.defineProperty(Ut,"__esModule",{value:!0});Ut.flattenNames=void 0;var il=Gi,sl=_n(il),ll=wr,cl=_n(ll),ul=Wi,pl=_n(ul),dl=Ui,fl=_n(dl);function _n(t){return t&&t.__esModule?t:{default:t}}var hl=Ut.flattenNames=function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=[];return(0,fl.default)(e,function(r){Array.isArray(r)?t(r).map(function(a){return n.push(a)}):(0,pl.default)(r)?(0,cl.default)(r,function(a,o){a===!0&&n.push(o),n.push(o+"-"+a)}):(0,sl.default)(r)&&n.push(r)}),n};Ut.default=hl;var Vt={};Object.defineProperty(Vt,"__esModule",{value:!0});Vt.mergeClasses=void 0;var gl=wr,bl=Ho(gl),xl=Ti,ml=Ho(xl),vl=Object.assign||function(t){for(var e=1;e1&&arguments[1]!==void 0?arguments[1]:[],r=e.default&&(0,ml.default)(e.default)||{};return n.map(function(a){var o=e[a];return o&&(0,bl.default)(o,function(s,i){r[i]||(r[i]={}),r[i]=vl({},r[i],o[i])}),a}),r};Vt.default=yl;var Yt={};Object.defineProperty(Yt,"__esModule",{value:!0});Yt.autoprefix=void 0;var wl=wr,ha=Cl(wl),El=Object.assign||function(t){for(var e=1;e1&&arguments[1]!==void 0?arguments[1]:"span";return function(r){$l(a,r);function a(){var o,s,i,l;Tl(this,a);for(var u=arguments.length,d=Array(u),f=0;f1&&arguments[1]!==void 0?arguments[1]:"span";return function(r){Fl(a,r);function a(){var o,s,i,l;Bl(this,a);for(var u=arguments.length,d=Array(u),f=0;f1&&arguments[1]!==void 0?arguments[1]:!0;r[s]=i};return e===0&&a("first-child"),e===n-1&&a("last-child"),(e===0||e%2===0)&&a("even"),Math.abs(e%2)===1&&a("odd"),a("nth-child",e),r};Er.default=Il;Object.defineProperty(ce,"__esModule",{value:!0});ce.ReactCSS=ce.loop=ce.handleActive=Cr=ce.handleHover=ce.hover=void 0;var Dl=Ut,Hl=mt(Dl),zl=Vt,Ll=mt(zl),Gl=Yt,Wl=mt(Gl),Ul=Xt,zo=mt(Ul),Vl=Kt,Yl=mt(Vl),Xl=Er,Kl=mt(Xl);function mt(t){return t&&t.__esModule?t:{default:t}}ce.hover=zo.default;var Cr=ce.handleHover=zo.default;ce.handleActive=Yl.default;ce.loop=Kl.default;var ql=ce.ReactCSS=function(e){for(var n=arguments.length,r=Array(n>1?n-1:0),a=1;ai?h=1:h=Math.round(f*100/i)/100,n.a!==h)return{h:n.h,s:n.s,l:n.l,a:h,source:"rgb"}}else{var g=void 0;if(d<0?g=0:d>s?g=1:g=Math.round(d*100/s)/100,a!==g)return{h:n.h,s:n.s,l:n.l,a:g,source:"rgb"}}return null},Wn={},Ql=function(e,n,r,a){if(typeof document>"u"&&!a)return null;var o=a?new a:document.createElement("canvas");o.width=r*2,o.height=r*2;var s=o.getContext("2d");return s?(s.fillStyle=e,s.fillRect(0,0,o.width,o.height),s.fillStyle=n,s.fillRect(0,0,r,r),s.translate(r,r),s.fillRect(0,0,r,r),o.toDataURL()):null},Jl=function(e,n,r,a){var o=e+"-"+n+"-"+r+(a?"-server":"");if(Wn[o])return Wn[o];var s=Ql(e,n,r,a);return Wn[o]=s,s},xa=Object.assign||function(t){for(var e=1;e0&&arguments[0]!==void 0?arguments[0]:[],n=[];return(0,fl.default)(e,function(r){Array.isArray(r)?t(r).map(function(a){return n.push(a)}):(0,pl.default)(r)?(0,cl.default)(r,function(a,o){a===!0&&n.push(o),n.push(o+"-"+a)}):(0,sl.default)(r)&&n.push(r)}),n};Ut.default=hl;var Vt={};Object.defineProperty(Vt,"__esModule",{value:!0});Vt.mergeClasses=void 0;var gl=wr,bl=Ho(gl),xl=Ti,ml=Ho(xl),vl=Object.assign||function(t){for(var e=1;e1&&arguments[1]!==void 0?arguments[1]:[],r=e.default&&(0,ml.default)(e.default)||{};return n.map(function(a){var o=e[a];return o&&(0,bl.default)(o,function(s,i){r[i]||(r[i]={}),r[i]=vl({},r[i],o[i])}),a}),r};Vt.default=yl;var Yt={};Object.defineProperty(Yt,"__esModule",{value:!0});Yt.autoprefix=void 0;var wl=wr,ha=Cl(wl),El=Object.assign||function(t){for(var e=1;e1&&arguments[1]!==void 0?arguments[1]:"span";return function(r){$l(a,r);function a(){var o,s,i,l;Tl(this,a);for(var u=arguments.length,d=Array(u),f=0;f1&&arguments[1]!==void 0?arguments[1]:"span";return function(r){Fl(a,r);function a(){var o,s,i,l;Bl(this,a);for(var u=arguments.length,d=Array(u),f=0;f1&&arguments[1]!==void 0?arguments[1]:!0;r[s]=i};return e===0&&a("first-child"),e===n-1&&a("last-child"),(e===0||e%2===0)&&a("even"),Math.abs(e%2)===1&&a("odd"),a("nth-child",e),r};Er.default=Il;Object.defineProperty(ce,"__esModule",{value:!0});ce.ReactCSS=ce.loop=ce.handleActive=Cr=ce.handleHover=ce.hover=void 0;var Dl=Ut,Hl=mt(Dl),zl=Vt,Ll=mt(zl),Gl=Yt,Wl=mt(Gl),Ul=Xt,zo=mt(Ul),Vl=Kt,Yl=mt(Vl),Xl=Er,Kl=mt(Xl);function mt(t){return t&&t.__esModule?t:{default:t}}ce.hover=zo.default;var Cr=ce.handleHover=zo.default;ce.handleActive=Yl.default;ce.loop=Kl.default;var ql=ce.ReactCSS=function(e){for(var n=arguments.length,r=Array(n>1?n-1:0),a=1;ai?h=1:h=Math.round(f*100/i)/100,n.a!==h)return{h:n.h,s:n.s,l:n.l,a:h,source:"rgb"}}else{var g=void 0;if(d<0?g=0:d>s?g=1:g=Math.round(d*100/s)/100,a!==g)return{h:n.h,s:n.s,l:n.l,a:g,source:"rgb"}}return null},Wn={},Ql=function(e,n,r,a){if(typeof document>"u"&&!a)return null;var o=a?new a:document.createElement("canvas");o.width=r*2,o.height=r*2;var s=o.getContext("2d");return s?(s.fillStyle=e,s.fillRect(0,0,o.width,o.height),s.fillStyle=n,s.fillRect(0,0,r,r),s.translate(r,r),s.fillRect(0,0,r,r),o.toDataURL()):null},Jl=function(e,n,r,a){var o=e+"-"+n+"-"+r+(a?"-server":"");if(Wn[o])return Wn[o];var s=Ql(e,n,r,a);return Wn[o]=s,s},xa=Object.assign||function(t){for(var e=1;e-1},fc=function(e){return Number(String(e).replace(/%/g,""))},hc=1,W=function(t){lc(e,t);function e(n){ic(this,e);var r=sc(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return r.handleBlur=function(){r.state.blurValue&&r.setState({value:r.state.blurValue,blurValue:null})},r.handleChange=function(a){r.setUpdatedValue(a.target.value,a)},r.handleKeyDown=function(a){var o=fc(a.target.value);if(!isNaN(o)&&dc(a.keyCode)){var s=r.getArrowOffset(),i=a.keyCode===Lo?o+s:o-s;r.setUpdatedValue(i,a)}},r.handleDrag=function(a){if(r.props.dragLabel){var o=Math.round(r.props.value+a.movementX);o>=0&&o<=r.props.dragMax&&r.props.onChange&&r.props.onChange(r.getValueObjectWithLabel(o),a)}},r.handleMouseDown=function(a){r.props.dragLabel&&(a.preventDefault(),r.handleDrag(a),window.addEventListener("mousemove",r.handleDrag),window.addEventListener("mouseup",r.handleMouseUp))},r.handleMouseUp=function(){r.unbindEventListeners()},r.unbindEventListeners=function(){window.removeEventListener("mousemove",r.handleDrag),window.removeEventListener("mouseup",r.handleMouseUp)},r.state={value:String(n.value).toUpperCase(),blurValue:String(n.value).toUpperCase()},r.inputId="rc-editable-input-"+hc++,r}return ac(e,[{key:"componentDidUpdate",value:function(r,a){this.props.value!==this.state.value&&(r.value!==this.props.value||a.value!==this.state.value)&&(this.input===document.activeElement?this.setState({blurValue:String(this.props.value).toUpperCase()}):this.setState({value:String(this.props.value).toUpperCase(),blurValue:!this.state.blurValue&&String(this.props.value).toUpperCase()}))}},{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"getValueObjectWithLabel",value:function(r){return oc({},this.props.label,r)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||cc}},{key:"setUpdatedValue",value:function(r,a){var o=this.props.label?this.getValueObjectWithLabel(r):r;this.props.onChange&&this.props.onChange(o,a),this.setState({value:r})}},{key:"render",value:function(){var r=this,a=N({default:{wrap:{position:"relative"}},"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:"ew-resize"}}},{"user-override":!0},this.props);return c.createElement("div",{style:a.wrap},c.createElement("input",{id:this.inputId,style:a.input,ref:function(s){return r.input=s},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder,spellCheck:"false"}),this.props.label&&!this.props.hideLabel?c.createElement("label",{htmlFor:this.inputId,style:a.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),e}(y.PureComponent||y.Component),gc=function(e,n,r,a){var o=a.clientWidth,s=a.clientHeight,i=typeof e.pageX=="number"?e.pageX:e.touches[0].pageX,l=typeof e.pageY=="number"?e.pageY:e.touches[0].pageY,u=i-(a.getBoundingClientRect().left+window.pageXOffset),d=l-(a.getBoundingClientRect().top+window.pageYOffset);if(n==="vertical"){var f=void 0;if(d<0)f=359;else if(d>s)f=0;else{var h=-(d*100/s)+100;f=360*h/100}if(r.h!==f)return{h:f,s:r.s,l:r.l,a:r.a,source:"hsl"}}else{var g=void 0;if(u<0)g=0;else if(u>o)g=359;else{var x=u*100/o;g=360*x/100}if(r.h!==g)return{h:g,s:r.s,l:r.l,a:r.a,source:"hsl"}}return null},bc=function(){function t(e,n){for(var r=0;r{const{children:e,value:n,index:r,...a}=t;return n===r?p.jsx(og,{"aria-labelledby":`simple-tab-${r}`,hidden:n!==r,id:`simple-tabpanel-${r}`,role:"tabpanel",...a,children:e}):null};function tg(t){return{id:`simple-tab-${t}`,"aria-controls":`simple-tabpanel-${t}`}}const ng=()=>{const[t,e]=y.useState(0),n=(a,o)=>{e(o)},r=[{label:"Color",component:B0},{label:"Icon",component:Y0}];return p.jsxs(ig,{direction:"column",children:[p.jsx(rg,{"aria-label":"color picker",onChange:n,value:t,children:r.map((a,o)=>p.jsx(ag,{color:j.white,disableRipple:!0,label:a.label,...tg(o)},a.label))}),r.map((a,o)=>p.jsx(eg,{index:o,value:t,children:p.jsx(a.component,{})},a.label))]})},rg=O(Yi)` +`,eg=t=>{const{children:e,value:n,index:r,...a}=t;return n===r?p.jsx(og,{"aria-labelledby":`simple-tab-${r}`,hidden:n!==r,id:`simple-tabpanel-${r}`,role:"tabpanel",...a,children:e}):null};function tg(t){return{id:`simple-tab-${t}`,"aria-controls":`simple-tabpanel-${t}`}}const ng=()=>{const[t,e]=y.useState(0),n=(a,o)=>{e(o)},r=[{label:"Color",component:B0},{label:"Icon",component:Y0}];return p.jsxs(ig,{direction:"column",children:[p.jsx(rg,{"aria-label":"color picker",onChange:n,value:t,children:r.map((a,o)=>p.jsx(ag,{color:j.white,disableRipple:!0,label:a.label,...tg(o)},a.label))}),r.map((a,o)=>p.jsx(eg,{index:o,value:t,children:p.jsx(a.component,{})},a.label))]})},rg=O(Qi)` && { background: ${j.modalBg}; border-radius: 9px 9px 0 0; @@ -305,7 +305,7 @@ import{r as y,K as _o,L as jo,M as Wt,N as oe,P as Oo,a2 as Ei,G as Po,j as p,S background: ${j.primaryBlue}; } } -`,ag=O(Xi)` +`,ag=O(Ji)` && { padding: 20px 0 20px; color: ${j.GRAY6}; @@ -388,7 +388,7 @@ import{r as y,K as _o,L as jo,M as Wt,N as oe,P as Oo,a2 as Ei,G as Po,j as p,S top: 37%; left: 76%; } -`,ug=/^[a-z0-9_]+$/,pg=({parentParam:t,onDelete:e})=>{const[n,r]=y.useState(!1),[a,o]=y.useState([]),{fields:s,append:i,replace:l,remove:u}=$i({name:"attributes"}),{setValue:d,watch:f}=Ai();return y.useEffect(()=>{const h=async()=>{try{let g=[{required:!1,type:"string",key:""}];if(t!==Mo.value.toLowerCase()){r(!0);const x=await ko(t);x.attributes&&typeof x.attributes=="object"?g=ir(x.attributes):g=ir(x)}g=g.filter(x=>x.key!=="node_key"),l(g),o(g)}catch(g){console.warn(g)}finally{r(!1)}};a.length===0&&h()},[t,d,l,a.length]),p.jsxs(p.Fragment,{children:[n?p.jsx($,{align:"center",children:p.jsx(Ie,{color:j.SECONDARY_BLUE,size:"30"})}):p.jsx(dg,{py:8,children:p.jsx(je,{container:!0,spacing:2,children:s.map((h,g)=>{const x=f(`attributes[${g}].type`),m=f(`attributes[${g}].required`),v=h.isNew||!1,w=["name"].includes(f(`attributes[${g}].key`));return p.jsxs(y.Fragment,{children:[p.jsx(je,{item:!0,xs:5,children:p.jsx(hn,{autoComplete:"off",className:"text-input",dataTestId:`cy-item-name-${g}`,disabled:!v,id:`cy-item-name-${g}`,maxLength:50,name:`attributes.${g}.key`,placeholder:"Enter value",rules:{...gn,pattern:{message:"Please avoid special characters, spaces and uppercase",value:ug}}})}),p.jsx(je,{item:!0,xs:4,children:p.jsx(xg,{dataTestId:`cy-item-select-${g}`,disabled:w,onSelect:_=>d(`attributes[${g}].type`,_==null?void 0:_.value),options:Jr,selectedValue:Jr.find(_=>_.value===x)})}),p.jsx(je,{item:!0,xs:3,children:p.jsxs(hg,{children:[p.jsx(fg,{checked:m,"data-testid":`cy-item-${g}`,disabled:w,name:`attributes.${g}.required`,onChange:_=>d(`attributes[${g}].required`,_.target.checked)}),!w&&p.jsx(Bi,{onClick:()=>{u(g),h.key!==void 0&&e&&e(h.key)},children:p.jsx(Fi,{})})]})})]},h.id)})})}),p.jsx($,{align:"flex-start",py:12,children:p.jsx(gg,{"data-testid":"add-attribute-btn",onClick:()=>i({key:"",type:"string",required:!0,isNew:!0}),children:p.jsxs(bg,{children:[p.jsx(Bo,{})," Add Attribute"]})})})]})},dg=O($)` +`,ug=/^[a-z0-9_]+$/,pg=({parentParam:t,onDelete:e})=>{const[n,r]=y.useState(!1),[a,o]=y.useState([]),{fields:s,append:i,replace:l,remove:u}=$i({name:"attributes"}),{setValue:d,watch:f}=Ai();return y.useEffect(()=>{const h=async()=>{try{let g=[{required:!1,type:"string",key:""}];if(t!==Mo.value.toLowerCase()){r(!0);const x=await ko(t);x.attributes&&typeof x.attributes=="object"?g=sr(x.attributes):g=sr(x)}g=g.filter(x=>x.key!=="node_key"),l(g),o(g)}catch(g){console.warn(g)}finally{r(!1)}};a.length===0&&h()},[t,d,l,a.length]),p.jsxs(p.Fragment,{children:[n?p.jsx($,{align:"center",children:p.jsx(Ie,{color:j.SECONDARY_BLUE,size:"30"})}):p.jsx(dg,{py:8,children:p.jsx(je,{container:!0,spacing:2,children:s.map((h,g)=>{const x=f(`attributes[${g}].type`),m=f(`attributes[${g}].required`),v=h.isNew||!1,w=["name"].includes(f(`attributes[${g}].key`));return p.jsxs(y.Fragment,{children:[p.jsx(je,{item:!0,xs:5,children:p.jsx(hn,{autoComplete:"off",className:"text-input",dataTestId:`cy-item-name-${g}`,disabled:!v,id:`cy-item-name-${g}`,maxLength:50,name:`attributes.${g}.key`,placeholder:"Enter value",rules:{...gn,pattern:{message:"Please avoid special characters, spaces and uppercase",value:ug}}})}),p.jsx(je,{item:!0,xs:4,children:p.jsx(xg,{dataTestId:`cy-item-select-${g}`,disabled:w,onSelect:_=>d(`attributes[${g}].type`,_==null?void 0:_.value),options:Jr,selectedValue:Jr.find(_=>_.value===x)})}),p.jsx(je,{item:!0,xs:3,children:p.jsxs(hg,{children:[p.jsx(fg,{checked:m,"data-testid":`cy-item-${g}`,disabled:w,name:`attributes.${g}.required`,onChange:_=>d(`attributes[${g}].required`,_.target.checked)}),!w&&p.jsx(as,{onClick:()=>{u(g),h.key!==void 0&&e&&e(h.key)},children:p.jsx(es,{})})]})})]},h.id)})})}),p.jsx($,{align:"flex-start",py:12,children:p.jsx(gg,{"data-testid":"add-attribute-btn",onClick:()=>i({key:"",type:"string",required:!0,isNew:!0}),children:p.jsxs(bg,{children:[p.jsx(No,{})," Add Attribute"]})})})]})},dg=O($)` overflow-y: auto; width: calc(100% + 20px); max-height: calc(80vh - 300px); @@ -462,7 +462,7 @@ import{r as y,K as _o,L as jo,M as Wt,N as oe,P as Oo,a2 as Ei,G as Po,j as p,S color: gray; `,vg=({setMediaOptions:t,initialOptions:e,setSubmitDisabled:n})=>{const[r,a]=y.useState(e);y.useEffect(()=>{a(e)},[e]);const o=s=>{a(i=>{const l={...i,[s]:!i[s]};return t(l),n(!1),l})};return p.jsxs(yg,{direction:"column",children:[p.jsx(tr,{}),p.jsx(Qn,{control:p.jsx(er,{checked:r.videoAudio,onChange:()=>o("videoAudio")}),label:p.jsx(Jn,{active:r.videoAudio,children:"Video / Audio"}),labelPlacement:"start"}),p.jsx(tr,{}),p.jsx(Qn,{control:p.jsx(er,{checked:r.image,onChange:()=>o("image")}),label:p.jsx(Jn,{active:r.image,children:"Image"}),labelPlacement:"start"}),p.jsx(tr,{}),p.jsx(Qn,{control:p.jsx(er,{checked:r.sourceLink,onChange:()=>o("sourceLink")}),label:p.jsx(Jn,{active:r.sourceLink,children:"Source Link"}),labelPlacement:"start"})]})},yg=O($)` direction: column; -`,Qn=O(Vi)` +`,Qn=O(Zi)` justify-content: space-between; margin-left: 2px !important; margin-top: 8px; @@ -503,7 +503,7 @@ import{r as y,K as _o,L as jo,M as Wt,N as oe,P as Oo,a2 as Ei,G as Po,j as p,S border: 1px solid ${j.BG2}; width: 100%; opacity: 0.5; -`,uo={type:"",parent:""},wg=(t,e)=>t.length!==e.length?!0:t.some((n,r)=>{const a=e[r];return n.required!==a.required||n.type!==a.type||n.key!==a.key}),Eg=async(t,e=!1,n,r,a,o,s)=>{try{const{attributes:i,selectedIndex:l,ref_id:u,...d}=t,f={...Ki(i),...n.reduce((x,m)=>({...x,[m]:"delete"}),{})},h={...d,attributes:f,index:l};r&&(h.primary_color=r),a&&(h.icon=a),o.videoAudio&&(h.attributes.media_url="?string"),o.image&&(h.attributes.image_url="?string"),o.sourceLink&&(h.attributes.source_link="?string");let g;if(e?g=await ar.put(`/schema/${t.ref_id}`,JSON.stringify(h),{}):g=await ar.post("/schema",JSON.stringify({...h,node_key:"name"}),{}),g.status!=="success")throw new Error("error");return g==null?void 0:g.ref_id}catch(i){let l=gt;if(i.status===400){const u=await i.json();l=u.errorCode||(u==null?void 0:u.status)||gt}else i instanceof Error&&(l=i.message);throw new Error(l)}},Cg=t=>t.charAt(0).toUpperCase()+t.slice(1),po=async(t,e)=>{try{const o=((await xr()).schemas||[]).filter(s=>!s.is_deleted&&s.type&&(!e||e(s))).map(s=>s.type==="thing"?{label:"No Parent",value:s.type}:{label:Cg(s.type),value:s.type}).filter((s,i,l)=>i===l.findIndex(u=>u.value===s.value));t(o)}catch(n){console.warn(n)}},Sg=({graphLoading:t,onSchemaCreate:e,selectedSchema:n,onDelete:r,setSelectedSchemaId:a,setGraphLoading:o,setIsCreateNew:s,onSchemaUpdate:i})=>{const{close:l,visible:u}=Ro("addType"),d=br({mode:"onChange",defaultValues:n?{type:n.type,parent:n.parent}:uo}),{watch:f,setValue:h,reset:g,getValues:x}=d,[m,v]=y.useState(!1),[w,_]=y.useState(!1),[B,P]=y.useState(!1),[T,M]=y.useState(null),[L,H]=y.useState(!1),[V,S]=y.useState(null),[D,X]=y.useState(""),[I,K]=y.useState(null),[re,xe]=y.useState([]),[Te,pe]=y.useState([]),[Et,Ue]=y.useState(!0),[$e,Fe]=y.useState({videoAudio:!1,image:!1,sourceLink:!1}),{selectedColor:ye,selectedIcon:Ct}=vr(k=>k),[St,kn]=y.useState(!1),Qt=()=>kn(!St);y.useEffect(()=>()=>{g()},[u,g]);const Rn=()=>{s(!1),a("")};y.useEffect(()=>{n||(P(!0),po(M).finally(()=>P(!1)))},[n]),y.useEffect(()=>{(()=>{g(uo),pe([{required:!1,type:"string",key:""}]),xe([]),Fe({videoAudio:!1,image:!1,sourceLink:!1})})(),n&&(h("type",n.type),h("parent",n.parent),n.index&&h("selectedIndex",n.index),Fe({videoAudio:!!n.media_url,image:!!n.image_url,sourceLink:!!n.source_link}),n.type!==Mo.value.toLowerCase()&&ko(n.type).then(z=>{const se=(z?ir(z):[{required:!1,type:"string",key:""}]).filter(le=>le.key!=="node_key");pe(se)}),po(S,z=>z.type!==n.type))},[n,h,g]);const ee=f("parent");f("type");const Bn=k=>Array.isArray(k)&&k.every(z=>typeof z=="object"&&"key"in z),Ve=f("attributes"),Ae=y.useMemo(()=>Bn(Ve)?Ve:[],[Ve]),Jt=()=>{l()},Fn=k=>{xe(z=>[...z,k])},Nn=async()=>{if(n!=null&&n.type){_(!0),o(!0);try{await ar.delete(`/schema/${n.ref_id}`),r(n.type),l()}catch(k){let z=gt;if((k==null?void 0:k.status)===400){const Q=await k.json();z=Q.errorCode||(Q==null?void 0:Q.status)||gt}else k instanceof Error&&(z=k.message);K(z)}finally{_(!1),o(!1),s(!1)}}},_t=d.handleSubmit(async k=>{if(!ee){H(!0);return}v(!0);try{if(n&&k.type!==(n==null?void 0:n.type)||n&&x().parent!==(n==null?void 0:n.parent)){const Q=x().parent??(n==null?void 0:n.parent),{selectedIndex:se}=x();o(!0);const le={};$e.image&&(le.image_url="?string"),$e.sourceLink&&(le.source_link="?string"),$e.videoAudio&&(le.media_url="?string"),await Mi(n==null?void 0:n.ref_id,{type:k.type,parent:Q,primary_color:ye,icon:Ct,attributes:{...le,index:se}}),await i()}const z=await Eg({...k,...n?{ref_id:n==null?void 0:n.ref_id}:{}},!!n,re,ye,Ct,$e,{videoAudio:!!(n!=null&&n.media_url),image:!!(n!=null&&n.image_url),sourceLink:!!(n!=null&&n.source_link)});e({type:k.type,parent:ee||"",ref_id:(n==null?void 0:n.ref_id)||z||"new"}),Jt()}catch(z){let Q=gt;if((z==null?void 0:z.status)===400){const se=await z.json();Q=se.errorCode||(se==null?void 0:se.status)||gt}else z instanceof Error&&(Q=z.message);X(Q)}finally{v(!1),o(!1),s(!1)}});y.useEffect(()=>{ye!==(n==null?void 0:n.primary_color)&&Ue(!1);const k=d.watch(z=>{var nn,rn,Ot,an,Pt,Tt;const Q=wg(Ae,Te),se=((nn=z.type)==null?void 0:nn.trim())!==((rn=n==null?void 0:n.type)==null?void 0:rn.trim())||((Ot=z.parent)==null?void 0:Ot.trim())!==((an=n==null?void 0:n.parent)==null?void 0:an.trim())||Q,le=!!((Pt=z.type)!=null&&Pt.trim()),jt=!!((Tt=z.parent)!=null&&Tt.trim());Ue(n?m||!se||!le||L:m||L||!le||!jt)});return()=>k.unsubscribe()},[d,Ae,Te,n,m,L,ye]);const en=()=>T==null?void 0:T.find(k=>k.value===ee),tn=y.useMemo(()=>{if(ee){const k=V==null?void 0:V.find(z=>z.value===ee);return k||{label:ee,value:ee}}if(n!=null&&n.parent){const k=V==null?void 0:V.find(z=>z.value===n.parent);return k||{label:n.parent,value:n.parent}}},[ee,n,V]),Ye=f("selectedIndex"),In=y.useMemo(()=>{if(Ye)return{label:Ye,value:Ye};if(n){const k=Ae.find(z=>z.key===n.index);if(k)return{label:k.key,value:k.key};if(n.index)return{label:n.index,value:n.index}}},[n,Ae,Ye]),Xe=or[Ct],Ke=n?n.type:ee;return p.jsxs($,{children:[p.jsxs(Tg,{children:[p.jsx($g,{children:n?"Edit Type":"Create Type"}),p.jsx(Pg,{"data-testid":"close-sidebar-sub-view",onClick:Rn,children:p.jsx(mr,{})})]}),p.jsx(jg,{}),p.jsxs($,{children:[p.jsx(Ao,{...d,children:p.jsxs("form",{id:"add-type-form",onSubmit:_t,children:[p.jsx($,{children:n?p.jsxs(p.Fragment,{children:[p.jsxs($,{mb:12,children:[p.jsx($,{mb:12,children:p.jsx(_e,{children:"Parent"})}),p.jsx(Dt,{isLoading:B||t,onSelect:k=>{h("parent",(k==null?void 0:k.value)||""),H(!1)},options:V||[],selectedValue:tn}),D&&p.jsx(nr,{children:D})]}),p.jsxs($,{mb:12,children:[p.jsx($,{mb:12,children:p.jsx(_e,{children:"Name"})}),p.jsx($,{mb:12,children:p.jsxs(bo,{children:[p.jsx(xo,{children:p.jsx(hn,{dataTestId:"cy-item-name",defaultValue:n==null?void 0:n.type,id:"cy-item-name",maxLength:250,name:"type",placeholder:"Enter type name",rules:{...gn},value:ee})}),p.jsx(go,{onClick:Qt,selectedColor:ye,children:p.jsx(Xe,{})})]})})]})]}):p.jsxs(p.Fragment,{children:[p.jsxs($,{mb:12,children:[p.jsx($,{mb:12,children:p.jsx(_e,{children:"Parent"})}),p.jsx(Dt,{isLoading:B,onSelect:k=>{h("parent",(k==null?void 0:k.value)||""),H(!1)},options:T,selectedValue:en()}),L&&p.jsx(nr,{children:"A parent type must be selected"})]}),p.jsxs($,{children:[p.jsx($,{mb:12,children:p.jsx(_e,{children:"Name"})}),p.jsx($,{mb:12,children:p.jsxs(bo,{children:[p.jsx(xo,{children:p.jsx(hn,{id:"cy-item-name",maxLength:250,name:"type",placeholder:"Enter type name",rules:{...gn},value:ee})}),p.jsx(go,{onClick:Qt,selectedColor:ye,children:Xe&&p.jsx(Xe,{})})]})})]})]})}),Ke&&p.jsx(mg,{onDelete:Fn,parent:n?n.type:ee}),p.jsx(vg,{initialOptions:$e,setMediaOptions:Fe,setSubmitDisabled:Ue}),Ke&&p.jsxs($,{children:[p.jsx(ho,{}),p.jsx($,{mb:12,mt:12,children:p.jsx(_e,{children:"Indexes"})}),p.jsx(je,{item:!0,mb:2,width:"70%",children:p.jsx(Dt,{onSelect:k=>h("selectedIndex",(k==null?void 0:k.value)||""),options:Ae.filter(k=>k.key).map(k=>({label:k.key,value:k.key})),selectedValue:In})}),p.jsx(ho,{})]}),p.jsxs($,{direction:"row",justify:"space-between",mt:20,children:[n&&p.jsxs($,{direction:"column",children:[p.jsxs(Og,{color:"secondary",disabled:w,onClick:Nn,size:"large",style:{marginRight:20},variant:"contained",children:["Delete",w&&p.jsxs(fo,{children:[p.jsx(Ie,{color:j.lightGray,size:12})," "]})]}),I&&p.jsx(nr,{children:I})]}),p.jsxs(_g,{color:"secondary",disabled:Et,onClick:_t,size:"large",variant:"contained",children:["Confirm",m&&p.jsxs(fo,{children:[p.jsx(Ie,{color:j.lightGray,size:12})," "]})]})]})]})}),p.jsx(sg,{isOpen:St})]})]})},_g=O(Cn)` +`,uo={type:"",parent:""},wg=(t,e)=>t.length!==e.length?!0:t.some((n,r)=>{const a=e[r];return n.required!==a.required||n.type!==a.type||n.key!==a.key}),Eg=async(t,e=!1,n,r,a,o,s)=>{try{const{attributes:i,selectedIndex:l,ref_id:u,...d}=t,f={...ts(i),...n.reduce((x,m)=>({...x,[m]:"delete"}),{})},h={...d,attributes:f,index:l};r&&(h.primary_color=r),a&&(h.icon=a),o.videoAudio&&(h.attributes.media_url="?string"),o.image&&(h.attributes.image_url="?string"),o.sourceLink&&(h.attributes.source_link="?string");let g;if(e?g=await ar.put(`/schema/${t.ref_id}`,JSON.stringify(h),{}):g=await ar.post("/schema",JSON.stringify({...h,node_key:"name"}),{}),g.status!=="success")throw new Error("error");return g==null?void 0:g.ref_id}catch(i){let l=gt;if(i.status===400){const u=await i.json();l=u.errorCode||(u==null?void 0:u.status)||gt}else i instanceof Error&&(l=i.message);throw new Error(l)}},Cg=t=>t.charAt(0).toUpperCase()+t.slice(1),po=async(t,e)=>{try{const o=((await xr()).schemas||[]).filter(s=>!s.is_deleted&&s.type&&(!e||e(s))).map(s=>s.type==="thing"?{label:"No Parent",value:s.type}:{label:Cg(s.type),value:s.type}).filter((s,i,l)=>i===l.findIndex(u=>u.value===s.value));t(o)}catch(n){console.warn(n)}},Sg=({graphLoading:t,onSchemaCreate:e,selectedSchema:n,onDelete:r,setSelectedSchemaId:a,setGraphLoading:o,setIsCreateNew:s,onSchemaUpdate:i})=>{const{close:l,visible:u}=Ro("addType"),d=br({mode:"onChange",defaultValues:n?{type:n.type,parent:n.parent}:uo}),{watch:f,setValue:h,reset:g,getValues:x}=d,[m,v]=y.useState(!1),[w,_]=y.useState(!1),[B,P]=y.useState(!1),[T,M]=y.useState(null),[L,H]=y.useState(!1),[V,S]=y.useState(null),[D,X]=y.useState(""),[I,K]=y.useState(null),[re,xe]=y.useState([]),[Te,pe]=y.useState([]),[Et,Ue]=y.useState(!0),[$e,Fe]=y.useState({videoAudio:!1,image:!1,sourceLink:!1}),{selectedColor:ye,selectedIcon:Ct}=vr(k=>k),[St,kn]=y.useState(!1),Qt=()=>kn(!St);y.useEffect(()=>()=>{g()},[u,g]);const Rn=()=>{s(!1),a("")};y.useEffect(()=>{n||(P(!0),po(M).finally(()=>P(!1)))},[n]),y.useEffect(()=>{(()=>{g(uo),pe([{required:!1,type:"string",key:""}]),xe([]),Fe({videoAudio:!1,image:!1,sourceLink:!1})})(),n&&(h("type",n.type),h("parent",n.parent),n.index&&h("selectedIndex",n.index),Fe({videoAudio:!!n.media_url,image:!!n.image_url,sourceLink:!!n.source_link}),n.type!==Mo.value.toLowerCase()&&ko(n.type).then(z=>{const se=(z?sr(z):[{required:!1,type:"string",key:""}]).filter(le=>le.key!=="node_key");pe(se)}),po(S,z=>z.type!==n.type))},[n,h,g]);const ee=f("parent");f("type");const Bn=k=>Array.isArray(k)&&k.every(z=>typeof z=="object"&&"key"in z),Ve=f("attributes"),Ae=y.useMemo(()=>Bn(Ve)?Ve:[],[Ve]),Jt=()=>{l()},Fn=k=>{xe(z=>[...z,k])},Nn=async()=>{if(n!=null&&n.type){_(!0),o(!0);try{await ar.delete(`/schema/${n.ref_id}`),r(n.type),l()}catch(k){let z=gt;if((k==null?void 0:k.status)===400){const Q=await k.json();z=Q.errorCode||(Q==null?void 0:Q.status)||gt}else k instanceof Error&&(z=k.message);K(z)}finally{_(!1),o(!1),s(!1)}}},_t=d.handleSubmit(async k=>{if(!ee){H(!0);return}v(!0);try{if(n&&k.type!==(n==null?void 0:n.type)||n&&x().parent!==(n==null?void 0:n.parent)){const Q=x().parent??(n==null?void 0:n.parent),{selectedIndex:se}=x();o(!0);const le={};$e.image&&(le.image_url="?string"),$e.sourceLink&&(le.source_link="?string"),$e.videoAudio&&(le.media_url="?string"),await Mi(n==null?void 0:n.ref_id,{type:k.type,parent:Q,primary_color:ye,icon:Ct,attributes:{...le,index:se}}),await i()}const z=await Eg({...k,...n?{ref_id:n==null?void 0:n.ref_id}:{}},!!n,re,ye,Ct,$e,{videoAudio:!!(n!=null&&n.media_url),image:!!(n!=null&&n.image_url),sourceLink:!!(n!=null&&n.source_link)});e({type:k.type,parent:ee||"",ref_id:(n==null?void 0:n.ref_id)||z||"new"}),Jt()}catch(z){let Q=gt;if((z==null?void 0:z.status)===400){const se=await z.json();Q=se.errorCode||(se==null?void 0:se.status)||gt}else z instanceof Error&&(Q=z.message);X(Q)}finally{v(!1),o(!1),s(!1)}});y.useEffect(()=>{ye!==(n==null?void 0:n.primary_color)&&Ue(!1);const k=d.watch(z=>{var nn,rn,Ot,an,Pt,Tt;const Q=wg(Ae,Te),se=((nn=z.type)==null?void 0:nn.trim())!==((rn=n==null?void 0:n.type)==null?void 0:rn.trim())||((Ot=z.parent)==null?void 0:Ot.trim())!==((an=n==null?void 0:n.parent)==null?void 0:an.trim())||Q,le=!!((Pt=z.type)!=null&&Pt.trim()),jt=!!((Tt=z.parent)!=null&&Tt.trim());Ue(n?m||!se||!le||L:m||L||!le||!jt)});return()=>k.unsubscribe()},[d,Ae,Te,n,m,L,ye]);const en=()=>T==null?void 0:T.find(k=>k.value===ee),tn=y.useMemo(()=>{if(ee){const k=V==null?void 0:V.find(z=>z.value===ee);return k||{label:ee,value:ee}}if(n!=null&&n.parent){const k=V==null?void 0:V.find(z=>z.value===n.parent);return k||{label:n.parent,value:n.parent}}},[ee,n,V]),Ye=f("selectedIndex"),In=y.useMemo(()=>{if(Ye)return{label:Ye,value:Ye};if(n){const k=Ae.find(z=>z.key===n.index);if(k)return{label:k.key,value:k.key};if(n.index)return{label:n.index,value:n.index}}},[n,Ae,Ye]),Xe=or[Ct],Ke=n?n.type:ee;return p.jsxs($,{children:[p.jsxs(Tg,{children:[p.jsx($g,{children:n?"Edit Type":"Create Type"}),p.jsx(Pg,{"data-testid":"close-sidebar-sub-view",onClick:Rn,children:p.jsx(mr,{})})]}),p.jsx(jg,{}),p.jsxs($,{children:[p.jsx(Ao,{...d,children:p.jsxs("form",{id:"add-type-form",onSubmit:_t,children:[p.jsx($,{children:n?p.jsxs(p.Fragment,{children:[p.jsxs($,{mb:12,children:[p.jsx($,{mb:12,children:p.jsx(_e,{children:"Parent"})}),p.jsx(Dt,{isLoading:B||t,onSelect:k=>{h("parent",(k==null?void 0:k.value)||""),H(!1)},options:V||[],selectedValue:tn}),D&&p.jsx(nr,{children:D})]}),p.jsxs($,{mb:12,children:[p.jsx($,{mb:12,children:p.jsx(_e,{children:"Name"})}),p.jsx($,{mb:12,children:p.jsxs(bo,{children:[p.jsx(xo,{children:p.jsx(hn,{dataTestId:"cy-item-name",defaultValue:n==null?void 0:n.type,id:"cy-item-name",maxLength:250,name:"type",placeholder:"Enter type name",rules:{...gn},value:ee})}),p.jsx(go,{onClick:Qt,selectedColor:ye,children:p.jsx(Xe,{})})]})})]})]}):p.jsxs(p.Fragment,{children:[p.jsxs($,{mb:12,children:[p.jsx($,{mb:12,children:p.jsx(_e,{children:"Parent"})}),p.jsx(Dt,{isLoading:B,onSelect:k=>{h("parent",(k==null?void 0:k.value)||""),H(!1)},options:T,selectedValue:en()}),L&&p.jsx(nr,{children:"A parent type must be selected"})]}),p.jsxs($,{children:[p.jsx($,{mb:12,children:p.jsx(_e,{children:"Name"})}),p.jsx($,{mb:12,children:p.jsxs(bo,{children:[p.jsx(xo,{children:p.jsx(hn,{id:"cy-item-name",maxLength:250,name:"type",placeholder:"Enter type name",rules:{...gn},value:ee})}),p.jsx(go,{onClick:Qt,selectedColor:ye,children:Xe&&p.jsx(Xe,{})})]})})]})]})}),Ke&&p.jsx(mg,{onDelete:Fn,parent:n?n.type:ee}),p.jsx(vg,{initialOptions:$e,setMediaOptions:Fe,setSubmitDisabled:Ue}),Ke&&p.jsxs($,{children:[p.jsx(ho,{}),p.jsx($,{mb:12,mt:12,children:p.jsx(_e,{children:"Indexes"})}),p.jsx(je,{item:!0,mb:2,width:"70%",children:p.jsx(Dt,{onSelect:k=>h("selectedIndex",(k==null?void 0:k.value)||""),options:Ae.filter(k=>k.key).map(k=>({label:k.key,value:k.key})),selectedValue:In})}),p.jsx(ho,{})]}),p.jsxs($,{direction:"row",justify:"space-between",mt:20,children:[n&&p.jsxs($,{direction:"column",children:[p.jsxs(Og,{color:"secondary",disabled:w,onClick:Nn,size:"large",style:{marginRight:20},variant:"contained",children:["Delete",w&&p.jsxs(fo,{children:[p.jsx(Ie,{color:j.lightGray,size:12})," "]})]}),I&&p.jsx(nr,{children:I})]}),p.jsxs(_g,{color:"secondary",disabled:Et,onClick:_t,size:"large",variant:"contained",children:["Confirm",m&&p.jsxs(fo,{children:[p.jsx(Ie,{color:j.lightGray,size:12})," "]})]})]})]})}),p.jsx(sg,{isOpen:St})]})]})},_g=O(Cn)` width: 400px !important; margin: 0 auto !important; `,jg=O.div` @@ -599,7 +599,7 @@ import{r as y,K as _o,L as jo,M as Wt,N as oe,P as Oo,a2 as Ei,G as Po,j as p,S display: flex; `,xo=O($)` width: 320px; -`,he=10,Ag=2,Mg=2,mo=10,kg=10,vo=(t,e,n)=>{const o=new G().subVectors(e,t).normalize().multiplyScalar(n);return new G().addVectors(t,o)},Rg=(t,e,n,r)=>{const a=new G().lerpVectors(t,e,.5),o=new G().subVectors(e,t).normalize(),s=new G(-o.y,o.x,o.z).normalize(),i=(n-r/2)*kg;return new G().addVectors(a,s.multiplyScalar(i))},yi=({links:t,nodes:e,onEdgeClick:n})=>{const r=y.useRef(null),{camera:a}=me(),o=new G,s=new G,i=new G,l=new G,u=new G,d=new G,f=new G,h=new G;Sn(()=>{r.current&&e&&r.current.children.forEach((x,m)=>{var V,S,D,X;const v=t[m];if(!v)return;const w=e.find(I=>I.ref_id===v.target),_=e.find(I=>I.ref_id===v.source);o.set((_==null?void 0:_.x)||0,(_==null?void 0:_.y)||0,(_==null?void 0:_.z)||0),s.set((w==null?void 0:w.x)||0,(w==null?void 0:w.y)||0,(w==null?void 0:w.z)||0);const B=x.children[0],P=x.children[1],T=x.children[2],M=x.children[3],L=t.filter(I=>I.source===v.source&&I.target===v.target||I.source===v.target&&I.target===v.source).length,H=t.filter((I,K)=>K1?i.copy(Rg(h,f,H,L)):i.lerpVectors(h,f,.5);const I=30;l.subVectors(f,h).normalize().multiplyScalar(I/2),u.subVectors(i,l),d.addVectors(i,l);const K=new G().addVectors(h,u).multiplyScalar(.5),re=new G().addVectors(d,f).multiplyScalar(.5);(D=B.setPoints)==null||D.call(B,h,u,K),(X=P.setPoints)==null||X.call(P,d,f,re),T.position.set(f.x,f.y,f.z),T.lookAt(h),T.rotateX(-Math.PI/2),M.position.set(i.x,i.y,i.z),M.lookAt(a.position);let xe=Math.atan2(f.y-h.y,f.x-h.x);(xe>Math.PI/2||xe<-Math.PI/2)&&(xe+=Math.PI),M.rotation.set(0,0,xe);const Te=h.distanceTo(f),pe=Te{if(x==="CHILD_OF"||m==="string"||v==="string")return;const _=e==null?void 0:e.find(M=>M.ref_id===m),B=e==null?void 0:e.find(M=>M.ref_id===v),P=(_==null?void 0:_.type)||"",T=(B==null?void 0:B.type)||"";n(w,x,P,T)};return p.jsx("group",{ref:r,children:t.map(x=>p.jsxs("group",{children:[p.jsx(pa,{color:"white",end:[0,0,0],lineWidth:1,start:[0,0,0]}),p.jsx(pa,{color:"white",end:[0,0,0],lineWidth:1,start:[0,0,0]}),p.jsxs("mesh",{position:new G(0,0,0),children:[p.jsx("coneGeometry",{args:[Ag,Mg,32]}),p.jsx("meshBasicMaterial",{color:"white"})]}),p.jsx(Fo,{anchorX:"center",anchorY:"middle",color:"white",...No,lineHeight:1,maxWidth:20,onClick:()=>g(x.edge_type,x.source,x.target,x.ref_id),rotation:[0,0,0],textAlign:"center",children:sr(x.edge_type,mo)})]},x.ref_id))})};yi.displayName="Lines";const Bg=["#ff13c9","#5af0ff","#3233ff","#c2f0c2","#ff6666","#99ccff","#ffb3b3"],Fg=O.div` +`,he=10,Ag=2,Mg=2,mo=10,kg=10,vo=(t,e,n)=>{const o=new G().subVectors(e,t).normalize().multiplyScalar(n);return new G().addVectors(t,o)},Rg=(t,e,n,r)=>{const a=new G().lerpVectors(t,e,.5),o=new G().subVectors(e,t).normalize(),s=new G(-o.y,o.x,o.z).normalize(),i=(n-r/2)*kg;return new G().addVectors(a,s.multiplyScalar(i))},yi=({links:t,nodes:e,onEdgeClick:n})=>{const r=y.useRef(null),{camera:a}=me(),o=new G,s=new G,i=new G,l=new G,u=new G,d=new G,f=new G,h=new G;Sn(()=>{r.current&&e&&r.current.children.forEach((x,m)=>{var V,S,D,X;const v=t[m];if(!v)return;const w=e.find(I=>I.ref_id===v.target),_=e.find(I=>I.ref_id===v.source);o.set((_==null?void 0:_.x)||0,(_==null?void 0:_.y)||0,(_==null?void 0:_.z)||0),s.set((w==null?void 0:w.x)||0,(w==null?void 0:w.y)||0,(w==null?void 0:w.z)||0);const B=x.children[0],P=x.children[1],T=x.children[2],M=x.children[3],L=t.filter(I=>I.source===v.source&&I.target===v.target||I.source===v.target&&I.target===v.source).length,H=t.filter((I,K)=>K1?i.copy(Rg(h,f,H,L)):i.lerpVectors(h,f,.5);const I=30;l.subVectors(f,h).normalize().multiplyScalar(I/2),u.subVectors(i,l),d.addVectors(i,l);const K=new G().addVectors(h,u).multiplyScalar(.5),re=new G().addVectors(d,f).multiplyScalar(.5);(D=B.setPoints)==null||D.call(B,h,u,K),(X=P.setPoints)==null||X.call(P,d,f,re),T.position.set(f.x,f.y,f.z),T.lookAt(h),T.rotateX(-Math.PI/2),M.position.set(i.x,i.y,i.z),M.lookAt(a.position);let xe=Math.atan2(f.y-h.y,f.x-h.x);(xe>Math.PI/2||xe<-Math.PI/2)&&(xe+=Math.PI),M.rotation.set(0,0,xe);const Te=h.distanceTo(f),pe=Te{if(x==="CHILD_OF"||m==="string"||v==="string")return;const _=e==null?void 0:e.find(M=>M.ref_id===m),B=e==null?void 0:e.find(M=>M.ref_id===v),P=(_==null?void 0:_.type)||"",T=(B==null?void 0:B.type)||"";n(w,x,P,T)};return p.jsx("group",{ref:r,children:t.map(x=>p.jsxs("group",{children:[p.jsx(pa,{color:"white",end:[0,0,0],lineWidth:1,start:[0,0,0]}),p.jsx(pa,{color:"white",end:[0,0,0],lineWidth:1,start:[0,0,0]}),p.jsxs("mesh",{position:new G(0,0,0),children:[p.jsx("coneGeometry",{args:[Ag,Mg,32]}),p.jsx("meshBasicMaterial",{color:"white"})]}),p.jsx(Bo,{anchorX:"center",anchorY:"middle",color:"white",...Fo,lineHeight:1,maxWidth:20,onClick:()=>g(x.edge_type,x.source,x.target,x.ref_id),rotation:[0,0,0],textAlign:"center",children:ir(x.edge_type,mo)})]},x.ref_id))})};yi.displayName="Lines";const Bg=["#ff13c9","#5af0ff","#3233ff","#c2f0c2","#ff6666","#99ccff","#ffb3b3"],Fg=O.div` color: white; background: rgba(0, 0, 0, 1); padding: 2px 5px; @@ -611,9 +611,9 @@ import{r as y,K as _o,L as jo,M as Wt,N as oe,P as Oo,a2 as Ei,G as Po,j as p,S font-size: 12px; font-style: normal; font-weight: 400; -`,Ng=O(ns)` +`,Ng=O(Di)` position: absolute; -`;new us(2,2,2);const wi=y.memo(({node:t,setSelectedNode:e,onSimulationUpdate:n,isSelected:r})=>{var w,_;const a=y.useRef(null),[o]=yr(B=>[B.normalizedSchemasByType]),[s,i]=y.useState(!1);console.log(r);const{size:l,camera:u}=me(),d=es(B=>{if(t.type==="Thing")return;const{xy:[P,T],down:M,dragging:L,first:H,elapsedTime:V}=B;if(!(!L||H||V<100)&&M&&a.current){n();const S=(P-l.left)/window.innerWidth*l.width,D=(T-l.top)/window.innerHeight*l.height,K=new G(S/l.width*2-1,-D/l.height*2+1,0).unproject(u).multiply(new G(1,1,0)).clone();t.fx=K.x,t.fy=K.y}});Sn(()=>{a.current&&a.current.position.set(t.x||0,t.y||0,0)});const h=((w=o[t.type])==null?void 0:w.primary_color)??(Bg[(_=t==null?void 0:t.children)==null?void 0:_.length]||"red"),g=B=>{B.stopPropagation(),t.type!=="Thing"&&e()},x=sr(t.type||"",he),m=()=>{i(!0)},v=()=>{i(!1)};return p.jsxs("mesh",{ref:a,onClick:g,...d(),onPointerOut:v,onPointerOver:m,position:new G(t.x,t.y,0),children:[p.jsx(ts,{args:[he,30,20],children:p.jsx("meshStandardMaterial",{attach:"material",color:h})}),p.jsx(Fo,{...No,clipRect:[-he,-he,he,he],color:"#000",fontSize:2,maxWidth:he*2,name:t.type,textAlign:"left",children:x}),s&&p.jsx(Ng,{position:[0,5,0],zIndexRange:[100,0],children:p.jsx(Fg,{children:t.type})})]})});wi.displayName="Node";const Ig=({simulation:t,setSelectedSchemaId:e,selectedId:n,setIsAddEdgeNode:r})=>{const[a]=yr(s=>[s.schemas]),o=()=>{t&&(t.alpha(.05),t.restart())};return p.jsx(p.Fragment,{children:a.map((s,i)=>{const l=t.nodes()[i];return l?p.jsx(wi,{isSelected:l.ref_id===n,node:l,onSimulationUpdate:o,setSelectedNode:()=>{r(!1),e(l.ref_id)}},l.ref_id):null})})},Dg=({schemasWithPositions:t,filteredLinks:e,setSelectedSchemaId:n,selectedSchemaId:r,setIsAddEdgeNode:a,onEdgeClick:o})=>{const[s,i]=y.useState(null),l=oa(t),u=oa(e);return y.useEffect(()=>{if(!t.length||!e.length)return;const d=structuredClone(t),f=structuredClone(e);if(s){l&&l.length!==t.length&&u&&u.length!==e.length&&(s.nodes(d).force("link",ta(f).id(g=>g.ref_id).distance(100)).force("charge",na()).force("center",ra()).force("collide",aa(he+5)).alpha(.5).restart(),i({...s}));return}const h=Ni(d).force("link",ta(f).id(g=>g.ref_id).distance(120)).force("charge",na().strength(-100)).force("center",ra()).force("collide",aa(he+5));i(h)},[t,s,e,l,u]),Sn(()=>{}),s?p.jsxs(p.Fragment,{children:[p.jsx(yi,{links:e,nodes:s.nodes(),onEdgeClick:o}),p.jsx(Ig,{selectedId:r,setIsAddEdgeNode:a,setSelectedSchemaId:n,simulation:s})]}):null},rr=new ps(0),Hg=({selectedSchemaId:t,links:e,schemasWithPositions:n,setSelectedSchemaId:r,setIsAddEdgeNode:a,onEdgeClick:o})=>p.jsxs(rs,{camera:{zoom:1,position:[0,0,200]},id:"schema-canvas",linear:!0,orthographic:!0,children:[p.jsx("color",{args:[rr.r,rr.g,rr.b],attach:"background"}),ki&&p.jsx(as,{position:"right-bottom"}),p.jsx(zg,{}),p.jsx(os,{}),p.jsx(Dg,{filteredLinks:e,onEdgeClick:o,schemasWithPositions:n,selectedSchemaId:t,setIsAddEdgeNode:a,setSelectedSchemaId:r})]}),zg=()=>{y.useEffect(()=>{const n=a=>{["Meta","Alt"].includes(a.key)&&(document.body.style.cursor="grab")},r=a=>{["Meta","Alt"].includes(a.key)&&(document.body.style.cursor="default")};return window.addEventListener("keydown",n,!1),window.addEventListener("keyup",r,!1),()=>{window.removeEventListener("keydown",n,!1),window.removeEventListener("keyup",r,!1)}},[]);const t=()=>{document.body.style.cursor="grabbing"},e=()=>{document.body.style.cursor="default"};return p.jsx(Ls,{dampingFactor:1,enableDamping:!0,enablePan:!0,enableRotate:!1,enableZoom:!0,maxZoom:20,minZoom:1,onEnd:e,onStart:t,zoomSpeed:1.5,zoomToCursor:!0})},Lg=({onClose:t,activeTab:e,setActiveTab:n})=>p.jsxs(Gg,{children:[p.jsxs(Wg,{children:[p.jsx(Ii,{}),p.jsx(Ug,{children:"Blueprint"})]}),p.jsxs(Vg,{children:[p.jsx(yo,{active:e==="all",onClick:()=>n("all"),children:"Show All"}),p.jsx(yo,{active:e==="parent",onClick:()=>n("parent"),children:"Parent Only"})]}),p.jsx(Yg,{onClick:t,children:p.jsx(mr,{})})]}),Gg=O($)` +`;new us(2,2,2);const wi=y.memo(({node:t,setSelectedNode:e,onSimulationUpdate:n,isSelected:r})=>{var w,_;const a=y.useRef(null),[o]=yr(B=>[B.normalizedSchemasByType]),[s,i]=y.useState(!1);console.log(r);const{size:l,camera:u}=me(),d=Ni(B=>{if(t.type==="Thing")return;const{xy:[P,T],down:M,dragging:L,first:H,elapsedTime:V}=B;if(!(!L||H||V<100)&&M&&a.current){n();const S=(P-l.left)/window.innerWidth*l.width,D=(T-l.top)/window.innerHeight*l.height,K=new G(S/l.width*2-1,-D/l.height*2+1,0).unproject(u).multiply(new G(1,1,0)).clone();t.fx=K.x,t.fy=K.y}});Sn(()=>{a.current&&a.current.position.set(t.x||0,t.y||0,0)});const h=((w=o[t.type])==null?void 0:w.primary_color)??(Bg[(_=t==null?void 0:t.children)==null?void 0:_.length]||"red"),g=B=>{B.stopPropagation(),t.type!=="Thing"&&e()},x=ir(t.type||"",he),m=()=>{i(!0)},v=()=>{i(!1)};return p.jsxs("mesh",{ref:a,onClick:g,...d(),onPointerOut:v,onPointerOver:m,position:new G(t.x,t.y,0),children:[p.jsx(Ii,{args:[he,30,20],children:p.jsx("meshStandardMaterial",{attach:"material",color:h})}),p.jsx(Bo,{...Fo,clipRect:[-he,-he,he,he],color:"#000",fontSize:2,maxWidth:he*2,name:t.type,textAlign:"left",children:x}),s&&p.jsx(Ng,{position:[0,5,0],zIndexRange:[100,0],children:p.jsx(Fg,{children:t.type})})]})});wi.displayName="Node";const Ig=({simulation:t,setSelectedSchemaId:e,selectedId:n,setIsAddEdgeNode:r})=>{const[a]=yr(s=>[s.schemas]),o=()=>{t&&(t.alpha(.05),t.restart())};return p.jsx(p.Fragment,{children:a.map((s,i)=>{const l=t.nodes()[i];return l?p.jsx(wi,{isSelected:l.ref_id===n,node:l,onSimulationUpdate:o,setSelectedNode:()=>{r(!1),e(l.ref_id)}},l.ref_id):null})})},Dg=({schemasWithPositions:t,filteredLinks:e,setSelectedSchemaId:n,selectedSchemaId:r,setIsAddEdgeNode:a,onEdgeClick:o})=>{const[s,i]=y.useState(null),l=ta(t),u=ta(e);return y.useEffect(()=>{if(!t.length||!e.length)return;const d=structuredClone(t),f=structuredClone(e);if(s){l&&l.length!==t.length&&u&&u.length!==e.length&&(s.nodes(d).force("link",na(f).id(g=>g.ref_id).distance(100)).force("charge",ra()).force("center",aa()).force("collide",oa(he+5)).alpha(.5).restart(),i({...s}));return}const h=os(d).force("link",na(f).id(g=>g.ref_id).distance(120)).force("charge",ra().strength(-100)).force("center",aa()).force("collide",oa(he+5));i(h)},[t,s,e,l,u]),Sn(()=>{}),s?p.jsxs(p.Fragment,{children:[p.jsx(yi,{links:e,nodes:s.nodes(),onEdgeClick:o}),p.jsx(Ig,{selectedId:r,setIsAddEdgeNode:a,setSelectedSchemaId:n,simulation:s})]}):null},rr=new ps(0),Hg=({selectedSchemaId:t,links:e,schemasWithPositions:n,setSelectedSchemaId:r,setIsAddEdgeNode:a,onEdgeClick:o})=>p.jsxs(Hi,{camera:{zoom:1,position:[0,0,200]},id:"schema-canvas",linear:!0,orthographic:!0,children:[p.jsx("color",{args:[rr.r,rr.g,rr.b],attach:"background"}),ki&&p.jsx(zi,{position:"right-bottom"}),p.jsx(zg,{}),p.jsx(Li,{}),p.jsx(Dg,{filteredLinks:e,onEdgeClick:o,schemasWithPositions:n,selectedSchemaId:t,setIsAddEdgeNode:a,setSelectedSchemaId:r})]}),zg=()=>{y.useEffect(()=>{const n=a=>{["Meta","Alt"].includes(a.key)&&(document.body.style.cursor="grab")},r=a=>{["Meta","Alt"].includes(a.key)&&(document.body.style.cursor="default")};return window.addEventListener("keydown",n,!1),window.addEventListener("keyup",r,!1),()=>{window.removeEventListener("keydown",n,!1),window.removeEventListener("keyup",r,!1)}},[]);const t=()=>{document.body.style.cursor="grabbing"},e=()=>{document.body.style.cursor="default"};return p.jsx(Ls,{dampingFactor:1,enableDamping:!0,enablePan:!0,enableRotate:!1,enableZoom:!0,maxZoom:20,minZoom:1,onEnd:e,onStart:t,zoomSpeed:1.5,zoomToCursor:!0})},Lg=({onClose:t,activeTab:e,setActiveTab:n})=>p.jsxs(Gg,{children:[p.jsxs(Wg,{children:[p.jsx(Gi,{}),p.jsx(Ug,{children:"Blueprint"})]}),p.jsxs(Vg,{children:[p.jsx(yo,{active:e==="all",onClick:()=>n("all"),children:"Show All"}),p.jsx(yo,{active:e==="parent",onClick:()=>n("parent"),children:"Parent Only"})]}),p.jsx(Yg,{onClick:t,children:p.jsx(mr,{})})]}),Gg=O($)` background-color: ${j.BG1}; height: 64px; width: 100%; @@ -674,7 +674,7 @@ import{r as y,K as _o,L as jo,M as Wt,N as oe,P as Oo,a2 as Ei,G as Po,j as p,S width: 30px; height: 32px; } -`,Xg=({onCreateNew:t,onAddEdgeNode:e})=>p.jsxs(Kg,{children:[p.jsx(wo,{"data-testid":"add-schema-type",onClick:t,children:p.jsx(Eo,{children:p.jsx(Bo,{})})}),p.jsx(wo,{"data-testid":"add-edge",onClick:e,children:p.jsx(Eo,{children:p.jsx(Di,{})})})]}),Kg=O($).attrs({align:"flex-start",direction:"column",justify:"flex-start"})` +`,Xg=({onCreateNew:t,onAddEdgeNode:e})=>p.jsxs(Kg,{children:[p.jsx(wo,{"data-testid":"add-schema-type",onClick:t,children:p.jsx(Eo,{children:p.jsx(No,{})})}),p.jsx(wo,{"data-testid":"add-edge",onClick:e,children:p.jsx(Eo,{children:p.jsx(Wi,{})})})]}),Kg=O($).attrs({align:"flex-start",direction:"column",justify:"flex-start"})` flex: 1; gap: 17px; padding: 16px 0 0 16px; @@ -769,4 +769,4 @@ import{r as y,K as _o,L as jo,M as Wt,N as oe,P as Oo,a2 as Ei,G as Po,j as p,S } `,Qg=O($)` flex: 1 1 100%; -`,Jg=()=>{const{close:t}=Ro("blueprintGraph"),e=()=>{t()};return p.jsx(Ri,{background:"black",id:"blueprintGraph",kind:"full",preventOutsideClose:!0,children:p.jsx(qg,{Close:e})})},xb=y.memo(Jg);export{xb as BlueprintModal}; +`,Jg=()=>{const{close:t}=Ro("blueprintGraph"),e=()=>{t()};return p.jsx(Ri,{background:"black",id:"blueprintGraph",kind:"full",preventOutsideClose:!0,children:p.jsx(qg,{Close:e})})},jb=y.memo(Jg);export{jb as BlueprintModal}; diff --git a/build/assets/index-9142d688.js b/build/assets/index-b7808ecf.js similarity index 76% rename from build/assets/index-9142d688.js rename to build/assets/index-b7808ecf.js index eb8690d13..5f37e97fc 100644 --- a/build/assets/index-9142d688.js +++ b/build/assets/index-b7808ecf.js @@ -1,62 +1,62 @@ -import{r as v,a0 as fu,N as Se,j as M,R as up,a7 as I_,H as N,a8 as $_,c as hp,s as ve,a as ae,F as Fe,B as dp,u as Wt,b as fp,k as rc,n as Ih,T as pp,d as Hn,a9 as pu,l as F_,i as L_,x as $r,aa as j_,C as z_,e as $h,D as V_,ab as U_,ac as Fh}from"./index-1d805415.js";import{u as Ye,a as nn,m as ic,b as oc,e as mu,L as gu,c as B_,d as W_,q as q_,f as H_,g as mp,T as _u,h as yu,t as ha,H as ac,P as Y_,C as G_,i as X_,j as gp,k as Lh,l as jh,n as Z_}from"./index-aeaca922.js";import{P as Ee}from"./index-4dcb3294.js";import{k as zh,H as K_,E as Q_,l as As,f as Ue,m as _p,N as da,I as cc,n as yp,o as J_,p as ey,O as ty}from"./index-3ac851f3.js";import{T as ny}from"./TextareaAutosize-3b102137.js";import{D as No,F as sy,V as ye,L as ry,a as iy,M as fr,b as ke,S as oy,B as ay,c as vp,P as zc,d as cy,e as ra,f as Ms,T as lc,g as fa,h as ly,i as Vh,G as uy,C as pa,j as hy,k as go,Q as dy,l as bp,W as fy,m as py,n as my,E as gy,o as _y,p as uc,q as Uh,r as xp,s as wp}from"./three.module-71ec604c.js";import{T as yy}from"./index-5b7bb80c.js";import{C as vy}from"./ClipLoader-9eb1180c.js";const by=["top","right","bottom","left"],ys=Math.min,Lt=Math.max,ma=Math.round,Io=Math.floor,vs=n=>({x:n,y:n}),xy={left:"right",right:"left",bottom:"top",top:"bottom"},wy={start:"end",end:"start"};function yl(n,e,t){return Lt(n,ys(e,t))}function Yn(n,e){return typeof n=="function"?n(e):n}function Gn(n){return n.split("-")[0]}function Qr(n){return n.split("-")[1]}function vu(n){return n==="x"?"y":"x"}function bu(n){return n==="y"?"height":"width"}function Jr(n){return["top","bottom"].includes(Gn(n))?"y":"x"}function xu(n){return vu(Jr(n))}function Ty(n,e,t){t===void 0&&(t=!1);const s=Qr(n),r=xu(n),i=bu(r);let o=r==="x"?s===(t?"end":"start")?"right":"left":s==="start"?"bottom":"top";return e.reference[i]>e.floating[i]&&(o=ga(o)),[o,ga(o)]}function ky(n){const e=ga(n);return[vl(n),e,vl(e)]}function vl(n){return n.replace(/start|end/g,e=>wy[e])}function Ey(n,e,t){const s=["left","right"],r=["right","left"],i=["top","bottom"],o=["bottom","top"];switch(n){case"top":case"bottom":return t?e?r:s:e?s:r;case"left":case"right":return e?i:o;default:return[]}}function Cy(n,e,t,s){const r=Qr(n);let i=Ey(Gn(n),t==="start",s);return r&&(i=i.map(o=>o+"-"+r),e&&(i=i.concat(i.map(vl)))),i}function ga(n){return n.replace(/left|right|bottom|top/g,e=>xy[e])}function Sy(n){return{top:0,right:0,bottom:0,left:0,...n}}function Tp(n){return typeof n!="number"?Sy(n):{top:n,right:n,bottom:n,left:n}}function _a(n){return{...n,top:n.y,left:n.x,right:n.x+n.width,bottom:n.y+n.height}}function Bh(n,e,t){let{reference:s,floating:r}=n;const i=Jr(e),o=xu(e),a=bu(o),c=Gn(e),l=i==="y",u=s.x+s.width/2-r.width/2,h=s.y+s.height/2-r.height/2,d=s[a]/2-r[a]/2;let f;switch(c){case"top":f={x:u,y:s.y-r.height};break;case"bottom":f={x:u,y:s.y+s.height};break;case"right":f={x:s.x+s.width,y:h};break;case"left":f={x:s.x-r.width,y:h};break;default:f={x:s.x,y:s.y}}switch(Qr(e)){case"start":f[o]-=d*(t&&l?-1:1);break;case"end":f[o]+=d*(t&&l?-1:1);break}return f}const Oy=async(n,e,t)=>{const{placement:s="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:n,floating:e,strategy:r}),{x:u,y:h}=Bh(l,s,c),d=s,f={},m=0;for(let p=0;p({name:"arrow",options:n,async fn(e){const{x:t,y:s,placement:r,rects:i,platform:o,elements:a,middlewareData:c}=e,{element:l,padding:u=0}=Yn(n,e)||{};if(l==null)return{};const h=Tp(u),d={x:t,y:s},f=xu(r),m=bu(f),p=await o.getDimensions(l),g=f==="y",_=g?"top":"left",k=g?"bottom":"right",T=g?"clientHeight":"clientWidth",b=i.reference[m]+i.reference[f]-d[f]-i.floating[m],y=d[f]-i.reference[f],x=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l));let E=x?x[T]:0;(!E||!await(o.isElement==null?void 0:o.isElement(x)))&&(E=a.floating[T]||i.floating[m]);const w=b/2-y/2,C=E/2-p[m]/2-1,A=ys(h[_],C),D=ys(h[k],C),O=A,L=E-p[m]-D,j=E/2-p[m]/2+w,W=yl(O,j,L),V=!c.arrow&&Qr(r)!=null&&j!=W&&i.reference[m]/2-(jO<=0)){var C,A;const O=(((C=i.flip)==null?void 0:C.index)||0)+1,L=y[O];if(L)return{data:{index:O,overflows:w},reset:{placement:L}};let j=(A=w.filter(W=>W.overflows[0]<=0).sort((W,V)=>W.overflows[1]-V.overflows[1])[0])==null?void 0:A.placement;if(!j)switch(f){case"bestFit":{var D;const W=(D=w.map(V=>[V.placement,V.overflows.filter(U=>U>0).reduce((U,B)=>U+B,0)]).sort((V,U)=>V[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 qh(n,e){return{top:n.top-e.height,right:n.right-e.width,bottom:n.bottom-e.height,left:n.left-e.width}}function Hh(n){return by.some(e=>n[e]>=0)}const Ry=function(n){return n===void 0&&(n={}),{name:"hide",options:n,async fn(e){const{rects:t}=e,{strategy:s="referenceHidden",...r}=Yn(n,e);switch(s){case"referenceHidden":{const i=await Li(e,{...r,elementContext:"reference"}),o=qh(i,t.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:Hh(o)}}}case"escaped":{const i=await Li(e,{...r,altBoundary:!0}),o=qh(i,t.floating);return{data:{escapedOffsets:o,escaped:Hh(o)}}}default:return{}}}}};async function Dy(n,e){const{placement:t,platform:s,elements:r}=n,i=await(s.isRTL==null?void 0:s.isRTL(r.floating)),o=Gn(t),a=Qr(t),c=Jr(t)==="y",l=["left","top"].includes(o)?-1:1,u=i&&c?-1:1,h=Yn(e,n);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 Py=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(e){var t,s;const{x:r,y:i,placement:o,middlewareData:a}=e,c=await Dy(e,n);return o===((t=a.offset)==null?void 0:t.placement)&&(s=a.arrow)!=null&&s.alignmentOffset?{}:{x:r+c.x,y:i+c.y,data:{...c,placement:o}}}}},My=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(e){const{x:t,y:s,placement:r}=e,{mainAxis:i=!0,crossAxis:o=!1,limiter:a={fn:g=>{let{x:_,y:k}=g;return{x:_,y:k}}},...c}=Yn(n,e),l={x:t,y:s},u=await Li(e,c),h=Jr(Gn(r)),d=vu(h);let f=l[d],m=l[h];if(i){const g=d==="y"?"top":"left",_=d==="y"?"bottom":"right",k=f+u[g],T=f-u[_];f=yl(k,f,T)}if(o){const g=h==="y"?"top":"left",_=h==="y"?"bottom":"right",k=m+u[g],T=m-u[_];m=yl(k,m,T)}const p=a.fn({...e,[d]:f,[h]:m});return{...p,data:{x:p.x-t,y:p.y-s}}}}},Ny=function(n){return n===void 0&&(n={}),{options:n,fn(e){const{x:t,y:s,placement:r,rects:i,middlewareData:o}=e,{offset:a=0,mainAxis:c=!0,crossAxis:l=!0}=Yn(n,e),u={x:t,y:s},h=Jr(r),d=vu(h);let f=u[d],m=u[h];const p=Yn(a,e),g=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(c){const T=d==="y"?"height":"width",b=i.reference[d]-i.floating[T]+g.mainAxis,y=i.reference[d]+i.reference[T]-g.mainAxis;fy&&(f=y)}if(l){var _,k;const T=d==="y"?"width":"height",b=["top","left"].includes(Gn(r)),y=i.reference[h]-i.floating[T]+(b&&((_=o.offset)==null?void 0:_[h])||0)+(b?0:g.crossAxis),x=i.reference[h]+i.reference[T]+(b?0:((k=o.offset)==null?void 0:k[h])||0)-(b?g.crossAxis:0);mx&&(m=x)}return{[d]:f,[h]:m}}}},Iy=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(e){const{placement:t,rects:s,platform:r,elements:i}=e,{apply:o=()=>{},...a}=Yn(n,e),c=await Li(e,a),l=Gn(t),u=Qr(t),h=Jr(t)==="y",{width:d,height:f}=s.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],k=!e.middlewareData.shift;let T=g,b=_;if(h){const x=d-c.left-c.right;b=u||k?ys(_,x):x}else{const x=f-c.top-c.bottom;T=u||k?ys(g,x):x}if(k&&!u){const x=Lt(c.left,0),E=Lt(c.right,0),w=Lt(c.top,0),C=Lt(c.bottom,0);h?b=d-2*(x!==0||E!==0?x+E:Lt(c.left,c.right)):T=f-2*(w!==0||C!==0?w+C:Lt(c.top,c.bottom))}await o({...e,availableWidth:b,availableHeight:T});const y=await r.getDimensions(i.floating);return d!==y.width||f!==y.height?{reset:{rects:!0}}:{}}}};function bs(n){return kp(n)?(n.nodeName||"").toLowerCase():"#document"}function Vt(n){var e;return(n==null||(e=n.ownerDocument)==null?void 0:e.defaultView)||window}function ts(n){var e;return(e=(kp(n)?n.ownerDocument:n.document)||window.document)==null?void 0:e.documentElement}function kp(n){return n instanceof Node||n instanceof Vt(n).Node}function Xn(n){return n instanceof Element||n instanceof Vt(n).Element}function Sn(n){return n instanceof HTMLElement||n instanceof Vt(n).HTMLElement}function Yh(n){return typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof Vt(n).ShadowRoot}function _o(n){const{overflow:e,overflowX:t,overflowY:s,display:r}=Jt(n);return/auto|scroll|overlay|hidden|clip/.test(e+s+t)&&!["inline","contents"].includes(r)}function $y(n){return["table","td","th"].includes(bs(n))}function wu(n){const e=Tu(),t=Jt(n);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(s=>(t.willChange||"").includes(s))||["paint","layout","strict","content"].some(s=>(t.contain||"").includes(s))}function Fy(n){let e=Fr(n);for(;Sn(e)&&!hc(e);){if(wu(e))return e;e=Fr(e)}return null}function Tu(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function hc(n){return["html","body","#document"].includes(bs(n))}function Jt(n){return Vt(n).getComputedStyle(n)}function dc(n){return Xn(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.pageXOffset,scrollTop:n.pageYOffset}}function Fr(n){if(bs(n)==="html")return n;const e=n.assignedSlot||n.parentNode||Yh(n)&&n.host||ts(n);return Yh(e)?e.host:e}function Ep(n){const e=Fr(n);return hc(e)?n.ownerDocument?n.ownerDocument.body:n.body:Sn(e)&&_o(e)?e:Ep(e)}function ji(n,e,t){var s;e===void 0&&(e=[]),t===void 0&&(t=!0);const r=Ep(n),i=r===((s=n.ownerDocument)==null?void 0:s.body),o=Vt(r);return i?e.concat(o,o.visualViewport||[],_o(r)?r:[],o.frameElement&&t?ji(o.frameElement):[]):e.concat(r,ji(r,[],t))}function Cp(n){const e=Jt(n);let t=parseFloat(e.width)||0,s=parseFloat(e.height)||0;const r=Sn(n),i=r?n.offsetWidth:t,o=r?n.offsetHeight:s,a=ma(t)!==i||ma(s)!==o;return a&&(t=i,s=o),{width:t,height:s,$:a}}function ku(n){return Xn(n)?n:n.contextElement}function Ar(n){const e=ku(n);if(!Sn(e))return vs(1);const t=e.getBoundingClientRect(),{width:s,height:r,$:i}=Cp(e);let o=(i?ma(t.width):t.width)/s,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 Ly=vs(0);function Sp(n){const e=Vt(n);return!Tu()||!e.visualViewport?Ly:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function jy(n,e,t){return e===void 0&&(e=!1),!t||e&&t!==Vt(n)?!1:e}function Qs(n,e,t,s){e===void 0&&(e=!1),t===void 0&&(t=!1);const r=n.getBoundingClientRect(),i=ku(n);let o=vs(1);e&&(s?Xn(s)&&(o=Ar(s)):o=Ar(n));const a=jy(i,t,s)?Sp(i):vs(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=s&&Xn(s)?Vt(s):s;let m=d.frameElement;for(;m&&s&&f!==d;){const p=Ar(m),g=m.getBoundingClientRect(),_=Jt(m),k=g.left+(m.clientLeft+parseFloat(_.paddingLeft))*p.x,T=g.top+(m.clientTop+parseFloat(_.paddingTop))*p.y;c*=p.x,l*=p.y,u*=p.x,h*=p.y,c+=k,l+=T,m=Vt(m).frameElement}}return _a({width:u,height:h,x:c,y:l})}function zy(n){let{rect:e,offsetParent:t,strategy:s}=n;const r=Sn(t),i=ts(t);if(t===i)return e;let o={scrollLeft:0,scrollTop:0},a=vs(1);const c=vs(0);if((r||!r&&s!=="fixed")&&((bs(t)!=="body"||_o(i))&&(o=dc(t)),Sn(t))){const l=Qs(t);a=Ar(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 Vy(n){return Array.from(n.getClientRects())}function Op(n){return Qs(ts(n)).left+dc(n).scrollLeft}function Uy(n){const e=ts(n),t=dc(n),s=n.ownerDocument.body,r=Lt(e.scrollWidth,e.clientWidth,s.scrollWidth,s.clientWidth),i=Lt(e.scrollHeight,e.clientHeight,s.scrollHeight,s.clientHeight);let o=-t.scrollLeft+Op(n);const a=-t.scrollTop;return Jt(s).direction==="rtl"&&(o+=Lt(e.clientWidth,s.clientWidth)-r),{width:r,height:i,x:o,y:a}}function By(n,e){const t=Vt(n),s=ts(n),r=t.visualViewport;let i=s.clientWidth,o=s.clientHeight,a=0,c=0;if(r){i=r.width,o=r.height;const l=Tu();(!l||l&&e==="fixed")&&(a=r.offsetLeft,c=r.offsetTop)}return{width:i,height:o,x:a,y:c}}function Wy(n,e){const t=Qs(n,!0,e==="fixed"),s=t.top+n.clientTop,r=t.left+n.clientLeft,i=Sn(n)?Ar(n):vs(1),o=n.clientWidth*i.x,a=n.clientHeight*i.y,c=r*i.x,l=s*i.y;return{width:o,height:a,x:c,y:l}}function Gh(n,e,t){let s;if(e==="viewport")s=By(n,t);else if(e==="document")s=Uy(ts(n));else if(Xn(e))s=Wy(e,t);else{const r=Sp(n);s={...e,x:e.x-r.x,y:e.y-r.y}}return _a(s)}function Ap(n,e){const t=Fr(n);return t===e||!Xn(t)||hc(t)?!1:Jt(t).position==="fixed"||Ap(t,e)}function qy(n,e){const t=e.get(n);if(t)return t;let s=ji(n,[],!1).filter(a=>Xn(a)&&bs(a)!=="body"),r=null;const i=Jt(n).position==="fixed";let o=i?Fr(n):n;for(;Xn(o)&&!hc(o);){const a=Jt(o),c=wu(o);!c&&a.position==="fixed"&&(r=null),(i?!c&&!r:!c&&a.position==="static"&&!!r&&["absolute","fixed"].includes(r.position)||_o(o)&&!c&&Ap(n,o))?s=s.filter(u=>u!==o):r=a,o=Fr(o)}return e.set(n,s),s}function Hy(n){let{element:e,boundary:t,rootBoundary:s,strategy:r}=n;const o=[...t==="clippingAncestors"?qy(e,this._c):[].concat(t),s],a=o[0],c=o.reduce((l,u)=>{const h=Gh(e,u,r);return l.top=Lt(h.top,l.top),l.right=ys(h.right,l.right),l.bottom=ys(h.bottom,l.bottom),l.left=Lt(h.left,l.left),l},Gh(e,a,r));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Yy(n){return Cp(n)}function Gy(n,e,t){const s=Sn(e),r=ts(e),i=t==="fixed",o=Qs(n,!0,i,e);let a={scrollLeft:0,scrollTop:0};const c=vs(0);if(s||!s&&!i)if((bs(e)!=="body"||_o(r))&&(a=dc(e)),s){const l=Qs(e,!0,i,e);c.x=l.x+e.clientLeft,c.y=l.y+e.clientTop}else r&&(c.x=Op(r));return{x:o.left+a.scrollLeft-c.x,y:o.top+a.scrollTop-c.y,width:o.width,height:o.height}}function Xh(n,e){return!Sn(n)||Jt(n).position==="fixed"?null:e?e(n):n.offsetParent}function Rp(n,e){const t=Vt(n);if(!Sn(n))return t;let s=Xh(n,e);for(;s&&$y(s)&&Jt(s).position==="static";)s=Xh(s,e);return s&&(bs(s)==="html"||bs(s)==="body"&&Jt(s).position==="static"&&!wu(s))?t:s||Fy(n)||t}const Xy=async function(n){let{reference:e,floating:t,strategy:s}=n;const r=this.getOffsetParent||Rp,i=this.getDimensions;return{reference:Gy(e,await r(t),s),floating:{x:0,y:0,...await i(t)}}};function Zy(n){return Jt(n).direction==="rtl"}const Ky={convertOffsetParentRelativeRectToViewportRelativeRect:zy,getDocumentElement:ts,getClippingRect:Hy,getOffsetParent:Rp,getElementRects:Xy,getClientRects:Vy,getDimensions:Yy,getScale:Ar,isElement:Xn,isRTL:Zy};function Qy(n,e){let t=null,s;const r=ts(n);function i(){clearTimeout(s),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}=n.getBoundingClientRect();if(a||e(),!h||!d)return;const f=Io(u),m=Io(r.clientWidth-(l+h)),p=Io(r.clientHeight-(u+d)),g=Io(l),k={rootMargin:-f+"px "+-m+"px "+-p+"px "+-g+"px",threshold:Lt(0,ys(1,c))||1};let T=!0;function b(y){const x=y[0].intersectionRatio;if(x!==c){if(!T)return o();x?o(!1,x):s=setTimeout(()=>{o(!1,1e-7)},100)}T=!1}try{t=new IntersectionObserver(b,{...k,root:r.ownerDocument})}catch{t=new IntersectionObserver(b,k)}t.observe(n)}return o(!0),i}function Jy(n,e,t,s){s===void 0&&(s={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=s,l=ku(n),u=r||i?[...l?ji(l):[],...ji(e)]:[];u.forEach(_=>{r&&_.addEventListener("scroll",t,{passive:!0}),i&&_.addEventListener("resize",t)});const h=l&&a?Qy(l,t):null;let d=-1,f=null;o&&(f=new ResizeObserver(_=>{let[k]=_;k&&k.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?Qs(n):null;c&&g();function g(){const _=Qs(n);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 e1=(n,e,t)=>{const s=new Map,r={platform:Ky,...t},i={...r.platform,_c:s};return Oy(n,e,{...r,platform:i})},t1=n=>{function e(t){return{}.hasOwnProperty.call(t,"current")}return{name:"arrow",options:n,fn(t){const{element:s,padding:r}=typeof n=="function"?n(t):n;return s&&e(s)?s.current!=null?Wh({element:s.current,padding:r}).fn(t):{}:s?Wh({element:s,padding:r}).fn(t):{}}}};var ia=typeof document<"u"?v.useLayoutEffect:v.useEffect;function ya(n,e){if(n===e)return!0;if(typeof n!=typeof e)return!1;if(typeof n=="function"&&n.toString()===e.toString())return!0;let t,s,r;if(n&&e&&typeof n=="object"){if(Array.isArray(n)){if(t=n.length,t!=e.length)return!1;for(s=t;s--!==0;)if(!ya(n[s],e[s]))return!1;return!0}if(r=Object.keys(n),t=r.length,t!==Object.keys(e).length)return!1;for(s=t;s--!==0;)if(!{}.hasOwnProperty.call(e,r[s]))return!1;for(s=t;s--!==0;){const i=r[s];if(!(i==="_owner"&&n.$$typeof)&&!ya(n[i],e[i]))return!1}return!0}return n!==n&&e!==e}function Dp(n){return typeof window>"u"?1:(n.ownerDocument.defaultView||window).devicePixelRatio||1}function Zh(n,e){const t=Dp(n);return Math.round(e*t)/t}function Kh(n){const e=v.useRef(n);return ia(()=>{e.current=n}),e}function n1(n){n===void 0&&(n={});const{placement:e="bottom",strategy:t="absolute",middleware:s=[],platform:r,elements:{reference:i,floating:o}={},transform:a=!0,whileElementsMounted:c,open:l}=n,[u,h]=v.useState({x:0,y:0,strategy:t,placement:e,middlewareData:{},isPositioned:!1}),[d,f]=v.useState(s);ya(d,s)||f(s);const[m,p]=v.useState(null),[g,_]=v.useState(null),k=v.useCallback(V=>{V!=x.current&&(x.current=V,p(V))},[p]),T=v.useCallback(V=>{V!==E.current&&(E.current=V,_(V))},[_]),b=i||m,y=o||g,x=v.useRef(null),E=v.useRef(null),w=v.useRef(u),C=Kh(c),A=Kh(r),D=v.useCallback(()=>{if(!x.current||!E.current)return;const V={placement:e,strategy:t,middleware:d};A.current&&(V.platform=A.current),e1(x.current,E.current,V).then(U=>{const B={...U,isPositioned:!0};O.current&&!ya(w.current,B)&&(w.current=B,fu.flushSync(()=>{h(B)}))})},[d,e,t,A]);ia(()=>{l===!1&&w.current.isPositioned&&(w.current.isPositioned=!1,h(V=>({...V,isPositioned:!1})))},[l]);const O=v.useRef(!1);ia(()=>(O.current=!0,()=>{O.current=!1}),[]),ia(()=>{if(b&&(x.current=b),y&&(E.current=y),b&&y){if(C.current)return C.current(b,y,D);D()}},[b,y,D,C]);const L=v.useMemo(()=>({reference:x,floating:E,setReference:k,setFloating:T}),[k,T]),j=v.useMemo(()=>({reference:b,floating:y}),[b,y]),W=v.useMemo(()=>{const V={position:t,left:0,top:0};if(!j.floating)return V;const U=Zh(j.floating,u.x),B=Zh(j.floating,u.y);return a?{...V,transform:"translate("+U+"px, "+B+"px)",...Dp(j.floating)>=1.5&&{willChange:"transform"}}:{position:t,left:U,top:B}},[t,a,j.floating,u.x,u.y]);return v.useMemo(()=>({...u,update:D,refs:L,elements:j,floatingStyles:W}),[u,D,L,j,W])}function s1(n){let e;const t=new Set,s=(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:s,getState:r,subscribe:(l,u,h)=>u||h?i(l,u,h):(t.add(l),()=>t.delete(l)),destroy:()=>t.clear()};return e=n(s,r,c),c}const r1=typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),Qh=r1?v.useEffect:v.useLayoutEffect;function i1(n){const e=typeof n=="function"?s1(n):n,t=(s=e.getState,r=Object.is)=>{const[,i]=v.useReducer(g=>g+1,0),o=e.getState(),a=v.useRef(o),c=v.useRef(s),l=v.useRef(r),u=v.useRef(!1),h=v.useRef();h.current===void 0&&(h.current=s(o));let d,f=!1;(a.current!==o||c.current!==s||l.current!==r||u.current)&&(d=s(o),f=!r(h.current,d)),Qh(()=>{f&&(h.current=d),a.current=o,c.current=s,l.current=r,u.current=!1});const m=v.useRef(o);Qh(()=>{const g=()=>{try{const k=e.getState(),T=c.current(k);l.current(h.current,T)||(a.current=k,h.current=T,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 s=[t,e];return{next(){const r=s.length<=0;return{value:s.shift(),done:r}}}},t}let li=0;const o1=i1(n=>(No.onStart=(e,t,s)=>{n({active:!0,item:e,loaded:t,total:s,progress:(t-li)/(s-li)*100})},No.onLoad=()=>{n({active:!1})},No.onError=e=>n(t=>({errors:[...t.errors,e]})),No.onProgress=(e,t,s)=>{t===s&&(li=s),n({active:!0,item:e,loaded:t,total:s,progress:(t-li)/(s-li)*100||100})},{errors:[],active:!1,progress:0,item:"",loaded:0,total:0})),a1=n=>`Loading ${n.toFixed(2)}%`;function c1({containerStyles:n,innerStyles:e,barStyles:t,dataStyles:s,dataInterpolation:r=a1,initialState:i=o=>o}){const{active:o,progress:a}=o1(),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:{...$o.container,opacity:o?1:0,...n}},v.createElement("div",null,v.createElement("div",{style:{...$o.inner,...e}},v.createElement("div",{style:{...$o.bar,transform:`scaleX(${a/100})`,...t}}),v.createElement("span",{ref:u,style:{...$o.data,...s}})))):null}const $o={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"}},Vc=new sy,Uc=new ye,pr=new ye,rn=new ye,Nn=new ye,vn=new ye,In=new ye,$n=new ye,ui=new ye,hi=new ye,di=new ye,Fo=new ye,fi=new ye,pi=new ye,mi=new ye;class l1{constructor(e,t,s){this.camera=e,this.scene=t,this.startPoint=new ye,this.endPoint=new ye,this.collection=[],this.deep=s||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(Vc,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){pr.copy(e),pr.x=Math.min(e.x,t.x),pr.y=Math.max(e.y,t.y),t.x=Math.max(e.x,t.x),t.y=Math.min(e.y,t.y),rn.setFromMatrixPosition(this.camera.matrixWorld),Nn.copy(pr),vn.set(t.x,pr.y,0),In.copy(t),$n.set(pr.x,t.y,0),Nn.unproject(this.camera),vn.unproject(this.camera),In.unproject(this.camera),$n.unproject(this.camera),fi.copy(Nn).sub(rn),pi.copy(vn).sub(rn),mi.copy(In).sub(rn),fi.normalize(),pi.normalize(),mi.normalize(),fi.multiplyScalar(this.deep),pi.multiplyScalar(this.deep),mi.multiplyScalar(this.deep),fi.add(rn),pi.add(rn),mi.add(rn);var s=Vc.planes;s[0].setFromCoplanarPoints(rn,Nn,vn),s[1].setFromCoplanarPoints(rn,vn,In),s[2].setFromCoplanarPoints(In,$n,rn),s[3].setFromCoplanarPoints($n,Nn,rn),s[4].setFromCoplanarPoints(vn,In,$n),s[5].setFromCoplanarPoints(mi,pi,fi),s[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);Nn.set(r,i,-1),vn.set(o,i,-1),In.set(o,a,-1),$n.set(r,a,-1),ui.set(r,i,1),hi.set(o,i,1),di.set(o,a,1),Fo.set(r,a,1),Nn.unproject(this.camera),vn.unproject(this.camera),In.unproject(this.camera),$n.unproject(this.camera),ui.unproject(this.camera),hi.unproject(this.camera),di.unproject(this.camera),Fo.unproject(this.camera);var s=Vc.planes;s[0].setFromCoplanarPoints(Nn,ui,hi),s[1].setFromCoplanarPoints(vn,hi,di),s[2].setFromCoplanarPoints(di,Fo,$n),s[3].setFromCoplanarPoints(Fo,ui,Nn),s[4].setFromCoplanarPoints(vn,In,$n),s[5].setFromCoplanarPoints(di,hi,ui),s[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(),Uc.copy(t.geometry.boundingSphere.center),Uc.applyMatrix4(t.matrixWorld),e.containsPoint(Uc)&&this.collection.push(t)),t.children.length>0)for(let s=0;s0?X.copy(O[O.length-1]):X.identity())}function r(F){const z=new Ms,S=new ke,I=new ke,Y=new ke;let $=!0,q=!1;const re=F.getAttribute("d").match(/[a-df-z][^a-df-z]*/gi);for(let ie=0,ne=re.length;ie0&&(S.copy(Y),z.currentPath.currentPoint.copy(S),$=!0);break;default:console.warn(ge)}q=!1}return z}function i(F){if(!(!F.sheet||!F.sheet.cssRules||!F.sheet.cssRules.length))for(let z=0;zY.trim());for(let Y=0;Y1){const os=Math.sqrt(Q);z=os*z,S=os*S,te=z*z,H=S*S}const se=te*R+H*P,le=(te*H-se)/se;let be=Math.sqrt(Math.max(0,le));Y===$&&(be=-be);const et=be*z*ge/S,ee=-be*S*ne/z,fe=Math.cos(I)*et-Math.sin(I)*ee+(q.x+oe.x)/2,tt=Math.sin(I)*et+Math.cos(I)*ee+(q.y+oe.y)/2,at=a(1,0,(ne-et)/z,(ge-ee)/S),$t=a((ne-et)/z,(ge-ee)/S,(-ne-et)/z,(-ge-ee)/S)%(Math.PI*2);F.currentPath.absellipse(fe,tt,z,S,at,at+$t,$===0,I)}function a(F,z,S,I){const Y=F*S+z*I,$=Math.sqrt(F*F+z*z)*Math.sqrt(S*S+I*I);let q=Math.acos(Math.max(-1,Math.min(1,Y/$)));return F*I-z*S<0&&(q=-q),q}function c(F){const z=T(F.getAttribute("x")||0),S=T(F.getAttribute("y")||0),I=T(F.getAttribute("rx")||F.getAttribute("ry")||0),Y=T(F.getAttribute("ry")||F.getAttribute("rx")||0),$=T(F.getAttribute("width")),q=T(F.getAttribute("height")),oe=1-.551915024494,re=new Ms;return re.moveTo(z+I,S),re.lineTo(z+$-I,S),(I!==0||Y!==0)&&re.bezierCurveTo(z+$-I*oe,S,z+$,S+Y*oe,z+$,S+Y),re.lineTo(z+$,S+q-Y),(I!==0||Y!==0)&&re.bezierCurveTo(z+$,S+q-Y*oe,z+$-I*oe,S+q,z+$-I,S+q),re.lineTo(z+I,S+q),(I!==0||Y!==0)&&re.bezierCurveTo(z+I*oe,S+q,z,S+q-Y*oe,z,S+q-Y),re.lineTo(z,S+Y),(I!==0||Y!==0)&&re.bezierCurveTo(z,S+Y*oe,z+I*oe,S,z+I,S),re}function l(F){function z($,q,oe){const re=T(q),ie=T(oe);Y===0?I.moveTo(re,ie):I.lineTo(re,ie),Y++}const S=/(-?[\d\.?]+)[,|\s](-?[\d\.?]+)/g,I=new Ms;let Y=0;return F.getAttribute("points").replace(S,z),I.currentPath.autoClose=!0,I}function u(F){function z($,q,oe){const re=T(q),ie=T(oe);Y===0?I.moveTo(re,ie):I.lineTo(re,ie),Y++}const S=/(-?[\d\.?]+)[,|\s](-?[\d\.?]+)/g,I=new Ms;let Y=0;return F.getAttribute("points").replace(S,z),I.currentPath.autoClose=!1,I}function h(F){const z=T(F.getAttribute("cx")||0),S=T(F.getAttribute("cy")||0),I=T(F.getAttribute("r")||0),Y=new zc;Y.absarc(z,S,I,0,Math.PI*2);const $=new Ms;return $.subPaths.push(Y),$}function d(F){const z=T(F.getAttribute("cx")||0),S=T(F.getAttribute("cy")||0),I=T(F.getAttribute("rx")||0),Y=T(F.getAttribute("ry")||0),$=new zc;$.absellipse(z,S,I,Y,0,Math.PI*2);const q=new Ms;return q.subPaths.push($),q}function f(F){const z=T(F.getAttribute("x1")||0),S=T(F.getAttribute("y1")||0),I=T(F.getAttribute("x2")||0),Y=T(F.getAttribute("y2")||0),$=new Ms;return $.moveTo(z,S),$.lineTo(I,Y),$.currentPath.autoClose=!1,$}function m(F,z){z=Object.assign({},z);let S={};if(F.hasAttribute("class")){const q=F.getAttribute("class").split(/\s/).filter(Boolean).map(oe=>oe.trim());for(let oe=0;oe0&&z.premultiply(O[O.length-1]),X.copy(z),O.push(z),z}function y(F){const z=new fr,S=L;if(F.nodeName==="use"&&(F.hasAttribute("x")||F.hasAttribute("y"))){const I=T(F.getAttribute("x")),Y=T(F.getAttribute("y"));z.translate(I,Y)}if(F.hasAttribute("transform")){const I=F.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 ge=ne;ie.length>=2&&(ge=ie[1]),S.translate(ne,ge)}break;case"rotate":if(ie.length>=1){let ne=0,ge=0,te=0;ne=-ie[0]*Math.PI/180,ie.length>=3&&(ge=ie[1],te=ie[2]),j.identity().translate(-ge,-te),W.identity().rotate(ne),V.multiplyMatrices(W,j),j.identity().translate(ge,te),S.multiplyMatrices(j,V)}break;case"scale":if(ie.length>=1){const ne=ie[0];let ge=ne;ie.length>=2&&(ge=ie[1]),S.scale(ne,ge)}break;case"skewX":ie.length===1&&S.set(1,Math.tan(ie[0]*Math.PI/180),0,0,1,0,0,0,1);break;case"skewY":ie.length===1&&S.set(1,0,0,Math.tan(ie[0]*Math.PI/180),1,0,0,0,1);break;case"matrix":ie.length===6&&S.set(ie[0],ie[2],ie[4],ie[1],ie[3],ie[5],0,0,1);break}}z.premultiply(S)}}return z}function x(F,z){function S($){B.set($.x,$.y,1).applyMatrix3(z),$.set(B.x,B.y)}const I=E(z),Y=F.subPaths;for(let $=0,q=Y.length;$=1||V<0||V>1)return null;if(O===0&&j===0){for(let U=0;U<2;U++)if(o(U===0?k:T,g,_),r.loc==s.ORIGIN){const B=U===0?k:T;return{x:B.x,y:B.y,t:r.t}}else if(r.loc==s.BETWEEN){const B=+(b+r.t*(y-b)).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?k:T,g,_),r.loc==s.ORIGIN){const K=X===0?k:T;return{x:K.x,y:K.y,t:r.t}}const U=+(b+W*(y-b)).toPrecision(10),B=+(w+W*(C-w)).toPrecision(10);return{x:U,y:B,t:W}}}function o(g,_,k){const T=k.x-_.x,b=k.y-_.y,y=g.x-_.x,x=g.y-_.y,E=T*x-y*b;if(g.x===_.x&&g.y===_.y){r.loc=s.ORIGIN,r.t=0;return}if(g.x===k.x&&g.y===k.y){r.loc=s.DESTINATION,r.t=1;return}if(E<-Number.EPSILON){r.loc=s.LEFT;return}if(E>Number.EPSILON){r.loc=s.RIGHT;return}if(T*y<0||b*x<0){r.loc=s.BEHIND;return}if(Math.sqrt(T*T+b*b)D.t<=A.t+Number.EPSILON&&D.t>=A.t-Number.EPSILON)===void 0&&(k.push(A),T.push(new ke(A.x,A.y)))}}return T}function c(g,_,k){const T=new ke;_.getCenter(T);const b=[];return k.forEach(y=>{y.boundingBox.containsPoint(T)&&a(g,y.points).forEach(E=>{b.push({identifier:y.identifier,isCW:y.isCW,point:E})})}),b.sort((y,x)=>y.point.x-x.point.x),b}function l(g,_,k,T,b){(b==null||b==="")&&(b="nonzero");const y=new ke;g.boundingBox.getCenter(y);const x=[new ke(k,y.y),new ke(T,y.y)],E=c(x,g.boundingBox,_);E.sort((L,j)=>L.point.x-j.point.x);const w=[],C=[];E.forEach(L=>{L.identifier===g.identifier?w.push(L):C.push(L)});const A=w[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),b==="evenodd"){const L=D.length%2===0,j=D[D.length-2];return{identifier:g.identifier,isHole:L,for:j}}else if(b==="nonzero"){let L=!0,j=null,W=null;for(let V=0;V{const _=g.getPoints();let k=-999999999,T=999999999,b=-999999999,y=999999999;for(let x=0;x<_.length;x++){const E=_[x];E.y>k&&(k=E.y),E.yb&&(b=E.x),E.x=y&&(h=y-1),{curves:g.curves,points:_,isCW:oy.isClockWise(_),identifier:u++,boundingBox:new ay(new ke(y,T),new ke(b,k))}});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 k=new vp;k.curves=g.curves,m.filter(b=>b.isHole&&b.for===g.identifier).forEach(b=>{const y=f[b.identifier],x=new zc;x.curves=y.curves,k.holes.push(x)}),p.push(k)}}),p}static getStrokeStyle(e,t,s,r,i){return e=e!==void 0?e:1,t=t!==void 0?t:"#000",s=s!==void 0?s:"miter",r=r!==void 0?r:"butt",i=i!==void 0?i:4,{strokeColor:t,strokeWidth:e,strokeLineJoin:s,strokeLineCap:r,strokeMiterLimit:i}}static pointsToStroke(e,t,s,r){const i=[],o=[],a=[];if(Ai.pointsToStrokeWithBuffers(e,t,s,r,i,o,a)===0)return null;const c=new cy;return c.setAttribute("position",new ra(i,3)),c.setAttribute("normal",new ra(o,3)),c.setAttribute("uv",new ra(a,2)),c}static pointsToStrokeWithBuffers(e,t,s,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,k=new ke,T=new ke,b=new ke,y=new ke,x=new ke,E=new ke,w=new ke,C=new ke;s=s!==void 0?s:12,r=r!==void 0?r:.001,c=c!==void 0?c:0,e=ge(e);const A=e.length;if(A<2)return 0;const D=e[0].equals(e[A-1]);let O,L=e[0],j;const W=t.strokeWidth/2,V=1/(A-1);let U=0,B,X,K,J,F=!1,z=0,S=c*3,I=c*2;Y(e[0],e[1],l).multiplyScalar(W),g.copy(e[0]).sub(l),_.copy(e[0]).add(l),k.copy(g),T.copy(_);for(let te=1;te=r&&P.push(te[R]);return P.push(te[te.length-1]),P}}}function u1(n,e){if(Object.is(n,e))return!0;if(typeof n!="object"||n===null||typeof e!="object"||e===null)return!1;const t=Object.keys(n);if(t.length!==Object.keys(e).length)return!1;for(let s=0;sc,...a}){const{setEvents:c,camera:l,raycaster:u,gl:h,controls:d,size:f,get:m}=Ye(),[p,g]=v.useState(!1),[_,k]=v.useReducer((x,{object:E,shift:w})=>E===void 0?[]:Array.isArray(E)?E:w?x.includes(E)?x.filter(C=>C!==E):[E,...x]:x[0]===E?[]:[E],[]);v.useEffect(()=>void(s==null?void 0:s(_)),[_]);const T=v.useCallback(x=>{x.stopPropagation(),k({object:o([x.object])[0],shift:e&&x.shiftKey})},[]),b=v.useCallback(x=>!p&&k({}),[p]),y=v.useRef(null);return v.useEffect(()=>{if(!n||!e)return;const x=new l1(l,y.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,A=new ke,D=m().events.enabled,O=d==null?void 0:d.enabled;let L=!1;function j(F,z){const{offsetX:S,offsetY:I}=F,{width:Y,height:$}=f;z.set(S/Y*2-1,-(I/$)*2+1)}function W(F){var z;d&&(d.enabled=!1),c({enabled:!1}),L=!0,(z=h.domElement.parentElement)==null||z.appendChild(E),E.style.left=`${F.clientX}px`,E.style.top=`${F.clientY}px`,E.style.width="0px",E.style.height="0px",w.x=F.clientX,w.y=F.clientY}function V(F){A.x=Math.max(w.x,F.clientX),A.y=Math.max(w.y,F.clientY),C.x=Math.min(w.x,F.clientX),C.y=Math.min(w.y,F.clientY),E.style.left=`${C.x}px`,E.style.top=`${C.y}px`,E.style.width=`${A.x-C.x}px`,E.style.height=`${A.y-C.y}px`}function U(){if(L){var F;d&&(d.enabled=O),c({enabled:D}),L=!1,(F=E.parentElement)==null||F.removeChild(E)}}function B(F){F.shiftKey&&(W(F),j(F,x.startPoint))}let X=[];function K(F){if(L){V(F),j(F,x.endPoint);const z=x.select().sort(S=>S.uuid).filter(S=>S.isMesh);u1(z,X)||(X=z,k({object:o(z)}))}}function J(F){L&&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",Se({ref:y,onClick:T,onPointerOver:()=>g(!0),onPointerOut:()=>g(!1),onPointerMissed:b},a),v.createElement(h1.Provider,{value:_},t))}const Eu=v.forwardRef(function({follow:e=!0,lockX:t=!1,lockY:s=!1,lockZ:r=!1,...i},o){const a=v.useRef();return nn(({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),s&&(a.current.rotation.y=l.y),r&&(a.current.rotation.z=l.z)}),v.createElement("group",Se({ref:ic([a,o])},i))}),Jh=n=>n===Object(n)&&!Array.isArray(n)&&typeof n!="function";function Bs(n,e){const t=Ye(r=>r.gl),s=oc(lc,Jh(n)?Object.values(n):n);if(v.useLayoutEffect(()=>{e==null||e(s)},[e]),v.useEffect(()=>{(Array.isArray(s)?s:[s]).forEach(t.initTexture)},[t,s]),Jh(n)){const r=Object.keys(n),i={};return r.forEach(o=>Object.assign(i,{[o]:s[r.indexOf(o)]})),i}else return s}Bs.preload=n=>oc.preload(lc,n);Bs.clear=n=>oc.clear(lc,n);const f1=v.forwardRef(function({src:e,skipFill:t,skipStrokes:s,fillMaterial:r,strokeMaterial:i,fillMeshProps:o,strokeMeshProps:a,...c},l){const u=oc(Ai,e.startsWith("s?[]: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,s]);return v.useEffect(()=>()=>h.forEach(d=>d&&d.map(f=>f.dispose())),[h]),v.createElement("object3D",Se({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",Se({key:_},o),v.createElement("shapeGeometry",{args:[g]}),v.createElement("meshBasicMaterial",Se({color:d.userData.style.fill,opacity:d.userData.style.fillOpacity,transparent:!0,side:fa,depthWrite:!1},r)))),!s&&((p=d.userData)==null?void 0:p.style.stroke)!==void 0&&d.userData.style.stroke!=="none"&&d.subPaths.map((g,_)=>v.createElement("mesh",Se({key:_,geometry:h[f][_]},a),v.createElement("meshBasicMaterial",Se({color:d.userData.style.stroke,opacity:d.userData.style.strokeOpacity,transparent:!0,side:fa,depthWrite:!1},i)))))})))});/*! +import{r as v,U as fu,G as Se,j as M,R as lp,a2 as N_,x as N,a3 as I_,c as up,s as ve,a as ae,F as Fe,B as hp,u as Wt,g as dp,b as rc,d as Ih,T as fp,n as Hn,a4 as pu,a5 as $_,a6 as F_,o as $r,a7 as L_,C as j_,a0 as $h,t as z_,a8 as V_,a9 as Fh}from"./index-2353781d.js";import{u as Ye,a as nn,m as ic,b as oc,e as mu,L as gu,c as U_,d as B_,q as W_,f as q_,A as Lh,H as H_,E as Y_,g as pp,T as _u,h as yu,t as ha,i as ac,N as da,I as cc,P as G_,C as X_,j as Z_,k as mp,l as jh,n as zh,o as K_}from"./index-964e9ac6.js";import{P as Ee,C as Q_}from"./VolumeIcon-750bd7e3.js";import{f as As,e as Ue,g as gp,h as _p,O as J_}from"./index-068043a5.js";import{T as ey}from"./TextareaAutosize-c42da1c8.js";import{D as No,F as ty,V as ye,L as ny,a as sy,M as fr,b as ke,S as ry,B as iy,c as yp,P as zc,d as oy,e as ra,f as Ms,T as lc,g as fa,h as ay,i as Vh,G as cy,C as pa,j as ly,k as go,Q as uy,l as vp,W as hy,m as dy,n as fy,E as py,o as my,p as uc,q as Uh,r as bp,s as xp}from"./three.module-71ec604c.js";import{T as gy}from"./index-33375362.js";import{C as _y}from"./ClipLoader-c90857c8.js";import{E as yy}from"./VisibilityOn-aa220caf.js";import"./SourcesTableIcon-54a999e3.js";import"./NodeCircleIcon-6e372d93.js";import"./SoundIcon-a0618346.js";import"./CheckIcon-bcbb5853.js";import"./DeleteNodeIcon-be8a9a17.js";import"./EditNodeIcon-665ec0f5.js";import"./SearchIcon-3c9f4418.js";import"./SucessFeedBackIcon-edca1d93.js";const vy=["top","right","bottom","left"],ys=Math.min,Lt=Math.max,ma=Math.round,Io=Math.floor,vs=n=>({x:n,y:n}),by={left:"right",right:"left",bottom:"top",top:"bottom"},xy={start:"end",end:"start"};function yl(n,e,t){return Lt(n,ys(e,t))}function Yn(n,e){return typeof n=="function"?n(e):n}function Gn(n){return n.split("-")[0]}function Qr(n){return n.split("-")[1]}function vu(n){return n==="x"?"y":"x"}function bu(n){return n==="y"?"height":"width"}function Jr(n){return["top","bottom"].includes(Gn(n))?"y":"x"}function xu(n){return vu(Jr(n))}function wy(n,e,t){t===void 0&&(t=!1);const s=Qr(n),r=xu(n),i=bu(r);let o=r==="x"?s===(t?"end":"start")?"right":"left":s==="start"?"bottom":"top";return e.reference[i]>e.floating[i]&&(o=ga(o)),[o,ga(o)]}function Ty(n){const e=ga(n);return[vl(n),e,vl(e)]}function vl(n){return n.replace(/start|end/g,e=>xy[e])}function ky(n,e,t){const s=["left","right"],r=["right","left"],i=["top","bottom"],o=["bottom","top"];switch(n){case"top":case"bottom":return t?e?r:s:e?s:r;case"left":case"right":return e?i:o;default:return[]}}function Ey(n,e,t,s){const r=Qr(n);let i=ky(Gn(n),t==="start",s);return r&&(i=i.map(o=>o+"-"+r),e&&(i=i.concat(i.map(vl)))),i}function ga(n){return n.replace(/left|right|bottom|top/g,e=>by[e])}function Cy(n){return{top:0,right:0,bottom:0,left:0,...n}}function wp(n){return typeof n!="number"?Cy(n):{top:n,right:n,bottom:n,left:n}}function _a(n){return{...n,top:n.y,left:n.x,right:n.x+n.width,bottom:n.y+n.height}}function Bh(n,e,t){let{reference:s,floating:r}=n;const i=Jr(e),o=xu(e),a=bu(o),c=Gn(e),l=i==="y",u=s.x+s.width/2-r.width/2,h=s.y+s.height/2-r.height/2,d=s[a]/2-r[a]/2;let f;switch(c){case"top":f={x:u,y:s.y-r.height};break;case"bottom":f={x:u,y:s.y+s.height};break;case"right":f={x:s.x+s.width,y:h};break;case"left":f={x:s.x-r.width,y:h};break;default:f={x:s.x,y:s.y}}switch(Qr(e)){case"start":f[o]-=d*(t&&l?-1:1);break;case"end":f[o]+=d*(t&&l?-1:1);break}return f}const Sy=async(n,e,t)=>{const{placement:s="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:n,floating:e,strategy:r}),{x:u,y:h}=Bh(l,s,c),d=s,f={},m=0;for(let p=0;p({name:"arrow",options:n,async fn(e){const{x:t,y:s,placement:r,rects:i,platform:o,elements:a,middlewareData:c}=e,{element:l,padding:u=0}=Yn(n,e)||{};if(l==null)return{};const h=wp(u),d={x:t,y:s},f=xu(r),m=bu(f),p=await o.getDimensions(l),g=f==="y",_=g?"top":"left",k=g?"bottom":"right",T=g?"clientHeight":"clientWidth",b=i.reference[m]+i.reference[f]-d[f]-i.floating[m],y=d[f]-i.reference[f],x=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l));let E=x?x[T]:0;(!E||!await(o.isElement==null?void 0:o.isElement(x)))&&(E=a.floating[T]||i.floating[m]);const w=b/2-y/2,C=E/2-p[m]/2-1,A=ys(h[_],C),D=ys(h[k],C),O=A,L=E-p[m]-D,j=E/2-p[m]/2+w,W=yl(O,j,L),V=!c.arrow&&Qr(r)!=null&&j!=W&&i.reference[m]/2-(jO<=0)){var C,A;const O=(((C=i.flip)==null?void 0:C.index)||0)+1,L=y[O];if(L)return{data:{index:O,overflows:w},reset:{placement:L}};let j=(A=w.filter(W=>W.overflows[0]<=0).sort((W,V)=>W.overflows[1]-V.overflows[1])[0])==null?void 0:A.placement;if(!j)switch(f){case"bestFit":{var D;const W=(D=w.map(V=>[V.placement,V.overflows.filter(U=>U>0).reduce((U,B)=>U+B,0)]).sort((V,U)=>V[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 qh(n,e){return{top:n.top-e.height,right:n.right-e.width,bottom:n.bottom-e.height,left:n.left-e.width}}function Hh(n){return vy.some(e=>n[e]>=0)}const Ay=function(n){return n===void 0&&(n={}),{name:"hide",options:n,async fn(e){const{rects:t}=e,{strategy:s="referenceHidden",...r}=Yn(n,e);switch(s){case"referenceHidden":{const i=await Li(e,{...r,elementContext:"reference"}),o=qh(i,t.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:Hh(o)}}}case"escaped":{const i=await Li(e,{...r,altBoundary:!0}),o=qh(i,t.floating);return{data:{escapedOffsets:o,escaped:Hh(o)}}}default:return{}}}}};async function Ry(n,e){const{placement:t,platform:s,elements:r}=n,i=await(s.isRTL==null?void 0:s.isRTL(r.floating)),o=Gn(t),a=Qr(t),c=Jr(t)==="y",l=["left","top"].includes(o)?-1:1,u=i&&c?-1:1,h=Yn(e,n);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 Dy=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(e){var t,s;const{x:r,y:i,placement:o,middlewareData:a}=e,c=await Ry(e,n);return o===((t=a.offset)==null?void 0:t.placement)&&(s=a.arrow)!=null&&s.alignmentOffset?{}:{x:r+c.x,y:i+c.y,data:{...c,placement:o}}}}},Py=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(e){const{x:t,y:s,placement:r}=e,{mainAxis:i=!0,crossAxis:o=!1,limiter:a={fn:g=>{let{x:_,y:k}=g;return{x:_,y:k}}},...c}=Yn(n,e),l={x:t,y:s},u=await Li(e,c),h=Jr(Gn(r)),d=vu(h);let f=l[d],m=l[h];if(i){const g=d==="y"?"top":"left",_=d==="y"?"bottom":"right",k=f+u[g],T=f-u[_];f=yl(k,f,T)}if(o){const g=h==="y"?"top":"left",_=h==="y"?"bottom":"right",k=m+u[g],T=m-u[_];m=yl(k,m,T)}const p=a.fn({...e,[d]:f,[h]:m});return{...p,data:{x:p.x-t,y:p.y-s}}}}},My=function(n){return n===void 0&&(n={}),{options:n,fn(e){const{x:t,y:s,placement:r,rects:i,middlewareData:o}=e,{offset:a=0,mainAxis:c=!0,crossAxis:l=!0}=Yn(n,e),u={x:t,y:s},h=Jr(r),d=vu(h);let f=u[d],m=u[h];const p=Yn(a,e),g=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(c){const T=d==="y"?"height":"width",b=i.reference[d]-i.floating[T]+g.mainAxis,y=i.reference[d]+i.reference[T]-g.mainAxis;fy&&(f=y)}if(l){var _,k;const T=d==="y"?"width":"height",b=["top","left"].includes(Gn(r)),y=i.reference[h]-i.floating[T]+(b&&((_=o.offset)==null?void 0:_[h])||0)+(b?0:g.crossAxis),x=i.reference[h]+i.reference[T]+(b?0:((k=o.offset)==null?void 0:k[h])||0)-(b?g.crossAxis:0);mx&&(m=x)}return{[d]:f,[h]:m}}}},Ny=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(e){const{placement:t,rects:s,platform:r,elements:i}=e,{apply:o=()=>{},...a}=Yn(n,e),c=await Li(e,a),l=Gn(t),u=Qr(t),h=Jr(t)==="y",{width:d,height:f}=s.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],k=!e.middlewareData.shift;let T=g,b=_;if(h){const x=d-c.left-c.right;b=u||k?ys(_,x):x}else{const x=f-c.top-c.bottom;T=u||k?ys(g,x):x}if(k&&!u){const x=Lt(c.left,0),E=Lt(c.right,0),w=Lt(c.top,0),C=Lt(c.bottom,0);h?b=d-2*(x!==0||E!==0?x+E:Lt(c.left,c.right)):T=f-2*(w!==0||C!==0?w+C:Lt(c.top,c.bottom))}await o({...e,availableWidth:b,availableHeight:T});const y=await r.getDimensions(i.floating);return d!==y.width||f!==y.height?{reset:{rects:!0}}:{}}}};function bs(n){return Tp(n)?(n.nodeName||"").toLowerCase():"#document"}function Vt(n){var e;return(n==null||(e=n.ownerDocument)==null?void 0:e.defaultView)||window}function ts(n){var e;return(e=(Tp(n)?n.ownerDocument:n.document)||window.document)==null?void 0:e.documentElement}function Tp(n){return n instanceof Node||n instanceof Vt(n).Node}function Xn(n){return n instanceof Element||n instanceof Vt(n).Element}function Sn(n){return n instanceof HTMLElement||n instanceof Vt(n).HTMLElement}function Yh(n){return typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof Vt(n).ShadowRoot}function _o(n){const{overflow:e,overflowX:t,overflowY:s,display:r}=Jt(n);return/auto|scroll|overlay|hidden|clip/.test(e+s+t)&&!["inline","contents"].includes(r)}function Iy(n){return["table","td","th"].includes(bs(n))}function wu(n){const e=Tu(),t=Jt(n);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(s=>(t.willChange||"").includes(s))||["paint","layout","strict","content"].some(s=>(t.contain||"").includes(s))}function $y(n){let e=Fr(n);for(;Sn(e)&&!hc(e);){if(wu(e))return e;e=Fr(e)}return null}function Tu(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function hc(n){return["html","body","#document"].includes(bs(n))}function Jt(n){return Vt(n).getComputedStyle(n)}function dc(n){return Xn(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.pageXOffset,scrollTop:n.pageYOffset}}function Fr(n){if(bs(n)==="html")return n;const e=n.assignedSlot||n.parentNode||Yh(n)&&n.host||ts(n);return Yh(e)?e.host:e}function kp(n){const e=Fr(n);return hc(e)?n.ownerDocument?n.ownerDocument.body:n.body:Sn(e)&&_o(e)?e:kp(e)}function ji(n,e,t){var s;e===void 0&&(e=[]),t===void 0&&(t=!0);const r=kp(n),i=r===((s=n.ownerDocument)==null?void 0:s.body),o=Vt(r);return i?e.concat(o,o.visualViewport||[],_o(r)?r:[],o.frameElement&&t?ji(o.frameElement):[]):e.concat(r,ji(r,[],t))}function Ep(n){const e=Jt(n);let t=parseFloat(e.width)||0,s=parseFloat(e.height)||0;const r=Sn(n),i=r?n.offsetWidth:t,o=r?n.offsetHeight:s,a=ma(t)!==i||ma(s)!==o;return a&&(t=i,s=o),{width:t,height:s,$:a}}function ku(n){return Xn(n)?n:n.contextElement}function Ar(n){const e=ku(n);if(!Sn(e))return vs(1);const t=e.getBoundingClientRect(),{width:s,height:r,$:i}=Ep(e);let o=(i?ma(t.width):t.width)/s,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 Fy=vs(0);function Cp(n){const e=Vt(n);return!Tu()||!e.visualViewport?Fy:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Ly(n,e,t){return e===void 0&&(e=!1),!t||e&&t!==Vt(n)?!1:e}function Qs(n,e,t,s){e===void 0&&(e=!1),t===void 0&&(t=!1);const r=n.getBoundingClientRect(),i=ku(n);let o=vs(1);e&&(s?Xn(s)&&(o=Ar(s)):o=Ar(n));const a=Ly(i,t,s)?Cp(i):vs(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=s&&Xn(s)?Vt(s):s;let m=d.frameElement;for(;m&&s&&f!==d;){const p=Ar(m),g=m.getBoundingClientRect(),_=Jt(m),k=g.left+(m.clientLeft+parseFloat(_.paddingLeft))*p.x,T=g.top+(m.clientTop+parseFloat(_.paddingTop))*p.y;c*=p.x,l*=p.y,u*=p.x,h*=p.y,c+=k,l+=T,m=Vt(m).frameElement}}return _a({width:u,height:h,x:c,y:l})}function jy(n){let{rect:e,offsetParent:t,strategy:s}=n;const r=Sn(t),i=ts(t);if(t===i)return e;let o={scrollLeft:0,scrollTop:0},a=vs(1);const c=vs(0);if((r||!r&&s!=="fixed")&&((bs(t)!=="body"||_o(i))&&(o=dc(t)),Sn(t))){const l=Qs(t);a=Ar(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 zy(n){return Array.from(n.getClientRects())}function Sp(n){return Qs(ts(n)).left+dc(n).scrollLeft}function Vy(n){const e=ts(n),t=dc(n),s=n.ownerDocument.body,r=Lt(e.scrollWidth,e.clientWidth,s.scrollWidth,s.clientWidth),i=Lt(e.scrollHeight,e.clientHeight,s.scrollHeight,s.clientHeight);let o=-t.scrollLeft+Sp(n);const a=-t.scrollTop;return Jt(s).direction==="rtl"&&(o+=Lt(e.clientWidth,s.clientWidth)-r),{width:r,height:i,x:o,y:a}}function Uy(n,e){const t=Vt(n),s=ts(n),r=t.visualViewport;let i=s.clientWidth,o=s.clientHeight,a=0,c=0;if(r){i=r.width,o=r.height;const l=Tu();(!l||l&&e==="fixed")&&(a=r.offsetLeft,c=r.offsetTop)}return{width:i,height:o,x:a,y:c}}function By(n,e){const t=Qs(n,!0,e==="fixed"),s=t.top+n.clientTop,r=t.left+n.clientLeft,i=Sn(n)?Ar(n):vs(1),o=n.clientWidth*i.x,a=n.clientHeight*i.y,c=r*i.x,l=s*i.y;return{width:o,height:a,x:c,y:l}}function Gh(n,e,t){let s;if(e==="viewport")s=Uy(n,t);else if(e==="document")s=Vy(ts(n));else if(Xn(e))s=By(e,t);else{const r=Cp(n);s={...e,x:e.x-r.x,y:e.y-r.y}}return _a(s)}function Op(n,e){const t=Fr(n);return t===e||!Xn(t)||hc(t)?!1:Jt(t).position==="fixed"||Op(t,e)}function Wy(n,e){const t=e.get(n);if(t)return t;let s=ji(n,[],!1).filter(a=>Xn(a)&&bs(a)!=="body"),r=null;const i=Jt(n).position==="fixed";let o=i?Fr(n):n;for(;Xn(o)&&!hc(o);){const a=Jt(o),c=wu(o);!c&&a.position==="fixed"&&(r=null),(i?!c&&!r:!c&&a.position==="static"&&!!r&&["absolute","fixed"].includes(r.position)||_o(o)&&!c&&Op(n,o))?s=s.filter(u=>u!==o):r=a,o=Fr(o)}return e.set(n,s),s}function qy(n){let{element:e,boundary:t,rootBoundary:s,strategy:r}=n;const o=[...t==="clippingAncestors"?Wy(e,this._c):[].concat(t),s],a=o[0],c=o.reduce((l,u)=>{const h=Gh(e,u,r);return l.top=Lt(h.top,l.top),l.right=ys(h.right,l.right),l.bottom=ys(h.bottom,l.bottom),l.left=Lt(h.left,l.left),l},Gh(e,a,r));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Hy(n){return Ep(n)}function Yy(n,e,t){const s=Sn(e),r=ts(e),i=t==="fixed",o=Qs(n,!0,i,e);let a={scrollLeft:0,scrollTop:0};const c=vs(0);if(s||!s&&!i)if((bs(e)!=="body"||_o(r))&&(a=dc(e)),s){const l=Qs(e,!0,i,e);c.x=l.x+e.clientLeft,c.y=l.y+e.clientTop}else r&&(c.x=Sp(r));return{x:o.left+a.scrollLeft-c.x,y:o.top+a.scrollTop-c.y,width:o.width,height:o.height}}function Xh(n,e){return!Sn(n)||Jt(n).position==="fixed"?null:e?e(n):n.offsetParent}function Ap(n,e){const t=Vt(n);if(!Sn(n))return t;let s=Xh(n,e);for(;s&&Iy(s)&&Jt(s).position==="static";)s=Xh(s,e);return s&&(bs(s)==="html"||bs(s)==="body"&&Jt(s).position==="static"&&!wu(s))?t:s||$y(n)||t}const Gy=async function(n){let{reference:e,floating:t,strategy:s}=n;const r=this.getOffsetParent||Ap,i=this.getDimensions;return{reference:Yy(e,await r(t),s),floating:{x:0,y:0,...await i(t)}}};function Xy(n){return Jt(n).direction==="rtl"}const Zy={convertOffsetParentRelativeRectToViewportRelativeRect:jy,getDocumentElement:ts,getClippingRect:qy,getOffsetParent:Ap,getElementRects:Gy,getClientRects:zy,getDimensions:Hy,getScale:Ar,isElement:Xn,isRTL:Xy};function Ky(n,e){let t=null,s;const r=ts(n);function i(){clearTimeout(s),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}=n.getBoundingClientRect();if(a||e(),!h||!d)return;const f=Io(u),m=Io(r.clientWidth-(l+h)),p=Io(r.clientHeight-(u+d)),g=Io(l),k={rootMargin:-f+"px "+-m+"px "+-p+"px "+-g+"px",threshold:Lt(0,ys(1,c))||1};let T=!0;function b(y){const x=y[0].intersectionRatio;if(x!==c){if(!T)return o();x?o(!1,x):s=setTimeout(()=>{o(!1,1e-7)},100)}T=!1}try{t=new IntersectionObserver(b,{...k,root:r.ownerDocument})}catch{t=new IntersectionObserver(b,k)}t.observe(n)}return o(!0),i}function Qy(n,e,t,s){s===void 0&&(s={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=s,l=ku(n),u=r||i?[...l?ji(l):[],...ji(e)]:[];u.forEach(_=>{r&&_.addEventListener("scroll",t,{passive:!0}),i&&_.addEventListener("resize",t)});const h=l&&a?Ky(l,t):null;let d=-1,f=null;o&&(f=new ResizeObserver(_=>{let[k]=_;k&&k.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?Qs(n):null;c&&g();function g(){const _=Qs(n);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 Jy=(n,e,t)=>{const s=new Map,r={platform:Zy,...t},i={...r.platform,_c:s};return Sy(n,e,{...r,platform:i})},e1=n=>{function e(t){return{}.hasOwnProperty.call(t,"current")}return{name:"arrow",options:n,fn(t){const{element:s,padding:r}=typeof n=="function"?n(t):n;return s&&e(s)?s.current!=null?Wh({element:s.current,padding:r}).fn(t):{}:s?Wh({element:s,padding:r}).fn(t):{}}}};var ia=typeof document<"u"?v.useLayoutEffect:v.useEffect;function ya(n,e){if(n===e)return!0;if(typeof n!=typeof e)return!1;if(typeof n=="function"&&n.toString()===e.toString())return!0;let t,s,r;if(n&&e&&typeof n=="object"){if(Array.isArray(n)){if(t=n.length,t!=e.length)return!1;for(s=t;s--!==0;)if(!ya(n[s],e[s]))return!1;return!0}if(r=Object.keys(n),t=r.length,t!==Object.keys(e).length)return!1;for(s=t;s--!==0;)if(!{}.hasOwnProperty.call(e,r[s]))return!1;for(s=t;s--!==0;){const i=r[s];if(!(i==="_owner"&&n.$$typeof)&&!ya(n[i],e[i]))return!1}return!0}return n!==n&&e!==e}function Rp(n){return typeof window>"u"?1:(n.ownerDocument.defaultView||window).devicePixelRatio||1}function Zh(n,e){const t=Rp(n);return Math.round(e*t)/t}function Kh(n){const e=v.useRef(n);return ia(()=>{e.current=n}),e}function t1(n){n===void 0&&(n={});const{placement:e="bottom",strategy:t="absolute",middleware:s=[],platform:r,elements:{reference:i,floating:o}={},transform:a=!0,whileElementsMounted:c,open:l}=n,[u,h]=v.useState({x:0,y:0,strategy:t,placement:e,middlewareData:{},isPositioned:!1}),[d,f]=v.useState(s);ya(d,s)||f(s);const[m,p]=v.useState(null),[g,_]=v.useState(null),k=v.useCallback(V=>{V!=x.current&&(x.current=V,p(V))},[p]),T=v.useCallback(V=>{V!==E.current&&(E.current=V,_(V))},[_]),b=i||m,y=o||g,x=v.useRef(null),E=v.useRef(null),w=v.useRef(u),C=Kh(c),A=Kh(r),D=v.useCallback(()=>{if(!x.current||!E.current)return;const V={placement:e,strategy:t,middleware:d};A.current&&(V.platform=A.current),Jy(x.current,E.current,V).then(U=>{const B={...U,isPositioned:!0};O.current&&!ya(w.current,B)&&(w.current=B,fu.flushSync(()=>{h(B)}))})},[d,e,t,A]);ia(()=>{l===!1&&w.current.isPositioned&&(w.current.isPositioned=!1,h(V=>({...V,isPositioned:!1})))},[l]);const O=v.useRef(!1);ia(()=>(O.current=!0,()=>{O.current=!1}),[]),ia(()=>{if(b&&(x.current=b),y&&(E.current=y),b&&y){if(C.current)return C.current(b,y,D);D()}},[b,y,D,C]);const L=v.useMemo(()=>({reference:x,floating:E,setReference:k,setFloating:T}),[k,T]),j=v.useMemo(()=>({reference:b,floating:y}),[b,y]),W=v.useMemo(()=>{const V={position:t,left:0,top:0};if(!j.floating)return V;const U=Zh(j.floating,u.x),B=Zh(j.floating,u.y);return a?{...V,transform:"translate("+U+"px, "+B+"px)",...Rp(j.floating)>=1.5&&{willChange:"transform"}}:{position:t,left:U,top:B}},[t,a,j.floating,u.x,u.y]);return v.useMemo(()=>({...u,update:D,refs:L,elements:j,floatingStyles:W}),[u,D,L,j,W])}function n1(n){let e;const t=new Set,s=(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:s,getState:r,subscribe:(l,u,h)=>u||h?i(l,u,h):(t.add(l),()=>t.delete(l)),destroy:()=>t.clear()};return e=n(s,r,c),c}const s1=typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),Qh=s1?v.useEffect:v.useLayoutEffect;function r1(n){const e=typeof n=="function"?n1(n):n,t=(s=e.getState,r=Object.is)=>{const[,i]=v.useReducer(g=>g+1,0),o=e.getState(),a=v.useRef(o),c=v.useRef(s),l=v.useRef(r),u=v.useRef(!1),h=v.useRef();h.current===void 0&&(h.current=s(o));let d,f=!1;(a.current!==o||c.current!==s||l.current!==r||u.current)&&(d=s(o),f=!r(h.current,d)),Qh(()=>{f&&(h.current=d),a.current=o,c.current=s,l.current=r,u.current=!1});const m=v.useRef(o);Qh(()=>{const g=()=>{try{const k=e.getState(),T=c.current(k);l.current(h.current,T)||(a.current=k,h.current=T,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 s=[t,e];return{next(){const r=s.length<=0;return{value:s.shift(),done:r}}}},t}let li=0;const i1=r1(n=>(No.onStart=(e,t,s)=>{n({active:!0,item:e,loaded:t,total:s,progress:(t-li)/(s-li)*100})},No.onLoad=()=>{n({active:!1})},No.onError=e=>n(t=>({errors:[...t.errors,e]})),No.onProgress=(e,t,s)=>{t===s&&(li=s),n({active:!0,item:e,loaded:t,total:s,progress:(t-li)/(s-li)*100||100})},{errors:[],active:!1,progress:0,item:"",loaded:0,total:0})),o1=n=>`Loading ${n.toFixed(2)}%`;function a1({containerStyles:n,innerStyles:e,barStyles:t,dataStyles:s,dataInterpolation:r=o1,initialState:i=o=>o}){const{active:o,progress:a}=i1(),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:{...$o.container,opacity:o?1:0,...n}},v.createElement("div",null,v.createElement("div",{style:{...$o.inner,...e}},v.createElement("div",{style:{...$o.bar,transform:`scaleX(${a/100})`,...t}}),v.createElement("span",{ref:u,style:{...$o.data,...s}})))):null}const $o={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"}},Vc=new ty,Uc=new ye,pr=new ye,rn=new ye,Nn=new ye,vn=new ye,In=new ye,$n=new ye,ui=new ye,hi=new ye,di=new ye,Fo=new ye,fi=new ye,pi=new ye,mi=new ye;class c1{constructor(e,t,s){this.camera=e,this.scene=t,this.startPoint=new ye,this.endPoint=new ye,this.collection=[],this.deep=s||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(Vc,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){pr.copy(e),pr.x=Math.min(e.x,t.x),pr.y=Math.max(e.y,t.y),t.x=Math.max(e.x,t.x),t.y=Math.min(e.y,t.y),rn.setFromMatrixPosition(this.camera.matrixWorld),Nn.copy(pr),vn.set(t.x,pr.y,0),In.copy(t),$n.set(pr.x,t.y,0),Nn.unproject(this.camera),vn.unproject(this.camera),In.unproject(this.camera),$n.unproject(this.camera),fi.copy(Nn).sub(rn),pi.copy(vn).sub(rn),mi.copy(In).sub(rn),fi.normalize(),pi.normalize(),mi.normalize(),fi.multiplyScalar(this.deep),pi.multiplyScalar(this.deep),mi.multiplyScalar(this.deep),fi.add(rn),pi.add(rn),mi.add(rn);var s=Vc.planes;s[0].setFromCoplanarPoints(rn,Nn,vn),s[1].setFromCoplanarPoints(rn,vn,In),s[2].setFromCoplanarPoints(In,$n,rn),s[3].setFromCoplanarPoints($n,Nn,rn),s[4].setFromCoplanarPoints(vn,In,$n),s[5].setFromCoplanarPoints(mi,pi,fi),s[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);Nn.set(r,i,-1),vn.set(o,i,-1),In.set(o,a,-1),$n.set(r,a,-1),ui.set(r,i,1),hi.set(o,i,1),di.set(o,a,1),Fo.set(r,a,1),Nn.unproject(this.camera),vn.unproject(this.camera),In.unproject(this.camera),$n.unproject(this.camera),ui.unproject(this.camera),hi.unproject(this.camera),di.unproject(this.camera),Fo.unproject(this.camera);var s=Vc.planes;s[0].setFromCoplanarPoints(Nn,ui,hi),s[1].setFromCoplanarPoints(vn,hi,di),s[2].setFromCoplanarPoints(di,Fo,$n),s[3].setFromCoplanarPoints(Fo,ui,Nn),s[4].setFromCoplanarPoints(vn,In,$n),s[5].setFromCoplanarPoints(di,hi,ui),s[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(),Uc.copy(t.geometry.boundingSphere.center),Uc.applyMatrix4(t.matrixWorld),e.containsPoint(Uc)&&this.collection.push(t)),t.children.length>0)for(let s=0;s0?X.copy(O[O.length-1]):X.identity())}function r(F){const z=new Ms,S=new ke,I=new ke,Y=new ke;let $=!0,q=!1;const re=F.getAttribute("d").match(/[a-df-z][^a-df-z]*/gi);for(let ie=0,ne=re.length;ie0&&(S.copy(Y),z.currentPath.currentPoint.copy(S),$=!0);break;default:console.warn(ge)}q=!1}return z}function i(F){if(!(!F.sheet||!F.sheet.cssRules||!F.sheet.cssRules.length))for(let z=0;zY.trim());for(let Y=0;Y1){const os=Math.sqrt(Q);z=os*z,S=os*S,te=z*z,H=S*S}const se=te*R+H*P,le=(te*H-se)/se;let be=Math.sqrt(Math.max(0,le));Y===$&&(be=-be);const et=be*z*ge/S,ee=-be*S*ne/z,fe=Math.cos(I)*et-Math.sin(I)*ee+(q.x+oe.x)/2,tt=Math.sin(I)*et+Math.cos(I)*ee+(q.y+oe.y)/2,at=a(1,0,(ne-et)/z,(ge-ee)/S),$t=a((ne-et)/z,(ge-ee)/S,(-ne-et)/z,(-ge-ee)/S)%(Math.PI*2);F.currentPath.absellipse(fe,tt,z,S,at,at+$t,$===0,I)}function a(F,z,S,I){const Y=F*S+z*I,$=Math.sqrt(F*F+z*z)*Math.sqrt(S*S+I*I);let q=Math.acos(Math.max(-1,Math.min(1,Y/$)));return F*I-z*S<0&&(q=-q),q}function c(F){const z=T(F.getAttribute("x")||0),S=T(F.getAttribute("y")||0),I=T(F.getAttribute("rx")||F.getAttribute("ry")||0),Y=T(F.getAttribute("ry")||F.getAttribute("rx")||0),$=T(F.getAttribute("width")),q=T(F.getAttribute("height")),oe=1-.551915024494,re=new Ms;return re.moveTo(z+I,S),re.lineTo(z+$-I,S),(I!==0||Y!==0)&&re.bezierCurveTo(z+$-I*oe,S,z+$,S+Y*oe,z+$,S+Y),re.lineTo(z+$,S+q-Y),(I!==0||Y!==0)&&re.bezierCurveTo(z+$,S+q-Y*oe,z+$-I*oe,S+q,z+$-I,S+q),re.lineTo(z+I,S+q),(I!==0||Y!==0)&&re.bezierCurveTo(z+I*oe,S+q,z,S+q-Y*oe,z,S+q-Y),re.lineTo(z,S+Y),(I!==0||Y!==0)&&re.bezierCurveTo(z,S+Y*oe,z+I*oe,S,z+I,S),re}function l(F){function z($,q,oe){const re=T(q),ie=T(oe);Y===0?I.moveTo(re,ie):I.lineTo(re,ie),Y++}const S=/(-?[\d\.?]+)[,|\s](-?[\d\.?]+)/g,I=new Ms;let Y=0;return F.getAttribute("points").replace(S,z),I.currentPath.autoClose=!0,I}function u(F){function z($,q,oe){const re=T(q),ie=T(oe);Y===0?I.moveTo(re,ie):I.lineTo(re,ie),Y++}const S=/(-?[\d\.?]+)[,|\s](-?[\d\.?]+)/g,I=new Ms;let Y=0;return F.getAttribute("points").replace(S,z),I.currentPath.autoClose=!1,I}function h(F){const z=T(F.getAttribute("cx")||0),S=T(F.getAttribute("cy")||0),I=T(F.getAttribute("r")||0),Y=new zc;Y.absarc(z,S,I,0,Math.PI*2);const $=new Ms;return $.subPaths.push(Y),$}function d(F){const z=T(F.getAttribute("cx")||0),S=T(F.getAttribute("cy")||0),I=T(F.getAttribute("rx")||0),Y=T(F.getAttribute("ry")||0),$=new zc;$.absellipse(z,S,I,Y,0,Math.PI*2);const q=new Ms;return q.subPaths.push($),q}function f(F){const z=T(F.getAttribute("x1")||0),S=T(F.getAttribute("y1")||0),I=T(F.getAttribute("x2")||0),Y=T(F.getAttribute("y2")||0),$=new Ms;return $.moveTo(z,S),$.lineTo(I,Y),$.currentPath.autoClose=!1,$}function m(F,z){z=Object.assign({},z);let S={};if(F.hasAttribute("class")){const q=F.getAttribute("class").split(/\s/).filter(Boolean).map(oe=>oe.trim());for(let oe=0;oe0&&z.premultiply(O[O.length-1]),X.copy(z),O.push(z),z}function y(F){const z=new fr,S=L;if(F.nodeName==="use"&&(F.hasAttribute("x")||F.hasAttribute("y"))){const I=T(F.getAttribute("x")),Y=T(F.getAttribute("y"));z.translate(I,Y)}if(F.hasAttribute("transform")){const I=F.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 ge=ne;ie.length>=2&&(ge=ie[1]),S.translate(ne,ge)}break;case"rotate":if(ie.length>=1){let ne=0,ge=0,te=0;ne=-ie[0]*Math.PI/180,ie.length>=3&&(ge=ie[1],te=ie[2]),j.identity().translate(-ge,-te),W.identity().rotate(ne),V.multiplyMatrices(W,j),j.identity().translate(ge,te),S.multiplyMatrices(j,V)}break;case"scale":if(ie.length>=1){const ne=ie[0];let ge=ne;ie.length>=2&&(ge=ie[1]),S.scale(ne,ge)}break;case"skewX":ie.length===1&&S.set(1,Math.tan(ie[0]*Math.PI/180),0,0,1,0,0,0,1);break;case"skewY":ie.length===1&&S.set(1,0,0,Math.tan(ie[0]*Math.PI/180),1,0,0,0,1);break;case"matrix":ie.length===6&&S.set(ie[0],ie[2],ie[4],ie[1],ie[3],ie[5],0,0,1);break}}z.premultiply(S)}}return z}function x(F,z){function S($){B.set($.x,$.y,1).applyMatrix3(z),$.set(B.x,B.y)}const I=E(z),Y=F.subPaths;for(let $=0,q=Y.length;$=1||V<0||V>1)return null;if(O===0&&j===0){for(let U=0;U<2;U++)if(o(U===0?k:T,g,_),r.loc==s.ORIGIN){const B=U===0?k:T;return{x:B.x,y:B.y,t:r.t}}else if(r.loc==s.BETWEEN){const B=+(b+r.t*(y-b)).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?k:T,g,_),r.loc==s.ORIGIN){const K=X===0?k:T;return{x:K.x,y:K.y,t:r.t}}const U=+(b+W*(y-b)).toPrecision(10),B=+(w+W*(C-w)).toPrecision(10);return{x:U,y:B,t:W}}}function o(g,_,k){const T=k.x-_.x,b=k.y-_.y,y=g.x-_.x,x=g.y-_.y,E=T*x-y*b;if(g.x===_.x&&g.y===_.y){r.loc=s.ORIGIN,r.t=0;return}if(g.x===k.x&&g.y===k.y){r.loc=s.DESTINATION,r.t=1;return}if(E<-Number.EPSILON){r.loc=s.LEFT;return}if(E>Number.EPSILON){r.loc=s.RIGHT;return}if(T*y<0||b*x<0){r.loc=s.BEHIND;return}if(Math.sqrt(T*T+b*b)D.t<=A.t+Number.EPSILON&&D.t>=A.t-Number.EPSILON)===void 0&&(k.push(A),T.push(new ke(A.x,A.y)))}}return T}function c(g,_,k){const T=new ke;_.getCenter(T);const b=[];return k.forEach(y=>{y.boundingBox.containsPoint(T)&&a(g,y.points).forEach(E=>{b.push({identifier:y.identifier,isCW:y.isCW,point:E})})}),b.sort((y,x)=>y.point.x-x.point.x),b}function l(g,_,k,T,b){(b==null||b==="")&&(b="nonzero");const y=new ke;g.boundingBox.getCenter(y);const x=[new ke(k,y.y),new ke(T,y.y)],E=c(x,g.boundingBox,_);E.sort((L,j)=>L.point.x-j.point.x);const w=[],C=[];E.forEach(L=>{L.identifier===g.identifier?w.push(L):C.push(L)});const A=w[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),b==="evenodd"){const L=D.length%2===0,j=D[D.length-2];return{identifier:g.identifier,isHole:L,for:j}}else if(b==="nonzero"){let L=!0,j=null,W=null;for(let V=0;V{const _=g.getPoints();let k=-999999999,T=999999999,b=-999999999,y=999999999;for(let x=0;x<_.length;x++){const E=_[x];E.y>k&&(k=E.y),E.yb&&(b=E.x),E.x=y&&(h=y-1),{curves:g.curves,points:_,isCW:ry.isClockWise(_),identifier:u++,boundingBox:new iy(new ke(y,T),new ke(b,k))}});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 k=new yp;k.curves=g.curves,m.filter(b=>b.isHole&&b.for===g.identifier).forEach(b=>{const y=f[b.identifier],x=new zc;x.curves=y.curves,k.holes.push(x)}),p.push(k)}}),p}static getStrokeStyle(e,t,s,r,i){return e=e!==void 0?e:1,t=t!==void 0?t:"#000",s=s!==void 0?s:"miter",r=r!==void 0?r:"butt",i=i!==void 0?i:4,{strokeColor:t,strokeWidth:e,strokeLineJoin:s,strokeLineCap:r,strokeMiterLimit:i}}static pointsToStroke(e,t,s,r){const i=[],o=[],a=[];if(Ai.pointsToStrokeWithBuffers(e,t,s,r,i,o,a)===0)return null;const c=new oy;return c.setAttribute("position",new ra(i,3)),c.setAttribute("normal",new ra(o,3)),c.setAttribute("uv",new ra(a,2)),c}static pointsToStrokeWithBuffers(e,t,s,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,k=new ke,T=new ke,b=new ke,y=new ke,x=new ke,E=new ke,w=new ke,C=new ke;s=s!==void 0?s:12,r=r!==void 0?r:.001,c=c!==void 0?c:0,e=ge(e);const A=e.length;if(A<2)return 0;const D=e[0].equals(e[A-1]);let O,L=e[0],j;const W=t.strokeWidth/2,V=1/(A-1);let U=0,B,X,K,J,F=!1,z=0,S=c*3,I=c*2;Y(e[0],e[1],l).multiplyScalar(W),g.copy(e[0]).sub(l),_.copy(e[0]).add(l),k.copy(g),T.copy(_);for(let te=1;te=r&&P.push(te[R]);return P.push(te[te.length-1]),P}}}function l1(n,e){if(Object.is(n,e))return!0;if(typeof n!="object"||n===null||typeof e!="object"||e===null)return!1;const t=Object.keys(n);if(t.length!==Object.keys(e).length)return!1;for(let s=0;sc,...a}){const{setEvents:c,camera:l,raycaster:u,gl:h,controls:d,size:f,get:m}=Ye(),[p,g]=v.useState(!1),[_,k]=v.useReducer((x,{object:E,shift:w})=>E===void 0?[]:Array.isArray(E)?E:w?x.includes(E)?x.filter(C=>C!==E):[E,...x]:x[0]===E?[]:[E],[]);v.useEffect(()=>void(s==null?void 0:s(_)),[_]);const T=v.useCallback(x=>{x.stopPropagation(),k({object:o([x.object])[0],shift:e&&x.shiftKey})},[]),b=v.useCallback(x=>!p&&k({}),[p]),y=v.useRef(null);return v.useEffect(()=>{if(!n||!e)return;const x=new c1(l,y.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,A=new ke,D=m().events.enabled,O=d==null?void 0:d.enabled;let L=!1;function j(F,z){const{offsetX:S,offsetY:I}=F,{width:Y,height:$}=f;z.set(S/Y*2-1,-(I/$)*2+1)}function W(F){var z;d&&(d.enabled=!1),c({enabled:!1}),L=!0,(z=h.domElement.parentElement)==null||z.appendChild(E),E.style.left=`${F.clientX}px`,E.style.top=`${F.clientY}px`,E.style.width="0px",E.style.height="0px",w.x=F.clientX,w.y=F.clientY}function V(F){A.x=Math.max(w.x,F.clientX),A.y=Math.max(w.y,F.clientY),C.x=Math.min(w.x,F.clientX),C.y=Math.min(w.y,F.clientY),E.style.left=`${C.x}px`,E.style.top=`${C.y}px`,E.style.width=`${A.x-C.x}px`,E.style.height=`${A.y-C.y}px`}function U(){if(L){var F;d&&(d.enabled=O),c({enabled:D}),L=!1,(F=E.parentElement)==null||F.removeChild(E)}}function B(F){F.shiftKey&&(W(F),j(F,x.startPoint))}let X=[];function K(F){if(L){V(F),j(F,x.endPoint);const z=x.select().sort(S=>S.uuid).filter(S=>S.isMesh);l1(z,X)||(X=z,k({object:o(z)}))}}function J(F){L&&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",Se({ref:y,onClick:T,onPointerOver:()=>g(!0),onPointerOut:()=>g(!1),onPointerMissed:b},a),v.createElement(u1.Provider,{value:_},t))}const Eu=v.forwardRef(function({follow:e=!0,lockX:t=!1,lockY:s=!1,lockZ:r=!1,...i},o){const a=v.useRef();return nn(({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),s&&(a.current.rotation.y=l.y),r&&(a.current.rotation.z=l.z)}),v.createElement("group",Se({ref:ic([a,o])},i))}),Jh=n=>n===Object(n)&&!Array.isArray(n)&&typeof n!="function";function Bs(n,e){const t=Ye(r=>r.gl),s=oc(lc,Jh(n)?Object.values(n):n);if(v.useLayoutEffect(()=>{e==null||e(s)},[e]),v.useEffect(()=>{(Array.isArray(s)?s:[s]).forEach(t.initTexture)},[t,s]),Jh(n)){const r=Object.keys(n),i={};return r.forEach(o=>Object.assign(i,{[o]:s[r.indexOf(o)]})),i}else return s}Bs.preload=n=>oc.preload(lc,n);Bs.clear=n=>oc.clear(lc,n);const d1=v.forwardRef(function({src:e,skipFill:t,skipStrokes:s,fillMaterial:r,strokeMaterial:i,fillMeshProps:o,strokeMeshProps:a,...c},l){const u=oc(Ai,e.startsWith("s?[]: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,s]);return v.useEffect(()=>()=>h.forEach(d=>d&&d.map(f=>f.dispose())),[h]),v.createElement("object3D",Se({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",Se({key:_},o),v.createElement("shapeGeometry",{args:[g]}),v.createElement("meshBasicMaterial",Se({color:d.userData.style.fill,opacity:d.userData.style.fillOpacity,transparent:!0,side:fa,depthWrite:!1},r)))),!s&&((p=d.userData)==null?void 0:p.style.stroke)!==void 0&&d.userData.style.stroke!=="none"&&d.subPaths.map((g,_)=>v.createElement("mesh",Se({key:_,geometry:h[f][_]},a),v.createElement("meshBasicMaterial",Se({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 pe={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}),mr={NONE:0,IN:1,OUT:-1};function Ns(n){return n.isPerspectiveCamera}function cs(n){return n.isOrthographicCamera}const gr=Math.PI*2,ed=Math.PI/2,Pp=1e-5,gi=Math.PI/180;function on(n,e,t){return Math.max(e,Math.min(t,n))}function Le(n,e=Pp){return Math.abs(n)0==f>u&&(f=u,t.value=(f-u)/i),f}function nd(n,e,t,s,r=1/0,i,o){s=Math.max(1e-4,s);const a=2/s,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=n.x-u,m=n.y-h,p=n.z-d;const g=u,_=h,k=d,T=r*s,b=T*T,y=f*f+m*m+p*p;if(y>b){const W=Math.sqrt(y);f=f/W*T,m=m/W*T,p=p/W*T}u=n.x-f,h=n.y-m,d=n.z-p;const x=(t.x+a*f)*i,E=(t.y+a*m)*i,w=(t.z+a*p)*i;t.x=(t.x-a*x)*l,t.y=(t.y-a*E)*l,t.z=(t.z-a*w)*l,o.x=u+(f+x)*l,o.y=h+(m+E)*l,o.z=d+(p+w)*l;const C=g-n.x,A=_-n.y,D=k-n.z,O=o.x-g,L=o.y-_,j=o.z-k;return C*O+A*L+D*j>0&&(o.x=g,o.y=_,o.z=k,t.x=(o.x-g)/i,t.y=(o.y-_)/i,t.z=(o.z-k)/i),o}function Bc(n,e){e.set(0,0),n.forEach(t=>{e.x+=t.clientX,e.y+=t.clientY}),e.x/=n.length,e.y/=n.length}function Wc(n,e){return cs(n)?(console.warn(`${e} is not supported in OrthographicCamera`),!0):!1}class p1{constructor(){this._listeners={}}addEventListener(e,t){const s=this._listeners;s[e]===void 0&&(s[e]=[]),s[e].indexOf(t)===-1&&s[e].push(t)}hasEventListener(e,t){const s=this._listeners;return s[e]!==void 0&&s[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 s=this._listeners[e.type];if(s!==void 0){e.target=this;const r=s.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=mr.NONE,this._thetaVelocity={value:0},this._phiVelocity={value:0},this._radiusVelocity={value:0},this._targetVelocity=new he.Vector3,this._focalOffsetVelocity=new he.Vector3,this._zoomVelocity={value:0},this._truckInternal=(b,y,x)=>{let E,w;if(Ns(this._camera)){const C=_e.copy(this._camera.position).sub(this._target),A=this._camera.getEffectiveFOV()*gi,D=C.length()*Math.tan(A*.5);E=this.truckSpeed*b*D/this._elementRect.height,w=this.truckSpeed*y*D/this._elementRect.height}else if(cs(this._camera)){const C=this._camera;E=b*(C.right-C.left)/C.zoom/this._elementRect.width,w=y*(C.top-C.bottom)/C.zoom/this._elementRect.height}else return;this.verticalDragToForward?(x?this.setFocalOffset(this._focalOffsetEnd.x+E,this._focalOffsetEnd.y,this._focalOffsetEnd.z,!0):this.truck(E,0,!0),this.forward(-w,!0)):x?this.setFocalOffset(this._focalOffsetEnd.x+E,this._focalOffsetEnd.y+w,this._focalOffsetEnd.z,!0):this.truck(E,w,!0)},this._rotateInternal=(b,y)=>{const x=gr*this.azimuthRotateSpeed*b/this._elementRect.height,E=gr*this.polarRotateSpeed*y/this._elementRect.height;this.rotate(x,E,!0)},this._dollyInternal=(b,y,x)=>{const E=Math.pow(.95,-b*this.dollySpeed),w=this._sphericalEnd.radius,C=this._sphericalEnd.radius*E,A=on(C,this.minDistance,this.maxDistance),D=A-C;this.infinityDolly&&this.dollyToCursor?this._dollyToNoClamp(C,!0):this.infinityDolly&&!this.dollyToCursor?(this.dollyInFixed(D,!0),this._dollyToNoClamp(A,!0)):this._dollyToNoClamp(A,!0),this.dollyToCursor&&(this._changedDolly+=(this.infinityDolly?C:A)-w,this._dollyControlCoord.set(y,x)),this._lastDollyDirection=Math.sign(-b)},this._zoomInternal=(b,y,x)=>{const E=Math.pow(.95,b*this.dollySpeed),w=this._zoom,C=this._zoom*E;this.zoomTo(C,!0),this.dollyToCursor&&(this._changedZoom+=C-w,this._dollyControlCoord.set(y,x))},typeof he>"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 he.Quaternion().setFromUnitVectors(this._camera.up,zo),this._yAxisUpSpaceInverse=this._yAxisUpSpace.clone().invert(),this._state=G.NONE,this._target=new he.Vector3,this._targetEnd=this._target.clone(),this._focalOffset=new he.Vector3,this._focalOffsetEnd=this._focalOffset.clone(),this._spherical=new he.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 he.Vector3,new he.Vector3,new he.Vector3,new he.Vector3],this._updateNearPlaneCorners(),this._boundary=new he.Box3(new he.Vector3(-1/0,-1/0,-1/0),new he.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 he.Vector2,this.mouseButtons={left:G.ROTATE,middle:G.DOLLY,right:G.TRUCK,wheel:Ns(this._camera)?G.DOLLY:cs(this._camera)?G.ZOOM:G.NONE},this.touches={one:G.TOUCH_ROTATE,two:Ns(this._camera)?G.TOUCH_DOLLY_TRUCK:cs(this._camera)?G.TOUCH_ZOOM_TRUCK:G.NONE,three:G.TOUCH_TRUCK};const s=new he.Vector2,r=new he.Vector2,i=new he.Vector2,o=b=>{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=b.clientX/E.width,C=b.clientY/E.height;if(wthis._interactiveArea.right||Cthis._interactiveArea.bottom)return}const y=b.pointerType!=="mouse"?null:(b.buttons&pe.LEFT)===pe.LEFT?pe.LEFT:(b.buttons&pe.MIDDLE)===pe.MIDDLE?pe.MIDDLE:(b.buttons&pe.RIGHT)===pe.RIGHT?pe.RIGHT:null;if(y!==null){const E=this._findPointerByMouseButton(y);E&&this._disposePointer(E)}if((b.buttons&pe.LEFT)===pe.LEFT&&this._lockedPointer)return;const x={pointerId:b.pointerId,clientX:b.clientX,clientY:b.clientY,deltaX:0,deltaY:0,mouseButton:y};this._activePointers.push(x),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(b)},a=b=>{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=b.clientX/E.width,C=b.clientY/E.height;if(wthis._interactiveArea.right||Cthis._interactiveArea.bottom)return}const y=(b.buttons&pe.LEFT)===pe.LEFT?pe.LEFT:(b.buttons&pe.MIDDLE)===pe.MIDDLE?pe.MIDDLE:(b.buttons&pe.RIGHT)===pe.RIGHT?pe.RIGHT:null;if(y!==null){const E=this._findPointerByMouseButton(y);E&&this._disposePointer(E)}const x={pointerId:1,clientX:b.clientX,clientY:b.clientY,deltaX:0,deltaY:0,mouseButton:(b.buttons&pe.LEFT)===pe.LEFT?pe.LEFT:(b.buttons&pe.MIDDLE)===pe.LEFT?pe.MIDDLE:(b.buttons&pe.RIGHT)===pe.LEFT?pe.RIGHT:null};this._activePointers.push(x),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(b)},c=b=>{b.cancelable&&b.preventDefault();const y=b.pointerId,x=this._lockedPointer||this._findPointerById(y);if(x){if(x.clientX=b.clientX,x.clientY=b.clientY,x.deltaX=b.movementX,x.deltaY=b.movementY,this._state=0,b.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&&(b.buttons&pe.LEFT)===pe.LEFT)&&(this._state=this._state|this.mouseButtons.left),this._isDragging&&(b.buttons&pe.MIDDLE)===pe.MIDDLE&&(this._state=this._state|this.mouseButtons.middle),this._isDragging&&(b.buttons&pe.RIGHT)===pe.RIGHT&&(this._state=this._state|this.mouseButtons.right);g()}},l=b=>{const y=this._lockedPointer||this._findPointerById(1);y&&(y.clientX=b.clientX,y.clientY=b.clientY,y.deltaX=b.movementX,y.deltaY=b.movementY,this._state=0,(this._lockedPointer||(b.buttons&pe.LEFT)===pe.LEFT)&&(this._state=this._state|this.mouseButtons.left),(b.buttons&pe.MIDDLE)===pe.MIDDLE&&(this._state=this._state|this.mouseButtons.middle),(b.buttons&pe.RIGHT)===pe.RIGHT&&(this._state=this._state|this.mouseButtons.right),g())},u=b=>{const y=this._findPointerById(b.pointerId);if(!(y&&y===this._lockedPointer)){if(y&&this._disposePointer(y),b.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 b=this._findPointerById(1);b&&b===this._lockedPointer||(b&&this._disposePointer(b),this._state=G.NONE,_())};let d=-1;const f=b=>{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(),A=b.clientX/C.width,D=b.clientY/C.height;if(Athis._interactiveArea.right||Dthis._interactiveArea.bottom)return}if(b.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=g1?-1:-3,x=b.deltaMode===1?b.deltaY/y:b.deltaY/(y*10),E=this.dollyToCursor?(b.clientX-this._elementRect.x)/this._elementRect.width*2-1:0,w=this.dollyToCursor?(b.clientY-this._elementRect.y)/this._elementRect.height*-2+1:0;switch(this.mouseButtons.wheel){case G.ROTATE:{this._rotateInternal(b.deltaX,b.deltaY),this._isUserControllingRotate=!0;break}case G.TRUCK:{this._truckInternal(b.deltaX,b.deltaY,!1),this._isUserControllingTruck=!0;break}case G.OFFSET:{this._truckInternal(b.deltaX,b.deltaY,!0),this._isUserControllingOffset=!0;break}case G.DOLLY:{this._dollyInternal(-x,E,w),this._isUserControllingDolly=!0;break}case G.ZOOM:{this._zoomInternal(-x,E,w),this._isUserControllingZoom=!0;break}}this.dispatchEvent({type:"control"})},m=b=>{if(!(!this._domElement||!this._enabled)){if(this.mouseButtons.right===bl.ACTION.NONE){const y=b instanceof PointerEvent?b.pointerId:(b instanceof MouseEvent,0),x=this._findPointerById(y);x&&this._disposePointer(x),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}b.preventDefault()}},p=b=>{if(!this._enabled)return;if(Bc(this._activePointers,Ct),this._getClientRect(this._elementRect),s.copy(Ct),r.copy(Ct),this._activePointers.length>=2){const x=Ct.x-this._activePointers[1].clientX,E=Ct.y-this._activePointers[1].clientY,w=Math.sqrt(x*x+E*E);i.set(0,w);const C=(this._activePointers[0].clientX+this._activePointers[1].clientX)*.5,A=(this._activePointers[0].clientY+this._activePointers[1].clientY)*.5;r.set(C,A)}if(this._state=0,!b)this._lockedPointer&&(this._state=this._state|this.mouseButtons.left);else if("pointerType"in b&&b.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&&(b.buttons&pe.LEFT)===pe.LEFT&&(this._state=this._state|this.mouseButtons.left),(b.buttons&pe.MIDDLE)===pe.MIDDLE&&(this._state=this._state|this.mouseButtons.middle),(b.buttons&pe.RIGHT)===pe.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,Bc(this._activePointers,Ct);const y=this._domElement&&document.pointerLockElement===this._domElement?this._lockedPointer||this._activePointers[0]:null,x=y?-y.deltaX:r.x-Ct.x,E=y?-y.deltaY:r.y-Ct.y;if(r.copy(Ct),((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(x,E),this._isUserControllingRotate=!0),(this._state&G.DOLLY)===G.DOLLY||(this._state&G.ZOOM)===G.ZOOM){const w=this.dollyToCursor?(s.x-this._elementRect.x)/this._elementRect.width*2-1:0,C=this.dollyToCursor?(s.y-this._elementRect.y)/this._elementRect.height*-2+1:0,A=this.dollyDragInverted?-1:1;(this._state&G.DOLLY)===G.DOLLY?(this._dollyInternal(A*E*jo,w,C),this._isUserControllingDolly=!0):(this._zoomInternal(A*E*jo,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=Ct.x-this._activePointers[1].clientX,C=Ct.y-this._activePointers[1].clientY,A=Math.sqrt(w*w+C*C),D=i.y-A;i.set(0,A);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*jo,O,L),this._isUserControllingDolly=!0):(this._zoomInternal(D*jo,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(x,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(x,E,!0),this._isUserControllingOffset=!0),this.dispatchEvent({type:"control"})},_=()=>{Bc(this._activePointers,Ct),r.copy(Ct),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",k),this._domElement.ownerDocument.addEventListener("pointerlockerror",T),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",k),this._domElement.ownerDocument.removeEventListener("pointerlockerror",T))};const k=()=>{this._domElement&&this._domElement.ownerDocument.pointerLockElement===this._domElement||this.unlockPointer()},T=()=>{this.unlockPointer()};this._addAllEventListeners=b=>{this._domElement=b,this._domElement.style.touchAction="none",this._domElement.style.userSelect="none",this._domElement.style.webkitUserSelect="none",this._domElement.addEventListener("pointerdown",o),_1&&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",k),this._domElement.ownerDocument.removeEventListener("pointerlockerror",T))},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=on(e.width,0,1),this._interactiveArea.height=on(e.height,0,1),this._interactiveArea.x=on(e.x,0,1-this._interactiveArea.width),this._interactiveArea.y=on(e.y,0,1-this._interactiveArea.height)}addEventListener(e,t){super.addEventListener(e,t)}removeEventListener(e,t){super.removeEventListener(e,t)}rotate(e,t,s=!1){return this.rotateTo(this._sphericalEnd.theta+e,this._sphericalEnd.phi+t,s)}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,s=!1){this._isUserControllingRotate=!1;const r=on(e,this.minAzimuthAngle,this.maxAzimuthAngle),i=on(t,this.minPolarAngle,this.maxPolarAngle);this._sphericalEnd.theta=r,this._sphericalEnd.phi=i,this._sphericalEnd.makeSafe(),this._needsUpdate=!0,s||(this._spherical.theta=this._sphericalEnd.theta,this._spherical.phi=this._sphericalEnd.phi);const o=!s||Ce(this._spherical.theta,this._sphericalEnd.theta,this.restThreshold)&&Ce(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=mr.NONE,this._changedDolly=0,this._dollyToNoClamp(on(e,this.minDistance,this.maxDistance),t)}_dollyToNoClamp(e,t=!1){const s=this._sphericalEnd.radius;if(this.colliderMeshes.length>=1){const o=this._collisionTest(),a=Ce(o,this._spherical.radius);if(!(s>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||Ce(this._spherical.radius,this._sphericalEnd.radius,this.restThreshold);return this._createOnRestPromise(i)}dollyInFixed(e,t=!1){this._targetEnd.add(this._getCameraDirection(vi).multiplyScalar(e)),t||this._target.copy(this._targetEnd);const s=!t||Ce(this._target.x,this._targetEnd.x,this.restThreshold)&&Ce(this._target.y,this._targetEnd.y,this.restThreshold)&&Ce(this._target.z,this._targetEnd.z,this.restThreshold);return this._createOnRestPromise(s)}zoom(e,t=!1){return this.zoomTo(this._zoomEnd+e,t)}zoomTo(e,t=!1){this._isUserControllingZoom=!1,this._zoomEnd=on(e,this.minZoom,this.maxZoom),this._needsUpdate=!0,t||(this._zoom=this._zoomEnd);const s=!t||Ce(this._zoom,this._zoomEnd,this.restThreshold);return this._changedZoom=0,this._createOnRestPromise(s)}pan(e,t,s=!1){return console.warn("`pan` has been renamed to `truck`"),this.truck(e,t,s)}truck(e,t,s=!1){this._camera.updateMatrix(),bn.setFromMatrixColumn(this._camera.matrix,0),xn.setFromMatrixColumn(this._camera.matrix,1),bn.multiplyScalar(e),xn.multiplyScalar(-t);const r=_e.copy(bn).add(xn),i=Te.copy(this._targetEnd).add(r);return this.moveTo(i.x,i.y,i.z,s)}forward(e,t=!1){_e.setFromMatrixColumn(this._camera.matrix,0),_e.crossVectors(this._camera.up,_e),_e.multiplyScalar(e);const s=Te.copy(this._targetEnd).add(_e);return this.moveTo(s.x,s.y,s.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,s,r=!1){this._isUserControllingTruck=!1;const i=_e.set(e,t,s).sub(this._targetEnd);this._encloseToBoundary(this._targetEnd,i,this.boundaryFriction),this._needsUpdate=!0,r||this._target.copy(this._targetEnd);const o=!r||Ce(this._target.x,this._targetEnd.x,this.restThreshold)&&Ce(this._target.y,this._targetEnd.y,this.restThreshold)&&Ce(this._target.z,this._targetEnd.z,this.restThreshold);return this._createOnRestPromise(o)}lookInDirectionOf(e,t,s,r=!1){const a=_e.set(e,t,s).sub(this._targetEnd).normalize().multiplyScalar(-this._sphericalEnd.radius);return this.setPosition(a.x,a.y,a.z,r)}fitToBox(e,t,{cover:s=!1,paddingLeft:r=0,paddingRight:i=0,paddingBottom:o=0,paddingTop:a=0}={}){const c=[],l=e.isBox3?yr.copy(e):yr.setFromObject(e);l.isEmpty()&&(console.warn("camera-controls: fitTo() cannot be used with an empty box. Aborting"),Promise.resolve());const u=td(this._sphericalEnd.theta,ed),h=td(this._sphericalEnd.phi,ed);c.push(this.rotateTo(u,h,t));const d=_e.setFromSpherical(this._sphericalEnd).normalize(),f=ad.setFromUnitVectors(d,qc),m=Ce(Math.abs(d.y),1);m&&f.multiply(Yc.setFromAxisAngle(zo,u)),f.multiply(this._yAxisUpSpaceInverse);const p=od.makeEmpty();Te.copy(l.min).applyQuaternion(f),p.expandByPoint(Te),Te.copy(l.min).setX(l.max.x).applyQuaternion(f),p.expandByPoint(Te),Te.copy(l.min).setY(l.max.y).applyQuaternion(f),p.expandByPoint(Te),Te.copy(l.max).setZ(l.min.z).applyQuaternion(f),p.expandByPoint(Te),Te.copy(l.min).setZ(l.max.z).applyQuaternion(f),p.expandByPoint(Te),Te.copy(l.max).setY(l.min.y).applyQuaternion(f),p.expandByPoint(Te),Te.copy(l.max).setX(l.min.x).applyQuaternion(f),p.expandByPoint(Te),Te.copy(l.max).applyQuaternion(f),p.expandByPoint(Te),p.min.x-=r,p.min.y-=o,p.max.x+=i,p.max.y+=a,f.setFromUnitVectors(qc,d),m&&f.premultiply(Yc.invert()),f.premultiply(this._yAxisUpSpace);const g=p.getSize(_e),_=p.getCenter(Te).applyQuaternion(f);if(Ns(this._camera)){const k=this.getDistanceToFitBox(g.x,g.y,g.z,s);c.push(this.moveTo(_.x,_.y,_.z,t)),c.push(this.dollyTo(k,t)),c.push(this.setFocalOffset(0,0,0,t))}else if(cs(this._camera)){const k=this._camera,T=k.right-k.left,b=k.top-k.bottom,y=s?Math.max(T/g.x,b/g.y):Math.min(T/g.x,b/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 s=[],i=e instanceof he.Sphere?Hc.copy(e):bl.createBoundingSphere(e,Hc);if(s.push(this.moveTo(i.center.x,i.center.y,i.center.z,t)),Ns(this._camera)){const o=this.getDistanceToFitSphere(i.radius);s.push(this.dollyTo(o,t))}else if(cs(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);s.push(this.zoomTo(l,t))}return s.push(this.setFocalOffset(0,0,0,t)),Promise.all(s)}setLookAt(e,t,s,r,i,o,a=!1){this._isUserControllingRotate=!1,this._isUserControllingDolly=!1,this._isUserControllingTruck=!1,this._lastDollyDirection=mr.NONE,this._changedDolly=0;const c=Te.set(r,i,o),l=_e.set(e,t,s);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||Ce(this._target.x,this._targetEnd.x,this.restThreshold)&&Ce(this._target.y,this._targetEnd.y,this.restThreshold)&&Ce(this._target.z,this._targetEnd.z,this.restThreshold)&&Ce(this._spherical.theta,this._sphericalEnd.theta,this.restThreshold)&&Ce(this._spherical.phi,this._sphericalEnd.phi,this.restThreshold)&&Ce(this._spherical.radius,this._sphericalEnd.radius,this.restThreshold);return this._createOnRestPromise(u)}lerpLookAt(e,t,s,r,i,o,a,c,l,u,h,d,f,m=!1){this._isUserControllingRotate=!1,this._isUserControllingDolly=!1,this._isUserControllingTruck=!1,this._lastDollyDirection=mr.NONE,this._changedDolly=0;const p=_e.set(r,i,o),g=Te.set(e,t,s);Ht.setFromVector3(g.sub(p).applyQuaternion(this._yAxisUpSpace));const _=_r.set(u,h,d),k=Te.set(a,c,l);bi.setFromVector3(k.sub(_).applyQuaternion(this._yAxisUpSpace)),this._targetEnd.copy(p.lerp(_,f));const T=bi.theta-Ht.theta,b=bi.phi-Ht.phi,y=bi.radius-Ht.radius;this._sphericalEnd.set(Ht.radius+y*f,Ht.phi+b*f,Ht.theta+T*f),this.normalizeRotations(),this._needsUpdate=!0,m||(this._target.copy(this._targetEnd),this._spherical.copy(this._sphericalEnd));const x=!m||Ce(this._target.x,this._targetEnd.x,this.restThreshold)&&Ce(this._target.y,this._targetEnd.y,this.restThreshold)&&Ce(this._target.z,this._targetEnd.z,this.restThreshold)&&Ce(this._spherical.theta,this._sphericalEnd.theta,this.restThreshold)&&Ce(this._spherical.phi,this._sphericalEnd.phi,this.restThreshold)&&Ce(this._spherical.radius,this._sphericalEnd.radius,this.restThreshold);return this._createOnRestPromise(x)}setPosition(e,t,s,r=!1){return this.setLookAt(e,t,s,this._targetEnd.x,this._targetEnd.y,this._targetEnd.z,r)}setTarget(e,t,s,r=!1){const i=this.getPosition(_e),o=this.setLookAt(i.x,i.y,i.z,e,t,s,r);return this._sphericalEnd.phi=on(this._sphericalEnd.phi,this.minPolarAngle,this.maxPolarAngle),o}setFocalOffset(e,t,s,r=!1){this._isUserControllingOffset=!1,this._focalOffsetEnd.set(e,t,s),this._needsUpdate=!0,r||this._focalOffset.copy(this._focalOffsetEnd);const i=!r||Ce(this._focalOffset.x,this._focalOffsetEnd.x,this.restThreshold)&&Ce(this._focalOffset.y,this._focalOffsetEnd.y,this.restThreshold)&&Ce(this._focalOffset.z,this._focalOffsetEnd.z,this.restThreshold);return this._createOnRestPromise(i)}setOrbitPoint(e,t,s){this._camera.updateMatrixWorld(),bn.setFromMatrixColumn(this._camera.matrixWorldInverse,0),xn.setFromMatrixColumn(this._camera.matrixWorldInverse,1),Is.setFromMatrixColumn(this._camera.matrixWorldInverse,2);const r=_e.set(e,t,s),i=r.distanceTo(this._camera.position),o=r.sub(this._camera.position);bn.multiplyScalar(o.x),xn.multiplyScalar(o.y),Is.multiplyScalar(o.z),_e.copy(bn).add(xn).add(Is),_e.z=_e.z+i,this.dollyTo(i,!1),this.setFocalOffset(-_e.x,_e.y,-_e.z,!1),this.moveTo(e,t,s,!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,s,r){if(e===null){this._viewport=null;return}this._viewport=this._viewport||new he.Vector4,typeof e=="number"?this._viewport.set(e,t,s,r):this._viewport.copy(e)}getDistanceToFitBox(e,t,s,r=!1){if(Wc(this._camera,"getDistanceToFitBox"))return this._spherical.radius;const i=e/t,o=this._camera.getEffectiveFOV()*gi,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,s){const r=t.lengthSq();if(r===0)return e;const i=Te.copy(t).add(e),a=this._boundary.clampPoint(i,_r).sub(i),c=a.lengthSq();if(c===0)return e.add(t);if(c===r)return e;if(s===0)return e.add(t).add(a);{const l=1+s*c/t.dot(a);return e.add(Te.copy(t).multiplyScalar(l)).add(a.multiplyScalar(1-s))}}_updateNearPlaneCorners(){if(Ns(this._camera)){const e=this._camera,t=e.near,s=e.getEffectiveFOV()*gi,r=Math.tan(s*.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(cs(this._camera)){const e=this._camera,t=1/e.zoom,s=e.left*t,r=e.right*t,i=e.top*t,o=e.bottom*t;this._nearPlaneCorners[0].set(s,i,0),this._nearPlaneCorners[1].set(r,i,0),this._nearPlaneCorners[2].set(r,o,0),this._nearPlaneCorners[3].set(s,o,0)}}_collisionTest(){let e=1/0;if(!(this.colliderMeshes.length>=1)||Wc(this._camera,"_collisionTest"))return e;const s=this._getTargetDirection(vi);Gc.lookAt(sd,s,this._camera.up);for(let r=0;r<4;r++){const i=Te.copy(this._nearPlaneCorners[r]);i.applyMatrix4(Gc);const o=_r.addVectors(this._target,i);Vo.set(o,s),Vo.far=this._spherical.radius+1;const a=Vo.intersectObjects(this.colliderMeshes);a.length!==0&&a[0].distance{const s=()=>{this.removeEventListener("rest",s),t()};this.addEventListener("rest",s)}))}_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 he.Sphere){const s=t,r=s.center;yr.makeEmpty(),e.traverseVisible(o=>{o.isMesh&&yr.expandByObject(o)}),yr.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(()=>{Xc.install({THREE:ly}),mu({CameraControlsImpl:Xc})},[]);const{camera:t,domElement:s,makeDefault:r,onStart:i,onEnd:o,onChange:a,regress:c,...l}=n,u=Ye(y=>y.camera),h=Ye(y=>y.gl),d=Ye(y=>y.invalidate),f=Ye(y=>y.events),m=Ye(y=>y.setEvents),p=Ye(y=>y.set),g=Ye(y=>y.get),_=Ye(y=>y.performance),k=t||u,T=s||f.connected||h.domElement,b=v.useMemo(()=>new Xc(k),[k]);return nn((y,x)=>{b.enabled&&b.update(x)},-1),v.useEffect(()=>(b.connect(T),()=>void b.disconnect()),[T,b]),v.useEffect(()=>{const y=w=>{d(),c&&_.regress(),a&&a(w)},x=w=>{i&&i(w)},E=w=>{o&&o(w)};return b.addEventListener("update",y),b.addEventListener("controlstart",x),b.addEventListener("controlend",E),()=>{b.removeEventListener("update",y),b.removeEventListener("controlstart",x),b.removeEventListener("controlend",E)}},[b,i,o,d,m,c,a]),v.useEffect(()=>{if(r){const y=g().controls;return p({controls:b}),()=>p({controls:y})}},[r,b]),v.createElement("primitive",Se({ref:e,object:b},l))});Ee.func.isRequired,Ee.arrayOf(Ee.oneOfType([Ee.element,Ee.func])).isRequired;const cd=new go,ld=new go,Uo=[],xi=new bp;class y1 extends uy{constructor(){super(),this.color=new pa("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 s=this.instance.current;if(!s||!s.geometry||!s.material)return;xi.geometry=s.geometry;const r=s.matrixWorld,i=s.userData.instances.indexOf(this.instanceKey);if(!(i===-1||i>s.count)){s.getMatrixAt(i,cd),ld.multiplyMatrices(r,cd),xi.matrixWorld=ld,s.material instanceof hy?xi.material.side=s.material.side:xi.material.side=s.material[0].side,xi.raycast(e,Uo);for(let o=0,a=Uo.length;o{v.useMemo(()=>mu({PositionMesh:y1}),[]);const r=v.useRef(),{subscribe:i,getParent:o}=v.useContext(n||Ip);return v.useLayoutEffect(()=>i(r),[]),v.createElement("positionMesh",Se({instance:o(),instanceKey:r,ref:ic([s,r])},t),e)}),b1=v.forwardRef(({children:n,range:e,limit:t=1e3,frames:s=1/0,...r},i)=>{const[{context:o,instance:a}]=v.useState(()=>{const g=v.createContext(null);return{context:g,instance:v.forwardRef((_,k)=>v.createElement($p,Se({context:g},_,{ref:k})))}}),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;nn(()=>{if(s===1/0||f({getParent:()=>c,subscribe:g=>(u(_=>[..._,g]),()=>u(_=>_.filter(k=>k.current!==g.current)))}),[]);return v.createElement("instancedMesh",Se({userData:{instances:l},matrixAutoUpdate:!1,ref:ic([i,c]),args:[null,null,0],raycast:()=>null},r),v.createElement("instancedBufferAttribute",{attach:"instanceMatrix",count:h.length/16,array:h,itemSize:16,usage:Vh}),v.createElement("instancedBufferAttribute",{attach:"instanceColor",count:d.length/3,array:d,itemSize:3,usage:Vh}),typeof n=="function"?v.createElement(o.Provider,{value:p},n(a)):v.createElement(Ip.Provider,{value:p},n))}),Fp=v.createContext(null),x1=v.forwardRef((n,e)=>{v.useMemo(()=>mu({SegmentObject:w1}),[]);const{limit:t=1e3,lineWidth:s=1,children:r,...i}=n,[o,a]=v.useState([]),[c]=v.useState(()=>new gu),[l]=v.useState(()=>new B_),[u]=v.useState(()=>new W_),[h]=v.useState(()=>new ke(512,512)),[d]=v.useState(()=>Array(t*6).fill(0)),[f]=v.useState(()=>Array(t*6).fill(0)),m=v.useMemo(()=>({subscribe:p=>(a(g=>[...g,p]),()=>a(g=>g.filter(_=>_.current!==p.current)))}),[]);return nn(()=>{for(let g=0;gn instanceof ye?n:new ye(...typeof n=="number"?[n,n,n]:n),T1=v.forwardRef(({color:n,start:e,end:t},s)=>{const r=v.useContext(Fp);if(!r)throw"Segment must used inside Segments component.";const i=v.useRef(null);return v.useLayoutEffect(()=>r.subscribe(i),[]),v.createElement("segmentObject",{ref:ic([i,s]),color:n,start:md(e),end:md(t)})});function k1({all:n,scene:e,camera:t}){const s=Ye(({gl:o})=>o),r=Ye(({camera:o})=>o),i=Ye(({scene:o})=>o);return v.useLayoutEffect(()=>{const o=[];n&&(e||i).traverse(l=>{l.visible===!1&&(o.push(l),l.visible=!0)}),s.compile(e||i,t||r);const a=new fy(128);new py(.01,1e5,a).update(s,e||i),a.dispose(),o.forEach(l=>l.visible=!1)},[]),null}function gd({pixelated:n}){const e=Ye(o=>o.gl),t=Ye(o=>o.internal.active),s=Ye(o=>o.performance.current),r=Ye(o=>o.viewport.initialDpr),i=Ye(o=>o.setDpr);return v.useEffect(()=>{const o=e.domElement;return()=>{t&&i(r),n&&o&&(o.style.imageRendering="auto")}},[]),v.useEffect(()=>{i(s*r),n&&e.domElement&&(e.domElement.style.imageRendering=s===1?"auto":"pixelated")},[s]),null}function _d(){const n=Ye(s=>s.get),e=Ye(s=>s.setEvents),t=Ye(s=>s.performance.current);return v.useEffect(()=>{const s=n().events.enabled;return()=>e({enabled:s})},[]),v.useEffect(()=>e({enabled:t===1}),[t]),null}const E1=v.createContext(null);function C1({children:n,enabled:e=!0}){const[t,s]=v.useState([]),r=v.useMemo(()=>({selected:t,select:s,enabled:e}),[t,s,e]);return M.jsx(E1.Provider,{value:r,children:n})}function S1(n,e){typeof n=="function"?n(e):n!=null&&(n.current=e)}function Lp(...n){return e=>n.forEach(t=>S1(t,e))}function ei(...n){return v.useCallback(Lp(...n),n)}const jp=v.forwardRef((n,e)=>{const{children:t,...s}=n,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(xl,Se({},s,{ref:e}),v.isValidElement(o)?v.cloneElement(o,void 0,a):null)}return v.createElement(xl,Se({},s,{ref:e}),t)});jp.displayName="Slot";const xl=v.forwardRef((n,e)=>{const{children:t,...s}=n;return v.isValidElement(t)?v.cloneElement(t,{...A1(s,t.props),ref:e?Lp(e,t.ref):t.ref}):v.Children.count(t)>1?v.Children.only(null):null});xl.displayName="SlotClone";const zp=({children:n})=>v.createElement(v.Fragment,null,n);function O1(n){return v.isValidElement(n)&&n.type===zp}function A1(n,e){const t={...e};for(const s in e){const r=n[s],i=e[s];/^on[A-Z]/.test(s)?r&&i?t[s]=(...a)=>{i(...a),r(...a)}:r&&(t[s]=r):s==="style"?t[s]={...r,...i}:s==="className"&&(t[s]=[r,i].filter(Boolean).join(" "))}return{...n,...t}}const R1=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],ar=R1.reduce((n,e)=>{const t=v.forwardRef((s,r)=>{const{asChild:i,...o}=s,a=i?jp:e;return v.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),v.createElement(a,Se({},o,{ref:r}))});return t.displayName=`Primitive.${e}`,{...n,[e]:t}},{});function D1(n,e){n&&fu.flushSync(()=>n.dispatchEvent(e))}const P1=v.forwardRef((n,e)=>{var t;const{container:s=globalThis==null||(t=globalThis.document)===null||t===void 0?void 0:t.body,...r}=n;return s?up.createPortal(v.createElement(ar.div,Se({},r,{ref:e})),s):null}),M1=P1;var yd=Object.prototype.hasOwnProperty;function zi(n,e){var t,s;if(n===e)return!0;if(n&&e&&(t=n.constructor)===e.constructor){if(t===Date)return n.getTime()===e.getTime();if(t===RegExp)return n.toString()===e.toString();if(t===Array){if((s=n.length)===e.length)for(;s--&&zi(n[s],e[s]););return s===-1}if(!t||typeof n=="object"){s=0;for(t in n)if(yd.call(n,t)&&++s&&!yd.call(e,t)||!(t in e)||!zi(n[t],e[t]))return!1;return Object.keys(e).length===s}}return n!==n&&e!==e}function yo(n,e){if(Object.is(n,e))return!0;if(typeof n!="object"||n===null||typeof e!="object"||e===null)return!1;const t=Object.keys(n);if(t.length!==Object.keys(e).length)return!1;for(let s=0;s0;)o[a]=arguments[a+4];n.call(this,o),n.captureStackTrace&&n.captureStackTrace(this,e),this.rule=t,this.value=s,this.cause=r,this.target=i}return n&&(e.__proto__=n),e.prototype=Object.create(n&&n.prototype),e.prototype.constructor=e,e}(Error),On=function(e,t){e===void 0&&(e=[]),t===void 0&&(t=[]),this.chain=e,this.nextRuleModifiers=t};On.prototype._applyRule=function(e,t){var s=this;return function(){for(var r=[],i=arguments.length;i--;)r[i]=arguments[i];return s.chain.push(new fc(t,e.apply(s,r),r,s.nextRuleModifiers)),s.nextRuleModifiers=[],s}};On.prototype._applyModifier=function(e,t){return this.nextRuleModifiers.push(new N1(t,e.simple,e.async)),this};On.prototype._clone=function(){return new On(this.chain.slice(),this.nextRuleModifiers.slice())};On.prototype.test=function(e){return this.chain.every(function(t){return t._test(e)})};On.prototype.testAll=function(e){var t=[];return this.chain.forEach(function(s){try{s._check(e)}catch(r){t.push(new Cu(s,e,r))}}),t};On.prototype.check=function(e){this.chain.forEach(function(t){try{t._check(e)}catch(s){throw new Cu(t,e,s)}})};On.prototype.testAsync=function(e){var t=this;return new Promise(function(s,r){Bp(e,t.chain.slice(),s,r)})};function Bp(n,e,t,s){if(e.length){var r=e.shift();r._testAsync(n).then(function(){Bp(n,e,t,s)},function(i){s(new Cu(r,n,i))})}else t(n)}var vd=function(n,e){return e&&typeof n=="string"&&n.trim().length===0?!0:n==null};function I1(n,e){return e===void 0&&(e=!1),{simple:function(t){return vd(t,e)||n.check(t)===void 0},async:function(t){return vd(t,e)||n.testAsync(t)}}}function Ot(){return typeof Proxy<"u"?Wp(new On):wl(new On)}var Vi={};Ot.extend=function(n){Object.assign(Vi,n)};Ot.clearCustomRules=function(){Vi={}};function Wp(n){return new Proxy(n,{get:function(t,s){if(s in t)return t[s];var r=Wp(n._clone());if(s in va)return r._applyModifier(va[s],s);if(s in Vi)return r._applyRule(Vi[s],s);if(s in Tl)return r._applyRule(Tl[s],s)}})}function wl(n){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=wl(i._clone()),u=l._applyRule(r[o],o).apply(void 0,a);return u}}),i},t=e(Tl,n),s=e(Vi,t);return Object.keys(va).forEach(function(r){Object.defineProperty(s,r,{get:function(){var i=wl(s._clone());return i._applyModifier(va[r],r)}})}),s}var va={not:{simple:function(n){return function(e){return!n(e)}},async:function(n){return function(e){return Promise.resolve(n(e)).then(function(t){return!t}).catch(function(){return!0})}}},some:{simple:function(n){return function(e){return Bo(e).some(function(t){try{return n(t)}catch{return!1}})}},async:function(n){return function(e){return Promise.all(Bo(e).map(function(t){try{return n(t).catch(function(){return!1})}catch{return!1}})).then(function(t){return t.some(Boolean)})}}},every:{simple:function(n){return function(e){return e!==!1&&Bo(e).every(n)}},async:function(n){return function(e){return Promise.all(Bo(e).map(n)).then(function(t){return t.every(Boolean)})}}},strict:{simple:function(n,e){return function(t){return bd(e)&&t&&typeof t=="object"?Object.keys(e.args[0]).length===Object.keys(t).length&&n(t):n(t)}},async:function(n,e){return function(t){return Promise.resolve(n(t)).then(function(s){return bd(e)&&t&&typeof t=="object"?Object.keys(e.args[0]).length===Object.keys(t).length&&s:s}).catch(function(){return!1})}}}};function bd(n){return n&&n.name==="schema"&&n.args.length>0&&typeof n.args[0]=="object"}function Bo(n){return typeof n=="string"?n.split(""):n}var Tl={equal:function(n){return function(e){return e==n}},exact:function(n){return function(e){return e===n}},number:function(n){return n===void 0&&(n=!0),function(e){return typeof e=="number"&&(n||isFinite(e))}},integer:function(){return function(n){var e=Number.isInteger||$1;return e(n)}},numeric:function(){return function(n){return!isNaN(parseFloat(n))&&isFinite(n)}},string:function(){return vr("string")},boolean:function(){return vr("boolean")},undefined:function(){return vr("undefined")},null:function(){return vr("null")},array:function(){return vr("array")},object:function(){return vr("object")},instanceOf:function(n){return function(e){return e instanceof n}},pattern:function(n){return function(e){return n.test(e)}},lowercase:function(){return function(n){return typeof n=="boolean"||n===n.toLowerCase()&&n.trim()!==""}},uppercase:function(){return function(n){return n===n.toUpperCase()&&n.trim()!==""}},vowel:function(){return function(n){return/^[aeiou]+$/i.test(n)}},consonant:function(){return function(n){return/^(?=[^aeiou])([a-z]+)$/i.test(n)}},first:function(n){return function(e){return e[0]==n}},last:function(n){return function(e){return e[e.length-1]==n}},empty:function(){return function(n){return n.length===0}},length:function(n,e){return function(t){return t.length>=n&&t.length<=(e||n)}},minLength:function(n){return function(e){return e.length>=n}},maxLength:function(n){return function(e){return e.length<=n}},negative:function(){return function(n){return n<0}},positive:function(){return function(n){return n>=0}},between:function(n,e){return function(t){return t>=n&&t<=e}},range:function(n,e){return function(t){return t>=n&&t<=e}},lessThan:function(n){return function(e){return en}},greaterThanOrEqual:function(n){return function(e){return e>=n}},even:function(){return function(n){return n%2===0}},odd:function(){return function(n){return n%2!==0}},includes:function(n){return function(e){return~e.indexOf(n)}},schema:function(n){return F1(n)},passesAnyOf:function(){for(var n=[],e=arguments.length;e--;)n[e]=arguments[e];return function(t){return n.some(function(s){return s.test(t)})}},optional:I1};function vr(n){return function(e){return Array.isArray(e)&&n==="array"||e===null&&n==="null"||typeof e===n}}function $1(n){return typeof n=="number"&&isFinite(n)&&Math.floor(n)===n}function F1(n){return{simple:function(e){var t=[];if(Object.keys(n).forEach(function(s){var r=n[s];try{r.check((e||{})[s])}catch(i){i.target=s,t.push(i)}}),t.length>0)throw t;return!0},async:function(e){var t=[],s=Object.keys(n).map(function(r){var i=n[r];return i.testAsync((e||{})[r]).catch(function(o){o.target=r,t.push(o)})});return Promise.all(s).then(function(){if(t.length>0)throw t;return!0})}}}function Vn(n,e,{checkForDefaultPrevented:t=!0}={}){return function(r){if(n==null||n(r),t===!1||!r.defaultPrevented)return e==null?void 0:e(r)}}function qp(n,e=[]){let t=[];function s(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[n][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[n][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[n])||i;return v.useMemo(()=>({[`__scope${n}`]:{...a,[n]:c}}),[a,c])}};return r.scopeName=n,[s,L1(r,...e)]}function L1(...n){const e=n[0];if(n.length===1)return e;const t=()=>{const s=n.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(i){const o=s.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 ti(n){const e=v.useRef(n);return v.useEffect(()=>{e.current=n}),v.useMemo(()=>(...t)=>{var s;return(s=e.current)===null||s===void 0?void 0:s.call(e,...t)},[])}function j1(n,e=globalThis==null?void 0:globalThis.document){const t=ti(n);v.useEffect(()=>{const s=r=>{r.key==="Escape"&&t(r)};return e.addEventListener("keydown",s),()=>e.removeEventListener("keydown",s)},[t,e])}const kl="dismissableLayer.update",z1="dismissableLayer.pointerDownOutside",V1="dismissableLayer.focusOutside";let xd;const U1=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),B1=v.forwardRef((n,e)=>{var t;const{disableOutsidePointerEvents:s=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:o,onInteractOutside:a,onDismiss:c,...l}=n,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=ei(e,w=>d(w)),g=Array.from(u.layers),[_]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),k=g.indexOf(_),T=h?g.indexOf(h):-1,b=u.layersWithOutsidePointerEventsDisabled.size>0,y=T>=k,x=W1(w=>{const C=w.target,A=[...u.branches].some(D=>D.contains(C));!y||A||(i==null||i(w),a==null||a(w),w.defaultPrevented||c==null||c())},f),E=q1(w=>{const C=w.target;[...u.branches].some(D=>D.contains(C))||(o==null||o(w),a==null||a(w),w.defaultPrevented||c==null||c())},f);return j1(w=>{T===u.layers.size-1&&(r==null||r(w),!w.defaultPrevented&&c&&(w.preventDefault(),c()))},f),v.useEffect(()=>{if(h)return s&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(xd=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(h)),u.layers.add(h),wd(),()=>{s&&u.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=xd)}},[h,f,s,u]),v.useEffect(()=>()=>{h&&(u.layers.delete(h),u.layersWithOutsidePointerEventsDisabled.delete(h),wd())},[h,u]),v.useEffect(()=>{const w=()=>m({});return document.addEventListener(kl,w),()=>document.removeEventListener(kl,w)},[]),v.createElement(ar.div,Se({},l,{ref:p,style:{pointerEvents:b?y?"auto":"none":void 0,...n.style},onFocusCapture:Vn(n.onFocusCapture,E.onFocusCapture),onBlurCapture:Vn(n.onBlurCapture,E.onBlurCapture),onPointerDownCapture:Vn(n.onPointerDownCapture,x.onPointerDownCapture)}))});function W1(n,e=globalThis==null?void 0:globalThis.document){const t=ti(n),s=v.useRef(!1),r=v.useRef(()=>{});return v.useEffect(()=>{const i=a=>{if(a.target&&!s.current){let l=function(){Hp(z1,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);s.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:()=>s.current=!0}}function q1(n,e=globalThis==null?void 0:globalThis.document){const t=ti(n),s=v.useRef(!1);return v.useEffect(()=>{const r=i=>{i.target&&!s.current&&Hp(V1,t,{originalEvent:i},{discrete:!1})};return e.addEventListener("focusin",r),()=>e.removeEventListener("focusin",r)},[e,t]),{onFocusCapture:()=>s.current=!0,onBlurCapture:()=>s.current=!1}}function wd(){const n=new CustomEvent(kl);document.dispatchEvent(n)}function Hp(n,e,t,{discrete:s}){const r=t.originalEvent.target,i=new CustomEvent(n,{bubbles:!1,cancelable:!0,detail:t});e&&r.addEventListener(n,e,{once:!0}),s?D1(r,i):r.dispatchEvent(i)}const Lr=globalThis!=null&&globalThis.document?v.useLayoutEffect:()=>{},H1=I_["useId".toString()]||(()=>{});let Y1=0;function G1(n){const[e,t]=v.useState(H1());return Lr(()=>{n||t(s=>s??String(Y1++))},[n]),n||(e?`radix-${e}`:"")}const X1=v.forwardRef((n,e)=>{const{children:t,width:s=10,height:r=5,...i}=n;return v.createElement(ar.svg,Se({},i,{ref:e,width:s,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),n.asChild?t:v.createElement("polygon",{points:"0,0 30,0 15,10"}))}),Z1=X1;function K1(n){const[e,t]=v.useState(void 0);return Lr(()=>{if(n){t({width:n.offsetWidth,height:n.offsetHeight});const s=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=n.offsetWidth,a=n.offsetHeight;t({width:o,height:a})});return s.observe(n,{box:"border-box"}),()=>s.unobserve(n)}else t(void 0)},[n]),e}const Yp="Popper",[Gp,Xp]=qp(Yp),[Q1,Zp]=Gp(Yp),J1=n=>{const{__scopePopper:e,children:t}=n,[s,r]=v.useState(null);return v.createElement(Q1,{scope:e,anchor:s,onAnchorChange:r},t)},ev="PopperAnchor",tv=v.forwardRef((n,e)=>{const{__scopePopper:t,virtualRef:s,...r}=n,i=Zp(ev,t),o=v.useRef(null),a=ei(e,o);return v.useEffect(()=>{i.onAnchorChange((s==null?void 0:s.current)||o.current)}),s?null:v.createElement(ar.div,Se({},r,{ref:a}))}),Kp="PopperContent",[nv,sv]=Gp(Kp),rv=v.forwardRef((n,e)=>{var t,s,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:k=0,sticky:T="partial",hideWhenDetached:b=!1,updatePositionStrategy:y="optimized",onPlaced:x,...E}=n,w=Zp(Kp,u),[C,A]=v.useState(null),D=ei(e,H=>A(H)),[O,L]=v.useState(null),j=K1(O),W=(t=j==null?void 0:j.width)!==null&&t!==void 0?t:0,V=(s=j==null?void 0:j.height)!==null&&s!==void 0?s:0,U=h+(f!=="center"?"-"+f:""),B=typeof k=="number"?k:{top:0,right:0,bottom:0,left:0,...k},X=Array.isArray(_)?_:[_],K=X.length>0,J={padding:B,boundary:X.filter(cv),altBoundary:K},{refs:F,floatingStyles:z,placement:S,isPositioned:I,middlewareData:Y}=n1({strategy:"fixed",placement:U,whileElementsMounted:(...H)=>Jy(...H,{animationFrame:y==="always"}),elements:{reference:w.anchor},middleware:[Py({mainAxis:d+V,alignmentAxis:m}),g&&My({mainAxis:!0,crossAxis:!1,limiter:T==="partial"?Ny():void 0,...J}),g&&Ay({...J}),Iy({...J,apply:({elements:H,rects:P,availableWidth:R,availableHeight:Q})=>{const{width:se,height:le}=P.reference,be=H.floating.style;be.setProperty("--radix-popper-available-width",`${R}px`),be.setProperty("--radix-popper-available-height",`${Q}px`),be.setProperty("--radix-popper-anchor-width",`${se}px`),be.setProperty("--radix-popper-anchor-height",`${le}px`)}}),O&&t1({element:O,padding:p}),lv({arrowWidth:W,arrowHeight:V}),b&&Ry({strategy:"referenceHidden",...J})]}),[$,q]=Qp(S),oe=ti(x);Lr(()=>{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,[ge,te]=v.useState();return Lr(()=>{C&&te(window.getComputedStyle(C).zIndex)},[C]),v.createElement("div",{ref:F.setFloating,"data-radix-popper-content-wrapper":"",style:{...z,transform:I?z.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ge,"--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:n.dir},v.createElement(nv,{scope:u,placedSide:$,onArrowChange:L,arrowX:re,arrowY:ie,shouldHideArrow:ne},v.createElement(ar.div,Se({"data-side":$,"data-align":q},E,{ref:D,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:s,...r}=e,i=sv(iv,s),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,Se({},r,{ref:t,style:{...r.style,display:"block"}})))});function cv(n){return n!==null}const lv=n=>({name:"transformOrigin",options:n,fn(e){var t,s,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:n.arrowWidth,f=h?0:n.arrowHeight,[m,p]=Qp(a),g={start:"0%",center:"50%",end:"100%"}[p],_=((s=(r=l.arrow)===null||r===void 0?void 0:r.x)!==null&&s!==void 0?s:0)+d/2,k=((i=(o=l.arrow)===null||o===void 0?void 0:o.y)!==null&&i!==void 0?i:0)+f/2;let T="",b="";return m==="bottom"?(T=h?g:`${_}px`,b=`${-f}px`):m==="top"?(T=h?g:`${_}px`,b=`${c.floating.height+f}px`):m==="right"?(T=`${-f}px`,b=h?g:`${k}px`):m==="left"&&(T=`${c.floating.width+f}px`,b=h?g:`${k}px`),{data:{x:T,y:b}}}});function Qp(n){const[e,t="center"]=n.split("-");return[e,t]}const uv=J1,hv=tv,dv=rv,fv=av;function pv(n,e){return v.useReducer((t,s)=>{const r=e[t][s];return r??t},n)}const Jp=n=>{const{present:e,children:t}=n,s=mv(e),r=typeof t=="function"?t({present:s.isPresent}):v.Children.only(t),i=ei(s.ref,r.ref);return typeof t=="function"||s.isPresent?v.cloneElement(r,{ref:i}):null};Jp.displayName="Presence";function mv(n){const[e,t]=v.useState(),s=v.useRef({}),r=v.useRef(n),i=v.useRef("none"),o=n?"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=Wo(s.current);i.current=a==="mounted"?l:"none"},[a]),Lr(()=>{const l=s.current,u=r.current;if(u!==n){const d=i.current,f=Wo(l);n?c("MOUNT"):f==="none"||(l==null?void 0:l.display)==="none"?c("UNMOUNT"):c(u&&d!==f?"ANIMATION_OUT":"UNMOUNT"),r.current=n}},[n,c]),Lr(()=>{if(e){const l=h=>{const f=Wo(s.current).includes(h.animationName);h.target===e&&f&&fu.flushSync(()=>c("ANIMATION_END"))},u=h=>{h.target===e&&(i.current=Wo(s.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&&(s.current=getComputedStyle(l)),t(l)},[])}}function Wo(n){return(n==null?void 0:n.animationName)||"none"}function gv({prop:n,defaultProp:e,onChange:t=()=>{}}){const[s,r]=_v({defaultProp:e,onChange:t}),i=n!==void 0,o=i?n:s,a=ti(t),c=v.useCallback(l=>{if(i){const h=typeof l=="function"?l(n):l;h!==n&&a(h)}else r(l)},[i,n,r,a]);return[o,c]}function _v({defaultProp:n,onChange:e}){const t=v.useState(n),[s]=t,r=v.useRef(s),i=ti(e);return v.useEffect(()=>{r.current!==s&&(i(s),r.current=s)},[s,r,i]),t}const yv=v.forwardRef((n,e)=>v.createElement(ar.span,Se({},n,{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",...n.style}}))),vv=yv,[pc,oM]=qp("Tooltip",[Xp]),mc=Xp(),bv="TooltipProvider",El="tooltip.open",[aM,Su]=pc(bv),Ou="Tooltip",[xv,gc]=pc(Ou),wv=n=>{const{__scopeTooltip:e,children:t,open:s,defaultOpen:r=!1,onOpenChange:i,disableHoverableContent:o,delayDuration:a}=n,c=Su(Ou,n.__scopeTooltip),l=mc(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,k]=gv({prop:s,defaultProp:r,onChange:E=>{E?(c.onOpen(),document.dispatchEvent(new CustomEvent(El))):c.onClose(),i==null||i(E)}}),T=v.useMemo(()=>_?g.current?"delayed-open":"instant-open":"closed",[_]),b=v.useCallback(()=>{window.clearTimeout(f.current),g.current=!1,k(!0)},[k]),y=v.useCallback(()=>{window.clearTimeout(f.current),k(!1)},[k]),x=v.useCallback(()=>{window.clearTimeout(f.current),f.current=window.setTimeout(()=>{g.current=!0,k(!0)},p)},[p,k]);return v.useEffect(()=>()=>window.clearTimeout(f.current),[]),v.createElement(uv,l,v.createElement(xv,{scope:e,contentId:d,open:_,stateAttribute:T,trigger:u,onTriggerChange:h,onTriggerEnter:v.useCallback(()=>{c.isOpenDelayed?x():b()},[c.isOpenDelayed,x,b]),onTriggerLeave:v.useCallback(()=>{m?y():window.clearTimeout(f.current)},[y,m]),onOpen:b,onClose:y,disableHoverableContent:m},t))},Td="TooltipTrigger",Tv=v.forwardRef((n,e)=>{const{__scopeTooltip:t,...s}=n,r=gc(Td,t),i=Su(Td,t),o=mc(t),a=v.useRef(null),c=ei(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,Se({asChild:!0},o),v.createElement(ar.button,Se({"aria-describedby":r.open?r.contentId:void 0,"data-state":r.stateAttribute},s,{ref:c,onPointerMove:Vn(n.onPointerMove,d=>{d.pointerType!=="touch"&&!u.current&&!i.isPointerInTransitRef.current&&(r.onTriggerEnter(),u.current=!0)}),onPointerLeave:Vn(n.onPointerLeave,()=>{r.onTriggerLeave(),u.current=!1}),onPointerDown:Vn(n.onPointerDown,()=>{l.current=!0,document.addEventListener("pointerup",h,{once:!0})}),onFocus:Vn(n.onFocus,()=>{l.current||r.onOpen()}),onBlur:Vn(n.onBlur,r.onClose),onClick:Vn(n.onClick,r.onClose)})))}),kv="TooltipPortal",[cM,Ev]=pc(kv,{forceMount:void 0}),Ui="TooltipContent",Cv=v.forwardRef((n,e)=>{const t=Ev(Ui,n.__scopeTooltip),{forceMount:s=t.forceMount,side:r="top",...i}=n,o=gc(Ui,n.__scopeTooltip);return v.createElement(Jp,{present:s||o.open},o.disableHoverableContent?v.createElement(e0,Se({side:r},i,{ref:e})):v.createElement(Sv,Se({side:r},i,{ref:e})))}),Sv=v.forwardRef((n,e)=>{const t=gc(Ui,n.__scopeTooltip),s=Su(Ui,n.__scopeTooltip),r=v.useRef(null),i=ei(e,r),[o,a]=v.useState(null),{trigger:c,onClose:l}=t,u=r.current,{onPointerInTransitChange:h}=s,d=v.useCallback(()=>{a(null),h(!1)},[h]),f=v.useCallback((m,p)=>{const g=m.currentTarget,_={x:m.clientX,y:m.clientY},k=Pv(_,g.getBoundingClientRect()),T=Mv(_,k),b=Nv(p.getBoundingClientRect()),y=$v([...T,...b]);a(y),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},k=(c==null?void 0:c.contains(g))||(u==null?void 0:u.contains(g)),T=!Iv(_,o);k?d():T&&(d(),l())};return document.addEventListener("pointermove",m),()=>document.removeEventListener("pointermove",m)}},[c,u,o,l,d]),v.createElement(e0,Se({},n,{ref:i}))}),[Ov,Av]=pc(Ou,{isInside:!1}),e0=v.forwardRef((n,e)=>{const{__scopeTooltip:t,children:s,"aria-label":r,onEscapeKeyDown:i,onPointerDownOutside:o,...a}=n,c=gc(Ui,t),l=mc(t),{onClose:u}=c;return v.useEffect(()=>(document.addEventListener(El,u),()=>document.removeEventListener(El,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,Se({"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(zp,null,s),v.createElement(Ov,{scope:t,isInside:!0},v.createElement(vv,{id:c.contentId,role:"tooltip"},r||s))))}),Rv="TooltipArrow",Dv=v.forwardRef((n,e)=>{const{__scopeTooltip:t,...s}=n,r=mc(t);return Av(Rv,t).isInside?null:v.createElement(fv,Se({},r,s,{ref:e}))});function Pv(n,e){const t=Math.abs(e.top-n.y),s=Math.abs(e.bottom-n.y),r=Math.abs(e.right-n.x),i=Math.abs(e.left-n.x);switch(Math.min(t,s,r,i)){case i:return"left";case r:return"right";case t:return"top";case s:return"bottom";default:throw new Error("unreachable")}}function Mv(n,e,t=5){const s=[];switch(e){case"top":s.push({x:n.x-t,y:n.y+t},{x:n.x+t,y:n.y+t});break;case"bottom":s.push({x:n.x-t,y:n.y-t},{x:n.x+t,y:n.y-t});break;case"left":s.push({x:n.x+t,y:n.y-t},{x:n.x+t,y:n.y+t});break;case"right":s.push({x:n.x-t,y:n.y-t},{x:n.x-t,y:n.y+t});break}return s}function Nv(n){const{top:e,right:t,bottom:s,left:r}=n;return[{x:r,y:e},{x:t,y:e},{x:t,y:s},{x:r,y:s}]}function Iv(n,e){const{x:t,y:s}=n;let r=!1;for(let i=0,o=e.length-1;is!=u>s&&t<(l-a)*(s-c)/(u-c)+a&&(r=!r)}return r}function $v(n){const e=n.slice();return e.sort((t,s)=>t.xs.x?1:t.ys.y?1:0),Fv(e)}function Fv(n){if(n.length<=1)return n.slice();const e=[];for(let s=0;s=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 s=n.length-1;s>=0;s--){const r=n[s];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=Tv,zv=Cv,Vv=Dv;function Uv(n,e){if(n==null)return{};var t={},s=Object.keys(n),r,i;for(i=0;i=0)&&(t[r]=n[r]);return t}function De(n,e){if(n==null)return{};var t=Uv(n,e),s,r;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(n,s)&&(t[s]=n[s])}return t}let He;(function(n){n[n.UNSUPPORTED_INPUT=0]="UNSUPPORTED_INPUT",n[n.NO_COMPONENT_FOR_TYPE=1]="NO_COMPONENT_FOR_TYPE",n[n.UNKNOWN_INPUT=2]="UNKNOWN_INPUT",n[n.DUPLICATE_KEYS=3]="DUPLICATE_KEYS",n[n.ALREADY_REGISTERED_TYPE=4]="ALREADY_REGISTERED_TYPE",n[n.CLIPBOARD_ERROR=5]="CLIPBOARD_ERROR",n[n.THEME_ERROR=6]="THEME_ERROR",n[n.PATH_DOESNT_EXIST=7]="PATH_DOESNT_EXIST",n[n.INPUT_TYPE_OVERRIDE=8]="INPUT_TYPE_OVERRIDE",n[n.EMPTY_KEY=9]="EMPTY_KEY"})(He||(He={}));const Bv={[He.UNSUPPORTED_INPUT]:(n,e)=>[`An input with type \`${n}\` input was found at path \`${e}\` but it's not supported yet.`],[He.NO_COMPONENT_FOR_TYPE]:(n,e)=>[`Type \`${n}\` found at path \`${e}\` can't be displayed in panel because no component supports it yet.`],[He.UNKNOWN_INPUT]:(n,e)=>[`input at path \`${n}\` is not recognized.`,e],[He.DUPLICATE_KEYS]:(n,e,t)=>[`Key \`${n}\` of path \`${e}\` already exists at path \`${t}\`. Even nested keys need to be unique. Rename one of the keys.`],[He.ALREADY_REGISTERED_TYPE]:n=>[`Type ${n} has already been registered. You can't register a component with the same type.`],[He.CLIPBOARD_ERROR]:n=>["Error copying the value",n],[He.THEME_ERROR]:(n,e)=>[`Error accessing the theme \`${n}.${e}\` value.`],[He.PATH_DOESNT_EXIST]:n=>[`Error getting the value at path \`${n}\`. There is probably an error in your \`render\` function.`],[He.PATH_DOESNT_EXIST]:n=>[`Error accessing the value at path \`${n}\``],[He.INPUT_TYPE_OVERRIDE]:(n,e,t)=>[`Input at path \`${n}\` already exists with type: \`${e}\`. Its type cannot be overridden with type \`${t}\`.`],[He.EMPTY_KEY]:()=>["Keys can not be empty, if you want to hide a label use whitespace."]};function t0(n,e,...t){const[s,...r]=Bv[e](...t);console[n]("LEVA: "+s,...r)}const Bn=t0.bind(null,"warn"),Wv=t0.bind(null,"log"),qv=["value"],Hv=["schema"],Yv=["value"],n0=[],Js={};function kd(n){let{value:e}=n,t=De(n,qv);for(let s of n0){const r=s(e,t);if(r)return r}}function ns(n,e){let{schema:t}=e,s=De(e,Hv);if(n in Js){Bn(He.ALREADY_REGISTERED_TYPE,n);return}n0.push((r,i)=>t(r,i)&&n),Js[n]=s}function Zc(n,e,t,s){const{normalize:r}=Js[n];if(r)return r(e,t,s);if(typeof e!="object"||!("value"in e))return{value:e};const{value:i}=e,o=De(e,Yv);return{value:i,settings:o}}function Gv(n,e,t,s,r,i){const{sanitize:o}=Js[n];return o?o(e,t,s,r,i):e}function Ed(n,e,t){const{format:s}=Js[n];return s?s(e,t):e}function Xv(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function Cd(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(n);e&&(s=s.filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable})),t.push.apply(t,s)}return t}function de(n){for(var e=1;en>t?t:n{if(n===""||typeof n=="number")return n;try{const e=ls(n);if(!isNaN(e))return e}catch{}return parseFloat(n)},Kv=Math.log(10);function Sd(n){let e=Math.abs(+String(n).replace(".",""));if(e===0)return .01;for(;e!==0&&e%10===0;)e/=10;const t=Math.floor(Math.log(e)/Kv)+1,s=Math.floor(Math.log10(Math.abs(n))),r=Math.pow(10,s-t);return Math.max(r,.001)}const ba=(n,e,t)=>t===e?0:(xs(n,e,t)-e)/(t-e),xa=(n,e,t)=>n*(t-e)+e,Qv=()=>"_"+Math.random().toString(36).substr(2,9),Od=/\(([0-9+\-*/^ .]+)\)/,Ad=/(\d+(?:\.\d+)?) ?\^ ?(\d+(?:\.\d+)?)/,Rd=/(\d+(?:\.\d+)?) ?\* ?(\d+(?:\.\d+)?)/,Dd=/(\d+(?:\.\d+)?) ?\/ ?(\d+(?:\.\d+)?)/,Pd=/(\d+(?:\.\d+)?) ?\+ ?(\d+(?:\.\d+)?)/,Md=/(\d+(?:\.\d+)?) ?- ?(\d+(?:\.\d+)?)/;function ls(n){if(isNaN(Number(n)))if(Od.test(n)){const e=n.replace(Od,(t,s)=>String(ls(s)));return ls(e)}else if(Ad.test(n)){const e=n.replace(Ad,(t,s,r)=>String(Math.pow(Number(s),Number(r))));return ls(e)}else if(Rd.test(n)){const e=n.replace(Rd,(t,s,r)=>String(Number(s)*Number(r)));return ls(e)}else if(Dd.test(n)){const e=n.replace(Dd,(t,s,r)=>{if(r!=0)return String(Number(s)/Number(r));throw new Error("Division by zero")});return ls(e)}else if(Pd.test(n)){const e=n.replace(Pd,(t,s,r)=>String(Number(s)+Number(r)));return ls(e)}else if(Md.test(n)){const e=n.replace(Md,(t,s,r)=>String(Number(s)-Number(r)));return ls(e)}else return Number(n);return Number(n)}function Jv(n,e){return e.reduce((t,s)=>(n&&n.hasOwnProperty(s)&&(t[s]=n[s]),t),{})}function eb(n,e){const t=de({},n);return e.forEach(s=>s in n&&delete t[s]),t}function tb(n,e){return n.reduce((t,s,r)=>Object.assign(t,{[e[r]]:s}),{})}function s0(n){return Object.prototype.toString.call(n)==="[object Object]"}const nb=n=>s0(n)&&Object.keys(n).length===0;let un;(function(n){n.BUTTON="BUTTON",n.BUTTON_GROUP="BUTTON_GROUP",n.MONITOR="MONITOR",n.FOLDER="FOLDER"})(un||(un={}));let dn;(function(n){n.SELECT="SELECT",n.IMAGE="IMAGE",n.NUMBER="NUMBER",n.COLOR="COLOR",n.STRING="STRING",n.BOOLEAN="BOOLEAN",n.INTERVAL="INTERVAL",n.VECTOR3D="VECTOR3D",n.VECTOR2D="VECTOR2D"})(dn||(dn={}));const sb=["type","__customInput"],rb=["render","label","optional","order","disabled","hint","onChange","onEditStart","onEditEnd","transient"],ib=["type"];function r0(n,e,t={},s){var r,i;if(typeof n!="object"||Array.isArray(n))return{type:s,input:n,options:de({key:e,label:e,optional:!1,disabled:!1,order:0},t)};if("__customInput"in n){const{type:y,__customInput:x}=n,E=De(n,sb);return r0(x,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}=n,g=De(n,rb),_=de({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:k}=g,T=De(g,ib);if(k=s??k,k in un)return{type:k,input:T,options:_};let b;return s&&s0(T)&&"value"in T?b=T.value:b=nb(T)?void 0:T,{type:k,input:b,options:de(de({},_),{},{onChange:d,optional:(r=_.optional)!==null&&r!==void 0?r:!1,disabled:(i=_.disabled)!==null&&i!==void 0?i:!1})}}function ob(n,e,t,s){const r=r0(n,e),{type:i,input:o,options:a}=r;if(i)return i in un?r:{type:i,input:Zc(i,o,t,s),options:a};let c=kd(o);return c?{type:c,input:Zc(c,o,t,s),options:a}:(c=kd({value:o}),c?{type:c,input:Zc(c,{value:o},t,s),options:a}:!1)}function Nd(n,e,t,s,r){const{value:i,type:o,settings:a}=n;n.value=i0({type:o,value:i,settings:a},e,t,s),n.fromPanel=r}const ab=function(e,t,s){this.type="LEVA_ERROR",this.message="LEVA: "+e,this.previousValue=t,this.error=s};function i0({type:n,value:e,settings:t},s,r,i){const o=n!=="SELECT"&&typeof s=="function"?s(e):s;let a;try{a=Gv(n,o,t,e,r,i)}catch(c){throw new ab(`The value \`${s}\` did not result in a correct value.`,e,c)}return zi(a,e)?e:a}const o0=(n,e,t=!1)=>{let s=0;return function(){const r=arguments,i=t&&!s,o=()=>n.apply(this,r);window.clearTimeout(s),s=window.setTimeout(o,e),i&&o()}},a0=n=>n.shiftKey?5:n.altKey?1/5:1;function cb(n,e){const t=console.error;console.error=()=>{},up.render(n,e),console.error=t}const lb=["value"],ub=["min","max"],hb=n=>{if(typeof n=="number")return!0;if(typeof n=="string"){const e=parseFloat(n);return isNaN(e)?!1:n.substring((""+e).length).trim().length<4}return!1},c0=(n,{min:e=-1/0,max:t=1/0,suffix:s})=>{const r=parseFloat(n);if(n===""||isNaN(r))throw Error("Invalid number");const i=xs(r,e,t);return s?i+s:i},db=(n,{pad:e=0,suffix:t})=>{const s=parseFloat(n).toFixed(e);return t?s+t:s},l0=n=>{let{value:e}=n,t=De(n,lb);const{min:s=-1/0,max:r=1/0}=t,i=De(t,ub);let o=parseFloat(e);const a=typeof e=="string"?e.substring((""+o).length):void 0;o=xs(o,s,r);let c=t.step;c||(Number.isFinite(s)?Number.isFinite(r)?c=+(Math.abs(r-s)/100).toPrecision(1):c=+(Math.abs(o-s)/100).toPrecision(1):Number.isFinite(r)&&(c=+(Math.abs(r-o)/100).toPrecision(1)));const l=c?Sd(c)*10:Sd(o);c=c||l/10;const u=Math.round(xs(Math.log10(1/l),0,2));return{value:a?o+a:o,settings:de({initialValue:o,step:c,pad:u,min:s,max:r,suffix:a},i)}},u0=(n,{step:e,initialValue:t})=>{const s=Math.round((n-t)/e);return t+s*e};var h0=Object.freeze({__proto__:null,schema:hb,sanitize:c0,format:db,normalize:l0,sanitizeStep:u0});function Je(){return Je=Object.assign?Object.assign.bind():function(n){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 qo(n,e){const[t,s]=n.split(" "),r={};return t!=="none"&&(r.boxShadow=`${e.inset?"inset ":""}0 0 0 $borderWidths${[e.key]} $colors${t!=="default"&&t||e.borderColor}`),s&&(r.backgroundColor=s),r}const wi={$inputStyle:()=>n=>qo(n,{key:"$input",borderColor:"$highlight1",inset:!0}),$focusStyle:()=>n=>qo(n,{key:"$focus",borderColor:"$accent2"}),$hoverStyle:()=>n=>qo(n,{key:"$hover",borderColor:"$accent1",inset:!0}),$activeStyle:()=>n=>qo(n,{key:"$active",borderColor:"$accent1",inset:!0})},{styled:ce,css:lM,createTheme:pb,globalCss:mb,keyframes:uM}=q_({prefix:"leva",theme:m0(),utils:de(de({},wi),{},{$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:n=>({"&:focus":wi.$focusStyle()(n)}),$focusWithin:n=>({"&:focus-within":wi.$focusStyle()(n)}),$hover:n=>({"&:hover":wi.$hoverStyle()(n)}),$active:n=>({"&:active":wi.$activeStyle()(n)})})}),gb=mb({".leva__panel__dragged":{WebkitUserDrag:"none",userSelect:"none",input:{userSelect:"none"},"*":{cursor:"ew-resize !important"}}});function _b(n){const e=m0();if(!n)return{theme:e,className:""};Object.keys(n).forEach(s=>{Object.assign(e[s],n[s])});const t=pb(e);return{theme:e,className:t.className}}function Wn(n,e){const{theme:t}=v.useContext(Au);if(!(n in t)||!(e in t[n]))return Bn(He.THEME_ERROR,n,e),"";let s=e;for(;;){let r=t[n][s];if(typeof r=="string"&&r.charAt(0)==="$")s=r.substr(1);else return r}}const g0=ce("input",{$reset:"",padding:"0 $sm",width:0,minWidth:0,flex:1,height:"100%",variants:{levaType:{number:{textAlign:"right"}},as:{textarea:{padding:"$sm"}}}}),_0=ce("div",{$draggable:"",height:"100%",$flexCenter:"",position:"relative",padding:"0 $xs",fontSize:"0.8em",opacity:.8,cursor:"default",touchAction:"none",[`& + ${g0}`]:{paddingLeft:0}}),yb=ce(_0,{cursor:"ew-resize",marginRight:"-$xs",textTransform:"uppercase",opacity:.3,"&:hover":{opacity:1},variants:{dragging:{true:{backgroundColor:"$accent2",opacity:1}}}}),vb=ce("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 Ru(n){let{innerLabel:e,value:t,onUpdate:s,onChange:r,onKeyDown:i,type:o,id:a,inputType:c="text",rows:l=0}=n,u=De(n,bb);const{id:h,emitOnEditStart:d,emitOnEditEnd:f,disabled:m}=yt(),p=a||h,g=v.useRef(null),_=l>0,k=_?"textarea":"input",T=v.useCallback(x=>E=>{const w=E.currentTarget.value;x(w)},[]);N.useEffect(()=>{const x=g.current,E=T(w=>{s(w),f()});return x==null||x.addEventListener("blur",E),()=>x==null?void 0:x.removeEventListener("blur",E)},[T,s,f]);const b=v.useCallback(x=>{x.key==="Enter"&&T(s)(x)},[T,s]),y=Object.assign({as:k},_?{rows:l}:{},u);return N.createElement(vb,{textArea:_},e&&typeof e=="string"?N.createElement(_0,null,e):e,N.createElement(g0,Je({levaType:o,ref:g,id:p,type:c,autoComplete:"off",spellCheck:"false",value:t,onChange:T(r),onFocus:()=>d(),onKeyPress:b,onKeyDown:i,disabled:m},y)))}function wb(n){let{onUpdate:e}=n,t=De(n,xb);const s=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 N.createElement(Ru,Je({},t,{onUpdate:s,onKeyDown:r,type:"number"}))}const wa=ce("div",{}),Cl=ce("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"}}]}),Tb=ce("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 + ${Cl}::after`]:{opacity:.6},[`${wa}:hover > & + ${Cl}::after`]:{opacity:.6},[`${wa}:hover > & > svg`]:{opacity:1}}),y0=ce("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"}}}}}),v0=ce("div",{position:"relative",zIndex:100,display:"grid",rowGap:"$rowGap",gridTemplateRows:"minmax($sizes$rowHeight, max-content)",alignItems:"center",color:"$highlight2",[`${y0} > &`]:{"&:first-of-type":{marginTop:"$rowGap"},"&:last-of-type":{marginBottom:"$rowGap"}},variants:{disabled:{true:{pointerEvents:"none"},false:{"&:hover,&:focus-within":{color:"$highlight3"}}}}}),b0=ce(v0,{gridTemplateColumns:"auto $sizes$controlWidth",columnGap:"$colGap"}),kb=ce("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=ce("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"}}),Sl=ce("label",{fontWeight:"$label",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap","& > svg":{display:"block"}}),Cb=ce("div",{opacity:1,variants:{disabled:{true:{opacity:.6,pointerEvents:"none",[`& ${Sl}`]:{pointerEvents:"auto"}}}}}),x0=ce("div",{position:"fixed",top:0,bottom:0,right:0,left:0,zIndex:1e3,userSelect:"none"}),Sb=ce("div",{background:"$toolTipBackground",fontFamily:"$sans",fontSize:"$toolTip",padding:"$xs $sm",color:"$toolTipText",borderRadius:"$xs",boxShadow:"$level2",maxWidth:260}),Ob=ce(Vv,{fill:"$toolTipBackground"});function Du({children:n}){const{className:e}=v.useContext(Au);return N.createElement(M1,{className:e},n)}const Ab=["align"];function Rb(){const{id:n,disable:e,disabled:t}=yt();return N.createElement(N.Fragment,null,N.createElement(Eb,{id:n+"__disable",type:"checkbox",checked:!t,onChange:()=>e(!t)}),N.createElement("label",{htmlFor:n+"__disable"}))}function Db(n){const{id:e,optional:t,hint:s}=yt(),r=n.htmlFor||(e?{htmlFor:e}:null),i=!s&&typeof n.children=="string"?{title:n.children}:null;return N.createElement(N.Fragment,null,t&&N.createElement(Rb,null),s!==void 0?N.createElement(Lv,null,N.createElement(jv,{asChild:!0},N.createElement(Sl,Je({},r,n))),N.createElement(zv,{side:"top",sideOffset:2},N.createElement(Sb,null,s,N.createElement(Ob,null)))):N.createElement(Sl,Je({},r,i,n)))}function mn(n){let{align:e}=n,t=De(n,Ab);const{value:s,label:r,key:i,disabled:o}=yt(),{hideCopyButton:a}=fb(),c=!a&&i!==void 0,[l,u]=v.useState(!1),h=async()=>{try{await navigator.clipboard.writeText(JSON.stringify({[i]:s??""})),u(!0)}catch{Bn(He.CLIPBOARD_ERROR,{[i]:s})}};return N.createElement(kb,{align:e,onPointerLeave:()=>u(!1)},N.createElement(Db,t),c&&!o&&N.createElement("div",{title:`Click to copy ${typeof r=="string"?r:i} value`},l?N.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},N.createElement("path",{d:"M9 2a1 1 0 000 2h2a1 1 0 100-2H9z"}),N.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"})):N.createElement("svg",{onClick:h,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},N.createElement("path",{d:"M8 3a1 1 0 011-1h2a1 1 0 110 2H9a1 1 0 01-1-1z"}),N.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 Pb=["toggled"],Mb=ce("svg",{fill:"currentColor",transition:"transform 350ms ease, fill 250ms ease"});function Pu(n){let{toggled:e}=n,t=De(n,Pb);return N.createElement(Mb,Je({width:"9",height:"5",viewBox:"0 0 9 5",xmlns:"http://www.w3.org/2000/svg",style:{transform:`rotate(${e?0:-90}deg)`}},t),N.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 Nb=["input"];function sn(n){let{input:e}=n,t=De(n,Nb);return e?N.createElement(b0,t):N.createElement(v0,t)}function w0({value:n,type:e,settings:t,setValue:s}){const[r,i]=v.useState(Ed(e,n,t)),o=v.useRef(n),a=v.useRef(t);a.current=t;const c=v.useCallback(u=>i(Ed(e,u,a.current)),[e]),l=v.useCallback(u=>{try{s(u)}catch(h){const{type:d,previousValue:f}=h;if(d!=="LEVA_ERROR")throw h;c(f)}},[c,s]);return v.useEffect(()=>{zi(n,o.current)||c(n),o.current=n},[n,c]),{displayValue:r,onChange:i,onUpdate:l}}function bo(n,e){const{emitOnEditStart:t,emitOnEditEnd:s}=yt();return H_(r=>{r.first&&(document.body.classList.add("leva__panel__dragged"),t==null||t());const i=n(r);return r.last&&(document.body.classList.remove("leva__panel__dragged"),s==null||s()),i},e)}function Ib(n){const e=v.useRef(null),t=v.useRef(null),s=v.useRef(!1);return v.useEffect(()=>{const r=o0(()=>{e.current.width=e.current.offsetWidth*window.devicePixelRatio,e.current.height=e.current.offsetHeight*window.devicePixelRatio,n(e.current,t.current)},250);return window.addEventListener("resize",r),s.current||(r(),s.current=!0),()=>window.removeEventListener("resize",r)},[n]),v.useEffect(()=>{t.current=e.current.getContext("2d")},[]),[e,t]}function T0(){const n=v.useRef(null),e=v.useRef({x:0,y:0}),t=v.useCallback(s=>{Object.assign(e.current,s),n.current&&(n.current.style.transform=`translate3d(${e.current.x}px, ${e.current.y}px, 0)`)},[]);return[n,t]}const $b=["__refCount"],Kc=(n,e)=>{if(!n[e])return null;const t=n[e];return De(t,$b)};function Fb(n){const e=vo(),[t,s]=v.useState(Kc(e.getData(),n)),r=v.useCallback(l=>e.setValueAtPath(n,l,!0),[n,e]),i=v.useCallback(l=>e.setSettingsAtPath(n,l),[n,e]),o=v.useCallback(l=>e.disableInputAtPath(n,l),[n,e]),a=v.useCallback(()=>e.emitOnEditStart(n),[n,e]),c=v.useCallback(()=>e.emitOnEditEnd(n),[n,e]);return v.useEffect(()=>{s(Kc(e.getData(),n));const l=e.useStore.subscribe(u=>Kc(u.data,n),s,{equalityFn:yo});return()=>l()},[e,n]),[t,{set:r,setSettings:i,disable:o,storeId:e.storeId,emitOnEditStart:a,emitOnEditEnd:c}]}const Lb=ce("div",{variants:{hasRange:{true:{position:"relative",display:"grid",gridTemplateColumns:"auto $sizes$numberInputMinWidth",columnGap:"$colGap",alignItems:"center"}}}}),k0=ce("div",{position:"relative",width:"100%",height:2,borderRadius:"$xs",backgroundColor:"$elevation1"}),Ol=ce("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)))"}}}}),E0=ce("div",{position:"relative",$flex:"",height:"100%",cursor:"pointer",touchAction:"none"}),C0=ce("div",{position:"absolute",height:"100%",backgroundColor:"$accent2"});function jb({value:n,min:e,max:t,onDrag:s,step:r,initialValue:i}){const o=v.useRef(null),a=v.useRef(null),c=v.useRef(0),l=Wn("sizes","scrubberWidth"),u=bo(({event:d,first:f,xy:[m],movement:[p],memo:g})=>{if(f){const{width:k,left:T}=o.current.getBoundingClientRect();c.current=k-parseFloat(l),g=(d==null?void 0:d.target)===a.current?n:xa((m-T)/k,e,t)}const _=g+xa(p/c.current,0,t-e);return s(u0(_,{step:r,initialValue:i})),g}),h=ba(n,e,t);return N.createElement(E0,Je({ref:o},u()),N.createElement(k0,null,N.createElement(C0,{style:{left:0,right:`${(1-h)*100}%`}})),N.createElement(Ol,{ref:a,style:{left:`calc(${h} * (100% - ${l}))`}}))}const zb=N.memo(({label:n,onUpdate:e,step:t,innerLabelTrim:s})=>{const[r,i]=v.useState(!1),o=bo(({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*a0(l)),u=0),u));return N.createElement(yb,Je({dragging:r,title:n.length>1?n:""},o()),n.slice(0,s))});function S0({label:n,id:e,displayValue:t,onUpdate:s,onChange:r,settings:i,innerLabelTrim:o=1}){const a=o>0&&N.createElement(zb,{label:n,step:i.step,onUpdate:s,innerLabelTrim:o});return N.createElement(wb,{id:e,value:String(t),onUpdate:s,onChange:r,innerLabel:a})}function Vb(){const n=yt(),{label:e,value:t,onUpdate:s,settings:r,id:i}=n,{min:o,max:a}=r,c=a!==1/0&&o!==-1/0;return N.createElement(sn,{input:!0},N.createElement(mn,null,e),N.createElement(Lb,{hasRange:c},c&&N.createElement(jb,Je({value:parseFloat(t),onDrag:s},r)),N.createElement(S0,Je({},n,{id:i,label:"value",innerLabelTrim:c?0:1}))))}const{sanitizeStep:Ub}=h0,Bb=De(h0,["sanitizeStep"]);var Wb=de({component:Vb},Bb);const qb=(n,e)=>Ot().schema({options:Ot().passesAnyOf(Ot().object(),Ot().array())}).test(e),Hb=(n,{values:e})=>{if(e.indexOf(n)<0)throw Error("Selected value doesn't match Select options");return n},Yb=(n,{values:e})=>e.indexOf(n),Gb=n=>{let{value:e,options:t}=n,s,r;return Array.isArray(t)?(r=t,s=t.map(i=>String(i))):(r=Object.values(t),s=Object.keys(t)),"value"in n?r.includes(e)||(s.unshift(String(e)),r.unshift(e)):e=r[0],Object.values(t).includes(e)||(t[String(e)]=e),{value:e,settings:{keys:s,values:r}}};var Xb=Object.freeze({__proto__:null,schema:qb,sanitize:Hb,format:Yb,normalize:Gb});const Zb=ce("div",{$flexCenter:"",position:"relative","> svg":{pointerEvents:"none",position:"absolute",right:"$md"}}),Al=ce("select",{position:"absolute",top:0,left:0,width:"100%",height:"100%",opacity:0}),Kb=ce("div",{display:"flex",alignItems:"center",width:"100%",height:"$rowHeight",backgroundColor:"$elevation3",borderRadius:"$sm",padding:"0 $sm",cursor:"pointer",[`${Al}:focus + &`]:{$focusStyle:""},[`${Al}:hover + &`]:{$hoverStyle:""}});function Qb({displayValue:n,value:e,onUpdate:t,id:s,settings:r,disabled:i}){const{keys:o,values:a}=r,c=v.useRef();return e===a[n]&&(c.current=o[n]),N.createElement(Zb,null,N.createElement(Al,{id:s,value:n,onChange:l=>t(a[Number(l.currentTarget.value)]),disabled:i},o.map((l,u)=>N.createElement("option",{key:l,value:u},l))),N.createElement(Kb,null,c.current),N.createElement(Pu,{toggled:!0}))}function Jb(){const{label:n,value:e,displayValue:t,onUpdate:s,id:r,disabled:i,settings:o}=yt();return N.createElement(sn,{input:!0},N.createElement(mn,null,n),N.createElement(Qb,{id:r,value:e,displayValue:t,onUpdate:s,settings:o,disabled:i}))}var ex=de({component:Jb},Xb);const tx=n=>Ot().string().test(n),nx=n=>{if(typeof n!="string")throw Error("Invalid string");return n},sx=({value:n,editable:e=!0,rows:t=!1})=>({value:n,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=ce("div",{whiteSpace:"pre-wrap"});function ax(n){let{displayValue:e,onUpdate:t,onChange:s,editable:r=!0}=n,i=De(n,ix);return r?N.createElement(Ru,Je({value:e,onUpdate:t,onChange:s},i)):N.createElement(ox,null,e)}function cx(){const{label:n,settings:e,displayValue:t,onUpdate:s,onChange:r}=yt();return N.createElement(sn,{input:!0},N.createElement(mn,null,n),N.createElement(ax,Je({displayValue:t,onUpdate:s,onChange:r},e)))}var lx=de({component:cx},rx);const ux=n=>Ot().boolean().test(n),hx=n=>{if(typeof n!="boolean")throw Error("Invalid boolean");return n};var dx=Object.freeze({__proto__:null,schema:ux,sanitize:hx});const fx=ce("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:n,onUpdate:e,id:t,disabled:s}){return N.createElement(fx,null,N.createElement("input",{id:t,type:"checkbox",checked:n,onChange:r=>e(r.currentTarget.checked),disabled:s}),N.createElement("label",{htmlFor:t},N.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},N.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"}))))}function mx(){const{label:n,value:e,onUpdate:t,disabled:s,id:r}=yt();return N.createElement(sn,{input:!0},N.createElement(mn,null,n),N.createElement(px,{value:e,onUpdate:t,id:r,disabled:s}))}var gx=de({component:mx},dx);const _x=["locked"];function yx({value:n,id:e,valueKey:t,settings:s,onUpdate:r,innerLabelTrim:i}){const o=v.useRef(n[t]);o.current=n[t];const a=v.useCallback(l=>r({[t]:i0({type:"NUMBER",value:o.current,settings:s},l)}),[r,s,t]),c=w0({type:"NUMBER",value:n[t],settings:s,setValue:a});return N.createElement(S0,{id:e,label:t,value:n[t],displayValue:c.displayValue,onUpdate:c.onUpdate,onChange:c.onChange,settings:s,innerLabelTrim:i})}const vx=ce("div",{display:"grid",columnGap:"$colGap",gridAutoFlow:"column dense",alignItems:"center",variants:{withLock:{true:{gridTemplateColumns:"10px auto","> svg":{cursor:"pointer"}}}}});function bx(n){let{locked:e}=n,t=De(n,_x);return N.createElement("svg",Je({width:"10",height:"10",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e?N.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"}):N.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 Mu({value:n,onUpdate:e,settings:t,innerLabelTrim:s}){const{id:r,setSettings:i}=yt(),{lock:o,locked:a}=t;return N.createElement(vx,{withLock:o},o&&N.createElement(bx,{locked:a,onClick:()=>i({locked:!a})}),Object.keys(n).map((c,l)=>N.createElement(yx,{id:l===0?r:`${r}.${c}`,key:c,valueKey:c,value:n,settings:t[c],onUpdate:e,innerLabelTrim:s})))}const O0=(n,e)=>{const t={};let s=0,r=1/0;Object.entries(n).forEach(([i,o])=>{t[i]=l0(de({value:o},e[i])).settings,s=Math.max(s,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=s,t[i].pad=r)}return t},xx=["lock"],wx=["value"];function Tx(n){const e=Ot().array().length(n).every.number(),t=s=>{if(!s||typeof s!="object")return!1;const r=Object.values(s);return r.length===n&&r.every(i=>isFinite(i))};return s=>e.test(s)||t(s)}function kx(n){return Array.isArray(n)?"array":"object"}function Ri(n,e,t){return kx(n)===e?n:e==="array"?Object.values(n):tb(n,t)}const Ex=(n,e,t)=>{const s=Ri(n,"object",e.keys);for(let o in s)s[o]=c0(s[o],e[o]);const r=Object.keys(s);let i={};if(r.length===e.keys.length)i=s;else{const o=Ri(t,"object",e.keys);if(r.length===1&&e.locked){const a=r[0],c=s[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=de(de({},o),s)}return Ri(i,e.format,e.keys)},Cx=(n,e)=>Ri(n,"object",e.keys),Sx=n=>!!n&&("step"in n||"min"in n||"max"in n);function Ox(n,e,t=[]){const{lock:s=!1}=e,r=De(e,xx),i=Array.isArray(n)?"array":"object",o=i==="object"?Object.keys(n):t,a=Ri(n,"object",o),c=Sx(r)?o.reduce((u,h)=>Object.assign(u,{[h]:r}),{}):r,l=O0(a,c);return{value:i==="array"?n:a,settings:de(de({},l),{},{format:i,keys:o,lock:s,locked:!1})}}function A0(n){return{schema:Tx(n.length),normalize:e=>{let{value:t}=e,s=De(e,wx);return Ox(t,s,n)},format:(e,t)=>Cx(e,t),sanitize:(e,t,s)=>Ex(e,t,s)}}var Ax={grad:.9,turn:360,rad:360/(2*Math.PI)},Fn=function(n){return typeof n=="string"?n.length>0:typeof n=="number"},lt=function(n,e,t){return e===void 0&&(e=0),t===void 0&&(t=Math.pow(10,e)),Math.round(t*n)/t+0},Xt=function(n,e,t){return e===void 0&&(e=0),t===void 0&&(t=1),n>t?t:n>e?n:e},R0=function(n){return(n=isFinite(n)?n%360:0)>0?n:n+360},Id=function(n){return{r:Xt(n.r,0,255),g:Xt(n.g,0,255),b:Xt(n.b,0,255),a:Xt(n.a)}},Qc=function(n){return{r:lt(n.r),g:lt(n.g),b:lt(n.b),a:lt(n.a,3)}},Rx=/^#([0-9a-f]{3,8})$/i,Ho=function(n){var e=n.toString(16);return e.length<2?"0"+e:e},D0=function(n){var e=n.r,t=n.g,s=n.b,r=n.a,i=Math.max(e,t,s),o=i-Math.min(e,t,s),a=o?i===e?(t-s)/o:i===t?2+(s-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}},P0=function(n){var e=n.h,t=n.s,s=n.v,r=n.a;e=e/360*6,t/=100,s/=100;var i=Math.floor(e),o=s*(1-t),a=s*(1-(e-i)*t),c=s*(1-(1-e+i)*t),l=i%6;return{r:255*[s,a,o,o,c,s][l],g:255*[c,s,s,a,o,o][l],b:255*[o,o,c,s,s,a][l],a:r}},$d=function(n){return{h:R0(n.h),s:Xt(n.s,0,100),l:Xt(n.l,0,100),a:Xt(n.a)}},Fd=function(n){return{h:lt(n.h),s:lt(n.s),l:lt(n.l),a:lt(n.a,3)}},Ld=function(n){return P0((t=(e=n).s,{h:e.h,s:(t*=((s=e.l)<50?s:100-s)/100)>0?2*t/(s+t)*100:0,v:s+t,a:e.a}));var e,t,s},Di=function(n){return{h:(e=D0(n)).h,s:(r=(200-(t=e.s))*(s=e.v)/100)>0&&r<200?t*s/100/(r<=100?r:200-r)*100:0,l:r/2,a:e.a};var e,t,s,r},Dx=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Px=/^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,Nx=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Rl={string:[[function(n){var e=Rx.exec(n);return e?(n=e[1]).length<=4?{r:parseInt(n[0]+n[0],16),g:parseInt(n[1]+n[1],16),b:parseInt(n[2]+n[2],16),a:n.length===4?lt(parseInt(n[3]+n[3],16)/255,2):1}:n.length===6||n.length===8?{r:parseInt(n.substr(0,2),16),g:parseInt(n.substr(2,2),16),b:parseInt(n.substr(4,2),16),a:n.length===8?lt(parseInt(n.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(n){var e=Mx.exec(n)||Nx.exec(n);return e?e[2]!==e[4]||e[4]!==e[6]?null:Id({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(n){var e=Dx.exec(n)||Px.exec(n);if(!e)return null;var t,s,r=$d({h:(t=e[1],s=e[2],s===void 0&&(s="deg"),Number(t)*(Ax[s]||1)),s:Number(e[3]),l:Number(e[4]),a:e[5]===void 0?1:Number(e[5])/(e[6]?100:1)});return Ld(r)},"hsl"]],object:[[function(n){var e=n.r,t=n.g,s=n.b,r=n.a,i=r===void 0?1:r;return Fn(e)&&Fn(t)&&Fn(s)?Id({r:Number(e),g:Number(t),b:Number(s),a:Number(i)}):null},"rgb"],[function(n){var e=n.h,t=n.s,s=n.l,r=n.a,i=r===void 0?1:r;if(!Fn(e)||!Fn(t)||!Fn(s))return null;var o=$d({h:Number(e),s:Number(t),l:Number(s),a:Number(i)});return Ld(o)},"hsl"],[function(n){var e=n.h,t=n.s,s=n.v,r=n.a,i=r===void 0?1:r;if(!Fn(e)||!Fn(t)||!Fn(s))return null;var o=function(a){return{h:R0(a.h),s:Xt(a.s,0,100),v:Xt(a.v,0,100),a:Xt(a.a)}}({h:Number(e),s:Number(t),v:Number(s),a:Number(i)});return P0(o)},"hsv"]]},jd=function(n,e){for(var t=0;t=.5},n.prototype.toHex=function(){return e=Qc(this.rgba),t=e.r,s=e.g,r=e.b,o=(i=e.a)<1?Ho(lt(255*i)):"","#"+Ho(t)+Ho(s)+Ho(r)+o;var e,t,s,r,i,o},n.prototype.toRgb=function(){return Qc(this.rgba)},n.prototype.toRgbString=function(){return e=Qc(this.rgba),t=e.r,s=e.g,r=e.b,(i=e.a)<1?"rgba("+t+", "+s+", "+r+", "+i+")":"rgb("+t+", "+s+", "+r+")";var e,t,s,r,i},n.prototype.toHsl=function(){return Fd(Di(this.rgba))},n.prototype.toHslString=function(){return e=Fd(Di(this.rgba)),t=e.h,s=e.s,r=e.l,(i=e.a)<1?"hsla("+t+", "+s+"%, "+r+"%, "+i+")":"hsl("+t+", "+s+"%, "+r+"%)";var e,t,s,r,i},n.prototype.toHsv=function(){return e=D0(this.rgba),{h:lt(e.h),s:lt(e.s),v:lt(e.v),a:lt(e.a,3)};var e},n.prototype.invert=function(){return bt({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},n.prototype.saturate=function(e){return e===void 0&&(e=.1),bt(Jc(this.rgba,e))},n.prototype.desaturate=function(e){return e===void 0&&(e=.1),bt(Jc(this.rgba,-e))},n.prototype.grayscale=function(){return bt(Jc(this.rgba,-1))},n.prototype.lighten=function(e){return e===void 0&&(e=.1),bt(zd(this.rgba,e))},n.prototype.darken=function(e){return e===void 0&&(e=.1),bt(zd(this.rgba,-e))},n.prototype.rotate=function(e){return e===void 0&&(e=15),this.hue(this.hue()+e)},n.prototype.alpha=function(e){return typeof e=="number"?bt({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):lt(this.rgba.a,3);var t},n.prototype.hue=function(e){var t=Di(this.rgba);return typeof e=="number"?bt({h:e,s:t.s,l:t.l,a:t.a}):lt(t.h)},n.prototype.isEqual=function(e){return this.toHex()===bt(e).toHex()},n}(),bt=function(n){return n instanceof Dl?n:new Dl(n)},Vd=[],$x=function(n){n.forEach(function(e){Vd.indexOf(e)<0&&(e(Dl,Rl),Vd.push(e))})};function Fx(n,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"},s={};for(var r in t)s[t[r]]=r;var i={};n.prototype.toName=function(o){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var a,c,l=s[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 n(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]=n[t]);return r}function Pl(n){var e=v.useRef(n),t=v.useRef(function(s){e.current&&e.current(s)});return e.current=n,t.current}var jr=function(n,e,t){return e===void 0&&(e=0),t===void 0&&(t=1),n>t?t:n0:g.buttons>0)&&r.current?i(Ud(r.current,g,a.current)):p(!1)},m=function(){return p(!1)};function p(g){var _=c.current,k=Ml(r.current),T=g?k.addEventListener:k.removeEventListener;T(_?"touchmove":"mousemove",f),T(_?"touchend":"mouseup",m)}return[function(g){var _=g.nativeEvent,k=r.current;if(k&&(Bd(_),!function(b,y){return y&&!Pi(b)}(_,c.current)&&k)){if(Pi(_)){c.current=!0;var T=_.changedTouches||[];T.length&&(a.current=T[0].identifier)}k.focus(),i(Ud(k,_,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]),N.createElement("div",ni({},s,{onTouchStart:u,onMouseDown:u,className:"react-colorful__interactive",ref:r,onKeyDown:h,tabIndex:0,role:"slider"}))}),xo=function(n){return n.filter(Boolean).join(" ")},$u=function(n){var e=n.color,t=n.left,s=n.top,r=s===void 0?.5:s,i=xo(["react-colorful__pointer",n.className]);return N.createElement("div",{className:i,style:{top:100*r+"%",left:100*t+"%"}},N.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:e}}))},Tt=function(n,e,t){return e===void 0&&(e=0),t===void 0&&(t=Math.pow(10,e)),Math.round(t*n)/t},N0=function(n){var e=n.s,t=n.v,s=n.a,r=(200-e)*t/100;return{h:Tt(n.h),s:Tt(r>0&&r<200?e*t/100/(r<=100?r:200-r)*100:0),l:Tt(r/2),a:Tt(s,2)}},Nl=function(n){var e=N0(n);return"hsl("+e.h+", "+e.s+"%, "+e.l+"%)"},tl=function(n){var e=N0(n);return"hsla("+e.h+", "+e.s+"%, "+e.l+"%, "+e.a+")"},I0=function(n){var e=n.h,t=n.s,s=n.v,r=n.a;e=e/360*6,t/=100,s/=100;var i=Math.floor(e),o=s*(1-t),a=s*(1-(e-i)*t),c=s*(1-(1-e+i)*t),l=i%6;return{r:Tt(255*[s,a,o,o,c,s][l]),g:Tt(255*[c,s,s,a,o,o][l]),b:Tt(255*[o,o,c,s,s,a][l]),a:Tt(r,2)}},$0=function(n){var e=n.r,t=n.g,s=n.b,r=n.a,i=Math.max(e,t,s),o=i-Math.min(e,t,s),a=o?i===e?(t-s)/o:i===t?2+(s-e)/o:4+(e-t)/o:0;return{h:Tt(60*(a<0?a+6:a)),s:Tt(i?o/i*100:0),v:Tt(i/255*100),a:r}},F0=N.memo(function(n){var e=n.hue,t=n.onChange,s=xo(["react-colorful__hue",n.className]);return N.createElement("div",{className:s},N.createElement(Iu,{onMove:function(r){t({h:360*r.left})},onKey:function(r){t({h:jr(e+360*r.left,0,360)})},"aria-label":"Hue","aria-valuenow":Tt(e),"aria-valuemax":"360","aria-valuemin":"0"},N.createElement($u,{className:"react-colorful__hue-pointer",left:e/360,color:Nl({h:e,s:100,v:100,a:1})})))}),L0=N.memo(function(n){var e=n.hsva,t=n.onChange,s={backgroundColor:Nl({h:e.h,s:100,v:100,a:1})};return N.createElement("div",{className:"react-colorful__saturation",style:s},N.createElement(Iu,{onMove:function(r){t({s:100*r.left,v:100-100*r.top})},onKey:function(r){t({s:jr(e.s+100*r.left,0,100),v:jr(e.v-100*r.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+Tt(e.s)+"%, Brightness "+Tt(e.v)+"%"},N.createElement($u,{className:"react-colorful__saturation-pointer",top:1-e.v/100,left:e.s/100,color:Nl(e)})))}),Fu=function(n,e){if(n===e)return!0;for(var t in n)if(n[t]!==e[t])return!1;return!0};function j0(n,e,t){var s=Pl(t),r=v.useState(function(){return n.toHsva(e)}),i=r[0],o=r[1],a=v.useRef({color:e,hsva:i});v.useEffect(function(){if(!n.equal(e,a.current.color)){var l=n.toHsva(e);a.current={hsva:l,color:e},o(l)}},[e,n]),v.useEffect(function(){var l;Fu(i,a.current.hsva)||n.equal(l=n.fromHsva(i),a.current.color)||(a.current={hsva:i,color:l},s(l))},[i,n,s]);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},Wd=new Map,z0=function(n){Lx(function(){var e=n.current?n.current.ownerDocument:document;if(e!==void 0&&!Wd.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}`,Wd.set(e,t);var s=jx();s&&t.setAttribute("nonce",s),e.head.appendChild(t)}},[])},zx=function(n){var e=n.className,t=n.colorModel,s=n.color,r=s===void 0?t.defaultColor:s,i=n.onChange,o=Nu(n,["className","colorModel","color","onChange"]),a=v.useRef(null);z0(a);var c=j0(t,r,i),l=c[0],u=c[1],h=xo(["react-colorful",e]);return N.createElement("div",ni({},o,{ref:a,className:h}),N.createElement(L0,{hsva:l,onChange:u}),N.createElement(F0,{hue:l.h,onChange:u,className:"react-colorful__last-control"}))},Vx=function(n){var e=n.className,t=n.hsva,s=n.onChange,r={backgroundImage:"linear-gradient(90deg, "+tl(Object.assign({},t,{a:0}))+", "+tl(Object.assign({},t,{a:1}))+")"},i=xo(["react-colorful__alpha",e]),o=Tt(100*t.a);return N.createElement("div",{className:i},N.createElement("div",{className:"react-colorful__alpha-gradient",style:r}),N.createElement(Iu,{onMove:function(a){s({a:a.left})},onKey:function(a){s({a:jr(t.a+a.left)})},"aria-label":"Alpha","aria-valuetext":o+"%","aria-valuenow":o,"aria-valuemin":"0","aria-valuemax":"100"},N.createElement($u,{className:"react-colorful__alpha-pointer",left:t.a,color:tl(t)})))},Ux=function(n){var e=n.className,t=n.colorModel,s=n.color,r=s===void 0?t.defaultColor:s,i=n.onChange,o=Nu(n,["className","colorModel","color","onChange"]),a=v.useRef(null);z0(a);var c=j0(t,r,i),l=c[0],u=c[1],h=xo(["react-colorful",e]);return N.createElement("div",ni({},o,{ref:a,className:h}),N.createElement(L0,{hsva:l,onChange:u}),N.createElement(F0,{hue:l.h,onChange:u}),N.createElement(Vx,{hsva:l,onChange:u,className:"react-colorful__last-control"}))},Bx={defaultColor:{r:0,g:0,b:0,a:1},toHsva:$0,fromHsva:I0,equal:Fu},Wx=function(n){return N.createElement(Ux,ni({},n,{colorModel:Bx}))},qx={defaultColor:{r:0,g:0,b:0},toHsva:function(n){return $0({r:n.r,g:n.g,b:n.b,a:1})},fromHsva:function(n){return{r:(e=I0(n)).r,g:e.g,b:e.b};var e},equal:Fu},Hx=function(n){return N.createElement(zx,ni({},n,{colorModel:qx}))};function gn(n,e,t,s){var r=arguments.length,i=r<3?e:s===null?s=Object.getOwnPropertyDescriptor(e,t):s,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,e,t,s);else for(var a=n.length-1;a>=0;a--)(o=n[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(n,e,t,s){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(s.next(u))}catch(h){o(h)}}function c(u){try{l(s.throw(u))}catch(h){o(h)}}function l(u){u.done?i(u.value):r(u.value).then(a,c)}l((s=s.apply(n,e||[])).next())})}function si(n,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},s,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(s)throw new TypeError("Generator is already executing.");for(;o&&(o=0,l[0]&&(t=0)),t;)try{if(s=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=s.next()).done;)i.push(r.value)}catch(a){o={error:a}}finally{try{r&&!r.done&&(t=s.return)&&t.call(s)}finally{if(o)throw o.error}}return i}function Gx(){for(var n=[],e=0;e0?s:n.name,writable:!1,configurable:!1,enumerable:!0})}return t}function Zx(n){var e=n.name,t=e&&e.lastIndexOf(".")!==-1;if(t&&!n.type){var s=e.split(".").pop().toLowerCase(),r=Xx.get(s);r&&Object.defineProperty(n,"type",{value:r,writable:!1,configurable:!1,enumerable:!0})}return n}var Kx=[".DS_Store","Thumbs.db"];function Qx(n){return Ie(this,void 0,void 0,function(){return si(this,function(e){return Ta(n)&&Jx(n)?[2,sw(n.dataTransfer,n.type)]:ew(n)?[2,tw(n)]:Array.isArray(n)&&n.every(function(t){return"getFile"in t&&typeof t.getFile=="function"})?[2,nw(n)]:[2,[]]})})}function Jx(n){return Ta(n.dataTransfer)}function ew(n){return Ta(n)&&Ta(n.target)}function Ta(n){return typeof n=="object"&&n!==null}function tw(n){return Il(n.target.files).map(function(e){return wo(e)})}function nw(n){return Ie(this,void 0,void 0,function(){var e;return si(this,function(t){switch(t.label){case 0:return[4,Promise.all(n.map(function(s){return s.getFile()}))];case 1:return e=t.sent(),[2,e.map(function(s){return wo(s)})]}})})}function sw(n,e){return Ie(this,void 0,void 0,function(){var t,s;return si(this,function(r){switch(r.label){case 0:return n===null?[2,[]]:n.items?(t=Il(n.items).filter(function(i){return i.kind==="file"}),e!=="drop"?[2,t]:[4,Promise.all(t.map(rw))]):[3,2];case 1:return s=r.sent(),[2,qd(V0(s))];case 2:return[2,qd(Il(n.files).map(function(i){return wo(i)}))]}})})}function qd(n){return n.filter(function(e){return Kx.indexOf(e.name)===-1})}function Il(n){if(n===null)return[];for(var e=[],t=0;tn.length)&&(e=n.length);for(var t=0,s=new Array(e);tt)return[!1,Kd(t)];if(n.sizet)return[!1,Kd(t)]}return[!0,null]}function Ti(n){return n!=null}function yw(n){var e=n.files,t=n.accept,s=n.minSize,r=n.maxSize,i=n.multiple,o=n.maxFiles;return!i&&e.length>1||i&&o>=1&&e.length>o?!1:e.every(function(a){var c=W0(a,t),l=Xd(c,1),u=l[0],h=q0(a,s,r),d=Xd(h,1),f=d[0];return u&&f})}function ka(n){return typeof n.isPropagationStopped=="function"?n.isPropagationStopped():typeof n.cancelBubble<"u"?n.cancelBubble:!1}function Yo(n){return n.dataTransfer?Array.prototype.some.call(n.dataTransfer.types,function(e){return e==="Files"||e==="application/x-moz-file"}):!!n.target&&!!n.target.files}function Jd(n){n.preventDefault()}function vw(n){return n.indexOf("MSIE")!==-1||n.indexOf("Trident/")!==-1}function bw(n){return n.indexOf("Edge/")!==-1}function xw(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return vw(n)||bw(n)}function wn(){for(var n=arguments.length,e=new Array(n),t=0;t1?r-1:0),o=1;on.length)&&(e=n.length);for(var t=0,s=new Array(e);t=0)&&Object.prototype.propertyIsEnumerable.call(n,s)&&(t[s]=n[s])}return t}function Fw(n,e){if(n==null)return{};var t={},s=Object.keys(n),r,i;for(i=0;i=0)&&(t[r]=n[r]);return t}var Lu=v.forwardRef(function(n,e){var t=n.children,s=Ea(n,Cw),r=G0(s),i=r.open,o=Ea(r,Sw);return v.useImperativeHandle(e,function(){return{open:i}},[i]),N.createElement(v.Fragment,null,t(qe(qe({},o),{},{open:i})))});Lu.displayName="Dropzone";var Y0={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};Lu.defaultProps=Y0;Lu.propTypes={children:Ee.func,accept:Ee.oneOfType([Ee.string,Ee.arrayOf(Ee.string)]),multiple:Ee.bool,preventDropOnDocument:Ee.bool,noClick:Ee.bool,noKeyboard:Ee.bool,noDrag:Ee.bool,noDragEventsBubbling:Ee.bool,minSize:Ee.number,maxSize:Ee.number,maxFiles:Ee.number,disabled:Ee.bool,getFilesFromEvent:Ee.func,onFileDialogCancel:Ee.func,onFileDialogOpen:Ee.func,useFsAccessApi:Ee.bool,onDragEnter:Ee.func,onDragLeave:Ee.func,onDragOver:Ee.func,onDrop:Ee.func,onDropAccepted:Ee.func,onDropRejected:Ee.func,validator:Ee.func};var Ll={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,draggedFiles:[],acceptedFiles:[],fileRejections:[]};function G0(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=qe(qe({},Y0),n),t=e.accept,s=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,k=e.preventDropOnDocument,T=e.noClick,b=e.noKeyboard,y=e.noDrag,x=e.noDragEventsBubbling,E=e.validator,w=v.useMemo(function(){return typeof g=="function"?g:tf},[g]),C=v.useMemo(function(){return typeof p=="function"?p:tf},[p]),A=v.useRef(null),D=v.useRef(null),O=v.useReducer(Lw,Ll),L=nl(O,2),j=L[0],W=L[1],V=j.isFocused,U=j.isFileDialogActive,B=j.draggedFiles,X=v.useRef(typeof window<"u"&&window.isSecureContext&&_&&ww()),K=function(){!X.current&&U&&setTimeout(function(){if(D.current){var fe=D.current.files;fe.length||(W({type:"closeDialog"}),C())}},300)};v.useEffect(function(){return window.addEventListener("focus",K,!1),function(){window.removeEventListener("focus",K,!1)}},[D,U,C,X]);var J=v.useRef([]),F=function(fe){A.current&&A.current.contains(fe.target)||(fe.preventDefault(),J.current=[])};v.useEffect(function(){return k&&(document.addEventListener("dragover",Jd,!1),document.addEventListener("drop",F,!1)),function(){k&&(document.removeEventListener("dragover",Jd),document.removeEventListener("drop",F))}},[A,k]);var z=v.useCallback(function(ee){ee.preventDefault(),ee.persist(),P(ee),J.current=[].concat(Rw(J.current),[ee.target]),Yo(ee)&&Promise.resolve(r(ee)).then(function(fe){ka(ee)&&!x||(W({draggedFiles:fe,isDragActive:!0,type:"setDraggedFiles"}),l&&l(ee))})},[r,l,x]),S=v.useCallback(function(ee){ee.preventDefault(),ee.persist(),P(ee);var fe=Yo(ee);if(fe&&ee.dataTransfer)try{ee.dataTransfer.dropEffect="copy"}catch{}return fe&&h&&h(ee),!1},[h,x]),I=v.useCallback(function(ee){ee.preventDefault(),ee.persist(),P(ee);var fe=J.current.filter(function(at){return A.current&&A.current.contains(at)}),tt=fe.indexOf(ee.target);tt!==-1&&fe.splice(tt,1),J.current=fe,!(fe.length>0)&&(W({isDragActive:!1,type:"setDraggedFiles",draggedFiles:[]}),Yo(ee)&&u&&u(ee))},[A,u,x]),Y=v.useCallback(function(ee,fe){var tt=[],at=[];ee.forEach(function($t){var os=W0($t,t),dr=nl(os,2),Mc=dr[0],Nc=dr[1],Ic=q0($t,o,i),Mo=nl(Ic,2),$c=Mo[0],Fc=Mo[1],Lc=E?E($t):null;if(Mc&&$c&&!Lc)tt.push($t);else{var jc=[Nc,Fc];Lc&&(jc=jc.concat(Lc)),at.push({file:$t,errors:jc.filter(function(N_){return N_})})}}),(!a&&tt.length>1||a&&c>=1&&tt.length>c)&&(tt.forEach(function($t){at.push({file:$t,errors:[_w]})}),tt.splice(0)),W({acceptedFiles:tt,fileRejections:at,type:"setFiles"}),d&&d(tt,at,fe),at.length>0&&m&&m(at,fe),tt.length>0&&f&&f(tt,fe)},[W,a,t,o,i,c,d,f,m,E]),$=v.useCallback(function(ee){ee.preventDefault(),ee.persist(),P(ee),J.current=[],Yo(ee)&&Promise.resolve(r(ee)).then(function(fe){ka(ee)&&!x||Y(fe,ee)}),W({type:"reset"})},[r,Y,x]),q=v.useCallback(function(){if(X.current){W({type:"openDialog"}),w();var ee={multiple:a,types:Tw(t)};window.showOpenFilePicker(ee).then(function(fe){return r(fe)}).then(function(fe){Y(fe,null),W({type:"closeDialog"})}).catch(function(fe){kw(fe)?(C(fe),W({type:"closeDialog"})):Ew(fe)&&(X.current=!1,D.current&&(D.current.value=null,D.current.click()))});return}D.current&&(W({type:"openDialog"}),w(),D.current.value=null,D.current.click())},[W,w,C,_,Y,t,a]),oe=v.useCallback(function(ee){!A.current||!A.current.isEqualNode(ee.target)||(ee.key===" "||ee.key==="Enter"||ee.keyCode===32||ee.keyCode===13)&&(ee.preventDefault(),q())},[A,q]),re=v.useCallback(function(){W({type:"focus"})},[]),ie=v.useCallback(function(){W({type:"blur"})},[]),ne=v.useCallback(function(){T||(xw()?setTimeout(q,0):q())},[T,q]),ge=function(fe){return s?null:fe},te=function(fe){return b?null:ge(fe)},H=function(fe){return y?null:ge(fe)},P=function(fe){x&&fe.stopPropagation()},R=v.useMemo(function(){return function(){var ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},fe=ee.refKey,tt=fe===void 0?"ref":fe,at=ee.role,$t=ee.onKeyDown,os=ee.onFocus,dr=ee.onBlur,Mc=ee.onClick,Nc=ee.onDragEnter,Ic=ee.onDragOver,Mo=ee.onDragLeave,$c=ee.onDrop,Fc=Ea(ee,Ow);return qe(qe(Fl({onKeyDown:te(wn($t,oe)),onFocus:te(wn(os,re)),onBlur:te(wn(dr,ie)),onClick:ge(wn(Mc,ne)),onDragEnter:H(wn(Nc,z)),onDragOver:H(wn(Ic,S)),onDragLeave:H(wn(Mo,I)),onDrop:H(wn($c,$)),role:typeof at=="string"&&at!==""?at:"button"},tt,A),!s&&!b?{tabIndex:0}:{}),Fc)}},[A,oe,re,ie,ne,z,S,I,$,b,y,s]),Q=v.useCallback(function(ee){ee.stopPropagation()},[]),se=v.useMemo(function(){return function(){var ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},fe=ee.refKey,tt=fe===void 0?"ref":fe,at=ee.onChange,$t=ee.onClick,os=Ea(ee,Aw),dr=Fl({accept:t,multiple:a,type:"file",style:{display:"none"},onChange:ge(wn(at,$)),onClick:ge(wn($t,Q)),tabIndex:-1},tt,D);return qe(qe({},dr),os)}},[D,t,a,$,s]),le=B.length,be=le>0&&yw({files:B,accept:t,minSize:o,maxSize:i,multiple:a,maxFiles:c}),et=le>0&&!be;return qe(qe({},j),{},{isDragAccept:be,isDragReject:et,isFocused:V&&!s,getRootProps:R,getInputProps:se,rootRef:A,inputRef:D,open:ge(q)})}function Lw(n,e){switch(e.type){case"focus":return qe(qe({},n),{},{isFocused:!0});case"blur":return qe(qe({},n),{},{isFocused:!1});case"openDialog":return qe(qe({},Ll),{},{isFileDialogActive:!0});case"closeDialog":return qe(qe({},n),{},{isFileDialogActive:!1});case"setDraggedFiles":var t=e.isDragActive,s=e.draggedFiles;return qe(qe({},n),{},{draggedFiles:s,isDragActive:t});case"setFiles":return qe(qe({},n),{},{acceptedFiles:e.acceptedFiles,fileRejections:e.fileRejections});case"reset":return qe({},Ll);default:return n}}function tf(){}function jw(n){let e;const t=new Set,s=(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:s,getState:r,subscribe:(l,u,h)=>u||h?i(l,u,h):(t.add(l),()=>t.delete(l)),destroy:()=>t.clear()};return e=n(s,r,c),c}const zw=typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),nf=zw?v.useEffect:v.useLayoutEffect;function Vw(n){const e=typeof n=="function"?jw(n):n,t=(s=e.getState,r=Object.is)=>{const[,i]=v.useReducer(g=>g+1,0),o=e.getState(),a=v.useRef(o),c=v.useRef(s),l=v.useRef(r),u=v.useRef(!1),h=v.useRef();h.current===void 0&&(h.current=s(o));let d,f=!1;(a.current!==o||c.current!==s||l.current!==r||u.current)&&(d=s(o),f=!r(h.current,d)),nf(()=>{f&&(h.current=d),a.current=o,c.current=s,l.current=r,u.current=!1});const m=v.useRef(o);nf(()=>{const g=()=>{try{const k=e.getState(),T=c.current(k);l.current(h.current,T)||(a.current=k,h.current=T,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 s=[t,e];return{next(){const r=s.length<=0;return{value:s.shift(),done:r}}}},t}const Uw=n=>(e,t,s)=>{const r=s.subscribe;return s.subscribe=(o,a,c)=>{let l=o;if(a){const u=(c==null?void 0:c.equalityFn)||Object.is;let h=o(s.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)},n(e,t,s)};/*! + */const pe={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}),mr={NONE:0,IN:1,OUT:-1};function Ns(n){return n.isPerspectiveCamera}function cs(n){return n.isOrthographicCamera}const gr=Math.PI*2,ed=Math.PI/2,Dp=1e-5,gi=Math.PI/180;function on(n,e,t){return Math.max(e,Math.min(t,n))}function Le(n,e=Dp){return Math.abs(n)0==f>u&&(f=u,t.value=(f-u)/i),f}function nd(n,e,t,s,r=1/0,i,o){s=Math.max(1e-4,s);const a=2/s,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=n.x-u,m=n.y-h,p=n.z-d;const g=u,_=h,k=d,T=r*s,b=T*T,y=f*f+m*m+p*p;if(y>b){const W=Math.sqrt(y);f=f/W*T,m=m/W*T,p=p/W*T}u=n.x-f,h=n.y-m,d=n.z-p;const x=(t.x+a*f)*i,E=(t.y+a*m)*i,w=(t.z+a*p)*i;t.x=(t.x-a*x)*l,t.y=(t.y-a*E)*l,t.z=(t.z-a*w)*l,o.x=u+(f+x)*l,o.y=h+(m+E)*l,o.z=d+(p+w)*l;const C=g-n.x,A=_-n.y,D=k-n.z,O=o.x-g,L=o.y-_,j=o.z-k;return C*O+A*L+D*j>0&&(o.x=g,o.y=_,o.z=k,t.x=(o.x-g)/i,t.y=(o.y-_)/i,t.z=(o.z-k)/i),o}function Bc(n,e){e.set(0,0),n.forEach(t=>{e.x+=t.clientX,e.y+=t.clientY}),e.x/=n.length,e.y/=n.length}function Wc(n,e){return cs(n)?(console.warn(`${e} is not supported in OrthographicCamera`),!0):!1}class f1{constructor(){this._listeners={}}addEventListener(e,t){const s=this._listeners;s[e]===void 0&&(s[e]=[]),s[e].indexOf(t)===-1&&s[e].push(t)}hasEventListener(e,t){const s=this._listeners;return s[e]!==void 0&&s[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 s=this._listeners[e.type];if(s!==void 0){e.target=this;const r=s.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=mr.NONE,this._thetaVelocity={value:0},this._phiVelocity={value:0},this._radiusVelocity={value:0},this._targetVelocity=new he.Vector3,this._focalOffsetVelocity=new he.Vector3,this._zoomVelocity={value:0},this._truckInternal=(b,y,x)=>{let E,w;if(Ns(this._camera)){const C=_e.copy(this._camera.position).sub(this._target),A=this._camera.getEffectiveFOV()*gi,D=C.length()*Math.tan(A*.5);E=this.truckSpeed*b*D/this._elementRect.height,w=this.truckSpeed*y*D/this._elementRect.height}else if(cs(this._camera)){const C=this._camera;E=b*(C.right-C.left)/C.zoom/this._elementRect.width,w=y*(C.top-C.bottom)/C.zoom/this._elementRect.height}else return;this.verticalDragToForward?(x?this.setFocalOffset(this._focalOffsetEnd.x+E,this._focalOffsetEnd.y,this._focalOffsetEnd.z,!0):this.truck(E,0,!0),this.forward(-w,!0)):x?this.setFocalOffset(this._focalOffsetEnd.x+E,this._focalOffsetEnd.y+w,this._focalOffsetEnd.z,!0):this.truck(E,w,!0)},this._rotateInternal=(b,y)=>{const x=gr*this.azimuthRotateSpeed*b/this._elementRect.height,E=gr*this.polarRotateSpeed*y/this._elementRect.height;this.rotate(x,E,!0)},this._dollyInternal=(b,y,x)=>{const E=Math.pow(.95,-b*this.dollySpeed),w=this._sphericalEnd.radius,C=this._sphericalEnd.radius*E,A=on(C,this.minDistance,this.maxDistance),D=A-C;this.infinityDolly&&this.dollyToCursor?this._dollyToNoClamp(C,!0):this.infinityDolly&&!this.dollyToCursor?(this.dollyInFixed(D,!0),this._dollyToNoClamp(A,!0)):this._dollyToNoClamp(A,!0),this.dollyToCursor&&(this._changedDolly+=(this.infinityDolly?C:A)-w,this._dollyControlCoord.set(y,x)),this._lastDollyDirection=Math.sign(-b)},this._zoomInternal=(b,y,x)=>{const E=Math.pow(.95,b*this.dollySpeed),w=this._zoom,C=this._zoom*E;this.zoomTo(C,!0),this.dollyToCursor&&(this._changedZoom+=C-w,this._dollyControlCoord.set(y,x))},typeof he>"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 he.Quaternion().setFromUnitVectors(this._camera.up,zo),this._yAxisUpSpaceInverse=this._yAxisUpSpace.clone().invert(),this._state=G.NONE,this._target=new he.Vector3,this._targetEnd=this._target.clone(),this._focalOffset=new he.Vector3,this._focalOffsetEnd=this._focalOffset.clone(),this._spherical=new he.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 he.Vector3,new he.Vector3,new he.Vector3,new he.Vector3],this._updateNearPlaneCorners(),this._boundary=new he.Box3(new he.Vector3(-1/0,-1/0,-1/0),new he.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 he.Vector2,this.mouseButtons={left:G.ROTATE,middle:G.DOLLY,right:G.TRUCK,wheel:Ns(this._camera)?G.DOLLY:cs(this._camera)?G.ZOOM:G.NONE},this.touches={one:G.TOUCH_ROTATE,two:Ns(this._camera)?G.TOUCH_DOLLY_TRUCK:cs(this._camera)?G.TOUCH_ZOOM_TRUCK:G.NONE,three:G.TOUCH_TRUCK};const s=new he.Vector2,r=new he.Vector2,i=new he.Vector2,o=b=>{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=b.clientX/E.width,C=b.clientY/E.height;if(wthis._interactiveArea.right||Cthis._interactiveArea.bottom)return}const y=b.pointerType!=="mouse"?null:(b.buttons&pe.LEFT)===pe.LEFT?pe.LEFT:(b.buttons&pe.MIDDLE)===pe.MIDDLE?pe.MIDDLE:(b.buttons&pe.RIGHT)===pe.RIGHT?pe.RIGHT:null;if(y!==null){const E=this._findPointerByMouseButton(y);E&&this._disposePointer(E)}if((b.buttons&pe.LEFT)===pe.LEFT&&this._lockedPointer)return;const x={pointerId:b.pointerId,clientX:b.clientX,clientY:b.clientY,deltaX:0,deltaY:0,mouseButton:y};this._activePointers.push(x),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(b)},a=b=>{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=b.clientX/E.width,C=b.clientY/E.height;if(wthis._interactiveArea.right||Cthis._interactiveArea.bottom)return}const y=(b.buttons&pe.LEFT)===pe.LEFT?pe.LEFT:(b.buttons&pe.MIDDLE)===pe.MIDDLE?pe.MIDDLE:(b.buttons&pe.RIGHT)===pe.RIGHT?pe.RIGHT:null;if(y!==null){const E=this._findPointerByMouseButton(y);E&&this._disposePointer(E)}const x={pointerId:1,clientX:b.clientX,clientY:b.clientY,deltaX:0,deltaY:0,mouseButton:(b.buttons&pe.LEFT)===pe.LEFT?pe.LEFT:(b.buttons&pe.MIDDLE)===pe.LEFT?pe.MIDDLE:(b.buttons&pe.RIGHT)===pe.LEFT?pe.RIGHT:null};this._activePointers.push(x),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(b)},c=b=>{b.cancelable&&b.preventDefault();const y=b.pointerId,x=this._lockedPointer||this._findPointerById(y);if(x){if(x.clientX=b.clientX,x.clientY=b.clientY,x.deltaX=b.movementX,x.deltaY=b.movementY,this._state=0,b.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&&(b.buttons&pe.LEFT)===pe.LEFT)&&(this._state=this._state|this.mouseButtons.left),this._isDragging&&(b.buttons&pe.MIDDLE)===pe.MIDDLE&&(this._state=this._state|this.mouseButtons.middle),this._isDragging&&(b.buttons&pe.RIGHT)===pe.RIGHT&&(this._state=this._state|this.mouseButtons.right);g()}},l=b=>{const y=this._lockedPointer||this._findPointerById(1);y&&(y.clientX=b.clientX,y.clientY=b.clientY,y.deltaX=b.movementX,y.deltaY=b.movementY,this._state=0,(this._lockedPointer||(b.buttons&pe.LEFT)===pe.LEFT)&&(this._state=this._state|this.mouseButtons.left),(b.buttons&pe.MIDDLE)===pe.MIDDLE&&(this._state=this._state|this.mouseButtons.middle),(b.buttons&pe.RIGHT)===pe.RIGHT&&(this._state=this._state|this.mouseButtons.right),g())},u=b=>{const y=this._findPointerById(b.pointerId);if(!(y&&y===this._lockedPointer)){if(y&&this._disposePointer(y),b.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 b=this._findPointerById(1);b&&b===this._lockedPointer||(b&&this._disposePointer(b),this._state=G.NONE,_())};let d=-1;const f=b=>{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(),A=b.clientX/C.width,D=b.clientY/C.height;if(Athis._interactiveArea.right||Dthis._interactiveArea.bottom)return}if(b.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=m1?-1:-3,x=b.deltaMode===1?b.deltaY/y:b.deltaY/(y*10),E=this.dollyToCursor?(b.clientX-this._elementRect.x)/this._elementRect.width*2-1:0,w=this.dollyToCursor?(b.clientY-this._elementRect.y)/this._elementRect.height*-2+1:0;switch(this.mouseButtons.wheel){case G.ROTATE:{this._rotateInternal(b.deltaX,b.deltaY),this._isUserControllingRotate=!0;break}case G.TRUCK:{this._truckInternal(b.deltaX,b.deltaY,!1),this._isUserControllingTruck=!0;break}case G.OFFSET:{this._truckInternal(b.deltaX,b.deltaY,!0),this._isUserControllingOffset=!0;break}case G.DOLLY:{this._dollyInternal(-x,E,w),this._isUserControllingDolly=!0;break}case G.ZOOM:{this._zoomInternal(-x,E,w),this._isUserControllingZoom=!0;break}}this.dispatchEvent({type:"control"})},m=b=>{if(!(!this._domElement||!this._enabled)){if(this.mouseButtons.right===bl.ACTION.NONE){const y=b instanceof PointerEvent?b.pointerId:(b instanceof MouseEvent,0),x=this._findPointerById(y);x&&this._disposePointer(x),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}b.preventDefault()}},p=b=>{if(!this._enabled)return;if(Bc(this._activePointers,Ct),this._getClientRect(this._elementRect),s.copy(Ct),r.copy(Ct),this._activePointers.length>=2){const x=Ct.x-this._activePointers[1].clientX,E=Ct.y-this._activePointers[1].clientY,w=Math.sqrt(x*x+E*E);i.set(0,w);const C=(this._activePointers[0].clientX+this._activePointers[1].clientX)*.5,A=(this._activePointers[0].clientY+this._activePointers[1].clientY)*.5;r.set(C,A)}if(this._state=0,!b)this._lockedPointer&&(this._state=this._state|this.mouseButtons.left);else if("pointerType"in b&&b.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&&(b.buttons&pe.LEFT)===pe.LEFT&&(this._state=this._state|this.mouseButtons.left),(b.buttons&pe.MIDDLE)===pe.MIDDLE&&(this._state=this._state|this.mouseButtons.middle),(b.buttons&pe.RIGHT)===pe.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,Bc(this._activePointers,Ct);const y=this._domElement&&document.pointerLockElement===this._domElement?this._lockedPointer||this._activePointers[0]:null,x=y?-y.deltaX:r.x-Ct.x,E=y?-y.deltaY:r.y-Ct.y;if(r.copy(Ct),((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(x,E),this._isUserControllingRotate=!0),(this._state&G.DOLLY)===G.DOLLY||(this._state&G.ZOOM)===G.ZOOM){const w=this.dollyToCursor?(s.x-this._elementRect.x)/this._elementRect.width*2-1:0,C=this.dollyToCursor?(s.y-this._elementRect.y)/this._elementRect.height*-2+1:0,A=this.dollyDragInverted?-1:1;(this._state&G.DOLLY)===G.DOLLY?(this._dollyInternal(A*E*jo,w,C),this._isUserControllingDolly=!0):(this._zoomInternal(A*E*jo,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=Ct.x-this._activePointers[1].clientX,C=Ct.y-this._activePointers[1].clientY,A=Math.sqrt(w*w+C*C),D=i.y-A;i.set(0,A);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*jo,O,L),this._isUserControllingDolly=!0):(this._zoomInternal(D*jo,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(x,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(x,E,!0),this._isUserControllingOffset=!0),this.dispatchEvent({type:"control"})},_=()=>{Bc(this._activePointers,Ct),r.copy(Ct),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",k),this._domElement.ownerDocument.addEventListener("pointerlockerror",T),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",k),this._domElement.ownerDocument.removeEventListener("pointerlockerror",T))};const k=()=>{this._domElement&&this._domElement.ownerDocument.pointerLockElement===this._domElement||this.unlockPointer()},T=()=>{this.unlockPointer()};this._addAllEventListeners=b=>{this._domElement=b,this._domElement.style.touchAction="none",this._domElement.style.userSelect="none",this._domElement.style.webkitUserSelect="none",this._domElement.addEventListener("pointerdown",o),g1&&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",k),this._domElement.ownerDocument.removeEventListener("pointerlockerror",T))},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=on(e.width,0,1),this._interactiveArea.height=on(e.height,0,1),this._interactiveArea.x=on(e.x,0,1-this._interactiveArea.width),this._interactiveArea.y=on(e.y,0,1-this._interactiveArea.height)}addEventListener(e,t){super.addEventListener(e,t)}removeEventListener(e,t){super.removeEventListener(e,t)}rotate(e,t,s=!1){return this.rotateTo(this._sphericalEnd.theta+e,this._sphericalEnd.phi+t,s)}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,s=!1){this._isUserControllingRotate=!1;const r=on(e,this.minAzimuthAngle,this.maxAzimuthAngle),i=on(t,this.minPolarAngle,this.maxPolarAngle);this._sphericalEnd.theta=r,this._sphericalEnd.phi=i,this._sphericalEnd.makeSafe(),this._needsUpdate=!0,s||(this._spherical.theta=this._sphericalEnd.theta,this._spherical.phi=this._sphericalEnd.phi);const o=!s||Ce(this._spherical.theta,this._sphericalEnd.theta,this.restThreshold)&&Ce(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=mr.NONE,this._changedDolly=0,this._dollyToNoClamp(on(e,this.minDistance,this.maxDistance),t)}_dollyToNoClamp(e,t=!1){const s=this._sphericalEnd.radius;if(this.colliderMeshes.length>=1){const o=this._collisionTest(),a=Ce(o,this._spherical.radius);if(!(s>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||Ce(this._spherical.radius,this._sphericalEnd.radius,this.restThreshold);return this._createOnRestPromise(i)}dollyInFixed(e,t=!1){this._targetEnd.add(this._getCameraDirection(vi).multiplyScalar(e)),t||this._target.copy(this._targetEnd);const s=!t||Ce(this._target.x,this._targetEnd.x,this.restThreshold)&&Ce(this._target.y,this._targetEnd.y,this.restThreshold)&&Ce(this._target.z,this._targetEnd.z,this.restThreshold);return this._createOnRestPromise(s)}zoom(e,t=!1){return this.zoomTo(this._zoomEnd+e,t)}zoomTo(e,t=!1){this._isUserControllingZoom=!1,this._zoomEnd=on(e,this.minZoom,this.maxZoom),this._needsUpdate=!0,t||(this._zoom=this._zoomEnd);const s=!t||Ce(this._zoom,this._zoomEnd,this.restThreshold);return this._changedZoom=0,this._createOnRestPromise(s)}pan(e,t,s=!1){return console.warn("`pan` has been renamed to `truck`"),this.truck(e,t,s)}truck(e,t,s=!1){this._camera.updateMatrix(),bn.setFromMatrixColumn(this._camera.matrix,0),xn.setFromMatrixColumn(this._camera.matrix,1),bn.multiplyScalar(e),xn.multiplyScalar(-t);const r=_e.copy(bn).add(xn),i=Te.copy(this._targetEnd).add(r);return this.moveTo(i.x,i.y,i.z,s)}forward(e,t=!1){_e.setFromMatrixColumn(this._camera.matrix,0),_e.crossVectors(this._camera.up,_e),_e.multiplyScalar(e);const s=Te.copy(this._targetEnd).add(_e);return this.moveTo(s.x,s.y,s.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,s,r=!1){this._isUserControllingTruck=!1;const i=_e.set(e,t,s).sub(this._targetEnd);this._encloseToBoundary(this._targetEnd,i,this.boundaryFriction),this._needsUpdate=!0,r||this._target.copy(this._targetEnd);const o=!r||Ce(this._target.x,this._targetEnd.x,this.restThreshold)&&Ce(this._target.y,this._targetEnd.y,this.restThreshold)&&Ce(this._target.z,this._targetEnd.z,this.restThreshold);return this._createOnRestPromise(o)}lookInDirectionOf(e,t,s,r=!1){const a=_e.set(e,t,s).sub(this._targetEnd).normalize().multiplyScalar(-this._sphericalEnd.radius);return this.setPosition(a.x,a.y,a.z,r)}fitToBox(e,t,{cover:s=!1,paddingLeft:r=0,paddingRight:i=0,paddingBottom:o=0,paddingTop:a=0}={}){const c=[],l=e.isBox3?yr.copy(e):yr.setFromObject(e);l.isEmpty()&&(console.warn("camera-controls: fitTo() cannot be used with an empty box. Aborting"),Promise.resolve());const u=td(this._sphericalEnd.theta,ed),h=td(this._sphericalEnd.phi,ed);c.push(this.rotateTo(u,h,t));const d=_e.setFromSpherical(this._sphericalEnd).normalize(),f=ad.setFromUnitVectors(d,qc),m=Ce(Math.abs(d.y),1);m&&f.multiply(Yc.setFromAxisAngle(zo,u)),f.multiply(this._yAxisUpSpaceInverse);const p=od.makeEmpty();Te.copy(l.min).applyQuaternion(f),p.expandByPoint(Te),Te.copy(l.min).setX(l.max.x).applyQuaternion(f),p.expandByPoint(Te),Te.copy(l.min).setY(l.max.y).applyQuaternion(f),p.expandByPoint(Te),Te.copy(l.max).setZ(l.min.z).applyQuaternion(f),p.expandByPoint(Te),Te.copy(l.min).setZ(l.max.z).applyQuaternion(f),p.expandByPoint(Te),Te.copy(l.max).setY(l.min.y).applyQuaternion(f),p.expandByPoint(Te),Te.copy(l.max).setX(l.min.x).applyQuaternion(f),p.expandByPoint(Te),Te.copy(l.max).applyQuaternion(f),p.expandByPoint(Te),p.min.x-=r,p.min.y-=o,p.max.x+=i,p.max.y+=a,f.setFromUnitVectors(qc,d),m&&f.premultiply(Yc.invert()),f.premultiply(this._yAxisUpSpace);const g=p.getSize(_e),_=p.getCenter(Te).applyQuaternion(f);if(Ns(this._camera)){const k=this.getDistanceToFitBox(g.x,g.y,g.z,s);c.push(this.moveTo(_.x,_.y,_.z,t)),c.push(this.dollyTo(k,t)),c.push(this.setFocalOffset(0,0,0,t))}else if(cs(this._camera)){const k=this._camera,T=k.right-k.left,b=k.top-k.bottom,y=s?Math.max(T/g.x,b/g.y):Math.min(T/g.x,b/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 s=[],i=e instanceof he.Sphere?Hc.copy(e):bl.createBoundingSphere(e,Hc);if(s.push(this.moveTo(i.center.x,i.center.y,i.center.z,t)),Ns(this._camera)){const o=this.getDistanceToFitSphere(i.radius);s.push(this.dollyTo(o,t))}else if(cs(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);s.push(this.zoomTo(l,t))}return s.push(this.setFocalOffset(0,0,0,t)),Promise.all(s)}setLookAt(e,t,s,r,i,o,a=!1){this._isUserControllingRotate=!1,this._isUserControllingDolly=!1,this._isUserControllingTruck=!1,this._lastDollyDirection=mr.NONE,this._changedDolly=0;const c=Te.set(r,i,o),l=_e.set(e,t,s);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||Ce(this._target.x,this._targetEnd.x,this.restThreshold)&&Ce(this._target.y,this._targetEnd.y,this.restThreshold)&&Ce(this._target.z,this._targetEnd.z,this.restThreshold)&&Ce(this._spherical.theta,this._sphericalEnd.theta,this.restThreshold)&&Ce(this._spherical.phi,this._sphericalEnd.phi,this.restThreshold)&&Ce(this._spherical.radius,this._sphericalEnd.radius,this.restThreshold);return this._createOnRestPromise(u)}lerpLookAt(e,t,s,r,i,o,a,c,l,u,h,d,f,m=!1){this._isUserControllingRotate=!1,this._isUserControllingDolly=!1,this._isUserControllingTruck=!1,this._lastDollyDirection=mr.NONE,this._changedDolly=0;const p=_e.set(r,i,o),g=Te.set(e,t,s);Ht.setFromVector3(g.sub(p).applyQuaternion(this._yAxisUpSpace));const _=_r.set(u,h,d),k=Te.set(a,c,l);bi.setFromVector3(k.sub(_).applyQuaternion(this._yAxisUpSpace)),this._targetEnd.copy(p.lerp(_,f));const T=bi.theta-Ht.theta,b=bi.phi-Ht.phi,y=bi.radius-Ht.radius;this._sphericalEnd.set(Ht.radius+y*f,Ht.phi+b*f,Ht.theta+T*f),this.normalizeRotations(),this._needsUpdate=!0,m||(this._target.copy(this._targetEnd),this._spherical.copy(this._sphericalEnd));const x=!m||Ce(this._target.x,this._targetEnd.x,this.restThreshold)&&Ce(this._target.y,this._targetEnd.y,this.restThreshold)&&Ce(this._target.z,this._targetEnd.z,this.restThreshold)&&Ce(this._spherical.theta,this._sphericalEnd.theta,this.restThreshold)&&Ce(this._spherical.phi,this._sphericalEnd.phi,this.restThreshold)&&Ce(this._spherical.radius,this._sphericalEnd.radius,this.restThreshold);return this._createOnRestPromise(x)}setPosition(e,t,s,r=!1){return this.setLookAt(e,t,s,this._targetEnd.x,this._targetEnd.y,this._targetEnd.z,r)}setTarget(e,t,s,r=!1){const i=this.getPosition(_e),o=this.setLookAt(i.x,i.y,i.z,e,t,s,r);return this._sphericalEnd.phi=on(this._sphericalEnd.phi,this.minPolarAngle,this.maxPolarAngle),o}setFocalOffset(e,t,s,r=!1){this._isUserControllingOffset=!1,this._focalOffsetEnd.set(e,t,s),this._needsUpdate=!0,r||this._focalOffset.copy(this._focalOffsetEnd);const i=!r||Ce(this._focalOffset.x,this._focalOffsetEnd.x,this.restThreshold)&&Ce(this._focalOffset.y,this._focalOffsetEnd.y,this.restThreshold)&&Ce(this._focalOffset.z,this._focalOffsetEnd.z,this.restThreshold);return this._createOnRestPromise(i)}setOrbitPoint(e,t,s){this._camera.updateMatrixWorld(),bn.setFromMatrixColumn(this._camera.matrixWorldInverse,0),xn.setFromMatrixColumn(this._camera.matrixWorldInverse,1),Is.setFromMatrixColumn(this._camera.matrixWorldInverse,2);const r=_e.set(e,t,s),i=r.distanceTo(this._camera.position),o=r.sub(this._camera.position);bn.multiplyScalar(o.x),xn.multiplyScalar(o.y),Is.multiplyScalar(o.z),_e.copy(bn).add(xn).add(Is),_e.z=_e.z+i,this.dollyTo(i,!1),this.setFocalOffset(-_e.x,_e.y,-_e.z,!1),this.moveTo(e,t,s,!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,s,r){if(e===null){this._viewport=null;return}this._viewport=this._viewport||new he.Vector4,typeof e=="number"?this._viewport.set(e,t,s,r):this._viewport.copy(e)}getDistanceToFitBox(e,t,s,r=!1){if(Wc(this._camera,"getDistanceToFitBox"))return this._spherical.radius;const i=e/t,o=this._camera.getEffectiveFOV()*gi,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,s){const r=t.lengthSq();if(r===0)return e;const i=Te.copy(t).add(e),a=this._boundary.clampPoint(i,_r).sub(i),c=a.lengthSq();if(c===0)return e.add(t);if(c===r)return e;if(s===0)return e.add(t).add(a);{const l=1+s*c/t.dot(a);return e.add(Te.copy(t).multiplyScalar(l)).add(a.multiplyScalar(1-s))}}_updateNearPlaneCorners(){if(Ns(this._camera)){const e=this._camera,t=e.near,s=e.getEffectiveFOV()*gi,r=Math.tan(s*.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(cs(this._camera)){const e=this._camera,t=1/e.zoom,s=e.left*t,r=e.right*t,i=e.top*t,o=e.bottom*t;this._nearPlaneCorners[0].set(s,i,0),this._nearPlaneCorners[1].set(r,i,0),this._nearPlaneCorners[2].set(r,o,0),this._nearPlaneCorners[3].set(s,o,0)}}_collisionTest(){let e=1/0;if(!(this.colliderMeshes.length>=1)||Wc(this._camera,"_collisionTest"))return e;const s=this._getTargetDirection(vi);Gc.lookAt(sd,s,this._camera.up);for(let r=0;r<4;r++){const i=Te.copy(this._nearPlaneCorners[r]);i.applyMatrix4(Gc);const o=_r.addVectors(this._target,i);Vo.set(o,s),Vo.far=this._spherical.radius+1;const a=Vo.intersectObjects(this.colliderMeshes);a.length!==0&&a[0].distance{const s=()=>{this.removeEventListener("rest",s),t()};this.addEventListener("rest",s)}))}_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 he.Sphere){const s=t,r=s.center;yr.makeEmpty(),e.traverseVisible(o=>{o.isMesh&&yr.expandByObject(o)}),yr.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(()=>{Xc.install({THREE:ay}),mu({CameraControlsImpl:Xc})},[]);const{camera:t,domElement:s,makeDefault:r,onStart:i,onEnd:o,onChange:a,regress:c,...l}=n,u=Ye(y=>y.camera),h=Ye(y=>y.gl),d=Ye(y=>y.invalidate),f=Ye(y=>y.events),m=Ye(y=>y.setEvents),p=Ye(y=>y.set),g=Ye(y=>y.get),_=Ye(y=>y.performance),k=t||u,T=s||f.connected||h.domElement,b=v.useMemo(()=>new Xc(k),[k]);return nn((y,x)=>{b.enabled&&b.update(x)},-1),v.useEffect(()=>(b.connect(T),()=>void b.disconnect()),[T,b]),v.useEffect(()=>{const y=w=>{d(),c&&_.regress(),a&&a(w)},x=w=>{i&&i(w)},E=w=>{o&&o(w)};return b.addEventListener("update",y),b.addEventListener("controlstart",x),b.addEventListener("controlend",E),()=>{b.removeEventListener("update",y),b.removeEventListener("controlstart",x),b.removeEventListener("controlend",E)}},[b,i,o,d,m,c,a]),v.useEffect(()=>{if(r){const y=g().controls;return p({controls:b}),()=>p({controls:y})}},[r,b]),v.createElement("primitive",Se({ref:e,object:b},l))});Ee.func.isRequired,Ee.arrayOf(Ee.oneOfType([Ee.element,Ee.func])).isRequired;const cd=new go,ld=new go,Uo=[],xi=new vp;class _1 extends cy{constructor(){super(),this.color=new pa("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 s=this.instance.current;if(!s||!s.geometry||!s.material)return;xi.geometry=s.geometry;const r=s.matrixWorld,i=s.userData.instances.indexOf(this.instanceKey);if(!(i===-1||i>s.count)){s.getMatrixAt(i,cd),ld.multiplyMatrices(r,cd),xi.matrixWorld=ld,s.material instanceof ly?xi.material.side=s.material.side:xi.material.side=s.material[0].side,xi.raycast(e,Uo);for(let o=0,a=Uo.length;o{v.useMemo(()=>mu({PositionMesh:_1}),[]);const r=v.useRef(),{subscribe:i,getParent:o}=v.useContext(n||Np);return v.useLayoutEffect(()=>i(r),[]),v.createElement("positionMesh",Se({instance:o(),instanceKey:r,ref:ic([s,r])},t),e)}),v1=v.forwardRef(({children:n,range:e,limit:t=1e3,frames:s=1/0,...r},i)=>{const[{context:o,instance:a}]=v.useState(()=>{const g=v.createContext(null);return{context:g,instance:v.forwardRef((_,k)=>v.createElement(Ip,Se({context:g},_,{ref:k})))}}),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;nn(()=>{if(s===1/0||f({getParent:()=>c,subscribe:g=>(u(_=>[..._,g]),()=>u(_=>_.filter(k=>k.current!==g.current)))}),[]);return v.createElement("instancedMesh",Se({userData:{instances:l},matrixAutoUpdate:!1,ref:ic([i,c]),args:[null,null,0],raycast:()=>null},r),v.createElement("instancedBufferAttribute",{attach:"instanceMatrix",count:h.length/16,array:h,itemSize:16,usage:Vh}),v.createElement("instancedBufferAttribute",{attach:"instanceColor",count:d.length/3,array:d,itemSize:3,usage:Vh}),typeof n=="function"?v.createElement(o.Provider,{value:p},n(a)):v.createElement(Np.Provider,{value:p},n))}),$p=v.createContext(null),b1=v.forwardRef((n,e)=>{v.useMemo(()=>mu({SegmentObject:x1}),[]);const{limit:t=1e3,lineWidth:s=1,children:r,...i}=n,[o,a]=v.useState([]),[c]=v.useState(()=>new gu),[l]=v.useState(()=>new U_),[u]=v.useState(()=>new B_),[h]=v.useState(()=>new ke(512,512)),[d]=v.useState(()=>Array(t*6).fill(0)),[f]=v.useState(()=>Array(t*6).fill(0)),m=v.useMemo(()=>({subscribe:p=>(a(g=>[...g,p]),()=>a(g=>g.filter(_=>_.current!==p.current)))}),[]);return nn(()=>{for(let g=0;gn instanceof ye?n:new ye(...typeof n=="number"?[n,n,n]:n),w1=v.forwardRef(({color:n,start:e,end:t},s)=>{const r=v.useContext($p);if(!r)throw"Segment must used inside Segments component.";const i=v.useRef(null);return v.useLayoutEffect(()=>r.subscribe(i),[]),v.createElement("segmentObject",{ref:ic([i,s]),color:n,start:md(e),end:md(t)})});function T1({all:n,scene:e,camera:t}){const s=Ye(({gl:o})=>o),r=Ye(({camera:o})=>o),i=Ye(({scene:o})=>o);return v.useLayoutEffect(()=>{const o=[];n&&(e||i).traverse(l=>{l.visible===!1&&(o.push(l),l.visible=!0)}),s.compile(e||i,t||r);const a=new hy(128);new dy(.01,1e5,a).update(s,e||i),a.dispose(),o.forEach(l=>l.visible=!1)},[]),null}function gd({pixelated:n}){const e=Ye(o=>o.gl),t=Ye(o=>o.internal.active),s=Ye(o=>o.performance.current),r=Ye(o=>o.viewport.initialDpr),i=Ye(o=>o.setDpr);return v.useEffect(()=>{const o=e.domElement;return()=>{t&&i(r),n&&o&&(o.style.imageRendering="auto")}},[]),v.useEffect(()=>{i(s*r),n&&e.domElement&&(e.domElement.style.imageRendering=s===1?"auto":"pixelated")},[s]),null}function _d(){const n=Ye(s=>s.get),e=Ye(s=>s.setEvents),t=Ye(s=>s.performance.current);return v.useEffect(()=>{const s=n().events.enabled;return()=>e({enabled:s})},[]),v.useEffect(()=>e({enabled:t===1}),[t]),null}const k1=v.createContext(null);function E1({children:n,enabled:e=!0}){const[t,s]=v.useState([]),r=v.useMemo(()=>({selected:t,select:s,enabled:e}),[t,s,e]);return M.jsx(k1.Provider,{value:r,children:n})}function C1(n,e){typeof n=="function"?n(e):n!=null&&(n.current=e)}function Fp(...n){return e=>n.forEach(t=>C1(t,e))}function ei(...n){return v.useCallback(Fp(...n),n)}const Lp=v.forwardRef((n,e)=>{const{children:t,...s}=n,r=v.Children.toArray(t),i=r.find(S1);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(xl,Se({},s,{ref:e}),v.isValidElement(o)?v.cloneElement(o,void 0,a):null)}return v.createElement(xl,Se({},s,{ref:e}),t)});Lp.displayName="Slot";const xl=v.forwardRef((n,e)=>{const{children:t,...s}=n;return v.isValidElement(t)?v.cloneElement(t,{...O1(s,t.props),ref:e?Fp(e,t.ref):t.ref}):v.Children.count(t)>1?v.Children.only(null):null});xl.displayName="SlotClone";const jp=({children:n})=>v.createElement(v.Fragment,null,n);function S1(n){return v.isValidElement(n)&&n.type===jp}function O1(n,e){const t={...e};for(const s in e){const r=n[s],i=e[s];/^on[A-Z]/.test(s)?r&&i?t[s]=(...a)=>{i(...a),r(...a)}:r&&(t[s]=r):s==="style"?t[s]={...r,...i}:s==="className"&&(t[s]=[r,i].filter(Boolean).join(" "))}return{...n,...t}}const A1=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],ar=A1.reduce((n,e)=>{const t=v.forwardRef((s,r)=>{const{asChild:i,...o}=s,a=i?Lp:e;return v.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),v.createElement(a,Se({},o,{ref:r}))});return t.displayName=`Primitive.${e}`,{...n,[e]:t}},{});function R1(n,e){n&&fu.flushSync(()=>n.dispatchEvent(e))}const D1=v.forwardRef((n,e)=>{var t;const{container:s=globalThis==null||(t=globalThis.document)===null||t===void 0?void 0:t.body,...r}=n;return s?lp.createPortal(v.createElement(ar.div,Se({},r,{ref:e})),s):null}),P1=D1;var yd=Object.prototype.hasOwnProperty;function zi(n,e){var t,s;if(n===e)return!0;if(n&&e&&(t=n.constructor)===e.constructor){if(t===Date)return n.getTime()===e.getTime();if(t===RegExp)return n.toString()===e.toString();if(t===Array){if((s=n.length)===e.length)for(;s--&&zi(n[s],e[s]););return s===-1}if(!t||typeof n=="object"){s=0;for(t in n)if(yd.call(n,t)&&++s&&!yd.call(e,t)||!(t in e)||!zi(n[t],e[t]))return!1;return Object.keys(e).length===s}}return n!==n&&e!==e}function yo(n,e){if(Object.is(n,e))return!0;if(typeof n!="object"||n===null||typeof e!="object"||e===null)return!1;const t=Object.keys(n);if(t.length!==Object.keys(e).length)return!1;for(let s=0;s0;)o[a]=arguments[a+4];n.call(this,o),n.captureStackTrace&&n.captureStackTrace(this,e),this.rule=t,this.value=s,this.cause=r,this.target=i}return n&&(e.__proto__=n),e.prototype=Object.create(n&&n.prototype),e.prototype.constructor=e,e}(Error),On=function(e,t){e===void 0&&(e=[]),t===void 0&&(t=[]),this.chain=e,this.nextRuleModifiers=t};On.prototype._applyRule=function(e,t){var s=this;return function(){for(var r=[],i=arguments.length;i--;)r[i]=arguments[i];return s.chain.push(new fc(t,e.apply(s,r),r,s.nextRuleModifiers)),s.nextRuleModifiers=[],s}};On.prototype._applyModifier=function(e,t){return this.nextRuleModifiers.push(new M1(t,e.simple,e.async)),this};On.prototype._clone=function(){return new On(this.chain.slice(),this.nextRuleModifiers.slice())};On.prototype.test=function(e){return this.chain.every(function(t){return t._test(e)})};On.prototype.testAll=function(e){var t=[];return this.chain.forEach(function(s){try{s._check(e)}catch(r){t.push(new Cu(s,e,r))}}),t};On.prototype.check=function(e){this.chain.forEach(function(t){try{t._check(e)}catch(s){throw new Cu(t,e,s)}})};On.prototype.testAsync=function(e){var t=this;return new Promise(function(s,r){Up(e,t.chain.slice(),s,r)})};function Up(n,e,t,s){if(e.length){var r=e.shift();r._testAsync(n).then(function(){Up(n,e,t,s)},function(i){s(new Cu(r,n,i))})}else t(n)}var vd=function(n,e){return e&&typeof n=="string"&&n.trim().length===0?!0:n==null};function N1(n,e){return e===void 0&&(e=!1),{simple:function(t){return vd(t,e)||n.check(t)===void 0},async:function(t){return vd(t,e)||n.testAsync(t)}}}function Ot(){return typeof Proxy<"u"?Bp(new On):wl(new On)}var Vi={};Ot.extend=function(n){Object.assign(Vi,n)};Ot.clearCustomRules=function(){Vi={}};function Bp(n){return new Proxy(n,{get:function(t,s){if(s in t)return t[s];var r=Bp(n._clone());if(s in va)return r._applyModifier(va[s],s);if(s in Vi)return r._applyRule(Vi[s],s);if(s in Tl)return r._applyRule(Tl[s],s)}})}function wl(n){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=wl(i._clone()),u=l._applyRule(r[o],o).apply(void 0,a);return u}}),i},t=e(Tl,n),s=e(Vi,t);return Object.keys(va).forEach(function(r){Object.defineProperty(s,r,{get:function(){var i=wl(s._clone());return i._applyModifier(va[r],r)}})}),s}var va={not:{simple:function(n){return function(e){return!n(e)}},async:function(n){return function(e){return Promise.resolve(n(e)).then(function(t){return!t}).catch(function(){return!0})}}},some:{simple:function(n){return function(e){return Bo(e).some(function(t){try{return n(t)}catch{return!1}})}},async:function(n){return function(e){return Promise.all(Bo(e).map(function(t){try{return n(t).catch(function(){return!1})}catch{return!1}})).then(function(t){return t.some(Boolean)})}}},every:{simple:function(n){return function(e){return e!==!1&&Bo(e).every(n)}},async:function(n){return function(e){return Promise.all(Bo(e).map(n)).then(function(t){return t.every(Boolean)})}}},strict:{simple:function(n,e){return function(t){return bd(e)&&t&&typeof t=="object"?Object.keys(e.args[0]).length===Object.keys(t).length&&n(t):n(t)}},async:function(n,e){return function(t){return Promise.resolve(n(t)).then(function(s){return bd(e)&&t&&typeof t=="object"?Object.keys(e.args[0]).length===Object.keys(t).length&&s:s}).catch(function(){return!1})}}}};function bd(n){return n&&n.name==="schema"&&n.args.length>0&&typeof n.args[0]=="object"}function Bo(n){return typeof n=="string"?n.split(""):n}var Tl={equal:function(n){return function(e){return e==n}},exact:function(n){return function(e){return e===n}},number:function(n){return n===void 0&&(n=!0),function(e){return typeof e=="number"&&(n||isFinite(e))}},integer:function(){return function(n){var e=Number.isInteger||I1;return e(n)}},numeric:function(){return function(n){return!isNaN(parseFloat(n))&&isFinite(n)}},string:function(){return vr("string")},boolean:function(){return vr("boolean")},undefined:function(){return vr("undefined")},null:function(){return vr("null")},array:function(){return vr("array")},object:function(){return vr("object")},instanceOf:function(n){return function(e){return e instanceof n}},pattern:function(n){return function(e){return n.test(e)}},lowercase:function(){return function(n){return typeof n=="boolean"||n===n.toLowerCase()&&n.trim()!==""}},uppercase:function(){return function(n){return n===n.toUpperCase()&&n.trim()!==""}},vowel:function(){return function(n){return/^[aeiou]+$/i.test(n)}},consonant:function(){return function(n){return/^(?=[^aeiou])([a-z]+)$/i.test(n)}},first:function(n){return function(e){return e[0]==n}},last:function(n){return function(e){return e[e.length-1]==n}},empty:function(){return function(n){return n.length===0}},length:function(n,e){return function(t){return t.length>=n&&t.length<=(e||n)}},minLength:function(n){return function(e){return e.length>=n}},maxLength:function(n){return function(e){return e.length<=n}},negative:function(){return function(n){return n<0}},positive:function(){return function(n){return n>=0}},between:function(n,e){return function(t){return t>=n&&t<=e}},range:function(n,e){return function(t){return t>=n&&t<=e}},lessThan:function(n){return function(e){return en}},greaterThanOrEqual:function(n){return function(e){return e>=n}},even:function(){return function(n){return n%2===0}},odd:function(){return function(n){return n%2!==0}},includes:function(n){return function(e){return~e.indexOf(n)}},schema:function(n){return $1(n)},passesAnyOf:function(){for(var n=[],e=arguments.length;e--;)n[e]=arguments[e];return function(t){return n.some(function(s){return s.test(t)})}},optional:N1};function vr(n){return function(e){return Array.isArray(e)&&n==="array"||e===null&&n==="null"||typeof e===n}}function I1(n){return typeof n=="number"&&isFinite(n)&&Math.floor(n)===n}function $1(n){return{simple:function(e){var t=[];if(Object.keys(n).forEach(function(s){var r=n[s];try{r.check((e||{})[s])}catch(i){i.target=s,t.push(i)}}),t.length>0)throw t;return!0},async:function(e){var t=[],s=Object.keys(n).map(function(r){var i=n[r];return i.testAsync((e||{})[r]).catch(function(o){o.target=r,t.push(o)})});return Promise.all(s).then(function(){if(t.length>0)throw t;return!0})}}}function Vn(n,e,{checkForDefaultPrevented:t=!0}={}){return function(r){if(n==null||n(r),t===!1||!r.defaultPrevented)return e==null?void 0:e(r)}}function Wp(n,e=[]){let t=[];function s(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[n][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[n][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[n])||i;return v.useMemo(()=>({[`__scope${n}`]:{...a,[n]:c}}),[a,c])}};return r.scopeName=n,[s,F1(r,...e)]}function F1(...n){const e=n[0];if(n.length===1)return e;const t=()=>{const s=n.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(i){const o=s.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 ti(n){const e=v.useRef(n);return v.useEffect(()=>{e.current=n}),v.useMemo(()=>(...t)=>{var s;return(s=e.current)===null||s===void 0?void 0:s.call(e,...t)},[])}function L1(n,e=globalThis==null?void 0:globalThis.document){const t=ti(n);v.useEffect(()=>{const s=r=>{r.key==="Escape"&&t(r)};return e.addEventListener("keydown",s),()=>e.removeEventListener("keydown",s)},[t,e])}const kl="dismissableLayer.update",j1="dismissableLayer.pointerDownOutside",z1="dismissableLayer.focusOutside";let xd;const V1=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),U1=v.forwardRef((n,e)=>{var t;const{disableOutsidePointerEvents:s=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:o,onInteractOutside:a,onDismiss:c,...l}=n,u=v.useContext(V1),[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=ei(e,w=>d(w)),g=Array.from(u.layers),[_]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),k=g.indexOf(_),T=h?g.indexOf(h):-1,b=u.layersWithOutsidePointerEventsDisabled.size>0,y=T>=k,x=B1(w=>{const C=w.target,A=[...u.branches].some(D=>D.contains(C));!y||A||(i==null||i(w),a==null||a(w),w.defaultPrevented||c==null||c())},f),E=W1(w=>{const C=w.target;[...u.branches].some(D=>D.contains(C))||(o==null||o(w),a==null||a(w),w.defaultPrevented||c==null||c())},f);return L1(w=>{T===u.layers.size-1&&(r==null||r(w),!w.defaultPrevented&&c&&(w.preventDefault(),c()))},f),v.useEffect(()=>{if(h)return s&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(xd=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(h)),u.layers.add(h),wd(),()=>{s&&u.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=xd)}},[h,f,s,u]),v.useEffect(()=>()=>{h&&(u.layers.delete(h),u.layersWithOutsidePointerEventsDisabled.delete(h),wd())},[h,u]),v.useEffect(()=>{const w=()=>m({});return document.addEventListener(kl,w),()=>document.removeEventListener(kl,w)},[]),v.createElement(ar.div,Se({},l,{ref:p,style:{pointerEvents:b?y?"auto":"none":void 0,...n.style},onFocusCapture:Vn(n.onFocusCapture,E.onFocusCapture),onBlurCapture:Vn(n.onBlurCapture,E.onBlurCapture),onPointerDownCapture:Vn(n.onPointerDownCapture,x.onPointerDownCapture)}))});function B1(n,e=globalThis==null?void 0:globalThis.document){const t=ti(n),s=v.useRef(!1),r=v.useRef(()=>{});return v.useEffect(()=>{const i=a=>{if(a.target&&!s.current){let l=function(){qp(j1,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);s.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:()=>s.current=!0}}function W1(n,e=globalThis==null?void 0:globalThis.document){const t=ti(n),s=v.useRef(!1);return v.useEffect(()=>{const r=i=>{i.target&&!s.current&&qp(z1,t,{originalEvent:i},{discrete:!1})};return e.addEventListener("focusin",r),()=>e.removeEventListener("focusin",r)},[e,t]),{onFocusCapture:()=>s.current=!0,onBlurCapture:()=>s.current=!1}}function wd(){const n=new CustomEvent(kl);document.dispatchEvent(n)}function qp(n,e,t,{discrete:s}){const r=t.originalEvent.target,i=new CustomEvent(n,{bubbles:!1,cancelable:!0,detail:t});e&&r.addEventListener(n,e,{once:!0}),s?R1(r,i):r.dispatchEvent(i)}const Lr=globalThis!=null&&globalThis.document?v.useLayoutEffect:()=>{},q1=N_["useId".toString()]||(()=>{});let H1=0;function Y1(n){const[e,t]=v.useState(q1());return Lr(()=>{n||t(s=>s??String(H1++))},[n]),n||(e?`radix-${e}`:"")}const G1=v.forwardRef((n,e)=>{const{children:t,width:s=10,height:r=5,...i}=n;return v.createElement(ar.svg,Se({},i,{ref:e,width:s,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),n.asChild?t:v.createElement("polygon",{points:"0,0 30,0 15,10"}))}),X1=G1;function Z1(n){const[e,t]=v.useState(void 0);return Lr(()=>{if(n){t({width:n.offsetWidth,height:n.offsetHeight});const s=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=n.offsetWidth,a=n.offsetHeight;t({width:o,height:a})});return s.observe(n,{box:"border-box"}),()=>s.unobserve(n)}else t(void 0)},[n]),e}const Hp="Popper",[Yp,Gp]=Wp(Hp),[K1,Xp]=Yp(Hp),Q1=n=>{const{__scopePopper:e,children:t}=n,[s,r]=v.useState(null);return v.createElement(K1,{scope:e,anchor:s,onAnchorChange:r},t)},J1="PopperAnchor",ev=v.forwardRef((n,e)=>{const{__scopePopper:t,virtualRef:s,...r}=n,i=Xp(J1,t),o=v.useRef(null),a=ei(e,o);return v.useEffect(()=>{i.onAnchorChange((s==null?void 0:s.current)||o.current)}),s?null:v.createElement(ar.div,Se({},r,{ref:a}))}),Zp="PopperContent",[tv,nv]=Yp(Zp),sv=v.forwardRef((n,e)=>{var t,s,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:k=0,sticky:T="partial",hideWhenDetached:b=!1,updatePositionStrategy:y="optimized",onPlaced:x,...E}=n,w=Xp(Zp,u),[C,A]=v.useState(null),D=ei(e,H=>A(H)),[O,L]=v.useState(null),j=Z1(O),W=(t=j==null?void 0:j.width)!==null&&t!==void 0?t:0,V=(s=j==null?void 0:j.height)!==null&&s!==void 0?s:0,U=h+(f!=="center"?"-"+f:""),B=typeof k=="number"?k:{top:0,right:0,bottom:0,left:0,...k},X=Array.isArray(_)?_:[_],K=X.length>0,J={padding:B,boundary:X.filter(av),altBoundary:K},{refs:F,floatingStyles:z,placement:S,isPositioned:I,middlewareData:Y}=t1({strategy:"fixed",placement:U,whileElementsMounted:(...H)=>Qy(...H,{animationFrame:y==="always"}),elements:{reference:w.anchor},middleware:[Dy({mainAxis:d+V,alignmentAxis:m}),g&&Py({mainAxis:!0,crossAxis:!1,limiter:T==="partial"?My():void 0,...J}),g&&Oy({...J}),Ny({...J,apply:({elements:H,rects:P,availableWidth:R,availableHeight:Q})=>{const{width:se,height:le}=P.reference,be=H.floating.style;be.setProperty("--radix-popper-available-width",`${R}px`),be.setProperty("--radix-popper-available-height",`${Q}px`),be.setProperty("--radix-popper-anchor-width",`${se}px`),be.setProperty("--radix-popper-anchor-height",`${le}px`)}}),O&&e1({element:O,padding:p}),cv({arrowWidth:W,arrowHeight:V}),b&&Ay({strategy:"referenceHidden",...J})]}),[$,q]=Kp(S),oe=ti(x);Lr(()=>{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,[ge,te]=v.useState();return Lr(()=>{C&&te(window.getComputedStyle(C).zIndex)},[C]),v.createElement("div",{ref:F.setFloating,"data-radix-popper-content-wrapper":"",style:{...z,transform:I?z.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ge,"--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:n.dir},v.createElement(tv,{scope:u,placedSide:$,onArrowChange:L,arrowX:re,arrowY:ie,shouldHideArrow:ne},v.createElement(ar.div,Se({"data-side":$,"data-align":q},E,{ref:D,style:{...E.style,animation:I?void 0:"none",opacity:(l=Y.hide)!==null&&l!==void 0&&l.referenceHidden?0:void 0}}))))}),rv="PopperArrow",iv={top:"bottom",right:"left",bottom:"top",left:"right"},ov=v.forwardRef(function(e,t){const{__scopePopper:s,...r}=e,i=nv(rv,s),o=iv[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(X1,Se({},r,{ref:t,style:{...r.style,display:"block"}})))});function av(n){return n!==null}const cv=n=>({name:"transformOrigin",options:n,fn(e){var t,s,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:n.arrowWidth,f=h?0:n.arrowHeight,[m,p]=Kp(a),g={start:"0%",center:"50%",end:"100%"}[p],_=((s=(r=l.arrow)===null||r===void 0?void 0:r.x)!==null&&s!==void 0?s:0)+d/2,k=((i=(o=l.arrow)===null||o===void 0?void 0:o.y)!==null&&i!==void 0?i:0)+f/2;let T="",b="";return m==="bottom"?(T=h?g:`${_}px`,b=`${-f}px`):m==="top"?(T=h?g:`${_}px`,b=`${c.floating.height+f}px`):m==="right"?(T=`${-f}px`,b=h?g:`${k}px`):m==="left"&&(T=`${c.floating.width+f}px`,b=h?g:`${k}px`),{data:{x:T,y:b}}}});function Kp(n){const[e,t="center"]=n.split("-");return[e,t]}const lv=Q1,uv=ev,hv=sv,dv=ov;function fv(n,e){return v.useReducer((t,s)=>{const r=e[t][s];return r??t},n)}const Qp=n=>{const{present:e,children:t}=n,s=pv(e),r=typeof t=="function"?t({present:s.isPresent}):v.Children.only(t),i=ei(s.ref,r.ref);return typeof t=="function"||s.isPresent?v.cloneElement(r,{ref:i}):null};Qp.displayName="Presence";function pv(n){const[e,t]=v.useState(),s=v.useRef({}),r=v.useRef(n),i=v.useRef("none"),o=n?"mounted":"unmounted",[a,c]=fv(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return v.useEffect(()=>{const l=Wo(s.current);i.current=a==="mounted"?l:"none"},[a]),Lr(()=>{const l=s.current,u=r.current;if(u!==n){const d=i.current,f=Wo(l);n?c("MOUNT"):f==="none"||(l==null?void 0:l.display)==="none"?c("UNMOUNT"):c(u&&d!==f?"ANIMATION_OUT":"UNMOUNT"),r.current=n}},[n,c]),Lr(()=>{if(e){const l=h=>{const f=Wo(s.current).includes(h.animationName);h.target===e&&f&&fu.flushSync(()=>c("ANIMATION_END"))},u=h=>{h.target===e&&(i.current=Wo(s.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&&(s.current=getComputedStyle(l)),t(l)},[])}}function Wo(n){return(n==null?void 0:n.animationName)||"none"}function mv({prop:n,defaultProp:e,onChange:t=()=>{}}){const[s,r]=gv({defaultProp:e,onChange:t}),i=n!==void 0,o=i?n:s,a=ti(t),c=v.useCallback(l=>{if(i){const h=typeof l=="function"?l(n):l;h!==n&&a(h)}else r(l)},[i,n,r,a]);return[o,c]}function gv({defaultProp:n,onChange:e}){const t=v.useState(n),[s]=t,r=v.useRef(s),i=ti(e);return v.useEffect(()=>{r.current!==s&&(i(s),r.current=s)},[s,r,i]),t}const _v=v.forwardRef((n,e)=>v.createElement(ar.span,Se({},n,{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",...n.style}}))),yv=_v,[pc,fM]=Wp("Tooltip",[Gp]),mc=Gp(),vv="TooltipProvider",El="tooltip.open",[pM,Su]=pc(vv),Ou="Tooltip",[bv,gc]=pc(Ou),xv=n=>{const{__scopeTooltip:e,children:t,open:s,defaultOpen:r=!1,onOpenChange:i,disableHoverableContent:o,delayDuration:a}=n,c=Su(Ou,n.__scopeTooltip),l=mc(e),[u,h]=v.useState(null),d=Y1(),f=v.useRef(0),m=o??c.disableHoverableContent,p=a??c.delayDuration,g=v.useRef(!1),[_=!1,k]=mv({prop:s,defaultProp:r,onChange:E=>{E?(c.onOpen(),document.dispatchEvent(new CustomEvent(El))):c.onClose(),i==null||i(E)}}),T=v.useMemo(()=>_?g.current?"delayed-open":"instant-open":"closed",[_]),b=v.useCallback(()=>{window.clearTimeout(f.current),g.current=!1,k(!0)},[k]),y=v.useCallback(()=>{window.clearTimeout(f.current),k(!1)},[k]),x=v.useCallback(()=>{window.clearTimeout(f.current),f.current=window.setTimeout(()=>{g.current=!0,k(!0)},p)},[p,k]);return v.useEffect(()=>()=>window.clearTimeout(f.current),[]),v.createElement(lv,l,v.createElement(bv,{scope:e,contentId:d,open:_,stateAttribute:T,trigger:u,onTriggerChange:h,onTriggerEnter:v.useCallback(()=>{c.isOpenDelayed?x():b()},[c.isOpenDelayed,x,b]),onTriggerLeave:v.useCallback(()=>{m?y():window.clearTimeout(f.current)},[y,m]),onOpen:b,onClose:y,disableHoverableContent:m},t))},Td="TooltipTrigger",wv=v.forwardRef((n,e)=>{const{__scopeTooltip:t,...s}=n,r=gc(Td,t),i=Su(Td,t),o=mc(t),a=v.useRef(null),c=ei(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(uv,Se({asChild:!0},o),v.createElement(ar.button,Se({"aria-describedby":r.open?r.contentId:void 0,"data-state":r.stateAttribute},s,{ref:c,onPointerMove:Vn(n.onPointerMove,d=>{d.pointerType!=="touch"&&!u.current&&!i.isPointerInTransitRef.current&&(r.onTriggerEnter(),u.current=!0)}),onPointerLeave:Vn(n.onPointerLeave,()=>{r.onTriggerLeave(),u.current=!1}),onPointerDown:Vn(n.onPointerDown,()=>{l.current=!0,document.addEventListener("pointerup",h,{once:!0})}),onFocus:Vn(n.onFocus,()=>{l.current||r.onOpen()}),onBlur:Vn(n.onBlur,r.onClose),onClick:Vn(n.onClick,r.onClose)})))}),Tv="TooltipPortal",[mM,kv]=pc(Tv,{forceMount:void 0}),Ui="TooltipContent",Ev=v.forwardRef((n,e)=>{const t=kv(Ui,n.__scopeTooltip),{forceMount:s=t.forceMount,side:r="top",...i}=n,o=gc(Ui,n.__scopeTooltip);return v.createElement(Qp,{present:s||o.open},o.disableHoverableContent?v.createElement(Jp,Se({side:r},i,{ref:e})):v.createElement(Cv,Se({side:r},i,{ref:e})))}),Cv=v.forwardRef((n,e)=>{const t=gc(Ui,n.__scopeTooltip),s=Su(Ui,n.__scopeTooltip),r=v.useRef(null),i=ei(e,r),[o,a]=v.useState(null),{trigger:c,onClose:l}=t,u=r.current,{onPointerInTransitChange:h}=s,d=v.useCallback(()=>{a(null),h(!1)},[h]),f=v.useCallback((m,p)=>{const g=m.currentTarget,_={x:m.clientX,y:m.clientY},k=Dv(_,g.getBoundingClientRect()),T=Pv(_,k),b=Mv(p.getBoundingClientRect()),y=Iv([...T,...b]);a(y),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},k=(c==null?void 0:c.contains(g))||(u==null?void 0:u.contains(g)),T=!Nv(_,o);k?d():T&&(d(),l())};return document.addEventListener("pointermove",m),()=>document.removeEventListener("pointermove",m)}},[c,u,o,l,d]),v.createElement(Jp,Se({},n,{ref:i}))}),[Sv,Ov]=pc(Ou,{isInside:!1}),Jp=v.forwardRef((n,e)=>{const{__scopeTooltip:t,children:s,"aria-label":r,onEscapeKeyDown:i,onPointerDownOutside:o,...a}=n,c=gc(Ui,t),l=mc(t),{onClose:u}=c;return v.useEffect(()=>(document.addEventListener(El,u),()=>document.removeEventListener(El,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(U1,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:h=>h.preventDefault(),onDismiss:u},v.createElement(hv,Se({"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(jp,null,s),v.createElement(Sv,{scope:t,isInside:!0},v.createElement(yv,{id:c.contentId,role:"tooltip"},r||s))))}),Av="TooltipArrow",Rv=v.forwardRef((n,e)=>{const{__scopeTooltip:t,...s}=n,r=mc(t);return Ov(Av,t).isInside?null:v.createElement(dv,Se({},r,s,{ref:e}))});function Dv(n,e){const t=Math.abs(e.top-n.y),s=Math.abs(e.bottom-n.y),r=Math.abs(e.right-n.x),i=Math.abs(e.left-n.x);switch(Math.min(t,s,r,i)){case i:return"left";case r:return"right";case t:return"top";case s:return"bottom";default:throw new Error("unreachable")}}function Pv(n,e,t=5){const s=[];switch(e){case"top":s.push({x:n.x-t,y:n.y+t},{x:n.x+t,y:n.y+t});break;case"bottom":s.push({x:n.x-t,y:n.y-t},{x:n.x+t,y:n.y-t});break;case"left":s.push({x:n.x+t,y:n.y-t},{x:n.x+t,y:n.y+t});break;case"right":s.push({x:n.x-t,y:n.y-t},{x:n.x-t,y:n.y+t});break}return s}function Mv(n){const{top:e,right:t,bottom:s,left:r}=n;return[{x:r,y:e},{x:t,y:e},{x:t,y:s},{x:r,y:s}]}function Nv(n,e){const{x:t,y:s}=n;let r=!1;for(let i=0,o=e.length-1;is!=u>s&&t<(l-a)*(s-c)/(u-c)+a&&(r=!r)}return r}function Iv(n){const e=n.slice();return e.sort((t,s)=>t.xs.x?1:t.ys.y?1:0),$v(e)}function $v(n){if(n.length<=1)return n.slice();const e=[];for(let s=0;s=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 s=n.length-1;s>=0;s--){const r=n[s];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 Fv=xv,Lv=wv,jv=Ev,zv=Rv;function Vv(n,e){if(n==null)return{};var t={},s=Object.keys(n),r,i;for(i=0;i=0)&&(t[r]=n[r]);return t}function De(n,e){if(n==null)return{};var t=Vv(n,e),s,r;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(n,s)&&(t[s]=n[s])}return t}let He;(function(n){n[n.UNSUPPORTED_INPUT=0]="UNSUPPORTED_INPUT",n[n.NO_COMPONENT_FOR_TYPE=1]="NO_COMPONENT_FOR_TYPE",n[n.UNKNOWN_INPUT=2]="UNKNOWN_INPUT",n[n.DUPLICATE_KEYS=3]="DUPLICATE_KEYS",n[n.ALREADY_REGISTERED_TYPE=4]="ALREADY_REGISTERED_TYPE",n[n.CLIPBOARD_ERROR=5]="CLIPBOARD_ERROR",n[n.THEME_ERROR=6]="THEME_ERROR",n[n.PATH_DOESNT_EXIST=7]="PATH_DOESNT_EXIST",n[n.INPUT_TYPE_OVERRIDE=8]="INPUT_TYPE_OVERRIDE",n[n.EMPTY_KEY=9]="EMPTY_KEY"})(He||(He={}));const Uv={[He.UNSUPPORTED_INPUT]:(n,e)=>[`An input with type \`${n}\` input was found at path \`${e}\` but it's not supported yet.`],[He.NO_COMPONENT_FOR_TYPE]:(n,e)=>[`Type \`${n}\` found at path \`${e}\` can't be displayed in panel because no component supports it yet.`],[He.UNKNOWN_INPUT]:(n,e)=>[`input at path \`${n}\` is not recognized.`,e],[He.DUPLICATE_KEYS]:(n,e,t)=>[`Key \`${n}\` of path \`${e}\` already exists at path \`${t}\`. Even nested keys need to be unique. Rename one of the keys.`],[He.ALREADY_REGISTERED_TYPE]:n=>[`Type ${n} has already been registered. You can't register a component with the same type.`],[He.CLIPBOARD_ERROR]:n=>["Error copying the value",n],[He.THEME_ERROR]:(n,e)=>[`Error accessing the theme \`${n}.${e}\` value.`],[He.PATH_DOESNT_EXIST]:n=>[`Error getting the value at path \`${n}\`. There is probably an error in your \`render\` function.`],[He.PATH_DOESNT_EXIST]:n=>[`Error accessing the value at path \`${n}\``],[He.INPUT_TYPE_OVERRIDE]:(n,e,t)=>[`Input at path \`${n}\` already exists with type: \`${e}\`. Its type cannot be overridden with type \`${t}\`.`],[He.EMPTY_KEY]:()=>["Keys can not be empty, if you want to hide a label use whitespace."]};function e0(n,e,...t){const[s,...r]=Uv[e](...t);console[n]("LEVA: "+s,...r)}const Bn=e0.bind(null,"warn"),Bv=e0.bind(null,"log"),Wv=["value"],qv=["schema"],Hv=["value"],t0=[],Js={};function kd(n){let{value:e}=n,t=De(n,Wv);for(let s of t0){const r=s(e,t);if(r)return r}}function ns(n,e){let{schema:t}=e,s=De(e,qv);if(n in Js){Bn(He.ALREADY_REGISTERED_TYPE,n);return}t0.push((r,i)=>t(r,i)&&n),Js[n]=s}function Zc(n,e,t,s){const{normalize:r}=Js[n];if(r)return r(e,t,s);if(typeof e!="object"||!("value"in e))return{value:e};const{value:i}=e,o=De(e,Hv);return{value:i,settings:o}}function Yv(n,e,t,s,r,i){const{sanitize:o}=Js[n];return o?o(e,t,s,r,i):e}function Ed(n,e,t){const{format:s}=Js[n];return s?s(e,t):e}function Gv(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function Cd(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(n);e&&(s=s.filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable})),t.push.apply(t,s)}return t}function de(n){for(var e=1;en>t?t:n{if(n===""||typeof n=="number")return n;try{const e=ls(n);if(!isNaN(e))return e}catch{}return parseFloat(n)},Zv=Math.log(10);function Sd(n){let e=Math.abs(+String(n).replace(".",""));if(e===0)return .01;for(;e!==0&&e%10===0;)e/=10;const t=Math.floor(Math.log(e)/Zv)+1,s=Math.floor(Math.log10(Math.abs(n))),r=Math.pow(10,s-t);return Math.max(r,.001)}const ba=(n,e,t)=>t===e?0:(xs(n,e,t)-e)/(t-e),xa=(n,e,t)=>n*(t-e)+e,Kv=()=>"_"+Math.random().toString(36).substr(2,9),Od=/\(([0-9+\-*/^ .]+)\)/,Ad=/(\d+(?:\.\d+)?) ?\^ ?(\d+(?:\.\d+)?)/,Rd=/(\d+(?:\.\d+)?) ?\* ?(\d+(?:\.\d+)?)/,Dd=/(\d+(?:\.\d+)?) ?\/ ?(\d+(?:\.\d+)?)/,Pd=/(\d+(?:\.\d+)?) ?\+ ?(\d+(?:\.\d+)?)/,Md=/(\d+(?:\.\d+)?) ?- ?(\d+(?:\.\d+)?)/;function ls(n){if(isNaN(Number(n)))if(Od.test(n)){const e=n.replace(Od,(t,s)=>String(ls(s)));return ls(e)}else if(Ad.test(n)){const e=n.replace(Ad,(t,s,r)=>String(Math.pow(Number(s),Number(r))));return ls(e)}else if(Rd.test(n)){const e=n.replace(Rd,(t,s,r)=>String(Number(s)*Number(r)));return ls(e)}else if(Dd.test(n)){const e=n.replace(Dd,(t,s,r)=>{if(r!=0)return String(Number(s)/Number(r));throw new Error("Division by zero")});return ls(e)}else if(Pd.test(n)){const e=n.replace(Pd,(t,s,r)=>String(Number(s)+Number(r)));return ls(e)}else if(Md.test(n)){const e=n.replace(Md,(t,s,r)=>String(Number(s)-Number(r)));return ls(e)}else return Number(n);return Number(n)}function Qv(n,e){return e.reduce((t,s)=>(n&&n.hasOwnProperty(s)&&(t[s]=n[s]),t),{})}function Jv(n,e){const t=de({},n);return e.forEach(s=>s in n&&delete t[s]),t}function eb(n,e){return n.reduce((t,s,r)=>Object.assign(t,{[e[r]]:s}),{})}function n0(n){return Object.prototype.toString.call(n)==="[object Object]"}const tb=n=>n0(n)&&Object.keys(n).length===0;let un;(function(n){n.BUTTON="BUTTON",n.BUTTON_GROUP="BUTTON_GROUP",n.MONITOR="MONITOR",n.FOLDER="FOLDER"})(un||(un={}));let dn;(function(n){n.SELECT="SELECT",n.IMAGE="IMAGE",n.NUMBER="NUMBER",n.COLOR="COLOR",n.STRING="STRING",n.BOOLEAN="BOOLEAN",n.INTERVAL="INTERVAL",n.VECTOR3D="VECTOR3D",n.VECTOR2D="VECTOR2D"})(dn||(dn={}));const nb=["type","__customInput"],sb=["render","label","optional","order","disabled","hint","onChange","onEditStart","onEditEnd","transient"],rb=["type"];function s0(n,e,t={},s){var r,i;if(typeof n!="object"||Array.isArray(n))return{type:s,input:n,options:de({key:e,label:e,optional:!1,disabled:!1,order:0},t)};if("__customInput"in n){const{type:y,__customInput:x}=n,E=De(n,nb);return s0(x,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}=n,g=De(n,sb),_=de({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:k}=g,T=De(g,rb);if(k=s??k,k in un)return{type:k,input:T,options:_};let b;return s&&n0(T)&&"value"in T?b=T.value:b=tb(T)?void 0:T,{type:k,input:b,options:de(de({},_),{},{onChange:d,optional:(r=_.optional)!==null&&r!==void 0?r:!1,disabled:(i=_.disabled)!==null&&i!==void 0?i:!1})}}function ib(n,e,t,s){const r=s0(n,e),{type:i,input:o,options:a}=r;if(i)return i in un?r:{type:i,input:Zc(i,o,t,s),options:a};let c=kd(o);return c?{type:c,input:Zc(c,o,t,s),options:a}:(c=kd({value:o}),c?{type:c,input:Zc(c,{value:o},t,s),options:a}:!1)}function Nd(n,e,t,s,r){const{value:i,type:o,settings:a}=n;n.value=r0({type:o,value:i,settings:a},e,t,s),n.fromPanel=r}const ob=function(e,t,s){this.type="LEVA_ERROR",this.message="LEVA: "+e,this.previousValue=t,this.error=s};function r0({type:n,value:e,settings:t},s,r,i){const o=n!=="SELECT"&&typeof s=="function"?s(e):s;let a;try{a=Yv(n,o,t,e,r,i)}catch(c){throw new ob(`The value \`${s}\` did not result in a correct value.`,e,c)}return zi(a,e)?e:a}const i0=(n,e,t=!1)=>{let s=0;return function(){const r=arguments,i=t&&!s,o=()=>n.apply(this,r);window.clearTimeout(s),s=window.setTimeout(o,e),i&&o()}},o0=n=>n.shiftKey?5:n.altKey?1/5:1;function ab(n,e){const t=console.error;console.error=()=>{},lp.render(n,e),console.error=t}const cb=["value"],lb=["min","max"],ub=n=>{if(typeof n=="number")return!0;if(typeof n=="string"){const e=parseFloat(n);return isNaN(e)?!1:n.substring((""+e).length).trim().length<4}return!1},a0=(n,{min:e=-1/0,max:t=1/0,suffix:s})=>{const r=parseFloat(n);if(n===""||isNaN(r))throw Error("Invalid number");const i=xs(r,e,t);return s?i+s:i},hb=(n,{pad:e=0,suffix:t})=>{const s=parseFloat(n).toFixed(e);return t?s+t:s},c0=n=>{let{value:e}=n,t=De(n,cb);const{min:s=-1/0,max:r=1/0}=t,i=De(t,lb);let o=parseFloat(e);const a=typeof e=="string"?e.substring((""+o).length):void 0;o=xs(o,s,r);let c=t.step;c||(Number.isFinite(s)?Number.isFinite(r)?c=+(Math.abs(r-s)/100).toPrecision(1):c=+(Math.abs(o-s)/100).toPrecision(1):Number.isFinite(r)&&(c=+(Math.abs(r-o)/100).toPrecision(1)));const l=c?Sd(c)*10:Sd(o);c=c||l/10;const u=Math.round(xs(Math.log10(1/l),0,2));return{value:a?o+a:o,settings:de({initialValue:o,step:c,pad:u,min:s,max:r,suffix:a},i)}},l0=(n,{step:e,initialValue:t})=>{const s=Math.round((n-t)/e);return t+s*e};var u0=Object.freeze({__proto__:null,schema:ub,sanitize:a0,format:hb,normalize:c0,sanitizeStep:l0});function Je(){return Je=Object.assign?Object.assign.bind():function(n){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 qo(n,e){const[t,s]=n.split(" "),r={};return t!=="none"&&(r.boxShadow=`${e.inset?"inset ":""}0 0 0 $borderWidths${[e.key]} $colors${t!=="default"&&t||e.borderColor}`),s&&(r.backgroundColor=s),r}const wi={$inputStyle:()=>n=>qo(n,{key:"$input",borderColor:"$highlight1",inset:!0}),$focusStyle:()=>n=>qo(n,{key:"$focus",borderColor:"$accent2"}),$hoverStyle:()=>n=>qo(n,{key:"$hover",borderColor:"$accent1",inset:!0}),$activeStyle:()=>n=>qo(n,{key:"$active",borderColor:"$accent1",inset:!0})},{styled:ce,css:gM,createTheme:fb,globalCss:pb,keyframes:_M}=W_({prefix:"leva",theme:p0(),utils:de(de({},wi),{},{$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:n=>({"&:focus":wi.$focusStyle()(n)}),$focusWithin:n=>({"&:focus-within":wi.$focusStyle()(n)}),$hover:n=>({"&:hover":wi.$hoverStyle()(n)}),$active:n=>({"&:active":wi.$activeStyle()(n)})})}),mb=pb({".leva__panel__dragged":{WebkitUserDrag:"none",userSelect:"none",input:{userSelect:"none"},"*":{cursor:"ew-resize !important"}}});function gb(n){const e=p0();if(!n)return{theme:e,className:""};Object.keys(n).forEach(s=>{Object.assign(e[s],n[s])});const t=fb(e);return{theme:e,className:t.className}}function Wn(n,e){const{theme:t}=v.useContext(Au);if(!(n in t)||!(e in t[n]))return Bn(He.THEME_ERROR,n,e),"";let s=e;for(;;){let r=t[n][s];if(typeof r=="string"&&r.charAt(0)==="$")s=r.substr(1);else return r}}const m0=ce("input",{$reset:"",padding:"0 $sm",width:0,minWidth:0,flex:1,height:"100%",variants:{levaType:{number:{textAlign:"right"}},as:{textarea:{padding:"$sm"}}}}),g0=ce("div",{$draggable:"",height:"100%",$flexCenter:"",position:"relative",padding:"0 $xs",fontSize:"0.8em",opacity:.8,cursor:"default",touchAction:"none",[`& + ${m0}`]:{paddingLeft:0}}),_b=ce(g0,{cursor:"ew-resize",marginRight:"-$xs",textTransform:"uppercase",opacity:.3,"&:hover":{opacity:1},variants:{dragging:{true:{backgroundColor:"$accent2",opacity:1}}}}),yb=ce("div",{$flex:"",position:"relative",borderRadius:"$sm",overflow:"hidden",color:"inherit",height:"$rowHeight",backgroundColor:"$elevation3",$inputStyle:"$elevation1",$hover:"",$focusWithin:"",variants:{textArea:{true:{height:"auto"}}}}),vb=["innerLabel","value","onUpdate","onChange","onKeyDown","type","id","inputType","rows"],bb=["onUpdate"];function Ru(n){let{innerLabel:e,value:t,onUpdate:s,onChange:r,onKeyDown:i,type:o,id:a,inputType:c="text",rows:l=0}=n,u=De(n,vb);const{id:h,emitOnEditStart:d,emitOnEditEnd:f,disabled:m}=yt(),p=a||h,g=v.useRef(null),_=l>0,k=_?"textarea":"input",T=v.useCallback(x=>E=>{const w=E.currentTarget.value;x(w)},[]);N.useEffect(()=>{const x=g.current,E=T(w=>{s(w),f()});return x==null||x.addEventListener("blur",E),()=>x==null?void 0:x.removeEventListener("blur",E)},[T,s,f]);const b=v.useCallback(x=>{x.key==="Enter"&&T(s)(x)},[T,s]),y=Object.assign({as:k},_?{rows:l}:{},u);return N.createElement(yb,{textArea:_},e&&typeof e=="string"?N.createElement(g0,null,e):e,N.createElement(m0,Je({levaType:o,ref:g,id:p,type:c,autoComplete:"off",spellCheck:"false",value:t,onChange:T(r),onFocus:()=>d(),onKeyPress:b,onKeyDown:i,disabled:m},y)))}function xb(n){let{onUpdate:e}=n,t=De(n,bb);const s=v.useCallback(i=>e(Xv(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 N.createElement(Ru,Je({},t,{onUpdate:s,onKeyDown:r,type:"number"}))}const wa=ce("div",{}),Cl=ce("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"}}]}),wb=ce("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 + ${Cl}::after`]:{opacity:.6},[`${wa}:hover > & + ${Cl}::after`]:{opacity:.6},[`${wa}:hover > & > svg`]:{opacity:1}}),_0=ce("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"}}}}}),y0=ce("div",{position:"relative",zIndex:100,display:"grid",rowGap:"$rowGap",gridTemplateRows:"minmax($sizes$rowHeight, max-content)",alignItems:"center",color:"$highlight2",[`${_0} > &`]:{"&:first-of-type":{marginTop:"$rowGap"},"&:last-of-type":{marginBottom:"$rowGap"}},variants:{disabled:{true:{pointerEvents:"none"},false:{"&:hover,&:focus-within":{color:"$highlight3"}}}}}),v0=ce(y0,{gridTemplateColumns:"auto $sizes$controlWidth",columnGap:"$colGap"}),Tb=ce("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=ce("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"}}),Sl=ce("label",{fontWeight:"$label",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap","& > svg":{display:"block"}}),Eb=ce("div",{opacity:1,variants:{disabled:{true:{opacity:.6,pointerEvents:"none",[`& ${Sl}`]:{pointerEvents:"auto"}}}}}),b0=ce("div",{position:"fixed",top:0,bottom:0,right:0,left:0,zIndex:1e3,userSelect:"none"}),Cb=ce("div",{background:"$toolTipBackground",fontFamily:"$sans",fontSize:"$toolTip",padding:"$xs $sm",color:"$toolTipText",borderRadius:"$xs",boxShadow:"$level2",maxWidth:260}),Sb=ce(zv,{fill:"$toolTipBackground"});function Du({children:n}){const{className:e}=v.useContext(Au);return N.createElement(P1,{className:e},n)}const Ob=["align"];function Ab(){const{id:n,disable:e,disabled:t}=yt();return N.createElement(N.Fragment,null,N.createElement(kb,{id:n+"__disable",type:"checkbox",checked:!t,onChange:()=>e(!t)}),N.createElement("label",{htmlFor:n+"__disable"}))}function Rb(n){const{id:e,optional:t,hint:s}=yt(),r=n.htmlFor||(e?{htmlFor:e}:null),i=!s&&typeof n.children=="string"?{title:n.children}:null;return N.createElement(N.Fragment,null,t&&N.createElement(Ab,null),s!==void 0?N.createElement(Fv,null,N.createElement(Lv,{asChild:!0},N.createElement(Sl,Je({},r,n))),N.createElement(jv,{side:"top",sideOffset:2},N.createElement(Cb,null,s,N.createElement(Sb,null)))):N.createElement(Sl,Je({},r,i,n)))}function mn(n){let{align:e}=n,t=De(n,Ob);const{value:s,label:r,key:i,disabled:o}=yt(),{hideCopyButton:a}=db(),c=!a&&i!==void 0,[l,u]=v.useState(!1),h=async()=>{try{await navigator.clipboard.writeText(JSON.stringify({[i]:s??""})),u(!0)}catch{Bn(He.CLIPBOARD_ERROR,{[i]:s})}};return N.createElement(Tb,{align:e,onPointerLeave:()=>u(!1)},N.createElement(Rb,t),c&&!o&&N.createElement("div",{title:`Click to copy ${typeof r=="string"?r:i} value`},l?N.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},N.createElement("path",{d:"M9 2a1 1 0 000 2h2a1 1 0 100-2H9z"}),N.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"})):N.createElement("svg",{onClick:h,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},N.createElement("path",{d:"M8 3a1 1 0 011-1h2a1 1 0 110 2H9a1 1 0 01-1-1z"}),N.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"],Pb=ce("svg",{fill:"currentColor",transition:"transform 350ms ease, fill 250ms ease"});function Pu(n){let{toggled:e}=n,t=De(n,Db);return N.createElement(Pb,Je({width:"9",height:"5",viewBox:"0 0 9 5",xmlns:"http://www.w3.org/2000/svg",style:{transform:`rotate(${e?0:-90}deg)`}},t),N.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 Mb=["input"];function sn(n){let{input:e}=n,t=De(n,Mb);return e?N.createElement(v0,t):N.createElement(y0,t)}function x0({value:n,type:e,settings:t,setValue:s}){const[r,i]=v.useState(Ed(e,n,t)),o=v.useRef(n),a=v.useRef(t);a.current=t;const c=v.useCallback(u=>i(Ed(e,u,a.current)),[e]),l=v.useCallback(u=>{try{s(u)}catch(h){const{type:d,previousValue:f}=h;if(d!=="LEVA_ERROR")throw h;c(f)}},[c,s]);return v.useEffect(()=>{zi(n,o.current)||c(n),o.current=n},[n,c]),{displayValue:r,onChange:i,onUpdate:l}}function bo(n,e){const{emitOnEditStart:t,emitOnEditEnd:s}=yt();return q_(r=>{r.first&&(document.body.classList.add("leva__panel__dragged"),t==null||t());const i=n(r);return r.last&&(document.body.classList.remove("leva__panel__dragged"),s==null||s()),i},e)}function Nb(n){const e=v.useRef(null),t=v.useRef(null),s=v.useRef(!1);return v.useEffect(()=>{const r=i0(()=>{e.current.width=e.current.offsetWidth*window.devicePixelRatio,e.current.height=e.current.offsetHeight*window.devicePixelRatio,n(e.current,t.current)},250);return window.addEventListener("resize",r),s.current||(r(),s.current=!0),()=>window.removeEventListener("resize",r)},[n]),v.useEffect(()=>{t.current=e.current.getContext("2d")},[]),[e,t]}function w0(){const n=v.useRef(null),e=v.useRef({x:0,y:0}),t=v.useCallback(s=>{Object.assign(e.current,s),n.current&&(n.current.style.transform=`translate3d(${e.current.x}px, ${e.current.y}px, 0)`)},[]);return[n,t]}const Ib=["__refCount"],Kc=(n,e)=>{if(!n[e])return null;const t=n[e];return De(t,Ib)};function $b(n){const e=vo(),[t,s]=v.useState(Kc(e.getData(),n)),r=v.useCallback(l=>e.setValueAtPath(n,l,!0),[n,e]),i=v.useCallback(l=>e.setSettingsAtPath(n,l),[n,e]),o=v.useCallback(l=>e.disableInputAtPath(n,l),[n,e]),a=v.useCallback(()=>e.emitOnEditStart(n),[n,e]),c=v.useCallback(()=>e.emitOnEditEnd(n),[n,e]);return v.useEffect(()=>{s(Kc(e.getData(),n));const l=e.useStore.subscribe(u=>Kc(u.data,n),s,{equalityFn:yo});return()=>l()},[e,n]),[t,{set:r,setSettings:i,disable:o,storeId:e.storeId,emitOnEditStart:a,emitOnEditEnd:c}]}const Fb=ce("div",{variants:{hasRange:{true:{position:"relative",display:"grid",gridTemplateColumns:"auto $sizes$numberInputMinWidth",columnGap:"$colGap",alignItems:"center"}}}}),T0=ce("div",{position:"relative",width:"100%",height:2,borderRadius:"$xs",backgroundColor:"$elevation1"}),Ol=ce("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)))"}}}}),k0=ce("div",{position:"relative",$flex:"",height:"100%",cursor:"pointer",touchAction:"none"}),E0=ce("div",{position:"absolute",height:"100%",backgroundColor:"$accent2"});function Lb({value:n,min:e,max:t,onDrag:s,step:r,initialValue:i}){const o=v.useRef(null),a=v.useRef(null),c=v.useRef(0),l=Wn("sizes","scrubberWidth"),u=bo(({event:d,first:f,xy:[m],movement:[p],memo:g})=>{if(f){const{width:k,left:T}=o.current.getBoundingClientRect();c.current=k-parseFloat(l),g=(d==null?void 0:d.target)===a.current?n:xa((m-T)/k,e,t)}const _=g+xa(p/c.current,0,t-e);return s(l0(_,{step:r,initialValue:i})),g}),h=ba(n,e,t);return N.createElement(k0,Je({ref:o},u()),N.createElement(T0,null,N.createElement(E0,{style:{left:0,right:`${(1-h)*100}%`}})),N.createElement(Ol,{ref:a,style:{left:`calc(${h} * (100% - ${l}))`}}))}const jb=N.memo(({label:n,onUpdate:e,step:t,innerLabelTrim:s})=>{const[r,i]=v.useState(!1),o=bo(({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*o0(l)),u=0),u));return N.createElement(_b,Je({dragging:r,title:n.length>1?n:""},o()),n.slice(0,s))});function C0({label:n,id:e,displayValue:t,onUpdate:s,onChange:r,settings:i,innerLabelTrim:o=1}){const a=o>0&&N.createElement(jb,{label:n,step:i.step,onUpdate:s,innerLabelTrim:o});return N.createElement(xb,{id:e,value:String(t),onUpdate:s,onChange:r,innerLabel:a})}function zb(){const n=yt(),{label:e,value:t,onUpdate:s,settings:r,id:i}=n,{min:o,max:a}=r,c=a!==1/0&&o!==-1/0;return N.createElement(sn,{input:!0},N.createElement(mn,null,e),N.createElement(Fb,{hasRange:c},c&&N.createElement(Lb,Je({value:parseFloat(t),onDrag:s},r)),N.createElement(C0,Je({},n,{id:i,label:"value",innerLabelTrim:c?0:1}))))}const{sanitizeStep:Vb}=u0,Ub=De(u0,["sanitizeStep"]);var Bb=de({component:zb},Ub);const Wb=(n,e)=>Ot().schema({options:Ot().passesAnyOf(Ot().object(),Ot().array())}).test(e),qb=(n,{values:e})=>{if(e.indexOf(n)<0)throw Error("Selected value doesn't match Select options");return n},Hb=(n,{values:e})=>e.indexOf(n),Yb=n=>{let{value:e,options:t}=n,s,r;return Array.isArray(t)?(r=t,s=t.map(i=>String(i))):(r=Object.values(t),s=Object.keys(t)),"value"in n?r.includes(e)||(s.unshift(String(e)),r.unshift(e)):e=r[0],Object.values(t).includes(e)||(t[String(e)]=e),{value:e,settings:{keys:s,values:r}}};var Gb=Object.freeze({__proto__:null,schema:Wb,sanitize:qb,format:Hb,normalize:Yb});const Xb=ce("div",{$flexCenter:"",position:"relative","> svg":{pointerEvents:"none",position:"absolute",right:"$md"}}),Al=ce("select",{position:"absolute",top:0,left:0,width:"100%",height:"100%",opacity:0}),Zb=ce("div",{display:"flex",alignItems:"center",width:"100%",height:"$rowHeight",backgroundColor:"$elevation3",borderRadius:"$sm",padding:"0 $sm",cursor:"pointer",[`${Al}:focus + &`]:{$focusStyle:""},[`${Al}:hover + &`]:{$hoverStyle:""}});function Kb({displayValue:n,value:e,onUpdate:t,id:s,settings:r,disabled:i}){const{keys:o,values:a}=r,c=v.useRef();return e===a[n]&&(c.current=o[n]),N.createElement(Xb,null,N.createElement(Al,{id:s,value:n,onChange:l=>t(a[Number(l.currentTarget.value)]),disabled:i},o.map((l,u)=>N.createElement("option",{key:l,value:u},l))),N.createElement(Zb,null,c.current),N.createElement(Pu,{toggled:!0}))}function Qb(){const{label:n,value:e,displayValue:t,onUpdate:s,id:r,disabled:i,settings:o}=yt();return N.createElement(sn,{input:!0},N.createElement(mn,null,n),N.createElement(Kb,{id:r,value:e,displayValue:t,onUpdate:s,settings:o,disabled:i}))}var Jb=de({component:Qb},Gb);const ex=n=>Ot().string().test(n),tx=n=>{if(typeof n!="string")throw Error("Invalid string");return n},nx=({value:n,editable:e=!0,rows:t=!1})=>({value:n,settings:{editable:e,rows:typeof t=="number"?t:t?5:0}});var sx=Object.freeze({__proto__:null,schema:ex,sanitize:tx,normalize:nx});const rx=["displayValue","onUpdate","onChange","editable"],ix=ce("div",{whiteSpace:"pre-wrap"});function ox(n){let{displayValue:e,onUpdate:t,onChange:s,editable:r=!0}=n,i=De(n,rx);return r?N.createElement(Ru,Je({value:e,onUpdate:t,onChange:s},i)):N.createElement(ix,null,e)}function ax(){const{label:n,settings:e,displayValue:t,onUpdate:s,onChange:r}=yt();return N.createElement(sn,{input:!0},N.createElement(mn,null,n),N.createElement(ox,Je({displayValue:t,onUpdate:s,onChange:r},e)))}var cx=de({component:ax},sx);const lx=n=>Ot().boolean().test(n),ux=n=>{if(typeof n!="boolean")throw Error("Invalid boolean");return n};var hx=Object.freeze({__proto__:null,schema:lx,sanitize:ux});const dx=ce("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 fx({value:n,onUpdate:e,id:t,disabled:s}){return N.createElement(dx,null,N.createElement("input",{id:t,type:"checkbox",checked:n,onChange:r=>e(r.currentTarget.checked),disabled:s}),N.createElement("label",{htmlFor:t},N.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},N.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"}))))}function px(){const{label:n,value:e,onUpdate:t,disabled:s,id:r}=yt();return N.createElement(sn,{input:!0},N.createElement(mn,null,n),N.createElement(fx,{value:e,onUpdate:t,id:r,disabled:s}))}var mx=de({component:px},hx);const gx=["locked"];function _x({value:n,id:e,valueKey:t,settings:s,onUpdate:r,innerLabelTrim:i}){const o=v.useRef(n[t]);o.current=n[t];const a=v.useCallback(l=>r({[t]:r0({type:"NUMBER",value:o.current,settings:s},l)}),[r,s,t]),c=x0({type:"NUMBER",value:n[t],settings:s,setValue:a});return N.createElement(C0,{id:e,label:t,value:n[t],displayValue:c.displayValue,onUpdate:c.onUpdate,onChange:c.onChange,settings:s,innerLabelTrim:i})}const yx=ce("div",{display:"grid",columnGap:"$colGap",gridAutoFlow:"column dense",alignItems:"center",variants:{withLock:{true:{gridTemplateColumns:"10px auto","> svg":{cursor:"pointer"}}}}});function vx(n){let{locked:e}=n,t=De(n,gx);return N.createElement("svg",Je({width:"10",height:"10",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e?N.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"}):N.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 Mu({value:n,onUpdate:e,settings:t,innerLabelTrim:s}){const{id:r,setSettings:i}=yt(),{lock:o,locked:a}=t;return N.createElement(yx,{withLock:o},o&&N.createElement(vx,{locked:a,onClick:()=>i({locked:!a})}),Object.keys(n).map((c,l)=>N.createElement(_x,{id:l===0?r:`${r}.${c}`,key:c,valueKey:c,value:n,settings:t[c],onUpdate:e,innerLabelTrim:s})))}const S0=(n,e)=>{const t={};let s=0,r=1/0;Object.entries(n).forEach(([i,o])=>{t[i]=c0(de({value:o},e[i])).settings,s=Math.max(s,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=s,t[i].pad=r)}return t},bx=["lock"],xx=["value"];function wx(n){const e=Ot().array().length(n).every.number(),t=s=>{if(!s||typeof s!="object")return!1;const r=Object.values(s);return r.length===n&&r.every(i=>isFinite(i))};return s=>e.test(s)||t(s)}function Tx(n){return Array.isArray(n)?"array":"object"}function Ri(n,e,t){return Tx(n)===e?n:e==="array"?Object.values(n):eb(n,t)}const kx=(n,e,t)=>{const s=Ri(n,"object",e.keys);for(let o in s)s[o]=a0(s[o],e[o]);const r=Object.keys(s);let i={};if(r.length===e.keys.length)i=s;else{const o=Ri(t,"object",e.keys);if(r.length===1&&e.locked){const a=r[0],c=s[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=de(de({},o),s)}return Ri(i,e.format,e.keys)},Ex=(n,e)=>Ri(n,"object",e.keys),Cx=n=>!!n&&("step"in n||"min"in n||"max"in n);function Sx(n,e,t=[]){const{lock:s=!1}=e,r=De(e,bx),i=Array.isArray(n)?"array":"object",o=i==="object"?Object.keys(n):t,a=Ri(n,"object",o),c=Cx(r)?o.reduce((u,h)=>Object.assign(u,{[h]:r}),{}):r,l=S0(a,c);return{value:i==="array"?n:a,settings:de(de({},l),{},{format:i,keys:o,lock:s,locked:!1})}}function O0(n){return{schema:wx(n.length),normalize:e=>{let{value:t}=e,s=De(e,xx);return Sx(t,s,n)},format:(e,t)=>Ex(e,t),sanitize:(e,t,s)=>kx(e,t,s)}}var Ox={grad:.9,turn:360,rad:360/(2*Math.PI)},Fn=function(n){return typeof n=="string"?n.length>0:typeof n=="number"},lt=function(n,e,t){return e===void 0&&(e=0),t===void 0&&(t=Math.pow(10,e)),Math.round(t*n)/t+0},Xt=function(n,e,t){return e===void 0&&(e=0),t===void 0&&(t=1),n>t?t:n>e?n:e},A0=function(n){return(n=isFinite(n)?n%360:0)>0?n:n+360},Id=function(n){return{r:Xt(n.r,0,255),g:Xt(n.g,0,255),b:Xt(n.b,0,255),a:Xt(n.a)}},Qc=function(n){return{r:lt(n.r),g:lt(n.g),b:lt(n.b),a:lt(n.a,3)}},Ax=/^#([0-9a-f]{3,8})$/i,Ho=function(n){var e=n.toString(16);return e.length<2?"0"+e:e},R0=function(n){var e=n.r,t=n.g,s=n.b,r=n.a,i=Math.max(e,t,s),o=i-Math.min(e,t,s),a=o?i===e?(t-s)/o:i===t?2+(s-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}},D0=function(n){var e=n.h,t=n.s,s=n.v,r=n.a;e=e/360*6,t/=100,s/=100;var i=Math.floor(e),o=s*(1-t),a=s*(1-(e-i)*t),c=s*(1-(1-e+i)*t),l=i%6;return{r:255*[s,a,o,o,c,s][l],g:255*[c,s,s,a,o,o][l],b:255*[o,o,c,s,s,a][l],a:r}},$d=function(n){return{h:A0(n.h),s:Xt(n.s,0,100),l:Xt(n.l,0,100),a:Xt(n.a)}},Fd=function(n){return{h:lt(n.h),s:lt(n.s),l:lt(n.l),a:lt(n.a,3)}},Ld=function(n){return D0((t=(e=n).s,{h:e.h,s:(t*=((s=e.l)<50?s:100-s)/100)>0?2*t/(s+t)*100:0,v:s+t,a:e.a}));var e,t,s},Di=function(n){return{h:(e=R0(n)).h,s:(r=(200-(t=e.s))*(s=e.v)/100)>0&&r<200?t*s/100/(r<=100?r:200-r)*100:0,l:r/2,a:e.a};var e,t,s,r},Rx=/^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,Px=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Mx=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Rl={string:[[function(n){var e=Ax.exec(n);return e?(n=e[1]).length<=4?{r:parseInt(n[0]+n[0],16),g:parseInt(n[1]+n[1],16),b:parseInt(n[2]+n[2],16),a:n.length===4?lt(parseInt(n[3]+n[3],16)/255,2):1}:n.length===6||n.length===8?{r:parseInt(n.substr(0,2),16),g:parseInt(n.substr(2,2),16),b:parseInt(n.substr(4,2),16),a:n.length===8?lt(parseInt(n.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(n){var e=Px.exec(n)||Mx.exec(n);return e?e[2]!==e[4]||e[4]!==e[6]?null:Id({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(n){var e=Rx.exec(n)||Dx.exec(n);if(!e)return null;var t,s,r=$d({h:(t=e[1],s=e[2],s===void 0&&(s="deg"),Number(t)*(Ox[s]||1)),s:Number(e[3]),l:Number(e[4]),a:e[5]===void 0?1:Number(e[5])/(e[6]?100:1)});return Ld(r)},"hsl"]],object:[[function(n){var e=n.r,t=n.g,s=n.b,r=n.a,i=r===void 0?1:r;return Fn(e)&&Fn(t)&&Fn(s)?Id({r:Number(e),g:Number(t),b:Number(s),a:Number(i)}):null},"rgb"],[function(n){var e=n.h,t=n.s,s=n.l,r=n.a,i=r===void 0?1:r;if(!Fn(e)||!Fn(t)||!Fn(s))return null;var o=$d({h:Number(e),s:Number(t),l:Number(s),a:Number(i)});return Ld(o)},"hsl"],[function(n){var e=n.h,t=n.s,s=n.v,r=n.a,i=r===void 0?1:r;if(!Fn(e)||!Fn(t)||!Fn(s))return null;var o=function(a){return{h:A0(a.h),s:Xt(a.s,0,100),v:Xt(a.v,0,100),a:Xt(a.a)}}({h:Number(e),s:Number(t),v:Number(s),a:Number(i)});return D0(o)},"hsv"]]},jd=function(n,e){for(var t=0;t=.5},n.prototype.toHex=function(){return e=Qc(this.rgba),t=e.r,s=e.g,r=e.b,o=(i=e.a)<1?Ho(lt(255*i)):"","#"+Ho(t)+Ho(s)+Ho(r)+o;var e,t,s,r,i,o},n.prototype.toRgb=function(){return Qc(this.rgba)},n.prototype.toRgbString=function(){return e=Qc(this.rgba),t=e.r,s=e.g,r=e.b,(i=e.a)<1?"rgba("+t+", "+s+", "+r+", "+i+")":"rgb("+t+", "+s+", "+r+")";var e,t,s,r,i},n.prototype.toHsl=function(){return Fd(Di(this.rgba))},n.prototype.toHslString=function(){return e=Fd(Di(this.rgba)),t=e.h,s=e.s,r=e.l,(i=e.a)<1?"hsla("+t+", "+s+"%, "+r+"%, "+i+")":"hsl("+t+", "+s+"%, "+r+"%)";var e,t,s,r,i},n.prototype.toHsv=function(){return e=R0(this.rgba),{h:lt(e.h),s:lt(e.s),v:lt(e.v),a:lt(e.a,3)};var e},n.prototype.invert=function(){return bt({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},n.prototype.saturate=function(e){return e===void 0&&(e=.1),bt(Jc(this.rgba,e))},n.prototype.desaturate=function(e){return e===void 0&&(e=.1),bt(Jc(this.rgba,-e))},n.prototype.grayscale=function(){return bt(Jc(this.rgba,-1))},n.prototype.lighten=function(e){return e===void 0&&(e=.1),bt(zd(this.rgba,e))},n.prototype.darken=function(e){return e===void 0&&(e=.1),bt(zd(this.rgba,-e))},n.prototype.rotate=function(e){return e===void 0&&(e=15),this.hue(this.hue()+e)},n.prototype.alpha=function(e){return typeof e=="number"?bt({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):lt(this.rgba.a,3);var t},n.prototype.hue=function(e){var t=Di(this.rgba);return typeof e=="number"?bt({h:e,s:t.s,l:t.l,a:t.a}):lt(t.h)},n.prototype.isEqual=function(e){return this.toHex()===bt(e).toHex()},n}(),bt=function(n){return n instanceof Dl?n:new Dl(n)},Vd=[],Ix=function(n){n.forEach(function(e){Vd.indexOf(e)<0&&(e(Dl,Rl),Vd.push(e))})};function $x(n,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"},s={};for(var r in t)s[t[r]]=r;var i={};n.prototype.toName=function(o){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var a,c,l=s[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 n(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]=n[t]);return r}function Pl(n){var e=v.useRef(n),t=v.useRef(function(s){e.current&&e.current(s)});return e.current=n,t.current}var jr=function(n,e,t){return e===void 0&&(e=0),t===void 0&&(t=1),n>t?t:n0:g.buttons>0)&&r.current?i(Ud(r.current,g,a.current)):p(!1)},m=function(){return p(!1)};function p(g){var _=c.current,k=Ml(r.current),T=g?k.addEventListener:k.removeEventListener;T(_?"touchmove":"mousemove",f),T(_?"touchend":"mouseup",m)}return[function(g){var _=g.nativeEvent,k=r.current;if(k&&(Bd(_),!function(b,y){return y&&!Pi(b)}(_,c.current)&&k)){if(Pi(_)){c.current=!0;var T=_.changedTouches||[];T.length&&(a.current=T[0].identifier)}k.focus(),i(Ud(k,_,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]),N.createElement("div",ni({},s,{onTouchStart:u,onMouseDown:u,className:"react-colorful__interactive",ref:r,onKeyDown:h,tabIndex:0,role:"slider"}))}),xo=function(n){return n.filter(Boolean).join(" ")},$u=function(n){var e=n.color,t=n.left,s=n.top,r=s===void 0?.5:s,i=xo(["react-colorful__pointer",n.className]);return N.createElement("div",{className:i,style:{top:100*r+"%",left:100*t+"%"}},N.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:e}}))},Tt=function(n,e,t){return e===void 0&&(e=0),t===void 0&&(t=Math.pow(10,e)),Math.round(t*n)/t},M0=function(n){var e=n.s,t=n.v,s=n.a,r=(200-e)*t/100;return{h:Tt(n.h),s:Tt(r>0&&r<200?e*t/100/(r<=100?r:200-r)*100:0),l:Tt(r/2),a:Tt(s,2)}},Nl=function(n){var e=M0(n);return"hsl("+e.h+", "+e.s+"%, "+e.l+"%)"},tl=function(n){var e=M0(n);return"hsla("+e.h+", "+e.s+"%, "+e.l+"%, "+e.a+")"},N0=function(n){var e=n.h,t=n.s,s=n.v,r=n.a;e=e/360*6,t/=100,s/=100;var i=Math.floor(e),o=s*(1-t),a=s*(1-(e-i)*t),c=s*(1-(1-e+i)*t),l=i%6;return{r:Tt(255*[s,a,o,o,c,s][l]),g:Tt(255*[c,s,s,a,o,o][l]),b:Tt(255*[o,o,c,s,s,a][l]),a:Tt(r,2)}},I0=function(n){var e=n.r,t=n.g,s=n.b,r=n.a,i=Math.max(e,t,s),o=i-Math.min(e,t,s),a=o?i===e?(t-s)/o:i===t?2+(s-e)/o:4+(e-t)/o:0;return{h:Tt(60*(a<0?a+6:a)),s:Tt(i?o/i*100:0),v:Tt(i/255*100),a:r}},$0=N.memo(function(n){var e=n.hue,t=n.onChange,s=xo(["react-colorful__hue",n.className]);return N.createElement("div",{className:s},N.createElement(Iu,{onMove:function(r){t({h:360*r.left})},onKey:function(r){t({h:jr(e+360*r.left,0,360)})},"aria-label":"Hue","aria-valuenow":Tt(e),"aria-valuemax":"360","aria-valuemin":"0"},N.createElement($u,{className:"react-colorful__hue-pointer",left:e/360,color:Nl({h:e,s:100,v:100,a:1})})))}),F0=N.memo(function(n){var e=n.hsva,t=n.onChange,s={backgroundColor:Nl({h:e.h,s:100,v:100,a:1})};return N.createElement("div",{className:"react-colorful__saturation",style:s},N.createElement(Iu,{onMove:function(r){t({s:100*r.left,v:100-100*r.top})},onKey:function(r){t({s:jr(e.s+100*r.left,0,100),v:jr(e.v-100*r.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+Tt(e.s)+"%, Brightness "+Tt(e.v)+"%"},N.createElement($u,{className:"react-colorful__saturation-pointer",top:1-e.v/100,left:e.s/100,color:Nl(e)})))}),Fu=function(n,e){if(n===e)return!0;for(var t in n)if(n[t]!==e[t])return!1;return!0};function L0(n,e,t){var s=Pl(t),r=v.useState(function(){return n.toHsva(e)}),i=r[0],o=r[1],a=v.useRef({color:e,hsva:i});v.useEffect(function(){if(!n.equal(e,a.current.color)){var l=n.toHsva(e);a.current={hsva:l,color:e},o(l)}},[e,n]),v.useEffect(function(){var l;Fu(i,a.current.hsva)||n.equal(l=n.fromHsva(i),a.current.color)||(a.current={hsva:i,color:l},s(l))},[i,n,s]);var c=v.useCallback(function(l){o(function(u){return Object.assign({},u,l)})},[]);return[i,c]}var Fx=typeof window<"u"?v.useLayoutEffect:v.useEffect,Lx=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0},Wd=new Map,j0=function(n){Fx(function(){var e=n.current?n.current.ownerDocument:document;if(e!==void 0&&!Wd.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}`,Wd.set(e,t);var s=Lx();s&&t.setAttribute("nonce",s),e.head.appendChild(t)}},[])},jx=function(n){var e=n.className,t=n.colorModel,s=n.color,r=s===void 0?t.defaultColor:s,i=n.onChange,o=Nu(n,["className","colorModel","color","onChange"]),a=v.useRef(null);j0(a);var c=L0(t,r,i),l=c[0],u=c[1],h=xo(["react-colorful",e]);return N.createElement("div",ni({},o,{ref:a,className:h}),N.createElement(F0,{hsva:l,onChange:u}),N.createElement($0,{hue:l.h,onChange:u,className:"react-colorful__last-control"}))},zx=function(n){var e=n.className,t=n.hsva,s=n.onChange,r={backgroundImage:"linear-gradient(90deg, "+tl(Object.assign({},t,{a:0}))+", "+tl(Object.assign({},t,{a:1}))+")"},i=xo(["react-colorful__alpha",e]),o=Tt(100*t.a);return N.createElement("div",{className:i},N.createElement("div",{className:"react-colorful__alpha-gradient",style:r}),N.createElement(Iu,{onMove:function(a){s({a:a.left})},onKey:function(a){s({a:jr(t.a+a.left)})},"aria-label":"Alpha","aria-valuetext":o+"%","aria-valuenow":o,"aria-valuemin":"0","aria-valuemax":"100"},N.createElement($u,{className:"react-colorful__alpha-pointer",left:t.a,color:tl(t)})))},Vx=function(n){var e=n.className,t=n.colorModel,s=n.color,r=s===void 0?t.defaultColor:s,i=n.onChange,o=Nu(n,["className","colorModel","color","onChange"]),a=v.useRef(null);j0(a);var c=L0(t,r,i),l=c[0],u=c[1],h=xo(["react-colorful",e]);return N.createElement("div",ni({},o,{ref:a,className:h}),N.createElement(F0,{hsva:l,onChange:u}),N.createElement($0,{hue:l.h,onChange:u}),N.createElement(zx,{hsva:l,onChange:u,className:"react-colorful__last-control"}))},Ux={defaultColor:{r:0,g:0,b:0,a:1},toHsva:I0,fromHsva:N0,equal:Fu},Bx=function(n){return N.createElement(Vx,ni({},n,{colorModel:Ux}))},Wx={defaultColor:{r:0,g:0,b:0},toHsva:function(n){return I0({r:n.r,g:n.g,b:n.b,a:1})},fromHsva:function(n){return{r:(e=N0(n)).r,g:e.g,b:e.b};var e},equal:Fu},qx=function(n){return N.createElement(jx,ni({},n,{colorModel:Wx}))};function gn(n,e,t,s){var r=arguments.length,i=r<3?e:s===null?s=Object.getOwnPropertyDescriptor(e,t):s,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,e,t,s);else for(var a=n.length-1;a>=0;a--)(o=n[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(n,e,t,s){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(s.next(u))}catch(h){o(h)}}function c(u){try{l(s.throw(u))}catch(h){o(h)}}function l(u){u.done?i(u.value):r(u.value).then(a,c)}l((s=s.apply(n,e||[])).next())})}function si(n,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},s,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(s)throw new TypeError("Generator is already executing.");for(;o&&(o=0,l[0]&&(t=0)),t;)try{if(s=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=s.next()).done;)i.push(r.value)}catch(a){o={error:a}}finally{try{r&&!r.done&&(t=s.return)&&t.call(s)}finally{if(o)throw o.error}}return i}function Yx(){for(var n=[],e=0;e0?s:n.name,writable:!1,configurable:!1,enumerable:!0})}return t}function Xx(n){var e=n.name,t=e&&e.lastIndexOf(".")!==-1;if(t&&!n.type){var s=e.split(".").pop().toLowerCase(),r=Gx.get(s);r&&Object.defineProperty(n,"type",{value:r,writable:!1,configurable:!1,enumerable:!0})}return n}var Zx=[".DS_Store","Thumbs.db"];function Kx(n){return Ie(this,void 0,void 0,function(){return si(this,function(e){return Ta(n)&&Qx(n)?[2,nw(n.dataTransfer,n.type)]:Jx(n)?[2,ew(n)]:Array.isArray(n)&&n.every(function(t){return"getFile"in t&&typeof t.getFile=="function"})?[2,tw(n)]:[2,[]]})})}function Qx(n){return Ta(n.dataTransfer)}function Jx(n){return Ta(n)&&Ta(n.target)}function Ta(n){return typeof n=="object"&&n!==null}function ew(n){return Il(n.target.files).map(function(e){return wo(e)})}function tw(n){return Ie(this,void 0,void 0,function(){var e;return si(this,function(t){switch(t.label){case 0:return[4,Promise.all(n.map(function(s){return s.getFile()}))];case 1:return e=t.sent(),[2,e.map(function(s){return wo(s)})]}})})}function nw(n,e){return Ie(this,void 0,void 0,function(){var t,s;return si(this,function(r){switch(r.label){case 0:return n===null?[2,[]]:n.items?(t=Il(n.items).filter(function(i){return i.kind==="file"}),e!=="drop"?[2,t]:[4,Promise.all(t.map(sw))]):[3,2];case 1:return s=r.sent(),[2,qd(z0(s))];case 2:return[2,qd(Il(n.files).map(function(i){return wo(i)}))]}})})}function qd(n){return n.filter(function(e){return Zx.indexOf(e.name)===-1})}function Il(n){if(n===null)return[];for(var e=[],t=0;tn.length)&&(e=n.length);for(var t=0,s=new Array(e);tt)return[!1,Kd(t)];if(n.sizet)return[!1,Kd(t)]}return[!0,null]}function Ti(n){return n!=null}function _w(n){var e=n.files,t=n.accept,s=n.minSize,r=n.maxSize,i=n.multiple,o=n.maxFiles;return!i&&e.length>1||i&&o>=1&&e.length>o?!1:e.every(function(a){var c=B0(a,t),l=Xd(c,1),u=l[0],h=W0(a,s,r),d=Xd(h,1),f=d[0];return u&&f})}function ka(n){return typeof n.isPropagationStopped=="function"?n.isPropagationStopped():typeof n.cancelBubble<"u"?n.cancelBubble:!1}function Yo(n){return n.dataTransfer?Array.prototype.some.call(n.dataTransfer.types,function(e){return e==="Files"||e==="application/x-moz-file"}):!!n.target&&!!n.target.files}function Jd(n){n.preventDefault()}function yw(n){return n.indexOf("MSIE")!==-1||n.indexOf("Trident/")!==-1}function vw(n){return n.indexOf("Edge/")!==-1}function bw(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return yw(n)||vw(n)}function wn(){for(var n=arguments.length,e=new Array(n),t=0;t1?r-1:0),o=1;on.length)&&(e=n.length);for(var t=0,s=new Array(e);t=0)&&Object.prototype.propertyIsEnumerable.call(n,s)&&(t[s]=n[s])}return t}function $w(n,e){if(n==null)return{};var t={},s=Object.keys(n),r,i;for(i=0;i=0)&&(t[r]=n[r]);return t}var Lu=v.forwardRef(function(n,e){var t=n.children,s=Ea(n,Ew),r=Y0(s),i=r.open,o=Ea(r,Cw);return v.useImperativeHandle(e,function(){return{open:i}},[i]),N.createElement(v.Fragment,null,t(qe(qe({},o),{},{open:i})))});Lu.displayName="Dropzone";var H0={disabled:!1,getFilesFromEvent:Kx,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0};Lu.defaultProps=H0;Lu.propTypes={children:Ee.func,accept:Ee.oneOfType([Ee.string,Ee.arrayOf(Ee.string)]),multiple:Ee.bool,preventDropOnDocument:Ee.bool,noClick:Ee.bool,noKeyboard:Ee.bool,noDrag:Ee.bool,noDragEventsBubbling:Ee.bool,minSize:Ee.number,maxSize:Ee.number,maxFiles:Ee.number,disabled:Ee.bool,getFilesFromEvent:Ee.func,onFileDialogCancel:Ee.func,onFileDialogOpen:Ee.func,useFsAccessApi:Ee.bool,onDragEnter:Ee.func,onDragLeave:Ee.func,onDragOver:Ee.func,onDrop:Ee.func,onDropAccepted:Ee.func,onDropRejected:Ee.func,validator:Ee.func};var Ll={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,draggedFiles:[],acceptedFiles:[],fileRejections:[]};function Y0(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=qe(qe({},H0),n),t=e.accept,s=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,k=e.preventDropOnDocument,T=e.noClick,b=e.noKeyboard,y=e.noDrag,x=e.noDragEventsBubbling,E=e.validator,w=v.useMemo(function(){return typeof g=="function"?g:tf},[g]),C=v.useMemo(function(){return typeof p=="function"?p:tf},[p]),A=v.useRef(null),D=v.useRef(null),O=v.useReducer(Fw,Ll),L=nl(O,2),j=L[0],W=L[1],V=j.isFocused,U=j.isFileDialogActive,B=j.draggedFiles,X=v.useRef(typeof window<"u"&&window.isSecureContext&&_&&xw()),K=function(){!X.current&&U&&setTimeout(function(){if(D.current){var fe=D.current.files;fe.length||(W({type:"closeDialog"}),C())}},300)};v.useEffect(function(){return window.addEventListener("focus",K,!1),function(){window.removeEventListener("focus",K,!1)}},[D,U,C,X]);var J=v.useRef([]),F=function(fe){A.current&&A.current.contains(fe.target)||(fe.preventDefault(),J.current=[])};v.useEffect(function(){return k&&(document.addEventListener("dragover",Jd,!1),document.addEventListener("drop",F,!1)),function(){k&&(document.removeEventListener("dragover",Jd),document.removeEventListener("drop",F))}},[A,k]);var z=v.useCallback(function(ee){ee.preventDefault(),ee.persist(),P(ee),J.current=[].concat(Aw(J.current),[ee.target]),Yo(ee)&&Promise.resolve(r(ee)).then(function(fe){ka(ee)&&!x||(W({draggedFiles:fe,isDragActive:!0,type:"setDraggedFiles"}),l&&l(ee))})},[r,l,x]),S=v.useCallback(function(ee){ee.preventDefault(),ee.persist(),P(ee);var fe=Yo(ee);if(fe&&ee.dataTransfer)try{ee.dataTransfer.dropEffect="copy"}catch{}return fe&&h&&h(ee),!1},[h,x]),I=v.useCallback(function(ee){ee.preventDefault(),ee.persist(),P(ee);var fe=J.current.filter(function(at){return A.current&&A.current.contains(at)}),tt=fe.indexOf(ee.target);tt!==-1&&fe.splice(tt,1),J.current=fe,!(fe.length>0)&&(W({isDragActive:!1,type:"setDraggedFiles",draggedFiles:[]}),Yo(ee)&&u&&u(ee))},[A,u,x]),Y=v.useCallback(function(ee,fe){var tt=[],at=[];ee.forEach(function($t){var os=B0($t,t),dr=nl(os,2),Mc=dr[0],Nc=dr[1],Ic=W0($t,o,i),Mo=nl(Ic,2),$c=Mo[0],Fc=Mo[1],Lc=E?E($t):null;if(Mc&&$c&&!Lc)tt.push($t);else{var jc=[Nc,Fc];Lc&&(jc=jc.concat(Lc)),at.push({file:$t,errors:jc.filter(function(M_){return M_})})}}),(!a&&tt.length>1||a&&c>=1&&tt.length>c)&&(tt.forEach(function($t){at.push({file:$t,errors:[gw]})}),tt.splice(0)),W({acceptedFiles:tt,fileRejections:at,type:"setFiles"}),d&&d(tt,at,fe),at.length>0&&m&&m(at,fe),tt.length>0&&f&&f(tt,fe)},[W,a,t,o,i,c,d,f,m,E]),$=v.useCallback(function(ee){ee.preventDefault(),ee.persist(),P(ee),J.current=[],Yo(ee)&&Promise.resolve(r(ee)).then(function(fe){ka(ee)&&!x||Y(fe,ee)}),W({type:"reset"})},[r,Y,x]),q=v.useCallback(function(){if(X.current){W({type:"openDialog"}),w();var ee={multiple:a,types:ww(t)};window.showOpenFilePicker(ee).then(function(fe){return r(fe)}).then(function(fe){Y(fe,null),W({type:"closeDialog"})}).catch(function(fe){Tw(fe)?(C(fe),W({type:"closeDialog"})):kw(fe)&&(X.current=!1,D.current&&(D.current.value=null,D.current.click()))});return}D.current&&(W({type:"openDialog"}),w(),D.current.value=null,D.current.click())},[W,w,C,_,Y,t,a]),oe=v.useCallback(function(ee){!A.current||!A.current.isEqualNode(ee.target)||(ee.key===" "||ee.key==="Enter"||ee.keyCode===32||ee.keyCode===13)&&(ee.preventDefault(),q())},[A,q]),re=v.useCallback(function(){W({type:"focus"})},[]),ie=v.useCallback(function(){W({type:"blur"})},[]),ne=v.useCallback(function(){T||(bw()?setTimeout(q,0):q())},[T,q]),ge=function(fe){return s?null:fe},te=function(fe){return b?null:ge(fe)},H=function(fe){return y?null:ge(fe)},P=function(fe){x&&fe.stopPropagation()},R=v.useMemo(function(){return function(){var ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},fe=ee.refKey,tt=fe===void 0?"ref":fe,at=ee.role,$t=ee.onKeyDown,os=ee.onFocus,dr=ee.onBlur,Mc=ee.onClick,Nc=ee.onDragEnter,Ic=ee.onDragOver,Mo=ee.onDragLeave,$c=ee.onDrop,Fc=Ea(ee,Sw);return qe(qe(Fl({onKeyDown:te(wn($t,oe)),onFocus:te(wn(os,re)),onBlur:te(wn(dr,ie)),onClick:ge(wn(Mc,ne)),onDragEnter:H(wn(Nc,z)),onDragOver:H(wn(Ic,S)),onDragLeave:H(wn(Mo,I)),onDrop:H(wn($c,$)),role:typeof at=="string"&&at!==""?at:"button"},tt,A),!s&&!b?{tabIndex:0}:{}),Fc)}},[A,oe,re,ie,ne,z,S,I,$,b,y,s]),Q=v.useCallback(function(ee){ee.stopPropagation()},[]),se=v.useMemo(function(){return function(){var ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},fe=ee.refKey,tt=fe===void 0?"ref":fe,at=ee.onChange,$t=ee.onClick,os=Ea(ee,Ow),dr=Fl({accept:t,multiple:a,type:"file",style:{display:"none"},onChange:ge(wn(at,$)),onClick:ge(wn($t,Q)),tabIndex:-1},tt,D);return qe(qe({},dr),os)}},[D,t,a,$,s]),le=B.length,be=le>0&&_w({files:B,accept:t,minSize:o,maxSize:i,multiple:a,maxFiles:c}),et=le>0&&!be;return qe(qe({},j),{},{isDragAccept:be,isDragReject:et,isFocused:V&&!s,getRootProps:R,getInputProps:se,rootRef:A,inputRef:D,open:ge(q)})}function Fw(n,e){switch(e.type){case"focus":return qe(qe({},n),{},{isFocused:!0});case"blur":return qe(qe({},n),{},{isFocused:!1});case"openDialog":return qe(qe({},Ll),{},{isFileDialogActive:!0});case"closeDialog":return qe(qe({},n),{},{isFileDialogActive:!1});case"setDraggedFiles":var t=e.isDragActive,s=e.draggedFiles;return qe(qe({},n),{},{draggedFiles:s,isDragActive:t});case"setFiles":return qe(qe({},n),{},{acceptedFiles:e.acceptedFiles,fileRejections:e.fileRejections});case"reset":return qe({},Ll);default:return n}}function tf(){}function Lw(n){let e;const t=new Set,s=(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:s,getState:r,subscribe:(l,u,h)=>u||h?i(l,u,h):(t.add(l),()=>t.delete(l)),destroy:()=>t.clear()};return e=n(s,r,c),c}const jw=typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),nf=jw?v.useEffect:v.useLayoutEffect;function zw(n){const e=typeof n=="function"?Lw(n):n,t=(s=e.getState,r=Object.is)=>{const[,i]=v.useReducer(g=>g+1,0),o=e.getState(),a=v.useRef(o),c=v.useRef(s),l=v.useRef(r),u=v.useRef(!1),h=v.useRef();h.current===void 0&&(h.current=s(o));let d,f=!1;(a.current!==o||c.current!==s||l.current!==r||u.current)&&(d=s(o),f=!r(h.current,d)),nf(()=>{f&&(h.current=d),a.current=o,c.current=s,l.current=r,u.current=!1});const m=v.useRef(o);nf(()=>{const g=()=>{try{const k=e.getState(),T=c.current(k);l.current(h.current,T)||(a.current=k,h.current=T,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 s=[t,e];return{next(){const r=s.length<=0;return{value:s.shift(),done:r}}}},t}const Vw=n=>(e,t,s)=>{const r=s.subscribe;return s.subscribe=(o,a,c)=>{let l=o;if(a){const u=(c==null?void 0:c.equalityFn)||Object.is;let h=o(s.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)},n(e,t,s)};/*! * 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};/*! + */var Uw=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 sf(n){return Ww(n)===!0&&Object.prototype.toString.call(n)==="[object Object]"}var X0=function(e){var t,s;return!(sf(e)===!1||(t=e.constructor,typeof t!="function")||(s=t.prototype,sf(s)===!1)||s.hasOwnProperty("isPrototypeOf")===!1)};/*! + */var Bw=Uw;function sf(n){return Bw(n)===!0&&Object.prototype.toString.call(n)==="[object Object]"}var G0=function(e){var t,s;return!(sf(e)===!1||(t=e.constructor,typeof t!="function")||(s=t.prototype,sf(s)===!1)||s.hasOwnProperty("isPrototypeOf")===!1)};/*! * is-extendable * * Copyright (c) 2015-2017, Jon Schlinkert. * Released under the MIT License. - */var qw=X0,ju=function(e){return qw(e)||typeof e=="function"||Array.isArray(e)};/*! + */var Ww=G0,ju=function(e){return Ww(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,s){for(var r in e)if(t.call(s,e[r],r,e)===!1)break},Yw=ju,Gw=Hw;function Z0(n,e){for(var t=arguments.length,s=0;++s * * Copyright (c) 2014-2015, Jon Schlinkert. * Licensed under the MIT License. - */var Qw=function(n,e,t,s,r){if(!Jw(n)||!e)return n;if(e=Go(e),t&&(e+="."+Go(t)),s&&(e+="."+Go(s)),r&&(e+="."+Go(r)),e in n)return n[e];for(var i=e.split("."),o=i.length,a=-1;n&&++a * * Copyright (c) 2015, Jon Schlinkert. * Licensed under the MIT License. - */var eT=function(n,e){if(n===null||typeof n>"u")throw new TypeError("expected first argument to be an object.");if(typeof e>"u"||typeof Symbol>"u"||typeof Object.getOwnPropertySymbols!="function")return n;for(var t=Object.prototype.propertyIsEnumerable,s=Object(n),r=arguments.length,i=0;++i"u")throw new TypeError("Cannot convert undefined or null to object");rf(n)||(n={});for(var e=1;e"u")throw new TypeError("expected first argument to be an object.");if(typeof e>"u"||typeof Symbol>"u"||typeof Object.getOwnPropertySymbols!="function")return n;for(var t=Object.prototype.propertyIsEnumerable,s=Object(n),r=arguments.length,i=0;++i"u")throw new TypeError("Cannot convert undefined or null to object");rf(n)||(n={});for(var e=1;e * * Copyright (c) 2015-2017, Jon Schlinkert. * Released under the MIT License. - */var cT=sT,lT=function(n,e,t){if(typeof n!="string")throw new TypeError("expected a string");typeof e=="function"&&(t=e,e=null),typeof e=="string"&&(e={sep:e});var s=cT({sep:"."},e),r=s.quotes||['"',"'","`"],i;s.brackets===!0?i={"<":">","(":")","[":"]","{":"}"}:s.brackets&&(i=s.brackets);var o=[],a=[],c=[""],l=s.sep,u=n.length,h=-1,d;function f(){if(i&&a.length)return i[a[a.length-1]]}for(;++h","(":")","[":"]","{":"}"}:s.brackets&&(i=s.brackets);var o=[],a=[],c=[""],l=s.sep,u=n.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 dT=function(e){return typeof e<"u"&&e!==null&&(typeof e=="object"||typeof e=="function")},of=dT,fT=function(e){of(e)||(e={});for(var t=arguments.length,s=1;s * * Copyright (c) 2015, Jon Schlinkert. * Licensed under the MIT License. - */var gT=function(e){return typeof e<"u"&&e!==null&&(typeof e=="object"||typeof e=="function")};/*! + */var mT=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 _T=lT,yT=fT,af=X0,cf=gT,vT=function(n,e,t){if(!cf(n)||(Array.isArray(e)&&(e=[].concat.apply([],e).join(".")),typeof e!="string"))return n;for(var s=_T(e,{sep:".",brackets:!0}).filter(bT),r=s.length,i=-1,o=n;++in.filter(Boolean).join(".");function kT(n){const e=n.split(".");return[e.pop(),e.join(".")||void 0]}function ET(n,e){return Object.entries(Jv(n,e)).reduce((t,[,{value:s,disabled:r,key:i}])=>(t[i]=r?void 0:s,t),{})}function CT(n,e){const t=v.useRef();return(e?zi:yo)(n,t.current)||(t.current=n),t.current}function K0(n,e){return v.useMemo(n,CT(e,!0))}function ST(n){const e=v.useRef(null),t=v.useRef(null),s=v.useRef(!0);return v.useLayoutEffect(()=>{n||(e.current.style.height="0px",e.current.style.overflow="hidden")},[]),v.useEffect(()=>{if(s.current){s.current=!1;return}let r;const i=e.current,o=()=>{n&&(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",n||(i.style.overflow="hidden",r=window.setTimeout(()=>i.style.height="0px",50)),()=>{i.removeEventListener("transitionend",o),clearTimeout(r)}},[n]),{wrapperRef:e,contentRef:t}}const OT=n=>{const[e,t]=v.useState(n.getVisiblePaths());return v.useEffect(()=>{t(n.getVisiblePaths());const s=n.useStore.subscribe(n.getVisiblePaths,t,{equalityFn:yo});return()=>s()},[n]),e};function AT(n,e,t){return n.useStore(r=>{const i=de(de({},t),r.data);return ET(i,e)},yo)}function Q0(n=3){const e=v.useRef(null),t=v.useRef(null),[s,r]=v.useState(!1),i=v.useCallback(()=>r(!0),[]),o=v.useCallback(()=>r(!1),[]);return v.useLayoutEffect(()=>{if(s){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+n+"px":t.current.style.bottom=window.innerHeight-c+n+"px"}},[n,s]),{popinRef:e,wrapperRef:t,shown:s,show:i,hide:o}}$x([Fx]);const RT={rgb:"toRgb",hsl:"toHsl",hsv:"toHsv",hex:"toHex"};Ot.extend({color:()=>n=>bt(n).isValid()});const DT=n=>Ot().color().test(n);function J0(n,{format:e,hasAlpha:t,isString:s}){const r=RT[e]+(s&&e!=="hex"?"String":""),i=n[r]();return typeof i=="object"&&!t?eb(i,["a"]):i}const em=(n,e)=>{const t=bt(n);if(!t.isValid())throw Error("Invalid color");return J0(t,e)},PT=(n,e)=>J0(bt(n),de(de({},e),{},{isString:!0,format:"hex"})),MT=({value:n})=>{const e=Ix(n),t=e==="name"?"hex":e,s=typeof n=="object"?"a"in n:e==="hex"&&n.length===8||/^(rgba)|(hsla)|(hsva)/.test(n),r={format:t,hasAlpha:s,isString:typeof n=="string"};return{value:em(n,r),settings:r}};var NT=Object.freeze({__proto__:null,schema:DT,sanitize:em,format:PT,normalize:MT});const IT=ce("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}}),$T=ce("div",{position:"relative",display:"grid",gridTemplateColumns:"$sizes$rowHeight auto",columnGap:"$colGap",alignItems:"center"}),FT=ce("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 hf(n,e){return e!=="rgb"?bt(n).toRgb():n}function LT({value:n,displayValue:e,settings:t,onUpdate:s}){const{emitOnEditStart:r,emitOnEditEnd:i}=yt(),{format:o,hasAlpha:a}=t,{popinRef:c,wrapperRef:l,shown:u,show:h,hide:d}=Q0(),f=v.useRef(0),[m,p]=v.useState(()=>hf(n,o)),g=a?Wx:Hx,_=()=>{p(hf(n,o)),h(),r()},k=()=>{d(),i(),window.clearTimeout(f.current)},T=()=>{f.current=window.setTimeout(k,500)};return v.useEffect(()=>()=>window.clearTimeout(f.current),[]),N.createElement(N.Fragment,null,N.createElement(IT,{ref:c,active:u,onClick:()=>_(),style:{color:e}}),u&&N.createElement(Du,null,N.createElement(x0,{onPointerUp:k}),N.createElement(FT,{ref:l,onMouseEnter:()=>window.clearTimeout(f.current),onMouseLeave:b=>b.buttons===0&&T()},N.createElement(g,{color:m,onChange:s}))))}function jT(){const{value:n,displayValue:e,label:t,onChange:s,onUpdate:r,settings:i}=yt();return N.createElement(sn,{input:!0},N.createElement(mn,null,t),N.createElement($T,null,N.createElement(LT,{value:n,displayValue:e,onChange:s,onUpdate:r,settings:i}),N.createElement(Ru,{value:e,onChange:s,onUpdate:r})))}var zT=de({component:jT},NT);function VT(){const{label:n,displayValue:e,onUpdate:t,settings:s}=yt();return N.createElement(sn,{input:!0},N.createElement(mn,null,n),N.createElement(Mu,{value:e,settings:s,onUpdate:t}))}var UT=de({component:VT},A0(["x","y","z"]));const BT=ce("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}}),WT=ce("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 qT({value:n,settings:e,onUpdate:t}){const s=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]=T0(),f=v.useRef(null),m=v.useRef(null);v.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,k=_==="invertY"?1:-1,{[p]:{step:T},[g]:{step:b}}=e,y=Wn("sizes","joystickWidth"),x=Wn("sizes","joystickHeight"),E=parseFloat(y)*.8/2,w=parseFloat(x)*.8/2,C=v.useCallback(()=>{s.current||(u(!0),r.current&&d({x:r.current*E}),i.current&&d({y:i.current*-w}),s.current=window.setInterval(()=>{t(O=>{const L=T*r.current*o.current,j=k*b*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,w,t,d,T,b,p,g,k]),A=v.useCallback(()=>{window.clearTimeout(s.current),s.current=void 0,u(!1)},[]);v.useEffect(()=>{function O(L){o.current=a0(L)}return window.addEventListener("keydown",O),window.addEventListener("keyup",O),()=>{window.clearTimeout(s.current),window.removeEventListener("keydown",O),window.removeEventListener("keyup",O)}},[]);const D=bo(({first:O,active:L,delta:[j,W],movement:[V,U]})=>{O&&c(!0);const B=xs(V,-E,E),X=xs(U,-w,w);r.current=Math.abs(V)>Math.abs(B)?Math.sign(V-B):0,i.current=Math.abs(U)>Math.abs(X)?Math.sign(X-U):0;let K=n[p],J=n[g];L?(r.current||(K+=j*T*o.current,d({x:B})),i.current||(J-=k*W*b*o.current,d({y:X})),r.current||i.current?C():A(),t({[p]:K,[g]:J})):(c(!1),r.current=0,i.current=0,d({x:0,y:0}),A())});return N.createElement(BT,Je({ref:f},D()),a&&N.createElement(Du,null,N.createElement(WT,{ref:m,isOutOfBounds:l},N.createElement("div",null),N.createElement("span",{ref:h}))))}const HT=ce("div",{display:"grid",columnGap:"$colGap",variants:{withJoystick:{true:{gridTemplateColumns:"$sizes$rowHeight auto"},false:{gridTemplateColumns:"auto"}}}});function YT(){const{label:n,displayValue:e,onUpdate:t,settings:s}=yt();return N.createElement(sn,{input:!0},N.createElement(mn,null,n),N.createElement(HT,{withJoystick:!!s.joystick},s.joystick&&N.createElement(qT,{value:e,settings:s,onUpdate:t}),N.createElement(Mu,{value:e,settings:s,onUpdate:t})))}const GT=["joystick"],tm=A0(["x","y"]),XT=n=>{let{joystick:e=!0}=n,t=De(n,GT);const{value:s,settings:r}=tm.normalize(t);return{value:s,settings:de(de({},r),{},{joystick:e})}};var ZT=de(de({component:YT},tm),{},{normalize:XT});const KT=n=>{if(n!==void 0){if(n instanceof File)try{return URL.createObjectURL(n)}catch{return}if(typeof n=="string"&&n.indexOf("blob:")===0)return n;throw Error("Invalid image format [undefined | blob | File].")}},QT=(n,e)=>typeof e=="object"&&"image"in e,JT=({image:n})=>({value:n});var ek=Object.freeze({__proto__:null,sanitize:KT,schema:QT,normalize:JT});const tk=ce("div",{position:"relative",display:"grid",gridTemplateColumns:"$sizes$rowHeight auto 20px",columnGap:"$colGap",alignItems:"center"}),nk=ce("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"}}}}),sk=ce("div",{boxSizing:"border-box",borderRadius:"$sm",height:"$rowHeight",width:"$rowHeight",$inputStyle:"",backgroundSize:"cover",backgroundPosition:"center",variants:{hasImage:{true:{cursor:"pointer",$hover:"",$active:""}}}}),rk=ce("div",{$flexCenter:"",width:"$imagePreviewWidth",height:"$imagePreviewHeight",borderRadius:"$sm",boxShadow:"$level2",pointerEvents:"none",$inputStyle:"",backgroundSize:"cover",backgroundPosition:"center"}),ik=ce("div",{fontSize:"0.8em",height:"100%",padding:"$rowGap $md"}),ok=ce("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 ak(){const{label:n,value:e,onUpdate:t,disabled:s}=yt(),{popinRef:r,wrapperRef:i,shown:o,show:a,hide:c}=Q0(),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}=G0({maxFiles:1,accept:"image/*",onDrop:l,disabled:s});return N.createElement(sn,{input:!0},N.createElement(mn,null,n),N.createElement(tk,null,N.createElement(sk,{ref:r,hasImage:!!e,onPointerDown:()=>!!e&&a(),onPointerUp:c,style:{backgroundImage:e?`url(${e})`:"none"}}),o&&!!e&&N.createElement(Du,null,N.createElement(x0,{onPointerUp:c,style:{cursor:"pointer"}}),N.createElement(rk,{ref:i,style:{backgroundImage:`url(${e})`}})),N.createElement(nk,h({isDragAccept:f}),N.createElement("input",d()),N.createElement(ik,null,f?"drop image":"click or drop")),N.createElement(ok,{onClick:u,disabled:!e})))}var ck=de({component:ak},ek);const df=Ot().number(),lk=(n,e)=>Ot().array().length(2).every.number().test(n)&&Ot().schema({min:df,max:df}).test(e),Ca=n=>({min:n[0],max:n[1]}),nm=(n,{bounds:[e,t]},s)=>{const r=Array.isArray(n)?Ca(n):n,i={min:s[0],max:s[1]},{min:o,max:a}=de(de({},i),r);return[xs(Number(o),e,Math.max(e,a)),xs(Number(a),Math.min(t,o),t)]},uk=({value:n,min:e,max:t})=>{const s={min:e,max:t},r=O0(Ca(n),{min:s,max:s}),i=[e,t],o=de(de({},r),{},{bounds:i});return{value:nm(Ca(n),o,n),settings:o}};var hk=Object.freeze({__proto__:null,schema:lk,format:Ca,sanitize:nm,normalize:uk});const dk=["value","bounds","onDrag"],fk=["bounds"],pk=ce("div",{display:"grid",columnGap:"$colGap",gridTemplateColumns:"auto calc($sizes$numberInputMinWidth * 2 + $space$rowGap)"});function mk(n){let{value:e,bounds:[t,s],onDrag:r}=n,i=De(n,dk);const o=v.useRef(null),a=v.useRef(null),c=v.useRef(null),l=v.useRef(0),u=Wn("sizes","scrubberWidth"),h=bo(({event:m,first:p,xy:[g],movement:[_],memo:k={}})=>{if(p){const{width:b,left:y}=o.current.getBoundingClientRect();l.current=b-parseFloat(u);const x=(m==null?void 0:m.target)===a.current||(m==null?void 0:m.target)===c.current;k.pos=xa((g-y)/b,t,s);const E=Math.abs(k.pos-e.min)-Math.abs(k.pos-e.max);k.key=E<0||E===0&&k.pos<=e.min?"min":"max",x&&(k.pos=e[k.key])}const T=k.pos+xa(_/l.current,0,s-t);return r({[k.key]:Ub(T,i[k.key])}),k}),d=`calc(${ba(e.min,t,s)} * (100% - ${u} - 8px) + 4px)`,f=`calc(${1-ba(e.max,t,s)} * (100% - ${u} - 8px) + 4px)`;return N.createElement(E0,Je({ref:o},h()),N.createElement(k0,null,N.createElement(C0,{style:{left:d,right:f}})),N.createElement(Ol,{position:"left",ref:a,style:{left:d}}),N.createElement(Ol,{position:"right",ref:c,style:{right:f}}))}function gk(){const{label:n,displayValue:e,onUpdate:t,settings:s}=yt(),r=De(s,fk);return N.createElement(N.Fragment,null,N.createElement(sn,{input:!0},N.createElement(mn,null,n),N.createElement(pk,null,N.createElement(mk,Je({value:e},s,{onDrag:t})),N.createElement(Mu,{value:e,settings:r,onUpdate:t,innerLabelTrim:0}))))}var _k=de({component:gk},hk);const yk=()=>{const n=new Map;return{on:(e,t)=>{let s=n.get(e);s===void 0&&(s=new Set,n.set(e,s)),s.add(t)},off:(e,t)=>{const s=n.get(e);s!==void 0&&(s.delete(t),s.size===0&&n.delete(e))},emit:(e,...t)=>{const s=n.get(e);if(s!==void 0)for(const r of s)r(...t)}}},vk=["type","value"],bk=["onChange","transient","onEditStart","onEditEnd"],xk=function(){const e=Vw(Uw(()=>({data:{}}))),t=yk();this.storeId=Qv(),this.useStore=e;const s={},r=new Set;this.getVisiblePaths=()=>{const o=this.getData(),a=Object.keys(o),c=[];Object.entries(s).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 un&&delete c[l]}}),{data:c}})},this.dispose=()=>{e.setState(()=>({data:{}}))},this.getFolderSettings=o=>s[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=De(h,vk);f!==d.type?Bn(He.INPUT_TYPE_OVERRIDE,f):((d.__refCount===0||a)&&Object.assign(d,p),d.__refCount++)}else l[u]=de(de({},h),{},{__refCount:1})}),{data:l}})},this.setValueAtPath=(o,a,c)=>{e.setState(l=>{const u=l.data;return Nd(u[o],a,o,this,c),{data:u}})},this.setSettingsAtPath=(o,a)=>{e.setState(c=>{const l=c.data;return l[o].settings=de(de({},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{Nd(l[u],h,void 0,void 0,a)}catch{}}),{data:l}})},this.getInput=o=>{try{return this.getData()[o]}catch{Bn(He.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,de(de({},this.getInput(o)),{},{get:this.get}))},this.emitOnEditEnd=o=>{t.emit(`onEditEnd:${o}`,this.get(o),o,de(de({},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 Bn(He.EMPTY_KEY);let d=zu(a,u);if(h.type===un.FOLDER){const f=i(h.schema,d,c);Object.assign(l,f),d in s||(s[d]=h.settings)}else if(u in c)Bn(He.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:k,onEditStart:T,onEditEnd:b}=p,y=De(p,bk);l[d]=de(de(de({type:m},y),g),{},{fromPanel:!0}),c[u]={path:d,onChange:_,transient:k,onEditStart:T,onEditEnd:b}}else Bn(He.UNKNOWN_INPUT,d,h)}}),l};this.getDataFromSchema=o=>{const a={};return[i(o,"",a),a]}},sm=new xk,wk={collapsed:!1};function Tk(n,e){return{type:un.FOLDER,schema:n,settings:de(de({},wk),e)}}const ff=n=>"__levaInput"in n,kk=(n,e)=>{const t={},s=e?e.toLowerCase():null;return n.forEach(r=>{const[i,o]=kT(r);(!s||i.toLowerCase().indexOf(s)>-1)&&TT(t,o,{[i]:{__levaInput:!0,path:r}})}),t},Ek=["type","label","path","valueKey","value","settings","setValue","disabled"];function Ck(n){let{type:e,label:t,path:s,valueKey:r,value:i,settings:o,setValue:a,disabled:c}=n,l=De(n,Ek);const{displayValue:u,onChange:h,onUpdate:d}=w0({type:e,value:i,settings:o,setValue:a}),f=Js[e].component;return f?N.createElement(d0.Provider,{value:de({key:r,path:s,id:""+s,label:t,displayValue:u,value:i,onChange:h,onUpdate:d,settings:o,setValue:a,disabled:c},l)},N.createElement(Cb,{disabled:c},N.createElement(f,null))):(Bn(He.NO_COMPONENT_FOR_TYPE,e,s),null)}const Sk=ce("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 Ok({onClick:n,settings:e,label:t}){const s=vo();return N.createElement(sn,null,N.createElement(Sk,{disabled:e.disabled,onClick:()=>n(s.get)},t))}const Ak=ce("div",{$flex:"",justifyContent:"flex-end",gap:"$colGap"}),Rk=ce("button",{$reset:"",cursor:"pointer",borderRadius:"$xs","&:hover":{backgroundColor:"$elevation3"}}),Dk=({label:n,opts:e})=>{let t=typeof n=="string"&&n.trim()===""?null:n,s=e;return typeof e.opts=="object"&&(s.label!==void 0&&(t=e.label),s=e.opts),{label:t,opts:s}};function Pk(n){const{label:e,opts:t}=Dk(n),s=vo();return N.createElement(sn,{input:!!e},e&&N.createElement(mn,null,e),N.createElement(Ak,null,Object.entries(t).map(([r,i])=>N.createElement(Rk,{key:r,onClick:()=>i(s.get)},r))))}const Mk=ce("canvas",{height:"$monitorHeight",width:"100%",display:"block",borderRadius:"$sm"}),rm=100;function Nk(n,e){n.push(e),n.length>rm&&n.shift()}const Ik=v.forwardRef(function({initialValue:n},e){const t=Wn("colors","highlight3"),s=Wn("colors","elevation2"),r=Wn("colors","highlight1"),[i,o]=v.useMemo(()=>[bt(r).alpha(.4).toRgbString(),bt(r).alpha(.1).toRgbString()],[r]),a=v.useRef([n]),c=v.useRef(n),l=v.useRef(n),u=v.useRef(),h=v.useCallback((m,p)=>{if(!m)return;const{width:g,height:_}=m,k=new Path2D,T=g/rm,b=_*.05;for(let E=0;E({frame:m=>{(c.current===void 0||ml.current)&&(l.current=m),Nk(a.current,m),u.current=requestAnimationFrame(()=>h(d.current,f.current))}}),[d,f,h]),v.useEffect(()=>()=>cancelAnimationFrame(u.current),[]),N.createElement(Mk,{ref:d})}),pf=n=>Number.isFinite(n)?n.toPrecision(2):n.toString(),$k=v.forwardRef(function({initialValue:n},e){const[t,s]=v.useState(pf(n));return v.useImperativeHandle(e,()=>({frame:r=>s(pf(r))}),[]),N.createElement("div",null,t)});function mf(n){return typeof n=="function"?n():n.current}function Fk({label:n,objectOrFn:e,settings:t}){const s=v.useRef(),r=v.useRef(mf(e));return v.useEffect(()=>{const i=window.setInterval(()=>{var o;document.hidden||(o=s.current)===null||o===void 0||o.frame(mf(e))},t.interval);return()=>window.clearInterval(i)},[e,t.interval]),N.createElement(sn,{input:!0},N.createElement(mn,{align:"top"},n),t.graph?N.createElement(Ik,{ref:s,initialValue:r.current}):N.createElement($k,{ref:s,initialValue:r.current}))}const Lk=["type","label","key"],jk={[un.BUTTON]:Ok,[un.BUTTON_GROUP]:Pk,[un.MONITOR]:Fk},zk=N.memo(({path:n})=>{const[e,{set:t,setSettings:s,disable:r,storeId:i,emitOnEditStart:o,emitOnEditEnd:a}]=Fb(n);if(!e)return null;const{type:c,label:l,key:u}=e,h=De(e,Lk);if(c in un){const d=jk[c];return N.createElement(d,Je({label:l,path:n},h))}return c in Js?N.createElement(Ck,Je({key:i+n,type:c,label:l,storeId:i,path:n,valueKey:u,setValue:t,setSettings:s,disable:r,emitOnEditStart:o,emitOnEditEnd:a},h)):(Wv(He.UNSUPPORTED_INPUT,c,n),null)});function Vk({toggle:n,toggled:e,name:t}){return N.createElement(Tb,{onClick:()=>n()},N.createElement(Pu,{toggled:e}),N.createElement("div",null,t))}const Uk=({name:n,path:e,tree:t})=>{const s=vo(),r=zu(e,n),{collapsed:i,color:o}=s.getFolderSettings(r),[a,c]=v.useState(!i),l=v.useRef(null),u=Wn("colors","folderWidgetColor"),h=Wn("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]),N.createElement(wa,{ref:l},N.createElement(Vk,{name:n,toggled:a,toggle:()=>c(d=>!d)}),N.createElement(im,{parent:r,tree:t,toggled:a}))},im=N.memo(({isRoot:n=!1,fill:e=!1,flat:t=!1,parent:s,tree:r,toggled:i})=>{const{wrapperRef:o,contentRef:a}=ST(i),c=vo(),l=([h,d])=>{var f;return(ff(d)?(f=c.getInput(d.path))===null||f===void 0?void 0:f.order:c.getFolderSettings(zu(s,h)).order)||0},u=Object.entries(r).sort((h,d)=>l(h)-l(d));return N.createElement(Cl,{ref:o,isRoot:n,fill:e,flat:t},N.createElement(y0,{ref:a,isRoot:n,toggled:i},u.map(([h,d])=>ff(d)?N.createElement(zk,{key:d.path,valueKey:d.valueKey,path:d.path}):N.createElement(Uk,{key:h,name:h,path:s,tree:d}))))}),Bk=ce("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:{[`${b0}`]:{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"}}),om=40,Sa=ce("i",{$flexCenter:"",width:om,userSelect:"none",cursor:"pointer","> svg":{fill:"$highlight1",transition:"transform 350ms ease, fill 250ms ease"},"&:hover > svg":{fill:"$highlight3"},variants:{active:{true:{"> svg":{fill:"$highlight2"}}}}}),Wk=ce("div",{display:"flex",alignItems:"stretch",justifyContent:"space-between",height:"$titleBarHeight",variants:{mode:{drag:{cursor:"grab"}}}}),qk=ce("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}}}}),Hk=ce("input",{$reset:"",flex:1,position:"relative",height:30,width:"100%",backgroundColor:"transparent",fontSize:"10px",borderRadius:"$root","&:focus":{},"&::placeholder":{color:"$highlight2"}}),Yk=ce("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:om}}}}),Gk=N.forwardRef(({setFilter:n,toggle:e},t)=>{const[s,r]=v.useState(""),i=v.useMemo(()=>o0(n,250),[n]),o=()=>{n(""),r("")},a=c=>{const l=c.currentTarget.value;e(!0),r(l)};return v.useEffect(()=>{i(s)},[s,i]),N.createElement(N.Fragment,null,N.createElement(Hk,{ref:t,value:s,placeholder:"[Open filter with CMD+SHIFT+L]",onPointerDown:c=>c.stopPropagation(),onChange:a}),N.createElement(Sa,{onClick:()=>o(),style:{visibility:s?"visible":"hidden"}},N.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"14",width:"14",viewBox:"0 0 20 20",fill:"currentColor"},N.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 Xk({setFilter:n,onDrag:e,onDragStart:t,onDragEnd:s,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=bo(({offset:[m,p],first:g,last:_})=>{e({x:m,y:p}),g&&t({x:m,y:p}),_&&s({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)},[]),N.createElement(N.Fragment,null,N.createElement(Wk,{mode:a?"drag":void 0},N.createElement(Sa,{active:!i,onClick:()=>r()},N.createElement(Pu,{toggled:i,width:12,height:8})),N.createElement(Yk,Je({},a?f():{},{drag:a,filterEnabled:c}),o===void 0&&a?N.createElement("svg",{width:"20",height:"10",viewBox:"0 0 28 14",xmlns:"http://www.w3.org/2000/svg"},N.createElement("circle",{cx:"2",cy:"2",r:"2"}),N.createElement("circle",{cx:"14",cy:"2",r:"2"}),N.createElement("circle",{cx:"26",cy:"2",r:"2"}),N.createElement("circle",{cx:"2",cy:"12",r:"2"}),N.createElement("circle",{cx:"14",cy:"12",r:"2"}),N.createElement("circle",{cx:"26",cy:"12",r:"2"})):o),c&&N.createElement(Sa,{active:u,onClick:()=>h(m=>!m)},N.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"20",viewBox:"0 0 20 20"},N.createElement("path",{d:"M9 9a2 2 0 114 0 2 2 0 01-4 0z"}),N.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"})))),N.createElement(qk,{toggled:u},N.createElement(Gk,{ref:d,setFilter:n,toggle:r})))}const Zk=["store","hidden","theme","collapsed"];function Kk(n){let{store:e,hidden:t=!1,theme:s,collapsed:r=!1}=n,i=De(n,Zk);const o=K0(()=>_b(s),[s]),[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:N.createElement(Au.Provider,{value:o},N.createElement(Qk,Je({store:e},i,{toggled:l,setToggle:u,rootClass:o.className})))}const Qk=N.memo(({store:n,rootClass:e,fill:t=!1,flat:s=!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=OT(n),[f,m]=v.useState(""),p=v.useMemo(()=>kk(d,f),[d,f]),[g,_]=T0(),k=r||d.length>0,T=typeof o=="object"&&o.title||void 0,b=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,x=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 N.useEffect(()=>{_({x:x==null?void 0:x.x,y:x==null?void 0:x.y})},[x,_]),gb(),N.createElement(p0.Provider,{value:{hideCopyButton:a}},N.createElement(Bk,{ref:g,className:e,fill:t,flat:s,oneLineLabels:i,hideTitleBar:!o,style:{display:k?"block":"none"}},o&&N.createElement(Xk,{onDrag:A=>{_(A),E==null||E(A)},onDragStart:A=>w==null?void 0:w(A),onDragEnd:A=>C==null?void 0:C(A),setFilter:m,toggle:A=>l(D=>A??!D),toggled:c,title:T,drag:b,filterEnabled:y,from:x}),k&&N.createElement(f0.Provider,{value:n},N.createElement(im,{isRoot:!0,fill:t,flat:s,tree:p,toggled:c}))))}),Jk=["isRoot"];let Oa=!1,zs=null;function am(n){let{isRoot:e=!1}=n,t=De(n,Jk);return v.useEffect(()=>(Oa=!0,!e&&zs&&(zs.remove(),zs=null),()=>{e||(Oa=!1)}),[e]),N.createElement(Kk,Je({store:sm},t))}function eE(n){v.useEffect(()=>{n&&!Oa&&(zs||(zs=document.getElementById("leva__root")||Object.assign(document.createElement("div"),{id:"leva__root"}),document.body&&(document.body.appendChild(zs),cb(N.createElement(am,{isRoot:!0}),zs))),Oa=!0)},[n])}function tE(n,e,t,s,r){let i,o,a,c,l;return typeof n=="string"?(o=n,i=e,Array.isArray(t)?l=t:t&&("store"in t?(c=t,l=s):(a=t,Array.isArray(s)?l=s:(c=s,l=r)))):(i=n,Array.isArray(e)?l=e:(c=e,l=t)),{schema:i,folderName:o,folderSettings:a,hookSettings:c,deps:l||[]}}function cm(n,e,t,s,r){const{folderName:i,schema:o,folderSettings:a,hookSettings:c,deps:l}=tE(n,e,t,s,r),u=typeof o=="function",h=v.useRef(!1),d=v.useRef(!0),f=K0(()=>{h.current=!0;const D=typeof o=="function"?o():o;return i?{[i]:Tk(D,a)}:D},l),m=!(c!=null&&c.store);eE(m);const[p]=v.useState(()=>(c==null?void 0:c.store)||sm),[g,_]=v.useMemo(()=>p.getDataFromSchema(f),[p,f]),[k,T,b,y,x]=v.useMemo(()=>{const D=[],O=[],L={},j={},W={};return Object.values(_).forEach(({path:V,onChange:U,onEditStart:B,onEditEnd:X,transient:K})=>{D.push(V),U?(L[V]=U,K||O.push(V)):O.push(V),B&&(j[V]=B),X&&(W[V]=X)}),[D,O,L,j,W]},[_]),E=v.useMemo(()=>p.orderPaths(k),[k,p]),w=AT(p,T,g),C=v.useCallback(D=>{const O=Object.entries(D).reduce((L,[j,W])=>Object.assign(L,{[_[j].path]:W}),{});p.set(O,!1)},[p,_]),A=v.useCallback(D=>p.get(_[D].path),[p,_]);return v.useEffect(()=>{const D=!d.current&&h.current;return p.addData(g,D),d.current=!1,h.current=!1,()=>p.disposePaths(E)},[p,E,g]),v.useEffect(()=>{const D=[];return Object.entries(b).forEach(([O,L])=>{L(p.get(O),O,de({initial:!0,get:p.get},p.getInput(O)));const j=p.useStore.subscribe(W=>{const V=W.data[O];return[V.disabled?void 0:V.value,V]},([W,V])=>L(W,O,de({initial:!1,get:p.get},V)),{equalityFn:yo});D.push(j)}),()=>D.forEach(O=>O())},[p,b]),v.useEffect(()=>{const D=[];return Object.entries(y).forEach(([O,L])=>D.push(p.subscribeToEditStart(O,L))),Object.entries(x).forEach(([O,L])=>D.push(p.subscribeToEditEnd(O,L))),()=>D.forEach(O=>O())},[y,x,p]),u?[w,C,A]:w}ns(dn.SELECT,ex);ns(dn.IMAGE,ck);ns(dn.NUMBER,Wb);ns(dn.COLOR,zT);ns(dn.STRING,lx);ns(dn.BOOLEAN,gx);ns(dn.INTERVAL,_k);ns(dn.VECTOR3D,UT);ns(dn.VECTOR2D,ZT);const nE={isUserDragging:!1,isUserScrolling:!1,userMovedCamera:!1,isUserScrollingOnHtmlPanel:!1},Ws=hp(n=>({...nE,setIsUserDragging:e=>n({isUserDragging:e}),setIsUserScrolling:e=>n({isUserScrolling:e}),setUserMovedCamera:e=>n({userMovedCamera:e}),setIsUserScrollingOnHtmlPanel:e=>n({isUserScrollingOnHtmlPanel:e})})),sE=()=>{const[n,e]=v.useState(""),t=v.useRef(null),{setAbortRequests:s,seedQuestions:r,resetData:i}=Wt(y=>y),[o]=fp(y=>[y.setBudget]),{setUniverseQuestionIsOpen:a,setSidebarOpen:c,setShowCollapseButton:l}=rc(y=>({setUniverseQuestionIsOpen:y.setUniverseQuestionIsOpen,setSidebarOpen:y.setSidebarOpen,setShowCollapseButton:y.setShowCollapseButton})),u=Ih(y=>y.resetAiSummaryAnswer),h=Ih(y=>y.fetchAIData),[d,f]=v.useState([]);v.useEffect(()=>{r&&f(T(r).slice(0,4))},[r]),v.useEffect(()=>{t.current&&t.current.focus()},[]);const m=async y=>{y&&(u(),a(),i(),c(!0),l(!0),await h(o,s,y))},p=!!n.trim().length,g=async y=>{y.keyCode===13&&y.shiftKey===!1&&p&&(y.preventDefault(),m(n))},_=async y=>{e(y),await m(y)},k=()=>{a(),c(!0),l(!0)},T=y=>{const x=[...y];let E=x.length-1;for(;E>0;){const w=Math.floor(Math.random()*(E+1));[x[E],x[w]]=[x[w],x[E]],E-=1}return x},b=!!n&&n.trim().length>0;return M.jsxs(oE,{children:["Ideas have shapes",M.jsxs(iE,{onKeyDown:g,py:12,tabIndex:-1,children:[M.jsx(rE,{ref:t,onChange:y=>e(y.target.value),placeholder:"What do you want to know?",value:n}),M.jsx(aE,{color:"secondary",disabled:!b,onClick:()=>m(n),variant:"contained",children:b?M.jsxs(M.Fragment,{children:["Search ",M.jsx(zh,{})]}):M.jsx(zh,{})})]}),d.length>0&&M.jsx(lE,{children:d.map(y=>M.jsxs(uE,{onClick:()=>_(y),children:[M.jsx(K_,{}),y]},y))}),M.jsx(cE,{"data-testid":"explore-graph-btn",onClick:k,startIcon:M.jsx(Q_,{}),children:"Explore Graph"})]})},rE=ve(ny).attrs({maxRows:3})` + */var gT=cT,_T=dT,af=G0,cf=mT,yT=function(n,e,t){if(!cf(n)||(Array.isArray(e)&&(e=[].concat.apply([],e).join(".")),typeof e!="string"))return n;for(var s=gT(e,{sep:".",brackets:!0}).filter(vT),r=s.length,i=-1,o=n;++in.filter(Boolean).join(".");function TT(n){const e=n.split(".");return[e.pop(),e.join(".")||void 0]}function kT(n,e){return Object.entries(Qv(n,e)).reduce((t,[,{value:s,disabled:r,key:i}])=>(t[i]=r?void 0:s,t),{})}function ET(n,e){const t=v.useRef();return(e?zi:yo)(n,t.current)||(t.current=n),t.current}function Z0(n,e){return v.useMemo(n,ET(e,!0))}function CT(n){const e=v.useRef(null),t=v.useRef(null),s=v.useRef(!0);return v.useLayoutEffect(()=>{n||(e.current.style.height="0px",e.current.style.overflow="hidden")},[]),v.useEffect(()=>{if(s.current){s.current=!1;return}let r;const i=e.current,o=()=>{n&&(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",n||(i.style.overflow="hidden",r=window.setTimeout(()=>i.style.height="0px",50)),()=>{i.removeEventListener("transitionend",o),clearTimeout(r)}},[n]),{wrapperRef:e,contentRef:t}}const ST=n=>{const[e,t]=v.useState(n.getVisiblePaths());return v.useEffect(()=>{t(n.getVisiblePaths());const s=n.useStore.subscribe(n.getVisiblePaths,t,{equalityFn:yo});return()=>s()},[n]),e};function OT(n,e,t){return n.useStore(r=>{const i=de(de({},t),r.data);return kT(i,e)},yo)}function K0(n=3){const e=v.useRef(null),t=v.useRef(null),[s,r]=v.useState(!1),i=v.useCallback(()=>r(!0),[]),o=v.useCallback(()=>r(!1),[]);return v.useLayoutEffect(()=>{if(s){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+n+"px":t.current.style.bottom=window.innerHeight-c+n+"px"}},[n,s]),{popinRef:e,wrapperRef:t,shown:s,show:i,hide:o}}Ix([$x]);const AT={rgb:"toRgb",hsl:"toHsl",hsv:"toHsv",hex:"toHex"};Ot.extend({color:()=>n=>bt(n).isValid()});const RT=n=>Ot().color().test(n);function Q0(n,{format:e,hasAlpha:t,isString:s}){const r=AT[e]+(s&&e!=="hex"?"String":""),i=n[r]();return typeof i=="object"&&!t?Jv(i,["a"]):i}const J0=(n,e)=>{const t=bt(n);if(!t.isValid())throw Error("Invalid color");return Q0(t,e)},DT=(n,e)=>Q0(bt(n),de(de({},e),{},{isString:!0,format:"hex"})),PT=({value:n})=>{const e=Nx(n),t=e==="name"?"hex":e,s=typeof n=="object"?"a"in n:e==="hex"&&n.length===8||/^(rgba)|(hsla)|(hsva)/.test(n),r={format:t,hasAlpha:s,isString:typeof n=="string"};return{value:J0(n,r),settings:r}};var MT=Object.freeze({__proto__:null,schema:RT,sanitize:J0,format:DT,normalize:PT});const NT=ce("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}}),IT=ce("div",{position:"relative",display:"grid",gridTemplateColumns:"$sizes$rowHeight auto",columnGap:"$colGap",alignItems:"center"}),$T=ce("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 hf(n,e){return e!=="rgb"?bt(n).toRgb():n}function FT({value:n,displayValue:e,settings:t,onUpdate:s}){const{emitOnEditStart:r,emitOnEditEnd:i}=yt(),{format:o,hasAlpha:a}=t,{popinRef:c,wrapperRef:l,shown:u,show:h,hide:d}=K0(),f=v.useRef(0),[m,p]=v.useState(()=>hf(n,o)),g=a?Bx:qx,_=()=>{p(hf(n,o)),h(),r()},k=()=>{d(),i(),window.clearTimeout(f.current)},T=()=>{f.current=window.setTimeout(k,500)};return v.useEffect(()=>()=>window.clearTimeout(f.current),[]),N.createElement(N.Fragment,null,N.createElement(NT,{ref:c,active:u,onClick:()=>_(),style:{color:e}}),u&&N.createElement(Du,null,N.createElement(b0,{onPointerUp:k}),N.createElement($T,{ref:l,onMouseEnter:()=>window.clearTimeout(f.current),onMouseLeave:b=>b.buttons===0&&T()},N.createElement(g,{color:m,onChange:s}))))}function LT(){const{value:n,displayValue:e,label:t,onChange:s,onUpdate:r,settings:i}=yt();return N.createElement(sn,{input:!0},N.createElement(mn,null,t),N.createElement(IT,null,N.createElement(FT,{value:n,displayValue:e,onChange:s,onUpdate:r,settings:i}),N.createElement(Ru,{value:e,onChange:s,onUpdate:r})))}var jT=de({component:LT},MT);function zT(){const{label:n,displayValue:e,onUpdate:t,settings:s}=yt();return N.createElement(sn,{input:!0},N.createElement(mn,null,n),N.createElement(Mu,{value:e,settings:s,onUpdate:t}))}var VT=de({component:zT},O0(["x","y","z"]));const UT=ce("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}}),BT=ce("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 WT({value:n,settings:e,onUpdate:t}){const s=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]=w0(),f=v.useRef(null),m=v.useRef(null);v.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,k=_==="invertY"?1:-1,{[p]:{step:T},[g]:{step:b}}=e,y=Wn("sizes","joystickWidth"),x=Wn("sizes","joystickHeight"),E=parseFloat(y)*.8/2,w=parseFloat(x)*.8/2,C=v.useCallback(()=>{s.current||(u(!0),r.current&&d({x:r.current*E}),i.current&&d({y:i.current*-w}),s.current=window.setInterval(()=>{t(O=>{const L=T*r.current*o.current,j=k*b*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,w,t,d,T,b,p,g,k]),A=v.useCallback(()=>{window.clearTimeout(s.current),s.current=void 0,u(!1)},[]);v.useEffect(()=>{function O(L){o.current=o0(L)}return window.addEventListener("keydown",O),window.addEventListener("keyup",O),()=>{window.clearTimeout(s.current),window.removeEventListener("keydown",O),window.removeEventListener("keyup",O)}},[]);const D=bo(({first:O,active:L,delta:[j,W],movement:[V,U]})=>{O&&c(!0);const B=xs(V,-E,E),X=xs(U,-w,w);r.current=Math.abs(V)>Math.abs(B)?Math.sign(V-B):0,i.current=Math.abs(U)>Math.abs(X)?Math.sign(X-U):0;let K=n[p],J=n[g];L?(r.current||(K+=j*T*o.current,d({x:B})),i.current||(J-=k*W*b*o.current,d({y:X})),r.current||i.current?C():A(),t({[p]:K,[g]:J})):(c(!1),r.current=0,i.current=0,d({x:0,y:0}),A())});return N.createElement(UT,Je({ref:f},D()),a&&N.createElement(Du,null,N.createElement(BT,{ref:m,isOutOfBounds:l},N.createElement("div",null),N.createElement("span",{ref:h}))))}const qT=ce("div",{display:"grid",columnGap:"$colGap",variants:{withJoystick:{true:{gridTemplateColumns:"$sizes$rowHeight auto"},false:{gridTemplateColumns:"auto"}}}});function HT(){const{label:n,displayValue:e,onUpdate:t,settings:s}=yt();return N.createElement(sn,{input:!0},N.createElement(mn,null,n),N.createElement(qT,{withJoystick:!!s.joystick},s.joystick&&N.createElement(WT,{value:e,settings:s,onUpdate:t}),N.createElement(Mu,{value:e,settings:s,onUpdate:t})))}const YT=["joystick"],em=O0(["x","y"]),GT=n=>{let{joystick:e=!0}=n,t=De(n,YT);const{value:s,settings:r}=em.normalize(t);return{value:s,settings:de(de({},r),{},{joystick:e})}};var XT=de(de({component:HT},em),{},{normalize:GT});const ZT=n=>{if(n!==void 0){if(n instanceof File)try{return URL.createObjectURL(n)}catch{return}if(typeof n=="string"&&n.indexOf("blob:")===0)return n;throw Error("Invalid image format [undefined | blob | File].")}},KT=(n,e)=>typeof e=="object"&&"image"in e,QT=({image:n})=>({value:n});var JT=Object.freeze({__proto__:null,sanitize:ZT,schema:KT,normalize:QT});const ek=ce("div",{position:"relative",display:"grid",gridTemplateColumns:"$sizes$rowHeight auto 20px",columnGap:"$colGap",alignItems:"center"}),tk=ce("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"}}}}),nk=ce("div",{boxSizing:"border-box",borderRadius:"$sm",height:"$rowHeight",width:"$rowHeight",$inputStyle:"",backgroundSize:"cover",backgroundPosition:"center",variants:{hasImage:{true:{cursor:"pointer",$hover:"",$active:""}}}}),sk=ce("div",{$flexCenter:"",width:"$imagePreviewWidth",height:"$imagePreviewHeight",borderRadius:"$sm",boxShadow:"$level2",pointerEvents:"none",$inputStyle:"",backgroundSize:"cover",backgroundPosition:"center"}),rk=ce("div",{fontSize:"0.8em",height:"100%",padding:"$rowGap $md"}),ik=ce("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 ok(){const{label:n,value:e,onUpdate:t,disabled:s}=yt(),{popinRef:r,wrapperRef:i,shown:o,show:a,hide:c}=K0(),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}=Y0({maxFiles:1,accept:"image/*",onDrop:l,disabled:s});return N.createElement(sn,{input:!0},N.createElement(mn,null,n),N.createElement(ek,null,N.createElement(nk,{ref:r,hasImage:!!e,onPointerDown:()=>!!e&&a(),onPointerUp:c,style:{backgroundImage:e?`url(${e})`:"none"}}),o&&!!e&&N.createElement(Du,null,N.createElement(b0,{onPointerUp:c,style:{cursor:"pointer"}}),N.createElement(sk,{ref:i,style:{backgroundImage:`url(${e})`}})),N.createElement(tk,h({isDragAccept:f}),N.createElement("input",d()),N.createElement(rk,null,f?"drop image":"click or drop")),N.createElement(ik,{onClick:u,disabled:!e})))}var ak=de({component:ok},JT);const df=Ot().number(),ck=(n,e)=>Ot().array().length(2).every.number().test(n)&&Ot().schema({min:df,max:df}).test(e),Ca=n=>({min:n[0],max:n[1]}),tm=(n,{bounds:[e,t]},s)=>{const r=Array.isArray(n)?Ca(n):n,i={min:s[0],max:s[1]},{min:o,max:a}=de(de({},i),r);return[xs(Number(o),e,Math.max(e,a)),xs(Number(a),Math.min(t,o),t)]},lk=({value:n,min:e,max:t})=>{const s={min:e,max:t},r=S0(Ca(n),{min:s,max:s}),i=[e,t],o=de(de({},r),{},{bounds:i});return{value:tm(Ca(n),o,n),settings:o}};var uk=Object.freeze({__proto__:null,schema:ck,format:Ca,sanitize:tm,normalize:lk});const hk=["value","bounds","onDrag"],dk=["bounds"],fk=ce("div",{display:"grid",columnGap:"$colGap",gridTemplateColumns:"auto calc($sizes$numberInputMinWidth * 2 + $space$rowGap)"});function pk(n){let{value:e,bounds:[t,s],onDrag:r}=n,i=De(n,hk);const o=v.useRef(null),a=v.useRef(null),c=v.useRef(null),l=v.useRef(0),u=Wn("sizes","scrubberWidth"),h=bo(({event:m,first:p,xy:[g],movement:[_],memo:k={}})=>{if(p){const{width:b,left:y}=o.current.getBoundingClientRect();l.current=b-parseFloat(u);const x=(m==null?void 0:m.target)===a.current||(m==null?void 0:m.target)===c.current;k.pos=xa((g-y)/b,t,s);const E=Math.abs(k.pos-e.min)-Math.abs(k.pos-e.max);k.key=E<0||E===0&&k.pos<=e.min?"min":"max",x&&(k.pos=e[k.key])}const T=k.pos+xa(_/l.current,0,s-t);return r({[k.key]:Vb(T,i[k.key])}),k}),d=`calc(${ba(e.min,t,s)} * (100% - ${u} - 8px) + 4px)`,f=`calc(${1-ba(e.max,t,s)} * (100% - ${u} - 8px) + 4px)`;return N.createElement(k0,Je({ref:o},h()),N.createElement(T0,null,N.createElement(E0,{style:{left:d,right:f}})),N.createElement(Ol,{position:"left",ref:a,style:{left:d}}),N.createElement(Ol,{position:"right",ref:c,style:{right:f}}))}function mk(){const{label:n,displayValue:e,onUpdate:t,settings:s}=yt(),r=De(s,dk);return N.createElement(N.Fragment,null,N.createElement(sn,{input:!0},N.createElement(mn,null,n),N.createElement(fk,null,N.createElement(pk,Je({value:e},s,{onDrag:t})),N.createElement(Mu,{value:e,settings:r,onUpdate:t,innerLabelTrim:0}))))}var gk=de({component:mk},uk);const _k=()=>{const n=new Map;return{on:(e,t)=>{let s=n.get(e);s===void 0&&(s=new Set,n.set(e,s)),s.add(t)},off:(e,t)=>{const s=n.get(e);s!==void 0&&(s.delete(t),s.size===0&&n.delete(e))},emit:(e,...t)=>{const s=n.get(e);if(s!==void 0)for(const r of s)r(...t)}}},yk=["type","value"],vk=["onChange","transient","onEditStart","onEditEnd"],bk=function(){const e=zw(Vw(()=>({data:{}}))),t=_k();this.storeId=Kv(),this.useStore=e;const s={},r=new Set;this.getVisiblePaths=()=>{const o=this.getData(),a=Object.keys(o),c=[];Object.entries(s).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 un&&delete c[l]}}),{data:c}})},this.dispose=()=>{e.setState(()=>({data:{}}))},this.getFolderSettings=o=>s[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=De(h,yk);f!==d.type?Bn(He.INPUT_TYPE_OVERRIDE,f):((d.__refCount===0||a)&&Object.assign(d,p),d.__refCount++)}else l[u]=de(de({},h),{},{__refCount:1})}),{data:l}})},this.setValueAtPath=(o,a,c)=>{e.setState(l=>{const u=l.data;return Nd(u[o],a,o,this,c),{data:u}})},this.setSettingsAtPath=(o,a)=>{e.setState(c=>{const l=c.data;return l[o].settings=de(de({},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{Nd(l[u],h,void 0,void 0,a)}catch{}}),{data:l}})},this.getInput=o=>{try{return this.getData()[o]}catch{Bn(He.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,de(de({},this.getInput(o)),{},{get:this.get}))},this.emitOnEditEnd=o=>{t.emit(`onEditEnd:${o}`,this.get(o),o,de(de({},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 Bn(He.EMPTY_KEY);let d=zu(a,u);if(h.type===un.FOLDER){const f=i(h.schema,d,c);Object.assign(l,f),d in s||(s[d]=h.settings)}else if(u in c)Bn(He.DUPLICATE_KEYS,u,d,c[u].path);else{const f=ib(h,u,d,l);if(f){const{type:m,options:p,input:g}=f,{onChange:_,transient:k,onEditStart:T,onEditEnd:b}=p,y=De(p,vk);l[d]=de(de(de({type:m},y),g),{},{fromPanel:!0}),c[u]={path:d,onChange:_,transient:k,onEditStart:T,onEditEnd:b}}else Bn(He.UNKNOWN_INPUT,d,h)}}),l};this.getDataFromSchema=o=>{const a={};return[i(o,"",a),a]}},nm=new bk,xk={collapsed:!1};function wk(n,e){return{type:un.FOLDER,schema:n,settings:de(de({},xk),e)}}const ff=n=>"__levaInput"in n,Tk=(n,e)=>{const t={},s=e?e.toLowerCase():null;return n.forEach(r=>{const[i,o]=TT(r);(!s||i.toLowerCase().indexOf(s)>-1)&&wT(t,o,{[i]:{__levaInput:!0,path:r}})}),t},kk=["type","label","path","valueKey","value","settings","setValue","disabled"];function Ek(n){let{type:e,label:t,path:s,valueKey:r,value:i,settings:o,setValue:a,disabled:c}=n,l=De(n,kk);const{displayValue:u,onChange:h,onUpdate:d}=x0({type:e,value:i,settings:o,setValue:a}),f=Js[e].component;return f?N.createElement(h0.Provider,{value:de({key:r,path:s,id:""+s,label:t,displayValue:u,value:i,onChange:h,onUpdate:d,settings:o,setValue:a,disabled:c},l)},N.createElement(Eb,{disabled:c},N.createElement(f,null))):(Bn(He.NO_COMPONENT_FOR_TYPE,e,s),null)}const Ck=ce("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 Sk({onClick:n,settings:e,label:t}){const s=vo();return N.createElement(sn,null,N.createElement(Ck,{disabled:e.disabled,onClick:()=>n(s.get)},t))}const Ok=ce("div",{$flex:"",justifyContent:"flex-end",gap:"$colGap"}),Ak=ce("button",{$reset:"",cursor:"pointer",borderRadius:"$xs","&:hover":{backgroundColor:"$elevation3"}}),Rk=({label:n,opts:e})=>{let t=typeof n=="string"&&n.trim()===""?null:n,s=e;return typeof e.opts=="object"&&(s.label!==void 0&&(t=e.label),s=e.opts),{label:t,opts:s}};function Dk(n){const{label:e,opts:t}=Rk(n),s=vo();return N.createElement(sn,{input:!!e},e&&N.createElement(mn,null,e),N.createElement(Ok,null,Object.entries(t).map(([r,i])=>N.createElement(Ak,{key:r,onClick:()=>i(s.get)},r))))}const Pk=ce("canvas",{height:"$monitorHeight",width:"100%",display:"block",borderRadius:"$sm"}),sm=100;function Mk(n,e){n.push(e),n.length>sm&&n.shift()}const Nk=v.forwardRef(function({initialValue:n},e){const t=Wn("colors","highlight3"),s=Wn("colors","elevation2"),r=Wn("colors","highlight1"),[i,o]=v.useMemo(()=>[bt(r).alpha(.4).toRgbString(),bt(r).alpha(.1).toRgbString()],[r]),a=v.useRef([n]),c=v.useRef(n),l=v.useRef(n),u=v.useRef(),h=v.useCallback((m,p)=>{if(!m)return;const{width:g,height:_}=m,k=new Path2D,T=g/sm,b=_*.05;for(let E=0;E({frame:m=>{(c.current===void 0||ml.current)&&(l.current=m),Mk(a.current,m),u.current=requestAnimationFrame(()=>h(d.current,f.current))}}),[d,f,h]),v.useEffect(()=>()=>cancelAnimationFrame(u.current),[]),N.createElement(Pk,{ref:d})}),pf=n=>Number.isFinite(n)?n.toPrecision(2):n.toString(),Ik=v.forwardRef(function({initialValue:n},e){const[t,s]=v.useState(pf(n));return v.useImperativeHandle(e,()=>({frame:r=>s(pf(r))}),[]),N.createElement("div",null,t)});function mf(n){return typeof n=="function"?n():n.current}function $k({label:n,objectOrFn:e,settings:t}){const s=v.useRef(),r=v.useRef(mf(e));return v.useEffect(()=>{const i=window.setInterval(()=>{var o;document.hidden||(o=s.current)===null||o===void 0||o.frame(mf(e))},t.interval);return()=>window.clearInterval(i)},[e,t.interval]),N.createElement(sn,{input:!0},N.createElement(mn,{align:"top"},n),t.graph?N.createElement(Nk,{ref:s,initialValue:r.current}):N.createElement(Ik,{ref:s,initialValue:r.current}))}const Fk=["type","label","key"],Lk={[un.BUTTON]:Sk,[un.BUTTON_GROUP]:Dk,[un.MONITOR]:$k},jk=N.memo(({path:n})=>{const[e,{set:t,setSettings:s,disable:r,storeId:i,emitOnEditStart:o,emitOnEditEnd:a}]=$b(n);if(!e)return null;const{type:c,label:l,key:u}=e,h=De(e,Fk);if(c in un){const d=Lk[c];return N.createElement(d,Je({label:l,path:n},h))}return c in Js?N.createElement(Ek,Je({key:i+n,type:c,label:l,storeId:i,path:n,valueKey:u,setValue:t,setSettings:s,disable:r,emitOnEditStart:o,emitOnEditEnd:a},h)):(Bv(He.UNSUPPORTED_INPUT,c,n),null)});function zk({toggle:n,toggled:e,name:t}){return N.createElement(wb,{onClick:()=>n()},N.createElement(Pu,{toggled:e}),N.createElement("div",null,t))}const Vk=({name:n,path:e,tree:t})=>{const s=vo(),r=zu(e,n),{collapsed:i,color:o}=s.getFolderSettings(r),[a,c]=v.useState(!i),l=v.useRef(null),u=Wn("colors","folderWidgetColor"),h=Wn("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]),N.createElement(wa,{ref:l},N.createElement(zk,{name:n,toggled:a,toggle:()=>c(d=>!d)}),N.createElement(rm,{parent:r,tree:t,toggled:a}))},rm=N.memo(({isRoot:n=!1,fill:e=!1,flat:t=!1,parent:s,tree:r,toggled:i})=>{const{wrapperRef:o,contentRef:a}=CT(i),c=vo(),l=([h,d])=>{var f;return(ff(d)?(f=c.getInput(d.path))===null||f===void 0?void 0:f.order:c.getFolderSettings(zu(s,h)).order)||0},u=Object.entries(r).sort((h,d)=>l(h)-l(d));return N.createElement(Cl,{ref:o,isRoot:n,fill:e,flat:t},N.createElement(_0,{ref:a,isRoot:n,toggled:i},u.map(([h,d])=>ff(d)?N.createElement(jk,{key:d.path,valueKey:d.valueKey,path:d.path}):N.createElement(Vk,{key:h,name:h,path:s,tree:d}))))}),Uk=ce("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:{[`${v0}`]:{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"}}),im=40,Sa=ce("i",{$flexCenter:"",width:im,userSelect:"none",cursor:"pointer","> svg":{fill:"$highlight1",transition:"transform 350ms ease, fill 250ms ease"},"&:hover > svg":{fill:"$highlight3"},variants:{active:{true:{"> svg":{fill:"$highlight2"}}}}}),Bk=ce("div",{display:"flex",alignItems:"stretch",justifyContent:"space-between",height:"$titleBarHeight",variants:{mode:{drag:{cursor:"grab"}}}}),Wk=ce("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}}}}),qk=ce("input",{$reset:"",flex:1,position:"relative",height:30,width:"100%",backgroundColor:"transparent",fontSize:"10px",borderRadius:"$root","&:focus":{},"&::placeholder":{color:"$highlight2"}}),Hk=ce("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:im}}}}),Yk=N.forwardRef(({setFilter:n,toggle:e},t)=>{const[s,r]=v.useState(""),i=v.useMemo(()=>i0(n,250),[n]),o=()=>{n(""),r("")},a=c=>{const l=c.currentTarget.value;e(!0),r(l)};return v.useEffect(()=>{i(s)},[s,i]),N.createElement(N.Fragment,null,N.createElement(qk,{ref:t,value:s,placeholder:"[Open filter with CMD+SHIFT+L]",onPointerDown:c=>c.stopPropagation(),onChange:a}),N.createElement(Sa,{onClick:()=>o(),style:{visibility:s?"visible":"hidden"}},N.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"14",width:"14",viewBox:"0 0 20 20",fill:"currentColor"},N.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 Gk({setFilter:n,onDrag:e,onDragStart:t,onDragEnd:s,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=bo(({offset:[m,p],first:g,last:_})=>{e({x:m,y:p}),g&&t({x:m,y:p}),_&&s({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)},[]),N.createElement(N.Fragment,null,N.createElement(Bk,{mode:a?"drag":void 0},N.createElement(Sa,{active:!i,onClick:()=>r()},N.createElement(Pu,{toggled:i,width:12,height:8})),N.createElement(Hk,Je({},a?f():{},{drag:a,filterEnabled:c}),o===void 0&&a?N.createElement("svg",{width:"20",height:"10",viewBox:"0 0 28 14",xmlns:"http://www.w3.org/2000/svg"},N.createElement("circle",{cx:"2",cy:"2",r:"2"}),N.createElement("circle",{cx:"14",cy:"2",r:"2"}),N.createElement("circle",{cx:"26",cy:"2",r:"2"}),N.createElement("circle",{cx:"2",cy:"12",r:"2"}),N.createElement("circle",{cx:"14",cy:"12",r:"2"}),N.createElement("circle",{cx:"26",cy:"12",r:"2"})):o),c&&N.createElement(Sa,{active:u,onClick:()=>h(m=>!m)},N.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"20",viewBox:"0 0 20 20"},N.createElement("path",{d:"M9 9a2 2 0 114 0 2 2 0 01-4 0z"}),N.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"})))),N.createElement(Wk,{toggled:u},N.createElement(Yk,{ref:d,setFilter:n,toggle:r})))}const Xk=["store","hidden","theme","collapsed"];function Zk(n){let{store:e,hidden:t=!1,theme:s,collapsed:r=!1}=n,i=De(n,Xk);const o=Z0(()=>gb(s),[s]),[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:N.createElement(Au.Provider,{value:o},N.createElement(Kk,Je({store:e},i,{toggled:l,setToggle:u,rootClass:o.className})))}const Kk=N.memo(({store:n,rootClass:e,fill:t=!1,flat:s=!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=ST(n),[f,m]=v.useState(""),p=v.useMemo(()=>Tk(d,f),[d,f]),[g,_]=w0(),k=r||d.length>0,T=typeof o=="object"&&o.title||void 0,b=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,x=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 N.useEffect(()=>{_({x:x==null?void 0:x.x,y:x==null?void 0:x.y})},[x,_]),mb(),N.createElement(f0.Provider,{value:{hideCopyButton:a}},N.createElement(Uk,{ref:g,className:e,fill:t,flat:s,oneLineLabels:i,hideTitleBar:!o,style:{display:k?"block":"none"}},o&&N.createElement(Gk,{onDrag:A=>{_(A),E==null||E(A)},onDragStart:A=>w==null?void 0:w(A),onDragEnd:A=>C==null?void 0:C(A),setFilter:m,toggle:A=>l(D=>A??!D),toggled:c,title:T,drag:b,filterEnabled:y,from:x}),k&&N.createElement(d0.Provider,{value:n},N.createElement(rm,{isRoot:!0,fill:t,flat:s,tree:p,toggled:c}))))}),Qk=["isRoot"];let Oa=!1,zs=null;function om(n){let{isRoot:e=!1}=n,t=De(n,Qk);return v.useEffect(()=>(Oa=!0,!e&&zs&&(zs.remove(),zs=null),()=>{e||(Oa=!1)}),[e]),N.createElement(Zk,Je({store:nm},t))}function Jk(n){v.useEffect(()=>{n&&!Oa&&(zs||(zs=document.getElementById("leva__root")||Object.assign(document.createElement("div"),{id:"leva__root"}),document.body&&(document.body.appendChild(zs),ab(N.createElement(om,{isRoot:!0}),zs))),Oa=!0)},[n])}function eE(n,e,t,s,r){let i,o,a,c,l;return typeof n=="string"?(o=n,i=e,Array.isArray(t)?l=t:t&&("store"in t?(c=t,l=s):(a=t,Array.isArray(s)?l=s:(c=s,l=r)))):(i=n,Array.isArray(e)?l=e:(c=e,l=t)),{schema:i,folderName:o,folderSettings:a,hookSettings:c,deps:l||[]}}function am(n,e,t,s,r){const{folderName:i,schema:o,folderSettings:a,hookSettings:c,deps:l}=eE(n,e,t,s,r),u=typeof o=="function",h=v.useRef(!1),d=v.useRef(!0),f=Z0(()=>{h.current=!0;const D=typeof o=="function"?o():o;return i?{[i]:wk(D,a)}:D},l),m=!(c!=null&&c.store);Jk(m);const[p]=v.useState(()=>(c==null?void 0:c.store)||nm),[g,_]=v.useMemo(()=>p.getDataFromSchema(f),[p,f]),[k,T,b,y,x]=v.useMemo(()=>{const D=[],O=[],L={},j={},W={};return Object.values(_).forEach(({path:V,onChange:U,onEditStart:B,onEditEnd:X,transient:K})=>{D.push(V),U?(L[V]=U,K||O.push(V)):O.push(V),B&&(j[V]=B),X&&(W[V]=X)}),[D,O,L,j,W]},[_]),E=v.useMemo(()=>p.orderPaths(k),[k,p]),w=OT(p,T,g),C=v.useCallback(D=>{const O=Object.entries(D).reduce((L,[j,W])=>Object.assign(L,{[_[j].path]:W}),{});p.set(O,!1)},[p,_]),A=v.useCallback(D=>p.get(_[D].path),[p,_]);return v.useEffect(()=>{const D=!d.current&&h.current;return p.addData(g,D),d.current=!1,h.current=!1,()=>p.disposePaths(E)},[p,E,g]),v.useEffect(()=>{const D=[];return Object.entries(b).forEach(([O,L])=>{L(p.get(O),O,de({initial:!0,get:p.get},p.getInput(O)));const j=p.useStore.subscribe(W=>{const V=W.data[O];return[V.disabled?void 0:V.value,V]},([W,V])=>L(W,O,de({initial:!1,get:p.get},V)),{equalityFn:yo});D.push(j)}),()=>D.forEach(O=>O())},[p,b]),v.useEffect(()=>{const D=[];return Object.entries(y).forEach(([O,L])=>D.push(p.subscribeToEditStart(O,L))),Object.entries(x).forEach(([O,L])=>D.push(p.subscribeToEditEnd(O,L))),()=>D.forEach(O=>O())},[y,x,p]),u?[w,C,A]:w}ns(dn.SELECT,Jb);ns(dn.IMAGE,ak);ns(dn.NUMBER,Bb);ns(dn.COLOR,jT);ns(dn.STRING,cx);ns(dn.BOOLEAN,mx);ns(dn.INTERVAL,gk);ns(dn.VECTOR3D,VT);ns(dn.VECTOR2D,XT);const tE={isUserDragging:!1,isUserScrolling:!1,userMovedCamera:!1,isUserScrollingOnHtmlPanel:!1},Ws=up(n=>({...tE,setIsUserDragging:e=>n({isUserDragging:e}),setIsUserScrolling:e=>n({isUserScrolling:e}),setUserMovedCamera:e=>n({userMovedCamera:e}),setIsUserScrollingOnHtmlPanel:e=>n({isUserScrollingOnHtmlPanel:e})})),nE=()=>{const[n,e]=v.useState(""),t=v.useRef(null),{setAbortRequests:s,seedQuestions:r,resetData:i}=Wt(y=>y),[o]=dp(y=>[y.setBudget]),{setUniverseQuestionIsOpen:a,setSidebarOpen:c,setShowCollapseButton:l}=rc(y=>({setUniverseQuestionIsOpen:y.setUniverseQuestionIsOpen,setSidebarOpen:y.setSidebarOpen,setShowCollapseButton:y.setShowCollapseButton})),u=Ih(y=>y.resetAiSummaryAnswer),h=Ih(y=>y.fetchAIData),[d,f]=v.useState([]);v.useEffect(()=>{r&&f(T(r).slice(0,4))},[r]),v.useEffect(()=>{t.current&&t.current.focus()},[]);const m=async y=>{y&&(u(),a(),i(),c(!0),l(!0),await h(o,s,y))},p=!!n.trim().length,g=async y=>{y.keyCode===13&&y.shiftKey===!1&&p&&(y.preventDefault(),m(n))},_=async y=>{e(y),await m(y)},k=()=>{a(),c(!0),l(!0)},T=y=>{const x=[...y];let E=x.length-1;for(;E>0;){const w=Math.floor(Math.random()*(E+1));[x[E],x[w]]=[x[w],x[E]],E-=1}return x},b=!!n&&n.trim().length>0;return M.jsxs(iE,{children:["Ideas have shapes",M.jsxs(rE,{onKeyDown:g,py:12,tabIndex:-1,children:[M.jsx(sE,{ref:t,onChange:y=>e(y.target.value),placeholder:"What do you want to know?",value:n}),M.jsx(oE,{color:"secondary",disabled:!b,onClick:()=>m(n),variant:"contained",children:b?M.jsxs(M.Fragment,{children:["Search ",M.jsx(Lh,{})]}):M.jsx(Lh,{})})]}),d.length>0&&M.jsx(cE,{children:d.map(y=>M.jsxs(lE,{onClick:()=>_(y),children:[M.jsx(H_,{}),y]},y))}),M.jsx(aE,{"data-testid":"explore-graph-btn",onClick:k,startIcon:M.jsx(Y_,{}),children:"Explore Graph"})]})},sE=ve(ey).attrs({maxRows:3})` background: ${ae.BG1}; max-width: 700px; width: 700px; @@ -91,7 +91,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho margin: 13px; overflow-y: hidden; } -`,iE=ve(Fe)` +`,rE=ve(Fe)` position: relative; margin-top: 30px; background: ${ae.BG1}; @@ -104,7 +104,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho outline: none; border-radius: 12px; box-shadow: 0px 1px 6px 0px rgba(0, 0, 0, 0.5); -`,oE=ve(Fe)` +`,iE=ve(Fe)` background: #16161de3; position: absolute; left: 0; @@ -119,7 +119,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho font-weight: 700; line-height: 16px; font-family: 'Barlow'; -`,aE=ve(dp)` +`,oE=ve(hp)` && { position: absolute; bottom: 16px; @@ -138,21 +138,21 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho width: 11px; height: 11px; } -`,cE=ve(dp)` +`,aE=ve(hp)` && { position: absolute; bottom: 20px; right: 20px; border-radius: 16px; } -`,lE=ve.div` +`,cE=ve.div` display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 20px; max-width: 702px; width: 100%; -`,uE=ve.div` +`,lE=ve.div` background: ${ae.BG1}; color: ${ae.white}; padding: 15px 12px; @@ -181,9 +181,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho path { fill: ${ae.modalWhiteOverlayBg}; } -`,hE=new ye(0,0,0),gf=1,dE=16777215,Mi=new ye(0,0,0),_f=100,fE=600,pE=2e3,ps={x:0,y:0,z:200},lm="14.8.49",yf=(n,e,t)=>({endTime:e,insertTime:t,type:"exponentialRampToValue",value:n}),vf=(n,e,t)=>({endTime:e,insertTime:t,type:"linearRampToValue",value:n}),Vl=(n,e)=>({startTime:e,type:"setValue",value:n}),um=(n,e,t)=>({duration:t,startTime:e,type:"setValueCurve",values:n}),hm=(n,e,{startTime:t,target:s,timeConstant:r})=>s+(e-s)*Math.exp((t-n)/r),kr=n=>n.type==="exponentialRampToValue",Aa=n=>n.type==="linearRampToValue",us=n=>kr(n)||Aa(n),Vu=n=>n.type==="setValue",jn=n=>n.type==="setValueCurve",Ra=(n,e,t,s)=>{const r=n[e];return r===void 0?s:us(r)||Vu(r)?r.value:jn(r)?r.values[r.values.length-1]:hm(t,Ra(n,e-1,r.startTime,s),r)},bf=(n,e,t,s,r)=>t===void 0?[s.insertTime,r]:us(t)?[t.endTime,t.value]:Vu(t)?[t.startTime,t.value]:jn(t)?[t.startTime+t.duration,t.values[t.values.length-1]]:[t.startTime,Ra(n,e-1,t.startTime,r)],Ul=n=>n.type==="cancelAndHold",Bl=n=>n.type==="cancelScheduledValues",as=n=>Ul(n)||Bl(n)?n.cancelTime:kr(n)||Aa(n)?n.endTime:n.startTime,xf=(n,e,t,{endTime:s,value:r})=>t===r?r:0t+(n-e)/(s-e)*(r-t),mE=(n,e)=>{const t=Math.floor(e),s=Math.ceil(e);return t===s?n[t]:(1-(e-t))*n[t]+(1-(s-e))*n[s]},gE=(n,{duration:e,startTime:t,values:s})=>{const r=(n-t)/e*(s.length-1);return mE(s,r)},Xo=n=>n.type==="setTarget";class _E{constructor(e){this._automationEvents=[],this._currenTime=0,this._defaultValue=e}[Symbol.iterator](){return this._automationEvents[Symbol.iterator]()}add(e){const t=as(e);if(Ul(e)||Bl(e)){const s=this._automationEvents.findIndex(i=>Bl(e)&&jn(i)?i.startTime+i.duration>=t:as(i)>=t),r=this._automationEvents[s];if(s!==-1&&(this._automationEvents=this._automationEvents.slice(0,s)),Ul(e)){const i=this._automationEvents[this._automationEvents.length-1];if(r!==void 0&&us(r)){if(i!==void 0&&Xo(i))throw new Error("The internal list is malformed.");const o=i===void 0?r.insertTime:jn(i)?i.startTime+i.duration:as(i),a=i===void 0?this._defaultValue:jn(i)?i.values[i.values.length-1]:i.value,c=kr(r)?xf(t,o,a,r):wf(t,o,a,r),l=kr(r)?yf(c,t,this._currenTime):vf(c,t,this._currenTime);this._automationEvents.push(l)}if(i!==void 0&&Xo(i)&&this._automationEvents.push(Vl(this.getValue(t),t)),i!==void 0&&jn(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;has(o)>t),r=s===-1?this._automationEvents[this._automationEvents.length-1]:this._automationEvents[s-1];if(r!==void 0&&jn(r)&&as(r)+r.duration>t)return!1;const i=kr(e)?yf(e.value,e.endTime,this._currenTime):Aa(e)?vf(e.value,t,this._currenTime):e;if(s===-1)this._automationEvents.push(i);else{if(jn(e)&&t+e.duration>as(this._automationEvents[s]))return!1;this._automationEvents.splice(s,0,i)}}return!0}flush(e){const t=this._automationEvents.findIndex(s=>as(s)>e);if(t>1){const s=this._automationEvents.slice(t-1),r=s[0];Xo(r)&&s.unshift(Vl(Ra(this._automationEvents,t-2,r.startTime,this._defaultValue),r.startTime)),this._automationEvents=s}}getValue(e){if(this._automationEvents.length===0)return this._defaultValue;const t=this._automationEvents.findIndex(o=>as(o)>e),s=this._automationEvents[t],r=(t===-1?this._automationEvents.length:t)-1,i=this._automationEvents[r];if(i!==void 0&&Xo(i)&&(s===void 0||!us(s)||s.insertTime>e))return hm(e,Ra(this._automationEvents,r-1,i.startTime,this._defaultValue),i);if(i!==void 0&&Vu(i)&&(s===void 0||!us(s)))return i.value;if(i!==void 0&&jn(i)&&(s===void 0||!us(s)||i.startTime+i.duration>e))return e({cancelTime:n,type:"cancelAndHold"}),vE=n=>({cancelTime:n,type:"cancelScheduledValues"}),bE=(n,e)=>({endTime:e,type:"exponentialRampToValue",value:n}),xE=(n,e)=>({endTime:e,type:"linearRampToValue",value:n}),wE=(n,e,t)=>({startTime:e,target:n,timeConstant:t,type:"setTarget"}),TE=()=>new DOMException("","AbortError"),kE=n=>(e,t,[s,r,i],o)=>{n(e[r],[t,s,i],a=>a[0]===t&&a[1]===s,o)},EE=n=>(e,t,s)=>{const r=[];for(let i=0;i(e,t)=>{n.set(e,{activeInputs:new Set,passiveInputs:new WeakMap,renderer:t})},zr=new WeakSet,dm=new WeakMap,Uu=new WeakMap,fm=new WeakMap,Bu=new WeakMap,_c=new WeakMap,pm=new WeakMap,Wl=new WeakMap,ql=new WeakMap,Hl=new WeakMap,mm={construct(){return mm}},SE=n=>{try{const e=new Proxy(n,mm);new e}catch{return!1}return!0},Tf=/^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]*);?/,kf=(n,e)=>{const t=[];let s=n.replace(/^[\s]+/,""),r=s.match(Tf);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),s=s.slice(r[0].length).replace(/^[\s]+/,""),r=s.match(Tf)}return[t.join(";"),s]},Ef=n=>{if(n!==void 0&&!Array.isArray(n))throw new TypeError("The parameterDescriptors property of given value for processorCtor is not an array.")},Cf=n=>{if(!SE(n))throw new TypeError("The given value for processorCtor should be a constructor.");if(n.prototype===null||typeof n.prototype!="object")throw new TypeError("The given value for processorCtor should have a prototype.")},OE=(n,e,t,s,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 k=l.get(m);if(k!==void 0){const y=k.get(p);if(y!==void 0)return y}const T=i(m),b=T.audioWorklet===void 0?r(p).then(([y,x])=>{const[E,w]=kf(y,x),C=`${E};((a,b)=>{(a[b]=a[b]||[]).push((AudioWorkletProcessor,global,registerProcessor,sampleRate,self,window)=>{${w} +`,uE=new ye(0,0,0),gf=1,hE=16777215,Mi=new ye(0,0,0),_f=100,dE=600,fE=2e3,ps={x:0,y:0,z:200},cm="14.8.49",yf=(n,e,t)=>({endTime:e,insertTime:t,type:"exponentialRampToValue",value:n}),vf=(n,e,t)=>({endTime:e,insertTime:t,type:"linearRampToValue",value:n}),Vl=(n,e)=>({startTime:e,type:"setValue",value:n}),lm=(n,e,t)=>({duration:t,startTime:e,type:"setValueCurve",values:n}),um=(n,e,{startTime:t,target:s,timeConstant:r})=>s+(e-s)*Math.exp((t-n)/r),kr=n=>n.type==="exponentialRampToValue",Aa=n=>n.type==="linearRampToValue",us=n=>kr(n)||Aa(n),Vu=n=>n.type==="setValue",jn=n=>n.type==="setValueCurve",Ra=(n,e,t,s)=>{const r=n[e];return r===void 0?s:us(r)||Vu(r)?r.value:jn(r)?r.values[r.values.length-1]:um(t,Ra(n,e-1,r.startTime,s),r)},bf=(n,e,t,s,r)=>t===void 0?[s.insertTime,r]:us(t)?[t.endTime,t.value]:Vu(t)?[t.startTime,t.value]:jn(t)?[t.startTime+t.duration,t.values[t.values.length-1]]:[t.startTime,Ra(n,e-1,t.startTime,r)],Ul=n=>n.type==="cancelAndHold",Bl=n=>n.type==="cancelScheduledValues",as=n=>Ul(n)||Bl(n)?n.cancelTime:kr(n)||Aa(n)?n.endTime:n.startTime,xf=(n,e,t,{endTime:s,value:r})=>t===r?r:0t+(n-e)/(s-e)*(r-t),pE=(n,e)=>{const t=Math.floor(e),s=Math.ceil(e);return t===s?n[t]:(1-(e-t))*n[t]+(1-(s-e))*n[s]},mE=(n,{duration:e,startTime:t,values:s})=>{const r=(n-t)/e*(s.length-1);return pE(s,r)},Xo=n=>n.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=as(e);if(Ul(e)||Bl(e)){const s=this._automationEvents.findIndex(i=>Bl(e)&&jn(i)?i.startTime+i.duration>=t:as(i)>=t),r=this._automationEvents[s];if(s!==-1&&(this._automationEvents=this._automationEvents.slice(0,s)),Ul(e)){const i=this._automationEvents[this._automationEvents.length-1];if(r!==void 0&&us(r)){if(i!==void 0&&Xo(i))throw new Error("The internal list is malformed.");const o=i===void 0?r.insertTime:jn(i)?i.startTime+i.duration:as(i),a=i===void 0?this._defaultValue:jn(i)?i.values[i.values.length-1]:i.value,c=kr(r)?xf(t,o,a,r):wf(t,o,a,r),l=kr(r)?yf(c,t,this._currenTime):vf(c,t,this._currenTime);this._automationEvents.push(l)}if(i!==void 0&&Xo(i)&&this._automationEvents.push(Vl(this.getValue(t),t)),i!==void 0&&jn(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;has(o)>t),r=s===-1?this._automationEvents[this._automationEvents.length-1]:this._automationEvents[s-1];if(r!==void 0&&jn(r)&&as(r)+r.duration>t)return!1;const i=kr(e)?yf(e.value,e.endTime,this._currenTime):Aa(e)?vf(e.value,t,this._currenTime):e;if(s===-1)this._automationEvents.push(i);else{if(jn(e)&&t+e.duration>as(this._automationEvents[s]))return!1;this._automationEvents.splice(s,0,i)}}return!0}flush(e){const t=this._automationEvents.findIndex(s=>as(s)>e);if(t>1){const s=this._automationEvents.slice(t-1),r=s[0];Xo(r)&&s.unshift(Vl(Ra(this._automationEvents,t-2,r.startTime,this._defaultValue),r.startTime)),this._automationEvents=s}}getValue(e){if(this._automationEvents.length===0)return this._defaultValue;const t=this._automationEvents.findIndex(o=>as(o)>e),s=this._automationEvents[t],r=(t===-1?this._automationEvents.length:t)-1,i=this._automationEvents[r];if(i!==void 0&&Xo(i)&&(s===void 0||!us(s)||s.insertTime>e))return um(e,Ra(this._automationEvents,r-1,i.startTime,this._defaultValue),i);if(i!==void 0&&Vu(i)&&(s===void 0||!us(s)))return i.value;if(i!==void 0&&jn(i)&&(s===void 0||!us(s)||i.startTime+i.duration>e))return e({cancelTime:n,type:"cancelAndHold"}),yE=n=>({cancelTime:n,type:"cancelScheduledValues"}),vE=(n,e)=>({endTime:e,type:"exponentialRampToValue",value:n}),bE=(n,e)=>({endTime:e,type:"linearRampToValue",value:n}),xE=(n,e,t)=>({startTime:e,target:n,timeConstant:t,type:"setTarget"}),wE=()=>new DOMException("","AbortError"),TE=n=>(e,t,[s,r,i],o)=>{n(e[r],[t,s,i],a=>a[0]===t&&a[1]===s,o)},kE=n=>(e,t,s)=>{const r=[];for(let i=0;i(e,t)=>{n.set(e,{activeInputs:new Set,passiveInputs:new WeakMap,renderer:t})},zr=new WeakSet,hm=new WeakMap,Uu=new WeakMap,dm=new WeakMap,Bu=new WeakMap,_c=new WeakMap,fm=new WeakMap,Wl=new WeakMap,ql=new WeakMap,Hl=new WeakMap,pm={construct(){return pm}},CE=n=>{try{const e=new Proxy(n,pm);new e}catch{return!1}return!0},Tf=/^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]*);?/,kf=(n,e)=>{const t=[];let s=n.replace(/^[\s]+/,""),r=s.match(Tf);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),s=s.slice(r[0].length).replace(/^[\s]+/,""),r=s.match(Tf)}return[t.join(";"),s]},Ef=n=>{if(n!==void 0&&!Array.isArray(n))throw new TypeError("The parameterDescriptors property of given value for processorCtor is not an array.")},Cf=n=>{if(!CE(n))throw new TypeError("The given value for processorCtor should be a constructor.");if(n.prototype===null||typeof n.prototype!="object")throw new TypeError("The given value for processorCtor should have a prototype.")},SE=(n,e,t,s,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 k=l.get(m);if(k!==void 0){const y=k.get(p);if(y!==void 0)return y}const T=i(m),b=T.audioWorklet===void 0?r(p).then(([y,x])=>{const[E,w]=kf(y,x),C=`${E};((a,b)=>{(a[b]=a[b]||[]).push((AudioWorkletProcessor,global,registerProcessor,sampleRate,self,window)=>{${w} })})(window,'_AWGS')`;return t(C)}).then(()=>{const y=d._AWGS.pop();if(y===void 0)throw new SyntaxError;s(T.currentTime,T.sampleRate,()=>y(class{},void 0,(x,E)=>{if(x.trim()==="")throw e();const w=ql.get(T);if(w!==void 0){if(w.has(x))throw e();Cf(E),Ef(E.parameterDescriptors),w.set(x,E)}else Cf(E),Ef(E.parameterDescriptors),ql.set(T,new Map([[x,E]]))},T.sampleRate,void 0,void 0))}):Promise.all([r(p),Promise.resolve(n(h,h))]).then(([[y,x],E])=>{const w=f+1;f=w;const[C,A]=kf(y,x),j=`${C};((AudioWorkletProcessor,registerProcessor)=>{${A} -})(${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([j],{type:"application/javascript; charset=utf-8"}),V=URL.createObjectURL(W);return T.audioWorklet.addModule(V,g).then(()=>{if(a(T))return T;const U=o(T);return U.audioWorklet.addModule(V,g).then(()=>U)}).then(U=>{if(c===null)throw new SyntaxError;try{new c(U,`__sac${w}`)}catch{throw new SyntaxError}}).finally(()=>URL.revokeObjectURL(V))});return k===void 0?l.set(m,new Map([[p,b]])):k.set(p,b),b.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)}),b}},fn=(n,e)=>{const t=n.get(e);if(t===void 0)throw new Error("A value with the given key could not be found.");return t},yc=(n,e)=>{const t=Array.from(n).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[s]=t;return n.delete(s),s},gm=(n,e,t,s)=>{const r=fn(n,e),i=yc(r,o=>o[0]===t&&o[1]===s);return r.size===0&&n.delete(e),i},To=n=>fn(pm,n),Vr=n=>{if(zr.has(n))throw new Error("The AudioNode is already stored.");zr.add(n),To(n).forEach(e=>e(!0))},_m=n=>"port"in n,ko=n=>{if(!zr.has(n))throw new Error("The AudioNode is not stored.");zr.delete(n),To(n).forEach(e=>e(!1))},Yl=(n,e)=>{!_m(n)&&e.every(t=>t.size===0)&&ko(n)},AE=(n,e,t,s,r,i,o,a,c,l,u,h,d)=>{const f=new WeakMap;return(m,p,g,_,k)=>{const{activeInputs:T,passiveInputs:b}=i(p),{outputs:y}=i(m),x=a(m),E=w=>{const C=c(p),A=c(m);if(w){const D=gm(b,m,g,_);n(T,m,D,!1),!k&&!h(m)&&t(A,C,g,_),d(p)&&Vr(p)}else{const D=s(T,m,g,_);e(b,_,D,!1),!k&&!h(m)&&r(A,C,g,_);const O=o(p);if(O===0)u(p)&&Yl(p,T);else{const L=f.get(p);L!==void 0&&clearTimeout(L),f.set(p,setTimeout(()=>{u(p)&&Yl(p,T)},O*1e3))}}};return l(y,[p,g,_],w=>w[0]===p&&w[1]===g&&w[2]===_,!0)?(x.add(E),u(m)?n(T,m,[g,_,E],!0):e(b,_,[m,g,E],!0),!0):!1}},RE=n=>(e,t,[s,r,i],o)=>{const a=e.get(s);a===void 0?e.set(s,new Set([[r,t,i]])):n(a,[r,t,i],c=>c[0]===r&&c[1]===t,o)},DE=n=>(e,t)=>{const s=n(e,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:0});t.connect(s).connect(e.destination);const r=()=>{t.removeEventListener("ended",r),t.disconnect(s),s.disconnect()};t.addEventListener("ended",r)},PE=n=>(e,t)=>{n(e).add(t)},ME={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",fftSize:2048,maxDecibels:-30,minDecibels:-100,smoothingTimeConstant:.8},NE=(n,e,t,s,r,i)=>class extends n{constructor(a,c){const l=r(a),u={...ME,...c},h=s(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)}},vt=(n,e)=>n.context===e,IE=(n,e,t)=>()=>{const s=new WeakMap,r=async(i,o)=>{let a=e(i);if(!vt(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=n(o,l)}return s.set(o,a),await t(i,o,a),a};return{render(i,o){const a=s.get(o);return a!==void 0?Promise.resolve(a):r(i,o)}}},Da=n=>{try{n.copyToChannel(new Float32Array(1),0,-1)}catch{return!1}return!0},Dn=()=>new DOMException("","IndexSizeError"),Wu=n=>{n.getChannelData=(e=>t=>{try{return e.call(n,t)}catch(s){throw s.code===12?Dn():s}})(n.getChannelData)},$E={numberOfChannels:1},FE=(n,e,t,s,r,i,o,a)=>{let c=null;return class ym{constructor(u){if(r===null)throw new Error("Missing the native OfflineAudioContext constructor.");const{length:h,numberOfChannels:d,sampleRate:f}={...$E,...u};c===null&&(c=new r(1,1,44100));const m=s!==null&&e(i,i)?new s({length:h,numberOfChannels:d,sampleRate:f}):c.createBuffer(d,h,f);if(m.numberOfChannels===0)throw t();return typeof m.copyFromChannel!="function"?(o(m),Wu(m)):e(Da,()=>Da(m))||a(m),n.add(m),m}static[Symbol.hasInstance](u){return u!==null&&typeof u=="object"&&Object.getPrototypeOf(u)===ym.prototype||n.has(u)}}},St=-34028234663852886e22,xt=-St,qn=n=>zr.has(n),LE={buffer:null,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",loop:!1,loopEnd:0,loopStart:0,playbackRate:1},jE=(n,e,t,s,r,i,o,a)=>class extends n{constructor(l,u){const h=i(l),d={...LE,...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,xt,St)}get buffer(){return this._isBufferNullified?null:this._nativeAudioBufferSourceNode.buffer}set buffer(l){if(this._nativeAudioBufferSourceNode.buffer=l,l!==null){if(this._isBufferSet)throw s();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),qn(this)&&ko(this)};this._nativeAudioBufferSourceNode.addEventListener("ended",d)}}stop(l=0){this._nativeAudioBufferSourceNode.stop(l),this._audioBufferSourceNodeRenderer!==null&&(this._audioBufferSourceNodeRenderer.stop=l)}},zE=(n,e,t,s,r)=>()=>{const i=new WeakMap;let o=null,a=null;const c=async(l,u)=>{let h=t(l);const d=vt(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 n(u,l.playbackRate,h.playbackRate):await s(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=n=>"playbackRate"in n,UE=n=>"frequency"in n&&"gain"in n,BE=n=>"offset"in n,WE=n=>!("frequency"in n)&&"gain"in n,qE=n=>"detune"in n&&"frequency"in n,HE=n=>"pan"in n,kt=n=>fn(dm,n),Eo=n=>fn(fm,n),Gl=(n,e)=>{const{activeInputs:t}=kt(n);t.forEach(r=>r.forEach(([i])=>{e.includes(n)||Gl(i,[...e,n])}));const s=VE(n)?[n.playbackRate]:_m(n)?Array.from(n.parameters.values()):UE(n)?[n.Q,n.detune,n.frequency,n.gain]:BE(n)?[n.offset]:WE(n)?[n.gain]:qE(n)?[n.detune,n.frequency]:HE(n)?[n.pan]:[];for(const r of s){const i=Eo(r);i!==void 0&&i.activeInputs.forEach(([o])=>Gl(o,e))}qn(n)&&ko(n)},vm=n=>{Gl(n.destination,[])},YE=n=>n===void 0||typeof n=="number"||typeof n=="string"&&(n==="balanced"||n==="interactive"||n==="playback"),GE=(n,e,t,s,r,i,o,a,c)=>class extends n{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 s();if(!YE(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()),vm(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})}},XE=(n,e,t,s,r,i,o,a)=>class extends n{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 s();if(l>this._nativeAudioDestinationNode.maxChannelCount)throw t();this._nativeAudioDestinationNode.channelCount=l}get channelCountMode(){return this._nativeAudioDestinationNode.channelCountMode}set channelCountMode(l){if(this._isNodeOfNativeOfflineAudioContext)throw s();this._nativeAudioDestinationNode.channelCountMode=l}get maxChannelCount(){return this._nativeAudioDestinationNode.maxChannelCount}},ZE=n=>{const e=new WeakMap,t=async(s,r)=>{const i=r.destination;return e.set(r,i),await n(s,r,i),i};return{render(s,r){const i=e.get(r);return i!==void 0?Promise.resolve(i):t(s,r)}}},KE=(n,e,t,s,r,i,o,a)=>(c,l)=>{const u=l.listener,h=()=>{const y=new Float32Array(1),x=e(l,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:9}),E=o(l);let w=!1,C=[0,0,-1,0,1,0],A=[0,0,0];const D=()=>{if(w)return;w=!0;const W=s(l,256,9,0);W.onaudioprocess=({inputBuffer:V})=>{const U=[i(V,y,0),i(V,y,1),i(V,y,2),i(V,y,3),i(V,y,4),i(V,y,5)];U.some((X,K)=>X!==C[K])&&(u.setOrientation(...U),C=U);const B=[i(V,y,6),i(V,y,7),i(V,y,8)];B.some((X,K)=>X!==A[K])&&(u.setPosition(...B),A=B)},x.connect(W)},O=W=>V=>{V!==C[W]&&(C[W]=V,u.setOrientation(...C))},L=W=>V=>{V!==A[W]&&(A[W]=V,u.setPosition(...A))},j=(W,V,U)=>{const B=t(l,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",offset:V});B.connect(x,0,W),B.start(),Object.defineProperty(B.offset,"defaultValue",{get(){return V}});const X=n({context:c},E,B.offset,xt,St);return a(X,"value",K=>()=>K.call(X),K=>J=>{try{K.call(X,J)}catch(F){if(F.code!==9)throw F}D(),E&&U(J)}),X.cancelAndHoldAtTime=(K=>E?()=>{throw r()}:(...J)=>{const F=K.apply(X,J);return D(),F})(X.cancelAndHoldAtTime),X.cancelScheduledValues=(K=>E?()=>{throw r()}:(...J)=>{const F=K.apply(X,J);return D(),F})(X.cancelScheduledValues),X.exponentialRampToValueAtTime=(K=>E?()=>{throw r()}:(...J)=>{const F=K.apply(X,J);return D(),F})(X.exponentialRampToValueAtTime),X.linearRampToValueAtTime=(K=>E?()=>{throw r()}:(...J)=>{const F=K.apply(X,J);return D(),F})(X.linearRampToValueAtTime),X.setTargetAtTime=(K=>E?()=>{throw r()}:(...J)=>{const F=K.apply(X,J);return D(),F})(X.setTargetAtTime),X.setValueAtTime=(K=>E?()=>{throw r()}:(...J)=>{const F=K.apply(X,J);return D(),F})(X.setValueAtTime),X.setValueCurveAtTime=(K=>E?()=>{throw r()}:(...J)=>{const F=K.apply(X,J);return D(),F})(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:k,upY:T,upZ:b}=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 k},get upY(){return T},get upZ(){return b}}},Pa=n=>"context"in n,Co=n=>Pa(n[0]),cr=(n,e,t,s)=>{for(const r of n)if(t(r)){if(s)return!1;throw Error("The set contains at least one similar element.")}return n.add(e),!0},Sf=(n,e,[t,s],r)=>{cr(n,[e,t,s],i=>i[0]===e&&i[1]===t,r)},Of=(n,[e,t,s],r)=>{const i=n.get(e);i===void 0?n.set(e,new Set([[t,s]])):cr(i,[t,s],o=>o[0]===t,r)},ri=n=>"inputs"in n,Ma=(n,e,t,s)=>{if(ri(e)){const r=e.inputs[s];return n.connect(r,t,0),[r,t,0]}return n.connect(e,t,s),[e,t,s]},bm=(n,e,t)=>{for(const s of n)if(s[0]===e&&s[1]===t)return n.delete(s),s;return null},QE=(n,e,t)=>yc(n,s=>s[0]===e&&s[1]===t),xm=(n,e)=>{if(!To(n).delete(e))throw new Error("Missing the expected event listener.")},wm=(n,e,t)=>{const s=fn(n,e),r=yc(s,i=>i[0]===t);return s.size===0&&n.delete(e),r},Na=(n,e,t,s)=>{ri(e)?n.disconnect(e.inputs[s],t,0):n.disconnect(e,t,s)},Be=n=>fn(Uu,n),Bi=n=>fn(Bu,n),er=n=>Wl.has(n),oa=n=>!zr.has(n),Af=(n,e)=>new Promise(t=>{if(e!==null)t(!0);else{const s=n.createScriptProcessor(256,1,1),r=n.createGain(),i=n.createBuffer(1,2,44100),o=i.getChannelData(0);o[0]=1,o[1]=1;const a=n.createBufferSource();a.buffer=i,a.loop=!0,a.connect(s).connect(n.destination),a.connect(r),a.disconnect(r),s.onaudioprocess=c=>{const l=c.inputBuffer.getChannelData(0);Array.prototype.some.call(l,u=>u===1)?t(!0):t(!1),a.stop(),s.onaudioprocess=null,a.disconnect(s),s.disconnect(n.destination)},a.start()}}),rl=(n,e)=>{const t=new Map;for(const s of n)for(const r of s){const i=t.get(r);t.set(r,i===void 0?1:i+1)}t.forEach((s,r)=>e(r,s))},Ia=n=>"context"in n,JE=n=>{const e=new Map;n.connect=(t=>(s,r=0,i=0)=>{const o=Ia(s)?t(s,r,i):t(s,r),a=e.get(s);return a===void 0?e.set(s,[{input:i,output:r}]):a.every(c=>c.input!==i||c.output!==r)&&a.push({input:i,output:r}),o})(n.connect.bind(n)),n.disconnect=(t=>(s,r,i)=>{if(t.apply(n),s===void 0)e.clear();else if(typeof s=="number")for(const[o,a]of e){const c=a.filter(l=>l.output!==s);c.length===0?e.delete(o):e.set(o,c)}else if(e.has(s))if(r===void 0)e.delete(s);else{const o=e.get(s);if(o!==void 0){const a=o.filter(c=>c.output!==r&&(c.input!==i||i===void 0));a.length===0?e.delete(s):e.set(s,a)}}for(const[o,a]of e)a.forEach(c=>{Ia(o)?n.connect(o,c.output,c.input):n.connect(o,c.output)})})(n.disconnect)},eC=(n,e,t,s)=>{const{activeInputs:r,passiveInputs:i}=Eo(e),{outputs:o}=kt(n),a=To(n),c=l=>{const u=Be(n),h=Bi(e);if(l){const d=wm(i,n,t);Sf(r,n,d,!1),!s&&!er(n)&&u.connect(h,t)}else{const d=QE(r,n,t);Of(i,d,!1),!s&&!er(n)&&u.disconnect(h,t)}};return cr(o,[e,t],l=>l[0]===e&&l[1]===t,!0)?(a.add(c),qn(n)?Sf(r,n,[t,c],!0):Of(i,[n,t,c],!0),!0):!1},tC=(n,e,t,s)=>{const{activeInputs:r,passiveInputs:i}=kt(e),o=bm(r[s],n,t);return o===null?[gm(i,n,t,s)[2],!1]:[o[2],!0]},nC=(n,e,t)=>{const{activeInputs:s,passiveInputs:r}=Eo(e),i=bm(s,n,t);return i===null?[wm(r,n,t)[1],!1]:[i[2],!0]},qu=(n,e,t,s,r)=>{const[i,o]=tC(n,t,s,r);if(i!==null&&(xm(n,i),o&&!e&&!er(n)&&Na(Be(n),Be(t),s,r)),qn(t)){const{activeInputs:a}=kt(t);Yl(t,a)}},Hu=(n,e,t,s)=>{const[r,i]=nC(n,t,s);r!==null&&(xm(n,r),i&&!e&&!er(n)&&Be(n).disconnect(Bi(t),s))},sC=(n,e)=>{const t=kt(n),s=[];for(const r of t.outputs)Co(r)?qu(n,e,...r):Hu(n,e,...r),s.push(r[0]);return t.outputs.clear(),s},rC=(n,e,t)=>{const s=kt(n),r=[];for(const i of s.outputs)i[1]===t&&(Co(i)?qu(n,e,...i):Hu(n,e,...i),r.push(i[0]),s.outputs.delete(i));return r},iC=(n,e,t,s,r)=>{const i=kt(n);return Array.from(i.outputs).filter(o=>o[0]===t&&(s===void 0||o[1]===s)&&(r===void 0||o[2]===r)).map(o=>(Co(o)?qu(n,e,...o):Hu(n,e,...o),i.outputs.delete(o),o[0]))},oC=(n,e,t,s,r,i,o,a,c,l,u,h,d,f,m,p)=>class extends l{constructor(_,k,T,b){super(T),this._context=_,this._nativeAudioNode=T;const y=u(_);h(y)&&t(Af,()=>Af(y,p))!==!0&&JE(T),Uu.set(this,T),pm.set(this,new Set),_.state!=="closed"&&k&&Vr(this),n(this,b,T)}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(_,k=0,T=0){if(k<0||k>=this._nativeAudioNode.numberOfOutputs)throw r();const b=u(this._context),y=m(b);if(d(_)||f(_))throw i();if(Pa(_)){const w=Be(_);try{const A=Ma(this._nativeAudioNode,w,k,T),D=oa(this);(y||D)&&this._nativeAudioNode.disconnect(...A),this.context.state!=="closed"&&!D&&oa(_)&&Vr(_)}catch(A){throw A.code===12?i():A}if(e(this,_,k,T,y)){const A=c([this],_);rl(A,s(y))}return _}const x=Bi(_);if(x.name==="playbackRate"&&x.maxValue===1024)throw o();try{this._nativeAudioNode.connect(x,k),(y||oa(this))&&this._nativeAudioNode.disconnect(x,k)}catch(w){throw w.code===12?i():w}if(eC(this,_,k,y)){const w=c([this],_);rl(w,s(y))}}disconnect(_,k,T){let b;const y=u(this._context),x=m(y);if(_===void 0)b=sC(this,x);else if(typeof _=="number"){if(_<0||_>=this.numberOfOutputs)throw r();b=rC(this,x,_)}else{if(k!==void 0&&(k<0||k>=this.numberOfOutputs)||Pa(_)&&T!==void 0&&(T<0||T>=_.numberOfInputs))throw r();if(b=iC(this,x,_,k,T),b.length===0)throw i()}for(const E of b){const w=c([this],E);rl(w,a)}}},aC=(n,e,t,s,r,i,o,a,c,l,u,h,d)=>(f,m,p,g=null,_=null)=>{const k=p.value,T=new _E(k),b=m?s(T):null,y={get defaultValue(){return k},get maxValue(){return g===null?p.maxValue:g},get minValue(){return _===null?p.minValue:_},get value(){return p.value},set value(x){p.value=x,y.setValueAtTime(x,f.context.currentTime)},cancelAndHoldAtTime(x){if(typeof p.cancelAndHoldAtTime=="function")b===null&&T.flush(f.context.currentTime),T.add(r(x)),p.cancelAndHoldAtTime(x);else{const E=Array.from(T).pop();b===null&&T.flush(f.context.currentTime),T.add(r(x));const w=Array.from(T).pop();p.cancelScheduledValues(x),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 y},cancelScheduledValues(x){return b===null&&T.flush(f.context.currentTime),T.add(i(x)),p.cancelScheduledValues(x),y},exponentialRampToValueAtTime(x,E){if(x===0)throw new RangeError;if(!Number.isFinite(E)||E<0)throw new RangeError;const w=f.context.currentTime;return b===null&&T.flush(w),Array.from(T).length===0&&(T.add(l(k,w)),p.setValueAtTime(k,w)),T.add(o(x,E)),p.exponentialRampToValueAtTime(x,E),y},linearRampToValueAtTime(x,E){const w=f.context.currentTime;return b===null&&T.flush(w),Array.from(T).length===0&&(T.add(l(k,w)),p.setValueAtTime(k,w)),T.add(a(x,E)),p.linearRampToValueAtTime(x,E),y},setTargetAtTime(x,E,w){return b===null&&T.flush(f.context.currentTime),T.add(c(x,E,w)),p.setTargetAtTime(x,E,w),y},setValueAtTime(x,E){return b===null&&T.flush(f.context.currentTime),T.add(l(x,E)),p.setValueAtTime(x,E),y},setValueCurveAtTime(x,E,w){const C=x instanceof Float32Array?x:new Float32Array(x);if(h!==null&&h.name==="webkitAudioContext"){const A=E+w,D=f.context.sampleRate,O=Math.ceil(E*D),L=Math.floor(A*D),j=L-O,W=new Float32Array(j);for(let U=0;U({replay(e){for(const t of n)if(t.type==="exponentialRampToValue"){const{endTime:s,value:r}=t;e.exponentialRampToValueAtTime(r,s)}else if(t.type==="linearRampToValue"){const{endTime:s,value:r}=t;e.linearRampToValueAtTime(r,s)}else if(t.type==="setTarget"){const{startTime:s,target:r,timeConstant:i}=t;e.setTargetAtTime(r,s,i)}else if(t.type==="setValue"){const{startTime:s,value:r}=t;e.setValueAtTime(r,s)}else if(t.type==="setValueCurve"){const{duration:s,startTime:r,values:i}=t;e.setValueCurveAtTime(i,r,s)}else throw new Error("Can't apply an unknown automation.")}});class Tm{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((s,r)=>e.call(t,s,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 lC={channelCount:2,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:1,numberOfOutputs:1,parameterData:{},processorOptions:{}},uC=(n,e,t,s,r,i,o,a,c,l,u,h,d,f)=>class extends e{constructor(p,g,_){var k;const T=a(p),b=c(T),y=u({...lC,..._});d(y);const x=ql.get(T),E=x==null?void 0:x.get(g),w=b||T.state!=="closed"?T:(k=o(T))!==null&&k!==void 0?k:T,C=r(w,b?null:p.baseLatency,l,g,E,y),A=b?s(g,y,E):null;super(p,!0,C,A);const D=[];C.parameters.forEach((L,j)=>{const W=t(this,b,L);D.push([j,W])}),this._nativeAudioWorkletNode=C,this._onprocessorerror=null,this._parameters=new Tm(D),b&&n(T,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(n,e,t,s,r){if(typeof n.copyFromChannel=="function")e[t].byteLength===0&&(e[t]=new Float32Array(128)),n.copyFromChannel(e[t],s,r);else{const i=n.getChannelData(s);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 km=(n,e,t,s,r)=>{typeof n.copyToChannel=="function"?e[t].byteLength!==0&&n.copyToChannel(e[t],s,r):e[t].byteLength!==0&&n.getChannelData(s).set(e[t],r)},Fa=(n,e)=>{const t=[];for(let s=0;s{const t=fn(Hl,n),s=Be(e);return fn(t,s)},dC=async(n,e,t,s,r,i,o)=>{const a=e===null?Math.ceil(n.context.length/128)*128:e.length,c=s.channelCount*s.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(n),d=await hC(t,n),f=Fa(s.numberOfInputs,s.channelCount),m=Fa(s.numberOfOutputs,r),p=Array.from(n.parameters.keys()).reduce((g,_)=>({...g,[_]:new Float32Array(128)}),{});for(let g=0;g0&&e!==null)for(let _=0;_{$a(e,p,_,c+k,g)});for(let _=0;_h.activeInputs[b].size===0?[]:T),k=o(g/t.sampleRate,t.sampleRate,()=>d.process(_,m,p));if(u!==null)for(let T=0,b=0;T(g,_,k)=>{const T=new WeakMap;let b=null;const y=async(x,E)=>{let w=u(x),C=null;const A=vt(w,E),D=Array.isArray(_.outputChannelCount)?_.outputChannelCount:Array.from(_.outputChannelCount);if(h===null){const O=D.reduce((V,U)=>V+U,0),L=r(E,{channelCount:Math.max(1,O),channelCountMode:"explicit",channelInterpretation:"discrete",numberOfOutputs:Math.max(1,O)}),j=[];for(let V=0;V{const J=new d(X,Math.ceil(x.context.length/128)*128,E.sampleRate),F=[],z=[];for(let Y=0;Y<_.numberOfInputs;Y+=1)F.push(o(J,{channelCount:_.channelCount,channelCountMode:_.channelCountMode,channelInterpretation:_.channelInterpretation,gain:1})),z.push(r(J,{channelCount:_.channelCount,channelCountMode:"explicit",channelInterpretation:"discrete",numberOfOutputs:_.channelCount}));const S=await Promise.all(Array.from(x.parameters.values()).map(async Y=>{const $=i(J,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",offset:Y.value});return await f(J,Y,$.offset),$})),I=s(J,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:Math.max(1,U+B)});for(let Y=0;Y<_.numberOfInputs;Y+=1){F[Y].connect(z[Y]);for(let $=0;$<_.channelCount;$+=1)z[Y].connect(I,$,Y*_.channelCount+$)}for(const[Y,$]of S.entries())$.connect(I,0,U+Y),$.start(0);return I.connect(J.destination),await Promise.all(F.map(Y=>m(x,J,Y))),p(J)})(),E,_,D,k,l)}const O=await b,L=t(E,{buffer:null,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",loop:!1,loopEnd:0,loopStart:0,playbackRate:1}),[j,W,V]=C;O!==null&&(L.buffer=O,L.start(0)),L.connect(j);for(let U=0,B=0;Uclass extends m{constructor(y,x){super(y,x),this._nativeContext=y,this._audioWorklet=n===void 0?void 0:{addModule:(E,w)=>n(this,E,w)}}get audioWorklet(){return this._audioWorklet}createAnalyser(){return new e(this)}createBiquadFilter(){return new r(this)}createBuffer(y,x,E){return new t({length:x,numberOfChannels:y,sampleRate:E})}createBufferSource(){return new s(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,x){return new f(this,{feedback:x,feedforward:y})}createOscillator(){return new p(this)}createPanner(){return new g(this)}createPeriodicWave(y,x,E={disableNormalization:!1}){return new _(this,{...E,imag:x,real:y})}createStereoPanner(){return new k(this)}createWaveShaper(){return new T(this)}decodeAudioData(y,x,E){return l(this._nativeContext,y).then(w=>(typeof x=="function"&&x(w),w),w=>{throw typeof E=="function"&&E(w),w})}},mC={Q:1,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",detune:0,frequency:350,gain:0,type:"lowpass"},gC=(n,e,t,s,r,i,o,a)=>class extends n{constructor(l,u){const h=i(l),d={...mC,...u},f=r(h,d),m=o(h),p=m?t():null;super(l,!1,f,p),this._Q=e(this,m,f.Q,xt,St),this._detune=e(this,m,f.detune,1200*Math.log2(xt),-1200*Math.log2(xt)),this._frequency=e(this,m,f.frequency,l.sampleRate/2,0),this._gain=e(this,m,f.gain,40*Math.log10(xt),St),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?s():d}if(l.length!==u.length||u.length!==h.length)throw s()}},_C=(n,e,t,s,r)=>()=>{const i=new WeakMap,o=async(a,c)=>{let l=t(a);const u=vt(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 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 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 r(a,c,l),l};return{render(a,c){const l=i.get(c);return l!==void 0?Promise.resolve(l):o(a,c)}}},yC=(n,e)=>(t,s)=>{const r=e.get(t);if(r!==void 0)return r;const i=n.get(t);if(i!==void 0)return i;try{const o=s();return o instanceof Promise?(n.set(t,o),o.catch(()=>!1).then(a=>(n.delete(t),e.set(t,a),a))):(e.set(t,o),o)}catch{return e.set(t,!1),!1}},vC={channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:6},bC=(n,e,t,s,r)=>class extends n{constructor(o,a){const c=s(o),l={...vC,...a},u=t(c,l),h=r(c)?e():null;super(o,!1,u,h)}},xC=(n,e,t)=>()=>{const s=new WeakMap,r=async(i,o)=>{let a=e(i);if(!vt(a,o)){const l={channelCount:a.channelCount,channelCountMode:a.channelCountMode,channelInterpretation:a.channelInterpretation,numberOfInputs:a.numberOfInputs};a=n(o,l)}return s.set(o,a),await t(i,o,a),a};return{render(i,o){const a=s.get(o);return a!==void 0?Promise.resolve(a):r(i,o)}}},wC={channelCount:6,channelCountMode:"explicit",channelInterpretation:"discrete",numberOfOutputs:6},TC=(n,e,t,s,r,i)=>class extends n{constructor(a,c){const l=s(a),u=i({...wC,...c}),h=t(l,u),d=r(l)?e():null;super(a,!1,h,d)}},kC=(n,e,t)=>()=>{const s=new WeakMap,r=async(i,o)=>{let a=e(i);if(!vt(a,o)){const l={channelCount:a.channelCount,channelCountMode:a.channelCountMode,channelInterpretation:a.channelInterpretation,numberOfOutputs:a.numberOfOutputs};a=n(o,l)}return s.set(o,a),await t(i,o,a),a};return{render(i,o){const a=s.get(o);return a!==void 0?Promise.resolve(a):r(i,o)}}},EC=n=>(e,t,s)=>n(t,e,s),CC=n=>(e,t,s=0,r=0)=>{const i=e[s];if(i===void 0)throw n();return Ia(t)?i.connect(t,0,r):i.connect(t,0)},SC=n=>(e,t)=>{const s=n(e,{buffer:null,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",loop:!1,loopEnd:0,loopStart:0,playbackRate:1}),r=e.createBuffer(1,2,44100);return s.buffer=r,s.loop=!0,s.connect(t),s.start(),()=>{s.stop(),s.disconnect(t)}},OC={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",offset:1},AC=(n,e,t,s,r,i,o)=>class extends n{constructor(c,l){const u=r(c),h={...OC,...l},d=s(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,xt,St),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),qn(this)&&ko(this)};this._nativeConstantSourceNode.addEventListener("ended",l)}}stop(c=0){this._nativeConstantSourceNode.stop(c),this._constantSourceNodeRenderer!==null&&(this._constantSourceNodeRenderer.stop=c)}},RC=(n,e,t,s,r)=>()=>{const i=new WeakMap;let o=null,a=null;const c=async(l,u)=>{let h=t(l);const d=vt(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 n(u,l.offset,h.offset):await s(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=n=>e=>(n[0]=e,n[0]),PC={buffer:null,channelCount:2,channelCountMode:"clamped-max",channelInterpretation:"speakers",disableNormalization:!1},MC=(n,e,t,s,r,i)=>class extends n{constructor(a,c){const l=s(a),u={...PC,...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}},NC=(n,e,t)=>()=>{const s=new WeakMap,r=async(i,o)=>{let a=e(i);if(!vt(a,o)){const l={buffer:a.buffer,channelCount:a.channelCount,channelCountMode:a.channelCountMode,channelInterpretation:a.channelInterpretation,disableNormalization:!a.normalize};a=n(o,l)}return s.set(o,a),ri(a)?await t(i,o,a.inputs[0]):await t(i,o,a),a};return{render(i,o){const a=s.get(o);return a!==void 0?Promise.resolve(a):r(i,o)}}},IC=(n,e)=>(t,s,r)=>{if(e===null)throw new Error("Missing the native OfflineAudioContext constructor.");try{return new e(t,s,r)}catch(i){throw i.name==="SyntaxError"?n():i}},$C=()=>new DOMException("","DataCloneError"),Rf=n=>{const{port1:e,port2:t}=new MessageChannel;return new Promise(s=>{const r=()=>{t.onmessage=null,e.close(),t.close(),s()};t.onmessage=()=>r();try{e.postMessage(n,[n])}catch{}finally{r()}})},FC=(n,e,t,s,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=>(Rf(d).catch(()=>{}),e(a,()=>a(m))||u(m),n.add(m),m)):new Promise((m,p)=>{const g=async()=>{try{await Rf(d)}catch{}},_=k=>{p(k),g()};try{f.decodeAudioData(d,k=>{typeof k.copyFromChannel!="function"&&(l(k),Wu(k)),n.add(k),g().then(()=>m(k))},k=>{_(k===null?s():k)})}catch(k){_(k)}})},LC=(n,e,t,s,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=s(c),{outputs:m}=t(c);for(const p of m)if(Co(p)){const g=s(p[0]);n(f,g,p[1],p[2])}else{const g=r(p[0]);f.connect(g,p[1])}}}else e.set(c,u-l)},jC={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",delayTime:0,maxDelayTime:1},zC=(n,e,t,s,r,i,o)=>class extends n{constructor(c,l){const u=r(c),h={...jC,...l},d=s(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=(n,e,t,s,r)=>i=>{const o=new WeakMap,a=async(c,l)=>{let u=t(c);const h=vt(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 n(l,c.delayTime,u.delayTime):await s(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)}}},UC=n=>(e,t,s,r)=>n(e[r],i=>i[0]===t&&i[1]===s),BC=n=>(e,t)=>{n(e).delete(t)},WC=n=>"delayTime"in n,qC=(n,e,t)=>function s(r,i){const o=Pa(i)?i:t(n,i);if(WC(o))return[];if(r[0]===o)return[r];if(r.includes(o))return[];const{outputs:a}=e(o);return Array.from(a).map(c=>s([...r,o],c[0])).reduce((c,l)=>c.concat(l),[])},Zo=(n,e,t)=>{const s=e[t];if(s===void 0)throw n();return s},HC=n=>(e,t=void 0,s=void 0,r=0)=>t===void 0?e.forEach(i=>i.disconnect()):typeof t=="number"?Zo(n,e,t).disconnect():Ia(t)?s===void 0?e.forEach(i=>i.disconnect(t)):r===void 0?Zo(n,e,s).disconnect(t,0):Zo(n,e,s).disconnect(t,0,r):s===void 0?e.forEach(i=>i.disconnect(t)):Zo(n,e,s).disconnect(t,0),YC={attack:.003,channelCount:2,channelCountMode:"clamped-max",channelInterpretation:"speakers",knee:30,ratio:12,release:.25,threshold:-24},GC=(n,e,t,s,r,i,o,a)=>class extends n{constructor(l,u){const h=i(l),d={...YC,...u},f=s(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}},XC=(n,e,t,s,r)=>()=>{const i=new WeakMap,o=async(a,c)=>{let l=t(a);const u=vt(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 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 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 r(a,c,l),l};return{render(a,c){const l=i.get(c);return l!==void 0?Promise.resolve(l):o(a,c)}}},ZC=()=>new DOMException("","EncodingError"),KC=n=>e=>new Promise((t,s)=>{if(n===null){s(new SyntaxError);return}const r=n.document.head;if(r===null)s(new SyntaxError);else{const i=n.document.createElement("script"),o=new Blob([e],{type:"application/javascript"}),a=URL.createObjectURL(o),c=n.onerror,l=()=>{n.onerror=c,URL.revokeObjectURL(a)};n.onerror=(u,h,d,f,m)=>{if(h===a||h===n.location.href&&d===1&&f===1)return l(),s(m),!1;if(c!==null)return c(u,h,d,f,m)},i.onerror=()=>{l(),s(new SyntaxError)},i.onload=()=>{l(),t()},i.src=a,i.type="module",r.appendChild(i)}}),QC=n=>class{constructor(t){this._nativeEventTarget=t,this._listeners=new WeakMap}addEventListener(t,s,r){if(s!==null){let i=this._listeners.get(s);i===void 0&&(i=n(this,s),typeof s=="function"&&this._listeners.set(s,i)),this._nativeEventTarget.addEventListener(t,i,r)}}dispatchEvent(t){return this._nativeEventTarget.dispatchEvent(t)}removeEventListener(t,s,r){const i=s===null?void 0:this._listeners.get(s);this._nativeEventTarget.removeEventListener(t,i===void 0?null:i,r)}},JC=n=>(e,t,s)=>{Object.defineProperties(n,{currentFrame:{configurable:!0,get(){return Math.round(e*t)}},currentTime:{configurable:!0,get(){return e}}});try{return s()}finally{n!==null&&(delete n.currentFrame,delete n.currentTime)}},eS=n=>async e=>{try{const t=await fetch(e);if(t.ok)return[await t.text(),t.url]}catch{}throw n()},tS={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",gain:1},nS=(n,e,t,s,r,i)=>class extends n{constructor(a,c){const l=r(a),u={...tS,...c},h=s(l,u),d=i(l),f=d?t():null;super(a,!1,h,f),this._gain=e(this,d,h.gain,xt,St)}get gain(){return this._gain}},sS=(n,e,t,s,r)=>()=>{const i=new WeakMap,o=async(a,c)=>{let l=t(a);const u=vt(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 n(c,a.gain,l.gain):await s(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)}}},rS=(n,e)=>t=>e(n,t),iS=n=>e=>{const t=n(e);if(t.renderer===null)throw new Error("Missing the renderer of the given AudioNode in the audio graph.");return t.renderer},oS=n=>e=>{var t;return(t=n.get(e))!==null&&t!==void 0?t:0},aS=n=>e=>{const t=n(e);if(t.renderer===null)throw new Error("Missing the renderer of the given AudioParam in the audio graph.");return t.renderer},cS=n=>e=>n.get(e),ht=()=>new DOMException("","InvalidStateError"),lS=n=>e=>{const t=n.get(e);if(t===void 0)throw ht();return t},uS=(n,e)=>t=>{let s=n.get(t);if(s!==void 0)return s;if(e===null)throw new Error("Missing the native OfflineAudioContext constructor.");return s=new e(1,1,44100),n.set(t,s),s},hS=n=>e=>{const t=n.get(e);if(t===void 0)throw new Error("The context has no set of AudioWorkletNodes.");return t},vc=()=>new DOMException("","InvalidAccessError"),dS=n=>{n.getFrequencyResponse=(e=>(t,s,r)=>{if(t.length!==s.length||s.length!==r.length)throw vc();return e.call(n,t,s,r)})(n.getFrequencyResponse)},fS={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers"},pS=(n,e,t,s,r,i)=>class extends n{constructor(a,c){const l=s(a),u=r(l),h={...fS,...c},d=e(l,u?null:a.baseLatency,h),f=u?t(h.feedback,h.feedforward):null;super(a,!1,d,f),dS(d),this._nativeIIRFilterNode=d,i(this,1)}getFrequencyResponse(a,c,l){return this._nativeIIRFilterNode.getFrequencyResponse(a,c,l)}},Em=(n,e,t,s,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=s instanceof Float64Array?s:new Float64Array(s),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=vt(f,h);if(h.createIIRFilter===void 0?d=n(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 s(u,g,g.destination);const _=await r(g);return mS(_,h,i,o)})()}const p=await c;return d.buffer=p,d.start(0),d}return await s(u,h,f),f};return{render(u,h){const d=a.get(h);return d!==void 0?Promise.resolve(d):l(u,h)}}},_S=(n,e,t,s,r,i)=>o=>(a,c)=>{const l=n.get(a);if(l===void 0){if(!o&&i(a)){const u=s(a),{outputs:h}=t(a);for(const d of h)if(Co(d)){const f=s(d[0]);e(u,f,d[1],d[2])}else{const f=r(d[0]);u.disconnect(f,d[1])}}n.set(a,c)}else n.set(a,l+c)},yS=(n,e)=>t=>{const s=n.get(t);return e(s)||e(t)},vS=(n,e)=>t=>n.has(t)||e(t),bS=(n,e)=>t=>n.has(t)||e(t),xS=(n,e)=>t=>{const s=n.get(t);return e(s)||e(t)},wS=n=>e=>n!==null&&e instanceof n,TS=n=>e=>n!==null&&typeof n.AudioNode=="function"&&e instanceof n.AudioNode,kS=n=>e=>n!==null&&typeof n.AudioParam=="function"&&e instanceof n.AudioParam,ES=(n,e)=>t=>n(t)||e(t),CS=n=>e=>n!==null&&e instanceof n,SS=n=>n!==null&&n.isSecureContext,OS=(n,e,t,s)=>class extends n{constructor(i,o){const a=t(i),c=e(a,o);if(s(a))throw TypeError();super(i,!0,c,null),this._nativeMediaElementAudioSourceNode=c}get mediaElement(){return this._nativeMediaElementAudioSourceNode.mediaElement}},AS={channelCount:2,channelCountMode:"explicit",channelInterpretation:"speakers"},RS=(n,e,t,s)=>class extends n{constructor(i,o){const a=t(i);if(s(a))throw new TypeError;const c={...AS,...o},l=e(a,c);super(i,!1,l,null),this._nativeMediaStreamAudioDestinationNode=l}get stream(){return this._nativeMediaStreamAudioDestinationNode.stream}},DS=(n,e,t,s)=>class extends n{constructor(i,o){const a=t(i),c=e(a,o);if(s(a))throw new TypeError;super(i,!0,c,null),this._nativeMediaStreamAudioSourceNode=c}get mediaStream(){return this._nativeMediaStreamAudioSourceNode.mediaStream}},PS=(n,e,t)=>class extends n{constructor(r,i){const o=t(r),a=e(o,i);super(r,!0,a,null)}},MS=(n,e,t,s,r,i)=>class extends t{constructor(a,c){super(a),this._nativeContext=a,_c.set(this,a),s(a)&&r.set(a,new Set),this._destination=new n(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=n=>{const e=new Uint32Array([1179011410,40,1163280727,544501094,16,131073,44100,176400,1048580,1635017060,4,0]);try{const t=n.decodeAudioData(e.buffer,()=>{});return t===void 0?!1:(t.catch(()=>{}),!0)}catch{}return!1},NS=(n,e)=>(t,s,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),n(i,[a,c,l],h=>h[0]===a&&h[1]===c&&h[2]===l,!0),u&&s(),a;o.call(t,a,c),n(i,[a,c],h=>h[0]===a&&h[1]===c,!0),u&&s()})(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},We=(n,e,t)=>{const s=e[t];s!==void 0&&s!==n[t]&&(n[t]=s)},ct=(n,e)=>{We(n,e,"channelCount"),We(n,e,"channelCountMode"),We(n,e,"channelInterpretation")},Df=n=>typeof n.getFloatTimeDomainData=="function",IS=n=>{n.getFloatTimeDomainData=e=>{const t=new Uint8Array(e.length);n.getByteTimeDomainData(t);const s=Math.max(t.length,n.fftSize);for(let r=0;r(t,s)=>{const r=t.createAnalyser();if(ct(r,s),!(s.maxDecibels>s.minDecibels))throw e();return We(r,s,"fftSize"),We(r,s,"maxDecibels"),We(r,s,"minDecibels"),We(r,s,"smoothingTimeConstant"),n(Df,()=>Df(r))||IS(r),r},FS=n=>n===null?null:n.hasOwnProperty("AudioBuffer")?n.AudioBuffer:null,Ze=(n,e,t)=>{const s=e[t];s!==void 0&&s!==n[t].value&&(n[t].value=s)},LS=n=>{n.start=(e=>{let t=!1;return(s=0,r=0,i)=>{if(t)throw ht();e.call(n,s,r,i),t=!0}})(n.start)},Yu=n=>{n.start=(e=>(t=0,s=0,r)=>{if(typeof r=="number"&&r<0||s<0||t<0)throw new RangeError("The parameters can't be negative.");e.call(n,t,s,r)})(n.start)},Gu=n=>{n.stop=(e=>(t=0)=>{if(t<0)throw new RangeError("The parameter can't be negative.");e.call(n,t)})(n.stop)},jS=(n,e,t,s,r,i,o,a,c,l,u)=>(h,d)=>{const f=h.createBufferSource();return ct(f,d),Ze(f,d,"playbackRate"),We(f,d,"buffer"),We(f,d,"loop"),We(f,d,"loopEnd"),We(f,d,"loopStart"),e(t,()=>t(h))||LS(f),e(s,()=>s(h))||c(f),e(r,()=>r(h))||l(f,h),e(i,()=>i(h))||Yu(f),e(o,()=>o(h))||u(f,h),e(a,()=>a(h))||Gu(f),n(h,f),f},zS=n=>n===null?null:n.hasOwnProperty("AudioContext")?n.AudioContext:n.hasOwnProperty("webkitAudioContext")?n.webkitAudioContext:null,VS=(n,e)=>(t,s,r)=>{const i=t.destination;if(i.channelCount!==s)try{i.channelCount=s}catch{}r&&i.channelCountMode!=="explicit"&&(i.channelCountMode="explicit"),i.maxChannelCount===0&&Object.defineProperty(i,"maxChannelCount",{value:s});const o=n(t,{channelCount:s,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},US=n=>n===null?null:n.hasOwnProperty("AudioWorkletNode")?n.AudioWorkletNode:null,BS=n=>{const{port1:e}=new MessageChannel;try{e.postMessage(n)}finally{e.close()}},WS=(n,e,t,s,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 n()}},channelCountMode:{get:()=>"explicit",set:()=>{throw n()}},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]=k=>{k.type==="error"?(Object.defineProperties(k,{type:{value:"processorerror"}}),g(k)):g(new ErrorEvent(p[0],{...k}))},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?s():h}if(l===void 0)throw s();return BS(u),e(i,o,l,u)},Cm=(n,e)=>n===null?512:Math.max(512,Math.min(16384,Math.pow(2,Math.round(Math.log2(n*e))))),qS=n=>new Promise((e,t)=>{const{port1:s,port2:r}=new MessageChannel;s.onmessage=({data:i})=>{s.close(),r.close(),e(i)},s.onmessageerror=({data:i})=>{s.close(),r.close(),t(i)},r.postMessage(n)}),HS=async(n,e)=>{const t=await qS(e);return new n(t)},YS=(n,e,t,s)=>{let r=Hl.get(n);r===void 0&&(r=new WeakMap,Hl.set(n,r));const i=HS(t,s);return r.set(e,i),i},GS=(n,e,t,s,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 k=g.channelCount*g.numberOfInputs,T=_.reduce((H,P)=>H+P,0),b=p.parameterDescriptors===void 0?0:p.parameterDescriptors.length;if(k+b>6||T>6)throw c();const y=new MessageChannel,x=[],E=[];for(let H=0;HH===void 0?0:H},maxValue:{get:()=>P===void 0?xt:P},minValue:{get:()=>R===void 0?St:R}}),w.push(se)}const C=s(f,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:Math.max(1,k+b)}),A=Cm(m,f.sampleRate),D=a(f,A,k+b,Math.max(1,T)),O=r(f,{channelCount:Math.max(1,T),channelCountMode:"explicit",channelInterpretation:"discrete",numberOfOutputs:Math.max(1,T)}),L=[];for(let H=0;H{const R=w[P];return R.connect(C,0,k+P),R.start(0),[H,R.offset]}));C.connect(D);let W=g.channelInterpretation,V=null;const U=g.numberOfOutputs===0?[D]:L,B={get bufferSize(){return A},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 x)P.channelInterpretation=H;W=H},get context(){return D.context},get inputs(){return x},get numberOfInputs(){return g.numberOfInputs},get numberOfOutputs(){return g.numberOfOutputs},get onprocessorerror(){return V},set onprocessorerror(H){typeof V=="function"&&B.removeEventListener("processorerror",V),V=typeof H=="function"?H:null,typeof V=="function"&&B.addEventListener("processorerror",V)},get parameters(){return j},get port(){return y.port2},addEventListener(...H){return D.addEventListener(H[0],H[1],H[2])},connect:n.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 J=null;YS(f,B,p,g).then(H=>J=H);const z=Fa(g.numberOfInputs,g.channelCount),S=Fa(g.numberOfOutputs,_),I=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(J!==null){const R=h(B);for(let Q=0;Q{$a(H,I,se,k+le,Q)});for(let se=0;se{if(R[et].size>0)return q.set(et,A/128),be;const fe=q.get(et);return fe===void 0?[]:(be.every(tt=>tt.every(at=>at===0))&&(fe===1?q.delete(et):q.set(et,fe-1)),be)});Y=u(f.currentTime+Q/f.sampleRate,f.sampleRate,()=>J.process(se,S,I));for(let be=0,et=0;beD.connect(re).connect(f.destination),ne=()=>{D.disconnect(re),re.disconnect()},ge=()=>{if(Y){ne(),g.numberOfOutputs>0&&D.connect(O);for(let H=0,P=0;H{Y&&(ie(),$()),oe=!1};return ie(),d(B,ge,te)},Sm=(n,e)=>{const t=n.createBiquadFilter();return ct(t,e),Ze(t,e,"Q"),Ze(t,e,"detune"),Ze(t,e,"frequency"),Ze(t,e,"gain"),We(t,e,"type"),t},XS=(n,e)=>(t,s)=>{const r=t.createChannelMerger(s.numberOfInputs);return n!==null&&n.name==="webkitAudioContext"&&e(t,r),ct(r,s),r},ZS=n=>{const e=n.numberOfOutputs;Object.defineProperty(n,"channelCount",{get:()=>e,set:t=>{if(t!==e)throw ht()}}),Object.defineProperty(n,"channelCountMode",{get:()=>"explicit",set:t=>{if(t!=="explicit")throw ht()}}),Object.defineProperty(n,"channelInterpretation",{get:()=>"discrete",set:t=>{if(t!=="discrete")throw ht()}})},So=(n,e)=>{const t=n.createChannelSplitter(e.numberOfOutputs);return ct(t,e),ZS(t),t},KS=(n,e,t,s,r)=>(i,o)=>{if(i.createConstantSource===void 0)return t(i,o);const a=i.createConstantSource();return ct(a,o),Ze(a,o,"offset"),e(s,()=>s(i))||Yu(a),e(r,()=>r(i))||Gu(a),n(i,a),a},ii=(n,e)=>(n.connect=e.connect.bind(e),n.disconnect=e.disconnect.bind(e),n),QS=(n,e,t,s)=>(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 n(r,c),s(ii(h,l),d,f)},JS=(n,e)=>(t,s)=>{const r=t.createConvolver();if(ct(r,s),s.disableNormalization===r.normalize&&(r.normalize=!s.disableNormalization),We(r,s,"buffer"),s.channelCount>2||(e(r,"channelCount",i=>()=>i.call(r),i=>o=>{if(o>2)throw n();return i.call(r,o)}),s.channelCountMode==="max"))throw n();return e(r,"channelCountMode",i=>()=>i.call(r),i=>o=>{if(o==="max")throw n();return i.call(r,o)}),r},Om=(n,e)=>{const t=n.createDelay(e.maxDelayTime);return ct(t,e),Ze(t,e,"delayTime"),t},eO=n=>(e,t)=>{const s=e.createDynamicsCompressor();if(ct(s,t),t.channelCount>2||t.channelCountMode==="max")throw n();return Ze(s,t,"attack"),Ze(s,t,"knee"),Ze(s,t,"ratio"),Ze(s,t,"release"),Ze(s,t,"threshold"),s},Nt=(n,e)=>{const t=n.createGain();return ct(t,e),Ze(t,e,"gain"),t},tO=n=>(e,t,s)=>{if(e.createIIRFilter===void 0)return n(e,t,s);const r=e.createIIRFilter(s.feedforward,s.feedback);return ct(r,s),r};function nO(n,e){const t=e[0]*e[0]+e[1]*e[1];return[(n[0]*e[0]+n[1]*e[1])/t,(n[1]*e[0]-n[0]*e[1])/t]}function sO(n,e){return[n[0]*e[0]-n[1]*e[1],n[0]*e[1]+n[1]*e[0]]}function Pf(n,e){let t=[0,0];for(let s=n.length-1;s>=0;s-=1)t=sO(t,e),t[0]+=n[s];return t}const rO=(n,e,t,s)=>(r,i,{channelCount:o,channelCountMode:a,channelInterpretation:c,feedback:l,feedforward:u})=>{const h=Cm(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 s();if(d[0]===0)throw e();if(p===0||p>20)throw s();if(f[0]===0)throw e();if(d[0]!==1){for(let w=0;w{const C=w.inputBuffer,A=w.outputBuffer,D=C.numberOfChannels;for(let O=0;On.createMediaElementSource(e.mediaElement),oO=(n,e)=>{const t=n.createMediaStreamDestination();return ct(t,e),t.numberOfOutputs===1&&Object.defineProperty(t,"numberOfOutputs",{get:()=>0}),t},aO=(n,{mediaStream:e})=>{const t=e.getAudioTracks();t.sort((i,o)=>i.ido.id?1:0);const s=t.slice(0,1),r=n.createMediaStreamSource(new MediaStream(s));return Object.defineProperty(r,"mediaStream",{value:e}),r},cO=(n,e)=>(t,{mediaStreamTrack:s})=>{if(typeof t.createMediaStreamTrackSource=="function")return t.createMediaStreamTrackSource(s);const r=new MediaStream([s]),i=t.createMediaStreamSource(r);if(s.kind!=="audio")throw n();if(e(t))throw new TypeError;return i},lO=n=>n===null?null:n.hasOwnProperty("OfflineAudioContext")?n.OfflineAudioContext:n.hasOwnProperty("webkitOfflineAudioContext")?n.webkitOfflineAudioContext:null,uO=(n,e,t,s,r,i)=>(o,a)=>{const c=o.createOscillator();return ct(c,a),Ze(c,a,"detune"),Ze(c,a,"frequency"),a.periodicWave!==void 0?c.setPeriodicWave(a.periodicWave):We(c,a,"type"),e(t,()=>t(o))||Yu(c),e(s,()=>s(o))||i(c,o),e(r,()=>r(o))||Gu(c),n(o,c),c},hO=n=>(e,t)=>{const s=e.createPanner();return s.orientationX===void 0?n(e,t):(ct(s,t),Ze(s,t,"orientationX"),Ze(s,t,"orientationY"),Ze(s,t,"orientationZ"),Ze(s,t,"positionX"),Ze(s,t,"positionY"),Ze(s,t,"positionZ"),We(s,t,"coneInnerAngle"),We(s,t,"coneOuterAngle"),We(s,t,"coneOuterGain"),We(s,t,"distanceModel"),We(s,t,"maxDistance"),We(s,t,"panningModel"),We(s,t,"refDistance"),We(s,t,"rolloffFactor"),s)},dO=(n,e,t,s,r,i,o,a,c,l)=>(u,{coneInnerAngle:h,coneOuterAngle:d,coneOuterGain:f,distanceModel:m,maxDistance:p,orientationX:g,orientationY:_,orientationZ:k,panningModel:T,positionX:b,positionY:y,positionZ:x,refDistance:E,rolloffFactor:w,...C})=>{const A=u.createPanner();if(C.channelCount>2||C.channelCountMode==="max")throw o();ct(A,C);const D={channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete"},O=t(u,{...D,channelInterpretation:"speakers",numberOfInputs:6}),L=s(u,{...C,gain:1}),j=s(u,{...D,gain:1}),W=s(u,{...D,gain:0}),V=s(u,{...D,gain:0}),U=s(u,{...D,gain:0}),B=s(u,{...D,gain:0}),X=s(u,{...D,gain:0}),K=r(u,256,6,1),J=i(u,{...D,curve:new Float32Array([1,1]),oversample:"none"});let F=[g,_,k],z=[b,y,x];const S=new Float32Array(1);K.onaudioprocess=({inputBuffer:q})=>{const oe=[c(q,S,0),c(q,S,1),c(q,S,2)];oe.some((ie,ne)=>ie!==F[ne])&&(A.setOrientation(...oe),F=oe);const re=[c(q,S,3),c(q,S,4),c(q,S,5)];re.some((ie,ne)=>ie!==z[ne])&&(A.setPosition(...re),z=re)},Object.defineProperty(W.gain,"defaultValue",{get:()=>0}),Object.defineProperty(V.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 A.channelCount},set channelCount(q){if(q>2)throw o();L.channelCount=q,A.channelCount=q},get channelCountMode(){return A.channelCountMode},set channelCountMode(q){if(q==="max")throw o();L.channelCountMode=q,A.channelCountMode=q},get channelInterpretation(){return A.channelInterpretation},set channelInterpretation(q){L.channelInterpretation=q,A.channelInterpretation=q},get coneInnerAngle(){return A.coneInnerAngle},set coneInnerAngle(q){A.coneInnerAngle=q},get coneOuterAngle(){return A.coneOuterAngle},set coneOuterAngle(q){A.coneOuterAngle=q},get coneOuterGain(){return A.coneOuterGain},set coneOuterGain(q){if(q<0||q>1)throw e();A.coneOuterGain=q},get context(){return A.context},get distanceModel(){return A.distanceModel},set distanceModel(q){A.distanceModel=q},get inputs(){return[L]},get maxDistance(){return A.maxDistance},set maxDistance(q){if(q<0)throw new RangeError;A.maxDistance=q},get numberOfInputs(){return A.numberOfInputs},get numberOfOutputs(){return A.numberOfOutputs},get orientationX(){return j.gain},get orientationY(){return W.gain},get orientationZ(){return V.gain},get panningModel(){return A.panningModel},set panningModel(q){A.panningModel=q},get positionX(){return U.gain},get positionY(){return B.gain},get positionZ(){return X.gain},get refDistance(){return A.refDistance},set refDistance(q){if(q<0)throw new RangeError;A.refDistance=q},get rolloffFactor(){return A.rolloffFactor},set rolloffFactor(q){if(q<0)throw new RangeError;A.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!==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=_),k!==I.orientationZ.value&&(I.orientationZ.value=k),T!==I.panningModel&&(I.panningModel=T),b!==I.positionX.value&&(I.positionX.value=b),y!==I.positionY.value&&(I.positionY.value=y),x!==I.positionZ.value&&(I.positionZ.value=x),E!==I.refDistance&&(I.refDistance=E),w!==I.rolloffFactor&&(I.rolloffFactor=w),(F[0]!==1||F[1]!==0||F[2]!==0)&&A.setOrientation(...F),(z[0]!==0||z[1]!==0||z[2]!==0)&&A.setPosition(...z);const Y=()=>{L.connect(A),n(L,J,0,0),J.connect(j).connect(O,0,0),J.connect(W).connect(O,0,1),J.connect(V).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)},$=()=>{L.disconnect(A),a(L,J,0,0),J.disconnect(j),j.disconnect(O),J.disconnect(W),W.disconnect(O),J.disconnect(V),V.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(ii(I,A),Y,$)},fO=n=>(e,{disableNormalization:t,imag:s,real:r})=>{const i=s instanceof Float32Array?s:new Float32Array(s),o=r instanceof Float32Array?r:new Float32Array(r),a=e.createPeriodicWave(o,i,{disableNormalization:t});if(Array.from(s).length<2)throw n();return a},Oo=(n,e,t,s)=>n.createScriptProcessor(e,t,s),pO=(n,e)=>(t,s)=>{const r=s.channelCountMode;if(r==="clamped-max")throw e();if(t.createStereoPanner===void 0)return n(t,s);const i=t.createStereoPanner();return ct(i,s),Ze(i,s,"pan"),Object.defineProperty(i,"channelCountMode",{get:()=>r,set:o=>{if(o!==r)throw e()}}),i},mO=(n,e,t,s,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 k=new Float32Array(16385),T=new Float32Array(16385);for(let C=0;C<16385;C+=1){const A=C/16384*c;k[C]=Math.cos(A),T[C]=Math.sin(A)}const b=t(m,{...l,gain:0}),y=s(m,{...u,curve:k}),x=s(m,{...u,curve:a}),E=t(m,{...l,gain:0}),w=s(m,{...u,curve:T});return{connectGraph(){p.connect(b),p.connect(x.inputs===void 0?x:x.inputs[0]),p.connect(E),x.connect(g),g.connect(y.inputs===void 0?y:y.inputs[0]),g.connect(w.inputs===void 0?w:w.inputs[0]),y.connect(b.gain),w.connect(E.gain),b.connect(_,0,0),E.connect(_,0,1)},disconnectGraph(){p.disconnect(b),p.disconnect(x.inputs===void 0?x:x.inputs[0]),p.disconnect(E),x.disconnect(g),g.disconnect(y.inputs===void 0?y:y.inputs[0]),g.disconnect(w.inputs===void 0?w:w.inputs[0]),y.disconnect(b.gain),w.disconnect(E.gain),b.disconnect(_,0,0),E.disconnect(_,0,1)}}},d=(m,p,g,_)=>{const k=new Float32Array(16385),T=new Float32Array(16385),b=new Float32Array(16385),y=new Float32Array(16385),x=Math.floor(16385/2);for(let U=0;U<16385;U+=1)if(U>x){const B=(U-x)/(16384-x)*c;k[U]=Math.cos(B),T[U]=Math.sin(B),b[U]=0,y[U]=1}else{const B=U/(16384-x)*c;k[U]=1,T[U]=0,b[U]=Math.cos(B),y[U]=Math.sin(B)}const E=e(m,{channelCount:2,channelCountMode:"explicit",channelInterpretation:"discrete",numberOfOutputs:2}),w=t(m,{...l,gain:0}),C=s(m,{...u,curve:k}),A=t(m,{...l,gain:0}),D=s(m,{...u,curve:T}),O=s(m,{...u,curve:a}),L=t(m,{...l,gain:0}),j=s(m,{...u,curve:b}),W=t(m,{...l,gain:0}),V=s(m,{...u,curve:y});return{connectGraph(){p.connect(E),p.connect(O.inputs===void 0?O:O.inputs[0]),E.connect(w,0),E.connect(A,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(V.inputs===void 0?V:V.inputs[0]),C.connect(w.gain),D.connect(A.gain),j.connect(L.gain),V.connect(W.gain),w.connect(_,0,0),L.connect(_,0,0),A.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(A,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(V.inputs===void 0?V:V.inputs[0]),C.disconnect(w.gain),D.disconnect(A.gain),j.disconnect(L.gain),V.disconnect(W.gain),w.disconnect(_,0,0),L.disconnect(_,0,0),A.disconnect(_,0,1),W.disconnect(_,0,1)}}},f=(m,p,g,_,k)=>{if(p===1)return h(m,g,_,k);if(p===2)return d(m,g,_,k);throw r()};return(m,{channelCount:p,channelCountMode:g,pan:_,...k})=>{if(g==="max")throw r();const T=n(m,{...k,channelCount:1,channelCountMode:g,numberOfInputs:2}),b=t(m,{...k,channelCount:p,channelCountMode:g,gain:1}),y=t(m,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:_});let{connectGraph:x,disconnectGraph:E}=f(m,p,b,y,T);Object.defineProperty(y.gain,"defaultValue",{get:()=>0}),Object.defineProperty(y.gain,"maxValue",{get:()=>1}),Object.defineProperty(y.gain,"minValue",{get:()=>-1});const w={get bufferSize(){},get channelCount(){return b.channelCount},set channelCount(O){b.channelCount!==O&&(C&&E(),{connectGraph:x,disconnectGraph:E}=f(m,O,b,y,T),C&&x()),b.channelCount=O},get channelCountMode(){return b.channelCountMode},set channelCountMode(O){if(O==="clamped-max"||O==="max")throw r();b.channelCountMode=O},get channelInterpretation(){return b.channelInterpretation},set channelInterpretation(O){b.channelInterpretation=O},get context(){return b.context},get inputs(){return[b]},get numberOfInputs(){return b.numberOfInputs},get numberOfOutputs(){return b.numberOfOutputs},get pan(){return y.gain},addEventListener(...O){return b.addEventListener(O[0],O[1],O[2])},dispatchEvent(...O){return b.dispatchEvent(O[0])},removeEventListener(...O){return b.removeEventListener(O[0],O[1],O[2])}};let C=!1;const A=()=>{x(),C=!0},D=()=>{E(),C=!1};return i(ii(w,T),A,D)}},gO=(n,e,t,s,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);ct(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();We(l,{curve:u},"curve"),We(l,c,"oversample");let h=null,d=!1;return o(l,"curve",p=>()=>p.call(l),p=>g=>(p.call(l,g),d&&(s(g)&&h===null?h=n(a,l):!s(g)&&h!==null&&(h(),h=null)),g)),r(l,()=>{d=!0,s(l.curve)&&(h=n(a,l))},()=>{d=!1,h!==null&&(h(),h=null)})},_O=(n,e,t,s,r)=>(i,{curve:o,oversample:a,...c})=>{const l=i.createWaveShaper(),u=i.createWaveShaper();ct(l,c),ct(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 k={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 x=y.length,E=new Float32Array(x+2-x%2),w=new Float32Array(x+2-x%2);E[0]=y[0],w[0]=-y[x-1];const C=Math.ceil((x+1)/2),A=(x+1)/2-1;for(let D=1;D{h.connect(l).connect(f),h.connect(d).connect(u).connect(m).connect(f),g=!0,s(_)&&(p=n(i,h))},b=()=>{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(ii(k,f),T,b)},Et=()=>new DOMException("","NotSupportedError"),yO={numberOfChannels:1},vO=(n,e,t,s,r)=>class extends n{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}={...yO,...l},f=s(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,vm(this)}))}_waitForThePromiseToSettle(o){this._state===null?this._nativeOfflineAudioContext.dispatchEvent(o):setTimeout(()=>this._waitForThePromiseToSettle(o))}},bO={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",detune:0,frequency:440,periodicWave:void 0,type:"sine"},xO=(n,e,t,s,r,i,o)=>class extends n{constructor(c,l){const u=r(c),h={...bO,...l},d=t(u,h),f=i(u),m=f?s():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),qn(this)&&ko(this)};this._nativeOscillatorNode.addEventListener("ended",l)}}stop(c=0){this._nativeOscillatorNode.stop(c),this._oscillatorNodeRenderer!==null&&(this._oscillatorNodeRenderer.stop=c)}},wO=(n,e,t,s,r)=>()=>{const i=new WeakMap;let o=null,a=null,c=null;const l=async(u,h)=>{let d=t(u);const f=vt(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 n(h,u.detune,d.detune),await n(h,u.frequency,d.frequency)):(await s(h,u.detune,d.detune),await s(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)}}},TO={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=(n,e,t,s,r,i,o)=>class extends n{constructor(c,l){const u=r(c),h={...TO,...l},d=t(u,h),f=i(u),m=f?s():null;super(c,!1,d,m),this._nativePannerNode=d,this._orientationX=e(this,f,d.orientationX,xt,St),this._orientationY=e(this,f,d.orientationY,xt,St),this._orientationZ=e(this,f,d.orientationZ,xt,St),this._positionX=e(this,f,d.positionX,xt,St),this._positionY=e(this,f,d.positionY,xt,St),this._positionZ=e(this,f,d.positionZ,xt,St),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}},EO=(n,e,t,s,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},k={..._,coneInnerAngle:g.coneInnerAngle,coneOuterAngle:g.coneOuterAngle,coneOuterGain:g.coneOuterGain,distanceModel:g.distanceModel,maxDistance:g.maxDistance,panningModel:g.panningModel,refDistance:g.refDistance,rolloffFactor:g.rolloffFactor},T=vt(g,m);if("bufferSize"in g)p=s(m,{..._,gain:1});else if(!T){const b={...k,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,b)}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 V=t(D,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",offset:W===0?1:0});return await a(D,j,V.offset),V}));for(let j=0;j<6;j+=1)L[j].connect(O,0,j),L[j].start(0);return l(D)})()}const b=await h,y=s(m,{..._,gain:1});await c(f,m,y);const x=[];for(let D=0;Dj!==E[W])||L.some((j,W)=>j!==w[W])){E=O,w=L;const j=D/m.sampleRate;C.gain.setValueAtTime(0,j),C=s(m,{..._,gain:0}),A=r(m,{...k,orientationX:E[0],orientationY:E[1],orientationZ:E[2],positionX:w[0],positionY:w[1],positionZ:w[2]}),C.gain.setValueAtTime(1,j),y.connect(C).connect(A.inputs[0]),A.connect(p)}}return p}return T?(await n(m,f.orientationX,g.orientationX),await n(m,f.orientationY,g.orientationY),await n(m,f.orientationZ,g.orientationZ),await n(m,f.positionX,g.positionX),await n(m,f.positionY,g.positionY),await n(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)),ri(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)}}},CO={disableNormalization:!1},SO=(n,e,t,s)=>class Am{constructor(i,o){const a=e(i),c=s({...CO,...o}),l=n(a,c);return t.add(l),l}static[Symbol.hasInstance](i){return i!==null&&typeof i=="object"&&Object.getPrototypeOf(i)===Am.prototype||t.has(i)}},OO=(n,e)=>(t,s,r)=>(n(s).replay(r),e(s,t,r)),AO=(n,e,t)=>async(s,r,i)=>{const o=n(s);await Promise.all(o.activeInputs.map((a,c)=>Array.from(a).map(async([l,u])=>{const d=await e(l).render(l,r),f=s.context.destination;!t(l)&&(s!==f||!t(s))&&d.connect(i,u,c)})).reduce((a,c)=>[...a,...c],[]))},RO=(n,e,t)=>async(s,r,i)=>{const o=e(s);await Promise.all(Array.from(o.activeInputs).map(async([a,c])=>{const u=await n(a).render(a,r);t(a)||u.connect(i,c)}))},DO=(n,e,t,s)=>r=>n(Wi,()=>Wi(r))?Promise.resolve(n(s,s)).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()}),PO=n=>(e,t)=>{n.set(e,t)},MO=n=>(e,t)=>n.set(e,t),NO=(n,e,t,s,r,i,o,a)=>(c,l)=>t(c).render(c,l).then(()=>Promise.all(Array.from(s(l)).map(u=>t(u).render(u,l)))).then(()=>r(l)).then(u=>(typeof u.copyFromChannel!="function"?(o(u),Wu(u)):e(i,()=>i(u))||a(u),n.add(u),u)),IO={channelCount:2,channelCountMode:"explicit",channelInterpretation:"speakers",pan:0},$O=(n,e,t,s,r,i)=>class extends n{constructor(a,c){const l=r(a),u={...IO,...c},h=t(l,u),d=i(l),f=d?s():null;super(a,!1,h,f),this._pan=e(this,d,h.pan)}get pan(){return this._pan}},FO=(n,e,t,s,r)=>()=>{const i=new WeakMap,o=async(a,c)=>{let l=t(a);const u=vt(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 n(c,a.pan,l.pan):await s(c,a.pan,l.pan),ri(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)}}},LO=n=>()=>{if(n===null)return!1;try{new n({length:1,sampleRate:44100})}catch{return!1}return!0},jO=(n,e)=>async()=>{if(n===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"}),s=new e(1,128,44100),r=URL.createObjectURL(t);let i=!1,o=!1;try{await s.audioWorklet.addModule(r);const a=new n(s,"a",{numberOfOutputs:0}),c=s.createOscillator();a.port.onmessage=()=>i=!0,a.onprocessorerror=()=>o=!0,c.connect(a),c.start(0),await s.startRendering(),await new Promise(l=>setTimeout(l))}catch{}finally{URL.revokeObjectURL(r)}return i&&!o},zO=(n,e)=>()=>{if(e===null)return Promise.resolve(!1);const t=new e(1,1,44100),s=n(t,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:0});return new Promise(r=>{t.oncomplete=()=>{s.disconnect(),r(t.currentTime!==0)},t.startRendering()})},VO=()=>new DOMException("","UnknownError"),UO={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",curve:null,oversample:"none"},BO=(n,e,t,s,r,i,o)=>class extends n{constructor(c,l){const u=r(c),h={...UO,...l},d=t(u,h),m=i(u)?s():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}},WO=(n,e,t)=>()=>{const s=new WeakMap,r=async(i,o)=>{let a=e(i);if(!vt(a,o)){const l={channelCount:a.channelCount,channelCountMode:a.channelCountMode,channelInterpretation:a.channelInterpretation,curve:a.curve,oversample:a.oversample};a=n(o,l)}return s.set(o,a),ri(a)?await t(i,o,a.inputs[0]):await t(i,o,a),a};return{render(i,o){const a=s.get(o);return a!==void 0?Promise.resolve(a):r(i,o)}}},qO=()=>typeof window>"u"?null:window,HO=(n,e)=>t=>{t.copyFromChannel=(s,r,i=0)=>{const o=n(i),a=n(r);if(a>=t.numberOfChannels)throw e();const c=t.length,l=t.getChannelData(a),u=s.length;for(let h=o<0?-o:0;h+o{const o=n(i),a=n(r);if(a>=t.numberOfChannels)throw e();const c=t.length,l=t.getChannelData(a),u=s.length;for(let h=o<0?-o:0;h+oe=>{e.copyFromChannel=(t=>(s,r,i=0)=>{const o=n(i),a=n(r);if(o(s,r,i=0)=>{const o=n(i),a=n(r);if(o(e,t)=>{const s=t.createBuffer(1,1,44100);e.buffer===null&&(e.buffer=s),n(e,"buffer",r=>()=>{const i=r.call(e);return i===s?null:i},r=>i=>r.call(e,i===null?s:i))},XO=(n,e)=>(t,s)=>{s.channelCount=1,s.channelCountMode="explicit",Object.defineProperty(s,"channelCount",{get:()=>1,set:()=>{throw n()}}),Object.defineProperty(s,"channelCountMode",{get:()=>"explicit",set:()=>{throw n()}});const r=t.createBufferSource();e(s,()=>{const a=s.numberOfInputs;for(let c=0;cr.disconnect(s))},Rm=(n,e,t)=>n.copyFromChannel===void 0?n.getChannelData(t)[0]:(n.copyFromChannel(e,t),e[0]),Dm=n=>{if(n===null)return!1;const e=n.length;return e%2!==0?n[Math.floor(e/2)]!==0:n[e/2-1]+n[e/2]!==0},Ao=(n,e,t,s)=>{let r=n;for(;!r.hasOwnProperty(e);)r=Object.getPrototypeOf(r);const{get:i,set:o}=Object.getOwnPropertyDescriptor(r,e);Object.defineProperty(n,e,{get:t(i),set:s(o)})},ZO=n=>({...n,outputChannelCount:n.outputChannelCount!==void 0?n.outputChannelCount:n.numberOfInputs===1&&n.numberOfOutputs===1?[n.channelCount]:Array.from({length:n.numberOfOutputs},()=>1)}),KO=n=>({...n,channelCount:n.numberOfOutputs}),QO=n=>{const{imag:e,real:t}=n;return e===void 0?t===void 0?{...n,imag:[0,0],real:[0,0]}:{...n,imag:Array.from(t,()=>0),real:t}:t===void 0?{...n,imag:e,real:Array.from(e,()=>0)}:{...n,imag:e,real:t}},Pm=(n,e,t)=>{try{n.setValueAtTime(e,t)}catch(s){if(s.code!==9)throw s;Pm(n,e,t+1e-7)}},JO=n=>{const e=n.createBufferSource();e.start();try{e.start()}catch{return!0}return!1},e2=n=>{const e=n.createBufferSource(),t=n.createBuffer(1,1,44100);e.buffer=t;try{e.start(0,1)}catch{return!1}return!0},t2=n=>{const e=n.createBufferSource();e.start();try{e.stop()}catch{return!1}return!0},Xu=n=>{const e=n.createOscillator();try{e.start(-1)}catch(t){return t instanceof RangeError}return!1},Mm=n=>{const e=n.createBuffer(1,1,44100),t=n.createBufferSource();t.buffer=e,t.start(),t.stop();try{return t.stop(),!0}catch{return!1}},Zu=n=>{const e=n.createOscillator();try{e.stop(-1)}catch(t){return t instanceof RangeError}return!1},n2=n=>{const{port1:e,port2:t}=new MessageChannel;try{e.postMessage(n)}finally{e.close(),t.close()}},s2=n=>{n.start=(e=>(t=0,s=0,r)=>{const i=n.buffer,o=i===null?s:Math.min(i.duration,s);i!==null&&o>i.duration-.5/n.context.sampleRate?e.call(n,t,0,0):e.call(n,t,o,r)})(n.start)},Nm=(n,e)=>{const t=e.createGain();n.connect(t);const s=(r=>()=>{r.call(n,t),n.removeEventListener("ended",s)})(n.disconnect);n.addEventListener("ended",s),ii(n,t),n.stop=(r=>{let i=!1;return(o=0)=>{if(i)try{r.call(n,o)}catch{t.gain.setValueAtTime(0,o)}else r.call(n,o),i=!0}})(n.stop)},oi=(n,e)=>t=>{const s={value:n};return Object.defineProperties(t,{currentTarget:s,target:s}),typeof e=="function"?e.call(n,t):e.handleEvent.call(n,t)},r2=kE(cr),i2=RE(cr),o2=UC(yc),Im=new WeakMap,a2=oS(Im),_n=yC(new Map,new WeakMap),An=qO(),$m=$S(_n,Dn),Ku=iS(kt),ft=AO(kt,Ku,er),c2=IE($m,Be,ft),ze=lS(_c),ss=lO(An),Pe=CS(ss),Fm=new WeakMap,Lm=QC(oi),Ro=zS(An),Qu=wS(Ro),Ju=TS(An),jm=kS(An),qi=US(An),it=oC(EE(dm),AE(r2,i2,Ma,o2,Na,kt,a2,To,Be,cr,qn,er,oa),_n,_S(Wl,Na,kt,Be,Bi,qn),Dn,vc,Et,LC(Ma,Wl,kt,Be,Bi,ze,qn,Pe),qC(Fm,kt,fn),Lm,ze,Qu,Ju,jm,Pe,qi),l2=NE(it,c2,Dn,$m,ze,Pe),eh=new WeakSet,Mf=FS(An),zm=DC(new Uint32Array(1)),th=HO(zm,Dn),nh=YO(zm),Vm=FE(eh,_n,Et,Mf,ss,LO(Mf),th,nh),bc=DE(Nt),Um=RO(Ku,Eo,er),Pn=EC(Um),ai=jS(bc,_n,JO,e2,t2,Xu,Mm,Zu,s2,GO(Ao),Nm),Mn=OO(aS(Eo),Um),u2=zE(Pn,ai,Be,Mn,ft),yn=aC(CE(fm),Fm,Bu,cC,yE,vE,bE,xE,wE,Vl,um,Ro,Pm),h2=jE(it,u2,yn,ht,ai,ze,Pe,oi),d2=XE(it,ZE,Dn,ht,VS(Nt,Ao),ze,Pe,ft),f2=_C(Pn,Sm,Be,Mn,ft),lr=MO(Im),p2=gC(it,yn,f2,vc,Sm,ze,Pe,lr),Rs=NS(cr,Ju),m2=XO(ht,Rs),Ds=XS(Ro,m2),g2=xC(Ds,Be,ft),_2=bC(it,g2,Ds,ze,Pe),y2=kC(So,Be,ft),v2=TC(it,y2,So,ze,Pe,KO),b2=QS(bc,ai,Nt,Rs),ci=KS(bc,_n,b2,Xu,Zu),x2=RC(Pn,ci,Be,Mn,ft),w2=AC(it,yn,x2,ci,ze,Pe,oi),Bm=JS(Et,Ao),T2=NC(Bm,Be,ft),k2=MC(it,T2,Bm,ze,Pe,lr),E2=VC(Pn,Om,Be,Mn,ft),C2=zC(it,yn,E2,Om,ze,Pe,lr),Wm=eO(Et),S2=XC(Pn,Wm,Be,Mn,ft),O2=GC(it,yn,S2,Wm,Et,ze,Pe,lr),A2=sS(Pn,Nt,Be,Mn,ft),R2=nS(it,yn,A2,Nt,ze,Pe),D2=rO(vc,ht,Oo,Et),xc=DO(_n,Nt,Oo,zO(Nt,ss)),P2=gS(ai,Be,ss,ft,xc),M2=tO(D2),N2=pS(it,M2,P2,ze,Pe,lr),I2=KE(yn,Ds,ci,Oo,Et,Rm,Pe,Ao),qm=new WeakMap,$2=MS(d2,I2,Lm,Pe,qm,oi),Hm=uO(bc,_n,Xu,Mm,Zu,Nm),F2=wO(Pn,Hm,Be,Mn,ft),L2=xO(it,yn,Hm,F2,ze,Pe,oi),Ym=SC(ai),j2=_O(Ym,ht,Nt,Dm,Rs),wc=gO(Ym,ht,j2,Dm,Rs,Ro,Ao),z2=dO(Ma,ht,Ds,Nt,Oo,wc,Et,Na,Rm,Rs),Gm=hO(z2),V2=EO(Pn,Ds,ci,Nt,Gm,Be,ss,Mn,ft,xc),U2=kO(it,yn,Gm,V2,ze,Pe,lr),B2=fO(Dn),W2=SO(B2,ze,new WeakSet,QO),q2=mO(Ds,So,Nt,wc,Et,Rs),Xm=pO(q2,Et),H2=FO(Pn,Xm,Be,Mn,ft),Y2=$O(it,yn,Xm,H2,ze,Pe),G2=WO(wc,Be,ft),X2=BO(it,ht,wc,G2,ze,Pe,lr),Zm=SS(An),sh=JC(An),Km=new WeakMap,Z2=uS(Km,ss),K2=Zm?OE(_n,Et,KC(An),sh,eS(TE),ze,Z2,Pe,qi,new WeakMap,new WeakMap,jO(qi,ss),An):void 0,Q2=ES(Qu,Pe),J2=FC(eh,_n,$C,ZC,new WeakSet,ze,Q2,Da,Wi,th,nh),Qm=pC(K2,l2,Vm,h2,p2,_2,v2,w2,k2,J2,C2,O2,R2,N2,$2,L2,U2,W2,Y2,X2),eA=OS(it,iO,ze,Pe),tA=RS(it,oO,ze,Pe),nA=DS(it,aO,ze,Pe),sA=cO(ht,Pe),rA=PS(it,sA,ze),iA=GE(Qm,ht,Et,VO,eA,tA,nA,rA,Ro),rh=hS(qm),oA=PE(rh),Jm=CC(Dn),aA=BC(rh),eg=HC(Dn),tg=new WeakMap,cA=rS(tg,fn),lA=GS(Jm,Dn,ht,Ds,So,ci,Nt,Oo,Et,eg,sh,cA,Rs),uA=WS(ht,lA,Nt,Et,Rs),hA=fC(Pn,Jm,ai,Ds,So,ci,Nt,aA,eg,sh,Be,qi,ss,Mn,ft,xc),dA=cS(Km),fA=PO(tg),Nf=Zm?uC(oA,it,yn,hA,uA,kt,dA,ze,Pe,qi,ZO,fA,n2,oi):void 0,pA=IC(Et,ss),mA=NO(eh,_n,Ku,rh,xc,Da,th,nh),gA=vO(Qm,_n,ht,pA,mA),_A=yS(_c,Qu),yA=vS(Uu,Ju),vA=bS(Bu,jm),bA=xS(_c,Pe);function Ut(n){return typeof n>"u"}function xe(n){return!Ut(n)}function xA(n){return typeof n=="function"}function ws(n){return typeof n=="number"}function qs(n){return Object.prototype.toString.call(n)==="[object Object]"&&n.constructor===Object}function wA(n){return typeof n=="boolean"}function hn(n){return Array.isArray(n)}function Zn(n){return typeof n=="string"}function Ko(n){return Zn(n)&&/^([a-g]{1}(?:b|#|x|bb)?)(-?[0-9]+)/i.test(n)}function me(n,e){if(!n)throw new Error(e)}function pn(n,e,t=1/0){if(!(e<=n&&n<=t))throw new RangeError(`Value must be within [${e}, ${t}], got: ${n}`)}function ng(n){!n.isOffline&&n.state!=="running"&&ih('The AudioContext is "suspended". Invoke Tone.start() from a user action to start the audio.')}let sg=!1,If=!1;function $f(n){sg=n}function TA(n){Ut(n)&&sg&&!If&&(If=!0,ih("Events scheduled inside of scheduled callbacks should use the passed in scheduling time. See https://github.com/Tonejs/Tone.js/wiki/Accurate-Timing"))}let rg=console;function kA(...n){rg.log(...n)}function ih(...n){rg.warn(...n)}function EA(n){return new iA(n)}function CA(n,e,t){return new gA(n,e,t)}const Hs=typeof self=="object"?self:null,SA=Hs&&(Hs.hasOwnProperty("AudioContext")||Hs.hasOwnProperty("webkitAudioContext"));function OA(n,e,t){return me(xe(Nf),"This node only works in a secure context (https or localhost)"),new Nf(n,e,t)}class AA{constructor(e,t,s,r){this._callback=e,this._type=t,this._minimumUpdateInterval=Math.max(128/(r||44100),.001),this.updateInterval=s,this._createClock()}_createWorker(){const e=new Blob([` +})(${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([j],{type:"application/javascript; charset=utf-8"}),V=URL.createObjectURL(W);return T.audioWorklet.addModule(V,g).then(()=>{if(a(T))return T;const U=o(T);return U.audioWorklet.addModule(V,g).then(()=>U)}).then(U=>{if(c===null)throw new SyntaxError;try{new c(U,`__sac${w}`)}catch{throw new SyntaxError}}).finally(()=>URL.revokeObjectURL(V))});return k===void 0?l.set(m,new Map([[p,b]])):k.set(p,b),b.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)}),b}},fn=(n,e)=>{const t=n.get(e);if(t===void 0)throw new Error("A value with the given key could not be found.");return t},yc=(n,e)=>{const t=Array.from(n).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[s]=t;return n.delete(s),s},mm=(n,e,t,s)=>{const r=fn(n,e),i=yc(r,o=>o[0]===t&&o[1]===s);return r.size===0&&n.delete(e),i},To=n=>fn(fm,n),Vr=n=>{if(zr.has(n))throw new Error("The AudioNode is already stored.");zr.add(n),To(n).forEach(e=>e(!0))},gm=n=>"port"in n,ko=n=>{if(!zr.has(n))throw new Error("The AudioNode is not stored.");zr.delete(n),To(n).forEach(e=>e(!1))},Yl=(n,e)=>{!gm(n)&&e.every(t=>t.size===0)&&ko(n)},OE=(n,e,t,s,r,i,o,a,c,l,u,h,d)=>{const f=new WeakMap;return(m,p,g,_,k)=>{const{activeInputs:T,passiveInputs:b}=i(p),{outputs:y}=i(m),x=a(m),E=w=>{const C=c(p),A=c(m);if(w){const D=mm(b,m,g,_);n(T,m,D,!1),!k&&!h(m)&&t(A,C,g,_),d(p)&&Vr(p)}else{const D=s(T,m,g,_);e(b,_,D,!1),!k&&!h(m)&&r(A,C,g,_);const O=o(p);if(O===0)u(p)&&Yl(p,T);else{const L=f.get(p);L!==void 0&&clearTimeout(L),f.set(p,setTimeout(()=>{u(p)&&Yl(p,T)},O*1e3))}}};return l(y,[p,g,_],w=>w[0]===p&&w[1]===g&&w[2]===_,!0)?(x.add(E),u(m)?n(T,m,[g,_,E],!0):e(b,_,[m,g,E],!0),!0):!1}},AE=n=>(e,t,[s,r,i],o)=>{const a=e.get(s);a===void 0?e.set(s,new Set([[r,t,i]])):n(a,[r,t,i],c=>c[0]===r&&c[1]===t,o)},RE=n=>(e,t)=>{const s=n(e,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:0});t.connect(s).connect(e.destination);const r=()=>{t.removeEventListener("ended",r),t.disconnect(s),s.disconnect()};t.addEventListener("ended",r)},DE=n=>(e,t)=>{n(e).add(t)},PE={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",fftSize:2048,maxDecibels:-30,minDecibels:-100,smoothingTimeConstant:.8},ME=(n,e,t,s,r,i)=>class extends n{constructor(a,c){const l=r(a),u={...PE,...c},h=s(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)}},vt=(n,e)=>n.context===e,NE=(n,e,t)=>()=>{const s=new WeakMap,r=async(i,o)=>{let a=e(i);if(!vt(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=n(o,l)}return s.set(o,a),await t(i,o,a),a};return{render(i,o){const a=s.get(o);return a!==void 0?Promise.resolve(a):r(i,o)}}},Da=n=>{try{n.copyToChannel(new Float32Array(1),0,-1)}catch{return!1}return!0},Dn=()=>new DOMException("","IndexSizeError"),Wu=n=>{n.getChannelData=(e=>t=>{try{return e.call(n,t)}catch(s){throw s.code===12?Dn():s}})(n.getChannelData)},IE={numberOfChannels:1},$E=(n,e,t,s,r,i,o,a)=>{let c=null;return class _m{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=s!==null&&e(i,i)?new s({length:h,numberOfChannels:d,sampleRate:f}):c.createBuffer(d,h,f);if(m.numberOfChannels===0)throw t();return typeof m.copyFromChannel!="function"?(o(m),Wu(m)):e(Da,()=>Da(m))||a(m),n.add(m),m}static[Symbol.hasInstance](u){return u!==null&&typeof u=="object"&&Object.getPrototypeOf(u)===_m.prototype||n.has(u)}}},St=-34028234663852886e22,xt=-St,qn=n=>zr.has(n),FE={buffer:null,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",loop:!1,loopEnd:0,loopStart:0,playbackRate:1},LE=(n,e,t,s,r,i,o,a)=>class extends n{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,xt,St)}get buffer(){return this._isBufferNullified?null:this._nativeAudioBufferSourceNode.buffer}set buffer(l){if(this._nativeAudioBufferSourceNode.buffer=l,l!==null){if(this._isBufferSet)throw s();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),qn(this)&&ko(this)};this._nativeAudioBufferSourceNode.addEventListener("ended",d)}}stop(l=0){this._nativeAudioBufferSourceNode.stop(l),this._audioBufferSourceNodeRenderer!==null&&(this._audioBufferSourceNodeRenderer.stop=l)}},jE=(n,e,t,s,r)=>()=>{const i=new WeakMap;let o=null,a=null;const c=async(l,u)=>{let h=t(l);const d=vt(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 n(u,l.playbackRate,h.playbackRate):await s(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)}}},zE=n=>"playbackRate"in n,VE=n=>"frequency"in n&&"gain"in n,UE=n=>"offset"in n,BE=n=>!("frequency"in n)&&"gain"in n,WE=n=>"detune"in n&&"frequency"in n,qE=n=>"pan"in n,kt=n=>fn(hm,n),Eo=n=>fn(dm,n),Gl=(n,e)=>{const{activeInputs:t}=kt(n);t.forEach(r=>r.forEach(([i])=>{e.includes(n)||Gl(i,[...e,n])}));const s=zE(n)?[n.playbackRate]:gm(n)?Array.from(n.parameters.values()):VE(n)?[n.Q,n.detune,n.frequency,n.gain]:UE(n)?[n.offset]:BE(n)?[n.gain]:WE(n)?[n.detune,n.frequency]:qE(n)?[n.pan]:[];for(const r of s){const i=Eo(r);i!==void 0&&i.activeInputs.forEach(([o])=>Gl(o,e))}qn(n)&&ko(n)},ym=n=>{Gl(n.destination,[])},HE=n=>n===void 0||typeof n=="number"||typeof n=="string"&&(n==="balanced"||n==="interactive"||n==="playback"),YE=(n,e,t,s,r,i,o,a,c)=>class extends n{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 s();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()),ym(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=(n,e,t,s,r,i,o,a)=>class extends n{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 s();if(l>this._nativeAudioDestinationNode.maxChannelCount)throw t();this._nativeAudioDestinationNode.channelCount=l}get channelCountMode(){return this._nativeAudioDestinationNode.channelCountMode}set channelCountMode(l){if(this._isNodeOfNativeOfflineAudioContext)throw s();this._nativeAudioDestinationNode.channelCountMode=l}get maxChannelCount(){return this._nativeAudioDestinationNode.maxChannelCount}},XE=n=>{const e=new WeakMap,t=async(s,r)=>{const i=r.destination;return e.set(r,i),await n(s,r,i),i};return{render(s,r){const i=e.get(r);return i!==void 0?Promise.resolve(i):t(s,r)}}},ZE=(n,e,t,s,r,i,o,a)=>(c,l)=>{const u=l.listener,h=()=>{const y=new Float32Array(1),x=e(l,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:9}),E=o(l);let w=!1,C=[0,0,-1,0,1,0],A=[0,0,0];const D=()=>{if(w)return;w=!0;const W=s(l,256,9,0);W.onaudioprocess=({inputBuffer:V})=>{const U=[i(V,y,0),i(V,y,1),i(V,y,2),i(V,y,3),i(V,y,4),i(V,y,5)];U.some((X,K)=>X!==C[K])&&(u.setOrientation(...U),C=U);const B=[i(V,y,6),i(V,y,7),i(V,y,8)];B.some((X,K)=>X!==A[K])&&(u.setPosition(...B),A=B)},x.connect(W)},O=W=>V=>{V!==C[W]&&(C[W]=V,u.setOrientation(...C))},L=W=>V=>{V!==A[W]&&(A[W]=V,u.setPosition(...A))},j=(W,V,U)=>{const B=t(l,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",offset:V});B.connect(x,0,W),B.start(),Object.defineProperty(B.offset,"defaultValue",{get(){return V}});const X=n({context:c},E,B.offset,xt,St);return a(X,"value",K=>()=>K.call(X),K=>J=>{try{K.call(X,J)}catch(F){if(F.code!==9)throw F}D(),E&&U(J)}),X.cancelAndHoldAtTime=(K=>E?()=>{throw r()}:(...J)=>{const F=K.apply(X,J);return D(),F})(X.cancelAndHoldAtTime),X.cancelScheduledValues=(K=>E?()=>{throw r()}:(...J)=>{const F=K.apply(X,J);return D(),F})(X.cancelScheduledValues),X.exponentialRampToValueAtTime=(K=>E?()=>{throw r()}:(...J)=>{const F=K.apply(X,J);return D(),F})(X.exponentialRampToValueAtTime),X.linearRampToValueAtTime=(K=>E?()=>{throw r()}:(...J)=>{const F=K.apply(X,J);return D(),F})(X.linearRampToValueAtTime),X.setTargetAtTime=(K=>E?()=>{throw r()}:(...J)=>{const F=K.apply(X,J);return D(),F})(X.setTargetAtTime),X.setValueAtTime=(K=>E?()=>{throw r()}:(...J)=>{const F=K.apply(X,J);return D(),F})(X.setValueAtTime),X.setValueCurveAtTime=(K=>E?()=>{throw r()}:(...J)=>{const F=K.apply(X,J);return D(),F})(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:k,upY:T,upZ:b}=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 k},get upY(){return T},get upZ(){return b}}},Pa=n=>"context"in n,Co=n=>Pa(n[0]),cr=(n,e,t,s)=>{for(const r of n)if(t(r)){if(s)return!1;throw Error("The set contains at least one similar element.")}return n.add(e),!0},Sf=(n,e,[t,s],r)=>{cr(n,[e,t,s],i=>i[0]===e&&i[1]===t,r)},Of=(n,[e,t,s],r)=>{const i=n.get(e);i===void 0?n.set(e,new Set([[t,s]])):cr(i,[t,s],o=>o[0]===t,r)},ri=n=>"inputs"in n,Ma=(n,e,t,s)=>{if(ri(e)){const r=e.inputs[s];return n.connect(r,t,0),[r,t,0]}return n.connect(e,t,s),[e,t,s]},vm=(n,e,t)=>{for(const s of n)if(s[0]===e&&s[1]===t)return n.delete(s),s;return null},KE=(n,e,t)=>yc(n,s=>s[0]===e&&s[1]===t),bm=(n,e)=>{if(!To(n).delete(e))throw new Error("Missing the expected event listener.")},xm=(n,e,t)=>{const s=fn(n,e),r=yc(s,i=>i[0]===t);return s.size===0&&n.delete(e),r},Na=(n,e,t,s)=>{ri(e)?n.disconnect(e.inputs[s],t,0):n.disconnect(e,t,s)},Be=n=>fn(Uu,n),Bi=n=>fn(Bu,n),er=n=>Wl.has(n),oa=n=>!zr.has(n),Af=(n,e)=>new Promise(t=>{if(e!==null)t(!0);else{const s=n.createScriptProcessor(256,1,1),r=n.createGain(),i=n.createBuffer(1,2,44100),o=i.getChannelData(0);o[0]=1,o[1]=1;const a=n.createBufferSource();a.buffer=i,a.loop=!0,a.connect(s).connect(n.destination),a.connect(r),a.disconnect(r),s.onaudioprocess=c=>{const l=c.inputBuffer.getChannelData(0);Array.prototype.some.call(l,u=>u===1)?t(!0):t(!1),a.stop(),s.onaudioprocess=null,a.disconnect(s),s.disconnect(n.destination)},a.start()}}),rl=(n,e)=>{const t=new Map;for(const s of n)for(const r of s){const i=t.get(r);t.set(r,i===void 0?1:i+1)}t.forEach((s,r)=>e(r,s))},Ia=n=>"context"in n,QE=n=>{const e=new Map;n.connect=(t=>(s,r=0,i=0)=>{const o=Ia(s)?t(s,r,i):t(s,r),a=e.get(s);return a===void 0?e.set(s,[{input:i,output:r}]):a.every(c=>c.input!==i||c.output!==r)&&a.push({input:i,output:r}),o})(n.connect.bind(n)),n.disconnect=(t=>(s,r,i)=>{if(t.apply(n),s===void 0)e.clear();else if(typeof s=="number")for(const[o,a]of e){const c=a.filter(l=>l.output!==s);c.length===0?e.delete(o):e.set(o,c)}else if(e.has(s))if(r===void 0)e.delete(s);else{const o=e.get(s);if(o!==void 0){const a=o.filter(c=>c.output!==r&&(c.input!==i||i===void 0));a.length===0?e.delete(s):e.set(s,a)}}for(const[o,a]of e)a.forEach(c=>{Ia(o)?n.connect(o,c.output,c.input):n.connect(o,c.output)})})(n.disconnect)},JE=(n,e,t,s)=>{const{activeInputs:r,passiveInputs:i}=Eo(e),{outputs:o}=kt(n),a=To(n),c=l=>{const u=Be(n),h=Bi(e);if(l){const d=xm(i,n,t);Sf(r,n,d,!1),!s&&!er(n)&&u.connect(h,t)}else{const d=KE(r,n,t);Of(i,d,!1),!s&&!er(n)&&u.disconnect(h,t)}};return cr(o,[e,t],l=>l[0]===e&&l[1]===t,!0)?(a.add(c),qn(n)?Sf(r,n,[t,c],!0):Of(i,[n,t,c],!0),!0):!1},eC=(n,e,t,s)=>{const{activeInputs:r,passiveInputs:i}=kt(e),o=vm(r[s],n,t);return o===null?[mm(i,n,t,s)[2],!1]:[o[2],!0]},tC=(n,e,t)=>{const{activeInputs:s,passiveInputs:r}=Eo(e),i=vm(s,n,t);return i===null?[xm(r,n,t)[1],!1]:[i[2],!0]},qu=(n,e,t,s,r)=>{const[i,o]=eC(n,t,s,r);if(i!==null&&(bm(n,i),o&&!e&&!er(n)&&Na(Be(n),Be(t),s,r)),qn(t)){const{activeInputs:a}=kt(t);Yl(t,a)}},Hu=(n,e,t,s)=>{const[r,i]=tC(n,t,s);r!==null&&(bm(n,r),i&&!e&&!er(n)&&Be(n).disconnect(Bi(t),s))},nC=(n,e)=>{const t=kt(n),s=[];for(const r of t.outputs)Co(r)?qu(n,e,...r):Hu(n,e,...r),s.push(r[0]);return t.outputs.clear(),s},sC=(n,e,t)=>{const s=kt(n),r=[];for(const i of s.outputs)i[1]===t&&(Co(i)?qu(n,e,...i):Hu(n,e,...i),r.push(i[0]),s.outputs.delete(i));return r},rC=(n,e,t,s,r)=>{const i=kt(n);return Array.from(i.outputs).filter(o=>o[0]===t&&(s===void 0||o[1]===s)&&(r===void 0||o[2]===r)).map(o=>(Co(o)?qu(n,e,...o):Hu(n,e,...o),i.outputs.delete(o),o[0]))},iC=(n,e,t,s,r,i,o,a,c,l,u,h,d,f,m,p)=>class extends l{constructor(_,k,T,b){super(T),this._context=_,this._nativeAudioNode=T;const y=u(_);h(y)&&t(Af,()=>Af(y,p))!==!0&&QE(T),Uu.set(this,T),fm.set(this,new Set),_.state!=="closed"&&k&&Vr(this),n(this,b,T)}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(_,k=0,T=0){if(k<0||k>=this._nativeAudioNode.numberOfOutputs)throw r();const b=u(this._context),y=m(b);if(d(_)||f(_))throw i();if(Pa(_)){const w=Be(_);try{const A=Ma(this._nativeAudioNode,w,k,T),D=oa(this);(y||D)&&this._nativeAudioNode.disconnect(...A),this.context.state!=="closed"&&!D&&oa(_)&&Vr(_)}catch(A){throw A.code===12?i():A}if(e(this,_,k,T,y)){const A=c([this],_);rl(A,s(y))}return _}const x=Bi(_);if(x.name==="playbackRate"&&x.maxValue===1024)throw o();try{this._nativeAudioNode.connect(x,k),(y||oa(this))&&this._nativeAudioNode.disconnect(x,k)}catch(w){throw w.code===12?i():w}if(JE(this,_,k,y)){const w=c([this],_);rl(w,s(y))}}disconnect(_,k,T){let b;const y=u(this._context),x=m(y);if(_===void 0)b=nC(this,x);else if(typeof _=="number"){if(_<0||_>=this.numberOfOutputs)throw r();b=sC(this,x,_)}else{if(k!==void 0&&(k<0||k>=this.numberOfOutputs)||Pa(_)&&T!==void 0&&(T<0||T>=_.numberOfInputs))throw r();if(b=rC(this,x,_,k,T),b.length===0)throw i()}for(const E of b){const w=c([this],E);rl(w,a)}}},oC=(n,e,t,s,r,i,o,a,c,l,u,h,d)=>(f,m,p,g=null,_=null)=>{const k=p.value,T=new gE(k),b=m?s(T):null,y={get defaultValue(){return k},get maxValue(){return g===null?p.maxValue:g},get minValue(){return _===null?p.minValue:_},get value(){return p.value},set value(x){p.value=x,y.setValueAtTime(x,f.context.currentTime)},cancelAndHoldAtTime(x){if(typeof p.cancelAndHoldAtTime=="function")b===null&&T.flush(f.context.currentTime),T.add(r(x)),p.cancelAndHoldAtTime(x);else{const E=Array.from(T).pop();b===null&&T.flush(f.context.currentTime),T.add(r(x));const w=Array.from(T).pop();p.cancelScheduledValues(x),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 y},cancelScheduledValues(x){return b===null&&T.flush(f.context.currentTime),T.add(i(x)),p.cancelScheduledValues(x),y},exponentialRampToValueAtTime(x,E){if(x===0)throw new RangeError;if(!Number.isFinite(E)||E<0)throw new RangeError;const w=f.context.currentTime;return b===null&&T.flush(w),Array.from(T).length===0&&(T.add(l(k,w)),p.setValueAtTime(k,w)),T.add(o(x,E)),p.exponentialRampToValueAtTime(x,E),y},linearRampToValueAtTime(x,E){const w=f.context.currentTime;return b===null&&T.flush(w),Array.from(T).length===0&&(T.add(l(k,w)),p.setValueAtTime(k,w)),T.add(a(x,E)),p.linearRampToValueAtTime(x,E),y},setTargetAtTime(x,E,w){return b===null&&T.flush(f.context.currentTime),T.add(c(x,E,w)),p.setTargetAtTime(x,E,w),y},setValueAtTime(x,E){return b===null&&T.flush(f.context.currentTime),T.add(l(x,E)),p.setValueAtTime(x,E),y},setValueCurveAtTime(x,E,w){const C=x instanceof Float32Array?x:new Float32Array(x);if(h!==null&&h.name==="webkitAudioContext"){const A=E+w,D=f.context.sampleRate,O=Math.ceil(E*D),L=Math.floor(A*D),j=L-O,W=new Float32Array(j);for(let U=0;U({replay(e){for(const t of n)if(t.type==="exponentialRampToValue"){const{endTime:s,value:r}=t;e.exponentialRampToValueAtTime(r,s)}else if(t.type==="linearRampToValue"){const{endTime:s,value:r}=t;e.linearRampToValueAtTime(r,s)}else if(t.type==="setTarget"){const{startTime:s,target:r,timeConstant:i}=t;e.setTargetAtTime(r,s,i)}else if(t.type==="setValue"){const{startTime:s,value:r}=t;e.setValueAtTime(r,s)}else if(t.type==="setValueCurve"){const{duration:s,startTime:r,values:i}=t;e.setValueCurveAtTime(i,r,s)}else throw new Error("Can't apply an unknown automation.")}});class wm{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((s,r)=>e.call(t,s,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=(n,e,t,s,r,i,o,a,c,l,u,h,d,f)=>class extends e{constructor(p,g,_){var k;const T=a(p),b=c(T),y=u({...cC,..._});d(y);const x=ql.get(T),E=x==null?void 0:x.get(g),w=b||T.state!=="closed"?T:(k=o(T))!==null&&k!==void 0?k:T,C=r(w,b?null:p.baseLatency,l,g,E,y),A=b?s(g,y,E):null;super(p,!0,C,A);const D=[];C.parameters.forEach((L,j)=>{const W=t(this,b,L);D.push([j,W])}),this._nativeAudioWorkletNode=C,this._onprocessorerror=null,this._parameters=new wm(D),b&&n(T,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(n,e,t,s,r){if(typeof n.copyFromChannel=="function")e[t].byteLength===0&&(e[t]=new Float32Array(128)),n.copyFromChannel(e[t],s,r);else{const i=n.getChannelData(s);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 Tm=(n,e,t,s,r)=>{typeof n.copyToChannel=="function"?e[t].byteLength!==0&&n.copyToChannel(e[t],s,r):e[t].byteLength!==0&&n.getChannelData(s).set(e[t],r)},Fa=(n,e)=>{const t=[];for(let s=0;s{const t=fn(Hl,n),s=Be(e);return fn(t,s)},hC=async(n,e,t,s,r,i,o)=>{const a=e===null?Math.ceil(n.context.length/128)*128:e.length,c=s.channelCount*s.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(n),d=await uC(t,n),f=Fa(s.numberOfInputs,s.channelCount),m=Fa(s.numberOfOutputs,r),p=Array.from(n.parameters.keys()).reduce((g,_)=>({...g,[_]:new Float32Array(128)}),{});for(let g=0;g0&&e!==null)for(let _=0;_{$a(e,p,_,c+k,g)});for(let _=0;_h.activeInputs[b].size===0?[]:T),k=o(g/t.sampleRate,t.sampleRate,()=>d.process(_,m,p));if(u!==null)for(let T=0,b=0;T(g,_,k)=>{const T=new WeakMap;let b=null;const y=async(x,E)=>{let w=u(x),C=null;const A=vt(w,E),D=Array.isArray(_.outputChannelCount)?_.outputChannelCount:Array.from(_.outputChannelCount);if(h===null){const O=D.reduce((V,U)=>V+U,0),L=r(E,{channelCount:Math.max(1,O),channelCountMode:"explicit",channelInterpretation:"discrete",numberOfOutputs:Math.max(1,O)}),j=[];for(let V=0;V{const J=new d(X,Math.ceil(x.context.length/128)*128,E.sampleRate),F=[],z=[];for(let Y=0;Y<_.numberOfInputs;Y+=1)F.push(o(J,{channelCount:_.channelCount,channelCountMode:_.channelCountMode,channelInterpretation:_.channelInterpretation,gain:1})),z.push(r(J,{channelCount:_.channelCount,channelCountMode:"explicit",channelInterpretation:"discrete",numberOfOutputs:_.channelCount}));const S=await Promise.all(Array.from(x.parameters.values()).map(async Y=>{const $=i(J,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",offset:Y.value});return await f(J,Y,$.offset),$})),I=s(J,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:Math.max(1,U+B)});for(let Y=0;Y<_.numberOfInputs;Y+=1){F[Y].connect(z[Y]);for(let $=0;$<_.channelCount;$+=1)z[Y].connect(I,$,Y*_.channelCount+$)}for(const[Y,$]of S.entries())$.connect(I,0,U+Y),$.start(0);return I.connect(J.destination),await Promise.all(F.map(Y=>m(x,J,Y))),p(J)})(),E,_,D,k,l)}const O=await b,L=t(E,{buffer:null,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",loop:!1,loopEnd:0,loopStart:0,playbackRate:1}),[j,W,V]=C;O!==null&&(L.buffer=O,L.start(0)),L.connect(j);for(let U=0,B=0;Uclass extends m{constructor(y,x){super(y,x),this._nativeContext=y,this._audioWorklet=n===void 0?void 0:{addModule:(E,w)=>n(this,E,w)}}get audioWorklet(){return this._audioWorklet}createAnalyser(){return new e(this)}createBiquadFilter(){return new r(this)}createBuffer(y,x,E){return new t({length:x,numberOfChannels:y,sampleRate:E})}createBufferSource(){return new s(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,x){return new f(this,{feedback:x,feedforward:y})}createOscillator(){return new p(this)}createPanner(){return new g(this)}createPeriodicWave(y,x,E={disableNormalization:!1}){return new _(this,{...E,imag:x,real:y})}createStereoPanner(){return new k(this)}createWaveShaper(){return new T(this)}decodeAudioData(y,x,E){return l(this._nativeContext,y).then(w=>(typeof x=="function"&&x(w),w),w=>{throw typeof E=="function"&&E(w),w})}},pC={Q:1,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",detune:0,frequency:350,gain:0,type:"lowpass"},mC=(n,e,t,s,r,i,o,a)=>class extends n{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,xt,St),this._detune=e(this,m,f.detune,1200*Math.log2(xt),-1200*Math.log2(xt)),this._frequency=e(this,m,f.frequency,l.sampleRate/2,0),this._gain=e(this,m,f.gain,40*Math.log10(xt),St),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?s():d}if(l.length!==u.length||u.length!==h.length)throw s()}},gC=(n,e,t,s,r)=>()=>{const i=new WeakMap,o=async(a,c)=>{let l=t(a);const u=vt(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 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 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 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=(n,e)=>(t,s)=>{const r=e.get(t);if(r!==void 0)return r;const i=n.get(t);if(i!==void 0)return i;try{const o=s();return o instanceof Promise?(n.set(t,o),o.catch(()=>!1).then(a=>(n.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=(n,e,t,s,r)=>class extends n{constructor(o,a){const c=s(o),l={...yC,...a},u=t(c,l),h=r(c)?e():null;super(o,!1,u,h)}},bC=(n,e,t)=>()=>{const s=new WeakMap,r=async(i,o)=>{let a=e(i);if(!vt(a,o)){const l={channelCount:a.channelCount,channelCountMode:a.channelCountMode,channelInterpretation:a.channelInterpretation,numberOfInputs:a.numberOfInputs};a=n(o,l)}return s.set(o,a),await t(i,o,a),a};return{render(i,o){const a=s.get(o);return a!==void 0?Promise.resolve(a):r(i,o)}}},xC={channelCount:6,channelCountMode:"explicit",channelInterpretation:"discrete",numberOfOutputs:6},wC=(n,e,t,s,r,i)=>class extends n{constructor(a,c){const l=s(a),u=i({...xC,...c}),h=t(l,u),d=r(l)?e():null;super(a,!1,h,d)}},TC=(n,e,t)=>()=>{const s=new WeakMap,r=async(i,o)=>{let a=e(i);if(!vt(a,o)){const l={channelCount:a.channelCount,channelCountMode:a.channelCountMode,channelInterpretation:a.channelInterpretation,numberOfOutputs:a.numberOfOutputs};a=n(o,l)}return s.set(o,a),await t(i,o,a),a};return{render(i,o){const a=s.get(o);return a!==void 0?Promise.resolve(a):r(i,o)}}},kC=n=>(e,t,s)=>n(t,e,s),EC=n=>(e,t,s=0,r=0)=>{const i=e[s];if(i===void 0)throw n();return Ia(t)?i.connect(t,0,r):i.connect(t,0)},CC=n=>(e,t)=>{const s=n(e,{buffer:null,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",loop:!1,loopEnd:0,loopStart:0,playbackRate:1}),r=e.createBuffer(1,2,44100);return s.buffer=r,s.loop=!0,s.connect(t),s.start(),()=>{s.stop(),s.disconnect(t)}},SC={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",offset:1},OC=(n,e,t,s,r,i,o)=>class extends n{constructor(c,l){const u=r(c),h={...SC,...l},d=s(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,xt,St),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),qn(this)&&ko(this)};this._nativeConstantSourceNode.addEventListener("ended",l)}}stop(c=0){this._nativeConstantSourceNode.stop(c),this._constantSourceNodeRenderer!==null&&(this._constantSourceNodeRenderer.stop=c)}},AC=(n,e,t,s,r)=>()=>{const i=new WeakMap;let o=null,a=null;const c=async(l,u)=>{let h=t(l);const d=vt(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 n(u,l.offset,h.offset):await s(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)}}},RC=n=>e=>(n[0]=e,n[0]),DC={buffer:null,channelCount:2,channelCountMode:"clamped-max",channelInterpretation:"speakers",disableNormalization:!1},PC=(n,e,t,s,r,i)=>class extends n{constructor(a,c){const l=s(a),u={...DC,...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=(n,e,t)=>()=>{const s=new WeakMap,r=async(i,o)=>{let a=e(i);if(!vt(a,o)){const l={buffer:a.buffer,channelCount:a.channelCount,channelCountMode:a.channelCountMode,channelInterpretation:a.channelInterpretation,disableNormalization:!a.normalize};a=n(o,l)}return s.set(o,a),ri(a)?await t(i,o,a.inputs[0]):await t(i,o,a),a};return{render(i,o){const a=s.get(o);return a!==void 0?Promise.resolve(a):r(i,o)}}},NC=(n,e)=>(t,s,r)=>{if(e===null)throw new Error("Missing the native OfflineAudioContext constructor.");try{return new e(t,s,r)}catch(i){throw i.name==="SyntaxError"?n():i}},IC=()=>new DOMException("","DataCloneError"),Rf=n=>{const{port1:e,port2:t}=new MessageChannel;return new Promise(s=>{const r=()=>{t.onmessage=null,e.close(),t.close(),s()};t.onmessage=()=>r();try{e.postMessage(n,[n])}catch{}finally{r()}})},$C=(n,e,t,s,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=>(Rf(d).catch(()=>{}),e(a,()=>a(m))||u(m),n.add(m),m)):new Promise((m,p)=>{const g=async()=>{try{await Rf(d)}catch{}},_=k=>{p(k),g()};try{f.decodeAudioData(d,k=>{typeof k.copyFromChannel!="function"&&(l(k),Wu(k)),n.add(k),g().then(()=>m(k))},k=>{_(k===null?s():k)})}catch(k){_(k)}})},FC=(n,e,t,s,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=s(c),{outputs:m}=t(c);for(const p of m)if(Co(p)){const g=s(p[0]);n(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=(n,e,t,s,r,i,o)=>class extends n{constructor(c,l){const u=r(c),h={...LC,...l},d=s(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}},zC=(n,e,t,s,r)=>i=>{const o=new WeakMap,a=async(c,l)=>{let u=t(c);const h=vt(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 n(l,c.delayTime,u.delayTime):await s(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)}}},VC=n=>(e,t,s,r)=>n(e[r],i=>i[0]===t&&i[1]===s),UC=n=>(e,t)=>{n(e).delete(t)},BC=n=>"delayTime"in n,WC=(n,e,t)=>function s(r,i){const o=Pa(i)?i:t(n,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=>s([...r,o],c[0])).reduce((c,l)=>c.concat(l),[])},Zo=(n,e,t)=>{const s=e[t];if(s===void 0)throw n();return s},qC=n=>(e,t=void 0,s=void 0,r=0)=>t===void 0?e.forEach(i=>i.disconnect()):typeof t=="number"?Zo(n,e,t).disconnect():Ia(t)?s===void 0?e.forEach(i=>i.disconnect(t)):r===void 0?Zo(n,e,s).disconnect(t,0):Zo(n,e,s).disconnect(t,0,r):s===void 0?e.forEach(i=>i.disconnect(t)):Zo(n,e,s).disconnect(t,0),HC={attack:.003,channelCount:2,channelCountMode:"clamped-max",channelInterpretation:"speakers",knee:30,ratio:12,release:.25,threshold:-24},YC=(n,e,t,s,r,i,o,a)=>class extends n{constructor(l,u){const h=i(l),d={...HC,...u},f=s(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=(n,e,t,s,r)=>()=>{const i=new WeakMap,o=async(a,c)=>{let l=t(a);const u=vt(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 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 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 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=n=>e=>new Promise((t,s)=>{if(n===null){s(new SyntaxError);return}const r=n.document.head;if(r===null)s(new SyntaxError);else{const i=n.document.createElement("script"),o=new Blob([e],{type:"application/javascript"}),a=URL.createObjectURL(o),c=n.onerror,l=()=>{n.onerror=c,URL.revokeObjectURL(a)};n.onerror=(u,h,d,f,m)=>{if(h===a||h===n.location.href&&d===1&&f===1)return l(),s(m),!1;if(c!==null)return c(u,h,d,f,m)},i.onerror=()=>{l(),s(new SyntaxError)},i.onload=()=>{l(),t()},i.src=a,i.type="module",r.appendChild(i)}}),KC=n=>class{constructor(t){this._nativeEventTarget=t,this._listeners=new WeakMap}addEventListener(t,s,r){if(s!==null){let i=this._listeners.get(s);i===void 0&&(i=n(this,s),typeof s=="function"&&this._listeners.set(s,i)),this._nativeEventTarget.addEventListener(t,i,r)}}dispatchEvent(t){return this._nativeEventTarget.dispatchEvent(t)}removeEventListener(t,s,r){const i=s===null?void 0:this._listeners.get(s);this._nativeEventTarget.removeEventListener(t,i===void 0?null:i,r)}},QC=n=>(e,t,s)=>{Object.defineProperties(n,{currentFrame:{configurable:!0,get(){return Math.round(e*t)}},currentTime:{configurable:!0,get(){return e}}});try{return s()}finally{n!==null&&(delete n.currentFrame,delete n.currentTime)}},JC=n=>async e=>{try{const t=await fetch(e);if(t.ok)return[await t.text(),t.url]}catch{}throw n()},eS={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",gain:1},tS=(n,e,t,s,r,i)=>class extends n{constructor(a,c){const l=r(a),u={...eS,...c},h=s(l,u),d=i(l),f=d?t():null;super(a,!1,h,f),this._gain=e(this,d,h.gain,xt,St)}get gain(){return this._gain}},nS=(n,e,t,s,r)=>()=>{const i=new WeakMap,o=async(a,c)=>{let l=t(a);const u=vt(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 n(c,a.gain,l.gain):await s(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=(n,e)=>t=>e(n,t),rS=n=>e=>{const t=n(e);if(t.renderer===null)throw new Error("Missing the renderer of the given AudioNode in the audio graph.");return t.renderer},iS=n=>e=>{var t;return(t=n.get(e))!==null&&t!==void 0?t:0},oS=n=>e=>{const t=n(e);if(t.renderer===null)throw new Error("Missing the renderer of the given AudioParam in the audio graph.");return t.renderer},aS=n=>e=>n.get(e),ht=()=>new DOMException("","InvalidStateError"),cS=n=>e=>{const t=n.get(e);if(t===void 0)throw ht();return t},lS=(n,e)=>t=>{let s=n.get(t);if(s!==void 0)return s;if(e===null)throw new Error("Missing the native OfflineAudioContext constructor.");return s=new e(1,1,44100),n.set(t,s),s},uS=n=>e=>{const t=n.get(e);if(t===void 0)throw new Error("The context has no set of AudioWorkletNodes.");return t},vc=()=>new DOMException("","InvalidAccessError"),hS=n=>{n.getFrequencyResponse=(e=>(t,s,r)=>{if(t.length!==s.length||s.length!==r.length)throw vc();return e.call(n,t,s,r)})(n.getFrequencyResponse)},dS={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers"},fS=(n,e,t,s,r,i)=>class extends n{constructor(a,c){const l=s(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)}},km=(n,e,t,s,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=s instanceof Float64Array?s:new Float64Array(s),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=vt(f,h);if(h.createIIRFilter===void 0?d=n(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 s(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 s(u,h,f),f};return{render(u,h){const d=a.get(h);return d!==void 0?Promise.resolve(d):l(u,h)}}},gS=(n,e,t,s,r,i)=>o=>(a,c)=>{const l=n.get(a);if(l===void 0){if(!o&&i(a)){const u=s(a),{outputs:h}=t(a);for(const d of h)if(Co(d)){const f=s(d[0]);e(u,f,d[1],d[2])}else{const f=r(d[0]);u.disconnect(f,d[1])}}n.set(a,c)}else n.set(a,l+c)},_S=(n,e)=>t=>{const s=n.get(t);return e(s)||e(t)},yS=(n,e)=>t=>n.has(t)||e(t),vS=(n,e)=>t=>n.has(t)||e(t),bS=(n,e)=>t=>{const s=n.get(t);return e(s)||e(t)},xS=n=>e=>n!==null&&e instanceof n,wS=n=>e=>n!==null&&typeof n.AudioNode=="function"&&e instanceof n.AudioNode,TS=n=>e=>n!==null&&typeof n.AudioParam=="function"&&e instanceof n.AudioParam,kS=(n,e)=>t=>n(t)||e(t),ES=n=>e=>n!==null&&e instanceof n,CS=n=>n!==null&&n.isSecureContext,SS=(n,e,t,s)=>class extends n{constructor(i,o){const a=t(i),c=e(a,o);if(s(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=(n,e,t,s)=>class extends n{constructor(i,o){const a=t(i);if(s(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}},RS=(n,e,t,s)=>class extends n{constructor(i,o){const a=t(i),c=e(a,o);if(s(a))throw new TypeError;super(i,!0,c,null),this._nativeMediaStreamAudioSourceNode=c}get mediaStream(){return this._nativeMediaStreamAudioSourceNode.mediaStream}},DS=(n,e,t)=>class extends n{constructor(r,i){const o=t(r),a=e(o,i);super(r,!0,a,null)}},PS=(n,e,t,s,r,i)=>class extends t{constructor(a,c){super(a),this._nativeContext=a,_c.set(this,a),s(a)&&r.set(a,new Set),this._destination=new n(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=n=>{const e=new Uint32Array([1179011410,40,1163280727,544501094,16,131073,44100,176400,1048580,1635017060,4,0]);try{const t=n.decodeAudioData(e.buffer,()=>{});return t===void 0?!1:(t.catch(()=>{}),!0)}catch{}return!1},MS=(n,e)=>(t,s,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),n(i,[a,c,l],h=>h[0]===a&&h[1]===c&&h[2]===l,!0),u&&s(),a;o.call(t,a,c),n(i,[a,c],h=>h[0]===a&&h[1]===c,!0),u&&s()})(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},We=(n,e,t)=>{const s=e[t];s!==void 0&&s!==n[t]&&(n[t]=s)},ct=(n,e)=>{We(n,e,"channelCount"),We(n,e,"channelCountMode"),We(n,e,"channelInterpretation")},Df=n=>typeof n.getFloatTimeDomainData=="function",NS=n=>{n.getFloatTimeDomainData=e=>{const t=new Uint8Array(e.length);n.getByteTimeDomainData(t);const s=Math.max(t.length,n.fftSize);for(let r=0;r(t,s)=>{const r=t.createAnalyser();if(ct(r,s),!(s.maxDecibels>s.minDecibels))throw e();return We(r,s,"fftSize"),We(r,s,"maxDecibels"),We(r,s,"minDecibels"),We(r,s,"smoothingTimeConstant"),n(Df,()=>Df(r))||NS(r),r},$S=n=>n===null?null:n.hasOwnProperty("AudioBuffer")?n.AudioBuffer:null,Ze=(n,e,t)=>{const s=e[t];s!==void 0&&s!==n[t].value&&(n[t].value=s)},FS=n=>{n.start=(e=>{let t=!1;return(s=0,r=0,i)=>{if(t)throw ht();e.call(n,s,r,i),t=!0}})(n.start)},Yu=n=>{n.start=(e=>(t=0,s=0,r)=>{if(typeof r=="number"&&r<0||s<0||t<0)throw new RangeError("The parameters can't be negative.");e.call(n,t,s,r)})(n.start)},Gu=n=>{n.stop=(e=>(t=0)=>{if(t<0)throw new RangeError("The parameter can't be negative.");e.call(n,t)})(n.stop)},LS=(n,e,t,s,r,i,o,a,c,l,u)=>(h,d)=>{const f=h.createBufferSource();return ct(f,d),Ze(f,d,"playbackRate"),We(f,d,"buffer"),We(f,d,"loop"),We(f,d,"loopEnd"),We(f,d,"loopStart"),e(t,()=>t(h))||FS(f),e(s,()=>s(h))||c(f),e(r,()=>r(h))||l(f,h),e(i,()=>i(h))||Yu(f),e(o,()=>o(h))||u(f,h),e(a,()=>a(h))||Gu(f),n(h,f),f},jS=n=>n===null?null:n.hasOwnProperty("AudioContext")?n.AudioContext:n.hasOwnProperty("webkitAudioContext")?n.webkitAudioContext:null,zS=(n,e)=>(t,s,r)=>{const i=t.destination;if(i.channelCount!==s)try{i.channelCount=s}catch{}r&&i.channelCountMode!=="explicit"&&(i.channelCountMode="explicit"),i.maxChannelCount===0&&Object.defineProperty(i,"maxChannelCount",{value:s});const o=n(t,{channelCount:s,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},VS=n=>n===null?null:n.hasOwnProperty("AudioWorkletNode")?n.AudioWorkletNode:null,US=n=>{const{port1:e}=new MessageChannel;try{e.postMessage(n)}finally{e.close()}},BS=(n,e,t,s,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 n()}},channelCountMode:{get:()=>"explicit",set:()=>{throw n()}},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]=k=>{k.type==="error"?(Object.defineProperties(k,{type:{value:"processorerror"}}),g(k)):g(new ErrorEvent(p[0],{...k}))},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?s():h}if(l===void 0)throw s();return US(u),e(i,o,l,u)},Em=(n,e)=>n===null?512:Math.max(512,Math.min(16384,Math.pow(2,Math.round(Math.log2(n*e))))),WS=n=>new Promise((e,t)=>{const{port1:s,port2:r}=new MessageChannel;s.onmessage=({data:i})=>{s.close(),r.close(),e(i)},s.onmessageerror=({data:i})=>{s.close(),r.close(),t(i)},r.postMessage(n)}),qS=async(n,e)=>{const t=await WS(e);return new n(t)},HS=(n,e,t,s)=>{let r=Hl.get(n);r===void 0&&(r=new WeakMap,Hl.set(n,r));const i=qS(t,s);return r.set(e,i),i},YS=(n,e,t,s,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 k=g.channelCount*g.numberOfInputs,T=_.reduce((H,P)=>H+P,0),b=p.parameterDescriptors===void 0?0:p.parameterDescriptors.length;if(k+b>6||T>6)throw c();const y=new MessageChannel,x=[],E=[];for(let H=0;HH===void 0?0:H},maxValue:{get:()=>P===void 0?xt:P},minValue:{get:()=>R===void 0?St:R}}),w.push(se)}const C=s(f,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:Math.max(1,k+b)}),A=Em(m,f.sampleRate),D=a(f,A,k+b,Math.max(1,T)),O=r(f,{channelCount:Math.max(1,T),channelCountMode:"explicit",channelInterpretation:"discrete",numberOfOutputs:Math.max(1,T)}),L=[];for(let H=0;H{const R=w[P];return R.connect(C,0,k+P),R.start(0),[H,R.offset]}));C.connect(D);let W=g.channelInterpretation,V=null;const U=g.numberOfOutputs===0?[D]:L,B={get bufferSize(){return A},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 x)P.channelInterpretation=H;W=H},get context(){return D.context},get inputs(){return x},get numberOfInputs(){return g.numberOfInputs},get numberOfOutputs(){return g.numberOfOutputs},get onprocessorerror(){return V},set onprocessorerror(H){typeof V=="function"&&B.removeEventListener("processorerror",V),V=typeof H=="function"?H:null,typeof V=="function"&&B.addEventListener("processorerror",V)},get parameters(){return j},get port(){return y.port2},addEventListener(...H){return D.addEventListener(H[0],H[1],H[2])},connect:n.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 J=null;HS(f,B,p,g).then(H=>J=H);const z=Fa(g.numberOfInputs,g.channelCount),S=Fa(g.numberOfOutputs,_),I=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(J!==null){const R=h(B);for(let Q=0;Q{$a(H,I,se,k+le,Q)});for(let se=0;se{if(R[et].size>0)return q.set(et,A/128),be;const fe=q.get(et);return fe===void 0?[]:(be.every(tt=>tt.every(at=>at===0))&&(fe===1?q.delete(et):q.set(et,fe-1)),be)});Y=u(f.currentTime+Q/f.sampleRate,f.sampleRate,()=>J.process(se,S,I));for(let be=0,et=0;beD.connect(re).connect(f.destination),ne=()=>{D.disconnect(re),re.disconnect()},ge=()=>{if(Y){ne(),g.numberOfOutputs>0&&D.connect(O);for(let H=0,P=0;H{Y&&(ie(),$()),oe=!1};return ie(),d(B,ge,te)},Cm=(n,e)=>{const t=n.createBiquadFilter();return ct(t,e),Ze(t,e,"Q"),Ze(t,e,"detune"),Ze(t,e,"frequency"),Ze(t,e,"gain"),We(t,e,"type"),t},GS=(n,e)=>(t,s)=>{const r=t.createChannelMerger(s.numberOfInputs);return n!==null&&n.name==="webkitAudioContext"&&e(t,r),ct(r,s),r},XS=n=>{const e=n.numberOfOutputs;Object.defineProperty(n,"channelCount",{get:()=>e,set:t=>{if(t!==e)throw ht()}}),Object.defineProperty(n,"channelCountMode",{get:()=>"explicit",set:t=>{if(t!=="explicit")throw ht()}}),Object.defineProperty(n,"channelInterpretation",{get:()=>"discrete",set:t=>{if(t!=="discrete")throw ht()}})},So=(n,e)=>{const t=n.createChannelSplitter(e.numberOfOutputs);return ct(t,e),XS(t),t},ZS=(n,e,t,s,r)=>(i,o)=>{if(i.createConstantSource===void 0)return t(i,o);const a=i.createConstantSource();return ct(a,o),Ze(a,o,"offset"),e(s,()=>s(i))||Yu(a),e(r,()=>r(i))||Gu(a),n(i,a),a},ii=(n,e)=>(n.connect=e.connect.bind(e),n.disconnect=e.disconnect.bind(e),n),KS=(n,e,t,s)=>(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 n(r,c),s(ii(h,l),d,f)},QS=(n,e)=>(t,s)=>{const r=t.createConvolver();if(ct(r,s),s.disableNormalization===r.normalize&&(r.normalize=!s.disableNormalization),We(r,s,"buffer"),s.channelCount>2||(e(r,"channelCount",i=>()=>i.call(r),i=>o=>{if(o>2)throw n();return i.call(r,o)}),s.channelCountMode==="max"))throw n();return e(r,"channelCountMode",i=>()=>i.call(r),i=>o=>{if(o==="max")throw n();return i.call(r,o)}),r},Sm=(n,e)=>{const t=n.createDelay(e.maxDelayTime);return ct(t,e),Ze(t,e,"delayTime"),t},JS=n=>(e,t)=>{const s=e.createDynamicsCompressor();if(ct(s,t),t.channelCount>2||t.channelCountMode==="max")throw n();return Ze(s,t,"attack"),Ze(s,t,"knee"),Ze(s,t,"ratio"),Ze(s,t,"release"),Ze(s,t,"threshold"),s},Nt=(n,e)=>{const t=n.createGain();return ct(t,e),Ze(t,e,"gain"),t},eO=n=>(e,t,s)=>{if(e.createIIRFilter===void 0)return n(e,t,s);const r=e.createIIRFilter(s.feedforward,s.feedback);return ct(r,s),r};function tO(n,e){const t=e[0]*e[0]+e[1]*e[1];return[(n[0]*e[0]+n[1]*e[1])/t,(n[1]*e[0]-n[0]*e[1])/t]}function nO(n,e){return[n[0]*e[0]-n[1]*e[1],n[0]*e[1]+n[1]*e[0]]}function Pf(n,e){let t=[0,0];for(let s=n.length-1;s>=0;s-=1)t=nO(t,e),t[0]+=n[s];return t}const sO=(n,e,t,s)=>(r,i,{channelCount:o,channelCountMode:a,channelInterpretation:c,feedback:l,feedforward:u})=>{const h=Em(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 s();if(d[0]===0)throw e();if(p===0||p>20)throw s();if(f[0]===0)throw e();if(d[0]!==1){for(let w=0;w{const C=w.inputBuffer,A=w.outputBuffer,D=C.numberOfChannels;for(let O=0;On.createMediaElementSource(e.mediaElement),iO=(n,e)=>{const t=n.createMediaStreamDestination();return ct(t,e),t.numberOfOutputs===1&&Object.defineProperty(t,"numberOfOutputs",{get:()=>0}),t},oO=(n,{mediaStream:e})=>{const t=e.getAudioTracks();t.sort((i,o)=>i.ido.id?1:0);const s=t.slice(0,1),r=n.createMediaStreamSource(new MediaStream(s));return Object.defineProperty(r,"mediaStream",{value:e}),r},aO=(n,e)=>(t,{mediaStreamTrack:s})=>{if(typeof t.createMediaStreamTrackSource=="function")return t.createMediaStreamTrackSource(s);const r=new MediaStream([s]),i=t.createMediaStreamSource(r);if(s.kind!=="audio")throw n();if(e(t))throw new TypeError;return i},cO=n=>n===null?null:n.hasOwnProperty("OfflineAudioContext")?n.OfflineAudioContext:n.hasOwnProperty("webkitOfflineAudioContext")?n.webkitOfflineAudioContext:null,lO=(n,e,t,s,r,i)=>(o,a)=>{const c=o.createOscillator();return ct(c,a),Ze(c,a,"detune"),Ze(c,a,"frequency"),a.periodicWave!==void 0?c.setPeriodicWave(a.periodicWave):We(c,a,"type"),e(t,()=>t(o))||Yu(c),e(s,()=>s(o))||i(c,o),e(r,()=>r(o))||Gu(c),n(o,c),c},uO=n=>(e,t)=>{const s=e.createPanner();return s.orientationX===void 0?n(e,t):(ct(s,t),Ze(s,t,"orientationX"),Ze(s,t,"orientationY"),Ze(s,t,"orientationZ"),Ze(s,t,"positionX"),Ze(s,t,"positionY"),Ze(s,t,"positionZ"),We(s,t,"coneInnerAngle"),We(s,t,"coneOuterAngle"),We(s,t,"coneOuterGain"),We(s,t,"distanceModel"),We(s,t,"maxDistance"),We(s,t,"panningModel"),We(s,t,"refDistance"),We(s,t,"rolloffFactor"),s)},hO=(n,e,t,s,r,i,o,a,c,l)=>(u,{coneInnerAngle:h,coneOuterAngle:d,coneOuterGain:f,distanceModel:m,maxDistance:p,orientationX:g,orientationY:_,orientationZ:k,panningModel:T,positionX:b,positionY:y,positionZ:x,refDistance:E,rolloffFactor:w,...C})=>{const A=u.createPanner();if(C.channelCount>2||C.channelCountMode==="max")throw o();ct(A,C);const D={channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete"},O=t(u,{...D,channelInterpretation:"speakers",numberOfInputs:6}),L=s(u,{...C,gain:1}),j=s(u,{...D,gain:1}),W=s(u,{...D,gain:0}),V=s(u,{...D,gain:0}),U=s(u,{...D,gain:0}),B=s(u,{...D,gain:0}),X=s(u,{...D,gain:0}),K=r(u,256,6,1),J=i(u,{...D,curve:new Float32Array([1,1]),oversample:"none"});let F=[g,_,k],z=[b,y,x];const S=new Float32Array(1);K.onaudioprocess=({inputBuffer:q})=>{const oe=[c(q,S,0),c(q,S,1),c(q,S,2)];oe.some((ie,ne)=>ie!==F[ne])&&(A.setOrientation(...oe),F=oe);const re=[c(q,S,3),c(q,S,4),c(q,S,5)];re.some((ie,ne)=>ie!==z[ne])&&(A.setPosition(...re),z=re)},Object.defineProperty(W.gain,"defaultValue",{get:()=>0}),Object.defineProperty(V.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 A.channelCount},set channelCount(q){if(q>2)throw o();L.channelCount=q,A.channelCount=q},get channelCountMode(){return A.channelCountMode},set channelCountMode(q){if(q==="max")throw o();L.channelCountMode=q,A.channelCountMode=q},get channelInterpretation(){return A.channelInterpretation},set channelInterpretation(q){L.channelInterpretation=q,A.channelInterpretation=q},get coneInnerAngle(){return A.coneInnerAngle},set coneInnerAngle(q){A.coneInnerAngle=q},get coneOuterAngle(){return A.coneOuterAngle},set coneOuterAngle(q){A.coneOuterAngle=q},get coneOuterGain(){return A.coneOuterGain},set coneOuterGain(q){if(q<0||q>1)throw e();A.coneOuterGain=q},get context(){return A.context},get distanceModel(){return A.distanceModel},set distanceModel(q){A.distanceModel=q},get inputs(){return[L]},get maxDistance(){return A.maxDistance},set maxDistance(q){if(q<0)throw new RangeError;A.maxDistance=q},get numberOfInputs(){return A.numberOfInputs},get numberOfOutputs(){return A.numberOfOutputs},get orientationX(){return j.gain},get orientationY(){return W.gain},get orientationZ(){return V.gain},get panningModel(){return A.panningModel},set panningModel(q){A.panningModel=q},get positionX(){return U.gain},get positionY(){return B.gain},get positionZ(){return X.gain},get refDistance(){return A.refDistance},set refDistance(q){if(q<0)throw new RangeError;A.refDistance=q},get rolloffFactor(){return A.rolloffFactor},set rolloffFactor(q){if(q<0)throw new RangeError;A.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!==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=_),k!==I.orientationZ.value&&(I.orientationZ.value=k),T!==I.panningModel&&(I.panningModel=T),b!==I.positionX.value&&(I.positionX.value=b),y!==I.positionY.value&&(I.positionY.value=y),x!==I.positionZ.value&&(I.positionZ.value=x),E!==I.refDistance&&(I.refDistance=E),w!==I.rolloffFactor&&(I.rolloffFactor=w),(F[0]!==1||F[1]!==0||F[2]!==0)&&A.setOrientation(...F),(z[0]!==0||z[1]!==0||z[2]!==0)&&A.setPosition(...z);const Y=()=>{L.connect(A),n(L,J,0,0),J.connect(j).connect(O,0,0),J.connect(W).connect(O,0,1),J.connect(V).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)},$=()=>{L.disconnect(A),a(L,J,0,0),J.disconnect(j),j.disconnect(O),J.disconnect(W),W.disconnect(O),J.disconnect(V),V.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(ii(I,A),Y,$)},dO=n=>(e,{disableNormalization:t,imag:s,real:r})=>{const i=s instanceof Float32Array?s:new Float32Array(s),o=r instanceof Float32Array?r:new Float32Array(r),a=e.createPeriodicWave(o,i,{disableNormalization:t});if(Array.from(s).length<2)throw n();return a},Oo=(n,e,t,s)=>n.createScriptProcessor(e,t,s),fO=(n,e)=>(t,s)=>{const r=s.channelCountMode;if(r==="clamped-max")throw e();if(t.createStereoPanner===void 0)return n(t,s);const i=t.createStereoPanner();return ct(i,s),Ze(i,s,"pan"),Object.defineProperty(i,"channelCountMode",{get:()=>r,set:o=>{if(o!==r)throw e()}}),i},pO=(n,e,t,s,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 k=new Float32Array(16385),T=new Float32Array(16385);for(let C=0;C<16385;C+=1){const A=C/16384*c;k[C]=Math.cos(A),T[C]=Math.sin(A)}const b=t(m,{...l,gain:0}),y=s(m,{...u,curve:k}),x=s(m,{...u,curve:a}),E=t(m,{...l,gain:0}),w=s(m,{...u,curve:T});return{connectGraph(){p.connect(b),p.connect(x.inputs===void 0?x:x.inputs[0]),p.connect(E),x.connect(g),g.connect(y.inputs===void 0?y:y.inputs[0]),g.connect(w.inputs===void 0?w:w.inputs[0]),y.connect(b.gain),w.connect(E.gain),b.connect(_,0,0),E.connect(_,0,1)},disconnectGraph(){p.disconnect(b),p.disconnect(x.inputs===void 0?x:x.inputs[0]),p.disconnect(E),x.disconnect(g),g.disconnect(y.inputs===void 0?y:y.inputs[0]),g.disconnect(w.inputs===void 0?w:w.inputs[0]),y.disconnect(b.gain),w.disconnect(E.gain),b.disconnect(_,0,0),E.disconnect(_,0,1)}}},d=(m,p,g,_)=>{const k=new Float32Array(16385),T=new Float32Array(16385),b=new Float32Array(16385),y=new Float32Array(16385),x=Math.floor(16385/2);for(let U=0;U<16385;U+=1)if(U>x){const B=(U-x)/(16384-x)*c;k[U]=Math.cos(B),T[U]=Math.sin(B),b[U]=0,y[U]=1}else{const B=U/(16384-x)*c;k[U]=1,T[U]=0,b[U]=Math.cos(B),y[U]=Math.sin(B)}const E=e(m,{channelCount:2,channelCountMode:"explicit",channelInterpretation:"discrete",numberOfOutputs:2}),w=t(m,{...l,gain:0}),C=s(m,{...u,curve:k}),A=t(m,{...l,gain:0}),D=s(m,{...u,curve:T}),O=s(m,{...u,curve:a}),L=t(m,{...l,gain:0}),j=s(m,{...u,curve:b}),W=t(m,{...l,gain:0}),V=s(m,{...u,curve:y});return{connectGraph(){p.connect(E),p.connect(O.inputs===void 0?O:O.inputs[0]),E.connect(w,0),E.connect(A,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(V.inputs===void 0?V:V.inputs[0]),C.connect(w.gain),D.connect(A.gain),j.connect(L.gain),V.connect(W.gain),w.connect(_,0,0),L.connect(_,0,0),A.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(A,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(V.inputs===void 0?V:V.inputs[0]),C.disconnect(w.gain),D.disconnect(A.gain),j.disconnect(L.gain),V.disconnect(W.gain),w.disconnect(_,0,0),L.disconnect(_,0,0),A.disconnect(_,0,1),W.disconnect(_,0,1)}}},f=(m,p,g,_,k)=>{if(p===1)return h(m,g,_,k);if(p===2)return d(m,g,_,k);throw r()};return(m,{channelCount:p,channelCountMode:g,pan:_,...k})=>{if(g==="max")throw r();const T=n(m,{...k,channelCount:1,channelCountMode:g,numberOfInputs:2}),b=t(m,{...k,channelCount:p,channelCountMode:g,gain:1}),y=t(m,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:_});let{connectGraph:x,disconnectGraph:E}=f(m,p,b,y,T);Object.defineProperty(y.gain,"defaultValue",{get:()=>0}),Object.defineProperty(y.gain,"maxValue",{get:()=>1}),Object.defineProperty(y.gain,"minValue",{get:()=>-1});const w={get bufferSize(){},get channelCount(){return b.channelCount},set channelCount(O){b.channelCount!==O&&(C&&E(),{connectGraph:x,disconnectGraph:E}=f(m,O,b,y,T),C&&x()),b.channelCount=O},get channelCountMode(){return b.channelCountMode},set channelCountMode(O){if(O==="clamped-max"||O==="max")throw r();b.channelCountMode=O},get channelInterpretation(){return b.channelInterpretation},set channelInterpretation(O){b.channelInterpretation=O},get context(){return b.context},get inputs(){return[b]},get numberOfInputs(){return b.numberOfInputs},get numberOfOutputs(){return b.numberOfOutputs},get pan(){return y.gain},addEventListener(...O){return b.addEventListener(O[0],O[1],O[2])},dispatchEvent(...O){return b.dispatchEvent(O[0])},removeEventListener(...O){return b.removeEventListener(O[0],O[1],O[2])}};let C=!1;const A=()=>{x(),C=!0},D=()=>{E(),C=!1};return i(ii(w,T),A,D)}},mO=(n,e,t,s,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);ct(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();We(l,{curve:u},"curve"),We(l,c,"oversample");let h=null,d=!1;return o(l,"curve",p=>()=>p.call(l),p=>g=>(p.call(l,g),d&&(s(g)&&h===null?h=n(a,l):!s(g)&&h!==null&&(h(),h=null)),g)),r(l,()=>{d=!0,s(l.curve)&&(h=n(a,l))},()=>{d=!1,h!==null&&(h(),h=null)})},gO=(n,e,t,s,r)=>(i,{curve:o,oversample:a,...c})=>{const l=i.createWaveShaper(),u=i.createWaveShaper();ct(l,c),ct(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 k={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 x=y.length,E=new Float32Array(x+2-x%2),w=new Float32Array(x+2-x%2);E[0]=y[0],w[0]=-y[x-1];const C=Math.ceil((x+1)/2),A=(x+1)/2-1;for(let D=1;D{h.connect(l).connect(f),h.connect(d).connect(u).connect(m).connect(f),g=!0,s(_)&&(p=n(i,h))},b=()=>{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(ii(k,f),T,b)},Et=()=>new DOMException("","NotSupportedError"),_O={numberOfChannels:1},yO=(n,e,t,s,r)=>class extends n{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=s(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,ym(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=(n,e,t,s,r,i,o)=>class extends n{constructor(c,l){const u=r(c),h={...vO,...l},d=t(u,h),f=i(u),m=f?s():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),qn(this)&&ko(this)};this._nativeOscillatorNode.addEventListener("ended",l)}}stop(c=0){this._nativeOscillatorNode.stop(c),this._oscillatorNodeRenderer!==null&&(this._oscillatorNodeRenderer.stop=c)}},xO=(n,e,t,s,r)=>()=>{const i=new WeakMap;let o=null,a=null,c=null;const l=async(u,h)=>{let d=t(u);const f=vt(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 n(h,u.detune,d.detune),await n(h,u.frequency,d.frequency)):(await s(h,u.detune,d.detune),await s(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},TO=(n,e,t,s,r,i,o)=>class extends n{constructor(c,l){const u=r(c),h={...wO,...l},d=t(u,h),f=i(u),m=f?s():null;super(c,!1,d,m),this._nativePannerNode=d,this._orientationX=e(this,f,d.orientationX,xt,St),this._orientationY=e(this,f,d.orientationY,xt,St),this._orientationZ=e(this,f,d.orientationZ,xt,St),this._positionX=e(this,f,d.positionX,xt,St),this._positionY=e(this,f,d.positionY,xt,St),this._positionZ=e(this,f,d.positionZ,xt,St),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}},kO=(n,e,t,s,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},k={..._,coneInnerAngle:g.coneInnerAngle,coneOuterAngle:g.coneOuterAngle,coneOuterGain:g.coneOuterGain,distanceModel:g.distanceModel,maxDistance:g.maxDistance,panningModel:g.panningModel,refDistance:g.refDistance,rolloffFactor:g.rolloffFactor},T=vt(g,m);if("bufferSize"in g)p=s(m,{..._,gain:1});else if(!T){const b={...k,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,b)}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 V=t(D,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",offset:W===0?1:0});return await a(D,j,V.offset),V}));for(let j=0;j<6;j+=1)L[j].connect(O,0,j),L[j].start(0);return l(D)})()}const b=await h,y=s(m,{..._,gain:1});await c(f,m,y);const x=[];for(let D=0;Dj!==E[W])||L.some((j,W)=>j!==w[W])){E=O,w=L;const j=D/m.sampleRate;C.gain.setValueAtTime(0,j),C=s(m,{..._,gain:0}),A=r(m,{...k,orientationX:E[0],orientationY:E[1],orientationZ:E[2],positionX:w[0],positionY:w[1],positionZ:w[2]}),C.gain.setValueAtTime(1,j),y.connect(C).connect(A.inputs[0]),A.connect(p)}}return p}return T?(await n(m,f.orientationX,g.orientationX),await n(m,f.orientationY,g.orientationY),await n(m,f.orientationZ,g.orientationZ),await n(m,f.positionX,g.positionX),await n(m,f.positionY,g.positionY),await n(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)),ri(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=(n,e,t,s)=>class Om{constructor(i,o){const a=e(i),c=s({...EO,...o}),l=n(a,c);return t.add(l),l}static[Symbol.hasInstance](i){return i!==null&&typeof i=="object"&&Object.getPrototypeOf(i)===Om.prototype||t.has(i)}},SO=(n,e)=>(t,s,r)=>(n(s).replay(r),e(s,t,r)),OO=(n,e,t)=>async(s,r,i)=>{const o=n(s);await Promise.all(o.activeInputs.map((a,c)=>Array.from(a).map(async([l,u])=>{const d=await e(l).render(l,r),f=s.context.destination;!t(l)&&(s!==f||!t(s))&&d.connect(i,u,c)})).reduce((a,c)=>[...a,...c],[]))},AO=(n,e,t)=>async(s,r,i)=>{const o=e(s);await Promise.all(Array.from(o.activeInputs).map(async([a,c])=>{const u=await n(a).render(a,r);t(a)||u.connect(i,c)}))},RO=(n,e,t,s)=>r=>n(Wi,()=>Wi(r))?Promise.resolve(n(s,s)).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()}),DO=n=>(e,t)=>{n.set(e,t)},PO=n=>(e,t)=>n.set(e,t),MO=(n,e,t,s,r,i,o,a)=>(c,l)=>t(c).render(c,l).then(()=>Promise.all(Array.from(s(l)).map(u=>t(u).render(u,l)))).then(()=>r(l)).then(u=>(typeof u.copyFromChannel!="function"?(o(u),Wu(u)):e(i,()=>i(u))||a(u),n.add(u),u)),NO={channelCount:2,channelCountMode:"explicit",channelInterpretation:"speakers",pan:0},IO=(n,e,t,s,r,i)=>class extends n{constructor(a,c){const l=r(a),u={...NO,...c},h=t(l,u),d=i(l),f=d?s():null;super(a,!1,h,f),this._pan=e(this,d,h.pan)}get pan(){return this._pan}},$O=(n,e,t,s,r)=>()=>{const i=new WeakMap,o=async(a,c)=>{let l=t(a);const u=vt(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 n(c,a.pan,l.pan):await s(c,a.pan,l.pan),ri(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=n=>()=>{if(n===null)return!1;try{new n({length:1,sampleRate:44100})}catch{return!1}return!0},LO=(n,e)=>async()=>{if(n===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"}),s=new e(1,128,44100),r=URL.createObjectURL(t);let i=!1,o=!1;try{await s.audioWorklet.addModule(r);const a=new n(s,"a",{numberOfOutputs:0}),c=s.createOscillator();a.port.onmessage=()=>i=!0,a.onprocessorerror=()=>o=!0,c.connect(a),c.start(0),await s.startRendering(),await new Promise(l=>setTimeout(l))}catch{}finally{URL.revokeObjectURL(r)}return i&&!o},jO=(n,e)=>()=>{if(e===null)return Promise.resolve(!1);const t=new e(1,1,44100),s=n(t,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:0});return new Promise(r=>{t.oncomplete=()=>{s.disconnect(),r(t.currentTime!==0)},t.startRendering()})},zO=()=>new DOMException("","UnknownError"),VO={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",curve:null,oversample:"none"},UO=(n,e,t,s,r,i,o)=>class extends n{constructor(c,l){const u=r(c),h={...VO,...l},d=t(u,h),m=i(u)?s():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=(n,e,t)=>()=>{const s=new WeakMap,r=async(i,o)=>{let a=e(i);if(!vt(a,o)){const l={channelCount:a.channelCount,channelCountMode:a.channelCountMode,channelInterpretation:a.channelInterpretation,curve:a.curve,oversample:a.oversample};a=n(o,l)}return s.set(o,a),ri(a)?await t(i,o,a.inputs[0]):await t(i,o,a),a};return{render(i,o){const a=s.get(o);return a!==void 0?Promise.resolve(a):r(i,o)}}},WO=()=>typeof window>"u"?null:window,qO=(n,e)=>t=>{t.copyFromChannel=(s,r,i=0)=>{const o=n(i),a=n(r);if(a>=t.numberOfChannels)throw e();const c=t.length,l=t.getChannelData(a),u=s.length;for(let h=o<0?-o:0;h+o{const o=n(i),a=n(r);if(a>=t.numberOfChannels)throw e();const c=t.length,l=t.getChannelData(a),u=s.length;for(let h=o<0?-o:0;h+oe=>{e.copyFromChannel=(t=>(s,r,i=0)=>{const o=n(i),a=n(r);if(o(s,r,i=0)=>{const o=n(i),a=n(r);if(o(e,t)=>{const s=t.createBuffer(1,1,44100);e.buffer===null&&(e.buffer=s),n(e,"buffer",r=>()=>{const i=r.call(e);return i===s?null:i},r=>i=>r.call(e,i===null?s:i))},GO=(n,e)=>(t,s)=>{s.channelCount=1,s.channelCountMode="explicit",Object.defineProperty(s,"channelCount",{get:()=>1,set:()=>{throw n()}}),Object.defineProperty(s,"channelCountMode",{get:()=>"explicit",set:()=>{throw n()}});const r=t.createBufferSource();e(s,()=>{const a=s.numberOfInputs;for(let c=0;cr.disconnect(s))},Am=(n,e,t)=>n.copyFromChannel===void 0?n.getChannelData(t)[0]:(n.copyFromChannel(e,t),e[0]),Rm=n=>{if(n===null)return!1;const e=n.length;return e%2!==0?n[Math.floor(e/2)]!==0:n[e/2-1]+n[e/2]!==0},Ao=(n,e,t,s)=>{let r=n;for(;!r.hasOwnProperty(e);)r=Object.getPrototypeOf(r);const{get:i,set:o}=Object.getOwnPropertyDescriptor(r,e);Object.defineProperty(n,e,{get:t(i),set:s(o)})},XO=n=>({...n,outputChannelCount:n.outputChannelCount!==void 0?n.outputChannelCount:n.numberOfInputs===1&&n.numberOfOutputs===1?[n.channelCount]:Array.from({length:n.numberOfOutputs},()=>1)}),ZO=n=>({...n,channelCount:n.numberOfOutputs}),KO=n=>{const{imag:e,real:t}=n;return e===void 0?t===void 0?{...n,imag:[0,0],real:[0,0]}:{...n,imag:Array.from(t,()=>0),real:t}:t===void 0?{...n,imag:e,real:Array.from(e,()=>0)}:{...n,imag:e,real:t}},Dm=(n,e,t)=>{try{n.setValueAtTime(e,t)}catch(s){if(s.code!==9)throw s;Dm(n,e,t+1e-7)}},QO=n=>{const e=n.createBufferSource();e.start();try{e.start()}catch{return!0}return!1},JO=n=>{const e=n.createBufferSource(),t=n.createBuffer(1,1,44100);e.buffer=t;try{e.start(0,1)}catch{return!1}return!0},e2=n=>{const e=n.createBufferSource();e.start();try{e.stop()}catch{return!1}return!0},Xu=n=>{const e=n.createOscillator();try{e.start(-1)}catch(t){return t instanceof RangeError}return!1},Pm=n=>{const e=n.createBuffer(1,1,44100),t=n.createBufferSource();t.buffer=e,t.start(),t.stop();try{return t.stop(),!0}catch{return!1}},Zu=n=>{const e=n.createOscillator();try{e.stop(-1)}catch(t){return t instanceof RangeError}return!1},t2=n=>{const{port1:e,port2:t}=new MessageChannel;try{e.postMessage(n)}finally{e.close(),t.close()}},n2=n=>{n.start=(e=>(t=0,s=0,r)=>{const i=n.buffer,o=i===null?s:Math.min(i.duration,s);i!==null&&o>i.duration-.5/n.context.sampleRate?e.call(n,t,0,0):e.call(n,t,o,r)})(n.start)},Mm=(n,e)=>{const t=e.createGain();n.connect(t);const s=(r=>()=>{r.call(n,t),n.removeEventListener("ended",s)})(n.disconnect);n.addEventListener("ended",s),ii(n,t),n.stop=(r=>{let i=!1;return(o=0)=>{if(i)try{r.call(n,o)}catch{t.gain.setValueAtTime(0,o)}else r.call(n,o),i=!0}})(n.stop)},oi=(n,e)=>t=>{const s={value:n};return Object.defineProperties(t,{currentTarget:s,target:s}),typeof e=="function"?e.call(n,t):e.handleEvent.call(n,t)},s2=TE(cr),r2=AE(cr),i2=VC(yc),Nm=new WeakMap,o2=iS(Nm),_n=_C(new Map,new WeakMap),An=WO(),Im=IS(_n,Dn),Ku=rS(kt),ft=OO(kt,Ku,er),a2=NE(Im,Be,ft),ze=cS(_c),ss=cO(An),Pe=ES(ss),$m=new WeakMap,Fm=KC(oi),Ro=jS(An),Qu=xS(Ro),Ju=wS(An),Lm=TS(An),qi=VS(An),it=iC(kE(hm),OE(s2,r2,Ma,i2,Na,kt,o2,To,Be,cr,qn,er,oa),_n,gS(Wl,Na,kt,Be,Bi,qn),Dn,vc,Et,FC(Ma,Wl,kt,Be,Bi,ze,qn,Pe),WC($m,kt,fn),Fm,ze,Qu,Ju,Lm,Pe,qi),c2=ME(it,a2,Dn,Im,ze,Pe),eh=new WeakSet,Mf=$S(An),jm=RC(new Uint32Array(1)),th=qO(jm,Dn),nh=HO(jm),zm=$E(eh,_n,Et,Mf,ss,FO(Mf),th,nh),bc=RE(Nt),Vm=AO(Ku,Eo,er),Pn=kC(Vm),ai=LS(bc,_n,QO,JO,e2,Xu,Pm,Zu,n2,YO(Ao),Mm),Mn=SO(oS(Eo),Vm),l2=jE(Pn,ai,Be,Mn,ft),yn=oC(EE(dm),$m,Bu,aC,_E,yE,vE,bE,xE,Vl,lm,Ro,Dm),u2=LE(it,l2,yn,ht,ai,ze,Pe,oi),h2=GE(it,XE,Dn,ht,zS(Nt,Ao),ze,Pe,ft),d2=gC(Pn,Cm,Be,Mn,ft),lr=PO(Nm),f2=mC(it,yn,d2,vc,Cm,ze,Pe,lr),Rs=MS(cr,Ju),p2=GO(ht,Rs),Ds=GS(Ro,p2),m2=bC(Ds,Be,ft),g2=vC(it,m2,Ds,ze,Pe),_2=TC(So,Be,ft),y2=wC(it,_2,So,ze,Pe,ZO),v2=KS(bc,ai,Nt,Rs),ci=ZS(bc,_n,v2,Xu,Zu),b2=AC(Pn,ci,Be,Mn,ft),x2=OC(it,yn,b2,ci,ze,Pe,oi),Um=QS(Et,Ao),w2=MC(Um,Be,ft),T2=PC(it,w2,Um,ze,Pe,lr),k2=zC(Pn,Sm,Be,Mn,ft),E2=jC(it,yn,k2,Sm,ze,Pe,lr),Bm=JS(Et),C2=GC(Pn,Bm,Be,Mn,ft),S2=YC(it,yn,C2,Bm,Et,ze,Pe,lr),O2=nS(Pn,Nt,Be,Mn,ft),A2=tS(it,yn,O2,Nt,ze,Pe),R2=sO(vc,ht,Oo,Et),xc=RO(_n,Nt,Oo,jO(Nt,ss)),D2=mS(ai,Be,ss,ft,xc),P2=eO(R2),M2=fS(it,P2,D2,ze,Pe,lr),N2=ZE(yn,Ds,ci,Oo,Et,Am,Pe,Ao),Wm=new WeakMap,I2=PS(h2,N2,Fm,Pe,Wm,oi),qm=lO(bc,_n,Xu,Pm,Zu,Mm),$2=xO(Pn,qm,Be,Mn,ft),F2=bO(it,yn,qm,$2,ze,Pe,oi),Hm=CC(ai),L2=gO(Hm,ht,Nt,Rm,Rs),wc=mO(Hm,ht,L2,Rm,Rs,Ro,Ao),j2=hO(Ma,ht,Ds,Nt,Oo,wc,Et,Na,Am,Rs),Ym=uO(j2),z2=kO(Pn,Ds,ci,Nt,Ym,Be,ss,Mn,ft,xc),V2=TO(it,yn,Ym,z2,ze,Pe,lr),U2=dO(Dn),B2=CO(U2,ze,new WeakSet,KO),W2=pO(Ds,So,Nt,wc,Et,Rs),Gm=fO(W2,Et),q2=$O(Pn,Gm,Be,Mn,ft),H2=IO(it,yn,Gm,q2,ze,Pe),Y2=BO(wc,Be,ft),G2=UO(it,ht,wc,Y2,ze,Pe,lr),Xm=CS(An),sh=QC(An),Zm=new WeakMap,X2=lS(Zm,ss),Z2=Xm?SE(_n,Et,ZC(An),sh,JC(wE),ze,X2,Pe,qi,new WeakMap,new WeakMap,LO(qi,ss),An):void 0,K2=kS(Qu,Pe),Q2=$C(eh,_n,IC,XC,new WeakSet,ze,K2,Da,Wi,th,nh),Km=fC(Z2,c2,zm,u2,f2,g2,y2,x2,T2,Q2,E2,S2,A2,M2,I2,F2,V2,B2,H2,G2),J2=SS(it,rO,ze,Pe),eA=AS(it,iO,ze,Pe),tA=RS(it,oO,ze,Pe),nA=aO(ht,Pe),sA=DS(it,nA,ze),rA=YE(Km,ht,Et,zO,J2,eA,tA,sA,Ro),rh=uS(Wm),iA=DE(rh),Qm=EC(Dn),oA=UC(rh),Jm=qC(Dn),eg=new WeakMap,aA=sS(eg,fn),cA=YS(Qm,Dn,ht,Ds,So,ci,Nt,Oo,Et,Jm,sh,aA,Rs),lA=BS(ht,cA,Nt,Et,Rs),uA=dC(Pn,Qm,ai,Ds,So,ci,Nt,oA,Jm,sh,Be,qi,ss,Mn,ft,xc),hA=aS(Zm),dA=DO(eg),Nf=Xm?lC(iA,it,yn,uA,lA,kt,hA,ze,Pe,qi,XO,dA,t2,oi):void 0,fA=NC(Et,ss),pA=MO(eh,_n,Ku,rh,xc,Da,th,nh),mA=yO(Km,_n,ht,fA,pA),gA=_S(_c,Qu),_A=yS(Uu,Ju),yA=vS(Bu,Lm),vA=bS(_c,Pe);function Ut(n){return typeof n>"u"}function xe(n){return!Ut(n)}function bA(n){return typeof n=="function"}function ws(n){return typeof n=="number"}function qs(n){return Object.prototype.toString.call(n)==="[object Object]"&&n.constructor===Object}function xA(n){return typeof n=="boolean"}function hn(n){return Array.isArray(n)}function Zn(n){return typeof n=="string"}function Ko(n){return Zn(n)&&/^([a-g]{1}(?:b|#|x|bb)?)(-?[0-9]+)/i.test(n)}function me(n,e){if(!n)throw new Error(e)}function pn(n,e,t=1/0){if(!(e<=n&&n<=t))throw new RangeError(`Value must be within [${e}, ${t}], got: ${n}`)}function tg(n){!n.isOffline&&n.state!=="running"&&ih('The AudioContext is "suspended". Invoke Tone.start() from a user action to start the audio.')}let ng=!1,If=!1;function $f(n){ng=n}function wA(n){Ut(n)&&ng&&!If&&(If=!0,ih("Events scheduled inside of scheduled callbacks should use the passed in scheduling time. See https://github.com/Tonejs/Tone.js/wiki/Accurate-Timing"))}let sg=console;function TA(...n){sg.log(...n)}function ih(...n){sg.warn(...n)}function kA(n){return new rA(n)}function EA(n,e,t){return new mA(n,e,t)}const Hs=typeof self=="object"?self:null,CA=Hs&&(Hs.hasOwnProperty("AudioContext")||Hs.hasOwnProperty("webkitAudioContext"));function SA(n,e,t){return me(xe(Nf),"This node only works in a secure context (https or localhost)"),new Nf(n,e,t)}class OA{constructor(e,t,s,r){this._callback=e,this._type=t,this._minimumUpdateInterval=Math.max(128/(r||44100),.001),this.updateInterval=s,this._createClock()}_createWorker(){const e=new Blob([` // the initial timeout time let timeoutTime = ${(this._updateInterval*1e3).toFixed(1)}; // onmessage callback @@ -198,12 +198,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } // call tick initially tick(); - `],{type:"text/javascript"}),t=URL.createObjectURL(e),s=new Worker(t);s.onmessage=this._callback.bind(this),this._worker=s}_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 tr(n){return vA(n)}function ms(n){return yA(n)}function aa(n){return bA(n)}function Tr(n){return _A(n)}function RA(n){return n instanceof Vm}function DA(n,e){return n==="value"||tr(e)||ms(e)||RA(e)}function Dr(n,...e){if(!e.length)return n;const t=e.shift();if(qs(n)&&qs(t))for(const s in t)DA(s,t[s])?n[s]=t[s]:qs(t[s])?(n[s]||Object.assign(n,{[s]:{}}),Dr(n[s],t[s])):Object.assign(n,{[s]:t[s]});return Dr(n,...e)}function PA(n,e){return n.length===e.length&&n.every((t,s)=>e[s]===t)}function Z(n,e,t=[],s){const r={},i=Array.from(e);if(qs(i[0])&&s&&!Reflect.has(i[0],s)&&(Object.keys(i[0]).some(a=>Reflect.has(n,a))||(Dr(r,{[s]:i[0]}),t.splice(t.indexOf(s),1),i.shift())),i.length===1&&qs(i[0]))Dr(r,i[0]);else for(let o=0;o{Reflect.has(n,t)&&delete n[t]}),n}/** + `],{type:"text/javascript"}),t=URL.createObjectURL(e),s=new Worker(t);s.onmessage=this._callback.bind(this),this._worker=s}_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 tr(n){return yA(n)}function ms(n){return _A(n)}function aa(n){return vA(n)}function Tr(n){return gA(n)}function AA(n){return n instanceof zm}function RA(n,e){return n==="value"||tr(e)||ms(e)||AA(e)}function Dr(n,...e){if(!e.length)return n;const t=e.shift();if(qs(n)&&qs(t))for(const s in t)RA(s,t[s])?n[s]=t[s]:qs(t[s])?(n[s]||Object.assign(n,{[s]:{}}),Dr(n[s],t[s])):Object.assign(n,{[s]:t[s]});return Dr(n,...e)}function DA(n,e){return n.length===e.length&&n.every((t,s)=>e[s]===t)}function Z(n,e,t=[],s){const r={},i=Array.from(e);if(qs(i[0])&&s&&!Reflect.has(i[0],s)&&(Object.keys(i[0]).some(a=>Reflect.has(n,a))||(Dr(r,{[s]:i[0]}),t.splice(t.indexOf(s),1),i.shift())),i.length===1&&qs(i[0]))Dr(r,i[0]);else for(let o=0;o{Reflect.has(n,t)&&delete n[t]}),n}/** * Tone.js * @author Yotam Mann * @license http://opensource.org/licenses/MIT MIT License * @copyright 2014-2019 Yotam Mann - */class rs{constructor(){this.debug=!1,this._wasDisposed=!1}static getDefaults(){return{}}log(...e){(this.debug||Hs&&this.toString()===Hs.TONE_DEBUG_CLASS)&&kA(this,...e)}dispose(){return this._wasDisposed=!0,this}get disposed(){return this._wasDisposed}toString(){return this.name}}rs.version=lm;const oh=1e-6;function Ur(n,e){return n>e+oh}function Xl(n,e){return Ur(n,e)||an(n,e)}function La(n,e){return n+ohthis.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 s=this._search(e,t);return s!==-1?this._timeline[s]:null}peek(){return this._timeline[0]}shift(){return this._timeline.shift()}getAfter(e,t="time"){const s=this._search(e,t);return s+10&&this._timeline[t-1].time=0?this._timeline[s-1]:null}cancel(e){if(this._timeline.length>1){let t=this._search(e);if(t>=0)if(an(this._timeline[t].time,e)){for(let s=t;s>=0&&an(this._timeline[s].time,e);s--)t=s;this._timeline=this._timeline.slice(0,t)}else this._timeline=this._timeline.slice(0,t+1);else this._timeline=[]}else this._timeline.length===1&&Xl(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 s=0;const r=this._timeline.length;let i=r;if(r>0&&this._timeline[r-1][t]<=e)return r-1;for(;s=0&&this._timeline[s].time>=e;)s--;return this._iterate(t,s+1),this}forEachAtTime(e,t){const s=this._search(e);if(s!==-1&&an(this._timeline[s].time,e)){let r=s;for(let i=s;i>=0&&an(this._timeline[i].time,e);i--)r=i;this._iterate(i=>{t(i)},r,s)}return this}dispose(){return super.dispose(),this._timeline=[],this}};const og=[];function Tc(n){og.push(n)}function IA(n){og.forEach(e=>e(n))}const ag=[];function kc(n){ag.push(n)}function $A(n){ag.forEach(e=>e(n))}class Do extends rs{constructor(){super(...arguments),this.name="Emitter"}on(e,t){return e.split(/\W+/).forEach(r=>{Ut(this._events)&&(this._events={}),this._events.hasOwnProperty(r)||(this._events[r]=[]),this._events[r].push(t)}),this}once(e,t){const s=(...r)=>{t(...r),this.off(e,s)};return this.on(e,s),this}off(e,t){return e.split(/\W+/).forEach(r=>{if(Ut(this._events)&&(this._events={}),this._events.hasOwnProperty(r))if(Ut(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 s=this._events[e].slice(0);for(let r=0,i=s.length;r{const s=Object.getOwnPropertyDescriptor(Do.prototype,t);Object.defineProperty(e.prototype,t,s)})}dispose(){return super.dispose(),this._events=void 0,this}}class cg extends Do{constructor(){super(...arguments),this.isOffline=!1}toJSON(){return{}}}let ah=class lg extends cg{constructor(){var e,t;super(),this.name="Context",this._constants=new Map,this._timeouts=new En,this._timeoutIds=0,this._initialized=!1,this._closeStarted=!1,this.isOffline=!1,this._workletPromise=null;const s=Z(lg.getDefaults(),arguments,["context"]);s.context?(this._context=s.context,this._latencyHint=((e=arguments[0])===null||e===void 0?void 0:e.latencyHint)||""):(this._context=EA({latencyHint:s.latencyHint}),this._latencyHint=s.latencyHint),this._ticker=new AA(this.emit.bind(this,"tick"),s.clockSource,s.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"]=s.lookAhead}static getDefaults(){return{clockSource:"worker",latencyHint:"interactive",lookAhead:.1,updateInterval:.05}}initialize(){return this._initialized||(IA(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,s){return this._context.createBuffer(e,t,s)}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,s){return this._context.createPeriodicWave(e,t,s)}createStereoPanner(){return this._context.createStereoPanner()}createWaveShaper(){return this._context.createWaveShaper()}createMediaStreamSource(e){return me(Tr(this._context),"Not available if OfflineAudioContext"),this._context.createMediaStreamSource(e)}createMediaElementSource(e){return me(Tr(this._context),"Not available if OfflineAudioContext"),this._context.createMediaElementSource(e)}createMediaStreamDestination(){return me(Tr(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){me(!this._initialized,"The listener cannot be set after initialization."),this._listener=e}get transport(){return this.initialize(),this._transport}set transport(e){me(!this._initialized,"The transport cannot be set after initialization."),this._transport=e}get draw(){return this.initialize(),this._draw}set draw(e){me(!this._initialized,"Draw cannot be set after initialization."),this._draw=e}get destination(){return this.initialize(),this._destination}set destination(e){me(!this._initialized,"The destination cannot be set after initialization."),this._destination=e}createAudioWorkletNode(e,t){return OA(this.rawContext,e,t)}addAudioWorkletModule(e){return Ie(this,void 0,void 0,function*(){me(xe(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 Tr(this._context)?this._context.resume():Promise.resolve()}close(){return Ie(this,void 0,void 0,function*(){Tr(this._context)&&this.state!=="closed"&&!this._closeStarted&&(this._closeStarted=!0,yield this._context.close()),this._initialized&&$A(this)})}getConstant(e){if(this._constants.has(e))return this._constants.get(e);{const t=this._context.createBuffer(1,128,this._context.sampleRate),s=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 s=this.now();return this._timeouts.add({callback:e,id:this._timeoutIds,time:s+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 s=++this._timeoutIds,r=()=>{const i=this.now();this._timeouts.add({callback:()=>{e(),r()},id:s,time:i+t})};return r(),s}};class FA extends cg{constructor(){super(...arguments),this.lookAhead=0,this.latencyHint=0,this.isOffline=!1}createAnalyser(){return{}}createOscillator(){return{}}createBufferSource(){return{}}createBiquadFilter(){return{}}createBuffer(e,t,s){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,s){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(n,e){hn(e)?e.forEach(t=>Ve(n,t)):Object.defineProperty(n,e,{enumerable:!0,writable:!1})}function ch(n,e){hn(e)?e.forEach(t=>ch(n,t)):Object.defineProperty(n,e,{writable:!0})}const Oe=()=>{};class Ae extends rs{constructor(){super(),this.name="ToneAudioBuffer",this.onload=Oe;const e=Z(Ae.getDefaults(),arguments,["url","onload","onerror"]);this.reverse=e.reverse,this.onload=e.onload,Zn(e.url)?this.load(e.url).catch(e.onerror):e.url&&this.set(e.url)}static getDefaults(){return{onerror:Oe,onload:Oe,reverse:!1}}get sampleRate(){return this._buffer?this._buffer.sampleRate:cn().sampleRate}set(e){return e instanceof Ae?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=Ae.load(e).then(s=>{this.set(s),this.onload(this)});Ae.downloads.push(t);try{yield t}finally{const s=Ae.downloads.indexOf(t);Ae.downloads.splice(s,1)}return this})}dispose(){return super.dispose(),this._buffer=void 0,this}fromArray(e){const t=hn(e)&&e[0].length>0,s=t?e.length:1,r=t?e[0].length:e.length,i=cn(),o=i.createBuffer(s,r,i.sampleRate),a=!t&&s===1?[e]:e;for(let c=0;cr/s),this.fromArray(t)}return this}toArray(e){if(ws(e))return this.getChannelData(e);if(this.numberOfChannels===1)return this.toArray(0);{const t=[];for(let s=0;s0}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 Ae().fromArray(e)}static fromUrl(e){return Ie(this,void 0,void 0,function*(){return yield new Ae().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(Ae.supportsType(u)){l=u;break}e=e.replace(t[0],l)}const s=Ae.baseUrl===""||Ae.baseUrl.endsWith("/")?Ae.baseUrl:Ae.baseUrl+"/",r=document.createElement("a");r.href=s+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 cn().decodeAudioData(o)})}static supportsType(e){const t=e.split("."),s=t[t.length-1];return document.createElement("audio").canPlayType("audio/"+s)!==""}static loaded(){return Ie(this,void 0,void 0,function*(){for(yield Promise.resolve();Ae.downloads.length;)yield Ae.downloads[0]})}}Ae.baseUrl="";Ae.downloads=[];class Ec extends ah{constructor(){super({clockSource:"offline",context:aa(arguments[0])?arguments[0]:CA(arguments[0],arguments[1]*arguments[2],arguments[2]),lookAhead:0,updateInterval:aa(arguments[0])?128/arguments[0].sampleRate:128/arguments[2]}),this.name="OfflineContext",this._currentTime=0,this.isOffline=!0,this._duration=aa(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 s=Math.floor(this.sampleRate/128);e&&t%s===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 Ae(t)})}close(){return Promise.resolve()}}const ug=new FA;let Vs=ug;function cn(){return Vs===ug&&SA&&LA(new ah),Vs}function LA(n,e=!1){e&&Vs.dispose(),Tr(n)?Vs=new ah(n):aa(n)?Vs=new Ec(n):Vs=n}function jA(){return Vs.resume()}if(Hs&&!Hs.TONE_SILENCE_LOGGING){const e=` * Tone.js v${lm} * `;console.log(`%c${e}`,"background: #000; color: #fff")}function zA(n){return Math.pow(10,n/20)}function VA(n){return 20*(Math.log(n)/Math.LN10)}function hg(n){return Math.pow(2,n/12)}let Cc=440;function UA(){return Cc}function BA(n){Cc=n}function Zl(n){return Math.round(dg(n))}function dg(n){return 69+12*Math.log2(n/Cc)}function WA(n){return Cc*Math.pow(2,(n-69)/12)}class lh extends rs{constructor(e,t,s){super(),this.defaultUnits="s",this._val=t,this._units=s,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 s=parseInt(e,10),r=t==="."?1.5:1;return s===1?this._beatsToUnits(this._getTimeSignature())*r:this._beatsToUnits(4/s)*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,s)=>{let r=0;return e&&e!=="0"&&(r+=this._beatsToUnits(this._getTimeSignature()*parseFloat(e))),t&&t!=="0"&&(r+=this._beatsToUnits(parseFloat(t))),s&&s!=="0"&&(r+=this._beatsToUnits(parseFloat(s)/4)),r},regexp:/^(\d+(?:\.\d+)?):(\d+(?:\.\d+)?):?(\d+(?:\.\d+)?)?$/}}}valueOf(){if(this._val instanceof lh&&this.fromType(this._val),Ut(this._val))return this._noArg();if(Zn(this._val)&&Ut(this._units)){for(const e in this._expressions)if(this._expressions[e].regexp.test(this._val.trim())){this._units=e;break}}else if(qs(this._val)){let e=0;for(const t in this._val)if(xe(this._val[t])){const s=this._val[t],r=new this.constructor(this.context,t).valueOf()*s;e+=r}return e}if(xe(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 Zn(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 ln extends lh{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 ln(this.context,e).valueOf();return this._secondsToUnits(this.context.transport.nextSubdivision(t))},regexp:/^@(.+)/}})}quantize(e,t=1){const s=new this.constructor(this.context,e).valueOf(),r=this.valueOf(),a=Math.round(r/s)*s-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 s=t[0],r=new ln(this.context,t[0]).toSeconds();return t.forEach(i=>{const o=new ln(this.context,i).toSeconds();Math.abs(o-e)3&&(r=parseFloat(parseFloat(i).toFixed(3))),[s,t,r].join(":")}toTicks(){const e=this._beatsToUnits(1);return this.valueOf()/e*this._getPPQ()}toSeconds(){return this.valueOf()}toMidi(){return Zl(this.toFrequency())}_now(){return this.context.now()}}class Zt extends ln{constructor(){super(...arguments),this.name="Frequency",this.defaultUnits="hz"}static get A4(){return UA()}static set A4(e){BA(e)}_getExpressions(){return Object.assign({},super._getExpressions(),{midi:{regexp:/^(\d+(?:\.\d+)?midi)/,method(e){return this.defaultUnits==="midi"?e:Zt.mtof(e)}},note:{regexp:/^([a-g]{1}(?:b|#|##|x|bb|###|#x|x#|bbb)?)(-?[0-9]+)/i,method(e,t){const r=qA[e.toLowerCase()]+(parseInt(t,10)+1)*12;return this.defaultUnits==="midi"?r:Zt.mtof(r)}},tr:{regexp:/^(\d+(?:\.\d+)?):(\d+(?:\.\d+)?):?(\d+(?:\.\d+)?)?/,method(e,t,s){let r=1;return e&&e!=="0"&&(r*=this._beatsToUnits(this._getTimeSignature()*parseFloat(e))),t&&t!=="0"&&(r*=this._beatsToUnits(parseFloat(t))),s&&s!=="0"&&(r*=this._beatsToUnits(parseFloat(s)/4)),r}}})}transpose(e){return new Zt(this.context,this.valueOf()*hg(e))}harmonize(e){return e.map(t=>this.transpose(t))}toMidi(){return Zl(this.valueOf())}toNote(){const e=this.toFrequency(),t=Math.log2(e/Zt.A4);let s=Math.round(12*t)+57;const r=Math.floor(s/12);return r<0&&(s+=-12*r),HA[s%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 WA(e)}static ftom(e){return Zl(e)}}const qA={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},HA=["C","C#","D","D#","E","F","F#","G","G#","A","A#","B"];class Ni extends ln{constructor(){super(...arguments),this.name="TransportTime"}_now(){return this.context.transport.seconds}}class At extends rs{constructor(){super();const e=Z(At.getDefaults(),arguments,["context"]);this.defaultContext?this.context=this.defaultContext:this.context=e.context}static getDefaults(){return{context:cn()}}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 TA(e),new ln(this.context,e).toSeconds()}toFrequency(e){return new Zt(this.context,e).toFrequency()}toTicks(e){return new Ni(this.context,e).toTicks()}_getPartialProperties(e){const t=this.get();return Object.keys(t).forEach(s=>{Ut(e[s])&&delete t[s]}),t}get(){const e=MA(this);return Object.keys(e).forEach(t=>{if(Reflect.has(this,t)){const s=this[t];xe(s)&&xe(s.value)&&xe(s.setValueAtTime)?e[t]=s.value:s instanceof At?e[t]=s._getPartialProperties(e[t]):hn(s)||ws(s)||Zn(s)||wA(s)?e[t]=s:delete e[t]}}),e}set(e){return Object.keys(e).forEach(t=>{Reflect.has(this,t)&&xe(this[t])&&(this[t]&&xe(this[t].value)&&xe(this[t].setValueAtTime)?this[t].value!==e[t]&&(this[t].value=e[t]):this[t]instanceof At?this[t].set(e[t]):this[t]=e[t])}),this}}class uh extends En{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,s){return pn(t,0),this.add(Object.assign({},s,{state:e,time:t})),this}getLastState(e,t){const s=this._search(t);for(let r=s;r>=0;r--){const i=this._timeline[r];if(i.state===e)return i}}getNextState(e,t){const s=this._search(t);if(s!==-1)for(let r=s;r0,"timeConstant must be a number greater than 0");const i=this.toSeconds(t);return this._assertRange(r),me(isFinite(r)&&isFinite(i),`Invalid argument(s) to setTargetAtTime: ${JSON.stringify(e)}, ${JSON.stringify(t)}`),this._events.add({constant:s,time:i,type:"setTargetAtTime",value:r}),this.log(this.units,"setTargetAtTime",e,i,s),this._param.setTargetAtTime(r,i,s),this}setValueCurveAtTime(e,t,s,r=1){s=this.toSeconds(s),t=this.toSeconds(t);const i=this._fromType(e[0])*r;this.setValueAtTime(this._toType(i),t);const o=s/(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){me(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,s,r,i){return s+(t-s)*Math.exp(-(i-e)/r)}_linearInterpolate(e,t,s,r,i){return t+(r-t)*((i-e)/(s-e))}_exponentialInterpolate(e,t,s,r,i){return t*Math.pow(r/t,(i-e)/(s-e))}}class ue extends At{constructor(){super(...arguments),this._internalChannels=[]}get numberOfInputs(){return xe(this.input)?tr(this.input)||this.input instanceof Re?1:this.input.numberOfInputs:0}get numberOfOutputs(){return xe(this.output)?this.output.numberOfOutputs:0}_isAudioNode(e){return xe(e)&&(e instanceof ue||ms(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(s=>{s.channelCount=e.channelCount,s.channelCountMode=e.channelCountMode,s.channelInterpretation=e.channelInterpretation})}_getChannelProperties(){const e=this._getInternalNodes();me(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,s=0){return Ts(this,e,t,s),this}toDestination(){return this.connect(this.context.destination),this}toMaster(){return ih("toMaster() has been renamed toDestination()"),this.toDestination()}disconnect(e,t=0,s=0){return YA(this,e,t,s),this}chain(...e){return Hi(this,...e),this}fan(...e){return e.forEach(t=>this.connect(t)),this}dispose(){return super.dispose(),xe(this.input)&&(this.input instanceof ue?this.input.dispose():ms(this.input)&&this.input.disconnect()),xe(this.output)&&(this.output instanceof ue?this.output.dispose():ms(this.output)&&this.output.disconnect()),this._internalChannels=[],this}}function Hi(...n){const e=n.shift();n.reduce((t,s)=>(t instanceof ue?t.connect(s):ms(t)&&Ts(t,s),s),e)}function Ts(n,e,t=0,s=0){for(me(xe(n),"Cannot connect from undefined node"),me(xe(e),"Cannot connect to undefined node"),(e instanceof ue||ms(e))&&me(e.numberOfInputs>0,"Cannot connect to node with no inputs"),me(n.numberOfOutputs>0,"Cannot connect from node with no outputs");e instanceof ue||e instanceof Re;)xe(e.input)&&(e=e.input);for(;n instanceof ue;)xe(n.output)&&(n=n.output);tr(e)?n.connect(e,t):n.connect(e,t,s)}function YA(n,e,t=0,s=0){if(xe(e))for(;e instanceof ue;)e=e.input;for(;!ms(n);)xe(n.output)&&(n=n.output);tr(e)?n.disconnect(e,t):ms(e)?n.disconnect(e,t,s):n.disconnect()}class $e extends ue{constructor(){super(Z($e.getDefaults(),arguments,["gain","units"])),this.name="Gain",this._gainNode=this.context.createGain(),this.input=this._gainNode,this.output=this._gainNode;const e=Z($e.getDefaults(),arguments,["gain","units"]);this.gain=new Re({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(ue.getDefaults(),{convert:!0,gain:1,units:"gain"})}dispose(){return super.dispose(),this._gainNode.disconnect(),this.gain.dispose(),this}}class Br extends ue{constructor(e){super(e),this.onended=Oe,this._startTime=-1,this._stopTime=-1,this._timeout=-1,this.output=new $e({context:this.context,gain:0}),this._gainNode=this.output,this.getStateAtTime=function(t){const s=this.toSeconds(t);return this._startTime!==-1&&s>=this._startTime&&(this._stopTime===-1||s<=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(ue.getDefaults(),{curve:"linear",fadeIn:0,fadeOut:0,onended:Oe})}_startGain(e,t=1){me(this._startTime===-1,"Source cannot be started more than once");const s=this.toSeconds(this._fadeIn);return this._startTime=e+s,this._startTime=Math.max(this._startTime,this.context.currentTime),s>0?(this._gainNode.gain.setValueAtTime(0,e),this._curve==="linear"?this._gainNode.gain.linearRampToValueAtTime(t,e+s):this._gainNode.gain.exponentialApproachValueAtTime(t,e,s)):this._gainNode.gain.setValueAtTime(t,e),this}stop(e){return this.log("stop",e),this._stopGain(this.toSeconds(e)),this}_stopGain(e){me(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 s=this._curve==="exponential"?t*2:0;this._stopSource(this.now()+s),this._onended()},this._stopTime-this.context.currentTime),this}_onended(){if(this.onended!==Oe&&(this.onended(this),this.onended=Oe,!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"),me(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=Oe,this}}class ja extends Br{constructor(){super(Z(ja.getDefaults(),arguments,["offset"])),this.name="ToneConstantSource",this._source=this.context.createConstantSource();const e=Z(ja.getDefaults(),arguments,["offset"]);Ts(this._source,this._gainNode),this.offset=new Re({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(Br.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 je extends ue{constructor(){super(Z(je.getDefaults(),arguments,["value","units"])),this.name="Signal",this.override=!0;const e=Z(je.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(ue.getDefaults(),{convert:!0,units:"number",value:0})}connect(e,t=0,s=0){return hh(this,e,t,s),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,s){return this._param.exponentialRampTo(e,t,s),this}linearRampTo(e,t,s){return this._param.linearRampTo(e,t,s),this}targetRampTo(e,t,s){return this._param.targetRampTo(e,t,s),this}exponentialApproachValueAtTime(e,t,s){return this._param.exponentialApproachValueAtTime(e,t,s),this}setTargetAtTime(e,t,s){return this._param.setTargetAtTime(e,t,s),this}setValueCurveAtTime(e,t,s,r){return this._param.setValueCurveAtTime(e,t,s,r),this}cancelScheduledValues(e){return this._param.cancelScheduledValues(e),this}cancelAndHoldAtTime(e){return this._param.cancelAndHoldAtTime(e),this}rampTo(e,t,s){return this._param.rampTo(e,t,s),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 hh(n,e,t,s){(e instanceof Re||tr(e)||e instanceof je&&e.override)&&(e.cancelScheduledValues(0),e.setValueAtTime(0,0),e instanceof je&&(e.overridden=!0)),Ts(n,e,t,s)}class za extends Re{constructor(){super(Z(za.getDefaults(),arguments,["value"])),this.name="TickParam",this._events=new En(1/0),this._multiplier=1;const e=Z(za.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(Re.getDefaults(),{multiplier:1,units:"hertz",value:1})}setTargetAtTime(e,t,s){t=this.toSeconds(t),this.setRampPoint(t);const r=this._fromType(e),i=this._events.get(t),o=Math.round(Math.max(1/s,1));for(let a=0;a<=o;a++){const c=s*a+t,l=this._exponentialApproach(i.time,i.value,r,s,c);this.linearRampToValueAtTime(this._toType(l),c)}return this}setValueAtTime(e,t){const s=this.toSeconds(t);super.setValueAtTime(e,t);const r=this._events.get(s),i=this._events.previousEvent(r),o=this._getTicksUntilEvent(i,s);return r.ticks=Math.max(o,0),this}linearRampToValueAtTime(e,t){const s=this.toSeconds(t);super.linearRampToValueAtTime(e,t);const r=this._events.get(s),i=this._events.previousEvent(r),o=this._getTicksUntilEvent(i,s);return r.ticks=Math.max(o,0),this}exponentialRampToValueAtTime(e,t){t=this.toSeconds(t);const s=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,s,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(Ut(e.ticks)){const o=this._events.previousEvent(e);e.ticks=this._getTicksUntilEvent(o,e.time)}const s=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)*(s+r)+e.ticks}getTicksAtTime(e){const t=this.toSeconds(e),s=this._events.get(t);return Math.max(this._getTicksUntilEvent(s,t),0)}getDurationOfTicks(e,t){const s=this.toSeconds(t),r=this.getTicksAtTime(t);return this.getTimeOfTick(r+e)-s}getTimeOfTick(e){const t=this._events.get(e,"ticks"),s=this._events.getAfter(e,"ticks");if(t&&t.ticks===e)return t.time;if(t&&s&&s.type==="linearRampToValueAtTime"&&t.value!==s.value){const r=this._fromType(this.getValueAtTime(t.time)),o=(this._fromType(this.getValueAtTime(s.time))-r)/(s.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 s=this.toSeconds(t),r=this.toSeconds(e),i=this.getTicksAtTime(s);return this.getTicksAtTime(s+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 je{constructor(){super(Z(Va.getDefaults(),arguments,["value"])),this.name="TickSignal";const e=Z(Va.getDefaults(),arguments,["value"]);this.input=this._param=new za({context:this.context,convert:e.convert,multiplier:e.multiplier,param:this._constantSource.offset,units:e.units,value:e.value})}static getDefaults(){return Object.assign(je.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 At{constructor(){super(Z(Ua.getDefaults(),arguments,["frequency"])),this.name="TickSource",this._state=new uh,this._tickOffset=new En,this._ticksAtTime=new En,this._secondsAtTime=new En;const e=Z(Ua.getDefaults(),arguments,["frequency"]);this.frequency=new Va({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"},At.getDefaults())}get state(){return this.getStateAtTime(this.now())}start(e,t){const s=this.toSeconds(e);return this._state.getValueAtTime(s)!=="started"&&(this._state.setStateAtTime("started",s),xe(t)&&this.setTicksAtTime(t,s),this._ticksAtTime.cancel(s),this._secondsAtTime.cancel(s)),this}stop(e){const t=this.toSeconds(e);if(this._state.getValueAtTime(t)==="stopped"){const s=this._state.get(t);s&&s.time>0&&(this._tickOffset.cancel(s.time),this._state.cancel(s.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),s=this._state.getLastState("stopped",t),r=this._ticksAtTime.get(t),i={state:"paused",time:t};this._state.add(i);let o=r||s,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(),s=this.frequency.timeToTicks(e,t);this.setTicksAtTime(s,t)}getSecondsAtTime(e){e=this.toSeconds(e);const t=this._state.getLastState("stopped",e),s={state:"paused",time:e};this._state.add(s);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!=s.time&&(a={state:c.state,time:c.time,seconds:o})),i=c}),this._state.remove(s),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 s=this._tickOffset.get(t),r=this._state.get(t),i=Math.max(s.time,r.time),o=this.frequency.getTicksAtTime(i)+e-s.ticks;return this.frequency.getTimeOfTick(o)}forEachTickBetween(e,t,s){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,s),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=an(u,1)?0:u;let h=this.frequency.getTimeOfTick(a+u);for(;h{switch(s.state){case"started":const r=this._tickSource.getTicksAtTime(s.time);this.emit("start",s.time,r);break;case"stopped":s.time!==0&&this.emit("stop",s.time);break;case"paused":this.emit("pause",s.time);break}}),this._tickSource.forEachTickBetween(e,t,(s,r)=>{this.callback(s,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}}Do.mixin(Yi);class dh extends rs{constructor(){super(),this.name="ToneAudioBuffers",this._buffers=new Map,this._loadingCount=0;const e=Z(dh.getDefaults(),arguments,["urls","onload","baseUrl"],"urls");this.baseUrl=e.baseUrl,Object.keys(e.urls).forEach(t=>{this._loadingCount++;const s=e.urls[t];this.add(t,s,this._bufferLoaded.bind(this,e.onload),e.onerror)})}static getDefaults(){return{baseUrl:"",onerror:Oe,onload:Oe,urls:{}}}has(e){return this._buffers.has(e.toString())}get(e){return me(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,s=Oe,r=Oe){return Zn(t)?(this.baseUrl&&t.trim().substring(0,11).toLowerCase()==="data:audio/"&&(this.baseUrl=""),this._buffers.set(e.toString(),new Ae(this.baseUrl+t,s,r))):this._buffers.set(e.toString(),new Ae(t,s,r)),this}dispose(){return super.dispose(),this._buffers.forEach(e=>e.dispose()),this._buffers.clear(),this}}class Cr 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 GA extends At{constructor(){super(...arguments),this.name="Draw",this.expiration=.25,this.anticipation=.008,this._events=new En,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}}Tc(n=>{n.draw=new GA({context:n})});kc(n=>{n.draw.dispose()});class XA extends rs{constructor(){super(...arguments),this.name="IntervalTimeline",this._root=null,this._length=0}add(e){me(xe(e.time),"Events must have a time property"),me(xe(e.duration),"Events must have a duration parameter"),e.time=e.time.valueOf();let t=new ZA(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 s of t)if(s.event===e){this._removeNode(s),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 s,r=null;if(t>0)if(e.left.right===null)s=e.left,s.right=e.right,r=s;else{for(s=e.left.right;s.right!==null;)s=s.right;s.parent&&(s.parent.right=s.left,r=s.parent,s.left=e.left,s.right=e.right)}else if(e.right.left===null)s=e.right,s.left=e.left,r=s;else{for(s=e.right.left;s.left!==null;)s=s.left;s.parent&&(s.parent.left=s.right,r=s.parent,s.left=e.left,s.right=e.right)}e.parent!==null?e.isLeftChild()?e.parent.left=s:e.parent.right=s:this._setRoot(s),r&&this._rebalance(r)}e.dispose()}_rotateLeft(e){const t=e.parent,s=e.isLeftChild(),r=e.right;r&&(e.right=r.left,r.left=e),t!==null?s?t.left=r:t.right=r:this._setRoot(r)}_rotateRight(e){const t=e.parent,s=e.isLeftChild(),r=e.left;r&&(e.left=r.right,r.right=e),t!==null?s?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 s=t[0];for(let r=1;rs.low&&(s=t[r]);return s.event}}return null}forEach(e){if(this._root!==null){const t=[];this._root.traverse(s=>t.push(s)),t.forEach(s=>{s.event&&e(s.event)})}return this}forEachAtTime(e,t){if(this._root!==null){const s=[];this._root.search(e,s),s.forEach(r=>{r.event&&t(r.event)})}return this}forEachFrom(e,t){if(this._root!==null){const s=[];this._root.searchAfter(e,s),s.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 ZA{constructor(e,t,s){this._left=null,this._right=null,this.parent=null,this.height=0,this.event=s,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 ue{constructor(){super(Z(ks.getDefaults(),arguments,["volume"])),this.name="Volume";const e=Z(ks.getDefaults(),arguments,["volume"]);this.input=this.output=new $e({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(ue.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 KA=class Kl extends ue{constructor(){super(Z(Kl.getDefaults(),arguments)),this.name="Destination",this.input=new ks({context:this.context}),this.output=new $e({context:this.context}),this.volume=this.input.volume;const e=Z(Kl.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(ue.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}};Tc(n=>{n.destination=new KA({context:n})});kc(n=>{n.destination.dispose()});class QA extends rs{constructor(e){super(),this.name="TimelineValue",this._timeline=new En({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 Kn extends ue{constructor(){super(Object.assign(Z(Kn.getDefaults(),arguments,["context"])))}connect(e,t=0,s=0){return hh(this,e,t,s),this}}class nr extends Kn{constructor(){super(Object.assign(Z(nr.getDefaults(),arguments,["mapping","length"]))),this.name="WaveShaper",this._shaper=this.context.createWaveShaper(),this.input=this._shaper,this.output=this._shaper;const e=Z(nr.getDefaults(),arguments,["mapping","length"]);hn(e.mapping)||e.mapping instanceof Float32Array?this.curve=Float32Array.from(e.mapping):xA(e.mapping)&&this.setMap(e.mapping,e.length)}static getDefaults(){return Object.assign(je.getDefaults(),{length:1024})}setMap(e,t=1024){const s=new Float32Array(t);for(let r=0,i=t;rs.includes(e));me(t,"oversampling must be either 'none', '2x', or '4x'"),this._shaper.oversample=e}dispose(){return super.dispose(),this._shaper.disconnect(),this}}class Gi extends Kn{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 nr({context:this.context,mapping:this._expFunc(e.value),length:8192}),this._exponent=e.value}static getDefaults(){return Object.assign(Kn.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 Es{constructor(e,t){this.id=Es._eventId++,this._remainderTime=0;const s=Object.assign(Es.getDefaults(),t);this.transport=e,this.callback=s.callback,this._once=s.once,this.time=Math.floor(s.time),this._remainderTime=s.time-this.time}static getDefaults(){return{callback:Oe,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}}Es._eventId=0;class fh extends Es{constructor(e,t){super(e,t),this._currentId=-1,this._nextId=-1,this._nextTick=this.time,this._boundRestart=this._restart.bind(this);const s=Object.assign(fh.getDefaults(),t);this.duration=s.duration,this._interval=s.interval,this._nextTick=s.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({},Es.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 Cr(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 Cr(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);Ur(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 At{constructor(){super(Z(Xi.getDefaults(),arguments)),this.name="Transport",this._loop=new QA(!1),this._loopStart=0,this._loopEnd=0,this._scheduledEvents={},this._timeline=new En,this._repeatedEvents=new XA,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(At.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 s=t%(this._swingTicks*2)/(this._swingTicks*2),r=Math.sin(s*Math.PI)*this._swingAmount;e+=new Cr(this.context,this._swingTicks*2/3).toSeconds()*r}$f(!0),this._timeline.forEachAtTime(t,s=>s.invoke(e)),$f(!1)}schedule(e,t){const s=new Es(this,{callback:e,time:new Ni(this.context,t).toTicks()});return this._addEvent(s,this._timeline)}scheduleRepeat(e,t,s,r=1/0){const i=new fh(this,{callback:e,duration:new ln(this.context,r).toTicks(),interval:new ln(this.context,t).toTicks(),time:new Ni(this.context,s).toTicks()});return this._addEvent(i,this._repeatedEvents)}scheduleOnce(e,t){const s=new Es(this,{callback:e,once:!0,time:new Ni(this.context,t).toTicks()});return this._addEvent(s,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,s=>this.clear(s.id)),this._repeatedEvents.forEachFrom(t,s=>this.clear(s.id)),this}_bindClockEvents(){this._clock.on("start",(e,t)=>{t=new Cr(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 s;return xe(t)&&(s=this.toTicks(t)),this._clock.start(e,s),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){hn(e)&&(e=e[0]/e[1]*4),this._timeSignature=e}get loopStart(){return new ln(this.context,this._loopStart,"i").toSeconds()}set loopStart(e){this._loopStart=this.toTicks(e)}get loopEnd(){return new ln(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 Cr(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 Cr(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(),s=this._clock.frequency.timeToTicks(e,t);this.ticks=s}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 s=this._clock.getTicksAtTime(t),r=this._clock.frequency.getDurationOfTicks(Math.ceil(s)-s,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(),s=this.getTicksAtTime(t),r=e-s%e;return this._clock.nextTickTime(r,t)}}syncSignal(e,t){const s=this.now();let r=this.bpm,i=1/(60/r.getValueAtTime(s)/this.PPQ),o=[];if(e.units==="time"){const c=.015625/i,l=new $e(c),u=new Gi(-1),h=new $e(c);r.chain(l,u,h),r=h,i=1/i,o=[l,u,h]}t||(e.getValueAtTime(s)!==0?t=e.getValueAtTime(s)/i:t=0);const a=new $e(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 s=this._syncedSignals[t];s.signal===e&&(s.nodes.forEach(r=>r.dispose()),s.signal.value=s.initial,this._syncedSignals.splice(t,1))}return this}dispose(){return super.dispose(),this._clock.dispose(),ch(this,"bpm"),this._timeline.dispose(),this._repeatedEvents.dispose(),this}}Do.mixin(Xi);Tc(n=>{n.transport=new Xi({context:n})});kc(n=>{n.transport.dispose()});class _t extends ue{constructor(e){super(e),this.input=void 0,this._state=new uh("stopped"),this._synced=!1,this._scheduled=[],this._syncedStart=Oe,this._syncedStop=Oe,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(ue.getDefaults(),{mute:!1,onstop:Oe,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,s){let r=Ut(e)&&this._synced?this.context.transport.seconds:this.toSeconds(e);if(r=this._clampToCurrentTime(r),!this._synced&&this._state.getValueAtTime(r)==="started")me(Ur(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,s);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=s?this.toSeconds(s):void 0);const o=this.context.transport.schedule(a=>{this._start(a,t,s)},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 ng(this.context),this._start(r,t,s);return this}stop(e){let t=Ut(e)&&this._synced?this.context.transport.seconds:this.toSeconds(e);if(t=this._clampToCurrentTime(t),this._state.getValueAtTime(t)==="started"||xe(this._state.getNextState("started",t))){if(this.log("stop",t),!this._synced)this._stop(t);else{const s=this.context.transport.schedule(this._stop.bind(this),t);this._scheduled.push(s)}this._state.cancel(t),this._state.setStateAtTime("stopped",t)}return this}restart(e,t,s){return e=this.toSeconds(e),this._state.getValueAtTime(e)==="started"&&(this._state.cancel(e),this._restart(e,t,s)),this}sync(){return this._synced||(this._synced=!0,this._syncedStart=(e,t)=>{if(Ur(t,0)){const s=this._state.get(t);if(s&&s.state==="started"&&s.time!==t){const r=t-this.toSeconds(s.time);let i;s.duration&&(i=this.toSeconds(s.duration)-r),this._start(e,this.toSeconds(s.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=Oe,this.unsync(),this._volume.dispose(),this._state.dispose(),this}}class Wr extends Br{constructor(){super(Z(Wr.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(Wr.getDefaults(),arguments,["url","onload"]);Ts(this._source,this._gainNode),this._source.onended=()=>this._stopSource(),this.playbackRate=new Re({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 Ae(e.url,e.onload,e.onerror),this._internalChannels.push(this._source)}static getDefaults(){return Object.assign(Br.getDefaults(),{url:new Ae,loop:!1,loopEnd:0,loopStart:0,onload:Oe,onerror:Oe,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,s,r=1){me(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;Xl(o,a)&&(o=(o-c)%l+c),an(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)),xe(s)){let a=this.toSeconds(s);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 _t{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(_t.getDefaults(),{fadeIn:0,fadeOut:0,playbackRate:1,type:"white"})}get type(){return this._type}set type(e){if(me(e in Ff,"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=Ff[this._type];this._source=new Wr({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 br=44100*5,il=2,Ln={brown:null,pink:null,white:null},Ff={get brown(){if(!Ln.brown){const n=[];for(let e=0;ethis.onstop(this)});this._oscillator=s,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 rt._periodicWaveCache.find(t=>t.phase===this._phase&&PA(t.partials,this._partials));{const e=rt._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 s=this._getCachedPeriodicWave();if(xe(s)){const{partials:r,wave:i}=s;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),rt._periodicWaveCache.push({imag:i,partialCount:this._partialCount,partials:this._partials,phase:this._phase,real:r,type:this._type,wave:this._wave}),rt._periodicWaveCache.length>100&&rt._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){pn(e,0);let t=this._type;const s=/^(sine|triangle|square|sawtooth)(\d+)$/.exec(this._type);if(s&&(t=s[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,s){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 Cs extends je{constructor(){super(Object.assign(Z(Cs.getDefaults(),arguments,["value"]))),this.name="Multiply",this.override=!1;const e=Z(Cs.getDefaults(),arguments,["value"]);this._mult=this.input=this.output=new $e({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(je.getDefaults(),{value:0})}dispose(){return super.dispose(),this._mult.dispose(),this}}class Ki extends _t{constructor(){super(Z(Ki.getDefaults(),arguments,["frequency","type","modulationType"])),this.name="AMOscillator",this._modulationScale=new JA({context:this.context}),this._modulationNode=new $e({context:this.context});const e=Z(Ki.getDefaults(),arguments,["frequency","type","modulationType"]);this._carrier=new rt({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 rt({context:this.context,phase:e.phase,type:e.modulationType}),this.harmonicity=new Cs({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(rt.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 ur(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 _t{constructor(){super(Z(Qi.getDefaults(),arguments,["frequency","type","modulationType"])),this.name="FMOscillator",this._modulationNode=new $e({context:this.context,gain:0});const e=Z(Qi.getDefaults(),arguments,["frequency","type","modulationType"]);this._carrier=new rt({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 je({context:this.context,units:"frequency",value:e.frequency}),this._modulator=new rt({context:this.context,phase:e.phase,type:e.modulationType}),this.harmonicity=new Cs({context:this.context,units:"positive",value:e.harmonicity}),this.modulationIndex=new Cs({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(rt.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 ur(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 qr extends _t{constructor(){super(Z(qr.getDefaults(),arguments,["frequency","width"])),this.name="PulseOscillator",this._widthGate=new $e({context:this.context,gain:0}),this._thresh=new nr({context:this.context,mapping:t=>t<=0?-1:1});const e=Z(qr.getDefaults(),arguments,["frequency","width"]);this.width=new je({context:this.context,units:"audioRange",value:e.width}),this._triangle=new rt({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(_t.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 ur(this,e)})}dispose(){return super.dispose(),this._triangle.dispose(),this.width.dispose(),this._widthGate.dispose(),this._thresh.dispose(),this}}class Ji extends _t{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 je({context:this.context,units:"frequency",value:e.frequency}),this.detune=new je({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(rt.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,s=e/(this._oscillators.length-1);this._forEach((r,i)=>r.detune.value=t+s*i)}}get count(){return this._oscillators.length}set count(e){if(pn(e,1),this._oscillators.length!==e){this._forEach(t=>t.dispose()),this._oscillators=[];for(let t=0;tthis.onstop(this):Oe});this.type==="custom"&&(s.partials=this._partials),this.frequency.connect(s.frequency),this.detune.connect(s.detune),s.detune.overridden=!1,s.connect(this.output),this._oscillators[t]=s}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,s)=>t.phase=this._phase+s/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 ur(this,e)})}dispose(){return super.dispose(),this.frequency.dispose(),this.detune.dispose(),this._forEach(e=>e.dispose()),this}}class eo extends _t{constructor(){super(Z(eo.getDefaults(),arguments,["frequency","modulationFrequency"])),this.name="PWMOscillator",this.sourceType="pwm",this._scale=new Cs({context:this.context,value:2});const e=Z(eo.getDefaults(),arguments,["frequency","modulationFrequency"]);this._pulse=new qr({context:this.context,frequency:e.modulationFrequency}),this._pulse.carrierType="sine",this.modulationFrequency=this._pulse.frequency,this._modulator=new rt({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(_t.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 ur(this,e)})}dispose(){return super.dispose(),this._pulse.dispose(),this._scale.dispose(),this._modulator.dispose(),this}}const Lf={am:Ki,fat:Ji,fm:Qi,oscillator:rt,pulse:qr,pwm:eo};class sr extends _t{constructor(){super(Z(sr.getDefaults(),arguments,["frequency","type"])),this.name="OmniOscillator";const e=Z(sr.getDefaults(),arguments,["frequency","type"]);this.frequency=new je({context:this.context,units:"frequency",value:e.frequency}),this.detune=new je({context:this.context,units:"cents",value:e.detune}),Ve(this,["frequency","detune"]),this.set(e)}static getDefaults(){return Object.assign(rt.getDefaults(),Qi.getDefaults(),Ki.getDefaults(),Ji.getDefaults(),qr.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=Lf[e],s=this.now();if(this._oscillator){const r=this._oscillator;r.stop(s),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(s)}}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 Lf[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")&&ws(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")&&ws(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"))&&Zn(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 ur(this,e)})}dispose(){return super.dispose(),this.detune.dispose(),this.frequency.dispose(),this._oscillator.dispose(),this}}class ph extends je{constructor(){super(Object.assign(Z(ph.getDefaults(),arguments,["value"]))),this.override=!1,this.name="Add",this._sum=new $e({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(je.getDefaults(),{value:0})}dispose(){return super.dispose(),this._sum.dispose(),this}}class Wa extends Kn{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 Cs({context:this.context,value:e.max-e.min}),this._add=this.output=new ph({context:this.context,value:e.min}),this._min=e.min,this._max=e.max,this.input.connect(this.output)}static getDefaults(){return Object.assign(Kn.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 fg(n,e=1/0){const t=new WeakMap;return function(s,r){Reflect.defineProperty(s,r,{configurable:!0,enumerable:!0,get:function(){return t.get(this)},set:function(i){pn(i,n,e),t.set(this,i)}})}}function is(n,e=1/0){const t=new WeakMap;return function(s,r){Reflect.defineProperty(s,r,{configurable:!0,enumerable:!0,get:function(){return t.get(this)},set:function(i){pn(this.toSeconds(i),n,e),t.set(this,i)}})}}class to extends _t{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 Ae({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(_t.getDefaults(),{autostart:!1,fadeIn:0,fadeOut:0,loop:!1,loopEnd:0,loopStart:0,onload:Oe,onerror:Oe,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=Oe){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,s){return super.start(e,t,s),this}_start(e,t,s){this._loop?t=Pr(t,this._loopStart):t=Pr(t,0);const r=this.toSeconds(t),i=s;s=Pr(s,Math.max(this._buffer.duration-r,0));let o=this.toSeconds(s);o=o/this._playbackRate,e=this.toSeconds(e);const a=new Wr({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&&Ut(i)?a.start(e,r):a.start(e,r,o-this.toSeconds(this.fadeOut))}_stop(e){const t=this.toSeconds(e);this._activeSources.forEach(s=>s.stop(t))}restart(e,t,s){return super.restart(e,t,s),this}_restart(e,t,s){var r;(r=[...this._activeSources].pop())===null||r===void 0||r.stop(e),this._start(e,t,s)}seek(e,t){const s=this.toSeconds(t);if(this._state.getValueAtTime(s)==="started"){const r=this.toSeconds(e);this._stop(s),this._start(s,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&&pn(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&&pn(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(),s=this._state.getNextState("stopped",t);s&&s.implicitEnd&&(this._state.cancel(s.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}}gn([is(0)],to.prototype,"fadeIn",void 0);gn([is(0)],to.prototype,"fadeOut",void 0);class eR extends Kn{constructor(){super(...arguments),this.name="GainToAudio",this._norm=new nr({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 en extends ue{constructor(){super(Z(en.getDefaults(),arguments,["attack","decay","sustain","release"])),this.name="Envelope",this._sig=new je({context:this.context,value:0}),this.output=this._sig,this.input=void 0;const e=Z(en.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(ue.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(Zn(e))return e;{let s;for(s in Qo)if(Qo[s][t]===e)return s;return e}}_setCurve(e,t,s){if(Zn(s)&&Reflect.has(Qo,s)){const r=Qo[s];qs(r)?e!=="_decayCurve"&&(this[e]=r[t]):this[e]=r}else if(hn(s)&&e!=="_decayCurve")this[e]=s;else throw new Error("Envelope: invalid curve: "+s)}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 s=this.toSeconds(this.release);s{let e,t;const s=[];for(e=0;e<128;e++)s[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(rr.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(ue.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 s=this["_original_"+e]=this[e];this[e]=(...r)=>{const i=r[t],o=this.context.transport.schedule(a=>{r[t]=a,s.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,s,r){const i=this.toSeconds(s),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 Qn extends rr{constructor(){super(Z(Qn.getDefaults(),arguments));const e=Z(Qn.getDefaults(),arguments);this.portamento=e.portamento,this.onsilence=e.onsilence}static getDefaults(){return Object.assign(rr.getDefaults(),{detune:0,onsilence:Oe,portamento:0})}triggerAttack(e,t,s=1){this.log("triggerAttack",e,t,s);const r=this.toSeconds(t);return this._triggerEnvelopeAttack(r,s),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 s=this.toSeconds(t),r=e instanceof Zt?e.toFrequency():e;if(this.portamento>0&&this.getLevelAtTime(s)>.05){const i=this.toSeconds(this.portamento);this.frequency.exponentialRampTo(r,i,s)}else this.frequency.setValueAtTime(r,s);return this}}gn([is(0)],Qn.prototype,"portamento",void 0);class Sc extends en{constructor(){super(Z(Sc.getDefaults(),arguments,["attack","decay","sustain","release"])),this.name="AmplitudeEnvelope",this._gainNode=new $e({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 Qn{constructor(){super(Z(no.getDefaults(),arguments)),this.name="Synth";const e=Z(no.getDefaults(),arguments);this.oscillator=new sr(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 Sc(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(Qn.getDefaults(),{envelope:Object.assign(Er(en.getDefaults(),Object.keys(ue.getDefaults())),{attack:.005,decay:.1,release:1,sustain:.3}),oscillator:Object.assign(Er(sr.getDefaults(),[...Object.keys(_t.getDefaults()),"frequency","detune"]),{type:"triangle"})})}_triggerEnvelopeAttack(e,t){if(this.envelope.triggerAttack(e,t),this.oscillator.start(e),this.envelope.sustain===0){const s=this.toSeconds(this.envelope.attack),r=this.toSeconds(this.envelope.decay);this.oscillator.stop(e+s+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 ue{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 Re({context:this.context,units:"number",value:e.Q,param:this._filter.Q}),this.frequency=new Re({context:this.context,units:"frequency",value:e.frequency,param:this._filter.frequency}),this.detune=new Re({context:this.context,units:"cents",value:e.detune,param:this._filter.detune}),this.gain=new Re({context:this.context,units:"decibels",convert:!1,value:e.gain,param:this._filter.gain}),this.type=e.type}static getDefaults(){return Object.assign(ue.getDefaults(),{Q:1,type:"lowpass",frequency:350,detune:0,gain:0})}get type(){return this._filter.type}set type(e){me(["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;os.type=e)}get rolloff(){return this._rolloff}set rolloff(e){const t=ws(e)?e:parseInt(e,10),s=[-12,-24,-48,-96];let r=s.indexOf(t);me(r!==-1,`rolloff can only be ${s.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)=>s[o]*=i)}),t.dispose(),s}dispose(){return super.dispose(),this._filters.forEach(e=>{e.dispose()}),ch(this,["detune","frequency","gain","Q"]),this.frequency.dispose(),this.Q.dispose(),this.detune.dispose(),this.gain.dispose(),this}}class ro extends en{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(en.getDefaults(),{baseFrequency:200,exponent:1,octaves:4})}get baseFrequency(){return this._baseFrequency}set baseFrequency(e){const t=this.toFrequency(e);pn(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 Qn{constructor(){super(Z(io.getDefaults(),arguments)),this.name="MonoSynth";const e=Z(io.getDefaults(),arguments);this.oscillator=new sr(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 Hr(Object.assign(e.filter,{context:this.context})),this.filterEnvelope=new ro(Object.assign(e.filterEnvelope,{context:this.context})),this.envelope=new Sc(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(Qn.getDefaults(),{envelope:Object.assign(Er(en.getDefaults(),Object.keys(ue.getDefaults())),{attack:.005,decay:.1,release:1,sustain:.9}),filter:Object.assign(Er(Hr.getDefaults(),Object.keys(ue.getDefaults())),{Q:1,rolloff:-12,type:"lowpass"}),filterEnvelope:Object.assign(Er(ro.getDefaults(),Object.keys(ue.getDefaults())),{attack:.6,baseFrequency:200,decay:.2,exponent:2,octaves:3,release:2,sustain:.5}),oscillator:Object.assign(Er(sr.getDefaults(),Object.keys(_t.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 s=this.toSeconds(this.envelope.attack),r=this.toSeconds(this.envelope.decay);this.oscillator.stop(e+s+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 Dr(Qn.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 s=this.toSeconds(t),r=this.toFrequency(e instanceof Zt?e.toFrequency():e),i=r*this.octaves;return this.oscillator.frequency.setValueAtTime(i,s),this.oscillator.frequency.exponentialRampToValueAtTime(r,s+this.toSeconds(this.pitchDecay)),this}dispose(){return super.dispose(),this}}gn([fg(0)],oo.prototype,"octaves",void 0);gn([is(0)],oo.prototype,"pitchDecay",void 0);const pg=new Set;function mh(n){pg.add(n)}function mg(n,e){const t=`registerProcessor("${n}", ${e})`;pg.add(t)}const tR=` + */class rs{constructor(){this.debug=!1,this._wasDisposed=!1}static getDefaults(){return{}}log(...e){(this.debug||Hs&&this.toString()===Hs.TONE_DEBUG_CLASS)&&TA(this,...e)}dispose(){return this._wasDisposed=!0,this}get disposed(){return this._wasDisposed}toString(){return this.name}}rs.version=cm;const oh=1e-6;function Ur(n,e){return n>e+oh}function Xl(n,e){return Ur(n,e)||an(n,e)}function La(n,e){return n+ohthis.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 s=this._search(e,t);return s!==-1?this._timeline[s]:null}peek(){return this._timeline[0]}shift(){return this._timeline.shift()}getAfter(e,t="time"){const s=this._search(e,t);return s+10&&this._timeline[t-1].time=0?this._timeline[s-1]:null}cancel(e){if(this._timeline.length>1){let t=this._search(e);if(t>=0)if(an(this._timeline[t].time,e)){for(let s=t;s>=0&&an(this._timeline[s].time,e);s--)t=s;this._timeline=this._timeline.slice(0,t)}else this._timeline=this._timeline.slice(0,t+1);else this._timeline=[]}else this._timeline.length===1&&Xl(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 s=0;const r=this._timeline.length;let i=r;if(r>0&&this._timeline[r-1][t]<=e)return r-1;for(;s=0&&this._timeline[s].time>=e;)s--;return this._iterate(t,s+1),this}forEachAtTime(e,t){const s=this._search(e);if(s!==-1&&an(this._timeline[s].time,e)){let r=s;for(let i=s;i>=0&&an(this._timeline[i].time,e);i--)r=i;this._iterate(i=>{t(i)},r,s)}return this}dispose(){return super.dispose(),this._timeline=[],this}};const ig=[];function Tc(n){ig.push(n)}function NA(n){ig.forEach(e=>e(n))}const og=[];function kc(n){og.push(n)}function IA(n){og.forEach(e=>e(n))}class Do extends rs{constructor(){super(...arguments),this.name="Emitter"}on(e,t){return e.split(/\W+/).forEach(r=>{Ut(this._events)&&(this._events={}),this._events.hasOwnProperty(r)||(this._events[r]=[]),this._events[r].push(t)}),this}once(e,t){const s=(...r)=>{t(...r),this.off(e,s)};return this.on(e,s),this}off(e,t){return e.split(/\W+/).forEach(r=>{if(Ut(this._events)&&(this._events={}),this._events.hasOwnProperty(r))if(Ut(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 s=this._events[e].slice(0);for(let r=0,i=s.length;r{const s=Object.getOwnPropertyDescriptor(Do.prototype,t);Object.defineProperty(e.prototype,t,s)})}dispose(){return super.dispose(),this._events=void 0,this}}class ag extends Do{constructor(){super(...arguments),this.isOffline=!1}toJSON(){return{}}}let ah=class cg extends ag{constructor(){var e,t;super(),this.name="Context",this._constants=new Map,this._timeouts=new En,this._timeoutIds=0,this._initialized=!1,this._closeStarted=!1,this.isOffline=!1,this._workletPromise=null;const s=Z(cg.getDefaults(),arguments,["context"]);s.context?(this._context=s.context,this._latencyHint=((e=arguments[0])===null||e===void 0?void 0:e.latencyHint)||""):(this._context=kA({latencyHint:s.latencyHint}),this._latencyHint=s.latencyHint),this._ticker=new OA(this.emit.bind(this,"tick"),s.clockSource,s.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"]=s.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,s){return this._context.createBuffer(e,t,s)}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,s){return this._context.createPeriodicWave(e,t,s)}createStereoPanner(){return this._context.createStereoPanner()}createWaveShaper(){return this._context.createWaveShaper()}createMediaStreamSource(e){return me(Tr(this._context),"Not available if OfflineAudioContext"),this._context.createMediaStreamSource(e)}createMediaElementSource(e){return me(Tr(this._context),"Not available if OfflineAudioContext"),this._context.createMediaElementSource(e)}createMediaStreamDestination(){return me(Tr(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){me(!this._initialized,"The listener cannot be set after initialization."),this._listener=e}get transport(){return this.initialize(),this._transport}set transport(e){me(!this._initialized,"The transport cannot be set after initialization."),this._transport=e}get draw(){return this.initialize(),this._draw}set draw(e){me(!this._initialized,"Draw cannot be set after initialization."),this._draw=e}get destination(){return this.initialize(),this._destination}set destination(e){me(!this._initialized,"The destination cannot be set after initialization."),this._destination=e}createAudioWorkletNode(e,t){return SA(this.rawContext,e,t)}addAudioWorkletModule(e){return Ie(this,void 0,void 0,function*(){me(xe(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 Tr(this._context)?this._context.resume():Promise.resolve()}close(){return Ie(this,void 0,void 0,function*(){Tr(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),s=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 s=this.now();return this._timeouts.add({callback:e,id:this._timeoutIds,time:s+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 s=++this._timeoutIds,r=()=>{const i=this.now();this._timeouts.add({callback:()=>{e(),r()},id:s,time:i+t})};return r(),s}};class $A extends ag{constructor(){super(...arguments),this.lookAhead=0,this.latencyHint=0,this.isOffline=!1}createAnalyser(){return{}}createOscillator(){return{}}createBufferSource(){return{}}createBiquadFilter(){return{}}createBuffer(e,t,s){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,s){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(n,e){hn(e)?e.forEach(t=>Ve(n,t)):Object.defineProperty(n,e,{enumerable:!0,writable:!1})}function ch(n,e){hn(e)?e.forEach(t=>ch(n,t)):Object.defineProperty(n,e,{writable:!0})}const Oe=()=>{};class Ae extends rs{constructor(){super(),this.name="ToneAudioBuffer",this.onload=Oe;const e=Z(Ae.getDefaults(),arguments,["url","onload","onerror"]);this.reverse=e.reverse,this.onload=e.onload,Zn(e.url)?this.load(e.url).catch(e.onerror):e.url&&this.set(e.url)}static getDefaults(){return{onerror:Oe,onload:Oe,reverse:!1}}get sampleRate(){return this._buffer?this._buffer.sampleRate:cn().sampleRate}set(e){return e instanceof Ae?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=Ae.load(e).then(s=>{this.set(s),this.onload(this)});Ae.downloads.push(t);try{yield t}finally{const s=Ae.downloads.indexOf(t);Ae.downloads.splice(s,1)}return this})}dispose(){return super.dispose(),this._buffer=void 0,this}fromArray(e){const t=hn(e)&&e[0].length>0,s=t?e.length:1,r=t?e[0].length:e.length,i=cn(),o=i.createBuffer(s,r,i.sampleRate),a=!t&&s===1?[e]:e;for(let c=0;cr/s),this.fromArray(t)}return this}toArray(e){if(ws(e))return this.getChannelData(e);if(this.numberOfChannels===1)return this.toArray(0);{const t=[];for(let s=0;s0}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 Ae().fromArray(e)}static fromUrl(e){return Ie(this,void 0,void 0,function*(){return yield new Ae().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(Ae.supportsType(u)){l=u;break}e=e.replace(t[0],l)}const s=Ae.baseUrl===""||Ae.baseUrl.endsWith("/")?Ae.baseUrl:Ae.baseUrl+"/",r=document.createElement("a");r.href=s+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 cn().decodeAudioData(o)})}static supportsType(e){const t=e.split("."),s=t[t.length-1];return document.createElement("audio").canPlayType("audio/"+s)!==""}static loaded(){return Ie(this,void 0,void 0,function*(){for(yield Promise.resolve();Ae.downloads.length;)yield Ae.downloads[0]})}}Ae.baseUrl="";Ae.downloads=[];class Ec extends ah{constructor(){super({clockSource:"offline",context:aa(arguments[0])?arguments[0]:EA(arguments[0],arguments[1]*arguments[2],arguments[2]),lookAhead:0,updateInterval:aa(arguments[0])?128/arguments[0].sampleRate:128/arguments[2]}),this.name="OfflineContext",this._currentTime=0,this.isOffline=!0,this._duration=aa(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 s=Math.floor(this.sampleRate/128);e&&t%s===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 Ae(t)})}close(){return Promise.resolve()}}const lg=new $A;let Vs=lg;function cn(){return Vs===lg&&CA&&FA(new ah),Vs}function FA(n,e=!1){e&&Vs.dispose(),Tr(n)?Vs=new ah(n):aa(n)?Vs=new Ec(n):Vs=n}function LA(){return Vs.resume()}if(Hs&&!Hs.TONE_SILENCE_LOGGING){const e=` * Tone.js v${cm} * `;console.log(`%c${e}`,"background: #000; color: #fff")}function jA(n){return Math.pow(10,n/20)}function zA(n){return 20*(Math.log(n)/Math.LN10)}function ug(n){return Math.pow(2,n/12)}let Cc=440;function VA(){return Cc}function UA(n){Cc=n}function Zl(n){return Math.round(hg(n))}function hg(n){return 69+12*Math.log2(n/Cc)}function BA(n){return Cc*Math.pow(2,(n-69)/12)}class lh extends rs{constructor(e,t,s){super(),this.defaultUnits="s",this._val=t,this._units=s,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 s=parseInt(e,10),r=t==="."?1.5:1;return s===1?this._beatsToUnits(this._getTimeSignature())*r:this._beatsToUnits(4/s)*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,s)=>{let r=0;return e&&e!=="0"&&(r+=this._beatsToUnits(this._getTimeSignature()*parseFloat(e))),t&&t!=="0"&&(r+=this._beatsToUnits(parseFloat(t))),s&&s!=="0"&&(r+=this._beatsToUnits(parseFloat(s)/4)),r},regexp:/^(\d+(?:\.\d+)?):(\d+(?:\.\d+)?):?(\d+(?:\.\d+)?)?$/}}}valueOf(){if(this._val instanceof lh&&this.fromType(this._val),Ut(this._val))return this._noArg();if(Zn(this._val)&&Ut(this._units)){for(const e in this._expressions)if(this._expressions[e].regexp.test(this._val.trim())){this._units=e;break}}else if(qs(this._val)){let e=0;for(const t in this._val)if(xe(this._val[t])){const s=this._val[t],r=new this.constructor(this.context,t).valueOf()*s;e+=r}return e}if(xe(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 Zn(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 ln extends lh{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 ln(this.context,e).valueOf();return this._secondsToUnits(this.context.transport.nextSubdivision(t))},regexp:/^@(.+)/}})}quantize(e,t=1){const s=new this.constructor(this.context,e).valueOf(),r=this.valueOf(),a=Math.round(r/s)*s-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 s=t[0],r=new ln(this.context,t[0]).toSeconds();return t.forEach(i=>{const o=new ln(this.context,i).toSeconds();Math.abs(o-e)3&&(r=parseFloat(parseFloat(i).toFixed(3))),[s,t,r].join(":")}toTicks(){const e=this._beatsToUnits(1);return this.valueOf()/e*this._getPPQ()}toSeconds(){return this.valueOf()}toMidi(){return Zl(this.toFrequency())}_now(){return this.context.now()}}class Zt extends ln{constructor(){super(...arguments),this.name="Frequency",this.defaultUnits="hz"}static get A4(){return VA()}static set A4(e){UA(e)}_getExpressions(){return Object.assign({},super._getExpressions(),{midi:{regexp:/^(\d+(?:\.\d+)?midi)/,method(e){return this.defaultUnits==="midi"?e:Zt.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:Zt.mtof(r)}},tr:{regexp:/^(\d+(?:\.\d+)?):(\d+(?:\.\d+)?):?(\d+(?:\.\d+)?)?/,method(e,t,s){let r=1;return e&&e!=="0"&&(r*=this._beatsToUnits(this._getTimeSignature()*parseFloat(e))),t&&t!=="0"&&(r*=this._beatsToUnits(parseFloat(t))),s&&s!=="0"&&(r*=this._beatsToUnits(parseFloat(s)/4)),r}}})}transpose(e){return new Zt(this.context,this.valueOf()*ug(e))}harmonize(e){return e.map(t=>this.transpose(t))}toMidi(){return Zl(this.valueOf())}toNote(){const e=this.toFrequency(),t=Math.log2(e/Zt.A4);let s=Math.round(12*t)+57;const r=Math.floor(s/12);return r<0&&(s+=-12*r),qA[s%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 Zl(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 ln{constructor(){super(...arguments),this.name="TransportTime"}_now(){return this.context.transport.seconds}}class At extends rs{constructor(){super();const e=Z(At.getDefaults(),arguments,["context"]);this.defaultContext?this.context=this.defaultContext:this.context=e.context}static getDefaults(){return{context:cn()}}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 ln(this.context,e).toSeconds()}toFrequency(e){return new Zt(this.context,e).toFrequency()}toTicks(e){return new Ni(this.context,e).toTicks()}_getPartialProperties(e){const t=this.get();return Object.keys(t).forEach(s=>{Ut(e[s])&&delete t[s]}),t}get(){const e=PA(this);return Object.keys(e).forEach(t=>{if(Reflect.has(this,t)){const s=this[t];xe(s)&&xe(s.value)&&xe(s.setValueAtTime)?e[t]=s.value:s instanceof At?e[t]=s._getPartialProperties(e[t]):hn(s)||ws(s)||Zn(s)||xA(s)?e[t]=s:delete e[t]}}),e}set(e){return Object.keys(e).forEach(t=>{Reflect.has(this,t)&&xe(this[t])&&(this[t]&&xe(this[t].value)&&xe(this[t].setValueAtTime)?this[t].value!==e[t]&&(this[t].value=e[t]):this[t]instanceof At?this[t].set(e[t]):this[t]=e[t])}),this}}class uh extends En{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,s){return pn(t,0),this.add(Object.assign({},s,{state:e,time:t})),this}getLastState(e,t){const s=this._search(t);for(let r=s;r>=0;r--){const i=this._timeline[r];if(i.state===e)return i}}getNextState(e,t){const s=this._search(t);if(s!==-1)for(let r=s;r0,"timeConstant must be a number greater than 0");const i=this.toSeconds(t);return this._assertRange(r),me(isFinite(r)&&isFinite(i),`Invalid argument(s) to setTargetAtTime: ${JSON.stringify(e)}, ${JSON.stringify(t)}`),this._events.add({constant:s,time:i,type:"setTargetAtTime",value:r}),this.log(this.units,"setTargetAtTime",e,i,s),this._param.setTargetAtTime(r,i,s),this}setValueCurveAtTime(e,t,s,r=1){s=this.toSeconds(s),t=this.toSeconds(t);const i=this._fromType(e[0])*r;this.setValueAtTime(this._toType(i),t);const o=s/(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){me(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,s,r,i){return s+(t-s)*Math.exp(-(i-e)/r)}_linearInterpolate(e,t,s,r,i){return t+(r-t)*((i-e)/(s-e))}_exponentialInterpolate(e,t,s,r,i){return t*Math.pow(r/t,(i-e)/(s-e))}}class ue extends At{constructor(){super(...arguments),this._internalChannels=[]}get numberOfInputs(){return xe(this.input)?tr(this.input)||this.input instanceof Re?1:this.input.numberOfInputs:0}get numberOfOutputs(){return xe(this.output)?this.output.numberOfOutputs:0}_isAudioNode(e){return xe(e)&&(e instanceof ue||ms(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(s=>{s.channelCount=e.channelCount,s.channelCountMode=e.channelCountMode,s.channelInterpretation=e.channelInterpretation})}_getChannelProperties(){const e=this._getInternalNodes();me(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,s=0){return Ts(this,e,t,s),this}toDestination(){return this.connect(this.context.destination),this}toMaster(){return ih("toMaster() has been renamed toDestination()"),this.toDestination()}disconnect(e,t=0,s=0){return HA(this,e,t,s),this}chain(...e){return Hi(this,...e),this}fan(...e){return e.forEach(t=>this.connect(t)),this}dispose(){return super.dispose(),xe(this.input)&&(this.input instanceof ue?this.input.dispose():ms(this.input)&&this.input.disconnect()),xe(this.output)&&(this.output instanceof ue?this.output.dispose():ms(this.output)&&this.output.disconnect()),this._internalChannels=[],this}}function Hi(...n){const e=n.shift();n.reduce((t,s)=>(t instanceof ue?t.connect(s):ms(t)&&Ts(t,s),s),e)}function Ts(n,e,t=0,s=0){for(me(xe(n),"Cannot connect from undefined node"),me(xe(e),"Cannot connect to undefined node"),(e instanceof ue||ms(e))&&me(e.numberOfInputs>0,"Cannot connect to node with no inputs"),me(n.numberOfOutputs>0,"Cannot connect from node with no outputs");e instanceof ue||e instanceof Re;)xe(e.input)&&(e=e.input);for(;n instanceof ue;)xe(n.output)&&(n=n.output);tr(e)?n.connect(e,t):n.connect(e,t,s)}function HA(n,e,t=0,s=0){if(xe(e))for(;e instanceof ue;)e=e.input;for(;!ms(n);)xe(n.output)&&(n=n.output);tr(e)?n.disconnect(e,t):ms(e)?n.disconnect(e,t,s):n.disconnect()}class $e extends ue{constructor(){super(Z($e.getDefaults(),arguments,["gain","units"])),this.name="Gain",this._gainNode=this.context.createGain(),this.input=this._gainNode,this.output=this._gainNode;const e=Z($e.getDefaults(),arguments,["gain","units"]);this.gain=new Re({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(ue.getDefaults(),{convert:!0,gain:1,units:"gain"})}dispose(){return super.dispose(),this._gainNode.disconnect(),this.gain.dispose(),this}}class Br extends ue{constructor(e){super(e),this.onended=Oe,this._startTime=-1,this._stopTime=-1,this._timeout=-1,this.output=new $e({context:this.context,gain:0}),this._gainNode=this.output,this.getStateAtTime=function(t){const s=this.toSeconds(t);return this._startTime!==-1&&s>=this._startTime&&(this._stopTime===-1||s<=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(ue.getDefaults(),{curve:"linear",fadeIn:0,fadeOut:0,onended:Oe})}_startGain(e,t=1){me(this._startTime===-1,"Source cannot be started more than once");const s=this.toSeconds(this._fadeIn);return this._startTime=e+s,this._startTime=Math.max(this._startTime,this.context.currentTime),s>0?(this._gainNode.gain.setValueAtTime(0,e),this._curve==="linear"?this._gainNode.gain.linearRampToValueAtTime(t,e+s):this._gainNode.gain.exponentialApproachValueAtTime(t,e,s)):this._gainNode.gain.setValueAtTime(t,e),this}stop(e){return this.log("stop",e),this._stopGain(this.toSeconds(e)),this}_stopGain(e){me(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 s=this._curve==="exponential"?t*2:0;this._stopSource(this.now()+s),this._onended()},this._stopTime-this.context.currentTime),this}_onended(){if(this.onended!==Oe&&(this.onended(this),this.onended=Oe,!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"),me(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=Oe,this}}class ja extends Br{constructor(){super(Z(ja.getDefaults(),arguments,["offset"])),this.name="ToneConstantSource",this._source=this.context.createConstantSource();const e=Z(ja.getDefaults(),arguments,["offset"]);Ts(this._source,this._gainNode),this.offset=new Re({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(Br.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 je extends ue{constructor(){super(Z(je.getDefaults(),arguments,["value","units"])),this.name="Signal",this.override=!0;const e=Z(je.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(ue.getDefaults(),{convert:!0,units:"number",value:0})}connect(e,t=0,s=0){return hh(this,e,t,s),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,s){return this._param.exponentialRampTo(e,t,s),this}linearRampTo(e,t,s){return this._param.linearRampTo(e,t,s),this}targetRampTo(e,t,s){return this._param.targetRampTo(e,t,s),this}exponentialApproachValueAtTime(e,t,s){return this._param.exponentialApproachValueAtTime(e,t,s),this}setTargetAtTime(e,t,s){return this._param.setTargetAtTime(e,t,s),this}setValueCurveAtTime(e,t,s,r){return this._param.setValueCurveAtTime(e,t,s,r),this}cancelScheduledValues(e){return this._param.cancelScheduledValues(e),this}cancelAndHoldAtTime(e){return this._param.cancelAndHoldAtTime(e),this}rampTo(e,t,s){return this._param.rampTo(e,t,s),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 hh(n,e,t,s){(e instanceof Re||tr(e)||e instanceof je&&e.override)&&(e.cancelScheduledValues(0),e.setValueAtTime(0,0),e instanceof je&&(e.overridden=!0)),Ts(n,e,t,s)}class za extends Re{constructor(){super(Z(za.getDefaults(),arguments,["value"])),this.name="TickParam",this._events=new En(1/0),this._multiplier=1;const e=Z(za.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(Re.getDefaults(),{multiplier:1,units:"hertz",value:1})}setTargetAtTime(e,t,s){t=this.toSeconds(t),this.setRampPoint(t);const r=this._fromType(e),i=this._events.get(t),o=Math.round(Math.max(1/s,1));for(let a=0;a<=o;a++){const c=s*a+t,l=this._exponentialApproach(i.time,i.value,r,s,c);this.linearRampToValueAtTime(this._toType(l),c)}return this}setValueAtTime(e,t){const s=this.toSeconds(t);super.setValueAtTime(e,t);const r=this._events.get(s),i=this._events.previousEvent(r),o=this._getTicksUntilEvent(i,s);return r.ticks=Math.max(o,0),this}linearRampToValueAtTime(e,t){const s=this.toSeconds(t);super.linearRampToValueAtTime(e,t);const r=this._events.get(s),i=this._events.previousEvent(r),o=this._getTicksUntilEvent(i,s);return r.ticks=Math.max(o,0),this}exponentialRampToValueAtTime(e,t){t=this.toSeconds(t);const s=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,s,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(Ut(e.ticks)){const o=this._events.previousEvent(e);e.ticks=this._getTicksUntilEvent(o,e.time)}const s=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)*(s+r)+e.ticks}getTicksAtTime(e){const t=this.toSeconds(e),s=this._events.get(t);return Math.max(this._getTicksUntilEvent(s,t),0)}getDurationOfTicks(e,t){const s=this.toSeconds(t),r=this.getTicksAtTime(t);return this.getTimeOfTick(r+e)-s}getTimeOfTick(e){const t=this._events.get(e,"ticks"),s=this._events.getAfter(e,"ticks");if(t&&t.ticks===e)return t.time;if(t&&s&&s.type==="linearRampToValueAtTime"&&t.value!==s.value){const r=this._fromType(this.getValueAtTime(t.time)),o=(this._fromType(this.getValueAtTime(s.time))-r)/(s.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 s=this.toSeconds(t),r=this.toSeconds(e),i=this.getTicksAtTime(s);return this.getTicksAtTime(s+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 je{constructor(){super(Z(Va.getDefaults(),arguments,["value"])),this.name="TickSignal";const e=Z(Va.getDefaults(),arguments,["value"]);this.input=this._param=new za({context:this.context,convert:e.convert,multiplier:e.multiplier,param:this._constantSource.offset,units:e.units,value:e.value})}static getDefaults(){return Object.assign(je.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 At{constructor(){super(Z(Ua.getDefaults(),arguments,["frequency"])),this.name="TickSource",this._state=new uh,this._tickOffset=new En,this._ticksAtTime=new En,this._secondsAtTime=new En;const e=Z(Ua.getDefaults(),arguments,["frequency"]);this.frequency=new Va({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"},At.getDefaults())}get state(){return this.getStateAtTime(this.now())}start(e,t){const s=this.toSeconds(e);return this._state.getValueAtTime(s)!=="started"&&(this._state.setStateAtTime("started",s),xe(t)&&this.setTicksAtTime(t,s),this._ticksAtTime.cancel(s),this._secondsAtTime.cancel(s)),this}stop(e){const t=this.toSeconds(e);if(this._state.getValueAtTime(t)==="stopped"){const s=this._state.get(t);s&&s.time>0&&(this._tickOffset.cancel(s.time),this._state.cancel(s.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),s=this._state.getLastState("stopped",t),r=this._ticksAtTime.get(t),i={state:"paused",time:t};this._state.add(i);let o=r||s,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(),s=this.frequency.timeToTicks(e,t);this.setTicksAtTime(s,t)}getSecondsAtTime(e){e=this.toSeconds(e);const t=this._state.getLastState("stopped",e),s={state:"paused",time:e};this._state.add(s);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!=s.time&&(a={state:c.state,time:c.time,seconds:o})),i=c}),this._state.remove(s),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 s=this._tickOffset.get(t),r=this._state.get(t),i=Math.max(s.time,r.time),o=this.frequency.getTicksAtTime(i)+e-s.ticks;return this.frequency.getTimeOfTick(o)}forEachTickBetween(e,t,s){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,s),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=an(u,1)?0:u;let h=this.frequency.getTimeOfTick(a+u);for(;h{switch(s.state){case"started":const r=this._tickSource.getTicksAtTime(s.time);this.emit("start",s.time,r);break;case"stopped":s.time!==0&&this.emit("stop",s.time);break;case"paused":this.emit("pause",s.time);break}}),this._tickSource.forEachTickBetween(e,t,(s,r)=>{this.callback(s,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}}Do.mixin(Yi);class dh extends rs{constructor(){super(),this.name="ToneAudioBuffers",this._buffers=new Map,this._loadingCount=0;const e=Z(dh.getDefaults(),arguments,["urls","onload","baseUrl"],"urls");this.baseUrl=e.baseUrl,Object.keys(e.urls).forEach(t=>{this._loadingCount++;const s=e.urls[t];this.add(t,s,this._bufferLoaded.bind(this,e.onload),e.onerror)})}static getDefaults(){return{baseUrl:"",onerror:Oe,onload:Oe,urls:{}}}has(e){return this._buffers.has(e.toString())}get(e){return me(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,s=Oe,r=Oe){return Zn(t)?(this.baseUrl&&t.trim().substring(0,11).toLowerCase()==="data:audio/"&&(this.baseUrl=""),this._buffers.set(e.toString(),new Ae(this.baseUrl+t,s,r))):this._buffers.set(e.toString(),new Ae(t,s,r)),this}dispose(){return super.dispose(),this._buffers.forEach(e=>e.dispose()),this._buffers.clear(),this}}class Cr 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 At{constructor(){super(...arguments),this.name="Draw",this.expiration=.25,this.anticipation=.008,this._events=new En,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}}Tc(n=>{n.draw=new YA({context:n})});kc(n=>{n.draw.dispose()});class GA extends rs{constructor(){super(...arguments),this.name="IntervalTimeline",this._root=null,this._length=0}add(e){me(xe(e.time),"Events must have a time property"),me(xe(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 s of t)if(s.event===e){this._removeNode(s),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 s,r=null;if(t>0)if(e.left.right===null)s=e.left,s.right=e.right,r=s;else{for(s=e.left.right;s.right!==null;)s=s.right;s.parent&&(s.parent.right=s.left,r=s.parent,s.left=e.left,s.right=e.right)}else if(e.right.left===null)s=e.right,s.left=e.left,r=s;else{for(s=e.right.left;s.left!==null;)s=s.left;s.parent&&(s.parent.left=s.right,r=s.parent,s.left=e.left,s.right=e.right)}e.parent!==null?e.isLeftChild()?e.parent.left=s:e.parent.right=s:this._setRoot(s),r&&this._rebalance(r)}e.dispose()}_rotateLeft(e){const t=e.parent,s=e.isLeftChild(),r=e.right;r&&(e.right=r.left,r.left=e),t!==null?s?t.left=r:t.right=r:this._setRoot(r)}_rotateRight(e){const t=e.parent,s=e.isLeftChild(),r=e.left;r&&(e.left=r.right,r.right=e),t!==null?s?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 s=t[0];for(let r=1;rs.low&&(s=t[r]);return s.event}}return null}forEach(e){if(this._root!==null){const t=[];this._root.traverse(s=>t.push(s)),t.forEach(s=>{s.event&&e(s.event)})}return this}forEachAtTime(e,t){if(this._root!==null){const s=[];this._root.search(e,s),s.forEach(r=>{r.event&&t(r.event)})}return this}forEachFrom(e,t){if(this._root!==null){const s=[];this._root.searchAfter(e,s),s.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,s){this._left=null,this._right=null,this.parent=null,this.height=0,this.event=s,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 ue{constructor(){super(Z(ks.getDefaults(),arguments,["volume"])),this.name="Volume";const e=Z(ks.getDefaults(),arguments,["volume"]);this.input=this.output=new $e({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(ue.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 Kl extends ue{constructor(){super(Z(Kl.getDefaults(),arguments)),this.name="Destination",this.input=new ks({context:this.context}),this.output=new $e({context:this.context}),this.volume=this.input.volume;const e=Z(Kl.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(ue.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}};Tc(n=>{n.destination=new ZA({context:n})});kc(n=>{n.destination.dispose()});class KA extends rs{constructor(e){super(),this.name="TimelineValue",this._timeline=new En({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 Kn extends ue{constructor(){super(Object.assign(Z(Kn.getDefaults(),arguments,["context"])))}connect(e,t=0,s=0){return hh(this,e,t,s),this}}class nr extends Kn{constructor(){super(Object.assign(Z(nr.getDefaults(),arguments,["mapping","length"]))),this.name="WaveShaper",this._shaper=this.context.createWaveShaper(),this.input=this._shaper,this.output=this._shaper;const e=Z(nr.getDefaults(),arguments,["mapping","length"]);hn(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(je.getDefaults(),{length:1024})}setMap(e,t=1024){const s=new Float32Array(t);for(let r=0,i=t;rs.includes(e));me(t,"oversampling must be either 'none', '2x', or '4x'"),this._shaper.oversample=e}dispose(){return super.dispose(),this._shaper.disconnect(),this}}class Gi extends Kn{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 nr({context:this.context,mapping:this._expFunc(e.value),length:8192}),this._exponent=e.value}static getDefaults(){return Object.assign(Kn.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 Es{constructor(e,t){this.id=Es._eventId++,this._remainderTime=0;const s=Object.assign(Es.getDefaults(),t);this.transport=e,this.callback=s.callback,this._once=s.once,this.time=Math.floor(s.time),this._remainderTime=s.time-this.time}static getDefaults(){return{callback:Oe,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}}Es._eventId=0;class fh extends Es{constructor(e,t){super(e,t),this._currentId=-1,this._nextId=-1,this._nextTick=this.time,this._boundRestart=this._restart.bind(this);const s=Object.assign(fh.getDefaults(),t);this.duration=s.duration,this._interval=s.interval,this._nextTick=s.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({},Es.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 Cr(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 Cr(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);Ur(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 At{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 En,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),Ve(this,"bpm"),this._timeSignature=e.timeSignature,this._swingTicks=e.ppq/2}static getDefaults(){return Object.assign(At.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 s=t%(this._swingTicks*2)/(this._swingTicks*2),r=Math.sin(s*Math.PI)*this._swingAmount;e+=new Cr(this.context,this._swingTicks*2/3).toSeconds()*r}$f(!0),this._timeline.forEachAtTime(t,s=>s.invoke(e)),$f(!1)}schedule(e,t){const s=new Es(this,{callback:e,time:new Ni(this.context,t).toTicks()});return this._addEvent(s,this._timeline)}scheduleRepeat(e,t,s,r=1/0){const i=new fh(this,{callback:e,duration:new ln(this.context,r).toTicks(),interval:new ln(this.context,t).toTicks(),time:new Ni(this.context,s).toTicks()});return this._addEvent(i,this._repeatedEvents)}scheduleOnce(e,t){const s=new Es(this,{callback:e,once:!0,time:new Ni(this.context,t).toTicks()});return this._addEvent(s,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,s=>this.clear(s.id)),this._repeatedEvents.forEachFrom(t,s=>this.clear(s.id)),this}_bindClockEvents(){this._clock.on("start",(e,t)=>{t=new Cr(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 s;return xe(t)&&(s=this.toTicks(t)),this._clock.start(e,s),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){hn(e)&&(e=e[0]/e[1]*4),this._timeSignature=e}get loopStart(){return new ln(this.context,this._loopStart,"i").toSeconds()}set loopStart(e){this._loopStart=this.toTicks(e)}get loopEnd(){return new ln(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 Cr(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 Cr(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(),s=this._clock.frequency.timeToTicks(e,t);this.ticks=s}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 s=this._clock.getTicksAtTime(t),r=this._clock.frequency.getDurationOfTicks(Math.ceil(s)-s,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(),s=this.getTicksAtTime(t),r=e-s%e;return this._clock.nextTickTime(r,t)}}syncSignal(e,t){const s=this.now();let r=this.bpm,i=1/(60/r.getValueAtTime(s)/this.PPQ),o=[];if(e.units==="time"){const c=.015625/i,l=new $e(c),u=new Gi(-1),h=new $e(c);r.chain(l,u,h),r=h,i=1/i,o=[l,u,h]}t||(e.getValueAtTime(s)!==0?t=e.getValueAtTime(s)/i:t=0);const a=new $e(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 s=this._syncedSignals[t];s.signal===e&&(s.nodes.forEach(r=>r.dispose()),s.signal.value=s.initial,this._syncedSignals.splice(t,1))}return this}dispose(){return super.dispose(),this._clock.dispose(),ch(this,"bpm"),this._timeline.dispose(),this._repeatedEvents.dispose(),this}}Do.mixin(Xi);Tc(n=>{n.transport=new Xi({context:n})});kc(n=>{n.transport.dispose()});class _t extends ue{constructor(e){super(e),this.input=void 0,this._state=new uh("stopped"),this._synced=!1,this._scheduled=[],this._syncedStart=Oe,this._syncedStop=Oe,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(ue.getDefaults(),{mute:!1,onstop:Oe,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,s){let r=Ut(e)&&this._synced?this.context.transport.seconds:this.toSeconds(e);if(r=this._clampToCurrentTime(r),!this._synced&&this._state.getValueAtTime(r)==="started")me(Ur(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,s);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=s?this.toSeconds(s):void 0);const o=this.context.transport.schedule(a=>{this._start(a,t,s)},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 tg(this.context),this._start(r,t,s);return this}stop(e){let t=Ut(e)&&this._synced?this.context.transport.seconds:this.toSeconds(e);if(t=this._clampToCurrentTime(t),this._state.getValueAtTime(t)==="started"||xe(this._state.getNextState("started",t))){if(this.log("stop",t),!this._synced)this._stop(t);else{const s=this.context.transport.schedule(this._stop.bind(this),t);this._scheduled.push(s)}this._state.cancel(t),this._state.setStateAtTime("stopped",t)}return this}restart(e,t,s){return e=this.toSeconds(e),this._state.getValueAtTime(e)==="started"&&(this._state.cancel(e),this._restart(e,t,s)),this}sync(){return this._synced||(this._synced=!0,this._syncedStart=(e,t)=>{if(Ur(t,0)){const s=this._state.get(t);if(s&&s.state==="started"&&s.time!==t){const r=t-this.toSeconds(s.time);let i;s.duration&&(i=this.toSeconds(s.duration)-r),this._start(e,this.toSeconds(s.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=Oe,this.unsync(),this._volume.dispose(),this._state.dispose(),this}}class Wr extends Br{constructor(){super(Z(Wr.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(Wr.getDefaults(),arguments,["url","onload"]);Ts(this._source,this._gainNode),this._source.onended=()=>this._stopSource(),this.playbackRate=new Re({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 Ae(e.url,e.onload,e.onerror),this._internalChannels.push(this._source)}static getDefaults(){return Object.assign(Br.getDefaults(),{url:new Ae,loop:!1,loopEnd:0,loopStart:0,onload:Oe,onerror:Oe,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,s,r=1){me(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;Xl(o,a)&&(o=(o-c)%l+c),an(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)),xe(s)){let a=this.toSeconds(s);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 _t{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(_t.getDefaults(),{fadeIn:0,fadeOut:0,playbackRate:1,type:"white"})}get type(){return this._type}set type(e){if(me(e in Ff,"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=Ff[this._type];this._source=new Wr({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 br=44100*5,il=2,Ln={brown:null,pink:null,white:null},Ff={get brown(){if(!Ln.brown){const n=[];for(let e=0;ethis.onstop(this)});this._oscillator=s,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 rt._periodicWaveCache.find(t=>t.phase===this._phase&&DA(t.partials,this._partials));{const e=rt._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 s=this._getCachedPeriodicWave();if(xe(s)){const{partials:r,wave:i}=s;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),rt._periodicWaveCache.push({imag:i,partialCount:this._partialCount,partials:this._partials,phase:this._phase,real:r,type:this._type,wave:this._wave}),rt._periodicWaveCache.length>100&&rt._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){pn(e,0);let t=this._type;const s=/^(sine|triangle|square|sawtooth)(\d+)$/.exec(this._type);if(s&&(t=s[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,s){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 Cs extends je{constructor(){super(Object.assign(Z(Cs.getDefaults(),arguments,["value"]))),this.name="Multiply",this.override=!1;const e=Z(Cs.getDefaults(),arguments,["value"]);this._mult=this.input=this.output=new $e({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(je.getDefaults(),{value:0})}dispose(){return super.dispose(),this._mult.dispose(),this}}class Ki extends _t{constructor(){super(Z(Ki.getDefaults(),arguments,["frequency","type","modulationType"])),this.name="AMOscillator",this._modulationScale=new QA({context:this.context}),this._modulationNode=new $e({context:this.context});const e=Z(Ki.getDefaults(),arguments,["frequency","type","modulationType"]);this._carrier=new rt({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 rt({context:this.context,phase:e.phase,type:e.modulationType}),this.harmonicity=new Cs({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(rt.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 ur(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 _t{constructor(){super(Z(Qi.getDefaults(),arguments,["frequency","type","modulationType"])),this.name="FMOscillator",this._modulationNode=new $e({context:this.context,gain:0});const e=Z(Qi.getDefaults(),arguments,["frequency","type","modulationType"]);this._carrier=new rt({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 je({context:this.context,units:"frequency",value:e.frequency}),this._modulator=new rt({context:this.context,phase:e.phase,type:e.modulationType}),this.harmonicity=new Cs({context:this.context,units:"positive",value:e.harmonicity}),this.modulationIndex=new Cs({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(rt.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 ur(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 qr extends _t{constructor(){super(Z(qr.getDefaults(),arguments,["frequency","width"])),this.name="PulseOscillator",this._widthGate=new $e({context:this.context,gain:0}),this._thresh=new nr({context:this.context,mapping:t=>t<=0?-1:1});const e=Z(qr.getDefaults(),arguments,["frequency","width"]);this.width=new je({context:this.context,units:"audioRange",value:e.width}),this._triangle=new rt({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(_t.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 ur(this,e)})}dispose(){return super.dispose(),this._triangle.dispose(),this.width.dispose(),this._widthGate.dispose(),this._thresh.dispose(),this}}class Ji extends _t{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 je({context:this.context,units:"frequency",value:e.frequency}),this.detune=new je({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(rt.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,s=e/(this._oscillators.length-1);this._forEach((r,i)=>r.detune.value=t+s*i)}}get count(){return this._oscillators.length}set count(e){if(pn(e,1),this._oscillators.length!==e){this._forEach(t=>t.dispose()),this._oscillators=[];for(let t=0;tthis.onstop(this):Oe});this.type==="custom"&&(s.partials=this._partials),this.frequency.connect(s.frequency),this.detune.connect(s.detune),s.detune.overridden=!1,s.connect(this.output),this._oscillators[t]=s}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,s)=>t.phase=this._phase+s/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 ur(this,e)})}dispose(){return super.dispose(),this.frequency.dispose(),this.detune.dispose(),this._forEach(e=>e.dispose()),this}}class eo extends _t{constructor(){super(Z(eo.getDefaults(),arguments,["frequency","modulationFrequency"])),this.name="PWMOscillator",this.sourceType="pwm",this._scale=new Cs({context:this.context,value:2});const e=Z(eo.getDefaults(),arguments,["frequency","modulationFrequency"]);this._pulse=new qr({context:this.context,frequency:e.modulationFrequency}),this._pulse.carrierType="sine",this.modulationFrequency=this._pulse.frequency,this._modulator=new rt({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(_t.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 ur(this,e)})}dispose(){return super.dispose(),this._pulse.dispose(),this._scale.dispose(),this._modulator.dispose(),this}}const Lf={am:Ki,fat:Ji,fm:Qi,oscillator:rt,pulse:qr,pwm:eo};class sr extends _t{constructor(){super(Z(sr.getDefaults(),arguments,["frequency","type"])),this.name="OmniOscillator";const e=Z(sr.getDefaults(),arguments,["frequency","type"]);this.frequency=new je({context:this.context,units:"frequency",value:e.frequency}),this.detune=new je({context:this.context,units:"cents",value:e.detune}),Ve(this,["frequency","detune"]),this.set(e)}static getDefaults(){return Object.assign(rt.getDefaults(),Qi.getDefaults(),Ki.getDefaults(),Ji.getDefaults(),qr.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=Lf[e],s=this.now();if(this._oscillator){const r=this._oscillator;r.stop(s),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(s)}}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 Lf[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")&&ws(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")&&ws(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"))&&Zn(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 ur(this,e)})}dispose(){return super.dispose(),this.detune.dispose(),this.frequency.dispose(),this._oscillator.dispose(),this}}class ph extends je{constructor(){super(Object.assign(Z(ph.getDefaults(),arguments,["value"]))),this.override=!1,this.name="Add",this._sum=new $e({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(je.getDefaults(),{value:0})}dispose(){return super.dispose(),this._sum.dispose(),this}}class Wa extends Kn{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 Cs({context:this.context,value:e.max-e.min}),this._add=this.output=new ph({context:this.context,value:e.min}),this._min=e.min,this._max=e.max,this.input.connect(this.output)}static getDefaults(){return Object.assign(Kn.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 dg(n,e=1/0){const t=new WeakMap;return function(s,r){Reflect.defineProperty(s,r,{configurable:!0,enumerable:!0,get:function(){return t.get(this)},set:function(i){pn(i,n,e),t.set(this,i)}})}}function is(n,e=1/0){const t=new WeakMap;return function(s,r){Reflect.defineProperty(s,r,{configurable:!0,enumerable:!0,get:function(){return t.get(this)},set:function(i){pn(this.toSeconds(i),n,e),t.set(this,i)}})}}class to extends _t{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 Ae({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(_t.getDefaults(),{autostart:!1,fadeIn:0,fadeOut:0,loop:!1,loopEnd:0,loopStart:0,onload:Oe,onerror:Oe,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=Oe){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,s){return super.start(e,t,s),this}_start(e,t,s){this._loop?t=Pr(t,this._loopStart):t=Pr(t,0);const r=this.toSeconds(t),i=s;s=Pr(s,Math.max(this._buffer.duration-r,0));let o=this.toSeconds(s);o=o/this._playbackRate,e=this.toSeconds(e);const a=new Wr({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&&Ut(i)?a.start(e,r):a.start(e,r,o-this.toSeconds(this.fadeOut))}_stop(e){const t=this.toSeconds(e);this._activeSources.forEach(s=>s.stop(t))}restart(e,t,s){return super.restart(e,t,s),this}_restart(e,t,s){var r;(r=[...this._activeSources].pop())===null||r===void 0||r.stop(e),this._start(e,t,s)}seek(e,t){const s=this.toSeconds(t);if(this._state.getValueAtTime(s)==="started"){const r=this.toSeconds(e);this._stop(s),this._start(s,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&&pn(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&&pn(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(),s=this._state.getNextState("stopped",t);s&&s.implicitEnd&&(this._state.cancel(s.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}}gn([is(0)],to.prototype,"fadeIn",void 0);gn([is(0)],to.prototype,"fadeOut",void 0);class JA extends Kn{constructor(){super(...arguments),this.name="GainToAudio",this._norm=new nr({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 en extends ue{constructor(){super(Z(en.getDefaults(),arguments,["attack","decay","sustain","release"])),this.name="Envelope",this._sig=new je({context:this.context,value:0}),this.output=this._sig,this.input=void 0;const e=Z(en.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(ue.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(Zn(e))return e;{let s;for(s in Qo)if(Qo[s][t]===e)return s;return e}}_setCurve(e,t,s){if(Zn(s)&&Reflect.has(Qo,s)){const r=Qo[s];qs(r)?e!=="_decayCurve"&&(this[e]=r[t]):this[e]=r}else if(hn(s)&&e!=="_decayCurve")this[e]=s;else throw new Error("Envelope: invalid curve: "+s)}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 s=this.toSeconds(this.release);s{let e,t;const s=[];for(e=0;e<128;e++)s[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(rr.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(ue.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 s=this["_original_"+e]=this[e];this[e]=(...r)=>{const i=r[t],o=this.context.transport.schedule(a=>{r[t]=a,s.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,s,r){const i=this.toSeconds(s),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 Qn extends rr{constructor(){super(Z(Qn.getDefaults(),arguments));const e=Z(Qn.getDefaults(),arguments);this.portamento=e.portamento,this.onsilence=e.onsilence}static getDefaults(){return Object.assign(rr.getDefaults(),{detune:0,onsilence:Oe,portamento:0})}triggerAttack(e,t,s=1){this.log("triggerAttack",e,t,s);const r=this.toSeconds(t);return this._triggerEnvelopeAttack(r,s),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 s=this.toSeconds(t),r=e instanceof Zt?e.toFrequency():e;if(this.portamento>0&&this.getLevelAtTime(s)>.05){const i=this.toSeconds(this.portamento);this.frequency.exponentialRampTo(r,i,s)}else this.frequency.setValueAtTime(r,s);return this}}gn([is(0)],Qn.prototype,"portamento",void 0);class Sc extends en{constructor(){super(Z(Sc.getDefaults(),arguments,["attack","decay","sustain","release"])),this.name="AmplitudeEnvelope",this._gainNode=new $e({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 Qn{constructor(){super(Z(no.getDefaults(),arguments)),this.name="Synth";const e=Z(no.getDefaults(),arguments);this.oscillator=new sr(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 Sc(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(Qn.getDefaults(),{envelope:Object.assign(Er(en.getDefaults(),Object.keys(ue.getDefaults())),{attack:.005,decay:.1,release:1,sustain:.3}),oscillator:Object.assign(Er(sr.getDefaults(),[...Object.keys(_t.getDefaults()),"frequency","detune"]),{type:"triangle"})})}_triggerEnvelopeAttack(e,t){if(this.envelope.triggerAttack(e,t),this.oscillator.start(e),this.envelope.sustain===0){const s=this.toSeconds(this.envelope.attack),r=this.toSeconds(this.envelope.decay);this.oscillator.stop(e+s+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 ue{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 Re({context:this.context,units:"number",value:e.Q,param:this._filter.Q}),this.frequency=new Re({context:this.context,units:"frequency",value:e.frequency,param:this._filter.frequency}),this.detune=new Re({context:this.context,units:"cents",value:e.detune,param:this._filter.detune}),this.gain=new Re({context:this.context,units:"decibels",convert:!1,value:e.gain,param:this._filter.gain}),this.type=e.type}static getDefaults(){return Object.assign(ue.getDefaults(),{Q:1,type:"lowpass",frequency:350,detune:0,gain:0})}get type(){return this._filter.type}set type(e){me(["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;os.type=e)}get rolloff(){return this._rolloff}set rolloff(e){const t=ws(e)?e:parseInt(e,10),s=[-12,-24,-48,-96];let r=s.indexOf(t);me(r!==-1,`rolloff can only be ${s.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)=>s[o]*=i)}),t.dispose(),s}dispose(){return super.dispose(),this._filters.forEach(e=>{e.dispose()}),ch(this,["detune","frequency","gain","Q"]),this.frequency.dispose(),this.Q.dispose(),this.detune.dispose(),this.gain.dispose(),this}}class ro extends en{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(en.getDefaults(),{baseFrequency:200,exponent:1,octaves:4})}get baseFrequency(){return this._baseFrequency}set baseFrequency(e){const t=this.toFrequency(e);pn(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 Qn{constructor(){super(Z(io.getDefaults(),arguments)),this.name="MonoSynth";const e=Z(io.getDefaults(),arguments);this.oscillator=new sr(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 Hr(Object.assign(e.filter,{context:this.context})),this.filterEnvelope=new ro(Object.assign(e.filterEnvelope,{context:this.context})),this.envelope=new Sc(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(Qn.getDefaults(),{envelope:Object.assign(Er(en.getDefaults(),Object.keys(ue.getDefaults())),{attack:.005,decay:.1,release:1,sustain:.9}),filter:Object.assign(Er(Hr.getDefaults(),Object.keys(ue.getDefaults())),{Q:1,rolloff:-12,type:"lowpass"}),filterEnvelope:Object.assign(Er(ro.getDefaults(),Object.keys(ue.getDefaults())),{attack:.6,baseFrequency:200,decay:.2,exponent:2,octaves:3,release:2,sustain:.5}),oscillator:Object.assign(Er(sr.getDefaults(),Object.keys(_t.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 s=this.toSeconds(this.envelope.attack),r=this.toSeconds(this.envelope.decay);this.oscillator.stop(e+s+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 Dr(Qn.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 s=this.toSeconds(t),r=this.toFrequency(e instanceof Zt?e.toFrequency():e),i=r*this.octaves;return this.oscillator.frequency.setValueAtTime(i,s),this.oscillator.frequency.exponentialRampToValueAtTime(r,s+this.toSeconds(this.pitchDecay)),this}dispose(){return super.dispose(),this}}gn([dg(0)],oo.prototype,"octaves",void 0);gn([is(0)],oo.prototype,"pitchDecay",void 0);const fg=new Set;function mh(n){fg.add(n)}function pg(n,e){const t=`registerProcessor("${n}", ${e})`;fg.add(t)}const eR=` /** * The base AudioWorkletProcessor for use in Tone.js. Works with the [[ToneAudioWorklet]]. */ @@ -233,7 +233,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }; } } -`;mh(tR);const nR=` +`;mh(eR);const tR=` /** * Abstract class for a single input/output processor. * has a 'generate' function which processes one sample at a time @@ -300,7 +300,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return !this.disposed; } }; -`;mh(nR);const sR=` +`;mh(tR);const nR=` /** * A multichannel buffer for use within an AudioWorkletProcessor as a delay line */ @@ -344,7 +344,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return this.buffer[channel][readHead]; } } -`;mh(sR);const rR="feedback-comb-filter",iR=` +`;mh(nR);const sR="feedback-comb-filter",rR=` class FeedbackCombFilterWorklet extends SingleIOProcessor { constructor(options) { @@ -374,7 +374,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return delayedSample; } } -`;mg(rR,iR);class ao extends rr{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(s=>{const r=parseInt(s,10);if(me(Ko(s)||ws(r)&&isFinite(r),`url key is neither a note or midi pitch: ${s}`),Ko(s)){const i=new Zt(this.context,s).toMidi();t[i]=e.urls[s]}else ws(r)&&isFinite(r)&&(t[r]=e.urls[r])}),this._buffers=new dh({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(rr.getDefaults(),{attack:0,baseUrl:"",curve:"exponential",onload:Oe,onerror:Oe,release:.1,urls:{}})}_findClosest(e){let s=0;for(;s<96;){if(this._buffers.has(e+s))return-s;if(this._buffers.has(e-s))return s;s++}throw new Error(`No available buffers for note: ${e}`)}triggerAttack(e,t,s=1){return this.log("triggerAttack",e,t,s),Array.isArray(e)||(e=[e]),e.forEach(r=>{const i=dg(new Zt(this.context,r).toFrequency()),o=Math.round(i),a=i-o,c=this._findClosest(o),l=o-c,u=this._buffers.get(l),h=hg(c+a),d=new Wr({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,s),hn(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(s=>{const r=new Zt(this.context,s).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(s=>{for(;s.length;)s.shift().stop(t)}),this}sync(){return this._syncState()&&(this._syncMethod("triggerAttack",1),this._syncMethod("triggerRelease",1)),this}triggerAttackRelease(e,t,s,r=1){const i=this.toSeconds(s);return this.triggerAttack(e,i,r),hn(t)?(me(hn(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,s){if(me(Ko(e)||isFinite(e),`note must be a pitch or midi: ${e}`),Ko(e)){const r=new Zt(this.context,e).toMidi();this._buffers.add(r,t,s)}else this._buffers.add(e,t,s);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}}gn([is(0)],ao.prototype,"attack",void 0);gn([is(0)],ao.prototype,"release",void 0);class qa extends ue{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 eR({context:this.context}),this.a=new $e({context:this.context,gain:0}),this.b=new $e({context:this.context,gain:0}),this.output=new $e({context:this.context}),this._internalChannels=[this.a,this.b];const e=Z(qa.getDefaults(),arguments,["fade"]);this.fade=new je({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",Ts(this._split,this.a.gain,0),Ts(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(ue.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 jf extends ue{constructor(e){super(e),this.name="Effect",this._dryWet=new qa({context:this.context}),this.wet=this._dryWet.fade,this.effectSend=new $e({context:this.context}),this.effectReturn=new $e({context:this.context}),this.input=new $e({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(ue.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 ue{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 Re({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(ue.getDefaults(),{pan:0,channelCount:1})}dispose(){return super.dispose(),this._panner.disconnect(),this.pan.dispose(),this}}const oR="bit-crusher",aR=` +`;pg(sR,rR);class ao extends rr{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(s=>{const r=parseInt(s,10);if(me(Ko(s)||ws(r)&&isFinite(r),`url key is neither a note or midi pitch: ${s}`),Ko(s)){const i=new Zt(this.context,s).toMidi();t[i]=e.urls[s]}else ws(r)&&isFinite(r)&&(t[r]=e.urls[r])}),this._buffers=new dh({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(rr.getDefaults(),{attack:0,baseUrl:"",curve:"exponential",onload:Oe,onerror:Oe,release:.1,urls:{}})}_findClosest(e){let s=0;for(;s<96;){if(this._buffers.has(e+s))return-s;if(this._buffers.has(e-s))return s;s++}throw new Error(`No available buffers for note: ${e}`)}triggerAttack(e,t,s=1){return this.log("triggerAttack",e,t,s),Array.isArray(e)||(e=[e]),e.forEach(r=>{const i=hg(new Zt(this.context,r).toFrequency()),o=Math.round(i),a=i-o,c=this._findClosest(o),l=o-c,u=this._buffers.get(l),h=ug(c+a),d=new Wr({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,s),hn(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(s=>{const r=new Zt(this.context,s).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(s=>{for(;s.length;)s.shift().stop(t)}),this}sync(){return this._syncState()&&(this._syncMethod("triggerAttack",1),this._syncMethod("triggerRelease",1)),this}triggerAttackRelease(e,t,s,r=1){const i=this.toSeconds(s);return this.triggerAttack(e,i,r),hn(t)?(me(hn(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,s){if(me(Ko(e)||isFinite(e),`note must be a pitch or midi: ${e}`),Ko(e)){const r=new Zt(this.context,e).toMidi();this._buffers.add(r,t,s)}else this._buffers.add(e,t,s);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}}gn([is(0)],ao.prototype,"attack",void 0);gn([is(0)],ao.prototype,"release",void 0);class qa extends ue{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 JA({context:this.context}),this.a=new $e({context:this.context,gain:0}),this.b=new $e({context:this.context,gain:0}),this.output=new $e({context:this.context}),this._internalChannels=[this.a,this.b];const e=Z(qa.getDefaults(),arguments,["fade"]);this.fade=new je({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",Ts(this._split,this.a.gain,0),Ts(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(ue.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 jf extends ue{constructor(e){super(e),this.name="Effect",this._dryWet=new qa({context:this.context}),this.wet=this._dryWet.fade,this.effectSend=new $e({context:this.context}),this.effectReturn=new $e({context:this.context}),this.input=new $e({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(ue.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 ue{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 Re({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(ue.getDefaults(),{pan:0,channelCount:1})}dispose(){return super.dispose(),this._panner.disconnect(),this.pan.dispose(),this}}const iR="bit-crusher",oR=` class BitCrusherWorklet extends SingleIOProcessor { static get parameterDescriptors() { @@ -393,7 +393,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return val; } } -`;mg(oR,aR);class Ya extends ue{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(ue.getDefaults(),{channels:2})}dispose(){return super.dispose(),this._merger.disconnect(),this}}class Ga extends jf{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(jf.getDefaults(),{decay:1.5,preDelay:.01})}get decay(){return this._decay}set decay(e){e=this.toSeconds(e),pn(e,.001),this._decay=e,this.generate()}get preDelay(){return this._preDelay}set preDelay(e){e=this.toSeconds(e),pn(e,0),this._preDelay=e,this.generate()}generate(){return Ie(this,void 0,void 0,function*(){const e=this.ready,t=new Ec(2,this._decay+this._preDelay,this.context.sampleRate),s=new Zi({context:t}),r=new Zi({context:t}),i=new Ya({context:t});s.connect(i,0,0),r.connect(i,0,1);const o=new $e({context:t}).toDestination();i.connect(o),s.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(Oe),yield e,this._convolver.buffer=(yield a).get(),this})}dispose(){return super.dispose(),this._convolver.disconnect(),this}}class nt extends ue{constructor(){super(Z(nt.getDefaults(),arguments,["solo"])),this.name="Solo";const e=Z(nt.getDefaults(),arguments,["solo"]);this.input=this.output=new $e({context:this.context}),nt._allSolos.has(this.context)||nt._allSolos.set(this.context,new Set),nt._allSolos.get(this.context).add(this),this.solo=e.solo}static getDefaults(){return Object.assign(ue.getDefaults(),{solo:!1})}get solo(){return this._isSoloed()}set solo(e){e?this._addSolo():this._removeSolo(),nt._allSolos.get(this.context).forEach(t=>t._updateSolo())}get muted(){return this.input.gain.value===0}_addSolo(){nt._soloed.has(this.context)||nt._soloed.set(this.context,new Set),nt._soloed.get(this.context).add(this)}_removeSolo(){nt._soloed.has(this.context)&&nt._soloed.get(this.context).delete(this)}_isSoloed(){return nt._soloed.has(this.context)&&nt._soloed.get(this.context).has(this)}_noSolos(){return!nt._soloed.has(this.context)||nt._soloed.has(this.context)&&nt._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(),nt._allSolos.get(this.context).delete(this),this._removeSolo(),this}}nt._allSolos=new Map;nt._soloed=new Map;class Xa extends ue{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(ue.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 ue{constructor(){super(Z(js.getDefaults(),arguments,["volume","pan"])),this.name="Channel";const e=Z(js.getDefaults(),arguments,["volume","pan"]);this._solo=this.input=new nt({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(ue.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 $e({context:this.context})),js.buses.get(e)}send(e,t=0){const s=this._getBus(e),r=new $e({context:this.context,units:"decibels",gain:t});return this.connect(r),r.connect(s),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 cR extends ue{constructor(){super(...arguments),this.name="Listener",this.positionX=new Re({context:this.context,param:this.context.rawContext.listener.positionX}),this.positionY=new Re({context:this.context,param:this.context.rawContext.listener.positionY}),this.positionZ=new Re({context:this.context,param:this.context.rawContext.listener.positionZ}),this.forwardX=new Re({context:this.context,param:this.context.rawContext.listener.forwardX}),this.forwardY=new Re({context:this.context,param:this.context.rawContext.listener.forwardY}),this.forwardZ=new Re({context:this.context,param:this.context.rawContext.listener.forwardZ}),this.upX=new Re({context:this.context,param:this.context.rawContext.listener.upX}),this.upY=new Re({context:this.context,param:this.context.rawContext.listener.upY}),this.upZ=new Re({context:this.context,param:this.context.rawContext.listener.upZ})}static getDefaults(){return Object.assign(ue.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}}Tc(n=>{n.listener=new cR({context:n})});kc(n=>{n.listener.dispose()});cn().transport;const gh=cn().destination;cn().destination;cn().listener;cn().draw;cn();const _h=new Hr(900,"highpass"),gg=new ks(-6);gg.chain(_h,gh);const lR=new Ga(3).connect(gg),Oc=new io({envelope:{attack:0,decay:.9,sustain:.2,release:.1}});Oc.oscillator.type="triangle2";Oc.volume.value=-6;Oc.chain(_h,gh);const Ac=new io({envelope:{attack:.4,decay:.9,sustain:.7,release:.6}}).connect(lR);Ac.oscillator.type="triangle";Ac.volume.value=-6;Ac.chain(_h,gh);function uR(){return Math.floor((Math.random()-.5)*20)}let zf=!1;const hR=async(n=0)=>{zf||(await jA(),zf=!0);try{if(n>2e3)Ac.triggerAttackRelease(60,.3);else if(n>1e3){let e=310;e+=uR(),Oc.triggerAttackRelease(e,.001)}}catch(e){console.warn(e)}},Jo=1800,dR=(n,e)=>n.clone().normalize().clone().negate().normalize().multiplyScalar(e).add(n),fR=(n,e,t,s,r)=>{const i=new vp,o=1e-5;i.absarc(o,o,o,-Math.PI/2,-Math.PI,!0),i.absarc(o,e-s*2,o,Math.PI,Math.PI/2,!0),i.absarc(n-s*2,e-s*2,o,Math.PI/2,0,!0),i.absarc(n-s*2,o,o,0,-Math.PI/2,!0);const a=new gy(i,{depth:t-s*2,bevelEnabled:!0,bevelSegments:r,steps:2,bevelSize:s,bevelThickness:s,curveSegments:r});a.center();const c=[],l=a.getAttribute("normal"),u=a.getAttribute("position");for(let h=0;h.9?(m=f.x/n+.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/n+.5,p=1-(-f.y/e+.5)),c.push(m,p)}return a.setAttribute("uv",new ra(c,2)),a};fR(10,10,10,2,10);new my(10,10,10);const pR=500,mR=800;let ki=null;const gR=500,_g=(n,e)=>{if(ki)return null;ki=setTimeout(()=>{ki&&(clearTimeout(ki),ki=null)},gR);const t=[];return n.forEach(r=>{const i=e.position.distanceTo(hE.set(r.x,r.y,r.z));ir.distance-i.distance).slice(0,pR).map(r=>r.id)};let xr,Ei;const _R=1e3,yR=2e3,vR=n=>{const e=As(),t=Ws(w=>w.isUserDragging),s=Ws(w=>w.isUserScrolling),r=Ws(w=>w.setUserMovedCamera),{data:i,graphStyle:o,showSelectionGraph:a,setNearbyNodeIds:c,cameraFocusTrigger:l,graphRadius:u}=Ue(w=>w),{camera:h}=Ye(),[d,f]=v.useState(!1),[m,p]=v.useState(!1),[g,_]=v.useState(_f),k=v.useMemo(()=>{if(a)return new ye(0,0,0);const w=i==null?void 0:i.nodes.find(D=>D.ref_id===(e==null?void 0:e.ref_id)),C=u+300;let A=new ye(0,0,C);if(w&&i){const D=i==null?void 0:i.nodes.filter(V=>{var U;return(U=w.children)==null?void 0:U.find(B=>B===V.id)}),O=new ye(w.x,w.y,w.z);let L=new ye(0,0,0);D.map(V=>(L=L.add(new ye(V.x,V.y,V.z).normalize()),V));const j=w.scale?1-1/(w.scale+10):1,W=O.sub(L).multiplyScalar(.8*j);A=O.add(W)}return A},[a,e,i,u]),T=v.useMemo(()=>{if(a)return new ye(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 ye((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=n.current)==null||w.setLookAt(ps.x,ps.y,ps.z,0,0,0,!1)),b()},[a]),v.useEffect(()=>{a?_(pE):(e==null?void 0:e.node_type)==="topic"?_(fE):_(_f)},[e,_,a]),v.useEffect(()=>{y()},[l]),v.useEffect(()=>{(t||s)&&(f(!0),p(!0))},[t,s,f,p]),v.useEffect(()=>{if(e)if(!a&&o==="earth"&&(n!=null&&n.current)){const w=n.current.camera.position.distanceTo(new ye),C=dR(T,-w/2);n.current.setLookAt(C.x,C.y,C.z,0,0,0,!0)}else xr&&clearTimeout(xr),xr=setTimeout(()=>{p(!0),clearTimeout(xr)},yR),b();return()=>{xr&&clearTimeout(xr),Ei&&clearTimeout(Ei)}},[e]),nn(w=>{n.current&&(d||x(k,w.camera),m||E(T,w.camera))});const b=()=>{if(e){const w=h.position.distanceTo(k);hR(w)}y()},y=()=>{f(!1),p(!1),r(!1),Ei&&clearTimeout(Ei),Ei=setTimeout(()=>{f(!0),p(!0)},_R)},x=(w,C)=>{if(C.position.distanceTo(w){var A;(A=n==null?void 0:n.current)==null||A.setLookAt(C.position.x,C.position.y,C.position.z,w.x,w.y,w.z,!0)};return null};let ea=null;const bR=(n,{enabled:e})=>{const t=As();vR(n);const{graphRadius:s}=Ue(r=>r);return v.useEffect(()=>{e||(ea==null||ea.kill(),ea=null)},[e]),v.useEffect(()=>{!t&&n.current&&n.current.setLookAt(Mi.x,Mi.y,s+200,0,0,0,!0)},[t,s]),null},xR=({disableAnimations:n})=>{const e=v.useRef(null),{data:t,setNearbyNodeIds:s,setDisableCameraRotation:r}=Ue(h=>h),[i]=v.useState(.8),{camera:o}=Ye(),[a,c,l,u]=Ws(h=>[h.isUserDragging,h.setIsUserDragging,h.isUserScrolling,h.isUserScrollingOnHtmlPanel]);return bR(e,{enabled:!n&&!l&&!a}),v.useEffect(()=>{if(!a){const h=_g((t==null?void 0:t.nodes)||[],o);h&&s(h)}},[o,o.position,o.position.x,o.position.y,o.position.z,t==null?void 0:t.nodes,s,a]),v.useEffect(()=>{a&&r(!0)},[a,r]),M.jsx(Np,{ref:e,boundaryEnclosesCamera:!0,dollyToCursor:!0,enabled:!u,makeDefault:!0,maxDistance:12e3,minDistance:100,onEnd:()=>c(!1),onStart:()=>c(!0),smoothTime:i})},wR=({node:n})=>{const{getNodeKeysByType:e}=Hn(r=>r),t=e(n.node_type)||"",s=n!=null&&n.properties?n==null?void 0:n.properties[t]:"";return M.jsx(TR,{children:M.jsxs(kR,{children:[M.jsx(ER,{children:M.jsx(yy,{type:n.node_type})}),s&&M.jsx(CR,{children:s})]})})},TR=ve(Fe)` +`;pg(iR,oR);class Ya extends ue{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(ue.getDefaults(),{channels:2})}dispose(){return super.dispose(),this._merger.disconnect(),this}}class Ga extends jf{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(jf.getDefaults(),{decay:1.5,preDelay:.01})}get decay(){return this._decay}set decay(e){e=this.toSeconds(e),pn(e,.001),this._decay=e,this.generate()}get preDelay(){return this._preDelay}set preDelay(e){e=this.toSeconds(e),pn(e,0),this._preDelay=e,this.generate()}generate(){return Ie(this,void 0,void 0,function*(){const e=this.ready,t=new Ec(2,this._decay+this._preDelay,this.context.sampleRate),s=new Zi({context:t}),r=new Zi({context:t}),i=new Ya({context:t});s.connect(i,0,0),r.connect(i,0,1);const o=new $e({context:t}).toDestination();i.connect(o),s.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(Oe),yield e,this._convolver.buffer=(yield a).get(),this})}dispose(){return super.dispose(),this._convolver.disconnect(),this}}class nt extends ue{constructor(){super(Z(nt.getDefaults(),arguments,["solo"])),this.name="Solo";const e=Z(nt.getDefaults(),arguments,["solo"]);this.input=this.output=new $e({context:this.context}),nt._allSolos.has(this.context)||nt._allSolos.set(this.context,new Set),nt._allSolos.get(this.context).add(this),this.solo=e.solo}static getDefaults(){return Object.assign(ue.getDefaults(),{solo:!1})}get solo(){return this._isSoloed()}set solo(e){e?this._addSolo():this._removeSolo(),nt._allSolos.get(this.context).forEach(t=>t._updateSolo())}get muted(){return this.input.gain.value===0}_addSolo(){nt._soloed.has(this.context)||nt._soloed.set(this.context,new Set),nt._soloed.get(this.context).add(this)}_removeSolo(){nt._soloed.has(this.context)&&nt._soloed.get(this.context).delete(this)}_isSoloed(){return nt._soloed.has(this.context)&&nt._soloed.get(this.context).has(this)}_noSolos(){return!nt._soloed.has(this.context)||nt._soloed.has(this.context)&&nt._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(),nt._allSolos.get(this.context).delete(this),this._removeSolo(),this}}nt._allSolos=new Map;nt._soloed=new Map;class Xa extends ue{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(ue.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 ue{constructor(){super(Z(js.getDefaults(),arguments,["volume","pan"])),this.name="Channel";const e=Z(js.getDefaults(),arguments,["volume","pan"]);this._solo=this.input=new nt({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(ue.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 $e({context:this.context})),js.buses.get(e)}send(e,t=0){const s=this._getBus(e),r=new $e({context:this.context,units:"decibels",gain:t});return this.connect(r),r.connect(s),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 aR extends ue{constructor(){super(...arguments),this.name="Listener",this.positionX=new Re({context:this.context,param:this.context.rawContext.listener.positionX}),this.positionY=new Re({context:this.context,param:this.context.rawContext.listener.positionY}),this.positionZ=new Re({context:this.context,param:this.context.rawContext.listener.positionZ}),this.forwardX=new Re({context:this.context,param:this.context.rawContext.listener.forwardX}),this.forwardY=new Re({context:this.context,param:this.context.rawContext.listener.forwardY}),this.forwardZ=new Re({context:this.context,param:this.context.rawContext.listener.forwardZ}),this.upX=new Re({context:this.context,param:this.context.rawContext.listener.upX}),this.upY=new Re({context:this.context,param:this.context.rawContext.listener.upY}),this.upZ=new Re({context:this.context,param:this.context.rawContext.listener.upZ})}static getDefaults(){return Object.assign(ue.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}}Tc(n=>{n.listener=new aR({context:n})});kc(n=>{n.listener.dispose()});cn().transport;const gh=cn().destination;cn().destination;cn().listener;cn().draw;cn();const _h=new Hr(900,"highpass"),mg=new ks(-6);mg.chain(_h,gh);const cR=new Ga(3).connect(mg),Oc=new io({envelope:{attack:0,decay:.9,sustain:.2,release:.1}});Oc.oscillator.type="triangle2";Oc.volume.value=-6;Oc.chain(_h,gh);const Ac=new io({envelope:{attack:.4,decay:.9,sustain:.7,release:.6}}).connect(cR);Ac.oscillator.type="triangle";Ac.volume.value=-6;Ac.chain(_h,gh);function lR(){return Math.floor((Math.random()-.5)*20)}let zf=!1;const uR=async(n=0)=>{zf||(await LA(),zf=!0);try{if(n>2e3)Ac.triggerAttackRelease(60,.3);else if(n>1e3){let e=310;e+=lR(),Oc.triggerAttackRelease(e,.001)}}catch(e){console.warn(e)}},Jo=1800,hR=(n,e)=>n.clone().normalize().clone().negate().normalize().multiplyScalar(e).add(n),dR=(n,e,t,s,r)=>{const i=new yp,o=1e-5;i.absarc(o,o,o,-Math.PI/2,-Math.PI,!0),i.absarc(o,e-s*2,o,Math.PI,Math.PI/2,!0),i.absarc(n-s*2,e-s*2,o,Math.PI/2,0,!0),i.absarc(n-s*2,o,o,0,-Math.PI/2,!0);const a=new py(i,{depth:t-s*2,bevelEnabled:!0,bevelSegments:r,steps:2,bevelSize:s,bevelThickness:s,curveSegments:r});a.center();const c=[],l=a.getAttribute("normal"),u=a.getAttribute("position");for(let h=0;h.9?(m=f.x/n+.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/n+.5,p=1-(-f.y/e+.5)),c.push(m,p)}return a.setAttribute("uv",new ra(c,2)),a};dR(10,10,10,2,10);new fy(10,10,10);const fR=500,pR=800;let ki=null;const mR=500,gg=(n,e)=>{if(ki)return null;ki=setTimeout(()=>{ki&&(clearTimeout(ki),ki=null)},mR);const t=[];return n.forEach(r=>{const i=e.position.distanceTo(uE.set(r.x,r.y,r.z));ir.distance-i.distance).slice(0,fR).map(r=>r.id)};let xr,Ei;const gR=1e3,_R=2e3,yR=n=>{const e=As(),t=Ws(w=>w.isUserDragging),s=Ws(w=>w.isUserScrolling),r=Ws(w=>w.setUserMovedCamera),{data:i,graphStyle:o,showSelectionGraph:a,setNearbyNodeIds:c,cameraFocusTrigger:l,graphRadius:u}=Ue(w=>w),{camera:h}=Ye(),[d,f]=v.useState(!1),[m,p]=v.useState(!1),[g,_]=v.useState(_f),k=v.useMemo(()=>{if(a)return new ye(0,0,0);const w=i==null?void 0:i.nodes.find(D=>D.ref_id===(e==null?void 0:e.ref_id)),C=u+300;let A=new ye(0,0,C);if(w&&i){const D=i==null?void 0:i.nodes.filter(V=>{var U;return(U=w.children)==null?void 0:U.find(B=>B===V.id)}),O=new ye(w.x,w.y,w.z);let L=new ye(0,0,0);D.map(V=>(L=L.add(new ye(V.x,V.y,V.z).normalize()),V));const j=w.scale?1-1/(w.scale+10):1,W=O.sub(L).multiplyScalar(.8*j);A=O.add(W)}return A},[a,e,i,u]),T=v.useMemo(()=>{if(a)return new ye(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 ye((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=n.current)==null||w.setLookAt(ps.x,ps.y,ps.z,0,0,0,!1)),b()},[a]),v.useEffect(()=>{a?_(fE):(e==null?void 0:e.node_type)==="topic"?_(dE):_(_f)},[e,_,a]),v.useEffect(()=>{y()},[l]),v.useEffect(()=>{(t||s)&&(f(!0),p(!0))},[t,s,f,p]),v.useEffect(()=>{if(e)if(!a&&o==="earth"&&(n!=null&&n.current)){const w=n.current.camera.position.distanceTo(new ye),C=hR(T,-w/2);n.current.setLookAt(C.x,C.y,C.z,0,0,0,!0)}else xr&&clearTimeout(xr),xr=setTimeout(()=>{p(!0),clearTimeout(xr)},_R),b();return()=>{xr&&clearTimeout(xr),Ei&&clearTimeout(Ei)}},[e]),nn(w=>{n.current&&(d||x(k,w.camera),m||E(T,w.camera))});const b=()=>{if(e){const w=h.position.distanceTo(k);uR(w)}y()},y=()=>{f(!1),p(!1),r(!1),Ei&&clearTimeout(Ei),Ei=setTimeout(()=>{f(!0),p(!0)},gR)},x=(w,C)=>{if(C.position.distanceTo(w){var A;(A=n==null?void 0:n.current)==null||A.setLookAt(C.position.x,C.position.y,C.position.z,w.x,w.y,w.z,!0)};return null};let ea=null;const vR=(n,{enabled:e})=>{const t=As();yR(n);const{graphRadius:s}=Ue(r=>r);return v.useEffect(()=>{e||(ea==null||ea.kill(),ea=null)},[e]),v.useEffect(()=>{!t&&n.current&&n.current.setLookAt(Mi.x,Mi.y,s+200,0,0,0,!0)},[t,s]),null},bR=({disableAnimations:n})=>{const e=v.useRef(null),{data:t,setNearbyNodeIds:s,setDisableCameraRotation:r}=Ue(h=>h),[i]=v.useState(.8),{camera:o}=Ye(),[a,c,l,u]=Ws(h=>[h.isUserDragging,h.setIsUserDragging,h.isUserScrolling,h.isUserScrollingOnHtmlPanel]);return vR(e,{enabled:!n&&!l&&!a}),v.useEffect(()=>{if(!a){const h=gg((t==null?void 0:t.nodes)||[],o);h&&s(h)}},[o,o.position,o.position.x,o.position.y,o.position.z,t==null?void 0:t.nodes,s,a]),v.useEffect(()=>{a&&r(!0)},[a,r]),M.jsx(Mp,{ref:e,boundaryEnclosesCamera:!0,dollyToCursor:!0,enabled:!u,makeDefault:!0,maxDistance:12e3,minDistance:100,onEnd:()=>c(!1),onStart:()=>c(!0),smoothTime:i})},xR=({node:n})=>{const{getNodeKeysByType:e}=Hn(r=>r),t=e(n.node_type)||"",s=n!=null&&n.properties?n==null?void 0:n.properties[t]:"";return M.jsx(wR,{children:M.jsxs(TR,{children:[M.jsx(kR,{children:M.jsx(gy,{type:n.node_type})}),s&&M.jsx(ER,{children:s})]})})},wR=ve(Fe)` width: 390px; min-height: 100px; background: ${ae.HOVER_CARD_BG}; @@ -404,19 +404,19 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho gap: 4px; pointer-events: auto; align-items: flex-start; -`,kR=ve(Fe)` +`,TR=ve(Fe)` margin-top: 0; flex-direction: column; gap: 4px; align-items: flex-start; -`,ER=ve(pp)` +`,kR=ve(fp)` font-family: Barlow; font-size: 20px; font-weight: 600; line-height: 24px; color: ${ae.white}; margin: 0; -`,CR=ve(pp)` +`,ER=ve(fp)` font-family: Barlow; font-size: 14px; font-weight: 400; @@ -431,7 +431,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho text-overflow: ellipsis; line-clamp: 3; -webkit-line-clamp: 3; -`,Za=70,SR=()=>{const n=v.useRef(null),e=v.useRef(null),t=_p();return v.useEffect(()=>{n.current&&(n.current.style.display=t?"block":"none")},[t]),v.useEffect(()=>{const s=document.getElementById("universe-canvas");let r;const i=n.current,o=e.current,a=c=>{if(!i||!o)return;c.target.tagName!=="CANVAS"?(i.style.display="none",o.style.display="none"):(s&&(s.style.cursor="none"),o.style.display="flex"),i.style.display="block";const u=i.offsetWidth,h=i.offsetHeight,d=window.innerWidth-u-10,f=window.innerHeight-h-10,m=Math.min(c.clientX+10,d),p=Math.min(c.clientY+10,f);r=requestAnimationFrame(()=>{i.style.transform=`translate(${m}px, ${p}px)`,o.style.transform=`translate(${c.clientX-Za/2}px, ${c.clientY-Za/2}px)`})};return window.addEventListener("mousemove",a),()=>{window.removeEventListener("mousemove",a),cancelAnimationFrame(r)}},[]),M.jsxs(M.Fragment,{children:[M.jsx(AR,{ref:e,children:M.jsx(Fe,{className:"inner-circle",children:M.jsx("span",{className:"inner-circle__center",children:"+"})})}),M.jsx(OR,{ref:n,children:t&&M.jsx(wR,{node:t})})]})},OR=ve(Fe)` +`,Za=70,CR=()=>{const n=v.useRef(null),e=v.useRef(null),t=gp();return v.useEffect(()=>{n.current&&(n.current.style.display=t?"block":"none")},[t]),v.useEffect(()=>{const s=document.getElementById("universe-canvas");let r;const i=n.current,o=e.current,a=c=>{if(!i||!o)return;c.target.tagName!=="CANVAS"?(i.style.display="none",o.style.display="none"):(s&&(s.style.cursor="none"),o.style.display="flex"),i.style.display="block";const u=i.offsetWidth,h=i.offsetHeight,d=window.innerWidth-u-10,f=window.innerHeight-h-10,m=Math.min(c.clientX+10,d),p=Math.min(c.clientY+10,f);r=requestAnimationFrame(()=>{i.style.transform=`translate(${m}px, ${p}px)`,o.style.transform=`translate(${c.clientX-Za/2}px, ${c.clientY-Za/2}px)`})};return window.addEventListener("mousemove",a),()=>{window.removeEventListener("mousemove",a),cancelAnimationFrame(r)}},[]),M.jsxs(M.Fragment,{children:[M.jsx(OR,{ref:e,children:M.jsx(Fe,{className:"inner-circle",children:M.jsx("span",{className:"inner-circle__center",children:"+"})})}),M.jsx(SR,{ref:n,children:t&&M.jsx(xR,{node:t})})]})},SR=ve(Fe)` position: fixed; /* Fixed position for the tooltip */ left: 0; top: 0; @@ -448,7 +448,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho text-overflow: ellipsis; display: none; /* Initially hidden */ box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2); /* Optional shadow for better visibility */ -`,AR=ve(Fe)` +`,OR=ve(Fe)` pointer-events: none; left: 0; top: 0; @@ -501,7 +501,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho margin-top: -2px; } } -`;function zn(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function yg(n,e){n.prototype=Object.create(e.prototype),n.prototype.constructor=n,n.__proto__=e}/*! +`;function zn(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function _g(n,e){n.prototype=Object.create(e.prototype),n.prototype.constructor=n,n.__proto__=e}/*! * GSAP 3.12.4 * https://gsap.com * @@ -509,7 +509,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho * 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 Bt={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},Yr={duration:.5,overwrite:!1,delay:0},yh,mt,Ke,Kt=1e8,Ne=1/Kt,Ql=Math.PI*2,RR=Ql/4,DR=0,vg=Math.sqrt,PR=Math.cos,MR=Math.sin,dt=function(e){return typeof e=="string"},Qe=function(e){return typeof e=="function"},Jn=function(e){return typeof e=="number"},vh=function(e){return typeof e>"u"},Rn=function(e){return typeof e=="object"},Rt=function(e){return e!==!1},bh=function(){return typeof window<"u"},ta=function(e){return Qe(e)||dt(e)},bg=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},gt=Array.isArray,Jl=/(?:-?\.?\d|\.)+/gi,xg=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,Sr=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,ol=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,wg=/[+-]=-?[.\d]+/,Tg=/[^,'"\[\]\s]+/gi,NR=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,Ge,Gt,eu,xh,qt={},Ka={},kg,Eg=function(e){return(Ka=ir(e,qt))&&It},wh=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)},Cg=function(e,t){return e&&(qt[e]=t)&&Ka&&(Ka[e]=t)||qt},lo=function(){return 0},IR={suppressEvents:!0,isStart:!0,kill:!1},ca={suppressEvents:!0,kill:!1},$R={suppressEvents:!0},Th={},gs=[],tu={},Sg,Ft={},al={},Vf=30,la=[],kh="",Eh=function(e){var t=e[0],s,r;if(Rn(t)||Qe(t)||(e=[e]),!(s=(t._gsap||{}).harness)){for(r=la.length;r--&&!la[r].targetTest(t););s=la[r]}for(r=e.length;r--;)e[r]&&(e[r]._gsap||(e[r]._gsap=new Kg(e[r],s)))||e.splice(r,1);return e},Ys=function(e){return e._gsap||Eh(Qt(e))[0]._gsap},Og=function(e,t,s){return(s=e[t])&&Qe(s)?e[t]():vh(s)&&e.getAttribute&&e.getAttribute(t)||s},Dt=function(e,t){return(e=e.split(",")).forEach(t)||e},st=function(e){return Math.round(e*1e5)/1e5||0},ut=function(e){return Math.round(e*1e7)/1e7||0},Mr=function(e,t){var s=t.charAt(0),r=parseFloat(t.substr(2));return e=parseFloat(e),s==="+"?e+r:s==="-"?e-r:s==="*"?e*r:e/r},FR=function(e,t){for(var s=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[s],e[s]=t),t._next?t._next._prev=t:e[r]=t,t._prev=o,t.parent=t._dp=e,t},Rc=function(e,t,s,r){s===void 0&&(s="_first"),r===void 0&&(r="_last");var i=t._prev,o=t._next;i?i._next=o:e[s]===t&&(e[s]=o),o?o._prev=i:e[r]===t&&(e[r]=i),t._next=t._prev=t.parent=null},Ss=function(e,t){e.parent&&(!t||e.parent.autoRemoveChildren)&&e.parent.remove&&e.parent.remove(e),e._act=0},Gs=function(e,t){if(e&&(!t||t._end>e._dur||t._start<0))for(var s=e;s;)s._dirty=1,s=s.parent;return e},zR=function(e){for(var t=e.parent;t&&t.parent;)t._dirty=1,t.totalDuration(),t=t.parent;return e},nu=function(e,t,s,r){return e._startAt&&(mt?e._startAt.revert(ca):e.vars.immediateRender&&!e.vars.autoRevert||e._startAt.render(t,!0,r))},VR=function n(e){return!e||e._ts&&n(e.parent)},Bf=function(e){return e._repeat?Gr(e._tTime,e=e.duration()+e._rDelay)*e:0},Gr=function(e,t){var s=Math.floor(e/=t);return e&&s===e?s-1:s},ec=function(e,t){return(e-t._start)*t._ts+(t._ts>=0?0:t._dirty?t.totalDuration():t._tDur)},Dc=function(e){return e._end=ut(e._start+(e._tDur/Math.abs(e._ts||e._rts||Ne)||0))},Pc=function(e,t){var s=e._dp;return s&&s.smoothChildTiming&&e._ts&&(e._start=ut(s._time-(e._ts>0?t/e._ts:((e._dirty?e.totalDuration():e._tDur)-t)/-e._ts)),Dc(e),s._dirty||Gs(s,e)),e},Mg=function(e,t){var s;if((t._time||!t._dur&&t._initted||t._startNe)&&t.render(s,!0)),Gs(e,t)._dp&&e._initted&&e._time>=e._dur&&e._ts){if(e._dur=0&&s.totalTime(s._tTime),s=s._dp;e._zTime=-Ne}},Tn=function(e,t,s,r){return t.parent&&Ss(t),t._start=ut((Jn(s)?s:s||e!==Ge?Yt(e,s,t):e._time)+t._delay),t._end=ut(t._start+(t.totalDuration()/Math.abs(t.timeScale())||0)),Pg(e,t,"_first","_last",e._sort?"_start":0),su(t)||(e._recent=t),r||Mg(e,t),e._ts<0&&Pc(e,e._tTime),e},Ng=function(e,t){return(qt.ScrollTrigger||wh("scrollTrigger",t))&&qt.ScrollTrigger.create(t,e)},Ig=function(e,t,s,r,i){if(Sh(e,t,i),!e._initted)return 1;if(!s&&e._pt&&!mt&&(e._dur&&e.vars.lazy!==!1||!e._dur&&e.vars.lazy)&&Sg!==jt.frame)return gs.push(e),e._lazy=[i,r],1},UR=function n(e){var t=e.parent;return t&&t._ts&&t._initted&&!t._lock&&(t.rawTime()<0||n(t))},su=function(e){var t=e.data;return t==="isFromStart"||t==="isStart"},BR=function(e,t,s,r){var i=e.ratio,o=t<0||!t&&(!e._start&&UR(e)&&!(!e._initted&&su(e))||(e._ts<0||e._dp._ts<0)&&!su(e))?0:1,a=e._rDelay,c=0,l,u,h;if(a&&e._repeat&&(c=Po(0,e._tDur,t),u=Gr(c,a),e._yoyo&&u&1&&(o=1-o),u!==Gr(e._tTime,a)&&(i=1-o,e.vars.repeatRefresh&&e._initted&&e.invalidate())),o!==i||mt||r||e._zTime===Ne||!t&&e._zTime){if(!e._initted&&Ig(e,t,r,s,c))return;for(h=e._zTime,e._zTime=t||(s?Ne:0),s||(s=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&&nu(e,t,s,!0),e._onUpdate&&!s&&zt(e,"onUpdate"),c&&e._repeat&&!s&&e.parent&&zt(e,"onRepeat"),(t>=e._tDur||t<0)&&e.ratio===o&&(o&&Ss(e,1),!s&&!mt&&(zt(e,o?"onComplete":"onReverseComplete",!0),e._prom&&e._prom()))}else e._zTime||(e._zTime=t)},WR=function(e,t,s){var r;if(s>t)for(r=e._first;r&&r._start<=s;){if(r.data==="isPause"&&r._start>t)return r;r=r._next}else for(r=e._last;r&&r._start>=s;){if(r.data==="isPause"&&r._start0&&!r&&Pc(e,e._tTime=e._tDur*a),e.parent&&Dc(e),s||Gs(e.parent,e),e},Wf=function(e){return e instanceof wt?Gs(e):Xr(e,e._dur)},qR={_start:0,endTime:lo,totalDuration:lo},Yt=function n(e,t,s){var r=e.labels,i=e._recent||qR,o=e.duration()>=Kt?i.endTime(!1):e._dur,a,c,l;return dt(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:s).totalDuration()/100:1)):a<0?(t in r||(r[t]=o),r[t]):(c=parseFloat(t.charAt(a-1)+t.substr(a+1)),l&&s&&(c=c/100*(gt(s)?s[0]:s).totalDuration()),a>1?n(e,t.substr(0,a-1),s)+c:o+c)):t==null?o:+t},$i=function(e,t,s){var r=Jn(t[1]),i=(r?2:1)+(e<2?0:1),o=t[i],a,c;if(r&&(o.duration=t[1]),o.parent=s,e){for(a=o,c=s;c&&!("immediateRender"in a);)a=c.vars.defaults||{},c=Rt(c.vars.inherit)&&c.parent;o.immediateRender=Rt(a.immediateRender),e<2?o.runBackwards=1:o.startAt=t[i-1]}return new ot(t[0],o,t[i+1])},Ps=function(e,t){return e||e===0?t(e):t},Po=function(e,t,s){return st?t:s},pt=function(e,t){return!dt(e)||!(t=NR.exec(e))?"":t[1]},HR=function(e,t,s){return Ps(s,function(r){return Po(e,t,r)})},ru=[].slice,$g=function(e,t){return e&&Rn(e)&&"length"in e&&(!t&&!e.length||e.length-1 in e&&Rn(e[0]))&&!e.nodeType&&e!==Gt},YR=function(e,t,s){return s===void 0&&(s=[]),e.forEach(function(r){var i;return dt(r)&&!t||$g(r,1)?(i=s).push.apply(i,Qt(r)):s.push(r)})||s},Qt=function(e,t,s){return Ke&&!t&&Ke.selector?Ke.selector(e):dt(e)&&!s&&(eu||!Zr())?ru.call((t||xh).querySelectorAll(e),0):gt(e)?YR(e,s):$g(e)?ru.call(e,0):e?[e]:[]},iu=function(e){return e=Qt(e)[0]||co("Invalid scope")||{},function(t){var s=e.current||e.nativeElement||e;return Qt(t,s.querySelectorAll?s:s===e?co("Invalid scope")||xh.createElement("div"):e)}},Fg=function(e){return e.sort(function(){return .5-Math.random()})},Lg=function(e){if(Qe(e))return e;var t=Rn(e)?e:{each:e},s=Xs(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 dt(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],_,k,T,b,y,x,E,w,C;if(!g){if(C=t.grid==="auto"?0:(t.grid||[1,Kt])[1],!C){for(E=-Kt;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=pt(t.amount||t.each)||0,s=s&&p<0?Gg(s):s}return p=(g[d]-g.min)/g.max||0,ut(g.b+(s?s(p):p)*g.v)+g.u}},ou=function(e){var t=Math.pow(10,((e+"").split(".")[1]||"").length);return function(s){var r=ut(Math.round(parseFloat(s)/e)*e*t);return(r-r%1)/t+(Jn(s)?0:pt(s))}},jg=function(e,t){var s=gt(e),r,i;return!s&&Rn(e)&&(r=s=e.radius||Kt,e.values?(e=Qt(e.values),(i=!Jn(e[0]))&&(r*=r)):e=ou(e.increment)),Ps(t,s?Qe(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=Kt,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,s="",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?Tg:Jl),s+=e.substr(t,r-t)+zg(a?i:+i[0],a?0:+i[1],+i[2]||1e-5),t=o+1;return s+e.substr(t,e.length-t)},Ug=function(e,t,s,r,i){var o=t-e,a=r-s;return Ps(i,function(c){return s+((c-e)/o*a||0)})},JR=function n(e,t,s,r){var i=isNaN(e+t)?0:function(f){return(1-f)*e+f*t};if(!i){var o=dt(e),a={},c,l,u,h,d;if(s===!0&&(r=1)&&(s=null),o)e={p:e},t={p:t};else if(gt(e)&&!gt(t)){for(u=[],h=e.length,d=h-2,l=1;l(a=Math.abs(a))&&(c=o,i=a);return c},zt=function(e,t,s){var r=e.vars,i=r[t],o=Ke,a=e._ctx,c,l,u;if(i)return c=r[t+"Params"],l=r.callbackScope||e,s&&gs.length&&Qa(),a&&(Ke=a),u=c?i.apply(l,c):i.call(l),Ke=o,u},Si=function(e){return Ss(e),e.scrollTrigger&&e.scrollTrigger.kill(!!mt),e.progress()<1&&zt(e,"onInterrupt"),e},Or,Bg=[],Wg=function(e){if(bh()&&e){e=!e.name&&e.default||e;var t=e.name,s=Qe(e),r=t&&!s&&e.init?function(){this._props=[]}:e,i={init:lo,render:Rh,add:Ch,kill:mD,modifier:pD,rawVars:0},o={targetTest:0,get:0,getSetter:Ah,aliases:{},register:0};if(Zr(),e!==r){if(Ft[t])return;tn(r,tn(Ja(e,i),o)),ir(r.prototype,ir(i,Ja(e,o))),Ft[r.prop=t]=r,e.targetTest&&(la.push(r),Th[t]=1),t=(t==="css"?"CSS":t.charAt(0).toUpperCase()+t.substr(1))+"Plugin"}Cg(t,r),e.register&&e.register(It,r,Pt)}else e&&Bg.push(e)},Me=255,Oi={aqua:[0,Me,Me],lime:[0,Me,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,Me],navy:[0,0,128],white:[Me,Me,Me],olive:[128,128,0],yellow:[Me,Me,0],orange:[Me,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[Me,0,0],pink:[Me,192,203],cyan:[0,Me,Me],transparent:[Me,Me,Me,0]},cl=function(e,t,s){return e+=e<0?1:e>1?-1:0,(e*6<1?t+(s-t)*e*6:e<.5?s:e*3<2?t+(s-t)*(2/3-e)*6:t)*Me+.5|0},qg=function(e,t,s){var r=e?Jn(e)?[e>>16,e>>8&Me,e&Me]: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&Me,r&Me,parseInt(e.substr(7),16)/255];e=parseInt(e.substr(1),16),r=[e>>16,e>>8&Me,e&Me]}else if(e.substr(0,3)==="hsl"){if(r=m=e.match(Jl),!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]=cl(c+1/3,i,o),r[1]=cl(c,i,o),r[2]=cl(c-1/3,i,o);else if(~e.indexOf("="))return r=e.match(xg),s&&r.length<4&&(r[3]=1),r}else r=e.match(Jl)||Oi.transparent;r=r.map(Number)}return t&&!m&&(i=r[0]/Me,o=r[1]/Me,a=r[2]/Me,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&&(s+=_-t),r+=_,y=r-s,T=y-o,(T>0||k)&&(x=++h.frame,d=y-h.time*1e3,h.time=y=y/1e3,o+=T+(T>=i?4:i-T),b=1),k||(c=l(p)),b)for(f=0;f=_&&f--},_listeners:a},h}(),Zr=function(){return!ho&&jt.wake()},we={},tD=/^[\d.\-M][\d.\-,\s]/,nD=/["']/g,sD=function(e){for(var t={},s=e.substr(1,e.length-3).split(":"),r=s[0],i=1,o=s.length,a,c,l;i1&&s.config?s.config.apply(null,~e.indexOf("{")?[sD(t[1])]:rD(e).split(",").map(Rg)):we._CE&&tD.test(e)?we._CE("",e):s},Gg=function(e){return function(t){return 1-e(1-t)}},Xg=function n(e,t){for(var s=e._first,r;s;)s instanceof wt?n(s,t):s.vars.yoyoEase&&(!s._yoyo||!s._repeat)&&s._yoyo!==t&&(s.timeline?n(s.timeline,t):(r=s._ease,s._ease=s._yEase,s._yEase=r,s._yoyo=t)),s=s._next},Xs=function(e,t){return e&&(Qe(e)?e:we[e]||iD(e))||t},hr=function(e,t,s,r){s===void 0&&(s=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:s,easeInOut:r},o;return Dt(e,function(a){we[a]=qt[a]=i,we[o=a.toLowerCase()]=s;for(var c in i)we[o+(c==="easeIn"?".in":c==="easeOut"?".out":".inOut")]=we[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}},ll=function n(e,t,s){var r=t>=1?t:1,i=(s||(e?.3:.45))/(t<1?t:1),o=i/Ql*(Math.asin(1/r)||0),a=function(u){return u===1?1:r*Math.pow(2,-10*u)*MR((u-o)*i)+1},c=e==="out"?a:e==="in"?function(l){return 1-a(1-l)}:Zg(a);return i=Ql/i,c.config=function(l,u){return n(e,l,u)},c},ul=function n(e,t){t===void 0&&(t=1.70158);var s=function(o){return o?--o*o*((t+1)*o+t)+1:0},r=e==="out"?s:e==="in"?function(i){return 1-s(1-i)}:Zg(s);return r.config=function(i){return n(e,i)},r};Dt("Linear,Quad,Cubic,Quart,Quint,Strong",function(n,e){var t=e<5?e+1:e;hr(n+",Power"+(t-1),e?function(s){return Math.pow(s,t)}:function(s){return s},function(s){return 1-Math.pow(1-s,t)},function(s){return s<.5?Math.pow(s*2,t)/2:1-Math.pow((1-s)*2,t)/2})});we.Linear.easeNone=we.none=we.Linear.easeIn;hr("Elastic",ll("in"),ll("out"),ll());(function(n,e){var t=1/e,s=2*t,r=2.5*t,i=function(a){return a0?s+(s+this._rDelay)*this._repeat:s):this.totalDuration()&&this._dur},e.totalDuration=function(s){return arguments.length?(this._dirty=0,Xr(this,this._repeat<0?s:(s-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(s,r){if(Zr(),!arguments.length)return this._tTime;var i=this._dp;if(i&&i.smoothChildTiming&&this._ts){for(Pc(this,s),!i._dp||i.parent||Mg(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&&s0||!this._tDur&&!s)&&Tn(this._dp,this,this._start-this._delay)}return(this._tTime!==s||!this._dur&&!r||this._initted&&Math.abs(this._zTime)===Ne||!s&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=s),Ag(this,s,r)),this},e.time=function(s,r){return arguments.length?this.totalTime(Math.min(this.totalDuration(),s+Bf(this))%(this._dur+this._rDelay)||(s?this._dur:0),r):this._time},e.totalProgress=function(s,r){return arguments.length?this.totalTime(this.totalDuration()*s,r):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>0?1:0},e.progress=function(s,r){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-s:s)+Bf(this),r):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},e.iteration=function(s,r){var i=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(s-1)*i,r):this._repeat?Gr(this._tTime,i)+1:1},e.timeScale=function(s,r){if(!arguments.length)return this._rts===-Ne?0:this._rts;if(this._rts===s)return this;var i=this.parent&&this._ts?ec(this.parent._time,this):this._tTime;return this._rts=+s||0,this._ts=this._ps||s===-Ne?0:this._rts,this.totalTime(Po(-Math.abs(this._delay),this._tDur,i),r!==!1),Dc(this),zR(this)},e.paused=function(s){return arguments.length?(this._ps!==s&&(this._ps=s,s?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(Zr(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==Ne&&(this._tTime-=Ne)))),this):this._ps},e.startTime=function(s){if(arguments.length){this._start=s;var r=this.parent||this._dp;return r&&(r._sort||!this.parent)&&Tn(r,this,s-this._delay),this}return this._start},e.endTime=function(s){return this._start+(Rt(s)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},e.rawTime=function(s){var r=this.parent||this._dp;return r?s&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?ec(r.rawTime(s),this):this._tTime:this._tTime},e.revert=function(s){s===void 0&&(s=$R);var r=mt;return mt=s,(this._initted||this._startAt)&&(this.timeline&&this.timeline.revert(s),this.totalTime(-.01,s.suppressEvents)),this.data!=="nested"&&s.kill!==!1&&this.kill(),mt=r,this},e.globalTime=function(s){for(var r=this,i=arguments.length?s:r.rawTime();r;)i=r._start+i/(Math.abs(r._ts)||1),r=r._dp;return!this.parent&&this._sat?this._sat.globalTime(s):i},e.repeat=function(s){return arguments.length?(this._repeat=s===1/0?-2:s,Wf(this)):this._repeat===-2?1/0:this._repeat},e.repeatDelay=function(s){if(arguments.length){var r=this._time;return this._rDelay=s,Wf(this),r?this.time(r):this}return this._rDelay},e.yoyo=function(s){return arguments.length?(this._yoyo=s,this):this._yoyo},e.seek=function(s,r){return this.totalTime(Yt(this,s),Rt(r))},e.restart=function(s,r){return this.play().totalTime(s?-this._delay:0,Rt(r))},e.play=function(s,r){return s!=null&&this.seek(s,r),this.reversed(!1).paused(!1)},e.reverse=function(s,r){return s!=null&&this.seek(s||this.totalDuration(),r),this.reversed(!0).paused(!1)},e.pause=function(s,r){return s!=null&&this.seek(s,r),this.paused(!0)},e.resume=function(){return this.paused(!1)},e.reversed=function(s){return arguments.length?(!!s!==this.reversed()&&this.timeScale(-this._rts||(s?-Ne:0)),this):this._rts<0},e.invalidate=function(){return this._initted=this._act=0,this._zTime=-Ne,this},e.isActive=function(){var s=this.parent||this._dp,r=this._start,i;return!!(!s||this._ts&&this._initted&&s.isActive()&&(i=s.rawTime(!0))>=r&&i1?(r?(o[s]=r,i&&(o[s+"Params"]=i),s==="onUpdate"&&(this._onUpdate=r)):delete o[s],this):o[s]},e.then=function(s){var r=this;return new Promise(function(i){var o=Qe(s)?s:Dg,a=function(){var l=r.then;r.then=null,Qe(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)},n}();tn(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:-Ne,_prom:0,_ps:!1,_rts:1});var wt=function(n){yg(e,n);function e(s,r){var i;return s===void 0&&(s={}),i=n.call(this,s)||this,i.labels={},i.smoothChildTiming=!!s.smoothChildTiming,i.autoRemoveChildren=!!s.autoRemoveChildren,i._sort=Rt(s.sortChildren),Ge&&Tn(s.parent||Ge,zn(i),r),s.reversed&&i.reverse(),s.paused&&i.paused(!0),s.scrollTrigger&&Ng(zn(i),s.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 ot(r,i,Yt(this,o),1),this},t.call=function(r,i,o){return Tn(this,ot.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 ot(r,o,Yt(this,c)),this},t.staggerFrom=function(r,i,o,a,c,l,u){return o.runBackwards=1,Ii(o).immediateRender=Rt(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=Rt(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:ut(r),h=this._zTime<0!=r<0&&(this._initted||!l),d,f,m,p,g,_,k,T,b,y,x,E;if(this!==Ge&&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,b=this._start,T=this._ts,_=!T,h&&(l||(a=this._zTime),(r||!i)&&(this._zTime=r)),this._repeat){if(x=this._yoyo,g=l+this._rDelay,this._repeat<-1&&r<0)return this.totalTime(g*100+r,i,o);if(d=ut(u%g),u===c?(p=this._repeat,d=l):(p=~~(u/g),p&&p===u/g&&(d=l,p--),d>l&&(d=l)),y=Gr(this._tTime,g),!a&&this._tTime&&y!==p&&this._tTime-y*g-this._dur<=0&&(y=p),x&&p&1&&(d=l-d,E=1),p!==y&&!this._lock){var w=x&&y&1,C=w===(x&&p&1);if(p=a&&r>=0)for(f=this._first;f;){if(m=f._next,(f._act||d>=f._start)&&f._ts&&k!==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&&!_){k=0,m&&(u+=this._zTime=-Ne);break}}f=m}else{f=this._last;for(var A=r<0?r:d;f;){if(m=f._prev,(f._act||A<=f._end)&&f._ts&&k!==f){if(f.parent!==this)return this.render(r,i,o);if(f.render(f._ts>0?(A-f._start)*f._ts:(f._dirty?f.totalDuration():f._tDur)+(A-f._start)*f._ts,i,o||mt&&(f._initted||f._startAt)),d!==this._time||!this._ts&&!_){k=0,m&&(u+=this._zTime=A?-Ne:Ne);break}}f=m}}if(k&&!i&&(this.pause(),k.render(d>=a?0:-Ne)._zTime=d>=a?1:-1,this._ts))return this._start=b,Dc(this),this.render(r,i,o);this._onUpdate&&!i&&zt(this,"onUpdate",!0),(u===c&&this._tTime>=this.totalDuration()||!u&&a)&&(b===this._start||Math.abs(T)!==Math.abs(this._ts))&&(this._lock||((r||!l)&&(u===c&&this._ts>0||!u&&this._ts<0)&&Ss(this,1),!i&&!(r<0&&!a)&&(u||a||!c)&&(zt(this,u===c&&r>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(u0)&&this._prom())))}return this},t.add=function(r,i){var o=this;if(Jn(i)||(i=Yt(this,i,r)),!(r instanceof fo)){if(gt(r))return r.forEach(function(a){return o.add(a,i)}),this;if(dt(r))return this.addLabel(r,i);if(Qe(r))r=ot.delayedCall(0,r);else return this}return this!==r?Tn(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=-Kt);for(var c=[],l=this._first;l;)l._start>=a&&(l instanceof ot?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 dt(r)?this.removeLabel(r):Qe(r)?this.killTweensOf(r):(Rc(this,r),r===this._recent&&(this._recent=this._last),Gs(this))},t.totalTime=function(r,i){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=ut(jt.time-(this._ts>0?r/this._ts:(this.totalDuration()-r)/-this._ts))),n.prototype.totalTime.call(this,r,i),this._forcing=0,this):this._tTime},t.addLabel=function(r,i){return this.labels[r]=Yt(this,i),this},t.removeLabel=function(r){return delete this.labels[r],this},t.addPause=function(r,i,o){var a=ot.delayedCall(0,i||lo,o);return a.data="isPause",this._hasPause=1,Tn(this,a,Yt(this,r))},t.removePause=function(r){var i=this._first;for(r=Yt(this,r);i;)i._start===r&&i.data==="isPause"&&Ss(i),i=i._next},t.killTweensOf=function(r,i,o){for(var a=this.getTweensOf(r,o),c=a.length;c--;)hs!==a[c]&&a[c].kill(r,i);return this},t.getTweensOf=function(r,i){for(var o=[],a=Qt(r),c=this._first,l=Jn(i),u;c;)c instanceof ot?FR(c._targets,a)&&(l?(!hs||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=Yt(o,r),c=i,l=c.startAt,u=c.onStart,h=c.onStartParams,d=c.immediateRender,f,m=ot.to(o,tn({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())||Ne,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&&Xr(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,tn({startAt:{time:Yt(this,r)}},o))},t.recent=function(){return this._recent},t.nextLabel=function(r){return r===void 0&&(r=this._time),qf(this,Yt(this,r))},t.previousLabel=function(r){return r===void 0&&(r=this._time),qf(this,Yt(this,r),1)},t.currentLabel=function(r){return arguments.length?this.seek(r,!0):this.previousLabel(this._time+Ne)},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 Gs(this)},t.invalidate=function(r){var i=this._first;for(this._lock=0;i;)i.invalidate(r),i=i._next;return n.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={}),Gs(this)},t.totalDuration=function(r){var i=0,o=this,a=o._last,c=Kt,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,Tn(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;Xr(o,o===Ge&&o._time>i?o._time:i,1,1),o._dirty=0}return o._tDur},e.updateRoot=function(r){if(Ge._ts&&(Ag(Ge,ec(r,Ge)),Sg=jt.frame),jt.frame>=Vf){Vf+=Bt.autoSleep||120;var i=Ge._first;if((!i||!i._ts)&&Bt.autoSleep&&jt._listeners.length<2){for(;i&&!i._ts;)i=i._next;i||jt.sleep()}}},e}(fo);tn(wt.prototype,{_lock:0,_hasPause:0,_forcing:0});var oD=function(e,t,s,r,i,o,a){var c=new Pt(this._pt,e,t,0,1,s_,null,i),l=0,u=0,h,d,f,m,p,g,_,k;for(c.b=s,c.e=r,s+="",r+="",(_=~r.indexOf("random("))&&(r=uo(r)),o&&(k=[s,r],o(k,e,t),s=k[0],r=k[1]),d=s.match(ol)||[];h=ol.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)==="="?Mr(g,m)-g:parseFloat(m)-g,m:f&&f<4?Math.round:0},l=ol.lastIndex);return c.c=l")}),b.duration();else{x={};for(w in m)w==="ease"||w==="easeEach"||uD(w,m[w],x,m.easeEach);for(w in x)for(L=x[w].sort(function(V,U){return V.t-U.t}),O=0,y=0;yc-Ne&&!u?c:rl&&(d=l)),_=this._yoyo&&m&1,_&&(b=this._yEase,d=l-d),g=Gr(this._tTime,p),d===a&&!o&&this._initted&&m===g)return this._tTime=h,this;m!==g&&(T&&this._yEase&&Xg(T,_),this.vars.repeatRefresh&&!_&&!this._lock&&this._time!==l&&this._initted&&(this._lock=o=1,this.render(ut(p*m),!0).invalidate()._lock=0))}if(!this._initted){if(Ig(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=k=(b||this._ease)(d/l),this._from&&(this.ratio=k=1-k),d&&!a&&!i&&!m&&(zt(this,"onStart"),this._tTime!==h))return this;for(f=this._pt;f;)f.r(k,f.d),f=f._next;T&&T.render(r<0?r:!d&&_?-Ne:T._dur*T._ease(d/this._dur),i,o)||this._startAt&&(this._zTime=r),this._onUpdate&&!i&&(u&&nu(this,r,i,o),zt(this,"onUpdate")),this._repeat&&m!==g&&this.vars.onRepeat&&!i&&this.parent&&zt(this,"onRepeat"),(h===this._tDur||!h)&&this._tTime===h&&(u&&!this._onUpdate&&nu(this,r,!0,!0),(r||!l)&&(h===this._tDur&&this._ts>0||!h&&this._ts<0)&&Ss(this,1),!i&&!(u&&!a)&&(h||a||_)&&(zt(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),n.prototype.invalidate.call(this,r)},t.resetTo=function(r,i,o,a,c){ho||jt.wake(),this._ts||this.play();var l=Math.min(this._dur,(this._dp._time-this._start)*this._ts),u;return this._initted||Sh(this,l),u=this._ease(l/this._dur),cD(this,r,i,o,a,u,l,c)?this.resetTo(r,i,o,a,1):(Pc(this,0),this.parent||Pg(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,hs&&hs.vars.overwrite!==!0)._first||Si(this),this.parent&&o!==this.timeline.totalDuration()&&Xr(this,this._dur*this.timeline._tDur/o,0,1),this}var a=this._targets,c=r?Qt(r):a,l=this._ptLookup,u=this._pt,h,d,f,m,p,g,_;if((!i||i==="all")&&jR(a,c))return i==="all"&&(this._pt=0),Si(this);for(h=this._op=this._op||[],i!=="all"&&(dt(i)&&(p={},Dt(i,function(k){return p[k]=1}),i=p),i=lD(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)&&Rc(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 Ge.killTweensOf(r,i,o)},e}(fo);tn(ot.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0});Dt("staggerTo,staggerFrom,staggerFromTo",function(n){ot[n]=function(){var e=new wt,t=ru.call(arguments,0);return t.splice(n==="staggerFromTo"?5:4,0,0),e[n].apply(e,t)}});var Oh=function(e,t,s){return e[t]=s},t_=function(e,t,s){return e[t](s)},hD=function(e,t,s,r){return e[t](r.fp,s)},dD=function(e,t,s){return e.setAttribute(t,s)},Ah=function(e,t){return Qe(e[t])?t_:vh(e[t])&&e.setAttribute?dD:Oh},n_=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e6)/1e6,t)},fD=function(e,t){return t.set(t.t,t.p,!!(t.s+t.c*e),t)},s_=function(e,t){var s=t._pt,r="";if(!e&&t.b)r=t.b;else if(e===1&&t.e)r=t.e;else{for(;s;)r=s.p+(s.m?s.m(s.s+s.c*e):Math.round((s.s+s.c*e)*1e4)/1e4)+r,s=s._next;r+=t.c}t.set(t.t,t.p,r,t)},Rh=function(e,t){for(var s=t._pt;s;)s.r(e,s.d),s=s._next},pD=function(e,t,s,r){for(var i=this._pt,o;i;)o=i._next,i.p===r&&i.modifier(e,t,s),i=o},mD=function(e){for(var t=this._pt,s,r;t;)r=t._next,t.p===e&&!t.op||t.op===e?Rc(this,t,"_pt"):t.dep||(s=1),t=r;return!s},gD=function(e,t,s,r){r.mSet(e,t,r.m.call(r.tween,s,r.mt),r)},r_=function(e){for(var t=e._pt,s,r,i,o;t;){for(s=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=s}e._pt=i},Pt=function(){function n(t,s,r,i,o,a,c,l,u){this.t=s,this.s=i,this.c=o,this.p=r,this.r=a||n_,this.d=c||this,this.set=l||Oh,this.pr=u||0,this._next=t,t&&(t._prev=this)}var e=n.prototype;return e.modifier=function(s,r,i){this.mSet=this.mSet||this.set,this.set=gD,this.m=s,this.mt=i,this.tween=r},n}();Dt(kh+"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(n){return Th[n]=1});qt.TweenMax=qt.TweenLite=ot;qt.TimelineLite=qt.TimelineMax=wt;Ge=new wt({sortChildren:!1,defaults:Yr,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0});Bt.stringFilter=Yg;var Zs=[],ua={},_D=[],Yf=0,yD=0,hl=function(e){return(ua[e]||_D).map(function(t){return t()})},cu=function(){var e=Date.now(),t=[];e-Yf>2&&(hl("matchMediaInit"),Zs.forEach(function(s){var r=s.queries,i=s.conditions,o,a,c,l;for(a in r)o=Gt.matchMedia(r[a]).matches,o&&(c=1),o!==i[a]&&(i[a]=o,l=1);l&&(s.revert(),c&&t.push(s))}),hl("matchMediaRevert"),t.forEach(function(s){return s.onMatch(s,function(r){return s.add(null,r)})}),Yf=e,hl("matchMedia"))},i_=function(){function n(t,s){this.selector=s&&iu(s),this.data=[],this._r=[],this.isReverted=!1,this.id=yD++,t&&this.add(t)}var e=n.prototype;return e.add=function(s,r,i){Qe(s)&&(i=r,r=s,s=Qe);var o=this,a=function(){var l=Ke,u=o.selector,h;return l&&l!==o&&l.data.push(o),i&&(o.selector=iu(i)),Ke=o,h=r.apply(o,arguments),Qe(h)&&o._r.push(h),Ke=l,o.selector=u,o.isReverted=!1,h};return o.last=a,s===Qe?a(o,function(c){return o.add(null,c)}):s?o[s]=a:a},e.ignore=function(s){var r=Ke;Ke=null,s(this),Ke=r},e.getTweens=function(){var s=[];return this.data.forEach(function(r){return r instanceof n?s.push.apply(s,r.getTweens()):r instanceof ot&&!(r.parent&&r.parent.data==="nested")&&s.push(r)}),s},e.clear=function(){this._r.length=this.data.length=0},e.kill=function(s,r){var i=this;if(s?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(s)}),c=i.data.length;c--;)l=i.data[c],l instanceof wt?l.data!=="nested"&&(l.scrollTrigger&&l.scrollTrigger.revert(),l.kill()):!(l instanceof ot)&&l.revert&&l.revert(s);i._r.forEach(function(u){return u(s,i)}),i.isReverted=!0}():this.data.forEach(function(a){return a.kill&&a.kill()}),this.clear(),r)for(var o=Zs.length;o--;)Zs[o].id===this.id&&Zs.splice(o,1)},e.revert=function(s){this.kill(s||{})},n}(),vD=function(){function n(t){this.contexts=[],this.scope=t}var e=n.prototype;return e.add=function(s,r,i){Rn(s)||(s={matches:s});var o=new i_(0,i||this.scope),a=o.conditions={},c,l,u;Ke&&!o.selector&&(o.selector=Ke.selector),this.contexts.push(o),r=o.add("onMatch",r),o.queries=s;for(l in s)l==="all"?u=1:(c=Gt.matchMedia(s[l]),c&&(Zs.indexOf(o)<0&&Zs.push(o),(a[l]=c.matches)&&(u=1),c.addListener?c.addListener(cu):c.addEventListener("change",cu)));return u&&r(o,function(h){return o.add(null,h)}),this},e.revert=function(s){this.kill(s||{})},e.kill=function(s){this.contexts.forEach(function(r){return r.kill(s,!0)})},n}(),tc={registerPlugin:function(){for(var e=arguments.length,t=new Array(e),s=0;s1){var r=e.map(function(u){return It.quickSetter(u,t,s)}),i=r.length;return function(u){for(var h=i;h--;)r[h](u)}}e=e[0]||{};var o=Ft[t],a=Ys(e),c=a.harness&&(a.harness.aliases||{})[t]||t,l=o?function(u){var h=new o;Or._pt=0,h.init(e,s?u+s:u,Or,0,[e]),h.render(1,h),Or._pt&&Rh(1,Or)}:a.set(e,c);return o?l:function(u){return l(e,c,s?u+s:u,a,1)}},quickTo:function(e,t,s){var r,i=It.to(e,ir((r={},r[t]="+=0.1",r.paused=!0,r),s||{})),o=function(c,l,u){return i.resetTo(t,c,l,u)};return o.tween=i,o},isTweening:function(e){return Ge.getTweensOf(e,!0).length>0},defaults:function(e){return e&&e.ease&&(e.ease=Xs(e.ease,Yr.ease)),Uf(Yr,e||{})},config:function(e){return Uf(Bt,e||{})},registerEffect:function(e){var t=e.name,s=e.effect,r=e.plugins,i=e.defaults,o=e.extendTimeline;(r||"").split(",").forEach(function(a){return a&&!Ft[a]&&!qt[a]&&co(t+" effect requires "+a+" plugin.")}),al[t]=function(a,c,l){return s(Qt(a),tn(c||{},i),l)},o&&(wt.prototype[t]=function(a,c,l){return this.add(al[t](a,Rn(c)?c:(l=c)&&{},this),l)})},registerEase:function(e,t){we[e]=Xs(t)},parseEase:function(e,t){return arguments.length?Xs(e,t):we},getById:function(e){return Ge.getById(e)},exportRoot:function(e,t){e===void 0&&(e={});var s=new wt(e),r,i;for(s.smoothChildTiming=Rt(e.smoothChildTiming),Ge.remove(s),s._dp=0,s._time=s._tTime=Ge._time,r=Ge._first;r;)i=r._next,(t||!(!r._dur&&r instanceof ot&&r.vars.onComplete===r._targets[0]))&&Tn(s,r,r._start-r._delay),r=i;return Tn(Ge,s,0),s},context:function(e,t){return e?new i_(e,t):Ke},matchMedia:function(e){return new vD(e)},matchMediaRefresh:function(){return Zs.forEach(function(e){var t=e.conditions,s,r;for(r in t)t[r]&&(t[r]=!1,s=1);s&&e.revert()})||cu()},addEventListener:function(e,t){var s=ua[e]||(ua[e]=[]);~s.indexOf(t)||s.push(t)},removeEventListener:function(e,t){var s=ua[e],r=s&&s.indexOf(t);r>=0&&s.splice(r,1)},utils:{wrap:KR,wrapYoyo:QR,distribute:Lg,random:zg,snap:jg,normalize:ZR,getUnit:pt,clamp:HR,splitColor:qg,toArray:Qt,selector:iu,mapRange:Ug,pipe:GR,unitize:XR,interpolate:JR,shuffle:Fg},install:Eg,effects:al,ticker:jt,updateRoot:wt.updateRoot,plugins:Ft,globalTimeline:Ge,core:{PropTween:Pt,globals:Cg,Tween:ot,Timeline:wt,Animation:fo,getCache:Ys,_removeLinkedListItem:Rc,reverting:function(){return mt},context:function(e){return e&&Ke&&(Ke.data.push(e),e._ctx=Ke),Ke},suppressOverwrites:function(e){return yh=e}}};Dt("to,from,fromTo,delayedCall,set,killTweensOf",function(n){return tc[n]=ot[n]});jt.add(wt.updateRoot);Or=tc.to({},{duration:0});var bD=function(e,t){for(var s=e._pt;s&&s.p!==t&&s.op!==t&&s.fp!==t;)s=s._next;return s},xD=function(e,t){var s=e._targets,r,i,o;for(r in t)for(i=s.length;i--;)o=e._ptLookup[i][r],o&&(o=o.d)&&(o._pt&&(o=bD(o,r)),o&&o.modifier&&o.modifier(t[r],e,s[i],r))},dl=function(e,t){return{name:e,rawVars:1,init:function(r,i,o){o._onInit=function(a){var c,l;if(dt(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}xD(a,i)}}}},It=tc.registerPlugin({name:"attr",init:function(e,t,s,r,i){var o,a,c;this.tween=s;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 s=t._pt;s;)mt?s.set(s.t,s.p,s.b,s):s.r(e,s.d),s=s._next}},{name:"endArray",init:function(e,t){for(var s=t.length;s--;)this.add(e,s,e[s]||0,t[s],0,0,0,0,0,1)}},dl("roundProps",ou),dl("modifiers"),dl("snap",jg))||tc;ot.version=wt.version=It.version="3.12.4";kg=1;bh()&&Zr();we.Power0;we.Power1;we.Power2;we.Power3;we.Power4;we.Linear;we.Quad;we.Cubic;we.Quart;we.Quint;we.Strong;we.Elastic;we.Back;we.SteppedEase;we.Bounce;we.Sine;we.Expo;we.Circ;/*! +*/var Bt={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},Yr={duration:.5,overwrite:!1,delay:0},yh,mt,Ke,Kt=1e8,Ne=1/Kt,Ql=Math.PI*2,AR=Ql/4,RR=0,yg=Math.sqrt,DR=Math.cos,PR=Math.sin,dt=function(e){return typeof e=="string"},Qe=function(e){return typeof e=="function"},Jn=function(e){return typeof e=="number"},vh=function(e){return typeof e>"u"},Rn=function(e){return typeof e=="object"},Rt=function(e){return e!==!1},bh=function(){return typeof window<"u"},ta=function(e){return Qe(e)||dt(e)},vg=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},gt=Array.isArray,Jl=/(?:-?\.?\d|\.)+/gi,bg=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,Sr=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,ol=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,xg=/[+-]=-?[.\d]+/,wg=/[^,'"\[\]\s]+/gi,MR=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,Ge,Gt,eu,xh,qt={},Ka={},Tg,kg=function(e){return(Ka=ir(e,qt))&&It},wh=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)},Eg=function(e,t){return e&&(qt[e]=t)&&Ka&&(Ka[e]=t)||qt},lo=function(){return 0},NR={suppressEvents:!0,isStart:!0,kill:!1},ca={suppressEvents:!0,kill:!1},IR={suppressEvents:!0},Th={},gs=[],tu={},Cg,Ft={},al={},Vf=30,la=[],kh="",Eh=function(e){var t=e[0],s,r;if(Rn(t)||Qe(t)||(e=[e]),!(s=(t._gsap||{}).harness)){for(r=la.length;r--&&!la[r].targetTest(t););s=la[r]}for(r=e.length;r--;)e[r]&&(e[r]._gsap||(e[r]._gsap=new Zg(e[r],s)))||e.splice(r,1);return e},Ys=function(e){return e._gsap||Eh(Qt(e))[0]._gsap},Sg=function(e,t,s){return(s=e[t])&&Qe(s)?e[t]():vh(s)&&e.getAttribute&&e.getAttribute(t)||s},Dt=function(e,t){return(e=e.split(",")).forEach(t)||e},st=function(e){return Math.round(e*1e5)/1e5||0},ut=function(e){return Math.round(e*1e7)/1e7||0},Mr=function(e,t){var s=t.charAt(0),r=parseFloat(t.substr(2));return e=parseFloat(e),s==="+"?e+r:s==="-"?e-r:s==="*"?e*r:e/r},$R=function(e,t){for(var s=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[s],e[s]=t),t._next?t._next._prev=t:e[r]=t,t._prev=o,t.parent=t._dp=e,t},Rc=function(e,t,s,r){s===void 0&&(s="_first"),r===void 0&&(r="_last");var i=t._prev,o=t._next;i?i._next=o:e[s]===t&&(e[s]=o),o?o._prev=i:e[r]===t&&(e[r]=i),t._next=t._prev=t.parent=null},Ss=function(e,t){e.parent&&(!t||e.parent.autoRemoveChildren)&&e.parent.remove&&e.parent.remove(e),e._act=0},Gs=function(e,t){if(e&&(!t||t._end>e._dur||t._start<0))for(var s=e;s;)s._dirty=1,s=s.parent;return e},jR=function(e){for(var t=e.parent;t&&t.parent;)t._dirty=1,t.totalDuration(),t=t.parent;return e},nu=function(e,t,s,r){return e._startAt&&(mt?e._startAt.revert(ca):e.vars.immediateRender&&!e.vars.autoRevert||e._startAt.render(t,!0,r))},zR=function n(e){return!e||e._ts&&n(e.parent)},Bf=function(e){return e._repeat?Gr(e._tTime,e=e.duration()+e._rDelay)*e:0},Gr=function(e,t){var s=Math.floor(e/=t);return e&&s===e?s-1:s},ec=function(e,t){return(e-t._start)*t._ts+(t._ts>=0?0:t._dirty?t.totalDuration():t._tDur)},Dc=function(e){return e._end=ut(e._start+(e._tDur/Math.abs(e._ts||e._rts||Ne)||0))},Pc=function(e,t){var s=e._dp;return s&&s.smoothChildTiming&&e._ts&&(e._start=ut(s._time-(e._ts>0?t/e._ts:((e._dirty?e.totalDuration():e._tDur)-t)/-e._ts)),Dc(e),s._dirty||Gs(s,e)),e},Pg=function(e,t){var s;if((t._time||!t._dur&&t._initted||t._startNe)&&t.render(s,!0)),Gs(e,t)._dp&&e._initted&&e._time>=e._dur&&e._ts){if(e._dur=0&&s.totalTime(s._tTime),s=s._dp;e._zTime=-Ne}},Tn=function(e,t,s,r){return t.parent&&Ss(t),t._start=ut((Jn(s)?s:s||e!==Ge?Yt(e,s,t):e._time)+t._delay),t._end=ut(t._start+(t.totalDuration()/Math.abs(t.timeScale())||0)),Dg(e,t,"_first","_last",e._sort?"_start":0),su(t)||(e._recent=t),r||Pg(e,t),e._ts<0&&Pc(e,e._tTime),e},Mg=function(e,t){return(qt.ScrollTrigger||wh("scrollTrigger",t))&&qt.ScrollTrigger.create(t,e)},Ng=function(e,t,s,r,i){if(Sh(e,t,i),!e._initted)return 1;if(!s&&e._pt&&!mt&&(e._dur&&e.vars.lazy!==!1||!e._dur&&e.vars.lazy)&&Cg!==jt.frame)return gs.push(e),e._lazy=[i,r],1},VR=function n(e){var t=e.parent;return t&&t._ts&&t._initted&&!t._lock&&(t.rawTime()<0||n(t))},su=function(e){var t=e.data;return t==="isFromStart"||t==="isStart"},UR=function(e,t,s,r){var i=e.ratio,o=t<0||!t&&(!e._start&&VR(e)&&!(!e._initted&&su(e))||(e._ts<0||e._dp._ts<0)&&!su(e))?0:1,a=e._rDelay,c=0,l,u,h;if(a&&e._repeat&&(c=Po(0,e._tDur,t),u=Gr(c,a),e._yoyo&&u&1&&(o=1-o),u!==Gr(e._tTime,a)&&(i=1-o,e.vars.repeatRefresh&&e._initted&&e.invalidate())),o!==i||mt||r||e._zTime===Ne||!t&&e._zTime){if(!e._initted&&Ng(e,t,r,s,c))return;for(h=e._zTime,e._zTime=t||(s?Ne:0),s||(s=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&&nu(e,t,s,!0),e._onUpdate&&!s&&zt(e,"onUpdate"),c&&e._repeat&&!s&&e.parent&&zt(e,"onRepeat"),(t>=e._tDur||t<0)&&e.ratio===o&&(o&&Ss(e,1),!s&&!mt&&(zt(e,o?"onComplete":"onReverseComplete",!0),e._prom&&e._prom()))}else e._zTime||(e._zTime=t)},BR=function(e,t,s){var r;if(s>t)for(r=e._first;r&&r._start<=s;){if(r.data==="isPause"&&r._start>t)return r;r=r._next}else for(r=e._last;r&&r._start>=s;){if(r.data==="isPause"&&r._start0&&!r&&Pc(e,e._tTime=e._tDur*a),e.parent&&Dc(e),s||Gs(e.parent,e),e},Wf=function(e){return e instanceof wt?Gs(e):Xr(e,e._dur)},WR={_start:0,endTime:lo,totalDuration:lo},Yt=function n(e,t,s){var r=e.labels,i=e._recent||WR,o=e.duration()>=Kt?i.endTime(!1):e._dur,a,c,l;return dt(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:s).totalDuration()/100:1)):a<0?(t in r||(r[t]=o),r[t]):(c=parseFloat(t.charAt(a-1)+t.substr(a+1)),l&&s&&(c=c/100*(gt(s)?s[0]:s).totalDuration()),a>1?n(e,t.substr(0,a-1),s)+c:o+c)):t==null?o:+t},$i=function(e,t,s){var r=Jn(t[1]),i=(r?2:1)+(e<2?0:1),o=t[i],a,c;if(r&&(o.duration=t[1]),o.parent=s,e){for(a=o,c=s;c&&!("immediateRender"in a);)a=c.vars.defaults||{},c=Rt(c.vars.inherit)&&c.parent;o.immediateRender=Rt(a.immediateRender),e<2?o.runBackwards=1:o.startAt=t[i-1]}return new ot(t[0],o,t[i+1])},Ps=function(e,t){return e||e===0?t(e):t},Po=function(e,t,s){return st?t:s},pt=function(e,t){return!dt(e)||!(t=MR.exec(e))?"":t[1]},qR=function(e,t,s){return Ps(s,function(r){return Po(e,t,r)})},ru=[].slice,Ig=function(e,t){return e&&Rn(e)&&"length"in e&&(!t&&!e.length||e.length-1 in e&&Rn(e[0]))&&!e.nodeType&&e!==Gt},HR=function(e,t,s){return s===void 0&&(s=[]),e.forEach(function(r){var i;return dt(r)&&!t||Ig(r,1)?(i=s).push.apply(i,Qt(r)):s.push(r)})||s},Qt=function(e,t,s){return Ke&&!t&&Ke.selector?Ke.selector(e):dt(e)&&!s&&(eu||!Zr())?ru.call((t||xh).querySelectorAll(e),0):gt(e)?HR(e,s):Ig(e)?ru.call(e,0):e?[e]:[]},iu=function(e){return e=Qt(e)[0]||co("Invalid scope")||{},function(t){var s=e.current||e.nativeElement||e;return Qt(t,s.querySelectorAll?s:s===e?co("Invalid scope")||xh.createElement("div"):e)}},$g=function(e){return e.sort(function(){return .5-Math.random()})},Fg=function(e){if(Qe(e))return e;var t=Rn(e)?e:{each:e},s=Xs(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 dt(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],_,k,T,b,y,x,E,w,C;if(!g){if(C=t.grid==="auto"?0:(t.grid||[1,Kt])[1],!C){for(E=-Kt;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=pt(t.amount||t.each)||0,s=s&&p<0?Yg(s):s}return p=(g[d]-g.min)/g.max||0,ut(g.b+(s?s(p):p)*g.v)+g.u}},ou=function(e){var t=Math.pow(10,((e+"").split(".")[1]||"").length);return function(s){var r=ut(Math.round(parseFloat(s)/e)*e*t);return(r-r%1)/t+(Jn(s)?0:pt(s))}},Lg=function(e,t){var s=gt(e),r,i;return!s&&Rn(e)&&(r=s=e.radius||Kt,e.values?(e=Qt(e.values),(i=!Jn(e[0]))&&(r*=r)):e=ou(e.increment)),Ps(t,s?Qe(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=Kt,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,s="",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?wg:Jl),s+=e.substr(t,r-t)+jg(a?i:+i[0],a?0:+i[1],+i[2]||1e-5),t=o+1;return s+e.substr(t,e.length-t)},Vg=function(e,t,s,r,i){var o=t-e,a=r-s;return Ps(i,function(c){return s+((c-e)/o*a||0)})},QR=function n(e,t,s,r){var i=isNaN(e+t)?0:function(f){return(1-f)*e+f*t};if(!i){var o=dt(e),a={},c,l,u,h,d;if(s===!0&&(r=1)&&(s=null),o)e={p:e},t={p:t};else if(gt(e)&&!gt(t)){for(u=[],h=e.length,d=h-2,l=1;l(a=Math.abs(a))&&(c=o,i=a);return c},zt=function(e,t,s){var r=e.vars,i=r[t],o=Ke,a=e._ctx,c,l,u;if(i)return c=r[t+"Params"],l=r.callbackScope||e,s&&gs.length&&Qa(),a&&(Ke=a),u=c?i.apply(l,c):i.call(l),Ke=o,u},Si=function(e){return Ss(e),e.scrollTrigger&&e.scrollTrigger.kill(!!mt),e.progress()<1&&zt(e,"onInterrupt"),e},Or,Ug=[],Bg=function(e){if(bh()&&e){e=!e.name&&e.default||e;var t=e.name,s=Qe(e),r=t&&!s&&e.init?function(){this._props=[]}:e,i={init:lo,render:Rh,add:Ch,kill:pD,modifier:fD,rawVars:0},o={targetTest:0,get:0,getSetter:Ah,aliases:{},register:0};if(Zr(),e!==r){if(Ft[t])return;tn(r,tn(Ja(e,i),o)),ir(r.prototype,ir(i,Ja(e,o))),Ft[r.prop=t]=r,e.targetTest&&(la.push(r),Th[t]=1),t=(t==="css"?"CSS":t.charAt(0).toUpperCase()+t.substr(1))+"Plugin"}Eg(t,r),e.register&&e.register(It,r,Pt)}else e&&Ug.push(e)},Me=255,Oi={aqua:[0,Me,Me],lime:[0,Me,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,Me],navy:[0,0,128],white:[Me,Me,Me],olive:[128,128,0],yellow:[Me,Me,0],orange:[Me,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[Me,0,0],pink:[Me,192,203],cyan:[0,Me,Me],transparent:[Me,Me,Me,0]},cl=function(e,t,s){return e+=e<0?1:e>1?-1:0,(e*6<1?t+(s-t)*e*6:e<.5?s:e*3<2?t+(s-t)*(2/3-e)*6:t)*Me+.5|0},Wg=function(e,t,s){var r=e?Jn(e)?[e>>16,e>>8&Me,e&Me]: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&Me,r&Me,parseInt(e.substr(7),16)/255];e=parseInt(e.substr(1),16),r=[e>>16,e>>8&Me,e&Me]}else if(e.substr(0,3)==="hsl"){if(r=m=e.match(Jl),!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]=cl(c+1/3,i,o),r[1]=cl(c,i,o),r[2]=cl(c-1/3,i,o);else if(~e.indexOf("="))return r=e.match(bg),s&&r.length<4&&(r[3]=1),r}else r=e.match(Jl)||Oi.transparent;r=r.map(Number)}return t&&!m&&(i=r[0]/Me,o=r[1]/Me,a=r[2]/Me,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&&(s+=_-t),r+=_,y=r-s,T=y-o,(T>0||k)&&(x=++h.frame,d=y-h.time*1e3,h.time=y=y/1e3,o+=T+(T>=i?4:i-T),b=1),k||(c=l(p)),b)for(f=0;f=_&&f--},_listeners:a},h}(),Zr=function(){return!ho&&jt.wake()},we={},eD=/^[\d.\-M][\d.\-,\s]/,tD=/["']/g,nD=function(e){for(var t={},s=e.substr(1,e.length-3).split(":"),r=s[0],i=1,o=s.length,a,c,l;i1&&s.config?s.config.apply(null,~e.indexOf("{")?[nD(t[1])]:sD(e).split(",").map(Ag)):we._CE&&eD.test(e)?we._CE("",e):s},Yg=function(e){return function(t){return 1-e(1-t)}},Gg=function n(e,t){for(var s=e._first,r;s;)s instanceof wt?n(s,t):s.vars.yoyoEase&&(!s._yoyo||!s._repeat)&&s._yoyo!==t&&(s.timeline?n(s.timeline,t):(r=s._ease,s._ease=s._yEase,s._yEase=r,s._yoyo=t)),s=s._next},Xs=function(e,t){return e&&(Qe(e)?e:we[e]||rD(e))||t},hr=function(e,t,s,r){s===void 0&&(s=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:s,easeInOut:r},o;return Dt(e,function(a){we[a]=qt[a]=i,we[o=a.toLowerCase()]=s;for(var c in i)we[o+(c==="easeIn"?".in":c==="easeOut"?".out":".inOut")]=we[a+"."+c]=i[c]}),i},Xg=function(e){return function(t){return t<.5?(1-e(1-t*2))/2:.5+e((t-.5)*2)/2}},ll=function n(e,t,s){var r=t>=1?t:1,i=(s||(e?.3:.45))/(t<1?t:1),o=i/Ql*(Math.asin(1/r)||0),a=function(u){return u===1?1:r*Math.pow(2,-10*u)*PR((u-o)*i)+1},c=e==="out"?a:e==="in"?function(l){return 1-a(1-l)}:Xg(a);return i=Ql/i,c.config=function(l,u){return n(e,l,u)},c},ul=function n(e,t){t===void 0&&(t=1.70158);var s=function(o){return o?--o*o*((t+1)*o+t)+1:0},r=e==="out"?s:e==="in"?function(i){return 1-s(1-i)}:Xg(s);return r.config=function(i){return n(e,i)},r};Dt("Linear,Quad,Cubic,Quart,Quint,Strong",function(n,e){var t=e<5?e+1:e;hr(n+",Power"+(t-1),e?function(s){return Math.pow(s,t)}:function(s){return s},function(s){return 1-Math.pow(1-s,t)},function(s){return s<.5?Math.pow(s*2,t)/2:1-Math.pow((1-s)*2,t)/2})});we.Linear.easeNone=we.none=we.Linear.easeIn;hr("Elastic",ll("in"),ll("out"),ll());(function(n,e){var t=1/e,s=2*t,r=2.5*t,i=function(a){return a0?s+(s+this._rDelay)*this._repeat:s):this.totalDuration()&&this._dur},e.totalDuration=function(s){return arguments.length?(this._dirty=0,Xr(this,this._repeat<0?s:(s-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(s,r){if(Zr(),!arguments.length)return this._tTime;var i=this._dp;if(i&&i.smoothChildTiming&&this._ts){for(Pc(this,s),!i._dp||i.parent||Pg(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&&s0||!this._tDur&&!s)&&Tn(this._dp,this,this._start-this._delay)}return(this._tTime!==s||!this._dur&&!r||this._initted&&Math.abs(this._zTime)===Ne||!s&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=s),Og(this,s,r)),this},e.time=function(s,r){return arguments.length?this.totalTime(Math.min(this.totalDuration(),s+Bf(this))%(this._dur+this._rDelay)||(s?this._dur:0),r):this._time},e.totalProgress=function(s,r){return arguments.length?this.totalTime(this.totalDuration()*s,r):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>0?1:0},e.progress=function(s,r){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-s:s)+Bf(this),r):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},e.iteration=function(s,r){var i=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(s-1)*i,r):this._repeat?Gr(this._tTime,i)+1:1},e.timeScale=function(s,r){if(!arguments.length)return this._rts===-Ne?0:this._rts;if(this._rts===s)return this;var i=this.parent&&this._ts?ec(this.parent._time,this):this._tTime;return this._rts=+s||0,this._ts=this._ps||s===-Ne?0:this._rts,this.totalTime(Po(-Math.abs(this._delay),this._tDur,i),r!==!1),Dc(this),jR(this)},e.paused=function(s){return arguments.length?(this._ps!==s&&(this._ps=s,s?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(Zr(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==Ne&&(this._tTime-=Ne)))),this):this._ps},e.startTime=function(s){if(arguments.length){this._start=s;var r=this.parent||this._dp;return r&&(r._sort||!this.parent)&&Tn(r,this,s-this._delay),this}return this._start},e.endTime=function(s){return this._start+(Rt(s)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},e.rawTime=function(s){var r=this.parent||this._dp;return r?s&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?ec(r.rawTime(s),this):this._tTime:this._tTime},e.revert=function(s){s===void 0&&(s=IR);var r=mt;return mt=s,(this._initted||this._startAt)&&(this.timeline&&this.timeline.revert(s),this.totalTime(-.01,s.suppressEvents)),this.data!=="nested"&&s.kill!==!1&&this.kill(),mt=r,this},e.globalTime=function(s){for(var r=this,i=arguments.length?s:r.rawTime();r;)i=r._start+i/(Math.abs(r._ts)||1),r=r._dp;return!this.parent&&this._sat?this._sat.globalTime(s):i},e.repeat=function(s){return arguments.length?(this._repeat=s===1/0?-2:s,Wf(this)):this._repeat===-2?1/0:this._repeat},e.repeatDelay=function(s){if(arguments.length){var r=this._time;return this._rDelay=s,Wf(this),r?this.time(r):this}return this._rDelay},e.yoyo=function(s){return arguments.length?(this._yoyo=s,this):this._yoyo},e.seek=function(s,r){return this.totalTime(Yt(this,s),Rt(r))},e.restart=function(s,r){return this.play().totalTime(s?-this._delay:0,Rt(r))},e.play=function(s,r){return s!=null&&this.seek(s,r),this.reversed(!1).paused(!1)},e.reverse=function(s,r){return s!=null&&this.seek(s||this.totalDuration(),r),this.reversed(!0).paused(!1)},e.pause=function(s,r){return s!=null&&this.seek(s,r),this.paused(!0)},e.resume=function(){return this.paused(!1)},e.reversed=function(s){return arguments.length?(!!s!==this.reversed()&&this.timeScale(-this._rts||(s?-Ne:0)),this):this._rts<0},e.invalidate=function(){return this._initted=this._act=0,this._zTime=-Ne,this},e.isActive=function(){var s=this.parent||this._dp,r=this._start,i;return!!(!s||this._ts&&this._initted&&s.isActive()&&(i=s.rawTime(!0))>=r&&i1?(r?(o[s]=r,i&&(o[s+"Params"]=i),s==="onUpdate"&&(this._onUpdate=r)):delete o[s],this):o[s]},e.then=function(s){var r=this;return new Promise(function(i){var o=Qe(s)?s:Rg,a=function(){var l=r.then;r.then=null,Qe(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)},n}();tn(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:-Ne,_prom:0,_ps:!1,_rts:1});var wt=function(n){_g(e,n);function e(s,r){var i;return s===void 0&&(s={}),i=n.call(this,s)||this,i.labels={},i.smoothChildTiming=!!s.smoothChildTiming,i.autoRemoveChildren=!!s.autoRemoveChildren,i._sort=Rt(s.sortChildren),Ge&&Tn(s.parent||Ge,zn(i),r),s.reversed&&i.reverse(),s.paused&&i.paused(!0),s.scrollTrigger&&Mg(zn(i),s.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 ot(r,i,Yt(this,o),1),this},t.call=function(r,i,o){return Tn(this,ot.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 ot(r,o,Yt(this,c)),this},t.staggerFrom=function(r,i,o,a,c,l,u){return o.runBackwards=1,Ii(o).immediateRender=Rt(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=Rt(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:ut(r),h=this._zTime<0!=r<0&&(this._initted||!l),d,f,m,p,g,_,k,T,b,y,x,E;if(this!==Ge&&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,b=this._start,T=this._ts,_=!T,h&&(l||(a=this._zTime),(r||!i)&&(this._zTime=r)),this._repeat){if(x=this._yoyo,g=l+this._rDelay,this._repeat<-1&&r<0)return this.totalTime(g*100+r,i,o);if(d=ut(u%g),u===c?(p=this._repeat,d=l):(p=~~(u/g),p&&p===u/g&&(d=l,p--),d>l&&(d=l)),y=Gr(this._tTime,g),!a&&this._tTime&&y!==p&&this._tTime-y*g-this._dur<=0&&(y=p),x&&p&1&&(d=l-d,E=1),p!==y&&!this._lock){var w=x&&y&1,C=w===(x&&p&1);if(p=a&&r>=0)for(f=this._first;f;){if(m=f._next,(f._act||d>=f._start)&&f._ts&&k!==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&&!_){k=0,m&&(u+=this._zTime=-Ne);break}}f=m}else{f=this._last;for(var A=r<0?r:d;f;){if(m=f._prev,(f._act||A<=f._end)&&f._ts&&k!==f){if(f.parent!==this)return this.render(r,i,o);if(f.render(f._ts>0?(A-f._start)*f._ts:(f._dirty?f.totalDuration():f._tDur)+(A-f._start)*f._ts,i,o||mt&&(f._initted||f._startAt)),d!==this._time||!this._ts&&!_){k=0,m&&(u+=this._zTime=A?-Ne:Ne);break}}f=m}}if(k&&!i&&(this.pause(),k.render(d>=a?0:-Ne)._zTime=d>=a?1:-1,this._ts))return this._start=b,Dc(this),this.render(r,i,o);this._onUpdate&&!i&&zt(this,"onUpdate",!0),(u===c&&this._tTime>=this.totalDuration()||!u&&a)&&(b===this._start||Math.abs(T)!==Math.abs(this._ts))&&(this._lock||((r||!l)&&(u===c&&this._ts>0||!u&&this._ts<0)&&Ss(this,1),!i&&!(r<0&&!a)&&(u||a||!c)&&(zt(this,u===c&&r>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(u0)&&this._prom())))}return this},t.add=function(r,i){var o=this;if(Jn(i)||(i=Yt(this,i,r)),!(r instanceof fo)){if(gt(r))return r.forEach(function(a){return o.add(a,i)}),this;if(dt(r))return this.addLabel(r,i);if(Qe(r))r=ot.delayedCall(0,r);else return this}return this!==r?Tn(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=-Kt);for(var c=[],l=this._first;l;)l._start>=a&&(l instanceof ot?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 dt(r)?this.removeLabel(r):Qe(r)?this.killTweensOf(r):(Rc(this,r),r===this._recent&&(this._recent=this._last),Gs(this))},t.totalTime=function(r,i){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=ut(jt.time-(this._ts>0?r/this._ts:(this.totalDuration()-r)/-this._ts))),n.prototype.totalTime.call(this,r,i),this._forcing=0,this):this._tTime},t.addLabel=function(r,i){return this.labels[r]=Yt(this,i),this},t.removeLabel=function(r){return delete this.labels[r],this},t.addPause=function(r,i,o){var a=ot.delayedCall(0,i||lo,o);return a.data="isPause",this._hasPause=1,Tn(this,a,Yt(this,r))},t.removePause=function(r){var i=this._first;for(r=Yt(this,r);i;)i._start===r&&i.data==="isPause"&&Ss(i),i=i._next},t.killTweensOf=function(r,i,o){for(var a=this.getTweensOf(r,o),c=a.length;c--;)hs!==a[c]&&a[c].kill(r,i);return this},t.getTweensOf=function(r,i){for(var o=[],a=Qt(r),c=this._first,l=Jn(i),u;c;)c instanceof ot?$R(c._targets,a)&&(l?(!hs||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=Yt(o,r),c=i,l=c.startAt,u=c.onStart,h=c.onStartParams,d=c.immediateRender,f,m=ot.to(o,tn({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())||Ne,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&&Xr(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,tn({startAt:{time:Yt(this,r)}},o))},t.recent=function(){return this._recent},t.nextLabel=function(r){return r===void 0&&(r=this._time),qf(this,Yt(this,r))},t.previousLabel=function(r){return r===void 0&&(r=this._time),qf(this,Yt(this,r),1)},t.currentLabel=function(r){return arguments.length?this.seek(r,!0):this.previousLabel(this._time+Ne)},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 Gs(this)},t.invalidate=function(r){var i=this._first;for(this._lock=0;i;)i.invalidate(r),i=i._next;return n.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={}),Gs(this)},t.totalDuration=function(r){var i=0,o=this,a=o._last,c=Kt,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,Tn(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;Xr(o,o===Ge&&o._time>i?o._time:i,1,1),o._dirty=0}return o._tDur},e.updateRoot=function(r){if(Ge._ts&&(Og(Ge,ec(r,Ge)),Cg=jt.frame),jt.frame>=Vf){Vf+=Bt.autoSleep||120;var i=Ge._first;if((!i||!i._ts)&&Bt.autoSleep&&jt._listeners.length<2){for(;i&&!i._ts;)i=i._next;i||jt.sleep()}}},e}(fo);tn(wt.prototype,{_lock:0,_hasPause:0,_forcing:0});var iD=function(e,t,s,r,i,o,a){var c=new Pt(this._pt,e,t,0,1,n_,null,i),l=0,u=0,h,d,f,m,p,g,_,k;for(c.b=s,c.e=r,s+="",r+="",(_=~r.indexOf("random("))&&(r=uo(r)),o&&(k=[s,r],o(k,e,t),s=k[0],r=k[1]),d=s.match(ol)||[];h=ol.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)==="="?Mr(g,m)-g:parseFloat(m)-g,m:f&&f<4?Math.round:0},l=ol.lastIndex);return c.c=l")}),b.duration();else{x={};for(w in m)w==="ease"||w==="easeEach"||lD(w,m[w],x,m.easeEach);for(w in x)for(L=x[w].sort(function(V,U){return V.t-U.t}),O=0,y=0;yc-Ne&&!u?c:rl&&(d=l)),_=this._yoyo&&m&1,_&&(b=this._yEase,d=l-d),g=Gr(this._tTime,p),d===a&&!o&&this._initted&&m===g)return this._tTime=h,this;m!==g&&(T&&this._yEase&&Gg(T,_),this.vars.repeatRefresh&&!_&&!this._lock&&this._time!==l&&this._initted&&(this._lock=o=1,this.render(ut(p*m),!0).invalidate()._lock=0))}if(!this._initted){if(Ng(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=k=(b||this._ease)(d/l),this._from&&(this.ratio=k=1-k),d&&!a&&!i&&!m&&(zt(this,"onStart"),this._tTime!==h))return this;for(f=this._pt;f;)f.r(k,f.d),f=f._next;T&&T.render(r<0?r:!d&&_?-Ne:T._dur*T._ease(d/this._dur),i,o)||this._startAt&&(this._zTime=r),this._onUpdate&&!i&&(u&&nu(this,r,i,o),zt(this,"onUpdate")),this._repeat&&m!==g&&this.vars.onRepeat&&!i&&this.parent&&zt(this,"onRepeat"),(h===this._tDur||!h)&&this._tTime===h&&(u&&!this._onUpdate&&nu(this,r,!0,!0),(r||!l)&&(h===this._tDur&&this._ts>0||!h&&this._ts<0)&&Ss(this,1),!i&&!(u&&!a)&&(h||a||_)&&(zt(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),n.prototype.invalidate.call(this,r)},t.resetTo=function(r,i,o,a,c){ho||jt.wake(),this._ts||this.play();var l=Math.min(this._dur,(this._dp._time-this._start)*this._ts),u;return this._initted||Sh(this,l),u=this._ease(l/this._dur),aD(this,r,i,o,a,u,l,c)?this.resetTo(r,i,o,a,1):(Pc(this,0),this.parent||Dg(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,hs&&hs.vars.overwrite!==!0)._first||Si(this),this.parent&&o!==this.timeline.totalDuration()&&Xr(this,this._dur*this.timeline._tDur/o,0,1),this}var a=this._targets,c=r?Qt(r):a,l=this._ptLookup,u=this._pt,h,d,f,m,p,g,_;if((!i||i==="all")&&LR(a,c))return i==="all"&&(this._pt=0),Si(this);for(h=this._op=this._op||[],i!=="all"&&(dt(i)&&(p={},Dt(i,function(k){return p[k]=1}),i=p),i=cD(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)&&Rc(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 Ge.killTweensOf(r,i,o)},e}(fo);tn(ot.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0});Dt("staggerTo,staggerFrom,staggerFromTo",function(n){ot[n]=function(){var e=new wt,t=ru.call(arguments,0);return t.splice(n==="staggerFromTo"?5:4,0,0),e[n].apply(e,t)}});var Oh=function(e,t,s){return e[t]=s},e_=function(e,t,s){return e[t](s)},uD=function(e,t,s,r){return e[t](r.fp,s)},hD=function(e,t,s){return e.setAttribute(t,s)},Ah=function(e,t){return Qe(e[t])?e_:vh(e[t])&&e.setAttribute?hD:Oh},t_=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e6)/1e6,t)},dD=function(e,t){return t.set(t.t,t.p,!!(t.s+t.c*e),t)},n_=function(e,t){var s=t._pt,r="";if(!e&&t.b)r=t.b;else if(e===1&&t.e)r=t.e;else{for(;s;)r=s.p+(s.m?s.m(s.s+s.c*e):Math.round((s.s+s.c*e)*1e4)/1e4)+r,s=s._next;r+=t.c}t.set(t.t,t.p,r,t)},Rh=function(e,t){for(var s=t._pt;s;)s.r(e,s.d),s=s._next},fD=function(e,t,s,r){for(var i=this._pt,o;i;)o=i._next,i.p===r&&i.modifier(e,t,s),i=o},pD=function(e){for(var t=this._pt,s,r;t;)r=t._next,t.p===e&&!t.op||t.op===e?Rc(this,t,"_pt"):t.dep||(s=1),t=r;return!s},mD=function(e,t,s,r){r.mSet(e,t,r.m.call(r.tween,s,r.mt),r)},s_=function(e){for(var t=e._pt,s,r,i,o;t;){for(s=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=s}e._pt=i},Pt=function(){function n(t,s,r,i,o,a,c,l,u){this.t=s,this.s=i,this.c=o,this.p=r,this.r=a||t_,this.d=c||this,this.set=l||Oh,this.pr=u||0,this._next=t,t&&(t._prev=this)}var e=n.prototype;return e.modifier=function(s,r,i){this.mSet=this.mSet||this.set,this.set=mD,this.m=s,this.mt=i,this.tween=r},n}();Dt(kh+"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(n){return Th[n]=1});qt.TweenMax=qt.TweenLite=ot;qt.TimelineLite=qt.TimelineMax=wt;Ge=new wt({sortChildren:!1,defaults:Yr,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0});Bt.stringFilter=Hg;var Zs=[],ua={},gD=[],Yf=0,_D=0,hl=function(e){return(ua[e]||gD).map(function(t){return t()})},cu=function(){var e=Date.now(),t=[];e-Yf>2&&(hl("matchMediaInit"),Zs.forEach(function(s){var r=s.queries,i=s.conditions,o,a,c,l;for(a in r)o=Gt.matchMedia(r[a]).matches,o&&(c=1),o!==i[a]&&(i[a]=o,l=1);l&&(s.revert(),c&&t.push(s))}),hl("matchMediaRevert"),t.forEach(function(s){return s.onMatch(s,function(r){return s.add(null,r)})}),Yf=e,hl("matchMedia"))},r_=function(){function n(t,s){this.selector=s&&iu(s),this.data=[],this._r=[],this.isReverted=!1,this.id=_D++,t&&this.add(t)}var e=n.prototype;return e.add=function(s,r,i){Qe(s)&&(i=r,r=s,s=Qe);var o=this,a=function(){var l=Ke,u=o.selector,h;return l&&l!==o&&l.data.push(o),i&&(o.selector=iu(i)),Ke=o,h=r.apply(o,arguments),Qe(h)&&o._r.push(h),Ke=l,o.selector=u,o.isReverted=!1,h};return o.last=a,s===Qe?a(o,function(c){return o.add(null,c)}):s?o[s]=a:a},e.ignore=function(s){var r=Ke;Ke=null,s(this),Ke=r},e.getTweens=function(){var s=[];return this.data.forEach(function(r){return r instanceof n?s.push.apply(s,r.getTweens()):r instanceof ot&&!(r.parent&&r.parent.data==="nested")&&s.push(r)}),s},e.clear=function(){this._r.length=this.data.length=0},e.kill=function(s,r){var i=this;if(s?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(s)}),c=i.data.length;c--;)l=i.data[c],l instanceof wt?l.data!=="nested"&&(l.scrollTrigger&&l.scrollTrigger.revert(),l.kill()):!(l instanceof ot)&&l.revert&&l.revert(s);i._r.forEach(function(u){return u(s,i)}),i.isReverted=!0}():this.data.forEach(function(a){return a.kill&&a.kill()}),this.clear(),r)for(var o=Zs.length;o--;)Zs[o].id===this.id&&Zs.splice(o,1)},e.revert=function(s){this.kill(s||{})},n}(),yD=function(){function n(t){this.contexts=[],this.scope=t}var e=n.prototype;return e.add=function(s,r,i){Rn(s)||(s={matches:s});var o=new r_(0,i||this.scope),a=o.conditions={},c,l,u;Ke&&!o.selector&&(o.selector=Ke.selector),this.contexts.push(o),r=o.add("onMatch",r),o.queries=s;for(l in s)l==="all"?u=1:(c=Gt.matchMedia(s[l]),c&&(Zs.indexOf(o)<0&&Zs.push(o),(a[l]=c.matches)&&(u=1),c.addListener?c.addListener(cu):c.addEventListener("change",cu)));return u&&r(o,function(h){return o.add(null,h)}),this},e.revert=function(s){this.kill(s||{})},e.kill=function(s){this.contexts.forEach(function(r){return r.kill(s,!0)})},n}(),tc={registerPlugin:function(){for(var e=arguments.length,t=new Array(e),s=0;s1){var r=e.map(function(u){return It.quickSetter(u,t,s)}),i=r.length;return function(u){for(var h=i;h--;)r[h](u)}}e=e[0]||{};var o=Ft[t],a=Ys(e),c=a.harness&&(a.harness.aliases||{})[t]||t,l=o?function(u){var h=new o;Or._pt=0,h.init(e,s?u+s:u,Or,0,[e]),h.render(1,h),Or._pt&&Rh(1,Or)}:a.set(e,c);return o?l:function(u){return l(e,c,s?u+s:u,a,1)}},quickTo:function(e,t,s){var r,i=It.to(e,ir((r={},r[t]="+=0.1",r.paused=!0,r),s||{})),o=function(c,l,u){return i.resetTo(t,c,l,u)};return o.tween=i,o},isTweening:function(e){return Ge.getTweensOf(e,!0).length>0},defaults:function(e){return e&&e.ease&&(e.ease=Xs(e.ease,Yr.ease)),Uf(Yr,e||{})},config:function(e){return Uf(Bt,e||{})},registerEffect:function(e){var t=e.name,s=e.effect,r=e.plugins,i=e.defaults,o=e.extendTimeline;(r||"").split(",").forEach(function(a){return a&&!Ft[a]&&!qt[a]&&co(t+" effect requires "+a+" plugin.")}),al[t]=function(a,c,l){return s(Qt(a),tn(c||{},i),l)},o&&(wt.prototype[t]=function(a,c,l){return this.add(al[t](a,Rn(c)?c:(l=c)&&{},this),l)})},registerEase:function(e,t){we[e]=Xs(t)},parseEase:function(e,t){return arguments.length?Xs(e,t):we},getById:function(e){return Ge.getById(e)},exportRoot:function(e,t){e===void 0&&(e={});var s=new wt(e),r,i;for(s.smoothChildTiming=Rt(e.smoothChildTiming),Ge.remove(s),s._dp=0,s._time=s._tTime=Ge._time,r=Ge._first;r;)i=r._next,(t||!(!r._dur&&r instanceof ot&&r.vars.onComplete===r._targets[0]))&&Tn(s,r,r._start-r._delay),r=i;return Tn(Ge,s,0),s},context:function(e,t){return e?new r_(e,t):Ke},matchMedia:function(e){return new yD(e)},matchMediaRefresh:function(){return Zs.forEach(function(e){var t=e.conditions,s,r;for(r in t)t[r]&&(t[r]=!1,s=1);s&&e.revert()})||cu()},addEventListener:function(e,t){var s=ua[e]||(ua[e]=[]);~s.indexOf(t)||s.push(t)},removeEventListener:function(e,t){var s=ua[e],r=s&&s.indexOf(t);r>=0&&s.splice(r,1)},utils:{wrap:ZR,wrapYoyo:KR,distribute:Fg,random:jg,snap:Lg,normalize:XR,getUnit:pt,clamp:qR,splitColor:Wg,toArray:Qt,selector:iu,mapRange:Vg,pipe:YR,unitize:GR,interpolate:QR,shuffle:$g},install:kg,effects:al,ticker:jt,updateRoot:wt.updateRoot,plugins:Ft,globalTimeline:Ge,core:{PropTween:Pt,globals:Eg,Tween:ot,Timeline:wt,Animation:fo,getCache:Ys,_removeLinkedListItem:Rc,reverting:function(){return mt},context:function(e){return e&&Ke&&(Ke.data.push(e),e._ctx=Ke),Ke},suppressOverwrites:function(e){return yh=e}}};Dt("to,from,fromTo,delayedCall,set,killTweensOf",function(n){return tc[n]=ot[n]});jt.add(wt.updateRoot);Or=tc.to({},{duration:0});var vD=function(e,t){for(var s=e._pt;s&&s.p!==t&&s.op!==t&&s.fp!==t;)s=s._next;return s},bD=function(e,t){var s=e._targets,r,i,o;for(r in t)for(i=s.length;i--;)o=e._ptLookup[i][r],o&&(o=o.d)&&(o._pt&&(o=vD(o,r)),o&&o.modifier&&o.modifier(t[r],e,s[i],r))},dl=function(e,t){return{name:e,rawVars:1,init:function(r,i,o){o._onInit=function(a){var c,l;if(dt(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}bD(a,i)}}}},It=tc.registerPlugin({name:"attr",init:function(e,t,s,r,i){var o,a,c;this.tween=s;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 s=t._pt;s;)mt?s.set(s.t,s.p,s.b,s):s.r(e,s.d),s=s._next}},{name:"endArray",init:function(e,t){for(var s=t.length;s--;)this.add(e,s,e[s]||0,t[s],0,0,0,0,0,1)}},dl("roundProps",ou),dl("modifiers"),dl("snap",Lg))||tc;ot.version=wt.version=It.version="3.12.4";Tg=1;bh()&&Zr();we.Power0;we.Power1;we.Power2;we.Power3;we.Power4;we.Linear;we.Quad;we.Cubic;we.Quart;we.Quint;we.Strong;we.Elastic;we.Back;we.SteppedEase;we.Bounce;we.Sine;we.Expo;we.Circ;/*! * CSSPlugin 3.12.4 * https://gsap.com * @@ -517,16 +517,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho * 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 Gf,ds,Nr,Dh,Us,Xf,Ph,wD=function(){return typeof window<"u"},es={},Ls=180/Math.PI,Ir=Math.PI/180,wr=Math.atan2,Zf=1e8,Mh=/([A-Z])/g,TD=/(left|right|width|margin|padding|x)/i,kD=/[\s,\(]\S/,kn={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},lu=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},ED=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)},CD=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)},SD=function(e,t){var s=t.s+t.c*e;t.set(t.t,t.p,~~(s+(s<0?-.5:.5))+t.u,t)},o_=function(e,t){return t.set(t.t,t.p,e?t.e:t.b,t)},a_=function(e,t){return t.set(t.t,t.p,e!==1?t.b:t.e,t)},OD=function(e,t,s){return e.style[t]=s},AD=function(e,t,s){return e.style.setProperty(t,s)},RD=function(e,t,s){return e._gsap[t]=s},DD=function(e,t,s){return e._gsap.scaleX=e._gsap.scaleY=s},PD=function(e,t,s,r,i){var o=e._gsap;o.scaleX=o.scaleY=s,o.renderTransform(i,o)},MD=function(e,t,s,r,i){var o=e._gsap;o[t]=s,o.renderTransform(i,o)},Xe="transform",Mt=Xe+"Origin",ND=function n(e,t){var s=this,r=this.target,i=r.style,o=r._gsap;if(e in es&&i){if(this.tfm=this.tfm||{},e!=="transform")e=kn[e]||e,~e.indexOf(",")?e.split(",").forEach(function(a){return s.tfm[a]=Un(r,a)}):this.tfm[e]=o.x?o[e]:Un(r,e),e===Mt&&(this.tfm.zOrigin=o.zOrigin);else return kn.transform.split(",").forEach(function(a){return n.call(s,a,t)});if(this.props.indexOf(Xe)>=0)return;o.svg&&(this.svgo=r.getAttribute("data-svg-origin"),this.props.push(Mt,t,"")),e=Xe}(i||t)&&this.props.push(e,t,i[e])},c_=function(e){e.translate&&(e.removeProperty("translate"),e.removeProperty("scale"),e.removeProperty("rotate"))},ID=function(){var e=this.props,t=this.target,s=t.style,r=t._gsap,i,o;for(i=0;i=0?Kf[o]:"")+e},hu=function(){wD()&&window.document&&(Gf=window,ds=Gf.document,Nr=ds.documentElement,Us=uu("div")||{style:{}},uu("div"),Xe=Kr(Xe),Mt=Xe+"Origin",Us.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",u_=!!Kr("perspective"),Ph=It.core.reverting,Dh=1)},fl=function n(e){var t=uu("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),s=this.parentNode,r=this.nextSibling,i=this.style.cssText,o;if(Nr.appendChild(t),t.appendChild(this),this.style.display="block",e)try{o=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=n}catch{}else this._gsapBBox&&(o=this._gsapBBox());return s&&(r?s.insertBefore(this,r):s.appendChild(this)),Nr.removeChild(t),this.style.cssText=i,o},Qf=function(e,t){for(var s=t.length;s--;)if(e.hasAttribute(t[s]))return e.getAttribute(t[s])},h_=function(e){var t;try{t=e.getBBox()}catch{t=fl.call(e,!0)}return t&&(t.width||t.height)||e.getBBox===fl||(t=fl.call(e,!0)),t&&!t.width&&!t.x&&!t.y?{x:+Qf(e,["x","cx","x1"])||0,y:+Qf(e,["y","cy","y1"])||0,width:0,height:0}:t},d_=function(e){return!!(e.getCTM&&(!e.parentNode||e.ownerSVGElement)&&h_(e))},or=function(e,t){if(t){var s=e.style,r;t in es&&t!==Mt&&(t=Xe),s.removeProperty?(r=t.substr(0,2),(r==="ms"||t.substr(0,6)==="webkit")&&(t="-"+t),s.removeProperty(r==="--"?t:t.replace(Mh,"-$1").toLowerCase())):s.removeAttribute(t)}},fs=function(e,t,s,r,i,o){var a=new Pt(e._pt,t,s,0,1,o?a_:o_);return e._pt=a,a.b=r,a.e=i,e._props.push(s),a},Jf={deg:1,rad:1,turn:1},$D={grid:1,flex:1},Os=function n(e,t,s,r){var i=parseFloat(s)||0,o=(s+"").trim().substr((i+"").length)||"px",a=Us.style,c=TD.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||Jf[r]||Jf[o])return i;if(o!=="px"&&!d&&(i=n(e,t,s,"px")),_=e.getCTM&&d_(e),(f||o==="%")&&(es[t]||~t.indexOf("adius")))return m=_?e.getBBox()[c?"width":"height"]:e[u],st(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===ds||!p.appendChild)&&(p=ds.body),g=p._gsap,g&&f&&g.width&&c&&g.time===jt.time&&!g.uncache)return st(i/g.width*h);if(f&&(t==="height"||t==="width")){var k=e.style[t];e.style[t]=h+r,m=e[u],k?e.style[t]=k:or(e,t)}else(f||o==="%")&&!$D[Cn(p,"display")]&&(a.position=Cn(e,"position")),p===e&&(a.position="static"),p.appendChild(Us),m=Us[u],p.removeChild(Us),a.position="absolute";return c&&f&&(g=Ys(p),g.time=jt.time,g.width=p[u]),st(d?m*i/h:m&&i?h/m*i:0)},Un=function(e,t,s,r){var i;return Dh||hu(),t in kn&&t!=="transform"&&(t=kn[t],~t.indexOf(",")&&(t=t.split(",")[0])),es[t]&&t!=="transform"?(i=mo(e,r),i=t!=="transformOrigin"?i[t]:i.svg?i.origin:sc(Cn(e,Mt))+" "+i.zOrigin+"px"):(i=e.style[t],(!i||i==="auto"||r||~(i+"").indexOf("calc("))&&(i=nc[t]&&nc[t](e,t,s)||Cn(e,t)||Og(e,t)||(t==="opacity"?1:0))),s&&!~(i+"").trim().indexOf(" ")?Os(e,t,i,s)+s:i},FD=function(e,t,s,r){if(!s||s==="none"){var i=Kr(t,e,1),o=i&&Cn(e,i,1);o&&o!==s?(t=i,s=o):t==="borderColor"&&(s=Cn(e,"borderTopColor"))}var a=new Pt(this._pt,e.style,t,0,1,s_),c=0,l=0,u,h,d,f,m,p,g,_,k,T,b,y;if(a.b=s,a.e=r,s+="",r+="",r==="auto"&&(p=e.style[t],e.style[t]=r,r=Cn(e,t)||r,p?e.style[t]=p:or(e,t)),u=[s,r],Yg(u),s=u[0],r=u[1],d=s.match(Sr)||[],y=r.match(Sr)||[],y.length){for(;h=Sr.exec(r);)g=h[0],k=r.substring(c,h.index),m?m=(m+1)%5:(k.substr(-5)==="rgba("||k.substr(-5)==="hsla(")&&(m=1),g!==(p=d[l++]||"")&&(f=parseFloat(p)||0,b=p.substr((f+"").length),g.charAt(1)==="="&&(g=Mr(f,g)+b),_=parseFloat(g),T=g.substr((_+"").length),c=Sr.lastIndex-T.length,T||(T=T||Bt.units[t]||b,c===r.length&&(r+=T,a.e+=T)),b!==T&&(f=Os(e,t,p,T)||0),a._pt={_next:a._pt,p:k||l===1?k:",",s:f,c:_-f,m:m&&m<4||t==="zIndex"?Math.round:0});a.c=c-1;)a=i[l],es[a]&&(c=1,a=a==="transformOrigin"?Mt:Xe),or(s,a);c&&(or(s,Xe),o&&(o.svg&&s.removeAttribute("transform"),mo(s,1),o.uncache=1,c_(r)))}},nc={clearProps:function(e,t,s,r,i){if(i.data!=="isFromStart"){var o=e._pt=new Pt(e._pt,t,s,0,0,jD);return o.u=r,o.pr=-10,o.tween=i,e._props.push(s),1}}},po=[1,0,0,1,0,0],f_={},p_=function(e){return e==="matrix(1, 0, 0, 1, 0, 0)"||e==="none"||!e},tp=function(e){var t=Cn(e,Xe);return p_(t)?po:t.substr(7).match(xg).map(st)},Nh=function(e,t){var s=e._gsap||Ys(e),r=e.style,i=tp(e),o,a,c,l;return s.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!==Nr&&!s.svg&&(c=r.display,r.display="block",o=e.parentNode,(!o||!e.offsetParent)&&(l=1,a=e.nextElementSibling,Nr.appendChild(e)),i=tp(e),c?r.display=c:or(e,"display"),l&&(a?o.insertBefore(e,a):o?o.appendChild(e):Nr.removeChild(e))),t&&i.length>6?[i[0],i[1],i[4],i[5],i[12],i[13]]:i)},du=function(e,t,s,r,i,o){var a=e._gsap,c=i||Nh(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],k=c[5],T=t.split(" "),b=parseFloat(T[0])||0,y=parseFloat(T[1])||0,x,E,w,C;s?c!==po&&(E=f*g-m*p)&&(w=b*(g/E)+y*(-p/E)+(p*k-g*_)/E,C=b*(-m/E)+y*(f/E)-(f*k-m*_)/E,b=w,y=C):(x=h_(e),b=x.x+(~T[0].indexOf("%")?b/100*x.width:b),y=x.y+(~(T[1]||T[0]).indexOf("%")?y/100*x.height:y)),r||r!==!1&&a.smooth?(_=b-l,k=y-u,a.xOffset=h+(_*f+k*p)-_,a.yOffset=d+(_*m+k*g)-k):a.xOffset=a.yOffset=0,a.xOrigin=b,a.yOrigin=y,a.smooth=!!r,a.origin=t,a.originIsAbsolute=!!s,e.style[Mt]="0px 0px",o&&(fs(o,a,"xOrigin",l,b),fs(o,a,"yOrigin",u,y),fs(o,a,"xOffset",h,a.xOffset),fs(o,a,"yOffset",d,a.yOffset)),e.setAttribute("data-svg-origin",b+" "+y)},mo=function(e,t){var s=e._gsap||new Kg(e);if("x"in s&&!t&&!s.uncache)return s;var r=e.style,i=s.scaleX<0,o="px",a="deg",c=getComputedStyle(e),l=Cn(e,Mt)||"0",u,h,d,f,m,p,g,_,k,T,b,y,x,E,w,C,A,D,O,L,j,W,V,U,B,X,K,J,F,z,S,I;return u=h=d=p=g=_=k=T=b=0,f=m=1,s.svg=!!(e.getCTM&&d_(e)),c.translate&&((c.translate!=="none"||c.scale!=="none"||c.rotate!=="none")&&(r[Xe]=(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[Xe]!=="none"?c[Xe]:"")),r.scale=r.rotate=r.translate="none"),E=Nh(e,s.svg),s.svg&&(s.uncache?(B=e.getBBox(),l=s.xOrigin-B.x+"px "+(s.yOrigin-B.y)+"px",U=""):U=!t&&e.getAttribute("data-svg-origin"),du(e,U||l,!!U||s.originIsAbsolute,s.smooth!==!1,E)),y=s.xOrigin||0,x=s.yOrigin||0,E!==po&&(D=E[0],O=E[1],L=E[2],j=E[3],u=W=E[4],h=V=E[5],E.length===6?(f=Math.sqrt(D*D+O*O),m=Math.sqrt(j*j+L*L),p=D||O?wr(O,D)*Ls:0,k=L||j?wr(L,j)*Ls+p:0,k&&(m*=Math.abs(Math.cos(k*Ir))),s.svg&&(u-=y-(y*D+x*L),h-=x-(y*O+x*j))):(I=E[6],z=E[7],K=E[8],J=E[9],F=E[10],S=E[11],u=E[12],h=E[13],d=E[14],w=wr(I,F),g=w*Ls,w&&(C=Math.cos(-w),A=Math.sin(-w),U=W*C+K*A,B=V*C+J*A,X=I*C+F*A,K=W*-A+K*C,J=V*-A+J*C,F=I*-A+F*C,S=z*-A+S*C,W=U,V=B,I=X),w=wr(-L,F),_=w*Ls,w&&(C=Math.cos(-w),A=Math.sin(-w),U=D*C-K*A,B=O*C-J*A,X=L*C-F*A,S=j*A+S*C,D=U,O=B,L=X),w=wr(O,D),p=w*Ls,w&&(C=Math.cos(w),A=Math.sin(w),U=D*C+O*A,B=W*C+V*A,O=O*C-D*A,V=V*C-W*A,D=U,W=B),g&&Math.abs(g)+Math.abs(p)>359.9&&(g=p=0,_=180-_),f=st(Math.sqrt(D*D+O*O+L*L)),m=st(Math.sqrt(V*V+I*I)),w=wr(W,V),k=Math.abs(w)>2e-4?w*Ls:0,b=S?1/(S<0?-S:S):0),s.svg&&(U=e.getAttribute("transform"),s.forceCSS=e.setAttribute("transform","")||!p_(Cn(e,Xe)),U&&e.setAttribute("transform",U))),Math.abs(k)>90&&Math.abs(k)<270&&(i?(f*=-1,k+=p<=0?180:-180,p+=p<=0?180:-180):(m*=-1,k+=k<=0?180:-180)),t=t||s.uncache,s.x=u-((s.xPercent=u&&(!t&&s.xPercent||(Math.round(e.offsetWidth/2)===Math.round(-u)?-50:0)))?e.offsetWidth*s.xPercent/100:0)+o,s.y=h-((s.yPercent=h&&(!t&&s.yPercent||(Math.round(e.offsetHeight/2)===Math.round(-h)?-50:0)))?e.offsetHeight*s.yPercent/100:0)+o,s.z=d+o,s.scaleX=st(f),s.scaleY=st(m),s.rotation=st(p)+a,s.rotationX=st(g)+a,s.rotationY=st(_)+a,s.skewX=k+a,s.skewY=T+a,s.transformPerspective=b+o,(s.zOrigin=parseFloat(l.split(" ")[2])||!t&&s.zOrigin||0)&&(r[Mt]=sc(l)),s.xOffset=s.yOffset=0,s.force3D=Bt.force3D,s.renderTransform=s.svg?VD:u_?m_:zD,s.uncache=0,s},sc=function(e){return(e=e.split(" "))[0]+" "+e[1]},pl=function(e,t,s){var r=pt(t);return st(parseFloat(t)+parseFloat(Os(e,"x",s+"px",r)))+r},zD=function(e,t){t.z="0px",t.rotationY=t.rotationX="0deg",t.force3D=0,m_(e,t)},$s="0deg",Ci="0px",Fs=") ",m_=function(e,t){var s=t||this,r=s.xPercent,i=s.yPercent,o=s.x,a=s.y,c=s.z,l=s.rotation,u=s.rotationY,h=s.rotationX,d=s.skewX,f=s.skewY,m=s.scaleX,p=s.scaleY,g=s.transformPerspective,_=s.force3D,k=s.target,T=s.zOrigin,b="",y=_==="auto"&&e&&e!==1||_===!0;if(T&&(h!==$s||u!==$s)){var x=parseFloat(u)*Ir,E=Math.sin(x),w=Math.cos(x),C;x=parseFloat(h)*Ir,C=Math.cos(x),o=pl(k,o,E*C*-T),a=pl(k,a,-Math.sin(x)*-T),c=pl(k,c,w*C*-T+T)}g!==Ci&&(b+="perspective("+g+Fs),(r||i)&&(b+="translate("+r+"%, "+i+"%) "),(y||o!==Ci||a!==Ci||c!==Ci)&&(b+=c!==Ci||y?"translate3d("+o+", "+a+", "+c+") ":"translate("+o+", "+a+Fs),l!==$s&&(b+="rotate("+l+Fs),u!==$s&&(b+="rotateY("+u+Fs),h!==$s&&(b+="rotateX("+h+Fs),(d!==$s||f!==$s)&&(b+="skew("+d+", "+f+Fs),(m!==1||p!==1)&&(b+="scale("+m+", "+p+Fs),k.style[Xe]=b||"translate(0, 0)"},VD=function(e,t){var s=t||this,r=s.xPercent,i=s.yPercent,o=s.x,a=s.y,c=s.rotation,l=s.skewX,u=s.skewY,h=s.scaleX,d=s.scaleY,f=s.target,m=s.xOrigin,p=s.yOrigin,g=s.xOffset,_=s.yOffset,k=s.forceCSS,T=parseFloat(o),b=parseFloat(a),y,x,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,y=Math.cos(c)*h,x=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),y*=C,x*=C)),y=st(y),x=st(x),E=st(E),w=st(w)):(y=h,w=d,x=E=0),(T&&!~(o+"").indexOf("px")||b&&!~(a+"").indexOf("px"))&&(T=Os(f,"x",o,"px"),b=Os(f,"y",a,"px")),(m||p||g||_)&&(T=st(T+m-(m*y+p*E)+g),b=st(b+p-(m*x+p*w)+_)),(r||i)&&(C=f.getBBox(),T=st(T+r/100*C.width),b=st(b+i/100*C.height)),C="matrix("+y+","+x+","+E+","+w+","+T+","+b+")",f.setAttribute("transform",C),k&&(f.style[Xe]=C)},UD=function(e,t,s,r,i){var o=360,a=dt(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*Zf)%o-~~(l/o)*o:h==="ccw"&&l>0&&(l=(l-o*Zf)%o-~~(l/o)*o)),e._pt=d=new Pt(e._pt,t,s,r,l,ED),d.e=u,d.u="deg",e._props.push(s),d},np=function(e,t){for(var s in t)e[s]=t[s];return e},BD=function(e,t,s){var r=np({},s._gsap),i="perspective,force3D,transformOrigin,svgOrigin",o=s.style,a,c,l,u,h,d,f,m;r.svg?(l=s.getAttribute("transform"),s.setAttribute("transform",""),o[Xe]=t,a=mo(s,1),or(s,Xe),s.setAttribute("transform",l)):(l=getComputedStyle(s)[Xe],o[Xe]=t,a=mo(s,1),o[Xe]=l);for(c in es)l=r[c],u=a[c],l!==u&&i.indexOf(c)<0&&(f=pt(l),m=pt(u),h=f!==m?Os(s,c,l,m):parseFloat(l),d=parseFloat(u),e._pt=new Pt(e._pt,a,c,h,d-h,lu),e._pt.u=m||0,e._props.push(c));np(a,r)};Dt("padding,margin,Width,Radius",function(n,e){var t="Top",s="Right",r="Bottom",i="Left",o=(e<3?[t,s,r,i]:[t+i,t+s,r+s,r+i]).map(function(a){return e<2?n+a:"border"+a+n});nc[e>1?"border"+n:n]=function(a,c,l,u,h){var d,f;if(arguments.length<4)return d=o.map(function(m){return Un(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 g_={name:"css",register:hu,targetTest:function(e){return e.style&&e.nodeType},init:function(e,t,s,r,i){var o=this._props,a=e.style,c=s.vars.startAt,l,u,h,d,f,m,p,g,_,k,T,b,y,x,E,w;Dh||hu(),this.styles=this.styles||l_(e),w=this.styles.props,this.tween=s;for(p in t)if(p!=="autoRound"&&(u=t[p],!(Ft[p]&&Qg(p,t,s,r,e,i)))){if(f=typeof u,m=nc[p],f==="function"&&(u=u.call(s,r,e,i),f=typeof u),f==="string"&&~u.indexOf("random(")&&(u=uo(u)),m)m(this,e,p,u,s)&&(E=1);else if(p.substr(0,2)==="--")l=(getComputedStyle(e).getPropertyValue(p)+"").trim(),u+="",_s.lastIndex=0,_s.test(l)||(g=pt(l),_=pt(u)),_?g!==_&&(l=Os(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(s,r,e,i):c[p],dt(l)&&~l.indexOf("random(")&&(l=uo(l)),pt(l+"")||l==="auto"||(l+=Bt.units[p]||pt(Un(e,p))||""),(l+"").charAt(1)==="="&&(l=Un(e,p))):l=Un(e,p),d=parseFloat(l),k=f==="string"&&u.charAt(1)==="="&&u.substr(0,2),k&&(u=u.substr(2)),h=parseFloat(u),p in kn&&(p==="autoAlpha"&&(d===1&&Un(e,"visibility")==="hidden"&&h&&(d=0),w.push("visibility",0,a.visibility),fs(this,a,"visibility",d?"inherit":"hidden",h?"inherit":"hidden",!h)),p!=="scale"&&p!=="transform"&&(p=kn[p],~p.indexOf(",")&&(p=p.split(",")[0]))),T=p in es,T){if(this.styles.save(p),b||(y=e._gsap,y.renderTransform&&!t.parseTransform||mo(e,t.parseTransform),x=t.smoothOrigin!==!1&&y.smooth,b=this._pt=new Pt(this._pt,a,Xe,0,1,y.renderTransform,y,0,-1),b.dep=1),p==="scale")this._pt=new Pt(this._pt,y,"scaleY",y.scaleY,(k?Mr(y.scaleY,k+h):h)-y.scaleY||0,lu),this._pt.u=0,o.push("scaleY",p),p+="X";else if(p==="transformOrigin"){w.push(Mt,0,a[Mt]),u=LD(u),y.svg?du(e,u,0,x,0,this):(_=parseFloat(u.split(" ")[2])||0,_!==y.zOrigin&&fs(this,y,"zOrigin",y.zOrigin,_),fs(this,a,p,sc(l),sc(u)));continue}else if(p==="svgOrigin"){du(e,u,1,x,0,this);continue}else if(p in f_){UD(this,y,p,d,k?Mr(d,k+u):u);continue}else if(p==="smoothOrigin"){fs(this,y,"smooth",y.smooth,u);continue}else if(p==="force3D"){y[p]=u;continue}else if(p==="transform"){BD(this,u,e);continue}}else p in a||(p=Kr(p)||p);if(T||(h||h===0)&&(d||d===0)&&!kD.test(u)&&p in a)g=(l+"").substr((d+"").length),h||(h=0),_=pt(u)||(p in Bt.units?Bt.units[p]:g),g!==_&&(d=Os(e,p,l,_)),this._pt=new Pt(this._pt,T?y:a,p,d,(k?Mr(d,k+h):h)-d,!T&&(_==="px"||p==="zIndex")&&t.autoRound!==!1?SD:lu),this._pt.u=_||0,g!==_&&_!=="%"&&(this._pt.b=l,this._pt.r=CD);else if(p in a)FD.call(this,e,p,l,k?k+u:u);else if(p in e)this.add(e,p,l||e[p],k?k+u:u,r,i);else if(p!=="parseTransform"){wh(p,u);continue}T||(p in a?w.push(p,0,a[p]):w.push(p,1,l||e[p])),o.push(p)}}E&&r_(this)},render:function(e,t){if(t.tween._time||!Ph())for(var s=t._pt;s;)s.r(e,s.d),s=s._next;else t.styles.revert()},get:Un,aliases:kn,getSetter:function(e,t,s){var r=kn[t];return r&&r.indexOf(",")<0&&(t=r),t in es&&t!==Mt&&(e._gsap.x||Un(e,"x"))?s&&Xf===s?t==="scale"?DD:RD:(Xf=s||{})&&(t==="scale"?PD:MD):e.style&&!vh(e.style[t])?OD:~t.indexOf("-")?AD:Ah(e,t)},core:{_removeProperty:or,_getMatrix:Nh}};It.utils.checkPrefix=Kr;It.core.getStyleSaver=l_;(function(n,e,t,s){var r=Dt(n+","+e+","+t,function(i){es[i]=1});Dt(e,function(i){Bt.units[i]="deg",f_[i]=1}),kn[r[13]]=n+","+e,Dt(s,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");Dt("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(n){Bt.units[n]="px"});It.registerPlugin(g_);var Ks=It.registerPlugin(g_)||It;Ks.core.Tween;const __=n=>{const e=v.useRef(null),t=v.useRef(null),s=Wt(f=>f.nodesNormalized),{label:r,source:i,target:o,sourceX:a,sourceY:c,sourceZ:l,targetX:u,targetY:h,targetZ:d}=n;return v.useEffect(()=>{if(e.current){const f=e.current;Ks.fromTo(f.material,{linewidth:gf*15},{linewidth:gf,duration:1})}},[e,a]),nn(()=>{const f=s.get(i),m=s.get(o);if(!e.current||!t.current||!f||!m)return;const{hoveredNode:p,searchQuery:g,selectedNodeTypes:_,selectedLinkTypes:k}=Ue.getState(),T=e.current,b=p,y=k.includes(r)||_.includes(f==null?void 0:f.node_type)&&_.includes(m.node_type);if(!y&&!b&&!g){t.current.visible=!1;return}T.visible=!1,t.current.visible=!1,y&&(T.visible=!0,t.current.visible=!0),(b==null?void 0:b.ref_id)===i||(b==null?void 0:b.ref_id)===o?(T.visible=!0,t.current.visible=!0,Ks.to(T.material,{linewidth:6,duration:.5,ease:"power1.out"})):Ks.to(T.material,{linewidth:1,duration:.5,ease:"power1.out"})}),M.jsxs("group",{ref:t,children:[M.jsx(mp,{ref:e,color:"white",isLine2:!0,lineWidth:2,name:"line",points:[a,c,l,u,h,d]}),M.jsx(Eu,{children:M.jsx(_u,{anchorX:"center",anchorY:"middle",color:"white",...yu,fontSize:10,children:r})})]})};__.displayName="LineComponent";const WD=v.memo(__),sp=new ye(0,0,0),y_=v.memo(n=>{const{sourceX:e,sourceY:t,sourceZ:s,targetX:r,targetY:i,targetZ:o,color:a}=n,c=v.useRef(null);return nn(()=>{c.current&&(c.current.start.set(e||0,t||0,s||0),c.current.end.set(r,i,o))}),M.jsx(M.Fragment,{children:M.jsx(T1,{ref:c,color:a,end:sp,start:sp})})});y_.displayName="LineInstance";const v_=v.memo(({linksPosition:n})=>{var l;const[e,t]=Wt(u=>[u.dataInitial,u.nodesNormalized]),[s,r,i,o,a]=Ue(u=>[u.showSelectionGraph,u.searchQuery,u.selectedNodeTypes,u.highlightNodes,u.hoveredNode]),c=Hn(u=>u.normalizedSchemasByType);return M.jsxs(M.Fragment,{children:[M.jsx("group",{name:"simulation-3d-group__connections",visible:!s,children:(l=e==null?void 0:e.links)!=null&&l.length?M.jsx(M.Fragment,{children:e==null?void 0:e.links.map(u=>{const h=n.get(u.ref_id)||{sx:0,sy:0,sz:0,tx:0,ty:0,tz:0};return M.jsx(WD,{label:u.edge_type,source:u.source,sourceX:h.sx,sourceY:h.sy,sourceZ:h.sz,target:u.target,targetX:h.tx,targetY:h.ty,targetZ:h.tz},u.ref_id)})}):null}),M.jsx("group",{visible:!r&&!i.length&&!o.length&&!a,children:M.jsx(x1,{limit:1e3,lineWidth:.05,children:e==null?void 0:e.links.map(u=>{var p;const h=n.get(u.ref_id)||{sx:0,sy:0,sz:0,tx:0,ty:0,tz:0},d=t.get(u.source)||"",m=(d?(p=c[d.node_type])==null?void 0:p.primary_color:"white")||"white";return M.jsx(y_,{color:m,sourceX:h.sx,sourceY:h.sy,sourceZ:h.sz,targetX:h.tx,targetY:h.ty,targetZ:h.tz},u.ref_id)})})},e==null?void 0:e.links.length)]})});v_.displayName="Connections";const qD=({node:n,isFixed:e,isLast:t})=>{var h,d,f;const{normalizedSchemasByType:s,getNodeKeysByType:r}=Hn(m=>m),i=v.useRef(null),o=(h=s[n.node_type])==null?void 0:h.icon,a=o?cc[o]:null,c=r(n.node_type)||"",l=n!=null&&n.properties?n==null?void 0:n.properties[c]:"",u=l?ha(l,30):"";return v.useEffect(()=>{i.current&&e&&Ks.to(i.current,{scale:.1,duration:1,ease:"power3.out"})},[e]),M.jsx(ac,{ref:i,as:"div",center:!0,className:"sprite",sprite:!0,children:t||e?M.jsx(HD,{align:"center",justify:"center",children:M.jsxs(M.Fragment,{children:[M.jsx(GD,{children:M.jsx(XD,{align:"center",height:32,justify:"center",radius:"50%",src:((d=n==null?void 0:n.properties)==null?void 0:d.image_url)||"",width:32,children:(f=n==null?void 0:n.properties)!=null&&f.image_url?null:M.jsx("span",{children:a?M.jsx(a,{}):M.jsx(da,{})})})}),M.jsx(YD,{children:u})]})}):null})},HD=ve(Fe)` +*/var Gf,ds,Nr,Dh,Us,Xf,Ph,xD=function(){return typeof window<"u"},es={},Ls=180/Math.PI,Ir=Math.PI/180,wr=Math.atan2,Zf=1e8,Mh=/([A-Z])/g,wD=/(left|right|width|margin|padding|x)/i,TD=/[\s,\(]\S/,kn={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},lu=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},kD=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)},ED=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)},CD=function(e,t){var s=t.s+t.c*e;t.set(t.t,t.p,~~(s+(s<0?-.5:.5))+t.u,t)},i_=function(e,t){return t.set(t.t,t.p,e?t.e:t.b,t)},o_=function(e,t){return t.set(t.t,t.p,e!==1?t.b:t.e,t)},SD=function(e,t,s){return e.style[t]=s},OD=function(e,t,s){return e.style.setProperty(t,s)},AD=function(e,t,s){return e._gsap[t]=s},RD=function(e,t,s){return e._gsap.scaleX=e._gsap.scaleY=s},DD=function(e,t,s,r,i){var o=e._gsap;o.scaleX=o.scaleY=s,o.renderTransform(i,o)},PD=function(e,t,s,r,i){var o=e._gsap;o[t]=s,o.renderTransform(i,o)},Xe="transform",Mt=Xe+"Origin",MD=function n(e,t){var s=this,r=this.target,i=r.style,o=r._gsap;if(e in es&&i){if(this.tfm=this.tfm||{},e!=="transform")e=kn[e]||e,~e.indexOf(",")?e.split(",").forEach(function(a){return s.tfm[a]=Un(r,a)}):this.tfm[e]=o.x?o[e]:Un(r,e),e===Mt&&(this.tfm.zOrigin=o.zOrigin);else return kn.transform.split(",").forEach(function(a){return n.call(s,a,t)});if(this.props.indexOf(Xe)>=0)return;o.svg&&(this.svgo=r.getAttribute("data-svg-origin"),this.props.push(Mt,t,"")),e=Xe}(i||t)&&this.props.push(e,t,i[e])},a_=function(e){e.translate&&(e.removeProperty("translate"),e.removeProperty("scale"),e.removeProperty("rotate"))},ND=function(){var e=this.props,t=this.target,s=t.style,r=t._gsap,i,o;for(i=0;i=0?Kf[o]:"")+e},hu=function(){xD()&&window.document&&(Gf=window,ds=Gf.document,Nr=ds.documentElement,Us=uu("div")||{style:{}},uu("div"),Xe=Kr(Xe),Mt=Xe+"Origin",Us.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",l_=!!Kr("perspective"),Ph=It.core.reverting,Dh=1)},fl=function n(e){var t=uu("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),s=this.parentNode,r=this.nextSibling,i=this.style.cssText,o;if(Nr.appendChild(t),t.appendChild(this),this.style.display="block",e)try{o=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=n}catch{}else this._gsapBBox&&(o=this._gsapBBox());return s&&(r?s.insertBefore(this,r):s.appendChild(this)),Nr.removeChild(t),this.style.cssText=i,o},Qf=function(e,t){for(var s=t.length;s--;)if(e.hasAttribute(t[s]))return e.getAttribute(t[s])},u_=function(e){var t;try{t=e.getBBox()}catch{t=fl.call(e,!0)}return t&&(t.width||t.height)||e.getBBox===fl||(t=fl.call(e,!0)),t&&!t.width&&!t.x&&!t.y?{x:+Qf(e,["x","cx","x1"])||0,y:+Qf(e,["y","cy","y1"])||0,width:0,height:0}:t},h_=function(e){return!!(e.getCTM&&(!e.parentNode||e.ownerSVGElement)&&u_(e))},or=function(e,t){if(t){var s=e.style,r;t in es&&t!==Mt&&(t=Xe),s.removeProperty?(r=t.substr(0,2),(r==="ms"||t.substr(0,6)==="webkit")&&(t="-"+t),s.removeProperty(r==="--"?t:t.replace(Mh,"-$1").toLowerCase())):s.removeAttribute(t)}},fs=function(e,t,s,r,i,o){var a=new Pt(e._pt,t,s,0,1,o?o_:i_);return e._pt=a,a.b=r,a.e=i,e._props.push(s),a},Jf={deg:1,rad:1,turn:1},ID={grid:1,flex:1},Os=function n(e,t,s,r){var i=parseFloat(s)||0,o=(s+"").trim().substr((i+"").length)||"px",a=Us.style,c=wD.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||Jf[r]||Jf[o])return i;if(o!=="px"&&!d&&(i=n(e,t,s,"px")),_=e.getCTM&&h_(e),(f||o==="%")&&(es[t]||~t.indexOf("adius")))return m=_?e.getBBox()[c?"width":"height"]:e[u],st(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===ds||!p.appendChild)&&(p=ds.body),g=p._gsap,g&&f&&g.width&&c&&g.time===jt.time&&!g.uncache)return st(i/g.width*h);if(f&&(t==="height"||t==="width")){var k=e.style[t];e.style[t]=h+r,m=e[u],k?e.style[t]=k:or(e,t)}else(f||o==="%")&&!ID[Cn(p,"display")]&&(a.position=Cn(e,"position")),p===e&&(a.position="static"),p.appendChild(Us),m=Us[u],p.removeChild(Us),a.position="absolute";return c&&f&&(g=Ys(p),g.time=jt.time,g.width=p[u]),st(d?m*i/h:m&&i?h/m*i:0)},Un=function(e,t,s,r){var i;return Dh||hu(),t in kn&&t!=="transform"&&(t=kn[t],~t.indexOf(",")&&(t=t.split(",")[0])),es[t]&&t!=="transform"?(i=mo(e,r),i=t!=="transformOrigin"?i[t]:i.svg?i.origin:sc(Cn(e,Mt))+" "+i.zOrigin+"px"):(i=e.style[t],(!i||i==="auto"||r||~(i+"").indexOf("calc("))&&(i=nc[t]&&nc[t](e,t,s)||Cn(e,t)||Sg(e,t)||(t==="opacity"?1:0))),s&&!~(i+"").trim().indexOf(" ")?Os(e,t,i,s)+s:i},$D=function(e,t,s,r){if(!s||s==="none"){var i=Kr(t,e,1),o=i&&Cn(e,i,1);o&&o!==s?(t=i,s=o):t==="borderColor"&&(s=Cn(e,"borderTopColor"))}var a=new Pt(this._pt,e.style,t,0,1,n_),c=0,l=0,u,h,d,f,m,p,g,_,k,T,b,y;if(a.b=s,a.e=r,s+="",r+="",r==="auto"&&(p=e.style[t],e.style[t]=r,r=Cn(e,t)||r,p?e.style[t]=p:or(e,t)),u=[s,r],Hg(u),s=u[0],r=u[1],d=s.match(Sr)||[],y=r.match(Sr)||[],y.length){for(;h=Sr.exec(r);)g=h[0],k=r.substring(c,h.index),m?m=(m+1)%5:(k.substr(-5)==="rgba("||k.substr(-5)==="hsla(")&&(m=1),g!==(p=d[l++]||"")&&(f=parseFloat(p)||0,b=p.substr((f+"").length),g.charAt(1)==="="&&(g=Mr(f,g)+b),_=parseFloat(g),T=g.substr((_+"").length),c=Sr.lastIndex-T.length,T||(T=T||Bt.units[t]||b,c===r.length&&(r+=T,a.e+=T)),b!==T&&(f=Os(e,t,p,T)||0),a._pt={_next:a._pt,p:k||l===1?k:",",s:f,c:_-f,m:m&&m<4||t==="zIndex"?Math.round:0});a.c=c-1;)a=i[l],es[a]&&(c=1,a=a==="transformOrigin"?Mt:Xe),or(s,a);c&&(or(s,Xe),o&&(o.svg&&s.removeAttribute("transform"),mo(s,1),o.uncache=1,a_(r)))}},nc={clearProps:function(e,t,s,r,i){if(i.data!=="isFromStart"){var o=e._pt=new Pt(e._pt,t,s,0,0,LD);return o.u=r,o.pr=-10,o.tween=i,e._props.push(s),1}}},po=[1,0,0,1,0,0],d_={},f_=function(e){return e==="matrix(1, 0, 0, 1, 0, 0)"||e==="none"||!e},tp=function(e){var t=Cn(e,Xe);return f_(t)?po:t.substr(7).match(bg).map(st)},Nh=function(e,t){var s=e._gsap||Ys(e),r=e.style,i=tp(e),o,a,c,l;return s.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!==Nr&&!s.svg&&(c=r.display,r.display="block",o=e.parentNode,(!o||!e.offsetParent)&&(l=1,a=e.nextElementSibling,Nr.appendChild(e)),i=tp(e),c?r.display=c:or(e,"display"),l&&(a?o.insertBefore(e,a):o?o.appendChild(e):Nr.removeChild(e))),t&&i.length>6?[i[0],i[1],i[4],i[5],i[12],i[13]]:i)},du=function(e,t,s,r,i,o){var a=e._gsap,c=i||Nh(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],k=c[5],T=t.split(" "),b=parseFloat(T[0])||0,y=parseFloat(T[1])||0,x,E,w,C;s?c!==po&&(E=f*g-m*p)&&(w=b*(g/E)+y*(-p/E)+(p*k-g*_)/E,C=b*(-m/E)+y*(f/E)-(f*k-m*_)/E,b=w,y=C):(x=u_(e),b=x.x+(~T[0].indexOf("%")?b/100*x.width:b),y=x.y+(~(T[1]||T[0]).indexOf("%")?y/100*x.height:y)),r||r!==!1&&a.smooth?(_=b-l,k=y-u,a.xOffset=h+(_*f+k*p)-_,a.yOffset=d+(_*m+k*g)-k):a.xOffset=a.yOffset=0,a.xOrigin=b,a.yOrigin=y,a.smooth=!!r,a.origin=t,a.originIsAbsolute=!!s,e.style[Mt]="0px 0px",o&&(fs(o,a,"xOrigin",l,b),fs(o,a,"yOrigin",u,y),fs(o,a,"xOffset",h,a.xOffset),fs(o,a,"yOffset",d,a.yOffset)),e.setAttribute("data-svg-origin",b+" "+y)},mo=function(e,t){var s=e._gsap||new Zg(e);if("x"in s&&!t&&!s.uncache)return s;var r=e.style,i=s.scaleX<0,o="px",a="deg",c=getComputedStyle(e),l=Cn(e,Mt)||"0",u,h,d,f,m,p,g,_,k,T,b,y,x,E,w,C,A,D,O,L,j,W,V,U,B,X,K,J,F,z,S,I;return u=h=d=p=g=_=k=T=b=0,f=m=1,s.svg=!!(e.getCTM&&h_(e)),c.translate&&((c.translate!=="none"||c.scale!=="none"||c.rotate!=="none")&&(r[Xe]=(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[Xe]!=="none"?c[Xe]:"")),r.scale=r.rotate=r.translate="none"),E=Nh(e,s.svg),s.svg&&(s.uncache?(B=e.getBBox(),l=s.xOrigin-B.x+"px "+(s.yOrigin-B.y)+"px",U=""):U=!t&&e.getAttribute("data-svg-origin"),du(e,U||l,!!U||s.originIsAbsolute,s.smooth!==!1,E)),y=s.xOrigin||0,x=s.yOrigin||0,E!==po&&(D=E[0],O=E[1],L=E[2],j=E[3],u=W=E[4],h=V=E[5],E.length===6?(f=Math.sqrt(D*D+O*O),m=Math.sqrt(j*j+L*L),p=D||O?wr(O,D)*Ls:0,k=L||j?wr(L,j)*Ls+p:0,k&&(m*=Math.abs(Math.cos(k*Ir))),s.svg&&(u-=y-(y*D+x*L),h-=x-(y*O+x*j))):(I=E[6],z=E[7],K=E[8],J=E[9],F=E[10],S=E[11],u=E[12],h=E[13],d=E[14],w=wr(I,F),g=w*Ls,w&&(C=Math.cos(-w),A=Math.sin(-w),U=W*C+K*A,B=V*C+J*A,X=I*C+F*A,K=W*-A+K*C,J=V*-A+J*C,F=I*-A+F*C,S=z*-A+S*C,W=U,V=B,I=X),w=wr(-L,F),_=w*Ls,w&&(C=Math.cos(-w),A=Math.sin(-w),U=D*C-K*A,B=O*C-J*A,X=L*C-F*A,S=j*A+S*C,D=U,O=B,L=X),w=wr(O,D),p=w*Ls,w&&(C=Math.cos(w),A=Math.sin(w),U=D*C+O*A,B=W*C+V*A,O=O*C-D*A,V=V*C-W*A,D=U,W=B),g&&Math.abs(g)+Math.abs(p)>359.9&&(g=p=0,_=180-_),f=st(Math.sqrt(D*D+O*O+L*L)),m=st(Math.sqrt(V*V+I*I)),w=wr(W,V),k=Math.abs(w)>2e-4?w*Ls:0,b=S?1/(S<0?-S:S):0),s.svg&&(U=e.getAttribute("transform"),s.forceCSS=e.setAttribute("transform","")||!f_(Cn(e,Xe)),U&&e.setAttribute("transform",U))),Math.abs(k)>90&&Math.abs(k)<270&&(i?(f*=-1,k+=p<=0?180:-180,p+=p<=0?180:-180):(m*=-1,k+=k<=0?180:-180)),t=t||s.uncache,s.x=u-((s.xPercent=u&&(!t&&s.xPercent||(Math.round(e.offsetWidth/2)===Math.round(-u)?-50:0)))?e.offsetWidth*s.xPercent/100:0)+o,s.y=h-((s.yPercent=h&&(!t&&s.yPercent||(Math.round(e.offsetHeight/2)===Math.round(-h)?-50:0)))?e.offsetHeight*s.yPercent/100:0)+o,s.z=d+o,s.scaleX=st(f),s.scaleY=st(m),s.rotation=st(p)+a,s.rotationX=st(g)+a,s.rotationY=st(_)+a,s.skewX=k+a,s.skewY=T+a,s.transformPerspective=b+o,(s.zOrigin=parseFloat(l.split(" ")[2])||!t&&s.zOrigin||0)&&(r[Mt]=sc(l)),s.xOffset=s.yOffset=0,s.force3D=Bt.force3D,s.renderTransform=s.svg?zD:l_?p_:jD,s.uncache=0,s},sc=function(e){return(e=e.split(" "))[0]+" "+e[1]},pl=function(e,t,s){var r=pt(t);return st(parseFloat(t)+parseFloat(Os(e,"x",s+"px",r)))+r},jD=function(e,t){t.z="0px",t.rotationY=t.rotationX="0deg",t.force3D=0,p_(e,t)},$s="0deg",Ci="0px",Fs=") ",p_=function(e,t){var s=t||this,r=s.xPercent,i=s.yPercent,o=s.x,a=s.y,c=s.z,l=s.rotation,u=s.rotationY,h=s.rotationX,d=s.skewX,f=s.skewY,m=s.scaleX,p=s.scaleY,g=s.transformPerspective,_=s.force3D,k=s.target,T=s.zOrigin,b="",y=_==="auto"&&e&&e!==1||_===!0;if(T&&(h!==$s||u!==$s)){var x=parseFloat(u)*Ir,E=Math.sin(x),w=Math.cos(x),C;x=parseFloat(h)*Ir,C=Math.cos(x),o=pl(k,o,E*C*-T),a=pl(k,a,-Math.sin(x)*-T),c=pl(k,c,w*C*-T+T)}g!==Ci&&(b+="perspective("+g+Fs),(r||i)&&(b+="translate("+r+"%, "+i+"%) "),(y||o!==Ci||a!==Ci||c!==Ci)&&(b+=c!==Ci||y?"translate3d("+o+", "+a+", "+c+") ":"translate("+o+", "+a+Fs),l!==$s&&(b+="rotate("+l+Fs),u!==$s&&(b+="rotateY("+u+Fs),h!==$s&&(b+="rotateX("+h+Fs),(d!==$s||f!==$s)&&(b+="skew("+d+", "+f+Fs),(m!==1||p!==1)&&(b+="scale("+m+", "+p+Fs),k.style[Xe]=b||"translate(0, 0)"},zD=function(e,t){var s=t||this,r=s.xPercent,i=s.yPercent,o=s.x,a=s.y,c=s.rotation,l=s.skewX,u=s.skewY,h=s.scaleX,d=s.scaleY,f=s.target,m=s.xOrigin,p=s.yOrigin,g=s.xOffset,_=s.yOffset,k=s.forceCSS,T=parseFloat(o),b=parseFloat(a),y,x,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,y=Math.cos(c)*h,x=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),y*=C,x*=C)),y=st(y),x=st(x),E=st(E),w=st(w)):(y=h,w=d,x=E=0),(T&&!~(o+"").indexOf("px")||b&&!~(a+"").indexOf("px"))&&(T=Os(f,"x",o,"px"),b=Os(f,"y",a,"px")),(m||p||g||_)&&(T=st(T+m-(m*y+p*E)+g),b=st(b+p-(m*x+p*w)+_)),(r||i)&&(C=f.getBBox(),T=st(T+r/100*C.width),b=st(b+i/100*C.height)),C="matrix("+y+","+x+","+E+","+w+","+T+","+b+")",f.setAttribute("transform",C),k&&(f.style[Xe]=C)},VD=function(e,t,s,r,i){var o=360,a=dt(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*Zf)%o-~~(l/o)*o:h==="ccw"&&l>0&&(l=(l-o*Zf)%o-~~(l/o)*o)),e._pt=d=new Pt(e._pt,t,s,r,l,kD),d.e=u,d.u="deg",e._props.push(s),d},np=function(e,t){for(var s in t)e[s]=t[s];return e},UD=function(e,t,s){var r=np({},s._gsap),i="perspective,force3D,transformOrigin,svgOrigin",o=s.style,a,c,l,u,h,d,f,m;r.svg?(l=s.getAttribute("transform"),s.setAttribute("transform",""),o[Xe]=t,a=mo(s,1),or(s,Xe),s.setAttribute("transform",l)):(l=getComputedStyle(s)[Xe],o[Xe]=t,a=mo(s,1),o[Xe]=l);for(c in es)l=r[c],u=a[c],l!==u&&i.indexOf(c)<0&&(f=pt(l),m=pt(u),h=f!==m?Os(s,c,l,m):parseFloat(l),d=parseFloat(u),e._pt=new Pt(e._pt,a,c,h,d-h,lu),e._pt.u=m||0,e._props.push(c));np(a,r)};Dt("padding,margin,Width,Radius",function(n,e){var t="Top",s="Right",r="Bottom",i="Left",o=(e<3?[t,s,r,i]:[t+i,t+s,r+s,r+i]).map(function(a){return e<2?n+a:"border"+a+n});nc[e>1?"border"+n:n]=function(a,c,l,u,h){var d,f;if(arguments.length<4)return d=o.map(function(m){return Un(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 m_={name:"css",register:hu,targetTest:function(e){return e.style&&e.nodeType},init:function(e,t,s,r,i){var o=this._props,a=e.style,c=s.vars.startAt,l,u,h,d,f,m,p,g,_,k,T,b,y,x,E,w;Dh||hu(),this.styles=this.styles||c_(e),w=this.styles.props,this.tween=s;for(p in t)if(p!=="autoRound"&&(u=t[p],!(Ft[p]&&Kg(p,t,s,r,e,i)))){if(f=typeof u,m=nc[p],f==="function"&&(u=u.call(s,r,e,i),f=typeof u),f==="string"&&~u.indexOf("random(")&&(u=uo(u)),m)m(this,e,p,u,s)&&(E=1);else if(p.substr(0,2)==="--")l=(getComputedStyle(e).getPropertyValue(p)+"").trim(),u+="",_s.lastIndex=0,_s.test(l)||(g=pt(l),_=pt(u)),_?g!==_&&(l=Os(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(s,r,e,i):c[p],dt(l)&&~l.indexOf("random(")&&(l=uo(l)),pt(l+"")||l==="auto"||(l+=Bt.units[p]||pt(Un(e,p))||""),(l+"").charAt(1)==="="&&(l=Un(e,p))):l=Un(e,p),d=parseFloat(l),k=f==="string"&&u.charAt(1)==="="&&u.substr(0,2),k&&(u=u.substr(2)),h=parseFloat(u),p in kn&&(p==="autoAlpha"&&(d===1&&Un(e,"visibility")==="hidden"&&h&&(d=0),w.push("visibility",0,a.visibility),fs(this,a,"visibility",d?"inherit":"hidden",h?"inherit":"hidden",!h)),p!=="scale"&&p!=="transform"&&(p=kn[p],~p.indexOf(",")&&(p=p.split(",")[0]))),T=p in es,T){if(this.styles.save(p),b||(y=e._gsap,y.renderTransform&&!t.parseTransform||mo(e,t.parseTransform),x=t.smoothOrigin!==!1&&y.smooth,b=this._pt=new Pt(this._pt,a,Xe,0,1,y.renderTransform,y,0,-1),b.dep=1),p==="scale")this._pt=new Pt(this._pt,y,"scaleY",y.scaleY,(k?Mr(y.scaleY,k+h):h)-y.scaleY||0,lu),this._pt.u=0,o.push("scaleY",p),p+="X";else if(p==="transformOrigin"){w.push(Mt,0,a[Mt]),u=FD(u),y.svg?du(e,u,0,x,0,this):(_=parseFloat(u.split(" ")[2])||0,_!==y.zOrigin&&fs(this,y,"zOrigin",y.zOrigin,_),fs(this,a,p,sc(l),sc(u)));continue}else if(p==="svgOrigin"){du(e,u,1,x,0,this);continue}else if(p in d_){VD(this,y,p,d,k?Mr(d,k+u):u);continue}else if(p==="smoothOrigin"){fs(this,y,"smooth",y.smooth,u);continue}else if(p==="force3D"){y[p]=u;continue}else if(p==="transform"){UD(this,u,e);continue}}else p in a||(p=Kr(p)||p);if(T||(h||h===0)&&(d||d===0)&&!TD.test(u)&&p in a)g=(l+"").substr((d+"").length),h||(h=0),_=pt(u)||(p in Bt.units?Bt.units[p]:g),g!==_&&(d=Os(e,p,l,_)),this._pt=new Pt(this._pt,T?y:a,p,d,(k?Mr(d,k+h):h)-d,!T&&(_==="px"||p==="zIndex")&&t.autoRound!==!1?CD:lu),this._pt.u=_||0,g!==_&&_!=="%"&&(this._pt.b=l,this._pt.r=ED);else if(p in a)$D.call(this,e,p,l,k?k+u:u);else if(p in e)this.add(e,p,l||e[p],k?k+u:u,r,i);else if(p!=="parseTransform"){wh(p,u);continue}T||(p in a?w.push(p,0,a[p]):w.push(p,1,l||e[p])),o.push(p)}}E&&s_(this)},render:function(e,t){if(t.tween._time||!Ph())for(var s=t._pt;s;)s.r(e,s.d),s=s._next;else t.styles.revert()},get:Un,aliases:kn,getSetter:function(e,t,s){var r=kn[t];return r&&r.indexOf(",")<0&&(t=r),t in es&&t!==Mt&&(e._gsap.x||Un(e,"x"))?s&&Xf===s?t==="scale"?RD:AD:(Xf=s||{})&&(t==="scale"?DD:PD):e.style&&!vh(e.style[t])?SD:~t.indexOf("-")?OD:Ah(e,t)},core:{_removeProperty:or,_getMatrix:Nh}};It.utils.checkPrefix=Kr;It.core.getStyleSaver=c_;(function(n,e,t,s){var r=Dt(n+","+e+","+t,function(i){es[i]=1});Dt(e,function(i){Bt.units[i]="deg",d_[i]=1}),kn[r[13]]=n+","+e,Dt(s,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");Dt("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(n){Bt.units[n]="px"});It.registerPlugin(m_);var Ks=It.registerPlugin(m_)||It;Ks.core.Tween;const g_=n=>{const e=v.useRef(null),t=v.useRef(null),s=Wt(f=>f.nodesNormalized),{label:r,source:i,target:o,sourceX:a,sourceY:c,sourceZ:l,targetX:u,targetY:h,targetZ:d}=n;return v.useEffect(()=>{if(e.current){const f=e.current;Ks.fromTo(f.material,{linewidth:gf*15},{linewidth:gf,duration:1})}},[e,a]),nn(()=>{const f=s.get(i),m=s.get(o);if(!e.current||!t.current||!f||!m)return;const{hoveredNode:p,searchQuery:g,selectedNodeTypes:_,selectedLinkTypes:k}=Ue.getState(),T=e.current,b=p,y=k.includes(r)||_.includes(f==null?void 0:f.node_type)&&_.includes(m.node_type);if(!y&&!b&&!g){t.current.visible=!1;return}T.visible=!1,t.current.visible=!1,y&&(T.visible=!0,t.current.visible=!0),(b==null?void 0:b.ref_id)===i||(b==null?void 0:b.ref_id)===o?(T.visible=!0,t.current.visible=!0,Ks.to(T.material,{linewidth:6,duration:.5,ease:"power1.out"})):Ks.to(T.material,{linewidth:1,duration:.5,ease:"power1.out"})}),M.jsxs("group",{ref:t,children:[M.jsx(pp,{ref:e,color:"white",isLine2:!0,lineWidth:2,name:"line",points:[a,c,l,u,h,d]}),M.jsx(Eu,{children:M.jsx(_u,{anchorX:"center",anchorY:"middle",color:"white",...yu,fontSize:10,children:r})})]})};g_.displayName="LineComponent";const BD=v.memo(g_),sp=new ye(0,0,0),__=v.memo(n=>{const{sourceX:e,sourceY:t,sourceZ:s,targetX:r,targetY:i,targetZ:o,color:a}=n,c=v.useRef(null);return nn(()=>{c.current&&(c.current.start.set(e||0,t||0,s||0),c.current.end.set(r,i,o))}),M.jsx(M.Fragment,{children:M.jsx(w1,{ref:c,color:a,end:sp,start:sp})})});__.displayName="LineInstance";const y_=v.memo(({linksPosition:n})=>{var l;const[e,t]=Wt(u=>[u.dataInitial,u.nodesNormalized]),[s,r,i,o,a]=Ue(u=>[u.showSelectionGraph,u.searchQuery,u.selectedNodeTypes,u.highlightNodes,u.hoveredNode]),c=Hn(u=>u.normalizedSchemasByType);return M.jsxs(M.Fragment,{children:[M.jsx("group",{name:"simulation-3d-group__connections",visible:!s,children:(l=e==null?void 0:e.links)!=null&&l.length?M.jsx(M.Fragment,{children:e==null?void 0:e.links.map(u=>{const h=n.get(u.ref_id)||{sx:0,sy:0,sz:0,tx:0,ty:0,tz:0};return M.jsx(BD,{label:u.edge_type,source:u.source,sourceX:h.sx,sourceY:h.sy,sourceZ:h.sz,target:u.target,targetX:h.tx,targetY:h.ty,targetZ:h.tz},u.ref_id)})}):null}),M.jsx("group",{visible:!r&&!i.length&&!o.length&&!a,children:M.jsx(b1,{limit:1e3,lineWidth:.05,children:e==null?void 0:e.links.map(u=>{var p;const h=n.get(u.ref_id)||{sx:0,sy:0,sz:0,tx:0,ty:0,tz:0},d=t.get(u.source)||"",m=(d?(p=c[d.node_type])==null?void 0:p.primary_color:"white")||"white";return M.jsx(__,{color:m,sourceX:h.sx,sourceY:h.sy,sourceZ:h.sz,targetX:h.tx,targetY:h.ty,targetZ:h.tz},u.ref_id)})})},e==null?void 0:e.links.length)]})});y_.displayName="Connections";const WD=({node:n,isFixed:e,isLast:t})=>{var h,d,f;const{normalizedSchemasByType:s,getNodeKeysByType:r}=Hn(m=>m),i=v.useRef(null),o=(h=s[n.node_type])==null?void 0:h.icon,a=o?cc[o]:null,c=r(n.node_type)||"",l=n!=null&&n.properties?n==null?void 0:n.properties[c]:"",u=l?ha(l,30):"";return v.useEffect(()=>{i.current&&e&&Ks.to(i.current,{scale:.1,duration:1,ease:"power3.out"})},[e]),M.jsx(ac,{ref:i,as:"div",center:!0,className:"sprite",sprite:!0,children:t||e?M.jsx(qD,{align:"center",justify:"center",children:M.jsxs(M.Fragment,{children:[M.jsx(YD,{children:M.jsx(GD,{align:"center",height:32,justify:"center",radius:"50%",src:((d=n==null?void 0:n.properties)==null?void 0:d.image_url)||"",width:32,children:(f=n==null?void 0:n.properties)!=null&&f.image_url?null:M.jsx("span",{children:a?M.jsx(a,{}):M.jsx(da,{})})})}),M.jsx(HD,{children:u})]})}):null})},qD=ve(Fe)` background: ${ae.gray100}; padding: 8px; border-radius: 8px; -`,YD=ve(Fe)` +`,HD=ve(Fe)` color: ${ae.white}; width: 100px; text-align: center; margin-top: 8px; -`,GD=ve(Fe)` +`,YD=ve(Fe)` text-align: center; width: 48px; height: 48px; @@ -548,7 +548,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho &:hover { outline-offset: 4px; } -`,XD=ve(Fe)` +`,GD=ve(Fe)` background-image: ${({src:n})=>`url(${n})`}; background-size: cover; background-position: center; @@ -557,9 +557,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho height: ${({height:n})=>`${n}px`}; border-radius: ${({radius:n})=>`${n}`}; font-size: 20px; -`,b_=v.memo(n=>{const{node:e,x:t,y:s,z:r,iX:i,iY:o,iZ:a,onRemove:c,isFixed:l,isLast:u}=n,h=v.useRef(null);return v.useEffect(()=>{h.current&&!l&&Ks.fromTo(h.current.position,{x:i,y:o,z:a},{x:t,y:s,z:r,duration:1,ease:"power3.out"})},[t,s,r,i,o,a,l]),v.useEffect(()=>{h.current&&l&&Ks.to(h.current.position,{x:t,y:s,z:r,duration:2,ease:"power3.out",onComplete:()=>{c&&c(e.ref_id)}})},[e.fx,e.fy,e.fz,e.ref_id,c,l,t,s,r]),M.jsx("mesh",{ref:h,position:[i,o,a],scale:e.scale||1,userData:e,children:M.jsx(qD,{isFixed:l,isLast:u,node:e})})});b_.displayName="CandidateWrapper";const x_=v.memo(()=>{const{activeNode:n,simulation:e}=Ue(c=>c),t=v.useRef([""]),[s,r]=v.useState(0),i={x:(n==null?void 0:n.fx)||0,y:(n==null?void 0:n.fy)||0,z:(n==null?void 0:n.fz)||0},o=200,a=c=>{t.current=t.current.filter(l=>l!==c),r(s+1)};return M.jsx(M.Fragment,{children:e.nodes().slice(-5).filter(c=>c.fx===void 0||t.current.some(l=>l===c.ref_id)).map((c,l,u)=>{const d=c.fx||i.x+Math.cos(0)*o,f=c.fy||i.y+Math.sin(0)*o,m=c.fz||i.z;return t.current.includes(c.ref_id)||t.current.push(c.ref_id),M.jsx(b_,{isFixed:typeof c.fx=="number",isLast:l===u.length-1,iX:i.x,iY:i.y,iZ:i.z,node:c,onRemove:a,x:d,y:f,z:m},c.ref_id)})})});x_.displayName="Candidates";const w_=v.memo(({color:n,scale:e,name:t,index:s,node:r,nodeType:i})=>{const o=v.useRef(null),a=v.useRef(null);return nn(()=>{var m;if(!o.current||!a.current)return;const{searchQuery:c,simulation:l,selectedNodeTypes:u,selectedLinkTypes:h}=Ue.getState(),{nodesNormalized:d}=Wt.getState(),f=l==null?void 0:l.nodes()[s];if(typeof(f==null?void 0:f.fx)=="number")o.current.scale.set(e,e,e);else{o.current.scale.set(0,0,0);return}if(c){const p=t.toLowerCase().includes(c.toLowerCase()),g=p?1:.1,_=!!p;a.current.visible=_,o.current.scale.set(g,g,g)}else if(u.length){const p=u.includes(i),g=p?1:.1,_=!!p;a.current.visible=_,o.current.scale.set(g,g,g)}else if(h.length){const p=d.get(r.ref_id),g=(m=p==null?void 0:p.edgeTypes)==null?void 0:m.some(T=>h.includes(T)),_=g?1:.1,k=!!g;a.current.visible=k,o.current.scale.set(_,_,_)}else o.current.scale.set(1,1,1),a.current.visible=!0}),M.jsxs(Eu,{ref:o,follow:!0,lockX:!1,lockY:!1,lockZ:!1,name:"group-name",visible:!1,children:[M.jsxs("mesh",{ref:a,name:"instance-helper",scale:[e,e,e],userData:r,children:[M.jsx("sphereGeometry",{args:[30,16,16]}),M.jsx("meshBasicMaterial",{color:"white",opacity:0,transparent:!0})]}),M.jsx($p,{color:n,name:"instance",scale:e})]})});w_.displayName="Point";const ZD=["#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"],KD=()=>{const n=As(),e=Wt(o=>o.dataInitial),{normalizedSchemasByType:t}=Hn(o=>o),s=pu(),r=v.useMemo(()=>new _y(30,.5,16,100),[]),{getNodeKeysByType:i}=Hn(o=>o);return M.jsx(M.Fragment,{children:M.jsxs(b1,{geometry:r,limit:1e3,range:1e3,visible:!n||!0,children:[M.jsx("meshBasicMaterial",{}),e==null?void 0:e.nodes.map((o,a)=>{var f;const l=((f=t[o.node_type])==null?void 0:f.primary_color)??(ZD[s.indexOf(o.node_type)]||ae.white),u=o.scale||1,h=i(o.node_type)||"",d=h&&(o!=null&&o.properties)&&(o==null?void 0:o.properties[h])||"";return M.jsx(w_,{color:l,index:a,name:d,node:o,nodeType:o.node_type,scale:u},o.ref_id)})]})})},QD=v.memo(KD);function JD(n){const e=v.useRef(n);v.useEffect(()=>{const t=Object.entries(n).reduce((s,[r,i])=>(e.current[r]!==i&&(s[r]=[e.current[r],i]),s),{});Object.keys(t).length>0&&console.log("Changed props:",t),e.current=n})}const eP=n=>{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 n.replace(e,t=>/^[\d*#]$/.test(t)?t:"")},T_={metalness:.9,roughness:0},k_=new lc,E_=k_.load("noimage.jpeg");new uc({...T_,map:E_});const tP=.4;new uc({...T_,map:E_,transparent:!0,opacity:tP});const na={},nP=n=>{const[e,t]=v.useState(null);return v.useEffect(()=>{var r;if(!n){t(null);return}const s=n;if((r=na[s])!=null&&r.texture){t(na[s].texture);return}k_.load(n,i=>{na[s]={texture:i,material:new uc({map:i})},t(i)},void 0,()=>{t(null)})},[n]),v.useEffect(()=>()=>{e&&(Object.values(na).some(r=>r.texture===e)||e.dispose())},[e]),{texture:e}};function sP(n){const e=ha(n,30),t=e.split(" ");if(t.length<=5)return e;const s=Math.ceil(t.length/3),r=s*2,i=t.slice(0,s).join(" "),o=t.slice(s,r).join(" "),a=t.slice(r).join(" ");return`${i} +`,v_=v.memo(n=>{const{node:e,x:t,y:s,z:r,iX:i,iY:o,iZ:a,onRemove:c,isFixed:l,isLast:u}=n,h=v.useRef(null);return v.useEffect(()=>{h.current&&!l&&Ks.fromTo(h.current.position,{x:i,y:o,z:a},{x:t,y:s,z:r,duration:1,ease:"power3.out"})},[t,s,r,i,o,a,l]),v.useEffect(()=>{h.current&&l&&Ks.to(h.current.position,{x:t,y:s,z:r,duration:2,ease:"power3.out",onComplete:()=>{c&&c(e.ref_id)}})},[e.fx,e.fy,e.fz,e.ref_id,c,l,t,s,r]),M.jsx("mesh",{ref:h,position:[i,o,a],scale:e.scale||1,userData:e,children:M.jsx(WD,{isFixed:l,isLast:u,node:e})})});v_.displayName="CandidateWrapper";const b_=v.memo(()=>{const{activeNode:n,simulation:e}=Ue(c=>c),t=v.useRef([""]),[s,r]=v.useState(0),i={x:(n==null?void 0:n.fx)||0,y:(n==null?void 0:n.fy)||0,z:(n==null?void 0:n.fz)||0},o=200,a=c=>{t.current=t.current.filter(l=>l!==c),r(s+1)};return M.jsx(M.Fragment,{children:e.nodes().slice(-5).filter(c=>c.fx===void 0||t.current.some(l=>l===c.ref_id)).map((c,l,u)=>{const d=c.fx||i.x+Math.cos(0)*o,f=c.fy||i.y+Math.sin(0)*o,m=c.fz||i.z;return t.current.includes(c.ref_id)||t.current.push(c.ref_id),M.jsx(v_,{isFixed:typeof c.fx=="number",isLast:l===u.length-1,iX:i.x,iY:i.y,iZ:i.z,node:c,onRemove:a,x:d,y:f,z:m},c.ref_id)})})});b_.displayName="Candidates";const x_=v.memo(({color:n,scale:e,name:t,index:s,node:r,nodeType:i})=>{const o=v.useRef(null),a=v.useRef(null);return nn(()=>{var m;if(!o.current||!a.current)return;const{searchQuery:c,simulation:l,selectedNodeTypes:u,selectedLinkTypes:h}=Ue.getState(),{nodesNormalized:d}=Wt.getState(),f=l==null?void 0:l.nodes()[s];if(typeof(f==null?void 0:f.fx)=="number")o.current.scale.set(e,e,e);else{o.current.scale.set(0,0,0);return}if(c){const p=t.toLowerCase().includes(c.toLowerCase()),g=p?1:.1,_=!!p;a.current.visible=_,o.current.scale.set(g,g,g)}else if(u.length){const p=u.includes(i),g=p?1:.1,_=!!p;a.current.visible=_,o.current.scale.set(g,g,g)}else if(h.length){const p=d.get(r.ref_id),g=(m=p==null?void 0:p.edgeTypes)==null?void 0:m.some(T=>h.includes(T)),_=g?1:.1,k=!!g;a.current.visible=k,o.current.scale.set(_,_,_)}else o.current.scale.set(1,1,1),a.current.visible=!0}),M.jsxs(Eu,{ref:o,follow:!0,lockX:!1,lockY:!1,lockZ:!1,name:"group-name",visible:!1,children:[M.jsxs("mesh",{ref:a,name:"instance-helper",scale:[e,e,e],userData:r,children:[M.jsx("sphereGeometry",{args:[30,16,16]}),M.jsx("meshBasicMaterial",{color:"white",opacity:0,transparent:!0})]}),M.jsx(Ip,{color:n,name:"instance",scale:e})]})});x_.displayName="Point";const XD=["#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"],ZD=()=>{const n=As(),e=Wt(o=>o.dataInitial),{normalizedSchemasByType:t}=Hn(o=>o),s=pu(),r=v.useMemo(()=>new my(30,.5,16,100),[]),{getNodeKeysByType:i}=Hn(o=>o);return M.jsx(M.Fragment,{children:M.jsxs(v1,{geometry:r,limit:1e3,range:1e3,visible:!n||!0,children:[M.jsx("meshBasicMaterial",{}),e==null?void 0:e.nodes.map((o,a)=>{var f;const l=((f=t[o.node_type])==null?void 0:f.primary_color)??(XD[s.indexOf(o.node_type)]||ae.white),u=o.scale||1,h=i(o.node_type)||"",d=h&&(o!=null&&o.properties)&&(o==null?void 0:o.properties[h])||"";return M.jsx(x_,{color:l,index:a,name:d,node:o,nodeType:o.node_type,scale:u},o.ref_id)})]})})},KD=v.memo(ZD);function QD(n){const e=v.useRef(n);v.useEffect(()=>{const t=Object.entries(n).reduce((s,[r,i])=>(e.current[r]!==i&&(s[r]=[e.current[r],i]),s),{});Object.keys(t).length>0&&console.log("Changed props:",t),e.current=n})}const JD=n=>{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 n.replace(e,t=>/^[\d*#]$/.test(t)?t:"")},w_={metalness:.9,roughness:0},T_=new lc,k_=T_.load("noimage.jpeg");new uc({...w_,map:k_});const eP=.4;new uc({...w_,map:k_,transparent:!0,opacity:eP});const na={},tP=n=>{const[e,t]=v.useState(null);return v.useEffect(()=>{var r;if(!n){t(null);return}const s=n;if((r=na[s])!=null&&r.texture){t(na[s].texture);return}T_.load(n,i=>{na[s]={texture:i,material:new uc({map:i})},t(i)},void 0,()=>{t(null)})},[n]),v.useEffect(()=>()=>{e&&(Object.values(na).some(r=>r.texture===e)||e.dispose())},[e]),{texture:e}};function nP(n){const e=ha(n,30),t=e.split(" ");if(t.length<=5)return e;const s=Math.ceil(t.length/3),r=s*2,i=t.slice(0,s).join(" "),o=t.slice(s,r).join(" "),a=t.slice(r).join(" ");return`${i} ${o} -${a}`}const C_=v.memo(n=>{var y,x,E,w;const{node:e,hide:t,ignoreDistance:s,color:r}=n,i=v.useRef(null),o=v.useRef(null),a=v.useRef(null),c=v.useRef(null);JD(n);const l=v.useRef(new ye),{texture:u}=nP(((y=e.properties)==null?void 0:y.image_url)||""),{normalizedSchemasByType:h,getNodeKeysByType:d}=Hn(C=>C),f=d(e.node_type)||"",m=f&&(e!=null&&e.properties)?eP(String((e==null?void 0:e.properties[f])||"")):e.name||"";nn(({camera:C,clock:A})=>{var K,J;if(!o.current||!a.current)return;const{selectedNode:D,hoveredNode:O,activeEdge:L,searchQuery:j,selectedNodeTypes:W,selectedLinkTypes:V,hoveredNodeSiblings:U}=Ue.getState(),B=()=>{const F=l.current.setFromMatrixPosition(o.current.matrixWorld);o.current&&(o.current.visible=s?!0:F.distanceTo(C.position)<1500)};if(j.length<3&&!W.length&&!V.length?(a.current.visible=!0,B()):(o.current.visible=!1,a.current.visible=!1),e.ref_id===(D==null?void 0:D.ref_id)||e.ref_id===(O==null?void 0:O.ref_id)||(L==null?void 0:L.target)===e.ref_id||(L==null?void 0:L.source)===e.ref_id||j&&m.toLowerCase().includes(j.toLowerCase())||W.includes(e.node_type)||U.includes(e.ref_id)||((K=e.edgeTypes)==null?void 0:K.some(F=>V.includes(F)))){o.current&&!o.current.visible&&(o.current.visible=!0);const F=A.getElapsedTime(),z=2,S=F%z/z,I=1+S*2,Y=1-S;if(c.current&&!c.current.visible){c.current.visible=!0,c.current.scale.set(I,I,I);const{material:$}=c.current;$ instanceof Uh&&($.opacity=Y)}return}(J=c.current)!=null&&J.visible&&(c.current.visible=!1)});const p=(x=h[e.node_type])==null?void 0:x.primary_color,g=(E=h[e.node_type])==null?void 0:E.icon,_=p??r,T=(g?cc[g]:null)?g:"NodesIcon",b={u_texture:{value:u},u_radius:{value:.5}};return M.jsx(Eu,{follow:!0,lockX:!1,lockY:!1,lockZ:!1,name:"billboard",userData:e,children:M.jsxs("mesh",{ref:o,name:e.ref_id,userData:e,visible:!t,children:[M.jsxs("mesh",{ref:a,name:"event-handler",children:[M.jsx("boxGeometry",{args:[40,40,40]}),M.jsx("meshStandardMaterial",{opacity:0,transparent:!0})]}),M.jsxs("mesh",{ref:c,position:[0,0,-2],children:[M.jsx("ringGeometry",{args:[29,30,32]})," ",M.jsx("meshBasicMaterial",{color:_,opacity:.5,side:fa,transparent:!0})]}),(w=e.properties)!=null&&w.image_url&&u?M.jsx(Y_,{args:[10*2,10*2],scale:2,children:M.jsx("shaderMaterial",{fragmentShader:` +${a}`}const E_=v.memo(n=>{var y,x,E,w;const{node:e,hide:t,ignoreDistance:s,color:r}=n,i=v.useRef(null),o=v.useRef(null),a=v.useRef(null),c=v.useRef(null);QD(n);const l=v.useRef(new ye),{texture:u}=tP(((y=e.properties)==null?void 0:y.image_url)||""),{normalizedSchemasByType:h,getNodeKeysByType:d}=Hn(C=>C),f=d(e.node_type)||"",m=f&&(e!=null&&e.properties)?JD(String((e==null?void 0:e.properties[f])||"")):e.name||"";nn(({camera:C,clock:A})=>{var K,J;if(!o.current||!a.current)return;const{selectedNode:D,hoveredNode:O,activeEdge:L,searchQuery:j,selectedNodeTypes:W,selectedLinkTypes:V,hoveredNodeSiblings:U}=Ue.getState(),B=()=>{const F=l.current.setFromMatrixPosition(o.current.matrixWorld);o.current&&(o.current.visible=s?!0:F.distanceTo(C.position)<1500)};if(j.length<3&&!W.length&&!V.length?(a.current.visible=!0,B()):(o.current.visible=!1,a.current.visible=!1),e.ref_id===(D==null?void 0:D.ref_id)||e.ref_id===(O==null?void 0:O.ref_id)||(L==null?void 0:L.target)===e.ref_id||(L==null?void 0:L.source)===e.ref_id||j&&m.toLowerCase().includes(j.toLowerCase())||W.includes(e.node_type)||U.includes(e.ref_id)||((K=e.edgeTypes)==null?void 0:K.some(F=>V.includes(F)))){o.current&&!o.current.visible&&(o.current.visible=!0);const F=A.getElapsedTime(),z=2,S=F%z/z,I=1+S*2,Y=1-S;if(c.current&&!c.current.visible){c.current.visible=!0,c.current.scale.set(I,I,I);const{material:$}=c.current;$ instanceof Uh&&($.opacity=Y)}return}(J=c.current)!=null&&J.visible&&(c.current.visible=!1)});const p=(x=h[e.node_type])==null?void 0:x.primary_color,g=(E=h[e.node_type])==null?void 0:E.icon,_=p??r,T=(g?cc[g]:null)?g:"NodesIcon",b={u_texture:{value:u},u_radius:{value:.5}};return M.jsx(Eu,{follow:!0,lockX:!1,lockY:!1,lockZ:!1,name:"billboard",userData:e,children:M.jsxs("mesh",{ref:o,name:e.ref_id,userData:e,visible:!t,children:[M.jsxs("mesh",{ref:a,name:"event-handler",children:[M.jsx("boxGeometry",{args:[40,40,40]}),M.jsx("meshStandardMaterial",{opacity:0,transparent:!0})]}),M.jsxs("mesh",{ref:c,position:[0,0,-2],children:[M.jsx("ringGeometry",{args:[29,30,32]})," ",M.jsx("meshBasicMaterial",{color:_,opacity:.5,side:fa,transparent:!0})]}),(w=e.properties)!=null&&w.image_url&&u?M.jsx(G_,{args:[10*2,10*2],scale:2,children:M.jsx("shaderMaterial",{fragmentShader:` uniform sampler2D u_texture; uniform float u_radius; varying vec2 vUv; @@ -579,7 +579,7 @@ ${a}`}const C_=v.memo(n=>{var y,x,E,w;const{node:e,hide:t,ignoreDistance:s,color vUv = uv; gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0); } - `})}):M.jsx(f1,{ref:i,name:"svg",onUpdate:C=>{C.traverse(A=>{A instanceof bp&&(A.material=new Uh({color:_}))})},position:[-15,15,0],scale:2,src:`/svg-icons/${T}.svg`,userData:e}),m&&M.jsx(_u,{color:_,fillOpacity:1,name:"text",position:[0,-65,0],scale:1,userData:e,...yu,fontSize:20,children:sP(m)})]})})},(n,e)=>n.hide===e.hide&&n.ignoreDistance===e.ignoreDistance&&n.node.ref_id===e.node.ref_id);C_.displayName="TextNode";const S_=v.memo(n=>{const{node:e,color:t,isFixed:s}=n;return M.jsx("mesh",{name:"wr2",scale:e.scale||1,userData:e,children:M.jsx("mesh",{visible:s,children:M.jsx(C_,{color:t,ignoreDistance:!1,node:e,scale:e.scale||1},e.ref_id)})},e.ref_id)},(n,e)=>n.isFixed===e.isFixed);S_.displayName="NodeWrapper";const rP=200,O_=v.memo(()=>{const n=As(),e=_p(),t=v.useRef(null),s=v.useRef(null),{selectionGraphData:r,showSelectionGraph:i,setHoveredNode:o,setIsHovering:a,simulation:c}=Ue(T=>T),l=pu(),u=Wt(T=>T.dataInitial),h=Wt(T=>T.nodesNormalized),d=rc(T=>T.setTranscriptOpen);nn(()=>{});const f=v.useCallback(T=>!!(i&&!r.nodes.find(b=>b.ref_id===T.ref_id)),[i,r]),m=v.useCallback(T=>{const b=T==null?void 0:T[0];b&&(d(!1),b.userData&&(f(b.userData)||Ue.getState().setSelectedNode((b==null?void 0:b.userData)||null)))},[d,f]),p=v.useRef(null),g=v.useCallback(T=>{T.stopPropagation(),p.current&&(clearTimeout(p.current),p.current=null),e&&(a(!1),o(null))},[a,o,e]),_=v.useCallback(T=>{var x;const y=T.intersections.map(E=>E.object)[0];if(p.current&&(clearTimeout(p.current),p.current=null),(x=y==null?void 0:y.userData)!=null&&x.ref_id){const E=y.userData;f(E)||(T.stopPropagation(),p.current=setTimeout(()=>{a(!0),o(E)},rP))}},[o,f,a]),k=i&&!!n;return M.jsxs(M.Fragment,{children:[M.jsx("group",{ref:t,name:"simulation-3d-group__nodes",visible:!k,children:u==null?void 0:u.nodes.map((T,b)=>{const y=G_[l.indexOf(T.node_type)]||ae.white,x=c.nodes()[b],E=typeof(x==null?void 0:x.fx)=="number",w=h.get(T.ref_id);return w?M.jsx(S_,{color:y,isFixed:E,node:w,scale:T.scale||1},T.ref_id):null})}),M.jsx(d1,{filter:T=>T.filter(b=>{var y;return!!((y=b.userData)!=null&&y.ref_id)}),onChange:m,onPointerOut:g,onPointerOver:_,children:M.jsx("group",{ref:s,name:"simulation-3d-group__node-points",children:M.jsx(QD,{})})}),M.jsx(x_,{})]})});O_.displayName="Cubes";const iP={earthRef:null},oP=hp(n=>({...iP,setEarthRef:e=>n({earthRef:e})})),aP=new ye(0,0,0),cP=()=>{const n=v.useRef(null),e=v.useRef(null),{graphStyle:t,showSelectionGraph:s}=Ue(a=>a),r=oP(a=>a.setEarthRef),i=Bs("textures/earth/galaxy.png"),o=Bs("textures/earth/clouds.png");return nn(({camera:a})=>{e.current&&e.current.position.copy(a.getWorldPosition(aP))}),v.useLayoutEffect(()=>{n.current&&r(n)},[r]),t!=="earth"||s?null:M.jsxs(M.Fragment,{children:[M.jsxs("mesh",{ref:n,userData:{type:"earth"},children:[M.jsx("sphereGeometry",{args:[Jo,200,200]}),M.jsx(lP,{})]}),M.jsxs("mesh",{children:[M.jsx("sphereGeometry",{args:[Jo+2,200,200]}),M.jsx("meshStandardMaterial",{alphaMap:o,map:o,transparent:!0})]}),M.jsxs("mesh",{children:[M.jsx("sphereGeometry",{args:[Jo*4,200,200]}),M.jsx("meshStandardMaterial",{map:i,opacity:.4,side:fa,transparent:!0})]}),M.jsx("directionalLight",{ref:e,intensity:.9,position:[0,0,Jo*3]})]})},lP=()=>{const n=Bs("textures/earth/earth.jpeg"),e=Bs("textures/earth/bump.jpeg"),t=Bs("textures/earth/water.png"),s=v.useMemo(()=>new uc({map:n,bumpMap:e,aoMap:e,roughnessMap:e,metalnessMap:t,toneMapped:!0,roughness:35,metalness:0}),[n,e,t]);return M.jsx("meshStandardMaterial",{...s})},uP="C",hP=256,dP=256,fP={g:"LottieFiles AE 0.1.20"},pP=[{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}],mP="5.5.7",gP=60,_P=104,yP=0,vP=[{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}]}],bP={nm:uP,h:hP,w:dP,meta:fP,layers:pP,v:mP,fr:gP,op:_P,ip:yP,assets:vP},xP=({meshId:n})=>{const e=v.useRef(null);return v.useEffect(()=>{const t=document.getElementById(`lottie-animation-${n}`);return t&&(e.current=F_.loadAnimation({container:t,animationData:bP,loop:!0,autoplay:!0})),()=>{e.current&&e.current.destroy()}},[n]),M.jsx("div",{id:`lottie-animation-${n}`,style:{width:"2em",height:"2em"}})},ml=()=>Math.floor(Math.random()*2001)-1e3,wP=()=>M.jsx(M.Fragment,{children:["a","b","c"].map(n=>{const e=ml(),t=ml(),s=ml();return M.jsx("mesh",{position:[e,t,s],children:M.jsx(ac,{center:!0,sprite:!0,children:M.jsx(TP,{children:M.jsx(xP,{meshId:n})})})},n)})}),TP=ve.div` + `})}):M.jsx(d1,{ref:i,name:"svg",onUpdate:C=>{C.traverse(A=>{A instanceof vp&&(A.material=new Uh({color:_}))})},position:[-15,15,0],scale:2,src:`/svg-icons/${T}.svg`,userData:e}),m&&M.jsx(_u,{color:_,fillOpacity:1,name:"text",position:[0,-65,0],scale:1,userData:e,...yu,fontSize:20,children:nP(m)})]})})},(n,e)=>n.hide===e.hide&&n.ignoreDistance===e.ignoreDistance&&n.node.ref_id===e.node.ref_id);E_.displayName="TextNode";const C_=v.memo(n=>{const{node:e,color:t,isFixed:s}=n;return M.jsx("mesh",{name:"wr2",scale:e.scale||1,userData:e,children:M.jsx("mesh",{visible:s,children:M.jsx(E_,{color:t,ignoreDistance:!1,node:e,scale:e.scale||1},e.ref_id)})},e.ref_id)},(n,e)=>n.isFixed===e.isFixed);C_.displayName="NodeWrapper";const sP=200,S_=v.memo(()=>{const n=As(),e=gp(),t=v.useRef(null),s=v.useRef(null),{selectionGraphData:r,showSelectionGraph:i,setHoveredNode:o,setIsHovering:a,simulation:c}=Ue(T=>T),l=pu(),u=Wt(T=>T.dataInitial),h=Wt(T=>T.nodesNormalized),d=rc(T=>T.setTranscriptOpen);nn(()=>{});const f=v.useCallback(T=>!!(i&&!r.nodes.find(b=>b.ref_id===T.ref_id)),[i,r]),m=v.useCallback(T=>{const b=T==null?void 0:T[0];b&&(d(!1),b.userData&&(f(b.userData)||Ue.getState().setSelectedNode((b==null?void 0:b.userData)||null)))},[d,f]),p=v.useRef(null),g=v.useCallback(T=>{T.stopPropagation(),p.current&&(clearTimeout(p.current),p.current=null),e&&(a(!1),o(null))},[a,o,e]),_=v.useCallback(T=>{var x;const y=T.intersections.map(E=>E.object)[0];if(p.current&&(clearTimeout(p.current),p.current=null),(x=y==null?void 0:y.userData)!=null&&x.ref_id){const E=y.userData;f(E)||(T.stopPropagation(),p.current=setTimeout(()=>{a(!0),o(E)},sP))}},[o,f,a]),k=i&&!!n;return M.jsxs(M.Fragment,{children:[M.jsx("group",{ref:t,name:"simulation-3d-group__nodes",visible:!k,children:u==null?void 0:u.nodes.map((T,b)=>{const y=X_[l.indexOf(T.node_type)]||ae.white,x=c.nodes()[b],E=typeof(x==null?void 0:x.fx)=="number",w=h.get(T.ref_id);return w?M.jsx(C_,{color:y,isFixed:E,node:w,scale:T.scale||1},T.ref_id):null})}),M.jsx(h1,{filter:T=>T.filter(b=>{var y;return!!((y=b.userData)!=null&&y.ref_id)}),onChange:m,onPointerOut:g,onPointerOver:_,children:M.jsx("group",{ref:s,name:"simulation-3d-group__node-points",children:M.jsx(KD,{})})}),M.jsx(b_,{})]})});S_.displayName="Cubes";const rP={earthRef:null},iP=up(n=>({...rP,setEarthRef:e=>n({earthRef:e})})),oP=new ye(0,0,0),aP=()=>{const n=v.useRef(null),e=v.useRef(null),{graphStyle:t,showSelectionGraph:s}=Ue(a=>a),r=iP(a=>a.setEarthRef),i=Bs("textures/earth/galaxy.png"),o=Bs("textures/earth/clouds.png");return nn(({camera:a})=>{e.current&&e.current.position.copy(a.getWorldPosition(oP))}),v.useLayoutEffect(()=>{n.current&&r(n)},[r]),t!=="earth"||s?null:M.jsxs(M.Fragment,{children:[M.jsxs("mesh",{ref:n,userData:{type:"earth"},children:[M.jsx("sphereGeometry",{args:[Jo,200,200]}),M.jsx(cP,{})]}),M.jsxs("mesh",{children:[M.jsx("sphereGeometry",{args:[Jo+2,200,200]}),M.jsx("meshStandardMaterial",{alphaMap:o,map:o,transparent:!0})]}),M.jsxs("mesh",{children:[M.jsx("sphereGeometry",{args:[Jo*4,200,200]}),M.jsx("meshStandardMaterial",{map:i,opacity:.4,side:fa,transparent:!0})]}),M.jsx("directionalLight",{ref:e,intensity:.9,position:[0,0,Jo*3]})]})},cP=()=>{const n=Bs("textures/earth/earth.jpeg"),e=Bs("textures/earth/bump.jpeg"),t=Bs("textures/earth/water.png"),s=v.useMemo(()=>new uc({map:n,bumpMap:e,aoMap:e,roughnessMap:e,metalnessMap:t,toneMapped:!0,roughness:35,metalness:0}),[n,e,t]);return M.jsx("meshStandardMaterial",{...s})},lP="C",uP=256,hP=256,dP={g:"LottieFiles AE 0.1.20"},fP=[{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}],pP="5.5.7",mP=60,gP=104,_P=0,yP=[{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}]}],vP={nm:lP,h:uP,w:hP,meta:dP,layers:fP,v:pP,fr:mP,op:gP,ip:_P,assets:yP},bP=({meshId:n})=>{const e=v.useRef(null);return v.useEffect(()=>{const t=document.getElementById(`lottie-animation-${n}`);return t&&(e.current=$_.loadAnimation({container:t,animationData:vP,loop:!0,autoplay:!0})),()=>{e.current&&e.current.destroy()}},[n]),M.jsx("div",{id:`lottie-animation-${n}`,style:{width:"2em",height:"2em"}})},ml=()=>Math.floor(Math.random()*2001)-1e3,xP=()=>M.jsx(M.Fragment,{children:["a","b","c"].map(n=>{const e=ml(),t=ml(),s=ml();return M.jsx("mesh",{position:[e,t,s],children:M.jsx(ac,{center:!0,sprite:!0,children:M.jsx(wP,{children:M.jsx(bP,{meshId:n})})})},n)})}),wP=ve.div` border: 2px solid white; border-radius: 50%; display: flex; @@ -587,7 +587,7 @@ ${a}`}const C_=v.memo(n=>{var y,x,E,w;const{node:e,hide:t,ignoreDistance:s,color justify-content: center; color: white; font-size: 20px; -`,kP=()=>{const{dataInitial:n,isLoadingNew:e,isFetching:t,dataNew:s,resetDataNew:r}=Wt(_=>_),i=v.useRef(null),{normalizedSchemasByType:o}=Hn(_=>_);cm({useClustering:!1});const a=v.useRef(new Map),c=v.useRef(new Map),{setData:l,simulation:u,simulationCreate:h,simulationHelpers:d,graphStyle:f,setGraphRadius:m}=Ue(_=>_),p=Ue(_=>_.highlightNodes),g=Ue(_=>_.removeSimulation);return v.useEffect(()=>{p.length&&(d==null||d.addClusterForce(),d.simulationRestart())},[d,p]),v.useEffect(()=>{if(!s)return;const _=s.nodes||[],k=s.links||[],T=structuredClone(_),b=structuredClone(k);if(u){const y=L_.isEqual(s,n);d.addNodesAndLinks(T,b,y)}u||h(T,b)},[l,s,u,h,d,n]),v.useEffect(()=>{},[g]),v.useEffect(()=>{u&&d.setForces()},[f,d,u]),v.useEffect(()=>{u&&u.on("end",()=>{if(r(),u.nodes().forEach(_=>{_.fx=_.x,_.fy=_.y,_.fz=_.z,c.current.set(_.ref_id,{x:_.x,y:_.y,z:_.z})}),i!=null&&i.current){const _=i.current.getObjectByName("simulation-3d-group__nodes"),k=i.current.getObjectByName("simulation-3d-group__node-points"),T=i.current.getObjectByName("simulation-3d-group__connections");_&&_.children.forEach((x,E)=>{const w=u.nodes()[E];w&&x.position.set(w.x,w.y,w.z)}),k&&k.children[0].children.forEach((x,E)=>{const w=u.nodes()[E];w&&x.position.set(w.x,w.y,w.z)}),a.current.clear(),n==null||n.links.forEach(x=>{const E=c.current.get(x.source)||{x:0,y:0,z:0},w=c.current.get(x.target)||{x:0,y:0,z:0},{x:C,y:A,z:D}=E,{x:O,y:L,z:j}=w;a.current.set(x.ref_id,{sx:C,sy:A,sz:D,tx:O,ty:L,tz:j})}),T&&T.children.forEach((x,E)=>{const w=x.children[0],C=x.children[1];if(w instanceof gu){const A=w,D=n==null?void 0:n.links[E];if(D){const O=c.current.get(D.source)||{x:0,y:0,z:0},L=c.current.get(D.target)||{x:0,y:0,z:0};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:V}=O,{x:U,y:B,z:X}=L;a.current.set(D.ref_id,{sx:j,sy:W,sz:V,tx:U,ty:B,tz:X}),C.position.set((j+U)/2,(W+B)/2,(V+X)/2),A.geometry.setPositions([j,W,V,U,B,X]);const{material:K}=A;K.transparent=!0,K.opacity=.3}}});const b=new xp().setFromObject(_),y=new wp;b.getBoundingSphere(y),y.radius&&m(y.radius)}})},[n,u,m,o,r]),u?M.jsxs("group",{ref:i,children:[M.jsx(O_,{}),f==="earth"&&M.jsx(cP,{}),(e||t)&&M.jsx(wP,{}),f!=="earth"&&M.jsx(v_,{linksPosition:a.current})]}):null},EP=()=>{const{normalizedSchemasByType:n}=Hn(o=>o),e=pu(),t=Ue(o=>o.setSelectedNodeTypes),s=Ue(o=>o.selectedNodeTypes),r=Ue(o=>o.resetSelectedNodeTypes);function i(o){t(o)}return M.jsxs(CP,{children:[M.jsx(rp,{className:$r({isActive:!s.length}),onClick:()=>r(),children:M.jsx("div",{className:"text",children:"All Nodes"})}),e.map(o=>{var l;const a=(l=n[o])==null?void 0:l.icon,c=cc[a]||da;return M.jsxs(rp,{className:$r({isActive:s.includes(o)}),onClick:()=>i(o),children:[M.jsx("div",{className:"icon",children:M.jsx(c,{})}),M.jsx("div",{className:"text",children:o})]},o)})]})},CP=ve(Fe).attrs({align:"center",direction:"row",grow:1,justify:"flex-start"})` +`,TP=()=>{const{dataInitial:n,isLoadingNew:e,isFetching:t,dataNew:s,resetDataNew:r}=Wt(_=>_),i=v.useRef(null),{normalizedSchemasByType:o}=Hn(_=>_);am({useClustering:!1});const a=v.useRef(new Map),c=v.useRef(new Map),{setData:l,simulation:u,simulationCreate:h,simulationHelpers:d,graphStyle:f,setGraphRadius:m}=Ue(_=>_),p=Ue(_=>_.highlightNodes),g=Ue(_=>_.removeSimulation);return v.useEffect(()=>{p.length&&(d==null||d.addClusterForce(),d.simulationRestart())},[d,p]),v.useEffect(()=>{if(!s)return;const _=s.nodes||[],k=s.links||[],T=structuredClone(_),b=structuredClone(k);if(u){const y=F_.isEqual(s,n);d.addNodesAndLinks(T,b,y)}u||h(T,b)},[l,s,u,h,d,n]),v.useEffect(()=>{},[g]),v.useEffect(()=>{u&&d.setForces()},[f,d,u]),v.useEffect(()=>{u&&u.on("end",()=>{if(r(),u.nodes().forEach(_=>{_.fx=_.x,_.fy=_.y,_.fz=_.z,c.current.set(_.ref_id,{x:_.x,y:_.y,z:_.z})}),i!=null&&i.current){const _=i.current.getObjectByName("simulation-3d-group__nodes"),k=i.current.getObjectByName("simulation-3d-group__node-points"),T=i.current.getObjectByName("simulation-3d-group__connections");_&&_.children.forEach((x,E)=>{const w=u.nodes()[E];w&&x.position.set(w.x,w.y,w.z)}),k&&k.children[0].children.forEach((x,E)=>{const w=u.nodes()[E];w&&x.position.set(w.x,w.y,w.z)}),a.current.clear(),n==null||n.links.forEach(x=>{const E=c.current.get(x.source)||{x:0,y:0,z:0},w=c.current.get(x.target)||{x:0,y:0,z:0},{x:C,y:A,z:D}=E,{x:O,y:L,z:j}=w;a.current.set(x.ref_id,{sx:C,sy:A,sz:D,tx:O,ty:L,tz:j})}),T&&T.children.forEach((x,E)=>{const w=x.children[0],C=x.children[1];if(w instanceof gu){const A=w,D=n==null?void 0:n.links[E];if(D){const O=c.current.get(D.source)||{x:0,y:0,z:0},L=c.current.get(D.target)||{x:0,y:0,z:0};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:V}=O,{x:U,y:B,z:X}=L;a.current.set(D.ref_id,{sx:j,sy:W,sz:V,tx:U,ty:B,tz:X}),C.position.set((j+U)/2,(W+B)/2,(V+X)/2),A.geometry.setPositions([j,W,V,U,B,X]);const{material:K}=A;K.transparent=!0,K.opacity=.3}}});const b=new bp().setFromObject(_),y=new xp;b.getBoundingSphere(y),y.radius&&m(y.radius)}})},[n,u,m,o,r]),u?M.jsxs("group",{ref:i,children:[M.jsx(S_,{}),f==="earth"&&M.jsx(aP,{}),(e||t)&&M.jsx(xP,{}),f!=="earth"&&M.jsx(y_,{linksPosition:a.current})]}):null},kP=()=>{const n=Wt(i=>i.linkTypes),e=Ue(i=>i.setSelectedLinkTypes),t=Ue(i=>i.selectedLinkTypes),s=Ue(i=>i.resetSelectedLinkTypes);function r(i){e(i)}return M.jsxs(EP,{children:[M.jsx(rp,{className:$r({isActive:!t.length}),onClick:()=>s(),children:M.jsx("div",{className:"text",children:"All Links"})}),n.map(i=>M.jsx(rp,{className:$r({isActive:t.includes(i)}),onClick:()=>r(i),children:M.jsx("div",{className:"text",children:i})},i))]})},EP=ve(Fe).attrs({align:"center",direction:"row",grow:1,justify:"flex-start"})` flex: 1 1 100%; flex-wrap: wrap; gap: 8px; @@ -630,7 +630,7 @@ ${a}`}const C_=v.memo(n=>{var y,x,E,w;const{node:e,hide:t,ignoreDistance:s,color .text { } -`,SP=()=>{const n=Wt(i=>i.linkTypes),e=Ue(i=>i.setSelectedLinkTypes),t=Ue(i=>i.selectedLinkTypes),s=Ue(i=>i.resetSelectedLinkTypes);function r(i){e(i)}return M.jsxs(OP,{children:[M.jsx(ip,{className:$r({isActive:!t.length}),onClick:()=>s(),children:M.jsx("div",{className:"text",children:"All Links"})}),n.map(i=>M.jsx(ip,{className:$r({isActive:t.includes(i)}),onClick:()=>r(i),children:M.jsx("div",{className:"text",children:i})},i))]})},OP=ve(Fe).attrs({align:"center",direction:"row",grow:1,justify:"flex-start"})` +`,CP=()=>{const{normalizedSchemasByType:n}=Hn(o=>o),e=pu(),t=Ue(o=>o.setSelectedNodeTypes),s=Ue(o=>o.selectedNodeTypes),r=Ue(o=>o.resetSelectedNodeTypes);function i(o){t(o)}return M.jsxs(SP,{children:[M.jsx(ip,{className:$r({isActive:!s.length}),onClick:()=>r(),children:M.jsx("div",{className:"text",children:"All Nodes"})}),e.map(o=>{var l;const a=(l=n[o])==null?void 0:l.icon,c=cc[a]||da;return M.jsxs(ip,{className:$r({isActive:s.includes(o)}),onClick:()=>i(o),children:[M.jsx("div",{className:"icon",children:M.jsx(c,{})}),M.jsx("div",{className:"text",children:o})]},o)})]})},SP=ve(Fe).attrs({align:"center",direction:"row",grow:1,justify:"flex-start"})` flex: 1 1 100%; flex-wrap: wrap; gap: 8px; @@ -673,7 +673,8 @@ ${a}`}const C_=v.memo(n=>{var y,x,E,w;const{node:e,hide:t,ignoreDistance:s,color .text { } -`,AP=()=>{const[n,e]=Ue(t=>[t.setSearchQuery,t.searchQuery]);return M.jsxs(RP,{children:[M.jsxs(DP,{children:[M.jsx(PP,{id:"graph-search",onChange:t=>n(t.target.value),placeholder:"Search graph",type:"text",value:e}),M.jsx(MP,{"data-testid":"search_action_icon",onClick:()=>{n("")},children:M.jsx(M.Fragment,{children:e!=null&&e.trim()?M.jsx(z_,{}):null})})]}),M.jsx(EP,{}),M.jsx(SP,{})]})},RP=ve(Fe)` +`,OP=()=>{const[n,e]=Ue(t=>[t.setSearchQuery,t.searchQuery]);return M.jsxs(AP,{children:[M.jsxs(RP,{children:[M.jsx(DP,{id:"graph-search",onChange:t=>n(t.target.value),placeholder:"Search graph",type:"text",value:e}),M.jsx(PP,{"data-testid":"search_action_icon",onClick:()=>{n("")},children:M.jsx(M.Fragment,{children:e!=null&&e.trim()?M.jsx(j_,{}):null})})]}),M.jsx(CP,{}),M.jsx(kP,{})]})},AP=ve(Fe)` + padding: 16px; position: absolute; top: 0; left: 0; @@ -681,10 +682,10 @@ ${a}`}const C_=v.memo(n=>{var y,x,E,w;const{node:e,hide:t,ignoreDistance:s,color right: 0; align-items: flex-start; justify-content: flex-start; -`,DP=ve(Fe)` +`,RP=ve(Fe)` flex-direction: row; margin-bottom: 16px; -`,PP=ve.input.attrs(()=>({autoCorrect:"off",autoComplete:"off"}))` +`,DP=ve.input.attrs(()=>({autoCorrect:"off",autoComplete:"off"}))` pointer-events: auto; height: 48px; padding: 0 40px 0 18px; @@ -716,14 +717,14 @@ ${a}`}const C_=v.memo(n=>{var y,x,E,w;const{node:e,hide:t,ignoreDistance:s,color color: ${ae.GRAY7}; } - ${({loading:n})=>n&&j_` + ${({loading:n})=>n&&L_` background-image: url('https://i.gifer.com/ZZ5H.gif'); background-size: 25px 25px; background-position: right center; background-position-x: 95%; background-repeat: no-repeat; `} -`,MP=ve(Fe).attrs({align:"center",justify:"center",p:5})` +`,PP=ve(Fe).attrs({align:"center",justify:"center",p:5})` font-size: 32px; color: ${ae.mainBottomIcons}; cursor: pointer; @@ -731,7 +732,7 @@ ${a}`}const C_=v.memo(n=>{var y,x,E,w;const{node:e,hide:t,ignoreDistance:s,color margin-left: -42px; z-index: 2; width: 30px; -`,NP=({fullSize:n=!0})=>{const e=rc(t=>t.sidebarIsOpen);return M.jsx(IP,{align:"center",className:$r({"sidebar-is-open":e&&!n}),justify:"center",children:M.jsx(vy,{color:ae.SECONDARY_BLUE,size:64})})},IP=ve(Fe)` +`,MP=({fullSize:n=!0})=>{const e=rc(t=>t.sidebarIsOpen);return M.jsx(NP,{align:"center",className:$r({"sidebar-is-open":e&&!n}),justify:"center",children:M.jsx(_y,{color:ae.SECONDARY_BLUE,size:64})})},NP=ve(Fe)` position: absolute; left: 0; right: 0; @@ -739,13 +740,13 @@ ${a}`}const C_=v.memo(n=>{var y,x,E,w;const{node:e,hide:t,ignoreDistance:s,color top: 0; background-color: ${ae.black}; z-index: 1; -`,A_=n=>{const e=v.useRef(null),{label:t,sourceX:s,sourceY:r,sourceZ:i,targetX:o,targetY:a,targetZ:c}=n;return M.jsxs("group",{children:[M.jsx(mp,{ref:e,color:"white",isLine2:!0,lineWidth:2,name:"line",points:[s,r,i,o,a,c]}),M.jsxs("mesh",{children:[M.jsx("planeGeometry",{args:[t.length*1,2]}),M.jsx("meshBasicMaterial",{color:"black"}),M.jsx(_u,{anchorX:"center",anchorY:"middle",color:"white",...yu,scale:1.5,children:t})]})]})};A_.displayName="Connection";const $P=v.memo(A_),FP="#68BE3E",R_=v.memo(({links:n,nodes:e})=>{const t=v.useRef(null),s=v.useRef(new Map),{setSelectionGraphRadius:r}=Ue(yp(i=>i));return v.useEffect(()=>{if(!t.current)return;t.current.children.forEach((l,u)=>{const h=l.children[0],d=l.children[1];if(h instanceof gu){const f=h,m=n[u];if(m){const p=e.find(w=>w.ref_id===m.source),g=e.find(w=>w.ref_id===m.target);if(!p||!g)return;const{x:_,y:k}=p,{x:T,y:b}=g;s.current.set(m.ref_id,{sx:_,sy:k,tx:T,ty:b,sz:0,tz:0});const y=new ye((_+T)/2,(k+b)/2,0);d.position.set(y.x,y.y,1);let x=Math.atan2(b-k,T-_);(T<_||Math.abs(T-_)<.01&&bnew ye(l.x,l.y,l.z)),a=new xp().setFromPoints(o),c=new wp;a.getBoundingSphere(c),r(c.radius)},[n,r,e]),M.jsx("group",{ref:t,name:"simulation-3d-group__connections",children:n==null?void 0:n.map(i=>{var a;const o=((a=s.current)==null?void 0:a.get(i.ref_id))||{sx:0,sy:0,sz:0,tx:0,ty:0,tz:0};return M.jsx($P,{label:i.edge_type,sourceX:o.sx,sourceY:o.sy,sourceZ:o.sz,targetX:o.tx,targetY:o.ty,targetZ:o.tz},i.ref_id)})})});R_.displayName="Connections";const LP=({onClick:n,node:e,selected:t,rounded:s=!0,x:r,y:i,z:o,id:a})=>{var C,A,D,O,L,j,W;const c=v.useRef(null),[l]=fp(V=>[V.isAdmin]),{open:u}=$h("editNodeName"),{open:h}=$h("createBounty"),d=As(),{normalizedSchemasByType:f,getNodeKeysByType:m}=Hn(V=>V),p=Ue(V=>V.setSelectedNode),g=new ye(r,i,o);nn(()=>{c.current&&c.current.position.lerp(g,.05)});const _=(C=f[e.node_type])==null?void 0:C.icon,k=_?cc[_]:null,T=m(e.node_type)||"",b=e!=null&&e.properties&&T?(e==null?void 0:e.properties[T])||"":e.name||"",y=b?ha(b,30):"",x=T!=="description"?(A=e.properties)==null?void 0:A.description:"",E=x?ha(x,60):"",w=!!(d&&((D=d==null?void 0:d.node_type)==null?void 0:D.toLowerCase())==="function");return M.jsx("mesh",{ref:c,children:M.jsx(ac,{center:!0,sprite:!0,zIndexRange:[0,0],children:M.jsx(jP,{align:"center",direction:"row",justify:"flex-start",children:M.jsx(M.Fragment,{children:t?M.jsxs(zP,{className:$r({"has-padding":E}),rounded:!1,children:[l&&M.jsx(VP,{onClick:()=>u(),children:M.jsx(J_,{})}),M.jsx(UP,{onClick:()=>p(null),children:M.jsx(ey,{})}),M.jsx("div",{children:M.jsx(op,{align:"center",height:E?48:100,justify:"center",radius:"6px",src:((O=e==null?void 0:e.properties)==null?void 0:O.image_url)||"",width:E?72:200,children:(L=e==null?void 0:e.properties)!=null&&L.image_url?null:M.jsx("span",{children:k?M.jsx(k,{}):M.jsx(da,{})})})}),M.jsxs(Fe,{align:"flex-start",children:[M.jsx(gl,{className:"selected__title",children:y}),E?M.jsx(gl,{children:E}):null]}),w&&M.jsx(BP,{left:2,onClick:()=>{h()},children:"Generate Unit Test"})]}):M.jsxs(M.Fragment,{children:[M.jsx(D_,{onClick:()=>n(a),rounded:s,children:M.jsx(op,{align:"center",height:32,justify:"center",radius:"50%",src:((j=e==null?void 0:e.properties)==null?void 0:j.image_url)||"",width:32,children:(W=e==null?void 0:e.properties)!=null&&W.image_url?null:M.jsx("span",{children:k?M.jsx(k,{}):M.jsx(da,{})})})}),M.jsx(gl,{children:y})]})})})})})},jP=ve(Fe)` +`,O_=n=>{const e=v.useRef(null),{label:t,sourceX:s,sourceY:r,sourceZ:i,targetX:o,targetY:a,targetZ:c}=n;return M.jsxs("group",{children:[M.jsx(pp,{ref:e,color:"white",isLine2:!0,lineWidth:2,name:"line",points:[s,r,i,o,a,c]}),M.jsxs("mesh",{children:[M.jsx("planeGeometry",{args:[t.length*1,2]}),M.jsx("meshBasicMaterial",{color:"black"}),M.jsx(_u,{anchorX:"center",anchorY:"middle",color:"white",...yu,scale:1.5,children:t})]})]})};O_.displayName="Connection";const IP=v.memo(O_),$P="#68BE3E",A_=v.memo(({links:n,nodes:e})=>{const t=v.useRef(null),s=v.useRef(new Map),{setSelectionGraphRadius:r}=Ue(_p(i=>i));return v.useEffect(()=>{if(!t.current)return;t.current.children.forEach((l,u)=>{const h=l.children[0],d=l.children[1];if(h instanceof gu){const f=h,m=n[u];if(m){const p=e.find(w=>w.ref_id===m.source),g=e.find(w=>w.ref_id===m.target);if(!p||!g)return;const{x:_,y:k}=p,{x:T,y:b}=g;s.current.set(m.ref_id,{sx:_,sy:k,tx:T,ty:b,sz:0,tz:0});const y=new ye((_+T)/2,(k+b)/2,0);d.position.set(y.x,y.y,1);let x=Math.atan2(b-k,T-_);(T<_||Math.abs(T-_)<.01&&bnew ye(l.x,l.y,l.z)),a=new bp().setFromPoints(o),c=new xp;a.getBoundingSphere(c),r(c.radius)},[n,r,e]),M.jsx("group",{ref:t,name:"simulation-3d-group__connections",children:n==null?void 0:n.map(i=>{var a;const o=((a=s.current)==null?void 0:a.get(i.ref_id))||{sx:0,sy:0,sz:0,tx:0,ty:0,tz:0};return M.jsx(IP,{label:i.edge_type,sourceX:o.sx,sourceY:o.sy,sourceZ:o.sz,targetX:o.tx,targetY:o.ty,targetZ:o.tz},i.ref_id)})})});A_.displayName="Connections";const FP=({onClick:n,node:e,selected:t,rounded:s=!0,x:r,y:i,z:o,id:a})=>{var C,A,D,O,L,j,W;const c=v.useRef(null),[l]=dp(V=>[V.isAdmin]),{open:u}=$h("editNodeName"),{open:h}=$h("createBounty"),d=As(),{normalizedSchemasByType:f,getNodeKeysByType:m}=Hn(V=>V),p=Ue(V=>V.setSelectedNode),g=new ye(r,i,o);nn(()=>{c.current&&c.current.position.lerp(g,.05)});const _=(C=f[e.node_type])==null?void 0:C.icon,k=_?cc[_]:null,T=m(e.node_type)||"",b=e!=null&&e.properties&&T?(e==null?void 0:e.properties[T])||"":e.name||"",y=b?ha(b,30):"",x=T!=="description"?(A=e.properties)==null?void 0:A.description:"",E=x?ha(x,60):"",w=!!(d&&((D=d==null?void 0:d.node_type)==null?void 0:D.toLowerCase())==="function");return M.jsx("mesh",{ref:c,children:M.jsx(ac,{center:!0,sprite:!0,zIndexRange:[0,0],children:M.jsx(LP,{align:"center",direction:"row",justify:"flex-start",children:M.jsx(M.Fragment,{children:t?M.jsxs(jP,{className:$r({"has-padding":E}),rounded:!1,children:[l&&M.jsx(zP,{onClick:()=>u(),children:M.jsx(yy,{})}),M.jsx(VP,{onClick:()=>p(null),children:M.jsx(Q_,{})}),M.jsx("div",{children:M.jsx(op,{align:"center",height:E?48:100,justify:"center",radius:"6px",src:((O=e==null?void 0:e.properties)==null?void 0:O.image_url)||"",width:E?72:200,children:(L=e==null?void 0:e.properties)!=null&&L.image_url?null:M.jsx("span",{children:k?M.jsx(k,{}):M.jsx(da,{})})})}),M.jsxs(Fe,{align:"flex-start",children:[M.jsx(gl,{className:"selected__title",children:y}),E?M.jsx(gl,{children:E}):null]}),w&&M.jsx(UP,{left:2,onClick:()=>{h()},children:"Generate Unit Test"})]}):M.jsxs(M.Fragment,{children:[M.jsx(R_,{onClick:()=>n(a),rounded:s,children:M.jsx(op,{align:"center",height:32,justify:"center",radius:"50%",src:((j=e==null?void 0:e.properties)==null?void 0:j.image_url)||"",width:32,children:(W=e==null?void 0:e.properties)!=null&&W.image_url?null:M.jsx("span",{children:k?M.jsx(k,{}):M.jsx(da,{})})})}),M.jsx(gl,{children:y})]})})})})})},LP=ve(Fe)` background: black; `,gl=ve(Fe)` color: ${ae.white}; margin-left: 16px; width: 100px; -`,D_=ve(Fe)` +`,R_=ve(Fe)` text-align: center; width: 48px; height: 48px; @@ -767,7 +768,7 @@ ${a}`}const C_=v.memo(n=>{var y,x,E,w;const{node:e,hide:t,ignoreDistance:s,color &:hover { outline-offset: 4px; } -`,zP=ve(D_)` +`,jP=ve(R_)` width: 200px; height: 100px; flex-direction: row; @@ -792,7 +793,7 @@ ${a}`}const C_=v.memo(n=>{var y,x,E,w;const{node:e,hide:t,ignoreDistance:s,color text-align: center; width: 250px; } -`,P_=ve(Fe)` +`,D_=ve(Fe)` width: 30px; height: 30px; border-radius: 40px; @@ -806,7 +807,7 @@ ${a}`}const C_=v.memo(n=>{var y,x,E,w;const{node:e,hide:t,ignoreDistance:s,color transition: opacity 0.4s; box-shadow: 0px 2px 12px rgba(0, 0, 0, 0.5); position: absolute; /* Position relative to the parent */ -`,VP=ve(P_)` +`,zP=ve(D_)` left: 130px; top: -10px; background: ${ae.white}; @@ -821,7 +822,7 @@ ${a}`}const C_=v.memo(n=>{var y,x,E,w;const{node:e,hide:t,ignoreDistance:s,color &:hover { transform: scale(1.1); } -`,UP=ve(P_)` +`,VP=ve(D_)` right: -10px; top: -10px; `,op=ve(Fe)` @@ -833,7 +834,7 @@ ${a}`}const C_=v.memo(n=>{var y,x,E,w;const{node:e,hide:t,ignoreDistance:s,color height: ${({height:n})=>`${n}px`}; border-radius: ${({radius:n})=>`${n}`}; font-size: 20px; -`,BP=ve.div` +`,UP=ve.div` position: absolute; top: 170px; left: ${n=>30+n.left}px; @@ -853,10 +854,10 @@ ${a}`}const C_=v.memo(n=>{var y,x,E,w;const{node:e,hide:t,ignoreDistance:s,color &:hover { transform: scale(1.05); } -`,sa=50,WP=7,M_=v.memo(()=>{var p;const[n,e]=v.useState(),{addNewNode:t,nodesNormalized:s}=Wt(g=>g),r=Wt(g=>g.dataInitial),i=As(),o=v.useRef(null),[a,c]=v.useState(null),l=v.useRef(new Map),u=X_(i==null?void 0:i.ref_id),{setSelectedNode:h}=Ue(yp(g=>g)),d=v.useMemo(()=>{if(!(n!=null&&n.nodes.length))return{nodes:[],links:[]};const g=(a==null?void 0:a.nodes)||[],_=(a==null?void 0:a.links.filter(C=>!n.links.some(A=>A.ref_id===C.ref_id)))||[],k=n.nodes.filter(C=>!g.some(A=>A.ref_id===C.ref_id)),T=g.at(-1),b=T?{x:T.x,y:T.y}:{x:0,y:0},y=Math.atan2(b.y,b.x),x=g.length+k.length-1,E=Math.PI*2/x;return{nodes:[...g,...k.map((C,A)=>{const D=y+E*(A+1),O=C.ref_id===(i==null?void 0:i.ref_id)?0:Math.cos(D)*sa,L=C.ref_id===(i==null?void 0:i.ref_id)?0:Math.sin(D)*sa,j=(C.ref_id===(i==null?void 0:i.ref_id),0);return{...C,x:O,y:L,z:j}})],links:[...n.links,..._]}},[n==null?void 0:n.nodes,n==null?void 0:n.links,a==null?void 0:a.nodes,a==null?void 0:a.links,i==null?void 0:i.ref_id]),f=v.useMemo(()=>{var _;if((_=d==null?void 0:d.nodes)!=null&&_.length)return d;if(a)return{nodes:a.nodes,links:a.links};const g=i!=null&&i.ref_id?s.get((i==null?void 0:i.ref_id)||""):null;return{nodes:g?[{...g,x:0,y:0,z:0}]:[],links:[]}},[d,a,i==null?void 0:i.ref_id,s]);v.useEffect(()=>{const g=async()=>{if(i!=null&&i.ref_id&&i.ref_id!==u)try{const _=await V_(i.ref_id,0,5,{useSubGraph:!1});if(_){const k=_.nodes.filter((x,E)=>x.ref_id!==i.ref_id&&E({...x,x:0,y:0,z:0})),{...i,x:0,y:0,z:0,fx:0,fy:0,fz:0}],y=_.edges.filter(x=>b.some(E=>E.ref_id===x.target)&&b.some(E=>E.ref_id===x.source));e({nodes:b,links:y}),l.current=new Map,t({nodes:k,edges:y})}}catch(_){console.error(_)}};if(i)if(i.node_type==="Question"){const _=s.get(i.ref_id);if(!_)return;const k=(_.sources||[]).map(x=>s.get(x)).filter(x=>!!x),T=(_.targets||[]).map(x=>s.get(x)).filter(x=>!!x),b=[...k,...T,{...i,x:0,y:0,z:0,fx:0,fy:0,fz:0}],y=((r==null?void 0:r.links)||[]).filter(x=>b.some(E=>E.ref_id===x.source&&x.target===i.ref_id||E.ref_id===x.target&&x.source===i.ref_id));e({nodes:b,links:y})}else g()},[t,u,i,e,s,r==null?void 0:r.links]);const m=v.useCallback(g=>{if(i){const _=f.nodes.find(C=>C.ref_id===g);if(!_)return;const k=(a==null?void 0:a.nodes.filter(C=>C.ref_id!==_.ref_id))||[],T=[{..._,isPathNode:!1},...k.length?k:[{...i,isPathNode:!0}]].slice(0,3),b=Math.atan2(-_.y,-_.x),y=sa*Math.cos(b),x=sa*Math.sin(b),E=T.map((C,A)=>A===0?{...C,x:0,y:0,z:0,fx:0,fy:0,fz:0,isPathNode:!0}:A===1?T.length===3?{...C,x:y/2,y:x/2,z:0,fx:y/2,fy:x/2,fz:0,isPathNode:!0}:{...C,x:y,y:x,z:0,fx:y,fy:x,fz:0,isPathNode:!0}:{...C,x:y,y:x,z:0,fx:y,fy:x,fz:0,isPathNode:!0}),w=f.links.filter(C=>E.some(A=>A.ref_id===C.target)&&E.some(A=>A.ref_id===C.source));e(null),c({nodes:E,links:w}),h(_)}},[f.links,f.nodes,a,i,h]);return M.jsx(M.Fragment,{children:M.jsxs("group",{ref:o,name:"simulation-2d-group",children:[(p=f.nodes)==null?void 0:p.map(g=>M.jsx(LP,{id:g.ref_id,node:g,onClick:m,selected:g.ref_id===(i==null?void 0:i.ref_id),x:g.x,y:g.y,z:g.z},g.ref_id)),M.jsx(R_,{links:f.links,nodes:f.nodes})]})})});M_.displayName="SelectionDataNodes";const qP=()=>{const n=v.useRef(null),e=Ue(s=>s.selectionGraphRadius),[t]=v.useState(.8);return v.useEffect(()=>{if(console.log(e,"radius"),n.current){const s=n.current.getDistanceToFitSphere(55);n.current.setLookAt(ps.x,ps.y,s,0,0,0,!0)}},[e]),M.jsx(Np,{ref:n,azimuthRotateSpeed:0,boundaryEnclosesCamera:!0,makeDefault:!0,maxDistance:12e3,minDistance:1,polarRotateSpeed:0,smoothTime:t})},HP=()=>M.jsxs(M.Fragment,{children:[M.jsx(gp,{}),M.jsx(qP,{}),M.jsx(M_,{})]});var lp;const YP=((lp=window.location)==null?void 0:lp.hostname)==="graphmindset.sphinx.chat",ap=()=>M.jsx(ac,{children:M.jsx(c1,{})}),GP=()=>{var s;const{universeColor:n}=cm("universe",{universeColor:ae.black}),e=Wt(r=>r.dataInitial),t=As();return v.useMemo(()=>t!=null&&t.node_type?Z_(t.node_type):dE,[t]),M.jsxs(M.Fragment,{children:[M.jsx("color",{args:[ae.BLUE_PRESS_STATE||n],attach:"transparent"}),M.jsx(gp,{}),M.jsx(xR,{}),M.jsxs(C1,{children:[!1,(s=e==null?void 0:e.nodes)!=null&&s.length?M.jsx(kP,{}):null]})]})};let _l=null;const cp={aspect:window.innerWidth/window.innerHeight,far:3e4,near:1,position:[Mi.x,Mi.y,Mi.z]},XP=()=>{const[n,e,t]=[Ws(c=>c.setIsUserScrollingOnHtmlPanel),Ws(c=>c.setIsUserScrolling),Ws(c=>c.setUserMovedCamera)],s=Wt(c=>c.isFetching),r=rc(c=>c.universeQuestionIsOpen),i=As(),o=v.useCallback(c=>{var h;const{target:l}=c,{offsetParent:u}=l;_l&&clearTimeout(_l),(h=u==null?void 0:u.classList)!=null&&h.contains("html-panel")&&u.clientHeight{e(!1),n(!1)},200)},[e,n,t]),a=v.useCallback(c=>U_(c,"threeState"),[]);return M.jsxs(ZP,{children:[M.jsxs(v.Suspense,{fallback:null,children:[M.jsx(am,{hidden:!0,isRoot:!0}),M.jsxs(Lh,{camera:cp,frameloop:i?"demand":"always",id:"universe-canvas",onCreated:a,onWheel:o,children:[Fh&&M.jsx(jh,{position:"top-right",style:{top:"80px"}}),M.jsxs(v.Suspense,{fallback:M.jsx(ap,{}),children:[M.jsx(k1,{}),M.jsx(gd,{}),M.jsx(_d,{}),M.jsx(GP,{})]})]}),YP&&M.jsx(AP,{}),M.jsx(SR,{}),i?M.jsx(KP,{children:M.jsxs(Lh,{camera:{...cp,position:[ps.x,ps.y,ps.z]},id:"selection-canvas",onCreated:({gl:c})=>{c.setClearColor("#000000"),c.setClearAlpha(.8)},children:[Fh&&M.jsx(jh,{position:"top-right",style:{top:"80px"}}),M.jsxs(v.Suspense,{fallback:M.jsx(ap,{}),children:[M.jsx(gd,{}),M.jsx(_d,{}),M.jsx(HP,{})]})]})}):null]}),r&&M.jsx(sE,{}),s&&M.jsx(NP,{fullSize:!1}),M.jsx(ty,{})]})},ZP=ve(Fe)` +`,sa=50,BP=7,P_=v.memo(()=>{var p;const[n,e]=v.useState(),{addNewNode:t,nodesNormalized:s}=Wt(g=>g),r=Wt(g=>g.dataInitial),i=As(),o=v.useRef(null),[a,c]=v.useState(null),l=v.useRef(new Map),u=Z_(i==null?void 0:i.ref_id),{setSelectedNode:h}=Ue(_p(g=>g)),d=v.useMemo(()=>{if(!(n!=null&&n.nodes.length))return{nodes:[],links:[]};const g=(a==null?void 0:a.nodes)||[],_=(a==null?void 0:a.links.filter(C=>!n.links.some(A=>A.ref_id===C.ref_id)))||[],k=n.nodes.filter(C=>!g.some(A=>A.ref_id===C.ref_id)),T=g.at(-1),b=T?{x:T.x,y:T.y}:{x:0,y:0},y=Math.atan2(b.y,b.x),x=g.length+k.length-1,E=Math.PI*2/x;return{nodes:[...g,...k.map((C,A)=>{const D=y+E*(A+1),O=C.ref_id===(i==null?void 0:i.ref_id)?0:Math.cos(D)*sa,L=C.ref_id===(i==null?void 0:i.ref_id)?0:Math.sin(D)*sa,j=(C.ref_id===(i==null?void 0:i.ref_id),0);return{...C,x:O,y:L,z:j}})],links:[...n.links,..._]}},[n==null?void 0:n.nodes,n==null?void 0:n.links,a==null?void 0:a.nodes,a==null?void 0:a.links,i==null?void 0:i.ref_id]),f=v.useMemo(()=>{var _;if((_=d==null?void 0:d.nodes)!=null&&_.length)return d;if(a)return{nodes:a.nodes,links:a.links};const g=i!=null&&i.ref_id?s.get((i==null?void 0:i.ref_id)||""):null;return{nodes:g?[{...g,x:0,y:0,z:0}]:[],links:[]}},[d,a,i==null?void 0:i.ref_id,s]);v.useEffect(()=>{const g=async()=>{if(i!=null&&i.ref_id&&i.ref_id!==u)try{const _=await z_(i.ref_id,0,5,{useSubGraph:!1});if(_){const k=_.nodes.filter((x,E)=>x.ref_id!==i.ref_id&&E({...x,x:0,y:0,z:0})),{...i,x:0,y:0,z:0,fx:0,fy:0,fz:0}],y=_.edges.filter(x=>b.some(E=>E.ref_id===x.target)&&b.some(E=>E.ref_id===x.source));e({nodes:b,links:y}),l.current=new Map,t({nodes:k,edges:y})}}catch(_){console.error(_)}};if(i)if(i.node_type==="Question"){const _=s.get(i.ref_id);if(!_)return;const k=(_.sources||[]).map(x=>s.get(x)).filter(x=>!!x),T=(_.targets||[]).map(x=>s.get(x)).filter(x=>!!x),b=[...k,...T,{...i,x:0,y:0,z:0,fx:0,fy:0,fz:0}],y=((r==null?void 0:r.links)||[]).filter(x=>b.some(E=>E.ref_id===x.source&&x.target===i.ref_id||E.ref_id===x.target&&x.source===i.ref_id));e({nodes:b,links:y})}else g()},[t,u,i,e,s,r==null?void 0:r.links]);const m=v.useCallback(g=>{if(i){const _=f.nodes.find(C=>C.ref_id===g);if(!_)return;const k=(a==null?void 0:a.nodes.filter(C=>C.ref_id!==_.ref_id))||[],T=[{..._,isPathNode:!1},...k.length?k:[{...i,isPathNode:!0}]].slice(0,3),b=Math.atan2(-_.y,-_.x),y=sa*Math.cos(b),x=sa*Math.sin(b),E=T.map((C,A)=>A===0?{...C,x:0,y:0,z:0,fx:0,fy:0,fz:0,isPathNode:!0}:A===1?T.length===3?{...C,x:y/2,y:x/2,z:0,fx:y/2,fy:x/2,fz:0,isPathNode:!0}:{...C,x:y,y:x,z:0,fx:y,fy:x,fz:0,isPathNode:!0}:{...C,x:y,y:x,z:0,fx:y,fy:x,fz:0,isPathNode:!0}),w=f.links.filter(C=>E.some(A=>A.ref_id===C.target)&&E.some(A=>A.ref_id===C.source));e(null),c({nodes:E,links:w}),h(_)}},[f.links,f.nodes,a,i,h]);return M.jsx(M.Fragment,{children:M.jsxs("group",{ref:o,name:"simulation-2d-group",children:[(p=f.nodes)==null?void 0:p.map(g=>M.jsx(FP,{id:g.ref_id,node:g,onClick:m,selected:g.ref_id===(i==null?void 0:i.ref_id),x:g.x,y:g.y,z:g.z},g.ref_id)),M.jsx(A_,{links:f.links,nodes:f.nodes})]})})});P_.displayName="SelectionDataNodes";const WP=()=>{const n=v.useRef(null),e=Ue(s=>s.selectionGraphRadius),[t]=v.useState(.8);return v.useEffect(()=>{if(console.log(e,"radius"),n.current){const s=n.current.getDistanceToFitSphere(55);n.current.setLookAt(ps.x,ps.y,s,0,0,0,!0)}},[e]),M.jsx(Mp,{ref:n,azimuthRotateSpeed:0,boundaryEnclosesCamera:!0,makeDefault:!0,maxDistance:12e3,minDistance:1,polarRotateSpeed:0,smoothTime:t})},qP=()=>M.jsxs(M.Fragment,{children:[M.jsx(mp,{}),M.jsx(WP,{}),M.jsx(P_,{})]}),ap=()=>M.jsx(ac,{children:M.jsx(a1,{})}),HP=()=>{var s;const{universeColor:n}=am("universe",{universeColor:ae.black}),e=Wt(r=>r.dataInitial),t=As();return v.useMemo(()=>t!=null&&t.node_type?K_(t.node_type):hE,[t]),M.jsxs(M.Fragment,{children:[M.jsx("color",{args:[ae.BLUE_PRESS_STATE||n],attach:"transparent"}),M.jsx(mp,{}),M.jsx(bR,{}),M.jsxs(E1,{children:[!1,(s=e==null?void 0:e.nodes)!=null&&s.length?M.jsx(TP,{}):null]})]})};let _l=null;const cp={aspect:window.innerWidth/window.innerHeight,far:3e4,near:1,position:[Mi.x,Mi.y,Mi.z]},YP=()=>{const[n,e,t]=[Ws(c=>c.setIsUserScrollingOnHtmlPanel),Ws(c=>c.setIsUserScrolling),Ws(c=>c.setUserMovedCamera)],s=Wt(c=>c.isFetching),r=rc(c=>c.universeQuestionIsOpen),i=As(),o=v.useCallback(c=>{var h;const{target:l}=c,{offsetParent:u}=l;_l&&clearTimeout(_l),(h=u==null?void 0:u.classList)!=null&&h.contains("html-panel")&&u.clientHeight{e(!1),n(!1)},200)},[e,n,t]),a=v.useCallback(c=>V_(c,"threeState"),[]);return M.jsxs(GP,{children:[M.jsxs(v.Suspense,{fallback:null,children:[M.jsx(om,{hidden:!0,isRoot:!0}),M.jsxs(jh,{camera:cp,frameloop:i?"demand":"always",id:"universe-canvas",onCreated:a,onWheel:o,children:[Fh&&M.jsx(zh,{position:"top-right",style:{top:"80px"}}),M.jsxs(v.Suspense,{fallback:M.jsx(ap,{}),children:[M.jsx(T1,{}),M.jsx(gd,{}),M.jsx(_d,{}),M.jsx(HP,{})]})]}),M.jsx(OP,{}),M.jsx(CR,{}),i?M.jsx(XP,{children:M.jsxs(jh,{camera:{...cp,position:[ps.x,ps.y,ps.z]},id:"selection-canvas",onCreated:({gl:c})=>{c.setClearColor("#000000"),c.setClearAlpha(.8)},children:[Fh&&M.jsx(zh,{position:"top-right",style:{top:"80px"}}),M.jsxs(v.Suspense,{fallback:M.jsx(ap,{}),children:[M.jsx(gd,{}),M.jsx(_d,{}),M.jsx(qP,{})]})]})}):null]}),r&&M.jsx(nE,{}),s&&M.jsx(MP,{fullSize:!1}),M.jsx(J_,{})]})},GP=ve(Fe)` flex: 1 1 100%; position: relative; -`,KP=ve(Fe)` +`,XP=ve(Fe)` position: absolute; inset: 0; -`,jM=v.memo(XP);export{jM as Universe}; +`,HM=v.memo(YP);export{HM as Universe}; diff --git a/build/assets/index-b82a9f52.js b/build/assets/index-b82a9f52.js deleted file mode 100644 index 1ff2354c2..000000000 --- a/build/assets/index-b82a9f52.js +++ /dev/null @@ -1,363 +0,0 @@ -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-1d805415.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-3ac851f3.js";function P0(i){return i===null?"?":i.toLocaleString("en-US").split(",").join(" ")}const _0=s0` - html { - box-sizing: border-box; - } - *, *:before, *:after { - box-sizing: inherit; - } - html, body, div, span, applet, object, iframe, - h1, h2, h3, h4, h5, h6, p, blockquote, pre, - a, abbr, acronym, address, big, cite, code, - del, dfn, em, img, ins, kbd, q, s, samp, - small, strike, strong, sub, sup, tt, var, - b, u, i, center, - dl, dt, dd, ol, ul, li, - fieldset, form, label, legend, - table, caption, tbody, tfoot, thead, tr, th, td, - article, aside, canvas, details, embed, - figure, figcaption, footer, header, hgroup, - menu, nav, output, ruby, section, summary, - time, mark, audio, video { - -moz-osx-font-smoothing: grayscale; - -webkit-font-smoothing: antialiased; - -webkit-tap-highlight-color: transparent; - border: 0; - font-size: 100%; - margin: 0; - padding: 0; - text-rendering: optimizeLegibility; - vertical-align: baseline; - } - a { - cursor: pointer; - text-decoration: none; - } - body { - - &.no-scroll { - overflow: hidden; - } - } - blockquote, q { - quotes: none; - } - blockquote:before, blockquote:after, - q:before, q:after { - content: ''; - content: none; - } - table { - 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-fe4c7b4c.js"),["assets/index-fe4c7b4c.js","assets/index-1d805415.js","assets/index-b4d03b7b.css","assets/index-3ac851f3.js","assets/ClipLoader-9eb1180c.js","assets/Tabs-050299f8.js","assets/createSvgIcon-b68c7390.js"]).then(({SettingsModal:i})=>({default:i}))),z0=x.lazy(()=>h(()=>import("./index-49aceffc.js"),["assets/index-49aceffc.js","assets/index-1d805415.js","assets/index-b4d03b7b.css","assets/index-3ac851f3.js","assets/ClipLoader-9eb1180c.js"]).then(({AddContentModal:i})=>({default:i}))),L0=x.lazy(()=>h(()=>import("./index-287bd287.js"),["assets/index-287bd287.js","assets/index-1d805415.js","assets/index-b4d03b7b.css","assets/index-3ac851f3.js","assets/ClipLoader-9eb1180c.js","assets/index-5fe8c70d.js","assets/three.module-71ec604c.js","assets/index-f3df532f.js","assets/index-5b7bb80c.js","assets/Stack-2f0ef3f5.js","assets/createSvgIcon-b68c7390.js","assets/TextareaAutosize-3b102137.js","assets/index-64f1c910.js"]).then(({AddItemModal:i})=>({default:i}))),N0=x.lazy(()=>h(()=>import("./index-16f87ec1.js"),["assets/index-16f87ec1.js","assets/index-1d805415.js","assets/index-b4d03b7b.css","assets/index-3ac851f3.js","assets/constants-167ef3c0.js","assets/ClipLoader-9eb1180c.js","assets/index-f3df532f.js","assets/index-5b7bb80c.js","assets/Stack-2f0ef3f5.js","assets/createSvgIcon-b68c7390.js","assets/TextareaAutosize-3b102137.js","assets/index-eeddd406.js","assets/Typography-5c2f9b73.js","assets/Tabs-050299f8.js"]).then(({SourcesTableModal:i})=>({default:i}))),R0=x.lazy(()=>h(()=>import("./index-673eed35.js"),["assets/index-673eed35.js","assets/index-1d805415.js","assets/index-b4d03b7b.css","assets/index-3ac851f3.js","assets/index-5b7bb80c.js","assets/Skeleton-633e7f1d.js","assets/ClipLoader-9eb1180c.js"]).then(({EditNodeNameModal:i})=>({default:i}))),O0=x.lazy(()=>h(()=>import("./index-0c2703db.js"),["assets/index-0c2703db.js","assets/index-1d805415.js","assets/index-b4d03b7b.css","assets/index-3ac851f3.js","assets/Skeleton-633e7f1d.js","assets/ClipLoader-9eb1180c.js"]).then(({RemoveNodeModal:i})=>({default:i}))),$0=x.lazy(()=>h(()=>import("./index-2380a87b.js"),["assets/index-2380a87b.js","assets/index-1d805415.js","assets/index-b4d03b7b.css","assets/index-3ac851f3.js","assets/index-f3df532f.js","assets/index-5b7bb80c.js","assets/Stack-2f0ef3f5.js","assets/createSvgIcon-b68c7390.js","assets/TextareaAutosize-3b102137.js","assets/constants-167ef3c0.js","assets/ClipLoader-9eb1180c.js"]).then(({AddNodeEdgeModal:i})=>({default:i}))),q0=x.lazy(()=>h(()=>import("./index-7c5e8119.js"),["assets/index-7c5e8119.js","assets/index-1d805415.js","assets/index-b4d03b7b.css","assets/index-3ac851f3.js","assets/index-eeddd406.js","assets/constants-167ef3c0.js","assets/index-f3df532f.js","assets/index-5b7bb80c.js","assets/Stack-2f0ef3f5.js","assets/createSvgIcon-b68c7390.js","assets/TextareaAutosize-3b102137.js","assets/ClipLoader-9eb1180c.js"]).then(({MergeNodeModal:i})=>({default:i}))),Q0=x.lazy(()=>h(()=>import("./index-db89c0a2.js"),["assets/index-db89c0a2.js","assets/index-1d805415.js","assets/index-b4d03b7b.css","assets/index-5fe8c70d.js","assets/three.module-71ec604c.js","assets/ClipLoader-9eb1180c.js","assets/index-3ac851f3.js","assets/index-f3df532f.js","assets/index-5b7bb80c.js","assets/Stack-2f0ef3f5.js","assets/createSvgIcon-b68c7390.js","assets/TextareaAutosize-3b102137.js","assets/index-64f1c910.js"]).then(({ChangeNodeTypeModal:i})=>({default:i}))),U0=x.lazy(()=>h(()=>import("./index-9525fdf3.js"),["assets/index-9525fdf3.js","assets/index-1d805415.js","assets/index-b4d03b7b.css","assets/index-f3df532f.js","assets/index-5b7bb80c.js","assets/Stack-2f0ef3f5.js","assets/index-3ac851f3.js","assets/createSvgIcon-b68c7390.js","assets/TextareaAutosize-3b102137.js","assets/ClipLoader-9eb1180c.js","assets/isPlainObject-44e85bf8.js","assets/Typography-5c2f9b73.js","assets/index-4dcb3294.js","assets/Tabs-050299f8.js","assets/index-5fe8c70d.js","assets/three.module-71ec604c.js","assets/index-aeaca922.js"]).then(({BlueprintModal:i})=>({default:i}))),W0=x.lazy(()=>h(()=>import("./index-de2489a8.js"),["assets/index-de2489a8.js","assets/index-1d805415.js","assets/index-b4d03b7b.css","assets/index-3ac851f3.js"]).then(({UserFeedBackModal:i})=>({default:i}))),H0=x.lazy(()=>h(()=>import("./index-30a4fcdf.js"),["assets/index-30a4fcdf.js","assets/index-1d805415.js","assets/index-b4d03b7b.css","assets/index-3ac851f3.js","assets/index-f3df532f.js","assets/index-5b7bb80c.js","assets/Stack-2f0ef3f5.js","assets/createSvgIcon-b68c7390.js","assets/TextareaAutosize-3b102137.js"]).then(({CreateBountyModal:i})=>({default:i}))),Y0=x.lazy(()=>h(()=>import("./index-1d805415.js").then(i=>i.cd),["assets/index-1d805415.js","assets/index-b4d03b7b.css"]).then(({OnboardingModal:i})=>({default:i}))),J0=x.lazy(()=>h(()=>import("./index-80a17f62.js").then(i=>i.i),["assets/index-80a17f62.js","assets/index-1d805415.js","assets/index-b4d03b7b.css","assets/index-3ac851f3.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,E=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:E,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; - padding-top: 1px !important; - padding-bottom: 0 !important; - overflow-y: auto; - - &::-webkit-scrollbar { - width: 3px; - } - - &::-webkit-scrollbar-track { - border-radius: 9px; - margin: 4px; - overflow-y: hidden; - } - - .item { - padding: 8px 0; - word-break: break-word; - font-family: 'Barlow'; - font-size: 12px; - font-weight: 400; - text-align: right; - color: ${r.GRAY6}; - } - - &:hover { - background: ${r.MESSAGE_BG_HOVER}; - } -`,ia=c(d).attrs({align:"center",direction:"row"})` - display: flex; - cursor: pointer; - height: 2.5rem; - padding: 0.75rem 0.9375rem 0.75rem 0.9375rem; - align-items: center; - gap: 0.625rem; - color: ${r.white}; - background: ${r.BG1}; - font-family: Barlow; - font-size: 0.75rem; - font-style: normal; - font-weight: 500; - line-height: normal; - letter-spacing: 0.0075rem; - border-radius: 12.5rem; - - &:hover { - background: ${r.BUTTON1_PRESS}; - } - - &:active { - background: ${r.BUTTON1}; - } - - .icon { - display: flex; - align-items: center; - justify-content: center; - margin-right: 10px; - font-size: 16px; - } - - .budgetUnit { - color: ${r.GRAY6}; - } - - .text { - display: flex; - align-items: center; - justify-content: center; - } -`,x0=c.div` - position: absolute; - top: 0; - right: 0; - transform: translate(50%, -50%); - cursor: pointer; - display: none; - z-index: 1; - width: 2em; - height: 2em; - background-color: ${r.BUTTON1}; - border-radius: 50%; - align-items: center; - justify-content: center; - - svg { - fill: ${r.white} !important; - width: 1.5em; - height: 1.5em; - } -`,ta=c(V0)` - .MuiPopover-paper { - margin-top: 4px; - background-color: transparent !important; - box-shadow: none; - background: ${r.MESSAGE_BG}; - border-radius: 6px; - overflow: visible; - - &:hover { - ${x0} { - display: flex; - } - } - } -`,ka="A",xa=0,sa=128,ra=128,ea={g:"LottieFiles AE 3.5.2"},oa=[{ty:0,nm:"M",sr:1,st:0,op:54,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:0,k:[64,64,0],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],w:256,h:256,refId:"comp_0",ind:1},{ty:0,nm:"M",sr:1,st:54,op:108,ip:54,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:0,k:[64,64,0],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],w:256,h:256,refId:"comp_1",ind:2},{ty:0,nm:"2",sr:1,st:108,op:162,ip:108,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:0,k:[64,64,0],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],w:256,h:256,refId:"comp_2",ind:3},{ty:0,nm:"2",sr:1,st:162,op:255,ip:162,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:0,k:[64,64,0],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],w:256,h:256,refId:"comp_3",ind:4}],ma="4.8.0",na=60,ca=216,la=0,ha=[{nm:"",id:"comp_0",layers:[{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:0,k:[128,128,0],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,116],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:1},{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[107.215,116,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:0,k:[107.215,116,0],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[96.823,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[107.215,104],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:2},{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[148.785,116,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:0,k:[148.785,116,0],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[159.177,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[148.785,104],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:3},{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,104,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:0,k:[128,104,0],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,110],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,110],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,92],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:4},{ty:4,nm:"C",sr:1,st:0,op:180,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,152,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[148.785,164,0],t:18,ti:[0,0,0],to:[0,0,0]},{o:{x:.8,y:0},i:{x:.2,y:1},s:[148.785,140,0],t:36,ti:[0,0,0],to:[0,0,0]},{s:[128,128,0],t:54}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,158],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,158],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,140],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:5},{ty:4,nm:"C",sr:1,st:0,op:180,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[107.215,140,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[86.431,152,0],t:18,ti:[0,0,0],to:[0,0,0]},{o:{x:.8,y:0},i:{x:.2,y:1},s:[86.431,128,0],t:36,ti:[0,0,0],to:[0,0,0]},{s:[107.215,116,0],t:54}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[96.823,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[107.215,128],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:6},{ty:4,nm:"C",sr:1,st:0,op:180,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[128,128,0],t:18,ti:[0,0,0],to:[0,0,0]},{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[128,152,0],t:36,ti:[0,0,0],to:[0,0,0]},{s:[128,152,0],t:54}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,116],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:7},{ty:4,nm:"C",sr:1,st:0,op:180,ip:36,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[148.785,140,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[169.569,104,0],t:36,ti:[0,0,0],to:[0,0,0]},{s:[148.785,116,0],t:54}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[159.177,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[148.785,128],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:8},{ty:4,nm:"C",sr:1,st:0,op:180,ip:36,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[107.216,92,0],t:36,ti:[0,0,0],to:[0,0,0]},{s:[128,104,0],t:54}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,116],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:9},{ty:4,nm:"C",sr:1,st:0,op:180,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[107.215,116,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[107.215,116,0],t:18,ti:[0,0,0],to:[0,0,0]},{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[107.215,140,0],t:36,ti:[0,0,0],to:[0,0,0]},{s:[107.215,140,0],t:54}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[96.823,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[107.215,104],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:10},{ty:4,nm:"C",sr:1,st:0,op:180,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[148.785,116,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[148.785,116,0],t:18,ti:[0,0,0],to:[0,0,0]},{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[148.785,140,0],t:36,ti:[0,0,0],to:[0,0,0]},{s:[148.785,140,0],t:54}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[159.177,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[148.785,104],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:11},{ty:4,nm:"C",sr:1,st:0,op:180,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,104,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[128,104,0],t:18,ti:[0,0,0],to:[0,0,0]},{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[128,128,0],t:36,ti:[0,0,0],to:[0,0,0]},{s:[128,128,0],t:54}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,110],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,110],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,92],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:12},{ty:4,nm:"C",sr:1,st:0,op:36,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[148.785,140,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[169.569,128,0],t:18,ti:[0,0,0],to:[0,0,0]},{s:[169.569,104,0],t:36}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[159.177,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[148.785,128],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:13},{ty:4,nm:"C",sr:1,st:0,op:36,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[107.215,116,0],t:18,ti:[0,0,0],to:[0,0,0]},{s:[107.216,92,0],t:36}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,116],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:14},{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,152,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[128,152,0],t:0,ti:[0,0,0],to:[0,0,0]},{s:[148.785,164,0],t:18}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,158],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,158],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,140],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:15},{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[107.215,140,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[107.215,140,0],t:0,ti:[0,0,0],to:[0,0,0]},{s:[86.431,152,0],t:18}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[96.823,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[107.215,128],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:16},{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[148.785,140,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[148.785,140,0],t:0,ti:[0,0,0],to:[0,0,0]},{s:[169.569,128,0],t:18}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[159.177,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[148.785,128],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:17},{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[128,128,0],t:0,ti:[0,0,0],to:[0,0,0]},{s:[107.215,116,0],t:18}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,116],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:18}]},{nm:"",id:"comp_1",layers:[{ty:4,nm:"C",sr:1,st:0,op:36,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[107.215,140,0],t:18,ti:[0,0,0],to:[0,0,0]},{s:[107.215,164,0],t:36}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,116],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:1},{ty:4,nm:"C",sr:1,st:0,op:180,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,152,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[128,152,0],t:18,ti:[0,0,0],to:[0,0,0]},{s:[128,128,0],t:36}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,158],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,158],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,140],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:2},{ty:4,nm:"C",sr:1,st:0,op:180,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[107.215,140,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[107.215,140,0],t:18,ti:[0,0,0],to:[0,0,0]},{s:[107.215,116,0],t:36}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[96.823,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[107.215,128],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:3},{ty:4,nm:"C",sr:1,st:0,op:36,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[107.215,116,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[86.431,104,0],t:18,ti:[0,0,0],to:[0,0,0]},{s:[86.431,128,0],t:36}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[96.823,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[107.215,104],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:4},{ty:4,nm:"C",sr:1,st:0,op:36,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[148.785,116,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[169.569,128,0],t:18,ti:[0,0,0],to:[0,0,0]},{s:[169.569,152,0],t:36}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[159.177,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[148.785,104],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:5},{ty:4,nm:"C",sr:1,st:0,op:180,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[148.785,140,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[148.785,140,0],t:18,ti:[0,0,0],to:[0,0,0]},{s:[148.785,116,0],t:36}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[159.177,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[148.785,128],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:6},{ty:4,nm:"C",sr:1,st:0,op:180,ip:36,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[107.215,164,0],t:36,ti:[0,0,0],to:[0,0,0]},{s:[128,152,0],t:54}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,116],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:7},{ty:4,nm:"C",sr:1,st:0,op:180,ip:36,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[107.215,116,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[86.431,128,0],t:36,ti:[0,0,0],to:[0,0,0]},{s:[107.215,140,0],t:54}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[96.823,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[107.215,104],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:8},{ty:4,nm:"C",sr:1,st:0,op:180,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[128,128,0],t:18,ti:[0,0,0],to:[0,0,0]},{s:[128,104,0],t:36}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,116],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:9},{ty:4,nm:"C",sr:1,st:0,op:180,ip:36,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[148.785,116,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[169.569,152,0],t:36,ti:[0,0,0],to:[0,0,0]},{s:[148.785,140,0],t:54}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[159.177,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[148.785,104],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:10},{ty:4,nm:"C",sr:1,st:0,op:180,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,104,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[148.785,92,0],t:18,ti:[0,0,0],to:[0,0,0]},{o:{x:.8,y:0},i:{x:.2,y:1},s:[148.785,116,0],t:36,ti:[0,0,0],to:[0,0,0]},{s:[128,128,0],t:54}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,110],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,110],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,92],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:11},{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[128,128,0],t:0,ti:[0,0,0],to:[0,0,0]},{s:[107.215,140,0],t:18}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,116],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:12},{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[107.215,116,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[107.215,116,0],t:0,ti:[0,0,0],to:[0,0,0]},{s:[86.431,104,0],t:18}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[96.823,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[107.215,104],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:13},{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[148.785,116,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[148.785,116,0],t:0,ti:[0,0,0],to:[0,0,0]},{s:[169.569,128,0],t:18}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[159.177,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[148.785,104],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:14},{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,104,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[128,104,0],t:0,ti:[0,0,0],to:[0,0,0]},{s:[148.785,92,0],t:18}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,110],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,110],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,92],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:15},{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,152,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:0,k:[128,152,0],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,158],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,158],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,140],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:16},{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[107.215,140,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:0,k:[107.215,140,0],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[96.823,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[107.215,128],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:17},{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[148.785,140,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:0,k:[148.785,140,0],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[159.177,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[148.785,128],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:18},{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:0,k:[128,128,0],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,116],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:19}]},{nm:"",id:"comp_2",layers:[{ty:4,nm:"C",sr:1,st:0,op:36,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[128,128,0],t:0,ti:[0,0,0],to:[0,0,0]},{o:{x:.8,y:0},i:{x:.2,y:1},s:[148.785,140,0],t:18,ti:[0,0,0],to:[0,0,0]},{s:[148.785,164,0],t:36}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,116],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:1},{ty:4,nm:"C",sr:1,st:0,op:36,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[107.215,116,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[107.215,116,0],t:0,ti:[0,0,0],to:[0,0,0]},{o:{x:.8,y:0},i:{x:.2,y:1},s:[86.431,128,0],t:18,ti:[0,0,0],to:[0,0,0]},{s:[86.431,152,0],t:36}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[96.823,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[107.215,104],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:2},{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[148.785,116,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[148.785,116,0],t:0,ti:[0,0,0],to:[0,0,0]},{s:[169.569,104,0],t:18}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[159.177,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[148.785,104],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:3},{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,104,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[128,104,0],t:0,ti:[0,0,0],to:[0,0,0]},{s:[107.215,92,0],t:18}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,110],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,110],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,92],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:4},{ty:4,nm:"C",sr:1,st:0,op:180,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,152,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[128,152,0],t:18,ti:[0,0,0],to:[0,0,0]},{s:[128,128,0],t:36}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,158],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,158],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,140],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:5},{ty:4,nm:"C",sr:1,st:0,op:180,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[107.215,140,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[107.215,140,0],t:18,ti:[0,0,0],to:[0,0,0]},{s:[107.215,116,0],t:36}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[96.823,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[107.215,128],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:6},{ty:4,nm:"C",sr:1,st:0,op:180,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[148.785,140,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[148.785,140,0],t:18,ti:[0,0,0],to:[0,0,0]},{s:[148.785,116,0],t:36}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[159.177,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[148.785,128],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:7},{ty:4,nm:"C",sr:1,st:0,op:180,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[128,128,0],t:18,ti:[0,0,0],to:[0,0,0]},{s:[128,104,0],t:36}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,116],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:8},{ty:4,nm:"C",sr:1,st:0,op:180,ip:36,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[148.785,164,0],t:36,ti:[0,0,0],to:[0,0,0]},{s:[128,152,0],t:54}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,116],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:9},{ty:4,nm:"C",sr:1,st:0,op:180,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[148.785,116,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[169.569,104,0],t:18,ti:[0,0,0],to:[0,0,0]},{o:{x:.8,y:0},i:{x:.2,y:1},s:[169.569,128,0],t:36,ti:[0,0,0],to:[0,0,0]},{s:[148.785,140,0],t:54}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[159.177,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[148.785,104],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:10},{ty:4,nm:"C",sr:1,st:0,op:180,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,104,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[107.215,92,0],t:18,ti:[0,0,0],to:[0,0,0]},{o:{x:.8,y:0},i:{x:.2,y:1},s:[107.215,116,0],t:36,ti:[0,0,0],to:[0,0,0]},{s:[128,128,0],t:54}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,110],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,110],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,92],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:11},{ty:4,nm:"C",sr:1,st:0,op:180,ip:36,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[107.215,116,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[86.431,152,0],t:36,ti:[0,0,0],to:[0,0,0]},{s:[107.215,140,0],t:54}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[96.823,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[107.215,104],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:12},{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,152,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:0,k:[128,152,0],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,158],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,158],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,140],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:13},{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[107.215,140,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:0,k:[107.215,140,0],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[96.823,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[107.215,128],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:14},{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[148.785,140,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:0,k:[148.785,140,0],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[159.177,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[148.785,128],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:15},{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:0,k:[128,128,0],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,116],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:16}]},{nm:"",id:"comp_3",layers:[{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:0,k:[128,128,0],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,116],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:1},{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[107.215,116,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:0,k:[107.215,116,0],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[96.823,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[107.215,104],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:2},{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[148.785,116,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:0,k:[148.785,116,0],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[159.177,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[148.785,104],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:3},{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,104,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:0,k:[128,104,0],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,110],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,110],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,92],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:4},{ty:4,nm:"C",sr:1,st:0,op:119,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,152,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[107.215,164,0],t:18,ti:[0,0,0],to:[0,0,0]},{o:{x:.8,y:0},i:{x:.2,y:1},s:[107.215,140,0],t:36,ti:[0,0,0],to:[0,0,0]},{s:[128,128,0],t:54}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,158],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,158],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,140],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:5},{ty:4,nm:"C",sr:1,st:0,op:119,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[148.785,140,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[169.569,152,0],t:18,ti:[0,0,0],to:[0,0,0]},{o:{x:.8,y:0},i:{x:.2,y:1},s:[169.569,128,0],t:36,ti:[0,0,0],to:[0,0,0]},{s:[148.785,116,0],t:54}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[159.177,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[148.785,128],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:6},{ty:4,nm:"C",sr:1,st:0,op:119,ip:36,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[107.215,140,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[86.431,104,0],t:36,ti:[0,0,0],to:[0,0,0]},{s:[107.215,116,0],t:54}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[96.823,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[107.215,128],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:7},{ty:4,nm:"C",sr:1,st:0,op:119,ip:36,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[148.785,92,0],t:36,ti:[0,0,0],to:[0,0,0]},{s:[128,104,0],t:54}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,116],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:8},{ty:4,nm:"C",sr:1,st:0,op:119,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[128,128,0],t:18,ti:[0,0,0],to:[0,0,0]},{s:[128,152,0],t:36}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,116],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:9},{ty:4,nm:"C",sr:1,st:0,op:119,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[107.215,116,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[107.215,116,0],t:18,ti:[0,0,0],to:[0,0,0]},{s:[107.215,140,0],t:36}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[96.823,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[107.215,104],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:10},{ty:4,nm:"C",sr:1,st:0,op:119,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[148.785,116,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[148.785,116,0],t:18,ti:[0,0,0],to:[0,0,0]},{s:[148.785,140,0],t:36}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[159.177,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[148.785,104],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:11},{ty:4,nm:"C",sr:1,st:0,op:119,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,104,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[128,104,0],t:18,ti:[0,0,0],to:[0,0,0]},{s:[128,128,0],t:36}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,110],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,110],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,92],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:12},{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,152,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[128,152,0],t:0,ti:[0,0,0],to:[0,0,0]},{s:[107.215,164,0],t:18}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,158],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,158],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,140],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:13},{ty:4,nm:"C",sr:1,st:0,op:36,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[107.215,140,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[107.215,140,0],t:0,ti:[0,0,0],to:[0,0,0]},{o:{x:.8,y:0},i:{x:.2,y:1},s:[86.431,128,0],t:18,ti:[0,0,0],to:[0,0,0]},{s:[86.431,104,0],t:36}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[96.823,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[107.215,128],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:14},{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[148.785,140,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[148.785,140,0],t:0,ti:[0,0,0],to:[0,0,0]},{s:[169.569,152,0],t:18}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[159.177,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[148.785,128],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:15},{ty:4,nm:"C",sr:1,st:0,op:36,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[128,128,0],t:0,ti:[0,0,0],to:[0,0,0]},{o:{x:.8,y:0},i:{x:.2,y:1},s:[148.785,116,0],t:18,ti:[0,0,0],to:[0,0,0]},{s:[148.785,92,0],t:36}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,116],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:16}]}],pa={nm:ka,ddd:xa,h:sa,w:ra,meta:ea,layers:oa,v:ma,fr:na,op:ca,ip:la,assets:ha},da=()=>{const i=x.useRef(null);return x.useEffect(()=>{const k=document.getElementById("lottie-animation");return k&&(i.current=m0.loadAnimation({container:k,animationData:pa,loop:!0,autoplay:!0})),()=>{i.current&&i.current.destroy()}},[]),a.jsx("div",{id:"lottie-animation",style:{width:"2em",height:"2em"}})},fa=()=>{const[i,k]=x.useState(!1),[e,n]=x.useState(0),[o,y]=a0(s=>[s.budget,s.setBudget]),{normalizedSchemasByType:E}=n0(s=>s),[m,V,M,C]=_(s=>[s.stats,s.setStats,s.fetchData,s.setAbortRequests]);k0();const{open:T}=c0("sourcesTable"),g=async()=>{try{const s=await l0();s.totalProcessing&&s.totalProcessing>0?(k(!0),n(s.totalProcessing)):k(!1)}catch(s){console.error("Error fetching data:",s),k(!1)}};function I(s){}if(x.useEffect(()=>{m||(async()=>{try{const p=await h0();if(p){const f=p0(p);V(f)}}catch{d0.noop()}})()},[V,m]),x.useEffect(()=>{g()},[]),!m)return null;const F=s=>s.replace(/\b\w/g,p=>p.toUpperCase()),j=s=>{var S;const p=F(s.split("_")[0]),f=p,B=(S=E[p])==null?void 0:S.icon,D=g0[B]||F0;return{name:p,Icon:D,key:s,dataKey:s,mediaType:p,tooltip:f}},w=Object.keys(m).map(s=>j(s));return a.jsxs(ba,{children:[a.jsx(ya,{children:w.map(({name:s,Icon:p,key:f,mediaType:B,tooltip:D})=>m[f]!==0?a.jsx(ua,{"data-testid":B,onClick:()=>void 0,children:a.jsxs(R,{content:D,margin:"13px",children:[a.jsx("div",{className:"icon",children:a.jsx(p,{})}),a.jsx("div",{className:"text",children:m[f]})]})},s):a.jsx(a.Fragment,{}))}),a.jsxs(Ga,{children:[i?a.jsxs(Aa,{"data-testid":"view-content",onClick:T,children:[a.jsx("div",{className:"icon",style:{marginLeft:"7px"},children:a.jsx(da,{})}),a.jsx("div",{className:"text",children:a.jsx("p",{children:e})})]}):null,a.jsx(Ea,{children:a.jsxs(R,{content:"Budget",margin:"18px",children:[a.jsx("div",{className:"icon",children:a.jsx(S0,{})}),a.jsx("div",{className:"text",children:a.jsxs("p",{children:[`${P0(o)} `," ",a.jsx("span",{className:"budgetUnit",children:"SAT"})]})})]})})]})]})},ya=c(d).attrs({align:"center",direction:"row",grow:1,justify:"flex-start"})``,Ga=c(d).attrs({align:"center",direction:"row",grow:1,justify:"flex-end"})``,ba=c(d).attrs({align:"center",direction:"row",grow:1})` - justify-content: between; -`,ua=c(d).attrs({align:"center",direction:"row",justify:"flex-start"})` - color: ${r.white}; - background: ${r.BG1}; - padding: 6px 10px 6px 8px; - font-family: Barlow; - font-size: 13px; - font-style: normal; - font-weight: 500; - line-height: 15px; - letter-spacing: 0.78px; - margin: 0 8px; - border-radius: 200px; - cursor: pointer; - - &:hover { - background: ${r.BUTTON1_PRESS}; - } - - &:active { - background: ${r.BUTTON1}; - } - - .icon { - margin-right: 8px; - font-size: 16px; - } - - .text { - } -`,Ea=c(d).attrs({align:"center",direction:"row"})` - display: flex; - height: 2.5rem; - padding: 0.75rem 0.9375rem 0.75rem 0.9375rem; - align-items: center; - gap: 0.625rem; - color: ${r.white}; - background: ${r.BG1}; - font-family: Barlow; - font-size: 0.75rem; - font-style: normal; - font-weight: 500; - line-height: normal; - letter-spacing: 0.0075rem; - border-radius: 12.5rem; - - &:hover { - background: ${r.BUTTON1_PRESS}; - } - - &:active { - background: ${r.BUTTON1}; - } - - .icon { - display: flex; - align-items: center; - justify-content: center; - margin-right: 10px; - } - - .budgetUnit { - color: ${r.GRAY6}; - } - - .text { - display: flex; - align-items: center; - justify-content: center; - } -`,Aa=c(d).attrs({align:"center",direction:"row"})` - margin-right: 10px; - display: flex; - height: 28px; - padding: 0.75rem 0.6375rem 0.75rem 0.3187rem; - align-items: center; - gap: 4px; - color: ${r.white}; - background: ${r.modalShield}; - font-family: Barlow; - font-size: 0.75rem; - font-style: normal; - font-weight: 500; - line-height: normal; - letter-spacing: 0.0075rem; - border-radius: 12.5rem; - - &:active { - background: ${r.BUTTON1}; - } - - .icon { - display: flex; - align-items: center; - justify-content: center; - width: 22px; - height: 22px; - } - - .text { - display: flex; - align-items: center; - justify-content: center; - } -`,Ba=()=>{const i=i0(m=>m.appMetaData),{resetAiSummaryAnswer:k,setNewLoading:e}=t0(),{abortFetchData:n,resetGraph:o}=_(m=>m),y=y0();if(!i)return null;const E=()=>{e(null),n(),o(),k(),y("/")};return a.jsxs(Da,{children:[a.jsxs(Va,{onClick:E,children:[a.jsx(a.Fragment,{children:i.title&&a.jsx(N,{className:"title",color:"white",children:i.title})}),a.jsx(N,{className:"subtitle",children:"Second Brain"})]}),a.jsx(fa,{}),a.jsx(X0,{})]})},Da=c(d).attrs({align:"center",direction:"row",grow:1,justify:"flex-start"})` - height: 64px; - position: absolute; - top: 0px; - left: 64px; - right: 32px; - transition: opacity 1s; - z-index: 99; - padding: 20px 23px; -`,Va=c.div` - ${f0.smallOnly` - display: none; - `} - - width: 367px; - - .title { - color: var(--Primary-Text, #fff); - font-family: Barlow; - font-size: 22px; - font-style: normal; - font-weight: 700; - line-height: 16px; /* 72.727% */ - letter-spacing: 0.22px; - cursor: pointer; - } - - .subtitle { - color: ${r.GRAY6}; - font-family: Barlow; - font-size: 22px; - font-style: normal; - font-weight: 400; - line-height: 16px; - letter-spacing: 0.22px; - margin-left: 8px; - cursor: pointer; - } -`,Sa=620,ga=()=>{const i=`(max-width: ${Sa}px)`,[k,e]=x.useState(()=>window.matchMedia(i).matches);return x.useEffect(()=>{const n=window.matchMedia(i);e(n.matches);const o=()=>{e(n.matches)};return window.addEventListener("resize",o),()=>n.removeEventListener("change",o)},[i]),k},Fa=()=>{const[i,k]=x.useState(!0),e=ga();x.useEffect(()=>{k(!0)},[e]);const n=()=>{k(!1)};return e&&i?a.jsxs(ja,{align:"center",direction:"column",justify:"center",onClick:n,children:[a.jsx("img",{alt:"screen",src:"jamboard_kiosk.png"}),a.jsxs(d,{align:"center",direction:"column",justify:"center",children:[a.jsx(L,{children:"Second Brain is currently"}),a.jsx(L,{style:{fontWeight:600},children:"optimized for Desktop."}),a.jsx(L,{children:"Mobile support coming soon."})]}),a.jsx(G0,{color:"secondary",onClick:n,variant:"contained",children:"Got It"})]}):null},ja=c(d)` - height: 100vh; - width: 100vw; - background: rgba(0, 0, 0, 0.75); - gap: 28px; - z-index: 2000000000; - position: fixed; - top: 0; - left: 0; - right: 0; -`,L=c(N)` - color: #fff; - text-align: center; - font-family: Barlow; - font-size: 18px; - font-style: normal; - font-weight: 400; - line-height: 24px; - margin: 1px; -`,wa=c(b0)` - .Toastify__toast { - background-color: #49c998ff; - width: fit-content; - min-height: 100%; - border-radius: 12px; - padding: 6px; - } - .Toastify__toast-body { - background-color: #49c998ff; - color: ${r.white}; - font-weight: 500; - font-family: 'Barlow'; - } - .Toastify__close-button { - color: ${r.white}; - } - .Toastify__progress-bar--error { - background-color: ${r.primaryRed}; - } - .Toastify__progress-bar--success { - background-color: ${r.primaryGreen}; - } - &.Toastify__toast-container--top-right { - width: fit-content; - height: auto; - top: 60px; - right: 48px; - } -`,va=c(d)` - height: 100%; - width: 100%; - background-color: ${r.black}; -`,Pa=c(d)` - position: absolute; - bottom: 8px; - left: 8px; - color: ${r.white}; - font-size: 12px; - opacity: 0.5; -`,_a=x.lazy(()=>h(()=>import("./index-ec17158d.js"),["assets/index-ec17158d.js","assets/index-1d805415.js","assets/index-b4d03b7b.css","assets/index-3ac851f3.js"]).then(({MainToolbar:i})=>({default:i}))),Ma=x.lazy(()=>h(()=>import("./index-9142d688.js"),["assets/index-9142d688.js","assets/index-1d805415.js","assets/index-b4d03b7b.css","assets/index-aeaca922.js","assets/three.module-71ec604c.js","assets/index-4dcb3294.js","assets/index-3ac851f3.js","assets/TextareaAutosize-3b102137.js","assets/index-5b7bb80c.js","assets/ClipLoader-9eb1180c.js"]).then(({Universe:i})=>({default:i}))),Ca=x.lazy(()=>h(()=>import("./index-6eb81ca4.js").then(i=>i.i),["assets/index-6eb81ca4.js","assets/index-1d805415.js","assets/index-b4d03b7b.css","assets/index-3ac851f3.js","assets/ClipLoader-9eb1180c.js","assets/Skeleton-633e7f1d.js","assets/Stack-2f0ef3f5.js","assets/index-80a17f62.js","assets/index-5b7bb80c.js","assets/isPlainObject-44e85bf8.js","assets/Typography-5c2f9b73.js","assets/createSvgIcon-b68c7390.js","assets/index-4dcb3294.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:E,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(),[$,A]=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),E(!0),m?await D0(e):v(null)};S(),t()},[m,F,e,w,E,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:u}=o.current,P={nodes:b,edges:u};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),A&&l.on("extractedentitieshook",X),A&&l.on("askquestionhook",H),A&&l.on("relevantquestionshook",J),A&&l.on("answersourceshook",K),$&&l.on("new_node_created",W),A&&l.on("answeraudiohook",Y)),()=>{l&&l.off()}),[l,U,W,$,H,A,J,K,X,Y]),x.useEffect(()=>{if(!f)return;const t=new WebSocket("wss://jobs.stakwork.com/cable?channel=ProjectLogChannel");t.onopen=()=>{const u={command:"subscribe",identifier:JSON.stringify({channel:"ProjectLogChannel",id:f})};t.send(JSON.stringify(u))},t.onmessage=b=>{var Z;const u=JSON.parse(b.data);if(console.log(u),u.type==="ping")return;const P=(Z=u==null?void 0:u.message)==null?void 0:Z.message;P&&B(P)},t.onerror=b=>{console.error("WebSocket error:",b)}},[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||A&&g()},[g,p,A]),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-49aceffc.js b/build/assets/index-d6e6bd7b.js similarity index 57% rename from build/assets/index-49aceffc.js rename to build/assets/index-d6e6bd7b.js index 50778e05c..3c44133a9 100644 --- a/build/assets/index-49aceffc.js +++ b/build/assets/index-d6e6bd7b.js @@ -1,4 +1,4 @@ -import{a_ as j,a$ as E,b0 as y,b1 as R,b2 as T,b3 as U,b4 as D,b5 as O,s as p,a as u,b as Z,r as f,j as e,F as r,B as C,aY as J,T as z,b6 as K,aW as X,aX as Q,e as ee,u as te,t as se,aU as ne,aV as m,aZ as oe,v as re,b7 as ae,ae as ie,b8 as ce,b9 as le,ad as de,w as ue,ba as pe}from"./index-1d805415.js";import{a3 as xe}from"./index-3ac851f3.js";import{f as he}from"./index-b82a9f52.js";import{C as fe}from"./ClipLoader-9eb1180c.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_-]+)/,be=/https:\/\/twitter\.com\/i\/spaces\/([A-Za-z0-9_-]+)/,ye=/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,be,je].some(n=>n.test(t))?T:ve.test(t)?E:A.test(t)?j:ye.test(t)?U:Se.test(t)?y:Re.test(t)?R:_e.test(t)?await Ce(t)?y:D:O}const $e=(t,s="")=>{const o=(s===j?A:/@(\w+)/).exec(t);return o?o[1]:null},_=t=>!!t&&[j,E,y,R].includes(t),Be=({onClick:t,loading:s,type:n,error:o})=>{const b=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(Te,{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(b)," 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]})},Te=p(r).attrs({direction:"column",align:"space-between",justify:"flex-start"})` +import{aX as j,aY as E,aZ as b,a_ as R,a$ as B,b0 as U,b1 as D,b2 as O,s as p,a as u,g as Z,r as f,j as e,F as r,B as C,aV as J,T as z,b3 as K,aT as X,aU as Q,a0 as ee,u as te,i as se,aR as ne,aS as m,aW as oe,k as re,b4 as ae,ab as ie,b5 as ce,b6 as le,aa as de,l as ue,b7 as pe}from"./index-2353781d.js";import{C as xe}from"./CheckIcon-bcbb5853.js";import{f as he}from"./index-717b1eb9.js";import{C as fe}from"./ClipLoader-c90857c8.js";const k=/\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)(\/.*)?$/,_e=/https?:\/\/(www\.)?youtube\.com\/(user\/)?(@)?([\w-]+)/,ve=/^(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:_e.test(t)?E:k.test(t)?j:be.test(t)?U:Se.test(t)?b:Re.test(t)?R:ve.test(t)?await Ce(t)?b:D:O}const $e=(t,s="")=>{const o=(s===j?k:/@(\w+)/).exec(t);return o?o[1]:null},v=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=v(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(Ae,{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(ke,{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}; @@ -19,7 +19,7 @@ import{a_ as j,a$ as E,b0 as y,b1 as R,b2 as T,b3 as U,b4 as D,b5 as O,s as p,a font-style: normal; font-weight: 500; } -`,Ae=p(r).attrs({direction:"column",align:"space-between",justify:"flex-start"})` +`,ke=p(r).attrs({direction:"column",align:"space-between",justify:"flex-start"})` color: ${u.secondaryText4}; .title { font-family: Barlow; @@ -34,7 +34,7 @@ import{a_ as j,a$ as E,b0 as y,b1 as R,b2 as T,b3 as U,b4 as D,b5 as O,s as p,a font-style: normal; font-weight: 400; } -`,ke=p(z)` +`,Ae=p(z)` font-size: 22px; font-weight: 600; font-family: 'Barlow'; @@ -81,11 +81,11 @@ import{a_ as j,a$ as E,b0 as y,b1 as R,b2 as T,b3 as U,b4 as D,b5 as O,s as p,a width: 16px; height: 16px; } -`,Ie=/^(https?:\/\/)/g,Le=/(www\.)?/g,Ue=/[\w-]+(\.[\w-]+)*/g,De=/(?:\.[a-zA-Z0-9][a-zA-Z0-9-]{0,61})[a-zA-Z0-9](?:\.[a-zA-Z]{2,})/g,Oe=/(\/[^\s?]*)?/g,Ze=/(\?[^\s]*)?/g,G=new RegExp(`${Ie.source}${Le.source}${Ue.source}${De.source}?${Oe.source}${Ze.source}$`,"i"),M=t=>{if(t==null?void 0:t.match(G)){const o=new URL(t).hostname;return o!=null&&o.startsWith("www.")?((o==null?void 0:o.match(/\./g))||[]).length>=2:((o==null?void 0:o.match(/\./g))||[]).length>=1}return!1},Ge=({type:t,onNextStep:s,allowNextStep:n})=>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(Me,{children:"Add Content"})})}),e.jsx(r,{mb:12,children:e.jsx(X,{id:"cy-youtube-channel-id",maxLength:250,name:"source",placeholder:"Paste your url here...",rules:{...Q,...t!==T?{pattern:{message:"Please enter a valid URL",value:G},validate:{source:M}}:{}}})}),e.jsx(r,{children:e.jsx(C,{color:"secondary","data-testid":"add-content-btn",disabled:!n,onClick:s,size:"large",variant:"contained",children:"Next"})})]}),Me=p(z)` +`,Ie=/^(https?:\/\/)/g,Le=/(www\.)?/g,Ue=/[\w-]+(\.[\w-]+)*/g,De=/(?:\.[a-zA-Z0-9][a-zA-Z0-9-]{0,61})[a-zA-Z0-9](?:\.[a-zA-Z]{2,})/g,Oe=/(\/[^\s?]*)?/g,Ze=/(\?[^\s]*)?/g,G=new RegExp(`${Ie.source}${Le.source}${Ue.source}${De.source}?${Oe.source}${Ze.source}$`,"i"),M=t=>{if(t==null?void 0:t.match(G)){const o=new URL(t).hostname;return o!=null&&o.startsWith("www.")?((o==null?void 0:o.match(/\./g))||[]).length>=2:((o==null?void 0:o.match(/\./g))||[]).length>=1}return!1},Ge=({type:t,onNextStep:s,allowNextStep:n})=>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(Me,{children:"Add Content"})})}),e.jsx(r,{mb:12,children:e.jsx(X,{id:"cy-youtube-channel-id",maxLength:250,name:"source",placeholder:"Paste your url here...",rules:{...Q,...t!==B?{pattern:{message:"Please enter a valid URL",value:G},validate:{source:M}}:{}}})}),e.jsx(r,{children:e.jsx(C,{color:"secondary","data-testid":"add-content-btn",disabled:!n,onClick:s,size:"large",variant:"contained",children:"Next"})})]}),Me=p(z)` font-size: 22px; font-weight: 600; font-family: 'Barlow'; -`,B={[j]:{label:"Twitter handle",img:"twitter_default.svg"},[E]:{label:"Youtube channel",img:"youtube_default.svg"},[y]:{label:"RSS Feed",img:"rss_feed.svg"},[R]:{label:"GitHub Repository",img:"github_default.svg"}},Fe=({onNextStep:t,onPrevStep:s,type:n,value:o})=>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(We,{children:"Source Type"})})}),e.jsxs(r,{mb:20,children:[e.jsxs(Ve,{children:[e.jsx("img",{alt:B[n].label,className:"badge__img",src:B[n].img}),e.jsx(Ye,{children:B[n].label})]}),e.jsx(He,{children:$e(o,n)??o})]}),e.jsxs(r,{direction:"row",children:[e.jsx(r,{grow:1,children:e.jsx(qe,{color:"secondary",disabled:!1,onClick:()=>s(),size:"large",variant:"contained",children:"Cancel"})}),e.jsx(r,{grow:1,ml:20,children:e.jsx(C,{color:"secondary","data-testid":"source_next_btn",onClick:()=>t(),size:"large",variant:"contained",children:"Next"})})]})]}),He=p(r)` +`,T={[j]:{label:"Twitter handle",img:"twitter_default.svg"},[E]:{label:"Youtube channel",img:"youtube_default.svg"},[b]:{label:"RSS Feed",img:"rss_feed.svg"},[R]:{label:"GitHub Repository",img:"github_default.svg"}},Fe=({onNextStep:t,onPrevStep:s,type:n,value:o})=>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(We,{children:"Source Type"})})}),e.jsxs(r,{mb:20,children:[e.jsxs(Ve,{children:[e.jsx("img",{alt:T[n].label,className:"badge__img",src:T[n].img}),e.jsx(Ye,{children:T[n].label})]}),e.jsx(He,{children:$e(o,n)??o})]}),e.jsxs(r,{direction:"row",children:[e.jsx(r,{grow:1,children:e.jsx(qe,{color:"secondary",disabled:!1,onClick:()=>s(),size:"large",variant:"contained",children:"Cancel"})}),e.jsx(r,{grow:1,ml:20,children:e.jsx(C,{color:"secondary","data-testid":"source_next_btn",onClick:()=>t(),size:"large",variant:"contained",children:"Next"})})]})]}),He=p(r)` font-family: Barlow; font-size: 14px; font-weight: 400; @@ -130,4 +130,4 @@ import{a_ as j,a$ as E,b0 as y,b1 as R,b2 as T,b3 as U,b4 as D,b5 as O,s as p,a color: ${u.BG2}; } } -`,F=async(t,s,n,o)=>{const b=_(s)?"radar":"add_node",a={};if(s===T)a.media_url=t.source,a.content_type="audio_video";else if(s===U){if(/(?:https?:\/\/)?(?:www\.)?(twitter|x)\.com\/\w+\/status\/(\d+)/s.test(t.source)){const c=/\/status\/(\d+)/,l=t.source.match(c);if(l!=null&&l[1]){const[,S]=l;a.tweet_id=S}}else a.tweet_id=t.source;a.content_type="tweet"}else if(s===D)a.content_type="webpage",a.web_page=t.source;else if(s===O)a.content_type="document",a.text=t.source;else if(s===j){const[,i]=(t.source||"").match(A)||[];if(i)a.source=i,a.source_type=s;else return}else(s===E||s===y||s===R)&&(a.source=t.source,a.source_type=s);t.latitude&&t.longitude&&(a.latitude=t.latitude,a.longitude=t.longitude);let x="",d;ae?d=await ce.enable():d=await ie.enable(),a.pubkey=d==null?void 0:d.pubkey,x=await le();try{const i=await de.post(`/${b}`,JSON.stringify(a),{Authorization:x});if(await ue(n),i.data.project_id&&o(i.data.project_id),i.error){const{message:c}=i.error;throw new Error(c)}}catch(i){if(i.status===402)await pe(n),await F(t,s,n,o);else{let c=m;if(i.status===400)try{const l=await i.json();c=l.message||l.status||(l==null?void 0:l.errorCode)||m}catch{c=m}else i instanceof Error&&(c=i.message||m);throw new Error(c)}}},et=()=>{const[t,s]=f.useState(0),{close:n,visible:o}=ee("addContent"),{setBudget:b}=Z(g=>g),{setRunningProjectId:a}=te(g=>g),x=se({mode:"onChange"}),{watch:d,setValue:i,reset:c}=x,[l,S]=f.useState(!1),[H,k]=f.useState("");f.useEffect(()=>()=>{k(""),s(0),c()},[o,c]);const w=d("inputType"),N=d("source"),P=d("source"),W=M(N);f.useEffect(()=>{(async()=>{const h=await ze(P);i("inputType",h)})()},[P,i]);const Y=()=>{n()},I=()=>{s(t===0?_(w)?1:2:t+1)},V=()=>{s(t-1)},q=x.handleSubmit(async g=>{S(!0);try{await F(g,w,b,a),ne("Content Added"),Y()}catch(h){let $=m;if((h==null?void 0:h.status)===400){const v=await h.json();$=v.errorCode||(v==null?void 0:v.status)||m}else h instanceof Error&&($=h.message);k(String($))}finally{S(!1)}});return e.jsx(oe,{id:"addContent",kind:"small",onClose:n,preventOutsideClose:!0,children:e.jsx(re,{...x,children:e.jsxs("form",{id:"add-node-form",onSubmit:q,children:[t===0&&e.jsx(Ge,{allowNextStep:W,onNextStep:I,type:w}),t===1&&_(w)&&e.jsx(Fe,{onNextStep:I,onPrevStep:V,type:w,value:N}),t===2&&e.jsx(Be,{error:H,loading:l,onClick:()=>null,type:w})]})})})};export{et as AddContentModal}; +`,F=async(t,s,n,o)=>{const y=v(s)?"radar":"add_node",a={};if(s===B)a.media_url=t.source,a.content_type="audio_video";else if(s===U){if(/(?:https?:\/\/)?(?:www\.)?(twitter|x)\.com\/\w+\/status\/(\d+)/s.test(t.source)){const c=/\/status\/(\d+)/,l=t.source.match(c);if(l!=null&&l[1]){const[,S]=l;a.tweet_id=S}}else a.tweet_id=t.source;a.content_type="tweet"}else if(s===D)a.content_type="webpage",a.web_page=t.source;else if(s===O)a.content_type="document",a.text=t.source;else if(s===j){const[,i]=(t.source||"").match(k)||[];if(i)a.source=i,a.source_type=s;else return}else(s===E||s===b||s===R)&&(a.source=t.source,a.source_type=s);t.latitude&&t.longitude&&(a.latitude=t.latitude,a.longitude=t.longitude);let x="",d;ae?d=await ce.enable():d=await ie.enable(),a.pubkey=d==null?void 0:d.pubkey,x=await le();try{const i=await de.post(`/${y}`,JSON.stringify(a),{Authorization:x});if(await ue(n),i.data.project_id&&o(i.data.project_id),i.error){const{message:c}=i.error;throw new Error(c)}}catch(i){if(i.status===402)await pe(n),await F(t,s,n,o);else{let c=m;if(i.status===400)try{const l=await i.json();c=l.message||l.status||(l==null?void 0:l.errorCode)||m}catch{c=m}else i instanceof Error&&(c=i.message||m);throw new Error(c)}}},et=()=>{const[t,s]=f.useState(0),{close:n,visible:o}=ee("addContent"),{setBudget:y}=Z(g=>g),{setRunningProjectId:a}=te(g=>g),x=se({mode:"onChange"}),{watch:d,setValue:i,reset:c}=x,[l,S]=f.useState(!1),[H,A]=f.useState("");f.useEffect(()=>()=>{A(""),s(0),c()},[o,c]);const w=d("inputType"),N=d("source"),P=d("source"),W=M(N);f.useEffect(()=>{(async()=>{const h=await ze(P);i("inputType",h)})()},[P,i]);const Y=()=>{n()},I=()=>{s(t===0?v(w)?1:2:t+1)},V=()=>{s(t-1)},q=x.handleSubmit(async g=>{S(!0);try{await F(g,w,y,a),ne("Content Added"),Y()}catch(h){let $=m;if((h==null?void 0:h.status)===400){const _=await h.json();$=_.errorCode||(_==null?void 0:_.status)||m}else h instanceof Error&&($=h.message);A(String($))}finally{S(!1)}});return e.jsx(oe,{id:"addContent",kind:"small",onClose:n,preventOutsideClose:!0,children:e.jsx(re,{...x,children:e.jsxs("form",{id:"add-node-form",onSubmit:q,children:[t===0&&e.jsx(Ge,{allowNextStep:W,onNextStep:I,type:w}),t===1&&v(w)&&e.jsx(Fe,{onNextStep:I,onPrevStep:V,type:w,value:N}),t===2&&e.jsx(Te,{error:H,loading:l,onClick:()=>null,type:w})]})})})};export{et as AddContentModal}; diff --git a/build/assets/index-da8a239d.js b/build/assets/index-da8a239d.js new file mode 100644 index 000000000..2f1d08175 --- /dev/null +++ b/build/assets/index-da8a239d.js @@ -0,0 +1,71 @@ +import{r as u,j as f,bX as kt,bY as Rt,V as xo,S as Ot,G as a,z as ye,D as $e,E as w,N as L,J as Pe,w as ae,K as ne,L as Ie,H as Re,O as lo,M as Uo,bZ as Lt,b_ as wt,P as st,b$ as it,bu as ct,bv as dt,ae as Xe,c0 as To,X as Mt,ah as Ft,s as Tt,a as je,F as At}from"./index-2353781d.js";import{T as Nt}from"./index-33375362.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-ff0fb8f6.js";import{n as Ho,I as pt,s as ft,B as Bt,o as Fo,P as jt,D as Wt,p as Vo}from"./index-068043a5.js";import{c as zo}from"./createSvgIcon-09ff14f6.js";import{T as _t}from"./TextareaAutosize-c42da1c8.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); + } + + 100% { + transform: rotate(360deg); + } +`)),Xn=ct(Jo||(Jo=So` + 0% { + stroke-dasharray: 1px, 200px; + stroke-dashoffset: 0; + } + + 50% { + stroke-dasharray: 100px, 200px; + stroke-dashoffset: -15px; + } + + 100% { + stroke-dasharray: 100px, 200px; + stroke-dashoffset: -125px; + } +`)),Yn=e=>{const{classes:o,variant:t,color:r,disableShrink:s}=e,c={root:["root",t,`color${L(r)}`],svg:["svg"],circle:["circle",`circle${L(t)}`,s&&"circleDisableShrink"]};return Ie(c,Kn,o)},Zn=w("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.root,o[t.variant],o[`color${L(t.color)}`]]}})(({ownerState:e,theme:o})=>a({display:"inline-block"},e.variant==="determinate"&&{transition:o.transitions.create("transform")},e.color!=="inherit"&&{color:(o.vars||o).palette[e.color].main}),({ownerState:e})=>e.variant==="indeterminate"&&dt(Qo||(Qo=So` + animation: ${0} 1.4s linear infinite; + `),Gn)),Jn=w("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,o)=>o.svg})({display:"block"}),Qn=w("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.circle,o[`circle${L(t.variant)}`],t.disableShrink&&o.circleDisableShrink]}})(({ownerState:e,theme:o})=>a({stroke:"currentColor"},e.variant==="determinate"&&{transition:o.transitions.create("stroke-dashoffset")},e.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink&&dt(et||(et=So` + animation: ${0} 1.4s ease-in-out infinite; + `),Xn)),er=u.forwardRef(function(o,t){const r=Pe({props:o,name:"MuiCircularProgress"}),{className:s,color:c="primary",disableShrink:d=!1,size:i=40,style:b,thickness:p=3.6,value:m=0,variant:h="indeterminate"}=r,$=ae(r,qn),v=a({},r,{color:c,disableShrink:d,size:i,thickness:p,value:m,variant:h}),R=Yn(v),M={},P={},O={};if(h==="determinate"){const k=2*Math.PI*((Je-p)/2);M.strokeDasharray=k.toFixed(3),O["aria-valuenow"]=Math.round(m),M.strokeDashoffset=`${((100-m)/100*k).toFixed(3)}px`,P.transform="rotate(-90deg)"}return f.jsx(Zn,a({className:ne(R.root,s),style:a({width:i,height:i},P,b),ownerState:v,ref:t,role:"progressbar"},O,$,{children:f.jsx(Jn,{className:R.svg,ownerState:v,viewBox:`${Je/2} ${Je/2} ${Je} ${Je}`,children:f.jsx(Qn,{className:R.circle,style:M,ownerState:v,cx:Je,cy:Je,r:(Je-p)/2,fill:"none",strokeWidth:p})})}))}),or=er,tr=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],nr=e=>{const{classes:o,disableUnderline:t}=e,s=Ie({root:["root",!t&&"underline"],input:["input"]},Pn,o);return a({},o,s)},rr=w($o,{shouldForwardProp:e=>Xe(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[...Co(e,o),!t.disableUnderline&&o.underline]}})(({theme:e,ownerState:o})=>{var t;const r=e.palette.mode==="light",s=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",c=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",d=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",i=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return a({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:c,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:d,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:c}},[`&.${Le.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:c},[`&.${Le.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:i}},!o.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(t=(e.vars||e).palette[o.color||"primary"])==null?void 0:t.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Le.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Le.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:s}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Le.disabled}, .${Le.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Le.disabled}:before`]:{borderBottomStyle:"dotted"}},o.startAdornment&&{paddingLeft:12},o.endAdornment&&{paddingRight:12},o.multiline&&a({padding:"25px 12px 8px"},o.size==="small"&&{paddingTop:21,paddingBottom:4},o.hiddenLabel&&{paddingTop:16,paddingBottom:17},o.hiddenLabel&&o.size==="small"&&{paddingTop:8,paddingBottom:9}))}),ar=w(Io,{name:"MuiFilledInput",slot:"Input",overridesResolver:yo})(({theme:e,ownerState:o})=>a({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},o.size==="small"&&{paddingTop:21,paddingBottom:4},o.hiddenLabel&&{paddingTop:16,paddingBottom:17},o.startAdornment&&{paddingLeft:0},o.endAdornment&&{paddingRight:0},o.hiddenLabel&&o.size==="small"&&{paddingTop:8,paddingBottom:9},o.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),mt=u.forwardRef(function(o,t){var r,s,c,d;const i=Pe({props:o,name:"MuiFilledInput"}),{components:b={},componentsProps:p,fullWidth:m=!1,inputComponent:h="input",multiline:$=!1,slotProps:v,slots:R={},type:M="text"}=i,P=ae(i,tr),O=a({},i,{fullWidth:m,inputComponent:h,multiline:$,type:M}),k=nr(i),C={root:{ownerState:O},input:{ownerState:O}},I=v??p?To(C,v??p):C,E=(r=(s=R.root)!=null?s:b.Root)!=null?r:rr,N=(c=(d=R.input)!=null?d:b.Input)!=null?c:ar;return f.jsx(Do,a({slots:{root:E,input:N},componentsProps:I,fullWidth:m,inputComponent:h,multiline:$,ref:t,type:M},P,{classes:k}))});mt.muiName="Input";const ht=mt;function lr(e){return ye("MuiFormHelperText",e)}const sr=$e("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),ot=sr;var tt;const ir=["children","className","component","disabled","error","filled","focused","margin","required","variant"],cr=e=>{const{classes:o,contained:t,size:r,disabled:s,error:c,filled:d,focused:i,required:b}=e,p={root:["root",s&&"disabled",c&&"error",r&&`size${L(r)}`,t&&"contained",i&&"focused",d&&"filled",b&&"required"]};return Ie(p,lr,o)},dr=w("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.root,t.size&&o[`size${L(t.size)}`],t.contained&&o.contained,t.filled&&o.filled]}})(({theme:e,ownerState:o})=>a({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${ot.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${ot.error}`]:{color:(e.vars||e).palette.error.main}},o.size==="small"&&{marginTop:4},o.contained&&{marginLeft:14,marginRight:14})),ur=u.forwardRef(function(o,t){const r=Pe({props:o,name:"MuiFormHelperText"}),{children:s,className:c,component:d="p"}=r,i=ae(r,ir),b=so(),p=io({props:r,muiFormControl:b,states:["variant","size","disabled","error","filled","focused","required"]}),m=a({},r,{component:d,contained:p.variant==="filled"||p.variant==="outlined",variant:p.variant,size:p.size,disabled:p.disabled,error:p.error,filled:p.filled,focused:p.focused,required:p.required}),h=cr(m);return f.jsx(dr,a({as:d,ownerState:m,className:ne(h.root,c),ref:t},i,{children:s===" "?tt||(tt=f.jsx("span",{className:"notranslate",children:"​"})):s}))}),pr=ur;function fr(e){return ye("MuiFormLabel",e)}const br=$e("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),bo=br,gr=["children","className","color","component","disabled","error","filled","focused","required"],mr=e=>{const{classes:o,color:t,focused:r,disabled:s,error:c,filled:d,required:i}=e,b={root:["root",`color${L(t)}`,s&&"disabled",c&&"error",d&&"filled",r&&"focused",i&&"required"],asterisk:["asterisk",c&&"error"]};return Ie(b,fr,o)},hr=w("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},o)=>a({},o.root,e.color==="secondary"&&o.colorSecondary,e.filled&&o.filled)})(({theme:e,ownerState:o})=>a({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${bo.focused}`]:{color:(e.vars||e).palette[o.color].main},[`&.${bo.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${bo.error}`]:{color:(e.vars||e).palette.error.main}})),vr=w("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,o)=>o.asterisk})(({theme:e})=>({[`&.${bo.error}`]:{color:(e.vars||e).palette.error.main}})),xr=u.forwardRef(function(o,t){const r=Pe({props:o,name:"MuiFormLabel"}),{children:s,className:c,component:d="label"}=r,i=ae(r,gr),b=so(),p=io({props:r,muiFormControl:b,states:["color","required","focused","disabled","error","filled"]}),m=a({},r,{color:p.color||"primary",component:d,disabled:p.disabled,error:p.error,filled:p.filled,focused:p.focused,required:p.required}),h=mr(m);return f.jsxs(hr,a({as:d,ownerState:m,className:ne(h.root,c),ref:t},i,{children:[s,p.required&&f.jsxs(vr,{ownerState:m,"aria-hidden":!0,className:h.asterisk,children:[" ","*"]})]}))}),Cr=xr,yr=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],$r=e=>{const{classes:o,disableUnderline:t}=e,s=Ie({root:["root",!t&&"underline"],input:["input"]},yn,o);return a({},o,s)},Ir=w($o,{shouldForwardProp:e=>Xe(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[...Co(e,o),!t.disableUnderline&&o.underline]}})(({theme:e,ownerState:o})=>{let r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),a({position:"relative"},o.formControl&&{"label + &":{marginTop:16}},!o.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(e.vars||e).palette[o.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Qe.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Qe.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Qe.disabled}, .${Qe.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${Qe.disabled}:before`]:{borderBottomStyle:"dotted"}})}),Sr=w(Io,{name:"MuiInput",slot:"Input",overridesResolver:yo})({}),vt=u.forwardRef(function(o,t){var r,s,c,d;const i=Pe({props:o,name:"MuiInput"}),{disableUnderline:b,components:p={},componentsProps:m,fullWidth:h=!1,inputComponent:$="input",multiline:v=!1,slotProps:R,slots:M={},type:P="text"}=i,O=ae(i,yr),k=$r(i),I={root:{ownerState:{disableUnderline:b}}},E=R??m?To(R??m,I):I,N=(r=(s=M.root)!=null?s:p.Root)!=null?r:Ir,F=(c=(d=M.input)!=null?d:p.Input)!=null?c:Sr;return f.jsx(Do,a({slots:{root:N,input:F},slotProps:E,fullWidth:h,inputComponent:$,multiline:v,ref:t,type:P},O,{classes:k}))});vt.muiName="Input";const xt=vt;function Pr(e){return ye("MuiInputLabel",e)}$e("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const kr=["disableAnimation","margin","shrink","variant","className"],Rr=e=>{const{classes:o,formControl:t,size:r,shrink:s,disableAnimation:c,variant:d,required:i}=e,b={root:["root",t&&"formControl",!c&&"animated",s&&"shrink",r&&r!=="normal"&&`size${L(r)}`,d],asterisk:[i&&"asterisk"]},p=Ie(b,Pr,o);return a({},o,p)},Or=w(Cr,{shouldForwardProp:e=>Xe(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[{[`& .${bo.asterisk}`]:o.asterisk},o.root,t.formControl&&o.formControl,t.size==="small"&&o.sizeSmall,t.shrink&&o.shrink,!t.disableAnimation&&o.animated,t.focused&&o.focused,o[t.variant]]}})(({theme:e,ownerState:o})=>a({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},o.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},o.size==="small"&&{transform:"translate(0, 17px) scale(1)"},o.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!o.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},o.variant==="filled"&&a({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},o.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},o.shrink&&a({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},o.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),o.variant==="outlined"&&a({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},o.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},o.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),Lr=u.forwardRef(function(o,t){const r=Pe({name:"MuiInputLabel",props:o}),{disableAnimation:s=!1,shrink:c,className:d}=r,i=ae(r,kr),b=so();let p=c;typeof p>"u"&&b&&(p=b.filled||b.focused||b.adornedStart);const m=io({props:r,muiFormControl:b,states:["size","variant","required","focused"]}),h=a({},r,{disableAnimation:s,formControl:b,shrink:p,size:m.size,variant:m.variant,required:m.required,focused:m.focused}),$=Rr(h);return f.jsx(Or,a({"data-shrink":p,ownerState:h,ref:t,className:ne($.root,d)},i,{classes:$}))}),wr=Lr,Mr=u.createContext({}),Fr=Mr;function Tr(e){return ye("MuiList",e)}$e("MuiList",["root","padding","dense","subheader"]);const Ar=["children","className","component","dense","disablePadding","subheader"],Nr=e=>{const{classes:o,disablePadding:t,dense:r,subheader:s}=e;return Ie({root:["root",!t&&"padding",r&&"dense",s&&"subheader"]},Tr,o)},zr=w("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.root,!t.disablePadding&&o.padding,t.dense&&o.dense,t.subheader&&o.subheader]}})(({ownerState:e})=>a({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),Dr=u.forwardRef(function(o,t){const r=Pe({props:o,name:"MuiList"}),{children:s,className:c,component:d="ul",dense:i=!1,disablePadding:b=!1,subheader:p}=r,m=ae(r,Ar),h=u.useMemo(()=>({dense:i}),[i]),$=a({},r,{component:d,dense:i,disablePadding:b}),v=Nr($);return f.jsx(Fr.Provider,{value:h,children:f.jsxs(zr,a({as:d,className:ne(v.root,c),ref:t,ownerState:$},m,{children:[p,s]}))})}),Er=Dr,Br=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Mo(e,o,t){return e===o?e.firstChild:o&&o.nextElementSibling?o.nextElementSibling:t?null:e.firstChild}function nt(e,o,t){return e===o?t?e.firstChild:e.lastChild:o&&o.previousElementSibling?o.previousElementSibling:t?null:e.lastChild}function Ct(e,o){if(o===void 0)return!0;let t=e.innerText;return t===void 0&&(t=e.textContent),t=t.trim().toLowerCase(),t.length===0?!1:o.repeating?t[0]===o.keys[0]:t.indexOf(o.keys.join(""))===0}function uo(e,o,t,r,s,c){let d=!1,i=s(e,o,o?t:!1);for(;i;){if(i===e.firstChild){if(d)return!1;d=!0}const b=r?!1:i.disabled||i.getAttribute("aria-disabled")==="true";if(!i.hasAttribute("tabindex")||!Ct(i,c)||b)i=s(e,i,t);else return i.focus(),!0}return!1}const jr=u.forwardRef(function(o,t){const{actions:r,autoFocus:s=!1,autoFocusItem:c=!1,children:d,className:i,disabledItemsFocusable:b=!1,disableListWrap:p=!1,onKeyDown:m,variant:h="selectedMenu"}=o,$=ae(o,Br),v=u.useRef(null),R=u.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});st(()=>{s&&v.current.focus()},[s]),u.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(C,I)=>{const E=!v.current.style.width;if(C.clientHeight{const I=v.current,E=C.key,N=Fo(I).activeElement;if(E==="ArrowDown")C.preventDefault(),uo(I,N,p,b,Mo);else if(E==="ArrowUp")C.preventDefault(),uo(I,N,p,b,nt);else if(E==="Home")C.preventDefault(),uo(I,null,p,b,Mo);else if(E==="End")C.preventDefault(),uo(I,null,p,b,nt);else if(E.length===1){const F=R.current,q=E.toLowerCase(),le=performance.now();F.keys.length>0&&(le-F.lastTime>500?(F.keys=[],F.repeating=!0,F.previousKeyMatched=!0):F.repeating&&q!==F.keys[0]&&(F.repeating=!1)),F.lastTime=le,F.keys.push(q);const de=N&&!F.repeating&&Ct(N,F);F.previousKeyMatched&&(de||uo(I,N,!1,b,Mo,F))?C.preventDefault():F.previousKeyMatched=!1}m&&m(C)},P=lo(v,t);let O=-1;u.Children.forEach(d,(C,I)=>{if(!u.isValidElement(C)){O===I&&(O+=1,O>=d.length&&(O=-1));return}C.props.disabled||(h==="selectedMenu"&&C.props.selected||O===-1)&&(O=I),O===I&&(C.props.disabled||C.props.muiSkipListHighlight||C.type.muiSkipListHighlight)&&(O+=1,O>=d.length&&(O=-1))});const k=u.Children.map(d,(C,I)=>{if(I===O){const E={};return c&&(E.autoFocus=!0),C.props.tabIndex===void 0&&h==="selectedMenu"&&(E.tabIndex=0),u.cloneElement(C,E)}return C});return f.jsx(Er,a({role:"menu",ref:P,className:i,onKeyDown:M,tabIndex:s?0:-1},$,{children:k}))}),Wr=jr;function _r(e){return ye("MuiMenu",e)}$e("MuiMenu",["root","paper","list"]);const Ur=["onEntering"],Hr=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Vr={vertical:"top",horizontal:"right"},Kr={vertical:"top",horizontal:"left"},qr=e=>{const{classes:o}=e;return Ie({root:["root"],paper:["paper"],list:["list"]},_r,o)},Gr=w(jt,{shouldForwardProp:e=>Xe(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,o)=>o.root})({}),Xr=w(Wt,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,o)=>o.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Yr=w(Wr,{name:"MuiMenu",slot:"List",overridesResolver:(e,o)=>o.list})({outline:0}),Zr=u.forwardRef(function(o,t){var r,s;const c=Pe({props:o,name:"MuiMenu"}),{autoFocus:d=!0,children:i,className:b,disableAutoFocusItem:p=!1,MenuListProps:m={},onClose:h,open:$,PaperProps:v={},PopoverClasses:R,transitionDuration:M="auto",TransitionProps:{onEntering:P}={},variant:O="selectedMenu",slots:k={},slotProps:C={}}=c,I=ae(c.TransitionProps,Ur),E=ae(c,Hr),N=Mt(),F=N.direction==="rtl",q=a({},c,{autoFocus:d,disableAutoFocusItem:p,MenuListProps:m,onEntering:P,PaperProps:v,transitionDuration:M,TransitionProps:I,variant:O}),le=qr(q),de=d&&!p&&$,oe=u.useRef(null),T=(A,ie)=>{oe.current&&oe.current.adjustStyleForScrollbar(A,N),P&&P(A,ie)},J=A=>{A.key==="Tab"&&(A.preventDefault(),h&&h(A,"tabKeyDown"))};let G=-1;u.Children.map(i,(A,ie)=>{u.isValidElement(A)&&(A.props.disabled||(O==="selectedMenu"&&A.props.selected||G===-1)&&(G=ie))});const se=(r=k.paper)!=null?r:Xr,Q=(s=C.paper)!=null?s:v,re=Vo({elementType:k.root,externalSlotProps:C.root,ownerState:q,className:[le.root,b]}),U=Vo({elementType:se,externalSlotProps:Q,ownerState:q,className:le.paper});return f.jsx(Gr,a({onClose:h,anchorOrigin:{vertical:"bottom",horizontal:F?"right":"left"},transformOrigin:F?Vr:Kr,slots:{paper:se,root:k.root},slotProps:{root:re,paper:U},open:$,ref:t,transitionDuration:M,TransitionProps:a({onEntering:T},I),ownerState:q},E,{classes:R,children:f.jsx(Yr,a({onKeyDown:J,actions:oe,autoFocus:d&&(G===-1||p),autoFocusItem:de,variant:O},m,{className:ne(le.list,m.className),children:i}))}))}),Jr=Zr;function Qr(e){return ye("MuiNativeSelect",e)}const ea=$e("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Eo=ea,oa=["className","disabled","error","IconComponent","inputRef","variant"],ta=e=>{const{classes:o,variant:t,disabled:r,multiple:s,open:c,error:d}=e,i={select:["select",t,r&&"disabled",s&&"multiple",d&&"error"],icon:["icon",`icon${L(t)}`,c&&"iconOpen",r&&"disabled"]};return Ie(i,Qr,o)},yt=({ownerState:e,theme:o})=>a({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":a({},o.vars?{backgroundColor:`rgba(${o.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:o.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${Eo.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(o.vars||o).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(o.vars||o).shape.borderRadius,"&:focus":{borderRadius:(o.vars||o).shape.borderRadius},"&&&":{paddingRight:32}}),na=w("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Xe,overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.select,o[t.variant],t.error&&o.error,{[`&.${Eo.multiple}`]:o.multiple}]}})(yt),$t=({ownerState:e,theme:o})=>a({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(o.vars||o).palette.action.active,[`&.${Eo.disabled}`]:{color:(o.vars||o).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),ra=w("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.icon,t.variant&&o[`icon${L(t.variant)}`],t.open&&o.iconOpen]}})($t),aa=u.forwardRef(function(o,t){const{className:r,disabled:s,error:c,IconComponent:d,inputRef:i,variant:b="standard"}=o,p=ae(o,oa),m=a({},o,{disabled:s,variant:b,error:c}),h=ta(m);return f.jsxs(u.Fragment,{children:[f.jsx(na,a({ownerState:m,className:ne(h.select,r),disabled:s,ref:i||t},p)),o.multiple?null:f.jsx(ra,{as:d,ownerState:m,className:h.icon})]})}),la=aa;var rt;const sa=["children","classes","className","label","notched"],ia=w("fieldset",{shouldForwardProp:Xe})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),ca=w("legend",{shouldForwardProp:Xe})(({ownerState:e,theme:o})=>a({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:o.transitions.create("width",{duration:150,easing:o.transitions.easing.easeOut})},e.withLabel&&a({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:o.transitions.create("max-width",{duration:50,easing:o.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:o.transitions.create("max-width",{duration:100,easing:o.transitions.easing.easeOut,delay:50})})));function da(e){const{className:o,label:t,notched:r}=e,s=ae(e,sa),c=t!=null&&t!=="",d=a({},e,{notched:r,withLabel:c});return f.jsx(ia,a({"aria-hidden":!0,className:o,ownerState:d},s,{children:f.jsx(ca,{ownerState:d,children:c?f.jsx("span",{children:t}):rt||(rt=f.jsx("span",{className:"notranslate",children:"​"}))})}))}const ua=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],pa=e=>{const{classes:o}=e,r=Ie({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},In,o);return a({},o,r)},fa=w($o,{shouldForwardProp:e=>Xe(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Co})(({theme:e,ownerState:o})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return a({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Ve.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Ve.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${Ve.focused} .${Ve.notchedOutline}`]:{borderColor:(e.vars||e).palette[o.color].main,borderWidth:2},[`&.${Ve.error} .${Ve.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Ve.disabled} .${Ve.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},o.startAdornment&&{paddingLeft:14},o.endAdornment&&{paddingRight:14},o.multiline&&a({padding:"16.5px 14px"},o.size==="small"&&{padding:"8.5px 14px"}))}),ba=w(da,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,o)=>o.notchedOutline})(({theme:e})=>{const o=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:o}}),ga=w(Io,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:yo})(({theme:e,ownerState:o})=>a({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},o.size==="small"&&{padding:"8.5px 14px"},o.multiline&&{padding:0},o.startAdornment&&{paddingLeft:0},o.endAdornment&&{paddingRight:0})),It=u.forwardRef(function(o,t){var r,s,c,d,i;const b=Pe({props:o,name:"MuiOutlinedInput"}),{components:p={},fullWidth:m=!1,inputComponent:h="input",label:$,multiline:v=!1,notched:R,slots:M={},type:P="text"}=b,O=ae(b,ua),k=pa(b),C=so(),I=io({props:b,muiFormControl:C,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),E=a({},b,{color:I.color||"primary",disabled:I.disabled,error:I.error,focused:I.focused,formControl:C,fullWidth:m,hiddenLabel:I.hiddenLabel,multiline:v,size:I.size,type:P}),N=(r=(s=M.root)!=null?s:p.Root)!=null?r:fa,F=(c=(d=M.input)!=null?d:p.Input)!=null?c:ga;return f.jsx(Do,a({slots:{root:N,input:F},renderSuffix:q=>f.jsx(ba,{ownerState:E,className:k.notchedOutline,label:$!=null&&$!==""&&I.required?i||(i=f.jsxs(u.Fragment,{children:[$," ","*"]})):$,notched:typeof R<"u"?R:!!(q.startAdornment||q.filled||q.focused)}),fullWidth:m,inputComponent:h,multiline:v,ref:t,type:P},O,{classes:a({},k,{notchedOutline:null})}))});It.muiName="Input";const St=It;function ma(e){return ye("MuiSelect",e)}const ha=$e("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),po=ha;var at;const va=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],xa=w("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[{[`&.${po.select}`]:o.select},{[`&.${po.select}`]:o[t.variant]},{[`&.${po.error}`]:o.error},{[`&.${po.multiple}`]:o.multiple}]}})(yt,{[`&.${po.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Ca=w("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.icon,t.variant&&o[`icon${L(t.variant)}`],t.open&&o.iconOpen]}})($t),ya=w("input",{shouldForwardProp:e=>Ft(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,o)=>o.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function lt(e,o){return typeof o=="object"&&o!==null?e===o:String(e)===String(o)}function $a(e){return e==null||typeof e=="string"&&!e.trim()}const Ia=e=>{const{classes:o,variant:t,disabled:r,multiple:s,open:c,error:d}=e,i={select:["select",t,r&&"disabled",s&&"multiple",d&&"error"],icon:["icon",`icon${L(t)}`,c&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return Ie(i,ma,o)},Sa=u.forwardRef(function(o,t){var r;const{"aria-describedby":s,"aria-label":c,autoFocus:d,autoWidth:i,children:b,className:p,defaultOpen:m,defaultValue:h,disabled:$,displayEmpty:v,error:R=!1,IconComponent:M,inputRef:P,labelId:O,MenuProps:k={},multiple:C,name:I,onBlur:E,onChange:N,onClose:F,onFocus:q,onOpen:le,open:de,readOnly:oe,renderValue:T,SelectDisplayProps:J={},tabIndex:G,value:se,variant:Q="standard"}=o,re=ae(o,va),[U,A]=fo({controlled:se,default:h,name:"Select"}),[ie,Se]=fo({controlled:de,default:m,name:"Select"}),we=u.useRef(null),ue=u.useRef(null),[W,ee]=u.useState(null),{current:fe}=u.useRef(de!=null),[We,Z]=u.useState(),be=lo(t,P),Me=u.useCallback(y=>{ue.current=y,y&&ee(y)},[]),Y=W==null?void 0:W.parentNode;u.useImperativeHandle(be,()=>({focus:()=>{ue.current.focus()},node:we.current,value:U}),[U]),u.useEffect(()=>{m&&ie&&W&&!fe&&(Z(i?null:Y.clientWidth),ue.current.focus())},[W,i]),u.useEffect(()=>{d&&ue.current.focus()},[d]),u.useEffect(()=>{if(!O)return;const y=Fo(ue.current).getElementById(O);if(y){const B=()=>{getSelection().isCollapsed&&ue.current.focus()};return y.addEventListener("click",B),()=>{y.removeEventListener("click",B)}}},[O]);const H=(y,B)=>{y?le&&le(B):F&&F(B),fe||(Z(i?null:Y.clientWidth),Se(y))},ze=y=>{y.button===0&&(y.preventDefault(),ue.current.focus(),H(!0,y))},_e=y=>{H(!1,y)},te=u.Children.toArray(b),S=y=>{const B=te.find(X=>X.props.value===y.target.value);B!==void 0&&(A(B.props.value),N&&N(y,B))},to=y=>B=>{let X;if(B.currentTarget.hasAttribute("tabindex")){if(C){X=Array.isArray(U)?U.slice():[];const ke=U.indexOf(y.props.value);ke===-1?X.push(y.props.value):X.splice(ke,1)}else X=y.props.value;if(y.props.onClick&&y.props.onClick(B),U!==X&&(A(X),N)){const ke=B.nativeEvent||B,Ze=new ke.constructor(ke.type,ke);Object.defineProperty(Ze,"target",{writable:!0,value:{value:X,name:I}}),N(Ze,y)}C||H(!1,B)}},_=y=>{oe||[" ","ArrowUp","ArrowDown","Enter"].indexOf(y.key)!==-1&&(y.preventDefault(),H(!0,y))},xe=W!==null&&ie,Fe=y=>{!xe&&E&&(Object.defineProperty(y,"target",{writable:!0,value:{value:U,name:I}}),E(y))};delete re["aria-invalid"];let ce,Te;const me=[];let Ae=!1;(ut({value:U})||v)&&(T?ce=T(U):Ae=!0);const Ye=te.map(y=>{if(!u.isValidElement(y))return null;let B;if(C){if(!Array.isArray(U))throw new Error(it(2));B=U.some(X=>lt(X,y.props.value)),B&&Ae&&me.push(y.props.children)}else B=lt(U,y.props.value),B&&Ae&&(Te=y.props.children);return u.cloneElement(y,{"aria-selected":B?"true":"false",onClick:to(y),onKeyUp:X=>{X.key===" "&&X.preventDefault(),y.props.onKeyUp&&y.props.onKeyUp(X)},role:"option",selected:B,value:void 0,"data-value":y.props.value})});Ae&&(C?me.length===0?ce=null:ce=me.reduce((y,B,X)=>(y.push(B),X{const{classes:o}=e;return o},Bo={name:"MuiSelect",overridesResolver:(e,o)=>o.root,shouldForwardProp:e=>Xe(e)&&e!=="variant",slot:"Root"},La=w(xt,Bo)(""),wa=w(St,Bo)(""),Ma=w(ht,Bo)(""),Pt=u.forwardRef(function(o,t){const r=Pe({name:"MuiSelect",props:o}),{autoWidth:s=!1,children:c,classes:d={},className:i,defaultOpen:b=!1,displayEmpty:p=!1,IconComponent:m=gt,id:h,input:$,inputProps:v,label:R,labelId:M,MenuProps:P,multiple:O=!1,native:k=!1,onClose:C,onOpen:I,open:E,renderValue:N,SelectDisplayProps:F,variant:q="outlined"}=r,le=ae(r,ka),de=k?la:Pa,oe=so(),T=io({props:r,muiFormControl:oe,states:["variant","error"]}),J=T.variant||q,G=a({},r,{variant:J,classes:d}),se=Oa(G),Q=ae(se,Ra),re=$||{standard:f.jsx(La,{ownerState:G}),outlined:f.jsx(wa,{label:R,ownerState:G}),filled:f.jsx(Ma,{ownerState:G})}[J],U=lo(t,re.ref);return f.jsx(u.Fragment,{children:u.cloneElement(re,a({inputComponent:de,inputProps:a({children:c,error:T.error,IconComponent:m,variant:J,type:void 0,multiple:O},k?{id:h}:{autoWidth:s,defaultOpen:b,displayEmpty:p,labelId:M,MenuProps:P,onClose:C,onOpen:I,open:E,renderValue:N,SelectDisplayProps:a({id:h},F)},v,{classes:v?To(Q,v.classes):Q},$?$.props.inputProps:{})},O&&k&&J==="outlined"?{notched:!0}:{},{ref:U,className:ne(re.props.className,i,se.root)},!$&&{variant:J},le))})});Pt.muiName="Select";const Fa=Pt;function Ta(e){return ye("MuiTextField",e)}$e("MuiTextField",["root"]);const Aa=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],Na={standard:xt,filled:ht,outlined:St},za=e=>{const{classes:o}=e;return Ie({root:["root"]},Ta,o)},Da=w(Dt,{name:"MuiTextField",slot:"Root",overridesResolver:(e,o)=>o.root})({}),Ea=u.forwardRef(function(o,t){const r=Pe({props:o,name:"MuiTextField"}),{autoComplete:s,autoFocus:c=!1,children:d,className:i,color:b="primary",defaultValue:p,disabled:m=!1,error:h=!1,FormHelperTextProps:$,fullWidth:v=!1,helperText:R,id:M,InputLabelProps:P,inputProps:O,InputProps:k,inputRef:C,label:I,maxRows:E,minRows:N,multiline:F=!1,name:q,onBlur:le,onChange:de,onFocus:oe,placeholder:T,required:J=!1,rows:G,select:se=!1,SelectProps:Q,type:re,value:U,variant:A="outlined"}=r,ie=ae(r,Aa),Se=a({},r,{autoFocus:c,color:b,disabled:m,error:h,fullWidth:v,multiline:F,required:J,select:se,variant:A}),we=za(Se),ue={};A==="outlined"&&(P&&typeof P.shrink<"u"&&(ue.notched=P.shrink),ue.label=I),se&&((!Q||!Q.native)&&(ue.id=void 0),ue["aria-describedby"]=void 0);const W=Ao(M),ee=R&&W?`${W}-helper-text`:void 0,fe=I&&W?`${W}-label`:void 0,We=Na[A],Z=f.jsx(We,a({"aria-describedby":ee,autoComplete:s,autoFocus:c,defaultValue:p,fullWidth:v,multiline:F,name:q,rows:G,maxRows:E,minRows:N,type:re,value:U,id:W,inputRef:C,onBlur:le,onChange:de,onFocus:oe,placeholder:T,inputProps:O},ue,k));return f.jsxs(Da,a({className:ne(we.root,i),disabled:m,error:h,fullWidth:v,ref:t,required:J,color:b,variant:A,ownerState:Se},ie,{children:[I!=null&&I!==""&&f.jsx(wr,a({htmlFor:W,id:fe},P,{children:I})),se?f.jsx(Fa,a({"aria-describedby":ee,id:W,labelId:fe,value:U,input:Z},Q,{children:d})):Z,R&&f.jsx(pr,a({id:ee},$,{children:R}))]}))}),Ba=Ea,ja={options:[],getOptionLabel:e=>e.label,handleInputChange:e=>e},Ga=({options:e,onSelect:o,selectedValue:t=null,handleInputChange:r,isLoading:s=!1,autoFocus:c=!1,disabled:d=!1,dataTestId:i,dataId:b,placeholder:p,className:m})=>{const h=u.useRef(null),[$,v]=u.useState(!1);u.useEffect(()=>{c&&h.current&&(h.current.focus(),v(!0))},[c]);const R=(M,P)=>{o(P)};return f.jsx(Et,{flexGrow:1,spacing:1,children:f.jsx(Vn,{...ja,autoFocus:!0,autoHighlight:!0,blurOnSelect:!0,className:m,"data-testid":b,disableClearable:!0,disabled:d,disablePortal:!0,id:"blur-on-select",ListboxProps:{sx:{backgroundColor:je.DROPDOWN_BG,"&::-webkit-scrollbar":{width:"3px"},"&::-webkit-scrollbar-thumb":{backgroundClip:"padding-box",backgroundColor:je.SCROLL_BAR,borderRadius:"6px"}},ref:h},loading:s,onChange:R,onClose:()=>v(!1),onInputChange:(M,P)=>r==null?void 0:r(P),onOpen:()=>v(!0),open:$,options:e??[],PopperComponent:({children:M,...P})=>f.jsx(No,{...P,placement:"bottom-start",children:M}),renderInput:M=>f.jsx(Wa,{inputRef:h,...M,"data-testid":i,InputProps:{...M.InputProps,disableUnderline:!0,endAdornment:f.jsx(f.Fragment,{children:s?f.jsx(or,{color:"inherit",size:20}):M.InputProps.endAdornment})},placeholder:p,size:"medium",variant:"standard"}),renderOption:(M,P)=>f.jsx("li",{...M,children:f.jsxs(At,{align:"center","data-testid":P.label,direction:"row",grow:1,justify:"space-between",onClick:P==null?void 0:P.action,shrink:1,style:{fontSize:"14px",wordBreak:"break-word"},children:[f.jsx("div",{className:"option",children:P.label!==""?P.label:"Not Selected"}),(P==null?void 0:P.type)&&f.jsx(Nt,{type:P.type})]})}),sx:{"&.MuiAutocomplete-option:hover":{backgroundColor:je.DROPDOWN_HOVER},"&.MuiAutocomplete-option[aria-selected='true']":{backgroundColor:je.DROPDOWN_SELECTED}},value:t||void 0})})},Wa=Tt(Ba)` + && { + z-index: 2; + width: 100%; + color: #fff; + font-size: 15px; + box-shadow: none; + border-radius: 6px; + pointer-events: auto; + background-color: ${je.BG2}; + box-shadow: 0px 1px 6px rgba(0, 0, 0, 0.1); + padding: 0 8px; + + &:focus, + &:active { + color: ${je.white}; + background-color: ${je.BG2_ACTIVE_INPUT}; + outline: 1px solid ${je.primaryBlue}; + } + + &:hover { + background-color: ${je.BG2_ACTIVE_INPUT}; + box-shadow: 0 0 0 1px ${je.primaryBlue}; + } + + &::placeholder { + font-size: 15px; + text-align: left; + font-weight: 500; + line-height: 16px; + letter-spacing: 0em; + font-family: Barlow; + color: ${je.GRAY7}; + } + + .MuiInput-input.MuiInputBase-input { + padding: 8px; + } + + .MuiInput-root { + padding: 0; + } + } +`;export{Ga as A,Do as I,Ba as T}; diff --git a/build/assets/index-dce7cf9f.js b/build/assets/index-dce7cf9f.js new file mode 100644 index 000000000..30acb4c7c --- /dev/null +++ b/build/assets/index-dce7cf9f.js @@ -0,0 +1,363 @@ +import{W as oe,c as ne,r,_ as u,j as t,s as l,a as s,F as h,u as A,I as re,C as se,m as ie,b as X,d as Z,e as ae,T,B as le,Q as ce,f as de,g as ue,h as he,i as ge,k as pe,l as fe}from"./index-2353781d.js";import{P as me,T as xe,u as ye,a as _e,O as be,A as we}from"./index-068043a5.js";const je=oe` + html { + box-sizing: border-box; + } + *, *:before, *:after { + box-sizing: inherit; + } + html, body, div, span, applet, object, iframe, + h1, h2, h3, h4, h5, h6, p, blockquote, pre, + a, abbr, acronym, address, big, cite, code, + del, dfn, em, img, ins, kbd, q, s, samp, + small, strike, strong, sub, sup, tt, var, + b, u, i, center, + dl, dt, dd, ol, ul, li, + fieldset, form, label, legend, + table, caption, tbody, tfoot, thead, tr, th, td, + article, aside, canvas, details, embed, + figure, figcaption, footer, header, hgroup, + menu, nav, output, ruby, section, summary, + time, mark, audio, video { + -moz-osx-font-smoothing: grayscale; + -webkit-font-smoothing: antialiased; + -webkit-tap-highlight-color: transparent; + border: 0; + font-size: 100%; + margin: 0; + padding: 0; + text-rendering: optimizeLegibility; + vertical-align: baseline; + } + a { + cursor: pointer; + text-decoration: none; + } + body { + + &.no-scroll { + overflow: hidden; + } + } + blockquote, q { + quotes: none; + } + blockquote:before, blockquote:after, + q:before, q:after { + content: ''; + content: none; + } + table { + border-collapse: collapse; + border-spacing: 0; + } +`,ke={askedQuestions:null,askedQuestionsAnswers:null,hasQuestionInProgress:!1,hasTeachingInProgress:!1,hasInstagraphInProgress:!1,teachMeAnswer:null,instgraphAnswser:null},ve=ne(e=>({...ke,setAskedQuestion:n=>e(i=>({askedQuestions:[...i.askedQuestions||[],n],hasQuestionInProgress:!0})),setAskedQuestionAnswer:n=>e(i=>({askedQuestionsAnswers:[...i.askedQuestionsAnswers||[],n],hasQuestionInProgress:!1})),setHasQuestionInProgress:n=>e({hasQuestionInProgress:n}),setHasTeachingInProgress:n=>e({hasTeachingInProgress:n}),setHasInstagraphInProgress:n=>e({hasInstagraphInProgress:n}),setTeachMeAnswer:n=>e({hasTeachingInProgress:!1,teachMeAnswer:n}),setInstagraphAnswer:n=>{var i,c,a,p;(i=n==null?void 0:n.instagraph)!=null&&i.edges&&((c=n==null?void 0:n.instagraph)!=null&&c.nodes)&&e({hasInstagraphInProgress:!1,instgraphAnswser:{edges:(a=n==null?void 0:n.instagraph)==null?void 0:a.edges,nodes:(p=n==null?void 0:n.instagraph)==null?void 0:p.nodes}})}})),Ee="0.1.106",Te=r.lazy(()=>u(()=>import("./index-4a684a7a.js"),["assets/index-4a684a7a.js","assets/index-2353781d.js","assets/index-b4d03b7b.css","assets/index-068043a5.js","assets/ClipLoader-c90857c8.js","assets/Tabs-9bc26124.js","assets/createSvgIcon-09ff14f6.js"]).then(({SettingsModal:e})=>({default:e}))),Ae=r.lazy(()=>u(()=>import("./index-d6e6bd7b.js"),["assets/index-d6e6bd7b.js","assets/index-2353781d.js","assets/index-b4d03b7b.css","assets/CheckIcon-bcbb5853.js","assets/index-717b1eb9.js","assets/ClipLoader-c90857c8.js"]).then(({AddContentModal:e})=>({default:e}))),ze=r.lazy(()=>u(()=>import("./index-9509df5b.js"),["assets/index-9509df5b.js","assets/index-2353781d.js","assets/index-b4d03b7b.css","assets/index-068043a5.js","assets/CheckIcon-bcbb5853.js","assets/index-717b1eb9.js","assets/ClipLoader-c90857c8.js","assets/index-5fe8c70d.js","assets/three.module-71ec604c.js","assets/index-da8a239d.js","assets/index-33375362.js","assets/Stack-ff0fb8f6.js","assets/createSvgIcon-09ff14f6.js","assets/TextareaAutosize-c42da1c8.js","assets/index-64f1c910.js"]).then(({AddItemModal:e})=>({default:e}))),Se=r.lazy(()=>u(()=>import("./index-85f1fd1c.js"),["assets/index-85f1fd1c.js","assets/index-2353781d.js","assets/index-b4d03b7b.css","assets/VisibilityOn-aa220caf.js","assets/SearchIcon-3c9f4418.js","assets/constants-e4e2b00b.js","assets/index-068043a5.js","assets/ClipLoader-c90857c8.js","assets/index-da8a239d.js","assets/index-33375362.js","assets/Stack-ff0fb8f6.js","assets/createSvgIcon-09ff14f6.js","assets/TextareaAutosize-c42da1c8.js","assets/index-3109fb7b.js","assets/NodeCircleIcon-6e372d93.js","assets/CheckIcon-bcbb5853.js","assets/Typography-13640c0b.js","assets/Tabs-9bc26124.js"]).then(({SourcesTableModal:e})=>({default:e}))),Ie=r.lazy(()=>u(()=>import("./index-02556457.js"),["assets/index-02556457.js","assets/index-2353781d.js","assets/index-b4d03b7b.css","assets/index-068043a5.js","assets/EditNodeIcon-665ec0f5.js","assets/index-33375362.js","assets/Skeleton-d97f7e12.js","assets/ClipLoader-c90857c8.js"]).then(({EditNodeNameModal:e})=>({default:e}))),Le=r.lazy(()=>u(()=>import("./index-50985761.js"),["assets/index-50985761.js","assets/index-2353781d.js","assets/index-b4d03b7b.css","assets/index-068043a5.js","assets/DeleteNodeIcon-be8a9a17.js","assets/Skeleton-d97f7e12.js","assets/ClipLoader-c90857c8.js"]).then(({RemoveNodeModal:e})=>({default:e}))),Pe=r.lazy(()=>u(()=>import("./index-04df737c.js"),["assets/index-04df737c.js","assets/index-2353781d.js","assets/index-b4d03b7b.css","assets/index-068043a5.js","assets/NodeCircleIcon-6e372d93.js","assets/index-da8a239d.js","assets/index-33375362.js","assets/Stack-ff0fb8f6.js","assets/createSvgIcon-09ff14f6.js","assets/TextareaAutosize-c42da1c8.js","assets/constants-e4e2b00b.js","assets/ClipLoader-c90857c8.js"]).then(({AddNodeEdgeModal:e})=>({default:e}))),Re=r.lazy(()=>u(()=>import("./index-e033fd45.js"),["assets/index-e033fd45.js","assets/index-2353781d.js","assets/index-b4d03b7b.css","assets/index-068043a5.js","assets/index-3109fb7b.js","assets/constants-e4e2b00b.js","assets/NodeCircleIcon-6e372d93.js","assets/index-da8a239d.js","assets/index-33375362.js","assets/Stack-ff0fb8f6.js","assets/createSvgIcon-09ff14f6.js","assets/TextareaAutosize-c42da1c8.js","assets/ClipLoader-c90857c8.js"]).then(({MergeNodeModal:e})=>({default:e}))),Me=r.lazy(()=>u(()=>import("./index-13ae7535.js"),["assets/index-13ae7535.js","assets/index-2353781d.js","assets/index-b4d03b7b.css","assets/index-5fe8c70d.js","assets/three.module-71ec604c.js","assets/ClipLoader-c90857c8.js","assets/index-068043a5.js","assets/index-da8a239d.js","assets/index-33375362.js","assets/Stack-ff0fb8f6.js","assets/createSvgIcon-09ff14f6.js","assets/TextareaAutosize-c42da1c8.js","assets/index-64f1c910.js"]).then(({ChangeNodeTypeModal:e})=>({default:e}))),Ne=r.lazy(()=>u(()=>import("./index-b37638c7.js"),["assets/index-b37638c7.js","assets/index-2353781d.js","assets/index-b4d03b7b.css","assets/index-da8a239d.js","assets/index-33375362.js","assets/Stack-ff0fb8f6.js","assets/index-068043a5.js","assets/createSvgIcon-09ff14f6.js","assets/TextareaAutosize-c42da1c8.js","assets/ClipLoader-c90857c8.js","assets/index-964e9ac6.js","assets/VisibilityOn-aa220caf.js","assets/SourcesTableIcon-54a999e3.js","assets/VolumeIcon-750bd7e3.js","assets/NodeCircleIcon-6e372d93.js","assets/SoundIcon-a0618346.js","assets/CheckIcon-bcbb5853.js","assets/DeleteNodeIcon-be8a9a17.js","assets/EditNodeIcon-665ec0f5.js","assets/SearchIcon-3c9f4418.js","assets/SucessFeedBackIcon-edca1d93.js","assets/three.module-71ec604c.js","assets/isPlainObject-c1defea0.js","assets/Typography-13640c0b.js","assets/Tabs-9bc26124.js","assets/index-5fe8c70d.js"]).then(({BlueprintModal:e})=>({default:e}))),Oe=r.lazy(()=>u(()=>import("./index-18a58def.js"),["assets/index-18a58def.js","assets/index-2353781d.js","assets/index-b4d03b7b.css","assets/SucessFeedBackIcon-edca1d93.js"]).then(({UserFeedBackModal:e})=>({default:e}))),Be=r.lazy(()=>u(()=>import("./index-a37fbd62.js"),["assets/index-a37fbd62.js","assets/index-2353781d.js","assets/index-b4d03b7b.css","assets/index-068043a5.js","assets/index-da8a239d.js","assets/index-33375362.js","assets/Stack-ff0fb8f6.js","assets/createSvgIcon-09ff14f6.js","assets/TextareaAutosize-c42da1c8.js"]).then(({CreateBountyModal:e})=>({default:e}))),Ce=r.lazy(()=>u(()=>import("./index-2353781d.js").then(e=>e.ca),["assets/index-2353781d.js","assets/index-b4d03b7b.css"]).then(({OnboardingModal:e})=>({default:e}))),$e=r.lazy(()=>u(()=>import("./index-83d18e4b.js").then(e=>e.i),["assets/index-83d18e4b.js","assets/index-2353781d.js","assets/index-b4d03b7b.css","assets/SoundIcon-a0618346.js","assets/index-068043a5.js"]).then(({BriefDescription:e})=>({default:e}))),De=()=>t.jsxs(t.Fragment,{children:[t.jsx(ze,{}),t.jsx(Ae,{}),t.jsx(Te,{}),t.jsx(Ie,{}),t.jsx(Le,{}),t.jsx(Se,{}),t.jsx(Pe,{}),t.jsx(Me,{}),t.jsx(Ne,{}),t.jsx(Re,{}),t.jsx(Oe,{}),t.jsx(Be,{}),t.jsx(Ce,{}),t.jsx($e,{})]}),Ve=()=>{const[e,n]=r.useState(null),{runningProjectMessages:i}=A(g=>g),c=g=>{n(g.currentTarget)},a=()=>{n(null)},p=!!e,_=p?"simple-popover":void 0;return i.length?t.jsxs(qe,{ml:8,children:[t.jsx(Qe,{onClick:c,children:t.jsxs(xe,{content:"Messages",margin:"18px",children:[t.jsx("div",{className:"icon",children:t.jsx(re,{})}),t.jsx("div",{className:"text",children:t.jsx("p",{children:i.length})})]})}),t.jsxs(Ge,{anchorEl:e,anchorOrigin:{vertical:"bottom",horizontal:"right"},id:_,onClose:a,open:p,children:[t.jsx(ee,{onClick:a,children:t.jsx(se,{})}),t.jsx(Fe,{p:16,children:i.map(g=>t.jsx("p",{className:"item",children:g},g))})]})]}):null},qe=l(h).attrs({align:"center",direction:"row",grow:0,justify:"flex-start"})``,Fe=l(h)` + max-height: 50vh; + max-width: 30vw; + background: transparent; + padding-top: 1px !important; + padding-bottom: 0 !important; + overflow-y: auto; + + &::-webkit-scrollbar { + width: 3px; + } + + &::-webkit-scrollbar-track { + border-radius: 9px; + margin: 4px; + overflow-y: hidden; + } + + .item { + padding: 8px 0; + word-break: break-word; + font-family: 'Barlow'; + font-size: 12px; + font-weight: 400; + text-align: right; + color: ${s.GRAY6}; + } + + &:hover { + background: ${s.MESSAGE_BG_HOVER}; + } +`,Qe=l(h).attrs({align:"center",direction:"row"})` + display: flex; + cursor: pointer; + height: 2.5rem; + padding: 0.75rem 0.9375rem 0.75rem 0.9375rem; + align-items: center; + gap: 0.625rem; + color: ${s.white}; + background: ${s.BG1}; + font-family: Barlow; + font-size: 0.75rem; + font-style: normal; + font-weight: 500; + line-height: normal; + letter-spacing: 0.0075rem; + border-radius: 12.5rem; + + &:hover { + background: ${s.BUTTON1_PRESS}; + } + + &:active { + background: ${s.BUTTON1}; + } + + .icon { + display: flex; + align-items: center; + justify-content: center; + margin-right: 10px; + font-size: 16px; + } + + .budgetUnit { + color: ${s.GRAY6}; + } + + .text { + display: flex; + align-items: center; + justify-content: center; + } +`,ee=l.div` + position: absolute; + top: 0; + right: 0; + transform: translate(50%, -50%); + cursor: pointer; + display: none; + z-index: 1; + width: 2em; + height: 2em; + background-color: ${s.BUTTON1}; + border-radius: 50%; + align-items: center; + justify-content: center; + + svg { + fill: ${s.white} !important; + width: 1.5em; + height: 1.5em; + } +`,Ge=l(me)` + .MuiPopover-paper { + margin-top: 4px; + background-color: transparent !important; + box-shadow: none; + background: ${s.MESSAGE_BG}; + border-radius: 6px; + overflow: visible; + + &:hover { + ${ee} { + display: flex; + } + } + } +`;l(h).attrs({align:"center",direction:"row",grow:1,justify:"flex-start"})``;l(h).attrs({align:"center",direction:"row",grow:1,justify:"flex-end"})``;l(h).attrs({align:"center",direction:"row",grow:1})` + justify-content: between; +`;l(h).attrs({align:"center",direction:"row",justify:"flex-start"})` + color: ${s.white}; + background: ${s.BG1}; + padding: 6px 10px 6px 8px; + font-family: Barlow; + font-size: 13px; + font-style: normal; + font-weight: 500; + line-height: 15px; + letter-spacing: 0.78px; + margin: 0 8px; + border-radius: 200px; + cursor: pointer; + + &:hover { + background: ${s.BUTTON1_PRESS}; + } + + &:active { + background: ${s.BUTTON1}; + } + + .icon { + margin-right: 8px; + font-size: 16px; + } + + .text { + } +`;l(h).attrs({align:"center",direction:"row"})` + display: flex; + height: 2.5rem; + padding: 0.75rem 0.9375rem 0.75rem 0.9375rem; + align-items: center; + gap: 0.625rem; + color: ${s.white}; + background: ${s.BG1}; + font-family: Barlow; + font-size: 0.75rem; + font-style: normal; + font-weight: 500; + line-height: normal; + letter-spacing: 0.0075rem; + border-radius: 12.5rem; + + &:hover { + background: ${s.BUTTON1_PRESS}; + } + + &:active { + background: ${s.BUTTON1}; + } + + .icon { + display: flex; + align-items: center; + justify-content: center; + margin-right: 10px; + } + + .budgetUnit { + color: ${s.GRAY6}; + } + + .text { + display: flex; + align-items: center; + justify-content: center; + } +`;l(h).attrs({align:"center",direction:"row"})` + margin-right: 10px; + display: flex; + height: 28px; + padding: 0.75rem 0.6375rem 0.75rem 0.3187rem; + align-items: center; + gap: 4px; + color: ${s.white}; + background: ${s.modalShield}; + font-family: Barlow; + font-size: 0.75rem; + font-style: normal; + font-weight: 500; + line-height: normal; + letter-spacing: 0.0075rem; + border-radius: 12.5rem; + + &:active { + background: ${s.BUTTON1}; + } + + .icon { + display: flex; + align-items: center; + justify-content: center; + width: 22px; + height: 22px; + } + + .text { + display: flex; + align-items: center; + justify-content: center; + } +`;const Ue=()=>{const e=X(g=>g.appMetaData),{resetAiSummaryAnswer:n,setNewLoading:i}=Z(),{abortFetchData:c,resetGraph:a}=A(g=>g),p=ae();if(!e)return null;const _=()=>{i(null),c(),a(),n(),p("/")};return t.jsxs(We,{children:[t.jsxs(He,{onClick:_,children:[t.jsx(t.Fragment,{children:e.title&&t.jsx(T,{className:"title",color:"white",children:e.title})}),t.jsx(T,{className:"subtitle",children:"Second Brain"})]}),!1,t.jsx(Ve,{})]})},We=l(h).attrs({align:"center",direction:"row",grow:1,justify:"flex-start"})` + height: 64px; + position: absolute; + top: 0px; + left: 64px; + right: 32px; + transition: opacity 1s; + z-index: 99; + padding: 20px 23px; +`,He=l.div` + ${ie.smallOnly` + display: none; + `} + + width: 367px; + + .title { + color: var(--Primary-Text, #fff); + font-family: Barlow; + font-size: 22px; + font-style: normal; + font-weight: 700; + line-height: 16px; /* 72.727% */ + letter-spacing: 0.22px; + cursor: pointer; + } + + .subtitle { + color: ${s.GRAY6}; + font-family: Barlow; + font-size: 22px; + font-style: normal; + font-weight: 400; + line-height: 16px; + letter-spacing: 0.22px; + margin-left: 8px; + cursor: pointer; + } +`,Ye=620,Je=()=>{const e=`(max-width: ${Ye}px)`,[n,i]=r.useState(()=>window.matchMedia(e).matches);return r.useEffect(()=>{const c=window.matchMedia(e);i(c.matches);const a=()=>{i(c.matches)};return window.addEventListener("resize",a),()=>c.removeEventListener("change",a)},[e]),n},Ke=()=>{const[e,n]=r.useState(!0),i=Je();r.useEffect(()=>{n(!0)},[i]);const c=()=>{n(!1)};return i&&e?t.jsxs(Xe,{align:"center",direction:"column",justify:"center",onClick:c,children:[t.jsx("img",{alt:"screen",src:"jamboard_kiosk.png"}),t.jsxs(h,{align:"center",direction:"column",justify:"center",children:[t.jsx(E,{children:"Second Brain is currently"}),t.jsx(E,{style:{fontWeight:600},children:"optimized for Desktop."}),t.jsx(E,{children:"Mobile support coming soon."})]}),t.jsx(le,{color:"secondary",onClick:c,variant:"contained",children:"Got It"})]}):null},Xe=l(h)` + height: 100vh; + width: 100vw; + background: rgba(0, 0, 0, 0.75); + gap: 28px; + z-index: 2000000000; + position: fixed; + top: 0; + left: 0; + right: 0; +`,E=l(T)` + color: #fff; + text-align: center; + font-family: Barlow; + font-size: 18px; + font-style: normal; + font-weight: 400; + line-height: 24px; + margin: 1px; +`,Ze=l(ce)` + .Toastify__toast { + background-color: #49c998ff; + width: fit-content; + min-height: 100%; + border-radius: 12px; + padding: 6px; + } + .Toastify__toast-body { + background-color: #49c998ff; + color: ${s.white}; + font-weight: 500; + font-family: 'Barlow'; + } + .Toastify__close-button { + color: ${s.white}; + } + .Toastify__progress-bar--error { + background-color: ${s.primaryRed}; + } + .Toastify__progress-bar--success { + background-color: ${s.primaryGreen}; + } + &.Toastify__toast-container--top-right { + width: fit-content; + height: auto; + top: 60px; + right: 48px; + } +`,et=l(h)` + height: 100%; + width: 100%; + background-color: ${s.black}; +`,tt=l(h)` + position: absolute; + bottom: 8px; + left: 8px; + color: ${s.white}; + font-size: 12px; + opacity: 0.5; +`,ot=r.lazy(()=>u(()=>import("./index-28e04477.js"),["assets/index-28e04477.js","assets/index-2353781d.js","assets/index-b4d03b7b.css","assets/SourcesTableIcon-54a999e3.js"]).then(({MainToolbar:e})=>({default:e}))),nt=r.lazy(()=>u(()=>import("./index-b7808ecf.js"),["assets/index-b7808ecf.js","assets/index-2353781d.js","assets/index-b4d03b7b.css","assets/index-964e9ac6.js","assets/VisibilityOn-aa220caf.js","assets/SourcesTableIcon-54a999e3.js","assets/VolumeIcon-750bd7e3.js","assets/NodeCircleIcon-6e372d93.js","assets/SoundIcon-a0618346.js","assets/index-068043a5.js","assets/CheckIcon-bcbb5853.js","assets/DeleteNodeIcon-be8a9a17.js","assets/EditNodeIcon-665ec0f5.js","assets/SearchIcon-3c9f4418.js","assets/SucessFeedBackIcon-edca1d93.js","assets/three.module-71ec604c.js","assets/TextareaAutosize-c42da1c8.js","assets/index-33375362.js","assets/ClipLoader-c90857c8.js"]).then(({Universe:e})=>({default:e}))),rt=r.lazy(()=>u(()=>import("./index-057df3f8.js").then(e=>e.i),["assets/index-057df3f8.js","assets/index-2353781d.js","assets/index-b4d03b7b.css","assets/VolumeIcon-750bd7e3.js","assets/index-068043a5.js","assets/SearchIcon-3c9f4418.js","assets/ClipLoader-c90857c8.js","assets/Skeleton-d97f7e12.js","assets/Stack-ff0fb8f6.js","assets/index-83d18e4b.js","assets/SoundIcon-a0618346.js","assets/index-33375362.js","assets/CheckIcon-bcbb5853.js","assets/isPlainObject-c1defea0.js","assets/Typography-13640c0b.js","assets/createSvgIcon-09ff14f6.js"]).then(({SideBar:e})=>({default:e}))),at=()=>{const[e]=de(),n=e.get("q"),{setBudget:i,setNodeCount:c}=ue(o=>o),a=r.useRef(null),p=r.useRef(null),{setSidebarOpen:_,currentSearch:g,setCurrentSearch:z,setRelevanceSelected:S,setTranscriptOpen:I,universeQuestionIsOpen:te,setUniverseQuestionIsOpen:L}=X(o=>o),P=ve(o=>o.setTeachMeAnswer),{fetchData:R,setCategoryFilter:M,setAbortRequests:N,addNewNode:O,splashDataLoading:k,runningProjectId:b,setRunningProjectMessages:B,isFetching:C,resetData:$}=A(o=>o),{setAiSummaryAnswer:f,getKeyExist:D,aiRefId:v}=Z(o=>o),w=ye(),[V,y]=he(o=>[o.realtimeGraphFeatureFlag,o.chatInterfaceFeatureFlag]),d=_e(),q=ge({mode:"onChange"}),{setValue:F}=q;r.useEffect(()=>{F("search",n??""),I(!1),w(null),S(!1),z(n??""),P(""),M(null)},[n,M,z,S,w,P,I,F]),r.useEffect(()=>{const o=async()=>{await R(i,N),_(!0),g?await fe(i):w(null)};$(),o()},[g,R,i,N,_,w,$]);const Q=r.useCallback(()=>{c("INCREMENT")},[c]),G=r.useCallback(o=>{C||(a.current||(a.current={nodes:[],edges:[]}),o.edges&&a.current.edges.push(...o.edges),o.nodes&&a.current.nodes.push(...o.nodes),p.current&&clearTimeout(p.current),p.current=setTimeout(()=>{if(a.current){const{nodes:m,edges:x}=a.current,j={nodes:m,edges:x};a.current={nodes:[],edges:[]},O(j)}},3e3))},[O,C]),U=r.useCallback(o=>{o.ref_id&&f(o.ref_id,{answer:o.answer,answerLoading:!1})},[f]),W=r.useCallback(o=>{o.ref_id&&f(o.ref_id,{audio_en:o.audio_EN})},[f]),H=r.useCallback(o=>{o.ref_id&&f(o.ref_id,{questions:o.relevant_questions.map(m=>m.question),questionsLoading:!1})},[f]),Y=r.useCallback(o=>{o.ref_id&&f(o.ref_id,{sources:o.sources.map(m=>m.ref_id),sourcesLoading:!1})},[f]),J=r.useCallback(o=>{o.question&&D(v)&&f(v,{answerLoading:!1,entities:o.entities})},[f,D,v]);return r.useEffect(()=>(d&&(d.connect(),d.on("connect_error",o=>{console.error("Socket connection error:",o)}),d.on("newnode",Q),y&&d.on("extractedentitieshook",J),y&&d.on("askquestionhook",U),y&&d.on("relevantquestionshook",H),y&&d.on("answersourceshook",Y),V&&d.on("new_node_created",G),y&&d.on("answeraudiohook",W)),()=>{d&&d.off()}),[d,Q,G,V,U,y,H,Y,J,W]),r.useEffect(()=>{if(!b)return;const o=new WebSocket("wss://jobs.stakwork.com/cable?channel=ProjectLogChannel");o.onopen=()=>{const x={command:"subscribe",identifier:JSON.stringify({channel:"ProjectLogChannel",id:b})};o.send(JSON.stringify(x))},o.onmessage=m=>{var K;const x=JSON.parse(m.data);if(console.log(x),x.type==="ping")return;const j=(K=x==null?void 0:x.message)==null?void 0:K.message;j&&B(j)},o.onerror=m=>{console.error("WebSocket error:",m)}},[b,B]),r.useEffect(()=>{if(b)try{d==null||d.emit("update_project_id",{id:b})}catch(o){console.error(o)}},[b,d]),r.useEffect(()=>{k||y&&L()},[L,k,y]),t.jsxs(t.Fragment,{children:[t.jsx(je,{}),t.jsx(Ke,{}),t.jsx(r.Suspense,{fallback:t.jsx("div",{children:"Loading..."}),children:k?null:t.jsxs(et,{direction:"row",children:[t.jsxs(pe,{...q,children:[t.jsx(ot,{}),!te&&t.jsx(rt,{}),t.jsx(nt,{}),t.jsx(be,{}),t.jsx(Ue,{}),t.jsxs(tt,{children:["v",Ee]}),t.jsx(we,{})]}),t.jsx(De,{}),t.jsx(Ze,{})]})})]})};export{at as App}; diff --git a/build/assets/index-de2489a8.js b/build/assets/index-de2489a8.js deleted file mode 100644 index b964bf8e5..000000000 --- a/build/assets/index-de2489a8.js +++ /dev/null @@ -1,34 +0,0 @@ -import{s as a,j as e,F as s,aW as g,aX as j,B as w,T as i,a as n,e as S,t as y,r as m,aU as k,aZ as v,v as F,ad as B}from"./index-1d805415.js";import{aH as T}from"./index-3ac851f3.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'; -`,C=()=>e.jsxs(s,{align:"center",direction:"column",justify:"center",p:40,children:[e.jsx(M,{children:e.jsx(T,{})}),e.jsx(W,{children:"We've Got Your Feedback"}),e.jsx($,{children:"Thank you for sharing your thoughts with us! We value your input."})]}),M=a.div` - margin-bottom: 20px; - width: 50px; - height: 50px; - - svg { - width: 100%; - height: 100%; - color: ${n.white}; - fill: none; - } - - circle { - color: ${n.SUCESS}; - } -`,W=a(i)` - font-size: 22px; - font-weight: 700; - font-family: 'Barlow'; - text-align: center; - margin-bottom: 10px; -`,$=a(i)` - font-size: 16px; - font-family: 'Barlow'; - text-align: center; - margin-bottom: 20px; - font-weight: 400; - color: ${n.GRAY6}; - padding-top: 10px; -`,I=async r=>{try{const t=await B.post("/prediction/feedback",JSON.stringify(r));if(t.error){const{message:o}=t.error;throw new Error(o)}}catch(t){throw new Error(t.message||"Error submitting feedback")}},U=()=>{const{close:r,visible:t}=S("feedback"),o=y({mode:"onChange"}),{watch:u,reset:c}=o,[x,d]=m.useState(!1);m.useEffect(()=>()=>{d(!1),c()},[t,c]);const l=u("message"),h=!!l&&l.trim().length>0,f=o.handleSubmit(async p=>{try{await I(p),k("Feedback Submitted"),d(!0)}catch(b){console.error(b.message)}});return e.jsx(v,{id:"feedback",kind:"small",onClose:r,preventOutsideClose:!0,children:e.jsx(F,{...o,children:e.jsx("form",{id:"feedback-form",onSubmit:f,children:x?e.jsx(C,{}):e.jsx(E,{allowNextStep:h})})})})};export{U as UserFeedBackModal}; diff --git a/build/assets/index-e033fd45.js b/build/assets/index-e033fd45.js new file mode 100644 index 000000000..e3cd919fb --- /dev/null +++ b/build/assets/index-e033fd45.js @@ -0,0 +1,95 @@ +import{r as p,a6 as T,j as e,F as x,C as I,bb as _,bn as L,s as n,T as C,a0 as A,i as F,aW as B,k as E,a as N,bq as k,B as M}from"./index-2353781d.js";import{f as O}from"./index-068043a5.js";import{u as w}from"./index-3109fb7b.js";import{S as z,A as D,I as P}from"./constants-e4e2b00b.js";import{N as Y,F as R,A as W}from"./NodeCircleIcon-6e372d93.js";import{A as X,T as H}from"./index-da8a239d.js";import{C as q}from"./ClipLoader-c90857c8.js";import"./index-33375362.js";import"./Stack-ff0fb8f6.js";import"./createSvgIcon-09ff14f6.js";import"./TextareaAutosize-c42da1c8.js";const U=({topicId:s,onSelect:r,selectedValue:d,dataId:c})=>{const[u,f]=p.useState([]),[g,h]=p.useState(!1),j=p.useMemo(()=>{const o=async i=>{const m={is_muted:"False",sort_by:D,search:i,skip:"0",limit:"1000"};h(!0);try{const v=(await L(m.search)).data.filter(y=>(y==null?void 0:y.ref_id)!==s);f(v)}catch{f([])}finally{h(!1)}};return T.debounce(o,300)},[s]),a=o=>{const i=o.trim();if(!i){f([]);return}i.length>2&&j(o)},b=o=>{const i=o?u.find(m=>m.ref_id===o.value):null;r(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(z,{onClick:()=>r(null),size:"medium",children:e.jsx(I,{})})]}):e.jsx(X,{dataId:c,handleInputChange:a,isLoading:g,onSelect:b,options:S(u)||_,selectedValue:d?t(d):null})},$=({from:s,onSelect:r,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(C,{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(U,{dataId:"to-node",onSelect:r,selectedValue:d,topicId:s==null?void 0:s.ref_id})]})}),e.jsxs(K,{children:[e.jsx(oe,{children:e.jsx(Y,{})}),e.jsx(se,{"data-testid":"swap-icon",onClick:u,children:e.jsx(R,{})}),e.jsx(ne,{children:e.jsx(W,{})})]})]})]}),G=n(C)` + font-size: 22px; + font-weight: 600; + font-family: 'Barlow'; +`,J=n(x)` + flex: 1 1 100%; +`,K=n.div` + position: absolute; + top: 26px; + bottom: 26px; + left: 4px; + width: 35px; + border-left: 1.5px solid #6b7a8d4d; + border-top: 1.5px solid #6b7a8d4d; + border-bottom: 1.5px solid #6b7a8d4d; + border-radius: 12px 0 0 12px; +`,Q=n.div` + position: relative; + color: white; + font-family: 'Barlow'; + display: flex; + flex-direction: ${s=>s.swap?"column-reverse":"column"}; + margin-bottom: 10px; + padding-left: 38px; +`,V=n(H)` + position: relative; + width: 100%; + padding: 16px; + gap: 10px; + border-radius: 6px; + border: 1px solid #6b7a8d4d; + opacity: 0px; + display: flex; +`,Z=n.div` + position: relative; + width: 100%; + padding: 15px; + gap: 10px; + border-radius: 6px; + border: 1.4px solid #6b7a8d4d; + opacity: 0px; + display: flex; + align-items: center; +`,ee=n.label` + color: #bac1c6; + font-size: 13px; + font-weight: 400; + line-height: 18px; + letter-spacing: 0.01em; + text-align: left; + margin-bottom: 6px; +`,te=n.label` + color: #bac1c6; + background-color: #23252f; + font-size: 13px; + font-weight: 400; + line-height: 18px; + letter-spacing: 0.01em; + text-align: left; + position: absolute; + left: 15px; + top: -10px; +`,oe=n.div` + position: absolute; + top: 0; + right: 0; + transform: translateY(-50%) translateX(50%); + color: #23252f; +`,se=n.div` + position: absolute; + color: transparent; + top: 50%; + left: 0; + transform: translateY(-50%) translateX(-50%); + cursor: pointer; + width: 32px; + height: 32px; + background-color: #303342; + display: flex; + justify-content: center; + align-items: center; + border-radius: 8px; +`,ne=n.div` + position: absolute; + bottom: 0; + right: 0; + transform: translateY(10px) translateX(3px); + color: #6b7a8d; + line-height: 1; +`,be=()=>{const{close:s}=A("mergeToNode"),[r,d,c]=w(l=>[l.data,l.ids,l.total]),u=F({mode:"onChange"}),[f,g]=p.useState(!1),[h,j]=p.useState(!1),[a,b]=p.useState(null),[t,S]=p.useState(),o=O();p.useEffect(()=>{o&&S(o)},[o]);const i=()=>{b(null),s()},m=async()=>{if(!(!a||!r)){g(!0);try{await k({from:t==null?void 0:t.ref_id,to:a==null?void 0:a.ref_id}),t!=null&&t.ref_id&&(r[t==null?void 0:t.ref_id]={...r[t==null?void 0:t.ref_id],edgeList:[P],edgeCount:r[t==null?void 0:t.ref_id].edgeCount-1},w.setState({ids:d.filter(l=>l!==a.ref_id),total:c-1})),i()}catch(l){console.warn(l)}finally{g(!1)}}};return e.jsx(B,{id:"mergeToNode",kind:"small",onClose:i,preventOutsideClose:!0,children:e.jsxs(E,{...u,children:[e.jsx($,{from:t,isSwapped:h,onSelect:b,selectedToNode:a,setIsSwapped:()=>j(!h)}),e.jsxs(re,{color:"secondary","data-testid":"merge-topics-button",disabled:f||!a,onClick:m,size:"large",variant:"contained",children:["Merge topics",f&&e.jsx(ae,{children:e.jsx(q,{color:N.BLUE_PRESS_STATE,size:12})})]})]})})},re=n(M)` + width: 293px !important; + margin: 0 0 10px auto !important; +`,ae=n.span` + margin-top: 2px; +`;export{be as MergeNodeModal}; diff --git a/build/assets/index-f3df532f.js b/build/assets/index-f3df532f.js deleted file mode 100644 index 739785c5b..000000000 --- a/build/assets/index-f3df532f.js +++ /dev/null @@ -1,71 +0,0 @@ -import{r as u,j as f,b_ as kt,b$ as Rt,a1 as xo,$ as Ot,N as a,K as ye,L as $e,M as w,X as L,P as Pe,G as ae,S as ne,U as Ie,O as Re,Y as lo,V as Uo,c0 as Lt,c1 as wt,Z as st,c2 as it,bx as ct,by as dt,ah as Xe,c3 as To,a2 as Mt,ak as Ft,s as Tt,a as je,F as At}from"./index-1d805415.js";import{T as Nt}from"./index-5b7bb80c.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-2f0ef3f5.js";import{z as Ho,e as pt,ak as ft,aI as Bt,q as Fo,P as jt,aJ as Wt,D as Vo}from"./index-3ac851f3.js";import{c as zo}from"./createSvgIcon-b68c7390.js";import{T as _t}from"./TextareaAutosize-3b102137.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); - } - - 100% { - transform: rotate(360deg); - } -`)),Xn=ct(Jo||(Jo=So` - 0% { - stroke-dasharray: 1px, 200px; - stroke-dashoffset: 0; - } - - 50% { - stroke-dasharray: 100px, 200px; - stroke-dashoffset: -15px; - } - - 100% { - stroke-dasharray: 100px, 200px; - stroke-dashoffset: -125px; - } -`)),Yn=e=>{const{classes:o,variant:t,color:r,disableShrink:s}=e,c={root:["root",t,`color${L(r)}`],svg:["svg"],circle:["circle",`circle${L(t)}`,s&&"circleDisableShrink"]};return Ie(c,Kn,o)},Zn=w("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.root,o[t.variant],o[`color${L(t.color)}`]]}})(({ownerState:e,theme:o})=>a({display:"inline-block"},e.variant==="determinate"&&{transition:o.transitions.create("transform")},e.color!=="inherit"&&{color:(o.vars||o).palette[e.color].main}),({ownerState:e})=>e.variant==="indeterminate"&&dt(Qo||(Qo=So` - animation: ${0} 1.4s linear infinite; - `),Gn)),Jn=w("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,o)=>o.svg})({display:"block"}),Qn=w("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.circle,o[`circle${L(t.variant)}`],t.disableShrink&&o.circleDisableShrink]}})(({ownerState:e,theme:o})=>a({stroke:"currentColor"},e.variant==="determinate"&&{transition:o.transitions.create("stroke-dashoffset")},e.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink&&dt(et||(et=So` - animation: ${0} 1.4s ease-in-out infinite; - `),Xn)),er=u.forwardRef(function(o,t){const r=Pe({props:o,name:"MuiCircularProgress"}),{className:s,color:c="primary",disableShrink:d=!1,size:i=40,style:b,thickness:p=3.6,value:m=0,variant:h="indeterminate"}=r,$=ae(r,qn),v=a({},r,{color:c,disableShrink:d,size:i,thickness:p,value:m,variant:h}),R=Yn(v),M={},P={},O={};if(h==="determinate"){const k=2*Math.PI*((Je-p)/2);M.strokeDasharray=k.toFixed(3),O["aria-valuenow"]=Math.round(m),M.strokeDashoffset=`${((100-m)/100*k).toFixed(3)}px`,P.transform="rotate(-90deg)"}return f.jsx(Zn,a({className:ne(R.root,s),style:a({width:i,height:i},P,b),ownerState:v,ref:t,role:"progressbar"},O,$,{children:f.jsx(Jn,{className:R.svg,ownerState:v,viewBox:`${Je/2} ${Je/2} ${Je} ${Je}`,children:f.jsx(Qn,{className:R.circle,style:M,ownerState:v,cx:Je,cy:Je,r:(Je-p)/2,fill:"none",strokeWidth:p})})}))}),or=er,tr=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],nr=e=>{const{classes:o,disableUnderline:t}=e,s=Ie({root:["root",!t&&"underline"],input:["input"]},Pn,o);return a({},o,s)},rr=w($o,{shouldForwardProp:e=>Xe(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[...Co(e,o),!t.disableUnderline&&o.underline]}})(({theme:e,ownerState:o})=>{var t;const r=e.palette.mode==="light",s=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",c=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",d=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",i=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return a({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:c,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:d,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:c}},[`&.${Le.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:c},[`&.${Le.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:i}},!o.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(t=(e.vars||e).palette[o.color||"primary"])==null?void 0:t.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Le.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Le.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:s}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Le.disabled}, .${Le.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Le.disabled}:before`]:{borderBottomStyle:"dotted"}},o.startAdornment&&{paddingLeft:12},o.endAdornment&&{paddingRight:12},o.multiline&&a({padding:"25px 12px 8px"},o.size==="small"&&{paddingTop:21,paddingBottom:4},o.hiddenLabel&&{paddingTop:16,paddingBottom:17},o.hiddenLabel&&o.size==="small"&&{paddingTop:8,paddingBottom:9}))}),ar=w(Io,{name:"MuiFilledInput",slot:"Input",overridesResolver:yo})(({theme:e,ownerState:o})=>a({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},o.size==="small"&&{paddingTop:21,paddingBottom:4},o.hiddenLabel&&{paddingTop:16,paddingBottom:17},o.startAdornment&&{paddingLeft:0},o.endAdornment&&{paddingRight:0},o.hiddenLabel&&o.size==="small"&&{paddingTop:8,paddingBottom:9},o.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),mt=u.forwardRef(function(o,t){var r,s,c,d;const i=Pe({props:o,name:"MuiFilledInput"}),{components:b={},componentsProps:p,fullWidth:m=!1,inputComponent:h="input",multiline:$=!1,slotProps:v,slots:R={},type:M="text"}=i,P=ae(i,tr),O=a({},i,{fullWidth:m,inputComponent:h,multiline:$,type:M}),k=nr(i),C={root:{ownerState:O},input:{ownerState:O}},I=v??p?To(C,v??p):C,E=(r=(s=R.root)!=null?s:b.Root)!=null?r:rr,N=(c=(d=R.input)!=null?d:b.Input)!=null?c:ar;return f.jsx(Do,a({slots:{root:E,input:N},componentsProps:I,fullWidth:m,inputComponent:h,multiline:$,ref:t,type:M},P,{classes:k}))});mt.muiName="Input";const ht=mt;function lr(e){return ye("MuiFormHelperText",e)}const sr=$e("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),ot=sr;var tt;const ir=["children","className","component","disabled","error","filled","focused","margin","required","variant"],cr=e=>{const{classes:o,contained:t,size:r,disabled:s,error:c,filled:d,focused:i,required:b}=e,p={root:["root",s&&"disabled",c&&"error",r&&`size${L(r)}`,t&&"contained",i&&"focused",d&&"filled",b&&"required"]};return Ie(p,lr,o)},dr=w("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.root,t.size&&o[`size${L(t.size)}`],t.contained&&o.contained,t.filled&&o.filled]}})(({theme:e,ownerState:o})=>a({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${ot.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${ot.error}`]:{color:(e.vars||e).palette.error.main}},o.size==="small"&&{marginTop:4},o.contained&&{marginLeft:14,marginRight:14})),ur=u.forwardRef(function(o,t){const r=Pe({props:o,name:"MuiFormHelperText"}),{children:s,className:c,component:d="p"}=r,i=ae(r,ir),b=so(),p=io({props:r,muiFormControl:b,states:["variant","size","disabled","error","filled","focused","required"]}),m=a({},r,{component:d,contained:p.variant==="filled"||p.variant==="outlined",variant:p.variant,size:p.size,disabled:p.disabled,error:p.error,filled:p.filled,focused:p.focused,required:p.required}),h=cr(m);return f.jsx(dr,a({as:d,ownerState:m,className:ne(h.root,c),ref:t},i,{children:s===" "?tt||(tt=f.jsx("span",{className:"notranslate",children:"​"})):s}))}),pr=ur;function fr(e){return ye("MuiFormLabel",e)}const br=$e("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),bo=br,gr=["children","className","color","component","disabled","error","filled","focused","required"],mr=e=>{const{classes:o,color:t,focused:r,disabled:s,error:c,filled:d,required:i}=e,b={root:["root",`color${L(t)}`,s&&"disabled",c&&"error",d&&"filled",r&&"focused",i&&"required"],asterisk:["asterisk",c&&"error"]};return Ie(b,fr,o)},hr=w("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},o)=>a({},o.root,e.color==="secondary"&&o.colorSecondary,e.filled&&o.filled)})(({theme:e,ownerState:o})=>a({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${bo.focused}`]:{color:(e.vars||e).palette[o.color].main},[`&.${bo.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${bo.error}`]:{color:(e.vars||e).palette.error.main}})),vr=w("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,o)=>o.asterisk})(({theme:e})=>({[`&.${bo.error}`]:{color:(e.vars||e).palette.error.main}})),xr=u.forwardRef(function(o,t){const r=Pe({props:o,name:"MuiFormLabel"}),{children:s,className:c,component:d="label"}=r,i=ae(r,gr),b=so(),p=io({props:r,muiFormControl:b,states:["color","required","focused","disabled","error","filled"]}),m=a({},r,{color:p.color||"primary",component:d,disabled:p.disabled,error:p.error,filled:p.filled,focused:p.focused,required:p.required}),h=mr(m);return f.jsxs(hr,a({as:d,ownerState:m,className:ne(h.root,c),ref:t},i,{children:[s,p.required&&f.jsxs(vr,{ownerState:m,"aria-hidden":!0,className:h.asterisk,children:[" ","*"]})]}))}),Cr=xr,yr=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],$r=e=>{const{classes:o,disableUnderline:t}=e,s=Ie({root:["root",!t&&"underline"],input:["input"]},yn,o);return a({},o,s)},Ir=w($o,{shouldForwardProp:e=>Xe(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[...Co(e,o),!t.disableUnderline&&o.underline]}})(({theme:e,ownerState:o})=>{let r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),a({position:"relative"},o.formControl&&{"label + &":{marginTop:16}},!o.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(e.vars||e).palette[o.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Qe.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Qe.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Qe.disabled}, .${Qe.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${Qe.disabled}:before`]:{borderBottomStyle:"dotted"}})}),Sr=w(Io,{name:"MuiInput",slot:"Input",overridesResolver:yo})({}),vt=u.forwardRef(function(o,t){var r,s,c,d;const i=Pe({props:o,name:"MuiInput"}),{disableUnderline:b,components:p={},componentsProps:m,fullWidth:h=!1,inputComponent:$="input",multiline:v=!1,slotProps:R,slots:M={},type:P="text"}=i,O=ae(i,yr),k=$r(i),I={root:{ownerState:{disableUnderline:b}}},E=R??m?To(R??m,I):I,N=(r=(s=M.root)!=null?s:p.Root)!=null?r:Ir,F=(c=(d=M.input)!=null?d:p.Input)!=null?c:Sr;return f.jsx(Do,a({slots:{root:N,input:F},slotProps:E,fullWidth:h,inputComponent:$,multiline:v,ref:t,type:P},O,{classes:k}))});vt.muiName="Input";const xt=vt;function Pr(e){return ye("MuiInputLabel",e)}$e("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const kr=["disableAnimation","margin","shrink","variant","className"],Rr=e=>{const{classes:o,formControl:t,size:r,shrink:s,disableAnimation:c,variant:d,required:i}=e,b={root:["root",t&&"formControl",!c&&"animated",s&&"shrink",r&&r!=="normal"&&`size${L(r)}`,d],asterisk:[i&&"asterisk"]},p=Ie(b,Pr,o);return a({},o,p)},Or=w(Cr,{shouldForwardProp:e=>Xe(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[{[`& .${bo.asterisk}`]:o.asterisk},o.root,t.formControl&&o.formControl,t.size==="small"&&o.sizeSmall,t.shrink&&o.shrink,!t.disableAnimation&&o.animated,t.focused&&o.focused,o[t.variant]]}})(({theme:e,ownerState:o})=>a({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},o.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},o.size==="small"&&{transform:"translate(0, 17px) scale(1)"},o.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!o.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},o.variant==="filled"&&a({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},o.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},o.shrink&&a({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},o.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),o.variant==="outlined"&&a({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},o.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},o.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),Lr=u.forwardRef(function(o,t){const r=Pe({name:"MuiInputLabel",props:o}),{disableAnimation:s=!1,shrink:c,className:d}=r,i=ae(r,kr),b=so();let p=c;typeof p>"u"&&b&&(p=b.filled||b.focused||b.adornedStart);const m=io({props:r,muiFormControl:b,states:["size","variant","required","focused"]}),h=a({},r,{disableAnimation:s,formControl:b,shrink:p,size:m.size,variant:m.variant,required:m.required,focused:m.focused}),$=Rr(h);return f.jsx(Or,a({"data-shrink":p,ownerState:h,ref:t,className:ne($.root,d)},i,{classes:$}))}),wr=Lr,Mr=u.createContext({}),Fr=Mr;function Tr(e){return ye("MuiList",e)}$e("MuiList",["root","padding","dense","subheader"]);const Ar=["children","className","component","dense","disablePadding","subheader"],Nr=e=>{const{classes:o,disablePadding:t,dense:r,subheader:s}=e;return Ie({root:["root",!t&&"padding",r&&"dense",s&&"subheader"]},Tr,o)},zr=w("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.root,!t.disablePadding&&o.padding,t.dense&&o.dense,t.subheader&&o.subheader]}})(({ownerState:e})=>a({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),Dr=u.forwardRef(function(o,t){const r=Pe({props:o,name:"MuiList"}),{children:s,className:c,component:d="ul",dense:i=!1,disablePadding:b=!1,subheader:p}=r,m=ae(r,Ar),h=u.useMemo(()=>({dense:i}),[i]),$=a({},r,{component:d,dense:i,disablePadding:b}),v=Nr($);return f.jsx(Fr.Provider,{value:h,children:f.jsxs(zr,a({as:d,className:ne(v.root,c),ref:t,ownerState:$},m,{children:[p,s]}))})}),Er=Dr,Br=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Mo(e,o,t){return e===o?e.firstChild:o&&o.nextElementSibling?o.nextElementSibling:t?null:e.firstChild}function nt(e,o,t){return e===o?t?e.firstChild:e.lastChild:o&&o.previousElementSibling?o.previousElementSibling:t?null:e.lastChild}function Ct(e,o){if(o===void 0)return!0;let t=e.innerText;return t===void 0&&(t=e.textContent),t=t.trim().toLowerCase(),t.length===0?!1:o.repeating?t[0]===o.keys[0]:t.indexOf(o.keys.join(""))===0}function uo(e,o,t,r,s,c){let d=!1,i=s(e,o,o?t:!1);for(;i;){if(i===e.firstChild){if(d)return!1;d=!0}const b=r?!1:i.disabled||i.getAttribute("aria-disabled")==="true";if(!i.hasAttribute("tabindex")||!Ct(i,c)||b)i=s(e,i,t);else return i.focus(),!0}return!1}const jr=u.forwardRef(function(o,t){const{actions:r,autoFocus:s=!1,autoFocusItem:c=!1,children:d,className:i,disabledItemsFocusable:b=!1,disableListWrap:p=!1,onKeyDown:m,variant:h="selectedMenu"}=o,$=ae(o,Br),v=u.useRef(null),R=u.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});st(()=>{s&&v.current.focus()},[s]),u.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(C,I)=>{const E=!v.current.style.width;if(C.clientHeight{const I=v.current,E=C.key,N=Fo(I).activeElement;if(E==="ArrowDown")C.preventDefault(),uo(I,N,p,b,Mo);else if(E==="ArrowUp")C.preventDefault(),uo(I,N,p,b,nt);else if(E==="Home")C.preventDefault(),uo(I,null,p,b,Mo);else if(E==="End")C.preventDefault(),uo(I,null,p,b,nt);else if(E.length===1){const F=R.current,q=E.toLowerCase(),le=performance.now();F.keys.length>0&&(le-F.lastTime>500?(F.keys=[],F.repeating=!0,F.previousKeyMatched=!0):F.repeating&&q!==F.keys[0]&&(F.repeating=!1)),F.lastTime=le,F.keys.push(q);const de=N&&!F.repeating&&Ct(N,F);F.previousKeyMatched&&(de||uo(I,N,!1,b,Mo,F))?C.preventDefault():F.previousKeyMatched=!1}m&&m(C)},P=lo(v,t);let O=-1;u.Children.forEach(d,(C,I)=>{if(!u.isValidElement(C)){O===I&&(O+=1,O>=d.length&&(O=-1));return}C.props.disabled||(h==="selectedMenu"&&C.props.selected||O===-1)&&(O=I),O===I&&(C.props.disabled||C.props.muiSkipListHighlight||C.type.muiSkipListHighlight)&&(O+=1,O>=d.length&&(O=-1))});const k=u.Children.map(d,(C,I)=>{if(I===O){const E={};return c&&(E.autoFocus=!0),C.props.tabIndex===void 0&&h==="selectedMenu"&&(E.tabIndex=0),u.cloneElement(C,E)}return C});return f.jsx(Er,a({role:"menu",ref:P,className:i,onKeyDown:M,tabIndex:s?0:-1},$,{children:k}))}),Wr=jr;function _r(e){return ye("MuiMenu",e)}$e("MuiMenu",["root","paper","list"]);const Ur=["onEntering"],Hr=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Vr={vertical:"top",horizontal:"right"},Kr={vertical:"top",horizontal:"left"},qr=e=>{const{classes:o}=e;return Ie({root:["root"],paper:["paper"],list:["list"]},_r,o)},Gr=w(jt,{shouldForwardProp:e=>Xe(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,o)=>o.root})({}),Xr=w(Wt,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,o)=>o.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Yr=w(Wr,{name:"MuiMenu",slot:"List",overridesResolver:(e,o)=>o.list})({outline:0}),Zr=u.forwardRef(function(o,t){var r,s;const c=Pe({props:o,name:"MuiMenu"}),{autoFocus:d=!0,children:i,className:b,disableAutoFocusItem:p=!1,MenuListProps:m={},onClose:h,open:$,PaperProps:v={},PopoverClasses:R,transitionDuration:M="auto",TransitionProps:{onEntering:P}={},variant:O="selectedMenu",slots:k={},slotProps:C={}}=c,I=ae(c.TransitionProps,Ur),E=ae(c,Hr),N=Mt(),F=N.direction==="rtl",q=a({},c,{autoFocus:d,disableAutoFocusItem:p,MenuListProps:m,onEntering:P,PaperProps:v,transitionDuration:M,TransitionProps:I,variant:O}),le=qr(q),de=d&&!p&&$,oe=u.useRef(null),T=(A,ie)=>{oe.current&&oe.current.adjustStyleForScrollbar(A,N),P&&P(A,ie)},J=A=>{A.key==="Tab"&&(A.preventDefault(),h&&h(A,"tabKeyDown"))};let G=-1;u.Children.map(i,(A,ie)=>{u.isValidElement(A)&&(A.props.disabled||(O==="selectedMenu"&&A.props.selected||G===-1)&&(G=ie))});const se=(r=k.paper)!=null?r:Xr,Q=(s=C.paper)!=null?s:v,re=Vo({elementType:k.root,externalSlotProps:C.root,ownerState:q,className:[le.root,b]}),U=Vo({elementType:se,externalSlotProps:Q,ownerState:q,className:le.paper});return f.jsx(Gr,a({onClose:h,anchorOrigin:{vertical:"bottom",horizontal:F?"right":"left"},transformOrigin:F?Vr:Kr,slots:{paper:se,root:k.root},slotProps:{root:re,paper:U},open:$,ref:t,transitionDuration:M,TransitionProps:a({onEntering:T},I),ownerState:q},E,{classes:R,children:f.jsx(Yr,a({onKeyDown:J,actions:oe,autoFocus:d&&(G===-1||p),autoFocusItem:de,variant:O},m,{className:ne(le.list,m.className),children:i}))}))}),Jr=Zr;function Qr(e){return ye("MuiNativeSelect",e)}const ea=$e("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Eo=ea,oa=["className","disabled","error","IconComponent","inputRef","variant"],ta=e=>{const{classes:o,variant:t,disabled:r,multiple:s,open:c,error:d}=e,i={select:["select",t,r&&"disabled",s&&"multiple",d&&"error"],icon:["icon",`icon${L(t)}`,c&&"iconOpen",r&&"disabled"]};return Ie(i,Qr,o)},yt=({ownerState:e,theme:o})=>a({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":a({},o.vars?{backgroundColor:`rgba(${o.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:o.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${Eo.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(o.vars||o).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(o.vars||o).shape.borderRadius,"&:focus":{borderRadius:(o.vars||o).shape.borderRadius},"&&&":{paddingRight:32}}),na=w("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Xe,overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.select,o[t.variant],t.error&&o.error,{[`&.${Eo.multiple}`]:o.multiple}]}})(yt),$t=({ownerState:e,theme:o})=>a({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(o.vars||o).palette.action.active,[`&.${Eo.disabled}`]:{color:(o.vars||o).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),ra=w("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.icon,t.variant&&o[`icon${L(t.variant)}`],t.open&&o.iconOpen]}})($t),aa=u.forwardRef(function(o,t){const{className:r,disabled:s,error:c,IconComponent:d,inputRef:i,variant:b="standard"}=o,p=ae(o,oa),m=a({},o,{disabled:s,variant:b,error:c}),h=ta(m);return f.jsxs(u.Fragment,{children:[f.jsx(na,a({ownerState:m,className:ne(h.select,r),disabled:s,ref:i||t},p)),o.multiple?null:f.jsx(ra,{as:d,ownerState:m,className:h.icon})]})}),la=aa;var rt;const sa=["children","classes","className","label","notched"],ia=w("fieldset",{shouldForwardProp:Xe})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),ca=w("legend",{shouldForwardProp:Xe})(({ownerState:e,theme:o})=>a({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:o.transitions.create("width",{duration:150,easing:o.transitions.easing.easeOut})},e.withLabel&&a({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:o.transitions.create("max-width",{duration:50,easing:o.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:o.transitions.create("max-width",{duration:100,easing:o.transitions.easing.easeOut,delay:50})})));function da(e){const{className:o,label:t,notched:r}=e,s=ae(e,sa),c=t!=null&&t!=="",d=a({},e,{notched:r,withLabel:c});return f.jsx(ia,a({"aria-hidden":!0,className:o,ownerState:d},s,{children:f.jsx(ca,{ownerState:d,children:c?f.jsx("span",{children:t}):rt||(rt=f.jsx("span",{className:"notranslate",children:"​"}))})}))}const ua=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],pa=e=>{const{classes:o}=e,r=Ie({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},In,o);return a({},o,r)},fa=w($o,{shouldForwardProp:e=>Xe(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Co})(({theme:e,ownerState:o})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return a({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Ve.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Ve.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${Ve.focused} .${Ve.notchedOutline}`]:{borderColor:(e.vars||e).palette[o.color].main,borderWidth:2},[`&.${Ve.error} .${Ve.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Ve.disabled} .${Ve.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},o.startAdornment&&{paddingLeft:14},o.endAdornment&&{paddingRight:14},o.multiline&&a({padding:"16.5px 14px"},o.size==="small"&&{padding:"8.5px 14px"}))}),ba=w(da,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,o)=>o.notchedOutline})(({theme:e})=>{const o=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:o}}),ga=w(Io,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:yo})(({theme:e,ownerState:o})=>a({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},o.size==="small"&&{padding:"8.5px 14px"},o.multiline&&{padding:0},o.startAdornment&&{paddingLeft:0},o.endAdornment&&{paddingRight:0})),It=u.forwardRef(function(o,t){var r,s,c,d,i;const b=Pe({props:o,name:"MuiOutlinedInput"}),{components:p={},fullWidth:m=!1,inputComponent:h="input",label:$,multiline:v=!1,notched:R,slots:M={},type:P="text"}=b,O=ae(b,ua),k=pa(b),C=so(),I=io({props:b,muiFormControl:C,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),E=a({},b,{color:I.color||"primary",disabled:I.disabled,error:I.error,focused:I.focused,formControl:C,fullWidth:m,hiddenLabel:I.hiddenLabel,multiline:v,size:I.size,type:P}),N=(r=(s=M.root)!=null?s:p.Root)!=null?r:fa,F=(c=(d=M.input)!=null?d:p.Input)!=null?c:ga;return f.jsx(Do,a({slots:{root:N,input:F},renderSuffix:q=>f.jsx(ba,{ownerState:E,className:k.notchedOutline,label:$!=null&&$!==""&&I.required?i||(i=f.jsxs(u.Fragment,{children:[$," ","*"]})):$,notched:typeof R<"u"?R:!!(q.startAdornment||q.filled||q.focused)}),fullWidth:m,inputComponent:h,multiline:v,ref:t,type:P},O,{classes:a({},k,{notchedOutline:null})}))});It.muiName="Input";const St=It;function ma(e){return ye("MuiSelect",e)}const ha=$e("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),po=ha;var at;const va=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],xa=w("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[{[`&.${po.select}`]:o.select},{[`&.${po.select}`]:o[t.variant]},{[`&.${po.error}`]:o.error},{[`&.${po.multiple}`]:o.multiple}]}})(yt,{[`&.${po.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Ca=w("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.icon,t.variant&&o[`icon${L(t.variant)}`],t.open&&o.iconOpen]}})($t),ya=w("input",{shouldForwardProp:e=>Ft(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,o)=>o.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function lt(e,o){return typeof o=="object"&&o!==null?e===o:String(e)===String(o)}function $a(e){return e==null||typeof e=="string"&&!e.trim()}const Ia=e=>{const{classes:o,variant:t,disabled:r,multiple:s,open:c,error:d}=e,i={select:["select",t,r&&"disabled",s&&"multiple",d&&"error"],icon:["icon",`icon${L(t)}`,c&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return Ie(i,ma,o)},Sa=u.forwardRef(function(o,t){var r;const{"aria-describedby":s,"aria-label":c,autoFocus:d,autoWidth:i,children:b,className:p,defaultOpen:m,defaultValue:h,disabled:$,displayEmpty:v,error:R=!1,IconComponent:M,inputRef:P,labelId:O,MenuProps:k={},multiple:C,name:I,onBlur:E,onChange:N,onClose:F,onFocus:q,onOpen:le,open:de,readOnly:oe,renderValue:T,SelectDisplayProps:J={},tabIndex:G,value:se,variant:Q="standard"}=o,re=ae(o,va),[U,A]=fo({controlled:se,default:h,name:"Select"}),[ie,Se]=fo({controlled:de,default:m,name:"Select"}),we=u.useRef(null),ue=u.useRef(null),[W,ee]=u.useState(null),{current:fe}=u.useRef(de!=null),[We,Z]=u.useState(),be=lo(t,P),Me=u.useCallback(y=>{ue.current=y,y&&ee(y)},[]),Y=W==null?void 0:W.parentNode;u.useImperativeHandle(be,()=>({focus:()=>{ue.current.focus()},node:we.current,value:U}),[U]),u.useEffect(()=>{m&&ie&&W&&!fe&&(Z(i?null:Y.clientWidth),ue.current.focus())},[W,i]),u.useEffect(()=>{d&&ue.current.focus()},[d]),u.useEffect(()=>{if(!O)return;const y=Fo(ue.current).getElementById(O);if(y){const B=()=>{getSelection().isCollapsed&&ue.current.focus()};return y.addEventListener("click",B),()=>{y.removeEventListener("click",B)}}},[O]);const H=(y,B)=>{y?le&&le(B):F&&F(B),fe||(Z(i?null:Y.clientWidth),Se(y))},ze=y=>{y.button===0&&(y.preventDefault(),ue.current.focus(),H(!0,y))},_e=y=>{H(!1,y)},te=u.Children.toArray(b),S=y=>{const B=te.find(X=>X.props.value===y.target.value);B!==void 0&&(A(B.props.value),N&&N(y,B))},to=y=>B=>{let X;if(B.currentTarget.hasAttribute("tabindex")){if(C){X=Array.isArray(U)?U.slice():[];const ke=U.indexOf(y.props.value);ke===-1?X.push(y.props.value):X.splice(ke,1)}else X=y.props.value;if(y.props.onClick&&y.props.onClick(B),U!==X&&(A(X),N)){const ke=B.nativeEvent||B,Ze=new ke.constructor(ke.type,ke);Object.defineProperty(Ze,"target",{writable:!0,value:{value:X,name:I}}),N(Ze,y)}C||H(!1,B)}},_=y=>{oe||[" ","ArrowUp","ArrowDown","Enter"].indexOf(y.key)!==-1&&(y.preventDefault(),H(!0,y))},xe=W!==null&&ie,Fe=y=>{!xe&&E&&(Object.defineProperty(y,"target",{writable:!0,value:{value:U,name:I}}),E(y))};delete re["aria-invalid"];let ce,Te;const me=[];let Ae=!1;(ut({value:U})||v)&&(T?ce=T(U):Ae=!0);const Ye=te.map(y=>{if(!u.isValidElement(y))return null;let B;if(C){if(!Array.isArray(U))throw new Error(it(2));B=U.some(X=>lt(X,y.props.value)),B&&Ae&&me.push(y.props.children)}else B=lt(U,y.props.value),B&&Ae&&(Te=y.props.children);return u.cloneElement(y,{"aria-selected":B?"true":"false",onClick:to(y),onKeyUp:X=>{X.key===" "&&X.preventDefault(),y.props.onKeyUp&&y.props.onKeyUp(X)},role:"option",selected:B,value:void 0,"data-value":y.props.value})});Ae&&(C?me.length===0?ce=null:ce=me.reduce((y,B,X)=>(y.push(B),X{const{classes:o}=e;return o},Bo={name:"MuiSelect",overridesResolver:(e,o)=>o.root,shouldForwardProp:e=>Xe(e)&&e!=="variant",slot:"Root"},La=w(xt,Bo)(""),wa=w(St,Bo)(""),Ma=w(ht,Bo)(""),Pt=u.forwardRef(function(o,t){const r=Pe({name:"MuiSelect",props:o}),{autoWidth:s=!1,children:c,classes:d={},className:i,defaultOpen:b=!1,displayEmpty:p=!1,IconComponent:m=gt,id:h,input:$,inputProps:v,label:R,labelId:M,MenuProps:P,multiple:O=!1,native:k=!1,onClose:C,onOpen:I,open:E,renderValue:N,SelectDisplayProps:F,variant:q="outlined"}=r,le=ae(r,ka),de=k?la:Pa,oe=so(),T=io({props:r,muiFormControl:oe,states:["variant","error"]}),J=T.variant||q,G=a({},r,{variant:J,classes:d}),se=Oa(G),Q=ae(se,Ra),re=$||{standard:f.jsx(La,{ownerState:G}),outlined:f.jsx(wa,{label:R,ownerState:G}),filled:f.jsx(Ma,{ownerState:G})}[J],U=lo(t,re.ref);return f.jsx(u.Fragment,{children:u.cloneElement(re,a({inputComponent:de,inputProps:a({children:c,error:T.error,IconComponent:m,variant:J,type:void 0,multiple:O},k?{id:h}:{autoWidth:s,defaultOpen:b,displayEmpty:p,labelId:M,MenuProps:P,onClose:C,onOpen:I,open:E,renderValue:N,SelectDisplayProps:a({id:h},F)},v,{classes:v?To(Q,v.classes):Q},$?$.props.inputProps:{})},O&&k&&J==="outlined"?{notched:!0}:{},{ref:U,className:ne(re.props.className,i,se.root)},!$&&{variant:J},le))})});Pt.muiName="Select";const Fa=Pt;function Ta(e){return ye("MuiTextField",e)}$e("MuiTextField",["root"]);const Aa=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],Na={standard:xt,filled:ht,outlined:St},za=e=>{const{classes:o}=e;return Ie({root:["root"]},Ta,o)},Da=w(Dt,{name:"MuiTextField",slot:"Root",overridesResolver:(e,o)=>o.root})({}),Ea=u.forwardRef(function(o,t){const r=Pe({props:o,name:"MuiTextField"}),{autoComplete:s,autoFocus:c=!1,children:d,className:i,color:b="primary",defaultValue:p,disabled:m=!1,error:h=!1,FormHelperTextProps:$,fullWidth:v=!1,helperText:R,id:M,InputLabelProps:P,inputProps:O,InputProps:k,inputRef:C,label:I,maxRows:E,minRows:N,multiline:F=!1,name:q,onBlur:le,onChange:de,onFocus:oe,placeholder:T,required:J=!1,rows:G,select:se=!1,SelectProps:Q,type:re,value:U,variant:A="outlined"}=r,ie=ae(r,Aa),Se=a({},r,{autoFocus:c,color:b,disabled:m,error:h,fullWidth:v,multiline:F,required:J,select:se,variant:A}),we=za(Se),ue={};A==="outlined"&&(P&&typeof P.shrink<"u"&&(ue.notched=P.shrink),ue.label=I),se&&((!Q||!Q.native)&&(ue.id=void 0),ue["aria-describedby"]=void 0);const W=Ao(M),ee=R&&W?`${W}-helper-text`:void 0,fe=I&&W?`${W}-label`:void 0,We=Na[A],Z=f.jsx(We,a({"aria-describedby":ee,autoComplete:s,autoFocus:c,defaultValue:p,fullWidth:v,multiline:F,name:q,rows:G,maxRows:E,minRows:N,type:re,value:U,id:W,inputRef:C,onBlur:le,onChange:de,onFocus:oe,placeholder:T,inputProps:O},ue,k));return f.jsxs(Da,a({className:ne(we.root,i),disabled:m,error:h,fullWidth:v,ref:t,required:J,color:b,variant:A,ownerState:Se},ie,{children:[I!=null&&I!==""&&f.jsx(wr,a({htmlFor:W,id:fe},P,{children:I})),se?f.jsx(Fa,a({"aria-describedby":ee,id:W,labelId:fe,value:U,input:Z},Q,{children:d})):Z,R&&f.jsx(pr,a({id:ee},$,{children:R}))]}))}),Ba=Ea,ja={options:[],getOptionLabel:e=>e.label,handleInputChange:e=>e},Ga=({options:e,onSelect:o,selectedValue:t=null,handleInputChange:r,isLoading:s=!1,autoFocus:c=!1,disabled:d=!1,dataTestId:i,dataId:b,placeholder:p,className:m})=>{const h=u.useRef(null),[$,v]=u.useState(!1);u.useEffect(()=>{c&&h.current&&(h.current.focus(),v(!0))},[c]);const R=(M,P)=>{o(P)};return f.jsx(Et,{flexGrow:1,spacing:1,children:f.jsx(Vn,{...ja,autoFocus:!0,autoHighlight:!0,blurOnSelect:!0,className:m,"data-testid":b,disableClearable:!0,disabled:d,disablePortal:!0,id:"blur-on-select",ListboxProps:{sx:{backgroundColor:je.DROPDOWN_BG,"&::-webkit-scrollbar":{width:"3px"},"&::-webkit-scrollbar-thumb":{backgroundClip:"padding-box",backgroundColor:je.SCROLL_BAR,borderRadius:"6px"}},ref:h},loading:s,onChange:R,onClose:()=>v(!1),onInputChange:(M,P)=>r==null?void 0:r(P),onOpen:()=>v(!0),open:$,options:e??[],PopperComponent:({children:M,...P})=>f.jsx(No,{...P,placement:"bottom-start",children:M}),renderInput:M=>f.jsx(Wa,{inputRef:h,...M,"data-testid":i,InputProps:{...M.InputProps,disableUnderline:!0,endAdornment:f.jsx(f.Fragment,{children:s?f.jsx(or,{color:"inherit",size:20}):M.InputProps.endAdornment})},placeholder:p,size:"medium",variant:"standard"}),renderOption:(M,P)=>f.jsx("li",{...M,children:f.jsxs(At,{align:"center","data-testid":P.label,direction:"row",grow:1,justify:"space-between",onClick:P==null?void 0:P.action,shrink:1,style:{fontSize:"14px",wordBreak:"break-word"},children:[f.jsx("div",{className:"option",children:P.label!==""?P.label:"Not Selected"}),(P==null?void 0:P.type)&&f.jsx(Nt,{type:P.type})]})}),sx:{"&.MuiAutocomplete-option:hover":{backgroundColor:je.DROPDOWN_HOVER},"&.MuiAutocomplete-option[aria-selected='true']":{backgroundColor:je.DROPDOWN_SELECTED}},value:t||void 0})})},Wa=Tt(Ba)` - && { - z-index: 2; - width: 100%; - color: #fff; - font-size: 15px; - box-shadow: none; - border-radius: 6px; - pointer-events: auto; - background-color: ${je.BG2}; - box-shadow: 0px 1px 6px rgba(0, 0, 0, 0.1); - padding: 0 8px; - - &:focus, - &:active { - color: ${je.white}; - background-color: ${je.BG2_ACTIVE_INPUT}; - outline: 1px solid ${je.primaryBlue}; - } - - &:hover { - background-color: ${je.BG2_ACTIVE_INPUT}; - box-shadow: 0 0 0 1px ${je.primaryBlue}; - } - - &::placeholder { - font-size: 15px; - text-align: left; - font-weight: 500; - line-height: 16px; - letter-spacing: 0em; - font-family: Barlow; - color: ${je.GRAY7}; - } - - .MuiInput-input.MuiInputBase-input { - padding: 8px; - } - - .MuiInput-root { - padding: 0; - } - } -`;export{Ga as A,Do as I,Ba as T}; diff --git a/build/assets/index-c10c0497.js b/build/assets/index-ffad0f79.js similarity index 71% rename from build/assets/index-c10c0497.js rename to build/assets/index-ffad0f79.js index 67dfc501f..d7599a124 100644 --- a/build/assets/index-c10c0497.js +++ b/build/assets/index-ffad0f79.js @@ -1,4 +1,4 @@ -import{c as te,j as e,s as p,a as k,F as v,T as re,r as s,d as se,u as q,A as ne,x as oe,o as ie,y as ae,z as ce,D as Z}from"./index-1d805415.js";import{Universe as le}from"./index-9142d688.js";import{b as $,M as de,V as pe,c as ue,d as fe,e as ge,f as X,a as xe}from"./index-3ac851f3.js";import{S as he,R as me,s as V,M as ye}from"./index-6eb81ca4.js";import"./index-aeaca922.js";import"./three.module-71ec604c.js";import"./index-4dcb3294.js";import"./TextareaAutosize-3b102137.js";import"./index-5b7bb80c.js";import"./ClipLoader-9eb1180c.js";import"./Skeleton-633e7f1d.js";import"./Stack-2f0ef3f5.js";import"./index-80a17f62.js";import"./isPlainObject-44e85bf8.js";import"./Typography-5c2f9b73.js";import"./createSvgIcon-b68c7390.js";const we={selectedEpisodeId:"",selectedEpisodeLink:"",selectedEpisode:null,clips:[]},L=te(t=>({...we,setSelectedEpisodeId:o=>t({selectedEpisodeId:o}),setSelectedEpisodeLink:o=>t({selectedEpisodeLink:o}),setSelectedEpisode:o=>t({selectedEpisode:o}),setClips:o=>t({clips:o})})),Ce=t=>e.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 30 28",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[e.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"}),e.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"}),e.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"}),e.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"}),e.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"}),e.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"}),e.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"}),e.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"}),e.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"}),e.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"})]}),je=()=>e.jsxs(be,{children:[e.jsx(ve,{children:e.jsx(Se,{children:e.jsx(Ce,{})})}),e.jsx(ke,{children:"Graph Mindset"})]}),be=p(v).attrs({align:"center",direction:"row",grow:1,justify:"flex-start"})` +import{c as te,j as e,s as p,a as k,F as v,T as re,r as s,n as se,u as O,A as ne,o as oe,e as ie,p as ae,q as ce,t as Z}from"./index-2353781d.js";import{Universe as le}from"./index-b7808ecf.js";import{b as $,c as de,d as pe,I as ue,e as X,a as fe}from"./index-068043a5.js";import{M as ge,V as xe}from"./VolumeIcon-750bd7e3.js";import{S as he,R as me,s as V,M as ye}from"./index-057df3f8.js";import"./index-964e9ac6.js";import"./VisibilityOn-aa220caf.js";import"./SourcesTableIcon-54a999e3.js";import"./NodeCircleIcon-6e372d93.js";import"./SoundIcon-a0618346.js";import"./CheckIcon-bcbb5853.js";import"./DeleteNodeIcon-be8a9a17.js";import"./EditNodeIcon-665ec0f5.js";import"./SearchIcon-3c9f4418.js";import"./SucessFeedBackIcon-edca1d93.js";import"./three.module-71ec604c.js";import"./TextareaAutosize-c42da1c8.js";import"./index-33375362.js";import"./ClipLoader-c90857c8.js";import"./Skeleton-d97f7e12.js";import"./Stack-ff0fb8f6.js";import"./index-83d18e4b.js";import"./isPlainObject-c1defea0.js";import"./Typography-13640c0b.js";import"./createSvgIcon-09ff14f6.js";const we={selectedEpisodeId:"",selectedEpisodeLink:"",selectedEpisode:null,clips:[]},D=te(t=>({...we,setSelectedEpisodeId:o=>t({selectedEpisodeId:o}),setSelectedEpisodeLink:o=>t({selectedEpisodeLink:o}),setSelectedEpisode:o=>t({selectedEpisode:o}),setClips:o=>t({clips:o})})),Ce=t=>e.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 30 28",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[e.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"}),e.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"}),e.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"}),e.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"}),e.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"}),e.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"}),e.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"}),e.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"}),e.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"}),e.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"})]}),je=()=>e.jsxs(be,{children:[e.jsx(ve,{children:e.jsx(Se,{children:e.jsx(Ce,{})})}),e.jsx(ke,{children:"Graph Mindset"})]}),be=p(v).attrs({align:"center",direction:"row",grow:1,justify:"flex-start"})` height: 64px; box-sizing: border-box; padding: 20px 23px; @@ -31,7 +31,7 @@ import{c as te,j as e,s as p,a as k,F as v,T as re,r as s,d as se,u as q,A as ne letter-spacing: 0.22px; margin-left: 16px; white-space: nowrap; -`,Y=s.memo(()=>{const t=$(n=>n.isPlaying),o=$(n=>n.setIsPlaying),r=$(n=>n.setVolume),c=$(n=>n.setPlaybackSpeed),x=$(n=>n.playbackSpeed),a=$(n=>n.playerRef),[j,b]=s.useState(!1),u=[.5,1,1.5,2],h=()=>{if(a){const n=a.getCurrentTime()-15;a.seekTo(n,"seconds")}},d=()=>{if(a){const n=a.getCurrentTime()+15;a.seekTo(n,"seconds")}},I=()=>{o(!t)},l=()=>{b(!j),r(j?1:0)},g=()=>{const S=(u.indexOf(x)+1)%u.length,P=u[S];if(c(P),a){const T=a.getInternalPlayer();T&&typeof T.playbackRate<"u"&&(T.playbackRate=P)}};return e.jsxs(Te,{children:[e.jsx(Me,{onClick:l,children:j?e.jsx(de,{}):e.jsx(pe,{})}),e.jsx(Ee,{onClick:h,children:e.jsx("img",{alt:"",src:"/RewindIcon.svg"})}),e.jsx(Ie,{"data-testid":"play-pause-button",onClick:I,size:"small",children:t?e.jsx(ue,{"data-testid":"pause-icon"}):e.jsx(fe,{"data-testid":"play-icon"})}),e.jsx(Pe,{onClick:d,children:e.jsx("img",{alt:"",src:"/ForwardIcon.svg"})}),e.jsxs(Re,{onClick:g,children:[x,"x"]})]})});Y.displayName="Controls";const Te=p(v).attrs({direction:"row",align:"center",justify:"flex-start"})` +`,Y=s.memo(()=>{const t=$(n=>n.isPlaying),o=$(n=>n.setIsPlaying),r=$(n=>n.setVolume),c=$(n=>n.setPlaybackSpeed),x=$(n=>n.playbackSpeed),a=$(n=>n.playerRef),[j,b]=s.useState(!1),u=[.5,1,1.5,2],h=()=>{if(a){const n=a.getCurrentTime()-15;a.seekTo(n,"seconds")}},d=()=>{if(a){const n=a.getCurrentTime()+15;a.seekTo(n,"seconds")}},I=()=>{o(!t)},l=()=>{b(!j),r(j?1:0)},g=()=>{const S=(u.indexOf(x)+1)%u.length,P=u[S];if(c(P),a){const T=a.getInternalPlayer();T&&typeof T.playbackRate<"u"&&(T.playbackRate=P)}};return e.jsxs(Te,{children:[e.jsx(Me,{onClick:l,children:j?e.jsx(ge,{}):e.jsx(xe,{})}),e.jsx(Ee,{onClick:h,children:e.jsx("img",{alt:"",src:"/RewindIcon.svg"})}),e.jsx(Ie,{"data-testid":"play-pause-button",onClick:I,size:"small",children:t?e.jsx(de,{"data-testid":"pause-icon"}):e.jsx(pe,{"data-testid":"play-icon"})}),e.jsx(Pe,{onClick:d,children:e.jsx("img",{alt:"",src:"/ForwardIcon.svg"})}),e.jsxs(Re,{onClick:g,children:[x,"x"]})]})});Y.displayName="Controls";const Te=p(v).attrs({direction:"row",align:"center",justify:"flex-start"})` width: 200px; height: 54px; background: ${k.BG1}; @@ -42,7 +42,7 @@ import{c as te,j as e,s as p,a as k,F as v,T as re,r as s,d as se,u as q,A as ne padding: 12px; justify-content: space-between; box-sizing: border-box; -`,Ie=p(ge)` +`,Ie=p(ue)` && { font-size: 36px; padding: 2px; @@ -161,7 +161,7 @@ import{c as te,j as e,s as p,a as k,F as v,T as re,r as s,d as se,u as q,A as ne border-radius: 8px; box-sizing: border-box; margin-right: 4px; -`,Ae=(t,o)=>{let r=0,c=t.length-1;for(;r<=c;){const x=Math.floor((r+c)/2),a=t[x],{start:j,end:b}=a.properties;if(o>=j&&o<=b)return a;o{const o=s.useRef(null),[r,c]=s.useState("ready"),[x,a]=s.useState(!1),{setActiveEdge:j}=X(w=>w),{dataInitial:b}=q(w=>w),{isPlaying:u,playingTime:h,setIsPlaying:d,setPlayingTime:I,setDuration:l,playingNode:g,volume:n,setHasError:S,resetPlayer:P,isSeeking:T,setIsSeeking:B,setPlayerRef:W,playerRef:H,playbackSpeed:f}=$(w=>w);s.useEffect(()=>()=>P(),[P]),s.useEffect(()=>{g&&!x&&(I(0),l(0),a(!1))},[g,I,l,a,x]),s.useEffect(()=>{T&&H&&(H.seekTo(h,"seconds"),B(!1))},[h,T,B,H]);const m=s.useCallback(()=>{d(!u)},[u,d]),i=()=>{S(!0),c("error")},y=s.useCallback(w=>{w.code},[m]);s.useEffect(()=>(window.addEventListener("keydown",y),()=>{window.removeEventListener("keydown",y)}),[y]);const E=s.useMemo(()=>((b==null?void 0:b.links.filter(C=>{var _;return(_=C==null?void 0:C.properties)==null?void 0:_.start}))||[]).slice().sort((C,_)=>{var D,U;return((D=C==null?void 0:C.properties)==null?void 0:D.start)-((U=_==null?void 0:_.properties)==null?void 0:U.start)}),[b]),R=w=>{if(!T){const N=w.playedSeconds,C=Ae(E,N);j(C||null)}},M=()=>{H&&c("ready")},F=s.useCallback(()=>{u||d(!0)},[d,u]),z=s.useCallback(()=>{u&&d(!1)},[d,u]),A=w=>{w.stopPropagation()},G=s.useCallback(w=>{!H&&w&&W(w)},[W,H]);return t?e.jsxs(Ge,{ref:o,tabIndex:0,children:[e.jsx(De,{isFullScreen:!1,children:e.jsx(ne,{size:120,src:(g==null?void 0:g.image_url)||"",type:"clip"})}),e.jsx(Ze,{isFullScreen:!1,onClick:A,children:e.jsx(me,{ref:G,height:"219px",onBuffer:()=>c("buffering"),onBufferEnd:()=>c("ready"),onError:i,onPause:z,onPlay:F,onProgress:R,onReady:M,playbackRate:f,playing:u,url:t||"",volume:n,width:"100%"})}),r==="error"?e.jsx(Le,{className:"error-wrapper",children:"Error happened, please try later"}):null]}):null},Ge=p(v)` +`,Ae=(t,o)=>{let r=0,c=t.length-1;for(;r<=c;){const x=Math.floor((r+c)/2),a=t[x],{start:j,end:b}=a.properties;if(o>=j&&o<=b)return a;o{const o=s.useRef(null),[r,c]=s.useState("ready"),[x,a]=s.useState(!1),{setActiveEdge:j}=X(w=>w),{dataInitial:b}=O(w=>w),{isPlaying:u,playingTime:h,setIsPlaying:d,setPlayingTime:I,setDuration:l,playingNode:g,volume:n,setHasError:S,resetPlayer:P,isSeeking:T,setIsSeeking:B,setPlayerRef:W,playerRef:H,playbackSpeed:f}=$(w=>w);s.useEffect(()=>()=>P(),[P]),s.useEffect(()=>{g&&!x&&(I(0),l(0),a(!1))},[g,I,l,a,x]),s.useEffect(()=>{T&&H&&(H.seekTo(h,"seconds"),B(!1))},[h,T,B,H]);const m=s.useCallback(()=>{d(!u)},[u,d]),i=()=>{S(!0),c("error")},y=s.useCallback(w=>{w.code},[m]);s.useEffect(()=>(window.addEventListener("keydown",y),()=>{window.removeEventListener("keydown",y)}),[y]);const E=s.useMemo(()=>((b==null?void 0:b.links.filter(C=>{var _;return(_=C==null?void 0:C.properties)==null?void 0:_.start}))||[]).slice().sort((C,_)=>{var L,U;return((L=C==null?void 0:C.properties)==null?void 0:L.start)-((U=_==null?void 0:_.properties)==null?void 0:U.start)}),[b]),R=w=>{if(!T){const N=w.playedSeconds,C=Ae(E,N);j(C||null)}},M=()=>{H&&c("ready")},F=s.useCallback(()=>{u||d(!0)},[d,u]),z=s.useCallback(()=>{u&&d(!1)},[d,u]),A=w=>{w.stopPropagation()},G=s.useCallback(w=>{!H&&w&&W(w)},[W,H]);return t?e.jsxs(Ge,{ref:o,tabIndex:0,children:[e.jsx(Le,{isFullScreen:!1,children:e.jsx(ne,{size:120,src:(g==null?void 0:g.image_url)||"",type:"clip"})}),e.jsx(Ze,{isFullScreen:!1,onClick:A,children:e.jsx(me,{ref:G,height:"219px",onBuffer:()=>c("buffering"),onBufferEnd:()=>c("ready"),onError:i,onPause:z,onPlay:F,onProgress:R,onReady:M,playbackRate:f,playing:u,url:t||"",volume:n,width:"100%"})}),r==="error"?e.jsx(De,{className:"error-wrapper",children:"Error happened, please try later"}):null]}):null},Ge=p(v)` border-bottom: 1px solid rgba(0, 0, 0, 0.25); background: rgba(0, 0, 0, 0.2); position: relative; @@ -170,13 +170,13 @@ import{c as te,j as e,s as p,a as k,F as v,T as re,r as s,d as se,u as q,A as ne &:focus { outline: none; } -`,De=p(v)` +`,Le=p(v)` position: absolute; top: ${t=>t.isFullScreen?"38%":"18%"}; left: 50%; transform: translateX(-50%); z-index: -1; -`,Le=p(v)` +`,De=p(v)` height: 60px; padding: 12px 16px; color: ${k.primaryRed}; @@ -184,7 +184,7 @@ import{c as te,j as e,s as p,a as k,F as v,T as re,r as s,d as se,u as q,A as ne margin: ${t=>t.isFullScreen?"80px auto":"0"}; width: 100%; cursor: pointer; -`,Ve=s.memo(ze),ee=s.forwardRef(({active:t,start:o,text:r},c)=>e.jsxs(Oe,{ref:c,className:oe({active:t}),children:[e.jsx(qe,{children:o}),e.jsx(Ue,{children:e.jsx("span",{children:r})})]}));ee.displayName="ParagraphComponent";const O=s.memo(ee,(t,o)=>t.active===o.active),Oe=p(v)` +`,Ve=s.memo(ze),ee=s.forwardRef(({active:t,start:o,text:r},c)=>e.jsxs(qe,{ref:c,className:oe({active:t}),children:[e.jsx(Oe,{children:o}),e.jsx(Ue,{children:e.jsx("span",{children:r})})]}));ee.displayName="ParagraphComponent";const q=s.memo(ee,(t,o)=>t.active===o.active),qe=p(v)` flex-direction: row; align-items: flex-start; font-size: 14px; @@ -192,7 +192,7 @@ import{c as te,j as e,s as p,a as k,F as v,T as re,r as s,d as se,u as q,A as ne &.active { background: ${k.AI_HIGHLIGHT}; } -`,qe=p.span` +`,Oe=p.span` background: ${k.lightBlue100}; color: ${k.lightBlue500}; padding: 2px; @@ -205,12 +205,12 @@ import{c as te,j as e,s as p,a as k,F as v,T as re,r as s,d as se,u as q,A as ne &.active { background: ${k.AI_HIGHLIGHT}; } -`,Xe=({transcriptString:t,isFirst:o})=>{const[r,c]=s.useState(0),[x,a]=s.useState(!1),{playerRef:j}=$(l=>l),b=t.replace(/^["']|["']$/g,""),u=JSON.parse(b),h=s.useRef(null),d=s.useRef(null),I=s.useRef(null);return s.useEffect(()=>{const l=setInterval(()=>{if(j&&c){const g=j.getCurrentTime();c(g)}},100);return()=>clearInterval(l)},[j,c]),s.useEffect(()=>{const l=()=>{a(!0),I.current&&clearTimeout(I.current),I.current=setTimeout(()=>{a(!1)},1e3)},g=d.current;return g&&g.addEventListener("scroll",l),()=>{g&&g.removeEventListener("scroll",l)}},[]),s.useEffect(()=>{!x&&h.current&&h.current.scrollIntoView({behavior:"smooth",block:"center"})},[r,x]),e.jsx(Ye,{ref:d,children:e.jsx(e.Fragment,{children:o?e.jsx(e.Fragment,{children:u[0].start>r?e.jsx(O,{active:!1,start:V(u[0].start),text:u[0].text}):e.jsx(e.Fragment,{children:u.map(l=>{const g=V(l.start),n=l.start{const g=V(l.start),n=l.start{const[r,c]=s.useState(0),[x,a]=s.useState(!1),{playerRef:j}=$(l=>l),b=t.replace(/^["']|["']$/g,""),u=JSON.parse(b),h=s.useRef(null),d=s.useRef(null),I=s.useRef(null);return s.useEffect(()=>{const l=setInterval(()=>{if(j&&c){const g=j.getCurrentTime();c(g)}},100);return()=>clearInterval(l)},[j,c]),s.useEffect(()=>{const l=()=>{a(!0),I.current&&clearTimeout(I.current),I.current=setTimeout(()=>{a(!1)},1e3)},g=d.current;return g&&g.addEventListener("scroll",l),()=>{g&&g.removeEventListener("scroll",l)}},[]),s.useEffect(()=>{!x&&h.current&&h.current.scrollIntoView({behavior:"smooth",block:"center"})},[r,x]),e.jsx(Ye,{ref:d,children:e.jsx(e.Fragment,{children:o?e.jsx(e.Fragment,{children:u[0].start>r?e.jsx(q,{active:!1,start:V(u[0].start),text:u[0].text}):e.jsx(e.Fragment,{children:u.map(l=>{const g=V(l.start),n=l.start{const g=V(l.start),n=l.start{var g;const o=L(n=>n.clips),{playerRef:r}=$(n=>n),[c,x]=s.useState(0),[a,j]=s.useState(null),[b,u]=s.useState(!0),[h,d,I]=X(n=>[n.setActiveNode,n.activeNode,n.simulation]);s.useEffect(()=>{const n=setInterval(()=>{if(r&&x){const S=r.getCurrentTime();x(S)}},100);return()=>clearInterval(n)},[r,x]),s.useEffect(()=>{c&&(()=>{var P;const S=o.find(T=>{var H;const[B,W]=l((H=T==null?void 0:T.properties)==null?void 0:H.timestamp);return B<=c&&c{if(a&&(!d||a.ref_id!==d.ref_id)){const n=I==null?void 0:I.nodes().find(S=>S.ref_id===a.ref_id);typeof(n==null?void 0:n.fx)=="number"&&h(n)}},[a,d,h,I]);const l=n=>n?n.split("-").map(Number):[0,0];return e.jsxs(Ke,{children:[e.jsx(v,{className:"heading",children:t}),a?e.jsx(Qe,{direction:"row",children:((g=a.properties)==null?void 0:g.transcript)&&e.jsx(Xe,{isFirst:b,transcriptString:a.properties.transcript})}):null]})},Ke=p(v)` +`,Je=({name:t})=>{var g;const o=D(n=>n.clips),{playerRef:r}=$(n=>n),[c,x]=s.useState(0),[a,j]=s.useState(null),[b,u]=s.useState(!0),[h,d,I]=X(n=>[n.setActiveNode,n.activeNode,n.simulation]);s.useEffect(()=>{const n=setInterval(()=>{if(r&&x){const S=r.getCurrentTime();x(S)}},100);return()=>clearInterval(n)},[r,x]),s.useEffect(()=>{c&&(()=>{var P;const S=o.find(T=>{var H;const[B,W]=l((H=T==null?void 0:T.properties)==null?void 0:H.timestamp);return B<=c&&c{if(a&&(!d||a.ref_id!==d.ref_id)){const n=I==null?void 0:I.nodes().find(S=>S.ref_id===a.ref_id);typeof(n==null?void 0:n.fx)=="number"&&h(n)}},[a,d,h,I]);const l=n=>n?n.split("-").map(Number):[0,0];return e.jsxs(Ke,{children:[e.jsx(v,{className:"heading",children:t}),a?e.jsx(Qe,{direction:"row",children:((g=a.properties)==null?void 0:g.transcript)&&e.jsx(Xe,{isFirst:b,transcriptString:a.properties.transcript})}):null]})},Ke=p(v)` .heading { font-weight: 700; font-size: 16px; @@ -227,7 +227,7 @@ import{c as te,j as e,s as p,a as k,F as v,T as re,r as s,d as se,u as q,A as ne flex: 1 1 100%; margin-left: -24px; margin-right: -24px; -`,et=()=>{var o;const t=L(r=>r.selectedEpisode);return e.jsxs(tt,{align:"stretch",basis:"100%",grow:1,shrink:1,children:[e.jsx(rt,{children:((o=t==null?void 0:t.properties)==null?void 0:o.source_link)&&e.jsx(Ve,{mediaUrl:t.properties.source_link})}),e.jsx(Je,{name:(t==null?void 0:t.name)||""})]})},tt=p(v)(({theme:t})=>({position:"relative",display:"flex",padding:"0 20px 0 20px",background:"transparent",width:"100%",height:"calc(100vh - 180px)",overflow:"auto",[t.breakpoints.up("sm")]:{width:ye,gap:"10px"}})),rt=p(v)(({theme:t})=>({width:"100%",marginBottom:"20px",[t.breakpoints.up("sm")]:{width:"390px",margin:"0 auto"}})),vt=()=>{const{isFetching:t,runningProjectId:o}=q(f=>f),r=q(f=>f.addNewNode),[c,x]=s.useState(null),[a,j]=s.useState(!1),b=L(f=>f.setSelectedEpisode),u=L(f=>f.setClips),h=L(f=>f.clips),d=xe(),I=s.useRef(null),l=s.useRef(null),g=s.useRef(null),n=s.useRef(null),S=s.useRef(null),P=ie(),{episodeId:T}=ae(),{setPlayingNode:B}=$(f=>f);s.useEffect(()=>{T&&(async m=>{try{const i=await ce(m);i&&(B(i),b(i),r({nodes:[i],edges:[]}))}catch(i){P("/"),console.error(i)}})(T)},[T,B,b,r,P]),s.useEffect(()=>{T&&(async()=>{try{const m=await Z(T||"",0,50,{nodeType:["Show","Host","Guest"],useSubGraph:!1}),i=await Z(T||"",0,1e3,{nodeType:["Clip"],useSubGraph:!1});if(r({nodes:m!=null&&m.nodes?m==null?void 0:m.nodes:[],edges:m!=null&&m.edges?m.edges:[]}),i!=null&&i.nodes){const y=i.nodes.filter(E=>{var R;return(R=E.properties)==null?void 0:R.timestamp}).sort((E,R)=>{var z,A,G,w;const M=Number((A=(z=E.properties)==null?void 0:z.timestamp)==null?void 0:A.split("-")[0]),F=Number((w=(G=R.properties)==null?void 0:G.timestamp)==null?void 0:w.split("-")[0]);return M-F});u(y)}}catch(m){P("/"),console.error("Error fetching initial data:",m)}})()},[T,r,u,P]),s.useEffect(()=>{if(!h)return;(async()=>{var m,i;try{const y=(h==null?void 0:h.map(R=>R.ref_id).filter(Boolean))||[],E={nodes:((m=g.current)==null?void 0:m.nodes)||[],edges:((i=g.current)==null?void 0:i.edges)||[]};for(const R of y){const M=await Z(R,0,50);M&&(E.nodes.push(...(M==null?void 0:M.nodes)||[]),E.edges.push(...(M==null?void 0:M.edges)||[]),g.current=E,x({...E}))}}catch(y){console.error("Error processing clip nodes:",y)}})()},[h]);const W=s.useCallback(f=>{t||(n.current||(n.current={nodes:[],edges:[]}),f.edges&&n.current.edges.push(...f.edges),f.nodes&&n.current.nodes.push(...f.nodes),S.current&&clearTimeout(S.current),S.current=setTimeout(()=>{if(n.current){const{nodes:m,edges:i}=n.current,y={nodes:m,edges:i};n.current={nodes:[],edges:[]},r(y)}},3e3))},[r,t]);s.useEffect(()=>(d&&(d.connect(),d.on("connect_error",f=>{console.error("Socket connection error:",f)}),o&&d.on("new_node_created",W)),()=>{d&&d.off()}),[d,W,o]),s.useEffect(()=>{const f=m=>{const{playerRef:i}=$.getState();if(l.current!==null){if(m-l.current>1e3){if(g.current&&i){const{nodes:E,edges:R}=g.current,M=i==null?void 0:i.getCurrentTime(),[F,z]=R.reduce(([w,N],C)=>{var _,D;return((_=C==null?void 0:C.properties)==null?void 0:_.start)!==void 0&&((D=C==null?void 0:C.properties)==null?void 0:D.start)(F.some(_=>_.target===C.ref_id||_.source===C.ref_id)?w.push(C):N.push(C),[w,N]),[[],[]]);g.current={nodes:G,edges:z},(A.length||F.length)&&r({nodes:A,edges:F})}l.current=m}}else l.current=m;I.current=requestAnimationFrame(f)};return I.current=requestAnimationFrame(f),()=>{I.current&&cancelAnimationFrame(I.current)}},[g,r]),s.useEffect(()=>{if(o)try{d==null||d.emit("update_project_id",{id:o})}catch(f){console.error(f)}},[o,d]);const H=s.useMemo(()=>{if(c){const f=c.edges.filter(i=>{var y;return(y=i==null?void 0:i.properties)==null?void 0:y.start}).map(i=>{var y;return{source:i.source,target:i.target,start:(y=i.properties)==null?void 0:y.start}});return c.nodes.filter(i=>c.edges.some(y=>y.source===i.ref_id||y.target===i.ref_id)).map(i=>{const y=f.find(E=>i.ref_id===E.source||i.ref_id===E.target);return{...i,start:(y==null?void 0:y.start)||0}}).filter(i=>i&&i.node_type!=="Clip"&&i.node_type!=="Episode"&&i.node_type!=="Show")}return[]},[c]);return e.jsxs(st,{children:[e.jsx(nt,{direction:"row",children:e.jsxs(e.Fragment,{children:[e.jsxs(v,{children:[e.jsx(v,{onClick:()=>j(!a),children:e.jsx(je,{})}),e.jsx(et,{})]}),e.jsx(ot,{children:e.jsx(v,{basis:"100%",grow:1,shrink:1,children:e.jsx(le,{})})})]})}),e.jsx(it,{children:e.jsx(We,{markers:H})})]})},st=p.div` +`,et=()=>{var o;const t=D(r=>r.selectedEpisode);return e.jsxs(tt,{align:"stretch",basis:"100%",grow:1,shrink:1,children:[e.jsx(rt,{children:((o=t==null?void 0:t.properties)==null?void 0:o.source_link)&&e.jsx(Ve,{mediaUrl:t.properties.source_link})}),e.jsx(Je,{name:(t==null?void 0:t.name)||""})]})},tt=p(v)(({theme:t})=>({position:"relative",display:"flex",padding:"0 20px 0 20px",background:"transparent",width:"100%",height:"calc(100vh - 180px)",overflow:"auto",[t.breakpoints.up("sm")]:{width:ye,gap:"10px"}})),rt=p(v)(({theme:t})=>({width:"100%",marginBottom:"20px",[t.breakpoints.up("sm")]:{width:"390px",margin:"0 auto"}})),_t=()=>{const{isFetching:t,runningProjectId:o}=O(f=>f),r=O(f=>f.addNewNode),[c,x]=s.useState(null),[a,j]=s.useState(!1),b=D(f=>f.setSelectedEpisode),u=D(f=>f.setClips),h=D(f=>f.clips),d=fe(),I=s.useRef(null),l=s.useRef(null),g=s.useRef(null),n=s.useRef(null),S=s.useRef(null),P=ie(),{episodeId:T}=ae(),{setPlayingNode:B}=$(f=>f);s.useEffect(()=>{T&&(async m=>{try{const i=await ce(m);i&&(B(i),b(i),r({nodes:[i],edges:[]}))}catch(i){P("/"),console.error(i)}})(T)},[T,B,b,r,P]),s.useEffect(()=>{T&&(async()=>{try{const m=await Z(T||"",0,50,{nodeType:["Show","Host","Guest"],useSubGraph:!1}),i=await Z(T||"",0,1e3,{nodeType:["Clip"],useSubGraph:!1});if(r({nodes:m!=null&&m.nodes?m==null?void 0:m.nodes:[],edges:m!=null&&m.edges?m.edges:[]}),i!=null&&i.nodes){const y=i.nodes.filter(E=>{var R;return(R=E.properties)==null?void 0:R.timestamp}).sort((E,R)=>{var z,A,G,w;const M=Number((A=(z=E.properties)==null?void 0:z.timestamp)==null?void 0:A.split("-")[0]),F=Number((w=(G=R.properties)==null?void 0:G.timestamp)==null?void 0:w.split("-")[0]);return M-F});u(y)}}catch(m){P("/"),console.error("Error fetching initial data:",m)}})()},[T,r,u,P]),s.useEffect(()=>{if(!h)return;(async()=>{var m,i;try{const y=(h==null?void 0:h.map(R=>R.ref_id).filter(Boolean))||[],E={nodes:((m=g.current)==null?void 0:m.nodes)||[],edges:((i=g.current)==null?void 0:i.edges)||[]};for(const R of y){const M=await Z(R,0,50);M&&(E.nodes.push(...(M==null?void 0:M.nodes)||[]),E.edges.push(...(M==null?void 0:M.edges)||[]),g.current=E,x({...E}))}}catch(y){console.error("Error processing clip nodes:",y)}})()},[h]);const W=s.useCallback(f=>{t||(n.current||(n.current={nodes:[],edges:[]}),f.edges&&n.current.edges.push(...f.edges),f.nodes&&n.current.nodes.push(...f.nodes),S.current&&clearTimeout(S.current),S.current=setTimeout(()=>{if(n.current){const{nodes:m,edges:i}=n.current,y={nodes:m,edges:i};n.current={nodes:[],edges:[]},r(y)}},3e3))},[r,t]);s.useEffect(()=>(d&&(d.connect(),d.on("connect_error",f=>{console.error("Socket connection error:",f)}),o&&d.on("new_node_created",W)),()=>{d&&d.off()}),[d,W,o]),s.useEffect(()=>{const f=m=>{const{playerRef:i}=$.getState();if(l.current!==null){if(m-l.current>1e3){if(g.current&&i){const{nodes:E,edges:R}=g.current,M=i==null?void 0:i.getCurrentTime(),[F,z]=R.reduce(([w,N],C)=>{var _,L;return((_=C==null?void 0:C.properties)==null?void 0:_.start)!==void 0&&((L=C==null?void 0:C.properties)==null?void 0:L.start)(F.some(_=>_.target===C.ref_id||_.source===C.ref_id)?w.push(C):N.push(C),[w,N]),[[],[]]);g.current={nodes:G,edges:z},(A.length||F.length)&&r({nodes:A,edges:F})}l.current=m}}else l.current=m;I.current=requestAnimationFrame(f)};return I.current=requestAnimationFrame(f),()=>{I.current&&cancelAnimationFrame(I.current)}},[g,r]),s.useEffect(()=>{if(o)try{d==null||d.emit("update_project_id",{id:o})}catch(f){console.error(f)}},[o,d]);const H=s.useMemo(()=>{if(c){const f=c.edges.filter(i=>{var y;return(y=i==null?void 0:i.properties)==null?void 0:y.start}).map(i=>{var y;return{source:i.source,target:i.target,start:(y=i.properties)==null?void 0:y.start}});return c.nodes.filter(i=>c.edges.some(y=>y.source===i.ref_id||y.target===i.ref_id)).map(i=>{const y=f.find(E=>i.ref_id===E.source||i.ref_id===E.target);return{...i,start:(y==null?void 0:y.start)||0}}).filter(i=>i&&i.node_type!=="Clip"&&i.node_type!=="Episode"&&i.node_type!=="Show")}return[]},[c]);return e.jsxs(st,{children:[e.jsx(nt,{direction:"row",children:e.jsxs(e.Fragment,{children:[e.jsxs(v,{children:[e.jsx(v,{onClick:()=>j(!a),children:e.jsx(je,{})}),e.jsx(et,{})]}),e.jsx(ot,{children:e.jsx(v,{basis:"100%",grow:1,shrink:1,children:e.jsx(le,{})})})]})}),e.jsx(it,{children:e.jsx(We,{markers:H})})]})},st=p.div` display: flex; flex-direction: column; height: 100vh; @@ -243,4 +243,4 @@ import{c as te,j as e,s as p,a as k,F as v,T as re,r as s,d as se,u as q,A as ne `,it=p(v)` padding: 16px 16px 16px 0; margin-left: 18px; -`;export{vt as MindSet}; +`;export{_t as MindSet}; diff --git a/build/assets/isPlainObject-44e85bf8.js b/build/assets/isPlainObject-44e85bf8.js deleted file mode 100644 index 787c7b48f..000000000 --- a/build/assets/isPlainObject-44e85bf8.js +++ /dev/null @@ -1 +0,0 @@ -import{K as de,L as pe,M,V as Ne,N as S,ah as Ge,r as U,G as ge,j as L,S as K,X as H,U as be,P as Ue,at as z,au as B,aA as T,bO as he,ay as ve,a8 as X,bP as Ke,aE as He,bQ as ze,bR as ye,bS as Xe,bT as Ye,bU as Ze,aH as ke,aK as _e,az as Qe,aG as We,bV as Je,aF as me,bW as je}from"./index-1d805415.js";import{u as Ve,b as $e,f as er,S as rr}from"./Stack-2f0ef3f5.js";import{T as J}from"./Typography-5c2f9b73.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${H(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:E}=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 W=m.target.checked;xe(W),y&&y(m,W)};let F=l;C&&typeof F>"u"&&(F=C.disabled);const De=P==="checkbox"||P==="radio",D=S({},r,{checked:w,disabled:F,disableFocusRipple:c,edge:d}),Q=tr(D);return L.jsxs(sr,S({component:"span",className:K(Q.root,i),centerRipple:!0,focusRipple:!c,disabled:F,tabIndex:null,role:void 0,onFocus:Me,onBlur:Be,ownerState:D,ref:a},A,{children:[L.jsx(ir,S({autoFocus:n,checked:s,defaultChecked:o,className:Q.input,disabled:F,id:De?u:void 0,name:g,onChange:qe,readOnly:O,ref:p,required:$,ownerState:D,tabIndex:_,type:P},P==="checkbox"&&E===void 0?{}:{value:E},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"]),I=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${H(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[{[`& .${I.label}`]:r.label},r.root,r[`labelPlacement${H(a.labelPlacement)}`]]}})(({theme:e,ownerState:r})=>S({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${I.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},{[`& .${I.label}`]:{[`&.${I.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),pr=M("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,r)=>r.asterisk})(({theme:e})=>({[`&.${I.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(_),E=(s=p.typography)!=null?s:o.typography;let A=f;return A!=null&&A.type!==J&&!d&&(A=L.jsx(J,S({component:"span"},E,{className:K(P.label,E==null?void 0:E.className),children:A}))),L.jsxs(dr,S({className:K(P.root,i),ownerState:_,ref:a},g,{children:[U.cloneElement(l,O),v?L.jsxs(rr,{display:"block",children:[A,L.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 Er=wr,Lr=Er,Fr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ir=/\\(\\)?/g,Rr=Lr(function(e){var r=[];return e.charCodeAt(0)===46&&r.push(""),e.replace(Fr,function(a,n,s,t){r.push(s?t.replace(Ir,"$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${H(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=K.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:E}=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 Q=m.target.checked;xe(Q),y&&y(m,Q)};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}),J=tr(D);return L.jsxs(sr,S({component:"span",className:U(J.root,i),centerRipple:!0,focusRipple:!c,disabled:I,tabIndex:null,role:void 0,onFocus:Me,onBlur:Be,ownerState:D,ref:a},A,{children:[L.jsx(ir,S({autoFocus:n,checked:s,defaultChecked:o,className:J.input,disabled:I,id:De?u:void 0,name:g,onChange:qe,readOnly:O,ref:p,required:$,ownerState:D,tabIndex:_,type:P},P==="checkbox"&&E===void 0?{}:{value:E},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${H(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${H(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=K.forwardRef(function(r,a){var n,s;const t=Ke({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(_),E=(s=p.typography)!=null?s:o.typography;let A=f;return A!=null&&A.type!==W&&!d&&(A=L.jsx(W,S({component:"span"},E,{className:U(P.label,E==null?void 0:E.className),children:A}))),L.jsxs(dr,S({className:U(P.root,i),ownerState:_,ref:a},g,{children:[K.cloneElement(l,O),v?L.jsxs(rr,{display:"block",children:[A,L.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 Er=wr,Lr=Er,Ir=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Fr=/\\(\\)?/g,Rr=Lr(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 - +